index
int64
0
66.5k
func_name
stringlengths
2
5.36k
func_dep
stringlengths
16
2.19k
func
stringlengths
8
55.3k
test
stringlengths
0
7.07k
opt
stringclasses
4 values
language
stringclasses
2 values
asm
stringlengths
0
45.4k
ida_asm
stringlengths
0
44.7k
ida_pseudo
stringlengths
0
44.3k
ghidra_asm
stringlengths
0
49.1k
ghidra_pseudo
stringlengths
0
64.7k
32,200
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned long, unsigned long, unsigned long)
monkey531[P]llama/common/json.hpp
inline void grisu2_round(char* buf, int len, std::uint64_t dist, std::uint64_t delta, std::uint64_t rest, std::uint64_t ten_k) { JSON_ASSERT(len >= 1); JSON_ASSERT(dist <= delta); JSON_ASSERT(rest <= delta); JSON_ASSERT(ten_k > 0); // <--------------------------- delta ----> // <---- dist ---------> // --------------[------------------+-------------------]-------------- // M- w M+ // // ten_k // <------> // <---- rest ----> // --------------[------------------+----+--------------]-------------- // w V // = buf * 10^k // // ten_k represents a unit-in-the-last-place in the decimal representation // stored in buf. // Decrement buf by ten_k while this takes buf closer to w. // The tests are written in this order to avoid overflow in unsigned // integer arithmetic. while (rest < dist && delta - rest >= ten_k && (rest + ten_k < dist || dist - rest > rest + ten_k - dist)) { JSON_ASSERT(buf[len - 1] != '0'); buf[len - 1]--; rest += ten_k; } }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned long, unsigned long, unsigned long): pushq %rax testl %esi, %esi jle 0xb8162 cmpq %rcx, %rdx ja 0xb817e movq %rcx, %r10 subq %r8, %r10 jb 0xb819a testq %r9, %r9 je 0xb81b6 movq %rdx, %rax subq %r8, %rax setbe %r11b cmpq %r9, %r10 setb %r10b orb %r11b, %r10b jne 0xb813f movl %esi, %esi addq %r9, %r8 subq %r8, %rcx movq %rdx, %r10 negq %r10 cmpq %rdx, %r8 jb 0xb8115 leaq (%r10,%r8), %r11 cmpq %r11, %rax jbe 0xb813f movb -0x1(%rdi,%rsi), %r11b cmpb $0x30, %r11b je 0xb8141 decb %r11b movb %r11b, -0x1(%rdi,%rsi) subq %r9, %rcx setb %r11b cmpq %rdx, %r8 jae 0xb813f subq %r9, %rax addq %r9, %r8 testb %r11b, %r11b je 0xb8107 popq %rax retq leaq 0x35a9b(%rip), %rdi # 0xedbe3 leaq 0x2fff1(%rip), %rdx # 0xe8140 leaq 0x3b3f3(%rip), %rcx # 0xf3549 movl $0x444d, %esi # imm = 0x444D xorl %eax, %eax callq 0x1be80 leaq 0x35a7a(%rip), %rdi # 0xedbe3 leaq 0x2ffd0(%rip), %rdx # 0xe8140 leaq 0x3b3a3(%rip), %rcx # 0xf351a movl $0x4431, %esi # imm = 0x4431 jmp 0xb815b leaq 0x35a5e(%rip), %rdi # 0xedbe3 leaq 0x2ffb4(%rip), %rdx # 0xe8140 leaq 0x3b390(%rip), %rcx # 0xf3523 movl $0x4432, %esi # imm = 0x4432 jmp 0xb815b leaq 0x35a42(%rip), %rdi # 0xedbe3 leaq 0x2ff98(%rip), %rdx # 0xe8140 leaq 0x3b382(%rip), %rcx # 0xf3531 movl $0x4433, %esi # imm = 0x4433 jmp 0xb815b leaq 0x35a26(%rip), %rdi # 0xedbe3 leaq 0x2ff7c(%rip), %rdx # 0xe8140 leaq 0x3b374(%rip), %rcx # 0xf353f movl $0x4434, %esi # imm = 0x4434 jmp 0xb815b
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl12grisu2_roundEPcimmmm: push rax test esi, esi jle loc_B8162 cmp rdx, rcx ja loc_B817E mov r10, rcx sub r10, r8 jb loc_B819A test r9, r9 jz loc_B81B6 mov rax, rdx sub rax, r8 setbe r11b cmp r10, r9 setb r10b or r10b, r11b jnz short loc_B813F mov esi, esi add r8, r9 sub rcx, r8 mov r10, rdx neg r10 loc_B8107: cmp r8, rdx jb short loc_B8115 lea r11, [r10+r8] cmp rax, r11 jbe short loc_B813F loc_B8115: mov r11b, [rdi+rsi-1] cmp r11b, 30h ; '0' jz short loc_B8141 dec r11b mov [rdi+rsi-1], r11b sub rcx, r9 setb r11b cmp r8, rdx jnb short loc_B813F sub rax, r9 add r8, r9 test r11b, r11b jz short loc_B8107 loc_B813F: pop rax retn loc_B8141: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aBufLen10; "buf[len - 1] != '0'" mov esi, 444Dh loc_B815B: xor eax, eax call _ggml_abort loc_B8162: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aLen1; "len >= 1" mov esi, 4431h jmp short loc_B815B loc_B817E: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aDistDelta; "dist <= delta" mov esi, 4432h jmp short loc_B815B loc_B819A: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRestDelta; "rest <= delta" mov esi, 4433h jmp short loc_B815B loc_B81B6: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTenK0; "ten_k > 0" mov esi, 4434h jmp short loc_B815B
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm0,xmm4,xmm5> nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round( nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this, char *a2, unsigned long long a3, unsigned long long a4, unsigned long long a5, unsigned long long a6) { unsigned long long v6; // rax unsigned long long v7; // r8 unsigned long long v8; // rcx char v9; // r11 bool v10; // cf if ( (int)a2 <= 0 ) goto LABEL_14; if ( a3 > a4 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17458LL, "GGML_ASSERT(%s) failed", "dist <= delta"); goto LABEL_14; } if ( a4 < a5 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17459LL, "GGML_ASSERT(%s) failed", "rest <= delta"); goto LABEL_14; } if ( !a6 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17460LL, "GGML_ASSERT(%s) failed", "ten_k > 0"); goto LABEL_14; } v6 = a3 - a5; if ( a3 > a5 && a4 - a5 >= a6 ) { v7 = a6 + a5; v8 = a4 - v7; while ( 1 ) { if ( v7 >= a3 && v6 <= v7 - a3 ) return; v9 = *((_BYTE *)this + (unsigned int)a2 - 1); if ( v9 == 48 ) break; *((_BYTE *)this + (unsigned int)a2 - 1) = v9 - 1; v10 = v8 < a6; v8 -= a6; if ( v7 < a3 ) { v6 -= a6; v7 += a6; if ( !v10 ) continue; } return; } ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17485LL, "GGML_ASSERT(%s) failed", "buf[len - 1] != '0'"); while ( 1 ) LABEL_14: ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17457LL, "GGML_ASSERT(%s) failed", "len >= 1"); } }
grisu2_round: PUSH RAX TEST ESI,ESI JLE 0x001b8162 CMP RDX,RCX JA 0x001b817e MOV R10,RCX SUB R10,R8 JC 0x001b819a TEST R9,R9 JZ 0x001b81b6 MOV RAX,RDX SUB RAX,R8 SETBE R11B CMP R10,R9 SETC R10B OR R10B,R11B JNZ 0x001b813f MOV ESI,ESI ADD R8,R9 SUB RCX,R8 MOV R10,RDX NEG R10 LAB_001b8107: CMP R8,RDX JC 0x001b8115 LEA R11,[R10 + R8*0x1] CMP RAX,R11 JBE 0x001b813f LAB_001b8115: MOV R11B,byte ptr [RDI + RSI*0x1 + -0x1] CMP R11B,0x30 JZ 0x001b8141 DEC R11B MOV byte ptr [RDI + RSI*0x1 + -0x1],R11B SUB RCX,R9 SETC R11B CMP R8,RDX JNC 0x001b813f SUB RAX,R9 ADD R8,R9 TEST R11B,R11B JZ 0x001b8107 LAB_001b813f: POP RAX RET LAB_001b8141: LEA RDI,[0x1edbe3] LEA RDX,[0x1e8140] LEA RCX,[0x1f3549] MOV ESI,0x444d LAB_001b815b: XOR EAX,EAX CALL 0x0011be80 LAB_001b8162: LEA RDI,[0x1edbe3] LEA RDX,[0x1e8140] LEA RCX,[0x1f351a] MOV ESI,0x4431 JMP 0x001b815b LAB_001b817e: LEA RDI,[0x1edbe3] LEA RDX,[0x1e8140] LEA RCX,[0x1f3523] MOV ESI,0x4432 JMP 0x001b815b LAB_001b819a: LEA RDI,[0x1edbe3] LEA RDX,[0x1e8140] LEA RCX,[0x1f3531] MOV ESI,0x4433 JMP 0x001b815b LAB_001b81b6: LEA RDI,[0x1edbe3] LEA RDX,[0x1e8140] LEA RCX,[0x1f353f] MOV ESI,0x4434 JMP 0x001b815b
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned long, unsigned long, unsigned long) */ int8 nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round (char *param_1,int param_2,ulong param_3,ulong param_4,ulong param_5,ulong param_6) { int8 in_RAX; ulong uVar1; ulong uVar2; char *pcVar3; int8 uVar4; ulong uVar5; bool bVar6; if (param_2 < 1) { pcVar3 = "len >= 1"; uVar4 = 0x4431; } else if (param_4 < param_3) { pcVar3 = "dist <= delta"; uVar4 = 0x4432; } else if (param_4 < param_5) { pcVar3 = "rest <= delta"; uVar4 = 0x4433; } else { if (param_6 != 0) { uVar1 = param_3 - param_5; if (param_6 <= param_4 - param_5 && (param_5 <= param_3 && uVar1 != 0)) { uVar5 = param_5 + param_6; uVar2 = param_4 - uVar5; do { if ((param_3 <= uVar5) && (uVar1 <= uVar5 - param_3)) { return in_RAX; } if (param_1[(ulong)(uint)param_2 - 1] == '0') { pcVar3 = "buf[len - 1] != \'0\'"; uVar4 = 0x444d; goto LAB_001b815b; } param_1[(ulong)(uint)param_2 - 1] = param_1[(ulong)(uint)param_2 - 1] + -1; bVar6 = param_6 <= uVar2; uVar2 = uVar2 - param_6; if (param_3 <= uVar5) { return in_RAX; } uVar1 = uVar1 - param_6; uVar5 = uVar5 + param_6; } while (bVar6); } return in_RAX; } pcVar3 = "ten_k > 0"; uVar4 = 0x4434; } LAB_001b815b: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar4, "GGML_ASSERT(%s) failed",pcVar3); }
32,201
my_once_free
eloqsql/mysys/my_once.c
void my_once_free(void) { reg1 USED_MEM *next,*old; DBUG_ENTER("my_once_free"); for (next=my_once_root_block ; next ; ) { old=next; next= next->next ; free((uchar*) old); } my_once_root_block=0; DBUG_VOID_RETURN; }
O0
c
my_once_free: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp leaq 0x3c79c1(%rip), %rax # 0x4460e0 movq (%rax), %rax movq %rax, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0x7e74b movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x8(%rbp) movq -0x10(%rbp), %rdi callq 0x361a0 jmp 0x7e726 leaq 0x3c798e(%rip), %rax # 0x4460e0 movq $0x0, (%rax) jmp 0x7e75b addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
my_once_free: push rbp mov rbp, rsp sub rsp, 10h lea rax, my_once_root_block mov rax, [rax] mov [rbp+var_8], rax loc_7E726: cmp [rbp+var_8], 0 jz short loc_7E74B mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_8], rax mov rdi, [rbp+var_10] call _free jmp short loc_7E726 loc_7E74B: lea rax, my_once_root_block mov qword ptr [rax], 0 jmp short $+2 loc_7E75B: add rsp, 10h pop rbp retn
_QWORD *my_once_free() { _QWORD *result; // rax _QWORD *v1; // [rsp+0h] [rbp-10h] _QWORD *v2; // [rsp+8h] [rbp-8h] v2 = (_QWORD *)my_once_root_block; while ( v2 ) { v1 = v2; v2 = (_QWORD *)*v2; free(v1); } result = &my_once_root_block; my_once_root_block = 0LL; return result; }
my_once_free: PUSH RBP MOV RBP,RSP SUB RSP,0x10 LEA RAX,[0x5460e0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x8],RAX LAB_0017e726: CMP qword ptr [RBP + -0x8],0x0 JZ 0x0017e74b MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x8],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x001361a0 JMP 0x0017e726 LAB_0017e74b: LEA RAX,[0x5460e0] MOV qword ptr [RAX],0x0 JMP 0x0017e75b LAB_0017e75b: ADD RSP,0x10 POP RBP RET
void my_once_free(void) { int8 *puVar1; int8 local_10; local_10 = my_once_root_block; while (local_10 != (int8 *)0x0) { puVar1 = (int8 *)*local_10; free(local_10); local_10 = puVar1; } my_once_root_block = (int8 *)0x0; return; }
32,202
glfwGetGamepadState
untodesu[P]riteg/build_O2/_deps/glfw-src/src/input.c
GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state) { int i; _GLFWjoystick* js; assert(jid >= GLFW_JOYSTICK_1); assert(jid <= GLFW_JOYSTICK_LAST); assert(state != NULL); memset(state, 0, sizeof(GLFWgamepadstate)); _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); if (jid < 0 || jid > GLFW_JOYSTICK_LAST) { _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); return GLFW_FALSE; } js = _glfw.joysticks + jid; if (!js->present) return GLFW_FALSE; if (!_glfwPlatformPollJoystick(js, _GLFW_POLL_ALL)) return GLFW_FALSE; if (!js->mapping) return GLFW_FALSE; for (i = 0; i <= GLFW_GAMEPAD_BUTTON_LAST; i++) { const _GLFWmapelement* e = js->mapping->buttons + i; if (e->type == _GLFW_JOYSTICK_AXIS) { const float value = js->axes[e->index] * e->axisScale + e->axisOffset; // HACK: This should be baked into the value transform // TODO: Bake into transform when implementing output modifiers if (e->axisOffset < 0 || (e->axisOffset == 0 && e->axisScale > 0)) { if (value >= 0.f) state->buttons[i] = GLFW_PRESS; } else { if (value <= 0.f) state->buttons[i] = GLFW_PRESS; } } else if (e->type == _GLFW_JOYSTICK_HATBIT) { const unsigned int hat = e->index >> 4; const unsigned int bit = e->index & 0xf; if (js->hats[hat] & bit) state->buttons[i] = GLFW_PRESS; } else if (e->type == _GLFW_JOYSTICK_BUTTON) state->buttons[i] = js->buttons[e->index]; } for (i = 0; i <= GLFW_GAMEPAD_AXIS_LAST; i++) { const _GLFWmapelement* e = js->mapping->axes + i; if (e->type == _GLFW_JOYSTICK_AXIS) { const float value = js->axes[e->index] * e->axisScale + e->axisOffset; state->axes[i] = _glfw_fminf(_glfw_fmaxf(value, -1.f), 1.f); } else if (e->type == _GLFW_JOYSTICK_HATBIT) { const unsigned int hat = e->index >> 4; const unsigned int bit = e->index & 0xf; if (js->hats[hat] & bit) state->axes[i] = 1.f; else state->axes[i] = -1.f; } else if (e->type == _GLFW_JOYSTICK_BUTTON) state->axes[i] = js->buttons[e->index] * 2.f - 1.f; } return GLFW_TRUE; }
O2
c
glfwGetGamepadState: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax testl %edi, %edi js 0x179d5 cmpl $0x10, %edi jae 0x179f4 movq %rsi, %rbx testq %rsi, %rsi je 0x17a13 xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbx) andq $0x0, 0x20(%rbx) movups %xmm0, (%rbx) leaq 0x83e70(%rip), %rax # 0x9b648 cmpl $0x0, (%rax) je 0x178d1 movl %edi, %ecx imulq $0x1fa0, %rcx, %rcx # imm = 0x1FA0 xorl %r15d, %r15d cmpl $0x0, 0x408(%rax,%rcx) je 0x178e2 leaq (%rax,%rcx), %r14 addq $0x408, %r14 # imm = 0x408 pushq $0x3 popq %rsi movq %r14, %rdi callq 0x240c4 testl %eax, %eax je 0x178e2 cmpq $0x0, 0x70(%r14) je 0x178e2 xorl %eax, %eax xorps %xmm0, %xmm0 cmpq $0xf, %rax je 0x178f1 movq 0x70(%r14), %rcx movzbl 0xa1(%rcx,%rax,4), %edx cmpl $0x3, %edx je 0x1789f cmpl $0x2, %edx je 0x1788e cmpl $0x1, %edx jne 0x178c0 movq 0x8(%r14), %rsi movzbl 0xa2(%rcx,%rax,4), %edi movsbl 0xa3(%rcx,%rax,4), %edx cvtsi2ss %edx, %xmm1 movsbl 0xa4(%rcx,%rax,4), %ecx cvtsi2ss %ecx, %xmm2 mulss (%rsi,%rdi,4), %xmm1 addss %xmm2, %xmm1 testb %cl, %cl js 0x17885 jne 0x178c8 testb %dl, %dl jle 0x178c8 movb $0x1, %cl ucomiss %xmm0, %xmm1 jae 0x178bd jmp 0x178c0 movq 0x18(%r14), %rdx movzbl 0xa2(%rcx,%rax,4), %ecx movb (%rdx,%rcx), %cl jmp 0x178bd movzbl 0xa2(%rcx,%rax,4), %ecx movl %ecx, %edx shrl $0x4, %edx movq 0x28(%r14), %rsi movzbl (%rsi,%rdx), %edx andl %ecx, %edx movb $0x1, %cl testb $0xf, %dl je 0x178c0 movb %cl, (%rbx,%rax) incq %rax jmp 0x17829 movb $0x1, %cl ucomiss %xmm1, %xmm0 jae 0x178bd jmp 0x178c0 xorl %r15d, %r15d movl $0x10001, %edi # imm = 0x10001 xorl %esi, %esi xorl %eax, %eax callq 0x1547b movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq xorl %r12d, %r12d pushq $0x1 popq %r15 movss 0x5a308(%rip), %xmm1 # 0x71c08 cmpq $0x6, %r12 je 0x178e2 movq 0x70(%r14), %rax movzbl 0xdd(%rax,%r12,4), %ecx cmpl $0x3, %ecx je 0x1799c cmpl $0x2, %ecx je 0x17976 cmpl $0x1, %ecx jne 0x179cd movq 0x8(%r14), %rcx movsbl 0xdf(%rax,%r12,4), %edx cvtsi2ss %edx, %xmm0 movsbl 0xe0(%rax,%r12,4), %edx cvtsi2ss %edx, %xmm2 movzbl 0xde(%rax,%r12,4), %eax mulss (%rcx,%rax,4), %xmm0 addss %xmm2, %xmm0 callq 0x15466 movss 0x3e285(%rip), %xmm1 # 0x55bec callq 0x15451 movss 0x5a294(%rip), %xmm1 # 0x71c08 jmp 0x17993 movq 0x18(%r14), %rcx movzbl 0xde(%rax,%r12,4), %eax movzbl (%rcx,%rax), %eax cvtsi2ss %eax, %xmm0 addss %xmm0, %xmm0 addss %xmm1, %xmm0 movss %xmm0, 0x10(%rbx,%r12,4) jmp 0x179cd movzbl 0xde(%rax,%r12,4), %eax movl %eax, %ecx shrl $0x4, %ecx movq 0x28(%r14), %rdx movzbl (%rdx,%rcx), %ecx andl %eax, %ecx testb $0xf, %cl je 0x179c4 movl $0x3f800000, 0x10(%rbx,%r12,4) # imm = 0x3F800000 jmp 0x179cd movl $0xbf800000, 0x10(%rbx,%r12,4) # imm = 0xBF800000 incq %r12 jmp 0x17900 leaq 0x5a720(%rip), %rdi # 0x720fc leaq 0x5a24d(%rip), %rsi # 0x71c30 leaq 0x5a926(%rip), %rcx # 0x72310 movl $0x4cf, %edx # imm = 0x4CF callq 0xb510 leaq 0x5a735(%rip), %rdi # 0x72130 leaq 0x5a22e(%rip), %rsi # 0x71c30 leaq 0x5a907(%rip), %rcx # 0x72310 movl $0x4d0, %edx # imm = 0x4D0 callq 0xb510 leaq 0x5a927(%rip), %rdi # 0x72341 leaq 0x5a20f(%rip), %rsi # 0x71c30 leaq 0x5a8e8(%rip), %rcx # 0x72310 movl $0x4d1, %edx # imm = 0x4D1 callq 0xb510
glfwGetGamepadState: push r15 push r14 push r12 push rbx push rax test edi, edi js loc_179D5 cmp edi, 10h jnb loc_179F4 mov rbx, rsi test rsi, rsi jz loc_17A13 xorps xmm0, xmm0 movups xmmword ptr [rbx+10h], xmm0 and qword ptr [rbx+20h], 0 movups xmmword ptr [rbx], xmm0 lea rax, _glfw cmp dword ptr [rax], 0 jz loc_178D1 mov ecx, edi imul rcx, 1FA0h xor r15d, r15d cmp dword ptr [rax+rcx+408h], 0 jz loc_178E2 lea r14, [rax+rcx] add r14, 408h push 3 pop rsi mov rdi, r14 call _glfwPlatformPollJoystick test eax, eax jz loc_178E2 cmp qword ptr [r14+70h], 0 jz loc_178E2 xor eax, eax xorps xmm0, xmm0 loc_17829: cmp rax, 0Fh jz loc_178F1 mov rcx, [r14+70h] movzx edx, byte ptr [rcx+rax*4+0A1h] cmp edx, 3 jz short loc_1789F cmp edx, 2 jz short loc_1788E cmp edx, 1 jnz short loc_178C0 mov rsi, [r14+8] movzx edi, byte ptr [rcx+rax*4+0A2h] movsx edx, byte ptr [rcx+rax*4+0A3h] cvtsi2ss xmm1, edx movsx ecx, byte ptr [rcx+rax*4+0A4h] cvtsi2ss xmm2, ecx mulss xmm1, dword ptr [rsi+rdi*4] addss xmm1, xmm2 test cl, cl js short loc_17885 jnz short loc_178C8 test dl, dl jle short loc_178C8 loc_17885: mov cl, 1 ucomiss xmm1, xmm0 jnb short loc_178BD jmp short loc_178C0 loc_1788E: mov rdx, [r14+18h] movzx ecx, byte ptr [rcx+rax*4+0A2h] mov cl, [rdx+rcx] jmp short loc_178BD loc_1789F: movzx ecx, byte ptr [rcx+rax*4+0A2h] mov edx, ecx shr edx, 4 mov rsi, [r14+28h] movzx edx, byte ptr [rsi+rdx] and edx, ecx mov cl, 1 test dl, 0Fh jz short loc_178C0 loc_178BD: mov [rbx+rax], cl loc_178C0: inc rax jmp loc_17829 loc_178C8: mov cl, 1 ucomiss xmm0, xmm1 jnb short loc_178BD jmp short loc_178C0 loc_178D1: xor r15d, r15d mov edi, 10001h xor esi, esi xor eax, eax call _glfwInputError loc_178E2: mov eax, r15d add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn loc_178F1: xor r12d, r12d push 1 pop r15 movss xmm1, cs:dword_71C08 loc_17900: cmp r12, 6 jz short loc_178E2 mov rax, [r14+70h] movzx ecx, byte ptr [rax+r12*4+0DDh] cmp ecx, 3 jz loc_1799C cmp ecx, 2 jz short loc_17976 cmp ecx, 1 jnz loc_179CD mov rcx, [r14+8] movsx edx, byte ptr [rax+r12*4+0DFh] cvtsi2ss xmm0, edx movsx edx, byte ptr [rax+r12*4+0E0h] cvtsi2ss xmm2, edx movzx eax, byte ptr [rax+r12*4+0DEh] mulss xmm0, dword ptr [rcx+rax*4] addss xmm0, xmm2 call _glfw_fmaxf movss xmm1, cs:dword_55BEC call _glfw_fminf movss xmm1, cs:dword_71C08 jmp short loc_17993 loc_17976: mov rcx, [r14+18h] movzx eax, byte ptr [rax+r12*4+0DEh] movzx eax, byte ptr [rcx+rax] cvtsi2ss xmm0, eax addss xmm0, xmm0 addss xmm0, xmm1 loc_17993: movss dword ptr [rbx+r12*4+10h], xmm0 jmp short loc_179CD loc_1799C: movzx eax, byte ptr [rax+r12*4+0DEh] mov ecx, eax shr ecx, 4 mov rdx, [r14+28h] movzx ecx, byte ptr [rdx+rcx] and ecx, eax test cl, 0Fh jz short loc_179C4 mov dword ptr [rbx+r12*4+10h], 3F800000h jmp short loc_179CD loc_179C4: mov dword ptr [rbx+r12*4+10h], 0BF800000h loc_179CD: inc r12 jmp loc_17900 loc_179D5: lea rdi, aJidGlfwJoystic; "jid >= GLFW_JOYSTICK_1" lea rsi, aWorkspaceLlm4b_12; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntGlfwgetgame; "int glfwGetGamepadState(int, GLFWgamepa"... mov edx, 4CFh call ___assert_fail loc_179F4: lea rdi, aJidGlfwJoystic_0; "jid <= GLFW_JOYSTICK_LAST" lea rsi, aWorkspaceLlm4b_12; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntGlfwgetgame; "int glfwGetGamepadState(int, GLFWgamepa"... mov edx, 4D0h call ___assert_fail loc_17A13: lea rdi, aStateNull; "state != NULL" lea rsi, aWorkspaceLlm4b_12; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntGlfwgetgame; "int glfwGetGamepadState(int, GLFWgamepa"... mov edx, 4D1h call ___assert_fail
long long glfwGetGamepadState(int a1, long long a2) { long long v2; // rcx unsigned int v3; // r15d _QWORD *v4; // r14 long long i; // rax long long v6; // rcx int v7; // edx long long v8; // rdi int v9; // edx int v10; // ecx float v11; // xmm1_4 char v12; // cl unsigned int v13; // ecx char v14; // dl long long v16; // r12 long long v17; // rax int v18; // ecx float v19; // xmm0_4 float v20; // xmm0_4 int v21; // eax unsigned int v22; // eax if ( a1 < 0 ) __assert_fail( "jid >= GLFW_JOYSTICK_1", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/input.c", 1231LL, "int glfwGetGamepadState(int, GLFWgamepadstate *)"); if ( (unsigned int)a1 >= 0x10 ) __assert_fail( "jid <= GLFW_JOYSTICK_LAST", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/input.c", 1232LL, "int glfwGetGamepadState(int, GLFWgamepadstate *)"); if ( !a2 ) __assert_fail( "state != NULL", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/input.c", 1233LL, "int glfwGetGamepadState(int, GLFWgamepadstate *)"); *(_OWORD *)(a2 + 16) = 0LL; *(_QWORD *)(a2 + 32) = 0LL; *(_OWORD *)a2 = 0LL; if ( glfw[0] ) { v2 = 2024LL * (unsigned int)a1; v3 = 0; if ( glfw[v2 + 258] ) { v4 = &glfw[v2 + 258]; if ( (unsigned int)glfwPlatformPollJoystick(v4, 3LL) ) { if ( v4[14] ) { for ( i = 0LL; i != 15; ++i ) { v6 = v4[14]; v7 = *(unsigned __int8 *)(v6 + 4 * i + 161); if ( v7 == 3 ) { v13 = *(unsigned __int8 *)(v6 + 4 * i + 162); v14 = v13 & *(_BYTE *)(v4[5] + (v13 >> 4)); v12 = 1; if ( (v14 & 0xF) == 0 ) continue; goto LABEL_20; } if ( v7 == 2 ) { v12 = *(_BYTE *)(v4[3] + *(unsigned __int8 *)(v6 + 4 * i + 162)); LABEL_20: *(_BYTE *)(a2 + i) = v12; continue; } if ( v7 != 1 ) continue; v8 = *(unsigned __int8 *)(v6 + 4 * i + 162); v9 = *(char *)(v6 + 4 * i + 163); v10 = *(char *)(v6 + 4 * i + 164); v11 = (float)((float)v9 * *(float *)(v4[1] + 4 * v8)) + (float)v10; if ( (v10 & 0x80u) == 0 && ((_BYTE)v10 || (char)v9 <= 0) ) { v12 = 1; if ( v11 <= 0.0 ) goto LABEL_20; } else { v12 = 1; if ( v11 >= 0.0 ) goto LABEL_20; } } v16 = 0LL; v3 = 1; while ( 1 ) { if ( v16 == 6 ) return v3; v17 = v4[14]; v18 = *(unsigned __int8 *)(v17 + 4 * v16 + 221); if ( v18 == 3 ) { v22 = *(unsigned __int8 *)(v17 + 4 * v16 + 222); if ( ((unsigned __int8)v22 & *(_BYTE *)(v4[5] + (v22 >> 4)) & 0xF) != 0 ) *(_DWORD *)(a2 + 4 * v16 + 16) = 1065353216; else *(_DWORD *)(a2 + 4 * v16 + 16) = -1082130432; } else { if ( v18 == 2 ) { v21 = *(unsigned __int8 *)(v4[3] + *(unsigned __int8 *)(v17 + 4 * v16 + 222)); v20 = (float)((float)v21 + (float)v21) + -1.0; } else { if ( v18 != 1 ) goto LABEL_37; v19 = glfw_fmaxf( (float)((float)*(char *)(v17 + 4 * v16 + 223) * *(float *)(v4[1] + 4LL * *(unsigned __int8 *)(v17 + 4 * v16 + 222))) + (float)*(char *)(v17 + 4 * v16 + 224), -1.0); v20 = glfw_fminf(v19, 1.0); } *(float *)(a2 + 4 * v16 + 16) = v20; } LABEL_37: ++v16; } } } } } else { v3 = 0; glfwInputError(0x10001u, 0LL); } return v3; }
glfwGetGamepadState: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX TEST EDI,EDI JS 0x001179d5 CMP EDI,0x10 JNC 0x001179f4 MOV RBX,RSI TEST RSI,RSI JZ 0x00117a13 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 AND qword ptr [RBX + 0x20],0x0 MOVUPS xmmword ptr [RBX],XMM0 LEA RAX,[0x19b648] CMP dword ptr [RAX],0x0 JZ 0x001178d1 MOV ECX,EDI IMUL RCX,RCX,0x1fa0 XOR R15D,R15D CMP dword ptr [RAX + RCX*0x1 + 0x408],0x0 JZ 0x001178e2 LEA R14,[RAX + RCX*0x1] ADD R14,0x408 PUSH 0x3 POP RSI MOV RDI,R14 CALL 0x001240c4 TEST EAX,EAX JZ 0x001178e2 CMP qword ptr [R14 + 0x70],0x0 JZ 0x001178e2 XOR EAX,EAX XORPS XMM0,XMM0 LAB_00117829: CMP RAX,0xf JZ 0x001178f1 MOV RCX,qword ptr [R14 + 0x70] MOVZX EDX,byte ptr [RCX + RAX*0x4 + 0xa1] CMP EDX,0x3 JZ 0x0011789f CMP EDX,0x2 JZ 0x0011788e CMP EDX,0x1 JNZ 0x001178c0 MOV RSI,qword ptr [R14 + 0x8] MOVZX EDI,byte ptr [RCX + RAX*0x4 + 0xa2] MOVSX EDX,byte ptr [RCX + RAX*0x4 + 0xa3] CVTSI2SS XMM1,EDX MOVSX ECX,byte ptr [RCX + RAX*0x4 + 0xa4] CVTSI2SS XMM2,ECX MULSS XMM1,dword ptr [RSI + RDI*0x4] ADDSS XMM1,XMM2 TEST CL,CL JS 0x00117885 JNZ 0x001178c8 TEST DL,DL JLE 0x001178c8 LAB_00117885: MOV CL,0x1 UCOMISS XMM1,XMM0 JNC 0x001178bd JMP 0x001178c0 LAB_0011788e: MOV RDX,qword ptr [R14 + 0x18] MOVZX ECX,byte ptr [RCX + RAX*0x4 + 0xa2] MOV CL,byte ptr [RDX + RCX*0x1] JMP 0x001178bd LAB_0011789f: MOVZX ECX,byte ptr [RCX + RAX*0x4 + 0xa2] MOV EDX,ECX SHR EDX,0x4 MOV RSI,qword ptr [R14 + 0x28] MOVZX EDX,byte ptr [RSI + RDX*0x1] AND EDX,ECX MOV CL,0x1 TEST DL,0xf JZ 0x001178c0 LAB_001178bd: MOV byte ptr [RBX + RAX*0x1],CL LAB_001178c0: INC RAX JMP 0x00117829 LAB_001178c8: MOV CL,0x1 UCOMISS XMM0,XMM1 JNC 0x001178bd JMP 0x001178c0 LAB_001178d1: XOR R15D,R15D MOV EDI,0x10001 XOR ESI,ESI XOR EAX,EAX CALL 0x0011547b LAB_001178e2: MOV EAX,R15D ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET LAB_001178f1: XOR R12D,R12D PUSH 0x1 POP R15 MOVSS XMM1,dword ptr [0x00171c08] LAB_00117900: CMP R12,0x6 JZ 0x001178e2 MOV RAX,qword ptr [R14 + 0x70] MOVZX ECX,byte ptr [RAX + R12*0x4 + 0xdd] CMP ECX,0x3 JZ 0x0011799c CMP ECX,0x2 JZ 0x00117976 CMP ECX,0x1 JNZ 0x001179cd MOV RCX,qword ptr [R14 + 0x8] MOVSX EDX,byte ptr [RAX + R12*0x4 + 0xdf] CVTSI2SS XMM0,EDX MOVSX EDX,byte ptr [RAX + R12*0x4 + 0xe0] CVTSI2SS XMM2,EDX MOVZX EAX,byte ptr [RAX + R12*0x4 + 0xde] MULSS XMM0,dword ptr [RCX + RAX*0x4] ADDSS XMM0,XMM2 CALL 0x00115466 MOVSS XMM1,dword ptr [0x00155bec] CALL 0x00115451 MOVSS XMM1,dword ptr [0x00171c08] JMP 0x00117993 LAB_00117976: MOV RCX,qword ptr [R14 + 0x18] MOVZX EAX,byte ptr [RAX + R12*0x4 + 0xde] MOVZX EAX,byte ptr [RCX + RAX*0x1] CVTSI2SS XMM0,EAX ADDSS XMM0,XMM0 ADDSS XMM0,XMM1 LAB_00117993: MOVSS dword ptr [RBX + R12*0x4 + 0x10],XMM0 JMP 0x001179cd LAB_0011799c: MOVZX EAX,byte ptr [RAX + R12*0x4 + 0xde] MOV ECX,EAX SHR ECX,0x4 MOV RDX,qword ptr [R14 + 0x28] MOVZX ECX,byte ptr [RDX + RCX*0x1] AND ECX,EAX TEST CL,0xf JZ 0x001179c4 MOV dword ptr [RBX + R12*0x4 + 0x10],0x3f800000 JMP 0x001179cd LAB_001179c4: MOV dword ptr [RBX + R12*0x4 + 0x10],0xbf800000 LAB_001179cd: INC R12 JMP 0x00117900 LAB_001179d5: LEA RDI,[0x1720fc] LEA RSI,[0x171c30] LEA RCX,[0x172310] MOV EDX,0x4cf CALL 0x0010b510 LAB_001179f4: LEA RDI,[0x172130] LEA RSI,[0x171c30] LEA RCX,[0x172310] MOV EDX,0x4d0 CALL 0x0010b510 LAB_00117a13: LEA RDI,[0x172341] LEA RSI,[0x171c30] LEA RCX,[0x172310] MOV EDX,0x4d1 CALL 0x0010b510
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int8 glfwGetGamepadState(uint param_1,int8 *param_2) { char cVar1; char cVar2; byte bVar3; long lVar4; int iVar5; long lVar6; int1 uVar7; ulong uVar8; int4 uVar9; float fVar10; float fVar11; int8 uStack_30; if ((int)param_1 < 0) { /* WARNING: Subroutine does not return */ __assert_fail("jid >= GLFW_JOYSTICK_1", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/input.c" ,0x4cf,"int glfwGetGamepadState(int, GLFWgamepadstate *)"); } if (0xf < param_1) { /* WARNING: Subroutine does not return */ __assert_fail("jid <= GLFW_JOYSTICK_LAST", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/input.c" ,0x4d0,"int glfwGetGamepadState(int, GLFWgamepadstate *)"); } if (param_2 == (int8 *)0x0) { /* WARNING: Subroutine does not return */ __assert_fail("state != NULL", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/input.c" ,0x4d1,"int glfwGetGamepadState(int, GLFWgamepadstate *)"); } param_2[2] = 0; param_2[3] = 0; param_2[4] = 0; *param_2 = 0; param_2[1] = 0; if (_glfw == 0) { uStack_30 = 0; _glfwInputError(0x10001,0); } else { uVar8 = (ulong)param_1; uStack_30 = 0; if ((((&DAT_0019ba50)[uVar8 * 0x7e8] != 0) && (iVar5 = _glfwPlatformPollJoystick(&DAT_0019ba50 + uVar8 * 0x7e8,3), iVar5 != 0)) && ((&DAT_0019bac0)[uVar8 * 0x3f4] != 0)) { for (lVar6 = 0; lVar6 != 0xf; lVar6 = lVar6 + 1) { lVar4 = (&DAT_0019bac0)[uVar8 * 0x3f4]; cVar1 = *(char *)(lVar4 + 0xa1 + lVar6 * 4); if (cVar1 == '\x03') { bVar3 = *(byte *)(lVar4 + 0xa2 + lVar6 * 4); uVar7 = 1; if ((*(byte *)((&DAT_0019ba78)[uVar8 * 0x3f4] + (ulong)(bVar3 >> 4)) & bVar3 & 0xf) == 0) goto LAB_001178c0; LAB_001178bd: *(int1 *)((long)param_2 + lVar6) = uVar7; } else { if (cVar1 == '\x02') { uVar7 = *(int1 *) ((&DAT_0019ba68)[uVar8 * 0x3f4] + (ulong)*(byte *)(lVar4 + 0xa2 + lVar6 * 4)); goto LAB_001178bd; } if (cVar1 == '\x01') { cVar1 = *(char *)(lVar4 + 0xa3 + lVar6 * 4); cVar2 = *(char *)(lVar4 + 0xa4 + lVar6 * 4); fVar11 = (float)(int)cVar1 * *(float *)((&DAT_0019ba58)[uVar8 * 0x3f4] + (ulong)*(byte *)(lVar4 + 0xa2 + lVar6 * 4) * 4) + (float)(int)cVar2; if ((cVar2 < '\0') || ((cVar2 == '\0' && ('\0' < cVar1)))) { uVar7 = 1; if (0.0 <= fVar11) goto LAB_001178bd; } else { uVar7 = 1; if (fVar11 <= 0.0) goto LAB_001178bd; } } } LAB_001178c0: } uStack_30 = 1; fVar11 = DAT_00171c08; for (lVar6 = 0; lVar6 != 6; lVar6 = lVar6 + 1) { lVar4 = (&DAT_0019bac0)[uVar8 * 0x3f4]; cVar1 = *(char *)(lVar4 + 0xdd + lVar6 * 4); if (cVar1 == '\x03') { bVar3 = *(byte *)(lVar4 + 0xde + lVar6 * 4); if ((*(byte *)((&DAT_0019ba78)[uVar8 * 0x3f4] + (ulong)(bVar3 >> 4)) & bVar3 & 0xf) == 0) { *(int4 *)((long)param_2 + lVar6 * 4 + 0x10) = 0xbf800000; } else { *(int4 *)((long)param_2 + lVar6 * 4 + 0x10) = 0x3f800000; } } else { if (cVar1 == '\x02') { fVar10 = (float)*(byte *)((&DAT_0019ba68)[uVar8 * 0x3f4] + (ulong)*(byte *)(lVar4 + 0xde + lVar6 * 4)); fVar10 = fVar10 + fVar10 + fVar11; } else { if (cVar1 != '\x01') goto LAB_001179cd; uVar9 = _glfw_fmaxf((float)(int)*(char *)(lVar4 + 0xdf + lVar6 * 4) * *(float *)((&DAT_0019ba58)[uVar8 * 0x3f4] + (ulong)*(byte *)(lVar4 + 0xde + lVar6 * 4) * 4) + (float)(int)*(char *)(lVar4 + 0xe0 + lVar6 * 4)); fVar10 = (float)_glfw_fminf(uVar9,_DAT_00155bec); fVar11 = DAT_00171c08; } *(float *)((long)param_2 + lVar6 * 4 + 0x10) = fVar10; } LAB_001179cd: } } } return uStack_30; }
32,203
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json.hpp
std::string exception_message(const token_type expected, const std::string& context) { std::string error_msg = "syntax error "; if (!context.empty()) { error_msg += concat("while parsing ", context, ' '); } error_msg += "- "; if (last_token == token_type::parse_error) { error_msg += concat(m_lexer.get_error_message(), "; last read: '", m_lexer.get_token_string(), '\''); } else { error_msg += concat("unexpected ", lexer_t::token_type_name(last_token)); } if (expected != token_type::uninitialized) { error_msg += concat("; expected ", lexer_t::token_type_name(expected)); } return error_msg; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x58, %rsp movq %rcx, %r15 movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx leaq 0x66c9f(%rip), %rsi # 0xb6eb5 leaq 0x10(%rsp), %rdx callq 0x2a75e cmpq $0x0, 0x8(%r15) je 0x5025a leaq 0x38(%rsp), %rcx movb $0x20, (%rcx) leaq 0x66c8d(%rip), %rsi # 0xb6ec3 leaq 0x10(%rsp), %rdi movq %r15, %rdx callq 0x55239 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x251c0 leaq 0x10(%rsp), %rdi callq 0x25258 leaq 0x66c71(%rip), %rsi # 0xb6ed2 movq %rbx, %rdi callq 0x25160 movl 0x20(%r14), %edi cmpl $0xe, %edi jne 0x502d1 movq 0x98(%r14), %rax addq $0x28, %r14 movq %rax, 0x30(%rsp) leaq 0x38(%rsp), %rdi movq %r14, %rsi callq 0x5001c leaq 0xf(%rsp), %r8 movb $0x27, (%r8) leaq 0x66c36(%rip), %rdx # 0xb6ed5 leaq 0x10(%rsp), %rdi leaq 0x30(%rsp), %rsi leaq 0x38(%rsp), %rcx callq 0x552a9 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x251c0 leaq 0x10(%rsp), %rdi callq 0x25258 leaq 0x38(%rsp), %rdi jmp 0x50301 callq 0x55380 leaq 0x38(%rsp), %rdx movq %rax, (%rdx) leaq 0x66bff(%rip), %rsi # 0xb6ee4 leaq 0x10(%rsp), %rdi callq 0x55321 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x251c0 leaq 0x10(%rsp), %rdi callq 0x25258 testl %ebp, %ebp je 0x50341 movl %ebp, %edi callq 0x55380 leaq 0x38(%rsp), %rdx movq %rax, (%rdx) leaq 0x66bd0(%rip), %rsi # 0xb6ef0 leaq 0x10(%rsp), %rdi callq 0x55321 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x251c0 leaq 0x10(%rsp), %rdi callq 0x25258 movq %rbx, %rax addq $0x58, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x25258 jmp 0x50363 jmp 0x50372 movq %rax, %r14 leaq 0x38(%rsp), %rdi jmp 0x5037a jmp 0x50383 jmp 0x50383 jmp 0x50372 jmp 0x50383 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x25258 jmp 0x50386 jmp 0x50383 movq %rax, %r14 movq %rbx, %rdi callq 0x25258 movq %r14, %rdi callq 0x24fe0
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_: push rbp push r15 push r14 push rbx sub rsp, 58h mov r15, rcx mov ebp, edx mov r14, rsi mov rbx, rdi lea rsi, aSyntaxError; "syntax error " lea rdx, [rsp+78h+var_68] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) cmp qword ptr [r15+8], 0 jz short loc_5025A lea rcx, [rsp+78h+var_40] mov byte ptr [rcx], 20h ; ' ' lea rsi, aWhileParsing; "while parsing " lea rdi, [rsp+78h+var_68] mov rdx, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA15_KcRKS8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[15],std::string const&,char>(char const(&)[15],std::string const&,char &&) lea rsi, [rsp+78h+var_68] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) lea rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_5025A: lea rsi, asc_B6ED2; "- " mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov edi, [r14+20h] cmp edi, 0Eh jnz short loc_502D1 mov rax, [r14+98h] add r14, 28h ; '(' mov [rsp+78h+var_48], rax lea rdi, [rsp+78h+var_40] mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea r8, [rsp+78h+var_69] mov byte ptr [r8], 27h ; ''' lea rdx, aLastRead; "; last read: '" lea rdi, [rsp+78h+var_68] lea rsi, [rsp+78h+var_48] lea rcx, [rsp+78h+var_40] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&) lea rsi, [rsp+78h+var_68] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) lea rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+78h+var_40] jmp short loc_50301 loc_502D1: call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) lea rdx, [rsp+78h+var_40] mov [rdx], rax lea rsi, aUnexpected; "unexpected " lea rdi, [rsp+78h+var_68] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA12_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(char const(&)[12],char const* &&) lea rsi, [rsp+78h+var_68] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) lea rdi, [rsp+78h+var_68]; void * loc_50301: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test ebp, ebp jz short loc_50341 mov edi, ebp call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) lea rdx, [rsp+78h+var_40] mov [rdx], rax lea rsi, aExpected; "; expected " lea rdi, [rsp+78h+var_68] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA12_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(char const(&)[12],char const* &&) lea rsi, [rsp+78h+var_68] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) lea rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_50341: mov rax, rbx add rsp, 58h pop rbx pop r14 pop r15 pop rbp retn mov r14, rax lea rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_50363 jmp short loc_50372 mov r14, rax loc_50363: lea rdi, [rsp+arg_30] jmp short loc_5037A jmp short loc_50383 jmp short loc_50383 jmp short loc_50372 jmp short loc_50383 loc_50372: mov r14, rax lea rdi, [rsp+arg_8]; void * loc_5037A: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_50386 jmp short $+2 loc_50383: mov r14, rax loc_50386: mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
_QWORD * nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( _QWORD *a1, long long a2, unsigned int a3, long long a4) { _BYTE *v7; // rdi char v9; // [rsp+Fh] [rbp-69h] BYREF _BYTE v10[32]; // [rsp+10h] [rbp-68h] BYREF long long v11; // [rsp+30h] [rbp-48h] BYREF _QWORD v12[8]; // [rsp+38h] [rbp-40h] BYREF std::string::basic_string<std::allocator<char>>(a1, (long long)"syntax error "); if ( *(_QWORD *)(a4 + 8) ) { LOBYTE(v12[0]) = 32; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[15],std::string const&,char>( v10, "while parsing ", a4, v12); std::string::append(a1, v10); std::string::~string(v10); } std::string::append(a1, "- "); if ( *(_DWORD *)(a2 + 32) == 14 ) { v11 = *(_QWORD *)(a2 + 152); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( (long long)v12, a2 + 40); v9 = 39; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>( v10, &v11, "; last read: '", v12, &v9); std::string::append(a1, v10); std::string::~string(v10); v7 = v12; } else { v12[0] = ((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name)(); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(v10, "unexpected "); std::string::append(a1, v10); v7 = v10; } std::string::~string(v7); if ( a3 ) { v12[0] = nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name(a3); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(v10, "; expected "); std::string::append(a1, v10); std::string::~string(v10); } return a1; }
exception_message: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x58 MOV R15,RCX MOV EBP,EDX MOV R14,RSI MOV RBX,RDI LEA RSI,[0x1b6eb5] LEA RDX,[RSP + 0x10] CALL 0x0012a75e CMP qword ptr [R15 + 0x8],0x0 JZ 0x0015025a LEA RCX,[RSP + 0x38] MOV byte ptr [RCX],0x20 LAB_0015022f: LEA RSI,[0x1b6ec3] LEA RDI,[RSP + 0x10] MOV RDX,R15 CALL 0x00155239 LAB_00150243: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x001251c0 LEA RDI,[RSP + 0x10] CALL 0x00125258 LAB_0015025a: LEA RSI,[0x1b6ed2] MOV RDI,RBX CALL 0x00125160 MOV EDI,dword ptr [R14 + 0x20] CMP EDI,0xe JNZ 0x001502d1 MOV RAX,qword ptr [R14 + 0x98] ADD R14,0x28 MOV qword ptr [RSP + 0x30],RAX LAB_00150282: LEA RDI,[RSP + 0x38] MOV RSI,R14 CALL 0x0015001c LEA R8,[RSP + 0xf] MOV byte ptr [R8],0x27 LAB_00150298: LEA RDX,[0x1b6ed5] LEA RDI,[RSP + 0x10] LEA RSI,[RSP + 0x30] LEA RCX,[RSP + 0x38] CALL 0x001552a9 LAB_001502b3: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x001251c0 LEA RDI,[RSP + 0x10] CALL 0x00125258 LEA RDI,[RSP + 0x38] JMP 0x00150301 LAB_001502d1: CALL 0x00155380 LEA RDX,[RSP + 0x38] MOV qword ptr [RDX],RAX LAB_001502de: LEA RSI,[0x1b6ee4] LEA RDI,[RSP + 0x10] CALL 0x00155321 LAB_001502ef: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x001251c0 LEA RDI,[RSP + 0x10] LAB_00150301: CALL 0x00125258 TEST EBP,EBP JZ 0x00150341 MOV EDI,EBP CALL 0x00155380 LEA RDX,[RSP + 0x38] MOV qword ptr [RDX],RAX LAB_00150319: LEA RSI,[0x1b6ef0] LEA RDI,[RSP + 0x10] CALL 0x00155321 LAB_0015032a: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x001251c0 LAB_00150337: LEA RDI,[RSP + 0x10] CALL 0x00125258 LAB_00150341: MOV RAX,RBX ADD RSP,0x58 POP RBX POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::token_type, std::__cxx11::string const&) */ string * nlohmann::json_abi_v3_11_3::detail:: parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::exception_message(string *param_1,long param_2,int param_3,string *param_4) { string *this; char local_69; allocator local_68 [32]; char *local_48; char *local_40 [4]; std::__cxx11::string::string<std::allocator<char>>(param_1,"syntax error ",local_68); if (*(long *)(param_4 + 8) != 0) { local_40[0] = (char *)CONCAT71(local_40[0]._1_7_,0x20); /* try { // try from 0015022f to 00150242 has its CatchHandler @ 00150381 */ concat<std::__cxx11::string,char_const(&)[15],std::__cxx11::string_const&,char> ((detail *)local_68,"while parsing ",param_4,(char *)local_40); /* try { // try from 00150243 to 0015024f has its CatchHandler @ 00150372 */ std::__cxx11::string::append(param_1); std::__cxx11::string::~string((string *)local_68); } /* try { // try from 0015025a to 00150268 has its CatchHandler @ 00150383 */ std::__cxx11::string::append((char *)param_1); if (*(int *)(param_2 + 0x20) == 0xe) { local_48 = *(char **)(param_2 + 0x98); /* try { // try from 00150282 to 0015028e has its CatchHandler @ 0015036c */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_69 = '\''; /* try { // try from 00150298 to 001502b2 has its CatchHandler @ 00150360 */ concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char> ((detail *)local_68,&local_48,"; last read: \'",(string *)local_40,&local_69); /* try { // try from 001502b3 to 001502bf has its CatchHandler @ 0015034f */ std::__cxx11::string::append(param_1); std::__cxx11::string::~string((string *)local_68); this = (string *)local_40; } else { local_40[0] = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::token_type_name(); /* try { // try from 001502de to 001502ee has its CatchHandler @ 0015036a */ concat<std::__cxx11::string,char_const(&)[12],char_const*> ((detail *)local_68,"unexpected ",local_40); /* try { // try from 001502ef to 001502fb has its CatchHandler @ 0015035e */ std::__cxx11::string::append(param_1); this = (string *)local_68; } std::__cxx11::string::~string(this); if (param_3 != 0) { local_40[0] = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::token_type_name(param_3); /* try { // try from 00150319 to 00150329 has its CatchHandler @ 00150370 */ concat<std::__cxx11::string,char_const(&)[12],char_const*> ((detail *)local_68,"; expected ",local_40); /* try { // try from 0015032a to 00150336 has its CatchHandler @ 0015036e */ std::__cxx11::string::append(param_1); std::__cxx11::string::~string((string *)local_68); } return param_1; }
32,204
mi_open_datafile
eloqsql/storage/myisam/mi_open.c
int mi_open_datafile(MI_INFO *info, MYISAM_SHARE *share) { myf flags= MY_WME | (share->mode & O_NOFOLLOW ? MY_NOSYMLINKS: 0); DEBUG_SYNC_C("mi_open_datafile"); info->dfile= mysql_file_open(mi_key_file_dfile, share->data_file_name, share->mode | O_SHARE | O_CLOEXEC, MYF(flags)); return info->dfile >= 0 ? 0 : 1; }
O3
c
mi_open_datafile: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rdi, %rbx movl 0x358(%rsi), %r15d movl %r15d, %r14d shrl $0x8, %r14d andl $0x200, %r14d # imm = 0x200 orq $0x10, %r14 leaq 0xb8d660(%rip), %rax # 0xc27f70 movl (%rax), %eax movq 0x260(%rsi), %r12 orl $0x80000, %r15d # imm = 0x80000 leaq 0x3140f1(%rip), %rcx # 0x3aea18 movq (%rcx), %r9 leaq -0x78(%rbp), %rdi leaq -0x30(%rbp), %r13 movl %eax, %esi movl $0x2, %edx movq %r12, %rcx movq %r13, %r8 callq *0x148(%r9) movq %rax, (%r13) testq %rax, %rax jne 0x9a97d movq %r12, %rdi movl %r15d, %esi movq %r14, %rdx callq 0xbf950 movl %eax, %r14d movl %r14d, 0x1c0(%rbx) shrl $0x1f, %r14d movl %r14d, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x314094(%rip), %r13 # 0x3aea18 movq (%r13), %rcx leaq 0x647b5(%rip), %rsi # 0xff144 movq %rax, %rdi movl $0x4fa, %edx # imm = 0x4FA callq *0x1f0(%rcx) movq %r12, %rdi movl %r15d, %esi movq %r14, %rdx callq 0xbf950 movl %eax, %r14d movq (%r13), %rax movq -0x30(%rbp), %rdi movl %r14d, %esi callq *0x200(%rax) jmp 0x9a960
mi_open_datafile: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov rbx, rdi mov r15d, [rsi+358h] mov r14d, r15d shr r14d, 8 and r14d, 200h or r14, 10h lea rax, mi_key_file_dfile mov eax, [rax] mov r12, [rsi+260h] or r15d, 80000h lea rcx, PSI_server mov r9, [rcx] lea rdi, [rbp+var_78] lea r13, [rbp+var_30] mov esi, eax mov edx, 2 mov rcx, r12 mov r8, r13 call qword ptr [r9+148h] mov [r13+0], rax test rax, rax jnz short loc_9A97D mov rdi, r12 mov esi, r15d mov rdx, r14 call my_open mov r14d, eax loc_9A960: mov [rbx+1C0h], r14d shr r14d, 1Fh mov eax, r14d add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_9A97D: lea r13, PSI_server mov rcx, [r13+0] lea rsi, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rax mov edx, 4FAh call qword ptr [rcx+1F0h] mov rdi, r12 mov esi, r15d mov rdx, r14 call my_open mov r14d, eax mov rax, [r13+0] mov rdi, [rbp+var_30] mov esi, r14d call qword ptr [rax+200h] jmp short loc_9A960
long long mi_open_datafile(long long a1, long long a2) { long long v2; // r14 long long v3; // r12 unsigned int v4; // r15d long long v5; // rax _BYTE v7[72]; // [rsp+8h] [rbp-78h] BYREF long long v8[6]; // [rsp+50h] [rbp-30h] BYREF v2 = (*(_DWORD *)(a2 + 856) >> 8) & 0x200 | 0x10LL; v3 = *(_QWORD *)(a2 + 608); v4 = *(_DWORD *)(a2 + 856) | 0x80000; v5 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])( v7, mi_key_file_dfile, 2LL, v3, v8); v8[0] = v5; if ( v5 ) { ((void ( *)(long long, const char *, long long))PSI_server[62])( v5, "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c", 1274LL); v2 = (unsigned int)my_open(v3, v4, v2); ((void ( *)(long long, long long))PSI_server[64])(v8[0], v2); } else { LODWORD(v2) = my_open(v3, v4, v2); } *(_DWORD *)(a1 + 448) = v2; return (unsigned int)v2 >> 31; }
mi_open_datafile: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV RBX,RDI MOV R15D,dword ptr [RSI + 0x358] MOV R14D,R15D SHR R14D,0x8 AND R14D,0x200 OR R14,0x10 LEA RAX,[0xd27f70] MOV EAX,dword ptr [RAX] MOV R12,qword ptr [RSI + 0x260] OR R15D,0x80000 LEA RCX,[0x4aea18] MOV R9,qword ptr [RCX] LEA RDI,[RBP + -0x78] LEA R13,[RBP + -0x30] MOV ESI,EAX MOV EDX,0x2 MOV RCX,R12 MOV R8,R13 CALL qword ptr [R9 + 0x148] MOV qword ptr [R13],RAX TEST RAX,RAX JNZ 0x0019a97d MOV RDI,R12 MOV ESI,R15D MOV RDX,R14 CALL 0x001bf950 MOV R14D,EAX LAB_0019a960: MOV dword ptr [RBX + 0x1c0],R14D SHR R14D,0x1f MOV EAX,R14D ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0019a97d: LEA R13,[0x4aea18] MOV RCX,qword ptr [R13] LEA RSI,[0x1ff144] MOV RDI,RAX MOV EDX,0x4fa CALL qword ptr [RCX + 0x1f0] MOV RDI,R12 MOV ESI,R15D MOV RDX,R14 CALL 0x001bf950 MOV R14D,EAX MOV RAX,qword ptr [R13] MOV RDI,qword ptr [RBP + -0x30] MOV ESI,R14D CALL qword ptr [RAX + 0x200] JMP 0x0019a960
uint mi_open_datafile(long param_1,long param_2) { int8 uVar1; uint uVar2; uint uVar3; int1 local_80 [72]; long local_38; uVar2 = *(uint *)(param_2 + 0x358) >> 8 & 0x200 | 0x10; uVar1 = *(int8 *)(param_2 + 0x260); uVar3 = *(uint *)(param_2 + 0x358) | 0x80000; local_38 = (**(code **)(PSI_server + 0x148))(local_80,mi_key_file_dfile,2,uVar1,&local_38); if (local_38 == 0) { uVar2 = my_open(uVar1,uVar3,uVar2); } else { (**(code **)(PSI_server + 0x1f0)) (local_38,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",0x4fa); uVar2 = my_open(uVar1,uVar3,uVar2); (**(code **)(PSI_server + 0x200))(local_38,uVar2); } *(uint *)(param_1 + 0x1c0) = uVar2; return uVar2 >> 0x1f; }
32,205
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::value<char const (&) [1], char const (&) [8], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 0>(char const (&) [8], char const (&) [1]) const
hkr04[P]cpp-mcp/common/json.hpp
ReturnType value(KeyType && key, ValueType && default_value) const { // value only works for objects if (JSON_HEDLEY_LIKELY(is_object())) { // if key is found, return value and given default value otherwise const auto it = find(std::forward<KeyType>(key)); if (it != end()) { return it->template get<ReturnType>(); } return std::forward<ValueType>(default_value); } JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this)); }
O0
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::value<char const (&) [1], char const (&) [8], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 0>(char const (&) [8], char const (&) [1]) const: subq $0xd8, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x20(%rsp) movq %rdi, 0xd0(%rsp) movq %rsi, 0xc8(%rsp) movq %rdx, 0xc0(%rsp) movq %rcx, 0xb8(%rsp) movq 0xc8(%rsp), %rdi movq %rdi, 0x28(%rsp) callq 0x6b800 xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x890b3 jmp 0x89171 movq 0x28(%rsp), %rsi movq 0xc0(%rsp), %rdx leaq 0x98(%rsp), %rdi callq 0xcbaf0 movq 0x28(%rsp), %rsi leaq 0x78(%rsp), %rdi callq 0xcbb90 leaq 0x98(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0xcbb60 testb $0x1, %al jne 0x890f4 jmp 0x89113 leaq 0x98(%rsp), %rdi callq 0xcbbc0 movq 0x18(%rsp), %rdi movq %rax, %rsi callq 0xfcb0 jmp 0x8921f movq 0xb8(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x77(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0xbe20 movq 0x18(%rsp), %rdi movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx callq 0xf160 jmp 0x89145 leaq 0x77(%rsp), %rdi callq 0xb8e0 jmp 0x8921f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x68(%rsp) movl %eax, 0x64(%rsp) leaq 0x77(%rsp), %rdi callq 0xb8e0 jmp 0x8922c movb $0x1, 0x37(%rsp) movl $0x20, %edi callq 0xb3d0 movq 0x28(%rsp), %rdi movq %rax, (%rsp) callq 0x11b00 movq %rax, 0x38(%rsp) leaq 0x4b795(%rip), %rsi # 0xd492f leaq 0x40(%rsp), %rdi leaq 0x38(%rsp), %rdx callq 0xbc0f0 jmp 0x891ab movq 0x28(%rsp), %rcx movq (%rsp), %rdi movl $0x132, %esi # imm = 0x132 leaq 0x40(%rsp), %rdx callq 0x118a0 jmp 0x891c5 movq (%rsp), %rdi movb $0x0, 0x37(%rsp) leaq 0x90dc3(%rip), %rsi # 0x119f98 leaq -0x7762c(%rip), %rdx # 0x11bb0 callq 0xbd90 jmp 0x89236 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x68(%rsp) movl %eax, 0x64(%rsp) jmp 0x8920b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x68(%rsp) movl %eax, 0x64(%rsp) leaq 0x40(%rsp), %rdi callq 0xbfb0 testb $0x1, 0x37(%rsp) jne 0x89214 jmp 0x8921d movq (%rsp), %rdi callq 0xb5f0 jmp 0x8922c movq 0x20(%rsp), %rax addq $0xd8, %rsp retq movq 0x68(%rsp), %rdi callq 0xbe10 nopw %cs:(%rax,%rax)
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5valueIRA1_KcRA8_SF_S9_TnNSt9enable_ifIXaaaaaaaaL_ZNSt17integral_constantIbLb1EE5valueEEntsr6detail15is_json_pointerIT0_EE5valuesr29is_comparable_with_object_keyISN_EE5valuesr6detail10is_getableISD_T1_EE5valuentsr3std7is_sameINS0_6detail7value_tENSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEE5valueEiE4typeELi0EEESO_OSN_OST_: sub rsp, 0D8h mov [rsp+0D8h+var_C0], rdi; char mov rax, rdi mov [rsp+0D8h+var_B8], rax; int mov [rsp+0D8h+var_8], rdi mov qword ptr [rsp+0D8h+var_10], rsi mov [rsp+0D8h+var_18], rdx mov [rsp+0D8h+var_20], rcx mov rdi, qword ptr [rsp+0D8h+var_10] mov qword ptr [rsp+0D8h+var_B0], rdi; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void) xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_890B3 jmp loc_89171 loc_890B3: mov rsi, qword ptr [rsp+0D8h+var_B0] mov rdx, [rsp+0D8h+var_18] lea rdi, [rsp+0D8h+var_40] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_ mov rsi, qword ptr [rsp+0D8h+var_B0] lea rdi, [rsp+0D8h+var_60] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::end(void) lea rdi, [rsp+0D8h+var_40]; int lea rsi, [rsp+0D8h+var_60]; void * call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, 1 jnz short loc_890F4 jmp short loc_89113 loc_890F4: lea rdi, [rsp+0D8h+var_40]; int call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator->(void) mov rdi, [rsp+0D8h+var_C0]; void * mov rsi, rax; __int64 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3getIS9_S9_EEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalIT_ELi0EEEvEE8get_implIT0_EtlNS0_6detail12priority_tagILj4EEEEEEv jmp loc_8921F loc_89113: mov rax, [rsp+0D8h+var_20] mov [rsp+0D8h+var_D0], rax lea rdi, [rsp+0D8h+var_61] mov [rsp+0D8h+var_C8], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rsp+0D8h+var_C0] mov rsi, [rsp+0D8h+var_D0] mov rdx, [rsp+0D8h+var_C8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_89145: lea rdi, [rsp+0D8h+var_61] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_8921F mov rcx, rax mov eax, edx mov [rsp+arg_60], rcx mov [rsp+arg_5C], eax lea rdi, [rsp+arg_6F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_8922C loc_89171: mov [rsp+0D8h+var_A1], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rdi, qword ptr [rsp+0D8h+var_B0] mov [rsp+0D8h+var_D8], rax; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov qword ptr [rsp+0D8h+var_A0], rax; int lea rsi, aCannotUseValue; "cannot use value() with " lea rdi, [rsp+0D8h+var_98]; int lea rdx, [rsp+0D8h+var_A0]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA25_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(char const(&)[25],char const* &&) jmp short $+2 loc_891AB: mov rcx, qword ptr [rsp+0D8h+var_B0] mov rdi, [rsp+0D8h+var_D8]; int mov esi, 132h lea rdx, [rsp+0D8h+var_98] call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ jmp short $+2 loc_891C5: mov rdi, [rsp+0D8h+var_D8]; void * mov [rsp+0D8h+var_A1], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_89236 mov rcx, rax mov eax, edx mov [rsp+arg_60], rcx mov [rsp+arg_5C], eax jmp short loc_8920B mov rcx, rax mov eax, edx mov [rsp+arg_60], rcx mov [rsp+arg_5C], eax lea rdi, [rsp+arg_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_8920B: test [rsp+arg_2F], 1 jnz short loc_89214 jmp short loc_8921D loc_89214: mov rdi, [rsp+0]; void * call ___cxa_free_exception loc_8921D: jmp short loc_8922C loc_8921F: mov rax, [rsp+0D8h+var_B8] add rsp, 0D8h retn loc_8922C: mov rdi, [rsp+arg_60] call __Unwind_Resume loc_89236: nop word ptr [rax+rax+00000000h]
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5valueIRA1_KcRA8_SF_S9_TnNSt9enable_ifIXaaaaaaaaL_ZNSt17integral_constantIbLb1EE5valueEEntsr6detail15is_json_pointerIT0_EE5valuesr29is_comparable_with_object_keyISN_EE5valuesr6detail10is_getableISD_T1_EE5valuentsr3std7is_sameINS0_6detail7value_tENSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEE5valueEiE4typeELi0EEESO_OSN_OST_( long long a1, _BYTE *a2, long long a3, long long a4) { long long v4; // rdx long long v5; // rax int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d int v10; // ecx int v11; // r8d int v12; // r9d int v14; // [rsp+0h] [rbp-D8h] int exception; // [rsp+0h] [rbp-D8h] void *v16; // [rsp+0h] [rbp-D8h] void *v17; // [rsp+8h] [rbp-D0h] long long v18; // [rsp+8h] [rbp-D0h] int v19; // [rsp+10h] [rbp-C8h] void *v20; // [rsp+18h] [rbp-C0h] long long v21; // [rsp+20h] [rbp-B8h] char v22; // [rsp+30h] [rbp-A8h] int v23[2]; // [rsp+38h] [rbp-A0h] BYREF int v24[13]; // [rsp+40h] [rbp-98h] BYREF char v25; // [rsp+77h] [rbp-61h] BYREF _BYTE v26[32]; // [rsp+78h] [rbp-60h] BYREF int v27[8]; // [rsp+98h] [rbp-40h] BYREF long long v28; // [rsp+B8h] [rbp-20h] long long v29; // [rsp+C0h] [rbp-18h] int v30[2]; // [rsp+C8h] [rbp-10h] long long v31; // [rsp+D0h] [rbp-8h] v21 = a1; v31 = a1; *(_QWORD *)v30 = a2; v29 = a3; v28 = a4; if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(a2) ) { exception = (unsigned int)__cxa_allocate_exception(0x20uLL); *(_QWORD *)v23 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>( (int)v24, (int)"cannot use value() with ", (int)v23, v10, v11, v12, exception, v17, v19, a1); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( (long long)v16, 306LL, (long long)v24, (long long)a2); __cxa_throw( v16, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_( v27, a2, v29); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::end( v26, a2); if ( (ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( (int)v27, v26) & 1) != 0 ) { v5 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator->( (int)v27, v14, (int)v17, v19, a1, a1, (int)a2, v22); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get<std::string,std::string>( v20, v5, v6, v7, v8, v9); } else { v18 = v28; std::allocator<char>::allocator(&v25, v26, v4); std::string::basic_string<std::allocator<char>>(a1, v18, (long long)&v25); std::allocator<char>::~allocator(&v25); } return v21; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5valueIRA1_KcRA8_SF_S9_TnNSt9enable_ifIXaaaaaaaaL_ZNSt17integral_constantIbLb1EE5valueEEntsr6detail15is_json_pointerIT0_EE5valuesr29is_comparable_with_object_keyISN_EE5valuesr6detail10is_getableISD_T1_EE5valuentsr3std7is_sameINS0_6detail7value_tENSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEE5valueEiE4typeELi0EEESO_OSN_OST_: SUB RSP,0xd8 MOV qword ptr [RSP + 0x18],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0xd0],RDI MOV qword ptr [RSP + 0xc8],RSI MOV qword ptr [RSP + 0xc0],RDX MOV qword ptr [RSP + 0xb8],RCX MOV RDI,qword ptr [RSP + 0xc8] MOV qword ptr [RSP + 0x28],RDI CALL 0x0016b800 XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001890b3 JMP 0x00189171 LAB_001890b3: MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0xc0] LEA RDI,[RSP + 0x98] CALL 0x001cbaf0 MOV RSI,qword ptr [RSP + 0x28] LEA RDI,[RSP + 0x78] CALL 0x001cbb90 LEA RDI,[RSP + 0x98] LEA RSI,[RSP + 0x78] CALL 0x001cbb60 TEST AL,0x1 JNZ 0x001890f4 JMP 0x00189113 LAB_001890f4: LEA RDI,[RSP + 0x98] CALL 0x001cbbc0 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,RAX CALL 0x0010fcb0 JMP 0x0018921f LAB_00189113: MOV RAX,qword ptr [RSP + 0xb8] MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x77] MOV qword ptr [RSP + 0x10],RDI CALL 0x0010be20 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0018913e: CALL 0x0010f160 LAB_00189143: JMP 0x00189145 LAB_00189145: LEA RDI,[RSP + 0x77] CALL 0x0010b8e0 JMP 0x0018921f LAB_00189171: MOV byte ptr [RSP + 0x37],0x1 MOV EDI,0x20 CALL 0x0010b3d0 MOV RDI,qword ptr [RSP + 0x28] MOV qword ptr [RSP],RAX CALL 0x00111b00 MOV qword ptr [RSP + 0x38],RAX LAB_00189193: LEA RSI,[0x1d492f] LEA RDI,[RSP + 0x40] LEA RDX,[RSP + 0x38] CALL 0x001bc0f0 JMP 0x001891ab LAB_001891ab: MOV RCX,qword ptr [RSP + 0x28] MOV RDI,qword ptr [RSP] MOV ESI,0x132 LEA RDX,[RSP + 0x40] CALL 0x001118a0 JMP 0x001891c5 LAB_001891c5: MOV RDI,qword ptr [RSP] MOV byte ptr [RSP + 0x37],0x0 LEA RSI,[0x219f98] LEA RDX,[0x111bb0] CALL 0x0010bd90 LAB_0018921f: MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0xd8 RET
string * _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5valueIRA1_KcRA8_SF_S9_TnNSt9enable_ifIXaaaaaaaaL_ZNSt17integral_constantIbLb1EE5valueEEntsr6detail15is_json_pointerIT0_EE5valuesr29is_comparable_with_object_keyISN_EE5valuesr6detail10is_getableISD_T1_EE5valuentsr3std7is_sameINS0_6detail7value_tENSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEE5valueEiE4typeELi0EEESO_OSN_OST_ (string *param_1, basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_2,int8 param_3,char *param_4) { char *pcVar1; byte bVar2; ulong uVar3; int8 uVar4; char *local_a0; detail local_98 [55]; allocator local_61; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_60 [32]; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> local_40 [32]; char *local_20; int8 local_18; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *local_10; string *local_8; local_20 = param_4; local_18 = param_3; local_10 = param_2; local_8 = param_1; bVar2 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::is_object(param_2); if ((bVar2 & 1) == 0) { uVar4 = __cxa_allocate_exception(0x20); local_a0 = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_2); /* try { // try from 00189193 to 001891a8 has its CatchHandler @ 001891e3 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[25],char_const*> (local_98,"cannot use value() with ",&local_a0); /* try { // try from 001891ab to 001891e0 has its CatchHandler @ 001891f3 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x132,local_98,param_2); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_ (local_40,param_2,local_18); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::end(local_60); uVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ (local_40,local_60); pcVar1 = local_20; if ((uVar3 & 1) == 0) { std::allocator<char>::allocator(); /* try { // try from 0018913e to 00189142 has its CatchHandler @ 00189154 */ std::__cxx11::string::string<std::allocator<char>>(param_1,pcVar1,&local_61); std::allocator<char>::~allocator((allocator<char> *)&local_61); } else { nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator->(local_40); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get<std::__cxx11::string,std::__cxx11::string>(); } return param_1; }
32,206
OpenSubdiv::v3_6_0::Vtr::internal::Level::findEdge(int, int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
Index Level::findEdge(Index v0Index, Index v1Index) const { return this->findEdge(v0Index, v1Index, this->getVertexEdges(v0Index)); }
O1
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::findEdge(int, int) const: pushq %r14 pushq %rbx leal (%rsi,%rsi), %eax leal 0x1(%rsi,%rsi), %ecx movslq %ecx, %rcx movq 0x150(%rdi), %r8 movslq (%r8,%rcx,4), %rcx shlq $0x2, %rcx addq 0x168(%rdi), %rcx cltq movslq (%r8,%rax,4), %r8 testq %r8, %r8 setg %r9b cmpl %edx, %esi jne 0x44b43 testl %r8d, %r8d jle 0x44b95 movq 0x78(%rdi), %rdx movslq (%rcx), %rax movl (%rdx,%rax,8), %esi movb $0x1, %r9b cmpl 0x4(%rdx,%rax,8), %esi je 0x44b95 movl $0x1, %edi movq %rdi, %rsi cmpq %rdi, %r8 je 0x44b3a movslq (%rcx,%rsi,4), %r9 movl (%rdx,%r9,8), %r10d leaq 0x1(%rsi), %rdi cmpl 0x4(%rdx,%r9,8), %r10d cmovel %r9d, %eax jne 0x44b1b cmpq %r8, %rsi setb %r9b jmp 0x44b95 testl %r8d, %r8d jle 0x44b9c movq 0x78(%rdi), %rsi movq %r8, %rdi negq %rdi movb $0x1, %r9b movl $0x1, %r10d movslq -0x4(%rcx,%r10,4), %r11 cmpl %edx, (%rsi,%r11,8) je 0x44b73 leaq (%r11,%r11), %r14 movb $0x1, %bl cmpl %edx, 0x4(%rsi,%r14,4) jne 0x44b78 xorl %ebx, %ebx movl %r11d, %eax testb %bl, %bl je 0x44b9c cmpq %r8, %r10 setb %r9b leaq (%rdi,%r10), %r11 incq %r11 incq %r10 cmpq $0x1, %r11 jne 0x44b5b jmp 0x44b9c testb %r9b, %r9b je 0x44ba2 jmp 0x44ba7 testb $0x1, %r9b jne 0x44ba7 movl $0xffffffff, %eax # imm = 0xFFFFFFFF popq %rbx popq %r14 retq nop
_ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level8findEdgeEii: push r14 push rbx lea eax, [rsi+rsi] lea ecx, [rsi+rsi+1] movsxd rcx, ecx mov r8, [rdi+150h] movsxd rcx, dword ptr [r8+rcx*4] shl rcx, 2 add rcx, [rdi+168h] cdqe movsxd r8, dword ptr [r8+rax*4] test r8, r8 setnle r9b cmp esi, edx jnz short loc_44B43 test r8d, r8d jle loc_44B95 mov rdx, [rdi+78h] movsxd rax, dword ptr [rcx] mov esi, [rdx+rax*8] mov r9b, 1 cmp esi, [rdx+rax*8+4] jz short loc_44B95 mov edi, 1 loc_44B1B: mov rsi, rdi cmp r8, rdi jz short loc_44B3A movsxd r9, dword ptr [rcx+rsi*4] mov r10d, [rdx+r9*8] lea rdi, [rsi+1] cmp r10d, [rdx+r9*8+4] cmovz eax, r9d jnz short loc_44B1B loc_44B3A: cmp rsi, r8 setb r9b jmp short loc_44B95 loc_44B43: test r8d, r8d jle short loc_44B9C mov rsi, [rdi+78h] mov rdi, r8 neg rdi mov r9b, 1 mov r10d, 1 loc_44B5B: movsxd r11, dword ptr [rcx+r10*4-4] cmp [rsi+r11*8], edx jz short loc_44B73 lea r14, [r11+r11] mov bl, 1 cmp [rsi+r14*4+4], edx jnz short loc_44B78 loc_44B73: xor ebx, ebx mov eax, r11d loc_44B78: test bl, bl jz short loc_44B9C cmp r10, r8 setb r9b lea r11, [rdi+r10] inc r11 inc r10 cmp r11, 1 jnz short loc_44B5B jmp short loc_44B9C loc_44B95: test r9b, r9b jz short loc_44BA2 jmp short loc_44BA7 loc_44B9C: test r9b, 1 jnz short loc_44BA7 loc_44BA2: mov eax, 0FFFFFFFFh loc_44BA7: pop rbx pop r14 retn
long long OpenSubdiv::v3_6_0::Vtr::internal::Level::findEdge( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2, int a3) { long long v3; // r8 int *v4; // rcx long long result; // rax unsigned long long v6; // r8 bool v7; // r9 long long v8; // rdx long long v9; // rdi unsigned long long v10; // rsi long long v11; // r9 long long v12; // rsi unsigned long long v13; // r10 long long v14; // r11 char v15; // bl long long v16; // r11 v3 = *((_QWORD *)this + 42); v4 = (int *)(*((_QWORD *)this + 45) + 4LL * *(int *)(v3 + 4LL * (2 * a2 + 1))); result = 2 * a2; v6 = *(int *)(v3 + 4 * result); v7 = (long long)v6 > 0; if ( a2 != a3 ) { if ( (int)v6 > 0 ) { v12 = *((_QWORD *)this + 15); v7 = 1; v13 = 1LL; do { v14 = v4[v13 - 1]; if ( *(_DWORD *)(v12 + 8 * v14) != a3 ) { v15 = 1; if ( *(_DWORD *)(v12 + 8 * v14 + 4) != a3 ) goto LABEL_14; } v15 = 0; result = (unsigned int)v14; LABEL_14: if ( !v15 ) break; v7 = v13 < v6; v16 = v13 - v6 + 1; ++v13; } while ( v16 != 1 ); } if ( v7 ) return result; return 0xFFFFFFFFLL; } if ( (int)v6 > 0 ) { v8 = *((_QWORD *)this + 15); result = *v4; v7 = 1; if ( *(_DWORD *)(v8 + 8 * result) != *(_DWORD *)(v8 + 8 * result + 4) ) { v9 = 1LL; while ( 1 ) { v10 = v9; if ( v6 == v9 ) break; v11 = v4[v9++]; if ( *(_DWORD *)(v8 + 8 * v11) == *(_DWORD *)(v8 + 8 * v11 + 4) ) { result = (unsigned int)v11; break; } } v7 = v10 < v6; } } if ( !v7 ) return 0xFFFFFFFFLL; return result; }
findEdge: PUSH R14 PUSH RBX LEA EAX,[RSI + RSI*0x1] LEA ECX,[RSI + RSI*0x1 + 0x1] MOVSXD RCX,ECX MOV R8,qword ptr [RDI + 0x150] MOVSXD RCX,dword ptr [R8 + RCX*0x4] SHL RCX,0x2 ADD RCX,qword ptr [RDI + 0x168] CDQE MOVSXD R8,dword ptr [R8 + RAX*0x4] TEST R8,R8 SETG R9B CMP ESI,EDX JNZ 0x00144b43 TEST R8D,R8D JLE 0x00144b95 MOV RDX,qword ptr [RDI + 0x78] MOVSXD RAX,dword ptr [RCX] MOV ESI,dword ptr [RDX + RAX*0x8] MOV R9B,0x1 CMP ESI,dword ptr [RDX + RAX*0x8 + 0x4] JZ 0x00144b95 MOV EDI,0x1 LAB_00144b1b: MOV RSI,RDI CMP R8,RDI JZ 0x00144b3a MOVSXD R9,dword ptr [RCX + RSI*0x4] MOV R10D,dword ptr [RDX + R9*0x8] LEA RDI,[RSI + 0x1] CMP R10D,dword ptr [RDX + R9*0x8 + 0x4] CMOVZ EAX,R9D JNZ 0x00144b1b LAB_00144b3a: CMP RSI,R8 SETC R9B JMP 0x00144b95 LAB_00144b43: TEST R8D,R8D JLE 0x00144b9c MOV RSI,qword ptr [RDI + 0x78] MOV RDI,R8 NEG RDI MOV R9B,0x1 MOV R10D,0x1 LAB_00144b5b: MOVSXD R11,dword ptr [RCX + R10*0x4 + -0x4] CMP dword ptr [RSI + R11*0x8],EDX JZ 0x00144b73 LEA R14,[R11 + R11*0x1] MOV BL,0x1 CMP dword ptr [RSI + R14*0x4 + 0x4],EDX JNZ 0x00144b78 LAB_00144b73: XOR EBX,EBX MOV EAX,R11D LAB_00144b78: TEST BL,BL JZ 0x00144b9c CMP R10,R8 SETC R9B LEA R11,[RDI + R10*0x1] INC R11 INC R10 CMP R11,0x1 JNZ 0x00144b5b JMP 0x00144b9c LAB_00144b95: TEST R9B,R9B JZ 0x00144ba2 JMP 0x00144ba7 LAB_00144b9c: TEST R9B,0x1 JNZ 0x00144ba7 LAB_00144ba2: MOV EAX,0xffffffff LAB_00144ba7: POP RBX POP R14 RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::findEdge(int, int) const */ ulong __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::findEdge(Level *this,int param_1,int param_2) { int iVar1; uint uVar2; long lVar3; ulong uVar4; int *piVar5; ulong uVar6; ulong uVar7; ulong uVar8; bool bVar9; bool bVar10; piVar5 = (int *)((long)*(int *)(*(long *)(this + 0x150) + (long)(param_1 * 2 + 1) * 4) * 4 + *(long *)(this + 0x168)); uVar4 = (ulong)(param_1 * 2); iVar1 = *(int *)(*(long *)(this + 0x150) + uVar4 * 4); uVar7 = (ulong)iVar1; bVar9 = 0 < (long)uVar7; if (param_1 == param_2) { if (0 < iVar1) { lVar3 = *(long *)(this + 0x78); uVar4 = (ulong)*piVar5; bVar9 = true; if (*(int *)(lVar3 + uVar4 * 8) != *(int *)(lVar3 + 4 + uVar4 * 8)) { uVar8 = 1; do { uVar6 = uVar8; if (uVar7 == uVar6) goto LAB_00144b3a; uVar2 = piVar5[uVar6]; uVar4 = uVar4 & 0xffffffff; uVar8 = uVar6 + 1; } while (*(int *)(lVar3 + (long)(int)uVar2 * 8) != *(int *)(lVar3 + 4 + (long)(int)uVar2 * 8)); uVar4 = (ulong)uVar2; LAB_00144b3a: bVar9 = uVar6 < uVar7; } } if (bVar9) { return uVar4; } } else { if (0 < iVar1) { bVar9 = true; uVar8 = 1; do { uVar2 = piVar5[uVar8 - 1]; if ((*(int *)(*(long *)(this + 0x78) + (long)(int)uVar2 * 8) == param_2) || (bVar10 = true, *(int *)(*(long *)(this + 0x78) + 4 + (long)(int)uVar2 * 8) == param_2)) { bVar10 = false; uVar4 = (ulong)uVar2; } if (!bVar10) break; bVar9 = uVar8 < uVar7; bVar10 = uVar8 != uVar7; uVar8 = uVar8 + 1; } while (bVar10); } if (bVar9) { return uVar4; } } return 0xffffffff; }
32,207
stbi__hdr_gettoken(stbi__context*, char*)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static char *stbi__hdr_gettoken(stbi__context *z, char *buffer) { int len=0; char c = '\0'; c = (char) stbi__get8(z); while (!stbi__at_eof(z) && c != '\n') { buffer[len++] = c; if (len == STBI__HDR_BUFLEN-1) { // flush to end of line while (!stbi__at_eof(z) && stbi__get8(z) != '\n') ; break; } c = (char) stbi__get8(z); } buffer[len] = 0; return buffer; }
O0
c
stbi__hdr_gettoken(stbi__context*, char*): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movl $0x0, 0x4(%rsp) movb $0x0, 0x3(%rsp) movq 0x10(%rsp), %rdi callq 0x8ecc0 movb %al, 0x3(%rsp) movq 0x10(%rsp), %rdi callq 0x946c0 movl %eax, %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, 0x2(%rsp) jne 0xa131f movsbl 0x3(%rsp), %eax cmpl $0xa, %eax setne %al movb %al, 0x2(%rsp) movb 0x2(%rsp), %al testb $0x1, %al jne 0xa1329 jmp 0xa13a0 movb 0x3(%rsp), %dl movq 0x8(%rsp), %rax movl 0x4(%rsp), %ecx movl %ecx, %esi addl $0x1, %esi movl %esi, 0x4(%rsp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) cmpl $0x3ff, 0x4(%rsp) # imm = 0x3FF jne 0xa138d jmp 0xa1351 movq 0x10(%rsp), %rdi callq 0x946c0 movl %eax, %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, 0x1(%rsp) jne 0xa137f movq 0x10(%rsp), %rdi callq 0x8ecc0 movzbl %al, %eax cmpl $0xa, %eax setne %al movb %al, 0x1(%rsp) movb 0x1(%rsp), %al testb $0x1, %al jne 0xa1389 jmp 0xa138b jmp 0xa1351 jmp 0xa13a0 movq 0x10(%rsp), %rdi callq 0x8ecc0 movb %al, 0x3(%rsp) jmp 0xa12f9 movq 0x8(%rsp), %rax movslq 0x4(%rsp), %rcx movb $0x0, (%rax,%rcx) movq 0x8(%rsp), %rax addq $0x18, %rsp retq nopl (%rax,%rax)
_ZL18stbi__hdr_gettokenP13stbi__contextPc: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_10], rsi mov [rsp+18h+var_14], 0 mov [rsp+18h+var_15], 0 mov rdi, [rsp+18h+var_8] call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) mov [rsp+18h+var_15], al loc_A12F9: mov rdi, [rsp+18h+var_8] call _ZL12stbi__at_eofP13stbi__context; stbi__at_eof(stbi__context *) mov ecx, eax xor eax, eax cmp ecx, 0 mov [rsp+18h+var_16], al jnz short loc_A131F movsx eax, [rsp+18h+var_15] cmp eax, 0Ah setnz al mov [rsp+18h+var_16], al loc_A131F: mov al, [rsp+18h+var_16] test al, 1 jnz short loc_A1329 jmp short loc_A13A0 loc_A1329: mov dl, [rsp+18h+var_15] mov rax, [rsp+18h+var_10] mov ecx, [rsp+18h+var_14] mov esi, ecx add esi, 1 mov [rsp+18h+var_14], esi movsxd rcx, ecx mov [rax+rcx], dl cmp [rsp+18h+var_14], 3FFh jnz short loc_A138D jmp short $+2 loc_A1351: mov rdi, [rsp+18h+var_8] call _ZL12stbi__at_eofP13stbi__context; stbi__at_eof(stbi__context *) mov ecx, eax xor eax, eax cmp ecx, 0 mov [rsp+18h+var_17], al jnz short loc_A137F mov rdi, [rsp+18h+var_8] call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) movzx eax, al cmp eax, 0Ah setnz al mov [rsp+18h+var_17], al loc_A137F: mov al, [rsp+18h+var_17] test al, 1 jnz short loc_A1389 jmp short loc_A138B loc_A1389: jmp short loc_A1351 loc_A138B: jmp short loc_A13A0 loc_A138D: mov rdi, [rsp+18h+var_8] call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) mov [rsp+18h+var_15], al jmp loc_A12F9 loc_A13A0: mov rax, [rsp+18h+var_10] movsxd rcx, [rsp+18h+var_14] mov byte ptr [rax+rcx], 0 mov rax, [rsp+18h+var_10] add rsp, 18h retn
long long stbi__hdr_gettoken(long long a1, long long a2) { int v2; // ecx bool v4; // [rsp+1h] [rbp-17h] bool v5; // [rsp+2h] [rbp-16h] char i; // [rsp+3h] [rbp-15h] int v7; // [rsp+4h] [rbp-14h] v7 = 0; for ( i = stbi__get8(a1); ; i = stbi__get8(a1) ) { v5 = 0; if ( !stbi__at_eof(a1) ) v5 = i != 10; if ( !v5 ) break; v2 = v7++; *(_BYTE *)(a2 + v2) = i; if ( v7 == 1023 ) { do { v4 = 0; if ( !stbi__at_eof(a1) ) v4 = stbi__get8(a1) != 10; } while ( v4 ); break; } } *(_BYTE *)(a2 + v7) = 0; return a2; }
stbi__hdr_gettoken: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV dword ptr [RSP + 0x4],0x0 MOV byte ptr [RSP + 0x3],0x0 MOV RDI,qword ptr [RSP + 0x10] CALL 0x0018ecc0 MOV byte ptr [RSP + 0x3],AL LAB_001a12f9: MOV RDI,qword ptr [RSP + 0x10] CALL 0x001946c0 MOV ECX,EAX XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RSP + 0x2],AL JNZ 0x001a131f MOVSX EAX,byte ptr [RSP + 0x3] CMP EAX,0xa SETNZ AL MOV byte ptr [RSP + 0x2],AL LAB_001a131f: MOV AL,byte ptr [RSP + 0x2] TEST AL,0x1 JNZ 0x001a1329 JMP 0x001a13a0 LAB_001a1329: MOV DL,byte ptr [RSP + 0x3] MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RSP + 0x4] MOV ESI,ECX ADD ESI,0x1 MOV dword ptr [RSP + 0x4],ESI MOVSXD RCX,ECX MOV byte ptr [RAX + RCX*0x1],DL CMP dword ptr [RSP + 0x4],0x3ff JNZ 0x001a138d JMP 0x001a1351 LAB_001a1351: MOV RDI,qword ptr [RSP + 0x10] CALL 0x001946c0 MOV ECX,EAX XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RSP + 0x1],AL JNZ 0x001a137f MOV RDI,qword ptr [RSP + 0x10] CALL 0x0018ecc0 MOVZX EAX,AL CMP EAX,0xa SETNZ AL MOV byte ptr [RSP + 0x1],AL LAB_001a137f: MOV AL,byte ptr [RSP + 0x1] TEST AL,0x1 JNZ 0x001a1389 JMP 0x001a138b LAB_001a1389: JMP 0x001a1351 LAB_001a138b: JMP 0x001a13a0 LAB_001a138d: MOV RDI,qword ptr [RSP + 0x10] CALL 0x0018ecc0 MOV byte ptr [RSP + 0x3],AL JMP 0x001a12f9 LAB_001a13a0: MOV RAX,qword ptr [RSP + 0x8] MOVSXD RCX,dword ptr [RSP + 0x4] MOV byte ptr [RAX + RCX*0x1],0x0 MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0x18 RET
/* stbi__hdr_gettoken(stbi__context*, char*) */ char * stbi__hdr_gettoken(stbi__context *param_1,char *param_2) { char cVar1; int iVar2; bool bVar3; char local_15; int local_14; local_14 = 0; local_15 = stbi__get8(param_1); while (iVar2 = stbi__at_eof(param_1), iVar2 == 0 && local_15 != '\n') { iVar2 = local_14 + 1; param_2[local_14] = local_15; local_14 = iVar2; if (iVar2 == 0x3ff) goto LAB_001a1351; local_15 = stbi__get8(param_1); } LAB_001a13a0: param_2[local_14] = '\0'; return param_2; LAB_001a1351: do { iVar2 = stbi__at_eof(param_1); bVar3 = false; if (iVar2 == 0) { cVar1 = stbi__get8(param_1); bVar3 = cVar1 != '\n'; } } while (bVar3); goto LAB_001a13a0; }
32,208
stbi__hdr_gettoken(stbi__context*, char*)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static char *stbi__hdr_gettoken(stbi__context *z, char *buffer) { int len=0; char c = '\0'; c = (char) stbi__get8(z); while (!stbi__at_eof(z) && c != '\n') { buffer[len++] = c; if (len == STBI__HDR_BUFLEN-1) { // flush to end of line while (!stbi__at_eof(z) && stbi__get8(z) != '\n') ; break; } c = (char) stbi__get8(z); } buffer[len] = 0; return buffer; }
O3
c
stbi__hdr_gettoken(stbi__context*, char*): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq 0xc0(%rdi), %rax cmpq 0xc8(%rdi), %rax jb 0x4226c cmpl $0x0, 0x30(%r14) je 0x42396 movq %r14, %rdi callq 0x3ba17 movq 0xc0(%r14), %rax leaq 0x1(%rax), %rcx movq %rcx, 0xc0(%r14) movb (%rax), %bpl movq %rcx, %rax xorl %r15d, %r15d cmpq $0x0, 0x10(%r14) je 0x422a5 movq 0x28(%r14), %rdi callq *0x20(%r14) testl %eax, %eax je 0x422b1 cmpl $0x0, 0x30(%r14) je 0x42383 movq 0xc0(%r14), %rax cmpq 0xc8(%r14), %rax setb %al jmp 0x422b3 movb $0x1, %al cmpb $0xa, %bpl je 0x42383 testb %al, %al je 0x42383 movb %bpl, (%rbx,%r15) cmpq $0x3fe, %r15 # imm = 0x3FE je 0x42315 movq 0xc0(%r14), %rax cmpq 0xc8(%r14), %rax jb 0x422f8 cmpl $0x0, 0x30(%r14) je 0x42311 movq %r14, %rdi callq 0x3ba17 movq 0xc0(%r14), %rax leaq 0x1(%rax), %rcx movq %rcx, 0xc0(%r14) movb (%rax), %bpl movq %rcx, %rax incq %r15 jmp 0x42280 xorl %ebp, %ebp jmp 0x42309 cmpq $0x0, 0x10(%r14) je 0x4232f movq 0x28(%r14), %rdi callq *0x20(%r14) testl %eax, %eax je 0x42344 cmpl $0x0, 0x30(%r14) je 0x4237d movq 0xc0(%r14), %rax movq 0xc8(%r14), %rcx cmpq %rcx, %rax jb 0x42352 jmp 0x4237d movq 0xc0(%r14), %rax movq 0xc8(%r14), %rcx cmpq %rcx, %rax jb 0x4236d cmpl $0x0, 0x30(%r14) je 0x42315 movq %r14, %rdi callq 0x3ba17 movq 0xc0(%r14), %rax leaq 0x1(%rax), %rcx movq %rcx, 0xc0(%r14) cmpb $0xa, (%rax) jne 0x42315 movl $0x3ff, %r15d # imm = 0x3FF movb $0x0, (%rbx,%r15) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq xorl %ebp, %ebp jmp 0x4227d
_ZL18stbi__hdr_gettokenP13stbi__contextPc: push rbp push r15 push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov rax, [rdi+0C0h] cmp rax, [rdi+0C8h] jb short loc_4226C cmp dword ptr [r14+30h], 0 jz loc_42396 mov rdi, r14 call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [r14+0C0h] loc_4226C: lea rcx, [rax+1] mov [r14+0C0h], rcx mov bpl, [rax] mov rax, rcx loc_4227D: xor r15d, r15d loc_42280: cmp qword ptr [r14+10h], 0 jz short loc_422A5 mov rdi, [r14+28h] call qword ptr [r14+20h] test eax, eax jz short loc_422B1 cmp dword ptr [r14+30h], 0 jz loc_42383 mov rax, [r14+0C0h] loc_422A5: cmp rax, [r14+0C8h] setb al jmp short loc_422B3 loc_422B1: mov al, 1 loc_422B3: cmp bpl, 0Ah jz loc_42383 test al, al jz loc_42383 mov [rbx+r15], bpl cmp r15, 3FEh jz short loc_42315 mov rax, [r14+0C0h] cmp rax, [r14+0C8h] jb short loc_422F8 cmp dword ptr [r14+30h], 0 jz short loc_42311 mov rdi, r14 call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [r14+0C0h] loc_422F8: lea rcx, [rax+1] mov [r14+0C0h], rcx mov bpl, [rax] mov rax, rcx loc_42309: inc r15 jmp loc_42280 loc_42311: xor ebp, ebp jmp short loc_42309 loc_42315: cmp qword ptr [r14+10h], 0 jz short loc_4232F mov rdi, [r14+28h] call qword ptr [r14+20h] test eax, eax jz short loc_42344 cmp dword ptr [r14+30h], 0 jz short loc_4237D loc_4232F: mov rax, [r14+0C0h] mov rcx, [r14+0C8h] cmp rax, rcx jb short loc_42352 jmp short loc_4237D loc_42344: mov rax, [r14+0C0h] mov rcx, [r14+0C8h] loc_42352: cmp rax, rcx jb short loc_4236D cmp dword ptr [r14+30h], 0 jz short loc_42315 mov rdi, r14 call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [r14+0C0h] loc_4236D: lea rcx, [rax+1] mov [r14+0C0h], rcx cmp byte ptr [rax], 0Ah jnz short loc_42315 loc_4237D: mov r15d, 3FFh loc_42383: mov byte ptr [rbx+r15], 0 mov rax, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_42396: xor ebp, ebp jmp loc_4227D
long long stbi__hdr_gettoken(long long a1, long long a2) { char *v2; // rax char v3; // bp long long i; // r15 bool v5; // al _BYTE *v6; // rax unsigned long long v7; // rcx v2 = *(char **)(a1 + 192); if ( (unsigned long long)v2 >= *(_QWORD *)(a1 + 200) ) { if ( !*(_DWORD *)(a1 + 48) ) { v3 = 0; goto LABEL_5; } stbi__refill_buffer(a1); v2 = *(char **)(a1 + 192); } *(_QWORD *)(a1 + 192) = v2 + 1; v3 = *v2++; LABEL_5: for ( i = 0LL; ; ++i ) { if ( *(_QWORD *)(a1 + 16) ) { if ( !(*(unsigned int ( **)(_QWORD))(a1 + 32))(*(_QWORD *)(a1 + 40)) ) { v5 = 1; goto LABEL_12; } if ( !*(_DWORD *)(a1 + 48) ) break; v2 = *(char **)(a1 + 192); } v5 = (unsigned long long)v2 < *(_QWORD *)(a1 + 200); LABEL_12: if ( v3 == 10 || !v5 ) break; *(_BYTE *)(a2 + i) = v3; if ( i == 1022 ) { while ( 1 ) { if ( !*(_QWORD *)(a1 + 16) ) goto LABEL_24; if ( (*(unsigned int ( **)(_QWORD))(a1 + 32))(*(_QWORD *)(a1 + 40)) ) break; v6 = *(_BYTE **)(a1 + 192); v7 = *(_QWORD *)(a1 + 200); LABEL_27: if ( (unsigned long long)v6 < v7 ) { LABEL_30: *(_QWORD *)(a1 + 192) = v6 + 1; if ( *v6 == 10 ) { LABEL_31: i = 1023LL; goto LABEL_32; } } else if ( *(_DWORD *)(a1 + 48) ) { stbi__refill_buffer(a1); v6 = *(_BYTE **)(a1 + 192); goto LABEL_30; } } if ( !*(_DWORD *)(a1 + 48) ) goto LABEL_31; LABEL_24: v6 = *(_BYTE **)(a1 + 192); v7 = *(_QWORD *)(a1 + 200); if ( (unsigned long long)v6 >= v7 ) goto LABEL_31; goto LABEL_27; } v2 = *(char **)(a1 + 192); if ( (unsigned long long)v2 < *(_QWORD *)(a1 + 200) ) { LABEL_18: *(_QWORD *)(a1 + 192) = v2 + 1; v3 = *v2++; continue; } if ( *(_DWORD *)(a1 + 48) ) { stbi__refill_buffer(a1); v2 = *(char **)(a1 + 192); goto LABEL_18; } v3 = 0; } LABEL_32: *(_BYTE *)(a2 + i) = 0; return a2; }
stbi__hdr_gettoken: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr [RDI + 0xc0] CMP RAX,qword ptr [RDI + 0xc8] JC 0x0014226c CMP dword ptr [R14 + 0x30],0x0 JZ 0x00142396 MOV RDI,R14 CALL 0x0013ba17 MOV RAX,qword ptr [R14 + 0xc0] LAB_0014226c: LEA RCX,[RAX + 0x1] MOV qword ptr [R14 + 0xc0],RCX MOV BPL,byte ptr [RAX] MOV RAX,RCX LAB_0014227d: XOR R15D,R15D LAB_00142280: CMP qword ptr [R14 + 0x10],0x0 JZ 0x001422a5 MOV RDI,qword ptr [R14 + 0x28] CALL qword ptr [R14 + 0x20] TEST EAX,EAX JZ 0x001422b1 CMP dword ptr [R14 + 0x30],0x0 JZ 0x00142383 MOV RAX,qword ptr [R14 + 0xc0] LAB_001422a5: CMP RAX,qword ptr [R14 + 0xc8] SETC AL JMP 0x001422b3 LAB_001422b1: MOV AL,0x1 LAB_001422b3: CMP BPL,0xa JZ 0x00142383 TEST AL,AL JZ 0x00142383 MOV byte ptr [RBX + R15*0x1],BPL CMP R15,0x3fe JZ 0x00142315 MOV RAX,qword ptr [R14 + 0xc0] CMP RAX,qword ptr [R14 + 0xc8] JC 0x001422f8 CMP dword ptr [R14 + 0x30],0x0 JZ 0x00142311 MOV RDI,R14 CALL 0x0013ba17 MOV RAX,qword ptr [R14 + 0xc0] LAB_001422f8: LEA RCX,[RAX + 0x1] MOV qword ptr [R14 + 0xc0],RCX MOV BPL,byte ptr [RAX] MOV RAX,RCX LAB_00142309: INC R15 JMP 0x00142280 LAB_00142311: XOR EBP,EBP JMP 0x00142309 LAB_00142315: CMP qword ptr [R14 + 0x10],0x0 JZ 0x0014232f MOV RDI,qword ptr [R14 + 0x28] CALL qword ptr [R14 + 0x20] TEST EAX,EAX JZ 0x00142344 CMP dword ptr [R14 + 0x30],0x0 JZ 0x0014237d LAB_0014232f: MOV RAX,qword ptr [R14 + 0xc0] MOV RCX,qword ptr [R14 + 0xc8] CMP RAX,RCX JC 0x00142352 JMP 0x0014237d LAB_00142344: MOV RAX,qword ptr [R14 + 0xc0] MOV RCX,qword ptr [R14 + 0xc8] LAB_00142352: CMP RAX,RCX JC 0x0014236d CMP dword ptr [R14 + 0x30],0x0 JZ 0x00142315 MOV RDI,R14 CALL 0x0013ba17 MOV RAX,qword ptr [R14 + 0xc0] LAB_0014236d: LEA RCX,[RAX + 0x1] MOV qword ptr [R14 + 0xc0],RCX CMP byte ptr [RAX],0xa JNZ 0x00142315 LAB_0014237d: MOV R15D,0x3ff LAB_00142383: MOV byte ptr [RBX + R15*0x1],0x0 MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_00142396: XOR EBP,EBP JMP 0x0014227d
/* stbi__hdr_gettoken(stbi__context*, char*) */ char * stbi__hdr_gettoken(stbi__context *param_1,char *param_2) { int iVar1; char *pcVar2; char *pcVar3; char cVar4; long lVar5; bool bVar6; pcVar2 = *(char **)(param_1 + 0xc0); if (*(char **)(param_1 + 200) <= pcVar2) { if (*(int *)(param_1 + 0x30) == 0) { cVar4 = '\0'; goto LAB_0014227d; } stbi__refill_buffer(param_1); pcVar2 = *(char **)(param_1 + 0xc0); } *(char **)(param_1 + 0xc0) = pcVar2 + 1; cVar4 = *pcVar2; pcVar2 = pcVar2 + 1; LAB_0014227d: lVar5 = 0; do { if (*(long *)(param_1 + 0x10) == 0) { LAB_001422a5: bVar6 = pcVar2 < *(char **)(param_1 + 200); } else { iVar1 = (**(code **)(param_1 + 0x20))(*(int8 *)(param_1 + 0x28)); if (iVar1 != 0) { if (*(int *)(param_1 + 0x30) != 0) { pcVar2 = *(char **)(param_1 + 0xc0); goto LAB_001422a5; } goto LAB_00142383; } bVar6 = true; } if ((cVar4 == '\n') || (!bVar6)) goto LAB_00142383; param_2[lVar5] = cVar4; if (lVar5 == 0x3fe) break; pcVar2 = *(char **)(param_1 + 0xc0); if (pcVar2 < *(char **)(param_1 + 200)) { LAB_001422f8: *(char **)(param_1 + 0xc0) = pcVar2 + 1; cVar4 = *pcVar2; pcVar2 = pcVar2 + 1; } else { if (*(int *)(param_1 + 0x30) != 0) { stbi__refill_buffer(param_1); pcVar2 = *(char **)(param_1 + 0xc0); goto LAB_001422f8; } cVar4 = '\0'; } lVar5 = lVar5 + 1; } while( true ); LAB_00142315: if (*(long *)(param_1 + 0x10) == 0) { LAB_0014232f: pcVar3 = *(char **)(param_1 + 0xc0); pcVar2 = *(char **)(param_1 + 200); if (pcVar2 <= pcVar3) goto LAB_0014237d; } else { iVar1 = (**(code **)(param_1 + 0x20))(*(int8 *)(param_1 + 0x28)); if (iVar1 != 0) { if (*(int *)(param_1 + 0x30) != 0) goto LAB_0014232f; goto LAB_0014237d; } pcVar3 = *(char **)(param_1 + 0xc0); pcVar2 = *(char **)(param_1 + 200); } if (pcVar2 <= pcVar3) { if (*(int *)(param_1 + 0x30) == 0) goto LAB_00142315; stbi__refill_buffer(param_1); pcVar3 = *(char **)(param_1 + 0xc0); } *(char **)(param_1 + 0xc0) = pcVar3 + 1; if (*pcVar3 == '\n') { LAB_0014237d: lVar5 = 0x3ff; LAB_00142383: param_2[lVar5] = '\0'; return param_2; } goto LAB_00142315; }
32,209
translog_variable_record_1group_decode_len
eloqsql/storage/maria/ma_loghandler.c
static translog_size_t translog_variable_record_1group_decode_len(uchar **src) { uint8 first= (uint8) (**src); switch (first) { case 251: (*src)+= 3; return (uint2korr((*src) - 2)); case 252: (*src)+= 4; return (uint3korr((*src) - 3)); case 253: (*src)+= 5; return (uint4korr((*src) - 4)); case 254: case 255: DBUG_ASSERT(0); /* reserved for future use */ return (0); default: (*src)++; return (first); } }
O0
c
translog_variable_record_1group_decode_len: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movb (%rax), %al movb %al, -0x11(%rbp) movzbl -0x11(%rbp), %eax addl $0xffffff05, %eax # imm = 0xFFFFFF05 movl %eax, %ecx movq %rcx, -0x20(%rbp) subl $0x4, %eax ja 0x5a406 movq -0x20(%rbp), %rax leaq 0xffd89(%rip), %rcx # 0x15a100 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x3, %rcx movq %rcx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movzwl -0x2(%rax), %eax movl %eax, -0x4(%rbp) jmp 0x5a41b movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x4, %rcx movq %rcx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movzbl -0x3(%rax), %eax movq -0x10(%rbp), %rcx movq (%rcx), %rcx movzbl -0x2(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x10(%rbp), %rcx movq (%rcx), %rcx movzbl -0x1(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, -0x4(%rbp) jmp 0x5a41b movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x5, %rcx movq %rcx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movl -0x4(%rax), %eax movl %eax, -0x4(%rbp) jmp 0x5a41b jmp 0x5a3fb jmp 0x5a3fd movl $0x0, -0x4(%rbp) jmp 0x5a41b movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movzbl -0x11(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq
translog_variable_record_1group_decode_len: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax] mov al, [rax] mov [rbp+var_11], al movzx eax, [rbp+var_11] add eax, 0FFFFFF05h; switch 5 cases mov ecx, eax mov [rbp+var_20], rcx sub eax, 4 ja def_5A37E; jumptable 000000000005A37E default case mov rax, [rbp+var_20] lea rcx, jpt_5A37E movsxd rax, ds:(jpt_5A37E - 15A100h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_5A380: mov rax, [rbp+var_10]; jumptable 000000000005A37E case 251 mov rcx, [rax] add rcx, 3 mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax] movzx eax, word ptr [rax-2] mov [rbp+var_4], eax jmp short loc_5A41B loc_5A39E: mov rax, [rbp+var_10]; jumptable 000000000005A37E case 252 mov rcx, [rax] add rcx, 4 mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax] movzx eax, byte ptr [rax-3] mov rcx, [rbp+var_10] mov rcx, [rcx] movzx ecx, byte ptr [rcx-2] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_10] mov rcx, [rcx] movzx ecx, byte ptr [rcx-1] shl ecx, 10h or eax, ecx mov [rbp+var_4], eax jmp short loc_5A41B loc_5A3DC: mov rax, [rbp+var_10]; jumptable 000000000005A37E case 253 mov rcx, [rax] add rcx, 5 mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax-4] mov [rbp+var_4], eax jmp short loc_5A41B loc_5A3F9: jmp short $+2; jumptable 000000000005A37E cases 254,255 loc_5A3FB: jmp short $+2 loc_5A3FD: mov [rbp+var_4], 0 jmp short loc_5A41B def_5A37E: mov rax, [rbp+var_10]; jumptable 000000000005A37E default case mov rcx, [rax] add rcx, 1 mov [rax], rcx movzx eax, [rbp+var_11] mov [rbp+var_4], eax loc_5A41B: mov eax, [rbp+var_4] pop rbp retn
long long translog_variable_record_1group_decode_len(unsigned __int8 **a1) { unsigned __int8 v2; // [rsp+Fh] [rbp-11h] unsigned int v3; // [rsp+1Ch] [rbp-4h] v2 = **a1; switch ( v2 ) { case 0xFBu: *a1 += 3; v3 = *((unsigned __int16 *)*a1 - 1); break; case 0xFCu: *a1 += 4; v3 = (*(*a1 - 1) << 16) | *(unsigned __int16 *)(*a1 - 3); break; case 0xFDu: *a1 += 5; v3 = *((_DWORD *)*a1 - 1); break; case 0xFEu: case 0xFFu: v3 = 0; break; default: ++*a1; v3 = v2; break; } return v3; }
translog_variable_record_1group_decode_len: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x11],AL MOVZX EAX,byte ptr [RBP + -0x11] ADD EAX,0xffffff05 MOV ECX,EAX MOV qword ptr [RBP + -0x20],RCX SUB EAX,0x4 JA 0x0015a406 MOV RAX,qword ptr [RBP + -0x20] LEA RCX,[0x25a100] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_fb: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x3 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOVZX EAX,word ptr [RAX + -0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x0015a41b caseD_fc: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x4 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOVZX EAX,byte ptr [RAX + -0x3] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] MOVZX ECX,byte ptr [RCX + -0x2] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] MOVZX ECX,byte ptr [RCX + -0x1] SHL ECX,0x10 OR EAX,ECX MOV dword ptr [RBP + -0x4],EAX JMP 0x0015a41b caseD_fd: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x5 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x4],EAX JMP 0x0015a41b caseD_fe: JMP 0x0015a3fb LAB_0015a3fb: JMP 0x0015a3fd LAB_0015a3fd: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015a41b default: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOVZX EAX,byte ptr [RBP + -0x11] MOV dword ptr [RBP + -0x4],EAX LAB_0015a41b: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
uint translog_variable_record_1group_decode_len(long *param_1) { byte bVar1; uint local_c; bVar1 = *(byte *)*param_1; switch(bVar1) { case 0xfb: *param_1 = *param_1 + 3; local_c = (uint)*(ushort *)(*param_1 + -2); break; case 0xfc: *param_1 = *param_1 + 4; local_c = (uint)CONCAT12(*(int1 *)(*param_1 + -1), CONCAT11(*(int1 *)(*param_1 + -2),*(int1 *)(*param_1 + -3)) ); break; case 0xfd: *param_1 = *param_1 + 5; local_c = *(uint *)(*param_1 + -4); break; case 0xfe: case 0xff: local_c = 0; break; default: *param_1 = *param_1 + 1; local_c = (uint)bVar1; } return local_c; }
32,210
release_whole_queue
eloqsql/mysys/mf_keycache.c
static void release_whole_queue(KEYCACHE_WQUEUE *wqueue) { struct st_my_thread_var *last; struct st_my_thread_var *next; struct st_my_thread_var *thread; /* Queue may be empty. */ if (!(last= wqueue->last_thread)) return; next= last->next; /* First (oldest) element */ do { thread=next; DBUG_ASSERT(thread && thread->init == 1); KEYCACHE_DBUG_PRINT("release_whole_queue: signal", ("thread %ld", (ulong) thread->id)); /* Take thread from queue. */ next= thread->next; thread->next= NULL; /* Signal the thread. */ keycache_pthread_cond_signal(&thread->suspend); } while (thread != last); /* Now queue is definitely empty. */ wqueue->last_thread= NULL; }
O0
c
release_whole_queue: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) cmpq $0x0, %rax jne 0x73a5f jmp 0x73abc movq -0x10(%rbp), %rax movq 0x88(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) jmp 0x73a78 jmp 0x73a7a jmp 0x73a7c movq -0x20(%rbp), %rax movq 0x88(%rax), %rax movq %rax, -0x18(%rbp) movq -0x20(%rbp), %rax movq $0x0, 0x88(%rax) movq -0x20(%rbp), %rdi addq $0x8, %rdi callq 0x73c00 movq -0x20(%rbp), %rax cmpq -0x10(%rbp), %rax jne 0x73a6e movq -0x8(%rbp), %rax movq $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
release_whole_queue: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_10], rax cmp rax, 0 jnz short loc_73A5F jmp short loc_73ABC loc_73A5F: mov rax, [rbp+var_10] mov rax, [rax+88h] mov [rbp+var_18], rax loc_73A6E: mov rax, [rbp+var_18] mov [rbp+var_20], rax jmp short $+2 loc_73A78: jmp short $+2 loc_73A7A: jmp short $+2 loc_73A7C: mov rax, [rbp+var_20] mov rax, [rax+88h] mov [rbp+var_18], rax mov rax, [rbp+var_20] mov qword ptr [rax+88h], 0 mov rdi, [rbp+var_20] add rdi, 8 call inline_mysql_cond_signal_0 mov rax, [rbp+var_20] cmp rax, [rbp+var_10] jnz short loc_73A6E mov rax, [rbp+var_8] mov qword ptr [rax], 0 loc_73ABC: add rsp, 20h pop rbp retn
_QWORD * release_whole_queue(_QWORD *a1) { _QWORD *result; // rax _QWORD *v2; // [rsp+0h] [rbp-20h] _QWORD *v3; // [rsp+8h] [rbp-18h] _QWORD *v4; // [rsp+10h] [rbp-10h] result = (_QWORD *)*a1; v4 = (_QWORD *)*a1; if ( *a1 ) { v3 = (_QWORD *)v4[17]; do { v2 = v3; v3 = (_QWORD *)v3[17]; v2[17] = 0LL; inline_mysql_cond_signal_0(v2 + 1); } while ( v2 != v4 ); result = a1; *a1 = 0LL; } return result; }
release_whole_queue: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX CMP RAX,0x0 JNZ 0x00173a5f JMP 0x00173abc LAB_00173a5f: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x88] MOV qword ptr [RBP + -0x18],RAX LAB_00173a6e: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX JMP 0x00173a78 LAB_00173a78: JMP 0x00173a7a LAB_00173a7a: JMP 0x00173a7c LAB_00173a7c: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x88] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x88],0x0 MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x8 CALL 0x00173c00 MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x00173a6e MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],0x0 LAB_00173abc: ADD RSP,0x20 POP RBP RET
void release_whole_queue(long *param_1) { long lVar1; long lVar2; bool bVar3; int8 local_20; lVar1 = *param_1; if (lVar1 != 0) { local_20 = *(long *)(lVar1 + 0x88); do { lVar2 = *(long *)(local_20 + 0x88); *(int8 *)(local_20 + 0x88) = 0; inline_mysql_cond_signal(local_20 + 8); bVar3 = local_20 != lVar1; local_20 = lVar2; } while (bVar3); *param_1 = 0; } return; }
32,211
mi_keyseg_read
eloqsql/storage/myisam/mi_open.c
uchar *mi_keyseg_read(uchar *ptr, HA_KEYSEG *keyseg) { keyseg->type = *ptr++; keyseg->language = *ptr++; keyseg->null_bit = *ptr++; keyseg->bit_start = *ptr++; keyseg->language += ((uint16) (*ptr++)) << 8; keyseg->bit_length = *ptr++; keyseg->flag = mi_uint2korr(ptr); ptr +=2; keyseg->length = mi_uint2korr(ptr); ptr +=2; keyseg->start = mi_uint4korr(ptr); ptr +=4; keyseg->null_pos = mi_uint4korr(ptr); ptr +=4; keyseg->charset=0; /* Will be filled in later */ if (keyseg->null_bit) /* We adjust bit_pos if null_bit is last in the byte */ keyseg->bit_pos= (uint16)(keyseg->null_pos + (keyseg->null_bit == (1 << 7))); else { keyseg->bit_pos= (uint16)keyseg->null_pos; keyseg->null_pos= 0; } return ptr; }
O0
c
mi_keyseg_read: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb (%rax), %cl movq -0x10(%rbp), %rax movb %cl, 0x18(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movzbl (%rax), %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x16(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb (%rax), %cl movq -0x10(%rbp), %rax movb %cl, 0x19(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb (%rax), %cl movq -0x10(%rbp), %rax movb %cl, 0x1a(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movzbl (%rax), %eax movzwl %ax, %edx shll $0x8, %edx movq -0x10(%rbp), %rax movzwl 0x16(%rax), %ecx addl %edx, %ecx movw %cx, 0x16(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb (%rax), %cl movq -0x10(%rbp), %rax movb %cl, 0x1b(%rax) movq -0x8(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x8(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x12(%rax) movq -0x8(%rbp), %rax addq $0x2, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x8(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x14(%rax) movq -0x8(%rbp), %rax addq $0x2, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax movzbl 0x3(%rax), %ecx movq -0x8(%rbp), %rax movzbl 0x2(%rax), %eax shll $0x8, %eax orl %eax, %ecx movq -0x8(%rbp), %rax movzbl 0x1(%rax), %eax shll $0x10, %eax orl %eax, %ecx movq -0x8(%rbp), %rax movzbl (%rax), %eax shll $0x18, %eax orl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x8(%rbp), %rax addq $0x4, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax movzbl 0x3(%rax), %ecx movq -0x8(%rbp), %rax movzbl 0x2(%rax), %eax shll $0x8, %eax orl %eax, %ecx movq -0x8(%rbp), %rax movzbl 0x1(%rax), %eax shll $0x10, %eax orl %eax, %ecx movq -0x8(%rbp), %rax movzbl (%rax), %eax shll $0x18, %eax orl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, 0xc(%rax) movq -0x8(%rbp), %rax addq $0x4, %rax movq %rax, -0x8(%rbp) movq -0x10(%rbp), %rax movq $0x0, (%rax) movq -0x10(%rbp), %rax cmpb $0x0, 0x19(%rax) je 0x3c4f5 movq -0x10(%rbp), %rax movl 0xc(%rax), %eax movq -0x10(%rbp), %rcx movzbl 0x19(%rcx), %ecx cmpl $0x80, %ecx sete %cl andb $0x1, %cl movzbl %cl, %ecx addl %ecx, %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x10(%rax) jmp 0x3c512 movq -0x10(%rbp), %rax movl 0xc(%rax), %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x10(%rax) movq -0x10(%rbp), %rax movl $0x0, 0xc(%rax) movq -0x8(%rbp), %rax popq %rbp retq nopl (%rax,%rax)
mi_keyseg_read: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov cl, [rax] mov rax, [rbp+var_10] mov [rax+18h], cl mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx movzx eax, byte ptr [rax] mov cx, ax mov rax, [rbp+var_10] mov [rax+16h], cx mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov cl, [rax] mov rax, [rbp+var_10] mov [rax+19h], cl mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov cl, [rax] mov rax, [rbp+var_10] mov [rax+1Ah], cl mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx movzx eax, byte ptr [rax] movzx edx, ax shl edx, 8 mov rax, [rbp+var_10] movzx ecx, word ptr [rax+16h] add ecx, edx mov [rax+16h], cx mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov cl, [rax] mov rax, [rbp+var_10] mov [rax+1Bh], cl mov rax, [rbp+var_8] movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx mov cx, ax mov rax, [rbp+var_10] mov [rax+12h], cx mov rax, [rbp+var_8] add rax, 2 mov [rbp+var_8], rax mov rax, [rbp+var_8] movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx mov cx, ax mov rax, [rbp+var_10] mov [rax+14h], cx mov rax, [rbp+var_8] add rax, 2 mov [rbp+var_8], rax mov rax, [rbp+var_8] movzx ecx, byte ptr [rax+3] mov rax, [rbp+var_8] movzx eax, byte ptr [rax+2] shl eax, 8 or ecx, eax mov rax, [rbp+var_8] movzx eax, byte ptr [rax+1] shl eax, 10h or ecx, eax mov rax, [rbp+var_8] movzx eax, byte ptr [rax] shl eax, 18h or ecx, eax mov rax, [rbp+var_10] mov [rax+8], ecx mov rax, [rbp+var_8] add rax, 4 mov [rbp+var_8], rax mov rax, [rbp+var_8] movzx ecx, byte ptr [rax+3] mov rax, [rbp+var_8] movzx eax, byte ptr [rax+2] shl eax, 8 or ecx, eax mov rax, [rbp+var_8] movzx eax, byte ptr [rax+1] shl eax, 10h or ecx, eax mov rax, [rbp+var_8] movzx eax, byte ptr [rax] shl eax, 18h or ecx, eax mov rax, [rbp+var_10] mov [rax+0Ch], ecx mov rax, [rbp+var_8] add rax, 4 mov [rbp+var_8], rax mov rax, [rbp+var_10] mov qword ptr [rax], 0 mov rax, [rbp+var_10] cmp byte ptr [rax+19h], 0 jz short loc_3C4F5 mov rax, [rbp+var_10] mov eax, [rax+0Ch] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+19h] cmp ecx, 80h setz cl and cl, 1 movzx ecx, cl add eax, ecx mov cx, ax mov rax, [rbp+var_10] mov [rax+10h], cx jmp short loc_3C512 loc_3C4F5: mov rax, [rbp+var_10] mov eax, [rax+0Ch] mov cx, ax mov rax, [rbp+var_10] mov [rax+10h], cx mov rax, [rbp+var_10] mov dword ptr [rax+0Ch], 0 loc_3C512: mov rax, [rbp+var_8] pop rbp retn
long long mi_keyseg_read(long long a1, long long a2) { *(_BYTE *)(a2 + 24) = *(_BYTE *)a1; *(_WORD *)(a2 + 22) = *(unsigned __int8 *)(a1 + 1); *(_BYTE *)(a2 + 25) = *(_BYTE *)(a1 + 2); *(_BYTE *)(a2 + 26) = *(_BYTE *)(a1 + 3); *(_WORD *)(a2 + 22) += *(unsigned __int8 *)(a1 + 4) << 8; *(_BYTE *)(a2 + 27) = *(_BYTE *)(a1 + 5); *(_WORD *)(a2 + 18) = _byteswap_ushort(*(_WORD *)(a1 + 6)); *(_WORD *)(a2 + 20) = _byteswap_ushort(*(_WORD *)(a1 + 8)); *(_DWORD *)(a2 + 8) = _byteswap_ulong(*(_DWORD *)(a1 + 10)); *(_DWORD *)(a2 + 12) = _byteswap_ulong(*(_DWORD *)(a1 + 14)); *(_QWORD *)a2 = 0LL; if ( *(_BYTE *)(a2 + 25) ) { *(_WORD *)(a2 + 16) = (*(unsigned __int8 *)(a2 + 25) == 128) + (unsigned __int16)*(_DWORD *)(a2 + 12); } else { *(_WORD *)(a2 + 16) = *(_DWORD *)(a2 + 12); *(_DWORD *)(a2 + 12) = 0; } return a1 + 18; }
mi_keyseg_read: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x18],CL MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOVZX EAX,byte ptr [RAX] MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x16],CX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x19],CL MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1a],CL MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOVZX EAX,byte ptr [RAX] MOVZX EDX,AX SHL EDX,0x8 MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RAX + 0x16] ADD ECX,EDX MOV word ptr [RAX + 0x16],CX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1b],CL MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x12],CX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x2 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x14],CX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x2 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RAX + 0x3] MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x2] SHL EAX,0x8 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x1] SHL EAX,0x10 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX] SHL EAX,0x18 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x4 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RAX + 0x3] MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x2] SHL EAX,0x8 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x1] SHL EAX,0x10 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX] SHL EAX,0x18 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xc],ECX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x4 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x19],0x0 JZ 0x0013c4f5 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x19] CMP ECX,0x80 SETZ CL AND CL,0x1 MOVZX ECX,CL ADD EAX,ECX MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x10],CX JMP 0x0013c512 LAB_0013c4f5: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc] MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x10],CX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xc],0x0 LAB_0013c512: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
int1 * mi_keyseg_read(int1 *param_1,int8 *param_2) { *(int1 *)(param_2 + 3) = *param_1; *(ushort *)((long)param_2 + 0x16) = (ushort)(byte)param_1[1]; *(int1 *)((long)param_2 + 0x19) = param_1[2]; *(int1 *)((long)param_2 + 0x1a) = param_1[3]; *(ushort *)((long)param_2 + 0x16) = *(short *)((long)param_2 + 0x16) + (ushort)(byte)param_1[4] * 0x100; *(int1 *)((long)param_2 + 0x1b) = param_1[5]; *(ushort *)((long)param_2 + 0x12) = CONCAT11(param_1[6],param_1[7]); *(ushort *)((long)param_2 + 0x14) = CONCAT11(param_1[8],param_1[9]); *(uint *)(param_2 + 1) = CONCAT13(param_1[10],CONCAT12(param_1[0xb],CONCAT11(param_1[0xc],param_1[0xd]))); *(uint *)((long)param_2 + 0xc) = CONCAT13(param_1[0xe],CONCAT12(param_1[0xf],CONCAT11(param_1[0x10],param_1[0x11]))); *param_2 = 0; if (*(char *)((long)param_2 + 0x19) == '\0') { *(short *)(param_2 + 2) = (short)*(int4 *)((long)param_2 + 0xc); *(int4 *)((long)param_2 + 0xc) = 0; } else { *(ushort *)(param_2 + 2) = (short)*(int4 *)((long)param_2 + 0xc) + (ushort)(*(char *)((long)param_2 + 0x19) == -0x80); } return param_1 + 0x12; }
32,212
inline_mysql_file_open
eloqsql/include/mysql/psi/mysql_file.h
static inline File inline_mysql_file_open( #ifdef HAVE_PSI_FILE_INTERFACE PSI_file_key key, const char *src_file, uint src_line, #endif const char *filename, int flags, myf myFlags) { File file; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_OPEN, filename, &locker); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line); file= my_open(filename, flags, myFlags); PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file); return file; } #endif file= my_open(filename, flags, myFlags); return file; }
O3
c
inline_mysql_file_open: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r8, %rbx movl %ecx, %r14d movq %rdx, %r15 movl %esi, %r12d movl %edi, %esi leaq 0x2fe4a4(%rip), %rax # 0x3368c8 movq (%rax), %rax leaq -0x78(%rbp), %rdi leaq -0x30(%rbp), %r13 movl $0x2, %edx movq %r15, %rcx movq %r13, %r8 callq *0x148(%rax) movq %rax, (%r13) testq %rax, %rax jne 0x3846a movq %r15, %rdi movl %r14d, %esi movq %rbx, %rdx callq 0x5d660 movl %eax, %ebx movl %ebx, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2fe457(%rip), %r13 # 0x3368c8 movq (%r13), %rcx leaq 0x5d405(%rip), %rsi # 0x95881 movq %rax, %rdi movl %r12d, %edx callq *0x1f0(%rcx) movq %r15, %rdi movl %r14d, %esi movq %rbx, %rdx callq 0x5d660 movl %eax, %ebx movq (%r13), %rax movq -0x30(%rbp), %rdi movl %ebx, %esi callq *0x200(%rax) jmp 0x38459
inline_mysql_file_open: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov rbx, r8 mov r14d, ecx mov r15, rdx mov r12d, esi mov esi, edi lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_78] lea r13, [rbp+var_30] mov edx, 2 mov rcx, r15 mov r8, r13 call qword ptr [rax+148h] mov [r13+0], rax test rax, rax jnz short loc_3846A mov rdi, r15 mov esi, r14d mov rdx, rbx call my_open mov ebx, eax loc_38459: mov eax, ebx add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3846A: lea r13, PSI_server mov rcx, [r13+0] lea rsi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rax mov edx, r12d call qword ptr [rcx+1F0h] mov rdi, r15 mov esi, r14d mov rdx, rbx call my_open mov ebx, eax mov rax, [r13+0] mov rdi, [rbp+var_30] mov esi, ebx call qword ptr [rax+200h] jmp short loc_38459
long long inline_mysql_file_open(unsigned int a1, unsigned int a2, long long a3, unsigned int a4, long long a5) { long long v8; // rax _BYTE v10[72]; // [rsp+8h] [rbp-78h] BYREF long long v11[6]; // [rsp+50h] [rbp-30h] BYREF v8 = (*((long long ( **)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server + 41))( v10, a1, 2LL, a3, v11); v11[0] = v8; if ( v8 ) { (*((void ( **)(long long, const char *, _QWORD))PSI_server + 62))( v8, "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c", a2); a5 = (unsigned int)my_open(a3, a4, a5); (*((void ( **)(long long, long long))PSI_server + 64))(v11[0], a5); } else { LODWORD(a5) = my_open(a3, a4, a5); } return (unsigned int)a5; }
inline_mysql_file_open: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV RBX,R8 MOV R14D,ECX MOV R15,RDX MOV R12D,ESI MOV ESI,EDI LEA RAX,[0x4368c8] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x78] LEA R13,[RBP + -0x30] MOV EDX,0x2 MOV RCX,R15 MOV R8,R13 CALL qword ptr [RAX + 0x148] MOV qword ptr [R13],RAX TEST RAX,RAX JNZ 0x0013846a MOV RDI,R15 MOV ESI,R14D MOV RDX,RBX CALL 0x0015d660 MOV EBX,EAX LAB_00138459: MOV EAX,EBX ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013846a: LEA R13,[0x4368c8] MOV RCX,qword ptr [R13] LEA RSI,[0x195881] MOV RDI,RAX MOV EDX,R12D CALL qword ptr [RCX + 0x1f0] MOV RDI,R15 MOV ESI,R14D MOV RDX,RBX CALL 0x0015d660 MOV EBX,EAX MOV RAX,qword ptr [R13] MOV RDI,qword ptr [RBP + -0x30] MOV ESI,EBX CALL qword ptr [RAX + 0x200] JMP 0x00138459
int4 inline_mysql_file_open (int4 param_1,int4 param_2,int8 param_3,int4 param_4, int8 param_5) { int4 uVar1; int1 local_80 [72]; long local_38; local_38 = (**(code **)(PSI_server + 0x148))(local_80,param_1,2,param_3,&local_38); if (local_38 == 0) { uVar1 = my_open(param_3,param_4,param_5); } else { (**(code **)(PSI_server + 0x1f0)) (local_38,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",param_2) ; uVar1 = my_open(param_3,param_4,param_5); (**(code **)(PSI_server + 0x200))(local_38,uVar1); } return uVar1; }
32,213
mysql_ping_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_ping_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_ping, (parms->mysql), parms->mysql, int, r_int) }
O3
c
mysql_ping_start_internal: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rdi movq 0x480(%rdi), %rax movq 0x28(%rax), %rbx callq 0x1ece9 movl %eax, 0x8(%rbx) movl $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
mysql_ping_start_internal: push rbp mov rbp, rsp push rbx push rax mov rdi, [rdi] mov rax, [rdi+480h] mov rbx, [rax+28h] call mysql_ping mov [rbx+8], eax mov dword ptr [rbx], 0 add rsp, 8 pop rbx pop rbp retn
long long mysql_ping_start_internal(long long *a1) { long long v1; // rdi _DWORD *v2; // rbx long long result; // rax v1 = *a1; v2 = *(_DWORD **)(*(_QWORD *)(v1 + 1152) + 40LL); result = mysql_ping(v1); v2[2] = result; *v2 = 0; return result; }
mysql_ping_start_internal: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI + 0x480] MOV RBX,qword ptr [RAX + 0x28] CALL 0x0011ece9 MOV dword ptr [RBX + 0x8],EAX MOV dword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP RBP RET
void mysql_ping_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_ping(); puVar1[2] = uVar2; *puVar1 = 0; return; }
32,214
TestLogSinkWaitTillSent()
ng-log[P]ng-log/src/logging_unittest.cc
static void TestLogSinkWaitTillSent() { // Clear global_messages here to make sure that this test case can be // reentered global_messages.clear(); { using namespace std::chrono_literals; TestWaitingLogSink sink; // Sleeps give the sink threads time to do all their work, // so that we get a reliable log capture to compare to the golden file. LOG(INFO) << "Message 1"; std::this_thread::sleep_for(60ms); LOG(ERROR) << "Message 2"; std::this_thread::sleep_for(60ms); LOG(WARNING) << "Message 3"; std::this_thread::sleep_for(60ms); } for (auto& global_message : global_messages) { LOG(INFO) << "Sink capture: " << global_message; } CHECK_EQ(global_messages.size(), 3UL); }
O1
cpp
TestLogSinkWaitTillSent(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x108, %rsp # imm = 0x108 leaq 0x35f66(%rip), %rdi # 0x46c88 callq 0x18700 leaq 0x70(%rsp), %rdi callq 0x188ee leaq 0x213bf(%rip), %rsi # 0x320f7 leaq 0x10(%rsp), %rdi movl $0x566, %edx # imm = 0x566 callq 0x1ad98 leaq 0x10(%rsp), %rdi callq 0x1ad8e leaq 0x23652(%rip), %rsi # 0x343aa movl $0x9, %edx movq %rax, %rdi callq 0x8720 leaq 0x10(%rsp), %rdi callq 0x1b1b4 leaq 0x10(%rsp), %rbx movq $0x0, (%rbx) movq $0x3938700, 0x8(%rbx) # imm = 0x3938700 movq %rbx, %rdi movq %rbx, %rsi callq 0x8180 cmpl $-0x1, %eax jne 0x10d9d callq 0x8060 cmpl $0x4, (%rax) je 0x10d83 leaq 0x21353(%rip), %rsi # 0x320f7 leaq 0x10(%rsp), %rdi movl $0x568, %edx # imm = 0x568 movl $0x2, %ecx callq 0x1add4 leaq 0x10(%rsp), %rdi callq 0x1ad8e leaq 0x235eb(%rip), %rsi # 0x343b4 movl $0x9, %edx movq %rax, %rdi callq 0x8720 leaq 0x10(%rsp), %rdi callq 0x1b1b4 leaq 0x10(%rsp), %rbx movq $0x0, (%rbx) movq $0x3938700, 0x8(%rbx) # imm = 0x3938700 movq %rbx, %rdi movq %rbx, %rsi callq 0x8180 cmpl $-0x1, %eax jne 0x10e0e callq 0x8060 cmpl $0x4, (%rax) je 0x10df4 leaq 0x212e2(%rip), %rsi # 0x320f7 leaq 0x10(%rsp), %rdi movl $0x56a, %edx # imm = 0x56A movl $0x1, %ecx callq 0x1add4 leaq 0x10(%rsp), %rdi callq 0x1ad8e leaq 0x23584(%rip), %rsi # 0x343be movl $0x9, %edx movq %rax, %rdi callq 0x8720 leaq 0x10(%rsp), %rdi callq 0x1b1b4 leaq 0x10(%rsp), %rbx movq $0x0, (%rbx) movq $0x3938700, 0x8(%rbx) # imm = 0x3938700 movq %rbx, %rdi movq %rbx, %rsi callq 0x8180 cmpl $-0x1, %eax jne 0x10e7f callq 0x8060 cmpl $0x4, (%rax) je 0x10e65 leaq 0x70(%rsp), %rdi callq 0x1894c movq 0x35df8(%rip), %r13 # 0x46c88 movq 0x35df9(%rip), %rbp # 0x46c90 cmpq %rbp, %r13 je 0x10efb leaq 0x21254(%rip), %rbx # 0x320f7 leaq 0x70(%rsp), %r14 leaq 0x23519(%rip), %r15 # 0x343c8 movq %r14, %rdi movq %rbx, %rsi movl $0x56e, %edx # imm = 0x56E callq 0x1ad98 movq %r14, %rdi callq 0x1ad8e movq %rax, %r12 movl $0xe, %edx movq %rax, %rdi movq %r15, %rsi callq 0x8720 movq (%r13), %rsi movq 0x8(%r13), %rdx movq %r12, %rdi callq 0x8720 movq %r14, %rdi callq 0x1b1b4 addq $0x20, %r13 cmpq %rbp, %r13 jne 0x10eaf movq 0x35d8e(%rip), %rax # 0x46c90 subq 0x35d7f(%rip), %rax # 0x46c88 movq %rax, %rcx sarq $0x5, %rcx movq %rcx, 0x70(%rsp) movq $0x3, 0x8(%rsp) cmpq $0x60, %rax jne 0x10f47 movq $0x0, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) jne 0x10f64 addq $0x108, %rsp # imm = 0x108 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x23489(%rip), %rcx # 0x343d7 leaq 0x10(%rsp), %rdi leaq 0x70(%rsp), %rsi leaq 0x8(%rsp), %rdx callq 0x17da9 jmp 0x10f2d movq 0x10(%rsp), %rax xorl %edx, %edx movq %rdx, 0x10(%rsp) leaq 0x8(%rsp), %rcx movq %rax, (%rcx) movq %rdx, (%rsp) leaq 0x21174(%rip), %rsi # 0x320f7 leaq 0x70(%rsp), %rdi movl $0x570, %edx # imm = 0x570 callq 0x1e65a leaq 0x70(%rsp), %rdi callq 0x1ad8e leaq 0x70(%rsp), %rdi callq 0x1e660 leaq 0x70(%rsp), %rdi callq 0x1e660 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x16b14 movq (%rsp), %rsi testq %rsi, %rsi je 0x10fce movq %rsp, %rdi callq 0x19bb8 movq $0x0, (%rsp) movq 0x10(%rsp), %rsi testq %rsi, %rsi je 0x1103f leaq 0x10(%rsp), %rdi callq 0x19bb8 jmp 0x1103f jmp 0x11023 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x1b1b4 jmp 0x11026 jmp 0x11023 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x1b1b4 jmp 0x11026 jmp 0x11023 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x1b1b4 jmp 0x11026 jmp 0x11023 jmp 0x11023 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x1894c jmp 0x1103f movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x1b1b4 movq %rbx, %rdi callq 0x8bb0 movq %rax, %rdi callq 0x16adb
_ZL23TestLogSinkWaitTillSentv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 108h lea rdi, _ZL15global_messagesB5cxx11; global_messages call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv; std::vector<std::string>::clear(void) lea rdi, [rsp+138h+var_C8]; this call _ZN18TestWaitingLogSinkC2Ev; TestWaitingLogSink::TestWaitingLogSink(void) lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+138h+var_128]; this mov edx, 566h; int call _ZN5nglog10LogMessageC2EPKci; nglog::LogMessage::LogMessage(char const*,int) lea rdi, [rsp+138h+var_128]; this call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void) lea rsi, aMessage1; "Message 1" mov edx, 9 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rdi, [rsp+138h+var_128]; this call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage() lea rbx, [rsp+138h+var_128] mov qword ptr [rbx], 0 mov qword ptr [rbx+8], 3938700h loc_10D83: mov rdi, rbx mov rsi, rbx call _nanosleep cmp eax, 0FFFFFFFFh jnz short loc_10D9D call ___errno_location cmp dword ptr [rax], 4 jz short loc_10D83 loc_10D9D: lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+138h+var_128] mov edx, 568h mov ecx, 2 call _ZN5nglog10LogMessageC2EPKciNS_11LogSeverityE; nglog::LogMessage::LogMessage(char const*,int,nglog::LogSeverity) lea rdi, [rsp+138h+var_128]; this call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void) lea rsi, aMessage2; "Message 2" mov edx, 9 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rdi, [rsp+138h+var_128]; this call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage() lea rbx, [rsp+138h+var_128] mov qword ptr [rbx], 0 mov qword ptr [rbx+8], 3938700h loc_10DF4: mov rdi, rbx mov rsi, rbx call _nanosleep cmp eax, 0FFFFFFFFh jnz short loc_10E0E call ___errno_location cmp dword ptr [rax], 4 jz short loc_10DF4 loc_10E0E: lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+138h+var_128] mov edx, 56Ah mov ecx, 1 call _ZN5nglog10LogMessageC2EPKciNS_11LogSeverityE; nglog::LogMessage::LogMessage(char const*,int,nglog::LogSeverity) lea rdi, [rsp+138h+var_128]; this call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void) lea rsi, aMessage3; "Message 3" mov edx, 9 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rdi, [rsp+138h+var_128]; this call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage() lea rbx, [rsp+138h+var_128] mov qword ptr [rbx], 0 mov qword ptr [rbx+8], 3938700h loc_10E65: mov rdi, rbx mov rsi, rbx call _nanosleep cmp eax, 0FFFFFFFFh jnz short loc_10E7F call ___errno_location cmp dword ptr [rax], 4 jz short loc_10E65 loc_10E7F: lea rdi, [rsp+138h+var_C8]; this call _ZN18TestWaitingLogSinkD2Ev; TestWaitingLogSink::~TestWaitingLogSink() mov r13, qword ptr cs:_ZL15global_messagesB5cxx11; global_messages mov rbp, qword ptr cs:_ZL15global_messagesB5cxx11+8; global_messages cmp r13, rbp jz short loc_10EFB lea rbx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea r14, [rsp+138h+var_C8] lea r15, aSinkCapture; "Sink capture: " loc_10EAF: mov rdi, r14; this mov rsi, rbx; char * mov edx, 56Eh; int call _ZN5nglog10LogMessageC2EPKci; nglog::LogMessage::LogMessage(char const*,int) mov rdi, r14; this call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void) mov r12, rax mov edx, 0Eh mov rdi, rax mov rsi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [r13+0] mov rdx, [r13+8] mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, r14; this call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage() add r13, 20h ; ' ' cmp r13, rbp jnz short loc_10EAF loc_10EFB: mov rax, qword ptr cs:_ZL15global_messagesB5cxx11+8; global_messages sub rax, qword ptr cs:_ZL15global_messagesB5cxx11; global_messages mov rcx, rax sar rcx, 5 mov [rsp+138h+var_C8], rcx mov [rsp+138h+var_130], 3 cmp rax, 60h ; '`' jnz short loc_10F47 mov [rsp+138h+var_128], 0 loc_10F2D: cmp [rsp+138h+var_128], 0 jnz short loc_10F64 add rsp, 108h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_10F47: lea rcx, aGlobalMessages; "global_messages.size() == 3UL" lea rdi, [rsp+138h+var_128] lea rsi, [rsp+138h+var_C8] lea rdx, [rsp+138h+var_130] call _ZN5nglog8internal17MakeCheckOpStringImmEESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS8_EERKT_RKT0_PKc; nglog::internal::MakeCheckOpString<ulong,ulong>(ulong const&,ulong const&,char const*) jmp short loc_10F2D loc_10F64: mov rax, [rsp+138h+var_128] xor edx, edx mov [rsp+138h+var_128], rdx lea rcx, [rsp+138h+var_130]; nglog::internal::CheckOpString * mov [rcx], rax mov [rsp+138h+var_138], rdx lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+138h+var_C8]; this mov edx, 570h; int call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&) lea rdi, [rsp+138h+var_C8]; this call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void) lea rdi, [rsp+138h+var_C8]; this call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal() lea rdi, [rsp+138h+var_C8]; this call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal() mov rbx, rax lea rdi, [rsp+138h+var_130]; this call _ZN5nglog8internal13CheckOpStringD2Ev; nglog::internal::CheckOpString::~CheckOpString() mov rsi, [rsp+138h+var_138] test rsi, rsi jz short loc_10FCE mov rdi, rsp call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_10FCE: mov [rsp+138h+var_138], 0 mov rsi, [rsp+138h+var_128] test rsi, rsi jz short loc_1103F lea rdi, [rsp+138h+var_128] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) jmp short loc_1103F jmp short loc_11023 mov rbx, rax lea rdi, [rsp+138h+var_128]; this call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage() jmp short loc_11026 jmp short loc_11023 mov rbx, rax lea rdi, [rsp+138h+var_128]; this call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage() jmp short loc_11026 jmp short loc_11023 mov rbx, rax lea rdi, [rsp+138h+var_128]; this call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage() jmp short loc_11026 jmp short loc_11023 jmp short $+2 loc_11023: mov rbx, rax loc_11026: lea rdi, [rsp+138h+var_C8]; this call _ZN18TestWaitingLogSinkD2Ev; TestWaitingLogSink::~TestWaitingLogSink() jmp short loc_1103F mov rbx, rax lea rdi, [rsp+138h+var_C8]; this call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage() loc_1103F: mov rdi, rbx call __Unwind_Resume mov rdi, rax call __clang_call_terminate
long long TestLogSinkWaitTillSent(void) { long long v0; // rax long long v1; // rax long long v2; // rax _QWORD *v3; // rbp _QWORD *i; // r13 long long v5; // r12 long long result; // rax long long v7; // rax long long v8; // [rsp+8h] [rbp-130h] BYREF long long v9; // [rsp+10h] [rbp-128h] BYREF long long v10; // [rsp+18h] [rbp-120h] _QWORD v11[25]; // [rsp+70h] [rbp-C8h] BYREF std::vector<std::string>::clear(&global_messages[abi:cxx11]); TestWaitingLogSink::TestWaitingLogSink((TestWaitingLogSink *)v11); nglog::LogMessage::LogMessage( (nglog::LogMessage *)&v9, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc", 1382); v0 = nglog::LogMessage::stream((nglog::LogMessage *)&v9); std::__ostream_insert<char,std::char_traits<char>>(v0, "Message 1", 9LL); nglog::LogMessage::~LogMessage((nglog::LogMessage *)&v9); v9 = 0LL; v10 = 60000000LL; while ( (unsigned int)nanosleep(&v9, &v9) == -1 && *(_DWORD *)__errno_location() == 4 ) ; nglog::LogMessage::LogMessage( &v9, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc", 1384LL, 2LL); v1 = nglog::LogMessage::stream((nglog::LogMessage *)&v9); std::__ostream_insert<char,std::char_traits<char>>(v1, "Message 2", 9LL); nglog::LogMessage::~LogMessage((nglog::LogMessage *)&v9); v9 = 0LL; v10 = 60000000LL; while ( (unsigned int)nanosleep(&v9, &v9) == -1 && *(_DWORD *)__errno_location() == 4 ) ; nglog::LogMessage::LogMessage( &v9, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc", 1386LL, 1LL); v2 = nglog::LogMessage::stream((nglog::LogMessage *)&v9); std::__ostream_insert<char,std::char_traits<char>>(v2, "Message 3", 9LL); nglog::LogMessage::~LogMessage((nglog::LogMessage *)&v9); v9 = 0LL; v10 = 60000000LL; while ( (unsigned int)nanosleep(&v9, &v9) == -1 && *(_DWORD *)__errno_location() == 4 ) ; TestWaitingLogSink::~TestWaitingLogSink((TestWaitingLogSink *)v11); v3 = (_QWORD *)*((_QWORD *)&global_messages[abi:cxx11] + 1); for ( i = (_QWORD *)global_messages[abi:cxx11]; i != v3; i += 4 ) { nglog::LogMessage::LogMessage( (nglog::LogMessage *)v11, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc", 1390); v5 = nglog::LogMessage::stream((nglog::LogMessage *)v11); std::__ostream_insert<char,std::char_traits<char>>(v5, "Sink capture: ", 14LL); std::__ostream_insert<char,std::char_traits<char>>(v5, *i, i[1]); nglog::LogMessage::~LogMessage((nglog::LogMessage *)v11); } result = *((_QWORD *)&global_messages[abi:cxx11] + 1) - global_messages[abi:cxx11]; v11[0] = (long long)(*((_QWORD *)&global_messages[abi:cxx11] + 1) - global_messages[abi:cxx11]) >> 5; v8 = 3LL; if ( *((_QWORD *)&global_messages[abi:cxx11] + 1) - (_QWORD)global_messages[abi:cxx11] == 96LL ) v9 = 0LL; else result = nglog::internal::MakeCheckOpString<unsigned long,unsigned long>( &v9, v11, &v8, "global_messages.size() == 3UL"); if ( v9 ) { v7 = v9; v9 = 0LL; v8 = v7; nglog::LogMessageFatal::LogMessageFatal( (nglog::LogMessageFatal *)v11, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc", 1392, (const nglog::internal::CheckOpString *)&v8); nglog::LogMessage::stream((nglog::LogMessage *)v11); nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v11); } return result; }
TestLogSinkWaitTillSent: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x108 LEA RDI,[0x146c88] CALL 0x00118700 LEA RDI,[RSP + 0x70] CALL 0x001188ee LAB_00110d31: LEA RSI,[0x1320f7] LEA RDI,[RSP + 0x10] MOV EDX,0x566 CALL 0x0011ad98 LAB_00110d47: LEA RDI,[RSP + 0x10] CALL 0x0011ad8e LEA RSI,[0x1343aa] MOV EDX,0x9 MOV RDI,RAX CALL 0x00108720 LAB_00110d65: LEA RDI,[RSP + 0x10] CALL 0x0011b1b4 LEA RBX,[RSP + 0x10] MOV qword ptr [RBX],0x0 MOV qword ptr [RBX + 0x8],0x3938700 LAB_00110d83: MOV RDI,RBX MOV RSI,RBX CALL 0x00108180 CMP EAX,-0x1 JNZ 0x00110d9d CALL 0x00108060 CMP dword ptr [RAX],0x4 JZ 0x00110d83 LAB_00110d9d: LEA RSI,[0x1320f7] LEA RDI,[RSP + 0x10] MOV EDX,0x568 MOV ECX,0x2 CALL 0x0011add4 LAB_00110db8: LEA RDI,[RSP + 0x10] CALL 0x0011ad8e LEA RSI,[0x1343b4] MOV EDX,0x9 MOV RDI,RAX CALL 0x00108720 LAB_00110dd6: LEA RDI,[RSP + 0x10] CALL 0x0011b1b4 LEA RBX,[RSP + 0x10] MOV qword ptr [RBX],0x0 MOV qword ptr [RBX + 0x8],0x3938700 LAB_00110df4: MOV RDI,RBX MOV RSI,RBX CALL 0x00108180 CMP EAX,-0x1 JNZ 0x00110e0e CALL 0x00108060 CMP dword ptr [RAX],0x4 JZ 0x00110df4 LAB_00110e0e: LEA RSI,[0x1320f7] LEA RDI,[RSP + 0x10] MOV EDX,0x56a MOV ECX,0x1 CALL 0x0011add4 LAB_00110e29: LEA RDI,[RSP + 0x10] CALL 0x0011ad8e LEA RSI,[0x1343be] MOV EDX,0x9 MOV RDI,RAX CALL 0x00108720 LAB_00110e47: LEA RDI,[RSP + 0x10] CALL 0x0011b1b4 LEA RBX,[RSP + 0x10] MOV qword ptr [RBX],0x0 MOV qword ptr [RBX + 0x8],0x3938700 LAB_00110e65: MOV RDI,RBX MOV RSI,RBX CALL 0x00108180 LAB_00110e70: CMP EAX,-0x1 JNZ 0x00110e7f CALL 0x00108060 CMP dword ptr [RAX],0x4 JZ 0x00110e65 LAB_00110e7f: LEA RDI,[RSP + 0x70] CALL 0x0011894c MOV R13,qword ptr [0x00146c88] MOV RBP,qword ptr [0x00146c90] CMP R13,RBP JZ 0x00110efb LEA RBX,[0x1320f7] LEA R14,[RSP + 0x70] LEA R15,[0x1343c8] LAB_00110eaf: MOV RDI,R14 MOV RSI,RBX MOV EDX,0x56e CALL 0x0011ad98 LAB_00110ebf: MOV RDI,R14 CALL 0x0011ad8e MOV R12,RAX MOV EDX,0xe MOV RDI,RAX MOV RSI,R15 CALL 0x00108720 MOV RSI,qword ptr [R13] MOV RDX,qword ptr [R13 + 0x8] MOV RDI,R12 CALL 0x00108720 LAB_00110eea: MOV RDI,R14 CALL 0x0011b1b4 ADD R13,0x20 CMP R13,RBP JNZ 0x00110eaf LAB_00110efb: MOV RAX,qword ptr [0x00146c90] SUB RAX,qword ptr [0x00146c88] MOV RCX,RAX SAR RCX,0x5 MOV qword ptr [RSP + 0x70],RCX MOV qword ptr [RSP + 0x8],0x3 CMP RAX,0x60 JNZ 0x00110f47 MOV qword ptr [RSP + 0x10],0x0 LAB_00110f2d: CMP qword ptr [RSP + 0x10],0x0 JNZ 0x00110f64 ADD RSP,0x108 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00110f47: LEA RCX,[0x1343d7] LEA RDI,[RSP + 0x10] LEA RSI,[RSP + 0x70] LEA RDX,[RSP + 0x8] CALL 0x00117da9 JMP 0x00110f2d LAB_00110f64: MOV RAX,qword ptr [RSP + 0x10] XOR EDX,EDX MOV qword ptr [RSP + 0x10],RDX LEA RCX,[RSP + 0x8] MOV qword ptr [RCX],RAX MOV qword ptr [RSP],RDX LAB_00110f7c: LEA RSI,[0x1320f7] LEA RDI,[RSP + 0x70] MOV EDX,0x570 CALL 0x0011e65a LAB_00110f92: LEA RDI,[RSP + 0x70] CALL 0x0011ad8e LAB_00110f9c: LEA RDI,[RSP + 0x70] CALL 0x0011e660 LAB_00110fa6: LEA RDI,[RSP + 0x70] CALL 0x0011e660 LAB_00110fb0: MOV RBX,RAX LEA RDI,[RSP + 0x8] CALL 0x00116b14 MOV RSI,qword ptr [RSP] TEST RSI,RSI JZ 0x00110fce MOV RDI,RSP CALL 0x00119bb8 LAB_00110fce: MOV qword ptr [RSP],0x0 MOV RSI,qword ptr [RSP + 0x10] TEST RSI,RSI JZ 0x0011103f LEA RDI,[RSP + 0x10] CALL 0x00119bb8 JMP 0x0011103f LAB_0011103f: MOV RDI,RBX CALL 0x00108bb0
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* TestLogSinkWaitTillSent() */ void TestLogSinkWaitTillSent(void) { int8 *puVar1; int iVar2; ostream *poVar3; int *piVar4; int8 uVar5; int8 *puVar6; string *local_138; ulong local_130; timespec local_128 [6]; ulong local_c8 [19]; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::clear ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) &global_messages_abi_cxx11_); TestWaitingLogSink::TestWaitingLogSink((TestWaitingLogSink *)local_c8); /* try { // try from 00110d31 to 00110d46 has its CatchHandler @ 0011100e */ nglog::LogMessage::LogMessage ((LogMessage *)local_128, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",0x566 ); /* try { // try from 00110d47 to 00110d64 has its CatchHandler @ 00111010 */ poVar3 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_128); std::__ostream_insert<char,std::char_traits<char>>(poVar3,"Message 1",9); /* try { // try from 00110d65 to 00110d6e has its CatchHandler @ 0011100e */ nglog::LogMessage::~LogMessage((LogMessage *)local_128); local_128[0].tv_sec = 0; local_128[0].tv_nsec = 60000000; do { /* try { // try from 00110d83 to 00110d8d has its CatchHandler @ 00111023 */ iVar2 = nanosleep(local_128,local_128); if (iVar2 != -1) break; piVar4 = __errno_location(); } while (*piVar4 == 4); /* try { // try from 00110d9d to 00110db7 has its CatchHandler @ 00110ffd */ nglog::LogMessage::LogMessage ((LogMessage *)local_128, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",0x568 ,2); /* try { // try from 00110db8 to 00110dd5 has its CatchHandler @ 00110fff */ poVar3 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_128); std::__ostream_insert<char,std::char_traits<char>>(poVar3,"Message 2",9); /* try { // try from 00110dd6 to 00110ddf has its CatchHandler @ 00110ffd */ nglog::LogMessage::~LogMessage((LogMessage *)local_128); local_128[0].tv_sec = 0; local_128[0].tv_nsec = 60000000; do { /* try { // try from 00110df4 to 00110dfe has its CatchHandler @ 00111021 */ iVar2 = nanosleep(local_128,local_128); if (iVar2 != -1) break; piVar4 = __errno_location(); } while (*piVar4 == 4); /* try { // try from 00110e0e to 00110e28 has its CatchHandler @ 00110fec */ nglog::LogMessage::LogMessage ((LogMessage *)local_128, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",0x56a ,1); /* try { // try from 00110e29 to 00110e46 has its CatchHandler @ 00110fee */ poVar3 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_128); std::__ostream_insert<char,std::char_traits<char>>(poVar3,"Message 3",9); /* try { // try from 00110e47 to 00110e50 has its CatchHandler @ 00110fec */ nglog::LogMessage::~LogMessage((LogMessage *)local_128); local_128[0].tv_sec = 0; local_128[0].tv_nsec = 60000000; do { /* try { // try from 00110e65 to 00110e6f has its CatchHandler @ 0011101f */ iVar2 = nanosleep(local_128,local_128); if (iVar2 != -1) break; piVar4 = __errno_location(); } while (*piVar4 == 4); TestWaitingLogSink::~TestWaitingLogSink((TestWaitingLogSink *)local_c8); puVar1 = DAT_00146c90; if (global_messages_abi_cxx11_ != DAT_00146c90) { puVar6 = global_messages_abi_cxx11_; do { nglog::LogMessage::LogMessage ((LogMessage *)local_c8, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc", 0x56e); /* try { // try from 00110ebf to 00110ee9 has its CatchHandler @ 00111032 */ poVar3 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_c8); std::__ostream_insert<char,std::char_traits<char>>(poVar3,"Sink capture: ",0xe); std::__ostream_insert<char,std::char_traits<char>>(poVar3,(char *)*puVar6,puVar6[1]); nglog::LogMessage::~LogMessage((LogMessage *)local_c8); puVar6 = puVar6 + 4; } while (puVar6 != puVar1); } local_c8[0] = (long)DAT_00146c90 - (long)global_messages_abi_cxx11_ >> 5; local_130 = 3; if ((long)DAT_00146c90 - (long)global_messages_abi_cxx11_ == 0x60) { local_128[0].tv_sec = 0; } else { nglog::internal::MakeCheckOpString<unsigned_long,unsigned_long> ((internal *)local_128,local_c8,&local_130,"global_messages.size() == 3UL"); } local_130 = local_128[0].tv_sec; if (local_128[0].tv_sec == 0) { return; } local_128[0].tv_sec = 0; local_138 = (string *)0x0; /* try { // try from 00110f7c to 00110f91 has its CatchHandler @ 00110fb0 */ nglog::LogMessageFatal::LogMessageFatal ((LogMessageFatal *)local_c8, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",0x570 ,(CheckOpString *)&local_130); /* try { // try from 00110f92 to 00110f9b has its CatchHandler @ 00110fa6 */ nglog::LogMessage::stream((LogMessage *)local_c8); /* try { // try from 00110f9c to 00110fa5 has its CatchHandler @ 00110fb0 */ nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_c8); /* catch() { ... } // from try @ 00110f92 with catch @ 00110fa6 try { // try from 00110fa6 to 0011103e has its CatchHandler @ 00111047 */ uVar5 = nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_c8); /* catch() { ... } // from try @ 00110f7c with catch @ 00110fb0 catch() { ... } // from try @ 00110f9c with catch @ 00110fb0 */ nglog::internal::CheckOpString::~CheckOpString((CheckOpString *)&local_130); if (local_138 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_138,local_138); } local_138 = (string *)0x0; if ((string *)local_128[0].tv_sec != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)local_128,(string *)local_128[0].tv_sec); } /* WARNING: Subroutine does not return */ _Unwind_Resume(uVar5); }
32,215
my_filename
eloqsql/mysys/my_div.c
char * my_filename(File fd) { DBUG_ENTER("my_filename"); if ((uint) fd >= (uint) my_file_limit || !my_file_info[fd].name) DBUG_RETURN((char*) "UNKNOWN"); if (fd >= 0 && my_file_info[fd].type != UNOPEN) { DBUG_RETURN(my_file_info[fd].name); } else DBUG_RETURN((char*) "UNOPENED"); /* Debug message */ }
O3
c
my_filename: pushq %rbp movq %rsp, %rbp leaq 0x2c67b5(%rip), %rcx # 0x2f9940 leaq 0x31275(%rip), %rax # 0x64407 cmpl %edi, (%rcx) jbe 0x331c7 leaq 0x2c67ab(%rip), %rcx # 0x2f9948 movq (%rcx), %rcx movslq %edi, %rdx shlq $0x4, %rdx movq (%rcx,%rdx), %rsi testq %rsi, %rsi je 0x331c7 testl %edi, %edi js 0x331c0 addq %rdx, %rcx cmpl $0x0, 0x8(%rcx) movq %rsi, %rax jne 0x331c7 leaq 0x31248(%rip), %rax # 0x6440f popq %rbp retq nopl (%rax)
my_filename: push rbp mov rbp, rsp lea rcx, my_file_limit lea rax, aUnknown_0; "UNKNOWN" cmp [rcx], edi jbe short loc_331C7 lea rcx, my_file_info mov rcx, [rcx] movsxd rdx, edi shl rdx, 4 mov rsi, [rcx+rdx] test rsi, rsi jz short loc_331C7 test edi, edi js short loc_331C0 add rcx, rdx cmp dword ptr [rcx+8], 0 mov rax, rsi jnz short loc_331C7 loc_331C0: lea rax, aUnopened; "UNOPENED" loc_331C7: pop rbp retn
const char * my_filename(int a1) { const char *result; // rax long long v2; // rdx result = "UNKNOWN"; if ( my_file_limit > (unsigned int)a1 ) { v2 = 16LL * a1; if ( *(_QWORD *)((char *)my_file_info + v2) ) { if ( a1 < 0 ) return "UNOPENED"; result = (const char *)*((_QWORD *)my_file_info + 2 * a1); if ( !*(_DWORD *)((char *)my_file_info + v2 + 8) ) return "UNOPENED"; } } return result; }
my_filename: PUSH RBP MOV RBP,RSP LEA RCX,[0x3f9940] LEA RAX,[0x164407] CMP dword ptr [RCX],EDI JBE 0x001331c7 LEA RCX,[0x3f9948] MOV RCX,qword ptr [RCX] MOVSXD RDX,EDI SHL RDX,0x4 MOV RSI,qword ptr [RCX + RDX*0x1] TEST RSI,RSI JZ 0x001331c7 TEST EDI,EDI JS 0x001331c0 ADD RCX,RDX CMP dword ptr [RCX + 0x8],0x0 MOV RAX,RSI JNZ 0x001331c7 LAB_001331c0: LEA RAX,[0x16440f] LAB_001331c7: POP RBP RET
char * my_filename(uint param_1) { char *pcVar1; pcVar1 = "UNKNOWN"; if (param_1 < my_file_limit) { if ((*(char **)(my_file_info + (long)(int)param_1 * 0x10) != (char *)0x0) && (((int)param_1 < 0 || (pcVar1 = *(char **)(my_file_info + (long)(int)param_1 * 0x10), *(int *)(my_file_info + (long)(int)param_1 * 0x10 + 8) == 0)))) { pcVar1 = "UNOPENED"; } } return pcVar1; }
32,216
fmt::v10::vformat[abi:cxx11](fmt::v10::basic_string_view<char>, fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char>>)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format-inl.h
FMT_FUNC auto vformat(string_view fmt, format_args args) -> std::string { // Don't optimize the "{}" case to keep the binary size small and because it // can be better optimized in fmt::format anyway. auto buffer = memory_buffer(); detail::vformat_to(buffer, fmt, args); return to_string(buffer); }
O0
c
fmt::v10::vformat[abi:cxx11](fmt::v10::basic_string_view<char>, fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char>>): subq $0x2a8, %rsp # imm = 0x2A8 movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x298(%rsp) movq %rsi, 0x288(%rsp) movq %rdx, 0x290(%rsp) movq %rcx, 0x278(%rsp) movq %r8, 0x280(%rsp) leaq 0x5f(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x92b00 movq 0x18(%rsp), %rsi leaq 0x60(%rsp), %rdi callq 0xa0500 jmp 0xa03ac leaq 0x5f(%rsp), %rdi callq 0x8ddb0 movq 0x288(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x290(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x278(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x280(%rsp), %rax movq %rax, 0x30(%rsp) leaq 0x20(%rsp), %rax movq %rax, 0x2a0(%rsp) movq 0x2a0(%rsp), %rax movq $0x0, (%rax) movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx movq 0x28(%rsp), %rcx movq 0x30(%rsp), %r8 movq 0x20(%rsp), %r9 leaq 0x60(%rsp), %rdi callq 0xa0560 jmp 0xa042b movq 0x8(%rsp), %rdi leaq 0x60(%rsp), %rsi callq 0xa0dd0 jmp 0xa043c leaq 0x60(%rsp), %rdi callq 0xa0ed0 movq 0x10(%rsp), %rax addq $0x2a8, %rsp # imm = 0x2A8 retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) leaq 0x5f(%rsp), %rdi callq 0x8ddb0 jmp 0xa0485 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) leaq 0x60(%rsp), %rdi callq 0xa0ed0 movq 0x50(%rsp), %rdi callq 0x92a70 nop
_ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE: sub rsp, 2A8h mov [rsp+2A8h+var_2A0], rdi mov rax, rdi mov [rsp+2A8h+var_298], rax mov [rsp+2A8h+var_10], rdi mov [rsp+2A8h+var_20], rsi mov [rsp+2A8h+var_18], rdx mov [rsp+2A8h+var_30], rcx mov [rsp+2A8h+var_28], r8 lea rdi, [rsp+2A8h+var_249] mov [rsp+2A8h+var_290], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rsi, [rsp+2A8h+var_290] lea rdi, [rsp+2A8h+var_248] call _ZN3fmt3v1019basic_memory_bufferIcLm500ESaIcEEC2ERKS2_; fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::basic_memory_buffer(std::allocator<char> const&) jmp short $+2 loc_A03AC: lea rdi, [rsp+2A8h+var_249] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rax, [rsp+2A8h+var_20] mov [rsp+2A8h+var_270], rax mov rax, [rsp+2A8h+var_18] mov [rsp+2A8h+var_268], rax mov rax, [rsp+2A8h+var_30] mov [rsp+2A8h+var_280], rax mov rax, [rsp+2A8h+var_28] mov [rsp+2A8h+var_278], rax lea rax, [rsp+2A8h+var_288] mov [rsp+2A8h+var_8], rax mov rax, [rsp+2A8h+var_8] mov qword ptr [rax], 0 mov rsi, [rsp+2A8h+var_270] mov rdx, [rsp+2A8h+var_268] mov rcx, [rsp+2A8h+var_280] mov r8, [rsp+2A8h+var_278] mov r9, [rsp+2A8h+var_288] lea rdi, [rsp+2A8h+var_248] call _ZN3fmt3v106detail10vformat_toIcEEvRNS1_6bufferIT_EENS0_17basic_string_viewIS4_EENS1_12vformat_argsIS4_E4typeENS1_10locale_refE; fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref) jmp short $+2 loc_A042B: mov rdi, [rsp+2A8h+var_2A0] lea rsi, [rsp+2A8h+var_248] call _ZN3fmt3v109to_stringIcLm500EEENSt7__cxx1112basic_stringIT_St11char_traitsIS4_ESaIS4_EEERKNS0_19basic_memory_bufferIS4_XT0_ES7_EE; fmt::v10::to_string<char,500ul>(fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>> const&) jmp short $+2 loc_A043C: lea rdi, [rsp+2A8h+var_248] call _ZN3fmt3v1019basic_memory_bufferIcLm500ESaIcEED2Ev; fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer() mov rax, [rsp+2A8h+var_298] add rsp, 2A8h retn mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax lea rdi, [rsp+arg_57] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_A0485 mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax lea rdi, [rsp+arg_58] call _ZN3fmt3v1019basic_memory_bufferIcLm500ESaIcEED2Ev; fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer() loc_A0485: mov rdi, [rsp+arg_48] call __Unwind_Resume
long long fmt::v10::vformat[abi:cxx11](long long a1, long long a2, long long a3, long long a4, long long a5) { int v5; // edx int v6; // ecx int v7; // r8d int v8; // r9d _QWORD v10[7]; // [rsp+20h] [rbp-288h] BYREF char v11; // [rsp+5Fh] [rbp-249h] BYREF _BYTE v12[536]; // [rsp+60h] [rbp-248h] BYREF long long v13; // [rsp+278h] [rbp-30h] long long v14; // [rsp+280h] [rbp-28h] long long v15; // [rsp+288h] [rbp-20h] long long v16; // [rsp+290h] [rbp-18h] long long v17; // [rsp+298h] [rbp-10h] _QWORD *v18; // [rsp+2A0h] [rbp-8h] v17 = a1; v15 = a2; v16 = a3; v13 = a4; v14 = a5; std::allocator<char>::allocator(); fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::basic_memory_buffer(v12, &v11); std::allocator<char>::~allocator(&v11); v10[3] = v15; v10[4] = v16; v10[1] = v13; v10[2] = v14; v18 = v10; v10[0] = 0LL; fmt::v10::detail::vformat_to<char>(v12, v15, v16, v13, v14, 0LL); fmt::v10::to_string<char,500ul>(a1, (unsigned int)v12, v5, v6, v7, v8); fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer(v12); return a1; }
vformat[abi:cxx11]: SUB RSP,0x2a8 MOV qword ptr [RSP + 0x8],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x298],RDI MOV qword ptr [RSP + 0x288],RSI MOV qword ptr [RSP + 0x290],RDX MOV qword ptr [RSP + 0x278],RCX MOV qword ptr [RSP + 0x280],R8 LEA RDI,[RSP + 0x5f] MOV qword ptr [RSP + 0x18],RDI CALL 0x00192b00 MOV RSI,qword ptr [RSP + 0x18] LAB_001a03a0: LEA RDI,[RSP + 0x60] CALL 0x001a0500 JMP 0x001a03ac LAB_001a03ac: LEA RDI,[RSP + 0x5f] CALL 0x0018ddb0 MOV RAX,qword ptr [RSP + 0x288] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x290] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x278] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x280] MOV qword ptr [RSP + 0x30],RAX LEA RAX,[RSP + 0x20] MOV qword ptr [RSP + 0x2a0],RAX MOV RAX,qword ptr [RSP + 0x2a0] MOV qword ptr [RAX],0x0 MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RSP + 0x28] MOV R8,qword ptr [RSP + 0x30] MOV R9,qword ptr [RSP + 0x20] LAB_001a041f: LEA RDI,[RSP + 0x60] CALL 0x001a0560 JMP 0x001a042b LAB_001a042b: MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[RSP + 0x60] CALL 0x001a0dd0 LAB_001a043a: JMP 0x001a043c LAB_001a043c: LEA RDI,[RSP + 0x60] CALL 0x001a0ed0 MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x2a8 RET
/* fmt::v10::vformat[abi:cxx11](fmt::v10::basic_string_view<char>, fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char> >) */ v10 * fmt::v10::vformat_abi_cxx11_ (v10 *param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5) { int1 local_288 [8]; int8 local_280; int8 local_278; int8 local_270; int8 local_268; allocator<char> local_249; allocator local_248 [536]; int8 local_30; int8 local_28; int8 local_20; int8 local_18; v10 *local_10; int1 *local_8; local_30 = param_4; local_28 = param_5; local_20 = param_2; local_18 = param_3; local_10 = param_1; std::allocator<char>::allocator(); /* try { // try from 001a03a0 to 001a03a9 has its CatchHandler @ 001a0453 */ basic_memory_buffer<char,500ul,std::allocator<char>>::basic_memory_buffer(local_248); std::allocator<char>::~allocator(&local_249); local_270 = local_20; local_268 = local_18; local_280 = local_30; local_278 = local_28; local_8 = local_288; /* try { // try from 001a041f to 001a0439 has its CatchHandler @ 001a046d */ detail::vformat_to<char>(local_248,local_20,local_18,local_30,local_28,0); to_string<char,500ul>(param_1,(basic_memory_buffer *)local_248); basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer ((basic_memory_buffer<char,500ul,std::allocator<char>> *)local_248); return param_1; }
32,217
testing::InitGoogleTest()
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
void InitGoogleTest() { // Since Arduino doesn't have a command line, fake out the argc/argv arguments int argc = 1; const auto arg0 = "dummy"; char* argv0 = const_cast<char*>(arg0); char** argv = &argv0; #if defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_) GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_(&argc, argv); #else // defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_) internal::InitGoogleTestImpl(&argc, argv); #endif // defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_) }
O3
cpp
testing::InitGoogleTest(): subq $0x18, %rsp leaq 0xc(%rsp), %rdi movl $0x1, (%rdi) leaq 0x148df(%rip), %rax # 0x43b3e leaq 0x10(%rsp), %rsi movq %rax, (%rsi) callq 0x35550 addq $0x18, %rsp retq
_ZN7testing14InitGoogleTestEv: sub rsp, 18h lea rdi, [rsp+18h+var_C]; this mov dword ptr [rdi], 1 lea rax, aDummy; "dummy" lea rsi, [rsp+18h+var_8]; void * mov [rsi], rax call _ZN7testing8internal18InitGoogleTestImplIcEEvPiPPT_; testing::internal::InitGoogleTestImpl<char>(int *,char **) add rsp, 18h retn
long long testing::InitGoogleTest(testing *this) { void *v2; // [rsp+0h] [rbp-18h] int v3; // [rsp+8h] [rbp-10h] _BYTE v4[4]; // [rsp+Ch] [rbp-Ch] BYREF _BYTE v5[8]; // [rsp+10h] [rbp-8h] BYREF return testing::internal::InitGoogleTestImpl<char>((testing::UnitTest *)v4, v5, v2, v3, (long long)"dummy"); }
InitGoogleTest: SUB RSP,0x18 LEA RDI,[RSP + 0xc] MOV dword ptr [RDI],0x1 LEA RAX,[0x143b3e] LEA RSI,[RSP + 0x10] MOV qword ptr [RSI],RAX CALL 0x00135550 ADD RSP,0x18 RET
/* testing::InitGoogleTest() */ void testing::InitGoogleTest(void) { int local_c; char *local_8; local_c = 1; local_8 = "dummy"; internal::InitGoogleTestImpl<char>(&local_c,&local_8); return; }
32,218
BAIL_OUT
eloqsql/unittest/mytap/tap.c
void BAIL_OUT(char const *fmt, ...) { va_list ap; va_start(ap, fmt); fprintf(tapout, "Bail out! "); vfprintf(tapout, fmt, ap); diag("%d tests planned, %d failed, %d was last executed", g_test.plan, g_test.failed, g_test.last); emit_endl(); va_end(ap); exit(255); }
O0
c
BAIL_OUT: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp testb %al, %al je 0xd9b55 movaps %xmm0, -0xa0(%rbp) movaps %xmm1, -0x90(%rbp) movaps %xmm2, -0x80(%rbp) movaps %xmm3, -0x70(%rbp) movaps %xmm4, -0x60(%rbp) movaps %xmm5, -0x50(%rbp) movaps %xmm6, -0x40(%rbp) movaps %xmm7, -0x30(%rbp) movq %r9, -0xa8(%rbp) movq %r8, -0xb0(%rbp) movq %rcx, -0xb8(%rbp) movq %rdx, -0xc0(%rbp) movq %rsi, -0xc8(%rbp) movq %rdi, -0x8(%rbp) leaq -0x20(%rbp), %rax leaq -0xd0(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x8, (%rax) movq 0x1e3429(%rip), %rax # 0x2bcfd0 movq (%rax), %rdi leaq 0x7a1c3(%rip), %rsi # 0x153d74 movb $0x0, %al callq 0x2a180 movq 0x1e3411(%rip), %rax # 0x2bcfd0 movq (%rax), %rdi movq -0x8(%rbp), %rsi leaq -0x20(%rbp), %rdx callq 0x2a7e0 movl 0xba0a3b(%rip), %esi # 0xc7a610 movl 0xba0a3d(%rip), %edx # 0xc7a618 movl 0xba0a33(%rip), %ecx # 0xc7a614 leaq 0x7a197(%rip), %rdi # 0x153d7f movb $0x0, %al callq 0xd9c10 callq 0xda500 leaq -0x20(%rbp), %rax movl $0xff, %edi callq 0x2a500 nopw %cs:(%rax,%rax)
BAIL_OUT: push rbp mov rbp, rsp sub rsp, 0D0h test al, al jz short loc_D9B55 movaps [rbp+var_A0], xmm0 movaps [rbp+var_90], xmm1 movaps [rbp+var_80], xmm2 movaps [rbp+var_70], xmm3 movaps [rbp+var_60], xmm4 movaps [rbp+var_50], xmm5 movaps [rbp+var_40], xmm6 movaps [rbp+var_30], xmm7 loc_D9B55: mov [rbp+var_A8], r9 mov [rbp+var_B0], r8 mov [rbp+var_B8], rcx mov [rbp+var_C0], rdx mov [rbp+var_C8], rsi mov [rbp+var_8], rdi lea rax, [rbp+var_20] lea rcx, [rbp+var_D0] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 8 mov rax, cs:stdout_ptr mov rdi, [rax] lea rsi, aBailOut; "Bail out! " mov al, 0 call _fprintf mov rax, cs:stdout_ptr mov rdi, [rax] mov rsi, [rbp+var_8] lea rdx, [rbp+var_20] call _vfprintf mov esi, cs:g_test mov edx, cs:dword_C7A618 mov ecx, cs:dword_C7A614 lea rdi, aDTestsPlannedD; "%d tests planned, %d failed, %d was l"... mov al, 0 call diag call emit_endl lea rax, [rbp+var_20] mov edi, 0FFh call _exit
void __noreturn BAIL_OUT( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { int v15; // r8d int v16; // r9d char v17; // [rsp+0h] [rbp-D0h] BYREF long long v18; // [rsp+8h] [rbp-C8h] long long v19; // [rsp+10h] [rbp-C0h] long long v20; // [rsp+18h] [rbp-B8h] long long v21; // [rsp+20h] [rbp-B0h] long long v22; // [rsp+28h] [rbp-A8h] __m128 v23; // [rsp+30h] [rbp-A0h] __m128 v24; // [rsp+40h] [rbp-90h] __m128 v25; // [rsp+50h] [rbp-80h] __m128 v26; // [rsp+60h] [rbp-70h] __m128 v27; // [rsp+70h] [rbp-60h] __m128 v28; // [rsp+80h] [rbp-50h] __m128 v29; // [rsp+90h] [rbp-40h] __m128 v30; // [rsp+A0h] [rbp-30h] _DWORD v31[2]; // [rsp+B0h] [rbp-20h] BYREF char *v32; // [rsp+B8h] [rbp-18h] char *v33; // [rsp+C0h] [rbp-10h] long long v34; // [rsp+C8h] [rbp-8h] v23 = a7; v24 = a8; v25 = a9; v26 = a10; v27 = a11; v28 = a12; v29 = a13; v30 = a14; v22 = a6; v21 = a5; v20 = a4; v19 = a3; v18 = a2; v34 = a1; v33 = &v17; v32 = &a15; v31[1] = 48; v31[0] = 8; fprintf(stdout, "Bail out! "); vfprintf(stdout, v34, v31); diag( (unsigned int)"%d tests planned, %d failed, %d was last executed", g_test, dword_C7A618, dword_C7A614, v15, v16); emit_endl(); exit(255LL); }
BAIL_OUT: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 TEST AL,AL JZ 0x001d9b55 MOVAPS xmmword ptr [RBP + -0xa0],XMM0 MOVAPS xmmword ptr [RBP + -0x90],XMM1 MOVAPS xmmword ptr [RBP + -0x80],XMM2 MOVAPS xmmword ptr [RBP + -0x70],XMM3 MOVAPS xmmword ptr [RBP + -0x60],XMM4 MOVAPS xmmword ptr [RBP + -0x50],XMM5 MOVAPS xmmword ptr [RBP + -0x40],XMM6 MOVAPS xmmword ptr [RBP + -0x30],XMM7 LAB_001d9b55: MOV qword ptr [RBP + -0xa8],R9 MOV qword ptr [RBP + -0xb0],R8 MOV qword ptr [RBP + -0xb8],RCX MOV qword ptr [RBP + -0xc0],RDX MOV qword ptr [RBP + -0xc8],RSI MOV qword ptr [RBP + -0x8],RDI LEA RAX,[RBP + -0x20] LEA RCX,[RBP + -0xd0] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x8 MOV RAX,qword ptr [0x003bcfd0] MOV RDI,qword ptr [RAX] LEA RSI,[0x253d74] MOV AL,0x0 CALL 0x0012a180 MOV RAX,qword ptr [0x003bcfd0] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x8] LEA RDX,[RBP + -0x20] CALL 0x0012a7e0 MOV ESI,dword ptr [0x00d7a610] MOV EDX,dword ptr [0x00d7a618] MOV ECX,dword ptr [0x00d7a614] LEA RDI,[0x253d7f] MOV AL,0x0 CALL 0x001d9c10 CALL 0x001da500 LEA RAX,[RBP + -0x20] MOV EDI,0xff CALL 0x0012a500
void BAIL_OUT(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, char *param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int1 local_d8 [8]; int8 local_d0; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_b0; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int4 local_28; int4 local_24; int1 *local_20; int1 *local_18; char *local_10; if (in_AL != '\0') { local_a8 = param_1; local_98 = param_2; local_88 = param_3; local_78 = param_4; local_68 = param_5; local_58 = param_6; local_48 = param_7; local_38 = param_8; } local_18 = local_d8; local_20 = &stack0x00000008; local_24 = 0x30; local_28 = 8; local_d0 = param_10; local_c8 = param_11; local_c0 = param_12; local_b8 = param_13; local_b0 = param_14; local_10 = param_9; fprintf(*(FILE **)PTR_stdout_003bcfd0,"Bail out! "); vfprintf(*(FILE **)PTR_stdout_003bcfd0,local_10,&local_28); diag("%d tests planned, %d failed, %d was last executed",g_test,DAT_00d7a618,DAT_00d7a614); emit_endl(); /* WARNING: Subroutine does not return */ exit(0xff); }
32,219
BAIL_OUT
eloqsql/unittest/mytap/tap.c
void BAIL_OUT(char const *fmt, ...) { va_list ap; va_start(ap, fmt); fprintf(tapout, "Bail out! "); vfprintf(tapout, fmt, ap); diag("%d tests planned, %d failed, %d was last executed", g_test.plan, g_test.failed, g_test.last); emit_endl(); va_end(ap); exit(255); }
O3
c
BAIL_OUT: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xc8, %rsp movq %rdi, %rbx leaq -0xe0(%rbp), %rdi movq %rsi, 0x8(%rdi) movq %rdx, 0x10(%rdi) movq %rcx, 0x18(%rdi) movq %r8, 0x20(%rdi) movq %r9, 0x28(%rdi) testb %al, %al je 0x9106b movaps %xmm0, -0xb0(%rbp) movaps %xmm1, -0xa0(%rbp) movaps %xmm2, -0x90(%rbp) movaps %xmm3, -0x80(%rbp) movaps %xmm4, -0x70(%rbp) movaps %xmm5, -0x60(%rbp) movaps %xmm6, -0x50(%rbp) movaps %xmm7, -0x40(%rbp) leaq -0x30(%rbp), %r14 movq %rdi, 0x10(%r14) leaq 0x10(%rbp), %rax movq %rax, 0x8(%r14) movabsq $0x3000000008, %rax # imm = 0x3000000008 movq %rax, (%r14) movq 0x2f2f19(%rip), %r15 # 0x383fa8 movq (%r15), %rdi leaq 0x4ae63(%rip), %rdx # 0xdbefc movl $0x1, %esi xorl %eax, %eax callq 0x29200 movq (%r15), %rdi movl $0x1, %esi movq %rbx, %rdx movq %r14, %rcx callq 0x29750 movl 0xb6e952(%rip), %esi # 0xbffa10 movl 0xb6e954(%rip), %edx # 0xbffa18 movl 0xb6e94a(%rip), %ecx # 0xbffa14 leaq 0x4ae36(%rip), %rdi # 0xdbf07 xorl %eax, %eax callq 0x910e7 callq 0x91ae1 movl $0xff, %edi callq 0x29540
BAIL_OUT: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 0C8h mov rbx, rdi lea rdi, [rbp+var_E0] mov [rdi+8], rsi mov [rdi+10h], rdx mov [rdi+18h], rcx mov [rdi+20h], r8 mov [rdi+28h], r9 test al, al jz short loc_9106B movaps [rbp+var_B0], xmm0 movaps [rbp+var_A0], xmm1 movaps [rbp+var_90], xmm2 movaps [rbp+var_80], xmm3 movaps [rbp+var_70], xmm4 movaps [rbp+var_60], xmm5 movaps [rbp+var_50], xmm6 movaps [rbp+var_40], xmm7 loc_9106B: lea r14, [rbp+var_30] mov [r14+10h], rdi lea rax, [rbp+arg_0] mov [r14+8], rax mov rax, 3000000008h mov [r14], rax mov r15, cs:stdout_ptr mov rdi, [r15] lea rdx, aBailOut; "Bail out! " mov esi, 1 xor eax, eax call ___fprintf_chk mov rdi, [r15] mov esi, 1 mov rdx, rbx mov rcx, r14 call ___vfprintf_chk mov esi, cs:g_test mov edx, cs:dword_BFFA18 mov ecx, cs:dword_BFFA14 lea rdi, aDTestsPlannedD; "%d tests planned, %d failed, %d was l"... xor eax, eax call diag call emit_endl mov edi, 0FFh call _exit
void __noreturn BAIL_OUT( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { int v15; // r8d int v16; // r9d char v17; // [rsp+0h] [rbp-E0h] BYREF long long v18; // [rsp+8h] [rbp-D8h] long long v19; // [rsp+10h] [rbp-D0h] long long v20; // [rsp+18h] [rbp-C8h] long long v21; // [rsp+20h] [rbp-C0h] long long v22; // [rsp+28h] [rbp-B8h] __m128 v23; // [rsp+30h] [rbp-B0h] __m128 v24; // [rsp+40h] [rbp-A0h] __m128 v25; // [rsp+50h] [rbp-90h] __m128 v26; // [rsp+60h] [rbp-80h] __m128 v27; // [rsp+70h] [rbp-70h] __m128 v28; // [rsp+80h] [rbp-60h] __m128 v29; // [rsp+90h] [rbp-50h] __m128 v30; // [rsp+A0h] [rbp-40h] _QWORD v31[6]; // [rsp+B0h] [rbp-30h] BYREF v23 = a7; v24 = a8; v25 = a9; v26 = a10; v27 = a11; v28 = a12; v29 = a13; v30 = a14; v18 = a2; v19 = a3; v20 = a4; v21 = a5; v22 = a6; v31[2] = &v17; v31[1] = &a15; v31[0] = 0x3000000008LL; __fprintf_chk(stdout, 1LL, "Bail out! "); __vfprintf_chk(stdout, 1LL, a1, v31); diag( (unsigned int)"%d tests planned, %d failed, %d was last executed", g_test, dword_BFFA18, dword_BFFA14, v15, v16); emit_endl(); exit(255LL); }
BAIL_OUT: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xc8 MOV RBX,RDI LEA RDI,[RBP + -0xe0] MOV qword ptr [RDI + 0x8],RSI MOV qword ptr [RDI + 0x10],RDX MOV qword ptr [RDI + 0x18],RCX MOV qword ptr [RDI + 0x20],R8 MOV qword ptr [RDI + 0x28],R9 TEST AL,AL JZ 0x0019106b MOVAPS xmmword ptr [RBP + -0xb0],XMM0 MOVAPS xmmword ptr [RBP + -0xa0],XMM1 MOVAPS xmmword ptr [RBP + -0x90],XMM2 MOVAPS xmmword ptr [RBP + -0x80],XMM3 MOVAPS xmmword ptr [RBP + -0x70],XMM4 MOVAPS xmmword ptr [RBP + -0x60],XMM5 MOVAPS xmmword ptr [RBP + -0x50],XMM6 MOVAPS xmmword ptr [RBP + -0x40],XMM7 LAB_0019106b: LEA R14,[RBP + -0x30] MOV qword ptr [R14 + 0x10],RDI LEA RAX,[RBP + 0x10] MOV qword ptr [R14 + 0x8],RAX MOV RAX,0x3000000008 MOV qword ptr [R14],RAX MOV R15,qword ptr [0x00483fa8] MOV RDI,qword ptr [R15] LEA RDX,[0x1dbefc] MOV ESI,0x1 XOR EAX,EAX CALL 0x00129200 MOV RDI,qword ptr [R15] MOV ESI,0x1 MOV RDX,RBX MOV RCX,R14 CALL 0x00129750 MOV ESI,dword ptr [0x00cffa10] MOV EDX,dword ptr [0x00cffa18] MOV ECX,dword ptr [0x00cffa14] LEA RDI,[0x1dbf07] XOR EAX,EAX CALL 0x001910e7 CALL 0x00191ae1 MOV EDI,0xff CALL 0x00129540
void BAIL_OUT(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { int *puVar1; char in_AL; int1 local_e8 [8]; int8 local_e0; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int1 *local_30; int1 *local_28; puVar1 = PTR_stdout_00483fa8; local_28 = local_e8; if (in_AL != '\0') { local_b8 = param_1; local_a8 = param_2; local_98 = param_3; local_88 = param_4; local_78 = param_5; local_68 = param_6; local_58 = param_7; local_48 = param_8; } local_30 = &stack0x00000008; local_38 = 0x3000000008; local_e0 = param_10; local_d8 = param_11; local_d0 = param_12; local_c8 = param_13; local_c0 = param_14; __fprintf_chk(*(int8 *)PTR_stdout_00483fa8,1,"Bail out! "); __vfprintf_chk(*(int8 *)puVar1,1,param_9,&local_38); diag("%d tests planned, %d failed, %d was last executed",g_test,DAT_00cffa18,DAT_00cffa14); emit_endl(); /* WARNING: Subroutine does not return */ exit(0xff); }
32,220
google::protobuf::internal::ExtensionSet::SetEnum(int, unsigned char, int, google::protobuf::FieldDescriptor const*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc
void ExtensionSet::SetEnum(int number, FieldType type, int value, const FieldDescriptor* descriptor) { Extension* extension; if (MaybeNewExtension(number, descriptor, &extension)) { extension->type = type; GOOGLE_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_ENUM); extension->is_repeated = false; } else { GOOGLE_DCHECK_TYPE(*extension, OPTIONAL_FIELD, ENUM); } extension->is_cleared = false; extension->enum_value = value; }
O3
cpp
google::protobuf::internal::ExtensionSet::SetEnum(int, unsigned char, int, google::protobuf::FieldDescriptor const*): pushq %rbp pushq %r14 pushq %rbx movq %r8, %r14 movl %ecx, %ebx movl %edx, %ebp callq 0xb6af0 movq %r14, 0x10(%rax) testb $0x1, %dl je 0xb4e1f movb %bpl, 0x8(%rax) movb $0x0, 0x9(%rax) andb $-0x10, 0xa(%rax) movl %ebx, (%rax) popq %rbx popq %r14 popq %rbp retq
_ZN6google8protobuf8internal12ExtensionSet7SetEnumEihiPKNS0_15FieldDescriptorE: push rbp push r14 push rbx mov r14, r8 mov ebx, ecx mov ebp, edx call _ZN6google8protobuf8internal12ExtensionSet6InsertEi; google::protobuf::internal::ExtensionSet::Insert(int) mov [rax+10h], r14 test dl, 1 jz short loc_B4E1F mov [rax+8], bpl mov byte ptr [rax+9], 0 loc_B4E1F: and byte ptr [rax+0Ah], 0F0h mov [rax], ebx pop rbx pop r14 pop rbp retn
long long google::protobuf::internal::ExtensionSet::SetEnum( google::protobuf::internal::ExtensionSet *this, int a2, char a3, int a4, const google::protobuf::FieldDescriptor *a5) { long long result; // rax char v9; // dl result = google::protobuf::internal::ExtensionSet::Insert(this, a2); *(_QWORD *)(result + 16) = a5; if ( (v9 & 1) != 0 ) { *(_BYTE *)(result + 8) = a3; *(_BYTE *)(result + 9) = 0; } *(_BYTE *)(result + 10) &= 0xF0u; *(_DWORD *)result = a4; return result; }
SetEnum: PUSH RBP PUSH R14 PUSH RBX MOV R14,R8 MOV EBX,ECX MOV EBP,EDX CALL 0x001b6af0 MOV qword ptr [RAX + 0x10],R14 TEST DL,0x1 JZ 0x001b4e1f MOV byte ptr [RAX + 0x8],BPL MOV byte ptr [RAX + 0x9],0x0 LAB_001b4e1f: AND byte ptr [RAX + 0xa],0xf0 MOV dword ptr [RAX],EBX POP RBX POP R14 POP RBP RET
/* google::protobuf::internal::ExtensionSet::SetEnum(int, unsigned char, int, google::protobuf::FieldDescriptor const*) */ void __thiscall google::protobuf::internal::ExtensionSet::SetEnum (ExtensionSet *this,int param_1,uchar param_2,int param_3,FieldDescriptor *param_4) { int *piVar1; int1 auVar2 [12]; auVar2 = Insert(this,param_1); piVar1 = auVar2._0_8_; *(FieldDescriptor **)(piVar1 + 4) = param_4; if ((auVar2 & (int1 [12])0x1) != (int1 [12])0x0) { *(uchar *)(piVar1 + 2) = param_2; *(int1 *)((long)piVar1 + 9) = 0; } *(byte *)((long)piVar1 + 10) = *(byte *)((long)piVar1 + 10) & 0xf0; *piVar1 = param_3; return; }
32,221
my_strcasecmp_utf8mb3
eloqsql/strings/ctype-utf8.c
static int my_strcasecmp_utf8mb3(CHARSET_INFO *cs, const char *s, const char *t) { MY_UNICASE_INFO *uni_plane= cs->caseinfo; while (s[0] && t[0]) { my_wc_t s_wc,t_wc; if ((uchar) s[0] < 128) { /* s[0] is between 0 and 127. It represents a single byte character. Convert it into weight according to collation. */ s_wc= my_unicase_default_page00[(uchar) s[0]].tolower; s++; } else { int res; /* Scan a multibyte character. In the future it is worth to write a special version of my_utf8mb3_uni() for 0-terminated strings which will not take in account length. Now we call the regular version of my_utf8mb3_uni() with s+3 in the last argument. s+3 is enough to scan any multibyte sequence. Calling the regular version of my_utf8mb3_uni is safe for 0-terminated strings: we will never lose the end of the string: If we have 0 character in the middle of a multibyte sequence, then my_utf8mb3_uni will always return a negative number, so the loop with finish. */ res= my_utf8mb3_uni(cs,&s_wc, (const uchar*)s, (const uchar*) s + 3); /* In the case of wrong multibyte sequence we will call strcmp() for byte-to-byte comparison. */ if (res <= 0) return strcmp(s, t); s+= res; /* Convert Unicode code into weight according to collation */ my_tolower_utf8mb3(uni_plane, &s_wc); } /* Do the same for the second string */ if ((uchar) t[0] < 128) { /* Convert single byte character into weight */ t_wc= my_unicase_default_page00[(uchar) t[0]].tolower; t++; } else { int res=my_utf8mb3_uni(cs,&t_wc, (const uchar*)t, (const uchar*) t + 3); if (res <= 0) return strcmp(s, t); t+= res; /* Convert code into weight */ my_tolower_utf8mb3(uni_plane, &t_wc); } /* Now we have two weights, let's compare them */ if ( s_wc != t_wc ) return ((int) s_wc) - ((int) t_wc); } return ((int)(uchar)s[0]) - ((int) (uchar) t[0]); }
O0
c
my_strcasecmp_utf8mb3: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x41(%rbp) je 0x6ca11 movq -0x20(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax setne %al movb %al, -0x41(%rbp) movb -0x41(%rbp), %al testb $0x1, %al jne 0x6ca1d jmp 0x6cb56 movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0x80, %eax jge 0x6ca57 movq -0x18(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx leaq 0x2fbd15(%rip), %rax # 0x368750 imulq $0xc, %rcx, %rcx addq %rcx, %rax movl 0x4(%rax), %eax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x6caac movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx movq -0x18(%rbp), %rcx addq $0x3, %rcx leaq -0x30(%rbp), %rsi callq 0x6b0a0 movl %eax, -0x3c(%rbp) cmpl $0x0, -0x3c(%rbp) jg 0x6ca8e movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x24410 movl %eax, -0x4(%rbp) jmp 0x6cb69 movl -0x3c(%rbp), %ecx movq -0x18(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x28(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x6c370 movq -0x20(%rbp), %rax movzbl (%rax), %eax cmpl $0x80, %eax jge 0x6cae6 movq -0x20(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx leaq 0x2fbc86(%rip), %rax # 0x368750 imulq $0xc, %rcx, %rcx addq %rcx, %rax movl 0x4(%rax), %eax movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) jmp 0x6cb38 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rdx movq -0x20(%rbp), %rcx addq $0x3, %rcx leaq -0x38(%rbp), %rsi callq 0x6b0a0 movl %eax, -0x40(%rbp) cmpl $0x0, -0x40(%rbp) jg 0x6cb1a movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x24410 movl %eax, -0x4(%rbp) jmp 0x6cb69 movl -0x40(%rbp), %ecx movq -0x20(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rdi leaq -0x38(%rbp), %rsi callq 0x6c370 movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax je 0x6cb51 movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subl %ecx, %eax movl %eax, -0x4(%rbp) jmp 0x6cb69 jmp 0x6c9f0 movq -0x18(%rbp), %rax movzbl (%rax), %eax movq -0x20(%rbp), %rcx movzbl (%rcx), %ecx subl %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_strcasecmp_utf8mb3: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax+78h] mov [rbp+var_28], rax loc_6C9F0: mov rax, [rbp+var_18] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_41], al jz short loc_6CA11 mov rax, [rbp+var_20] movsx eax, byte ptr [rax] cmp eax, 0 setnz al mov [rbp+var_41], al loc_6CA11: mov al, [rbp+var_41] test al, 1 jnz short loc_6CA1D jmp loc_6CB56 loc_6CA1D: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 80h jge short loc_6CA57 mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov ecx, eax lea rax, my_unicase_default_page00 imul rcx, 0Ch add rax, rcx mov eax, [rax+4] mov [rbp+var_30], rax mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_6CAAC loc_6CA57: mov rdi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_18] add rcx, 3 lea rsi, [rbp+var_30] call my_utf8mb3_uni mov [rbp+var_3C], eax cmp [rbp+var_3C], 0 jg short loc_6CA8E mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] call _strcmp mov [rbp+var_4], eax jmp loc_6CB69 loc_6CA8E: mov ecx, [rbp+var_3C] mov rax, [rbp+var_18] movsxd rcx, ecx add rax, rcx mov [rbp+var_18], rax mov rdi, [rbp+var_28] lea rsi, [rbp+var_30] call my_tolower_utf8mb3 loc_6CAAC: mov rax, [rbp+var_20] movzx eax, byte ptr [rax] cmp eax, 80h jge short loc_6CAE6 mov rax, [rbp+var_20] movzx eax, byte ptr [rax] mov ecx, eax lea rax, my_unicase_default_page00 imul rcx, 0Ch add rax, rcx mov eax, [rax+4] mov [rbp+var_38], rax mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax jmp short loc_6CB38 loc_6CAE6: mov rdi, [rbp+var_10] mov rdx, [rbp+var_20] mov rcx, [rbp+var_20] add rcx, 3 lea rsi, [rbp+var_38] call my_utf8mb3_uni mov [rbp+var_40], eax cmp [rbp+var_40], 0 jg short loc_6CB1A mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] call _strcmp mov [rbp+var_4], eax jmp short loc_6CB69 loc_6CB1A: mov ecx, [rbp+var_40] mov rax, [rbp+var_20] movsxd rcx, ecx add rax, rcx mov [rbp+var_20], rax mov rdi, [rbp+var_28] lea rsi, [rbp+var_38] call my_tolower_utf8mb3 loc_6CB38: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jz short loc_6CB51 mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub eax, ecx mov [rbp+var_4], eax jmp short loc_6CB69 loc_6CB51: jmp loc_6C9F0 loc_6CB56: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov rcx, [rbp+var_20] movzx ecx, byte ptr [rcx] sub eax, ecx mov [rbp+var_4], eax loc_6CB69: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long my_strcasecmp_utf8mb3(long long a1, _BYTE *a2, _BYTE *a3, long long a4, long long a5, long long a6) { bool v7; // [rsp+Fh] [rbp-41h] int v8; // [rsp+10h] [rbp-40h] int v9; // [rsp+14h] [rbp-3Ch] long long v10; // [rsp+18h] [rbp-38h] BYREF long long v11; // [rsp+20h] [rbp-30h] BYREF long long v12; // [rsp+28h] [rbp-28h] _BYTE *v13; // [rsp+30h] [rbp-20h] _BYTE *v14; // [rsp+38h] [rbp-18h] long long v15; // [rsp+40h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; v12 = *(_QWORD *)(a1 + 120); while ( 1 ) { v7 = 0; if ( *v14 ) v7 = *v13 != 0; if ( !v7 ) break; if ( (unsigned __int8)*v14 >= 0x80u ) { v9 = my_utf8mb3_uni(v15, (long long)&v11, (long long)v14, (long long)(v14 + 3), a5, a6); if ( v9 <= 0 ) return (unsigned int)strcmp(v14, v13); v14 += v9; my_tolower_utf8mb3(v12, &v11); } else { v11 = my_unicase_default_page00[3 * (unsigned __int8)*v14++ + 1]; } if ( (unsigned __int8)*v13 >= 0x80u ) { v8 = my_utf8mb3_uni(v15, (long long)&v10, (long long)v13, (long long)(v13 + 3), a5, a6); if ( v8 <= 0 ) return (unsigned int)strcmp(v14, v13); v13 += v8; my_tolower_utf8mb3(v12, &v10); } else { v10 = my_unicase_default_page00[3 * (unsigned __int8)*v13++ + 1]; } if ( v11 != v10 ) return (unsigned int)(v11 - v10); } return (unsigned int)((unsigned __int8)*v14 - (unsigned __int8)*v13); }
my_strcasecmp_utf8mb3: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] MOV qword ptr [RBP + -0x28],RAX LAB_0016c9f0: MOV RAX,qword ptr [RBP + -0x18] MOVSX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x41],AL JZ 0x0016ca11 MOV RAX,qword ptr [RBP + -0x20] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x41],AL LAB_0016ca11: MOV AL,byte ptr [RBP + -0x41] TEST AL,0x1 JNZ 0x0016ca1d JMP 0x0016cb56 LAB_0016ca1d: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0x80 JGE 0x0016ca57 MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x468750] IMUL RCX,RCX,0xc ADD RAX,RCX MOV EAX,dword ptr [RAX + 0x4] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0016caac LAB_0016ca57: MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x18] ADD RCX,0x3 LEA RSI,[RBP + -0x30] CALL 0x0016b0a0 MOV dword ptr [RBP + -0x3c],EAX CMP dword ptr [RBP + -0x3c],0x0 JG 0x0016ca8e MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x00124410 MOV dword ptr [RBP + -0x4],EAX JMP 0x0016cb69 LAB_0016ca8e: MOV ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x28] LEA RSI,[RBP + -0x30] CALL 0x0016c370 LAB_0016caac: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0x80 JGE 0x0016cae6 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x468750] IMUL RCX,RCX,0xc ADD RAX,RCX MOV EAX,dword ptr [RAX + 0x4] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX JMP 0x0016cb38 LAB_0016cae6: MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x20] ADD RCX,0x3 LEA RSI,[RBP + -0x38] CALL 0x0016b0a0 MOV dword ptr [RBP + -0x40],EAX CMP dword ptr [RBP + -0x40],0x0 JG 0x0016cb1a MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x00124410 MOV dword ptr [RBP + -0x4],EAX JMP 0x0016cb69 LAB_0016cb1a: MOV ECX,dword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x28] LEA RSI,[RBP + -0x38] CALL 0x0016c370 LAB_0016cb38: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JZ 0x0016cb51 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB EAX,ECX MOV dword ptr [RBP + -0x4],EAX JMP 0x0016cb69 LAB_0016cb51: JMP 0x0016c9f0 LAB_0016cb56: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RCX] SUB EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_0016cb69: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
int my_strcasecmp_utf8mb3(long param_1,byte *param_2,byte *param_3) { int iVar1; bool bVar2; ulong local_40; ulong local_38; int8 local_30; byte *local_28; byte *local_20; long local_18; local_30 = *(int8 *)(param_1 + 0x78); local_28 = param_3; local_20 = param_2; local_18 = param_1; do { bVar2 = false; if (*local_20 != 0) { bVar2 = *local_28 != 0; } if (!bVar2) { return (uint)*local_20 - (uint)*local_28; } if (*local_20 < 0x80) { local_38 = (ulong)*(uint *)(my_unicase_default_page00 + (ulong)*local_20 * 0xc + 4); local_20 = local_20 + 1; } else { iVar1 = my_utf8mb3_uni(local_18,&local_38,local_20,local_20 + 3); if (iVar1 < 1) { iVar1 = strcmp((char *)local_20,(char *)local_28); return iVar1; } local_20 = local_20 + iVar1; my_tolower_utf8mb3(local_30,&local_38); } if (*local_28 < 0x80) { local_40 = (ulong)*(uint *)(my_unicase_default_page00 + (ulong)*local_28 * 0xc + 4); local_28 = local_28 + 1; } else { iVar1 = my_utf8mb3_uni(local_18,&local_40,local_28,local_28 + 3); if (iVar1 < 1) { iVar1 = strcmp((char *)local_20,(char *)local_28); return iVar1; } local_28 = local_28 + iVar1; my_tolower_utf8mb3(local_30,&local_40); } } while (local_38 == local_40); return (int)local_38 - (int)local_40; }
32,222
JS_GetOpaque2
bluesky950520[P]quickjs/quickjs.c
void *JS_GetOpaque2(JSContext *ctx, JSValue obj, JSClassID class_id) { void *p = JS_GetOpaque(obj, class_id); if (unlikely(!p)) { JS_ThrowTypeErrorInvalidClass(ctx, class_id); } return p; }
O1
c
JS_GetOpaque2: pushq %rbx subq $0x10, %rsp movq %rsi, 0x8(%rsp) cmpl $-0x1, %edx jne 0x269c3 movq 0x8(%rsp), %rax movzwl 0x6(%rax), %edx cmpl %ecx, %edx jne 0x269c3 movq 0x30(%rax), %rbx jmp 0x269c5 xorl %ebx, %ebx testq %rbx, %rbx je 0x269d3 movq %rbx, %rax addq $0x10, %rsp popq %rbx retq movl %ecx, %esi callq 0x269dc jmp 0x269ca
JS_GetOpaque2: push rbx sub rsp, 10h mov [rsp+18h+var_10], rsi cmp edx, 0FFFFFFFFh jnz short loc_269C3 mov rax, [rsp+18h+var_10] movzx edx, word ptr [rax+6] cmp edx, ecx jnz short loc_269C3 mov rbx, [rax+30h] jmp short loc_269C5 loc_269C3: xor ebx, ebx loc_269C5: test rbx, rbx jz short loc_269D3 loc_269CA: mov rax, rbx add rsp, 10h pop rbx retn loc_269D3: mov esi, ecx call JS_ThrowTypeErrorInvalidClass jmp short loc_269CA
long long JS_GetOpaque2(long long a1, long long a2, int a3, unsigned int a4) { long long v4; // rbx if ( a3 == -1 && *(unsigned __int16 *)(a2 + 6) == a4 ) v4 = *(_QWORD *)(a2 + 48); else v4 = 0LL; if ( !v4 ) JS_ThrowTypeErrorInvalidClass(a1, a4); return v4; }
JS_GetOpaque2: PUSH RBX SUB RSP,0x10 MOV qword ptr [RSP + 0x8],RSI CMP EDX,-0x1 JNZ 0x001269c3 MOV RAX,qword ptr [RSP + 0x8] MOVZX EDX,word ptr [RAX + 0x6] CMP EDX,ECX JNZ 0x001269c3 MOV RBX,qword ptr [RAX + 0x30] JMP 0x001269c5 LAB_001269c3: XOR EBX,EBX LAB_001269c5: TEST RBX,RBX JZ 0x001269d3 LAB_001269ca: MOV RAX,RBX ADD RSP,0x10 POP RBX RET LAB_001269d3: MOV ESI,ECX CALL 0x001269dc JMP 0x001269ca
long JS_GetOpaque2(int8 param_1,long param_2,int param_3,uint param_4) { long lVar1; if (param_3 == -1) { if (*(ushort *)(param_2 + 6) == param_4) { lVar1 = *(long *)(param_2 + 0x30); goto LAB_001269c5; } } lVar1 = 0; LAB_001269c5: if (lVar1 == 0) { JS_ThrowTypeErrorInvalidClass(param_1,param_4); } return lVar1; }
32,223
tinyxml2::MemPoolT<80>::Alloc()
aimrt_mujoco_sim/_deps/tinyxml2-src/tinyxml2.h
virtual void* Alloc() { if ( !_root ) { // Need a new block. Block* block = new Block(); _blockPtrs.Push( block ); Item* blockItems = block->items; for( int i = 0; i < ITEMS_PER_BLOCK - 1; ++i ) { blockItems[i].next = &(blockItems[i + 1]); } blockItems[ITEMS_PER_BLOCK - 1].next = 0; _root = blockItems; } Item* const result = _root; TIXMLASSERT( result != 0 ); _root = _root->next; ++_currentAllocs; if ( _currentAllocs > _maxAllocs ) { _maxAllocs = _currentAllocs; } ++_nAllocs; ++_nUntracked; return result; }
O0
c
tinyxml2::MemPoolT<80>::Alloc(): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x8(%rsp) cmpq $0x0, 0x68(%rax) jne 0x5172a4 movl $0xfc0, %edi # imm = 0xFC0 callq 0x4abd0 movq %rax, %rdi movq %rdi, (%rsp) xorl %esi, %esi movl $0xfc0, %edx # imm = 0xFC0 callq 0x49430 movq (%rsp), %rax movq 0x8(%rsp), %rdi movq %rax, 0x28(%rsp) addq $0x8, %rdi movq 0x28(%rsp), %rsi callq 0x517380 movq 0x28(%rsp), %rax movq %rax, 0x20(%rsp) movl $0x0, 0x1c(%rsp) cmpl $0x23, 0x1c(%rsp) jge 0x517286 movq 0x20(%rsp), %rcx movl 0x1c(%rsp), %eax addl $0x1, %eax cltq imulq $0x70, %rax, %rax addq %rax, %rcx movq 0x20(%rsp), %rax movslq 0x1c(%rsp), %rdx imulq $0x70, %rdx, %rdx addq %rdx, %rax movq %rcx, (%rax) movl 0x1c(%rsp), %eax addl $0x1, %eax movl %eax, 0x1c(%rsp) jmp 0x517249 movq 0x8(%rsp), %rax movq 0x20(%rsp), %rcx movq $0x0, 0xf50(%rcx) movq 0x20(%rsp), %rcx movq %rcx, 0x68(%rax) movq 0x8(%rsp), %rax movq 0x68(%rax), %rax movq %rax, 0x10(%rsp) jmp 0x5172b4 movq 0x8(%rsp), %rcx movq 0x68(%rcx), %rax movq (%rax), %rax movq %rax, 0x68(%rcx) movl 0x70(%rcx), %eax addl $0x1, %eax movl %eax, 0x70(%rcx) movl 0x70(%rcx), %eax cmpl 0x78(%rcx), %eax jle 0x5172e0 movq 0x8(%rsp), %rax movl 0x70(%rax), %ecx movl %ecx, 0x78(%rax) movq 0x8(%rsp), %rax movl 0x74(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x74(%rax) movl 0x7c(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x7c(%rax) movq 0x10(%rsp), %rax addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
_ZN8tinyxml28MemPoolTILi112EE5AllocEv: sub rsp, 38h mov [rsp+38h+var_8], rdi mov rax, [rsp+38h+var_8] mov [rsp+38h+var_30], rax cmp qword ptr [rax+68h], 0 jnz loc_5172A4 mov edi, 0FC0h; unsigned __int64 call __Znwm; operator new(ulong) mov rdi, rax mov [rsp+38h+var_38], rdi xor esi, esi mov edx, 0FC0h call _memset mov rax, [rsp+38h+var_38] mov rdi, [rsp+38h+var_30] mov [rsp+38h+var_10], rax add rdi, 8 mov rsi, [rsp+38h+var_10] call _ZN8tinyxml28DynArrayIPNS_8MemPoolTILi112EE5BlockELi10EE4PushES4_; tinyxml2::DynArray<tinyxml2::MemPoolT<112>::Block *,10>::Push(tinyxml2::MemPoolT<112>::Block *) mov rax, [rsp+38h+var_10] mov [rsp+38h+var_18], rax mov [rsp+38h+var_1C], 0 loc_517249: cmp [rsp+38h+var_1C], 23h ; '#' jge short loc_517286 mov rcx, [rsp+38h+var_18] mov eax, [rsp+38h+var_1C] add eax, 1 cdqe imul rax, 70h ; 'p' add rcx, rax mov rax, [rsp+38h+var_18] movsxd rdx, [rsp+38h+var_1C] imul rdx, 70h ; 'p' add rax, rdx mov [rax], rcx mov eax, [rsp+38h+var_1C] add eax, 1 mov [rsp+38h+var_1C], eax jmp short loc_517249 loc_517286: mov rax, [rsp+38h+var_30] mov rcx, [rsp+38h+var_18] mov qword ptr [rcx+0F50h], 0 mov rcx, [rsp+38h+var_18] mov [rax+68h], rcx loc_5172A4: mov rax, [rsp+38h+var_30] mov rax, [rax+68h] mov [rsp+38h+var_28], rax jmp short $+2 loc_5172B4: mov rcx, [rsp+38h+var_30] mov rax, [rcx+68h] mov rax, [rax] mov [rcx+68h], rax mov eax, [rcx+70h] add eax, 1 mov [rcx+70h], eax mov eax, [rcx+70h] cmp eax, [rcx+78h] jle short loc_5172E0 mov rax, [rsp+38h+var_30] mov ecx, [rax+70h] mov [rax+78h], ecx loc_5172E0: mov rax, [rsp+38h+var_30] mov ecx, [rax+74h] add ecx, 1 mov [rax+74h], ecx mov ecx, [rax+7Ch] add ecx, 1 mov [rax+7Ch], ecx mov rax, [rsp+38h+var_28] add rsp, 38h retn
_QWORD * tinyxml2::MemPoolT<112>::Alloc(long long a1) { long long v2; // [rsp+0h] [rbp-38h] _QWORD *v3; // [rsp+10h] [rbp-28h] int i; // [rsp+1Ch] [rbp-1Ch] if ( !*(_QWORD *)(a1 + 104) ) { v2 = operator new(0xFC0uLL); memset(v2, 0LL, 4032LL); tinyxml2::DynArray<tinyxml2::MemPoolT<112>::Block *,10>::Push(a1 + 8, v2); for ( i = 0; i < 35; ++i ) *(_QWORD *)(112LL * i + v2) = 112LL * (i + 1) + v2; *(_QWORD *)(v2 + 3920) = 0LL; *(_QWORD *)(a1 + 104) = v2; } v3 = *(_QWORD **)(a1 + 104); *(_QWORD *)(a1 + 104) = *v3; if ( ++*(_DWORD *)(a1 + 112) > *(_DWORD *)(a1 + 120) ) *(_DWORD *)(a1 + 120) = *(_DWORD *)(a1 + 112); ++*(_DWORD *)(a1 + 116); ++*(_DWORD *)(a1 + 124); return v3; }
_M_access<mj_loadXML::$_0>: PUSH RAX MOV qword ptr [RSP],RDI MOV RDI,qword ptr [RSP] CALL 0x00516fc0 POP RCX RET
/* mj_loadXML::$_0& std::_Any_data::_M_access<mj_loadXML::$_0>() */ __0 * __thiscall std::_Any_data::_M_access<mj_loadXML::__0>(_Any_data *this) { __0 *p_Var1; p_Var1 = (__0 *)_M_access(this); return p_Var1; }
32,224
tinyxml2::MemPoolT<80>::Alloc()
aimrt_mujoco_sim/_deps/tinyxml2-src/tinyxml2.h
virtual void* Alloc() { if ( !_root ) { // Need a new block. Block* block = new Block(); _blockPtrs.Push( block ); Item* blockItems = block->items; for( int i = 0; i < ITEMS_PER_BLOCK - 1; ++i ) { blockItems[i].next = &(blockItems[i + 1]); } blockItems[ITEMS_PER_BLOCK - 1].next = 0; _root = blockItems; } Item* const result = _root; TIXMLASSERT( result != 0 ); _root = _root->next; ++_currentAllocs; if ( _currentAllocs > _maxAllocs ) { _maxAllocs = _currentAllocs; } ++_nAllocs; ++_nUntracked; return result; }
O3
c
tinyxml2::MemPoolT<80>::Alloc(): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq 0x68(%rdi), %r14 testq %r14, %r14 jne 0x1bc723 movl $0xff0, %edi # imm = 0xFF0 callq 0x2e670 movq %rax, %r14 xorl %r15d, %r15d movl $0xff0, %edx # imm = 0xFF0 movq %rax, %rdi xorl %esi, %esi callq 0x2d300 leaq 0x8(%rbx), %rdi movl 0x64(%rbx), %esi incl %esi callq 0x1bc762 movq 0x8(%rbx), %rax movslq 0x64(%rbx), %rcx movq %r14, (%rax,%rcx,8) leal 0x1(%rcx), %eax movl %eax, 0x64(%rbx) movdqa 0xb10(%rip), %xmm0 # 0x1bd190 movdqa 0xe88(%rip), %xmm1 # 0x1bd510 movdqa 0xf90(%rip), %xmm2 # 0x1bd620 pshufd $0xf5, %xmm2, %xmm3 # xmm3 = xmm2[1,1,3,3] pcmpeqd %xmm4, %xmm4 movdqa 0xe4f(%rip), %xmm5 # 0x1bd4f0 movdqa %xmm0, %xmm6 pxor %xmm1, %xmm6 movdqa %xmm2, %xmm8 pcmpgtd %xmm6, %xmm8 pshufd $0xf5, %xmm6, %xmm7 # xmm7 = xmm6[1,1,3,3] pcmpeqd %xmm3, %xmm7 pand %xmm8, %xmm7 movdqa %xmm0, %xmm6 psubq %xmm4, %xmm6 movd %xmm7, %eax testb $0x1, %al je 0x1bc6e1 movq %xmm6, %rax imulq $0x78, %rax, %rax addq %r14, %rax movq %rax, (%r14,%r15) pextrw $0x4, %xmm7, %eax testb $0x1, %al je 0x1bc700 pshufd $0xee, %xmm6, %xmm6 # xmm6 = xmm6[2,3,2,3] movq %xmm6, %rax imulq $0x78, %rax, %rax addq %r14, %rax movq %rax, 0x78(%r14,%r15) paddq %xmm5, %xmm0 addq $0xf0, %r15 cmpq $0xff0, %r15 # imm = 0xFF0 jne 0x1bc6a1 movq $0x0, 0xf78(%r14) movq %r14, 0x68(%rbx) movq (%r14), %rax movq %rax, 0x68(%rbx) movl 0x70(%rbx), %ecx leal 0x1(%rcx), %eax movl %eax, 0x70(%rbx) cmpl 0x78(%rbx), %ecx jl 0x1bc73b movl %eax, 0x78(%rbx) incl 0x74(%rbx) incl 0x7c(%rbx) movq %r14, %rax popq %rbx popq %r14 popq %r15 retq
_ZN8tinyxml28MemPoolTILi120EE5AllocEv: push r15 push r14 push rbx mov rbx, rdi mov r14, [rdi+68h] test r14, r14 jnz loc_1BC723 mov edi, 0FF0h; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax xor r15d, r15d mov edx, 0FF0h mov rdi, rax xor esi, esi call _memset lea rdi, [rbx+8] mov esi, [rbx+64h] inc esi call _ZN8tinyxml28DynArrayIPNS_8MemPoolTILi120EE5BlockELi10EE14EnsureCapacityEi; tinyxml2::DynArray<tinyxml2::MemPoolT<120>::Block *,10>::EnsureCapacity(int) mov rax, [rbx+8] movsxd rcx, dword ptr [rbx+64h] mov [rax+rcx*8], r14 lea eax, [rcx+1] mov [rbx+64h], eax movdqa xmm0, cs:xmmword_1BD190 movdqa xmm1, cs:xmmword_1BD510 movdqa xmm2, cs:xmmword_1BD620 pshufd xmm3, xmm2, 0F5h pcmpeqd xmm4, xmm4 movdqa xmm5, cs:xmmword_1BD4F0 loc_1BC6A1: movdqa xmm6, xmm0 pxor xmm6, xmm1 movdqa xmm8, xmm2 pcmpgtd xmm8, xmm6 pshufd xmm7, xmm6, 0F5h pcmpeqd xmm7, xmm3 pand xmm7, xmm8 movdqa xmm6, xmm0 psubq xmm6, xmm4 movd eax, xmm7 test al, 1 jz short loc_1BC6E1 movq rax, xmm6 imul rax, 78h ; 'x' add rax, r14 mov [r14+r15], rax loc_1BC6E1: pextrw eax, xmm7, 4 test al, 1 jz short loc_1BC700 pshufd xmm6, xmm6, 0EEh movq rax, xmm6 imul rax, 78h ; 'x' add rax, r14 mov [r14+r15+78h], rax loc_1BC700: paddq xmm0, xmm5 add r15, 0F0h cmp r15, 0FF0h jnz short loc_1BC6A1 mov qword ptr [r14+0F78h], 0 mov [rbx+68h], r14 loc_1BC723: mov rax, [r14] mov [rbx+68h], rax mov ecx, [rbx+70h] lea eax, [rcx+1] mov [rbx+70h], eax cmp ecx, [rbx+78h] jl short loc_1BC73B mov [rbx+78h], eax loc_1BC73B: inc dword ptr [rbx+74h] inc dword ptr [rbx+7Ch] mov rax, r14 pop rbx pop r14 pop r15 retn
_QWORD * tinyxml2::MemPoolT<120>::Alloc(long long a1) { _QWORD *v1; // r14 long long v2; // r15 double v3; // xmm0_8 long long v4; // rcx __m128i si128; // xmm0 __m128i v6; // xmm1 __m128i v7; // xmm2 __m128i v8; // xmm3 __m128i v9; // xmm5 __m128i v10; // xmm6 __m128i v11; // xmm7 __m128i v12; // xmm6 int v13; // ecx v1 = *(_QWORD **)(a1 + 104); if ( !v1 ) { v1 = (_QWORD *)operator new(0xFF0uLL); v2 = 0LL; v3 = memset(v1, 0LL, 4080LL); tinyxml2::DynArray<tinyxml2::MemPoolT<120>::Block *,10>::EnsureCapacity( a1 + 8, (unsigned int)(*(_DWORD *)(a1 + 100) + 1), v3); v4 = *(int *)(a1 + 100); *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v4) = v1; *(_DWORD *)(a1 + 100) = v4 + 1; si128 = _mm_load_si128((const __m128i *)&xmmword_1BD190); v6 = _mm_load_si128(xmmword_1BD510); v7 = _mm_load_si128((const __m128i *)&xmmword_1BD620); v8 = _mm_shuffle_epi32(v7, 245); v9 = _mm_load_si128((const __m128i *)&xmmword_1BD4F0); do { v10 = _mm_xor_si128(si128, v6); v11 = _mm_and_si128(_mm_cmpeq_epi32(_mm_shuffle_epi32(v10, 245), v8), _mm_cmpgt_epi32(v7, v10)); v12 = _mm_sub_epi64(si128, (__m128i)-1LL); if ( (_mm_cvtsi128_si32(v11) & 1) != 0 ) v1[v2] = &v1[15 * v12.m128i_i64[0]]; if ( (_mm_extract_epi16(v11, 4) & 1) != 0 ) v1[v2 + 15] = &v1[15 * _mm_shuffle_epi32(v12, 238).m128i_u64[0]]; si128 = _mm_add_epi64(si128, v9); v2 += 30LL; } while ( v2 != 510 ); v1[495] = 0LL; *(_QWORD *)(a1 + 104) = v1; } *(_QWORD *)(a1 + 104) = *v1; v13 = *(_DWORD *)(a1 + 112); *(_DWORD *)(a1 + 112) = v13 + 1; if ( v13 >= *(_DWORD *)(a1 + 120) ) *(_DWORD *)(a1 + 120) = v13 + 1; ++*(_DWORD *)(a1 + 116); ++*(_DWORD *)(a1 + 124); return v1; }
32,225
copy_typelib
eloqsql/mysys/typelib.c
TYPELIB *copy_typelib(MEM_ROOT *root, const TYPELIB *from) { TYPELIB *to; uint i; if (!from) return NULL; if (!(to= (TYPELIB*) alloc_root(root, sizeof(TYPELIB)))) return NULL; if (!(to->type_names= (const char **) alloc_root(root, (sizeof(char *) + sizeof(int)) * (from->count + 1)))) return NULL; to->type_lengths= (unsigned int *)(to->type_names + from->count + 1); to->count= from->count; if (from->name) { if (!(to->name= strdup_root(root, from->name))) return NULL; } else to->name= NULL; for (i= 0; i < from->count; i++) { if (!(to->type_names[i]= strmake_root(root, from->type_names[i], from->type_lengths[i]))) return NULL; to->type_lengths[i]= from->type_lengths[i]; } to->type_names[to->count]= NULL; to->type_lengths[to->count]= 0; return to; }
O3
c
copy_typelib: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx testq %rsi, %rsi je 0x6d67b movq %rsi, %r14 movq %rdi, %r15 movl $0x20, %esi callq 0x67117 testq %rax, %rax je 0x6d67b movq %rax, %rbx movl (%r14), %eax incl %eax shlq $0x2, %rax leaq (%rax,%rax,2), %rsi movq %r15, %rdi callq 0x67117 movq %rax, 0x10(%rbx) testq %rax, %rax je 0x6d67b movl (%r14), %ecx leaq (%rax,%rcx,8), %rax addq $0x8, %rax movq %rax, 0x18(%rbx) movl (%r14), %eax movl %eax, (%rbx) movq 0x8(%r14), %rsi testq %rsi, %rsi je 0x6d689 movq %r15, %rdi callq 0x674b2 movq %rax, 0x8(%rbx) testq %rax, %rax jne 0x6d691 xorl %ebx, %ebx movq %rbx, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq $0x0, 0x8(%rbx) cmpl $0x0, (%r14) je 0x6d6da xorl %r12d, %r12d movq 0x10(%r14), %rax movq 0x18(%r14), %rcx movq (%rax,%r12,8), %rsi movl (%rcx,%r12,4), %edx movq %r15, %rdi callq 0x674d9 movq 0x10(%rbx), %rcx movq %rax, (%rcx,%r12,8) testq %rax, %rax je 0x6d67b movq 0x18(%r14), %rax movl (%rax,%r12,4), %eax movq 0x18(%rbx), %rcx movl %eax, (%rcx,%r12,4) incq %r12 movl (%r14), %eax cmpq %rax, %r12 jb 0x6d69a movq 0x10(%rbx), %rax movl (%rbx), %ecx movq $0x0, (%rax,%rcx,8) movq 0x18(%rbx), %rax movl (%rbx), %ecx movl $0x0, (%rax,%rcx,4) jmp 0x6d67d
copy_typelib: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx test rsi, rsi jz short loc_6D67B mov r14, rsi mov r15, rdi mov esi, 20h ; ' ' call alloc_root test rax, rax jz short loc_6D67B mov rbx, rax mov eax, [r14] inc eax shl rax, 2 lea rsi, [rax+rax*2] mov rdi, r15 call alloc_root mov [rbx+10h], rax test rax, rax jz short loc_6D67B mov ecx, [r14] lea rax, [rax+rcx*8] add rax, 8 mov [rbx+18h], rax mov eax, [r14] mov [rbx], eax mov rsi, [r14+8] test rsi, rsi jz short loc_6D689 mov rdi, r15 call strdup_root mov [rbx+8], rax test rax, rax jnz short loc_6D691 loc_6D67B: xor ebx, ebx loc_6D67D: mov rax, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_6D689: mov qword ptr [rbx+8], 0 loc_6D691: cmp dword ptr [r14], 0 jz short loc_6D6DA xor r12d, r12d loc_6D69A: mov rax, [r14+10h] mov rcx, [r14+18h] mov rsi, [rax+r12*8] mov edx, [rcx+r12*4] mov rdi, r15 call strmake_root mov rcx, [rbx+10h] mov [rcx+r12*8], rax test rax, rax jz short loc_6D67B mov rax, [r14+18h] mov eax, [rax+r12*4] mov rcx, [rbx+18h] mov [rcx+r12*4], eax inc r12 mov eax, [r14] cmp r12, rax jb short loc_6D69A loc_6D6DA: mov rax, [rbx+10h] mov ecx, [rbx] mov qword ptr [rax+rcx*8], 0 mov rax, [rbx+18h] mov ecx, [rbx] mov dword ptr [rax+rcx*4], 0 jmp short loc_6D67D
char * copy_typelib(long long a1, unsigned int *a2) { char *v3; // rax char *v4; // rbx char *v5; // rax long long v6; // rsi long long v7; // rax long long v9; // r12 char *v10; // rax if ( !a2 ) return 0LL; v3 = alloc_root(a1, 32LL); if ( !v3 ) return 0LL; v4 = v3; v5 = alloc_root(a1, 12LL * (*a2 + 1)); *((_QWORD *)v4 + 2) = v5; if ( !v5 ) return 0LL; *((_QWORD *)v4 + 3) = &v5[8 * *a2 + 8]; *(_DWORD *)v4 = *a2; v6 = *((_QWORD *)a2 + 1); if ( v6 ) { v7 = strdup_root(a1, v6); *((_QWORD *)v4 + 1) = v7; if ( !v7 ) return 0LL; } else { *((_QWORD *)v4 + 1) = 0LL; } if ( !*a2 ) { LABEL_13: *(_QWORD *)(*((_QWORD *)v4 + 2) + 8LL * *(unsigned int *)v4) = 0LL; *(_DWORD *)(*((_QWORD *)v4 + 3) + 4LL * *(unsigned int *)v4) = 0; return v4; } v9 = 0LL; while ( 1 ) { v10 = strmake_root(a1, *(_QWORD *)(*((_QWORD *)a2 + 2) + 8 * v9), *(unsigned int *)(*((_QWORD *)a2 + 3) + 4 * v9)); *(_QWORD *)(*((_QWORD *)v4 + 2) + 8 * v9) = v10; if ( !v10 ) return 0LL; *(_DWORD *)(*((_QWORD *)v4 + 3) + 4 * v9) = *(_DWORD *)(*((_QWORD *)a2 + 3) + 4 * v9); if ( ++v9 >= (unsigned long long)*a2 ) goto LABEL_13; } }
copy_typelib: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX TEST RSI,RSI JZ 0x0016d67b MOV R14,RSI MOV R15,RDI MOV ESI,0x20 CALL 0x00167117 TEST RAX,RAX JZ 0x0016d67b MOV RBX,RAX MOV EAX,dword ptr [R14] INC EAX SHL RAX,0x2 LEA RSI,[RAX + RAX*0x2] MOV RDI,R15 CALL 0x00167117 MOV qword ptr [RBX + 0x10],RAX TEST RAX,RAX JZ 0x0016d67b MOV ECX,dword ptr [R14] LEA RAX,[RAX + RCX*0x8] ADD RAX,0x8 MOV qword ptr [RBX + 0x18],RAX MOV EAX,dword ptr [R14] MOV dword ptr [RBX],EAX MOV RSI,qword ptr [R14 + 0x8] TEST RSI,RSI JZ 0x0016d689 MOV RDI,R15 CALL 0x001674b2 MOV qword ptr [RBX + 0x8],RAX TEST RAX,RAX JNZ 0x0016d691 LAB_0016d67b: XOR EBX,EBX LAB_0016d67d: MOV RAX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0016d689: MOV qword ptr [RBX + 0x8],0x0 LAB_0016d691: CMP dword ptr [R14],0x0 JZ 0x0016d6da XOR R12D,R12D LAB_0016d69a: MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [R14 + 0x18] MOV RSI,qword ptr [RAX + R12*0x8] MOV EDX,dword ptr [RCX + R12*0x4] MOV RDI,R15 CALL 0x001674d9 MOV RCX,qword ptr [RBX + 0x10] MOV qword ptr [RCX + R12*0x8],RAX TEST RAX,RAX JZ 0x0016d67b MOV RAX,qword ptr [R14 + 0x18] MOV EAX,dword ptr [RAX + R12*0x4] MOV RCX,qword ptr [RBX + 0x18] MOV dword ptr [RCX + R12*0x4],EAX INC R12 MOV EAX,dword ptr [R14] CMP R12,RAX JC 0x0016d69a LAB_0016d6da: MOV RAX,qword ptr [RBX + 0x10] MOV ECX,dword ptr [RBX] MOV qword ptr [RAX + RCX*0x8],0x0 MOV RAX,qword ptr [RBX + 0x18] MOV ECX,dword ptr [RBX] MOV dword ptr [RAX + RCX*0x4],0x0 JMP 0x0016d67d
uint * copy_typelib(int8 param_1,uint *param_2) { uint *puVar1; long lVar2; ulong uVar3; if ((param_2 != (uint *)0x0) && (puVar1 = (uint *)alloc_root(param_1,0x20), puVar1 != (uint *)0x0) ) { lVar2 = alloc_root(param_1,(ulong)(*param_2 + 1) * 0xc); *(long *)(puVar1 + 4) = lVar2; if (lVar2 != 0) { *(ulong *)(puVar1 + 6) = lVar2 + (ulong)*param_2 * 8 + 8; *puVar1 = *param_2; if (*(long *)(param_2 + 2) == 0) { puVar1[2] = 0; puVar1[3] = 0; } else { lVar2 = strdup_root(param_1); *(long *)(puVar1 + 2) = lVar2; if (lVar2 == 0) { return (uint *)0x0; } } if (*param_2 != 0) { uVar3 = 0; do { lVar2 = strmake_root(param_1,*(int8 *)(*(long *)(param_2 + 4) + uVar3 * 8), *(int4 *)(*(long *)(param_2 + 6) + uVar3 * 4)); *(long *)(*(long *)(puVar1 + 4) + uVar3 * 8) = lVar2; if (lVar2 == 0) { return (uint *)0x0; } *(int4 *)(*(long *)(puVar1 + 6) + uVar3 * 4) = *(int4 *)(*(long *)(param_2 + 6) + uVar3 * 4); uVar3 = uVar3 + 1; } while (uVar3 < *param_2); } *(int8 *)(*(long *)(puVar1 + 4) + (ulong)*puVar1 * 8) = 0; *(int4 *)(*(long *)(puVar1 + 6) + (ulong)*puVar1 * 4) = 0; return puVar1; } } return (uint *)0x0; }
32,226
start_timer
eloqsql/unittest/mytap/tap.c
static ulong start_timer(void) { #if defined(_WIN32) return clock(); #else struct tms tms_tmp; return times(&tms_tmp); #endif }
O0
c
start_timer: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp leaq -0x20(%rbp), %rdi callq 0x24520 addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
start_timer: push rbp mov rbp, rsp sub rsp, 20h lea rdi, [rbp+var_20] call _times add rsp, 20h pop rbp retn
long long start_timer() { _BYTE v1[32]; // [rsp+0h] [rbp-20h] BYREF return times(v1); }
start_timer: PUSH RBP MOV RBP,RSP SUB RSP,0x20 LEA RDI,[RBP + -0x20] CALL 0x00124520 ADD RSP,0x20 POP RBP RET
void start_timer(void) { tms local_28; times(&local_28); return; }
32,227
minja::Value::get(minja::Value const&)
monkey531[P]llama/common/minja.hpp
Value get(const Value& key) { if (array_) { if (!key.is_number_integer()) { return Value(); } auto index = key.get<int>(); return array_->at(index < 0 ? array_->size() + index : index); } else if (object_) { if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump()); auto it = object_->find(key.primitive_); if (it == object_->end()) return Value(); return it->second; } return Value(); }
O3
cpp
minja::Value::get(minja::Value const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx cmpq $0x0, 0x10(%rsi) je 0x9044a movb 0x40(%r15), %al addb $-0x5, %al cmpb $0x2, %al jae 0x904f8 movq %r15, %rdi callq 0x906fc movq 0x10(%r14), %rcx testl %eax, %eax js 0x904a7 movl %eax, %eax movq (%rcx), %rsi movq 0x8(%rcx), %rcx subq %rsi, %rcx sarq $0x4, %rcx movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD imulq %rcx, %rdx jmp 0x904c8 movq 0x20(%r14), %r13 testq %r13, %r13 je 0x904f8 cmpq $0x0, 0x10(%r15) jne 0x90557 cmpq $0x0, 0x20(%r15) jne 0x90557 cmpq $0x0, 0x30(%r15) jne 0x90557 movq (%r13), %r12 movq 0x8(%r13), %rsi cmpq %rsi, %r12 je 0x904e5 addq $0x40, %r15 movq %r12, %rdi movq %r15, %rsi callq 0x8d044 testb %al, %al jne 0x904da addq $0x60, %r12 movq 0x8(%r13), %rsi cmpq %rsi, %r12 jne 0x90489 jmp 0x904dd movq (%rcx), %rsi movq 0x8(%rcx), %rcx subq %rsi, %rcx sarq $0x4, %rcx movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD imulq %rcx, %rdx cltq addq %rdx, %rax cmpq %rax, %rdx jbe 0x90546 leaq (%rax,%rax,4), %rax shlq $0x4, %rax addq %rax, %rsi jmp 0x904ee movq %r12, %rsi movq 0x20(%r14), %rax movq 0x8(%rax), %r12 cmpq %r12, %rsi je 0x904f8 addq $0x10, %rsi movq %rbx, %rdi callq 0x8d702 jmp 0x90534 leaq 0x40(%rbx), %r14 movq $0x0, 0x48(%rbx) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movups %xmm0, 0x10(%rbx) movups %xmm0, 0x20(%rbx) movups %xmm0, 0x30(%rbx) movb $0x0, 0x40(%rbx) movq %r14, %rdi movl $0x1, %esi callq 0x586c0 movq %r14, %rdi movl $0x1, %esi callq 0x586c0 movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x5ff1f(%rip), %rdi # 0xf046c movq %rax, %rsi xorl %eax, %eax callq 0x1ad40 movl $0x10, %edi callq 0x1a450 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x86378 leaq 0x5fd7f(%rip), %rsi # 0xf02fe leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x78b0d movb $0x1, %bpl leaq 0x28(%rsp), %rsi movq %rbx, %rdi callq 0x1ae50 xorl %ebp, %ebp movq 0x9ba49(%rip), %rsi # 0x12bff0 movq 0x9b9b2(%rip), %rdx # 0x12bf60 movq %rbx, %rdi callq 0x1af40 movq %rax, %r14 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x905d4 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8d0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x905ef movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8d0 testb %bpl, %bpl jne 0x90619 jmp 0x90621 movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x90619 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8d0 jmp 0x90619 movq %rax, %r14 movq %rbx, %rdi callq 0x1a680 movq %r14, %rdi callq 0x1afc0 nop
_ZN5minja5Value3getERKS0_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r15, rdx mov r14, rsi mov rbx, rdi cmp qword ptr [rsi+10h], 0 jz short loc_9044A mov al, [r15+40h] add al, 0FBh cmp al, 2 jnb loc_904F8 mov rdi, r15 call _ZNK5minja5Value3getIiEET_v; minja::Value::get<int>(void) mov rcx, [r14+10h] test eax, eax js short loc_904A7 mov eax, eax mov rsi, [rcx] mov rcx, [rcx+8] sub rcx, rsi sar rcx, 4 mov rdx, 0CCCCCCCCCCCCCCCDh imul rdx, rcx jmp short loc_904C8 loc_9044A: mov r13, [r14+20h] test r13, r13 jz loc_904F8 cmp qword ptr [r15+10h], 0 jnz loc_90557 cmp qword ptr [r15+20h], 0 jnz loc_90557 cmp qword ptr [r15+30h], 0 jnz loc_90557 mov r12, [r13+0] mov rsi, [r13+8] cmp r12, rsi jz short loc_904E5 add r15, 40h ; '@' loc_90489: mov rdi, r12 mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) test al, al jnz short loc_904DA add r12, 60h ; '`' mov rsi, [r13+8] cmp r12, rsi jnz short loc_90489 jmp short loc_904DD loc_904A7: mov rsi, [rcx] mov rcx, [rcx+8] sub rcx, rsi sar rcx, 4 mov rdx, 0CCCCCCCCCCCCCCCDh imul rdx, rcx cdqe add rax, rdx loc_904C8: cmp rdx, rax jbe short loc_90546 lea rax, [rax+rax*4] shl rax, 4 add rsi, rax jmp short loc_904EE loc_904DA: mov rsi, r12 loc_904DD: mov rax, [r14+20h] mov r12, [rax+8] loc_904E5: cmp rsi, r12 jz short loc_904F8 add rsi, 10h; minja::Value * loc_904EE: mov rdi, rbx; this call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&) jmp short loc_90534 loc_904F8: lea r14, [rbx+40h] mov qword ptr [rbx+48h], 0 xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx+20h], xmm0 movups xmmword ptr [rbx+30h], xmm0 mov byte ptr [rbx+40h], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_90534: mov rax, rbx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_90546: lea rdi, aVectorMRangeCh; "vector::_M_range_check: __n (which is %"... mov rsi, rax xor eax, eax call __ZSt24__throw_out_of_range_fmtPKcz; std::__throw_out_of_range_fmt(char const*,...) loc_90557: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+78h+var_70] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUnashableType; "Unashable type: " lea rdi, [rsp+78h+var_50] lea rdx, [rsp+78h+var_70] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+78h+var_50] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+78h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_905D4 mov rsi, [rsp+78h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_905D4: lea rax, [rsp+78h+var_60] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_905EF mov rsi, [rsp+78h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_905EF: test bpl, bpl jnz short loc_90619 jmp short loc_90621 mov r14, rax lea rax, [rsp+78h+var_60] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_90619 mov rsi, [rsp+78h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_90619 mov r14, rax loc_90619: mov rdi, rbx; void * call ___cxa_free_exception loc_90621: mov rdi, r14 call __Unwind_Resume
minja::Value * minja::Value::get(minja::Value *this, const minja::Value *a2, long long a3, __m128d a4) { unsigned long long v5; // rax long long *v6; // rcx long long v7; // rsi unsigned long long v8; // rdx unsigned __int8 **v9; // r13 unsigned __int8 *v10; // r12 unsigned __int8 *v11; // rsi unsigned __int8 *v12; // r15 const minja::Value *v13; // rsi void *exception; // rbx _BYTE v16[16]; // [rsp+8h] [rbp-70h] BYREF _BYTE v17[16]; // [rsp+28h] [rbp-50h] BYREF if ( *((_QWORD *)a2 + 2) ) { if ( (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) < 2u ) { LODWORD(v5) = minja::Value::get<int>(a3); v6 = (long long *)*((_QWORD *)a2 + 2); if ( (v5 & 0x80000000) != 0LL ) { v7 = *v6; v8 = 0xCCCCCCCCCCCCCCCDLL * ((v6[1] - *v6) >> 4); v5 = v8 + (int)v5; } else { v5 = (unsigned int)v5; v7 = *v6; v8 = 0xCCCCCCCCCCCCCCCDLL * ((v6[1] - *v6) >> 4); } if ( v8 <= v5 ) std::__throw_out_of_range_fmt( "vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)", v5, v8); v13 = (const minja::Value *)(80 * v5 + v7); goto LABEL_21; } LABEL_22: *((_QWORD *)this + 9) = 0LL; *(_OWORD *)this = 0LL; *((_OWORD *)this + 1) = 0LL; *((_OWORD *)this + 2) = 0LL; *((_OWORD *)this + 3) = 0LL; *((_BYTE *)this + 64) = 0; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64); return this; } v9 = (unsigned __int8 **)*((_QWORD *)a2 + 4); if ( !v9 ) goto LABEL_22; if ( *(_QWORD *)(a3 + 16) || *(_QWORD *)(a3 + 32) || *(_QWORD *)(a3 + 48) ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v16, (long long)a2, 0xFFFFFFFF, 0); std::operator+<char>((long long)v17, (long long)"Unashable type: ", (long long)v16); std::runtime_error::runtime_error(exception, v17); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v10 = *v9; v11 = v9[1]; if ( *v9 != v11 ) { v12 = (unsigned __int8 *)(a3 + 64); while ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v10, v12, a4) ) { v10 += 96; v11 = v9[1]; if ( v10 == v11 ) goto LABEL_18; } v11 = v10; LABEL_18: v10 = *(unsigned __int8 **)(*((_QWORD *)a2 + 4) + 8LL); } if ( v11 == v10 ) goto LABEL_22; v13 = (const minja::Value *)(v11 + 16); LABEL_21: minja::Value::Value(this, v13); return this; }
get: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R15,RDX MOV R14,RSI MOV RBX,RDI CMP qword ptr [RSI + 0x10],0x0 JZ 0x0019044a MOV AL,byte ptr [R15 + 0x40] ADD AL,0xfb CMP AL,0x2 JNC 0x001904f8 MOV RDI,R15 CALL 0x001906fc MOV RCX,qword ptr [R14 + 0x10] TEST EAX,EAX JS 0x001904a7 MOV EAX,EAX MOV RSI,qword ptr [RCX] MOV RCX,qword ptr [RCX + 0x8] SUB RCX,RSI SAR RCX,0x4 MOV RDX,-0x3333333333333333 IMUL RDX,RCX JMP 0x001904c8 LAB_0019044a: MOV R13,qword ptr [R14 + 0x20] TEST R13,R13 JZ 0x001904f8 CMP qword ptr [R15 + 0x10],0x0 JNZ 0x00190557 CMP qword ptr [R15 + 0x20],0x0 JNZ 0x00190557 CMP qword ptr [R15 + 0x30],0x0 JNZ 0x00190557 MOV R12,qword ptr [R13] MOV RSI,qword ptr [R13 + 0x8] CMP R12,RSI JZ 0x001904e5 ADD R15,0x40 LAB_00190489: MOV RDI,R12 MOV RSI,R15 CALL 0x0018d044 TEST AL,AL JNZ 0x001904da ADD R12,0x60 MOV RSI,qword ptr [R13 + 0x8] CMP R12,RSI JNZ 0x00190489 JMP 0x001904dd LAB_001904a7: MOV RSI,qword ptr [RCX] MOV RCX,qword ptr [RCX + 0x8] SUB RCX,RSI SAR RCX,0x4 MOV RDX,-0x3333333333333333 IMUL RDX,RCX CDQE ADD RAX,RDX LAB_001904c8: CMP RDX,RAX JBE 0x00190546 LEA RAX,[RAX + RAX*0x4] SHL RAX,0x4 ADD RSI,RAX JMP 0x001904ee LAB_001904da: MOV RSI,R12 LAB_001904dd: MOV RAX,qword ptr [R14 + 0x20] MOV R12,qword ptr [RAX + 0x8] LAB_001904e5: CMP RSI,R12 JZ 0x001904f8 ADD RSI,0x10 LAB_001904ee: MOV RDI,RBX CALL 0x0018d702 JMP 0x00190534 LAB_001904f8: LEA R14,[RBX + 0x40] MOV qword ptr [RBX + 0x48],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOV byte ptr [RBX + 0x40],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x001586c0 MOV RDI,R14 MOV ESI,0x1 CALL 0x001586c0 LAB_00190534: MOV RAX,RBX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00190546: LEA RDI,[0x1f046c] MOV RSI,RAX XOR EAX,EAX CALL 0x0011ad40 LAB_00190557: MOV EDI,0x10 CALL 0x0011a450 MOV RBX,RAX LAB_00190564: LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x00186378 LAB_00190578: LEA RSI,[0x1f02fe] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL 0x00178b0d MOV BPL,0x1 LAB_00190591: LEA RSI,[RSP + 0x28] MOV RDI,RBX CALL 0x0011ae50 XOR EBP,EBP MOV RSI,qword ptr [0x0022bff0] MOV RDX,qword ptr [0x0022bf60] MOV RDI,RBX CALL 0x0011af40
/* minja::Value::get(minja::Value const&) */ Value * minja::Value::get(Value *param_1) { long *plVar1; char cVar2; uint uVar3; ulong uVar4; runtime_error *this; Value *in_RDX; ulong uVar5; long in_RSI; long lVar6; Value *pVVar7; basic_json *pbVar8; bool bVar9; basic_json *pbVar10; int1 local_70 [32]; string local_50 [32]; if (*(long *)(in_RSI + 0x10) == 0) { plVar1 = *(long **)(in_RSI + 0x20); if (plVar1 != (long *)0x0) { if (((*(long *)(in_RDX + 0x10) != 0) || (*(long *)(in_RDX + 0x20) != 0)) || (*(long *)(in_RDX + 0x30) != 0)) goto LAB_00190557; pbVar10 = (basic_json *)*plVar1; pbVar8 = (basic_json *)plVar1[1]; if (pbVar10 != pbVar8) { do { pbVar8 = pbVar10; cVar2 = nlohmann::json_abi_v3_11_3::operator==(pbVar8,(basic_json *)(in_RDX + 0x40)); if (cVar2 != '\0') break; pbVar10 = pbVar8 + 0x60; pbVar8 = (basic_json *)plVar1[1]; } while (pbVar10 != pbVar8); pbVar10 = *(basic_json **)(*(long *)(in_RSI + 0x20) + 8); } if (pbVar8 != pbVar10) { pVVar7 = (Value *)(pbVar8 + 0x10); goto LAB_001904ee; } } } else if ((byte)((char)in_RDX[0x40] - 5U) < 2) { uVar3 = get<int>(in_RDX); plVar1 = *(long **)(in_RSI + 0x10); if ((int)uVar3 < 0) { lVar6 = *plVar1; uVar5 = (plVar1[1] - lVar6 >> 4) * -0x3333333333333333; uVar4 = (long)(int)uVar3 + uVar5; } else { uVar4 = (ulong)uVar3; lVar6 = *plVar1; uVar5 = (plVar1[1] - lVar6 >> 4) * -0x3333333333333333; } if (uVar4 < uVar5) { pVVar7 = (Value *)(lVar6 + uVar4 * 0x50); LAB_001904ee: Value(param_1,pVVar7); return param_1; } std::__throw_out_of_range_fmt ("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)",uVar4); LAB_00190557: this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00190564 to 00190577 has its CatchHandler @ 00190616 */ dump_abi_cxx11_((int)local_70,SUB81(in_RSI,0)); /* try { // try from 00190578 to 0019058d has its CatchHandler @ 001905f6 */ std::operator+((char *)local_50,(string *)"Unashable type: "); /* try { // try from 00190591 to 001905b5 has its CatchHandler @ 001905b6 */ std::runtime_error::runtime_error(this,local_50); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60); } bVar9 = (bool)((char)param_1 + '@'); *(int8 *)(param_1 + 0x48) = 0; *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; *(int8 *)(param_1 + 0x18) = 0; *(int8 *)(param_1 + 0x20) = 0; *(int8 *)(param_1 + 0x28) = 0; *(int8 *)(param_1 + 0x30) = 0; *(int8 *)(param_1 + 0x38) = 0; param_1[0x40] = (Value)0x0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar9); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar9); return param_1; }
32,228
js_dataview_get_buffer
bluesky950520[P]quickjs/quickjs.c
static JSValue js_dataview_get_buffer(JSContext *ctx, JSValue this_val) { JSObject *p; JSTypedArray *ta; p = get_dataview(ctx, this_val); if (!p) return JS_EXCEPTION; ta = p->u.typed_array; return js_dup(JS_MKPTR(JS_TAG_OBJECT, ta->buffer)); }
O1
c
js_dataview_get_buffer: pushq %rbx subq $0x10, %rsp movq %rsi, 0x8(%rsp) cmpl $-0x1, %edx jne 0x8390c movq 0x8(%rsp), %rbx cmpw $0x21, 0x6(%rbx) je 0x8391c leaq 0x1ee36(%rip), %rsi # 0xa2749 xorl %ebx, %ebx xorl %eax, %eax callq 0x22567 testq %rbx, %rbx je 0x83934 movq 0x30(%rbx), %rax movq 0x18(%rax), %rax incl (%rax) movq $-0x1, %rdx jmp 0x8393b movl $0x6, %edx xorl %eax, %eax addq $0x10, %rsp popq %rbx retq
js_dataview_get_buffer: push rbx sub rsp, 10h mov [rsp+18h+var_10], rsi cmp edx, 0FFFFFFFFh jnz short loc_8390C mov rbx, [rsp+18h+var_10] cmp word ptr [rbx+6], 21h ; '!' jz short loc_8391C loc_8390C: lea rsi, aNotADataview; "not a DataView" xor ebx, ebx xor eax, eax call JS_ThrowTypeError loc_8391C: test rbx, rbx jz short loc_83934 mov rax, [rbx+30h] mov rax, [rax+18h] inc dword ptr [rax] mov rdx, 0FFFFFFFFFFFFFFFFh jmp short loc_8393B loc_83934: mov edx, 6 xor eax, eax loc_8393B: add rsp, 10h pop rbx retn
_DWORD * js_dataview_get_buffer( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rbx _DWORD *result; // rax char v16; // [rsp+0h] [rbp-18h] if ( (_DWORD)a3 != -1 || (v14 = a2, *(_WORD *)(a2 + 6) != 33) ) { v14 = 0LL; JS_ThrowTypeError(a1, (long long)"not a DataView", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v16); } if ( !v14 ) return 0LL; result = *(_DWORD **)(*(_QWORD *)(v14 + 48) + 24LL); ++*result; return result; }
32,229
js_dataview_get_buffer
bluesky950520[P]quickjs/quickjs.c
static JSValue js_dataview_get_buffer(JSContext *ctx, JSValue this_val) { JSObject *p; JSTypedArray *ta; p = get_dataview(ctx, this_val); if (!p) return JS_EXCEPTION; ta = p->u.typed_array; return js_dup(JS_MKPTR(JS_TAG_OBJECT, ta->buffer)); }
O2
c
js_dataview_get_buffer: pushq %rax callq 0x6ecea testq %rax, %rax je 0x6e785 movq 0x30(%rax), %rax movq 0x18(%rax), %rax incl (%rax) pushq $-0x1 popq %rdx jmp 0x6e78a pushq $0x6 popq %rdx xorl %eax, %eax popq %rcx retq
js_dataview_get_buffer: push rax call get_dataview test rax, rax jz short loc_6E785 mov rax, [rax+30h] mov rax, [rax+18h] inc dword ptr [rax] push 0FFFFFFFFFFFFFFFFh pop rdx jmp short loc_6E78A loc_6E785: push 6 pop rdx xor eax, eax loc_6E78A: pop rcx retn
_DWORD * js_dataview_get_buffer(long long a1) { long long dataview; // rax _DWORD *result; // rax dataview = get_dataview(a1); if ( !dataview ) return 0LL; result = *(_DWORD **)(*(_QWORD *)(dataview + 48) + 24LL); ++*result; return result; }
js_dataview_get_buffer: PUSH RAX CALL 0x0016ecea TEST RAX,RAX JZ 0x0016e785 MOV RAX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RAX + 0x18] INC dword ptr [RAX] PUSH -0x1 POP RDX JMP 0x0016e78a LAB_0016e785: PUSH 0x6 POP RDX XOR EAX,EAX LAB_0016e78a: POP RCX RET
int1 [16] js_dataview_get_buffer(void) { long lVar1; int *piVar2; int8 uVar3; int1 auVar4 [16]; lVar1 = get_dataview(); if (lVar1 == 0) { uVar3 = 6; piVar2 = (int *)0x0; } else { piVar2 = *(int **)(*(long *)(lVar1 + 0x30) + 0x18); *piVar2 = *piVar2 + 1; uVar3 = 0xffffffffffffffff; } auVar4._8_8_ = uVar3; auVar4._0_8_ = piVar2; return auVar4; }
32,230
js_weakref_deref
bluesky950520[P]quickjs/quickjs.c
static JSValue js_weakref_deref(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSWeakRefData *wrd = JS_GetOpaque2(ctx, this_val, JS_CLASS_WEAK_REF); if (!wrd) return JS_EXCEPTION; if (wrd == &js_weakref_sentinel) return JS_UNDEFINED; return js_dup(wrd->target); }
O1
c
js_weakref_deref: pushq %rax movl $0x3a, %ecx callq 0x275b5 testq %rax, %rax je 0x84166 leaq 0x494ce(%rip), %rcx # 0xcd608 cmpq %rcx, %rax je 0x8416d movq (%rax), %rsi movq 0x8(%rax), %rdx movq %rsi, (%rsp) cmpl $-0x9, %edx jb 0x84155 movq (%rsp), %rax incl (%rax) movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rsi, %rcx movl %esi, %eax jmp 0x84176 movl $0x6, %edx jmp 0x84172 movl $0x3, %edx xorl %eax, %eax xorl %ecx, %ecx orq %rcx, %rax popq %rcx retq
js_weakref_deref: push rax mov ecx, 3Ah ; ':' call JS_GetOpaque2 test rax, rax jz short loc_84166 lea rcx, js_weakref_sentinel cmp rax, rcx jz short loc_8416D mov rsi, [rax] mov rdx, [rax+8] mov [rsp+8+var_8], rsi cmp edx, 0FFFFFFF7h jb short loc_84155 mov rax, [rsp+8+var_8] inc dword ptr [rax] loc_84155: mov rcx, 0FFFFFFFF00000000h and rcx, rsi mov eax, esi jmp short loc_84176 loc_84166: mov edx, 6 jmp short loc_84172 loc_8416D: mov edx, 3 loc_84172: xor eax, eax xor ecx, ecx loc_84176: or rax, rcx pop rcx retn
unsigned long long js_weakref_deref(long long a1, long long a2, int a3) { long long Opaque2; // rax unsigned long long v4; // rsi unsigned long long v5; // rcx long long v6; // rax Opaque2 = JS_GetOpaque2(a1, a2, a3, 0x3Au); if ( !Opaque2 || (_UNKNOWN *)Opaque2 == &js_weakref_sentinel ) { v6 = 0LL; v5 = 0LL; } else { v4 = *(_QWORD *)Opaque2; if ( (unsigned int)*(_QWORD *)(Opaque2 + 8) >= 0xFFFFFFF7 ) ++**(_DWORD **)Opaque2; v5 = v4 & 0xFFFFFFFF00000000LL; v6 = (unsigned int)v4; } return v5 | v6; }
js_weakref_deref: PUSH RAX MOV ECX,0x3a CALL 0x001275b5 TEST RAX,RAX JZ 0x00184166 LEA RCX,[0x1cd608] CMP RAX,RCX JZ 0x0018416d MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP],RSI CMP EDX,-0x9 JC 0x00184155 MOV RAX,qword ptr [RSP] INC dword ptr [RAX] LAB_00184155: MOV RCX,-0x100000000 AND RCX,RSI MOV EAX,ESI JMP 0x00184176 LAB_00184166: MOV EDX,0x6 JMP 0x00184172 LAB_0018416d: MOV EDX,0x3 LAB_00184172: XOR EAX,EAX XOR ECX,ECX LAB_00184176: OR RAX,RCX POP RCX RET
int1 [16] js_weakref_deref(void) { int *piVar1; int8 *puVar2; ulong uVar3; ulong uVar4; int8 uVar5; int1 auVar6 [16]; puVar2 = (int8 *)JS_GetOpaque2(); if (puVar2 == (int8 *)0x0) { uVar5 = 6; } else { if (puVar2 != (int8 *)js_weakref_sentinel) { piVar1 = (int *)*puVar2; uVar5 = puVar2[1]; if (0xfffffff6 < (uint)uVar5) { *piVar1 = *piVar1 + 1; } uVar4 = (ulong)piVar1 & 0xffffffff00000000; uVar3 = (ulong)piVar1 & 0xffffffff; goto LAB_00184176; } uVar5 = 3; } uVar3 = 0; uVar4 = 0; LAB_00184176: auVar6._0_8_ = uVar3 | uVar4; auVar6._8_8_ = uVar5; return auVar6; }
32,231
js_weakref_deref
bluesky950520[P]quickjs/quickjs.c
static JSValue js_weakref_deref(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSWeakRefData *wrd = JS_GetOpaque2(ctx, this_val, JS_CLASS_WEAK_REF); if (!wrd) return JS_EXCEPTION; if (wrd == &js_weakref_sentinel) return JS_UNDEFINED; return js_dup(wrd->target); }
O2
c
js_weakref_deref: pushq %rax pushq $0x3a popq %rcx callq 0x21207 testq %rax, %rax je 0x6ee15 leaq 0x4c827(%rip), %rcx # 0xbb618 cmpq %rcx, %rax je 0x6ee19 movq (%rax), %rsi movq 0x8(%rax), %rdx cmpl $-0x9, %edx jb 0x6ee04 incl (%rsi) movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rsi, %rcx movl %esi, %eax jmp 0x6ee20 pushq $0x6 jmp 0x6ee1b pushq $0x3 popq %rdx xorl %eax, %eax xorl %ecx, %ecx orq %rcx, %rax popq %rcx retq
js_weakref_deref: push rax push 3Ah ; ':' pop rcx call JS_GetOpaque2 test rax, rax jz short loc_6EE15 lea rcx, js_weakref_sentinel cmp rax, rcx jz short loc_6EE19 mov rsi, [rax] mov rdx, [rax+8] cmp edx, 0FFFFFFF7h jb short loc_6EE04 inc dword ptr [rsi] loc_6EE04: mov rcx, 0FFFFFFFF00000000h and rcx, rsi mov eax, esi jmp short loc_6EE20 loc_6EE15: push 6 jmp short loc_6EE1B loc_6EE19: push 3 loc_6EE1B: pop rdx xor eax, eax xor ecx, ecx loc_6EE20: or rax, rcx pop rcx retn
unsigned long long js_weakref_deref(long long a1, long long a2, int a3) { long long Opaque2; // rax unsigned long long v4; // rsi unsigned long long v5; // rcx long long v6; // rax Opaque2 = JS_GetOpaque2(a1, a2, a3, 0x3Au); if ( !Opaque2 || (_UNKNOWN *)Opaque2 == &js_weakref_sentinel ) { v6 = 0LL; v5 = 0LL; } else { v4 = *(_QWORD *)Opaque2; if ( (unsigned int)*(_QWORD *)(Opaque2 + 8) >= 0xFFFFFFF7 ) ++*(_DWORD *)v4; v5 = v4 & 0xFFFFFFFF00000000LL; v6 = (unsigned int)v4; } return v5 | v6; }
js_weakref_deref: PUSH RAX PUSH 0x3a POP RCX CALL 0x00121207 TEST RAX,RAX JZ 0x0016ee15 LEA RCX,[0x1bb618] CMP RAX,RCX JZ 0x0016ee19 MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CMP EDX,-0x9 JC 0x0016ee04 INC dword ptr [RSI] LAB_0016ee04: MOV RCX,-0x100000000 AND RCX,RSI MOV EAX,ESI JMP 0x0016ee20 LAB_0016ee15: PUSH 0x6 JMP 0x0016ee1b LAB_0016ee19: PUSH 0x3 LAB_0016ee1b: POP RDX XOR EAX,EAX XOR ECX,ECX LAB_0016ee20: OR RAX,RCX POP RCX RET
int1 [16] js_weakref_deref(void) { int *piVar1; int8 *puVar2; ulong uVar3; ulong uVar4; int1 auVar5 [16]; int8 uStack_10; puVar2 = (int8 *)JS_GetOpaque2(); if (puVar2 == (int8 *)0x0) { uStack_10 = 6; } else { if (puVar2 != (int8 *)js_weakref_sentinel) { piVar1 = (int *)*puVar2; uStack_10 = puVar2[1]; if (0xfffffff6 < (uint)uStack_10) { *piVar1 = *piVar1 + 1; } uVar4 = (ulong)piVar1 & 0xffffffff00000000; uVar3 = (ulong)piVar1 & 0xffffffff; goto LAB_0016ee20; } uStack_10 = 3; } uVar3 = 0; uVar4 = 0; LAB_0016ee20: auVar5._0_8_ = uVar3 | uVar4; auVar5._8_8_ = uStack_10; return auVar5; }
32,232
ma_apply_redo_index_new_page
eloqsql/storage/maria/ma_key_recover.c
uint _ma_apply_redo_index_new_page(MARIA_HA *info, LSN lsn, const uchar *header, uint length) { pgcache_page_no_t root_page= page_korr(header); pgcache_page_no_t free_page= page_korr(header + PAGE_STORE_SIZE); uint key_nr= key_nr_korr(header + PAGE_STORE_SIZE * 2); my_bool page_type_flag= header[PAGE_STORE_SIZE * 2 + KEY_NR_STORE_SIZE]; enum pagecache_page_lock unlock_method; enum pagecache_page_pin unpin_method; MARIA_PINNED_PAGE page_link; my_off_t file_size; uchar *buff; uint result; MARIA_SHARE *share= info->s; DBUG_ENTER("_ma_apply_redo_index_new_page"); DBUG_PRINT("enter", ("root_page: %lu free_page: %lu", (ulong) root_page, (ulong) free_page)); /* Set header to point at key data */ share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS | STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE); header+= PAGE_STORE_SIZE * 2 + KEY_NR_STORE_SIZE + 1; length-= PAGE_STORE_SIZE * 2 + KEY_NR_STORE_SIZE + 1; file_size= (my_off_t) (root_page + 1) * share->block_size; if (cmp_translog_addr(lsn, share->state.is_of_horizon) >= 0) { /* free_page is 0 if we shouldn't set key_del */ if (free_page) { if (free_page != IMPOSSIBLE_PAGE_NO) share->state.key_del= (my_off_t) free_page * share->block_size; else share->state.key_del= HA_OFFSET_ERROR; } if (page_type_flag) /* root page */ share->state.key_root[key_nr]= file_size - share->block_size; } if (file_size > share->state.state.key_file_length) { share->state.state.key_file_length= file_size; buff= info->keyread_buff; info->keyread_buff_used= 1; unlock_method= PAGECACHE_LOCK_WRITE; unpin_method= PAGECACHE_PIN; } else { if (!(buff= pagecache_read(share->pagecache, &share->kfile, root_page, 0, 0, PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE, &page_link.link))) { if (my_errno != HA_ERR_FILE_TOO_SHORT && my_errno != HA_ERR_WRONG_CRC && my_errno != HA_ERR_DECRYPTION_FAILED) { result= 1; _ma_set_fatal_error(info, my_errno); goto err; } buff= pagecache_block_link_to_buffer(page_link.link); } else if (lsn_korr(buff) >= lsn) { /* Already applied */ check_skipped_lsn(info, lsn_korr(buff), 0, root_page); result= 0; goto err; } unlock_method= PAGECACHE_LOCK_LEFT_WRITELOCKED; unpin_method= PAGECACHE_PIN_LEFT_PINNED; } /* Write modified page */ bzero(buff, LSN_STORE_SIZE); memcpy(buff + LSN_STORE_SIZE, header, length); bzero(buff + LSN_STORE_SIZE + length, share->max_index_block_size - LSN_STORE_SIZE - length); bfill(buff + share->block_size - KEYPAGE_CHECKSUM_SIZE, KEYPAGE_CHECKSUM_SIZE, (uchar) 255); result= 0; if (unlock_method == PAGECACHE_LOCK_WRITE && pagecache_write(share->pagecache, &share->kfile, root_page, 0, buff, PAGECACHE_PLAIN_PAGE, unlock_method, unpin_method, PAGECACHE_WRITE_DELAY, &page_link.link, LSN_IMPOSSIBLE)) result= 1; /* Mark page to be unlocked and written at _ma_unpin_all_pages() */ page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; page_link.changed= 1; push_dynamic(&info->pinned_pages, (void*) &page_link); DBUG_RETURN(result); err: pagecache_unlock_by_link(share->pagecache, page_link.link, PAGECACHE_LOCK_WRITE_UNLOCK, PAGECACHE_UNPIN, LSN_IMPOSSIBLE, LSN_IMPOSSIBLE, 0, FALSE); DBUG_RETURN(result); }
O3
c
ma_apply_redo_index_new_page: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %rbx movl (%rdx), %r10d movl 0x5(%rdx), %edi movzbl 0x4(%rdx), %r8d shlq $0x20, %r8 leaq (%r8,%r10), %rdx movzbl 0x9(%r13), %esi movzbl 0xa(%r13), %eax movb 0xb(%r13), %r9b movq (%rbx), %r14 orl $0x1b1, 0x170(%r14) # imm = 0x1B1 leaq (%r8,%r10), %r11 incq %r11 movl 0x7bc(%r14), %r10d imulq %r10, %r11 cmpq %r15, 0x180(%r14) jg 0x40ba5 shlq $0x20, %rsi orq %rdi, %rsi testq %rsi, %rsi je 0x40b91 movq $-0x1, %rdi movabsq $0xffffffffff, %r8 # imm = 0xFFFFFFFFFF cmpq %r8, %rsi je 0x40b8a imulq %r10, %rsi movq %rsi, %rdi movq %rdi, 0x120(%r14) testb %r9b, %r9b je 0x40ba5 imulq %rdx, %r10 movq 0x118(%r14), %rsi movq %r10, (%rsi,%rax,8) movq 0x38(%r14), %rax movq %rax, -0x48(%rbp) cmpq %rax, %r11 movq %rdx, -0x40(%rbp) movq %r11, -0x50(%rbp) jbe 0x40bda movq %r11, 0x38(%r14) movq 0x380(%rbx), %r12 movb $0x1, 0x685(%rbx) movl $0x2, %eax movq %rax, -0x38(%rbp) jmp 0x40cb5 movq %rcx, -0x30(%rbp) movq 0x600(%r14), %rdi leaq 0x750(%r14), %rsi leaq -0x68(%rbp), %rax movq $0x0, -0x38(%rbp) xorl %ecx, %ecx xorl %r8d, %r8d movl $0x1, %r9d pushq %rax pushq $0x4 callq 0x72726 addq $0x10, %rsp testq %rax, %rax je 0x40c7a movq %rax, %r12 movzwl (%rax), %eax shlq $0x20, %rax movzbl 0x2(%r12), %ecx shlq $0x30, %rcx orq %rax, %rcx movl 0x3(%r12), %esi orq %rcx, %rsi cmpq %r15, %rsi movq -0x30(%rbp), %rcx jl 0x40cb5 xorl %r15d, %r15d movq %rbx, %rdi xorl %edx, %edx movq -0x40(%rbp), %rcx callq 0x6d335 movq 0x600(%r14), %rdi movq -0x68(%rbp), %rsi xorl %eax, %eax movl $0x6, %edx movl $0x3, %ecx xorl %r8d, %r8d xorl %r9d, %r9d pushq %rax pushq %rax callq 0x72441 addq $0x10, %rsp jmp 0x40d87 callq 0xac2be cmpl $0xaf, (%rax) je 0x40ca5 callq 0xac2be cmpl $0xb0, (%rax) je 0x40ca5 callq 0xac2be cmpl $0xc0, (%rax) jne 0x40d99 movq -0x68(%rbp), %rdi callq 0x74c09 movq %rax, %r12 movq -0x30(%rbp), %rcx movq %rbx, -0x30(%rbp) addq $0xc, %r13 leal -0xc(%rcx), %eax xorl %r15d, %r15d movl %r15d, 0x3(%r12) movl %r15d, (%r12) leaq 0x7(%r12), %rdi movl %eax, %ebx movq %r13, %rsi movq %rbx, %rdx movq %rcx, %r13 callq 0x2a0a0 leaq (%r12,%rbx), %rdi addq $0x7, %rdi movl 0x7c0(%r14), %edx subl %r13d, %edx addl $0x5, %edx xorl %esi, %esi callq 0x2a2a0 movl 0x7bc(%r14), %eax movl $0xffffffff, -0x4(%r12,%rax) # imm = 0xFFFFFFFF movq -0x50(%rbp), %rax cmpq -0x48(%rbp), %rax jbe 0x40d68 movq 0x600(%r14), %rdi addq $0x750, %r14 # imm = 0x750 movl 0x80(%rdi), %eax subq $0x8, %rsp xorl %r10d, %r10d leaq -0x68(%rbp), %r11 movq %r14, %rsi movq -0x40(%rbp), %rdx xorl %ecx, %ecx movq %r12, %r8 movl $0x1, %r9d pushq %rax pushq %r10 pushq $0x0 pushq %r11 pushq %r10 pushq -0x38(%rbp) pushq $0x4 callq 0x73b8a addq $0x40, %rsp xorl %r15d, %r15d testb %al, %al setne %r15b leaq -0x68(%rbp), %rsi movl $0x6, 0x8(%rsi) movb $0x1, 0x10(%rsi) movq -0x30(%rbp), %rdi addq $0x2e8, %rdi # imm = 0x2E8 callq 0x985d6 movl %r15d, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0xac2be movl (%rax), %esi movq %rbx, %rdi callq 0x3c86c movl $0x1, %r15d jmp 0x40c4d
_ma_apply_redo_index_new_page: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r13, rdx mov r15, rsi mov rbx, rdi mov r10d, [rdx] mov edi, [rdx+5] movzx r8d, byte ptr [rdx+4] shl r8, 20h lea rdx, [r8+r10] movzx esi, byte ptr [r13+9] movzx eax, byte ptr [r13+0Ah] mov r9b, [r13+0Bh] mov r14, [rbx] or dword ptr [r14+170h], 1B1h lea r11, [r8+r10] inc r11 mov r10d, [r14+7BCh] imul r11, r10 cmp [r14+180h], r15 jg short loc_40BA5 shl rsi, 20h or rsi, rdi test rsi, rsi jz short loc_40B91 mov rdi, 0FFFFFFFFFFFFFFFFh mov r8, 0FFFFFFFFFFh cmp rsi, r8 jz short loc_40B8A imul rsi, r10 mov rdi, rsi loc_40B8A: mov [r14+120h], rdi loc_40B91: test r9b, r9b jz short loc_40BA5 imul r10, rdx mov rsi, [r14+118h] mov [rsi+rax*8], r10 loc_40BA5: mov rax, [r14+38h] mov [rbp+var_48], rax cmp r11, rax mov [rbp+var_40], rdx mov [rbp+var_50], r11 jbe short loc_40BDA mov [r14+38h], r11 mov r12, [rbx+380h] mov byte ptr [rbx+685h], 1 mov eax, 2 mov [rbp+var_38], rax jmp loc_40CB5 loc_40BDA: mov [rbp+var_30], rcx mov rdi, [r14+600h] lea rsi, [r14+750h] lea rax, [rbp+var_68] mov [rbp+var_38], 0 xor ecx, ecx xor r8d, r8d mov r9d, 1 push rax push 4 call pagecache_read add rsp, 10h test rax, rax jz short loc_40C7A mov r12, rax movzx eax, word ptr [rax] shl rax, 20h movzx ecx, byte ptr [r12+2] shl rcx, 30h or rcx, rax mov esi, [r12+3] or rsi, rcx cmp rsi, r15 mov rcx, [rbp+var_30] jl short loc_40CB5 xor r15d, r15d mov rdi, rbx xor edx, edx mov rcx, [rbp+var_40] call check_skipped_lsn loc_40C4D: mov rdi, [r14+600h] mov rsi, [rbp+var_68] xor eax, eax mov edx, 6 mov ecx, 3 xor r8d, r8d xor r9d, r9d push rax push rax call pagecache_unlock_by_link add rsp, 10h jmp loc_40D87 loc_40C7A: call _my_thread_var cmp dword ptr [rax], 0AFh jz short loc_40CA5 call _my_thread_var cmp dword ptr [rax], 0B0h jz short loc_40CA5 call _my_thread_var cmp dword ptr [rax], 0C0h jnz loc_40D99 loc_40CA5: mov rdi, [rbp+var_68] call pagecache_block_link_to_buffer mov r12, rax mov rcx, [rbp+var_30] loc_40CB5: mov [rbp+var_30], rbx add r13, 0Ch lea eax, [rcx-0Ch] xor r15d, r15d mov [r12+3], r15d mov [r12], r15d lea rdi, [r12+7] mov ebx, eax mov rsi, r13 mov rdx, rbx mov r13, rcx call _memcpy lea rdi, [r12+rbx] add rdi, 7 mov edx, [r14+7C0h] sub edx, r13d add edx, 5 xor esi, esi call _memset mov eax, [r14+7BCh] mov dword ptr [r12+rax-4], 0FFFFFFFFh mov rax, [rbp+var_50] cmp rax, [rbp+var_48] jbe short loc_40D68 mov rdi, [r14+600h] add r14, 750h mov eax, [rdi+80h] sub rsp, 8 xor r10d, r10d lea r11, [rbp+var_68] mov rsi, r14 mov rdx, [rbp+var_40] xor ecx, ecx mov r8, r12 mov r9d, 1 push rax push r10 push 0 push r11 push r10 push [rbp+var_38] push 4 call pagecache_write_part add rsp, 40h xor r15d, r15d test al, al setnz r15b loc_40D68: lea rsi, [rbp+var_68] mov dword ptr [rsi+8], 6 mov byte ptr [rsi+10h], 1 mov rdi, [rbp+var_30] add rdi, 2E8h call insert_dynamic loc_40D87: mov eax, r15d add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_40D99: call _my_thread_var mov esi, [rax] mov rdi, rbx call _ma_set_fatal_error mov r15d, 1 jmp loc_40C4D
_BOOL8 ma_apply_redo_index_new_page(long long *a1, signed long long a2, unsigned int *a3, long long *a4) { long long v7; // rdi unsigned long long v8; // rdx long long v9; // rsi long long v10; // rax char v11; // r9 long long v12; // r14 long long v13; // r10 unsigned long long v14; // r11 long long v15; // rsi long long v16; // rdi long long v17; // r12 long long v18; // rdi unsigned __int16 *v19; // rax signed long long v20; // rsi BOOL v21; // r15d long long v22; // rbx unsigned int *v23; // rsi int v24; // r13d int *v26; // rax long long v27; // rdx long long v28; // rcx long long v29; // r8 int v30; // r9d long long v31; // [rsp+8h] [rbp-68h] BYREF int v32; // [rsp+10h] [rbp-60h] char v33; // [rsp+18h] [rbp-58h] unsigned long long v34; // [rsp+20h] [rbp-50h] unsigned long long v35; // [rsp+28h] [rbp-48h] unsigned long long v36; // [rsp+30h] [rbp-40h] long long v37; // [rsp+38h] [rbp-38h] long long *v38; // [rsp+40h] [rbp-30h] v7 = *(unsigned int *)((char *)a3 + 5); v8 = ((unsigned long long)*((unsigned __int8 *)a3 + 4) << 32) + *a3; v9 = *((unsigned __int8 *)a3 + 9); v10 = *((unsigned __int8 *)a3 + 10); v11 = *((_BYTE *)a3 + 11); v12 = *a1; *(_DWORD *)(v12 + 368) |= 0x1B1u; v13 = *(unsigned int *)(v12 + 1980); v14 = v13 * (v8 + 1); if ( *(_QWORD *)(v12 + 384) <= a2 ) { v15 = v7 | (v9 << 32); if ( v15 ) { v16 = -1LL; if ( v15 != 0xFFFFFFFFFFLL ) v16 = v13 * v15; *(_QWORD *)(v12 + 288) = v16; } if ( v11 ) *(_QWORD *)(*(_QWORD *)(v12 + 280) + 8 * v10) = v8 * v13; } v35 = *(_QWORD *)(v12 + 56); v36 = v8; v34 = v13 * (v8 + 1); if ( v14 <= v35 ) { v38 = a4; v18 = *(_QWORD *)(v12 + 1536); v37 = 0LL; v19 = (unsigned __int16 *)pagecache_read(v18, (int)v12 + 1872, v8, 0, 0, 1, 4, (long long)&v31); if ( v19 ) { v17 = (long long)v19; v20 = ((unsigned long long)*v19 << 32) | ((unsigned long long)*(unsigned __int8 *)(v17 + 2) << 48) | *(unsigned int *)(v17 + 3); LODWORD(a4) = (_DWORD)v38; if ( v20 < a2 ) goto LABEL_18; v21 = 0; check_skipped_lsn(a1, v20, 0LL, v36); } else { if ( *(_DWORD *)my_thread_var(v18) == 175 || *(_DWORD *)my_thread_var(v18) == 176 || *(_DWORD *)my_thread_var(v18) == 192 ) { v17 = pagecache_block_link_to_buffer(v31); LODWORD(a4) = (_DWORD)v38; goto LABEL_18; } v26 = (int *)my_thread_var(v18); ma_set_fatal_error(a1, *v26, v27, v28, v29, v30); v21 = 1; } pagecache_unlock_by_link(*(_QWORD *)(v12 + 1536), v31, 6, 3, 0, 0, 0LL, 0LL); return v21; } *(_QWORD *)(v12 + 56) = v14; v17 = a1[112]; *((_BYTE *)a1 + 1669) = 1; v37 = 2LL; LABEL_18: v38 = a1; v21 = 0; *(_DWORD *)(v17 + 3) = 0; *(_DWORD *)v17 = 0; v22 = (unsigned int)((_DWORD)a4 - 12); v23 = a3 + 3; v24 = (int)a4; memcpy(v17 + 7, v23, v22); memset(v17 + v22 + 7, 0LL, (unsigned int)(*(_DWORD *)(v12 + 1984) - v24 + 5)); *(_DWORD *)(v17 + *(unsigned int *)(v12 + 1980) - 4) = -1; if ( v34 > v35 ) v21 = (unsigned __int8)pagecache_write_part( *(_QWORD *)(v12 + 1536), (int)v12 + 1872, v36, 0, v17, 1, 4, v37, 0, (long long)&v31, 0LL, 0, *(_DWORD *)(*(_QWORD *)(v12 + 1536) + 128LL)) != 0; v32 = 6; v33 = 1; insert_dynamic(v38 + 93, &v31); return v21; }
_ma_apply_redo_index_new_page: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R13,RDX MOV R15,RSI MOV RBX,RDI MOV R10D,dword ptr [RDX] MOV EDI,dword ptr [RDX + 0x5] MOVZX R8D,byte ptr [RDX + 0x4] SHL R8,0x20 LEA RDX,[R8 + R10*0x1] MOVZX ESI,byte ptr [R13 + 0x9] MOVZX EAX,byte ptr [R13 + 0xa] MOV R9B,byte ptr [R13 + 0xb] MOV R14,qword ptr [RBX] OR dword ptr [R14 + 0x170],0x1b1 LEA R11,[R8 + R10*0x1] INC R11 MOV R10D,dword ptr [R14 + 0x7bc] IMUL R11,R10 CMP qword ptr [R14 + 0x180],R15 JG 0x00140ba5 SHL RSI,0x20 OR RSI,RDI TEST RSI,RSI JZ 0x00140b91 MOV RDI,-0x1 MOV R8,0xffffffffff CMP RSI,R8 JZ 0x00140b8a IMUL RSI,R10 MOV RDI,RSI LAB_00140b8a: MOV qword ptr [R14 + 0x120],RDI LAB_00140b91: TEST R9B,R9B JZ 0x00140ba5 IMUL R10,RDX MOV RSI,qword ptr [R14 + 0x118] MOV qword ptr [RSI + RAX*0x8],R10 LAB_00140ba5: MOV RAX,qword ptr [R14 + 0x38] MOV qword ptr [RBP + -0x48],RAX CMP R11,RAX MOV qword ptr [RBP + -0x40],RDX MOV qword ptr [RBP + -0x50],R11 JBE 0x00140bda MOV qword ptr [R14 + 0x38],R11 MOV R12,qword ptr [RBX + 0x380] MOV byte ptr [RBX + 0x685],0x1 MOV EAX,0x2 MOV qword ptr [RBP + -0x38],RAX JMP 0x00140cb5 LAB_00140bda: MOV qword ptr [RBP + -0x30],RCX MOV RDI,qword ptr [R14 + 0x600] LEA RSI,[R14 + 0x750] LEA RAX,[RBP + -0x68] MOV qword ptr [RBP + -0x38],0x0 XOR ECX,ECX XOR R8D,R8D MOV R9D,0x1 PUSH RAX PUSH 0x4 CALL 0x00172726 ADD RSP,0x10 TEST RAX,RAX JZ 0x00140c7a MOV R12,RAX MOVZX EAX,word ptr [RAX] SHL RAX,0x20 MOVZX ECX,byte ptr [R12 + 0x2] SHL RCX,0x30 OR RCX,RAX MOV ESI,dword ptr [R12 + 0x3] OR RSI,RCX CMP RSI,R15 MOV RCX,qword ptr [RBP + -0x30] JL 0x00140cb5 XOR R15D,R15D MOV RDI,RBX XOR EDX,EDX MOV RCX,qword ptr [RBP + -0x40] CALL 0x0016d335 LAB_00140c4d: MOV RDI,qword ptr [R14 + 0x600] MOV RSI,qword ptr [RBP + -0x68] XOR EAX,EAX MOV EDX,0x6 MOV ECX,0x3 XOR R8D,R8D XOR R9D,R9D PUSH RAX PUSH RAX CALL 0x00172441 ADD RSP,0x10 JMP 0x00140d87 LAB_00140c7a: CALL 0x001ac2be CMP dword ptr [RAX],0xaf JZ 0x00140ca5 CALL 0x001ac2be CMP dword ptr [RAX],0xb0 JZ 0x00140ca5 CALL 0x001ac2be CMP dword ptr [RAX],0xc0 JNZ 0x00140d99 LAB_00140ca5: MOV RDI,qword ptr [RBP + -0x68] CALL 0x00174c09 MOV R12,RAX MOV RCX,qword ptr [RBP + -0x30] LAB_00140cb5: MOV qword ptr [RBP + -0x30],RBX ADD R13,0xc LEA EAX,[RCX + -0xc] XOR R15D,R15D MOV dword ptr [R12 + 0x3],R15D MOV dword ptr [R12],R15D LEA RDI,[R12 + 0x7] MOV EBX,EAX MOV RSI,R13 MOV RDX,RBX MOV R13,RCX CALL 0x0012a0a0 LEA RDI,[R12 + RBX*0x1] ADD RDI,0x7 MOV EDX,dword ptr [R14 + 0x7c0] SUB EDX,R13D ADD EDX,0x5 XOR ESI,ESI CALL 0x0012a2a0 MOV EAX,dword ptr [R14 + 0x7bc] MOV dword ptr [R12 + RAX*0x1 + -0x4],0xffffffff MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x48] JBE 0x00140d68 MOV RDI,qword ptr [R14 + 0x600] ADD R14,0x750 MOV EAX,dword ptr [RDI + 0x80] SUB RSP,0x8 XOR R10D,R10D LEA R11,[RBP + -0x68] MOV RSI,R14 MOV RDX,qword ptr [RBP + -0x40] XOR ECX,ECX MOV R8,R12 MOV R9D,0x1 PUSH RAX PUSH R10 PUSH 0x0 PUSH R11 PUSH R10 PUSH qword ptr [RBP + -0x38] PUSH 0x4 CALL 0x00173b8a ADD RSP,0x40 XOR R15D,R15D TEST AL,AL SETNZ R15B LAB_00140d68: LEA RSI,[RBP + -0x68] MOV dword ptr [RSI + 0x8],0x6 MOV byte ptr [RSI + 0x10],0x1 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x2e8 CALL 0x001985d6 LAB_00140d87: MOV EAX,R15D ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00140d99: CALL 0x001ac2be MOV ESI,dword ptr [RAX] MOV RDI,RBX CALL 0x0013c86c MOV R15D,0x1 JMP 0x00140c4d
bool _ma_apply_redo_index_new_page(long *param_1,long param_2,uint5 *param_3,long *param_4) { byte bVar1; long lVar2; uint5 uVar3; uint5 uVar4; char cVar5; ushort *puVar6; int *piVar7; int4 *puVar8; ulong uVar9; ulong uVar10; long lVar11; bool bVar12; int8 local_70; int4 local_68; int1 local_60; ulong local_58; ulong local_50; ulong local_48; int8 local_40; long *local_38; uVar3 = *param_3; local_48 = (ulong)*param_3; uVar4 = *(uint5 *)((long)param_3 + 5); bVar1 = *(byte *)((long)param_3 + 10); cVar5 = *(char *)((long)param_3 + 0xb); lVar2 = *param_1; *(uint *)(lVar2 + 0x170) = *(uint *)(lVar2 + 0x170) | 0x1b1; uVar10 = (ulong)*(uint *)(lVar2 + 0x7bc); local_58 = ((ulong)uVar3 + 1) * uVar10; if (*(long *)(lVar2 + 0x180) <= param_2) { uVar9 = (ulong)uVar4; if (uVar9 != 0) { lVar11 = -1; if (uVar9 != 0xffffffffff) { lVar11 = uVar9 * uVar10; } *(long *)(lVar2 + 0x120) = lVar11; } if (cVar5 != '\0') { *(ulong *)(*(long *)(lVar2 + 0x118) + (ulong)bVar1 * 8) = uVar10 * local_48; } } local_50 = *(ulong *)(lVar2 + 0x38); if (local_58 < local_50 || local_58 - local_50 == 0) { local_40 = 0; local_38 = param_4; puVar6 = (ushort *) pagecache_read(*(int8 *)(lVar2 + 0x600),lVar2 + 0x750,local_48,0,0,1,4,&local_70) ; if (puVar6 == (ushort *)0x0) { piVar7 = (int *)_my_thread_var(); if (((*piVar7 != 0xaf) && (piVar7 = (int *)_my_thread_var(), *piVar7 != 0xb0)) && (piVar7 = (int *)_my_thread_var(), *piVar7 != 0xc0)) { puVar8 = (int4 *)_my_thread_var(); _ma_set_fatal_error(param_1,*puVar8); bVar12 = true; goto LAB_00140c4d; } puVar6 = (ushort *)pagecache_block_link_to_buffer(local_70); param_4 = local_38; } else { uVar10 = (ulong)*(uint *)((long)puVar6 + 3) | (ulong)(byte)puVar6[1] << 0x30 | (ulong)*puVar6 << 0x20; param_4 = local_38; if (param_2 <= (long)uVar10) { bVar12 = false; check_skipped_lsn(param_1,uVar10,0,local_48); LAB_00140c4d: pagecache_unlock_by_link(*(int8 *)(lVar2 + 0x600),local_70,6,3,0,0,0,0); return bVar12; } } } else { *(ulong *)(lVar2 + 0x38) = local_58; puVar6 = (ushort *)param_1[0x70]; *(int1 *)((long)param_1 + 0x685) = 1; local_40 = 2; } bVar12 = false; *(int4 *)((long)puVar6 + 3) = 0; puVar6[0] = 0; puVar6[1] = 0; uVar10 = (ulong)((int)param_4 - 0xc); local_38 = param_1; memcpy((void *)((long)puVar6 + 7),(void *)((long)param_3 + 0xc),uVar10); memset((void *)((long)puVar6 + uVar10 + 7),0,(ulong)((*(int *)(lVar2 + 0x7c0) - (int)param_4) + 5) ); *(int4 *)((long)puVar6 + ((ulong)*(uint *)(lVar2 + 0x7bc) - 4)) = 0xffffffff; if (local_50 < local_58) { cVar5 = pagecache_write_part (*(long *)(lVar2 + 0x600),lVar2 + 0x750,local_48,0,puVar6,1,4,local_40,0, &local_70,0,0,*(int4 *)(*(long *)(lVar2 + 0x600) + 0x80)); bVar12 = cVar5 != '\0'; } local_68 = 6; local_60 = 1; insert_dynamic(local_38 + 0x5d); return bVar12; }
32,233
asn1_get_nonzero_mpi
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/pkparse.c
static int asn1_get_nonzero_mpi(unsigned char **p, const unsigned char *end, mbedtls_mpi *X) { int ret; ret = mbedtls_asn1_get_mpi(p, end, X); if (ret != 0) { return ret; } if (mbedtls_mpi_cmp_int(X, 0) == 0) { return MBEDTLS_ERR_PK_KEY_INVALID_FORMAT; } return 0; }
O3
c
asn1_get_nonzero_mpi: pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx callq 0x96ad5 testl %eax, %eax jne 0x8db11 xorl %r14d, %r14d movq %rbx, %rdi xorl %esi, %esi callq 0x7f149 testl %eax, %eax movl $0xffffc300, %eax # imm = 0xFFFFC300 cmovnel %r14d, %eax addq $0x8, %rsp popq %rbx popq %r14 retq
asn1_get_nonzero_mpi: push r14 push rbx push rax mov rbx, rdx call mbedtls_asn1_get_mpi test eax, eax jnz short loc_8DB11 xor r14d, r14d mov rdi, rbx xor esi, esi call mbedtls_mpi_cmp_int test eax, eax mov eax, 0FFFFC300h cmovnz eax, r14d loc_8DB11: add rsp, 8 pop rbx pop r14 retn
long long asn1_get_nonzero_mpi(long long a1, long long a2, _QWORD *a3) { long long result; // rax bool v5; // zf result = mbedtls_asn1_get_mpi(a1, a2, a3); if ( !(_DWORD)result ) { v5 = (unsigned int)mbedtls_mpi_cmp_int(a3, 0LL) == 0; result = 4294951680LL; if ( !v5 ) return 0LL; } return result; }
asn1_get_nonzero_mpi: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX CALL 0x00196ad5 TEST EAX,EAX JNZ 0x0018db11 XOR R14D,R14D MOV RDI,RBX XOR ESI,ESI CALL 0x0017f149 TEST EAX,EAX MOV EAX,0xffffc300 CMOVNZ EAX,R14D LAB_0018db11: ADD RSP,0x8 POP RBX POP R14 RET
int8 asn1_get_nonzero_mpi(int8 param_1,int8 param_2,int8 param_3) { int iVar1; int8 uVar2; uVar2 = mbedtls_asn1_get_mpi(); if ((int)uVar2 == 0) { iVar1 = mbedtls_mpi_cmp_int(param_3,0); uVar2 = 0xffffc300; if (iVar1 != 0) { uVar2 = 0; } } return uVar2; }
32,234
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/json.hpp
iterator insert_iterator(const_iterator pos, Args&& ... args) { iterator result(this); JSON_ASSERT(m_data.m_value.array != nullptr); auto insert_pos = std::distance(m_data.m_value.array->begin(), pos.m_it.array_iterator); m_data.m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...); result.m_it.array_iterator = m_data.m_value.array->begin() + insert_pos; // This could have been written as: // result.m_it.array_iterator = m_data.m_value.array->insert(pos.m_it.array_iterator, cnt, val); // but the return value of insert is missing in GCC 4.8, so it is written this way instead. set_parents(); return result; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq %rsi, (%rdi) movq $0x0, 0x8(%rdi) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x18(%rdi) movq 0x8(%rsi), %rdi testq %rdi, %rdi je 0xaad61 movq %rsi, %r14 movq 0x10(%rdx), %rsi movq %rsi, %r15 subq (%rdi), %r15 movq %rcx, %rdx callq 0xaae0a movq 0x8(%r14), %rax addq (%rax), %r15 movq %r15, 0x10(%rbx) movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq leaq 0x42e7b(%rip), %rdi # 0xedbe3 leaq 0x3d3d1(%rip), %rdx # 0xe8140 leaq 0x42f30(%rip), %rcx # 0xedca6 movl $0x582c, %esi # imm = 0x582C xorl %eax, %eax callq 0x1be80
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE15insert_iteratorIJRKSD_EEENS0_6detail9iter_implISD_EENSI_ISF_EEDpOT_: push r15 push r14 push rbx mov rbx, rdi mov [rdi], rsi mov qword ptr [rdi+8], 0 mov rax, 8000000000000000h mov [rdi+18h], rax mov rdi, [rsi+8] test rdi, rdi jz short loc_AAD61 mov r14, rsi mov rsi, [rdx+10h] mov r15, rsi sub r15, [rdi] mov rdx, rcx call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6insertEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EERSI_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::insert(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rax, [r14+8] add r15, [rax] mov [rbx+10h], r15 mov rax, rbx pop rbx pop r14 pop r15 retn loc_AAD61: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMDataMTypeValu_0+23h; "m_data.m_value.array != nullptr" mov esi, 582Ch xor eax, eax call _ggml_abort
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&>( _QWORD *a1, long long a2, long long a3, long long a4) { _QWORD *v5; // rdi long long v6; // r15 *a1 = a2; a1[1] = 0LL; a1[3] = 0x8000000000000000LL; v5 = *(_QWORD **)(a2 + 8); if ( v5 ) { v6 = *(_QWORD *)(a3 + 16) - *v5; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::insert( v5, *(_QWORD *)(a3 + 16), a4); a1[2] = **(_QWORD **)(a2 + 8) + v6; return (long long)a1; } else { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 22572LL, "GGML_ASSERT(%s) failed", "m_data.m_value.array != nullptr"); return nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 22572LL); } }
insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&>: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI MOV qword ptr [RDI],RSI MOV qword ptr [RDI + 0x8],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [RDI + 0x18],RAX MOV RDI,qword ptr [RSI + 0x8] TEST RDI,RDI JZ 0x001aad61 MOV R14,RSI MOV RSI,qword ptr [RDX + 0x10] MOV R15,RSI SUB R15,qword ptr [RDI] MOV RDX,RCX CALL 0x001aae0a MOV RAX,qword ptr [R14 + 0x8] ADD R15,qword ptr [RAX] MOV qword ptr [RBX + 0x10],R15 MOV RAX,RBX POP RBX POP R14 POP R15 RET LAB_001aad61: LEA RDI,[0x1edbe3] LEA RDX,[0x1e8140] LEA RCX,[0x1edca6] MOV ESI,0x582c XOR EAX,EAX CALL 0x0011be80
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ long * nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&> (long *param_1,long param_2,long param_3,int8 param_4) { vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *pvVar1; long lVar2; long lVar3; *param_1 = param_2; param_1[1] = 0; param_1[3] = -0x8000000000000000; pvVar1 = *(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(param_2 + 8); if (pvVar1 != (vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)0x0) { lVar2 = *(long *)(param_3 + 0x10); lVar3 = *(long *)pvVar1; std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::insert(pvVar1,lVar2,param_4); param_1[2] = (lVar2 - lVar3) + **(long **)(param_2 + 8); return param_1; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x582c, "GGML_ASSERT(%s) failed","m_data.m_value.array != nullptr"); }
32,235
mi_fetch_keypage
eloqsql/storage/myisam/mi_page.c
uchar *_mi_fetch_keypage(register MI_INFO *info, MI_KEYDEF *keyinfo, my_off_t page, int level, uchar *buff, int return_buffer) { uchar *tmp; uint page_size; DBUG_ENTER("_mi_fetch_keypage"); DBUG_PRINT("enter",("page: %ld", (long) page)); tmp=(uchar*) key_cache_read(info->s->key_cache, info->s->kfile, page, level, (uchar*) buff, (uint) keyinfo->block_length, (uint) keyinfo->block_length, return_buffer); if (tmp == info->buff) info->buff_used=1; else if (!tmp) { DBUG_PRINT("error",("Got errno: %d from key_cache_read",my_errno)); info->last_keypage=HA_OFFSET_ERROR; mi_print_error(info->s, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; DBUG_RETURN(0); } info->last_keypage=page; page_size=mi_getint(tmp); if (page_size < 4 || page_size > keyinfo->block_length) { DBUG_PRINT("error",("page %lu had wrong page length: %u", (ulong) page, page_size)); DBUG_DUMP("page", tmp, keyinfo->block_length); info->last_keypage = HA_OFFSET_ERROR; mi_print_error(info->s, HA_ERR_CRASHED); my_errno = HA_ERR_CRASHED; tmp = 0; } DBUG_RETURN(tmp); }
O0
c
mi_fetch_keypage: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movl %r9d, -0x34(%rbp) jmp 0xbdf81 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x278(%rax), %rdi movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x350(%rax), %esi movq -0x20(%rbp), %rdx movl -0x24(%rbp), %ecx movq -0x30(%rbp), %r8 movq -0x18(%rbp), %rax movzwl 0xe(%rax), %r9d movq -0x18(%rbp), %rax movzwl 0xe(%rax), %r10d movl -0x34(%rbp), %eax movl %r10d, (%rsp) movl %eax, 0x8(%rsp) callq 0xe4a10 movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x100(%rcx), %rax jne 0xbdfeb movq -0x10(%rbp), %rax movb $0x1, 0x33d(%rax) jmp 0xbe037 cmpq $0x0, -0x40(%rbp) jne 0xbe035 jmp 0xbdff4 jmp 0xbdff6 movq -0x10(%rbp), %rax movq $-0x1, 0x190(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0xae480 callq 0xf6250 movl $0x7e, (%rax) movq $0x0, -0x8(%rbp) jmp 0xbe0cc jmp 0xbe037 movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x190(%rax) movq -0x40(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x40(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax andl $0x7fff, %eax # imm = 0x7FFF movl %eax, -0x44(%rbp) cmpl $0x4, -0x44(%rbp) jb 0xbe080 movl -0x44(%rbp), %eax movq -0x18(%rbp), %rcx movzwl 0xe(%rcx), %ecx cmpl %ecx, %eax jbe 0xbe0c2 jmp 0xbe082 jmp 0xbe084 jmp 0xbe086 jmp 0xbe088 movq -0x10(%rbp), %rax movq $-0x1, 0x190(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0xae480 callq 0xf6250 movl $0x7e, (%rax) movq $0x0, -0x40(%rbp) jmp 0xbe0c4 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_mi_fetch_keypage: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_34], r9d jmp short $+2 loc_BDF81: mov rax, [rbp+var_10] mov rax, [rax] mov rdi, [rax+278h] mov rax, [rbp+var_10] mov rax, [rax] mov esi, [rax+350h] mov rdx, [rbp+var_20] mov ecx, [rbp+var_24] mov r8, [rbp+var_30] mov rax, [rbp+var_18] movzx r9d, word ptr [rax+0Eh] mov rax, [rbp+var_18] movzx r10d, word ptr [rax+0Eh] mov eax, [rbp+var_34] mov [rsp+60h+var_60], r10d mov [rsp+60h+var_58], eax call key_cache_read mov [rbp+var_40], rax mov rax, [rbp+var_40] mov rcx, [rbp+var_10] cmp rax, [rcx+100h] jnz short loc_BDFEB mov rax, [rbp+var_10] mov byte ptr [rax+33Dh], 1 jmp short loc_BE037 loc_BDFEB: cmp [rbp+var_40], 0 jnz short loc_BE035 jmp short $+2 loc_BDFF4: jmp short $+2 loc_BDFF6: mov rax, [rbp+var_10] mov qword ptr [rax+190h], 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov [rbp+var_8], 0 jmp loc_BE0CC loc_BE035: jmp short $+2 loc_BE037: mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax+190h], rcx mov rax, [rbp+var_40] movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_40] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax and eax, 7FFFh mov [rbp+var_44], eax cmp [rbp+var_44], 4 jb short loc_BE080 mov eax, [rbp+var_44] mov rcx, [rbp+var_18] movzx ecx, word ptr [rcx+0Eh] cmp eax, ecx jbe short loc_BE0C2 loc_BE080: jmp short $+2 loc_BE082: jmp short $+2 loc_BE084: jmp short $+2 loc_BE086: jmp short $+2 loc_BE088: mov rax, [rbp+var_10] mov qword ptr [rax+190h], 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov [rbp+var_40], 0 loc_BE0C2: jmp short $+2 loc_BE0C4: mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_BE0CC: mov rax, [rbp+var_8] add rsp, 60h pop rbp retn
unsigned __int16 * mi_fetch_keypage(_QWORD *a1, long long a2, long long a3, int a4, int a5, int a6) { const char *v6; // rsi const char *v7; // rsi unsigned int v9; // [rsp+1Ch] [rbp-44h] unsigned __int16 *v10; // [rsp+20h] [rbp-40h] v10 = (unsigned __int16 *)key_cache_read( *(_QWORD *)(*a1 + 632LL), *(_DWORD *)(*a1 + 848LL), a3, a4, a5, *(unsigned __int16 *)(a2 + 14), *(unsigned __int16 *)(a2 + 14), a6); if ( v10 == (unsigned __int16 *)a1[32] ) { *((_BYTE *)a1 + 829) = 1; } else if ( !v10 ) { a1[50] = -1LL; v6 = *(const char **)(*a1 + 616LL); mi_report_error(126, (long long)v6); *(_DWORD *)my_thread_var(126LL, v6) = 126; return 0LL; } a1[50] = a3; v9 = _byteswap_ushort(*v10) & 0x7FFF; if ( v9 < 4 || v9 > *(unsigned __int16 *)(a2 + 14) ) { a1[50] = -1LL; v7 = *(const char **)(*a1 + 616LL); mi_report_error(126, (long long)v7); *(_DWORD *)my_thread_var(126LL, v7) = 126; return 0LL; } return v10; }
_mi_fetch_keypage: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV dword ptr [RBP + -0x34],R9D JMP 0x001bdf81 LAB_001bdf81: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x278] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV ESI,dword ptr [RAX + 0x350] MOV RDX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x24] MOV R8,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x18] MOVZX R9D,word ptr [RAX + 0xe] MOV RAX,qword ptr [RBP + -0x18] MOVZX R10D,word ptr [RAX + 0xe] MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RSP],R10D MOV dword ptr [RSP + 0x8],EAX CALL 0x001e4a10 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x100] JNZ 0x001bdfeb MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x33d],0x1 JMP 0x001be037 LAB_001bdfeb: CMP qword ptr [RBP + -0x40],0x0 JNZ 0x001be035 JMP 0x001bdff4 LAB_001bdff4: JMP 0x001bdff6 LAB_001bdff6: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x190],-0x1 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x001ae480 CALL 0x001f6250 MOV dword ptr [RAX],0x7e MOV qword ptr [RBP + -0x8],0x0 JMP 0x001be0cc LAB_001be035: JMP 0x001be037 LAB_001be037: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x190],RCX MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x40] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX AND EAX,0x7fff MOV dword ptr [RBP + -0x44],EAX CMP dword ptr [RBP + -0x44],0x4 JC 0x001be080 MOV EAX,dword ptr [RBP + -0x44] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,word ptr [RCX + 0xe] CMP EAX,ECX JBE 0x001be0c2 LAB_001be080: JMP 0x001be082 LAB_001be082: JMP 0x001be084 LAB_001be084: JMP 0x001be086 LAB_001be086: JMP 0x001be088 LAB_001be088: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x190],-0x1 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x001ae480 CALL 0x001f6250 MOV dword ptr [RAX],0x7e MOV qword ptr [RBP + -0x40],0x0 LAB_001be0c2: JMP 0x001be0c4 LAB_001be0c4: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_001be0cc: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x60 POP RBP RET
byte * _mi_fetch_keypage(long *param_1,long param_2,long param_3,int4 param_4, int8 param_5,int4 param_6) { uint uVar1; int4 *puVar2; byte *local_48; local_48 = (byte *)key_cache_read(*(int8 *)(*param_1 + 0x278), *(int4 *)(*param_1 + 0x350),param_3,param_4,param_5, *(int2 *)(param_2 + 0xe),*(int2 *)(param_2 + 0xe), param_6); if (local_48 == (byte *)param_1[0x20]) { *(int1 *)((long)param_1 + 0x33d) = 1; } else if (local_48 == (byte *)0x0) { param_1[0x32] = -1; mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268)); puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7e; return (byte *)0x0; } param_1[0x32] = param_3; uVar1 = (uint)local_48[1] | (*local_48 & 0x7f) << 8; if ((uVar1 < 4) || (*(ushort *)(param_2 + 0xe) < uVar1)) { param_1[0x32] = -1; mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268)); puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7e; local_48 = (byte *)0x0; } return local_48; }
32,236
pow5mult
eloqsql/libmariadb/libmariadb/ma_dtoa.c
static Bigint *pow5mult(Bigint *b, int k, Stack_alloc *alloc) { Bigint *b1, *p5, *p51=NULL; int i; static int p05[3]= { 5, 25, 125 }; my_bool overflow= FALSE; if ((i= k & 3)) b= multadd(b, p05[i-1], 0, alloc); if (!(k>>= 2)) return b; p5= p5_a; for (;;) { if (k & 1) { b1= mult(b, p5, alloc); Bfree(b, alloc); b= b1; } if (!(k>>= 1)) break; /* Calculate next power of 5 */ if (overflow) { p51= mult(p5, p5, alloc); Bfree(p5, alloc); p5= p51; } else if (p5 < p5_a + P5A_MAX) ++p5; else if (p5 == p5_a + P5A_MAX) { p5= mult(p5, p5, alloc); overflow= TRUE; } } if (p51) Bfree(p51, alloc); return b; }
O0
c
pow5mult: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq $0x0, -0x38(%rbp) movb $0x0, -0x3d(%rbp) movl -0x14(%rbp), %eax andl $0x3, %eax movl %eax, -0x3c(%rbp) cmpl $0x0, %eax je 0x3c613 movq -0x10(%rbp), %rdi movl -0x3c(%rbp), %eax subl $0x1, %eax movslq %eax, %rcx leaq 0x2cb1f(%rip), %rax # 0x69120 movl (%rax,%rcx,4), %esi movq -0x20(%rbp), %rcx xorl %edx, %edx callq 0x3cd50 movq %rax, -0x10(%rbp) movl -0x14(%rbp), %eax sarl $0x2, %eax movl %eax, -0x14(%rbp) cmpl $0x0, %eax jne 0x3c62e movq -0x10(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x3c724 leaq 0x2cafb(%rip), %rax # 0x69130 movq %rax, -0x30(%rbp) movl -0x14(%rbp), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x3c66e movq -0x10(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x3c730 movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x3c980 movq -0x28(%rbp), %rax movq %rax, -0x10(%rbp) movl -0x14(%rbp), %eax sarl %eax movl %eax, -0x14(%rbp) cmpl $0x0, %eax jne 0x3c680 jmp 0x3c708 cmpb $0x0, -0x3d(%rbp) je 0x3c6b2 movq -0x30(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x3c730 movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x3c980 movq -0x38(%rbp), %rax movq %rax, -0x30(%rbp) jmp 0x3c703 leaq 0x2ca77(%rip), %rax # 0x69130 addq $0x90, %rax cmpq %rax, -0x30(%rbp) jae 0x3c6d3 movq -0x30(%rbp), %rax addq $0x18, %rax movq %rax, -0x30(%rbp) jmp 0x3c701 leaq 0x2ca56(%rip), %rax # 0x69130 addq $0x90, %rax cmpq %rax, -0x30(%rbp) jne 0x3c6ff movq -0x30(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x3c730 movq %rax, -0x30(%rbp) movb $0x1, -0x3d(%rbp) jmp 0x3c701 jmp 0x3c703 jmp 0x3c639 cmpq $0x0, -0x38(%rbp) je 0x3c71c movq -0x38(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x3c980 movq -0x10(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nop
pow5mult: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_38], 0 mov [rbp+var_3D], 0 mov eax, [rbp+var_14] and eax, 3 mov [rbp+var_3C], eax cmp eax, 0 jz short loc_3C613 mov rdi, [rbp+var_10] mov eax, [rbp+var_3C] sub eax, 1 movsxd rcx, eax lea rax, pow5mult_p05 mov esi, [rax+rcx*4] mov rcx, [rbp+var_20] xor edx, edx call multadd mov [rbp+var_10], rax loc_3C613: mov eax, [rbp+var_14] sar eax, 2 mov [rbp+var_14], eax cmp eax, 0 jnz short loc_3C62E mov rax, [rbp+var_10] mov [rbp+var_8], rax jmp loc_3C724 loc_3C62E: lea rax, p5_a mov [rbp+var_30], rax loc_3C639: mov eax, [rbp+var_14] and eax, 1 cmp eax, 0 jz short loc_3C66E mov rdi, [rbp+var_10] mov rsi, [rbp+var_30] mov rdx, [rbp+var_20] call mult mov [rbp+var_28], rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] call Bfree mov rax, [rbp+var_28] mov [rbp+var_10], rax loc_3C66E: mov eax, [rbp+var_14] sar eax, 1 mov [rbp+var_14], eax cmp eax, 0 jnz short loc_3C680 jmp loc_3C708 loc_3C680: cmp [rbp+var_3D], 0 jz short loc_3C6B2 mov rdi, [rbp+var_30] mov rsi, [rbp+var_30] mov rdx, [rbp+var_20] call mult mov [rbp+var_38], rax mov rdi, [rbp+var_30] mov rsi, [rbp+var_20] call Bfree mov rax, [rbp+var_38] mov [rbp+var_30], rax jmp short loc_3C703 loc_3C6B2: lea rax, p5_a add rax, 90h cmp [rbp+var_30], rax jnb short loc_3C6D3 mov rax, [rbp+var_30] add rax, 18h mov [rbp+var_30], rax jmp short loc_3C701 loc_3C6D3: lea rax, p5_a add rax, 90h cmp [rbp+var_30], rax jnz short loc_3C6FF mov rdi, [rbp+var_30] mov rsi, [rbp+var_30] mov rdx, [rbp+var_20] call mult mov [rbp+var_30], rax mov [rbp+var_3D], 1 loc_3C6FF: jmp short $+2 loc_3C701: jmp short $+2 loc_3C703: jmp loc_3C639 loc_3C708: cmp [rbp+var_38], 0 jz short loc_3C71C mov rdi, [rbp+var_38] mov rsi, [rbp+var_20] call Bfree loc_3C71C: mov rax, [rbp+var_10] mov [rbp+var_8], rax loc_3C724: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
long long pow5mult(long long a1, int a2, long long a3) { char v4; // [rsp+3h] [rbp-3Dh] _BYTE v5[12]; // [rsp+4h] [rbp-3Ch] _UNKNOWN **v6; // [rsp+10h] [rbp-30h] long long v7; // [rsp+18h] [rbp-28h] int v9; // [rsp+2Ch] [rbp-14h] long long v10; // [rsp+30h] [rbp-10h] v10 = a1; *(_DWORD *)&v5[8] = 0; v4 = 0; *(_QWORD *)v5 = a2 & 3; if ( (a2 & 3) != 0 ) v10 = multadd(a1, pow5mult_p05[*(_DWORD *)v5 - 1], 0LL, a3); v9 = a2 >> 2; if ( !(a2 >> 2) ) return v10; v6 = &p5_a; while ( 1 ) { if ( (v9 & 1) != 0 ) { v7 = mult(v10, v6, a3); Bfree(v10, a3); v10 = v7; } v9 >>= 1; if ( !v9 ) break; if ( v4 ) { *(_QWORD *)&v5[4] = mult(v6, v6, a3); Bfree(v6, a3); v6 = *(_UNKNOWN ***)&v5[4]; } else if ( v6 >= &p5_a + 18 ) { if ( v6 == &p5_a + 18 ) { v6 = (_UNKNOWN **)mult(v6, v6, a3); v4 = 1; } } else { v6 += 3; } } if ( *(_QWORD *)&v5[4] ) Bfree(*(_QWORD *)&v5[4], a3); return v10; }
pow5mult: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x38],0x0 MOV byte ptr [RBP + -0x3d],0x0 MOV EAX,dword ptr [RBP + -0x14] AND EAX,0x3 MOV dword ptr [RBP + -0x3c],EAX CMP EAX,0x0 JZ 0x0013c613 MOV RDI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x3c] SUB EAX,0x1 MOVSXD RCX,EAX LEA RAX,[0x169120] MOV ESI,dword ptr [RAX + RCX*0x4] MOV RCX,qword ptr [RBP + -0x20] XOR EDX,EDX CALL 0x0013cd50 MOV qword ptr [RBP + -0x10],RAX LAB_0013c613: MOV EAX,dword ptr [RBP + -0x14] SAR EAX,0x2 MOV dword ptr [RBP + -0x14],EAX CMP EAX,0x0 JNZ 0x0013c62e MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x8],RAX JMP 0x0013c724 LAB_0013c62e: LEA RAX,[0x169130] MOV qword ptr [RBP + -0x30],RAX LAB_0013c639: MOV EAX,dword ptr [RBP + -0x14] AND EAX,0x1 CMP EAX,0x0 JZ 0x0013c66e MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x20] CALL 0x0013c730 MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] CALL 0x0013c980 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x10],RAX LAB_0013c66e: MOV EAX,dword ptr [RBP + -0x14] SAR EAX,0x1 MOV dword ptr [RBP + -0x14],EAX CMP EAX,0x0 JNZ 0x0013c680 JMP 0x0013c708 LAB_0013c680: CMP byte ptr [RBP + -0x3d],0x0 JZ 0x0013c6b2 MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x20] CALL 0x0013c730 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x20] CALL 0x0013c980 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x30],RAX JMP 0x0013c703 LAB_0013c6b2: LEA RAX,[0x169130] ADD RAX,0x90 CMP qword ptr [RBP + -0x30],RAX JNC 0x0013c6d3 MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x18 MOV qword ptr [RBP + -0x30],RAX JMP 0x0013c701 LAB_0013c6d3: LEA RAX,[0x169130] ADD RAX,0x90 CMP qword ptr [RBP + -0x30],RAX JNZ 0x0013c6ff MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x20] CALL 0x0013c730 MOV qword ptr [RBP + -0x30],RAX MOV byte ptr [RBP + -0x3d],0x1 LAB_0013c6ff: JMP 0x0013c701 LAB_0013c701: JMP 0x0013c703 LAB_0013c703: JMP 0x0013c639 LAB_0013c708: CMP qword ptr [RBP + -0x38],0x0 JZ 0x0013c71c MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x20] CALL 0x0013c980 LAB_0013c71c: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x8],RAX LAB_0013c724: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
int8 pow5mult(int8 param_1,uint param_2,int8 param_3) { bool bVar1; int8 uVar2; int1 *local_40; int1 *local_38; uint local_1c; int8 local_18; int8 local_10; local_40 = (int1 *)0x0; bVar1 = false; local_18 = param_1; if ((param_2 & 3) != 0) { local_18 = multadd(param_1,*(int4 *)(pow5mult_p05 + (long)(int)((param_2 & 3) - 1) * 4),0, param_3); } local_1c = (int)param_2 >> 2; if (local_1c == 0) { local_10 = local_18; } else { local_38 = p5_a; while( true ) { if ((local_1c & 1) != 0) { uVar2 = mult(local_18,local_38,param_3); Bfree(local_18,param_3); local_18 = uVar2; } local_1c = (int)local_1c >> 1; if (local_1c == 0) break; if (bVar1) { local_40 = (int1 *)mult(local_38,local_38,param_3); Bfree(local_38,param_3); local_38 = local_40; } else if (local_38 < (int1 *)0x1691c0) { local_38 = local_38 + 0x18; } else if (local_38 == (int1 *)0x1691c0) { local_38 = (int1 *)mult(0x1691c0,0x1691c0,param_3); bVar1 = true; } } if (local_40 != (int1 *)0x0) { Bfree(local_40,param_3); } local_10 = local_18; } return local_10; }
32,237
cmd_first
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal-src/src/svc/svc_shell.c
const SVC_SHELL_CMD_T* _cmd_first(SVC_SHELL_CMD_LIST_IT_T * it) { it->idx = 0 ; if (!_qshell_static_list.cmds || !_qshell_static_list.cmds[0].cmd) { it->lst = _qshell_static_list.next ; } else { it->lst = &_qshell_static_list ; } if (!it->lst) return 0 ; return &it->lst->cmds[it->idx] ; }
O3
c
cmd_first: pushq %rbp movq %rsp, %rbp movl $0x0, 0x8(%rdi) movq 0x292da(%rip), %rax # 0x40e00 testq %rax, %rax je 0x17b3d cmpq $0x0, (%rax) je 0x17b3d leaq 0x292b8(%rip), %rcx # 0x40df0 movq %rcx, (%rdi) jmp 0x17b54 movq 0x292ac(%rip), %rax # 0x40df0 movq %rax, (%rdi) testq %rax, %rax je 0x17b52 movq 0x10(%rax), %rax jmp 0x17b54 xorl %eax, %eax popq %rbp retq
_cmd_first: push rbp mov rbp, rsp mov dword ptr [rdi+8], 0 mov rax, cs:qword_40E00 test rax, rax jz short loc_17B3D cmp qword ptr [rax], 0 jz short loc_17B3D lea rcx, _qshell_static_list mov [rdi], rcx jmp short loc_17B54 loc_17B3D: mov rax, cs:_qshell_static_list mov [rdi], rax test rax, rax jz short loc_17B52 mov rax, [rax+10h] jmp short loc_17B54 loc_17B52: xor eax, eax loc_17B54: pop rbp retn
long long cmd_first(long long a1) { long long result; // rax long long v2; // rax *(_DWORD *)(a1 + 8) = 0; result = qword_40E00; if ( qword_40E00 && *(_QWORD *)qword_40E00 ) { *(_QWORD *)a1 = &qshell_static_list; } else { v2 = qshell_static_list; *(_QWORD *)a1 = qshell_static_list; if ( v2 ) return *(_QWORD *)(v2 + 16); else return 0LL; } return result; }
_cmd_first: PUSH RBP MOV RBP,RSP MOV dword ptr [RDI + 0x8],0x0 MOV RAX,qword ptr [0x00140e00] TEST RAX,RAX JZ 0x00117b3d CMP qword ptr [RAX],0x0 JZ 0x00117b3d LEA RCX,[0x140df0] MOV qword ptr [RDI],RCX JMP 0x00117b54 LAB_00117b3d: MOV RAX,qword ptr [0x00140df0] MOV qword ptr [RDI],RAX TEST RAX,RAX JZ 0x00117b52 MOV RAX,qword ptr [RAX + 0x10] JMP 0x00117b54 LAB_00117b52: XOR EAX,EAX LAB_00117b54: POP RBP RET
long * _cmd_first(long *param_1) { long lVar1; long *plVar2; *(int4 *)(param_1 + 1) = 0; plVar2 = DAT_00140e00; lVar1 = _qshell_static_list; if ((DAT_00140e00 == (long *)0x0) || (*DAT_00140e00 == 0)) { *param_1 = _qshell_static_list; if (lVar1 == 0) { plVar2 = (long *)0x0; } else { plVar2 = *(long **)(lVar1 + 0x10); } } else { *param_1 = (long)&_qshell_static_list; } return plVar2; }
32,238
minja::Parser::parseString[abi:cxx11]()
monkey531[P]llama/common/minja.hpp
std::unique_ptr<std::string> parseString() { auto doParse = [&](char quote) -> std::unique_ptr<std::string> { if (it == end || *it != quote) return nullptr; std::string result; bool escape = false; for (++it; it != end; ++it) { if (escape) { escape = false; switch (*it) { case 'n': result += '\n'; break; case 'r': result += '\r'; break; case 't': result += '\t'; break; case 'b': result += '\b'; break; case 'f': result += '\f'; break; case '\\': result += '\\'; break; default: if (*it == quote) { result += quote; } else { result += *it; } break; } } else if (*it == '\\') { escape = true; } else if (*it == quote) { ++it; return std::make_unique<std::string>(std::move(result)); } else { result += *it; } } return nullptr; }; consumeSpaces(); if (it == end) return nullptr; if (*it == '"') return doParse('"'); if (*it == '\'') return doParse('\''); return nullptr; }
O0
cpp
minja::Parser::parseString[abi:cxx11](): subq $0x38, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x28(%rsp), %rdi movq %rdi, 0x18(%rsp) movq %rdi, 0x20(%rsp) movl $0x1, %esi callq 0x111030 movq 0x18(%rsp), %rsi movq %rsi, %rdi addq $0x20, %rdi addq $0x18, %rsi callq 0xe3070 testb $0x1, %al jne 0x11e16f jmp 0x11e17f movq 0x8(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x11eaf0 jmp 0x11e1e5 movq 0x18(%rsp), %rdi addq $0x20, %rdi callq 0xa6ed0 movsbl (%rax), %eax cmpl $0x22, %eax jne 0x11e1ab movq 0x8(%rsp), %rdi leaq 0x20(%rsp), %rsi movl $0x22, %edx callq 0x11eb30 jmp 0x11e1e5 movq 0x18(%rsp), %rdi addq $0x20, %rdi callq 0xa6ed0 movsbl (%rax), %eax cmpl $0x27, %eax jne 0x11e1d7 movq 0x8(%rsp), %rdi leaq 0x20(%rsp), %rsi movl $0x27, %edx callq 0x11eb30 jmp 0x11e1e5 movq 0x8(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x11eaf0 movq 0x10(%rsp), %rax addq $0x38, %rsp retq nop
_ZN5minja6Parser11parseStringB5cxx11Ev: sub rsp, 38h mov [rsp+38h+var_30], rdi mov rax, rdi mov [rsp+38h+var_28], rax mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov rdi, [rsp+38h+var_10] mov [rsp+38h+var_20], rdi mov [rsp+38h+var_18], rdi mov esi, 1 call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling) mov rsi, [rsp+38h+var_20] mov rdi, rsi add rdi, 20h ; ' ' add rsi, 18h call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator==<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&) test al, 1 jnz short loc_11E16F jmp short loc_11E17F loc_11E16F: mov rdi, [rsp+38h+var_30] xor eax, eax mov esi, eax call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr)) jmp short loc_11E1E5 loc_11E17F: mov rdi, [rsp+38h+var_20] add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] cmp eax, 22h ; '"' jnz short loc_11E1AB mov rdi, [rsp+38h+var_30] lea rsi, [rsp+38h+var_18] mov edx, 22h ; '"' call _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec; minja::Parser::parseString(void)::{lambda(char)#1}::operator()(char) jmp short loc_11E1E5 loc_11E1AB: mov rdi, [rsp+38h+var_20] add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] cmp eax, 27h ; ''' jnz short loc_11E1D7 mov rdi, [rsp+38h+var_30] lea rsi, [rsp+38h+var_18] mov edx, 27h ; ''' call _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec; minja::Parser::parseString(void)::{lambda(char)#1}::operator()(char) jmp short loc_11E1E5 loc_11E1D7: mov rdi, [rsp+38h+var_30] xor eax, eax mov esi, eax call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr)) loc_11E1E5: mov rax, [rsp+38h+var_28] add rsp, 38h retn
32,239
minja::Parser::parseString[abi:cxx11]()
monkey531[P]llama/common/minja.hpp
std::unique_ptr<std::string> parseString() { auto doParse = [&](char quote) -> std::unique_ptr<std::string> { if (it == end || *it != quote) return nullptr; std::string result; bool escape = false; for (++it; it != end; ++it) { if (escape) { escape = false; switch (*it) { case 'n': result += '\n'; break; case 'r': result += '\r'; break; case 't': result += '\t'; break; case 'b': result += '\b'; break; case 'f': result += '\f'; break; case '\\': result += '\\'; break; default: if (*it == quote) { result += quote; } else { result += *it; } break; } } else if (*it == '\\') { escape = true; } else if (*it == quote) { ++it; return std::make_unique<std::string>(std::move(result)); } else { result += *it; } } return nullptr; }; consumeSpaces(); if (it == end) return nullptr; if (*it == '"') return doParse('"'); if (*it == '\'') return doParse('\''); return nullptr; }
O2
cpp
minja::Parser::parseString[abi:cxx11](): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq %rsi, (%rsp) pushq $0x1 popq %rsi movq %r14, %rdi callq 0x61fdc movq 0x20(%r14), %rax cmpq 0x18(%r14), %rax je 0x67639 movzbl (%rax), %eax cmpl $0x27, %eax je 0x6763f cmpl $0x22, %eax jne 0x67639 movq %rsp, %rsi pushq $0x22 jmp 0x67644 andq $0x0, (%rbx) jmp 0x6764d movq %rsp, %rsi pushq $0x27 popq %rdx movq %rbx, %rdi callq 0x679b4 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN5minja6Parser11parseStringB5cxx11Ev: push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov [rsp+18h+var_18], rsi push 1 pop rsi mov rdi, r14 call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling) mov rax, [r14+20h] cmp rax, [r14+18h] jz short loc_67639 movzx eax, byte ptr [rax] cmp eax, 27h ; ''' jz short loc_6763F cmp eax, 22h ; '"' jnz short loc_67639 mov rsi, rsp push 22h ; '"' jmp short loc_67644 loc_67639: and qword ptr [rbx], 0 jmp short loc_6764D loc_6763F: mov rsi, rsp push 27h ; ''' loc_67644: pop rdx mov rdi, rbx call _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec; minja::Parser::parseString(void)::{lambda(char)#1}::operator()(char) loc_6764D: mov rax, rbx add rsp, 8 pop rbx pop r14 retn
_QWORD * minja::Parser::parseString[abi:cxx11](_QWORD *a1, long long a2) { int v2; // ecx int v3; // r8d int v4; // r9d unsigned __int8 *v5; // rax int v6; // eax char v8[24]; // [rsp+0h] [rbp-18h] BYREF *(_QWORD *)v8 = a2; minja::Parser::consumeSpaces(a2, 1); v5 = *(unsigned __int8 **)(a2 + 32); if ( v5 == *(unsigned __int8 **)(a2 + 24) ) goto LABEL_5; v6 = *v5; if ( v6 == 39 ) { minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11]( (_DWORD)a1, (unsigned int)v8, 39, v2, v3, v4, v8[0]); return a1; } if ( v6 != 34 ) LABEL_5: *a1 = 0LL; else minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11]( (_DWORD)a1, (unsigned int)v8, 34, v2, v3, v4, v8[0]); return a1; }
parseString[abi:cxx11]: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV qword ptr [RSP],RSI PUSH 0x1 POP RSI MOV RDI,R14 CALL 0x00161fdc MOV RAX,qword ptr [R14 + 0x20] CMP RAX,qword ptr [R14 + 0x18] JZ 0x00167639 MOVZX EAX,byte ptr [RAX] CMP EAX,0x27 JZ 0x0016763f CMP EAX,0x22 JNZ 0x00167639 MOV RSI,RSP PUSH 0x22 JMP 0x00167644 LAB_00167639: AND qword ptr [RBX],0x0 JMP 0x0016764d LAB_0016763f: MOV RSI,RSP PUSH 0x27 LAB_00167644: POP RDX MOV RDI,RBX CALL 0x001679b4 LAB_0016764d: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* minja::Parser::parseString[abi:cxx11]() */ void minja::Parser::parseString_abi_cxx11_(void) { char cVar1; long in_RSI; int8 *in_RDI; consumeSpaces(); if ((*(char **)(in_RSI + 0x20) == *(char **)(in_RSI + 0x18)) || ((cVar1 = **(char **)(in_RSI + 0x20), cVar1 != '\'' && (cVar1 != '\"')))) { *in_RDI = 0; } else { parseString[abi:cxx11]()::{lambda(char)#1}::operator()[abi_cxx11_((char)in_RDI); } return; }
32,240
my_hash_iterate
eloqsql/mysys/hash.c
my_bool my_hash_iterate(HASH *hash, my_hash_walk_action action, void *argument) { uint records, i; records= hash->records; for (i= 0 ; i < records ; i++) { if ((*action)(dynamic_element(&hash->array, i, HASH_LINK *)->data, argument)) return 1; } return 0; }
O0
c
my_hash_iterate: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movl %eax, -0x24(%rbp) movl $0x0, -0x28(%rbp) movl -0x28(%rbp), %eax cmpl -0x24(%rbp), %eax jae 0x35245 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x28(%rcx), %rcx movl -0x28(%rbp), %edx shlq $0x4, %rdx addq %rdx, %rcx movq 0x8(%rcx), %rdi movq -0x20(%rbp), %rsi callq *%rax cmpb $0x0, %al je 0x35238 movb $0x1, -0x1(%rbp) jmp 0x35249 jmp 0x3523a movl -0x28(%rbp), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x35206 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
my_hash_iterate: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax+18h] mov [rbp+var_24], eax mov [rbp+var_28], 0 loc_35206: mov eax, [rbp+var_28] cmp eax, [rbp+var_24] jnb short loc_35245 mov rax, [rbp+var_18] mov rcx, [rbp+var_10] mov rcx, [rcx+28h] mov edx, [rbp+var_28] shl rdx, 4 add rcx, rdx mov rdi, [rcx+8] mov rsi, [rbp+var_20] call rax cmp al, 0 jz short loc_35238 mov [rbp+var_1], 1 jmp short loc_35249 loc_35238: jmp short $+2 loc_3523A: mov eax, [rbp+var_28] add eax, 1 mov [rbp+var_28], eax jmp short loc_35206 loc_35245: mov [rbp+var_1], 0 loc_35249: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char my_hash_iterate(long long a1, unsigned __int8 ( *a2)(_QWORD, long long), long long a3) { unsigned int i; // [rsp+8h] [rbp-28h] unsigned int v5; // [rsp+Ch] [rbp-24h] v5 = *(_QWORD *)(a1 + 24); for ( i = 0; i < v5; ++i ) { if ( a2(*(_QWORD *)(16LL * i + *(_QWORD *)(a1 + 40) + 8), a3) ) return 1; } return 0; }
my_hash_iterate: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV dword ptr [RBP + -0x24],EAX MOV dword ptr [RBP + -0x28],0x0 LAB_00135206: MOV EAX,dword ptr [RBP + -0x28] CMP EAX,dword ptr [RBP + -0x24] JNC 0x00135245 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x28] MOV EDX,dword ptr [RBP + -0x28] SHL RDX,0x4 ADD RCX,RDX MOV RDI,qword ptr [RCX + 0x8] MOV RSI,qword ptr [RBP + -0x20] CALL RAX CMP AL,0x0 JZ 0x00135238 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00135249 LAB_00135238: JMP 0x0013523a LAB_0013523a: MOV EAX,dword ptr [RBP + -0x28] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX JMP 0x00135206 LAB_00135245: MOV byte ptr [RBP + -0x1],0x0 LAB_00135249: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 my_hash_iterate(long param_1,code *param_2,int8 param_3) { int8 uVar1; char cVar2; uint local_30; uVar1 = *(int8 *)(param_1 + 0x18); local_30 = 0; while( true ) { if ((uint)uVar1 <= local_30) { return 0; } cVar2 = (*param_2)(*(int8 *)(*(long *)(param_1 + 0x28) + (ulong)local_30 * 0x10 + 8), param_3); if (cVar2 != '\0') break; local_30 = local_30 + 1; } return 1; }
32,241
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
monkey531[P]llama/common/json.hpp
static type_error create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t): subq $0xd8, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0xd0(%rsp) movl %esi, 0xcc(%rsp) movq %rdx, 0xc0(%rsp) movq %rcx, 0xb8(%rsp) leaq 0x57(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x5f190 movq 0x18(%rsp), %rdx leaq 0xb1734(%rip), %rsi # 0x22e642 leaq 0x58(%rsp), %rdi callq 0x77040 jmp 0x17cf1a movl 0xcc(%rsp), %edx leaq 0x78(%rsp), %rdi leaq 0x58(%rsp), %rsi callq 0xc3e70 jmp 0x17cf32 xorl %eax, %eax movl %eax, %esi leaq 0x20(%rsp), %rdi callq 0xc3f10 jmp 0x17cf42 movq 0xc0(%rsp), %rcx leaq 0x98(%rsp), %rdi leaq 0x78(%rsp), %rsi leaq 0x20(%rsp), %rdx callq 0xc3db0 jmp 0x17cf63 leaq 0x20(%rsp), %rdi callq 0x5f628 leaq 0x78(%rsp), %rdi callq 0x5f628 leaq 0x58(%rsp), %rdi callq 0x5f628 leaq 0x57(%rsp), %rdi callq 0x5f600 movl 0xcc(%rsp), %eax movl %eax, 0x4(%rsp) leaq 0x98(%rsp), %rdi callq 0x5e1c0 movq 0x8(%rsp), %rdi movl 0x4(%rsp), %esi movq %rax, %rdx callq 0xd83e0 jmp 0x17cfb6 leaq 0x98(%rsp), %rdi callq 0x5f628 movq 0x10(%rsp), %rax addq $0xd8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x17d02c movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x17d022 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x17d018 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) leaq 0x20(%rsp), %rdi callq 0x5f628 leaq 0x78(%rsp), %rdi callq 0x5f628 leaq 0x58(%rsp), %rdi callq 0x5f628 leaq 0x57(%rsp), %rdi callq 0x5f600 jmp 0x17d053 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) leaq 0x98(%rsp), %rdi callq 0x5f628 movq 0x48(%rsp), %rdi callq 0x5ec30 nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: sub rsp, 0D8h mov [rsp+0D8h+var_D0], rdi; int mov rax, rdi mov qword ptr [rsp+0D8h+var_C8], rax; int mov [rsp+0D8h+var_8], rdi mov [rsp+0D8h+var_C], esi mov qword ptr [rsp+0D8h+var_18], rdx mov [rsp+0D8h+var_20], rcx lea rdi, [rsp+0D8h+var_81] mov qword ptr [rsp+0D8h+var_C0], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+0D8h+var_C0] lea rsi, aTypeError; "type_error" lea rdi, [rsp+0D8h+var_81+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_17CF1A: mov edx, [rsp+0D8h+var_C] lea rdi, [rsp+0D8h+var_60]; int lea rsi, [rsp+0D8h+var_81+1] call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) jmp short $+2 loc_17CF32: xor eax, eax mov esi, eax lea rdi, [rsp+0D8h+var_B8] call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsB5cxx11EDn; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics(decltype(nullptr)) jmp short $+2 loc_17CF42: mov rcx, qword ptr [rsp+0D8h+var_18]; int lea rdi, [rsp+0D8h+var_40]; int lea rsi, [rsp+0D8h+var_60]; int lea rdx, [rsp+0D8h+var_B8]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&) jmp short $+2 loc_17CF63: lea rdi, [rsp+0D8h+var_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_81+1]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_81] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov eax, [rsp+0D8h+var_C] mov [rsp+0D8h+var_D4], eax lea rdi, [rsp+0D8h+var_40] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, [rsp+0D8h+var_D0]; this mov esi, [rsp+0D8h+var_D4]; int mov rdx, rax; char * call _ZN8nlohmann16json_abi_v3_11_36detail10type_errorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::type_error::type_error(int,char const*) jmp short $+2 loc_17CFB6: lea rdi, [rsp+0D8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rax, qword ptr [rsp+0D8h+var_C8] add rsp, 0D8h retn mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_17D02C mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_17D022 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_17D018 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax lea rdi, [rsp+arg_18]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_17D018: lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_17D022: lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_17D02C: lea rdi, [rsp+arg_4F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_17D053 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax lea rdi, [rsp+arg_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_17D053: mov rdi, [rsp+arg_40] call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::type_error * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( nlohmann::json_abi_v3_11_3::detail::type_error *a1, long long a2, long long a3, long long a4) { const char *v4; // rax int v6; // [rsp+4h] [rbp-D4h] int v7[13]; // [rsp+20h] [rbp-B8h] BYREF int v8[8]; // [rsp+57h] [rbp-81h] BYREF int v9[8]; // [rsp+78h] [rbp-60h] BYREF int v10[8]; // [rsp+98h] [rbp-40h] BYREF long long v11; // [rsp+B8h] [rbp-20h] int v12[2]; // [rsp+C0h] [rbp-18h] int v13; // [rsp+CCh] [rbp-Ch] nlohmann::json_abi_v3_11_3::detail::type_error *v14; // [rsp+D0h] [rbp-8h] v14 = a1; v13 = a2; *(_QWORD *)v12 = a3; v11 = a4; std::allocator<char>::allocator(v8, a2); std::string::basic_string<std::allocator<char>>((long long)v8 + 1, (long long)"type_error", (long long)v8); nlohmann::json_abi_v3_11_3::detail::exception::name(v9, (long long)v8 + 1, v13); nlohmann::json_abi_v3_11_3::detail::exception::diagnostics[abi:cxx11]((long long)v7, 0LL); nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>( (long long)v10, (long long)v9, (long long)v7, *(long long *)v12); std::string::~string(v7); std::string::~string(v9); std::string::~string((char *)v8 + 1); std::allocator<char>::~allocator(v8); v6 = v13; v4 = (const char *)std::string::c_str(v10); nlohmann::json_abi_v3_11_3::detail::type_error::type_error(a1, v6, v4); std::string::~string(v10); return a1; }
32,242
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
monkey531[P]llama/common/json.hpp
static type_error create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O1
cpp
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %rbx leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x4dad1(%rip), %rsi # 0xfd0c4 leaq 0x4dad4(%rip), %rdx # 0xfd0ce leaq 0x28(%rsp), %rdi callq 0x2d748 leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x65e30 leaq 0x78(%rsp), %r14 movq %r14, -0x10(%r14) xorl %eax, %eax movq %rax, -0x8(%r14) movb %al, (%r14) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq %rax, -0x8(%r12) movb %al, (%r12) movq 0x8(%r15), %rsi addq 0x50(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x1bde0 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1b260 movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1b260 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x1b260 movq 0x68(%rsp), %rdi cmpq %r14, %rdi je 0xaf69d movq 0x78(%rsp), %rsi incq %rsi callq 0x1b8f0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xaf6b8 movq 0x58(%rsp), %rsi incq %rsi callq 0x1b8f0 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0xaf6cf movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8f0 movq 0x8(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x6609e leaq 0x8b83b(%rip), %rax # 0x13af20 addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xaf703 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8f0 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xaf791 movq 0x18(%rsp), %rsi jmp 0xaf789 movq %rax, %rbx jmp 0xaf77a movq %rax, %rbx jmp 0xaf791 movq %rdx, %rbx movq %rax, %r15 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xaf753 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8f0 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x88(%rsp), %r12 movq %r14, %rsi movq %r15, %rcx movl %ebx, %r8d movq %r12, %r9 callq 0x1d061 movq (%r12), %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0xaf791 movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8f0 movq %rbx, %rdi callq 0x1c020 nop
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r15, rdx mov ebp, esi mov rbx, rdi lea r13, [rsp+0C8h+var_90] mov [r13-10h], r13 lea rsi, aTypeError; "type_error" lea rdx, aTypeError+0Ah; "" lea rdi, [rsp+0C8h+var_A0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0C8h+var_80]; int lea rsi, [rsp+0C8h+var_A0]; int mov edx, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea r14, [rsp+0C8h+var_50] mov [r14-10h], r14 xor eax, eax mov [r14-8], rax mov [r14], al lea r12, [rsp+0C8h+var_B0] mov [r12-10h], r12 mov [r12-8], rax mov [r12], al mov rsi, [r15+8] add rsi, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rsi, qword ptr [rsp+0C8h+var_80] mov rdx, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [rsp+0C8h+var_60] mov rdx, [rsp+0C8h+var_58] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0C8h+var_60]; void * cmp rdi, r14 jz short loc_AF69D mov rsi, [rsp+0C8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AF69D: lea rax, [rsp+0C8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_AF6B8 mov rsi, [rsp+0C8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AF6B8: mov rdi, [rsp+0C8h+var_A0]; void * cmp rdi, r13 jz short loc_AF6CF mov rsi, [rsp+0C8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AF6CF: mov rdx, [rsp+0C8h+var_C0]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*) lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail10type_errorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::type_error add rax, 10h mov [rbx], rax mov rdi, [rsp+0C8h+var_C0]; void * cmp rdi, r12 jz short loc_AF703 mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AF703: mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0] cmp rdi, r12 jz short loc_AF791 mov rsi, [rsp+arg_10] jmp short loc_AF789 mov rbx, rax jmp short loc_AF77A mov rbx, rax jmp short loc_AF791 mov rbx, rdx mov r15, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_AF753 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AF753: lea rdi, [rsp+arg_60] lea rdx, [rsp+arg_40] lea r12, [rsp+arg_80] mov rsi, r14 mov rcx, r15 mov r8d, ebx mov r9, r12 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5__cold_1 mov rbx, [r12] loc_AF77A: mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_AF791 mov rsi, [rsp+arg_30] loc_AF789: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AF791: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( nlohmann::json_abi_v3_11_3::detail::exception *this, int a2, _QWORD *a3) { char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF _QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF int v9[2]; // [rsp+48h] [rbp-80h] BYREF long long v10; // [rsp+50h] [rbp-78h] long long v11; // [rsp+58h] [rbp-70h] BYREF void *v12; // [rsp+68h] [rbp-60h] long long v13; // [rsp+70h] [rbp-58h] _QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF v7[0] = v8; std::string::_M_construct<char const*>(v7, "type_error", (long long)""); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2); v12 = v14; v13 = 0LL; LOBYTE(v14[0]) = 0; v5[0] = (char *)v6; v5[1] = 0LL; LOBYTE(v6[0]) = 0; std::string::reserve(v5, v10 + a3[1]); std::string::_M_append(v5, *(_QWORD *)v9, v10); std::string::_M_append(v5, v12, v13); std::string::_M_append(v5, *a3, a3[1]); if ( v12 != v14 ) operator delete(v12, v14[0] + 1LL); if ( *(long long **)v9 != &v11 ) operator delete(*(void **)v9, v11 + 1); if ( v7[0] != v8 ) operator delete(v7[0], v8[0] + 1LL); nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]); *(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::type_error + 2; if ( (_QWORD *)v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R15,RDX MOV EBP,ESI MOV RBX,RDI LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LAB_001af5ec: LEA RSI,[0x1fd0c4] LEA RDX,[0x1fd0ce] LEA RDI,[RSP + 0x28] CALL 0x0012d748 LAB_001af604: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x00165e30 LEA R14,[RSP + 0x78] MOV qword ptr [R14 + -0x10],R14 XOR EAX,EAX MOV qword ptr [R14 + -0x8],RAX MOV byte ptr [R14],AL LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV qword ptr [R12 + -0x8],RAX MOV byte ptr [R12],AL MOV RSI,qword ptr [R15 + 0x8] ADD RSI,qword ptr [RSP + 0x50] LAB_001af643: LEA RDI,[RSP + 0x8] CALL 0x0011bde0 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x8] CALL 0x0011b260 MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] LEA RDI,[RSP + 0x8] CALL 0x0011b260 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x0011b260 MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R14 JZ 0x001af69d MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0011b8f0 LAB_001af69d: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001af6b8 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011b8f0 LAB_001af6b8: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x001af6cf MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011b8f0 LAB_001af6cf: MOV RDX,qword ptr [RSP + 0x8] LAB_001af6d4: MOV RDI,RBX MOV ESI,EBP CALL 0x0016609e LAB_001af6de: LEA RAX,[0x23af20] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x001af703 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011b8f0 LAB_001af703: MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
exception * _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (exception *param_1,int param_2,ulong *param_3) { char *local_c0; int8 local_b8; char local_b0; int7 uStack_af; long *local_a0 [2]; long local_90 [2]; long *local_80 [2]; long local_70 [2]; int1 *local_60; int8 local_58; int1 local_50; int7 uStack_4f; /* try { // try from 001af5ec to 001af603 has its CatchHandler @ 001af731 */ local_a0[0] = local_90; std::__cxx11::string::_M_construct<char_const*>(local_a0,"type_error",""); /* try { // try from 001af604 to 001af614 has its CatchHandler @ 001af72c */ nlohmann::json_abi_v3_11_3::detail::exception::name ((exception *)local_80,(string *)local_a0,param_2); local_58 = 0; local_50 = 0; local_b8 = 0; local_b0 = '\0'; /* try { // try from 001af643 to 001af685 has its CatchHandler @ 001af736 */ local_c0 = &local_b0; local_60 = &local_50; std::__cxx11::string::reserve((ulong)&local_c0); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60); std::__cxx11::string::_M_append((char *)&local_c0,*param_3); if (local_60 != &local_50) { operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1); } if (local_80[0] != local_70) { operator_delete(local_80[0],local_70[0] + 1); } if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } /* try { // try from 001af6d4 to 001af6dd has its CatchHandler @ 001af718 */ nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0); *(int ***)param_1 = &PTR__exception_0023af30; if (local_c0 != &local_b0) { operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1); } return param_1; }
32,243
MyCTX::update(unsigned char const*, unsigned int, unsigned char*, unsigned int*)
eloqsql/mysys_ssl/my_crypt.cc
virtual int update(const uchar *src, uint slen, uchar *dst, uint *dlen) { #ifdef HAVE_WOLFSSL // WolfSSL checks parameters and does not like NULL pointers to be passed to function below. if (!src) { static uchar dummy[MY_AES_BLOCK_SIZE]; DBUG_ASSERT(!slen); src=dummy; } #endif if (EVP_CipherUpdate(ctx, dst, (int*)dlen, src, slen) != 1) return MY_AES_OPENSSL_ERROR; return MY_AES_OK; }
O3
cpp
MyCTX::update(unsigned char const*, unsigned int, unsigned char*, unsigned int*): pushq %rbp movq %rsp, %rbp movl %edx, %eax movq %rsi, %r9 movq 0xc8(%rdi), %rdi movq %rcx, %rsi movq %r8, %rdx movq %r9, %rcx movl %eax, %r8d callq 0x29890 xorl %ecx, %ecx cmpl $0x1, %eax movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmovel %ecx, %eax popq %rbp retq
_ZN5MyCTX6updateEPKhjPhPj: push rbp mov rbp, rsp mov eax, edx mov r9, rsi mov rdi, [rdi+0C8h] mov rsi, rcx mov rdx, r8 mov rcx, r9 mov r8d, eax call _EVP_CipherUpdate xor ecx, ecx cmp eax, 1 mov eax, 0FFFFFF9Bh cmovz eax, ecx pop rbp retn
long long MyCTX::update( MyCTX *this, const unsigned __int8 *a2, unsigned int a3, unsigned __int8 *a4, unsigned int *a5) { bool v5; // zf long long result; // rax v5 = (unsigned int)EVP_CipherUpdate(*((_QWORD *)this + 25), a4, a5, a2) == 1; result = 4294967195LL; if ( v5 ) return 0LL; return result; }
update: PUSH RBP MOV RBP,RSP MOV EAX,EDX MOV R9,RSI MOV RDI,qword ptr [RDI + 0xc8] MOV RSI,RCX MOV RDX,R8 MOV RCX,R9 MOV R8D,EAX CALL 0x00129890 XOR ECX,ECX CMP EAX,0x1 MOV EAX,0xffffff9b CMOVZ EAX,ECX POP RBP RET
/* MyCTX::update(unsigned char const*, unsigned int, unsigned char*, unsigned int*) */ int8 __thiscall MyCTX::update(MyCTX *this,uchar *param_1,uint param_2,uchar *param_3,uint *param_4) { int iVar1; int8 uVar2; iVar1 = EVP_CipherUpdate(*(EVP_CIPHER_CTX **)(this + 200),param_3,(int *)param_4,param_1,param_2); uVar2 = 0xffffff9b; if (iVar1 == 1) { uVar2 = 0; } return uVar2; }
32,244
translog_buffer_destroy
eloqsql/storage/maria/ma_loghandler.c
static void translog_buffer_destroy(struct st_translog_buffer *buffer) { DBUG_ENTER("translog_buffer_destroy"); DBUG_PRINT("enter", ("Buffer #%u: %p file: %d offset: " LSN_FMT " size: %lu", (uint) buffer->buffer_no, buffer, (buffer->file ? buffer->file->handler.file : -1), LSN_IN_PARTS(buffer->offset), (ulong) buffer->size)); if (buffer->file != NULL) { /* We ignore errors here, because we can't do something about it (it is shutting down) We also have to take the locks even if there can't be any other threads running, because translog_buffer_flush() requires that we have the buffer locked. */ translog_buffer_lock(buffer); translog_buffer_flush(buffer); translog_buffer_unlock(buffer); } DBUG_PRINT("info", ("Destroy mutex: %p", &buffer->mutex)); mysql_mutex_destroy(&buffer->mutex); mysql_cond_destroy(&buffer->waiting_filling_buffer); DBUG_VOID_RETURN; }
O0
c
translog_buffer_destroy: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) jmp 0x33c9e movq -0x8(%rbp), %rax cmpq $0x0, 0x100038(%rax) je 0x33cc7 movq -0x8(%rbp), %rdi callq 0x30070 movq -0x8(%rbp), %rdi callq 0x362a0 movq -0x8(%rbp), %rdi callq 0x300b0 jmp 0x33cc9 jmp 0x33ccb movq -0x8(%rbp), %rdi addq $0x100090, %rdi # imm = 0x100090 callq 0x33dc0 movq -0x8(%rbp), %rdi addq $0x100040, %rdi # imm = 0x100040 callq 0x33e10 jmp 0x33ced addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
translog_buffer_destroy: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi jmp short $+2 loc_33C9E: mov rax, [rbp+var_8] cmp qword ptr [rax+100038h], 0 jz short loc_33CC7 mov rdi, [rbp+var_8] call translog_buffer_lock mov rdi, [rbp+var_8] call translog_buffer_flush mov rdi, [rbp+var_8] call translog_buffer_unlock loc_33CC7: jmp short $+2 loc_33CC9: jmp short $+2 loc_33CCB: mov rdi, [rbp+var_8] add rdi, 100090h call inline_mysql_mutex_destroy mov rdi, [rbp+var_8] add rdi, 100040h call inline_mysql_cond_destroy jmp short $+2 loc_33CED: add rsp, 10h pop rbp retn
long long translog_buffer_destroy(long long a1) { if ( *(_QWORD *)(a1 + 1048632) ) { translog_buffer_lock(a1); translog_buffer_flush(a1); translog_buffer_unlock(a1); } inline_mysql_mutex_destroy(a1 + 1048720); return inline_mysql_cond_destroy(a1 + 1048640); }
translog_buffer_destroy: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI JMP 0x00133c9e LAB_00133c9e: MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x100038],0x0 JZ 0x00133cc7 MOV RDI,qword ptr [RBP + -0x8] CALL 0x00130070 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001362a0 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001300b0 LAB_00133cc7: JMP 0x00133cc9 LAB_00133cc9: JMP 0x00133ccb LAB_00133ccb: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x100090 CALL 0x00133dc0 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x100040 CALL 0x00133e10 JMP 0x00133ced LAB_00133ced: ADD RSP,0x10 POP RBP RET
void translog_buffer_destroy(long param_1) { if (*(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x2f) != 0) { translog_buffer_lock(param_1); translog_buffer_flush(param_1); translog_buffer_unlock(param_1); } inline_mysql_mutex_destroy(param_1 + 0x100090); inline_mysql_cond_destroy((long)&Elf64_Phdr_ARRAY_00100040[0].p_type + param_1); return; }
32,245
JS_SetObjectData
bluesky950520[P]quickjs/quickjs.c
static int JS_SetObjectData(JSContext *ctx, JSValue obj, JSValue val) { JSObject *p; if (JS_VALUE_GET_TAG(obj) == JS_TAG_OBJECT) { p = JS_VALUE_GET_OBJ(obj); switch(p->class_id) { case JS_CLASS_NUMBER: case JS_CLASS_STRING: case JS_CLASS_BOOLEAN: case JS_CLASS_SYMBOL: case JS_CLASS_DATE: case JS_CLASS_BIG_INT: JS_FreeValue(ctx, p->u.object_data); p->u.object_data = val; return 0; } } JS_FreeValue(ctx, val); if (!JS_IsException(obj)) JS_ThrowTypeError(ctx, "invalid object type"); return -1; }
O1
c
JS_SetObjectData: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %r8, %rbx movq %rcx, %r15 movq %rdi, %r14 movq %rsi, 0x8(%rsp) movl %edx, %r12d movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, %r12 jne 0x36ec5 movq 0x8(%rsp), %r13 movzwl 0x6(%r13), %eax cmpq $0x22, %rax ja 0x36ec5 movabsq $0x4000004f0, %rcx # imm = 0x4000004F0 btq %rax, %rcx jae 0x36ec5 movq 0x30(%r13), %rsi movq 0x38(%r13), %rdx movq 0x18(%r14), %rdi callq 0x1d8c6 movq %r15, 0x30(%r13) movq %rbx, 0x38(%r13) jmp 0x36eda movq 0x18(%r14), %rdi movq %r15, %rsi movq %rbx, %rdx callq 0x1d8c6 cmpl $0x6, %r12d jne 0x36ee8 addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq leaq 0x69510(%rip), %rsi # 0xa03ff movq %r14, %rdi xorl %eax, %eax addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 jmp 0x22567
JS_SetObjectData: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov rbx, r8 mov r15, rcx mov r14, rdi mov [rsp+38h+var_30], rsi mov r12d, edx mov eax, 0FFFFFFFFh cmp r12, rax jnz short loc_36EC5 mov r13, [rsp+38h+var_30] movzx eax, word ptr [r13+6] cmp rax, 22h ; '"' ja short loc_36EC5 mov rcx, 4000004F0h bt rcx, rax jnb short loc_36EC5 mov rsi, [r13+30h] mov rdx, [r13+38h] mov rdi, [r14+18h] call JS_FreeValueRT mov [r13+30h], r15 mov [r13+38h], rbx jmp short loc_36EDA loc_36EC5: mov rdi, [r14+18h] mov rsi, r15 mov rdx, rbx call JS_FreeValueRT cmp r12d, 6 jnz short loc_36EE8 loc_36EDA: add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_36EE8: lea rsi, aInvalidObjectT; "invalid object type" mov rdi, r14 xor eax, eax add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 jmp JS_ThrowTypeError
long long JS_SetObjectData( long long a1, long long a2, int a3, _DWORD *a4, long long a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13, long long a14, char a15) { unsigned long long v18; // rax long long v19; // rcx long long result; // rax long long v21; // rdx long long v22; // rcx long long v23; // r8 long long v24; // r9 __m128 v25; // xmm4 __m128 v26; // xmm5 if ( a3 == 0xFFFFFFFFLL && (v18 = *(unsigned __int16 *)(a2 + 6), v18 <= 0x22) && (v19 = 0x4000004F0LL, _bittest64(&v19, v18)) ) { result = JS_FreeValueRT(*(_QWORD *)(a1 + 24), *(_DWORD **)(a2 + 48), *(_QWORD *)(a2 + 56)); *(_QWORD *)(a2 + 48) = a4; *(_QWORD *)(a2 + 56) = a5; } else { result = JS_FreeValueRT(*(_QWORD *)(a1 + 24), a4, a5); if ( a3 != 6 ) return JS_ThrowTypeError( a1, (long long)"invalid object type", v21, v22, v23, v24, a6, a7, a8, a9, v25, v26, a12, a13, a15); } return result; }
32,246
JS_SetObjectData
bluesky950520[P]quickjs/quickjs.c
static int JS_SetObjectData(JSContext *ctx, JSValue obj, JSValue val) { JSObject *p; if (JS_VALUE_GET_TAG(obj) == JS_TAG_OBJECT) { p = JS_VALUE_GET_OBJ(obj); switch(p->class_id) { case JS_CLASS_NUMBER: case JS_CLASS_STRING: case JS_CLASS_BOOLEAN: case JS_CLASS_SYMBOL: case JS_CLASS_DATE: case JS_CLASS_BIG_INT: JS_FreeValue(ctx, p->u.object_data); p->u.object_data = val; return 0; } } JS_FreeValue(ctx, val); if (!JS_IsException(obj)) JS_ThrowTypeError(ctx, "invalid object type"); return -1; }
O2
c
JS_SetObjectData: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %r8, %r14 movq %rcx, %r15 movq %rdi, %rbx movl %edx, %r13d movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, %r13 jne 0x305b6 movq %rsi, %r12 movzwl 0x6(%rsi), %eax cmpq $0x22, %rax ja 0x305b6 movabsq $0x4000004f0, %rcx # imm = 0x4000004F0 btq %rax, %rcx jae 0x305b6 movq 0x30(%r12), %rsi movq 0x38(%r12), %rdx movq %rbx, %rdi callq 0x1801e movq %r15, 0x30(%r12) movq %r14, 0x38(%r12) jmp 0x305ca movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x1801e cmpl $0x6, %r13d jne 0x305d4 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq leaq 0x56d5e(%rip), %rsi # 0x87339 movq %rbx, %rdi xorl %eax, %eax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 jmp 0x1c64d
JS_SetObjectData: push r15 push r14 push r13 push r12 push rbx mov r14, r8 mov r15, rcx mov rbx, rdi mov r13d, edx mov eax, 0FFFFFFFFh cmp r13, rax jnz short loc_305B6 mov r12, rsi movzx eax, word ptr [rsi+6] cmp rax, 22h ; '"' ja short loc_305B6 mov rcx, 4000004F0h bt rcx, rax jnb short loc_305B6 mov rsi, [r12+30h] mov rdx, [r12+38h] mov rdi, rbx call JS_FreeValue mov [r12+30h], r15 mov [r12+38h], r14 jmp short loc_305CA loc_305B6: mov rdi, rbx mov rsi, r15 mov rdx, r14 call JS_FreeValue cmp r13d, 6 jnz short loc_305D4 loc_305CA: pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_305D4: lea rsi, aInvalidObjectT; "invalid object type" mov rdi, rbx xor eax, eax pop rbx pop r12 pop r13 pop r14 pop r15 jmp JS_ThrowTypeError
long long JS_SetObjectData( long long a1, long long a2, int a3, long long a4, long long a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13, long long a14, char a15) { unsigned long long v18; // rax long long v19; // rcx long long result; // rax long long v21; // rdx long long v22; // rcx long long v23; // r8 long long v24; // r9 __m128 v25; // xmm4 __m128 v26; // xmm5 if ( a3 == 0xFFFFFFFFLL && (v18 = *(unsigned __int16 *)(a2 + 6), v18 <= 0x22) && (v19 = 0x4000004F0LL, _bittest64(&v19, v18)) ) { result = JS_FreeValue(a1, *(_QWORD *)(a2 + 48), *(_QWORD *)(a2 + 56)); *(_QWORD *)(a2 + 48) = a4; *(_QWORD *)(a2 + 56) = a5; } else { result = JS_FreeValue(a1, a4, a5); if ( a3 != 6 ) return JS_ThrowTypeError( a1, (long long)"invalid object type", v21, v22, v23, v24, a6, a7, a8, a9, v25, v26, a12, a13, a15); } return result; }
JS_SetObjectData: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R14,R8 MOV R15,RCX MOV RBX,RDI MOV R13D,EDX MOV EAX,0xffffffff CMP R13,RAX JNZ 0x001305b6 MOV R12,RSI MOVZX EAX,word ptr [RSI + 0x6] CMP RAX,0x22 JA 0x001305b6 MOV RCX,0x4000004f0 BT RCX,RAX JNC 0x001305b6 MOV RSI,qword ptr [R12 + 0x30] MOV RDX,qword ptr [R12 + 0x38] MOV RDI,RBX CALL 0x0011801e MOV qword ptr [R12 + 0x30],R15 MOV qword ptr [R12 + 0x38],R14 JMP 0x001305ca LAB_001305b6: MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x0011801e CMP R13D,0x6 JNZ 0x001305d4 LAB_001305ca: POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_001305d4: LEA RSI,[0x187339] MOV RDI,RBX XOR EAX,EAX POP RBX POP R12 POP R13 POP R14 POP R15 JMP 0x0011c64d
void JS_SetObjectData(int8 param_1,long param_2,int param_3,int8 param_4, int8 param_5) { if (((param_3 == -1) && ((ulong)*(ushort *)(param_2 + 6) < 0x23)) && ((0x4000004f0U >> ((ulong)*(ushort *)(param_2 + 6) & 0x3f) & 1) != 0)) { JS_FreeValue(param_1,*(int8 *)(param_2 + 0x30),*(int8 *)(param_2 + 0x38)); *(int8 *)(param_2 + 0x30) = param_4; *(int8 *)(param_2 + 0x38) = param_5; } else { JS_FreeValue(param_1,param_4,param_5); if (param_3 != 6) { JS_ThrowTypeError(param_1,"invalid object type"); return; } } return; }
32,247
JS_IsArray
bluesky950520[P]quickjs/quickjs.c
int JS_IsArray(JSContext *ctx, JSValue val) { JSObject *p; if (JS_VALUE_GET_TAG(val) == JS_TAG_OBJECT) { p = JS_VALUE_GET_OBJ(val); if (unlikely(p->class_id == JS_CLASS_PROXY)) return js_proxy_isArray(ctx, val); else return p->class_id == JS_CLASS_ARRAY; } else { return FALSE; } }
O1
c
JS_IsArray: movq %rsi, -0x8(%rsp) xorl %eax, %eax cmpl $-0x1, %edx jne 0x282f6 movq -0x8(%rsp), %rax movzwl 0x6(%rax), %ecx cmpw $0x30, %cx je 0x282f7 xorl %eax, %eax cmpw $0x2, %cx sete %al retq movq -0x8(%rsp), %rsi jmp 0x282fe
JS_IsArray: mov [rsp+var_8], rsi xor eax, eax cmp edx, 0FFFFFFFFh jnz short locret_282F6 mov rax, [rsp+var_8] movzx ecx, word ptr [rax+6] cmp cx, 30h ; '0' jz short loc_282F7 xor eax, eax cmp cx, 2 setz al locret_282F6: retn loc_282F7: mov rsi, [rsp+var_8] jmp short $+2
long long JS_IsArray(long long a1, long long a2, int a3) { long long result; // rax __int16 v4; // cx result = 0LL; if ( a3 == -1 ) { v4 = *(_WORD *)(a2 + 6); if ( v4 == 48 ) return js_proxy_isArray(a1, a2); else return v4 == 2; } return result; }
JS_IsArray: MOV qword ptr [RSP + -0x8],RSI XOR EAX,EAX CMP EDX,-0x1 JNZ 0x001282f6 MOV RAX,qword ptr [RSP + -0x8] MOVZX ECX,word ptr [RAX + 0x6] CMP CX,0x30 JZ 0x001282f7 XOR EAX,EAX CMP CX,0x2 SETZ AL LAB_001282f6: RET LAB_001282f7: MOV RSI,qword ptr [RSP + -0x8] JMP 0x001282fe
ulong JS_IsArray(int8 param_1,long param_2,int param_3) { ulong uVar1; uVar1 = 0; if (param_3 == -1) { if (*(short *)(param_2 + 6) == 0x30) { uVar1 = js_proxy_isArray(param_1,param_2); return uVar1; } uVar1 = (ulong)(*(short *)(param_2 + 6) == 2); } return uVar1; }
32,248
JS_IsArray
bluesky950520[P]quickjs/quickjs.c
int JS_IsArray(JSContext *ctx, JSValue val) { JSObject *p; if (JS_VALUE_GET_TAG(val) == JS_TAG_OBJECT) { p = JS_VALUE_GET_OBJ(val); if (unlikely(p->class_id == JS_CLASS_PROXY)) return js_proxy_isArray(ctx, val); else return p->class_id == JS_CLASS_ARRAY; } else { return FALSE; } }
O2
c
JS_IsArray: pushq %rbp movq %rsp, %rbp xorl %eax, %eax cmpl $-0x1, %edx jne 0x21d43 movzwl 0x6(%rsi), %ecx cmpw $0x30, %cx jne 0x21d3a movq 0x30(%rsi), %rcx testq %rcx, %rcx je 0x21d43 movq 0x18(%rdi), %rax cmpq %rbp, 0xe8(%rax) ja 0x21d45 cmpb $0x0, 0x21(%rcx) jne 0x21d4c movq (%rcx), %rsi movl 0x8(%rcx), %edx jmp 0x21d05 xorl %eax, %eax cmpw $0x2, %cx sete %al popq %rbp retq callq 0x35d91 jmp 0x21d51 callq 0x35d9f pushq $-0x1 popq %rax jmp 0x21d43
JS_IsArray: push rbp mov rbp, rsp loc_21D05: xor eax, eax cmp edx, 0FFFFFFFFh jnz short loc_21D43 movzx ecx, word ptr [rsi+6] cmp cx, 30h ; '0' jnz short loc_21D3A mov rcx, [rsi+30h] test rcx, rcx jz short loc_21D43 mov rax, [rdi+18h] cmp [rax+0E8h], rbp ja short loc_21D45 cmp byte ptr [rcx+21h], 0 jnz short loc_21D4C mov rsi, [rcx] mov edx, [rcx+8] jmp short loc_21D05 loc_21D3A: xor eax, eax cmp cx, 2 setz al loc_21D43: pop rbp retn loc_21D45: call JS_ThrowStackOverflow jmp short loc_21D51 loc_21D4C: call JS_ThrowTypeErrorRevokedProxy loc_21D51: push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_21D43
long long JS_IsArray(long long a1, long long a2, int a3) { long long result; // rax __int16 v4; // cx long long *v5; // rcx long long savedregs; // [rsp+0h] [rbp+0h] BYREF while ( 1 ) { result = 0LL; if ( a3 != -1 ) break; v4 = *(_WORD *)(a2 + 6); if ( v4 != 48 ) return v4 == 2; v5 = *(long long **)(a2 + 48); if ( !v5 ) return result; if ( *(_QWORD *)(*(_QWORD *)(a1 + 24) + 232LL) > (unsigned long long)&savedregs ) { JS_ThrowStackOverflow(a1); return -1LL; } if ( *((_BYTE *)v5 + 33) ) { JS_ThrowTypeErrorRevokedProxy(); return -1LL; } a2 = *v5; a3 = *((_DWORD *)v5 + 2); } return result; }
JS_IsArray: PUSH RBP MOV RBP,RSP LAB_00121d05: XOR EAX,EAX CMP EDX,-0x1 JNZ 0x00121d43 MOVZX ECX,word ptr [RSI + 0x6] CMP CX,0x30 JNZ 0x00121d3a MOV RCX,qword ptr [RSI + 0x30] TEST RCX,RCX JZ 0x00121d43 MOV RAX,qword ptr [RDI + 0x18] CMP qword ptr [RAX + 0xe8],RBP JA 0x00121d45 CMP byte ptr [RCX + 0x21],0x0 JNZ 0x00121d4c MOV RSI,qword ptr [RCX] MOV EDX,dword ptr [RCX + 0x8] JMP 0x00121d05 LAB_00121d3a: XOR EAX,EAX CMP CX,0x2 SETZ AL LAB_00121d43: POP RBP RET LAB_00121d45: CALL 0x00135d91 JMP 0x00121d51 LAB_00121d4c: CALL 0x00135d9f LAB_00121d51: PUSH -0x1 POP RAX JMP 0x00121d43
ulong JS_IsArray(long param_1,long param_2,int param_3) { long *plVar1; while( true ) { if (param_3 != -1) { return 0; } if (*(short *)(param_2 + 6) != 0x30) { return (ulong)(*(short *)(param_2 + 6) == 2); } plVar1 = *(long **)(param_2 + 0x30); if (plVar1 == (long *)0x0) { return 0; } if (&stack0xfffffffffffffff8 < *(int1 **)(*(long *)(param_1 + 0x18) + 0xe8)) break; if (*(char *)((long)plVar1 + 0x21) != '\0') { JS_ThrowTypeErrorRevokedProxy(); return 0xffffffffffffffff; } param_2 = *plVar1; param_3 = (int)plVar1[1]; } JS_ThrowStackOverflow(); return 0xffffffffffffffff; }
32,249
MemoryManager::printInfo()
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/MemoryManager.cpp
void MemoryManager::printInfo() { printf("Memory Pages: \n"); for (uint32_t i = 0; i < 1024; ++i) { if (this->memory[i] == nullptr) { continue; } printf("0x%x-0x%x:\n", i << 22, (i + 1) << 22); for (uint32_t j = 0; j < 1024; ++j) { if (this->memory[i][j] == nullptr) { continue; } printf(" 0x%x-0x%x\n", (i << 22) + (j << 12), (i << 22) + ((j + 1) << 12)); } } }
O1
cpp
MemoryManager::printInfo(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x1e8e(%rip), %rdi # 0x5239 callq 0x2220 movl $0x1000, %ebp # imm = 0x1000 leaq 0x1e60(%rip), %r15 # 0x521c xorl %r13d, %r13d cmpq $0x0, (%rbx,%r13,8) je 0x3419 movl %r13d, %esi shll $0x16, %esi leal 0x400000(%rsi), %edx leaq 0x1e37(%rip), %rdi # 0x5210 xorl %eax, %eax callq 0x2050 movl %ebp, %r12d xorl %r14d, %r14d movq (%rbx,%r13,8), %rax cmpq $0x0, (%rax,%r14,8) je 0x3406 leal -0x1000(%r12), %esi movq %r15, %rdi movl %r12d, %edx xorl %eax, %eax callq 0x2050 incq %r14 addl $0x1000, %r12d # imm = 0x1000 cmpq $0x400, %r14 # imm = 0x400 jne 0x33e6 incq %r13 addl $0x400000, %ebp # imm = 0x400000 cmpq $0x400, %r13 # imm = 0x400 jne 0x33bf addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN13MemoryManager9printInfoEv: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi lea rdi, aMemoryPages; "Memory Pages: " call _puts mov ebp, 1000h lea r15, a0xX0xX; " 0x%x-0x%x\n" xor r13d, r13d loc_33BF: cmp qword ptr [rbx+r13*8], 0 jz short loc_3419 mov esi, r13d shl esi, 16h lea edx, [rsi+400000h] lea rdi, a0xX0xX_0; "0x%x-0x%x:\n" xor eax, eax call _printf mov r12d, ebp xor r14d, r14d loc_33E6: mov rax, [rbx+r13*8] cmp qword ptr [rax+r14*8], 0 jz short loc_3406 lea esi, [r12-1000h] mov rdi, r15 mov edx, r12d xor eax, eax call _printf loc_3406: inc r14 add r12d, 1000h cmp r14, 400h jnz short loc_33E6 loc_3419: inc r13 add ebp, 400000h cmp r13, 400h jnz short loc_33BF add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long MemoryManager::printInfo(MemoryManager *this) { long long result; // rax int v2; // ebp long long i; // r13 int v4; // r12d long long j; // r14 result = puts("Memory Pages: "); v2 = 4096; for ( i = 0LL; i != 1024; ++i ) { if ( *((_QWORD *)this + i) ) { printf("0x%x-0x%x:\n", (_DWORD)i << 22, ((_DWORD)i << 22) + 0x400000); v4 = v2; for ( j = 0LL; j != 1024; ++j ) { result = *((_QWORD *)this + i); if ( *(_QWORD *)(result + 8 * j) ) result = printf(" 0x%x-0x%x\n", v4 - 4096, v4); v4 += 4096; } } v2 += 0x400000; } return result; }
printInfo: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI LEA RDI,[0x105239] CALL 0x00102220 MOV EBP,0x1000 LEA R15,[0x10521c] XOR R13D,R13D LAB_001033bf: CMP qword ptr [RBX + R13*0x8],0x0 JZ 0x00103419 MOV ESI,R13D SHL ESI,0x16 LEA EDX,[RSI + 0x400000] LEA RDI,[0x105210] XOR EAX,EAX CALL 0x00102050 MOV R12D,EBP XOR R14D,R14D LAB_001033e6: MOV RAX,qword ptr [RBX + R13*0x8] CMP qword ptr [RAX + R14*0x8],0x0 JZ 0x00103406 LEA ESI,[R12 + -0x1000] MOV RDI,R15 MOV EDX,R12D XOR EAX,EAX CALL 0x00102050 LAB_00103406: INC R14 ADD R12D,0x1000 CMP R14,0x400 JNZ 0x001033e6 LAB_00103419: INC R13 ADD EBP,0x400000 CMP R13,0x400 JNZ 0x001033bf ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* MemoryManager::printInfo() */ void __thiscall MemoryManager::printInfo(MemoryManager *this) { uint uVar1; uint uVar2; long lVar3; long lVar4; puts("Memory Pages: "); uVar1 = 0x1000; lVar3 = 0; do { if (*(long *)(this + lVar3 * 8) != 0) { uVar2 = (int)lVar3 * 0x400000; printf("0x%x-0x%x:\n",(ulong)uVar2,(ulong)(uVar2 + 0x400000)); lVar4 = 0; uVar2 = uVar1; do { if (*(long *)(*(long *)(this + lVar3 * 8) + lVar4 * 8) != 0) { printf(" 0x%x-0x%x\n",(ulong)(uVar2 - 0x1000),(ulong)uVar2); } lVar4 = lVar4 + 1; uVar2 = uVar2 + 0x1000; } while (lVar4 != 0x400); } lVar3 = lVar3 + 1; uVar1 = uVar1 + 0x400000; } while (lVar3 != 0x400); return; }
32,250
MemoryManager::printInfo()
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/MemoryManager.cpp
void MemoryManager::printInfo() { printf("Memory Pages: \n"); for (uint32_t i = 0; i < 1024; ++i) { if (this->memory[i] == nullptr) { continue; } printf("0x%x-0x%x:\n", i << 22, (i + 1) << 22); for (uint32_t j = 0; j < 1024; ++j) { if (this->memory[i][j] == nullptr) { continue; } printf(" 0x%x-0x%x\n", (i << 22) + (j << 12), (i << 22) + ((j + 1) << 12)); } } }
O2
cpp
MemoryManager::printInfo(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x20f4(%rip), %rdi # 0x5239 callq 0x2220 movl $0x1000, %ebp # imm = 0x1000 leaq 0x20c6(%rip), %r15 # 0x521c xorl %r13d, %r13d cmpq $0x400, %r13 # imm = 0x400 je 0x31c9 cmpq $0x0, (%rbx,%r13,8) je 0x31be movl %r13d, %esi shll $0x16, %esi leal 0x400000(%rsi), %edx leaq 0x2094(%rip), %rdi # 0x5210 xorl %eax, %eax callq 0x2040 movl %ebp, %r12d xorl %r14d, %r14d cmpq $0x400, %r14 # imm = 0x400 je 0x31be movq (%rbx,%r13,8), %rax cmpq $0x0, (%rax,%r14,8) je 0x31b2 leal -0x1000(%r12), %esi movq %r15, %rdi movl %r12d, %edx xorl %eax, %eax callq 0x2040 incq %r14 addl $0x1000, %r12d # imm = 0x1000 jmp 0x3189 incq %r13 addl $0x400000, %ebp # imm = 0x400000 jmp 0x3159 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN13MemoryManager9printInfoEv: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi lea rdi, aMemoryPages; "Memory Pages: " call _puts mov ebp, 1000h lea r15, a0xX0xX; " 0x%x-0x%x\n" xor r13d, r13d loc_3159: cmp r13, 400h jz short loc_31C9 cmp qword ptr [rbx+r13*8], 0 jz short loc_31BE mov esi, r13d shl esi, 16h lea edx, [rsi+400000h] lea rdi, a0xX0xX_0; "0x%x-0x%x:\n" xor eax, eax call _printf mov r12d, ebp xor r14d, r14d loc_3189: cmp r14, 400h jz short loc_31BE mov rax, [rbx+r13*8] cmp qword ptr [rax+r14*8], 0 jz short loc_31B2 lea esi, [r12-1000h] mov rdi, r15 mov edx, r12d xor eax, eax call _printf loc_31B2: inc r14 add r12d, 1000h jmp short loc_3189 loc_31BE: inc r13 add ebp, 400000h jmp short loc_3159 loc_31C9: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long MemoryManager::printInfo(MemoryManager *this) { long long result; // rax int v2; // ebp long long i; // r13 int v4; // r12d long long j; // r14 result = puts("Memory Pages: "); v2 = 4096; for ( i = 0LL; i != 1024; ++i ) { if ( *((_QWORD *)this + i) ) { result = printf("0x%x-0x%x:\n", (_DWORD)i << 22, ((_DWORD)i << 22) + 0x400000); v4 = v2; for ( j = 0LL; j != 1024; ++j ) { result = *((_QWORD *)this + i); if ( *(_QWORD *)(result + 8 * j) ) result = printf(" 0x%x-0x%x\n", v4 - 4096, v4); v4 += 4096; } } v2 += 0x400000; } return result; }
printInfo: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI LEA RDI,[0x105239] CALL 0x00102220 MOV EBP,0x1000 LEA R15,[0x10521c] XOR R13D,R13D LAB_00103159: CMP R13,0x400 JZ 0x001031c9 CMP qword ptr [RBX + R13*0x8],0x0 JZ 0x001031be MOV ESI,R13D SHL ESI,0x16 LEA EDX,[RSI + 0x400000] LEA RDI,[0x105210] XOR EAX,EAX CALL 0x00102040 MOV R12D,EBP XOR R14D,R14D LAB_00103189: CMP R14,0x400 JZ 0x001031be MOV RAX,qword ptr [RBX + R13*0x8] CMP qword ptr [RAX + R14*0x8],0x0 JZ 0x001031b2 LEA ESI,[R12 + -0x1000] MOV RDI,R15 MOV EDX,R12D XOR EAX,EAX CALL 0x00102040 LAB_001031b2: INC R14 ADD R12D,0x1000 JMP 0x00103189 LAB_001031be: INC R13 ADD EBP,0x400000 JMP 0x00103159 LAB_001031c9: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* MemoryManager::printInfo() */ void __thiscall MemoryManager::printInfo(MemoryManager *this) { uint uVar1; uint uVar2; long lVar3; long lVar4; puts("Memory Pages: "); uVar1 = 0x1000; for (lVar3 = 0; lVar3 != 0x400; lVar3 = lVar3 + 1) { if (*(long *)(this + lVar3 * 8) != 0) { uVar2 = (int)lVar3 * 0x400000; printf("0x%x-0x%x:\n",(ulong)uVar2,(ulong)(uVar2 + 0x400000)); uVar2 = uVar1; for (lVar4 = 0; lVar4 != 0x400; lVar4 = lVar4 + 1) { if (*(long *)(*(long *)(this + lVar3 * 8) + lVar4 * 8) != 0) { printf(" 0x%x-0x%x\n",(ulong)(uVar2 - 0x1000),(ulong)uVar2); } uVar2 = uVar2 + 0x1000; } } uVar1 = uVar1 + 0x400000; } return; }
32,251
blst_fp_from_uint32
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/exports.c
void blst_fp_from_uint32(vec384 ret, const unsigned int a[12]) { if (sizeof(limb_t) == 8) { int i; for (i = 0; i < 6; i++) ret[i] = a[2*i] | ((limb_t)a[2*i+1] << (32 & (8*sizeof(limb_t)-1))); a = (const unsigned int *)ret; } mul_fp(ret, (const limb_t *)a, BLS12_381_RR); }
O1
c
blst_fp_from_uint32: pushq %rbp movq %rsp, %rbp xorl %eax, %eax movq (%rsi,%rax,8), %rcx movq %rcx, (%rdi,%rax,8) incq %rax cmpq $0x6, %rax jne 0x25458 leaq 0x1a930(%rip), %rdx # 0x3fda0 leaq 0x1a6a9(%rip), %rcx # 0x3fb20 movabsq $-0x760c000300030003, %r8 # imm = 0x89F3FFFCFFFCFFFD movq %rdi, %rsi popq %rbp jmp 0x34be0
blst_fp_from_uint32: push rbp mov rbp, rsp xor eax, eax loc_25458: mov rcx, [rsi+rax*8] mov [rdi+rax*8], rcx inc rax cmp rax, 6 jnz short loc_25458 lea rdx, BLS12_381_RR lea rcx, BLS12_381_P mov r8, 89F3FFFCFFFCFFFDh mov rsi, rdi pop rbp jmp mul_mont_384
long long blst_fp_from_uint32(long long a1, long long a2) { long long i; // rax for ( i = 0LL; i != 6; ++i ) *(_QWORD *)(a1 + 8 * i) = *(_QWORD *)(a2 + 8 * i); return mul_mont_384(a1, a1, &BLS12_381_RR, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); }
blst_fp_from_uint32: PUSH RBP MOV RBP,RSP XOR EAX,EAX LAB_00125458: MOV RCX,qword ptr [RSI + RAX*0x8] MOV qword ptr [RDI + RAX*0x8],RCX INC RAX CMP RAX,0x6 JNZ 0x00125458 LEA RDX,[0x13fda0] LEA RCX,[0x13fb20] MOV R8,-0x760c000300030003 MOV RSI,RDI POP RBP JMP 0x00134be0
void blst_fp_from_uint32(long param_1,long param_2) { long lVar1; lVar1 = 0; do { *(int8 *)(param_1 + lVar1 * 8) = *(int8 *)(param_2 + lVar1 * 8); lVar1 = lVar1 + 1; } while (lVar1 != 6); mul_mont_384(param_1,param_1,BLS12_381_RR,BLS12_381_P,0x89f3fffcfffcfffd); return; }
32,252
auto unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type, unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_then::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type>::type>::type::promise_type::yield_value<unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type, unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_then::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type>::type>::type unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<aimrt::rpc::Status>::type, unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type, unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_then::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type>::type>(unifex::_task::_task<aimrt::rpc::Status>::type, unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type, unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_then::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type>::type)::'lambda'(aimrt::rpc::Status&&)::operator()(aimrt::rpc::Status&&) const::'lambda'()>(unifex::_task::_task<aimrt::rpc::Status>::type&&)
aimrt_mujoco_sim/_deps/libunifex-src/include/unifex/connect_awaitable.hpp
auto yield_value(Func&& func) noexcept { struct awaiter { Func&& func_; bool await_ready() noexcept { return false; } void await_suspend(coro::coroutine_handle<promise_type>) { ((Func &&) func_)(); } [[noreturn]] void await_resume() noexcept { std::terminate(); } }; return awaiter{(Func &&) func}; }
O0
cpp
auto unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type, unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_then::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type>::type>::type::promise_type::yield_value<unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type, unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_then::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type>::type>::type unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<aimrt::rpc::Status>::type, unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type, unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_then::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type>::type>(unifex::_task::_task<aimrt::rpc::Status>::type, unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type, unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_then::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<aimrt::rpc::Status>::type>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type, aimrt::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService()::$_0::operator()(aimrt_rpc_context_base_t const*, void const*, void*, aimrt_function_base_t*) const::'lambda'(aimrt::rpc::Status)>::type>::type>::type)::'lambda'(aimrt::rpc::Status&&)::operator()(aimrt::rpc::Status&&) const::'lambda'()>(unifex::_task::_task<aimrt::rpc::Status>::type&&): movq %rdi, -0x10(%rsp) movq %rsi, -0x18(%rsp) movq -0x18(%rsp), %rax movq %rax, -0x8(%rsp) movq -0x8(%rsp), %rax retq nopw (%rax,%rax)
_ZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIN5aimrt3rpc6StatusEE4typeEE4typeENS_5_then9_receiverINS_12_async_scope9_receiverINSM_7_senderINS8_7_senderISA_SL_E4typeEZZNSF_9protocols23time_manipulator_plugin31TimeManipulatorServiceCoServiceC1EvENK3$_0clEPK24aimrt_rpc_context_base_tPKvPvP21aimrt_function_base_tEUlSH_E_E4typeEE4typeES16_E4typeEE4typeEE4typeEE4type12promise_type11yield_valueIZZNS_10_await_cpo3_fn12connect_implISJ_S1G_EENS1_IT0_E4typeET_S1O_ENKUlOSH_E_clES1S_EUlvE_EEDaOS1R_: mov [rsp+var_10], rdi mov [rsp+var_18], rsi mov rax, [rsp+var_18] mov [rsp+var_8], rax mov rax, [rsp+var_8] retn
long long unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<aimrt::rpc::Status>::type>::type,unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<aimrt::rpc::Status>::type>::type::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<aimrt::rpc::Status>::type>>::type,unifex::_task::_task::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService(void)::$_0::operator() const(aimrt_rpc_context_base_t const*,void const*,void *,aimrt_function_base_t *)::{lambda(aimrt::rpc)#1}>::type>::type,aimrt_function_base_t *>::type>::type>::type>::type::promise_type::yield_value<unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<aimrt::rpc::Status>::type>::type,unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<aimrt::rpc::Status>::type>::type::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<aimrt::rpc::Status>::type>>::type,unifex::_task::_task::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService(void)::$_0::operator() const(aimrt_rpc_context_base_t const*,void const*,void *,aimrt_function_base_t *)::{lambda(aimrt::rpc)#1}>::type>::type,aimrt_function_base_t *>::type>::type>>::type unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<aimrt::rpc::Status>,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<aimrt::rpc::Status>::type>::type,unifex::_then::_receiver<unifex::_async_scope::_receiver<unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<aimrt::rpc::Status>::type>::type::_sender<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<aimrt::rpc::Status>::type>>::type,unifex::_task::_task::protocols::time_manipulator_plugin::TimeManipulatorServiceCoService::TimeManipulatorServiceCoService(void)::$_0::operator() const(aimrt_rpc_context_base_t const*,void const*,void *,aimrt_function_base_t *)::{lambda(aimrt::rpc)#1}>::type>::type,aimrt_function_base_t *>::type>::type>>(unifex::_task::_task<aimrt::rpc::Status>,unifex::_await_cpo::_fn::connect_impl)::{lambda(aimrt::rpc&&)#1}::operator() const(aimrt::rpc&)::{lambda(void)#1}>( long long a1, long long a2) { return a2; }
_List_const_iterator: MOV qword ptr [RSP + -0x8],RDI MOV qword ptr [RSP + -0x10],RSI MOV RAX,qword ptr [RSP + -0x8] MOV RCX,qword ptr [RSP + -0x10] MOV RCX,qword ptr [RCX] MOV qword ptr [RAX],RCX RET
/* std::_List_const_iterator<aimrt::runtime::core::executor::TimeWheelExecutor::TaskWithTimestamp>::_List_const_iterator(std::_List_iterator<aimrt::runtime::core::executor::TimeWheelExecutor::TaskWithTimestamp> const&) */ void __thiscall std::_List_const_iterator<aimrt::runtime::core::executor::TimeWheelExecutor::TaskWithTimestamp>:: _List_const_iterator (_List_const_iterator<aimrt::runtime::core::executor::TimeWheelExecutor::TaskWithTimestamp> *this,_List_iterator *param_1) { *(int8 *)this = *(int8 *)param_1; return; }
32,253
reinit_queue
eloqsql/mysys/queues.c
int reinit_queue(QUEUE *queue, uint max_elements, uint offset_to_key, my_bool max_at_top, int (*compare) (void *, uchar *, uchar *), void *first_cmp_arg, uint offset_to_queue_pos, uint auto_extent) { DBUG_ENTER("reinit_queue"); queue->elements= 0; queue->compare= compare; queue->first_cmp_arg= first_cmp_arg; queue->offset_to_key= offset_to_key; queue->offset_to_queue_pos= offset_to_queue_pos; queue->auto_extent= auto_extent; queue_set_max_at_top(queue, max_at_top); DBUG_RETURN(resize_queue(queue, max_elements)); }
O3
c
reinit_queue: pushq %rbp movq %rsp, %rbp movl 0x18(%rbp), %eax movl 0x10(%rbp), %r10d movl $0x0, 0x10(%rdi) movq %r8, 0x28(%rdi) movq %r9, 0x8(%rdi) movl %edx, 0x18(%rdi) movl %r10d, 0x1c(%rdi) movl %eax, 0x20(%rdi) xorl %eax, %eax negb %cl sbbl %eax, %eax orl $0x1, %eax movl %eax, 0x24(%rdi) popq %rbp jmp 0x5f355
reinit_queue: push rbp mov rbp, rsp mov eax, [rbp+arg_8] mov r10d, [rbp+arg_0] mov dword ptr [rdi+10h], 0 mov [rdi+28h], r8 mov [rdi+8], r9 mov [rdi+18h], edx mov [rdi+1Ch], r10d mov [rdi+20h], eax xor eax, eax neg cl sbb eax, eax or eax, 1 mov [rdi+24h], eax pop rbp jmp $+5
long long reinit_queue(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, int a7, int a8) { *(_DWORD *)(a1 + 16) = 0; *(_QWORD *)(a1 + 40) = a5; *(_QWORD *)(a1 + 8) = a6; *(_DWORD *)(a1 + 24) = a3; *(_DWORD *)(a1 + 28) = a7; *(_DWORD *)(a1 + 32) = a8; LOBYTE(a4) = -(char)a4; *(_DWORD *)(a1 + 36) = (_BYTE)a4 != 0 ? -1 : 1; return resize_queue(a1, a2, a3, a4); }
reinit_queue: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RBP + 0x18] MOV R10D,dword ptr [RBP + 0x10] MOV dword ptr [RDI + 0x10],0x0 MOV qword ptr [RDI + 0x28],R8 MOV qword ptr [RDI + 0x8],R9 MOV dword ptr [RDI + 0x18],EDX MOV dword ptr [RDI + 0x1c],R10D MOV dword ptr [RDI + 0x20],EAX XOR EAX,EAX NEG CL SBB EAX,EAX OR EAX,0x1 MOV dword ptr [RDI + 0x24],EAX POP RBP JMP 0x0015f355
void reinit_queue(long param_1,int8 param_2,int4 param_3,char param_4,int8 param_5 ,int8 param_6,int4 param_7,int4 param_8) { *(int4 *)(param_1 + 0x10) = 0; *(int8 *)(param_1 + 0x28) = param_5; *(int8 *)(param_1 + 8) = param_6; *(int4 *)(param_1 + 0x18) = param_3; *(int4 *)(param_1 + 0x1c) = param_7; *(int4 *)(param_1 + 0x20) = param_8; *(uint *)(param_1 + 0x24) = -(uint)(param_4 != '\0') | 1; resize_queue(); return; }
32,254
minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/./minja.hpp
Value do_evaluate(const std::shared_ptr<Context> & context) const override { if (!condition) throw std::runtime_error("IfExpr.condition is null"); if (!then_expr) throw std::runtime_error("IfExpr.then_expr is null"); if (condition->evaluate(context).to_bool()) { return then_expr->evaluate(context); } if (else_expr) { return else_expr->evaluate(context); } return nullptr; }
O3
cpp
minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rsi, %r15 movq 0x20(%rsi), %rsi testq %rsi, %rsi je 0x59343 cmpq $0x0, 0x30(%r15) je 0x59361 movq %rdx, %r14 movq %rdi, %rbx movq %rsp, %r12 movq %r12, %rdi callq 0x3d5f2 movq %r12, %rdi callq 0x3d7f0 movl %eax, %ebp leaq 0x40(%rsp), %r12 movq %r12, %rdi xorl %esi, %esi callq 0x3d970 movq %r12, %rdi callq 0x4a5c0 movq -0x8(%r12), %rdi testq %rdi, %rdi je 0x59282 callq 0x2f80e movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x59291 callq 0x2f80e movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x592a0 callq 0x2f80e movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x592d6 movq 0x96cef(%rip), %rax # 0xeffa0 cmpb $0x0, (%rax) je 0x592c1 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x592cb movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x592d6 movq (%rdi), %rax callq *0x18(%rax) testb %bpl, %bpl je 0x592e1 movq 0x30(%r15), %rsi jmp 0x592ea movq 0x40(%r15), %rsi testq %rsi, %rsi je 0x59305 movq %rbx, %rdi movq %r14, %rdx callq 0x3d5f2 movq %rbx, %rax addq $0x50, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq 0x40(%rbx), %r14 movq $0x0, 0x48(%rbx) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movups %xmm0, 0x10(%rbx) movups %xmm0, 0x20(%rbx) movups %xmm0, 0x30(%rbx) movb $0x0, 0x40(%rbx) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %r14, %rdi movl $0x1, %esi callq 0x3d970 jmp 0x592f5 movl $0x10, %edi callq 0x18360 movq %rax, %r14 leaq 0x6218f(%rip), %rsi # 0xbb4e6 movq %rax, %rdi callq 0x18270 jmp 0x5937d movl $0x10, %edi callq 0x18360 movq %rax, %r14 leaq 0x6218a(%rip), %rsi # 0xbb4ff movq %rax, %rdi callq 0x18270 movq 0x96c6c(%rip), %rsi # 0xefff0 movq 0x96bf5(%rip), %rdx # 0xeff80 movq %r14, %rdi callq 0x18b30 jmp 0x59395 movq %rax, %rbx movq %r14, %rdi callq 0x18500 jmp 0x593ad movq %rax, %rbx movq %rsp, %rdi callq 0x3d8e4 movq %rbx, %rdi callq 0x18b90 nop
_ZNK5minja6IfExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE: push rbp push r15 push r14 push r12 push rbx sub rsp, 50h mov r15, rsi mov rsi, [rsi+20h] test rsi, rsi jz loc_59343 cmp qword ptr [r15+30h], 0 jz loc_59361 mov r14, rdx mov rbx, rdi mov r12, rsp mov rdi, r12 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) mov rdi, r12; this call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) mov ebp, eax lea r12, [rsp+78h+var_38] mov rdi, r12 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [r12-8] test rdi, rdi jz short loc_59282 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_59282: mov rdi, [rsp+78h+var_50] test rdi, rdi jz short loc_59291 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_59291: mov rdi, [rsp+78h+var_60] test rdi, rdi jz short loc_592A0 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_592A0: mov rdi, [rsp+78h+var_70] test rdi, rdi jz short loc_592D6 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_592C1 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_592CB loc_592C1: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_592CB: cmp eax, 1 jnz short loc_592D6 mov rax, [rdi] call qword ptr [rax+18h] loc_592D6: test bpl, bpl jz short loc_592E1 mov rsi, [r15+30h] jmp short loc_592EA loc_592E1: mov rsi, [r15+40h] test rsi, rsi jz short loc_59305 loc_592EA: mov rdi, rbx mov rdx, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) loc_592F5: mov rax, rbx add rsp, 50h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_59305: lea r14, [rbx+40h] mov qword ptr [rbx+48h], 0 xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx+20h], xmm0 movups xmmword ptr [rbx+30h], xmm0 mov byte ptr [rbx+40h], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) jmp short loc_592F5 loc_59343: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aIfexprConditio; "IfExpr.condition is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_5937D loc_59361: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aIfexprThenExpr; "IfExpr.then_expr is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_5937D: mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short $+2 loc_59395: mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_593AD mov rbx, rax mov rdi, rsp; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_593AD: mov rdi, rbx call __Unwind_Resume
long long minja::IfExpr::do_evaluate(long long a1, _QWORD *a2) { void (***v3)(void); // rsi char v5; // bp long long v6; // rdi signed __int32 v7; // eax void (***v8)(void); // rsi std::runtime_error *exception; // r14 long long v11; // [rsp+0h] [rbp-78h] BYREF long long v12; // [rsp+8h] [rbp-70h] volatile signed __int32 *v13; // [rsp+18h] [rbp-60h] volatile signed __int32 *v14; // [rsp+28h] [rbp-50h] volatile signed __int32 *v15; // [rsp+38h] [rbp-40h] void **v16[7]; // [rsp+40h] [rbp-38h] BYREF v3 = (void (***)(void))a2[4]; if ( !v3 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "IfExpr.condition is null"); goto LABEL_23; } if ( !a2[6] ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "IfExpr.then_expr is null"); LABEL_23: __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Expression::evaluate((long long)&v11, v3); v5 = minja::Value::to_bool((minja::Value *)&v11); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v16); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v16); if ( v15 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15); if ( v14 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14); if ( v13 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13); v6 = v12; if ( v12 ) { if ( _libc_single_threaded ) { v7 = *(_DWORD *)(v12 + 12); *(_DWORD *)(v12 + 12) = v7 - 1; } else { v7 = _InterlockedExchangeAdd((volatile signed __int32 *)(v12 + 12), 0xFFFFFFFF); } if ( v7 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v6 + 24LL))(v6, 0LL); } if ( v5 ) { v8 = (void (***)(void))a2[6]; } else { v8 = (void (***)(void))a2[8]; if ( !v8 ) { *(_QWORD *)(a1 + 72) = 0LL; *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_BYTE *)(a1 + 64) = 0; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); return a1; } } minja::Expression::evaluate(a1, v8); return a1; }
do_evaluate: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x50 MOV R15,RSI MOV RSI,qword ptr [RSI + 0x20] TEST RSI,RSI JZ 0x00159343 CMP qword ptr [R15 + 0x30],0x0 JZ 0x00159361 MOV R14,RDX MOV RBX,RDI MOV R12,RSP MOV RDI,R12 CALL 0x0013d5f2 LAB_00159252: MOV RDI,R12 CALL 0x0013d7f0 LAB_0015925a: MOV EBP,EAX LEA R12,[RSP + 0x40] MOV RDI,R12 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R12 CALL 0x0014a5c0 MOV RDI,qword ptr [R12 + -0x8] TEST RDI,RDI JZ 0x00159282 CALL 0x0012f80e LAB_00159282: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x00159291 CALL 0x0012f80e LAB_00159291: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x001592a0 CALL 0x0012f80e LAB_001592a0: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x001592d6 MOV RAX,qword ptr [0x001effa0] CMP byte ptr [RAX],0x0 JZ 0x001592c1 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001592cb LAB_001592c1: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001592cb: CMP EAX,0x1 JNZ 0x001592d6 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001592d6: TEST BPL,BPL JZ 0x001592e1 MOV RSI,qword ptr [R15 + 0x30] JMP 0x001592ea LAB_001592e1: MOV RSI,qword ptr [R15 + 0x40] TEST RSI,RSI JZ 0x00159305 LAB_001592ea: MOV RDI,RBX MOV RDX,R14 CALL 0x0013d5f2 LAB_001592f5: MOV RAX,RBX ADD RSP,0x50 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00159305: LEA R14,[RBX + 0x40] MOV qword ptr [RBX + 0x48],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOV byte ptr [RBX + 0x40],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 JMP 0x001592f5 LAB_00159343: MOV EDI,0x10 CALL 0x00118360 MOV R14,RAX LAB_00159350: LEA RSI,[0x1bb4e6] MOV RDI,RAX CALL 0x00118270 LAB_0015935f: JMP 0x0015937d LAB_00159361: MOV EDI,0x10 CALL 0x00118360 MOV R14,RAX LAB_0015936e: LEA RSI,[0x1bb4ff] MOV RDI,RAX CALL 0x00118270 LAB_0015937d: MOV RSI,qword ptr [0x001efff0] MOV RDX,qword ptr [0x001eff80] MOV RDI,R14 CALL 0x00118b30
/* minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */ IfExpr * __thiscall minja::IfExpr::do_evaluate(IfExpr *this,shared_ptr *param_1) { int *piVar1; char cVar2; int iVar3; runtime_error *this_00; shared_ptr *psVar4; bool bVar5; Expression aEStack_78 [8]; long *local_70; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40; data local_38 [16]; if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00159350 to 0015935e has its CatchHandler @ 00159395 */ std::runtime_error::runtime_error(this_00,"IfExpr.condition is null"); } else { if (*(long *)(param_1 + 0x30) != 0) { Expression::evaluate(aEStack_78,*(shared_ptr **)(param_1 + 0x20)); /* try { // try from 00159252 to 00159259 has its CatchHandler @ 001593a2 */ cVar2 = minja::Value::to_bool((Value *)aEStack_78); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_38,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_38); if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40); } if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50); } if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60); } if (local_70 != (long *)0x0) { if (*PTR___libc_single_threaded_001effa0 == '\0') { LOCK(); piVar1 = (int *)((long)local_70 + 0xc); iVar3 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar3 = *(int *)((long)local_70 + 0xc); *(int *)((long)local_70 + 0xc) = iVar3 + -1; } if (iVar3 == 1) { (**(code **)(*local_70 + 0x18))(); } } if (cVar2 == '\0') { psVar4 = *(shared_ptr **)(param_1 + 0x40); if (psVar4 == (shared_ptr *)0x0) { bVar5 = (bool)((char)this + '@'); *(int8 *)(this + 0x48) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; this[0x40] = (IfExpr)0x0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar5); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar5); return this; } } else { psVar4 = *(shared_ptr **)(param_1 + 0x30); } Expression::evaluate((Expression *)this,psVar4); return this; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0015936e to 0015937c has its CatchHandler @ 00159393 */ std::runtime_error::runtime_error(this_00,"IfExpr.then_expr is null"); } /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001efff0,PTR__runtime_error_001eff80); }
32,255
Gis_multi_polygon::get_data_as_json(String*, unsigned int, char const**) const
eloqsql/sql/spatial.cc
bool Gis_multi_polygon::get_data_as_json(String *txt, uint max_dec_digits, const char **end) const { uint32 n_polygons; const char *data= m_data; if (no_data(data, 4) || txt->reserve(1, 512)) return 1; n_polygons= uint4korr(data); data+= 4; txt->q_append('['); while (n_polygons--) { uint32 n_linear_rings; if (no_data(data, 4 + WKB_HEADER_SIZE) || txt->reserve(1, 512)) return 1; n_linear_rings= uint4korr(data+WKB_HEADER_SIZE); data+= 4 + WKB_HEADER_SIZE; txt->q_append('['); while (n_linear_rings--) { if (no_data(data, 4)) return 1; uint32 n_points= uint4korr(data); data+= 4; if (not_enough_points(data, n_points) || txt->reserve(2 + (MAX_DIGITS_IN_DOUBLE * 2 + 6) * n_points, 512)) return 1; data= append_json_points(txt, max_dec_digits, n_points, data, 0); txt->qs_append(", ", 2); } txt->length(txt->length() - 2); txt->qs_append("], ", 3); } txt->length(txt->length() - 2); txt->q_append(']'); *end= data; return 0; }
O0
cpp
Gis_multi_polygon::get_data_as_json(String*, unsigned int, char const**) const: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x48(%rbp) movq 0x8(%rdi), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rsi movl $0x4, %edx callq 0xdb4730 testb $0x1, %al jne 0xe2a8d5 movq -0x18(%rbp), %rdi addq $0x8, %rdi movl $0x1, %esi movl $0x200, %edx # imm = 0x200 callq 0xaaedc0 cmpl $0x0, %eax je 0xe2a8de movb $0x1, -0x1(%rbp) jmp 0xe2aad0 movq -0x38(%rbp), %rax movl (%rax), %eax movl %eax, -0x2c(%rbp) movq -0x38(%rbp), %rax addq $0x4, %rax movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rdi addq $0x8, %rdi movl $0x5b, %esi callq 0x8dba00 movl -0x2c(%rbp), %eax movl %eax, %ecx addl $-0x1, %ecx movl %ecx, -0x2c(%rbp) cmpl $0x0, %eax je 0xe2aa86 movq -0x48(%rbp), %rdi movq -0x38(%rbp), %rsi movl $0x9, %edx callq 0xdb4730 testb $0x1, %al jne 0xe2a94b movq -0x18(%rbp), %rdi addq $0x8, %rdi movl $0x1, %esi movl $0x200, %edx # imm = 0x200 callq 0xaaedc0 cmpl $0x0, %eax je 0xe2a954 movb $0x1, -0x1(%rbp) jmp 0xe2aad0 movq -0x38(%rbp), %rax movl 0x5(%rax), %eax movl %eax, -0x3c(%rbp) movq -0x38(%rbp), %rax addq $0x9, %rax movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rdi addq $0x8, %rdi movl $0x5b, %esi callq 0x8dba00 movl -0x3c(%rbp), %eax movl %eax, %ecx addl $-0x1, %ecx movl %ecx, -0x3c(%rbp) cmpl $0x0, %eax je 0xe2aa3f movq -0x48(%rbp), %rdi movq -0x38(%rbp), %rsi movl $0x4, %edx callq 0xdb4730 testb $0x1, %al jne 0xe2a9a8 jmp 0xe2a9b1 movb $0x1, -0x1(%rbp) jmp 0xe2aad0 movq -0x48(%rbp), %rdi movq -0x38(%rbp), %rax movl (%rax), %eax movl %eax, -0x40(%rbp) movq -0x38(%rbp), %rax addq $0x4, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rsi movl -0x40(%rbp), %edx xorl %ecx, %ecx callq 0xe2ca30 testb $0x1, %al jne 0xe2a9fe movq -0x18(%rbp), %rdi addq $0x8, %rdi imull $0x4a, -0x40(%rbp), %eax addl $0x2, %eax movl %eax, %eax movl %eax, %esi movl $0x200, %edx # imm = 0x200 callq 0xaaedc0 cmpl $0x0, %eax je 0xe2aa07 movb $0x1, -0x1(%rbp) jmp 0xe2aad0 movq -0x18(%rbp), %rdi movl -0x1c(%rbp), %esi movl -0x40(%rbp), %edx movq -0x38(%rbp), %rcx xorl %r8d, %r8d callq 0xe25a60 movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rdi addq $0x8, %rdi leaq 0x619707(%rip), %rsi # 0x1444137 movl $0x2, %edx callq 0xaaee50 jmp 0xe2a97c movq -0x18(%rbp), %rax addq $0x8, %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rdi addq $0x8, %rdi callq 0x81be40 movq -0x50(%rbp), %rdi subl $0x2, %eax movl %eax, %eax movl %eax, %esi callq 0x857e00 movq -0x18(%rbp), %rdi addq $0x8, %rdi leaq 0x61a257(%rip), %rsi # 0x1444cce movl $0x3, %edx callq 0xaaee50 jmp 0xe2a905 movq -0x18(%rbp), %rax addq $0x8, %rax movq %rax, -0x58(%rbp) movq -0x18(%rbp), %rdi addq $0x8, %rdi callq 0x81be40 movq -0x58(%rbp), %rdi subl $0x2, %eax movl %eax, %eax movl %eax, %esi callq 0x857e00 movq -0x18(%rbp), %rdi addq $0x8, %rdi movl $0x5d, %esi callq 0x8dba00 movq -0x38(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x60, %rsp popq %rbp retq nopl (%rax,%rax)
_ZNK17Gis_multi_polygon16get_data_as_jsonEP6StringjPPKc: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov rdi, [rbp+var_10]; this mov [rbp+var_48], rdi mov rax, [rdi+8] mov [rbp+var_38], rax mov rsi, [rbp+var_38]; char * mov edx, 4; unsigned __int64 call _ZNK8Geometry7no_dataEPKcm; Geometry::no_data(char const*,ulong) test al, 1 jnz short loc_E2A8D5 mov rdi, [rbp+var_18] add rdi, 8; this mov esi, 1; unsigned __int64 mov edx, 200h; unsigned __int64 call _ZN13Binary_string7reserveEmm; Binary_string::reserve(ulong,ulong) cmp eax, 0 jz short loc_E2A8DE loc_E2A8D5: mov [rbp+var_1], 1 jmp loc_E2AAD0 loc_E2A8DE: mov rax, [rbp+var_38] mov eax, [rax] mov [rbp+var_2C], eax mov rax, [rbp+var_38] add rax, 4 mov [rbp+var_38], rax mov rdi, [rbp+var_18] add rdi, 8; this mov esi, 5Bh ; '['; char call _ZN13Binary_string8q_appendEc; Binary_string::q_append(char) loc_E2A905: mov eax, [rbp+var_2C] mov ecx, eax add ecx, 0FFFFFFFFh mov [rbp+var_2C], ecx cmp eax, 0 jz loc_E2AA86 mov rdi, [rbp+var_48]; this mov rsi, [rbp+var_38]; char * mov edx, 9; unsigned __int64 call _ZNK8Geometry7no_dataEPKcm; Geometry::no_data(char const*,ulong) test al, 1 jnz short loc_E2A94B mov rdi, [rbp+var_18] add rdi, 8; this mov esi, 1; unsigned __int64 mov edx, 200h; unsigned __int64 call _ZN13Binary_string7reserveEmm; Binary_string::reserve(ulong,ulong) cmp eax, 0 jz short loc_E2A954 loc_E2A94B: mov [rbp+var_1], 1 jmp loc_E2AAD0 loc_E2A954: mov rax, [rbp+var_38] mov eax, [rax+5] mov [rbp+var_3C], eax mov rax, [rbp+var_38] add rax, 9 mov [rbp+var_38], rax mov rdi, [rbp+var_18] add rdi, 8; this mov esi, 5Bh ; '['; char call _ZN13Binary_string8q_appendEc; Binary_string::q_append(char) loc_E2A97C: mov eax, [rbp+var_3C] mov ecx, eax add ecx, 0FFFFFFFFh mov [rbp+var_3C], ecx cmp eax, 0 jz loc_E2AA3F mov rdi, [rbp+var_48]; this mov rsi, [rbp+var_38]; char * mov edx, 4; unsigned __int64 call _ZNK8Geometry7no_dataEPKcm; Geometry::no_data(char const*,ulong) test al, 1 jnz short loc_E2A9A8 jmp short loc_E2A9B1 loc_E2A9A8: mov [rbp+var_1], 1 jmp loc_E2AAD0 loc_E2A9B1: mov rdi, [rbp+var_48]; this mov rax, [rbp+var_38] mov eax, [rax] mov [rbp+var_40], eax mov rax, [rbp+var_38] add rax, 4 mov [rbp+var_38], rax mov rsi, [rbp+var_38]; char * mov edx, [rbp+var_40]; unsigned int xor ecx, ecx; unsigned int call _ZNK8Geometry17not_enough_pointsEPKcjj; Geometry::not_enough_points(char const*,uint,uint) test al, 1 jnz short loc_E2A9FE mov rdi, [rbp+var_18] add rdi, 8; this imul eax, [rbp+var_40], 4Ah ; 'J' add eax, 2 mov eax, eax mov esi, eax; unsigned __int64 mov edx, 200h; unsigned __int64 call _ZN13Binary_string7reserveEmm; Binary_string::reserve(ulong,ulong) cmp eax, 0 jz short loc_E2AA07 loc_E2A9FE: mov [rbp+var_1], 1 jmp loc_E2AAD0 loc_E2AA07: mov rdi, [rbp+var_18]; String * mov esi, [rbp+var_1C]; unsigned int mov edx, [rbp+var_40]; unsigned int mov rcx, [rbp+var_38]; char * xor r8d, r8d; unsigned int call _ZL18append_json_pointsP6StringjjPKcj; append_json_points(String *,uint,uint,char const*,uint) mov [rbp+var_38], rax mov rdi, [rbp+var_18] add rdi, 8; this lea rsi, asc_1444135+2; char * mov edx, 2; unsigned __int64 call _ZN13Binary_string9qs_appendEPKcm; Binary_string::qs_append(char const*,ulong) jmp loc_E2A97C loc_E2AA3F: mov rax, [rbp+var_18] add rax, 8 mov [rbp+var_50], rax mov rdi, [rbp+var_18] add rdi, 8; this call _ZNK13Binary_string6lengthEv; Binary_string::length(void) mov rdi, [rbp+var_50]; this sub eax, 2 mov eax, eax mov esi, eax; unsigned __int64 call _ZN13Binary_string6lengthEm; Binary_string::length(ulong) mov rdi, [rbp+var_18] add rdi, 8; this lea rsi, asc_1444CCE; "], " mov edx, 3; unsigned __int64 call _ZN13Binary_string9qs_appendEPKcm; Binary_string::qs_append(char const*,ulong) jmp loc_E2A905 loc_E2AA86: mov rax, [rbp+var_18] add rax, 8 mov [rbp+var_58], rax mov rdi, [rbp+var_18] add rdi, 8; this call _ZNK13Binary_string6lengthEv; Binary_string::length(void) mov rdi, [rbp+var_58]; this sub eax, 2 mov eax, eax mov esi, eax; unsigned __int64 call _ZN13Binary_string6lengthEm; Binary_string::length(ulong) mov rdi, [rbp+var_18] add rdi, 8; this mov esi, 5Dh ; ']'; char call _ZN13Binary_string8q_appendEc; Binary_string::q_append(char) mov rcx, [rbp+var_38] mov rax, [rbp+var_28] mov [rax], rcx mov [rbp+var_1], 0 loc_E2AAD0: mov al, [rbp+var_1] and al, 1 add rsp, 60h pop rbp retn
char Gis_multi_polygon::get_data_as_json(Gis_multi_polygon *this, String *a2, int a3, char **a4) { int v6; // eax int v7; // eax unsigned int v9; // [rsp+20h] [rbp-40h] int v10; // [rsp+24h] [rbp-3Ch] char *v11; // [rsp+28h] [rbp-38h] char *appended; // [rsp+28h] [rbp-38h] char *v13; // [rsp+28h] [rbp-38h] int v14; // [rsp+34h] [rbp-2Ch] v11 = (char *)*((_QWORD *)this + 1); if ( Geometry::no_data(this, v11, 4LL) || (unsigned int)Binary_string::reserve((String *)((char *)a2 + 8), 1uLL, 0x200uLL) ) { return 1; } v14 = *(_DWORD *)v11; appended = v11 + 4; Binary_string::q_append((String *)((char *)a2 + 8), 91); while ( v14-- ) { if ( Geometry::no_data(this, appended, 9LL) || (unsigned int)Binary_string::reserve((String *)((char *)a2 + 8), 1uLL, 0x200uLL) ) { return 1; } v10 = *(_DWORD *)(appended + 5); appended += 9; Binary_string::q_append((String *)((char *)a2 + 8), 91); while ( v10-- ) { if ( Geometry::no_data(this, appended, 4LL) ) return 1; v9 = *(_DWORD *)appended; v13 = appended + 4; if ( (Geometry::not_enough_points(this, v13, v9, 0) & 1) != 0 || (unsigned int)Binary_string::reserve((String *)((char *)a2 + 8), 74 * v9 + 2, 0x200uLL) ) { return 1; } appended = (char *)append_json_points(a2, a3, v9, v13, 0); Binary_string::qs_append((String *)((char *)a2 + 8), ", ", 2LL); } v6 = Binary_string::length((String *)((char *)a2 + 8)); Binary_string::length((String *)((char *)a2 + 8), v6 - 2); Binary_string::qs_append((String *)((char *)a2 + 8), "], ", 3LL); } v7 = Binary_string::length((String *)((char *)a2 + 8)); Binary_string::length((String *)((char *)a2 + 8), v7 - 2); Binary_string::q_append((String *)((char *)a2 + 8), 93); *a4 = appended; return 0; }
set_null: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x64],0x1 MOV dword ptr [RAX + 0x8],0x0 MOV word ptr [RAX + 0xc],0x0 MOV dword ptr [RAX + 0x98],0x1 JMP 0x00e2a8a9 LAB_00e2a8a9: POP RBP RET
/* Item_param::set_null() */ void __thiscall Item_param::set_null(Item_param *this) { this[100] = (Item_param)0x1; *(int4 *)(this + 8) = 0; *(int2 *)(this + 0xc) = 0; *(int4 *)(this + 0x98) = 1; return; }
32,256
Gis_multi_polygon::get_data_as_json(String*, unsigned int, char const**) const
eloqsql/sql/spatial.cc
bool Gis_multi_polygon::get_data_as_json(String *txt, uint max_dec_digits, const char **end) const { uint32 n_polygons; const char *data= m_data; if (no_data(data, 4) || txt->reserve(1, 512)) return 1; n_polygons= uint4korr(data); data+= 4; txt->q_append('['); while (n_polygons--) { uint32 n_linear_rings; if (no_data(data, 4 + WKB_HEADER_SIZE) || txt->reserve(1, 512)) return 1; n_linear_rings= uint4korr(data+WKB_HEADER_SIZE); data+= 4 + WKB_HEADER_SIZE; txt->q_append('['); while (n_linear_rings--) { if (no_data(data, 4)) return 1; uint32 n_points= uint4korr(data); data+= 4; if (not_enough_points(data, n_points) || txt->reserve(2 + (MAX_DIGITS_IN_DOUBLE * 2 + 6) * n_points, 512)) return 1; data= append_json_points(txt, max_dec_digits, n_points, data, 0); txt->qs_append(", ", 2); } txt->length(txt->length() - 2); txt->qs_append("], ", 3); } txt->length(txt->length() - 2); txt->q_append(']'); *end= data; return 0; }
O3
cpp
Gis_multi_polygon::get_data_as_json(String*, unsigned int, char const**) const: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %edx, -0x3c(%rbp) movq 0x8(%rdi), %rbx leaq 0x4(%rbx), %r14 movb $0x1, %r12b cmpq 0x10(%rdi), %r14 ja 0xa411bb movq %rdi, -0x58(%rbp) movq %rcx, -0x50(%rbp) movq %rsi, %r15 leaq 0x8(%rsi), %r13 movl $0x1, %esi movl $0x200, %edx # imm = 0x200 movq %r13, %rdi callq 0x858dc4 testl %eax, %eax jne 0xa411bb movq %r13, -0x38(%rbp) movl (%rbx), %esi movq 0x8(%r15), %rax movl 0x10(%r15), %ecx leal 0x1(%rcx), %edx movl %edx, 0x10(%r15) movb $0x5b, (%rax,%rcx) testl %esi, %esi je 0xa41199 movl %esi, -0x2c(%rbp) movq -0x58(%rbp), %r13 movq %r15, -0x48(%rbp) leaq 0x9(%r14), %rbx cmpq 0x10(%r13), %rbx ja 0xa411bb movl $0x1, %esi movl $0x200, %edx # imm = 0x200 movq -0x38(%rbp), %rdi callq 0x858dc4 testl %eax, %eax jne 0xa411bb movl 0x5(%r14), %r14d movq 0x8(%r15), %rax movl 0x10(%r15), %ecx leal 0x1(%rcx), %edx movl %edx, 0x10(%r15) movb $0x5b, (%rax,%rcx) testl %r14d, %r14d je 0xa4115a leaq 0x4(%rbx), %r12 movq 0x10(%r13), %rax cmpq %rax, %r12 ja 0xa41194 movl (%rbx), %ebx subq %r12, %rax leaq 0xf(%rax), %rcx testq %rax, %rax cmovnsq %rax, %rcx sarq $0x4, %rcx cmpq %rbx, %rcx jl 0xa41194 imull $0x4a, %ebx, %esi addl $0x2, %esi movl $0x200, %edx # imm = 0x200 movq -0x38(%rbp), %r15 movq %r15, %rdi callq 0x858dc4 testl %eax, %eax jne 0xa41194 decl %r14d movq -0x48(%rbp), %rdi movl -0x3c(%rbp), %esi movl %ebx, %edx movq %r12, %rcx xorl %r8d, %r8d callq 0xa3e1f6 movq %rax, %rbx movl $0x2, %edx movq %r15, %rdi leaq 0x383f27(%rip), %rsi # 0xdc5072 callq 0x858e0e testl %r14d, %r14d movq %r15, %rdi jne 0xa410d9 jmp 0xa4115e movq -0x38(%rbp), %rdi movl -0x2c(%rbp), %r12d decl %r12d movq -0x48(%rbp), %r15 addl $-0x2, 0x10(%r15) movl $0x3, %edx leaq 0x384a8f(%rip), %rsi # 0xdc5c09 callq 0x858e0e movq %rbx, %r14 movl %r12d, -0x2c(%rbp) testl %r12d, %r12d movb $0x1, %r12b jne 0xa41090 jmp 0xa4119c movb $0x1, %r12b jmp 0xa411bb movq %r14, %rbx movl 0x10(%r15), %eax leal -0x2(%rax), %ecx movq 0x8(%r15), %rdx decl %eax movl %eax, 0x10(%r15) movb $0x5d, (%rdx,%rcx) movq -0x50(%rbp), %rax movq %rbx, (%rax) xorl %r12d, %r12d movl %r12d, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZNK17Gis_multi_polygon16get_data_as_jsonEP6StringjPPKc: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_3C], edx mov rbx, [rdi+8] lea r14, [rbx+4] mov r12b, 1 cmp r14, [rdi+10h] ja loc_A411BB mov [rbp+var_58], rdi mov [rbp+var_50], rcx mov r15, rsi lea r13, [rsi+8] mov esi, 1; unsigned __int64 mov edx, 200h; unsigned __int64 mov rdi, r13; this call _ZN13Binary_string7reserveEmm; Binary_string::reserve(ulong,ulong) test eax, eax jnz loc_A411BB mov [rbp+var_38], r13 mov esi, [rbx] mov rax, [r15+8] mov ecx, [r15+10h] lea edx, [rcx+1] mov [r15+10h], edx mov byte ptr [rax+rcx], 5Bh ; '[' test esi, esi jz loc_A41199 mov [rbp+var_2C], esi mov r13, [rbp+var_58] mov [rbp+var_48], r15 loc_A41090: lea rbx, [r14+9] cmp rbx, [r13+10h] ja loc_A411BB mov esi, 1; unsigned __int64 mov edx, 200h; unsigned __int64 mov rdi, [rbp+var_38]; this call _ZN13Binary_string7reserveEmm; Binary_string::reserve(ulong,ulong) test eax, eax jnz loc_A411BB mov r14d, [r14+5] mov rax, [r15+8] mov ecx, [r15+10h] lea edx, [rcx+1] mov [r15+10h], edx mov byte ptr [rax+rcx], 5Bh ; '[' test r14d, r14d jz loc_A4115A loc_A410D9: lea r12, [rbx+4] mov rax, [r13+10h] cmp r12, rax ja loc_A41194 mov ebx, [rbx] sub rax, r12 lea rcx, [rax+0Fh] test rax, rax cmovns rcx, rax sar rcx, 4 cmp rcx, rbx jl loc_A41194 imul esi, ebx, 4Ah ; 'J' add esi, 2; unsigned __int64 mov edx, 200h; unsigned __int64 mov r15, [rbp+var_38] mov rdi, r15; this call _ZN13Binary_string7reserveEmm; Binary_string::reserve(ulong,ulong) test eax, eax jnz short loc_A41194 dec r14d mov rdi, [rbp+var_48]; String * mov esi, [rbp+var_3C]; unsigned int mov edx, ebx; unsigned int mov rcx, r12; char * xor r8d, r8d; unsigned int call _ZL18append_json_pointsP6StringjjPKcj; append_json_points(String *,uint,uint,char const*,uint) mov rbx, rax mov edx, 2; unsigned __int64 mov rdi, r15; this lea rsi, asc_DC5070+2; char * call _ZN13Binary_string9qs_appendEPKcm; Binary_string::qs_append(char const*,ulong) test r14d, r14d mov rdi, r15 jnz short loc_A410D9 jmp short loc_A4115E loc_A4115A: mov rdi, [rbp+var_38]; this loc_A4115E: mov r12d, [rbp+var_2C] dec r12d mov r15, [rbp+var_48] add dword ptr [r15+10h], 0FFFFFFFEh mov edx, 3; unsigned __int64 lea rsi, asc_DC5C09; "], " call _ZN13Binary_string9qs_appendEPKcm; Binary_string::qs_append(char const*,ulong) mov r14, rbx mov [rbp+var_2C], r12d test r12d, r12d mov r12b, 1 jnz loc_A41090 jmp short loc_A4119C loc_A41194: mov r12b, 1 jmp short loc_A411BB loc_A41199: mov rbx, r14 loc_A4119C: mov eax, [r15+10h] lea ecx, [rax-2] mov rdx, [r15+8] dec eax mov [r15+10h], eax mov byte ptr [rdx+rcx], 5Dh ; ']' mov rax, [rbp+var_50] mov [rax], rbx xor r12d, r12d loc_A411BB: mov eax, r12d add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long Gis_multi_polygon::get_data_as_json( Gis_multi_polygon *this, String *a2, unsigned int a3, const char **a4) { const char *v4; // r12 _DWORD *v5; // rbx const char *v6; // r14 String *v7; // r15 Binary_string *v8; // r13 int v9; // esi long long v10; // rax long long v11; // rcx const char *appended; // rbx int v13; // r14d long long v14; // rax long long v15; // rcx unsigned long long v16; // rax long long v17; // rbx Binary_string *v18; // rdi bool v19; // zf int v20; // eax long long v21; // rdx String *v25; // [rsp+18h] [rbp-48h] int v27; // [rsp+34h] [rbp-2Ch] v5 = (_DWORD *)*((_QWORD *)this + 1); v6 = (const char *)(v5 + 1); LOBYTE(v4) = 1; if ( (unsigned long long)(v5 + 1) <= *((_QWORD *)this + 2) ) { v7 = a2; v8 = (String *)((char *)a2 + 8); if ( !(unsigned int)Binary_string::reserve((String *)((char *)a2 + 8), 1uLL, 0x200uLL) ) { v9 = *v5; v10 = *((_QWORD *)v7 + 1); v11 = *((unsigned int *)v7 + 4); *((_DWORD *)v7 + 4) = v11 + 1; *(_BYTE *)(v10 + v11) = 91; if ( v9 ) { v27 = v9; v25 = v7; while ( 1 ) { appended = v6 + 9; if ( (unsigned long long)(v6 + 9) > *((_QWORD *)this + 2) || (unsigned int)Binary_string::reserve(v8, 1uLL, 0x200uLL) ) { break; } v13 = *(_DWORD *)(v6 + 5); v14 = *((_QWORD *)v7 + 1); v15 = *((unsigned int *)v7 + 4); *((_DWORD *)v7 + 4) = v15 + 1; *(_BYTE *)(v14 + v15) = 91; if ( v13 ) { while ( 1 ) { v4 = appended + 4; v16 = *((_QWORD *)this + 2); if ( (unsigned long long)(appended + 4) > v16 ) break; v17 = *(unsigned int *)appended; if ( (long long)(v16 - (_QWORD)v4) / 16 < v17 || (unsigned int)Binary_string::reserve(v8, (unsigned int)(74 * v17 + 2), 0x200uLL) ) { break; } --v13; appended = append_json_points(v25, a3, v17, v4, 0); Binary_string::qs_append(v8, ", ", 2LL); v18 = v8; if ( !v13 ) goto LABEL_14; } LOBYTE(v4) = 1; return (unsigned int)v4; } v18 = v8; LABEL_14: LODWORD(v4) = v27 - 1; v7 = v25; *((_DWORD *)v25 + 4) -= 2; Binary_string::qs_append(v18, "], ", 3LL); v6 = appended; v27 = (int)v4; v19 = (_DWORD)v4 == 0; LOBYTE(v4) = 1; if ( v19 ) goto LABEL_18; } } else { appended = (const char *)(v5 + 1); LABEL_18: v20 = *((_DWORD *)v7 + 4); v21 = *((_QWORD *)v7 + 1); *((_DWORD *)v7 + 4) = v20 - 1; *(_BYTE *)(v21 + (unsigned int)(v20 - 2)) = 93; *a4 = appended; LODWORD(v4) = 0; } } } return (unsigned int)v4; }
32,257
ftxui::ComponentBase::~ComponentBase()
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/component/component.cpp
ComponentBase::~ComponentBase() { DetachAllChildren(); }
O3
cpp
ftxui::ComponentBase::~ComponentBase(): pushq %rbx movq %rdi, %rbx leaq 0x30f29(%rip), %rax # 0x57cc8 movq %rax, (%rdi) movq 0x8(%rdi), %rax cmpq 0x10(%rdi), %rax je 0x26dbe movq (%rax), %rdi callq 0x26e8e movq 0x8(%rbx), %rax cmpq 0x10(%rbx), %rax jne 0x26dac addq $0x8, %rbx movq %rbx, %rdi popq %rbx jmp 0x149b2 movq %rax, %rdi callq 0x1049a nop
_ZN5ftxui13ComponentBaseD2Ev: push rbx; Alternative name is 'ftxui::ComponentBase::~ComponentBase()' mov rbx, rdi lea rax, off_57CC8 mov [rdi], rax mov rax, [rdi+8] cmp rax, [rdi+10h] jz short loc_26DBE loc_26DAC: mov rdi, [rax]; this call _ZN5ftxui13ComponentBase6DetachEv; ftxui::ComponentBase::Detach(void) mov rax, [rbx+8] cmp rax, [rbx+10h] jnz short loc_26DAC loc_26DBE: add rbx, 8 mov rdi, rbx pop rbx jmp _ZNSt6vectorISt10shared_ptrIN5ftxui13ComponentBaseEESaIS3_EED2Ev; std::vector<std::shared_ptr<ftxui::ComponentBase>>::~vector() mov rdi, rax call __clang_call_terminate
void ftxui::ComponentBase::~ComponentBase(ftxui::ComponentBase *this) { ftxui::ComponentBase **i; // rax *(_QWORD *)this = off_57CC8; for ( i = (ftxui::ComponentBase **)*((_QWORD *)this + 1); i != *((ftxui::ComponentBase ***)this + 2); i = (ftxui::ComponentBase **)*((_QWORD *)this + 1) ) { ftxui::ComponentBase::Detach(*i); } std::vector<std::shared_ptr<ftxui::ComponentBase>>::~vector((long long)this + 8); }
~ComponentBase: PUSH RBX MOV RBX,RDI LEA RAX,[0x157cc8] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RDI + 0x8] CMP RAX,qword ptr [RDI + 0x10] JZ 0x00126dbe LAB_00126dac: MOV RDI,qword ptr [RAX] LAB_00126daf: CALL 0x00126e8e MOV RAX,qword ptr [RBX + 0x8] CMP RAX,qword ptr [RBX + 0x10] JNZ 0x00126dac LAB_00126dbe: ADD RBX,0x8 MOV RDI,RBX POP RBX JMP 0x001149b2
/* ftxui::ComponentBase::~ComponentBase() */ void __thiscall ftxui::ComponentBase::~ComponentBase(ComponentBase *this) { int8 *puVar1; *(int ***)this = &PTR__ComponentBase_00157cc8; puVar1 = *(int8 **)(this + 8); if (puVar1 != *(int8 **)(this + 0x10)) { do { /* try { // try from 00126daf to 00126db3 has its CatchHandler @ 00126dcb */ Detach((ComponentBase *)*puVar1); puVar1 = *(int8 **)(this + 8); } while (puVar1 != *(int8 **)(this + 0x10)); } std:: vector<std::shared_ptr<ftxui::ComponentBase>,std::allocator<std::shared_ptr<ftxui::ComponentBase>>> ::~vector((vector<std::shared_ptr<ftxui::ComponentBase>,std::allocator<std::shared_ptr<ftxui::ComponentBase>>> *)(this + 8)); return; }
32,258
sux_lock<ssux_lock_impl<true>>::u_or_x_unlock(bool, bool)
eloqsql/storage/innobase/include/sux_lock.h
void u_or_x_unlock(bool allow_readers, bool claim_ownership= false) { ut_d(auto owner= writer.load(std::memory_order_relaxed)); ut_ad(owner == pthread_self() || (owner == FOR_IO && claim_ownership && recursive == (allow_readers ? RECURSIVE_U : RECURSIVE_X))); ut_d(auto rec= (recursive / (allow_readers ? RECURSIVE_U : RECURSIVE_X)) & RECURSIVE_MAX); ut_ad(rec); if (!(recursive-= allow_readers ? RECURSIVE_U : RECURSIVE_X)) { set_new_owner(0); if (allow_readers) lock.u_unlock(); else lock.wr_unlock(); } }
O0
c
sux_lock<ssux_lock_impl<true>>::u_or_x_unlock(bool, bool): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %dl, %al movb %sil, %cl movq %rdi, -0x8(%rbp) andb $0x1, %cl movb %cl, -0x9(%rbp) andb $0x1, %al movb %al, -0xa(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0x26d86 jmp 0x26d88 jmp 0x26d8a movq -0x18(%rbp), %rcx movb -0x9(%rbp), %sil movl $0x1, %edx movl $0x10000, %eax # imm = 0x10000 testb $0x1, %sil cmovnel %eax, %edx movl 0x8(%rcx), %eax subl %edx, %eax movl %eax, 0x8(%rcx) cmpl $0x0, %eax jne 0x26dd9 movq -0x18(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x26de0 testb $0x1, -0x9(%rbp) je 0x26dce movq -0x18(%rbp), %rdi callq 0x26e70 jmp 0x26dd7 movq -0x18(%rbp), %rdi callq 0x26f40 jmp 0x26dd9 addq $0x20, %rsp popq %rbp retq nop
_ZN8sux_lockI14ssux_lock_implILb1EEE13u_or_x_unlockEbb: push rbp mov rbp, rsp sub rsp, 20h mov al, dl mov cl, sil mov [rbp+var_8], rdi and cl, 1 mov [rbp+var_9], cl and al, 1 mov [rbp+var_A], al mov rax, [rbp+var_8] mov [rbp+var_18], rax jmp short $+2 loc_26D86: jmp short $+2 loc_26D88: jmp short $+2 loc_26D8A: mov rcx, [rbp+var_18] mov sil, [rbp+var_9] mov edx, 1 mov eax, 10000h test sil, 1 cmovnz edx, eax mov eax, [rcx+8] sub eax, edx mov [rcx+8], eax cmp eax, 0 jnz short loc_26DD9 mov rdi, [rbp+var_18] xor eax, eax mov esi, eax call _ZN8sux_lockI14ssux_lock_implILb1EEE13set_new_ownerEm; sux_lock<ssux_lock_impl<true>>::set_new_owner(ulong) test [rbp+var_9], 1 jz short loc_26DCE mov rdi, [rbp+var_18] call _ZN14ssux_lock_implILb1EE8u_unlockEv; ssux_lock_impl<true>::u_unlock(void) jmp short loc_26DD7 loc_26DCE: mov rdi, [rbp+var_18] call _ZN14ssux_lock_implILb1EE9wr_unlockEv; ssux_lock_impl<true>::wr_unlock(void) loc_26DD7: jmp short $+2 loc_26DD9: add rsp, 20h pop rbp retn
long long sux_lock<ssux_lock_impl<true>>::u_or_x_unlock(long long a1, char a2) { long long v2; // rdx long long result; // rax v2 = 1LL; if ( (a2 & 1) != 0 ) v2 = 0x10000LL; result = (unsigned int)(*(_DWORD *)(a1 + 8) - v2); *(_DWORD *)(a1 + 8) = result; if ( !(_DWORD)result ) { sux_lock<ssux_lock_impl<true>>::set_new_owner(a1, 0LL, v2, a1); if ( (a2 & 1) != 0 ) return ssux_lock_impl<true>::u_unlock(a1); else return ssux_lock_impl<true>::wr_unlock(a1); } return result; }
u_or_x_unlock: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,DL MOV CL,SIL MOV qword ptr [RBP + -0x8],RDI AND CL,0x1 MOV byte ptr [RBP + -0x9],CL AND AL,0x1 MOV byte ptr [RBP + -0xa],AL MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x00126d86 LAB_00126d86: JMP 0x00126d88 LAB_00126d88: JMP 0x00126d8a LAB_00126d8a: MOV RCX,qword ptr [RBP + -0x18] MOV SIL,byte ptr [RBP + -0x9] MOV EDX,0x1 MOV EAX,0x10000 TEST SIL,0x1 CMOVNZ EDX,EAX MOV EAX,dword ptr [RCX + 0x8] SUB EAX,EDX MOV dword ptr [RCX + 0x8],EAX CMP EAX,0x0 JNZ 0x00126dd9 MOV RDI,qword ptr [RBP + -0x18] XOR EAX,EAX MOV ESI,EAX CALL 0x00126de0 TEST byte ptr [RBP + -0x9],0x1 JZ 0x00126dce MOV RDI,qword ptr [RBP + -0x18] CALL 0x00126e70 JMP 0x00126dd7 LAB_00126dce: MOV RDI,qword ptr [RBP + -0x18] CALL 0x00126f40 LAB_00126dd7: JMP 0x00126dd9 LAB_00126dd9: ADD RSP,0x20 POP RBP RET
/* sux_lock<ssux_lock_impl<true> >::u_or_x_unlock(bool, bool) */ void sux_lock<ssux_lock_impl<true>>::u_or_x_unlock(bool param_1,bool param_2) { int iVar1; int iVar2; int7 in_register_00000039; sux_lock<ssux_lock_impl<true>> *this; this = (sux_lock<ssux_lock_impl<true>> *)CONCAT71(in_register_00000039,param_1); iVar2 = 1; if (param_2) { iVar2 = 0x10000; } iVar1 = *(int *)(this + 8); *(int *)(this + 8) = iVar1 - iVar2; if (iVar1 - iVar2 == 0) { set_new_owner(this,0); if (param_2) { ssux_lock_impl<true>::u_unlock((ssux_lock_impl<true> *)this); } else { ssux_lock_impl<true>::wr_unlock((ssux_lock_impl<true> *)this); } } return; }
32,259
minja::Value::contains(char const*) const
monkey531[P]llama/common/minja.hpp
bool contains(const char * key) const { return contains(std::string(key)); }
O3
cpp
minja::Value::contains(char const*) const: pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 leaq 0x7(%rsp), %rdx movq %r14, %rdi callq 0x578c2 movq %rbx, %rdi movq %r14, %rsi callq 0x9815e movl %eax, %ebx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb1e38 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b930 movl %ebx, %eax addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb1e60 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b930 movq %rbx, %rdi callq 0x1c0d0
_ZNK5minja5Value8containsEPKc: push r14 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rsp+38h+var_30] lea rdx, [rsp+38h+var_31] mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rdi, rbx mov rsi, r14 call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&) mov ebx, eax lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B1E38 mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B1E38: mov eax, ebx add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B1E60 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B1E60: mov rdi, rbx call __Unwind_Resume
long long minja::Value::contains(minja::Value *this, char *a2) { unsigned int v2; // eax unsigned int v3; // ebx void *v5[2]; // [rsp+8h] [rbp-30h] BYREF long long v6; // [rsp+18h] [rbp-20h] BYREF std::string::basic_string<std::allocator<char>>(v5, a2); LOBYTE(v2) = minja::Value::contains((long long)this, (long long)v5); v3 = v2; if ( v5[0] != &v6 ) operator delete(v5[0], v6 + 1); return v3; }
contains: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RSP + 0x8] LEA RDX,[RSP + 0x7] MOV RDI,R14 CALL 0x001578c2 LAB_001b1e10: MOV RDI,RBX MOV RSI,R14 CALL 0x0019815e LAB_001b1e1b: MOV EBX,EAX LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001b1e38 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011b930 LAB_001b1e38: MOV EAX,EBX ADD RSP,0x28 POP RBX POP R14 RET
/* minja::Value::contains(char const*) const */ int4 __thiscall minja::Value::contains(Value *this,char *param_1) { int4 uVar1; allocator local_31; long *local_30 [2]; long local_20 [2]; std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31); /* try { // try from 001b1e10 to 001b1e1a has its CatchHandler @ 001b1e42 */ uVar1 = contains(this,(string *)local_30); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return uVar1; }
32,260
qh_printstatistics
aimrt_mujoco_sim/_deps/qhull-src/src/libqhull_r/stat_r.c
void qh_printstatistics(qhT *qh, FILE *fp, const char *string) { int i, k; realT ave; /* ignored */ if (qh->num_points != qh->num_vertices || zval_(Zpbalance) == 0) { wval_(Wpbalance)= 0.0; wval_(Wpbalance2)= 0.0; }else wval_(Wpbalance2)= qh_stddev(qh, zval_(Zpbalance), wval_(Wpbalance), wval_(Wpbalance2), &ave); if (zval_(Zprocessed) == 0) wval_(Wnewbalance2)= 0.0; else wval_(Wnewbalance2)= qh_stddev(qh, zval_(Zprocessed), wval_(Wnewbalance), wval_(Wnewbalance2), &ave); qh_fprintf(qh, fp, 9350, "\n\ %s\n\ qhull invoked by: %s | %s\n %s with options:\n%s\n", string, qh->rbox_command, qh->qhull_command, qh_version, qh->qhull_options); qh_fprintf(qh, fp, 9351, "\nprecision constants:\n\ %6.2g max. abs. coordinate in the (transformed) input ('Qbd:n')\n\ %6.2g max. roundoff error for distance computation ('En')\n\ %6.2g max. roundoff error for angle computations\n\ %6.2g min. distance for outside points ('Wn')\n\ %6.2g min. distance for visible facets ('Vn')\n\ %6.2g max. distance for coplanar facets ('Un')\n\ %6.2g max. facet width for recomputing centrum and area\n\ ", qh->MAXabs_coord, qh->DISTround, qh->ANGLEround, qh->MINoutside, qh->MINvisible, qh->MAXcoplanar, qh->WIDEfacet); if (qh->KEEPnearinside) qh_fprintf(qh, fp, 9352, "\ %6.2g max. distance for near-inside points\n", qh->NEARinside); if (qh->premerge_cos < REALmax/2) qh_fprintf(qh, fp, 9353, "\ %6.2g max. cosine for pre-merge angle\n", qh->premerge_cos); if (qh->PREmerge) qh_fprintf(qh, fp, 9354, "\ %6.2g radius of pre-merge centrum\n", qh->premerge_centrum); if (qh->postmerge_cos < REALmax/2) qh_fprintf(qh, fp, 9355, "\ %6.2g max. cosine for post-merge angle\n", qh->postmerge_cos); if (qh->POSTmerge) qh_fprintf(qh, fp, 9356, "\ %6.2g radius of post-merge centrum\n", qh->postmerge_centrum); qh_fprintf(qh, fp, 9357, "\ %6.2g max. distance for merging two simplicial facets\n\ %6.2g max. roundoff error for arithmetic operations\n\ %6.2g min. denominator for division\n\ zero diagonal for Gauss: ", qh->ONEmerge, REALepsilon, qh->MINdenom); for(k=0; k < qh->hull_dim; k++) qh_fprintf(qh, fp, 9358, "%6.2e ", qh->NEARzero[k]); qh_fprintf(qh, fp, 9359, "\n\n"); for(i=0 ; i < qh->qhstat.next; ) qh_printstats(qh, fp, i, &i); }
O0
c
qh_printstatistics: subq $0x48, %rsp movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movq %rdx, 0x30(%rsp) movq 0x40(%rsp), %rax movl 0x280(%rax), %eax movq 0x40(%rsp), %rcx cmpl 0xa0c(%rcx), %eax jne 0x4bd1c9 movq 0x40(%rsp), %rax cmpl $0x0, 0x12f8(%rax) jne 0x4bd1eb movq 0x40(%rsp), %rax xorps %xmm0, %xmm0 movsd %xmm0, 0x1300(%rax) movq 0x40(%rsp), %rax xorps %xmm0, %xmm0 movsd %xmm0, 0x1308(%rax) jmp 0x4bd22c movq 0x40(%rsp), %rdi movq 0x40(%rsp), %rax movl 0x12f8(%rax), %esi movq 0x40(%rsp), %rax movsd 0x1300(%rax), %xmm0 movq 0x40(%rsp), %rax movsd 0x1308(%rax), %xmm1 leaq 0x20(%rsp), %rdx callq 0x4bd570 movq 0x40(%rsp), %rax movsd %xmm0, 0x1308(%rax) movq 0x40(%rsp), %rax cmpl $0x0, 0x1338(%rax) jne 0x4bd24c movq 0x40(%rsp), %rax xorps %xmm0, %xmm0 movsd %xmm0, 0x11f8(%rax) jmp 0x4bd28d movq 0x40(%rsp), %rdi movq 0x40(%rsp), %rax movl 0x1338(%rax), %esi movq 0x40(%rsp), %rax movsd 0x11f0(%rax), %xmm0 movq 0x40(%rsp), %rax movsd 0x11f8(%rax), %xmm1 leaq 0x20(%rsp), %rdx callq 0x4bd570 movq 0x40(%rsp), %rax movsd %xmm0, 0x11f8(%rax) movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x30(%rsp), %r8 movq 0x40(%rsp), %r9 addq $0x3a8, %r9 # imm = 0x3A8 movq 0x40(%rsp), %r11 addq $0x2a4, %r11 # imm = 0x2A4 movq 0x40(%rsp), %rax addq $0x4a8, %rax # imm = 0x4A8 movl $0x2486, %edx # imm = 0x2486 leaq 0x7be85(%rip), %rcx # 0x539150 leaq 0xd16fe(%rip), %r10 # 0x58e9d0 movq %r11, (%rsp) movq %r10, 0x8(%rsp) movq %rax, 0x10(%rsp) movb $0x0, %al callq 0x4fdcb0 movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rax movsd 0x700(%rax), %xmm0 movq 0x40(%rsp), %rax movsd 0x6f8(%rax), %xmm1 movq 0x40(%rsp), %rax movsd 0x6e0(%rax), %xmm2 movq 0x40(%rsp), %rax movsd 0x18(%rax), %xmm3 movq 0x40(%rsp), %rax movsd 0xd8(%rax), %xmm4 movq 0x40(%rsp), %rax movsd 0xa8(%rax), %xmm5 movq 0x40(%rsp), %rax movsd 0x770(%rax), %xmm6 movl $0x2487, %edx # imm = 0x2487 leaq 0x7be30(%rip), %rcx # 0x539185 movb $0x7, %al callq 0x4fdcb0 movq 0x40(%rsp), %rax cmpl $0x0, 0x274(%rax) je 0x4bd394 movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rax movsd 0x758(%rax), %xmm0 movl $0x2488, %edx # imm = 0x2488 leaq 0x7bf84(%rip), %rcx # 0x539311 movb $0x1, %al callq 0x4fdcb0 movq 0x40(%rsp), %rax movsd 0x5ab9f(%rip), %xmm0 # 0x517f40 ucomisd 0x40(%rax), %xmm0 jbe 0x4bd3cf movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rax movsd 0x40(%rax), %xmm0 movl $0x2489, %edx # imm = 0x2489 leaq 0x7bf76(%rip), %rcx # 0x53933e movb $0x1, %al callq 0x4fdcb0 movq 0x40(%rsp), %rax cmpl $0x0, 0xfc(%rax) je 0x4bd407 movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rax movsd 0xc0(%rax), %xmm0 movl $0x248a, %edx # imm = 0x248A leaq 0x7bf66(%rip), %rcx # 0x539366 movb $0x1, %al callq 0x4fdcb0 movq 0x40(%rsp), %rax movsd 0x5ab2c(%rip), %xmm0 # 0x517f40 ucomisd 0x48(%rax), %xmm0 jbe 0x4bd442 movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rax movsd 0x48(%rax), %xmm0 movl $0x248b, %edx # imm = 0x248B leaq 0x7bf4f(%rip), %rcx # 0x53938a movb $0x1, %al callq 0x4fdcb0 movq 0x40(%rsp), %rax cmpl $0x0, 0xf8(%rax) je 0x4bd47a movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rax movsd 0xc8(%rax), %xmm0 movl $0x248c, %edx # imm = 0x248C leaq 0x7bf40(%rip), %rcx # 0x5393b3 movb $0x1, %al callq 0x4fdcb0 movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rax movsd 0x760(%rax), %xmm0 movq 0x40(%rsp), %rax movsd 0x730(%rax), %xmm2 movl $0x248d, %edx # imm = 0x248D leaq 0x7bf2e(%rip), %rcx # 0x5393d8 movsd 0x5a6e6(%rip), %xmm1 # 0x517b98 movb $0x3, %al callq 0x4fdcb0 movl $0x0, 0x28(%rsp) movl 0x28(%rsp), %eax movq 0x40(%rsp), %rcx cmpl 0x278(%rcx), %eax jge 0x4bd512 movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rax movq 0x750(%rax), %rax movslq 0x28(%rsp), %rcx movsd (%rax,%rcx,8), %xmm0 movl $0x248e, %edx # imm = 0x248E leaq 0x7bf87(%rip), %rcx # 0x539485 movb $0x1, %al callq 0x4fdcb0 movl 0x28(%rsp), %eax addl $0x1, %eax movl %eax, 0x28(%rsp) jmp 0x4bd4c1 movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movl $0x248f, %edx # imm = 0x248F leaq 0x6912c(%rip), %rcx # 0x526654 movb $0x0, %al callq 0x4fdcb0 movl $0x0, 0x2c(%rsp) movl 0x2c(%rsp), %eax movq 0x40(%rsp), %rcx cmpl 0x2228(%rcx), %eax jge 0x4bd562 movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movl 0x2c(%rsp), %edx leaq 0x2c(%rsp), %rcx callq 0x4bd660 jmp 0x4bd537 addq $0x48, %rsp retq nopw (%rax,%rax)
qh_printstatistics: sub rsp, 48h mov [rsp+48h+var_8], rdi mov [rsp+48h+var_10], rsi mov [rsp+48h+var_18], rdx mov rax, [rsp+48h+var_8] mov eax, [rax+280h] mov rcx, [rsp+48h+var_8] cmp eax, [rcx+0A0Ch] jnz short loc_4BD1C9 mov rax, [rsp+48h+var_8] cmp dword ptr [rax+12F8h], 0 jnz short loc_4BD1EB loc_4BD1C9: mov rax, [rsp+48h+var_8] xorps xmm0, xmm0 movsd qword ptr [rax+1300h], xmm0 mov rax, [rsp+48h+var_8] xorps xmm0, xmm0 movsd qword ptr [rax+1308h], xmm0 jmp short loc_4BD22C loc_4BD1EB: mov rdi, [rsp+48h+var_8] mov rax, [rsp+48h+var_8] mov esi, [rax+12F8h] mov rax, [rsp+48h+var_8] movsd xmm0, qword ptr [rax+1300h] mov rax, [rsp+48h+var_8] movsd xmm1, qword ptr [rax+1308h] lea rdx, [rsp+48h+var_28] call qh_stddev mov rax, [rsp+48h+var_8] movsd qword ptr [rax+1308h], xmm0 loc_4BD22C: mov rax, [rsp+48h+var_8] cmp dword ptr [rax+1338h], 0 jnz short loc_4BD24C mov rax, [rsp+48h+var_8] xorps xmm0, xmm0 movsd qword ptr [rax+11F8h], xmm0 jmp short loc_4BD28D loc_4BD24C: mov rdi, [rsp+48h+var_8] mov rax, [rsp+48h+var_8] mov esi, [rax+1338h] mov rax, [rsp+48h+var_8] movsd xmm0, qword ptr [rax+11F0h] mov rax, [rsp+48h+var_8] movsd xmm1, qword ptr [rax+11F8h] lea rdx, [rsp+48h+var_28] call qh_stddev mov rax, [rsp+48h+var_8] movsd qword ptr [rax+11F8h], xmm0 loc_4BD28D: mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov r8, [rsp+48h+var_18] mov r9, [rsp+48h+var_8] add r9, 3A8h mov r11, [rsp+48h+var_8] add r11, 2A4h mov rax, [rsp+48h+var_8] add rax, 4A8h mov edx, 2486h lea rcx, aSQhullInvokedB; "\n%s\nqhull invoked by: %s | %s\n %s w"... lea r10, qh_version; "2020.2.r 2021/09/27" mov [rsp+48h+var_48], r11 mov [rsp+48h+var_40], r10 mov [rsp+48h+var_38], rax mov al, 0 call qh_fprintf mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov rax, [rsp+48h+var_8] movsd xmm0, qword ptr [rax+700h] mov rax, [rsp+48h+var_8] movsd xmm1, qword ptr [rax+6F8h] mov rax, [rsp+48h+var_8] movsd xmm2, qword ptr [rax+6E0h] mov rax, [rsp+48h+var_8] movsd xmm3, qword ptr [rax+18h] mov rax, [rsp+48h+var_8] movsd xmm4, qword ptr [rax+0D8h] mov rax, [rsp+48h+var_8] movsd xmm5, qword ptr [rax+0A8h] mov rax, [rsp+48h+var_8] movsd xmm6, qword ptr [rax+770h] mov edx, 2487h lea rcx, aPrecisionConst; "\nprecision constants:\n %6.2g max. abs"... mov al, 7 call qh_fprintf mov rax, [rsp+48h+var_8] cmp dword ptr [rax+274h], 0 jz short loc_4BD394 mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov rax, [rsp+48h+var_8] movsd xmm0, qword ptr [rax+758h] mov edx, 2488h lea rcx, a62gMaxDistance; " %6.2g max. distance for near-inside po"... mov al, 1 call qh_fprintf loc_4BD394: mov rax, [rsp+48h+var_8] movsd xmm0, cs:qword_517F40 ucomisd xmm0, qword ptr [rax+40h] jbe short loc_4BD3CF mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov rax, [rsp+48h+var_8] movsd xmm0, qword ptr [rax+40h] mov edx, 2489h lea rcx, a62gMaxCosineFo; " %6.2g max. cosine for pre-merge angle"... mov al, 1 call qh_fprintf loc_4BD3CF: mov rax, [rsp+48h+var_8] cmp dword ptr [rax+0FCh], 0 jz short loc_4BD407 mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov rax, [rsp+48h+var_8] movsd xmm0, qword ptr [rax+0C0h] mov edx, 248Ah lea rcx, a62gRadiusOfPre; " %6.2g radius of pre-merge centrum\n" mov al, 1 call qh_fprintf loc_4BD407: mov rax, [rsp+48h+var_8] movsd xmm0, cs:qword_517F40 ucomisd xmm0, qword ptr [rax+48h] jbe short loc_4BD442 mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov rax, [rsp+48h+var_8] movsd xmm0, qword ptr [rax+48h] mov edx, 248Bh lea rcx, a62gMaxCosineFo_0; " %6.2g max. cosine for post-merge angle"... mov al, 1 call qh_fprintf loc_4BD442: mov rax, [rsp+48h+var_8] cmp dword ptr [rax+0F8h], 0 jz short loc_4BD47A mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov rax, [rsp+48h+var_8] movsd xmm0, qword ptr [rax+0C8h] mov edx, 248Ch lea rcx, a62gRadiusOfPos; " %6.2g radius of post-merge centrum\n" mov al, 1 call qh_fprintf loc_4BD47A: mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov rax, [rsp+48h+var_8] movsd xmm0, qword ptr [rax+760h] mov rax, [rsp+48h+var_8] movsd xmm2, qword ptr [rax+730h] mov edx, 248Dh lea rcx, a62gMaxDistance_0; " %6.2g max. distance for merging two si"... movsd xmm1, cs:qword_517B98 mov al, 3 call qh_fprintf mov [rsp+48h+var_20], 0 loc_4BD4C1: mov eax, [rsp+48h+var_20] mov rcx, [rsp+48h+var_8] cmp eax, [rcx+278h] jge short loc_4BD512 mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov rax, [rsp+48h+var_8] mov rax, [rax+750h] movsxd rcx, [rsp+48h+var_20] movsd xmm0, qword ptr [rax+rcx*8] mov edx, 248Eh lea rcx, a62e; "%6.2e " mov al, 1 call qh_fprintf mov eax, [rsp+48h+var_20] add eax, 1 mov [rsp+48h+var_20], eax jmp short loc_4BD4C1 loc_4BD512: mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov edx, 248Fh lea rcx, asc_526654; "\n\n" mov al, 0 call qh_fprintf mov [rsp+48h+var_1C], 0 loc_4BD537: mov eax, [rsp+48h+var_1C] mov rcx, [rsp+48h+var_8] cmp eax, [rcx+2228h] jge short loc_4BD562 mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov edx, [rsp+48h+var_1C] lea rcx, [rsp+48h+var_1C] call qh_printstats jmp short loc_4BD537 loc_4BD562: add rsp, 48h retn
long long qh_printstatistics( long long a1, long long a2, long long a3, double a4, double a5, double a6, double a7, double a8, double a9, double a10, double a11) { double v11; // xmm0_8 double v12; // xmm0_8 double v13; // xmm3_8 double v14; // xmm6_8 int v15; // r8d int v16; // r9d int v17; // r8d int v18; // r9d double v19; // xmm0_8 double v20; // xmm2_8 int v21; // r8d int v22; // r9d double v23; // xmm4_8 double v24; // xmm5_8 long long result; // rax double v26; // [rsp+0h] [rbp-48h] const char *v27; // [rsp+8h] [rbp-40h] double v28; // [rsp+10h] [rbp-38h] _BYTE v29[8]; // [rsp+20h] [rbp-28h] BYREF int i; // [rsp+28h] [rbp-20h] unsigned int j; // [rsp+2Ch] [rbp-1Ch] BYREF long long v32; // [rsp+30h] [rbp-18h] long long v33; // [rsp+38h] [rbp-10h] long long v34; // [rsp+40h] [rbp-8h] v34 = a1; v33 = a2; v32 = a3; if ( *(_DWORD *)(a1 + 640) == *(_DWORD *)(a1 + 2572) && *(_DWORD *)(v34 + 4856) ) { v11 = qh_stddev(v34, *(unsigned int *)(v34 + 4856), v29, *(double *)(v34 + 4864), *(double *)(v34 + 4872)); *(double *)(v34 + 4872) = v11; } else { *(_QWORD *)(v34 + 4864) = 0LL; *(_QWORD *)(v34 + 4872) = 0LL; } if ( *(_DWORD *)(v34 + 4920) ) { v12 = qh_stddev(v34, *(unsigned int *)(v34 + 4920), v29, *(double *)(v34 + 4592), *(double *)(v34 + 4600)); *(double *)(v34 + 4600) = v12; } else { *(_QWORD *)(v34 + 4600) = 0LL; } *(_QWORD *)&v26 = v34 + 676; v27 = "2020.2.r 2021/09/27"; *(_QWORD *)&v28 = v34 + 1192; qh_fprintf(v34, v33, 9350, (unsigned int)"\n%s\nqhull invoked by: %s | %s\n %s with options:\n%s\n", v32, v34 + 936); v13 = *(double *)(v34 + 24); v14 = *(double *)(v34 + 1904); qh_fprintf( v34, v33, 9351, (unsigned int)"\n" "precision constants:\n" " %6.2g max. abs. coordinate in the (transformed) input ('Qbd:n')\n" " %6.2g max. roundoff error for distance computation ('En')\n" " %6.2g max. roundoff error for angle computations\n" " %6.2g min. distance for outside points ('Wn')\n" " %6.2g min. distance for visible facets ('Vn')\n" " %6.2g max. distance for coplanar facets ('Un')\n" " %6.2g max. facet width for recomputing centrum and area\n", v15, v16); if ( *(_DWORD *)(v34 + 628) ) qh_fprintf(v34, v33, 9352, (unsigned int)" %6.2g max. distance for near-inside points\n", v17, v18); if ( *(double *)(v34 + 64) < 8.988465674311579e307 ) qh_fprintf(v34, v33, 9353, (unsigned int)" %6.2g max. cosine for pre-merge angle\n", v17, v18); if ( *(_DWORD *)(v34 + 252) ) qh_fprintf(v34, v33, 9354, (unsigned int)" %6.2g radius of pre-merge centrum\n", v17, v18); if ( *(double *)(v34 + 72) < 8.988465674311579e307 ) qh_fprintf(v34, v33, 9355, (unsigned int)" %6.2g max. cosine for post-merge angle\n", v17, v18); if ( *(_DWORD *)(v34 + 248) ) qh_fprintf(v34, v33, 9356, (unsigned int)" %6.2g radius of post-merge centrum\n", v17, v18); v19 = *(double *)(v34 + 1888); v20 = *(double *)(v34 + 1840); qh_fprintf( v34, v33, 9357, (unsigned int)" %6.2g max. distance for merging two simplicial facets\n" " %6.2g max. roundoff error for arithmetic operations\n" " %6.2g min. denominator for division\n" " zero diagonal for Gauss: ", v17, v18); for ( i = 0; i < *(_DWORD *)(v34 + 632); ++i ) { v19 = *(double *)(*(_QWORD *)(v34 + 1872) + 8LL * i); qh_fprintf(v34, v33, 9358, (unsigned int)"%6.2e ", v21, v22); } qh_fprintf(v34, v33, 9359, (unsigned int)"\n\n", v21, v22); for ( j = 0; ; qh_printstats( v34, v33, j, &j, v19, 2.220446049250313e-16, v20, v13, v23, v24, v14, a11, v26, *(double *)&v27, v28) ) { result = j; if ( (signed int)j >= *(_DWORD *)(v34 + 8744) ) break; } return result; }
sort<__gnu_cxx::__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x8],RAX CALL 0x00439400 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] CALL 0x004bdca0 ADD RSP,0x28 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* void std::sort<__gnu_cxx::__normal_iterator<std::__cxx11::string*, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > > >(__gnu_cxx::__normal_iterator<std::__cxx11::string*, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > >, __gnu_cxx::__normal_iterator<std::__cxx11::string*, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > >) */ void std:: sort<__gnu_cxx::__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> (int8 param_1,int8 param_2) { __gnu_cxx::__ops::__iter_less_iter(); __sort<__gnu_cxx::__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>,__gnu_cxx::__ops::_Iter_less_iter> (param_1,param_2); return; }
32,261
MainWindow::createCentralChatWidget()
MarsToPluto[P]llmstudio/src/mainwindow.cpp
void MainWindow::createCentralChatWidget() { centralChatWidget = new QWidget(this); centralChatLayout = new QVBoxLayout(centralChatWidget); centralChatLayout->setContentsMargins(5, 5, 5, 5); // Reduce margins centralChatLayout->setSpacing(5); // Reduce spacing // Chat History Display chatHistoryDisplay = new QTextEdit(this); chatHistoryDisplay->setObjectName("chatHistoryDisplay"); // For styling chatHistoryDisplay->setReadOnly(true); // Use chatHistoryDisplay->append() or ->setHtml() to add messages centralChatLayout->addWidget(chatHistoryDisplay, 1); // Give it stretch factor 1 // Input Area inputAreaWidget = new QWidget(this); inputAreaLayout = new QHBoxLayout(inputAreaWidget); inputAreaLayout->setContentsMargins(0, 0, 0, 0); // No margins for this inner layout inputAreaLayout->setSpacing(5); messageInput = new QLineEdit(this); messageInput->setPlaceholderText("Type a message and press Enter to send ..."); messageInput->setObjectName("messageInput"); // For styling attachButton = new QToolButton(this); attachButton->setIcon(QIcon::fromTheme("mail-attachment")); // Placeholder icon attachButton->setToolTip("Attach file (placeholder)"); sendButton = new QPushButton(QIcon::fromTheme("mail-send"), ""); // Icon only, maybe text " Send" sendButton->setToolTip("Send Message"); inputAreaLayout->addWidget(messageInput, 1); // Input stretches inputAreaLayout->addWidget(attachButton); inputAreaLayout->addWidget(sendButton); centralChatLayout->addWidget(inputAreaWidget); // Add input area below history // Optional: Add a splitter if you want the chat list and chat area resizeable relative to each other // QSplitter *splitter = new QSplitter(Qt::Horizontal, this); // splitter->addWidget(chatListDock); // Need to rethink how docks are added if using splitter like this // splitter->addWidget(centralChatWidget); // setCentralWidget(splitter); // Instead of setCentralWidget(centralChatWidget) // // You would likely need to manage docks differently if using a splitter as the central widget. // // For simplicity, this example keeps them as standard dock widgets. }
O2
cpp
MainWindow::createCentralChatWidget(): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movq %rdi, %rbx pushq $0x28 popq %rdi callq 0x5430 movq %rax, %r14 movq %rax, %rdi movq %rbx, %rsi xorl %edx, %edx callq 0x55c0 movq %r14, 0xd8(%rbx) pushq $0x20 popq %rdi callq 0x5430 movq %rax, %r15 movq %rax, %rdi movq %r14, %rsi callq 0x5380 movq %r15, 0xe0(%rbx) pushq $0x5 popq %rbp movq %r15, %rdi movl %ebp, %esi movl %ebp, %edx movl %ebp, %ecx movl %ebp, %r8d callq 0x53f0 movq 0xe0(%rbx), %rdi movq (%rdi), %rax movl %ebp, %esi callq *0x68(%rax) pushq $0x28 popq %rdi callq 0x5430 movq %rax, %r14 movq %rax, %rdi movq %rbx, %rsi callq 0x53c0 movq %r14, 0xe8(%rbx) leaq 0x10d6(%rip), %rsi # 0x839a movq %rsp, %r15 movq %r15, %rdi callq 0x791c movq %r14, %rdi movq %r15, %rsi callq 0x5140 movq %rsp, %rdi callq 0x7bd8 movq 0xe8(%rbx), %rdi pushq $0x1 popq %rbp movl %ebp, %esi callq 0x5650 movq 0xe0(%rbx), %rdi movq 0xe8(%rbx), %rsi movl %ebp, %edx xorl %ecx, %ecx callq 0x5440 pushq $0x28 popq %rdi callq 0x5430 movq %rax, %r14 movq %rax, %rdi movq %rbx, %rsi xorl %edx, %edx callq 0x55c0 movq %r14, 0xf0(%rbx) pushq $0x20 popq %rdi callq 0x5430 movq %rax, %r15 movq %rax, %rdi movq %r14, %rsi callq 0x51f0 movq %r15, 0xf8(%rbx) movq %r15, %rdi xorl %esi, %esi xorl %edx, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0x53f0 movq 0xf8(%rbx), %rdi movq (%rdi), %rax pushq $0x5 popq %rsi callq *0x68(%rax) pushq $0x28 popq %rdi callq 0x5430 movq %rax, %r14 movq %rax, %rdi movq %rbx, %rsi callq 0x5420 movq %r14, 0x100(%rbx) leaq 0x1022(%rip), %rsi # 0x83ad movq %rsp, %r15 movq %r15, %rdi callq 0x791c movq %r14, %rdi movq %r15, %rsi callq 0x50d0 movq %rsp, %rdi callq 0x7bd8 movq 0x100(%rbx), %r14 leaq 0x1021(%rip), %rsi # 0x83d8 movq %rsp, %r15 movq %r15, %rdi callq 0x791c movq %r14, %rdi movq %r15, %rsi callq 0x5140 movq %rsp, %rdi callq 0x7bd8 pushq $0x28 popq %rdi callq 0x5430 movq %rax, %r14 movq %rax, %rdi movq %rbx, %rsi callq 0x52d0 movq %r14, 0x108(%rbx) leaq 0xfec(%rip), %rsi # 0x83e5 movq %rsp, %r15 movq %r15, %rdi callq 0x791c leaq 0x20(%rsp), %rdi movq %r15, %rsi callq 0x5330 leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x5180 leaq 0x20(%rsp), %rdi callq 0x5250 movq %rsp, %rdi callq 0x7bd8 movq 0x108(%rbx), %r14 leaq 0xfb7(%rip), %rsi # 0x83f5 movq %rsp, %r15 movq %r15, %rdi callq 0x791c movq %r14, %rdi movq %r15, %rsi callq 0x52e0 movq %rsp, %rdi callq 0x7bd8 pushq $0x28 popq %rdi callq 0x5430 movq %rax, %r14 leaq 0xfa1(%rip), %rsi # 0x840f movq %rsp, %rdi callq 0x791c leaq 0x18(%rsp), %rdi movq %rsp, %rsi callq 0x5330 leaq 0xff4(%rip), %rsi # 0x847e leaq 0x20(%rsp), %rdi callq 0x791c leaq 0x18(%rsp), %rsi leaq 0x20(%rsp), %rdx movq %r14, %rdi xorl %ecx, %ecx callq 0x5480 movq %r14, 0x110(%rbx) leaq 0x20(%rsp), %rdi callq 0x7bd8 leaq 0x18(%rsp), %rdi callq 0x5250 movq %rsp, %rdi callq 0x7bd8 movq 0x110(%rbx), %r14 leaq 0xf40(%rip), %rsi # 0x8419 movq %rsp, %r15 movq %r15, %rdi callq 0x791c movq %r14, %rdi movq %r15, %rsi callq 0x52e0 movq %rsp, %rdi callq 0x7bd8 movq 0xf8(%rbx), %rdi movq 0x100(%rbx), %rsi pushq $0x1 popq %rdx xorl %ecx, %ecx callq 0x5440 movq 0xf8(%rbx), %rdi movq 0x108(%rbx), %rsi xorl %edx, %edx xorl %ecx, %ecx callq 0x5440 movq 0xf8(%rbx), %rdi movq 0x110(%rbx), %rsi xorl %edx, %edx xorl %ecx, %ecx callq 0x5440 movq 0xe0(%rbx), %rdi movq 0xf0(%rbx), %rsi xorl %edx, %edx xorl %ecx, %ecx callq 0x5440 addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq jmp 0x75ad movq %rax, %rbx leaq 0x20(%rsp), %rdi callq 0x7bd8 jmp 0x7573 movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0x5250 jmp 0x7582 movq %rax, %rbx movq %rsp, %rdi callq 0x7bd8 jmp 0x75ca jmp 0x75c7 jmp 0x75ad movq %rax, %rbx leaq 0x20(%rsp), %rdi callq 0x5250 jmp 0x75b0 jmp 0x75ad jmp 0x75c7 jmp 0x75ad jmp 0x75ad jmp 0x75c7 jmp 0x75bc jmp 0x75c7 movq %rax, %rbx movq %rsp, %rdi callq 0x7bd8 jmp 0x75d5 jmp 0x75c7 movq %rax, %rbx pushq $0x20 popq %rsi movq %r15, %rdi jmp 0x75d0 movq %rax, %rbx pushq $0x28 popq %rsi movq %r14, %rdi callq 0x5080 movq %rbx, %rdi callq 0x5230 nop
_ZN10MainWindow23createCentralChatWidgetEv: push rbp push r15 push r14 push rbx sub rsp, 38h mov rbx, rdi push 28h ; '(' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov rdi, rax mov rsi, rbx xor edx, edx call __ZN7QWidgetC1EPS_6QFlagsIN2Qt10WindowTypeEE; QWidget::QWidget(QWidget*,QFlags<Qt::WindowType>) mov [rbx+0D8h], r14 push 20h ; ' ' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov r15, rax mov rdi, rax; this mov rsi, r14; QWidget * call __ZN11QVBoxLayoutC1EP7QWidget; QVBoxLayout::QVBoxLayout(QWidget *) mov [rbx+0E0h], r15 push 5 pop rbp mov rdi, r15; this mov esi, ebp; int mov edx, ebp; int mov ecx, ebp; int mov r8d, ebp; int call __ZN7QLayout18setContentsMarginsEiiii; QLayout::setContentsMargins(int,int,int,int) mov rdi, [rbx+0E0h] mov rax, [rdi] mov esi, ebp call qword ptr [rax+68h] push 28h ; '(' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov rdi, rax; this mov rsi, rbx; QWidget * call __ZN9QTextEditC1EP7QWidget; QTextEdit::QTextEdit(QWidget *) mov [rbx+0E8h], r14 lea rsi, aChathistorydis; "chatHistoryDisplay" mov r15, rsp mov rdi, r15; this call _ZN7QStringC2EPKc; QString::QString(char const*) mov rdi, r14 mov rsi, r15 call __ZN7QObject13setObjectNameERK7QString; QObject::setObjectName(QString const&) mov rdi, rsp call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() mov rdi, [rbx+0E8h]; this push 1 pop rbp mov esi, ebp; bool call __ZN9QTextEdit11setReadOnlyEb; QTextEdit::setReadOnly(bool) mov rdi, [rbx+0E0h] mov rsi, [rbx+0E8h] mov edx, ebp xor ecx, ecx call __ZN10QBoxLayout9addWidgetEP7QWidgeti6QFlagsIN2Qt13AlignmentFlagEE; QBoxLayout::addWidget(QWidget *,int,QFlags<Qt::AlignmentFlag>) push 28h ; '(' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov rdi, rax mov rsi, rbx xor edx, edx call __ZN7QWidgetC1EPS_6QFlagsIN2Qt10WindowTypeEE; QWidget::QWidget(QWidget*,QFlags<Qt::WindowType>) mov [rbx+0F0h], r14 push 20h ; ' ' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov r15, rax mov rdi, rax; this mov rsi, r14; QWidget * call __ZN11QHBoxLayoutC1EP7QWidget; QHBoxLayout::QHBoxLayout(QWidget *) mov [rbx+0F8h], r15 mov rdi, r15; this xor esi, esi; int xor edx, edx; int xor ecx, ecx; int xor r8d, r8d; int call __ZN7QLayout18setContentsMarginsEiiii; QLayout::setContentsMargins(int,int,int,int) mov rdi, [rbx+0F8h] mov rax, [rdi] push 5 pop rsi call qword ptr [rax+68h] push 28h ; '(' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov rdi, rax; this mov rsi, rbx; QWidget * call __ZN9QLineEditC1EP7QWidget; QLineEdit::QLineEdit(QWidget *) mov [rbx+100h], r14 lea rsi, aTypeAMessageAn; "Type a message and press Enter to send "... mov r15, rsp mov rdi, r15; this call _ZN7QStringC2EPKc; QString::QString(char const*) mov rdi, r14 mov rsi, r15 call __ZN9QLineEdit18setPlaceholderTextERK7QString; QLineEdit::setPlaceholderText(QString const&) mov rdi, rsp call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() mov r14, [rbx+100h] lea rsi, aMessageinput; "messageInput" mov r15, rsp mov rdi, r15; this call _ZN7QStringC2EPKc; QString::QString(char const*) mov rdi, r14 mov rsi, r15 call __ZN7QObject13setObjectNameERK7QString; QObject::setObjectName(QString const&) mov rdi, rsp call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() push 28h ; '(' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov rdi, rax; this mov rsi, rbx; QWidget * call __ZN11QToolButtonC1EP7QWidget; QToolButton::QToolButton(QWidget *) mov [rbx+108h], r14 lea rsi, aMailAttachment; "mail-attachment" mov r15, rsp mov rdi, r15; this call _ZN7QStringC2EPKc; QString::QString(char const*) lea rdi, [rsp+58h+var_38] mov rsi, r15 call __ZN5QIcon9fromThemeERK7QString; QIcon::fromTheme(QString const&) lea rsi, [rsp+58h+var_38]; QIcon * mov rdi, r14; this call __ZN15QAbstractButton7setIconERK5QIcon; QAbstractButton::setIcon(QIcon const&) lea rdi, [rsp+58h+var_38]; this call __ZN5QIconD1Ev; QIcon::~QIcon() mov rdi, rsp call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() mov r14, [rbx+108h] lea rsi, aAttachFilePlac; "Attach file (placeholder)" mov r15, rsp mov rdi, r15; this call _ZN7QStringC2EPKc; QString::QString(char const*) mov rdi, r14 mov rsi, r15 call __ZN7QWidget10setToolTipERK7QString; QWidget::setToolTip(QString const&) mov rdi, rsp call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() push 28h ; '(' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax lea rsi, aMailSend; "mail-send" mov rdi, rsp; this call _ZN7QStringC2EPKc; QString::QString(char const*) lea rdi, [rsp+58h+var_40] mov rsi, rsp call __ZN5QIcon9fromThemeERK7QString; QIcon::fromTheme(QString const&) lea rsi, aRam118GbCpu000+1Ch; char * lea rdi, [rsp+58h+var_38]; this call _ZN7QStringC2EPKc; QString::QString(char const*) lea rsi, [rsp+58h+var_40] lea rdx, [rsp+58h+var_38] mov rdi, r14 xor ecx, ecx call __ZN11QPushButtonC1ERK5QIconRK7QStringP7QWidget; QPushButton::QPushButton(QIcon const&,QString const&,QWidget *) mov [rbx+110h], r14 lea rdi, [rsp+58h+var_38] call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() lea rdi, [rsp+58h+var_40]; this call __ZN5QIconD1Ev; QIcon::~QIcon() mov rdi, rsp call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() mov r14, [rbx+110h] lea rsi, aSendMessage; "Send Message" mov r15, rsp mov rdi, r15; this call _ZN7QStringC2EPKc; QString::QString(char const*) mov rdi, r14 mov rsi, r15 call __ZN7QWidget10setToolTipERK7QString; QWidget::setToolTip(QString const&) mov rdi, rsp call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() mov rdi, [rbx+0F8h] mov rsi, [rbx+100h] push 1 pop rdx xor ecx, ecx call __ZN10QBoxLayout9addWidgetEP7QWidgeti6QFlagsIN2Qt13AlignmentFlagEE; QBoxLayout::addWidget(QWidget *,int,QFlags<Qt::AlignmentFlag>) mov rdi, [rbx+0F8h] mov rsi, [rbx+108h] xor edx, edx xor ecx, ecx call __ZN10QBoxLayout9addWidgetEP7QWidgeti6QFlagsIN2Qt13AlignmentFlagEE; QBoxLayout::addWidget(QWidget *,int,QFlags<Qt::AlignmentFlag>) mov rdi, [rbx+0F8h] mov rsi, [rbx+110h] xor edx, edx xor ecx, ecx call __ZN10QBoxLayout9addWidgetEP7QWidgeti6QFlagsIN2Qt13AlignmentFlagEE; QBoxLayout::addWidget(QWidget *,int,QFlags<Qt::AlignmentFlag>) mov rdi, [rbx+0E0h] mov rsi, [rbx+0F0h] xor edx, edx xor ecx, ecx call __ZN10QBoxLayout9addWidgetEP7QWidgeti6QFlagsIN2Qt13AlignmentFlagEE; QBoxLayout::addWidget(QWidget *,int,QFlags<Qt::AlignmentFlag>) add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn jmp short loc_75AD mov rbx, rax lea rdi, [rsp+arg_18] call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() jmp short loc_7573 mov rbx, rax loc_7573: lea rdi, [rsp+arg_10]; this call __ZN5QIconD1Ev; QIcon::~QIcon() jmp short loc_7582 mov rbx, rax loc_7582: mov rdi, rsp call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() jmp short loc_75CA jmp short loc_75C7 jmp short loc_75AD mov rbx, rax lea rdi, [rsp+arg_18]; this call __ZN5QIconD1Ev; QIcon::~QIcon() jmp short loc_75B0 jmp short loc_75AD jmp short loc_75C7 jmp short loc_75AD jmp short loc_75AD jmp short loc_75C7 jmp short loc_75BC jmp short loc_75C7 loc_75AD: mov rbx, rax loc_75B0: mov rdi, rsp call _ZN17QArrayDataPointerIDsED2Ev; QArrayDataPointer<char16_t>::~QArrayDataPointer() jmp short loc_75D5 jmp short loc_75C7 loc_75BC: mov rbx, rax push 20h ; ' ' pop rsi mov rdi, r15 jmp short loc_75D0 loc_75C7: mov rbx, rax loc_75CA: push 28h ; '(' pop rsi; unsigned __int64 mov rdi, r14; void * loc_75D0: call __ZdlPvm; operator delete(void *,ulong) loc_75D5: mov rdi, rbx call __Unwind_Resume
long long MainWindow::createCentralChatWidget(QTextEdit **this) { QWidget *v2; // r14 QVBoxLayout *v3; // r15 QTextEdit *v4; // r14 QWidget *v5; // r14 QHBoxLayout *v6; // r15 QLineEdit *v7; // r14 QObject *v8; // r14 QToolButton *v9; // r14 QWidget *v10; // r14 QPushButton *v11; // r14 QWidget *v12; // r14 _BYTE v14[24]; // [rsp+0h] [rbp-58h] BYREF _BYTE v15[8]; // [rsp+18h] [rbp-40h] BYREF _BYTE v16[56]; // [rsp+20h] [rbp-38h] BYREF v2 = (QWidget *)operator new(0x28uLL); QWidget::QWidget(v2, this, 0LL); this[27] = v2; v3 = (QVBoxLayout *)operator new(0x20uLL); QVBoxLayout::QVBoxLayout(v3, v2); this[28] = v3; QLayout::setContentsMargins(v3, 5, 5, 5, 5); (*(void ( **)(QTextEdit *, long long))(*(_QWORD *)this[28] + 104LL))(this[28], 5LL); v4 = (QTextEdit *)operator new(0x28uLL); QTextEdit::QTextEdit(v4, (QWidget *)this); this[29] = v4; QString::QString((QString *)v14, "chatHistoryDisplay"); QObject::setObjectName(v4, (const QString *)v14); QArrayDataPointer<char16_t>::~QArrayDataPointer(v14); QTextEdit::setReadOnly(this[29], 1); QBoxLayout::addWidget(this[28], this[29], 1LL, 0LL); v5 = (QWidget *)operator new(0x28uLL); QWidget::QWidget(v5, this, 0LL); this[30] = v5; v6 = (QHBoxLayout *)operator new(0x20uLL); QHBoxLayout::QHBoxLayout(v6, v5); this[31] = v6; QLayout::setContentsMargins(v6, 0, 0, 0, 0); (*(void ( **)(QTextEdit *, long long))(*(_QWORD *)this[31] + 104LL))(this[31], 5LL); v7 = (QLineEdit *)operator new(0x28uLL); QLineEdit::QLineEdit(v7, (QWidget *)this); this[32] = v7; QString::QString((QString *)v14, "Type a message and press Enter to send ..."); QLineEdit::setPlaceholderText(v7, (const QString *)v14); QArrayDataPointer<char16_t>::~QArrayDataPointer(v14); v8 = this[32]; QString::QString((QString *)v14, "messageInput"); QObject::setObjectName(v8, (const QString *)v14); QArrayDataPointer<char16_t>::~QArrayDataPointer(v14); v9 = (QToolButton *)operator new(0x28uLL); QToolButton::QToolButton(v9, (QWidget *)this); this[33] = v9; QString::QString((QString *)v14, "mail-attachment"); QIcon::fromTheme((QIcon *)v16, (const QString *)v14); QAbstractButton::setIcon(v9, (const QIcon *)v16); QIcon::~QIcon((QIcon *)v16); QArrayDataPointer<char16_t>::~QArrayDataPointer(v14); v10 = this[33]; QString::QString((QString *)v14, "Attach file (placeholder)"); QWidget::setToolTip(v10, (const QString *)v14); QArrayDataPointer<char16_t>::~QArrayDataPointer(v14); v11 = (QPushButton *)operator new(0x28uLL); QString::QString((QString *)v14, "mail-send"); QIcon::fromTheme((QIcon *)v15, (const QString *)v14); QString::QString((QString *)v16, ""); QPushButton::QPushButton(v11, (const QIcon *)v15, (const QString *)v16, 0LL); this[34] = v11; QArrayDataPointer<char16_t>::~QArrayDataPointer(v16); QIcon::~QIcon((QIcon *)v15); QArrayDataPointer<char16_t>::~QArrayDataPointer(v14); v12 = this[34]; QString::QString((QString *)v14, "Send Message"); QWidget::setToolTip(v12, (const QString *)v14); QArrayDataPointer<char16_t>::~QArrayDataPointer(v14); QBoxLayout::addWidget(this[31], this[32], 1LL, 0LL); QBoxLayout::addWidget(this[31], this[33], 0LL, 0LL); QBoxLayout::addWidget(this[31], this[34], 0LL, 0LL); return QBoxLayout::addWidget(this[28], this[30], 0LL, 0LL); }
createCentralChatWidget: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV RBX,RDI PUSH 0x28 POP RDI CALL 0x00105430 MOV R14,RAX LAB_0010724c: MOV RDI,RAX MOV RSI,RBX XOR EDX,EDX CALL 0x001055c0 LAB_00107259: MOV qword ptr [RBX + 0xd8],R14 PUSH 0x20 POP RDI CALL 0x00105430 MOV R15,RAX LAB_0010726b: MOV RDI,RAX MOV RSI,R14 CALL 0x00105380 LAB_00107276: MOV qword ptr [RBX + 0xe0],R15 PUSH 0x5 POP RBP MOV RDI,R15 MOV ESI,EBP MOV EDX,EBP MOV ECX,EBP MOV R8D,EBP CALL 0x001053f0 MOV RDI,qword ptr [RBX + 0xe0] MOV RAX,qword ptr [RDI] MOV ESI,EBP CALL qword ptr [RAX + 0x68] PUSH 0x28 POP RDI CALL 0x00105430 MOV R14,RAX LAB_001072ab: MOV RDI,RAX MOV RSI,RBX CALL 0x001053c0 LAB_001072b6: MOV qword ptr [RBX + 0xe8],R14 LEA RSI,[0x10839a] MOV R15,RSP MOV RDI,R15 CALL 0x0010791c LAB_001072cf: MOV RDI,R14 MOV RSI,R15 CALL 0x00105140 LAB_001072da: MOV RDI,RSP CALL 0x00107bd8 MOV RDI,qword ptr [RBX + 0xe8] PUSH 0x1 POP RBP MOV ESI,EBP CALL 0x00105650 MOV RDI,qword ptr [RBX + 0xe0] MOV RSI,qword ptr [RBX + 0xe8] MOV EDX,EBP XOR ECX,ECX CALL 0x00105440 PUSH 0x28 POP RDI CALL 0x00105430 MOV R14,RAX LAB_00107315: MOV RDI,RAX MOV RSI,RBX XOR EDX,EDX CALL 0x001055c0 LAB_00107322: MOV qword ptr [RBX + 0xf0],R14 PUSH 0x20 POP RDI CALL 0x00105430 MOV R15,RAX LAB_00107334: MOV RDI,RAX MOV RSI,R14 CALL 0x001051f0 LAB_0010733f: MOV qword ptr [RBX + 0xf8],R15 MOV RDI,R15 XOR ESI,ESI XOR EDX,EDX XOR ECX,ECX XOR R8D,R8D CALL 0x001053f0 MOV RDI,qword ptr [RBX + 0xf8] MOV RAX,qword ptr [RDI] PUSH 0x5 POP RSI CALL qword ptr [RAX + 0x68] PUSH 0x28 POP RDI CALL 0x00105430 MOV R14,RAX LAB_00107372: MOV RDI,RAX MOV RSI,RBX CALL 0x00105420 LAB_0010737d: MOV qword ptr [RBX + 0x100],R14 LEA RSI,[0x1083ad] MOV R15,RSP MOV RDI,R15 CALL 0x0010791c LAB_00107396: MOV RDI,R14 MOV RSI,R15 CALL 0x001050d0 LAB_001073a1: MOV RDI,RSP CALL 0x00107bd8 MOV R14,qword ptr [RBX + 0x100] LEA RSI,[0x1083d8] MOV R15,RSP MOV RDI,R15 CALL 0x0010791c LAB_001073c2: MOV RDI,R14 MOV RSI,R15 CALL 0x00105140 LAB_001073cd: MOV RDI,RSP CALL 0x00107bd8 PUSH 0x28 POP RDI CALL 0x00105430 MOV R14,RAX LAB_001073e0: MOV RDI,RAX MOV RSI,RBX CALL 0x001052d0 LAB_001073eb: MOV qword ptr [RBX + 0x108],R14 LEA RSI,[0x1083e5] MOV R15,RSP MOV RDI,R15 CALL 0x0010791c LAB_00107404: LEA RDI,[RSP + 0x20] MOV RSI,R15 CALL 0x00105330 LAB_00107411: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x00105180 LAB_0010741e: LEA RDI,[RSP + 0x20] CALL 0x00105250 MOV RDI,RSP CALL 0x00107bd8 MOV R14,qword ptr [RBX + 0x108] LEA RSI,[0x1083f5] MOV R15,RSP MOV RDI,R15 CALL 0x0010791c LAB_00107449: MOV RDI,R14 MOV RSI,R15 CALL 0x001052e0 LAB_00107454: MOV RDI,RSP CALL 0x00107bd8 PUSH 0x28 POP RDI CALL 0x00105430 MOV R14,RAX LAB_00107467: LEA RSI,[0x10840f] MOV RDI,RSP CALL 0x0010791c LAB_00107476: LEA RDI,[RSP + 0x18] MOV RSI,RSP CALL 0x00105330 LAB_00107483: LEA RSI,[0x10847e] LEA RDI,[RSP + 0x20] CALL 0x0010791c LAB_00107494: LEA RSI,[RSP + 0x18] LEA RDX,[RSP + 0x20] MOV RDI,R14 XOR ECX,ECX CALL 0x00105480 LAB_001074a8: MOV qword ptr [RBX + 0x110],R14 LEA RDI,[RSP + 0x20] CALL 0x00107bd8 LEA RDI,[RSP + 0x18] CALL 0x00105250 MOV RDI,RSP CALL 0x00107bd8 MOV R14,qword ptr [RBX + 0x110] LEA RSI,[0x108419] MOV R15,RSP MOV RDI,R15 CALL 0x0010791c LAB_001074e4: MOV RDI,R14 MOV RSI,R15 CALL 0x001052e0 LAB_001074ef: MOV RDI,RSP CALL 0x00107bd8 MOV RDI,qword ptr [RBX + 0xf8] MOV RSI,qword ptr [RBX + 0x100] PUSH 0x1 POP RDX XOR ECX,ECX CALL 0x00105440 MOV RDI,qword ptr [RBX + 0xf8] MOV RSI,qword ptr [RBX + 0x108] XOR EDX,EDX XOR ECX,ECX CALL 0x00105440 MOV RDI,qword ptr [RBX + 0xf8] MOV RSI,qword ptr [RBX + 0x110] XOR EDX,EDX XOR ECX,ECX CALL 0x00105440 MOV RDI,qword ptr [RBX + 0xe0] MOV RSI,qword ptr [RBX + 0xf0] XOR EDX,EDX XOR ECX,ECX CALL 0x00105440 ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET
/* MainWindow::createCentralChatWidget() */ void __thiscall MainWindow::createCentralChatWidget(MainWindow *this) { QString *pQVar1; QWidget *pQVar2; QVBoxLayout *this_00; QTextEdit *this_01; QHBoxLayout *this_02; QLineEdit *this_03; QToolButton *this_04; QPushButton *this_05; QString aQStack_58 [24]; QString local_40 [8]; QString local_38 [24]; pQVar2 = (QWidget *)operator_new(0x28); /* try { // try from 0010724c to 00107258 has its CatchHandler @ 001075c7 */ QWidget::QWidget(pQVar2,this,0); *(QWidget **)(this + 0xd8) = pQVar2; this_00 = (QVBoxLayout *)operator_new(0x20); /* try { // try from 0010726b to 00107275 has its CatchHandler @ 001075bc */ QVBoxLayout::QVBoxLayout(this_00,pQVar2); *(QVBoxLayout **)(this + 0xe0) = this_00; QLayout::setContentsMargins((int)this_00,5,5,5); (**(code **)(**(long **)(this + 0xe0) + 0x68))(*(long **)(this + 0xe0),5); this_01 = (QTextEdit *)operator_new(0x28); /* try { // try from 001072ab to 001072b5 has its CatchHandler @ 001075ba */ QTextEdit::QTextEdit(this_01,(QWidget *)this); *(QTextEdit **)(this + 0xe8) = this_01; QString::QString(aQStack_58,"chatHistoryDisplay"); /* try { // try from 001072cf to 001072d9 has its CatchHandler @ 001075ad */ QObject::setObjectName((QString *)this_01); QArrayDataPointer<char16_t>::~QArrayDataPointer((QArrayDataPointer<char16_t> *)aQStack_58); QTextEdit::setReadOnly(SUB81(*(int8 *)(this + 0xe8),0)); QBoxLayout::addWidget(*(int8 *)(this + 0xe0),*(int8 *)(this + 0xe8),1); pQVar2 = (QWidget *)operator_new(0x28); /* try { // try from 00107315 to 00107321 has its CatchHandler @ 001075ab */ QWidget::QWidget(pQVar2,this,0); *(QWidget **)(this + 0xf0) = pQVar2; this_02 = (QHBoxLayout *)operator_new(0x20); /* try { // try from 00107334 to 0010733e has its CatchHandler @ 001075a9 */ QHBoxLayout::QHBoxLayout(this_02,pQVar2); *(QHBoxLayout **)(this + 0xf8) = this_02; QLayout::setContentsMargins((int)this_02,0,0,0); (**(code **)(**(long **)(this + 0xf8) + 0x68))(*(long **)(this + 0xf8),5); this_03 = (QLineEdit *)operator_new(0x28); /* try { // try from 00107372 to 0010737c has its CatchHandler @ 001075a7 */ QLineEdit::QLineEdit(this_03,(QWidget *)this); *(QLineEdit **)(this + 0x100) = this_03; QString::QString(aQStack_58,"Type a message and press Enter to send ..."); /* try { // try from 00107396 to 001073a0 has its CatchHandler @ 001075a5 */ QLineEdit::setPlaceholderText((QString *)this_03); QArrayDataPointer<char16_t>::~QArrayDataPointer((QArrayDataPointer<char16_t> *)aQStack_58); pQVar1 = *(QString **)(this + 0x100); QString::QString(aQStack_58,"messageInput"); /* try { // try from 001073c2 to 001073cc has its CatchHandler @ 001075a3 */ QObject::setObjectName(pQVar1); QArrayDataPointer<char16_t>::~QArrayDataPointer((QArrayDataPointer<char16_t> *)aQStack_58); this_04 = (QToolButton *)operator_new(0x28); /* try { // try from 001073e0 to 001073ea has its CatchHandler @ 001075a1 */ QToolButton::QToolButton(this_04,(QWidget *)this); *(QToolButton **)(this + 0x108) = this_04; QString::QString(aQStack_58,"mail-attachment"); /* try { // try from 00107404 to 00107410 has its CatchHandler @ 0010759f */ QIcon::fromTheme(local_38); /* try { // try from 00107411 to 0010741d has its CatchHandler @ 00107590 */ QAbstractButton::setIcon((QIcon *)this_04); QIcon::~QIcon((QIcon *)local_38); QArrayDataPointer<char16_t>::~QArrayDataPointer((QArrayDataPointer<char16_t> *)aQStack_58); pQVar1 = *(QString **)(this + 0x108); QString::QString(aQStack_58,"Attach file (placeholder)"); /* try { // try from 00107449 to 00107453 has its CatchHandler @ 0010758e */ QWidget::setToolTip(pQVar1); QArrayDataPointer<char16_t>::~QArrayDataPointer((QArrayDataPointer<char16_t> *)aQStack_58); this_05 = (QPushButton *)operator_new(0x28); /* try { // try from 00107467 to 00107475 has its CatchHandler @ 0010758c */ QString::QString(aQStack_58,"mail-send"); /* try { // try from 00107476 to 00107482 has its CatchHandler @ 0010757f */ QIcon::fromTheme(local_40); /* try { // try from 00107483 to 00107493 has its CatchHandler @ 00107570 */ QString::QString(local_38,""); /* try { // try from 00107494 to 001074a7 has its CatchHandler @ 00107561 */ QPushButton::QPushButton(this_05,(QIcon *)local_40,local_38,(QWidget *)0x0); *(QPushButton **)(this + 0x110) = this_05; QArrayDataPointer<char16_t>::~QArrayDataPointer((QArrayDataPointer<char16_t> *)local_38); QIcon::~QIcon((QIcon *)local_40); QArrayDataPointer<char16_t>::~QArrayDataPointer((QArrayDataPointer<char16_t> *)aQStack_58); pQVar1 = *(QString **)(this + 0x110); QString::QString(aQStack_58,"Send Message"); /* try { // try from 001074e4 to 001074ee has its CatchHandler @ 0010755f */ QWidget::setToolTip(pQVar1); QArrayDataPointer<char16_t>::~QArrayDataPointer((QArrayDataPointer<char16_t> *)aQStack_58); QBoxLayout::addWidget(*(int8 *)(this + 0xf8),*(int8 *)(this + 0x100),1,0); QBoxLayout::addWidget(*(int8 *)(this + 0xf8),*(int8 *)(this + 0x108),0,0); QBoxLayout::addWidget(*(int8 *)(this + 0xf8),*(int8 *)(this + 0x110),0,0); QBoxLayout::addWidget(*(int8 *)(this + 0xe0),*(int8 *)(this + 0xf0),0,0); return; }
32,262
my_xml_error_pos
eloqsql/strings/xml.c
size_t my_xml_error_pos(MY_XML_PARSER *p) { const char *beg=p->beg; const char *s; for ( s=p->beg ; s<p->cur; s++) { if (s[0] == '\n') beg=s; } return (size_t) (p->cur-beg); }
O3
c
my_xml_error_pos: movq 0x128(%rdi), %rcx movq 0x130(%rdi), %rax cmpq %rax, %rcx jae 0x5c87e pushq %rbp movq %rsp, %rbp movq %rcx, %rdx cmpb $0xa, (%rcx) cmoveq %rcx, %rdx incq %rcx cmpq %rax, %rcx jne 0x5c86c popq %rbp jmp 0x5c881 movq %rcx, %rdx subq %rdx, %rax retq
my_xml_error_pos: mov rcx, [rdi+128h] mov rax, [rdi+130h] cmp rcx, rax jnb short loc_5C87E push rbp mov rbp, rsp mov rdx, rcx loc_5C86C: cmp byte ptr [rcx], 0Ah cmovz rdx, rcx inc rcx cmp rcx, rax jnz short loc_5C86C pop rbp jmp short loc_5C881 loc_5C87E: mov rdx, rcx loc_5C881: sub rax, rdx retn
long long my_xml_error_pos(long long a1) { _BYTE *v1; // rcx _BYTE *v2; // rax _BYTE *v3; // rdx v1 = *(_BYTE **)(a1 + 296); v2 = *(_BYTE **)(a1 + 304); if ( v1 >= v2 ) { v3 = *(_BYTE **)(a1 + 296); } else { v3 = *(_BYTE **)(a1 + 296); do { if ( *v1 == 10 ) v3 = v1; ++v1; } while ( v1 != v2 ); } return v2 - v3; }
my_xml_error_pos: MOV RCX,qword ptr [RDI + 0x128] MOV RAX,qword ptr [RDI + 0x130] CMP RCX,RAX JNC 0x0015c87e PUSH RBP MOV RBP,RSP MOV RDX,RCX LAB_0015c86c: CMP byte ptr [RCX],0xa CMOVZ RDX,RCX INC RCX CMP RCX,RAX JNZ 0x0015c86c POP RBP JMP 0x0015c881 LAB_0015c87e: MOV RDX,RCX LAB_0015c881: SUB RAX,RDX RET
long my_xml_error_pos(long param_1) { char *pcVar1; char *pcVar2; char *pcVar3; pcVar2 = *(char **)(param_1 + 0x128); pcVar1 = *(char **)(param_1 + 0x130); pcVar3 = pcVar2; if (pcVar2 < pcVar1) { do { if (*pcVar2 == '\n') { pcVar3 = pcVar2; } pcVar2 = pcVar2 + 1; } while (pcVar2 != pcVar1); } return (long)pcVar1 - (long)pcVar3; }
32,263
common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool)
monkey531[P]llama/common/common.cpp
std::string common_detokenize(const struct llama_vocab * vocab, const std::vector<llama_token> & tokens, bool special) { std::string text; text.resize(std::max(text.capacity(), tokens.size())); int32_t n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special); if (n_chars < 0) { text.resize(-n_chars); n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special); GGML_ASSERT(n_chars <= (int32_t)text.size()); // whitespace trimming is performed after per-token detokenization } text.resize(n_chars); // NOTE: the original tokenizer decodes bytes after collecting the pieces. return text; }
O2
cpp
common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %ecx, %ebp movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) andq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq 0x8(%rdx), %rax subq (%rdx), %rax sarq $0x2, %rax cmpq $0x10, %rax pushq $0xf popq %rsi cmovaeq %rax, %rsi callq 0x24c60 movq (%r15), %rsi movq 0x8(%r15), %rdx subq %rsi, %rdx shrq $0x2, %rdx movq (%rbx), %rcx movl 0x8(%rbx), %r8d movzbl %bpl, %ebp movl %ebp, (%rsp) movq %r14, %rdi xorl %r9d, %r9d callq 0x240d0 testl %eax, %eax jns 0x62468 negl %eax movq %rbx, %rdi movq %rax, %rsi callq 0x24c60 movq (%r15), %rsi movq 0x8(%r15), %rdx subq %rsi, %rdx shrq $0x2, %rdx movq (%rbx), %rcx movl 0x8(%rbx), %r8d movl %ebp, (%rsp) movq %r14, %rdi xorl %r9d, %r9d callq 0x240d0 cmpl 0x8(%rbx), %eax jg 0x62481 movslq %eax, %rsi movq %rbx, %rdi callq 0x24c60 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x5c89d(%rip), %rdi # 0xbed25 leaq 0x53661(%rip), %rdx # 0xb5af0 leaq 0x5cf34(%rip), %rcx # 0xbf3ca movl $0x6e2, %esi # imm = 0x6E2 xorl %eax, %eax callq 0x24f20 jmp 0x624a4 movq %rax, %r14 movq %rbx, %rdi callq 0x25298 movq %r14, %rdi callq 0x25010
_Z17common_detokenizeB5cxx11PK11llama_vocabRKSt6vectorIiSaIiEEb: push rbp push r15 push r14 push rbx push rax mov ebp, ecx mov r15, rdx mov r14, rsi mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax and qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rax, [rdx+8] sub rax, [rdx] sar rax, 2 cmp rax, 10h push 0Fh pop rsi cmovnb rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong) mov rsi, [r15] mov rdx, [r15+8] sub rdx, rsi shr rdx, 2 mov rcx, [rbx] mov r8d, [rbx+8] movzx ebp, bpl mov [rsp+28h+var_28], ebp mov rdi, r14 xor r9d, r9d call _llama_detokenize test eax, eax jns short loc_62468 neg eax mov rdi, rbx mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong) mov rsi, [r15] mov rdx, [r15+8] sub rdx, rsi shr rdx, 2 mov rcx, [rbx] mov r8d, [rbx+8] mov [rsp+28h+var_28], ebp mov rdi, r14 xor r9d, r9d call _llama_detokenize cmp eax, [rbx+8] jg short loc_62481 loc_62468: movsxd rsi, eax mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong) mov rax, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_62481: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aNCharsInt32TTe; "n_chars <= (int32_t)text.size()" mov esi, 6E2h xor eax, eax call _ggml_abort jmp short $+2 loc_624A4: mov r14, rax mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
_QWORD * common_detokenize[abi:cxx11](_QWORD *a1, long long a2, _QWORD *a3, unsigned __int8 a4) { long long v4; // rax long long v8; // rsi int v9; // eax long long v11; // r14 long long v12; // [rsp+0h] [rbp-28h] long long v13; // [rsp+0h] [rbp-28h] HIDWORD(v12) = HIDWORD(v4); *a1 = a1 + 2; a1[1] = 0LL; *((_BYTE *)a1 + 16) = 0; v8 = 15LL; if ( (unsigned long long)((long long)(a3[1] - *a3) >> 2) >= 0x10 ) v8 = (long long)(a3[1] - *a3) >> 2; std::string::resize(a1, v8); LODWORD(v12) = a4; v9 = llama_detokenize(a2, *a3, (a3[1] - *a3) >> 2, *a1, *((unsigned int *)a1 + 2), 0LL, v12); if ( v9 < 0 ) { std::string::resize(a1, (unsigned int)-v9); LODWORD(v13) = a4; v9 = llama_detokenize(a2, *a3, (a3[1] - *a3) >> 2, *a1, *((unsigned int *)a1 + 2), 0LL, v13); if ( v9 > *((_DWORD *)a1 + 2) ) { v11 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp", 1762LL, "GGML_ASSERT(%s) failed", "n_chars <= (int32_t)text.size()"); std::string::~string(a1); _Unwind_Resume(v11); } } std::string::resize(a1, v9); return a1; }
common_detokenize[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBP,ECX MOV R15,RDX MOV R14,RSI MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX AND qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RAX,qword ptr [RDX + 0x8] SUB RAX,qword ptr [RDX] SAR RAX,0x2 CMP RAX,0x10 PUSH 0xf POP RSI CMOVNC RSI,RAX LAB_00162403: CALL 0x00124c60 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] SUB RDX,RSI SHR RDX,0x2 MOV RCX,qword ptr [RBX] MOV R8D,dword ptr [RBX + 0x8] LAB_0016241d: MOVZX EBP,BPL MOV dword ptr [RSP],EBP MOV RDI,R14 XOR R9D,R9D CALL 0x001240d0 TEST EAX,EAX JNS 0x00162468 NEG EAX MOV RDI,RBX MOV RSI,RAX CALL 0x00124c60 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] SUB RDX,RSI SHR RDX,0x2 MOV RCX,qword ptr [RBX] MOV R8D,dword ptr [RBX + 0x8] MOV dword ptr [RSP],EBP MOV RDI,R14 XOR R9D,R9D CALL 0x001240d0 CMP EAX,dword ptr [RBX + 0x8] JG 0x00162481 LAB_00162468: MOVSXD RSI,EAX MOV RDI,RBX CALL 0x00124c60 MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_00162481: LEA RDI,[0x1bed25] LEA RDX,[0x1b5af0] LEA RCX,[0x1bf3ca] MOV ESI,0x6e2 XOR EAX,EAX CALL 0x00124f20
/* common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int> > const&, bool) */ llama_vocab * common_detokenize_abi_cxx11_(llama_vocab *param_1,vector *param_2,bool param_3) { int iVar1; int8 in_RAX; int4 uVar2; int4 in_ECX; int7 in_register_00000011; long *plVar3; ulong uVar4; uVar2 = (int4)((ulong)in_RAX >> 0x20); plVar3 = (long *)CONCAT71(in_register_00000011,param_3); *(llama_vocab **)param_1 = param_1 + 0x10; *(int8 *)(param_1 + 8) = 0; param_1[0x10] = (llama_vocab)0x0; /* try { // try from 00162403 to 00162407 has its CatchHandler @ 001624a2 */ std::__cxx11::string::resize((ulong)param_1); /* try { // try from 0016241d to 001624a1 has its CatchHandler @ 001624a4 */ uVar4 = CONCAT44(uVar2,in_ECX) & 0xffffffff000000ff; iVar1 = llama_detokenize(param_2,*plVar3,(ulong)(plVar3[1] - *plVar3) >> 2,*(int8 *)param_1, *(int4 *)(param_1 + 8),0,uVar4); uVar2 = (int4)(uVar4 >> 0x20); if (iVar1 < 0) { std::__cxx11::string::resize((ulong)param_1); iVar1 = llama_detokenize(param_2,*plVar3,(ulong)(plVar3[1] - *plVar3) >> 2, *(int8 *)param_1,*(int4 *)(param_1 + 8),0, CONCAT44(uVar2,in_ECX) & 0xffffffff000000ff); if (*(int *)(param_1 + 8) < iVar1) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x6e2 ,"GGML_ASSERT(%s) failed","n_chars <= (int32_t)text.size()"); } } std::__cxx11::string::resize((ulong)param_1); return param_1; }
32,264
my_sync_dir_by_file
eloqsql/mysys/my_sync.c
int my_sync_dir_by_file(const char *file_name __attribute__((unused)), myf my_flags __attribute__((unused))) { #ifdef NEED_EXPLICIT_SYNC_DIR char dir_name[FN_REFLEN]; size_t dir_name_length; dirname_part(dir_name, file_name, &dir_name_length); return my_sync_dir(dir_name, my_flags & ~MY_NOSYMLINKS); #else return 0; #endif }
O0
c
my_sync_dir_by_file: pushq %rbp movq %rsp, %rbp subq $0x240, %rsp # imm = 0x240 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) movq -0x218(%rbp), %rsi leaq -0x210(%rbp), %rdi movq %rdi, -0x238(%rbp) leaq -0x228(%rbp), %rdx callq 0x34230 movq -0x238(%rbp), %rdi movq -0x220(%rbp), %rax andl $0xfffffdff, %eax # imm = 0xFFFFFDFF movl %eax, %esi callq 0x38340 movl %eax, -0x22c(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x38478 movl -0x22c(%rbp), %eax addq $0x240, %rsp # imm = 0x240 popq %rbp retq callq 0x24300 nopl (%rax)
my_sync_dir_by_file: push rbp mov rbp, rsp sub rsp, 240h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi mov rsi, [rbp+var_218] lea rdi, [rbp+var_210] mov [rbp+var_238], rdi lea rdx, [rbp+var_228] call dirname_part mov rdi, [rbp+var_238] mov rax, [rbp+var_220] and eax, 0FFFFFDFFh mov esi, eax call my_sync_dir mov [rbp+var_22C], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_38478 mov eax, [rbp+var_22C] add rsp, 240h pop rbp retn loc_38478: call ___stack_chk_fail
long long my_sync_dir_by_file(_BYTE *a1, long long a2) { long long v3; // [rsp+18h] [rbp-228h] BYREF long long v4; // [rsp+20h] [rbp-220h] _BYTE *v5; // [rsp+28h] [rbp-218h] char v6[520]; // [rsp+30h] [rbp-210h] BYREF unsigned long long v7; // [rsp+238h] [rbp-8h] v7 = __readfsqword(0x28u); v5 = a1; v4 = a2; dirname_part((long long)v6, a1, &v3); return (unsigned int)my_sync_dir(v6, (unsigned int)v4 & 0xFFFFFDFF); }
my_sync_dir_by_file: PUSH RBP MOV RBP,RSP SUB RSP,0x240 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI MOV RSI,qword ptr [RBP + -0x218] LEA RDI,[RBP + -0x210] MOV qword ptr [RBP + -0x238],RDI LEA RDX,[RBP + -0x228] CALL 0x00134230 MOV RDI,qword ptr [RBP + -0x238] MOV RAX,qword ptr [RBP + -0x220] AND EAX,0xfffffdff MOV ESI,EAX CALL 0x00138340 MOV dword ptr [RBP + -0x22c],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00138478 MOV EAX,dword ptr [RBP + -0x22c] ADD RSP,0x240 POP RBP RET LAB_00138478: CALL 0x00124300
int4 my_sync_dir_by_file(int8 param_1,int8 param_2) { int4 uVar1; long in_FS_OFFSET; int1 local_230 [8]; int8 local_228; int8 local_220; int1 local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_228 = param_2; local_220 = param_1; dirname_part(local_218,param_1,local_230); uVar1 = my_sync_dir(local_218,(uint)local_228 & 0xfffffdff); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return uVar1; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
32,265
JS_DefinePrivateField
bluesky950520[P]quickjs/quickjs.c
static int JS_DefinePrivateField(JSContext *ctx, JSValue obj, JSValue name, JSValue val) { JSObject *p; JSShapeProperty *prs; JSProperty *pr; JSAtom prop; if (unlikely(JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)) { JS_ThrowTypeErrorNotAnObject(ctx); goto fail; } /* safety check */ if (unlikely(JS_VALUE_GET_TAG(name) != JS_TAG_SYMBOL)) { JS_ThrowTypeErrorNotASymbol(ctx); goto fail; } prop = js_symbol_to_atom(ctx, name); p = JS_VALUE_GET_OBJ(obj); prs = find_own_property(&pr, p, prop); if (prs) { JS_ThrowTypeErrorAtom(ctx, "private class field '%s' already exists", prop); goto fail; } pr = add_property(ctx, p, prop, JS_PROP_C_W_E); if (unlikely(!pr)) { fail: JS_FreeValue(ctx, val); return -1; } pr->u.value = val; return 0; }
O0
c
JS_DefinePrivateField: subq $0xc8, %rsp leaq 0xd0(%rsp), %rax movq %rax, (%rsp) movq %rsi, 0x70(%rsp) movq %rdx, 0x78(%rsp) movq %rcx, 0x60(%rsp) movq %r8, 0x68(%rsp) movq %rdi, 0x58(%rsp) movq 0x78(%rsp), %rax cmpl $-0x1, %eax setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x6ed01 movq 0x58(%rsp), %rdi callq 0x35890 movq %rax, 0x28(%rsp) movq %rdx, 0x30(%rsp) jmp 0x6ef25 movq 0x68(%rsp), %rax cmpl $-0x8, %eax setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x6ed36 movq 0x58(%rsp), %rdi callq 0x75890 movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) jmp 0x6ef25 movq 0x58(%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx callq 0x37710 movl %eax, 0x3c(%rsp) movq 0x70(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x50(%rsp), %rcx movl 0x3c(%rsp), %eax leaq 0x40(%rsp), %rdx movq %rdx, 0xb8(%rsp) movq %rcx, 0xb0(%rsp) movl %eax, 0xac(%rsp) movq 0xb0(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0xa0(%rsp) movl 0xac(%rsp), %eax movq 0xa0(%rsp), %rcx movl 0x20(%rcx), %ecx andq %rcx, %rax movq %rax, 0x88(%rsp) movq 0xa0(%rsp), %rdi callq 0x63ba0 xorl %ecx, %ecx subq 0x88(%rsp), %rcx subq $0x1, %rcx movl (%rax,%rcx,4), %eax movq %rax, 0x88(%rsp) movq 0xa0(%rsp), %rdi callq 0x32570 movq %rax, 0x90(%rsp) cmpq $0x0, 0x88(%rsp) je 0x6ee90 movq 0x90(%rsp), %rax movq 0x88(%rsp), %rcx subq $0x1, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, 0x98(%rsp) movq 0x98(%rsp), %rax movl 0x4(%rax), %eax cmpl 0xac(%rsp), %eax sete %al testb $0x1, %al jne 0x6ee36 jmp 0x6ee72 movq 0xb0(%rsp), %rax movq 0x20(%rax), %rcx movq 0x88(%rsp), %rax subq $0x1, %rax shlq $0x4, %rax addq %rax, %rcx movq 0xb8(%rsp), %rax movq %rcx, (%rax) movq 0x98(%rsp), %rax movq %rax, 0xc0(%rsp) jmp 0x6eeab movq 0x98(%rsp), %rax movl (%rax), %eax andl $0x3ffffff, %eax # imm = 0x3FFFFFF movl %eax, %eax movq %rax, 0x88(%rsp) jmp 0x6ede9 movq 0xb8(%rsp), %rax movq $0x0, (%rax) movq $0x0, 0xc0(%rsp) movq 0xc0(%rsp), %rax movq %rax, 0x48(%rsp) cmpq $0x0, 0x48(%rsp) je 0x6eeea movq 0x58(%rsp), %rdi movl 0x3c(%rsp), %esi leaq 0xa5893(%rip), %rdx # 0x114763 leaq 0xa08d8(%rip), %rcx # 0x10f7af movb $0x0, %al callq 0x666d0 movq %rax, 0x8(%rsp) movq %rdx, 0x10(%rsp) jmp 0x6ef25 movq 0x58(%rsp), %rdi movq 0x50(%rsp), %rsi movl 0x3c(%rsp), %edx movl $0x7, %ecx callq 0x64030 movq %rax, 0x40(%rsp) cmpq $0x0, 0x40(%rsp) setne %al xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x6ef47 jmp 0x6ef25 movq (%rsp), %rax movq 0x58(%rsp), %rdi movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x29f80 movl $0xffffffff, 0x84(%rsp) # imm = 0xFFFFFFFF jmp 0x6ef69 movq (%rsp), %rcx movq 0x40(%rsp), %rax movq (%rcx), %rdx movq %rdx, (%rax) movq 0x8(%rcx), %rcx movq %rcx, 0x8(%rax) movl $0x0, 0x84(%rsp) movl 0x84(%rsp), %eax addq $0xc8, %rsp retq nopl (%rax,%rax)
JS_DefinePrivateField: sub rsp, 0C8h lea rax, [rsp+0C8h+arg_0] mov [rsp+0C8h+var_C8], rax mov [rsp+0C8h+var_58], rsi mov [rsp+0C8h+var_50], rdx mov [rsp+0C8h+var_68], rcx mov [rsp+0C8h+var_60], r8 mov [rsp+0C8h+var_70], rdi mov rax, [rsp+0C8h+var_50] cmp eax, 0FFFFFFFFh setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_6ED01 mov rdi, [rsp+0C8h+var_70] call JS_ThrowTypeErrorNotAnObject mov [rsp+0C8h+var_A0], rax mov [rsp+0C8h+var_98], rdx jmp loc_6EF25 loc_6ED01: mov rax, [rsp+0C8h+var_60] cmp eax, 0FFFFFFF8h setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_6ED36 mov rdi, [rsp+0C8h+var_70] call JS_ThrowTypeErrorNotASymbol mov [rsp+0C8h+var_B0], rax mov [rsp+0C8h+var_A8], rdx jmp loc_6EF25 loc_6ED36: mov rdi, [rsp+0C8h+var_70] mov rsi, [rsp+0C8h+var_68] mov rdx, [rsp+0C8h+var_60] call js_symbol_to_atom mov [rsp+0C8h+var_8C], eax mov rax, [rsp+0C8h+var_58] mov [rsp+0C8h+var_78], rax mov rcx, [rsp+0C8h+var_78] mov eax, [rsp+0C8h+var_8C] lea rdx, [rsp+0C8h+var_88] mov [rsp+0C8h+var_10], rdx mov [rsp+0C8h+var_18], rcx mov [rsp+0C8h+var_1C], eax mov rax, [rsp+0C8h+var_18] mov rax, [rax+18h] mov [rsp+0C8h+var_28], rax mov eax, [rsp+0C8h+var_1C] mov rcx, [rsp+0C8h+var_28] mov ecx, [rcx+20h] and rax, rcx mov [rsp+0C8h+var_40], rax mov rdi, [rsp+0C8h+var_28] call prop_hash_end xor ecx, ecx sub rcx, [rsp+0C8h+var_40] sub rcx, 1 mov eax, [rax+rcx*4] mov [rsp+0C8h+var_40], rax mov rdi, [rsp+0C8h+var_28] call get_shape_prop mov [rsp+0C8h+var_38], rax loc_6EDE9: cmp [rsp+0C8h+var_40], 0 jz loc_6EE90 mov rax, [rsp+0C8h+var_38] mov rcx, [rsp+0C8h+var_40] sub rcx, 1 shl rcx, 3 add rax, rcx mov [rsp+0C8h+var_30], rax mov rax, [rsp+0C8h+var_30] mov eax, [rax+4] cmp eax, [rsp+0C8h+var_1C] setz al test al, 1 jnz short loc_6EE36 jmp short loc_6EE72 loc_6EE36: mov rax, [rsp+0C8h+var_18] mov rcx, [rax+20h] mov rax, [rsp+0C8h+var_40] sub rax, 1 shl rax, 4 add rcx, rax mov rax, [rsp+0C8h+var_10] mov [rax], rcx mov rax, [rsp+0C8h+var_30] mov [rsp+0C8h+var_8], rax jmp short loc_6EEAB loc_6EE72: mov rax, [rsp+0C8h+var_30] mov eax, [rax] and eax, 3FFFFFFh mov eax, eax mov [rsp+0C8h+var_40], rax jmp loc_6EDE9 loc_6EE90: mov rax, [rsp+0C8h+var_10] mov qword ptr [rax], 0 mov [rsp+0C8h+var_8], 0 loc_6EEAB: mov rax, [rsp+0C8h+var_8] mov [rsp+0C8h+var_80], rax cmp [rsp+0C8h+var_80], 0 jz short loc_6EEEA mov rdi, [rsp+0C8h+var_70] mov esi, [rsp+0C8h+var_8C] lea rdx, aPrivateClassFi; "private class field '%s' already exists" lea rcx, aMaximumMemoryS+24h; "" mov al, 0 call __JS_ThrowTypeErrorAtom mov [rsp+0C8h+var_C0], rax mov [rsp+0C8h+var_B8], rdx jmp short loc_6EF25 loc_6EEEA: mov rdi, [rsp+0C8h+var_70] mov rsi, [rsp+0C8h+var_78] mov edx, [rsp+0C8h+var_8C] mov ecx, 7 call add_property mov [rsp+0C8h+var_88], rax cmp [rsp+0C8h+var_88], 0 setnz al xor al, 0FFh xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_6EF47 jmp short $+2 loc_6EF25: mov rax, [rsp+0C8h+var_C8] mov rdi, [rsp+0C8h+var_70] mov rsi, [rax] mov rdx, [rax+8] call JS_FreeValue mov [rsp+0C8h+var_44], 0FFFFFFFFh jmp short loc_6EF69 loc_6EF47: mov rcx, [rsp+0C8h+var_C8] mov rax, [rsp+0C8h+var_88] mov rdx, [rcx] mov [rax], rdx mov rcx, [rcx+8] mov [rax+8], rcx mov [rsp+0C8h+var_44], 0 loc_6EF69: mov eax, [rsp+0C8h+var_44] add rsp, 0C8h retn
long long JS_DefinePrivateField( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, long long a15, long long a16) { long long v16; // rax double v17; // xmm4_8 double v18; // xmm5_8 long long v19; // rax unsigned int v21; // [rsp+3Ch] [rbp-8Ch] _QWORD v22[2]; // [rsp+40h] [rbp-88h] BYREF long long v23; // [rsp+50h] [rbp-78h] long long v24; // [rsp+58h] [rbp-70h] long long v25; // [rsp+60h] [rbp-68h] long long v26; // [rsp+68h] [rbp-60h] long long v27; // [rsp+70h] [rbp-58h] long long v28; // [rsp+78h] [rbp-50h] long long v30; // [rsp+88h] [rbp-40h] long long shape_prop; // [rsp+90h] [rbp-38h] _DWORD *v32; // [rsp+98h] [rbp-30h] long long v33; // [rsp+A0h] [rbp-28h] unsigned int v34; // [rsp+ACh] [rbp-1Ch] long long v35; // [rsp+B0h] [rbp-18h] _QWORD *v36; // [rsp+B8h] [rbp-10h] _DWORD *v37; // [rsp+C0h] [rbp-8h] v27 = a2; v28 = a3; v25 = a4; v26 = a5; v24 = a1; if ( (_DWORD)a3 == -1 ) { if ( (_DWORD)v26 == -8 ) { v21 = js_symbol_to_atom(v24, v25); v23 = v27; v36 = v22; v35 = v27; v34 = v21; v33 = *(_QWORD *)(v27 + 24); v30 = *(_DWORD *)(v33 + 32) & v21; v16 = prop_hash_end(v33); v30 = *(unsigned int *)(v16 + 4 * (-v30 - 1)); shape_prop = get_shape_prop(v33); while ( v30 ) { v32 = (_DWORD *)(8 * (v30 - 1) + shape_prop); if ( v32[1] == v34 ) { *v36 = 16 * (v30 - 1) + *(_QWORD *)(v35 + 32); v37 = v32; goto LABEL_11; } v30 = *v32 & 0x3FFFFFF; } *v36 = 0LL; v37 = 0LL; LABEL_11: v22[1] = v37; if ( v37 ) { _JS_ThrowTypeErrorAtom(v24, v21, "private class field '%s' already exists", a7, a8, a9, a10, v17, v18, a13, a14); } else { v22[0] = add_property(v24, v23, v21, 7u); if ( v22[0] ) { v19 = v22[0]; *(_QWORD *)v22[0] = a15; *(_QWORD *)(v19 + 8) = a16; return 0; } } } else { JS_ThrowTypeErrorNotASymbol(v24); } } else { JS_ThrowTypeErrorNotAnObject(v24, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6); } JS_FreeValue(v24, a15, a16); return (unsigned int)-1; }
JS_DefinePrivateField: SUB RSP,0xc8 LEA RAX,[RSP + 0xd0] MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x70],RSI MOV qword ptr [RSP + 0x78],RDX MOV qword ptr [RSP + 0x60],RCX MOV qword ptr [RSP + 0x68],R8 MOV qword ptr [RSP + 0x58],RDI MOV RAX,qword ptr [RSP + 0x78] CMP EAX,-0x1 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0016ed01 MOV RDI,qword ptr [RSP + 0x58] CALL 0x00135890 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x30],RDX JMP 0x0016ef25 LAB_0016ed01: MOV RAX,qword ptr [RSP + 0x68] CMP EAX,-0x8 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0016ed36 MOV RDI,qword ptr [RSP + 0x58] CALL 0x00175890 MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX JMP 0x0016ef25 LAB_0016ed36: MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x68] CALL 0x00137710 MOV dword ptr [RSP + 0x3c],EAX MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x50],RAX MOV RCX,qword ptr [RSP + 0x50] MOV EAX,dword ptr [RSP + 0x3c] LEA RDX,[RSP + 0x40] MOV qword ptr [RSP + 0xb8],RDX MOV qword ptr [RSP + 0xb0],RCX MOV dword ptr [RSP + 0xac],EAX MOV RAX,qword ptr [RSP + 0xb0] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0xa0],RAX MOV EAX,dword ptr [RSP + 0xac] MOV RCX,qword ptr [RSP + 0xa0] MOV ECX,dword ptr [RCX + 0x20] AND RAX,RCX MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0xa0] CALL 0x00163ba0 XOR ECX,ECX SUB RCX,qword ptr [RSP + 0x88] SUB RCX,0x1 MOV EAX,dword ptr [RAX + RCX*0x4] MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0xa0] CALL 0x00132570 MOV qword ptr [RSP + 0x90],RAX LAB_0016ede9: CMP qword ptr [RSP + 0x88],0x0 JZ 0x0016ee90 MOV RAX,qword ptr [RSP + 0x90] MOV RCX,qword ptr [RSP + 0x88] SUB RCX,0x1 SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RSP + 0x98],RAX MOV RAX,qword ptr [RSP + 0x98] MOV EAX,dword ptr [RAX + 0x4] CMP EAX,dword ptr [RSP + 0xac] SETZ AL TEST AL,0x1 JNZ 0x0016ee36 JMP 0x0016ee72 LAB_0016ee36: MOV RAX,qword ptr [RSP + 0xb0] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RSP + 0x88] SUB RAX,0x1 SHL RAX,0x4 ADD RCX,RAX MOV RAX,qword ptr [RSP + 0xb8] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0xc0],RAX JMP 0x0016eeab LAB_0016ee72: MOV RAX,qword ptr [RSP + 0x98] MOV EAX,dword ptr [RAX] AND EAX,0x3ffffff MOV EAX,EAX MOV qword ptr [RSP + 0x88],RAX JMP 0x0016ede9 LAB_0016ee90: MOV RAX,qword ptr [RSP + 0xb8] MOV qword ptr [RAX],0x0 MOV qword ptr [RSP + 0xc0],0x0 LAB_0016eeab: MOV RAX,qword ptr [RSP + 0xc0] MOV qword ptr [RSP + 0x48],RAX CMP qword ptr [RSP + 0x48],0x0 JZ 0x0016eeea MOV RDI,qword ptr [RSP + 0x58] MOV ESI,dword ptr [RSP + 0x3c] LEA RDX,[0x214763] LEA RCX,[0x20f7af] MOV AL,0x0 CALL 0x001666d0 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX JMP 0x0016ef25 LAB_0016eeea: MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x50] MOV EDX,dword ptr [RSP + 0x3c] MOV ECX,0x7 CALL 0x00164030 MOV qword ptr [RSP + 0x40],RAX CMP qword ptr [RSP + 0x40],0x0 SETNZ AL XOR AL,0xff XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0016ef47 JMP 0x0016ef25 LAB_0016ef25: MOV RAX,qword ptr [RSP] MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x00129f80 MOV dword ptr [RSP + 0x84],0xffffffff JMP 0x0016ef69 LAB_0016ef47: MOV RCX,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RCX] MOV qword ptr [RAX],RDX MOV RCX,qword ptr [RCX + 0x8] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RSP + 0x84],0x0 LAB_0016ef69: MOV EAX,dword ptr [RSP + 0x84] ADD RSP,0xc8 RET
int4 JS_DefinePrivateField (int8 param_1,long param_2,int8 param_3,int8 param_4,int8 param_5, int8 param_6,int8 param_7,int8 param_8) { uint uVar1; long lVar2; int8 *puVar3; long local_88; uint *local_80; long local_78; int8 local_70; int8 local_68; int8 local_60; long local_58; int8 local_50; ulong local_40; long local_38; uint *local_30; long local_28; uint local_1c; long local_18; long *local_10; uint *local_8; local_70 = param_1; local_68 = param_4; local_60 = param_5; local_58 = param_2; local_50 = param_3; if ((int)param_3 == -1) { if ((int)param_5 == -8) { uVar1 = js_symbol_to_atom(param_1,param_4,param_5); local_78 = local_58; local_10 = &local_88; local_18 = local_58; local_28 = *(long *)(local_58 + 0x18); local_40 = (ulong)(uVar1 & *(uint *)(local_28 + 0x20)); local_1c = uVar1; lVar2 = prop_hash_end(local_28); local_40 = (ulong)*(uint *)(lVar2 + (-1 - local_40) * 4); local_38 = get_shape_prop(local_28); while (local_40 != 0) { local_30 = (uint *)(local_38 + (local_40 - 1) * 8); if (local_30[1] == local_1c) { *local_10 = *(long *)(local_18 + 0x20) + (local_40 - 1) * 0x10; local_8 = local_30; goto LAB_0016eeab; } local_40 = (ulong)(*local_30 & 0x3ffffff); } *local_10 = 0; local_8 = (uint *)0x0; LAB_0016eeab: local_80 = local_8; if (local_8 == (uint *)0x0) { puVar3 = (int8 *)add_property(local_70,local_78,uVar1,7); if (puVar3 != (int8 *)0x0) { *puVar3 = param_7; puVar3[1] = param_8; return 0; } local_88 = 0; } else { __JS_ThrowTypeErrorAtom(local_70,uVar1,"private class field \'%s\' already exists",""); } } else { JS_ThrowTypeErrorNotASymbol(param_1); } } else { JS_ThrowTypeErrorNotAnObject(param_1); } JS_FreeValue(local_70,param_7,param_8); return 0xffffffff; }
32,266
mysql_stmt_store_result_start
eloqsql/libmariadb/libmariadb/mariadb_async.c
int STDCALL mysql_stmt_store_result_start(int *ret, MYSQL_STMT *stmt) { MK_ASYNC_START_BODY( mysql_stmt_store_result, stmt->mysql, { WIN_SET_NONBLOCKING(stmt->mysql) parms.stmt= stmt; }, 1, r_int, /* If stmt->mysql==NULL then we will not block so can call directly. */ if (!stmt->mysql) { *ret= mysql_stmt_store_result(stmt); return 0; }) }
O3
c
mysql_stmt_store_result_start: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x38(%rsi), %rax testq %rax, %rax je 0x2f0e7 movq 0x480(%rax), %rax movq 0x28(%rax), %r15 leaq -0x20(%rbp), %rdx movq %r14, (%rdx) movb $0x1, 0x14(%r15) leaq 0x38(%r15), %rdi leaq 0xa2(%rip), %rsi # 0x2f16f callq 0x305f0 movw $0x0, 0x14(%r15) testl %eax, %eax jle 0x2f0f1 movb $0x1, 0x15(%r15) movl (%r15), %eax jmp 0x2f164 movq %r14, %rdi callq 0x23fbe jmp 0x2f160 js 0x2f0f9 movl 0x8(%r15), %eax jmp 0x2f160 movq 0x38(%r14), %rax movl $0x7d8, 0x90(%rax) # imm = 0x7D8 movl $0x297, %edi # imm = 0x297 addq 0x38(%r14), %rdi leaq 0x1dbb9(%rip), %rax # 0x4ccd0 movq (%rax), %rsi movl $0x5, %edx callq 0x13230 movq 0x38(%r14), %rax xorl %r15d, %r15d movb %r15b, 0x29c(%rax) movl $0x97, %edi addq 0x38(%r14), %rdi leaq 0x1db9e(%rip), %rax # 0x4cce0 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13230 movq 0x38(%r14), %rax movb %r15b, 0x296(%rax) movl $0x1, %eax movl %eax, (%rbx) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
mysql_stmt_store_result_start: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rax, [rsi+38h] test rax, rax jz short loc_2F0E7 mov rax, [rax+480h] mov r15, [rax+28h] lea rdx, [rbp+var_20] mov [rdx], r14 mov byte ptr [r15+14h], 1 lea rdi, [r15+38h] lea rsi, mysql_stmt_store_result_start_internal call my_context_spawn mov word ptr [r15+14h], 0 test eax, eax jle short loc_2F0F1 mov byte ptr [r15+15h], 1 mov eax, [r15] jmp short loc_2F164 loc_2F0E7: mov rdi, r14 call mysql_stmt_store_result jmp short loc_2F160 loc_2F0F1: js short loc_2F0F9 mov eax, [r15+8] jmp short loc_2F160 loc_2F0F9: mov rax, [r14+38h] mov dword ptr [rax+90h], 7D8h mov edi, 297h add rdi, [r14+38h] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [r14+38h] xor r15d, r15d mov [rax+29Ch], r15b mov edi, 97h add rdi, [r14+38h] lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov rax, [r14+38h] mov [rax+296h], r15b mov eax, 1 loc_2F160: mov [rbx], eax xor eax, eax loc_2F164: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long mysql_stmt_store_result_start(int *a1, long long a2) { long long v2; // rax long long v3; // rax unsigned int *v4; // r15 int v5; // eax int v7; // eax long long v8[4]; // [rsp+0h] [rbp-20h] BYREF v8[0] = v2; v3 = *(_QWORD *)(a2 + 56); if ( v3 ) { v4 = *(unsigned int **)(*(_QWORD *)(v3 + 1152) + 40LL); v8[0] = a2; *((_BYTE *)v4 + 20) = 1; v5 = my_context_spawn(v4 + 14, mysql_stmt_store_result_start_internal, v8); *((_WORD *)v4 + 10) = 0; if ( v5 > 0 ) { *((_BYTE *)v4 + 21) = 1; return *v4; } if ( v5 < 0 ) { *(_DWORD *)(*(_QWORD *)(a2 + 56) + 144LL) = 2008; strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0; strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[8], 511LL); *(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0; v7 = 1; } else { v7 = v4[2]; } } else { v7 = mysql_stmt_store_result(a2); } *a1 = v7; return 0LL; }
mysql_stmt_store_result_start: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI + 0x38] TEST RAX,RAX JZ 0x0012f0e7 MOV RAX,qword ptr [RAX + 0x480] MOV R15,qword ptr [RAX + 0x28] LEA RDX,[RBP + -0x20] MOV qword ptr [RDX],R14 MOV byte ptr [R15 + 0x14],0x1 LEA RDI,[R15 + 0x38] LEA RSI,[0x12f16f] CALL 0x001305f0 MOV word ptr [R15 + 0x14],0x0 TEST EAX,EAX JLE 0x0012f0f1 MOV byte ptr [R15 + 0x15],0x1 MOV EAX,dword ptr [R15] JMP 0x0012f164 LAB_0012f0e7: MOV RDI,R14 CALL 0x00123fbe JMP 0x0012f160 LAB_0012f0f1: JS 0x0012f0f9 MOV EAX,dword ptr [R15 + 0x8] JMP 0x0012f160 LAB_0012f0f9: MOV RAX,qword ptr [R14 + 0x38] MOV dword ptr [RAX + 0x90],0x7d8 MOV EDI,0x297 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x14ccd0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113230 MOV RAX,qword ptr [R14 + 0x38] XOR R15D,R15D MOV byte ptr [RAX + 0x29c],R15B MOV EDI,0x97 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x14cce0] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00113230 MOV RAX,qword ptr [R14 + 0x38] MOV byte ptr [RAX + 0x296],R15B MOV EAX,0x1 LAB_0012f160: MOV dword ptr [RBX],EAX XOR EAX,EAX LAB_0012f164: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int4 mysql_stmt_store_result_start(int4 *param_1,long param_2) { int4 *puVar1; int iVar2; int4 uVar3; if (*(long *)(param_2 + 0x38) == 0) { uVar3 = mysql_stmt_store_result(param_2); } else { puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28); *(int1 *)(puVar1 + 5) = 1; iVar2 = my_context_spawn(puVar1 + 0xe,mysql_stmt_store_result_start_internal); *(int2 *)(puVar1 + 5) = 0; if (0 < iVar2) { *(int1 *)((long)puVar1 + 0x15) = 1; return *puVar1; } if (iVar2 < 0) { *(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7d8; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_0014cd20, 0x1ff); *(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0; uVar3 = 1; } else { uVar3 = puVar1[2]; } } *param_1 = uVar3; return 0; }
32,267
Bfree
eloqsql/strings/dtoa.c
static void Bfree(Bigint *v, Stack_alloc *alloc) { char *gptr= (char*) v; /* generic pointer */ if (gptr < alloc->begin || gptr >= alloc->end) free(gptr); else if (v->k <= Kmax) { /* Maintain free lists only for stack objects: this way we don't have to bother with freeing lists in the end of dtoa; heap should not be used normally anyway. */ v->p.next= alloc->freelist[v->k]; alloc->freelist[v->k]= v; } }
O0
c
Bfree: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx cmpq (%rcx), %rax jb 0x726e3 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x10(%rcx), %rax jb 0x726ee movq -0x18(%rbp), %rdi callq 0x24350 jmp 0x72727 movq -0x8(%rbp), %rax cmpl $0xf, 0x8(%rax) jg 0x72725 movq -0x10(%rbp), %rax movq -0x8(%rbp), %rcx movslq 0x8(%rcx), %rcx movq 0x18(%rax,%rcx,8), %rcx movq -0x8(%rbp), %rax movq %rcx, (%rax) movq -0x8(%rbp), %rdx movq -0x10(%rbp), %rax movq -0x8(%rbp), %rcx movslq 0x8(%rcx), %rcx movq %rdx, 0x18(%rax,%rcx,8) jmp 0x72727 addq $0x20, %rsp popq %rbp retq nopl (%rax)
Bfree: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov rcx, [rbp+var_10] cmp rax, [rcx] jb short loc_726E3 mov rax, [rbp+var_18] mov rcx, [rbp+var_10] cmp rax, [rcx+10h] jb short loc_726EE loc_726E3: mov rdi, [rbp+var_18] call _free jmp short loc_72727 loc_726EE: mov rax, [rbp+var_8] cmp dword ptr [rax+8], 0Fh jg short loc_72725 mov rax, [rbp+var_10] mov rcx, [rbp+var_8] movsxd rcx, dword ptr [rcx+8] mov rcx, [rax+rcx*8+18h] mov rax, [rbp+var_8] mov [rax], rcx mov rdx, [rbp+var_8] mov rax, [rbp+var_10] mov rcx, [rbp+var_8] movsxd rcx, dword ptr [rcx+8] mov [rax+rcx*8+18h], rdx loc_72725: jmp short $+2 loc_72727: add rsp, 20h pop rbp retn
long long Bfree(unsigned long long a1, unsigned long long *a2) { long long result; // rax if ( a1 < *a2 || a1 >= a2[2] ) return free(a1); result = a1; if ( *(int *)(a1 + 8) <= 15 ) { *(_QWORD *)a1 = a2[*(int *)(a1 + 8) + 3]; result = (long long)a2; a2[*(int *)(a1 + 8) + 3] = a1; } return result; }
Bfree: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX] JC 0x001726e3 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x10] JC 0x001726ee LAB_001726e3: MOV RDI,qword ptr [RBP + -0x18] CALL 0x00124350 JMP 0x00172727 LAB_001726ee: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x8],0xf JG 0x00172725 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RCX + 0x8] MOV RCX,qword ptr [RAX + RCX*0x8 + 0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],RCX MOV RDX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RCX + 0x8] MOV qword ptr [RAX + RCX*0x8 + 0x18],RDX LAB_00172725: JMP 0x00172727 LAB_00172727: ADD RSP,0x20 POP RBP RET
void Bfree(ulong *param_1,ulong *param_2) { if ((param_1 < (ulong *)*param_2) || ((ulong *)param_2[2] <= param_1)) { free(param_1); } else if ((int)param_1[1] < 0x10) { *param_1 = param_2[(long)(int)param_1[1] + 3]; param_2[(long)(int)param_1[1] + 3] = (ulong)param_1; } return; }
32,268
init_digest(PFS_global_param const*)
eloqsql/storage/perfschema/pfs_digest.cc
int init_digest(const PFS_global_param *param) { /* Allocate memory for statements_digest_stat_array based on performance_schema_digests_size values */ digest_max= param->m_digest_sizing; digest_lost= 0; PFS_atomic::store_u32(& digest_monotonic_index.m_u32, 1); digest_full= false; if (digest_max == 0) return 0; statements_digest_stat_array= PFS_MALLOC_ARRAY(& builtin_memory_digest, digest_max, sizeof(PFS_statements_digest_stat), PFS_statements_digest_stat, MYF(MY_ZEROFILL)); if (unlikely(statements_digest_stat_array == NULL)) { cleanup_digest(); return 1; } if (pfs_max_digest_length > 0) { /* Size of each digest array. */ size_t digest_memory_size= pfs_max_digest_length * sizeof(unsigned char); statements_digest_token_array= PFS_MALLOC_ARRAY(& builtin_memory_digest_tokens, digest_max, digest_memory_size, unsigned char, MYF(MY_ZEROFILL)); if (unlikely(statements_digest_token_array == NULL)) { cleanup_digest(); return 1; } } for (size_t index= 0; index < digest_max; index++) { statements_digest_stat_array[index].reset_data(statements_digest_token_array + index * pfs_max_digest_length, pfs_max_digest_length); } /* Set record[0] as allocated. */ statements_digest_stat_array[0].m_lock.set_allocated(); /* Set record[0] as allocated. */ statements_digest_stat_array[0].m_lock.set_allocated(); return 0; }
O0
cpp
init_digest(PFS_global_param const*): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x108(%rax), %rax movq %rax, 0x3bb92a(%rip) # 0x40d578 movq $0x0, 0x3bb927(%rip) # 0x40d580 leaq 0x3bb960(%rip), %rdi # 0x40d5c0 movl $0x1, %esi callq 0x36d20 movb $0x0, 0x3bb98f(%rip) # 0x40d600 cmpq $0x0, 0x3bb8ff(%rip) # 0x40d578 jne 0x51c87 movl $0x0, -0x4(%rbp) jmp 0x51db4 movq 0x3bb8ea(%rip), %rsi # 0x40d578 leaq 0x3b6e6b(%rip), %rdi # 0x408b00 movl $0x200, %edx # imm = 0x200 movl $0x20, %ecx callq 0x29b10 movq %rax, 0x3bb8dd(%rip) # 0x40d588 cmpq $0x0, 0x3bb8d5(%rip) # 0x40d588 sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x51cd1 callq 0x51dc0 movl $0x1, -0x4(%rbp) jmp 0x51db4 leaq 0x3b8160(%rip), %rax # 0x409e38 cmpq $0x0, (%rax) jbe 0x51d38 leaq 0x3b8153(%rip), %rax # 0x409e38 movq (%rax), %rax shlq $0x0, %rax movq %rax, -0x18(%rbp) movq 0x3bb881(%rip), %rsi # 0x40d578 movq -0x18(%rbp), %rdx leaq 0x3b6f3e(%rip), %rdi # 0x408c40 movl $0x20, %ecx callq 0x29b10 movq %rax, 0x3bb9bd(%rip) # 0x40d6d0 cmpq $0x0, 0x3bb9b5(%rip) # 0x40d6d0 sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x51d36 callq 0x51dc0 movl $0x1, -0x4(%rbp) jmp 0x51db4 jmp 0x51d38 movq $0x0, -0x20(%rbp) movq -0x20(%rbp), %rax cmpq 0x3bb82d(%rip), %rax # 0x40d578 jae 0x51d95 movq 0x3bb834(%rip), %rdi # 0x40d588 movq -0x20(%rbp), %rax shlq $0x9, %rax addq %rax, %rdi movq 0x3bb96a(%rip), %rsi # 0x40d6d0 movq -0x20(%rbp), %rax leaq 0x3b80c7(%rip), %rcx # 0x409e38 imulq (%rcx), %rax addq %rax, %rsi leaq 0x3b80b9(%rip), %rax # 0x409e38 movq (%rax), %rdx callq 0x51e30 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) jmp 0x51d40 movq 0x3bb7ec(%rip), %rdi # 0x40d588 callq 0x342c0 movq 0x3bb7e0(%rip), %rdi # 0x40d588 callq 0x342c0 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax)
_Z11init_digestPK16PFS_global_param: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax+108h] mov cs:digest_max, rax mov cs:digest_lost, 0 lea rdi, _ZL22digest_monotonic_index; this mov esi, (offset dword_0+1); unsigned int * call _ZN10PFS_atomic9store_u32EPjj; PFS_atomic::store_u32(uint *,uint) mov cs:digest_full, 0 cmp cs:digest_max, 0 jnz short loc_51C87 mov [rbp+var_4], 0 jmp loc_51DB4 loc_51C87: mov rsi, cs:digest_max; unsigned __int64 lea rdi, builtin_memory_digest; PFS_builtin_memory_class * mov edx, 200h; unsigned __int64 mov ecx, 20h ; ' '; unsigned __int64 call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong) mov cs:statements_digest_stat_array, rax cmp cs:statements_digest_stat_array, 0 setz al and al, 1 movzx eax, al cmp eax, 0 jz short loc_51CD1 call _Z14cleanup_digestv; cleanup_digest(void) mov [rbp+var_4], 1 jmp loc_51DB4 loc_51CD1: lea rax, pfs_max_digest_length cmp qword ptr [rax], 0 jbe short loc_51D38 lea rax, pfs_max_digest_length mov rax, [rax] shl rax, 0 mov [rbp+var_18], rax mov rsi, cs:digest_max; unsigned __int64 mov rdx, [rbp+var_18]; unsigned __int64 lea rdi, builtin_memory_digest_tokens; PFS_builtin_memory_class * mov ecx, 20h ; ' '; unsigned __int64 call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong) mov cs:_ZL29statements_digest_token_array, rax; statements_digest_token_array cmp cs:_ZL29statements_digest_token_array, 0; statements_digest_token_array setz al and al, 1 movzx eax, al cmp eax, 0 jz short loc_51D36 call _Z14cleanup_digestv; cleanup_digest(void) mov [rbp+var_4], 1 jmp short loc_51DB4 loc_51D36: jmp short $+2 loc_51D38: mov [rbp+var_20], 0 loc_51D40: mov rax, [rbp+var_20] cmp rax, cs:digest_max jnb short loc_51D95 mov rdi, cs:statements_digest_stat_array mov rax, [rbp+var_20] shl rax, 9 add rdi, rax; this mov rsi, cs:_ZL29statements_digest_token_array; statements_digest_token_array mov rax, [rbp+var_20] lea rcx, pfs_max_digest_length imul rax, [rcx] add rsi, rax; unsigned __int8 * lea rax, pfs_max_digest_length mov rdx, [rax]; unsigned __int64 call _ZN26PFS_statements_digest_stat10reset_dataEPhm; PFS_statements_digest_stat::reset_data(uchar *,ulong) mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax jmp short loc_51D40 loc_51D95: mov rdi, cs:statements_digest_stat_array; this call _ZN8pfs_lock13set_allocatedEv; pfs_lock::set_allocated(void) mov rdi, cs:statements_digest_stat_array; this call _ZN8pfs_lock13set_allocatedEv; pfs_lock::set_allocated(void) mov [rbp+var_4], 0 loc_51DB4: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long init_digest(long long a1) { unsigned long long i; // [rsp+0h] [rbp-20h] digest_max = *(_QWORD *)(a1 + 264); digest_lost = 0LL; PFS_atomic::store_u32((PFS_atomic *)&digest_monotonic_index, (unsigned int *)((char *)&dword_0 + 1)); digest_full = 0; if ( digest_max ) { statements_digest_stat_array = (pfs_lock *)pfs_malloc_array( (PFS_builtin_memory_class *)&builtin_memory_digest, digest_max, 0x200uLL); if ( statements_digest_stat_array && (!pfs_max_digest_length || (statements_digest_token_array = pfs_malloc_array( (PFS_builtin_memory_class *)&builtin_memory_digest_tokens, digest_max, pfs_max_digest_length)) != 0) ) { for ( i = 0LL; i < digest_max; ++i ) PFS_statements_digest_stat::reset_data( (pfs_lock *)((char *)statements_digest_stat_array + 512 * i), (unsigned __int8 *)(pfs_max_digest_length * i + statements_digest_token_array), pfs_max_digest_length); pfs_lock::set_allocated(statements_digest_stat_array); pfs_lock::set_allocated(statements_digest_stat_array); return 0; } else { cleanup_digest(); return 1; } } else { return 0; } }
init_digest: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x108] MOV qword ptr [0x0050d578],RAX MOV qword ptr [0x0050d580],0x0 LEA RDI,[0x50d5c0] MOV ESI,0x1 CALL 0x00136d20 MOV byte ptr [0x0050d600],0x0 CMP qword ptr [0x0050d578],0x0 JNZ 0x00151c87 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00151db4 LAB_00151c87: MOV RSI,qword ptr [0x0050d578] LEA RDI,[0x508b00] MOV EDX,0x200 MOV ECX,0x20 CALL 0x00129b10 MOV qword ptr [0x0050d588],RAX CMP qword ptr [0x0050d588],0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x00151cd1 CALL 0x00151dc0 MOV dword ptr [RBP + -0x4],0x1 JMP 0x00151db4 LAB_00151cd1: LEA RAX,[0x509e38] CMP qword ptr [RAX],0x0 JBE 0x00151d38 LEA RAX,[0x509e38] MOV RAX,qword ptr [RAX] SHL RAX,0x0 MOV qword ptr [RBP + -0x18],RAX MOV RSI,qword ptr [0x0050d578] MOV RDX,qword ptr [RBP + -0x18] LEA RDI,[0x508c40] MOV ECX,0x20 CALL 0x00129b10 MOV qword ptr [0x0050d6d0],RAX CMP qword ptr [0x0050d6d0],0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x00151d36 CALL 0x00151dc0 MOV dword ptr [RBP + -0x4],0x1 JMP 0x00151db4 LAB_00151d36: JMP 0x00151d38 LAB_00151d38: MOV qword ptr [RBP + -0x20],0x0 LAB_00151d40: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [0x0050d578] JNC 0x00151d95 MOV RDI,qword ptr [0x0050d588] MOV RAX,qword ptr [RBP + -0x20] SHL RAX,0x9 ADD RDI,RAX MOV RSI,qword ptr [0x0050d6d0] MOV RAX,qword ptr [RBP + -0x20] LEA RCX,[0x509e38] IMUL RAX,qword ptr [RCX] ADD RSI,RAX LEA RAX,[0x509e38] MOV RDX,qword ptr [RAX] CALL 0x00151e30 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX JMP 0x00151d40 LAB_00151d95: MOV RDI,qword ptr [0x0050d588] CALL 0x001342c0 MOV RDI,qword ptr [0x0050d588] CALL 0x001342c0 MOV dword ptr [RBP + -0x4],0x0 LAB_00151db4: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
/* init_digest(PFS_global_param const*) */ int4 init_digest(PFS_global_param *param_1) { ulong local_28; int4 local_c; digest_max = *(ulong *)(param_1 + 0x108); digest_lost = 0; PFS_atomic::store_u32((uint *)digest_monotonic_index,1); digest_full = 0; if (digest_max == 0) { local_c = 0; } else { statements_digest_stat_array = (pfs_lock *) pfs_malloc_array((PFS_builtin_memory_class *)builtin_memory_digest,digest_max,0x200,0x20); if (statements_digest_stat_array == (pfs_lock *)0x0) { cleanup_digest(); local_c = 1; } else if ((pfs_max_digest_length == 0) || (statements_digest_token_array = pfs_malloc_array((PFS_builtin_memory_class *)builtin_memory_digest_tokens, digest_max,pfs_max_digest_length,0x20), statements_digest_token_array != 0)) { for (local_28 = 0; local_28 < digest_max; local_28 = local_28 + 1) { PFS_statements_digest_stat::reset_data ((PFS_statements_digest_stat *)(statements_digest_stat_array + local_28 * 0x200), (uchar *)(statements_digest_token_array + local_28 * pfs_max_digest_length), pfs_max_digest_length); } pfs_lock::set_allocated(statements_digest_stat_array); pfs_lock::set_allocated(statements_digest_stat_array); local_c = 0; } else { cleanup_digest(); local_c = 1; } } return local_c; }
32,269
JS_ToInt64Free
bluesky950520[P]quickjs/quickjs.c
static int JS_ToInt64Free(JSContext *ctx, int64_t *pres, JSValue val) { uint32_t tag; int64_t ret; redo: tag = JS_VALUE_GET_NORM_TAG(val); switch(tag) { case JS_TAG_INT: case JS_TAG_BOOL: case JS_TAG_NULL: case JS_TAG_UNDEFINED: ret = JS_VALUE_GET_INT(val); break; case JS_TAG_FLOAT64: { JSFloat64Union u; double d; int e; d = JS_VALUE_GET_FLOAT64(val); u.d = d; /* we avoid doing fmod(x, 2^64) */ e = (u.u64 >> 52) & 0x7ff; if (likely(e <= (1023 + 62))) { /* fast case */ ret = (int64_t)d; } else if (e <= (1023 + 62 + 53)) { uint64_t v; /* remainder modulo 2^64 */ v = (u.u64 & (((uint64_t)1 << 52) - 1)) | ((uint64_t)1 << 52); ret = v << ((e - 1023) - 52); /* take the sign into account */ if (u.u64 >> 63) if (ret != INT64_MIN) ret = -ret; } else { ret = 0; /* also handles NaN and +inf */ } } break; default: val = JS_ToNumberFree(ctx, val); if (JS_IsException(val)) { *pres = 0; return -1; } goto redo; } *pres = ret; return 0; }
O0
c
JS_ToInt64Free: subq $0x78, %rsp movq %rdx, 0x60(%rsp) movq %rcx, 0x68(%rsp) movq %rdi, 0x58(%rsp) movq %rsi, 0x50(%rsp) movl 0x68(%rsp), %eax movl %eax, 0x4c(%rsp) movl 0x4c(%rsp), %eax movl %eax, 0xc(%rsp) subl $0x4, %eax jb 0x38c9d jmp 0x38c8f movl 0xc(%rsp), %eax subl $0x7, %eax je 0x38cac jmp 0x38d88 movslq 0x60(%rsp), %rax movq %rax, 0x40(%rsp) jmp 0x38de9 movsd 0x60(%rsp), %xmm0 movsd %xmm0, 0x30(%rsp) movsd 0x30(%rsp), %xmm0 movsd %xmm0, 0x38(%rsp) movq 0x38(%rsp), %rax shrq $0x34, %rax andq $0x7ff, %rax # imm = 0x7FF movl %eax, 0x2c(%rsp) cmpl $0x43d, 0x2c(%rsp) # imm = 0x43D setle %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x38d04 cvttsd2si 0x30(%rsp), %rax movq %rax, 0x40(%rsp) jmp 0x38d86 cmpl $0x472, 0x2c(%rsp) # imm = 0x472 jg 0x38d7b movabsq $0xfffffffffffff, %rax # imm = 0xFFFFFFFFFFFFF andq 0x38(%rsp), %rax movabsq $0x10000000000000, %rcx # imm = 0x10000000000000 orq %rcx, %rax movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rax movl 0x2c(%rsp), %ecx subl $0x3ff, %ecx # imm = 0x3FF subl $0x34, %ecx movl %ecx, %ecx shlq %cl, %rax movq %rax, 0x40(%rsp) movq 0x38(%rsp), %rax shrq $0x3f, %rax cmpq $0x0, %rax je 0x38d79 movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 cmpq %rax, 0x40(%rsp) je 0x38d77 xorl %eax, %eax subq 0x40(%rsp), %rax movq %rax, 0x40(%rsp) jmp 0x38d79 jmp 0x38d84 movq $0x0, 0x40(%rsp) jmp 0x38d86 jmp 0x38de9 movq 0x58(%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx callq 0x50ab0 movq %rax, 0x10(%rsp) movq %rdx, 0x18(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x60(%rsp), %rdi movq 0x68(%rsp), %rsi callq 0x23cc0 cmpl $0x0, %eax je 0x38de4 movq 0x50(%rsp), %rax movq $0x0, (%rax) movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF jmp 0x38dfe jmp 0x38c78 movq 0x40(%rsp), %rcx movq 0x50(%rsp), %rax movq %rcx, (%rax) movl $0x0, 0x74(%rsp) movl 0x74(%rsp), %eax addq $0x78, %rsp retq nopw (%rax,%rax)
JS_ToInt64Free: sub rsp, 78h mov [rsp+78h+var_18], rdx mov [rsp+78h+var_10], rcx mov [rsp+78h+var_20], rdi mov [rsp+78h+var_28], rsi loc_38C78: mov eax, dword ptr [rsp+78h+var_10] mov [rsp+78h+var_2C], eax mov eax, [rsp+78h+var_2C] mov [rsp+78h+var_6C], eax sub eax, 4 jb short loc_38C9D jmp short $+2 loc_38C8F: mov eax, [rsp+78h+var_6C] sub eax, 7 jz short loc_38CAC jmp loc_38D88 loc_38C9D: movsxd rax, dword ptr [rsp+78h+var_18] mov [rsp+78h+var_38], rax jmp loc_38DE9 loc_38CAC: movsd xmm0, [rsp+78h+var_18] movsd [rsp+78h+var_48], xmm0 movsd xmm0, [rsp+78h+var_48] movsd [rsp+78h+var_40], xmm0 mov rax, [rsp+78h+var_40] shr rax, 34h and rax, 7FFh mov [rsp+78h+var_4C], eax cmp [rsp+78h+var_4C], 43Dh setle al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_38D04 cvttsd2si rax, [rsp+78h+var_48] mov [rsp+78h+var_38], rax jmp loc_38D86 loc_38D04: cmp [rsp+78h+var_4C], 472h jg short loc_38D7B mov rax, 0FFFFFFFFFFFFFh and rax, [rsp+78h+var_40] mov rcx, 10000000000000h or rax, rcx mov [rsp+78h+var_58], rax mov rax, [rsp+78h+var_58] mov ecx, [rsp+78h+var_4C] sub ecx, 3FFh sub ecx, 34h ; '4' mov ecx, ecx shl rax, cl mov [rsp+78h+var_38], rax mov rax, [rsp+78h+var_40] shr rax, 3Fh cmp rax, 0 jz short loc_38D79 mov rax, 8000000000000000h cmp [rsp+78h+var_38], rax jz short loc_38D77 xor eax, eax sub rax, [rsp+78h+var_38] mov [rsp+78h+var_38], rax loc_38D77: jmp short $+2 loc_38D79: jmp short loc_38D84 loc_38D7B: mov [rsp+78h+var_38], 0 loc_38D84: jmp short $+2 loc_38D86: jmp short loc_38DE9 loc_38D88: mov rdi, [rsp+78h+var_20] mov rsi, [rsp+78h+var_18] mov rdx, [rsp+78h+var_10] call JS_ToNumberFree mov [rsp+78h+var_68], rax mov [rsp+78h+var_60], rdx mov rax, [rsp+78h+var_68] mov [rsp+78h+var_18], rax mov rax, [rsp+78h+var_60] mov [rsp+78h+var_10], rax mov rdi, [rsp+78h+var_18] mov rsi, [rsp+78h+var_10] call JS_IsException_1 cmp eax, 0 jz short loc_38DE4 mov rax, [rsp+78h+var_28] mov qword ptr [rax], 0 mov [rsp+78h+var_4], 0FFFFFFFFh jmp short loc_38DFE loc_38DE4: jmp loc_38C78 loc_38DE9: mov rcx, [rsp+78h+var_38] mov rax, [rsp+78h+var_28] mov [rax], rcx mov [rsp+78h+var_4], 0 loc_38DFE: mov eax, [rsp+78h+var_4] add rsp, 78h retn
long long JS_ToInt64Free(long long a1, long long *a2, unsigned long long a3, long long a4) { long long v4; // rdx long long v7; // [rsp+40h] [rbp-38h] while ( 1 ) { if ( (unsigned int)a4 < 4 ) { v7 = (int)a3; goto LABEL_16; } if ( (_DWORD)a4 == 7 ) break; *(double *)&a3 = COERCE_DOUBLE(JS_ToNumberFree(a1, a3, a4)); a4 = v4; if ( JS_IsException_1(a3, v4) ) { *a2 = 0LL; return (unsigned int)-1; } } if ( ((a3 >> 52) & 0x7FF) > 0x43D ) { if ( ((a3 >> 52) & 0x7FF) > 0x472 ) { v7 = 0LL; } else { v7 = (a3 & 0xFFFFFFFFFFFFFLL | 0x10000000000000LL) << ((unsigned __int8)(a3 >> 52) - 51); if ( (a3 & 0x8000000000000000LL) != 0LL && v7 != 0x8000000000000000LL ) v7 = -v7; } } else { v7 = (unsigned int)(int)*(double *)&a3; } LABEL_16: *a2 = v7; return 0; }
JS_ToInt64Free: SUB RSP,0x78 MOV qword ptr [RSP + 0x60],RDX MOV qword ptr [RSP + 0x68],RCX MOV qword ptr [RSP + 0x58],RDI MOV qword ptr [RSP + 0x50],RSI LAB_00138c78: MOV EAX,dword ptr [RSP + 0x68] MOV dword ptr [RSP + 0x4c],EAX MOV EAX,dword ptr [RSP + 0x4c] MOV dword ptr [RSP + 0xc],EAX SUB EAX,0x4 JC 0x00138c9d JMP 0x00138c8f LAB_00138c8f: MOV EAX,dword ptr [RSP + 0xc] SUB EAX,0x7 JZ 0x00138cac JMP 0x00138d88 LAB_00138c9d: MOVSXD RAX,dword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x40],RAX JMP 0x00138de9 LAB_00138cac: MOVSD XMM0,qword ptr [RSP + 0x60] MOVSD qword ptr [RSP + 0x30],XMM0 MOVSD XMM0,qword ptr [RSP + 0x30] MOVSD qword ptr [RSP + 0x38],XMM0 MOV RAX,qword ptr [RSP + 0x38] SHR RAX,0x34 AND RAX,0x7ff MOV dword ptr [RSP + 0x2c],EAX CMP dword ptr [RSP + 0x2c],0x43d SETLE AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00138d04 CVTTSD2SI RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x40],RAX JMP 0x00138d86 LAB_00138d04: CMP dword ptr [RSP + 0x2c],0x472 JG 0x00138d7b MOV RAX,0xfffffffffffff AND RAX,qword ptr [RSP + 0x38] MOV RCX,0x10000000000000 OR RAX,RCX MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RSP + 0x2c] SUB ECX,0x3ff SUB ECX,0x34 MOV ECX,ECX SHL RAX,CL MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x38] SHR RAX,0x3f CMP RAX,0x0 JZ 0x00138d79 MOV RAX,-0x8000000000000000 CMP qword ptr [RSP + 0x40],RAX JZ 0x00138d77 XOR EAX,EAX SUB RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x40],RAX LAB_00138d77: JMP 0x00138d79 LAB_00138d79: JMP 0x00138d84 LAB_00138d7b: MOV qword ptr [RSP + 0x40],0x0 LAB_00138d84: JMP 0x00138d86 LAB_00138d86: JMP 0x00138de9 LAB_00138d88: MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x68] CALL 0x00150ab0 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x18],RDX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x68],RAX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x68] CALL 0x00123cc0 CMP EAX,0x0 JZ 0x00138de4 MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RAX],0x0 MOV dword ptr [RSP + 0x74],0xffffffff JMP 0x00138dfe LAB_00138de4: JMP 0x00138c78 LAB_00138de9: MOV RCX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RAX],RCX MOV dword ptr [RSP + 0x74],0x0 LAB_00138dfe: MOV EAX,dword ptr [RSP + 0x74] ADD RSP,0x78 RET
int4 JS_ToInt64Free(int8 param_1,long *param_2,int8 param_3,int8 param_4) { int8 uVar1; uint uVar2; int iVar3; int1 auVar4 [16]; long local_38; double local_18; int8 local_10; auVar4._8_8_ = param_4; auVar4._0_8_ = param_3; do { local_10 = auVar4._8_8_; uVar1 = local_10; local_18 = auVar4._0_8_; local_10._0_4_ = auVar4._8_4_; if ((uint)local_10 < 4) { local_18._0_4_ = auVar4._0_4_; local_38 = (long)local_18._0_4_; LAB_00138de9: *param_2 = local_38; return 0; } if ((uint)local_10 == 7) { uVar2 = auVar4._4_4_ >> 0x14 & 0x7ff; if (uVar2 < 0x43e) { local_38 = (long)local_18; } else if (uVar2 < 0x473) { local_38 = ((ulong)local_18 & 0xfffffffffffff | 0x10000000000000) << ((char)uVar2 - 0x33U & 0x3f); if (((long)local_18 < 0) && (local_38 != -0x8000000000000000)) { local_38 = -local_38; } } else { local_38 = 0; } goto LAB_00138de9; } auVar4 = JS_ToNumberFree(param_1,local_18,uVar1); iVar3 = JS_IsException(auVar4._0_8_,auVar4._8_8_); if (iVar3 != 0) { *param_2 = 0; return 0xffffffff; } } while( true ); }
32,270
JS_ToInt64Free
bluesky950520[P]quickjs/quickjs.c
static int JS_ToInt64Free(JSContext *ctx, int64_t *pres, JSValue val) { uint32_t tag; int64_t ret; redo: tag = JS_VALUE_GET_NORM_TAG(val); switch(tag) { case JS_TAG_INT: case JS_TAG_BOOL: case JS_TAG_NULL: case JS_TAG_UNDEFINED: ret = JS_VALUE_GET_INT(val); break; case JS_TAG_FLOAT64: { JSFloat64Union u; double d; int e; d = JS_VALUE_GET_FLOAT64(val); u.d = d; /* we avoid doing fmod(x, 2^64) */ e = (u.u64 >> 52) & 0x7ff; if (likely(e <= (1023 + 62))) { /* fast case */ ret = (int64_t)d; } else if (e <= (1023 + 62 + 53)) { uint64_t v; /* remainder modulo 2^64 */ v = (u.u64 & (((uint64_t)1 << 52) - 1)) | ((uint64_t)1 << 52); ret = v << ((e - 1023) - 52); /* take the sign into account */ if (u.u64 >> 63) if (ret != INT64_MIN) ret = -ret; } else { ret = 0; /* also handles NaN and +inf */ } } break; default: val = JS_ToNumberFree(ctx, val); if (JS_IsException(val)) { *pres = 0; return -1; } goto redo; } *pres = ret; return 0; }
O1
c
JS_ToInt64Free: pushq %r15 pushq %r14 pushq %rbx movq %rdx, %rax movq %rsi, %rbx movq %rdi, %r14 xorl %r15d, %r15d cmpl $0x4, %ecx jb 0x27901 cmpl $0x7, %ecx je 0x27911 movq %r14, %rdi movq %rax, %rsi movq %rcx, %rdx xorl %ecx, %ecx callq 0x42b20 movq %rdx, %rcx cmpl $0x6, %ecx jne 0x278d8 movl $0xffffffff, %edx # imm = 0xFFFFFFFF jmp 0x27906 movslq %eax, %r15 xorl %edx, %edx movq %r15, (%rbx) movl %edx, %eax popq %rbx popq %r14 popq %r15 retq movq %rax, %rcx shrq $0x34, %rcx andl $0x7ff, %ecx # imm = 0x7FF cmpl $0x43d, %ecx # imm = 0x43D ja 0x27932 movq %rax, %xmm0 cvttsd2si %xmm0, %r15 jmp 0x27904 xorl %edx, %edx cmpl $0x472, %ecx # imm = 0x472 ja 0x2796b movabsq $0xfffffffffffff, %rsi # imm = 0xFFFFFFFFFFFFF movq %rax, %rdi andq %rsi, %rdi addq %rdi, %rsi incq %rsi addb $-0x33, %cl shlq %cl, %rsi movq %rsi, %r15 negq %r15 cmovoq %rsi, %r15 testq %rax, %rax cmovnsq %rsi, %r15 jmp 0x27906 xorl %r15d, %r15d jmp 0x27906
JS_ToInt64Free: push r15 push r14 push rbx mov rax, rdx mov rbx, rsi mov r14, rdi xor r15d, r15d loc_278D8: cmp ecx, 4 jb short loc_27901 cmp ecx, 7 jz short loc_27911 mov rdi, r14 mov rsi, rax mov rdx, rcx xor ecx, ecx call JS_ToNumberHintFree mov rcx, rdx cmp ecx, 6 jnz short loc_278D8 mov edx, 0FFFFFFFFh jmp short loc_27906 loc_27901: movsxd r15, eax loc_27904: xor edx, edx loc_27906: mov [rbx], r15 mov eax, edx pop rbx pop r14 pop r15 retn loc_27911: mov rcx, rax shr rcx, 34h and ecx, 7FFh cmp ecx, 43Dh ja short loc_27932 movq xmm0, rax cvttsd2si r15, xmm0 jmp short loc_27904 loc_27932: xor edx, edx cmp ecx, 472h ja short loc_2796B mov rsi, 0FFFFFFFFFFFFFh mov rdi, rax and rdi, rsi add rsi, rdi inc rsi add cl, 0CDh shl rsi, cl mov r15, rsi neg r15 cmovo r15, rsi test rax, rax cmovns r15, rsi jmp short loc_27906 loc_2796B: xor r15d, r15d jmp short loc_27906
long long JS_ToInt64Free(long long a1, long long *a2, long long a3, long long a4) { long long v5; // r15 long long v6; // rdx unsigned int v7; // edx long long v9; // rcx char v10; // cl v5 = 0LL; while ( 1 ) { if ( (unsigned int)a4 < 4 ) { v5 = (int)a3; LABEL_7: v7 = 0; goto LABEL_8; } if ( (_DWORD)a4 == 7 ) break; *(double *)&a3 = COERCE_DOUBLE(JS_ToNumberHintFree(a1, a3, a4, 0LL)); a4 = v6; if ( (_DWORD)v6 == 6 ) { v7 = -1; goto LABEL_8; } } v9 = ((unsigned long long)a3 >> 52) & 0x7FF; if ( (unsigned int)v9 <= 0x43D ) { v5 = (unsigned int)(int)*(double *)&a3; goto LABEL_7; } v7 = 0; if ( (unsigned int)v9 > 0x472 ) { v5 = 0LL; } else { v10 = ((unsigned long long)a3 >> 52) - 51; v5 = -(((a3 & 0xFFFFFFFFFFFFFLL) + 0x10000000000000LL) << v10); if ( __OFSUB__(v5, 1LL) ) v5 = ((a3 & 0xFFFFFFFFFFFFFLL) + 0x10000000000000LL) << v10; if ( a3 >= 0 ) v5 = ((a3 & 0xFFFFFFFFFFFFFLL) + 0x10000000000000LL) << v10; } LABEL_8: *a2 = v5; return v7; }
JS_ToInt64Free: PUSH R15 PUSH R14 PUSH RBX MOV RAX,RDX MOV RBX,RSI MOV R14,RDI XOR R15D,R15D LAB_001278d8: CMP ECX,0x4 JC 0x00127901 CMP ECX,0x7 JZ 0x00127911 MOV RDI,R14 MOV RSI,RAX MOV RDX,RCX XOR ECX,ECX CALL 0x00142b20 MOV RCX,RDX CMP ECX,0x6 JNZ 0x001278d8 MOV EDX,0xffffffff JMP 0x00127906 LAB_00127901: MOVSXD R15,EAX LAB_00127904: XOR EDX,EDX LAB_00127906: MOV qword ptr [RBX],R15 MOV EAX,EDX POP RBX POP R14 POP R15 RET LAB_00127911: MOV RCX,RAX SHR RCX,0x34 AND ECX,0x7ff CMP ECX,0x43d JA 0x00127932 MOVQ XMM0,RAX CVTTSD2SI R15,XMM0 JMP 0x00127904 LAB_00127932: XOR EDX,EDX CMP ECX,0x472 JA 0x0012796b MOV RSI,0xfffffffffffff MOV RDI,RAX AND RDI,RSI ADD RSI,RDI INC RSI ADD CL,0xcd SHL RSI,CL MOV R15,RSI NEG R15 CMOVO R15,RSI TEST RAX,RAX CMOVNS R15,RSI JMP 0x00127906 LAB_0012796b: XOR R15D,R15D JMP 0x00127906
/* WARNING: Removing unreachable block (ram,0x0012795e) */ int8 JS_ToInt64Free(int8 param_1,long *param_2,int8 param_3,int8 param_4) { double dVar1; uint uVar2; int8 uVar3; long lVar4; long lVar5; int1 auVar6 [16]; auVar6._8_8_ = param_4; auVar6._0_8_ = param_3; do { dVar1 = auVar6._0_8_; if (auVar6._8_4_ < 4) { lVar5 = (long)auVar6._0_4_; LAB_00127904: uVar3 = 0; goto LAB_00127906; } if (auVar6._8_4_ == 7) { uVar2 = auVar6._4_4_ >> 0x14 & 0x7ff; if (uVar2 < 0x43e) { lVar5 = (long)dVar1; goto LAB_00127904; } uVar3 = 0; if (uVar2 < 0x473) { lVar4 = ((ulong)dVar1 & 0xfffffffffffff) + 0x10000000000000 << ((char)uVar2 - 0x33U & 0x3f); lVar5 = -lVar4; if (-1 < (long)dVar1) { lVar5 = lVar4; } } else { lVar5 = 0; } goto LAB_00127906; } auVar6 = JS_ToNumberHintFree(param_1,dVar1,auVar6._8_8_,0); } while (auVar6._8_4_ != 6); uVar3 = 0xffffffff; lVar5 = 0; LAB_00127906: *param_2 = lVar5; return uVar3; }
32,271
JS_ToInt64Free
bluesky950520[P]quickjs/quickjs.c
static int JS_ToInt64Free(JSContext *ctx, int64_t *pres, JSValue val) { uint32_t tag; int64_t ret; redo: tag = JS_VALUE_GET_NORM_TAG(val); switch(tag) { case JS_TAG_INT: case JS_TAG_BOOL: case JS_TAG_NULL: case JS_TAG_UNDEFINED: ret = JS_VALUE_GET_INT(val); break; case JS_TAG_FLOAT64: { JSFloat64Union u; double d; int e; d = JS_VALUE_GET_FLOAT64(val); u.d = d; /* we avoid doing fmod(x, 2^64) */ e = (u.u64 >> 52) & 0x7ff; if (likely(e <= (1023 + 62))) { /* fast case */ ret = (int64_t)d; } else if (e <= (1023 + 62 + 53)) { uint64_t v; /* remainder modulo 2^64 */ v = (u.u64 & (((uint64_t)1 << 52) - 1)) | ((uint64_t)1 << 52); ret = v << ((e - 1023) - 52); /* take the sign into account */ if (u.u64 >> 63) if (ret != INT64_MIN) ret = -ret; } else { ret = 0; /* also handles NaN and +inf */ } } break; default: val = JS_ToNumberFree(ctx, val); if (JS_IsException(val)) { *pres = 0; return -1; } goto redo; } *pres = ret; return 0; }
O2
c
JS_ToInt64Free: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rax movq %rsi, %rbx movq %rdi, %r15 pushq $-0x1 popq %r14 xorl %r12d, %r12d cmpl $0x4, %ecx jb 0x21541 cmpl $0x7, %ecx je 0x21559 movq %r15, %rdi movq %rax, %rsi movq %rcx, %rdx callq 0x2e216 movq %rdx, %rcx cmpl $0x6, %ecx jne 0x2151f jmp 0x21547 movslq %eax, %r12 xorl %r14d, %r14d movq %r12, (%rbx) movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rcx shrq $0x34, %rcx andl $0x7ff, %ecx # imm = 0x7FF cmpl $0x43d, %ecx # imm = 0x43D ja 0x2157a movq %rax, %xmm0 cvttsd2si %xmm0, %r12 jmp 0x21544 xorl %r14d, %r14d cmpl $0x472, %ecx # imm = 0x472 ja 0x215b4 movabsq $0xfffffffffffff, %rdx # imm = 0xFFFFFFFFFFFFF movq %rax, %rsi andq %rdx, %rsi addq %rsi, %rdx incq %rdx addb $-0x33, %cl shlq %cl, %rdx movq %rdx, %r12 negq %r12 cmovoq %rdx, %r12 testq %rax, %rax cmovnsq %rdx, %r12 jmp 0x21547 xorl %r12d, %r12d jmp 0x21547
JS_ToInt64Free: push r15 push r14 push r12 push rbx push rax mov rax, rdx mov rbx, rsi mov r15, rdi push 0FFFFFFFFFFFFFFFFh pop r14 xor r12d, r12d loc_2151F: cmp ecx, 4 jb short loc_21541 cmp ecx, 7 jz short loc_21559 mov rdi, r15 mov rsi, rax mov rdx, rcx call JS_ToNumberFree mov rcx, rdx cmp ecx, 6 jnz short loc_2151F jmp short loc_21547 loc_21541: movsxd r12, eax loc_21544: xor r14d, r14d loc_21547: mov [rbx], r12 mov eax, r14d add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn loc_21559: mov rcx, rax shr rcx, 34h and ecx, 7FFh cmp ecx, 43Dh ja short loc_2157A movq xmm0, rax cvttsd2si r12, xmm0 jmp short loc_21544 loc_2157A: xor r14d, r14d cmp ecx, 472h ja short loc_215B4 mov rdx, 0FFFFFFFFFFFFFh mov rsi, rax and rsi, rdx add rdx, rsi inc rdx add cl, 0CDh shl rdx, cl mov r12, rdx neg r12 cmovo r12, rdx test rax, rax cmovns r12, rdx jmp short loc_21547 loc_215B4: xor r12d, r12d jmp short loc_21547
long long JS_ToInt64Free(long long a1, long long *a2, long long a3, long long a4) { unsigned int v5; // r14d long long v6; // r12 long long v7; // rdx long long v9; // rcx char v10; // cl v5 = -1; v6 = 0LL; while ( 1 ) { if ( (unsigned int)a4 < 4 ) { v6 = (int)a3; LABEL_7: v5 = 0; goto LABEL_8; } if ( (_DWORD)a4 == 7 ) break; *(double *)&a3 = COERCE_DOUBLE(JS_ToNumberFree(a1, a3, a4)); a4 = v7; if ( (_DWORD)v7 == 6 ) goto LABEL_8; } v9 = ((unsigned long long)a3 >> 52) & 0x7FF; if ( (unsigned int)v9 <= 0x43D ) { v6 = (unsigned int)(int)*(double *)&a3; goto LABEL_7; } v5 = 0; if ( (unsigned int)v9 > 0x472 ) { v6 = 0LL; } else { v10 = ((unsigned long long)a3 >> 52) - 51; v6 = -(((a3 & 0xFFFFFFFFFFFFFLL) + 0x10000000000000LL) << v10); if ( __OFSUB__(v6, 1LL) ) v6 = ((a3 & 0xFFFFFFFFFFFFFLL) + 0x10000000000000LL) << v10; if ( a3 >= 0 ) v6 = ((a3 & 0xFFFFFFFFFFFFFLL) + 0x10000000000000LL) << v10; } LABEL_8: *a2 = v6; return v5; }
JS_ToInt64Free: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RAX,RDX MOV RBX,RSI MOV R15,RDI PUSH -0x1 POP R14 XOR R12D,R12D LAB_0012151f: CMP ECX,0x4 JC 0x00121541 CMP ECX,0x7 JZ 0x00121559 MOV RDI,R15 MOV RSI,RAX MOV RDX,RCX CALL 0x0012e216 MOV RCX,RDX CMP ECX,0x6 JNZ 0x0012151f JMP 0x00121547 LAB_00121541: MOVSXD R12,EAX LAB_00121544: XOR R14D,R14D LAB_00121547: MOV qword ptr [RBX],R12 MOV EAX,R14D ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET LAB_00121559: MOV RCX,RAX SHR RCX,0x34 AND ECX,0x7ff CMP ECX,0x43d JA 0x0012157a MOVQ XMM0,RAX CVTTSD2SI R12,XMM0 JMP 0x00121544 LAB_0012157a: XOR R14D,R14D CMP ECX,0x472 JA 0x001215b4 MOV RDX,0xfffffffffffff MOV RSI,RAX AND RSI,RDX ADD RDX,RSI INC RDX ADD CL,0xcd SHL RDX,CL MOV R12,RDX NEG R12 CMOVO R12,RDX TEST RAX,RAX CMOVNS R12,RDX JMP 0x00121547 LAB_001215b4: XOR R12D,R12D JMP 0x00121547
/* WARNING: Removing unreachable block (ram,0x001215a7) */ int4 JS_ToInt64Free(int8 param_1,long *param_2,int8 param_3,int8 param_4) { double dVar1; uint uVar2; long lVar3; long lVar4; int4 uVar5; int1 auVar6 [16]; auVar6._8_8_ = param_4; auVar6._0_8_ = param_3; uVar5 = 0xffffffff; lVar4 = 0; while( true ) { dVar1 = auVar6._0_8_; if (auVar6._8_4_ < 4) break; if (auVar6._8_4_ == 7) { uVar2 = auVar6._4_4_ >> 0x14 & 0x7ff; if (uVar2 < 0x43e) { lVar4 = (long)dVar1; goto LAB_00121544; } uVar5 = 0; if (uVar2 < 0x473) { lVar3 = ((ulong)dVar1 & 0xfffffffffffff) + 0x10000000000000 << ((char)uVar2 - 0x33U & 0x3f); lVar4 = -lVar3; if (-1 < (long)dVar1) { lVar4 = lVar3; } } else { lVar4 = 0; } goto LAB_00121547; } auVar6 = JS_ToNumberFree(param_1,dVar1,auVar6._8_8_); if (auVar6._8_4_ == 6) goto LAB_00121547; } lVar4 = (long)auVar6._0_4_; LAB_00121544: uVar5 = 0; LAB_00121547: *param_2 = lVar4; return uVar5; }
32,272
nglog::GetExistingTempDirectories(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
ng-log[P]ng-log/src/logging.cc
NGLOG_NO_EXPORT void GetExistingTempDirectories(vector<string>& list) { GetTempDirectories(list); auto i_dir = list.begin(); while (i_dir != list.end()) { // zero arg to access means test for existence; no constant // defined on windows if (access(i_dir->c_str(), 0)) { i_dir = list.erase(i_dir); } else { ++i_dir; } } }
O2
cpp
nglog::GetExistingTempDirectories(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0x18eec movq (%rbx), %r14 cmpq 0x8(%rbx), %r14 je 0x19033 movq (%r14), %rdi xorl %esi, %esi callq 0x15430 testl %eax, %eax je 0x1902d movq %rbx, %rdi movq %r14, %rsi callq 0x1c162 movq %rax, %r14 jmp 0x19009 addq $0x20, %r14 jmp 0x19009 addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN5nglog26GetExistingTempDirectoriesERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE: push r14 push rbx push rax mov rbx, rdi call _ZN5nglogL18GetTempDirectoriesERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE; nglog::GetTempDirectories(std::vector<std::string> &) mov r14, [rbx] loc_19009: cmp r14, [rbx+8] jz short loc_19033 mov rdi, [r14] xor esi, esi call _access test eax, eax jz short loc_1902D mov rdi, rbx mov rsi, r14 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS5_S7_EE; std::vector<std::string>::erase(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>) mov r14, rax jmp short loc_19009 loc_1902D: add r14, 20h ; ' ' jmp short loc_19009 loc_19033: add rsp, 8 pop rbx pop r14 retn
void nglog::GetExistingTempDirectories(_QWORD *a1) { _QWORD *v1; // r14 nglog::GetTempDirectories((long long)a1); v1 = (_QWORD *)*a1; while ( v1 != (_QWORD *)a1[1] ) { if ( (unsigned int)access(*v1, 0LL) ) v1 = (_QWORD *)std::vector<std::string>::erase(a1, v1); else v1 += 4; } }
GetExistingTempDirectories: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x00118eec MOV R14,qword ptr [RBX] LAB_00119009: CMP R14,qword ptr [RBX + 0x8] JZ 0x00119033 MOV RDI,qword ptr [R14] XOR ESI,ESI CALL 0x00115430 TEST EAX,EAX JZ 0x0011902d MOV RDI,RBX MOV RSI,R14 CALL 0x0011c162 MOV R14,RAX JMP 0x00119009 LAB_0011902d: ADD R14,0x20 JMP 0x00119009 LAB_00119033: ADD RSP,0x8 POP RBX POP R14 RET
/* nglog::GetExistingTempDirectories(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >&) */ void nglog::GetExistingTempDirectories(vector *param_1) { int iVar1; int8 *puVar2; GetTempDirectories(param_1); puVar2 = *(int8 **)param_1; while (puVar2 != *(int8 **)(param_1 + 8)) { iVar1 = access((char *)*puVar2,0); if (iVar1 == 0) { puVar2 = puVar2 + 4; } else { puVar2 = (int8 *) std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::erase (param_1); } } return; }
32,273
nglog::GetExistingTempDirectories(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
ng-log[P]ng-log/src/logging.cc
NGLOG_NO_EXPORT void GetExistingTempDirectories(vector<string>& list) { GetTempDirectories(list); auto i_dir = list.begin(); while (i_dir != list.end()) { // zero arg to access means test for existence; no constant // defined on windows if (access(i_dir->c_str(), 0)) { i_dir = list.erase(i_dir); } else { ++i_dir; } } }
O3
cpp
nglog::GetExistingTempDirectories(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0x17019 movq (%rbx), %r14 cmpq 0x8(%rbx), %r14 je 0x171a4 movq (%r14), %rdi xorl %esi, %esi callq 0x12030 testl %eax, %eax je 0x1719e movq %rbx, %rdi movq %r14, %rsi callq 0x114f0 movq %rax, %r14 jmp 0x1717a addq $0x20, %r14 jmp 0x1717a addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN5nglog26GetExistingTempDirectoriesERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE: push r14 push rbx push rax mov rbx, rdi call _ZN5nglogL18GetTempDirectoriesERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE; nglog::GetTempDirectories(std::vector<std::string> &) mov r14, [rbx] loc_1717A: cmp r14, [rbx+8] jz short loc_171A4 mov rdi, [r14] xor esi, esi call _access test eax, eax jz short loc_1719E mov rdi, rbx mov rsi, r14 call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPS5_S7_EE; std::vector<std::string>::_M_erase(__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>) mov r14, rax jmp short loc_1717A loc_1719E: add r14, 20h ; ' ' jmp short loc_1717A loc_171A4: add rsp, 8 pop rbx pop r14 retn
char nglog::GetExistingTempDirectories(_QWORD *a1) { long long v1; // rax _QWORD *v2; // r14 LOBYTE(v1) = nglog::GetTempDirectories(a1); v2 = (_QWORD *)*a1; while ( v2 != (_QWORD *)a1[1] ) { LODWORD(v1) = access(*v2, 0LL); if ( (_DWORD)v1 ) { v1 = std::vector<std::string>::_M_erase(a1, v2); v2 = (_QWORD *)v1; } else { v2 += 4; } } return v1; }
GetExistingTempDirectories: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x00117019 MOV R14,qword ptr [RBX] LAB_0011717a: CMP R14,qword ptr [RBX + 0x8] JZ 0x001171a4 MOV RDI,qword ptr [R14] XOR ESI,ESI CALL 0x00112030 TEST EAX,EAX JZ 0x0011719e MOV RDI,RBX MOV RSI,R14 CALL 0x001114f0 MOV R14,RAX JMP 0x0011717a LAB_0011719e: ADD R14,0x20 JMP 0x0011717a LAB_001171a4: ADD RSP,0x8 POP RBX POP R14 RET
/* nglog::GetExistingTempDirectories(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >&) */ void nglog::GetExistingTempDirectories(vector *param_1) { int iVar1; int8 *puVar2; GetTempDirectories(param_1); puVar2 = *(int8 **)param_1; while (puVar2 != *(int8 **)(param_1 + 8)) { iVar1 = access((char *)*puVar2,0); if (iVar1 == 0) { puVar2 = puVar2 + 4; } else { puVar2 = (int8 *) std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::_M_erase ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) param_1); } } return; }
32,274
evmone::(anonymous namespace)::InstructionTracer::output_stack(intx::uint<256u> const*, int)
corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/tracing.cpp
void output_stack(const intx::uint256* stack_top, int stack_height) { m_out << R"(,"stack":[)"; const auto stack_end = stack_top + 1; const auto stack_begin = stack_end - stack_height; for (auto it = stack_begin; it != stack_end; ++it) { if (it != stack_begin) m_out << ','; m_out << R"("0x)" << to_string(*it, 16) << '"'; } m_out << ']'; }
O0
cpp
evmone::(anonymous namespace)::InstructionTracer::output_stack(intx::uint<256u> const*, int): pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x88(%rbp) movq 0x60(%rax), %rdi leaq 0x57984(%rip), %rsi # 0xe4810 callq 0x23200 movq -0x10(%rbp), %rax addq $0x20, %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movslq -0x14(%rbp), %rdx xorl %ecx, %ecx subq %rdx, %rcx shlq $0x5, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x20(%rbp), %rax je 0x8cfa2 movq -0x30(%rbp), %rax cmpq -0x28(%rbp), %rax je 0x8ceea movq -0x88(%rbp), %rax movq 0x60(%rax), %rdi movl $0x2c, %esi callq 0x23270 movq -0x88(%rbp), %rax movq 0x60(%rax), %rdi leaq 0x578ec(%rip), %rsi # 0xe47e8 callq 0x23200 movq %rax, -0xa0(%rbp) movq -0x30(%rbp), %rax movups (%rax), %xmm0 movups 0x10(%rax), %xmm1 movaps %xmm1, -0x60(%rbp) movaps %xmm0, -0x70(%rbp) movaps -0x70(%rbp), %xmm0 movaps -0x60(%rbp), %xmm1 movq %rsp, %rax movups %xmm1, 0x10(%rax) movups %xmm0, (%rax) leaq -0x50(%rbp), %rdi movq %rdi, -0x98(%rbp) movl $0x10, %esi callq 0x8ebd0 movq -0xa0(%rbp), %rdi movq -0x98(%rbp), %rsi callq 0x231e0 movq %rax, -0x90(%rbp) jmp 0x8cf5e movq -0x90(%rbp), %rdi movl $0x22, %esi callq 0x23270 jmp 0x8cf71 leaq -0x50(%rbp), %rdi callq 0x8d5c0 movq -0x30(%rbp), %rax addq $0x20, %rax movq %rax, -0x30(%rbp) jmp 0x8cebd movq %rax, %rcx movl %edx, %eax movq %rcx, -0x78(%rbp) movl %eax, -0x7c(%rbp) leaq -0x50(%rbp), %rdi callq 0x8d5c0 jmp 0x8cfc0 movq -0x88(%rbp), %rax movq 0x60(%rax), %rdi movl $0x5d, %esi callq 0x23270 addq $0xc0, %rsp popq %rbp retq movq -0x78(%rbp), %rdi callq 0x23410 nopl (%rax)
_ZN6evmone12_GLOBAL__N_117InstructionTracer12output_stackEPKN4intx4uintILj256EEEi: push rbp mov rbp, rsp sub rsp, 0C0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov rax, [rbp+var_8] mov [rbp+var_88], rax mov rdi, [rax+60h] lea rsi, aStack; ",\"stack\":[" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rax, [rbp+var_10] add rax, 20h ; ' ' mov [rbp+var_20], rax mov rax, [rbp+var_20] movsxd rdx, [rbp+var_14] xor ecx, ecx sub rcx, rdx shl rcx, 5 add rax, rcx mov [rbp+var_28], rax mov rax, [rbp+var_28] mov [rbp+var_30], rax loc_8CEBD: mov rax, [rbp+var_30] cmp rax, [rbp+var_20] jz loc_8CFA2 mov rax, [rbp+var_30] cmp rax, [rbp+var_28] jz short loc_8CEEA mov rax, [rbp+var_88] mov rdi, [rax+60h] mov esi, 2Ch ; ',' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) loc_8CEEA: mov rax, [rbp+var_88] mov rdi, [rax+60h] lea rsi, aReturndata0x+0Eh; "\"0x" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_A0], rax mov rax, [rbp+var_30] movups xmm0, xmmword ptr [rax] movups xmm1, xmmword ptr [rax+10h] movaps [rbp+var_60], xmm1 movaps [rbp+var_70], xmm0 movaps xmm0, [rbp+var_70] movaps xmm1, [rbp+var_60] mov rax, rsp movups xmmword ptr [rax+10h], xmm1 movups xmmword ptr [rax], xmm0 lea rdi, [rbp+var_50] mov [rbp+var_98], rdi mov esi, 10h call _ZN4intx9to_stringILj256EEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_4uintIXT_EEEi; intx::to_string<256u>(intx::uint<256u>,int) mov rdi, [rbp+var_A0] mov rsi, [rbp+var_98] call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov [rbp+var_90], rax jmp short $+2 loc_8CF5E: mov rdi, [rbp+var_90] mov esi, 22h ; '"' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) jmp short $+2 loc_8CF71: lea rdi, [rbp+var_50] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, [rbp+var_30] add rax, 20h ; ' ' mov [rbp+var_30], rax jmp loc_8CEBD mov rcx, rax mov eax, edx mov [rbp+var_78], rcx mov [rbp+var_7C], eax lea rdi, [rbp+var_50] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_8CFC0 loc_8CFA2: mov rax, [rbp+var_88] mov rdi, [rax+60h] mov esi, 5Dh ; ']' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) add rsp, 0C0h pop rbp retn loc_8CFC0: mov rdi, [rbp+var_78] call __Unwind_Resume
long long evmone::`anonymous namespace'::InstructionTracer::output_stack(long long a1, long long a2, int a3) { int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d long long v8; // [rsp+20h] [rbp-A0h] long long v9; // [rsp+30h] [rbp-90h] _BYTE v10[32]; // [rsp+70h] [rbp-50h] BYREF long long i; // [rsp+90h] [rbp-30h] long long v12; // [rsp+98h] [rbp-28h] long long v13; // [rsp+A0h] [rbp-20h] int v14; // [rsp+ACh] [rbp-14h] long long v15; // [rsp+B0h] [rbp-10h] long long v16; // [rsp+B8h] [rbp-8h] v16 = a1; v15 = a2; v14 = a3; std::operator<<<std::char_traits<char>>(*(_QWORD *)(a1 + 96), ",\"stack\":["); v13 = a2 + 32; v12 = -32LL * v14 + a2 + 32; for ( i = v12; i != v13; i += 32LL ) { if ( i != v12 ) std::operator<<<std::char_traits<char>>(*(_QWORD *)(a1 + 96), 44LL); v8 = std::operator<<<std::char_traits<char>>(*(_QWORD *)(a1 + 96), "\"0x"); intx::to_string<256u>((unsigned int)v10, 16, v3, v4, v5, v6, *(_QWORD *)i, *(_QWORD *)(i + 8), *(_OWORD *)(i + 16)); v9 = std::operator<<<char>(v8, v10); std::operator<<<std::char_traits<char>>(v9, 34LL); std::string::~string(v10); } return std::operator<<<std::char_traits<char>>(*(_QWORD *)(a1 + 96), 93LL); }
output_stack: PUSH RBP MOV RBP,RSP SUB RSP,0xc0 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x88],RAX MOV RDI,qword ptr [RAX + 0x60] LEA RSI,[0x1e4810] CALL 0x00123200 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x20 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOVSXD RDX,dword ptr [RBP + -0x14] XOR ECX,ECX SUB RCX,RDX SHL RCX,0x5 ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x30],RAX LAB_0018cebd: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x20] JZ 0x0018cfa2 MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x28] JZ 0x0018ceea MOV RAX,qword ptr [RBP + -0x88] MOV RDI,qword ptr [RAX + 0x60] MOV ESI,0x2c CALL 0x00123270 LAB_0018ceea: MOV RAX,qword ptr [RBP + -0x88] MOV RDI,qword ptr [RAX + 0x60] LEA RSI,[0x1e47e8] CALL 0x00123200 MOV qword ptr [RBP + -0xa0],RAX MOV RAX,qword ptr [RBP + -0x30] MOVUPS XMM0,xmmword ptr [RAX] MOVUPS XMM1,xmmword ptr [RAX + 0x10] MOVAPS xmmword ptr [RBP + -0x60],XMM1 MOVAPS xmmword ptr [RBP + -0x70],XMM0 MOVAPS XMM0,xmmword ptr [RBP + -0x70] MOVAPS XMM1,xmmword ptr [RBP + -0x60] MOV RAX,RSP MOVUPS xmmword ptr [RAX + 0x10],XMM1 MOVUPS xmmword ptr [RAX],XMM0 LEA RDI,[RBP + -0x50] MOV qword ptr [RBP + -0x98],RDI MOV ESI,0x10 CALL 0x0018ebd0 MOV RDI,qword ptr [RBP + -0xa0] MOV RSI,qword ptr [RBP + -0x98] LAB_0018cf50: CALL 0x001231e0 MOV qword ptr [RBP + -0x90],RAX JMP 0x0018cf5e LAB_0018cf5e: MOV RDI,qword ptr [RBP + -0x90] MOV ESI,0x22 CALL 0x00123270 LAB_0018cf6f: JMP 0x0018cf71 LAB_0018cf71: LEA RDI,[RBP + -0x50] CALL 0x0018d5c0 MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x20 MOV qword ptr [RBP + -0x30],RAX JMP 0x0018cebd LAB_0018cfa2: MOV RAX,qword ptr [RBP + -0x88] MOV RDI,qword ptr [RAX + 0x60] MOV ESI,0x5d CALL 0x00123270 ADD RSP,0xc0 POP RBP RET
/* evmone::(anonymous namespace)::InstructionTracer::output_stack(intx::uint<256u> const*, int) */ void __thiscall evmone::(anonymous_namespace)::InstructionTracer::output_stack (InstructionTracer *this,uint *param_1,int param_2) { ostream *poVar1; string local_58 [32]; uint *local_38; uint *local_30; uint *local_28; int local_1c; uint *local_18; InstructionTracer *local_10; local_1c = param_2; local_18 = param_1; local_10 = this; std::operator<<(*(ostream **)(this + 0x60),",\"stack\":["); local_28 = local_18 + 0x20; local_38 = local_28 + (long)local_1c * -0x20; local_30 = local_38; for (; local_38 != local_28; local_38 = local_38 + 0x20) { if (local_38 != local_30) { std::operator<<(*(ostream **)(this + 0x60),','); } poVar1 = std::operator<<(*(ostream **)(this + 0x60),"\"0x"); intx::to_string<256u>(local_58,0x10); /* try { // try from 0018cf50 to 0018cf6e has its CatchHandler @ 0018cf8b */ poVar1 = std::operator<<(poVar1,local_58); std::operator<<(poVar1,'\"'); std::__cxx11::string::~string(local_58); } std::operator<<(*(ostream **)(this + 0x60),']'); return; }
32,275
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlanBuilder.cpp
void SubdivisionPlanBuilder::initializePatches(SubdivisionPlan& plan) { plan._patchPoints.resize(_numPatchPointsTotal); int numLevels = _faceRefiner->GetNumLevels(); // encode nodes in the tree & collect patch point indices for (int level = 0; level < numLevels; ++level) { for (int pnIndex=0; pnIndex<(int)_protoNodeStore[level].size(); ++pnIndex) { ProtoNode const& pn = _protoNodeStore[level][pnIndex]; if (!pn.active) continue; switch (pn.getType()) { using enum NodeType; case NODE_REGULAR: encodeRegularNode(pn, plan._tree.data(), plan._patchPoints.data()); break; case NODE_END: encodeEndCapNode(pn, plan._tree.data(), plan._patchPoints.data()); break; case NODE_TERMINAL: encodeTerminalNode(pn, plan._tree.data(), plan._patchPoints.data()); break; case NODE_RECURSIVE: encodeRecursiveNode(pn, plan._tree.data(), plan._patchPoints.data()); break; } } } // tabulate some offsets & sums that will help patch encoding TreeDescriptor* treeDesc = const_cast<TreeDescriptor *>(&plan.GetTreeDescriptor()); for (int level = 0; level < numLevels; ++level) { LevelOffsets const& offsets = _levelOffsets[level]; size_t npoints = 0; if (_reorderStencilMatrix) npoints = offsets.irregularIndexBase + (offsets.numIrregularPatches * _irregularPatchSize) - _numControlPoints; else npoints = (_numRefinedPoints + (_numIrregularPatchesTotal * _irregularPatchSize)); // XXXX mk: can we use uint16_t ? assert(npoints < std::numeric_limits<std::remove_reference<decltype(*TreeDescriptor::numPatchPoints)>::type>::max()); treeDesc->numPatchPoints[level] = uint32_t(npoints); } for (int level = numLevels; level < (int)std::size(treeDesc->numPatchPoints); ++level) treeDesc->numPatchPoints[level] = treeDesc->numPatchPoints[numLevels - 1]; }
O2
cpp
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %r15 movq %rdi, %rbx leaq 0x58(%rsi), %rdi movslq 0x288(%rbx), %rsi callq 0x514b0 movq %rbx, 0x8(%rsp) movq 0x108(%rbx), %rcx movq 0x68(%rcx), %rax subq 0x60(%rcx), %rax pushq $0x18 popq %rcx cqto idivq %rcx xorl %ecx, %ecx testl %eax, %eax movq %rax, 0x10(%rsp) movl %eax, %r11d cmovlel %ecx, %r11d pushq $0x28 popq %rbp leaq 0x1b1b4(%rip), %r14 # 0xcecc0 movq %r11, 0x18(%rsp) cmpq %r11, %rcx je 0xb3bb3 movq %rcx, 0x20(%rsp) imulq $0x18, %rcx, %r12 addq 0x8(%rsp), %r12 xorl %r13d, %r13d xorl %ebx, %ebx movq (%r12), %rsi movq 0x8(%r12), %rax subq %rsi, %rax cqto idivq %rbp cltq cmpq %rax, %rbx jge 0xb3ba1 movzwl 0xc(%rsi,%r13), %eax testb $0x1, %al jne 0xb3b58 incq %rbx addq $0x28, %r13 jmp 0xb3b2d addq %r13, %rsi shrl %eax andl $0x3, %eax movq 0x40(%r15), %rdx movq 0x58(%r15), %rcx movslq (%r14,%rax,4), %rax addq %r14, %rax jmpq *%rax movq 0x8(%rsp), %rdi callq 0x53a90 jmp 0xb3b4f movq 0x8(%rsp), %rdi callq 0x52a00 jmp 0xb3b4f movq 0x8(%rsp), %rdi callq 0x52730 jmp 0xb3b4f movq 0x8(%rsp), %rdi callq 0x54fb0 jmp 0xb3b4f movq 0x20(%rsp), %rcx incq %rcx movq 0x18(%rsp), %r11 jmp 0xb3b11 movq 0x40(%r15), %rax movq 0x8(%rsp), %rdx movb 0x269(%rdx), %cl addq $0x11c, %rdx # imm = 0x11C xorl %esi, %esi movl $0xffffffff, %edi # imm = 0xFFFFFFFF cmpq %rsi, %r11 je 0xb3c2b testb $0x1, %cl je 0xb3bf7 movq 0x8(%rsp), %r9 movl 0x274(%r9), %r8d imull 0xc(%rdx), %r8d addl (%rdx), %r8d subl 0x280(%r9), %r8d jmp 0xb3c18 movq 0x8(%rsp), %r8 movslq 0x284(%r8), %r9 movslq 0x28c(%r8), %r10 movslq 0x274(%r8), %r8 imulq %r10, %r8 addq %r9, %r8 cmpq %rdi, %r8 jae 0xb3c5b movl %r8d, 0x8(%rax,%rsi,4) incq %rsi addq $0x14, %rdx jmp 0xb3bd0 movq 0x10(%rsp), %rdx leal -0x1(%rdx), %ecx movslq %ecx, %rcx movslq %edx, %rdx cmpq $0xb, %rdx jge 0xb3c4c movl 0x8(%rax,%rcx,4), %esi movl %esi, 0x8(%rax,%rdx,4) incq %rdx jmp 0xb3c39 addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x1b65c(%rip), %rdi # 0xcf2be leaq 0x1b0d1(%rip), %rsi # 0xced3a leaq 0x1b6bb(%rip), %rcx # 0xcf32b movl $0x34e, %edx # imm = 0x34E callq 0x512a0
_ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder17initializePatchesERNS1_15SubdivisionPlanE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r15, rsi mov rbx, rdi lea rdi, [rsi+58h] movsxd rsi, dword ptr [rbx+288h] call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov [rsp+58h+var_50], rbx mov rcx, [rbx+108h] mov rax, [rcx+68h] sub rax, [rcx+60h] push 18h pop rcx cqo idiv rcx xor ecx, ecx test eax, eax mov [rsp+58h+var_48], rax mov r11d, eax cmovle r11d, ecx push 28h ; '(' pop rbp lea r14, jpt_B3B6F mov [rsp+58h+var_40], r11 loc_B3B11: cmp rcx, r11 jz loc_B3BB3 mov [rsp+58h+var_38], rcx imul r12, rcx, 18h add r12, [rsp+58h+var_50] xor r13d, r13d xor ebx, ebx loc_B3B2D: mov rsi, [r12] mov rax, [r12+8] sub rax, rsi cqo idiv rbp cdqe cmp rbx, rax jge short loc_B3BA1 movzx eax, word ptr [rsi+r13+0Ch] test al, 1 jnz short loc_B3B58 loc_B3B4F: inc rbx add r13, 28h ; '(' jmp short loc_B3B2D loc_B3B58: add rsi, r13 shr eax, 1 and eax, 3 mov rdx, [r15+40h] mov rcx, [r15+58h] movsxd rax, ds:(jpt_B3B6F - 0CECC0h)[r14+rax*4]; switch 4 cases add rax, r14 jmp rax; switch jump loc_B3B71: mov rdi, [rsp+58h+var_50]; jumptable 00000000000B3B6F case 0 call __ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder17encodeRegularNodeERKNS2_9ProtoNodeEPjPi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeRegularNode(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::ProtoNode const&,uint *,int *) jmp short loc_B3B4F loc_B3B7D: mov rdi, [rsp+58h+var_50]; jumptable 00000000000B3B6F case 2 call __ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder18encodeTerminalNodeERKNS2_9ProtoNodeEPjPi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeTerminalNode(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::ProtoNode const&,uint *,int *) jmp short loc_B3B4F loc_B3B89: mov rdi, [rsp+58h+var_50]; jumptable 00000000000B3B6F case 3 call __ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder16encodeEndCapNodeERKNS2_9ProtoNodeEPjPi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeEndCapNode(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::ProtoNode const&,uint *,int *) jmp short loc_B3B4F loc_B3B95: mov rdi, [rsp+58h+var_50]; jumptable 00000000000B3B6F case 1 call __ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder19encodeRecursiveNodeERKNS2_9ProtoNodeEPjPi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeRecursiveNode(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::ProtoNode const&,uint *,int *) jmp short loc_B3B4F loc_B3BA1: mov rcx, [rsp+58h+var_38] inc rcx mov r11, [rsp+58h+var_40] jmp loc_B3B11 loc_B3BB3: mov rax, [r15+40h] mov rdx, [rsp+58h+var_50] mov cl, [rdx+269h] add rdx, 11Ch xor esi, esi mov edi, 0FFFFFFFFh loc_B3BD0: cmp r11, rsi jz short loc_B3C2B test cl, 1 jz short loc_B3BF7 mov r9, [rsp+58h+var_50] mov r8d, [r9+274h] imul r8d, [rdx+0Ch] add r8d, [rdx] sub r8d, [r9+280h] jmp short loc_B3C18 loc_B3BF7: mov r8, [rsp+58h+var_50] movsxd r9, dword ptr [r8+284h] movsxd r10, dword ptr [r8+28Ch] movsxd r8, dword ptr [r8+274h] imul r8, r10 add r8, r9 loc_B3C18: cmp r8, rdi jnb short loc_B3C5B mov [rax+rsi*4+8], r8d inc rsi add rdx, 14h jmp short loc_B3BD0 loc_B3C2B: mov rdx, [rsp+58h+var_48] lea ecx, [rdx-1] movsxd rcx, ecx movsxd rdx, edx loc_B3C39: cmp rdx, 0Bh jge short loc_B3C4C mov esi, [rax+rcx*4+8] mov [rax+rdx*4+8], esi inc rdx jmp short loc_B3C39 loc_B3C4C: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_B3C5B: lea rdi, aNpointsStdNume; "npoints < std::numeric_limits<std::remo"... lea rsi, aWorkspaceLlm4b_48; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_164; "void OpenSubdiv::v3_6_0::Tmr::Subdivisi"... mov edx, 34Eh call ___assert_fail
long long OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches( OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder *this, OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan *a2) { long long v3; // rcx long long v4; // r11 long long *v5; // r12 long long v6; // r13 long long i; // rbx long long v8; // rsi unsigned int v9; // eax unsigned __int16 *v10; // rsi long long result; // rax char v12; // cl _DWORD *v13; // rdx long long j; // rsi unsigned long long v15; // r8 long long k; // rdx long long v17; // [rsp+10h] [rbp-48h] long long v18; // [rsp+18h] [rbp-40h] long long v19; // [rsp+20h] [rbp-38h] std::vector<int>::resize((char *)a2 + 88, *((int *)this + 162)); v3 = 0LL; v17 = (*(_QWORD *)(*((_QWORD *)this + 33) + 104LL) - *(_QWORD *)(*((_QWORD *)this + 33) + 96LL)) / 24LL; v4 = (unsigned int)v17; if ( (int)v17 <= 0 ) v4 = 0LL; v18 = v4; while ( v3 != v4 ) { v19 = v3; v5 = (long long *)((char *)this + 24 * v3); v6 = 0LL; for ( i = 0LL; ; ++i ) { v8 = *v5; if ( i >= (int)((v5[1] - *v5) / 40) ) break; v9 = *(unsigned __int16 *)(v8 + v6 + 12); if ( (v9 & 1) != 0 ) { v10 = (unsigned __int16 *)(v6 + v8); switch ( (v9 >> 1) & 3 ) { case 0u: OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeRegularNode( (long long)this, v10, *((_QWORD *)a2 + 8), *((_QWORD *)a2 + 11)); break; case 1u: OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeRecursiveNode(this); break; case 2u: OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeTerminalNode(this); break; case 3u: OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeEndCapNode(this); break; } } v6 += 40LL; } v3 = v19 + 1; v4 = v18; } result = *((_QWORD *)a2 + 8); v12 = *((_BYTE *)this + 617); v13 = (_DWORD *)((char *)this + 284); for ( j = 0LL; v4 != j; ++j ) { if ( (v12 & 1) != 0 ) v15 = (unsigned int)(*v13 + v13[3] * *((_DWORD *)this + 157) - *((_DWORD *)this + 160)); else v15 = *((int *)this + 161) + *((int *)this + 163) * (long long)*((int *)this + 157); if ( v15 >= 0xFFFFFFFF ) __assert_fail( "npoints < std::numeric_limits<std::remove_reference<decltype(*TreeDescriptor::numPatchPoints)>::type>::max()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlanBuilder.cpp", 846LL, "void OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(SubdivisionPlan &)"); *(_DWORD *)(result + 4 * j + 8) = v15; v13 += 5; } for ( k = (int)v17; k < 11; ++k ) *(_DWORD *)(result + 4 * k + 8) = *(_DWORD *)(result + 4LL * ((int)v17 - 1) + 8); return result; }
initializePatches: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R15,RSI MOV RBX,RDI LEA RDI,[RSI + 0x58] MOVSXD RSI,dword ptr [RBX + 0x288] CALL 0x001514b0 MOV qword ptr [RSP + 0x8],RBX MOV RCX,qword ptr [RBX + 0x108] MOV RAX,qword ptr [RCX + 0x68] SUB RAX,qword ptr [RCX + 0x60] PUSH 0x18 POP RCX CQO IDIV RCX XOR ECX,ECX TEST EAX,EAX MOV qword ptr [RSP + 0x10],RAX MOV R11D,EAX CMOVLE R11D,ECX PUSH 0x28 POP RBP LEA R14,[0x1cecc0] MOV qword ptr [RSP + 0x18],R11 LAB_001b3b11: CMP RCX,R11 JZ 0x001b3bb3 MOV qword ptr [RSP + 0x20],RCX IMUL R12,RCX,0x18 ADD R12,qword ptr [RSP + 0x8] XOR R13D,R13D XOR EBX,EBX LAB_001b3b2d: MOV RSI,qword ptr [R12] MOV RAX,qword ptr [R12 + 0x8] SUB RAX,RSI CQO IDIV RBP CDQE CMP RBX,RAX JGE 0x001b3ba1 MOVZX EAX,word ptr [RSI + R13*0x1 + 0xc] TEST AL,0x1 JNZ 0x001b3b58 LAB_001b3b4f: INC RBX ADD R13,0x28 JMP 0x001b3b2d LAB_001b3b58: ADD RSI,R13 SHR EAX,0x1 AND EAX,0x3 MOV RDX,qword ptr [R15 + 0x40] MOV RCX,qword ptr [R15 + 0x58] MOVSXD RAX,dword ptr [R14 + RAX*0x4] ADD RAX,R14 switchD: JMP RAX caseD_0: MOV RDI,qword ptr [RSP + 0x8] CALL 0x00153a90 JMP 0x001b3b4f caseD_2: MOV RDI,qword ptr [RSP + 0x8] CALL 0x00152a00 JMP 0x001b3b4f caseD_3: MOV RDI,qword ptr [RSP + 0x8] CALL 0x00152730 JMP 0x001b3b4f caseD_1: MOV RDI,qword ptr [RSP + 0x8] CALL 0x00154fb0 JMP 0x001b3b4f LAB_001b3ba1: MOV RCX,qword ptr [RSP + 0x20] INC RCX MOV R11,qword ptr [RSP + 0x18] JMP 0x001b3b11 LAB_001b3bb3: MOV RAX,qword ptr [R15 + 0x40] MOV RDX,qword ptr [RSP + 0x8] MOV CL,byte ptr [RDX + 0x269] ADD RDX,0x11c XOR ESI,ESI MOV EDI,0xffffffff LAB_001b3bd0: CMP R11,RSI JZ 0x001b3c2b TEST CL,0x1 JZ 0x001b3bf7 MOV R9,qword ptr [RSP + 0x8] MOV R8D,dword ptr [R9 + 0x274] IMUL R8D,dword ptr [RDX + 0xc] ADD R8D,dword ptr [RDX] SUB R8D,dword ptr [R9 + 0x280] JMP 0x001b3c18 LAB_001b3bf7: MOV R8,qword ptr [RSP + 0x8] MOVSXD R9,dword ptr [R8 + 0x284] MOVSXD R10,dword ptr [R8 + 0x28c] MOVSXD R8,dword ptr [R8 + 0x274] IMUL R8,R10 ADD R8,R9 LAB_001b3c18: CMP R8,RDI JNC 0x001b3c5b MOV dword ptr [RAX + RSI*0x4 + 0x8],R8D INC RSI ADD RDX,0x14 JMP 0x001b3bd0 LAB_001b3c2b: MOV RDX,qword ptr [RSP + 0x10] LEA ECX,[RDX + -0x1] MOVSXD RCX,ECX MOVSXD RDX,EDX LAB_001b3c39: CMP RDX,0xb JGE 0x001b3c4c MOV ESI,dword ptr [RAX + RCX*0x4 + 0x8] MOV dword ptr [RAX + RDX*0x4 + 0x8],ESI INC RDX JMP 0x001b3c39 LAB_001b3c4c: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001b3c5b: LEA RDI,[0x1cf2be] LEA RSI,[0x1ced3a] LEA RCX,[0x1cf32b] MOV EDX,0x34e CALL 0x001512a0
/* OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan&) */ void __thiscall OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches (SubdivisionPlanBuilder *this,SubdivisionPlan *param_1) { SubdivisionPlanBuilder SVar1; ushort uVar2; long lVar3; uint *puVar4; int *piVar5; int iVar6; ulong uVar7; ulong uVar8; SubdivisionPlanBuilder *pSVar9; long lVar10; ProtoNode *pPVar11; ulong uVar12; long lVar13; std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(param_1 + 0x58),(long)*(int *)(this + 0x288)); uVar7 = (*(long *)(*(long *)(this + 0x108) + 0x68) - *(long *)(*(long *)(this + 0x108) + 0x60)) / 0x18; uVar8 = 0; iVar6 = (int)uVar7; uVar7 = uVar7 & 0xffffffff; if (iVar6 < 1) { uVar7 = uVar8; } for (; uVar8 != uVar7; uVar8 = uVar8 + 1) { lVar13 = 0; for (lVar10 = 0; lVar3 = *(long *)(this + uVar8 * 0x18), lVar10 < (int)((*(long *)(this + uVar8 * 0x18 + 8) - lVar3) / 0x28); lVar10 = lVar10 + 1) { uVar2 = *(ushort *)(lVar3 + 0xc + lVar13); if ((uVar2 & 1) != 0) { pPVar11 = (ProtoNode *)(lVar3 + lVar13); puVar4 = *(uint **)(param_1 + 0x40); piVar5 = *(int **)(param_1 + 0x58); switch(uVar2 >> 1 & 3) { case 0: encodeRegularNode(this,pPVar11,puVar4,piVar5); break; case 1: encodeRecursiveNode(this,pPVar11,puVar4,piVar5); break; case 2: encodeTerminalNode(this,pPVar11,puVar4,piVar5); break; case 3: encodeEndCapNode(this,pPVar11,puVar4,piVar5); } } lVar13 = lVar13 + 0x28; } } lVar10 = *(long *)(param_1 + 0x40); SVar1 = this[0x269]; pSVar9 = this + 0x11c; uVar8 = 0; while( true ) { if (uVar7 == uVar8) { for (lVar13 = (long)iVar6; lVar13 < 0xb; lVar13 = lVar13 + 1) { *(int4 *)(lVar10 + 8 + lVar13 * 4) = *(int4 *)(lVar10 + 8 + (long)(iVar6 + -1) * 4); } return; } if (((byte)SVar1 & 1) == 0) { uVar12 = (long)*(int *)(this + 0x274) * (long)*(int *)(this + 0x28c) + (long)*(int *)(this + 0x284); } else { uVar12 = (ulong)(uint)((*(int *)(this + 0x274) * *(int *)(pSVar9 + 0xc) + *(int *)pSVar9) - *(int *)(this + 0x280)); } if (0xfffffffe < uVar12) break; *(int *)(lVar10 + 8 + uVar8 * 4) = (int)uVar12; uVar8 = uVar8 + 1; pSVar9 = pSVar9 + 0x14; } /* WARNING: Subroutine does not return */ __assert_fail("npoints < std::numeric_limits<std::remove_reference<decltype(*TreeDescriptor::numPatchPoints)>::type>::max()" , "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlanBuilder.cpp" ,0x34e, "void OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(SubdivisionPlan &)" ); }
32,276
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlanBuilder.cpp
void SubdivisionPlanBuilder::initializePatches(SubdivisionPlan& plan) { plan._patchPoints.resize(_numPatchPointsTotal); int numLevels = _faceRefiner->GetNumLevels(); // encode nodes in the tree & collect patch point indices for (int level = 0; level < numLevels; ++level) { for (int pnIndex=0; pnIndex<(int)_protoNodeStore[level].size(); ++pnIndex) { ProtoNode const& pn = _protoNodeStore[level][pnIndex]; if (!pn.active) continue; switch (pn.getType()) { using enum NodeType; case NODE_REGULAR: encodeRegularNode(pn, plan._tree.data(), plan._patchPoints.data()); break; case NODE_END: encodeEndCapNode(pn, plan._tree.data(), plan._patchPoints.data()); break; case NODE_TERMINAL: encodeTerminalNode(pn, plan._tree.data(), plan._patchPoints.data()); break; case NODE_RECURSIVE: encodeRecursiveNode(pn, plan._tree.data(), plan._patchPoints.data()); break; } } } // tabulate some offsets & sums that will help patch encoding TreeDescriptor* treeDesc = const_cast<TreeDescriptor *>(&plan.GetTreeDescriptor()); for (int level = 0; level < numLevels; ++level) { LevelOffsets const& offsets = _levelOffsets[level]; size_t npoints = 0; if (_reorderStencilMatrix) npoints = offsets.irregularIndexBase + (offsets.numIrregularPatches * _irregularPatchSize) - _numControlPoints; else npoints = (_numRefinedPoints + (_numIrregularPatchesTotal * _irregularPatchSize)); // XXXX mk: can we use uint16_t ? assert(npoints < std::numeric_limits<std::remove_reference<decltype(*TreeDescriptor::numPatchPoints)>::type>::max()); treeDesc->numPatchPoints[level] = uint32_t(npoints); } for (int level = numLevels; level < (int)std::size(treeDesc->numPatchPoints); ++level) treeDesc->numPatchPoints[level] = treeDesc->numPatchPoints[numLevels - 1]; }
O3
cpp
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x58(%rsi), %rdi movslq 0x288(%rbx), %rsi callq 0x39670 movq 0x108(%rbx), %rax movq 0x68(%rax), %rcx subq 0x60(%rax), %rcx sarq $0x3, %rcx movabsq $-0x5555555555555555, %r15 # imm = 0xAAAAAAAAAAAAAAAB imulq %rcx, %r15 testl %r15d, %r15d jle 0xab7fa movq %r15, (%rsp) andl $0x7fffffff, %r15d # imm = 0x7FFFFFFF movq %r15, 0x8(%rsp) xorl %eax, %eax leaq 0x1c1d7(%rip), %rbp # 0xc78a0 movq %rax, 0x10(%rsp) leaq (%rax,%rax,2), %rax movq (%rbx,%rax,8), %rsi movq 0x8(%rbx,%rax,8), %rcx subq %rsi, %rcx shrq $0x3, %rcx imull $0xcccccccd, %ecx, %ecx # imm = 0xCCCCCCCD testl %ecx, %ecx jle 0xab766 leaq (%rbx,%rax,8), %r15 xorl %r12d, %r12d xorl %r13d, %r13d movzwl 0xc(%rsi,%r12), %eax testb $0x1, %al jne 0xab724 incq %r13 movq (%r15), %rsi movq 0x8(%r15), %rax subq %rsi, %rax shrq $0x3, %rax imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD cltq addq $0x28, %r12 cmpq %rax, %r13 jl 0xab6f6 jmp 0xab766 addq %r12, %rsi shrl %eax andl $0x3, %eax movq 0x40(%r14), %rdx movq 0x58(%r14), %rcx movslq (%rbp,%rax,4), %rax addq %rbp, %rax jmpq *%rax movq %rbx, %rdi callq 0x3ad50 jmp 0xab700 movq %rbx, %rdi callq 0x3a3b0 jmp 0xab700 movq %rbx, %rdi callq 0x3a1c0 jmp 0xab700 movq %rbx, %rdi callq 0x3bb10 jmp 0xab700 movq 0x10(%rsp), %rax incq %rax cmpq 0x8(%rsp), %rax jne 0xab6c9 movq 0x40(%r14), %rax movq (%rsp), %r15 testl %r15d, %r15d jle 0xab7fe movb 0x269(%rbx), %cl movl %r15d, %edx andl $0x7fffffff, %edx # imm = 0x7FFFFFFF leaq 0x128(%rbx), %rsi xorl %edi, %edi movl $0xffffffff, %r8d # imm = 0xFFFFFFFF testb %cl, %cl je 0xab7c0 movl 0x274(%rbx), %r9d imull (%rsi), %r9d addl -0xc(%rsi), %r9d subl 0x280(%rbx), %r9d jmp 0xab7dc movslq 0x284(%rbx), %r10 movslq 0x28c(%rbx), %r11 movslq 0x274(%rbx), %r9 imulq %r11, %r9 addq %r10, %r9 cmpq %r8, %r9 jae 0xab841 movl %r9d, 0x8(%rax,%rdi,4) incq %rdi addq $0x14, %rsi cmpq %rdi, %rdx jne 0xab7a4 cmpl $0xa, %r15d jle 0xab7fe jmp 0xab832 movq 0x40(%r14), %rax movq %r15, %rcx shlq $0x20, %rcx movabsq $-0x100000000, %rsi # imm = 0xFFFFFFFF00000000 addq %rcx, %rsi sarq $0x1e, %rsi movslq %r15d, %rdx movl 0x8(%rax,%rsi), %ecx incq %rdx movq %rdx, %rsi movl %ecx, 0x4(%rax,%rdx,4) incq %rsi cmpl $0xb, %edx movq %rsi, %rdx jne 0xab823 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x1c66a(%rip), %rdi # 0xc7eb2 leaq 0x1c0df(%rip), %rsi # 0xc792e leaq 0x1c6c9(%rip), %rcx # 0xc7f1f movl $0x34e, %edx # imm = 0x34E callq 0x39540
_ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder17initializePatchesERNS1_15SubdivisionPlanE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14, rsi mov rbx, rdi lea rdi, [rsi+58h] movsxd rsi, dword ptr [rbx+288h] call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov rax, [rbx+108h] mov rcx, [rax+68h] sub rcx, [rax+60h] sar rcx, 3 mov r15, 0AAAAAAAAAAAAAAABh imul r15, rcx test r15d, r15d jle loc_AB7FA mov [rsp+48h+var_48], r15 and r15d, 7FFFFFFFh mov [rsp+48h+var_40], r15 xor eax, eax lea rbp, jpt_AB73C loc_AB6C9: mov [rsp+48h+var_38], rax lea rax, [rax+rax*2] mov rsi, [rbx+rax*8] mov rcx, [rbx+rax*8+8] sub rcx, rsi shr rcx, 3 imul ecx, 0CCCCCCCDh test ecx, ecx jle short loc_AB766 lea r15, [rbx+rax*8] xor r12d, r12d xor r13d, r13d loc_AB6F6: movzx eax, word ptr [rsi+r12+0Ch] test al, 1 jnz short loc_AB724 loc_AB700: inc r13 mov rsi, [r15] mov rax, [r15+8] sub rax, rsi shr rax, 3 imul eax, 0CCCCCCCDh cdqe add r12, 28h ; '(' cmp r13, rax jl short loc_AB6F6 jmp short loc_AB766 loc_AB724: add rsi, r12 shr eax, 1 and eax, 3 mov rdx, [r14+40h] mov rcx, [r14+58h] movsxd rax, ss:(jpt_AB73C - 0C78A0h)[rbp+rax*4]; switch 4 cases add rax, rbp jmp rax; switch jump loc_AB73E: mov rdi, rbx; jumptable 00000000000AB73C case 0 call __ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder17encodeRegularNodeERKNS2_9ProtoNodeEPjPi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeRegularNode(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::ProtoNode const&,uint *,int *) jmp short loc_AB700 loc_AB748: mov rdi, rbx; jumptable 00000000000AB73C case 2 call __ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder18encodeTerminalNodeERKNS2_9ProtoNodeEPjPi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeTerminalNode(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::ProtoNode const&,uint *,int *) jmp short loc_AB700 loc_AB752: mov rdi, rbx; jumptable 00000000000AB73C case 3 call __ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder16encodeEndCapNodeERKNS2_9ProtoNodeEPjPi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeEndCapNode(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::ProtoNode const&,uint *,int *) jmp short loc_AB700 loc_AB75C: mov rdi, rbx; jumptable 00000000000AB73C case 1 call __ZN10OpenSubdiv6v3_6_03Tmr22SubdivisionPlanBuilder19encodeRecursiveNodeERKNS2_9ProtoNodeEPjPi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeRecursiveNode(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::ProtoNode const&,uint *,int *) jmp short loc_AB700 loc_AB766: mov rax, [rsp+48h+var_38] inc rax cmp rax, [rsp+48h+var_40] jnz loc_AB6C9 mov rax, [r14+40h] mov r15, [rsp+48h+var_48] test r15d, r15d jle short loc_AB7FE mov cl, [rbx+269h] mov edx, r15d and edx, 7FFFFFFFh lea rsi, [rbx+128h] xor edi, edi mov r8d, 0FFFFFFFFh loc_AB7A4: test cl, cl jz short loc_AB7C0 mov r9d, [rbx+274h] imul r9d, [rsi] add r9d, [rsi-0Ch] sub r9d, [rbx+280h] jmp short loc_AB7DC loc_AB7C0: movsxd r10, dword ptr [rbx+284h] movsxd r11, dword ptr [rbx+28Ch] movsxd r9, dword ptr [rbx+274h] imul r9, r11 add r9, r10 loc_AB7DC: cmp r9, r8 jnb short loc_AB841 mov [rax+rdi*4+8], r9d inc rdi add rsi, 14h cmp rdx, rdi jnz short loc_AB7A4 cmp r15d, 0Ah jle short loc_AB7FE jmp short loc_AB832 loc_AB7FA: mov rax, [r14+40h] loc_AB7FE: mov rcx, r15 shl rcx, 20h mov rsi, 0FFFFFFFF00000000h add rsi, rcx sar rsi, 1Eh movsxd rdx, r15d mov ecx, [rax+rsi+8] inc rdx mov rsi, rdx loc_AB823: mov [rax+rdx*4+4], ecx inc rsi cmp edx, 0Bh mov rdx, rsi jnz short loc_AB823 loc_AB832: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_AB841: lea rdi, aNpointsStdNume; "npoints < std::numeric_limits<std::remo"... lea rsi, aWorkspaceLlm4b_52; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_162; "void OpenSubdiv::v3_6_0::Tmr::Subdivisi"... mov edx, 34Eh call ___assert_fail
long long OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches( OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder *this, OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan *a2) { long long v4; // rcx unsigned long long v5; // r15 long long v6; // rax long long v7; // rax long long v8; // rsi long long *v9; // r15 long long v10; // r12 long long v11; // r13 unsigned int v12; // eax unsigned __int16 *v13; // rsi long long v14; // rdx long long v15; // rcx long long result; // rax char v17; // cl _DWORD *v18; // rsi long long v19; // rdi unsigned long long v20; // r9 int v21; // ecx long long v22; // rdx long long v23; // rsi bool v24; // zf unsigned long long v25; // [rsp+0h] [rbp-48h] unsigned long long v26; // [rsp+8h] [rbp-40h] long long v27; // [rsp+10h] [rbp-38h] std::vector<int>::resize((char *)a2 + 88, *((int *)this + 162)); v4 = (long long)(*(_QWORD *)(*((_QWORD *)this + 33) + 104LL) - *(_QWORD *)(*((_QWORD *)this + 33) + 96LL)) >> 3; v5 = 0xAAAAAAAAAAAAAAABLL * v4; if ( -1431655765 * (int)v4 <= 0 ) { result = *((_QWORD *)a2 + 8); LABEL_24: v21 = *(_DWORD *)(result + ((long long)((v5 << 32) - 0x100000000LL) >> 30) + 8); v22 = (int)v5 + 1LL; v23 = v22; do { *(_DWORD *)(result + 4 * v22 + 4) = v21; ++v23; v24 = (_DWORD)v22 == 11; v22 = v23; } while ( !v24 ); return result; } v25 = 0xAAAAAAAAAAAAAAABLL * v4; v26 = v5 & 0x7FFFFFFF; v6 = 0LL; do { v27 = v6; v7 = 3 * v6; v8 = *((_QWORD *)this + v7); if ( (int)(-858993459 * ((unsigned long long)(*((_QWORD *)this + v7 + 1) - v8) >> 3)) > 0 ) { v9 = (long long *)((char *)this + 8 * v7); v10 = 0LL; v11 = 0LL; do { v12 = *(unsigned __int16 *)(v8 + v10 + 12); if ( (v12 & 1) != 0 ) { v13 = (unsigned __int16 *)(v10 + v8); v14 = *((_QWORD *)a2 + 8); v15 = *((_QWORD *)a2 + 11); switch ( (v12 >> 1) & 3 ) { case 0u: OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeRegularNode((long long)this, v13, v14, v15); break; case 1u: OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeRecursiveNode(this); break; case 2u: OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeTerminalNode(this, (long long)v13, v14, v15); break; case 3u: OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::encodeEndCapNode((long long)this, v13, v14, v15); break; } } ++v11; v8 = *v9; v10 += 40LL; } while ( v11 < (int)(-858993459 * ((unsigned long long)(v9[1] - *v9) >> 3)) ); } v6 = v27 + 1; } while ( v27 + 1 != v26 ); result = *((_QWORD *)a2 + 8); v5 = v25; if ( (int)v25 <= 0 ) goto LABEL_24; v17 = *((_BYTE *)this + 617); v18 = (_DWORD *)((char *)this + 296); v19 = 0LL; do { if ( v17 ) v20 = (unsigned int)(*(v18 - 3) + *v18 * *((_DWORD *)this + 157) - *((_DWORD *)this + 160)); else v20 = *((int *)this + 161) + *((int *)this + 163) * (long long)*((int *)this + 157); if ( v20 >= 0xFFFFFFFF ) __assert_fail( "npoints < std::numeric_limits<std::remove_reference<decltype(*TreeDescriptor::numPatchPoints)>::type>::max()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlanBuilder.cpp", 846LL, "void OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(SubdivisionPlan &)"); *(_DWORD *)(result + 4 * v19++ + 8) = v20; v18 += 5; } while ( (v25 & 0x7FFFFFFF) != v19 ); if ( (int)v25 <= 10 ) goto LABEL_24; return result; }
initializePatches: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RSI MOV RBX,RDI LEA RDI,[RSI + 0x58] MOVSXD RSI,dword ptr [RBX + 0x288] CALL 0x00139670 MOV RAX,qword ptr [RBX + 0x108] MOV RCX,qword ptr [RAX + 0x68] SUB RCX,qword ptr [RAX + 0x60] SAR RCX,0x3 MOV R15,-0x5555555555555555 IMUL R15,RCX TEST R15D,R15D JLE 0x001ab7fa MOV qword ptr [RSP],R15 AND R15D,0x7fffffff MOV qword ptr [RSP + 0x8],R15 XOR EAX,EAX LEA RBP,[0x1c78a0] LAB_001ab6c9: MOV qword ptr [RSP + 0x10],RAX LEA RAX,[RAX + RAX*0x2] MOV RSI,qword ptr [RBX + RAX*0x8] MOV RCX,qword ptr [RBX + RAX*0x8 + 0x8] SUB RCX,RSI SHR RCX,0x3 IMUL ECX,ECX,-0x33333333 TEST ECX,ECX JLE 0x001ab766 LEA R15,[RBX + RAX*0x8] XOR R12D,R12D XOR R13D,R13D LAB_001ab6f6: MOVZX EAX,word ptr [RSI + R12*0x1 + 0xc] TEST AL,0x1 JNZ 0x001ab724 LAB_001ab700: INC R13 MOV RSI,qword ptr [R15] MOV RAX,qword ptr [R15 + 0x8] SUB RAX,RSI SHR RAX,0x3 IMUL EAX,EAX,-0x33333333 CDQE ADD R12,0x28 CMP R13,RAX JL 0x001ab6f6 JMP 0x001ab766 LAB_001ab724: ADD RSI,R12 SHR EAX,0x1 AND EAX,0x3 MOV RDX,qword ptr [R14 + 0x40] MOV RCX,qword ptr [R14 + 0x58] MOVSXD RAX,dword ptr [RBP + RAX*0x4] ADD RAX,RBP switchD: JMP RAX caseD_0: MOV RDI,RBX CALL 0x0013ad50 JMP 0x001ab700 caseD_2: MOV RDI,RBX CALL 0x0013a3b0 JMP 0x001ab700 caseD_3: MOV RDI,RBX CALL 0x0013a1c0 JMP 0x001ab700 caseD_1: MOV RDI,RBX CALL 0x0013bb10 JMP 0x001ab700 LAB_001ab766: MOV RAX,qword ptr [RSP + 0x10] INC RAX CMP RAX,qword ptr [RSP + 0x8] JNZ 0x001ab6c9 MOV RAX,qword ptr [R14 + 0x40] MOV R15,qword ptr [RSP] TEST R15D,R15D JLE 0x001ab7fe MOV CL,byte ptr [RBX + 0x269] MOV EDX,R15D AND EDX,0x7fffffff LEA RSI,[RBX + 0x128] XOR EDI,EDI MOV R8D,0xffffffff LAB_001ab7a4: TEST CL,CL JZ 0x001ab7c0 MOV R9D,dword ptr [RBX + 0x274] IMUL R9D,dword ptr [RSI] ADD R9D,dword ptr [RSI + -0xc] SUB R9D,dword ptr [RBX + 0x280] JMP 0x001ab7dc LAB_001ab7c0: MOVSXD R10,dword ptr [RBX + 0x284] MOVSXD R11,dword ptr [RBX + 0x28c] MOVSXD R9,dword ptr [RBX + 0x274] IMUL R9,R11 ADD R9,R10 LAB_001ab7dc: CMP R9,R8 JNC 0x001ab841 MOV dword ptr [RAX + RDI*0x4 + 0x8],R9D INC RDI ADD RSI,0x14 CMP RDX,RDI JNZ 0x001ab7a4 CMP R15D,0xa JLE 0x001ab7fe JMP 0x001ab832 LAB_001ab7fa: MOV RAX,qword ptr [R14 + 0x40] LAB_001ab7fe: MOV RCX,R15 SHL RCX,0x20 MOV RSI,-0x100000000 ADD RSI,RCX SAR RSI,0x1e MOVSXD RDX,R15D MOV ECX,dword ptr [RAX + RSI*0x1 + 0x8] INC RDX MOV RSI,RDX LAB_001ab823: MOV dword ptr [RAX + RDX*0x4 + 0x4],ECX INC RSI CMP EDX,0xb MOV RDX,RSI JNZ 0x001ab823 LAB_001ab832: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001ab841: LEA RDI,[0x1c7eb2] LEA RSI,[0x1c792e] LEA RCX,[0x1c7f1f] MOV EDX,0x34e CALL 0x00139540
/* OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan&) */ void __thiscall OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches (SubdivisionPlanBuilder *this,SubdivisionPlan *param_1) { SubdivisionPlanBuilder SVar1; ushort uVar2; int4 uVar3; uint *puVar4; int *piVar5; ulong uVar6; long lVar7; ProtoNode *pPVar8; SubdivisionPlanBuilder *pSVar9; ulong uVar10; long lVar11; long lVar12; uint uVar13; long lVar14; std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(param_1 + 0x58),(long)*(int *)(this + 0x288)); lVar14 = (*(long *)(*(long *)(this + 0x108) + 0x68) - *(long *)(*(long *)(this + 0x108) + 0x60) >> 3) * -0x5555555555555555; uVar13 = (uint)lVar14; if ((int)uVar13 < 1) { lVar7 = *(long *)(param_1 + 0x40); } else { uVar6 = 0; do { lVar7 = *(long *)(this + uVar6 * 0x18); if (0 < (int)((ulong)(*(long *)(this + uVar6 * 0x18 + 8) - lVar7) >> 3) * -0x33333333) { lVar11 = 0; lVar12 = 0; do { uVar2 = *(ushort *)(lVar7 + 0xc + lVar11); if ((uVar2 & 1) != 0) { pPVar8 = (ProtoNode *)(lVar7 + lVar11); puVar4 = *(uint **)(param_1 + 0x40); piVar5 = *(int **)(param_1 + 0x58); switch(uVar2 >> 1 & 3) { case 0: encodeRegularNode(this,pPVar8,puVar4,piVar5); break; case 1: encodeRecursiveNode(this,pPVar8,puVar4,piVar5); break; case 2: encodeTerminalNode(this,pPVar8,puVar4,piVar5); break; case 3: encodeEndCapNode(this,pPVar8,puVar4,piVar5); } } lVar12 = lVar12 + 1; lVar7 = *(long *)(this + uVar6 * 0x18); lVar11 = lVar11 + 0x28; } while (lVar12 < (int)((ulong)(*(long *)(this + uVar6 * 0x18 + 8) - lVar7) >> 3) * -0x33333333); } uVar6 = uVar6 + 1; } while (uVar6 != (uVar13 & 0x7fffffff)); lVar7 = *(long *)(param_1 + 0x40); if (0 < (int)uVar13) { SVar1 = this[0x269]; pSVar9 = this + 0x128; uVar6 = 0; do { if (SVar1 == (SubdivisionPlanBuilder)0x0) { uVar10 = (long)*(int *)(this + 0x274) * (long)*(int *)(this + 0x28c) + (long)*(int *)(this + 0x284); } else { uVar10 = (ulong)(uint)((*(int *)(this + 0x274) * *(int *)pSVar9 + *(int *)(pSVar9 + -0xc)) - *(int *)(this + 0x280)); } if (0xfffffffe < uVar10) { /* WARNING: Subroutine does not return */ __assert_fail("npoints < std::numeric_limits<std::remove_reference<decltype(*TreeDescriptor::numPatchPoints)>::type>::max()" , "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlanBuilder.cpp" ,0x34e, "void OpenSubdiv::v3_6_0::Tmr::SubdivisionPlanBuilder::initializePatches(SubdivisionPlan &)" ); } *(int *)(lVar7 + 8 + uVar6 * 4) = (int)uVar10; uVar6 = uVar6 + 1; pSVar9 = pSVar9 + 0x14; } while ((uVar13 & 0x7fffffff) != uVar6); if (10 < (int)uVar13) { return; } } } lVar11 = (long)(int)uVar13; uVar3 = *(int4 *)(lVar7 + 8 + ((lVar14 << 0x20) + -0x100000000 >> 0x1e)); do { lVar11 = lVar11 + 1; *(int4 *)(lVar7 + 4 + lVar11 * 4) = uVar3; } while ((int)lVar11 != 0xb); return; }
32,277
my_realloc
eloqsql/mysys/my_malloc.c
void *my_realloc(PSI_memory_key key, void *old_point, size_t size, myf my_flags) { my_memory_header *old_mh, *mh; void *point; size_t old_size; my_bool old_flags; DBUG_ENTER("my_realloc"); DBUG_PRINT("my",("ptr: %p size: %zu flags: %lu", old_point, size, my_flags)); DBUG_ASSERT(size > 0); if (!old_point && (my_flags & MY_ALLOW_ZERO_PTR)) DBUG_RETURN(my_malloc(key, size, my_flags)); old_mh= USER_TO_HEADER(old_point); old_size= old_mh->m_size & ~1; old_flags= old_mh->m_size & 1; DBUG_ASSERT(old_mh->m_key == key || old_mh->m_key == PSI_NOT_INSTRUMENTED); DBUG_ASSERT(old_flags == MY_TEST(my_flags & MY_THREAD_SPECIFIC)); size= ALIGN_SIZE(size); mh= sf_realloc(old_mh, size + HEADER_SIZE, my_flags); if (mh == NULL) { if (size < old_size) DBUG_RETURN(old_point); my_errno=errno; if (my_flags & MY_FREE_ON_ERROR) { /* my_free will take care of size accounting */ my_free(old_point); old_point= 0; } if (my_flags & (MY_FAE+MY_WME)) my_error(EE_OUTOFMEMORY, MYF(ME_BELL + ME_FATAL), size); point= NULL; } else { mh->m_size= size | old_flags; mh->m_key= PSI_CALL_memory_realloc(key, old_size, size, & mh->m_owner); update_malloc_size((longlong)size - (longlong)old_size, old_flags); point= HEADER_TO_USER(mh); } DBUG_PRINT("exit",("ptr: %p", point)); DBUG_RETURN(point); }
O3
c
my_realloc: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %rbx testq %rsi, %rsi setne %al testb $0x40, %cl sete %dl orb %al, %dl je 0x46880 movq %rsi, %r15 movl %edi, -0x2c(%rbp) movq %rcx, -0x38(%rbp) leaq -0x18(%rsi), %rdi movq -0x10(%rsi), %r12 movq %r12, %r13 andq $-0x2, %r13 addq $0x7, %rbx andq $-0x8, %rbx leaq 0x18(%rbx), %rsi callq 0x265e0 testq %rax, %rax je 0x46899 movq %rax, %r14 andl $0x1, %r12d movq %r12, %rax orq %rbx, %rax movq %rax, 0x8(%r14) leaq 0x2d36a9(%rip), %rax # 0x319ef8 movq (%rax), %rax movl -0x2c(%rbp), %edi movq %r13, %rsi movq %rbx, %rdx movq %r14, %rcx callq *0x3e8(%rax) movl %eax, 0x10(%r14) subq %r13, %rbx movq %rbx, %rdi movl %r12d, %esi callq *0x2d3189(%rip) # 0x319a00 addq $0x18, %r14 movq %r14, %r15 jmp 0x468dc movq %rbx, %rsi movq %rcx, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x466c1 cmpq %r13, %rbx jb 0x468dc callq 0x26060 movl (%rax), %r14d callq 0x47692 movl %r14d, (%rax) movq -0x38(%rbp), %r14 testb %r14b, %r14b jns 0x468bf movq %r15, %rdi callq 0x468ee xorl %r15d, %r15d testb $0x18, %r14b je 0x468dc movl $0x1004, %esi # imm = 0x1004 movl $0x5, %edi movq %rbx, %rdx xorl %eax, %eax callq 0x4c83b movq %r15, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_realloc: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdx test rsi, rsi setnz al test cl, 40h setz dl or dl, al jz short loc_46880 mov r15, rsi mov [rbp+var_2C], edi mov [rbp+var_38], rcx lea rdi, [rsi-18h] mov r12, [rsi-10h] mov r13, r12 and r13, 0FFFFFFFFFFFFFFFEh add rbx, 7 and rbx, 0FFFFFFFFFFFFFFF8h lea rsi, [rbx+18h] call _realloc test rax, rax jz short loc_46899 mov r14, rax and r12d, 1 mov rax, r12 or rax, rbx mov [r14+8], rax lea rax, PSI_server mov rax, [rax] mov edi, [rbp+var_2C] mov rsi, r13 mov rdx, rbx mov rcx, r14 call qword ptr [rax+3E8h] mov [r14+10h], eax sub rbx, r13 mov rdi, rbx mov esi, r12d call cs:update_malloc_size add r14, 18h mov r15, r14 jmp short loc_468DC loc_46880: mov rsi, rbx mov rdx, rcx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp my_malloc loc_46899: cmp rbx, r13 jb short loc_468DC call ___errno_location mov r14d, [rax] call _my_thread_var mov [rax], r14d mov r14, [rbp+var_38] test r14b, r14b jns short loc_468BF mov rdi, r15 call my_free loc_468BF: xor r15d, r15d test r14b, 18h jz short loc_468DC mov esi, 1004h mov edi, 5 mov rdx, rbx xor eax, eax call my_error loc_468DC: mov rax, r15 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_realloc(unsigned int a1, long long a2, unsigned long long a3, char a4) { long long v4; // r15 long long v5; // r12 unsigned long long v6; // r13 unsigned long long v7; // rbx long long v8; // rax long long v9; // r14 int v11; // r14d int v12; // ecx int v13; // r8d int v14; // r9d if ( a2 == 0 && (a4 & 0x40) != 0 ) return my_malloc(a1, a3, a4); v4 = a2; v5 = *(_QWORD *)(a2 - 16); v6 = v5 & 0xFFFFFFFFFFFFFFFELL; v7 = (a3 + 7) & 0xFFFFFFFFFFFFFFF8LL; v8 = realloc(a2 - 24, v7 + 24); if ( v8 ) { v9 = v8; *(_QWORD *)(v8 + 8) = v7 | v5 & 1; *(_DWORD *)(v8 + 16) = ((long long ( *)(_QWORD, unsigned long long, unsigned long long, long long))PSI_server[125])( a1, v6, v7, v8); update_malloc_size(); return v9 + 24; } else if ( v7 >= v6 ) { v11 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var() = v11; if ( a4 < 0 ) my_free(a2); v4 = 0LL; if ( (a4 & 0x18) != 0 ) my_error(5, 4100, v7, v12, v13, v14); } return v4; }
my_realloc: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDX TEST RSI,RSI SETNZ AL TEST CL,0x40 SETZ DL OR DL,AL JZ 0x00146880 MOV R15,RSI MOV dword ptr [RBP + -0x2c],EDI MOV qword ptr [RBP + -0x38],RCX LEA RDI,[RSI + -0x18] MOV R12,qword ptr [RSI + -0x10] MOV R13,R12 AND R13,-0x2 ADD RBX,0x7 AND RBX,-0x8 LEA RSI,[RBX + 0x18] CALL 0x001265e0 TEST RAX,RAX JZ 0x00146899 MOV R14,RAX AND R12D,0x1 MOV RAX,R12 OR RAX,RBX MOV qword ptr [R14 + 0x8],RAX LEA RAX,[0x419ef8] MOV RAX,qword ptr [RAX] MOV EDI,dword ptr [RBP + -0x2c] MOV RSI,R13 MOV RDX,RBX MOV RCX,R14 CALL qword ptr [RAX + 0x3e8] MOV dword ptr [R14 + 0x10],EAX SUB RBX,R13 MOV RDI,RBX MOV ESI,R12D CALL qword ptr [0x00419a00] ADD R14,0x18 MOV R15,R14 JMP 0x001468dc LAB_00146880: MOV RSI,RBX MOV RDX,RCX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001466c1 LAB_00146899: CMP RBX,R13 JC 0x001468dc CALL 0x00126060 MOV R14D,dword ptr [RAX] CALL 0x00147692 MOV dword ptr [RAX],R14D MOV R14,qword ptr [RBP + -0x38] TEST R14B,R14B JNS 0x001468bf MOV RDI,R15 CALL 0x001468ee LAB_001468bf: XOR R15D,R15D TEST R14B,0x18 JZ 0x001468dc MOV ESI,0x1004 MOV EDI,0x5 MOV RDX,RBX XOR EAX,EAX CALL 0x0014c83b LAB_001468dc: MOV RAX,R15 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_realloc(ulong param_1,long param_2,long param_3,ulong param_4) { int iVar1; int4 uVar2; void *pvVar3; long lVar4; int *piVar5; ulong uVar6; ulong uVar7; ulong uVar8; if ((param_4 & 0x40) == 0 || param_2 != 0) { uVar7 = *(ulong *)(param_2 + -0x10); uVar8 = uVar7 & 0xfffffffffffffffe; uVar6 = param_3 + 7U & 0xfffffffffffffff8; pvVar3 = realloc((void *)(param_2 + -0x18),uVar6 + 0x18); if (pvVar3 == (void *)0x0) { if (uVar8 <= uVar6) { piVar5 = __errno_location(); iVar1 = *piVar5; piVar5 = (int *)_my_thread_var(); *piVar5 = iVar1; if ((char)param_4 < '\0') { my_free(param_2); } param_2 = 0; if ((param_4 & 0x18) != 0) { my_error(5,0x1004,uVar6); param_2 = 0; } } } else { uVar7 = (ulong)((uint)uVar7 & 1); *(ulong *)((long)pvVar3 + 8) = uVar7 | uVar6; uVar2 = (**(code **)(PSI_server + 1000))(param_1 & 0xffffffff,uVar8,uVar6,pvVar3); *(int4 *)((long)pvVar3 + 0x10) = uVar2; (*(code *)update_malloc_size)(uVar6 - uVar8,uVar7); param_2 = (long)pvVar3 + 0x18; } return param_2; } lVar4 = my_malloc(param_1,param_3,param_4); return lVar4; }
32,278
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double)
llama.cpp/common/json.hpp
void dump_float(number_float_t x) { // NaN / inf if (!std::isfinite(x)) { o->write_characters("null", 4); return; } // If number_float_t is an IEEE-754 single or double precision number, // use the Grisu2 algorithm to produce short numbers which are // guaranteed to round-trip, using strtof and strtod, resp. // // NB: The test below works if <long double> == <double>. static constexpr bool is_ieee_single_or_double = (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) || (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024); dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>()); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq %xmm0, %rax btrq $0x3f, %rax movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000 cmpq %rcx, %rax jl 0xd0b7d movq (%rbx), %rdi movq (%rdi), %rax movq 0x8(%rax), %rax leaq 0x51489(%rip), %rsi # 0x121ff8 movl $0x4, %edx addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rax leaq 0x10(%rbx), %r14 leaq 0x50(%rbx), %rsi movq %r14, %rdi callq 0x7f1f3 movq (%rbx), %rdi subq %r14, %rax movq (%rdi), %rcx movq 0x8(%rcx), %rcx movq %r14, %rsi movq %rax, %rdx addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rcx nop
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEd: push r14 push rbx push rax mov rbx, rdi movq rax, xmm0 btr rax, 3Fh ; '?' mov rcx, 7FF0000000000000h cmp rax, rcx jl short loc_D0B7D mov rdi, [rbx] mov rax, [rdi] mov rax, [rax+8] lea rsi, aOnNull_0+5; "null" mov edx, 4 add rsp, 8 pop rbx pop r14 jmp rax loc_D0B7D: lea r14, [rbx+10h] lea rsi, [rbx+50h] mov rdi, r14; this call _ZN8nlohmann16json_abi_v3_11_36detail8to_charsIdEEPcS3_PKcT_; nlohmann::json_abi_v3_11_3::detail::to_chars<double>(char *,char const*,double) mov rdi, [rbx] sub rax, r14 mov rcx, [rdi] mov rcx, [rcx+8] mov rsi, r14 mov rdx, rax add rsp, 8 pop rbx pop r14 jmp rcx
long long nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float( _QWORD *a1, __m128i a2) { long long v3; // rax if ( (a2.m128i_i64[0] & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL ) return (*(long long ( **)(_QWORD, char *, long long))(*(_QWORD *)*a1 + 8LL))(*a1, "null", 4LL); v3 = nlohmann::json_abi_v3_11_3::detail::to_chars<double>( (nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)(a1 + 2), (long long)(a1 + 10), a2); return (*(long long ( **)(_QWORD, _QWORD *, long long))(*(_QWORD *)*a1 + 8LL))( *a1, a1 + 2, v3 - (_QWORD)(a1 + 2)); }
dump_float: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOVQ RAX,XMM0 BTR RAX,0x3f MOV RCX,0x7ff0000000000000 CMP RAX,RCX JL 0x001d0b7d MOV RDI,qword ptr [RBX] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x8] LEA RSI,[0x221ff8] MOV EDX,0x4 ADD RSP,0x8 POP RBX POP R14 JMP RAX LAB_001d0b7d: LEA R14,[RBX + 0x10] LEA RSI,[RBX + 0x50] MOV RDI,R14 CALL 0x0017f1f3 MOV RDI,qword ptr [RBX] SUB RAX,R14 MOV RCX,qword ptr [RDI] MOV RCX,qword ptr [RCX + 0x8] MOV RSI,R14 MOV RDX,RAX ADD RSP,0x8 POP RBX POP R14 JMP RCX
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::dump_float(double) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::dump_float(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,double param_1) { serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *psVar1; code *UNRECOVERED_JUMPTABLE; char *pcVar2; if (0x7fefffffffffffff < (ulong)ABS(param_1)) { /* WARNING: Could not recover jumptable at 0x001d0b7b. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(**(long **)this + 8))(*(long **)this,"null",4); return; } psVar1 = this + 0x10; pcVar2 = to_chars<double>((char *)psVar1,(char *)(this + 0x50),param_1); UNRECOVERED_JUMPTABLE = *(code **)(**(long **)this + 8); /* WARNING: Could not recover jumptable at 0x001d0ba7. Too many branches */ /* WARNING: Treating indirect jump as call */ (*UNRECOVERED_JUMPTABLE)(*(long **)this,psVar1,(long)pcVar2 - (long)psVar1,UNRECOVERED_JUMPTABLE); return; }
32,279
mbedtls_gcm_update
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/gcm.c
int mbedtls_gcm_update(mbedtls_gcm_context *ctx, size_t length, const unsigned char *input, unsigned char *output) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; unsigned char ectr[16]; size_t i; const unsigned char *p; unsigned char *out_p = output; size_t use_len, olen = 0; GCM_VALIDATE_RET(ctx != NULL); GCM_VALIDATE_RET(length == 0 || input != NULL); GCM_VALIDATE_RET(length == 0 || output != NULL); if (output > input && (size_t) (output - input) < length) { return MBEDTLS_ERR_GCM_BAD_INPUT; } /* Total length is restricted to 2^39 - 256 bits, ie 2^36 - 2^5 bytes * Also check for possible overflow */ if (ctx->len + length < ctx->len || (uint64_t) ctx->len + length > 0xFFFFFFFE0ull) { return MBEDTLS_ERR_GCM_BAD_INPUT; } ctx->len += length; p = input; while (length > 0) { use_len = (length < 16) ? length : 16; for (i = 16; i > 12; i--) { if (++ctx->y[i - 1] != 0) { break; } } if ((ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->y, 16, ectr, &olen)) != 0) { return ret; } for (i = 0; i < use_len; i++) { if (ctx->mode == MBEDTLS_GCM_DECRYPT) { ctx->buf[i] ^= p[i]; } out_p[i] = ectr[i] ^ p[i]; if (ctx->mode == MBEDTLS_GCM_ENCRYPT) { ctx->buf[i] ^= out_p[i]; } } gcm_mult(ctx, ctx->buf, ctx->buf); length -= use_len; p += use_len; out_p += use_len; } return 0; }
O3
c
mbedtls_gcm_update: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %rbx movq %rdx, %r14 movq $0x0, 0x8(%rsp) movq %rcx, %rax subq %rdx, %rax seta %cl cmpq %rsi, %rax setb %dl movl $0xffffffec, %eax # imm = 0xFFFFFFEC testb %dl, %cl jne 0x9cec2 movq %rsi, %r15 movq %rdi, %r12 movq 0x158(%rdi), %rcx addq %rsi, %rcx setb %dl movabsq $0xfffffffe0, %rsi # imm = 0xFFFFFFFE0 cmpq %rsi, %rcx seta %sil orb %dl, %sil jne 0x9cec2 movq %rcx, 0x158(%r12) testq %r15, %r15 je 0x9cec0 leaq 0x178(%r12), %rax movq %rax, (%rsp) leaq 0x188(%r12), %rbp cmpq $0x10, %r15 movl $0x10, %r13d cmovbq %r15, %r13 movl $0x187, %eax # imm = 0x187 leaq -0x177(%rax), %rcx cmpq $0xd, %rcx jb 0x9ce3a incb (%r12,%rax) leaq -0x1(%rax), %rax je 0x9ce23 movl $0x10, %edx movq %r12, %rdi movq (%rsp), %rsi leaq 0x10(%rsp), %rcx leaq 0x8(%rsp), %r8 callq 0x9a518 testl %eax, %eax jne 0x9cec2 cmpq $0x1, %r13 movq %r13, %rax adcq $0x0, %rax xorl %ecx, %ecx cmpl $0x0, 0x198(%r12) jne 0x9ce7d movb (%r14,%rcx), %dl xorb %dl, 0x188(%r12,%rcx) movb (%r14,%rcx), %dl xorb 0x10(%rsp,%rcx), %dl movb %dl, (%rbx,%rcx) cmpl $0x1, 0x198(%r12) jne 0x9ce9b xorb %dl, 0x188(%r12,%rcx) incq %rcx cmpq %rcx, %rax jne 0x9ce66 movq %r12, %rdi movq %rbp, %rsi movq %rbp, %rdx callq 0x9cc20 addq %r13, %r14 addq %r13, %rbx subq %r13, %r15 jne 0x9ce10 xorl %eax, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
mbedtls_gcm_update: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rcx mov r14, rdx mov [rsp+58h+var_50], 0 mov rax, rcx sub rax, rdx setnbe cl cmp rax, rsi setb dl mov eax, 0FFFFFFECh test cl, dl jnz loc_9CEC2 mov r15, rsi mov r12, rdi mov rcx, [rdi+158h] add rcx, rsi setb dl mov rsi, 0FFFFFFFE0h cmp rcx, rsi setnbe sil or sil, dl jnz loc_9CEC2 mov [r12+158h], rcx test r15, r15 jz loc_9CEC0 lea rax, [r12+178h] mov [rsp+58h+var_58], rax lea rbp, [r12+188h] loc_9CE10: cmp r15, 10h mov r13d, 10h cmovb r13, r15 mov eax, 187h loc_9CE23: lea rcx, [rax-177h] cmp rcx, 0Dh jb short loc_9CE3A inc byte ptr [r12+rax] lea rax, [rax-1] jz short loc_9CE23 loc_9CE3A: mov edx, 10h mov rdi, r12 mov rsi, [rsp+58h+var_58] lea rcx, [rsp+58h+var_48] lea r8, [rsp+58h+var_50] call mbedtls_cipher_update test eax, eax jnz short loc_9CEC2 cmp r13, 1 mov rax, r13 adc rax, 0 xor ecx, ecx loc_9CE66: cmp dword ptr [r12+198h], 0 jnz short loc_9CE7D mov dl, [r14+rcx] xor [r12+rcx+188h], dl loc_9CE7D: mov dl, [r14+rcx] xor dl, [rsp+rcx+58h+var_48] mov [rbx+rcx], dl cmp dword ptr [r12+198h], 1 jnz short loc_9CE9B xor [r12+rcx+188h], dl loc_9CE9B: inc rcx cmp rax, rcx jnz short loc_9CE66 mov rdi, r12 mov rsi, rbp mov rdx, rbp call gcm_mult add r14, r13 add rbx, r13 sub r15, r13 jnz loc_9CE10 loc_9CEC0: xor eax, eax loc_9CEC2: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mbedtls_gcm_update(long long a1, unsigned long long a2, unsigned long long a3, unsigned long long a4) { unsigned long long v4; // rbx unsigned long long v5; // r14 unsigned long long v6; // rax bool v7; // cl bool v8; // dl long long result; // rax unsigned long long v10; // r15 long long v11; // rcx bool v12; // cf unsigned long long v13; // rcx long long v14; // r13 long long v15; // rax long long v17; // rcx char v18; // dl unsigned long long v19; // [rsp+8h] [rbp-50h] BYREF _BYTE v20[72]; // [rsp+10h] [rbp-48h] BYREF v4 = a4; v5 = a3; v19 = 0LL; v6 = a4 - a3; v7 = a4 > a3; v8 = v6 < a2; result = 4294967276LL; if ( !v8 || !v7 ) { v10 = a2; v11 = *(_QWORD *)(a1 + 344); v12 = __CFADD__(a2, v11); v13 = a2 + v11; if ( !v12 && v13 <= 0xFFFFFFFE0LL ) { *(_QWORD *)(a1 + 344) = v13; if ( a2 ) { while ( 1 ) { v14 = 16LL; if ( v10 < 0x10 ) v14 = v10; v15 = 391LL; do { if ( (unsigned long long)(v15 - 375) < 0xD ) break; } while ( (*(_BYTE *)(a1 + v15--))++ == 0xFF ); result = mbedtls_cipher_update((long long *)a1, a1 + 376, 0x10uLL, (long long)v20, &v19); if ( (_DWORD)result ) break; v17 = 0LL; do { if ( !*(_DWORD *)(a1 + 408) ) *(_BYTE *)(a1 + v17 + 392) ^= *(_BYTE *)(v5 + v17); v18 = v20[v17] ^ *(_BYTE *)(v5 + v17); *(_BYTE *)(v4 + v17) = v18; if ( *(_DWORD *)(a1 + 408) == 1 ) *(_BYTE *)(a1 + v17 + 392) ^= v18; ++v17; } while ( (v14 == 0) + v14 != v17 ); gcm_mult(a1, (const __m128i *)(a1 + 392), (__m128i *)(a1 + 392)); v5 += v14; v4 += v14; v10 -= v14; if ( !v10 ) return 0LL; } } else { return 0LL; } } } return result; }
mbedtls_gcm_update: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RCX MOV R14,RDX MOV qword ptr [RSP + 0x8],0x0 MOV RAX,RCX SUB RAX,RDX SETA CL CMP RAX,RSI SETC DL MOV EAX,0xffffffec TEST CL,DL JNZ 0x0019cec2 MOV R15,RSI MOV R12,RDI MOV RCX,qword ptr [RDI + 0x158] ADD RCX,RSI SETC DL MOV RSI,0xfffffffe0 CMP RCX,RSI SETA SIL OR SIL,DL JNZ 0x0019cec2 MOV qword ptr [R12 + 0x158],RCX TEST R15,R15 JZ 0x0019cec0 LEA RAX,[R12 + 0x178] MOV qword ptr [RSP],RAX LEA RBP,[R12 + 0x188] LAB_0019ce10: CMP R15,0x10 MOV R13D,0x10 CMOVC R13,R15 MOV EAX,0x187 LAB_0019ce23: LEA RCX,[RAX + -0x177] CMP RCX,0xd JC 0x0019ce3a INC byte ptr [R12 + RAX*0x1] LEA RAX,[RAX + -0x1] JZ 0x0019ce23 LAB_0019ce3a: MOV EDX,0x10 MOV RDI,R12 MOV RSI,qword ptr [RSP] LEA RCX,[RSP + 0x10] LEA R8,[RSP + 0x8] CALL 0x0019a518 TEST EAX,EAX JNZ 0x0019cec2 CMP R13,0x1 MOV RAX,R13 ADC RAX,0x0 XOR ECX,ECX LAB_0019ce66: CMP dword ptr [R12 + 0x198],0x0 JNZ 0x0019ce7d MOV DL,byte ptr [R14 + RCX*0x1] XOR byte ptr [R12 + RCX*0x1 + 0x188],DL LAB_0019ce7d: MOV DL,byte ptr [R14 + RCX*0x1] XOR DL,byte ptr [RSP + RCX*0x1 + 0x10] MOV byte ptr [RBX + RCX*0x1],DL CMP dword ptr [R12 + 0x198],0x1 JNZ 0x0019ce9b XOR byte ptr [R12 + RCX*0x1 + 0x188],DL LAB_0019ce9b: INC RCX CMP RAX,RCX JNZ 0x0019ce66 MOV RDI,R12 MOV RSI,RBP MOV RDX,RBP CALL 0x0019cc20 ADD R14,R13 ADD RBX,R13 SUB R15,R13 JNZ 0x0019ce10 LAB_0019cec0: XOR EAX,EAX LAB_0019cec2: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 mbedtls_gcm_update(long param_1,ulong param_2,ulong param_3,ulong param_4) { char *pcVar1; byte *pbVar2; int8 uVar3; long lVar4; ulong uVar5; byte bVar6; int8 local_50; byte local_48 [24]; local_50 = 0; uVar3 = 0xffffffec; if ((param_4 <= param_3 || param_2 <= param_4 - param_3) && (uVar5 = *(ulong *)(param_1 + 0x158) + param_2, uVar5 < 0xfffffffe1 && !CARRY8(*(ulong *)(param_1 + 0x158),param_2))) { *(ulong *)(param_1 + 0x158) = uVar5; if (param_2 != 0) { do { uVar5 = 0x10; if (param_2 < 0x10) { uVar5 = param_2; } lVar4 = 0x187; do { if (lVar4 - 0x177U < 0xd) break; pcVar1 = (char *)(param_1 + lVar4); *pcVar1 = *pcVar1 + '\x01'; lVar4 = lVar4 + -1; } while (*pcVar1 == '\0'); uVar3 = mbedtls_cipher_update(param_1,param_1 + 0x178,0x10,local_48,&local_50); if ((int)uVar3 != 0) { return uVar3; } lVar4 = 0; do { if (*(int *)(param_1 + 0x198) == 0) { pbVar2 = (byte *)(param_1 + 0x188 + lVar4); *pbVar2 = *pbVar2 ^ *(byte *)(param_3 + lVar4); } bVar6 = *(byte *)(param_3 + lVar4) ^ local_48[lVar4]; *(byte *)(param_4 + lVar4) = bVar6; if (*(int *)(param_1 + 0x198) == 1) { pbVar2 = (byte *)(param_1 + 0x188 + lVar4); *pbVar2 = *pbVar2 ^ bVar6; } lVar4 = lVar4 + 1; } while (uVar5 + (uVar5 == 0) != lVar4); gcm_mult(param_1,param_1 + 0x188,param_1 + 0x188); param_3 = param_3 + uVar5; param_4 = param_4 + uVar5; param_2 = param_2 - uVar5; } while (param_2 != 0); } uVar3 = 0; } return uVar3; }
32,280
ma_hash_password
eloqsql/libmariadb/libmariadb/ma_password.c
void ma_hash_password(ulong *result, const char *password, size_t len) { register ulong nr=1345345333L, add=7, nr2=0x12345671L; ulong tmp; const char *password_end= password + len; for (; password < password_end; password++) { if (*password == ' ' || *password == '\t') continue; /* skip space in password */ tmp= (ulong) (uchar) *password; nr^= (((nr & 63)+add)*tmp)+ (nr << 8); nr2+=(nr2 << 8) ^ nr; add+=tmp; } result[0]=nr & (((ulong) 1L << 31) -1L); /* Don't use sign bit (str2int) */; result[1]=nr2 & (((ulong) 1L << 31) -1L); return; }
O3
c
ma_hash_password: testq %rdx, %rdx jle 0x36f49 pushq %rbp movq %rsp, %rbp addq %rsi, %rdx movl $0x7, %r8d movl $0x12345671, %eax # imm = 0x12345671 movl $0x50305735, %ecx # imm = 0x50305735 movzbl (%rsi), %r9d cmpl $0x9, %r9d je 0x36f33 cmpl $0x20, %r9d je 0x36f33 movl %ecx, %r10d andl $0x3f, %r10d addq %r8, %r10 imulq %r9, %r10 movq %rcx, %r11 shlq $0x8, %r11 addq %r10, %r11 xorq %r11, %rcx movq %rax, %r10 shlq $0x8, %r10 xorq %rcx, %r10 addq %r10, %rax addq %r9, %r8 incq %rsi cmpq %rdx, %rsi jb 0x36ef8 movl $0x7fffffff, %edx # imm = 0x7FFFFFFF andq %rdx, %rcx andq %rdx, %rax popq %rbp jmp 0x36f53 movl $0x50305735, %ecx # imm = 0x50305735 movl $0x12345671, %eax # imm = 0x12345671 movq %rcx, (%rdi) movq %rax, 0x8(%rdi) retq
ma_hash_password: test rdx, rdx jle short loc_36F49 push rbp mov rbp, rsp add rdx, rsi mov r8d, 7 mov eax, 12345671h mov ecx, 50305735h loc_36EF8: movzx r9d, byte ptr [rsi] cmp r9d, 9 jz short loc_36F33 cmp r9d, 20h ; ' ' jz short loc_36F33 mov r10d, ecx and r10d, 3Fh add r10, r8 imul r10, r9 mov r11, rcx shl r11, 8 add r11, r10 xor rcx, r11 mov r10, rax shl r10, 8 xor r10, rcx add rax, r10 add r8, r9 loc_36F33: inc rsi cmp rsi, rdx jb short loc_36EF8 mov edx, 7FFFFFFFh and rcx, rdx and rax, rdx pop rbp jmp short loc_36F53 loc_36F49: mov ecx, 50305735h mov eax, 12345671h loc_36F53: mov [rdi], rcx mov [rdi+8], rax retn
long long ma_hash_password(long long *a1, unsigned __int8 *a2, long long a3) { unsigned __int8 *v3; // rdx long long v4; // r8 int v5; // eax int v6; // ecx long long v7; // r9 long long v8; // rcx long long result; // rax if ( a3 <= 0 ) { v8 = 1345345333LL; result = 305419889LL; } else { v3 = &a2[a3]; v4 = 7LL; v5 = 305419889; v6 = 1345345333; do { v7 = *a2; if ( (_DWORD)v7 != 9 && (_DWORD)v7 != 32 ) { v6 ^= v7 * (v4 + (v6 & 0x3F)) + (v6 << 8); v5 += v6 ^ (v5 << 8); v4 += v7; } ++a2; } while ( a2 < v3 ); v8 = v6 & 0x7FFFFFFF; result = v5 & 0x7FFFFFFF; } *a1 = v8; a1[1] = result; return result; }
ma_hash_password: TEST RDX,RDX JLE 0x00136f49 PUSH RBP MOV RBP,RSP ADD RDX,RSI MOV R8D,0x7 MOV EAX,0x12345671 MOV ECX,0x50305735 LAB_00136ef8: MOVZX R9D,byte ptr [RSI] CMP R9D,0x9 JZ 0x00136f33 CMP R9D,0x20 JZ 0x00136f33 MOV R10D,ECX AND R10D,0x3f ADD R10,R8 IMUL R10,R9 MOV R11,RCX SHL R11,0x8 ADD R11,R10 XOR RCX,R11 MOV R10,RAX SHL R10,0x8 XOR R10,RCX ADD RAX,R10 ADD R8,R9 LAB_00136f33: INC RSI CMP RSI,RDX JC 0x00136ef8 MOV EDX,0x7fffffff AND RCX,RDX AND RAX,RDX POP RBP JMP 0x00136f53 LAB_00136f49: MOV ECX,0x50305735 MOV EAX,0x12345671 LAB_00136f53: MOV qword ptr [RDI],RCX MOV qword ptr [RDI + 0x8],RAX RET
void ma_hash_password(ulong *param_1,byte *param_2,long param_3) { byte bVar1; ulong uVar2; ulong uVar3; byte *pbVar4; long lVar5; if (param_3 < 1) { uVar3 = 0x50305735; uVar2 = 0x12345671; } else { pbVar4 = param_2 + param_3; lVar5 = 7; uVar2 = 0x12345671; uVar3 = 0x50305735; do { bVar1 = *param_2; if ((bVar1 != 9) && (bVar1 != 0x20)) { uVar3 = uVar3 ^ uVar3 * 0x100 + ((ulong)((uint)uVar3 & 0x3f) + lVar5) * (ulong)bVar1; uVar2 = uVar2 + (uVar2 << 8 ^ uVar3); lVar5 = lVar5 + (ulong)bVar1; } param_2 = param_2 + 1; } while (param_2 < pbVar4); uVar3 = uVar3 & 0x7fffffff; uVar2 = uVar2 & 0x7fffffff; } *param_1 = uVar3; param_1[1] = uVar2; return; }
32,281
ModbusClientPort::readCoils(ModbusObject*, unsigned char, unsigned short, unsigned short, void*)
serhmarch[P]ModbusBridge/modbus/src/ModbusClientPort.cpp
Modbus::StatusCode ModbusClientPort::readCoils(ModbusObject *client, uint8_t unit, uint16_t offset, uint16_t count, void *values) { ModbusClientPortPrivate *d = d_ModbusClientPort(d_ptr); const uint16_t szBuff = 300; uint8_t buff[szBuff]; Modbus::StatusCode r; uint16_t szOutBuff, fcBytes; ModbusClientPort::RequestStatus status = this->getRequestStatus(client); switch (status) { case ModbusClientPort::Enable: if (count > MB_MAX_DISCRETS) { const size_t len = 200; Char errbuff[len]; snprintf(errbuff, len, StringLiteral("ModbusClientPort::readCoils(offset=%hu, count=%hu): Requested count of coils is too large"), offset, count); this->cancelRequest(client); return d->setError(Status_BadNotCorrectRequest, errbuff); } buff[0] = reinterpret_cast<uint8_t*>(&offset)[1]; // Start coil offset - MS BYTE buff[1] = reinterpret_cast<uint8_t*>(&offset)[0]; // Start coil offset - LS BYTE buff[2] = reinterpret_cast<uint8_t*>(&count)[1]; // Quantity of coils - MS BYTE buff[3] = reinterpret_cast<uint8_t*>(&count)[0]; // Quantity of coils - LS BYTE d->count = count; // no need break case ModbusClientPort::Process: r = this->request(unit, // unit ID MBF_READ_COILS, // modbus function number buff, // in-out buffer 4, // count of input data bytes szBuff, // maximum size of buffer &szOutBuff); // count of output data bytes if ((r != Status_Good) || d->isBroadcast()) return r; if (!szOutBuff) return d->setError(Status_BadNotCorrectResponse, StringLiteral("No data was received")); fcBytes = buff[0]; // count of bytes received if (fcBytes != szOutBuff - 1) return d->setError(Status_BadNotCorrectResponse, StringLiteral("Incorrect received data size")); if (fcBytes != ((d->count + 7) / 8)) return d->setError(Status_BadNotCorrectResponse, StringLiteral("'ByteCount' is not match received one")); memcpy(values, &buff[1], fcBytes); return d->setGoodStatus(); default: return Status_Processing; } }
O3
cpp
ModbusClientPort::readCoils(ModbusObject*, unsigned char, unsigned short, unsigned short, void*): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x230, %rsp # imm = 0x230 movq %r9, %r14 movq %rsi, %r12 movq %rdi, %r15 movq 0x8(%rdi), %rbx movq 0x78(%rbx), %rax testq %rax, %rax je 0xa28a movl $0x80000000, %ebp # imm = 0x80000000 cmpq %r12, %rax jne 0xa4d9 jmp 0xa37c movq %r12, 0x78(%rbx) movzwl %r8w, %eax cmpl $0x7f9, %eax # imm = 0x7F9 jb 0xa34e movzwl %cx, %ecx leaq 0xeb04(%rip), %rdx # 0x18dab leaq 0x30(%rsp), %rdi movl $0xc8, %esi movl %eax, %r8d xorl %eax, %eax callq 0x54e0 movq 0x8(%r15), %rax cmpq %r12, 0x78(%rax) jne 0xa2cd movq $0x0, 0x78(%rax) leaq 0x20(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x30(%rsp), %r14 movq %r14, %rdi callq 0x5180 leaq (%rsp,%rax), %rdx addq $0x30, %rdx leaq 0x10(%rsp), %rdi movq %r14, %rsi callq 0x92a8 movabsq $0x100010201000102, %rax # imm = 0x100010201000102 movq %rax, 0x184(%rbx) leaq 0x190(%rbx), %rdi leaq 0x10(%rsp), %rsi callq 0x51c0 movb $0x0, 0x1b0(%rbx) callq 0xfb5a movq %rax, 0x1b8(%rbx) movq 0x10(%rsp), %rdi cmpq %r15, %rdi je 0xa344 movq 0x20(%rsp), %rsi incq %rsi callq 0x5310 movl $0x1000102, %ebp # imm = 0x1000102 jmp 0xa4d9 movl %ecx, %eax shrl $0x8, %eax movl %r8d, %esi shrl $0x8, %esi movb %al, 0x100(%rsp) movb %cl, 0x101(%rsp) movb %sil, 0x102(%rsp) movb %r8b, 0x103(%rsp) movw %r8w, 0x70(%rbx) leaq 0xe(%rsp), %rax movq %rax, (%rsp) movzbl %dl, %esi leaq 0x100(%rsp), %rcx movq %r15, %rdi movl $0x1, %edx movl $0x4, %r8d movl $0x12c, %r9d # imm = 0x12C callq 0xa5b2 movl %eax, %ebp testl %eax, %eax jne 0xa4d9 xorl %ebp, %ebp cmpb $0x0, 0x6c(%rbx) jne 0xa3c8 testb $0x1, 0x1c4(%rbx) jne 0xa4d9 movzwl 0xe(%rsp), %ecx testl %ecx, %ecx je 0xa416 movzbl 0x100(%rsp), %eax decl %ecx cmpl %eax, %ecx jne 0xa467 movzwl 0x70(%rbx), %ecx addl $0x7, %ecx shrl $0x3, %ecx cmpl %eax, %ecx jne 0xa4eb leaq 0x101(%rsp), %rsi movl %eax, %edx movq %r14, %rdi callq 0x52a0 movl $0x0, 0x184(%rbx) jmp 0xa4d9 leaq 0x40(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0xe9df(%rip), %rsi # 0x18e05 leaq 0xe9ec(%rip), %rdx # 0x18e19 leaq 0x30(%rsp), %rdi callq 0x92a8 movabsq $0x100010301000103, %rax # imm = 0x100010301000103 movq %rax, 0x184(%rbx) leaq 0x190(%rbx), %rdi leaq 0x30(%rsp), %rsi callq 0x51c0 movb $0x0, 0x1b0(%rbx) callq 0xfb5a jmp 0xa4b6 leaq 0x40(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0xe9a3(%rip), %rsi # 0x18e1a leaq 0xe9b8(%rip), %rdx # 0x18e36 leaq 0x30(%rsp), %rdi callq 0x92a8 movabsq $0x100010301000103, %rax # imm = 0x100010301000103 movq %rax, 0x184(%rbx) leaq 0x190(%rbx), %rdi leaq 0x30(%rsp), %rsi callq 0x51c0 movb $0x0, 0x1b0(%rbx) callq 0xfb5a movq %rax, 0x1b8(%rbx) movq 0x30(%rsp), %rdi cmpq %r14, %rdi je 0xa4d4 movq 0x40(%rsp), %rsi incq %rsi callq 0x5310 movl $0x1000103, %ebp # imm = 0x1000103 movl %ebp, %eax addq $0x230, %rsp # imm = 0x230 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq 0x40(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0xe93c(%rip), %rsi # 0x18e37 leaq 0xe95a(%rip), %rdx # 0x18e5c leaq 0x30(%rsp), %rdi callq 0x92a8 leaq 0x30(%rsp), %rdx movq %rbx, %rdi movl $0x1000103, %esi # imm = 0x1000103 callq 0xd950 movl %eax, %ebp movq 0x30(%rsp), %rdi cmpq %r14, %rdi je 0xa4d9 movq 0x40(%rsp), %rsi incq %rsi callq 0x5310 jmp 0xa4d9 jmp 0xa543 jmp 0xa557 jmp 0xa557 jmp 0xa557 jmp 0xa543 movq %rax, %rbx movq 0x30(%rsp), %rdi cmpq %r14, %rdi je 0xa576 movq 0x40(%rsp), %rsi jmp 0xa56e movq %rax, %rbx jmp 0xa576 movq %rax, %rbx movq 0x10(%rsp), %rdi cmpq %r15, %rdi je 0xa576 movq 0x20(%rsp), %rsi incq %rsi callq 0x5310 movq %rbx, %rdi callq 0x5550
_ZN16ModbusClientPort9readCoilsEP12ModbusObjecthttPv: push rbp push r15 push r14 push r12 push rbx sub rsp, 230h mov r14, r9 mov r12, rsi mov r15, rdi mov rbx, [rdi+8] mov rax, [rbx+78h] test rax, rax jz short loc_A28A mov ebp, 80000000h cmp rax, r12 jnz loc_A4D9 jmp loc_A37C loc_A28A: mov [rbx+78h], r12 movzx eax, r8w cmp eax, 7F9h jb loc_A34E movzx ecx, cx lea rdx, aModbusclientpo; "ModbusClientPort::readCoils(offset=%hu,"... lea rdi, [rsp+258h+var_228] mov esi, 0C8h mov r8d, eax xor eax, eax call _snprintf mov rax, [r15+8] cmp [rax+78h], r12 jnz short loc_A2CD mov qword ptr [rax+78h], 0 loc_A2CD: lea r15, [rsp+258h+var_238] mov [r15-10h], r15 lea r14, [rsp+258h+var_228] mov rdi, r14 call _strlen lea rdx, [rsp+rax+258h+var_258] add rdx, 30h ; '0' lea rdi, [rsp+258h+var_248] mov rsi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, 100010201000102h mov [rbx+184h], rax lea rdi, [rbx+190h] lea rsi, [rsp+258h+var_248] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) mov byte ptr [rbx+1B0h], 0 call currentTimestamp mov [rbx+1B8h], rax mov rdi, [rsp+258h+var_248]; void * cmp rdi, r15 jz short loc_A344 mov rsi, [rsp+258h+var_238] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A344: mov ebp, 1000102h jmp loc_A4D9 loc_A34E: mov eax, ecx shr eax, 8 mov esi, r8d shr esi, 8 mov [rsp+258h+var_158], al mov [rsp+258h+var_157], cl mov [rsp+258h+var_156], sil mov [rsp+258h+var_155], r8b mov [rbx+70h], r8w loc_A37C: lea rax, [rsp+258h+var_24A] mov [rsp+258h+var_258], rax; unsigned __int16 * movzx esi, dl; unsigned __int8 lea rcx, [rsp+258h+var_158]; unsigned __int8 * mov rdi, r15; this mov edx, 1; unsigned __int8 mov r8d, 4; unsigned __int16 mov r9d, 12Ch; unsigned __int16 call _ZN16ModbusClientPort7requestEhhPhttPt; ModbusClientPort::request(uchar,uchar,uchar *,ushort,ushort,ushort *) mov ebp, eax test eax, eax jnz loc_A4D9 xor ebp, ebp cmp byte ptr [rbx+6Ch], 0 jnz short loc_A3C8 test byte ptr [rbx+1C4h], 1 jnz loc_A4D9 loc_A3C8: movzx ecx, [rsp+258h+var_24A] test ecx, ecx jz short loc_A416 movzx eax, [rsp+258h+var_158] dec ecx cmp ecx, eax jnz loc_A467 movzx ecx, word ptr [rbx+70h] add ecx, 7 shr ecx, 3 cmp ecx, eax jnz loc_A4EB lea rsi, [rsp+258h+var_157] mov edx, eax mov rdi, r14 call _memcpy mov dword ptr [rbx+184h], 0 jmp loc_A4D9 loc_A416: lea r14, [rsp+258h+var_218] mov [r14-10h], r14 lea rsi, aNoDataWasRecei; "No data was received" lea rdx, aNoDataWasRecei+14h; "" lea rdi, [rsp+258h+var_228] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, 100010301000103h mov [rbx+184h], rax lea rdi, [rbx+190h] lea rsi, [rsp+258h+var_228] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) mov byte ptr [rbx+1B0h], 0 call currentTimestamp jmp short loc_A4B6 loc_A467: lea r14, [rsp+258h+var_218] mov [r14-10h], r14 lea rsi, aIncorrectRecei; "Incorrect received data size" lea rdx, aIncorrectRecei+1Ch; "" lea rdi, [rsp+258h+var_228] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, 100010301000103h mov [rbx+184h], rax lea rdi, [rbx+190h] lea rsi, [rsp+258h+var_228] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) mov byte ptr [rbx+1B0h], 0 call currentTimestamp loc_A4B6: mov [rbx+1B8h], rax mov rdi, [rsp+258h+var_228]; void * cmp rdi, r14 jz short loc_A4D4 mov rsi, [rsp+258h+var_218] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A4D4: mov ebp, 1000103h loc_A4D9: mov eax, ebp add rsp, 230h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_A4EB: lea r14, [rsp+258h+var_218] mov [r14-10h], r14 lea rsi, aBytecountIsNot; "'ByteCount' is not match received one" lea rdx, aBytecountIsNot+25h; "" lea rdi, [rsp+258h+var_228] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdx, [rsp+258h+var_228] mov rdi, rbx mov esi, 1000103h call _ZN23ModbusClientPortPrivate8setErrorEN6Modbus10StatusCodeEONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; ModbusClientPortPrivate::setError(Modbus::StatusCode,std::string &&) mov ebp, eax mov rdi, [rsp+258h+var_228]; void * cmp rdi, r14 jz short loc_A4D9 mov rsi, [rsp+258h+var_218] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_A4D9 jmp short loc_A543 jmp short loc_A557 jmp short loc_A557 jmp short loc_A557 jmp short $+2 loc_A543: mov rbx, rax mov rdi, [rsp+arg_28] cmp rdi, r14 jz short loc_A576 mov rsi, [rsp+arg_38] jmp short loc_A56E loc_A557: mov rbx, rax jmp short loc_A576 mov rbx, rax mov rdi, [rsp+arg_8]; void * cmp rdi, r15 jz short loc_A576 mov rsi, [rsp+arg_18] loc_A56E: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A576: mov rdi, rbx call __Unwind_Resume
long long ModbusClientPort::readCoils( ModbusClientPort *this, ModbusObject *a2, unsigned __int8 a3, unsigned __int16 a4, unsigned __int16 a5, void *a6) { long long v7; // rbx ModbusObject *v8; // rax unsigned int v9; // ebp long long v10; // rax long long v11; // rax long long v12; // rax unsigned __int16 v14; // [rsp+Eh] [rbp-24Ah] BYREF void *v15[2]; // [rsp+10h] [rbp-248h] BYREF _QWORD v16[2]; // [rsp+20h] [rbp-238h] BYREF void *v17[2]; // [rsp+30h] [rbp-228h] BYREF _QWORD v18[24]; // [rsp+40h] [rbp-218h] BYREF unsigned __int8 v19; // [rsp+100h] [rbp-158h] BYREF _BYTE v20[343]; // [rsp+101h] [rbp-157h] BYREF v7 = *((_QWORD *)this + 1); v8 = *(ModbusObject **)(v7 + 120); if ( v8 ) { v9 = 0x80000000; if ( v8 != a2 ) return v9; } else { *(_QWORD *)(v7 + 120) = a2; if ( a5 >= 0x7F9u ) { snprintf( v17, 200LL, "ModbusClientPort::readCoils(offset=%hu, count=%hu): Requested count of coils is too large", a4, a5); v10 = *((_QWORD *)this + 1); if ( *(ModbusObject **)(v10 + 120) == a2 ) *(_QWORD *)(v10 + 120) = 0LL; v15[0] = v16; v11 = strlen(v17); std::string::_M_construct<char const*>((long long)v15, v17, (long long)v17 + v11); *(_QWORD *)(v7 + 388) = 0x100010201000102LL; std::string::_M_assign(v7 + 400, v15); *(_BYTE *)(v7 + 432) = 0; *(_QWORD *)(v7 + 440) = currentTimestamp(v7 + 400, v15); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); return 16777474; } v19 = HIBYTE(a4); v20[0] = a4; v20[1] = HIBYTE(a5); v20[2] = a5; *(_WORD *)(v7 + 112) = a5; } v9 = ModbusClientPort::request(this, a3, 1u, &v19, 4u, 0x12Cu, &v14); if ( v9 ) return v9; v9 = 0; if ( !*(_BYTE *)(v7 + 108) && (*(_BYTE *)(v7 + 452) & 1) != 0 ) return v9; if ( v14 ) { if ( v14 - 1 == v19 ) { if ( ((unsigned int)*(unsigned __int16 *)(v7 + 112) + 7) >> 3 == v19 ) { memcpy(a6, v20, v19); *(_DWORD *)(v7 + 388) = 0; } else { v17[0] = v18; std::string::_M_construct<char const*>((long long)v17, "'ByteCount' is not match received one", (long long)""); v9 = ModbusClientPortPrivate::setError(v7, 16777475LL, v17); if ( v17[0] != v18 ) operator delete(v17[0], v18[0] + 1LL); } return v9; } v17[0] = v18; std::string::_M_construct<char const*>((long long)v17, "Incorrect received data size", (long long)""); *(_QWORD *)(v7 + 388) = 0x100010301000103LL; std::string::_M_assign(v7 + 400, v17); *(_BYTE *)(v7 + 432) = 0; v12 = currentTimestamp(v7 + 400, v17); } else { v17[0] = v18; std::string::_M_construct<char const*>((long long)v17, "No data was received", (long long)""); *(_QWORD *)(v7 + 388) = 0x100010301000103LL; std::string::_M_assign(v7 + 400, v17); *(_BYTE *)(v7 + 432) = 0; v12 = currentTimestamp(v7 + 400, v17); } *(_QWORD *)(v7 + 440) = v12; if ( v17[0] != v18 ) operator delete(v17[0], v18[0] + 1LL); return 16777475; }
readCoils: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x230 MOV R14,R9 MOV R12,RSI MOV R15,RDI MOV RBX,qword ptr [RDI + 0x8] MOV RAX,qword ptr [RBX + 0x78] TEST RAX,RAX JZ 0x0010a28a MOV EBP,0x80000000 CMP RAX,R12 JNZ 0x0010a4d9 JMP 0x0010a37c LAB_0010a28a: MOV qword ptr [RBX + 0x78],R12 MOVZX EAX,R8W CMP EAX,0x7f9 JC 0x0010a34e MOVZX ECX,CX LEA RDX,[0x118dab] LEA RDI,[RSP + 0x30] MOV ESI,0xc8 MOV R8D,EAX XOR EAX,EAX CALL 0x001054e0 MOV RAX,qword ptr [R15 + 0x8] CMP qword ptr [RAX + 0x78],R12 JNZ 0x0010a2cd MOV qword ptr [RAX + 0x78],0x0 LAB_0010a2cd: LEA R15,[RSP + 0x20] MOV qword ptr [R15 + -0x10],R15 LEA R14,[RSP + 0x30] MOV RDI,R14 CALL 0x00105180 LEA RDX,[RSP + RAX*0x1] ADD RDX,0x30 LAB_0010a2eb: LEA RDI,[RSP + 0x10] MOV RSI,R14 CALL 0x001092a8 MOV RAX,0x100010201000102 MOV qword ptr [RBX + 0x184],RAX LEA RDI,[RBX + 0x190] LAB_0010a310: LEA RSI,[RSP + 0x10] CALL 0x001051c0 MOV byte ptr [RBX + 0x1b0],0x0 CALL 0x0010fb5a LAB_0010a326: MOV qword ptr [RBX + 0x1b8],RAX MOV RDI,qword ptr [RSP + 0x10] CMP RDI,R15 JZ 0x0010a344 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x00105310 LAB_0010a344: MOV EBP,0x1000102 JMP 0x0010a4d9 LAB_0010a34e: MOV EAX,ECX SHR EAX,0x8 MOV ESI,R8D SHR ESI,0x8 MOV byte ptr [RSP + 0x100],AL MOV byte ptr [RSP + 0x101],CL MOV byte ptr [RSP + 0x102],SIL MOV byte ptr [RSP + 0x103],R8B MOV word ptr [RBX + 0x70],R8W LAB_0010a37c: LEA RAX,[RSP + 0xe] MOV qword ptr [RSP],RAX MOVZX ESI,DL LEA RCX,[RSP + 0x100] MOV RDI,R15 MOV EDX,0x1 MOV R8D,0x4 MOV R9D,0x12c CALL 0x0010a5b2 MOV EBP,EAX TEST EAX,EAX JNZ 0x0010a4d9 XOR EBP,EBP CMP byte ptr [RBX + 0x6c],0x0 JNZ 0x0010a3c8 TEST byte ptr [RBX + 0x1c4],0x1 JNZ 0x0010a4d9 LAB_0010a3c8: MOVZX ECX,word ptr [RSP + 0xe] TEST ECX,ECX JZ 0x0010a416 MOVZX EAX,byte ptr [RSP + 0x100] DEC ECX CMP ECX,EAX JNZ 0x0010a467 MOVZX ECX,word ptr [RBX + 0x70] ADD ECX,0x7 SHR ECX,0x3 CMP ECX,EAX JNZ 0x0010a4eb LEA RSI,[RSP + 0x101] MOV EDX,EAX MOV RDI,R14 CALL 0x001052a0 MOV dword ptr [RBX + 0x184],0x0 JMP 0x0010a4d9 LAB_0010a416: LEA R14,[RSP + 0x40] MOV qword ptr [R14 + -0x10],R14 LAB_0010a41f: LEA RSI,[0x118e05] LEA RDX,[0x118e19] LEA RDI,[RSP + 0x30] CALL 0x001092a8 MOV RAX,0x100010301000103 MOV qword ptr [RBX + 0x184],RAX LEA RDI,[RBX + 0x190] LAB_0010a44f: LEA RSI,[RSP + 0x30] CALL 0x001051c0 MOV byte ptr [RBX + 0x1b0],0x0 CALL 0x0010fb5a JMP 0x0010a4b6 LAB_0010a467: LEA R14,[RSP + 0x40] MOV qword ptr [R14 + -0x10],R14 LAB_0010a470: LEA RSI,[0x118e1a] LEA RDX,[0x118e36] LEA RDI,[RSP + 0x30] CALL 0x001092a8 MOV RAX,0x100010301000103 MOV qword ptr [RBX + 0x184],RAX LEA RDI,[RBX + 0x190] LAB_0010a4a0: LEA RSI,[RSP + 0x30] CALL 0x001051c0 MOV byte ptr [RBX + 0x1b0],0x0 CALL 0x0010fb5a LAB_0010a4b6: MOV qword ptr [RBX + 0x1b8],RAX MOV RDI,qword ptr [RSP + 0x30] CMP RDI,R14 JZ 0x0010a4d4 MOV RSI,qword ptr [RSP + 0x40] INC RSI CALL 0x00105310 LAB_0010a4d4: MOV EBP,0x1000103 LAB_0010a4d9: MOV EAX,EBP ADD RSP,0x230 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0010a4eb: LEA R14,[RSP + 0x40] MOV qword ptr [R14 + -0x10],R14 LAB_0010a4f4: LEA RSI,[0x118e37] LEA RDX,[0x118e5c] LEA RDI,[RSP + 0x30] CALL 0x001092a8 LAB_0010a50c: LEA RDX,[RSP + 0x30] MOV RDI,RBX MOV ESI,0x1000103 CALL 0x0010d950 LAB_0010a51e: MOV EBP,EAX MOV RDI,qword ptr [RSP + 0x30] CMP RDI,R14 JZ 0x0010a4d9 MOV RSI,qword ptr [RSP + 0x40] INC RSI CALL 0x00105310 JMP 0x0010a4d9
/* ModbusClientPort::readCoils(ModbusObject*, unsigned char, unsigned short, unsigned short, void*) */ int __thiscall ModbusClientPort::readCoils (ModbusClientPort *this,ModbusObject *param_1,uchar param_2,ushort param_3,ushort param_4, void *param_5) { long lVar1; ushort uVar2; ushort uVar3; int iVar4; size_t sVar5; int8 uVar6; ushort local_24a; long *local_248 [2]; long local_238 [2]; long *local_228 [2]; long local_218 [24]; byte local_158; int1 local_157; int1 local_156; int1 local_155; uVar3 = CONCAT11(local_156,local_155); uVar2 = CONCAT11(local_158,local_157); lVar1 = *(long *)(this + 8); if (*(ModbusObject **)(lVar1 + 0x78) == (ModbusObject *)0x0) { *(ModbusObject **)(lVar1 + 0x78) = param_1; if (0x7f8 < param_4) { snprintf((char *)local_228,200, "ModbusClientPort::readCoils(offset=%hu, count=%hu): Requested count of coils is too large" ,(ulong)param_3,param_4); if (*(ModbusObject **)(*(long *)(this + 8) + 0x78) == param_1) { *(int8 *)(*(long *)(this + 8) + 0x78) = 0; } local_248[0] = local_238; sVar5 = strlen((char *)local_228); /* try { // try from 0010a2eb to 0010a2f7 has its CatchHandler @ 0010a557 */ std::__cxx11::string::_M_construct<char_const*>(local_248,local_228,(long)local_228 + sVar5); *(int8 *)(lVar1 + 0x184) = 0x100010201000102; /* try { // try from 0010a310 to 0010a325 has its CatchHandler @ 0010a55c */ std::__cxx11::string::_M_assign((string *)(lVar1 + 400)); *(int1 *)(lVar1 + 0x1b0) = 0; uVar6 = currentTimestamp(); *(int8 *)(lVar1 + 0x1b8) = uVar6; if (local_248[0] != local_238) { operator_delete(local_248[0],local_238[0] + 1); } return 0x1000102; } *(ushort *)(lVar1 + 0x70) = param_4; uVar2 = param_3; uVar3 = param_4; } else if (*(ModbusObject **)(lVar1 + 0x78) != param_1) { return -0x80000000; } local_156 = (int1)(uVar3 >> 8); local_155 = (int1)uVar3; local_158 = (byte)(uVar2 >> 8); local_157 = (int1)uVar2; iVar4 = request(this,param_2,'\x01',&local_158,4,300,&local_24a); if ((iVar4 == 0) && ((iVar4 = 0, *(char *)(lVar1 + 0x6c) != '\0' || ((*(byte *)(lVar1 + 0x1c4) & 1) == 0)))) { if (local_24a == 0) { local_228[0] = local_218; /* try { // try from 0010a41f to 0010a436 has its CatchHandler @ 0010a53f */ std::__cxx11::string::_M_construct<char_const*>(local_228,"No data was received",""); *(int8 *)(lVar1 + 0x184) = 0x100010301000103; /* try { // try from 0010a44f to 0010a464 has its CatchHandler @ 0010a543 */ std::__cxx11::string::_M_assign((string *)(lVar1 + 400)); *(int1 *)(lVar1 + 0x1b0) = 0; uVar6 = currentTimestamp(); } else { if (local_24a - 1 == (uint)local_158) { if (*(ushort *)(lVar1 + 0x70) + 7 >> 3 == (uint)local_158) { memcpy(param_5,&local_157,(ulong)local_158); *(int4 *)(lVar1 + 0x184) = 0; return 0; } /* try { // try from 0010a4f4 to 0010a50b has its CatchHandler @ 0010a53b */ local_228[0] = local_218; std::__cxx11::string::_M_construct<char_const*> (local_228,"\'ByteCount\' is not match received one",""); /* try { // try from 0010a50c to 0010a51d has its CatchHandler @ 0010a539 */ iVar4 = ModbusClientPortPrivate::setError(lVar1,0x1000103,local_228); if (local_228[0] == local_218) { return iVar4; } operator_delete(local_228[0],local_218[0] + 1); return iVar4; } local_228[0] = local_218; /* try { // try from 0010a470 to 0010a487 has its CatchHandler @ 0010a53d */ std::__cxx11::string::_M_construct<char_const*>(local_228,"Incorrect received data size",""); *(int8 *)(lVar1 + 0x184) = 0x100010301000103; /* try { // try from 0010a4a0 to 0010a4b5 has its CatchHandler @ 0010a541 */ std::__cxx11::string::_M_assign((string *)(lVar1 + 400)); *(int1 *)(lVar1 + 0x1b0) = 0; uVar6 = currentTimestamp(); } *(int8 *)(lVar1 + 0x1b8) = uVar6; if (local_228[0] != local_218) { operator_delete(local_228[0],local_218[0] + 1); } iVar4 = 0x1000103; } return iVar4; }
32,282
js_load_module_rejected
bluesky950520[P]quickjs/quickjs.c
static JSValue js_load_module_rejected(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic, JSValue *func_data) { JSValueConst *resolving_funcs = (JSValueConst *)func_data; JSValueConst error; JSValue ret; /* XXX: check if the test is necessary */ if (argc >= 1) error = argv[0]; else error = JS_UNDEFINED; ret = JS_Call(ctx, resolving_funcs[1], JS_UNDEFINED, 1, &error); JS_FreeValue(ctx, ret); return JS_UNDEFINED; }
O0
c
js_load_module_rejected: subq $0xa8, %rsp movq 0xb0(%rsp), %rax movq %rsi, 0x88(%rsp) movq %rdx, 0x90(%rsp) movq %rdi, 0x80(%rsp) movl %ecx, 0x7c(%rsp) movq %r8, 0x70(%rsp) movl %r9d, 0x6c(%rsp) movq 0xb0(%rsp), %rax movq %rax, 0x60(%rsp) cmpl $0x1, 0x7c(%rsp) jl 0x7a581 movq 0x70(%rsp), %rax movq (%rax), %rcx movq %rcx, 0x50(%rsp) movq 0x8(%rax), %rax movq %rax, 0x58(%rsp) jmp 0x7a5a6 movl $0x0, 0x30(%rsp) movq $0x3, 0x38(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x58(%rsp) movq 0x80(%rsp), %rdi movq 0x60(%rsp), %rax movl $0x0, 0x10(%rsp) movq $0x3, 0x18(%rsp) movq 0x10(%rax), %rsi movq 0x18(%rax), %rdx movq 0x10(%rsp), %rcx movq 0x18(%rsp), %r8 movq %rsp, %rax leaq 0x50(%rsp), %r9 movq %r9, (%rax) movl $0x1, %r9d callq 0x40340 movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movups 0x20(%rsp), %xmm0 movaps %xmm0, 0x40(%rsp) movq 0x80(%rsp), %rdi movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx callq 0x29f80 movl $0x0, 0x98(%rsp) movq $0x3, 0xa0(%rsp) movq 0x98(%rsp), %rax movq 0xa0(%rsp), %rdx addq $0xa8, %rsp retq nopw %cs:(%rax,%rax)
js_load_module_rejected: sub rsp, 0A8h mov rax, [rsp+0A8h+arg_0] mov [rsp+0A8h+var_20], rsi mov [rsp+0A8h+var_18], rdx mov [rsp+0A8h+var_28], rdi mov [rsp+0A8h+var_2C], ecx mov [rsp+0A8h+var_38], r8 mov [rsp+0A8h+var_3C], r9d mov rax, [rsp+0A8h+arg_0] mov [rsp+0A8h+var_48], rax cmp [rsp+0A8h+var_2C], 1 jl short loc_7A581 mov rax, [rsp+0A8h+var_38] mov rcx, [rax] mov [rsp+0A8h+var_58], rcx mov rax, [rax+8] mov [rsp+0A8h+var_50], rax jmp short loc_7A5A6 loc_7A581: mov dword ptr [rsp+0A8h+var_78], 0 mov [rsp+0A8h+var_70], 3 mov rax, [rsp+0A8h+var_78] mov [rsp+0A8h+var_58], rax mov rax, [rsp+0A8h+var_70] mov [rsp+0A8h+var_50], rax loc_7A5A6: mov rdi, [rsp+0A8h+var_28] mov rax, [rsp+0A8h+var_48] mov dword ptr [rsp+0A8h+var_98], 0 mov [rsp+0A8h+var_90], 3 mov rsi, [rax+10h] mov rdx, [rax+18h] mov rcx, [rsp+0A8h+var_98] mov r8, [rsp+0A8h+var_90] mov rax, rsp lea r9, [rsp+0A8h+var_58] mov [rax], r9 mov r9d, 1 call JS_Call mov qword ptr [rsp+0A8h+var_88], rax mov qword ptr [rsp+0A8h+var_88+8], rdx movups xmm0, [rsp+0A8h+var_88] movaps [rsp+0A8h+var_68], xmm0 mov rdi, [rsp+0A8h+var_28] mov rsi, qword ptr [rsp+0A8h+var_68] mov rdx, qword ptr [rsp+0A8h+var_68+8] call JS_FreeValue mov dword ptr [rsp+0A8h+var_10], 0 mov [rsp+0A8h+var_8], 3 mov rax, [rsp+0A8h+var_10] mov rdx, [rsp+0A8h+var_8] add rsp, 0A8h retn
long long js_load_module_rejected(long long a1, long long a2, long long a3, int a4, long long *a5, int a6, long long a7) { long long v7; // rax long long v8; // rdx long long v10; // [rsp+30h] [rbp-78h] long long v11; // [rsp+50h] [rbp-58h] BYREF long long v12; // [rsp+58h] [rbp-50h] long long v13; // [rsp+60h] [rbp-48h] int v14; // [rsp+6Ch] [rbp-3Ch] long long *v15; // [rsp+70h] [rbp-38h] int v16; // [rsp+7Ch] [rbp-2Ch] long long v17; // [rsp+80h] [rbp-28h] long long v18; // [rsp+88h] [rbp-20h] long long v19; // [rsp+90h] [rbp-18h] long long v20; // [rsp+98h] [rbp-10h] v18 = a2; v19 = a3; v17 = a1; v16 = a4; v15 = a5; v14 = a6; v13 = a7; if ( a4 < 1 ) { LODWORD(v10) = 0; v11 = v10; v12 = 3LL; } else { v11 = *v15; v12 = v15[1]; } v7 = JS_Call(v17, *(_QWORD *)(v13 + 16), *(_QWORD *)(v13 + 24), 0, 3, 1, (long long)&v11); JS_FreeValue(v17, v7, v8); LODWORD(v20) = 0; return v20; }
js_load_module_rejected: SUB RSP,0xa8 MOV RAX,qword ptr [RSP + 0xb0] MOV qword ptr [RSP + 0x88],RSI MOV qword ptr [RSP + 0x90],RDX MOV qword ptr [RSP + 0x80],RDI MOV dword ptr [RSP + 0x7c],ECX MOV qword ptr [RSP + 0x70],R8 MOV dword ptr [RSP + 0x6c],R9D MOV RAX,qword ptr [RSP + 0xb0] MOV qword ptr [RSP + 0x60],RAX CMP dword ptr [RSP + 0x7c],0x1 JL 0x0017a581 MOV RAX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP + 0x50],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x58],RAX JMP 0x0017a5a6 LAB_0017a581: MOV dword ptr [RSP + 0x30],0x0 MOV qword ptr [RSP + 0x38],0x3 MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],RAX LAB_0017a5a6: MOV RDI,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RSP + 0x60] MOV dword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],0x3 MOV RSI,qword ptr [RAX + 0x10] MOV RDX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RSP + 0x10] MOV R8,qword ptr [RSP + 0x18] MOV RAX,RSP LEA R9,[RSP + 0x50] MOV qword ptr [RAX],R9 MOV R9D,0x1 CALL 0x00140340 MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOVUPS XMM0,xmmword ptr [RSP + 0x20] MOVAPS xmmword ptr [RSP + 0x40],XMM0 MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] CALL 0x00129f80 MOV dword ptr [RSP + 0x98],0x0 MOV qword ptr [RSP + 0xa0],0x3 MOV RAX,qword ptr [RSP + 0x98] MOV RDX,qword ptr [RSP + 0xa0] ADD RSP,0xa8 RET
int1 [16] js_load_module_rejected (int8 param_1,int8 param_2,int8 param_3,int param_4,long *param_5, int4 param_6,long param_7) { int1 auVar1 [16]; uint uStack_94; uint uStack_74; long local_58; long local_50; long local_48; int4 local_3c; long *local_38; int local_2c; int8 local_28; int8 local_20; int8 local_18; uint uStack_c; local_48 = param_7; if (param_4 < 1) { local_58 = (ulong)uStack_74 << 0x20; local_50 = 3; } else { local_58 = *param_5; local_50 = param_5[1]; } local_3c = param_6; local_38 = param_5; local_2c = param_4; local_28 = param_1; local_20 = param_2; local_18 = param_3; auVar1 = JS_Call(param_1,*(int8 *)(param_7 + 0x10),*(int8 *)(param_7 + 0x18), (ulong)uStack_94 << 0x20,3,1,&local_58); JS_FreeValue(local_28,auVar1._0_8_,auVar1._8_8_); auVar1._8_8_ = 3; auVar1._0_8_ = (ulong)uStack_c << 0x20; return auVar1; }
32,283
js_load_module_rejected
bluesky950520[P]quickjs/quickjs.c
static JSValue js_load_module_rejected(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic, JSValue *func_data) { JSValueConst *resolving_funcs = (JSValueConst *)func_data; JSValueConst error; JSValue ret; /* XXX: check if the test is necessary */ if (argc >= 1) error = argv[0]; else error = JS_UNDEFINED; ret = JS_Call(ctx, resolving_funcs[1], JS_UNDEFINED, 1, &error); JS_FreeValue(ctx, ret); return JS_UNDEFINED; }
O2
c
js_load_module_rejected: pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq 0x40(%rsp), %rax testl %ecx, %ecx jle 0x3f4f7 movups (%r8), %xmm0 movaps %xmm0, 0x10(%rsp) jmp 0x3f505 andl $0x0, 0x10(%rsp) movq $0x3, 0x18(%rsp) movq 0x10(%rax), %rsi movq 0x18(%rax), %rdx leaq 0x10(%rsp), %rax movq %rax, (%rsp) pushq $0x3 popq %r14 pushq $0x1 popq %r9 movq %rbx, %rdi xorl %ecx, %ecx movq %r14, %r8 callq 0x25a66 movq %rbx, %rdi movq %rax, %rsi callq 0x1bbce xorl %eax, %eax movq %r14, %rdx addq $0x28, %rsp popq %rbx popq %r14 retq
js_load_module_rejected: push r14 push rbx sub rsp, 28h mov rbx, rdi mov rax, [rsp+38h+arg_0] test ecx, ecx jle short loc_3F4F7 movups xmm0, xmmword ptr [r8] movaps [rsp+38h+var_28], xmm0 jmp short loc_3F505 loc_3F4F7: and dword ptr [rsp+38h+var_28], 0 mov qword ptr [rsp+38h+var_28+8], 3 loc_3F505: mov rsi, [rax+10h] mov rdx, [rax+18h] lea rax, [rsp+38h+var_28] mov [rsp+38h+var_38], rax push 3 pop r14 push 1 pop r9 mov rdi, rbx xor ecx, ecx mov r8, r14 call JS_Call mov rdi, rbx mov rsi, rax call JS_FreeValue xor eax, eax mov rdx, r14 add rsp, 28h pop rbx pop r14 retn
long long js_load_module_rejected( long long a1, long long a2, long long a3, int a4, __int128 *a5, long long a6, long long a7) { long long v7; // rax long long v8; // rdx __int128 v10; // [rsp+10h] [rbp-28h] BYREF if ( a4 <= 0 ) { LODWORD(v10) = 0; *((_QWORD *)&v10 + 1) = 3LL; } else { v10 = *a5; } v7 = JS_Call(a1, *(_QWORD *)(a7 + 16), *(_QWORD *)(a7 + 24), 0, 3, 1, (long long)&v10); JS_FreeValue(a1, v7, v8); return 0LL; }
js_load_module_rejected: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV RAX,qword ptr [RSP + 0x40] TEST ECX,ECX JLE 0x0013f4f7 MOVUPS XMM0,xmmword ptr [R8] MOVAPS xmmword ptr [RSP + 0x10],XMM0 JMP 0x0013f505 LAB_0013f4f7: AND dword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],0x3 LAB_0013f505: MOV RSI,qword ptr [RAX + 0x10] MOV RDX,qword ptr [RAX + 0x18] LEA RAX,[RSP + 0x10] MOV qword ptr [RSP],RAX PUSH 0x3 POP R14 PUSH 0x1 POP R9 MOV RDI,RBX XOR ECX,ECX MOV R8,R14 CALL 0x00125a66 MOV RDI,RBX MOV RSI,RAX CALL 0x0011bbce XOR EAX,EAX MOV RDX,R14 ADD RSP,0x28 POP RBX POP R14 RET
int1 [16] js_load_module_rejected (int8 param_1,int8 param_2,int8 param_3,int param_4,int4 *param_5, int8 param_6,long param_7) { int8 uVar1; int4 local_28; int4 uStack_24; int8 uStack_20; if (param_4 < 1) { local_28 = 0; uStack_20 = 3; } else { local_28 = *param_5; uStack_24 = param_5[1]; uStack_20 = *(int8 *)(param_5 + 2); } uVar1 = JS_Call(param_1,*(int8 *)(param_7 + 0x10),*(int8 *)(param_7 + 0x18),0,3,1, &local_28); JS_FreeValue(param_1,uVar1); return ZEXT816(3) << 0x40; }
32,284
graph_copy_init_tensor(ggml_hash_set*, ggml_tensor**, bool*, ggml_tensor*)
llama.cpp/ggml/src/ggml-backend.cpp
static void graph_copy_init_tensor(struct ggml_hash_set * hash_set, struct ggml_tensor ** node_copies, bool * node_init, struct ggml_tensor * src) { size_t id = ggml_hash_find(hash_set, src); if (node_init[id]) { return; } node_init[id] = true; struct ggml_tensor * dst = node_copies[id]; if (dst->view_src != NULL) { graph_copy_init_tensor(hash_set, node_copies, node_init, src->view_src); enum ggml_status status = ggml_backend_view_init(dst); GGML_ASSERT(status == GGML_STATUS_SUCCESS); } else { ggml_backend_tensor_copy(src, dst); } // init src for (int i = 0; i < GGML_MAX_SRC; i++) { struct ggml_tensor * s = src->src[i]; if (s == NULL) { continue; } graph_copy_init_tensor(hash_set, node_copies, node_init, s); } }
O3
cpp
graph_copy_init_tensor(ggml_hash_set*, ggml_tensor**, bool*, ggml_tensor*): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rcx, %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %r12 movq %rcx, %rsi callq 0x285e7 cmpb $0x0, (%r14,%rax) jne 0x285dd movb $0x1, (%r14,%rax) movq (%r15,%rax,8), %r13 cmpq $0x0, 0xe8(%r13) je 0x285ab movq 0xe8(%rbx), %rcx movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x2852e movq %r13, %rdi callq 0x178b0 testl %eax, %eax je 0x285b6 leaq 0x24d61(%rip), %rdi # 0x4d2f2 leaq 0x220b6(%rip), %rdx # 0x4a64e leaq 0x25686(%rip), %rcx # 0x4dc25 movl $0x6b2, %esi # imm = 0x6B2 xorl %eax, %eax callq 0x17c80 movq %rbx, %rdi movq %r13, %rsi callq 0x16790 xorl %r13d, %r13d movq 0x98(%rbx,%r13,8), %rcx testq %rcx, %rcx je 0x285d4 movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x2852e incq %r13 cmpq $0xa, %r13 jne 0x285b9 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
_ZL22graph_copy_init_tensorP13ggml_hash_setPP11ggml_tensorPbS2_: push r15 push r14 push r13 push r12 push rbx mov rbx, rcx mov r14, rdx mov r15, rsi mov r12, rdi mov rsi, rcx call _ZL14ggml_hash_findPK13ggml_hash_setPK11ggml_tensor_0; ggml_hash_find(ggml_hash_set const*,ggml_tensor const*) cmp byte ptr [r14+rax], 0 jnz loc_285DD mov byte ptr [r14+rax], 1 mov r13, [r15+rax*8] cmp qword ptr [r13+0E8h], 0 jz short loc_285AB mov rcx, [rbx+0E8h] mov rdi, r12 mov rsi, r15 mov rdx, r14 call _ZL22graph_copy_init_tensorP13ggml_hash_setPP11ggml_tensorPbS2_; graph_copy_init_tensor(ggml_hash_set *,ggml_tensor **,bool *,ggml_tensor *) mov rdi, r13 call _ggml_backend_view_init test eax, eax jz short loc_285B6 lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aStatusGgmlStat; "status == GGML_STATUS_SUCCESS" mov esi, 6B2h xor eax, eax call _ggml_abort loc_285AB: mov rdi, rbx mov rsi, r13 call _ggml_backend_tensor_copy loc_285B6: xor r13d, r13d loc_285B9: mov rcx, [rbx+r13*8+98h] test rcx, rcx jz short loc_285D4 mov rdi, r12 mov rsi, r15 mov rdx, r14 call _ZL22graph_copy_init_tensorP13ggml_hash_setPP11ggml_tensorPbS2_; graph_copy_init_tensor(ggml_hash_set *,ggml_tensor **,bool *,ggml_tensor *) loc_285D4: inc r13 cmp r13, 0Ah jnz short loc_285B9 loc_285DD: pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long graph_copy_init_tensor(long long a1, long long a2, long long a3, long long a4) { long long result; // rax long long v7; // rdx long long v8; // rcx int v9; // r8d int v10; // r9d long long v11; // r13 int v12; // r8d int v13; // r9d long long i; // r13 long long v15; // rcx result = ggml_hash_find(a1, a4); if ( !*(_BYTE *)(a3 + result) ) { *(_BYTE *)(a3 + result) = 1; v11 = *(_QWORD *)(a2 + 8 * result); if ( *(_QWORD *)(v11 + 232) ) { graph_copy_init_tensor(a1, a2, a3, *(_QWORD *)(a4 + 232)); result = ggml_backend_view_init(v11); if ( (_DWORD)result ) ggml_abort( (unsigned int)"/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml-backend.cpp", 1714, (unsigned int)"GGML_ASSERT(%s) failed", (unsigned int)"status == GGML_STATUS_SUCCESS", v12, v13); } else { result = ggml_backend_tensor_copy(a4, *(_QWORD *)(a2 + 8 * result), v7, v8, v9, v10); } for ( i = 0LL; i != 10; ++i ) { v15 = *(_QWORD *)(a4 + 8 * i + 152); if ( v15 ) result = graph_copy_init_tensor(a1, a2, a3, v15); } } return result; }
graph_copy_init_tensor: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV RBX,RCX MOV R14,RDX MOV R15,RSI MOV R12,RDI MOV RSI,RCX CALL 0x001285e7 CMP byte ptr [R14 + RAX*0x1],0x0 JNZ 0x001285dd MOV byte ptr [R14 + RAX*0x1],0x1 MOV R13,qword ptr [R15 + RAX*0x8] CMP qword ptr [R13 + 0xe8],0x0 JZ 0x001285ab MOV RCX,qword ptr [RBX + 0xe8] MOV RDI,R12 MOV RSI,R15 MOV RDX,R14 CALL 0x0012852e MOV RDI,R13 CALL 0x001178b0 TEST EAX,EAX JZ 0x001285b6 LEA RDI,[0x14d2f2] LEA RDX,[0x14a64e] LEA RCX,[0x14dc25] MOV ESI,0x6b2 XOR EAX,EAX CALL 0x00117c80 LAB_001285ab: MOV RDI,RBX MOV RSI,R13 CALL 0x00116790 LAB_001285b6: XOR R13D,R13D LAB_001285b9: MOV RCX,qword ptr [RBX + R13*0x8 + 0x98] TEST RCX,RCX JZ 0x001285d4 MOV RDI,R12 MOV RSI,R15 MOV RDX,R14 CALL 0x0012852e LAB_001285d4: INC R13 CMP R13,0xa JNZ 0x001285b9 LAB_001285dd: POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* graph_copy_init_tensor(ggml_hash_set*, ggml_tensor**, bool*, ggml_tensor*) */ void graph_copy_init_tensor (ggml_hash_set *param_1,ggml_tensor **param_2,bool *param_3,ggml_tensor *param_4) { ggml_tensor *pgVar1; int iVar2; long lVar3; lVar3 = ggml_hash_find(param_1,param_4); if (param_3[lVar3] == false) { param_3[lVar3] = true; pgVar1 = param_2[lVar3]; if (*(long *)(pgVar1 + 0xe8) == 0) { ggml_backend_tensor_copy(param_4,pgVar1); } else { graph_copy_init_tensor(param_1,param_2,param_3,*(ggml_tensor **)(param_4 + 0xe8)); iVar2 = ggml_backend_view_init(pgVar1); if (iVar2 != 0) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml-backend.cpp",0x6b2, "GGML_ASSERT(%s) failed","status == GGML_STATUS_SUCCESS"); } } lVar3 = 0; do { if (*(ggml_tensor **)(param_4 + lVar3 * 8 + 0x98) != (ggml_tensor *)0x0) { graph_copy_init_tensor (param_1,param_2,param_3,*(ggml_tensor **)(param_4 + lVar3 * 8 + 0x98)); } lVar3 = lVar3 + 1; } while (lVar3 != 10); } return; }
32,285
multadd
eloqsql/strings/dtoa.c
static Bigint *multadd(Bigint *b, int m, int a, Stack_alloc *alloc) { int i, wds; ULong *x; ULLong carry, y; Bigint *b1; wds= b->wds; x= b->p.x; i= 0; carry= a; do { y= *x * (ULLong)m + carry; carry= y >> 32; *x++= (ULong)(y & FFFFFFFF); } while (++i < wds); if (carry) { if (wds >= b->maxwds) { b1= Balloc(b->k+1, alloc); Bcopy(b1, b); Bfree(b, alloc); b= b1; } b->p.x[wds++]= (ULong) carry; b->wds= wds; } return b; }
O0
c
multadd: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, -0x20(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movl $0x0, -0x1c(%rbp) movslq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movl (%rax), %eax movslq -0xc(%rbp), %rcx imulq %rcx, %rax addq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax shrq $0x20, %rax movq %rax, -0x30(%rbp) movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq -0x38(%rbp), %rax movl %eax, %ecx movq -0x28(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x28(%rbp) movl %ecx, (%rax) movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) cmpl -0x20(%rbp), %eax jl 0x7b9ea cmpq $0x0, -0x30(%rbp) je 0x7bacb movl -0x20(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0xc(%rcx), %eax jl 0x7baa3 movq -0x8(%rbp), %rax movl 0x8(%rax), %edi addl $0x1, %edi movq -0x18(%rbp), %rsi callq 0x7ad20 movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rdi addq $0x10, %rdi movq -0x8(%rbp), %rsi addq $0x10, %rsi movq -0x8(%rbp), %rax movslq 0x14(%rax), %rdx shlq $0x2, %rdx addq $0x8, %rdx callq 0x25230 movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x7b3d0 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x30(%rbp), %rax movl %eax, %edx movq -0x8(%rbp), %rax movq (%rax), %rax movl -0x20(%rbp), %ecx movl %ecx, %esi addl $0x1, %esi movl %esi, -0x20(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movl -0x20(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
multadd: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov [rbp+var_18], rcx mov rax, [rbp+var_8] mov eax, [rax+14h] mov [rbp+var_20], eax mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_28], rax mov [rbp+var_1C], 0 movsxd rax, [rbp+var_10] mov [rbp+var_30], rax loc_7B9EA: mov rax, [rbp+var_28] mov eax, [rax] movsxd rcx, [rbp+var_C] imul rax, rcx add rax, [rbp+var_30] mov [rbp+var_38], rax mov rax, [rbp+var_38] shr rax, 20h mov [rbp+var_30], rax mov rax, 0FFFFFFFFh and rax, [rbp+var_38] mov ecx, eax mov rax, [rbp+var_28] mov rdx, rax add rdx, 4 mov [rbp+var_28], rdx mov [rax], ecx mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_1C], eax cmp eax, [rbp+var_20] jl short loc_7B9EA cmp [rbp+var_30], 0 jz loc_7BACB mov eax, [rbp+var_20] mov rcx, [rbp+var_8] cmp eax, [rcx+0Ch] jl short loc_7BAA3 mov rax, [rbp+var_8] mov edi, [rax+8] add edi, 1 mov rsi, [rbp+var_18] call Balloc mov [rbp+var_40], rax mov rdi, [rbp+var_40] add rdi, 10h mov rsi, [rbp+var_8] add rsi, 10h mov rax, [rbp+var_8] movsxd rdx, dword ptr [rax+14h] shl rdx, 2 add rdx, 8 call _memcpy mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] call Bfree mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_7BAA3: mov rax, [rbp+var_30] mov edx, eax mov rax, [rbp+var_8] mov rax, [rax] mov ecx, [rbp+var_20] mov esi, ecx add esi, 1 mov [rbp+var_20], esi movsxd rcx, ecx mov [rax+rcx*4], edx mov ecx, [rbp+var_20] mov rax, [rbp+var_8] mov [rax+14h], ecx loc_7BACB: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
unsigned long long multadd(unsigned long long a1, int a2, int a3, unsigned long long *a4) { unsigned int *v4; // rax long long v6; // [rsp+0h] [rbp-40h] unsigned long long v7; // [rsp+8h] [rbp-38h] unsigned long long v8; // [rsp+10h] [rbp-30h] unsigned int *v9; // [rsp+18h] [rbp-28h] int v10; // [rsp+20h] [rbp-20h] int v11; // [rsp+24h] [rbp-1Ch] unsigned long long v13; // [rsp+38h] [rbp-8h] v13 = a1; v10 = *(_DWORD *)(a1 + 20); v9 = *(unsigned int **)a1; v11 = 0; v8 = a3; do { v7 = v8 + a2 * (unsigned long long)*v9; v8 = HIDWORD(v7); v4 = v9++; *v4 = v7; ++v11; } while ( v11 < v10 ); if ( v8 ) { if ( v10 >= *(_DWORD *)(a1 + 12) ) { v6 = Balloc(*(_DWORD *)(a1 + 8) + 1, (long long)a4); memcpy(v6 + 16, a1 + 16, 4LL * *(int *)(a1 + 20) + 8); Bfree(a1, a4); v13 = v6; } *(_DWORD *)(*(_QWORD *)v13 + 4LL * v10) = HIDWORD(v7); *(_DWORD *)(v13 + 20) = v10 + 1; } return v13; }
multadd: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV qword ptr [RBP + -0x18],RCX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX MOV dword ptr [RBP + -0x1c],0x0 MOVSXD RAX,dword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX LAB_0017b9ea: MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0xc] IMUL RAX,RCX ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] SHR RAX,0x20 MOV qword ptr [RBP + -0x30],RAX MOV RAX,0xffffffff AND RAX,qword ptr [RBP + -0x38] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x28] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x28],RDX MOV dword ptr [RAX],ECX MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX CMP EAX,dword ptr [RBP + -0x20] JL 0x0017b9ea CMP qword ptr [RBP + -0x30],0x0 JZ 0x0017bacb MOV EAX,dword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0xc] JL 0x0017baa3 MOV RAX,qword ptr [RBP + -0x8] MOV EDI,dword ptr [RAX + 0x8] ADD EDI,0x1 MOV RSI,qword ptr [RBP + -0x18] CALL 0x0017ad20 MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x40] ADD RDI,0x10 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x10 MOV RAX,qword ptr [RBP + -0x8] MOVSXD RDX,dword ptr [RAX + 0x14] SHL RDX,0x2 ADD RDX,0x8 CALL 0x00125230 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] CALL 0x0017b3d0 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_0017baa3: MOV RAX,qword ptr [RBP + -0x30] MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x20] MOV ESI,ECX ADD ESI,0x1 MOV dword ptr [RBP + -0x20],ESI MOVSXD RCX,ECX MOV dword ptr [RAX + RCX*0x4],EDX MOV ECX,dword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x14],ECX LAB_0017bacb: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
long * multadd(long *param_1,int param_2,int param_3,int8 param_4) { int iVar1; ulong uVar2; ulong local_38; uint *local_30; int local_24; long *local_10; iVar1 = *(int *)((long)param_1 + 0x14); local_24 = 0; local_38 = (ulong)param_3; local_30 = (uint *)*param_1; do { uVar2 = (ulong)*local_30 * (long)param_2 + local_38; local_38 = uVar2 >> 0x20; *local_30 = (uint)uVar2; local_24 = local_24 + 1; local_30 = local_30 + 1; } while (local_24 < iVar1); local_10 = param_1; if (local_38 != 0) { if (*(int *)((long)param_1 + 0xc) <= iVar1) { local_10 = (long *)Balloc((int)param_1[1] + 1,param_4); memcpy(local_10 + 2,param_1 + 2,(long)*(int *)((long)param_1 + 0x14) * 4 + 8); Bfree(param_1,param_4); } *(int *)(*local_10 + (long)iVar1 * 4) = (int)(uVar2 >> 0x20); *(int *)((long)local_10 + 0x14) = iVar1 + 1; } return local_10; }
32,286
my_charset_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_charset_get_by_name(MY_CHARSET_LOADER *loader, const char *cs_name, uint cs_flags, myf flags) { uint cs_number; CHARSET_INFO *cs; DBUG_ENTER("get_charset_by_csname"); DBUG_PRINT("enter",("name: '%s'", cs_name)); my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_charset_number(cs_name, cs_flags, flags); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_name, index_file); } DBUG_RETURN(cs); }
O0
c
my_charset_get_by_name: pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x228(%rbp) movq %rsi, -0x230(%rbp) movl %edx, -0x234(%rbp) movq %rcx, -0x240(%rbp) jmp 0xdc1c5 leaq 0xba6228(%rip), %rdi # 0xc823f4 leaq -0xae3(%rip), %rsi # 0xdb6f0 callq 0x2a220 movq -0x230(%rbp), %rdi movl -0x234(%rbp), %esi movq -0x240(%rbp), %rdx callq 0xdb9b0 movl %eax, -0x244(%rbp) cmpl $0x0, -0x244(%rbp) je 0xdc222 movq -0x228(%rbp), %rdi movl -0x244(%rbp), %esi movq -0x240(%rbp), %rdx callq 0xdbd40 movq %rax, -0x258(%rbp) jmp 0xdc22d xorl %eax, %eax movq %rax, -0x258(%rbp) jmp 0xdc22d movq -0x258(%rbp), %rax movq %rax, -0x250(%rbp) cmpq $0x0, -0x250(%rbp) jne 0xdc290 movq -0x240(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0xdc290 leaq -0x220(%rbp), %rdi callq 0xdb3b0 movq %rax, %rdi leaq 0x77a9b(%rip), %rsi # 0x153d07 callq 0x2a710 movq -0x230(%rbp), %rdx leaq -0x220(%rbp), %rcx movl $0x16, %edi movl $0x4, %esi movb $0x0, %al callq 0xef880 jmp 0xdc292 movq -0x250(%rbp), %rax movq %rax, -0x260(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xdc2c2 movq -0x260(%rbp), %rax addq $0x260, %rsp # imm = 0x260 popq %rbp retq callq 0x2a250 nopw (%rax,%rax)
my_charset_get_by_name: push rbp mov rbp, rsp sub rsp, 260h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_228], rdi mov [rbp+var_230], rsi mov [rbp+var_234], edx mov [rbp+var_240], rcx jmp short $+2 loc_DC1C5: lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_230] mov esi, [rbp+var_234] mov rdx, [rbp+var_240] call get_charset_number mov [rbp+var_244], eax cmp [rbp+var_244], 0 jz short loc_DC222 mov rdi, [rbp+var_228] mov esi, [rbp+var_244] mov rdx, [rbp+var_240] call get_internal_charset mov [rbp+var_258], rax jmp short loc_DC22D loc_DC222: xor eax, eax mov [rbp+var_258], rax jmp short $+2 loc_DC22D: mov rax, [rbp+var_258] mov [rbp+var_250], rax cmp [rbp+var_250], 0 jnz short loc_DC290 mov rax, [rbp+var_240] and rax, 10h cmp rax, 0 jz short loc_DC290 lea rdi, [rbp+var_220] call get_charsets_dir mov rdi, rax lea rsi, aIndexXml; "Index.xml" call _stpcpy mov rdx, [rbp+var_230] lea rcx, [rbp+var_220] mov edi, 16h mov esi, 4 mov al, 0 call my_error loc_DC290: jmp short $+2 loc_DC292: mov rax, [rbp+var_250] mov [rbp+var_260], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_DC2C2 mov rax, [rbp+var_260] add rsp, 260h pop rbp retn loc_DC2C2: call ___stack_chk_fail
long long my_charset_get_by_name(long long a1, long long a2, unsigned int a3, long long a4) { long long charsets_dir; // rax int v5; // r8d int v6; // r9d long long internal_charset; // [rsp+8h] [rbp-258h] unsigned int charset_number; // [rsp+1Ch] [rbp-244h] _BYTE v12[536]; // [rsp+40h] [rbp-220h] BYREF unsigned long long v13; // [rsp+258h] [rbp-8h] v13 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); charset_number = get_charset_number(a2, a3, a4); if ( charset_number ) internal_charset = get_internal_charset(a1, charset_number, a4); else internal_charset = 0LL; if ( !internal_charset && (a4 & 0x10) != 0 ) { charsets_dir = get_charsets_dir((long long)v12); stpcpy(charsets_dir, "Index.xml"); my_error(22, 4, a2, (unsigned int)v12, v5, v6); } return internal_charset; }
my_charset_get_by_name: PUSH RBP MOV RBP,RSP SUB RSP,0x260 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x228],RDI MOV qword ptr [RBP + -0x230],RSI MOV dword ptr [RBP + -0x234],EDX MOV qword ptr [RBP + -0x240],RCX JMP 0x001dc1c5 LAB_001dc1c5: LEA RDI,[0xd823f4] LEA RSI,[0x1db6f0] CALL 0x0012a220 MOV RDI,qword ptr [RBP + -0x230] MOV ESI,dword ptr [RBP + -0x234] MOV RDX,qword ptr [RBP + -0x240] CALL 0x001db9b0 MOV dword ptr [RBP + -0x244],EAX CMP dword ptr [RBP + -0x244],0x0 JZ 0x001dc222 MOV RDI,qword ptr [RBP + -0x228] MOV ESI,dword ptr [RBP + -0x244] MOV RDX,qword ptr [RBP + -0x240] CALL 0x001dbd40 MOV qword ptr [RBP + -0x258],RAX JMP 0x001dc22d LAB_001dc222: XOR EAX,EAX MOV qword ptr [RBP + -0x258],RAX JMP 0x001dc22d LAB_001dc22d: MOV RAX,qword ptr [RBP + -0x258] MOV qword ptr [RBP + -0x250],RAX CMP qword ptr [RBP + -0x250],0x0 JNZ 0x001dc290 MOV RAX,qword ptr [RBP + -0x240] AND RAX,0x10 CMP RAX,0x0 JZ 0x001dc290 LEA RDI,[RBP + -0x220] CALL 0x001db3b0 MOV RDI,RAX LEA RSI,[0x253d07] CALL 0x0012a710 MOV RDX,qword ptr [RBP + -0x230] LEA RCX,[RBP + -0x220] MOV EDI,0x16 MOV ESI,0x4 MOV AL,0x0 CALL 0x001ef880 LAB_001dc290: JMP 0x001dc292 LAB_001dc292: MOV RAX,qword ptr [RBP + -0x250] MOV qword ptr [RBP + -0x260],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001dc2c2 MOV RAX,qword ptr [RBP + -0x260] ADD RSP,0x260 POP RBP RET LAB_001dc2c2: CALL 0x0012a250
long my_charset_get_by_name(int8 param_1,int8 param_2,int4 param_3,ulong param_4) { int iVar1; char *__dest; long in_FS_OFFSET; long local_260; int1 local_228 [536]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_charset_number(param_2,param_3,param_4); if (iVar1 == 0) { local_260 = 0; } else { local_260 = get_internal_charset(param_1,iVar1,param_4); } if ((local_260 == 0) && ((param_4 & 0x10) != 0)) { __dest = (char *)get_charsets_dir(local_228); stpcpy(__dest,"Index.xml"); my_error(0x16,4,param_2,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_260; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
32,287
my_uca_scanner_init_any
eloqsql/strings/ctype-uca.c
static void my_uca_scanner_init_any(my_uca_scanner *scanner, CHARSET_INFO *cs, const MY_UCA_WEIGHT_LEVEL *level, const uchar *str, size_t length) { /* Note, no needs to initialize scanner->wbeg */ scanner->sbeg= str; scanner->send= str + length; scanner->wbeg= nochar; scanner->level= level; scanner->cs= cs; }
O0
c
my_uca_scanner_init_any: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x20(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x20(%rbp), %rcx addq -0x28(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x8(%rbp), %rax leaq 0x15f401(%rip), %rcx # 0x1b06f0 movq %rcx, (%rax) movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x30(%rax) popq %rbp retq nopl (%rax)
my_uca_scanner_init_any: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rcx, [rbp+var_20] mov rax, [rbp+var_8] mov [rax+8], rcx mov rcx, [rbp+var_20] add rcx, [rbp+var_28] mov rax, [rbp+var_8] mov [rax+10h], rcx mov rax, [rbp+var_8] lea rcx, nochar mov [rax], rcx mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+18h], rcx mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+30h], rcx pop rbp retn
_QWORD * my_uca_scanner_init_any(_QWORD *a1, long long a2, long long a3, long long a4, long long a5) { _QWORD *result; // rax a1[1] = a4; a1[2] = a5 + a4; *a1 = &nochar; a1[3] = a3; result = a1; a1[6] = a2; return result; }
my_uca_scanner_init_any: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x20] ADD RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x8] LEA RCX,[0x2b06f0] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x18],RCX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x30],RCX POP RBP RET
void my_uca_scanner_init_any (int8 *param_1,int8 param_2,int8 param_3,long param_4,long param_5) { param_1[1] = param_4; param_1[2] = param_4 + param_5; *param_1 = &nochar; param_1[3] = param_3; param_1[6] = param_2; return; }
32,288
mi_get_prev_key
eloqsql/storage/myisam/mi_search.c
static my_bool _mi_get_prev_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key, uchar *keypos, uint *return_key_length) { uint nod_flag; DBUG_ENTER("_mi_get_prev_key"); nod_flag=mi_test_if_nod(page); if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY))) { *return_key_length=keyinfo->keylength; bmove((uchar*) key,(uchar*) keypos- *return_key_length-nod_flag, *return_key_length); DBUG_RETURN(0); } else { page+=2+nod_flag; key[0]=0; /* safety */ while (page < keypos) { *return_key_length=(*keyinfo->get_key)(keyinfo,nod_flag,&page,key); if (*return_key_length == 0) { mi_print_error(info->s, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; DBUG_RETURN(1); } } } DBUG_RETURN(0); }
O0
c
mi_get_prev_key: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x20(%rbp), %rax movzbl (%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0xbf113 movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x17c(%rax), %eax movl %eax, -0x40(%rbp) jmp 0xbf11a xorl %eax, %eax movl %eax, -0x40(%rbp) jmp 0xbf11a movl -0x40(%rbp), %eax movl %eax, -0x3c(%rbp) movq -0x18(%rbp), %rax movzwl 0xa(%rax), %eax andl $0x28, %eax cmpl $0x0, %eax jne 0xbf179 movq -0x18(%rbp), %rax movzwl 0x12(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x38(%rbp), %rax movl (%rax), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax addq %rax, %rsi movl -0x3c(%rbp), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax addq %rax, %rsi movq -0x38(%rbp), %rax movl (%rax), %eax movl %eax, %edx callq 0x2a130 movb $0x0, -0x1(%rbp) jmp 0xbf1fa movl -0x3c(%rbp), %ecx addl $0x2, %ecx movq -0x20(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax movb $0x0, (%rax) movq -0x20(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0xbf1f2 movq -0x18(%rbp), %rax movq 0x48(%rax), %rax movq -0x18(%rbp), %rdi movl -0x3c(%rbp), %esi movq -0x28(%rbp), %rcx leaq -0x20(%rbp), %rdx callq *%rax movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movq -0x38(%rbp), %rax cmpl $0x0, (%rax) jne 0xbf1f0 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0xae540 callq 0xf6090 movl $0x7e, (%rax) movb $0x1, -0x1(%rbp) jmp 0xbf1fa jmp 0xbf193 jmp 0xbf1f4 jmp 0xbf1f6 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_mi_get_prev_key: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_20] movzx eax, byte ptr [rax] and eax, 80h cmp eax, 0 jz short loc_BF113 mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax+17Ch] mov [rbp+var_40], eax jmp short loc_BF11A loc_BF113: xor eax, eax mov [rbp+var_40], eax jmp short $+2 loc_BF11A: mov eax, [rbp+var_40] mov [rbp+var_3C], eax mov rax, [rbp+var_18] movzx eax, word ptr [rax+0Ah] and eax, 28h cmp eax, 0 jnz short loc_BF179 mov rax, [rbp+var_18] movzx ecx, word ptr [rax+12h] mov rax, [rbp+var_38] mov [rax], ecx mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov rax, [rbp+var_38] mov eax, [rax] mov ecx, eax xor eax, eax sub rax, rcx add rsi, rax mov eax, [rbp+var_3C] mov ecx, eax xor eax, eax sub rax, rcx add rsi, rax mov rax, [rbp+var_38] mov eax, [rax] mov edx, eax call _memmove mov [rbp+var_1], 0 jmp loc_BF1FA loc_BF179: mov ecx, [rbp+var_3C] add ecx, 2 mov rax, [rbp+var_20] mov ecx, ecx add rax, rcx mov [rbp+var_20], rax mov rax, [rbp+var_28] mov byte ptr [rax], 0 loc_BF193: mov rax, [rbp+var_20] cmp rax, [rbp+var_30] jnb short loc_BF1F2 mov rax, [rbp+var_18] mov rax, [rax+48h] mov rdi, [rbp+var_18] mov esi, [rbp+var_3C] mov rcx, [rbp+var_28] lea rdx, [rbp+var_20] call rax mov ecx, eax mov rax, [rbp+var_38] mov [rax], ecx mov rax, [rbp+var_38] cmp dword ptr [rax], 0 jnz short loc_BF1F0 mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov [rbp+var_1], 1 jmp short loc_BF1FA loc_BF1F0: jmp short loc_BF193 loc_BF1F2: jmp short $+2 loc_BF1F4: jmp short $+2 loc_BF1F6: mov [rbp+var_1], 0 loc_BF1FA: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char mi_get_prev_key(long long a1, long long a2, _BYTE *a3, _BYTE *a4, unsigned long long a5, _DWORD *a6) { const char *v6; // rsi unsigned int v8; // [rsp+0h] [rbp-40h] _BYTE *v12; // [rsp+20h] [rbp-20h] BYREF long long v13; // [rsp+28h] [rbp-18h] long long v14; // [rsp+30h] [rbp-10h] v14 = a1; v13 = a2; v12 = a3; if ( (*a3 & 0x80) != 0 ) v8 = *(_DWORD *)(*(_QWORD *)v14 + 380LL); else v8 = 0; if ( (*(_WORD *)(v13 + 10) & 0x28) != 0 ) { v12 += v8 + 2; *a4 = 0; while ( (unsigned long long)v12 < a5 ) { *a6 = (*(long long ( **)(long long, _QWORD, _BYTE **, _BYTE *))(v13 + 72))(v13, v8, &v12, a4); if ( !*a6 ) { v6 = *(const char **)(*(_QWORD *)v14 + 616LL); mi_report_error(126, (long long)v6); *(_DWORD *)my_thread_var(126LL, v6) = 126; return 1; } } return 0; } else { *a6 = *(unsigned __int16 *)(v13 + 18); memmove(a4, a5 - (unsigned int)*a6 - v8, (unsigned int)*a6); return 0; } }
_mi_get_prev_key: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] AND EAX,0x80 CMP EAX,0x0 JZ 0x001bf113 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x17c] MOV dword ptr [RBP + -0x40],EAX JMP 0x001bf11a LAB_001bf113: XOR EAX,EAX MOV dword ptr [RBP + -0x40],EAX JMP 0x001bf11a LAB_001bf11a: MOV EAX,dword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x3c],EAX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0xa] AND EAX,0x28 CMP EAX,0x0 JNZ 0x001bf179 MOV RAX,qword ptr [RBP + -0x18] MOVZX ECX,word ptr [RAX + 0x12] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX] MOV ECX,EAX XOR EAX,EAX SUB RAX,RCX ADD RSI,RAX MOV EAX,dword ptr [RBP + -0x3c] MOV ECX,EAX XOR EAX,EAX SUB RAX,RCX ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX] MOV EDX,EAX CALL 0x0012a130 MOV byte ptr [RBP + -0x1],0x0 JMP 0x001bf1fa LAB_001bf179: MOV ECX,dword ptr [RBP + -0x3c] ADD ECX,0x2 MOV RAX,qword ptr [RBP + -0x20] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],0x0 LAB_001bf193: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x30] JNC 0x001bf1f2 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x48] MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x3c] MOV RCX,qword ptr [RBP + -0x28] LEA RDX,[RBP + -0x20] CALL RAX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x38] CMP dword ptr [RAX],0x0 JNZ 0x001bf1f0 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x001ae540 CALL 0x001f6090 MOV dword ptr [RAX],0x7e MOV byte ptr [RBP + -0x1],0x1 JMP 0x001bf1fa LAB_001bf1f0: JMP 0x001bf193 LAB_001bf1f2: JMP 0x001bf1f4 LAB_001bf1f4: JMP 0x001bf1f6 LAB_001bf1f6: MOV byte ptr [RBP + -0x1],0x0 LAB_001bf1fa: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 _mi_get_prev_key(long *param_1,long param_2,byte *param_3,int1 *param_4,byte *param_5, uint *param_6) { uint uVar1; int4 *puVar2; uint local_48; byte *local_28; long local_20; long *local_18; int1 local_9; if ((*param_3 & 0x80) == 0) { local_48 = 0; } else { local_48 = *(uint *)(*param_1 + 0x17c); } local_20 = param_2; local_18 = param_1; if ((*(ushort *)(param_2 + 10) & 0x28) == 0) { *param_6 = (uint)*(ushort *)(param_2 + 0x12); local_28 = param_3; memmove(param_4,param_5 + (-(ulong)local_48 - (ulong)*param_6),(ulong)*param_6); local_9 = 0; } else { local_28 = param_3 + (local_48 + 2); *param_4 = 0; do { if (param_5 <= local_28) { return 0; } uVar1 = (**(code **)(local_20 + 0x48))(local_20,local_48,&local_28,param_4); *param_6 = uVar1; } while (*param_6 != 0); mi_report_error(0x7e,*(int8 *)(*local_18 + 0x268)); puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7e; local_9 = 1; } return local_9; }
32,289
pvio_socket_shutdown
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
int pvio_socket_shutdown(MARIADB_PVIO *pvio) { if (pvio && pvio->data) { my_socket s = ((struct st_pvio_socket *)pvio->data)->socket; #ifdef _WIN32 shutdown(s, SD_BOTH); CancelIoEx((HANDLE)s, NULL); #else shutdown(s, SHUT_RDWR); #endif } return -1; }
O0
c
pvio_socket_shutdown: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0x47156 movq -0x8(%rbp), %rax cmpq $0x0, (%rax) je 0x47156 movq -0x8(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -0xc(%rbp) movl -0xc(%rbp), %edi movl $0x2, %esi callq 0x135d0 movl $0xffffffff, %eax # imm = 0xFFFFFFFF addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
pvio_socket_shutdown: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi cmp [rbp+var_8], 0 jz short loc_47156 mov rax, [rbp+var_8] cmp qword ptr [rax], 0 jz short loc_47156 mov rax, [rbp+var_8] mov rax, [rax] mov eax, [rax] mov [rbp+var_C], eax mov edi, [rbp+var_C] mov esi, 2 call _shutdown loc_47156: mov eax, 0FFFFFFFFh add rsp, 10h pop rbp retn
long long pvio_socket_shutdown(_QWORD *a1) { if ( a1 && *a1 ) shutdown(*(unsigned int *)*a1, 2LL); return 0xFFFFFFFFLL; }
pvio_socket_shutdown: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI CMP qword ptr [RBP + -0x8],0x0 JZ 0x00147156 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX],0x0 JZ 0x00147156 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0xc],EAX MOV EDI,dword ptr [RBP + -0xc] MOV ESI,0x2 CALL 0x001135d0 LAB_00147156: MOV EAX,0xffffffff ADD RSP,0x10 POP RBP RET
int8 pvio_socket_shutdown(long *param_1) { if ((param_1 != (long *)0x0) && (*param_1 != 0)) { shutdown(*(int *)*param_1,2); } return 0xffffffff; }
32,290
ma_write_undo_key_insert
eloqsql/storage/maria/ma_write.c
int _ma_write_undo_key_insert(MARIA_HA *info, const MARIA_KEY *key, my_off_t *root, my_off_t new_root, LSN *res_lsn) { MARIA_SHARE *share= info->s; MARIA_KEYDEF *keyinfo= key->keyinfo; uchar log_data[LSN_STORE_SIZE + FILEID_STORE_SIZE + KEY_NR_STORE_SIZE]; const uchar *key_value; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 2]; struct st_msg_to_write_hook_for_undo_key msg; uint key_length; /* Save if we need to write a clr record */ lsn_store(log_data, info->trn->undo_lsn); key_nr_store(log_data + LSN_STORE_SIZE + FILEID_STORE_SIZE, keyinfo->key_nr); key_length= key->data_length + key->ref_length; log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data); log_array[TRANSLOG_INTERNAL_PARTS + 1].str= key->data; log_array[TRANSLOG_INTERNAL_PARTS + 1].length= key_length; msg.root= root; msg.value= new_root; msg.auto_increment= 0; key_value= key->data; if (share->base.auto_key == ((uint) keyinfo->key_nr + 1)) { const HA_KEYSEG *keyseg= keyinfo->seg; uchar reversed[MARIA_MAX_KEY_BUFF]; if (keyseg->flag & HA_SWAP_KEY) { /* We put key from log record to "data record" packing format... */ const uchar *key_ptr= key->data, *key_end= key->data + keyseg->length; uchar *to= reversed + keyseg->length; do { *--to= *key_ptr++; } while (key_ptr != key_end); key_value= to; } /* ... so that we can read it with: */ msg.auto_increment= ma_retrieve_auto_increment(key_value, keyseg->type); /* and write_hook_for_undo_key_insert() will pick this. */ } return translog_write_record(res_lsn, LOGREC_UNDO_KEY_INSERT, info->trn, info, (translog_size_t) log_array[TRANSLOG_INTERNAL_PARTS + 0].length + key_length, TRANSLOG_INTERNAL_PARTS + 2, log_array, log_data + LSN_STORE_SIZE, &msg) ? -1 : 0; }
O3
c
ma_write_undo_key_insert: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xa50, %rsp # imm = 0xA50 movq %r8, %rbx movq %rdi, %r14 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) movq (%rdi), %r9 movq 0x8(%rsi), %r8 movq 0x8(%rdi), %rax movq 0x98(%rax), %rdi movq %rdi, %r10 shrq $0x20, %r10 leaq -0x32(%rbp), %r11 movb %r10b, (%r11) movq %rdi, %r10 shrq $0x28, %r10 movb %r10b, 0x1(%r11) movq %rdi, %r10 shrq $0x30, %r10 movb %r10b, 0x2(%r11) movl %edi, 0x3(%r11) movzbl 0xa5(%r8), %r10d movb %r10b, 0x9(%r11) movl 0x14(%rsi), %r15d addl 0x10(%rsi), %r15d movq %r11, -0xa50(%rbp) movq $0xa, -0xa48(%rbp) movq (%rsi), %rdi movq %rdi, -0xa40(%rbp) movq %r15, -0xa38(%rbp) movq %rdx, -0xa30(%rbp) movq %rcx, -0xa28(%rbp) movq $0x0, -0xa18(%rbp) incl %r10d cmpl %r10d, 0x3ec(%r9) jne 0x5a7ca movq 0xc0(%r8), %rax testb $0x40, 0x12(%rax) je 0x5a7b6 movzwl 0x14(%rax), %ecx leaq -0xa10(%rbp), %rdx movb (%rdi), %sil incq %rdi movb %sil, -0xa11(%rbp,%rcx) decq %rcx jne 0x5a7a0 movq %rdx, %rdi movzbl 0x18(%rax), %esi callq 0x43c73 movq %rax, -0xa18(%rbp) movq 0x8(%r14), %rax leaq -0x2b(%rbp), %r10 addl $0xa, %r15d subq $0x8, %rsp leaq -0xa30(%rbp), %r11 leaq -0xa70(%rbp), %r12 movq %rbx, %rdi movl $0x15, %esi movq %rax, %rdx movq %r14, %rcx movl %r15d, %r8d movl $0x4, %r9d pushq %r11 pushq %r10 pushq %r12 callq 0x2d77c addq $0x20, %rsp movl %eax, %ecx xorl %eax, %eax negb %cl sbbl %eax, %eax movq %fs:0x28, %rcx cmpq -0x28(%rbp), %rcx jne 0x5a831 addq $0xa50, %rsp # imm = 0xA50 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x2b280
_ma_write_undo_key_insert: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 0A50h mov rbx, r8 mov r14, rdi mov rax, fs:28h mov [rbp+var_28], rax mov r9, [rdi] mov r8, [rsi+8] mov rax, [rdi+8] mov rdi, [rax+98h] mov r10, rdi shr r10, 20h lea r11, [rbp+var_32] mov [r11], r10b mov r10, rdi shr r10, 28h mov [r11+1], r10b mov r10, rdi shr r10, 30h mov [r11+2], r10b mov [r11+3], edi movzx r10d, byte ptr [r8+0A5h] mov [r11+9], r10b mov r15d, [rsi+14h] add r15d, [rsi+10h] mov [rbp+var_A50], r11 mov [rbp+var_A48], 0Ah mov rdi, [rsi] mov [rbp+var_A40], rdi mov [rbp+var_A38], r15 mov [rbp+var_A30], rdx mov [rbp+var_A28], rcx mov [rbp+var_A18], 0 inc r10d cmp [r9+3ECh], r10d jnz short loc_5A7CA mov rax, [r8+0C0h] test byte ptr [rax+12h], 40h jz short loc_5A7B6 movzx ecx, word ptr [rax+14h] lea rdx, [rbp+var_A10] loc_5A7A0: mov sil, [rdi] inc rdi mov byte ptr [rbp+rcx+var_A18+7], sil dec rcx jnz short loc_5A7A0 mov rdi, rdx loc_5A7B6: movzx esi, byte ptr [rax+18h] call ma_retrieve_auto_increment mov [rbp+var_A18], rax mov rax, [r14+8] loc_5A7CA: lea r10, [rbp+var_2B] add r15d, 0Ah sub rsp, 8 lea r11, [rbp+var_A30] lea r12, [rbp+var_A70] mov rdi, rbx mov esi, 15h mov rdx, rax mov rcx, r14 mov r8d, r15d mov r9d, 4 push r11 push r10 push r12 call translog_write_record add rsp, 20h mov ecx, eax xor eax, eax neg cl sbb eax, eax mov rcx, fs:28h cmp rcx, [rbp+var_28] jnz short loc_5A831 add rsp, 0A50h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_5A831: call ___stack_chk_fail
long long ma_write_undo_key_insert(long long *a1, long long a2, long long a3, long long a4, unsigned long long a5) { long long v7; // r9 long long v8; // r8 long long v9; // rax long long v10; // rdi long long v11; // r15 unsigned __int8 *v12; // rdi long long v13; // rax long long v14; // rcx char v15; // si __int128 v17; // [rsp+0h] [rbp-A70h] BYREF _BYTE *v18; // [rsp+20h] [rbp-A50h] long long v19; // [rsp+28h] [rbp-A48h] unsigned __int8 *v20; // [rsp+30h] [rbp-A40h] long long v21; // [rsp+38h] [rbp-A38h] _QWORD v22[3]; // [rsp+40h] [rbp-A30h] BYREF long long auto_increment; // [rsp+58h] [rbp-A18h] char v24; // [rsp+60h] [rbp-A10h] BYREF _BYTE v25[3]; // [rsp+A3Eh] [rbp-32h] BYREF int v26; // [rsp+A41h] [rbp-2Fh] __int16 v27; // [rsp+A45h] [rbp-2Bh] BYREF unsigned __int8 v28; // [rsp+A47h] [rbp-29h] unsigned long long v29; // [rsp+A48h] [rbp-28h] v29 = __readfsqword(0x28u); v7 = *a1; v8 = *(_QWORD *)(a2 + 8); v9 = a1[1]; v10 = *(_QWORD *)(v9 + 152); v25[0] = BYTE4(v10); v25[1] = BYTE5(v10); v25[2] = BYTE6(v10); v26 = v10; v28 = *(_BYTE *)(v8 + 165); v11 = (unsigned int)(*(_DWORD *)(a2 + 16) + *(_DWORD *)(a2 + 20)); v18 = v25; v19 = 10LL; v12 = *(unsigned __int8 **)a2; v20 = *(unsigned __int8 **)a2; v21 = v11; v22[0] = a3; v22[1] = a4; auto_increment = 0LL; if ( *(_DWORD *)(v7 + 1004) == v28 + 1 ) { v13 = *(_QWORD *)(v8 + 192); if ( (*(_BYTE *)(v13 + 18) & 0x40) != 0 ) { v14 = *(unsigned __int16 *)(v13 + 20); do { v15 = *v12++; *((_BYTE *)&auto_increment + v14-- + 7) = v15; } while ( v14 ); v12 = (unsigned __int8 *)&v24; } auto_increment = ma_retrieve_auto_increment(v12, *(unsigned __int8 *)(v13 + 24)); v9 = a1[1]; } return (unsigned int)-((unsigned __int8)translog_write_record( a5, (int *)((char *)&dword_14 + 1), v9, a1, (int)v11 + 10, 4, &v17, &v27, (long long)v22) != 0); }
_ma_write_undo_key_insert: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xa50 MOV RBX,R8 MOV R14,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX MOV R9,qword ptr [RDI] MOV R8,qword ptr [RSI + 0x8] MOV RAX,qword ptr [RDI + 0x8] MOV RDI,qword ptr [RAX + 0x98] MOV R10,RDI SHR R10,0x20 LEA R11,[RBP + -0x32] MOV byte ptr [R11],R10B MOV R10,RDI SHR R10,0x28 MOV byte ptr [R11 + 0x1],R10B MOV R10,RDI SHR R10,0x30 MOV byte ptr [R11 + 0x2],R10B MOV dword ptr [R11 + 0x3],EDI MOVZX R10D,byte ptr [R8 + 0xa5] MOV byte ptr [R11 + 0x9],R10B MOV R15D,dword ptr [RSI + 0x14] ADD R15D,dword ptr [RSI + 0x10] MOV qword ptr [RBP + -0xa50],R11 MOV qword ptr [RBP + -0xa48],0xa MOV RDI,qword ptr [RSI] MOV qword ptr [RBP + -0xa40],RDI MOV qword ptr [RBP + -0xa38],R15 MOV qword ptr [RBP + -0xa30],RDX MOV qword ptr [RBP + -0xa28],RCX MOV qword ptr [RBP + -0xa18],0x0 INC R10D CMP dword ptr [R9 + 0x3ec],R10D JNZ 0x0015a7ca MOV RAX,qword ptr [R8 + 0xc0] TEST byte ptr [RAX + 0x12],0x40 JZ 0x0015a7b6 MOVZX ECX,word ptr [RAX + 0x14] LEA RDX,[RBP + -0xa10] LAB_0015a7a0: MOV SIL,byte ptr [RDI] INC RDI MOV byte ptr [RBP + RCX*0x1 + -0xa11],SIL DEC RCX JNZ 0x0015a7a0 MOV RDI,RDX LAB_0015a7b6: MOVZX ESI,byte ptr [RAX + 0x18] CALL 0x00143c73 MOV qword ptr [RBP + -0xa18],RAX MOV RAX,qword ptr [R14 + 0x8] LAB_0015a7ca: LEA R10,[RBP + -0x2b] ADD R15D,0xa SUB RSP,0x8 LEA R11,[RBP + -0xa30] LEA R12,[RBP + -0xa70] MOV RDI,RBX MOV ESI,0x15 MOV RDX,RAX MOV RCX,R14 MOV R8D,R15D MOV R9D,0x4 PUSH R11 PUSH R10 PUSH R12 CALL 0x0012d77c ADD RSP,0x20 MOV ECX,EAX XOR EAX,EAX NEG CL SBB EAX,EAX MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x28] JNZ 0x0015a831 ADD RSP,0xa50 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0015a831: CALL 0x0012b280
int _ma_write_undo_key_insert (long *param_1,long *param_2,int8 param_3,int8 param_4,int8 param_5) { int1 uVar1; int8 uVar2; char cVar3; long lVar4; ulong uVar5; int1 *puVar6; int1 *puVar7; uint uVar8; long in_FS_OFFSET; int1 local_a78 [32]; int1 *local_a58; int8 local_a50; int1 *local_a48; ulong local_a40; int8 local_a38; int8 local_a30; int8 local_a20; int1 local_a18 [2526]; int1 local_3a; int1 local_39; int1 local_38; int4 local_37; int1 local_33 [2]; byte local_31; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); lVar4 = param_1[1]; uVar2 = *(int8 *)(lVar4 + 0x98); local_a58 = &local_3a; local_3a = (int1)((ulong)uVar2 >> 0x20); local_39 = (int1)((ulong)uVar2 >> 0x28); local_38 = (int1)((ulong)uVar2 >> 0x30); local_37 = (int4)uVar2; local_31 = *(byte *)(param_2[1] + 0xa5); uVar8 = *(int *)((long)param_2 + 0x14) + (int)param_2[2]; local_a40 = (ulong)uVar8; local_a50 = 10; local_a48 = (int1 *)*param_2; local_a20 = 0; local_a38 = param_3; local_a30 = param_4; if (*(int *)(*param_1 + 0x3ec) == local_31 + 1) { lVar4 = *(long *)(param_2[1] + 0xc0); puVar7 = local_a48; if ((*(byte *)(lVar4 + 0x12) & 0x40) != 0) { uVar5 = (ulong)*(ushort *)(lVar4 + 0x14); puVar7 = local_a18; puVar6 = local_a48; do { uVar1 = *puVar6; puVar6 = puVar6 + 1; local_a18[uVar5 - 1] = uVar1; uVar5 = uVar5 - 1; } while (uVar5 != 0); } local_a20 = ma_retrieve_auto_increment(puVar7,*(int1 *)(lVar4 + 0x18)); lVar4 = param_1[1]; } cVar3 = translog_write_record (param_5,0x15,lVar4,param_1,uVar8 + 10,4,local_a78,local_33,&local_a38); if (*(long *)(in_FS_OFFSET + 0x28) != local_30) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return -(uint)(cVar3 != '\0'); }
32,291
read_next_extent
eloqsql/storage/maria/ma_blockrec.c
static uchar *read_next_extent(MARIA_HA *info, MARIA_EXTENT_CURSOR *extent, uchar **end_of_data) { MARIA_SHARE *share= info->s; uchar *buff, *data; MARIA_PINNED_PAGE page_link; enum pagecache_page_lock lock; DBUG_ENTER("read_next_extent"); if (!extent->page_count) { uint page_count; if (!--extent->extent_count) goto crashed; extent->extent+= ROW_EXTENT_SIZE; extent->page= page_korr(extent->extent); page_count= (uint2korr(extent->extent+ROW_EXTENT_PAGE_SIZE) & ~START_EXTENT_BIT); if (!page_count) goto crashed; extent->tail= page_count & TAIL_BIT; if (extent->tail) extent->tail_row_nr= page_count & ~TAIL_BIT; else extent->page_count= page_count; DBUG_PRINT("info",("New extent. Page: %lu page_count: %u tail_flag: %d", (ulong) extent->page, extent->page_count, extent->tail != 0)); } extent->first_extent= 0; lock= PAGECACHE_LOCK_LEFT_UNLOCKED; if (extent->tail) lock= extent->lock_for_tail_pages; buff= pagecache_read(share->pagecache, &info->dfile, extent->page, 0, info->buff, share->page_type, lock, &page_link.link); if (lock != PAGECACHE_LOCK_LEFT_UNLOCKED) { /* Read during UNDO */ page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; page_link.changed= buff != 0; push_dynamic(&info->pinned_pages, (void*) &page_link); } if (!buff) { /* check if we tried to read over end of file (ie: bad data in record) */ if ((extent->page + 1) * share->block_size > share->state.state.data_file_length) goto crashed; DBUG_RETURN(0); } if (!extent->tail) { /* Full data page */ if ((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) != BLOB_PAGE) goto crashed; extent->page++; /* point to next page */ extent->page_count--; *end_of_data= buff + share->block_size - PAGE_SUFFIX_SIZE; info->cur_row.full_page_count++; /* For maria_chk */ DBUG_RETURN(extent->data_start= buff + FULL_PAGE_HEADER_SIZE(share)); } /* Found tail */ if ((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) != TAIL_PAGE) goto crashed; *(extent->tail_positions++)= ma_recordpos(extent->page, extent->tail_row_nr); info->cur_row.tail_count++; /* For maria_chk */ if (!(data= get_record_position(share, buff, extent->tail_row_nr, end_of_data))) goto crashed; extent->data_start= data; extent->page_count= 0; /* No more data in extent */ DBUG_RETURN(data); crashed: DBUG_ASSERT(!maria_assert_if_crashed_table); _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); DBUG_PRINT("error", ("wrong extent information")); DBUG_RETURN(0); }
O3
c
read_next_extent: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, -0x38(%rbp) movq %rsi, %rbx movq %rdi, %r14 movq (%rdi), %r15 cmpl $0x0, 0x20(%rsi) je 0x48f8b leaq 0x2c(%rbx), %rax movq %rax, -0x30(%rbp) cmpl $0x0, 0x2c(%rbx) movb $0x0, 0x34(%rbx) je 0x48fdf movl 0x24(%rbx), %r12d jmp 0x48fe2 decl 0x28(%rbx) je 0x490f2 movq (%rbx), %rax leaq 0x7(%rax), %rcx movq %rcx, (%rbx) movl 0x7(%rax), %ecx movzbl 0xb(%rax), %edx shlq $0x20, %rdx orq %rcx, %rdx movq %rdx, 0x18(%rbx) movzwl 0xc(%rax), %eax andl $0xbfff, %eax # imm = 0xBFFF je 0x490f2 movl %eax, %ecx andl $0x8000, %ecx # imm = 0x8000 movl %ecx, 0x2c(%rbx) jne 0x49110 movl %eax, 0x20(%rbx) movb $0x0, 0x34(%rbx) leaq 0x2c(%rbx), %rax movq %rax, -0x30(%rbp) xorl %r12d, %r12d movq 0x600(%r15), %rdi leaq 0x470(%r14), %rsi movq 0x18(%rbx), %rdx movq 0x378(%r14), %r8 movl 0x7d4(%r15), %r9d leaq -0x50(%rbp), %rax xorl %ecx, %ecx pushq %rax pushq %r12 callq 0x6e9fa addq $0x10, %rsp movq %rax, %r13 testl %r12d, %r12d je 0x4903a leaq -0x50(%rbp), %rsi movl $0x6, 0x8(%rsi) testq %r13, %r13 setne 0x10(%rsi) leaq 0x2e8(%r14), %rdi callq 0x948aa testq %r13, %r13 je 0x4909e movb 0x7(%r13), %al andb $0x7, %al movq -0x30(%rbp), %rcx cmpl $0x0, (%rcx) je 0x490b8 cmpb $0x2, %al jne 0x490f2 movq 0x10(%rbx), %rax movq 0x18(%rbx), %rcx movl 0x30(%rbx), %edx shlq $0x8, %rcx orq %rdx, %rcx leaq 0x8(%rax), %rdx movq %rdx, 0x10(%rbx) movq %rcx, (%rax) incl 0x134(%r14) movl 0x30(%rbx), %edx movq %r15, %rdi movq %r13, %rsi movq -0x38(%rbp), %rcx callq 0x491da testq %rax, %rax je 0x490f2 movq %rax, 0x8(%rbx) movl $0x0, 0x20(%rbx) jmp 0x49101 movq 0x18(%rbx), %rax incq %rax movl 0x7bc(%r15), %ecx imulq %rax, %rcx cmpq 0x40(%r15), %rcx ja 0x490f2 jmp 0x490ff cmpb $0x3, %al jne 0x490f2 incq 0x18(%rbx) decl 0x20(%rbx) movl 0x7bc(%r15), %eax addq %r13, %rax addq $-0x4, %rax movq -0x38(%rbp), %rcx movq %rax, (%rcx) incl 0x130(%r14) movl 0xc18(%r15), %eax addl $0x8, %eax addq %r13, %rax movq %rax, 0x8(%rbx) jmp 0x49101 movq %r14, %rdi movl $0x7f, %esi callq 0x37840 xorl %eax, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq andl $0x3fff, %eax # imm = 0x3FFF movl %eax, 0x30(%rbx) movb $0x0, 0x34(%rbx) leaq 0x2c(%rbx), %rax movq %rax, -0x30(%rbp) jmp 0x48f85
read_next_extent: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov [rbp+var_38], rdx mov rbx, rsi mov r14, rdi mov r15, [rdi] cmp dword ptr [rsi+20h], 0 jz short loc_48F8B lea rax, [rbx+2Ch] mov [rbp+var_30], rax cmp dword ptr [rbx+2Ch], 0 mov byte ptr [rbx+34h], 0 jz short loc_48FDF loc_48F85: mov r12d, [rbx+24h] jmp short loc_48FE2 loc_48F8B: dec dword ptr [rbx+28h] jz loc_490F2 mov rax, [rbx] lea rcx, [rax+7] mov [rbx], rcx mov ecx, [rax+7] movzx edx, byte ptr [rax+0Bh] shl rdx, 20h or rdx, rcx mov [rbx+18h], rdx movzx eax, word ptr [rax+0Ch] and eax, 0BFFFh jz loc_490F2 mov ecx, eax and ecx, 8000h mov [rbx+2Ch], ecx jnz loc_49110 mov [rbx+20h], eax mov byte ptr [rbx+34h], 0 lea rax, [rbx+2Ch] mov [rbp+var_30], rax loc_48FDF: xor r12d, r12d loc_48FE2: mov rdi, [r15+600h] lea rsi, [r14+470h] mov rdx, [rbx+18h] mov r8, [r14+378h] mov r9d, [r15+7D4h] lea rax, [rbp+var_50] xor ecx, ecx push rax push r12 call pagecache_read add rsp, 10h mov r13, rax test r12d, r12d jz short loc_4903A lea rsi, [rbp+var_50] mov dword ptr [rsi+8], 6 test r13, r13 setnz byte ptr [rsi+10h] lea rdi, [r14+2E8h] call insert_dynamic loc_4903A: test r13, r13 jz short loc_4909E mov al, [r13+7] and al, 7 mov rcx, [rbp+var_30] cmp dword ptr [rcx], 0 jz short loc_490B8 cmp al, 2 jnz loc_490F2 mov rax, [rbx+10h] mov rcx, [rbx+18h] mov edx, [rbx+30h] shl rcx, 8 or rcx, rdx lea rdx, [rax+8] mov [rbx+10h], rdx mov [rax], rcx inc dword ptr [r14+134h] mov edx, [rbx+30h] mov rdi, r15 mov rsi, r13 mov rcx, [rbp+var_38] call get_record_position test rax, rax jz short loc_490F2 mov [rbx+8], rax mov dword ptr [rbx+20h], 0 jmp short loc_49101 loc_4909E: mov rax, [rbx+18h] inc rax mov ecx, [r15+7BCh] imul rcx, rax cmp rcx, [r15+40h] ja short loc_490F2 jmp short loc_490FF loc_490B8: cmp al, 3 jnz short loc_490F2 inc qword ptr [rbx+18h] dec dword ptr [rbx+20h] mov eax, [r15+7BCh] add rax, r13 add rax, 0FFFFFFFFFFFFFFFCh mov rcx, [rbp+var_38] mov [rcx], rax inc dword ptr [r14+130h] mov eax, [r15+0C18h] add eax, 8 add rax, r13 mov [rbx+8], rax jmp short loc_49101 loc_490F2: mov rdi, r14 mov esi, 7Fh call _ma_set_fatal_error loc_490FF: xor eax, eax loc_49101: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_49110: and eax, 3FFFh mov [rbx+30h], eax mov byte ptr [rbx+34h], 0 lea rax, [rbx+2Ch] mov [rbp+var_30], rax jmp loc_48F85
long long read_next_extent( long long *a1, long long *a2, unsigned long long a3, unsigned long long a4, long long a5, int a6) { long long v6; // r15 bool v7; // zf int v8; // r12d long long v9; // rax int v10; // eax long long v11; // rax long long v12; // r13 char v13; // al unsigned long long *v14; // rax unsigned long long v15; // rcx long long result; // rax _BYTE v17[8]; // [rsp+0h] [rbp-50h] BYREF int v18; // [rsp+8h] [rbp-48h] bool v19; // [rsp+10h] [rbp-40h] _QWORD *v20; // [rsp+18h] [rbp-38h] _DWORD *v21; // [rsp+20h] [rbp-30h] v20 = (_QWORD *)a3; v6 = *a1; if ( *((_DWORD *)a2 + 8) ) { v21 = (_DWORD *)a2 + 11; v7 = *((_DWORD *)a2 + 11) == 0; *((_BYTE *)a2 + 52) = 0; if ( !v7 ) { LABEL_3: v8 = *((_DWORD *)a2 + 9); goto LABEL_9; } } else { v7 = (*((_DWORD *)a2 + 10))-- == 1; if ( v7 ) goto LABEL_20; v9 = *a2; *a2 += 7LL; a4 = *(unsigned int *)(v9 + 7); a3 = a4 | ((unsigned long long)*(unsigned __int8 *)(v9 + 11) << 32); a2[3] = a3; v10 = *(_WORD *)(v9 + 12) & 0xBFFF; if ( !v10 ) goto LABEL_20; *((_DWORD *)a2 + 11) = v10 & 0x8000; if ( (v10 & 0x8000) != 0 ) { *((_DWORD *)a2 + 12) = v10 & 0x3FFF; *((_BYTE *)a2 + 52) = 0; v21 = (_DWORD *)a2 + 11; goto LABEL_3; } *((_DWORD *)a2 + 8) = v10; *((_BYTE *)a2 + 52) = 0; v21 = (_DWORD *)a2 + 11; } v8 = 0; LABEL_9: v11 = pagecache_read( *(_QWORD *)(v6 + 1536), (int)a1 + 1136, a2[3], 0, a1[111], *(_DWORD *)(v6 + 2004), v8, (long long)v17); v12 = v11; if ( v8 ) { v18 = 6; v19 = v11 != 0; insert_dynamic(a1 + 93, v17); } if ( v12 ) { v13 = *(_BYTE *)(v12 + 7) & 7; a4 = (unsigned long long)v21; if ( *v21 ) { if ( v13 == 2 ) { v14 = (unsigned long long *)a2[2]; v15 = *((unsigned int *)a2 + 12) | (unsigned long long)(a2[3] << 8); a2[2] = (long long)(v14 + 1); *v14 = v15; ++*((_DWORD *)a1 + 77); result = get_record_position(v6, v12, *((unsigned int *)a2 + 12), v20); if ( result ) { a2[1] = result; *((_DWORD *)a2 + 8) = 0; return result; } } } else if ( v13 == 3 ) { ++a2[3]; --*((_DWORD *)a2 + 8); *v20 = v12 + *(unsigned int *)(v6 + 1980) - 4; ++*((_DWORD *)a1 + 76); result = v12 + (unsigned int)(*(_DWORD *)(v6 + 3096) + 8); a2[1] = result; return result; } } else { a4 = (a2[3] + 1) * *(unsigned int *)(v6 + 1980); if ( a4 <= *(_QWORD *)(v6 + 64) ) return 0LL; } LABEL_20: ma_set_fatal_error(a1, 127, a3, a4, a5, a6); return 0LL; }
read_next_extent: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV qword ptr [RBP + -0x38],RDX MOV RBX,RSI MOV R14,RDI MOV R15,qword ptr [RDI] CMP dword ptr [RSI + 0x20],0x0 JZ 0x00148f8b LEA RAX,[RBX + 0x2c] MOV qword ptr [RBP + -0x30],RAX CMP dword ptr [RBX + 0x2c],0x0 MOV byte ptr [RBX + 0x34],0x0 JZ 0x00148fdf LAB_00148f85: MOV R12D,dword ptr [RBX + 0x24] JMP 0x00148fe2 LAB_00148f8b: DEC dword ptr [RBX + 0x28] JZ 0x001490f2 MOV RAX,qword ptr [RBX] LEA RCX,[RAX + 0x7] MOV qword ptr [RBX],RCX MOV ECX,dword ptr [RAX + 0x7] MOVZX EDX,byte ptr [RAX + 0xb] SHL RDX,0x20 OR RDX,RCX MOV qword ptr [RBX + 0x18],RDX MOVZX EAX,word ptr [RAX + 0xc] AND EAX,0xbfff JZ 0x001490f2 MOV ECX,EAX AND ECX,0x8000 MOV dword ptr [RBX + 0x2c],ECX JNZ 0x00149110 MOV dword ptr [RBX + 0x20],EAX MOV byte ptr [RBX + 0x34],0x0 LEA RAX,[RBX + 0x2c] MOV qword ptr [RBP + -0x30],RAX LAB_00148fdf: XOR R12D,R12D LAB_00148fe2: MOV RDI,qword ptr [R15 + 0x600] LEA RSI,[R14 + 0x470] MOV RDX,qword ptr [RBX + 0x18] MOV R8,qword ptr [R14 + 0x378] MOV R9D,dword ptr [R15 + 0x7d4] LEA RAX,[RBP + -0x50] XOR ECX,ECX PUSH RAX PUSH R12 CALL 0x0016e9fa ADD RSP,0x10 MOV R13,RAX TEST R12D,R12D JZ 0x0014903a LEA RSI,[RBP + -0x50] MOV dword ptr [RSI + 0x8],0x6 TEST R13,R13 SETNZ byte ptr [RSI + 0x10] LEA RDI,[R14 + 0x2e8] CALL 0x001948aa LAB_0014903a: TEST R13,R13 JZ 0x0014909e MOV AL,byte ptr [R13 + 0x7] AND AL,0x7 MOV RCX,qword ptr [RBP + -0x30] CMP dword ptr [RCX],0x0 JZ 0x001490b8 CMP AL,0x2 JNZ 0x001490f2 MOV RAX,qword ptr [RBX + 0x10] MOV RCX,qword ptr [RBX + 0x18] MOV EDX,dword ptr [RBX + 0x30] SHL RCX,0x8 OR RCX,RDX LEA RDX,[RAX + 0x8] MOV qword ptr [RBX + 0x10],RDX MOV qword ptr [RAX],RCX INC dword ptr [R14 + 0x134] MOV EDX,dword ptr [RBX + 0x30] MOV RDI,R15 MOV RSI,R13 MOV RCX,qword ptr [RBP + -0x38] CALL 0x001491da TEST RAX,RAX JZ 0x001490f2 MOV qword ptr [RBX + 0x8],RAX MOV dword ptr [RBX + 0x20],0x0 JMP 0x00149101 LAB_0014909e: MOV RAX,qword ptr [RBX + 0x18] INC RAX MOV ECX,dword ptr [R15 + 0x7bc] IMUL RCX,RAX CMP RCX,qword ptr [R15 + 0x40] JA 0x001490f2 JMP 0x001490ff LAB_001490b8: CMP AL,0x3 JNZ 0x001490f2 INC qword ptr [RBX + 0x18] DEC dword ptr [RBX + 0x20] MOV EAX,dword ptr [R15 + 0x7bc] ADD RAX,R13 ADD RAX,-0x4 MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RCX],RAX INC dword ptr [R14 + 0x130] MOV EAX,dword ptr [R15 + 0xc18] ADD EAX,0x8 ADD RAX,R13 MOV qword ptr [RBX + 0x8],RAX JMP 0x00149101 LAB_001490f2: MOV RDI,R14 MOV ESI,0x7f CALL 0x00137840 LAB_001490ff: XOR EAX,EAX LAB_00149101: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00149110: AND EAX,0x3fff MOV dword ptr [RBX + 0x30],EAX MOV byte ptr [RBX + 0x34],0x0 LEA RAX,[RBX + 0x2c] MOV qword ptr [RBP + -0x30],RAX JMP 0x00148f85
long read_next_extent(long *param_1,long *param_2,long *param_3) { long *plVar1; ushort uVar2; ulong *puVar3; byte bVar4; uint uVar5; long lVar6; long lVar7; ulong uVar8; int iVar9; int1 local_58 [8]; int4 local_50; int1 local_48; long *local_40; int *local_38; lVar7 = *param_1; local_40 = param_3; if ((int)param_2[4] == 0) { plVar1 = param_2 + 5; *(int *)plVar1 = (int)*plVar1 + -1; if ((int)*plVar1 == 0) goto LAB_001490f2; lVar6 = *param_2; *param_2 = lVar6 + 7; param_2[3] = (ulong)*(uint5 *)(lVar6 + 7); uVar2 = *(ushort *)(lVar6 + 0xc); uVar5 = (uint)uVar2; if ((uVar2 & 0xbfff) == 0) goto LAB_001490f2; *(uint *)((long)param_2 + 0x2c) = uVar5 & 0x8000; if ((uVar2 & 0x8000) == 0) { *(uint *)(param_2 + 4) = uVar5 & 0xbfff; *(int1 *)((long)param_2 + 0x34) = 0; goto LAB_00148fdf; } *(uint *)(param_2 + 6) = uVar5 & 0x3fff; *(int1 *)((long)param_2 + 0x34) = 0; LAB_00148f85: iVar9 = *(int *)((long)param_2 + 0x24); } else { *(int1 *)((long)param_2 + 0x34) = 0; if (*(int *)((long)param_2 + 0x2c) != 0) goto LAB_00148f85; LAB_00148fdf: iVar9 = 0; } local_38 = (int *)((long)param_2 + 0x2c); lVar6 = pagecache_read(*(int8 *)(lVar7 + 0x600),param_1 + 0x8e,param_2[3],0,param_1[0x6f], *(int4 *)(lVar7 + 0x7d4),iVar9,local_58); if (iVar9 != 0) { local_50 = 6; local_48 = lVar6 != 0; insert_dynamic(param_1 + 0x5d); } if (lVar6 == 0) { uVar8 = (ulong)*(uint *)(lVar7 + 0x7bc) * (param_2[3] + 1); if (uVar8 < *(ulong *)(lVar7 + 0x40) || uVar8 - *(ulong *)(lVar7 + 0x40) == 0) { return 0; } } else { bVar4 = *(byte *)(lVar6 + 7) & 7; if (*local_38 == 0) { if (bVar4 == 3) { param_2[3] = param_2[3] + 1; *(int *)(param_2 + 4) = (int)param_2[4] + -1; *local_40 = (ulong)*(uint *)(lVar7 + 0x7bc) + lVar6 + -4; *(int *)(param_1 + 0x26) = (int)param_1[0x26] + 1; lVar6 = (ulong)(*(int *)(lVar7 + 0xc18) + 8) + lVar6; param_2[1] = lVar6; return lVar6; } } else if (bVar4 == 2) { puVar3 = (ulong *)param_2[2]; param_2[2] = (long)(puVar3 + 1); *puVar3 = param_2[3] << 8 | (ulong)*(uint *)(param_2 + 6); *(int *)((long)param_1 + 0x134) = *(int *)((long)param_1 + 0x134) + 1; lVar7 = get_record_position(lVar7,lVar6,(int)param_2[6],local_40); if (lVar7 != 0) { param_2[1] = lVar7; *(int4 *)(param_2 + 4) = 0; return lVar7; } } } LAB_001490f2: _ma_set_fatal_error(param_1,0x7f); return 0; }
32,292
ggml_opt_result_free
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-opt.cpp
void ggml_opt_result_free(ggml_opt_result_t result) { delete result; }
O3
cpp
ggml_opt_result_free: pushq %rbx movq %rdi, %rbx testq %rdi, %rdi je 0x2a3f0 movq 0x20(%rbx), %rdi testq %rdi, %rdi je 0x2a3db movq 0x30(%rbx), %rsi subq %rdi, %rsi callq 0x170d0 movq 0x8(%rbx), %rdi testq %rdi, %rdi je 0x2a3f0 movq 0x18(%rbx), %rsi subq %rdi, %rsi callq 0x170d0 movl $0x50, %esi movq %rbx, %rdi popq %rbx jmp 0x170d0
ggml_opt_result_free: push rbx mov rbx, rdi test rdi, rdi jz short loc_2A3F0 mov rdi, [rbx+20h]; void * test rdi, rdi jz short loc_2A3DB mov rsi, [rbx+30h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2A3DB: mov rdi, [rbx+8]; void * test rdi, rdi jz short loc_2A3F0 mov rsi, [rbx+18h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2A3F0: mov esi, 50h ; 'P'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void ggml_opt_result_free(_QWORD *a1) { void *v2; // rdi void *v3; // rdi if ( a1 ) { v2 = (void *)a1[4]; if ( v2 ) operator delete(v2, a1[6] - (_QWORD)v2); v3 = (void *)a1[1]; if ( v3 ) operator delete(v3, a1[3] - (_QWORD)v3); } operator delete(a1, 0x50uLL); }
ggml_opt_result_free: PUSH RBX MOV RBX,RDI TEST RDI,RDI JZ 0x0012a3f0 MOV RDI,qword ptr [RBX + 0x20] TEST RDI,RDI JZ 0x0012a3db MOV RSI,qword ptr [RBX + 0x30] SUB RSI,RDI CALL 0x001170d0 LAB_0012a3db: MOV RDI,qword ptr [RBX + 0x8] TEST RDI,RDI JZ 0x0012a3f0 MOV RSI,qword ptr [RBX + 0x18] SUB RSI,RDI CALL 0x001170d0 LAB_0012a3f0: MOV ESI,0x50 MOV RDI,RBX POP RBX JMP 0x001170d0
void ggml_opt_result_free(void *param_1) { void *pvVar1; if (param_1 != (void *)0x0) { pvVar1 = *(void **)((long)param_1 + 0x20); if (pvVar1 != (void *)0x0) { operator_delete(pvVar1,*(long *)((long)param_1 + 0x30) - (long)pvVar1); } pvVar1 = *(void **)((long)param_1 + 8); if (pvVar1 != (void *)0x0) { operator_delete(pvVar1,*(long *)((long)param_1 + 0x18) - (long)pvVar1); } } operator_delete(param_1,0x50); return; }
32,293
update_backward_delete_link
eloqsql/storage/maria/ma_dynrec.c
static my_bool update_backward_delete_link(MARIA_HA *info, my_off_t delete_block, MARIA_RECORD_POS filepos) { MARIA_BLOCK_INFO block_info; DBUG_ENTER("update_backward_delete_link"); if (delete_block != HA_OFFSET_ERROR) { block_info.second_read=0; if (_ma_get_block_info(info, &block_info, info->dfile.file, delete_block) & BLOCK_DELETED) { uchar buff[8]; mi_sizestore(buff,filepos); if (info->s->file_write(info,buff, 8, delete_block+12, MYF(MY_NABP))) DBUG_RETURN(1); /* Error on write */ } else { _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); DBUG_RETURN(1); /* Wrong delete link */ } } DBUG_RETURN(0); }
O0
c
update_backward_delete_link: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x78(%rbp) movq %rsi, -0x80(%rbp) movq %rdx, -0x88(%rbp) cmpq $-0x1, -0x80(%rbp) je 0x3e9e5 movl $0x0, -0x10(%rbp) movq -0x78(%rbp), %rdi movq -0x78(%rbp), %rax movl 0x480(%rax), %edx movq -0x80(%rbp), %rcx leaq -0x60(%rbp), %rsi callq 0x3da90 andl $0x4, %eax cmpl $0x0, %eax je 0x3e9cf movq -0x88(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x88(%rbp), %rax shrq $0x20, %rax movq %rax, -0x98(%rbp) movq -0x98(%rbp), %rax movq %rax, -0xa0(%rbp) movq -0xa0(%rbp), %rax movb %al, -0x65(%rbp) movq -0xa0(%rbp), %rax shrq $0x8, %rax movb %al, -0x66(%rbp) movq -0xa0(%rbp), %rax shrq $0x10, %rax movb %al, -0x67(%rbp) movq -0xa0(%rbp), %rax shrq $0x18, %rax movb %al, -0x68(%rbp) movq -0x90(%rbp), %rax movq %rax, -0xa8(%rbp) movq -0xa8(%rbp), %rax movb %al, -0x61(%rbp) movq -0xa8(%rbp), %rax shrq $0x8, %rax movb %al, -0x62(%rbp) movq -0xa8(%rbp), %rax shrq $0x10, %rax movb %al, -0x63(%rbp) movq -0xa8(%rbp), %rax shrq $0x18, %rax movb %al, -0x64(%rbp) movq -0x78(%rbp), %rax movq (%rax), %rax movq 0x6e8(%rax), %rax movq -0x78(%rbp), %rdi leaq -0x68(%rbp), %rsi movq -0x80(%rbp), %rcx addq $0xc, %rcx movl $0x8, %edx movl $0x4, %r8d callq *%rax cmpq $0x0, %rax je 0x3e9cd jmp 0x3e9c7 movb $0x1, -0x69(%rbp) jmp 0x3e9eb jmp 0x3e9e3 movq -0x78(%rbp), %rdi movl $0x7f, %esi callq 0x33260 movb $0x1, -0x69(%rbp) jmp 0x3e9eb jmp 0x3e9e5 jmp 0x3e9e7 movb $0x0, -0x69(%rbp) movb -0x69(%rbp), %al movb %al, -0xa9(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x3ea15 movb -0xa9(%rbp), %al addq $0xb0, %rsp popq %rbp retq callq 0x2a270 nopw (%rax,%rax)
update_backward_delete_link: push rbp mov rbp, rsp sub rsp, 0B0h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_78], rdi mov [rbp+var_80], rsi mov [rbp+var_88], rdx cmp [rbp+var_80], 0FFFFFFFFFFFFFFFFh jz loc_3E9E5 mov [rbp+var_10], 0 mov rdi, [rbp+var_78] mov rax, [rbp+var_78] mov edx, [rax+480h] mov rcx, [rbp+var_80] lea rsi, [rbp+var_60] call _ma_get_block_info and eax, 4 cmp eax, 0 jz loc_3E9CF mov rax, [rbp+var_88] mov [rbp+var_90], rax mov rax, [rbp+var_88] shr rax, 20h mov [rbp+var_98], rax mov rax, [rbp+var_98] mov [rbp+var_A0], rax mov rax, [rbp+var_A0] mov [rbp+var_65], al mov rax, [rbp+var_A0] shr rax, 8 mov [rbp+var_66], al mov rax, [rbp+var_A0] shr rax, 10h mov [rbp+var_67], al mov rax, [rbp+var_A0] shr rax, 18h mov [rbp+var_68], al mov rax, [rbp+var_90] mov [rbp+var_A8], rax mov rax, [rbp+var_A8] mov [rbp+var_61], al mov rax, [rbp+var_A8] shr rax, 8 mov [rbp+var_62], al mov rax, [rbp+var_A8] shr rax, 10h mov [rbp+var_63], al mov rax, [rbp+var_A8] shr rax, 18h mov [rbp+var_64], al mov rax, [rbp+var_78] mov rax, [rax] mov rax, [rax+6E8h] mov rdi, [rbp+var_78] lea rsi, [rbp+var_68] mov rcx, [rbp+var_80] add rcx, 0Ch mov edx, 8 mov r8d, 4 call rax cmp rax, 0 jz short loc_3E9CD jmp short $+2 loc_3E9C7: mov [rbp+var_69], 1 jmp short loc_3E9EB loc_3E9CD: jmp short loc_3E9E3 loc_3E9CF: mov rdi, [rbp+var_78] mov esi, 7Fh call _ma_set_fatal_error mov [rbp+var_69], 1 jmp short loc_3E9EB loc_3E9E3: jmp short $+2 loc_3E9E5: jmp short $+2 loc_3E9E7: mov [rbp+var_69], 0 loc_3E9EB: mov al, [rbp+var_69] mov [rbp+var_A9], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_3EA15 mov al, [rbp+var_A9] add rsp, 0B0h pop rbp retn loc_3EA15: call ___stack_chk_fail
bool update_backward_delete_link(_DWORD *a1, long long a2, long long a3, long long a4, long long a5, int a6) { long long v6; // rdx long long v7; // rcx long long v8; // r8 int v9; // r9d _BYTE v13[8]; // [rsp+48h] [rbp-68h] BYREF unsigned __int8 v14[80]; // [rsp+50h] [rbp-60h] BYREF int v15; // [rsp+A0h] [rbp-10h] unsigned long long v16; // [rsp+A8h] [rbp-8h] v16 = __readfsqword(0x28u); if ( a2 == -1 ) return 0; v15 = 0; if ( (ma_get_block_info((long long)a1, v14, (unsigned int)a1[288], a2, a5, a6) & 4) == 0 ) { ma_set_fatal_error(a1, 127, v6, v7, v8, v9); return 1; } v13[2] = BYTE5(a3); v13[3] = BYTE4(a3); v13[0] = HIBYTE(a3); v13[1] = BYTE6(a3); v13[6] = BYTE1(a3); v13[7] = a3; v13[4] = BYTE3(a3); v13[5] = BYTE2(a3); return (*(long long ( **)(_DWORD *, _BYTE *, long long, long long, long long))(*(_QWORD *)a1 + 1768LL))( a1, v13, 8LL, a2 + 12, 4LL) != 0; }
update_backward_delete_link: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x78],RDI MOV qword ptr [RBP + -0x80],RSI MOV qword ptr [RBP + -0x88],RDX CMP qword ptr [RBP + -0x80],-0x1 JZ 0x0013e9e5 MOV dword ptr [RBP + -0x10],0x0 MOV RDI,qword ptr [RBP + -0x78] MOV RAX,qword ptr [RBP + -0x78] MOV EDX,dword ptr [RAX + 0x480] MOV RCX,qword ptr [RBP + -0x80] LEA RSI,[RBP + -0x60] CALL 0x0013da90 AND EAX,0x4 CMP EAX,0x0 JZ 0x0013e9cf MOV RAX,qword ptr [RBP + -0x88] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x88] SHR RAX,0x20 MOV qword ptr [RBP + -0x98],RAX MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0xa0],RAX MOV RAX,qword ptr [RBP + -0xa0] MOV byte ptr [RBP + -0x65],AL MOV RAX,qword ptr [RBP + -0xa0] SHR RAX,0x8 MOV byte ptr [RBP + -0x66],AL MOV RAX,qword ptr [RBP + -0xa0] SHR RAX,0x10 MOV byte ptr [RBP + -0x67],AL MOV RAX,qword ptr [RBP + -0xa0] SHR RAX,0x18 MOV byte ptr [RBP + -0x68],AL MOV RAX,qword ptr [RBP + -0x90] MOV qword ptr [RBP + -0xa8],RAX MOV RAX,qword ptr [RBP + -0xa8] MOV byte ptr [RBP + -0x61],AL MOV RAX,qword ptr [RBP + -0xa8] SHR RAX,0x8 MOV byte ptr [RBP + -0x62],AL MOV RAX,qword ptr [RBP + -0xa8] SHR RAX,0x10 MOV byte ptr [RBP + -0x63],AL MOV RAX,qword ptr [RBP + -0xa8] SHR RAX,0x18 MOV byte ptr [RBP + -0x64],AL MOV RAX,qword ptr [RBP + -0x78] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x6e8] MOV RDI,qword ptr [RBP + -0x78] LEA RSI,[RBP + -0x68] MOV RCX,qword ptr [RBP + -0x80] ADD RCX,0xc MOV EDX,0x8 MOV R8D,0x4 CALL RAX CMP RAX,0x0 JZ 0x0013e9cd JMP 0x0013e9c7 LAB_0013e9c7: MOV byte ptr [RBP + -0x69],0x1 JMP 0x0013e9eb LAB_0013e9cd: JMP 0x0013e9e3 LAB_0013e9cf: MOV RDI,qword ptr [RBP + -0x78] MOV ESI,0x7f CALL 0x00133260 MOV byte ptr [RBP + -0x69],0x1 JMP 0x0013e9eb LAB_0013e9e3: JMP 0x0013e9e5 LAB_0013e9e5: JMP 0x0013e9e7 LAB_0013e9e7: MOV byte ptr [RBP + -0x69],0x0 LAB_0013e9eb: MOV AL,byte ptr [RBP + -0x69] MOV byte ptr [RBP + -0xa9],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0013ea15 MOV AL,byte ptr [RBP + -0xa9] ADD RSP,0xb0 POP RBP RET LAB_0013ea15: CALL 0x0012a270
int8 update_backward_delete_link(long *param_1,long param_2,int8 param_3) { uint uVar1; long lVar2; long in_FS_OFFSET; int1 local_71; int1 local_70; int1 local_6f; int1 local_6e; int1 local_6d; int1 local_6c; int1 local_6b; int1 local_6a; int1 local_69; int1 local_68 [80]; int4 local_18; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 != -1) { local_18 = 0; uVar1 = _ma_get_block_info(param_1,local_68,(int)param_1[0x90],param_2); if ((uVar1 & 4) == 0) { _ma_set_fatal_error(param_1,0x7f); local_71 = 1; goto LAB_0013e9eb; } local_6d = (int1)((ulong)param_3 >> 0x20); local_6e = (int1)((ulong)param_3 >> 0x28); local_6f = (int1)((ulong)param_3 >> 0x30); local_70 = (int1)((ulong)param_3 >> 0x38); local_69 = (int1)param_3; local_6a = (int1)((ulong)param_3 >> 8); local_6b = (int1)((ulong)param_3 >> 0x10); local_6c = (int1)((ulong)param_3 >> 0x18); lVar2 = (**(code **)(*param_1 + 0x6e8))(param_1,&local_70,8,param_2 + 0xc,4); if (lVar2 != 0) { local_71 = 1; goto LAB_0013e9eb; } } local_71 = 0; LAB_0013e9eb: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_71); }
32,294
update_backward_delete_link
eloqsql/storage/maria/ma_dynrec.c
static my_bool update_backward_delete_link(MARIA_HA *info, my_off_t delete_block, MARIA_RECORD_POS filepos) { MARIA_BLOCK_INFO block_info; DBUG_ENTER("update_backward_delete_link"); if (delete_block != HA_OFFSET_ERROR) { block_info.second_read=0; if (_ma_get_block_info(info, &block_info, info->dfile.file, delete_block) & BLOCK_DELETED) { uchar buff[8]; mi_sizestore(buff,filepos); if (info->s->file_write(info,buff, 8, delete_block+12, MYF(MY_NABP))) DBUG_RETURN(1); /* Error on write */ } else { _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); DBUG_RETURN(1); /* Wrong delete link */ } } DBUG_RETURN(0); }
O3
c
update_backward_delete_link: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movq %fs:0x28, %rax movq %rax, -0x20(%rbp) cmpq $-0x1, %rsi je 0x3db38 movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 leaq -0x78(%rbp), %rsi movl $0x0, 0x50(%rsi) movl 0x480(%rdi), %edx movq %rbx, %rcx callq 0x3d560 testb $0x4, %al jne 0x3db06 movq %r14, %rdi movl $0x7f, %esi callq 0x3659c movb $0x1, %al jmp 0x3db3a bswapq %r15 leaq -0x80(%rbp), %rsi movq %r15, (%rsi) movq (%r14), %rax addq $0xc, %rbx movl $0x8, %edx movl $0x4, %r8d movq %r14, %rdi movq %rbx, %rcx callq *0x6e8(%rax) movq %rax, %rcx movb $0x1, %al testq %rcx, %rcx jne 0x3db3a xorl %eax, %eax movq %fs:0x28, %rcx cmpq -0x20(%rbp), %rcx jne 0x3db54 addq $0x68, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0x29270
update_backward_delete_link: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 68h mov rax, fs:28h mov [rbp+var_20], rax cmp rsi, 0FFFFFFFFFFFFFFFFh jz short loc_3DB38 mov r15, rdx mov rbx, rsi mov r14, rdi lea rsi, [rbp+var_78] mov dword ptr [rsi+50h], 0 mov edx, [rdi+480h] mov rcx, rbx call _ma_get_block_info test al, 4 jnz short loc_3DB06 mov rdi, r14 mov esi, 7Fh call _ma_set_fatal_error mov al, 1 jmp short loc_3DB3A loc_3DB06: bswap r15 lea rsi, [rbp+var_80] mov [rsi], r15 mov rax, [r14] add rbx, 0Ch mov edx, 8 mov r8d, 4 mov rdi, r14 mov rcx, rbx call qword ptr [rax+6E8h] mov rcx, rax mov al, 1 test rcx, rcx jnz short loc_3DB3A loc_3DB38: xor eax, eax loc_3DB3A: mov rcx, fs:28h cmp rcx, [rbp+var_20] jnz short loc_3DB54 add rsp, 68h pop rbx pop r14 pop r15 pop rbp retn loc_3DB54: call ___stack_chk_fail
char update_backward_delete_link( _DWORD *a1, long long a2, unsigned long long a3, long long a4, long long a5, int a6) { long long v7; // rdx long long v8; // rcx long long v9; // r8 int v10; // r9d char result; // al long long v12; // rcx unsigned long long v13; // [rsp+0h] [rbp-80h] BYREF unsigned __int8 v14[80]; // [rsp+8h] [rbp-78h] BYREF int v15; // [rsp+58h] [rbp-28h] unsigned long long v16; // [rsp+60h] [rbp-20h] v16 = __readfsqword(0x28u); if ( a2 == -1 ) return 0; v15 = 0; if ( (ma_get_block_info((long long)a1, v14, (unsigned int)a1[288], a2, a5, a6) & 4) == 0 ) { ma_set_fatal_error(a1, 127LL, v7, v8, v9, v10); return 1; } v13 = _byteswap_uint64(a3); v12 = (*(long long ( **)(_DWORD *, unsigned long long *, long long, long long, long long))(*(_QWORD *)a1 + 1768LL))( a1, &v13, 8LL, a2 + 12, 4LL); result = 1; if ( !v12 ) return 0; return result; }
update_backward_delete_link: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x68 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX CMP RSI,-0x1 JZ 0x0013db38 MOV R15,RDX MOV RBX,RSI MOV R14,RDI LEA RSI,[RBP + -0x78] MOV dword ptr [RSI + 0x50],0x0 MOV EDX,dword ptr [RDI + 0x480] MOV RCX,RBX CALL 0x0013d560 TEST AL,0x4 JNZ 0x0013db06 MOV RDI,R14 MOV ESI,0x7f CALL 0x0013659c MOV AL,0x1 JMP 0x0013db3a LAB_0013db06: BSWAP R15 LEA RSI,[RBP + -0x80] MOV qword ptr [RSI],R15 MOV RAX,qword ptr [R14] ADD RBX,0xc MOV EDX,0x8 MOV R8D,0x4 MOV RDI,R14 MOV RCX,RBX CALL qword ptr [RAX + 0x6e8] MOV RCX,RAX MOV AL,0x1 TEST RCX,RCX JNZ 0x0013db3a LAB_0013db38: XOR EAX,EAX LAB_0013db3a: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x20] JNZ 0x0013db54 ADD RSP,0x68 POP RBX POP R14 POP R15 POP RBP RET LAB_0013db54: CALL 0x00129270
int8 update_backward_delete_link(long *param_1,long param_2,ulong param_3) { ulong uVar1; int8 uVar2; long lVar3; long in_FS_OFFSET; ulong local_88; int1 local_80 [80]; int4 local_30; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 != -1) { local_30 = 0; uVar1 = _ma_get_block_info(param_1,local_80,(int)param_1[0x90],param_2); if ((uVar1 & 4) == 0) { _ma_set_fatal_error(param_1,0x7f); uVar2 = 1; goto LAB_0013db3a; } local_88 = param_3 >> 0x38 | (param_3 & 0xff000000000000) >> 0x28 | (param_3 & 0xff0000000000) >> 0x18 | (param_3 & 0xff00000000) >> 8 | (param_3 & 0xff000000) << 8 | (param_3 & 0xff0000) << 0x18 | (param_3 & 0xff00) << 0x28 | param_3 << 0x38; lVar3 = (**(code **)(*param_1 + 0x6e8))(param_1,&local_88,8,param_2 + 0xc,4); uVar2 = 1; if (lVar3 != 0) goto LAB_0013db3a; } uVar2 = 0; LAB_0013db3a: if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return uVar2; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
32,295
blowfish_ctx_alloc
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/cipher_wrap.c
static void *blowfish_ctx_alloc(void) { mbedtls_blowfish_context *ctx; ctx = mbedtls_calloc(1, sizeof(mbedtls_blowfish_context)); if (ctx == NULL) { return NULL; } mbedtls_blowfish_init(ctx); return ctx; }
O3
c
blowfish_ctx_alloc: pushq %rbx movl $0x1, %edi movl $0x1048, %esi # imm = 0x1048 callq 0xf2f0 movq %rax, %rbx testq %rax, %rax je 0x9b258 movq %rbx, %rdi callq 0x9d8e4 movq %rbx, %rax popq %rbx retq
blowfish_ctx_alloc: push rbx mov edi, 1 mov esi, 1048h call _calloc mov rbx, rax test rax, rax jz short loc_9B258 mov rdi, rbx call mbedtls_blowfish_init loc_9B258: mov rax, rbx pop rbx retn
long long blowfish_ctx_alloc() { long long v0; // rax long long v1; // rbx v0 = calloc(1LL, 4168LL); v1 = v0; if ( v0 ) mbedtls_blowfish_init(v0); return v1; }
blowfish_ctx_alloc: PUSH RBX MOV EDI,0x1 MOV ESI,0x1048 CALL 0x0010f2f0 MOV RBX,RAX TEST RAX,RAX JZ 0x0019b258 MOV RDI,RBX CALL 0x0019d8e4 LAB_0019b258: MOV RAX,RBX POP RBX RET
void * blowfish_ctx_alloc(void) { void *pvVar1; pvVar1 = calloc(1,0x1048); if (pvVar1 != (void *)0x0) { mbedtls_blowfish_init(pvVar1); } return pvVar1; }
32,296
walk_and_copy
eloqsql/storage/myisam/ft_nlq_search.c
static int walk_and_copy(FT_SUPERDOC *from, uint32 count __attribute__((unused)), FT_DOC **to) { DBUG_ENTER("walk_and_copy"); from->doc.weight+=from->tmp_weight*from->word_ptr->weight; (*to)->dpos=from->doc.dpos; (*to)->weight=from->doc.weight; (*to)++; DBUG_RETURN(0); }
O3
c
walk_and_copy: pushq %rbp movq %rsp, %rbp movsd 0x18(%rdi), %xmm0 movq (%rdi), %rax movq 0x10(%rdi), %rcx mulsd 0x8(%rcx), %xmm0 addsd 0x8(%rdi), %xmm0 movsd %xmm0, 0x8(%rdi) movq (%rdx), %rcx movq %rax, (%rcx) movsd 0x8(%rdi), %xmm0 movq (%rdx), %rax movsd %xmm0, 0x8(%rax) addq $0x10, (%rdx) xorl %eax, %eax popq %rbp retq
walk_and_copy_0: push rbp mov rbp, rsp movsd xmm0, qword ptr [rdi+18h] mov rax, [rdi] mov rcx, [rdi+10h] mulsd xmm0, qword ptr [rcx+8] addsd xmm0, qword ptr [rdi+8] movsd qword ptr [rdi+8], xmm0 mov rcx, [rdx] mov [rcx], rax movsd xmm0, qword ptr [rdi+8] mov rax, [rdx] movsd qword ptr [rax+8], xmm0 add qword ptr [rdx], 10h xor eax, eax pop rbp retn
long long walk_and_copy_0(double *a1, long long a2, long long a3) { long long v3; // rax v3 = *(_QWORD *)a1; a1[1] = a1[3] * *(double *)(*((_QWORD *)a1 + 2) + 8LL) + a1[1]; **(_QWORD **)a3 = v3; *(double *)(*(_QWORD *)a3 + 8LL) = a1[1]; *(_QWORD *)a3 += 16LL; return 0LL; }
walk_and_copy: PUSH RBP MOV RBP,RSP MOVSD XMM0,qword ptr [RDI + 0x18] MOV RAX,qword ptr [RDI] MOV RCX,qword ptr [RDI + 0x10] MULSD XMM0,qword ptr [RCX + 0x8] ADDSD XMM0,qword ptr [RDI + 0x8] MOVSD qword ptr [RDI + 0x8],XMM0 MOV RCX,qword ptr [RDX] MOV qword ptr [RCX],RAX MOVSD XMM0,qword ptr [RDI + 0x8] MOV RAX,qword ptr [RDX] MOVSD qword ptr [RAX + 0x8],XMM0 ADD qword ptr [RDX],0x10 XOR EAX,EAX POP RBP RET
int8 walk_and_copy(int8 *param_1,int8 param_2,long *param_3) { param_1[1] = (double)param_1[3] * *(double *)(param_1[2] + 8) + (double)param_1[1]; *(int8 *)*param_3 = *param_1; *(int8 *)(*param_3 + 8) = param_1[1]; *param_3 = *param_3 + 0x10; return 0; }
32,297
MainWindow::setupUi()
MarsToPluto[P]llmstudio/src/mainwindow.cpp
void MainWindow::setupUi() { createActions(); createToolBars(); // Create toolbars first createDockWindows(); // Create docks before central widget if they contain main elements createCentralChatWidget(); // Create the main chat area createStatusBar(); // Add docks to the main window addDockWidget(Qt::LeftDockWidgetArea, chatListDock); addDockWidget(Qt::RightDockWidgetArea, configDock); // Set the central widget *after* docks if you want docks around it setCentralWidget(centralChatWidget); // Optional: Prevent docks from being floatable or closable for a fixed layout chatListDock->setFeatures(QDockWidget::DockWidgetMovable); // Only movable configDock->setFeatures(QDockWidget::DockWidgetMovable); // Only movable // Set initial sizes (adjust as needed) chatListDock->setMinimumWidth(180); configDock->setMinimumWidth(280); resize(1200, 800); // Set a default size }
O1
cpp
MainWindow::setupUi(): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx callq 0x6592 movq %rbx, %rdi callq 0x6a18 movq %rbx, %rdi callq 0x7366 movq %rbx, %rdi callq 0x86fc movq %rbx, %rdi callq 0x8d10 movq 0x60(%rbx), %rdx movq %rbx, %rdi movl $0x1, %esi callq 0x54f0 movq 0x68(%rbx), %rdx movq %rbx, %rdi movl $0x2, %esi callq 0x54f0 movq 0xd8(%rbx), %rsi movq %rbx, %rdi callq 0x5630 movq 0x60(%rbx), %rdi movl $0x2, %esi callq 0x5180 movq 0x68(%rbx), %rdi movl $0x2, %esi callq 0x5180 movq 0x60(%rbx), %rdi movl $0xb4, %esi callq 0x5550 movq 0x68(%rbx), %rdi movl $0x118, %esi # imm = 0x118 callq 0x5550 movabsq $0x320000004b0, %rax # imm = 0x320000004B0 leaq 0x8(%rsp), %rsi movq %rax, (%rsi) movq %rbx, %rdi callq 0x5650 addq $0x10, %rsp popq %rbx retq
_ZN10MainWindow7setupUiEv: push rbx sub rsp, 10h mov rbx, rdi call _ZN10MainWindow13createActionsEv; MainWindow::createActions(void) mov rdi, rbx; this call _ZN10MainWindow14createToolBarsEv; MainWindow::createToolBars(void) mov rdi, rbx; this call _ZN10MainWindow17createDockWindowsEv; MainWindow::createDockWindows(void) mov rdi, rbx; this call _ZN10MainWindow23createCentralChatWidgetEv; MainWindow::createCentralChatWidget(void) mov rdi, rbx; this call _ZN10MainWindow15createStatusBarEv; MainWindow::createStatusBar(void) mov rdx, [rbx+60h] mov rdi, rbx mov esi, 1 call __ZN11QMainWindow13addDockWidgetEN2Qt14DockWidgetAreaEP11QDockWidget; QMainWindow::addDockWidget(Qt::DockWidgetArea,QDockWidget *) mov rdx, [rbx+68h] mov rdi, rbx mov esi, 2 call __ZN11QMainWindow13addDockWidgetEN2Qt14DockWidgetAreaEP11QDockWidget; QMainWindow::addDockWidget(Qt::DockWidgetArea,QDockWidget *) mov rsi, [rbx+0D8h]; QWidget * mov rdi, rbx; this call __ZN11QMainWindow16setCentralWidgetEP7QWidget; QMainWindow::setCentralWidget(QWidget *) mov rdi, [rbx+60h] mov esi, 2 call __ZN11QDockWidget11setFeaturesE6QFlagsINS_17DockWidgetFeatureEE; QDockWidget::setFeatures(QFlags<QDockWidget::DockWidgetFeature>) mov rdi, [rbx+68h] mov esi, 2 call __ZN11QDockWidget11setFeaturesE6QFlagsINS_17DockWidgetFeatureEE; QDockWidget::setFeatures(QFlags<QDockWidget::DockWidgetFeature>) mov rdi, [rbx+60h]; this mov esi, 0B4h; int call __ZN7QWidget15setMinimumWidthEi; QWidget::setMinimumWidth(int) mov rdi, [rbx+68h]; this mov esi, 118h; int call __ZN7QWidget15setMinimumWidthEi; QWidget::setMinimumWidth(int) mov rax, 320000004B0h lea rsi, [rsp+18h+var_10] mov [rsi], rax mov rdi, rbx call __ZN7QWidget6resizeERK5QSize; QWidget::resize(QSize const&) add rsp, 10h pop rbx retn
long long MainWindow::setupUi(QWidget **this) { long long v3; // [rsp+8h] [rbp-10h] BYREF MainWindow::createActions((MainWindow *)this); MainWindow::createToolBars((MainWindow *)this); MainWindow::createDockWindows((MainWindow *)this); MainWindow::createCentralChatWidget((MainWindow *)this); MainWindow::createStatusBar((MainWindow *)this); QMainWindow::addDockWidget(this, 1LL, this[12]); QMainWindow::addDockWidget(this, 2LL, this[13]); QMainWindow::setCentralWidget((QMainWindow *)this, this[27]); QDockWidget::setFeatures(this[12], 2LL); QDockWidget::setFeatures(this[13], 2LL); QWidget::setMinimumWidth(this[12], 180); QWidget::setMinimumWidth(this[13], 280); v3 = 0x320000004B0LL; return QWidget::resize(this, &v3); }
setupUi: PUSH RBX SUB RSP,0x10 MOV RBX,RDI CALL 0x00106592 MOV RDI,RBX CALL 0x00106a18 MOV RDI,RBX CALL 0x00107366 MOV RDI,RBX CALL 0x001086fc MOV RDI,RBX CALL 0x00108d10 MOV RDX,qword ptr [RBX + 0x60] MOV RDI,RBX MOV ESI,0x1 CALL 0x001054f0 MOV RDX,qword ptr [RBX + 0x68] MOV RDI,RBX MOV ESI,0x2 CALL 0x001054f0 MOV RSI,qword ptr [RBX + 0xd8] MOV RDI,RBX CALL 0x00105630 MOV RDI,qword ptr [RBX + 0x60] MOV ESI,0x2 CALL 0x00105180 MOV RDI,qword ptr [RBX + 0x68] MOV ESI,0x2 CALL 0x00105180 MOV RDI,qword ptr [RBX + 0x60] MOV ESI,0xb4 CALL 0x00105550 MOV RDI,qword ptr [RBX + 0x68] MOV ESI,0x118 CALL 0x00105550 MOV RAX,0x320000004b0 LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],RAX MOV RDI,RBX CALL 0x00105650 ADD RSP,0x10 POP RBX RET
/* MainWindow::setupUi() */ void __thiscall MainWindow::setupUi(MainWindow *this) { createActions(this); createToolBars(this); createDockWindows(this); createCentralChatWidget(this); createStatusBar(this); QMainWindow::addDockWidget(this,1,*(int8 *)(this + 0x60)); QMainWindow::addDockWidget(this,2,*(int8 *)(this + 0x68)); QMainWindow::setCentralWidget((QWidget *)this); QDockWidget::setFeatures(*(int8 *)(this + 0x60),2); QDockWidget::setFeatures(*(int8 *)(this + 0x68),2); QWidget::setMinimumWidth((int)*(int8 *)(this + 0x60)); QWidget::setMinimumWidth((int)*(int8 *)(this + 0x68)); QWidget::resize((QSize *)this); return; }
32,298
MainWindow::setupUi()
MarsToPluto[P]llmstudio/src/mainwindow.cpp
void MainWindow::setupUi() { createActions(); createToolBars(); // Create toolbars first createDockWindows(); // Create docks before central widget if they contain main elements createCentralChatWidget(); // Create the main chat area createStatusBar(); // Add docks to the main window addDockWidget(Qt::LeftDockWidgetArea, chatListDock); addDockWidget(Qt::RightDockWidgetArea, configDock); // Set the central widget *after* docks if you want docks around it setCentralWidget(centralChatWidget); // Optional: Prevent docks from being floatable or closable for a fixed layout chatListDock->setFeatures(QDockWidget::DockWidgetMovable); // Only movable configDock->setFeatures(QDockWidget::DockWidgetMovable); // Only movable // Set initial sizes (adjust as needed) chatListDock->setMinimumWidth(180); configDock->setMinimumWidth(280); resize(1200, 800); // Set a default size }
O3
cpp
MainWindow::setupUi(): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx callq 0x6592 movq %rbx, %rdi callq 0x6a38 movq %rbx, %rdi callq 0x7384 movq %rbx, %rdi callq 0x8706 movq %rbx, %rdi callq 0x8d1a movq 0x60(%rbx), %rdx movq %rbx, %rdi movl $0x1, %esi callq 0x54f0 movq 0x68(%rbx), %rdx movq %rbx, %rdi movl $0x2, %esi callq 0x54f0 movq 0xd8(%rbx), %rsi movq %rbx, %rdi callq 0x5630 movq 0x60(%rbx), %rdi movl $0x2, %esi callq 0x5180 movq 0x68(%rbx), %rdi movl $0x2, %esi callq 0x5180 movq 0x60(%rbx), %rdi movl $0xb4, %esi callq 0x5550 movq 0x68(%rbx), %rdi movl $0x118, %esi # imm = 0x118 callq 0x5550 movabsq $0x320000004b0, %rax # imm = 0x320000004B0 leaq 0x8(%rsp), %rsi movq %rax, (%rsi) movq %rbx, %rdi callq 0x5650 addq $0x10, %rsp popq %rbx retq
_ZN10MainWindow7setupUiEv: push rbx sub rsp, 10h mov rbx, rdi call _ZN10MainWindow13createActionsEv; MainWindow::createActions(void) mov rdi, rbx; this call _ZN10MainWindow14createToolBarsEv; MainWindow::createToolBars(void) mov rdi, rbx; this call _ZN10MainWindow17createDockWindowsEv; MainWindow::createDockWindows(void) mov rdi, rbx; this call _ZN10MainWindow23createCentralChatWidgetEv; MainWindow::createCentralChatWidget(void) mov rdi, rbx; this call _ZN10MainWindow15createStatusBarEv; MainWindow::createStatusBar(void) mov rdx, [rbx+60h] mov rdi, rbx mov esi, 1 call __ZN11QMainWindow13addDockWidgetEN2Qt14DockWidgetAreaEP11QDockWidget; QMainWindow::addDockWidget(Qt::DockWidgetArea,QDockWidget *) mov rdx, [rbx+68h] mov rdi, rbx mov esi, 2 call __ZN11QMainWindow13addDockWidgetEN2Qt14DockWidgetAreaEP11QDockWidget; QMainWindow::addDockWidget(Qt::DockWidgetArea,QDockWidget *) mov rsi, [rbx+0D8h]; QWidget * mov rdi, rbx; this call __ZN11QMainWindow16setCentralWidgetEP7QWidget; QMainWindow::setCentralWidget(QWidget *) mov rdi, [rbx+60h] mov esi, 2 call __ZN11QDockWidget11setFeaturesE6QFlagsINS_17DockWidgetFeatureEE; QDockWidget::setFeatures(QFlags<QDockWidget::DockWidgetFeature>) mov rdi, [rbx+68h] mov esi, 2 call __ZN11QDockWidget11setFeaturesE6QFlagsINS_17DockWidgetFeatureEE; QDockWidget::setFeatures(QFlags<QDockWidget::DockWidgetFeature>) mov rdi, [rbx+60h]; this mov esi, 0B4h; int call __ZN7QWidget15setMinimumWidthEi; QWidget::setMinimumWidth(int) mov rdi, [rbx+68h]; this mov esi, 118h; int call __ZN7QWidget15setMinimumWidthEi; QWidget::setMinimumWidth(int) mov rax, 320000004B0h lea rsi, [rsp+18h+var_10] mov [rsi], rax mov rdi, rbx call __ZN7QWidget6resizeERK5QSize; QWidget::resize(QSize const&) add rsp, 10h pop rbx retn
long long MainWindow::setupUi(QWidget **this) { long long v3; // [rsp+8h] [rbp-10h] BYREF MainWindow::createActions((MainWindow *)this); MainWindow::createToolBars((MainWindow *)this); MainWindow::createDockWindows((MainWindow *)this); MainWindow::createCentralChatWidget((MainWindow *)this); MainWindow::createStatusBar((MainWindow *)this); QMainWindow::addDockWidget(this, 1LL, this[12]); QMainWindow::addDockWidget(this, 2LL, this[13]); QMainWindow::setCentralWidget((QMainWindow *)this, this[27]); QDockWidget::setFeatures(this[12], 2LL); QDockWidget::setFeatures(this[13], 2LL); QWidget::setMinimumWidth(this[12], 180); QWidget::setMinimumWidth(this[13], 280); v3 = 0x320000004B0LL; return QWidget::resize(this, &v3); }
setupUi: PUSH RBX SUB RSP,0x10 MOV RBX,RDI CALL 0x00106592 MOV RDI,RBX CALL 0x00106a38 MOV RDI,RBX CALL 0x00107384 MOV RDI,RBX CALL 0x00108706 MOV RDI,RBX CALL 0x00108d1a MOV RDX,qword ptr [RBX + 0x60] MOV RDI,RBX MOV ESI,0x1 CALL 0x001054f0 MOV RDX,qword ptr [RBX + 0x68] MOV RDI,RBX MOV ESI,0x2 CALL 0x001054f0 MOV RSI,qword ptr [RBX + 0xd8] MOV RDI,RBX CALL 0x00105630 MOV RDI,qword ptr [RBX + 0x60] MOV ESI,0x2 CALL 0x00105180 MOV RDI,qword ptr [RBX + 0x68] MOV ESI,0x2 CALL 0x00105180 MOV RDI,qword ptr [RBX + 0x60] MOV ESI,0xb4 CALL 0x00105550 MOV RDI,qword ptr [RBX + 0x68] MOV ESI,0x118 CALL 0x00105550 MOV RAX,0x320000004b0 LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],RAX MOV RDI,RBX CALL 0x00105650 ADD RSP,0x10 POP RBX RET
/* MainWindow::setupUi() */ void __thiscall MainWindow::setupUi(MainWindow *this) { createActions(this); createToolBars(this); createDockWindows(this); createCentralChatWidget(this); createStatusBar(this); QMainWindow::addDockWidget(this,1,*(int8 *)(this + 0x60)); QMainWindow::addDockWidget(this,2,*(int8 *)(this + 0x68)); QMainWindow::setCentralWidget((QWidget *)this); QDockWidget::setFeatures(*(int8 *)(this + 0x60),2); QDockWidget::setFeatures(*(int8 *)(this + 0x68),2); QWidget::setMinimumWidth((int)*(int8 *)(this + 0x60)); QWidget::setMinimumWidth((int)*(int8 *)(this + 0x68)); QWidget::resize((QSize *)this); return; }
32,299
size_to_head_pattern
eloqsql/storage/maria/ma_bitmap.c
static uint size_to_head_pattern(MARIA_FILE_BITMAP *bitmap, uint size) { if (size <= bitmap->sizes[3]) return 3; if (size <= bitmap->sizes[2]) return 2; if (size <= bitmap->sizes[1]) return 1; DBUG_ASSERT(size <= bitmap->sizes[0]); return 0; }
O0
c
size_to_head_pattern: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x114(%rcx), %eax ja 0x640b3 movl $0x3, -0x4(%rbp) jmp 0x640ee movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x110(%rcx), %eax ja 0x640cb movl $0x2, -0x4(%rbp) jmp 0x640ee movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x10c(%rcx), %eax ja 0x640e3 movl $0x1, -0x4(%rbp) jmp 0x640ee jmp 0x640e5 jmp 0x640e7 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
size_to_head_pattern: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_14], esi mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+114h] ja short loc_640B3 mov [rbp+var_4], 3 jmp short loc_640EE loc_640B3: mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+110h] ja short loc_640CB mov [rbp+var_4], 2 jmp short loc_640EE loc_640CB: mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+10Ch] ja short loc_640E3 mov [rbp+var_4], 1 jmp short loc_640EE loc_640E3: jmp short $+2 loc_640E5: jmp short $+2 loc_640E7: mov [rbp+var_4], 0 loc_640EE: mov eax, [rbp+var_4] pop rbp retn
long long size_to_head_pattern(_DWORD *a1, unsigned int a2) { if ( a2 > a1[69] ) { if ( a2 > a1[68] ) return a2 <= a1[67]; else return 2; } else { return 3; } }
size_to_head_pattern: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x114] JA 0x001640b3 MOV dword ptr [RBP + -0x4],0x3 JMP 0x001640ee LAB_001640b3: MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x110] JA 0x001640cb MOV dword ptr [RBP + -0x4],0x2 JMP 0x001640ee LAB_001640cb: MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x10c] JA 0x001640e3 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001640ee LAB_001640e3: JMP 0x001640e5 LAB_001640e5: JMP 0x001640e7 LAB_001640e7: MOV dword ptr [RBP + -0x4],0x0 LAB_001640ee: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 size_to_head_pattern(long param_1,uint param_2) { int4 local_c; if (*(uint *)(param_1 + 0x114) < param_2) { if (*(uint *)(param_1 + 0x110) < param_2) { if (*(uint *)(param_1 + 0x10c) < param_2) { local_c = 0; } else { local_c = 1; } } else { local_c = 2; } } else { local_c = 3; } return local_c; }