x86
stringlengths
122
1.3M
arm
stringlengths
122
1.35M
file
stringlengths
20
207
source
stringclasses
2 values
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function chassis_stats_setluaval _chassis_stats_setluaval: ## @chassis_stats_setluaval .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %rbx movq %rdi, %r14 movq %rsi, %rdi callq _GPOINTER_TO_UINT movl %eax, %r15d movq %rbx, %rdi movl $-1, %esi callq _lua_istable movl %eax, %edi callq _g_assert movq %rbx, %rdi movl $2, %esi callq _lua_checkstack movq %rbx, %rdi movq %r14, %rsi callq _lua_pushstring movq %rbx, %rdi movl %r15d, %esi callq _lua_pushinteger movq %rbx, %rdi movl $-3, %esi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _lua_settable ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _chassis_stats_setluaval .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function chassis_stats_setluaval _chassis_stats_setluaval: ; @chassis_stats_setluaval .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x2 mov x20, x0 mov x0, x1 bl _GPOINTER_TO_UINT mov x21, x0 mov x0, x19 mov w1, #-1 bl _lua_istable bl _g_assert mov x0, x19 mov w1, #2 bl _lua_checkstack mov x0, x19 mov x1, x20 bl _lua_pushstring mov x0, x19 mov x1, x21 bl _lua_pushinteger mov x0, x19 mov w1, #-3 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _lua_settable .cfi_endproc ; -- End function .no_dead_strip _chassis_stats_setluaval .subsections_via_symbols
AnghaBench/Atlas/lib/extr_chassis.c_chassis_stats_setluaval.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function lua_chassis_log _lua_chassis_log: ## @lua_chassis_log .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $56, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r15 leaq L_.str.3(%rip), %rdx leaq _lua_chassis_log.log_names(%rip), %rcx movl $1, %esi callq _luaL_checkoption movl %eax, -48(%rbp) ## 4-byte Spill leaq L_.str.6(%rip), %rdx movq %r15, %rdi movl $2, %esi callq _luaL_optstring movq %rax, %r12 leaq -88(%rbp), %rdx movq %r15, %rdi movl $1, %esi callq _lua_getstack testl %eax, %eax je LBB0_1 ## %bb.2: leaq L_.str.8(%rip), %rsi leaq -88(%rbp), %rdx movq %r15, %rdi callq _lua_getinfo testl %eax, %eax movq %r12, -56(%rbp) ## 8-byte Spill je LBB0_3 ## %bb.6: movl $1, %ebx movl $-1, -44(%rbp) ## 4-byte Folded Spill leaq L_.str.7(%rip), %rax movq %rax, -64(%rbp) ## 8-byte Spill leaq -88(%rbp), %r14 .p2align 4, 0x90 LBB0_12: ## =>This Inner Loop Header: Depth=1 movl -88(%rbp), %r13d cmpl $1, %ebx jne LBB0_14 ## %bb.13: ## in Loop: Header=BB0_12 Depth=1 movq -72(%rbp), %rax movq %rax, -64(%rbp) ## 8-byte Spill movl %r13d, -44(%rbp) ## 4-byte Spill LBB0_14: ## in Loop: Header=BB0_12 Depth=1 movq -80(%rbp), %r12 cmpl $9, %ebx ja LBB0_4 ## %bb.15: ## in Loop: Header=BB0_12 Depth=1 testq %r12, %r12 je LBB0_4 ## %bb.16: ## in Loop: Header=BB0_12 Depth=1 movzbl (%r12), %eax cmpb $47, %al je LBB0_9 ## %bb.17: ## in Loop: Header=BB0_12 Depth=1 cmpb $64, %al je LBB0_9 ## %bb.7: ## in Loop: Header=BB0_12 Depth=1 incl %ebx movq %r15, %rdi movl %ebx, %esi movq %r14, %rdx callq _lua_getstack testl %eax, %eax je LBB0_8 ## %bb.11: ## in Loop: Header=BB0_12 Depth=1 movq %r15, %rdi leaq L_.str.8(%rip), %rsi movq %r14, %rdx callq _lua_getinfo testl %eax, %eax jne LBB0_12 LBB0_4: testq %r12, %r12 je LBB0_5 LBB0_8: movl -44(%rbp), %eax ## 4-byte Reload movl %eax, -44(%rbp) ## 4-byte Spill movb (%r12), %al LBB0_9: xorl %r14d, %r14d cmpb $64, %al sete %r14b addq %r12, %r14 movq _LUA_REGISTRYINDEX@GOTPCREL(%rip), %rax movl (%rax), %esi movq _CHASSIS_LUA_REGISTRY_KEY@GOTPCREL(%rip), %rax movl (%rax), %edx movq %r15, %rdi callq _lua_getfield movq %r15, %rdi movl $-1, %esi callq _lua_topointer movq %rax, %r12 movq %r15, %rdi movl $1, %esi callq _lua_pop testq %r12, %r12 je LBB0_10 ## %bb.18: movq (%r12), %rsi testq %rsi, %rsi movl -48(%rbp), %r15d ## 4-byte Reload movq -64(%rbp), %rbx ## 8-byte Reload je LBB0_21 ## %bb.19: movq %r14, %rdi callq _g_str_has_prefix testq %rax, %rax je LBB0_21 ## %bb.20: movq (%r12), %rdi callq _strlen cltq leaq (%r14,%rax), %rcx movb (%r14,%rax), %al movq _G_DIR_SEPARATOR@GOTPCREL(%rip), %rdx xorl %r14d, %r14d cmpb (%rdx), %al sete %r14b addq %rcx, %r14 LBB0_21: movq -56(%rbp), %r12 ## 8-byte Reload jmp LBB0_22 LBB0_1: leaq L_.str.7(%rip), %rbx movl $-1, %r8d xorl %r14d, %r14d movl $-1, %r13d movl -48(%rbp), %r15d ## 4-byte Reload jmp LBB0_23 LBB0_3: movl $-1, %r13d leaq L_.str.7(%rip), %rax movq %rax, -64(%rbp) ## 8-byte Spill xorl %r12d, %r12d movl $-1, -44(%rbp) ## 4-byte Folded Spill testq %r12, %r12 jne LBB0_8 LBB0_5: xorl %r14d, %r14d movl -44(%rbp), %r8d ## 4-byte Reload movq -56(%rbp), %r12 ## 8-byte Reload movl -48(%rbp), %r15d ## 4-byte Reload movq -64(%rbp), %rbx ## 8-byte Reload jmp LBB0_23 LBB0_10: movq -56(%rbp), %r12 ## 8-byte Reload movl -48(%rbp), %r15d ## 4-byte Reload movq -64(%rbp), %rbx ## 8-byte Reload LBB0_22: movl -44(%rbp), %r8d ## 4-byte Reload LBB0_23: movq _G_LOG_DOMAIN@GOTPCREL(%rip), %rax movl (%rax), %edi movslq %r15d, %rax leaq _lua_chassis_log.log_levels(%rip), %rcx movl (%rcx,%rax,4), %esi testq %r14, %r14 cmovneq %r14, %rbx cmovnel %r13d, %r8d leaq L_.str.9(%rip), %rdx movq %rbx, %rcx movq %r12, %r9 callq _g_log xorl %eax, %eax addq $56, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__const .p2align 4 ## @lua_chassis_log.log_names _lua_chassis_log.log_names: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad 0 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "error" L_.str.1: ## @.str.1 .asciz "critical" L_.str.2: ## @.str.2 .asciz "warning" L_.str.3: ## @.str.3 .asciz "message" L_.str.4: ## @.str.4 .asciz "info" L_.str.5: ## @.str.5 .asciz "debug" .section __TEXT,__const .p2align 4 ## @lua_chassis_log.log_levels _lua_chassis_log.log_levels: .long 131 ## 0x83 .long 133 ## 0x85 .long 128 ## 0x80 .long 129 ## 0x81 .long 130 ## 0x82 .long 132 ## 0x84 .section __TEXT,__cstring,cstring_literals L_.str.6: ## @.str.6 .asciz "nil" L_.str.7: ## @.str.7 .asciz "unknown" L_.str.8: ## @.str.8 .asciz "Sl" .comm _LUA_REGISTRYINDEX,4,2 ## @LUA_REGISTRYINDEX .comm _CHASSIS_LUA_REGISTRY_KEY,4,2 ## @CHASSIS_LUA_REGISTRY_KEY .comm _G_DIR_SEPARATOR,1,0 ## @G_DIR_SEPARATOR .comm _G_LOG_DOMAIN,4,2 ## @G_LOG_DOMAIN L_.str.9: ## @.str.9 .asciz "(%s:%d) %s" .no_dead_strip _lua_chassis_log .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function lua_chassis_log _lua_chassis_log: ; @lua_chassis_log .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x28, x27, [sp, #32] ; 16-byte Folded Spill stp x26, x25, [sp, #48] ; 16-byte Folded Spill stp x24, x23, [sp, #64] ; 16-byte Folded Spill stp x22, x21, [sp, #80] ; 16-byte Folded Spill stp x20, x19, [sp, #96] ; 16-byte Folded Spill stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 .cfi_offset w27, -88 .cfi_offset w28, -96 mov x21, x0 Lloh0: adrp x2, l_.str.3@PAGE Lloh1: add x2, x2, l_.str.3@PAGEOFF Lloh2: adrp x3, _lua_chassis_log.log_names@PAGE Lloh3: add x3, x3, _lua_chassis_log.log_names@PAGEOFF mov w1, #1 bl _luaL_checkoption mov x20, x0 Lloh4: adrp x2, l_.str.6@PAGE Lloh5: add x2, x2, l_.str.6@PAGEOFF mov x0, x21 mov w1, #2 bl _luaL_optstring mov x19, x0 add x2, sp, #8 mov x0, x21 mov w1, #1 bl _lua_getstack cbz w0, LBB0_15 ; %bb.1: Lloh6: adrp x1, l_.str.8@PAGE Lloh7: add x1, x1, l_.str.8@PAGEOFF add x2, sp, #8 mov x0, x21 bl _lua_getinfo cbz w0, LBB0_16 ; %bb.2: mov w22, #1 mov w24, #-1 Lloh8: adrp x25, l_.str.7@PAGE Lloh9: add x25, x25, l_.str.7@PAGEOFF Lloh10: adrp x23, l_.str.8@PAGE Lloh11: add x23, x23, l_.str.8@PAGEOFF LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w26, [sp, #8] ldp x27, x8, [sp, #16] cmp w22, #1 csel w24, w26, w24, eq csel x25, x8, x25, eq cmp w22, #9 b.hi LBB0_9 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 cbz x27, LBB0_9 ; %bb.5: ; in Loop: Header=BB0_3 Depth=1 ldrb w8, [x27] cmp w8, #47 b.eq LBB0_11 ; %bb.6: ; in Loop: Header=BB0_3 Depth=1 cmp w8, #64 b.eq LBB0_11 ; %bb.7: ; in Loop: Header=BB0_3 Depth=1 add w22, w22, #1 add x2, sp, #8 mov x0, x21 mov x1, x22 bl _lua_getstack cbz w0, LBB0_10 ; %bb.8: ; in Loop: Header=BB0_3 Depth=1 add x2, sp, #8 mov x0, x21 mov x1, x23 bl _lua_getinfo cbnz w0, LBB0_3 LBB0_9: cbz x27, LBB0_17 LBB0_10: ldrb w8, [x27] LBB0_11: cmp w8, #64 cinc x22, x27, eq Lloh12: adrp x8, _LUA_REGISTRYINDEX@GOTPAGE Lloh13: ldr x8, [x8, _LUA_REGISTRYINDEX@GOTPAGEOFF] Lloh14: ldr w1, [x8] Lloh15: adrp x8, _CHASSIS_LUA_REGISTRY_KEY@GOTPAGE Lloh16: ldr x8, [x8, _CHASSIS_LUA_REGISTRY_KEY@GOTPAGEOFF] Lloh17: ldr w2, [x8] mov x0, x21 bl _lua_getfield mov x0, x21 mov w1, #-1 bl _lua_topointer mov x23, x0 mov x0, x21 mov w1, #1 bl _lua_pop cbz x23, LBB0_18 ; %bb.12: ldr x1, [x23] cbz x1, LBB0_18 ; %bb.13: mov x0, x22 bl _g_str_has_prefix cbz x0, LBB0_18 ; %bb.14: ldr x0, [x23] bl _strlen add x8, x22, w0, sxtw mov x9, x8 ldrb w10, [x9], #1 Lloh18: adrp x11, _G_DIR_SEPARATOR@GOTPAGE Lloh19: ldr x11, [x11, _G_DIR_SEPARATOR@GOTPAGEOFF] ldrb w11, [x11] cmp w10, w11 csel x22, x8, x9, ne b LBB0_18 LBB0_15: mov x22, #0 mov w24, #-1 mov w26, #-1 Lloh20: adrp x25, l_.str.7@PAGE Lloh21: add x25, x25, l_.str.7@PAGEOFF b LBB0_18 LBB0_16: mov x27, #0 mov w26, #-1 mov w24, #-1 Lloh22: adrp x25, l_.str.7@PAGE Lloh23: add x25, x25, l_.str.7@PAGEOFF cbnz x27, LBB0_10 LBB0_17: mov x22, #0 LBB0_18: Lloh24: adrp x8, _G_LOG_DOMAIN@GOTPAGE Lloh25: ldr x8, [x8, _G_LOG_DOMAIN@GOTPAGEOFF] Lloh26: adrp x9, _lua_chassis_log.log_levels@PAGE Lloh27: add x9, x9, _lua_chassis_log.log_levels@PAGEOFF Lloh28: ldr w0, [x8] ldr w1, [x9, w20, sxtw #2] cmp x22, #0 csel x3, x25, x22, eq csel w4, w24, w26, eq Lloh29: adrp x2, l_.str.9@PAGE Lloh30: add x2, x2, l_.str.9@PAGEOFF mov x5, x19 bl _g_log mov w0, #0 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload ldp x20, x19, [sp, #96] ; 16-byte Folded Reload ldp x22, x21, [sp, #80] ; 16-byte Folded Reload ldp x24, x23, [sp, #64] ; 16-byte Folded Reload ldp x26, x25, [sp, #48] ; 16-byte Folded Reload ldp x28, x27, [sp, #32] ; 16-byte Folded Reload add sp, sp, #128 ret .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17 .loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14 .loh AdrpLdrGot Lloh18, Lloh19 .loh AdrpAdd Lloh20, Lloh21 .loh AdrpAdd Lloh22, Lloh23 .loh AdrpAdd Lloh29, Lloh30 .loh AdrpAdd Lloh26, Lloh27 .loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh28 .cfi_endproc ; -- End function .section __DATA,__const .p2align 3 ; @lua_chassis_log.log_names _lua_chassis_log.log_names: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad 0 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "error" l_.str.1: ; @.str.1 .asciz "critical" l_.str.2: ; @.str.2 .asciz "warning" l_.str.3: ; @.str.3 .asciz "message" l_.str.4: ; @.str.4 .asciz "info" l_.str.5: ; @.str.5 .asciz "debug" .section __TEXT,__const .p2align 2 ; @lua_chassis_log.log_levels _lua_chassis_log.log_levels: .long 131 ; 0x83 .long 133 ; 0x85 .long 128 ; 0x80 .long 129 ; 0x81 .long 130 ; 0x82 .long 132 ; 0x84 .section __TEXT,__cstring,cstring_literals l_.str.6: ; @.str.6 .asciz "nil" l_.str.7: ; @.str.7 .asciz "unknown" l_.str.8: ; @.str.8 .asciz "Sl" .comm _LUA_REGISTRYINDEX,4,2 ; @LUA_REGISTRYINDEX .comm _CHASSIS_LUA_REGISTRY_KEY,4,2 ; @CHASSIS_LUA_REGISTRY_KEY .comm _G_DIR_SEPARATOR,1,0 ; @G_DIR_SEPARATOR .comm _G_LOG_DOMAIN,4,2 ; @G_LOG_DOMAIN l_.str.9: ; @.str.9 .asciz "(%s:%d) %s" .no_dead_strip _lua_chassis_log .subsections_via_symbols
AnghaBench/Atlas/lib/extr_chassis.c_lua_chassis_log.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function lua_chassis_log_message _lua_chassis_log_message: ## @lua_chassis_log_message .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx callq _lua_gettop movl %eax, %r14d leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $1, %esi callq _lua_insert movq %rbx, %rdi callq _lua_chassis_log movl %eax, %r15d movq %rbx, %rdi movl $1, %esi callq _lua_remove movq %rbx, %rdi callq _lua_gettop xorl %edi, %edi cmpl %eax, %r14d sete %dil callq _g_assert movl %r15d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "message" .no_dead_strip _lua_chassis_log_message .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function lua_chassis_log_message _lua_chassis_log_message: ; @lua_chassis_log_message .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 bl _lua_gettop mov x20, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #1 bl _lua_insert mov x0, x19 bl _lua_chassis_log mov x21, x0 mov x0, x19 mov w1, #1 bl _lua_remove mov x0, x19 bl _lua_gettop cmp w20, w0 cset w0, eq bl _g_assert mov x0, x21 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "message" .no_dead_strip _lua_chassis_log_message .subsections_via_symbols
AnghaBench/Atlas/lib/extr_chassis.c_lua_chassis_log_message.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function lua_chassis_stats _lua_chassis_stats: ## @lua_chassis_stats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $24, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r15 movq _FALSE@GOTPCREL(%rip), %r12 movl (%r12), %r14d callq _lua_gettop movl %eax, %ebx testl %eax, %eax je LBB0_1 ## %bb.2: cmpl $1, %ebx jne LBB0_31 ## %bb.3: movq %r15, %rdi movl $1, %esi callq _luaL_checkstring jmp LBB0_4 LBB0_1: xorl %eax, %eax LBB0_4: movq %rax, -56(%rbp) ## 8-byte Spill movq %r15, %rdi callq _lua_newtable movq _LUA_REGISTRYINDEX@GOTPCREL(%rip), %rax movl (%rax), %esi movq _CHASSIS_LUA_REGISTRY_KEY@GOTPCREL(%rip), %rax movl (%rax), %edx movq %r15, %rdi callq _lua_getfield movq %r15, %rdi movl $-1, %esi callq _lua_topointer movq %rax, %r13 movq %r15, %rdi movl $1, %esi callq _lua_pop testl %ebx, %ebx jne LBB0_9 ## %bb.5: testq %r13, %r13 movq -56(%rbp), %rbx ## 8-byte Reload je LBB0_10 ## %bb.6: movl (%r13), %edi callq _chassis_stats_get testq %rax, %rax je LBB0_7 ## %bb.8: movq %rax, %rbx movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %r14d movq %r15, %rdi callq _lua_newtable movq _chassis_stats_setluaval@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi movq %r15, %rdx callq _g_hash_table_foreach leaq L_.str.1(%rip), %rdx movq %r15, %rdi movl $-2, %esi callq _lua_setfield movq %rbx, %rdi callq _g_hash_table_destroy jmp LBB0_9 LBB0_31: leaq L_.str(%rip), %rdx movq %r15, %rdi movl $2, %esi addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _luaL_argerror ## TAILCALL LBB0_7: movl (%r12), %r14d LBB0_9: movq -56(%rbp), %rbx ## 8-byte Reload LBB0_10: testq %r13, %r13 movl %r14d, -44(%rbp) ## 4-byte Spill je LBB0_28 ## %bb.11: movq 8(%r13), %rax testq %rax, %rax je LBB0_28 ## %bb.12: cmpq $0, (%rax) je LBB0_28 ## %bb.13: xorl %r12d, %r12d jmp LBB0_14 LBB0_19: ## in Loop: Header=BB0_14 Depth=1 movq %r15, %rdi callq _lua_newtable movq _chassis_stats_setluaval@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi movq %r15, %rdx callq _g_hash_table_foreach movq (%r14), %rdx movq %r15, %rdi movl $-2, %esi callq _lua_setfield movq %rbx, %rdi callq _g_hash_table_destroy movq -56(%rbp), %rbx ## 8-byte Reload .p2align 4, 0x90 LBB0_20: ## in Loop: Header=BB0_14 Depth=1 incq %r12 movq 8(%r13), %rax cmpq (%rax), %r12 jae LBB0_28 LBB0_14: ## =>This Inner Loop Header: Depth=1 movq 8(%rax), %rax movq (%rax,%r12,8), %r14 movq 8(%r14), %rdi testq %rdi, %rdi je LBB0_20 ## %bb.15: ## in Loop: Header=BB0_14 Depth=1 movq 16(%r14), %rcx testq %rcx, %rcx je LBB0_20 ## %bb.16: ## in Loop: Header=BB0_14 Depth=1 testq %rbx, %rbx je LBB0_17 ## %bb.21: ## in Loop: Header=BB0_14 Depth=1 movq %rbx, %rdi leaq L_.str.1(%rip), %rsi callq _g_ascii_strcasecmp testq %rax, %rax je LBB0_22 ## %bb.25: ## in Loop: Header=BB0_14 Depth=1 movq (%r14), %rsi movq %rbx, %rdi callq _g_ascii_strcasecmp testq %rax, %rax jne LBB0_20 jmp LBB0_26 LBB0_17: ## in Loop: Header=BB0_14 Depth=1 callq *%rcx movq %rax, %rbx testq %rax, %rax je LBB0_19 ## %bb.18: ## in Loop: Header=BB0_14 Depth=1 movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -44(%rbp) ## 4-byte Spill jmp LBB0_19 LBB0_22: movl (%r13), %edi callq _chassis_stats_get testq %rax, %rax jne LBB0_27 LBB0_24: movq _FALSE@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -44(%rbp) ## 4-byte Spill jmp LBB0_28 LBB0_26: movq 8(%r14), %rdi callq *16(%r14) testq %rax, %rax je LBB0_24 LBB0_27: movq %rax, %rbx movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -44(%rbp) ## 4-byte Spill movq _chassis_stats_setluaval@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi movq %r15, %rdx callq _g_hash_table_foreach movq %rbx, %rdi callq _g_hash_table_destroy LBB0_28: cmpl $0, -44(%rbp) ## 4-byte Folded Reload jne LBB0_30 ## %bb.29: movq %r15, %rdi movl $1, %esi callq _lua_pop movq %r15, %rdi callq _lua_pushnil LBB0_30: movl $1, %eax addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _FALSE,4,2 ## @FALSE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "currently only zero or one arguments are allowed" .comm _LUA_REGISTRYINDEX,4,2 ## @LUA_REGISTRYINDEX .comm _CHASSIS_LUA_REGISTRY_KEY,4,2 ## @CHASSIS_LUA_REGISTRY_KEY .comm _TRUE,4,2 ## @TRUE .comm _chassis_stats_setluaval,4,2 ## @chassis_stats_setluaval L_.str.1: ## @.str.1 .asciz "chassis" .no_dead_strip _lua_chassis_stats .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function lua_chassis_stats _lua_chassis_stats: ; @lua_chassis_stats .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill .cfi_def_cfa_offset 96 stp x26, x25, [sp, #16] ; 16-byte Folded Spill stp x24, x23, [sp, #32] ; 16-byte Folded Spill stp x22, x21, [sp, #48] ; 16-byte Folded Spill stp x20, x19, [sp, #64] ; 16-byte Folded Spill stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 .cfi_offset w27, -88 .cfi_offset w28, -96 mov x19, x0 Lloh0: adrp x25, _FALSE@GOTPAGE Lloh1: ldr x25, [x25, _FALSE@GOTPAGEOFF] ldr w24, [x25] bl _lua_gettop mov x22, x0 cbz w0, LBB0_3 ; %bb.1: cmp w22, #1 b.ne LBB0_21 ; %bb.2: mov x0, x19 mov w1, #1 bl _luaL_checkstring mov x20, x0 b LBB0_4 LBB0_3: mov x20, #0 LBB0_4: mov x0, x19 bl _lua_newtable Lloh2: adrp x8, _LUA_REGISTRYINDEX@GOTPAGE Lloh3: ldr x8, [x8, _LUA_REGISTRYINDEX@GOTPAGEOFF] Lloh4: ldr w1, [x8] Lloh5: adrp x8, _CHASSIS_LUA_REGISTRY_KEY@GOTPAGE Lloh6: ldr x8, [x8, _CHASSIS_LUA_REGISTRY_KEY@GOTPAGEOFF] Lloh7: ldr w2, [x8] mov x0, x19 bl _lua_getfield mov x0, x19 mov w1, #-1 bl _lua_topointer mov x21, x0 mov x0, x19 mov w1, #1 bl _lua_pop cbnz w22, LBB0_8 ; %bb.5: cbz x21, LBB0_8 ; %bb.6: ldr w0, [x21] bl _chassis_stats_get cbz x0, LBB0_22 ; %bb.7: mov x22, x0 Lloh8: adrp x8, _TRUE@GOTPAGE Lloh9: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh10: ldr w24, [x8] mov x0, x19 bl _lua_newtable Lloh11: adrp x8, _chassis_stats_setluaval@GOTPAGE Lloh12: ldr x8, [x8, _chassis_stats_setluaval@GOTPAGEOFF] Lloh13: ldr w1, [x8] mov x0, x22 mov x2, x19 bl _g_hash_table_foreach Lloh14: adrp x2, l_.str.1@PAGE Lloh15: add x2, x2, l_.str.1@PAGEOFF mov x0, x19 mov w1, #-2 bl _lua_setfield mov x0, x22 bl _g_hash_table_destroy LBB0_8: cbz x21, LBB0_23 LBB0_9: ldr x8, [x21, #8] cbz x8, LBB0_23 ; %bb.10: ldr x9, [x8] cbz x9, LBB0_23 ; %bb.11: mov x28, #0 Lloh16: adrp x27, _TRUE@GOTPAGE Lloh17: ldr x27, [x27, _TRUE@GOTPAGEOFF] Lloh18: adrp x22, l_.str.1@PAGE Lloh19: add x22, x22, l_.str.1@PAGEOFF b LBB0_14 LBB0_12: ; in Loop: Header=BB0_14 Depth=1 blr x8 mov x23, x0 ldr w8, [x27] cmp x0, #0 csel w24, w24, w8, eq mov x0, x19 bl _lua_newtable Lloh20: adrp x8, _chassis_stats_setluaval@GOTPAGE Lloh21: ldr x8, [x8, _chassis_stats_setluaval@GOTPAGEOFF] Lloh22: ldr w1, [x8] mov x0, x23 mov x2, x19 bl _g_hash_table_foreach ldr x2, [x26] mov x0, x19 mov w1, #-2 bl _lua_setfield mov x0, x23 bl _g_hash_table_destroy LBB0_13: ; in Loop: Header=BB0_14 Depth=1 add x28, x28, #1 ldr x8, [x21, #8] ldr x9, [x8] cmp x28, x9 b.hs LBB0_23 LBB0_14: ; =>This Inner Loop Header: Depth=1 ldr x8, [x8, #8] ldr x26, [x8, x28, lsl #3] ldr x0, [x26, #8] cbz x0, LBB0_13 ; %bb.15: ; in Loop: Header=BB0_14 Depth=1 ldr x8, [x26, #16] cbz x8, LBB0_13 ; %bb.16: ; in Loop: Header=BB0_14 Depth=1 cbz x20, LBB0_12 ; %bb.17: ; in Loop: Header=BB0_14 Depth=1 mov x0, x20 mov x1, x22 bl _g_ascii_strcasecmp cbz x0, LBB0_26 ; %bb.18: ; in Loop: Header=BB0_14 Depth=1 ldr x1, [x26] mov x0, x20 bl _g_ascii_strcasecmp cbnz x0, LBB0_13 ; %bb.19: ldp x0, x8, [x26, #8] blr x8 cbz x0, LBB0_27 LBB0_20: mov x20, x0 ldr w24, [x27] Lloh23: adrp x8, _chassis_stats_setluaval@GOTPAGE Lloh24: ldr x8, [x8, _chassis_stats_setluaval@GOTPAGEOFF] Lloh25: ldr w1, [x8] mov x2, x19 bl _g_hash_table_foreach mov x0, x20 bl _g_hash_table_destroy b LBB0_23 LBB0_21: Lloh26: adrp x2, l_.str@PAGE Lloh27: add x2, x2, l_.str@PAGEOFF mov x0, x19 mov w1, #2 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload ldp x26, x25, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #96 ; 16-byte Folded Reload b _luaL_argerror LBB0_22: ldr w24, [x25] cbnz x21, LBB0_9 LBB0_23: cbnz w24, LBB0_25 LBB0_24: mov x0, x19 mov w1, #1 bl _lua_pop mov x0, x19 bl _lua_pushnil LBB0_25: mov w0, #1 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload ldp x26, x25, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #96 ; 16-byte Folded Reload ret LBB0_26: ldr w0, [x21] bl _chassis_stats_get cbnz x0, LBB0_20 LBB0_27: ldr w24, [x25] cbnz w24, LBB0_25 b LBB0_24 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpAdd Lloh14, Lloh15 .loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpAdd Lloh18, Lloh19 .loh AdrpLdrGot Lloh16, Lloh17 .loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22 .loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25 .loh AdrpAdd Lloh26, Lloh27 .cfi_endproc ; -- End function .comm _FALSE,4,2 ; @FALSE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "currently only zero or one arguments are allowed" .comm _LUA_REGISTRYINDEX,4,2 ; @LUA_REGISTRYINDEX .comm _CHASSIS_LUA_REGISTRY_KEY,4,2 ; @CHASSIS_LUA_REGISTRY_KEY .comm _TRUE,4,2 ; @TRUE .comm _chassis_stats_setluaval,4,2 ; @chassis_stats_setluaval l_.str.1: ; @.str.1 .asciz "chassis" .no_dead_strip _lua_chassis_stats .subsections_via_symbols
AnghaBench/Atlas/lib/extr_chassis.c_lua_chassis_stats.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function remap_print _remap_print: ## @remap_print .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx callq _lua_gettop movl %eax, %r14d leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _lua_getglobal leaq L_.str.1(%rip), %r15 movq %rbx, %rdi movq %r15, %rsi callq _lua_getglobal movq %rbx, %rdi movl $-2, %esi movq %r15, %rdx callq _lua_setfield movq %rbx, %rdi movl $1, %esi callq _lua_pop movq _lua_chassis_log_message@GOTPCREL(%rip), %rax movl (%rax), %edx movq %rbx, %rdi movq %r15, %rsi callq _lua_register movq %rbx, %rdi callq _lua_gettop xorl %edi, %edi cmpl %eax, %r14d sete %dil addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _g_assert ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "os" L_.str.1: ## @.str.1 .asciz "print" .comm _lua_chassis_log_message,4,2 ## @lua_chassis_log_message .no_dead_strip _remap_print .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function remap_print _remap_print: ; @remap_print .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 bl _lua_gettop mov x20, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _lua_getglobal Lloh2: adrp x21, l_.str.1@PAGE Lloh3: add x21, x21, l_.str.1@PAGEOFF mov x0, x19 mov x1, x21 bl _lua_getglobal mov x0, x19 mov w1, #-2 mov x2, x21 bl _lua_setfield mov x0, x19 mov w1, #1 bl _lua_pop Lloh4: adrp x8, _lua_chassis_log_message@GOTPAGE Lloh5: ldr x8, [x8, _lua_chassis_log_message@GOTPAGEOFF] Lloh6: ldr w2, [x8] mov x0, x19 mov x1, x21 bl _lua_register mov x0, x19 bl _lua_gettop cmp w20, w0 cset w0, eq ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _g_assert .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "os" l_.str.1: ; @.str.1 .asciz "print" .comm _lua_chassis_log_message,4,2 ; @lua_chassis_log_message .no_dead_strip _remap_print .subsections_via_symbols
AnghaBench/Atlas/lib/extr_chassis.c_remap_print.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function set_info _set_info: ## @set_info .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx leaq L_.str(%rip), %rsi callq _lua_pushliteral leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi callq _lua_settable leaq L_.str.2(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral leaq L_.str.3(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi callq _lua_settable leaq L_.str.4(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral leaq L_.str.5(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi addq $8, %rsp popq %rbx popq %rbp jmp _lua_settable ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "_COPYRIGHT" L_.str.1: ## @.str.1 .asciz "Copyright (c) 2008 MySQL AB, 2008 Sun Microsystems, Inc." L_.str.2: ## @.str.2 .asciz "_DESCRIPTION" L_.str.3: ## @.str.3 .asciz "export chassis-functions as chassis.*" L_.str.4: ## @.str.4 .asciz "_VERSION" L_.str.5: ## @.str.5 .asciz "LuaChassis 0.2" .no_dead_strip _set_info .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function set_info _set_info: ; @set_info .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF bl _lua_pushliteral Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 bl _lua_settable Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x19 bl _lua_pushliteral Lloh6: adrp x1, l_.str.3@PAGE Lloh7: add x1, x1, l_.str.3@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 bl _lua_settable Lloh8: adrp x1, l_.str.4@PAGE Lloh9: add x1, x1, l_.str.4@PAGEOFF mov x0, x19 bl _lua_pushliteral Lloh10: adrp x1, l_.str.5@PAGE Lloh11: add x1, x1, l_.str.5@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _lua_settable .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "_COPYRIGHT" l_.str.1: ; @.str.1 .asciz "Copyright (c) 2008 MySQL AB, 2008 Sun Microsystems, Inc." l_.str.2: ; @.str.2 .asciz "_DESCRIPTION" l_.str.3: ; @.str.3 .asciz "export chassis-functions as chassis.*" l_.str.4: ; @.str.4 .asciz "_VERSION" l_.str.5: ; @.str.5 .asciz "LuaChassis 0.2" .no_dead_strip _set_info .subsections_via_symbols
AnghaBench/Atlas/lib/extr_chassis.c_set_info.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _crc32_string ## -- Begin function crc32_string .p2align 4, 0x90 _crc32_string: ## @crc32_string .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx subq $16, %rsp .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 leaq -24(%rbp), %rdx movl $1, %esi callq _luaL_checklstring movq %rax, %rbx movq -24(%rbp), %rdx leaq L_.str(%rip), %rdi movq %rax, %rsi xorl %eax, %eax callq _g_debug movq -24(%rbp), %rsi movq %rbx, %rdi callq _crc32 movl %eax, %ebx leaq L_.str.1(%rip), %rdi movl %eax, %esi xorl %eax, %eax callq _g_debug movq %r14, %rdi movl %ebx, %esi callq _lua_pushnumber movl $1, %eax addq $16, %rsp popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "string:%s, length:%d" L_.str.1: ## @.str.1 .asciz "crc key:%ld" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _crc32_string ; -- Begin function crc32_string .p2align 2 _crc32_string: ; @crc32_string .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 add x2, sp, #24 mov w1, #1 bl _luaL_checklstring mov x20, x0 ldr x8, [sp, #24] stp x0, x8, [sp] Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF bl _g_debug ldr x1, [sp, #24] mov x0, x20 bl _crc32 mov x20, x0 str x20, [sp] Lloh2: adrp x0, l_.str.1@PAGE Lloh3: add x0, x0, l_.str.1@PAGEOFF bl _g_debug mov x0, x19 mov x1, x20 bl _lua_pushnumber mov w0, #1 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload add sp, sp, #64 ret .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "string:%s, length:%d" l_.str.1: ; @.str.1 .asciz "crc key:%ld" .subsections_via_symbols
AnghaBench/Atlas/lib/extr_crc32-lua.c_crc32_string.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function set_info _set_info: ## @set_info .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx leaq L_.str(%rip), %rsi callq _lua_pushliteral leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi callq _lua_settable leaq L_.str.2(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral leaq L_.str.3(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi callq _lua_settable leaq L_.str.4(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral leaq L_.str.5(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi addq $8, %rsp popq %rbx popq %rbp jmp _lua_settable ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "_COPYRIGHT" L_.str.1: ## @.str.1 .asciz "Copyright (C) 2011 Qihoo 360 - wangchao3" L_.str.2: ## @.str.2 .asciz "_DESCRIPTION" L_.str.3: ## @.str.3 .asciz "CRC32 String for Proxy.*" L_.str.4: ## @.str.4 .asciz "_VERSION" L_.str.5: ## @.str.5 .asciz "LuaCRC32string 0.1" .no_dead_strip _set_info .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function set_info _set_info: ; @set_info .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF bl _lua_pushliteral Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 bl _lua_settable Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x19 bl _lua_pushliteral Lloh6: adrp x1, l_.str.3@PAGE Lloh7: add x1, x1, l_.str.3@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 bl _lua_settable Lloh8: adrp x1, l_.str.4@PAGE Lloh9: add x1, x1, l_.str.4@PAGEOFF mov x0, x19 bl _lua_pushliteral Lloh10: adrp x1, l_.str.5@PAGE Lloh11: add x1, x1, l_.str.5@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _lua_settable .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "_COPYRIGHT" l_.str.1: ; @.str.1 .asciz "Copyright (C) 2011 Qihoo 360 - wangchao3" l_.str.2: ; @.str.2 .asciz "_DESCRIPTION" l_.str.3: ; @.str.3 .asciz "CRC32 String for Proxy.*" l_.str.4: ; @.str.4 .asciz "_VERSION" l_.str.5: ; @.str.5 .asciz "LuaCRC32string 0.1" .no_dead_strip _set_info .subsections_via_symbols
AnghaBench/Atlas/lib/extr_crc32-lua.c_set_info.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _crc32 ## -- Begin function crc32 .p2align 4, 0x90 _crc32: ## @crc32 .cfi_startproc ## %bb.0: testl %esi, %esi je LBB0_1 ## %bb.2: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _crc32tab@GOTPCREL(%rip), %rax movq (%rax), %r8 cmpl $1, %esi jne LBB0_4 ## %bb.3: movl $-1, %eax jmp LBB0_6 LBB0_1: xorl %eax, %eax retq LBB0_4: movl %esi, %r9d andl $-2, %r9d movl $-1, %eax .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movzbl %al, %ecx ## kill: def $eax killed $eax killed $rax shrl $8, %eax movzbl (%rdi), %edx xorl %edx, %ecx xorl (%r8,%rcx,4), %eax movzbl %al, %ecx ## kill: def $eax killed $eax def $rax shrl $8, %eax movzbl 1(%rdi), %edx xorl %edx, %ecx xorl (%r8,%rcx,4), %eax addq $2, %rdi addl $-2, %r9d jne LBB0_5 LBB0_6: testb $1, %sil je LBB0_8 ## %bb.7: movzbl %al, %ecx ## kill: def $eax killed $eax killed $rax shrl $8, %eax movzbl (%rdi), %edx xorl %edx, %ecx xorl (%r8,%rcx,4), %eax ## kill: def $eax killed $eax def $rax LBB0_8: notl %eax popq %rbp retq .cfi_endproc ## -- End function .comm _crc32tab,8,3 ## @crc32tab .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _crc32 ; -- Begin function crc32 .p2align 2 _crc32: ; @crc32 .cfi_startproc ; %bb.0: cbz w1, LBB0_4 ; %bb.1: Lloh0: adrp x8, _crc32tab@GOTPAGE Lloh1: ldr x8, [x8, _crc32tab@GOTPAGEOFF] Lloh2: ldr x9, [x8] mov w8, #-1 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldrb w10, [x0], #1 and w11, w8, #0xff eor w10, w11, w10 ldr w10, [x9, w10, uxtw #2] eor w8, w10, w8, lsr #8 subs w1, w1, #1 b.ne LBB0_2 ; %bb.3: mvn w0, w8 ret LBB0_4: mov x0, #0 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _crc32tab,8,3 ; @crc32tab .subsections_via_symbols
AnghaBench/Atlas/lib/extr_crc32.c_crc32.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function lua_g_checksum_md5 _lua_g_checksum_md5: ## @lua_g_checksum_md5 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 leaq -32(%rbp), %rdx movl $1, %esi callq _luaL_checklstring movq %rax, %r15 movq _G_CHECKSUM_MD5@GOTPCREL(%rip), %rax movl (%rax), %edi callq _g_checksum_new movq %rax, %rbx movq -32(%rbp), %rdx movq %rax, %rdi movq %r15, %rsi callq _g_checksum_update movq %rbx, %rdi callq _g_checksum_get_string movq %r14, %rdi movl %eax, %esi callq _lua_pushstring movq %rbx, %rdi callq _g_checksum_free movl $1, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _G_CHECKSUM_MD5,4,2 ## @G_CHECKSUM_MD5 .no_dead_strip _lua_g_checksum_md5 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function lua_g_checksum_md5 _lua_g_checksum_md5: ; @lua_g_checksum_md5 .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 add x2, sp, #8 mov w1, #1 bl _luaL_checklstring mov x20, x0 Lloh0: adrp x8, _G_CHECKSUM_MD5@GOTPAGE Lloh1: ldr x8, [x8, _G_CHECKSUM_MD5@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _g_checksum_new mov x21, x0 ldr x2, [sp, #8] mov x1, x20 bl _g_checksum_update mov x0, x21 bl _g_checksum_get_string mov x1, x0 mov x0, x19 bl _lua_pushstring mov x0, x21 bl _g_checksum_free mov w0, #1 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload add sp, sp, #64 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _G_CHECKSUM_MD5,4,2 ; @G_CHECKSUM_MD5 .no_dead_strip _lua_g_checksum_md5 .subsections_via_symbols
AnghaBench/Atlas/lib/extr_glib2.c_lua_g_checksum_md5.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function lua_g_get_current_time _lua_g_get_current_time: ## @lua_g_get_current_time .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx leaq -16(%rbp), %rdi callq _g_get_current_time movq %rbx, %rdi callq _lua_newtable movl -12(%rbp), %esi movq %rbx, %rdi callq _lua_pushinteger leaq L_.str(%rip), %rdx movq %rbx, %rdi movl $-2, %esi callq _lua_setfield movl -16(%rbp), %esi movq %rbx, %rdi callq _lua_pushinteger leaq L_.str.1(%rip), %rdx movq %rbx, %rdi movl $-2, %esi callq _lua_setfield movl $1, %eax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "tv_sec" L_.str.1: ## @.str.1 .asciz "tv_usec" .no_dead_strip _lua_g_get_current_time .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function lua_g_get_current_time _lua_g_get_current_time: ; @lua_g_get_current_time .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 add x0, sp, #8 bl _g_get_current_time mov x0, x19 bl _lua_newtable ldr w1, [sp, #12] mov x0, x19 bl _lua_pushinteger Lloh0: adrp x2, l_.str@PAGE Lloh1: add x2, x2, l_.str@PAGEOFF mov x0, x19 mov w1, #-2 bl _lua_setfield ldr w1, [sp, #8] mov x0, x19 bl _lua_pushinteger Lloh2: adrp x2, l_.str.1@PAGE Lloh3: add x2, x2, l_.str.1@PAGEOFF mov x0, x19 mov w1, #-2 bl _lua_setfield mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 ret .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "tv_sec" l_.str.1: ; @.str.1 .asciz "tv_usec" .no_dead_strip _lua_g_get_current_time .subsections_via_symbols
AnghaBench/Atlas/lib/extr_glib2.c_lua_g_get_current_time.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function lua_g_usleep _lua_g_usleep: ## @lua_g_usleep .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1, %esi callq _luaL_checkinteger movl %eax, %edi callq _g_usleep xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _lua_g_usleep .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function lua_g_usleep _lua_g_usleep: ; @lua_g_usleep .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w1, #1 bl _luaL_checkinteger bl _g_usleep mov w0, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _lua_g_usleep .subsections_via_symbols
AnghaBench/Atlas/lib/extr_glib2.c_lua_g_usleep.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function set_info _set_info: ## @set_info .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx leaq L_.str(%rip), %rsi callq _lua_pushliteral leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi callq _lua_settable leaq L_.str.2(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral leaq L_.str.3(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi callq _lua_settable leaq L_.str.4(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral leaq L_.str.5(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi addq $8, %rsp popq %rbx popq %rbp jmp _lua_settable ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "_COPYRIGHT" L_.str.1: ## @.str.1 .asciz "Copyright (c) 2010 Oracle" L_.str.2: ## @.str.2 .asciz "_DESCRIPTION" L_.str.3: ## @.str.3 .asciz "export glib2-functions as glib.*" L_.str.4: ## @.str.4 .asciz "_VERSION" L_.str.5: ## @.str.5 .asciz "LuaGlib2 0.1" .no_dead_strip _set_info .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function set_info _set_info: ; @set_info .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF bl _lua_pushliteral Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 bl _lua_settable Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x19 bl _lua_pushliteral Lloh6: adrp x1, l_.str.3@PAGE Lloh7: add x1, x1, l_.str.3@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 bl _lua_settable Lloh8: adrp x1, l_.str.4@PAGE Lloh9: add x1, x1, l_.str.4@PAGEOFF mov x0, x19 bl _lua_pushliteral Lloh10: adrp x1, l_.str.5@PAGE Lloh11: add x1, x1, l_.str.5@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _lua_settable .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "_COPYRIGHT" l_.str.1: ; @.str.1 .asciz "Copyright (c) 2010 Oracle" l_.str.2: ; @.str.2 .asciz "_DESCRIPTION" l_.str.3: ; @.str.3 .asciz "export glib2-functions as glib.*" l_.str.4: ; @.str.4 .asciz "_VERSION" l_.str.5: ; @.str.5 .asciz "LuaGlib2 0.1" .no_dead_strip _set_info .subsections_via_symbols
AnghaBench/Atlas/lib/extr_glib2.c_set_info.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function _file_lock __file_lock: ## @_file_lock .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movsbl (%rdx), %eax cmpl $119, %eax je LBB0_1 ## %bb.2: cmpl $117, %eax je LBB0_6 ## %bb.3: cmpl $114, %eax jne LBB0_5 ## %bb.4: movq _F_RDLCK@GOTPCREL(%rip), %rax jmp LBB0_7 LBB0_1: movq _F_WRLCK@GOTPCREL(%rip), %rax jmp LBB0_7 LBB0_6: movq _F_UNLCK@GOTPCREL(%rip), %rax LBB0_7: movl (%rax), %eax movl %eax, -4(%rbp) movq _SEEK_SET@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -8(%rbp) movq %rcx, -16(%rbp) movq %r8, -24(%rbp) movq %rsi, %rdi callq _fileno movq _F_SETLK@GOTPCREL(%rip), %rcx movl (%rcx), %esi leaq -24(%rbp), %rdx movl %eax, %edi callq _fcntl xorl %ecx, %ecx cmpl $-1, %eax setne %cl movl %ecx, %eax addq $32, %rsp popq %rbp retq LBB0_5: leaq L_.str(%rip), %rsi movq %r9, %rdx addq $32, %rsp popq %rbp jmp _luaL_error ## TAILCALL .cfi_endproc ## -- End function .comm _F_WRLCK,4,2 ## @F_WRLCK .comm _F_RDLCK,4,2 ## @F_RDLCK .comm _F_UNLCK,4,2 ## @F_UNLCK .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: invalid mode" .comm _SEEK_SET,4,2 ## @SEEK_SET .comm _F_SETLK,4,2 ## @F_SETLK .comm _LK_NBLCK,4,2 ## @LK_NBLCK .comm _LK_UNLCK,4,2 ## @LK_UNLCK .comm _SEEK_END,4,2 ## @SEEK_END .no_dead_strip __file_lock .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function _file_lock __file_lock: ; @_file_lock .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 ldrsb w8, [x2] cmp w8, #119 b.eq LBB0_4 ; %bb.1: cmp w8, #117 b.eq LBB0_5 ; %bb.2: cmp w8, #114 b.ne LBB0_7 ; %bb.3: Lloh0: adrp x8, _F_RDLCK@GOTPAGE Lloh1: ldr x8, [x8, _F_RDLCK@GOTPAGEOFF] b LBB0_6 LBB0_4: Lloh2: adrp x8, _F_WRLCK@GOTPAGE Lloh3: ldr x8, [x8, _F_WRLCK@GOTPAGEOFF] b LBB0_6 LBB0_5: Lloh4: adrp x8, _F_UNLCK@GOTPAGE Lloh5: ldr x8, [x8, _F_UNLCK@GOTPAGEOFF] LBB0_6: Lloh6: adrp x9, _SEEK_SET@GOTPAGE Lloh7: ldr x9, [x9, _SEEK_SET@GOTPAGEOFF] ldr w8, [x8] Lloh8: ldr w9, [x9] stp w9, w8, [sp, #24] stp x4, x3, [sp, #8] mov x0, x1 bl _fileno Lloh9: adrp x8, _F_SETLK@GOTPAGE Lloh10: ldr x8, [x8, _F_SETLK@GOTPAGEOFF] Lloh11: ldr w1, [x8] add x2, sp, #8 bl _fcntl cmn w0, #1 cset w0, ne ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret LBB0_7: Lloh12: adrp x1, l_.str@PAGE Lloh13: add x1, x1, l_.str@PAGEOFF mov x2, x5 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 b _luaL_error .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpAdd Lloh12, Lloh13 .cfi_endproc ; -- End function .comm _F_WRLCK,4,2 ; @F_WRLCK .comm _F_RDLCK,4,2 ; @F_RDLCK .comm _F_UNLCK,4,2 ; @F_UNLCK .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: invalid mode" .comm _SEEK_SET,4,2 ; @SEEK_SET .comm _F_SETLK,4,2 ; @F_SETLK .comm _LK_NBLCK,4,2 ; @LK_NBLCK .comm _LK_UNLCK,4,2 ; @LK_UNLCK .comm _SEEK_END,4,2 ; @SEEK_END .no_dead_strip __file_lock .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c__file_lock.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function change_dir _change_dir: ## @change_dir .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movl $1, %r14d movl $1, %esi callq _luaL_checkstring movq %rax, %r15 movq %rax, %rdi callq _chdir testq %rax, %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _lua_pushnil movq _chdir_error@GOTPCREL(%rip), %rax movl (%rax), %ecx leaq L_.str(%rip), %rsi movq %rbx, %rdi movq %r15, %rdx callq _lua_pushfstring movl $2, %r14d jmp LBB0_3 LBB0_2: movq %rbx, %rdi movl $1, %esi callq _lua_pushboolean LBB0_3: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Unable to change working directory to '%s'\n%s\n" .comm _chdir_error,4,2 ## @chdir_error .no_dead_strip _change_dir .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function change_dir _change_dir: ; @change_dir .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 mov w1, #1 bl _luaL_checkstring mov x20, x0 bl _chdir cbz x0, LBB0_2 ; %bb.1: mov x0, x19 bl _lua_pushnil Lloh0: adrp x8, _chdir_error@GOTPAGE Lloh1: ldr x8, [x8, _chdir_error@GOTPAGEOFF] Lloh2: ldr w3, [x8] Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 mov x2, x20 bl _lua_pushfstring mov w20, #2 b LBB0_3 LBB0_2: mov w20, #1 mov x0, x19 mov w1, #1 bl _lua_pushboolean LBB0_3: mov x0, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Unable to change working directory to '%s'\n%s\n" .comm _chdir_error,4,2 ; @chdir_error .no_dead_strip _change_dir .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_change_dir.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function check_file _check_file: ## @check_file .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdx, %r14 movq %rdi, %rbx leaq L_.str(%rip), %rdx callq _luaL_checkudata testq %rax, %rax je LBB0_1 ## %bb.2: movq (%rax), %rax testq %rax, %rax jne LBB0_5 ## %bb.3: leaq L_.str.2(%rip), %rsi jmp LBB0_4 LBB0_1: leaq L_.str.1(%rip), %rsi LBB0_4: movq %rbx, %rdi movq %r14, %rdx callq _luaL_error xorl %eax, %eax LBB0_5: popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "FILE*" L_.str.1: ## @.str.1 .asciz "%s: not a file" L_.str.2: ## @.str.2 .asciz "%s: closed file" .no_dead_strip _check_file .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function check_file _check_file: ; @check_file .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x2 mov x20, x0 Lloh0: adrp x2, l_.str@PAGE Lloh1: add x2, x2, l_.str@PAGEOFF bl _luaL_checkudata cbz x0, LBB0_3 ; %bb.1: ldr x0, [x0] cbnz x0, LBB0_5 ; %bb.2: Lloh2: adrp x1, l_.str.2@PAGE Lloh3: add x1, x1, l_.str.2@PAGEOFF b LBB0_4 LBB0_3: Lloh4: adrp x1, l_.str.1@PAGE Lloh5: add x1, x1, l_.str.1@PAGEOFF LBB0_4: mov x0, x20 mov x2, x19 bl _luaL_error mov x0, #0 LBB0_5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "FILE*" l_.str.1: ; @.str.1 .asciz "%s: not a file" l_.str.2: ; @.str.2 .asciz "%s: closed file" .no_dead_strip _check_file .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_check_file.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function dir_close _dir_close: ## @dir_close .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movl $1, %esi callq _lua_touserdata cmpl $0, (%rax) jne LBB0_3 ## %bb.1: movq %rax, %rbx movq 8(%rax), %rdi testq %rdi, %rdi je LBB0_3 ## %bb.2: callq _closedir movl $1, (%rbx) LBB0_3: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _dir_close .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function dir_close _dir_close: ; @dir_close .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov w1, #1 bl _lua_touserdata ldr w8, [x0] cbnz w8, LBB0_3 ; %bb.1: mov x19, x0 ldr x0, [x0, #8] cbz x0, LBB0_3 ; %bb.2: bl _closedir mov w8, #1 str w8, [x19] LBB0_3: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _dir_close .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_dir_close.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function dir_create_meta _dir_create_meta: ## @dir_create_meta .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movq _DIR_METATABLE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _luaL_newmetatable leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _lua_pushstring movq _dir_close@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi callq _lua_pushcfunction movq %rbx, %rdi movl $-3, %esi callq _lua_settable movl $1, %eax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _DIR_METATABLE,4,2 ## @DIR_METATABLE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "__gc" .comm _dir_close,4,2 ## @dir_close .no_dead_strip _dir_create_meta .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function dir_create_meta _dir_create_meta: ; @dir_create_meta .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, _DIR_METATABLE@GOTPAGE Lloh1: ldr x8, [x8, _DIR_METATABLE@GOTPAGEOFF] Lloh2: ldr w1, [x8] bl _luaL_newmetatable Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _lua_pushstring Lloh5: adrp x8, _dir_close@GOTPAGE Lloh6: ldr x8, [x8, _dir_close@GOTPAGEOFF] Lloh7: ldr w1, [x8] mov x0, x19 bl _lua_pushcfunction mov x0, x19 mov w1, #-3 bl _lua_settable mov w0, #1 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _DIR_METATABLE,4,2 ; @DIR_METATABLE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "__gc" .comm _dir_close,4,2 ; @dir_close .no_dead_strip _dir_create_meta .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_dir_create_meta.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function dir_iter _dir_iter: ## @dir_iter .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r15 movl $1, %r14d movl $1, %edi callq _lua_upvalueindex movq %r15, %rdi movl %eax, %esi callq _lua_touserdata movq %rax, %rbx xorl %esi, %esi cmpl $0, (%rax) sete %sil leaq L_.str(%rip), %rcx movq %r15, %rdi movl $1, %edx callq _luaL_argcheck movl 16(%rbx), %edi callq _readdir testq %rax, %rax je LBB0_2 ## %bb.1: movl (%rax), %esi movq %r15, %rdi callq _lua_pushstring jmp LBB0_3 LBB0_2: movl 16(%rbx), %edi callq _closedir movl $1, (%rbx) xorl %r14d, %r14d LBB0_3: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "closed directory" .comm _errno,4,2 ## @errno .no_dead_strip _dir_iter .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function dir_iter _dir_iter: ; @dir_iter .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 mov w21, #1 mov w0, #1 bl _lua_upvalueindex mov x1, x0 mov x0, x19 bl _lua_touserdata mov x20, x0 ldr w8, [x0] cmp w8, #0 cset w1, eq Lloh0: adrp x3, l_.str@PAGE Lloh1: add x3, x3, l_.str@PAGEOFF mov x0, x19 mov w2, #1 bl _luaL_argcheck ldr w0, [x20, #16] bl _readdir cbz x0, LBB0_2 ; %bb.1: ldr w1, [x0] mov x0, x19 bl _lua_pushstring mov w0, #1 b LBB0_3 LBB0_2: ldr w0, [x20, #16] bl _closedir mov w0, #0 str w21, [x20] LBB0_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "closed directory" .comm _errno,4,2 ; @errno .no_dead_strip _dir_iter .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_dir_iter.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function dir_iter_factory _dir_iter_factory: ## @dir_iter_factory .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movl $1, %esi callq _luaL_checkstring movq %rax, %r14 movq %rbx, %rdi movl $32, %esi callq _lua_newuserdata movq %rax, %r15 movq $0, 24(%rax) movq _DIR_METATABLE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi callq _luaL_getmetatable movq %rbx, %rdi movl $-2, %esi callq _lua_setmetatable movq %r14, %rdi callq _opendir movq %rax, 8(%r15) testq %rax, %rax jne LBB0_2 ## %bb.1: movq _errno@GOTPCREL(%rip), %rax movl (%rax), %edi callq _strerror leaq L_.str(%rip), %rsi movq %rbx, %rdi movq %r14, %rdx movl %eax, %ecx xorl %eax, %eax callq _luaL_error LBB0_2: movq _dir_iter@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi movl $1, %edx callq _lua_pushcclosure movl $1, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _DIR_METATABLE,4,2 ## @DIR_METATABLE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "cannot open %s: %s" .comm _errno,4,2 ## @errno .comm _dir_iter,4,2 ## @dir_iter .comm _MAX_DIR_LENGTH,8,3 ## @MAX_DIR_LENGTH .no_dead_strip _dir_iter_factory .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function dir_iter_factory _dir_iter_factory: ; @dir_iter_factory .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 mov w1, #1 bl _luaL_checkstring mov x20, x0 mov x0, x19 mov w1, #32 bl _lua_newuserdata mov x21, x0 str xzr, [x0, #24] Lloh0: adrp x8, _DIR_METATABLE@GOTPAGE Lloh1: ldr x8, [x8, _DIR_METATABLE@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov x0, x19 bl _luaL_getmetatable mov x0, x19 mov w1, #-2 bl _lua_setmetatable mov x0, x20 bl _opendir str x0, [x21, #8] cbnz x0, LBB0_2 ; %bb.1: Lloh3: adrp x8, _errno@GOTPAGE Lloh4: ldr x8, [x8, _errno@GOTPAGEOFF] Lloh5: ldr w0, [x8] bl _strerror ; kill: def $w0 killed $w0 def $x0 str x0, [sp] Lloh6: adrp x1, l_.str@PAGE Lloh7: add x1, x1, l_.str@PAGEOFF mov x0, x19 mov x2, x20 bl _luaL_error LBB0_2: Lloh8: adrp x8, _dir_iter@GOTPAGE Lloh9: ldr x8, [x8, _dir_iter@GOTPAGEOFF] Lloh10: ldr w1, [x8] mov x0, x19 mov w2, #1 bl _lua_pushcclosure mov w0, #1 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload add sp, sp, #64 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .cfi_endproc ; -- End function .comm _DIR_METATABLE,4,2 ; @DIR_METATABLE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "cannot open %s: %s" .comm _errno,4,2 ; @errno .comm _dir_iter,4,2 ; @dir_iter .comm _MAX_DIR_LENGTH,8,3 ; @MAX_DIR_LENGTH .no_dead_strip _dir_iter_factory .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_dir_iter_factory.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function file_info _file_info: ## @file_info .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r13 movl $1, %esi callq _luaL_checkstring movq %rax, %r14 leaq -48(%rbp), %rsi movq %rax, %rdi callq _stat movq %r13, %rdi testq %rax, %rax je LBB0_2 ## %bb.1: callq _lua_pushnil leaq L_.str(%rip), %rsi movq %r13, %rdi movq %r14, %rdx callq _lua_pushfstring movl $2, %r14d jmp LBB0_19 LBB0_2: movl $2, %esi callq _lua_isstring movq %r13, %rdi movl $2, %esi testq %rax, %rax je LBB0_14 ## %bb.3: callq _lua_tostring movq %rax, %r14 leaq L_.str.1(%rip), %rsi movq %rax, %rdi callq _strcmp testq %rax, %rax je LBB0_4 ## %bb.5: leaq L_.str.2(%rip), %rsi movq %r14, %rdi callq _strcmp testq %rax, %rax je LBB0_6 ## %bb.7: movq _members@GOTPCREL(%rip), %rax movq (%rax), %rax movq 16(%rax), %rsi testq %rsi, %rsi je LBB0_8 ## %bb.9: movb (%r14), %dl addq $32, %rax movl $1, %ecx .p2align 4, 0x90 LBB0_10: ## =>This Inner Loop Header: Depth=1 cmpb %dl, (%rsi) je LBB0_12 ## %bb.11: ## in Loop: Header=BB0_10 Depth=1 incq %rcx movq (%rax), %rsi addq $16, %rax testq %rsi, %rsi jne LBB0_10 LBB0_12: movl %ecx, %ecx jmp LBB0_13 LBB0_14: callq _lua_istable testl %eax, %eax jne LBB0_16 ## %bb.15: movq %r13, %rdi callq _lua_newtable LBB0_16: movq _members@GOTPCREL(%rip), %r12 movq (%r12), %rax movq (%rax), %rsi movl $1, %r14d testq %rsi, %rsi je LBB0_19 ## %bb.17: xorl %ebx, %ebx leaq -48(%rbp), %r15 .p2align 4, 0x90 LBB0_18: ## =>This Inner Loop Header: Depth=1 movq %r13, %rdi callq _lua_pushstring movq (%r12), %rax movq %r13, %rdi movq %r15, %rsi callq *8(%rax,%rbx) movq %r13, %rdi movl $-3, %esi callq _lua_rawset movq (%r12), %rax movq 16(%rax,%rbx), %rsi addq $16, %rbx testq %rsi, %rsi jne LBB0_18 jmp LBB0_19 LBB0_4: xorl %ecx, %ecx jmp LBB0_13 LBB0_6: movl $12, %ecx jmp LBB0_13 LBB0_8: movl $1, %ecx LBB0_13: movq _members@GOTPCREL(%rip), %rax movq (%rax), %rax shlq $4, %rcx leaq -48(%rbp), %rsi movq %r13, %rdi callq *8(%rax,%rcx) movl $1, %r14d LBB0_19: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "cannot obtain information from file `%s'" L_.str.1: ## @.str.1 .asciz "mode" L_.str.2: ## @.str.2 .asciz "blksize" .comm _members,8,3 ## @members .no_dead_strip _file_info .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function file_info _file_info: ; @file_info .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 mov w1, #1 bl _luaL_checkstring mov x20, x0 add x1, sp, #8 bl _stat cbz x0, LBB0_2 ; %bb.1: mov x0, x19 bl _lua_pushnil Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 mov x2, x20 bl _lua_pushfstring mov w0, #2 b LBB0_20 LBB0_2: mov x0, x19 mov w1, #2 bl _lua_isstring cbz x0, LBB0_10 ; %bb.3: mov x0, x19 mov w1, #2 bl _lua_tostring mov x20, x0 Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF bl _strcmp Lloh4: adrp x21, _members@GOTPAGE Lloh5: ldr x21, [x21, _members@GOTPAGEOFF] cbz x0, LBB0_15 ; %bb.4: Lloh6: adrp x1, l_.str.2@PAGE Lloh7: add x1, x1, l_.str.2@PAGEOFF mov x0, x20 bl _strcmp cbz x0, LBB0_16 ; %bb.5: ldr x8, [x21] ldr x11, [x8, #16] cbz x11, LBB0_17 ; %bb.6: ldrb w9, [x20] add x10, x8, #32 mov w8, #1 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldrb w11, [x11] cmp w11, w9 b.eq LBB0_9 ; %bb.8: ; in Loop: Header=BB0_7 Depth=1 add x8, x8, #1 ldr x11, [x10], #16 cbnz x11, LBB0_7 LBB0_9: and x8, x8, #0xffffffff b LBB0_18 LBB0_10: mov x0, x19 mov w1, #2 bl _lua_istable cbnz w0, LBB0_12 ; %bb.11: mov x0, x19 bl _lua_newtable LBB0_12: Lloh8: adrp x20, _members@GOTPAGE Lloh9: ldr x20, [x20, _members@GOTPAGEOFF] ldr x8, [x20] ldr x1, [x8] cbz x1, LBB0_19 ; %bb.13: mov x21, #0 LBB0_14: ; =>This Inner Loop Header: Depth=1 mov x0, x19 bl _lua_pushstring ldr x8, [x20] add x8, x8, x21 ldr x8, [x8, #8] add x1, sp, #8 mov x0, x19 blr x8 mov x0, x19 mov w1, #-3 bl _lua_rawset ldr x8, [x20] add x8, x8, x21 ldr x1, [x8, #16] add x21, x21, #16 cbnz x1, LBB0_14 b LBB0_19 LBB0_15: mov x8, #0 b LBB0_18 LBB0_16: mov w8, #12 b LBB0_18 LBB0_17: mov w8, #1 LBB0_18: ldr x9, [x21] add x8, x9, x8, lsl #4 ldr x8, [x8, #8] add x1, sp, #8 mov x0, x19 blr x8 LBB0_19: mov w0, #1 LBB0_20: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload add sp, sp, #64 ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdrGot Lloh8, Lloh9 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "cannot obtain information from file `%s'" l_.str.1: ; @.str.1 .asciz "mode" l_.str.2: ; @.str.2 .asciz "blksize" .comm _members,8,3 ; @members .no_dead_strip _file_info .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_file_info.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function file_lock _file_lock: ## @file_lock .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx leaq L_.str(%rip), %rdx movl $1, %r14d movl $1, %esi callq _check_file movq %rax, %r12 movq %rbx, %rdi movl $2, %esi callq _luaL_checkstring movq %rax, %r13 movq %rbx, %rdi movl $3, %esi xorl %edx, %edx callq _luaL_optlong movq %rax, %r15 movq %rbx, %rdi movl $4, %esi xorl %edx, %edx callq _luaL_optlong movq %rbx, %rdi movq %r12, %rsi movq %r13, %rdx movq %r15, %rcx movq %rax, %r8 leaq L_.str(%rip), %r9 callq __file_lock testq %rax, %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi movl $1, %esi callq _lua_pushboolean jmp LBB0_3 LBB0_2: movq %rbx, %rdi callq _lua_pushnil movq _errno@GOTPCREL(%rip), %rax movl (%rax), %edi callq _strerror leaq L_.str.1(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _lua_pushfstring movl $2, %r14d LBB0_3: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "lock" L_.str.1: ## @.str.1 .asciz "%s" .comm _errno,4,2 ## @errno .no_dead_strip _file_lock .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function file_lock _file_lock: ; @file_lock .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x0 Lloh0: adrp x20, l_.str@PAGE Lloh1: add x20, x20, l_.str@PAGEOFF mov w1, #1 mov x2, x20 bl _check_file mov x21, x0 mov x0, x19 mov w1, #2 bl _luaL_checkstring mov x22, x0 mov x0, x19 mov w1, #3 mov w2, #0 bl _luaL_optlong mov x23, x0 mov x0, x19 mov w1, #4 mov w2, #0 bl _luaL_optlong mov x4, x0 mov x0, x19 mov x1, x21 mov x2, x22 mov x3, x23 mov x5, x20 bl __file_lock cbz x0, LBB0_2 ; %bb.1: mov w20, #1 mov x0, x19 mov w1, #1 bl _lua_pushboolean b LBB0_3 LBB0_2: mov x0, x19 bl _lua_pushnil Lloh2: adrp x8, _errno@GOTPAGE Lloh3: ldr x8, [x8, _errno@GOTPAGEOFF] Lloh4: ldr w0, [x8] bl _strerror mov x2, x0 Lloh5: adrp x1, l_.str.1@PAGE Lloh6: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _lua_pushfstring mov w20, #2 LBB0_3: mov x0, x20 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh5, Lloh6 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "lock" l_.str.1: ; @.str.1 .asciz "%s" .comm _errno,4,2 ; @errno .no_dead_strip _file_lock .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_file_lock.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function file_unlock _file_unlock: ## @file_unlock .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx leaq L_.str(%rip), %r15 movl $1, %r14d movl $1, %esi movq %r15, %rdx callq _check_file movq %rax, %r12 movq %rbx, %rdi movl $2, %esi xorl %edx, %edx callq _luaL_optlong movq %rax, %r13 movq %rbx, %rdi movl $3, %esi xorl %edx, %edx callq _luaL_optlong leaq L_.str.1(%rip), %rdx movq %rbx, %rdi movq %r12, %rsi movq %r13, %rcx movq %rax, %r8 movq %r15, %r9 callq __file_lock testq %rax, %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi movl $1, %esi callq _lua_pushboolean jmp LBB0_3 LBB0_2: movq %rbx, %rdi callq _lua_pushnil movq _errno@GOTPCREL(%rip), %rax movl (%rax), %edi callq _strerror leaq L_.str.2(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _lua_pushfstring movl $2, %r14d LBB0_3: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "unlock" L_.str.1: ## @.str.1 .asciz "u" L_.str.2: ## @.str.2 .asciz "%s" .comm _errno,4,2 ## @errno .no_dead_strip _file_unlock .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function file_unlock _file_unlock: ; @file_unlock .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 Lloh0: adrp x20, l_.str@PAGE Lloh1: add x20, x20, l_.str@PAGEOFF mov w1, #1 mov x2, x20 bl _check_file mov x21, x0 mov x0, x19 mov w1, #2 mov w2, #0 bl _luaL_optlong mov x22, x0 mov x0, x19 mov w1, #3 mov w2, #0 bl _luaL_optlong mov x4, x0 Lloh2: adrp x2, l_.str.1@PAGE Lloh3: add x2, x2, l_.str.1@PAGEOFF mov x0, x19 mov x1, x21 mov x3, x22 mov x5, x20 bl __file_lock cbz x0, LBB0_2 ; %bb.1: mov w20, #1 mov x0, x19 mov w1, #1 bl _lua_pushboolean b LBB0_3 LBB0_2: mov x0, x19 bl _lua_pushnil Lloh4: adrp x8, _errno@GOTPAGE Lloh5: ldr x8, [x8, _errno@GOTPAGEOFF] Lloh6: ldr w0, [x8] bl _strerror mov x2, x0 Lloh7: adrp x1, l_.str.2@PAGE Lloh8: add x1, x1, l_.str.2@PAGEOFF mov x0, x19 bl _lua_pushfstring mov w20, #2 LBB0_3: mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "unlock" l_.str.1: ; @.str.1 .asciz "u" l_.str.2: ; @.str.2 .asciz "%s" .comm _errno,4,2 ; @errno .no_dead_strip _file_unlock .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_file_unlock.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function file_utime _file_utime: ## @file_utime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx subq $16, %rsp .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx movl $1, %esi callq _luaL_checkstring movq %rax, %r14 movq %rbx, %rdi callq _lua_gettop cmpl $1, %eax jne LBB0_2 ## %bb.1: xorl %esi, %esi jmp LBB0_3 LBB0_2: movq %rbx, %rdi movl $2, %esi xorl %edx, %edx callq _luaL_optnumber movq %rax, -32(%rbp) movq %rbx, %rdi movl $3, %esi movq %rax, %rdx callq _luaL_optnumber movq %rax, -24(%rbp) leaq -32(%rbp), %rsi LBB0_3: movq %r14, %rdi callq _utime testq %rax, %rax je LBB0_5 ## %bb.4: movq %rbx, %rdi callq _lua_pushnil movq _errno@GOTPCREL(%rip), %rax movl (%rax), %edi callq _strerror leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _lua_pushfstring movl $2, %r14d jmp LBB0_6 LBB0_5: movl $1, %r14d movq %rbx, %rdi movl $1, %esi callq _lua_pushboolean LBB0_6: movl %r14d, %eax addq $16, %rsp popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .comm _errno,4,2 ## @errno .no_dead_strip _file_utime .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function file_utime _file_utime: ; @file_utime .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 mov w1, #1 bl _luaL_checkstring mov x20, x0 mov x0, x19 bl _lua_gettop cmp w0, #1 b.ne LBB0_2 ; %bb.1: mov x1, #0 b LBB0_3 LBB0_2: mov x0, x19 mov w1, #2 mov x2, #0 bl _luaL_optnumber mov x2, x0 str x0, [sp] mov x0, x19 mov w1, #3 bl _luaL_optnumber str x0, [sp, #8] mov x1, sp LBB0_3: mov x0, x20 bl _utime cbz x0, LBB0_5 ; %bb.4: mov x0, x19 bl _lua_pushnil Lloh0: adrp x8, _errno@GOTPAGE Lloh1: ldr x8, [x8, _errno@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _strerror mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _lua_pushfstring mov w20, #2 b LBB0_6 LBB0_5: mov w20, #1 mov x0, x19 mov w1, #1 bl _lua_pushboolean LBB0_6: mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 ret .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .comm _errno,4,2 ; @errno .no_dead_strip _file_utime .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_file_utime.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function get_dir _get_dir: ## @get_dir .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx subq $280, %rsp ## imm = 0x118 .cfi_offset %rbx, -24 movq %rdi, %rbx movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -16(%rbp) leaq -288(%rbp), %rdi movl $255, %esi callq _getcwd testq %rax, %rax je LBB0_1 ## %bb.2: leaq -288(%rbp), %rsi movq %rbx, %rdi callq _lua_pushstring movl $1, %eax jmp LBB0_3 LBB0_1: movq %rbx, %rdi callq _lua_pushnil movq _getcwd_error@GOTPCREL(%rip), %rax movq (%rax), %rsi movq %rbx, %rdi callq _lua_pushstring movl $2, %eax LBB0_3: movq ___stack_chk_guard@GOTPCREL(%rip), %rcx movq (%rcx), %rcx cmpq -16(%rbp), %rcx jne LBB0_5 ## %bb.4: addq $280, %rsp ## imm = 0x118 popq %rbx popq %rbp retq LBB0_5: callq ___stack_chk_fail .cfi_endproc ## -- End function .comm _getcwd_error,8,3 ## @getcwd_error .no_dead_strip _get_dir .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function get_dir _get_dir: ; @get_dir .cfi_startproc ; %bb.0: sub sp, sp, #304 .cfi_def_cfa_offset 304 stp x20, x19, [sp, #272] ; 16-byte Folded Spill stp x29, x30, [sp, #288] ; 16-byte Folded Spill add x29, sp, #288 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, ___stack_chk_guard@GOTPAGE Lloh1: ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] Lloh2: ldr x8, [x8] stur x8, [x29, #-24] add x0, sp, #7 mov w1, #255 bl _getcwd cbz x0, LBB0_2 ; %bb.1: add x1, sp, #7 mov x0, x19 bl _lua_pushstring mov w0, #1 b LBB0_3 LBB0_2: mov x0, x19 bl _lua_pushnil Lloh3: adrp x8, _getcwd_error@GOTPAGE Lloh4: ldr x8, [x8, _getcwd_error@GOTPAGEOFF] Lloh5: ldr x1, [x8] mov x0, x19 bl _lua_pushstring mov w0, #2 LBB0_3: ldur x8, [x29, #-24] Lloh6: adrp x9, ___stack_chk_guard@GOTPAGE Lloh7: ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] Lloh8: ldr x9, [x9] cmp x9, x8 b.ne LBB0_5 ; %bb.4: ldp x29, x30, [sp, #288] ; 16-byte Folded Reload ldp x20, x19, [sp, #272] ; 16-byte Folded Reload add sp, sp, #304 ret LBB0_5: bl ___stack_chk_fail .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .cfi_endproc ; -- End function .comm _getcwd_error,8,3 ; @getcwd_error .no_dead_strip _get_dir .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_get_dir.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function make_dir _make_dir: ## @make_dir .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movl $1, %r14d movl $1, %esi callq _luaL_checkstring movq %rax, %r15 xorl %edi, %edi callq _umask movq _S_IRUSR@GOTPCREL(%rip), %rcx movq _S_IWUSR@GOTPCREL(%rip), %rdx movl (%rdx), %esi orl (%rcx), %esi movq _S_IXUSR@GOTPCREL(%rip), %rcx orl (%rcx), %esi movq _S_IRGRP@GOTPCREL(%rip), %rcx orl (%rcx), %esi movq _S_IWGRP@GOTPCREL(%rip), %rcx orl (%rcx), %esi movq _S_IXGRP@GOTPCREL(%rip), %rcx orl (%rcx), %esi movq _S_IROTH@GOTPCREL(%rip), %rcx orl (%rcx), %esi movq %rax, %r12 movq _S_IXOTH@GOTPCREL(%rip), %rax orl (%rax), %esi movq %r15, %rdi callq _mkdir testl %eax, %eax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _lua_pushnil movq _errno@GOTPCREL(%rip), %rax movl (%rax), %edi callq _strerror leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _lua_pushfstring movl $2, %r14d jmp LBB0_3 LBB0_2: movq %r12, %rdi callq _umask movq %rbx, %rdi movl $1, %esi callq _lua_pushboolean LBB0_3: movl %r14d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _S_IRUSR,4,2 ## @S_IRUSR .comm _S_IWUSR,4,2 ## @S_IWUSR .comm _S_IXUSR,4,2 ## @S_IXUSR .comm _S_IRGRP,4,2 ## @S_IRGRP .comm _S_IWGRP,4,2 ## @S_IWGRP .comm _S_IXGRP,4,2 ## @S_IXGRP .comm _S_IROTH,4,2 ## @S_IROTH .comm _S_IXOTH,4,2 ## @S_IXOTH .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .comm _errno,4,2 ## @errno .no_dead_strip _make_dir .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function make_dir _make_dir: ; @make_dir .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 mov w1, #1 bl _luaL_checkstring mov x21, x0 mov x0, #0 bl _umask mov x20, x0 Lloh0: adrp x8, _S_IRUSR@GOTPAGE Lloh1: ldr x8, [x8, _S_IRUSR@GOTPAGEOFF] Lloh2: ldr w8, [x8] Lloh3: adrp x9, _S_IWUSR@GOTPAGE Lloh4: ldr x9, [x9, _S_IWUSR@GOTPAGEOFF] Lloh5: ldr w9, [x9] orr w8, w9, w8 Lloh6: adrp x9, _S_IXUSR@GOTPAGE Lloh7: ldr x9, [x9, _S_IXUSR@GOTPAGEOFF] Lloh8: ldr w9, [x9] orr w8, w8, w9 Lloh9: adrp x9, _S_IRGRP@GOTPAGE Lloh10: ldr x9, [x9, _S_IRGRP@GOTPAGEOFF] Lloh11: ldr w9, [x9] orr w8, w8, w9 Lloh12: adrp x9, _S_IWGRP@GOTPAGE Lloh13: ldr x9, [x9, _S_IWGRP@GOTPAGEOFF] Lloh14: ldr w9, [x9] orr w8, w8, w9 Lloh15: adrp x9, _S_IXGRP@GOTPAGE Lloh16: ldr x9, [x9, _S_IXGRP@GOTPAGEOFF] Lloh17: ldr w9, [x9] orr w8, w8, w9 Lloh18: adrp x9, _S_IROTH@GOTPAGE Lloh19: ldr x9, [x9, _S_IROTH@GOTPAGEOFF] Lloh20: ldr w9, [x9] orr w8, w8, w9 Lloh21: adrp x9, _S_IXOTH@GOTPAGE Lloh22: ldr x9, [x9, _S_IXOTH@GOTPAGEOFF] Lloh23: ldr w9, [x9] orr w1, w8, w9 mov x0, x21 bl _mkdir cbz w0, LBB0_2 ; %bb.1: mov x0, x19 bl _lua_pushnil Lloh24: adrp x8, _errno@GOTPAGE Lloh25: ldr x8, [x8, _errno@GOTPAGEOFF] Lloh26: ldr w0, [x8] bl _strerror mov x2, x0 Lloh27: adrp x1, l_.str@PAGE Lloh28: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _lua_pushfstring mov w20, #2 b LBB0_3 LBB0_2: mov x0, x20 bl _umask mov w20, #1 mov x0, x19 mov w1, #1 bl _lua_pushboolean LBB0_3: mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23 .loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20 .loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17 .loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh27, Lloh28 .loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26 .cfi_endproc ; -- End function .comm _S_IRUSR,4,2 ; @S_IRUSR .comm _S_IWUSR,4,2 ; @S_IWUSR .comm _S_IXUSR,4,2 ; @S_IXUSR .comm _S_IRGRP,4,2 ; @S_IRGRP .comm _S_IWGRP,4,2 ; @S_IWGRP .comm _S_IXGRP,4,2 ; @S_IXGRP .comm _S_IROTH,4,2 ; @S_IROTH .comm _S_IXOTH,4,2 ; @S_IXOTH .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .comm _errno,4,2 ; @errno .no_dead_strip _make_dir .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_make_dir.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_atime _push_st_atime: ## @push_st_atime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_atime .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_atime _push_st_atime: ; @push_st_atime .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_atime .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_atime.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_blksize _push_st_blksize: ## @push_st_blksize .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_blksize .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_blksize _push_st_blksize: ; @push_st_blksize .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_blksize .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_blksize.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_blocks _push_st_blocks: ## @push_st_blocks .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_blocks .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_blocks _push_st_blocks: ; @push_st_blocks .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_blocks .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_blocks.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_ctime _push_st_ctime: ## @push_st_ctime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_ctime .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_ctime _push_st_ctime: ; @push_st_ctime .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_ctime .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_ctime.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_dev _push_st_dev: ## @push_st_dev .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_dev .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_dev _push_st_dev: ; @push_st_dev .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_dev .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_dev.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_gid _push_st_gid: ## @push_st_gid .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_gid .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_gid _push_st_gid: ; @push_st_gid .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_gid .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_gid.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_ino _push_st_ino: ## @push_st_ino .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_ino .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_ino _push_st_ino: ; @push_st_ino .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_ino .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_ino.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_mode _push_st_mode: ## @push_st_mode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl (%rsi), %edi callq _mode2string movq %rbx, %rdi movl %eax, %esi addq $8, %rsp popq %rbx popq %rbp jmp _lua_pushstring ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_mode .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_mode _push_st_mode: ; @push_st_mode .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr w0, [x1] bl _mode2string mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _lua_pushstring .cfi_endproc ; -- End function .no_dead_strip _push_st_mode .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_mode.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_mtime _push_st_mtime: ## @push_st_mtime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_mtime .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_mtime _push_st_mtime: ; @push_st_mtime .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_mtime .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_mtime.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_nlink _push_st_nlink: ## @push_st_nlink .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_nlink .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_nlink _push_st_nlink: ; @push_st_nlink .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_nlink .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_nlink.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_rdev _push_st_rdev: ## @push_st_rdev .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_rdev .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_rdev _push_st_rdev: ; @push_st_rdev .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_rdev .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_rdev.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_size _push_st_size: ## @push_st_size .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_size .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_size _push_st_size: ; @push_st_size .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_size .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_size.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function push_st_uid _push_st_uid: ## @push_st_uid .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %esi popq %rbp jmp _lua_pushnumber ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _push_st_uid .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function push_st_uid _push_st_uid: ; @push_st_uid .cfi_startproc ; %bb.0: ldr w1, [x1] b _lua_pushnumber .cfi_endproc ; -- End function .no_dead_strip _push_st_uid .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_push_st_uid.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function remove_dir _remove_dir: ## @remove_dir .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx movl $1, %r14d movl $1, %esi callq _luaL_checkstring movq %rax, %rdi callq _rmdir testl %eax, %eax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _lua_pushnil movq _errno@GOTPCREL(%rip), %rax movl (%rax), %edi callq _strerror leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _lua_pushfstring movl $2, %r14d jmp LBB0_3 LBB0_2: movq %rbx, %rdi movl $1, %esi callq _lua_pushboolean LBB0_3: movl %r14d, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .comm _errno,4,2 ## @errno .no_dead_strip _remove_dir .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function remove_dir _remove_dir: ; @remove_dir .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 mov w1, #1 bl _luaL_checkstring bl _rmdir cbz w0, LBB0_2 ; %bb.1: mov x0, x19 bl _lua_pushnil Lloh0: adrp x8, _errno@GOTPAGE Lloh1: ldr x8, [x8, _errno@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _strerror mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _lua_pushfstring mov w20, #2 b LBB0_3 LBB0_2: mov w20, #1 mov x0, x19 mov w1, #1 bl _lua_pushboolean LBB0_3: mov x0, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .comm _errno,4,2 ; @errno .no_dead_strip _remove_dir .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_remove_dir.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function set_info _set_info: ## @set_info .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx leaq L_.str(%rip), %rsi callq _lua_pushliteral leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi callq _lua_settable leaq L_.str.2(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral leaq L_.str.3(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi callq _lua_settable leaq L_.str.4(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral leaq L_.str.5(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-3, %esi addq $8, %rsp popq %rbx popq %rbp jmp _lua_settable ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "_COPYRIGHT" L_.str.1: ## @.str.1 .asciz "Copyright (C) 2003-2006 Kepler Project" L_.str.2: ## @.str.2 .asciz "_DESCRIPTION" L_.str.3: ## @.str.3 .asciz "LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution" L_.str.4: ## @.str.4 .asciz "_VERSION" L_.str.5: ## @.str.5 .asciz "LuaFileSystem 1.2" .no_dead_strip _set_info .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function set_info _set_info: ; @set_info .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF bl _lua_pushliteral Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 bl _lua_settable Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x19 bl _lua_pushliteral Lloh6: adrp x1, l_.str.3@PAGE Lloh7: add x1, x1, l_.str.3@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 bl _lua_settable Lloh8: adrp x1, l_.str.4@PAGE Lloh9: add x1, x1, l_.str.4@PAGEOFF mov x0, x19 bl _lua_pushliteral Lloh10: adrp x1, l_.str.5@PAGE Lloh11: add x1, x1, l_.str.5@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-3 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _lua_settable .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "_COPYRIGHT" l_.str.1: ; @.str.1 .asciz "Copyright (C) 2003-2006 Kepler Project" l_.str.2: ; @.str.2 .asciz "_DESCRIPTION" l_.str.3: ; @.str.3 .asciz "LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution" l_.str.4: ; @.str.4 .asciz "_VERSION" l_.str.5: ; @.str.5 .asciz "LuaFileSystem 1.2" .no_dead_strip _set_info .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lfs.c_set_info.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function accumcap _accumcap: ## @accumcap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movq 8(%rdi), %r14 movl (%rdi), %edi leal 1(%rdi), %eax movl %eax, (%rbx) ## kill: def $edi killed $edi killed $rdi callq _isfullcap testq %rax, %rax jne LBB0_7 ## %bb.1: movl (%rbx), %edi callq _isclosecap testq %rax, %rax jne LBB0_7 ## %bb.2: movq %rbx, %rdi callq _pushcapture cmpl $1, %eax jne LBB0_7 ## %bb.3: movl (%rbx), %edi callq _isclosecap testq %rax, %rax jne LBB0_10 ## %bb.4: movq _Cfunction@GOTPCREL(%rip), %r15 .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movl (%rbx), %edi callq _captype cmpq (%r15), %rax jne LBB0_6 ## %bb.9: ## in Loop: Header=BB0_5 Depth=1 movq %rbx, %rdi callq _pushluaval movq %r14, %rdi movl $-2, %esi callq _lua_insert movq %rbx, %rdi xorl %esi, %esi callq _pushallcaptures ## kill: def $eax killed $eax def $rax leal 1(%rax), %esi movq %r14, %rdi movl $1, %edx callq _lua_call movl (%rbx), %edi callq _isclosecap testq %rax, %rax je LBB0_5 LBB0_10: incl (%rbx) movl $1, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_7: leaq L_.str(%rip), %rsi LBB0_8: movq %r14, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _luaL_error ## TAILCALL LBB0_6: leaq L_.str.1(%rip), %rsi jmp LBB0_8 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "no initial value for accumulator capture" .comm _Cfunction,8,3 ## @Cfunction L_.str.1: ## @.str.1 .asciz "invalid (non function) capture to accumulate" .no_dead_strip _accumcap .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function accumcap _accumcap: ; @accumcap .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x20, x0 ldr x19, [x0, #8] ldr w0, [x0] add w8, w0, #1 str w8, [x20] bl _isfullcap cbnz x0, LBB0_8 ; %bb.1: ldr w0, [x20] bl _isclosecap cbnz x0, LBB0_8 ; %bb.2: mov x0, x20 bl _pushcapture cmp w0, #1 b.ne LBB0_8 ; %bb.3: ldr w0, [x20] bl _isclosecap cbnz x0, LBB0_7 ; %bb.4: Lloh0: adrp x21, _Cfunction@GOTPAGE Lloh1: ldr x21, [x21, _Cfunction@GOTPAGEOFF] LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w0, [x20] bl _captype ldr x8, [x21] cmp x0, x8 b.ne LBB0_10 ; %bb.6: ; in Loop: Header=BB0_5 Depth=1 mov x0, x20 bl _pushluaval mov x0, x19 mov w1, #-2 bl _lua_insert mov x0, x20 mov w1, #0 bl _pushallcaptures add w1, w0, #1 mov x0, x19 mov w2, #1 bl _lua_call ldr w0, [x20] bl _isclosecap cbz x0, LBB0_5 LBB0_7: ldr w8, [x20] add w8, w8, #1 str w8, [x20] mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret LBB0_8: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF LBB0_9: mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _luaL_error LBB0_10: Lloh4: adrp x1, l_.str.1@PAGE Lloh5: add x1, x1, l_.str.1@PAGEOFF b LBB0_9 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "no initial value for accumulator capture" .comm _Cfunction,8,3 ; @Cfunction l_.str.1: ; @.str.1 .asciz "invalid (non function) capture to accumulate" .no_dead_strip _accumcap .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_accumcap.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function adddyncaptures _adddyncaptures: ## @adddyncaptures .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %ecx, %ebx movl %edx, %r15d movq %rsi, %r12 movq %rdi, %r14 movq (%rsi), %rax movq _Cruntime@GOTPCREL(%rip), %r13 xorl %edi, %edi cmpq (%r13), %rax jne LBB0_2 ## %bb.1: xorl %edi, %edi cmpl $0, 8(%r12) sete %dil LBB0_2: callq _assert movl %ebx, 12(%r12) cmpl $2, %r15d jl LBB0_5 ## %bb.3: movl %r15d, %eax incl %ebx leaq (%rax,%rax,2), %rax leaq -24(,%rax,8), %rax xorl %ecx, %ecx .p2align 4, 0x90 LBB0_4: ## =>This Inner Loop Header: Depth=1 movl $1, 32(%r12,%rcx) movq %r14, 40(%r12,%rcx) movq (%r13), %rdx movq %rdx, 24(%r12,%rcx) movl %ebx, 36(%r12,%rcx) incl %ebx addq $24, %rcx cmpq %rcx, %rax jne LBB0_4 LBB0_5: movq _Cclose@GOTPCREL(%rip), %rax movq (%rax), %rax movslq %r15d, %rcx leaq (%rcx,%rcx,2), %rcx movq %rax, (%r12,%rcx,8) movl $1, 8(%r12,%rcx,8) movq %r14, 16(%r12,%rcx,8) addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _Cruntime,8,3 ## @Cruntime .comm _Cclose,8,3 ## @Cclose .no_dead_strip _adddyncaptures .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function adddyncaptures _adddyncaptures: ; @adddyncaptures .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x22, x3 mov x20, x2 mov x21, x1 mov x19, x0 ldr x8, [x1] Lloh0: adrp x23, _Cruntime@GOTPAGE Lloh1: ldr x23, [x23, _Cruntime@GOTPAGEOFF] ldr x9, [x23] cmp x8, x9 b.ne LBB0_2 ; %bb.1: ldr w8, [x21, #8] cmp w8, #0 cset w0, eq b LBB0_3 LBB0_2: mov w0, #0 LBB0_3: bl _assert str w22, [x21, #12] cmp w20, #2 b.lt LBB0_6 ; %bb.4: mov w10, w20 add w8, w22, #1 add x9, x21, #40 sub x10, x10, #1 mov w11, #1 LBB0_5: ; =>This Inner Loop Header: Depth=1 str x19, [x9] ldr x12, [x23] stur x12, [x9, #-16] stp w11, w8, [x9, #-8] add w8, w8, #1 add x9, x9, #24 subs x10, x10, #1 b.ne LBB0_5 LBB0_6: Lloh2: adrp x8, _Cclose@GOTPAGE Lloh3: ldr x8, [x8, _Cclose@GOTPAGEOFF] Lloh4: ldr x8, [x8] mov w9, #24 smaddl x9, w20, w9, x21 str x8, [x9] mov w8, #1 str w8, [x9, #8] str x19, [x9, #16] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _Cruntime,8,3 ; @Cruntime .comm _Cclose,8,3 ; @Cclose .no_dead_strip _adddyncaptures .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_adddyncaptures.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function addpatt _addpatt: ## @addpatt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edx, %r15d movq %rsi, %rbx movq %rdi, %r12 movl %edx, %esi callq _lua_touserdata movq %rax, %r13 movq %r12, %rdi movl %r15d, %esi callq _pattsize movl %eax, %r14d movq %r12, %rdi movl %r15d, %esi callq _jointable movl %eax, %r15d leal 1(%r14), %edx movq %rbx, %rdi movq %r13, %rsi callq _copypatt testl %r15d, %r15d je LBB0_7 ## %bb.1: testl %r14d, %r14d jle LBB0_7 ## %bb.2: movslq %r14d, %rax leaq (%rbx,%rax,8), %r12 movslq %r15d, %r15 jmp LBB0_3 .p2align 4, 0x90 LBB0_6: ## in Loop: Header=BB0_3 Depth=1 movq %rbx, %rdi callq _sizei cltq leaq (%rbx,%rax,8), %rbx cmpq %r12, %rbx jae LBB0_7 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq %rbx, %rdi callq _isfenvoff testq %rax, %rax je LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq (%rbx), %rax testq %rax, %rax je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 addq %r15, %rax movq %rax, (%rbx) jmp LBB0_6 LBB0_7: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _addpatt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function addpatt _addpatt: ; @addpatt .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x21, x2 mov x19, x1 mov x22, x0 mov x1, x2 bl _lua_touserdata mov x23, x0 mov x0, x22 mov x1, x21 bl _pattsize mov x20, x0 mov x0, x22 mov x1, x21 bl _jointable mov x21, x0 add w2, w20, #1 mov x0, x19 mov x1, x23 bl _copypatt cbz w21, LBB0_7 ; %bb.1: cmp w20, #1 b.lt LBB0_7 ; %bb.2: sxtw x21, w21 add x22, x19, w20, sxtw #3 b LBB0_4 LBB0_3: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 bl _sizei add x19, x19, w0, sxtw #3 cmp x19, x22 b.hs LBB0_7 LBB0_4: ; =>This Inner Loop Header: Depth=1 mov x0, x19 bl _isfenvoff cbz x0, LBB0_3 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [x19] cbz x8, LBB0_3 ; %bb.6: ; in Loop: Header=BB0_4 Depth=1 add x8, x8, x21 str x8, [x19] b LBB0_3 LBB0_7: mov x0, x20 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _addpatt .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_addpatt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function any _any: ## @any .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $24, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rcx, %rbx movl %edx, %ecx movl %esi, %r12d testq %rbx, %rbx je LBB0_1 ## %bb.2: movslq (%rbx), %r15 jmp LBB0_3 LBB0_1: xorl %r15d, %r15d LBB0_3: leal -1(%r12), %eax movq _UCHAR_MAX@GOTPCREL(%rip), %r14 cltd idivl (%r14) ## kill: def $eax killed $eax def $rax leal (%rcx,%rax), %esi incl %esi callq _newpatt leaq (%rax,%r15,4), %r13 movl (%r14), %ecx cmpl %r12d, %ecx movq %rbx, -56(%rbp) ## 8-byte Spill movq %rax, -48(%rbp) ## 8-byte Spill jge LBB0_6 ## %bb.4: leal (%rax,%r15,4), %ebx movq _IAny@GOTPCREL(%rip), %r15 .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 addq $4, %r13 movl (%r15), %esi movl %ebx, %edi xorl %edx, %edx callq _setinstaux movl (%r14), %ecx subl %ecx, %r12d addl $4, %ebx cmpl %ecx, %r12d jg LBB0_5 LBB0_6: movq _IAny@GOTPCREL(%rip), %rax movl (%rax), %esi movl %r13d, %edi xorl %edx, %edx movl %r12d, %ecx callq _setinstaux movq -56(%rbp), %rcx ## 8-byte Reload testq %rcx, %rcx movq -48(%rbp), %rax ## 8-byte Reload je LBB0_8 ## %bb.7: subq %rax, %r13 addq $4, %r13 shrq $2, %r13 movl %r13d, (%rcx) LBB0_8: addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _UCHAR_MAX,4,2 ## @UCHAR_MAX .comm _IAny,4,2 ## @IAny .no_dead_strip _any .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function any _any: ; @any .cfi_startproc ; %bb.0: stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 mov x19, x3 mov x20, x1 cbz x3, LBB0_2 ; %bb.1: ldrsw x23, [x19] b LBB0_3 LBB0_2: mov x23, #0 LBB0_3: sub w8, w20, #1 Lloh0: adrp x24, _UCHAR_MAX@GOTPAGE Lloh1: ldr x24, [x24, _UCHAR_MAX@GOTPAGEOFF] ldr w9, [x24] sdiv w8, w8, w9 add w8, w2, w8 add w1, w8, #1 bl _newpatt mov x21, x0 add x22, x0, x23, lsl #2 ldr w3, [x24] Lloh2: adrp x25, _IAny@GOTPAGE Lloh3: ldr x25, [x25, _IAny@GOTPAGEOFF] cmp w3, w20 b.ge LBB0_6 ; %bb.4: add w23, w21, w23, lsl #2 LBB0_5: ; =>This Inner Loop Header: Depth=1 add x22, x22, #4 ldr w1, [x25] mov x0, x23 mov w2, #0 bl _setinstaux ldr w3, [x24] add w23, w23, #4 sub w20, w20, w3 cmp w20, w3 b.gt LBB0_5 LBB0_6: ldr w1, [x25] mov x0, x22 mov w2, #0 mov x3, x20 bl _setinstaux cbz x19, LBB0_8 ; %bb.7: sub x8, x22, x21 add x8, x8, #4 lsr x8, x8, #2 str w8, [x19] LBB0_8: mov x0, x21 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload ldp x26, x25, [sp], #80 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _UCHAR_MAX,4,2 ; @UCHAR_MAX .comm _IAny,4,2 ; @IAny .no_dead_strip _any .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_any.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function argcap_l _argcap_l: ## @argcap_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Carg@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdx popq %rbp jmp _emptycap_aux ## TAILCALL .cfi_endproc ## -- End function .comm _Carg,4,2 ## @Carg .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "invalid argument index" .no_dead_strip _argcap_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function argcap_l _argcap_l: ; @argcap_l .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Carg@GOTPAGE Lloh1: ldr x8, [x8, _Carg@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, l_.str@PAGE Lloh4: add x2, x2, l_.str@PAGEOFF b _emptycap_aux .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Carg,4,2 ; @Carg .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "invalid argument index" .no_dead_strip _argcap_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_argcap_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function auxnew _auxnew: ## @auxnew .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %ecx, %r14d movq %rdx, %rbx movq %rsi, %r15 movq %rdi, %r12 movl (%rdx), %esi addl %ecx, %esi callq _newpatt movq %rax, (%r15) movq %r12, %rdi movl $1, %esi callq _jointable movslq (%rbx), %rax movslq %r14d, %rcx addq %rcx, %rax movl %eax, (%rbx) shlq $2, %rax addq (%r15), %rax shlq $2, %rcx subq %rcx, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _auxnew .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function auxnew _auxnew: ; @auxnew .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x3 mov x20, x2 mov x21, x1 mov x22, x0 ldr w8, [x2] add w1, w8, w3 bl _newpatt str x0, [x21] mov x0, x22 mov w1, #1 bl _jointable ldr w8, [x20] add w8, w8, w19 str w8, [x20] ldr x9, [x21] add x8, x9, w8, sxtw #2 sub x0, x8, w19, sxtw #2 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _auxnew .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_auxnew.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function backref_l _backref_l: ## @backref_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Cbackref@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdx popq %rbp jmp _emptycap_aux ## TAILCALL .cfi_endproc ## -- End function .comm _Cbackref,4,2 ## @Cbackref .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "invalid back reference" .no_dead_strip _backref_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function backref_l _backref_l: ; @backref_l .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Cbackref@GOTPAGE Lloh1: ldr x8, [x8, _Cbackref@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, l_.str@PAGE Lloh4: add x2, x2, l_.str@PAGEOFF b _emptycap_aux .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Cbackref,4,2 ; @Cbackref .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "invalid back reference" .no_dead_strip _backref_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_backref_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function backrefcap _backrefcap: ## @backrefcap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq (%rdi), %rbx movl (%rbx), %edx movq %rbx, %rsi callq _findback movq %rax, (%r14) movq %r14, %rdi callq _pushcapture addq $4, %rbx movq %rbx, (%r14) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _backrefcap .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function backrefcap _backrefcap: ; @backrefcap .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr x1, [x0] mov x20, x1 ldr w2, [x20], #4 bl _findback str x0, [x19] mov x0, x19 bl _pushcapture str x20, [x19] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _backrefcap .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_backrefcap.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function basicUnion _basicUnion: ## @basicUnion .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $56, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %r9, %r14 movq %r8, -56(%rbp) ## 8-byte Spill movl %ecx, %r15d movl %edx, %r13d movq %rsi, %r12 movq %rdi, %rbx leaq -88(%rbp), %rsi movq %r12, %rdi callq _tocharset movq -88(%rbp), %rax movq _ISCHARSET@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_3 ## %bb.1: cmpq %rax, (%r14) jne LBB0_3 ## %bb.2: movq _CHARSETINSTSIZE@GOTPCREL(%rip), %rax movl (%rax), %ecx leaq -64(%rbp), %rsi movq %rbx, %rdi movq -56(%rbp), %rdx ## 8-byte Reload callq _auxnew movq %rax, %rbx movq _ISet@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi xorl %edx, %edx callq _setinst movq _i@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -80(%rbp), %rax movq 8(%r14), %rcx movl (%rcx,%rdi,4), %esi orl (%rax,%rdi,4), %esi movq 8(%rbx), %rax movl %esi, (%rax,%rdi,4) callq _loopset movq %rbx, %rdi callq _correctset jmp LBB0_7 LBB0_3: leaq -88(%rbp), %rdi movq %r14, %rsi callq _exclusive testq %rax, %rax jne LBB0_5 ## %bb.4: movq %r12, %rdi callq _isheadfail testq %rax, %rax je LBB0_6 LBB0_5: leal 1(%r13), %eax movl %eax, -44(%rbp) ## 4-byte Spill leal (%r15,%r13), %ecx incl %ecx leaq -64(%rbp), %rsi movq %rbx, %r14 movq %rbx, %rdi movq -56(%rbp), %rdx ## 8-byte Reload callq _auxnew movq %rax, %rbx movq %rax, %rdi movq %r12, %rsi movl %r13d, %edx callq _copypatt movq %rbx, %rdi movl -44(%rbp), %esi ## 4-byte Reload callq _check2test movslq %r13d, %rax leaq (%rbx,%rax,8), %rdi leaq (%rbx,%rax,8), %rbx addq $8, %rbx movq _IJmp@GOTPCREL(%rip), %rax movl (%rax), %esi incl %r15d movl %r15d, %edx callq _setinst movq %r14, %rdi movq %rbx, %rsi movl $2, %edx callq _addpatt LBB0_7: movq -64(%rbp), %rax addq $56, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_6: leal 2(%r13), %eax movl %eax, -44(%rbp) ## 4-byte Spill leal (%r15,%r13), %ecx addl $2, %ecx leaq -64(%rbp), %rsi movq %rbx, -72(%rbp) ## 8-byte Spill movq %rbx, %rdi movq -56(%rbp), %rdx ## 8-byte Reload callq _auxnew movq %rax, %rbx leaq 8(%rax), %r14 movq _IChoice@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi movl -44(%rbp), %edx ## 4-byte Reload callq _setinst movq %r14, %rdi movq %r12, %rsi movl %r13d, %edx callq _copypatt movslq %r13d, %rax leaq (%rbx,%rax,8), %r14 addq $8, %r14 leaq (%rbx,%rax,8), %rbx addq $16, %rbx movq _ICommit@GOTPCREL(%rip), %rax movl (%rax), %esi incl %r15d movq %r14, %rdi movl %r15d, %edx callq _setinst movq -72(%rbp), %rdi ## 8-byte Reload movq %rbx, %rsi movl $2, %edx callq _addpatt movl $-2, %eax subl %r13d, %eax cltq leaq (%r14,%rax,8), %rdi addq $8, %rdi callq _optimizechoice jmp LBB0_7 .cfi_endproc ## -- End function .comm _ISCHARSET,8,3 ## @ISCHARSET .comm _CHARSETINSTSIZE,4,2 ## @CHARSETINSTSIZE .comm _ISet,4,2 ## @ISet .comm _i,8,3 ## @i .comm _IJmp,4,2 ## @IJmp .comm _IChoice,4,2 ## @IChoice .comm _ICommit,4,2 ## @ICommit .no_dead_strip _basicUnion .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function basicUnion _basicUnion: ; @basicUnion .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x24, x23, [sp, #32] ; 16-byte Folded Spill stp x22, x21, [sp, #48] ; 16-byte Folded Spill stp x20, x19, [sp, #64] ; 16-byte Folded Spill stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x24, x5 mov x23, x4 mov x21, x3 mov x20, x2 mov x22, x1 mov x19, x0 add x1, sp, #8 mov x0, x22 bl _tocharset ldr x8, [sp, #8] Lloh0: adrp x9, _ISCHARSET@GOTPAGE Lloh1: ldr x9, [x9, _ISCHARSET@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_3 ; %bb.1: ldr x9, [x24] cmp x9, x8 b.ne LBB0_3 ; %bb.2: Lloh3: adrp x8, _CHARSETINSTSIZE@GOTPAGE Lloh4: ldr x8, [x8, _CHARSETINSTSIZE@GOTPAGEOFF] Lloh5: ldr w3, [x8] add x1, sp, #24 mov x0, x19 mov x2, x23 bl _auxnew mov x19, x0 Lloh6: adrp x8, _ISet@GOTPAGE Lloh7: ldr x8, [x8, _ISet@GOTPAGEOFF] Lloh8: ldr w1, [x8] mov w2, #0 bl _setinst Lloh9: adrp x8, _i@GOTPAGE Lloh10: ldr x8, [x8, _i@GOTPAGEOFF] Lloh11: ldr x0, [x8] ldr x8, [sp, #16] lsl x9, x0, #2 ldr w8, [x8, x9] ldr x10, [x24, #8] ldr w10, [x10, x9] orr w1, w10, w8 ldr x8, [x19, #8] str w1, [x8, x9] bl _loopset mov x0, x19 bl _correctset b LBB0_6 LBB0_3: add x0, sp, #8 mov x1, x24 bl _exclusive cbnz x0, LBB0_5 ; %bb.4: mov x0, x22 bl _isheadfail cbz x0, LBB0_7 LBB0_5: add w24, w20, #1 add w3, w24, w21 add x1, sp, #24 mov x0, x19 mov x2, x23 bl _auxnew mov x23, x0 mov x1, x22 mov x2, x20 bl _copypatt mov x0, x23 mov x1, x24 bl _check2test add x0, x23, w20, sxtw #3 add x20, x0, #8 Lloh12: adrp x8, _IJmp@GOTPAGE Lloh13: ldr x8, [x8, _IJmp@GOTPAGEOFF] Lloh14: ldr w1, [x8] add w2, w21, #1 bl _setinst mov x0, x19 mov x1, x20 mov w2, #2 bl _addpatt LBB0_6: ldr x0, [sp, #24] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload add sp, sp, #96 ret LBB0_7: add w24, w20, #2 add w3, w24, w21 add x1, sp, #24 mov x0, x19 mov x2, x23 bl _auxnew add x23, x0, #8 Lloh15: adrp x8, _IChoice@GOTPAGE Lloh16: ldr x8, [x8, _IChoice@GOTPAGEOFF] Lloh17: ldr w1, [x8] mov x2, x24 bl _setinst mov x0, x23 mov x1, x22 mov x2, x20 bl _copypatt add x0, x23, w20, sxtw #3 add x22, x0, #8 Lloh18: adrp x8, _ICommit@GOTPAGE Lloh19: ldr x8, [x8, _ICommit@GOTPAGEOFF] Lloh20: ldr w1, [x8] add w2, w21, #1 bl _setinst mov x0, x19 mov x1, x22 mov w2, #2 bl _addpatt mov w8, #-2 sub w8, w8, w20 add x0, x22, w8, sxtw #3 bl _optimizechoice b LBB0_6 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14 .loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20 .loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17 .cfi_endproc ; -- End function .comm _ISCHARSET,8,3 ; @ISCHARSET .comm _CHARSETINSTSIZE,4,2 ; @CHARSETINSTSIZE .comm _ISet,4,2 ; @ISet .comm _i,8,3 ; @i .comm _IJmp,4,2 ; @IJmp .comm _IChoice,4,2 ; @IChoice .comm _ICommit,4,2 ; @ICommit .no_dead_strip _basicUnion .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_basicUnion.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function capaccum_l _capaccum_l: ## @capaccum_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Caccum@GOTPCREL(%rip), %rax movl (%rax), %esi xorl %edx, %edx popq %rbp jmp _capture_aux ## TAILCALL .cfi_endproc ## -- End function .comm _Caccum,4,2 ## @Caccum .no_dead_strip _capaccum_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function capaccum_l _capaccum_l: ; @capaccum_l .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Caccum@GOTPAGE Lloh1: ldr x8, [x8, _Caccum@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov w2, #0 b _capture_aux .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Caccum,4,2 ; @Caccum .no_dead_strip _capaccum_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_capaccum_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function capconst_l _capconst_l: ## @capconst_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $24, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r15 callq _lua_gettop movl %eax, %r14d movq %r15, %rdi movl %eax, %esi callq _newpatt movq %rax, %r12 movq %r15, %rdi movl %r14d, %esi xorl %edx, %edx callq _lua_createtable testl %r14d, %r14d jle LBB0_6 ## %bb.1: negl %r14d movl $1, %ebx movq _IEmptyCaptureIdx@GOTPCREL(%rip), %r13 movl $1, %eax movq %rax, -48(%rbp) ## 8-byte Spill movq %r14, -56(%rbp) ## 8-byte Spill jmp LBB0_2 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_2 Depth=1 movq -48(%rbp), %r13 ## 8-byte Reload movl %r13d, %edx xorl %r8d, %r8d callq _setinstcap movq %r15, %rdi movl %ebx, %esi callq _lua_pushvalue leal 1(%r13), %r14d movq %r15, %rdi movl $-2, %esi movl %r13d, %edx callq _lua_rawseti movl %r14d, %eax movq %rax, -48(%rbp) ## 8-byte Spill movq -56(%rbp), %r14 ## 8-byte Reload movq _IEmptyCaptureIdx@GOTPCREL(%rip), %r13 LBB0_5: ## in Loop: Header=BB0_2 Depth=1 addl $4, %r12d leal (%r14,%rbx), %eax incl %eax movl %ebx, %ecx incl %ecx movl %ecx, %ebx cmpl $1, %eax je LBB0_6 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r15, %rdi movl %ebx, %esi callq _lua_isnil movl (%r13), %esi movq _Cconst@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %r12d, %edi testq %rax, %rax je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 xorl %edx, %edx xorl %r8d, %r8d callq _setinstcap jmp LBB0_5 LBB0_6: movq %r15, %rdi movl $-2, %esi callq _lua_setfenv movl $1, %eax addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _IEmptyCaptureIdx,4,2 ## @IEmptyCaptureIdx .comm _Cconst,4,2 ## @Cconst .no_dead_strip _capconst_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function capconst_l _capconst_l: ; @capconst_l .cfi_startproc ; %bb.0: stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 mov x19, x0 bl _lua_gettop mov x20, x0 mov x0, x19 mov x1, x20 bl _newpatt mov x21, x0 mov x0, x19 mov x1, x20 mov w2, #0 bl _lua_createtable cmp w20, #1 b.lt LBB0_6 ; %bb.1: mov w24, #0 mov w22, #1 Lloh0: adrp x25, _IEmptyCaptureIdx@GOTPAGE Lloh1: ldr x25, [x25, _IEmptyCaptureIdx@GOTPAGEOFF] Lloh2: adrp x26, _Cconst@GOTPAGE Lloh3: ldr x26, [x26, _Cconst@GOTPAGEOFF] b LBB0_4 LBB0_2: ; in Loop: Header=BB0_4 Depth=1 mov x0, x21 mov x2, x22 mov w4, #0 bl _setinstcap mov x0, x19 mov x1, x23 bl _lua_pushvalue add w23, w22, #1 mov x0, x19 mov w1, #-2 mov x2, x22 bl _lua_rawseti mov x22, x23 LBB0_3: ; in Loop: Header=BB0_4 Depth=1 add w21, w21, #4 add w24, w24, #1 cmp w20, w24 b.eq LBB0_6 LBB0_4: ; =>This Inner Loop Header: Depth=1 add w23, w24, #1 mov x0, x19 mov x1, x23 bl _lua_isnil ldr w1, [x25] ldr w3, [x26] cbz x0, LBB0_2 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 mov x0, x21 mov w2, #0 mov w4, #0 bl _setinstcap b LBB0_3 LBB0_6: mov x0, x19 mov w1, #-2 bl _lua_setfenv mov w0, #1 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload ldp x26, x25, [sp], #80 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _IEmptyCaptureIdx,4,2 ; @IEmptyCaptureIdx .comm _Cconst,4,2 ; @Cconst .no_dead_strip _capconst_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_capconst_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function capsubst_l _capsubst_l: ## @capsubst_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Csubst@GOTPCREL(%rip), %rax movl (%rax), %esi xorl %edx, %edx popq %rbp jmp _capture_aux ## TAILCALL .cfi_endproc ## -- End function .comm _Csubst,4,2 ## @Csubst .no_dead_strip _capsubst_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function capsubst_l _capsubst_l: ; @capsubst_l .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Csubst@GOTPAGE Lloh1: ldr x8, [x8, _Csubst@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov w2, #0 b _capture_aux .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Csubst,4,2 ; @Csubst .no_dead_strip _capsubst_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_capsubst_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function capture_aux _capture_aux: ## @capture_aux .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $24, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edx, %r15d movl %esi, %r13d movq %rdi, %rbx leaq -48(%rbp), %rdx movl $1, %esi callq _getpatt leaq -44(%rbp), %rdx movq %rax, %rdi xorl %esi, %esi callq _skipchecks movl -48(%rbp), %esi cmpl %esi, %eax jne LBB0_2 ## %bb.1: incl %eax movq %rbx, %rdi movl %eax, %esi callq _newpatt movq %rax, %r12 movq %rbx, %rdi movl %r15d, %esi callq _getlabel movl %eax, %r15d movq %rbx, %rdi movq %r12, %rsi movl $1, %edx callq _addpatt cltq leaq (%r12,%rax,4), %rdi movq _IFullCapture@GOTPCREL(%rip), %rax movl (%rax), %esi movl -44(%rbp), %r8d movl %r15d, %edx movl %r13d, %ecx callq _setinstcap jmp LBB0_3 LBB0_2: addl $2, %esi movq %rbx, %rdi callq _newpatt movq %rax, %r12 addq $4, %rax movq %rax, -56(%rbp) ## 8-byte Spill movq _IOpenCapture@GOTPCREL(%rip), %rax movl (%rax), %r14d movq %rbx, %rdi movl %r15d, %esi callq _getlabel movq %r12, %rdi movl %r14d, %esi movl %eax, %edx movl %r13d, %ecx xorl %r8d, %r8d callq _setinstcap movq %rbx, %rdi movq -56(%rbp), %rsi ## 8-byte Reload movl $1, %edx callq _addpatt cltq leaq (%r12,%rax,4), %rdi addq $4, %rdi movq _ICloseCapture@GOTPCREL(%rip), %rax movl (%rax), %esi movq _Cclose@GOTPCREL(%rip), %rax movl (%rax), %ecx xorl %edx, %edx xorl %r8d, %r8d callq _setinstcap movq %r12, %rdi callq _optimizecaptures LBB0_3: movl $1, %eax addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _IFullCapture,4,2 ## @IFullCapture .comm _IOpenCapture,4,2 ## @IOpenCapture .comm _ICloseCapture,4,2 ## @ICloseCapture .comm _Cclose,4,2 ## @Cclose .no_dead_strip _capture_aux .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function capture_aux _capture_aux: ; @capture_aux .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x21, x2 mov x19, x1 mov x20, x0 add x2, sp, #12 mov w1, #1 bl _getpatt add x2, sp, #8 mov w1, #0 bl _skipchecks ldr w8, [sp, #12] cmp w0, w8 b.ne LBB0_2 ; %bb.1: add w1, w0, #1 mov x0, x20 bl _newpatt mov x22, x0 mov x0, x20 mov x1, x21 bl _getlabel mov x21, x0 mov x0, x20 mov x1, x22 mov w2, #1 bl _addpatt add x0, x22, w0, sxtw #2 Lloh0: adrp x8, _IFullCapture@GOTPAGE Lloh1: ldr x8, [x8, _IFullCapture@GOTPAGEOFF] Lloh2: ldr w1, [x8] ldr w4, [sp, #8] mov x2, x21 mov x3, x19 bl _setinstcap b LBB0_3 LBB0_2: add w1, w8, #2 mov x0, x20 bl _newpatt mov x22, x0 add x23, x0, #4 Lloh3: adrp x8, _IOpenCapture@GOTPAGE Lloh4: ldr x8, [x8, _IOpenCapture@GOTPAGEOFF] Lloh5: ldr w24, [x8] mov x0, x20 mov x1, x21 bl _getlabel mov x2, x0 mov x0, x22 mov x1, x24 mov x3, x19 mov w4, #0 bl _setinstcap mov x0, x20 mov x1, x23 mov w2, #1 bl _addpatt add x0, x23, w0, sxtw #2 Lloh6: adrp x8, _ICloseCapture@GOTPAGE Lloh7: ldr x8, [x8, _ICloseCapture@GOTPAGEOFF] Lloh8: ldr w1, [x8] Lloh9: adrp x8, _Cclose@GOTPAGE Lloh10: ldr x8, [x8, _Cclose@GOTPAGEOFF] Lloh11: ldr w3, [x8] mov w2, #0 mov w4, #0 bl _setinstcap mov x0, x22 bl _optimizecaptures LBB0_3: mov w0, #1 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _IFullCapture,4,2 ; @IFullCapture .comm _IOpenCapture,4,2 ; @IOpenCapture .comm _ICloseCapture,4,2 ; @ICloseCapture .comm _Cclose,4,2 ; @Cclose .no_dead_strip _capture_aux .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_capture_aux.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function capture_l _capture_l: ## @capture_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Csimple@GOTPCREL(%rip), %rax movl (%rax), %esi xorl %edx, %edx popq %rbp jmp _capture_aux ## TAILCALL .cfi_endproc ## -- End function .comm _Csimple,4,2 ## @Csimple .no_dead_strip _capture_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function capture_l _capture_l: ; @capture_l .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Csimple@GOTPAGE Lloh1: ldr x8, [x8, _Csimple@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov w2, #0 b _capture_aux .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Csimple,4,2 ; @Csimple .no_dead_strip _capture_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_capture_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function check2test _check2test: ## @check2test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %esi, %r14d movq %rdi, %rbx callq _ischeck movl %eax, %edi callq _assert movq _ITestAny@GOTPCREL(%rip), %rax movl (%rax), %eax movq _IAny@GOTPCREL(%rip), %rcx subl (%rcx), %eax addl %eax, 4(%rbx) movl %r14d, (%rbx) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _ITestAny,8,3 ## @ITestAny .comm _IAny,8,3 ## @IAny .no_dead_strip _check2test .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function check2test _check2test: ; @check2test .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 bl _ischeck bl _assert Lloh0: adrp x8, _ITestAny@GOTPAGE Lloh1: ldr x8, [x8, _ITestAny@GOTPAGEOFF] Lloh2: ldr w8, [x8] Lloh3: adrp x9, _IAny@GOTPAGE Lloh4: ldr x9, [x9, _IAny@GOTPAGEOFF] Lloh5: ldr w9, [x9] ldr w10, [x20, #4] sub w8, w8, w9 add w8, w10, w8 stp w19, w8, [x20] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _ITestAny,8,3 ; @ITestAny .comm _IAny,8,3 ; @IAny .no_dead_strip _check2test .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_check2test.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function checkrule _checkrule: ## @checkrule .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $40, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %r9d, %r14d movl %r8d, -52(%rbp) ## 4-byte Spill movq %rsi, %rbx movq %rdi, -64(%rbp) ## 8-byte Spill movl %edx, %r15d movl %ecx, -56(%rbp) ## 4-byte Spill movl %edx, -44(%rbp) ## 4-byte Spill cmpl %ecx, %edx jge LBB0_13 ## %bb.1: xorl %r13d, %r13d movl -44(%rbp), %eax ## 4-byte Reload movl %eax, %r15d movl %r14d, -48(%rbp) ## 4-byte Spill jmp LBB0_2 .p2align 4, 0x90 LBB0_11: ## in Loop: Header=BB0_2 Depth=1 movq _IOpenCall@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax cmovel %r15d, %r13d LBB0_12: ## in Loop: Header=BB0_2 Depth=1 movq %r12, %rdi callq _sizei addl %eax, %r15d cmpl -56(%rbp), %r15d ## 4-byte Folded Reload jge LBB0_13 LBB0_2: ## =>This Inner Loop Header: Depth=1 movslq %r15d, %rcx shlq $4, %rcx leaq (%rbx,%rcx), %r12 movq (%rbx,%rcx), %rax movq _IPartialCommit@GOTPCREL(%rip), %rdx cmpq (%rdx), %rax jne LBB0_11 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 cmpq $0, 8(%rbx,%rcx) jns LBB0_11 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi movl %r15d, %esi callq _dest ## kill: def $eax killed $eax def $rax movslq %eax, %r14 shlq $4, %r14 movq -16(%r14,%rbx), %rdx movq _IChoice@GOTPCREL(%rip), %rcx cmpq (%rcx), %rdx movq %rax, -72(%rbp) ## 8-byte Spill jne LBB0_5 ## %bb.6: ## in Loop: Header=BB0_2 Depth=1 leal -1(%rax), %esi movq %rbx, %rdi callq _dest leal 1(%r15), %ecx cmpl %ecx, %eax sete %cl jmp LBB0_7 LBB0_5: ## in Loop: Header=BB0_2 Depth=1 xorl %ecx, %ecx LBB0_7: ## in Loop: Header=BB0_2 Depth=1 movzbl %cl, %edi callq _assert cmpl %r13d, -72(%rbp) ## 4-byte Folded Reload jle LBB0_9 ## %bb.8: ## in Loop: Header=BB0_2 Depth=1 movl -48(%rbp), %r14d ## 4-byte Reload jmp LBB0_12 LBB0_9: ## in Loop: Header=BB0_2 Depth=1 addq %rbx, %r14 movq -64(%rbp), %rdi ## 8-byte Reload movq %rbx, %rsi movq %r14, %rdx movq %r12, %rcx movl -52(%rbp), %r8d ## 4-byte Reload movl -48(%rbp), %r14d ## 4-byte Reload movl %r14d, %r9d callq _verify testl %eax, %eax jne LBB0_12 ## %bb.10: ## in Loop: Header=BB0_2 Depth=1 movq -64(%rbp), %rdi ## 8-byte Reload movl %r14d, %esi callq _val2str movq -64(%rbp), %rdi ## 8-byte Reload leaq L_.str(%rip), %rsi movl %eax, %edx callq _luaL_error jmp LBB0_12 LBB0_13: movslq %r15d, %rax shlq $4, %rax movq -16(%rax,%rbx), %rax movq _IRet@GOTPCREL(%rip), %rcx xorl %edi, %edi cmpq (%rcx), %rax sete %dil callq _assert movslq -44(%rbp), %rdx ## 4-byte Folded Reload shlq $4, %rdx addq %rbx, %rdx movslq -56(%rbp), %rax ## 4-byte Folded Reload shlq $4, %rax leaq (%rbx,%rax), %rcx addq $-16, %rcx movq -64(%rbp), %rdi ## 8-byte Reload movq %rbx, %rsi movl -52(%rbp), %r8d ## 4-byte Reload movl %r14d, %r9d addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _verify ## TAILCALL .cfi_endproc ## -- End function .comm _IPartialCommit,8,3 ## @IPartialCommit .comm _IChoice,8,3 ## @IChoice .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "possible infinite loop in %s" .comm _IOpenCall,8,3 ## @IOpenCall .comm _IRet,8,3 ## @IRet .no_dead_strip _checkrule .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function checkrule _checkrule: ; @checkrule .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x28, x27, [sp, #16] ; 16-byte Folded Spill stp x26, x25, [sp, #32] ; 16-byte Folded Spill stp x24, x23, [sp, #48] ; 16-byte Folded Spill stp x22, x21, [sp, #64] ; 16-byte Folded Spill stp x20, x19, [sp, #80] ; 16-byte Folded Spill stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 .cfi_offset w27, -88 .cfi_offset w28, -96 mov x24, x5 stp w2, w4, [sp, #8] ; 8-byte Folded Spill mov x22, x3 mov x21, x1 mov x23, x0 mov x8, x2 cmp w2, w3 b.ge LBB0_12 ; %bb.1: mov w28, #0 Lloh0: adrp x25, _IPartialCommit@GOTPAGE Lloh1: ldr x25, [x25, _IPartialCommit@GOTPAGEOFF] ldr w8, [sp, #8] ; 4-byte Folded Reload Lloh2: adrp x20, _IOpenCall@GOTPAGE Lloh3: ldr x20, [x20, _IOpenCall@GOTPAGEOFF] b LBB0_4 LBB0_2: ; in Loop: Header=BB0_4 Depth=1 ldr x9, [x20] cmp x8, x9 csel w28, w26, w28, eq LBB0_3: ; in Loop: Header=BB0_4 Depth=1 mov x0, x27 bl _sizei add w8, w26, w0 cmp w8, w22 b.ge LBB0_12 LBB0_4: ; =>This Inner Loop Header: Depth=1 sxtw x26, w8 add x27, x21, w8, sxtw #4 ldr x8, [x27] ldr x9, [x25] cmp x8, x9 b.ne LBB0_2 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 add x9, x21, x26, lsl #4 ldr x9, [x9, #8] tbz x9, #63, LBB0_2 ; %bb.6: ; in Loop: Header=BB0_4 Depth=1 mov x0, x21 mov x1, x26 bl _dest ; kill: def $w0 killed $w0 def $x0 sxtw x19, w0 sub x1, x19, #1 lsl x8, x1, #4 ldr x8, [x21, x8] Lloh4: adrp x9, _IChoice@GOTPAGE Lloh5: ldr x9, [x9, _IChoice@GOTPAGEOFF] Lloh6: ldr x9, [x9] cmp x8, x9 b.ne LBB0_8 ; %bb.7: ; in Loop: Header=BB0_4 Depth=1 mov x0, x21 ; kill: def $w1 killed $w1 killed $x1 bl _dest add w8, w26, #1 cmp w0, w8 cset w0, eq b LBB0_9 LBB0_8: ; in Loop: Header=BB0_4 Depth=1 mov w0, #0 LBB0_9: ; in Loop: Header=BB0_4 Depth=1 bl _assert cmp w19, w28 b.gt LBB0_3 ; %bb.10: ; in Loop: Header=BB0_4 Depth=1 add x2, x21, x19, lsl #4 mov x0, x23 mov x1, x21 mov x3, x27 ldr w4, [sp, #12] ; 4-byte Folded Reload mov x5, x24 bl _verify cbnz w0, LBB0_3 ; %bb.11: ; in Loop: Header=BB0_4 Depth=1 mov x0, x23 mov x1, x24 bl _val2str mov x2, x0 mov x0, x23 Lloh7: adrp x1, l_.str@PAGE Lloh8: add x1, x1, l_.str@PAGEOFF bl _luaL_error b LBB0_3 LBB0_12: add x8, x21, w8, sxtw #4 ldur x8, [x8, #-16] Lloh9: adrp x9, _IRet@GOTPAGE Lloh10: ldr x9, [x9, _IRet@GOTPAGEOFF] Lloh11: ldr x9, [x9] cmp x8, x9 cset w0, eq bl _assert ldp w8, w4, [sp, #8] ; 8-byte Folded Reload add x2, x21, w8, sxtw #4 add x8, x21, w22, sxtw #4 sub x3, x8, #16 mov x0, x23 mov x1, x21 mov x5, x24 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload ldp x20, x19, [sp, #80] ; 16-byte Folded Reload ldp x22, x21, [sp, #64] ; 16-byte Folded Reload ldp x24, x23, [sp, #48] ; 16-byte Folded Reload ldp x26, x25, [sp, #32] ; 16-byte Folded Reload ldp x28, x27, [sp, #16] ; 16-byte Folded Reload add sp, sp, #112 b _verify .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpAdd Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .cfi_endproc ; -- End function .comm _IPartialCommit,8,3 ; @IPartialCommit .comm _IChoice,8,3 ; @IChoice .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "possible infinite loop in %s" .comm _IOpenCall,8,3 ; @IOpenCall .comm _IRet,8,3 ; @IRet .no_dead_strip _checkrule .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_checkrule.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function concat_l _concat_l: ## @concat_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx leaq -32(%rbp), %rdx movl $1, %esi callq _getpatt movq %rax, %r14 leaq -28(%rbp), %rdx movq %rbx, %rdi movl $2, %esi callq _getpatt movq %rax, %r15 movq %r14, %rdi callq _isany testq %rax, %rax je LBB0_3 ## %bb.1: movq %r15, %rdi callq _isany testq %rax, %rax je LBB0_3 ## %bb.2: movq (%r15), %rsi addq (%r14), %rsi movq %rbx, %rdi xorl %edx, %edx xorl %ecx, %ecx callq _any jmp LBB0_4 LBB0_3: movl -28(%rbp), %esi addl -32(%rbp), %esi movq %rbx, %rdi callq _newpatt movq %rax, %r14 movq %rbx, %rdi movq %rax, %rsi movl $1, %edx callq _addpatt cltq leaq (%r14,%rax,8), %rsi movq %rbx, %rdi movl $2, %edx callq _addpatt movq %r14, %rdi callq _optimizecaptures LBB0_4: movl $1, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _concat_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function concat_l _concat_l: ; @concat_l .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 add x2, sp, #12 mov w1, #1 bl _getpatt mov x20, x0 add x2, sp, #8 mov x0, x19 mov w1, #2 bl _getpatt mov x21, x0 mov x0, x20 bl _isany cbz x0, LBB0_3 ; %bb.1: mov x0, x21 bl _isany cbz x0, LBB0_3 ; %bb.2: ldr x8, [x20] ldr x9, [x21] add x1, x9, x8 mov x0, x19 mov w2, #0 mov x3, #0 bl _any b LBB0_4 LBB0_3: ldp w9, w8, [sp, #8] add w1, w9, w8 mov x0, x19 bl _newpatt mov x20, x0 mov x0, x19 mov x1, x20 mov w2, #1 bl _addpatt add x1, x20, w0, sxtw #3 mov x0, x19 mov w2, #2 bl _addpatt mov x0, x20 bl _optimizecaptures LBB0_4: mov w0, #1 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .no_dead_strip _concat_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_concat_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function diff_l _diff_l: ## @diff_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $32, %rsp .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r15 leaq -40(%rbp), %rdx movl $1, %esi callq _getpatt movq %rax, %rbx leaq -36(%rbp), %rdx movq %r15, %rdi movl $2, %esi callq _getpatt movq %rax, %r14 leaq -56(%rbp), %rsi movq %rbx, %rdi callq _tocharset movq _ISCHARSET@GOTPCREL(%rip), %rbx cmpq (%rbx), %rax jne LBB0_3 ## %bb.1: leaq -48(%rbp), %rsi movq %r14, %rdi callq _tocharset cmpq (%rbx), %rax jne LBB0_3 ## %bb.2: movq %r15, %rdi callq _newcharset movq %rax, %rbx movq _i@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -56(%rbp), %rax movq -48(%rbp), %rcx movl (%rcx,%rdi,4), %esi notl %esi andl (%rax,%rdi,4), %esi movq 8(%rbx), %rax movl %esi, (%rax,%rdi,4) callq _loopset movq %rbx, %rdi callq _correctset jmp LBB0_6 LBB0_3: movq %r14, %rdi callq _isheadfail movl -36(%rbp), %ecx testq %rax, %rax je LBB0_5 ## %bb.4: movl -40(%rbp), %eax leal (%rcx,%rax), %esi incl %esi movq %r15, %rdi callq _newpatt movq %rax, %rbx movq %r15, %rdi movq %rax, %rsi movl $2, %edx callq _addpatt movslq %eax, %r12 leaq (%rbx,%r12,8), %r14 movslq -36(%rbp), %rax leal 1(%rax), %esi shlq $3, %rax movq %r14, %rdi subq %rax, %rdi callq _check2test leaq (%rbx,%r12,8), %rbx addq $8, %rbx movq _IFail@GOTPCREL(%rip), %rax movl (%rax), %esi movl %r14d, %edi xorl %edx, %edx callq _setinst movq %r15, %rdi movq %rbx, %rsi movl $1, %edx callq _addpatt jmp LBB0_6 LBB0_5: movl -40(%rbp), %eax leal (%rcx,%rax), %esi addl $2, %esi movq %r15, %rdi callq _newpatt movq %rax, %r14 leaq 8(%rax), %rbx movq _IChoice@GOTPCREL(%rip), %rax movl (%rax), %esi movl -36(%rbp), %edx addl $2, %edx movl %r14d, %edi callq _setinst movq %r15, %rdi movq %rbx, %rsi movl $2, %edx callq _addpatt cltq leaq (%r14,%rax,8), %rdi addq $8, %rdi leaq 16(%r14,%rax,8), %rbx movq _IFailTwice@GOTPCREL(%rip), %rax movl (%rax), %esi ## kill: def $edi killed $edi killed $rdi xorl %edx, %edx callq _setinst movq %r15, %rdi movq %rbx, %rsi movl $1, %edx callq _addpatt movq %r14, %rdi callq _optimizechoice LBB0_6: movl $1, %eax addq $32, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _ISCHARSET,8,3 ## @ISCHARSET .comm _i,8,3 ## @i .comm _IFail,4,2 ## @IFail .comm _IChoice,4,2 ## @IChoice .comm _IFailTwice,4,2 ## @IFailTwice .no_dead_strip _diff_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function diff_l _diff_l: ; @diff_l .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 add x2, sp, #28 mov w1, #1 bl _getpatt mov x21, x0 add x2, sp, #24 mov x0, x19 mov w1, #2 bl _getpatt mov x20, x0 add x1, sp, #16 mov x0, x21 bl _tocharset Lloh0: adrp x21, _ISCHARSET@GOTPAGE Lloh1: ldr x21, [x21, _ISCHARSET@GOTPAGEOFF] ldr x8, [x21] cmp x0, x8 b.ne LBB0_3 ; %bb.1: add x1, sp, #8 mov x0, x20 bl _tocharset ldr x8, [x21] cmp x0, x8 b.ne LBB0_3 ; %bb.2: mov x0, x19 bl _newcharset mov x19, x0 Lloh2: adrp x8, _i@GOTPAGE Lloh3: ldr x8, [x8, _i@GOTPAGEOFF] Lloh4: ldr x0, [x8] ldp x10, x8, [sp, #8] lsl x9, x0, #2 ldr w8, [x8, x9] ldr w10, [x10, x9] bic w1, w8, w10 ldr x8, [x19, #8] str w1, [x8, x9] bl _loopset mov x0, x19 bl _correctset b LBB0_6 LBB0_3: mov x0, x20 bl _isheadfail ldr w8, [sp, #24] cbz x0, LBB0_5 ; %bb.4: ldr w9, [sp, #28] add w8, w8, w9 add w1, w8, #1 mov x0, x19 bl _newpatt mov x20, x0 mov x0, x19 mov x1, x20 mov w2, #2 bl _addpatt add x20, x20, w0, sxtw #3 ldrsw x8, [sp, #24] sub x0, x20, x8, lsl #3 add w1, w8, #1 bl _check2test add x21, x20, #8 Lloh5: adrp x8, _IFail@GOTPAGE Lloh6: ldr x8, [x8, _IFail@GOTPAGEOFF] Lloh7: ldr w1, [x8] mov x0, x20 mov w2, #0 bl _setinst mov x0, x19 mov x1, x21 mov w2, #1 bl _addpatt b LBB0_6 LBB0_5: ldr w9, [sp, #28] add w8, w8, w9 add w1, w8, #2 mov x0, x19 bl _newpatt mov x20, x0 add x21, x0, #8 Lloh8: adrp x8, _IChoice@GOTPAGE Lloh9: ldr x8, [x8, _IChoice@GOTPAGEOFF] Lloh10: ldr w1, [x8] ldr w8, [sp, #24] add w2, w8, #2 bl _setinst mov x0, x19 mov x1, x21 mov w2, #2 bl _addpatt add x0, x21, w0, sxtw #3 add x21, x0, #8 Lloh11: adrp x8, _IFailTwice@GOTPAGE Lloh12: ldr x8, [x8, _IFailTwice@GOTPAGEOFF] Lloh13: ldr w1, [x8] ; kill: def $w0 killed $w0 killed $x0 mov w2, #0 bl _setinst mov x0, x19 mov x1, x21 mov w2, #1 bl _addpatt mov x0, x20 bl _optimizechoice LBB0_6: mov w0, #1 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload add sp, sp, #80 ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .cfi_endproc ; -- End function .comm _ISCHARSET,8,3 ; @ISCHARSET .comm _i,8,3 ; @i .comm _IFail,4,2 ; @IFail .comm _IChoice,4,2 ; @IChoice .comm _IFailTwice,4,2 ; @IFailTwice .no_dead_strip _diff_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_diff_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function doublecap _doublecap: ## @doublecap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %ecx, %r14d movl %edx, %ebx movq %rsi, %r12 movq %rdi, %r15 movq _INT_MAX@GOTPCREL(%rip), %rax movl (%rax), %eax leal 7(%rax), %ecx testl %eax, %eax cmovnsl %eax, %ecx sarl $3, %ecx cmpl %edx, %ecx jg LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %r15, %rdi callq _luaL_error LBB0_2: leal (,%rbx,8), %esi movq %r15, %rdi callq _lua_newuserdata movq %rax, %r13 shll $2, %ebx movq %rax, %rdi movq %r12, %rsi movl %ebx, %edx callq _memcpy movl %r14d, %edi callq _caplistidx movq %r15, %rdi movl %eax, %esi callq _lua_replace movq %r13, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _INT_MAX,4,2 ## @INT_MAX .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "too many captures" .no_dead_strip _doublecap .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function doublecap _doublecap: ; @doublecap .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x20, x3 mov x22, x2 mov x21, x1 mov x19, x0 Lloh0: adrp x8, _INT_MAX@GOTPAGE Lloh1: ldr x8, [x8, _INT_MAX@GOTPAGEOFF] Lloh2: ldr w8, [x8] add w9, w8, #7 cmp w8, #0 csel w8, w9, w8, lt cmp w2, w8, asr #3 b.lt LBB0_2 ; %bb.1: Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _luaL_error LBB0_2: lsl w1, w22, #3 mov x0, x19 bl _lua_newuserdata mov x23, x0 lsl w2, w22, #2 mov x1, x21 bl _memcpy mov x0, x20 bl _caplistidx mov x1, x0 mov x0, x19 bl _lua_replace mov x0, x23 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _INT_MAX,4,2 ; @INT_MAX .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "too many captures" .no_dead_strip _doublecap .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_doublecap.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function emptycap_aux _emptycap_aux: ## @emptycap_aux .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %r15 movl %esi, %r14d movq %rdi, %rbx movl $1, %esi callq _luaL_checkint movl %eax, %r12d movq %rbx, %rdi movl $1, %esi callq _newpatt testl %r12d, %r12d setg %cl movq _SHRT_MAX@GOTPCREL(%rip), %rdx cmpl (%rdx), %r12d movq %rax, %r13 setle %al andb %cl, %al movzbl %al, %esi movq %rbx, %rdi movl $1, %edx movq %r15, %rcx callq _luaL_argcheck movq _IEmptyCapture@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r13, %rdi movl %r12d, %edx movl %r14d, %ecx xorl %r8d, %r8d callq _setinstcap movl $1, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _SHRT_MAX,4,2 ## @SHRT_MAX .comm _IEmptyCapture,4,2 ## @IEmptyCapture .no_dead_strip _emptycap_aux .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function emptycap_aux _emptycap_aux: ; @emptycap_aux .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x2 mov x20, x1 mov x21, x0 mov w1, #1 bl _luaL_checkint mov x22, x0 mov x0, x21 mov w1, #1 bl _newpatt mov x23, x0 cmp w22, #0 Lloh0: adrp x8, _SHRT_MAX@GOTPAGE Lloh1: ldr x8, [x8, _SHRT_MAX@GOTPAGEOFF] Lloh2: ldr w8, [x8] ccmp w22, w8, #0, gt cset w1, le mov x0, x21 mov w2, #1 mov x3, x19 bl _luaL_argcheck Lloh3: adrp x8, _IEmptyCapture@GOTPAGE Lloh4: ldr x8, [x8, _IEmptyCapture@GOTPAGEOFF] Lloh5: ldr w1, [x8] mov x0, x23 mov x2, x22 mov x3, x20 mov w4, #0 bl _setinstcap mov w0, #1 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _SHRT_MAX,4,2 ; @SHRT_MAX .comm _IEmptyCapture,4,2 ; @IEmptyCapture .no_dead_strip _emptycap_aux .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_emptycap_aux.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function exclusive _exclusive: ## @exclusive .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _NOINFO@GOTPCREL(%rip), %rax movq (%rax), %rax cmpq %rax, (%rdi) je LBB0_2 ## %bb.1: cmpq %rax, (%rsi) jne LBB0_3 LBB0_2: xorl %eax, %eax popq %rbp retq LBB0_3: movl 8(%rdi), %edi movl 8(%rsi), %esi popq %rbp jmp _exclusiveset ## TAILCALL .cfi_endproc ## -- End function .comm _NOINFO,8,3 ## @NOINFO .no_dead_strip _exclusive .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function exclusive _exclusive: ; @exclusive .cfi_startproc ; %bb.0: ldr x9, [x0] Lloh0: adrp x8, _NOINFO@GOTPAGE Lloh1: ldr x8, [x8, _NOINFO@GOTPAGEOFF] Lloh2: ldr x8, [x8] cmp x9, x8 b.eq LBB0_2 ; %bb.1: ldr x9, [x1] cmp x9, x8 b.ne LBB0_3 LBB0_2: mov w0, #0 ret LBB0_3: ldr w0, [x0, #8] ldr w1, [x1, #8] b _exclusiveset .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _NOINFO,8,3 ; @NOINFO .no_dead_strip _exclusive .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_exclusive.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function fillcharset _fillcharset: ## @fillcharset .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %r14 movl 8(%rdi), %eax addl $-128, %eax cmpl $5, %eax ja LBB0_6 ## %bb.1: movq %rdi, %rbx movl $3, %ecx btl %eax, %ecx jb LBB0_4 ## %bb.2: movl $20, %ecx btl %eax, %ecx jb LBB0_5 ## %bb.3: movq _i@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $0, (%r14,%rdi,4) xorl %esi, %esi callq _loopset movl 12(%rbx), %esi movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _setchar ## TAILCALL LBB0_4: movq 16(%rbx), %rdi xorl %esi, %esi callq _testchar movl %eax, %edi callq _assert LBB0_5: movq _i@GOTPCREL(%rip), %rax movq (%rax), %rdi movq 16(%rbx), %rax movl (%rax,%rdi,4), %esi movl %esi, (%r14,%rdi,4) jmp LBB0_7 LBB0_6: movq _i@GOTPCREL(%rip), %rax movq (%rax), %rdi movl $255, (%r14,%rdi,4) movl $255, %esi LBB0_7: popq %rbx popq %r14 popq %rbp jmp _loopset ## TAILCALL .cfi_endproc ## -- End function .comm _i,8,3 ## @i .no_dead_strip _fillcharset .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function fillcharset _fillcharset: ; @fillcharset .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 ldr w8, [x0, #8] sub w8, w8, #128 cmp w8, #5 b.hi LBB0_6 ; %bb.1: mov x20, x0 mov w9, #1 lsl w8, w9, w8 tst w8, #0x3 b.ne LBB0_4 ; %bb.2: mov w9, #20 tst w8, w9 b.ne LBB0_5 ; %bb.3: Lloh0: adrp x8, _i@GOTPAGE Lloh1: ldr x8, [x8, _i@GOTPAGEOFF] Lloh2: ldr x0, [x8] str wzr, [x19, x0, lsl #2] mov w1, #0 bl _loopset ldr w1, [x20, #12] mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _setchar LBB0_4: ldr x0, [x20, #16] mov w1, #0 bl _testchar bl _assert LBB0_5: Lloh3: adrp x8, _i@GOTPAGE Lloh4: ldr x8, [x8, _i@GOTPAGEOFF] Lloh5: ldr x0, [x8] ldr x8, [x20, #16] lsl x9, x0, #2 ldr w1, [x8, x9] str w1, [x19, x9] b LBB0_7 LBB0_6: Lloh6: adrp x8, _i@GOTPAGE Lloh7: ldr x8, [x8, _i@GOTPAGEOFF] Lloh8: ldr x0, [x8] mov w8, #255 str w8, [x19, x0, lsl #2] mov w1, #255 LBB0_7: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _loopset .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .cfi_endproc ; -- End function .comm _i,8,3 ; @i .no_dead_strip _fillcharset .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_fillcharset.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function findback _findback: ## @findback .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r13 testl %edx, %edx jle LBB0_8 ## %bb.1: movl %edx, %r14d movq %rdi, %r15 xorl %ebx, %ebx leaq L_.str(%rip), %r12 jmp LBB0_2 .p2align 4, 0x90 LBB0_6: ## in Loop: Header=BB0_2 Depth=1 movq %r13, %rdi callq _isfullcap cmpl $1, %eax sbbl $0, %ebx LBB0_7: ## in Loop: Header=BB0_2 Depth=1 incl %ebx cmpl %r14d, %ebx jge LBB0_8 LBB0_2: ## =>This Inner Loop Header: Depth=1 cmpq 8(%r15), %r13 jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movl (%r15), %edi movq %r12, %rsi movl %r14d, %edx callq _luaL_error LBB0_4: ## in Loop: Header=BB0_2 Depth=1 addq $-4, %r13 movq %r13, %rdi callq _isclosecap testq %rax, %rax je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_2 Depth=1 movq %r13, %rdi callq _findopen movq %rax, %r13 jmp LBB0_7 LBB0_8: movq %r13, %rdi callq _isclosecap xorl %edi, %edi testq %rax, %rax sete %dil callq _assert movq %r13, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "invalid back reference (%d)" .no_dead_strip _findback .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function findback _findback: ; @findback .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x1 cmp w2, #1 b.lt LBB0_8 ; %bb.1: mov x20, x2 mov x21, x0 mov w23, #0 Lloh0: adrp x22, l_.str@PAGE Lloh1: add x22, x22, l_.str@PAGEOFF b LBB0_4 LBB0_2: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 bl _isfullcap cmp w0, #0 cset w8, eq sub w23, w23, w8 LBB0_3: ; in Loop: Header=BB0_4 Depth=1 add w23, w23, #1 cmp w23, w20 b.ge LBB0_8 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr x8, [x21, #8] cmp x19, x8 b.ne LBB0_6 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 ldr w0, [x21] mov x1, x22 mov x2, x20 bl _luaL_error LBB0_6: ; in Loop: Header=BB0_4 Depth=1 sub x19, x19, #4 mov x0, x19 bl _isclosecap cbz x0, LBB0_2 ; %bb.7: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 bl _findopen mov x19, x0 b LBB0_3 LBB0_8: mov x0, x19 bl _isclosecap cmp x0, #0 cset w0, eq bl _assert mov x0, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "invalid back reference (%d)" .no_dead_strip _findback .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_findback.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function findopen _findopen: ## @findopen .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx xorl %r14d, %r14d jmp LBB0_1 LBB0_2: ## in Loop: Header=BB0_1 Depth=1 incl %r14d .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 addq $-4, %rbx movq %rbx, %rdi callq _isclosecap testq %rax, %rax jne LBB0_2 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi callq _isfullcap testl %eax, %eax jne LBB0_1 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 subl $1, %r14d jae LBB0_1 ## %bb.5: movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _findopen .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function findopen _findopen: ; @findopen .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 mov w20, #0 b LBB0_2 LBB0_1: ; in Loop: Header=BB0_2 Depth=1 add w20, w20, #1 LBB0_2: ; =>This Inner Loop Header: Depth=1 sub x19, x19, #4 mov x0, x19 bl _isclosecap cbnz x0, LBB0_1 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 mov x0, x19 bl _isfullcap cbnz w0, LBB0_2 ; %bb.4: ; in Loop: Header=BB0_2 Depth=1 cbz w20, LBB0_6 ; %bb.5: ; in Loop: Header=BB0_2 Depth=1 sub w20, w20, #1 b LBB0_2 LBB0_6: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _findopen .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_findopen.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function firstpart _firstpart: ## @firstpart .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %esi, %r14d movq %rdi, %rbx callq _istest testq %rax, %rax je LBB0_2 ## %bb.1: movslq (%rbx), %rax leaq -1(%rax), %rcx movq %rcx, %rdx shlq $4, %rdx movq 8(%rbx,%rdx), %rsi movq _IJmp@GOTPCREL(%rip), %rdi cmpq (%rdi), %rsi jne LBB0_4 jmp LBB0_5 LBB0_2: movq 8(%rbx), %rcx movq _IChoice@GOTPCREL(%rip), %rdx xorl %eax, %eax cmpq (%rdx), %rcx jne LBB0_7 ## %bb.3: movslq (%rbx), %rax leaq -1(%rax), %rcx movq %rcx, %rdx shlq $4, %rdx movq 8(%rbx,%rdx), %rsi LBB0_4: movq _ICommit@GOTPCREL(%rip), %rdi cmpq (%rdi), %rsi jne LBB0_6 LBB0_5: addl (%rbx,%rdx), %ecx cmpl %r14d, %ecx je LBB0_7 LBB0_6: xorl %eax, %eax LBB0_7: ## kill: def $eax killed $eax killed $rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _IJmp,8,3 ## @IJmp .comm _ICommit,8,3 ## @ICommit .comm _IChoice,8,3 ## @IChoice .no_dead_strip _firstpart .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function firstpart _firstpart: ; @firstpart .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 bl _istest cbz x0, LBB0_2 ; %bb.1: ldr w0, [x20] sub w8, w0, #1 add x9, x20, w8, sxtw #4 ldr x9, [x9, #8] Lloh0: adrp x10, _IJmp@GOTPAGE Lloh1: ldr x10, [x10, _IJmp@GOTPAGEOFF] Lloh2: ldr x10, [x10] Lloh3: adrp x11, _ICommit@GOTPAGE Lloh4: ldr x11, [x11, _ICommit@GOTPAGEOFF] Lloh5: ldr x11, [x11] cmp x9, x10 ccmp x9, x11, #4, ne b.eq LBB0_4 b LBB0_5 LBB0_2: ldr x8, [x20, #8] Lloh6: adrp x9, _IChoice@GOTPAGE Lloh7: ldr x9, [x9, _IChoice@GOTPAGEOFF] Lloh8: ldr x9, [x9] cmp x8, x9 b.ne LBB0_5 ; %bb.3: ldr w0, [x20] sub w8, w0, #1 add x9, x20, w8, sxtw #4 ldr x9, [x9, #8] Lloh9: adrp x10, _ICommit@GOTPAGE Lloh10: ldr x10, [x10, _ICommit@GOTPAGEOFF] Lloh11: ldr x10, [x10] cmp x9, x10 b.ne LBB0_5 LBB0_4: sxtw x8, w8 lsl x9, x8, #4 ldr w9, [x20, x9] add w8, w9, w8 cmp w8, w19 b.eq LBB0_6 LBB0_5: mov w0, #0 LBB0_6: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .cfi_endproc ; -- End function .comm _IJmp,8,3 ; @IJmp .comm _ICommit,8,3 ; @ICommit .comm _IChoice,8,3 ; @IChoice .no_dead_strip _firstpart .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_firstpart.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function fix_l _fix_l: ## @fix_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $40, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %esi, %ebx movq %rdi, %r12 callq _lua_gettop movl %eax, %r14d movq %r12, %rdi callq _lua_newtable movq %r12, %rdi movl $1, %esi callq _lua_pushinteger movq %r12, %rdi callq _lua_pushnil movq %r12, %rdi movl %ebx, -52(%rbp) ## 4-byte Spill movl %ebx, %esi callq _lua_next testq %rax, %rax movq %r14, -64(%rbp) ## 8-byte Spill je LBB0_1 ## %bb.2: leal 2(%r14), %eax movl %eax, -48(%rbp) ## 4-byte Spill leal 1(%r14), %ebx movl $0, -44(%rbp) ## 4-byte Folded Spill movl $2, %r13d movq _LUA_MINSTACK@GOTPCREL(%rip), %r14 jmp LBB0_3 .p2align 4, 0x90 LBB0_10: ## in Loop: Header=BB0_3 Depth=1 movl (%r14), %esi movq %r12, %rdi leaq L_.str.2(%rip), %rdx callq _luaL_checkstack movq %r12, %rdi movl $-2, %esi callq _lua_insert movq %r12, %rdi movl $-1, %esi callq _lua_pushvalue movq %r12, %rdi movl $-1, %esi callq _lua_pushvalue movq %r12, %rdi movl %r13d, %esi callq _lua_pushinteger movq %r12, %rdi movl %ebx, %esi callq _lua_settable addl %r15d, %r13d incl -44(%rbp) ## 4-byte Folded Spill LBB0_11: ## in Loop: Header=BB0_3 Depth=1 movq %r12, %rdi movl -52(%rbp), %esi ## 4-byte Reload callq _lua_next testq %rax, %rax je LBB0_12 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq %r12, %rdi movl $-2, %esi callq _lua_tonumber cmpl $1, %eax jne LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq %r12, %rdi movl $-1, %esi callq _lua_isstring testq %rax, %rax je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movq %r12, %rdi movl -48(%rbp), %esi ## 4-byte Reload callq _lua_replace jmp LBB0_11 .p2align 4, 0x90 LBB0_6: ## in Loop: Header=BB0_3 Depth=1 movq %r12, %rdi movl $-1, %esi callq _testpattern testl %eax, %eax jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_3 Depth=1 movq %r12, %rdi leaq L_.str(%rip), %rsi callq _luaL_error LBB0_8: ## in Loop: Header=BB0_3 Depth=1 movq %r12, %rdi movl $-1, %esi callq _pattsize movl %eax, %r15d incl %r15d movq _MAXPATTSIZE@GOTPCREL(%rip), %rax movl (%rax), %eax subl %r15d, %eax cmpl %eax, %r13d jl LBB0_10 ## %bb.9: ## in Loop: Header=BB0_3 Depth=1 movq %r12, %rdi leaq L_.str.1(%rip), %rsi callq _luaL_error jmp LBB0_10 LBB0_1: movl $2, %r13d movl $0, -44(%rbp) ## 4-byte Folded Spill LBB0_12: xorl %esi, %esi movl -44(%rbp), %ebx ## 4-byte Reload testl %ebx, %ebx setg %sil leaq L_.str.3(%rip), %rcx movq %r12, %rdi movl -52(%rbp), %edx ## 4-byte Reload callq _luaL_argcheck movq %r12, %rdi movl %r13d, %esi callq _newpatt movq %rax, %r15 leaq 16(%rax), %rdi addq $32, %r15 movq _IJmp@GOTPCREL(%rip), %rax movq (%rax), %rsi leal -1(%r13), %edx callq _setinst testl %ebx, %ebx jle LBB0_13 ## %bb.14: movl %ebx, %edx movq -64(%rbp), %rax ## 8-byte Reload leal 1(%rax), %ecx movl %ecx, -48(%rbp) ## 4-byte Spill leal 3(%rax), %ebx movq %r12, %r14 movl %edx, %r12d .p2align 4, 0x90 LBB0_15: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi movq %r15, %rsi movl %ebx, %edx callq _addpatt cltq shlq $4, %rax leaq (%r15,%rax), %rdi addq %rax, %r15 addq $16, %r15 movq _IRet@GOTPCREL(%rip), %rax movq (%rax), %rsi xorl %edx, %edx callq _setinst addl $2, %ebx decl %r12d jne LBB0_15 ## %bb.16: movslq %r13d, %rax shlq $4, %rax subq %rax, %r15 movq -64(%rbp), %rax ## 8-byte Reload leal 2(%rax), %ecx movl %ecx, -72(%rbp) ## 4-byte Spill leal 3(%rax), %ebx movq %r14, %r12 movl $2, %r14d movl -44(%rbp), %r13d ## 4-byte Reload .p2align 4, 0x90 LBB0_17: ## =>This Inner Loop Header: Depth=1 ## kill: def $r14d killed $r14d def $r14 movq %r12, %rdi movl %ebx, %esi callq _pattsize ## kill: def $eax killed $eax def $rax addl %r14d, %eax incl %eax leal 1(%rbx), %r9d movq %r12, %rdi movq %r15, %rsi movl %r14d, %edx movl %eax, %r14d movl %eax, %ecx movl -48(%rbp), %r8d ## 4-byte Reload callq _checkrule addl $2, %ebx decl %r13d jne LBB0_17 ## %bb.18: movl -48(%rbp), %ebx ## 4-byte Reload movl -72(%rbp), %esi ## 4-byte Reload jmp LBB0_19 LBB0_13: movslq %r13d, %rax shlq $4, %rax subq %rax, %r15 movq -64(%rbp), %rax ## 8-byte Reload leal 2(%rax), %esi leal 1(%rax), %ebx movl $2, %r14d LBB0_19: movq %r12, %rdi callq _lua_pushvalue movq %r12, %rdi movl %ebx, -48(%rbp) ## 4-byte Spill movl %ebx, %esi callq _lua_gettable movq %r12, %rdi movl $-1, %esi callq _lua_tonumber movl %eax, %ebx movq %r12, %rdi movl $1, %esi callq _lua_pop testl %ebx, %ebx jne LBB0_21 ## %bb.20: leaq L_.str.4(%rip), %rsi movq %r12, %rdi callq _luaL_error LBB0_21: movq %r12, -72(%rbp) ## 8-byte Spill movq _ICall@GOTPCREL(%rip), %rax movq (%rax), %rsi movq %r15, %rdi movl %ebx, %edx callq _setinst testl %r14d, %r14d jle LBB0_28 ## %bb.22: xorl %r12d, %r12d movq _IOpenCall@GOTPCREL(%rip), %rbx movl %r14d, -44(%rbp) ## 4-byte Spill jmp LBB0_23 .p2align 4, 0x90 LBB0_26: ## in Loop: Header=BB0_23 Depth=1 movq (%rax), %rax movq %rax, (%r14) subl %r12d, %ebx movl %ebx, 8(%r15,%r13) movq _IOpenCall@GOTPCREL(%rip), %rbx LBB0_27: ## in Loop: Header=BB0_23 Depth=1 movq %r14, %rdi callq _sizei addl %eax, %r12d movl -44(%rbp), %r14d ## 4-byte Reload cmpl %r14d, %r12d jge LBB0_28 LBB0_23: ## =>This Inner Loop Header: Depth=1 movslq %r12d, %r13 shlq $4, %r13 leaq (%r15,%r13), %r14 movq (%r15,%r13), %rax cmpq (%rbx), %rax jne LBB0_27 ## %bb.24: ## in Loop: Header=BB0_23 Depth=1 movl 8(%r15,%r13), %edx movq -72(%rbp), %rdi ## 8-byte Reload movl -48(%rbp), %esi ## 4-byte Reload callq _getposition movl %eax, %ebx leal 1(%r12), %esi movq %r15, %rdi callq _target shlq $4, %rax movq (%r15,%rax), %rcx movq _ICall@GOTPCREL(%rip), %rax movq _IRet@GOTPCREL(%rip), %rdx cmpq (%rdx), %rcx jne LBB0_26 ## %bb.25: ## in Loop: Header=BB0_23 Depth=1 movq _IJmp@GOTPCREL(%rip), %rax jmp LBB0_26 LBB0_28: movq %r15, %rdi callq _optimizejumps movq -72(%rbp), %rbx ## 8-byte Reload movq %rbx, %rdi movl -52(%rbp), %esi ## 4-byte Reload callq _lua_replace movq %rbx, %rdi movq -64(%rbp), %rsi ## 8-byte Reload ## kill: def $esi killed $esi killed $rsi callq _lua_settop movq %r15, %rax addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "invalid field in grammar" .comm _MAXPATTSIZE,4,2 ## @MAXPATTSIZE L_.str.1: ## @.str.1 .asciz "grammar too large" .comm _LUA_MINSTACK,4,2 ## @LUA_MINSTACK L_.str.2: ## @.str.2 .asciz "grammar has too many rules" L_.str.3: ## @.str.3 .asciz "empty grammar" .comm _IJmp,8,3 ## @IJmp .comm _IRet,8,3 ## @IRet L_.str.4: ## @.str.4 .asciz "initial rule not defined in given grammar" .comm _ICall,8,3 ## @ICall .comm _IOpenCall,8,3 ## @IOpenCall .no_dead_strip _fix_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function fix_l _fix_l: ; @fix_l .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x28, x27, [sp, #16] ; 16-byte Folded Spill stp x26, x25, [sp, #32] ; 16-byte Folded Spill stp x24, x23, [sp, #48] ; 16-byte Folded Spill stp x22, x21, [sp, #64] ; 16-byte Folded Spill stp x20, x19, [sp, #80] ; 16-byte Folded Spill stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 .cfi_offset w27, -88 .cfi_offset w28, -96 mov x20, x1 mov x19, x0 bl _lua_gettop mov x21, x0 mov x0, x19 bl _lua_newtable mov x0, x19 mov w1, #1 bl _lua_pushinteger mov x0, x19 bl _lua_pushnil mov x0, x19 mov x1, x20 bl _lua_next str w21, [sp, #12] ; 4-byte Folded Spill mov w28, #0 cbz x0, LBB0_11 ; %bb.1: add w23, w21, #2 add w24, w21, #1 mov w22, #2 Lloh0: adrp x21, _MAXPATTSIZE@GOTPAGE Lloh1: ldr x21, [x21, _MAXPATTSIZE@GOTPAGEOFF] Lloh2: adrp x25, _LUA_MINSTACK@GOTPAGE Lloh3: ldr x25, [x25, _LUA_MINSTACK@GOTPAGEOFF] Lloh4: adrp x26, l_.str.2@PAGE Lloh5: add x26, x26, l_.str.2@PAGEOFF b LBB0_4 LBB0_2: ; in Loop: Header=BB0_4 Depth=1 ldr w1, [x25] mov x0, x19 mov x2, x26 bl _luaL_checkstack mov x0, x19 mov w1, #-2 bl _lua_insert mov x0, x19 mov w1, #-1 bl _lua_pushvalue mov x0, x19 mov w1, #-1 bl _lua_pushvalue mov x0, x19 mov x1, x22 bl _lua_pushinteger mov x0, x19 mov x1, x24 bl _lua_settable add w22, w27, w22 add w28, w28, #1 LBB0_3: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 mov x1, x20 bl _lua_next cbz x0, LBB0_12 LBB0_4: ; =>This Inner Loop Header: Depth=1 mov x0, x19 mov w1, #-2 bl _lua_tonumber cmp w0, #1 b.ne LBB0_7 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 mov w1, #-1 bl _lua_isstring cbz x0, LBB0_7 ; %bb.6: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 mov x1, x23 bl _lua_replace b LBB0_3 LBB0_7: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 mov w1, #-1 bl _testpattern cbnz w0, LBB0_9 ; %bb.8: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 Lloh6: adrp x1, l_.str@PAGE Lloh7: add x1, x1, l_.str@PAGEOFF bl _luaL_error LBB0_9: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 mov w1, #-1 bl _pattsize add w27, w0, #1 ldr w8, [x21] sub w8, w8, w27 cmp w22, w8 b.lt LBB0_2 ; %bb.10: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 Lloh8: adrp x1, l_.str.1@PAGE Lloh9: add x1, x1, l_.str.1@PAGEOFF bl _luaL_error b LBB0_2 LBB0_11: mov w22, #2 LBB0_12: cmp w28, #0 cset w1, gt Lloh10: adrp x3, l_.str.3@PAGE Lloh11: add x3, x3, l_.str.3@PAGEOFF mov x0, x19 mov x2, x20 bl _luaL_argcheck mov x0, x19 mov x1, x22 bl _newpatt mov x23, x0 add x0, x0, #16 Lloh12: adrp x8, _IJmp@GOTPAGE Lloh13: ldr x8, [x8, _IJmp@GOTPAGEOFF] Lloh14: ldr x1, [x8] sub w2, w22, #1 bl _setinst add x26, x23, #32 Lloh15: adrp x21, _IRet@GOTPAGE Lloh16: ldr x21, [x21, _IRet@GOTPAGEOFF] cmp w28, #0 str w20, [sp, #8] ; 4-byte Folded Spill b.le LBB0_17 ; %bb.13: ldr w25, [sp, #12] ; 4-byte Folded Reload add w23, w25, #1 add w24, w25, #3 mov x20, x28 LBB0_14: ; =>This Inner Loop Header: Depth=1 mov x0, x19 mov x1, x26 mov x2, x24 bl _addpatt add x0, x26, w0, sxtw #4 add x26, x0, #16 ldr x1, [x21] mov w2, #0 bl _setinst add w24, w24, #2 subs w20, w20, #1 b.ne LBB0_14 ; %bb.15: mov x8, x25 add w25, w25, #2 add w27, w8, #3 mov w24, #2 sub x22, x26, w22, sxtw #4 LBB0_16: ; =>This Inner Loop Header: Depth=1 mov x26, x24 mov x0, x19 mov x1, x27 bl _pattsize add w8, w24, w0 add w24, w8, #1 add w5, w27, #1 mov x0, x19 mov x1, x22 mov x2, x26 mov x3, x24 mov x4, x23 bl _checkrule add w27, w27, #2 subs w28, w28, #1 b.ne LBB0_16 b LBB0_18 LBB0_17: ldr w8, [sp, #12] ; 4-byte Folded Reload add w25, w8, #2 add w23, w8, #1 mov w24, #2 sub x22, x26, w22, sxtw #4 LBB0_18: mov x0, x19 mov x1, x25 bl _lua_pushvalue mov x0, x19 mov x1, x23 bl _lua_gettable mov x0, x19 mov w1, #-1 bl _lua_tonumber mov x25, x0 mov x0, x19 mov w1, #1 bl _lua_pop cbnz w25, LBB0_20 ; %bb.19: Lloh17: adrp x1, l_.str.4@PAGE Lloh18: add x1, x1, l_.str.4@PAGEOFF mov x0, x19 bl _luaL_error LBB0_20: Lloh19: adrp x8, _ICall@GOTPAGE Lloh20: ldr x8, [x8, _ICall@GOTPAGEOFF] Lloh21: ldr x1, [x8] mov x0, x22 mov x2, x25 bl _setinst cmp w24, #1 b.lt LBB0_25 ; %bb.21: mov w8, #0 Lloh22: adrp x28, _IOpenCall@GOTPAGE Lloh23: ldr x28, [x28, _IOpenCall@GOTPAGEOFF] b LBB0_23 LBB0_22: ; in Loop: Header=BB0_23 Depth=1 mov x0, x25 bl _sizei add w8, w20, w0 cmp w8, w24 b.ge LBB0_25 LBB0_23: ; =>This Inner Loop Header: Depth=1 sxtw x20, w8 add x25, x22, w8, sxtw #4 ldr x8, [x25] ldr x9, [x28] cmp x8, x9 b.ne LBB0_22 ; %bb.24: ; in Loop: Header=BB0_23 Depth=1 add x27, x22, x20, lsl #4 ldr w2, [x27, #8] mov x0, x19 mov x1, x23 bl _getposition mov x26, x0 add w1, w20, #1 mov x0, x22 bl _target lsl x8, x0, #4 ldr x8, [x22, x8] ldr x9, [x21] cmp x8, x9 Lloh24: adrp x8, _IJmp@GOTPAGE Lloh25: ldr x8, [x8, _IJmp@GOTPAGEOFF] Lloh26: adrp x9, _ICall@GOTPAGE Lloh27: ldr x9, [x9, _ICall@GOTPAGEOFF] csel x8, x8, x9, eq ldr x8, [x8] str x8, [x25] sub w8, w26, w20 str w8, [x27, #8] b LBB0_22 LBB0_25: mov x0, x22 bl _optimizejumps mov x0, x19 ldr w1, [sp, #8] ; 4-byte Folded Reload bl _lua_replace mov x0, x19 ldr w1, [sp, #12] ; 4-byte Folded Reload bl _lua_settop mov x0, x22 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload ldp x20, x19, [sp, #80] ; 16-byte Folded Reload ldp x22, x21, [sp, #64] ; 16-byte Folded Reload ldp x24, x23, [sp, #48] ; 16-byte Folded Reload ldp x26, x25, [sp, #32] ; 16-byte Folded Reload ldp x28, x27, [sp, #16] ; 16-byte Folded Reload add sp, sp, #112 ret .loh AdrpAdd Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpLdrGot Lloh15, Lloh16 .loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh17, Lloh18 .loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21 .loh AdrpLdrGot Lloh22, Lloh23 .loh AdrpLdrGot Lloh26, Lloh27 .loh AdrpLdrGot Lloh24, Lloh25 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "invalid field in grammar" .comm _MAXPATTSIZE,4,2 ; @MAXPATTSIZE l_.str.1: ; @.str.1 .asciz "grammar too large" .comm _LUA_MINSTACK,4,2 ; @LUA_MINSTACK l_.str.2: ; @.str.2 .asciz "grammar has too many rules" l_.str.3: ; @.str.3 .asciz "empty grammar" .comm _IJmp,8,3 ; @IJmp .comm _IRet,8,3 ; @IRet l_.str.4: ; @.str.4 .asciz "initial rule not defined in given grammar" .comm _ICall,8,3 ; @ICall .comm _IOpenCall,8,3 ; @IOpenCall .no_dead_strip _fix_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_fix_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function functioncap _functioncap: ## @functioncap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx movl (%rdi), %edi callq _lua_gettop movl %eax, %r14d movq %rbx, %rdi callq _pushluaval movq %rbx, %rdi xorl %esi, %esi callq _pushallcaptures movl (%rbx), %edi movq _LUA_MULTRET@GOTPCREL(%rip), %rcx movl (%rcx), %edx movl %eax, %esi callq _lua_call movl (%rbx), %edi callq _lua_gettop subl %r14d, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _LUA_MULTRET,4,2 ## @LUA_MULTRET .no_dead_strip _functioncap .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function functioncap _functioncap: ; @functioncap .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr w0, [x0] bl _lua_gettop mov x20, x0 mov x0, x19 bl _pushluaval mov x0, x19 mov w1, #0 bl _pushallcaptures mov x1, x0 ldr w0, [x19] Lloh0: adrp x8, _LUA_MULTRET@GOTPAGE Lloh1: ldr x8, [x8, _LUA_MULTRET@GOTPAGEOFF] Lloh2: ldr w2, [x8] bl _lua_call ldr w0, [x19] bl _lua_gettop sub w0, w0, w20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _LUA_MULTRET,4,2 ; @LUA_MULTRET .no_dead_strip _functioncap .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_functioncap.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function getcaptures _getcaptures: ## @getcaptures .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $56, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %ecx, %r13d movq %rdx, %r12 movq %rsi, %r15 movq %rdi, %r14 movl %ecx, %edi callq _caplistidx movq %r14, %rdi movl %eax, %esi callq _lua_touserdata movq %rax, %rbx movq %rax, %rdi callq _isclosecap testl %eax, %eax jne LBB0_4 ## %bb.1: movq %rbx, -72(%rbp) movq %rbx, -48(%rbp) movq %r14, -56(%rbp) movq %r15, -88(%rbp) movq $0, -64(%rbp) movl %r13d, -80(%rbp) xorl %ebx, %ebx leaq -88(%rbp), %r13 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r13, %rdi callq _pushcapture movslq %ebx, %rbx addq %rax, %rbx movq -72(%rbp), %rdi callq _isclosecap testl %eax, %eax je LBB0_2 ## %bb.3: testl %ebx, %ebx jne LBB0_5 LBB0_4: subl %r15d, %r12d incl %r12d movq %r14, %rdi movl %r12d, %esi callq _lua_pushinteger movl $1, %ebx LBB0_5: movl %ebx, %eax addq $56, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _getcaptures .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function getcaptures _getcaptures: ; @getcaptures .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x24, x23, [sp, #48] ; 16-byte Folded Spill stp x22, x21, [sp, #64] ; 16-byte Folded Spill stp x20, x19, [sp, #80] ; 16-byte Folded Spill stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x23, x3 mov x20, x2 mov x21, x1 mov x19, x0 mov x0, x3 bl _caplistidx mov x1, x0 mov x0, x19 bl _lua_touserdata mov x24, x0 bl _isclosecap cbnz w0, LBB0_4 ; %bb.1: mov x22, #0 stp x19, x24, [sp, #32] str x21, [sp] stp x24, xzr, [sp, #16] str w23, [sp, #8] LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, sp bl _pushcapture add x22, x0, w22, sxtw ldr x0, [sp, #16] bl _isclosecap cbz w0, LBB0_2 ; %bb.3: cbnz w22, LBB0_5 LBB0_4: sub w8, w20, w21 add w1, w8, #1 mov x0, x19 bl _lua_pushinteger mov w22, #1 LBB0_5: mov x0, x22 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload ldp x20, x19, [sp, #80] ; 16-byte Folded Reload ldp x22, x21, [sp, #64] ; 16-byte Folded Reload ldp x24, x23, [sp, #48] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .no_dead_strip _getcaptures .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_getcaptures.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function getlabel _getlabel: ## @getlabel .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp testl %esi, %esi je LBB0_1 ## %bb.2: popq %rbp jmp _value2fenv ## TAILCALL LBB0_1: xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _getlabel .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function getlabel _getlabel: ; @getlabel .cfi_startproc ; %bb.0: cbz w1, LBB0_2 ; %bb.1: b _value2fenv LBB0_2: mov w0, #0 ret .cfi_endproc ; -- End function .no_dead_strip _getlabel .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_getlabel.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function getpatt _getpatt: ## @getpatt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $40, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %r12 movl %esi, %ebx movq %rdi, %r14 callq _lua_type ## kill: def $eax killed $eax def $rax addl $-128, %eax cmpl $4, %eax ja LBB0_21 ## %bb.1: leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_19: movq %r14, %rdi movl %ebx, %esi callq _fix_l jmp LBB0_22 LBB0_21: movq %r14, %rdi movl %ebx, %esi callq _checkpattern LBB0_22: movq %rax, %r13 jmp LBB0_23 LBB0_2: movq %r12, -80(%rbp) ## 8-byte Spill leaq -56(%rbp), %rdx movq %r14, %rdi movl %ebx, -60(%rbp) ## 4-byte Spill movl %ebx, %esi callq _lua_tolstring movq %rax, %r13 movl -56(%rbp), %esi movq %r14, %rdi callq _newpatt movq %rax, -72(%rbp) ## 8-byte Spill cmpq $0, -56(%rbp) je LBB0_5 ## %bb.3: xorl %r12d, %r12d movq _IChar@GOTPCREL(%rip), %r15 movq -72(%rbp), %rbx ## 8-byte Reload .p2align 4, 0x90 LBB0_4: ## =>This Inner Loop Header: Depth=1 movl (%r15), %esi movzbl (%r13,%r12), %ecx movq %rbx, %rdi xorl %edx, %edx callq _setinstaux incq %r12 addq $4, %rbx cmpq -56(%rbp), %r12 jb LBB0_4 LBB0_5: movq %r14, %rdi movl -60(%rbp), %ebx ## 4-byte Reload movl %ebx, %esi callq _lua_replace movq -80(%rbp), %r12 ## 8-byte Reload movq -72(%rbp), %r13 ## 8-byte Reload jmp LBB0_23 LBB0_6: movq %r14, %rdi movl %ebx, %esi callq _lua_tointeger testl %eax, %eax je LBB0_7 ## %bb.8: movl %eax, %r13d jle LBB0_10 ## %bb.9: movq %r14, %rdi movl %r13d, %esi xorl %edx, %edx xorl %ecx, %ecx callq _any movq %rax, %r13 jmp LBB0_15 LBB0_20: movq %r14, %rdi movl $2, %esi callq _newpatt movq %rax, %r13 movq _IOpenCapture@GOTPCREL(%rip), %rax movl (%rax), %r15d movq %r14, %rdi movl %ebx, %esi callq _value2fenv movq _Cruntime@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movq %r13, %rdi movl %r15d, %esi movl %eax, %edx xorl %r8d, %r8d callq _setinstcap movq %r13, %rdi addq $4, %rdi movq _ICloseRunTime@GOTPCREL(%rip), %rax movl (%rax), %esi movq _Cclose@GOTPCREL(%rip), %rax movl (%rax), %ecx xorl %edx, %edx xorl %r8d, %r8d callq _setinstcap jmp LBB0_15 LBB0_16: movq %r14, %rdi movl %ebx, %esi callq _lua_toboolean movq %r14, %rdi testl %eax, %eax jne LBB0_17 ## %bb.18: movl $1, %esi callq _newpatt movq %rax, %r13 movq _IFail@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r13, %rdi jmp LBB0_14 LBB0_7: movq %r14, %rdi LBB0_17: xorl %esi, %esi callq _newpatt movq %rax, %r13 jmp LBB0_15 LBB0_10: negl %r13d movq _UCHAR_MAX@GOTPCREL(%rip), %r15 movl (%r15), %eax cmpl %r13d, %eax jge LBB0_11 ## %bb.12: movl $2, -44(%rbp) subl %eax, %r13d leaq -44(%rbp), %rcx movq %r14, %rdi movl %r13d, %esi movl $3, %edx callq _any movq %rax, %r13 movq _ITestAny@GOTPCREL(%rip), %rax movl (%rax), %esi movl -44(%rbp), %edx incl %edx movl (%r15), %ecx movq %r13, %rdi callq _setinstaux leaq 4(%r13), %rdi movq _IChoice@GOTPCREL(%rip), %rax movl (%rax), %esi movl -44(%rbp), %edx movl (%r15), %ecx callq _setinstaux movslq -44(%rbp), %rax leaq (,%rax,4), %rdi addq %r13, %rdi movq _IFailTwice@GOTPCREL(%rip), %rax jmp LBB0_13 LBB0_11: movq %r14, %rdi movl $2, %esi callq _newpatt movq %rax, %rdi movq _ITestAny@GOTPCREL(%rip), %rax movl (%rax), %esi movl $2, %edx movl %r13d, %ecx movq %rdi, %r13 callq _setinstaux movq %r13, %rdi addq $4, %rdi movq _IFail@GOTPCREL(%rip), %rax LBB0_13: movl (%rax), %esi LBB0_14: xorl %edx, %edx callq _setinst LBB0_15: movq %r14, %rdi movl %ebx, %esi callq _lua_replace LBB0_23: testq %r12, %r12 je LBB0_25 ## %bb.24: movq %r14, %rdi movl %ebx, %esi callq _pattsize movl %eax, (%r12) LBB0_25: movq %r13, %rax addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_19, LBB0_19-LJTI0_0 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_20, LBB0_20-LJTI0_0 .set L0_0_set_16, LBB0_16-LJTI0_0 LJTI0_0: .long L0_0_set_19 .long L0_0_set_2 .long L0_0_set_6 .long L0_0_set_20 .long L0_0_set_16 .end_data_region ## -- End function .comm _IChar,4,2 ## @IChar .comm _UCHAR_MAX,4,2 ## @UCHAR_MAX .comm _ITestAny,4,2 ## @ITestAny .comm _IFail,4,2 ## @IFail .comm _IChoice,4,2 ## @IChoice .comm _IFailTwice,4,2 ## @IFailTwice .comm _IOpenCapture,4,2 ## @IOpenCapture .comm _Cruntime,4,2 ## @Cruntime .comm _ICloseRunTime,4,2 ## @ICloseRunTime .comm _Cclose,4,2 ## @Cclose .no_dead_strip _getpatt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function getpatt _getpatt: ; @getpatt .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x26, x25, [sp, #16] ; 16-byte Folded Spill stp x24, x23, [sp, #32] ; 16-byte Folded Spill stp x22, x21, [sp, #48] ; 16-byte Folded Spill stp x20, x19, [sp, #64] ; 16-byte Folded Spill stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 mov x19, x2 mov x20, x1 mov x21, x0 bl _lua_type sub w8, w0, #128 cmp w8, #4 b.hi LBB0_3 ; %bb.1: Lloh0: adrp x9, lJTI0_0@PAGE Lloh1: add x9, x9, lJTI0_0@PAGEOFF adr x10, LBB0_2 ldrb w11, [x9, x8] add x10, x10, x11, lsl #2 br x10 LBB0_2: mov x0, x21 mov x1, x20 bl _fix_l b LBB0_4 LBB0_3: mov x0, x21 mov x1, x20 bl _checkpattern LBB0_4: mov x22, x0 cbnz x19, LBB0_23 b LBB0_24 LBB0_5: add x2, sp, #8 mov x0, x21 mov x1, x20 bl _lua_tolstring mov x23, x0 ldr w1, [sp, #8] mov x0, x21 bl _newpatt mov x22, x0 ldr x8, [sp, #8] cbz x8, LBB0_22 ; %bb.6: mov x25, #0 Lloh2: adrp x26, _IChar@GOTPAGE Lloh3: ldr x26, [x26, _IChar@GOTPAGEOFF] mov x24, x22 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldr w1, [x26] ldrb w3, [x23, x25] mov x0, x24 mov w2, #0 bl _setinstaux add x25, x25, #1 ldr x8, [sp, #8] add x24, x24, #4 cmp x25, x8 b.lo LBB0_7 b LBB0_22 LBB0_8: mov x0, x21 mov x1, x20 bl _lua_tointeger mov x1, x0 cbz w0, LBB0_14 ; %bb.9: cmp w1, #1 b.lt LBB0_17 ; %bb.10: mov x0, x21 mov w2, #0 mov x3, #0 bl _any mov x22, x0 b LBB0_22 LBB0_11: mov x0, x21 mov w1, #2 bl _newpatt mov x22, x0 Lloh4: adrp x8, _IOpenCapture@GOTPAGE Lloh5: ldr x8, [x8, _IOpenCapture@GOTPAGEOFF] Lloh6: ldr w23, [x8] mov x0, x21 mov x1, x20 bl _value2fenv mov x2, x0 Lloh7: adrp x8, _Cruntime@GOTPAGE Lloh8: ldr x8, [x8, _Cruntime@GOTPAGEOFF] Lloh9: ldr w3, [x8] mov x0, x22 mov x1, x23 mov w4, #0 bl _setinstcap add x0, x22, #4 Lloh10: adrp x8, _ICloseRunTime@GOTPAGE Lloh11: ldr x8, [x8, _ICloseRunTime@GOTPAGEOFF] Lloh12: ldr w1, [x8] Lloh13: adrp x8, _Cclose@GOTPAGE Lloh14: ldr x8, [x8, _Cclose@GOTPAGEOFF] Lloh15: ldr w3, [x8] mov w2, #0 mov w4, #0 bl _setinstcap b LBB0_22 LBB0_12: mov x0, x21 mov x1, x20 bl _lua_toboolean cbz w0, LBB0_16 ; %bb.13: mov x0, x21 mov w1, #0 b LBB0_15 LBB0_14: mov x0, x21 LBB0_15: bl _newpatt mov x22, x0 b LBB0_22 LBB0_16: mov x0, x21 mov w1, #1 bl _newpatt mov x22, x0 b LBB0_20 LBB0_17: Lloh16: adrp x24, _UCHAR_MAX@GOTPAGE Lloh17: ldr x24, [x24, _UCHAR_MAX@GOTPAGEOFF] ldr w8, [x24] neg w23, w1 cmp w8, w23 b.ge LBB0_19 ; %bb.18: mov w9, #2 str w9, [sp, #4] sub w1, w23, w8 add x3, sp, #4 mov x0, x21 mov w2, #3 bl _any mov x22, x0 Lloh18: adrp x8, _ITestAny@GOTPAGE Lloh19: ldr x8, [x8, _ITestAny@GOTPAGEOFF] Lloh20: ldr w1, [x8] ldr w8, [sp, #4] add w2, w8, #1 ldr w3, [x24] bl _setinstaux add x0, x22, #4 Lloh21: adrp x8, _IChoice@GOTPAGE Lloh22: ldr x8, [x8, _IChoice@GOTPAGEOFF] Lloh23: ldr w1, [x8] ldr w2, [sp, #4] ldr w3, [x24] bl _setinstaux ldrsw x8, [sp, #4] add x0, x22, x8, lsl #2 Lloh24: adrp x8, _IFailTwice@GOTPAGE Lloh25: ldr x8, [x8, _IFailTwice@GOTPAGEOFF] b LBB0_21 LBB0_19: mov x0, x21 mov w1, #2 bl _newpatt mov x22, x0 Lloh26: adrp x8, _ITestAny@GOTPAGE Lloh27: ldr x8, [x8, _ITestAny@GOTPAGEOFF] Lloh28: ldr w1, [x8] mov w2, #2 mov x3, x23 bl _setinstaux add x0, x22, #4 LBB0_20: Lloh29: adrp x8, _IFail@GOTPAGE Lloh30: ldr x8, [x8, _IFail@GOTPAGEOFF] LBB0_21: ldr w1, [x8] mov w2, #0 bl _setinst LBB0_22: mov x0, x21 mov x1, x20 bl _lua_replace cbz x19, LBB0_24 LBB0_23: mov x0, x21 mov x1, x20 bl _pattsize str w0, [x19] LBB0_24: mov x0, x22 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload ldp x26, x25, [sp, #16] ; 16-byte Folded Reload add sp, sp, #96 ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15 .loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12 .loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpLdrGot Lloh16, Lloh17 .loh AdrpLdrGot Lloh24, Lloh25 .loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23 .loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20 .loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28 .loh AdrpLdrGot Lloh29, Lloh30 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_8-LBB0_2)>>2 .byte (LBB0_11-LBB0_2)>>2 .byte (LBB0_12-LBB0_2)>>2 ; -- End function .comm _IChar,4,2 ; @IChar .comm _UCHAR_MAX,4,2 ; @UCHAR_MAX .comm _ITestAny,4,2 ; @ITestAny .comm _IFail,4,2 ; @IFail .comm _IChoice,4,2 ; @IChoice .comm _IFailTwice,4,2 ; @IFailTwice .comm _IOpenCapture,4,2 ; @IOpenCapture .comm _Cruntime,4,2 ; @Cruntime .comm _ICloseRunTime,4,2 ; @ICloseRunTime .comm _Cclose,4,2 ; @Cclose .no_dead_strip _getpatt .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_getpatt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function getpattl _getpattl: ## @getpattl .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq -4(%rbp), %rdx callq _getpatt movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _getpattl .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function getpattl _getpattl: ; @getpattl .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub x2, x29, #4 bl _getpatt ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .no_dead_strip _getpattl .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_getpattl.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function getposition _getposition: ## @getposition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edx, %r14d movl %esi, %r15d movq %rdi, %rbx movl $-1, %esi callq _lua_getfenv movq %rbx, %rdi movl $-1, %esi movl %r14d, %edx callq _lua_rawgeti movq %rbx, %rdi movl %r15d, %esi callq _lua_gettable movq %rbx, %rdi movl $-1, %esi callq _lua_tointeger testl %eax, %eax je LBB0_2 ## %bb.1: movl %eax, %r15d movq %rbx, %rdi movl $2, %esi callq _lua_pop movl %r15d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_2: movq %rbx, %rdi movl $-2, %esi movl %r14d, %edx callq _lua_rawgeti movq %rbx, %rdi movl $-1, %esi callq _val2str leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _luaL_error ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s is not defined in given grammar" .no_dead_strip _getposition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function getposition _getposition: ; @getposition .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x20, x2 mov x21, x1 mov x19, x0 mov w1, #-1 bl _lua_getfenv mov x0, x19 mov w1, #-1 mov x2, x20 bl _lua_rawgeti mov x0, x19 mov x1, x21 bl _lua_gettable mov x0, x19 mov w1, #-1 bl _lua_tointeger cbz w0, LBB0_2 ; %bb.1: mov x21, x0 mov x0, x19 mov w1, #2 bl _lua_pop mov x0, x21 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret LBB0_2: mov x0, x19 mov w1, #-2 mov x2, x20 bl _lua_rawgeti mov x0, x19 mov w1, #-1 bl _val2str mov x2, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _luaL_error .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s is not defined in given grammar" .no_dead_strip _getposition .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_getposition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function getstrcaps _getstrcaps: ## @getstrcaps .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edx, %r15d movq %rsi, %r14 movq %rdi, %rbx movq _MAXSTRCAPS@GOTPCREL(%rip), %r13 movq (%rdi), %rdi cmpl %edx, (%r13) jle LBB0_2 ## %bb.1: movl (%rdi), %eax movslq %r15d, %rcx movl %eax, 4(%r14,%rcx,8) LBB0_2: leal 1(%r15), %r12d leaq 4(%rdi), %rax movq %rax, (%rbx) ## kill: def $edi killed $edi killed $rdi callq _isfullcap testl %eax, %eax je LBB0_3 ## %bb.8: cmpl %r15d, (%r13) jle LBB0_10 LBB0_9: movq (%rbx), %rdi addq $-4, %rdi callq _closeaddr movslq %r15d, %rcx movl %eax, (%r14,%rcx,8) LBB0_10: movl %r12d, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_3: movq (%rbx), %rdi callq _isclosecap testl %eax, %eax jne LBB0_7 ## %bb.4: movq _Csimple@GOTPCREL(%rip), %r13 .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movq (%rbx), %rdi callq _captype cmpq (%r13), %rax jne LBB0_11 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq %rbx, %rdi movq %r14, %rsi movl %r12d, %edx callq _getstrcaps movl %eax, %r12d movq (%rbx), %rdi callq _isclosecap testl %eax, %eax je LBB0_5 LBB0_7: addq $4, (%rbx) movq _MAXSTRCAPS@GOTPCREL(%rip), %r13 cmpl %r15d, (%r13) jg LBB0_9 jmp LBB0_10 LBB0_11: movl 8(%rbx), %edi leaq L_.str(%rip), %rsi movl %r12d, %edx addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _luaL_error ## TAILCALL .cfi_endproc ## -- End function .comm _MAXSTRCAPS,4,2 ## @MAXSTRCAPS .comm _Csimple,8,3 ## @Csimple .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "invalid capture #%d in replacement pattern" .no_dead_strip _getstrcaps .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function getstrcaps _getstrcaps: ; @getstrcaps .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x21, x2 mov x20, x1 mov x22, x0 add w19, w2, #1 Lloh0: adrp x23, _MAXSTRCAPS@GOTPAGE Lloh1: ldr x23, [x23, _MAXSTRCAPS@GOTPAGEOFF] ldr w8, [x23] ldr x0, [x0] cmp w8, w2 b.le LBB0_2 ; %bb.1: ldr w8, [x0] add x9, x20, w21, sxtw #3 str w8, [x9, #4] LBB0_2: add x8, x0, #4 str x8, [x22] ; kill: def $w0 killed $w0 killed $x0 bl _isfullcap cbnz w0, LBB0_8 ; %bb.3: ldr x0, [x22] bl _isclosecap cbnz w0, LBB0_7 ; %bb.4: Lloh2: adrp x24, _Csimple@GOTPAGE Lloh3: ldr x24, [x24, _Csimple@GOTPAGEOFF] LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr x0, [x22] bl _captype ldr x8, [x24] cmp x0, x8 b.ne LBB0_11 ; %bb.6: ; in Loop: Header=BB0_5 Depth=1 mov x0, x22 mov x1, x20 mov x2, x19 bl _getstrcaps mov x19, x0 ldr x0, [x22] bl _isclosecap cbz w0, LBB0_5 LBB0_7: ldr x8, [x22] add x8, x8, #4 str x8, [x22] LBB0_8: ldr w8, [x23] cmp w8, w21 b.le LBB0_10 ; %bb.9: ldr x8, [x22] sub x0, x8, #4 bl _closeaddr sbfiz x8, x21, #3, #32 str w0, [x20, x8] LBB0_10: mov x0, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret LBB0_11: ldr w0, [x22, #8] Lloh4: adrp x1, l_.str@PAGE Lloh5: add x1, x1, l_.str@PAGEOFF mov x2, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload b _luaL_error .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _MAXSTRCAPS,4,2 ; @MAXSTRCAPS .comm _Csimple,8,3 ; @Csimple .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "invalid capture #%d in replacement pattern" .no_dead_strip _getstrcaps .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_getstrcaps.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function interfere _interfere: ## @interfere .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %r15 movq %rdi, %rbx callq _nofail xorl %r14d, %r14d testq %rax, %rax jne LBB0_7 ## %bb.1: movq (%r15), %rax movq _NOINFO@GOTPCREL(%rip), %rcx movl $1, %r14d cmpq (%rcx), %rax je LBB0_7 ## %bb.2: movl (%rbx), %eax cmpl $128, %eax je LBB0_5 ## %bb.3: cmpl $129, %eax jne LBB0_6 ## %bb.4: movl 8(%r15), %edi movl 4(%rbx), %esi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _testchar ## TAILCALL LBB0_5: movl 8(%r15), %edi movl 20(%rbx), %esi callq _exclusiveset xorl %r14d, %r14d testl %eax, %eax sete %r14b jmp LBB0_7 LBB0_6: movq _ITestAny@GOTPCREL(%rip), %rcx xorl %edi, %edi cmpl (%rcx), %eax sete %dil callq _assert LBB0_7: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _NOINFO,8,3 ## @NOINFO .comm _ITestAny,4,2 ## @ITestAny .no_dead_strip _interfere .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function interfere _interfere: ; @interfere .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x20, x2 mov x19, x0 bl _nofail cbz x0, LBB0_2 ; %bb.1: mov w0, #0 b LBB0_9 LBB0_2: ldr x8, [x20] Lloh0: adrp x9, _NOINFO@GOTPAGE Lloh1: ldr x9, [x9, _NOINFO@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_8 ; %bb.3: ldr w8, [x19] cmp w8, #128 b.eq LBB0_6 ; %bb.4: cmp w8, #129 b.ne LBB0_7 ; %bb.5: ldr w0, [x20, #8] ldr w1, [x19, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _testchar LBB0_6: ldr w0, [x20, #8] ldr w1, [x19, #20] bl _exclusiveset cmp w0, #0 cset w0, eq b LBB0_9 LBB0_7: Lloh3: adrp x9, _ITestAny@GOTPAGE Lloh4: ldr x9, [x9, _ITestAny@GOTPAGEOFF] Lloh5: ldr w9, [x9] cmp w8, w9 cset w0, eq bl _assert LBB0_8: mov w0, #1 LBB0_9: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _NOINFO,8,3 ; @NOINFO .comm _ITestAny,4,2 ; @ITestAny .no_dead_strip _interfere .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_interfere.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function invert _invert: ## @invert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp testl %esi, %esi jle LBB0_3 ## %bb.1: movl %esi, %eax decq %rax xorl %ecx, %ecx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movl (%rdi,%rcx,4), %edx movl 4(%rdi,%rax,4), %esi movl %esi, (%rdi,%rcx,4) movl %edx, 4(%rdi,%rax,4) incq %rcx leaq -1(%rax), %rdx cmpq %rax, %rcx movq %rdx, %rax jl LBB0_2 LBB0_3: popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _invert .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function invert _invert: ; @invert .cfi_startproc ; %bb.0: cmp w1, #1 b.lt LBB0_3 ; %bb.1: mov x8, #0 mov w9, w1 LBB0_2: ; =>This Inner Loop Header: Depth=1 lsl x10, x8, #2 ldr w11, [x0, x10] lsl x12, x9, #2 ldr w13, [x0, x12] str w13, [x0, x10] str w11, [x0, x12] add x8, x8, #1 sub x9, x9, #1 cmp x8, x9 b.lt LBB0_2 LBB0_3: ret .cfi_endproc ; -- End function .no_dead_strip _invert .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_invert.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function isheadfail _isheadfail: ## @isheadfail .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx callq _ischeck xorl %r14d, %r14d testl %eax, %eax je LBB0_6 ## %bb.1: movq %rbx, %rdi callq _sizei cltq movq (%rbx,%rax,8), %rcx movq _IEnd@GOTPCREL(%rip), %r15 cmpq (%r15), %rcx je LBB0_5 ## %bb.2: leaq (%rbx,%rax,8), %rbx .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq %rbx, %rdi callq _isnofail testl %eax, %eax je LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq %rbx, %rdi callq _sizei cltq movq (%rbx,%rax,8), %rcx leaq (%rbx,%rax,8), %rbx cmpq (%r15), %rcx jne LBB0_3 LBB0_5: movl $1, %r14d LBB0_6: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _IEnd,8,3 ## @IEnd .no_dead_strip _isheadfail .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function isheadfail _isheadfail: ; @isheadfail .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _ischeck cbz w0, LBB0_6 ; %bb.1: mov x0, x19 bl _sizei add x19, x19, w0, sxtw #3 ldr x8, [x19] Lloh0: adrp x20, _IEnd@GOTPAGE Lloh1: ldr x20, [x20, _IEnd@GOTPAGEOFF] LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x9, [x20] cmp x8, x9 b.eq LBB0_5 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 mov x0, x19 bl _isnofail cbz w0, LBB0_6 ; %bb.4: ; in Loop: Header=BB0_2 Depth=1 mov x0, x19 bl _sizei add x19, x19, w0, sxtw #3 ldr x8, [x19] b LBB0_2 LBB0_5: mov w0, #1 LBB0_6: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _IEnd,8,3 ; @IEnd .no_dead_strip _isheadfail .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_isheadfail.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function jointable _jointable: ## @jointable .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r12 callq _lua_getfenv movq %r12, %rdi movl $-1, %esi callq _lua_objlen movl %eax, %r14d movq %r12, %rdi movl $-2, %esi callq _lua_getfenv testl %r14d, %r14d je LBB0_2 ## %bb.1: movq %r12, %rdi movl $-2, %esi movl $-1, %edx callq _lua_equal testq %rax, %rax je LBB0_5 LBB0_2: movq %r12, %rdi movl $2, %esi callq _lua_pop LBB0_3: xorl %r15d, %r15d LBB0_4: movl %r15d, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_5: movq %r12, %rdi movl $-1, %esi callq _lua_objlen testl %eax, %eax je LBB0_13 ## %bb.6: movl %eax, %r15d leal (%r15,%r14), %esi movq %r12, %rdi xorl %edx, %edx callq _lua_createtable testl %r15d, %r15d jle LBB0_9 ## %bb.7: movl %r15d, %r13d negl %r13d movl $1, %ebx .p2align 4, 0x90 LBB0_8: ## =>This Inner Loop Header: Depth=1 movq %r12, %rdi movl $-2, %esi movl %ebx, %edx callq _lua_rawgeti movq %r12, %rdi movl $-2, %esi movl %ebx, %edx callq _lua_rawseti leal (%rbx,%r13), %eax incl %eax movl %ebx, %ecx incl %ecx movl %ecx, %ebx cmpl $1, %eax jne LBB0_8 LBB0_9: testl %r14d, %r14d jle LBB0_12 ## %bb.10: negl %r14d movl $1, %ebx .p2align 4, 0x90 LBB0_11: ## =>This Inner Loop Header: Depth=1 movq %r12, %rdi movl $-3, %esi movl %ebx, %edx callq _lua_rawgeti leal (%r15,%rbx), %edx movq %r12, %rdi movl $-2, %esi callq _lua_rawseti leal (%r14,%rbx), %eax incl %eax movl %ebx, %ecx incl %ecx movl %ecx, %ebx cmpl $1, %eax jne LBB0_11 LBB0_12: movq %r12, %rdi movl $-4, %esi callq _lua_setfenv movq %r12, %rdi movl $2, %esi callq _lua_pop jmp LBB0_4 LBB0_13: movq %r12, %rdi movl $1, %esi callq _lua_pop movq %r12, %rdi movl $-2, %esi callq _lua_setfenv jmp LBB0_3 .cfi_endproc ## -- End function .no_dead_strip _jointable .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function jointable _jointable: ; @jointable .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x0 bl _lua_getfenv mov x0, x19 mov w1, #-1 bl _lua_objlen mov x20, x0 mov x0, x19 mov w1, #-2 bl _lua_getfenv cbz w20, LBB0_2 ; %bb.1: mov x0, x19 mov w1, #-2 mov w2, #-1 bl _lua_equal cbz x0, LBB0_4 LBB0_2: mov x0, x19 mov w1, #2 bl _lua_pop mov w21, #0 LBB0_3: mov x0, x21 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret LBB0_4: mov x0, x19 mov w1, #-1 bl _lua_objlen mov x21, x0 cbz w0, LBB0_12 ; %bb.5: add w1, w21, w20 mov x0, x19 mov w2, #0 bl _lua_createtable cmp w21, #1 b.lt LBB0_8 ; %bb.6: mov w22, #0 LBB0_7: ; =>This Inner Loop Header: Depth=1 add w22, w22, #1 mov x0, x19 mov w1, #-2 mov x2, x22 bl _lua_rawgeti mov x0, x19 mov w1, #-2 mov x2, x22 bl _lua_rawseti cmp w21, w22 b.ne LBB0_7 LBB0_8: cmp w20, #1 b.lt LBB0_11 ; %bb.9: mov w24, #0 add w23, w21, #1 LBB0_10: ; =>This Inner Loop Header: Depth=1 add w22, w24, #1 mov x0, x19 mov w1, #-3 mov x2, x22 bl _lua_rawgeti add w2, w23, w24 mov x0, x19 mov w1, #-2 bl _lua_rawseti mov x24, x22 cmp w20, w22 b.ne LBB0_10 LBB0_11: mov x0, x19 mov w1, #-4 bl _lua_setfenv mov x0, x19 mov w1, #2 bl _lua_pop b LBB0_3 LBB0_12: mov x0, x19 mov w1, #1 bl _lua_pop mov x0, x19 mov w1, #-2 bl _lua_setfenv b LBB0_3 .cfi_endproc ; -- End function .no_dead_strip _jointable .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_jointable.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _luaopen_lpeg ## -- Begin function luaopen_lpeg .p2align 4, 0x90 _luaopen_lpeg: ## @luaopen_lpeg .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx callq _lua_newtable movq _LUA_ENVIRONINDEX@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi callq _lua_replace movq _PATTERN_T@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi callq _luaL_newmetatable movq _metapattreg@GOTPCREL(%rip), %rax movl (%rax), %edx movq %rbx, %rdi xorl %esi, %esi callq _luaL_register movq _pattreg@GOTPCREL(%rip), %rax movl (%rax), %edx leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _luaL_register leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _lua_pushliteral movq %rbx, %rdi movl $-2, %esi callq _lua_pushvalue movq %rbx, %rdi movl $-4, %esi callq _lua_settable movl $1, %eax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _LUA_ENVIRONINDEX,4,2 ## @LUA_ENVIRONINDEX .comm _PATTERN_T,4,2 ## @PATTERN_T .comm _metapattreg,4,2 ## @metapattreg .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "lpeg" .comm _pattreg,4,2 ## @pattreg L_.str.1: ## @.str.1 .asciz "__index" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _luaopen_lpeg ; -- Begin function luaopen_lpeg .p2align 2 _luaopen_lpeg: ; @luaopen_lpeg .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _lua_newtable Lloh0: adrp x8, _LUA_ENVIRONINDEX@GOTPAGE Lloh1: ldr x8, [x8, _LUA_ENVIRONINDEX@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov x0, x19 bl _lua_replace Lloh3: adrp x8, _PATTERN_T@GOTPAGE Lloh4: ldr x8, [x8, _PATTERN_T@GOTPAGEOFF] Lloh5: ldr w1, [x8] mov x0, x19 bl _luaL_newmetatable Lloh6: adrp x8, _metapattreg@GOTPAGE Lloh7: ldr x8, [x8, _metapattreg@GOTPAGEOFF] Lloh8: ldr w2, [x8] mov x0, x19 mov x1, #0 bl _luaL_register Lloh9: adrp x8, _pattreg@GOTPAGE Lloh10: ldr x8, [x8, _pattreg@GOTPAGEOFF] Lloh11: ldr w2, [x8] Lloh12: adrp x1, l_.str@PAGE Lloh13: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _luaL_register Lloh14: adrp x1, l_.str.1@PAGE Lloh15: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _lua_pushliteral mov x0, x19 mov w1, #-2 bl _lua_pushvalue mov x0, x19 mov w1, #-4 bl _lua_settable mov w0, #1 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh14, Lloh15 .loh AdrpAdd Lloh12, Lloh13 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _LUA_ENVIRONINDEX,4,2 ; @LUA_ENVIRONINDEX .comm _PATTERN_T,4,2 ; @PATTERN_T .comm _metapattreg,4,2 ; @metapattreg .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "lpeg" .comm _pattreg,4,2 ; @pattreg l_.str.1: ; @.str.1 .asciz "__index" .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_luaopen_lpeg.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function match _match: ## @match .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $136, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %r9, -80(%rbp) ## 8-byte Spill movq %r8, -56(%rbp) ## 8-byte Spill movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %rbx movq %rdi, -96(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -48(%rbp) movq _MAXBACK@GOTPCREL(%rip), %rax movslq (%rax), %rax movq %rax, -144(%rbp) ## 8-byte Spill movl %eax, %eax shlq $3, %rax leaq (%rax,%rax,2), %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq %rsp, %rcx movq _IMAXCAPTURES@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -84(%rbp) ## 4-byte Spill leaq 16(%rcx), %rax movq %rax, -168(%rbp) ## 8-byte Spill movq _giveup@GOTPCREL(%rip), %rax movq %rax, 16(%rcx) movq %r15, (%rcx) movq %rcx, -128(%rbp) ## 8-byte Spill movl $0, 8(%rcx) movq %r14, -104(%rbp) ## 8-byte Spill movq %rbx, -112(%rbp) ## 8-byte Spill subq %rbx, %r14 movq %r14, -152(%rbp) ## 8-byte Spill movl $1, %r13d xorl %eax, %eax movq %rax, -72(%rbp) ## 8-byte Spill jmp LBB0_1 LBB0_50: ## in Loop: Header=BB0_1 Depth=1 testq %r13, %r13 jle LBB0_51 ## %bb.52: ## in Loop: Header=BB0_1 Depth=1 cmpq $0, -24(%r14) setne %al LBB0_53: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rbx ## 8-byte Reload movzbl %al, %edi callq _assert decq %r13 LBB0_42: ## in Loop: Header=BB0_1 Depth=1 movslq 12(%rbx), %rax LBB0_43: ## in Loop: Header=BB0_1 Depth=1 leaq (%rax,%rax,2), %rax leaq (%rbx,%rax,8), %rbx movq %rbx, -56(%rbp) ## 8-byte Spill LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_33 Depth 2 ## Child Loop BB0_36 Depth 2 ## Child Loop BB0_64 Depth 2 movq -56(%rbp), %rax ## 8-byte Reload movl 16(%rax), %eax addl $-128, %eax cmpl $28, %eax ja LBB0_92 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq (,%r13,2), %r12 addq %r13, %r12 movq -128(%rbp), %rcx ## 8-byte Reload leaq (%rcx,%r12,8), %r14 movl $1, %ebx leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_26: ## in Loop: Header=BB0_1 Depth=1 movzbl (%r15), %esi movq -56(%rbp), %rbx ## 8-byte Reload movl 44(%rbx), %edi callq _testchar testl %eax, %eax je LBB0_63 ## %bb.27: ## in Loop: Header=BB0_1 Depth=1 leaq 1(%r15), %rax movq _CHARSETINSTSIZE@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx leaq (%rcx,%rcx,2), %rcx leaq (%rbx,%rcx,8), %rbx movq %rbx, -56(%rbp) ## 8-byte Spill cmpq -104(%rbp), %r15 ## 8-byte Folded Reload movq %rax, %r15 jb LBB0_1 jmp LBB0_63 LBB0_28: ## in Loop: Header=BB0_1 Depth=1 movzbl (%r15), %esi movq -56(%rbp), %rbx ## 8-byte Reload movl 44(%rbx), %edi callq _testchar testl %eax, %eax setne %cl cmpq -104(%rbp), %r15 ## 8-byte Folded Reload setb %al andb %cl, %al je LBB0_29 ## %bb.30: ## in Loop: Header=BB0_1 Depth=1 movq _CHARSETINSTSIZE@GOTPCREL(%rip), %rcx jmp LBB0_31 LBB0_22: ## in Loop: Header=BB0_1 Depth=1 movzbl (%r15), %esi movq -56(%rbp), %rbx ## 8-byte Reload movl 44(%rbx), %edi callq _testchar xorl %ecx, %ecx testl %eax, %eax setne %al je LBB0_23 ## %bb.24: ## in Loop: Header=BB0_1 Depth=1 movq _CHARSETINSTSIZE@GOTPCREL(%rip), %rdx jmp LBB0_25 LBB0_18: ## in Loop: Header=BB0_1 Depth=1 movsbl (%r15), %eax movq -56(%rbp), %rcx ## 8-byte Reload cmpl %eax, 8(%rcx) jne LBB0_20 ## %bb.19: ## in Loop: Header=BB0_1 Depth=1 cmpq -104(%rbp), %r15 ## 8-byte Folded Reload jb LBB0_17 jmp LBB0_20 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rdx ## 8-byte Reload movslq 8(%rdx), %rax movq -104(%rbp), %rcx ## 8-byte Reload subq %r15, %rcx cmpq %rax, %rcx jl LBB0_13 ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 addq $24, %rdx movq %rdx, -56(%rbp) ## 8-byte Spill addq %rax, %r15 jmp LBB0_1 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq -104(%rbp), %r14 ## 8-byte Reload cmpq %r14, %r15 jae LBB0_4 ## %bb.35: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %rbx subq %r15, %rbx movq -56(%rbp), %r12 ## 8-byte Reload .p2align 4, 0x90 LBB0_36: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movzbl (%r15), %esi movl 44(%r12), %edi callq _testchar testl %eax, %eax je LBB0_39 ## %bb.37: ## in Loop: Header=BB0_36 Depth=2 incq %r15 decq %rbx jne LBB0_36 ## %bb.38: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %r15 jmp LBB0_39 LBB0_32: ## in Loop: Header=BB0_1 Depth=1 decq %r15 movq -56(%rbp), %rbx ## 8-byte Reload .p2align 4, 0x90 LBB0_33: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movzbl 1(%r15), %esi incq %r15 movl 44(%rbx), %edi callq _testchar testl %eax, %eax jne LBB0_33 ## %bb.34: ## in Loop: Header=BB0_1 Depth=1 movq _CHARSETINSTSIZE@GOTPCREL(%rip), %rax movslq (%rax), %rax jmp LBB0_43 LBB0_21: ## in Loop: Header=BB0_1 Depth=1 movzbl (%r15), %esi movq -56(%rbp), %rbx ## 8-byte Reload movl 44(%rbx), %edi callq _testchar incq %r15 movq _CHARSETINSTSIZE@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx leaq (%rcx,%rcx,2), %rcx leaq (%rbx,%rcx,8), %rbx movq %rbx, -56(%rbp) ## 8-byte Spill testl %eax, %eax jne LBB0_1 jmp LBB0_63 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 testq %r13, %r13 jle LBB0_8 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 cmpq $0, -24(%r14) sete %al jmp LBB0_10 LBB0_54: ## in Loop: Header=BB0_1 Depth=1 testq %r13, %r13 jle LBB0_55 ## %bb.56: ## in Loop: Header=BB0_1 Depth=1 cmpq $0, -24(%r14) setne %al jmp LBB0_57 LBB0_86: ## in Loop: Header=BB0_1 Depth=1 xorl %ebx, %ebx jmp LBB0_88 LBB0_44: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rcx ## 8-byte Reload LBB0_20: ## in Loop: Header=BB0_1 Depth=1 movslq 12(%rcx), %rax leaq (%rax,%rax,2), %rax leaq (%rcx,%rax,8), %rcx movq %rcx, -56(%rbp) ## 8-byte Spill jmp LBB0_1 LBB0_40: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rbx ## 8-byte Reload movl 68(%rbx), %edi movq -112(%rbp), %rsi ## 8-byte Reload movq %r15, %rdx movq -104(%rbp), %rcx ## 8-byte Reload callq *24(%rbx) testq %rax, %rax je LBB0_63 ## %bb.41: ## in Loop: Header=BB0_1 Depth=1 movq %rax, %r15 jmp LBB0_42 LBB0_87: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rdi ## 8-byte Reload callq _getoff movl %eax, %ebx incl %ebx jmp LBB0_88 LBB0_62: ## in Loop: Header=BB0_1 Depth=1 xorl %edi, %edi testq %r13, %r13 setg %dil callq _assert decq %r13 jmp LBB0_63 LBB0_66: ## in Loop: Header=BB0_1 Depth=1 movq -96(%rbp), %rbx ## 8-byte Reload movq %rbx, %rdi callq _lua_gettop ## kill: def $eax killed $eax def $rax movq %rax, -160(%rbp) ## 8-byte Spill leal 1(%rax), %r14d movl %r14d, -60(%rbp) ## 4-byte Spill movslq -72(%rbp), %rax ## 4-byte Folded Reload leaq (%rax,%rax,2), %rax movq -80(%rbp), %rdx ## 8-byte Reload leaq (%rdx,%rax,8), %rsi movq %rbx, %rdi movq -112(%rbp), %r12 ## 8-byte Reload movq %r12, %rcx movq %r15, %r8 movl 16(%rbp), %r9d callq _runtimecap movl %eax, -132(%rbp) ## 4-byte Spill movq %rbx, %rdi movl %r14d, %esi callq _lua_tointeger movl %eax, %r14d movq %rbx, %rdi callq _lua_gettop movl -60(%rbp), %esi ## 4-byte Reload ## kill: def $eax killed $eax def $rax subl $1, %r14d jae LBB0_73 ## %bb.67: ## in Loop: Header=BB0_1 Depth=1 movq %rax, -120(%rbp) ## 8-byte Spill movq -96(%rbp), %rbx ## 8-byte Reload movq %rbx, %rdi movl %esi, %r14d callq _lua_toboolean movq %rbx, %rdi testl %eax, %eax je LBB0_68 ## %bb.69: ## in Loop: Header=BB0_1 Depth=1 movl %r14d, %esi callq _lua_isboolean testl %eax, %eax je LBB0_70 ## %bb.71: ## in Loop: Header=BB0_1 Depth=1 movl %r15d, %r14d movq -112(%rbp), %r12 ## 8-byte Reload subl %r12d, %r14d jmp LBB0_72 LBB0_83: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rdi ## 8-byte Reload callq _getoff movl %eax, %r14d xorl %edi, %edi movq -72(%rbp), %r12 ## 8-byte Reload testl %r12d, %r12d setg %dil callq _assert leal -1(%r12), %eax cltq leaq (%rax,%rax,2), %rax movq -80(%rbp), %rsi ## 8-byte Reload cmpl $0, 8(%rsi,%rax,8) jne LBB0_88 ## %bb.84: ## in Loop: Header=BB0_1 Depth=1 movslq %r14d, %rdx movq %r15, %rcx subq %rdx, %rcx subq (%rsi,%rax,8), %rcx movq _UCHAR_MAX@GOTPCREL(%rip), %rdx cmpq %rcx, (%rdx) jbe LBB0_88 ## %bb.85: ## in Loop: Header=BB0_1 Depth=1 movq -80(%rbp), %rdx ## 8-byte Reload leaq (%rdx,%rax,8), %rax addq $8, %rax incl %ecx movl %ecx, (%rax) addq $24, -56(%rbp) ## 8-byte Folded Spill jmp LBB0_1 LBB0_88: ## in Loop: Header=BB0_1 Depth=1 movslq -72(%rbp), %rax ## 4-byte Folded Reload leaq (%rax,%rax,2), %r14 movq -80(%rbp), %r12 ## 8-byte Reload movl %ebx, 8(%r12,%r14,8) movq -56(%rbp), %rbx ## 8-byte Reload movq %rbx, %rdi callq _getoff cltq movq %r15, %rcx subq %rax, %rcx movq %rcx, (%r12,%r14,8) movl 12(%rbx), %eax movl %eax, 16(%r12,%r14,8) movq %rbx, %rdi movq -72(%rbp), %rbx ## 8-byte Reload callq _getkind movl %eax, 12(%r12,%r14,8) incl %ebx cmpl -84(%rbp), %ebx ## 4-byte Folded Reload movq %rbx, -72(%rbp) ## 8-byte Spill jl LBB0_90 ## %bb.89: ## in Loop: Header=BB0_1 Depth=1 movq -96(%rbp), %rdi ## 8-byte Reload movq %r12, %rsi movl %ebx, %edx movl 16(%rbp), %ecx callq _doublecap movq %rax, -80(%rbp) ## 8-byte Spill leal (%rbx,%rbx), %eax movl %eax, -84(%rbp) ## 4-byte Spill LBB0_90: ## in Loop: Header=BB0_1 Depth=1 addq $24, -56(%rbp) ## 8-byte Folded Spill jmp LBB0_1 LBB0_45: ## in Loop: Header=BB0_1 Depth=1 cmpq -144(%rbp), %r13 ## 8-byte Folded Reload jge LBB0_46 ## %bb.47: ## in Loop: Header=BB0_1 Depth=1 xorl %edi, %edi movq -56(%rbp), %rbx ## 8-byte Reload movq %rbx, %rsi callq _dest movq -128(%rbp), %rdx ## 8-byte Reload movq %rax, 16(%rdx,%r12,8) movslq 8(%rbx), %rax movq %r15, %rcx subq %rax, %rcx movq %rcx, (%r14) movq -72(%rbp), %rax ## 8-byte Reload movl %eax, 8(%rdx,%r12,8) incq %r13 addq $24, %rbx movq %rbx, -56(%rbp) ## 8-byte Spill jmp LBB0_1 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 movsbl (%r15), %eax movq -56(%rbp), %rcx ## 8-byte Reload cmpl %eax, 8(%rcx) jne LBB0_63 ## %bb.16: ## in Loop: Header=BB0_1 Depth=1 cmpq -104(%rbp), %r15 ## 8-byte Folded Reload jae LBB0_63 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 addq $24, %rcx movq %rcx, -56(%rbp) ## 8-byte Spill incq %r15 jmp LBB0_1 LBB0_48: ## in Loop: Header=BB0_1 Depth=1 cmpq -144(%rbp), %r13 ## 8-byte Folded Reload jge LBB0_46 ## %bb.49: ## in Loop: Header=BB0_1 Depth=1 movq $0, (%r14) movq -56(%rbp), %rdx ## 8-byte Reload leaq 24(%rdx), %rax movq -128(%rbp), %rcx ## 8-byte Reload movq %rax, 16(%rcx,%r12,8) incq %r13 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movslq 12(%rdx), %rax leaq (%rax,%rax,2), %rax leaq (%rdx,%rax,8), %rdx movq %rdx, -56(%rbp) ## 8-byte Spill jmp LBB0_1 LBB0_58: ## in Loop: Header=BB0_1 Depth=1 testq %r13, %r13 jle LBB0_59 ## %bb.60: ## in Loop: Header=BB0_1 Depth=1 cmpq $0, -24(%r14) setne %al jmp LBB0_61 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rdx ## 8-byte Reload movslq 8(%rdx), %rax movq -104(%rbp), %rcx ## 8-byte Reload subq %r15, %rcx addq $24, %rdx movq %rdx, -56(%rbp) ## 8-byte Spill addq %rax, %r15 cmpq %rax, %rcx jge LBB0_1 jmp LBB0_63 LBB0_29: ## in Loop: Header=BB0_1 Depth=1 leaq 12(%rbx), %rcx LBB0_31: ## in Loop: Header=BB0_1 Depth=1 movzbl %al, %eax addq %rax, %r15 movslq (%rcx), %rax jmp LBB0_43 LBB0_23: ## in Loop: Header=BB0_1 Depth=1 leaq 12(%rbx), %rdx LBB0_25: ## in Loop: Header=BB0_1 Depth=1 movb %al, %cl addq %rcx, %r15 movslq (%rdx), %rax jmp LBB0_43 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %r12 ## 8-byte Reload LBB0_39: ## in Loop: Header=BB0_1 Depth=1 movq _CHARSETINSTSIZE@GOTPCREL(%rip), %rax movslq (%rax), %rax leaq (%rax,%rax,2), %rax leaq (%r12,%rax,8), %r12 movq %r12, -56(%rbp) ## 8-byte Spill jmp LBB0_1 LBB0_51: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax jmp LBB0_53 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movzbl %al, %edi callq _assert decq %r13 movq -8(%r14), %rax movq %rax, -56(%rbp) ## 8-byte Spill jmp LBB0_1 LBB0_55: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax LBB0_57: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rbx ## 8-byte Reload movzbl %al, %edi callq _assert movq %r15, -24(%r14) movq -72(%rbp), %rax ## 8-byte Reload movl %eax, -16(%r14) jmp LBB0_42 LBB0_59: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax LBB0_61: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %rbx ## 8-byte Reload movzbl %al, %edi callq _assert decq %r13 leaq (,%r13,2), %rax addq %r13, %rax movq -128(%rbp), %rcx ## 8-byte Reload movq (%rcx,%rax,8), %r15 jmp LBB0_42 LBB0_68: ## in Loop: Header=BB0_1 Depth=1 movq -160(%rbp), %rsi ## 8-byte Reload ## kill: def $esi killed $esi killed $rsi callq _lua_settop LBB0_63: ## in Loop: Header=BB0_1 Depth=1 leaq (,%r13,2), %rax addq %r13, %rax movq -168(%rbp), %rcx ## 8-byte Reload leaq (%rcx,%rax,8), %rbx .p2align 4, 0x90 LBB0_64: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 xorl %edi, %edi testq %r13, %r13 setg %dil callq _assert decq %r13 movq -40(%rbx), %r15 addq $-24, %rbx testq %r15, %r15 je LBB0_64 ## %bb.65: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbx), %eax movq %rax, -72(%rbp) ## 8-byte Spill movq (%rbx), %rax movq %rax, -56(%rbp) ## 8-byte Spill jmp LBB0_1 LBB0_70: ## in Loop: Header=BB0_1 Depth=1 movl $-1, %r14d movq -112(%rbp), %r12 ## 8-byte Reload LBB0_72: ## in Loop: Header=BB0_1 Depth=1 movl -60(%rbp), %esi ## 4-byte Reload movq -120(%rbp), %rax ## 8-byte Reload LBB0_73: ## in Loop: Header=BB0_1 Depth=1 subl %esi, %eax movq %rax, -120(%rbp) ## 8-byte Spill movslq %r14d, %r14 subq %r12, %r15 cmpq %r14, %r15 movq -96(%rbp), %rbx ## 8-byte Reload jg LBB0_75 ## %bb.74: ## in Loop: Header=BB0_1 Depth=1 cmpq %r14, -152(%rbp) ## 8-byte Folded Reload jge LBB0_76 LBB0_75: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rsi movq %rbx, %rdi xorl %eax, %eax callq _luaL_error movl -60(%rbp), %esi ## 4-byte Reload movq -112(%rbp), %r12 ## 8-byte Reload LBB0_76: ## in Loop: Header=BB0_1 Depth=1 addq %r12, %r14 movq -72(%rbp), %r12 ## 8-byte Reload subl -132(%rbp), %r12d ## 4-byte Folded Reload movq %rbx, %rdi callq _lua_remove movq -120(%rbp), %rbx ## 8-byte Reload testl %ebx, %ebx jle LBB0_77 ## %bb.78: ## in Loop: Header=BB0_1 Depth=1 addl %ebx, %r12d incl %r12d cmpl -84(%rbp), %r12d ## 4-byte Folded Reload movq -56(%rbp), %r15 ## 8-byte Reload jge LBB0_80 ## %bb.79: ## in Loop: Header=BB0_1 Depth=1 movq -80(%rbp), %rax ## 8-byte Reload jmp LBB0_81 LBB0_77: ## in Loop: Header=BB0_1 Depth=1 movq %r12, -72(%rbp) ## 8-byte Spill movq -56(%rbp), %r15 ## 8-byte Reload jmp LBB0_82 LBB0_80: ## in Loop: Header=BB0_1 Depth=1 movq -96(%rbp), %rdi ## 8-byte Reload movq -80(%rbp), %rsi ## 8-byte Reload movl %r12d, %edx movl 16(%rbp), %ecx callq _doublecap leal (%r12,%r12), %ecx movl %ecx, -84(%rbp) ## 4-byte Spill LBB0_81: ## in Loop: Header=BB0_1 Depth=1 movl -60(%rbp), %ecx ## 4-byte Reload movq %r12, -72(%rbp) ## 8-byte Spill movslq %r12d, %rdx leaq (%rdx,%rdx,2), %rdx movq %rax, -80(%rbp) ## 8-byte Spill leaq (%rax,%rdx,8), %rax movl %ebx, %edx negq %rdx leaq (%rdx,%rdx,2), %rdx leaq (%rax,%rdx,8), %rsi addq $-24, %rsi movq %r14, %rdi movl %ebx, %edx callq _adddyncaptures LBB0_82: ## in Loop: Header=BB0_1 Depth=1 addq $24, %r15 movq %r15, -56(%rbp) ## 8-byte Spill movq %r14, %r15 jmp LBB0_1 LBB0_46: leaq L_.str(%rip), %rsi xorl %r15d, %r15d movq -96(%rbp), %rdi ## 8-byte Reload xorl %eax, %eax callq _luaL_error jmp LBB0_93 LBB0_91: movl 16(%rbp), %edi callq _penvidx movq -56(%rbp), %rcx ## 8-byte Reload movl 12(%rcx), %edx movq -96(%rbp), %rbx ## 8-byte Reload movq %rbx, %rdi movl %eax, %esi callq _lua_rawgeti movq %rbx, %rdi movl $-1, %esi callq _val2str leaq L_.str.2(%rip), %rsi movq %rbx, %rdi movl %eax, %edx xorl %eax, %eax callq _luaL_error LBB0_92: xorl %r15d, %r15d xorl %edi, %edi callq _assert jmp LBB0_93 LBB0_6: xorl %edi, %edi testq %r13, %r13 sete %dil callq _assert xorl %r15d, %r15d jmp LBB0_93 LBB0_5: xorl %edi, %edi cmpq $1, %r13 sete %dil callq _assert movq _Cclose@GOTPCREL(%rip), %rax movl (%rax), %eax movslq -72(%rbp), %rcx ## 4-byte Folded Reload leaq (%rcx,%rcx,2), %rcx movq -80(%rbp), %rdx ## 8-byte Reload movl %eax, 12(%rdx,%rcx,8) movq $0, (%rdx,%rcx,8) LBB0_93: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax cmpq -48(%rbp), %rax jne LBB0_95 ## %bb.94: movq %r15, %rax leaq -40(%rbp), %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_95: callq ___stack_chk_fail .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_26, LBB0_26-LJTI0_0 .set L0_0_set_28, LBB0_28-LJTI0_0 .set L0_0_set_22, LBB0_22-LJTI0_0 .set L0_0_set_18, LBB0_18-LJTI0_0 .set L0_0_set_12, LBB0_12-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_32, LBB0_32-LJTI0_0 .set L0_0_set_21, LBB0_21-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_54, LBB0_54-LJTI0_0 .set L0_0_set_86, LBB0_86-LJTI0_0 .set L0_0_set_91, LBB0_91-LJTI0_0 .set L0_0_set_44, LBB0_44-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_40, LBB0_40-LJTI0_0 .set L0_0_set_87, LBB0_87-LJTI0_0 .set L0_0_set_62, LBB0_62-LJTI0_0 .set L0_0_set_63, LBB0_63-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 .set L0_0_set_88, LBB0_88-LJTI0_0 .set L0_0_set_50, LBB0_50-LJTI0_0 .set L0_0_set_66, LBB0_66-LJTI0_0 .set L0_0_set_83, LBB0_83-LJTI0_0 .set L0_0_set_45, LBB0_45-LJTI0_0 .set L0_0_set_15, LBB0_15-LJTI0_0 .set L0_0_set_48, LBB0_48-LJTI0_0 .set L0_0_set_58, LBB0_58-LJTI0_0 .set L0_0_set_11, LBB0_11-LJTI0_0 LJTI0_0: .long L0_0_set_26 .long L0_0_set_28 .long L0_0_set_22 .long L0_0_set_18 .long L0_0_set_12 .long L0_0_set_3 .long L0_0_set_32 .long L0_0_set_21 .long L0_0_set_7 .long L0_0_set_54 .long L0_0_set_86 .long L0_0_set_91 .long L0_0_set_44 .long L0_0_set_6 .long L0_0_set_40 .long L0_0_set_87 .long L0_0_set_62 .long L0_0_set_63 .long L0_0_set_5 .long L0_0_set_88 .long L0_0_set_88 .long L0_0_set_50 .long L0_0_set_66 .long L0_0_set_83 .long L0_0_set_45 .long L0_0_set_15 .long L0_0_set_48 .long L0_0_set_58 .long L0_0_set_11 .end_data_region ## -- End function .comm _MAXBACK,4,2 ## @MAXBACK .comm _IMAXCAPTURES,4,2 ## @IMAXCAPTURES .comm _giveup,24,3 ## @giveup .comm _Cclose,4,2 ## @Cclose .comm _CHARSETINSTSIZE,4,2 ## @CHARSETINSTSIZE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "too many pending calls/choices" L_.str.1: ## @.str.1 .asciz "invalid position returned by match-time capture" .comm _UCHAR_MAX,8,3 ## @UCHAR_MAX L_.str.2: ## @.str.2 .asciz "reference to %s outside a grammar" .no_dead_strip _match .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function match _match: ; @match .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill .cfi_def_cfa_offset 96 stp x26, x25, [sp, #16] ; 16-byte Folded Spill stp x24, x23, [sp, #32] ; 16-byte Folded Spill stp x22, x21, [sp, #48] ; 16-byte Folded Spill stp x20, x19, [sp, #64] ; 16-byte Folded Spill stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 .cfi_offset w27, -88 .cfi_offset w28, -96 sub sp, sp, #80 mov x28, x6 mov x27, x5 mov x26, x4 mov x20, x3 mov x25, x2 mov x23, x0 Lloh0: adrp x8, ___stack_chk_guard@GOTPAGE Lloh1: ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] Lloh2: ldr x8, [x8] stur x8, [x29, #-88] Lloh3: adrp x8, _MAXBACK@GOTPAGE Lloh4: ldr x8, [x8, _MAXBACK@GOTPAGEOFF] Lloh5: ldrsw x9, [x8] and x8, x9, #0xffffffff stur x9, [x29, #-128] ; 8-byte Folded Spill add x8, x8, w9, uxtw #1 lsl x9, x8, #3 add x8, x9, #15 and x8, x8, #0x3ffffffff0 Lloh6: adrp x16, ___chkstk_darwin@GOTPAGE Lloh7: ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 mov x9, sp sub x22, x9, x8 mov sp, x22 mov w24, #0 Lloh8: adrp x8, _IMAXCAPTURES@GOTPAGE Lloh9: ldr x8, [x8, _IMAXCAPTURES@GOTPAGEOFF] Lloh10: ldr w8, [x8] stur w8, [x29, #-92] ; 4-byte Folded Spill Lloh11: adrp x8, _giveup@GOTPAGE Lloh12: ldr x8, [x8, _giveup@GOTPAGEOFF] mov x9, x22 str x8, [x9, #16]! stp x1, x9, [x29, #-112] ; 16-byte Folded Spill str x2, [x22] str wzr, [x22, #8] sub x8, x3, x1 stp x8, x0, [x29, #-160] ; 16-byte Folded Spill mov w21, #1 stur x3, [x29, #-136] ; 8-byte Folded Spill stur w6, [x29, #-144] ; 4-byte Folded Spill b LBB0_6 LBB0_1: ; in Loop: Header=BB0_6 Depth=1 cmp x21, #1 b.lt LBB0_57 ; %bb.2: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x19, #-24] cmp x8, #0 cset w0, ne LBB0_3: ; in Loop: Header=BB0_6 Depth=1 bl _assert stur x25, [x19, #-24] stur w24, [x19, #-16] LBB0_4: ; in Loop: Header=BB0_6 Depth=1 ldrsw x8, [x26, #12] LBB0_5: ; in Loop: Header=BB0_6 Depth=1 mov w9, #24 madd x26, x8, x9, x26 LBB0_6: ; =>This Loop Header: Depth=1 ; Child Loop BB0_21 Depth 2 ; Child Loop BB0_17 Depth 2 ; Child Loop BB0_71 Depth 2 ldr w8, [x26, #16] sub w9, w8, #128 cmp w9, #28 b.hi LBB0_76 ; %bb.7: ; in Loop: Header=BB0_6 Depth=1 mov w8, #24 madd x19, x21, x8, x22 mov w8, #1 Lloh13: adrp x12, lJTI0_0@PAGE Lloh14: add x12, x12, lJTI0_0@PAGEOFF adr x10, LBB0_1 ldrh w11, [x12, x9, lsl #1] add x10, x10, x11, lsl #2 br x10 LBB0_8: ; in Loop: Header=BB0_6 Depth=1 mov x19, x25 ldrb w1, [x19], #1 ldr w0, [x26, #44] bl _testchar cbz w0, LBB0_70 ; %bb.9: ; in Loop: Header=BB0_6 Depth=1 Lloh15: adrp x8, _CHARSETINSTSIZE@GOTPAGE Lloh16: ldr x8, [x8, _CHARSETINSTSIZE@GOTPAGEOFF] Lloh17: ldrsw x8, [x8] mov w9, #24 madd x26, x8, x9, x26 cmp x25, x20 mov x25, x19 b.lo LBB0_6 b LBB0_70 LBB0_10: ; in Loop: Header=BB0_6 Depth=1 ldrb w1, [x25] ldr w0, [x26, #44] bl _testchar cmp w0, #0 cset w8, ne cmp x25, x20 cset w9, lo add x10, x26, #12 Lloh18: adrp x11, _CHARSETINSTSIZE@GOTPAGE Lloh19: ldr x11, [x11, _CHARSETINSTSIZE@GOTPAGEOFF] ands w8, w8, w9 csel x9, x11, x10, ne add x25, x25, x8 ldrsw x8, [x9] b LBB0_5 LBB0_11: ; in Loop: Header=BB0_6 Depth=1 mov x19, x25 ldrb w1, [x19], #1 ldr w0, [x26, #44] bl _testchar add x8, x26, #12 Lloh20: adrp x9, _CHARSETINSTSIZE@GOTPAGE Lloh21: ldr x9, [x9, _CHARSETINSTSIZE@GOTPAGEOFF] cmp w0, #0 csel x8, x8, x9, eq csel x25, x25, x19, eq ldrsw x8, [x8] b LBB0_5 LBB0_12: ; in Loop: Header=BB0_6 Depth=1 ldrsb w8, [x25] ldr w9, [x26, #8] cmp w9, w8 ccmp x25, x20, #2, eq b.hs LBB0_4 b LBB0_47 LBB0_13: ; in Loop: Header=BB0_6 Depth=1 ldrsw x8, [x26, #8] sub x9, x20, x25 cmp x9, x8 b.lt LBB0_4 ; %bb.14: ; in Loop: Header=BB0_6 Depth=1 add x26, x26, #24 add x25, x25, x8 b LBB0_6 LBB0_15: ; in Loop: Header=BB0_6 Depth=1 cmp x25, x20 b.hs LBB0_22 ; %bb.16: ; in Loop: Header=BB0_6 Depth=1 sub x19, x20, x25 LBB0_17: ; Parent Loop BB0_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldrb w1, [x25] ldr w0, [x26, #44] bl _testchar cbz w0, LBB0_22 ; %bb.18: ; in Loop: Header=BB0_17 Depth=2 add x25, x25, #1 subs x19, x19, #1 b.ne LBB0_17 ; %bb.19: ; in Loop: Header=BB0_6 Depth=1 mov x25, x20 b LBB0_22 LBB0_20: ; in Loop: Header=BB0_6 Depth=1 sub x25, x25, #1 LBB0_21: ; Parent Loop BB0_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldrb w1, [x25, #1]! ldr w0, [x26, #44] bl _testchar cbnz w0, LBB0_21 LBB0_22: ; in Loop: Header=BB0_6 Depth=1 Lloh22: adrp x8, _CHARSETINSTSIZE@GOTPAGE Lloh23: ldr x8, [x8, _CHARSETINSTSIZE@GOTPAGEOFF] Lloh24: ldrsw x8, [x8] b LBB0_5 LBB0_23: ; in Loop: Header=BB0_6 Depth=1 ldrb w1, [x25], #1 ldr w0, [x26, #44] bl _testchar Lloh25: adrp x8, _CHARSETINSTSIZE@GOTPAGE Lloh26: ldr x8, [x8, _CHARSETINSTSIZE@GOTPAGEOFF] Lloh27: ldrsw x8, [x8] mov w9, #24 madd x26, x8, x9, x26 cbnz w0, LBB0_6 b LBB0_70 LBB0_24: ; in Loop: Header=BB0_6 Depth=1 subs x21, x21, #1 b.lt LBB0_58 ; %bb.25: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x19, #-24] cmp x8, #0 cset w0, eq b LBB0_59 LBB0_26: ; in Loop: Header=BB0_6 Depth=1 mov w8, #0 b LBB0_54 LBB0_27: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [x26, #24] ldr w0, [x26, #68] ldur x1, [x29, #-112] ; 8-byte Folded Reload mov x2, x25 mov x3, x20 blr x8 cbz x0, LBB0_70 ; %bb.28: ; in Loop: Header=BB0_6 Depth=1 mov x25, x0 b LBB0_4 LBB0_29: ; in Loop: Header=BB0_6 Depth=1 mov x0, x26 bl _getoff add w8, w0, #1 b LBB0_54 LBB0_30: ; in Loop: Header=BB0_6 Depth=1 cmp x21, #0 cset w0, gt bl _assert sub x21, x21, #1 b LBB0_70 LBB0_31: ; in Loop: Header=BB0_6 Depth=1 subs x21, x21, #1 b.lt LBB0_60 ; %bb.32: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x19, #-24] cmp x8, #0 cset w0, ne bl _assert b LBB0_4 LBB0_33: ; in Loop: Header=BB0_6 Depth=1 mov x0, x23 bl _lua_gettop mov x20, x0 mov x2, x27 add w27, w0, #1 mov w8, #24 smaddl x1, w24, w8, x2 mov x0, x23 stur x2, [x29, #-120] ; 8-byte Folded Spill ldur x3, [x29, #-112] ; 8-byte Folded Reload mov x4, x25 mov x5, x28 bl _runtimecap stur w0, [x29, #-140] ; 4-byte Folded Spill mov x0, x23 mov x1, x27 bl _lua_tointeger mov x19, x0 mov x0, x23 bl _lua_gettop mov x28, x0 cbz w19, LBB0_61 ; %bb.34: ; in Loop: Header=BB0_6 Depth=1 sub w8, w19, #1 LBB0_35: ; in Loop: Header=BB0_6 Depth=1 sub w20, w28, w27 sxtw x19, w8 ldur x8, [x29, #-112] ; 8-byte Folded Reload sub x8, x25, x8 cmp x8, x19 ldur x23, [x29, #-152] ; 8-byte Folded Reload b.gt LBB0_37 ; %bb.36: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x29, #-160] ; 8-byte Folded Reload cmp x8, x19 b.ge LBB0_38 LBB0_37: ; in Loop: Header=BB0_6 Depth=1 Lloh28: adrp x1, l_.str.1@PAGE Lloh29: add x1, x1, l_.str.1@PAGEOFF mov x0, x23 bl _luaL_error LBB0_38: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x29, #-112] ; 8-byte Folded Reload add x25, x8, x19 ldur w8, [x29, #-140] ; 4-byte Folded Reload sub w24, w24, w8 mov x0, x23 mov x1, x27 bl _lua_remove cmp w20, #1 ldur w28, [x29, #-144] ; 4-byte Folded Reload b.lt LBB0_68 ; %bb.39: ; in Loop: Header=BB0_6 Depth=1 add w8, w24, w20 add w24, w8, #1 ldur w8, [x29, #-92] ; 4-byte Folded Reload cmp w24, w8 b.ge LBB0_66 ; %bb.40: ; in Loop: Header=BB0_6 Depth=1 ldur x0, [x29, #-120] ; 8-byte Folded Reload b LBB0_67 LBB0_41: ; in Loop: Header=BB0_6 Depth=1 mov x0, x26 bl _getoff mov x20, x0 cmp w24, #0 cset w0, gt bl _assert sxtw x8, w24 sub x9, x8, #1 mov w8, #24 madd x8, x9, x8, x27 ldr w10, [x8, #8]! cbnz w10, LBB0_53 ; %bb.42: ; in Loop: Header=BB0_6 Depth=1 mov w10, #24 mul x9, x9, x10 ldr x9, [x27, x9] sub x10, x25, w20, sxtw Lloh30: adrp x11, _UCHAR_MAX@GOTPAGE Lloh31: ldr x11, [x11, _UCHAR_MAX@GOTPAGEOFF] Lloh32: ldr x11, [x11] sub x9, x10, x9 cmp x11, x9 b.ls LBB0_53 ; %bb.43: ; in Loop: Header=BB0_6 Depth=1 add w9, w9, #1 str w9, [x8] add x26, x26, #24 ldur x20, [x29, #-136] ; 8-byte Folded Reload b LBB0_6 LBB0_44: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x29, #-128] ; 8-byte Folded Reload cmp x21, x8 b.ge LBB0_74 ; %bb.45: ; in Loop: Header=BB0_6 Depth=1 mov w0, #0 mov x1, x26 bl _dest mov w8, #24 madd x8, x21, x8, x22 str x0, [x8, #16] ldrsw x9, [x26, #8] sub x9, x25, x9 str x9, [x19] str w24, [x8, #8] add x21, x21, #1 add x26, x26, #24 b LBB0_6 LBB0_46: ; in Loop: Header=BB0_6 Depth=1 ldrsb w8, [x25] ldr w9, [x26, #8] cmp w9, w8 ccmp x25, x20, #2, eq b.hs LBB0_70 LBB0_47: ; in Loop: Header=BB0_6 Depth=1 add x26, x26, #24 add x25, x25, #1 b LBB0_6 LBB0_48: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x29, #-128] ; 8-byte Folded Reload cmp x21, x8 b.ge LBB0_74 ; %bb.49: ; in Loop: Header=BB0_6 Depth=1 str xzr, [x19] add x8, x26, #24 mov w9, #24 madd x10, x21, x9, x22 str x8, [x10, #16] add x21, x21, #1 ldrsw x8, [x26, #12] madd x26, x8, x9, x26 b LBB0_6 LBB0_50: ; in Loop: Header=BB0_6 Depth=1 subs x21, x21, #1 b.lt LBB0_64 ; %bb.51: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x19, #-24] cmp x8, #0 cset w0, ne b LBB0_65 LBB0_52: ; in Loop: Header=BB0_6 Depth=1 ldrsw x8, [x26, #8] add x26, x26, #24 sub x9, x20, x25 add x25, x25, x8 cmp x9, x8 b.ge LBB0_6 b LBB0_70 LBB0_53: ; in Loop: Header=BB0_6 Depth=1 mov w8, #1 ldur x20, [x29, #-136] ; 8-byte Folded Reload LBB0_54: ; in Loop: Header=BB0_6 Depth=1 mov w9, #24 smaddl x19, w24, w9, x27 str w8, [x19, #8] mov x0, x26 bl _getoff sub x8, x25, w0, sxtw str x8, [x19] ldr w8, [x26, #12] str w8, [x19, #16] mov x0, x26 bl _getkind str w0, [x19, #12] add w24, w24, #1 ldur w8, [x29, #-92] ; 4-byte Folded Reload cmp w24, w8 b.lt LBB0_56 ; %bb.55: ; in Loop: Header=BB0_6 Depth=1 mov x0, x23 mov x1, x27 mov x2, x24 mov x3, x28 bl _doublecap mov x27, x0 lsl w8, w24, #1 stur w8, [x29, #-92] ; 4-byte Folded Spill LBB0_56: ; in Loop: Header=BB0_6 Depth=1 add x26, x26, #24 b LBB0_6 LBB0_57: ; in Loop: Header=BB0_6 Depth=1 mov w0, #0 b LBB0_3 LBB0_58: ; in Loop: Header=BB0_6 Depth=1 mov w0, #0 LBB0_59: ; in Loop: Header=BB0_6 Depth=1 bl _assert ldur x26, [x19, #-8] b LBB0_6 LBB0_60: ; in Loop: Header=BB0_6 Depth=1 mov w0, #0 bl _assert b LBB0_4 LBB0_61: ; in Loop: Header=BB0_6 Depth=1 mov x0, x23 mov x1, x27 bl _lua_toboolean cbz w0, LBB0_69 ; %bb.62: ; in Loop: Header=BB0_6 Depth=1 mov x0, x23 mov x1, x27 bl _lua_isboolean cbz w0, LBB0_73 ; %bb.63: ; in Loop: Header=BB0_6 Depth=1 ldur x8, [x29, #-112] ; 8-byte Folded Reload sub w8, w25, w8 b LBB0_35 LBB0_64: ; in Loop: Header=BB0_6 Depth=1 mov w0, #0 LBB0_65: ; in Loop: Header=BB0_6 Depth=1 bl _assert mov w8, #24 mul x9, x21, x8 ldr x25, [x22, x9] ldrsw x9, [x26, #12] madd x26, x9, x8, x26 b LBB0_6 LBB0_66: ; in Loop: Header=BB0_6 Depth=1 mov x0, x23 ldur x1, [x29, #-120] ; 8-byte Folded Reload mov x2, x24 mov x3, x28 bl _doublecap lsl w8, w24, #1 stur w8, [x29, #-92] ; 4-byte Folded Spill LBB0_67: ; in Loop: Header=BB0_6 Depth=1 mov w8, #24 stur x0, [x29, #-120] ; 8-byte Folded Spill smaddl x9, w24, w8, x0 mneg x8, x20, x8 add x8, x9, x8 sub x1, x8, #24 mov x0, x25 mov x2, x20 mov x3, x27 bl _adddyncaptures LBB0_68: ; in Loop: Header=BB0_6 Depth=1 add x26, x26, #24 ldur x27, [x29, #-120] ; 8-byte Folded Reload ldur x20, [x29, #-136] ; 8-byte Folded Reload b LBB0_6 LBB0_69: ; in Loop: Header=BB0_6 Depth=1 mov x0, x23 mov x1, x20 bl _lua_settop ldur w28, [x29, #-144] ; 4-byte Folded Reload ldur x27, [x29, #-120] ; 8-byte Folded Reload ldur x20, [x29, #-136] ; 8-byte Folded Reload LBB0_70: ; in Loop: Header=BB0_6 Depth=1 mov w8, #24 ldur x9, [x29, #-104] ; 8-byte Folded Reload madd x19, x21, x8, x9 LBB0_71: ; Parent Loop BB0_6 Depth=1 ; => This Inner Loop Header: Depth=2 cmp x21, #0 cset w0, gt bl _assert sub x21, x21, #1 ldur x25, [x19, #-40] sub x19, x19, #24 cbz x25, LBB0_71 ; %bb.72: ; in Loop: Header=BB0_6 Depth=1 ldur w24, [x19, #-8] ldr x26, [x19] b LBB0_6 LBB0_73: ; in Loop: Header=BB0_6 Depth=1 mov w8, #-1 b LBB0_35 LBB0_74: Lloh33: adrp x1, l_.str@PAGE Lloh34: add x1, x1, l_.str@PAGEOFF mov x0, x23 bl _luaL_error b LBB0_79 LBB0_75: mov x0, x28 bl _penvidx mov x1, x0 ldr w2, [x26, #12] mov x0, x23 bl _lua_rawgeti mov x0, x23 mov w1, #-1 bl _val2str ; kill: def $w0 killed $w0 def $x0 str x0, [sp, #-16]! Lloh35: adrp x1, l_.str.2@PAGE Lloh36: add x1, x1, l_.str.2@PAGEOFF mov x0, x23 bl _luaL_error add sp, sp, #16 LBB0_76: mov w0, #0 b LBB0_78 LBB0_77: cmp x21, #0 cset w0, eq LBB0_78: bl _assert LBB0_79: mov x25, #0 LBB0_80: ldur x8, [x29, #-88] Lloh37: adrp x9, ___stack_chk_guard@GOTPAGE Lloh38: ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] Lloh39: ldr x9, [x9] cmp x9, x8 b.ne LBB0_83 ; %bb.81: mov x0, x25 sub sp, x29, #80 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload ldp x26, x25, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #96 ; 16-byte Folded Reload ret LBB0_82: cmp x21, #1 cset w0, eq bl _assert Lloh40: adrp x8, _Cclose@GOTPAGE Lloh41: ldr x8, [x8, _Cclose@GOTPAGEOFF] Lloh42: ldr w8, [x8] mov w9, #24 smaddl x9, w24, w9, x27 str w8, [x9, #12] str xzr, [x9] b LBB0_80 LBB0_83: bl ___stack_chk_fail .loh AdrpLdrGot Lloh11, Lloh12 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpLdrGot Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh13, Lloh14 .loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17 .loh AdrpLdrGot Lloh18, Lloh19 .loh AdrpLdrGot Lloh20, Lloh21 .loh AdrpLdrGotLdr Lloh22, Lloh23, Lloh24 .loh AdrpLdrGotLdr Lloh25, Lloh26, Lloh27 .loh AdrpAdd Lloh28, Lloh29 .loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32 .loh AdrpAdd Lloh33, Lloh34 .loh AdrpAdd Lloh35, Lloh36 .loh AdrpLdrGotLdr Lloh37, Lloh38, Lloh39 .loh AdrpLdrGotLdr Lloh40, Lloh41, Lloh42 .cfi_endproc .section __TEXT,__const .p2align 1 lJTI0_0: .short (LBB0_8-LBB0_1)>>2 .short (LBB0_10-LBB0_1)>>2 .short (LBB0_11-LBB0_1)>>2 .short (LBB0_12-LBB0_1)>>2 .short (LBB0_13-LBB0_1)>>2 .short (LBB0_15-LBB0_1)>>2 .short (LBB0_20-LBB0_1)>>2 .short (LBB0_23-LBB0_1)>>2 .short (LBB0_24-LBB0_1)>>2 .short (LBB0_1-LBB0_1)>>2 .short (LBB0_26-LBB0_1)>>2 .short (LBB0_75-LBB0_1)>>2 .short (LBB0_4-LBB0_1)>>2 .short (LBB0_77-LBB0_1)>>2 .short (LBB0_27-LBB0_1)>>2 .short (LBB0_29-LBB0_1)>>2 .short (LBB0_30-LBB0_1)>>2 .short (LBB0_70-LBB0_1)>>2 .short (LBB0_82-LBB0_1)>>2 .short (LBB0_54-LBB0_1)>>2 .short (LBB0_54-LBB0_1)>>2 .short (LBB0_31-LBB0_1)>>2 .short (LBB0_33-LBB0_1)>>2 .short (LBB0_41-LBB0_1)>>2 .short (LBB0_44-LBB0_1)>>2 .short (LBB0_46-LBB0_1)>>2 .short (LBB0_48-LBB0_1)>>2 .short (LBB0_50-LBB0_1)>>2 .short (LBB0_52-LBB0_1)>>2 ; -- End function .comm _MAXBACK,4,2 ; @MAXBACK .comm _IMAXCAPTURES,4,2 ; @IMAXCAPTURES .comm _giveup,24,3 ; @giveup .comm _Cclose,4,2 ; @Cclose .comm _CHARSETINSTSIZE,4,2 ; @CHARSETINSTSIZE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "too many pending calls/choices" l_.str.1: ; @.str.1 .asciz "invalid position returned by match-time capture" .comm _UCHAR_MAX,8,3 ; @UCHAR_MAX l_.str.2: ; @.str.2 .asciz "reference to %s outside a grammar" .no_dead_strip _match .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_match.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function matchl _matchl: ## @matchl .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $40, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -48(%rbp) movq _IMAXCAPTURES@GOTPCREL(%rip), %rax movl (%rax), %eax shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq %rsp, %r14 movq %rbx, %rdi movl $1, %esi xorl %edx, %edx callq _getpatt movq %rax, -72(%rbp) ## 8-byte Spill movq _SUBJIDX@GOTPCREL(%rip), %rax movl (%rax), %esi leaq -56(%rbp), %rdx movq %rbx, %rdi callq _luaL_checklstring movq %rax, %r15 movq %rbx, %rdi callq _lua_gettop ## kill: def $eax killed $eax def $rax movq %rax, -64(%rbp) ## 8-byte Spill movq %rbx, %rdi movl $3, %esi movl $1, %edx callq _luaL_optinteger testq %rax, %rax jle LBB0_2 ## %bb.1: movq -56(%rbp), %rcx leaq -1(%rax), %r13 cmpq %rcx, %rax cmovaq %rcx, %r13 jmp LBB0_3 LBB0_2: movq -56(%rbp), %rcx leaq (%rcx,%rax), %rdx negq %rax xorl %r13d, %r13d cmpq %rax, %rcx cmovaeq %rdx, %r13 LBB0_3: movq %rbx, %rdi callq _lua_pushnil movq %rbx, %rdi movq %r14, %rsi callq _lua_pushlightuserdata movl $1, %r12d movq %rbx, %rdi movl $1, %esi callq _lua_getfenv movq %r15, %rdx addq %r13, %rdx movq -56(%rbp), %rcx addq %r15, %rcx subq $8, %rsp movq %rbx, %rdi movq %r15, %rsi movq -72(%rbp), %r8 ## 8-byte Reload movq %r14, %r9 movq -64(%rbp), %r14 ## 8-byte Reload pushq %r14 callq _match addq $16, %rsp movq %rbx, %rdi testq %rax, %rax je LBB0_4 ## %bb.5: movq %r15, %rsi movq %rax, %rdx movl %r14d, %ecx callq _getcaptures movl %eax, %r12d jmp LBB0_6 LBB0_4: callq _lua_pushnil LBB0_6: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax cmpq -48(%rbp), %rax jne LBB0_8 ## %bb.7: movl %r12d, %eax leaq -40(%rbp), %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_8: callq ___stack_chk_fail .cfi_endproc ## -- End function .comm _IMAXCAPTURES,4,2 ## @IMAXCAPTURES .comm _SUBJIDX,4,2 ## @SUBJIDX .no_dead_strip _matchl .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function matchl _matchl: ; @matchl .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 sub sp, sp, #16 mov x19, x0 Lloh0: adrp x8, ___stack_chk_guard@GOTPAGE Lloh1: ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] Lloh2: ldr x8, [x8] stur x8, [x29, #-56] Lloh3: adrp x8, _IMAXCAPTURES@GOTPAGE Lloh4: ldr x8, [x8, _IMAXCAPTURES@GOTPAGEOFF] Lloh5: ldr w8, [x8] lsl x8, x8, #2 mov x9, x8 Lloh6: adrp x16, ___chkstk_darwin@GOTPAGE Lloh7: ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 mov x9, sp add x8, x8, #15 and x8, x8, #0x7fffffff0 sub x20, x9, x8 mov sp, x20 mov w1, #1 mov x2, #0 bl _getpatt mov x22, x0 Lloh8: adrp x8, _SUBJIDX@GOTPAGE Lloh9: ldr x8, [x8, _SUBJIDX@GOTPAGEOFF] Lloh10: ldr w1, [x8] sub x2, x29, #64 mov x0, x19 bl _luaL_checklstring mov x21, x0 mov x0, x19 bl _lua_gettop mov x23, x0 mov x0, x19 mov w1, #3 mov w2, #1 bl _luaL_optinteger subs x8, x0, #1 b.lt LBB0_2 ; %bb.1: ldur x9, [x29, #-64] cmp x0, x9 csel x24, x9, x8, hi b LBB0_3 LBB0_2: ldur x8, [x29, #-64] add x9, x8, x0 neg x10, x0 cmp x8, x10 csel x24, xzr, x9, lo LBB0_3: mov x0, x19 bl _lua_pushnil mov x0, x19 mov x1, x20 bl _lua_pushlightuserdata mov x0, x19 mov w1, #1 bl _lua_getfenv add x2, x21, x24 ldur x8, [x29, #-64] add x3, x21, x8 mov x0, x19 mov x1, x21 mov x4, x22 mov x5, x20 mov x6, x23 bl _match cbz x0, LBB0_5 ; %bb.4: mov x2, x0 mov x0, x19 mov x1, x21 mov x3, x23 bl _getcaptures b LBB0_6 LBB0_5: mov x0, x19 bl _lua_pushnil mov w0, #1 LBB0_6: ldur x8, [x29, #-56] Lloh11: adrp x9, ___stack_chk_guard@GOTPAGE Lloh12: ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] Lloh13: ldr x9, [x9] cmp x9, x8 b.ne LBB0_8 ; %bb.7: sub sp, x29, #48 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret LBB0_8: bl ___stack_chk_fail .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpLdrGot Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13 .cfi_endproc ; -- End function .comm _IMAXCAPTURES,4,2 ; @IMAXCAPTURES .comm _SUBJIDX,4,2 ; @SUBJIDX .no_dead_strip _matchl .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_matchl.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function matchtime_l _matchtime_l: ## @matchtime_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movl $1, %esi callq _getpattl ## kill: def $eax killed $eax def $rax leal 2(%rax), %esi movq %rbx, %rdi callq _newpatt movq %rax, %r14 movq _LUA_TFUNCTION@GOTPCREL(%rip), %rax movl (%rax), %edx movq %rbx, %rdi movl $2, %esi callq _luaL_checktype leaq 4(%r14), %r15 movq _IOpenCapture@GOTPCREL(%rip), %rax movl (%rax), %r12d movq %rbx, %rdi movl $2, %esi callq _value2fenv movq _Cruntime@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movq %r14, %rdi movl %r12d, %esi movl %eax, %edx xorl %r8d, %r8d callq _setinstcap movq %rbx, %rdi movq %r15, %rsi movl $1, %edx callq _addpatt cltq leaq (%r14,%rax,4), %rdi addq $4, %rdi movq _ICloseRunTime@GOTPCREL(%rip), %rax movl (%rax), %esi movq _Cclose@GOTPCREL(%rip), %rax movl (%rax), %ecx xorl %edx, %edx xorl %r8d, %r8d callq _setinstcap movq %r14, %rdi callq _optimizecaptures movl $1, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _LUA_TFUNCTION,4,2 ## @LUA_TFUNCTION .comm _IOpenCapture,4,2 ## @IOpenCapture .comm _Cruntime,4,2 ## @Cruntime .comm _ICloseRunTime,4,2 ## @ICloseRunTime .comm _Cclose,4,2 ## @Cclose .no_dead_strip _matchtime_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function matchtime_l _matchtime_l: ; @matchtime_l .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 mov w1, #1 bl _getpattl add w1, w0, #2 mov x0, x19 bl _newpatt mov x20, x0 Lloh0: adrp x8, _LUA_TFUNCTION@GOTPAGE Lloh1: ldr x8, [x8, _LUA_TFUNCTION@GOTPAGEOFF] Lloh2: ldr w2, [x8] mov x0, x19 mov w1, #2 bl _luaL_checktype add x21, x20, #4 Lloh3: adrp x8, _IOpenCapture@GOTPAGE Lloh4: ldr x8, [x8, _IOpenCapture@GOTPAGEOFF] Lloh5: ldr w22, [x8] mov x0, x19 mov w1, #2 bl _value2fenv mov x2, x0 Lloh6: adrp x8, _Cruntime@GOTPAGE Lloh7: ldr x8, [x8, _Cruntime@GOTPAGEOFF] Lloh8: ldr w3, [x8] mov x0, x20 mov x1, x22 mov w4, #0 bl _setinstcap mov x0, x19 mov x1, x21 mov w2, #1 bl _addpatt add x0, x21, w0, sxtw #2 Lloh9: adrp x8, _ICloseRunTime@GOTPAGE Lloh10: ldr x8, [x8, _ICloseRunTime@GOTPAGEOFF] Lloh11: ldr w1, [x8] Lloh12: adrp x8, _Cclose@GOTPAGE Lloh13: ldr x8, [x8, _Cclose@GOTPAGEOFF] Lloh14: ldr w3, [x8] mov w2, #0 mov w4, #0 bl _setinstcap mov x0, x20 bl _optimizecaptures mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _LUA_TFUNCTION,4,2 ; @LUA_TFUNCTION .comm _IOpenCapture,4,2 ; @IOpenCapture .comm _Cruntime,4,2 ; @Cruntime .comm _ICloseRunTime,4,2 ; @ICloseRunTime .comm _Cclose,4,2 ; @Cclose .no_dead_strip _matchtime_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_matchtime_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function newcharset _newcharset: ## @newcharset .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq _CHARSETINSTSIZE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _newpatt movq %rax, %rbx movq _ISet@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, 8(%rbx) movq _i@GOTPCREL(%rip), %rax movq (%rax), %rdi movq 16(%rbx), %rax movq $0, (%rax,%rdi,8) xorl %esi, %esi callq _loopset movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _CHARSETINSTSIZE,4,2 ## @CHARSETINSTSIZE .comm _ISet,4,2 ## @ISet .comm _i,8,3 ## @i .no_dead_strip _newcharset .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function newcharset _newcharset: ; @newcharset .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 Lloh0: adrp x8, _CHARSETINSTSIZE@GOTPAGE Lloh1: ldr x8, [x8, _CHARSETINSTSIZE@GOTPAGEOFF] Lloh2: ldr w1, [x8] bl _newpatt mov x19, x0 Lloh3: adrp x8, _ISet@GOTPAGE Lloh4: ldr x8, [x8, _ISet@GOTPAGEOFF] Lloh5: ldr w8, [x8] str w8, [x0, #8] Lloh6: adrp x8, _i@GOTPAGE Lloh7: ldr x8, [x8, _i@GOTPAGEOFF] Lloh8: ldr x0, [x8] ldr x8, [x19, #16] str xzr, [x8, x0, lsl #3] mov x1, #0 bl _loopset mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _CHARSETINSTSIZE,4,2 ; @CHARSETINSTSIZE .comm _ISet,4,2 ; @ISet .comm _i,8,3 ; @i .no_dead_strip _newcharset .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_newcharset.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function newpatt _newpatt: ## @newpatt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r14 movq %rdi, %rbx movq _MAXPATTSIZE@GOTPCREL(%rip), %rax movslq (%rax), %rax decq %rax cmpq %rsi, %rax ja LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _luaL_error LBB0_2: leaq 4(,%r14,4), %rsi movq %rbx, %rdi callq _lua_newuserdata movq %rax, %r15 movq _PATTERN_T@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi callq _luaL_getmetatable movq %rbx, %rdi movl $-2, %esi callq _lua_setmetatable leaq (%r15,%r14,4), %rdi movq _IEnd@GOTPCREL(%rip), %rax movl (%rax), %esi xorl %edx, %edx callq _setinst movq %r15, %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _MAXPATTSIZE,4,2 ## @MAXPATTSIZE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "pattern too big" .comm _PATTERN_T,4,2 ## @PATTERN_T .comm _IEnd,4,2 ## @IEnd .no_dead_strip _newpatt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function newpatt _newpatt: ; @newpatt .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x20, x1 mov x19, x0 Lloh0: adrp x8, _MAXPATTSIZE@GOTPAGE Lloh1: ldr x8, [x8, _MAXPATTSIZE@GOTPAGEOFF] Lloh2: ldrsw x8, [x8] sub x8, x8, #1 cmp x8, x1 b.hi LBB0_2 ; %bb.1: Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _luaL_error LBB0_2: lsl x21, x20, #2 add x1, x21, #4 mov x0, x19 bl _lua_newuserdata mov x20, x0 Lloh5: adrp x8, _PATTERN_T@GOTPAGE Lloh6: ldr x8, [x8, _PATTERN_T@GOTPAGEOFF] Lloh7: ldr w1, [x8] mov x0, x19 bl _luaL_getmetatable mov x0, x19 mov w1, #-2 bl _lua_setmetatable add x0, x20, x21 Lloh8: adrp x8, _IEnd@GOTPAGE Lloh9: ldr x8, [x8, _IEnd@GOTPAGEOFF] Lloh10: ldr w1, [x8] mov w2, #0 bl _setinst mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _MAXPATTSIZE,4,2 ; @MAXPATTSIZE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "pattern too big" .comm _PATTERN_T,4,2 ; @PATTERN_T .comm _IEnd,4,2 ; @IEnd .no_dead_strip _newpatt .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_newpatt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function newpattfunc _newpattfunc: ## @newpattfunc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rcx, %r13 movq %rdx, %r14 movl %esi, %r15d movq %rdi, %r12 movq %rcx, %rdi callq _instsize movl %eax, %ebx incl %ebx movq %r12, %rdi movl %ebx, %esi callq _newpatt movq _IFunc@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 12(%rax) movl %ebx, 8(%rax) movl %r15d, 20(%rax) movl 32(%rax), %edi movq %r14, %rsi movq %r13, %rdx addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _memcpy ## TAILCALL .cfi_endproc ## -- End function .comm _IFunc,4,2 ## @IFunc .no_dead_strip _newpattfunc .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function newpattfunc _newpattfunc: ; @newpattfunc .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x3 mov x20, x2 mov x21, x1 mov x22, x0 mov x0, x3 bl _instsize add w23, w0, #1 mov x0, x22 mov x1, x23 bl _newpatt Lloh0: adrp x8, _IFunc@GOTPAGE Lloh1: ldr x8, [x8, _IFunc@GOTPAGEOFF] Lloh2: ldr w8, [x8] stp w23, w8, [x0, #8] str w21, [x0, #20] ldr w0, [x0, #32] mov x1, x20 mov x2, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload b _memcpy .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _IFunc,4,2 ; @IFunc .no_dead_strip _newpattfunc .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_newpattfunc.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function nofail _nofail: ## @nofail .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl $1, %r14d testl %esi, %esi jle LBB0_5 ## %bb.1: movl %esi, %r12d movq %rdi, %r15 xorl %ebx, %ebx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movslq %ebx, %rax leaq (%r15,%rax,4), %r13 movq %r13, %rdi callq _isnofail testl %eax, %eax je LBB0_3 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq %r13, %rdi callq _sizei addl %eax, %ebx cmpl %r12d, %ebx jl LBB0_2 jmp LBB0_5 LBB0_3: xorl %r14d, %r14d LBB0_5: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _nofail .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function nofail _nofail: ; @nofail .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 cmp w1, #1 b.lt LBB0_4 ; %bb.1: mov x19, x1 mov x20, x0 mov w22, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 add x21, x20, w22, sxtw #2 mov x0, x21 bl _isnofail cbz w0, LBB0_5 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 mov x0, x21 bl _sizei add w22, w22, w0 cmp w22, w19 b.lt LBB0_2 LBB0_4: mov w0, #1 LBB0_5: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _nofail .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_nofail.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function nter_l _nter_l: ## @nter_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movl $1, %esi callq _lua_isnoneornil xorl %esi, %esi testl %eax, %eax sete %sil leaq L_.str(%rip), %rcx movq %rbx, %rdi movl $1, %edx callq _luaL_argcheck movq %rbx, %rdi movl $1, %esi callq _newpatt movq %rax, %r14 movq _IOpenCall@GOTPCREL(%rip), %rax movl (%rax), %r15d movq %rbx, %rdi movl $1, %esi callq _value2fenv movq %r14, %rdi movl %r15d, %esi movl %eax, %edx callq _setinst movl $1, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "non-nil value expected" .comm _IOpenCall,4,2 ## @IOpenCall .no_dead_strip _nter_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function nter_l _nter_l: ; @nter_l .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 mov w1, #1 bl _lua_isnoneornil cmp w0, #0 cset w1, eq Lloh0: adrp x3, l_.str@PAGE Lloh1: add x3, x3, l_.str@PAGEOFF mov x0, x19 mov w2, #1 bl _luaL_argcheck mov x0, x19 mov w1, #1 bl _newpatt mov x20, x0 Lloh2: adrp x8, _IOpenCall@GOTPAGE Lloh3: ldr x8, [x8, _IOpenCall@GOTPAGEOFF] Lloh4: ldr w21, [x8] mov x0, x19 mov w1, #1 bl _value2fenv mov x2, x0 mov x0, x20 mov x1, x21 bl _setinst mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "non-nil value expected" .comm _IOpenCall,4,2 ; @IOpenCall .no_dead_strip _nter_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_nter_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function optimizecaptures _optimizecaptures: ## @optimizecaptures .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $56, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq (%rdi), %rax movq _IEnd@GOTPCREL(%rip), %r15 cmpq (%r15), %rax jne LBB0_1 LBB0_34: addq $56, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_1: movq %rdi, %r12 leaq -16(%rdi), %rax movq %rax, -88(%rbp) ## 8-byte Spill leaq 8(%rdi), %rax movq %rax, -80(%rbp) ## 8-byte Spill leaq 56(%rdi), %rax movq %rax, -72(%rbp) ## 8-byte Spill xorl %ebx, %ebx movq %rdi, %r14 xorl %r13d, %r13d movq %rdi, -64(%rbp) ## 8-byte Spill jmp LBB0_2 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_2 Depth=1 movq %r12, %rdi movl %ebx, %esi callq _dest movl %eax, %r13d incl %r13d LBB0_33: ## in Loop: Header=BB0_2 Depth=1 movslq %ebx, %rbx movq %rbx, %rdi shlq $4, %rdi addq %r12, %rdi callq _sizei addl %eax, %ebx movslq %ebx, %rax shlq $4, %rax leaq (%r12,%rax), %r14 movq (%r12,%rax), %rax cmpq (%r15), %rax je LBB0_34 LBB0_2: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 ## Child Loop BB0_23 Depth 2 ## Child Loop BB0_27 Depth 2 movq %r14, %rdi callq _isjmp testq %rax, %rax je LBB0_5 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq %r12, %rdi movl %ebx, %esi callq _dest cmpl %r13d, %eax jge LBB0_4 LBB0_5: ## in Loop: Header=BB0_2 Depth=1 cmpl %r13d, %ebx jl LBB0_33 ## %bb.6: ## in Loop: Header=BB0_2 Depth=1 movq %r14, %rdi callq _ismovablecap testq %rax, %rax je LBB0_33 ## %bb.7: ## in Loop: Header=BB0_2 Depth=1 leaq 16(%r14), %rdi movq %rdi, -56(%rbp) ## 8-byte Spill callq _ischeck testq %rax, %rax je LBB0_33 ## %bb.8: ## in Loop: Header=BB0_2 Depth=1 movq %r14, %rdi callq _getoff movl %eax, %r14d cmpl %r13d, %ebx movl %r13d, -44(%rbp) ## 4-byte Spill jle LBB0_9 ## %bb.10: ## in Loop: Header=BB0_2 Depth=1 movslq %ebx, %r15 movslq %r13d, %r12 movq %r15, %r13 shlq $4, %r13 addq -88(%rbp), %r13 ## 8-byte Folded Reload jmp LBB0_11 .p2align 4, 0x90 LBB0_15: ## in Loop: Header=BB0_11 Depth=2 addq $-16, %r13 cmpq %r12, %r15 jle LBB0_16 LBB0_11: ## Parent Loop BB0_2 Depth=1 ## => This Inner Loop Header: Depth=2 movq %r13, %rdi callq _ismovablecap testq %rax, %rax je LBB0_12 ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 decq %r15 movq %r13, %rdi callq _getoff cmpl %r14d, %eax jle LBB0_15 ## %bb.14: ## in Loop: Header=BB0_11 Depth=2 movq %r13, %rdi callq _getoff movl %eax, %r14d jmp LBB0_15 LBB0_9: ## in Loop: Header=BB0_2 Depth=1 movl %ebx, %r15d jmp LBB0_17 LBB0_12: ## in Loop: Header=BB0_2 Depth=1 movq -64(%rbp), %r12 ## 8-byte Reload movl -44(%rbp), %r13d ## 4-byte Reload jmp LBB0_17 LBB0_16: ## in Loop: Header=BB0_2 Depth=1 movl -44(%rbp), %r13d ## 4-byte Reload movl %r13d, %r15d movq -64(%rbp), %r12 ## 8-byte Reload LBB0_17: ## in Loop: Header=BB0_2 Depth=1 movq -56(%rbp), %rdi ## 8-byte Reload movl %r14d, %esi leaq -48(%rbp), %rdx callq _skipchecks ## kill: def $eax killed $eax def $rax movl -48(%rbp), %ecx testl %ecx, %ecx je LBB0_18 ## %bb.19: ## in Loop: Header=BB0_2 Depth=1 leal (%rax,%rbx), %r14d movq _MAXOFF@GOTPCREL(%rip), %rdx cmpl (%rdx), %ecx setle %cl cmpl %r15d, %ebx setge %dl testl %eax, %eax setg %al andb %dl, %al andb %cl, %al movzbl %al, %edi callq _assert movl %ebx, %r8d subl %r15d, %r8d jge LBB0_21 ## %bb.20: ## in Loop: Header=BB0_2 Depth=1 movslq %r15d, %r13 incl %ebx movl %ebx, %edx jmp LBB0_28 LBB0_18: ## in Loop: Header=BB0_2 Depth=1 movl %ebx, %r14d movq _IEnd@GOTPCREL(%rip), %r15 jmp LBB0_32 LBB0_21: ## in Loop: Header=BB0_2 Depth=1 movl -48(%rbp), %eax shll $4, %eax movslq %r15d, %r13 leal 1(%rbx), %edx movl %edx, %edi subl %r15d, %edi movq %r13, %rsi andl $3, %edi je LBB0_25 ## %bb.22: ## in Loop: Header=BB0_2 Depth=1 movq %r13, %rsi shlq $4, %rsi addq -80(%rbp), %rsi ## 8-byte Folded Reload negl %edi xorl %ecx, %ecx .p2align 4, 0x90 LBB0_23: ## Parent Loop BB0_2 Depth=1 ## => This Inner Loop Header: Depth=2 addl %eax, (%rsi) decq %rcx addq $16, %rsi cmpl %ecx, %edi jne LBB0_23 ## %bb.24: ## in Loop: Header=BB0_2 Depth=1 movq %r13, %rsi subq %rcx, %rsi LBB0_25: ## in Loop: Header=BB0_2 Depth=1 cmpl $3, %r8d jb LBB0_28 ## %bb.26: ## in Loop: Header=BB0_2 Depth=1 subl %esi, %ebx incl %ebx shlq $4, %rsi addq -72(%rbp), %rsi ## 8-byte Folded Reload .p2align 4, 0x90 LBB0_27: ## Parent Loop BB0_2 Depth=1 ## => This Inner Loop Header: Depth=2 addl %eax, -48(%rsi) addl %eax, -32(%rsi) addl %eax, -16(%rsi) addl %eax, (%rsi) addq $64, %rsi addl $-4, %ebx jne LBB0_27 LBB0_28: ## in Loop: Header=BB0_2 Depth=1 shlq $4, %r13 addq %r12, %r13 movl %r14d, %esi subl %r15d, %esi subl %r15d, %edx movq %r13, %rdi callq _rotate movq %r13, %rdi callq _ischeck testq %rax, %rax je LBB0_29 ## %bb.30: ## in Loop: Header=BB0_2 Depth=1 movslq %r14d, %rdi shlq $4, %rdi addq %r12, %rdi callq _iscapture testq %rax, %rax setne %al jmp LBB0_31 LBB0_29: ## in Loop: Header=BB0_2 Depth=1 xorl %eax, %eax LBB0_31: ## in Loop: Header=BB0_2 Depth=1 movq _IEnd@GOTPCREL(%rip), %r15 movl -44(%rbp), %r13d ## 4-byte Reload movzbl %al, %edi callq _assert LBB0_32: ## in Loop: Header=BB0_2 Depth=1 movl %r14d, %ebx jmp LBB0_33 .cfi_endproc ## -- End function .comm _IEnd,8,3 ## @IEnd .comm _MAXOFF,4,2 ## @MAXOFF .no_dead_strip _optimizecaptures .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function optimizecaptures _optimizecaptures: ; @optimizecaptures .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x28, x27, [sp, #32] ; 16-byte Folded Spill stp x26, x25, [sp, #48] ; 16-byte Folded Spill stp x24, x23, [sp, #64] ; 16-byte Folded Spill stp x22, x21, [sp, #80] ; 16-byte Folded Spill stp x20, x19, [sp, #96] ; 16-byte Folded Spill stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 .cfi_offset w27, -88 .cfi_offset w28, -96 ldr x8, [x0] Lloh0: adrp x24, _IEnd@GOTPAGE Lloh1: ldr x24, [x24, _IEnd@GOTPAGEOFF] ldr x9, [x24] cmp x8, x9 b.ne LBB0_2 LBB0_1: ldp x29, x30, [sp, #112] ; 16-byte Folded Reload ldp x20, x19, [sp, #96] ; 16-byte Folded Reload ldp x22, x21, [sp, #80] ; 16-byte Folded Reload ldp x24, x23, [sp, #64] ; 16-byte Folded Reload ldp x26, x25, [sp, #48] ; 16-byte Folded Reload ldp x28, x27, [sp, #32] ; 16-byte Folded Reload add sp, sp, #128 ret LBB0_2: mov x19, x0 mov w20, #0 mov w26, #0 sub x25, x0, #16 add x9, x0, #40 add x8, x0, #8 stp x9, x8, [sp, #8] ; 16-byte Folded Spill mov x22, x0 b LBB0_5 LBB0_3: ; in Loop: Header=BB0_5 Depth=1 mov x0, x19 mov x1, x20 bl _dest add w26, w0, #1 LBB0_4: ; in Loop: Header=BB0_5 Depth=1 add x0, x19, w20, sxtw #4 bl _sizei add w20, w20, w0 add x22, x19, w20, sxtw #4 ldr x8, [x22] ldr x9, [x24] cmp x8, x9 b.eq LBB0_1 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_13 Depth 2 ; Child Loop BB0_24 Depth 2 ; Child Loop BB0_27 Depth 2 mov x0, x22 bl _isjmp cbz x0, LBB0_7 ; %bb.6: ; in Loop: Header=BB0_5 Depth=1 mov x0, x19 mov x1, x20 bl _dest cmp w0, w26 b.ge LBB0_3 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 cmp w20, w26 b.lt LBB0_4 ; %bb.8: ; in Loop: Header=BB0_5 Depth=1 mov x0, x22 bl _ismovablecap cbz x0, LBB0_4 ; %bb.9: ; in Loop: Header=BB0_5 Depth=1 add x21, x22, #16 mov x0, x21 bl _ischeck cbz x0, LBB0_4 ; %bb.10: ; in Loop: Header=BB0_5 Depth=1 mov x0, x22 bl _getoff mov x22, x0 cmp w20, w26 b.le LBB0_16 ; %bb.11: ; in Loop: Header=BB0_5 Depth=1 sxtw x28, w20 sxtw x27, w26 add x23, x25, w20, sxtw #4 b LBB0_13 LBB0_12: ; in Loop: Header=BB0_13 Depth=2 sub x23, x23, #16 cmp x28, x27 b.le LBB0_18 LBB0_13: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 mov x0, x23 bl _ismovablecap cbz x0, LBB0_17 ; %bb.14: ; in Loop: Header=BB0_13 Depth=2 sub x28, x28, #1 mov x0, x23 bl _getoff cmp w0, w22 b.le LBB0_12 ; %bb.15: ; in Loop: Header=BB0_13 Depth=2 mov x0, x23 bl _getoff mov x22, x0 b LBB0_12 LBB0_16: ; in Loop: Header=BB0_5 Depth=1 mov x23, x20 b LBB0_19 LBB0_17: ; in Loop: Header=BB0_5 Depth=1 mov x23, x28 b LBB0_19 LBB0_18: ; in Loop: Header=BB0_5 Depth=1 mov x23, x26 LBB0_19: ; in Loop: Header=BB0_5 Depth=1 add x2, sp, #28 mov x0, x21 mov x1, x22 bl _skipchecks ldr w8, [sp, #28] cbz w8, LBB0_4 ; %bb.20: ; in Loop: Header=BB0_5 Depth=1 mov x21, x0 Lloh2: adrp x9, _MAXOFF@GOTPAGE Lloh3: ldr x9, [x9, _MAXOFF@GOTPAGEOFF] Lloh4: ldr w9, [x9] cmp w8, w9 cset w8, le cmp w20, w23 cset w9, ge and w8, w8, w9 cmp w0, #0 cset w9, gt and w0, w8, w9 bl _assert subs w12, w20, w23 b.ge LBB0_22 ; %bb.21: ; in Loop: Header=BB0_5 Depth=1 mov x8, x23 sxtw x8, w8 add w9, w20, #1 b LBB0_28 LBB0_22: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #28] lsl w10, w8, #4 sxtw x8, w23 add w9, w20, #1 mov x11, x8 cmp w12, #3 b.lo LBB0_26 ; %bb.23: ; in Loop: Header=BB0_5 Depth=1 add x12, x12, #1 and x13, x12, #0x1fffffffc add x11, x13, x8 ldr x14, [sp, #8] ; 8-byte Folded Reload add x14, x14, x8, lsl #4 mov x15, x13 LBB0_24: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w16, [x14, #-32] ldur w17, [x14, #-16] ldr w0, [x14] ldr w1, [x14, #16] add w16, w16, w10 add w17, w17, w10 add w0, w0, w10 add w1, w1, w10 stur w16, [x14, #-32] stur w17, [x14, #-16] str w0, [x14] str w1, [x14, #16] add x14, x14, #64 subs x15, x15, #4 b.ne LBB0_24 ; %bb.25: ; in Loop: Header=BB0_5 Depth=1 cmp x12, x13 b.eq LBB0_28 LBB0_26: ; in Loop: Header=BB0_5 Depth=1 ldr x12, [sp, #16] ; 8-byte Folded Reload add x12, x12, x11, lsl #4 sub w11, w20, w11 add w11, w11, #1 LBB0_27: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w13, [x12] add w13, w13, w10 str w13, [x12], #16 subs w11, w11, #1 b.ne LBB0_27 LBB0_28: ; in Loop: Header=BB0_5 Depth=1 add w20, w21, w20 sub w1, w20, w23 sub w2, w9, w23 add x21, x19, x8, lsl #4 mov x0, x21 bl _rotate mov x0, x21 bl _ischeck cbz x0, LBB0_30 ; %bb.29: ; in Loop: Header=BB0_5 Depth=1 add x0, x19, w20, sxtw #4 bl _iscapture cmp x0, #0 cset w0, ne LBB0_30: ; in Loop: Header=BB0_5 Depth=1 bl _assert b LBB0_4 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _IEnd,8,3 ; @IEnd .comm _MAXOFF,4,2 ; @MAXOFF .no_dead_strip _optimizecaptures .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_optimizecaptures.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function optimizechoice _optimizechoice: ## @optimizechoice .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r12 movq (%rdi), %rax movq _IChoice@GOTPCREL(%rip), %r15 xorl %edi, %edi cmpq (%r15), %rax sete %dil callq _assert leaq 16(%r12), %r14 movq %r14, %rdi callq _ischeck testq %rax, %rax je LBB0_5 ## %bb.1: movq %r14, %rdi callq _sizei movl %eax, %r14d movq %r12, %rdi movl %eax, %esi movl $1, %edx callq _rotate movq %r12, %rdi callq _ischeck movslq %r14d, %r14 testq %rax, %rax je LBB0_2 ## %bb.3: movq %r14, %rax shlq $4, %rax movq (%r12,%rax), %rax xorl %edi, %edi cmpq (%r15), %rax sete %dil jmp LBB0_4 LBB0_2: xorl %edi, %edi LBB0_4: callq _assert movq %r12, %rdi callq _op_step movq %r14, %rbx shlq $4, %rbx movl %eax, 12(%r12,%rbx) movl 8(%r12,%rbx), %esi movq %r12, %rdi callq _check2test subl %r14d, 8(%r12,%rbx) LBB0_5: popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _IChoice,8,3 ## @IChoice .no_dead_strip _optimizechoice .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function optimizechoice _optimizechoice: ; @optimizechoice .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 mov x20, x0 ldr x8, [x20], #16 Lloh0: adrp x21, _IChoice@GOTPAGE Lloh1: ldr x21, [x21, _IChoice@GOTPAGEOFF] ldr x9, [x21] cmp x8, x9 cset w0, eq bl _assert mov x0, x20 bl _ischeck cbz x0, LBB0_4 ; %bb.1: mov x0, x20 bl _sizei mov x20, x0 mov x0, x19 mov x1, x20 mov w2, #1 bl _rotate mov x0, x19 bl _ischeck sxtw x20, w20 cbz x0, LBB0_3 ; %bb.2: lsl x8, x20, #4 ldr x8, [x19, x8] ldr x9, [x21] cmp x8, x9 cset w0, eq LBB0_3: bl _assert mov x0, x19 bl _op_step add x21, x19, x20, lsl #4 str w0, [x21, #12] ldr w1, [x21, #8] mov x0, x19 bl _check2test ldr w8, [x21, #8] sub w8, w8, w20 str w8, [x21, #8] LBB0_4: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _IChoice,8,3 ; @IChoice .no_dead_strip _optimizechoice .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_optimizechoice.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function optimizejumps _optimizejumps: ## @optimizejumps .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq (%rdi), %rax movq _IEnd@GOTPCREL(%rip), %r12 cmpq (%r12), %rax jne LBB0_1 LBB0_5: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_1: movq %rdi, %r14 xorl %r13d, %r13d movq %rdi, %r15 xorl %ebx, %ebx jmp LBB0_2 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rdi callq _sizei addl %eax, %ebx movslq %ebx, %r13 movq %r13, %rax shlq $4, %rax leaq (%r14,%rax), %r15 movq (%r14,%rax), %rax cmpq (%r12), %rax je LBB0_5 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r15, %rdi callq _isjmp testq %rax, %rax je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq %r14, %rdi movl %ebx, %esi callq _dest movq %r14, %rdi movl %eax, %esi callq _target subq %r13, %rax shlq $4, %r13 movq %rax, 8(%r14,%r13) jmp LBB0_4 .cfi_endproc ## -- End function .comm _IEnd,8,3 ## @IEnd .no_dead_strip _optimizejumps .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function optimizejumps _optimizejumps: ; @optimizejumps .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 ldr x8, [x0] Lloh0: adrp x22, _IEnd@GOTPAGE Lloh1: ldr x22, [x22, _IEnd@GOTPAGEOFF] ldr x9, [x22] cmp x8, x9 b.ne LBB0_2 LBB0_1: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret LBB0_2: mov x19, x0 mov x23, #0 mov w20, #0 mov x21, x0 b LBB0_4 LBB0_3: ; in Loop: Header=BB0_4 Depth=1 mov x0, x21 bl _sizei add w20, w20, w0 sxtw x23, w20 add x21, x19, w20, sxtw #4 ldr x8, [x21] ldr x9, [x22] cmp x8, x9 b.eq LBB0_1 LBB0_4: ; =>This Inner Loop Header: Depth=1 mov x0, x21 bl _isjmp cbz x0, LBB0_3 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 mov x1, x20 bl _dest mov x1, x0 mov x0, x19 bl _target sub x8, x0, x23 add x9, x19, x23, lsl #4 str x8, [x9, #8] b LBB0_3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _IEnd,8,3 ; @IEnd .no_dead_strip _optimizejumps .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_optimizejumps.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function optionalheadfail _optionalheadfail: ## @optionalheadfail .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edx, %r12d movl %esi, %r14d movl %edx, %r13d imull %esi, %r13d movq %rdi, -48(%rbp) ## 8-byte Spill movl %r13d, %esi callq _newpatt testl %r12d, %r12d jle LBB0_3 ## %bb.1: movq %rax, %rbx movslq %r14d, %r15 negq %r15 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq -48(%rbp), %rdi ## 8-byte Reload movq %rbx, %rsi movl $1, %edx callq _addpatt cltq leaq (%rbx,%rax,4), %rbx leaq (%rbx,%r15,4), %rdi movl %r13d, %esi callq _check2test subl %r14d, %r13d decl %r12d jne LBB0_2 LBB0_3: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _optionalheadfail .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function optionalheadfail _optionalheadfail: ; @optionalheadfail .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x2 mov x20, x1 mov x21, x0 mul w22, w2, w1 mov x1, x22 bl _newpatt cmp w19, #1 b.lt LBB0_3 ; %bb.1: mov x23, x0 mov x8, #0 sub x24, x8, w20, sxtw LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x21 mov x1, x23 mov w2, #1 bl _addpatt add x23, x23, w0, sxtw #2 add x0, x23, x24, lsl #2 mov x1, x22 bl _check2test sub w22, w22, w20 sub w19, w19, #1 cbnz w19, LBB0_2 LBB0_3: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _optionalheadfail .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_optionalheadfail.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function optionals _optionals: ## @optionals .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edx, %r12d ## kill: def $esi killed $esi def $rsi movq %rdi, %r14 leal 1(%rsi), %ebx imull %edx, %ebx incl %ebx movl %ebx, %esi callq _newpatt movq %rax, %r15 movq _IChoice@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r15, %rdi movl %ebx, %edx callq _setinst movq %r15, %rbx testl %r12d, %r12d jle LBB0_3 ## %bb.1: movq _IPartialCommit@GOTPCREL(%rip), %r13 movq %r15, %rbx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 leaq 4(%rbx), %rsi movq %r14, %rdi movl $1, %edx callq _addpatt cltq leaq (%rbx,%rax,4), %rbx addq $4, %rbx movl (%r13), %esi movq %rbx, %rdi movl $1, %edx callq _setinst decl %r12d jne LBB0_2 LBB0_3: movq _ICommit@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi movl $1, %edx callq _setinst movq %r15, %rdi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _optimizechoice ## TAILCALL .cfi_endproc ## -- End function .comm _IChoice,4,2 ## @IChoice .comm _IPartialCommit,4,2 ## @IPartialCommit .comm _ICommit,4,2 ## @ICommit .no_dead_strip _optionals .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function optionals _optionals: ; @optionals .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x20, x2 mov x21, x0 madd w8, w2, w1, w2 add w22, w8, #1 mov x1, x22 bl _newpatt mov x19, x0 Lloh0: adrp x8, _IChoice@GOTPAGE Lloh1: ldr x8, [x8, _IChoice@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov x2, x22 bl _setinst mov x22, x19 cmp w20, #1 b.lt LBB0_3 ; %bb.1: Lloh3: adrp x23, _IPartialCommit@GOTPAGE Lloh4: ldr x23, [x23, _IPartialCommit@GOTPAGEOFF] mov x22, x19 LBB0_2: ; =>This Inner Loop Header: Depth=1 add x22, x22, #4 mov x0, x21 mov x1, x22 mov w2, #1 bl _addpatt add x22, x22, w0, sxtw #2 ldr w1, [x23] mov x0, x22 mov w2, #1 bl _setinst subs w20, w20, #1 b.ne LBB0_2 LBB0_3: Lloh5: adrp x8, _ICommit@GOTPAGE Lloh6: ldr x8, [x8, _ICommit@GOTPAGEOFF] Lloh7: ldr w1, [x8] mov x0, x22 mov w2, #1 bl _setinst mov x0, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload b _optimizechoice .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGot Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _IChoice,4,2 ; @IChoice .comm _IPartialCommit,4,2 ; @IPartialCommit .comm _ICommit,4,2 ; @ICommit .no_dead_strip _optionals .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_optionals.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function pattand_l _pattand_l: ## @pattand_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 movl $1, %esi callq _getpattl movl %eax, %ebx leal 3(%rbx), %esi movq %r14, %rdi callq _newpatt movq %rax, %r15 leaq 4(%rax), %r12 movq _IChoice@GOTPCREL(%rip), %rax movl (%rax), %esi addl $2, %ebx movl %r15d, %edi movl %ebx, %edx callq _setinst movq %r14, %rdi movq %r12, %rsi movl $1, %edx callq _addpatt cltq leaq (%r15,%rax,4), %rdi addq $4, %rdi leaq 8(%r15,%rax,4), %rbx movq _IBackCommit@GOTPCREL(%rip), %rax movl (%rax), %esi ## kill: def $edi killed $edi killed $rdi movl $2, %edx callq _setinst movq _IFail@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi xorl %edx, %edx movl $1, %ecx callq _setinstaux movl $1, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _IChoice,4,2 ## @IChoice .comm _IBackCommit,4,2 ## @IBackCommit .comm _IFail,4,2 ## @IFail .no_dead_strip _pattand_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function pattand_l _pattand_l: ; @pattand_l .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 mov w1, #1 bl _getpattl mov x20, x0 add w1, w0, #3 mov x0, x19 bl _newpatt add x21, x0, #4 Lloh0: adrp x8, _IChoice@GOTPAGE Lloh1: ldr x8, [x8, _IChoice@GOTPAGEOFF] Lloh2: ldr w1, [x8] add w2, w20, #2 ; kill: def $w0 killed $w0 killed $x0 bl _setinst mov x0, x19 mov x1, x21 mov w2, #1 bl _addpatt add x0, x21, w0, sxtw #2 add x19, x0, #4 Lloh3: adrp x8, _IBackCommit@GOTPAGE Lloh4: ldr x8, [x8, _IBackCommit@GOTPAGEOFF] Lloh5: ldr w1, [x8] ; kill: def $w0 killed $w0 killed $x0 mov w2, #2 bl _setinst Lloh6: adrp x8, _IFail@GOTPAGE Lloh7: ldr x8, [x8, _IFail@GOTPAGEOFF] Lloh8: ldr w1, [x8] mov x0, x19 mov w2, #0 mov w3, #1 bl _setinstaux mov w0, #1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _IChoice,4,2 ; @IChoice .comm _IBackCommit,4,2 ; @IBackCommit .comm _IFail,4,2 ; @IFail .no_dead_strip _pattand_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_pattand_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function pattern_l _pattern_l: ## @pattern_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl $1, %esi callq _lua_settop movq %rbx, %rdi movl $1, %esi xorl %edx, %edx callq _getpatt movl $1, %eax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _pattern_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function pattern_l _pattern_l: ; @pattern_l .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 mov w1, #1 bl _lua_settop mov x0, x19 mov w1, #1 mov x2, #0 bl _getpatt mov w0, #1 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _pattern_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_pattern_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function position_l _position_l: ## @position_l .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1, %esi callq _newpatt movq _IEmptyCapture@GOTPCREL(%rip), %rcx movl (%rcx), %esi movq _Cposition@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movq %rax, %rdi xorl %edx, %edx xorl %r8d, %r8d callq _setinstcap movl $1, %eax popq %rbp retq .cfi_endproc ## -- End function .comm _IEmptyCapture,4,2 ## @IEmptyCapture .comm _Cposition,4,2 ## @Cposition .no_dead_strip _position_l .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function position_l _position_l: ; @position_l .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w1, #1 bl _newpatt Lloh0: adrp x8, _IEmptyCapture@GOTPAGE Lloh1: ldr x8, [x8, _IEmptyCapture@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x8, _Cposition@GOTPAGE Lloh4: ldr x8, [x8, _Cposition@GOTPAGEOFF] Lloh5: ldr w3, [x8] mov w2, #0 mov w4, #0 bl _setinstcap mov w0, #1 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _IEmptyCapture,4,2 ; @IEmptyCapture .comm _Cposition,4,2 ; @Cposition .no_dead_strip _position_l .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_position_l.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function printcap _printcap: ## @printcap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl 12(%rdi), %edi callq _printcapkind movl (%rbx), %esi movl 4(%rbx), %edx movl 8(%rbx), %ecx leaq L_.str(%rip), %rdi addq $8, %rsp popq %rbx popq %rbp jmp _printf ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " (idx: %d - size: %d) -> %p\n" .no_dead_strip _printcap .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function printcap _printcap: ; @printcap .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr w0, [x0, #12] bl _printcapkind ldp w1, w2, [x19] ldr w3, [x19, #8] Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _printf .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " (idx: %d - size: %d) -> %p\n" .no_dead_strip _printcap .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_printcap.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function printcapkind _printcapkind: ## @printcapkind .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movslq %edi, %rax leaq l_reltable.printcapkind(%rip), %rcx movslq (%rcx,%rax,4), %rsi addq %rcx, %rsi leaq L_.str.13(%rip), %rdi popq %rbp jmp _printf ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "close" L_.str.1: ## @.str.1 .asciz "position" L_.str.2: ## @.str.2 .asciz "constant" L_.str.3: ## @.str.3 .asciz "backref" L_.str.4: ## @.str.4 .asciz "argument" L_.str.5: ## @.str.5 .asciz "simple" L_.str.6: ## @.str.6 .asciz "table" L_.str.7: ## @.str.7 .asciz "function" L_.str.8: ## @.str.8 .asciz "query" L_.str.9: ## @.str.9 .asciz "string" L_.str.10: ## @.str.10 .asciz "substitution" L_.str.11: ## @.str.11 .asciz "accumulator" L_.str.12: ## @.str.12 .asciz "runtime" .section __TEXT,__const .p2align 2 ## @reltable.printcapkind l_reltable.printcapkind: .long L_.str-l_reltable.printcapkind .long L_.str.1-l_reltable.printcapkind .long L_.str.2-l_reltable.printcapkind .long L_.str.3-l_reltable.printcapkind .long L_.str.4-l_reltable.printcapkind .long L_.str.5-l_reltable.printcapkind .long L_.str.6-l_reltable.printcapkind .long L_.str.7-l_reltable.printcapkind .long L_.str.8-l_reltable.printcapkind .long L_.str.9-l_reltable.printcapkind .long L_.str.10-l_reltable.printcapkind .long L_.str.11-l_reltable.printcapkind .long L_.str.12-l_reltable.printcapkind .section __TEXT,__cstring,cstring_literals L_.str.13: ## @.str.13 .asciz "%s" .no_dead_strip _printcapkind .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function printcapkind _printcapkind: ; @printcapkind .cfi_startproc ; %bb.0: Lloh0: adrp x8, l___const.printcapkind.modes@PAGE Lloh1: add x8, x8, l___const.printcapkind.modes@PAGEOFF ldr x1, [x8, w0, sxtw #3] Lloh2: adrp x0, l_.str.13@PAGE Lloh3: add x0, x0, l_.str.13@PAGEOFF b _printf .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "close" l_.str.1: ; @.str.1 .asciz "position" l_.str.2: ; @.str.2 .asciz "constant" l_.str.3: ; @.str.3 .asciz "backref" l_.str.4: ; @.str.4 .asciz "argument" l_.str.5: ; @.str.5 .asciz "simple" l_.str.6: ; @.str.6 .asciz "table" l_.str.7: ; @.str.7 .asciz "function" l_.str.8: ; @.str.8 .asciz "query" l_.str.9: ; @.str.9 .asciz "string" l_.str.10: ; @.str.10 .asciz "substitution" l_.str.11: ; @.str.11 .asciz "accumulator" l_.str.12: ; @.str.12 .asciz "runtime" .section __DATA,__const .p2align 3 ; @__const.printcapkind.modes l___const.printcapkind.modes: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .section __TEXT,__cstring,cstring_literals l_.str.13: ; @.str.13 .asciz "%s" .no_dead_strip _printcapkind .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_printcapkind.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function printcaplist _printcaplist: ## @printcaplist .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 cmpq $0, (%rdi) je LBB0_3 ## %bb.1: movq %rdi, %rbx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %rbx, %rdi callq _printcap cmpq $0, 8(%rbx) leaq 8(%rbx), %rbx jne LBB0_2 LBB0_3: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _printcaplist .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function printcaplist _printcaplist: ; @printcaplist .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 ldr x8, [x0] cbz x8, LBB0_3 ; %bb.1: mov x19, x0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x19 bl _printcap ldr x8, [x19, #8]! cbnz x8, LBB0_2 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _printcaplist .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_printcaplist.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function printcharset _printcharset: ## @printcharset .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edi, %r12d movl $91, %edi callq _putchar movq _UCHAR_MAX@GOTPCREL(%rip), %rax cmpl $0, (%rax) js LBB0_10 ## %bb.1: xorl %r13d, %r13d jmp LBB0_2 .p2align 4, 0x90 LBB0_6: ## in Loop: Header=BB0_2 Depth=1 leaq L_.str.1(%rip), %rdi movl %r13d, %esi xorl %eax, %eax callq _printf LBB0_9: ## in Loop: Header=BB0_2 Depth=1 addl %r14d, %r13d movq _UCHAR_MAX@GOTPCREL(%rip), %rax cmpl (%rax), %ebx jge LBB0_10 LBB0_2: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 xorl %r14d, %r14d xorl %r15d, %r15d .p2align 4, 0x90 LBB0_3: ## Parent Loop BB0_2 Depth=1 ## => This Inner Loop Header: Depth=2 leal (%r14,%r13), %ebx movl %r12d, %edi movl %ebx, %esi callq _testchar decl %r15d incl %r14d testq %rax, %rax je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq _UCHAR_MAX@GOTPCREL(%rip), %rax cmpl (%rax), %ebx jle LBB0_3 LBB0_5: ## in Loop: Header=BB0_2 Depth=1 movl %r15d, %ebx notl %ebx addl %r13d, %ebx cmpl $-2, %r15d je LBB0_6 ## %bb.7: ## in Loop: Header=BB0_2 Depth=1 movl %r13d, %edx subl %r15d, %edx addl $-2, %edx cmpl %r13d, %edx jle LBB0_9 ## %bb.8: ## in Loop: Header=BB0_2 Depth=1 leaq L_.str.2(%rip), %rdi movl %r13d, %esi xorl %eax, %eax callq _printf jmp LBB0_9 LBB0_10: movl $93, %edi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _putchar ## TAILCALL .cfi_endproc ## -- End function .comm _UCHAR_MAX,4,2 ## @UCHAR_MAX .section __TEXT,__cstring,cstring_literals L_.str.1: ## @.str.1 .asciz "(%02x)" L_.str.2: ## @.str.2 .asciz "(%02x-%02x)" .no_dead_strip _printcharset .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function printcharset _printcharset: ; @printcharset .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x26, x25, [sp, #16] ; 16-byte Folded Spill stp x24, x23, [sp, #32] ; 16-byte Folded Spill stp x22, x21, [sp, #48] ; 16-byte Folded Spill stp x20, x19, [sp, #64] ; 16-byte Folded Spill stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 mov x19, x0 mov w0, #91 bl _putchar Lloh0: adrp x23, _UCHAR_MAX@GOTPAGE Lloh1: ldr x23, [x23, _UCHAR_MAX@GOTPAGEOFF] ldr w8, [x23] tbnz w8, #31, LBB0_11 ; %bb.1: mov w24, #0 Lloh2: adrp x20, l_.str.1@PAGE Lloh3: add x20, x20, l_.str.1@PAGEOFF Lloh4: adrp x21, l_.str.2@PAGE Lloh5: add x21, x21, l_.str.2@PAGEOFF b LBB0_5 LBB0_2: ; in Loop: Header=BB0_5 Depth=1 str x25, [sp] mov x0, x20 LBB0_3: ; in Loop: Header=BB0_5 Depth=1 bl _printf LBB0_4: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [x23] cmp w22, w8 b.ge LBB0_11 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_6 Depth 2 mov x25, x24 mov w26, #2 mov x22, x24 LBB0_6: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 mov x0, x19 mov x1, x22 bl _testchar add w24, w22, #1 sub w26, w26, #1 cbz x0, LBB0_8 ; %bb.7: ; in Loop: Header=BB0_6 Depth=2 ldr w8, [x23] cmp w22, w8 mov x22, x24 b.le LBB0_6 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 sub w22, w24, #1 cbz w26, LBB0_2 ; %bb.9: ; in Loop: Header=BB0_5 Depth=1 sub w8, w24, #2 cmp w8, w25 b.le LBB0_4 ; %bb.10: ; in Loop: Header=BB0_5 Depth=1 ; kill: def $w25 killed $w25 killed $x25 def $x25 stp x25, x8, [sp] mov x0, x21 b LBB0_3 LBB0_11: mov w0, #93 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload ldp x26, x25, [sp, #16] ; 16-byte Folded Reload add sp, sp, #96 b _putchar .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _UCHAR_MAX,4,2 ; @UCHAR_MAX .section __TEXT,__cstring,cstring_literals l_.str.1: ; @.str.1 .asciz "(%02x)" l_.str.2: ; @.str.2 .asciz "(%02x-%02x)" .no_dead_strip _printcharset .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_printcharset.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function printinst _printinst: ## @printinst .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %rbx movq %rdi, %r14 movq %rsi, %rax subq %rdi, %rax sarq $3, %rax movabsq $-6148914691236517205, %rsi ## imm = 0xAAAAAAAAAAAAAAAB imulq %rax, %rsi movq (%rbx), %rax leaq l_reltable.printinst(%rip), %rcx movslq (%rcx,%rax,4), %rdx addq %rcx, %rdx leaq L_.str.29(%rip), %rdi xorl %eax, %eax callq _printf movl (%rbx), %eax addl $-128, %eax cmpl $22, %eax ja LBB0_14 ## %bb.1: leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_8: movq %rbx, %rdi callq _getkind movl %eax, %edi callq _printcapkind movq %rbx, %rdi callq _getoff movl 12(%rbx), %edx leaq L_.str.32(%rip), %rdi movl %eax, %esi xorl %eax, %eax callq _printf jmp LBB0_14 LBB0_9: movl 40(%rbx), %edi callq _printcharset jmp LBB0_14 LBB0_12: movl 40(%rbx), %edi callq _printcharset jmp LBB0_13 LBB0_4: movl 8(%rbx), %esi leaq L_.str.30(%rip), %rdi jmp LBB0_5 LBB0_10: movl 12(%rbx), %esi leaq L_.str.33(%rip), %rdi jmp LBB0_3 LBB0_11: movq %r14, %rdi movq %rbx, %rsi callq _printjmp movl 8(%rbx), %esi leaq L_.str.34(%rip), %rdi jmp LBB0_3 LBB0_2: movl 8(%rbx), %esi leaq L_.str.30(%rip), %rdi jmp LBB0_3 LBB0_6: movl 8(%rbx), %esi leaq L_.str.31(%rip), %rdi LBB0_3: xorl %eax, %eax callq _printf jmp LBB0_14 LBB0_7: movl 8(%rbx), %esi leaq L_.str.31(%rip), %rdi LBB0_5: xorl %eax, %eax callq _printf LBB0_13: movq %r14, %rdi movq %rbx, %rsi callq _printjmp LBB0_14: movl $10, %edi popq %rbx popq %r14 popq %rbp jmp _putchar ## TAILCALL .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_9, LBB0_9-LJTI0_0 .set L0_0_set_12, LBB0_12-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_13, LBB0_13-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_10, LBB0_10-LJTI0_0 .set L0_0_set_11, LBB0_11-LJTI0_0 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 LJTI0_0: .long L0_0_set_9 .long L0_0_set_12 .long L0_0_set_12 .long L0_0_set_4 .long L0_0_set_7 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_13 .long L0_0_set_8 .long L0_0_set_10 .long L0_0_set_13 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_13 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_11 .long L0_0_set_2 .long L0_0_set_13 .long L0_0_set_13 .long L0_0_set_6 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "any" L_.str.1: ## @.str.1 .asciz "char" L_.str.2: ## @.str.2 .asciz "set" L_.str.3: ## @.str.3 .asciz "zset" L_.str.4: ## @.str.4 .asciz "testany" L_.str.5: ## @.str.5 .asciz "testchar" L_.str.6: ## @.str.6 .asciz "testset" L_.str.7: ## @.str.7 .asciz "testzset" L_.str.8: ## @.str.8 .asciz "span" L_.str.9: ## @.str.9 .asciz "spanz" L_.str.10: ## @.str.10 .asciz "ret" L_.str.11: ## @.str.11 .asciz "end" L_.str.12: ## @.str.12 .asciz "choice" L_.str.13: ## @.str.13 .asciz "jmp" L_.str.14: ## @.str.14 .asciz "call" L_.str.15: ## @.str.15 .asciz "open_call" L_.str.16: ## @.str.16 .asciz "commit" L_.str.17: ## @.str.17 .asciz "partial_commit" L_.str.18: ## @.str.18 .asciz "back_commit" L_.str.19: ## @.str.19 .asciz "failtwice" L_.str.20: ## @.str.20 .asciz "fail" L_.str.21: ## @.str.21 .asciz "giveup" L_.str.22: ## @.str.22 .asciz "func" L_.str.23: ## @.str.23 .asciz "fullcapture" L_.str.24: ## @.str.24 .asciz "emptycapture" L_.str.25: ## @.str.25 .asciz "emptycaptureidx" L_.str.26: ## @.str.26 .asciz "opencapture" L_.str.27: ## @.str.27 .asciz "closecapture" L_.str.28: ## @.str.28 .asciz "closeruntime" .section __TEXT,__const .p2align 2 ## @reltable.printinst l_reltable.printinst: .long L_.str-l_reltable.printinst .long L_.str.1-l_reltable.printinst .long L_.str.2-l_reltable.printinst .long L_.str.3-l_reltable.printinst .long L_.str.4-l_reltable.printinst .long L_.str.5-l_reltable.printinst .long L_.str.6-l_reltable.printinst .long L_.str.7-l_reltable.printinst .long L_.str.8-l_reltable.printinst .long L_.str.9-l_reltable.printinst .long L_.str.10-l_reltable.printinst .long L_.str.11-l_reltable.printinst .long L_.str.12-l_reltable.printinst .long L_.str.13-l_reltable.printinst .long L_.str.14-l_reltable.printinst .long L_.str.15-l_reltable.printinst .long L_.str.16-l_reltable.printinst .long L_.str.17-l_reltable.printinst .long L_.str.18-l_reltable.printinst .long L_.str.19-l_reltable.printinst .long L_.str.20-l_reltable.printinst .long L_.str.21-l_reltable.printinst .long L_.str.22-l_reltable.printinst .long L_.str.23-l_reltable.printinst .long L_.str.24-l_reltable.printinst .long L_.str.25-l_reltable.printinst .long L_.str.26-l_reltable.printinst .long L_.str.27-l_reltable.printinst .long L_.str.28-l_reltable.printinst .section __TEXT,__cstring,cstring_literals L_.str.29: ## @.str.29 .asciz "%02ld: %s " L_.str.30: ## @.str.30 .asciz "'%c'" L_.str.31: ## @.str.31 .asciz "* %d" L_.str.32: ## @.str.32 .asciz "(n = %d) (off = %d)" L_.str.33: ## @.str.33 .asciz "-> %d" L_.str.34: ## @.str.34 .asciz " (%d)" .no_dead_strip _printinst .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function printinst _printinst: ; @printinst .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 sub x8, x1, x0 asr x8, x8, #3 mov x9, #-6148914691236517206 movk x9, #43691 mul x8, x8, x9 ldr x9, [x1] Lloh0: adrp x10, l___const.printinst.names@PAGE Lloh1: add x10, x10, l___const.printinst.names@PAGEOFF ldr x9, [x10, x9, lsl #3] stp x8, x9, [sp] Lloh2: adrp x0, l_.str.29@PAGE Lloh3: add x0, x0, l_.str.29@PAGEOFF bl _printf ldr w8, [x19] sub w8, w8, #128 cmp w8, #22 b.hi LBB0_13 ; %bb.1: Lloh4: adrp x9, lJTI0_0@PAGE Lloh5: add x9, x9, lJTI0_0@PAGEOFF adr x10, LBB0_2 ldrb w11, [x9, x8] add x10, x10, x11, lsl #2 br x10 LBB0_2: mov x0, x19 bl _getkind bl _printcapkind mov x0, x19 bl _getoff ; kill: def $w0 killed $w0 def $x0 ldr w8, [x19, #12] stp x0, x8, [sp] Lloh6: adrp x0, l_.str.32@PAGE Lloh7: add x0, x0, l_.str.32@PAGEOFF bl _printf b LBB0_13 LBB0_3: ldr w0, [x19, #40] bl _printcharset b LBB0_13 LBB0_4: ldr w0, [x19, #40] bl _printcharset b LBB0_12 LBB0_5: ldr w8, [x19, #8] str x8, [sp] Lloh8: adrp x0, l_.str.30@PAGE Lloh9: add x0, x0, l_.str.30@PAGEOFF b LBB0_11 LBB0_6: ldr w8, [x19, #12] str x8, [sp] Lloh10: adrp x0, l_.str.33@PAGE Lloh11: add x0, x0, l_.str.33@PAGEOFF bl _printf b LBB0_13 LBB0_7: mov x0, x20 mov x1, x19 bl _printjmp ldr w8, [x19, #8] str x8, [sp] Lloh12: adrp x0, l_.str.34@PAGE Lloh13: add x0, x0, l_.str.34@PAGEOFF bl _printf b LBB0_13 LBB0_8: ldr w8, [x19, #8] str x8, [sp] Lloh14: adrp x0, l_.str.30@PAGE Lloh15: add x0, x0, l_.str.30@PAGEOFF bl _printf b LBB0_13 LBB0_9: ldr w8, [x19, #8] str x8, [sp] Lloh16: adrp x0, l_.str.31@PAGE Lloh17: add x0, x0, l_.str.31@PAGEOFF bl _printf b LBB0_13 LBB0_10: ldr w8, [x19, #8] str x8, [sp] Lloh18: adrp x0, l_.str.31@PAGE Lloh19: add x0, x0, l_.str.31@PAGEOFF LBB0_11: bl _printf LBB0_12: mov x0, x20 mov x1, x19 bl _printjmp LBB0_13: mov w0, #10 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 b _putchar .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh12, Lloh13 .loh AdrpAdd Lloh14, Lloh15 .loh AdrpAdd Lloh16, Lloh17 .loh AdrpAdd Lloh18, Lloh19 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_3-LBB0_2)>>2 .byte (LBB0_4-LBB0_2)>>2 .byte (LBB0_4-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_10-LBB0_2)>>2 .byte (LBB0_3-LBB0_2)>>2 .byte (LBB0_3-LBB0_2)>>2 .byte (LBB0_3-LBB0_2)>>2 .byte (LBB0_12-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_6-LBB0_2)>>2 .byte (LBB0_12-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_12-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_7-LBB0_2)>>2 .byte (LBB0_8-LBB0_2)>>2 .byte (LBB0_12-LBB0_2)>>2 .byte (LBB0_12-LBB0_2)>>2 .byte (LBB0_9-LBB0_2)>>2 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "any" l_.str.1: ; @.str.1 .asciz "char" l_.str.2: ; @.str.2 .asciz "set" l_.str.3: ; @.str.3 .asciz "zset" l_.str.4: ; @.str.4 .asciz "testany" l_.str.5: ; @.str.5 .asciz "testchar" l_.str.6: ; @.str.6 .asciz "testset" l_.str.7: ; @.str.7 .asciz "testzset" l_.str.8: ; @.str.8 .asciz "span" l_.str.9: ; @.str.9 .asciz "spanz" l_.str.10: ; @.str.10 .asciz "ret" l_.str.11: ; @.str.11 .asciz "end" l_.str.12: ; @.str.12 .asciz "choice" l_.str.13: ; @.str.13 .asciz "jmp" l_.str.14: ; @.str.14 .asciz "call" l_.str.15: ; @.str.15 .asciz "open_call" l_.str.16: ; @.str.16 .asciz "commit" l_.str.17: ; @.str.17 .asciz "partial_commit" l_.str.18: ; @.str.18 .asciz "back_commit" l_.str.19: ; @.str.19 .asciz "failtwice" l_.str.20: ; @.str.20 .asciz "fail" l_.str.21: ; @.str.21 .asciz "giveup" l_.str.22: ; @.str.22 .asciz "func" l_.str.23: ; @.str.23 .asciz "fullcapture" l_.str.24: ; @.str.24 .asciz "emptycapture" l_.str.25: ; @.str.25 .asciz "emptycaptureidx" l_.str.26: ; @.str.26 .asciz "opencapture" l_.str.27: ; @.str.27 .asciz "closecapture" l_.str.28: ; @.str.28 .asciz "closeruntime" .section __DATA,__const .p2align 3 ; @__const.printinst.names l___const.printinst.names: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .quad l_.str.13 .quad l_.str.14 .quad l_.str.15 .quad l_.str.16 .quad l_.str.17 .quad l_.str.18 .quad l_.str.19 .quad l_.str.20 .quad l_.str.21 .quad l_.str.22 .quad l_.str.23 .quad l_.str.24 .quad l_.str.25 .quad l_.str.26 .quad l_.str.27 .quad l_.str.28 .section __TEXT,__cstring,cstring_literals l_.str.29: ; @.str.29 .asciz "%02ld: %s " l_.str.30: ; @.str.30 .asciz "'%c'" l_.str.31: ; @.str.31 .asciz "* %d" l_.str.32: ; @.str.32 .asciz "(n = %d) (off = %d)" l_.str.33: ; @.str.33 .asciz "-> %d" l_.str.34: ; @.str.34 .asciz " (%d)" .no_dead_strip _printinst .subsections_via_symbols
AnghaBench/Atlas/lib/extr_lpeg.c_printinst.c
anghabench