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 .globl _network_mysqld_con_lua_register_callback ## -- Begin function network_mysqld_con_lua_register_callback .p2align 4, 0x90 _network_mysqld_con_lua_register_callback: ## @network_mysqld_con_lua_register_callback .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 _REGISTER_CALLBACK_SUCCESS@GOTPCREL(%rip), %r13 testq %rsi, %rsi je LBB0_10 ## %bb.1: movq %rdi, %r12 movq 8(%rdi), %r14 movq (%r14), %rbx testq %rbx, %rbx je LBB0_3 ## %bb.2: movq %rbx, %rdi movl $-1, %esi callq _lua_isfunction movl %eax, %edi callq _g_assert movq %rbx, %rdi movl $-1, %esi callq _lua_getfenv movq %rbx, %rdi movl $-1, %esi callq _lua_istable movl %eax, %edi callq _g_assert leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _lua_getglobal movq %rbx, %rdi movl $-1, %esi callq _lua_getmetatable leaq L_.str.1(%rip), %r14 movq %rbx, %rdi movl $-3, %esi movq %r14, %rdx callq _lua_getfield leaq L_.str.2(%rip), %rdx movq %rbx, %rdi movl $-2, %esi callq _lua_setfield movq %rbx, %rdi movl $-3, %esi movq %r14, %rdx callq _lua_getfield leaq L_.str.3(%rip), %rdx movq %rbx, %rdi movl $-2, %esi callq _lua_setfield movq %rbx, %rdi movl $3, %esi callq _lua_pop movq %rbx, %rdi movl $-1, %esi callq _lua_isfunction movl %eax, %edi callq _g_assert jmp LBB0_10 LBB0_3: movq %rsi, %r15 movq (%r12), %rax movq (%rax), %rbx movq %rbx, %rdi callq _network_mysqld_lua_load_script testq %rax, %rax je LBB0_5 ## %bb.4: movq _REGISTER_CALLBACK_LOAD_FAILED@GOTPCREL(%rip), %r13 jmp LBB0_10 LBB0_5: movl (%rbx), %edi movq (%r12), %rsi callq _network_mysqld_lua_setup_global movl (%rbx), %edi callq _lua_newthread movq %rax, %r13 movl (%rbx), %edi movq _LUA_REGISTRYINDEX@GOTPCREL(%rip), %rax movl (%rax), %esi callq _luaL_ref movl %eax, 8(%r14) movq %r13, %rdi callq _lua_gettop movl %eax, -44(%rbp) ## 4-byte Spill movq %rbx, -56(%rbp) ## 8-byte Spill movl (%rbx), %edi movq %r13, %rsi movl $1, %edx callq _lua_xmove movq %r13, %rdi movl $-1, %esi callq _lua_isfunction movl %eax, %edi callq _g_assert movq %r13, %rdi callq _lua_newtable movq %r13, %rdi callq _lua_newtable movq _LUA_GLOBALSINDEX@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r13, %rdi callq _lua_pushvalue leaq L_.str.2(%rip), %rbx movq %r13, %rdi movl $-2, %esi movq %rbx, %rdx callq _lua_setfield movq %r13, %rdi movl $-2, %esi callq _lua_setmetatable movq %r13, %rdi callq _lua_newtable movq %r13, %rdi movl $-1, %esi callq _lua_istable movl %eax, %edi callq _g_assert movq %r13, %rdi movl $8, %esi callq _lua_newuserdata movq 16(%r14), %rcx movq %rcx, (%rax) movq %r13, %rdi callq _proxy_getqueuemetatable movq %r13, %rdi movl $-1, %esi callq _lua_pushvalue movq %r13, %rdi movl $-2, %esi movq %rbx, %rdx callq _lua_setfield movq %r13, %rdi movl $-2, %esi callq _lua_setmetatable leaq L_.str.4(%rip), %rdx movq %r13, %rdi movl $-2, %esi callq _lua_setfield movq %r13, %rdi movl $8, %esi callq _lua_newuserdata movq %r12, (%rax) movq %r13, %rdi callq _network_mysqld_con_getmetatable movq %r13, %rdi movl $-2, %esi callq _lua_setmetatable leaq L_.str.5(%rip), %rdx movq %r13, %rdi movl $-2, %esi callq _lua_setfield movq %r13, %rdi callq _lua_newtable leaq L_.str.6(%rip), %rdx movq %r13, %rdi movl $-2, %esi callq _lua_setfield leaq L_.str.1(%rip), %rdx movq %r13, %rdi movl $-2, %esi callq _lua_setfield leaq L_.str(%rip), %rsi movq %r13, %rdi callq _lua_getglobal movq %r13, %rdi movl $-1, %esi callq _lua_istable movl %eax, %edi callq _g_assert movq %r13, %rdi movl $-1, %esi callq _lua_getmetatable testq %rax, %rax jne LBB0_7 ## %bb.6: movq %r13, %rdi callq _lua_newtable LBB0_7: movq %r13, %rdi movl $-1, %esi callq _lua_istable movl %eax, %edi callq _g_assert leaq L_.str.1(%rip), %rbx movq %r13, %rdi movl $-3, %esi movq %rbx, %rdx callq _lua_getfield movq %r13, %rdi movl $-1, %esi callq _lua_istable movl %eax, %edi callq _g_assert leaq L_.str.2(%rip), %rdx movq %r13, %rdi movl $-2, %esi callq _lua_setfield movq %r13, %rdi movl $-3, %esi movq %rbx, %rdx callq _lua_getfield leaq L_.str.3(%rip), %rdx movq %r13, %rdi movl $-2, %esi callq _lua_setfield movq %r13, %rdi movl $-2, %esi callq _lua_setmetatable movq %r13, %rdi movl $1, %esi callq _lua_pop movq %r13, %rdi movl $-2, %esi callq _lua_isfunction movl %eax, %edi callq _g_assert movq %r13, %rdi movl $-1, %esi callq _lua_istable movl %eax, %edi callq _g_assert movq %r13, %rdi movl $-2, %esi callq _lua_setfenv movq %r13, %rdi movl $-1, %esi callq _lua_isfunction movl %eax, %edi callq _g_assert movq %r13, %rdi movl $-1, %esi callq _lua_pushvalue movq %r13, %rdi xorl %esi, %esi xorl %edx, %edx xorl %ecx, %ecx callq _lua_pcall testq %rax, %rax je LBB0_9 ## %bb.8: movq %r13, %rdi movl $-1, %esi callq _lua_tostring leaq L_.str.7(%rip), %rdi movq %r15, %rsi movl %eax, %edx callq _g_critical movq %r13, %rdi movl $1, %esi callq _lua_pop movq -56(%rbp), %rax ## 8-byte Reload movl (%rax), %edi movq _LUA_REGISTRYINDEX@GOTPCREL(%rip), %rax movl (%rax), %esi movl 8(%r14), %edx callq _luaL_unref movq _REGISTER_CALLBACK_EXECUTE_FAILED@GOTPCREL(%rip), %r13 jmp LBB0_10 LBB0_9: movq %r13, (%r14) movq %r13, %rdi movl $-1, %esi callq _lua_isfunction movl %eax, %edi callq _g_assert movq %r13, %rdi callq _lua_gettop subl -44(%rbp), %eax ## 4-byte Folded Reload xorl %edi, %edi cmpl $1, %eax sete %dil callq _g_assert movq _REGISTER_CALLBACK_SUCCESS@GOTPCREL(%rip), %r13 LBB0_10: movl (%r13), %eax addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _REGISTER_CALLBACK_SUCCESS,4,2 ## @REGISTER_CALLBACK_SUCCESS .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "proxy" L_.str.1: ## @.str.1 .asciz "__proxy" L_.str.2: ## @.str.2 .asciz "__index" L_.str.3: ## @.str.3 .asciz "__newindex" .comm _REGISTER_CALLBACK_LOAD_FAILED,4,2 ## @REGISTER_CALLBACK_LOAD_FAILED .comm _LUA_REGISTRYINDEX,4,2 ## @LUA_REGISTRYINDEX .comm _LUA_GLOBALSINDEX,4,2 ## @LUA_GLOBALSINDEX L_.str.4: ## @.str.4 .asciz "queries" L_.str.5: ## @.str.5 .asciz "connection" L_.str.6: ## @.str.6 .asciz "response" L_.str.7: ## @.str.7 .asciz "(lua-error) [%s]\n%s" .comm _REGISTER_CALLBACK_EXECUTE_FAILED,4,2 ## @REGISTER_CALLBACK_EXECUTE_FAILED .comm _response_get,4,2 ## @response_get .comm _response_set,4,2 ## @response_set .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_lua_register_callback ; -- Begin function network_mysqld_con_lua_register_callback .p2align 2 _network_mysqld_con_lua_register_callback: ; @network_mysqld_con_lua_register_callback .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 cbz x1, LBB0_4 ; %bb.1: mov x23, x0 ldr x25, [x0, #8] ldr x20, [x25] cbz x20, LBB0_6 ; %bb.2: mov x0, x20 mov w1, #-1 bl _lua_isfunction bl _g_assert mov x0, x20 mov w1, #-1 bl _lua_getfenv mov x0, x20 mov w1, #-1 bl _lua_istable bl _g_assert Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _lua_getglobal mov x0, x20 mov w1, #-1 bl _lua_getmetatable Lloh2: adrp x19, l_.str.1@PAGE Lloh3: add x19, x19, l_.str.1@PAGEOFF mov x0, x20 mov w1, #-3 mov x2, x19 bl _lua_getfield Lloh4: adrp x2, l_.str.2@PAGE Lloh5: add x2, x2, l_.str.2@PAGEOFF mov x0, x20 mov w1, #-2 bl _lua_setfield mov x0, x20 mov w1, #-3 mov x2, x19 bl _lua_getfield Lloh6: adrp x2, l_.str.3@PAGE Lloh7: add x2, x2, l_.str.3@PAGEOFF mov x0, x20 mov w1, #-2 bl _lua_setfield mov x0, x20 mov w1, #3 bl _lua_pop mov x0, x20 mov w1, #-1 bl _lua_isfunction LBB0_3: bl _g_assert LBB0_4: Lloh8: adrp x8, _REGISTER_CALLBACK_SUCCESS@GOTPAGE Lloh9: ldr x8, [x8, _REGISTER_CALLBACK_SUCCESS@GOTPAGEOFF] LBB0_5: ldr w0, [x8] 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 LBB0_6: mov x19, x1 ldr x8, [x23] ldr x20, [x8] mov x0, x20 bl _network_mysqld_lua_load_script cbz x0, LBB0_8 ; %bb.7: Lloh10: adrp x8, _REGISTER_CALLBACK_LOAD_FAILED@GOTPAGE Lloh11: ldr x8, [x8, _REGISTER_CALLBACK_LOAD_FAILED@GOTPAGEOFF] b LBB0_5 LBB0_8: ldr w0, [x20] ldr x1, [x23] bl _network_mysqld_lua_setup_global ldr w0, [x20] bl _lua_newthread mov x21, x0 ldr w0, [x20] Lloh12: adrp x26, _LUA_REGISTRYINDEX@GOTPAGE Lloh13: ldr x26, [x26, _LUA_REGISTRYINDEX@GOTPAGEOFF] ldr w1, [x26] bl _luaL_ref str w0, [x25, #8] mov x0, x21 bl _lua_gettop mov x22, x0 ldr w0, [x20] mov x1, x21 mov w2, #1 bl _lua_xmove mov x0, x21 mov w1, #-1 bl _lua_isfunction bl _g_assert mov x0, x21 bl _lua_newtable mov x0, x21 bl _lua_newtable Lloh14: adrp x8, _LUA_GLOBALSINDEX@GOTPAGE Lloh15: ldr x8, [x8, _LUA_GLOBALSINDEX@GOTPAGEOFF] Lloh16: ldr w1, [x8] mov x0, x21 bl _lua_pushvalue Lloh17: adrp x24, l_.str.2@PAGE Lloh18: add x24, x24, l_.str.2@PAGEOFF mov x0, x21 mov w1, #-2 mov x2, x24 bl _lua_setfield mov x0, x21 mov w1, #-2 bl _lua_setmetatable mov x0, x21 bl _lua_newtable mov x0, x21 mov w1, #-1 bl _lua_istable bl _g_assert mov x0, x21 mov w1, #8 bl _lua_newuserdata ldr x8, [x25, #16] str x8, [x0] mov x0, x21 bl _proxy_getqueuemetatable mov x0, x21 mov w1, #-1 bl _lua_pushvalue mov x0, x21 mov w1, #-2 mov x2, x24 bl _lua_setfield mov x0, x21 mov w1, #-2 bl _lua_setmetatable Lloh19: adrp x2, l_.str.4@PAGE Lloh20: add x2, x2, l_.str.4@PAGEOFF mov x0, x21 mov w1, #-2 bl _lua_setfield mov x0, x21 mov w1, #8 bl _lua_newuserdata str x23, [x0] mov x0, x21 bl _network_mysqld_con_getmetatable mov x0, x21 mov w1, #-2 bl _lua_setmetatable Lloh21: adrp x2, l_.str.5@PAGE Lloh22: add x2, x2, l_.str.5@PAGEOFF mov x0, x21 mov w1, #-2 bl _lua_setfield mov x0, x21 bl _lua_newtable Lloh23: adrp x2, l_.str.6@PAGE Lloh24: add x2, x2, l_.str.6@PAGEOFF mov x0, x21 mov w1, #-2 bl _lua_setfield Lloh25: adrp x2, l_.str.1@PAGE Lloh26: add x2, x2, l_.str.1@PAGEOFF mov x0, x21 mov w1, #-2 bl _lua_setfield Lloh27: adrp x1, l_.str@PAGE Lloh28: add x1, x1, l_.str@PAGEOFF mov x0, x21 bl _lua_getglobal mov x0, x21 mov w1, #-1 bl _lua_istable bl _g_assert mov x0, x21 mov w1, #-1 bl _lua_getmetatable cbnz x0, LBB0_10 ; %bb.9: mov x0, x21 bl _lua_newtable LBB0_10: mov x0, x21 mov w1, #-1 bl _lua_istable bl _g_assert Lloh29: adrp x23, l_.str.1@PAGE Lloh30: add x23, x23, l_.str.1@PAGEOFF mov x0, x21 mov w1, #-3 mov x2, x23 bl _lua_getfield mov x0, x21 mov w1, #-1 bl _lua_istable bl _g_assert Lloh31: adrp x2, l_.str.2@PAGE Lloh32: add x2, x2, l_.str.2@PAGEOFF mov x0, x21 mov w1, #-2 bl _lua_setfield mov x0, x21 mov w1, #-3 mov x2, x23 bl _lua_getfield Lloh33: adrp x2, l_.str.3@PAGE Lloh34: add x2, x2, l_.str.3@PAGEOFF mov x0, x21 mov w1, #-2 bl _lua_setfield mov x0, x21 mov w1, #-2 bl _lua_setmetatable mov x0, x21 mov w1, #1 bl _lua_pop mov x0, x21 mov w1, #-2 bl _lua_isfunction bl _g_assert mov x0, x21 mov w1, #-1 bl _lua_istable bl _g_assert mov x0, x21 mov w1, #-2 bl _lua_setfenv mov x0, x21 mov w1, #-1 bl _lua_isfunction bl _g_assert mov x0, x21 mov w1, #-1 bl _lua_pushvalue mov x0, x21 mov w1, #0 mov w2, #0 mov w3, #0 bl _lua_pcall cbz x0, LBB0_12 ; %bb.11: mov x0, x21 mov w1, #-1 bl _lua_tostring mov x2, x0 Lloh35: adrp x0, l_.str.7@PAGE Lloh36: add x0, x0, l_.str.7@PAGEOFF mov x1, x19 bl _g_critical mov x0, x21 mov w1, #1 bl _lua_pop ldr w0, [x20] ldr w1, [x26] ldr w2, [x25, #8] bl _luaL_unref Lloh37: adrp x8, _REGISTER_CALLBACK_EXECUTE_FAILED@GOTPAGE Lloh38: ldr x8, [x8, _REGISTER_CALLBACK_EXECUTE_FAILED@GOTPAGEOFF] b LBB0_5 LBB0_12: str x21, [x25] mov x0, x21 mov w1, #-1 bl _lua_isfunction bl _g_assert mov x0, x21 bl _lua_gettop sub w8, w0, w22 cmp w8, #1 cset w0, eq b LBB0_3 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGot Lloh8, Lloh9 .loh AdrpLdrGot Lloh10, Lloh11 .loh AdrpAdd Lloh27, Lloh28 .loh AdrpAdd Lloh25, Lloh26 .loh AdrpAdd Lloh23, Lloh24 .loh AdrpAdd Lloh21, Lloh22 .loh AdrpAdd Lloh19, Lloh20 .loh AdrpAdd Lloh17, Lloh18 .loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16 .loh AdrpLdrGot Lloh12, Lloh13 .loh AdrpAdd Lloh33, Lloh34 .loh AdrpAdd Lloh31, Lloh32 .loh AdrpAdd Lloh29, Lloh30 .loh AdrpLdrGot Lloh37, Lloh38 .loh AdrpAdd Lloh35, Lloh36 .cfi_endproc ; -- End function .comm _REGISTER_CALLBACK_SUCCESS,4,2 ; @REGISTER_CALLBACK_SUCCESS .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "proxy" l_.str.1: ; @.str.1 .asciz "__proxy" l_.str.2: ; @.str.2 .asciz "__index" l_.str.3: ; @.str.3 .asciz "__newindex" .comm _REGISTER_CALLBACK_LOAD_FAILED,4,2 ; @REGISTER_CALLBACK_LOAD_FAILED .comm _LUA_REGISTRYINDEX,4,2 ; @LUA_REGISTRYINDEX .comm _LUA_GLOBALSINDEX,4,2 ; @LUA_GLOBALSINDEX l_.str.4: ; @.str.4 .asciz "queries" l_.str.5: ; @.str.5 .asciz "connection" l_.str.6: ; @.str.6 .asciz "response" l_.str.7: ; @.str.7 .asciz "(lua-error) [%s]\n%s" .comm _REGISTER_CALLBACK_EXECUTE_FAILED,4,2 ; @REGISTER_CALLBACK_EXECUTE_FAILED .comm _response_get,4,2 ; @response_get .comm _response_set,4,2 ; @response_set .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-lua.c_network_mysqld_con_lua_register_callback.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_lua_load_script ## -- Begin function network_mysqld_lua_load_script .p2align 4, 0x90 _network_mysqld_lua_load_script: ## @network_mysqld_lua_load_script .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, %r14 movq %rdi, %rbx movl (%rdi), %edi callq _lua_gettop testq %r14, %r14 je LBB0_1 ## %bb.2: movl %eax, %r15d movq %rbx, %rdi movq %r14, %rsi callq _lua_scope_load_script movl (%rbx), %edi movl $-1, %r12d movl $-1, %esi callq _lua_isstring testq %rax, %rax je LBB0_4 ## %bb.3: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %r15d movl (%rbx), %edi movl $-1, %esi callq _lua_tostring leaq L_.str(%rip), %rdi movl %r15d, %esi movq %r14, %rdx movl %eax, %ecx callq _g_critical movl (%rbx), %edi movl $1, %esi callq _lua_pop jmp LBB0_7 LBB0_1: movl $-1, %r12d jmp LBB0_7 LBB0_4: movl (%rbx), %edi movl $-1, %esi callq _lua_isfunction testl %eax, %eax jne LBB0_6 ## %bb.5: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %r12d movl (%rbx), %r13d movl %r13d, %edi movl $-1, %esi callq _lua_type movl %r13d, %edi movl %eax, %esi callq _lua_typename leaq L_.str.1(%rip), %rdi movl %r12d, %esi movq %r14, %rdx movl %eax, %ecx callq _g_error LBB0_6: movl (%rbx), %edi callq _lua_gettop subl %r15d, %eax xorl %edi, %edi cmpl $1, %eax sete %dil callq _g_assert xorl %r12d, %r12d LBB0_7: movl %r12d, %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 "%s: lua_load_file(%s) failed: %s" .comm _G_STRLOC,4,2 ## @G_STRLOC L_.str.1: ## @.str.1 .asciz "%s: luaL_loadfile(%s): returned a %s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_lua_load_script ; -- Begin function network_mysqld_lua_load_script .p2align 2 _network_mysqld_lua_load_script: ; @network_mysqld_lua_load_script .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, x1 mov x19, x0 ldr w0, [x0] bl _lua_gettop cbz x20, LBB0_3 ; %bb.1: mov x21, x0 mov x0, x19 mov x1, x20 bl _lua_scope_load_script ldr w0, [x19] mov w1, #-1 bl _lua_isstring cbz x0, LBB0_4 ; %bb.2: Lloh0: adrp x8, _G_STRLOC@GOTPAGE Lloh1: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh2: ldr w22, [x8] ldr w0, [x19] mov w21, #-1 mov w1, #-1 bl _lua_tostring mov x3, x0 Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF mov x1, x22 mov x2, x20 bl _g_critical ldr w0, [x19] mov w1, #1 bl _lua_pop b LBB0_7 LBB0_3: mov w21, #-1 b LBB0_7 LBB0_4: ldr w0, [x19] mov w1, #-1 bl _lua_isfunction cbnz w0, LBB0_6 ; %bb.5: Lloh5: adrp x8, _G_STRLOC@GOTPAGE Lloh6: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh7: ldr w22, [x8] ldr w23, [x19] mov x0, x23 mov w1, #-1 bl _lua_type mov x1, x0 mov x0, x23 bl _lua_typename mov x3, x0 Lloh8: adrp x0, l_.str.1@PAGE Lloh9: add x0, x0, l_.str.1@PAGEOFF mov x1, x22 mov x2, x20 bl _g_error LBB0_6: ldr w0, [x19] bl _lua_gettop sub w8, w0, w21 cmp w8, #1 cset w0, eq bl _g_assert mov w21, #0 LBB0_7: 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 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: lua_load_file(%s) failed: %s" .comm _G_STRLOC,4,2 ; @G_STRLOC l_.str.1: ; @.str.1 .asciz "%s: luaL_loadfile(%s): returned a %s" .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-lua.c_network_mysqld_lua_load_script.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_lua_setup_global ## -- Begin function network_mysqld_lua_setup_global .p2align 4, 0x90 _network_mysqld_lua_setup_global: ## @network_mysqld_lua_setup_global .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, %r15 movq %rdi, %rbx callq _lua_gettop movl %eax, %r14d leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _lua_getglobal movq %rbx, %rdi movl $-1, %esi callq _lua_isnil testq %rax, %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi movl $1, %esi callq _lua_pop movq %rbx, %rdi callq _network_mysqld_lua_init_global_fenv leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _lua_getglobal LBB0_2: movq %rbx, %rdi movl $-1, %esi callq _lua_istable movl %eax, %edi callq _g_assert leaq L_.str.1(%rip), %rdx movq %rbx, %rdi movl $-1, %esi callq _lua_getfield leaq L_.str.2(%rip), %rdx movq %rbx, %rdi movl $-1, %esi callq _lua_getfield movl 12(%r15), %esi movq %rbx, %rdi callq _lua_pushstring leaq L_.str.3(%rip), %rdx movq %rbx, %rdi movl $-2, %esi callq _lua_setfield movl 8(%r15), %esi movq %rbx, %rdi callq _lua_pushstring leaq L_.str.4(%rip), %rdx movq %rbx, %rdi movl $-2, %esi callq _lua_setfield movq %rbx, %rdi movl $1, %esi callq _lua_pop movq %rbx, %rdi movl $8, %esi callq _lua_newuserdata movq (%r15), %rcx movq %rcx, (%rax) movq %rbx, %rdi callq _network_backends_lua_getmetatable movq %rbx, %rdi movl $-2, %esi callq _lua_setmetatable leaq L_.str.5(%rip), %rdx movq %rbx, %rdi movl $-2, %esi callq _lua_setfield movq %rbx, %rdi movl $8, %esi callq _lua_newuserdata movq (%r15), %rcx movq 8(%rcx), %rcx movq %rcx, (%rax) movq %rbx, %rdi callq _network_clients_lua_getmetatable movq %rbx, %rdi movl $-2, %esi callq _lua_setmetatable leaq L_.str.6(%rip), %rdx movq %rbx, %rdi movl $-2, %esi callq _lua_setfield movq %rbx, %rdi movl $8, %esi callq _lua_newuserdata movq (%r15), %rcx movq (%rcx), %rcx movq %rcx, (%rax) movq %rbx, %rdi callq _network_pwds_lua_getmetatable movq %rbx, %rdi movl $-2, %esi callq _lua_setmetatable leaq L_.str.7(%rip), %rdx movq %rbx, %rdi movl $-2, %esi callq _lua_setfield movq %rbx, %rdi movl $2, %esi callq _lua_pop movq %rbx, %rdi callq _lua_gettop xorl %edi, %edi cmpl %r14d, %eax 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 "proxy" L_.str.1: ## @.str.1 .asciz "global" L_.str.2: ## @.str.2 .asciz "config" L_.str.3: ## @.str.3 .asciz "instance" L_.str.4: ## @.str.4 .asciz "logpath" L_.str.5: ## @.str.5 .asciz "backends" L_.str.6: ## @.str.6 .asciz "clients" L_.str.7: ## @.str.7 .asciz "pwds" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_lua_setup_global ; -- Begin function network_mysqld_lua_setup_global .p2align 2 _network_mysqld_lua_setup_global: ; @network_mysqld_lua_setup_global .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 x21, x1 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 mov x0, x19 mov w1, #-1 bl _lua_isnil cbz x0, LBB0_2 ; %bb.1: mov x0, x19 mov w1, #1 bl _lua_pop mov x0, x19 bl _network_mysqld_lua_init_global_fenv Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _lua_getglobal LBB0_2: mov x0, x19 mov w1, #-1 bl _lua_istable bl _g_assert Lloh4: adrp x2, l_.str.1@PAGE Lloh5: add x2, x2, l_.str.1@PAGEOFF mov x0, x19 mov w1, #-1 bl _lua_getfield Lloh6: adrp x2, l_.str.2@PAGE Lloh7: add x2, x2, l_.str.2@PAGEOFF mov x0, x19 mov w1, #-1 bl _lua_getfield ldr w1, [x21, #12] mov x0, x19 bl _lua_pushstring Lloh8: adrp x2, l_.str.3@PAGE Lloh9: add x2, x2, l_.str.3@PAGEOFF mov x0, x19 mov w1, #-2 bl _lua_setfield ldr w1, [x21, #8] mov x0, x19 bl _lua_pushstring Lloh10: adrp x2, l_.str.4@PAGE Lloh11: add x2, x2, l_.str.4@PAGEOFF mov x0, x19 mov w1, #-2 bl _lua_setfield mov x0, x19 mov w1, #1 bl _lua_pop mov x0, x19 mov w1, #8 bl _lua_newuserdata ldr x8, [x21] str x8, [x0] mov x0, x19 bl _network_backends_lua_getmetatable mov x0, x19 mov w1, #-2 bl _lua_setmetatable Lloh12: adrp x2, l_.str.5@PAGE Lloh13: add x2, x2, l_.str.5@PAGEOFF mov x0, x19 mov w1, #-2 bl _lua_setfield mov x0, x19 mov w1, #8 bl _lua_newuserdata ldr x8, [x21] ldr x8, [x8, #8] str x8, [x0] mov x0, x19 bl _network_clients_lua_getmetatable mov x0, x19 mov w1, #-2 bl _lua_setmetatable Lloh14: adrp x2, l_.str.6@PAGE Lloh15: add x2, x2, l_.str.6@PAGEOFF mov x0, x19 mov w1, #-2 bl _lua_setfield mov x0, x19 mov w1, #8 bl _lua_newuserdata ldr x8, [x21] ldr x8, [x8] str x8, [x0] mov x0, x19 bl _network_pwds_lua_getmetatable mov x0, x19 mov w1, #-2 bl _lua_setmetatable Lloh16: adrp x2, l_.str.7@PAGE Lloh17: add x2, x2, l_.str.7@PAGEOFF mov x0, x19 mov w1, #-2 bl _lua_setfield mov x0, x19 mov w1, #2 bl _lua_pop mov x0, x19 bl _lua_gettop cmp w0, w20 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 AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh16, Lloh17 .loh AdrpAdd Lloh14, Lloh15 .loh AdrpAdd Lloh12, Lloh13 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "proxy" l_.str.1: ; @.str.1 .asciz "global" l_.str.2: ; @.str.2 .asciz "config" l_.str.3: ; @.str.3 .asciz "instance" l_.str.4: ; @.str.4 .asciz "logpath" l_.str.5: ; @.str.5 .asciz "backends" l_.str.6: ; @.str.6 .asciz "clients" l_.str.7: ; @.str.7 .asciz "pwds" .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-lua.c_network_mysqld_lua_setup_global.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function proxy_connection_get _proxy_connection_get: ## @proxy_connection_get .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, %r15 callq _luaL_checkself movq (%rax), %r12 movl $0, -44(%rbp) leaq -44(%rbp), %rdx movq %r15, %rdi movl $2, %esi callq _luaL_checklstring movq %rax, %r14 movq 16(%r12), %r13 movl -44(%rbp), %ebx leaq L_.str(%rip), %rdi callq _C movq %r14, %rdi movl %ebx, %esi movl %eax, %edx callq _strleq testq %rax, %rax je LBB0_3 ## %bb.1: leaq L_.str.1(%rip), %rsi jmp LBB0_2 LBB0_3: movl -44(%rbp), %ebx leaq L_.str.2(%rip), %rdi callq _C movq %r14, %rdi movl %ebx, %esi movl %eax, %edx callq _strleq testq %rax, %rax je LBB0_5 ## %bb.4: leaq L_.str.3(%rip), %rsi jmp LBB0_2 LBB0_5: movl -44(%rbp), %ebx leaq L_.str.4(%rip), %rdi callq _C movq %r14, %rdi movl %ebx, %esi movl %eax, %edx callq _strleq testq %rax, %rax je LBB0_7 ## %bb.6: leaq L_.str.5(%rip), %rsi LBB0_2: movq %r15, %rdi callq _luaL_error LBB0_16: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_7: movl -44(%rbp), %ebx leaq L_.str.6(%rip), %rdi callq _C movq %r14, %rdi movl %ebx, %esi movl %eax, %edx callq _strleq testq %rax, %rax je LBB0_9 ## %bb.8: movq (%r13), %rsi incq %rsi movq %r15, %rdi callq _lua_pushinteger jmp LBB0_15 LBB0_9: cmpq $0, 8(%r12) je LBB0_11 ## %bb.10: movl -44(%rbp), %ebx leaq L_.str.7(%rip), %rdi callq _C movq %r14, %rdi movl %ebx, %esi movl %eax, %edx callq _strleq testq %rax, %rax jne LBB0_13 LBB0_11: cmpq $0, (%r12) je LBB0_14 ## %bb.12: movl -44(%rbp), %ebx leaq L_.str.8(%rip), %rdi callq _C movq %r14, %rdi movl %ebx, %esi movl %eax, %edx callq _strleq testq %rax, %rax je LBB0_14 LBB0_13: movq %r15, %rdi movl $4, %esi callq _lua_newuserdata xorl %ecx, %ecx cmpb $115, (%r14) sete %cl movq (%r12,%rcx,8), %rcx movq %rcx, (%rax) movq %r15, %rdi callq _network_socket_lua_getmetatable movq %r15, %rdi movl $-2, %esi callq _lua_setmetatable jmp LBB0_15 LBB0_14: movq %r15, %rdi callq _lua_pushnil LBB0_15: movl $1, %eax jmp LBB0_16 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "default_db" L_.str.1: ## @.str.1 .asciz "proxy.connection.default_db is deprecated, use proxy.connection.client.default_db or proxy.connection.server.default_db instead" L_.str.2: ## @.str.2 .asciz "thread_id" L_.str.3: ## @.str.3 .asciz "proxy.connection.thread_id is deprecated, use proxy.connection.server.thread_id instead" L_.str.4: ## @.str.4 .asciz "mysqld_version" L_.str.5: ## @.str.5 .asciz "proxy.connection.mysqld_version is deprecated, use proxy.connection.server.mysqld_version instead" L_.str.6: ## @.str.6 .asciz "backend_ndx" L_.str.7: ## @.str.7 .asciz "server" L_.str.8: ## @.str.8 .asciz "client" .no_dead_strip _proxy_connection_get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function proxy_connection_get _proxy_connection_get: ; @proxy_connection_get .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 x19, x0 bl _luaL_checkself ldr x22, [x0] str wzr, [sp, #12] add x2, sp, #12 mov x0, x19 mov w1, #2 bl _luaL_checklstring mov x20, x0 ldr x23, [x22, #16] ldr w21, [sp, #12] Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF bl _C mov x2, x0 mov x0, x20 mov x1, x21 bl _strleq cbz x0, LBB0_2 ; %bb.1: Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF b LBB0_6 LBB0_2: ldr w21, [sp, #12] Lloh4: adrp x0, l_.str.2@PAGE Lloh5: add x0, x0, l_.str.2@PAGEOFF bl _C mov x2, x0 mov x0, x20 mov x1, x21 bl _strleq cbz x0, LBB0_4 ; %bb.3: Lloh6: adrp x1, l_.str.3@PAGE Lloh7: add x1, x1, l_.str.3@PAGEOFF b LBB0_6 LBB0_4: ldr w21, [sp, #12] Lloh8: adrp x0, l_.str.4@PAGE Lloh9: add x0, x0, l_.str.4@PAGEOFF bl _C mov x2, x0 mov x0, x20 mov x1, x21 bl _strleq cbz x0, LBB0_8 ; %bb.5: Lloh10: adrp x1, l_.str.5@PAGE Lloh11: add x1, x1, l_.str.5@PAGEOFF LBB0_6: mov x0, x19 bl _luaL_error LBB0_7: 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 LBB0_8: ldr w21, [sp, #12] Lloh12: adrp x0, l_.str.6@PAGE Lloh13: add x0, x0, l_.str.6@PAGEOFF bl _C mov x2, x0 mov x0, x20 mov x1, x21 bl _strleq cbz x0, LBB0_10 ; %bb.9: ldr x8, [x23] add x1, x8, #1 mov x0, x19 bl _lua_pushinteger b LBB0_16 LBB0_10: ldr x8, [x22, #8] cbz x8, LBB0_12 ; %bb.11: ldr w21, [sp, #12] Lloh14: adrp x0, l_.str.7@PAGE Lloh15: add x0, x0, l_.str.7@PAGEOFF bl _C mov x2, x0 mov x0, x20 mov x1, x21 bl _strleq cbnz x0, LBB0_14 LBB0_12: ldr x8, [x22] cbz x8, LBB0_15 ; %bb.13: ldr w21, [sp, #12] Lloh16: adrp x0, l_.str.8@PAGE Lloh17: add x0, x0, l_.str.8@PAGEOFF bl _C mov x2, x0 mov x0, x20 mov x1, x21 bl _strleq cbz x0, LBB0_15 LBB0_14: mov x0, x19 mov w1, #4 bl _lua_newuserdata ldrb w8, [x20] cmp w8, #115 cset w8, eq ldr x8, [x22, w8, uxtw #3] str x8, [x0] mov x0, x19 bl _network_socket_lua_getmetatable mov x0, x19 mov w1, #-2 bl _lua_setmetatable b LBB0_16 LBB0_15: mov x0, x19 bl _lua_pushnil LBB0_16: mov w0, #1 b LBB0_7 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .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 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "default_db" l_.str.1: ; @.str.1 .asciz "proxy.connection.default_db is deprecated, use proxy.connection.client.default_db or proxy.connection.server.default_db instead" l_.str.2: ; @.str.2 .asciz "thread_id" l_.str.3: ; @.str.3 .asciz "proxy.connection.thread_id is deprecated, use proxy.connection.server.thread_id instead" l_.str.4: ; @.str.4 .asciz "mysqld_version" l_.str.5: ; @.str.5 .asciz "proxy.connection.mysqld_version is deprecated, use proxy.connection.server.mysqld_version instead" l_.str.6: ; @.str.6 .asciz "backend_ndx" l_.str.7: ; @.str.7 .asciz "server" l_.str.8: ; @.str.8 .asciz "client" .no_dead_strip _proxy_connection_get .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-lua.c_proxy_connection_get.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function proxy_connection_set _proxy_connection_set: ## @proxy_connection_set .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 _luaL_checkself movq (%rax), %r14 movl $0, -44(%rbp) leaq -44(%rbp), %rdx movq %r12, %rdi movl $2, %esi callq _luaL_checklstring movq %rax, %r15 movq 8(%r14), %r13 movl -44(%rbp), %ebx leaq L_.str(%rip), %rdi callq _C movq %r15, %rdi movl %ebx, %esi movl %eax, %edx callq _strleq testq %rax, %rax je LBB0_10 ## %bb.1: movq %r12, %rdi movl $3, %esi callq _luaL_checkinteger movl %eax, %ebx subl $1, %ebx jae LBB0_3 ## %bb.2: movq %r14, %rdi callq _network_connection_pool_lua_add_connection xorl %r15d, %r15d jmp LBB0_13 LBB0_10: leaq L_.str.1(%rip), %rsi movq %r15, %rdi callq _strcmp testq %rax, %rax je LBB0_11 ## %bb.12: leaq L_.str.2(%rip), %rsi movq %r12, %rdi movq %r15, %rdx callq _luaL_error movl %eax, %r15d jmp LBB0_13 LBB0_3: xorl %r15d, %r15d movq %r14, %rdi movl %ebx, %esi xorl %edx, %edx callq _network_connection_pool_lua_swap testq %rax, %rax je LBB0_5 ## %bb.4: movq %rax, (%r14) jmp LBB0_13 LBB0_11: movq _LUA_TBOOLEAN@GOTPCREL(%rip), %rax movl (%rax), %edx movq %r12, %rdi movl $3, %esi callq _luaL_checktype movq %r12, %rdi movl $3, %esi callq _lua_toboolean movl %eax, 4(%r13) xorl %r15d, %r15d jmp LBB0_13 LBB0_5: cmpl $-2, %ebx jne LBB0_9 ## %bb.6: movq 8(%r13), %rax testq %rax, %rax je LBB0_8 ## %bb.7: decl (%rax) movq $0, 8(%r13) LBB0_8: movl $-1, (%r13) movq (%r14), %rdi callq _network_socket_free movq $0, (%r14) jmp LBB0_13 LBB0_9: movl %ebx, (%r13) LBB0_13: movl %r15d, %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 "backend_ndx" L_.str.1: ## @.str.1 .asciz "connection_close" .comm _LUA_TBOOLEAN,4,2 ## @LUA_TBOOLEAN L_.str.2: ## @.str.2 .asciz "proxy.connection.%s is not writable" .no_dead_strip _proxy_connection_set .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function proxy_connection_set _proxy_connection_set: ; @proxy_connection_set .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 x20, x0 bl _luaL_checkself ldr x19, [x0] str wzr, [sp, #12] add x2, sp, #12 mov x0, x20 mov w1, #2 bl _luaL_checklstring mov x21, x0 ldr x23, [x19, #8] ldr w22, [sp, #12] Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF bl _C mov x2, x0 mov x0, x21 mov x1, x22 bl _strleq cbz x0, LBB0_4 ; %bb.1: mov x0, x20 mov w1, #3 bl _luaL_checkinteger cbz w0, LBB0_6 ; %bb.2: sub w20, w0, #1 mov x0, x19 mov x1, x20 mov x2, #0 bl _network_connection_pool_lua_swap cbz x0, LBB0_7 ; %bb.3: mov x8, x0 mov w0, #0 str x8, [x19] b LBB0_13 LBB0_4: Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x21 bl _strcmp cbz x0, LBB0_11 ; %bb.5: Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x20 mov x2, x21 bl _luaL_error b LBB0_13 LBB0_6: mov x0, x19 bl _network_connection_pool_lua_add_connection mov w0, #0 b LBB0_13 LBB0_7: cmn w20, #2 b.ne LBB0_12 ; %bb.8: ldr x8, [x23, #8] cbz x8, LBB0_10 ; %bb.9: ldr w9, [x8] sub w9, w9, #1 str w9, [x8] str xzr, [x23, #8] LBB0_10: mov w8, #-1 str w8, [x23] ldr x0, [x19] bl _network_socket_free mov w0, #0 str xzr, [x19] b LBB0_13 LBB0_11: Lloh6: adrp x8, _LUA_TBOOLEAN@GOTPAGE Lloh7: ldr x8, [x8, _LUA_TBOOLEAN@GOTPAGEOFF] Lloh8: ldr w2, [x8] mov x0, x20 mov w1, #3 bl _luaL_checktype mov x0, x20 mov w1, #3 bl _lua_toboolean mov x8, x0 mov w0, #0 str w8, [x23, #4] b LBB0_13 LBB0_12: mov w0, #0 str w20, [x23] LBB0_13: 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 AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "backend_ndx" l_.str.1: ; @.str.1 .asciz "connection_close" .comm _LUA_TBOOLEAN,4,2 ; @LUA_TBOOLEAN l_.str.2: ; @.str.2 .asciz "proxy.connection.%s is not writable" .no_dead_strip _proxy_connection_set .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-lua.c_proxy_connection_set.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_masterinfo_append ## -- Begin function network_mysqld_masterinfo_append .p2align 4, 0x90 _network_mysqld_masterinfo_append: ## @network_mysqld_masterinfo_append .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, %rbx movq %rdi, %r14 movq %rsi, %rdi movl $-1, %esi callq _g_return_val_if_fail movq %r14, %rdi movl $-1, %esi callq _g_return_val_if_fail movl (%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_int32 movb $1, %r15b testq %rax, %rax jne LBB0_16 ## %bb.1: movl 56(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_string testq %rax, %rax jne LBB0_16 ## %bb.2: movl 4(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_int32 testq %rax, %rax jne LBB0_16 ## %bb.3: movl 52(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_string testq %rax, %rax jne LBB0_16 ## %bb.4: movl 48(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_string testq %rax, %rax jne LBB0_16 ## %bb.5: movl 44(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_string testq %rax, %rax jne LBB0_16 ## %bb.6: movl 8(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_int32 testq %rax, %rax jne LBB0_16 ## %bb.7: movl 12(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_int32 testq %rax, %rax jne LBB0_16 ## %bb.8: movl 16(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_int32 testq %rax, %rax jne LBB0_16 ## %bb.9: movl 40(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_string testq %rax, %rax jne LBB0_16 ## %bb.10: movl 36(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_string testq %rax, %rax jne LBB0_16 ## %bb.11: movl 32(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_string testq %rax, %rax jne LBB0_16 ## %bb.12: movl 28(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_string testq %rax, %rax jne LBB0_16 ## %bb.13: movl 24(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_string testq %rax, %rax setne %cl movl (%rbx), %edx cmpl $15, %edx setge %r15b orb %cl, %r15b cmpl $15, %edx jl LBB0_16 ## %bb.14: testq %rax, %rax jne LBB0_16 ## %bb.15: movl 20(%rbx), %esi movq %r14, %rdi callq _network_mysqld_masterinfo_append_int32 testq %rax, %rax setne %r15b LBB0_16: movzbl %r15b, %eax negl %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_masterinfo_append ; -- Begin function network_mysqld_masterinfo_append .p2align 2 _network_mysqld_masterinfo_append: ; @network_mysqld_masterinfo_append .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, x1 mov x19, x0 mov x0, x1 mov w1, #-1 bl _g_return_val_if_fail mov x0, x19 mov w1, #-1 bl _g_return_val_if_fail ldr w1, [x20] mov x0, x19 bl _network_mysqld_masterinfo_append_int32 cbnz x0, LBB0_13 ; %bb.1: ldr w1, [x20, #56] mov x0, x19 bl _network_mysqld_masterinfo_append_string cbnz x0, LBB0_13 ; %bb.2: ldr w1, [x20, #4] mov x0, x19 bl _network_mysqld_masterinfo_append_int32 cbnz x0, LBB0_13 ; %bb.3: ldr w1, [x20, #52] mov x0, x19 bl _network_mysqld_masterinfo_append_string cbnz x0, LBB0_13 ; %bb.4: ldr w1, [x20, #48] mov x0, x19 bl _network_mysqld_masterinfo_append_string cbnz x0, LBB0_13 ; %bb.5: ldr w1, [x20, #44] mov x0, x19 bl _network_mysqld_masterinfo_append_string cbnz x0, LBB0_13 ; %bb.6: ldr w1, [x20, #8] mov x0, x19 bl _network_mysqld_masterinfo_append_int32 cbnz x0, LBB0_13 ; %bb.7: ldr w1, [x20, #12] mov x0, x19 bl _network_mysqld_masterinfo_append_int32 cbnz x0, LBB0_13 ; %bb.8: ldr w1, [x20, #16] mov x0, x19 bl _network_mysqld_masterinfo_append_int32 cbnz x0, LBB0_13 ; %bb.9: ldr w1, [x20, #40] mov x0, x19 bl _network_mysqld_masterinfo_append_string cbnz x0, LBB0_13 ; %bb.10: ldr w1, [x20, #36] mov x0, x19 bl _network_mysqld_masterinfo_append_string cbnz x0, LBB0_13 ; %bb.11: ldr w1, [x20, #32] mov x0, x19 bl _network_mysqld_masterinfo_append_string cbnz x0, LBB0_13 ; %bb.12: ldr w1, [x20, #28] mov x0, x19 bl _network_mysqld_masterinfo_append_string cbz x0, LBB0_15 LBB0_13: mov w8, #1 LBB0_14: sbfx w0, w8, #0, #1 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_15: ldr w1, [x20, #24] mov x0, x19 bl _network_mysqld_masterinfo_append_string ldr w9, [x20] cmp w9, #14 ccmp x0, #0, #0, le cset w8, ne cmp w9, #15 b.lt LBB0_14 ; %bb.16: cbnz x0, LBB0_14 ; %bb.17: ldr w1, [x20, #20] mov x0, x19 bl _network_mysqld_masterinfo_append_int32 cmp x0, #0 cset w8, ne b LBB0_14 .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-masterinfo.c_network_mysqld_masterinfo_append.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function network_mysqld_masterinfo_append_string _network_mysqld_masterinfo_append_string: ## @network_mysqld_masterinfo_append_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 %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movq %rsi, %rdi callq _S movq %rbx, %rdi movl %eax, %esi callq _g_string_append_len movq %rbx, %rdi movl $10, %esi callq _g_string_append_c xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _network_mysqld_masterinfo_append_string .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function network_mysqld_masterinfo_append_string _network_mysqld_masterinfo_append_string: ; @network_mysqld_masterinfo_append_string .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 x0, x1 bl _S mov x1, x0 mov x0, x19 bl _g_string_append_len mov x0, x19 mov w1, #10 bl _g_string_append_c 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 _network_mysqld_masterinfo_append_string .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-masterinfo.c_network_mysqld_masterinfo_append_string.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_masterinfo_free ## -- Begin function network_mysqld_masterinfo_free .p2align 4, 0x90 _network_mysqld_masterinfo_free: ## @network_mysqld_masterinfo_free .cfi_startproc ## %bb.0: testq %rdi, %rdi je LBB0_1 ## %bb.2: 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 32(%rdi), %edi movq _TRUE@GOTPCREL(%rip), %r14 movl (%r14), %esi callq _g_string_free movl 28(%rbx), %edi movl (%r14), %esi callq _g_string_free movl 24(%rbx), %edi movl (%r14), %esi callq _g_string_free movl 20(%rbx), %edi movl (%r14), %esi callq _g_string_free movl 16(%rbx), %edi movl (%r14), %esi callq _g_string_free movl 12(%rbx), %edi movl (%r14), %esi callq _g_string_free movl 8(%rbx), %edi movl (%r14), %esi callq _g_string_free movl 4(%rbx), %edi movl (%r14), %esi callq _g_string_free movl (%rbx), %edi movl (%r14), %esi callq _g_string_free movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp _g_free ## TAILCALL LBB0_1: retq .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_masterinfo_free ; -- Begin function network_mysqld_masterinfo_free .p2align 2 _network_mysqld_masterinfo_free: ; @network_mysqld_masterinfo_free .cfi_startproc ; %bb.0: cbz x0, LBB0_2 ; %bb.1: 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, #32] Lloh0: adrp x20, _TRUE@GOTPAGE Lloh1: ldr x20, [x20, _TRUE@GOTPAGEOFF] ldr w1, [x20] bl _g_string_free ldr w0, [x19, #28] ldr w1, [x20] bl _g_string_free ldr w0, [x19, #24] ldr w1, [x20] bl _g_string_free ldr w0, [x19, #20] ldr w1, [x20] bl _g_string_free ldr w0, [x19, #16] ldr w1, [x20] bl _g_string_free ldr w0, [x19, #12] ldr w1, [x20] bl _g_string_free ldr w0, [x19, #8] ldr w1, [x20] bl _g_string_free ldr w0, [x19, #4] ldr w1, [x20] bl _g_string_free ldr w0, [x19] ldr w1, [x20] bl _g_string_free mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _g_free LBB0_2: .cfi_def_cfa wsp, 0 .cfi_same_value w30 .cfi_same_value w29 .cfi_same_value w19 .cfi_same_value w20 ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-masterinfo.c_network_mysqld_masterinfo_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_masterinfo_get ## -- Begin function network_mysqld_masterinfo_get .p2align 4, 0x90 _network_mysqld_masterinfo_get: ## @network_mysqld_masterinfo_get .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 %rsi, %rdi movl $-1, %esi callq _g_return_val_if_fail movq %rbx, %rdi movl $-1, %esi callq _g_return_val_if_fail movq %rbx, %rdi movq %r14, %rsi callq _network_mysqld_masterinfo_get_int32 movb $1, %r15b testq %rax, %rax jne LBB0_16 ## %bb.1: movl 56(%r14), %esi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_string testq %rax, %rax jne LBB0_16 ## %bb.2: leaq 4(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_int32 testq %rax, %rax jne LBB0_16 ## %bb.3: movl 52(%r14), %esi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_string testq %rax, %rax jne LBB0_16 ## %bb.4: movl 48(%r14), %esi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_string testq %rax, %rax jne LBB0_16 ## %bb.5: movl 44(%r14), %esi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_string testq %rax, %rax jne LBB0_16 ## %bb.6: leaq 8(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_int32 testq %rax, %rax jne LBB0_16 ## %bb.7: leaq 12(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_int32 testq %rax, %rax jne LBB0_16 ## %bb.8: leaq 16(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_int32 testq %rax, %rax jne LBB0_16 ## %bb.9: movl 40(%r14), %esi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_string testq %rax, %rax jne LBB0_16 ## %bb.10: movl 36(%r14), %esi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_string testq %rax, %rax jne LBB0_16 ## %bb.11: movl 32(%r14), %esi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_string testq %rax, %rax jne LBB0_16 ## %bb.12: movl 28(%r14), %esi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_string testq %rax, %rax jne LBB0_16 ## %bb.13: movl 24(%r14), %esi movq %rbx, %rdi callq _network_mysqld_masterinfo_get_string testq %rax, %rax setne %cl movl (%r14), %edx cmpl $15, %edx setge %r15b orb %cl, %r15b cmpl $15, %edx jl LBB0_16 ## %bb.14: testq %rax, %rax jne LBB0_16 ## %bb.15: addq $20, %r14 movq %rbx, %rdi movq %r14, %rsi callq _network_mysqld_masterinfo_get_int32 testq %rax, %rax setne %r15b LBB0_16: movzbl %r15b, %eax negl %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_masterinfo_get ; -- Begin function network_mysqld_masterinfo_get .p2align 2 _network_mysqld_masterinfo_get: ; @network_mysqld_masterinfo_get .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, x1 mov x19, x0 mov x0, x1 mov w1, #-1 bl _g_return_val_if_fail mov x0, x19 mov w1, #-1 bl _g_return_val_if_fail mov x0, x19 mov x1, x20 bl _network_mysqld_masterinfo_get_int32 cbnz x0, LBB0_13 ; %bb.1: ldr w1, [x20, #56] mov x0, x19 bl _network_mysqld_masterinfo_get_string cbnz x0, LBB0_13 ; %bb.2: add x1, x20, #4 mov x0, x19 bl _network_mysqld_masterinfo_get_int32 cbnz x0, LBB0_13 ; %bb.3: ldr w1, [x20, #52] mov x0, x19 bl _network_mysqld_masterinfo_get_string cbnz x0, LBB0_13 ; %bb.4: ldr w1, [x20, #48] mov x0, x19 bl _network_mysqld_masterinfo_get_string cbnz x0, LBB0_13 ; %bb.5: ldr w1, [x20, #44] mov x0, x19 bl _network_mysqld_masterinfo_get_string cbnz x0, LBB0_13 ; %bb.6: add x1, x20, #8 mov x0, x19 bl _network_mysqld_masterinfo_get_int32 cbnz x0, LBB0_13 ; %bb.7: add x1, x20, #12 mov x0, x19 bl _network_mysqld_masterinfo_get_int32 cbnz x0, LBB0_13 ; %bb.8: add x1, x20, #16 mov x0, x19 bl _network_mysqld_masterinfo_get_int32 cbnz x0, LBB0_13 ; %bb.9: ldr w1, [x20, #40] mov x0, x19 bl _network_mysqld_masterinfo_get_string cbnz x0, LBB0_13 ; %bb.10: ldr w1, [x20, #36] mov x0, x19 bl _network_mysqld_masterinfo_get_string cbnz x0, LBB0_13 ; %bb.11: ldr w1, [x20, #32] mov x0, x19 bl _network_mysqld_masterinfo_get_string cbnz x0, LBB0_13 ; %bb.12: ldr w1, [x20, #28] mov x0, x19 bl _network_mysqld_masterinfo_get_string cbz x0, LBB0_15 LBB0_13: mov w8, #1 LBB0_14: sbfx w0, w8, #0, #1 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_15: ldr w1, [x20, #24] mov x0, x19 bl _network_mysqld_masterinfo_get_string ldr w9, [x20] cmp w9, #14 ccmp x0, #0, #0, le cset w8, ne cmp w9, #15 b.lt LBB0_14 ; %bb.16: cbnz x0, LBB0_14 ; %bb.17: add x1, x20, #20 mov x0, x19 bl _network_mysqld_masterinfo_get_int32 cmp x0, #0 cset w8, ne b LBB0_14 .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-masterinfo.c_network_mysqld_masterinfo_get.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function network_mysqld_masterinfo_get_int32 _network_mysqld_masterinfo_get_int32: ## @network_mysqld_masterinfo_get_int32 .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 xorl %edi, %edi callq _g_string_new movq %rax, %r15 movq %rbx, %rdi movq %rax, %rsi callq _network_mysqld_masterinfo_get_string movl $-1, %ebx testq %rax, %rax jne LBB0_4 ## %bb.1: movl (%r15), %edi leaq -32(%rbp), %rsi xorl %ebx, %ebx xorl %edx, %edx callq _strtoul movq -32(%rbp), %rcx movb (%rcx), %cl testb %cl, %cl jne LBB0_3 ## %bb.2: movl %eax, (%r14) LBB0_3: negb %cl sbbl %ebx, %ebx LBB0_4: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r15, %rdi callq _g_string_free movl %ebx, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .no_dead_strip _network_mysqld_masterinfo_get_int32 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function network_mysqld_masterinfo_get_int32 _network_mysqld_masterinfo_get_int32: ; @network_mysqld_masterinfo_get_int32 .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 x20, x1 mov x21, x0 mov x0, #0 bl _g_string_new mov x19, x0 mov x0, x21 mov x1, x19 bl _network_mysqld_masterinfo_get_string cbz x0, LBB0_2 ; %bb.1: mov w20, #-1 b LBB0_5 LBB0_2: ldr w0, [x19] add x1, sp, #8 mov w2, #0 bl _strtoul ldr x8, [sp, #8] ldrb w8, [x8] cbnz w8, LBB0_4 ; %bb.3: str w0, [x20] LBB0_4: cmp w8, #0 csetm w20, ne LBB0_5: Lloh0: adrp x8, _TRUE@GOTPAGE Lloh1: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov x0, x19 bl _g_string_free 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 add sp, sp, #64 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .no_dead_strip _network_mysqld_masterinfo_get_int32 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-masterinfo.c_network_mysqld_masterinfo_get_int32.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function network_mysqld_masterinfo_get_string _network_mysqld_masterinfo_get_string: ## @network_mysqld_masterinfo_get_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 %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r14 movq %rdi, %r12 movl $-1, %r15d movl $-1, %esi callq _g_return_val_if_fail movq %r14, %rdi movl $-1, %esi callq _g_return_val_if_fail movq (%r12), %rax movq 8(%r12), %rdx movq (%rdx), %rcx movq 8(%rdx), %rsi movq %rax, %rbx cmpq %rcx, %rax jae LBB0_5 ## %bb.1: movq %rax, %rbx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 cmpb $10, (%rsi,%rbx) je LBB0_5 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 incq %rbx cmpq %rbx, %rcx jne LBB0_2 ## %bb.4: movq %rcx, %rbx LBB0_5: cmpb $10, (%rsi,%rbx) jne LBB0_7 ## %bb.6: addq %rax, %rsi movq %rbx, %rdx subq %rax, %rdx movq %r14, %rdi callq _g_string_assign_len incq %rbx movq %rbx, (%r12) xorl %r15d, %r15d LBB0_7: movl %r15d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _network_mysqld_masterinfo_get_string .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function network_mysqld_masterinfo_get_string _network_mysqld_masterinfo_get_string: ; @network_mysqld_masterinfo_get_string .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 mov w1, #-1 bl _g_return_val_if_fail mov x0, x20 mov w1, #-1 bl _g_return_val_if_fail ldp x8, x9, [x19] ldp x10, x9, [x9] mov x21, x8 cmp x8, x10 b.hs LBB0_4 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrb w11, [x9, x21] cmp w11, #10 b.eq LBB0_4 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 add x21, x21, #1 cmp x10, x21 b.ne LBB0_1 ; %bb.3: mov x21, x10 LBB0_4: ldrb w10, [x9, x21] cmp w10, #10 b.ne LBB0_6 ; %bb.5: add x1, x9, x8 sub x2, x21, x8 mov x0, x20 bl _g_string_assign_len mov w0, #0 add x8, x21, #1 str x8, [x19] b LBB0_7 LBB0_6: mov w0, #-1 LBB0_7: 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 _network_mysqld_masterinfo_get_string .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-masterinfo.c_network_mysqld_masterinfo_get_string.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_auth_challenge_free ## -- Begin function network_mysqld_auth_challenge_free .p2align 4, 0x90 _network_mysqld_auth_challenge_free: ## @network_mysqld_auth_challenge_free .cfi_startproc ## %bb.0: testq %rdi, %rdi je LBB0_6 ## %bb.1: 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 8(%rdi), %rdi testq %rdi, %rdi je LBB0_3 ## %bb.2: callq _g_free LBB0_3: movq (%rbx), %rdi testq %rdi, %rdi je LBB0_5 ## %bb.4: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _g_string_free LBB0_5: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _g_free ## TAILCALL LBB0_6: retq .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_auth_challenge_free ; -- Begin function network_mysqld_auth_challenge_free .p2align 2 _network_mysqld_auth_challenge_free: ; @network_mysqld_auth_challenge_free .cfi_startproc ; %bb.0: cbz x0, LBB0_6 ; %bb.1: 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 x0, [x0, #8] cbz x0, LBB0_3 ; %bb.2: bl _g_free LBB0_3: ldr x0, [x19] cbz x0, LBB0_5 ; %bb.4: Lloh0: adrp x8, _TRUE@GOTPAGE Lloh1: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh2: ldr w1, [x8] bl _g_string_free LBB0_5: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _g_free LBB0_6: .cfi_def_cfa wsp, 0 .cfi_same_value w30 .cfi_same_value w29 .cfi_same_value w19 .cfi_same_value w20 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_auth_challenge_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function network_mysqld_auth_challenge_set_challenge LCPI0_0: .quad 0x3ff0000000000000 ## double 1 LCPI0_1: .quad 0x4057800000000000 ## double 94 LCPI0_2: .quad 0x4040800000000000 ## double 33 .section __TEXT,__text,regular,pure_instructions .globl _network_mysqld_auth_challenge_set_challenge .p2align 4, 0x90 _network_mysqld_auth_challenge_set_challenge: ## @network_mysqld_auth_challenge_set_challenge .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 movq (%rdi), %rdi movl $21, %esi callq _g_string_set_size movq _RAND_MAX@GOTPCREL(%rip), %r14 xorl %ebx, %ebx .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _rand movsd (%r14), %xmm1 ## xmm1 = mem[0],zero addsd LCPI0_0(%rip), %xmm1 divsd %xmm1, %xmm0 mulsd LCPI0_1(%rip), %xmm0 addsd LCPI0_2(%rip), %xmm0 movq (%r15), %rax movq (%rax), %rcx movsd %xmm0, (%rcx,%rbx,8) incq %rbx cmpq $20, %rbx jne LBB0_1 ## %bb.2: movl $20, 8(%rax) movq $0, 160(%rcx) addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _RAND_MAX,8,3 ## @RAND_MAX .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_auth_challenge_set_challenge ; -- Begin function network_mysqld_auth_challenge_set_challenge .p2align 2 _network_mysqld_auth_challenge_set_challenge: ; @network_mysqld_auth_challenge_set_challenge .cfi_startproc ; %bb.0: stp d9, d8, [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 b8, -72 .cfi_offset b9, -80 mov x19, x0 ldr x0, [x0] mov w1, #21 bl _g_string_set_size mov x20, #0 Lloh0: adrp x21, _RAND_MAX@GOTPAGE Lloh1: ldr x21, [x21, _RAND_MAX@GOTPAGEOFF] fmov d8, #1.00000000 mov x22, #140737488355328 movk x22, #16448, lsl #48 mov x23, #140737488355328 movk x23, #16471, lsl #48 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _rand ldr d1, [x21] fadd d1, d1, d8 fdiv d0, d0, d1 fmov d1, x22 fmov d2, x23 fmadd d0, d0, d2, d1 ldr x9, [x19] ldr x8, [x9] str d0, [x8, x20] add x20, x20, #8 cmp x20, #160 b.ne LBB0_1 ; %bb.2: mov w10, #20 str w10, [x9, #8] str xzr, [x8, #160] 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 d9, d8, [sp], #80 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _RAND_MAX,8,3 ; @RAND_MAX .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_auth_challenge_set_challenge.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_auth_response_copy ## -- Begin function network_mysqld_auth_response_copy .p2align 4, 0x90 _network_mysqld_auth_response_copy: ## @network_mysqld_auth_response_copy .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 testq %rdi, %rdi je LBB0_1 ## %bb.2: movq %rdi, %rbx xorl %eax, %eax callq _network_mysqld_auth_response_new movq %rax, %r14 movl 20(%rbx), %eax movl %eax, 20(%r14) movl 16(%rbx), %eax movl %eax, 16(%r14) movl 12(%rbx), %eax movl %eax, 12(%r14) movl 8(%r14), %r15d movl 8(%rbx), %edi callq _S movl %r15d, %edi movl %eax, %esi callq _g_string_assign_len movl 4(%r14), %r15d movl 4(%rbx), %edi callq _S movl %r15d, %edi movl %eax, %esi callq _g_string_assign_len movl (%r14), %r15d movl (%rbx), %edi callq _S movl %r15d, %edi movl %eax, %esi callq _g_string_assign_len jmp LBB0_3 LBB0_1: xorl %r14d, %r14d LBB0_3: movq %r14, %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_auth_response_copy ; -- Begin function network_mysqld_auth_response_copy .p2align 2 _network_mysqld_auth_response_copy: ; @network_mysqld_auth_response_copy .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 cbz x0, LBB0_2 ; %bb.1: mov x20, x0 bl _network_mysqld_auth_response_new mov x19, x0 ldr w8, [x20, #20] str w8, [x0, #20] ldur d0, [x20, #12] stur d0, [x0, #12] ldr w21, [x0, #8] ldr w0, [x20, #8] bl _S mov x1, x0 mov x0, x21 bl _g_string_assign_len ldr w21, [x19, #4] ldr w0, [x20, #4] bl _S mov x1, x0 mov x0, x21 bl _g_string_assign_len ldr w21, [x19] ldr w0, [x20] bl _S mov x1, x0 mov x0, x21 bl _g_string_assign_len b LBB0_3 LBB0_2: mov x19, #0 LBB0_3: 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 ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_auth_response_copy.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_auth_response_free ## -- Begin function network_mysqld_auth_response_free .p2align 4, 0x90 _network_mysqld_auth_response_free: ## @network_mysqld_auth_response_free .cfi_startproc ## %bb.0: testq %rdi, %rdi je LBB0_8 ## %bb.1: 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 16(%rdi), %rdi testq %rdi, %rdi je LBB0_3 ## %bb.2: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _g_string_free LBB0_3: movq 8(%rbx), %rdi testq %rdi, %rdi je LBB0_5 ## %bb.4: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _g_string_free LBB0_5: movq (%rbx), %rdi testq %rdi, %rdi je LBB0_7 ## %bb.6: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _g_string_free LBB0_7: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _g_free ## TAILCALL LBB0_8: retq .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_auth_response_free ; -- Begin function network_mysqld_auth_response_free .p2align 2 _network_mysqld_auth_response_free: ; @network_mysqld_auth_response_free .cfi_startproc ; %bb.0: cbz x0, LBB0_8 ; %bb.1: 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 x0, [x0, #16] Lloh0: adrp x20, _TRUE@GOTPAGE Lloh1: ldr x20, [x20, _TRUE@GOTPAGEOFF] cbz x0, LBB0_3 ; %bb.2: ldr w1, [x20] bl _g_string_free LBB0_3: ldr x0, [x19, #8] cbz x0, LBB0_5 ; %bb.4: ldr w1, [x20] bl _g_string_free LBB0_5: ldr x0, [x19] cbz x0, LBB0_7 ; %bb.6: ldr w1, [x20] bl _g_string_free LBB0_7: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _g_free LBB0_8: .cfi_def_cfa wsp, 0 .cfi_same_value w30 .cfi_same_value w29 .cfi_same_value w19 .cfi_same_value w20 ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_auth_response_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_init_db_result_free ## -- Begin function network_mysqld_com_init_db_result_free .p2align 4, 0x90 _network_mysqld_com_init_db_result_free: ## @network_mysqld_com_init_db_result_free .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 (%rdi), %rdi testq %rdi, %rdi je LBB0_2 ## %bb.1: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _g_string_free LBB0_2: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _g_free ## TAILCALL .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_init_db_result_free ; -- Begin function network_mysqld_com_init_db_result_free .p2align 2 _network_mysqld_com_init_db_result_free: ; @network_mysqld_com_init_db_result_free .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 x0, [x0] cbz x0, LBB0_2 ; %bb.1: Lloh0: adrp x8, _TRUE@GOTPAGE Lloh1: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh2: ldr w1, [x8] bl _g_string_free LBB0_2: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _g_free .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_com_init_db_result_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_init_db_result_track_state ## -- Begin function network_mysqld_com_init_db_result_track_state .p2align 4, 0x90 _network_mysqld_com_init_db_result_track_state: ## @network_mysqld_com_init_db_result_track_state .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 movq %rdi, %rbx callq _network_mysqld_proto_skip_network_header movq %rbx, %rdi movl $1, %esi callq _network_mysqld_proto_skip movq (%rbx), %rax movq 8(%rbx), %rcx cmpq (%rcx), %rax jne LBB0_1 ## %bb.2: movq (%r14), %rdi testq %rdi, %rdi je LBB0_4 ## %bb.3: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _g_string_free LBB0_4: movq $0, (%r14) jmp LBB0_5 LBB0_1: xorl %edi, %edi callq _g_string_new movq %rax, (%r14) movq 8(%rbx), %rcx movq (%rcx), %rsi subq (%rbx), %rsi movq %rbx, %rdi movq %rax, %rdx callq _network_mysqld_proto_get_gstring_len LBB0_5: xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_init_db_result_track_state ; -- Begin function network_mysqld_com_init_db_result_track_state .p2align 2 _network_mysqld_com_init_db_result_track_state: ; @network_mysqld_com_init_db_result_track_state .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 _network_mysqld_proto_skip_network_header mov x0, x20 mov w1, #1 bl _network_mysqld_proto_skip ldp x8, x9, [x20] ldr x9, [x9] cmp x8, x9 b.ne LBB0_4 ; %bb.1: ldr x0, [x19] cbz x0, LBB0_3 ; %bb.2: Lloh0: adrp x8, _TRUE@GOTPAGE Lloh1: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh2: ldr w1, [x8] bl _g_string_free LBB0_3: str xzr, [x19] b LBB0_5 LBB0_4: mov x0, #0 bl _g_string_new mov x2, x0 str x0, [x19] ldp x9, x8, [x20] ldr x8, [x8] sub x1, x8, x9 mov x0, x20 bl _network_mysqld_proto_get_gstring_len LBB0_5: mov w0, #0 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 _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_com_init_db_result_track_state.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_query_result_free ## -- Begin function network_mysqld_com_query_result_free .p2align 4, 0x90 _network_mysqld_com_query_result_free: ## @network_mysqld_com_query_result_free .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp testq %rdi, %rdi je LBB0_1 ## %bb.2: popq %rbp jmp _g_free ## TAILCALL LBB0_1: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_query_result_free ; -- Begin function network_mysqld_com_query_result_free .p2align 2 _network_mysqld_com_query_result_free: ; @network_mysqld_com_query_result_free .cfi_startproc ; %bb.0: cbz x0, LBB0_2 ; %bb.1: b _g_free LBB0_2: ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_com_query_result_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_query_result_is_load_data ## -- Begin function network_mysqld_com_query_result_is_load_data .p2align 4, 0x90 _network_mysqld_com_query_result_is_load_data: ## @network_mysqld_com_query_result_is_load_data .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _network_mysqld_com_query_result_is_local_infile ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_query_result_is_load_data ; -- Begin function network_mysqld_com_query_result_is_load_data .p2align 2 _network_mysqld_com_query_result_is_load_data: ; @network_mysqld_com_query_result_is_load_data .cfi_startproc ; %bb.0: b _network_mysqld_com_query_result_is_local_infile .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_com_query_result_is_load_data.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_query_result_is_local_infile ## -- Begin function network_mysqld_com_query_result_is_local_infile .p2align 4, 0x90 _network_mysqld_com_query_result_is_local_infile: ## @network_mysqld_com_query_result_is_local_infile .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax movq _PARSE_COM_QUERY_LOCAL_INFILE_DATA@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_1 ## %bb.2: movq _TRUE@GOTPCREL(%rip), %rax jmp LBB0_3 LBB0_1: movq _FALSE@GOTPCREL(%rip), %rax LBB0_3: movl (%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .comm _PARSE_COM_QUERY_LOCAL_INFILE_DATA,8,3 ## @PARSE_COM_QUERY_LOCAL_INFILE_DATA .comm _TRUE,4,2 ## @TRUE .comm _FALSE,4,2 ## @FALSE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_query_result_is_local_infile ; -- Begin function network_mysqld_com_query_result_is_local_infile .p2align 2 _network_mysqld_com_query_result_is_local_infile: ; @network_mysqld_com_query_result_is_local_infile .cfi_startproc ; %bb.0: ldr x8, [x0] Lloh0: adrp x9, _PARSE_COM_QUERY_LOCAL_INFILE_DATA@GOTPAGE Lloh1: ldr x9, [x9, _PARSE_COM_QUERY_LOCAL_INFILE_DATA@GOTPAGEOFF] Lloh2: ldr x9, [x9] Lloh3: adrp x10, _TRUE@GOTPAGE Lloh4: ldr x10, [x10, _TRUE@GOTPAGEOFF] Lloh5: adrp x11, _FALSE@GOTPAGE Lloh6: ldr x11, [x11, _FALSE@GOTPAGEOFF] cmp x8, x9 csel x8, x10, x11, eq ldr w0, [x8] ret .loh AdrpLdrGot Lloh5, Lloh6 .loh AdrpLdrGot Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _PARSE_COM_QUERY_LOCAL_INFILE_DATA,8,3 ; @PARSE_COM_QUERY_LOCAL_INFILE_DATA .comm _TRUE,4,2 ; @TRUE .comm _FALSE,4,2 ; @FALSE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_com_query_result_is_local_infile.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_stmt_prepare_result_free ## -- Begin function network_mysqld_com_stmt_prepare_result_free .p2align 4, 0x90 _network_mysqld_com_stmt_prepare_result_free: ## @network_mysqld_com_stmt_prepare_result_free .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp testq %rdi, %rdi je LBB0_1 ## %bb.2: popq %rbp jmp _g_free ## TAILCALL LBB0_1: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_com_stmt_prepare_result_free ; -- Begin function network_mysqld_com_stmt_prepare_result_free .p2align 2 _network_mysqld_com_stmt_prepare_result_free: ; @network_mysqld_com_stmt_prepare_result_free .cfi_startproc ; %bb.0: cbz x0, LBB0_2 ; %bb.1: b _g_free LBB0_2: ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_com_stmt_prepare_result_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_command_states_init ## -- Begin function network_mysqld_con_command_states_init .p2align 4, 0x90 _network_mysqld_con_command_states_init: ## @network_mysqld_con_command_states_init .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, %rbx movq %rdi, %r14 movq %rsi, %rdi callq _network_mysqld_proto_skip_network_header movl $-1, %r15d testq %rax, %rax jne LBB0_9 ## %bb.1: leaq -28(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax jne LBB0_9 ## %bb.2: movl -28(%rbp), %eax movl %eax, 24(%r14) movq $0, (%rbx) xorl %r15d, %r15d addl $-128, %eax cmpl $5, %eax ja LBB0_9 ## %bb.3: leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_4: xorl %r15d, %r15d xorl %eax, %eax callq _network_mysqld_com_query_result_new movl %eax, 8(%r14) movq _network_mysqld_com_query_result_free@GOTPCREL(%rip), %rax jmp LBB0_5 LBB0_6: xorl %r15d, %r15d xorl %eax, %eax callq _network_mysqld_com_stmt_prepare_result_new movl %eax, 8(%r14) movq _network_mysqld_com_stmt_prepare_result_free@GOTPCREL(%rip), %rax LBB0_5: movslq (%rax), %rax movq %rax, 16(%r14) jmp LBB0_9 LBB0_8: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, (%r14) jmp LBB0_9 LBB0_7: xorl %r15d, %r15d xorl %eax, %eax callq _network_mysqld_com_init_db_result_new movl %eax, 8(%r14) movq _network_mysqld_com_init_db_result_free@GOTPCREL(%rip), %rcx movslq (%rcx), %rcx movq %rcx, 16(%r14) movq %rbx, %rdi movl %eax, %esi callq _network_mysqld_com_init_db_result_track_state LBB0_9: movl %r15d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 LJTI0_0: .long L0_0_set_6 .long L0_0_set_4 .long L0_0_set_8 .long L0_0_set_4 .long L0_0_set_4 .long L0_0_set_7 .end_data_region ## -- End function .comm _network_mysqld_com_query_result_free,4,2 ## @network_mysqld_com_query_result_free .comm _network_mysqld_com_stmt_prepare_result_free,4,2 ## @network_mysqld_com_stmt_prepare_result_free .comm _network_mysqld_com_init_db_result_free,4,2 ## @network_mysqld_com_init_db_result_free .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_command_states_init ; -- Begin function network_mysqld_con_command_states_init .p2align 2 _network_mysqld_con_command_states_init: ; @network_mysqld_con_command_states_init .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 x20, x1 mov x19, x0 mov x0, x1 bl _network_mysqld_proto_skip_network_header cbnz x0, LBB0_2 ; %bb.1: add x1, sp, #12 mov x0, x20 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_4 LBB0_2: mov w0, #-1 LBB0_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 ret LBB0_4: ldr w8, [sp, #12] str w8, [x19, #24] str xzr, [x20] sub w8, w8, #128 cmp w8, #5 b.hi LBB0_11 ; %bb.5: Lloh0: adrp x9, lJTI0_0@PAGE Lloh1: add x9, x9, lJTI0_0@PAGEOFF adr x10, LBB0_6 ldrb w11, [x9, x8] add x10, x10, x11, lsl #2 br x10 LBB0_6: bl _network_mysqld_com_query_result_new mov x8, x0 mov w0, #0 str w8, [x19, #8] Lloh2: adrp x8, _network_mysqld_com_query_result_free@GOTPAGE Lloh3: ldr x8, [x8, _network_mysqld_com_query_result_free@GOTPAGEOFF] b LBB0_8 LBB0_7: bl _network_mysqld_com_stmt_prepare_result_new mov x8, x0 mov w0, #0 str w8, [x19, #8] Lloh4: adrp x8, _network_mysqld_com_stmt_prepare_result_free@GOTPAGE Lloh5: ldr x8, [x8, _network_mysqld_com_stmt_prepare_result_free@GOTPAGEOFF] LBB0_8: ldrsw x8, [x8] str x8, [x19, #16] b LBB0_3 LBB0_9: mov w0, #0 Lloh6: adrp x8, _TRUE@GOTPAGE Lloh7: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh8: ldr w8, [x8] str w8, [x19] b LBB0_3 LBB0_10: bl _network_mysqld_com_init_db_result_new mov x1, x0 str w0, [x19, #8] Lloh9: adrp x8, _network_mysqld_com_init_db_result_free@GOTPAGE Lloh10: ldr x8, [x8, _network_mysqld_com_init_db_result_free@GOTPAGEOFF] Lloh11: ldrsw x8, [x8] str x8, [x19, #16] mov x0, x20 bl _network_mysqld_com_init_db_result_track_state LBB0_11: mov w0, #0 b LBB0_3 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_7-LBB0_6)>>2 .byte (LBB0_6-LBB0_6)>>2 .byte (LBB0_9-LBB0_6)>>2 .byte (LBB0_6-LBB0_6)>>2 .byte (LBB0_6-LBB0_6)>>2 .byte (LBB0_10-LBB0_6)>>2 ; -- End function .comm _network_mysqld_com_query_result_free,4,2 ; @network_mysqld_com_query_result_free .comm _network_mysqld_com_stmt_prepare_result_free,4,2 ; @network_mysqld_com_stmt_prepare_result_free .comm _network_mysqld_com_init_db_result_free,4,2 ; @network_mysqld_com_init_db_result_free .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_con_command_states_init.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_eof_packet_free ## -- Begin function network_mysqld_eof_packet_free .p2align 4, 0x90 _network_mysqld_eof_packet_free: ## @network_mysqld_eof_packet_free .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp testq %rdi, %rdi je LBB0_1 ## %bb.2: popq %rbp jmp _g_free ## TAILCALL LBB0_1: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_eof_packet_free ; -- Begin function network_mysqld_eof_packet_free .p2align 2 _network_mysqld_eof_packet_free: ; @network_mysqld_eof_packet_free .cfi_startproc ; %bb.0: cbz x0, LBB0_2 ; %bb.1: b _g_free LBB0_2: ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_eof_packet_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_err_packet_free ## -- Begin function network_mysqld_err_packet_free .p2align 4, 0x90 _network_mysqld_err_packet_free: ## @network_mysqld_err_packet_free .cfi_startproc ## %bb.0: testq %rdi, %rdi je LBB0_1 ## %bb.2: 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 4(%rdi), %edi movq _TRUE@GOTPCREL(%rip), %r14 movl (%r14), %esi callq _g_string_free movl (%rbx), %edi movl (%r14), %esi callq _g_string_free movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp _g_free ## TAILCALL LBB0_1: retq .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_err_packet_free ; -- Begin function network_mysqld_err_packet_free .p2align 2 _network_mysqld_err_packet_free: ; @network_mysqld_err_packet_free .cfi_startproc ; %bb.0: cbz x0, LBB0_2 ; %bb.1: 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, #4] Lloh0: adrp x20, _TRUE@GOTPAGE Lloh1: ldr x20, [x20, _TRUE@GOTPAGEOFF] ldr w1, [x20] bl _g_string_free ldr w0, [x19] ldr w1, [x20] bl _g_string_free mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _g_free LBB0_2: .cfi_def_cfa wsp, 0 .cfi_same_value w30 .cfi_same_value w29 .cfi_same_value w19 .cfi_same_value w20 ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_err_packet_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_err_packet_new ## -- Begin function network_mysqld_err_packet_new .p2align 4, 0x90 _network_mysqld_err_packet_new: ## @network_mysqld_err_packet_new .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _NETWORK_MYSQLD_PROTOCOL_VERSION_41@GOTPCREL(%rip), %rax movl (%rax), %edi popq %rbp jmp _network_mysqld_err_packet_new_full ## TAILCALL .cfi_endproc ## -- End function .comm _NETWORK_MYSQLD_PROTOCOL_VERSION_41,4,2 ## @NETWORK_MYSQLD_PROTOCOL_VERSION_41 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_err_packet_new ; -- Begin function network_mysqld_err_packet_new .p2align 2 _network_mysqld_err_packet_new: ; @network_mysqld_err_packet_new .cfi_startproc ; %bb.0: Lloh0: adrp x8, _NETWORK_MYSQLD_PROTOCOL_VERSION_41@GOTPAGE Lloh1: ldr x8, [x8, _NETWORK_MYSQLD_PROTOCOL_VERSION_41@GOTPAGEOFF] Lloh2: ldr w0, [x8] b _network_mysqld_err_packet_new_full .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _NETWORK_MYSQLD_PROTOCOL_VERSION_41,4,2 ; @NETWORK_MYSQLD_PROTOCOL_VERSION_41 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_err_packet_new.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_err_packet_new_pre41 ## -- Begin function network_mysqld_err_packet_new_pre41 .p2align 4, 0x90 _network_mysqld_err_packet_new_pre41: ## @network_mysqld_err_packet_new_pre41 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _NETWORK_MYSQLD_PROTOCOL_VERSION_PRE41@GOTPCREL(%rip), %rax movl (%rax), %edi popq %rbp jmp _network_mysqld_err_packet_new_full ## TAILCALL .cfi_endproc ## -- End function .comm _NETWORK_MYSQLD_PROTOCOL_VERSION_PRE41,4,2 ## @NETWORK_MYSQLD_PROTOCOL_VERSION_PRE41 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_err_packet_new_pre41 ; -- Begin function network_mysqld_err_packet_new_pre41 .p2align 2 _network_mysqld_err_packet_new_pre41: ; @network_mysqld_err_packet_new_pre41 .cfi_startproc ; %bb.0: Lloh0: adrp x8, _NETWORK_MYSQLD_PROTOCOL_VERSION_PRE41@GOTPAGE Lloh1: ldr x8, [x8, _NETWORK_MYSQLD_PROTOCOL_VERSION_PRE41@GOTPAGEOFF] Lloh2: ldr w0, [x8] b _network_mysqld_err_packet_new_full .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _NETWORK_MYSQLD_PROTOCOL_VERSION_PRE41,4,2 ; @NETWORK_MYSQLD_PROTOCOL_VERSION_PRE41 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_err_packet_new_pre41.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_ok_packet_free ## -- Begin function network_mysqld_ok_packet_free .p2align 4, 0x90 _network_mysqld_ok_packet_free: ## @network_mysqld_ok_packet_free .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp testq %rdi, %rdi je LBB0_1 ## %bb.2: popq %rbp jmp _g_free ## TAILCALL LBB0_1: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_ok_packet_free ; -- Begin function network_mysqld_ok_packet_free .p2align 2 _network_mysqld_ok_packet_free: ; @network_mysqld_ok_packet_free .cfi_startproc ; %bb.0: cbz x0, LBB0_2 ; %bb.1: b _g_free LBB0_2: ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_ok_packet_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_auth_challenge ## -- Begin function network_mysqld_proto_append_auth_challenge .p2align 4, 0x90 _network_mysqld_proto_append_auth_challenge: ## @network_mysqld_proto_append_auth_challenge .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 movq %rdi, %rbx movl $10, %esi callq _network_mysqld_proto_append_int8 movq 32(%r14), %rsi testq %rsi, %rsi je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _g_string_append jmp LBB0_5 LBB0_2: movl (%r14), %r8d leal -30001(%r8), %eax cmpl $69998, %eax ## imm = 0x1116E ja LBB0_4 ## %bb.3: movl %r8d, %eax movl $3518437209, %edx ## imm = 0xD1B71759 imulq %rax, %rdx shrq $45, %rdx imull $10000, %edx, %ecx ## imm = 0x2710 movl %r8d, %esi subl %ecx, %esi movzwl %si, %ecx shrl $2, %ecx imull $5243, %ecx, %ecx ## imm = 0x147B shrl $17, %ecx imulq $1374389535, %rax, %rax ## imm = 0x51EB851F shrq $37, %rax imull $100, %eax, %eax subl %eax, %r8d leaq L_.str(%rip), %rsi movq %rbx, %rdi ## kill: def $edx killed $edx killed $rdx ## kill: def $r8d killed $r8d killed $r8 callq _g_string_append_printf jmp LBB0_5 LBB0_4: leaq L_.str.1(%rip), %rdi callq _C movq %rbx, %rdi movl %eax, %esi xorl %eax, %eax callq _g_string_append_len LBB0_5: movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movl 24(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int32 movq 8(%r14), %rax cmpq $0, 8(%rax) je LBB0_7 ## %bb.6: movl (%rax), %esi movq %rbx, %rdi movl $8, %edx xorl %eax, %eax callq _g_string_append_len jmp LBB0_8 LBB0_7: leaq L_.str.2(%rip), %rdi callq _C movq %rbx, %rdi movl %eax, %esi xorl %eax, %eax callq _g_string_append_len LBB0_8: movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movl 20(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 movl 4(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int8 movl 16(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq 8(%r14), %rax cmpq $0, 8(%rax) je LBB0_10 ## %bb.9: movl (%rax), %esi addl $8, %esi movq %rbx, %rdi movl $12, %edx xorl %eax, %eax callq _g_string_append_len jmp LBB0_11 LBB0_10: leaq L_.str.3(%rip), %rdi callq _C movq %rbx, %rdi movl %eax, %esi xorl %eax, %eax callq _g_string_append_len LBB0_11: movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d.%02d.%02d" L_.str.1: ## @.str.1 .asciz "5.0.99" L_.str.2: ## @.str.2 .asciz "01234567" L_.str.3: ## @.str.3 .asciz "890123456789" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_auth_challenge ; -- Begin function network_mysqld_proto_append_auth_challenge .p2align 2 _network_mysqld_proto_append_auth_challenge: ; @network_mysqld_proto_append_auth_challenge .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 x20, x1 mov x19, x0 mov w1, #10 bl _network_mysqld_proto_append_int8 ldr x1, [x20, #32] cbz x1, LBB0_2 ; %bb.1: mov x0, x19 bl _g_string_append b LBB0_5 LBB0_2: ldr w8, [x20] mov w9, #-30001 mov w10, #4462 movk w10, #1, lsl #16 add w9, w8, w9 cmp w9, w10 b.hi LBB0_4 ; %bb.3: mov w9, #5977 movk w9, #53687, lsl #16 umull x9, w8, w9 lsr x2, x9, #45 mov w9, #10000 msub w9, w2, w9, w8 ubfx w9, w9, #2, #14 mov w10, #5243 mul w9, w9, w10 lsr w3, w9, #17 mov w9, #34079 movk w9, #20971, lsl #16 umull x9, w8, w9 lsr x9, x9, #37 mov w10, #100 msub w4, w9, w10, w8 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 ; kill: def $w2 killed $w2 killed $x2 bl _g_string_append_printf b LBB0_5 LBB0_4: Lloh2: adrp x0, l_.str.1@PAGE Lloh3: add x0, x0, l_.str.1@PAGEOFF bl _C mov x1, x0 mov x0, x19 bl _g_string_append_len LBB0_5: mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 ldr w1, [x20, #24] mov x0, x19 bl _network_mysqld_proto_append_int32 ldr x8, [x20, #8] ldr x9, [x8, #8] cbz x9, LBB0_7 ; %bb.6: ldr w1, [x8] mov w8, #8 str x8, [sp] b LBB0_8 LBB0_7: Lloh4: adrp x0, l_.str.2@PAGE Lloh5: add x0, x0, l_.str.2@PAGEOFF bl _C mov x1, x0 LBB0_8: mov x0, x19 bl _g_string_append_len mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 ldr w1, [x20, #20] mov x0, x19 bl _network_mysqld_proto_append_int16 ldr w1, [x20, #4] mov x0, x19 bl _network_mysqld_proto_append_int8 ldr w1, [x20, #16] mov x0, x19 bl _network_mysqld_proto_append_int16 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 ldr x8, [x20, #8] ldr x9, [x8, #8] cbz x9, LBB0_10 ; %bb.9: ldr w8, [x8] add w1, w8, #8 mov w8, #12 str x8, [sp] b LBB0_11 LBB0_10: Lloh6: adrp x0, l_.str.3@PAGE Lloh7: add x0, x0, l_.str.3@PAGEOFF bl _C mov x1, x0 LBB0_11: mov x0, x19 bl _g_string_append_len mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov w0, #0 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 Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d.%02d.%02d" l_.str.1: ; @.str.1 .asciz "5.0.99" l_.str.2: ; @.str.2 .asciz "01234567" l_.str.3: ; @.str.3 .asciz "890123456789" .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_append_auth_challenge.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_auth_response ## -- Begin function network_mysqld_proto_append_auth_response .p2align 4, 0x90 _network_mysqld_proto_append_auth_response: ## @network_mysqld_proto_append_auth_response .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 movq %rdi, %rbx movl (%rsi), %esi movq _CLIENT_PROTOCOL_41@GOTPCREL(%rip), %rax testl %esi, (%rax) je LBB0_1 ## %bb.4: movq %rbx, %rdi callq _network_mysqld_proto_append_int32 movl 4(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int32 movl 8(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq 32(%r14), %rdi cmpq $0, (%rdi) je LBB0_6 ## %bb.5: callq _S movq %rbx, %rdi movl %eax, %esi callq _g_string_append_len LBB0_6: movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq 24(%r14), %rdi callq _S movq %rbx, %rdi movl %eax, %esi callq _network_mysqld_proto_append_lenenc_string_len movq 16(%r14), %rdi cmpq $0, (%rdi) je LBB0_9 LBB0_8: callq _S movq %rbx, %rdi movl %eax, %esi callq _g_string_append_len movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 LBB0_9: xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq LBB0_1: movq %rbx, %rdi callq _network_mysqld_proto_append_int16 movl 4(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int24 movq 32(%r14), %rdi cmpq $0, (%rdi) je LBB0_3 ## %bb.2: callq _S movq %rbx, %rdi movl %eax, %esi callq _g_string_append_len LBB0_3: movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 movq 24(%r14), %rdi cmpq $0, (%rdi) jne LBB0_8 jmp LBB0_9 .cfi_endproc ## -- End function .comm _CLIENT_PROTOCOL_41,4,2 ## @CLIENT_PROTOCOL_41 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_auth_response ; -- Begin function network_mysqld_proto_append_auth_response .p2align 2 _network_mysqld_proto_append_auth_response: ; @network_mysqld_proto_append_auth_response .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, x1 mov x19, x0 ldr w1, [x1] Lloh0: adrp x8, _CLIENT_PROTOCOL_41@GOTPAGE Lloh1: ldr x8, [x8, _CLIENT_PROTOCOL_41@GOTPAGEOFF] Lloh2: ldr w8, [x8] tst w8, w1 b.eq LBB0_6 ; %bb.1: bl _network_mysqld_proto_append_int32 ldr w1, [x20, #4] mov x0, x19 bl _network_mysqld_proto_append_int32 ldr w1, [x20, #8] mov x0, x19 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 ldr x0, [x20, #32] ldr x8, [x0] cbz x8, LBB0_3 ; %bb.2: bl _S mov x1, x0 mov x0, x19 bl _g_string_append_len LBB0_3: mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 ldr x0, [x20, #24] bl _S mov x1, x0 mov x0, x19 bl _network_mysqld_proto_append_lenenc_string_len ldr x0, [x20, #16] ldr x8, [x0] cbz x8, LBB0_5 LBB0_4: bl _S mov x1, x0 mov x0, x19 bl _g_string_append_len mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 LBB0_5: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_6: bl _network_mysqld_proto_append_int16 ldr w1, [x20, #4] mov x0, x19 bl _network_mysqld_proto_append_int24 ldr x0, [x20, #32] ldr x8, [x0] cbz x8, LBB0_8 ; %bb.7: bl _S mov x1, x0 mov x0, x19 bl _g_string_append_len LBB0_8: mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 ldr x0, [x20, #24] ldr x8, [x0] cbnz x8, LBB0_4 b LBB0_5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _CLIENT_PROTOCOL_41,4,2 ; @CLIENT_PROTOCOL_41 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_append_auth_response.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_eof_packet ## -- Begin function network_mysqld_proto_append_eof_packet .p2align 4, 0x90 _network_mysqld_proto_append_eof_packet: ## @network_mysqld_proto_append_eof_packet .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 %rsi, %r14 movq %rdi, %rbx movq _CLIENT_PROTOCOL_41@GOTPCREL(%rip), %r15 movl (%r15), %r12d movq _MYSQLD_PACKET_EOF@GOTPCREL(%rip), %rax movl (%rax), %esi callq _network_mysqld_proto_append_int8 testl %r12d, (%r15) je LBB0_2 ## %bb.1: movl 4(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 movl (%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 LBB0_2: xorl %eax, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _CLIENT_PROTOCOL_41,4,2 ## @CLIENT_PROTOCOL_41 .comm _MYSQLD_PACKET_EOF,4,2 ## @MYSQLD_PACKET_EOF .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_eof_packet ; -- Begin function network_mysqld_proto_append_eof_packet .p2align 2 _network_mysqld_proto_append_eof_packet: ; @network_mysqld_proto_append_eof_packet .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 x21, _CLIENT_PROTOCOL_41@GOTPAGE Lloh1: ldr x21, [x21, _CLIENT_PROTOCOL_41@GOTPAGEOFF] ldr w22, [x21] Lloh2: adrp x8, _MYSQLD_PACKET_EOF@GOTPAGE Lloh3: ldr x8, [x8, _MYSQLD_PACKET_EOF@GOTPAGEOFF] Lloh4: ldr w1, [x8] bl _network_mysqld_proto_append_int8 ldr w8, [x21] tst w8, w22 b.eq LBB0_2 ; %bb.1: ldr w1, [x20, #4] mov x0, x19 bl _network_mysqld_proto_append_int16 ldr w1, [x20] mov x0, x19 bl _network_mysqld_proto_append_int16 LBB0_2: mov w0, #0 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 AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _CLIENT_PROTOCOL_41,4,2 ; @CLIENT_PROTOCOL_41 .comm _MYSQLD_PACKET_EOF,4,2 ; @MYSQLD_PACKET_EOF .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_append_eof_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_err_packet ## -- Begin function network_mysqld_proto_append_err_packet .p2align 4, 0x90 _network_mysqld_proto_append_err_packet: ## @network_mysqld_proto_append_err_packet .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 movq %rdi, %rbx movl $255, %esi callq _network_mysqld_proto_append_int8 movl 24(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 movq (%r14), %rax movq _NETWORK_MYSQLD_PROTOCOL_VERSION_41@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_5 ## %bb.1: movq %rbx, %rdi movl $35, %esi callq _g_string_append_c movq 16(%r14), %rax testq %rax, %rax je LBB0_4 ## %bb.2: cmpq $0, (%rax) jle LBB0_4 ## %bb.3: movl 8(%rax), %esi movq %rbx, %rdi movl $5, %edx xorl %eax, %eax callq _g_string_append_len jmp LBB0_5 LBB0_4: leaq L_.str(%rip), %rdi callq _C movq %rbx, %rdi movl %eax, %esi xorl %eax, %eax callq _g_string_append_len LBB0_5: movq 8(%r14), %rax movl (%rax), %ecx movl 4(%rax), %esi cmpl $512, %ecx ## imm = 0x200 movl $512, %edx ## imm = 0x200 cmovll %ecx, %edx movq %rbx, %rdi xorl %eax, %eax callq _g_string_append_len xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _NETWORK_MYSQLD_PROTOCOL_VERSION_41,8,3 ## @NETWORK_MYSQLD_PROTOCOL_VERSION_41 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "07000" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_err_packet ; -- Begin function network_mysqld_proto_append_err_packet .p2align 2 _network_mysqld_proto_append_err_packet: ; @network_mysqld_proto_append_err_packet .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 x20, x1 mov x19, x0 mov w1, #255 bl _network_mysqld_proto_append_int8 ldr w1, [x20, #24] mov x0, x19 bl _network_mysqld_proto_append_int16 ldr x8, [x20] Lloh0: adrp x9, _NETWORK_MYSQLD_PROTOCOL_VERSION_41@GOTPAGE Lloh1: ldr x9, [x9, _NETWORK_MYSQLD_PROTOCOL_VERSION_41@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_6 ; %bb.1: mov x0, x19 mov w1, #35 bl _g_string_append_c ldr x8, [x20, #16] cbz x8, LBB0_4 ; %bb.2: ldr x9, [x8] cmp x9, #1 b.lt LBB0_4 ; %bb.3: ldr w1, [x8, #8] mov w8, #5 str x8, [sp] b LBB0_5 LBB0_4: Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF bl _C mov x1, x0 LBB0_5: mov x0, x19 bl _g_string_append_len LBB0_6: ldr x8, [x20, #8] mov w9, #512 ldp w10, w1, [x8] cmp w10, #512 csel w8, w10, w9, lt str x8, [sp] mov x0, x19 bl _g_string_append_len mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _NETWORK_MYSQLD_PROTOCOL_VERSION_41,8,3 ; @NETWORK_MYSQLD_PROTOCOL_VERSION_41 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "07000" .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_append_err_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_ok_packet ## -- Begin function network_mysqld_proto_append_ok_packet .p2align 4, 0x90 _network_mysqld_proto_append_ok_packet: ## @network_mysqld_proto_append_ok_packet .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 %rsi, %r14 movq %rdi, %rbx movq _CLIENT_PROTOCOL_41@GOTPCREL(%rip), %r15 movl (%r15), %r12d xorl %esi, %esi callq _network_mysqld_proto_append_int8 movl 12(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_lenenc_int movl 8(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_lenenc_int movl 4(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 testl %r12d, (%r15) je LBB0_2 ## %bb.1: movl (%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 LBB0_2: xorl %eax, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _CLIENT_PROTOCOL_41,4,2 ## @CLIENT_PROTOCOL_41 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_ok_packet ; -- Begin function network_mysqld_proto_append_ok_packet .p2align 2 _network_mysqld_proto_append_ok_packet: ; @network_mysqld_proto_append_ok_packet .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 x21, _CLIENT_PROTOCOL_41@GOTPAGE Lloh1: ldr x21, [x21, _CLIENT_PROTOCOL_41@GOTPAGEOFF] ldr w22, [x21] mov w1, #0 bl _network_mysqld_proto_append_int8 ldr w1, [x20, #12] mov x0, x19 bl _network_mysqld_proto_append_lenenc_int ldr w1, [x20, #8] mov x0, x19 bl _network_mysqld_proto_append_lenenc_int ldr w1, [x20, #4] mov x0, x19 bl _network_mysqld_proto_append_int16 ldr w8, [x21] tst w8, w22 b.eq LBB0_2 ; %bb.1: ldr w1, [x20] mov x0, x19 bl _network_mysqld_proto_append_int16 LBB0_2: mov w0, #0 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 _CLIENT_PROTOCOL_41,4,2 ; @CLIENT_PROTOCOL_41 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_append_ok_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_stmt_close_packet ## -- Begin function network_mysqld_proto_append_stmt_close_packet .p2align 4, 0x90 _network_mysqld_proto_append_stmt_close_packet: ## @network_mysqld_proto_append_stmt_close_packet .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 movq %rdi, %rbx movq _COM_STMT_CLOSE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _network_mysqld_proto_append_int8 movl (%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int32 xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _COM_STMT_CLOSE,4,2 ## @COM_STMT_CLOSE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_stmt_close_packet ; -- Begin function network_mysqld_proto_append_stmt_close_packet .p2align 2 _network_mysqld_proto_append_stmt_close_packet: ; @network_mysqld_proto_append_stmt_close_packet .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 Lloh0: adrp x8, _COM_STMT_CLOSE@GOTPAGE Lloh1: ldr x8, [x8, _COM_STMT_CLOSE@GOTPAGEOFF] Lloh2: ldr w1, [x8] bl _network_mysqld_proto_append_int8 ldr w1, [x19] mov x0, x20 bl _network_mysqld_proto_append_int32 mov w0, #0 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 _COM_STMT_CLOSE,4,2 ; @COM_STMT_CLOSE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_append_stmt_close_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_stmt_execute_packet ## -- Begin function network_mysqld_proto_append_stmt_execute_packet .p2align 4, 0x90 _network_mysqld_proto_append_stmt_execute_packet: ## @network_mysqld_proto_append_stmt_execute_packet .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, %ebx movq %rsi, %r13 movq %rdi, %r14 leal 7(%rbx), %eax leal 14(%rbx), %edi testl %eax, %eax cmovnsl %eax, %edi sarl $3, %edi callq _g_string_sized_new movq %rax, %r12 movq (%rax), %rdi movl 8(%rax), %edx xorl %esi, %esi callq _memset testl %ebx, %ebx jle LBB0_5 ## %bb.1: xorl %r15d, %r15d jmp LBB0_2 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_2 Depth=1 incl %r15d cmpl %r15d, %ebx je LBB0_5 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq (%r13), %rdi movl %r15d, %esi callq _g_ptr_array_index cmpq $0, (%rax) je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movl %r15d, %ecx andb $7, %cl movl $1, %eax shll %cl, %eax movq (%r12), %rcx movl %r15d, %edx shrl $3, %edx orl %eax, (%rcx,%rdx,4) jmp LBB0_4 LBB0_5: movq _COM_STMT_EXECUTE@GOTPCREL(%rip), %rax movq (%rax), %rsi movq %r14, %rdi callq _network_mysqld_proto_append_int8 movl 32(%r13), %esi movq %r14, %rdi callq _network_mysqld_proto_append_int32 movq 24(%r13), %rsi movq %r14, %rdi callq _network_mysqld_proto_append_int8 movl 16(%r13), %esi movq %r14, %rdi callq _network_mysqld_proto_append_int32 movq %r12, %rdi callq _S movq %r14, %rdi movl %eax, %esi callq _g_string_append_len movq 8(%r13), %rsi movq %r14, %rdi callq _network_mysqld_proto_append_int8 cmpq $0, 8(%r13) je LBB0_15 ## %bb.6: movq (%r13), %rdi cmpl $0, (%rdi) jle LBB0_9 ## %bb.7: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_8: ## =>This Inner Loop Header: Depth=1 movl %ebx, %esi callq _g_ptr_array_index movl 8(%rax), %esi movq %r14, %rdi callq _network_mysqld_proto_append_int16 incl %ebx movq (%r13), %rdi cmpl (%rdi), %ebx jl LBB0_8 LBB0_9: cmpl $0, (%rdi) movl $0, %eax jle LBB0_16 ## %bb.10: xorl %ebx, %ebx jmp LBB0_11 .p2align 4, 0x90 LBB0_14: ## in Loop: Header=BB0_11 Depth=1 incl %ebx movq (%r13), %rdi cmpl (%rdi), %ebx jge LBB0_15 LBB0_11: ## =>This Inner Loop Header: Depth=1 movl %ebx, %esi callq _g_ptr_array_index cmpq $0, (%rax) jne LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 movq %r14, %rdi movq %rax, %rsi callq _network_mysqld_proto_binary_append_type testq %rax, %rax je LBB0_14 ## %bb.13: movl $-1, %eax jmp LBB0_16 LBB0_15: xorl %eax, %eax LBB0_16: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _COM_STMT_EXECUTE,8,3 ## @COM_STMT_EXECUTE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_stmt_execute_packet ; -- Begin function network_mysqld_proto_append_stmt_execute_packet .p2align 2 _network_mysqld_proto_append_stmt_execute_packet: ; @network_mysqld_proto_append_stmt_execute_packet .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, x2 mov x19, x1 mov x20, x0 add w8, w2, #7 add w9, w2, #14 cmp w8, #0 csel w8, w9, w8, lt asr w0, w8, #3 bl _g_string_sized_new mov x21, x0 ldr x0, [x0] ldr w2, [x21, #8] mov w1, #0 bl _memset cmp w22, #1 b.lt LBB0_5 ; %bb.1: mov w23, #0 mov w24, #1 b LBB0_3 LBB0_2: ; in Loop: Header=BB0_3 Depth=1 add w23, w23, #1 cmp w22, w23 b.eq LBB0_5 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x0, [x19] mov x1, x23 bl _g_ptr_array_index ldr x8, [x0] cbz x8, LBB0_2 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 and w8, w23, #0x7 lsl w8, w24, w8 ldr x9, [x21] lsr w10, w23, #3 lsl x10, x10, #2 ldr w11, [x9, x10] orr w8, w11, w8 str w8, [x9, x10] b LBB0_2 LBB0_5: Lloh0: adrp x8, _COM_STMT_EXECUTE@GOTPAGE Lloh1: ldr x8, [x8, _COM_STMT_EXECUTE@GOTPAGEOFF] Lloh2: ldr x1, [x8] mov x0, x20 bl _network_mysqld_proto_append_int8 ldr w1, [x19, #32] mov x0, x20 bl _network_mysqld_proto_append_int32 ldr x1, [x19, #24] mov x0, x20 bl _network_mysqld_proto_append_int8 ldr w1, [x19, #16] mov x0, x20 bl _network_mysqld_proto_append_int32 mov x0, x21 bl _S mov x1, x0 mov x0, x20 bl _g_string_append_len ldr x1, [x19, #8] mov x0, x20 bl _network_mysqld_proto_append_int8 ldr x8, [x19, #8] cbz x8, LBB0_15 ; %bb.6: ldr x0, [x19] ldr w8, [x0] cmp w8, #1 b.lt LBB0_9 ; %bb.7: mov w21, #0 LBB0_8: ; =>This Inner Loop Header: Depth=1 mov x1, x21 bl _g_ptr_array_index ldr w1, [x0, #8] mov x0, x20 bl _network_mysqld_proto_append_int16 add w21, w21, #1 ldr x0, [x19] ldr w8, [x0] cmp w21, w8 b.lt LBB0_8 LBB0_9: ldr w8, [x0] cmp w8, #1 b.lt LBB0_15 ; %bb.10: mov w21, #0 b LBB0_12 LBB0_11: ; in Loop: Header=BB0_12 Depth=1 add w21, w21, #1 ldr x0, [x19] ldr w8, [x0] cmp w21, w8 b.ge LBB0_15 LBB0_12: ; =>This Inner Loop Header: Depth=1 mov x1, x21 bl _g_ptr_array_index ldr x8, [x0] cbnz x8, LBB0_11 ; %bb.13: ; in Loop: Header=BB0_12 Depth=1 mov x1, x0 mov x0, x20 bl _network_mysqld_proto_binary_append_type cbz x0, LBB0_11 ; %bb.14: mov w0, #-1 b LBB0_16 LBB0_15: mov w0, #0 LBB0_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 AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _COM_STMT_EXECUTE,8,3 ; @COM_STMT_EXECUTE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_append_stmt_execute_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_stmt_prepare_ok_packet ## -- Begin function network_mysqld_proto_append_stmt_prepare_ok_packet .p2align 4, 0x90 _network_mysqld_proto_append_stmt_prepare_ok_packet: ## @network_mysqld_proto_append_stmt_prepare_ok_packet .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 %rsi, %r15 movq %rdi, %rbx movq _MYSQLD_PACKET_OK@GOTPCREL(%rip), %rax movl (%rax), %esi callq _network_mysqld_proto_append_int8 movl $-1, %r14d testq %rax, %rax jne LBB0_6 ## %bb.1: movl 12(%r15), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int32 testq %rax, %rax jne LBB0_6 ## %bb.2: movl 8(%r15), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 testq %rax, %rax jne LBB0_6 ## %bb.3: movl 4(%r15), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 testq %rax, %rax jne LBB0_6 ## %bb.4: xorl %r12d, %r12d movq %rbx, %rdi xorl %esi, %esi callq _network_mysqld_proto_append_int8 testq %rax, %rax jne LBB0_6 ## %bb.5: movl (%r15), %esi movq %rbx, %rdi callq _network_mysqld_proto_append_int16 negq %rax sbbl %r12d, %r12d movl %r12d, %r14d LBB0_6: movl %r14d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _MYSQLD_PACKET_OK,4,2 ## @MYSQLD_PACKET_OK .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_stmt_prepare_ok_packet ; -- Begin function network_mysqld_proto_append_stmt_prepare_ok_packet .p2align 2 _network_mysqld_proto_append_stmt_prepare_ok_packet: ; @network_mysqld_proto_append_stmt_prepare_ok_packet .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, x1 mov x19, x0 Lloh0: adrp x8, _MYSQLD_PACKET_OK@GOTPAGE Lloh1: ldr x8, [x8, _MYSQLD_PACKET_OK@GOTPAGEOFF] Lloh2: ldr w1, [x8] bl _network_mysqld_proto_append_int8 cbnz x0, LBB0_5 ; %bb.1: ldr w1, [x20, #12] mov x0, x19 bl _network_mysqld_proto_append_int32 cbnz x0, LBB0_5 ; %bb.2: ldr w1, [x20, #8] mov x0, x19 bl _network_mysqld_proto_append_int16 cbnz x0, LBB0_5 ; %bb.3: ldr w1, [x20, #4] mov x0, x19 bl _network_mysqld_proto_append_int16 cbnz x0, LBB0_5 ; %bb.4: mov x0, x19 mov w1, #0 bl _network_mysqld_proto_append_int8 cbz x0, LBB0_7 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 LBB0_7: ldr w1, [x20] mov x0, x19 bl _network_mysqld_proto_append_int16 cmp x0, #0 csetm w0, ne b LBB0_6 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _MYSQLD_PACKET_OK,4,2 ; @MYSQLD_PACKET_OK .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_append_stmt_prepare_ok_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_stmt_prepare_packet ## -- Begin function network_mysqld_proto_append_stmt_prepare_packet .p2align 4, 0x90 _network_mysqld_proto_append_stmt_prepare_packet: ## @network_mysqld_proto_append_stmt_prepare_packet .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 movq %rdi, %rbx movq _COM_STMT_PREPARE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _network_mysqld_proto_append_int8 movl (%r14), %edi callq _S movq %rbx, %rdi movl %eax, %esi callq _g_string_append_len xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _COM_STMT_PREPARE,4,2 ## @COM_STMT_PREPARE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_stmt_prepare_packet ; -- Begin function network_mysqld_proto_append_stmt_prepare_packet .p2align 2 _network_mysqld_proto_append_stmt_prepare_packet: ; @network_mysqld_proto_append_stmt_prepare_packet .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 Lloh0: adrp x8, _COM_STMT_PREPARE@GOTPAGE Lloh1: ldr x8, [x8, _COM_STMT_PREPARE@GOTPAGEOFF] Lloh2: ldr w1, [x8] bl _network_mysqld_proto_append_int8 ldr w0, [x19] bl _S mov x1, x0 mov x0, x20 bl _g_string_append_len mov w0, #0 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 _COM_STMT_PREPARE,4,2 ; @COM_STMT_PREPARE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_append_stmt_prepare_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_auth_challenge ## -- Begin function network_mysqld_proto_get_auth_challenge .p2align 4, 0x90 _network_mysqld_proto_get_auth_challenge: ## @network_mysqld_proto_get_auth_challenge .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 %rsi, %r14 movq %rdi, %rbx movq $0, -48(%rbp) movq $0, -40(%rbp) leaq -52(%rbp), %rsi callq _network_mysqld_proto_get_int8 movl $-1, %r15d testq %rax, %rax je LBB0_1 LBB0_33: movl %r15d, %eax addq $32, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq LBB0_1: movl -52(%rbp), %edx cmpl $10, %edx je LBB0_4 ## %bb.2: cmpl $255, %edx je LBB0_33 ## %bb.3: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _g_debug jmp LBB0_33 LBB0_4: leaq 24(%r14), %r12 movq %rbx, %rdi movq %r12, %rsi callq _network_mysqld_proto_get_string movl $-1, %r15d testq %rax, %rax je LBB0_5 LBB0_29: movq -48(%rbp), %rdi testq %rdi, %rdi je LBB0_31 ## %bb.30: callq _g_free LBB0_31: movq -40(%rbp), %rdi testq %rdi, %rdi je LBB0_33 ## %bb.32: callq _g_free jmp LBB0_33 LBB0_5: cmpq $0, (%r12) je LBB0_29 ## %bb.6: leaq 32(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int32 testq %rax, %rax jne LBB0_29 ## %bb.7: leaq -48(%rbp), %rsi movq %rbx, %rdi movl $8, %edx callq _network_mysqld_proto_get_string_len testq %rax, %rax jne LBB0_29 ## %bb.8: movq %rbx, %rdi movl $1, %esi callq _network_mysqld_proto_skip testq %rax, %rax jne LBB0_29 ## %bb.9: movq %rbx, %rdi movq %r14, %rsi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_29 ## %bb.10: leaq 4(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax jne LBB0_29 ## %bb.11: leaq 8(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_29 ## %bb.12: movq %rbx, %rdi movl $13, %esi callq _network_mysqld_proto_skip movq _CLIENT_SECURE_CONNECTION@GOTPCREL(%rip), %rcx movl (%rcx), %ecx andl (%r14), %ecx je LBB0_16 ## %bb.13: testq %rax, %rax jne LBB0_16 ## %bb.14: leaq -40(%rbp), %rsi movq %rbx, %rdi movl $12, %edx callq _network_mysqld_proto_get_string_len testq %rax, %rax jne LBB0_29 ## %bb.15: movq %rbx, %rdi movl $1, %esi callq _network_mysqld_proto_skip jmp LBB0_17 LBB0_16: testl %ecx, %ecx jne LBB0_29 LBB0_17: testq %rax, %rax jne LBB0_29 ## %bb.18: movq (%r12), %rdi leaq L_.str.1(%rip), %rsi leaq -64(%rbp), %rdx leaq -60(%rbp), %rcx leaq -56(%rbp), %r8 callq _sscanf cmpl $3, %eax jne LBB0_19 ## %bb.21: movl -60(%rbp), %eax cmpl $100, %eax ja LBB0_26 ## %bb.22: movl -56(%rbp), %ecx testl %ecx, %ecx js LBB0_26 ## %bb.23: cmpl $100, %ecx jg LBB0_26 ## %bb.24: movl -64(%rbp), %edx testl %edx, %edx js LBB0_26 ## %bb.25: cmpl $11, %edx jge LBB0_26 ## %bb.27: imull $10000, %edx, %edx ## imm = 0x2710 imull $100, %eax, %eax addl %eax, %ecx addl %edx, %ecx movl %ecx, 12(%r14) movl 16(%r14), %edi xorl %r15d, %r15d xorl %esi, %esi callq _g_string_truncate movl 16(%r14), %edi movq -48(%rbp), %rsi movl $8, %edx callq _g_string_append_len movq -40(%rbp), %rsi testq %rsi, %rsi je LBB0_29 ## %bb.28: movl 16(%r14), %edi movl $12, %edx callq _g_string_append_len jmp LBB0_29 LBB0_19: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.2(%rip), %rdi jmp LBB0_20 LBB0_26: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.3(%rip), %rdi LBB0_20: callq _g_critical movl $-1, %r15d jmp LBB0_33 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: unknown protocol %d" .comm _G_STRLOC,4,2 ## @G_STRLOC .comm _CLIENT_SECURE_CONNECTION,4,2 ## @CLIENT_SECURE_CONNECTION L_.str.1: ## @.str.1 .asciz "%d.%d.%d%*s" L_.str.2: ## @.str.2 .asciz "%s: protocol 10, but version number not parsable" L_.str.3: ## @.str.3 .asciz "%s: protocol 10, but version number out of range" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_auth_challenge ; -- Begin function network_mysqld_proto_get_auth_challenge .p2align 2 _network_mysqld_proto_get_auth_challenge: ; @network_mysqld_proto_get_auth_challenge .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 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 mov x19, x1 mov x20, x0 stp xzr, xzr, [sp, #16] add x1, sp, #12 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_3 LBB0_1: mov w20, #-1 LBB0_2: mov x0, x20 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 add sp, sp, #96 ret LBB0_3: ldr w2, [sp, #12] cmp w2, #10 b.eq LBB0_6 ; %bb.4: cmp w2, #255 b.eq LBB0_1 ; %bb.5: Lloh0: adrp x8, _G_STRLOC@GOTPAGE Lloh1: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF bl _g_debug b LBB0_1 LBB0_6: add x21, x19, #24 mov x0, x20 mov x1, x21 bl _network_mysqld_proto_get_string cbz x0, LBB0_12 LBB0_7: mov w20, #-1 LBB0_8: ldr x0, [sp, #24] cbz x0, LBB0_10 ; %bb.9: bl _g_free LBB0_10: ldr x0, [sp, #16] cbz x0, LBB0_2 ; %bb.11: bl _g_free b LBB0_2 LBB0_12: ldr x8, [x21] cbz x8, LBB0_7 ; %bb.13: add x1, x19, #32 mov x0, x20 bl _network_mysqld_proto_get_int32 cbnz x0, LBB0_7 ; %bb.14: add x1, sp, #24 mov x0, x20 mov w2, #8 bl _network_mysqld_proto_get_string_len cbnz x0, LBB0_7 ; %bb.15: mov x0, x20 mov w1, #1 bl _network_mysqld_proto_skip cbnz x0, LBB0_7 ; %bb.16: mov x0, x20 mov x1, x19 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_7 ; %bb.17: add x1, x19, #4 mov x0, x20 bl _network_mysqld_proto_get_int8 cbnz x0, LBB0_7 ; %bb.18: add x1, x19, #8 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_7 ; %bb.19: mov x0, x20 mov w1, #13 bl _network_mysqld_proto_skip ldr w8, [x19] Lloh5: adrp x9, _CLIENT_SECURE_CONNECTION@GOTPAGE Lloh6: ldr x9, [x9, _CLIENT_SECURE_CONNECTION@GOTPAGEOFF] Lloh7: ldr w9, [x9] ands w8, w9, w8 b.eq LBB0_23 ; %bb.20: cbnz x0, LBB0_23 ; %bb.21: add x1, sp, #16 mov x0, x20 mov w2, #12 bl _network_mysqld_proto_get_string_len cbnz x0, LBB0_7 ; %bb.22: mov x0, x20 mov w1, #1 bl _network_mysqld_proto_skip cbnz x0, LBB0_7 b LBB0_25 LBB0_23: mov w20, #-1 cbnz w8, LBB0_8 ; %bb.24: cbnz x0, LBB0_8 LBB0_25: ldr x0, [x21] Lloh8: adrp x1, l_.str.1@PAGE Lloh9: add x1, x1, l_.str.1@PAGEOFF sub x2, x29, #36 add x3, sp, #40 add x4, sp, #36 bl _sscanf cmp w0, #3 b.ne LBB0_34 ; %bb.26: ldr w8, [sp, #40] cmp w8, #100 b.hi LBB0_35 ; %bb.27: ldr w9, [sp, #36] tbnz w9, #31, LBB0_35 ; %bb.28: cmp w9, #100 b.gt LBB0_35 ; %bb.29: ldur w10, [x29, #-36] tbnz w10, #31, LBB0_35 ; %bb.30: cmp w10, #11 b.ge LBB0_35 ; %bb.31: mov w11, #10000 mov w12, #100 madd w8, w8, w12, w9 madd w8, w10, w11, w8 str w8, [x19, #12] ldr w0, [x19, #16] mov w1, #0 bl _g_string_truncate ldr w0, [x19, #16] ldr x1, [sp, #24] mov w2, #8 bl _g_string_append_len ldr x1, [sp, #16] cbz x1, LBB0_33 ; %bb.32: ldr w0, [x19, #16] mov w2, #12 bl _g_string_append_len LBB0_33: mov w20, #0 b LBB0_8 LBB0_34: Lloh10: adrp x8, _G_STRLOC@GOTPAGE Lloh11: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh12: ldr w1, [x8] Lloh13: adrp x0, l_.str.2@PAGE Lloh14: add x0, x0, l_.str.2@PAGEOFF b LBB0_36 LBB0_35: Lloh15: adrp x8, _G_STRLOC@GOTPAGE Lloh16: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh17: ldr w1, [x8] Lloh18: adrp x0, l_.str.3@PAGE Lloh19: add x0, x0, l_.str.3@PAGEOFF LBB0_36: bl _g_critical b LBB0_1 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh13, Lloh14 .loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12 .loh AdrpAdd Lloh18, Lloh19 .loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: unknown protocol %d" .comm _G_STRLOC,4,2 ; @G_STRLOC .comm _CLIENT_SECURE_CONNECTION,4,2 ; @CLIENT_SECURE_CONNECTION l_.str.1: ; @.str.1 .asciz "%d.%d.%d%*s" l_.str.2: ; @.str.2 .asciz "%s: protocol 10, but version number not parsable" l_.str.3: ; @.str.3 .asciz "%s: protocol 10, but version number out of range" .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_auth_challenge.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_auth_response ## -- Begin function network_mysqld_proto_get_auth_response .p2align 4, 0x90 _network_mysqld_proto_get_auth_response: ## @network_mysqld_proto_get_auth_response .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 $16, %rsp .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r14 movq %rdi, %rbx leaq -36(%rbp), %rsi callq _network_mysqld_proto_peek_int16 movq %rax, %rcx movl $-1, %eax testq %rcx, %rcx jne LBB0_28 ## %bb.1: movq _CLIENT_PROTOCOL_41@GOTPCREL(%rip), %rax movl (%rax), %eax testl %eax, -36(%rbp) je LBB0_19 ## %bb.2: movq %rbx, %rdi movq %r14, %rsi callq _network_mysqld_proto_get_int32 movb $1, %r15b testq %rax, %rax jne LBB0_7 ## %bb.3: leaq 4(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int32 testq %rax, %rax jne LBB0_7 ## %bb.4: leaq 24(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax jne LBB0_7 ## %bb.5: movq %rbx, %rdi movl $23, %esi callq _network_mysqld_proto_skip testq %rax, %rax jne LBB0_7 ## %bb.6: movl 12(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_get_gstring testq %rax, %rax setne %r15b LBB0_7: movq _CLIENT_SECURE_CONNECTION@GOTPCREL(%rip), %rax movl (%rax), %eax testl %eax, (%r14) je LBB0_10 ## %bb.8: movb $1, %al testb %r15b, %r15b jne LBB0_13 ## %bb.9: movl 8(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_get_lenenc_gstring jmp LBB0_12 LBB0_19: leaq -36(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int16 movb $1, %r12b testq %rax, %rax jne LBB0_22 ## %bb.20: leaq 4(%r14), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int24 testq %rax, %rax jne LBB0_22 ## %bb.21: movl 12(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_get_gstring testq %rax, %rax setne %r12b LBB0_22: movq 8(%rbx), %rax movq (%rax), %rax cmpq (%rbx), %rax jne LBB0_23 ## %bb.25: movl $1, %r15d testb %r12b, %r12b je LBB0_26 jmp LBB0_27 LBB0_10: movb $1, %al testb %r15b, %r15b jne LBB0_13 ## %bb.11: movl 8(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_get_gstring LBB0_12: testq %rax, %rax setne %al LBB0_13: movzbl %al, %r15d movq 8(%rbx), %rax movq (%rax), %rsi subq (%rbx), %rsi je LBB0_27 ## %bb.14: testl %r15d, %r15d movl $1, %r15d jne LBB0_16 ## %bb.15: movq 16(%r14), %rdx movq %rbx, %rdi callq _network_mysqld_proto_get_gstring_len xorl %r15d, %r15d testq %rax, %rax setne %r15b LBB0_16: movq 16(%r14), %rax movl (%rax), %ecx testl %ecx, %ecx jle LBB0_27 ## %bb.17: movq 8(%rax), %rdx decl %ecx cmpb $0, (%rdx,%rcx) jne LBB0_27 ## %bb.18: movl %ecx, (%rax) jmp LBB0_27 LBB0_23: movl $1, %r15d testb %r12b, %r12b jne LBB0_27 ## %bb.24: movl 8(%r14), %esi movq %rbx, %rdi callq _network_mysqld_proto_get_gstring testq %rax, %rax jne LBB0_27 LBB0_26: movl -36(%rbp), %eax movl %eax, (%r14) xorl %r15d, %r15d LBB0_27: xorl %eax, %eax negl %r15d sbbl %eax, %eax LBB0_28: addq $16, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _CLIENT_PROTOCOL_41,4,2 ## @CLIENT_PROTOCOL_41 .comm _CLIENT_SECURE_CONNECTION,4,2 ## @CLIENT_SECURE_CONNECTION .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_auth_response ; -- Begin function network_mysqld_proto_get_auth_response .p2align 2 _network_mysqld_proto_get_auth_response: ; @network_mysqld_proto_get_auth_response .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 add x1, sp, #12 bl _network_mysqld_proto_peek_int16 cbz x0, LBB0_2 ; %bb.1: mov w0, #-1 b LBB0_32 LBB0_2: ldr w8, [sp, #12] Lloh0: adrp x9, _CLIENT_PROTOCOL_41@GOTPAGE Lloh1: ldr x9, [x9, _CLIENT_PROTOCOL_41@GOTPAGEOFF] Lloh2: ldr w9, [x9] tst w9, w8 b.eq LBB0_11 ; %bb.3: mov x0, x20 mov x1, x19 bl _network_mysqld_proto_get_int32 cbnz x0, LBB0_7 ; %bb.4: add x1, x19, #4 mov x0, x20 bl _network_mysqld_proto_get_int32 cbnz x0, LBB0_7 ; %bb.5: add x1, x19, #24 mov x0, x20 bl _network_mysqld_proto_get_int8 cbnz x0, LBB0_7 ; %bb.6: mov x0, x20 mov w1, #23 bl _network_mysqld_proto_skip cbz x0, LBB0_34 LBB0_7: mov w8, #1 LBB0_8: ldr w9, [x19] Lloh3: adrp x10, _CLIENT_SECURE_CONNECTION@GOTPAGE Lloh4: ldr x10, [x10, _CLIENT_SECURE_CONNECTION@GOTPAGEOFF] Lloh5: ldr w10, [x10] tst w10, w9 b.eq LBB0_16 ; %bb.9: tbnz w8, #0, LBB0_17 ; %bb.10: ldr w1, [x19, #8] mov x0, x20 bl _network_mysqld_proto_get_lenenc_gstring b LBB0_23 LBB0_11: add x1, sp, #12 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_13 ; %bb.12: add x1, x19, #4 mov x0, x20 bl _network_mysqld_proto_get_int24 cbz x0, LBB0_33 LBB0_13: mov w8, #1 LBB0_14: ldp x10, x9, [x20] ldr x9, [x9] cmp x9, x10 b.ne LBB0_18 ; %bb.15: tbnz w8, #0, LBB0_20 b LBB0_21 LBB0_16: tbz w8, #0, LBB0_22 LBB0_17: mov w8, #1 b LBB0_24 LBB0_18: tbnz w8, #0, LBB0_20 ; %bb.19: ldr w1, [x19, #8] mov x0, x20 bl _network_mysqld_proto_get_gstring cbz x0, LBB0_21 LBB0_20: mov w8, #1 b LBB0_31 LBB0_21: mov w8, #0 ldr w9, [sp, #12] str w9, [x19] b LBB0_31 LBB0_22: ldr w1, [x19, #8] mov x0, x20 bl _network_mysqld_proto_get_gstring LBB0_23: cmp x0, #0 cset w8, ne LBB0_24: ldp x9, x10, [x20] ldr x10, [x10] subs x1, x10, x9 b.eq LBB0_31 ; %bb.25: tbz w8, #0, LBB0_27 ; %bb.26: mov w8, #1 b LBB0_28 LBB0_27: ldr x2, [x19, #16] mov x0, x20 bl _network_mysqld_proto_get_gstring_len cmp x0, #0 cset w8, ne LBB0_28: ldr x9, [x19, #16] ldr w10, [x9] subs w10, w10, #1 b.lt LBB0_31 ; %bb.29: ldr x11, [x9, #8] ldrb w11, [x11, w10, uxtw] cbnz w11, LBB0_31 ; %bb.30: str w10, [x9] LBB0_31: cmp w8, #0 csetm w0, ne LBB0_32: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 ret LBB0_33: ldr w1, [x19, #12] mov x0, x20 bl _network_mysqld_proto_get_gstring cmp x0, #0 cset w8, ne b LBB0_14 LBB0_34: ldr w1, [x19, #12] mov x0, x20 bl _network_mysqld_proto_get_gstring cmp x0, #0 cset w8, ne b LBB0_8 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _CLIENT_PROTOCOL_41,4,2 ; @CLIENT_PROTOCOL_41 .comm _CLIENT_SECURE_CONNECTION,4,2 ; @CLIENT_SECURE_CONNECTION .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_auth_response.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_binary_row ## -- Begin function network_mysqld_proto_get_binary_row .p2align 4, 0x90 _network_mysqld_proto_get_binary_row: ## @network_mysqld_proto_get_binary_row .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 %rdx, -56(%rbp) ## 8-byte Spill movq %rsi, %r13 movq %rdi, %r12 leaq -64(%rbp), %rsi callq _network_mysqld_proto_get_int8 movq %rax, %r14 movq -64(%rbp), %r15 movl (%r13), %ebx leal 9(%rbx), %eax addl $16, %ebx testl %eax, %eax cmovnsl %eax, %ebx sarl $3, %ebx movl %ebx, %edi callq _g_string_sized_new orq %r14, %r15 movl $-1, %r14d movq %rax, -48(%rbp) ## 8-byte Spill jne LBB0_12 ## %bb.1: movq %r12, %rdi movl %ebx, %esi movq %rax, %rdx callq _network_mysqld_proto_get_gstring_len testq %rax, %rax jne LBB0_12 ## %bb.2: xorl %r14d, %r14d jmp LBB0_3 .p2align 4, 0x90 LBB0_9: ## in Loop: Header=BB0_3 Depth=1 movq %r12, %rdi movq %r15, %rsi callq _network_mysqld_proto_binary_get_type xorl %ebx, %ebx testq %rax, %rax setne %bl LBB0_10: ## in Loop: Header=BB0_3 Depth=1 movq -56(%rbp), %rdi ## 8-byte Reload movq %r15, %rsi callq _g_ptr_array_add incl %r14d testl %ebx, %ebx jne LBB0_11 LBB0_3: ## =>This Inner Loop Header: Depth=1 cmpl (%r13), %r14d jge LBB0_4 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movq %r13, %rdi movl %r14d, %esi callq _g_ptr_array_index movq %rax, %rbx movl (%rax), %edi callq _network_mysqld_type_new testq %rax, %rax je LBB0_8 ## %bb.6: ## in Loop: Header=BB0_3 Depth=1 movq %rax, %r15 movq -48(%rbp), %rax ## 8-byte Reload movq (%rax), %rax leal 2(%r14), %ecx movl %ecx, %edx shrl $3, %edx movl (%rax,%rdx,4), %eax andb $7, %cl movzbl %cl, %ecx btl %ecx, %eax jae LBB0_9 ## %bb.7: ## in Loop: Header=BB0_3 Depth=1 movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, (%r15) xorl %ebx, %ebx jmp LBB0_10 LBB0_4: xorl %r14d, %r14d jmp LBB0_12 LBB0_8: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi movl (%rbx), %edx leaq L_.str(%rip), %rdi callq _g_debug LBB0_11: movl $-1, %r14d LBB0_12: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq -48(%rbp), %rdi ## 8-byte Reload callq _g_string_free movl %r14d, %eax addq $24, %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 "%s: coulnd't create type = %d" .comm _G_STRLOC,4,2 ## @G_STRLOC .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_binary_row ; -- Begin function network_mysqld_proto_get_binary_row .p2align 2 _network_mysqld_proto_get_binary_row: ; @network_mysqld_proto_get_binary_row .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 x20, x2 mov x21, x1 mov x22, x0 add x1, sp, #8 bl _network_mysqld_proto_get_int8 ldr x8, [sp, #8] orr x24, x0, x8 ldr w8, [x21] add w9, w8, #9 add w8, w8, #16 cmp w9, #0 csel w8, w8, w9, lt asr w23, w8, #3 mov x0, x23 bl _g_string_sized_new mov x19, x0 Lloh0: adrp x26, _TRUE@GOTPAGE Lloh1: ldr x26, [x26, _TRUE@GOTPAGEOFF] cbnz x24, LBB0_2 ; %bb.1: mov x0, x22 mov x1, x23 mov x2, x19 bl _network_mysqld_proto_get_gstring_len cbz x0, LBB0_4 LBB0_2: mov w20, #-1 LBB0_3: ldr w1, [x26] mov x0, x19 bl _g_string_free mov x0, x20 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 LBB0_4: mov w23, #0 b LBB0_7 LBB0_5: ; in Loop: Header=BB0_7 Depth=1 mov x0, x22 mov x1, x24 bl _network_mysqld_proto_binary_get_type cmp x0, #0 cset w25, ne LBB0_6: ; in Loop: Header=BB0_7 Depth=1 mov x0, x20 mov x1, x24 bl _g_ptr_array_add add w23, w23, #1 cbnz w25, LBB0_2 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [x21] cmp w23, w8 b.ge LBB0_11 ; %bb.8: ; in Loop: Header=BB0_7 Depth=1 mov x0, x21 mov x1, x23 bl _g_ptr_array_index mov x25, x0 ldr w0, [x0] bl _network_mysqld_type_new cbz x0, LBB0_12 ; %bb.9: ; in Loop: Header=BB0_7 Depth=1 mov x24, x0 ldr x8, [x19] add w9, w23, #2 lsr w10, w9, #3 ldr w8, [x8, w10, uxtw #2] and w9, w9, #0x7 lsr w8, w8, w9 tbz w8, #0, LBB0_5 ; %bb.10: ; in Loop: Header=BB0_7 Depth=1 mov w25, #0 ldr w8, [x26] str w8, [x24] b LBB0_6 LBB0_11: mov w20, #0 b LBB0_3 LBB0_12: Lloh2: adrp x8, _G_STRLOC@GOTPAGE Lloh3: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh4: ldr w1, [x8] ldr w2, [x25] Lloh5: adrp x0, l_.str@PAGE Lloh6: add x0, x0, l_.str@PAGEOFF bl _g_debug b LBB0_2 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh5, Lloh6 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: coulnd't create type = %d" .comm _G_STRLOC,4,2 ; @G_STRLOC .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_binary_row.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_com_query_result ## -- Begin function network_mysqld_proto_get_com_query_result .p2align 4, 0x90 _network_mysqld_proto_get_com_query_result: ## @network_mysqld_proto_get_com_query_result .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 (%rsi), %eax xorl %r15d, %r15d addl $-128, %eax cmpl $4, %eax ja LBB0_39 ## %bb.1: movl %ecx, %r12d movq %rsi, %r14 movq %rdi, %r13 leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_2: leaq -44(%rbp), %rsi movq %r13, %rdi callq _network_mysqld_proto_peek_int8 testl %eax, %eax jne LBB0_38 ## %bb.13: movl -44(%rbp), %eax leal -133(%rax), %ecx cmpl $2, %ecx jb LBB0_25 ## %bb.14: cmpl $135, %eax je LBB0_32 ## %bb.15: cmpl $136, %eax jne LBB0_26 ## %bb.16: movq 8(%r13), %rax cmpl $9, (%rax) jne LBB0_39 ## %bb.17: xorl %eax, %eax callq _network_mysqld_eof_packet_new movq %rax, %r12 movq %r13, %rdi movq %rax, %rsi callq _network_mysqld_proto_get_eof_packet testl %eax, %eax je LBB0_42 ## %bb.18: movq %r12, %rdi jmp LBB0_31 LBB0_4: leaq -44(%rbp), %rsi movq %r13, %rdi callq _network_mysqld_proto_get_int8 movl $-1, %r15d testl %eax, %eax jne LBB0_39 ## %bb.5: movl -44(%rbp), %edx movl $1, %r15d cmpl $133, %edx je LBB0_39 ## %bb.6: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.2(%rip), %rdi jmp LBB0_37 LBB0_7: movq 8(%r13), %rax movl (%rax), %eax cmpl (%r13), %eax jne LBB0_39 ## %bb.8: movl $129, (%r14) movl $1, %r15d jmp LBB0_39 LBB0_9: movq %rdx, %rbx leaq -44(%rbp), %rsi movq %r13, %rdi callq _network_mysqld_proto_peek_int8 testl %eax, %eax jne LBB0_38 ## %bb.19: movl $-133, %eax addl -44(%rbp), %eax cmpl $3, %eax ja LBB0_33 ## %bb.20: leaq LJTI0_1(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_21: movq %rbx, %rdi callq _update_charset movl $133, 4(%r14) xorl %eax, %eax callq _network_mysqld_ok_packet_new movq %rax, %rbx movq %r13, %rdi movq %rax, %rsi callq _network_mysqld_proto_get_ok_packet testl %eax, %eax je LBB0_41 ## %bb.22: movq %rbx, %rdi callq _network_mysqld_ok_packet_free jmp LBB0_38 LBB0_11: leaq -44(%rbp), %rsi movq %r13, %rdi callq _network_mysqld_proto_peek_int8 testl %eax, %eax jne LBB0_38 ## %bb.23: movl -44(%rbp), %edx leal -133(%rdx), %eax cmpl $3, %eax jae LBB0_27 ## %bb.24: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi ## kill: def $edx killed $edx killed $rdx jmp LBB0_37 LBB0_25: testl %r12d, %r12d je LBB0_39 LBB0_26: incl 20(%r14) movq 8(%r13), %rax movl (%rax), %eax addl %eax, 16(%r14) jmp LBB0_39 LBB0_27: cmpl $136, %edx jne LBB0_39 ## %bb.28: movq 8(%r13), %rax cmpl $9, (%rax) jne LBB0_40 ## %bb.29: xorl %r15d, %r15d xorl %eax, %eax callq _network_mysqld_eof_packet_new movq %rax, %rbx movq %r13, %rdi movq %rax, %rsi callq _network_mysqld_proto_get_eof_packet testl %eax, %eax je LBB0_46 ## %bb.30: movq %rbx, %rdi LBB0_31: callq _network_mysqld_eof_packet_free jmp LBB0_38 LBB0_32: movl $1, %r15d jmp LBB0_39 LBB0_33: movabsq $571230650500, %rax ## imm = 0x8500000084 movq %rax, (%r14) jmp LBB0_39 LBB0_34: movl $130, (%r14) movl $1, %r15d jmp LBB0_39 LBB0_35: movl $135, 4(%r14) movl $1, %r15d jmp LBB0_39 LBB0_36: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi movl $136, %edx LBB0_37: callq _g_critical LBB0_38: movl $-1, %r15d LBB0_39: movl %r15d, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_40: movl $128, (%r14) jmp LBB0_39 LBB0_41: movl (%rbx), %eax movq _SERVER_MORE_RESULTS_EXISTS@GOTPCREL(%rip), %rcx xorl %r15d, %r15d movl (%rcx), %ecx andl %eax, %ecx sete %r15b movl %eax, 8(%r14) movl 12(%rbx), %eax movl %eax, 24(%r14) movl 8(%rbx), %eax movl %eax, 36(%r14) movl 4(%rbx), %eax movl %eax, 32(%r14) movl $0, 12(%r14) movl %r12d, 28(%r14) movq %rbx, %rdi callq _network_mysqld_ok_packet_free jmp LBB0_39 LBB0_42: movl $1, 12(%r14) movl 8(%r14), %eax testl $4096, %eax ## imm = 0x1000 jne LBB0_44 ## %bb.43: movl (%r12), %eax movl %eax, 8(%r14) LBB0_44: movl 4(%r12), %ecx movl %ecx, 24(%r14) movq _SERVER_MORE_RESULTS_EXISTS@GOTPCREL(%rip), %rcx testl %eax, (%rcx) je LBB0_47 ## %bb.45: movl $131, (%r14) xorl %r15d, %r15d jmp LBB0_48 LBB0_46: movl $128, (%r14) movl (%rbx), %eax movl %eax, 8(%r14) movq %rbx, %rdi callq _network_mysqld_eof_packet_free jmp LBB0_39 LBB0_47: movl $1, %r15d LBB0_48: movq %r12, %rdi callq _network_mysqld_eof_packet_free jmp LBB0_39 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_9, LBB0_9-LJTI0_0 .set L0_0_set_11, LBB0_11-LJTI0_0 LJTI0_0: .long L0_0_set_2 .long L0_0_set_4 .long L0_0_set_7 .long L0_0_set_9 .long L0_0_set_11 .set L0_1_set_21, LBB0_21-LJTI0_1 .set L0_1_set_34, LBB0_34-LJTI0_1 .set L0_1_set_35, LBB0_35-LJTI0_1 .set L0_1_set_36, LBB0_36-LJTI0_1 LJTI0_1: .long L0_1_set_21 .long L0_1_set_34 .long L0_1_set_35 .long L0_1_set_36 .end_data_region ## -- End function .comm _SERVER_MORE_RESULTS_EXISTS,4,2 ## @SERVER_MORE_RESULTS_EXISTS .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: COM_QUERY packet should not be (EOF), got: 0x%02x" .comm _G_STRLOC,4,2 ## @G_STRLOC L_.str.1: ## @.str.1 .asciz "%s: COM_QUERY should not be (OK|NULL|ERR), got: 0x%02x" L_.str.2: ## @.str.2 .asciz "%s: COM_QUERY,should be (OK), got: 0x%02x" .comm _SERVER_PS_OUT_PARAMS,4,2 ## @SERVER_PS_OUT_PARAMS .comm _SERVER_STATUS_CURSOR_EXISTS,4,2 ## @SERVER_STATUS_CURSOR_EXISTS .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function network_mysqld_proto_get_com_query_result lCPI0_0: .long 132 ; 0x84 .long 133 ; 0x85 .section __TEXT,__text,regular,pure_instructions .globl _network_mysqld_proto_get_com_query_result .p2align 2 _network_mysqld_proto_get_com_query_result: ; @network_mysqld_proto_get_com_query_result .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 ldr w8, [x1] sub w8, w8, #128 cmp w8, #4 b.hi LBB0_31 ; %bb.1: mov x22, x3 mov x19, x1 mov x21, x0 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: add x1, sp, #12 mov x0, x21 bl _network_mysqld_proto_peek_int8 cbnz w0, LBB0_37 ; %bb.3: ldr w8, [sp, #12] sub w9, w8, #133 cmp w9, #2 b.lo LBB0_24 ; %bb.4: cmp w8, #135 b.eq LBB0_11 ; %bb.5: cmp w8, #136 b.ne LBB0_25 ; %bb.6: ldr x8, [x21, #8] ldr w8, [x8] cmp w8, #9 b.ne LBB0_31 ; %bb.7: bl _network_mysqld_eof_packet_new mov x22, x0 mov x0, x21 mov x1, x22 bl _network_mysqld_proto_get_eof_packet cbz w0, LBB0_41 ; %bb.8: mov x0, x22 b LBB0_30 LBB0_9: add x1, sp, #12 mov x0, x21 bl _network_mysqld_proto_get_int8 cbnz w0, LBB0_37 ; %bb.10: ldr w2, [sp, #12] cmp w2, #133 b.ne LBB0_23 LBB0_11: mov w20, #1 b LBB0_38 LBB0_12: ldr x8, [x21, #8] ldr w8, [x8] ldr w9, [x21] cmp w8, w9 b.ne LBB0_31 ; %bb.13: mov w8, #129 LBB0_14: str w8, [x19] mov w20, #1 b LBB0_38 LBB0_15: mov x20, x2 add x1, sp, #12 mov x0, x21 bl _network_mysqld_proto_peek_int8 cbnz w0, LBB0_37 ; %bb.16: ldr w8, [sp, #12] sub w8, w8, #133 cmp w8, #3 b.hi LBB0_32 ; %bb.17: Lloh2: adrp x9, lJTI0_1@PAGE Lloh3: add x9, x9, lJTI0_1@PAGEOFF adr x10, LBB0_18 ldrb w11, [x9, x8] add x10, x10, x11, lsl #2 br x10 LBB0_18: mov x0, x20 bl _update_charset mov w8, #133 str w8, [x19, #4] bl _network_mysqld_ok_packet_new mov x23, x0 mov x0, x21 mov x1, x23 bl _network_mysqld_proto_get_ok_packet cbz w0, LBB0_40 ; %bb.19: mov x0, x23 bl _network_mysqld_ok_packet_free b LBB0_37 LBB0_20: add x1, sp, #12 mov x0, x21 bl _network_mysqld_proto_peek_int8 cbnz w0, LBB0_37 ; %bb.21: ldr w2, [sp, #12] sub w8, w2, #133 cmp w8, #3 b.hs LBB0_26 ; %bb.22: Lloh4: adrp x8, _G_STRLOC@GOTPAGE Lloh5: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh6: ldr w1, [x8] Lloh7: adrp x0, l_.str.1@PAGE Lloh8: add x0, x0, l_.str.1@PAGEOFF b LBB0_36 LBB0_23: Lloh9: adrp x8, _G_STRLOC@GOTPAGE Lloh10: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh11: ldr w1, [x8] Lloh12: adrp x0, l_.str.2@PAGE Lloh13: add x0, x0, l_.str.2@PAGEOFF b LBB0_36 LBB0_24: cbz w22, LBB0_31 LBB0_25: mov w20, #0 ldr x8, [x21, #8] ldr d0, [x19, #16] movi.2s v1, #1 ld1.s { v1 }[0], [x8] add.2s v0, v0, v1 str d0, [x19, #16] b LBB0_38 LBB0_26: cmp w2, #136 b.ne LBB0_31 ; %bb.27: ldr x8, [x21, #8] ldr w8, [x8] cmp w8, #9 b.ne LBB0_39 ; %bb.28: bl _network_mysqld_eof_packet_new mov x20, x0 mov x0, x21 mov x1, x20 bl _network_mysqld_proto_get_eof_packet cbz w0, LBB0_45 ; %bb.29: mov x0, x20 LBB0_30: bl _network_mysqld_eof_packet_free b LBB0_37 LBB0_31: mov w20, #0 b LBB0_38 LBB0_32: mov w20, #0 Lloh14: adrp x8, lCPI0_0@PAGE Lloh15: ldr d0, [x8, lCPI0_0@PAGEOFF] str d0, [x19] b LBB0_38 LBB0_33: mov w8, #130 b LBB0_14 LBB0_34: mov w8, #135 str w8, [x19, #4] mov w20, #1 b LBB0_38 LBB0_35: Lloh16: adrp x8, _G_STRLOC@GOTPAGE Lloh17: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh18: ldr w1, [x8] Lloh19: adrp x0, l_.str@PAGE Lloh20: add x0, x0, l_.str@PAGEOFF mov w2, #136 LBB0_36: bl _g_critical LBB0_37: mov w20, #-1 LBB0_38: mov x0, x20 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 LBB0_39: mov w20, #0 mov w8, #128 str w8, [x19] b LBB0_38 LBB0_40: ldr w8, [x23] Lloh21: adrp x9, _SERVER_MORE_RESULTS_EXISTS@GOTPAGE Lloh22: ldr x9, [x9, _SERVER_MORE_RESULTS_EXISTS@GOTPAGEOFF] Lloh23: ldr w9, [x9] tst w9, w8 cset w20, eq str w8, [x19, #8] ldr w8, [x23, #12] str w8, [x19, #24] ldur d0, [x23, #4] str d0, [x19, #32] str wzr, [x19, #12] str w22, [x19, #28] mov x0, x23 bl _network_mysqld_ok_packet_free b LBB0_38 LBB0_41: mov w8, #1 str w8, [x19, #12] ldr w8, [x19, #8] tbnz w8, #12, LBB0_43 ; %bb.42: ldr w8, [x22] str w8, [x19, #8] LBB0_43: ldr w9, [x22, #4] str w9, [x19, #24] Lloh24: adrp x9, _SERVER_MORE_RESULTS_EXISTS@GOTPAGE Lloh25: ldr x9, [x9, _SERVER_MORE_RESULTS_EXISTS@GOTPAGEOFF] Lloh26: ldr w9, [x9] tst w9, w8 b.eq LBB0_46 ; %bb.44: mov w20, #0 mov w8, #131 str w8, [x19] b LBB0_47 LBB0_45: mov w8, #128 str w8, [x19] ldr w8, [x20] str w8, [x19, #8] mov x0, x20 bl _network_mysqld_eof_packet_free mov w20, #0 b LBB0_38 LBB0_46: mov w20, #1 LBB0_47: mov x0, x22 bl _network_mysqld_eof_packet_free b LBB0_38 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpAdd Lloh12, Lloh13 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .loh AdrpLdr Lloh14, Lloh15 .loh AdrpAdd Lloh19, Lloh20 .loh AdrpLdrGotLdr Lloh16, Lloh17, Lloh18 .loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23 .loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_9-LBB0_2)>>2 .byte (LBB0_12-LBB0_2)>>2 .byte (LBB0_15-LBB0_2)>>2 .byte (LBB0_20-LBB0_2)>>2 lJTI0_1: .byte (LBB0_18-LBB0_18)>>2 .byte (LBB0_33-LBB0_18)>>2 .byte (LBB0_34-LBB0_18)>>2 .byte (LBB0_35-LBB0_18)>>2 ; -- End function .comm _SERVER_MORE_RESULTS_EXISTS,4,2 ; @SERVER_MORE_RESULTS_EXISTS .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: COM_QUERY packet should not be (EOF), got: 0x%02x" .comm _G_STRLOC,4,2 ; @G_STRLOC l_.str.1: ; @.str.1 .asciz "%s: COM_QUERY should not be (OK|NULL|ERR), got: 0x%02x" l_.str.2: ; @.str.2 .asciz "%s: COM_QUERY,should be (OK), got: 0x%02x" .comm _SERVER_PS_OUT_PARAMS,4,2 ; @SERVER_PS_OUT_PARAMS .comm _SERVER_STATUS_CURSOR_EXISTS,4,2 ; @SERVER_STATUS_CURSOR_EXISTS .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_com_query_result.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_eof_packet ## -- Begin function network_mysqld_proto_get_eof_packet .p2align 4, 0x90 _network_mysqld_proto_get_eof_packet: ## @network_mysqld_proto_get_eof_packet .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 %rsi, %r14 movq %rdi, %rbx movq _CLIENT_PROTOCOL_41@GOTPCREL(%rip), %r12 movl (%r12), %r13d leaq -64(%rbp), %rsi callq _network_mysqld_proto_get_int8 movl $-1, %r15d testq %rax, %rax jne LBB0_9 ## %bb.1: movq -64(%rbp), %rdx movq _MYSQLD_PACKET_EOF@GOTPCREL(%rip), %rax cmpq (%rax), %rdx jne LBB0_2 ## %bb.3: testl %r13d, (%r12) je LBB0_7 ## %bb.4: leaq -48(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_9 ## %bb.5: leaq -56(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_9 ## %bb.6: movq -56(%rbp), %rax movq %rax, 8(%r14) movq -48(%rbp), %rax movq %rax, (%r14) jmp LBB0_8 LBB0_2: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _g_critical jmp LBB0_9 LBB0_7: xorps %xmm0, %xmm0 movups %xmm0, (%r14) LBB0_8: xorl %r15d, %r15d LBB0_9: movl %r15d, %eax addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _CLIENT_PROTOCOL_41,4,2 ## @CLIENT_PROTOCOL_41 .comm _MYSQLD_PACKET_EOF,8,3 ## @MYSQLD_PACKET_EOF .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: expected the first byte to be 0xfe, got %d" .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_eof_packet ; -- Begin function network_mysqld_proto_get_eof_packet .p2align 2 _network_mysqld_proto_get_eof_packet: ; @network_mysqld_proto_get_eof_packet .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, x1 mov x20, x0 Lloh0: adrp x21, _CLIENT_PROTOCOL_41@GOTPAGE Lloh1: ldr x21, [x21, _CLIENT_PROTOCOL_41@GOTPAGEOFF] ldr w22, [x21] add x1, sp, #24 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_2 LBB0_1: mov w0, #-1 b LBB0_9 LBB0_2: ldr x2, [sp, #24] Lloh2: adrp x8, _MYSQLD_PACKET_EOF@GOTPAGE Lloh3: ldr x8, [x8, _MYSQLD_PACKET_EOF@GOTPAGEOFF] Lloh4: ldr x8, [x8] cmp x2, x8 b.ne LBB0_7 ; %bb.3: ldr w8, [x21] tst w8, w22 b.eq LBB0_8 ; %bb.4: add x1, sp, #8 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_1 ; %bb.5: add x1, sp, #16 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_1 ; %bb.6: ldp x9, x8, [sp, #8] stp x9, x8, [x19] b LBB0_9 LBB0_7: Lloh5: adrp x8, _G_STRLOC@GOTPAGE Lloh6: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh7: ldr w1, [x8] Lloh8: adrp x0, l_.str@PAGE Lloh9: add x0, x0, l_.str@PAGEOFF bl _g_critical mov w0, #-1 b LBB0_9 LBB0_8: mov w0, #0 stp xzr, xzr, [x19] LBB0_9: 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 AdrpAdd Lloh8, Lloh9 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _CLIENT_PROTOCOL_41,4,2 ; @CLIENT_PROTOCOL_41 .comm _MYSQLD_PACKET_EOF,8,3 ; @MYSQLD_PACKET_EOF .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: expected the first byte to be 0xfe, got %d" .comm _G_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_eof_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_err_packet ## -- Begin function network_mysqld_proto_get_err_packet .p2align 4, 0x90 _network_mysqld_proto_get_err_packet: ## @network_mysqld_proto_get_err_packet .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 %rsi, %r14 movq %rdi, %r15 movq $0, -56(%rbp) movq $0, -48(%rbp) movq _CLIENT_PROTOCOL_41@GOTPCREL(%rip), %r13 movl (%r13), %r12d leaq -80(%rbp), %rsi callq _network_mysqld_proto_get_int8 movl $-1, %ebx testq %rax, %rax jne LBB0_19 ## %bb.1: movq -80(%rbp), %rdx movq _MYSQLD_PACKET_ERR@GOTPCREL(%rip), %rax cmpq (%rax), %rdx jne LBB0_2 ## %bb.3: leaq -60(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax setne %dl movl (%r13), %esi testl %r12d, %esi setne %cl orb %dl, %cl testl %r12d, %esi je LBB0_8 ## %bb.4: testq %rax, %rax jne LBB0_8 ## %bb.5: leaq -72(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 movb $1, %cl testq %rax, %rax jne LBB0_8 ## %bb.6: cmpq $35, -72(%rbp) jne LBB0_8 ## %bb.7: leaq -56(%rbp), %rsi movq %r15, %rdi movl $5, %edx callq _network_mysqld_proto_get_string_len testq %rax, %rax setne %cl LBB0_8: movq (%r15), %rax movq 8(%r15), %rdx movq (%rdx), %rdx cmpq %rax, %rdx jle LBB0_11 ## %bb.9: testb %cl, %cl jne LBB0_11 ## %bb.10: subl %eax, %edx leaq -48(%rbp), %rsi movq %r15, %rdi ## kill: def $edx killed $edx killed $rdx callq _network_mysqld_proto_get_string_len movl $-1, %ebx testq %rax, %rax jne LBB0_15 jmp LBB0_12 LBB0_2: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _g_critical jmp LBB0_19 LBB0_11: cmpq %rax, %rdx setg %al orb %cl, %al movl $-1, %ebx jne LBB0_15 LBB0_12: movl -60(%rbp), %eax movl %eax, 8(%r14) movq -48(%rbp), %rsi testq %rsi, %rsi je LBB0_14 ## %bb.13: movl 4(%r14), %edi callq _g_string_assign LBB0_14: movl (%r14), %edi movq -56(%rbp), %rsi callq _g_string_assign xorl %ebx, %ebx LBB0_15: movq -56(%rbp), %rdi testq %rdi, %rdi je LBB0_17 ## %bb.16: callq _g_free LBB0_17: movq -48(%rbp), %rdi testq %rdi, %rdi je LBB0_19 ## %bb.18: callq _g_free LBB0_19: movl %ebx, %eax addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _CLIENT_PROTOCOL_41,4,2 ## @CLIENT_PROTOCOL_41 .comm _MYSQLD_PACKET_ERR,8,3 ## @MYSQLD_PACKET_ERR .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: expected the first byte to be 0xff, got %d" .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_err_packet ; -- Begin function network_mysqld_proto_get_err_packet .p2align 2 _network_mysqld_proto_get_err_packet: ; @network_mysqld_proto_get_err_packet .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 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 mov x19, x1 mov x20, x0 stp xzr, xzr, [sp, #8] Lloh0: adrp x21, _CLIENT_PROTOCOL_41@GOTPAGE Lloh1: ldr x21, [x21, _CLIENT_PROTOCOL_41@GOTPAGEOFF] ldr w22, [x21] add x1, sp, #40 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_2 ; %bb.1: mov w19, #-1 b LBB0_16 LBB0_2: ldr x2, [sp, #40] Lloh2: adrp x8, _MYSQLD_PACKET_ERR@GOTPAGE Lloh3: ldr x8, [x8, _MYSQLD_PACKET_ERR@GOTPAGEOFF] Lloh4: ldr x8, [x8] cmp x2, x8 b.ne LBB0_5 ; %bb.3: add x1, sp, #28 mov x0, x20 bl _network_mysqld_proto_get_int16 cmp x0, #0 cset w8, ne ldr w9, [x21] ands w10, w9, w22 cset w9, ne cmp w10, #0 ccmp x0, #0, #0, ne b.eq LBB0_6 ; %bb.4: orr w8, w9, w8 b LBB0_9 LBB0_5: Lloh5: adrp x8, _G_STRLOC@GOTPAGE Lloh6: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh7: ldr w1, [x8] Lloh8: adrp x0, l_.str@PAGE Lloh9: add x0, x0, l_.str@PAGEOFF bl _g_critical mov w19, #-1 b LBB0_16 LBB0_6: add x1, sp, #32 mov x0, x20 bl _network_mysqld_proto_get_int8 mov w8, #1 cbnz x0, LBB0_9 ; %bb.7: ldr x9, [sp, #32] cmp x9, #35 b.ne LBB0_9 ; %bb.8: add x1, sp, #16 mov x0, x20 mov w2, #5 bl _network_mysqld_proto_get_string_len cmp x0, #0 cset w8, ne LBB0_9: ldp x9, x10, [x20] ldr x10, [x10] cmp x10, x9 b.le LBB0_17 ; %bb.10: tbnz w8, #0, LBB0_17 ; %bb.11: sub w2, w10, w9 add x1, sp, #8 mov x0, x20 bl _network_mysqld_proto_get_string_len cbz x0, LBB0_18 LBB0_12: mov w19, #-1 ldr x0, [sp, #16] cbz x0, LBB0_14 LBB0_13: bl _g_free LBB0_14: ldr x0, [sp, #8] cbz x0, LBB0_16 ; %bb.15: bl _g_free LBB0_16: mov x0, x19 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 add sp, sp, #96 ret LBB0_17: cmp x10, x9 cset w9, gt orr w8, w9, w8 tbnz w8, #0, LBB0_12 LBB0_18: ldr w8, [sp, #28] str w8, [x19, #8] ldr x1, [sp, #8] cbz x1, LBB0_20 ; %bb.19: ldr w0, [x19, #4] bl _g_string_assign LBB0_20: ldr w0, [x19] ldr x1, [sp, #16] bl _g_string_assign mov w19, #0 ldr x0, [sp, #16] cbnz x0, LBB0_13 b LBB0_14 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _CLIENT_PROTOCOL_41,4,2 ; @CLIENT_PROTOCOL_41 .comm _MYSQLD_PACKET_ERR,8,3 ; @MYSQLD_PACKET_ERR .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: expected the first byte to be 0xff, got %d" .comm _G_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_err_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_fielddef ## -- Begin function network_mysqld_proto_get_fielddef .p2align 4, 0x90 _network_mysqld_proto_get_fielddef: ## @network_mysqld_proto_get_fielddef .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 %rsi, %r14 movq %rdi, %r15 movq _CLIENT_PROTOCOL_41@GOTPCREL(%rip), %rax testl %edx, (%rax) je LBB0_15 ## %bb.1: leaq 40(%r14), %rsi movq %r15, %rdi xorl %edx, %edx callq _network_mysqld_proto_get_lenenc_string movl $-2147483648, %ebx ## imm = 0x80000000 testq %rax, %rax jne LBB0_37 ## %bb.2: leaq 36(%r14), %rsi movq %r15, %rdi xorl %edx, %edx callq _network_mysqld_proto_get_lenenc_string testq %rax, %rax jne LBB0_37 ## %bb.3: leaq 24(%r14), %rsi movq %r15, %rdi xorl %edx, %edx callq _network_mysqld_proto_get_lenenc_string testq %rax, %rax jne LBB0_37 ## %bb.4: leaq 32(%r14), %rsi movq %r15, %rdi xorl %edx, %edx callq _network_mysqld_proto_get_lenenc_string testq %rax, %rax jne LBB0_37 ## %bb.5: leaq 20(%r14), %rsi movq %r15, %rdi xorl %edx, %edx callq _network_mysqld_proto_get_lenenc_string testq %rax, %rax jne LBB0_37 ## %bb.6: leaq 28(%r14), %rsi movq %r15, %rdi xorl %edx, %edx callq _network_mysqld_proto_get_lenenc_string testq %rax, %rax jne LBB0_37 ## %bb.7: movq %r15, %rdi movl $1, %esi callq _network_mysqld_proto_skip testq %rax, %rax jne LBB0_37 ## %bb.8: leaq -56(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_37 ## %bb.9: leaq -64(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int32 testq %rax, %rax jne LBB0_37 ## %bb.10: leaq -60(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax jne LBB0_37 ## %bb.11: leaq -48(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_37 ## %bb.12: leaq -68(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax jne LBB0_37 ## %bb.13: movq %r15, %rdi movl $2, %esi callq _network_mysqld_proto_skip testq %rax, %rax jne LBB0_37 ## %bb.14: movl -56(%rbp), %eax movl %eax, (%r14) movl -64(%rbp), %eax movl %eax, 4(%r14) movl -60(%rbp), %eax movl %eax, 8(%r14) movl -48(%rbp), %eax movl %eax, 12(%r14) movl -68(%rbp), %eax jmp LBB0_36 LBB0_15: leaq 24(%r14), %rsi movq %r15, %rdi xorl %edx, %edx callq _network_mysqld_proto_get_lenenc_string movb $1, %r12b testq %rax, %rax jne LBB0_24 ## %bb.16: leaq 20(%r14), %rsi movq %r15, %rdi xorl %edx, %edx callq _network_mysqld_proto_get_lenenc_string testq %rax, %rax je LBB0_17 LBB0_24: movl -48(%rbp), %ecx LBB0_25: movl $-2147483648, %ebx ## imm = 0x80000000 cmpl $2, %ecx je LBB0_29 ## %bb.26: cmpl $3, %ecx jne LBB0_37 ## %bb.27: movl $1, %r13d testb %r12b, %r12b jne LBB0_33 ## %bb.28: leaq -56(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_33 jmp LBB0_32 LBB0_29: movl $1, %r13d testb %r12b, %r12b jne LBB0_33 ## %bb.30: leaq -56(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax jne LBB0_33 LBB0_32: movl -56(%rbp), %eax movl %eax, 12(%r14) xorl %r13d, %r13d LBB0_33: testl %r13d, %r13d jne LBB0_37 ## %bb.34: leaq -56(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax jne LBB0_37 ## %bb.35: movl $8, (%r14) movl -64(%rbp), %eax movl %eax, 4(%r14) movl -60(%rbp), %eax movl %eax, 8(%r14) movl -56(%rbp), %eax LBB0_36: movl %eax, 16(%r14) xorl %ebx, %ebx LBB0_37: sarl $31, %ebx movl %ebx, %eax addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_17: leaq -48(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax jne LBB0_24 ## %bb.18: cmpl $3, -48(%rbp) jne LBB0_24 ## %bb.19: leaq -64(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int24 testq %rax, %rax jne LBB0_24 ## %bb.20: leaq -48(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 movl -48(%rbp), %ecx movb $1, %r12b testq %rax, %rax jne LBB0_25 ## %bb.21: cmpl $1, %ecx jne LBB0_25 ## %bb.22: leaq -60(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 movb $1, %r12b testq %rax, %rax jne LBB0_24 ## %bb.23: leaq -48(%rbp), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax setne %r12b jmp LBB0_24 .cfi_endproc ## -- End function .comm _CLIENT_PROTOCOL_41,4,2 ## @CLIENT_PROTOCOL_41 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_fielddef ; -- Begin function network_mysqld_proto_get_fielddef .p2align 2 _network_mysqld_proto_get_fielddef: ; @network_mysqld_proto_get_fielddef .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, x1 mov x20, x0 Lloh0: adrp x8, _CLIENT_PROTOCOL_41@GOTPAGE Lloh1: ldr x8, [x8, _CLIENT_PROTOCOL_41@GOTPAGEOFF] Lloh2: ldr w8, [x8] tst w8, w2 b.eq LBB0_15 ; %bb.1: add x1, x19, #40 mov x0, x20 mov x2, #0 bl _network_mysqld_proto_get_lenenc_string cbnz x0, LBB0_28 ; %bb.2: add x1, x19, #36 mov x0, x20 mov x2, #0 bl _network_mysqld_proto_get_lenenc_string cbnz x0, LBB0_28 ; %bb.3: add x1, x19, #24 mov x0, x20 mov x2, #0 bl _network_mysqld_proto_get_lenenc_string cbnz x0, LBB0_28 ; %bb.4: add x1, x19, #32 mov x0, x20 mov x2, #0 bl _network_mysqld_proto_get_lenenc_string cbnz x0, LBB0_28 ; %bb.5: add x1, x19, #20 mov x0, x20 mov x2, #0 bl _network_mysqld_proto_get_lenenc_string cbnz x0, LBB0_28 ; %bb.6: add x1, x19, #28 mov x0, x20 mov x2, #0 bl _network_mysqld_proto_get_lenenc_string cbnz x0, LBB0_28 ; %bb.7: mov x0, x20 mov w1, #1 bl _network_mysqld_proto_skip cbnz x0, LBB0_28 ; %bb.8: add x1, sp, #24 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_28 ; %bb.9: add x1, sp, #20 mov x0, x20 bl _network_mysqld_proto_get_int32 cbnz x0, LBB0_28 ; %bb.10: add x1, sp, #16 mov x0, x20 bl _network_mysqld_proto_get_int8 cbnz x0, LBB0_28 ; %bb.11: add x1, sp, #8 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_28 ; %bb.12: add x1, sp, #4 mov x0, x20 bl _network_mysqld_proto_get_int8 cbnz x0, LBB0_28 ; %bb.13: mov x0, x20 mov w1, #2 bl _network_mysqld_proto_skip cbnz x0, LBB0_28 ; %bb.14: mov w8, #0 ldr x9, [sp, #24] ldr w10, [sp, #20] stp w9, w10, [x19] ldr w9, [sp, #16] ldr x10, [sp, #8] stp w9, w10, [x19, #8] ldr w9, [sp, #4] b LBB0_38 LBB0_15: add x1, x19, #24 mov x0, x20 mov x2, #0 bl _network_mysqld_proto_get_lenenc_string cbnz x0, LBB0_17 ; %bb.16: add x1, x19, #20 mov x0, x20 mov x2, #0 bl _network_mysqld_proto_get_lenenc_string cbz x0, LBB0_30 LBB0_17: mov w8, #1 LBB0_18: ldr w9, [sp, #8] LBB0_19: cmp w9, #2 b.eq LBB0_24 ; %bb.20: cmp w9, #3 b.ne LBB0_28 ; %bb.21: tbnz w8, #0, LBB0_26 ; %bb.22: add x1, sp, #24 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_26 ; %bb.23: mov w8, #0 ldr x9, [sp, #24] str w9, [x19, #12] cbnz w8, LBB0_28 b LBB0_27 LBB0_24: tbnz w8, #0, LBB0_26 ; %bb.25: add x1, sp, #24 mov x0, x20 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_39 LBB0_26: mov w8, #1 cbnz w8, LBB0_28 LBB0_27: add x1, sp, #24 mov x0, x20 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_37 LBB0_28: mov w8, #-2147483648 LBB0_29: asr w0, w8, #31 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload add sp, sp, #64 ret LBB0_30: add x1, sp, #8 mov x0, x20 bl _network_mysqld_proto_get_int8 mov w8, #1 cbnz x0, LBB0_18 ; %bb.31: ldr w9, [sp, #8] cmp w9, #3 b.ne LBB0_18 ; %bb.32: add x1, sp, #20 mov x0, x20 bl _network_mysqld_proto_get_int24 cbnz x0, LBB0_17 ; %bb.33: add x1, sp, #8 mov x0, x20 bl _network_mysqld_proto_get_int8 ldr w9, [sp, #8] mov w8, #1 cbnz x0, LBB0_19 ; %bb.34: cmp w9, #1 b.ne LBB0_19 ; %bb.35: add x1, sp, #16 mov x0, x20 bl _network_mysqld_proto_get_int8 cbnz x0, LBB0_17 ; %bb.36: add x1, sp, #8 mov x0, x20 bl _network_mysqld_proto_get_int8 cmp x0, #0 cset w8, ne b LBB0_18 LBB0_37: mov w8, #0 mov w9, #8 ldr w10, [sp, #20] stp w9, w10, [x19] ldr w9, [sp, #16] str w9, [x19, #8] ldr w9, [sp, #24] LBB0_38: str w9, [x19, #16] b LBB0_29 LBB0_39: mov w8, #0 ldr w9, [sp, #24] str w9, [x19, #12] cbnz w8, LBB0_28 b LBB0_27 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _CLIENT_PROTOCOL_41,4,2 ; @CLIENT_PROTOCOL_41 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_fielddef.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_fielddefs ## -- Begin function network_mysqld_proto_get_fielddefs .p2align 4, 0x90 _network_mysqld_proto_get_fielddefs: ## @network_mysqld_proto_get_fielddefs .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 %rsi, %r15 movq %rdi, %r14 movq _CLIENT_PROTOCOL_41@GOTPCREL(%rip), %rax movl (%rax), %r12d movl (%rdi), %eax movl %eax, -56(%rbp) movq $0, -64(%rbp) leaq -64(%rbp), %rdi callq _network_mysqld_proto_skip_network_header testq %rax, %rax je LBB0_3 LBB0_1: xorl %ebx, %ebx LBB0_2: movq %rbx, %rax addq $56, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_3: leaq -64(%rbp), %rdi leaq -44(%rbp), %rsi callq _network_mysqld_proto_peek_lenenc_type xorl %ebx, %ebx testq %rax, %rax jne LBB0_2 ## %bb.4: cmpl $128, -44(%rbp) jne LBB0_2 ## %bb.5: leaq -64(%rbp), %rdi leaq -88(%rbp), %rsi callq _network_mysqld_proto_get_lenenc_int xorl %ebx, %ebx testq %rax, %rax jne LBB0_2 ## %bb.6: cmpq $0, -88(%rbp) je LBB0_2 ## %bb.7: jle LBB0_12 ## %bb.8: movl %r12d, -68(%rbp) ## 4-byte Spill movq %r15, -80(%rbp) ## 8-byte Spill leaq -64(%rbp), %rbx xorl %r12d, %r12d .p2align 4, 0x90 LBB0_9: ## =>This Inner Loop Header: Depth=1 movq 8(%r14), %r14 movq %r14, %rdi callq _g_assert movl (%r14), %eax movl %eax, -56(%rbp) movq $0, -64(%rbp) xorl %eax, %eax callq _network_mysqld_proto_fielddef_new movq %rax, %r13 movq %rbx, %rdi callq _network_mysqld_proto_skip_network_header testq %rax, %rax jne LBB0_16 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movq %rbx, %r15 movq %rbx, %rdi movq %r13, %rsi movl -68(%rbp), %edx ## 4-byte Reload callq _network_mysqld_proto_get_fielddef movq %rax, %rbx movq -80(%rbp), %rdi ## 8-byte Reload movq %r13, %rsi callq _g_ptr_array_add testq %rbx, %rbx jne LBB0_1 ## %bb.11: ## in Loop: Header=BB0_9 Depth=1 incq %r12 cmpq -88(%rbp), %r12 movq %r15, %rbx jl LBB0_9 LBB0_12: movq 8(%r14), %rbx testq %rbx, %rbx je LBB0_1 ## %bb.13: movl (%rbx), %eax movl %eax, -56(%rbp) movq $0, -64(%rbp) leaq -64(%rbp), %rdi callq _network_mysqld_proto_skip_network_header movb $1, %cl testq %rax, %rax jne LBB0_15 ## %bb.14: leaq -64(%rbp), %rdi leaq -44(%rbp), %rsi callq _network_mysqld_proto_peek_lenenc_type testq %rax, %rax setne %cl LBB0_15: movl -44(%rbp), %eax movq _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPCREL(%rip), %rdx xorl %esi, %esi cmpl (%rdx), %eax cmovneq %rsi, %rbx testb %cl, %cl cmovneq %rsi, %rbx jmp LBB0_2 LBB0_16: movq -80(%rbp), %rdi ## 8-byte Reload movq %r13, %rsi callq _g_ptr_array_add jmp LBB0_1 .cfi_endproc ## -- End function .comm _CLIENT_PROTOCOL_41,4,2 ## @CLIENT_PROTOCOL_41 .comm _NETWORK_MYSQLD_LENENC_TYPE_EOF,4,2 ## @NETWORK_MYSQLD_LENENC_TYPE_EOF .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_fielddefs ; -- Begin function network_mysqld_proto_get_fielddefs .p2align 2 _network_mysqld_proto_get_fielddefs: ; @network_mysqld_proto_get_fielddefs .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 x20, x1 mov x19, x0 Lloh0: adrp x8, _CLIENT_PROTOCOL_41@GOTPAGE Lloh1: ldr x8, [x8, _CLIENT_PROTOCOL_41@GOTPAGEOFF] Lloh2: ldr w21, [x8] ldr w8, [x0] str w8, [sp, #24] str xzr, [sp, #16] add x0, sp, #16 bl _network_mysqld_proto_skip_network_header mov x8, x0 mov x0, #0 cbz x8, LBB0_2 LBB0_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 add sp, sp, #96 ret LBB0_2: add x0, sp, #16 add x1, sp, #4 bl _network_mysqld_proto_peek_lenenc_type mov x8, x0 mov x0, #0 cbnz x8, LBB0_1 ; %bb.3: ldr w8, [sp, #4] cmp w8, #128 b.ne LBB0_1 ; %bb.4: add x0, sp, #16 add x1, sp, #8 bl _network_mysqld_proto_get_lenenc_int mov x8, x0 mov x0, #0 cbnz x8, LBB0_1 ; %bb.5: ldr x8, [sp, #8] cbz x8, LBB0_1 ; %bb.6: cmp x8, #1 b.lt LBB0_11 ; %bb.7: mov x24, #0 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr x19, [x19, #8] mov x0, x19 bl _g_assert ldr w8, [x19] str w8, [sp, #24] str xzr, [sp, #16] bl _network_mysqld_proto_fielddef_new mov x22, x0 add x0, sp, #16 bl _network_mysqld_proto_skip_network_header cbnz x0, LBB0_14 ; %bb.9: ; in Loop: Header=BB0_8 Depth=1 add x0, sp, #16 mov x1, x22 mov x2, x21 bl _network_mysqld_proto_get_fielddef mov x23, x0 mov x0, x20 mov x1, x22 bl _g_ptr_array_add cbnz x23, LBB0_15 ; %bb.10: ; in Loop: Header=BB0_8 Depth=1 add x24, x24, #1 ldr x8, [sp, #8] cmp x24, x8 b.lt LBB0_8 LBB0_11: ldr x19, [x19, #8] cbz x19, LBB0_15 ; %bb.12: ldr w8, [x19] str w8, [sp, #24] str xzr, [sp, #16] add x0, sp, #16 bl _network_mysqld_proto_skip_network_header cbz x0, LBB0_16 ; %bb.13: mov w8, #1 b LBB0_17 LBB0_14: mov x0, x20 mov x1, x22 bl _g_ptr_array_add LBB0_15: mov x0, #0 b LBB0_1 LBB0_16: add x0, sp, #16 add x1, sp, #4 bl _network_mysqld_proto_peek_lenenc_type cmp x0, #0 cset w8, ne LBB0_17: ldr w9, [sp, #4] Lloh3: adrp x10, _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPAGE Lloh4: ldr x10, [x10, _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPAGEOFF] Lloh5: ldr w10, [x10] cmp w9, w10 cset w9, ne orr w8, w8, w9 cmp w8, #0 csel x0, xzr, x19, ne b LBB0_1 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _CLIENT_PROTOCOL_41,4,2 ; @CLIENT_PROTOCOL_41 .comm _NETWORK_MYSQLD_LENENC_TYPE_EOF,4,2 ; @NETWORK_MYSQLD_LENENC_TYPE_EOF .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_fielddefs.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_next_binary_row ## -- Begin function network_mysqld_proto_get_next_binary_row .p2align 4, 0x90 _network_mysqld_proto_get_next_binary_row: ## @network_mysqld_proto_get_next_binary_row .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 subq $24, %rsp .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movl 8(%rdi), %eax movl %eax, -32(%rbp) movq $0, -40(%rbp) leaq -40(%rbp), %rdi callq _network_mysqld_proto_skip_network_header testq %rax, %rax jne LBB0_1 ## %bb.2: leaq -40(%rbp), %rdi leaq -48(%rbp), %rsi callq _network_mysqld_proto_peek_lenenc_type testq %rax, %rax jne LBB0_1 ## %bb.4: movq _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPCREL(%rip), %rax movq (%rax), %rax cmpq -48(%rbp), %rax je LBB0_1 ## %bb.6: leaq -40(%rbp), %rdi movq %r15, %rsi movq %r14, %rdx callq _network_mysqld_proto_get_binary_row testq %rax, %rax je LBB0_8 LBB0_1: xorl %eax, %eax LBB0_9: addq $24, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_8: movq (%rbx), %rax jmp LBB0_9 .cfi_endproc ## -- End function .comm _NETWORK_MYSQLD_LENENC_TYPE_EOF,8,3 ## @NETWORK_MYSQLD_LENENC_TYPE_EOF .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_next_binary_row ; -- Begin function network_mysqld_proto_get_next_binary_row .p2align 2 _network_mysqld_proto_get_next_binary_row: ; @network_mysqld_proto_get_next_binary_row .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 x20, x2 mov x21, x1 mov x19, x0 ldr w8, [x0, #8] str w8, [sp, #24] str xzr, [sp, #16] add x0, sp, #16 bl _network_mysqld_proto_skip_network_header mov x8, x0 mov x0, #0 cbnz x8, LBB0_5 ; %bb.1: add x0, sp, #16 add x1, sp, #8 bl _network_mysqld_proto_peek_lenenc_type cbnz x0, LBB0_4 ; %bb.2: Lloh0: adrp x8, _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPAGE Lloh1: ldr x8, [x8, _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPAGEOFF] Lloh2: ldr x8, [x8] ldr x9, [sp, #8] cmp x8, x9 b.eq LBB0_4 ; %bb.3: add x0, sp, #16 mov x1, x21 mov x2, x20 bl _network_mysqld_proto_get_binary_row cbz x0, LBB0_6 LBB0_4: mov x0, #0 LBB0_5: 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 LBB0_6: ldr x0, [x19] b LBB0_5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _NETWORK_MYSQLD_LENENC_TYPE_EOF,8,3 ; @NETWORK_MYSQLD_LENENC_TYPE_EOF .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_next_binary_row.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_ok_packet ## -- Begin function network_mysqld_proto_get_ok_packet .p2align 4, 0x90 _network_mysqld_proto_get_ok_packet: ## @network_mysqld_proto_get_ok_packet .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 %rsi, %r14 movq %rdi, %rbx movq $0, -48(%rbp) movq _CLIENT_PROTOCOL_41@GOTPCREL(%rip), %r13 movl (%r13), %r12d leaq -80(%rbp), %rsi callq _network_mysqld_proto_get_int8 movl $-1, %r15d testq %rax, %rax jne LBB0_13 ## %bb.1: movq -80(%rbp), %rdx testq %rdx, %rdx je LBB0_3 ## %bb.2: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _g_critical jmp LBB0_13 LBB0_3: leaq -72(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_lenenc_int testq %rax, %rax jne LBB0_13 ## %bb.4: leaq -64(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_lenenc_int testq %rax, %rax jne LBB0_13 ## %bb.5: leaq -56(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int16 andl (%r13), %r12d je LBB0_9 ## %bb.6: testq %rax, %rax jne LBB0_9 ## %bb.7: leaq -48(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_13 ## %bb.8: movq -48(%rbp), %rax jmp LBB0_12 LBB0_9: testl %r12d, %r12d jne LBB0_13 ## %bb.10: testq %rax, %rax jne LBB0_13 ## %bb.11: xorl %eax, %eax LBB0_12: movq -72(%rbp), %rcx movq %rcx, 24(%r14) movq -64(%rbp), %rcx movq %rcx, 16(%r14) movq -56(%rbp), %rcx movq %rcx, 8(%r14) movq %rax, (%r14) xorl %r15d, %r15d LBB0_13: movl %r15d, %eax addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _CLIENT_PROTOCOL_41,4,2 ## @CLIENT_PROTOCOL_41 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: expected the first byte to be 0, got %d" .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_ok_packet ; -- Begin function network_mysqld_proto_get_ok_packet .p2align 2 _network_mysqld_proto_get_ok_packet: ; @network_mysqld_proto_get_ok_packet .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 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 mov x19, x1 mov x20, x0 str xzr, [sp, #8] Lloh0: adrp x21, _CLIENT_PROTOCOL_41@GOTPAGE Lloh1: ldr x21, [x21, _CLIENT_PROTOCOL_41@GOTPAGEOFF] ldr w22, [x21] add x1, sp, #40 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_2 LBB0_1: mov w0, #-1 b LBB0_4 LBB0_2: ldr x2, [sp, #40] cbz x2, LBB0_5 ; %bb.3: Lloh2: adrp x8, _G_STRLOC@GOTPAGE Lloh3: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh4: ldr w1, [x8] Lloh5: adrp x0, l_.str@PAGE Lloh6: add x0, x0, l_.str@PAGEOFF bl _g_critical mov w0, #-1 LBB0_4: 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 add sp, sp, #96 ret LBB0_5: add x1, sp, #32 mov x0, x20 bl _network_mysqld_proto_get_lenenc_int cbnz x0, LBB0_1 ; %bb.6: add x1, sp, #24 mov x0, x20 bl _network_mysqld_proto_get_lenenc_int cbnz x0, LBB0_1 ; %bb.7: add x1, sp, #16 mov x0, x20 bl _network_mysqld_proto_get_int16 ldr w8, [x21] and w8, w8, w22 cmp w8, #0 ccmp x0, #0, #0, ne b.eq LBB0_10 ; %bb.8: cmp w8, #0 ccmp x0, #0, #0, eq b.ne LBB0_1 ; %bb.9: mov x8, #0 b LBB0_12 LBB0_10: add x1, sp, #8 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_1 ; %bb.11: ldr x8, [sp, #8] LBB0_12: mov w0, #0 ldp x10, x9, [sp, #24] stp x10, x9, [x19, #16] ldr x9, [sp, #16] stp x8, x9, [x19] b LBB0_4 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh5, Lloh6 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _CLIENT_PROTOCOL_41,4,2 ; @CLIENT_PROTOCOL_41 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: expected the first byte to be 0, got %d" .comm _G_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_ok_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_close_packet ## -- Begin function network_mysqld_proto_get_stmt_close_packet .p2align 4, 0x90 _network_mysqld_proto_get_stmt_close_packet: ## @network_mysqld_proto_get_stmt_close_packet .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 leaq -32(%rbp), %rsi callq _network_mysqld_proto_get_int8 movl $-1, %r15d testq %rax, %rax jne LBB0_4 ## %bb.1: movq _COM_STMT_CLOSE@GOTPCREL(%rip), %rax movq (%rax), %rdx movq -32(%rbp), %rcx cmpq %rcx, %rdx jne LBB0_2 ## %bb.3: movq %rbx, %rdi movq %r14, %rsi callq _network_mysqld_proto_get_int32 xorl %r15d, %r15d negq %rax sbbl %r15d, %r15d jmp LBB0_4 LBB0_2: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _g_critical LBB0_4: movl %r15d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _COM_STMT_CLOSE,8,3 ## @COM_STMT_CLOSE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: expected the first byte to be %02x, got %02x" .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_close_packet ; -- Begin function network_mysqld_proto_get_stmt_close_packet .p2align 2 _network_mysqld_proto_get_stmt_close_packet: ; @network_mysqld_proto_get_stmt_close_packet .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 add x1, sp, #8 bl _network_mysqld_proto_get_int8 cbnz x0, LBB0_4 ; %bb.1: Lloh0: adrp x8, _COM_STMT_CLOSE@GOTPAGE Lloh1: ldr x8, [x8, _COM_STMT_CLOSE@GOTPAGEOFF] Lloh2: ldr x2, [x8] ldr x3, [sp, #8] cmp x2, x3 b.ne LBB0_3 ; %bb.2: mov x0, x20 mov x1, x19 bl _network_mysqld_proto_get_int32 cmp x0, #0 csetm w0, ne b LBB0_5 LBB0_3: Lloh3: adrp x8, _G_STRLOC@GOTPAGE Lloh4: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh5: ldr w1, [x8] Lloh6: adrp x0, l_.str@PAGE Lloh7: add x0, x0, l_.str@PAGEOFF bl _g_critical 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 add sp, sp, #48 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _COM_STMT_CLOSE,8,3 ; @COM_STMT_CLOSE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: expected the first byte to be %02x, got %02x" .comm _G_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_stmt_close_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_execute_packet ## -- Begin function network_mysqld_proto_get_stmt_execute_packet .p2align 4, 0x90 _network_mysqld_proto_get_stmt_execute_packet: ## @network_mysqld_proto_get_stmt_execute_packet .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, %r12d movq %rsi, %r14 movq %rdi, %r15 addq $32, %rsi callq _network_mysqld_proto_get_stmt_execute_packet_stmt_id movb $1, %r13b testq %rax, %rax jne LBB0_2 ## %bb.1: leaq 24(%r14), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int8 testq %rax, %rax je LBB0_7 LBB0_2: testl %r12d, %r12d je LBB0_8 LBB0_3: leal 7(%r12), %eax leal 14(%r12), %ebx testl %eax, %eax cmovnsl %eax, %ebx sarl $3, %ebx movl %ebx, %edi callq _g_string_sized_new movq %rax, %rcx testb %r13b, %r13b jne LBB0_6 ## %bb.4: movq %r15, %rdi movl %ebx, %esi movq %rcx, -56(%rbp) ## 8-byte Spill movq -56(%rbp), %rdx ## 8-byte Reload callq _network_mysqld_proto_get_gstring_len movq -56(%rbp), %rcx ## 8-byte Reload testq %rax, %rax jne LBB0_6 ## %bb.5: leaq 8(%r14), %rbx movq %r15, %rdi movq %rbx, %rsi callq _network_mysqld_proto_get_int8 movq -56(%rbp), %rcx ## 8-byte Reload testq %rax, %rax je LBB0_10 LBB0_6: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rcx, %rdi callq _g_string_free movl $-1, %r13d jmp LBB0_9 LBB0_7: leaq 16(%r14), %rsi movq %r15, %rdi callq _network_mysqld_proto_get_int32 testq %rax, %rax setne %r13b testl %r12d, %r12d jne LBB0_3 LBB0_8: movzbl %r13b, %r13d negl %r13d LBB0_9: movl %r13d, %eax addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_10: xorl %r13d, %r13d cmpq $0, (%rbx) movl $0, %ecx je LBB0_24 ## %bb.11: movl $0, %ecx testl %r12d, %r12d jle LBB0_24 ## %bb.12: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_13: ## =>This Inner Loop Header: Depth=1 movq %r15, %rdi leaq -44(%rbp), %rsi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_23 ## %bb.14: ## in Loop: Header=BB0_13 Depth=1 movzbl -44(%rbp), %edi callq _network_mysqld_type_new testq %rax, %rax je LBB0_22 ## %bb.15: ## in Loop: Header=BB0_13 Depth=1 movq -56(%rbp), %rcx ## 8-byte Reload movq (%rcx), %rcx movl %ebx, %edx shrl $3, %edx movl (%rcx,%rdx,4), %ecx movl %ebx, %edx andb $7, %dl movzbl %dl, %edx xorl %esi, %esi btl %edx, %ecx setb %sil movl %esi, (%rax) movl -44(%rbp), %ecx shrl $15, %ecx andl $1, %ecx movl %ecx, 4(%rax) movl (%r14), %edi movq %rax, %rsi callq _g_ptr_array_add incl %ebx cmpl %r12d, %ebx jl LBB0_13 ## %bb.16: movl $1, %ebx .p2align 4, 0x90 LBB0_17: ## =>This Inner Loop Header: Depth=1 leal -1(%rbx), %esi movl (%r14), %edi callq _g_ptr_array_index xorl %ecx, %ecx cmpl $0, (%rax) jne LBB0_19 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movq %r15, %rdi movq %rax, %rsi callq _network_mysqld_proto_binary_get_type xorl %ecx, %ecx testq %rax, %rax setne %cl LBB0_19: ## in Loop: Header=BB0_17 Depth=1 testl %ecx, %ecx jne LBB0_24 ## %bb.20: ## in Loop: Header=BB0_17 Depth=1 leal 1(%rbx), %eax cmpl %r12d, %ebx movl %eax, %ebx jl LBB0_17 jmp LBB0_24 LBB0_22: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi movzbl -44(%rbp), %edx leaq L_.str(%rip), %rdi callq _g_critical LBB0_23: movl $1, %ecx LBB0_24: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq -56(%rbp), %rdi ## 8-byte Reload movl %ecx, %ebx callq _g_string_free negl %ebx sbbl %r13d, %r13d jmp LBB0_9 .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: couldn't create type = %d" .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_execute_packet ; -- Begin function network_mysqld_proto_get_stmt_execute_packet .p2align 2 _network_mysqld_proto_get_stmt_execute_packet: ; @network_mysqld_proto_get_stmt_execute_packet .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 x19, x2 mov x20, x1 mov x21, x0 add x1, x1, #32 bl _network_mysqld_proto_get_stmt_execute_packet_stmt_id cbnz x0, LBB0_2 ; %bb.1: add x1, x20, #24 mov x0, x21 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_7 LBB0_2: mov w24, #1 cbz w19, LBB0_8 LBB0_3: add w8, w19, #7 add w9, w19, #14 cmp w8, #0 csel w8, w9, w8, lt asr w23, w8, #3 mov x0, x23 bl _g_string_sized_new mov x22, x0 tbnz w24, #0, LBB0_6 ; %bb.4: mov x0, x21 mov x1, x23 mov x2, x22 bl _network_mysqld_proto_get_gstring_len cbnz x0, LBB0_6 ; %bb.5: add x23, x20, #8 mov x0, x21 mov x1, x23 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_10 LBB0_6: Lloh0: adrp x8, _TRUE@GOTPAGE Lloh1: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov x0, x22 bl _g_string_free mov w0, #-1 b LBB0_9 LBB0_7: add x1, x20, #16 mov x0, x21 bl _network_mysqld_proto_get_int32 cmp x0, #0 cset w24, ne cbnz w19, LBB0_3 LBB0_8: sbfx w0, w24, #0, #1 LBB0_9: 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 LBB0_10: mov w24, #0 ldr x8, [x23] cbz x8, LBB0_23 ; %bb.11: cmp w19, #1 b.lt LBB0_23 ; %bb.12: mov w23, #0 LBB0_13: ; =>This Inner Loop Header: Depth=1 add x1, sp, #12 mov x0, x21 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_22 ; %bb.14: ; in Loop: Header=BB0_13 Depth=1 ldrb w0, [sp, #12] bl _network_mysqld_type_new cbz x0, LBB0_21 ; %bb.15: ; in Loop: Header=BB0_13 Depth=1 mov x1, x0 ldr x8, [x22] lsr w9, w23, #3 ldr w8, [x8, w9, uxtw #2] and w9, w23, #0x7 lsr w8, w8, w9 and w8, w8, #0x1 str w8, [x0] ldr w8, [sp, #12] ubfx w8, w8, #15, #1 str w8, [x0, #4] ldr w0, [x20] bl _g_ptr_array_add add w23, w23, #1 cmp w23, w19 b.lt LBB0_13 ; %bb.16: mov w23, #1 b LBB0_19 LBB0_17: ; in Loop: Header=BB0_19 Depth=1 mov x1, x0 mov x0, x21 bl _network_mysqld_proto_binary_get_type cmp x0, #0 cset w24, ne cbnz w24, LBB0_23 LBB0_18: ; in Loop: Header=BB0_19 Depth=1 add w8, w23, #1 cmp w23, w19 mov x23, x8 b.ge LBB0_23 LBB0_19: ; =>This Inner Loop Header: Depth=1 sub w1, w23, #1 ldr w0, [x20] bl _g_ptr_array_index ldr w8, [x0] cbz w8, LBB0_17 ; %bb.20: ; in Loop: Header=BB0_19 Depth=1 mov w24, #0 cbz w24, LBB0_18 b LBB0_23 LBB0_21: Lloh3: adrp x8, _G_STRLOC@GOTPAGE Lloh4: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh5: ldr w1, [x8] ldrb w2, [sp, #12] Lloh6: adrp x0, l_.str@PAGE Lloh7: add x0, x0, l_.str@PAGEOFF bl _g_critical LBB0_22: mov w24, #1 LBB0_23: Lloh8: adrp x8, _TRUE@GOTPAGE Lloh9: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh10: ldr w1, [x8] mov x0, x22 bl _g_string_free cmp w24, #0 csetm w0, ne b LBB0_9 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: couldn't create type = %d" .comm _G_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_stmt_execute_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_execute_packet_stmt_id ## -- Begin function network_mysqld_proto_get_stmt_execute_packet_stmt_id .p2align 4, 0x90 _network_mysqld_proto_get_stmt_execute_packet_stmt_id: ## @network_mysqld_proto_get_stmt_execute_packet_stmt_id .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 leaq -32(%rbp), %rsi callq _network_mysqld_proto_get_int8 movl $-1, %r15d testq %rax, %rax jne LBB0_4 ## %bb.1: movq _COM_STMT_EXECUTE@GOTPCREL(%rip), %rax movq (%rax), %rdx movq -32(%rbp), %rcx cmpq %rcx, %rdx jne LBB0_2 ## %bb.3: movq %rbx, %rdi movq %r14, %rsi callq _network_mysqld_proto_get_int32 xorl %r15d, %r15d negq %rax sbbl %r15d, %r15d jmp LBB0_4 LBB0_2: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _g_critical LBB0_4: movl %r15d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _COM_STMT_EXECUTE,8,3 ## @COM_STMT_EXECUTE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: expected the first byte to be %02x, got %02x" .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_execute_packet_stmt_id ; -- Begin function network_mysqld_proto_get_stmt_execute_packet_stmt_id .p2align 2 _network_mysqld_proto_get_stmt_execute_packet_stmt_id: ; @network_mysqld_proto_get_stmt_execute_packet_stmt_id .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 add x1, sp, #8 bl _network_mysqld_proto_get_int8 cbnz x0, LBB0_4 ; %bb.1: Lloh0: adrp x8, _COM_STMT_EXECUTE@GOTPAGE Lloh1: ldr x8, [x8, _COM_STMT_EXECUTE@GOTPAGEOFF] Lloh2: ldr x2, [x8] ldr x3, [sp, #8] cmp x2, x3 b.ne LBB0_3 ; %bb.2: mov x0, x20 mov x1, x19 bl _network_mysqld_proto_get_int32 cmp x0, #0 csetm w0, ne b LBB0_5 LBB0_3: Lloh3: adrp x8, _G_STRLOC@GOTPAGE Lloh4: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh5: ldr w1, [x8] Lloh6: adrp x0, l_.str@PAGE Lloh7: add x0, x0, l_.str@PAGEOFF bl _g_critical 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 add sp, sp, #48 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _COM_STMT_EXECUTE,8,3 ; @COM_STMT_EXECUTE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: expected the first byte to be %02x, got %02x" .comm _G_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_stmt_execute_packet_stmt_id.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_prepare_ok_packet ## -- Begin function network_mysqld_proto_get_stmt_prepare_ok_packet .p2align 4, 0x90 _network_mysqld_proto_get_stmt_prepare_ok_packet: ## @network_mysqld_proto_get_stmt_prepare_ok_packet .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 subq $40, %rsp .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r14 movq %rdi, %rbx leaq -32(%rbp), %rsi callq _network_mysqld_proto_get_int8 movl $-1, %r15d testq %rax, %rax jne LBB0_9 ## %bb.1: movl -32(%rbp), %ecx testl %ecx, %ecx je LBB0_3 ## %bb.2: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi xorl %edx, %edx callq _g_critical jmp LBB0_9 LBB0_3: leaq -28(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int32 testq %rax, %rax jne LBB0_9 ## %bb.4: leaq -56(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_9 ## %bb.5: leaq -48(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_9 ## %bb.6: movq %rbx, %rdi movl $1, %esi callq _network_mysqld_proto_skip testq %rax, %rax jne LBB0_9 ## %bb.7: leaq -40(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_int16 testq %rax, %rax jne LBB0_9 ## %bb.8: movl -28(%rbp), %eax movl %eax, 24(%r14) movq -56(%rbp), %rax movq %rax, 16(%r14) movq -48(%rbp), %rax movq %rax, 8(%r14) movq -40(%rbp), %rax movq %rax, (%r14) xorl %r15d, %r15d LBB0_9: movl %r15d, %eax addq $40, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: expected the first byte to be %02x, got %02x" .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_prepare_ok_packet ; -- Begin function network_mysqld_proto_get_stmt_prepare_ok_packet .p2align 2 _network_mysqld_proto_get_stmt_prepare_ok_packet: ; @network_mysqld_proto_get_stmt_prepare_ok_packet .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 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 mov x19, x1 mov x20, x0 sub x1, x29, #20 bl _network_mysqld_proto_get_int8 cbz x0, LBB0_2 LBB0_1: mov w0, #-1 b LBB0_4 LBB0_2: ldur w3, [x29, #-20] cbz w3, LBB0_5 ; %bb.3: Lloh0: adrp x8, _G_STRLOC@GOTPAGE Lloh1: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF mov w2, #0 bl _g_critical mov w0, #-1 LBB0_4: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload add sp, sp, #80 ret LBB0_5: add x1, sp, #12 mov x0, x20 bl _network_mysqld_proto_get_int32 cbnz x0, LBB0_1 ; %bb.6: add x1, sp, #32 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_1 ; %bb.7: add x1, sp, #24 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_1 ; %bb.8: mov x0, x20 mov w1, #1 bl _network_mysqld_proto_skip cbnz x0, LBB0_1 ; %bb.9: add x1, sp, #16 mov x0, x20 bl _network_mysqld_proto_get_int16 cbnz x0, LBB0_1 ; %bb.10: ldr w8, [sp, #12] str w8, [x19, #24] ldr x10, [sp, #32] ldp x9, x8, [sp, #16] stp x8, x10, [x19, #8] str x9, [x19] b LBB0_4 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: expected the first byte to be %02x, got %02x" .comm _G_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_stmt_prepare_ok_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_prepare_packet ## -- Begin function network_mysqld_proto_get_stmt_prepare_packet .p2align 4, 0x90 _network_mysqld_proto_get_stmt_prepare_packet: ## @network_mysqld_proto_get_stmt_prepare_packet .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, %r15 movq %rdi, %rbx leaq -32(%rbp), %rsi callq _network_mysqld_proto_get_int8 movl $-1, %r14d testq %rax, %rax jne LBB0_4 ## %bb.1: movq _COM_STMT_PREPARE@GOTPCREL(%rip), %rax movq (%rax), %rdx movq -32(%rbp), %rcx cmpq %rcx, %rdx jne LBB0_2 ## %bb.3: movl (%r15), %edi movq (%rbx), %rax movq 8(%rbx), %rcx movq 8(%rcx), %rsi addq %rax, %rsi movq (%rcx), %rdx subq %rax, %rdx callq _g_string_assign_len xorl %r14d, %r14d jmp LBB0_4 LBB0_2: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _g_critical LBB0_4: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _COM_STMT_PREPARE,8,3 ## @COM_STMT_PREPARE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: expected the first byte to be %02x, got %02x" .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_stmt_prepare_packet ; -- Begin function network_mysqld_proto_get_stmt_prepare_packet .p2align 2 _network_mysqld_proto_get_stmt_prepare_packet: ; @network_mysqld_proto_get_stmt_prepare_packet .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 x20, x1 mov x19, x0 add x1, sp, #8 bl _network_mysqld_proto_get_int8 cbnz x0, LBB0_4 ; %bb.1: Lloh0: adrp x8, _COM_STMT_PREPARE@GOTPAGE Lloh1: ldr x8, [x8, _COM_STMT_PREPARE@GOTPAGEOFF] Lloh2: ldr x2, [x8] ldr x3, [sp, #8] cmp x2, x3 b.ne LBB0_3 ; %bb.2: ldr w0, [x20] ldp x9, x8, [x19] ldp x8, x10, [x8] add x1, x9, x10 sub x2, x8, x9 bl _g_string_assign_len mov w0, #0 b LBB0_5 LBB0_3: Lloh3: adrp x8, _G_STRLOC@GOTPAGE Lloh4: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh5: ldr w1, [x8] Lloh6: adrp x0, l_.str@PAGE Lloh7: add x0, x0, l_.str@PAGEOFF bl _g_critical 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 add sp, sp, #48 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _COM_STMT_PREPARE,8,3 ; @COM_STMT_PREPARE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s: expected the first byte to be %02x, got %02x" .comm _G_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_proto_get_stmt_prepare_packet.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_resultset_row_free ## -- Begin function network_mysqld_resultset_row_free .p2align 4, 0x90 _network_mysqld_resultset_row_free: ## @network_mysqld_resultset_row_free .cfi_startproc ## %bb.0: testq %rdi, %rdi je LBB0_5 ## %bb.1: 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 cmpq $0, (%rdi) jle LBB0_4 ## %bb.2: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi movq %rbx, %rsi callq _g_ptr_array_index movq %rax, %rdi callq _network_mysqld_type_free incq %rbx cmpq (%r14), %rbx jl LBB0_3 LBB0_4: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _g_ptr_array_free ## TAILCALL LBB0_5: retq .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_resultset_row_free ; -- Begin function network_mysqld_resultset_row_free .p2align 2 _network_mysqld_resultset_row_free: ; @network_mysqld_resultset_row_free .cfi_startproc ; %bb.0: cbz x0, LBB0_5 ; %bb.1: 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 x8, [x0] cmp x8, #1 b.lt LBB0_4 ; %bb.2: mov x20, #0 LBB0_3: ; =>This Inner Loop Header: Depth=1 mov x0, x19 mov x1, x20 bl _g_ptr_array_index bl _network_mysqld_type_free add x20, x20, #1 ldr x8, [x19] cmp x20, x8 b.lt LBB0_3 LBB0_4: Lloh0: adrp x8, _TRUE@GOTPAGE Lloh1: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _g_ptr_array_free LBB0_5: .cfi_def_cfa wsp, 0 .cfi_same_value w30 .cfi_same_value w29 .cfi_same_value w19 .cfi_same_value w20 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_resultset_row_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_resultset_row_new ## -- Begin function network_mysqld_resultset_row_new .p2align 4, 0x90 _network_mysqld_resultset_row_new: ## @network_mysqld_resultset_row_new .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %eax, %eax popq %rbp jmp _g_ptr_array_new ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_resultset_row_new ; -- Begin function network_mysqld_resultset_row_new .p2align 2 _network_mysqld_resultset_row_new: ; @network_mysqld_resultset_row_new .cfi_startproc ; %bb.0: b _g_ptr_array_new .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_network_mysqld_resultset_row_new.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sql_token_equal ## -- Begin function sql_token_equal .p2align 4, 0x90 _sql_token_equal: ## @sql_token_equal .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 _FALSE@GOTPCREL(%rip), %r15 cmpq %rsi, (%rdi) jne LBB0_4 ## %bb.1: movq _TK_LITERAL@GOTPCREL(%rip), %rax cmpq %rsi, (%rax) jne LBB0_3 ## %bb.2: movq %rdx, %r14 movq %rdi, %rbx movq 8(%rdi), %rdi callq _g_string_ascii_up movq 8(%rbx), %rax movl (%rax), %edi movq %r14, %rsi callq _strcmp testq %rax, %rax jne LBB0_4 LBB0_3: movq _TRUE@GOTPCREL(%rip), %r15 LBB0_4: movl (%r15), %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _FALSE,4,2 ## @FALSE .comm _TK_LITERAL,8,3 ## @TK_LITERAL .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sql_token_equal ; -- Begin function sql_token_equal .p2align 2 _sql_token_equal: ; @sql_token_equal .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] cmp x8, x1 b.ne LBB0_3 ; %bb.1: Lloh0: adrp x8, _TK_LITERAL@GOTPAGE Lloh1: ldr x8, [x8, _TK_LITERAL@GOTPAGEOFF] Lloh2: ldr x8, [x8] cmp x8, x1 b.ne LBB0_4 ; %bb.2: mov x19, x2 mov x20, x0 ldr x0, [x0, #8] bl _g_string_ascii_up ldr x8, [x20, #8] ldr w0, [x8] mov x1, x19 bl _strcmp cbz x0, LBB0_4 LBB0_3: Lloh3: adrp x8, _FALSE@GOTPAGE Lloh4: ldr x8, [x8, _FALSE@GOTPAGEOFF] b LBB0_5 LBB0_4: Lloh5: adrp x8, _TRUE@GOTPAGE Lloh6: ldr x8, [x8, _TRUE@GOTPAGEOFF] LBB0_5: ldr w0, [x8] 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 AdrpLdrGot Lloh3, Lloh4 .loh AdrpLdrGot Lloh5, Lloh6 .cfi_endproc ; -- End function .comm _FALSE,4,2 ; @FALSE .comm _TK_LITERAL,8,3 ; @TK_LITERAL .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_sql_token_equal.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _update_charset ## -- Begin function update_charset .p2align 4, 0x90 _update_charset: ## @update_charset .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 movq 32(%rdi), %r12 movq 16(%rdi), %r14 movq 24(%rdi), %r15 cmpq $0, (%r12) jle LBB0_4 ## %bb.1: movq 8(%rbx), %rax testq %rax, %rax je LBB0_3 ## %bb.2: movl 8(%rax), %r13d movq %r12, %rdi callq _S movl %r13d, %edi movl %eax, %esi callq _g_string_assign_len LBB0_3: movq (%rbx), %rax movl 8(%rax), %r13d movq %r12, %rdi callq _S movl %r13d, %edi movl %eax, %esi callq _g_string_assign_len LBB0_4: cmpq $0, (%r15) jle LBB0_8 ## %bb.5: movq 8(%rbx), %rax testq %rax, %rax je LBB0_7 ## %bb.6: movl 4(%rax), %r12d movq %r15, %rdi callq _S movl %r12d, %edi movl %eax, %esi callq _g_string_assign_len LBB0_7: movq (%rbx), %rax movl 4(%rax), %r12d movq %r15, %rdi callq _S movl %r12d, %edi movl %eax, %esi callq _g_string_assign_len LBB0_8: cmpq $0, (%r14) jle LBB0_12 ## %bb.9: movq 8(%rbx), %rax testq %rax, %rax je LBB0_11 ## %bb.10: movl (%rax), %r15d movq %r14, %rdi callq _S movl %r15d, %edi movl %eax, %esi callq _g_string_assign_len LBB0_11: movq (%rbx), %rax movl (%rax), %ebx movq %r14, %rdi callq _S movl %ebx, %edi movl %eax, %esi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _g_string_assign_len ## TAILCALL LBB0_12: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _update_charset ; -- Begin function update_charset .p2align 2 _update_charset: ; @update_charset .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 ldp x21, x22, [x0, #24] ldr x20, [x0, #16] ldr x8, [x22] cmp x8, #1 b.lt LBB0_4 ; %bb.1: ldr x8, [x19, #8] cbz x8, LBB0_3 ; %bb.2: ldr w23, [x8, #8] mov x0, x22 bl _S mov x1, x0 mov x0, x23 bl _g_string_assign_len LBB0_3: ldr x8, [x19] ldr w23, [x8, #8] mov x0, x22 bl _S mov x1, x0 mov x0, x23 bl _g_string_assign_len LBB0_4: ldr x8, [x21] cmp x8, #1 b.lt LBB0_8 ; %bb.5: ldr x8, [x19, #8] cbz x8, LBB0_7 ; %bb.6: ldr w22, [x8, #4] mov x0, x21 bl _S mov x1, x0 mov x0, x22 bl _g_string_assign_len LBB0_7: ldr x8, [x19] ldr w22, [x8, #4] mov x0, x21 bl _S mov x1, x0 mov x0, x22 bl _g_string_assign_len LBB0_8: ldr x8, [x20] cmp x8, #1 b.lt LBB0_12 ; %bb.9: ldr x8, [x19, #8] cbz x8, LBB0_11 ; %bb.10: ldr w21, [x8] mov x0, x20 bl _S mov x1, x0 mov x0, x21 bl _g_string_assign_len LBB0_11: ldr x8, [x19] ldr w19, [x8] mov x0, x20 bl _S mov x1, x0 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 _g_string_assign_len LBB0_12: 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 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-packet.c_update_charset.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int16 ## -- Begin function network_mysqld_proto_append_int16 .p2align 4, 0x90 _network_mysqld_proto_append_int16: ## @network_mysqld_proto_append_int16 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $2, %edx popq %rbp jmp _network_mysqld_proto_append_int_len ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int16 ; -- Begin function network_mysqld_proto_append_int16 .p2align 2 _network_mysqld_proto_append_int16: ; @network_mysqld_proto_append_int16 .cfi_startproc ; %bb.0: mov w2, #2 b _network_mysqld_proto_append_int_len .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_int16.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int24 ## -- Begin function network_mysqld_proto_append_int24 .p2align 4, 0x90 _network_mysqld_proto_append_int24: ## @network_mysqld_proto_append_int24 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $3, %edx popq %rbp jmp _network_mysqld_proto_append_int_len ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int24 ; -- Begin function network_mysqld_proto_append_int24 .p2align 2 _network_mysqld_proto_append_int24: ; @network_mysqld_proto_append_int24 .cfi_startproc ; %bb.0: mov w2, #3 b _network_mysqld_proto_append_int_len .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_int24.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int32 ## -- Begin function network_mysqld_proto_append_int32 .p2align 4, 0x90 _network_mysqld_proto_append_int32: ## @network_mysqld_proto_append_int32 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $4, %edx popq %rbp jmp _network_mysqld_proto_append_int_len ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int32 ; -- Begin function network_mysqld_proto_append_int32 .p2align 2 _network_mysqld_proto_append_int32: ; @network_mysqld_proto_append_int32 .cfi_startproc ; %bb.0: mov w2, #4 b _network_mysqld_proto_append_int_len .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_int32.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int48 ## -- Begin function network_mysqld_proto_append_int48 .p2align 4, 0x90 _network_mysqld_proto_append_int48: ## @network_mysqld_proto_append_int48 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $6, %edx popq %rbp jmp _network_mysqld_proto_append_int_len ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int48 ; -- Begin function network_mysqld_proto_append_int48 .p2align 2 _network_mysqld_proto_append_int48: ; @network_mysqld_proto_append_int48 .cfi_startproc ; %bb.0: mov w2, #6 b _network_mysqld_proto_append_int_len .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_int48.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int64 ## -- Begin function network_mysqld_proto_append_int64 .p2align 4, 0x90 _network_mysqld_proto_append_int64: ## @network_mysqld_proto_append_int64 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $8, %edx popq %rbp jmp _network_mysqld_proto_append_int_len ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int64 ; -- Begin function network_mysqld_proto_append_int64 .p2align 2 _network_mysqld_proto_append_int64: ; @network_mysqld_proto_append_int64 .cfi_startproc ; %bb.0: mov w2, #8 b _network_mysqld_proto_append_int_len .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_int64.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int8 ## -- Begin function network_mysqld_proto_append_int8 .p2align 4, 0x90 _network_mysqld_proto_append_int8: ## @network_mysqld_proto_append_int8 .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, %edx popq %rbp jmp _network_mysqld_proto_append_int_len ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_int8 ; -- Begin function network_mysqld_proto_append_int8 .p2align 2 _network_mysqld_proto_append_int8: ; @network_mysqld_proto_append_int8 .cfi_startproc ; %bb.0: mov w2, #1 b _network_mysqld_proto_append_int_len .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_int8.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function network_mysqld_proto_append_int_len _network_mysqld_proto_append_int_len: ## @network_mysqld_proto_append_int_len .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 testq %rdx, %rdx jle LBB0_3 ## %bb.1: movq %rdx, %r14 movl %esi, %ebx movq %rdi, %r15 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movzbl %bl, %esi movq %r15, %rdi callq _g_string_append_c sarl $8, %ebx decq %r14 jne LBB0_2 LBB0_3: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _network_mysqld_proto_append_int_len .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function network_mysqld_proto_append_int_len _network_mysqld_proto_append_int_len: ; @network_mysqld_proto_append_int_len .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 x2, #1 b.lt LBB0_3 ; %bb.1: mov x19, x2 mov x20, x1 mov x21, x0 LBB0_2: ; =>This Inner Loop Header: Depth=1 and w1, w20, #0xff mov x0, x21 bl _g_string_append_c asr w20, w20, #8 subs x19, x19, #1 b.ne LBB0_2 LBB0_3: mov w0, #0 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 _network_mysqld_proto_append_int_len .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_int_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_lenenc_int ## -- Begin function network_mysqld_proto_append_lenenc_int .p2align 4, 0x90 _network_mysqld_proto_append_lenenc_int: ## @network_mysqld_proto_append_lenenc_int .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 %esi, %ebx movq %rdi, %r14 cmpl $251, %esi jl LBB0_6 ## %bb.1: cmpl $65535, %ebx ## imm = 0xFFFF ja LBB0_3 ## %bb.2: movq %r14, %rdi movl $252, %esi callq _g_string_append_c movl $8, %r15d movl %ebx, %eax jmp LBB0_5 LBB0_3: cmpl $16777215, %ebx ## imm = 0xFFFFFF ja LBB0_7 ## %bb.4: movq %r14, %rdi movl $253, %esi callq _g_string_append_c movzbl %bl, %esi movq %r14, %rdi callq _g_string_append_c movl %ebx, %eax shrl $8, %eax movl $16, %r15d LBB0_5: movzbl %al, %esi movq %r14, %rdi callq _g_string_append_c movl %r15d, %ecx shrl %cl, %ebx LBB0_6: movq %r14, %rdi movl %ebx, %esi callq _g_string_append_c LBB0_8: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_7: movq %r14, %rdi movl %ebx, %esi callq _network_mysqld_proto_append_lenenc_int.cold.1 jmp LBB0_8 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function network_mysqld_proto_append_lenenc_int.cold.1 _network_mysqld_proto_append_lenenc_int.cold.1: ## @network_mysqld_proto_append_lenenc_int.cold.1 .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 %esi, %r14d movq %rdi, %rbx movl $254, %esi callq _g_string_append_c movl $255, %r15d movl %r14d, %esi andl %r15d, %esi movq %rbx, %rdi callq _g_string_append_c movl %r14d, %esi shrl $8, %esi andl %r15d, %esi movq %rbx, %rdi callq _g_string_append_c movl %r14d, %esi shrl $16, %esi andl %r15d, %esi movq %rbx, %rdi callq _g_string_append_c shrl $24, %r14d movq %rbx, %rdi movl %r14d, %esi callq _g_string_append_c movq %rbx, %rdi callq _g_string_append_c movq %rbx, %rdi callq _g_string_append_c movq %rbx, %rdi callq _g_string_append_c ud2 .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_lenenc_int ; -- Begin function network_mysqld_proto_append_lenenc_int .p2align 2 _network_mysqld_proto_append_lenenc_int: ; @network_mysqld_proto_append_lenenc_int .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, x1 mov x20, x0 cmp w1, #251 b.lt LBB0_6 ; %bb.1: lsr w8, w19, #16 cbnz w8, LBB0_3 ; %bb.2: mov x0, x20 mov w1, #252 bl _g_string_append_c mov w21, #8 mov x8, x19 b LBB0_5 LBB0_3: lsr w8, w19, #24 cbnz w8, LBB0_7 ; %bb.4: mov x0, x20 mov w1, #253 bl _g_string_append_c and w1, w19, #0xff mov x0, x20 bl _g_string_append_c lsr w8, w19, #8 mov w21, #16 LBB0_5: and w1, w8, #0xff mov x0, x20 bl _g_string_append_c lsr w19, w19, w21 LBB0_6: mov x0, x20 mov x1, x19 bl _g_string_append_c mov w0, #0 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_7: mov x0, x20 mov x1, x19 bl _network_mysqld_proto_append_lenenc_int.cold.1 .cfi_endproc ; -- End function .p2align 2 ; -- Begin function network_mysqld_proto_append_lenenc_int.cold.1 _network_mysqld_proto_append_lenenc_int.cold.1: ; @network_mysqld_proto_append_lenenc_int.cold.1 .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 mov w1, #254 bl _g_string_append_c and w1, w19, #0xff bl _OUTLINED_FUNCTION_0 ubfx w1, w19, #8, #8 bl _OUTLINED_FUNCTION_0 ubfx w1, w19, #16, #8 bl _OUTLINED_FUNCTION_0 lsr w1, w19, #24 bl _OUTLINED_FUNCTION_0 bl _OUTLINED_FUNCTION_0 bl _OUTLINED_FUNCTION_0 bl _OUTLINED_FUNCTION_0 brk #0x1 .cfi_endproc ; -- End function .p2align 2 ; -- Begin function OUTLINED_FUNCTION_0 _OUTLINED_FUNCTION_0: ; @OUTLINED_FUNCTION_0 Thunk .cfi_startproc ; %bb.0: mov x0, x20 b _g_string_append_c .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_lenenc_int.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_lenenc_string ## -- Begin function network_mysqld_proto_append_lenenc_string .p2align 4, 0x90 _network_mysqld_proto_append_lenenc_string: ## @network_mysqld_proto_append_lenenc_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 .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %rbx movq %rdi, %r14 testq %rsi, %rsi je LBB0_1 ## %bb.2: movq %rbx, %rdi callq _strlen movl %eax, %edx jmp LBB0_3 LBB0_1: xorl %edx, %edx LBB0_3: movq %r14, %rdi movq %rbx, %rsi popq %rbx popq %r14 popq %rbp jmp _network_mysqld_proto_append_lenenc_string_len ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_lenenc_string ; -- Begin function network_mysqld_proto_append_lenenc_string .p2align 2 _network_mysqld_proto_append_lenenc_string: ; @network_mysqld_proto_append_lenenc_string .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 cbz x1, LBB0_2 ; %bb.1: mov x0, x19 bl _strlen mov x2, x0 b LBB0_3 LBB0_2: mov w2, #0 LBB0_3: mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _network_mysqld_proto_append_lenenc_string_len .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_lenenc_string.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_lenenc_string_len ## -- Begin function network_mysqld_proto_append_lenenc_string_len .p2align 4, 0x90 _network_mysqld_proto_append_lenenc_string_len: ## @network_mysqld_proto_append_lenenc_string_len .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 testq %rsi, %rsi je LBB0_1 ## %bb.2: movl %edx, %r14d movq %rsi, %rbx movq %r15, %rdi movl %edx, %esi callq _network_mysqld_proto_append_lenenc_int movq %r15, %rdi movq %rbx, %rsi movl %r14d, %edx callq _g_string_append_len jmp LBB0_3 LBB0_1: movq %r15, %rdi movl $251, %esi callq _g_string_append_c LBB0_3: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_lenenc_string_len ; -- Begin function network_mysqld_proto_append_lenenc_string_len .p2align 2 _network_mysqld_proto_append_lenenc_string_len: ; @network_mysqld_proto_append_lenenc_string_len .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 cbz x1, LBB0_2 ; %bb.1: mov x19, x2 mov x21, x1 mov x0, x20 mov x1, x2 bl _network_mysqld_proto_append_lenenc_int mov x0, x20 mov x1, x21 mov x2, x19 bl _g_string_append_len b LBB0_3 LBB0_2: mov x0, x20 mov w1, #251 bl _g_string_append_c LBB0_3: mov w0, #0 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 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_lenenc_string_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_packet_id ## -- Begin function network_mysqld_proto_append_packet_id .p2align 4, 0x90 _network_mysqld_proto_append_packet_id: ## @network_mysqld_proto_append_packet_id .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _network_mysqld_proto_append_int8 ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_packet_id ; -- Begin function network_mysqld_proto_append_packet_id .p2align 2 _network_mysqld_proto_append_packet_id: ; @network_mysqld_proto_append_packet_id .cfi_startproc ; %bb.0: b _network_mysqld_proto_append_int8 .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_packet_id.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_packet_len ## -- Begin function network_mysqld_proto_append_packet_len .p2align 4, 0x90 _network_mysqld_proto_append_packet_len: ## @network_mysqld_proto_append_packet_len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _network_mysqld_proto_append_int24 ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_append_packet_len ; -- Begin function network_mysqld_proto_append_packet_len .p2align 2 _network_mysqld_proto_append_packet_len: ; @network_mysqld_proto_append_packet_len .cfi_startproc ; %bb.0: b _network_mysqld_proto_append_int24 .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_append_packet_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_fielddef_free ## -- Begin function network_mysqld_proto_fielddef_free .p2align 4, 0x90 _network_mysqld_proto_fielddef_free: ## @network_mysqld_proto_fielddef_free .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 40(%rdi), %rdi testq %rdi, %rdi je LBB0_2 ## %bb.1: callq _g_free LBB0_2: movq 32(%rbx), %rdi testq %rdi, %rdi je LBB0_4 ## %bb.3: callq _g_free LBB0_4: movq 24(%rbx), %rdi testq %rdi, %rdi je LBB0_6 ## %bb.5: callq _g_free LBB0_6: movq 16(%rbx), %rdi testq %rdi, %rdi je LBB0_8 ## %bb.7: callq _g_free LBB0_8: movq 8(%rbx), %rdi testq %rdi, %rdi je LBB0_10 ## %bb.9: callq _g_free LBB0_10: movq (%rbx), %rdi testq %rdi, %rdi je LBB0_12 ## %bb.11: callq _g_free LBB0_12: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _g_free ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_fielddef_free ; -- Begin function network_mysqld_proto_fielddef_free .p2align 2 _network_mysqld_proto_fielddef_free: ; @network_mysqld_proto_fielddef_free .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 x0, [x0, #40] cbz x0, LBB0_2 ; %bb.1: bl _g_free LBB0_2: ldr x0, [x19, #32] cbz x0, LBB0_4 ; %bb.3: bl _g_free LBB0_4: ldr x0, [x19, #24] cbz x0, LBB0_6 ; %bb.5: bl _g_free LBB0_6: ldr x0, [x19, #16] cbz x0, LBB0_8 ; %bb.7: bl _g_free LBB0_8: ldr x0, [x19, #8] cbz x0, LBB0_10 ; %bb.9: bl _g_free LBB0_10: ldr x0, [x19] cbz x0, LBB0_12 ; %bb.11: bl _g_free LBB0_12: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _g_free .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_fielddef_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_fielddefs_free ## -- Begin function network_mysqld_proto_fielddefs_free .p2align 4, 0x90 _network_mysqld_proto_fielddefs_free: ## @network_mysqld_proto_fielddefs_free .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), %rax testq %rax, %rax je LBB0_5 ## %bb.1: xorl %ebx, %ebx jmp LBB0_2 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_2 Depth=1 incq %rbx cmpq %rax, %rbx jae LBB0_5 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq 8(%r14), %rcx movq (%rcx,%rbx,8), %rdi testq %rdi, %rdi je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 callq _network_mysqld_proto_fielddef_free movq (%r14), %rax jmp LBB0_4 LBB0_5: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _g_ptr_array_free ## TAILCALL .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_fielddefs_free ; -- Begin function network_mysqld_proto_fielddefs_free .p2align 2 _network_mysqld_proto_fielddefs_free: ; @network_mysqld_proto_fielddefs_free .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 x8, [x0] cbz x8, LBB0_5 ; %bb.1: mov x20, #0 b LBB0_3 LBB0_2: ; in Loop: Header=BB0_3 Depth=1 add x20, x20, #1 cmp x20, x8 b.hs LBB0_5 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x9, [x19, #8] ldr x0, [x9, x20, lsl #3] cbz x0, LBB0_2 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 bl _network_mysqld_proto_fielddef_free ldr x8, [x19] b LBB0_2 LBB0_5: Lloh0: adrp x8, _TRUE@GOTPAGE Lloh1: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _g_ptr_array_free .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_fielddefs_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_fielddefs_new ## -- Begin function network_mysqld_proto_fielddefs_new .p2align 4, 0x90 _network_mysqld_proto_fielddefs_new: ## @network_mysqld_proto_fielddefs_new .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %eax, %eax popq %rbp jmp _g_ptr_array_new ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_fielddefs_new ; -- Begin function network_mysqld_proto_fielddefs_new .p2align 2 _network_mysqld_proto_fielddefs_new: ; @network_mysqld_proto_fielddefs_new .cfi_startproc ; %bb.0: b _g_ptr_array_new .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_fielddefs_new.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_find_int8 ## -- Begin function network_mysqld_proto_find_int8 .p2align 4, 0x90 _network_mysqld_proto_find_int8: ## @network_mysqld_proto_find_int8 .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, %r14 movq %rsi, %r15 movq %rdi, %rbx movq (%rdi), %r13 leaq -48(%rbp), %r12 jmp LBB0_1 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 testq %rcx, %rcx jne LBB0_5 LBB0_1: ## =>This Inner Loop Header: Depth=1 movq %rbx, %rdi movq %r12, %rsi callq _network_mysqld_proto_get_int8 movq %rax, %rcx testq %rax, %rax jne LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpq %r15, -48(%rbp) jne LBB0_4 ## %bb.3: xorl %eax, %eax testq %rcx, %rcx setne %al movq (%rbx), %rcx subq %r13, %rcx movq %rcx, (%r14) jmp LBB0_6 LBB0_5: movl $1, %eax LBB0_6: movq %r13, (%rbx) addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_find_int8 ; -- Begin function network_mysqld_proto_find_int8 .p2align 2 _network_mysqld_proto_find_int8: ; @network_mysqld_proto_find_int8 .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 x20, x2 mov x21, x1 mov x19, x0 ldr x22, [x0] b LBB0_2 LBB0_1: ; in Loop: Header=BB0_2 Depth=1 cbnz x0, LBB0_5 LBB0_2: ; =>This Inner Loop Header: Depth=1 add x1, sp, #8 mov x0, x19 bl _network_mysqld_proto_get_int8 cbnz x0, LBB0_1 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 ldr x8, [sp, #8] cmp x8, x21 b.ne LBB0_1 ; %bb.4: cmp x0, #0 cset w0, ne ldr x8, [x19] sub x8, x8, x22 str x8, [x20] b LBB0_6 LBB0_5: mov w0, #1 LBB0_6: str x22, [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 add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_find_int8.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_gstring ## -- Begin function network_mysqld_proto_get_gstring .p2align 4, 0x90 _network_mysqld_proto_get_gstring: ## @network_mysqld_proto_get_gstring .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, %r15 movq (%rdi), %rax movq 8(%rdi), %rdx movq (%rdx), %rcx cmpq %rax, %rcx jle LBB0_13 ## %bb.1: movq %rsi, %r14 movq 8(%rdx), %rdx cmpb $0, (%rdx,%rax) je LBB0_2 ## %bb.3: incq %rdx movq %rax, %rsi subq %rcx, %rsi incq %rsi xorl %ebx, %ebx .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpq %rbx, %rsi je LBB0_6 ## %bb.4: ## in Loop: Header=BB0_5 Depth=1 decq %rbx cmpb $0, (%rdx,%rax) leaq 1(%rdx), %rdx jne LBB0_5 ## %bb.7: subq %rbx, %rax negq %rbx jmp LBB0_8 LBB0_13: movl $-1, %r12d jne LBB0_11 jmp LBB0_12 LBB0_2: xorl %ebx, %ebx LBB0_8: movl $-1, %r12d cmpq %rcx, %rax je LBB0_12 ## %bb.9: testq %rbx, %rbx je LBB0_11 ## %bb.10: movl $1, %edi callq _g_assert movq (%r15), %rax addq %rbx, %rax movq 8(%r15), %rcx xorl %edi, %edi cmpq (%rcx), %rax setle %dil callq _g_assert movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx callq _network_mysqld_proto_get_gstring_len testq %rax, %rax jne LBB0_12 LBB0_11: movq %r15, %rdi movl $1, %esi callq _network_mysqld_proto_skip xorl %r12d, %r12d negq %rax sbbl %r12d, %r12d jmp LBB0_12 LBB0_6: movl $-1, %r12d LBB0_12: movl %r12d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_gstring ; -- Begin function network_mysqld_proto_get_gstring .p2align 2 _network_mysqld_proto_get_gstring: ; @network_mysqld_proto_get_gstring .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 ldp x8, x10, [x0] ldr x9, [x10] cmp x9, x8 b.le LBB0_6 ; %bb.1: mov x20, x1 ldr x10, [x10, #8] ldrb w11, [x10, x8] cbz w11, LBB0_8 ; %bb.2: mov x21, #0 add x10, x10, x8 add x10, x10, #1 sub x11, x8, x9 add x11, x11, #1 LBB0_3: ; =>This Inner Loop Header: Depth=1 cmn x11, x21 b.eq LBB0_11 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 ldrb w12, [x10, x21] add x21, x21, #1 cbnz w12, LBB0_3 ; %bb.5: add x8, x8, x21 cmp x8, x9 b.eq LBB0_11 b LBB0_9 LBB0_6: b.eq LBB0_11 LBB0_7: mov x0, x19 mov w1, #1 bl _network_mysqld_proto_skip cmp x0, #0 csetm w0, ne b LBB0_12 LBB0_8: mov x21, #0 cmp x8, x9 b.eq LBB0_11 LBB0_9: cbz x21, LBB0_7 ; %bb.10: mov w0, #1 bl _g_assert ldp x8, x9, [x19] ldr x9, [x9] add x8, x8, x21 cmp x8, x9 cset w0, le bl _g_assert mov x0, x19 mov x1, x21 mov x2, x20 bl _network_mysqld_proto_get_gstring_len cbz x0, LBB0_7 LBB0_11: mov w0, #-1 LBB0_12: 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 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_gstring.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_gstring_len ## -- Begin function network_mysqld_proto_get_gstring_len .p2align 4, 0x90 _network_mysqld_proto_get_gstring_len: ## @network_mysqld_proto_get_gstring_len .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 testq %rdx, %rdx je LBB0_1 ## %bb.2: movq %rdx, %r12 movq %rsi, %r15 movq %rdi, %r14 xorl %ebx, %ebx movq %rdx, %rdi xorl %esi, %esi callq _g_string_truncate testq %r15, %r15 je LBB0_6 ## %bb.3: movq (%r14), %rsi movq 8(%r14), %rax movq (%rax), %rcx cmpq %rcx, %rsi setge %dl leaq (%rsi,%r15), %rdi cmpq %rcx, %rdi setg %bl orb %dl, %bl jne LBB0_5 ## %bb.4: addq 8(%rax), %rsi movq %r12, %rdi movq %r15, %rdx callq _g_string_append_len addq %r15, (%r14) LBB0_5: movzbl %bl, %ebx negl %ebx jmp LBB0_6 LBB0_1: movl $-1, %ebx LBB0_6: movl %ebx, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_gstring_len ; -- Begin function network_mysqld_proto_get_gstring_len .p2align 2 _network_mysqld_proto_get_gstring_len: ; @network_mysqld_proto_get_gstring_len .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 cbz x2, LBB0_5 ; %bb.1: mov x21, x2 mov x20, x1 mov x19, x0 mov x0, x2 mov w1, #0 bl _g_string_truncate cbz x20, LBB0_6 ; %bb.2: ldp x8, x9, [x19] ldr x10, [x9] cmp x8, x10 add x11, x8, x20 ccmp x11, x10, #0, lt cset w22, gt b.gt LBB0_4 ; %bb.3: ldr x9, [x9, #8] add x1, x9, x8 mov x0, x21 mov x2, x20 bl _g_string_append_len ldr x8, [x19] add x8, x8, x20 str x8, [x19] LBB0_4: sbfx w0, w22, #0, #1 b LBB0_7 LBB0_5: mov w0, #-1 b LBB0_7 LBB0_6: mov w0, #0 LBB0_7: 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 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_gstring_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_int32 ## -- Begin function network_mysqld_proto_get_int32 .p2align 4, 0x90 _network_mysqld_proto_get_int32: ## @network_mysqld_proto_get_int32 .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 %rsi, %rbx leaq -12(%rbp), %rsi movl $4, %edx callq _network_mysqld_proto_get_int_len movq %rax, %rcx movl $-1, %eax testq %rcx, %rcx jne LBB0_2 ## %bb.1: movl -12(%rbp), %eax movl %eax, (%rbx) xorl %eax, %eax LBB0_2: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_int32 ; -- Begin function network_mysqld_proto_get_int32 .p2align 2 _network_mysqld_proto_get_int32: ; @network_mysqld_proto_get_int32 .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 add x1, sp, #12 mov w2, #4 bl _network_mysqld_proto_get_int_len cbz x0, LBB0_2 ; %bb.1: mov w0, #-1 b LBB0_3 LBB0_2: ldr w8, [sp, #12] str w8, [x19] LBB0_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_int32.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_int48 ## -- Begin function network_mysqld_proto_get_int48 .p2align 4, 0x90 _network_mysqld_proto_get_int48: ## @network_mysqld_proto_get_int48 .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 %rsi, %rbx leaq -12(%rbp), %rsi movl $6, %edx callq _network_mysqld_proto_get_int_len movq %rax, %rcx movl $-1, %eax testq %rcx, %rcx jne LBB0_2 ## %bb.1: movl -12(%rbp), %eax movl %eax, (%rbx) xorl %eax, %eax LBB0_2: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_int48 ; -- Begin function network_mysqld_proto_get_int48 .p2align 2 _network_mysqld_proto_get_int48: ; @network_mysqld_proto_get_int48 .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 add x1, sp, #12 mov w2, #6 bl _network_mysqld_proto_get_int_len cbz x0, LBB0_2 ; %bb.1: mov w0, #-1 b LBB0_3 LBB0_2: ldr w8, [sp, #12] str w8, [x19] LBB0_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_int48.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_int64 ## -- Begin function network_mysqld_proto_get_int64 .p2align 4, 0x90 _network_mysqld_proto_get_int64: ## @network_mysqld_proto_get_int64 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $8, %edx popq %rbp jmp _network_mysqld_proto_get_int_len ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_int64 ; -- Begin function network_mysqld_proto_get_int64 .p2align 2 _network_mysqld_proto_get_int64: ; @network_mysqld_proto_get_int64 .cfi_startproc ; %bb.0: mov w2, #8 b _network_mysqld_proto_get_int_len .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_int64.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_int_len ## -- Begin function network_mysqld_proto_get_int_len .p2align 4, 0x90 _network_mysqld_proto_get_int_len: ## @network_mysqld_proto_get_int_len .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 callq _network_mysqld_proto_peek_int_len movq %rax, %rcx movl $-1, %eax testq %rcx, %rcx jne LBB0_2 ## %bb.1: addl %r14d, (%rbx) xorl %eax, %eax LBB0_2: popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_int_len ; -- Begin function network_mysqld_proto_get_int_len .p2align 2 _network_mysqld_proto_get_int_len: ; @network_mysqld_proto_get_int_len .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 bl _network_mysqld_proto_peek_int_len cbz x0, LBB0_2 ; %bb.1: mov w0, #-1 b LBB0_3 LBB0_2: ldr w8, [x20] add w8, w8, w19 str w8, [x20] 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 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_int_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_lenenc_gstring ## -- Begin function network_mysqld_proto_get_lenenc_gstring .p2align 4, 0x90 _network_mysqld_proto_get_lenenc_gstring: ## @network_mysqld_proto_get_lenenc_gstring .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 %rsi, %r14 movq %rdi, %rbx leaq -20(%rbp), %rsi callq _network_mysqld_proto_get_lenenc_int movq %rax, %rcx movl $-1, %eax testq %rcx, %rcx jne LBB0_2 ## %bb.1: movl -20(%rbp), %esi movq %rbx, %rdi movq %r14, %rdx callq _network_mysqld_proto_get_gstring_len movq %rax, %rcx xorl %eax, %eax negq %rcx sbbl %eax, %eax LBB0_2: addq $16, %rsp popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_lenenc_gstring ; -- Begin function network_mysqld_proto_get_lenenc_gstring .p2align 2 _network_mysqld_proto_get_lenenc_gstring: ; @network_mysqld_proto_get_lenenc_gstring .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 add x1, sp, #12 bl _network_mysqld_proto_get_lenenc_int cbz x0, LBB0_2 ; %bb.1: mov w0, #-1 b LBB0_3 LBB0_2: ldr w1, [sp, #12] mov x0, x20 mov x2, x19 bl _network_mysqld_proto_get_gstring_len cmp x0, #0 csetm w0, ne LBB0_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_lenenc_gstring.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_lenenc_int ## -- Begin function network_mysqld_proto_get_lenenc_int .p2align 4, 0x90 _network_mysqld_proto_get_lenenc_int: ## @network_mysqld_proto_get_lenenc_int .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), %rdx movq 8(%rdi), %rcx movq (%rcx), %rax movl $-1, %ebx cmpq %rax, %rdx jae LBB0_13 ## %bb.1: movq 8(%rcx), %r8 movzbl (%r8,%rdx), %ecx cmpl $250, %ecx ja LBB0_3 ## %bb.2: movq %rdx, %r9 LBB0_12: incq %r9 movq %r9, (%rdi) movl %ecx, (%rsi) xorl %ebx, %ebx LBB0_13: movl %ebx, %eax addq $8, %rsp popq %rbx popq %rbp retq LBB0_3: cmpb $-2, %cl je LBB0_11 ## %bb.4: cmpb $-3, %cl je LBB0_8 ## %bb.5: cmpb $-4, %cl jne LBB0_10 ## %bb.6: leaq 2(%rdx), %r9 cmpq %rax, %r9 jae LBB0_13 ## %bb.7: movzwl 1(%rdx,%r8), %ecx jmp LBB0_12 LBB0_11: addq $8, %rdx movq %rdx, %r9 ## implicit-def: $ecx cmpq %rax, %rdx jb LBB0_12 jmp LBB0_13 LBB0_8: leaq 3(%rdx), %r9 cmpq %rax, %r9 jae LBB0_13 ## %bb.9: movzwl 1(%r8,%rdx), %eax movzbl 3(%r8,%rdx), %ecx shll $16, %ecx orl %eax, %ecx jmp LBB0_12 LBB0_10: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _g_critical jmp LBB0_13 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s: bytestream[%d] is %d" .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_lenenc_int ; -- Begin function network_mysqld_proto_get_lenenc_int .p2align 2 _network_mysqld_proto_get_lenenc_int: ; @network_mysqld_proto_get_lenenc_int .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 ldp x2, x8, [x0] ldr x9, [x8] cmp x2, x9 b.hs LBB0_14 ; %bb.1: ldr x8, [x8, #8] ldrb w3, [x8, x2] cmp w3, #250 b.ls LBB0_12 ; %bb.2: cmp w3, #254 b.eq LBB0_7 ; %bb.3: cmp w3, #253 b.eq LBB0_9 ; %bb.4: cmp w3, #252 b.ne LBB0_13 ; %bb.5: add x10, x2, #2 cmp x10, x9 b.hs LBB0_14 ; %bb.6: add x9, x2, x8 ldrb w3, [x9, #1] ldrb w8, [x8, x10] bfi w3, w8, #8, #8 b LBB0_11 LBB0_7: add x2, x2, #8 cmp x2, x9 b.hs LBB0_14 ; %bb.8: ; implicit-def: $w3 b LBB0_12 LBB0_9: add x10, x2, #3 cmp x10, x9 b.hs LBB0_14 ; %bb.10: add x9, x2, x8 ldurh w3, [x9, #1] ldrb w8, [x8, x10] bfi w3, w8, #16, #8 LBB0_11: mov x2, x10 LBB0_12: mov w8, #0 add x9, x2, #1 str x9, [x0] str w3, [x1] b LBB0_15 LBB0_13: Lloh0: adrp x8, _G_STRLOC@GOTPAGE Lloh1: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF bl _g_critical LBB0_14: mov w8, #-1 LBB0_15: mov x0, x8 ldp x29, x30, [sp], #16 ; 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: bytestream[%d] is %d" .comm _G_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_lenenc_int.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_lenenc_string ## -- Begin function network_mysqld_proto_get_lenenc_string .p2align 4, 0x90 _network_mysqld_proto_get_lenenc_string: ## @network_mysqld_proto_get_lenenc_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 %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movq (%rdi), %rax movq 8(%rdi), %rdi cmpq (%rdi), %rax jge LBB0_1 ## %bb.2: movq %rdx, %r15 movq %rsi, %r14 leaq -32(%rbp), %rsi movq %rbx, %rdi callq _network_mysqld_proto_get_lenenc_int movq %rax, %rcx movl $-1, %eax testq %rcx, %rcx jne LBB0_7 ## %bb.3: movq -32(%rbp), %rdx movq (%rbx), %rcx addq %rdx, %rcx movq 8(%rbx), %rsi cmpq (%rsi), %rcx jg LBB0_7 ## %bb.4: testq %r15, %r15 je LBB0_6 ## %bb.5: movq %rdx, (%r15) LBB0_6: movq %rbx, %rdi movq %r14, %rsi callq _network_mysqld_proto_get_string_len jmp LBB0_7 LBB0_1: movq _G_STRLOC@GOTPCREL(%rip), %rax movl (%rax), %ebx callq _S movl %ebx, %edi movl %eax, %esi callq _g_debug_hexdump movl $-1, %eax LBB0_7: addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _G_STRLOC,4,2 ## @G_STRLOC .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_lenenc_string ; -- Begin function network_mysqld_proto_get_lenenc_string .p2align 2 _network_mysqld_proto_get_lenenc_string: ; @network_mysqld_proto_get_lenenc_string .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 x20, x0 ldp x8, x0, [x0] ldr x9, [x0] cmp x8, x9 b.ge LBB0_6 ; %bb.1: mov x21, x2 mov x19, x1 add x1, sp, #8 mov x0, x20 bl _network_mysqld_proto_get_lenenc_int cbnz x0, LBB0_7 ; %bb.2: ldr x2, [sp, #8] ldp x8, x9, [x20] ldr x9, [x9] add x8, x2, x8 cmp x8, x9 b.gt LBB0_7 ; %bb.3: cbz x21, LBB0_5 ; %bb.4: str x2, [x21] LBB0_5: mov x0, x20 mov x1, x19 bl _network_mysqld_proto_get_string_len b LBB0_8 LBB0_6: Lloh0: adrp x8, _G_STRLOC@GOTPAGE Lloh1: ldr x8, [x8, _G_STRLOC@GOTPAGEOFF] Lloh2: ldr w19, [x8] bl _S mov x1, x0 mov x0, x19 bl _g_debug_hexdump LBB0_7: mov w0, #-1 LBB0_8: 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_STRLOC,4,2 ; @G_STRLOC .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_lenenc_string.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_packet_id ## -- Begin function network_mysqld_proto_get_packet_id .p2align 4, 0x90 _network_mysqld_proto_get_packet_id: ## @network_mysqld_proto_get_packet_id .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax movzbl 3(%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_packet_id ; -- Begin function network_mysqld_proto_get_packet_id .p2align 2 _network_mysqld_proto_get_packet_id: ; @network_mysqld_proto_get_packet_id .cfi_startproc ; %bb.0: ldr x8, [x0] ldrb w0, [x8, #3] ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_packet_id.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_packet_len ## -- Begin function network_mysqld_proto_get_packet_len .p2align 4, 0x90 _network_mysqld_proto_get_packet_len: ## @network_mysqld_proto_get_packet_len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax movzbl (%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_packet_len ; -- Begin function network_mysqld_proto_get_packet_len .p2align 2 _network_mysqld_proto_get_packet_len: ; @network_mysqld_proto_get_packet_len .cfi_startproc ; %bb.0: ldr x8, [x0] ldrb w0, [x8] ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_packet_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_string ## -- Begin function network_mysqld_proto_get_string .p2align 4, 0x90 _network_mysqld_proto_get_string: ## @network_mysqld_proto_get_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 .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq (%rdi), %rdi movq 8(%r14), %rax movq (%rax), %r8 movq 8(%rax), %rbx leaq (%rbx,%rdi), %r10 movq %r8, %rdx subq %rdi, %rdx jle LBB0_15 ## %bb.1: cmpb $0, (%r10) je LBB0_2 ## %bb.3: incq %rbx movq %rdi, %rcx subq %r8, %rcx incq %rcx xorl %eax, %eax .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpq %rax, %rcx je LBB0_6 ## %bb.4: ## in Loop: Header=BB0_5 Depth=1 decq %rax cmpb $0, (%rbx,%rdi) leaq 1(%rbx), %rbx jne LBB0_5 ## %bb.7: movq %rdi, %r9 subq %rax, %r9 negq %rax movq %rax, %rdx jmp LBB0_8 LBB0_15: movl $-1, %ebx cmpb $0, (%r10) jne LBB0_14 jmp LBB0_13 LBB0_2: xorl %edx, %edx movq %rdi, %r9 jmp LBB0_8 LBB0_6: movq %r8, %r9 LBB0_8: movl $-1, %ebx cmpb $0, (%r10,%rdx) jne LBB0_14 ## %bb.9: testq %rdx, %rdx je LBB0_13 ## %bb.10: cmpq %rdi, %r8 jle LBB0_14 ## %bb.11: cmpq %r8, %r9 jg LBB0_14 ## %bb.12: movq %r14, %rdi callq _network_mysqld_proto_get_string_len testq %rax, %rax jne LBB0_14 LBB0_13: movq %r14, %rdi movl $1, %esi callq _network_mysqld_proto_skip xorl %ebx, %ebx negq %rax sbbl %ebx, %ebx LBB0_14: movl %ebx, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_get_string ; -- Begin function network_mysqld_proto_get_string .p2align 2 _network_mysqld_proto_get_string: ; @network_mysqld_proto_get_string .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 ldp x9, x10, [x0] ldp x8, x12, [x10] add x10, x12, x9 subs x11, x8, x9 b.le LBB0_6 ; %bb.1: ldrb w13, [x10] cbz w13, LBB0_7 ; %bb.2: mov x2, #0 add x12, x12, x9 add x12, x12, #1 sub x13, x9, x8 add x13, x13, #1 LBB0_3: ; =>This Inner Loop Header: Depth=1 cmn x13, x2 b.eq LBB0_8 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 ldrb w14, [x12, x2] add x2, x2, #1 cbnz w14, LBB0_3 ; %bb.5: add x11, x9, x2 ldrb w10, [x10, x2] cbnz w10, LBB0_13 b LBB0_9 LBB0_6: ldrb w8, [x10] cbnz w8, LBB0_13 b LBB0_14 LBB0_7: mov x2, #0 mov x11, x9 ldrb w10, [x10, x2] cbnz w10, LBB0_13 b LBB0_9 LBB0_8: mov x2, x11 mov x11, x8 ldrb w10, [x10, x2] cbnz w10, LBB0_13 LBB0_9: cbz x2, LBB0_14 ; %bb.10: mov w0, #-1 cmp x8, x9 b.le LBB0_15 ; %bb.11: cmp x11, x8 b.gt LBB0_15 ; %bb.12: mov x0, x19 bl _network_mysqld_proto_get_string_len cbz x0, LBB0_14 LBB0_13: mov w0, #-1 b LBB0_15 LBB0_14: mov x0, x19 mov w1, #1 bl _network_mysqld_proto_skip cmp x0, #0 csetm w0, ne LBB0_15: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_get_string.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_password_check ## -- Begin function network_mysqld_proto_password_check .p2align 4, 0x90 _network_mysqld_proto_password_check: ## @network_mysqld_proto_password_check .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 %r9d, -44(%rbp) ## 4-byte Spill movq %r8, %r13 movl %ecx, %ebx movl %ecx, -48(%rbp) ## 4-byte Spill movq %rdx, -56(%rbp) ## 8-byte Spill movl %esi, %r14d movq %rdi, %r15 xorl %edi, %edi testq %rdx, %rdx setne %dil movq _FALSE@GOTPCREL(%rip), %r12 movl (%r12), %esi callq _g_return_val_if_fail xorl %edi, %edi cmpl $20, %ebx sete %dil movl (%r12), %esi callq _g_return_val_if_fail xorl %edi, %edi testq %r15, %r15 setne %dil movl (%r12), %esi callq _g_return_val_if_fail xorl %edi, %edi movl %r14d, %ebx cmpl $20, %r14d sete %dil movl (%r12), %esi callq _g_return_val_if_fail xorl %edi, %edi testq %r13, %r13 setne %dil movl (%r12), %esi callq _g_return_val_if_fail xorl %edi, %edi movl -44(%rbp), %r14d ## 4-byte Reload cmpl $20, %r14d sete %dil movl (%r12), %esi callq _g_return_val_if_fail xorl %edi, %edi callq _g_string_new movq %rax, %r12 movl %r14d, (%rsp) movq %rax, %rdi movq %r15, %rsi movl %ebx, %edx movq -56(%rbp), %rcx ## 8-byte Reload movl -48(%rbp), %r8d ## 4-byte Reload movq %r13, %r9 callq _network_mysqld_proto_password_unscramble xorl %edi, %edi callq _g_string_new movq %rax, %rbx movq %r12, %rdi callq _S movq %rbx, %rdi movl %eax, %esi callq _network_mysqld_proto_password_hash movq %rbx, %rdi callq _S movl %eax, %edi movq %r13, %rsi movl %r14d, %edx callq _strleq movl %eax, %r14d movq _TRUE@GOTPCREL(%rip), %r15 movl (%r15), %esi movq %rbx, %rdi callq _g_string_free movl (%r15), %esi movq %r12, %rdi callq _g_string_free movl %r14d, %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 .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_password_check ; -- Begin function network_mysqld_proto_password_check .p2align 2 _network_mysqld_proto_password_check: ; @network_mysqld_proto_password_check .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, x5 mov x20, x4 mov x21, x3 mov x22, x2 mov x23, x1 mov x24, x0 cmp x2, #0 cset w0, ne Lloh0: adrp x25, _FALSE@GOTPAGE Lloh1: ldr x25, [x25, _FALSE@GOTPAGEOFF] ldr w1, [x25] bl _g_return_val_if_fail cmp w21, #20 cset w0, eq ldr w1, [x25] bl _g_return_val_if_fail cmp x24, #0 cset w0, ne ldr w1, [x25] bl _g_return_val_if_fail cmp w23, #20 cset w0, eq ldr w1, [x25] bl _g_return_val_if_fail cmp x20, #0 cset w0, ne ldr w1, [x25] bl _g_return_val_if_fail cmp w19, #20 cset w0, eq ldr w1, [x25] bl _g_return_val_if_fail mov x0, #0 bl _g_string_new mov x25, x0 mov x1, x24 mov x2, x23 mov x3, x22 mov x4, x21 mov x5, x20 mov x6, x19 bl _network_mysqld_proto_password_unscramble mov x0, #0 bl _g_string_new mov x21, x0 mov x0, x25 bl _S mov x1, x0 mov x0, x21 bl _network_mysqld_proto_password_hash mov x0, x21 bl _S mov x1, x20 mov x2, x19 bl _strleq mov x19, x0 Lloh2: adrp x20, _TRUE@GOTPAGE Lloh3: ldr x20, [x20, _TRUE@GOTPAGEOFF] ldr w1, [x20] mov x0, x21 bl _g_string_free ldr w1, [x20] mov x0, x25 bl _g_string_free mov x0, x19 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 _FALSE,4,2 ; @FALSE .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_password_check.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_password_hash ## -- Begin function network_mysqld_proto_password_hash .p2align 4, 0x90 _network_mysqld_proto_password_hash: ## @network_mysqld_proto_password_hash .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, %r14d movq %rsi, %r15 movq %rdi, %rbx movq _G_CHECKSUM_SHA1@GOTPCREL(%rip), %r13 movl (%r13), %edi callq _g_checksum_new movq %rax, %r12 movq %rax, %rdi movq %r15, %rsi movl %r14d, %edx callq _g_checksum_update movl (%r13), %edi callq _g_checksum_type_get_length movq %rbx, %rdi movl %eax, %esi callq _g_string_set_size movl 16(%rbx), %eax movl %eax, (%rbx) movq 8(%rbx), %rsi movq %r12, %rdi movq %rbx, %rdx callq _g_checksum_get_digest movq %r12, %rdi callq _g_checksum_free xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _G_CHECKSUM_SHA1,4,2 ## @G_CHECKSUM_SHA1 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_password_hash ; -- Begin function network_mysqld_proto_password_hash .p2align 2 _network_mysqld_proto_password_hash: ; @network_mysqld_proto_password_hash .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 Lloh0: adrp x23, _G_CHECKSUM_SHA1@GOTPAGE Lloh1: ldr x23, [x23, _G_CHECKSUM_SHA1@GOTPAGEOFF] ldr w0, [x23] bl _g_checksum_new mov x22, x0 mov x1, x20 mov x2, x19 bl _g_checksum_update ldr w0, [x23] bl _g_checksum_type_get_length mov x1, x0 mov x0, x21 bl _g_string_set_size ldr w8, [x21, #16] str w8, [x21] ldr x1, [x21, #8] mov x0, x22 mov x2, x21 bl _g_checksum_get_digest mov x0, x22 bl _g_checksum_free mov w0, #0 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 .cfi_endproc ; -- End function .comm _G_CHECKSUM_SHA1,4,2 ; @G_CHECKSUM_SHA1 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_password_hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_password_scramble ## -- Begin function network_mysqld_proto_password_scramble .p2align 4, 0x90 _network_mysqld_proto_password_scramble: ## @network_mysqld_proto_password_scramble .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 %r8d, %r12d movq %rcx, %rbx movl %edx, %r15d movl %edx, -44(%rbp) ## 4-byte Spill movq %rsi, %r13 movq %rdi, %r14 xorl %edi, %edi testq %rsi, %rsi setne %dil movl $-1, %esi callq _g_return_val_if_fail xorl %edi, %edi cmpl $20, %r15d sete %dil movl $-1, %esi callq _g_return_val_if_fail xorl %edi, %edi testq %rbx, %rbx setne %dil movl $-1, %esi callq _g_return_val_if_fail xorl %edi, %edi cmpl $20, %r12d sete %dil movl $-1, %esi callq _g_return_val_if_fail xorl %edi, %edi callq _g_string_new movq %rax, %r15 movq %rax, %rdi movq %rbx, %rsi movl %r12d, %edx callq _network_mysqld_proto_password_hash movq _G_CHECKSUM_SHA1@GOTPCREL(%rip), %rax movl (%rax), %edi callq _g_checksum_new movq %rax, %r12 movq %rax, %rdi movq %r13, %rsi movl -44(%rbp), %edx ## 4-byte Reload callq _g_checksum_update movq (%r15), %rsi movl 8(%r15), %edx movq %r12, %rdi callq _g_checksum_update movq _G_CHECKSUM_SHA1@GOTPCREL(%rip), %rax movl (%rax), %edi callq _g_checksum_type_get_length movq %r14, %rdi movl %eax, %esi callq _g_string_set_size movl 12(%r14), %eax leaq 8(%r14), %rdx movl %eax, 8(%r14) movq (%r14), %rsi movq %r12, %rdi callq _g_checksum_get_digest movq %r12, %rdi callq _g_checksum_free movq (%r14), %rax movsbl (%rbx), %ecx xorl %ecx, (%rax) movsbl 1(%rbx), %ecx xorl %ecx, 4(%rax) movsbl 2(%rbx), %ecx xorl %ecx, 8(%rax) movsbl 3(%rbx), %ecx xorl %ecx, 12(%rax) movsbl 4(%rbx), %ecx xorl %ecx, 16(%rax) movsbl 5(%rbx), %ecx xorl %ecx, 20(%rax) movsbl 6(%rbx), %ecx xorl %ecx, 24(%rax) movsbl 7(%rbx), %ecx xorl %ecx, 28(%rax) movsbl 8(%rbx), %ecx xorl %ecx, 32(%rax) movsbl 9(%rbx), %ecx xorl %ecx, 36(%rax) movsbl 10(%rbx), %ecx xorl %ecx, 40(%rax) movsbl 11(%rbx), %ecx xorl %ecx, 44(%rax) movsbl 12(%rbx), %ecx xorl %ecx, 48(%rax) movsbl 13(%rbx), %ecx xorl %ecx, 52(%rax) movsbl 14(%rbx), %ecx xorl %ecx, 56(%rax) movsbl 15(%rbx), %ecx xorl %ecx, 60(%rax) movsbl 16(%rbx), %ecx xorl %ecx, 64(%rax) movsbl 17(%rbx), %ecx xorl %ecx, 68(%rax) movsbl 18(%rbx), %ecx xorl %ecx, 72(%rax) movsbl 19(%rbx), %ecx xorl %ecx, 76(%rax) movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r15, %rdi callq _g_string_free xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _G_CHECKSUM_SHA1,4,2 ## @G_CHECKSUM_SHA1 .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_password_scramble ; -- Begin function network_mysqld_proto_password_scramble .p2align 2 _network_mysqld_proto_password_scramble: ; @network_mysqld_proto_password_scramble .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 x22, x4 mov x19, x3 mov x23, x2 mov x24, x1 mov x21, x0 cmp x1, #0 cset w0, ne mov w1, #-1 bl _g_return_val_if_fail cmp w23, #20 cset w0, eq mov w1, #-1 bl _g_return_val_if_fail cmp x19, #0 cset w0, ne mov w1, #-1 bl _g_return_val_if_fail cmp w22, #20 cset w0, eq mov w1, #-1 bl _g_return_val_if_fail mov x0, #0 bl _g_string_new mov x20, x0 mov x1, x19 mov x2, x22 bl _network_mysqld_proto_password_hash Lloh0: adrp x25, _G_CHECKSUM_SHA1@GOTPAGE Lloh1: ldr x25, [x25, _G_CHECKSUM_SHA1@GOTPAGEOFF] ldr w0, [x25] bl _g_checksum_new mov x22, x0 mov x1, x24 mov x2, x23 bl _g_checksum_update ldr x1, [x20] ldr w2, [x20, #8] mov x0, x22 bl _g_checksum_update ldr w0, [x25] bl _g_checksum_type_get_length mov x1, x0 mov x0, x21 bl _g_string_set_size ldr w8, [x21, #12] mov x2, x21 str w8, [x2, #8]! ldr x1, [x21] mov x0, x22 bl _g_checksum_get_digest mov x0, x22 bl _g_checksum_free ldr x8, [x21] ldrsb w9, [x19] ldp w10, w11, [x8] eor w9, w10, w9 str w9, [x8] ldrsb w9, [x19, #1] eor w9, w11, w9 str w9, [x8, #4] ldrsb w9, [x19, #2] ldp w10, w11, [x8, #8] eor w9, w10, w9 str w9, [x8, #8] ldrsb w9, [x19, #3] eor w9, w11, w9 str w9, [x8, #12] ldrsb w9, [x19, #4] ldp w10, w11, [x8, #16] eor w9, w10, w9 str w9, [x8, #16] ldrsb w9, [x19, #5] eor w9, w11, w9 str w9, [x8, #20] ldrsb w9, [x19, #6] ldp w10, w11, [x8, #24] eor w9, w10, w9 str w9, [x8, #24] ldrsb w9, [x19, #7] eor w9, w11, w9 str w9, [x8, #28] ldrsb w9, [x19, #8] ldp w10, w11, [x8, #32] eor w9, w10, w9 str w9, [x8, #32] ldrsb w9, [x19, #9] eor w9, w11, w9 str w9, [x8, #36] ldrsb w9, [x19, #10] ldp w10, w11, [x8, #40] eor w9, w10, w9 str w9, [x8, #40] ldrsb w9, [x19, #11] eor w9, w11, w9 str w9, [x8, #44] ldrsb w9, [x19, #12] ldp w10, w11, [x8, #48] eor w9, w10, w9 str w9, [x8, #48] ldrsb w9, [x19, #13] eor w9, w11, w9 str w9, [x8, #52] ldrsb w9, [x19, #14] ldp w10, w11, [x8, #56] eor w9, w10, w9 str w9, [x8, #56] ldrsb w9, [x19, #15] eor w9, w11, w9 str w9, [x8, #60] ldrsb w9, [x19, #16] ldp w10, w11, [x8, #64] eor w9, w10, w9 str w9, [x8, #64] ldrsb w9, [x19, #17] eor w9, w11, w9 str w9, [x8, #68] ldrsb w9, [x19, #18] ldp w10, w11, [x8, #72] eor w9, w10, w9 str w9, [x8, #72] ldrsb w9, [x19, #19] eor w9, w11, w9 str w9, [x8, #76] Lloh2: adrp x8, _TRUE@GOTPAGE Lloh3: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh4: ldr w1, [x8] mov x0, x20 bl _g_string_free mov w0, #0 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 AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _G_CHECKSUM_SHA1,4,2 ; @G_CHECKSUM_SHA1 .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_password_scramble.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_password_unscramble ## -- Begin function network_mysqld_proto_password_unscramble .p2align 4, 0x90 _network_mysqld_proto_password_unscramble: ## @network_mysqld_proto_password_unscramble .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 %r9, -48(%rbp) ## 8-byte Spill movl %r8d, %r15d movq %rcx, %rbx movl %edx, %r12d movq %rsi, %r13 movq %rsi, -56(%rbp) ## 8-byte Spill movq %rdi, %r14 xorl %edi, %edi testq %rcx, %rcx setne %dil movq _FALSE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _g_return_val_if_fail xorl %edi, %edi cmpl $20, %r15d sete %dil movq _FALSE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _g_return_val_if_fail xorl %edi, %edi testq %r13, %r13 setne %dil movq _FALSE@GOTPCREL(%rip), %r15 movl (%r15), %esi callq _g_return_val_if_fail xorl %edi, %edi cmpl $20, %r12d sete %dil movl (%r15), %esi callq _g_return_val_if_fail xorl %edi, %edi cmpq $0, -48(%rbp) ## 8-byte Folded Reload setne %dil movl (%r15), %esi callq _g_return_val_if_fail xorl %edi, %edi cmpl $20, 16(%rbp) sete %dil movl (%r15), %esi callq _g_return_val_if_fail movq _G_CHECKSUM_SHA1@GOTPCREL(%rip), %r13 movl (%r13), %edi callq _g_checksum_new movq %rax, %r15 movq %rax, %rdi movq -56(%rbp), %rsi ## 8-byte Reload movl %r12d, %edx callq _g_checksum_update movq %r15, %rdi movq -48(%rbp), %rsi ## 8-byte Reload movl 16(%rbp), %edx callq _g_checksum_update movl (%r13), %edi callq _g_checksum_type_get_length movq %r14, %rdi movl %eax, %esi callq _g_string_set_size movl 12(%r14), %eax leaq 8(%r14), %rdx movl %eax, 8(%r14) movq (%r14), %rsi movq %r15, %rdi callq _g_checksum_get_digest movq %r15, %rdi callq _g_checksum_free movq (%r14), %rax movsbl (%rbx), %ecx xorl %ecx, (%rax) movsbl 1(%rbx), %ecx xorl %ecx, 4(%rax) movsbl 2(%rbx), %ecx xorl %ecx, 8(%rax) movsbl 3(%rbx), %ecx xorl %ecx, 12(%rax) movsbl 4(%rbx), %ecx xorl %ecx, 16(%rax) movsbl 5(%rbx), %ecx xorl %ecx, 20(%rax) movsbl 6(%rbx), %ecx xorl %ecx, 24(%rax) movsbl 7(%rbx), %ecx xorl %ecx, 28(%rax) movsbl 8(%rbx), %ecx xorl %ecx, 32(%rax) movsbl 9(%rbx), %ecx xorl %ecx, 36(%rax) movsbl 10(%rbx), %ecx xorl %ecx, 40(%rax) movsbl 11(%rbx), %ecx xorl %ecx, 44(%rax) movsbl 12(%rbx), %ecx xorl %ecx, 48(%rax) movsbl 13(%rbx), %ecx xorl %ecx, 52(%rax) movsbl 14(%rbx), %ecx xorl %ecx, 56(%rax) movsbl 15(%rbx), %ecx xorl %ecx, 60(%rax) movsbl 16(%rbx), %ecx xorl %ecx, 64(%rax) movsbl 17(%rbx), %ecx xorl %ecx, 68(%rax) movsbl 18(%rbx), %ecx xorl %ecx, 72(%rax) movsbl 19(%rbx), %ecx xorl %ecx, 76(%rax) xorl %eax, %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 .comm _G_CHECKSUM_SHA1,4,2 ## @G_CHECKSUM_SHA1 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_password_unscramble ; -- Begin function network_mysqld_proto_password_unscramble .p2align 2 _network_mysqld_proto_password_unscramble: ; @network_mysqld_proto_password_unscramble .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 x21, x6 mov x22, x5 mov x25, x4 mov x19, x3 mov x23, x2 mov x24, x1 mov x20, x0 cmp x3, #0 cset w0, ne Lloh0: adrp x26, _FALSE@GOTPAGE Lloh1: ldr x26, [x26, _FALSE@GOTPAGEOFF] ldr w1, [x26] bl _g_return_val_if_fail cmp w25, #20 cset w0, eq ldr w1, [x26] bl _g_return_val_if_fail cmp x24, #0 cset w0, ne ldr w1, [x26] bl _g_return_val_if_fail cmp w23, #20 cset w0, eq ldr w1, [x26] bl _g_return_val_if_fail cmp x22, #0 cset w0, ne ldr w1, [x26] bl _g_return_val_if_fail cmp w21, #20 cset w0, eq ldr w1, [x26] bl _g_return_val_if_fail Lloh2: adrp x26, _G_CHECKSUM_SHA1@GOTPAGE Lloh3: ldr x26, [x26, _G_CHECKSUM_SHA1@GOTPAGEOFF] ldr w0, [x26] bl _g_checksum_new mov x25, x0 mov x1, x24 mov x2, x23 bl _g_checksum_update mov x0, x25 mov x1, x22 mov x2, x21 bl _g_checksum_update ldr w0, [x26] bl _g_checksum_type_get_length mov x1, x0 mov x0, x20 bl _g_string_set_size ldr w8, [x20, #12] mov x2, x20 str w8, [x2, #8]! ldr x1, [x20] mov x0, x25 bl _g_checksum_get_digest mov x0, x25 bl _g_checksum_free ldr x8, [x20] ldrsb w9, [x19] ldp w10, w11, [x8] eor w9, w10, w9 str w9, [x8] ldrsb w9, [x19, #1] eor w9, w11, w9 str w9, [x8, #4] ldrsb w9, [x19, #2] ldp w10, w11, [x8, #8] eor w9, w10, w9 str w9, [x8, #8] ldrsb w9, [x19, #3] eor w9, w11, w9 str w9, [x8, #12] ldrsb w9, [x19, #4] ldp w10, w11, [x8, #16] eor w9, w10, w9 str w9, [x8, #16] ldrsb w9, [x19, #5] eor w9, w11, w9 str w9, [x8, #20] ldrsb w9, [x19, #6] ldp w10, w11, [x8, #24] eor w9, w10, w9 str w9, [x8, #24] ldrsb w9, [x19, #7] eor w9, w11, w9 str w9, [x8, #28] ldrsb w9, [x19, #8] ldp w10, w11, [x8, #32] eor w9, w10, w9 str w9, [x8, #32] ldrsb w9, [x19, #9] eor w9, w11, w9 str w9, [x8, #36] ldrsb w9, [x19, #10] ldp w10, w11, [x8, #40] eor w9, w10, w9 str w9, [x8, #40] ldrsb w9, [x19, #11] eor w9, w11, w9 str w9, [x8, #44] ldrsb w9, [x19, #12] ldp w10, w11, [x8, #48] eor w9, w10, w9 str w9, [x8, #48] ldrsb w9, [x19, #13] eor w9, w11, w9 str w9, [x8, #52] ldrsb w9, [x19, #14] ldp w10, w11, [x8, #56] eor w9, w10, w9 str w9, [x8, #56] ldrsb w9, [x19, #15] eor w9, w11, w9 str w9, [x8, #60] ldrsb w9, [x19, #16] ldp w10, w11, [x8, #64] eor w9, w10, w9 str w9, [x8, #64] ldrsb w9, [x19, #17] eor w9, w11, w9 str w9, [x8, #68] ldrsb w9, [x19, #18] ldp w10, w11, [x8, #72] eor w9, w10, w9 str w9, [x8, #72] ldrsb w9, [x19, #19] eor w9, w11, w9 str w9, [x8, #76] mov w0, #0 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 _FALSE,4,2 ; @FALSE .comm _G_CHECKSUM_SHA1,4,2 ; @G_CHECKSUM_SHA1 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_password_unscramble.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_peek_int_len ## -- Begin function network_mysqld_proto_peek_int_len .p2align 4, 0x90 _network_mysqld_proto_peek_int_len: ## @network_mysqld_proto_peek_int_len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq 8(%rdi), %rax movslq (%rdi), %rcx movq (%rax), %rax cmpq %rcx, %rax setl %sil movslq %edx, %rdx addq %rcx, %rdx cmpq %rdx, %rax setl %al orb %sil, %al movzbl %al, %eax negl %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_peek_int_len ; -- Begin function network_mysqld_proto_peek_int_len .p2align 2 _network_mysqld_proto_peek_int_len: ; @network_mysqld_proto_peek_int_len .cfi_startproc ; %bb.0: ldr x8, [x0, #8] ldrsw x9, [x0] ldr x8, [x8] cmp x8, x9 add x9, x9, w2, sxtw ccmp x8, x9, #8, ge cset w8, lt sbfx w0, w8, #0, #1 ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_peek_int_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_peek_lenenc_type ## -- Begin function network_mysqld_proto_peek_lenenc_type .p2align 4, 0x90 _network_mysqld_proto_peek_lenenc_type: ## @network_mysqld_proto_peek_lenenc_type .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 %rsi, %r14 movq %rdi, %r15 movq (%rdi), %r12 movq 8(%rdi), %rax movq 8(%rax), %rbx xorl %edi, %edi cmpq (%rax), %r12 setb %dil movl $-1, %esi callq _g_return_val_if_fail movb (%rbx,%r12), %dl movq _NETWORK_MYSQLD_LENENC_TYPE_INT@GOTPCREL(%rip), %rax cmpb $-5, %dl jb LBB0_9 ## %bb.2: addb $5, %dl cmpb $3, %dl ja LBB0_5 ## %bb.3: movq _NETWORK_MYSQLD_LENENC_TYPE_NULL@GOTPCREL(%rip), %rcx movzbl %dl, %edx leaq LJTI0_0(%rip), %rsi movslq (%rsi,%rdx,4), %rdx addq %rsi, %rdx jmpq *%rdx LBB0_9: movq %rax, %rcx LBB0_10: movl (%rcx), %eax movl %eax, (%r14) xorl %eax, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq LBB0_5: movq _NETWORK_MYSQLD_LENENC_TYPE_ERR@GOTPCREL(%rip), %rcx jmp LBB0_10 LBB0_6: cmpq $4, %r12 jne LBB0_9 ## %bb.7: movq 8(%r15), %rcx movq (%rcx), %rcx subq (%r15), %rcx cmpq $8, %rcx jae LBB0_9 ## %bb.8: movq _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPCREL(%rip), %rcx jmp LBB0_10 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_10, LBB0_10-LJTI0_0 .set L0_0_set_9, LBB0_9-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 LJTI0_0: .long L0_0_set_10 .long L0_0_set_9 .long L0_0_set_9 .long L0_0_set_6 .end_data_region ## -- End function .comm _NETWORK_MYSQLD_LENENC_TYPE_INT,4,2 ## @NETWORK_MYSQLD_LENENC_TYPE_INT .comm _NETWORK_MYSQLD_LENENC_TYPE_NULL,4,2 ## @NETWORK_MYSQLD_LENENC_TYPE_NULL .comm _NETWORK_MYSQLD_LENENC_TYPE_EOF,4,2 ## @NETWORK_MYSQLD_LENENC_TYPE_EOF .comm _NETWORK_MYSQLD_LENENC_TYPE_ERR,4,2 ## @NETWORK_MYSQLD_LENENC_TYPE_ERR .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_peek_lenenc_type ; -- Begin function network_mysqld_proto_peek_lenenc_type .p2align 2 _network_mysqld_proto_peek_lenenc_type: ; @network_mysqld_proto_peek_lenenc_type .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, x1 mov x20, x0 ldp x21, x8, [x0] ldp x8, x22, [x8] cmp x21, x8 cset w0, lo mov w1, #-1 bl _g_return_val_if_fail ldrb w8, [x22, x21] subs w9, w8, #251 b.lo LBB0_3 ; %bb.1: cmp w9, #3 b.hi LBB0_5 ; %bb.2: Lloh0: adrp x8, _NETWORK_MYSQLD_LENENC_TYPE_NULL@GOTPAGE Lloh1: ldr x8, [x8, _NETWORK_MYSQLD_LENENC_TYPE_NULL@GOTPAGEOFF] Lloh2: adrp x10, lJTI0_0@PAGE Lloh3: add x10, x10, lJTI0_0@PAGEOFF adr x11, LBB0_3 ldrb w12, [x10, x9] add x11, x11, x12, lsl #2 br x11 LBB0_3: Lloh4: adrp x8, _NETWORK_MYSQLD_LENENC_TYPE_INT@GOTPAGE Lloh5: ldr x8, [x8, _NETWORK_MYSQLD_LENENC_TYPE_INT@GOTPAGEOFF] LBB0_4: ldr w8, [x8] str w8, [x19] mov w0, #0 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_5: Lloh6: adrp x8, _NETWORK_MYSQLD_LENENC_TYPE_ERR@GOTPAGE Lloh7: ldr x8, [x8, _NETWORK_MYSQLD_LENENC_TYPE_ERR@GOTPAGEOFF] b LBB0_4 LBB0_6: cmp x21, #4 b.ne LBB0_3 ; %bb.7: ldp x9, x8, [x20] ldr x8, [x8] sub x8, x8, x9 cmp x8, #8 b.hs LBB0_3 ; %bb.8: Lloh8: adrp x8, _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPAGE Lloh9: ldr x8, [x8, _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPAGEOFF] b LBB0_4 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGot Lloh6, Lloh7 .loh AdrpLdrGot Lloh8, Lloh9 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_4-LBB0_3)>>2 .byte (LBB0_3-LBB0_3)>>2 .byte (LBB0_3-LBB0_3)>>2 .byte (LBB0_6-LBB0_3)>>2 ; -- End function .comm _NETWORK_MYSQLD_LENENC_TYPE_INT,4,2 ; @NETWORK_MYSQLD_LENENC_TYPE_INT .comm _NETWORK_MYSQLD_LENENC_TYPE_NULL,4,2 ; @NETWORK_MYSQLD_LENENC_TYPE_NULL .comm _NETWORK_MYSQLD_LENENC_TYPE_EOF,4,2 ; @NETWORK_MYSQLD_LENENC_TYPE_EOF .comm _NETWORK_MYSQLD_LENENC_TYPE_ERR,4,2 ; @NETWORK_MYSQLD_LENENC_TYPE_ERR .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_peek_lenenc_type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_set_packet_id ## -- Begin function network_mysqld_proto_set_packet_id .p2align 4, 0x90 _network_mysqld_proto_set_packet_id: ## @network_mysqld_proto_set_packet_id .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax movb %sil, 3(%rax) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_set_packet_id ; -- Begin function network_mysqld_proto_set_packet_id .p2align 2 _network_mysqld_proto_set_packet_id: ; @network_mysqld_proto_set_packet_id .cfi_startproc ; %bb.0: ldr x8, [x0] strb w1, [x8, #3] mov w0, #0 ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_set_packet_id.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_skip ## -- Begin function network_mysqld_proto_skip .p2align 4, 0x90 _network_mysqld_proto_skip: ## @network_mysqld_proto_skip .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp addq (%rdi), %rsi movq 8(%rdi), %rcx movl $-1, %eax cmpq (%rcx), %rsi jg LBB0_2 ## %bb.1: movq %rsi, (%rdi) xorl %eax, %eax LBB0_2: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_skip ; -- Begin function network_mysqld_proto_skip .p2align 2 _network_mysqld_proto_skip: ; @network_mysqld_proto_skip .cfi_startproc ; %bb.0: ldp x9, x10, [x0] ldr x10, [x10] add x9, x9, x1 cmp x9, x10 b.le LBB0_2 ; %bb.1: mov w0, #-1 ret LBB0_2: mov x8, x0 mov w0, #0 str x9, [x8] ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_skip.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_skip_network_header ## -- Begin function network_mysqld_proto_skip_network_header .p2align 4, 0x90 _network_mysqld_proto_skip_network_header: ## @network_mysqld_proto_skip_network_header .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _NET_HEADER_SIZE@GOTPCREL(%rip), %rax movl (%rax), %esi popq %rbp jmp _network_mysqld_proto_skip ## TAILCALL .cfi_endproc ## -- End function .comm _NET_HEADER_SIZE,4,2 ## @NET_HEADER_SIZE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_proto_skip_network_header ; -- Begin function network_mysqld_proto_skip_network_header .p2align 2 _network_mysqld_proto_skip_network_header: ; @network_mysqld_proto_skip_network_header .cfi_startproc ; %bb.0: Lloh0: adrp x8, _NET_HEADER_SIZE@GOTPAGE Lloh1: ldr x8, [x8, _NET_HEADER_SIZE@GOTPAGEOFF] Lloh2: ldr w1, [x8] b _network_mysqld_proto_skip .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _NET_HEADER_SIZE,4,2 ; @NET_HEADER_SIZE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_mysqld_proto_skip_network_header.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_packet_free ## -- Begin function network_packet_free .p2align 4, 0x90 _network_packet_free: ## @network_packet_free .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp testq %rdi, %rdi je LBB0_1 ## %bb.2: popq %rbp jmp _g_free ## TAILCALL LBB0_1: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_packet_free ; -- Begin function network_packet_free .p2align 2 _network_packet_free: ; @network_packet_free .cfi_startproc ; %bb.0: cbz x0, LBB0_2 ; %bb.1: b _g_free LBB0_2: ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld-proto.c_network_packet_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_add_connection ## -- Begin function network_mysqld_add_connection .p2align 4, 0x90 _network_mysqld_add_connection: ## @network_mysqld_add_connection .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, (%rsi) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_add_connection ; -- Begin function network_mysqld_add_connection .p2align 2 _network_mysqld_add_connection: ; @network_mysqld_add_connection .cfi_startproc ; %bb.0: str x0, [x1] ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld.c_network_mysqld_add_connection.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_free ## -- Begin function network_mysqld_con_free .p2align 4, 0x90 _network_mysqld_con_free: ## @network_mysqld_con_free .cfi_startproc ## %bb.0: testq %rdi, %rdi je LBB0_25 ## %bb.1: 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, %r14 movq 88(%rdi), %rdi testq %rdi, %rdi je LBB0_4 ## %bb.2: movq 96(%r14), %rax testq %rax, %rax je LBB0_4 ## %bb.3: callq *%rax LBB0_4: movq 80(%r14), %rdi testq %rdi, %rdi je LBB0_6 ## %bb.5: callq _network_socket_free LBB0_6: movq 72(%r14), %rdi testq %rdi, %rdi je LBB0_8 ## %bb.7: callq _network_socket_free LBB0_8: movq 64(%r14), %rbx testq %rbx, %rbx je LBB0_12 ## %bb.9: movq (%rbx), %rdi testq %rdi, %rdi je LBB0_12 ## %bb.10: xorl %esi, %esi xorl %edx, %edx callq _g_atomic_int_compare_and_exchange testl %eax, %eax jne LBB0_12 ## %bb.11: movq (%rbx), %rdi callq _g_atomic_int_dec_and_test LBB0_12: movq 56(%r14), %rdi movq _TRUE@GOTPCREL(%rip), %rbx movl (%rbx), %esi callq _g_string_free movq 48(%r14), %rdi movl (%rbx), %esi callq _g_string_free movq 40(%r14), %rdi movl (%rbx), %esi callq _g_string_free movl 32(%r14), %edi callq _g_hash_table_remove_all movl 32(%r14), %edi callq _g_hash_table_destroy movq 16(%r14), %rdi testq %rdi, %rdi je LBB0_22 ## %bb.13: movq 24(%rdi), %r15 testq %r15, %r15 je LBB0_21 ## %bb.14: cmpq $0, (%r15) jle LBB0_20 ## %bb.15: xorl %r12d, %r12d jmp LBB0_16 .p2align 4, 0x90 LBB0_19: ## in Loop: Header=BB0_16 Depth=1 movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r13, %rdi callq _g_ptr_array_free incq %r12 cmpq (%r15), %r12 jge LBB0_20 LBB0_16: ## =>This Loop Header: Depth=1 ## Child Loop BB0_18 Depth 2 movq %r15, %rdi movq %r12, %rsi callq _g_ptr_array_index movq %rax, %r13 cmpq $0, (%rax) jle LBB0_19 ## %bb.17: ## in Loop: Header=BB0_16 Depth=1 xorl %ebx, %ebx .p2align 4, 0x90 LBB0_18: ## Parent Loop BB0_16 Depth=1 ## => This Inner Loop Header: Depth=2 movq %r13, %rdi movq %rbx, %rsi callq _g_ptr_array_index movq %rax, %rdi callq _g_free incq %rbx cmpq (%r13), %rbx jl LBB0_18 jmp LBB0_19 LBB0_25: retq LBB0_20: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r15, %rdi callq _g_ptr_array_free movq 16(%r14), %rdi LBB0_21: callq _g_free LBB0_22: movq 8(%r14), %rdi testq %rdi, %rdi je LBB0_24 ## %bb.23: movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi callq _g_string_free LBB0_24: movq %r14, %rdi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _g_free ## TAILCALL .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_free ; -- Begin function network_mysqld_con_free .p2align 2 _network_mysqld_con_free: ; @network_mysqld_con_free .cfi_startproc ; %bb.0: cbz x0, LBB0_20 ; %bb.1: 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 .cfi_remember_state mov x19, x0 ldr x0, [x0, #88] cbz x0, LBB0_4 ; %bb.2: ldr x8, [x19, #96] cbz x8, LBB0_4 ; %bb.3: blr x8 LBB0_4: ldr x0, [x19, #80] cbz x0, LBB0_6 ; %bb.5: bl _network_socket_free LBB0_6: ldr x0, [x19, #72] cbz x0, LBB0_8 ; %bb.7: bl _network_socket_free LBB0_8: ldr x20, [x19, #64] cbz x20, LBB0_12 ; %bb.9: ldr x0, [x20] cbz x0, LBB0_12 ; %bb.10: mov w1, #0 mov w2, #0 bl _g_atomic_int_compare_and_exchange cbnz w0, LBB0_12 ; %bb.11: ldr x0, [x20] bl _g_atomic_int_dec_and_test LBB0_12: ldr x0, [x19, #56] Lloh0: adrp x24, _TRUE@GOTPAGE Lloh1: ldr x24, [x24, _TRUE@GOTPAGEOFF] ldr w1, [x24] bl _g_string_free ldr x0, [x19, #48] ldr w1, [x24] bl _g_string_free ldr x0, [x19, #40] ldr w1, [x24] bl _g_string_free ldr w0, [x19, #32] bl _g_hash_table_remove_all ldr w0, [x19, #32] bl _g_hash_table_destroy ldr x0, [x19, #16] cbz x0, LBB0_23 ; %bb.13: ldr x20, [x0, #24] cbz x20, LBB0_22 ; %bb.14: ldr x8, [x20] cmp x8, #1 b.lt LBB0_21 ; %bb.15: mov x21, #0 b LBB0_17 LBB0_16: ; in Loop: Header=BB0_17 Depth=1 ldr w1, [x24] mov x0, x22 bl _g_ptr_array_free add x21, x21, #1 ldr x8, [x20] cmp x21, x8 b.ge LBB0_21 LBB0_17: ; =>This Loop Header: Depth=1 ; Child Loop BB0_19 Depth 2 mov x0, x20 mov x1, x21 bl _g_ptr_array_index mov x22, x0 ldr x8, [x0] cmp x8, #1 b.lt LBB0_16 ; %bb.18: ; in Loop: Header=BB0_17 Depth=1 mov x23, #0 LBB0_19: ; Parent Loop BB0_17 Depth=1 ; => This Inner Loop Header: Depth=2 mov x0, x22 mov x1, x23 bl _g_ptr_array_index bl _g_free add x23, x23, #1 ldr x8, [x22] cmp x23, x8 b.lt LBB0_19 b LBB0_16 LBB0_20: .cfi_def_cfa wsp, 0 .cfi_same_value w30 .cfi_same_value w29 .cfi_same_value w19 .cfi_same_value w20 .cfi_same_value w21 .cfi_same_value w22 .cfi_same_value w23 .cfi_same_value w24 ret LBB0_21: .cfi_restore_state ldr w1, [x24] mov x0, x20 bl _g_ptr_array_free ldr x0, [x19, #16] LBB0_22: bl _g_free LBB0_23: ldr x0, [x19, #8] cbz x0, LBB0_25 ; %bb.24: ldr w1, [x24] bl _g_string_free LBB0_25: 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 _g_free .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld.c_network_mysqld_con_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_reset_command_response_state ## -- Begin function network_mysqld_con_reset_command_response_state .p2align 4, 0x90 _network_mysqld_con_reset_command_response_state: ## @network_mysqld_con_reset_command_response_state .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, (%rdi) movq 16(%rdi), %rdi testq %rdi, %rdi je LBB0_3 ## %bb.1: movq 8(%rbx), %rax testq %rax, %rax je LBB0_3 ## %bb.2: addq $8, %rbx callq *%rax xorps %xmm0, %xmm0 movups %xmm0, (%rbx) LBB0_3: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_reset_command_response_state ; -- Begin function network_mysqld_con_reset_command_response_state .p2align 2 _network_mysqld_con_reset_command_response_state: ; @network_mysqld_con_reset_command_response_state .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 w8, #-1 str w8, [x0] ldr x0, [x0, #16] cbz x0, LBB0_3 ; %bb.1: ldr x8, [x19, #8]! cbz x8, LBB0_3 ; %bb.2: blr x8 stp xzr, xzr, [x19] 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 .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld.c_network_mysqld_con_reset_command_response_state.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_send_error ## -- Begin function network_mysqld_con_send_error .p2align 4, 0x90 _network_mysqld_con_send_error: ## @network_mysqld_con_send_error .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _ER_UNKNOWN_ERROR@GOTPCREL(%rip), %rax movl (%rax), %ecx xorl %r8d, %r8d popq %rbp jmp _network_mysqld_con_send_error_full ## TAILCALL .cfi_endproc ## -- End function .comm _ER_UNKNOWN_ERROR,4,2 ## @ER_UNKNOWN_ERROR .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_send_error ; -- Begin function network_mysqld_con_send_error .p2align 2 _network_mysqld_con_send_error: ; @network_mysqld_con_send_error .cfi_startproc ; %bb.0: Lloh0: adrp x8, _ER_UNKNOWN_ERROR@GOTPAGE Lloh1: ldr x8, [x8, _ER_UNKNOWN_ERROR@GOTPAGEOFF] Lloh2: ldr w3, [x8] mov x4, #0 b _network_mysqld_con_send_error_full .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _ER_UNKNOWN_ERROR,4,2 ; @ER_UNKNOWN_ERROR .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld.c_network_mysqld_con_send_error.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_send_error_full ## -- Begin function network_mysqld_con_send_error_full .p2align 4, 0x90 _network_mysqld_con_send_error_full: ## @network_mysqld_con_send_error_full .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %r9d popq %rbp jmp _network_mysqld_con_send_error_full_all ## TAILCALL .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_send_error_full ; -- Begin function network_mysqld_con_send_error_full .p2align 2 _network_mysqld_con_send_error_full: ; @network_mysqld_con_send_error_full .cfi_startproc ; %bb.0: Lloh0: adrp x8, _TRUE@GOTPAGE Lloh1: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh2: ldr w5, [x8] b _network_mysqld_con_send_error_full_all .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld.c_network_mysqld_con_send_error_full.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function network_mysqld_con_send_error_full_all _network_mysqld_con_send_error_full_all: ## @network_mysqld_con_send_error_full_all .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 %r9, %rbx movq %r8, -56(%rbp) ## 8-byte Spill movl %ecx, -44(%rbp) ## 4-byte Spill movl %edx, %r13d movq %rsi, %r14 movq %rdi, %r12 leal 10(%r13), %edi callq _g_string_sized_new movq %rax, -64(%rbp) ## 8-byte Spill xorl %eax, %eax testq %rbx, %rbx je LBB0_2 ## %bb.1: callq _network_mysqld_err_packet_new jmp LBB0_3 LBB0_2: callq _network_mysqld_err_packet_new_pre41 LBB0_3: movq %rax, %r15 movl -44(%rbp), %eax ## 4-byte Reload movl %eax, 8(%r15) testq %r14, %r14 movq -56(%rbp), %rbx ## 8-byte Reload je LBB0_5 ## %bb.4: movl 4(%r15), %edi movq %r14, %rsi movl %r13d, %edx callq _g_string_assign_len LBB0_5: testq %rbx, %rbx je LBB0_7 ## %bb.6: movl (%r15), %r14d movq %rbx, %rdi callq _strlen movl %r14d, %edi movq %rbx, %rsi movl %eax, %edx callq _g_string_assign_len LBB0_7: movq -64(%rbp), %rbx ## 8-byte Reload movq %rbx, %rdi movq %r15, %rsi callq _network_mysqld_proto_append_err_packet movl (%r12), %r14d movq %rbx, %rdi callq _S movq %r12, %rdi movl %r14d, %esi movl %eax, %edx callq _network_mysqld_queue_append movq %r12, %rdi callq _network_mysqld_queue_reset movq %r15, %rdi callq _network_mysqld_err_packet_free movq _TRUE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi callq _g_string_free xorl %eax, %eax addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _TRUE,4,2 ## @TRUE .no_dead_strip _network_mysqld_con_send_error_full_all .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function network_mysqld_con_send_error_full_all _network_mysqld_con_send_error_full_all: ; @network_mysqld_con_send_error_full_all .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 x21, x5 mov x22, x4 mov x25, x3 mov x23, x2 mov x24, x1 mov x20, x0 add w0, w2, #10 bl _g_string_sized_new mov x19, x0 cbz x21, LBB0_2 ; %bb.1: bl _network_mysqld_err_packet_new b LBB0_3 LBB0_2: bl _network_mysqld_err_packet_new_pre41 LBB0_3: mov x21, x0 str w25, [x0, #8] cbz x24, LBB0_5 ; %bb.4: ldr w0, [x21, #4] mov x1, x24 mov x2, x23 bl _g_string_assign_len LBB0_5: cbz x22, LBB0_7 ; %bb.6: ldr w23, [x21] mov x0, x22 bl _strlen mov x2, x0 mov x0, x23 mov x1, x22 bl _g_string_assign_len LBB0_7: mov x0, x19 mov x1, x21 bl _network_mysqld_proto_append_err_packet ldr w22, [x20] mov x0, x19 bl _S mov x2, x0 mov x0, x20 mov x1, x22 bl _network_mysqld_queue_append mov x0, x20 bl _network_mysqld_queue_reset mov x0, x21 bl _network_mysqld_err_packet_free Lloh0: adrp x8, _TRUE@GOTPAGE Lloh1: ldr x8, [x8, _TRUE@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov x0, x19 bl _g_string_free mov w0, #0 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 AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TRUE,4,2 ; @TRUE .no_dead_strip _network_mysqld_con_send_error_full_all .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld.c_network_mysqld_con_send_error_full_all.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_send_error_pre41 ## -- Begin function network_mysqld_con_send_error_pre41 .p2align 4, 0x90 _network_mysqld_con_send_error_pre41: ## @network_mysqld_con_send_error_pre41 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _ER_UNKNOWN_ERROR@GOTPCREL(%rip), %rax movl (%rax), %ecx popq %rbp jmp _network_mysqld_con_send_error_pre41_full ## TAILCALL .cfi_endproc ## -- End function .comm _ER_UNKNOWN_ERROR,4,2 ## @ER_UNKNOWN_ERROR .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _network_mysqld_con_send_error_pre41 ; -- Begin function network_mysqld_con_send_error_pre41 .p2align 2 _network_mysqld_con_send_error_pre41: ; @network_mysqld_con_send_error_pre41 .cfi_startproc ; %bb.0: Lloh0: adrp x8, _ER_UNKNOWN_ERROR@GOTPAGE Lloh1: ldr x8, [x8, _ER_UNKNOWN_ERROR@GOTPAGEOFF] Lloh2: ldr w3, [x8] b _network_mysqld_con_send_error_pre41_full .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _ER_UNKNOWN_ERROR,4,2 ; @ER_UNKNOWN_ERROR .subsections_via_symbols
AnghaBench/Atlas/src/extr_network-mysqld.c_network_mysqld_con_send_error_pre41.c
anghabench