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
21,100
minja::ExpressionNode::~ExpressionNode()
monkey531[P]llama/common/minja.hpp
ExpressionNode(const Location & location, std::shared_ptr<Expression> && e) : TemplateNode(location), expr(std::move(e)) {}
O1
cpp
minja::ExpressionNode::~ExpressionNode(): pushq %rbx movq %rdi, %rbx leaq 0x800d7(%rip), %rax # 0xf42c8 addq $0x10, %rax movq %rax, (%rdi) movq 0x28(%rdi), %rdi testq %rdi, %rdi je 0x74206 callq 0x32b80 leaq 0x7fddb(%rip), %rax # 0xf3fe8 addq $0x10, %rax movq %rax, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x74222 callq 0x32b80 movl $0x30, %esi movq %rbx, %rdi popq %rbx jmp 0x1a7f0
_ZN5minja14ExpressionNodeD0Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja14ExpressionNodeE; `vtable for'minja::ExpressionNode add rax, 10h mov [rdi], rax mov rdi, [rdi+28h] test rdi, rdi jz short loc_74206 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_74206: lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add rax, 10h mov [rbx], rax mov rdi, [rbx+10h] test rdi, rdi jz short loc_74222 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_74222: mov esi, 30h ; '0'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void minja::ExpressionNode::~ExpressionNode(minja::ExpressionNode *this) { volatile signed __int32 *v2; // rdi volatile signed __int32 *v3; // rdi *(_QWORD *)this = &`vtable for'minja::ExpressionNode + 2; v2 = (volatile signed __int32 *)*((_QWORD *)this + 5); if ( v2 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2); *(_QWORD *)this = &`vtable for'minja::TemplateNode + 2; v3 = (volatile signed __int32 *)*((_QWORD *)this + 2); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); operator delete(this, 0x30uLL); }
~ExpressionNode: PUSH RBX MOV RBX,RDI LEA RAX,[0x1f42c8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x28] TEST RDI,RDI JZ 0x00174206 CALL 0x00132b80 LAB_00174206: LEA RAX,[0x1f3fe8] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JZ 0x00174222 CALL 0x00132b80 LAB_00174222: MOV ESI,0x30 MOV RDI,RBX POP RBX JMP 0x0011a7f0
/* minja::ExpressionNode::~ExpressionNode() */ void __thiscall minja::ExpressionNode::~ExpressionNode(ExpressionNode *this) { *(int ***)this = &PTR_do_render_001f42d8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28)); } *(int ***)this = &PTR___cxa_pure_virtual_001f3ff8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10)); } operator_delete(this,0x30); return; }
21,101
minja::ExpressionNode::~ExpressionNode()
monkey531[P]llama/common/minja.hpp
ExpressionNode(const Location & location, std::shared_ptr<Expression> && e) : TemplateNode(location), expr(std::move(e)) {}
O3
cpp
minja::ExpressionNode::~ExpressionNode(): pushq %rbx movq %rdi, %rbx leaq 0x7e47f(%rip), %rax # 0xf02c8 addq $0x10, %rax movq %rax, (%rdi) movq 0x28(%rdi), %rdi testq %rdi, %rdi je 0x71e5e callq 0x31b9a leaq 0x7e183(%rip), %rax # 0xeffe8 addq $0x10, %rax movq %rax, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x71e7b popq %rbx jmp 0x31b9a popq %rbx retq nop
_ZN5minja14ExpressionNodeD2Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja14ExpressionNodeE; `vtable for'minja::ExpressionNode add rax, 10h mov [rdi], rax mov rdi, [rdi+28h] test rdi, rdi jz short loc_71E5E call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_71E5E: lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add rax, 10h mov [rbx], rax mov rdi, [rbx+10h] test rdi, rdi jz short loc_71E7B pop rbx jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_71E7B: pop rbx retn
void minja::ExpressionNode::~ExpressionNode(minja::ExpressionNode *this) { volatile signed __int32 *v2; // rdi volatile signed __int32 *v3; // rdi *(_QWORD *)this = &`vtable for'minja::ExpressionNode + 2; v2 = (volatile signed __int32 *)*((_QWORD *)this + 5); if ( v2 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2); *(_QWORD *)this = &`vtable for'minja::TemplateNode + 2; v3 = (volatile signed __int32 *)*((_QWORD *)this + 2); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); }
~ExpressionNode: PUSH RBX MOV RBX,RDI LEA RAX,[0x1f02c8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x28] TEST RDI,RDI JZ 0x00171e5e CALL 0x00131b9a LAB_00171e5e: LEA RAX,[0x1effe8] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JZ 0x00171e7b POP RBX JMP 0x00131b9a LAB_00171e7b: POP RBX RET
/* minja::ExpressionNode::~ExpressionNode() */ void __thiscall minja::ExpressionNode::~ExpressionNode(ExpressionNode *this) { *(int ***)this = &PTR_do_render_001f02d8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28)); } *(int ***)this = &PTR___cxa_pure_virtual_001efff8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10)); return; } return; }
21,102
tailoring_append
eloqsql/strings/ctype.c
static int tailoring_append(MY_XML_PARSER *st, const char *fmt, size_t len, const char *attr) { struct my_cs_file_info *i= (struct my_cs_file_info *) st->user_data; size_t newlen= i->tailoring_length + len + 64; /* 64 for format */ if (MY_XML_OK == my_charset_file_tailoring_realloc(i, newlen)) { char *dst= i->tailoring + i->tailoring_length; sprintf(dst, fmt, (int) len, attr); i->tailoring_length+= strlen(dst); return MY_XML_OK; } return MY_XML_ERROR; }
O3
c
tailoring_append: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r9 movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx movq 0x690(%rdi), %r13 leaq (%rdx,%r13), %rax addq $0x40, %rax cmpq %rax, 0x698(%rdi) jbe 0xd4c0b movq 0x688(%rbx), %rax jmp 0xd4c4f movq %r9, %r14 addq %r15, %r13 movq 0x688(%rbx), %rdi movq 0x7a8(%rbx), %rax movq 0x90(%rax), %rax addq $0x8040, %r13 # imm = 0x8040 movq %r13, 0x698(%rbx) movq %r13, %rsi callq *%rax movq %rax, 0x688(%rbx) testq %rax, %rax je 0xd4c92 movq 0x690(%rbx), %r13 movq %r14, %r9 addq %rax, %r13 xorl %r14d, %r14d movq %r13, %rdi movl $0x1, %esi movq $-0x1, %rdx movq %r12, %rcx movl %r15d, %r8d xorl %eax, %eax callq 0x29930 movq %r13, %rdi callq 0x29330 addq %rax, 0x690(%rbx) movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x1, %r14d jmp 0xd4c80
tailoring_append: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r9, rcx mov r15, rdx mov r12, rsi mov rbx, rdi mov r13, [rdi+690h] lea rax, [rdx+r13] add rax, 40h ; '@' cmp [rdi+698h], rax jbe short loc_D4C0B mov rax, [rbx+688h] jmp short loc_D4C4F loc_D4C0B: mov r14, r9 add r13, r15 mov rdi, [rbx+688h] mov rax, [rbx+7A8h] mov rax, [rax+90h] add r13, 8040h mov [rbx+698h], r13 mov rsi, r13 call rax mov [rbx+688h], rax test rax, rax jz short loc_D4C92 mov r13, [rbx+690h] mov r9, r14 loc_D4C4F: add r13, rax xor r14d, r14d mov rdi, r13 mov esi, 1 mov rdx, 0FFFFFFFFFFFFFFFFh mov rcx, r12 mov r8d, r15d xor eax, eax call ___sprintf_chk mov rdi, r13 call _strlen add [rbx+690h], rax loc_D4C80: mov eax, r14d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_D4C92: mov r14d, 1 jmp short loc_D4C80
long long tailoring_append(_QWORD *a1, const char *a2, long long a3, long long a4) { long long v4; // rax long long v5; // r9 unsigned int v6; // r15d long long v8; // r13 long long v9; // rax long long v11; // rdi long long ( *v12)(long long, long long); // rax long long v13; // r13 long long v14; // r13 unsigned int v15; // r14d long long v17; // [rsp-8h] [rbp-30h] v17 = v4; v5 = a4; v6 = a3; v8 = a1[210]; if ( a1[211] <= (unsigned long long)(a3 + v8 + 64) ) { v11 = a1[209]; v12 = *(long long ( **)(long long, long long))(a1[245] + 144LL); v13 = a3 + v8 + 32832; a1[211] = v13; v9 = v12(v11, v13); a1[209] = v9; if ( !v9 ) return 1; v8 = a1[210]; v5 = a4; } else { v9 = a1[209]; } v14 = v9 + v8; v15 = 0; __sprintf_chk(v14, 1LL, -1LL, a2, v6, v5, v17); a1[210] += strlen(v14); return v15; }
tailoring_append: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R9,RCX MOV R15,RDX MOV R12,RSI MOV RBX,RDI MOV R13,qword ptr [RDI + 0x690] LEA RAX,[RDX + R13*0x1] ADD RAX,0x40 CMP qword ptr [RDI + 0x698],RAX JBE 0x001d4c0b MOV RAX,qword ptr [RBX + 0x688] JMP 0x001d4c4f LAB_001d4c0b: MOV R14,R9 ADD R13,R15 MOV RDI,qword ptr [RBX + 0x688] MOV RAX,qword ptr [RBX + 0x7a8] MOV RAX,qword ptr [RAX + 0x90] ADD R13,0x8040 MOV qword ptr [RBX + 0x698],R13 MOV RSI,R13 CALL RAX MOV qword ptr [RBX + 0x688],RAX TEST RAX,RAX JZ 0x001d4c92 MOV R13,qword ptr [RBX + 0x690] MOV R9,R14 LAB_001d4c4f: ADD R13,RAX XOR R14D,R14D MOV RDI,R13 MOV ESI,0x1 MOV RDX,-0x1 MOV RCX,R12 MOV R8D,R15D XOR EAX,EAX CALL 0x00129930 MOV RDI,R13 CALL 0x00129330 ADD qword ptr [RBX + 0x690],RAX LAB_001d4c80: MOV EAX,R14D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001d4c92: MOV R14D,0x1 JMP 0x001d4c80
int8 tailoring_append(long param_1,int8 param_2,ulong param_3,int8 param_4) { code *pcVar1; long lVar2; size_t sVar3; long lVar4; lVar4 = *(long *)(param_1 + 0x690); if (param_3 + lVar4 + 0x40 < *(ulong *)(param_1 + 0x698)) { lVar2 = *(long *)(param_1 + 0x688); } else { pcVar1 = *(code **)(*(long *)(param_1 + 0x7a8) + 0x90); lVar4 = lVar4 + param_3 + 0x8040; *(long *)(param_1 + 0x698) = lVar4; lVar2 = (*pcVar1)(*(int8 *)(param_1 + 0x688),lVar4); *(long *)(param_1 + 0x688) = lVar2; if (lVar2 == 0) { return 1; } lVar4 = *(long *)(param_1 + 0x690); } __sprintf_chk((char *)(lVar4 + lVar2),1,0xffffffffffffffff,param_2,param_3 & 0xffffffff,param_4); sVar3 = strlen((char *)(lVar4 + lVar2)); *(long *)(param_1 + 0x690) = *(long *)(param_1 + 0x690) + sVar3; return 0; }
21,103
parser_parse_program
tsotchke[P]eshkol/src/frontend/parser/parser_core.c
AstNode* parser_parse_program(Parser* parser) { size_t expr_count = 0; AstNode** exprs = NULL; // Parse top-level expressions exprs = parser_parse_expressions(parser, &expr_count); if (!exprs && expr_count > 0) { return NULL; } // Create a program node AstNode* program = ast_create_program( parser->arena, exprs, expr_count, parser->previous.line, parser->previous.column ); if (!program) { return NULL; } // Set parent pointers in the AST ast_set_parent_pointers(program); return program; }
O1
c
parser_parse_program: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq %rsp, %r14 movq $0x0, (%r14) movq %r14, %rsi callq 0x5f38 testq %rax, %rax sete %cl movq (%r14), %rdx testq %rdx, %rdx setne %sil testb %sil, %cl jne 0x5f2b movq (%rbx), %rdi movq 0x68(%rbx), %rcx movq 0x70(%rbx), %r8 movq %rax, %rsi callq 0xb171 testq %rax, %rax je 0x5f2b movq %rax, %rbx movq %rax, %rdi callq 0xb25c jmp 0x5f2d xorl %ebx, %ebx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
parser_parse_program: push r14 push rbx push rax mov rbx, rdi mov r14, rsp mov qword ptr [r14], 0 mov rsi, r14 call parser_parse_expressions test rax, rax setz cl mov rdx, [r14] test rdx, rdx setnz sil test cl, sil jnz short loc_5F2B mov rdi, [rbx] mov rcx, [rbx+68h] mov r8, [rbx+70h] mov rsi, rax call ast_create_program test rax, rax jz short loc_5F2B mov rbx, rax mov rdi, rax call ast_set_parent_pointers jmp short loc_5F2D loc_5F2B: xor ebx, ebx loc_5F2D: mov rax, rbx add rsp, 8 pop rbx pop r14 retn
long long parser_parse_program(_QWORD *a1) { long long v1; // rax long long program; // rax long long v3; // rbx long long v5; // [rsp-8h] [rbp-18h] BYREF v5 = 0LL; v1 = parser_parse_expressions(a1, &v5); if ( v5 != 0 && v1 == 0 ) return 0LL; program = ast_create_program(*a1, v1, v5, a1[13], a1[14]); if ( !program ) return 0LL; v3 = program; ast_set_parent_pointers(program); return v3; }
parser_parse_program: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV R14,RSP MOV qword ptr [R14],0x0 MOV RSI,R14 CALL 0x00105f38 TEST RAX,RAX SETZ CL MOV RDX,qword ptr [R14] TEST RDX,RDX SETNZ SIL TEST CL,SIL JNZ 0x00105f2b MOV RDI,qword ptr [RBX] MOV RCX,qword ptr [RBX + 0x68] MOV R8,qword ptr [RBX + 0x70] MOV RSI,RAX CALL 0x0010b171 TEST RAX,RAX JZ 0x00105f2b MOV RBX,RAX MOV RDI,RAX CALL 0x0010b25c JMP 0x00105f2d LAB_00105f2b: XOR EBX,EBX LAB_00105f2d: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
long parser_parse_program(int8 *param_1) { long lVar1; long local_18; local_18 = 0; lVar1 = parser_parse_expressions(param_1,&local_18); if ((lVar1 != 0 || local_18 == 0) && (lVar1 = ast_create_program(*param_1,lVar1,local_18,param_1[0xd],param_1[0xe]), lVar1 != 0)) { ast_set_parent_pointers(lVar1); return lVar1; } return 0; }
21,104
rlEnableVertexArray
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
bool rlEnableVertexArray(unsigned int vaoId) { bool result = false; #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) if (RLGL.ExtSupported.vao) { glBindVertexArray(vaoId); result = true; } #endif return result; }
O0
c
rlEnableVertexArray: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x4(%rbp) movb $0x0, -0x5(%rbp) testb $0x1, 0x163f8a(%rip) # 0x21ac60 je 0xb6ce8 movq 0x1616a1(%rip), %rax # 0x218380 movl -0x4(%rbp), %edi callq *%rax movb $0x1, -0x5(%rbp) movb -0x5(%rbp), %al andb $0x1, %al addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
rlEnableVertexArray: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_4], edi mov [rbp+var_5], 0 test cs:byte_21AC60, 1 jz short loc_B6CE8 mov rax, cs:glad_glBindVertexArray mov edi, [rbp+var_4] call rax ; glad_glBindVertexArray mov [rbp+var_5], 1 loc_B6CE8: mov al, [rbp+var_5] and al, 1 add rsp, 10h pop rbp retn
char rlEnableVertexArray(unsigned int a1) { char v2; // [rsp+Bh] [rbp-5h] v2 = 0; if ( (byte_21AC60 & 1) != 0 ) { glad_glBindVertexArray(a1); return 1; } return v2; }
rlEnableVertexArray: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV dword ptr [RBP + -0x4],EDI MOV byte ptr [RBP + -0x5],0x0 TEST byte ptr [0x0031ac60],0x1 JZ 0x001b6ce8 MOV RAX,qword ptr [0x00318380] MOV EDI,dword ptr [RBP + -0x4] CALL RAX MOV byte ptr [RBP + -0x5],0x1 LAB_001b6ce8: MOV AL,byte ptr [RBP + -0x5] AND AL,0x1 ADD RSP,0x10 POP RBP RET
bool rlEnableVertexArray(int4 param_1) { bool bVar1; bVar1 = (DAT_0031ac60 & 1) != 0; if (bVar1) { (*glad_glBindVertexArray)(param_1); } return bVar1; }
21,105
rlEnableVertexArray
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
bool rlEnableVertexArray(unsigned int vaoId) { bool result = false; #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) if (RLGL.ExtSupported.vao) { glBindVertexArray(vaoId); result = true; } #endif return result; }
O1
c
rlEnableVertexArray: pushq %rbx movb 0xdb231(%rip), %bl # 0x141b90 cmpb $0x1, %bl jne 0x6696a callq *0xd8946(%rip) # 0x13f2b0 movl %ebx, %eax popq %rbx retq
rlEnableVertexArray: push rbx mov bl, byte ptr cs:dword_141B90 cmp bl, 1 jnz short loc_6696A call cs:glad_glBindVertexArray loc_6696A: mov eax, ebx pop rbx retn
long long rlEnableVertexArray(long long a1) { unsigned int v1; // ebx LOBYTE(v1) = dword_141B90; if ( (_BYTE)dword_141B90 == 1 ) glad_glBindVertexArray(a1); return v1; }
rlEnableVertexArray: PUSH RBX MOV BL,byte ptr [0x00241b90] CMP BL,0x1 JNZ 0x0016696a CALL qword ptr [0x0023f2b0] LAB_0016696a: MOV EAX,EBX POP RBX RET
ulong rlEnableVertexArray(void) { int8 unaff_RBX; ulong uVar1; uVar1 = CONCAT71((int7)((ulong)unaff_RBX >> 8),DAT_00241b90); if (DAT_00241b90 == '\x01') { (*glad_glBindVertexArray)(); } return uVar1 & 0xffffffff; }
21,106
rlEnableVertexArray
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
bool rlEnableVertexArray(unsigned int vaoId) { bool result = false; #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) if (RLGL.ExtSupported.vao) { glBindVertexArray(vaoId); result = true; } #endif return result; }
O2
c
rlEnableVertexArray: pushq %rbx movb 0xd2925(%rip), %bl # 0x127bc0 cmpb $0x1, %bl jne 0x552a6 callq *0xd003a(%rip) # 0x1252e0 movl %ebx, %eax popq %rbx retq
rlEnableVertexArray: push rbx mov bl, byte ptr cs:dword_127BC0 cmp bl, 1 jnz short loc_552A6 call cs:glad_glBindVertexArray loc_552A6: mov eax, ebx pop rbx retn
long long rlEnableVertexArray(long long a1) { unsigned int v1; // ebx LOBYTE(v1) = dword_127BC0; if ( (_BYTE)dword_127BC0 == 1 ) glad_glBindVertexArray(a1); return v1; }
rlEnableVertexArray: PUSH RBX MOV BL,byte ptr [0x00227bc0] CMP BL,0x1 JNZ 0x001552a6 CALL qword ptr [0x002252e0] LAB_001552a6: MOV EAX,EBX POP RBX RET
ulong rlEnableVertexArray(void) { int8 unaff_RBX; ulong uVar1; uVar1 = CONCAT71((int7)((ulong)unaff_RBX >> 8),DAT_00227bc0); if (DAT_00227bc0 == '\x01') { (*glad_glBindVertexArray)(); } return uVar1 & 0xffffffff; }
21,107
rlEnableVertexArray
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
bool rlEnableVertexArray(unsigned int vaoId) { bool result = false; #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) if (RLGL.ExtSupported.vao) { glBindVertexArray(vaoId); result = true; } #endif return result; }
O3
c
rlEnableVertexArray: pushq %rbx movb 0xd69fd(%rip), %bl # 0x13bba0 cmpb $0x1, %bl jne 0x651ae callq *0xd4112(%rip) # 0x1392c0 movl %ebx, %eax popq %rbx retq
rlEnableVertexArray: push rbx mov bl, byte ptr cs:dword_13BBA0 cmp bl, 1 jnz short loc_651AE call cs:glad_glBindVertexArray loc_651AE: mov eax, ebx pop rbx retn
long long rlEnableVertexArray(long long a1) { unsigned int v1; // ebx LOBYTE(v1) = dword_13BBA0; if ( (_BYTE)dword_13BBA0 == 1 ) glad_glBindVertexArray(a1); return v1; }
rlEnableVertexArray: PUSH RBX MOV BL,byte ptr [0x0023bba0] CMP BL,0x1 JNZ 0x001651ae CALL qword ptr [0x002392c0] LAB_001651ae: MOV EAX,EBX POP RBX RET
ulong rlEnableVertexArray(void) { int8 unaff_RBX; ulong uVar1; uVar1 = CONCAT71((int7)((ulong)unaff_RBX >> 8),DAT_0023bba0); if (DAT_0023bba0 == '\x01') { (*glad_glBindVertexArray)(); } return uVar1 & 0xffffffff; }
21,108
PFS_memory_stat::count_builtin_alloc(unsigned long)
eloqsql/storage/perfschema/pfs_stat.h
void count_builtin_alloc(size_t size) { m_used= true; m_alloc_count++; m_free_count_capacity++; m_alloc_size+= size; m_free_size_capacity+= size; if (m_alloc_count_capacity >= 1) { m_alloc_count_capacity--; } if (m_alloc_size_capacity >= size) { m_alloc_size_capacity-= size; } return; }
O3
c
PFS_memory_stat::count_builtin_alloc(unsigned long): pushq %rbp movq %rsp, %rbp movb $0x1, (%rdi) incq 0x8(%rdi) incq 0x30(%rdi) addq %rsi, 0x18(%rdi) addq %rsi, 0x40(%rdi) movq 0x28(%rdi), %rax testq %rax, %rax je 0x34435 decq %rax movq %rax, 0x28(%rdi) movq 0x38(%rdi), %rax subq %rsi, %rax jb 0x34442 movq %rax, 0x38(%rdi) popq %rbp retq
_ZN15PFS_memory_stat19count_builtin_allocEm: push rbp mov rbp, rsp mov byte ptr [rdi], 1 inc qword ptr [rdi+8] inc qword ptr [rdi+30h] add [rdi+18h], rsi add [rdi+40h], rsi mov rax, [rdi+28h] test rax, rax jz short loc_34435 dec rax mov [rdi+28h], rax loc_34435: mov rax, [rdi+38h] sub rax, rsi jb short loc_34442 mov [rdi+38h], rax loc_34442: pop rbp retn
unsigned long long PFS_memory_stat::count_builtin_alloc(PFS_memory_stat *this, unsigned long long a2) { long long v2; // rax unsigned long long v3; // rax bool v4; // cf unsigned long long result; // rax *(_BYTE *)this = 1; ++*((_QWORD *)this + 1); ++*((_QWORD *)this + 6); *((_QWORD *)this + 3) += a2; *((_QWORD *)this + 8) += a2; v2 = *((_QWORD *)this + 5); if ( v2 ) *((_QWORD *)this + 5) = v2 - 1; v3 = *((_QWORD *)this + 7); v4 = v3 < a2; result = v3 - a2; if ( !v4 ) *((_QWORD *)this + 7) = result; return result; }
count_builtin_alloc: PUSH RBP MOV RBP,RSP MOV byte ptr [RDI],0x1 INC qword ptr [RDI + 0x8] INC qword ptr [RDI + 0x30] ADD qword ptr [RDI + 0x18],RSI ADD qword ptr [RDI + 0x40],RSI MOV RAX,qword ptr [RDI + 0x28] TEST RAX,RAX JZ 0x00134435 DEC RAX MOV qword ptr [RDI + 0x28],RAX LAB_00134435: MOV RAX,qword ptr [RDI + 0x38] SUB RAX,RSI JC 0x00134442 MOV qword ptr [RDI + 0x38],RAX LAB_00134442: POP RBP RET
/* PFS_memory_stat::count_builtin_alloc(unsigned long) */ void __thiscall PFS_memory_stat::count_builtin_alloc(PFS_memory_stat *this,ulong param_1) { *this = (PFS_memory_stat)0x1; *(long *)(this + 8) = *(long *)(this + 8) + 1; *(long *)(this + 0x30) = *(long *)(this + 0x30) + 1; *(ulong *)(this + 0x18) = *(long *)(this + 0x18) + param_1; *(ulong *)(this + 0x40) = *(long *)(this + 0x40) + param_1; if (*(long *)(this + 0x28) != 0) { *(long *)(this + 0x28) = *(long *)(this + 0x28) + -1; } if (param_1 <= *(ulong *)(this + 0x38)) { *(ulong *)(this + 0x38) = *(ulong *)(this + 0x38) - param_1; } return; }
21,109
LefDefParser::lefiMacro::propIsNumber(int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMacro.cpp
int lefiMacro::propIsNumber(int index) const { char msg[160]; if (index < 0 || index >= numProperties_) { sprintf(msg, "ERROR (LEFPARS-1352): The index number %d given for the macro property is invalid.\nValid index is from 0 to %d", index, numProperties_); lefiError(0, 1352, msg); return 0; } return propNums_[index] ? 1 : 0; }
O0
cpp
LefDefParser::lefiMacro::propIsNumber(int) const: subq $0xc8, %rsp movq %rdi, 0xb8(%rsp) movl %esi, 0xb4(%rsp) movq 0xb8(%rsp), %rax movq %rax, 0x8(%rsp) cmpl $0x0, 0xb4(%rsp) jl 0x47471 movq 0x8(%rsp), %rcx movl 0xb4(%rsp), %eax cmpl 0x124(%rcx), %eax jl 0x474b4 movq 0x8(%rsp), %rax leaq 0x10(%rsp), %rdi movl 0xb4(%rsp), %edx movl 0x124(%rax), %ecx leaq 0x34c1c(%rip), %rsi # 0x7c0ab movb $0x0, %al callq 0x2050 leaq 0x10(%rsp), %rdx xorl %edi, %edi movl $0x548, %esi # imm = 0x548 callq 0x3f4e0 movl $0x0, 0xc4(%rsp) jmp 0x474ef movq 0x8(%rsp), %rax movq 0x140(%rax), %rax movslq 0xb4(%rsp), %rcx movsd (%rax,%rcx,8), %xmm0 xorps %xmm1, %xmm1 xorl %eax, %eax movl $0x1, %ecx ucomisd %xmm1, %xmm0 setp %sil setne %dl orb %sil, %dl cmovnel %ecx, %eax movl %eax, 0xc4(%rsp) movl 0xc4(%rsp), %eax addq $0xc8, %rsp retq nop
_ZNK12LefDefParser9lefiMacro12propIsNumberEi: sub rsp, 0C8h mov [rsp+0C8h+var_10], rdi mov [rsp+0C8h+var_14], esi mov rax, [rsp+0C8h+var_10] mov [rsp+0C8h+var_C0], rax cmp [rsp+0C8h+var_14], 0 jl short loc_47471 mov rcx, [rsp+0C8h+var_C0] mov eax, [rsp+0C8h+var_14] cmp eax, [rcx+124h] jl short loc_474B4 loc_47471: mov rax, [rsp+0C8h+var_C0] lea rdi, [rsp+0C8h+var_B8] mov edx, [rsp+0C8h+var_14] mov ecx, [rax+124h] lea rsi, aErrorLefpars13_24; "ERROR (LEFPARS-1352): The index number "... mov al, 0 call _sprintf lea rdx, [rsp+0C8h+var_B8]; int xor edi, edi; this mov esi, 548h; int call _ZN12LefDefParser9lefiErrorEiiPKc; LefDefParser::lefiError(int,int,char const*) mov [rsp+0C8h+var_4], 0 jmp short loc_474EF loc_474B4: mov rax, [rsp+0C8h+var_C0] mov rax, [rax+140h] movsxd rcx, [rsp+0C8h+var_14] movsd xmm0, qword ptr [rax+rcx*8] xorps xmm1, xmm1 xor eax, eax mov ecx, 1 ucomisd xmm0, xmm1 setp sil setnz dl or dl, sil cmovnz eax, ecx mov [rsp+0C8h+var_4], eax loc_474EF: mov eax, [rsp+0C8h+var_4] add rsp, 0C8h retn
_BOOL8 LefDefParser::lefiMacro::propIsNumber(LefDefParser::lefiMacro *this, int a2) { unsigned long long v2; // rcx char v4[164]; // [rsp+10h] [rbp-B8h] BYREF int v5; // [rsp+B4h] [rbp-14h] LefDefParser::lefiMacro *v6; // [rsp+B8h] [rbp-10h] v6 = this; v5 = a2; if ( a2 >= 0 && v5 < *((_DWORD *)this + 73) ) { return *(double *)(*((_QWORD *)this + 40) + 8LL * v5) != 0.0; } else { sprintf( v4, "ERROR (LEFPARS-1352): The index number %d given for the macro property is invalid.\nValid index is from 0 to %d", v5, *((_DWORD *)this + 73)); LefDefParser::lefiError(0LL, 1352LL, v4, v2); return 0; } }
propIsNumber: SUB RSP,0xc8 MOV qword ptr [RSP + 0xb8],RDI MOV dword ptr [RSP + 0xb4],ESI MOV RAX,qword ptr [RSP + 0xb8] MOV qword ptr [RSP + 0x8],RAX CMP dword ptr [RSP + 0xb4],0x0 JL 0x00147471 MOV RCX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RSP + 0xb4] CMP EAX,dword ptr [RCX + 0x124] JL 0x001474b4 LAB_00147471: MOV RAX,qword ptr [RSP + 0x8] LEA RDI,[RSP + 0x10] MOV EDX,dword ptr [RSP + 0xb4] MOV ECX,dword ptr [RAX + 0x124] LEA RSI,[0x17c0ab] MOV AL,0x0 CALL 0x00102050 LEA RDX,[RSP + 0x10] XOR EDI,EDI MOV ESI,0x548 CALL 0x0013f4e0 MOV dword ptr [RSP + 0xc4],0x0 JMP 0x001474ef LAB_001474b4: MOV RAX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RAX + 0x140] MOVSXD RCX,dword ptr [RSP + 0xb4] MOVSD XMM0,qword ptr [RAX + RCX*0x8] XORPS XMM1,XMM1 XOR EAX,EAX MOV ECX,0x1 UCOMISD XMM0,XMM1 SETP SIL SETNZ DL OR DL,SIL CMOVNZ EAX,ECX MOV dword ptr [RSP + 0xc4],EAX LAB_001474ef: MOV EAX,dword ptr [RSP + 0xc4] ADD RSP,0xc8 RET
/* LefDefParser::lefiMacro::propIsNumber(int) const */ bool __thiscall LefDefParser::lefiMacro::propIsNumber(lefiMacro *this,int param_1) { bool bVar1; char local_b8 [164]; int local_14; lefiMacro *local_10; if ((param_1 < 0) || (*(int *)(this + 0x124) <= param_1)) { local_14 = param_1; local_10 = this; sprintf(local_b8, "ERROR (LEFPARS-1352): The index number %d given for the macro property is invalid.\nValid index is from 0 to %d" ,(ulong)(uint)param_1,(ulong)*(uint *)(this + 0x124)); lefiError(0,0x548,local_b8); bVar1 = false; } else { bVar1 = *(double *)(*(long *)(this + 0x140) + (long)param_1 * 8) != 0.0; } return bVar1; }
21,110
google::protobuf::MapValueConstRef::GetMessageValue() const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h
const Message& GetMessageValue() const { TYPE_CHECK(FieldDescriptor::CPPTYPE_MESSAGE, "MapValueConstRef::GetMessageValue"); return *reinterpret_cast<Message*>(data_); }
O0
c
google::protobuf::MapValueConstRef::GetMessageValue() const: subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq 0xa0(%rsp), %rdi movq %rdi, 0x50(%rsp) callq 0x1c4000 cmpl $0xa, %eax je 0x1d2aca leaq 0x215055(%rip), %rdx # 0x3e79f6 leaq 0x68(%rsp), %rdi movq %rdi, 0x40(%rsp) movl $0x3, %esi movl $0x2f2, %ecx # imm = 0x2F2 callq 0x19a670 movq 0x40(%rsp), %rdi leaq 0x215095(%rip), %rsi # 0x3e7a5b callq 0x199f30 movq %rax, 0x48(%rsp) jmp 0x1d29d2 movq 0x48(%rsp), %rdi leaq 0x2157c6(%rip), %rsi # 0x3e81a4 callq 0x199f30 movq %rax, 0x38(%rsp) jmp 0x1d29ea movq 0x38(%rsp), %rdi leaq 0x2150a8(%rip), %rsi # 0x3e7a9e callq 0x199f30 movq %rax, 0x30(%rsp) jmp 0x1d2a02 movq 0x30(%rsp), %rdi leaq 0x2150a6(%rip), %rsi # 0x3e7ab4 callq 0x199f30 movq %rax, 0x28(%rsp) jmp 0x1d2a1a movl $0xa, %edi callq 0x1c40d0 movq 0x28(%rsp), %rdi movq %rax, %rsi callq 0x199f30 movq %rax, 0x20(%rsp) jmp 0x1d2a38 movq 0x20(%rsp), %rdi leaq 0x219a64(%rip), %rsi # 0x3ec4a8 callq 0x199f30 movq %rax, 0x18(%rsp) jmp 0x1d2a50 movq 0x18(%rsp), %rdi leaq 0x215066(%rip), %rsi # 0x3e7ac2 callq 0x199f30 movq %rax, 0x10(%rsp) jmp 0x1d2a68 movq 0x50(%rsp), %rdi callq 0x1c4000 movl %eax, 0xc(%rsp) jmp 0x1d2a78 movl 0xc(%rsp), %edi callq 0x1c40d0 movq 0x10(%rsp), %rdi movq %rax, %rsi callq 0x199f30 movq %rax, (%rsp) jmp 0x1d2a94 movq (%rsp), %rsi leaq 0x5b(%rsp), %rdi callq 0x19a0e0 jmp 0x1d2aa4 leaq 0x68(%rsp), %rdi callq 0x19a6b0 jmp 0x1d2aca movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x68(%rsp), %rdi callq 0x19a6b0 jmp 0x1d2ada movq 0x50(%rsp), %rax movq (%rax), %rax addq $0xa8, %rsp retq movq 0x60(%rsp), %rdi callq 0x90db0 nopw %cs:(%rax,%rax) nop
_ZNK6google8protobuf16MapValueConstRef15GetMessageValueEv: sub rsp, 0A8h mov [rsp+0A8h+var_8], rdi mov rdi, [rsp+0A8h+var_8]; this mov [rsp+0A8h+var_58], rdi call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void) cmp eax, 0Ah jz loc_1D2ACA lea rdx, aWorkspaceLlm4b_32; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+0A8h+var_40] mov [rsp+0A8h+var_68], rdi mov esi, 3 mov ecx, 2F2h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+0A8h+var_68] lea rsi, aProtocolBuffer_0; "Protocol Buffer map usage error:\n" call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_60], rax jmp short $+2 loc_1D29D2: mov rdi, [rsp+0A8h+var_60] lea rsi, aMapvalueconstr_9; "MapValueConstRef::GetMessageValue" call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_70], rax jmp short $+2 loc_1D29EA: mov rdi, [rsp+0A8h+var_70] lea rsi, aTypeDoesNotMat; " type does not match\n" call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_78], rax jmp short $+2 loc_1D2A02: mov rdi, [rsp+0A8h+var_78] lea rsi, aExpected; " Expected : " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_80], rax jmp short $+2 loc_1D2A1A: mov edi, 0Ah call _ZN6google8protobuf15FieldDescriptor11CppTypeNameENS1_7CppTypeE; google::protobuf::FieldDescriptor::CppTypeName(google::protobuf::FieldDescriptor::CppType) mov rdi, [rsp+0A8h+var_80] mov rsi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_88], rax jmp short $+2 loc_1D2A38: mov rdi, [rsp+0A8h+var_88] lea rsi, aSyntax0+0Fh; "\n" call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_90], rax jmp short $+2 loc_1D2A50: mov rdi, [rsp+0A8h+var_90] lea rsi, aActual_0; " Actual : " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_98], rax jmp short $+2 loc_1D2A68: mov rdi, [rsp+0A8h+var_58]; this call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void) mov [rsp+0A8h+var_9C], eax jmp short $+2 loc_1D2A78: mov edi, [rsp+0A8h+var_9C] call _ZN6google8protobuf15FieldDescriptor11CppTypeNameENS1_7CppTypeE; google::protobuf::FieldDescriptor::CppTypeName(google::protobuf::FieldDescriptor::CppType) mov rdi, [rsp+0A8h+var_98] mov rsi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0A8h+var_A8], rax jmp short $+2 loc_1D2A94: mov rsi, [rsp+0A8h+var_A8] lea rdi, [rsp+0A8h+var_4D] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_1D2AA4: lea rdi, [rsp+0A8h+var_40]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_1D2ACA mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_60]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_1D2ADA loc_1D2ACA: mov rax, [rsp+0A8h+var_58] mov rax, [rax] add rsp, 0A8h retn loc_1D2ADA: mov rdi, [rsp+arg_58] call __Unwind_Resume
long long google::protobuf::MapValueConstRef::GetMessageValue(google::protobuf::MapValueConstRef *this) { long long v1; // rax long long v2; // rax google::protobuf::internal::LogMessage *v4; // [rsp+0h] [rbp-A8h] unsigned int v5; // [rsp+Ch] [rbp-9Ch] long long v6; // [rsp+10h] [rbp-98h] long long v7; // [rsp+18h] [rbp-90h] long long v8; // [rsp+20h] [rbp-88h] long long v9; // [rsp+28h] [rbp-80h] long long v10; // [rsp+30h] [rbp-78h] long long v11; // [rsp+38h] [rbp-70h] long long v12; // [rsp+48h] [rbp-60h] _BYTE v13[13]; // [rsp+5Bh] [rbp-4Dh] BYREF _BYTE v14[56]; // [rsp+68h] [rbp-40h] BYREF google::protobuf::MapValueConstRef *v15; // [rsp+A0h] [rbp-8h] v15 = this; if ( (unsigned int)google::protobuf::MapValueConstRef::type(this) != 10 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v14, 3, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h", 754); v12 = google::protobuf::internal::LogMessage::operator<<( (long long)v14, (long long)"Protocol Buffer map usage error:\n"); v11 = google::protobuf::internal::LogMessage::operator<<(v12, (long long)"MapValueConstRef::GetMessageValue"); v10 = google::protobuf::internal::LogMessage::operator<<(v11, (long long)" type does not match\n"); v9 = google::protobuf::internal::LogMessage::operator<<(v10, (long long)" Expected : "); v1 = google::protobuf::FieldDescriptor::CppTypeName(0xAu); v8 = google::protobuf::internal::LogMessage::operator<<(v9, v1); v7 = google::protobuf::internal::LogMessage::operator<<(v8, (long long)"\n"); v6 = google::protobuf::internal::LogMessage::operator<<(v7, (long long)" Actual : "); v5 = google::protobuf::MapValueConstRef::type(this); v2 = google::protobuf::FieldDescriptor::CppTypeName(v5); v4 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v6, v2); google::protobuf::internal::LogFinisher::operator=((long long)v13, v4); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v14); } return *(_QWORD *)this; }
21,111
google::protobuf::MapValueConstRef::GetMessageValue() const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h
const Message& GetMessageValue() const { TYPE_CHECK(FieldDescriptor::CPPTYPE_MESSAGE, "MapValueConstRef::GetMessageValue"); return *reinterpret_cast<Message*>(data_); }
O3
c
google::protobuf::MapValueConstRef::GetMessageValue() const: pushq %r15 pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %rbx callq 0x98410 cmpl $0xa, %eax je 0x9cc2f leaq 0xcc34a(%rip), %rdx # 0x168ec5 leaq 0x8(%rsp), %r14 movq %r14, %rdi movl $0x3, %esi movl $0x2f2, %ecx # imm = 0x2F2 callq 0x857c2 leaq 0xcc391(%rip), %rsi # 0x168f2a movq %r14, %rdi callq 0x852c0 leaq 0xcc9bd(%rip), %rsi # 0x169565 movq %rax, %rdi callq 0x852c0 leaq 0xcc3b6(%rip), %rsi # 0x168f6d movq %rax, %rdi callq 0x852c0 leaq 0xcc3bd(%rip), %rsi # 0x168f83 movq %rax, %rdi callq 0x852c0 leaq 0x16f9bb(%rip), %r15 # 0x20c590 movq 0x50(%r15), %rsi movq %rax, %rdi callq 0x852c0 leaq 0xcf477(%rip), %rsi # 0x16c05f movq %rax, %rdi callq 0x852c0 leaq 0xcc39a(%rip), %rsi # 0x168f91 movq %rax, %rdi callq 0x852c0 movq %rax, %r14 movq %rbx, %rdi callq 0x98410 movl %eax, %eax movq (%r15,%rax,8), %rsi movq %r14, %rdi callq 0x852c0 leaq 0x7(%rsp), %rdi movq %rax, %rsi callq 0x8539a leaq 0x8(%rsp), %rdi callq 0x857e0 movq (%rbx), %rax addq $0x40, %rsp popq %rbx popq %r14 popq %r15 retq jmp 0x9cc3e movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x857e0 movq %rbx, %rdi callq 0x2e220 nop
_ZNK6google8protobuf16MapValueConstRef15GetMessageValueEv: push r15 push r14 push rbx sub rsp, 40h mov rbx, rdi call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void) cmp eax, 0Ah jz loc_9CC2F lea rdx, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/aimrt_"... lea r14, [rsp+58h+var_50] mov rdi, r14 mov esi, 3 mov ecx, 2F2h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) lea rsi, aProtocolBuffer_0; "Protocol Buffer map usage error:\n" mov rdi, r14 call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aMapvalueconstr_9; "MapValueConstRef::GetMessageValue" mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aTypeDoesNotMat; " type does not match\n" mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aExpected; " Expected : " mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea r15, _ZN6google8protobuf15FieldDescriptor14kCppTypeToNameE; google::protobuf::FieldDescriptor::kCppTypeToName mov rsi, [r15+50h] mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aSyntax0+0Fh; "\n" mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aActual_0; " Actual : " mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov r14, rax mov rdi, rbx; this call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void) mov eax, eax mov rsi, [r15+rax*8] mov rdi, r14 call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rdi, [rsp+58h+var_51] mov rsi, rax call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) lea rdi, [rsp+58h+var_50]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_9CC2F: mov rax, [rbx] add rsp, 40h pop rbx pop r14 pop r15 retn jmp short $+2 loc_9CC3E: mov rbx, rax lea rdi, [rsp+arg_0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() mov rdi, rbx call __Unwind_Resume
long long google::protobuf::MapValueConstRef::GetMessageValue(google::protobuf::MapValueConstRef *this) { long long v1; // rax long long v2; // rax long long v3; // rax long long v4; // rax long long v5; // rax long long v6; // rax long long v7; // r14 unsigned int v8; // eax google::protobuf::internal::LogMessage *v9; // rax char v11; // [rsp+7h] [rbp-51h] BYREF _BYTE v12[80]; // [rsp+8h] [rbp-50h] BYREF if ( (unsigned int)google::protobuf::MapValueConstRef::type(this) != 10 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v12, 3, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h", 754); v1 = google::protobuf::internal::LogMessage::operator<<((long long)v12, (long long)"Protocol Buffer map usage error:\n"); v2 = google::protobuf::internal::LogMessage::operator<<(v1, (long long)"MapValueConstRef::GetMessageValue"); v3 = google::protobuf::internal::LogMessage::operator<<(v2, (long long)" type does not match\n"); v4 = google::protobuf::internal::LogMessage::operator<<(v3, (long long)" Expected : "); v5 = google::protobuf::internal::LogMessage::operator<<( v4, (long long)*(&google::protobuf::FieldDescriptor::kCppTypeToName + 10)); v6 = google::protobuf::internal::LogMessage::operator<<(v5, (long long)"\n"); v7 = google::protobuf::internal::LogMessage::operator<<(v6, (long long)" Actual : "); v8 = google::protobuf::MapValueConstRef::type(this); v9 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( v7, (long long)*(&google::protobuf::FieldDescriptor::kCppTypeToName + v8)); google::protobuf::internal::LogFinisher::operator=((long long)&v11, v9); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v12); } return *(_QWORD *)this; }
GetMessageValue: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x40 MOV RBX,RDI CALL 0x00198410 CMP EAX,0xa JZ 0x0019cc2f LEA RDX,[0x268ec5] LEA R14,[RSP + 0x8] MOV RDI,R14 MOV ESI,0x3 MOV ECX,0x2f2 CALL 0x001857c2 LAB_0019cb92: LEA RSI,[0x268f2a] MOV RDI,R14 CALL 0x001852c0 LEA RSI,[0x269565] MOV RDI,RAX CALL 0x001852c0 LEA RSI,[0x268f6d] MOV RDI,RAX CALL 0x001852c0 LEA RSI,[0x268f83] MOV RDI,RAX CALL 0x001852c0 LEA R15,[0x30c590] MOV RSI,qword ptr [R15 + 0x50] MOV RDI,RAX CALL 0x001852c0 LEA RSI,[0x26c05f] MOV RDI,RAX CALL 0x001852c0 LEA RSI,[0x268f91] MOV RDI,RAX CALL 0x001852c0 MOV R14,RAX MOV RDI,RBX CALL 0x00198410 MOV EAX,EAX MOV RSI,qword ptr [R15 + RAX*0x8] MOV RDI,R14 CALL 0x001852c0 LAB_0019cc18: LEA RDI,[RSP + 0x7] MOV RSI,RAX CALL 0x0018539a LAB_0019cc25: LEA RDI,[RSP + 0x8] CALL 0x001857e0 LAB_0019cc2f: MOV RAX,qword ptr [RBX] ADD RSP,0x40 POP RBX POP R14 POP R15 RET
/* google::protobuf::MapValueConstRef::GetMessageValue() const */ int8 __thiscall google::protobuf::MapValueConstRef::GetMessageValue(MapValueConstRef *this) { int iVar1; uint uVar2; LogMessage *pLVar3; LogFinisher local_51; LogMessage local_50 [56]; iVar1 = type(this); if (iVar1 != 10) { internal::LogMessage::LogMessage (local_50,3, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h" ,0x2f2); /* try { // try from 0019cb92 to 0019cc17 has its CatchHandler @ 0019cc3e */ pLVar3 = (LogMessage *) internal::LogMessage::operator<<(local_50,"Protocol Buffer map usage error:\n"); pLVar3 = (LogMessage *) internal::LogMessage::operator<<(pLVar3,"MapValueConstRef::GetMessageValue"); pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," type does not match\n"); pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," Expected : "); pLVar3 = (LogMessage *) internal::LogMessage::operator<<(pLVar3,(char *)FieldDescriptor::kCppTypeToName._80_8_) ; pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3,"\n"); pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," Actual : "); uVar2 = type(this); pLVar3 = (LogMessage *) internal::LogMessage::operator<< (pLVar3,*(char **)(FieldDescriptor::kCppTypeToName + (ulong)uVar2 * 8)); /* try { // try from 0019cc18 to 0019cc24 has its CatchHandler @ 0019cc3c */ internal::LogFinisher::operator=(&local_51,pLVar3); internal::LogMessage::~LogMessage(local_50); } return *(int8 *)this; }
21,112
my_numchars_mb
eloqsql/strings/ctype-mb.c
size_t my_numchars_mb(CHARSET_INFO *cs __attribute__((unused)), const char *pos, const char *end) { register size_t count= 0; while (pos < end) { uint mb_len; pos+= (mb_len= my_ismbchar(cs,pos,end)) ? mb_len : 1; count++; } return count; }
O0
c
my_numchars_mb: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq $0x0, -0x20(%rbp) movq -0x10(%rbp), %rax cmpq -0x18(%rbp), %rax jae 0x40dcf movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x40290 movl %eax, -0x24(%rbp) cmpl $0x0, %eax je 0x40da7 movl -0x24(%rbp), %eax movl %eax, -0x28(%rbp) jmp 0x40db1 movl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x40db1 movl -0x28(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x10(%rbp) movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) jmp 0x40d7c movq -0x20(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_numchars_mb: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], 0 loc_40D7C: mov rax, [rbp+var_10] cmp rax, [rbp+var_18] jnb short loc_40DCF mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] call my_ismbchar_0 mov [rbp+var_24], eax cmp eax, 0 jz short loc_40DA7 mov eax, [rbp+var_24] mov [rbp+var_28], eax jmp short loc_40DB1 loc_40DA7: mov eax, 1 mov [rbp+var_28], eax jmp short $+2 loc_40DB1: mov ecx, [rbp+var_28] mov rax, [rbp+var_10] mov ecx, ecx add rax, rcx mov [rbp+var_10], rax mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax jmp short loc_40D7C loc_40DCF: mov rax, [rbp+var_20] add rsp, 30h pop rbp retn
long long my_numchars_mb(long long a1, unsigned long long a2, unsigned long long a3) { unsigned int v4; // [rsp+8h] [rbp-28h] unsigned int v5; // [rsp+Ch] [rbp-24h] long long v6; // [rsp+10h] [rbp-20h] v6 = 0LL; while ( a2 < a3 ) { v5 = my_ismbchar_0(a1, a2, a3); if ( v5 ) v4 = v5; else v4 = 1; a2 += v4; ++v6; } return v6; }
my_numchars_mb: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],0x0 LAB_00140d7c: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x18] JNC 0x00140dcf MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] CALL 0x00140290 MOV dword ptr [RBP + -0x24],EAX CMP EAX,0x0 JZ 0x00140da7 MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x28],EAX JMP 0x00140db1 LAB_00140da7: MOV EAX,0x1 MOV dword ptr [RBP + -0x28],EAX JMP 0x00140db1 LAB_00140db1: MOV ECX,dword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX JMP 0x00140d7c LAB_00140dcf: MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0x30 POP RBP RET
long my_numchars_mb(int8 param_1,ulong param_2,ulong param_3) { int4 local_30; int8 local_28; int8 local_18; local_28 = 0; for (local_18 = param_2; local_18 < param_3; local_18 = local_18 + local_30) { local_30 = my_ismbchar(param_1,local_18,param_3); if (local_30 == 0) { local_30 = 1; } local_28 = local_28 + 1; } return local_28; }
21,113
glfwKeySym2Unicode
untodesu[P]riteg/build_O3/_deps/glfw-src/src/xkb_unicode.c
long _glfwKeySym2Unicode(unsigned int keysym) { int min = 0; int max = sizeof(keysymtab) / sizeof(struct codepair) - 1; int mid; // First check for Latin-1 characters (1:1 mapping) if ((keysym >= 0x0020 && keysym <= 0x007e) || (keysym >= 0x00a0 && keysym <= 0x00ff)) { return keysym; } // Also check for directly encoded 24-bit UCS characters if ((keysym & 0xff000000) == 0x01000000) return keysym & 0x00ffffff; // Binary search in table while (max >= min) { mid = (min + max) / 2; if (keysymtab[mid].keysym < keysym) min = mid + 1; else if (keysymtab[mid].keysym > keysym) max = mid - 1; else return keysymtab[mid].ucs; } // No matching Unicode value found return -1; }
O3
c
glfwKeySym2Unicode: movl %edi, %eax leal -0x20(%rax), %ecx cmpl $0x5f, %ecx setae %cl leal -0xa0(%rax), %edx cmpl $0x60, %edx setae %dl testb %dl, %cl jne 0x25dae movl %eax, %eax retq movl %eax, %ecx andl $0xff000000, %ecx # imm = 0xFF000000 cmpl $0x1000000, %ecx # imm = 0x1000000 jne 0x25dc4 andl $0xffffff, %eax # imm = 0xFFFFFF retq xorl %edx, %edx movl $0x33b, %esi # imm = 0x33B leaq 0x601ce(%rip), %rcx # 0x85fa0 leal (%rsi,%rdx), %r8d movl %r8d, %edi shrl $0x1f, %edi addl %r8d, %edi sarl %edi movslq %edi, %r8 movzwl (%rcx,%r8,4), %r9d cmpl %eax, %r9d jae 0x25df4 incl %edi movl %edi, %edx jmp 0x25dfa jbe 0x25e06 decl %edi movl %edi, %esi cmpl %edx, %esi jge 0x25dd2 movq $-0x1, %rax retq movzwl 0x2(%rcx,%r8,4), %eax retq nopl (%rax)
_glfwKeySym2Unicode: mov eax, edi lea ecx, [rax-20h] cmp ecx, 5Fh ; '_' setnb cl lea edx, [rax-0A0h] cmp edx, 60h ; '`' setnb dl test cl, dl jnz short loc_25DAE mov eax, eax retn loc_25DAE: mov ecx, eax and ecx, 0FF000000h cmp ecx, 1000000h jnz short loc_25DC4 and eax, 0FFFFFFh retn loc_25DC4: xor edx, edx mov esi, 33Bh lea rcx, keysymtab loc_25DD2: lea r8d, [rsi+rdx] mov edi, r8d shr edi, 1Fh add edi, r8d sar edi, 1 movsxd r8, edi movzx r9d, word ptr [rcx+r8*4] cmp r9d, eax jnb short loc_25DF4 inc edi mov edx, edi jmp short loc_25DFA loc_25DF4: jbe short loc_25E06 dec edi mov esi, edi loc_25DFA: cmp esi, edx jge short loc_25DD2 mov rax, 0FFFFFFFFFFFFFFFFh retn loc_25E06: movzx eax, word ptr [rcx+r8*4+2] retn
long long glfwKeySym2Unicode(unsigned int a1) { int v3; // edx int v4; // esi int v5; // edi unsigned int v6; // r9d if ( a1 - 160 < 0x60 || a1 - 32 < 0x5F ) return a1; if ( (a1 & 0xFF000000) == 0x1000000 ) return a1 & 0xFFFFFF; v3 = 0; v4 = 827; while ( 1 ) { v5 = (v4 + v3) / 2; v6 = keysymtab[2 * v5]; if ( v6 >= a1 ) break; v3 = v5 + 1; LABEL_10: if ( v4 < v3 ) return -1LL; } if ( v6 > a1 ) { v4 = v5 - 1; goto LABEL_10; } return keysymtab[2 * v5 + 1]; }
_glfwKeySym2Unicode: MOV EAX,EDI LEA ECX,[RAX + -0x20] CMP ECX,0x5f SETNC CL LEA EDX,[RAX + -0xa0] CMP EDX,0x60 SETNC DL TEST CL,DL JNZ 0x00125dae MOV EAX,EAX RET LAB_00125dae: MOV ECX,EAX AND ECX,0xff000000 CMP ECX,0x1000000 JNZ 0x00125dc4 AND EAX,0xffffff RET LAB_00125dc4: XOR EDX,EDX MOV ESI,0x33b LEA RCX,[0x185fa0] LAB_00125dd2: LEA R8D,[RSI + RDX*0x1] MOV EDI,R8D SHR EDI,0x1f ADD EDI,R8D SAR EDI,0x1 MOVSXD R8,EDI MOVZX R9D,word ptr [RCX + R8*0x4] CMP R9D,EAX JNC 0x00125df4 INC EDI MOV EDX,EDI JMP 0x00125dfa LAB_00125df4: JBE 0x00125e06 DEC EDI MOV ESI,EDI LAB_00125dfa: CMP ESI,EDX JGE 0x00125dd2 MOV RAX,-0x1 RET LAB_00125e06: MOVZX EAX,word ptr [RCX + R8*0x4 + 0x2] RET
ulong _glfwKeySym2Unicode(uint param_1) { int iVar1; int iVar2; int iVar3; if (param_1 - 0x20 < 0x5f || param_1 - 0xa0 < 0x60) { return (ulong)param_1; } if ((param_1 & 0xff000000) == 0x1000000) { return (ulong)(param_1 & 0xffffff); } iVar2 = 0; iVar3 = 0x33b; do { iVar1 = (iVar3 + iVar2) / 2; if (*(ushort *)(keysymtab + (long)iVar1 * 4) < param_1) { iVar2 = iVar1 + 1; } else { if (*(ushort *)(keysymtab + (long)iVar1 * 4) <= param_1) { return (ulong)*(ushort *)(keysymtab + (long)iVar1 * 4 + 2); } iVar3 = iVar1 + -1; } } while (iVar2 <= iVar3); return 0xffffffffffffffff; }
21,114
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues(int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarLevel.cpp
void FVarLevel::resizeVertexValues(int vertexValueCount) { _vertValueIndices.resize(vertexValueCount); ValueTag valueTagMatch; valueTagMatch.clear(); _vertValueTags.resize(vertexValueCount, valueTagMatch); if (hasCreaseEnds()) { _vertValueCreaseEnds.resize(vertexValueCount); } }
O2
cpp
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues(int): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx addq $0x90, %rdi movslq %esi, %r14 movq %r14, %rsi callq 0x514b0 leaq 0x7(%rsp), %rdx movb $0x0, (%rdx) leaq 0xa8(%rbx), %rdi movq %r14, %rsi callq 0x55c70 cmpb $0x0, 0xd(%rbx) jne 0x56806 addq $0xc0, %rbx movq %rbx, %rdi movq %r14, %rsi callq 0x4f060 addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel18resizeVertexValuesEi: push r14 push rbx push rax mov rbx, rdi add rdi, 90h movsxd r14, esi mov rsi, r14 call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) lea rdx, [rsp+18h+var_11] mov byte ptr [rdx], 0 lea rdi, [rbx+0A8h] mov rsi, r14 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTagESaIS5_EE6resizeEmRKS5_; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize(ulong,OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag const&) cmp byte ptr [rbx+0Dh], 0 jnz short loc_56806 add rbx, 0C0h mov rdi, rbx mov rsi, r14 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel13CreaseEndPairESaIS5_EE6resizeEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair>::resize(ulong) loc_56806: add rsp, 8 pop rbx pop r14 retn
long long OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues( OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel *this, int a2) { long long result; // rax _BYTE v3[17]; // [rsp+1h] [rbp-11h] BYREF std::vector<int>::resize((char *)this + 144, a2); v3[0] = 0; result = std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize((char *)this + 168, a2, v3); if ( !*((_BYTE *)this + 13) ) return std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair>::resize((char *)this + 192, a2); return result; }
resizeVertexValues: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI ADD RDI,0x90 MOVSXD R14,ESI MOV RSI,R14 CALL 0x001514b0 LEA RDX,[RSP + 0x7] MOV byte ptr [RDX],0x0 LEA RDI,[RBX + 0xa8] MOV RSI,R14 CALL 0x00155c70 CMP byte ptr [RBX + 0xd],0x0 JNZ 0x00156806 ADD RBX,0xc0 MOV RDI,RBX MOV RSI,R14 CALL 0x0014f060 LAB_00156806: ADD RSP,0x8 POP RBX POP R14 RET
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues(int) */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues(FVarLevel *this,int param_1) { ulong in_RAX; ulong uVar1; int8 uStack_18; uVar1 = (ulong)param_1; uStack_18 = in_RAX; std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(this + 0x90),uVar1); uStack_18 = uStack_18 & 0xffffffffffffff; std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> ::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> *)(this + 0xa8),uVar1,(ValueTag *)((long)&uStack_18 + 7)); if (this[0xd] == (FVarLevel)0x0) { std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair>> ::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair>> *)(this + 0xc0),uVar1); } return; }
21,115
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues(int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarLevel.cpp
void FVarLevel::resizeVertexValues(int vertexValueCount) { _vertValueIndices.resize(vertexValueCount); ValueTag valueTagMatch; valueTagMatch.clear(); _vertValueTags.resize(vertexValueCount, valueTagMatch); if (hasCreaseEnds()) { _vertValueCreaseEnds.resize(vertexValueCount); } }
O3
cpp
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues(int): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx addq $0x90, %rdi movslq %esi, %r14 movq %r14, %rsi callq 0x39670 leaq 0x7(%rsp), %rdx movb $0x0, (%rdx) leaq 0xa8(%rbx), %rdi movq %r14, %rsi callq 0x3c2d0 cmpb $0x0, 0xd(%rbx) jne 0x3d74e addq $0xc0, %rbx movq %rbx, %rdi movq %r14, %rsi callq 0x38060 addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel18resizeVertexValuesEi: push r14 push rbx push rax mov rbx, rdi add rdi, 90h movsxd r14, esi mov rsi, r14 call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) lea rdx, [rsp+18h+var_11] mov byte ptr [rdx], 0 lea rdi, [rbx+0A8h] mov rsi, r14 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTagESaIS5_EE6resizeEmRKS5_; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize(ulong,OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag const&) cmp byte ptr [rbx+0Dh], 0 jnz short loc_3D74E add rbx, 0C0h mov rdi, rbx mov rsi, r14 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel13CreaseEndPairESaIS5_EE6resizeEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair>::resize(ulong) loc_3D74E: add rsp, 8 pop rbx pop r14 retn
long long OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues( OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel *this, int a2) { long long result; // rax _BYTE v3[17]; // [rsp+1h] [rbp-11h] BYREF std::vector<int>::resize((char *)this + 144, a2); v3[0] = 0; result = std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize((char *)this + 168, a2, v3); if ( !*((_BYTE *)this + 13) ) return std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair>::resize((char *)this + 192, a2); return result; }
resizeVertexValues: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI ADD RDI,0x90 MOVSXD R14,ESI MOV RSI,R14 CALL 0x00139670 LEA RDX,[RSP + 0x7] MOV byte ptr [RDX],0x0 LEA RDI,[RBX + 0xa8] MOV RSI,R14 CALL 0x0013c2d0 CMP byte ptr [RBX + 0xd],0x0 JNZ 0x0013d74e ADD RBX,0xc0 MOV RDI,RBX MOV RSI,R14 CALL 0x00138060 LAB_0013d74e: ADD RSP,0x8 POP RBX POP R14 RET
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues(int) */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeVertexValues(FVarLevel *this,int param_1) { ulong in_RAX; ulong uVar1; int8 uStack_18; uVar1 = (ulong)param_1; uStack_18 = in_RAX; std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(this + 0x90),uVar1); uStack_18 = uStack_18 & 0xffffffffffffff; std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> ::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> *)(this + 0xa8),uVar1,(ValueTag *)((long)&uStack_18 + 7)); if (this[0xd] == (FVarLevel)0x0) { std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair>> ::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::CreaseEndPair>> *)(this + 0xc0),uVar1); } return; }
21,116
u64toa_pair
bluesky950520[P]quickjs/tests/test_conv.c
size_t u64toa_pair(char buf[minimum_length(21)], uint64_t n) { if (likely(n < 0x100000000)) return u32toa_pair(buf, n); char *p = buf; char *q = buf + 20; while (n >= 100) { uint32_t quo = n % 100; n /= 100; *--q = digits100[2 * quo + 1]; *--q = digits100[2 * quo]; } *p = digits100[2 * n]; p += *p != '0'; *p++ = digits100[2 * n + 1]; while (q < buf + 20) { *p++ = *q++; *p++ = *q++; } *p = '\0'; return p - buf; }
O0
c
u64toa_pair: subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) movabsq $0x100000000, %rax # imm = 0x100000000 cmpq %rax, 0x20(%rsp) setb %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x287c movq 0x28(%rsp), %rdi movq 0x20(%rsp), %rax movl %eax, %esi callq 0x26b0 movq %rax, 0x30(%rsp) jmp 0x29fe movq 0x28(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x28(%rsp), %rax addq $0x14, %rax movq %rax, 0x10(%rsp) cmpq $0x64, 0x20(%rsp) jb 0x2921 movq 0x20(%rsp), %rax movl $0x64, %ecx xorl %edx, %edx divq %rcx movl %edx, %eax movl %eax, 0xc(%rsp) movq 0x20(%rsp), %rax movl $0x64, %ecx xorl %edx, %edx divq %rcx movq %rax, 0x20(%rsp) movl 0xc(%rsp), %eax shll %eax addl $0x1, %eax movl %eax, %eax movl %eax, %ecx leaq 0xa773(%rip), %rax # 0xd050 movb (%rax,%rcx), %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, -0x1(%rax) movl 0xc(%rsp), %eax shll %eax movl %eax, %eax movl %eax, %ecx leaq 0xa74b(%rip), %rax # 0xd050 movb (%rax,%rcx), %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, -0x1(%rax) jmp 0x2894 movq 0x20(%rsp), %rcx shlq %rcx leaq 0xa720(%rip), %rax # 0xd050 movb (%rax,%rcx), %cl movq 0x18(%rsp), %rax movb %cl, (%rax) movq 0x18(%rsp), %rax movzbl (%rax), %eax cmpl $0x30, %eax setne %al andb $0x1, %al movzbl %al, %ecx movq 0x18(%rsp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, 0x18(%rsp) movq 0x20(%rsp), %rcx shlq %rcx leaq 0xa6e4(%rip), %rax # 0xd050 movb 0x1(%rax,%rcx), %cl movq 0x18(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x18(%rsp) movb %cl, (%rax) movq 0x10(%rsp), %rax movq 0x28(%rsp), %rcx addq $0x14, %rcx cmpq %rcx, %rax jae 0x29e4 movq 0x10(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x10(%rsp) movb (%rax), %cl movq 0x18(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x18(%rsp) movb %cl, (%rax) movq 0x10(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x10(%rsp) movb (%rax), %cl movq 0x18(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x18(%rsp) movb %cl, (%rax) jmp 0x2983 movq 0x18(%rsp), %rax movb $0x0, (%rax) movq 0x18(%rsp), %rax movq 0x28(%rsp), %rcx subq %rcx, %rax movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax addq $0x38, %rsp retq nopl (%rax,%rax)
u64toa_pair: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov rax, 100000000h cmp [rsp+38h+var_18], rax setb al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_287C mov rdi, [rsp+38h+var_10] mov rax, [rsp+38h+var_18] mov esi, eax call u32toa_pair mov [rsp+38h+var_8], rax jmp loc_29FE loc_287C: mov rax, [rsp+38h+var_10] mov [rsp+38h+var_20], rax mov rax, [rsp+38h+var_10] add rax, 14h mov [rsp+38h+var_28], rax loc_2894: cmp [rsp+38h+var_18], 64h ; 'd' jb loc_2921 mov rax, [rsp+38h+var_18] mov ecx, 64h ; 'd' xor edx, edx div rcx mov eax, edx mov [rsp+38h+var_2C], eax mov rax, [rsp+38h+var_18] mov ecx, 64h ; 'd' xor edx, edx div rcx mov [rsp+38h+var_18], rax mov eax, [rsp+38h+var_2C] shl eax, 1 add eax, 1 mov eax, eax mov ecx, eax lea rax, digits100 mov cl, [rax+rcx] mov rax, [rsp+38h+var_28] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+38h+var_28], rdx mov [rax-1], cl mov eax, [rsp+38h+var_2C] shl eax, 1 mov eax, eax mov ecx, eax lea rax, digits100 mov cl, [rax+rcx] mov rax, [rsp+38h+var_28] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+38h+var_28], rdx mov [rax-1], cl jmp loc_2894 loc_2921: mov rcx, [rsp+38h+var_18] shl rcx, 1 lea rax, digits100 mov cl, [rax+rcx] mov rax, [rsp+38h+var_20] mov [rax], cl mov rax, [rsp+38h+var_20] movzx eax, byte ptr [rax] cmp eax, 30h ; '0' setnz al and al, 1 movzx ecx, al mov rax, [rsp+38h+var_20] movsxd rcx, ecx add rax, rcx mov [rsp+38h+var_20], rax mov rcx, [rsp+38h+var_18] shl rcx, 1 lea rax, digits100 mov cl, [rax+rcx+1] mov rax, [rsp+38h+var_20] mov rdx, rax add rdx, 1 mov [rsp+38h+var_20], rdx mov [rax], cl loc_2983: mov rax, [rsp+38h+var_28] mov rcx, [rsp+38h+var_10] add rcx, 14h cmp rax, rcx jnb short loc_29E4 mov rax, [rsp+38h+var_28] mov rcx, rax add rcx, 1 mov [rsp+38h+var_28], rcx mov cl, [rax] mov rax, [rsp+38h+var_20] mov rdx, rax add rdx, 1 mov [rsp+38h+var_20], rdx mov [rax], cl mov rax, [rsp+38h+var_28] mov rcx, rax add rcx, 1 mov [rsp+38h+var_28], rcx mov cl, [rax] mov rax, [rsp+38h+var_20] mov rdx, rax add rdx, 1 mov [rsp+38h+var_20], rdx mov [rax], cl jmp short loc_2983 loc_29E4: mov rax, [rsp+38h+var_20] mov byte ptr [rax], 0 mov rax, [rsp+38h+var_20] mov rcx, [rsp+38h+var_10] sub rax, rcx mov [rsp+38h+var_8], rax loc_29FE: mov rax, [rsp+38h+var_8] add rsp, 38h retn
long long u64toa_pair(_BYTE *a1, unsigned long long a2) { _BYTE *v2; // rax char *v3; // rax char v4; // cl _BYTE *v5; // rax int v7; // [rsp+Ch] [rbp-2Ch] _BYTE *v8; // [rsp+10h] [rbp-28h] _BYTE *v9; // [rsp+18h] [rbp-20h] unsigned long long v10; // [rsp+20h] [rbp-18h] v10 = a2; if ( a2 < 0x100000000LL ) return u32toa_pair(a1, a2); v8 = a1 + 20; while ( v10 >= 0x64 ) { v7 = v10 % 0x64; v10 /= 0x64uLL; *(v8 - 1) = digits100[2 * v7 + 1]; v8 -= 2; *v8 = digits100[2 * v7]; } *a1 = digits100[2 * v10]; v2 = &a1[*a1 != 48]; v9 = v2 + 1; *v2 = digits100[2 * v10 + 1]; while ( v8 < a1 + 20 ) { *v9 = *v8; v3 = v8 + 1; v8 += 2; v4 = *v3; v5 = v9 + 1; v9 += 2; *v5 = v4; } *v9 = 0; return v9 - a1; }
u64toa_pair: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV qword ptr [RSP + 0x20],RSI MOV RAX,0x100000000 CMP qword ptr [RSP + 0x20],RAX SETC AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0010287c MOV RDI,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP + 0x20] MOV ESI,EAX CALL 0x001026b0 MOV qword ptr [RSP + 0x30],RAX JMP 0x001029fe LAB_0010287c: MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x14 MOV qword ptr [RSP + 0x10],RAX LAB_00102894: CMP qword ptr [RSP + 0x20],0x64 JC 0x00102921 MOV RAX,qword ptr [RSP + 0x20] MOV ECX,0x64 XOR EDX,EDX DIV RCX MOV EAX,EDX MOV dword ptr [RSP + 0xc],EAX MOV RAX,qword ptr [RSP + 0x20] MOV ECX,0x64 XOR EDX,EDX DIV RCX MOV qword ptr [RSP + 0x20],RAX MOV EAX,dword ptr [RSP + 0xc] SHL EAX,0x1 ADD EAX,0x1 MOV EAX,EAX MOV ECX,EAX LEA RAX,[0x10d050] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RSP + 0x10] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RSP + 0x10],RDX MOV byte ptr [RAX + -0x1],CL MOV EAX,dword ptr [RSP + 0xc] SHL EAX,0x1 MOV EAX,EAX MOV ECX,EAX LEA RAX,[0x10d050] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RSP + 0x10] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RSP + 0x10],RDX MOV byte ptr [RAX + -0x1],CL JMP 0x00102894 LAB_00102921: MOV RCX,qword ptr [RSP + 0x20] SHL RCX,0x1 LEA RAX,[0x10d050] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RSP + 0x18] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RSP + 0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0x30 SETNZ AL AND AL,0x1 MOVZX ECX,AL MOV RAX,qword ptr [RSP + 0x18] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RSP + 0x18],RAX MOV RCX,qword ptr [RSP + 0x20] SHL RCX,0x1 LEA RAX,[0x10d050] MOV CL,byte ptr [RAX + RCX*0x1 + 0x1] MOV RAX,qword ptr [RSP + 0x18] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RSP + 0x18],RDX MOV byte ptr [RAX],CL LAB_00102983: MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x28] ADD RCX,0x14 CMP RAX,RCX JNC 0x001029e4 MOV RAX,qword ptr [RSP + 0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x10],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RSP + 0x18] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RSP + 0x18],RDX MOV byte ptr [RAX],CL MOV RAX,qword ptr [RSP + 0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x10],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RSP + 0x18] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RSP + 0x18],RDX MOV byte ptr [RAX],CL JMP 0x00102983 LAB_001029e4: MOV RAX,qword ptr [RSP + 0x18] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x28] SUB RAX,RCX MOV qword ptr [RSP + 0x30],RAX LAB_001029fe: MOV RAX,qword ptr [RSP + 0x30] ADD RSP,0x38 RET
long u64toa_pair(char *param_1,ulong param_2) { int1 auVar1 [16]; int iVar2; char *pcVar3; char *pcVar4; char *local_28; char *local_20; ulong local_18; long local_8; if (param_2 < 0x100000000) { local_8 = u32toa_pair(param_1,param_2 & 0xffffffff); } else { local_28 = param_1 + 0x14; local_18 = param_2; while (99 < local_18) { auVar1._8_8_ = 0; auVar1._0_8_ = local_18; iVar2 = SUB164(auVar1 % ZEXT816(100),0); local_18 = local_18 / 100; local_28[-1] = digits100[iVar2 * 2 + 1]; local_28[-2] = digits100[(uint)(iVar2 << 1)]; local_28 = local_28 + -2; } *param_1 = digits100[local_18 * 2]; local_20 = param_1 + (int)(uint)(*param_1 != '0') + 1; param_1[(int)(uint)(*param_1 != '0')] = digits100[local_18 * 2 + 1]; while (local_28 < param_1 + 0x14) { pcVar3 = local_28 + 1; pcVar4 = local_20 + 1; *local_20 = *local_28; local_28 = local_28 + 2; local_20 = local_20 + 2; *pcVar4 = *pcVar3; } *local_20 = '\0'; local_8 = (long)local_20 - (long)param_1; } return local_8; }
21,117
u64toa_pair
bluesky950520[P]quickjs/tests/test_conv.c
size_t u64toa_pair(char buf[minimum_length(21)], uint64_t n) { if (likely(n < 0x100000000)) return u32toa_pair(buf, n); char *p = buf; char *q = buf + 20; while (n >= 100) { uint32_t quo = n % 100; n /= 100; *--q = digits100[2 * quo + 1]; *--q = digits100[2 * quo]; } *p = digits100[2 * n]; p += *p != '0'; *p++ = digits100[2 * n + 1]; while (q < buf + 20) { *p++ = *q++; *p++ = *q++; } *p = '\0'; return p - buf; }
O2
c
u64toa_pair: movq %rsi, %rax shrq $0x20, %rax jne 0x2426 jmp 0x23ab pushq $0x14 popq %rcx pushq $0x64 popq %r9 leaq 0x3c4c(%rip), %r8 # 0x6080 cmpq $0x64, %rsi jb 0x2457 movq %rsi, %rax xorl %edx, %edx divq %r9 movl %edx, %edx movzwl (%r8,%rdx,2), %edx movw %dx, -0x2(%rdi,%rcx) addq $-0x2, %rcx movq %rax, %rsi jmp 0x2434 movb (%r8,%rsi,2), %dl movb 0x1(%r8,%rsi,2), %sil movb %dl, (%rdi) xorl %eax, %eax cmpb $0x30, %dl setne %al movb %sil, (%rdi,%rax) incq %rax cmpq $0x13, %rcx jg 0x248f movb (%rdi,%rcx), %dl movb %dl, (%rdi,%rax) movb 0x1(%rdi,%rcx), %dl addq $0x2, %rcx movb %dl, 0x1(%rdi,%rax) addq $0x2, %rax jmp 0x2471 movb $0x0, (%rdi,%rax) retq
u64toa_pair: mov rax, rsi shr rax, 20h jnz short loc_2426 jmp u32toa_pair loc_2426: push 14h pop rcx push 64h ; 'd' pop r9 lea r8, digits100; "000102030405060708091011121314151617181"... loc_2434: cmp rsi, 64h ; 'd' jb short loc_2457 mov rax, rsi xor edx, edx div r9 mov edx, edx movzx edx, word ptr [r8+rdx*2] mov [rdi+rcx-2], dx add rcx, 0FFFFFFFFFFFFFFFEh mov rsi, rax jmp short loc_2434 loc_2457: mov dl, [r8+rsi*2] mov sil, [r8+rsi*2+1] mov [rdi], dl xor eax, eax cmp dl, 30h ; '0' setnz al mov [rdi+rax], sil inc rax loc_2471: cmp rcx, 13h jg short loc_248F mov dl, [rdi+rcx] mov [rdi+rax], dl mov dl, [rdi+rcx+1] add rcx, 2 mov [rdi+rax+1], dl add rax, 2 jmp short loc_2471 loc_248F: mov byte ptr [rdi+rax], 0 retn
long long u64toa_pair(char *a1, unsigned long long a2) { long long result; // rax long long v3; // rcx char v4; // dl char v5; // si _BOOL8 v6; // rax char v7; // dl if ( !HIDWORD(a2) ) return u32toa_pair(a1, a2); v3 = 20LL; while ( a2 >= 0x64 ) { *(_WORD *)&a1[v3 - 2] = *(_WORD *)&digits100[2 * (a2 % 0x64)]; v3 -= 2LL; a2 /= 0x64uLL; } v4 = digits100[2 * a2]; v5 = digits100[2 * a2 + 1]; *a1 = v4; v6 = v4 != 48; a1[v6] = v5; result = v6 + 1; while ( v3 <= 19 ) { a1[result] = a1[v3]; v7 = a1[v3 + 1]; v3 += 2LL; a1[result + 1] = v7; result += 2LL; } a1[result] = 0; return result; }
u64toa_pair: MOV RAX,RSI SHR RAX,0x20 JNZ 0x00102426 JMP 0x001023ab LAB_00102426: PUSH 0x14 POP RCX PUSH 0x64 POP R9 LEA R8,[0x106080] LAB_00102434: CMP RSI,0x64 JC 0x00102457 MOV RAX,RSI XOR EDX,EDX DIV R9 MOV EDX,EDX MOVZX EDX,word ptr [R8 + RDX*0x2] MOV word ptr [RDI + RCX*0x1 + -0x2],DX ADD RCX,-0x2 MOV RSI,RAX JMP 0x00102434 LAB_00102457: MOV DL,byte ptr [R8 + RSI*0x2] MOV SIL,byte ptr [R8 + RSI*0x2 + 0x1] MOV byte ptr [RDI],DL XOR EAX,EAX CMP DL,0x30 SETNZ AL MOV byte ptr [RDI + RAX*0x1],SIL INC RAX LAB_00102471: CMP RCX,0x13 JG 0x0010248f MOV DL,byte ptr [RDI + RCX*0x1] MOV byte ptr [RDI + RAX*0x1],DL MOV DL,byte ptr [RDI + RCX*0x1 + 0x1] ADD RCX,0x2 MOV byte ptr [RDI + RAX*0x1 + 0x1],DL ADD RAX,0x2 JMP 0x00102471 LAB_0010248f: MOV byte ptr [RDI + RAX*0x1],0x0 RET
void u64toa_pair(char *param_1,ulong param_2) { char cVar1; char cVar2; ulong uVar3; long lVar4; long lVar5; if (param_2 >> 0x20 == 0) { u32toa_pair(); return; } lVar5 = 0x14; for (; 99 < param_2; param_2 = param_2 / 100) { *(int2 *)(param_1 + lVar5 + -2) = *(int2 *)(digits100 + (param_2 % 100) * 2); lVar5 = lVar5 + -2; } cVar1 = digits100[param_2 * 2]; cVar2 = digits100[param_2 * 2 + 1]; *param_1 = cVar1; uVar3 = (ulong)(cVar1 != '0'); param_1[uVar3] = cVar2; lVar4 = uVar3 + 1; for (; lVar5 < 0x14; lVar5 = lVar5 + 2) { param_1[lVar4] = param_1[lVar5]; param_1[lVar4 + 1] = param_1[lVar5 + 1]; lVar4 = lVar4 + 2; } param_1[lVar4] = '\0'; return; }
21,118
my_hash_sort_simple_nopad
eloqsql/strings/ctype-simple.c
void my_hash_sort_simple_nopad(CHARSET_INFO *cs, const uchar *key, size_t len, ulong *nr1, ulong *nr2) { register const uchar *sort_order=cs->sort_order; const uchar *end= key + len; register ulong m1= *nr1, m2= *nr2; for (; key < (uchar*) end ; key++) { MY_HASH_ADD(m1, m2, (uint) sort_order[(uint) *key]); } *nr1= m1; *nr2= m2; }
O3
c
my_hash_sort_simple_nopad: movq (%rcx), %rax movq (%r8), %r9 testq %rdx, %rdx jle 0x386fc pushq %rbp movq %rsp, %rbp movq 0x58(%rdi), %rdi addq %rsi, %rdx movl %eax, %r10d andl $0x3f, %r10d addq %r9, %r10 movzbl (%rsi), %r11d movzbl (%rdi,%r11), %r11d imulq %r10, %r11 movq %rax, %r10 shlq $0x8, %r10 addq %r11, %r10 xorq %r10, %rax addq $0x3, %r9 incq %rsi cmpq %rdx, %rsi jb 0x386cb popq %rbp movq %rax, (%rcx) movq %r9, (%r8) retq
my_hash_sort_simple_nopad: mov rax, [rcx] mov r9, [r8] test rdx, rdx jle short loc_386FC push rbp mov rbp, rsp mov rdi, [rdi+58h] add rdx, rsi loc_386CB: mov r10d, eax and r10d, 3Fh add r10, r9 movzx r11d, byte ptr [rsi] movzx r11d, byte ptr [rdi+r11] imul r11, r10 mov r10, rax shl r10, 8 add r10, r11 xor rax, r10 add r9, 3 inc rsi cmp rsi, rdx jb short loc_386CB pop rbp loc_386FC: mov [rcx], rax mov [r8], r9 retn
long long my_hash_sort_simple_nopad(long long a1, unsigned __int8 *a2, long long a3, long long *a4, long long *a5) { long long result; // rax long long v6; // r9 long long v7; // rdi unsigned __int8 *v8; // rdx result = *a4; v6 = *a5; if ( a3 > 0 ) { v7 = *(_QWORD *)(a1 + 88); v8 = &a2[a3]; do { result ^= (v6 + (result & 0x3F)) * *(unsigned __int8 *)(v7 + *a2) + (result << 8); v6 += 3LL; ++a2; } while ( a2 < v8 ); } *a4 = result; *a5 = v6; return result; }
my_hash_sort_simple_nopad: MOV RAX,qword ptr [RCX] MOV R9,qword ptr [R8] TEST RDX,RDX JLE 0x001386fc PUSH RBP MOV RBP,RSP MOV RDI,qword ptr [RDI + 0x58] ADD RDX,RSI LAB_001386cb: MOV R10D,EAX AND R10D,0x3f ADD R10,R9 MOVZX R11D,byte ptr [RSI] MOVZX R11D,byte ptr [RDI + R11*0x1] IMUL R11,R10 MOV R10,RAX SHL R10,0x8 ADD R10,R11 XOR RAX,R10 ADD R9,0x3 INC RSI CMP RSI,RDX JC 0x001386cb POP RBP LAB_001386fc: MOV qword ptr [RCX],RAX MOV qword ptr [R8],R9 RET
void my_hash_sort_simple_nopad(long param_1,byte *param_2,long param_3,ulong *param_4,long *param_5) { ulong uVar1; byte *pbVar2; long lVar3; uVar1 = *param_4; lVar3 = *param_5; if (0 < param_3) { pbVar2 = param_2 + param_3; do { uVar1 = uVar1 ^ uVar1 * 0x100 + (ulong)*(byte *)(*(long *)(param_1 + 0x58) + (ulong)*param_2) * ((ulong)((uint)uVar1 & 0x3f) + lVar3); lVar3 = lVar3 + 3; param_2 = param_2 + 1; } while (param_2 < pbVar2); } *param_4 = uVar1; *param_5 = lVar3; return; }
21,119
inline_mysql_rwlock_init
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_rwlock_init( #ifdef HAVE_PSI_RWLOCK_INTERFACE PSI_rwlock_key key, #endif mysql_rwlock_t *that) { #ifdef HAVE_PSI_RWLOCK_INTERFACE that->m_psi= PSI_RWLOCK_CALL(init_rwlock)(key, &that->m_rwlock); #else that->m_psi= NULL; #endif /* pthread_rwlockattr_t is not used in MySQL. */ return my_rwlock_init(&that->m_rwlock, NULL); }
O0
c
inline_mysql_rwlock_init: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) leaq 0x1c1362(%rip), %rax # 0x2bf098 movq (%rax), %rax movq 0x50(%rax), %rax movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi callq *%rax movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x90(%rax) movq -0x10(%rbp), %rdi callq 0xf93f0 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_rwlock_init_2: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_4], edi mov [rbp+var_10], rsi lea rax, PSI_server mov rax, [rax] mov rax, [rax+50h] mov edi, [rbp+var_4] mov rsi, [rbp+var_10] call rax mov rcx, rax mov rax, [rbp+var_10] mov [rax+90h], rcx mov rdi, [rbp+var_10] call my_rw_init add rsp, 10h pop rbp retn
long long inline_mysql_rwlock_init_2(unsigned int a1, long long a2) { *(_QWORD *)(a2 + 144) = ((long long ( *)(_QWORD, long long))PSI_server[10])(a1, a2); return my_rw_init(a2); }
inline_mysql_rwlock_init: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI LEA RAX,[0x3bf098] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x50] MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] CALL RAX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x90],RCX MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f93f0 ADD RSP,0x10 POP RBP RET
void inline_mysql_rwlock_init(int4 param_1,long param_2) { int8 uVar1; uVar1 = (**(code **)(PSI_server + 0x50))(param_1,param_2); *(int8 *)(param_2 + 0x90) = uVar1; my_rw_init(param_2); return; }
21,120
msgpack23::Packer<true>::pack_type(std::vector<unsigned char, std::allocator<unsigned char>> const&)
msgpack23/include/msgpack23/msgpack23.h
void pack_type(std::vector<std::uint8_t> const &value) { if (value.size() < std::numeric_limits<std::uint8_t>::max()) { emplace_constant(FormatConstants::bin8); if constexpr (IsDryRun) { required_size_ += 1; } else { data_.emplace_back(static_cast<std::byte>(value.size())); } } else if (value.size() < std::numeric_limits<std::uint16_t>::max()) { emplace_combined(FormatConstants::bin16, static_cast<std::uint16_t>(value.size())); } else if (value.size() < std::numeric_limits<std::uint32_t>::max()) { emplace_combined(FormatConstants::bin32, static_cast<std::uint32_t>(value.size())); } else { throw std::length_error("Vector is too long to be serialized."); } if constexpr (IsDryRun) { required_size_ += value.size(); } else { data_.insert( data_.end(), reinterpret_cast<const std::byte *>(value.data()), reinterpret_cast<const std::byte *>(value.data()) + value.size() ); } }
O0
c
msgpack23::Packer<true>::pack_type(std::vector<unsigned char, std::allocator<unsigned char>> const&): pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rdi callq 0x2ae90 movq %rax, -0x38(%rbp) callq 0x28c10 movb %al, %cl movq -0x38(%rbp), %rax movzbl %cl, %ecx cmpq %rcx, %rax jae 0x6aa3e movq -0x40(%rbp), %rdi movb $-0x3c, -0x11(%rbp) leaq -0x11(%rbp), %rsi callq 0x39c80 movq -0x40(%rbp), %rax movq 0x18(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x18(%rax) jmp 0x6ab1c movq -0x10(%rbp), %rdi callq 0x2ae90 movq %rax, -0x48(%rbp) callq 0x26c30 movw %ax, %cx movq -0x48(%rbp), %rax movzwl %cx, %ecx cmpq %rcx, %rax jae 0x6aa86 movb $-0x3b, -0x12(%rbp) movq -0x10(%rbp), %rdi callq 0x2ae90 movq -0x40(%rbp), %rdi movw %ax, -0x14(%rbp) leaq -0x12(%rbp), %rsi leaq -0x14(%rbp), %rdx callq 0x39e80 jmp 0x6ab1a movq -0x10(%rbp), %rdi callq 0x2ae90 movq %rax, -0x50(%rbp) callq 0x26c80 movl %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, %ecx cmpq %rcx, %rax jae 0x6aac8 movb $-0x3a, -0x15(%rbp) movq -0x10(%rbp), %rdi callq 0x2ae90 movq -0x40(%rbp), %rdi movl %eax, -0x1c(%rbp) leaq -0x15(%rbp), %rsi leaq -0x1c(%rbp), %rdx callq 0x39ec0 jmp 0x6ab18 movl $0x10, %edi callq 0x16280 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x58(%rbp) leaq 0x63735(%rip), %rsi # 0xce218 callq 0x166e0 jmp 0x6aaea movq -0x58(%rbp), %rdi movq 0xcb49b(%rip), %rsi # 0x135f90 movq 0xcb434(%rip), %rdx # 0x135f30 callq 0x16aa0 movq -0x58(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x28(%rbp) movl %eax, -0x2c(%rbp) callq 0x163d0 jmp 0x6ab3a jmp 0x6ab1a jmp 0x6ab1c movq -0x10(%rbp), %rdi callq 0x2ae90 movq %rax, %rcx movq -0x40(%rbp), %rax addq 0x18(%rax), %rcx movq %rcx, 0x18(%rax) addq $0x60, %rsp popq %rbp retq movq -0x28(%rbp), %rdi callq 0x16af0 nopw %cs:(%rax,%rax) nopl (%rax)
_ZN9msgpack236PackerILb1EE9pack_typeERKSt6vectorIhSaIhEE: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_40], rax mov rdi, [rbp+var_10] call _ZNKSt6vectorIhSaIhEE4sizeEv; std::vector<uchar>::size(void) mov [rbp+var_38], rax call _ZNSt14numeric_limitsIhE3maxEv; std::numeric_limits<uchar>::max(void) mov cl, al mov rax, [rbp+var_38] movzx ecx, cl cmp rax, rcx jnb short loc_6AA3E mov rdi, [rbp+var_40] mov [rbp+var_11], 0C4h lea rsi, [rbp+var_11] call _ZN9msgpack236PackerILb1EE16emplace_constantERKNS_15FormatConstantsE; msgpack23::Packer<true>::emplace_constant(msgpack23::FormatConstants const&) mov rax, [rbp+var_40] mov rcx, [rax+18h] add rcx, 1 mov [rax+18h], rcx jmp loc_6AB1C loc_6AA3E: mov rdi, [rbp+var_10] call _ZNKSt6vectorIhSaIhEE4sizeEv; std::vector<uchar>::size(void) mov [rbp+var_48], rax call _ZNSt14numeric_limitsItE3maxEv; std::numeric_limits<ushort>::max(void) mov cx, ax mov rax, [rbp+var_48] movzx ecx, cx cmp rax, rcx jnb short loc_6AA86 mov [rbp+var_12], 0C5h mov rdi, [rbp+var_10] call _ZNKSt6vectorIhSaIhEE4sizeEv; std::vector<uchar>::size(void) mov rdi, [rbp+var_40] mov [rbp+var_14], ax lea rsi, [rbp+var_12] lea rdx, [rbp+var_14] call _ZN9msgpack236PackerILb1EE16emplace_combinedITkSt8integraltEEvRKNS_15FormatConstantsERKT_ jmp loc_6AB1A loc_6AA86: mov rdi, [rbp+var_10] call _ZNKSt6vectorIhSaIhEE4sizeEv; std::vector<uchar>::size(void) mov [rbp+var_50], rax call _ZNSt14numeric_limitsIjE3maxEv; std::numeric_limits<uint>::max(void) mov ecx, eax mov rax, [rbp+var_50] mov ecx, ecx cmp rax, rcx jnb short loc_6AAC8 mov [rbp+var_15], 0C6h mov rdi, [rbp+var_10] call _ZNKSt6vectorIhSaIhEE4sizeEv; std::vector<uchar>::size(void) mov rdi, [rbp+var_40] mov [rbp+var_1C], eax lea rsi, [rbp+var_15] lea rdx, [rbp+var_1C] call _ZN9msgpack236PackerILb1EE16emplace_combinedITkSt8integraljEEvRKNS_15FormatConstantsERKT_ jmp short loc_6AB18 loc_6AAC8: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rbp+var_58], rax lea rsi, aVectorIsTooLon; "Vector is too long to be serialized." call __ZNSt12length_errorC1EPKc; std::length_error::length_error(char const*) jmp short $+2 loc_6AAEA: mov rdi, [rbp+var_58]; void * mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt12length_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw mov rdi, [rbp+var_58]; void * mov rcx, rax mov eax, edx mov [rbp+var_28], rcx mov [rbp+var_2C], eax call ___cxa_free_exception jmp short loc_6AB3A loc_6AB18: jmp short $+2 loc_6AB1A: jmp short $+2 loc_6AB1C: mov rdi, [rbp+var_10] call _ZNKSt6vectorIhSaIhEE4sizeEv; std::vector<uchar>::size(void) mov rcx, rax mov rax, [rbp+var_40] add rcx, [rax+18h] mov [rax+18h], rcx add rsp, 60h pop rbp retn loc_6AB3A: mov rdi, [rbp+var_28] call __Unwind_Resume
long long msgpack23::Packer<true>::pack_type(long long a1, _QWORD *a2) { long long v2; // rcx long long result; // rax std::length_error *exception; // [rsp+8h] [rbp-58h] unsigned long long v5; // [rsp+10h] [rbp-50h] unsigned long long v6; // [rsp+18h] [rbp-48h] unsigned long long v7; // [rsp+28h] [rbp-38h] int v8; // [rsp+44h] [rbp-1Ch] BYREF char v9; // [rsp+4Bh] [rbp-15h] BYREF __int16 v10; // [rsp+4Ch] [rbp-14h] BYREF _BYTE v11[2]; // [rsp+4Eh] [rbp-12h] BYREF _QWORD *v12; // [rsp+50h] [rbp-10h] long long v13; // [rsp+58h] [rbp-8h] v13 = a1; v12 = a2; v7 = std::vector<unsigned char>::size(a2); if ( v7 >= (unsigned __int8)std::numeric_limits<unsigned char>::max() ) { v6 = std::vector<unsigned char>::size(v12); if ( v6 >= (unsigned __int16)std::numeric_limits<unsigned short>::max() ) { v5 = std::vector<unsigned char>::size(v12); if ( v5 >= (unsigned int)std::numeric_limits<unsigned int>::max() ) { exception = (std::length_error *)__cxa_allocate_exception(0x10uLL); std::length_error::length_error(exception, "Vector is too long to be serialized."); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::length_error, (void (*)(void *))&std::length_error::~length_error); } v9 = -58; v8 = std::vector<unsigned char>::size(v12); ZN9msgpack236PackerILb1EE16emplace_combinedITkSt8integraljEEvRKNS_15FormatConstantsERKT_( a1, (long long)&v9, (long long)&v8); } else { v11[0] = -59; v10 = std::vector<unsigned char>::size(v12); ZN9msgpack236PackerILb1EE16emplace_combinedITkSt8integraltEEvRKNS_15FormatConstantsERKT_( a1, (long long)v11, (long long)&v10); } } else { v11[1] = -60; msgpack23::Packer<true>::emplace_constant(a1); ++*(_QWORD *)(a1 + 24); } v2 = std::vector<unsigned char>::size(v12); result = a1; *(_QWORD *)(a1 + 24) += v2; return result; }
pack_type: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012ae90 MOV qword ptr [RBP + -0x38],RAX CALL 0x00128c10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x38] MOVZX ECX,CL CMP RAX,RCX JNC 0x0016aa3e MOV RDI,qword ptr [RBP + -0x40] MOV byte ptr [RBP + -0x11],0xc4 LEA RSI,[RBP + -0x11] CALL 0x00139c80 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RAX + 0x18] ADD RCX,0x1 MOV qword ptr [RAX + 0x18],RCX JMP 0x0016ab1c LAB_0016aa3e: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012ae90 MOV qword ptr [RBP + -0x48],RAX CALL 0x00126c30 MOV CX,AX MOV RAX,qword ptr [RBP + -0x48] MOVZX ECX,CX CMP RAX,RCX JNC 0x0016aa86 MOV byte ptr [RBP + -0x12],0xc5 MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012ae90 MOV RDI,qword ptr [RBP + -0x40] MOV word ptr [RBP + -0x14],AX LEA RSI,[RBP + -0x12] LEA RDX,[RBP + -0x14] CALL 0x00139e80 JMP 0x0016ab1a LAB_0016aa86: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012ae90 MOV qword ptr [RBP + -0x50],RAX CALL 0x00126c80 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV ECX,ECX CMP RAX,RCX JNC 0x0016aac8 MOV byte ptr [RBP + -0x15],0xc6 MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012ae90 MOV RDI,qword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x1c],EAX LEA RSI,[RBP + -0x15] LEA RDX,[RBP + -0x1c] CALL 0x00139ec0 JMP 0x0016ab18 LAB_0016aac8: MOV EDI,0x10 CALL 0x00116280 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RBP + -0x58],RAX LAB_0016aadc: LEA RSI,[0x1ce218] CALL 0x001166e0 LAB_0016aae8: JMP 0x0016aaea LAB_0016aaea: MOV RDI,qword ptr [RBP + -0x58] MOV RSI,qword ptr [0x00235f90] MOV RDX,qword ptr [0x00235f30] CALL 0x00116aa0 LAB_0016ab18: JMP 0x0016ab1a LAB_0016ab1a: JMP 0x0016ab1c LAB_0016ab1c: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012ae90 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x40] ADD RCX,qword ptr [RAX + 0x18] MOV qword ptr [RAX + 0x18],RCX ADD RSP,0x60 POP RBP RET
/* msgpack23::Packer<true>::pack_type(std::vector<unsigned char, std::allocator<unsigned char> > const&) */ void __thiscall msgpack23::Packer<true>::pack_type(Packer<true> *this,vector *param_1) { byte bVar1; ushort uVar2; uint uVar3; ulong uVar4; length_error *this_00; long lVar5; int4 local_24; int1 local_1d; int2 local_1c; int1 local_1a; int1 local_19; vector *local_18; Packer<true> *local_10; local_18 = param_1; local_10 = this; uVar4 = std::vector<unsigned_char,std::allocator<unsigned_char>>::size ((vector<unsigned_char,std::allocator<unsigned_char>> *)param_1); bVar1 = std::numeric_limits<unsigned_char>::max(); if (uVar4 < bVar1) { local_19 = 0xc4; emplace_constant((FormatConstants *)this); *(long *)(this + 0x18) = *(long *)(this + 0x18) + 1; } else { uVar4 = std::vector<unsigned_char,std::allocator<unsigned_char>>::size ((vector<unsigned_char,std::allocator<unsigned_char>> *)local_18); uVar2 = std::numeric_limits<unsigned_short>::max(); if (uVar4 < uVar2) { local_1a = 0xc5; local_1c = std::vector<unsigned_char,std::allocator<unsigned_char>>::size ((vector<unsigned_char,std::allocator<unsigned_char>> *)local_18); _ZN9msgpack236PackerILb1EE16emplace_combinedITkSt8integraltEEvRKNS_15FormatConstantsERKT_ (this,&local_1a,&local_1c); } else { uVar4 = std::vector<unsigned_char,std::allocator<unsigned_char>>::size ((vector<unsigned_char,std::allocator<unsigned_char>> *)local_18); uVar3 = std::numeric_limits<unsigned_int>::max(); if (uVar3 <= uVar4) { this_00 = (length_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016aadc to 0016aae7 has its CatchHandler @ 0016ab01 */ std::length_error::length_error(this_00,"Vector is too long to be serialized."); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00235f90,PTR__length_error_00235f30); } local_1d = 0xc6; local_24 = std::vector<unsigned_char,std::allocator<unsigned_char>>::size ((vector<unsigned_char,std::allocator<unsigned_char>> *)local_18); _ZN9msgpack236PackerILb1EE16emplace_combinedITkSt8integraljEEvRKNS_15FormatConstantsERKT_ (this,&local_1d,&local_24); } } lVar5 = std::vector<unsigned_char,std::allocator<unsigned_char>>::size ((vector<unsigned_char,std::allocator<unsigned_char>> *)local_18); *(long *)(this + 0x18) = lVar5 + *(long *)(this + 0x18); return; }
21,121
server_context::model_meta[abi:cxx11]() const
monkey531[P]llama/examples/server/server.cpp
json model_meta() const { return json { {"vocab_type", llama_vocab_type (vocab)}, {"n_vocab", llama_vocab_n_tokens (vocab)}, {"n_ctx_train", llama_model_n_ctx_train(model)}, {"n_embd", llama_model_n_embd (model)}, {"n_params", llama_model_n_params (model)}, {"size", llama_model_size (model)}, }; }
O2
cpp
server_context::model_meta[abi:cxx11]() const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x1d8, %rsp # imm = 0x1D8 movq %rsi, %r15 movq %rdi, %r14 leaq 0x80b9d(%rip), %rsi # 0xf55e3 leaq 0x118(%rsp), %rdi callq 0x51f2c movq 0x1348(%r15), %rdi callq 0x29330 leaq 0x130(%rsp), %rdi leaq 0x14(%rsp), %rsi movl %eax, (%rsi) callq 0x74eba leaq 0x148(%rsp), %rbx leaq 0x118(%rsp), %rsi pushq $0x2 popq %rdx movq %rbx, %rdi callq 0x4eab4 leaq 0x160(%rsp), %rbx leaq 0x80b51(%rip), %rsi # 0xf55ee leaq 0xe8(%rsp), %rdi callq 0x4eacc movq 0x1348(%r15), %rdi callq 0x29560 leaq 0x100(%rsp), %rdi leaq 0x10(%rsp), %rsi movl %eax, (%rsi) callq 0x74eca leaq 0xe8(%rsp), %rsi pushq $0x2 popq %rdx movq %rbx, %rdi callq 0x4eab4 leaq 0x178(%rsp), %rbx leaq 0x80b0a(%rip), %rsi # 0xf55f6 leaq 0xb8(%rsp), %rdi callq 0x51efc movq 0x1338(%r15), %rdi callq 0x28ac0 leaq 0xd0(%rsp), %rdi leaq 0xc(%rsp), %rsi movl %eax, (%rsi) callq 0x74eca leaq 0xb8(%rsp), %rsi pushq $0x2 popq %rdx movq %rbx, %rdi callq 0x4eab4 leaq 0x190(%rsp), %rbx leaq 0x80ac7(%rip), %rsi # 0xf5602 leaq 0x88(%rsp), %rdi callq 0x51f3c movq 0x1338(%r15), %rdi callq 0x282f0 leaq 0xa0(%rsp), %rdi leaq 0x8(%rsp), %rsi movl %eax, (%rsi) callq 0x74eca leaq 0x88(%rsp), %rsi pushq $0x2 popq %rdx movq %rbx, %rdi callq 0x4eab4 leaq 0x1a8(%rsp), %rbx leaq 0x80a7f(%rip), %rsi # 0xf5609 leaq 0x58(%rsp), %rdi callq 0x53d4e movq 0x1338(%r15), %rdi callq 0x28a90 leaq 0x70(%rsp), %rdi leaq 0x50(%rsp), %rsi movq %rax, (%rsi) callq 0x69f4e leaq 0x58(%rsp), %rsi pushq $0x2 popq %rdx movq %rbx, %rdi callq 0x4eab4 leaq 0x1c0(%rsp), %rbx leaq 0x8eb2d(%rip), %rsi # 0x1036fe leaq 0x20(%rsp), %rdi callq 0x4eaa4 movq 0x1338(%r15), %rdi callq 0x28e70 leaq 0x38(%rsp), %rdi leaq 0x18(%rsp), %rsi movq %rax, (%rsi) callq 0x69f4e leaq 0x20(%rsp), %rsi pushq $0x2 popq %rdx movq %rbx, %rdi callq 0x4eab4 leaq 0x148(%rsp), %rsi pushq $0x6 popq %rdx pushq $0x1 popq %rcx pushq $0x2 popq %r8 movq %r14, %rdi callq 0x4eb88 pushq $0x78 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x148, %rdi # imm = 0x148 callq 0x3ec50 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x74c26 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x20, %rdi callq 0x3ec50 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x74c43 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x58, %rdi callq 0x3ec50 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x74c5d pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x88, %rdi callq 0x3ec50 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x74c77 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0xb8, %rdi callq 0x3ec50 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x74c94 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0xe8, %rdi callq 0x3ec50 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x74cb1 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x118, %rdi # imm = 0x118 callq 0x3ec50 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x74cce movq %r14, %rax addq $0x1d8, %rsp # imm = 0x1D8 popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 pushq $0x78 popq %r15 leaq (%rsp,%r15), %rdi addq $0x148, %rdi # imm = 0x148 callq 0x3ec50 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x74d00 movb $0x1, %bpl jmp 0x74d24 movq %rax, %r14 xorl %ebp, %ebp pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0x20, %rdi callq 0x3ec50 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x74d28 jmp 0x74d57 movq %rax, %r14 leaq 0x20(%rsp), %rdi callq 0x3ec50 jmp 0x74d55 jmp 0x74d52 movq %rax, %r14 xorl %ebp, %ebp pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0x58, %rdi callq 0x3ec50 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x74d5b jmp 0x74d8a movq %rax, %r14 leaq 0x58(%rsp), %rdi callq 0x3ec50 jmp 0x74d88 jmp 0x74d85 movq %rax, %r14 xorl %ebp, %ebp pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0x88, %rdi callq 0x3ec50 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x74d8e jmp 0x74dc3 movq %rax, %r14 leaq 0x88(%rsp), %rdi callq 0x3ec50 jmp 0x74dc1 jmp 0x74dbe movq %rax, %r14 xorl %ebp, %ebp pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0xb8, %rdi callq 0x3ec50 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x74dc7 jmp 0x74dfc movq %rax, %r14 leaq 0xb8(%rsp), %rdi callq 0x3ec50 jmp 0x74dfa jmp 0x74df7 movq %rax, %r14 xorl %ebp, %ebp pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0xe8, %rdi callq 0x3ec50 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x74e00 pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0x118, %rdi # imm = 0x118 callq 0x3ec50 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x74e1e leaq 0x148(%rsp), %r15 cmpq %rbx, %r15 sete %al orb %al, %bpl jne 0x74e5c addq $-0x18, %rbx movq %rbx, %rdi callq 0x3ec50 cmpq %r15, %rbx jne 0x74e4b movq %r14, %rdi callq 0x293c0 movq %rax, %r14 leaq 0xe8(%rsp), %rdi callq 0x3ec50 jmp 0x74e7b jmp 0x74e78 movq %rax, %r14 xorl %ebp, %ebp jmp 0x74e1a movq %rax, %r14 leaq 0x118(%rsp), %rdi callq 0x3ec50 jmp 0x74e5c movq %rax, %r14 jmp 0x74e5c
_ZNK14server_context10model_metaB5cxx11Ev: push rbp push r15 push r14 push rbx sub rsp, 1D8h mov r15, rsi mov r14, rdi lea rsi, aVocabType; "vocab_type" lea rdi, [rsp+1F8h+var_E0] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA11_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ mov rdi, [r15+1348h] call _llama_vocab_type lea rdi, [rsp+1F8h+var_C8] lea rsi, [rsp+1F8h+var_1E4] mov [rsi], eax call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJ16llama_vocab_typeETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSK_ lea rbx, [rsp+1F8h+var_B0] lea rsi, [rsp+1F8h+var_E0] push 2 pop rdx mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>) lea rbx, [rsp+1F8h+var_98] lea rsi, aNVocab; "n_vocab" lea rdi, [rsp+1F8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ mov rdi, [r15+1348h] call _llama_vocab_n_tokens lea rdi, [rsp+1F8h+var_F8] lea rsi, [rsp+1F8h+var_1E8] mov [rsi], eax call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ lea rsi, [rsp+1F8h+var_110] push 2 pop rdx mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>) lea rbx, [rsp+1F8h+var_80] lea rsi, aNCtxTrain; "n_ctx_train" lea rdi, [rsp+1F8h+var_140] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA12_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ mov rdi, [r15+1338h] call _llama_model_n_ctx_train lea rdi, [rsp+1F8h+var_128] lea rsi, [rsp+1F8h+var_1EC] mov [rsi], eax call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ lea rsi, [rsp+1F8h+var_140] push 2 pop rdx mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>) lea rbx, [rsp+1F8h+var_68] lea rsi, aNEmbd; "n_embd" lea rdi, [rsp+1F8h+var_170] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ mov rdi, [r15+1338h] call _llama_model_n_embd lea rdi, [rsp+1F8h+var_158] lea rsi, [rsp+1F8h+var_1F0] mov [rsi], eax call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ lea rsi, [rsp+1F8h+var_170] push 2 pop rdx mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>) lea rbx, [rsp+1F8h+var_50] lea rsi, aNParams; "n_params" lea rdi, [rsp+1F8h+var_1A0] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA9_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ mov rdi, [r15+1338h] call _llama_model_n_params lea rdi, [rsp+1F8h+var_188] lea rsi, [rsp+1F8h+var_1A8] mov [rsi], rax call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJmETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ lea rsi, [rsp+1F8h+var_1A0] push 2 pop rdx mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>) lea rbx, [rsp+1F8h+var_38] lea rsi, aSize2Size+9; "size" lea rdi, [rsp+1F8h+var_1D8] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ mov rdi, [r15+1338h] call _llama_model_size lea rdi, [rsp+1F8h+var_1C0] lea rsi, [rsp+1F8h+var_1E0] mov [rsi], rax call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJmETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ lea rsi, [rsp+1F8h+var_1D8] push 2 pop rdx mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>) lea rsi, [rsp+1F8h+var_B0] push 6 pop rdx push 1 pop rcx push 2 pop r8 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; 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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) push 78h ; 'x' pop rbx loc_74C26: lea rdi, [rsp+rbx+1F8h+var_1F8] add rdi, 148h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_74C26 push 18h pop rbx loc_74C43: lea rdi, [rsp+rbx+1F8h+var_1F8] add rdi, 20h ; ' ' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_74C43 push 18h pop rbx loc_74C5D: lea rdi, [rsp+rbx+1F8h+var_1F8] add rdi, 58h ; 'X' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_74C5D push 18h pop rbx loc_74C77: lea rdi, [rsp+rbx+1F8h+var_1F8] add rdi, 88h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_74C77 push 18h pop rbx loc_74C94: lea rdi, [rsp+rbx+1F8h+var_1F8] add rdi, 0B8h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_74C94 push 18h pop rbx loc_74CB1: lea rdi, [rsp+rbx+1F8h+var_1F8] add rdi, 0E8h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_74CB1 push 18h pop rbx loc_74CCE: lea rdi, [rsp+rbx+1F8h+var_1F8] add rdi, 118h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_74CCE mov rax, r14 add rsp, 1D8h pop rbx pop r14 pop r15 pop rbp retn mov r14, rax push 78h ; 'x' pop r15 loc_74D00: lea rdi, [rsp+r15+0] add rdi, 148h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_74D00 mov bpl, 1 jmp short loc_74D24 mov r14, rax xor ebp, ebp loc_74D24: push 18h pop r15 loc_74D28: lea rdi, [rsp+r15+0] add rdi, 20h ; ' ' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_74D28 jmp short loc_74D57 mov r14, rax lea rdi, [rsp+arg_18] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() jmp short loc_74D55 jmp short $+2 loc_74D52: mov r14, rax loc_74D55: xor ebp, ebp loc_74D57: push 18h pop r15 loc_74D5B: lea rdi, [rsp+r15+0] add rdi, 58h ; 'X' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_74D5B jmp short loc_74D8A mov r14, rax lea rdi, [rsp+arg_50] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() jmp short loc_74D88 jmp short $+2 loc_74D85: mov r14, rax loc_74D88: xor ebp, ebp loc_74D8A: push 18h pop r15 loc_74D8E: lea rdi, [rsp+r15+0] add rdi, 88h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_74D8E jmp short loc_74DC3 mov r14, rax lea rdi, [rsp+arg_80] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() jmp short loc_74DC1 jmp short $+2 loc_74DBE: mov r14, rax loc_74DC1: xor ebp, ebp loc_74DC3: push 18h pop r15 loc_74DC7: lea rdi, [rsp+r15+0] add rdi, 0B8h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_74DC7 jmp short loc_74DFC mov r14, rax lea rdi, [rsp+arg_B0] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() jmp short loc_74DFA jmp short $+2 loc_74DF7: mov r14, rax loc_74DFA: xor ebp, ebp loc_74DFC: push 18h pop r15 loc_74E00: lea rdi, [rsp+r15+0] add rdi, 0E8h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_74E00 loc_74E1A: push 18h pop r15 loc_74E1E: lea rdi, [rsp+r15+0] add rdi, 118h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_74E1E lea r15, [rsp+arg_140] cmp r15, rbx setz al or bpl, al jnz short loc_74E5C loc_74E4B: add rbx, 0FFFFFFFFFFFFFFE8h mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() cmp rbx, r15 jnz short loc_74E4B loc_74E5C: mov rdi, r14 call __Unwind_Resume mov r14, rax lea rdi, [rsp+arg_E0] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() jmp short loc_74E7B jmp short $+2 loc_74E78: mov r14, rax loc_74E7B: xor ebp, ebp jmp short loc_74E1A mov r14, rax lea rdi, [rsp+arg_110] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json() jmp short loc_74E5C mov r14, rax jmp short loc_74E5C
long long server_context::model_meta[abi:cxx11](long long a1, long long a2) { long long i; // rbx long long j; // rbx long long k; // rbx long long m; // rbx long long n; // rbx long long ii; // rbx long long jj; // rbx int v10; // [rsp+8h] [rbp-1F0h] BYREF int v11; // [rsp+Ch] [rbp-1ECh] BYREF _DWORD v12[2]; // [rsp+10h] [rbp-1E8h] BYREF long long v13; // [rsp+18h] [rbp-1E0h] _BYTE v14[24]; // [rsp+20h] [rbp-1D8h] BYREF _BYTE v15[24]; // [rsp+38h] [rbp-1C0h] BYREF long long v16; // [rsp+50h] [rbp-1A8h] _BYTE v17[24]; // [rsp+58h] [rbp-1A0h] BYREF _BYTE v18[24]; // [rsp+70h] [rbp-188h] BYREF _BYTE v19[24]; // [rsp+88h] [rbp-170h] BYREF _BYTE v20[24]; // [rsp+A0h] [rbp-158h] BYREF _BYTE v21[24]; // [rsp+B8h] [rbp-140h] BYREF _BYTE v22[24]; // [rsp+D0h] [rbp-128h] BYREF _BYTE v23[24]; // [rsp+E8h] [rbp-110h] BYREF _BYTE v24[24]; // [rsp+100h] [rbp-F8h] BYREF _BYTE v25[24]; // [rsp+118h] [rbp-E0h] BYREF _BYTE v26[24]; // [rsp+130h] [rbp-C8h] BYREF _BYTE v27[24]; // [rsp+148h] [rbp-B0h] BYREF _BYTE v28[24]; // [rsp+160h] [rbp-98h] BYREF _BYTE v29[24]; // [rsp+178h] [rbp-80h] BYREF _BYTE v30[24]; // [rsp+190h] [rbp-68h] BYREF _BYTE v31[24]; // [rsp+1A8h] [rbp-50h] BYREF _BYTE v32[56]; // [rsp+1C0h] [rbp-38h] BYREF ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA11_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v25); v12[1] = llama_vocab_type(*(_QWORD *)(a2 + 4936), "vocab_type"); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJ16llama_vocab_typeETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSK_(v26); nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref( (long long)v27, (long long)v25, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v23); v12[0] = llama_vocab_n_tokens(*(_QWORD *)(a2 + 4936), "n_vocab"); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_( v24, v12); nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref( (long long)v28, (long long)v23, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA12_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v21); v11 = llama_model_n_ctx_train(*(_QWORD *)(a2 + 4920), "n_ctx_train"); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_( v22, &v11); nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref( (long long)v29, (long long)v21, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v19); v10 = llama_model_n_embd(*(_QWORD *)(a2 + 4920), "n_embd"); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_( v20, &v10); nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref( (long long)v30, (long long)v19, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA9_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v17); v16 = llama_model_n_params(*(_QWORD *)(a2 + 4920), "n_params"); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJmETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_((long long)v18); nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref( (long long)v31, (long long)v17, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v14); v13 = llama_model_size(*(_QWORD *)(a2 + 4920), "size"); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJmETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_((long long)v15); nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::json_ref( (long long)v32, (long long)v14, 2LL); 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>::basic_json( a1, v27, 6LL, 1LL, 2LL); for ( i = 120LL; i != -24; i -= 24LL ) 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>::~basic_json((long long)&v27[i]); for ( j = 24LL; j != -24; j -= 24LL ) 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>::~basic_json((long long)&v14[j]); for ( k = 24LL; k != -24; k -= 24LL ) 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>::~basic_json((long long)&v17[k]); for ( m = 24LL; m != -24; m -= 24LL ) 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>::~basic_json((long long)&v19[m]); for ( n = 24LL; n != -24; n -= 24LL ) 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>::~basic_json((long long)&v21[n]); for ( ii = 24LL; ii != -24; ii -= 24LL ) 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>::~basic_json((long long)&v23[ii]); for ( jj = 24LL; jj != -24; jj -= 24LL ) 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>::~basic_json((long long)&v25[jj]); return a1; }
model_meta[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x1d8 MOV R15,RSI MOV R14,RDI LAB_00174a3f: LEA RSI,[0x1f55e3] LEA RDI,[RSP + 0x118] CALL 0x00151f2c MOV RDI,qword ptr [R15 + 0x1348] LAB_00174a5a: CALL 0x00129330 LEA RDI,[RSP + 0x130] LEA RSI,[RSP + 0x14] MOV dword ptr [RSI],EAX CALL 0x00174eba LAB_00174a73: LEA RBX,[RSP + 0x148] LEA RSI,[RSP + 0x118] PUSH 0x2 POP RDX MOV RDI,RBX CALL 0x0014eab4 LEA RBX,[RSP + 0x160] LAB_00174a96: LEA RSI,[0x1f55ee] LEA RDI,[RSP + 0xe8] CALL 0x0014eacc MOV RDI,qword ptr [R15 + 0x1348] LAB_00174ab1: CALL 0x00129560 LEA RDI,[RSP + 0x100] LEA RSI,[RSP + 0x10] MOV dword ptr [RSI],EAX CALL 0x00174eca LAB_00174aca: LEA RSI,[RSP + 0xe8] PUSH 0x2 POP RDX MOV RDI,RBX CALL 0x0014eab4 LEA RBX,[RSP + 0x178] LAB_00174ae5: LEA RSI,[0x1f55f6] LEA RDI,[RSP + 0xb8] CALL 0x00151efc MOV RDI,qword ptr [R15 + 0x1338] LAB_00174b00: CALL 0x00128ac0 LEA RDI,[RSP + 0xd0] LEA RSI,[RSP + 0xc] MOV dword ptr [RSI],EAX CALL 0x00174eca LAB_00174b19: LEA RSI,[RSP + 0xb8] PUSH 0x2 POP RDX MOV RDI,RBX CALL 0x0014eab4 LEA RBX,[RSP + 0x190] LAB_00174b34: LEA RSI,[0x1f5602] LEA RDI,[RSP + 0x88] CALL 0x00151f3c MOV RDI,qword ptr [R15 + 0x1338] LAB_00174b4f: CALL 0x001282f0 LEA RDI,[RSP + 0xa0] LEA RSI,[RSP + 0x8] MOV dword ptr [RSI],EAX CALL 0x00174eca LAB_00174b68: LEA RSI,[RSP + 0x88] PUSH 0x2 POP RDX MOV RDI,RBX CALL 0x0014eab4 LEA RBX,[RSP + 0x1a8] LAB_00174b83: LEA RSI,[0x1f5609] LEA RDI,[RSP + 0x58] CALL 0x00153d4e MOV RDI,qword ptr [R15 + 0x1338] LAB_00174b9b: CALL 0x00128a90 LEA RDI,[RSP + 0x70] LEA RSI,[RSP + 0x50] MOV qword ptr [RSI],RAX CALL 0x00169f4e LAB_00174bb2: LEA RSI,[RSP + 0x58] PUSH 0x2 POP RDX MOV RDI,RBX CALL 0x0014eab4 LEA RBX,[RSP + 0x1c0] LAB_00174bca: LEA RSI,[0x2036fe] LEA RDI,[RSP + 0x20] CALL 0x0014eaa4 MOV RDI,qword ptr [R15 + 0x1338] LAB_00174be2: CALL 0x00128e70 LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0x18] MOV qword ptr [RSI],RAX CALL 0x00169f4e LAB_00174bf9: LEA RSI,[RSP + 0x20] PUSH 0x2 POP RDX MOV RDI,RBX CALL 0x0014eab4 LAB_00174c09: LEA RSI,[RSP + 0x148] PUSH 0x6 POP RDX PUSH 0x1 POP RCX PUSH 0x2 POP R8 MOV RDI,R14 CALL 0x0014eb88 LAB_00174c23: PUSH 0x78 POP RBX LAB_00174c26: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x148 CALL 0x0013ec50 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00174c26 PUSH 0x18 POP RBX LAB_00174c43: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x20 CALL 0x0013ec50 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00174c43 PUSH 0x18 POP RBX LAB_00174c5d: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x58 CALL 0x0013ec50 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00174c5d PUSH 0x18 POP RBX LAB_00174c77: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x88 CALL 0x0013ec50 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00174c77 PUSH 0x18 POP RBX LAB_00174c94: LEA RDI,[RSP + RBX*0x1] ADD RDI,0xb8 CALL 0x0013ec50 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00174c94 PUSH 0x18 POP RBX LAB_00174cb1: LEA RDI,[RSP + RBX*0x1] ADD RDI,0xe8 CALL 0x0013ec50 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00174cb1 PUSH 0x18 POP RBX LAB_00174cce: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x118 CALL 0x0013ec50 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00174cce MOV RAX,R14 ADD RSP,0x1d8 POP RBX POP R14 POP R15 POP RBP RET
/* server_context::model_meta[abi:cxx11]() const */ void server_context::model_meta_abi_cxx11_(void) { long lVar1; long in_RSI; 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_1d8 [24]; int1 local_1c0 [24]; int8 local_1a8; 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_1a0 [24]; int1 local_188 [24]; 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_170 [24]; int1 local_158 [24]; 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_140 [24]; int1 local_128 [24]; 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_110 [24]; int1 local_f8 [24]; 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_e0 [24]; int1 local_c8 [24]; 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_b0 [24]; int1 local_98 [24]; int1 local_80 [24]; int1 local_68 [24]; int1 local_50 [24]; int1 local_38 [24]; /* try { // try from 00174a3f to 00174a52 has its CatchHandler @ 00174e91 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA11_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_e0,"vocab_type"); /* try { // try from 00174a5a to 00174a5e has its CatchHandler @ 00174e7f */ llama_vocab_type(*(int8 *)(in_RSI + 0x1348)); _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJ16llama_vocab_typeETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSK_ (local_c8); /* try { // try from 00174a73 to 00174a8d has its CatchHandler @ 00174e78 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<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>> ::json_ref(local_b0,local_e0,2); /* try { // try from 00174a96 to 00174aa9 has its CatchHandler @ 00174e76 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_110,"n_vocab"); /* try { // try from 00174ab1 to 00174ab5 has its CatchHandler @ 00174e64 */ llama_vocab_n_tokens(*(int8 *)(in_RSI + 0x1348)); _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ (local_f8); /* try { // try from 00174aca to 00174adc has its CatchHandler @ 00174df7 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<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>> ::json_ref(local_98,local_110,2); /* try { // try from 00174ae5 to 00174af8 has its CatchHandler @ 00174df5 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA12_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_140,"n_ctx_train"); /* try { // try from 00174b00 to 00174b04 has its CatchHandler @ 00174de3 */ llama_model_n_ctx_train(*(int8 *)(in_RSI + 0x1338)); _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ (local_128); /* try { // try from 00174b19 to 00174b2b has its CatchHandler @ 00174dbe */ nlohmann::json_abi_v3_11_3::detail:: json_ref<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>> ::json_ref(local_80,local_140,2); /* try { // try from 00174b34 to 00174b47 has its CatchHandler @ 00174dbc */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_170,"n_embd"); /* try { // try from 00174b4f to 00174b53 has its CatchHandler @ 00174daa */ llama_model_n_embd(*(int8 *)(in_RSI + 0x1338)); _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJiETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ (local_158); /* try { // try from 00174b68 to 00174b7a has its CatchHandler @ 00174d85 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<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>> ::json_ref(local_68,local_170,2); /* try { // try from 00174b83 to 00174b93 has its CatchHandler @ 00174d83 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA9_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_1a0,"n_params"); /* try { // try from 00174b9b to 00174b9f has its CatchHandler @ 00174d74 */ local_1a8 = llama_model_n_params(*(int8 *)(in_RSI + 0x1338)); _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJmETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ (local_188); /* try { // try from 00174bb2 to 00174bc1 has its CatchHandler @ 00174d52 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<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>> ::json_ref(local_50,local_1a0,2); /* try { // try from 00174bca to 00174bda has its CatchHandler @ 00174d50 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_1d8,"size"); /* try { // try from 00174be2 to 00174be6 has its CatchHandler @ 00174d41 */ llama_model_size(*(int8 *)(in_RSI + 0x1338)); _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJmETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ (local_1c0); /* try { // try from 00174bf9 to 00174c08 has its CatchHandler @ 00174d1f */ nlohmann::json_abi_v3_11_3::detail:: json_ref<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>> ::json_ref(local_38,local_1d8,2); /* try { // try from 00174c09 to 00174c22 has its CatchHandler @ 00174cf9 */ 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> ::basic_json(); lVar1 = 0x78; do { 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> ::~basic_json(local_b0 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); lVar1 = 0x18; do { 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> ::~basic_json(local_1d8 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); lVar1 = 0x18; do { 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> ::~basic_json(local_1a0 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); lVar1 = 0x18; do { 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> ::~basic_json(local_170 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); lVar1 = 0x18; do { 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> ::~basic_json(local_140 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); lVar1 = 0x18; do { 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> ::~basic_json(local_110 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); lVar1 = 0x18; do { 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> ::~basic_json(local_e0 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); return; }
21,122
minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
monkey531[P]llama/common/./minja.hpp
static std::string error_location_suffix(const std::string & source, size_t pos) { auto get_line = [&](size_t line) { auto start = source.begin(); for (size_t i = 1; i < line; ++i) { start = std::find(start, source.end(), '\n') + 1; } auto end = std::find(start, source.end(), '\n'); return std::string(start, end); }; auto start = source.begin(); auto end = source.end(); auto it = start + pos; auto line = std::count(start, it, '\n') + 1; auto max_line = std::count(start, end, '\n') + 1; auto col = pos - std::string(start, it).rfind('\n'); std::ostringstream out; out << " at row " << line << ", column " << col << ":\n"; if (line > 1) out << get_line(line - 1) << "\n"; out << get_line(line) << "\n"; out << std::string(col - 1, ' ') << "^\n"; if (line < max_line) out << get_line(line + 1) << "\n"; return out.str(); }
O2
cpp
minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx movq (%rsi), %rax movq (%rax), %r14 pushq $0x1 popq %rbp leaq 0x6(%rsp), %r13 movq (%r12), %rax movq (%rax), %rsi addq 0x8(%rax), %rsi cmpq %r15, %rbp jae 0x25aaf movb $0xa, 0x6(%rsp) movq %r14, %rdi movq %r13, %rdx callq 0x54fc4 movq %rax, %r14 incq %r14 incq %rbp jmp 0x25a84 leaq 0x7(%rsp), %rdx movb $0xa, (%rdx) movq %r14, %rdi callq 0x54fc4 leaq 0x10(%rbx), %rcx movq %rcx, (%rbx) movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x54eb0 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmENK3$_0clB5cxx11Em: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdx mov r12, rsi mov rbx, rdi mov rax, [rsi] mov r14, [rax] push 1 pop rbp lea r13, [rsp+38h+var_32] loc_25A84: mov rax, [r12] mov rsi, [rax] add rsi, [rax+8] cmp rbp, r15 jnb short loc_25AAF mov [rsp+38h+var_32], 0Ah mov rdi, r14 mov rdx, r13 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) mov r14, rax inc r14 inc rbp jmp short loc_25A84 loc_25AAF: lea rdx, [rsp+38h+var_31] mov byte ptr [rdx], 0Ah mov rdi, r14 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) lea rcx, [rbx+10h] mov [rbx], rcx mov rdi, rbx mov rsi, r14 mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * minja::error_location_suffix(std::string const&,unsigned long)::$_0::operator()[abi:cxx11]( _QWORD *a1, long long **a2, unsigned long long a3) { long long v3; // rax long long v6; // r14 unsigned long long i; // rbp long long v8; // rsi long long v9; // rax _WORD v11[25]; // [rsp+0h] [rbp-32h] BYREF v11[0] = HIWORD(v3); v6 = **a2; for ( i = 1LL; ; ++i ) { v8 = (*a2)[1] + **a2; if ( i >= a3 ) break; LOBYTE(v11[0]) = 10; v6 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v6, v8, v11) + 1; } HIBYTE(v11[0]) = 10; v9 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v6, v8, (char *)v11 + 1); *a1 = a1 + 2; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(a1, v6, v9); return a1; }
operator()[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R12,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI] MOV R14,qword ptr [RAX] PUSH 0x1 POP RBP LEA R13,[RSP + 0x6] LAB_00125a84: MOV RAX,qword ptr [R12] MOV RSI,qword ptr [RAX] ADD RSI,qword ptr [RAX + 0x8] CMP RBP,R15 JNC 0x00125aaf MOV byte ptr [RSP + 0x6],0xa MOV RDI,R14 MOV RDX,R13 CALL 0x00154fc4 MOV R14,RAX INC R14 INC RBP JMP 0x00125a84 LAB_00125aaf: LEA RDX,[RSP + 0x7] MOV byte ptr [RDX],0xa MOV RDI,R14 CALL 0x00154fc4 LEA RCX,[RBX + 0x10] MOV qword ptr [RBX],RCX MOV RDI,RBX MOV RSI,R14 MOV RDX,RAX CALL 0x00154eb0 MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* operator()[abi:cxx11](unsigned long) const */ ulong minja::error_location_suffix(std::__cxx11::string_const&,unsigned_long)::$_0:: operator()[abi_cxx11_(ulong param_1) { int8 in_RAX; long lVar1; int8 uVar2; ulong in_RDX; ulong uVar3; long *in_RSI; long lVar4; int8 uStack_38; lVar1 = *(long *)*in_RSI; uStack_38 = in_RAX; for (uVar3 = 1; lVar4 = *(long *)*in_RSI + ((long *)*in_RSI)[1], uVar3 < in_RDX; uVar3 = uVar3 + 1 ) { uStack_38._0_7_ = CONCAT16(10,(int6)uStack_38); lVar1 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar1,lVar4,(long)&uStack_38 + 6); lVar1 = lVar1 + 1; } uStack_38 = CONCAT17(10,(int7)uStack_38); uVar2 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar1,lVar4); *(ulong *)param_1 = param_1 + 0x10; std::__cxx11::string::_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> (param_1,lVar1,uVar2); return param_1; }
21,123
ma_invalidate_stmts
eloqsql/libmariadb/libmariadb/mariadb_lib.c
void ma_invalidate_stmts(MYSQL *mysql, const char *function_name) { if (mysql->stmts) { LIST *li_stmt= mysql->stmts; for (; li_stmt; li_stmt= li_stmt->next) { MYSQL_STMT *stmt= (MYSQL_STMT *)li_stmt->data; stmt->mysql= NULL; SET_CLIENT_STMT_ERROR(stmt, CR_STMT_CLOSED, SQLSTATE_UNKNOWN, function_name); } mysql->stmts= NULL; } }
O0
c
ma_invalidate_stmts: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x4c8(%rax) je 0x42fec movq -0x8(%rbp), %rax movq 0x4c8(%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x42fdd movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq $0x0, 0x38(%rax) movq -0x20(%rbp), %rax movl $0x808, 0x108(%rax) # imm = 0x808 movq -0x20(%rbp), %rdi addq $0x30d, %rdi # imm = 0x30D leaq 0x1f211c(%rip), %rax # 0x235080 movq (%rax), %rsi movl $0x5, %edx callq 0x36140 movq -0x20(%rbp), %rax movb $0x0, 0x312(%rax) movq -0x20(%rbp), %rax addq $0x10c, %rax # imm = 0x10C movq %rax, -0x28(%rbp) cmpq $0x0, -0x10(%rbp) je 0x42f9b movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) jmp 0x42fad leaq 0x1f20ee(%rip), %rax # 0x235090 movq 0x1c0(%rax), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movl $0x200, %edx # imm = 0x200 callq 0x36140 movq -0x20(%rbp), %rax movb $0x0, 0x30b(%rax) jmp 0x42fcc movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) jmp 0x42f21 movq -0x8(%rbp), %rax movq $0x0, 0x4c8(%rax) addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_invalidate_stmts: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] cmp qword ptr [rax+4C8h], 0 jz loc_42FEC mov rax, [rbp+var_8] mov rax, [rax+4C8h] mov [rbp+var_18], rax loc_42F21: cmp [rbp+var_18], 0 jz loc_42FDD mov rax, [rbp+var_18] mov rax, [rax+10h] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov qword ptr [rax+38h], 0 mov rax, [rbp+var_20] mov dword ptr [rax+108h], 808h mov rdi, [rbp+var_20] add rdi, 30Dh lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_20] mov byte ptr [rax+312h], 0 mov rax, [rbp+var_20] add rax, 10Ch mov [rbp+var_28], rax cmp [rbp+var_10], 0 jz short loc_42F9B mov rax, [rbp+var_10] mov [rbp+var_30], rax jmp short loc_42FAD loc_42F9B: lea rax, client_errors mov rax, [rax+1C0h] mov [rbp+var_30], rax loc_42FAD: mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov edx, 200h call _strncpy mov rax, [rbp+var_20] mov byte ptr [rax+30Bh], 0 jmp short $+2 loc_42FCC: mov rax, [rbp+var_18] mov rax, [rax+8] mov [rbp+var_18], rax jmp loc_42F21 loc_42FDD: mov rax, [rbp+var_8] mov qword ptr [rax+4C8h], 0 loc_42FEC: add rsp, 30h pop rbp retn
long long ma_invalidate_stmts(long long a1, long long a2) { long long result; // rax long long v3; // [rsp+8h] [rbp-28h] long long v4; // [rsp+10h] [rbp-20h] long long i; // [rsp+18h] [rbp-18h] result = a1; if ( *(_QWORD *)(a1 + 1224) ) { for ( i = *(_QWORD *)(a1 + 1224); i; i = *(_QWORD *)(i + 8) ) { v4 = *(_QWORD *)(i + 16); *(_QWORD *)(v4 + 56) = 0LL; *(_DWORD *)(v4 + 264) = 2056; strncpy(v4 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(v4 + 786) = 0; v3 = v4 + 268; if ( a2 ) strncpy(v3, a2, 512LL); else strncpy(v3, client_errors[56], 512LL); *(_BYTE *)(v4 + 779) = 0; } result = a1; *(_QWORD *)(a1 + 1224) = 0LL; } return result; }
ma_invalidate_stmts: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x4c8],0x0 JZ 0x00142fec MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x4c8] MOV qword ptr [RBP + -0x18],RAX LAB_00142f21: CMP qword ptr [RBP + -0x18],0x0 JZ 0x00142fdd MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x38],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x108],0x808 MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x30d LEA RAX,[0x335080] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00136140 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x312],0x0 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x10c MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x10],0x0 JZ 0x00142f9b MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX JMP 0x00142fad LAB_00142f9b: LEA RAX,[0x335090] MOV RAX,qword ptr [RAX + 0x1c0] MOV qword ptr [RBP + -0x30],RAX LAB_00142fad: MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV EDX,0x200 CALL 0x00136140 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x30b],0x0 JMP 0x00142fcc LAB_00142fcc: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x00142f21 LAB_00142fdd: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x4c8],0x0 LAB_00142fec: ADD RSP,0x30 POP RBP RET
void ma_invalidate_stmts(long param_1,char *param_2) { long lVar1; int8 local_38; int8 local_20; if (*(long *)(param_1 + 0x4c8) != 0) { for (local_20 = *(long *)(param_1 + 0x4c8); local_20 != 0; local_20 = *(long *)(local_20 + 8)) { lVar1 = *(long *)(local_20 + 0x10); *(int8 *)(lVar1 + 0x38) = 0; *(int4 *)(lVar1 + 0x108) = 0x808; strncpy((char *)(lVar1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(lVar1 + 0x312) = 0; local_38 = param_2; if (param_2 == (char *)0x0) { local_38 = PTR_s_Server_closed_statement_due_to_a_00335250; } strncpy((char *)(lVar1 + 0x10c),local_38,0x200); *(int1 *)(lVar1 + 0x30b) = 0; } *(int8 *)(param_1 + 0x4c8) = 0; } return; }
21,124
ma_invalidate_stmts
eloqsql/libmariadb/libmariadb/mariadb_lib.c
void ma_invalidate_stmts(MYSQL *mysql, const char *function_name) { if (mysql->stmts) { LIST *li_stmt= mysql->stmts; for (; li_stmt; li_stmt= li_stmt->next) { MYSQL_STMT *stmt= (MYSQL_STMT *)li_stmt->data; stmt->mysql= NULL; SET_CLIENT_STMT_ERROR(stmt, CR_STMT_CLOSED, SQLSTATE_UNKNOWN, function_name); } mysql->stmts= NULL; } }
O3
c
ma_invalidate_stmts: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq 0x4c8(%rdi), %r12 testq %r12, %r12 je 0x3f65a movq %rsi, %r14 movq %rdi, -0x30(%rbp) leaq 0x2fc692(%rip), %rax # 0x33bc70 movq (%rax), %r15 leaq 0x2fc698(%rip), %r13 # 0x33bc80 movq 0x10(%r12), %rbx movq $0x0, 0x38(%rbx) movl $0x808, 0x108(%rbx) # imm = 0x808 leaq 0x30d(%rbx), %rdi movl $0x5, %edx movq %r15, %rsi callq 0x36140 movb $0x0, 0x312(%rbx) movq %r14, %rsi testq %r14, %r14 jne 0x3f629 movq 0x1c0(%r13), %rsi leaq 0x10c(%rbx), %rdi movl $0x200, %edx # imm = 0x200 callq 0x36140 movb $0x0, 0x30b(%rbx) movq 0x8(%r12), %r12 testq %r12, %r12 jne 0x3f5e8 movq -0x30(%rbp), %rax movq $0x0, 0x4c8(%rax) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ma_invalidate_stmts: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r12, [rdi+4C8h] test r12, r12 jz loc_3F65A mov r14, rsi mov [rbp+var_30], rdi lea rax, SQLSTATE_UNKNOWN mov r15, [rax] lea r13, client_errors loc_3F5E8: mov rbx, [r12+10h] mov qword ptr [rbx+38h], 0 mov dword ptr [rbx+108h], 808h lea rdi, [rbx+30Dh] mov edx, 5 mov rsi, r15 call _strncpy mov byte ptr [rbx+312h], 0 mov rsi, r14 test r14, r14 jnz short loc_3F629 mov rsi, [r13+1C0h] loc_3F629: lea rdi, [rbx+10Ch] mov edx, 200h call _strncpy mov byte ptr [rbx+30Bh], 0 mov r12, [r12+8] test r12, r12 jnz short loc_3F5E8 mov rax, [rbp+var_30] mov qword ptr [rax+4C8h], 0 loc_3F65A: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ma_invalidate_stmts(long long a1, char *a2) { long long v2; // r12 char *v4; // r15 long long v5; // rbx char *v6; // rsi long long result; // rax v2 = *(_QWORD *)(a1 + 1224); if ( v2 ) { v4 = SQLSTATE_UNKNOWN; do { v5 = *(_QWORD *)(v2 + 16); *(_QWORD *)(v5 + 56) = 0LL; *(_DWORD *)(v5 + 264) = 2056; strncpy(v5 + 781, v4, 5LL); *(_BYTE *)(v5 + 786) = 0; v6 = a2; if ( !a2 ) v6 = client_errors[56]; strncpy(v5 + 268, v6, 512LL); *(_BYTE *)(v5 + 779) = 0; v2 = *(_QWORD *)(v2 + 8); } while ( v2 ); result = a1; *(_QWORD *)(a1 + 1224) = 0LL; } return result; }
ma_invalidate_stmts: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,qword ptr [RDI + 0x4c8] TEST R12,R12 JZ 0x0013f65a MOV R14,RSI MOV qword ptr [RBP + -0x30],RDI LEA RAX,[0x43bc70] MOV R15,qword ptr [RAX] LEA R13,[0x43bc80] LAB_0013f5e8: MOV RBX,qword ptr [R12 + 0x10] MOV qword ptr [RBX + 0x38],0x0 MOV dword ptr [RBX + 0x108],0x808 LEA RDI,[RBX + 0x30d] MOV EDX,0x5 MOV RSI,R15 CALL 0x00136140 MOV byte ptr [RBX + 0x312],0x0 MOV RSI,R14 TEST R14,R14 JNZ 0x0013f629 MOV RSI,qword ptr [R13 + 0x1c0] LAB_0013f629: LEA RDI,[RBX + 0x10c] MOV EDX,0x200 CALL 0x00136140 MOV byte ptr [RBX + 0x30b],0x0 MOV R12,qword ptr [R12 + 0x8] TEST R12,R12 JNZ 0x0013f5e8 MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x4c8],0x0 LAB_0013f65a: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void ma_invalidate_stmts(long param_1,char *param_2) { long lVar1; int *__src; char *__src_00; long lVar2; __src = SQLSTATE_UNKNOWN; lVar2 = *(long *)(param_1 + 0x4c8); if (lVar2 != 0) { do { lVar1 = *(long *)(lVar2 + 0x10); *(int8 *)(lVar1 + 0x38) = 0; *(int4 *)(lVar1 + 0x108) = 0x808; strncpy((char *)(lVar1 + 0x30d),__src,5); *(int1 *)(lVar1 + 0x312) = 0; __src_00 = param_2; if (param_2 == (char *)0x0) { __src_00 = PTR_s_Server_closed_statement_due_to_a_0043be40; } strncpy((char *)(lVar1 + 0x10c),__src_00,0x200); *(int1 *)(lVar1 + 0x30b) = 0; lVar2 = *(long *)(lVar2 + 8); } while (lVar2 != 0); *(int8 *)(param_1 + 0x4c8) = 0; } return; }
21,125
js_std_loadFile
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_std_loadFile(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { uint8_t *buf; const char *filename; JSValue ret, options_obj; size_t buf_len; BOOL binary = FALSE; if (argc >= 2) { options_obj = argv[1]; if (get_bool_option(ctx, &binary, options_obj, "binary")) return JS_EXCEPTION; } filename = JS_ToCString(ctx, argv[0]); if (!filename) return JS_EXCEPTION; buf = js_load_file(ctx, &buf_len, filename); JS_FreeCString(ctx, filename); if (!buf) return JS_NULL; if (binary) { ret = JS_NewUint8Array(ctx, buf, buf_len, free_buf, NULL, FALSE); } else { ret = JS_NewStringLen(ctx, (char *)buf, buf_len); js_free(ctx, buf); } return ret; }
O0
c
js_std_loadFile: subq $0x98, %rsp movq %rsi, 0x78(%rsp) movq %rdx, 0x80(%rsp) movq %rdi, 0x70(%rsp) movl %ecx, 0x6c(%rsp) movq %r8, 0x60(%rsp) movl $0x0, 0x24(%rsp) cmpl $0x2, 0x6c(%rsp) jl 0x15d9b movq 0x60(%rsp), %rax movq 0x10(%rax), %rcx movq %rcx, 0x30(%rsp) movq 0x18(%rax), %rax movq %rax, 0x38(%rsp) movq 0x70(%rsp), %rdi movq 0x30(%rsp), %rdx movq 0x38(%rsp), %rcx leaq 0x24(%rsp), %rsi leaq 0xf4053(%rip), %r8 # 0x109dc6 callq 0x165d0 cmpl $0x0, %eax je 0x15d99 movl $0x0, 0x88(%rsp) movq $0x6, 0x90(%rsp) jmp 0x15ec9 jmp 0x15d9b movq 0x70(%rsp), %rdi movq 0x60(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x147e0 movq %rax, 0x50(%rsp) cmpq $0x0, 0x50(%rsp) jne 0x15dda movl $0x0, 0x88(%rsp) movq $0x6, 0x90(%rsp) jmp 0x15ec9 movq 0x70(%rsp), %rdi movq 0x50(%rsp), %rdx leaq 0x28(%rsp), %rsi callq 0xfed0 movq %rax, 0x58(%rsp) movq 0x70(%rsp), %rdi movq 0x50(%rsp), %rsi callq 0x29e50 cmpq $0x0, 0x58(%rsp) jne 0x15e26 movl $0x0, 0x88(%rsp) movq $0x2, 0x90(%rsp) jmp 0x15ec9 cmpl $0x0, 0x24(%rsp) je 0x15e70 movq 0x70(%rsp), %rdi movq 0x58(%rsp), %rsi movq 0x28(%rsp), %rdx leaq 0x9fd(%rip), %rcx # 0x16840 xorl %eax, %eax movl %eax, %r8d xorl %r9d, %r9d callq 0x58c30 movq %rax, 0x10(%rsp) movq %rdx, 0x18(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x48(%rsp) jmp 0x15eaf movq 0x70(%rsp), %rdi movq 0x58(%rsp), %rsi movq 0x28(%rsp), %rdx callq 0x28270 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movq (%rsp), %rax movq %rax, 0x40(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x70(%rsp), %rdi movq 0x58(%rsp), %rsi callq 0x21db0 movq 0x40(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x90(%rsp) movq 0x88(%rsp), %rax movq 0x90(%rsp), %rdx addq $0x98, %rsp retq nopw %cs:(%rax,%rax)
js_std_loadFile: sub rsp, 98h mov [rsp+98h+var_20], rsi mov [rsp+98h+var_18], rdx mov [rsp+98h+var_28], rdi mov [rsp+98h+var_2C], ecx mov [rsp+98h+var_38], r8 mov [rsp+98h+var_74], 0 cmp [rsp+98h+var_2C], 2 jl short loc_15D9B mov rax, [rsp+98h+var_38] mov rcx, [rax+10h] mov [rsp+98h+var_68], rcx mov rax, [rax+18h] mov [rsp+98h+var_60], rax mov rdi, [rsp+98h+var_28] mov rdx, [rsp+98h+var_68] mov rcx, [rsp+98h+var_60] lea rsi, [rsp+98h+var_74] lea r8, aBinary; "binary" call get_bool_option cmp eax, 0 jz short loc_15D99 mov dword ptr [rsp+98h+var_10], 0 mov [rsp+98h+var_8], 6 jmp loc_15EC9 loc_15D99: jmp short $+2 loc_15D9B: mov rdi, [rsp+98h+var_28] mov rax, [rsp+98h+var_38] mov rsi, [rax] mov rdx, [rax+8] call JS_ToCString mov [rsp+98h+var_48], rax cmp [rsp+98h+var_48], 0 jnz short loc_15DDA mov dword ptr [rsp+98h+var_10], 0 mov [rsp+98h+var_8], 6 jmp loc_15EC9 loc_15DDA: mov rdi, [rsp+98h+var_28] mov rdx, [rsp+98h+var_48] lea rsi, [rsp+98h+var_70] call js_load_file mov [rsp+98h+var_40], rax mov rdi, [rsp+98h+var_28] mov rsi, [rsp+98h+var_48] call JS_FreeCString cmp [rsp+98h+var_40], 0 jnz short loc_15E26 mov dword ptr [rsp+98h+var_10], 0 mov [rsp+98h+var_8], 2 jmp loc_15EC9 loc_15E26: cmp [rsp+98h+var_74], 0 jz short loc_15E70 mov rdi, [rsp+98h+var_28] mov rsi, [rsp+98h+var_40] mov rdx, [rsp+98h+var_70] lea rcx, free_buf xor eax, eax mov r8d, eax xor r9d, r9d call JS_NewUint8Array mov [rsp+98h+var_88], rax mov [rsp+98h+var_80], rdx mov rax, [rsp+98h+var_88] mov [rsp+98h+var_58], rax mov rax, [rsp+98h+var_80] mov [rsp+98h+var_50], rax jmp short loc_15EAF loc_15E70: mov rdi, [rsp+98h+var_28] mov rsi, [rsp+98h+var_40] mov rdx, [rsp+98h+var_70] call JS_NewStringLen mov [rsp+98h+var_98], rax mov [rsp+98h+var_90], rdx mov rax, [rsp+98h+var_98] mov [rsp+98h+var_58], rax mov rax, [rsp+98h+var_90] mov [rsp+98h+var_50], rax mov rdi, [rsp+98h+var_28] mov rsi, [rsp+98h+var_40] call js_free loc_15EAF: mov rax, [rsp+98h+var_58] mov [rsp+98h+var_10], rax mov rax, [rsp+98h+var_50] mov [rsp+98h+var_8], rax loc_15EC9: mov rax, [rsp+98h+var_10] mov rdx, [rsp+98h+var_8] add rsp, 98h retn
long long js_std_loadFile(long long a1, long long a2, long long a3, int a4, long long *a5) { long long v5; // rdx long long v6; // rdx int v8; // [rsp+24h] [rbp-74h] BYREF long long v9; // [rsp+28h] [rbp-70h] BYREF long long v10; // [rsp+30h] [rbp-68h] long long v11; // [rsp+38h] [rbp-60h] long long v12; // [rsp+40h] [rbp-58h] long long v13; // [rsp+48h] [rbp-50h] long long v14; // [rsp+50h] [rbp-48h] long long v15; // [rsp+58h] [rbp-40h] long long *v16; // [rsp+60h] [rbp-38h] int v17; // [rsp+6Ch] [rbp-2Ch] long long v18; // [rsp+70h] [rbp-28h] long long v19; // [rsp+78h] [rbp-20h] long long v20; // [rsp+80h] [rbp-18h] long long v21; // [rsp+88h] [rbp-10h] long long v22; // [rsp+90h] [rbp-8h] v19 = a2; v20 = a3; v18 = a1; v17 = a4; v16 = a5; v8 = 0; if ( a4 >= 2 && (v10 = v16[2], v11 = v16[3], (unsigned int)get_bool_option(v18, &v8, v10, v11, "binary")) ) { LODWORD(v21) = 0; v22 = 6LL; } else { v14 = JS_ToCString(v18, *v16, v16[1]); if ( v14 ) { v15 = js_load_file(v18, &v9, v14); JS_FreeCString(v18, v14); if ( v15 ) { if ( v8 ) { v12 = JS_NewUint8Array(v18, v15, v9, free_buf, 0LL, 0LL); v13 = v5; } else { v12 = JS_NewStringLen(v18, v15, v9); v13 = v6; js_free(v18, v15); } v21 = v12; v22 = v13; } else { LODWORD(v21) = 0; v22 = 2LL; } } else { LODWORD(v21) = 0; v22 = 6LL; } } return v21; }
js_std_loadFile: SUB RSP,0x98 MOV qword ptr [RSP + 0x78],RSI MOV qword ptr [RSP + 0x80],RDX MOV qword ptr [RSP + 0x70],RDI MOV dword ptr [RSP + 0x6c],ECX MOV qword ptr [RSP + 0x60],R8 MOV dword ptr [RSP + 0x24],0x0 CMP dword ptr [RSP + 0x6c],0x2 JL 0x00115d9b MOV RAX,qword ptr [RSP + 0x60] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x30],RCX MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RSP + 0x38] LEA RSI,[RSP + 0x24] LEA R8,[0x209dc6] CALL 0x001165d0 CMP EAX,0x0 JZ 0x00115d99 MOV dword ptr [RSP + 0x88],0x0 MOV qword ptr [RSP + 0x90],0x6 JMP 0x00115ec9 LAB_00115d99: JMP 0x00115d9b LAB_00115d9b: MOV RDI,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x001147e0 MOV qword ptr [RSP + 0x50],RAX CMP qword ptr [RSP + 0x50],0x0 JNZ 0x00115dda MOV dword ptr [RSP + 0x88],0x0 MOV qword ptr [RSP + 0x90],0x6 JMP 0x00115ec9 LAB_00115dda: MOV RDI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x50] LEA RSI,[RSP + 0x28] CALL 0x0010fed0 MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x50] CALL 0x00129e50 CMP qword ptr [RSP + 0x58],0x0 JNZ 0x00115e26 MOV dword ptr [RSP + 0x88],0x0 MOV qword ptr [RSP + 0x90],0x2 JMP 0x00115ec9 LAB_00115e26: CMP dword ptr [RSP + 0x24],0x0 JZ 0x00115e70 MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x28] LEA RCX,[0x116840] XOR EAX,EAX MOV R8D,EAX XOR R9D,R9D CALL 0x00158c30 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x18],RDX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x48],RAX JMP 0x00115eaf LAB_00115e70: MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x28] CALL 0x00128270 MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x58] CALL 0x00121db0 LAB_00115eaf: MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x88],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x90],RAX LAB_00115ec9: MOV RAX,qword ptr [RSP + 0x88] MOV RDX,qword ptr [RSP + 0x90] ADD RSP,0x98 RET
int1 [16] js_std_loadFile(int8 param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5) { int1 auVar1 [16]; int iVar2; int local_74; int8 local_70; int8 local_68; int8 local_60; int1 local_58 [16]; long local_48; long local_40; int8 *local_38; int local_2c; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_74 = 0; local_38 = param_5; local_2c = param_4; local_28 = param_1; local_20 = param_2; local_18 = param_3; if (1 < param_4) { local_68 = param_5[2]; local_60 = param_5[3]; iVar2 = get_bool_option(param_1,&local_74,local_68,local_60,"binary"); if (iVar2 != 0) { local_10 = 0; local_8 = 6; goto LAB_00115ec9; } } local_48 = JS_ToCString(local_28,*local_38,local_38[1]); if (local_48 == 0) { local_10 = 0; local_8 = 6; } else { local_40 = js_load_file(local_28,&local_70,local_48); JS_FreeCString(local_28,local_48); if (local_40 == 0) { local_10 = 0; local_8 = 2; } else { if (local_74 == 0) { local_58 = JS_NewStringLen(local_28,local_40,local_70); js_free(local_28,local_40); } else { local_58 = JS_NewUint8Array(local_28,local_40,local_70,free_buf,0,0); } local_10 = local_58._0_4_; uStack_c = local_58._4_4_; local_8 = local_58._8_8_; } } LAB_00115ec9: auVar1._4_4_ = uStack_c; auVar1._0_4_ = local_10; auVar1._8_8_ = local_8; return auVar1; }
21,126
js_std_loadFile
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_std_loadFile(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { uint8_t *buf; const char *filename; JSValue ret, options_obj; size_t buf_len; BOOL binary = FALSE; if (argc >= 2) { options_obj = argv[1]; if (get_bool_option(ctx, &binary, options_obj, "binary")) return JS_EXCEPTION; } filename = JS_ToCString(ctx, argv[0]); if (!filename) return JS_EXCEPTION; buf = js_load_file(ctx, &buf_len, filename); JS_FreeCString(ctx, filename); if (!buf) return JS_NULL; if (binary) { ret = JS_NewUint8Array(ctx, buf, buf_len, free_buf, NULL, FALSE); } else { ret = JS_NewStringLen(ctx, (char *)buf, buf_len); js_free(ctx, buf); } return ret; }
O2
c
js_std_loadFile: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r8, %r15 andl $0x0, 0xc(%rsp) movq %rdi, %r14 pushq $0x6 popq %rbx cmpl $0x2, %ecx jl 0x125b5 movq 0x10(%r15), %rdx movq 0x18(%r15), %rcx leaq 0x706b6(%rip), %r8 # 0x82c5a leaq 0xc(%rsp), %rsi movq %r14, %rdi callq 0x12a3d testl %eax, %eax jne 0x1261e movq (%r15), %rsi movq 0x8(%r15), %rdx movq %r14, %rdi callq 0x11a6c testq %rax, %rax je 0x1261e movq %rax, %r12 leaq 0x10(%rsp), %rsi movq %r14, %rdi movq %rax, %rdx callq 0xf70c movq %rax, %r15 movq %r14, %rdi movq %r12, %rsi callq 0x1b057 testq %r15, %r15 je 0x1261b cmpl $0x0, 0xc(%rsp) movq 0x10(%rsp), %rdx je 0x12624 leaq 0x513(%rip), %rcx # 0x12b15 movq %r14, %rdi movq %r15, %rsi xorl %r8d, %r8d xorl %r9d, %r9d callq 0x32922 movq %rax, %r12 movq %rdx, %rbx jmp 0x12640 pushq $0x2 popq %rbx xorl %eax, %eax xorl %ecx, %ecx jmp 0x12650 movq %r14, %rdi movq %r15, %rsi callq 0x1a2ea movq %rax, %r12 movq %rdx, %rbx movq %r14, %rdi movq %r15, %rsi callq 0x1726e movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %r12, %rcx movl %r12d, %eax orq %rcx, %rax movq %rbx, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
js_std_loadFile: push r15 push r14 push r12 push rbx sub rsp, 18h mov r15, r8 and [rsp+38h+var_2C], 0 mov r14, rdi push 6 pop rbx cmp ecx, 2 jl short loc_125B5 mov rdx, [r15+10h] mov rcx, [r15+18h] lea r8, aBinary; "binary" lea rsi, [rsp+38h+var_2C] mov rdi, r14 call get_bool_option test eax, eax jnz short loc_1261E loc_125B5: mov rsi, [r15] mov rdx, [r15+8] mov rdi, r14 call JS_ToCString test rax, rax jz short loc_1261E mov r12, rax lea rsi, [rsp+38h+var_28] mov rdi, r14 mov rdx, rax call js_load_file mov r15, rax mov rdi, r14 mov rsi, r12 call JS_FreeCString test r15, r15 jz short loc_1261B cmp [rsp+38h+var_2C], 0 mov rdx, [rsp+38h+var_28] jz short loc_12624 lea rcx, free_buf mov rdi, r14 mov rsi, r15 xor r8d, r8d xor r9d, r9d call JS_NewUint8Array mov r12, rax mov rbx, rdx jmp short loc_12640 loc_1261B: push 2 pop rbx loc_1261E: xor eax, eax xor ecx, ecx jmp short loc_12650 loc_12624: mov rdi, r14 mov rsi, r15 call JS_NewStringLen mov r12, rax mov rbx, rdx mov rdi, r14 mov rsi, r15 call js_free loc_12640: mov rcx, 0FFFFFFFF00000000h and rcx, r12 mov eax, r12d loc_12650: or rax, rcx mov rdx, rbx add rsp, 18h pop rbx pop r12 pop r14 pop r15 retn
unsigned long long js_std_loadFile(long long a1, long long a2, long long a3, int a4, long long *a5) { long long v6; // rax long long v7; // r12 long long file; // r15 long long v9; // r12 long long v10; // rax unsigned long long v11; // rcx int v13; // [rsp+Ch] [rbp-2Ch] BYREF long long v14[5]; // [rsp+10h] [rbp-28h] BYREF v13 = 0; if ( (a4 < 2 || !(unsigned int)get_bool_option(a1, &v13, a5[2], a5[3], "binary")) && (v6 = JS_ToCString(a1, *a5, a5[1])) != 0 && (v7 = v6, file = js_load_file(a1, v14, v6), JS_FreeCString(a1, v7), file) ) { if ( v13 ) { v9 = JS_NewUint8Array(a1, file, v14[0], free_buf, 0LL, 0LL); } else { v9 = JS_NewStringLen(a1, file, v14[0]); js_free(a1, file); } v11 = v9 & 0xFFFFFFFF00000000LL; v10 = (unsigned int)v9; } else { v10 = 0LL; v11 = 0LL; } return v11 | v10; }
js_std_loadFile: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,R8 AND dword ptr [RSP + 0xc],0x0 MOV R14,RDI PUSH 0x6 POP RBX CMP ECX,0x2 JL 0x001125b5 MOV RDX,qword ptr [R15 + 0x10] MOV RCX,qword ptr [R15 + 0x18] LEA R8,[0x182c5a] LEA RSI,[RSP + 0xc] MOV RDI,R14 CALL 0x00112a3d TEST EAX,EAX JNZ 0x0011261e LAB_001125b5: MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,R14 CALL 0x00111a6c TEST RAX,RAX JZ 0x0011261e MOV R12,RAX LEA RSI,[RSP + 0x10] MOV RDI,R14 MOV RDX,RAX CALL 0x0010f70c MOV R15,RAX MOV RDI,R14 MOV RSI,R12 CALL 0x0011b057 TEST R15,R15 JZ 0x0011261b CMP dword ptr [RSP + 0xc],0x0 MOV RDX,qword ptr [RSP + 0x10] JZ 0x00112624 LEA RCX,[0x112b15] MOV RDI,R14 MOV RSI,R15 XOR R8D,R8D XOR R9D,R9D CALL 0x00132922 MOV R12,RAX MOV RBX,RDX JMP 0x00112640 LAB_0011261b: PUSH 0x2 POP RBX LAB_0011261e: XOR EAX,EAX XOR ECX,ECX JMP 0x00112650 LAB_00112624: MOV RDI,R14 MOV RSI,R15 CALL 0x0011a2ea MOV R12,RAX MOV RBX,RDX MOV RDI,R14 MOV RSI,R15 CALL 0x0011726e LAB_00112640: MOV RCX,-0x100000000 AND RCX,R12 MOV EAX,R12D LAB_00112650: OR RAX,RCX MOV RDX,RBX ADD RSP,0x18 POP RBX POP R12 POP R14 POP R15 RET
int1 [16] js_std_loadFile(int8 param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5) { int iVar1; long lVar2; long lVar3; ulong uVar4; ulong uVar5; int8 uVar6; int1 auVar7 [16]; int local_2c; int8 local_28; local_2c = 0; uVar6 = 6; if (param_4 < 2) { LAB_001125b5: lVar2 = JS_ToCString(param_1,*param_5,param_5[1]); if (lVar2 != 0) { lVar3 = js_load_file(param_1,&local_28,lVar2); JS_FreeCString(param_1,lVar2); if (lVar3 != 0) { if (local_2c == 0) { auVar7 = JS_NewStringLen(param_1,lVar3,local_28); js_free(param_1,lVar3); } else { auVar7 = JS_NewUint8Array(param_1,lVar3,local_28,free_buf,0,0); } uVar6 = auVar7._8_8_; uVar5 = auVar7._0_8_ & 0xffffffff00000000; uVar4 = auVar7._0_8_ & 0xffffffff; goto LAB_00112650; } uVar6 = 2; } } else { iVar1 = get_bool_option(param_1,&local_2c,param_5[2],param_5[3],"binary"); if (iVar1 == 0) goto LAB_001125b5; } uVar4 = 0; uVar5 = 0; LAB_00112650: auVar7._0_8_ = uVar4 | uVar5; auVar7._8_8_ = uVar6; return auVar7; }
21,127
my_rw_init
eloqsql/mysys/thr_rwlock.c
int my_rw_init(my_rw_lock_t *rwp) { pthread_condattr_t cond_attr; pthread_mutex_init( &rwp->lock, MY_MUTEX_INIT_FAST); pthread_condattr_init( &cond_attr ); pthread_cond_init( &rwp->readers, &cond_attr ); pthread_cond_init( &rwp->writers, &cond_attr ); pthread_condattr_destroy(&cond_attr); rwp->state = 0; rwp->waiters = 0; #ifdef SAFE_MUTEX rwp->write_thread = 0; #endif return(0); }
O3
c
my_rw_init: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx leaq 0x33e4e3(%rip), %rsi # 0x3658a8 callq 0x24430 leaq -0x14(%rbp), %r14 movq %r14, %rdi callq 0x24080 leaq 0x28(%rbx), %rdi movq %r14, %rsi callq 0x24350 leaq 0x58(%rbx), %rdi movq %r14, %rsi callq 0x24350 movq %r14, %rdi callq 0x24150 movq $0x0, 0x88(%rbx) xorl %eax, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq
my_rw_init: push rbp mov rbp, rsp push r14 push rbx sub rsp, 10h mov rbx, rdi lea rsi, my_fast_mutexattr call _pthread_mutex_init lea r14, [rbp+var_14] mov rdi, r14 call _pthread_condattr_init lea rdi, [rbx+28h] mov rsi, r14 call _pthread_cond_init lea rdi, [rbx+58h] mov rsi, r14 call _pthread_cond_init mov rdi, r14 call _pthread_condattr_destroy mov qword ptr [rbx+88h], 0 xor eax, eax add rsp, 10h pop rbx pop r14 pop rbp retn
long long my_rw_init(long long a1) { _BYTE v2[20]; // [rsp+Ch] [rbp-14h] BYREF pthread_mutex_init(a1, &my_fast_mutexattr); pthread_condattr_init(v2); pthread_cond_init(a1 + 40, v2); pthread_cond_init(a1 + 88, v2); pthread_condattr_destroy(v2); *(_QWORD *)(a1 + 136) = 0LL; return 0LL; }
my_rw_init: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RDI LEA RSI,[0x4658a8] CALL 0x00124430 LEA R14,[RBP + -0x14] MOV RDI,R14 CALL 0x00124080 LEA RDI,[RBX + 0x28] MOV RSI,R14 CALL 0x00124350 LEA RDI,[RBX + 0x58] MOV RSI,R14 CALL 0x00124350 MOV RDI,R14 CALL 0x00124150 MOV qword ptr [RBX + 0x88],0x0 XOR EAX,EAX ADD RSP,0x10 POP RBX POP R14 POP RBP RET
int8 my_rw_init(pthread_mutex_t *param_1) { pthread_condattr_t local_1c; pthread_mutex_init(param_1,(pthread_mutexattr_t *)&my_fast_mutexattr); pthread_condattr_init(&local_1c); pthread_cond_init((pthread_cond_t *)(param_1 + 1),&local_1c); pthread_cond_init((pthread_cond_t *)((long)param_1 + 0x58),&local_1c); pthread_condattr_destroy(&local_1c); *(int8 *)((long)param_1 + 0x88) = 0; return 0; }
21,128
my_caseup_str_utf8mb3
eloqsql/strings/ctype-utf8.c
static size_t my_caseup_str_utf8mb3(CHARSET_INFO *cs, char *src) { my_wc_t wc; int srcres, dstres; char *dst= src, *dst0= src; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(cs->caseup_multiply == 1); while (*src && (srcres= my_utf8mb3_uni_no_range(cs, &wc, (uchar *) src)) > 0) { my_toupper_utf8mb3(uni_plane, &wc); if ((dstres= my_uni_utf8mb3_no_range(cs, wc, (uchar*) dst)) <= 0) break; src+= srcres; dst+= dstres; } *dst= '\0'; return (size_t) (dst - dst0); }
O3
c
my_caseup_str_utf8mb3: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx cmpb $0x0, (%rsi) movq %rsi, %r14 je 0x528af movq 0x78(%rdi), %r13 leaq -0x30(%rbp), %r15 movq %rbx, %r12 movq %rbx, %r14 movq %r15, %rdi movq %r12, %rsi callq 0x53188 testl %eax, %eax je 0x528af movq 0x8(%r13), %rdx movq -0x30(%rbp), %rcx movzbl %ch, %esi movq (%rdx,%rsi,8), %rdx testq %rdx, %rdx je 0x5283e movzbl %cl, %ecx leaq (%rcx,%rcx,2), %rcx movl (%rdx,%rcx,4), %ecx movq %rcx, -0x30(%rbp) movl $0x1, %edx cmpq $0x80, %rcx jb 0x52898 movl $0x2, %edx cmpq $0x800, %rcx # imm = 0x800 jb 0x5287f cmpq $0xffff, %rcx # imm = 0xFFFF ja 0x528af movl %ecx, %edx andb $0x3f, %dl orb $-0x80, %dl movb %dl, 0x2(%r14) shrq $0x6, %rcx orq $0x800, %rcx # imm = 0x800 movl $0x3, %edx movl %ecx, %esi andb $0x3f, %sil orb $-0x80, %sil movb %sil, 0x1(%r14) shrq $0x6, %rcx orq $0xc0, %rcx movb %cl, (%r14) movl %eax, %eax addq %rdx, %r14 cmpb $0x0, (%r12,%rax) leaq (%r12,%rax), %r12 jne 0x52809 movb $0x0, (%r14) subq %rbx, %r14 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_caseup_str_utf8mb3: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi cmp byte ptr [rsi], 0 mov r14, rsi jz loc_528AF mov r13, [rdi+78h] lea r15, [rbp+var_30] mov r12, rbx mov r14, rbx loc_52809: mov rdi, r15 mov rsi, r12 call my_utf8mb3_uni_no_range test eax, eax jz loc_528AF mov rdx, [r13+8] mov rcx, [rbp+var_30] movzx esi, ch mov rdx, [rdx+rsi*8] test rdx, rdx jz short loc_5283E movzx ecx, cl lea rcx, [rcx+rcx*2] mov ecx, [rdx+rcx*4] mov [rbp+var_30], rcx loc_5283E: mov edx, 1 cmp rcx, 80h jb short loc_52898 mov edx, 2 cmp rcx, 800h jb short loc_5287F cmp rcx, 0FFFFh ja short loc_528AF mov edx, ecx and dl, 3Fh or dl, 80h mov [r14+2], dl shr rcx, 6 or rcx, 800h mov edx, 3 loc_5287F: mov esi, ecx and sil, 3Fh or sil, 80h mov [r14+1], sil shr rcx, 6 or rcx, 0C0h loc_52898: mov [r14], cl mov eax, eax add r14, rdx cmp byte ptr [r12+rax], 0 lea r12, [r12+rax] jnz loc_52809 loc_528AF: mov byte ptr [r14], 0 sub r14, rbx mov rax, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_caseup_str_utf8mb3(long long a1, _BYTE *a2) { unsigned long long v2; // rax _BYTE *v3; // r14 long long v4; // r13 _BYTE *v5; // r12 unsigned int v6; // eax unsigned long long v7; // rcx long long v8; // rdx long long v9; // rdx bool v10; // zf unsigned long long v12; // [rsp+0h] [rbp-30h] BYREF v12 = v2; v3 = a2; if ( *a2 ) { v4 = *(_QWORD *)(a1 + 120); v5 = a2; v3 = a2; do { v6 = my_utf8mb3_uni_no_range(&v12, v5); if ( !v6 ) break; v7 = v12; v8 = *(_QWORD *)(*(_QWORD *)(v4 + 8) + 8LL * BYTE1(v12)); if ( v8 ) { v7 = *(unsigned int *)(v8 + 12LL * (unsigned __int8)v12); v12 = v7; } v9 = 1LL; if ( v7 >= 0x80 ) { v9 = 2LL; if ( v7 >= 0x800 ) { if ( v7 > 0xFFFF ) break; v3[2] = v7 & 0x3F | 0x80; v7 = (v7 >> 6) | 0x800; v9 = 3LL; } v3[1] = v7 & 0x3F | 0x80; v7 = (v7 >> 6) | 0xC0; } *v3 = v7; v3 += v9; v10 = v5[v6] == 0; v5 += v6; } while ( !v10 ); } *v3 = 0; return v3 - a2; }
my_caseup_str_utf8mb3: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI CMP byte ptr [RSI],0x0 MOV R14,RSI JZ 0x001528af MOV R13,qword ptr [RDI + 0x78] LEA R15,[RBP + -0x30] MOV R12,RBX MOV R14,RBX LAB_00152809: MOV RDI,R15 MOV RSI,R12 CALL 0x00153188 TEST EAX,EAX JZ 0x001528af MOV RDX,qword ptr [R13 + 0x8] MOV RCX,qword ptr [RBP + -0x30] MOVZX ESI,CH MOV RDX,qword ptr [RDX + RSI*0x8] TEST RDX,RDX JZ 0x0015283e MOVZX ECX,CL LEA RCX,[RCX + RCX*0x2] MOV ECX,dword ptr [RDX + RCX*0x4] MOV qword ptr [RBP + -0x30],RCX LAB_0015283e: MOV EDX,0x1 CMP RCX,0x80 JC 0x00152898 MOV EDX,0x2 CMP RCX,0x800 JC 0x0015287f CMP RCX,0xffff JA 0x001528af MOV EDX,ECX AND DL,0x3f OR DL,0x80 MOV byte ptr [R14 + 0x2],DL SHR RCX,0x6 OR RCX,0x800 MOV EDX,0x3 LAB_0015287f: MOV ESI,ECX AND SIL,0x3f OR SIL,0x80 MOV byte ptr [R14 + 0x1],SIL SHR RCX,0x6 OR RCX,0xc0 LAB_00152898: MOV byte ptr [R14],CL MOV EAX,EAX ADD R14,RDX CMP byte ptr [R12 + RAX*0x1],0x0 LEA R12,[R12 + RAX*0x1] JNZ 0x00152809 LAB_001528af: MOV byte ptr [R14],0x0 SUB R14,RBX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_caseup_str_utf8mb3(long param_1,char *param_2) { char *pcVar1; long lVar2; uint uVar3; ulong in_RAX; ulong uVar4; long lVar5; char *pcVar6; char *pcVar7; ulong local_38; pcVar7 = param_2; if (*param_2 != '\0') { lVar2 = *(long *)(param_1 + 0x78); pcVar6 = param_2; local_38 = in_RAX; do { uVar3 = my_utf8mb3_uni_no_range(&local_38,pcVar6); if (uVar3 == 0) break; lVar5 = *(long *)(*(long *)(lVar2 + 8) + (local_38 >> 8 & 0xff) * 8); if (lVar5 != 0) { local_38 = (ulong)*(uint *)(lVar5 + (local_38 & 0xff) * 0xc); } lVar5 = 1; uVar4 = local_38; if (0x7f < local_38) { lVar5 = 2; if (0x7ff < local_38) { if (0xffff < local_38) break; pcVar7[2] = (byte)local_38 & 0x3f | 0x80; uVar4 = local_38 >> 6 | 0x800; lVar5 = 3; } pcVar7[1] = (byte)uVar4 & 0x3f | 0x80; uVar4 = uVar4 >> 6 | 0xc0; } *pcVar7 = (char)uVar4; pcVar7 = pcVar7 + lVar5; pcVar1 = pcVar6 + uVar3; pcVar6 = pcVar6 + uVar3; } while (*pcVar1 != '\0'); } *pcVar7 = '\0'; return (long)pcVar7 - (long)param_2; }
21,129
bf_get_float64
bluesky950520[P]quickjs/libbf.c
int bf_get_float64(const bf_t *a, double *pres, bf_rnd_t rnd_mode) { Float64Union u; int e, ret; uint64_t m; ret = 0; if (a->expn == BF_EXP_NAN) { u.u = 0x7ff8000000000000; /* quiet nan */ } else { bf_t b_s, *b = &b_s; bf_init(a->ctx, b); bf_set(b, a); if (bf_is_finite(b)) { ret = bf_round(b, 53, rnd_mode | BF_FLAG_SUBNORMAL | bf_set_exp_bits(11)); } if (b->expn == BF_EXP_INF) { e = (1 << 11) - 1; m = 0; } else if (b->expn == BF_EXP_ZERO) { e = 0; m = 0; } else { e = b->expn + 1023 - 1; #if LIMB_BITS == 32 if (b->len == 2) { m = ((uint64_t)b->tab[1] << 32) | b->tab[0]; } else { m = ((uint64_t)b->tab[0] << 32); } #else m = b->tab[0]; #endif if (e <= 0) { /* subnormal */ m = m >> (12 - e); e = 0; } else { m = (m << 1) >> 12; } } u.u = m | ((uint64_t)e << 52) | ((uint64_t)b->sign << 63); bf_delete(b); } *pres = u.d; return ret; }
O3
c
bf_get_float64: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp movq %rsi, %rbx movabsq $0x7ffffffffffffffd, %r12 # imm = 0x7FFFFFFFFFFFFFFD leaq 0x2(%r12), %rax cmpq %rax, 0x10(%rdi) jne 0x8b0be movabsq $0x7ff8000000000000, %r14 # imm = 0x7FF8000000000000 xorl %ebp, %ebp jmp 0x8b1b4 movl %edx, %r14d movq %rdi, %rsi movq (%rdi), %rax leaq 0x8(%rsp), %r15 movq %rax, (%r15) movl $0x0, 0x8(%r15) leaq 0x3(%r12), %rax movq %rax, 0x10(%r15) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%r15) movq %r15, %rdi callq 0x876d6 movq 0x10(%r15), %rax xorl %ebp, %ebp cmpq %r12, %rax jg 0x8b12a movq 0x20(%rsp), %rcx testq %rcx, %rcx je 0x8b12a orl $0x648, %r14d # imm = 0x648 leaq 0x8(%rsp), %r15 movl $0x35, %esi movq %r15, %rdi movl %r14d, %edx xorl %r8d, %r8d callq 0x8787f movl %eax, %ebp movq 0x10(%r15), %rax movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE cmpq %rcx, %rax je 0x8b146 movq %rax, %rcx negq %rcx jno 0x8b154 xorl %r14d, %r14d jmp 0x8b150 movabsq $0x7ff0000000000000, %r14 # imm = 0x7FF0000000000000 xorl %edx, %edx jmp 0x8b189 leal 0x3fe(%rax), %r14d movq 0x28(%rsp), %rcx movq (%rcx), %rdx testl %r14d, %r14d jle 0x8b17f shrq $0xb, %rdx movabsq $0xfffffffffffff, %rax # imm = 0xFFFFFFFFFFFFF andq %rax, %rdx shlq $0x34, %r14 jmp 0x8b189 movb $0xe, %cl subb %al, %cl shrq %cl, %rdx xorl %r14d, %r14d orq %rdx, %r14 movl 0x10(%rsp), %r15d shlq $0x3f, %r15 movq 0x8(%rsp), %rax testq %rax, %rax je 0x8b1b1 movq 0x28(%rsp), %rsi testq %rsi, %rsi je 0x8b1b1 movq (%rax), %rdi xorl %edx, %edx callq *0x8(%rax) orq %r15, %r14 movq %r14, (%rbx) movl %ebp, %eax addq $0x30, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
bf_get_float64: push rbp push r15 push r14 push r12 push rbx sub rsp, 30h mov rbx, rsi mov r12, 7FFFFFFFFFFFFFFDh lea rax, [r12+2] cmp [rdi+10h], rax jnz short loc_8B0BE mov r14, 7FF8000000000000h xor ebp, ebp jmp loc_8B1B4 loc_8B0BE: mov r14d, edx mov rsi, rdi mov rax, [rdi] lea r15, [rsp+58h+var_50] mov [r15], rax mov dword ptr [r15+8], 0 lea rax, [r12+3] mov [r15+10h], rax xorps xmm0, xmm0 movups xmmword ptr [r15+18h], xmm0 mov rdi, r15 call bf_set mov rax, [r15+10h] xor ebp, ebp cmp rax, r12 jg short loc_8B12A mov rcx, [rsp+58h+var_38] test rcx, rcx jz short loc_8B12A or r14d, 648h lea r15, [rsp+58h+var_50] mov esi, 35h ; '5' mov rdi, r15 mov edx, r14d xor r8d, r8d call __bf_round mov ebp, eax mov rax, [r15+10h] loc_8B12A: mov rcx, 7FFFFFFFFFFFFFFEh cmp rax, rcx jz short loc_8B146 mov rcx, rax neg rcx jno short loc_8B154 xor r14d, r14d jmp short loc_8B150 loc_8B146: mov r14, 7FF0000000000000h loc_8B150: xor edx, edx jmp short loc_8B189 loc_8B154: lea r14d, [rax+3FEh] mov rcx, [rsp+58h+var_30] mov rdx, [rcx] test r14d, r14d jle short loc_8B17F shr rdx, 0Bh mov rax, 0FFFFFFFFFFFFFh and rdx, rax shl r14, 34h jmp short loc_8B189 loc_8B17F: mov cl, 0Eh sub cl, al shr rdx, cl xor r14d, r14d loc_8B189: or r14, rdx mov r15d, [rsp+58h+var_48] shl r15, 3Fh mov rax, [rsp+58h+var_50] test rax, rax jz short loc_8B1B1 mov rsi, [rsp+58h+var_30] test rsi, rsi jz short loc_8B1B1 mov rdi, [rax] xor edx, edx call qword ptr [rax+8] loc_8B1B1: or r14, r15 loc_8B1B4: mov [rbx], r14 mov eax, ebp add rsp, 30h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long bf_get_float64(long long a1, long long *a2, int a3) { long long v3; // r14 unsigned int v4; // ebp long long v6; // rax long long v7; // rcx long long v8; // r14 unsigned long long v9; // rdx long long v10; // r14 unsigned long long v11; // rdx long long v12; // r14 unsigned long long v13; // r15 _QWORD *v15; // [rsp+8h] [rbp-50h] BYREF unsigned int v16; // [rsp+10h] [rbp-48h] long long v17; // [rsp+18h] [rbp-40h] __int128 v18; // [rsp+20h] [rbp-38h] if ( *(_QWORD *)(a1 + 16) == 0x7FFFFFFFFFFFFFFFLL ) { v3 = 0x7FF8000000000000LL; v4 = 0; goto LABEL_18; } v15 = *(_QWORD **)a1; v16 = 0; v17 = 0x8000000000000000LL; v18 = 0LL; bf_set(&v15, a1); v6 = v17; v4 = 0; if ( v17 <= 0x7FFFFFFFFFFFFFFDLL && (_QWORD)v18 ) { v4 = _bf_round(&v15, 53LL, a3 | 0x648u, v18, 0); v6 = v17; } v7 = 0x7FFFFFFFFFFFFFFELL; if ( v6 == 0x7FFFFFFFFFFFFFFELL ) { v8 = 0x7FF0000000000000LL; } else { v7 = -v6; if ( !__OFSUB__(-v6, 1LL) ) { v10 = (unsigned int)(v6 + 1022); v7 = *((_QWORD *)&v18 + 1); v11 = **((_QWORD **)&v18 + 1); if ( (int)v10 <= 0 ) { LOBYTE(v7) = 14 - v6; v9 = v11 >> (14 - (unsigned __int8)v6); v8 = 0LL; } else { v9 = (v11 >> 11) & 0xFFFFFFFFFFFFFLL; v8 = v10 << 52; } goto LABEL_14; } v8 = 0LL; } v9 = 0LL; LABEL_14: v12 = v9 | v8; v13 = (unsigned long long)v16 << 63; if ( v15 && *((_QWORD *)&v18 + 1) ) ((void ( *)(_QWORD, _QWORD, _QWORD, long long))v15[1])(*v15, *((_QWORD *)&v18 + 1), 0LL, v7); v3 = v13 | v12; LABEL_18: *a2 = v3; return v4; }
bf_get_float64: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x30 MOV RBX,RSI MOV R12,0x7ffffffffffffffd LEA RAX,[R12 + 0x2] CMP qword ptr [RDI + 0x10],RAX JNZ 0x0018b0be MOV R14,0x7ff8000000000000 XOR EBP,EBP JMP 0x0018b1b4 LAB_0018b0be: MOV R14D,EDX MOV RSI,RDI MOV RAX,qword ptr [RDI] LEA R15,[RSP + 0x8] MOV qword ptr [R15],RAX MOV dword ptr [R15 + 0x8],0x0 LEA RAX,[R12 + 0x3] MOV qword ptr [R15 + 0x10],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + 0x18],XMM0 MOV RDI,R15 CALL 0x001876d6 MOV RAX,qword ptr [R15 + 0x10] XOR EBP,EBP CMP RAX,R12 JG 0x0018b12a MOV RCX,qword ptr [RSP + 0x20] TEST RCX,RCX JZ 0x0018b12a OR R14D,0x648 LEA R15,[RSP + 0x8] MOV ESI,0x35 MOV RDI,R15 MOV EDX,R14D XOR R8D,R8D CALL 0x0018787f MOV EBP,EAX MOV RAX,qword ptr [R15 + 0x10] LAB_0018b12a: MOV RCX,0x7ffffffffffffffe CMP RAX,RCX JZ 0x0018b146 MOV RCX,RAX NEG RCX JNO 0x0018b154 XOR R14D,R14D JMP 0x0018b150 LAB_0018b146: MOV R14,0x7ff0000000000000 LAB_0018b150: XOR EDX,EDX JMP 0x0018b189 LAB_0018b154: LEA R14D,[RAX + 0x3fe] MOV RCX,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RCX] TEST R14D,R14D JLE 0x0018b17f SHR RDX,0xb MOV RAX,0xfffffffffffff AND RDX,RAX SHL R14,0x34 JMP 0x0018b189 LAB_0018b17f: MOV CL,0xe SUB CL,AL SHR RDX,CL XOR R14D,R14D LAB_0018b189: OR R14,RDX MOV R15D,dword ptr [RSP + 0x10] SHL R15,0x3f MOV RAX,qword ptr [RSP + 0x8] TEST RAX,RAX JZ 0x0018b1b1 MOV RSI,qword ptr [RSP + 0x28] TEST RSI,RSI JZ 0x0018b1b1 MOV RDI,qword ptr [RAX] XOR EDX,EDX CALL qword ptr [RAX + 0x8] LAB_0018b1b1: OR R14,R15 LAB_0018b1b4: MOV qword ptr [RBX],R14 MOV EAX,EBP ADD RSP,0x30 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x0018b141) */ int4 bf_get_float64(int8 *param_1,ulong *param_2,uint param_3) { int4 uVar1; byte bVar2; uint uVar4; ulong uVar5; ulong uVar6; ulong uVar7; int8 *local_50; uint local_48; long local_40; long local_38; ulong *puStack_30; ulong *puVar3; if (param_1[2] == 0x7fffffffffffffff) { uVar5 = 0x7ff8000000000000; uVar1 = 0; } else { local_50 = (int8 *)*param_1; local_48 = 0; local_40 = -0x8000000000000000; local_38 = 0; puStack_30 = (ulong *)0x0; bf_set(&local_50,param_1); uVar1 = 0; if ((local_40 < 0x7ffffffffffffffe) && (local_38 != 0)) { uVar1 = __bf_round(&local_50,0x35,param_3 | 0x648,local_38,0); } if (local_40 == 0x7ffffffffffffffe) { uVar6 = 0x7ff0000000000000; uVar5 = 0; puVar3 = (ulong *)0x7ffffffffffffffe; } else { uVar4 = (int)local_40 + 0x3fe; if ((int)uVar4 < 1) { bVar2 = 0xe - (char)local_40; puVar3 = (ulong *)(ulong)bVar2; uVar5 = *puStack_30 >> (bVar2 & 0x3f); uVar6 = 0; } else { uVar5 = *puStack_30 >> 0xb & 0xfffffffffffff; uVar6 = (ulong)uVar4 << 0x34; puVar3 = puStack_30; } } uVar7 = (ulong)local_48; if ((local_50 != (int8 *)0x0) && (puStack_30 != (ulong *)0x0)) { (*(code *)local_50[1])(*local_50,puStack_30,0,puVar3); } uVar5 = uVar6 | uVar5 | uVar7 << 0x3f; } *param_2 = uVar5; return uVar1; }
21,130
my_strnncoll_czech
eloqsql/strings/ctype-czech.c
static int my_strnncoll_czech(CHARSET_INFO *cs __attribute__((unused)), const uchar *s1, size_t len1, const uchar *s2, size_t len2, my_bool s2_is_prefix) { int v1, v2; const uchar *p1, * p2, * store1, * store2; int pass1 = 0, pass2 = 0; if (s2_is_prefix && len1 > len2) len1=len2; p1 = s1; p2 = s2; store1 = s1; store2 = s2; do { int diff; NEXT_CMP_VALUE(s1, p1, store1, pass1, v1, (int)len1); NEXT_CMP_VALUE(s2, p2, store2, pass2, v2, (int)len2); if ((diff = v1 - v2)) return diff; } while (v1); return 0; }
O3
c
my_strnncoll_czech: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rcx, %r12 movq %rsi, %r14 cmpq %r8, %rdx movslq %r8d, %rdi cmovbq %rdx, %r8 testb %r9b, %r9b cmoveq %rdx, %r8 movslq %r8d, %rdx movl $0x1, %ecx movl $0x1, %esi subq %r14, %rsi movq %rsi, -0x68(%rbp) subq %r12, %rcx movq %rcx, -0x70(%rbp) xorl %r15d, %r15d movq %r12, %rcx movq %r14, %r13 movq %r12, -0x58(%rbp) movq $0x0, -0x30(%rbp) movq %r14, %rsi movq %r12, -0x50(%rbp) movq %r13, -0x38(%rbp) movq %rsi, %r9 subq %r14, %r9 cmpq %rdx, %r9 jge 0x43c46 movslq %r15d, %rax leaq 0x2d7a24(%rip), %r8 # 0x31b5f0 movq (%r8,%rax,8), %r9 movzbl (%rsi), %r10d movzbl (%r9,%r10), %r10d testl %r10d, %r10d je 0x43c14 cmpl $0x2, %r10d jne 0x43c83 incq %rsi movq %rsi, %r10 subq %r14, %r10 movq %rsi, %rbx cmpq %rdx, %r10 jge 0x43c22 movzbl (%rbx), %r11d cmpb $0x2, (%r9,%r11) jne 0x43c22 incq %rbx incq %r10 movq %rbx, %r11 cmpq %rdx, %r10 jl 0x43bf9 jmp 0x43c25 incq %rsi movq %rsi, %r10 subq %r14, %r10 movq %rsi, %rbx jmp 0x43c3f movq %rsi, %r11 cmpl $0x3, %r15d cmovgeq %r11, %rbx movq %rbx, %r10 subq %r14, %r10 cmpq %rdx, %r10 jl 0x43d0b movq %rbx, %rsi cmpq %rdx, %r10 jl 0x43bd0 jmp 0x43c49 movq %rsi, %rbx cmpl $0x3, %r15d jne 0x43c60 xorl %eax, %eax movl $0x3, %r15d movq -0x38(%rbp), %r13 movq %rbx, %rsi jmp 0x43c7a testl %r15d, %r15d movq %r14, %rsi movq -0x38(%rbp), %r13 cmoveq %r13, %rsi leal 0x1(%r15), %r9d movl $0x1, %eax movl %r9d, %r15d movq -0x30(%rbp), %r11 jmp 0x43d66 cmpl $0xff, %r10d jne 0x43d05 movq %r15, -0x40(%rbp) movq %rsi, %r9 subq %r14, %r9 movq -0x68(%rbp), %r8 addq %rsi, %r8 movq %r8, -0x60(%rbp) xorl %r10d, %r10d movq %r10, %r11 shlq $0x4, %r11 leaq 0x2d795e(%rip), %r8 # 0x31b610 movq (%r11,%r8), %rbx movb (%rbx), %r12b testb %r12b, %r12b je 0x43cef cmpq %rdx, %r9 jge 0x43cef incq %rbx movq -0x60(%rbp), %r15 movq %rsi, %r13 cmpb %r12b, (%r13) jne 0x43cf7 incq %r13 movb (%rbx), %r12b testb %r12b, %r12b je 0x43cf2 incq %rbx leaq 0x1(%r15), %r8 cmpq %rdx, %r15 movq %r8, %r15 jl 0x43ccd jmp 0x43cf2 movq %rsi, %r13 testb %r12b, %r12b je 0x43d37 incq %r10 cmpq $0x50, %r10 jne 0x43ca4 movb $-0x1, %r10b jmp 0x43d4f movq -0x30(%rbp), %r11 jmp 0x43d5b movl $0x2, %eax cmpl $0x1, %r15d movq -0x30(%rbp), %r11 jle 0x43d23 movq -0x38(%rbp), %r13 movq %rbx, %rsi jmp 0x43d66 movl $0x1, %esi subl %r15d, %esi movq %rbx, %r13 movl %esi, %r15d movq -0x38(%rbp), %rsi jmp 0x43d66 leaq 0x2d78d2(%rip), %rsi # 0x31b610 addq %rsi, %r11 movq 0x8(%r11), %rsi movb (%rsi,%rax), %r10b decq %r13 movq %r13, %rsi movq -0x40(%rbp), %r15 movq -0x30(%rbp), %r11 movq -0x50(%rbp), %r12 movq -0x38(%rbp), %r13 movzbl %r10b, %eax incq %rsi movq %rcx, %r8 subq %r12, %r8 cmpq %rdi, %r8 jge 0x43dfd movslq %r11d, %r9 leaq 0x2d7871(%rip), %r8 # 0x31b5f0 movq %r9, -0x60(%rbp) movq (%r8,%r9,8), %rbx movzbl (%rcx), %r8d movzbl (%rbx,%r8), %r8d testl %r8d, %r8d je 0x43dcb cmpl $0x2, %r8d jne 0x43e38 incq %rcx movq %rcx, %r8 subq %r12, %r8 movq %rcx, %r10 cmpq %rdi, %r8 jge 0x43dd9 movzbl (%r10), %r9d cmpb $0x2, (%rbx,%r9) jne 0x43dd9 incq %r10 incq %r8 movq %r10, %r9 cmpq %rdi, %r8 jl 0x43db0 jmp 0x43ddc incq %rcx movq %rcx, %r8 subq %r12, %r8 movq %rcx, %r10 jmp 0x43df6 movq %rcx, %r9 cmpl $0x3, %r11d cmovgeq %r9, %r10 movq %r10, %r8 subq %r12, %r8 cmpq %rdi, %r8 jl 0x43ed0 movq %r10, %rcx cmpq %rdi, %r8 jl 0x43d87 jmp 0x43e00 movq %rcx, %r10 cmpl $0x3, %r11d jne 0x43e1a xorl %r11d, %r11d movl $0x3, %ecx movq %rcx, -0x30(%rbp) movq %r10, %rcx jmp 0x43f29 testl %r11d, %r11d leal 0x1(%r11), %r8d movq %r12, %rcx cmoveq -0x58(%rbp), %rcx movl $0x1, %r11d movq %r8, -0x30(%rbp) jmp 0x43f29 cmpl $0xff, %r8d jne 0x43f22 movq %r13, -0x40(%rbp) movl %eax, -0x44(%rbp) movq %rcx, %rax subq %r12, %rax movq -0x70(%rbp), %r8 addq %rcx, %r8 movq %r8, -0x38(%rbp) xorl %r11d, %r11d movq %r15, %rbx movq %r11, %r8 shlq $0x4, %r8 leaq 0x2d779f(%rip), %r9 # 0x31b610 movq (%r8,%r9), %r13 movb (%r13), %r9b testb %r9b, %r9b je 0x43eb0 cmpq %rdi, %rax jge 0x43eb0 incq %r13 movq -0x38(%rbp), %r15 movq %rcx, %r12 cmpb %r9b, (%r12) jne 0x43eb8 incq %r12 movb (%r13), %r9b testb %r9b, %r9b je 0x43eb3 incq %r13 leaq 0x1(%r15), %r10 cmpq %rdi, %r15 movq %r10, %r15 jl 0x43e8d jmp 0x43eb3 movq %rcx, %r12 testb %r9b, %r9b je 0x43ef8 incq %r11 cmpq $0x50, %r11 movq -0x50(%rbp), %r12 jne 0x43e63 movq %rbx, %r15 movb $-0x1, %r8b movl -0x44(%rbp), %eax jmp 0x43f1e movq %r11, %rcx movl $0x2, %r11d cmpl $0x1, %ecx jg 0x43e12 movl $0x1, %r8d subl %ecx, %r8d movq -0x58(%rbp), %rcx movq %r10, -0x58(%rbp) jmp 0x43e2f leaq 0x2d7711(%rip), %rcx # 0x31b610 addq %rcx, %r8 movq 0x8(%r8), %rcx movq -0x60(%rbp), %r8 movb (%rcx,%r8), %r8b decq %r12 movq %r12, %rcx movq %rbx, %r15 movl -0x44(%rbp), %eax movq -0x50(%rbp), %r12 movq -0x40(%rbp), %r13 movzbl %r8b, %r11d incq %rcx testl %eax, %eax je 0x43f36 cmpl %r11d, %eax je 0x43baf subl %r11d, %eax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_strnncoll_czech: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx mov r12, rcx mov r14, rsi cmp rdx, r8 movsxd rdi, r8d cmovb r8, rdx test r9b, r9b cmovz r8, rdx movsxd rdx, r8d mov ecx, 1 mov esi, 1 sub rsi, r14 mov [rbp+var_68], rsi sub rcx, r12 mov [rbp+var_70], rcx xor r15d, r15d mov rcx, r12 mov r13, r14 mov [rbp+var_58], r12 mov [rbp+var_30], 0 mov rsi, r14 mov [rbp+var_50], r12 loc_43BAF: mov [rbp+var_38], r13 mov r9, rsi sub r9, r14 cmp r9, rdx jge loc_43C46 movsxd rax, r15d lea r8, CZ_SORT_TABLE mov r9, [r8+rax*8] loc_43BD0: movzx r10d, byte ptr [rsi] movzx r10d, byte ptr [r9+r10] test r10d, r10d jz short loc_43C14 cmp r10d, 2 jnz loc_43C83 inc rsi mov r10, rsi sub r10, r14 mov rbx, rsi cmp r10, rdx jge short loc_43C22 loc_43BF9: movzx r11d, byte ptr [rbx] cmp byte ptr [r9+r11], 2 jnz short loc_43C22 inc rbx inc r10 mov r11, rbx cmp r10, rdx jl short loc_43BF9 jmp short loc_43C25 loc_43C14: inc rsi mov r10, rsi sub r10, r14 mov rbx, rsi jmp short loc_43C3F loc_43C22: mov r11, rsi loc_43C25: cmp r15d, 3 cmovge rbx, r11 mov r10, rbx sub r10, r14 cmp r10, rdx jl loc_43D0B mov rsi, rbx loc_43C3F: cmp r10, rdx jl short loc_43BD0 jmp short loc_43C49 loc_43C46: mov rbx, rsi loc_43C49: cmp r15d, 3 jnz short loc_43C60 xor eax, eax mov r15d, 3 mov r13, [rbp+var_38] mov rsi, rbx jmp short loc_43C7A loc_43C60: test r15d, r15d mov rsi, r14 mov r13, [rbp+var_38] cmovz rsi, r13 lea r9d, [r15+1] mov eax, 1 mov r15d, r9d loc_43C7A: mov r11, [rbp+var_30] jmp loc_43D66 loc_43C83: cmp r10d, 0FFh jnz short loc_43D05 mov [rbp+var_40], r15 mov r9, rsi sub r9, r14 mov r8, [rbp+var_68] add r8, rsi mov [rbp+var_60], r8 xor r10d, r10d loc_43CA4: mov r11, r10 shl r11, 4 lea r8, doubles mov rbx, [r11+r8] mov r12b, [rbx] test r12b, r12b jz short loc_43CEF cmp r9, rdx jge short loc_43CEF inc rbx mov r15, [rbp+var_60] mov r13, rsi loc_43CCD: cmp [r13+0], r12b jnz short loc_43CF7 inc r13 mov r12b, [rbx] test r12b, r12b jz short loc_43CF2 inc rbx lea r8, [r15+1] cmp r15, rdx mov r15, r8 jl short loc_43CCD jmp short loc_43CF2 loc_43CEF: mov r13, rsi loc_43CF2: test r12b, r12b jz short loc_43D37 loc_43CF7: inc r10 cmp r10, 50h ; 'P' jnz short loc_43CA4 mov r10b, 0FFh jmp short loc_43D4F loc_43D05: mov r11, [rbp+var_30] jmp short loc_43D5B loc_43D0B: mov eax, 2 cmp r15d, 1 mov r11, [rbp+var_30] jle short loc_43D23 mov r13, [rbp+var_38] mov rsi, rbx jmp short loc_43D66 loc_43D23: mov esi, 1 sub esi, r15d mov r13, rbx mov r15d, esi mov rsi, [rbp+var_38] jmp short loc_43D66 loc_43D37: lea rsi, doubles add r11, rsi mov rsi, [r11+8] mov r10b, [rsi+rax] dec r13 mov rsi, r13 loc_43D4F: mov r15, [rbp+var_40] mov r11, [rbp+var_30] mov r12, [rbp+var_50] loc_43D5B: mov r13, [rbp+var_38] movzx eax, r10b inc rsi loc_43D66: mov r8, rcx sub r8, r12 cmp r8, rdi jge loc_43DFD movsxd r9, r11d lea r8, CZ_SORT_TABLE mov [rbp+var_60], r9 mov rbx, [r8+r9*8] loc_43D87: movzx r8d, byte ptr [rcx] movzx r8d, byte ptr [rbx+r8] test r8d, r8d jz short loc_43DCB cmp r8d, 2 jnz loc_43E38 inc rcx mov r8, rcx sub r8, r12 mov r10, rcx cmp r8, rdi jge short loc_43DD9 loc_43DB0: movzx r9d, byte ptr [r10] cmp byte ptr [rbx+r9], 2 jnz short loc_43DD9 inc r10 inc r8 mov r9, r10 cmp r8, rdi jl short loc_43DB0 jmp short loc_43DDC loc_43DCB: inc rcx mov r8, rcx sub r8, r12 mov r10, rcx jmp short loc_43DF6 loc_43DD9: mov r9, rcx loc_43DDC: cmp r11d, 3 cmovge r10, r9 mov r8, r10 sub r8, r12 cmp r8, rdi jl loc_43ED0 mov rcx, r10 loc_43DF6: cmp r8, rdi jl short loc_43D87 jmp short loc_43E00 loc_43DFD: mov r10, rcx loc_43E00: cmp r11d, 3 jnz short loc_43E1A xor r11d, r11d mov ecx, 3 mov [rbp+var_30], rcx loc_43E12: mov rcx, r10 jmp loc_43F29 loc_43E1A: test r11d, r11d lea r8d, [r11+1] mov rcx, r12 cmovz rcx, [rbp+var_58] mov r11d, 1 loc_43E2F: mov [rbp+var_30], r8 jmp loc_43F29 loc_43E38: cmp r8d, 0FFh jnz loc_43F22 mov [rbp+var_40], r13 mov [rbp+var_44], eax mov rax, rcx sub rax, r12 mov r8, [rbp+var_70] add r8, rcx mov [rbp+var_38], r8 xor r11d, r11d mov rbx, r15 loc_43E63: mov r8, r11 shl r8, 4 lea r9, doubles mov r13, [r8+r9] mov r9b, [r13+0] test r9b, r9b jz short loc_43EB0 cmp rax, rdi jge short loc_43EB0 inc r13 mov r15, [rbp+var_38] mov r12, rcx loc_43E8D: cmp [r12], r9b jnz short loc_43EB8 inc r12 mov r9b, [r13+0] test r9b, r9b jz short loc_43EB3 inc r13 lea r10, [r15+1] cmp r15, rdi mov r15, r10 jl short loc_43E8D jmp short loc_43EB3 loc_43EB0: mov r12, rcx loc_43EB3: test r9b, r9b jz short loc_43EF8 loc_43EB8: inc r11 cmp r11, 50h ; 'P' mov r12, [rbp+var_50] jnz short loc_43E63 mov r15, rbx mov r8b, 0FFh mov eax, [rbp+var_44] jmp short loc_43F1E loc_43ED0: mov rcx, r11 mov r11d, 2 cmp ecx, 1 jg loc_43E12 mov r8d, 1 sub r8d, ecx mov rcx, [rbp+var_58] mov [rbp+var_58], r10 jmp loc_43E2F loc_43EF8: lea rcx, doubles add r8, rcx mov rcx, [r8+8] mov r8, [rbp+var_60] mov r8b, [rcx+r8] dec r12 mov rcx, r12 mov r15, rbx mov eax, [rbp+var_44] mov r12, [rbp+var_50] loc_43F1E: mov r13, [rbp+var_40] loc_43F22: movzx r11d, r8b inc rcx loc_43F29: test eax, eax jz short loc_43F36 cmp eax, r11d jz loc_43BAF loc_43F36: sub eax, r11d pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_strnncoll_czech( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned __int8 *a4, unsigned long long a5, char a6) { unsigned __int8 *v6; // r12 unsigned __int8 *v7; // r14 long long v8; // rdi long long v9; // rdx long long v10; // r15 unsigned __int8 *v11; // r13 long long v12; // rax long long v13; // r9 long long v14; // r10 unsigned __int8 *v15; // rsi long long v16; // r10 unsigned __int8 *v17; // rbx unsigned __int8 *v18; // r11 unsigned __int8 *v19; // r10 int v20; // eax int v21; // r11d char *v22; // rbx char v23; // r12 char *v24; // rbx unsigned __int8 *v25; // r15 _BYTE *v26; // r13 bool v27; // cc long long v28; // rbx int v29; // r8d unsigned __int8 *v30; // rcx long long v31; // r8 unsigned __int8 *v32; // r10 unsigned __int8 *v33; // r9 unsigned __int8 *v34; // r8 int v35; // r11d int v36; // r8d unsigned __int8 *v37; // rax long long v38; // r11 long long v39; // rbx char *v40; // r13 char v41; // r9 char *v42; // r13 unsigned __int8 *v43; // r15 _BYTE *v44; // r12 int v45; // ecx long long v47; // [rsp+0h] [rbp-70h] long long v48; // [rsp+8h] [rbp-68h] long long v49; // [rsp+10h] [rbp-60h] unsigned __int8 *v50; // [rsp+18h] [rbp-58h] unsigned __int8 *v51; // [rsp+20h] [rbp-50h] int v52; // [rsp+2Ch] [rbp-44h] long long v53; // [rsp+30h] [rbp-40h] unsigned __int8 *v54; // [rsp+30h] [rbp-40h] unsigned __int8 *v55; // [rsp+38h] [rbp-38h] int v56; // [rsp+40h] [rbp-30h] v6 = a4; v7 = a2; v8 = (int)a5; if ( a3 < a5 ) LODWORD(a5) = a3; if ( !a6 ) LODWORD(a5) = a3; v9 = (int)a5; v48 = 1LL - (_QWORD)a2; v47 = 1LL - (_QWORD)a4; v10 = 0LL; v11 = a2; v50 = a4; v56 = 0; v51 = a4; do { v55 = v11; if ( a2 - v7 >= v9 ) { v17 = a2; LABEL_23: if ( (_DWORD)v10 == 3 ) { v20 = 0; v10 = 3LL; a2 = v17; } else { a2 = v7; if ( !(_DWORD)v10 ) a2 = v11; v20 = 1; v10 = (unsigned int)(v10 + 1); } v21 = v56; goto LABEL_49; } v12 = (int)v10; v13 = (long long)*(&CZ_SORT_TABLE + (int)v10); while ( 1 ) { LODWORD(v14) = *(unsigned __int8 *)(v13 + *a2); if ( *(_BYTE *)(v13 + *a2) ) break; v19 = (unsigned __int8 *)(++a2 - v7); v17 = a2; LABEL_20: if ( (long long)v19 >= v9 ) goto LABEL_23; } if ( (_DWORD)v14 == 2 ) { v15 = a2 + 1; v16 = v15 - v7; v17 = v15; if ( v15 - v7 < v9 ) { while ( *(_BYTE *)(v13 + *v17) == 2 ) { ++v17; ++v16; v18 = v17; if ( v16 >= v9 ) goto LABEL_16; } } v18 = v15; LABEL_16: if ( (int)v10 >= 3 ) v17 = v18; v19 = (unsigned __int8 *)(v17 - v7); if ( v17 - v7 < v9 ) { v20 = 2; v21 = v56; if ( (int)v10 <= 1 ) { v11 = v17; v10 = (unsigned int)(1 - v10); a2 = v55; } else { a2 = v17; } goto LABEL_49; } a2 = v17; goto LABEL_20; } if ( (_DWORD)v14 != 255 ) { v21 = v56; goto LABEL_48; } v53 = v10; v14 = 0LL; while ( 2 ) { v22 = (char *)*(&doubles + 2 * v14); v23 = *v22; if ( *v22 && a2 - v7 < v9 ) { v24 = v22 + 1; v25 = &a2[v48]; v26 = a2; while ( *v26 == v23 ) { ++v26; v23 = *v24; if ( *v24 ) { ++v24; v27 = (long long)v25++ < v9; if ( v27 ) continue; } goto LABEL_39; } goto LABEL_40; } v26 = a2; LABEL_39: if ( v23 ) { LABEL_40: if ( ++v14 == 80 ) { LOBYTE(v14) = -1; goto LABEL_47; } continue; } break; } LOBYTE(v14) = *((_BYTE *)*(&doubles + 2 * v14 + 1) + v12); a2 = v26 - 1; LABEL_47: v10 = v53; v21 = v56; v6 = v51; LABEL_48: v11 = v55; v20 = (unsigned __int8)v14; ++a2; LABEL_49: if ( a4 - v6 >= v8 ) { v32 = a4; LABEL_66: if ( v21 != 3 ) { v36 = v21 + 1; a4 = v6; if ( !v21 ) a4 = v50; v35 = 1; goto LABEL_72; } v35 = 0; v56 = 3; LABEL_68: a4 = v32; continue; } v49 = v21; v28 = (long long)*(&CZ_SORT_TABLE + v21); while ( 2 ) { v29 = *(unsigned __int8 *)(v28 + *a4); if ( !*(_BYTE *)(v28 + *a4) ) { v34 = (unsigned __int8 *)(++a4 - v6); v32 = a4; LABEL_63: if ( (long long)v34 >= v8 ) goto LABEL_66; continue; } break; } if ( v29 == 2 ) { v30 = a4 + 1; v31 = v30 - v6; v32 = v30; if ( v30 - v6 < v8 ) { while ( *(_BYTE *)(v28 + *v32) == 2 ) { ++v32; ++v31; v33 = v32; if ( v31 >= v8 ) goto LABEL_59; } } v33 = v30; LABEL_59: if ( v21 >= 3 ) v32 = v33; v34 = (unsigned __int8 *)(v32 - v6); if ( v32 - v6 < v8 ) { v45 = v21; v35 = 2; if ( v45 <= 1 ) { v36 = 1 - v45; a4 = v50; v50 = v32; LABEL_72: v56 = v36; continue; } goto LABEL_68; } a4 = v32; goto LABEL_63; } if ( v29 != 255 ) goto LABEL_90; v54 = v11; v52 = v20; v37 = (unsigned __int8 *)(a4 - v6); v38 = 0LL; v39 = v10; while ( 2 ) { v40 = (char *)*(&doubles + 2 * v38); v41 = *v40; if ( *v40 && (long long)v37 < v8 ) { v42 = v40 + 1; v43 = &a4[v47]; v44 = a4; while ( *v44 == v41 ) { ++v44; v41 = *v42; if ( *v42 ) { ++v42; v27 = (long long)v43++ < v8; if ( v27 ) continue; } goto LABEL_83; } goto LABEL_84; } v44 = a4; LABEL_83: if ( v41 ) { LABEL_84: ++v38; v6 = v51; if ( v38 == 80 ) { v10 = v39; LOBYTE(v29) = -1; v20 = v52; goto LABEL_89; } continue; } break; } LOBYTE(v29) = *((_BYTE *)*(&doubles + 2 * v38 + 1) + v49); a4 = v44 - 1; v10 = v39; v20 = v52; v6 = v51; LABEL_89: v11 = v54; LABEL_90: v35 = (unsigned __int8)v29; ++a4; } while ( v20 && v20 == v35 ); return (unsigned int)(v20 - v35); }
my_strnncoll_czech: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R12,RCX MOV R14,RSI CMP RDX,R8 MOVSXD RDI,R8D CMOVC R8,RDX TEST R9B,R9B CMOVZ R8,RDX MOVSXD RDX,R8D MOV ECX,0x1 MOV ESI,0x1 SUB RSI,R14 MOV qword ptr [RBP + -0x68],RSI SUB RCX,R12 MOV qword ptr [RBP + -0x70],RCX XOR R15D,R15D MOV RCX,R12 MOV R13,R14 MOV qword ptr [RBP + -0x58],R12 MOV qword ptr [RBP + -0x30],0x0 MOV RSI,R14 MOV qword ptr [RBP + -0x50],R12 LAB_00143baf: MOV qword ptr [RBP + -0x38],R13 MOV R9,RSI SUB R9,R14 CMP R9,RDX JGE 0x00143c46 MOVSXD RAX,R15D LEA R8,[0x41b5f0] MOV R9,qword ptr [R8 + RAX*0x8] LAB_00143bd0: MOVZX R10D,byte ptr [RSI] MOVZX R10D,byte ptr [R9 + R10*0x1] TEST R10D,R10D JZ 0x00143c14 CMP R10D,0x2 JNZ 0x00143c83 INC RSI MOV R10,RSI SUB R10,R14 MOV RBX,RSI CMP R10,RDX JGE 0x00143c22 LAB_00143bf9: MOVZX R11D,byte ptr [RBX] CMP byte ptr [R9 + R11*0x1],0x2 JNZ 0x00143c22 INC RBX INC R10 MOV R11,RBX CMP R10,RDX JL 0x00143bf9 JMP 0x00143c25 LAB_00143c14: INC RSI MOV R10,RSI SUB R10,R14 MOV RBX,RSI JMP 0x00143c3f LAB_00143c22: MOV R11,RSI LAB_00143c25: CMP R15D,0x3 CMOVGE RBX,R11 MOV R10,RBX SUB R10,R14 CMP R10,RDX JL 0x00143d0b MOV RSI,RBX LAB_00143c3f: CMP R10,RDX JL 0x00143bd0 JMP 0x00143c49 LAB_00143c46: MOV RBX,RSI LAB_00143c49: CMP R15D,0x3 JNZ 0x00143c60 XOR EAX,EAX MOV R15D,0x3 MOV R13,qword ptr [RBP + -0x38] MOV RSI,RBX JMP 0x00143c7a LAB_00143c60: TEST R15D,R15D MOV RSI,R14 MOV R13,qword ptr [RBP + -0x38] CMOVZ RSI,R13 LEA R9D,[R15 + 0x1] MOV EAX,0x1 MOV R15D,R9D LAB_00143c7a: MOV R11,qword ptr [RBP + -0x30] JMP 0x00143d66 LAB_00143c83: CMP R10D,0xff JNZ 0x00143d05 MOV qword ptr [RBP + -0x40],R15 MOV R9,RSI SUB R9,R14 MOV R8,qword ptr [RBP + -0x68] ADD R8,RSI MOV qword ptr [RBP + -0x60],R8 XOR R10D,R10D LAB_00143ca4: MOV R11,R10 SHL R11,0x4 LEA R8,[0x41b610] MOV RBX,qword ptr [R11 + R8*0x1] MOV R12B,byte ptr [RBX] TEST R12B,R12B JZ 0x00143cef CMP R9,RDX JGE 0x00143cef INC RBX MOV R15,qword ptr [RBP + -0x60] MOV R13,RSI LAB_00143ccd: CMP byte ptr [R13],R12B JNZ 0x00143cf7 INC R13 MOV R12B,byte ptr [RBX] TEST R12B,R12B JZ 0x00143cf2 INC RBX LEA R8,[R15 + 0x1] CMP R15,RDX MOV R15,R8 JL 0x00143ccd JMP 0x00143cf2 LAB_00143cef: MOV R13,RSI LAB_00143cf2: TEST R12B,R12B JZ 0x00143d37 LAB_00143cf7: INC R10 CMP R10,0x50 JNZ 0x00143ca4 MOV R10B,0xff JMP 0x00143d4f LAB_00143d05: MOV R11,qword ptr [RBP + -0x30] JMP 0x00143d5b LAB_00143d0b: MOV EAX,0x2 CMP R15D,0x1 MOV R11,qword ptr [RBP + -0x30] JLE 0x00143d23 MOV R13,qword ptr [RBP + -0x38] MOV RSI,RBX JMP 0x00143d66 LAB_00143d23: MOV ESI,0x1 SUB ESI,R15D MOV R13,RBX MOV R15D,ESI MOV RSI,qword ptr [RBP + -0x38] JMP 0x00143d66 LAB_00143d37: LEA RSI,[0x41b610] ADD R11,RSI MOV RSI,qword ptr [R11 + 0x8] MOV R10B,byte ptr [RSI + RAX*0x1] DEC R13 MOV RSI,R13 LAB_00143d4f: MOV R15,qword ptr [RBP + -0x40] MOV R11,qword ptr [RBP + -0x30] MOV R12,qword ptr [RBP + -0x50] LAB_00143d5b: MOV R13,qword ptr [RBP + -0x38] MOVZX EAX,R10B INC RSI LAB_00143d66: MOV R8,RCX SUB R8,R12 CMP R8,RDI JGE 0x00143dfd MOVSXD R9,R11D LEA R8,[0x41b5f0] MOV qword ptr [RBP + -0x60],R9 MOV RBX,qword ptr [R8 + R9*0x8] LAB_00143d87: MOVZX R8D,byte ptr [RCX] MOVZX R8D,byte ptr [RBX + R8*0x1] TEST R8D,R8D JZ 0x00143dcb CMP R8D,0x2 JNZ 0x00143e38 INC RCX MOV R8,RCX SUB R8,R12 MOV R10,RCX CMP R8,RDI JGE 0x00143dd9 LAB_00143db0: MOVZX R9D,byte ptr [R10] CMP byte ptr [RBX + R9*0x1],0x2 JNZ 0x00143dd9 INC R10 INC R8 MOV R9,R10 CMP R8,RDI JL 0x00143db0 JMP 0x00143ddc LAB_00143dcb: INC RCX MOV R8,RCX SUB R8,R12 MOV R10,RCX JMP 0x00143df6 LAB_00143dd9: MOV R9,RCX LAB_00143ddc: CMP R11D,0x3 CMOVGE R10,R9 MOV R8,R10 SUB R8,R12 CMP R8,RDI JL 0x00143ed0 MOV RCX,R10 LAB_00143df6: CMP R8,RDI JL 0x00143d87 JMP 0x00143e00 LAB_00143dfd: MOV R10,RCX LAB_00143e00: CMP R11D,0x3 JNZ 0x00143e1a XOR R11D,R11D MOV ECX,0x3 MOV qword ptr [RBP + -0x30],RCX LAB_00143e12: MOV RCX,R10 JMP 0x00143f29 LAB_00143e1a: TEST R11D,R11D LEA R8D,[R11 + 0x1] MOV RCX,R12 CMOVZ RCX,qword ptr [RBP + -0x58] MOV R11D,0x1 LAB_00143e2f: MOV qword ptr [RBP + -0x30],R8 JMP 0x00143f29 LAB_00143e38: CMP R8D,0xff JNZ 0x00143f22 MOV qword ptr [RBP + -0x40],R13 MOV dword ptr [RBP + -0x44],EAX MOV RAX,RCX SUB RAX,R12 MOV R8,qword ptr [RBP + -0x70] ADD R8,RCX MOV qword ptr [RBP + -0x38],R8 XOR R11D,R11D MOV RBX,R15 LAB_00143e63: MOV R8,R11 SHL R8,0x4 LEA R9,[0x41b610] MOV R13,qword ptr [R8 + R9*0x1] MOV R9B,byte ptr [R13] TEST R9B,R9B JZ 0x00143eb0 CMP RAX,RDI JGE 0x00143eb0 INC R13 MOV R15,qword ptr [RBP + -0x38] MOV R12,RCX LAB_00143e8d: CMP byte ptr [R12],R9B JNZ 0x00143eb8 INC R12 MOV R9B,byte ptr [R13] TEST R9B,R9B JZ 0x00143eb3 INC R13 LEA R10,[R15 + 0x1] CMP R15,RDI MOV R15,R10 JL 0x00143e8d JMP 0x00143eb3 LAB_00143eb0: MOV R12,RCX LAB_00143eb3: TEST R9B,R9B JZ 0x00143ef8 LAB_00143eb8: INC R11 CMP R11,0x50 MOV R12,qword ptr [RBP + -0x50] JNZ 0x00143e63 MOV R15,RBX MOV R8B,0xff MOV EAX,dword ptr [RBP + -0x44] JMP 0x00143f1e LAB_00143ed0: MOV RCX,R11 MOV R11D,0x2 CMP ECX,0x1 JG 0x00143e12 MOV R8D,0x1 SUB R8D,ECX MOV RCX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x58],R10 JMP 0x00143e2f LAB_00143ef8: LEA RCX,[0x41b610] ADD R8,RCX MOV RCX,qword ptr [R8 + 0x8] MOV R8,qword ptr [RBP + -0x60] MOV R8B,byte ptr [RCX + R8*0x1] DEC R12 MOV RCX,R12 MOV R15,RBX MOV EAX,dword ptr [RBP + -0x44] MOV R12,qword ptr [RBP + -0x50] LAB_00143f1e: MOV R13,qword ptr [RBP + -0x40] LAB_00143f22: MOVZX R11D,R8B INC RCX LAB_00143f29: TEST EAX,EAX JZ 0x00143f36 CMP EAX,R11D JZ 0x00143baf LAB_00143f36: SUB EAX,R11D POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int my_strnncoll_czech(int8 param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5, char param_6) { byte *pbVar1; byte *pbVar2; byte *pbVar3; long lVar4; byte *pbVar5; byte *pbVar6; long lVar7; int iVar8; uint uVar9; int iVar10; uint uVar11; long lVar12; byte *pbVar13; byte bVar14; byte *pbVar15; byte *pbVar16; byte *local_60; lVar7 = (long)(int)param_5; if (param_3 < param_5) { param_5 = param_3; } iVar8 = (int)param_5; if (param_6 == '\0') { iVar8 = (int)param_3; } lVar4 = (long)iVar8; iVar10 = 0; iVar8 = 0; pbVar13 = param_4; pbVar6 = param_2; pbVar16 = param_2; local_60 = param_4; LAB_00143baf: if ((long)pbVar6 - (long)param_2 < lVar4) { do { bVar14 = (&CZ_SORT_TABLE)[iVar10][*pbVar6]; uVar11 = (uint)bVar14; if (bVar14 == 0) { lVar12 = (long)(pbVar6 + 1) - (long)param_2; pbVar6 = pbVar6 + 1; } else { if (bVar14 != 2) { if (bVar14 != 0xff) goto LAB_00143d5b; lVar12 = 0; goto LAB_00143ca4; } pbVar6 = pbVar6 + 1; lVar12 = (long)pbVar6 - (long)param_2; pbVar5 = pbVar6; while ((pbVar15 = pbVar5, lVar12 < lVar4 && (pbVar15 = pbVar6, (&CZ_SORT_TABLE)[iVar10][*pbVar5] == '\x02'))) { pbVar5 = pbVar5 + 1; lVar12 = lVar12 + 1; } if (2 < iVar10) { pbVar5 = pbVar15; } lVar12 = (long)pbVar5 - (long)param_2; pbVar6 = pbVar5; if (lVar12 < lVar4) { uVar11 = 2; if (iVar10 < 2) { iVar10 = 1 - iVar10; pbVar6 = pbVar16; pbVar16 = pbVar5; } goto LAB_00143d66; } } } while (lVar12 < lVar4); } if (iVar10 == 3) { uVar11 = 0; iVar10 = 3; } else { pbVar6 = param_2; if (iVar10 == 0) { pbVar6 = pbVar16; } iVar10 = iVar10 + 1; uVar11 = 1; } goto LAB_00143d66; LAB_00143ca4: do { pbVar5 = (&doubles)[lVar12 * 2]; bVar14 = *pbVar5; pbVar15 = pbVar6; pbVar3 = pbVar6 + (1 - (long)param_2); pbVar2 = pbVar6 + -(long)param_2; if (bVar14 != 0) { while (pbVar1 = pbVar3, (long)pbVar2 < lVar4) { pbVar5 = pbVar5 + 1; if (*pbVar15 != bVar14) goto LAB_00143cf7; pbVar15 = pbVar15 + 1; bVar14 = *pbVar5; if (bVar14 == 0) break; pbVar3 = pbVar1 + 1; pbVar2 = pbVar1; } } if (bVar14 == 0) { uVar11 = (uint)(byte)(&PTR_DAT_0041b618)[lVar12 * 2][iVar10]; pbVar6 = pbVar15 + -1; goto LAB_00143d5b; } LAB_00143cf7: lVar12 = lVar12 + 1; } while (lVar12 != 0x50); uVar11 = 0xff; LAB_00143d5b: pbVar6 = pbVar6 + 1; LAB_00143d66: if ((long)pbVar13 - (long)param_4 < lVar7) { do { bVar14 = (&CZ_SORT_TABLE)[iVar8][*pbVar13]; uVar9 = (uint)bVar14; if (bVar14 == 0) { pbVar13 = pbVar13 + 1; lVar12 = (long)pbVar13 - (long)param_4; } else { if (bVar14 != 2) { if (bVar14 != 0xff) goto LAB_00143f22; lVar12 = 0; goto LAB_00143e63; } pbVar5 = pbVar13 + 1; lVar12 = (long)pbVar5 - (long)param_4; pbVar13 = pbVar5; while ((pbVar15 = pbVar13, lVar12 < lVar7 && (pbVar15 = pbVar5, (&CZ_SORT_TABLE)[iVar8][*pbVar13] == '\x02'))) { pbVar13 = pbVar13 + 1; lVar12 = lVar12 + 1; } if (2 < iVar8) { pbVar13 = pbVar15; } lVar12 = (long)pbVar13 - (long)param_4; if (lVar12 < lVar7) { uVar9 = 2; if (1 < iVar8) goto LAB_00143f29; iVar8 = -iVar8; pbVar5 = local_60; local_60 = pbVar13; goto LAB_00143e2f; } } } while (lVar12 < lVar7); } if (iVar8 == 3) { uVar9 = 0; iVar8 = 3; } else { pbVar5 = param_4; if (iVar8 == 0) { pbVar5 = local_60; } uVar9 = 1; LAB_00143e2f: iVar8 = iVar8 + 1; pbVar13 = pbVar5; } LAB_00143f29: if ((uVar11 == 0) || (uVar11 != uVar9)) { return uVar11 - uVar9; } goto LAB_00143baf; LAB_00143e63: do { pbVar5 = (&doubles)[lVar12 * 2]; bVar14 = *pbVar5; pbVar15 = pbVar13; pbVar3 = pbVar13 + (1 - (long)param_4); pbVar2 = pbVar13 + -(long)param_4; if (bVar14 != 0) { while (pbVar1 = pbVar3, (long)pbVar2 < lVar7) { pbVar5 = pbVar5 + 1; if (*pbVar15 != bVar14) goto LAB_00143eb8; pbVar15 = pbVar15 + 1; bVar14 = *pbVar5; if (bVar14 == 0) break; pbVar3 = pbVar1 + 1; pbVar2 = pbVar1; } } if (bVar14 == 0) { uVar9 = (uint)(byte)(&PTR_DAT_0041b618)[lVar12 * 2][iVar8]; pbVar13 = pbVar15 + -1; goto LAB_00143f22; } LAB_00143eb8: lVar12 = lVar12 + 1; } while (lVar12 != 0x50); uVar9 = 0xff; LAB_00143f22: pbVar13 = pbVar13 + 1; goto LAB_00143f29; }
21,131
my_uca_copy_page
eloqsql/strings/ctype-uca.c
static my_bool my_uca_copy_page(MY_CHARSET_LOADER *loader, const MY_UCA_WEIGHT_LEVEL *src, MY_UCA_WEIGHT_LEVEL *dst, size_t page) { uint chc, size= 256 * dst->lengths[page] * sizeof(uint16); if (!(dst->weights[page]= (uint16 *) (loader->once_alloc)(size))) return TRUE; DBUG_ASSERT(src->lengths[page] <= dst->lengths[page]); memset(dst->weights[page], 0, size); for (chc=0 ; chc < 256; chc++) { memcpy(dst->weights[page] + chc * dst->lengths[page], src->weights[page] + chc * src->lengths[page], src->lengths[page] * sizeof(uint16)); } return FALSE; }
O0
c
my_uca_copy_page: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax movq 0x8(%rax), %rax movq -0x28(%rbp), %rcx movzbl (%rax,%rcx), %eax shll $0x8, %eax cltq shlq %rax movl %eax, -0x30(%rbp) movq -0x10(%rbp), %rax movq 0x80(%rax), %rax movl -0x30(%rbp), %ecx movl %ecx, %edi callq *%rax movq -0x20(%rbp), %rcx movq 0x10(%rcx), %rcx movq -0x28(%rbp), %rdx movq %rax, (%rcx,%rdx,8) cmpq $0x0, %rax jne 0x493c4 movb $0x1, -0x1(%rbp) jmp 0x49480 jmp 0x493c6 jmp 0x493c8 movq -0x20(%rbp), %rax movq 0x10(%rax), %rax movq -0x28(%rbp), %rcx movq (%rax,%rcx,8), %rdi movl -0x30(%rbp), %eax movl %eax, %edx xorl %esi, %esi callq 0x24180 movl $0x0, -0x2c(%rbp) cmpl $0x100, -0x2c(%rbp) # imm = 0x100 jae 0x4947c movq -0x20(%rbp), %rax movq 0x10(%rax), %rax movq -0x28(%rbp), %rcx movq (%rax,%rcx,8), %rdi movl -0x2c(%rbp), %eax movq -0x20(%rbp), %rcx movq 0x8(%rcx), %rcx movq -0x28(%rbp), %rdx movzbl (%rcx,%rdx), %ecx imull %ecx, %eax movl %eax, %eax shlq %rax addq %rax, %rdi movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movq -0x28(%rbp), %rcx movq (%rax,%rcx,8), %rsi movl -0x2c(%rbp), %eax movq -0x18(%rbp), %rcx movq 0x8(%rcx), %rcx movq -0x28(%rbp), %rdx movzbl (%rcx,%rdx), %ecx imull %ecx, %eax movl %eax, %eax shlq %rax addq %rax, %rsi movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq -0x28(%rbp), %rcx movzbl (%rax,%rcx), %eax movl %eax, %edx shlq %rdx callq 0x24220 movl -0x2c(%rbp), %eax addl $0x1, %eax movl %eax, -0x2c(%rbp) jmp 0x493eb movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_uca_copy_page: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] mov rax, [rax+8] mov rcx, [rbp+var_28] movzx eax, byte ptr [rax+rcx] shl eax, 8 cdqe shl rax, 1 mov [rbp+var_30], eax mov rax, [rbp+var_10] mov rax, [rax+80h] mov ecx, [rbp+var_30] mov edi, ecx call rax mov rcx, [rbp+var_20] mov rcx, [rcx+10h] mov rdx, [rbp+var_28] mov [rcx+rdx*8], rax cmp rax, 0 jnz short loc_493C4 mov [rbp+var_1], 1 jmp loc_49480 loc_493C4: jmp short $+2 loc_493C6: jmp short $+2 loc_493C8: mov rax, [rbp+var_20] mov rax, [rax+10h] mov rcx, [rbp+var_28] mov rdi, [rax+rcx*8] mov eax, [rbp+var_30] mov edx, eax xor esi, esi call _memset mov [rbp+var_2C], 0 loc_493EB: cmp [rbp+var_2C], 100h jnb loc_4947C mov rax, [rbp+var_20] mov rax, [rax+10h] mov rcx, [rbp+var_28] mov rdi, [rax+rcx*8] mov eax, [rbp+var_2C] mov rcx, [rbp+var_20] mov rcx, [rcx+8] mov rdx, [rbp+var_28] movzx ecx, byte ptr [rcx+rdx] imul eax, ecx mov eax, eax shl rax, 1 add rdi, rax mov rax, [rbp+var_18] mov rax, [rax+10h] mov rcx, [rbp+var_28] mov rsi, [rax+rcx*8] mov eax, [rbp+var_2C] mov rcx, [rbp+var_18] mov rcx, [rcx+8] mov rdx, [rbp+var_28] movzx ecx, byte ptr [rcx+rdx] imul eax, ecx mov eax, eax shl rax, 1 add rsi, rax mov rax, [rbp+var_18] mov rax, [rax+8] mov rcx, [rbp+var_28] movzx eax, byte ptr [rax+rcx] mov edx, eax shl rdx, 1 call _memcpy mov eax, [rbp+var_2C] add eax, 1 mov [rbp+var_2C], eax jmp loc_493EB loc_4947C: mov [rbp+var_1], 0 loc_49480: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char my_uca_copy_page(long long a1, long long a2, long long a3, long long a4) { long long v4; // rax unsigned int v6; // [rsp+0h] [rbp-30h] unsigned int i; // [rsp+4h] [rbp-2Ch] v6 = *(unsigned __int8 *)(*(_QWORD *)(a3 + 8) + a4) << 9; v4 = (*(long long ( **)(_QWORD))(a1 + 128))(v6); *(_QWORD *)(*(_QWORD *)(a3 + 16) + 8 * a4) = v4; if ( !v4 ) return 1; memset(*(_QWORD *)(*(_QWORD *)(a3 + 16) + 8 * a4), 0LL, v6); for ( i = 0; i < 0x100; ++i ) memcpy( 2LL * *(unsigned __int8 *)(*(_QWORD *)(a3 + 8) + a4) * i + *(_QWORD *)(*(_QWORD *)(a3 + 16) + 8 * a4), 2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a4) * i + *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8 * a4), 2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a4)); return 0; }
my_uca_copy_page: 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 qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX + RCX*0x1] SHL EAX,0x8 CDQE SHL RAX,0x1 MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x80] MOV ECX,dword ptr [RBP + -0x30] MOV EDI,ECX CALL RAX MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX + 0x10] MOV RDX,qword ptr [RBP + -0x28] MOV qword ptr [RCX + RDX*0x8],RAX CMP RAX,0x0 JNZ 0x001493c4 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00149480 LAB_001493c4: JMP 0x001493c6 LAB_001493c6: JMP 0x001493c8 LAB_001493c8: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX + RCX*0x8] MOV EAX,dword ptr [RBP + -0x30] MOV EDX,EAX XOR ESI,ESI CALL 0x00124180 MOV dword ptr [RBP + -0x2c],0x0 LAB_001493eb: CMP dword ptr [RBP + -0x2c],0x100 JNC 0x0014947c MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX + RCX*0x8] MOV EAX,dword ptr [RBP + -0x2c] MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX + 0x8] MOV RDX,qword ptr [RBP + -0x28] MOVZX ECX,byte ptr [RCX + RDX*0x1] IMUL EAX,ECX MOV EAX,EAX SHL RAX,0x1 ADD RDI,RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RAX + RCX*0x8] MOV EAX,dword ptr [RBP + -0x2c] MOV RCX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RCX + 0x8] MOV RDX,qword ptr [RBP + -0x28] MOVZX ECX,byte ptr [RCX + RDX*0x1] IMUL EAX,ECX MOV EAX,EAX SHL RAX,0x1 ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV EDX,EAX SHL RDX,0x1 CALL 0x00124220 MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x001493eb LAB_0014947c: MOV byte ptr [RBP + -0x1],0x0 LAB_00149480: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 my_uca_copy_page(long param_1,long param_2,long param_3,long param_4) { size_t __n; long lVar1; int4 local_34; int1 local_9; __n = (long)(int)((uint)*(byte *)(*(long *)(param_3 + 8) + param_4) << 8) << 1; lVar1 = (**(code **)(param_1 + 0x80))(__n); *(long *)(*(long *)(param_3 + 0x10) + param_4 * 8) = lVar1; if (lVar1 == 0) { local_9 = 1; } else { memset(*(void **)(*(long *)(param_3 + 0x10) + param_4 * 8),0,__n); for (local_34 = 0; local_34 < 0x100; local_34 = local_34 + 1) { memcpy((void *)(*(long *)(*(long *)(param_3 + 0x10) + param_4 * 8) + (ulong)(local_34 * *(byte *)(*(long *)(param_3 + 8) + param_4)) * 2), (void *)(*(long *)(*(long *)(param_2 + 0x10) + param_4 * 8) + (ulong)(local_34 * *(byte *)(*(long *)(param_2 + 8) + param_4)) * 2), (ulong)*(byte *)(*(long *)(param_2 + 8) + param_4) << 1); } local_9 = 0; } return local_9; }
21,132
bytes_remove_leading_zeros
corpus-core[P]colibri-stateless/src/util/bytes.c
bytes_t bytes_remove_leading_zeros(bytes_t data) { while (data.len > 1 && data.data[0] == 0) { data.len--; data.data++; } return data; }
O3
c
bytes_remove_leading_zeros: movl %edi, %eax cmpl $0x2, %edi jb 0x51bf9 leal -0x2(%rax), %ecx leaq (%rsi,%rcx), %rdx incq %rdx cmpb $0x0, (%rsi) jne 0x51bf9 decl %eax incq %rsi cmpl $0x1, %eax ja 0x51be4 movl $0x1, %eax retq movq %rsi, %rdx retq
bytes_remove_leading_zeros: mov eax, edi cmp edi, 2 jb short loc_51BF9 lea ecx, [rax-2] lea rdx, [rsi+rcx] inc rdx loc_51BE4: cmp byte ptr [rsi], 0 jnz short loc_51BF9 dec eax inc rsi cmp eax, 1 ja short loc_51BE4 mov eax, 1 retn loc_51BF9: mov rdx, rsi retn
long long bytes_remove_leading_zeros(unsigned int a1, _BYTE *a2) { long long result; // rax result = a1; if ( a1 >= 2 ) { while ( !*a2 ) { result = (unsigned int)(result - 1); ++a2; if ( (unsigned int)result <= 1 ) return 1LL; } } return result; }
bytes_remove_leading_zeros: MOV EAX,EDI CMP EDI,0x2 JC 0x00151bf9 LEA ECX,[RAX + -0x2] LEA RDX,[RSI + RCX*0x1] INC RDX LAB_00151be4: CMP byte ptr [RSI],0x0 JNZ 0x00151bf9 DEC EAX INC RSI CMP EAX,0x1 JA 0x00151be4 MOV EAX,0x1 RET LAB_00151bf9: MOV RDX,RSI RET
int1 [16] bytes_remove_leading_zeros(uint param_1,char *param_2) { uint uVar1; ulong uVar2; int1 auVar3 [16]; int1 auVar4 [16]; uVar2 = (ulong)param_1; if (1 < param_1) { auVar3._8_8_ = param_2 + (ulong)(param_1 - 2) + 1; while (*param_2 == '\0') { uVar1 = (int)uVar2 - 1; uVar2 = (ulong)uVar1; param_2 = param_2 + 1; if (uVar1 < 2) { auVar3._0_8_ = 1; return auVar3; } } } auVar4._8_8_ = param_2; auVar4._0_8_ = uVar2; return auVar4; }
21,133
ggml_aarch64_get_optimal_repack_type(ggml_tensor const*)
monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp
static const ggml::cpu::tensor_traits * ggml_aarch64_get_optimal_repack_type(const struct ggml_tensor * cur) { if (cur->type == GGML_TYPE_Q4_0) { if (ggml_cpu_has_avx2() || (ggml_cpu_has_sve() && ggml_cpu_has_matmul_int8() && ggml_cpu_get_sve_cnt() == QK8_0)) { if (cur->ne[1] % 8 == 0) { return &ggml::cpu::aarch64::q4_0_8x8_q8_0; } } if (ggml_cpu_has_neon() && ggml_cpu_has_matmul_int8()) { if (cur->ne[1] % 4 == 0) { return &ggml::cpu::aarch64::q4_0_4x8_q8_0; } } if (ggml_cpu_has_neon() && ggml_cpu_has_dotprod()) { if (cur->ne[1] % 4 == 0) { return &ggml::cpu::aarch64::q4_0_4x4_q8_0; } } } else if (cur->type == GGML_TYPE_IQ4_NL) { if (ggml_cpu_has_neon() && ggml_cpu_has_dotprod()) { if (cur->ne[1] % 4 == 0) { return &ggml::cpu::aarch64::iq4_nl_4x4_q8_0; } } } return nullptr; }
O3
cpp
ggml_aarch64_get_optimal_repack_type(ggml_tensor const*): pushq %rbx movq %rdi, %rbx movl (%rdi), %eax cmpl $0x14, %eax je 0x2c559 cmpl $0x2, %eax jne 0x2c5c6 callq 0x8150 testl %eax, %eax je 0x2c57a testb $0x7, 0x18(%rbx) jne 0x2c596 leaq 0x39101(%rip), %rax # 0x65658 jmp 0x2c5c8 callq 0x8400 testl %eax, %eax je 0x2c5c6 callq 0x87f0 testl %eax, %eax je 0x2c5c6 testb $0x3, 0x18(%rbx) jne 0x2c5c6 leaq 0x390e8(%rip), %rax # 0x65660 jmp 0x2c5c8 callq 0x86c0 testl %eax, %eax je 0x2c596 callq 0x80f0 testl %eax, %eax je 0x2c596 callq 0x8a90 cmpl $0x20, %eax je 0x2c54a callq 0x8400 testl %eax, %eax je 0x2c5ae callq 0x80f0 testl %eax, %eax je 0x2c5ae testb $0x3, 0x18(%rbx) je 0x2c5ca callq 0x8400 testl %eax, %eax je 0x2c5c6 callq 0x87f0 testl %eax, %eax je 0x2c5c6 testb $0x3, 0x18(%rbx) je 0x2c5d3 xorl %eax, %eax popq %rbx retq leaq 0x3907f(%rip), %rax # 0x65650 jmp 0x2c5c8 leaq 0x3906e(%rip), %rax # 0x65648 jmp 0x2c5c8
_ZL36ggml_aarch64_get_optimal_repack_typePK11ggml_tensor: push rbx mov rbx, rdi mov eax, [rdi] cmp eax, 14h jz short loc_2C559 cmp eax, 2 jnz loc_2C5C6 call _ggml_cpu_has_avx2 test eax, eax jz short loc_2C57A loc_2C54A: test byte ptr [rbx+18h], 7 jnz short loc_2C596 lea rax, _ZN4ggml3cpu7aarch64L13q4_0_8x8_q8_0E; ggml::cpu::aarch64::q4_0_8x8_q8_0 jmp short loc_2C5C8 loc_2C559: call _ggml_cpu_has_neon test eax, eax jz short loc_2C5C6 call _ggml_cpu_has_dotprod test eax, eax jz short loc_2C5C6 test byte ptr [rbx+18h], 3 jnz short loc_2C5C6 lea rax, _ZN4ggml3cpu7aarch64L15iq4_nl_4x4_q8_0E; ggml::cpu::aarch64::iq4_nl_4x4_q8_0 jmp short loc_2C5C8 loc_2C57A: call _ggml_cpu_has_sve test eax, eax jz short loc_2C596 call _ggml_cpu_has_matmul_int8 test eax, eax jz short loc_2C596 call _ggml_cpu_get_sve_cnt cmp eax, 20h ; ' ' jz short loc_2C54A loc_2C596: call _ggml_cpu_has_neon test eax, eax jz short loc_2C5AE call _ggml_cpu_has_matmul_int8 test eax, eax jz short loc_2C5AE test byte ptr [rbx+18h], 3 jz short loc_2C5CA loc_2C5AE: call _ggml_cpu_has_neon test eax, eax jz short loc_2C5C6 call _ggml_cpu_has_dotprod test eax, eax jz short loc_2C5C6 test byte ptr [rbx+18h], 3 jz short loc_2C5D3 loc_2C5C6: xor eax, eax loc_2C5C8: pop rbx retn loc_2C5CA: lea rax, _ZN4ggml3cpu7aarch64L13q4_0_4x8_q8_0E; ggml::cpu::aarch64::q4_0_4x8_q8_0 jmp short loc_2C5C8 loc_2C5D3: lea rax, _ZN4ggml3cpu7aarch64L13q4_0_4x4_q8_0E; ggml::cpu::aarch64::q4_0_4x4_q8_0 jmp short loc_2C5C8
void ( *** ggml_aarch64_get_optimal_repack_type( long long a1))(ggml::cpu::tensor_traits *__hidden this) { if ( *(_DWORD *)a1 == 20 ) { if ( (unsigned int)ggml_cpu_has_neon() && (unsigned int)ggml_cpu_has_dotprod() && (*(_BYTE *)(a1 + 24) & 3) == 0 ) return &ggml::cpu::aarch64::iq4_nl_4x4_q8_0; return 0LL; } if ( *(_DWORD *)a1 != 2 ) return 0LL; if ( ((unsigned int)ggml_cpu_has_avx2() || (unsigned int)ggml_cpu_has_sve() && (unsigned int)ggml_cpu_has_matmul_int8() && (unsigned int)ggml_cpu_get_sve_cnt() == 32) && (*(_BYTE *)(a1 + 24) & 7) == 0 ) { return &ggml::cpu::aarch64::q4_0_8x8_q8_0; } if ( (unsigned int)ggml_cpu_has_neon() && (unsigned int)ggml_cpu_has_matmul_int8() && (*(_BYTE *)(a1 + 24) & 3) == 0 ) return &ggml::cpu::aarch64::q4_0_4x8_q8_0; if ( !(unsigned int)ggml_cpu_has_neon() || !(unsigned int)ggml_cpu_has_dotprod() || (*(_BYTE *)(a1 + 24) & 3) != 0 ) return 0LL; return &ggml::cpu::aarch64::q4_0_4x4_q8_0; }
ggml_aarch64_get_optimal_repack_type: PUSH RBX MOV RBX,RDI MOV EAX,dword ptr [RDI] CMP EAX,0x14 JZ 0x0012c559 CMP EAX,0x2 JNZ 0x0012c5c6 CALL 0x00108150 TEST EAX,EAX JZ 0x0012c57a LAB_0012c54a: TEST byte ptr [RBX + 0x18],0x7 JNZ 0x0012c596 LEA RAX,[0x165658] JMP 0x0012c5c8 LAB_0012c559: CALL 0x00108400 TEST EAX,EAX JZ 0x0012c5c6 CALL 0x001087f0 TEST EAX,EAX JZ 0x0012c5c6 TEST byte ptr [RBX + 0x18],0x3 JNZ 0x0012c5c6 LEA RAX,[0x165660] JMP 0x0012c5c8 LAB_0012c57a: CALL 0x001086c0 TEST EAX,EAX JZ 0x0012c596 CALL 0x001080f0 TEST EAX,EAX JZ 0x0012c596 CALL 0x00108a90 CMP EAX,0x20 JZ 0x0012c54a LAB_0012c596: CALL 0x00108400 TEST EAX,EAX JZ 0x0012c5ae CALL 0x001080f0 TEST EAX,EAX JZ 0x0012c5ae TEST byte ptr [RBX + 0x18],0x3 JZ 0x0012c5ca LAB_0012c5ae: CALL 0x00108400 TEST EAX,EAX JZ 0x0012c5c6 CALL 0x001087f0 TEST EAX,EAX JZ 0x0012c5c6 TEST byte ptr [RBX + 0x18],0x3 JZ 0x0012c5d3 LAB_0012c5c6: XOR EAX,EAX LAB_0012c5c8: POP RBX RET LAB_0012c5ca: LEA RAX,[0x165650] JMP 0x0012c5c8 LAB_0012c5d3: LEA RAX,[0x165648] JMP 0x0012c5c8
/* ggml_aarch64_get_optimal_repack_type(ggml_tensor const*) */ pointer_____offset_0x10___ * ggml_aarch64_get_optimal_repack_type(ggml_tensor *param_1) { int iVar1; if (*(int *)param_1 == 0x14) { iVar1 = ggml_cpu_has_neon(); if (((iVar1 != 0) && (iVar1 = ggml_cpu_has_dotprod(), iVar1 != 0)) && (((byte)param_1[0x18] & 3) == 0)) { return &ggml::cpu::aarch64::iq4_nl_4x4_q8_0; } } else if (*(int *)param_1 == 2) { iVar1 = ggml_cpu_has_avx2(); if (((iVar1 != 0) || (((iVar1 = ggml_cpu_has_sve(), iVar1 != 0 && (iVar1 = ggml_cpu_has_matmul_int8(), iVar1 != 0)) && (iVar1 = ggml_cpu_get_sve_cnt(), iVar1 == 0x20)))) && (((byte)param_1[0x18] & 7) == 0)) { return &ggml::cpu::aarch64::q4_0_8x8_q8_0; } iVar1 = ggml_cpu_has_neon(); if (((iVar1 != 0) && (iVar1 = ggml_cpu_has_matmul_int8(), iVar1 != 0)) && (((byte)param_1[0x18] & 3) == 0)) { return &ggml::cpu::aarch64::q4_0_4x8_q8_0; } iVar1 = ggml_cpu_has_neon(); if (((iVar1 != 0) && (iVar1 = ggml_cpu_has_dotprod(), iVar1 != 0)) && (((byte)param_1[0x18] & 3) == 0)) { return &ggml::cpu::aarch64::q4_0_4x4_q8_0; } } return (pointer_____offset_0x10___ *)0x0; }
21,134
my_close
eloqsql/mysys/my_open.c
int my_close(File fd, myf MyFlags) { int err; char *name= NULL; DBUG_ENTER("my_close"); DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags)); if (!(MyFlags & (MY_WME | MY_FAE))) MyFlags|= my_global_flags; if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN) { name= my_file_info[fd].name; my_file_info[fd].name= NULL; my_file_info[fd].type= UNOPEN; } #ifndef _WIN32 err= close(fd); #else err= my_win_close(fd); #endif if (err) { DBUG_PRINT("error",("Got error %d on close",err)); my_errno=errno; if (MyFlags & (MY_FAE | MY_WME)) my_error(EE_BADCLOSE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))), name,errno); } if (name) { my_free(name); } my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED); DBUG_RETURN(err); }
O0
c
my_close: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq $0x0, -0x20(%rbp) jmp 0x39179 movq -0x10(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax jne 0x39199 leaq 0x35874a(%rip), %rax # 0x3918d8 movq (%rax), %rax orq -0x10(%rbp), %rax movq %rax, -0x10(%rbp) movl -0x4(%rbp), %eax leaq 0x1a0a3d(%rip), %rcx # 0x1d9be0 cmpl (%rcx), %eax jae 0x39216 leaq 0x1a0a3a(%rip), %rax # 0x1d9be8 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x0, 0x8(%rax) je 0x39216 leaq 0x1a0a1f(%rip), %rax # 0x1d9be8 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rax movq %rax, -0x20(%rbp) leaq 0x1a0a03(%rip), %rax # 0x1d9be8 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq $0x0, (%rax) leaq 0x1a09e7(%rip), %rax # 0x1d9be8 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movl $0x0, 0x8(%rax) movl -0x4(%rbp), %edi callq 0x25650 movl %eax, -0x14(%rbp) cmpl $0x0, -0x14(%rbp) je 0x39284 jmp 0x39229 jmp 0x3922b callq 0x25050 movl (%rax), %eax movl %eax, -0x2c(%rbp) callq 0x2c180 movl -0x2c(%rbp), %ecx movl %ecx, (%rax) movq -0x10(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0x39282 movq -0x10(%rbp), %rax andq $0x440, %rax # imm = 0x440 orq $0x4, %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) callq 0x25050 movq -0x40(%rbp), %rsi movq -0x38(%rbp), %rdx movl (%rax), %ecx movl $0x4, %edi movb $0x0, %al callq 0x37670 jmp 0x39284 cmpq $0x0, -0x20(%rbp) je 0x39294 movq -0x20(%rbp), %rdi callq 0x2b8e0 movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF movl -0x24(%rbp), %eax leaq 0x35863f(%rip), %rcx # 0x3918e4 lock xaddl %eax, (%rcx) movl %eax, -0x28(%rbp) movl -0x14(%rbp), %eax movl %eax, -0x44(%rbp) movl -0x44(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
my_close: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_20], 0 jmp short $+2 loc_39179: mov rax, [rbp+var_10] and rax, 18h cmp rax, 0 jnz short loc_39199 lea rax, my_global_flags mov rax, [rax] or rax, [rbp+var_10] mov [rbp+var_10], rax loc_39199: mov eax, [rbp+var_4] lea rcx, my_file_limit cmp eax, [rcx] jnb short loc_39216 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 0 jz short loc_39216 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx mov rax, [rax] mov [rbp+var_20], rax lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx mov qword ptr [rax], 0 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx mov dword ptr [rax+8], 0 loc_39216: mov edi, [rbp+var_4] call _close mov [rbp+var_14], eax cmp [rbp+var_14], 0 jz short loc_39284 jmp short $+2 loc_39229: jmp short $+2 loc_3922B: call ___errno_location mov eax, [rax] mov [rbp+var_2C], eax call _my_thread_var mov ecx, [rbp+var_2C] mov [rax], ecx mov rax, [rbp+var_10] and rax, 18h cmp rax, 0 jz short loc_39282 mov rax, [rbp+var_10] and rax, 440h or rax, 4 mov [rbp+var_40], rax mov rax, [rbp+var_20] mov [rbp+var_38], rax call ___errno_location mov rsi, [rbp+var_40] mov rdx, [rbp+var_38] mov ecx, [rax] mov edi, 4 mov al, 0 call my_error loc_39282: jmp short $+2 loc_39284: cmp [rbp+var_20], 0 jz short loc_39294 mov rdi, [rbp+var_20] call my_free loc_39294: mov [rbp+var_24], 0FFFFFFFFh mov eax, [rbp+var_24] lea rcx, my_file_opened lock xadd [rcx], eax mov [rbp+var_28], eax mov eax, [rbp+var_14] mov [rbp+var_44], eax mov eax, [rbp+var_44] add rsp, 50h pop rbp retn
long long my_close(unsigned int a1, __int16 a2) { unsigned int *v2; // rax int v4; // [rsp+24h] [rbp-2Ch] long long v5; // [rsp+30h] [rbp-20h] unsigned int v6; // [rsp+3Ch] [rbp-14h] __int16 v7; // [rsp+40h] [rbp-10h] v7 = a2; v5 = 0LL; if ( (a2 & 0x18) == 0 ) v7 = a2 | my_global_flags; if ( a1 < my_file_limit && *((_DWORD *)my_file_info + 4 * (int)a1 + 2) ) { v5 = *((_QWORD *)my_file_info + 2 * (int)a1); *((_QWORD *)my_file_info + 2 * (int)a1) = 0LL; *((_DWORD *)my_file_info + 4 * (int)a1 + 2) = 0; } v6 = close(a1); if ( v6 ) { v4 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var() = v4; if ( (v7 & 0x18) != 0 ) { v2 = (unsigned int *)__errno_location(); my_error(4u, v7 & 0x440 | 4LL, v5, *v2); } } if ( v5 ) my_free(v5); _InterlockedExchangeAdd(my_file_opened, 0xFFFFFFFF); return v6; }
my_close: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x20],0x0 JMP 0x00139179 LAB_00139179: MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x18 CMP RAX,0x0 JNZ 0x00139199 LEA RAX,[0x4918d8] MOV RAX,qword ptr [RAX] OR RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x10],RAX LAB_00139199: MOV EAX,dword ptr [RBP + -0x4] LEA RCX,[0x2d9be0] CMP EAX,dword ptr [RCX] JNC 0x00139216 LEA RAX,[0x2d9be8] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x0 JZ 0x00139216 LEA RAX,[0x2d9be8] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX LEA RAX,[0x2d9be8] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RAX],0x0 LEA RAX,[0x2d9be8] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX MOV dword ptr [RAX + 0x8],0x0 LAB_00139216: MOV EDI,dword ptr [RBP + -0x4] CALL 0x00125650 MOV dword ptr [RBP + -0x14],EAX CMP dword ptr [RBP + -0x14],0x0 JZ 0x00139284 JMP 0x00139229 LAB_00139229: JMP 0x0013922b LAB_0013922b: CALL 0x00125050 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CALL 0x0012c180 MOV ECX,dword ptr [RBP + -0x2c] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x18 CMP RAX,0x0 JZ 0x00139282 MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x440 OR RAX,0x4 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x38],RAX CALL 0x00125050 MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX] MOV EDI,0x4 MOV AL,0x0 CALL 0x00137670 LAB_00139282: JMP 0x00139284 LAB_00139284: CMP qword ptr [RBP + -0x20],0x0 JZ 0x00139294 MOV RDI,qword ptr [RBP + -0x20] CALL 0x0012b8e0 LAB_00139294: MOV dword ptr [RBP + -0x24],0xffffffff MOV EAX,dword ptr [RBP + -0x24] LEA RCX,[0x4918e4] XADD.LOCK dword ptr [RCX],EAX MOV dword ptr [RBP + -0x28],EAX MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x44],EAX MOV EAX,dword ptr [RBP + -0x44] ADD RSP,0x50 POP RBP RET
int my_close(uint param_1,ulong param_2) { int iVar1; int iVar2; int *piVar3; long local_28; ulong local_18; local_28 = 0; local_18 = param_2; if ((param_2 & 0x18) == 0) { local_18 = my_global_flags | param_2; } if ((param_1 < my_file_limit) && (*(int *)(my_file_info + (long)(int)param_1 * 0x10 + 8) != 0)) { local_28 = *(long *)(my_file_info + (long)(int)param_1 * 0x10); *(int8 *)(my_file_info + (long)(int)param_1 * 0x10) = 0; *(int4 *)(my_file_info + (long)(int)param_1 * 0x10 + 8) = 0; } iVar2 = close(param_1); if (iVar2 != 0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; if ((local_18 & 0x18) != 0) { piVar3 = __errno_location(); my_error(4,local_18 & 0x440 | 4,local_28,*piVar3); } } if (local_28 != 0) { my_free(local_28); } LOCK(); my_file_opened = my_file_opened + -1; UNLOCK(); return iVar2; }
21,135
mysql_set_character_set_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_set_character_set_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_set_character_set, (parms->mysql, parms->csname), parms->mysql, int, r_int) }
O0
c
mysql_set_character_set_start_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi callq 0x380d0 movl %eax, -0x14(%rbp) movl -0x14(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
mysql_set_character_set_start_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rdi, [rax] mov rax, [rbp+var_10] mov rsi, [rax+8] call mysql_set_character_set mov [rbp+var_14], eax mov ecx, [rbp+var_14] mov rax, [rbp+var_20] mov [rax+8], ecx mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
_DWORD * mysql_set_character_set_start_internal(long long *a1) { _DWORD *result; // rax _DWORD *v2; // [rsp+0h] [rbp-20h] v2 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL); v2[2] = mysql_set_character_set(*a1, a1[1]); result = v2; *v2 = 0; return result; }
mysql_set_character_set_start_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] CALL 0x001380d0 MOV dword ptr [RBP + -0x14],EAX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_set_character_set_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_set_character_set(*param_1,param_1[1]); puVar1[2] = uVar2; *puVar1 = 0; return; }
21,136
mysql_close_options
eloqsql/libmariadb/libmariadb/mariadb_lib.c
static void mysql_close_options(MYSQL *mysql) { if (mysql->options.init_command) { char **begin= (char **)mysql->options.init_command->buffer; char **end= begin + mysql->options.init_command->elements; for (;begin < end; begin++) free(*begin); ma_delete_dynamic(mysql->options.init_command); free(mysql->options.init_command); } free(mysql->options.user); free(mysql->options.host); free(mysql->options.password); free(mysql->options.unix_socket); free(mysql->options.db); free(mysql->options.my_cnf_file); free(mysql->options.my_cnf_group); free(mysql->options.charset_dir); free(mysql->options.charset_name); free(mysql->options.bind_address); free(mysql->options.ssl_key); free(mysql->options.ssl_cert); free(mysql->options.ssl_ca); free(mysql->options.ssl_capath); free(mysql->options.ssl_cipher); if (mysql->options.extension) { struct mysql_async_context *ctxt; if ((ctxt = mysql->options.extension->async_context)) { my_context_destroy(&ctxt->async_context); free(ctxt); mysql->options.extension->async_context= 0; } free(mysql->options.extension->plugin_dir); free(mysql->options.extension->default_auth); free(mysql->options.extension->db_driver); free(mysql->options.extension->ssl_crl); free(mysql->options.extension->ssl_crlpath); free(mysql->options.extension->tls_fp); free(mysql->options.extension->tls_fp_list); free(mysql->options.extension->tls_pw); free(mysql->options.extension->tls_version); free(mysql->options.extension->url); free(mysql->options.extension->connection_handler); free(mysql->options.extension->proxy_header); if(ma_hashtbl_inited(&mysql->options.extension->connect_attrs)) ma_hashtbl_free(&mysql->options.extension->connect_attrs); if (ma_hashtbl_inited(&mysql->options.extension->userdata)) ma_hashtbl_free(&mysql->options.extension->userdata); free(mysql->options.extension->restricted_auth); free(mysql->options.extension->rpl_host); } free(mysql->options.extension); /* clear all pointer */ memset(&mysql->options, 0, sizeof(mysql->options)); }
O0
c
mysql_close_options: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x3d8(%rax) je 0x1d56d movq -0x8(%rbp), %rax movq 0x3d8(%rax), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rcx movq 0x3d8(%rcx), %rcx movl 0x8(%rcx), %ecx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax cmpq -0x18(%rbp), %rax jae 0x1d54d movq -0x10(%rbp), %rax movq (%rax), %rdi callq 0x13520 movq -0x10(%rbp), %rax addq $0x8, %rax movq %rax, -0x10(%rbp) jmp 0x1d529 movq -0x8(%rbp), %rax movq 0x3d8(%rax), %rdi callq 0x42da0 movq -0x8(%rbp), %rax movq 0x3d8(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x3b8(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x3b0(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x3c0(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x3c8(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x3d0(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x3e0(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x3e8(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x3f0(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x3f8(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x448(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x400(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x408(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x410(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x418(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x420(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax cmpq $0x0, 0x480(%rax) je 0x1d838 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax je 0x1d6b1 movq -0x20(%rbp), %rdi addq $0x38, %rdi callq 0x3f530 movq -0x20(%rbp), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq $0x0, 0x28(%rax) movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq (%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x8(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x88(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x10(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x18(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x90(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x98(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0xa0(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0xc0(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0xb0(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0xd0(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x130(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax cmpq $0x0, 0x48(%rax) je 0x1d7de movq -0x8(%rbp), %rax movq 0x480(%rax), %rdi addq $0x30, %rdi callq 0x44a00 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax cmpq $0x0, 0xf8(%rax) je 0x1d80a movq -0x8(%rbp), %rax movq 0x480(%rax), %rdi addq $0xe0, %rdi callq 0x44a00 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x150(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rax movq 0x158(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rax movq 0x480(%rax), %rdi callq 0x13520 movq -0x8(%rbp), %rdi addq $0x390, %rdi # imm = 0x390 xorl %esi, %esi movl $0xf8, %edx callq 0x13250 addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mysql_close_options: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+3D8h], 0 jz short loc_1D56D mov rax, [rbp+var_8] mov rax, [rax+3D8h] mov rax, [rax] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rcx, [rbp+var_8] mov rcx, [rcx+3D8h] mov ecx, [rcx+8] shl rcx, 3 add rax, rcx mov [rbp+var_18], rax loc_1D529: mov rax, [rbp+var_10] cmp rax, [rbp+var_18] jnb short loc_1D54D mov rax, [rbp+var_10] mov rdi, [rax] call _free mov rax, [rbp+var_10] add rax, 8 mov [rbp+var_10], rax jmp short loc_1D529 loc_1D54D: mov rax, [rbp+var_8] mov rdi, [rax+3D8h] call ma_delete_dynamic mov rax, [rbp+var_8] mov rdi, [rax+3D8h] call _free loc_1D56D: mov rax, [rbp+var_8] mov rdi, [rax+3B8h] call _free mov rax, [rbp+var_8] mov rdi, [rax+3B0h] call _free mov rax, [rbp+var_8] mov rdi, [rax+3C0h] call _free mov rax, [rbp+var_8] mov rdi, [rax+3C8h] call _free mov rax, [rbp+var_8] mov rdi, [rax+3D0h] call _free mov rax, [rbp+var_8] mov rdi, [rax+3E0h] call _free mov rax, [rbp+var_8] mov rdi, [rax+3E8h] call _free mov rax, [rbp+var_8] mov rdi, [rax+3F0h] call _free mov rax, [rbp+var_8] mov rdi, [rax+3F8h] call _free mov rax, [rbp+var_8] mov rdi, [rax+448h] call _free mov rax, [rbp+var_8] mov rdi, [rax+400h] call _free mov rax, [rbp+var_8] mov rdi, [rax+408h] call _free mov rax, [rbp+var_8] mov rdi, [rax+410h] call _free mov rax, [rbp+var_8] mov rdi, [rax+418h] call _free mov rax, [rbp+var_8] mov rdi, [rax+420h] call _free mov rax, [rbp+var_8] cmp qword ptr [rax+480h], 0 jz loc_1D838 mov rax, [rbp+var_8] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax cmp rax, 0 jz short loc_1D6B1 mov rdi, [rbp+var_20] add rdi, 38h ; '8' call my_context_destroy mov rdi, [rbp+var_20] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov qword ptr [rax+28h], 0 loc_1D6B1: mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+8] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+88h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+10h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+18h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+90h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+98h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+0A0h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+0C0h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+0B0h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+0D0h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+130h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] cmp qword ptr [rax+48h], 0 jz short loc_1D7DE mov rax, [rbp+var_8] mov rdi, [rax+480h] add rdi, 30h ; '0' call ma_hashtbl_free loc_1D7DE: mov rax, [rbp+var_8] mov rax, [rax+480h] cmp qword ptr [rax+0F8h], 0 jz short loc_1D80A mov rax, [rbp+var_8] mov rdi, [rax+480h] add rdi, 0E0h call ma_hashtbl_free loc_1D80A: mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+150h] call _free mov rax, [rbp+var_8] mov rax, [rax+480h] mov rdi, [rax+158h] call _free loc_1D838: mov rax, [rbp+var_8] mov rdi, [rax+480h] call _free mov rdi, [rbp+var_8] add rdi, 390h xor esi, esi mov edx, 0F8h call _memset add rsp, 20h pop rbp retn
long long mysql_close_options(long long a1) { long long v2; // [rsp+0h] [rbp-20h] _QWORD *v3; // [rsp+8h] [rbp-18h] _QWORD *v4; // [rsp+10h] [rbp-10h] if ( *(_QWORD *)(a1 + 984) ) { v4 = **(_QWORD ***)(a1 + 984); v3 = &v4[*(unsigned int *)(*(_QWORD *)(a1 + 984) + 8LL)]; while ( v4 < v3 ) free(*v4++); ma_delete_dynamic(*(_QWORD *)(a1 + 984)); free(*(_QWORD *)(a1 + 984)); } free(*(_QWORD *)(a1 + 952)); free(*(_QWORD *)(a1 + 944)); free(*(_QWORD *)(a1 + 960)); free(*(_QWORD *)(a1 + 968)); free(*(_QWORD *)(a1 + 976)); free(*(_QWORD *)(a1 + 992)); free(*(_QWORD *)(a1 + 1000)); free(*(_QWORD *)(a1 + 1008)); free(*(_QWORD *)(a1 + 1016)); free(*(_QWORD *)(a1 + 1096)); free(*(_QWORD *)(a1 + 1024)); free(*(_QWORD *)(a1 + 1032)); free(*(_QWORD *)(a1 + 1040)); free(*(_QWORD *)(a1 + 1048)); free(*(_QWORD *)(a1 + 1056)); if ( *(_QWORD *)(a1 + 1152) ) { v2 = *(_QWORD *)(*(_QWORD *)(a1 + 1152) + 40LL); if ( v2 ) { my_context_destroy(v2 + 56); free(v2); *(_QWORD *)(*(_QWORD *)(a1 + 1152) + 40LL) = 0LL; } free(**(_QWORD **)(a1 + 1152)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 8LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 136LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 16LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 24LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 144LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 152LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 160LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 192LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 176LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 208LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 304LL)); if ( *(_QWORD *)(*(_QWORD *)(a1 + 1152) + 72LL) ) ma_hashtbl_free(*(_QWORD *)(a1 + 1152) + 48LL); if ( *(_QWORD *)(*(_QWORD *)(a1 + 1152) + 248LL) ) ma_hashtbl_free(*(_QWORD *)(a1 + 1152) + 224LL); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 336LL)); free(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 344LL)); } free(*(_QWORD *)(a1 + 1152)); return memset(a1 + 912, 0LL, 248LL); }
mysql_close_options: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x3d8],0x0 JZ 0x0011d56d MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x3d8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0x3d8] MOV ECX,dword ptr [RCX + 0x8] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX LAB_0011d529: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x18] JNC 0x0011d54d MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x8 MOV qword ptr [RBP + -0x10],RAX JMP 0x0011d529 LAB_0011d54d: MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3d8] CALL 0x00142da0 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3d8] CALL 0x00113520 LAB_0011d56d: MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3b8] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3b0] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3c0] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3c8] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3d0] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3e0] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3e8] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3f0] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x3f8] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x448] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x400] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x408] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x410] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x418] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x420] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x480],0x0 JZ 0x0011d838 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JZ 0x0011d6b1 MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x38 CALL 0x0013f530 MOV RDI,qword ptr [RBP + -0x20] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV qword ptr [RAX + 0x28],0x0 LAB_0011d6b1: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0x8] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0x88] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0x10] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0x18] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0x90] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0x98] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0xa0] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0xc0] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0xb0] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0xd0] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0x130] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] CMP qword ptr [RAX + 0x48],0x0 JZ 0x0011d7de MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x480] ADD RDI,0x30 CALL 0x00144a00 LAB_0011d7de: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] CMP qword ptr [RAX + 0xf8],0x0 JZ 0x0011d80a MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x480] ADD RDI,0xe0 CALL 0x00144a00 LAB_0011d80a: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0x150] CALL 0x00113520 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x480] MOV RDI,qword ptr [RAX + 0x158] CALL 0x00113520 LAB_0011d838: MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x480] CALL 0x00113520 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x390 XOR ESI,ESI MOV EDX,0xf8 CALL 0x00113250 ADD RSP,0x20 POP RBP RET
void mysql_close_options(long param_1) { void *__ptr; int8 *puVar1; int8 *local_18; if (*(long *)(param_1 + 0x3d8) != 0) { local_18 = (int8 *)**(long **)(param_1 + 0x3d8); puVar1 = local_18 + *(uint *)(*(long *)(param_1 + 0x3d8) + 8); for (; local_18 < puVar1; local_18 = local_18 + 1) { free((void *)*local_18); } ma_delete_dynamic(*(int8 *)(param_1 + 0x3d8)); free(*(void **)(param_1 + 0x3d8)); } free(*(void **)(param_1 + 0x3b8)); free(*(void **)(param_1 + 0x3b0)); free(*(void **)(param_1 + 0x3c0)); free(*(void **)(param_1 + 0x3c8)); free(*(void **)(param_1 + 0x3d0)); free(*(void **)(param_1 + 0x3e0)); free(*(void **)(param_1 + 1000)); free(*(void **)(param_1 + 0x3f0)); free(*(void **)(param_1 + 0x3f8)); free(*(void **)(param_1 + 0x448)); free(*(void **)(param_1 + 0x400)); free(*(void **)(param_1 + 0x408)); free(*(void **)(param_1 + 0x410)); free(*(void **)(param_1 + 0x418)); free(*(void **)(param_1 + 0x420)); if (*(long *)(param_1 + 0x480) != 0) { __ptr = *(void **)(*(long *)(param_1 + 0x480) + 0x28); if (__ptr != (void *)0x0) { my_context_destroy((long)__ptr + 0x38); free(__ptr); *(int8 *)(*(long *)(param_1 + 0x480) + 0x28) = 0; } free((void *)**(int8 **)(param_1 + 0x480)); free(*(void **)(*(long *)(param_1 + 0x480) + 8)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x88)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x10)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x18)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x90)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x98)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xa0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xc0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xb0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xd0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x130)); if (*(long *)(*(long *)(param_1 + 0x480) + 0x48) != 0) { ma_hashtbl_free(*(long *)(param_1 + 0x480) + 0x30); } if (*(long *)(*(long *)(param_1 + 0x480) + 0xf8) != 0) { ma_hashtbl_free(*(long *)(param_1 + 0x480) + 0xe0); } free(*(void **)(*(long *)(param_1 + 0x480) + 0x150)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x158)); } free(*(void **)(param_1 + 0x480)); memset((void *)(param_1 + 0x390),0,0xf8); return; }
21,137
mysql_close_options
eloqsql/libmariadb/libmariadb/mariadb_lib.c
static void mysql_close_options(MYSQL *mysql) { if (mysql->options.init_command) { char **begin= (char **)mysql->options.init_command->buffer; char **end= begin + mysql->options.init_command->elements; for (;begin < end; begin++) free(*begin); ma_delete_dynamic(mysql->options.init_command); free(mysql->options.init_command); } free(mysql->options.user); free(mysql->options.host); free(mysql->options.password); free(mysql->options.unix_socket); free(mysql->options.db); free(mysql->options.my_cnf_file); free(mysql->options.my_cnf_group); free(mysql->options.charset_dir); free(mysql->options.charset_name); free(mysql->options.bind_address); free(mysql->options.ssl_key); free(mysql->options.ssl_cert); free(mysql->options.ssl_ca); free(mysql->options.ssl_capath); free(mysql->options.ssl_cipher); if (mysql->options.extension) { struct mysql_async_context *ctxt; if ((ctxt = mysql->options.extension->async_context)) { my_context_destroy(&ctxt->async_context); free(ctxt); mysql->options.extension->async_context= 0; } free(mysql->options.extension->plugin_dir); free(mysql->options.extension->default_auth); free(mysql->options.extension->db_driver); free(mysql->options.extension->ssl_crl); free(mysql->options.extension->ssl_crlpath); free(mysql->options.extension->tls_fp); free(mysql->options.extension->tls_fp_list); free(mysql->options.extension->tls_pw); free(mysql->options.extension->tls_version); free(mysql->options.extension->url); free(mysql->options.extension->connection_handler); free(mysql->options.extension->proxy_header); if(ma_hashtbl_inited(&mysql->options.extension->connect_attrs)) ma_hashtbl_free(&mysql->options.extension->connect_attrs); if (ma_hashtbl_inited(&mysql->options.extension->userdata)) ma_hashtbl_free(&mysql->options.extension->userdata); free(mysql->options.extension->restricted_auth); free(mysql->options.extension->rpl_host); } free(mysql->options.extension); /* clear all pointer */ memset(&mysql->options, 0, sizeof(mysql->options)); }
O3
c
mysql_close_options: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x3d8(%rdi), %rdi testq %rdi, %rdi je 0x19b59 movl 0x8(%rdi), %eax testq %rax, %rax je 0x19b48 movq (%rdi), %r14 leaq (%r14,%rax,8), %r15 movq (%r14), %rdi callq 0x13570 addq $0x8, %r14 cmpq %r15, %r14 jb 0x19b30 movq 0x3d8(%rbx), %rdi callq 0x2f978 movq 0x3d8(%rbx), %rdi callq 0x13570 movq 0x3b8(%rbx), %rdi callq 0x13570 movq 0x3b0(%rbx), %rdi callq 0x13570 movq 0x3c0(%rbx), %rdi callq 0x13570 movq 0x3c8(%rbx), %rdi callq 0x13570 movq 0x3d0(%rbx), %rdi callq 0x13570 movq 0x3e0(%rbx), %rdi callq 0x13570 movq 0x3e8(%rbx), %rdi callq 0x13570 movq 0x3f0(%rbx), %rdi callq 0x13570 movq 0x3f8(%rbx), %rdi callq 0x13570 movq 0x448(%rbx), %rdi callq 0x13570 movq 0x400(%rbx), %rdi callq 0x13570 movq 0x408(%rbx), %rdi callq 0x13570 movq 0x410(%rbx), %rdi callq 0x13570 movq 0x418(%rbx), %rdi callq 0x13570 movq 0x420(%rbx), %rdi callq 0x13570 movq 0x480(%rbx), %rax testq %rax, %rax je 0x19d80 movq 0x28(%rax), %r14 testq %r14, %r14 je 0x19c4d leaq 0x38(%r14), %rdi callq 0x2d95d movq %r14, %rdi callq 0x13570 movq 0x480(%rbx), %rax movq $0x0, 0x28(%rax) movq 0x480(%rbx), %rax movq (%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0x8(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0x88(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0x10(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0x18(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0x90(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0x98(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0xa0(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0xc0(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0xb0(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0xd0(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0x130(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rdi cmpq $0x0, 0x48(%rdi) je 0x19d3b addq $0x30, %rdi callq 0x3055d movq 0x480(%rbx), %rdi cmpq $0x0, 0xf8(%rdi) je 0x19d58 addq $0xe0, %rdi callq 0x3055d movq 0x480(%rbx), %rdi movq 0x150(%rdi), %rdi callq 0x13570 movq 0x480(%rbx), %rax movq 0x158(%rax), %rdi callq 0x13570 movq 0x480(%rbx), %rdi jmp 0x19d82 xorl %edi, %edi addq $0x390, %rbx # imm = 0x390 callq 0x13570 movl $0xf8, %edx movq %rbx, %rdi xorl %esi, %esi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x13260
mysql_close_options: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi mov rdi, [rdi+3D8h] test rdi, rdi jz short loc_19B59 mov eax, [rdi+8] test rax, rax jz short loc_19B48 mov r14, [rdi] lea r15, [r14+rax*8] loc_19B30: mov rdi, [r14] call _free add r14, 8 cmp r14, r15 jb short loc_19B30 mov rdi, [rbx+3D8h] loc_19B48: call ma_delete_dynamic mov rdi, [rbx+3D8h] call _free loc_19B59: mov rdi, [rbx+3B8h] call _free mov rdi, [rbx+3B0h] call _free mov rdi, [rbx+3C0h] call _free mov rdi, [rbx+3C8h] call _free mov rdi, [rbx+3D0h] call _free mov rdi, [rbx+3E0h] call _free mov rdi, [rbx+3E8h] call _free mov rdi, [rbx+3F0h] call _free mov rdi, [rbx+3F8h] call _free mov rdi, [rbx+448h] call _free mov rdi, [rbx+400h] call _free mov rdi, [rbx+408h] call _free mov rdi, [rbx+410h] call _free mov rdi, [rbx+418h] call _free mov rdi, [rbx+420h] call _free mov rax, [rbx+480h] test rax, rax jz loc_19D80 mov r14, [rax+28h] test r14, r14 jz short loc_19C4D lea rdi, [r14+38h] call my_context_destroy mov rdi, r14 call _free mov rax, [rbx+480h] mov qword ptr [rax+28h], 0 mov rax, [rbx+480h] loc_19C4D: mov rdi, [rax] call _free mov rax, [rbx+480h] mov rdi, [rax+8] call _free mov rax, [rbx+480h] mov rdi, [rax+88h] call _free mov rax, [rbx+480h] mov rdi, [rax+10h] call _free mov rax, [rbx+480h] mov rdi, [rax+18h] call _free mov rax, [rbx+480h] mov rdi, [rax+90h] call _free mov rax, [rbx+480h] mov rdi, [rax+98h] call _free mov rax, [rbx+480h] mov rdi, [rax+0A0h] call _free mov rax, [rbx+480h] mov rdi, [rax+0C0h] call _free mov rax, [rbx+480h] mov rdi, [rax+0B0h] call _free mov rax, [rbx+480h] mov rdi, [rax+0D0h] call _free mov rax, [rbx+480h] mov rdi, [rax+130h] call _free mov rdi, [rbx+480h] cmp qword ptr [rdi+48h], 0 jz short loc_19D3B add rdi, 30h ; '0' call ma_hashtbl_free mov rdi, [rbx+480h] loc_19D3B: cmp qword ptr [rdi+0F8h], 0 jz short loc_19D58 add rdi, 0E0h call ma_hashtbl_free mov rdi, [rbx+480h] loc_19D58: mov rdi, [rdi+150h] call _free mov rax, [rbx+480h] mov rdi, [rax+158h] call _free mov rdi, [rbx+480h] jmp short loc_19D82 loc_19D80: xor edi, edi loc_19D82: add rbx, 390h call _free mov edx, 0F8h mov rdi, rbx xor esi, esi add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _memset
long long mysql_close_options(_QWORD *a1) { long long v2; // rdi _QWORD *v3; // r14 unsigned long long v4; // r15 _QWORD *v5; // rax long long v6; // r14 _QWORD *v7; // rdi long long v8; // rdi v2 = a1[123]; if ( v2 ) { if ( *(_DWORD *)(v2 + 8) ) { v3 = *(_QWORD **)v2; v4 = *(_QWORD *)v2 + 8LL * *(unsigned int *)(v2 + 8); do free(*v3++); while ( (unsigned long long)v3 < v4 ); v2 = a1[123]; } ma_delete_dynamic(v2); free(a1[123]); } free(a1[119]); free(a1[118]); free(a1[120]); free(a1[121]); free(a1[122]); free(a1[124]); free(a1[125]); free(a1[126]); free(a1[127]); free(a1[137]); free(a1[128]); free(a1[129]); free(a1[130]); free(a1[131]); free(a1[132]); v5 = (_QWORD *)a1[144]; if ( v5 ) { v6 = v5[5]; if ( v6 ) { my_context_destroy(v6 + 56); free(v6); *(_QWORD *)(a1[144] + 40LL) = 0LL; v5 = (_QWORD *)a1[144]; } free(*v5); free(*(_QWORD *)(a1[144] + 8LL)); free(*(_QWORD *)(a1[144] + 136LL)); free(*(_QWORD *)(a1[144] + 16LL)); free(*(_QWORD *)(a1[144] + 24LL)); free(*(_QWORD *)(a1[144] + 144LL)); free(*(_QWORD *)(a1[144] + 152LL)); free(*(_QWORD *)(a1[144] + 160LL)); free(*(_QWORD *)(a1[144] + 192LL)); free(*(_QWORD *)(a1[144] + 176LL)); free(*(_QWORD *)(a1[144] + 208LL)); free(*(_QWORD *)(a1[144] + 304LL)); v7 = (_QWORD *)a1[144]; if ( v7[9] ) { ma_hashtbl_free(v7 + 6); v7 = (_QWORD *)a1[144]; } if ( v7[31] ) { ma_hashtbl_free(v7 + 28); v7 = (_QWORD *)a1[144]; } free(v7[42]); free(*(_QWORD *)(a1[144] + 344LL)); v8 = a1[144]; } else { v8 = 0LL; } free(v8); return memset(a1 + 114, 0LL, 248LL); }
mysql_close_options: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x3d8] TEST RDI,RDI JZ 0x00119b59 MOV EAX,dword ptr [RDI + 0x8] TEST RAX,RAX JZ 0x00119b48 MOV R14,qword ptr [RDI] LEA R15,[R14 + RAX*0x8] LAB_00119b30: MOV RDI,qword ptr [R14] CALL 0x00113570 ADD R14,0x8 CMP R14,R15 JC 0x00119b30 MOV RDI,qword ptr [RBX + 0x3d8] LAB_00119b48: CALL 0x0012f978 MOV RDI,qword ptr [RBX + 0x3d8] CALL 0x00113570 LAB_00119b59: MOV RDI,qword ptr [RBX + 0x3b8] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x3b0] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x3c0] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x3c8] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x3d0] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x3e0] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x3e8] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x3f0] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x3f8] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x448] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x400] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x408] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x410] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x418] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x420] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] TEST RAX,RAX JZ 0x00119d80 MOV R14,qword ptr [RAX + 0x28] TEST R14,R14 JZ 0x00119c4d LEA RDI,[R14 + 0x38] CALL 0x0012d95d MOV RDI,R14 CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV qword ptr [RAX + 0x28],0x0 MOV RAX,qword ptr [RBX + 0x480] LAB_00119c4d: MOV RDI,qword ptr [RAX] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x8] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x88] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x10] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x18] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x90] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x98] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0xa0] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0xc0] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0xb0] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0xd0] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x130] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x480] CMP qword ptr [RDI + 0x48],0x0 JZ 0x00119d3b ADD RDI,0x30 CALL 0x0013055d MOV RDI,qword ptr [RBX + 0x480] LAB_00119d3b: CMP qword ptr [RDI + 0xf8],0x0 JZ 0x00119d58 ADD RDI,0xe0 CALL 0x0013055d MOV RDI,qword ptr [RBX + 0x480] LAB_00119d58: MOV RDI,qword ptr [RDI + 0x150] CALL 0x00113570 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x158] CALL 0x00113570 MOV RDI,qword ptr [RBX + 0x480] JMP 0x00119d82 LAB_00119d80: XOR EDI,EDI LAB_00119d82: ADD RBX,0x390 CALL 0x00113570 MOV EDX,0xf8 MOV RDI,RBX XOR ESI,ESI ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00113260
void mysql_close_options(long param_1) { int8 *puVar1; long *plVar2; long lVar3; void *pvVar4; int8 *puVar5; plVar2 = *(long **)(param_1 + 0x3d8); if (plVar2 != (long *)0x0) { if ((ulong)*(uint *)(plVar2 + 1) != 0) { puVar5 = (int8 *)*plVar2; puVar1 = puVar5 + *(uint *)(plVar2 + 1); do { free((void *)*puVar5); puVar5 = puVar5 + 1; } while (puVar5 < puVar1); plVar2 = *(long **)(param_1 + 0x3d8); } ma_delete_dynamic(plVar2); free(*(void **)(param_1 + 0x3d8)); } free(*(void **)(param_1 + 0x3b8)); free(*(void **)(param_1 + 0x3b0)); free(*(void **)(param_1 + 0x3c0)); free(*(void **)(param_1 + 0x3c8)); free(*(void **)(param_1 + 0x3d0)); free(*(void **)(param_1 + 0x3e0)); free(*(void **)(param_1 + 1000)); free(*(void **)(param_1 + 0x3f0)); free(*(void **)(param_1 + 0x3f8)); free(*(void **)(param_1 + 0x448)); free(*(void **)(param_1 + 0x400)); free(*(void **)(param_1 + 0x408)); free(*(void **)(param_1 + 0x410)); free(*(void **)(param_1 + 0x418)); free(*(void **)(param_1 + 0x420)); puVar1 = *(int8 **)(param_1 + 0x480); if (puVar1 == (int8 *)0x0) { pvVar4 = (void *)0x0; } else { pvVar4 = (void *)puVar1[5]; if (pvVar4 != (void *)0x0) { my_context_destroy((long)pvVar4 + 0x38); free(pvVar4); *(int8 *)(*(long *)(param_1 + 0x480) + 0x28) = 0; puVar1 = *(int8 **)(param_1 + 0x480); } free((void *)*puVar1); free(*(void **)(*(long *)(param_1 + 0x480) + 8)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x88)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x10)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x18)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x90)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x98)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xa0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xc0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xb0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xd0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x130)); lVar3 = *(long *)(param_1 + 0x480); if (*(long *)(lVar3 + 0x48) != 0) { ma_hashtbl_free(lVar3 + 0x30); lVar3 = *(long *)(param_1 + 0x480); } if (*(long *)(lVar3 + 0xf8) != 0) { ma_hashtbl_free(lVar3 + 0xe0); lVar3 = *(long *)(param_1 + 0x480); } free(*(void **)(lVar3 + 0x150)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x158)); pvVar4 = *(void **)(param_1 + 0x480); } free(pvVar4); memset((void *)(param_1 + 0x390),0,0xf8); return; }
21,138
testing::internal::UnitTestOptions::GetOutputFormat[abi:cxx11]()
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
std::string UnitTestOptions::GetOutputFormat() { std::string s = GTEST_FLAG_GET(output); const char* const gtest_output_flag = s.c_str(); const char* const colon = strchr(gtest_output_flag, ':'); return (colon == nullptr) ? std::string(gtest_output_flag) : std::string(gtest_output_flag, static_cast<size_t>(colon - gtest_output_flag)); }
O1
cpp
testing::internal::UnitTestOptions::GetOutputFormat[abi:cxx11](): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq 0x3e9f9(%rip), %rsi # 0x596d0 movq 0x3e9fa(%rip), %rdx # 0x596d8 addq %rsi, %rdx leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x39594 movq (%r14), %r15 movq %r15, %rdi movl $0x3a, %esi callq 0x81d0 movq %rax, %r14 testq %rax, %rax je 0x1ad1d leaq 0x10(%rbx), %rax movq %rax, (%rbx) movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x39504 jmp 0x1ad2d leaq 0x7(%rsp), %rdx movq %rbx, %rdi movq %r15, %rsi callq 0x81e0 testq %r14, %r14 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x1ad47 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x1ad58 movq %rax, %rbx testq %r14, %r14 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x1ad75 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990 nop
_ZN7testing8internal15UnitTestOptions15GetOutputFormatB5cxx11Ev: push r15 push r14 push r12 push rbx sub rsp, 28h mov rbx, rdi lea r12, [rsp+48h+var_30] mov [r12-10h], r12 mov rsi, cs:_ZN7testing18FLAGS_gtest_outputB5cxx11E; testing::FLAGS_gtest_output mov rdx, cs:qword_596D8 add rdx, rsi lea r14, [rsp+48h+var_40] mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov r15, [r14] mov rdi, r15 mov esi, 3Ah ; ':' call _strchr mov r14, rax test rax, rax jz short loc_1AD1D lea rax, [rbx+10h] mov [rbx], rax mov rdi, rbx mov rsi, r15 mov rdx, 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) jmp short loc_1AD2D loc_1AD1D: lea rdx, [rsp+48h+var_41] mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&) loc_1AD2D: test r14, r14 mov rdi, [rsp+48h+var_40]; void * cmp rdi, r12 jz short loc_1AD47 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1AD47: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_1AD58: mov rbx, rax test r14, r14 mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_1AD75 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1AD75: mov rdi, rbx call __Unwind_Resume
_QWORD * testing::internal::UnitTestOptions::GetOutputFormat[abi:cxx11](_QWORD *a1) { void *v1; // r15 long long v2; // r14 char v4; // [rsp+7h] [rbp-41h] BYREF void *v5; // [rsp+8h] [rbp-40h] BYREF _QWORD v6[6]; // [rsp+18h] [rbp-30h] BYREF v5 = v6; std::string::_M_construct<char *>( &v5, testing::FLAGS_gtest_output[abi:cxx11], testing::FLAGS_gtest_output[abi:cxx11] + qword_596D8); v1 = v5; v2 = strchr(v5, 58LL); if ( v2 ) { *a1 = a1 + 2; std::string::_M_construct<char const*>(a1, v1, v2); } else { std::string::basic_string(a1, v1, &v4); } if ( v5 != v6 ) operator delete(v5, v6[0] + 1LL); return a1; }
GetOutputFormat[abi:cxx11]: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV RSI,qword ptr [0x001596d0] MOV RDX,qword ptr [0x001596d8] ADD RDX,RSI LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x00139594 MOV R15,qword ptr [R14] MOV RDI,R15 MOV ESI,0x3a CALL 0x001081d0 MOV R14,RAX TEST RAX,RAX JZ 0x0011ad1d LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LAB_0011ad0d: MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x00139504 JMP 0x0011ad2d LAB_0011ad1d: LEA RDX,[RSP + 0x7] MOV RDI,RBX MOV RSI,R15 CALL 0x001081e0 LAB_0011ad2d: TEST R14,R14 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x0011ad47 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 LAB_0011ad47: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 RET
/* testing::internal::UnitTestOptions::GetOutputFormat[abi:cxx11]() */ UnitTestOptions * __thiscall testing::internal::UnitTestOptions::GetOutputFormat_abi_cxx11_(UnitTestOptions *this) { long *plVar1; char *pcVar2; allocator local_41; long *local_40 [2]; long local_30 [2]; local_40[0] = local_30; std::__cxx11::string::_M_construct<char*> (local_40,FLAGS_gtest_output_abi_cxx11_,DAT_001596d8 + FLAGS_gtest_output_abi_cxx11_); plVar1 = local_40[0]; pcVar2 = strchr((char *)local_40[0],0x3a); if (pcVar2 == (char *)0x0) { /* try { // try from 0011ad1d to 0011ad2c has its CatchHandler @ 0011ad56 */ std::__cxx11::string::string((string *)this,(char *)plVar1,&local_41); } else { *(UnitTestOptions **)this = this + 0x10; /* try { // try from 0011ad0d to 0011ad1a has its CatchHandler @ 0011ad58 */ std::__cxx11::string::_M_construct<char_const*>(this,plVar1,pcVar2); } if (local_40[0] != local_30) { operator_delete(local_40[0],local_30[0] + 1); } return this; }
21,139
my_utf8mb3_uni_no_range
eloqsql/strings/ctype-utf8.c
static int my_utf8mb3_uni_no_range(CHARSET_INFO *cs __attribute__((unused)), my_wc_t * pwc, const uchar *s) { uchar c; c= s[0]; if (c < 0x80) { *pwc = c; return 1; } if (c < 0xc2) return MY_CS_ILSEQ; if (c < 0xe0) { if (!((s[1] ^ 0x80) < 0x40)) return MY_CS_ILSEQ; *pwc= UTF8MB2_CODE(c, s[1]); return 2; } if (c < 0xf0) { if (!IS_UTF8MB3_STEP2(c, s[1], s[2])) return MY_CS_ILSEQ; *pwc= UTF8MB3_CODE(c, s[1], s[2]); return 3; } return MY_CS_ILSEQ; }
O0
c
my_utf8mb3_uni_no_range: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x20(%rbp), %rax movb (%rax), %al movb %al, -0x21(%rbp) movzbl -0x21(%rbp), %eax cmpl $0x80, %eax jge 0xb72ed movzbl -0x21(%rbp), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0xb7403 movzbl -0x21(%rbp), %eax cmpl $0xc2, %eax jge 0xb7304 movl $0x0, -0x4(%rbp) jmp 0xb7403 movzbl -0x21(%rbp), %eax cmpl $0xe0, %eax jge 0xb7360 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jl 0xb732d movl $0x0, -0x4(%rbp) jmp 0xb7403 movzbl -0x21(%rbp), %eax andl $0x1f, %eax movslq %eax, %rcx shlq $0x6, %rcx movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cltq orq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x2, -0x4(%rbp) jmp 0xb7403 movzbl -0x21(%rbp), %eax cmpl $0xf0, %eax jge 0xb73fc movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0xb73ad movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0xb73ad movzbl -0x21(%rbp), %eax cmpl $0xe1, %eax jge 0xb73b6 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xa0, %eax jge 0xb73b6 movl $0x0, -0x4(%rbp) jmp 0xb7403 movzbl -0x21(%rbp), %eax andl $0xf, %eax movslq %eax, %rcx shlq $0xc, %rcx movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cltq shlq $0x6, %rax orq %rax, %rcx movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cltq orq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x3, -0x4(%rbp) jmp 0xb7403 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax,%rax)
my_utf8mb3_uni_no_range: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_20] mov al, [rax] mov [rbp+var_21], al movzx eax, [rbp+var_21] cmp eax, 80h jge short loc_B72ED movzx eax, [rbp+var_21] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_B7403 loc_B72ED: movzx eax, [rbp+var_21] cmp eax, 0C2h jge short loc_B7304 mov [rbp+var_4], 0 jmp loc_B7403 loc_B7304: movzx eax, [rbp+var_21] cmp eax, 0E0h jge short loc_B7360 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jl short loc_B732D mov [rbp+var_4], 0 jmp loc_B7403 loc_B732D: movzx eax, [rbp+var_21] and eax, 1Fh movsxd rcx, eax shl rcx, 6 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cdqe or rcx, rax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 2 jmp loc_B7403 loc_B7360: movzx eax, [rbp+var_21] cmp eax, 0F0h jge loc_B73FC mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jge short loc_B73AD mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cmp eax, 40h ; '@' jge short loc_B73AD movzx eax, [rbp+var_21] cmp eax, 0E1h jge short loc_B73B6 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 0A0h jge short loc_B73B6 loc_B73AD: mov [rbp+var_4], 0 jmp short loc_B7403 loc_B73B6: movzx eax, [rbp+var_21] and eax, 0Fh movsxd rcx, eax shl rcx, 0Ch mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cdqe shl rax, 6 or rcx, rax mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cdqe or rcx, rax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 3 jmp short loc_B7403 loc_B73FC: mov [rbp+var_4], 0 loc_B7403: mov eax, [rbp+var_4] pop rbp retn
long long my_utf8mb3_uni_no_range(long long a1, unsigned long long *a2, unsigned __int8 *a3) { unsigned __int8 v4; // [rsp+1h] [rbp-21h] v4 = *a3; if ( *a3 >= 0x80u ) { if ( v4 >= 0xC2u ) { if ( v4 >= 0xE0u ) { if ( v4 >= 0xF0u ) { return 0; } else if ( (a3[1] ^ 0x80) < 64 && (a3[2] ^ 0x80) < 64 && (v4 >= 0xE1u || a3[1] >= 0xA0u) ) { *a2 = a3[2] ^ 0x80u | ((long long)(a3[1] ^ 0x80u) << 6) | ((unsigned long long)(v4 & 0xF) << 12); return 3; } else { return 0; } } else if ( (a3[1] ^ 0x80) < 64 ) { *a2 = a3[1] ^ 0x80u | ((unsigned long long)(v4 & 0x1F) << 6); return 2; } else { return 0; } } else { return 0; } } else { *a2 = v4; return 1; } }
my_utf8mb3_uni_no_range: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x20] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x21],AL MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0x80 JGE 0x001b72ed MOVZX EAX,byte ptr [RBP + -0x21] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x001b7403 LAB_001b72ed: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xc2 JGE 0x001b7304 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001b7403 LAB_001b7304: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xe0 JGE 0x001b7360 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JL 0x001b732d MOV dword ptr [RBP + -0x4],0x0 JMP 0x001b7403 LAB_001b732d: MOVZX EAX,byte ptr [RBP + -0x21] AND EAX,0x1f MOVSXD RCX,EAX SHL RCX,0x6 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CDQE OR RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x2 JMP 0x001b7403 LAB_001b7360: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf0 JGE 0x001b73fc MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JGE 0x001b73ad MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CMP EAX,0x40 JGE 0x001b73ad MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xe1 JGE 0x001b73b6 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xa0 JGE 0x001b73b6 LAB_001b73ad: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001b7403 LAB_001b73b6: MOVZX EAX,byte ptr [RBP + -0x21] AND EAX,0xf MOVSXD RCX,EAX SHL RCX,0xc MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CDQE SHL RAX,0x6 OR RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CDQE OR RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x3 JMP 0x001b7403 LAB_001b73fc: MOV dword ptr [RBP + -0x4],0x0 LAB_001b7403: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_utf8mb3_uni_no_range(int8 param_1,ulong *param_2,byte *param_3) { byte bVar1; int4 local_c; bVar1 = *param_3; if (bVar1 < 0x80) { *param_2 = (ulong)bVar1; local_c = 1; } else if (bVar1 < 0xc2) { local_c = 0; } else if (bVar1 < 0xe0) { if ((param_3[1] ^ 0x80) < 0x40) { *param_2 = (long)(int)(bVar1 & 0x1f) << 6 | (long)(int)(param_3[1] ^ 0x80); local_c = 2; } else { local_c = 0; } } else if (bVar1 < 0xf0) { if ((((param_3[1] ^ 0x80) < 0x40) && ((param_3[2] ^ 0x80) < 0x40)) && ((0xe0 < bVar1 || (0x9f < param_3[1])))) { *param_2 = (long)(int)(bVar1 & 0xf) << 0xc | (long)(int)(param_3[1] ^ 0x80) << 6 | (long)(int)(param_3[2] ^ 0x80); local_c = 3; } else { local_c = 0; } } else { local_c = 0; } return local_c; }
21,140
ggml_view_3d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_view_3d( struct ggml_context * ctx, struct ggml_tensor * a, int64_t ne0, int64_t ne1, int64_t ne2, size_t nb1, size_t nb2, size_t offset) { const int64_t ne[3] = { ne0, ne1, ne2 }; struct ggml_tensor * result = ggml_view_impl(ctx, a, 3, ne, offset); result->nb[1] = nb1; result->nb[2] = nb2; result->nb[3] = result->nb[2]*ne2; return result; }
O0
c
ggml_view_3d: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq 0x18(%rbp), %rax movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi leaq -0x50(%rbp), %rcx movq 0x18(%rbp), %r8 movl $0x3, %edx callq 0x4fd70 movq %rax, -0x58(%rbp) movq -0x30(%rbp), %rcx movq -0x58(%rbp), %rax movq %rcx, 0x38(%rax) movq 0x10(%rbp), %rcx movq -0x58(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x58(%rbp), %rax movq 0x40(%rax), %rcx imulq -0x28(%rbp), %rcx movq -0x58(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x58(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ggml_view_3d: push rbp mov rbp, rsp sub rsp, 60h mov rax, [rbp+arg_8] mov rax, [rbp+arg_0] 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 [rbp+var_30], r9 mov rax, [rbp+var_18] mov [rbp+var_50], rax mov rax, [rbp+var_20] mov [rbp+var_48], rax mov rax, [rbp+var_28] mov [rbp+var_40], rax mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] lea rcx, [rbp+var_50] mov r8, [rbp+arg_8] mov edx, 3 call ggml_view_impl mov [rbp+var_58], rax mov rcx, [rbp+var_30] mov rax, [rbp+var_58] mov [rax+38h], rcx mov rcx, [rbp+arg_0] mov rax, [rbp+var_58] mov [rax+40h], rcx mov rax, [rbp+var_58] mov rcx, [rax+40h] imul rcx, [rbp+var_28] mov rax, [rbp+var_58] mov [rax+48h], rcx mov rax, [rbp+var_58] add rsp, 60h pop rbp retn
_QWORD * ggml_view_3d( long long a1, unsigned int *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14, long long a15, long long a16) { _QWORD *result; // rax long long v17[4]; // [rsp+10h] [rbp-50h] BYREF long long v18; // [rsp+30h] [rbp-30h] long long v19; // [rsp+38h] [rbp-28h] long long v20; // [rsp+40h] [rbp-20h] long long v21; // [rsp+48h] [rbp-18h] unsigned int *v22; // [rsp+50h] [rbp-10h] long long v23; // [rsp+58h] [rbp-8h] v23 = a1; v22 = a2; v21 = a3; v20 = a4; v19 = a5; v18 = a6; v17[0] = a3; v17[1] = a4; v17[2] = a5; result = (_QWORD *)ggml_view_impl(a1, a2, 3, v17, a16, a7, a8, a9, a10, a11, a12, a13, a14); result[7] = v18; result[8] = a15; result[9] = v19 * result[8]; return result; }
ggml_view_3d: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV RAX,qword ptr [RBP + 0x18] MOV RAX,qword ptr [RBP + 0x10] 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 qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] LEA RCX,[RBP + -0x50] MOV R8,qword ptr [RBP + 0x18] MOV EDX,0x3 CALL 0x0014fd70 MOV qword ptr [RBP + -0x58],RAX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + 0x38],RCX MOV RCX,qword ptr [RBP + 0x10] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + 0x40],RCX MOV RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RAX + 0x40] IMUL RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + 0x48],RCX MOV RAX,qword ptr [RBP + -0x58] ADD RSP,0x60 POP RBP RET
long ggml_view_3d(int8 param_1,int8 param_2,int8 param_3,int8 param_4, long param_5,int8 param_6,int8 param_7,int8 param_8) { long lVar1; int8 local_58; int8 local_50; long local_48; int8 local_38; long local_30; int8 local_28; int8 local_20; int8 local_18; int8 local_10; local_58 = param_3; local_50 = param_4; local_48 = param_5; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; lVar1 = ggml_view_impl(param_1,param_2,3,&local_58,param_8); *(int8 *)(lVar1 + 0x38) = local_38; *(int8 *)(lVar1 + 0x40) = param_7; *(long *)(lVar1 + 0x48) = *(long *)(lVar1 + 0x40) * local_30; return lVar1; }
21,141
ggml_view_3d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_view_3d( struct ggml_context * ctx, struct ggml_tensor * a, int64_t ne0, int64_t ne1, int64_t ne2, size_t nb1, size_t nb2, size_t offset) { const int64_t ne[3] = { ne0, ne1, ne2 }; struct ggml_tensor * result = ggml_view_impl(ctx, a, 3, ne, offset); result->nb[1] = nb1; result->nb[2] = nb2; result->nb[3] = result->nb[2]*ne2; return result; }
O1
c
ggml_view_3d: pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %r9, %rbx movq %r8, %r14 movq 0x40(%rsp), %r15 movq 0x48(%rsp), %r8 movq %rsp, %rax movq %rdx, (%rax) movq %rcx, 0x8(%rax) movq %r14, 0x10(%rax) movl $0x3, %edx movq %rax, %rcx callq 0x1dab9 movq %rbx, 0x38(%rax) movq %r15, 0x40(%rax) imulq %r14, %r15 movq %r15, 0x48(%rax) addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq
ggml_view_3d: push r15 push r14 push rbx sub rsp, 20h mov rbx, r9 mov r14, r8 mov r15, [rsp+38h+arg_0] mov r8, [rsp+38h+arg_8] mov rax, rsp mov [rax], rdx mov [rax+8], rcx mov [rax+10h], r14 mov edx, 3 mov rcx, rax call ggml_view_impl mov [rax+38h], rbx mov [rax+40h], r15 imul r15, r14 mov [rax+48h], r15 add rsp, 20h pop rbx pop r14 pop r15 retn
_QWORD * ggml_view_3d( long long a1, unsigned int *a2, long long a3, long long a4, long long a5, long long a6, double a7, long long a8, long long a9) { _QWORD *result; // rax long long v12[7]; // [rsp+0h] [rbp-38h] BYREF v12[0] = a3; v12[1] = a4; v12[2] = a5; result = (_QWORD *)ggml_view_impl(a1, a2, 3, v12, a9, a7); result[7] = a6; result[8] = a8; result[9] = a5 * a8; return result; }
ggml_view_3d: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,R9 MOV R14,R8 MOV R15,qword ptr [RSP + 0x40] MOV R8,qword ptr [RSP + 0x48] MOV RAX,RSP MOV qword ptr [RAX],RDX MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RAX + 0x10],R14 MOV EDX,0x3 MOV RCX,RAX CALL 0x0011dab9 MOV qword ptr [RAX + 0x38],RBX MOV qword ptr [RAX + 0x40],R15 IMUL R15,R14 MOV qword ptr [RAX + 0x48],R15 ADD RSP,0x20 POP RBX POP R14 POP R15 RET
void ggml_view_3d(int8 param_1,int8 param_2,int8 param_3,int8 param_4, long param_5,int8 param_6,long param_7,int8 param_8) { long lVar1; int8 local_38; int8 local_30; long local_28; local_38 = param_3; local_30 = param_4; local_28 = param_5; lVar1 = ggml_view_impl(param_1,param_2,3,&local_38,param_8); *(int8 *)(lVar1 + 0x38) = param_6; *(long *)(lVar1 + 0x40) = param_7; *(long *)(lVar1 + 0x48) = param_7 * param_5; return; }
21,142
ggml_view_3d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_view_3d( struct ggml_context * ctx, struct ggml_tensor * a, int64_t ne0, int64_t ne1, int64_t ne2, size_t nb1, size_t nb2, size_t offset) { const int64_t ne[3] = { ne0, ne1, ne2 }; struct ggml_tensor * result = ggml_view_impl(ctx, a, 3, ne, offset); result->nb[1] = nb1; result->nb[2] = nb2; result->nb[3] = result->nb[2]*ne2; return result; }
O2
c
ggml_view_3d: pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %r9, %rbx movq %r8, %r14 movq 0x40(%rsp), %r15 movq 0x48(%rsp), %r8 movq %rsp, %rax movq %rdx, (%rax) movq %rcx, 0x8(%rax) movq %r14, 0x10(%rax) pushq $0x3 popq %rdx movq %rax, %rcx callq 0x2300d movq %rbx, 0x38(%rax) movq %r15, 0x40(%rax) imulq %r14, %r15 movq %r15, 0x48(%rax) addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq
ggml_view_3d: push r15 push r14 push rbx sub rsp, 20h mov rbx, r9 mov r14, r8 mov r15, [rsp+38h+arg_0] mov r8, [rsp+38h+arg_8] mov rax, rsp mov [rax], rdx mov [rax+8], rcx mov [rax+10h], r14 push 3 pop rdx mov rcx, rax call ggml_view_impl mov [rax+38h], rbx mov [rax+40h], r15 imul r15, r14 mov [rax+48h], r15 add rsp, 20h pop rbx pop r14 pop r15 retn
_QWORD * ggml_view_3d( long long a1, unsigned int *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) { _QWORD *result; // rax long long v19[7]; // [rsp+0h] [rbp-38h] BYREF v19[0] = a3; v19[1] = a4; v19[2] = a5; result = (_QWORD *)ggml_view_impl(a1, a2, 3u, v19, a16, a7, a8, a9, a10, a11, a12, a13, a14); result[7] = a6; result[8] = a15; result[9] = a5 * a15; return result; }
ggml_view_3d: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,R9 MOV R14,R8 MOV R15,qword ptr [RSP + 0x40] MOV R8,qword ptr [RSP + 0x48] MOV RAX,RSP MOV qword ptr [RAX],RDX MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RAX + 0x10],R14 PUSH 0x3 POP RDX MOV RCX,RAX CALL 0x0012300d MOV qword ptr [RAX + 0x38],RBX MOV qword ptr [RAX + 0x40],R15 IMUL R15,R14 MOV qword ptr [RAX + 0x48],R15 ADD RSP,0x20 POP RBX POP R14 POP R15 RET
void ggml_view_3d(int8 param_1,int8 param_2,int8 param_3,int8 param_4, long param_5,int8 param_6,long param_7,int8 param_8) { long lVar1; int8 local_38; int8 local_30; long local_28; local_38 = param_3; local_30 = param_4; local_28 = param_5; lVar1 = ggml_view_impl(param_1,param_2,3,&local_38,param_8); *(int8 *)(lVar1 + 0x38) = param_6; *(long *)(lVar1 + 0x40) = param_7; *(long *)(lVar1 + 0x48) = param_7 * param_5; return; }
21,143
ggml_view_3d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_view_3d( struct ggml_context * ctx, struct ggml_tensor * a, int64_t ne0, int64_t ne1, int64_t ne2, size_t nb1, size_t nb2, size_t offset) { const int64_t ne[3] = { ne0, ne1, ne2 }; struct ggml_tensor * result = ggml_view_impl(ctx, a, 3, ne, offset); result->nb[1] = nb1; result->nb[2] = nb2; result->nb[3] = result->nb[2]*ne2; return result; }
O3
c
ggml_view_3d: pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %r9, %rbx movq %r8, %r14 movq 0x40(%rsp), %r15 movq 0x48(%rsp), %r8 movq %rsp, %rax movq %rdx, (%rax) movq %rcx, 0x8(%rax) movq %r14, 0x10(%rax) movl $0x3, %edx movq %rax, %rcx callq 0x1c7ce movq %rbx, 0x38(%rax) movq %r15, 0x40(%rax) imulq %r14, %r15 movq %r15, 0x48(%rax) addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq
ggml_view_3d: push r15 push r14 push rbx sub rsp, 20h mov rbx, r9 mov r14, r8 mov r15, [rsp+38h+arg_0] mov r8, [rsp+38h+arg_8] mov rax, rsp mov [rax], rdx mov [rax+8], rcx mov [rax+10h], r14 mov edx, 3 mov rcx, rax call ggml_view_impl mov [rax+38h], rbx mov [rax+40h], r15 imul r15, r14 mov [rax+48h], r15 add rsp, 20h pop rbx pop r14 pop r15 retn
_QWORD * ggml_view_3d( long long a1, unsigned int *a2, long long a3, long long a4, long long a5, long long a6, double a7, long long a8, long long a9) { _QWORD *result; // rax long long v12[7]; // [rsp+0h] [rbp-38h] BYREF v12[0] = a3; v12[1] = a4; v12[2] = a5; result = (_QWORD *)ggml_view_impl(a1, a2, 3u, v12, a9, a7); result[7] = a6; result[8] = a8; result[9] = a5 * a8; return result; }
ggml_view_3d: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,R9 MOV R14,R8 MOV R15,qword ptr [RSP + 0x40] MOV R8,qword ptr [RSP + 0x48] MOV RAX,RSP MOV qword ptr [RAX],RDX MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RAX + 0x10],R14 MOV EDX,0x3 MOV RCX,RAX CALL 0x0011c7ce MOV qword ptr [RAX + 0x38],RBX MOV qword ptr [RAX + 0x40],R15 IMUL R15,R14 MOV qword ptr [RAX + 0x48],R15 ADD RSP,0x20 POP RBX POP R14 POP R15 RET
void ggml_view_3d(int8 param_1,int8 param_2,int8 param_3,int8 param_4, long param_5,int8 param_6,long param_7,int8 param_8) { long lVar1; int8 local_38; int8 local_30; long local_28; local_38 = param_3; local_30 = param_4; local_28 = param_5; lVar1 = ggml_view_impl(param_1,param_2,3,&local_38,param_8); *(int8 *)(lVar1 + 0x38) = param_6; *(long *)(lVar1 + 0x40) = param_7; *(long *)(lVar1 + 0x48) = param_7 * param_5; return; }
21,144
Overworld::init_late(unsigned long)
untodesu[P]voxelius/game/server/overworld.cc
void Overworld::init_late(std::uint64_t global_seed) { std::mt19937 twister(global_seed); m_fnl_variation = fnlCreateState(); m_fnl_variation.seed = static_cast<int>(twister()); m_fnl_variation.noise_type = FNL_NOISE_PERLIN; m_fnl_variation.frequency = 0.001f; m_fnl_terrain = fnlCreateState(); m_fnl_terrain.seed = static_cast<int>(twister()); m_fnl_terrain.noise_type = FNL_NOISE_OPENSIMPLEX2S; m_fnl_terrain.fractal_type = FNL_FRACTAL_FBM; m_fnl_terrain.frequency = 0.005f; m_fnl_terrain.octaves = 4; m_fnl_caves_a = fnlCreateState(); m_fnl_caves_a.seed = static_cast<int>(twister()); m_fnl_caves_a.noise_type = FNL_NOISE_PERLIN; m_fnl_caves_a.fractal_type = FNL_FRACTAL_RIDGED; m_fnl_caves_a.frequency = 0.0125f; m_fnl_caves_a.octaves = 1; m_fnl_caves_b = fnlCreateState(); m_fnl_caves_b.seed = static_cast<int>(twister()); m_fnl_caves_b.noise_type = FNL_NOISE_OPENSIMPLEX2S; m_fnl_caves_b.fractal_type = FNL_FRACTAL_RIDGED; m_fnl_caves_b.frequency = 0.0125f; m_fnl_caves_b.octaves = 1; m_fnl_nvdi = fnlCreateState(); m_fnl_nvdi.seed = static_cast<int>(twister()); m_fnl_nvdi.noise_type = FNL_NOISE_OPENSIMPLEX2S; m_fnl_nvdi.frequency = 1.0f; m_metamap.clear(); }
O3
cpp
Overworld::init_late(unsigned long): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x13c8, %rsp # imm = 0x13C8 movq %rdi, %rbx movl %esi, %eax movq %rax, 0x40(%rsp) movl $0x1, %ecx movq %rax, %rdx shrq $0x1e, %rdx xorl %eax, %edx imull $0x6c078965, %edx, %eax # imm = 0x6C078965 addl %ecx, %eax movq %rax, 0x40(%rsp,%rcx,8) incq %rcx cmpq $0x270, %rcx # imm = 0x270 jne 0x1f3fd leaq 0x40(%rsp), %r14 movq $0x270, 0x1380(%r14) # imm = 0x270 leaq 0x4(%rsp), %r15 movq %r15, %rdi callq 0xa413c movups (%r15), %xmm0 movups 0x10(%r15), %xmm1 movups 0x20(%r15), %xmm2 movups 0x2c(%r15), %xmm3 movups %xmm3, 0x3cc(%rbx) movups %xmm2, 0x3c0(%rbx) movups %xmm1, 0x3b0(%rbx) movups %xmm0, 0x3a0(%rbx) movq %r14, %rdi callq 0x200ae movl %eax, 0x3a0(%rbx) movabsq $0x33a83126f, %rax # imm = 0x33A83126F movq %rax, 0x3a4(%rbx) leaq 0x4(%rsp), %r15 movq %r15, %rdi callq 0xa413c movups (%r15), %xmm0 movups 0x10(%r15), %xmm1 movups 0x20(%r15), %xmm2 movups 0x2c(%r15), %xmm3 movups %xmm3, 0x408(%rbx) movups %xmm2, 0x3fc(%rbx) movups %xmm1, 0x3ec(%rbx) movups %xmm0, 0x3dc(%rbx) movq %r14, %rdi callq 0x200ae movl %eax, 0x3dc(%rbx) movabsq $0x400000001, %rax # imm = 0x400000001 movq %rax, 0x3ec(%rbx) movabsq $0x13ba3d70a, %rax # imm = 0x13BA3D70A movq %rax, 0x3e0(%rbx) leaq 0x4(%rsp), %r15 movq %r15, %rdi callq 0xa413c movups (%r15), %xmm0 movups 0x10(%r15), %xmm1 movups 0x20(%r15), %xmm2 movups 0x2c(%r15), %xmm3 movups %xmm3, 0x444(%rbx) movups %xmm2, 0x438(%rbx) movups %xmm1, 0x428(%rbx) movups %xmm0, 0x418(%rbx) movq %r14, %rdi callq 0x200ae movl %eax, 0x418(%rbx) movabsq $0x100000002, %r12 # imm = 0x100000002 movq %r12, 0x428(%rbx) movabsq $0x33c4ccccd, %rax # imm = 0x33C4CCCCD movq %rax, 0x41c(%rbx) leaq 0x4(%rsp), %r15 movq %r15, %rdi callq 0xa413c movups (%r15), %xmm0 movups 0x10(%r15), %xmm1 movups 0x20(%r15), %xmm2 movups 0x2c(%r15), %xmm3 movups %xmm3, 0x480(%rbx) movups %xmm2, 0x474(%rbx) movups %xmm1, 0x464(%rbx) movups %xmm0, 0x454(%rbx) movq %r14, %rdi callq 0x200ae movl %eax, 0x454(%rbx) movq %r12, 0x464(%rbx) movabsq $0x13c4ccccd, %rax # imm = 0x13C4CCCCD movq %rax, 0x458(%rbx) leaq 0x4(%rsp), %r15 movq %r15, %rdi callq 0xa413c movups (%r15), %xmm0 movups 0x10(%r15), %xmm1 movups 0x20(%r15), %xmm2 movups 0x2c(%r15), %xmm3 movups %xmm3, 0x4bc(%rbx) movups %xmm2, 0x4b0(%rbx) movups %xmm1, 0x4a0(%rbx) movups %xmm0, 0x490(%rbx) movq %r14, %rdi callq 0x200ae movl %eax, 0x490(%rbx) movabsq $0x13f800000, %rax # imm = 0x13F800000 movq %rax, 0x494(%rbx) addq $0x370, %rbx # imm = 0x370 movq %rbx, %rdi callq 0x20112 addq $0x13c8, %rsp # imm = 0x13C8 popq %rbx popq %r12 popq %r14 popq %r15 retq nop
_ZN9Overworld9init_lateEm: push r15 push r14 push r12 push rbx sub rsp, 13C8h mov rbx, rdi mov eax, esi mov [rsp+13E8h+var_13A8], rax mov ecx, 1 loc_1F3FD: mov rdx, rax shr rdx, 1Eh xor edx, eax imul eax, edx, 6C078965h add eax, ecx mov [rsp+rcx*8+13E8h+var_13A8], rax inc rcx cmp rcx, 270h jnz short loc_1F3FD lea r14, [rsp+13E8h+var_13A8] mov qword ptr [r14+1380h], 270h lea r15, [rsp+13E8h+var_13E4] mov rdi, r15 call fnlCreateState movups xmm0, xmmword ptr [r15] movups xmm1, xmmword ptr [r15+10h] movups xmm2, xmmword ptr [r15+20h] movups xmm3, xmmword ptr [r15+2Ch] movups xmmword ptr [rbx+3CCh], xmm3 movups xmmword ptr [rbx+3C0h], xmm2 movups xmmword ptr [rbx+3B0h], xmm1 movups xmmword ptr [rbx+3A0h], xmm0 mov rdi, r14 call _ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv; std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(void) mov [rbx+3A0h], eax mov rax, 33A83126Fh mov [rbx+3A4h], rax lea r15, [rsp+13E8h+var_13E4] mov rdi, r15 call fnlCreateState movups xmm0, xmmword ptr [r15] movups xmm1, xmmword ptr [r15+10h] movups xmm2, xmmword ptr [r15+20h] movups xmm3, xmmword ptr [r15+2Ch] movups xmmword ptr [rbx+408h], xmm3 movups xmmword ptr [rbx+3FCh], xmm2 movups xmmword ptr [rbx+3ECh], xmm1 movups xmmword ptr [rbx+3DCh], xmm0 mov rdi, r14 call _ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv; std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(void) mov [rbx+3DCh], eax mov rax, 400000001h mov [rbx+3ECh], rax mov rax, 13BA3D70Ah mov [rbx+3E0h], rax lea r15, [rsp+13E8h+var_13E4] mov rdi, r15 call fnlCreateState movups xmm0, xmmword ptr [r15] movups xmm1, xmmword ptr [r15+10h] movups xmm2, xmmword ptr [r15+20h] movups xmm3, xmmword ptr [r15+2Ch] movups xmmword ptr [rbx+444h], xmm3 movups xmmword ptr [rbx+438h], xmm2 movups xmmword ptr [rbx+428h], xmm1 movups xmmword ptr [rbx+418h], xmm0 mov rdi, r14 call _ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv; std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(void) mov [rbx+418h], eax mov r12, 100000002h mov [rbx+428h], r12 mov rax, 33C4CCCCDh mov [rbx+41Ch], rax lea r15, [rsp+13E8h+var_13E4] mov rdi, r15 call fnlCreateState movups xmm0, xmmword ptr [r15] movups xmm1, xmmword ptr [r15+10h] movups xmm2, xmmword ptr [r15+20h] movups xmm3, xmmword ptr [r15+2Ch] movups xmmword ptr [rbx+480h], xmm3 movups xmmword ptr [rbx+474h], xmm2 movups xmmword ptr [rbx+464h], xmm1 movups xmmword ptr [rbx+454h], xmm0 mov rdi, r14 call _ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv; std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(void) mov [rbx+454h], eax mov [rbx+464h], r12 mov rax, 13C4CCCCDh mov [rbx+458h], rax lea r15, [rsp+13E8h+var_13E4] mov rdi, r15 call fnlCreateState movups xmm0, xmmword ptr [r15] movups xmm1, xmmword ptr [r15+10h] movups xmm2, xmmword ptr [r15+20h] movups xmm3, xmmword ptr [r15+2Ch] movups xmmword ptr [rbx+4BCh], xmm3 movups xmmword ptr [rbx+4B0h], xmm2 movups xmmword ptr [rbx+4A0h], xmm1 movups xmmword ptr [rbx+490h], xmm0 mov rdi, r14 call _ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv; std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(void) mov [rbx+490h], eax mov rax, 13F800000h mov [rbx+494h], rax add rbx, 370h mov rdi, rbx call _ZN7emhash87HashMapIN3glm3vecILi2EiLNS1_9qualifierE0EEE18Overworld_MetadataSt4hashIS4_ESt8equal_toIS4_EE5clearEv; emhash8::HashMap<glm::vec<2,int,(glm::qualifier)0>,Overworld_Metadata,std::hash<glm::vec<2,int,(glm::qualifier)0>>,std::equal_to<glm::vec<2,int,(glm::qualifier)0>>>::clear(void) add rsp, 13C8h pop rbx pop r12 pop r14 pop r15 retn
long long Overworld::init_late(Overworld *this, unsigned int a2) { unsigned long long v2; // rax long long i; // rcx __int128 v4; // xmm0 __int128 v5; // xmm1 __int128 v6; // xmm2 __int128 v7; // xmm0 __int128 v8; // xmm1 __int128 v9; // xmm2 __int128 v10; // xmm0 __int128 v11; // xmm1 __int128 v12; // xmm2 __int128 v13; // xmm0 __int128 v14; // xmm1 __int128 v15; // xmm2 __int128 v16; // xmm0 __int128 v17; // xmm1 __int128 v18; // xmm2 __int128 v20; // [rsp+4h] [rbp-13E4h] BYREF __int128 v21; // [rsp+14h] [rbp-13D4h] _BYTE v22[28]; // [rsp+24h] [rbp-13C4h] _QWORD v23[629]; // [rsp+40h] [rbp-13A8h] BYREF v2 = a2; v23[0] = a2; for ( i = 1LL; i != 624; ++i ) { v2 = (unsigned int)i + 1812433253 * ((unsigned int)v2 ^ (unsigned int)(v2 >> 30)); v23[i] = v2; } v23[624] = 624LL; fnlCreateState(&v20); v4 = v20; v5 = v21; v6 = *(_OWORD *)v22; *(_OWORD *)((char *)this + 972) = *(_OWORD *)&v22[12]; *((_OWORD *)this + 60) = v6; *((_OWORD *)this + 59) = v5; *((_OWORD *)this + 58) = v4; *((_DWORD *)this + 232) = std::mersenne_twister_engine<unsigned long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(v23); *(_QWORD *)((char *)this + 932) = 0x33A83126FLL; fnlCreateState(&v20); v7 = v20; v8 = v21; v9 = *(_OWORD *)v22; *(_OWORD *)((char *)this + 1032) = *(_OWORD *)&v22[12]; *(_OWORD *)((char *)this + 1020) = v9; *(_OWORD *)((char *)this + 1004) = v8; *(_OWORD *)((char *)this + 988) = v7; *((_DWORD *)this + 247) = std::mersenne_twister_engine<unsigned long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(v23); *(_QWORD *)((char *)this + 1004) = 0x400000001LL; *((_QWORD *)this + 124) = 0x13BA3D70ALL; fnlCreateState(&v20); v10 = v20; v11 = v21; v12 = *(_OWORD *)v22; *(_OWORD *)((char *)this + 1092) = *(_OWORD *)&v22[12]; *(_OWORD *)((char *)this + 1080) = v12; *(_OWORD *)((char *)this + 1064) = v11; *(_OWORD *)((char *)this + 1048) = v10; *((_DWORD *)this + 262) = std::mersenne_twister_engine<unsigned long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(v23); *((_QWORD *)this + 133) = 0x100000002LL; *(_QWORD *)((char *)this + 1052) = 0x33C4CCCCDLL; fnlCreateState(&v20); v13 = v20; v14 = v21; v15 = *(_OWORD *)v22; *((_OWORD *)this + 72) = *(_OWORD *)&v22[12]; *(_OWORD *)((char *)this + 1140) = v15; *(_OWORD *)((char *)this + 1124) = v14; *(_OWORD *)((char *)this + 1108) = v13; *((_DWORD *)this + 277) = std::mersenne_twister_engine<unsigned long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(v23); *(_QWORD *)((char *)this + 1124) = 0x100000002LL; *((_QWORD *)this + 139) = 0x13C4CCCCDLL; fnlCreateState(&v20); v16 = v20; v17 = v21; v18 = *(_OWORD *)v22; *(_OWORD *)((char *)this + 1212) = *(_OWORD *)&v22[12]; *((_OWORD *)this + 75) = v18; *((_OWORD *)this + 74) = v17; *((_OWORD *)this + 73) = v16; *((_DWORD *)this + 292) = std::mersenne_twister_engine<unsigned long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>::operator()(v23); *(_QWORD *)((char *)this + 1172) = 0x13F800000LL; return emhash8::HashMap<glm::vec<2,int,(glm::qualifier)0>,Overworld_Metadata,std::hash<glm::vec<2,int,(glm::qualifier)0>>,std::equal_to<glm::vec<2,int,(glm::qualifier)0>>>::clear((char *)this + 880); }
init_late: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x13c8 MOV RBX,RDI MOV EAX,ESI MOV qword ptr [RSP + 0x40],RAX MOV ECX,0x1 LAB_0011f3fd: MOV RDX,RAX SHR RDX,0x1e XOR EDX,EAX IMUL EAX,EDX,0x6c078965 ADD EAX,ECX MOV qword ptr [RSP + RCX*0x8 + 0x40],RAX INC RCX CMP RCX,0x270 JNZ 0x0011f3fd LEA R14,[RSP + 0x40] MOV qword ptr [R14 + 0x1380],0x270 LEA R15,[RSP + 0x4] MOV RDI,R15 CALL 0x001a413c MOVUPS XMM0,xmmword ptr [R15] MOVUPS XMM1,xmmword ptr [R15 + 0x10] MOVUPS XMM2,xmmword ptr [R15 + 0x20] MOVUPS XMM3,xmmword ptr [R15 + 0x2c] MOVUPS xmmword ptr [RBX + 0x3cc],XMM3 MOVUPS xmmword ptr [RBX + 0x3c0],XMM2 MOVUPS xmmword ptr [RBX + 0x3b0],XMM1 MOVUPS xmmword ptr [RBX + 0x3a0],XMM0 MOV RDI,R14 CALL 0x001200ae MOV dword ptr [RBX + 0x3a0],EAX MOV RAX,0x33a83126f MOV qword ptr [RBX + 0x3a4],RAX LEA R15,[RSP + 0x4] MOV RDI,R15 CALL 0x001a413c MOVUPS XMM0,xmmword ptr [R15] MOVUPS XMM1,xmmword ptr [R15 + 0x10] MOVUPS XMM2,xmmword ptr [R15 + 0x20] MOVUPS XMM3,xmmword ptr [R15 + 0x2c] MOVUPS xmmword ptr [RBX + 0x408],XMM3 MOVUPS xmmword ptr [RBX + 0x3fc],XMM2 MOVUPS xmmword ptr [RBX + 0x3ec],XMM1 MOVUPS xmmword ptr [RBX + 0x3dc],XMM0 MOV RDI,R14 CALL 0x001200ae MOV dword ptr [RBX + 0x3dc],EAX MOV RAX,0x400000001 MOV qword ptr [RBX + 0x3ec],RAX MOV RAX,0x13ba3d70a MOV qword ptr [RBX + 0x3e0],RAX LEA R15,[RSP + 0x4] MOV RDI,R15 CALL 0x001a413c MOVUPS XMM0,xmmword ptr [R15] MOVUPS XMM1,xmmword ptr [R15 + 0x10] MOVUPS XMM2,xmmword ptr [R15 + 0x20] MOVUPS XMM3,xmmword ptr [R15 + 0x2c] MOVUPS xmmword ptr [RBX + 0x444],XMM3 MOVUPS xmmword ptr [RBX + 0x438],XMM2 MOVUPS xmmword ptr [RBX + 0x428],XMM1 MOVUPS xmmword ptr [RBX + 0x418],XMM0 MOV RDI,R14 CALL 0x001200ae MOV dword ptr [RBX + 0x418],EAX MOV R12,0x100000002 MOV qword ptr [RBX + 0x428],R12 MOV RAX,0x33c4ccccd MOV qword ptr [RBX + 0x41c],RAX LEA R15,[RSP + 0x4] MOV RDI,R15 CALL 0x001a413c MOVUPS XMM0,xmmword ptr [R15] MOVUPS XMM1,xmmword ptr [R15 + 0x10] MOVUPS XMM2,xmmword ptr [R15 + 0x20] MOVUPS XMM3,xmmword ptr [R15 + 0x2c] MOVUPS xmmword ptr [RBX + 0x480],XMM3 MOVUPS xmmword ptr [RBX + 0x474],XMM2 MOVUPS xmmword ptr [RBX + 0x464],XMM1 MOVUPS xmmword ptr [RBX + 0x454],XMM0 MOV RDI,R14 CALL 0x001200ae MOV dword ptr [RBX + 0x454],EAX MOV qword ptr [RBX + 0x464],R12 MOV RAX,0x13c4ccccd MOV qword ptr [RBX + 0x458],RAX LEA R15,[RSP + 0x4] MOV RDI,R15 CALL 0x001a413c MOVUPS XMM0,xmmword ptr [R15] MOVUPS XMM1,xmmword ptr [R15 + 0x10] MOVUPS XMM2,xmmword ptr [R15 + 0x20] MOVUPS XMM3,xmmword ptr [R15 + 0x2c] MOVUPS xmmword ptr [RBX + 0x4bc],XMM3 MOVUPS xmmword ptr [RBX + 0x4b0],XMM2 MOVUPS xmmword ptr [RBX + 0x4a0],XMM1 MOVUPS xmmword ptr [RBX + 0x490],XMM0 MOV RDI,R14 CALL 0x001200ae MOV dword ptr [RBX + 0x490],EAX MOV RAX,0x13f800000 MOV qword ptr [RBX + 0x494],RAX ADD RBX,0x370 MOV RDI,RBX CALL 0x00120112 ADD RSP,0x13c8 POP RBX POP R12 POP R14 POP R15 RET
/* Overworld::init_late(unsigned long) */ void __thiscall Overworld::init_late(Overworld *this,ulong param_1) { int4 uVar1; ulong uVar2; long lVar3; int8 local_13e4; int8 uStack_13dc; int8 local_13d4; int8 uStack_13cc; int8 local_13c4; int4 uStack_13bc; int4 uStack_13b8; int4 uStack_13b4; int8 uStack_13b0; ulong local_13a8 [624]; int8 local_28; local_13a8[0] = param_1 & 0xffffffff; lVar3 = 1; uVar2 = local_13a8[0]; do { uVar2 = (ulong)(((uint)(uVar2 >> 0x1e) ^ (uint)uVar2) * 0x6c078965 + (int)lVar3); local_13a8[lVar3] = uVar2; lVar3 = lVar3 + 1; } while (lVar3 != 0x270); local_28 = 0x270; fnlCreateState(&local_13e4); *(ulong *)(this + 0x3cc) = CONCAT44(uStack_13b4,uStack_13b8); *(int8 *)(this + 0x3d4) = uStack_13b0; *(int8 *)(this + 0x3c0) = local_13c4; *(ulong *)(this + 0x3c8) = CONCAT44(uStack_13b8,uStack_13bc); *(int8 *)(this + 0x3b0) = local_13d4; *(int8 *)(this + 0x3b8) = uStack_13cc; *(int8 *)(this + 0x3a0) = local_13e4; *(int8 *)(this + 0x3a8) = uStack_13dc; uVar1 = std:: mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> ::operator()((mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> *)local_13a8); *(int4 *)(this + 0x3a0) = uVar1; *(int8 *)(this + 0x3a4) = 0x33a83126f; fnlCreateState(&local_13e4); *(ulong *)(this + 0x408) = CONCAT44(uStack_13b4,uStack_13b8); *(int8 *)(this + 0x410) = uStack_13b0; *(int8 *)(this + 0x3fc) = local_13c4; *(ulong *)(this + 0x404) = CONCAT44(uStack_13b8,uStack_13bc); *(int8 *)(this + 0x3ec) = local_13d4; *(int8 *)(this + 0x3f4) = uStack_13cc; *(int8 *)(this + 0x3dc) = local_13e4; *(int8 *)(this + 0x3e4) = uStack_13dc; uVar1 = std:: mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> ::operator()((mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> *)local_13a8); *(int4 *)(this + 0x3dc) = uVar1; *(int8 *)(this + 0x3ec) = 0x400000001; *(int8 *)(this + 0x3e0) = 0x13ba3d70a; fnlCreateState(&local_13e4); *(ulong *)(this + 0x444) = CONCAT44(uStack_13b4,uStack_13b8); *(int8 *)(this + 0x44c) = uStack_13b0; *(int8 *)(this + 0x438) = local_13c4; *(ulong *)(this + 0x440) = CONCAT44(uStack_13b8,uStack_13bc); *(int8 *)(this + 0x428) = local_13d4; *(int8 *)(this + 0x430) = uStack_13cc; *(int8 *)(this + 0x418) = local_13e4; *(int8 *)(this + 0x420) = uStack_13dc; uVar1 = std:: mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> ::operator()((mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> *)local_13a8); *(int4 *)(this + 0x418) = uVar1; *(int8 *)(this + 0x428) = 0x100000002; *(int8 *)(this + 0x41c) = 0x33c4ccccd; fnlCreateState(&local_13e4); *(ulong *)(this + 0x480) = CONCAT44(uStack_13b4,uStack_13b8); *(int8 *)(this + 0x488) = uStack_13b0; *(int8 *)(this + 0x474) = local_13c4; *(ulong *)(this + 0x47c) = CONCAT44(uStack_13b8,uStack_13bc); *(int8 *)(this + 0x464) = local_13d4; *(int8 *)(this + 0x46c) = uStack_13cc; *(int8 *)(this + 0x454) = local_13e4; *(int8 *)(this + 0x45c) = uStack_13dc; uVar1 = std:: mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> ::operator()((mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> *)local_13a8); *(int4 *)(this + 0x454) = uVar1; *(int8 *)(this + 0x464) = 0x100000002; *(int8 *)(this + 0x458) = 0x13c4ccccd; fnlCreateState(&local_13e4); *(ulong *)(this + 0x4bc) = CONCAT44(uStack_13b4,uStack_13b8); *(int8 *)(this + 0x4c4) = uStack_13b0; *(int8 *)(this + 0x4b0) = local_13c4; *(ulong *)(this + 0x4b8) = CONCAT44(uStack_13b8,uStack_13bc); *(int8 *)(this + 0x4a0) = local_13d4; *(int8 *)(this + 0x4a8) = uStack_13cc; *(int8 *)(this + 0x490) = local_13e4; *(int8 *)(this + 0x498) = uStack_13dc; uVar1 = std:: mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> ::operator()((mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> *)local_13a8); *(int4 *)(this + 0x490) = uVar1; *(int8 *)(this + 0x494) = 0x13f800000; emhash8:: HashMap<glm::vec<2,int,(glm::qualifier)0>,Overworld_Metadata,std::hash<glm::vec<2,int,(glm::qualifier)0>>,std::equal_to<glm::vec<2,int,(glm::qualifier)0>>> ::clear((HashMap<glm::vec<2,int,(glm::qualifier)0>,Overworld_Metadata,std::hash<glm::vec<2,int,(glm::qualifier)0>>,std::equal_to<glm::vec<2,int,(glm::qualifier)0>>> *)(this + 0x370)); return; }
21,145
LefDefParser::defiPinProp::setName(char const*, char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPinProp.cpp
void defiPinProp::setName(const char* inst, const char* pin) { int len = strlen(inst) + 1; if ((strcmp(inst, "PIN") == 0) || (strcmp(inst,"pin") == 0)) { isPin_ = 1; instName_[0] = '\0'; /* make sure to clear any prev inst */ } else { if (instNameSize_ < len) { instNameSize_ = len; free(instName_); instName_ = (char*)malloc(len); } strcpy(instName_, defData->DEFCASE(inst)); } len = strlen(pin) + 1; if (pinNameSize_ < len) { pinNameSize_ = len; free(pinName_); pinName_ = (char*)malloc(len); } strcpy(pinName_, defData->DEFCASE(pin)); }
O0
cpp
LefDefParser::defiPinProp::setName(char const*, char const*): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq %rdx, 0x20(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x28(%rsp), %rdi callq 0x70e0 addq $0x1, %rax movl %eax, 0x1c(%rsp) movq 0x28(%rsp), %rdi leaq 0x38c2a(%rip), %rsi # 0x79675 callq 0x72f0 cmpl $0x0, %eax je 0x40a6b movq 0x28(%rsp), %rdi leaq 0x39e7b(%rip), %rsi # 0x7a8dc callq 0x72f0 cmpl $0x0, %eax jne 0x40a7c movq 0x10(%rsp), %rax movb $0x1, (%rax) movq 0x8(%rax), %rax movb $0x0, (%rax) jmp 0x40ade movq 0x10(%rsp), %rax movl 0x4(%rax), %eax cmpl 0x1c(%rsp), %eax jge 0x40ab5 movq 0x10(%rsp), %rax movl 0x1c(%rsp), %ecx movl %ecx, 0x4(%rax) movq 0x8(%rax), %rdi callq 0x72a0 movslq 0x1c(%rsp), %rdi callq 0x72d0 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, 0x8(%rax) movq 0x10(%rsp), %rax movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x48(%rax), %rdi movq 0x28(%rsp), %rsi callq 0x27ed0 movq 0x8(%rsp), %rdi movq %rax, %rsi callq 0x7220 movq 0x20(%rsp), %rdi callq 0x70e0 movq %rax, %rcx movq 0x10(%rsp), %rax addq $0x1, %rcx movl %ecx, 0x1c(%rsp) movl 0x10(%rax), %eax cmpl 0x1c(%rsp), %eax jge 0x40b2c movq 0x10(%rsp), %rax movl 0x1c(%rsp), %ecx movl %ecx, 0x10(%rax) movq 0x18(%rax), %rdi callq 0x72a0 movslq 0x1c(%rsp), %rdi callq 0x72d0 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, 0x18(%rax) movq 0x10(%rsp), %rax movq 0x18(%rax), %rcx movq %rcx, (%rsp) movq 0x48(%rax), %rdi movq 0x20(%rsp), %rsi callq 0x27ed0 movq (%rsp), %rdi movq %rax, %rsi callq 0x7220 addq $0x38, %rsp retq nopl (%rax,%rax)
_ZN12LefDefParser11defiPinProp7setNameEPKcS2_: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov [rsp+38h+var_18], rdx mov rax, [rsp+38h+var_8] mov [rsp+38h+var_28], rax mov rdi, [rsp+38h+var_10] call _strlen add rax, 1 mov [rsp+38h+var_1C], eax mov rdi, [rsp+38h+var_10] lea rsi, aKFromclockpin+0Bh; "PIN" call _strcmp cmp eax, 0 jz short loc_40A6B mov rdi, [rsp+38h+var_10] lea rsi, aOptPin+4; "pin" call _strcmp cmp eax, 0 jnz short loc_40A7C loc_40A6B: mov rax, [rsp+38h+var_28] mov byte ptr [rax], 1 mov rax, [rax+8] mov byte ptr [rax], 0 jmp short loc_40ADE loc_40A7C: mov rax, [rsp+38h+var_28] mov eax, [rax+4] cmp eax, [rsp+38h+var_1C] jge short loc_40AB5 mov rax, [rsp+38h+var_28] mov ecx, [rsp+38h+var_1C] mov [rax+4], ecx mov rdi, [rax+8] call _free movsxd rdi, [rsp+38h+var_1C] call _malloc mov rcx, rax mov rax, [rsp+38h+var_28] mov [rax+8], rcx loc_40AB5: mov rax, [rsp+38h+var_28] mov rcx, [rax+8] mov [rsp+38h+var_30], rcx mov rdi, [rax+48h]; this mov rsi, [rsp+38h+var_10]; char * call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*) mov rdi, [rsp+38h+var_30] mov rsi, rax call _strcpy loc_40ADE: mov rdi, [rsp+38h+var_18] call _strlen mov rcx, rax mov rax, [rsp+38h+var_28] add rcx, 1 mov [rsp+38h+var_1C], ecx mov eax, [rax+10h] cmp eax, [rsp+38h+var_1C] jge short loc_40B2C mov rax, [rsp+38h+var_28] mov ecx, [rsp+38h+var_1C] mov [rax+10h], ecx mov rdi, [rax+18h] call _free movsxd rdi, [rsp+38h+var_1C] call _malloc mov rcx, rax mov rax, [rsp+38h+var_28] mov [rax+18h], rcx loc_40B2C: mov rax, [rsp+38h+var_28] mov rcx, [rax+18h] mov [rsp+38h+var_38], rcx mov rdi, [rax+48h]; this mov rsi, [rsp+38h+var_18]; char * call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*) mov rdi, [rsp+38h+var_38] mov rsi, rax call _strcpy add rsp, 38h retn
long long LefDefParser::defiPinProp::setName(LefDefParser::defiPinProp *this, const char *a2, const char *a3) { const char *v3; // rax long long v4; // rdx const char *v5; // rax long long v6; // rdx long long v8; // [rsp+0h] [rbp-38h] long long v9; // [rsp+8h] [rbp-30h] int v10; // [rsp+1Ch] [rbp-1Ch] int v11; // [rsp+1Ch] [rbp-1Ch] v10 = strlen(a2) + 1; if ( !(unsigned int)strcmp(a2, "PIN") || !(unsigned int)strcmp(a2, "pin") ) { *(_BYTE *)this = 1; **((_BYTE **)this + 1) = 0; } else { if ( *((_DWORD *)this + 1) < v10 ) { *((_DWORD *)this + 1) = v10; free(*((_QWORD *)this + 1)); *((_QWORD *)this + 1) = malloc(v10); } v9 = *((_QWORD *)this + 1); v3 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 9), a2); strcpy(v9, v3, v4); } v11 = strlen(a3) + 1; if ( *((_DWORD *)this + 4) < v11 ) { *((_DWORD *)this + 4) = v11; free(*((_QWORD *)this + 3)); *((_QWORD *)this + 3) = malloc(v11); } v8 = *((_QWORD *)this + 3); v5 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 9), a3); return strcpy(v8, v5, v6); }
setName: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x20],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x28] CALL 0x001070e0 ADD RAX,0x1 MOV dword ptr [RSP + 0x1c],EAX MOV RDI,qword ptr [RSP + 0x28] LEA RSI,[0x179675] CALL 0x001072f0 CMP EAX,0x0 JZ 0x00140a6b MOV RDI,qword ptr [RSP + 0x28] LEA RSI,[0x17a8dc] CALL 0x001072f0 CMP EAX,0x0 JNZ 0x00140a7c LAB_00140a6b: MOV RAX,qword ptr [RSP + 0x10] MOV byte ptr [RAX],0x1 MOV RAX,qword ptr [RAX + 0x8] MOV byte ptr [RAX],0x0 JMP 0x00140ade LAB_00140a7c: MOV RAX,qword ptr [RSP + 0x10] MOV EAX,dword ptr [RAX + 0x4] CMP EAX,dword ptr [RSP + 0x1c] JGE 0x00140ab5 MOV RAX,qword ptr [RSP + 0x10] MOV ECX,dword ptr [RSP + 0x1c] MOV dword ptr [RAX + 0x4],ECX MOV RDI,qword ptr [RAX + 0x8] CALL 0x001072a0 MOVSXD RDI,dword ptr [RSP + 0x1c] CALL 0x001072d0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x8],RCX LAB_00140ab5: MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RDI,qword ptr [RAX + 0x48] MOV RSI,qword ptr [RSP + 0x28] CALL 0x00127ed0 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX CALL 0x00107220 LAB_00140ade: MOV RDI,qword ptr [RSP + 0x20] CALL 0x001070e0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] ADD RCX,0x1 MOV dword ptr [RSP + 0x1c],ECX MOV EAX,dword ptr [RAX + 0x10] CMP EAX,dword ptr [RSP + 0x1c] JGE 0x00140b2c MOV RAX,qword ptr [RSP + 0x10] MOV ECX,dword ptr [RSP + 0x1c] MOV dword ptr [RAX + 0x10],ECX MOV RDI,qword ptr [RAX + 0x18] CALL 0x001072a0 MOVSXD RDI,dword ptr [RSP + 0x1c] CALL 0x001072d0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x18],RCX LAB_00140b2c: MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RAX + 0x18] MOV qword ptr [RSP],RCX MOV RDI,qword ptr [RAX + 0x48] MOV RSI,qword ptr [RSP + 0x20] CALL 0x00127ed0 MOV RDI,qword ptr [RSP] MOV RSI,RAX CALL 0x00107220 ADD RSP,0x38 RET
/* LefDefParser::defiPinProp::setName(char const*, char const*) */ void __thiscall LefDefParser::defiPinProp::setName(defiPinProp *this,char *param_1,char *param_2) { char *pcVar1; int iVar2; int iVar3; size_t sVar4; void *pvVar5; char *pcVar6; sVar4 = strlen(param_1); iVar2 = (int)sVar4 + 1; iVar3 = strcmp(param_1,"PIN"); if (iVar3 != 0) { iVar3 = strcmp(param_1,"pin"); if (iVar3 != 0) { if (*(int *)(this + 4) < iVar2) { *(int *)(this + 4) = iVar2; free(*(void **)(this + 8)); pvVar5 = malloc((long)iVar2); *(void **)(this + 8) = pvVar5; } pcVar1 = *(char **)(this + 8); pcVar6 = (char *)defrData::DEFCASE(*(defrData **)(this + 0x48),param_1); strcpy(pcVar1,pcVar6); goto LAB_00140ade; } } *this = (defiPinProp)0x1; **(int1 **)(this + 8) = 0; LAB_00140ade: sVar4 = strlen(param_2); iVar2 = (int)sVar4 + 1; if (*(int *)(this + 0x10) < iVar2) { *(int *)(this + 0x10) = iVar2; free(*(void **)(this + 0x18)); pvVar5 = malloc((long)iVar2); *(void **)(this + 0x18) = pvVar5; } pcVar1 = *(char **)(this + 0x18); pcVar6 = (char *)defrData::DEFCASE(*(defrData **)(this + 0x48),param_2); strcpy(pcVar1,pcVar6); return; }
21,146
bool fmt::v10::detail::loc_writer<char>::operator()<unsigned __int128, 0>(unsigned __int128)
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
auto operator()(T value) -> bool { auto arg = make_write_int_arg(value, specs.sign); write_int(out, static_cast<uint64_or_128_t<T>>(arg.abs_value), arg.prefix, specs, digit_grouping<Char>(grouping, sep)); return true; }
O3
c
bool fmt::v10::detail::loc_writer<char>::operator()<unsigned __int128, 0>(unsigned __int128): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq %rdi, %r13 movq (%rdi), %r12 movq 0x8(%rdi), %r14 movzwl 0x9(%r14), %eax shrl $0x2, %eax andl $0x1c, %eax leaq 0x35263(%rip), %rcx # 0x83cf0 movl (%rax,%rcx), %ebp leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq 0x30(%rdi), %rsi movq 0x38(%rdi), %rdx addq %rsi, %rdx leaq 0x8(%rsp), %rdi callq 0x18f38 leaq 0x38(%rsp), %rbx movq %rbx, -0x10(%rbx) movq 0x10(%r13), %rsi movq 0x18(%r13), %rdx addq %rsi, %rdx leaq 0x28(%rsp), %rdi callq 0x18f38 leaq 0x68(%rsp), %rcx movq %rcx, -0x10(%rcx) movq 0x8(%rsp), %rax cmpq %r15, %rax je 0x4eaf0 movq %rax, 0x58(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x68(%rsp) jmp 0x4eaf7 movups (%r15), %xmm0 movups %xmm0, (%rcx) movq 0x10(%rsp), %rax leaq 0x88(%rsp), %r13 movq %rax, -0x28(%r13) movq %r15, 0x8(%rsp) movq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) movq %r13, -0x10(%r13) movq 0x28(%rsp), %rax movq %rcx, %r15 cmpq %rbx, %rax je 0x4eb40 movq %rax, 0x78(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x88(%rsp) jmp 0x4eb48 movups (%rbx), %xmm0 movups %xmm0, (%r13) movq 0x30(%rsp), %rax leaq 0x58(%rsp), %r9 movq %rax, 0x28(%r9) movq %rbx, 0x28(%rsp) movq $0x0, 0x30(%rsp) movb $0x0, 0x38(%rsp) movq %r12, %rdi movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx movl %ebp, %ecx movq %r14, %r8 callq 0x4f1c6 movq 0x78(%rsp), %rdi cmpq %r13, %rdi je 0x4eb9a movq 0x88(%rsp), %rsi incq %rsi callq 0x11120 movq 0x58(%rsp), %rdi cmpq %r15, %rdi je 0x4ebb1 movq 0x68(%rsp), %rsi incq %rsi callq 0x11120 movq 0x28(%rsp), %rdi cmpq %rbx, %rdi je 0x4ebc8 movq 0x38(%rsp), %rsi incq %rsi callq 0x11120 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x4ebe4 movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 movb $0x1, %al addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 leaq 0x58(%rsp), %rdi callq 0x44930 movq 0x28(%rsp), %rdi cmpq %rbx, %rdi je 0x4ec21 movq 0x38(%rsp), %rsi incq %rsi callq 0x11120 jmp 0x4ec21 movq %rax, %r14 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x4ec3d movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 movq %r14, %rdi callq 0x11760
_ZN3fmt3v106detail10loc_writerIcEclIoTnNSt9enable_ifIXsr10is_integerIT_EE5valueEiE4typeELi0EEEbS6_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov [rsp+0C8h+var_78], rdx mov [rsp+0C8h+var_80], rsi mov r13, rdi mov r12, [rdi] mov r14, [rdi+8] movzx eax, word ptr [r14+9] shr eax, 2 and eax, 1Ch lea rcx, dword_83CF0 mov ebp, [rax+rcx] lea r15, [rsp+0C8h+var_B0] mov [r15-10h], r15 mov rsi, [rdi+30h] mov rdx, [rdi+38h] add rdx, rsi lea rdi, [rsp+0C8h+var_C0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rbx, [rsp+0C8h+var_90] mov [rbx-10h], rbx mov rsi, [r13+10h] mov rdx, [r13+18h] add rdx, rsi lea rdi, [rsp+0C8h+var_A0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rcx, [rsp+0C8h+var_60] mov [rcx-10h], rcx mov rax, [rsp+0C8h+var_C0] cmp rax, r15 jz short loc_4EAF0 mov [rsp+0C8h+var_70], rax mov rax, [rsp+0C8h+var_B0] mov [rsp+0C8h+var_60], rax jmp short loc_4EAF7 loc_4EAF0: movups xmm0, xmmword ptr [r15] movups xmmword ptr [rcx], xmm0 loc_4EAF7: mov rax, [rsp+0C8h+var_B8] lea r13, [rsp+0C8h+var_40] mov [r13-28h], rax mov [rsp+0C8h+var_C0], r15 mov [rsp+0C8h+var_B8], 0 mov byte ptr [rsp+0C8h+var_B0], 0 mov [r13-10h], r13 mov rax, [rsp+0C8h+var_A0] mov r15, rcx cmp rax, rbx jz short loc_4EB40 mov [rsp+0C8h+var_50], rax mov rax, [rsp+0C8h+var_90] mov [rsp+0C8h+var_40], rax jmp short loc_4EB48 loc_4EB40: movups xmm0, xmmword ptr [rbx] movups xmmword ptr [r13+0], xmm0 loc_4EB48: mov rax, [rsp+0C8h+var_98] lea r9, [rsp+0C8h+var_70] mov [r9+28h], rax mov [rsp+0C8h+var_A0], rbx mov [rsp+0C8h+var_98], 0 mov byte ptr [rsp+0C8h+var_90], 0 mov rdi, r12 mov rsi, [rsp+0C8h+var_80] mov rdx, [rsp+0C8h+var_78] mov ecx, ebp mov r8, r14 call _ZN3fmt3v106detail9write_intINS0_8appenderEocEET_S4_T0_jRKNS0_12format_specsIT1_EERKNS1_14digit_groupingIS7_EE; fmt::v10::detail::write_int<fmt::v10::appender,unsigned __int128,char>(fmt::v10::appender,unsigned __int128,uint,fmt::v10::format_specs<char> const&,fmt::v10::detail::digit_grouping<char> const&) mov rdi, [rsp+0C8h+var_50]; void * cmp rdi, r13 jz short loc_4EB9A mov rsi, [rsp+0C8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4EB9A: mov rdi, [rsp+0C8h+var_70]; void * cmp rdi, r15 jz short loc_4EBB1 mov rsi, [rsp+0C8h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4EBB1: mov rdi, [rsp+0C8h+var_A0]; void * cmp rdi, rbx jz short loc_4EBC8 mov rsi, [rsp+0C8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4EBC8: mov rdi, [rsp+0C8h+var_C0]; void * lea rax, [rsp+0C8h+var_B0] cmp rdi, rax jz short loc_4EBE4 mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4EBE4: mov al, 1 add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax lea rdi, [rsp+arg_50] call _ZN3fmt3v106detail14digit_groupingIcED2Ev; fmt::v10::detail::digit_grouping<char>::~digit_grouping() mov rdi, [rsp+arg_20]; void * cmp rdi, rbx jz short loc_4EC21 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_4EC21 mov r14, rax loc_4EC21: mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_4EC3D mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4EC3D: mov rdi, r14 call __Unwind_Resume
char ZN3fmt3v106detail10loc_writerIcEclIoTnNSt9enable_ifIXsr10is_integerIT_EE5valueEiE4typeELi0EEEbS6_( long long *a1, long long a2, long long a3) { long long v3; // r12 long long v4; // r14 unsigned int v5; // ebp void *v7; // [rsp+8h] [rbp-C0h] BYREF long long v8; // [rsp+10h] [rbp-B8h] __int128 v9; // [rsp+18h] [rbp-B0h] BYREF void *v10; // [rsp+28h] [rbp-A0h] BYREF long long v11; // [rsp+30h] [rbp-98h] __int128 v12; // [rsp+38h] [rbp-90h] BYREF long long v13; // [rsp+48h] [rbp-80h] long long v14; // [rsp+50h] [rbp-78h] void *v15; // [rsp+58h] [rbp-70h] long long v16; // [rsp+60h] [rbp-68h] __int128 v17; // [rsp+68h] [rbp-60h] BYREF void *v18; // [rsp+78h] [rbp-50h] long long v19; // [rsp+80h] [rbp-48h] _OWORD v20[4]; // [rsp+88h] [rbp-40h] BYREF v14 = a3; v13 = a2; v3 = *a1; v4 = a1[1]; v5 = *(unsigned int *)((char *)dword_83CF0 + ((*(unsigned __int16 *)(v4 + 9) >> 2) & 0x1C)); v7 = &v9; std::string::_M_construct<char *>((long long)&v7, (_BYTE *)a1[6], a1[6] + a1[7]); v10 = &v12; std::string::_M_construct<char *>((long long)&v10, (_BYTE *)a1[2], a1[2] + a1[3]); v15 = &v17; if ( v7 == &v9 ) { v17 = v9; } else { v15 = v7; *(_QWORD *)&v17 = v9; } v16 = v8; v7 = &v9; v8 = 0LL; LOBYTE(v9) = 0; v18 = v20; if ( v10 == &v12 ) { v20[0] = v12; } else { v18 = v10; *(_QWORD *)&v20[0] = v12; } v19 = v11; v10 = &v12; v11 = 0LL; LOBYTE(v12) = 0; fmt::v10::detail::write_int<fmt::v10::appender,unsigned __int128,char>(v3, v13, v14, v5, v4); if ( v18 != v20 ) operator delete(v18, *(_QWORD *)&v20[0] + 1LL); if ( v15 != &v17 ) operator delete(v15, v17 + 1); if ( v10 != &v12 ) operator delete(v10, v12 + 1); if ( v7 != &v9 ) operator delete(v7, v9 + 1); return 1; }
_ZN3fmt3v106detail10loc_writerIcEclIoTnNSt9enable_ifIXsr10is_integerIT_EE5valueEiE4typeELi0EEEbS6_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RSP + 0x48],RSI MOV R13,RDI MOV R12,qword ptr [RDI] MOV R14,qword ptr [RDI + 0x8] MOVZX EAX,word ptr [R14 + 0x9] SHR EAX,0x2 AND EAX,0x1c LEA RCX,[0x183cf0] MOV EBP,dword ptr [RAX + RCX*0x1] LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV RSI,qword ptr [RDI + 0x30] MOV RDX,qword ptr [RDI + 0x38] ADD RDX,RSI LEA RDI,[RSP + 0x8] CALL 0x00118f38 LEA RBX,[RSP + 0x38] MOV qword ptr [RBX + -0x10],RBX MOV RSI,qword ptr [R13 + 0x10] MOV RDX,qword ptr [R13 + 0x18] ADD RDX,RSI LAB_0014eac2: LEA RDI,[RSP + 0x28] CALL 0x00118f38 LEA RCX,[RSP + 0x68] MOV qword ptr [RCX + -0x10],RCX MOV RAX,qword ptr [RSP + 0x8] CMP RAX,R15 JZ 0x0014eaf0 MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x68],RAX JMP 0x0014eaf7 LAB_0014eaf0: MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [RCX],XMM0 LAB_0014eaf7: MOV RAX,qword ptr [RSP + 0x10] LEA R13,[RSP + 0x88] MOV qword ptr [R13 + -0x28],RAX MOV qword ptr [RSP + 0x8],R15 MOV qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 MOV qword ptr [R13 + -0x10],R13 MOV RAX,qword ptr [RSP + 0x28] MOV R15,RCX CMP RAX,RBX JZ 0x0014eb40 MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x88],RAX JMP 0x0014eb48 LAB_0014eb40: MOVUPS XMM0,xmmword ptr [RBX] MOVUPS xmmword ptr [R13],XMM0 LAB_0014eb48: MOV RAX,qword ptr [RSP + 0x30] LEA R9,[RSP + 0x58] MOV qword ptr [R9 + 0x28],RAX MOV qword ptr [RSP + 0x28],RBX MOV qword ptr [RSP + 0x30],0x0 MOV byte ptr [RSP + 0x38],0x0 LAB_0014eb69: MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] MOV ECX,EBP MOV R8,R14 CALL 0x0014f1c6 LAB_0014eb80: MOV RDI,qword ptr [RSP + 0x78] CMP RDI,R13 JZ 0x0014eb9a MOV RSI,qword ptr [RSP + 0x88] INC RSI CALL 0x00111120 LAB_0014eb9a: MOV RDI,qword ptr [RSP + 0x58] CMP RDI,R15 JZ 0x0014ebb1 MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x00111120 LAB_0014ebb1: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,RBX JZ 0x0014ebc8 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x00111120 LAB_0014ebc8: MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x0014ebe4 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00111120 LAB_0014ebe4: MOV AL,0x1 ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 _ZN3fmt3v106detail10loc_writerIcEclIoTnNSt9enable_ifIXsr10is_integerIT_EE5valueEiE4typeELi0EEEbS6_ (int8 *param_1,int8 param_2,int8 param_3) { int4 uVar1; detail *pdVar2; long lVar3; uint *local_c0; int8 local_b8; uint local_b0; int4 uStack_ac; int4 uStack_a8; int4 uStack_a4; uint *local_a0; int8 local_98; uint local_90; int4 uStack_8c; int4 uStack_88; int4 uStack_84; int8 local_80; int8 local_78; uint *local_70; int8 local_68; int8 local_60; int4 uStack_58; int4 uStack_54; uint *local_50; int8 local_48; int8 local_40; int4 uStack_38; int4 uStack_34; pdVar2 = (detail *)*param_1; lVar3 = param_1[1]; uVar1 = *(int4 *)(&DAT_00183cf0 + (*(ushort *)(lVar3 + 9) >> 2 & 0x1c)); local_c0 = &local_b0; local_80 = param_2; local_78 = param_3; std::__cxx11::string::_M_construct<char*>(&local_c0,param_1[6],param_1[7] + param_1[6]); /* try { // try from 0014eac2 to 0014eacb has its CatchHandler @ 0014ec1e */ local_a0 = &local_90; std::__cxx11::string::_M_construct<char*>(&local_a0,param_1[2],param_1[3] + param_1[2]); if (local_c0 == &local_b0) { uStack_58 = uStack_a8; uStack_54 = uStack_a4; local_70 = (uint *)&local_60; } else { local_70 = local_c0; } local_60 = CONCAT44(uStack_ac,local_b0); local_68 = local_b8; local_b8 = 0; local_b0 = local_b0 & 0xffffff00; if (local_a0 == &local_90) { uStack_38 = uStack_88; uStack_34 = uStack_84; local_50 = (uint *)&local_40; } else { local_50 = local_a0; } local_40 = CONCAT44(uStack_8c,local_90); local_48 = local_98; local_98 = 0; local_90 = local_90 & 0xffffff00; local_c0 = &local_b0; local_a0 = &local_90; /* try { // try from 0014eb69 to 0014eb7f has its CatchHandler @ 0014ebf8 */ fmt::v10::detail::write_int<fmt::v10::appender,unsigned__int128,char> (pdVar2,local_80,local_78,uVar1,lVar3); if (local_50 != (uint *)&local_40) { operator_delete(local_50,local_40 + 1); } if (local_70 != (uint *)&local_60) { operator_delete(local_70,local_60 + 1); } if (local_a0 != &local_90) { operator_delete(local_a0,CONCAT44(uStack_8c,local_90) + 1); } if (local_c0 != &local_b0) { operator_delete(local_c0,CONCAT44(uStack_ac,local_b0) + 1); } return 1; }
21,147
httplib::detail::FileStat::FileStat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
hkr04[P]cpp-mcp/common/httplib.h
inline FileStat::FileStat(const std::string &path) { #if defined(_WIN32) auto wpath = u8string_to_wstring(path.c_str()); ret_ = _wstat(wpath.c_str(), &st_); #else ret_ = stat(path.c_str(), &st_); #endif }
O0
c
httplib::detail::FileStat::FileStat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq 0x10(%rsp), %rax movq %rax, (%rsp) movl $0xffffffff, 0x90(%rax) # imm = 0xFFFFFFFF movq 0x8(%rsp), %rdi callq 0xc310 movq (%rsp), %rsi movq %rax, %rdi callq 0xc7d0 movl %eax, %ecx movq (%rsp), %rax movl %ecx, 0x90(%rax) addq $0x18, %rsp retq nopl (%rax,%rax)
_ZN7httplib6detail8FileStatC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_10], rsi mov rax, [rsp+18h+var_8] mov [rsp+18h+var_18], rax mov dword ptr [rax+90h], 0FFFFFFFFh mov rdi, [rsp+18h+var_10] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rsi, [rsp+18h+var_18] mov rdi, rax call _stat mov ecx, eax mov rax, [rsp+18h+var_18] mov [rax+90h], ecx add rsp, 18h retn
long long httplib::detail::FileStat::FileStat(long long a1, long long a2) { long long v2; // rax int v3; // ecx long long result; // rax *(_DWORD *)(a1 + 144) = -1; v2 = std::string::c_str(a2); v3 = stat(v2, a1); result = a1; *(_DWORD *)(a1 + 144) = v3; return result; }
FileStat: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP],RAX MOV dword ptr [RAX + 0x90],0xffffffff MOV RDI,qword ptr [RSP + 0x8] CALL 0x0010c310 MOV RSI,qword ptr [RSP] MOV RDI,RAX CALL 0x0010c7d0 MOV ECX,EAX MOV RAX,qword ptr [RSP] MOV dword ptr [RAX + 0x90],ECX ADD RSP,0x18 RET
/* httplib::detail::FileStat::FileStat(std::__cxx11::string const&) */ void __thiscall httplib::detail::FileStat::FileStat(FileStat *this,string *param_1) { int iVar1; char *__file; *(int4 *)(this + 0x90) = 0xffffffff; __file = (char *)std::__cxx11::string::c_str(); iVar1 = stat(__file,(stat *)this); *(int *)(this + 0x90) = iVar1; return; }
21,148
CLI::FailureMessage::simple[abi:cxx11](CLI::App const*, CLI::Error const&)
MikePodsytnik[P]TCRtrie/build_O1/_deps/cli11-src/include/CLI/impl/App_inl.hpp
CLI11_INLINE std::string simple(const App *app, const Error &e) { std::string header = std::string(e.what()) + "\n"; std::vector<std::string> names; // Collect names if(app->get_help_ptr() != nullptr) names.push_back(app->get_help_ptr()->get_name()); if(app->get_help_all_ptr() != nullptr) names.push_back(app->get_help_all_ptr()->get_name()); // If any names found, suggest those if(!names.empty()) header += "Run with " + detail::join(names, " or ") + " for more information.\n"; return header; }
O1
cpp
CLI::FailureMessage::simple[abi:cxx11](CLI::App const*, CLI::Error const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rsi, %r14 movq %rdi, %rbx movq (%rdx), %rax movq %rdx, %rdi callq *0x10(%rax) movq %rsp, %rdi leaq 0x38(%rsp), %rdx movq %rax, %rsi callq 0x922a leaq 0x1ee21(%rip), %rsi # 0x37d83 movq %rsp, %rdi callq 0x77e0 leaq 0x10(%rbx), %r15 movq %r15, (%rbx) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x18f8c movq %rdx, (%rbx) movq (%rcx), %rdx movq %rdx, 0x10(%rbx) jmp 0x18f93 movups (%rcx), %xmm0 movups %xmm0, (%r15) movq 0x8(%rax), %rdx movq %rdx, 0x8(%rbx) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x10(%rsp), %r12 movq -0x10(%r12), %rdi cmpq %r12, %rdi je 0x18fc6 movq 0x10(%rsp), %rsi incq %rsi callq 0x7430 xorps %xmm0, %xmm0 movaps %xmm0, 0x20(%rsp) movq $0x0, 0x30(%rsp) movq 0x130(%r14), %rsi testq %rsi, %rsi je 0x19012 movq %rsp, %rdi xorl %edx, %edx xorl %ecx, %ecx callq 0x140ce leaq 0x20(%rsp), %rdi movq %rsp, %rsi callq 0x14fa6 movq (%rsp), %rdi cmpq %r12, %rdi je 0x19012 movq 0x10(%rsp), %rsi incq %rsi callq 0x7430 movq 0x138(%r14), %rsi testq %rsi, %rsi je 0x1904d movq %rsp, %rdi xorl %edx, %edx xorl %ecx, %ecx callq 0x140ce leaq 0x20(%rsp), %rdi movq %rsp, %rsi callq 0x14fa6 movq (%rsp), %rdi cmpq %r12, %rdi je 0x1904d movq 0x10(%rsp), %rsi incq %rsi callq 0x7430 movq 0x20(%rsp), %rax cmpq 0x28(%rsp), %rax je 0x191ba leaq 0x68(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x1e587(%rip), %rsi # 0x375f4 leaq 0x1e584(%rip), %rdx # 0x375f8 leaq 0x58(%rsp), %rdi callq 0x12040 leaq 0x78(%rsp), %rdi leaq 0x20(%rsp), %rsi leaq 0x58(%rsp), %rdx callq 0x14ece leaq 0x1e551(%rip), %rcx # 0x375ea leaq 0x78(%rsp), %rdi movl $0x9, %r8d xorl %esi, %esi xorl %edx, %edx callq 0x74a0 leaq 0x48(%rsp), %rbp movq %rbp, -0x10(%rbp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x190d4 movq %rdx, 0x38(%rsp) movq (%rcx), %rdx movq %rdx, 0x48(%rsp) jmp 0x190db movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx leaq 0x38(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x1e4fb(%rip), %rsi # 0x375f9 callq 0x77e0 movq %r12, (%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x19124 movq %rdx, (%rsp) movq (%rcx), %rdx movq %rdx, 0x10(%rsp) jmp 0x1912c movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx movq %rdx, 0x8(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq (%rsp), %rsi movq 0x8(%rsp), %rdx movq %rbx, %rdi callq 0x7140 movq (%rsp), %rdi cmpq %r12, %rdi je 0x1916b movq 0x10(%rsp), %rsi incq %rsi callq 0x7430 movq 0x38(%rsp), %rdi cmpq %rbp, %rdi je 0x19182 movq 0x48(%rsp), %rsi incq %rsi callq 0x7430 leaq 0x88(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x191a3 movq 0x88(%rsp), %rsi incq %rsi callq 0x7430 movq 0x58(%rsp), %rdi cmpq %r13, %rdi je 0x191ba movq 0x68(%rsp), %rsi incq %rsi callq 0x7430 leaq 0x20(%rsp), %rdi callq 0xaf62 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0x191f7 movq 0x10(%rsp), %rsi incq %rsi callq 0x7430 jmp 0x191f7 movq %rax, %r14 movq 0x38(%rsp), %rdi cmpq %rbp, %rdi je 0x19213 movq 0x48(%rsp), %rsi incq %rsi callq 0x7430 jmp 0x19213 movq %rax, %r14 leaq 0x88(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x19239 movq 0x88(%rsp), %rsi incq %rsi callq 0x7430 jmp 0x19239 movq %rax, %r14 movq 0x58(%rsp), %rdi cmpq %r13, %rdi je 0x1926e movq 0x68(%rsp), %rsi jmp 0x19261 jmp 0x1926b jmp 0x19250 jmp 0x1926b movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0x1926e movq 0x10(%rsp), %rsi incq %rsi callq 0x7430 jmp 0x1926e movq %rax, %r14 leaq 0x20(%rsp), %rdi callq 0xaf62 movq (%rbx), %rdi cmpq %r15, %rdi je 0x192a8 movq (%r15), %rsi incq %rsi callq 0x7430 jmp 0x192a8 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x192a8 movq 0x10(%rsp), %rsi jmp 0x19283 movq %rax, %r14 movq %r14, %rdi callq 0x7780
_ZN3CLI14FailureMessage6simpleB5cxx11EPKNS_3AppERKNS_5ErrorE: push rbp; int push r15; __int64 push r14; int push r13; __int64 push r12; int push rbx; __int64 sub rsp, 98h mov r14, rsi mov rbx, rdi mov rax, [rdx] mov rdi, rdx call qword ptr [rax+10h] mov rdi, rsp lea rdx, [rsp+0C8h+var_90] mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, asc_37D82+1; "\n" mov rdi, rsp call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r15, [rbx+10h] mov [rbx], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_18F8C mov [rbx], rdx mov rdx, [rcx] mov [rbx+10h], rdx jmp short loc_18F93 loc_18F8C: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r15], xmm0 loc_18F93: mov rdx, [rax+8] mov [rbx+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea r12, [rsp+0C8h+var_B8] mov rdi, [r12-10h]; void * cmp rdi, r12 jz short loc_18FC6 mov rsi, [rsp+0C8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_18FC6: xorps xmm0, xmm0 movaps xmmword ptr [rsp+0C8h+var_A8], xmm0; int mov qword ptr [rsp+0C8h+var_98], 0; int mov rsi, [r14+130h]; int test rsi, rsi jz short loc_19012 mov rdi, rsp; int xor edx, edx; int xor ecx, ecx; int call _ZNK3CLI6Option8get_nameB5cxx11Ebb; CLI::Option::get_name(bool,bool) lea rdi, [rsp+0C8h+var_A8] mov rsi, rsp call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, [rsp+0C8h+var_C8]; void * cmp rdi, r12 jz short loc_19012 mov rsi, [rsp+0C8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_19012: mov rsi, [r14+138h]; int test rsi, rsi jz short loc_1904D mov rdi, rsp; int xor edx, edx; int xor ecx, ecx; int call _ZNK3CLI6Option8get_nameB5cxx11Ebb; CLI::Option::get_name(bool,bool) lea rdi, [rsp+0C8h+var_A8] mov rsi, rsp call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, [rsp+0C8h+var_C8]; void * cmp rdi, r12 jz short loc_1904D mov rsi, [rsp+0C8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1904D: mov rax, qword ptr [rsp+0C8h+var_A8] cmp rax, qword ptr [rsp+0C8h+var_A8+8] jz loc_191BA lea r13, [rsp+0C8h+var_60] mov [r13-10h], r13 lea rsi, aOr; " or " lea rdx, aOr+4; "" lea rdi, [rsp+0C8h+var_70] 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_50] lea rsi, [rsp+0C8h+var_A8] lea rdx, [rsp+0C8h+var_70] call _ZN3CLI6detail4joinISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEEES8_RKT_S8_; CLI::detail::join<std::vector<std::string>>(std::vector<std::string> const&,std::string) lea rcx, aRunWith; "Run with " lea rdi, [rsp+0C8h+var_50] mov r8d, 9 xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) lea rbp, [rsp+0C8h+var_80] mov [rbp-10h], rbp mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_190D4 mov [rsp+0C8h+var_90], rdx mov rdx, [rcx] mov [rsp+0C8h+var_80], rdx jmp short loc_190DB loc_190D4: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rbp+0], xmm0 loc_190DB: mov rdx, [rax+8] lea rdi, [rsp+0C8h+var_90] mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, aForMoreInforma; " for more information.\n" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov [rsp+0C8h+var_C8], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_19124 mov [rsp+0C8h+var_C8], rdx mov rdx, [rcx] mov [rsp+0C8h+var_B8], rdx jmp short loc_1912C loc_19124: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 loc_1912C: mov rdx, [rax+8] mov [rsp+0C8h+var_C0], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rsi, [rsp+0C8h+var_C8] mov rdx, [rsp+0C8h+var_C0] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0C8h+var_C8]; void * cmp rdi, r12 jz short loc_1916B mov rsi, [rsp+0C8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1916B: mov rdi, [rsp+0C8h+var_90]; void * cmp rdi, rbp jz short loc_19182 mov rsi, [rsp+0C8h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_19182: lea rax, [rsp+0C8h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_191A3 mov rsi, [rsp+0C8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_191A3: mov rdi, [rsp+0C8h+var_70]; void * cmp rdi, r13 jz short loc_191BA mov rsi, [rsp+0C8h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_191BA: lea rdi, [rsp+0C8h+var_A8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [rsp+0]; void * cmp rdi, r12 jz short loc_191F7 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_191F7 mov r14, rax loc_191F7: mov rdi, [rsp+arg_30]; void * cmp rdi, rbp jz short loc_19213 mov rsi, [rsp+arg_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_19213 mov r14, rax loc_19213: lea rax, [rsp+arg_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_19239 mov rsi, [rsp+arg_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_19239 mov r14, rax loc_19239: mov rdi, [rsp+arg_50] cmp rdi, r13 jz short loc_1926E mov rsi, [rsp+arg_60] jmp short loc_19261 jmp short loc_1926B jmp short loc_19250 jmp short loc_1926B loc_19250: mov r14, rax mov rdi, [rsp+0]; void * cmp rdi, r12 jz short loc_1926E mov rsi, [rsp+arg_8] loc_19261: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1926E loc_1926B: mov r14, rax loc_1926E: lea rdi, [rsp+arg_18] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbx]; void * cmp rdi, r15 jz short loc_192A8 mov rsi, [r15] loc_19283: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_192A8 mov r14, rax lea rax, [rsp+arg_8] mov rdi, [rax-10h] cmp rdi, rax jz short loc_192A8 mov rsi, [rsp+arg_8] jmp short loc_19283 mov r14, rax loc_192A8: mov rdi, r14 call __Unwind_Resume
long long CLI::FailureMessage::simple[abi:cxx11](long long a1, long long a2, long long a3) { long long v4; // rax long long v5; // rax _OWORD *v6; // rcx long long v7; // rsi long long v8; // rsi long long v9; // rax __int128 *v10; // rcx long long v11; // rax __int128 *v12; // rcx void *v14; // [rsp+0h] [rbp-C8h] BYREF long long v15; // [rsp+8h] [rbp-C0h] __int128 v16; // [rsp+10h] [rbp-B8h] BYREF int v17[4]; // [rsp+20h] [rbp-A8h] BYREF int v18[2]; // [rsp+30h] [rbp-98h] void *v19[2]; // [rsp+38h] [rbp-90h] BYREF __int128 v20; // [rsp+48h] [rbp-80h] BYREF void *v21[2]; // [rsp+58h] [rbp-70h] BYREF _QWORD v22[2]; // [rsp+68h] [rbp-60h] BYREF void *v23[2]; // [rsp+78h] [rbp-50h] BYREF long long v24; // [rsp+88h] [rbp-40h] BYREF v4 = (*(long long ( **)(long long))(*(_QWORD *)a3 + 16LL))(a3); std::string::basic_string<std::allocator<char>>(&v14, v4); v5 = std::string::append(&v14, "\n"); *(_QWORD *)a1 = a1 + 16; v6 = (_OWORD *)(v5 + 16); if ( *(_QWORD *)v5 == v5 + 16 ) { *(_OWORD *)(a1 + 16) = *v6; } else { *(_QWORD *)a1 = *(_QWORD *)v5; *(_QWORD *)(a1 + 16) = *(_QWORD *)v6; } *(_QWORD *)(a1 + 8) = *(_QWORD *)(v5 + 8); *(_QWORD *)v5 = v6; *(_QWORD *)(v5 + 8) = 0LL; *(_BYTE *)(v5 + 16) = 0; if ( v14 != &v16 ) operator delete(v14, v16 + 1); *(_OWORD *)v17 = 0LL; *(_QWORD *)v18 = 0LL; v7 = *(_QWORD *)(a2 + 304); if ( v7 ) { CLI::Option::get_name[abi:cxx11]((long long)&v14, v7, 0, 0); std::vector<std::string>::emplace_back<std::string>((long long)v17, (long long)&v14); if ( v14 != &v16 ) operator delete(v14, v16 + 1); } v8 = *(_QWORD *)(a2 + 312); if ( v8 ) { CLI::Option::get_name[abi:cxx11]((long long)&v14, v8, 0, 0); std::vector<std::string>::emplace_back<std::string>((long long)v17, (long long)&v14); if ( v14 != &v16 ) operator delete(v14, v16 + 1); } if ( *(_QWORD *)v17 != *(_QWORD *)&v17[2] ) { v21[0] = v22; std::string::_M_construct<char const*>(v21, " or ", (long long)""); CLI::detail::join<std::vector<std::string>>((long long)v23, v17, v21); v9 = std::string::replace(v23, 0LL, 0LL); v19[0] = &v20; v10 = (__int128 *)(v9 + 16); if ( *(_QWORD *)v9 == v9 + 16 ) { v20 = *v10; } else { v19[0] = *(void **)v9; *(_QWORD *)&v20 = *(_QWORD *)v10; } v19[1] = *(void **)(v9 + 8); *(_QWORD *)v9 = v10; *(_QWORD *)(v9 + 8) = 0LL; *(_BYTE *)(v9 + 16) = 0; v11 = std::string::append(v19, " for more information.\n"); v14 = &v16; v12 = (__int128 *)(v11 + 16); if ( *(_QWORD *)v11 == v11 + 16 ) { v16 = *v12; } else { v14 = *(void **)v11; *(_QWORD *)&v16 = *(_QWORD *)v12; } v15 = *(_QWORD *)(v11 + 8); *(_QWORD *)v11 = v12; *(_QWORD *)(v11 + 8) = 0LL; *(_BYTE *)(v11 + 16) = 0; std::string::_M_append(a1, v14, v15); if ( v14 != &v16 ) operator delete(v14, v16 + 1); if ( v19[0] != &v20 ) operator delete(v19[0], v20 + 1); if ( v23[0] != &v24 ) operator delete(v23[0], v24 + 1); if ( v21[0] != v22 ) operator delete(v21[0], v22[0] + 1LL); } std::vector<std::string>::~vector(v17); return a1; }
simple[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDX] MOV RDI,RDX CALL qword ptr [RAX + 0x10] LAB_00118f4b: MOV RDI,RSP LEA RDX,[RSP + 0x38] MOV RSI,RAX CALL 0x0010922a LAB_00118f5b: LEA RSI,[0x137d83] MOV RDI,RSP CALL 0x001077e0 LEA R15,[RBX + 0x10] MOV qword ptr [RBX],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x00118f8c MOV qword ptr [RBX],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RBX + 0x10],RDX JMP 0x00118f93 LAB_00118f8c: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R15],XMM0 LAB_00118f93: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RBX + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA R12,[RSP + 0x10] MOV RDI,qword ptr [R12 + -0x10] CMP RDI,R12 JZ 0x00118fc6 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00107430 LAB_00118fc6: XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x20],XMM0 MOV qword ptr [RSP + 0x30],0x0 MOV RSI,qword ptr [R14 + 0x130] TEST RSI,RSI JZ 0x00119012 LAB_00118fe3: MOV RDI,RSP XOR EDX,EDX XOR ECX,ECX CALL 0x001140ce LAB_00118fef: LEA RDI,[RSP + 0x20] MOV RSI,RSP CALL 0x00114fa6 MOV RDI,qword ptr [RSP] CMP RDI,R12 JZ 0x00119012 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00107430 LAB_00119012: MOV RSI,qword ptr [R14 + 0x138] TEST RSI,RSI JZ 0x0011904d LAB_0011901e: MOV RDI,RSP XOR EDX,EDX XOR ECX,ECX CALL 0x001140ce LAB_0011902a: LEA RDI,[RSP + 0x20] MOV RSI,RSP CALL 0x00114fa6 MOV RDI,qword ptr [RSP] CMP RDI,R12 JZ 0x0011904d MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00107430 LAB_0011904d: MOV RAX,qword ptr [RSP + 0x20] CMP RAX,qword ptr [RSP + 0x28] JZ 0x001191ba LEA R13,[RSP + 0x68] MOV qword ptr [R13 + -0x10],R13 LAB_00119066: LEA RSI,[0x1375f4] LEA RDX,[0x1375f8] LEA RDI,[RSP + 0x58] CALL 0x00112040 LAB_0011907e: LEA RDI,[RSP + 0x78] LEA RSI,[RSP + 0x20] LEA RDX,[RSP + 0x58] CALL 0x00114ece LAB_00119092: LEA RCX,[0x1375ea] LEA RDI,[RSP + 0x78] MOV R8D,0x9 XOR ESI,ESI XOR EDX,EDX CALL 0x001074a0 LEA RBP,[RSP + 0x48] MOV qword ptr [RBP + -0x10],RBP MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x001190d4 MOV qword ptr [RSP + 0x38],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x48],RDX JMP 0x001190db LAB_001190d4: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RBP],XMM0 LAB_001190db: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x38] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_001190f7: LEA RSI,[0x1375f9] CALL 0x001077e0 MOV qword ptr [RSP],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x00119124 MOV qword ptr [RSP],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x10],RDX JMP 0x0011912c LAB_00119124: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 LAB_0011912c: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 MOV RSI,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] LAB_0011914d: MOV RDI,RBX CALL 0x00107140 LAB_00119155: MOV RDI,qword ptr [RSP] CMP RDI,R12 JZ 0x0011916b MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00107430 LAB_0011916b: MOV RDI,qword ptr [RSP + 0x38] CMP RDI,RBP JZ 0x00119182 MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x00107430 LAB_00119182: LEA RAX,[RSP + 0x88] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001191a3 MOV RSI,qword ptr [RSP + 0x88] INC RSI CALL 0x00107430 LAB_001191a3: MOV RDI,qword ptr [RSP + 0x58] CMP RDI,R13 JZ 0x001191ba MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x00107430 LAB_001191ba: LEA RDI,[RSP + 0x20] CALL 0x0010af62 MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* CLI::FailureMessage::simple[abi:cxx11](CLI::App const*, CLI::Error const&) */ FailureMessage * __thiscall CLI::FailureMessage::simple_abi_cxx11_(FailureMessage *this,App *param_1,Error *param_2) { long lVar1; char *pcVar2; long *plVar3; long *plVar4; long *local_c8; long local_c0; long local_b8; long lStack_b0; long local_a8; long lStack_a0; int8 local_98; long *local_90; long local_88; long local_80; long lStack_78; long *local_70 [2]; long local_60 [2]; long *local_50 [2]; long local_40 [2]; pcVar2 = (char *)(**(code **)(*(long *)param_2 + 0x10))(param_2); /* try { // try from 00118f4b to 00118f5a has its CatchHandler @ 001192a5 */ std::__cxx11::string::string<std::allocator<char>> ((string *)&local_c8,pcVar2,(allocator *)&local_90); /* try { // try from 00118f5b to 00118f69 has its CatchHandler @ 0011928d */ plVar3 = (long *)std::__cxx11::string::append((char *)&local_c8); *(FailureMessage **)this = this + 0x10; plVar4 = plVar3 + 2; if ((long *)*plVar3 == plVar4) { lVar1 = plVar3[3]; *(long *)(this + 0x10) = *plVar4; *(long *)(this + 0x18) = lVar1; } else { *(long **)this = (long *)*plVar3; *(long *)(this + 0x10) = *plVar4; } *(long *)(this + 8) = plVar3[1]; *plVar3 = (long)plVar4; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; if (local_c8 != &local_b8) { operator_delete(local_c8,local_b8 + 1); } local_a8 = 0; lStack_a0 = 0; local_98 = 0; if (*(long *)(param_1 + 0x130) != 0) { /* try { // try from 00118fe3 to 00118fee has its CatchHandler @ 0011926b */ Option::get_name_abi_cxx11_(SUB81(&local_c8,0),SUB81(*(long *)(param_1 + 0x130),0)); /* try { // try from 00118fef to 00118ffb has its CatchHandler @ 00119250 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_a8, (string *)&local_c8); if (local_c8 != &local_b8) { operator_delete(local_c8,local_b8 + 1); } } if (*(long *)(param_1 + 0x138) != 0) { /* try { // try from 0011901e to 00119029 has its CatchHandler @ 0011924e */ Option::get_name_abi_cxx11_(SUB81(&local_c8,0),SUB81(*(long *)(param_1 + 0x138),0)); /* try { // try from 0011902a to 00119036 has its CatchHandler @ 0011924c */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_a8, (string *)&local_c8); if (local_c8 != &local_b8) { operator_delete(local_c8,local_b8 + 1); } } if (local_a8 != lStack_a0) { /* try { // try from 00119066 to 0011907d has its CatchHandler @ 0011924a */ local_70[0] = local_60; std::__cxx11::string::_M_construct<char_const*>(local_70,&DAT_001375f4,&DAT_001375f8); /* try { // try from 0011907e to 00119091 has its CatchHandler @ 00119236 */ detail::join<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ((detail *)local_50,&local_a8,local_70); /* try { // try from 00119092 to 001190ac has its CatchHandler @ 00119210 */ plVar3 = (long *)std::__cxx11::string::replace((ulong)local_50,0,(char *)0x0,0x1375ea); plVar4 = plVar3 + 2; if ((long *)*plVar3 == plVar4) { local_80 = *plVar4; lStack_78 = plVar3[3]; local_90 = &local_80; } else { local_80 = *plVar4; local_90 = (long *)*plVar3; } local_88 = plVar3[1]; *plVar3 = (long)plVar4; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 001190f7 to 00119102 has its CatchHandler @ 001191f4 */ plVar3 = (long *)std::__cxx11::string::append((char *)&local_90); plVar4 = plVar3 + 2; if ((long *)*plVar3 == plVar4) { local_b8 = *plVar4; lStack_b0 = plVar3[3]; local_c8 = &local_b8; } else { local_b8 = *plVar4; local_c8 = (long *)*plVar3; } local_c0 = plVar3[1]; *plVar3 = (long)plVar4; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 0011914d to 00119154 has its CatchHandler @ 001191d9 */ std::__cxx11::string::_M_append((char *)this,(ulong)local_c8); if (local_c8 != &local_b8) { operator_delete(local_c8,local_b8 + 1); } if (local_90 != &local_80) { operator_delete(local_90,local_80 + 1); } if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } if (local_70[0] != local_60) { operator_delete(local_70[0],local_60[0] + 1); } } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_a8); return this; }
21,149
my_wc_mb_tis620
eloqsql/strings/ctype-tis620.c
static int my_wc_mb_tis620(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *str, uchar *end __attribute__((unused))) { const uchar *pl; if (str >= end) return MY_CS_TOOSMALL; pl= uni_to_cs[(wc>>8) & 0xFF]; str[0]= pl ? pl[wc & 0xFF] : '\0'; return (!str[0] && wc) ? MY_CS_ILUNI : 1; }
O3
c
my_wc_mb_tis620: movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x72e6e pushq %rbp movq %rsp, %rbp pushq %rbx movq %rsi, %rbx movzbl %bh, %eax leaq 0x2ba219(%rip), %rcx # 0x32d060 movq (%rcx,%rax,8), %rax testq %rax, %rax je 0x72e58 movzbl %bl, %ecx movb (%rax,%rcx), %al jmp 0x72e5a xorl %eax, %eax movb %al, (%rdx) testb %al, %al setne %al testq %rbx, %rbx sete %cl orb %al, %cl movzbl %cl, %eax popq %rbx popq %rbp retq
my_wc_mb_tis620: mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short locret_72E6E push rbp mov rbp, rsp push rbx mov rbx, rsi movzx eax, bh lea rcx, uni_to_cs_0 mov rax, [rcx+rax*8] test rax, rax jz short loc_72E58 movzx ecx, bl mov al, [rax+rcx] jmp short loc_72E5A loc_72E58: xor eax, eax loc_72E5A: mov [rdx], al test al, al setnz al test rbx, rbx setz cl or cl, al movzx eax, cl pop rbx pop rbp locret_72E6E: retn
long long my_wc_mb_tis620(long long a1, long long a2, _BYTE *a3, unsigned long long a4) { long long result; // rax long long v5; // rax char v6; // al result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = (long long)*(&uni_to_cs_0 + BYTE1(a2)); if ( v5 ) v6 = *(_BYTE *)(v5 + (unsigned __int8)a2); else v6 = 0; *a3 = v6; return (v6 != 0) | (unsigned __int8)(a2 == 0); } return result; }
my_wc_mb_tis620: MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x00172e6e PUSH RBP MOV RBP,RSP PUSH RBX MOV RBX,RSI MOVZX EAX,BH LEA RCX,[0x42d060] MOV RAX,qword ptr [RCX + RAX*0x8] TEST RAX,RAX JZ 0x00172e58 MOVZX ECX,BL MOV AL,byte ptr [RAX + RCX*0x1] JMP 0x00172e5a LAB_00172e58: XOR EAX,EAX LAB_00172e5a: MOV byte ptr [RDX],AL TEST AL,AL SETNZ AL TEST RBX,RBX SETZ CL OR CL,AL MOVZX EAX,CL POP RBX POP RBP LAB_00172e6e: RET
ulong my_wc_mb_tis620(int8 param_1,ulong param_2,char *param_3,char *param_4) { char cVar1; ulong uVar2; uVar2 = 0xffffff9b; if (param_3 < param_4) { if (*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) == 0) { cVar1 = '\0'; } else { cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) + (param_2 & 0xff)); } *param_3 = cVar1; uVar2 = (ulong)(param_2 == 0 || cVar1 != '\0'); } return uVar2; }
21,150
ggml_compute_forward_sgn_f32
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
static void ggml_compute_forward_sgn_f32( const struct ggml_compute_params * params, struct ggml_tensor * dst) { const struct ggml_tensor * src0 = dst->src[0]; if (params->ith != 0) { return; } assert(ggml_is_contiguous_1(src0)); assert(ggml_is_contiguous_1(dst)); assert(ggml_are_same_shape(src0, dst)); const int n = ggml_nrows(src0); const int nc = src0->ne[0]; for (int i = 0; i < n; i++) { ggml_vec_sgn_f32(nc, (float *) ((char *) dst->data + i*( dst->nb[1])), (float *) ((char *) src0->data + i*(src0->nb[1]))); } }
O0
c
ggml_compute_forward_sgn_f32: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x98(%rax), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax cmpl $0x0, (%rax) je 0x3930d jmp 0x39410 movq -0x18(%rbp), %rdi callq 0xd030 testb $0x1, %al jne 0x3931c jmp 0x3931e jmp 0x3933d leaq 0x3b904(%rip), %rdi # 0x74c29 leaq 0x3a836(%rip), %rsi # 0x73b62 movl $0x1816, %edx # imm = 0x1816 leaq 0x3c91b(%rip), %rcx # 0x75c53 callq 0xd690 movq -0x10(%rbp), %rdi callq 0xd030 testb $0x1, %al jne 0x3934c jmp 0x3934e jmp 0x3936d leaq 0x3b8ef(%rip), %rdi # 0x74c44 leaq 0x3a806(%rip), %rsi # 0x73b62 movl $0x1817, %edx # imm = 0x1817 leaq 0x3c8eb(%rip), %rcx # 0x75c53 callq 0xd690 movq -0x18(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0xe260 testb $0x1, %al jne 0x39380 jmp 0x39382 jmp 0x393a1 leaq 0x3af31(%rip), %rdi # 0x742ba leaq 0x3a7d2(%rip), %rsi # 0x73b62 movl $0x1818, %edx # imm = 0x1818 leaq 0x3c8b7(%rip), %rcx # 0x75c53 callq 0xd690 movq -0x18(%rbp), %rdi callq 0xdc20 movl %eax, -0x1c(%rbp) movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl %eax, -0x20(%rbp) movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax cmpl -0x1c(%rbp), %eax jge 0x39410 movl -0x20(%rbp), %edi movq -0x10(%rbp), %rax movq 0xf8(%rax), %rsi movslq -0x24(%rbp), %rax movq -0x10(%rbp), %rcx imulq 0x38(%rcx), %rax addq %rax, %rsi movq -0x18(%rbp), %rax movq 0xf8(%rax), %rdx movslq -0x24(%rbp), %rax movq -0x18(%rbp), %rcx imulq 0x38(%rcx), %rax addq %rax, %rdx callq 0x39420 movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0x393bf addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ggml_compute_forward_sgn_f32: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov rax, [rax+98h] mov [rbp+var_18], rax mov rax, [rbp+var_8] cmp dword ptr [rax], 0 jz short loc_3930D jmp loc_39410 loc_3930D: mov rdi, [rbp+var_18] call _ggml_is_contiguous_1 test al, 1 jnz short loc_3931C jmp short loc_3931E loc_3931C: jmp short loc_3933D loc_3931E: lea rdi, aGgmlIsContiguo_3; "ggml_is_contiguous_1(src0)" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov edx, 1816h lea rcx, aVoidGgmlComput_27; "void ggml_compute_forward_sgn_f32(const"... call ___assert_fail loc_3933D: mov rdi, [rbp+var_10] call _ggml_is_contiguous_1 test al, 1 jnz short loc_3934C jmp short loc_3934E loc_3934C: jmp short loc_3936D loc_3934E: lea rdi, aGgmlIsContiguo_4; "ggml_is_contiguous_1(dst)" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov edx, 1817h lea rcx, aVoidGgmlComput_27; "void ggml_compute_forward_sgn_f32(const"... call ___assert_fail loc_3936D: mov rdi, [rbp+var_18] mov rsi, [rbp+var_10] call _ggml_are_same_shape test al, 1 jnz short loc_39380 jmp short loc_39382 loc_39380: jmp short loc_393A1 loc_39382: lea rdi, aGgmlCanRepeatS+1Fh; "ggml_are_same_shape(src0, dst)" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov edx, 1818h lea rcx, aVoidGgmlComput_27; "void ggml_compute_forward_sgn_f32(const"... call ___assert_fail loc_393A1: mov rdi, [rbp+var_18] call _ggml_nrows mov [rbp+var_1C], eax mov rax, [rbp+var_18] mov rax, [rax+10h] mov [rbp+var_20], eax mov [rbp+var_24], 0 loc_393BF: mov eax, [rbp+var_24] cmp eax, [rbp+var_1C] jge short loc_39410 mov edi, [rbp+var_20] mov rax, [rbp+var_10] mov rsi, [rax+0F8h] movsxd rax, [rbp+var_24] mov rcx, [rbp+var_10] imul rax, [rcx+38h] add rsi, rax mov rax, [rbp+var_18] mov rdx, [rax+0F8h] movsxd rax, [rbp+var_24] mov rcx, [rbp+var_18] imul rax, [rcx+38h] add rdx, rax call ggml_vec_sgn_f32 mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp short loc_393BF loc_39410: add rsp, 30h pop rbp retn
unsigned long long ggml_compute_forward_sgn_f32(_DWORD *a1, _QWORD *a2) { unsigned long long result; // rax unsigned int i; // [rsp+Ch] [rbp-24h] unsigned int v4; // [rsp+10h] [rbp-20h] int v5; // [rsp+14h] [rbp-1Ch] _QWORD *v6; // [rsp+18h] [rbp-18h] v6 = (_QWORD *)a2[19]; result = (unsigned long long)a1; if ( !*a1 ) { if ( (ggml_is_contiguous_1(v6) & 1) == 0 ) __assert_fail( "ggml_is_contiguous_1(src0)", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 6166LL, "void ggml_compute_forward_sgn_f32(const struct ggml_compute_params *, struct ggml_tensor *)"); if ( (ggml_is_contiguous_1(a2) & 1) == 0 ) __assert_fail( "ggml_is_contiguous_1(dst)", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 6167LL, "void ggml_compute_forward_sgn_f32(const struct ggml_compute_params *, struct ggml_tensor *)"); if ( (ggml_are_same_shape(v6, a2) & 1) == 0 ) __assert_fail( "ggml_are_same_shape(src0, dst)", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 6168LL, "void ggml_compute_forward_sgn_f32(const struct ggml_compute_params *, struct ggml_tensor *)"); v5 = ggml_nrows(v6); v4 = v6[2]; for ( i = 0; ; ++i ) { result = i; if ( (int)i >= v5 ) break; ggml_vec_sgn_f32(v4, a2[7] * (int)i + a2[31], v6[7] * (int)i + v6[31]); } } return result; }
ggml_compute_forward_sgn_f32: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x98] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX],0x0 JZ 0x0013930d JMP 0x00139410 LAB_0013930d: MOV RDI,qword ptr [RBP + -0x18] CALL 0x0010d030 TEST AL,0x1 JNZ 0x0013931c JMP 0x0013931e LAB_0013931c: JMP 0x0013933d LAB_0013931e: LEA RDI,[0x174c29] LEA RSI,[0x173b62] MOV EDX,0x1816 LEA RCX,[0x175c53] CALL 0x0010d690 LAB_0013933d: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0010d030 TEST AL,0x1 JNZ 0x0013934c JMP 0x0013934e LAB_0013934c: JMP 0x0013936d LAB_0013934e: LEA RDI,[0x174c44] LEA RSI,[0x173b62] MOV EDX,0x1817 LEA RCX,[0x175c53] CALL 0x0010d690 LAB_0013936d: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0010e260 TEST AL,0x1 JNZ 0x00139380 JMP 0x00139382 LAB_00139380: JMP 0x001393a1 LAB_00139382: LEA RDI,[0x1742ba] LEA RSI,[0x173b62] MOV EDX,0x1818 LEA RCX,[0x175c53] CALL 0x0010d690 LAB_001393a1: MOV RDI,qword ptr [RBP + -0x18] CALL 0x0010dc20 MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV dword ptr [RBP + -0x20],EAX MOV dword ptr [RBP + -0x24],0x0 LAB_001393bf: MOV EAX,dword ptr [RBP + -0x24] CMP EAX,dword ptr [RBP + -0x1c] JGE 0x00139410 MOV EDI,dword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0xf8] MOVSXD RAX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x10] IMUL RAX,qword ptr [RCX + 0x38] ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RAX + 0xf8] MOVSXD RAX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x18] IMUL RAX,qword ptr [RCX + 0x38] ADD RDX,RAX CALL 0x00139420 MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x001393bf LAB_00139410: ADD RSP,0x30 POP RBP RET
void ggml_compute_forward_sgn_f32(int *param_1,long param_2) { long lVar1; int8 uVar2; int iVar3; ulong uVar4; int local_2c; lVar1 = *(long *)(param_2 + 0x98); if (*param_1 == 0) { uVar4 = ggml_is_contiguous_1(lVar1); if ((uVar4 & 1) == 0) { /* WARNING: Subroutine does not return */ __assert_fail("ggml_is_contiguous_1(src0)", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x1816, "void ggml_compute_forward_sgn_f32(const struct ggml_compute_params *, struct ggml_tensor *)" ); } uVar4 = ggml_is_contiguous_1(param_2); if ((uVar4 & 1) == 0) { /* WARNING: Subroutine does not return */ __assert_fail("ggml_is_contiguous_1(dst)", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x1817, "void ggml_compute_forward_sgn_f32(const struct ggml_compute_params *, struct ggml_tensor *)" ); } uVar4 = ggml_are_same_shape(lVar1,param_2); if ((uVar4 & 1) == 0) { /* WARNING: Subroutine does not return */ __assert_fail("ggml_are_same_shape(src0, dst)", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x1818, "void ggml_compute_forward_sgn_f32(const struct ggml_compute_params *, struct ggml_tensor *)" ); } iVar3 = ggml_nrows(lVar1); uVar2 = *(int8 *)(lVar1 + 0x10); for (local_2c = 0; local_2c < iVar3; local_2c = local_2c + 1) { ggml_vec_sgn_f32((int)uVar2, *(long *)(param_2 + 0xf8) + (long)local_2c * *(long *)(param_2 + 0x38), *(long *)(lVar1 + 0xf8) + (long)local_2c * *(long *)(lVar1 + 0x38)); } } return; }
21,151
my_like_range_czech
eloqsql/strings/ctype-czech.c
static my_bool my_like_range_czech(CHARSET_INFO *cs __attribute__((unused)), const char *ptr,size_t ptr_length, pbool escape, pbool w_one, pbool w_many, size_t res_length, char *min_str, char *max_str, size_t *min_length,size_t *max_length) { #ifdef EXAMPLE uchar value; const char *end=ptr+ptr_length; char *min_org=min_str; char *min_end=min_str+res_length; for (; ptr != end && min_str != min_end ; ptr++) { if (*ptr == w_one) /* '_' in SQL */ { break; } if (*ptr == w_many) /* '%' in SQL */ { break; } if (*ptr == escape && ptr+1 != end) { ptr++; } /* Skip escape */ value = CZ_SORT_TABLE[0][(int) (uchar) *ptr]; if (value == 0) /* Ignore in the first pass */ { continue; } if (value <= 2) /* End of pass or end of string */ { break; } if (value == 255) /* Double char too compicated */ { break; } *min_str++= *max_str++ = *ptr; } if (cs->state & MY_CS_BINSORT) *min_length= (size_t) (min_str - min_org); else { /* 'a\0\0... is the smallest possible string */ *min_length= res_length; } /* a\ff\ff... is the biggest possible string */ *max_length= res_length; while (min_str != min_end) { *min_str++ = min_sort_char; /* Because of key compression */ *max_str++ = max_sort_char; } return 0; #else return 1; #endif }
O0
c
my_like_range_czech: pushq %rbp movq %rsp, %rbp movl %r8d, -0x50(%rbp) movl %ecx, %eax movl -0x50(%rbp), %ecx movl %eax, -0x4c(%rbp) movq %rdx, %rax movl -0x4c(%rbp), %edx movq %rax, -0x48(%rbp) movq %rsi, %rax movq -0x48(%rbp), %rsi movq %rax, -0x40(%rbp) movq %rdi, %r8 movq -0x40(%rbp), %rdi movb %r9b, %al movq 0x30(%rbp), %r9 movq 0x28(%rbp), %r9 movq 0x20(%rbp), %r9 movq 0x18(%rbp), %r9 movq 0x10(%rbp), %r9 movq %r8, -0x8(%rbp) movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movb %dl, -0x19(%rbp) movb %cl, -0x1a(%rbp) movb %al, -0x1b(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq 0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq 0x18(%rbp), %rax addq 0x10(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rcx xorl %eax, %eax cmpq -0x28(%rbp), %rcx movb %al, -0x51(%rbp) je 0x476f5 movq 0x18(%rbp), %rax cmpq -0x38(%rbp), %rax setne %al movb %al, -0x51(%rbp) movb -0x51(%rbp), %al testb $0x1, %al jne 0x47701 jmp 0x477c5 movq -0x10(%rbp), %rax movsbl (%rax), %eax movsbl -0x1a(%rbp), %ecx cmpl %ecx, %eax jne 0x47715 jmp 0x477c5 movq -0x10(%rbp), %rax movsbl (%rax), %eax movsbl -0x1b(%rbp), %ecx cmpl %ecx, %eax jne 0x47729 jmp 0x477c5 movq -0x10(%rbp), %rax movsbl (%rax), %eax movsbl -0x19(%rbp), %ecx cmpl %ecx, %eax jne 0x47752 movq -0x10(%rbp), %rax addq $0x1, %rax cmpq -0x28(%rbp), %rax je 0x47752 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movq 0x18df97(%rip), %rax # 0x1d56f0 movq -0x10(%rbp), %rcx movzbl (%rcx), %ecx movslq %ecx, %rcx movb (%rax,%rcx), %al movb %al, -0x1c(%rbp) movzbl -0x1c(%rbp), %eax cmpl $0x0, %eax jne 0x47774 jmp 0x477b4 movzbl -0x1c(%rbp), %eax cmpl $0x2, %eax jg 0x4777f jmp 0x477c5 movzbl -0x1c(%rbp), %eax cmpl $0xff, %eax jne 0x4778c jmp 0x477c5 movq -0x10(%rbp), %rax movb (%rax), %cl movq 0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x20(%rbp) movb %cl, (%rax) movq 0x18(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x18(%rbp) movb %cl, (%rax) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x476d8 movq -0x8(%rbp), %rax movl 0xc(%rax), %eax andl $0x10, %eax cmpl $0x0, %eax je 0x477e8 movq 0x18(%rbp), %rcx movq -0x30(%rbp), %rax subq %rax, %rcx movq 0x28(%rbp), %rax movq %rcx, (%rax) jmp 0x477f3 movq 0x10(%rbp), %rcx movq 0x28(%rbp), %rax movq %rcx, (%rax) movq 0x10(%rbp), %rcx movq 0x30(%rbp), %rax movq %rcx, (%rax) movq 0x18(%rbp), %rax cmpq -0x38(%rbp), %rax je 0x4782e movq 0x18(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x18(%rbp) movb $0x20, (%rax) movq 0x20(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x20(%rbp) movb $0x39, (%rax) jmp 0x477fe xorl %eax, %eax popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
my_like_range_czech: push rbp mov rbp, rsp mov [rbp+var_50], r8d mov eax, ecx mov ecx, [rbp+var_50] mov [rbp+var_4C], eax mov rax, rdx mov edx, [rbp+var_4C] mov [rbp+var_48], rax mov rax, rsi mov rsi, [rbp+var_48] mov [rbp+var_40], rax mov r8, rdi mov rdi, [rbp+var_40] mov al, r9b mov r9, [rbp+arg_20] mov r9, [rbp+arg_18] mov r9, [rbp+arg_10] mov r9, [rbp+arg_8] mov r9, [rbp+arg_0] mov [rbp+var_8], r8 mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_19], dl mov [rbp+var_1A], cl mov [rbp+var_1B], al mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_28], rax mov rax, [rbp+arg_8] mov [rbp+var_30], rax mov rax, [rbp+arg_8] add rax, [rbp+arg_0] mov [rbp+var_38], rax loc_476D8: mov rcx, [rbp+var_10] xor eax, eax cmp rcx, [rbp+var_28] mov [rbp+var_51], al jz short loc_476F5 mov rax, [rbp+arg_8] cmp rax, [rbp+var_38] setnz al mov [rbp+var_51], al loc_476F5: mov al, [rbp+var_51] test al, 1 jnz short loc_47701 jmp loc_477C5 loc_47701: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] movsx ecx, [rbp+var_1A] cmp eax, ecx jnz short loc_47715 jmp loc_477C5 loc_47715: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] movsx ecx, [rbp+var_1B] cmp eax, ecx jnz short loc_47729 jmp loc_477C5 loc_47729: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] movsx ecx, [rbp+var_19] cmp eax, ecx jnz short loc_47752 mov rax, [rbp+var_10] add rax, 1 cmp rax, [rbp+var_28] jz short loc_47752 mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax loc_47752: mov rax, cs:CZ_SORT_TABLE mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx] movsxd rcx, ecx mov al, [rax+rcx] mov [rbp+var_1C], al movzx eax, [rbp+var_1C] cmp eax, 0 jnz short loc_47774 jmp short loc_477B4 loc_47774: movzx eax, [rbp+var_1C] cmp eax, 2 jg short loc_4777F jmp short loc_477C5 loc_4777F: movzx eax, [rbp+var_1C] cmp eax, 0FFh jnz short loc_4778C jmp short loc_477C5 loc_4778C: mov rax, [rbp+var_10] mov cl, [rax] mov rax, [rbp+arg_10] mov rdx, rax add rdx, 1 mov [rbp+arg_10], rdx mov [rax], cl mov rax, [rbp+arg_8] mov rdx, rax add rdx, 1 mov [rbp+arg_8], rdx mov [rax], cl loc_477B4: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp loc_476D8 loc_477C5: mov rax, [rbp+var_8] mov eax, [rax+0Ch] and eax, 10h cmp eax, 0 jz short loc_477E8 mov rcx, [rbp+arg_8] mov rax, [rbp+var_30] sub rcx, rax mov rax, [rbp+arg_18] mov [rax], rcx jmp short loc_477F3 loc_477E8: mov rcx, [rbp+arg_0] mov rax, [rbp+arg_18] mov [rax], rcx loc_477F3: mov rcx, [rbp+arg_0] mov rax, [rbp+arg_20] mov [rax], rcx loc_477FE: mov rax, [rbp+arg_8] cmp rax, [rbp+var_38] jz short loc_4782E mov rax, [rbp+arg_8] mov rcx, rax add rcx, 1 mov [rbp+arg_8], rcx mov byte ptr [rax], 20h ; ' ' mov rax, [rbp+arg_10] mov rcx, rax add rcx, 1 mov [rbp+arg_10], rcx mov byte ptr [rax], 39h ; '9' jmp short loc_477FE loc_4782E: xor eax, eax pop rbp retn
long long my_like_range_czech( long long a1, unsigned __int8 *a2, long long a3, char a4, char a5, char a6, long long a7, unsigned __int8 *a8, unsigned __int8 *a9, _QWORD *a10, _QWORD *a11) { unsigned __int8 v11; // cl unsigned __int8 *v12; // rax unsigned __int8 *v13; // rax unsigned __int8 *v14; // rax unsigned __int8 *v15; // rax bool v17; // [rsp+1h] [rbp-51h] unsigned __int8 *v18; // [rsp+1Ah] [rbp-38h] long long v19; // [rsp+22h] [rbp-30h] char *v20; // [rsp+2Ah] [rbp-28h] unsigned __int8 v21; // [rsp+36h] [rbp-1Ch] unsigned __int8 *v23; // [rsp+42h] [rbp-10h] v23 = a2; v20 = (char *)&a2[a3]; v19 = (long long)a8; v18 = &a8[a7]; while ( 1 ) { v17 = 0; if ( v23 != (unsigned __int8 *)v20 ) v17 = a8 != v18; if ( !v17 || (char)*v23 == a5 || (char)*v23 == a6 ) break; if ( (char)*v23 == a4 && v23 + 1 != (unsigned __int8 *)v20 ) ++v23; v21 = byte_E3BA7[*v23]; if ( v21 ) { if ( v21 <= 2u || v21 == 255 ) break; v11 = *v23; v12 = a9++; *v12 = *v23; v13 = a8++; *v13 = v11; } ++v23; } if ( (*(_DWORD *)(a1 + 12) & 0x10) != 0 ) *a10 = &a8[-v19]; else *a10 = a7; *a11 = a7; while ( a8 != v18 ) { v14 = a8++; *v14 = 32; v15 = a9++; *v15 = 57; } return 0LL; }
my_like_range_czech: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x50],R8D MOV EAX,ECX MOV ECX,dword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x4c],EAX MOV RAX,RDX MOV EDX,dword ptr [RBP + -0x4c] MOV qword ptr [RBP + -0x48],RAX MOV RAX,RSI MOV RSI,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x40],RAX MOV R8,RDI MOV RDI,qword ptr [RBP + -0x40] MOV AL,R9B MOV R9,qword ptr [RBP + 0x30] MOV R9,qword ptr [RBP + 0x28] MOV R9,qword ptr [RBP + 0x20] MOV R9,qword ptr [RBP + 0x18] MOV R9,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],R8 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV byte ptr [RBP + -0x19],DL MOV byte ptr [RBP + -0x1a],CL MOV byte ptr [RBP + -0x1b],AL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + 0x18] ADD RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x38],RAX LAB_001476d8: MOV RCX,qword ptr [RBP + -0x10] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x28] MOV byte ptr [RBP + -0x51],AL JZ 0x001476f5 MOV RAX,qword ptr [RBP + 0x18] CMP RAX,qword ptr [RBP + -0x38] SETNZ AL MOV byte ptr [RBP + -0x51],AL LAB_001476f5: MOV AL,byte ptr [RBP + -0x51] TEST AL,0x1 JNZ 0x00147701 JMP 0x001477c5 LAB_00147701: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] MOVSX ECX,byte ptr [RBP + -0x1a] CMP EAX,ECX JNZ 0x00147715 JMP 0x001477c5 LAB_00147715: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] MOVSX ECX,byte ptr [RBP + -0x1b] CMP EAX,ECX JNZ 0x00147729 JMP 0x001477c5 LAB_00147729: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] MOVSX ECX,byte ptr [RBP + -0x19] CMP EAX,ECX JNZ 0x00147752 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 CMP RAX,qword ptr [RBP + -0x28] JZ 0x00147752 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX LAB_00147752: MOV RAX,qword ptr [0x002d56f0] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX] MOVSXD RCX,ECX MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x1c],AL MOVZX EAX,byte ptr [RBP + -0x1c] CMP EAX,0x0 JNZ 0x00147774 JMP 0x001477b4 LAB_00147774: MOVZX EAX,byte ptr [RBP + -0x1c] CMP EAX,0x2 JG 0x0014777f JMP 0x001477c5 LAB_0014777f: MOVZX EAX,byte ptr [RBP + -0x1c] CMP EAX,0xff JNZ 0x0014778c JMP 0x001477c5 LAB_0014778c: MOV RAX,qword ptr [RBP + -0x10] MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + 0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + 0x20],RDX MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + 0x18] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + 0x18],RDX MOV byte ptr [RAX],CL LAB_001477b4: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x001476d8 LAB_001477c5: MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0xc] AND EAX,0x10 CMP EAX,0x0 JZ 0x001477e8 MOV RCX,qword ptr [RBP + 0x18] MOV RAX,qword ptr [RBP + -0x30] SUB RCX,RAX MOV RAX,qword ptr [RBP + 0x28] MOV qword ptr [RAX],RCX JMP 0x001477f3 LAB_001477e8: MOV RCX,qword ptr [RBP + 0x10] MOV RAX,qword ptr [RBP + 0x28] MOV qword ptr [RAX],RCX LAB_001477f3: MOV RCX,qword ptr [RBP + 0x10] MOV RAX,qword ptr [RBP + 0x30] MOV qword ptr [RAX],RCX LAB_001477fe: MOV RAX,qword ptr [RBP + 0x18] CMP RAX,qword ptr [RBP + -0x38] JZ 0x0014782e MOV RAX,qword ptr [RBP + 0x18] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + 0x18],RCX MOV byte ptr [RAX],0x20 MOV RAX,qword ptr [RBP + 0x20] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + 0x20],RCX MOV byte ptr [RAX],0x39 JMP 0x001477fe LAB_0014782e: XOR EAX,EAX POP RBP RET
int8 my_like_range_czech(long param_1,byte *param_2,long param_3,byte param_4,byte param_5,byte param_6, long param_7,byte *param_8,byte *param_9,long *param_10,long *param_11) { byte bVar1; byte *pbVar2; byte *pbVar3; byte *local_18; pbVar2 = param_8; pbVar3 = param_8 + param_7; for (local_18 = param_2; ((local_18 != param_2 + param_3 && param_8 != pbVar3 && (*local_18 != param_5)) && (*local_18 != param_6)); local_18 = local_18 + 1) { if ((*local_18 == param_4) && (local_18 + 1 != param_2 + param_3)) { local_18 = local_18 + 1; } bVar1 = CZ_SORT_TABLE[(int)(uint)*local_18]; if (bVar1 != 0) { if ((bVar1 < 3) || (bVar1 == 0xff)) break; bVar1 = *local_18; *param_9 = bVar1; *param_8 = bVar1; param_8 = param_8 + 1; param_9 = param_9 + 1; } } if ((*(uint *)(param_1 + 0xc) & 0x10) == 0) { *param_10 = param_7; } else { *param_10 = (long)param_8 - (long)pbVar2; } *param_11 = param_7; while (param_8 != pbVar3) { *param_8 = 0x20; *param_9 = 0x39; param_8 = param_8 + 1; param_9 = param_9 + 1; } return 0; }
21,152
my_stat
eloqsql/mysys/my_lib.c
MY_STAT *my_stat(const char *path, MY_STAT *stat_area, myf my_flags) { int m_used; DBUG_ENTER("my_stat"); DBUG_PRINT("my", ("path: '%s' stat_area: %p MyFlags: %lu", path, stat_area, my_flags)); if ((m_used= (stat_area == NULL))) if (!(stat_area= (MY_STAT *) my_malloc(key_memory_MY_STAT, sizeof(MY_STAT), my_flags))) goto error; #ifndef _WIN32 if (!stat((char *) path, (struct stat *) stat_area)) { MSAN_STAT_WORKAROUND(stat_area); DBUG_RETURN(stat_area); } #else if (!my_win_stat(path, stat_area)) DBUG_RETURN(stat_area); #endif DBUG_PRINT("error",("Got errno: %d from stat", errno)); my_errno= errno; if (m_used) /* Free if new area */ my_free(stat_area); error: if (my_flags & (MY_FAE+MY_WME)) { my_error(EE_STAT, MYF(ME_BELL), path, my_errno); DBUG_RETURN((MY_STAT *) NULL); } DBUG_RETURN((MY_STAT *) NULL); }
O0
c
my_stat: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) jmp 0x31a16 cmpq $0x0, -0x18(%rbp) sete %al movb %al, %cl andb $0x1, %cl movzbl %cl, %ecx movl %ecx, -0x24(%rbp) testb $0x1, %al jne 0x31a2f jmp 0x31a54 leaq 0x35b942(%rip), %rax # 0x38d378 movl (%rax), %edi movq -0x20(%rbp), %rdx movl $0x90, %esi callq 0x281f0 movq %rax, -0x18(%rbp) cmpq $0x0, %rax jne 0x31a52 jmp 0x31a9b jmp 0x31a54 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x245a0 cmpl $0x0, %eax jne 0x31a72 jmp 0x31a68 movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x31ae1 jmp 0x31a74 jmp 0x31a76 callq 0x24040 movl (%rax), %eax movl %eax, -0x28(%rbp) callq 0x28a40 movl -0x28(%rbp), %ecx movl %ecx, (%rax) cmpl $0x0, -0x24(%rbp) je 0x31a99 movq -0x18(%rbp), %rdi callq 0x28570 jmp 0x31a9b movq -0x20(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0x31ad7 movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) callq 0x28a40 movq -0x30(%rbp), %rdx movl (%rax), %ecx movl $0xd, %edi movl $0x4, %esi movb $0x0, %al callq 0x2fae0 movq $0x0, -0x8(%rbp) jmp 0x31ae1 jmp 0x31ad9 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
my_stat: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx jmp short $+2 loc_31A16: cmp [rbp+var_18], 0 setz al mov cl, al and cl, 1 movzx ecx, cl mov [rbp+var_24], ecx test al, 1 jnz short loc_31A2F jmp short loc_31A54 loc_31A2F: lea rax, key_memory_MY_STAT mov edi, [rax] mov rdx, [rbp+var_20] mov esi, 90h call my_malloc mov [rbp+var_18], rax cmp rax, 0 jnz short loc_31A52 jmp short loc_31A9B loc_31A52: jmp short $+2 loc_31A54: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call _stat64 cmp eax, 0 jnz short loc_31A72 jmp short $+2 loc_31A68: mov rax, [rbp+var_18] mov [rbp+var_8], rax jmp short loc_31AE1 loc_31A72: jmp short $+2 loc_31A74: jmp short $+2 loc_31A76: call ___errno_location mov eax, [rax] mov [rbp+var_28], eax call _my_thread_var mov ecx, [rbp+var_28] mov [rax], ecx cmp [rbp+var_24], 0 jz short loc_31A99 mov rdi, [rbp+var_18] call my_free loc_31A99: jmp short $+2 loc_31A9B: mov rax, [rbp+var_20] and rax, 18h cmp rax, 0 jz short loc_31AD7 mov rax, [rbp+var_10] mov [rbp+var_30], rax call _my_thread_var mov rdx, [rbp+var_30] mov ecx, [rax] mov edi, 0Dh mov esi, 4 mov al, 0 call my_error mov [rbp+var_8], 0 jmp short loc_31AE1 loc_31AD7: jmp short $+2 loc_31AD9: mov [rbp+var_8], 0 loc_31AE1: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long my_stat(long long a1, long long a2, char a3) { unsigned int *v3; // rax int v5; // [rsp+8h] [rbp-28h] long long v7; // [rsp+18h] [rbp-18h] v7 = a2; if ( a2 || (v7 = my_malloc(key_memory_MY_STAT, 0x90uLL, a3)) != 0 ) { if ( !(unsigned int)stat64(a1, v7) ) return v7; v5 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var() = v5; if ( !a2 ) my_free(v7); } if ( (a3 & 0x18) != 0 ) { v3 = (unsigned int *)my_thread_var(); my_error(0xDu, 4LL, a1, *v3); } return 0LL; }
my_stat: 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 JMP 0x00131a16 LAB_00131a16: CMP qword ptr [RBP + -0x18],0x0 SETZ AL MOV CL,AL AND CL,0x1 MOVZX ECX,CL MOV dword ptr [RBP + -0x24],ECX TEST AL,0x1 JNZ 0x00131a2f JMP 0x00131a54 LAB_00131a2f: LEA RAX,[0x48d378] MOV EDI,dword ptr [RAX] MOV RDX,qword ptr [RBP + -0x20] MOV ESI,0x90 CALL 0x001281f0 MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JNZ 0x00131a52 JMP 0x00131a9b LAB_00131a52: JMP 0x00131a54 LAB_00131a54: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001245a0 CMP EAX,0x0 JNZ 0x00131a72 JMP 0x00131a68 LAB_00131a68: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX JMP 0x00131ae1 LAB_00131a72: JMP 0x00131a74 LAB_00131a74: JMP 0x00131a76 LAB_00131a76: CALL 0x00124040 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x28],EAX CALL 0x00128a40 MOV ECX,dword ptr [RBP + -0x28] MOV dword ptr [RAX],ECX CMP dword ptr [RBP + -0x24],0x0 JZ 0x00131a99 MOV RDI,qword ptr [RBP + -0x18] CALL 0x00128570 LAB_00131a99: JMP 0x00131a9b LAB_00131a9b: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x18 CMP RAX,0x0 JZ 0x00131ad7 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX CALL 0x00128a40 MOV RDX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RAX] MOV EDI,0xd MOV ESI,0x4 MOV AL,0x0 CALL 0x0012fae0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00131ae1 LAB_00131ad7: JMP 0x00131ad9 LAB_00131ad9: MOV qword ptr [RBP + -0x8],0x0 LAB_00131ae1: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
stat64 * my_stat(char *param_1,stat64 *param_2,ulong param_3) { int iVar1; int *piVar2; int4 *puVar3; stat64 *local_20; local_20 = param_2; if ((param_2 != (stat64 *)0x0) || (local_20 = (stat64 *)my_malloc(key_memory_MY_STAT,0x90,param_3), local_20 != (stat64 *)0x0)) { iVar1 = stat64(param_1,local_20); if (iVar1 == 0) { return local_20; } piVar2 = __errno_location(); iVar1 = *piVar2; piVar2 = (int *)_my_thread_var(); *piVar2 = iVar1; if (param_2 == (stat64 *)0x0) { my_free(local_20); } } if ((param_3 & 0x18) != 0) { puVar3 = (int4 *)_my_thread_var(); my_error(0xd,4,param_1,*puVar3); } return (stat64 *)0x0; }
21,153
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>::at<char const (&) [9], 0>(char const (&) [9]) const
monkey531[P]llama/common/json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O3
cpp
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>::at<char const (&) [9], 0>(char const (&) [9]) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0xa513f movq %rsi, %r15 movq 0x8(%r14), %r12 movq (%r12), %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx je 0xa5129 movq %rbx, %rdi movq %r15, %rsi callq 0x1b220 testl %eax, %eax je 0xa511e addq $0x30, %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx jne 0xa50ff jmp 0xa5121 movq %rbx, %rax movq 0x8(%r14), %rcx movq 0x8(%rcx), %rbx cmpq %rbx, %rax je 0xa519d addq $0x20, %rax addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1b440 movq %rax, %rbx movq %r14, %rdi callq 0x5eb8c movq %rsp, %rdx movq %rax, (%rdx) leaq 0x4dbd1(%rip), %rsi # 0xf2d32 leaq 0x20(%rsp), %rdi callq 0xaab35 movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x8649a xorl %ebp, %ebp leaq 0x86dac(%rip), %rsi # 0x12bf38 leaq -0x4a3d1(%rip), %rdx # 0x5adc2 movq %rbx, %rdi callq 0x1bef0 jmp 0xa5216 movl $0x20, %edi callq 0x1b440 movq %rax, %rbx leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq %r15, %rdi callq 0x1b3e0 leaq (%rax,%r15), %rdx movq %rsp, %rdi movq %r15, %rsi callq 0x21ce4 leaq 0x4db90(%rip), %rsi # 0xf2d62 leaq 0x4db8f(%rip), %rcx # 0xf2d68 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xab112 movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0xab48a xorl %ebp, %ebp leaq 0x86cb1(%rip), %rsi # 0x12beb8 leaq -0x4a44c(%rip), %rdx # 0x5adc2 movq %rbx, %rdi callq 0x1bef0 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xa5234 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b8b0 movq (%rsp), %rdi cmpq %r12, %rdi je 0xa527f movq 0x10(%rsp), %rsi jmp 0xa5277 movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0xa5289 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8b0 jmp 0xa5289 jmp 0xa5286 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xa527f movq 0x30(%rsp), %rsi incq %rsi callq 0x1b8b0 testb %bpl, %bpl jne 0xa5289 jmp 0xa5291 movq %rax, %r14 movq %rbx, %rdi callq 0x1b650 movq %r14, %rdi callq 0x1bf70 nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: push rbp; char push r15; int push r14; int push r12; int push rbx; char sub rsp, 40h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_A513F mov r15, rsi mov r12, [r14+8] mov rbx, [r12] mov rax, [r12+8] cmp rbx, rax jz short loc_A5129 loc_A50FF: mov rdi, rbx mov rsi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_A511E add rbx, 30h ; '0' mov rax, [r12+8] cmp rbx, rax jnz short loc_A50FF jmp short loc_A5121 loc_A511E: mov rax, rbx loc_A5121: mov rcx, [r14+8] mov rbx, [rcx+8] loc_A5129: cmp rax, rbx jz short loc_A519D add rax, 20h ; ' ' add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_A513F: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 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 rdx, rsp mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_48] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_A5216 loc_A519D: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r12, [rsp+68h+var_58] mov [r12-10h], r12 mov rdi, r15 call _strlen lea rdx, [rax+r15] mov rdi, rsp mov rsi, r15 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 rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_48] mov rdx, rsp call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_A5216: mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_A5234 mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A5234: mov rdi, [rsp+68h+var_68] cmp rdi, r12 jz short loc_A527F mov rsi, [rsp+68h+var_58] jmp short loc_A5277 mov r14, rax mov rdi, [rsp+68h+var_68]; void * cmp rdi, r12 jz short loc_A5289 mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_A5289 jmp short loc_A5286 mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_A527F mov rsi, [rsp+68h+var_38] loc_A5277: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A527F: test bpl, bpl jnz short loc_A5289 jmp short loc_A5291 loc_A5286: mov r14, rax loc_A5289: mov rdi, rbx; void * call ___cxa_free_exception loc_A5291: mov rdi, r14 call __Unwind_Resume
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x001a513f MOV R15,RSI MOV R12,qword ptr [R14 + 0x8] MOV RBX,qword ptr [R12] MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JZ 0x001a5129 LAB_001a50ff: MOV RDI,RBX MOV RSI,R15 CALL 0x0011b220 TEST EAX,EAX JZ 0x001a511e ADD RBX,0x30 MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JNZ 0x001a50ff JMP 0x001a5121 LAB_001a511e: MOV RAX,RBX LAB_001a5121: MOV RCX,qword ptr [R14 + 0x8] MOV RBX,qword ptr [RCX + 0x8] LAB_001a5129: CMP RAX,RBX JZ 0x001a519d ADD RAX,0x20 ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001a513f: MOV EDI,0x20 CALL 0x0011b440 MOV RBX,RAX MOV RDI,R14 CALL 0x0015eb8c MOV RDX,RSP MOV qword ptr [RDX],RAX LAB_001a515a: LEA RSI,[0x1f2d32] LEA RDI,[RSP + 0x20] CALL 0x001aab35 MOV BPL,0x1 LAB_001a516e: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x0018649a XOR EBP,EBP LEA RSI,[0x22bf38] LEA RDX,[0x15adc2] MOV RDI,RBX CALL 0x0011bef0 LAB_001a519d: MOV EDI,0x20 CALL 0x0011b440 MOV RBX,RAX LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 MOV RDI,R15 CALL 0x0011b3e0 LEA RDX,[RAX + R15*0x1] LAB_001a51c0: MOV RDI,RSP MOV RSI,R15 CALL 0x00121ce4 LAB_001a51cb: LEA RSI,[0x1f2d62] LEA RCX,[0x1f2d68] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001ab112 MOV BPL,0x1 LAB_001a51e9: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x001ab48a XOR EBP,EBP LEA RSI,[0x22beb8] LEA RDX,[0x15adc2] MOV RDI,RBX CALL 0x0011bef0
char * _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (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_1,char *param_2) { long *plVar1; int iVar2; char *pcVar3; int8 uVar4; size_t sVar5; char *pcVar6; char *local_68 [2]; char local_58 [16]; detail local_48 [32]; if (*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> )0x1) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = (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_1); /* try { // try from 001a515a to 001a516a has its CatchHandler @ 001a5286 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_48,"cannot use at() with ",local_68); /* try { // try from 001a516e to 001a519a has its CatchHandler @ 001a5261 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x130,local_48,param_1); /* 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::exception::~exception); } plVar1 = *(long **)(param_1 + 8); pcVar6 = (char *)*plVar1; pcVar3 = (char *)plVar1[1]; if (pcVar6 != pcVar3) { do { pcVar3 = pcVar6; iVar2 = std::__cxx11::string::compare(pcVar3); if (iVar2 == 0) break; pcVar6 = pcVar3 + 0x30; pcVar3 = (char *)plVar1[1]; } while (pcVar6 != pcVar3); pcVar6 = *(char **)(*(long *)(param_1 + 8) + 8); } if (pcVar3 == pcVar6) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = local_58; sVar5 = strlen(param_2); /* try { // try from 001a51c0 to 001a51ca has its CatchHandler @ 001a525f */ std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5); /* try { // try from 001a51cb to 001a51e5 has its CatchHandler @ 001a5244 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_48,"key \'",(string *)local_68,"\' not found"); /* try { // try from 001a51e9 to 001a5215 has its CatchHandler @ 001a5216 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x193,local_48,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return pcVar3 + 0x20; }
21,154
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>>>>> 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>::parser<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>>>>>(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>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, 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>&)>, bool, bool)
monkey531[P]llama/common/json.hpp
static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser( InputAdapterType adapter, detail::parser_callback_t<basic_json>cb = nullptr, const bool allow_exceptions = true, const bool ignore_comments = false ) { return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter), std::move(cb), allow_exceptions, ignore_comments); }
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>>>>> 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>::parser<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>>>>>(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>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, 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>&)>, bool, bool): pushq %rbx subq $0x30, %rsp movq %rdi, %rbx movq %rsi, 0x20(%rsp) movq %rdx, 0x28(%rsp) xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) andq $0x0, 0x10(%rsp) movq 0x18(%rcx), %rax movq %rax, 0x18(%rsp) movq 0x10(%rcx), %rax testq %rax, %rax je 0x418e6 movups (%rcx), %xmm1 addq $0x10, %rcx movaps %xmm1, (%rsp) movq %rax, 0x10(%rsp) movups %xmm0, (%rcx) movzbl %r8b, %ecx movzbl %r9b, %r8d leaq 0x20(%rsp), %rsi movq %rsp, %rdx movq %rbx, %rdi callq 0x41d48 movq %rsp, %rdi callq 0x633c0 movq %rbx, %rax addq $0x30, %rsp popq %rbx retq movq %rax, %rbx movq %rsp, %rdi callq 0x633c0 movq %rbx, %rdi callq 0x20ba0
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb: push rbx sub rsp, 30h mov rbx, rdi mov [rsp+38h+var_18], rsi mov [rsp+38h+var_10], rdx xorps xmm0, xmm0 movaps [rsp+38h+var_38], xmm0 and [rsp+38h+var_28], 0 mov rax, [rcx+18h] mov [rsp+38h+var_20], rax mov rax, [rcx+10h] test rax, rax jz short loc_418E6 movups xmm1, xmmword ptr [rcx] add rcx, 10h movaps [rsp+38h+var_38], xmm1 mov [rsp+38h+var_28], rax movups xmmword ptr [rcx], xmm0 loc_418E6: movzx ecx, r8b movzx r8d, r9b lea rsi, [rsp+38h+var_18] mov rdx, rsp mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_St8functionIFbiNS1_13parse_event_tERSF_EEbb; 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,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>>>::parser(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>&&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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>&)>,bool,bool) mov rdi, rsp; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() mov rax, rbx add rsp, 30h pop rbx retn mov rbx, rax mov rdi, rsp; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() mov rdi, rbx call __Unwind_Resume
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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>( long long a1, long long a2, long long a3, __int128 *a4, unsigned __int8 a5, unsigned __int8 a6) { long long v6; // rax __int128 v8; // [rsp+0h] [rbp-38h] BYREF long long v9; // [rsp+10h] [rbp-28h] long long v10; // [rsp+18h] [rbp-20h] _QWORD v11[3]; // [rsp+20h] [rbp-18h] BYREF v11[0] = a2; v11[1] = a3; v8 = 0LL; v9 = 0LL; v10 = *((_QWORD *)a4 + 3); v6 = *((_QWORD *)a4 + 2); if ( v6 ) { v8 = *a4; v9 = v6; a4[1] = 0LL; } ((void ( *)(long long, _QWORD *, __int128 *, _QWORD, _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>>>::parser)( a1, v11, &v8, a5, a6); std::_Function_base::~_Function_base((std::_Function_base *)&v8); return a1; }
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>: PUSH RBX SUB RSP,0x30 MOV RBX,RDI MOV qword ptr [RSP + 0x20],RSI MOV qword ptr [RSP + 0x28],RDX XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 AND qword ptr [RSP + 0x10],0x0 MOV RAX,qword ptr [RCX + 0x18] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RCX + 0x10] TEST RAX,RAX JZ 0x001418e6 MOVUPS XMM1,xmmword ptr [RCX] ADD RCX,0x10 MOVAPS xmmword ptr [RSP],XMM1 MOV qword ptr [RSP + 0x10],RAX MOVUPS xmmword ptr [RCX],XMM0 LAB_001418e6: MOVZX ECX,R8B MOVZX R8D,R9B LEA RSI,[RSP + 0x20] MOV RDX,RSP MOV RDI,RBX CALL 0x00141d48 LAB_001418fe: MOV RDI,RSP CALL 0x001633c0 MOV RAX,RBX ADD RSP,0x30 POP RBX 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 > > > 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > >, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, 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>&)>, bool, bool) */ 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>>> * 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> :: parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> (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>>> *param_1,int8 param_2,int8 param_3,int8 *param_4,int1 param_5, int1 param_6) { long lVar1; int8 local_38; int8 uStack_30; long local_28; int8 local_20; int8 local_18; int8 local_10; local_38 = 0; uStack_30 = 0; local_28 = 0; local_20 = param_4[3]; lVar1 = param_4[2]; if (lVar1 != 0) { local_38 = *param_4; uStack_30 = param_4[1]; param_4[2] = 0; param_4[3] = 0; local_28 = lVar1; } /* try { // try from 001418e6 to 001418fd has its CatchHandler @ 0014190f */ local_18 = param_2; local_10 = param_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>>> ::parser(param_1,&local_18,&local_38,param_5,param_6); std::_Function_base::~_Function_base((_Function_base *)&local_38); return param_1; }
21,155
my_strnxfrm_win1250ch
eloqsql/strings/ctype-win1250ch.c
static size_t my_strnxfrm_win1250ch(CHARSET_INFO *cs __attribute__((unused)), uchar *dest, size_t len, uint nweights_arg __attribute__((unused)), const uchar *src, size_t srclen, uint flags) { int value; const uchar *p; int pass = 0; size_t totlen = 0; p = src; if (!(flags & 0x0F)) /* All levels by default */ flags|= 0x0F; while (totlen < len) { NEXT_CMP_VALUE(src, p, pass, value, (int)srclen); if (!value) break; if ((1 << pass) & flags) dest[totlen++] = value; } if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len > totlen) { memset(dest + totlen, 0x00, len - totlen); totlen= len; } return totlen; }
O0
c
my_strnxfrm_win1250ch: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movl $0x0, -0x44(%rbp) movq $0x0, -0x50(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) movl 0x10(%rbp), %eax andl $0xf, %eax cmpl $0x0, %eax jne 0x6b810 movl 0x10(%rbp), %eax orl $0xf, %eax movl %eax, 0x10(%rbp) jmp 0x6b812 movq -0x50(%rbp), %rax cmpq -0x18(%rbp), %rax jae 0x6b9f9 jmp 0x6b822 movq -0x40(%rbp), %rax movq -0x28(%rbp), %rcx subq %rcx, %rax movq -0x30(%rbp), %rcx movslq %ecx, %rcx cmpq %rcx, %rax jl 0x6b869 cmpl $0x0, -0x44(%rbp) jne 0x6b85b movq -0x30(%rbp), %rax cmpl $0x0, %eax jle 0x6b85b movq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) movl -0x44(%rbp), %eax addl $0x1, %eax movl %eax, -0x44(%rbp) jmp 0x6b867 movl $0x0, -0x34(%rbp) jmp 0x6b9bf jmp 0x6b869 cmpl $0x0, -0x44(%rbp) jne 0x6b888 movq -0x40(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx leaq 0x149e21(%rip), %rax # 0x1b56a0 movzbl (%rax,%rcx), %eax movl %eax, -0x6c(%rbp) jmp 0x6b89f movq -0x40(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx leaq 0x3188d8(%rip), %rax # 0x384170 movzbl (%rax,%rcx), %eax movl %eax, -0x6c(%rbp) movl -0x6c(%rbp), %eax movl %eax, -0x34(%rbp) cmpl $0xff, -0x34(%rbp) jne 0x6b9b3 movl $0x0, -0x54(%rbp) cmpl $0x50, -0x54(%rbp) jge 0x6b9b1 movslq -0x54(%rbp), %rcx leaq 0x160ca2(%rip), %rax # 0x1cc570 shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rax movq %rax, -0x60(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x60(%rbp), %rax movzbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x6d(%rbp) je 0x6b927 movq -0x68(%rbp), %rcx movq -0x28(%rbp), %rax subq %rax, %rcx movq -0x30(%rbp), %rax movslq %eax, %rdx xorl %eax, %eax cmpq %rdx, %rcx movb %al, -0x6d(%rbp) jge 0x6b927 movq -0x60(%rbp), %rax movzbl (%rax), %eax movq -0x68(%rbp), %rcx movzbl (%rcx), %ecx cmpl %ecx, %eax sete %al movb %al, -0x6d(%rbp) movb -0x6d(%rbp), %al testb $0x1, %al jne 0x6b930 jmp 0x6b94a movq -0x60(%rbp), %rax addq $0x1, %rax movq %rax, -0x60(%rbp) movq -0x68(%rbp), %rax addq $0x1, %rax movq %rax, -0x68(%rbp) jmp 0x6b8e4 movq -0x60(%rbp), %rax cmpb $0x0, (%rax) jne 0x6b9a1 cmpl $0x0, -0x44(%rbp) jne 0x6b974 movslq -0x54(%rbp), %rcx leaq 0x160c0c(%rip), %rax # 0x1cc570 shlq $0x4, %rcx addq %rcx, %rax movzbl 0x8(%rax), %eax movl %eax, -0x74(%rbp) jmp 0x6b98d movslq -0x54(%rbp), %rcx leaq 0x160bf1(%rip), %rax # 0x1cc570 shlq $0x4, %rcx addq %rcx, %rax movzbl 0x9(%rax), %eax movl %eax, -0x74(%rbp) movl -0x74(%rbp), %eax movl %eax, -0x34(%rbp) movq -0x68(%rbp), %rax addq $-0x1, %rax movq %rax, -0x40(%rbp) jmp 0x6b9b1 jmp 0x6b9a3 movl -0x54(%rbp), %eax addl $0x1, %eax movl %eax, -0x54(%rbp) jmp 0x6b8b9 jmp 0x6b9b3 movq -0x40(%rbp), %rax addq $0x1, %rax movq %rax, -0x40(%rbp) cmpl $0x0, -0x34(%rbp) jne 0x6b9c7 jmp 0x6b9f9 movl -0x44(%rbp), %ecx movl $0x1, %eax shll %cl, %eax andl 0x10(%rbp), %eax cmpl $0x0, %eax je 0x6b9f4 movl -0x34(%rbp), %eax movb %al, %dl movq -0x10(%rbp), %rax movq -0x50(%rbp), %rcx movq %rcx, %rsi addq $0x1, %rsi movq %rsi, -0x50(%rbp) movb %dl, (%rax,%rcx) jmp 0x6b812 movl 0x10(%rbp), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x6ba2f movq -0x18(%rbp), %rax cmpq -0x50(%rbp), %rax jbe 0x6ba2f movq -0x10(%rbp), %rdi addq -0x50(%rbp), %rdi movq -0x18(%rbp), %rdx subq -0x50(%rbp), %rdx xorl %esi, %esi callq 0x24190 movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax addq $0x80, %rsp popq %rbp retq nopl (%rax)
my_strnxfrm_win1250ch: push rbp mov rbp, rsp sub rsp, 80h mov eax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov [rbp+var_44], 0 mov [rbp+var_50], 0 mov rax, [rbp+var_28] mov [rbp+var_40], rax mov eax, [rbp+arg_0] and eax, 0Fh cmp eax, 0 jnz short loc_6B810 mov eax, [rbp+arg_0] or eax, 0Fh mov [rbp+arg_0], eax loc_6B810: jmp short $+2 loc_6B812: mov rax, [rbp+var_50] cmp rax, [rbp+var_18] jnb loc_6B9F9 jmp short $+2 loc_6B822: mov rax, [rbp+var_40] mov rcx, [rbp+var_28] sub rax, rcx mov rcx, [rbp+var_30] movsxd rcx, ecx cmp rax, rcx jl short loc_6B869 cmp [rbp+var_44], 0 jnz short loc_6B85B mov rax, [rbp+var_30] cmp eax, 0 jle short loc_6B85B mov rax, [rbp+var_28] mov [rbp+var_40], rax mov eax, [rbp+var_44] add eax, 1 mov [rbp+var_44], eax jmp short loc_6B867 loc_6B85B: mov [rbp+var_34], 0 jmp loc_6B9BF loc_6B867: jmp short $+2 loc_6B869: cmp [rbp+var_44], 0 jnz short loc_6B888 mov rax, [rbp+var_40] movzx eax, byte ptr [rax] mov ecx, eax lea rax, _sort_order_win1250ch1 movzx eax, byte ptr [rax+rcx] mov [rbp+var_6C], eax jmp short loc_6B89F loc_6B888: mov rax, [rbp+var_40] movzx eax, byte ptr [rax] mov ecx, eax lea rax, _sort_order_win1250ch2 movzx eax, byte ptr [rax+rcx] mov [rbp+var_6C], eax loc_6B89F: mov eax, [rbp+var_6C] mov [rbp+var_34], eax cmp [rbp+var_34], 0FFh jnz loc_6B9B3 mov [rbp+var_54], 0 loc_6B8B9: cmp [rbp+var_54], 50h ; 'P' jge loc_6B9B1 movsxd rcx, [rbp+var_54] lea rax, doubles_0 shl rcx, 4 add rax, rcx mov rax, [rax] mov [rbp+var_60], rax mov rax, [rbp+var_40] mov [rbp+var_68], rax loc_6B8E4: mov rax, [rbp+var_60] movzx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_6D], al jz short loc_6B927 mov rcx, [rbp+var_68] mov rax, [rbp+var_28] sub rcx, rax mov rax, [rbp+var_30] movsxd rdx, eax xor eax, eax cmp rcx, rdx mov [rbp+var_6D], al jge short loc_6B927 mov rax, [rbp+var_60] movzx eax, byte ptr [rax] mov rcx, [rbp+var_68] movzx ecx, byte ptr [rcx] cmp eax, ecx setz al mov [rbp+var_6D], al loc_6B927: mov al, [rbp+var_6D] test al, 1 jnz short loc_6B930 jmp short loc_6B94A loc_6B930: mov rax, [rbp+var_60] add rax, 1 mov [rbp+var_60], rax mov rax, [rbp+var_68] add rax, 1 mov [rbp+var_68], rax jmp short loc_6B8E4 loc_6B94A: mov rax, [rbp+var_60] cmp byte ptr [rax], 0 jnz short loc_6B9A1 cmp [rbp+var_44], 0 jnz short loc_6B974 movsxd rcx, [rbp+var_54] lea rax, doubles_0 shl rcx, 4 add rax, rcx movzx eax, byte ptr [rax+8] mov [rbp+var_74], eax jmp short loc_6B98D loc_6B974: movsxd rcx, [rbp+var_54] lea rax, doubles_0 shl rcx, 4 add rax, rcx movzx eax, byte ptr [rax+9] mov [rbp+var_74], eax loc_6B98D: mov eax, [rbp+var_74] mov [rbp+var_34], eax mov rax, [rbp+var_68] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_40], rax jmp short loc_6B9B1 loc_6B9A1: jmp short $+2 loc_6B9A3: mov eax, [rbp+var_54] add eax, 1 mov [rbp+var_54], eax jmp loc_6B8B9 loc_6B9B1: jmp short $+2 loc_6B9B3: mov rax, [rbp+var_40] add rax, 1 mov [rbp+var_40], rax loc_6B9BF: cmp [rbp+var_34], 0 jnz short loc_6B9C7 jmp short loc_6B9F9 loc_6B9C7: mov ecx, [rbp+var_44] mov eax, 1 shl eax, cl and eax, [rbp+arg_0] cmp eax, 0 jz short loc_6B9F4 mov eax, [rbp+var_34] mov dl, al mov rax, [rbp+var_10] mov rcx, [rbp+var_50] mov rsi, rcx add rsi, 1 mov [rbp+var_50], rsi mov [rax+rcx], dl loc_6B9F4: jmp loc_6B812 loc_6B9F9: mov eax, [rbp+arg_0] and eax, 80h cmp eax, 0 jz short loc_6BA2F mov rax, [rbp+var_18] cmp rax, [rbp+var_50] jbe short loc_6BA2F mov rdi, [rbp+var_10] add rdi, [rbp+var_50] mov rdx, [rbp+var_18] sub rdx, [rbp+var_50] xor esi, esi call _memset mov rax, [rbp+var_18] mov [rbp+var_50], rax loc_6BA2F: mov rax, [rbp+var_50] add rsp, 80h pop rbp retn
unsigned long long my_strnxfrm_win1250ch( long long a1, long long a2, unsigned long long a3, long long a4, unsigned __int8 *a5, int a6, int a7) { long long v7; // rcx int v9; // [rsp+Ch] [rbp-74h] bool v10; // [rsp+13h] [rbp-6Dh] int v11; // [rsp+14h] [rbp-6Ch] unsigned __int8 *j; // [rsp+18h] [rbp-68h] _BYTE *v13; // [rsp+20h] [rbp-60h] int i; // [rsp+2Ch] [rbp-54h] unsigned long long v15; // [rsp+30h] [rbp-50h] int v16; // [rsp+3Ch] [rbp-44h] unsigned __int8 *v17; // [rsp+40h] [rbp-40h] int v18; // [rsp+4Ch] [rbp-34h] v16 = 0; v15 = 0LL; v17 = a5; if ( (a7 & 0xF) == 0 ) a7 |= 0xFu; while ( v15 < a3 ) { if ( v17 - a5 >= a6 ) { if ( v16 || a6 <= 0 ) { v18 = 0; goto LABEL_28; } v17 = a5; v16 = 1; } if ( v16 ) v11 = sort_order_win1250ch2[*v17]; else v11 = sort_order_win1250ch1[*v17]; v18 = v11; if ( v11 == 255 ) { for ( i = 0; i < 80; ++i ) { v13 = *(&doubles_0 + 2 * i); for ( j = v17; ; ++j ) { v10 = 0; if ( *v13 ) { v10 = 0; if ( j - a5 < a6 ) v10 = (unsigned __int8)*v13 == *j; } if ( !v10 ) break; ++v13; } if ( !*v13 ) { if ( v16 ) v9 = *((unsigned __int8 *)&doubles_0 + 16 * i + 9); else v9 = *((unsigned __int8 *)&doubles_0 + 16 * i + 8); v18 = v9; v17 = j - 1; break; } } } ++v17; LABEL_28: if ( !v18 ) break; if ( (a7 & (1 << v16)) != 0 ) { v7 = v15++; *(_BYTE *)(a2 + v7) = v18; } } if ( (a7 & 0x80) != 0 && a3 > v15 ) { memset(v15 + a2, 0LL, a3 - v15); return a3; } return v15; }
my_strnxfrm_win1250ch: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV dword ptr [RBP + -0x44],0x0 MOV qword ptr [RBP + -0x50],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX MOV EAX,dword ptr [RBP + 0x10] AND EAX,0xf CMP EAX,0x0 JNZ 0x0016b810 MOV EAX,dword ptr [RBP + 0x10] OR EAX,0xf MOV dword ptr [RBP + 0x10],EAX LAB_0016b810: JMP 0x0016b812 LAB_0016b812: MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x18] JNC 0x0016b9f9 JMP 0x0016b822 LAB_0016b822: MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x28] SUB RAX,RCX MOV RCX,qword ptr [RBP + -0x30] MOVSXD RCX,ECX CMP RAX,RCX JL 0x0016b869 CMP dword ptr [RBP + -0x44],0x0 JNZ 0x0016b85b MOV RAX,qword ptr [RBP + -0x30] CMP EAX,0x0 JLE 0x0016b85b MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX MOV EAX,dword ptr [RBP + -0x44] ADD EAX,0x1 MOV dword ptr [RBP + -0x44],EAX JMP 0x0016b867 LAB_0016b85b: MOV dword ptr [RBP + -0x34],0x0 JMP 0x0016b9bf LAB_0016b867: JMP 0x0016b869 LAB_0016b869: CMP dword ptr [RBP + -0x44],0x0 JNZ 0x0016b888 MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x2b56a0] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV dword ptr [RBP + -0x6c],EAX JMP 0x0016b89f LAB_0016b888: MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x484170] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV dword ptr [RBP + -0x6c],EAX LAB_0016b89f: MOV EAX,dword ptr [RBP + -0x6c] MOV dword ptr [RBP + -0x34],EAX CMP dword ptr [RBP + -0x34],0xff JNZ 0x0016b9b3 MOV dword ptr [RBP + -0x54],0x0 LAB_0016b8b9: CMP dword ptr [RBP + -0x54],0x50 JGE 0x0016b9b1 MOVSXD RCX,dword ptr [RBP + -0x54] LEA RAX,[0x2cc570] SHL RCX,0x4 ADD RAX,RCX MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x68],RAX LAB_0016b8e4: MOV RAX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x6d],AL JZ 0x0016b927 MOV RCX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RBP + -0x28] SUB RCX,RAX MOV RAX,qword ptr [RBP + -0x30] MOVSXD RDX,EAX XOR EAX,EAX CMP RCX,RDX MOV byte ptr [RBP + -0x6d],AL JGE 0x0016b927 MOV RAX,qword ptr [RBP + -0x60] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x68] MOVZX ECX,byte ptr [RCX] CMP EAX,ECX SETZ AL MOV byte ptr [RBP + -0x6d],AL LAB_0016b927: MOV AL,byte ptr [RBP + -0x6d] TEST AL,0x1 JNZ 0x0016b930 JMP 0x0016b94a LAB_0016b930: MOV RAX,qword ptr [RBP + -0x60] ADD RAX,0x1 MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x68] ADD RAX,0x1 MOV qword ptr [RBP + -0x68],RAX JMP 0x0016b8e4 LAB_0016b94a: MOV RAX,qword ptr [RBP + -0x60] CMP byte ptr [RAX],0x0 JNZ 0x0016b9a1 CMP dword ptr [RBP + -0x44],0x0 JNZ 0x0016b974 MOVSXD RCX,dword ptr [RBP + -0x54] LEA RAX,[0x2cc570] SHL RCX,0x4 ADD RAX,RCX MOVZX EAX,byte ptr [RAX + 0x8] MOV dword ptr [RBP + -0x74],EAX JMP 0x0016b98d LAB_0016b974: MOVSXD RCX,dword ptr [RBP + -0x54] LEA RAX,[0x2cc570] SHL RCX,0x4 ADD RAX,RCX MOVZX EAX,byte ptr [RAX + 0x9] MOV dword ptr [RBP + -0x74],EAX LAB_0016b98d: MOV EAX,dword ptr [RBP + -0x74] MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x68] ADD RAX,-0x1 MOV qword ptr [RBP + -0x40],RAX JMP 0x0016b9b1 LAB_0016b9a1: JMP 0x0016b9a3 LAB_0016b9a3: MOV EAX,dword ptr [RBP + -0x54] ADD EAX,0x1 MOV dword ptr [RBP + -0x54],EAX JMP 0x0016b8b9 LAB_0016b9b1: JMP 0x0016b9b3 LAB_0016b9b3: MOV RAX,qword ptr [RBP + -0x40] ADD RAX,0x1 MOV qword ptr [RBP + -0x40],RAX LAB_0016b9bf: CMP dword ptr [RBP + -0x34],0x0 JNZ 0x0016b9c7 JMP 0x0016b9f9 LAB_0016b9c7: MOV ECX,dword ptr [RBP + -0x44] MOV EAX,0x1 SHL EAX,CL AND EAX,dword ptr [RBP + 0x10] CMP EAX,0x0 JZ 0x0016b9f4 MOV EAX,dword ptr [RBP + -0x34] MOV DL,AL MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x50] MOV RSI,RCX ADD RSI,0x1 MOV qword ptr [RBP + -0x50],RSI MOV byte ptr [RAX + RCX*0x1],DL LAB_0016b9f4: JMP 0x0016b812 LAB_0016b9f9: MOV EAX,dword ptr [RBP + 0x10] AND EAX,0x80 CMP EAX,0x0 JZ 0x0016ba2f MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x50] JBE 0x0016ba2f MOV RDI,qword ptr [RBP + -0x10] ADD RDI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x18] SUB RDX,qword ptr [RBP + -0x50] XOR ESI,ESI CALL 0x00124190 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX LAB_0016ba2f: MOV RAX,qword ptr [RBP + -0x50] ADD RSP,0x80 POP RBP RET
ulong my_strnxfrm_win1250ch (int8 param_1,long param_2,ulong param_3,int8 param_4,byte *param_5, int param_6,uint param_7) { char cVar1; bool bVar2; bool bVar3; byte *local_70; byte *local_68; int local_5c; ulong local_58; byte *local_48; bVar2 = false; local_58 = 0; local_48 = param_5; if ((param_7 & 0xf) == 0) { param_7 = param_7 | 0xf; } while (local_58 < param_3) { if ((long)local_48 - (long)param_5 < (long)param_6) { LAB_0016b869: if (bVar2) { cVar1 = _sort_order_win1250ch2[*local_48]; } else { cVar1 = _sort_order_win1250ch1[*local_48]; } if (cVar1 == -1) { for (local_5c = 0; local_5c < 0x50; local_5c = local_5c + 1) { local_68 = *(byte **)(doubles + (long)local_5c * 0x10); local_70 = local_48; while( true ) { bVar3 = false; if ((*local_68 != 0) && (bVar3 = false, (long)local_70 - (long)param_5 < (long)param_6)) { bVar3 = *local_68 == *local_70; } if (!bVar3) break; local_68 = local_68 + 1; local_70 = local_70 + 1; } if (*local_68 == 0) { if (bVar2) { cVar1 = doubles[(long)local_5c * 0x10 + 9]; } else { cVar1 = doubles[(long)local_5c * 0x10 + 8]; } local_48 = local_70 + -1; break; } } } local_48 = local_48 + 1; } else { if ((!bVar2) && (0 < param_6)) { bVar2 = true; local_48 = param_5; goto LAB_0016b869; } cVar1 = '\0'; } if (cVar1 == '\0') break; if ((1 << bVar2 & param_7) != 0) { *(char *)(param_2 + local_58) = cVar1; local_58 = local_58 + 1; } } if (((param_7 & 0x80) != 0) && (local_58 < param_3)) { memset((void *)(param_2 + local_58),0,param_3 - local_58); local_58 = param_3; } return local_58; }
21,156
LefDefParser::lefiLayer::parseMinstep(int)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp
void lefiLayer::parseMinstep(int index) { char *wrkingStr = strdup(values_[index]); char *value; double minStepLength = 0, minAdjLength = 0, minBetLength = 0; int maxEdges = 0, xSameCorners = 0, done = 0; char msg[1024]; if (strcmp(type(), "ROUTING") != 0) { /* sprintf(msg, "ERROR (LEFPARS-1323): The property LEF57_MINSTEP with value %s is for TYPE ROUTING only.\nThe current layer has the TYPE %s.\nUpdate the property of your lef file with the correct syntax or remove this property from your lef file.\n", values_[index], type()); lefiError(msg); */ sprintf(msg, "The property LEF57_MINSTEP with value %s is for TYPE ROUTING only.\nThe current layer has the TYPE %s.\nUpdate the property of your lef file with the correct syntax or remove this property from your lef file.\n", values_[index], type()); lefError(1323, msg); free(wrkingStr); return; } value = strtok(wrkingStr, " "); if (strcmp(value, "MINSTEP") != 0) { /* sprintf(msg, "ERROR (LEFPARS-1315): Incorrect syntax defined for property LEF57_MINSTEP: %s.\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefiError(msg); */ sprintf(msg, "Incorrect syntax defined for property LEF57_MINSTEP: %s.\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefError(1315, msg); free(wrkingStr); return; } value = strtok(NULL, " "); minStepLength = atof(value); //addMinstep(minStepLength); value = strtok(NULL, " "); while (done == 0) { if (value && *value != '\n') { if (strcmp(value, "MAXEDGES") == 0) { // MAXEDGES maxEdges if (maxEdges) { // MAXEDGES has already defined /* sprintf(msg, "ERROR (LEFPARS-1315): Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefiError(msg); */ sprintf(msg, "Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefError(1315, msg); free(wrkingStr); // done parsing return; } value = strtok(NULL, " "); maxEdges = atoi(value); //addMinstepMaxedges(maxEdges); value = strtok(NULL, " "); } else if (strcmp(value, "MINADJACENTLENGTH") == 0) { if (minBetLength) { // MINBETWEENLENGTH has defined, it is either MINADJACENTLENGTH // or MINBETWEENLENGTH but not both /* sprintf(msg, "ERROR (LEFPARS-1315): Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefiError(msg); */ sprintf(msg, "Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefError(1315, msg); free(wrkingStr); // done parsing return; } value = strtok(NULL, " "); minAdjLength = atof(value); //addMinstepMinAdjLength(minAdjLength); value = strtok(NULL, " "); } else if (strcmp(value, "MINBETWEENLENGTH") == 0) { if (minAdjLength) { // minadjACENTLENGTH has defined, it is either MINBETWEENLENGTH // or minADJACENTLENGTH but not both /* sprintf(msg, "ERROR (LEFPARS-1315): Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefierror(msg); */ sprintf(msg, "Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefError(1315, msg); free(wrkingStr); // done parsing return; } value = strtok(NULL, " "); minBetLength = atof(value); //addMinstepMinBetLength(minBetLength); value = strtok(NULL, " "); } else if (strcmp(value, "EXCEPTSAMECORNERS") == 0) { if (minBetLength) { xSameCorners = 1; //addMinstepXSameCorners(); value = strtok(NULL, " "); } else { /* sprintf(msg, "ERROR (LEFPARS-1315): Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefierror(msg); */ sprintf(msg, "Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefError(1315, msg); free(wrkingStr); // done parsing return; } } else if (strcmp(value, ";") != 0) { // an invalid value /* sprintf(msg, "ERROR (LEFPARS-1315): Incorrect syntax defined for property LEF57_MINSTEP: %s.\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefierror(msg); */ sprintf(msg, "Incorrect syntax defined for property LEF57_MINSTEP: %s.\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefError(1315, msg); free(wrkingStr); // done parsing return; } else done = 1; } else { // done parsing without ; /* sprintf(msg, "eRROR (LEFPARS-1315): Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefierror(msg); */ sprintf(msg, "incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n", values_[index]); lefError(1315, msg); free(wrkingStr); // done parsing return; } } if (minStepLength) addMinstep(minStepLength); if (maxEdges) addMinstepMaxedges(maxEdges); if (minAdjLength) addMinstepMinAdjLength(minAdjLength); if (minBetLength) addMinstepMinBetLength(minBetLength); if (xSameCorners) addMinstepXSameCorners(); free(wrkingStr); return; }
O3
cpp
LefDefParser::lefiLayer::parseMinstep(int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x438, %rsp # imm = 0x438 movq %rdi, %r14 movq 0x360(%rdi), %rax movslq %esi, %r13 movq (%rax,%r13,8), %r15 movq %r15, %rdi callq 0x2380 movq %rax, %rbx movq 0x10(%r14), %r12 leaq 0x31895(%rip), %rsi # 0x4f6bb movq %r12, %rdi callq 0x22b0 testl %eax, %eax je 0x1de58 leaq 0x30f4c(%rip), %rsi # 0x4ed85 leaq 0x30(%rsp), %r14 movq %r14, %rdi movq %r15, %rdx movq %r12, %rcx xorl %eax, %eax callq 0x2050 movl $0x52b, %edi # imm = 0x52B jmp 0x1e03d leaq 0x31ea2(%rip), %rsi # 0x4fd01 movq %rbx, %rdi callq 0x2300 leaq 0x31766(%rip), %rsi # 0x4f5d4 movq %rax, %rdi callq 0x22b0 testl %eax, %eax je 0x1de91 movq 0x360(%r14), %rax movq (%rax,%r13,8), %rdx leaq 0x30fc9(%rip), %rsi # 0x4ee55 jmp 0x1e029 leaq 0x31e69(%rip), %r12 # 0x4fd01 movq $0x0, 0x20(%rsp) xorl %edi, %edi movq %r12, %rsi callq 0x2300 movq %rax, %rdi callq 0x2260 movsd %xmm0, 0x28(%rsp) xorl %edi, %edi movq %r12, %rsi callq 0x2300 testq %rax, %rax je 0x1e003 movq %rax, %rbp leaq 0x31e2b(%rip), %r12 # 0x4fd01 xorpd %xmm0, %xmm0 movsd %xmm0, 0x18(%rsp) movsd %xmm0, 0x10(%rsp) movl $0x0, 0xc(%rsp) movb (%rbp), %r15b cmpb $0xa, %r15b je 0x1e003 movq %rbp, %rdi leaq 0x31022(%rip), %rsi # 0x4ef28 callq 0x22b0 testl %eax, %eax je 0x1df73 movq %rbp, %rdi leaq 0x310ea(%rip), %rsi # 0x4f003 callq 0x22b0 testl %eax, %eax je 0x1df97 movq %rbp, %rdi leaq 0x310e9(%rip), %rsi # 0x4f015 callq 0x22b0 testl %eax, %eax je 0x1dfc3 movq %rbp, %rdi leaq 0x310e3(%rip), %rsi # 0x4f026 callq 0x22b0 testl %eax, %eax jne 0x1e05f movl $0x1, 0xc(%rsp) movsd 0x10(%rsp), %xmm0 ucomisd 0x2d13a(%rip), %xmm0 # 0x4b0a0 jne 0x1dfed jp 0x1dfed jmp 0x1e017 cmpl $0x0, 0x20(%rsp) jne 0x1e017 xorl %edi, %edi movq %r12, %rsi callq 0x2300 movq %rax, %rdi callq 0x22f0 movq %rax, 0x20(%rsp) jmp 0x1dfed movsd 0x10(%rsp), %xmm0 ucomisd 0x2d0fb(%rip), %xmm0 # 0x4b0a0 jne 0x1e017 jp 0x1e017 xorl %edi, %edi movq %r12, %rsi callq 0x2300 movq %rax, %rdi callq 0x2260 movsd %xmm0, 0x18(%rsp) jmp 0x1dfed movsd 0x18(%rsp), %xmm0 ucomisd 0x2d0cf(%rip), %xmm0 # 0x4b0a0 jne 0x1e017 jp 0x1e017 xorl %edi, %edi movq %r12, %rsi callq 0x2300 movq %rax, %rdi callq 0x2260 movsd %xmm0, 0x10(%rsp) xorl %edi, %edi movq %r12, %rsi callq 0x2300 movq %rax, %rbp testq %rax, %rax jne 0x1deee movq 0x360(%r14), %rax movq (%rax,%r13,8), %rdx leaq 0x31023(%rip), %rsi # 0x4f038 jmp 0x1e029 movq 0x360(%r14), %rax movq (%rax,%r13,8), %rdx leaq 0x30f08(%rip), %rsi # 0x4ef31 leaq 0x30(%rsp), %r14 movq %r14, %rdi xorl %eax, %eax callq 0x2050 movl $0x523, %edi # imm = 0x523 movq %r14, %rsi callq 0x2453a movq %rbx, %rdi callq 0x2240 addq $0x438, %rsp # imm = 0x438 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq cmpb $0x3b, %r15b jne 0x1de7a cmpb $0x0, 0x1(%rbp) jne 0x1de7a xorpd %xmm0, %xmm0 movsd 0x28(%rsp), %xmm1 ucomisd %xmm0, %xmm1 jne 0x1e085 jnp 0x1e091 movapd %xmm1, %xmm0 movq %r14, %rdi callq 0x189e6 movq 0x20(%rsp), %rdx testl %edx, %edx je 0x1e0ac movq 0x298(%r14), %rax movslq 0x278(%r14), %rcx movl %edx, -0x4(%rax,%rcx,4) xorpd %xmm0, %xmm0 movsd 0x18(%rsp), %xmm1 ucomisd %xmm0, %xmm1 jne 0x1e0be jnp 0x1e0d2 movq 0x2a0(%r14), %rax movslq 0x278(%r14), %rcx movsd %xmm1, -0x8(%rax,%rcx,8) movsd 0x10(%rsp), %xmm1 ucomisd %xmm0, %xmm1 jne 0x1e0e0 jnp 0x1e0f4 movq 0x2a8(%r14), %rax movslq 0x278(%r14), %rcx movsd %xmm1, -0x8(%rax,%rcx,8) cmpl $0x0, 0xc(%rsp) je 0x1e111 movq 0x2b0(%r14), %rax movslq 0x278(%r14), %rcx movl $0x1, -0x4(%rax,%rcx,4) movq %rbx, %rdi addq $0x438, %rsp # imm = 0x438 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2240
_ZN12LefDefParser9lefiLayer12parseMinstepEi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 438h mov r14, rdi mov rax, [rdi+360h] movsxd r13, esi mov r15, [rax+r13*8] mov rdi, r15 call _strdup mov rbx, rax mov r12, [r14+10h] lea rsi, aPolyrouting+4; "ROUTING" mov rdi, r12 call _strcmp test eax, eax jz short loc_1DE58 lea rsi, aThePropertyLef_1; "The property LEF57_MINSTEP with value %"... lea r14, [rsp+468h+var_438] mov rdi, r14 mov rdx, r15 mov rcx, r12 xor eax, eax call _sprintf mov edi, 52Bh jmp loc_1E03D loc_1DE58: lea rsi, asc_4FCFD+4; " " mov rdi, rbx call _strtok lea rsi, aLef57Minstep+6; "MINSTEP" mov rdi, rax call _strcmp test eax, eax jz short loc_1DE91 loc_1DE7A: mov rax, [r14+360h] mov rdx, [rax+r13*8] lea rsi, aIncorrectSynta_9; "Incorrect syntax defined for property L"... jmp loc_1E029 loc_1DE91: lea r12, asc_4FCFD+4; " " mov [rsp+468h+var_448], 0 xor edi, edi mov rsi, r12 call _strtok mov rdi, rax call _atof movsd [rsp+468h+var_440], xmm0 xor edi, edi mov rsi, r12 call _strtok test rax, rax jz loc_1E003 mov rbp, rax lea r12, asc_4FCFD+4; " " xorpd xmm0, xmm0 movsd [rsp+468h+var_450], xmm0 movsd [rsp+468h+var_458], xmm0 mov [rsp+468h+var_45C], 0 loc_1DEEE: mov r15b, [rbp+0] cmp r15b, 0Ah jz loc_1E003 mov rdi, rbp lea rsi, aMaxedges; "MAXEDGES" call _strcmp test eax, eax jz short loc_1DF73 mov rdi, rbp lea rsi, aMinadjacentlen; "MINADJACENTLENGTH" call _strcmp test eax, eax jz short loc_1DF97 mov rdi, rbp lea rsi, aMinbetweenleng; "MINBETWEENLENGTH" call _strcmp test eax, eax jz loc_1DFC3 mov rdi, rbp lea rsi, aExceptsamecorn; "EXCEPTSAMECORNERS" call _strcmp test eax, eax jnz loc_1E05F mov [rsp+468h+var_45C], 1 movsd xmm0, [rsp+468h+var_458] ucomisd xmm0, cs:qword_4B0A0 jnz loc_1DFED jp short loc_1DFED jmp loc_1E017 loc_1DF73: cmp dword ptr [rsp+468h+var_448], 0 jnz loc_1E017 xor edi, edi mov rsi, r12 call _strtok mov rdi, rax call _atoi mov [rsp+468h+var_448], rax jmp short loc_1DFED loc_1DF97: movsd xmm0, [rsp+468h+var_458] ucomisd xmm0, cs:qword_4B0A0 jnz short loc_1E017 jp short loc_1E017 xor edi, edi mov rsi, r12 call _strtok mov rdi, rax call _atof movsd [rsp+468h+var_450], xmm0 jmp short loc_1DFED loc_1DFC3: movsd xmm0, [rsp+468h+var_450] ucomisd xmm0, cs:qword_4B0A0 jnz short loc_1E017 jp short loc_1E017 xor edi, edi mov rsi, r12 call _strtok mov rdi, rax call _atof movsd [rsp+468h+var_458], xmm0 loc_1DFED: xor edi, edi mov rsi, r12 call _strtok mov rbp, rax test rax, rax jnz loc_1DEEE loc_1E003: mov rax, [r14+360h] mov rdx, [rax+r13*8] lea rsi, aIncorrectSynta_10; "incorrect syntax defined for property L"... jmp short loc_1E029 loc_1E017: mov rax, [r14+360h] mov rdx, [rax+r13*8] lea rsi, aIncorrectSynta_11; "Incorrect syntax defined for property L"... loc_1E029: lea r14, [rsp+468h+var_438] mov rdi, r14 xor eax, eax call _sprintf mov edi, (offset stru_520.st_name+3); this loc_1E03D: mov rsi, r14; int call _ZN12LefDefParser8lefErrorEiPKc; LefDefParser::lefError(int,char const*) mov rdi, rbx call _free add rsp, 438h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1E05F: cmp r15b, 3Bh ; ';' jnz loc_1DE7A cmp byte ptr [rbp+1], 0 jnz loc_1DE7A xorpd xmm0, xmm0 movsd xmm1, [rsp+468h+var_440] ucomisd xmm1, xmm0 jnz short loc_1E085 jnp short loc_1E091 loc_1E085: movapd xmm0, xmm1; double mov rdi, r14; this call _ZN12LefDefParser9lefiLayer10addMinstepEd; LefDefParser::lefiLayer::addMinstep(double) loc_1E091: mov rdx, [rsp+468h+var_448] test edx, edx jz short loc_1E0AC mov rax, [r14+298h] movsxd rcx, dword ptr [r14+278h] mov [rax+rcx*4-4], edx loc_1E0AC: xorpd xmm0, xmm0 movsd xmm1, [rsp+468h+var_450] ucomisd xmm1, xmm0 jnz short loc_1E0BE jnp short loc_1E0D2 loc_1E0BE: mov rax, [r14+2A0h] movsxd rcx, dword ptr [r14+278h] movsd qword ptr [rax+rcx*8-8], xmm1 loc_1E0D2: movsd xmm1, [rsp+468h+var_458] ucomisd xmm1, xmm0 jnz short loc_1E0E0 jnp short loc_1E0F4 loc_1E0E0: mov rax, [r14+2A8h] movsxd rcx, dword ptr [r14+278h] movsd qword ptr [rax+rcx*8-8], xmm1 loc_1E0F4: cmp [rsp+468h+var_45C], 0 jz short loc_1E111 mov rax, [r14+2B0h] movsxd rcx, dword ptr [r14+278h] mov dword ptr [rax+rcx*4-4], 1 loc_1E111: mov rdi, rbx add rsp, 438h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _free
long long LefDefParser::lefiLayer::parseMinstep(LefDefParser::lefiLayer *this, int a2) { const char *v2; // r15 long long v3; // rbx const char *v4; // r12 const char *v5; // rdx LefDefParser *v6; // rdi long long v7; // rax long long v8; // rdx const char *v9; // rsi long long v10; // rax long long v11; // rax char *v12; // rbp char v13; // r15 long long v14; // rax long long v15; // rax long long v16; // rax int v18; // [rsp+Ch] [rbp-45Ch] double v19; // [rsp+10h] [rbp-458h] double v20; // [rsp+18h] [rbp-450h] int v21; // [rsp+20h] [rbp-448h] double v22; // [rsp+28h] [rbp-440h] int v23[270]; // [rsp+30h] [rbp-438h] BYREF v2 = *(const char **)(*((_QWORD *)this + 108) + 8LL * a2); v3 = strdup(v2); v4 = (const char *)*((_QWORD *)this + 2); if ( !(unsigned int)strcmp(v4, "ROUTING") ) { v7 = strtok(v3, " "); if ( !(unsigned int)strcmp(v7, "MINSTEP") ) { v21 = 0; v10 = strtok(0LL, " "); v22 = atof(v10); v11 = strtok(0LL, " "); if ( v11 ) { v12 = (char *)v11; v20 = 0.0; v19 = 0.0; v18 = 0; do { v13 = *v12; if ( *v12 == 10 ) break; if ( !(unsigned int)strcmp(v12, "MAXEDGES") ) { if ( v21 ) goto LABEL_22; v14 = strtok(0LL, " "); v21 = atoi(v14); } else if ( !(unsigned int)strcmp(v12, "MINADJACENTLENGTH") ) { if ( v19 != 0.0 ) goto LABEL_22; v15 = strtok(0LL, " "); v20 = atof(v15); } else if ( !(unsigned int)strcmp(v12, "MINBETWEENLENGTH") ) { if ( v20 != 0.0 ) { LABEL_22: v8 = *(_QWORD *)(*((_QWORD *)this + 108) + 8LL * a2); v9 = "Incorrect syntax defined for property LEF57_MINSTEP: %s\n" "Correct syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBE" "TWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n"; goto LABEL_23; } v16 = strtok(0LL, " "); v19 = atof(v16); } else { if ( (unsigned int)strcmp(v12, "EXCEPTSAMECORNERS") ) { if ( v13 != 59 || v12[1] ) goto LABEL_4; if ( v22 != 0.0 ) LefDefParser::lefiLayer::addMinstep(this, v22, (unsigned long long)"EXCEPTSAMECORNERS"); if ( v21 ) *(_DWORD *)(*((_QWORD *)this + 83) + 4LL * *((int *)this + 158) - 4) = v21; if ( v20 != 0.0 ) *(double *)(*((_QWORD *)this + 84) + 8LL * *((int *)this + 158) - 8) = v20; if ( v19 != 0.0 ) *(double *)(*((_QWORD *)this + 85) + 8LL * *((int *)this + 158) - 8) = v19; if ( v18 ) *(_DWORD *)(*((_QWORD *)this + 86) + 4LL * *((int *)this + 158) - 4) = 1; return free(v3); } v18 = 1; if ( v19 == 0.0 ) goto LABEL_22; } v12 = (char *)strtok(0LL, " "); } while ( v12 ); } v8 = *(_QWORD *)(*((_QWORD *)this + 108) + 8LL * a2); v9 = "incorrect syntax defined for property LEF57_MINSTEP: %s\n" "Correct syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLEN" "GTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n"; } else { LABEL_4: v8 = *(_QWORD *)(*((_QWORD *)this + 108) + 8LL * a2); v9 = "Incorrect syntax defined for property LEF57_MINSTEP: %s.\n" "Correct syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLEN" "GTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n"; } LABEL_23: sprintf(v23, v9, v8); v6 = (LefDefParser *)((char *)&stru_520.st_name + 3); } else { sprintf( v23, "The property LEF57_MINSTEP with value %s is for TYPE ROUTING only.\n" "The current layer has the TYPE %s.\n" "Update the property of your lef file with the correct syntax or remove this property from your lef file.\n", v2, v4); v6 = (LefDefParser *)(&stru_520 + 11); } LefDefParser::lefError(v6, (int)v23, v5); return free(v3); }
parseMinstep: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x438 MOV R14,RDI MOV RAX,qword ptr [RDI + 0x360] MOVSXD R13,ESI MOV R15,qword ptr [RAX + R13*0x8] MOV RDI,R15 CALL 0x00102380 MOV RBX,RAX MOV R12,qword ptr [R14 + 0x10] LEA RSI,[0x14f6bb] MOV RDI,R12 CALL 0x001022b0 TEST EAX,EAX JZ 0x0011de58 LEA RSI,[0x14ed85] LEA R14,[RSP + 0x30] MOV RDI,R14 MOV RDX,R15 MOV RCX,R12 XOR EAX,EAX CALL 0x00102050 MOV EDI,0x52b JMP 0x0011e03d LAB_0011de58: LEA RSI,[0x14fd01] MOV RDI,RBX CALL 0x00102300 LEA RSI,[0x14f5d4] MOV RDI,RAX CALL 0x001022b0 TEST EAX,EAX JZ 0x0011de91 LAB_0011de7a: MOV RAX,qword ptr [R14 + 0x360] MOV RDX,qword ptr [RAX + R13*0x8] LEA RSI,[0x14ee55] JMP 0x0011e029 LAB_0011de91: LEA R12,[0x14fd01] MOV qword ptr [RSP + 0x20],0x0 XOR EDI,EDI MOV RSI,R12 CALL 0x00102300 MOV RDI,RAX CALL 0x00102260 MOVSD qword ptr [RSP + 0x28],XMM0 XOR EDI,EDI MOV RSI,R12 CALL 0x00102300 TEST RAX,RAX JZ 0x0011e003 MOV RBP,RAX LEA R12,[0x14fd01] XORPD XMM0,XMM0 MOVSD qword ptr [RSP + 0x18],XMM0 MOVSD qword ptr [RSP + 0x10],XMM0 MOV dword ptr [RSP + 0xc],0x0 LAB_0011deee: MOV R15B,byte ptr [RBP] CMP R15B,0xa JZ 0x0011e003 MOV RDI,RBP LEA RSI,[0x14ef28] CALL 0x001022b0 TEST EAX,EAX JZ 0x0011df73 MOV RDI,RBP LEA RSI,[0x14f003] CALL 0x001022b0 TEST EAX,EAX JZ 0x0011df97 MOV RDI,RBP LEA RSI,[0x14f015] CALL 0x001022b0 TEST EAX,EAX JZ 0x0011dfc3 MOV RDI,RBP LEA RSI,[0x14f026] CALL 0x001022b0 TEST EAX,EAX JNZ 0x0011e05f MOV dword ptr [RSP + 0xc],0x1 MOVSD XMM0,qword ptr [RSP + 0x10] UCOMISD XMM0,qword ptr [0x0014b0a0] JNZ 0x0011dfed JP 0x0011dfed JMP 0x0011e017 LAB_0011df73: CMP dword ptr [RSP + 0x20],0x0 JNZ 0x0011e017 XOR EDI,EDI MOV RSI,R12 CALL 0x00102300 MOV RDI,RAX CALL 0x001022f0 MOV qword ptr [RSP + 0x20],RAX JMP 0x0011dfed LAB_0011df97: MOVSD XMM0,qword ptr [RSP + 0x10] UCOMISD XMM0,qword ptr [0x0014b0a0] JNZ 0x0011e017 JP 0x0011e017 XOR EDI,EDI MOV RSI,R12 CALL 0x00102300 MOV RDI,RAX CALL 0x00102260 MOVSD qword ptr [RSP + 0x18],XMM0 JMP 0x0011dfed LAB_0011dfc3: MOVSD XMM0,qword ptr [RSP + 0x18] UCOMISD XMM0,qword ptr [0x0014b0a0] JNZ 0x0011e017 JP 0x0011e017 XOR EDI,EDI MOV RSI,R12 CALL 0x00102300 MOV RDI,RAX CALL 0x00102260 MOVSD qword ptr [RSP + 0x10],XMM0 LAB_0011dfed: XOR EDI,EDI MOV RSI,R12 CALL 0x00102300 MOV RBP,RAX TEST RAX,RAX JNZ 0x0011deee LAB_0011e003: MOV RAX,qword ptr [R14 + 0x360] MOV RDX,qword ptr [RAX + R13*0x8] LEA RSI,[0x14f038] JMP 0x0011e029 LAB_0011e017: MOV RAX,qword ptr [R14 + 0x360] MOV RDX,qword ptr [RAX + R13*0x8] LEA RSI,[0x14ef31] LAB_0011e029: LEA R14,[RSP + 0x30] MOV RDI,R14 XOR EAX,EAX CALL 0x00102050 MOV EDI,0x523 LAB_0011e03d: MOV RSI,R14 CALL 0x0012453a MOV RDI,RBX CALL 0x00102240 ADD RSP,0x438 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011e05f: CMP R15B,0x3b JNZ 0x0011de7a CMP byte ptr [RBP + 0x1],0x0 JNZ 0x0011de7a XORPD XMM0,XMM0 MOVSD XMM1,qword ptr [RSP + 0x28] UCOMISD XMM1,XMM0 JNZ 0x0011e085 JNP 0x0011e091 LAB_0011e085: MOVAPD XMM0,XMM1 MOV RDI,R14 CALL 0x001189e6 LAB_0011e091: MOV RDX,qword ptr [RSP + 0x20] TEST EDX,EDX JZ 0x0011e0ac MOV RAX,qword ptr [R14 + 0x298] MOVSXD RCX,dword ptr [R14 + 0x278] MOV dword ptr [RAX + RCX*0x4 + -0x4],EDX LAB_0011e0ac: XORPD XMM0,XMM0 MOVSD XMM1,qword ptr [RSP + 0x18] UCOMISD XMM1,XMM0 JNZ 0x0011e0be JNP 0x0011e0d2 LAB_0011e0be: MOV RAX,qword ptr [R14 + 0x2a0] MOVSXD RCX,dword ptr [R14 + 0x278] MOVSD qword ptr [RAX + RCX*0x8 + -0x8],XMM1 LAB_0011e0d2: MOVSD XMM1,qword ptr [RSP + 0x10] UCOMISD XMM1,XMM0 JNZ 0x0011e0e0 JNP 0x0011e0f4 LAB_0011e0e0: MOV RAX,qword ptr [R14 + 0x2a8] MOVSXD RCX,dword ptr [R14 + 0x278] MOVSD qword ptr [RAX + RCX*0x8 + -0x8],XMM1 LAB_0011e0f4: CMP dword ptr [RSP + 0xc],0x0 JZ 0x0011e111 MOV RAX,qword ptr [R14 + 0x2b0] MOVSXD RCX,dword ptr [R14 + 0x278] MOV dword ptr [RAX + RCX*0x4 + -0x4],0x1 LAB_0011e111: MOV RDI,RBX ADD RSP,0x438 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00102240
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* LefDefParser::lefiLayer::parseMinstep(int) */ void __thiscall LefDefParser::lefiLayer::parseMinstep(lefiLayer *this,int param_1) { char cVar1; char *__s1; bool bVar2; int iVar3; int iVar4; char *__s; char *pcVar5; int8 uVar6; long lVar7; double dVar8; double local_458; double local_450; char local_438 [1032]; lVar7 = (long)param_1; pcVar5 = *(char **)(*(long *)(this + 0x360) + lVar7 * 8); __s = strdup(pcVar5); __s1 = *(char **)(this + 0x10); iVar3 = strcmp(__s1,"ROUTING"); if (iVar3 == 0) { pcVar5 = strtok(__s," "); iVar3 = strcmp(pcVar5,"MINSTEP"); if (iVar3 == 0) { iVar3 = 0; pcVar5 = strtok((char *)0x0," "); dVar8 = atof(pcVar5); pcVar5 = strtok((char *)0x0," "); if (pcVar5 != (char *)0x0) { local_450 = 0.0; local_458 = 0.0; bVar2 = false; do { cVar1 = *pcVar5; if (cVar1 == '\n') break; iVar4 = strcmp(pcVar5,"MAXEDGES"); if (iVar4 == 0) { if (iVar3 != 0) { LAB_0011e017: uVar6 = *(int8 *)(*(long *)(this + 0x360) + lVar7 * 8); pcVar5 = "Incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n" ; goto LAB_0011e029; } pcVar5 = strtok((char *)0x0," "); iVar3 = atoi(pcVar5); } else { iVar4 = strcmp(pcVar5,"MINADJACENTLENGTH"); if (iVar4 == 0) { if ((local_458 != _DAT_0014b0a0) || (NAN(local_458) || NAN(_DAT_0014b0a0))) goto LAB_0011e017; pcVar5 = strtok((char *)0x0," "); local_450 = atof(pcVar5); } else { iVar4 = strcmp(pcVar5,"MINBETWEENLENGTH"); if (iVar4 == 0) { if ((local_450 != _DAT_0014b0a0) || (NAN(local_450) || NAN(_DAT_0014b0a0))) goto LAB_0011e017; pcVar5 = strtok((char *)0x0," "); local_458 = atof(pcVar5); } else { iVar4 = strcmp(pcVar5,"EXCEPTSAMECORNERS"); if (iVar4 != 0) { if ((cVar1 == ';') && (pcVar5[1] == '\0')) { if ((dVar8 != 0.0) || (NAN(dVar8))) { addMinstep(dVar8); } if (iVar3 != 0) { *(int *)(*(long *)(this + 0x298) + -4 + (long)*(int *)(this + 0x278) * 4) = iVar3; } if ((local_450 != 0.0) || (NAN(local_450))) { *(double *)(*(long *)(this + 0x2a0) + -8 + (long)*(int *)(this + 0x278) * 8) = local_450; } if ((local_458 != 0.0) || (NAN(local_458))) { *(double *)(*(long *)(this + 0x2a8) + -8 + (long)*(int *)(this + 0x278) * 8) = local_458; } if (bVar2) { *(int4 *) (*(long *)(this + 0x2b0) + -4 + (long)*(int *)(this + 0x278) * 4) = 1; } free(__s); return; } goto LAB_0011de7a; } bVar2 = true; if ((local_458 == _DAT_0014b0a0) && (!NAN(local_458) && !NAN(_DAT_0014b0a0))) goto LAB_0011e017; } } } pcVar5 = strtok((char *)0x0," "); } while (pcVar5 != (char *)0x0); } uVar6 = *(int8 *)(*(long *)(this + 0x360) + lVar7 * 8); pcVar5 = "incorrect syntax defined for property LEF57_MINSTEP: %s\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n" ; } else { LAB_0011de7a: uVar6 = *(int8 *)(*(long *)(this + 0x360) + lVar7 * 8); pcVar5 = "Incorrect syntax defined for property LEF57_MINSTEP: %s.\nCorrect syntax is \"MINSTEP minStepLength [MAXEDGES maxEdges] [MINADJACENTLENGTH minAdjLength | MINBETWEENLENGTH minBetweenLength [EXCEPTSAMECORNERS]] ;\"\n" ; } LAB_0011e029: sprintf(local_438,pcVar5,uVar6); iVar3 = 0x523; } else { sprintf(local_438, "The property LEF57_MINSTEP with value %s is for TYPE ROUTING only.\nThe current layer has the TYPE %s.\nUpdate the property of your lef file with the correct syntax or remove this property from your lef file.\n" ,pcVar5,__s1); iVar3 = 0x52b; } lefError(iVar3,local_438); free(__s); return; }
21,157
gguf_get_meta_data
monkey531[P]llama/ggml/src/gguf.cpp
void gguf_get_meta_data(const struct gguf_context * ctx, void * data) { std::vector<int8_t> buf; gguf_write_to_buf(ctx, buf, /*only_meta =*/ true); memcpy(data, buf.data(), buf.size()); }
O3
cpp
gguf_get_meta_data: pushq %r14 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx xorps %xmm0, %xmm0 movq %rsp, %rsi movaps %xmm0, (%rsi) movq $0x0, 0x10(%rsi) movl $0x1, %edx callq 0x16da0 movq (%rsp), %r14 movq 0x8(%rsp), %rdx subq %r14, %rdx movq %rbx, %rdi movq %r14, %rsi callq 0x16dc0 testq %r14, %r14 je 0x3ef72 movq 0x10(%rsp), %rsi subq %r14, %rsi movq %r14, %rdi callq 0x17070 addq $0x18, %rsp popq %rbx popq %r14 retq movq %rax, %rbx movq (%rsp), %rdi testq %rdi, %rdi je 0x3ef93 movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x17070 movq %rbx, %rdi callq 0x17e20 nop
gguf_get_meta_data: push r14 push rbx sub rsp, 18h mov rbx, rsi xorps xmm0, xmm0 mov rsi, rsp movaps xmmword ptr [rsi], xmm0 mov qword ptr [rsi+10h], 0 mov edx, 1 call __Z17gguf_write_to_bufPK12gguf_contextRSt6vectorIaSaIaEEb; gguf_write_to_buf(gguf_context const*,std::vector<signed char> &,bool) mov r14, [rsp+28h+var_28] mov rdx, [rsp+28h+var_20] sub rdx, r14 mov rdi, rbx mov rsi, r14 call _memcpy test r14, r14 jz short loc_3EF72 mov rsi, [rsp+28h+var_18] sub rsi, r14; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) loc_3EF72: add rsp, 18h pop rbx pop r14 retn mov rbx, rax mov rdi, [rsp+0]; void * test rdi, rdi jz short loc_3EF93 mov rsi, [rsp+arg_8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3EF93: mov rdi, rbx call __Unwind_Resume
void gguf_get_meta_data(_QWORD *a1, long long a2) { void *v2; // r14 __int128 v3; // [rsp+0h] [rbp-28h] BYREF long long v4; // [rsp+10h] [rbp-18h] v3 = 0LL; v4 = 0LL; gguf_write_to_buf(a1, (long long)&v3, 1); v2 = (void *)v3; memcpy(a2, v3, *((_QWORD *)&v3 + 1) - v3); if ( v2 ) operator delete(v2, v4 - (_QWORD)v2); }
gguf_get_meta_data: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RSI XORPS XMM0,XMM0 MOV RSI,RSP MOVAPS xmmword ptr [RSI],XMM0 MOV qword ptr [RSI + 0x10],0x0 LAB_0013ef3c: MOV EDX,0x1 CALL 0x00116da0 LAB_0013ef46: MOV R14,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] SUB RDX,R14 MOV RDI,RBX MOV RSI,R14 CALL 0x00116dc0 TEST R14,R14 JZ 0x0013ef72 MOV RSI,qword ptr [RSP + 0x10] SUB RSI,R14 MOV RDI,R14 CALL 0x00117070 LAB_0013ef72: ADD RSP,0x18 POP RBX POP R14 RET
void gguf_get_meta_data(gguf_context *param_1,void *param_2) { void *pvVar1; void *local_28; long lStack_20; long local_18; local_28 = (void *)0x0; lStack_20 = 0; local_18 = 0; /* try { // try from 0013ef3c to 0013ef45 has its CatchHandler @ 0013ef7a */ gguf_write_to_buf(param_1,(vector *)&local_28,true); pvVar1 = local_28; memcpy(param_2,local_28,lStack_20 - (long)local_28); if (pvVar1 != (void *)0x0) { operator_delete(pvVar1,local_18 - (long)pvVar1); } return; }
21,158
minja::TemplateNode::render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
void render(std::ostringstream & out, const std::shared_ptr<Context> & context) const { try { do_render(out, context); } catch (const LoopControlException & e) { // TODO: make stack creation lazy. Only needed if it was thrown outside of a loop. std::ostringstream err; err << e.what(); if (location_.source) err << error_location_suffix(*location_.source, location_.pos); throw LoopControlException(err.str(), e.control_type); } catch (const std::exception & e) { std::ostringstream err; err << e.what(); if (location_.source) err << error_location_suffix(*location_.source, location_.pos); throw std::runtime_error(err.str()); } }
O2
cpp
minja::TemplateNode::render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r14 pushq %rbx subq $0x1a0, %rsp # imm = 0x1A0 movq %rdi, %r14 movq (%rdi), %rax callq *(%rax) addq $0x1a0, %rsp # imm = 0x1A0 popq %rbx popq %r14 popq %rbp retq movq %rax, %rbx cmpl $0x2, %edx jne 0x74443 movq %rbx, %rdi callq 0x23390 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x23ba0 movq (%rbx), %rax movq %rbx, %rdi callq *0x10(%rax) leaq 0x28(%rsp), %rdi movq %rax, %rsi callq 0x238b0 movq 0x8(%r14), %rsi testq %rsi, %rsi jne 0x744e9 pushq $0x18 popq %rdi callq 0x23470 movq %rax, %r14 leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x23db0 movl 0x10(%rbx), %edx movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x745ba xorl %ebp, %ebp leaq 0x89bc1(%rip), %rsi # 0xfdff0 movq 0x8ab22(%rip), %rdx # 0xfef58 movq %r14, %rdi callq 0x23f00 jmp 0x744e9 cmpl $0x1, %edx jne 0x745a9 movq %rbx, %rdi callq 0x23390 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x23ba0 movq (%rbx), %rax movq %rbx, %rdi callq *0x10(%rax) leaq 0x28(%rsp), %rdi movq %rax, %rsi callq 0x238b0 movq 0x8(%r14), %rsi testq %rsi, %rsi je 0x744a7 movq 0x18(%r14), %rdx leaq 0x8(%rsp), %rdi callq 0x59016 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rsi callq 0x237e0 leaq 0x8(%rsp), %rdi callq 0x241c8 pushq $0x10 popq %rdi callq 0x23470 movq %rax, %r14 leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x23db0 movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x23e30 xorl %ebp, %ebp movq 0x8ab0e(%rip), %rsi # 0xfefe8 movq 0x8aa67(%rip), %rdx # 0xfef48 movq %r14, %rdi callq 0x23f00 movq 0x18(%r14), %rdx leaq 0x8(%rsp), %rdi callq 0x59016 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rsi callq 0x237e0 leaq 0x8(%rsp), %rdi callq 0x241c8 jmp 0x743f9 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x241c8 jmp 0x7457c movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x241c8 jmp 0x74595 jmp 0x74579 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x241c8 testb %bpl, %bpl jne 0x7454c jmp 0x7457c movq %rax, %rbx movq %r14, %rdi callq 0x236a0 jmp 0x7457c jmp 0x74592 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x241c8 testb %bpl, %bpl jne 0x7456f jmp 0x74595 movq %rax, %rbx movq %r14, %rdi callq 0x236a0 jmp 0x74595 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x231f0 jmp 0x7458b movq %rax, %rbx callq 0x23e50 jmp 0x745a9 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x231f0 jmp 0x745a4 movq %rax, %rbx callq 0x23e50 movq %rbx, %rdi callq 0x23f80 movq %rax, %rdi callq 0x28027 nop
_ZNK5minja12TemplateNode6renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE: push rbp push r14 push rbx sub rsp, 1A0h mov r14, rdi mov rax, [rdi] call qword ptr [rax] add rsp, 1A0h pop rbx pop r14 pop rbp retn mov rbx, rax cmp edx, 2 jnz loc_74443 mov rdi, rbx; void * call ___cxa_begin_catch mov rbx, rax lea rdi, [rsp+arg_20] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rax, [rbx] mov rdi, rbx call qword ptr [rax+10h] lea rdi, [rsp+arg_20] mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rsi, [r14+8] test rsi, rsi jnz loc_744E9 loc_743F9: push 18h pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+arg_28] lea rdi, [rsp+arg_0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov edx, [rbx+10h] mov bpl, 1 lea rsi, [rsp+arg_0] mov rdi, r14 call _ZN5minja20LoopControlExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_15LoopControlTypeE; minja::LoopControlException::LoopControlException(std::string const&,minja::LoopControlType) xor ebp, ebp lea rsi, _ZTIN5minja20LoopControlExceptionE; lptinfo mov rdx, cs:_ZNSt13runtime_errorD2Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw
long long minja::TemplateNode::render(long long ( ***a1)(_QWORD)) { return (**a1)(a1); }
render: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x1a0 MOV R14,RDI MOV RAX,qword ptr [RDI] LAB_001743a7: CALL qword ptr [RAX] LAB_001743a9: ADD RSP,0x1a0 POP RBX POP R14 POP RBP RET
/* minja::TemplateNode::render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&) const */ void minja::TemplateNode::render(ostringstream *param_1,shared_ptr *param_2) { /* try { // try from 001743a7 to 001743a8 has its CatchHandler @ 001743b5 */ (*(code *)**(int8 **)param_1)(); return; }
21,159
translog_disable_purge
eloqsql/storage/maria/ma_loghandler.c
void translog_disable_purge() { mysql_mutex_lock(&log_descriptor.purger_lock); log_purge_disabled++; mysql_mutex_unlock(&log_descriptor.purger_lock); }
O3
c
translog_disable_purge: pushq %rbp movq %rsp, %rbp cmpq $0x0, 0xbb411e(%rip) # 0xbfe020 jne 0x49f2f leaq 0xbb40d5(%rip), %rdi # 0xbfdfe0 callq 0x29210 incl 0x3b201a(%rip) # 0x3fbf30 movq 0xbb4103(%rip), %rdi # 0xbfe020 testq %rdi, %rdi jne 0x49f36 leaq 0xbb40b7(%rip), %rdi # 0xbfdfe0 popq %rbp jmp 0x291e0 callq 0x2cd11 jmp 0x49f10 leaq 0x33b0d3(%rip), %rax # 0x385010 movq (%rax), %rax callq *0x160(%rax) jmp 0x49f22
translog_disable_purge: push rbp mov rbp, rsp cmp cs:qword_BFE020, 0 jnz short loc_49F2F lea rdi, unk_BFDFE0 call _pthread_mutex_lock loc_49F10: inc cs:log_purge_disabled mov rdi, cs:qword_BFE020 test rdi, rdi jnz short loc_49F36 loc_49F22: lea rdi, unk_BFDFE0 pop rbp jmp _pthread_mutex_unlock loc_49F2F: call translog_disable_purge_cold_1 jmp short loc_49F10 loc_49F36: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_49F22
long long translog_disable_purge() { if ( qword_BFE020 ) translog_disable_purge_cold_1(); else pthread_mutex_lock(&unk_BFDFE0); ++log_purge_disabled; if ( qword_BFE020 ) PSI_server[44](); return pthread_mutex_unlock(&unk_BFDFE0); }
translog_disable_purge: PUSH RBP MOV RBP,RSP CMP qword ptr [0x00cfe020],0x0 JNZ 0x00149f2f LEA RDI,[0xcfdfe0] CALL 0x00129210 LAB_00149f10: INC dword ptr [0x004fbf30] MOV RDI,qword ptr [0x00cfe020] TEST RDI,RDI JNZ 0x00149f36 LAB_00149f22: LEA RDI,[0xcfdfe0] POP RBP JMP 0x001291e0 LAB_00149f2f: CALL 0x0012cd11 JMP 0x00149f10 LAB_00149f36: LEA RAX,[0x485010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00149f22
void translog_disable_purge(void) { if (DAT_00cfe020 == 0) { pthread_mutex_lock((pthread_mutex_t *)&DAT_00cfdfe0); } else { translog_disable_purge_cold_1(); } log_purge_disabled = log_purge_disabled + 1; if (DAT_00cfe020 != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)&DAT_00cfdfe0); return; }
21,160
ma_crypt_index_pre_write_hook
eloqsql/storage/maria/ma_crypt.c
static my_bool ma_crypt_index_pre_write_hook(PAGECACHE_IO_HOOK_ARGS *args) { MARIA_SHARE *share= (MARIA_SHARE*) args->data; const uint block_size= share->block_size; const uint page_used= _ma_get_page_used(share, args->page); uint key_version; uchar *crypt_buf= my_malloc(PSI_INSTRUMENT_ME, block_size, MYF(0)); if (crypt_buf == NULL) { args->crypt_buf= NULL; /* for post-hook */ return 1; } if (!share->base.born_transactional) { /* store a random number instead of LSN (for counter block) */ store_rand_lsn(args->page); } maria_page_crc_set_index(args); { const uchar *src= args->page; uchar* dst= crypt_buf; uint pageno= (uint)args->pageno; LSN lsn= lsn_korr(src); const uint head= share->keypage_header; const uint tail= CRC_SIZE; /* page_used includes header (but not trailer) */ const uint size= page_used - head; /* 1 - copy head */ memcpy(dst, src, head); /* 2 - encrypt page */ if (ma_encrypt(share, share->crypt_data, src + head, dst + head, size, pageno, lsn, &key_version)) { my_free(crypt_buf); return 1; } /* 3 - copy tail */ memcpy(dst + block_size - tail, src + block_size - tail, tail); /* 4 - store key version */ _ma_store_key_version(share, dst, key_version); #ifdef HAVE_valgrind /* 5 - keep valgrind happy by zeroing not used bytes */ bzero(dst+head+size, block_size - size - tail - head); #endif } /* swap pointers to instead write out the encrypted block */ args->crypt_buf= args->page; args->page= crypt_buf; return 0; }
O0
c
ma_crypt_index_pre_write_hook: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movl 0x7bc(%rax), %eax movl %eax, -0x1c(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x18(%rbp), %rcx movl 0x744(%rcx), %ecx movzbl -0x1(%rax,%rcx), %eax movzwl %ax, %eax movq -0x10(%rbp), %rcx movq (%rcx), %rcx movq -0x18(%rbp), %rdx movl 0x744(%rdx), %edx movzbl -0x2(%rcx,%rdx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax movl %eax, -0x20(%rbp) movl -0x1c(%rbp), %eax movl %eax, %esi xorl %edi, %edi xorl %eax, %eax movl %eax, %edx callq 0xf2e30 movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) jne 0x5e735 movq -0x10(%rbp), %rax movq $0x0, 0x18(%rax) movb $0x1, -0x1(%rbp) jmp 0x5e884 movq -0x18(%rbp), %rax cmpb $0x0, 0x44c(%rax) jne 0x5e74e movq -0x10(%rbp), %rax movq (%rax), %rdi callq 0x5ea50 movq -0x10(%rbp), %rdi callq 0x5cbe0 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movl %eax, -0x44(%rbp) movq -0x38(%rbp), %rax movzbl (%rax), %eax movq -0x38(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x38(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax shlq $0x20, %rax movq -0x38(%rbp), %rcx movl 0x3(%rcx), %ecx orq %rcx, %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax movl 0x744(%rax), %eax movl %eax, -0x54(%rbp) movl $0x4, -0x58(%rbp) movl -0x20(%rbp), %eax subl -0x54(%rbp), %eax movl %eax, -0x5c(%rbp) movq -0x40(%rbp), %rdi movq -0x38(%rbp), %rsi movl -0x54(%rbp), %eax movl %eax, %edx callq 0x2a0a0 movq -0x18(%rbp), %rdi movq -0x18(%rbp), %rax movq 0xc20(%rax), %rsi movq -0x38(%rbp), %rdx movl -0x54(%rbp), %eax addq %rax, %rdx movq -0x40(%rbp), %rcx movl -0x54(%rbp), %eax addq %rax, %rcx movl -0x5c(%rbp), %r8d movl -0x44(%rbp), %r9d movq -0x50(%rbp), %r10 leaq -0x24(%rbp), %rax movq %r10, (%rsp) movq %rax, 0x8(%rsp) callq 0x5eb00 cmpl $0x0, %eax je 0x5e82e movq -0x30(%rbp), %rdi callq 0xf31b0 movb $0x1, -0x1(%rbp) jmp 0x5e884 movq -0x40(%rbp), %rax movl -0x1c(%rbp), %ecx movq -0x38(%rbp), %rdx movl -0x1c(%rbp), %esi movl -0x4(%rdx,%rsi), %edx movl %edx, -0x4(%rax,%rcx) movq -0x40(%rbp), %rax movq -0x18(%rbp), %rcx movl 0x744(%rcx), %ecx addq %rcx, %rax addq $-0x8, %rax movq %rax, -0x68(%rbp) movl -0x24(%rbp), %ecx movq -0x68(%rbp), %rax movl %ecx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x80, %rsp popq %rbp retq
ma_crypt_index_pre_write_hook: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax+10h] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov eax, [rax+7BCh] mov [rbp+var_1C], eax mov rax, [rbp+var_10] mov rax, [rax] mov rcx, [rbp+var_18] mov ecx, [rcx+744h] movzx eax, byte ptr [rax+rcx-1] movzx eax, ax mov rcx, [rbp+var_10] mov rcx, [rcx] mov rdx, [rbp+var_18] mov edx, [rdx+744h] movzx ecx, byte ptr [rcx+rdx-2] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax mov [rbp+var_20], eax mov eax, [rbp+var_1C] mov esi, eax xor edi, edi xor eax, eax mov edx, eax call my_malloc mov [rbp+var_30], rax cmp [rbp+var_30], 0 jnz short loc_5E735 mov rax, [rbp+var_10] mov qword ptr [rax+18h], 0 mov [rbp+var_1], 1 jmp loc_5E884 loc_5E735: mov rax, [rbp+var_18] cmp byte ptr [rax+44Ch], 0 jnz short loc_5E74E mov rax, [rbp+var_10] mov rdi, [rax] call store_rand_lsn loc_5E74E: mov rdi, [rbp+var_10] call maria_page_crc_set_index mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_30] mov [rbp+var_40], rax mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_44], eax mov rax, [rbp+var_38] movzx eax, byte ptr [rax] mov rcx, [rbp+var_38] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_38] movzx ecx, byte ptr [rcx+2] shl ecx, 10h or eax, ecx mov eax, eax shl rax, 20h mov rcx, [rbp+var_38] mov ecx, [rcx+3] or rax, rcx mov [rbp+var_50], rax mov rax, [rbp+var_18] mov eax, [rax+744h] mov [rbp+var_54], eax mov [rbp+var_58], 4 mov eax, [rbp+var_20] sub eax, [rbp+var_54] mov [rbp+var_5C], eax mov rdi, [rbp+var_40] mov rsi, [rbp+var_38] mov eax, [rbp+var_54] mov edx, eax call _memcpy mov rdi, [rbp+var_18] mov rax, [rbp+var_18] mov rsi, [rax+0C20h] mov rdx, [rbp+var_38] mov eax, [rbp+var_54] add rdx, rax mov rcx, [rbp+var_40] mov eax, [rbp+var_54] add rcx, rax mov r8d, [rbp+var_5C] mov r9d, [rbp+var_44] mov r10, [rbp+var_50] lea rax, [rbp+var_24] mov [rsp+80h+var_80], r10 mov [rsp+80h+var_78], rax call ma_encrypt cmp eax, 0 jz short loc_5E82E mov rdi, [rbp+var_30] call my_free mov [rbp+var_1], 1 jmp short loc_5E884 loc_5E82E: mov rax, [rbp+var_40] mov ecx, [rbp+var_1C] mov rdx, [rbp+var_38] mov esi, [rbp+var_1C] mov edx, [rdx+rsi-4] mov [rax+rcx-4], edx mov rax, [rbp+var_40] mov rcx, [rbp+var_18] mov ecx, [rcx+744h] add rax, rcx add rax, 0FFFFFFFFFFFFFFF8h mov [rbp+var_68], rax mov ecx, [rbp+var_24] mov rax, [rbp+var_68] mov [rax], ecx mov rax, [rbp+var_10] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+18h], rcx mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax], rcx mov [rbp+var_1], 0 loc_5E884: mov al, [rbp+var_1] add rsp, 80h pop rbp retn
char ma_crypt_index_pre_write_hook(long long *a1, double a2) { unsigned int v3; // [rsp+2Ch] [rbp-54h] unsigned long long v4; // [rsp+30h] [rbp-50h] int v5; // [rsp+3Ch] [rbp-44h] unsigned __int16 *v6; // [rsp+48h] [rbp-38h] long long v7; // [rsp+50h] [rbp-30h] int v8; // [rsp+5Ch] [rbp-24h] BYREF int v9; // [rsp+60h] [rbp-20h] unsigned int v10; // [rsp+64h] [rbp-1Ch] long long v11; // [rsp+68h] [rbp-18h] long long *v12; // [rsp+70h] [rbp-10h] v12 = a1; v11 = a1[2]; v10 = *(_DWORD *)(v11 + 1980); v9 = _byteswap_ushort(*(_WORD *)(*a1 + *(unsigned int *)(v11 + 1860) - 2)); v7 = my_malloc(0LL, v10, 0LL); if ( v7 ) { if ( !*(_BYTE *)(v11 + 1100) ) store_rand_lsn(*v12); maria_page_crc_set_index(v12); v6 = (unsigned __int16 *)*v12; v5 = v12[1]; v4 = *(unsigned int *)(*v12 + 3) | ((unsigned long long)((*((unsigned __int8 *)v6 + 2) << 16) | (unsigned int)*v6) << 32); v3 = *(_DWORD *)(v11 + 1860); memcpy(v7, *v12, v3); if ( (unsigned int)ma_encrypt( v11, *(_QWORD *)(v11 + 3104), v3 + (unsigned int)v6, v3 + (unsigned int)v7, v9 - v3, v5, v4, (long long)&v8) ) { my_free(v7, a2); return 1; } else { *(_DWORD *)(v7 + v10 - 4) = *(_DWORD *)((char *)v6 + v10 - 4); *(_DWORD *)(*(unsigned int *)(v11 + 1860) + v7 - 8) = v8; v12[3] = *v12; *v12 = v7; return 0; } } else { v12[3] = 0LL; return 1; } }
ma_crypt_index_pre_write_hook: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x7bc] MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RCX + 0x744] MOVZX EAX,byte ptr [RAX + RCX*0x1 + -0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] MOV RDX,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RDX + 0x744] MOVZX ECX,byte ptr [RCX + RDX*0x1 + -0x2] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x1c] MOV ESI,EAX XOR EDI,EDI XOR EAX,EAX MOV EDX,EAX CALL 0x001f2e30 MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x30],0x0 JNZ 0x0015e735 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],0x0 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0015e884 LAB_0015e735: MOV RAX,qword ptr [RBP + -0x18] CMP byte ptr [RAX + 0x44c],0x0 JNZ 0x0015e74e MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] CALL 0x0015ea50 LAB_0015e74e: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0015cbe0 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x44],EAX MOV RAX,qword ptr [RBP + -0x38] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x38] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x38] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX SHL RAX,0x20 MOV RCX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RCX + 0x3] OR RAX,RCX MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x744] MOV dword ptr [RBP + -0x54],EAX MOV dword ptr [RBP + -0x58],0x4 MOV EAX,dword ptr [RBP + -0x20] SUB EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x5c],EAX MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RBP + -0x54] MOV EDX,EAX CALL 0x0012a0a0 MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + 0xc20] MOV RDX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RBP + -0x54] ADD RDX,RAX MOV RCX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RBP + -0x54] ADD RCX,RAX MOV R8D,dword ptr [RBP + -0x5c] MOV R9D,dword ptr [RBP + -0x44] MOV R10,qword ptr [RBP + -0x50] LEA RAX,[RBP + -0x24] MOV qword ptr [RSP],R10 MOV qword ptr [RSP + 0x8],RAX CALL 0x0015eb00 CMP EAX,0x0 JZ 0x0015e82e MOV RDI,qword ptr [RBP + -0x30] CALL 0x001f31b0 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0015e884 LAB_0015e82e: MOV RAX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RBP + -0x1c] MOV RDX,qword ptr [RBP + -0x38] MOV ESI,dword ptr [RBP + -0x1c] MOV EDX,dword ptr [RDX + RSI*0x1 + -0x4] MOV dword ptr [RAX + RCX*0x1 + -0x4],EDX MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RCX + 0x744] ADD RAX,RCX ADD RAX,-0x8 MOV qword ptr [RBP + -0x68],RAX MOV ECX,dword ptr [RBP + -0x24] MOV RAX,qword ptr [RBP + -0x68] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],RCX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV byte ptr [RBP + -0x1],0x0 LAB_0015e884: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x80 POP RBP RET
int1 ma_crypt_index_pre_write_hook(long *param_1) { int4 uVar1; uint uVar2; int3 *__src; ulong uVar3; int3 uVar4; int iVar5; void *__dest; int4 local_2c; uint local_28; uint local_24; long local_20; long *local_18; int1 local_9; local_20 = param_1[2]; local_24 = *(uint *)(local_20 + 0x7bc); local_28 = (uint)CONCAT11(*(int1 *)(*param_1 + -2 + (ulong)*(uint *)(local_20 + 0x744)), *(int1 *)(*param_1 + -1 + (ulong)*(uint *)(local_20 + 0x744))); local_18 = param_1; __dest = (void *)my_malloc(0,local_24,0); if (__dest == (void *)0x0) { local_18[3] = 0; local_9 = 1; } else { if (*(char *)(local_20 + 0x44c) == '\0') { store_rand_lsn(*local_18); } maria_page_crc_set_index(local_18); __src = (int3 *)*local_18; uVar3 = local_18[1]; uVar4 = *__src; uVar1 = *(int4 *)((long)__src + 3); uVar2 = *(uint *)(local_20 + 0x744); iVar5 = local_28 - uVar2; memcpy(__dest,__src,(ulong)uVar2); iVar5 = ma_encrypt(local_20,*(int8 *)(local_20 + 0xc20),(long)__src + (ulong)uVar2, (long)__dest + (ulong)uVar2,iVar5,uVar3 & 0xffffffff, (ulong)CONCAT34(uVar4,uVar1),&local_2c); if (iVar5 == 0) { *(int4 *)((long)__dest + ((ulong)local_24 - 4)) = *(int4 *)((long)__src + ((ulong)local_24 - 4)); *(int4 *)((long)__dest + ((ulong)*(uint *)(local_20 + 0x744) - 8)) = local_2c; local_18[3] = *local_18; *local_18 = (long)__dest; local_9 = 0; } else { my_free(__dest); local_9 = 1; } } return local_9; }
21,161
ma_crypt_index_pre_write_hook
eloqsql/storage/maria/ma_crypt.c
static my_bool ma_crypt_index_pre_write_hook(PAGECACHE_IO_HOOK_ARGS *args) { MARIA_SHARE *share= (MARIA_SHARE*) args->data; const uint block_size= share->block_size; const uint page_used= _ma_get_page_used(share, args->page); uint key_version; uchar *crypt_buf= my_malloc(PSI_INSTRUMENT_ME, block_size, MYF(0)); if (crypt_buf == NULL) { args->crypt_buf= NULL; /* for post-hook */ return 1; } if (!share->base.born_transactional) { /* store a random number instead of LSN (for counter block) */ store_rand_lsn(args->page); } maria_page_crc_set_index(args); { const uchar *src= args->page; uchar* dst= crypt_buf; uint pageno= (uint)args->pageno; LSN lsn= lsn_korr(src); const uint head= share->keypage_header; const uint tail= CRC_SIZE; /* page_used includes header (but not trailer) */ const uint size= page_used - head; /* 1 - copy head */ memcpy(dst, src, head); /* 2 - encrypt page */ if (ma_encrypt(share, share->crypt_data, src + head, dst + head, size, pageno, lsn, &key_version)) { my_free(crypt_buf); return 1; } /* 3 - copy tail */ memcpy(dst + block_size - tail, src + block_size - tail, tail); /* 4 - store key version */ _ma_store_key_version(share, dst, key_version); #ifdef HAVE_valgrind /* 5 - keep valgrind happy by zeroing not used bytes */ bzero(dst+head+size, block_size - size - tail - head); #endif } /* swap pointers to instead write out the encrypted block */ args->crypt_buf= args->page; args->page= crypt_buf; return 0; }
O3
c
ma_crypt_index_pre_write_hook: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq (%rdi), %rax movq 0x10(%rdi), %r14 movl 0x744(%r14), %ecx movl 0x7bc(%r14), %r12d movzwl -0x2(%rax,%rcx), %r15d xorl %edi, %edi movq %r12, %rsi xorl %edx, %edx callq 0x9f6e1 testq %rax, %rax je 0x50dd4 movq %rax, -0x50(%rbp) movq %r12, -0x40(%rbp) rolw $0x8, %r15w movzwl %r15w, %r12d cmpb $0x0, 0x44c(%r14) jne 0x50d49 movq (%rbx), %rdi callq 0x50ed0 movq %rbx, %rdi callq 0x4fda8 movq (%rbx), %r15 movl 0x8(%rbx), %eax movl %eax, -0x30(%rbp) movzwl (%r15), %eax shlq $0x20, %rax movzbl 0x2(%r15), %ecx shlq $0x30, %rcx orq %rax, %rcx movl 0x3(%r15), %eax orq %rcx, %rax movq %rax, -0x48(%rbp) movl 0x744(%r14), %r13d subl %r13d, %r12d movl %r12d, -0x2c(%rbp) movq -0x50(%rbp), %r12 movq %r12, %rdi movq %r15, %rsi movq %r13, %rdx callq 0x29090 movq 0xc20(%r14), %rsi leaq (%r15,%r13), %rdx movq %r12, %rcx addq %r13, %rcx leaq -0x34(%rbp), %rax movq %r14, %rdi movl -0x2c(%rbp), %r8d movl -0x30(%rbp), %r9d pushq %rax pushq -0x48(%rbp) callq 0x50f13 addq $0x10, %rsp testl %eax, %eax je 0x50de0 movq %r12, %rdi callq 0x9f90e jmp 0x50ddc movq $0x0, 0x18(%rbx) movb $0x1, %al jmp 0x50e09 movq -0x40(%rbp), %rcx movl -0x4(%r15,%rcx), %eax movl %eax, -0x4(%r12,%rcx) movl 0x744(%r14), %eax movl -0x34(%rbp), %ecx movl %ecx, -0x8(%r12,%rax) movq (%rbx), %rax movq %rax, 0x18(%rbx) movq %r12, (%rbx) xorl %eax, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ma_crypt_index_pre_write_hook: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi mov rax, [rdi] mov r14, [rdi+10h] mov ecx, [r14+744h] mov r12d, [r14+7BCh] movzx r15d, word ptr [rax+rcx-2] xor edi, edi mov rsi, r12 xor edx, edx call my_malloc test rax, rax jz loc_50DD4 mov [rbp+var_50], rax mov [rbp+var_40], r12 rol r15w, 8 movzx r12d, r15w cmp byte ptr [r14+44Ch], 0 jnz short loc_50D49 mov rdi, [rbx] call store_rand_lsn loc_50D49: mov rdi, rbx call maria_page_crc_set_index mov r15, [rbx] mov eax, [rbx+8] mov [rbp+var_30], eax movzx eax, word ptr [r15] shl rax, 20h movzx ecx, byte ptr [r15+2] shl rcx, 30h or rcx, rax mov eax, [r15+3] or rax, rcx mov [rbp+var_48], rax mov r13d, [r14+744h] sub r12d, r13d mov [rbp+var_2C], r12d mov r12, [rbp+var_50] mov rdi, r12 mov rsi, r15 mov rdx, r13 call _memcpy mov rsi, [r14+0C20h] lea rdx, [r15+r13] mov rcx, r12 add rcx, r13 lea rax, [rbp+var_34] mov rdi, r14 mov r8d, [rbp+var_2C] mov r9d, [rbp+var_30] push rax push [rbp+var_48] call ma_encrypt add rsp, 10h test eax, eax jz short loc_50DE0 mov rdi, r12 call my_free jmp short loc_50DDC loc_50DD4: mov qword ptr [rbx+18h], 0 loc_50DDC: mov al, 1 jmp short loc_50E09 loc_50DE0: mov rcx, [rbp+var_40] mov eax, [r15+rcx-4] mov [r12+rcx-4], eax mov eax, [r14+744h] mov ecx, [rbp+var_34] mov [r12+rax-8], ecx mov rax, [rbx] mov [rbx+18h], rax mov [rbx], r12 xor eax, eax loc_50E09: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
char ma_crypt_index_pre_write_hook(long long *a1) { long long v1; // r14 long long v2; // r12 __int16 v3; // r15 long long v4; // rax int v5; // r12d unsigned __int16 *v6; // r15 long long v7; // r13 long long v9; // [rsp+0h] [rbp-50h] unsigned long long v10; // [rsp+8h] [rbp-48h] long long v11; // [rsp+10h] [rbp-40h] int v12; // [rsp+1Ch] [rbp-34h] BYREF int v13; // [rsp+20h] [rbp-30h] int v14; // [rsp+24h] [rbp-2Ch] v1 = a1[2]; v2 = *(unsigned int *)(v1 + 1980); v3 = *(_WORD *)(*a1 + *(unsigned int *)(v1 + 1860) - 2); v4 = my_malloc(0LL, v2, 0LL); if ( !v4 ) { a1[3] = 0LL; return 1; } v9 = v4; v11 = v2; v5 = (unsigned __int16)__ROL2__(v3, 8); if ( !*(_BYTE *)(v1 + 1100) ) store_rand_lsn(*a1); maria_page_crc_set_index(a1); v6 = (unsigned __int16 *)*a1; v13 = *((_DWORD *)a1 + 2); v10 = ((unsigned long long)*v6 << 32) | ((unsigned long long)*((unsigned __int8 *)v6 + 2) << 48) | *(unsigned int *)((char *)v6 + 3); v7 = *(unsigned int *)(v1 + 1860); v14 = v5 - v7; memcpy(v9, v6, v7); if ( (unsigned int)ma_encrypt( v1, *(_QWORD *)(v1 + 3104), (int)v6 + (int)v7, (int)v7 + (int)v9, v5 - (int)v7, v13, v10, (long long)&v12) ) { my_free(v9); return 1; } *(_DWORD *)(v9 + v11 - 4) = *(_DWORD *)((char *)v6 + v11 - 4); *(_DWORD *)(v9 + *(unsigned int *)(v1 + 1860) - 8) = v12; a1[3] = *a1; *a1 = v9; return 0; }
ma_crypt_index_pre_write_hook: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV R14,qword ptr [RDI + 0x10] MOV ECX,dword ptr [R14 + 0x744] MOV R12D,dword ptr [R14 + 0x7bc] MOVZX R15D,word ptr [RAX + RCX*0x1 + -0x2] XOR EDI,EDI MOV RSI,R12 XOR EDX,EDX CALL 0x0019f6e1 TEST RAX,RAX JZ 0x00150dd4 MOV qword ptr [RBP + -0x50],RAX MOV qword ptr [RBP + -0x40],R12 ROL R15W,0x8 MOVZX R12D,R15W CMP byte ptr [R14 + 0x44c],0x0 JNZ 0x00150d49 MOV RDI,qword ptr [RBX] CALL 0x00150ed0 LAB_00150d49: MOV RDI,RBX CALL 0x0014fda8 MOV R15,qword ptr [RBX] MOV EAX,dword ptr [RBX + 0x8] MOV dword ptr [RBP + -0x30],EAX MOVZX EAX,word ptr [R15] SHL RAX,0x20 MOVZX ECX,byte ptr [R15 + 0x2] SHL RCX,0x30 OR RCX,RAX MOV EAX,dword ptr [R15 + 0x3] OR RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV R13D,dword ptr [R14 + 0x744] SUB R12D,R13D MOV dword ptr [RBP + -0x2c],R12D MOV R12,qword ptr [RBP + -0x50] MOV RDI,R12 MOV RSI,R15 MOV RDX,R13 CALL 0x00129090 MOV RSI,qword ptr [R14 + 0xc20] LEA RDX,[R15 + R13*0x1] MOV RCX,R12 ADD RCX,R13 LEA RAX,[RBP + -0x34] MOV RDI,R14 MOV R8D,dword ptr [RBP + -0x2c] MOV R9D,dword ptr [RBP + -0x30] PUSH RAX PUSH qword ptr [RBP + -0x48] CALL 0x00150f13 ADD RSP,0x10 TEST EAX,EAX JZ 0x00150de0 MOV RDI,R12 CALL 0x0019f90e JMP 0x00150ddc LAB_00150dd4: MOV qword ptr [RBX + 0x18],0x0 LAB_00150ddc: MOV AL,0x1 JMP 0x00150e09 LAB_00150de0: MOV RCX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [R15 + RCX*0x1 + -0x4] MOV dword ptr [R12 + RCX*0x1 + -0x4],EAX MOV EAX,dword ptr [R14 + 0x744] MOV ECX,dword ptr [RBP + -0x34] MOV dword ptr [R12 + RAX*0x1 + -0x8],ECX MOV RAX,qword ptr [RBX] MOV qword ptr [RBX + 0x18],RAX MOV qword ptr [RBX],R12 XOR EAX,EAX LAB_00150e09: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 ma_crypt_index_pre_write_hook(long *param_1) { ushort uVar1; ushort uVar2; uint uVar3; long lVar4; ushort *__src; ushort uVar5; int iVar6; void *__dest; ulong uVar7; ulong __n; int4 local_3c; int4 local_38; int local_34; lVar4 = param_1[2]; uVar7 = (ulong)*(uint *)(lVar4 + 0x7bc); uVar1 = *(ushort *)(*param_1 + -2 + (ulong)*(uint *)(lVar4 + 0x744)); __dest = (void *)my_malloc(0,uVar7,0); if (__dest == (void *)0x0) { param_1[3] = 0; } else { if (*(char *)(lVar4 + 0x44c) == '\0') { store_rand_lsn(*param_1); } maria_page_crc_set_index(param_1); __src = (ushort *)*param_1; local_38 = (int4)param_1[1]; uVar2 = *__src; uVar5 = __src[1]; uVar3 = *(uint *)((long)__src + 3); __n = (ulong)*(uint *)(lVar4 + 0x744); local_34 = (uint)(ushort)(uVar1 << 8 | uVar1 >> 8) - *(uint *)(lVar4 + 0x744); memcpy(__dest,__src,__n); iVar6 = ma_encrypt(lVar4,*(int8 *)(lVar4 + 0xc20),(long)__src + __n,(long)__dest + __n, local_34,local_38, (ulong)uVar3 | (ulong)(byte)uVar5 << 0x30 | (ulong)uVar2 << 0x20,&local_3c); if (iVar6 == 0) { *(int4 *)((long)__dest + (uVar7 - 4)) = *(int4 *)((long)__src + (uVar7 - 4)); *(int4 *)((long)__dest + ((ulong)*(uint *)(lVar4 + 0x744) - 8)) = local_3c; param_1[3] = *param_1; *param_1 = (long)__dest; return 0; } my_free(__dest); } return 1; }
21,162
void testing::internal::ShuffleRange<int>(testing::internal::Random*, int, int, std::vector<int, std::allocator<int>>*)
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-internal-inl.h
void ShuffleRange(internal::Random* random, int begin, int end, std::vector<E>* v) { const int size = static_cast<int>(v->size()); GTEST_CHECK_(0 <= begin && begin <= size) << "Invalid shuffle range start " << begin << ": must be in range [0, " << size << "]."; GTEST_CHECK_(begin <= end && end <= size) << "Invalid shuffle range finish " << end << ": must be in range [" << begin << ", " << size << "]."; // Fisher-Yates shuffle, from // https://en.wikipedia.org/wiki/Fisher-Yates_shuffle for (int range_width = end - begin; range_width >= 2; range_width--) { const int last_in_range = begin + range_width - 1; const int selected = begin + static_cast<int>(random->Generate(static_cast<uint32_t>(range_width))); std::swap((*v)[static_cast<size_t>(selected)], (*v)[static_cast<size_t>(last_in_range)]); } }
O3
c
void testing::internal::ShuffleRange<int>(testing::internal::Random*, int, int, std::vector<int, std::allocator<int>>*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movl %edx, %r12d movl %esi, %ebp movq %rdi, %r14 movq 0x8(%rcx), %r15 subq (%rcx), %r15 shrq $0x2, %r15 testl %esi, %esi js 0x35042 cmpl %ebp, %r15d jge 0x350db leaq 0xf18f(%rip), %rdx # 0x441d8 leaq 0x4(%rsp), %rdi movl $0x3, %esi movl $0x134, %ecx # imm = 0x134 callq 0x16b08 movq 0x23f84(%rip), %rdi # 0x58fe8 leaq 0xf808(%rip), %rsi # 0x44873 movl $0x2e, %edx callq 0x85b0 movq 0x23f6c(%rip), %rdi # 0x58fe8 leaq 0xf81f(%rip), %rsi # 0x448a2 movl $0x1c, %edx callq 0x85b0 movq 0x23f54(%rip), %rdi # 0x58fe8 movl %ebp, %esi callq 0x8950 movq %rax, %r13 leaq 0xf81a(%rip), %rsi # 0x448bf movl $0x17, %edx movq %rax, %rdi callq 0x85b0 movq %r13, %rdi movl %r15d, %esi callq 0x8950 leaq 0xf56e(%rip), %rsi # 0x44632 movl $0x2, %edx movq %rax, %rdi callq 0x85b0 leaq 0x4(%rsp), %rdi callq 0x16c4a movl %r12d, %r13d subl %ebp, %r13d jl 0x350ec cmpl %r12d, %r15d jge 0x351a3 leaq 0xf0e5(%rip), %rdx # 0x441d8 movq %rsp, %rdi movl $0x3, %esi movl $0x137, %ecx # imm = 0x137 callq 0x16b08 movq 0x23edc(%rip), %rdi # 0x58fe8 leaq 0xf7c4(%rip), %rsi # 0x448d7 movl $0x2e, %edx callq 0x85b0 movq 0x23ec4(%rip), %rdi # 0x58fe8 leaq 0xf7db(%rip), %rsi # 0x44906 movl $0x1d, %edx callq 0x85b0 movq 0x23eac(%rip), %rdi # 0x58fe8 movl %r12d, %esi callq 0x8950 movq %rax, %r12 leaq 0xf7d6(%rip), %rsi # 0x44924 movl $0x14, %edx movq %rax, %rdi callq 0x85b0 movq %r12, %rdi movl %ebp, %esi callq 0x8950 movq %rax, %r12 leaq 0xf765(%rip), %rsi # 0x448d4 movl $0x2, %edx movq %rax, %rdi callq 0x85b0 movq %r12, %rdi movl %r15d, %esi callq 0x8950 leaq 0xf4a4(%rip), %rsi # 0x44632 movl $0x2, %edx movq %rax, %rdi callq 0x85b0 movq %rsp, %rdi callq 0x16c4a cmpl $0x2, %r13d jl 0x351e8 movl %r13d, %r15d movslq %ebp, %rax leaq -0x4(,%rax,4), %r12 movq %r14, %rdi movl %r15d, %esi callq 0x18a20 addl %ebp, %eax cltq movq (%rbx), %rcx leaq (%rcx,%r12), %rdx movl (%rcx,%rax,4), %esi movl (%rdx,%r15,4), %edi movl %edi, (%rcx,%rax,4) movl %esi, (%rdx,%r15,4) leaq -0x1(%r15), %rax cmpq $0x2, %r15 movq %rax, %r15 ja 0x351b7 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x4(%rsp), %rdi jmp 0x35207 movq %rax, %rbx movq %rsp, %rdi callq 0x16c4a movq %rbx, %rdi callq 0x8990
_ZN7testing8internal12ShuffleRangeIiEEvPNS0_6RandomEiiPSt6vectorIT_SaIS5_EE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rcx mov r12d, edx mov ebp, esi mov r14, rdi mov r15, [rcx+8] sub r15, [rcx] shr r15, 2 test esi, esi js short loc_35042 cmp r15d, ebp jge loc_350DB loc_35042: lea rdx, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+38h+var_34] mov esi, 3 mov ecx, 134h call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aCondition0Begi; "Condition 0 <= begin && begin <= size f"... mov edx, 2Eh ; '.' 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, cs:_ZSt4cerr_ptr lea rsi, aInvalidShuffle; "Invalid shuffle range start " mov edx, 1Ch 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, cs:_ZSt4cerr_ptr mov esi, ebp call __ZNSolsEi; std::ostream::operator<<(int) mov r13, rax lea rsi, aMustBeInRange0; ": must be in range [0, " mov edx, 17h 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) mov rdi, r13 mov esi, r15d call __ZNSolsEi; std::ostream::operator<<(int) lea rsi, asc_44632; "]." mov edx, 2 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+38h+var_34]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() loc_350DB: mov r13d, r12d sub r13d, ebp jl short loc_350EC cmp r15d, r12d jge loc_351A3 loc_350EC: lea rdx, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"... mov rdi, rsp mov esi, 3 mov ecx, 137h call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aConditionBegin; "Condition begin <= end && end <= size f"... mov edx, 2Eh ; '.' 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, cs:_ZSt4cerr_ptr lea rsi, aInvalidShuffle_0; "Invalid shuffle range finish " mov edx, 1Dh 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, cs:_ZSt4cerr_ptr mov esi, r12d call __ZNSolsEi; std::ostream::operator<<(int) mov r12, rax lea rsi, aMustBeInRange; ": must be in range [" mov edx, 14h 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) mov rdi, r12 mov esi, ebp call __ZNSolsEi; std::ostream::operator<<(int) mov r12, rax lea rsi, aMustBeInRange0+15h; ", " mov edx, 2 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) mov rdi, r12 mov esi, r15d call __ZNSolsEi; std::ostream::operator<<(int) lea rsi, asc_44632; "]." mov edx, 2 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) mov rdi, rsp; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() loc_351A3: cmp r13d, 2 jl short loc_351E8 mov r15d, r13d movsxd rax, ebp lea r12, ds:0FFFFFFFFFFFFFFFCh[rax*4] loc_351B7: mov rdi, r14; this mov esi, r15d; unsigned int call _ZN7testing8internal6Random8GenerateEj; testing::internal::Random::Generate(uint) add eax, ebp cdqe mov rcx, [rbx] lea rdx, [rcx+r12] mov esi, [rcx+rax*4] mov edi, [rdx+r15*4] mov [rcx+rax*4], edi mov [rdx+r15*4], esi lea rax, [r15-1] cmp r15, 2 mov r15, rax ja short loc_351B7 loc_351E8: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+4] jmp short loc_35207 mov rbx, rax mov rdi, rsp; this loc_35207: call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() mov rdi, rbx call __Unwind_Resume
void testing::internal::ShuffleRange<int>(testing::internal::Random *this, int a2, int a3, _QWORD *a4) { long long v4; // rax long long v8; // r15 long long v9; // r13 long long v10; // rax long long v11; // rdx long long v12; // rcx int v13; // r13d long long v14; // r12 long long v15; // r12 long long v16; // rax long long v17; // rdx long long v18; // rcx unsigned long long v19; // r15 long long v20; // rax long long v21; // rdx int v22; // esi _QWORD v24[7]; // [rsp-4h] [rbp-38h] BYREF v24[0] = v4; v8 = (a4[1] - *a4) >> 2; if ( a2 < 0 || (int)v8 < a2 ) { testing::internal::GTestLog::GTestLog( (_DWORD *)v24 + 1, 3, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-internal-inl.h", 308); std::__ostream_insert<char,std::char_traits<char>>( &std::cerr, "Condition 0 <= begin && begin <= size failed. ", 46LL); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Invalid shuffle range start ", 28LL); v9 = std::ostream::operator<<(&std::cerr, (unsigned int)a2); std::__ostream_insert<char,std::char_traits<char>>(v9, ": must be in range [0, ", 23LL); v10 = std::ostream::operator<<(v9, (unsigned int)v8); std::__ostream_insert<char,std::char_traits<char>>(v10, "].", 2LL); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)((char *)v24 + 4), (long long)"].", v11, v12); } v13 = a3 - a2; if ( a3 < a2 || (int)v8 < a3 ) { testing::internal::GTestLog::GTestLog( v24, 3, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-internal-inl.h", 311); std::__ostream_insert<char,std::char_traits<char>>( &std::cerr, "Condition begin <= end && end <= size failed. ", 46LL); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Invalid shuffle range finish ", 29LL); v14 = std::ostream::operator<<(&std::cerr, (unsigned int)a3); std::__ostream_insert<char,std::char_traits<char>>(v14, ": must be in range [", 20LL); v15 = std::ostream::operator<<(v14, (unsigned int)a2); std::__ostream_insert<char,std::char_traits<char>>(v15, ", ", 2LL); v16 = std::ostream::operator<<(v15, (unsigned int)v8); std::__ostream_insert<char,std::char_traits<char>>(v16, "].", 2LL); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v24, (long long)"].", v17, v18); } if ( v13 >= 2 ) { v19 = (unsigned int)v13; do { v20 = (int)(a2 + testing::internal::Random::Generate(this, v19)); v21 = *a4 + 4LL * a2 - 4; v22 = *(_DWORD *)(*a4 + 4 * v20); *(_DWORD *)(*a4 + 4 * v20) = *(_DWORD *)(v21 + 4 * v19); *(_DWORD *)(v21 + 4 * v19) = v22; } while ( v19-- > 2 ); } }
ShuffleRange<int>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RCX MOV R12D,EDX MOV EBP,ESI MOV R14,RDI MOV R15,qword ptr [RCX + 0x8] SUB R15,qword ptr [RCX] SHR R15,0x2 TEST ESI,ESI JS 0x00135042 CMP R15D,EBP JGE 0x001350db LAB_00135042: LEA RDX,[0x1441d8] LEA RDI,[RSP + 0x4] MOV ESI,0x3 MOV ECX,0x134 CALL 0x00116b08 LAB_0013505d: MOV RDI,qword ptr [0x00158fe8] LEA RSI,[0x144873] MOV EDX,0x2e CALL 0x001085b0 MOV RDI,qword ptr [0x00158fe8] LEA RSI,[0x1448a2] MOV EDX,0x1c CALL 0x001085b0 MOV RDI,qword ptr [0x00158fe8] MOV ESI,EBP CALL 0x00108950 MOV R13,RAX LEA RSI,[0x1448bf] MOV EDX,0x17 MOV RDI,RAX CALL 0x001085b0 MOV RDI,R13 MOV ESI,R15D CALL 0x00108950 LEA RSI,[0x144632] MOV EDX,0x2 MOV RDI,RAX CALL 0x001085b0 LAB_001350d1: LEA RDI,[RSP + 0x4] CALL 0x00116c4a LAB_001350db: MOV R13D,R12D SUB R13D,EBP JL 0x001350ec CMP R15D,R12D JGE 0x001351a3 LAB_001350ec: LEA RDX,[0x1441d8] MOV RDI,RSP MOV ESI,0x3 MOV ECX,0x137 CALL 0x00116b08 LAB_00135105: MOV RDI,qword ptr [0x00158fe8] LEA RSI,[0x1448d7] MOV EDX,0x2e CALL 0x001085b0 MOV RDI,qword ptr [0x00158fe8] LEA RSI,[0x144906] MOV EDX,0x1d CALL 0x001085b0 MOV RDI,qword ptr [0x00158fe8] MOV ESI,R12D CALL 0x00108950 MOV R12,RAX LEA RSI,[0x144924] MOV EDX,0x14 MOV RDI,RAX CALL 0x001085b0 MOV RDI,R12 MOV ESI,EBP CALL 0x00108950 MOV R12,RAX LEA RSI,[0x1448d4] MOV EDX,0x2 MOV RDI,RAX CALL 0x001085b0 MOV RDI,R12 MOV ESI,R15D CALL 0x00108950 LEA RSI,[0x144632] MOV EDX,0x2 MOV RDI,RAX CALL 0x001085b0 LAB_0013519b: MOV RDI,RSP CALL 0x00116c4a LAB_001351a3: CMP R13D,0x2 JL 0x001351e8 MOV R15D,R13D MOVSXD RAX,EBP LEA R12,[-0x4 + RAX*0x4] LAB_001351b7: MOV RDI,R14 MOV ESI,R15D CALL 0x00118a20 ADD EAX,EBP CDQE MOV RCX,qword ptr [RBX] LEA RDX,[RCX + R12*0x1] MOV ESI,dword ptr [RCX + RAX*0x4] MOV EDI,dword ptr [RDX + R15*0x4] MOV dword ptr [RCX + RAX*0x4],EDI MOV dword ptr [RDX + R15*0x4],ESI LEA RAX,[R15 + -0x1] CMP R15,0x2 MOV R15,RAX JA 0x001351b7 LAB_001351e8: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* void testing::internal::ShuffleRange<int>(testing::internal::Random*, int, int, std::vector<int, std::allocator<int> >*) */ void testing::internal::ShuffleRange<int>(Random *param_1,int param_2,int param_3,vector *param_4) { long lVar1; int4 uVar2; long lVar3; bool bVar4; int iVar5; ostream *poVar6; ulong uVar7; GTestLog aGStack_38 [4]; GTestLog local_34 [4]; iVar5 = (int)((ulong)(*(long *)(param_4 + 8) - *(long *)param_4) >> 2); if ((param_2 < 0) || (iVar5 < param_2)) { GTestLog::GTestLog(local_34,3, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-internal-inl.h" ,0x134); /* try { // try from 0013505d to 001350d0 has its CatchHandler @ 001351f7 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00158fe8,"Condition 0 <= begin && begin <= size failed. ",0x2e); std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00158fe8,"Invalid shuffle range start ",0x1c); poVar6 = (ostream *)std::ostream::operator<<((ostream *)PTR_cerr_00158fe8,param_2); std::__ostream_insert<char,std::char_traits<char>>(poVar6,": must be in range [0, ",0x17); poVar6 = (ostream *)std::ostream::operator<<(poVar6,iVar5); std::__ostream_insert<char,std::char_traits<char>>(poVar6,"].",2); GTestLog::~GTestLog(local_34); } if ((param_3 < param_2) || (iVar5 < param_3)) { GTestLog::GTestLog(aGStack_38,3, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-internal-inl.h" ,0x137); /* try { // try from 00135105 to 0013519a has its CatchHandler @ 00135201 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00158fe8,"Condition begin <= end && end <= size failed. ",0x2e); std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00158fe8,"Invalid shuffle range finish ",0x1d); poVar6 = (ostream *)std::ostream::operator<<((ostream *)PTR_cerr_00158fe8,param_3); std::__ostream_insert<char,std::char_traits<char>>(poVar6,": must be in range [",0x14); poVar6 = (ostream *)std::ostream::operator<<(poVar6,param_2); std::__ostream_insert<char,std::char_traits<char>>(poVar6,", ",2); poVar6 = (ostream *)std::ostream::operator<<(poVar6,iVar5); std::__ostream_insert<char,std::char_traits<char>>(poVar6,"].",2); GTestLog::~GTestLog(aGStack_38); } if (1 < param_3 - param_2) { uVar7 = (ulong)(uint)(param_3 - param_2); do { iVar5 = Random::Generate(param_1,(uint)uVar7); lVar3 = *(long *)param_4; lVar1 = lVar3 + (long)param_2 * 4 + -4; uVar2 = *(int4 *)(lVar3 + (long)(iVar5 + param_2) * 4); *(int4 *)(lVar3 + (long)(iVar5 + param_2) * 4) = *(int4 *)(lVar1 + uVar7 * 4); *(int4 *)(lVar1 + uVar7 * 4) = uVar2; bVar4 = 2 < uVar7; uVar7 = uVar7 - 1; } while (bVar4); } return; }
21,163
POINTonE1_Deserialize_BE
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e1.c
static BLST_ERROR POINTonE1_Deserialize_BE(POINTonE1_affine *out, const unsigned char in[96]) { POINTonE1_affine ret; vec384 temp; limbs_from_be_bytes(ret.X, in, sizeof(ret.X)); limbs_from_be_bytes(ret.Y, in + 48, sizeof(ret.Y)); /* clear top 3 bits in case caller was conveying some information there */ ret.X[sizeof(ret.X)/sizeof(limb_t)-1] &= ((limb_t)0-1) >> 3; add_fp(temp, ret.X, ZERO_384); /* less than modulus? */ if (!vec_is_equal(temp, ret.X, sizeof(temp))) return BLST_BAD_ENCODING; add_fp(temp, ret.Y, ZERO_384); /* less than modulus? */ if (!vec_is_equal(temp, ret.Y, sizeof(temp))) return BLST_BAD_ENCODING; mul_fp(ret.X, ret.X, BLS12_381_RR); mul_fp(ret.Y, ret.Y, BLS12_381_RR); if (!POINTonE1_affine_on_curve(&ret)) return BLST_POINT_NOT_ON_CURVE; vec_copy(out, &ret, sizeof(ret)); /* (0,±2) is not in group, but application might want to ignore? */ return vec_is_zero(out->X, sizeof(out->X)) ? BLST_POINT_NOT_IN_GROUP : BLST_SUCCESS; }
O0
c
POINTonE1_Deserialize_BE: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) leaq -0x78(%rbp), %rdi movq -0x18(%rbp), %rsi movl $0x30, %edx callq 0xb4d00 leaq -0x78(%rbp), %rdi addq $0x30, %rdi movq -0x18(%rbp), %rsi addq $0x30, %rsi movl $0x30, %edx callq 0xb4d00 movabsq $0x1fffffffffffffff, %rax # imm = 0x1FFFFFFFFFFFFFFF andq -0x50(%rbp), %rax movq %rax, -0x50(%rbp) leaq -0xb0(%rbp), %rdi leaq -0x78(%rbp), %rsi leaq 0x2f1a5(%rip), %rdx # 0xe6098 addq $0x30, %rdx callq 0xae790 leaq -0xb0(%rbp), %rdi leaq -0x78(%rbp), %rsi movl $0x30, %edx callq 0xa9e70 cmpq $0x0, %rax jne 0xb6f23 movl $0x1, -0x4(%rbp) jmp 0xb6fe6 leaq -0xb0(%rbp), %rdi leaq -0x78(%rbp), %rsi addq $0x30, %rsi leaq 0x2f15f(%rip), %rdx # 0xe6098 addq $0x30, %rdx callq 0xae790 leaq -0xb0(%rbp), %rdi leaq -0x78(%rbp), %rsi addq $0x30, %rsi movl $0x30, %edx callq 0xa9e70 cmpq $0x0, %rax jne 0xb6f6a movl $0x1, -0x4(%rbp) jmp 0xb6fe6 leaq -0x78(%rbp), %rdi leaq -0x78(%rbp), %rsi leaq 0x2f367(%rip), %rdx # 0xe62e0 callq 0xb4a30 leaq -0x78(%rbp), %rdi addq $0x30, %rdi leaq -0x78(%rbp), %rsi addq $0x30, %rsi leaq 0x2f34b(%rip), %rdx # 0xe62e0 callq 0xb4a30 leaq -0x78(%rbp), %rdi callq 0xa7760 cmpq $0x0, %rax jne 0xb6fb2 movl $0x2, -0x4(%rbp) jmp 0xb6fe6 movq -0x10(%rbp), %rdi leaq -0x78(%rbp), %rsi movl $0x60, %edx callq 0xa7480 movq -0x10(%rbp), %rdi movl $0x30, %esi callq 0xa7680 movq %rax, %rdx xorl %eax, %eax movl $0x3, %ecx cmpq $0x0, %rdx cmovnel %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0xb0, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
POINTonE1_Deserialize_BE: push rbp mov rbp, rsp sub rsp, 0B0h mov [rbp+var_10], rdi mov [rbp+var_18], rsi lea rdi, [rbp+var_78] mov rsi, [rbp+var_18] mov edx, 30h ; '0' call limbs_from_be_bytes lea rdi, [rbp+var_78] add rdi, 30h ; '0' mov rsi, [rbp+var_18] add rsi, 30h ; '0' mov edx, 30h ; '0' call limbs_from_be_bytes mov rax, 1FFFFFFFFFFFFFFFh and rax, [rbp+var_50] mov [rbp+var_50], rax lea rdi, [rbp+var_B0] lea rsi, [rbp+var_78] lea rdx, BLS12_381_Rx add rdx, 30h ; '0' call add_fp lea rdi, [rbp+var_B0] lea rsi, [rbp+var_78] mov edx, 30h ; '0' call vec_is_equal cmp rax, 0 jnz short loc_B6F23 mov [rbp+var_4], 1 jmp loc_B6FE6 loc_B6F23: lea rdi, [rbp+var_B0] lea rsi, [rbp+var_78] add rsi, 30h ; '0' lea rdx, BLS12_381_Rx add rdx, 30h ; '0' call add_fp lea rdi, [rbp+var_B0] lea rsi, [rbp+var_78] add rsi, 30h ; '0' mov edx, 30h ; '0' call vec_is_equal cmp rax, 0 jnz short loc_B6F6A mov [rbp+var_4], 1 jmp short loc_B6FE6 loc_B6F6A: lea rdi, [rbp+var_78] lea rsi, [rbp+var_78] lea rdx, BLS12_381_RR call mul_fp lea rdi, [rbp+var_78] add rdi, 30h ; '0' lea rsi, [rbp+var_78] add rsi, 30h ; '0' lea rdx, BLS12_381_RR call mul_fp lea rdi, [rbp+var_78] call POINTonE1_affine_on_curve cmp rax, 0 jnz short loc_B6FB2 mov [rbp+var_4], 2 jmp short loc_B6FE6 loc_B6FB2: mov rdi, [rbp+var_10] lea rsi, [rbp+var_78] mov edx, 60h ; '`' call vec_copy mov rdi, [rbp+var_10] mov esi, 30h ; '0' call vec_is_zero mov rdx, rax xor eax, eax mov ecx, 3 cmp rdx, 0 cmovnz eax, ecx mov [rbp+var_4], eax loc_B6FE6: mov eax, [rbp+var_4] add rsp, 0B0h pop rbp retn
long long POINTonE1_Deserialize_BE(long long a1, unsigned __int8 *a2) { unsigned long long is_zero; // rdx unsigned int v3; // eax _BYTE v5[56]; // [rsp+0h] [rbp-B0h] BYREF _BYTE v6[40]; // [rsp+38h] [rbp-78h] BYREF long long v7; // [rsp+60h] [rbp-50h] _BYTE v8[48]; // [rsp+68h] [rbp-48h] BYREF unsigned __int8 *v9; // [rsp+98h] [rbp-18h] long long v10; // [rsp+A0h] [rbp-10h] v10 = a1; v9 = a2; limbs_from_be_bytes((long long)v6, a2, 0x30uLL); limbs_from_be_bytes((long long)v8, v9 + 48, 0x30uLL); v7 &= 0x1FFFFFFFFFFFFFFFuLL; add_fp((long long)v5, (long long)v6, (long long)&BLS12_381_Rx + 48); if ( vec_is_equal((long long)v5, (long long)v6, 0x30uLL) ) { add_fp((long long)v5, (long long)v8, (long long)&BLS12_381_Rx + 48); if ( vec_is_equal((long long)v5, (long long)v8, 0x30uLL) ) { mul_fp((long long)v6, (long long)v6, (long long)&BLS12_381_RR); mul_fp((long long)v8, (long long)v8, (long long)&BLS12_381_RR); if ( POINTonE1_affine_on_curve((long long)v6) ) { vec_copy(v10, (long long)v6, 0x60uLL); is_zero = vec_is_zero(v10, 0x30uLL); v3 = 0; if ( is_zero ) return 3; return v3; } else { return 2; } } else { return 1; } } else { return 1; } }
POINTonE1_Deserialize_BE: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI LEA RDI,[RBP + -0x78] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,0x30 CALL 0x001b4d00 LEA RDI,[RBP + -0x78] ADD RDI,0x30 MOV RSI,qword ptr [RBP + -0x18] ADD RSI,0x30 MOV EDX,0x30 CALL 0x001b4d00 MOV RAX,0x1fffffffffffffff AND RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x50],RAX LEA RDI,[RBP + -0xb0] LEA RSI,[RBP + -0x78] LEA RDX,[0x1e6098] ADD RDX,0x30 CALL 0x001ae790 LEA RDI,[RBP + -0xb0] LEA RSI,[RBP + -0x78] MOV EDX,0x30 CALL 0x001a9e70 CMP RAX,0x0 JNZ 0x001b6f23 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001b6fe6 LAB_001b6f23: LEA RDI,[RBP + -0xb0] LEA RSI,[RBP + -0x78] ADD RSI,0x30 LEA RDX,[0x1e6098] ADD RDX,0x30 CALL 0x001ae790 LEA RDI,[RBP + -0xb0] LEA RSI,[RBP + -0x78] ADD RSI,0x30 MOV EDX,0x30 CALL 0x001a9e70 CMP RAX,0x0 JNZ 0x001b6f6a MOV dword ptr [RBP + -0x4],0x1 JMP 0x001b6fe6 LAB_001b6f6a: LEA RDI,[RBP + -0x78] LEA RSI,[RBP + -0x78] LEA RDX,[0x1e62e0] CALL 0x001b4a30 LEA RDI,[RBP + -0x78] ADD RDI,0x30 LEA RSI,[RBP + -0x78] ADD RSI,0x30 LEA RDX,[0x1e62e0] CALL 0x001b4a30 LEA RDI,[RBP + -0x78] CALL 0x001a7760 CMP RAX,0x0 JNZ 0x001b6fb2 MOV dword ptr [RBP + -0x4],0x2 JMP 0x001b6fe6 LAB_001b6fb2: MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x78] MOV EDX,0x60 CALL 0x001a7480 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x30 CALL 0x001a7680 MOV RDX,RAX XOR EAX,EAX MOV ECX,0x3 CMP RDX,0x0 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_001b6fe6: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0xb0 POP RBP RET
int4 POINTonE1_Deserialize_BE(int8 param_1,long param_2) { long lVar1; int1 local_b8 [56]; int1 local_80 [40]; ulong local_58; int1 auStack_50 [48]; long local_20; int8 local_18; int4 local_c; local_20 = param_2; local_18 = param_1; limbs_from_be_bytes(local_80,param_2,0x30); limbs_from_be_bytes(auStack_50,local_20 + 0x30,0x30); local_58 = local_58 & 0x1fffffffffffffff; add_fp(local_b8,local_80,0x1e60c8); lVar1 = vec_is_equal(local_b8,local_80,0x30); if (lVar1 == 0) { local_c = 1; } else { add_fp(local_b8,auStack_50,0x1e60c8); lVar1 = vec_is_equal(local_b8,auStack_50,0x30); if (lVar1 == 0) { local_c = 1; } else { mul_fp(local_80,local_80,BLS12_381_RR); mul_fp(auStack_50,auStack_50,BLS12_381_RR); lVar1 = POINTonE1_affine_on_curve(local_80); if (lVar1 == 0) { local_c = 2; } else { vec_copy(local_18,local_80,0x60); lVar1 = vec_is_zero(local_18,0x30); local_c = 0; if (lVar1 != 0) { local_c = 3; } } } } return local_c; }
21,164
replace_len(char*)
eloqsql/client/mysqltest.cc
uint replace_len(char * str) { uint len=0; while (*str) { str++; len++; } return len; }
O0
cpp
replace_len(char*): pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl $0x0, -0xc(%rbp) movq -0x8(%rbp), %rax cmpb $0x0, (%rax) je 0x75abf movq -0x8(%rbp), %rax addq $0x1, %rax movq %rax, -0x8(%rbp) movl -0xc(%rbp), %eax addl $0x1, %eax movl %eax, -0xc(%rbp) jmp 0x75a9f movl -0xc(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
_Z11replace_lenPc: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], 0 loc_75A9F: mov rax, [rbp+var_8] cmp byte ptr [rax], 0 jz short loc_75ABF mov rax, [rbp+var_8] add rax, 1 mov [rbp+var_8], rax mov eax, [rbp+var_C] add eax, 1 mov [rbp+var_C], eax jmp short loc_75A9F loc_75ABF: mov eax, [rbp+var_C] pop rbp retn
long long replace_len(char *a1) { unsigned int v2; // [rsp+0h] [rbp-Ch] v2 = 0; while ( *a1 ) { ++a1; ++v2; } return v2; }
replace_len: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],0x0 LAB_00175a9f: MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX],0x0 JZ 0x00175abf MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x1 MOV qword ptr [RBP + -0x8],RAX MOV EAX,dword ptr [RBP + -0xc] ADD EAX,0x1 MOV dword ptr [RBP + -0xc],EAX JMP 0x00175a9f LAB_00175abf: MOV EAX,dword ptr [RBP + -0xc] POP RBP RET
/* replace_len(char*) */ int replace_len(char *param_1) { int local_14; char *local_10; local_14 = 0; for (local_10 = param_1; *local_10 != '\0'; local_10 = local_10 + 1) { local_14 = local_14 + 1; } return local_14; }
21,165
makeNodeWithProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
11AgReS1SoR11[P]Graph/Common/Retranslator/src/Retranslator.cpp
Node* makeNodeWithProperty(std::string const& key, std::string const& value, bool isText){ Node* property = new Node("property"); property->addChild(new Node("PROPERTY_KEY")); property->childNodes[0]->addChild(new Node(key)); property->addChild(new Node("=")); if (isText) property->addChild(new Node("TEXT")); else property->addChild(new Node("NUMBER")); property->childNodes[2]->addChild(new Node(value)); return property; }
O0
cpp
makeNodeWithProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool): pushq %rbp movq %rsp, %rbp subq $0x190, %rsp # imm = 0x190 movb %dl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) andb $0x1, %al movb %al, -0x11(%rbp) movl $0x38, %edi callq 0x5440 movq %rax, -0x108(%rbp) movb $0x1, -0x55(%rbp) leaq -0x41(%rbp), %rdi movq %rdi, -0x100(%rbp) callq 0x5770 movq -0x100(%rbp), %rdx leaq 0x2c08(%rip), %rsi # 0xc055 leaq -0x40(%rbp), %rdi callq 0x5700 jmp 0x9458 movq -0x108(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0x53d0 jmp 0x946a movb $0x0, -0x55(%rbp) leaq -0x40(%rbp), %rdi callq 0x5270 leaq -0x41(%rbp), %rdi callq 0x54b0 movq -0x108(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x120(%rbp) movl $0x38, %edi callq 0x5440 movq %rax, -0x118(%rbp) movb $0x1, -0x7a(%rbp) leaq -0x79(%rbp), %rdi movq %rdi, -0x110(%rbp) callq 0x5770 movq -0x110(%rbp), %rdx leaq 0x2b95(%rip), %rsi # 0xc05e leaq -0x78(%rbp), %rdi callq 0x5700 jmp 0x94d4 movq -0x118(%rbp), %rdi leaq -0x78(%rbp), %rsi callq 0x53d0 jmp 0x94e6 movq -0x118(%rbp), %rsi movq -0x120(%rbp), %rdi movb $0x0, -0x7a(%rbp) callq 0x5030 jmp 0x94ff leaq -0x78(%rbp), %rdi callq 0x5270 leaq -0x79(%rbp), %rdi callq 0x54b0 movq -0x20(%rbp), %rdi addq $0x20, %rdi xorl %eax, %eax movl %eax, %esi callq 0x57c0 movq (%rax), %rax movq %rax, -0x130(%rbp) movl $0x38, %edi callq 0x5440 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x128(%rbp) movq -0x8(%rbp), %rsi callq 0x53d0 jmp 0x954e movq -0x128(%rbp), %rsi movq -0x130(%rbp), %rdi callq 0x5030 movq -0x20(%rbp), %rax movq %rax, -0x148(%rbp) movl $0x38, %edi callq 0x5440 movq %rax, -0x140(%rbp) movb $0x1, -0xa2(%rbp) leaq -0xa1(%rbp), %rdi movq %rdi, -0x138(%rbp) callq 0x5770 movq -0x138(%rbp), %rdx leaq 0x2ac6(%rip), %rsi # 0xc06b leaq -0xa0(%rbp), %rdi callq 0x5700 jmp 0x95b3 movq -0x140(%rbp), %rdi leaq -0xa0(%rbp), %rsi callq 0x53d0 jmp 0x95c8 movq -0x140(%rbp), %rsi movq -0x148(%rbp), %rdi movb $0x0, -0xa2(%rbp) callq 0x5030 jmp 0x95e4 leaq -0xa0(%rbp), %rdi callq 0x5270 leaq -0xa1(%rbp), %rdi callq 0x54b0 testb $0x1, -0x11(%rbp) je 0x9802 movq -0x20(%rbp), %rax movq %rax, -0x160(%rbp) movl $0x38, %edi callq 0x5440 movq %rax, -0x158(%rbp) movb $0x1, -0xca(%rbp) leaq -0xc9(%rbp), %rdi movq %rdi, -0x150(%rbp) callq 0x5770 movq -0x150(%rbp), %rdx leaq 0x2a23(%rip), %rsi # 0xc06d leaq -0xc8(%rbp), %rdi callq 0x5700 jmp 0x9658 movq -0x158(%rbp), %rdi leaq -0xc8(%rbp), %rsi callq 0x53d0 jmp 0x966d movq -0x158(%rbp), %rsi movq -0x160(%rbp), %rdi movb $0x0, -0xca(%rbp) callq 0x5030 jmp 0x9689 leaq -0xc8(%rbp), %rdi callq 0x5270 leaq -0xc9(%rbp), %rdi callq 0x54b0 jmp 0x98ef movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) jmp 0x96c9 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0x40(%rbp), %rdi callq 0x5270 leaq -0x41(%rbp), %rdi callq 0x54b0 testb $0x1, -0x55(%rbp) jne 0x96da jmp 0x96eb movq -0x108(%rbp), %rdi movl $0x38, %esi callq 0x5460 jmp 0x996a movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) jmp 0x9713 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0x78(%rbp), %rdi callq 0x5270 leaq -0x79(%rbp), %rdi callq 0x54b0 testb $0x1, -0x7a(%rbp) jne 0x9724 jmp 0x9735 movq -0x118(%rbp), %rdi movl $0x38, %esi callq 0x5460 jmp 0x996a movq -0x128(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) movl $0x38, %esi callq 0x5460 jmp 0x996a movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) jmp 0x9782 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0xa0(%rbp), %rdi callq 0x5270 leaq -0xa1(%rbp), %rdi callq 0x54b0 testb $0x1, -0xa2(%rbp) jne 0x9799 jmp 0x97aa movq -0x140(%rbp), %rdi movl $0x38, %esi callq 0x5460 jmp 0x996a movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) jmp 0x97d5 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0xc8(%rbp), %rdi callq 0x5270 leaq -0xc9(%rbp), %rdi callq 0x54b0 testb $0x1, -0xca(%rbp) jne 0x97ec jmp 0x97fd movq -0x158(%rbp), %rdi movl $0x38, %esi callq 0x5460 jmp 0x996a movq -0x20(%rbp), %rax movq %rax, -0x178(%rbp) movl $0x38, %edi callq 0x5440 movq %rax, -0x170(%rbp) movb $0x1, -0xf2(%rbp) leaq -0xf1(%rbp), %rdi movq %rdi, -0x168(%rbp) callq 0x5770 movq -0x168(%rbp), %rdx leaq 0x282c(%rip), %rsi # 0xc072 leaq -0xf0(%rbp), %rdi callq 0x5700 jmp 0x9854 movq -0x170(%rbp), %rdi leaq -0xf0(%rbp), %rsi callq 0x53d0 jmp 0x9869 movq -0x170(%rbp), %rsi movq -0x178(%rbp), %rdi movb $0x0, -0xf2(%rbp) callq 0x5030 jmp 0x9885 leaq -0xf0(%rbp), %rdi callq 0x5270 leaq -0xf1(%rbp), %rdi callq 0x54b0 jmp 0x98ef movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) jmp 0x98c5 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0xf0(%rbp), %rdi callq 0x5270 leaq -0xf1(%rbp), %rdi callq 0x54b0 testb $0x1, -0xf2(%rbp) jne 0x98dc jmp 0x98ed movq -0x170(%rbp), %rdi movl $0x38, %esi callq 0x5460 jmp 0x996a movq -0x20(%rbp), %rdi addq $0x20, %rdi movl $0x2, %esi callq 0x57c0 movq (%rax), %rax movq %rax, -0x188(%rbp) movl $0x38, %edi callq 0x5440 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x180(%rbp) movq -0x10(%rbp), %rsi callq 0x53d0 jmp 0x992d movq -0x180(%rbp), %rsi movq -0x188(%rbp), %rdi callq 0x5030 movq -0x20(%rbp), %rax addq $0x190, %rsp # imm = 0x190 popq %rbp retq movq -0x180(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) movl $0x38, %esi callq 0x5460 movq -0x50(%rbp), %rdi callq 0x5740 nopw %cs:(%rax,%rax)
_Z20makeNodeWithPropertyRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_b: push rbp mov rbp, rsp sub rsp, 190h mov al, dl mov [rbp+var_8], rdi mov [rbp+var_10], rsi and al, 1 mov [rbp+var_11], al mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov [rbp+var_108], rax mov [rbp+var_55], 1 lea rdi, [rbp+var_41] mov [rbp+var_100], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rbp+var_100] lea rsi, aProperty; "property" lea rdi, [rbp+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_9458: mov rdi, [rbp+var_108] lea rsi, [rbp+var_40] call __ZN3AST4NodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; AST::Node::Node(std::string const&) jmp short $+2 loc_946A: mov [rbp+var_55], 0 lea rdi, [rbp+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_41] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rax, [rbp+var_108] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov [rbp+var_120], rax mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov [rbp+var_118], rax mov [rbp+var_7A], 1 lea rdi, [rbp+var_79] mov [rbp+var_110], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rbp+var_110] lea rsi, aPropertyKey; "PROPERTY_KEY" lea rdi, [rbp+var_78] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_94D4: mov rdi, [rbp+var_118] lea rsi, [rbp+var_78] call __ZN3AST4NodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; AST::Node::Node(std::string const&) jmp short $+2 loc_94E6: mov rsi, [rbp+var_118] mov rdi, [rbp+var_120] mov [rbp+var_7A], 0 call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) jmp short $+2 loc_94FF: lea rdi, [rbp+var_78] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_79] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, [rbp+var_20] add rdi, 20h ; ' ' xor eax, eax mov esi, eax call __ZNSt6vectorIPN3AST4NodeESaIS2_EEixEm; std::vector<AST::Node *>::operator[](ulong) mov rax, [rax] mov [rbp+var_130], rax mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov rdi, rax mov rax, rdi mov [rbp+var_128], rax mov rsi, [rbp+var_8] call __ZN3AST4NodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; AST::Node::Node(std::string const&) jmp short $+2 loc_954E: mov rsi, [rbp+var_128] mov rdi, [rbp+var_130] call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) mov rax, [rbp+var_20] mov [rbp+var_148], rax mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov [rbp+var_140], rax mov [rbp+var_A2], 1 lea rdi, [rbp+var_A1] mov [rbp+var_138], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rbp+var_138] lea rsi, asc_C06B; "=" lea rdi, [rbp+var_A0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_95B3: mov rdi, [rbp+var_140] lea rsi, [rbp+var_A0] call __ZN3AST4NodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; AST::Node::Node(std::string const&) jmp short $+2 loc_95C8: mov rsi, [rbp+var_140] mov rdi, [rbp+var_148] mov [rbp+var_A2], 0 call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) jmp short $+2 loc_95E4: lea rdi, [rbp+var_A0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_A1] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rbp+var_11], 1 jz loc_9802 mov rax, [rbp+var_20] mov [rbp+var_160], rax mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov [rbp+var_158], rax mov [rbp+var_CA], 1 lea rdi, [rbp+var_C9] mov [rbp+var_150], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rbp+var_150] lea rsi, aText; "TEXT" lea rdi, [rbp+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_9658: mov rdi, [rbp+var_158] lea rsi, [rbp+var_C8] call __ZN3AST4NodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; AST::Node::Node(std::string const&) jmp short $+2 loc_966D: mov rsi, [rbp+var_158] mov rdi, [rbp+var_160] mov [rbp+var_CA], 0 call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) jmp short $+2 loc_9689: lea rdi, [rbp+var_C8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_C9] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_98EF mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax jmp short loc_96C9 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_96C9: lea rdi, [rbp+var_41] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rbp+var_55], 1 jnz short loc_96DA jmp short loc_96EB loc_96DA: mov rdi, [rbp+var_108]; void * mov esi, 38h ; '8'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_96EB: jmp loc_996A mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax jmp short loc_9713 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_78] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_9713: lea rdi, [rbp+var_79] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rbp+var_7A], 1 jnz short loc_9724 jmp short loc_9735 loc_9724: mov rdi, [rbp+var_118]; void * mov esi, 38h ; '8'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9735: jmp loc_996A mov rdi, [rbp+var_128]; void * mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax mov esi, 38h ; '8'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_996A mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax jmp short loc_9782 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_A0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_9782: lea rdi, [rbp+var_A1] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rbp+var_A2], 1 jnz short loc_9799 jmp short loc_97AA loc_9799: mov rdi, [rbp+var_140]; void * mov esi, 38h ; '8'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_97AA: jmp loc_996A mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax jmp short loc_97D5 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_C8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_97D5: lea rdi, [rbp+var_C9] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rbp+var_CA], 1 jnz short loc_97EC jmp short loc_97FD loc_97EC: mov rdi, [rbp+var_158]; void * mov esi, 38h ; '8'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_97FD: jmp loc_996A loc_9802: mov rax, [rbp+var_20] mov [rbp+var_178], rax mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov [rbp+var_170], rax mov [rbp+var_F2], 1 lea rdi, [rbp+var_F1] mov [rbp+var_168], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rbp+var_168] lea rsi, aNumber; "NUMBER" lea rdi, [rbp+var_F0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_9854: mov rdi, [rbp+var_170] lea rsi, [rbp+var_F0] call __ZN3AST4NodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; AST::Node::Node(std::string const&) jmp short $+2 loc_9869: mov rsi, [rbp+var_170] mov rdi, [rbp+var_178] mov [rbp+var_F2], 0 call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) jmp short $+2 loc_9885: lea rdi, [rbp+var_F0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_F1] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_98EF mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax jmp short loc_98C5 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_F0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_98C5: lea rdi, [rbp+var_F1] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rbp+var_F2], 1 jnz short loc_98DC jmp short loc_98ED loc_98DC: mov rdi, [rbp+var_170]; void * mov esi, 38h ; '8'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_98ED: jmp short loc_996A loc_98EF: mov rdi, [rbp+var_20] add rdi, 20h ; ' ' mov esi, 2 call __ZNSt6vectorIPN3AST4NodeESaIS2_EEixEm; std::vector<AST::Node *>::operator[](ulong) mov rax, [rax] mov [rbp+var_188], rax mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov rdi, rax mov rax, rdi mov [rbp+var_180], rax mov rsi, [rbp+var_10] call __ZN3AST4NodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; AST::Node::Node(std::string const&) jmp short $+2 loc_992D: mov rsi, [rbp+var_180] mov rdi, [rbp+var_188] call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) mov rax, [rbp+var_20] add rsp, 190h pop rbp retn mov rdi, [rbp+var_180]; void * mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax mov esi, 38h ; '8'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_996A: mov rdi, [rbp+var_50] call __Unwind_Resume
char * makeNodeWithProperty(long long a1, long long a2, char a3) { long long v4; // [rsp+8h] [rbp-188h] void *v5; // [rsp+10h] [rbp-180h] char *v6; // [rsp+18h] [rbp-178h] void *v7; // [rsp+20h] [rbp-170h] char *v8; // [rsp+30h] [rbp-160h] void *v9; // [rsp+38h] [rbp-158h] char *v10; // [rsp+48h] [rbp-148h] void *v11; // [rsp+50h] [rbp-140h] long long v12; // [rsp+60h] [rbp-130h] void *v13; // [rsp+68h] [rbp-128h] void *v14; // [rsp+78h] [rbp-118h] char *v15; // [rsp+88h] [rbp-108h] char v16; // [rsp+9Fh] [rbp-F1h] BYREF _BYTE v17[39]; // [rsp+A0h] [rbp-F0h] BYREF char v18; // [rsp+C7h] [rbp-C9h] BYREF _BYTE v19[39]; // [rsp+C8h] [rbp-C8h] BYREF char v20; // [rsp+EFh] [rbp-A1h] BYREF _BYTE v21[39]; // [rsp+F0h] [rbp-A0h] BYREF char v22; // [rsp+117h] [rbp-79h] BYREF _BYTE v23[36]; // [rsp+118h] [rbp-78h] BYREF char v24; // [rsp+14Fh] [rbp-41h] BYREF _BYTE v25[32]; // [rsp+150h] [rbp-40h] BYREF char *v26; // [rsp+170h] [rbp-20h] char v27; // [rsp+17Fh] [rbp-11h] long long v28; // [rsp+180h] [rbp-10h] long long v29; // [rsp+188h] [rbp-8h] v29 = a1; v28 = a2; v27 = a3 & 1; v15 = (char *)operator new(0x38uLL); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>(v25, "property", &v24); AST::Node::Node(v15, v25); v23[35] = 0; std::string::~string(v25); std::allocator<char>::~allocator(&v24); v26 = v15; v14 = (void *)operator new(0x38uLL); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>(v23, "PROPERTY_KEY", &v22); AST::Node::Node(v14, v23); v21[38] = 0; AST::Node::addChild(v15, v14); std::string::~string(v23); std::allocator<char>::~allocator(&v22); v12 = *(_QWORD *)std::vector<AST::Node *>::operator[](v26 + 32, 0LL); v13 = (void *)operator new(0x38uLL); AST::Node::Node(v13, v29); AST::Node::addChild(v12, v13); v10 = v26; v11 = (void *)operator new(0x38uLL); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>(v21, "=", &v20); AST::Node::Node(v11, v21); v19[38] = 0; AST::Node::addChild(v10, v11); std::string::~string(v21); std::allocator<char>::~allocator(&v20); if ( (v27 & 1) != 0 ) { v8 = v26; v9 = (void *)operator new(0x38uLL); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>(v19, "TEXT", &v18); AST::Node::Node(v9, v19); v17[38] = 0; AST::Node::addChild(v8, v9); std::string::~string(v19); std::allocator<char>::~allocator(&v18); } else { v6 = v26; v7 = (void *)operator new(0x38uLL); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>(v17, "NUMBER", &v16); AST::Node::Node(v7, v17); AST::Node::addChild(v6, v7); std::string::~string(v17); std::allocator<char>::~allocator(&v16); } v4 = *(_QWORD *)std::vector<AST::Node *>::operator[](v26 + 32, 2LL); v5 = (void *)operator new(0x38uLL); AST::Node::Node(v5, v28); AST::Node::addChild(v4, v5); return v26; }
makeNodeWithProperty: PUSH RBP MOV RBP,RSP SUB RSP,0x190 MOV AL,DL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI AND AL,0x1 MOV byte ptr [RBP + -0x11],AL MOV EDI,0x38 CALL 0x00105440 MOV qword ptr [RBP + -0x108],RAX MOV byte ptr [RBP + -0x55],0x1 LEA RDI,[RBP + -0x41] MOV qword ptr [RBP + -0x100],RDI CALL 0x00105770 MOV RDX,qword ptr [RBP + -0x100] LAB_00109446: LEA RSI,[0x10c055] LEA RDI,[RBP + -0x40] CALL 0x00105700 JMP 0x00109458 LAB_00109458: MOV RDI,qword ptr [RBP + -0x108] LEA RSI,[RBP + -0x40] CALL 0x001053d0 LAB_00109468: JMP 0x0010946a LAB_0010946a: MOV byte ptr [RBP + -0x55],0x0 LEA RDI,[RBP + -0x40] CALL 0x00105270 LEA RDI,[RBP + -0x41] CALL 0x001054b0 MOV RAX,qword ptr [RBP + -0x108] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x120],RAX MOV EDI,0x38 CALL 0x00105440 MOV qword ptr [RBP + -0x118],RAX MOV byte ptr [RBP + -0x7a],0x1 LEA RDI,[RBP + -0x79] MOV qword ptr [RBP + -0x110],RDI CALL 0x00105770 MOV RDX,qword ptr [RBP + -0x110] LAB_001094c2: LEA RSI,[0x10c05e] LEA RDI,[RBP + -0x78] CALL 0x00105700 JMP 0x001094d4 LAB_001094d4: MOV RDI,qword ptr [RBP + -0x118] LEA RSI,[RBP + -0x78] CALL 0x001053d0 JMP 0x001094e6 LAB_001094e6: MOV RSI,qword ptr [RBP + -0x118] MOV RDI,qword ptr [RBP + -0x120] MOV byte ptr [RBP + -0x7a],0x0 CALL 0x00105030 LAB_001094fd: JMP 0x001094ff LAB_001094ff: LEA RDI,[RBP + -0x78] CALL 0x00105270 LEA RDI,[RBP + -0x79] CALL 0x001054b0 MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x20 XOR EAX,EAX MOV ESI,EAX CALL 0x001057c0 MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x130],RAX MOV EDI,0x38 CALL 0x00105440 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RBP + -0x128],RAX MOV RSI,qword ptr [RBP + -0x8] LAB_00109547: CALL 0x001053d0 LAB_0010954c: JMP 0x0010954e LAB_0010954e: MOV RSI,qword ptr [RBP + -0x128] MOV RDI,qword ptr [RBP + -0x130] CALL 0x00105030 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x148],RAX MOV EDI,0x38 CALL 0x00105440 MOV qword ptr [RBP + -0x140],RAX MOV byte ptr [RBP + -0xa2],0x1 LEA RDI,[RBP + -0xa1] MOV qword ptr [RBP + -0x138],RDI CALL 0x00105770 MOV RDX,qword ptr [RBP + -0x138] LAB_0010959e: LEA RSI,[0x10c06b] LEA RDI,[RBP + -0xa0] CALL 0x00105700 JMP 0x001095b3 LAB_001095b3: MOV RDI,qword ptr [RBP + -0x140] LEA RSI,[RBP + -0xa0] CALL 0x001053d0 JMP 0x001095c8 LAB_001095c8: MOV RSI,qword ptr [RBP + -0x140] MOV RDI,qword ptr [RBP + -0x148] MOV byte ptr [RBP + -0xa2],0x0 CALL 0x00105030 LAB_001095e2: JMP 0x001095e4 LAB_001095e4: LEA RDI,[RBP + -0xa0] CALL 0x00105270 LEA RDI,[RBP + -0xa1] CALL 0x001054b0 TEST byte ptr [RBP + -0x11],0x1 JZ 0x00109802 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x160],RAX MOV EDI,0x38 CALL 0x00105440 MOV qword ptr [RBP + -0x158],RAX MOV byte ptr [RBP + -0xca],0x1 LEA RDI,[RBP + -0xc9] MOV qword ptr [RBP + -0x150],RDI CALL 0x00105770 MOV RDX,qword ptr [RBP + -0x150] LAB_00109643: LEA RSI,[0x10c06d] LEA RDI,[RBP + -0xc8] CALL 0x00105700 JMP 0x00109658 LAB_00109658: MOV RDI,qword ptr [RBP + -0x158] LEA RSI,[RBP + -0xc8] CALL 0x001053d0 JMP 0x0010966d LAB_0010966d: MOV RSI,qword ptr [RBP + -0x158] MOV RDI,qword ptr [RBP + -0x160] MOV byte ptr [RBP + -0xca],0x0 CALL 0x00105030 LAB_00109687: JMP 0x00109689 LAB_00109689: LEA RDI,[RBP + -0xc8] CALL 0x00105270 LEA RDI,[RBP + -0xc9] CALL 0x001054b0 JMP 0x001098ef LAB_00109802: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x178],RAX MOV EDI,0x38 CALL 0x00105440 MOV qword ptr [RBP + -0x170],RAX MOV byte ptr [RBP + -0xf2],0x1 LEA RDI,[RBP + -0xf1] MOV qword ptr [RBP + -0x168],RDI CALL 0x00105770 MOV RDX,qword ptr [RBP + -0x168] LAB_0010983f: LEA RSI,[0x10c072] LEA RDI,[RBP + -0xf0] CALL 0x00105700 JMP 0x00109854 LAB_00109854: MOV RDI,qword ptr [RBP + -0x170] LEA RSI,[RBP + -0xf0] CALL 0x001053d0 JMP 0x00109869 LAB_00109869: MOV RSI,qword ptr [RBP + -0x170] MOV RDI,qword ptr [RBP + -0x178] MOV byte ptr [RBP + -0xf2],0x0 CALL 0x00105030 LAB_00109883: JMP 0x00109885 LAB_00109885: LEA RDI,[RBP + -0xf0] CALL 0x00105270 LEA RDI,[RBP + -0xf1] CALL 0x001054b0 JMP 0x001098ef LAB_001098ef: MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x20 MOV ESI,0x2 CALL 0x001057c0 MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x188],RAX MOV EDI,0x38 CALL 0x00105440 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RBP + -0x180],RAX MOV RSI,qword ptr [RBP + -0x10] LAB_00109926: CALL 0x001053d0 LAB_0010992b: JMP 0x0010992d LAB_0010992d: MOV RSI,qword ptr [RBP + -0x180] MOV RDI,qword ptr [RBP + -0x188] CALL 0x00105030 MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0x190 POP RBP RET
/* makeNodeWithProperty(std::__cxx11::string const&, std::__cxx11::string const&, bool) */ Node * makeNodeWithProperty(string *param_1,string *param_2,bool param_3) { Node *pNVar1; Node *pNVar2; int8 *puVar3; allocator local_f9; string local_f8 [38]; int1 local_d2; allocator local_d1; string local_d0 [38]; int1 local_aa; allocator local_a9; string local_a8 [38]; int1 local_82; allocator local_81; string local_80 [35]; int1 local_5d; allocator local_49; string local_48 [32]; Node *local_28; byte local_19; string *local_18; string *local_10; local_19 = param_3; local_18 = param_2; local_10 = param_1; pNVar1 = (Node *)operator_new(0x38); local_5d = 1; std::allocator<char>::allocator(); /* try { // try from 00109446 to 00109455 has its CatchHandler @ 001096a6 */ std::__cxx11::string::string<std::allocator<char>>(local_48,"property",&local_49); /* try { // try from 00109458 to 00109467 has its CatchHandler @ 001096b4 */ AST::Node::Node(pNVar1,local_48); local_5d = 0; std::__cxx11::string::~string(local_48); std::allocator<char>::~allocator((allocator<char> *)&local_49); local_28 = pNVar1; pNVar2 = (Node *)operator_new(0x38); local_82 = 1; std::allocator<char>::allocator(); /* try { // try from 001094c2 to 001094d1 has its CatchHandler @ 001096f0 */ std::__cxx11::string::string<std::allocator<char>>(local_80,"PROPERTY_KEY",&local_81); /* try { // try from 001094d4 to 001094fc has its CatchHandler @ 001096fe */ AST::Node::Node(pNVar2,local_80); local_82 = 0; AST::Node::addChild(pNVar1,pNVar2); std::__cxx11::string::~string(local_80); std::allocator<char>::~allocator((allocator<char> *)&local_81); puVar3 = (int8 *) std::vector<AST::Node*,std::allocator<AST::Node*>>::operator[] ((vector<AST::Node*,std::allocator<AST::Node*>> *)(local_28 + 0x20),0); pNVar1 = (Node *)*puVar3; pNVar2 = (Node *)operator_new(0x38); /* try { // try from 00109547 to 0010954b has its CatchHandler @ 0010973a */ AST::Node::Node(pNVar2,local_10); AST::Node::addChild(pNVar1,pNVar2); pNVar1 = local_28; pNVar2 = (Node *)operator_new(0x38); local_aa = 1; std::allocator<char>::allocator(); /* try { // try from 0010959e to 001095b0 has its CatchHandler @ 0010975c */ std::__cxx11::string::string<std::allocator<char>>(local_a8,"=",&local_a9); /* try { // try from 001095b3 to 001095e1 has its CatchHandler @ 0010976a */ AST::Node::Node(pNVar2,local_a8); local_aa = 0; AST::Node::addChild(pNVar1,pNVar2); std::__cxx11::string::~string(local_a8); std::allocator<char>::~allocator((allocator<char> *)&local_a9); pNVar1 = local_28; if ((local_19 & 1) == 0) { pNVar2 = (Node *)operator_new(0x38); std::allocator<char>::allocator(); /* try { // try from 0010983f to 00109851 has its CatchHandler @ 0010989f */ std::__cxx11::string::string<std::allocator<char>>(local_f8,"NUMBER",&local_f9); /* try { // try from 00109854 to 00109882 has its CatchHandler @ 001098ad */ AST::Node::Node(pNVar2,local_f8); AST::Node::addChild(pNVar1,pNVar2); std::__cxx11::string::~string(local_f8); std::allocator<char>::~allocator((allocator<char> *)&local_f9); } else { pNVar2 = (Node *)operator_new(0x38); local_d2 = 1; std::allocator<char>::allocator(); /* try { // try from 00109643 to 00109655 has its CatchHandler @ 001097af */ std::__cxx11::string::string<std::allocator<char>>(local_d0,"TEXT",&local_d1); /* try { // try from 00109658 to 00109686 has its CatchHandler @ 001097bd */ AST::Node::Node(pNVar2,local_d0); local_d2 = 0; AST::Node::addChild(pNVar1,pNVar2); std::__cxx11::string::~string(local_d0); std::allocator<char>::~allocator((allocator<char> *)&local_d1); } puVar3 = (int8 *) std::vector<AST::Node*,std::allocator<AST::Node*>>::operator[] ((vector<AST::Node*,std::allocator<AST::Node*>> *)(local_28 + 0x20),2); pNVar1 = (Node *)*puVar3; pNVar2 = (Node *)operator_new(0x38); /* try { // try from 00109926 to 0010992a has its CatchHandler @ 0010994d */ AST::Node::Node(pNVar2,local_18); AST::Node::addChild(pNVar1,pNVar2); return local_28; }
21,166
makeNodeWithProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
11AgReS1SoR11[P]Graph/Common/Retranslator/src/Retranslator.cpp
Node* makeNodeWithProperty(std::string const& key, std::string const& value, bool isText){ Node* property = new Node("property"); property->addChild(new Node("PROPERTY_KEY")); property->childNodes[0]->addChild(new Node(key)); property->addChild(new Node("=")); if (isText) property->addChild(new Node("TEXT")); else property->addChild(new Node("NUMBER")); property->childNodes[2]->addChild(new Node(value)); return property; }
O1
cpp
makeNodeWithProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %edx, %r15d movq %rsi, %rbx movq %rdi, %r13 movl $0x38, %edi callq 0x2170 movq %rax, %r12 movq %rax, %r14 leaq 0x18(%rsp), %rbp movq %rbp, -0x10(%rbp) leaq 0x12c2(%rip), %rsi # 0x6065 leaq 0x12c3(%rip), %rdx # 0x606d leaq 0x8(%rsp), %rdi callq 0x2080 leaq 0x10(%r12), %rax movq %rax, (%r14) movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx addq %rsi, %rdx movq %r14, %rdi callq 0x2090 movq %rbx, 0x30(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%r14) movq $0x0, 0x30(%r14) movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x4dfd movq 0x18(%rsp), %rsi incq %rsi callq 0x2180 movl %r15d, 0x2c(%rsp) movl $0x38, %edi callq 0x2170 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %rbp, (%rdi) leaq 0x1250(%rip), %rsi # 0x606e leaq 0x1255(%rip), %rdx # 0x607a callq 0x2080 movq %rbx, %rax addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx addq %rsi, %rdx movb $0x1, %r15b movq %rbx, %rdi callq 0x2090 xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rbx) movq $0x0, 0x30(%rbx) xorl %r15d, %r15d movq %r14, %rdi movq %rbx, %rsi callq 0x2030 addq $0x20, %r12 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x4e84 movq 0x18(%rsp), %rsi incq %rsi callq 0x2180 movq (%r12), %rax movq (%rax), %r15 movl $0x38, %edi callq 0x2170 movq %rax, %rbx addq $0x10, %rax movq %rax, (%rbx) movq (%r13), %rsi movq 0x8(%r13), %rdx addq %rsi, %rdx movq %rbx, %rdi callq 0x2090 xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rbx) movq $0x0, 0x30(%rbx) movq %r15, %rdi movq %rbx, %rsi callq 0x2030 movl $0x38, %edi callq 0x2170 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %rbp, (%rdi) leaq 0x1193(%rip), %rsi # 0x607b leaq 0x118d(%rip), %rdx # 0x607c callq 0x2080 movq %rbx, %rax addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx addq %rsi, %rdx movb $0x1, %r15b movq %rbx, %rdi callq 0x2090 xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rbx) movq $0x0, 0x30(%rbx) xorl %r15d, %r15d movq %r14, %rdi movq %rbx, %rsi callq 0x2030 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x4f4a movq 0x18(%rsp), %rsi incq %rsi callq 0x2180 movl $0x38, %edi callq 0x2170 movq %rax, %rbx cmpb $0x0, 0x2c(%rsp) je 0x4fba leaq 0x8(%rsp), %rdi movq %rbp, (%rdi) leaq 0x1110(%rip), %rsi # 0x607d leaq 0x110d(%rip), %rdx # 0x6081 callq 0x2080 movq %rbx, %rax addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx addq %rsi, %rdx movb $0x1, %r15b movq %rbx, %rdi callq 0x2090 xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rbx) movq $0x0, 0x30(%rbx) xorl %r15d, %r15d movq %r14, %rdi movq %rbx, %rsi callq 0x2030 jmp 0x5014 leaq 0x8(%rsp), %rdi movq %rbp, (%rdi) leaq 0x10b9(%rip), %rsi # 0x6082 leaq 0x10b8(%rip), %rdx # 0x6088 callq 0x2080 movq %rbx, %rax addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx addq %rsi, %rdx movb $0x1, %r15b movq %rbx, %rdi callq 0x2090 xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rbx) movq $0x0, 0x30(%rbx) xorl %r15d, %r15d movq %r14, %rdi movq %rbx, %rsi callq 0x2030 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x502b movq 0x18(%rsp), %rsi incq %rsi callq 0x2180 movq (%r12), %rax movq 0x10(%rax), %r15 movl $0x38, %edi callq 0x2170 movq %rax, %rbx addq $0x10, %rax movq %rax, (%rbx) movq 0x30(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx addq %rsi, %rdx movq %rbx, %rdi callq 0x2090 xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rbx) movq $0x0, 0x30(%rbx) movq %r15, %rdi movq %rbx, %rsi callq 0x2030 movq %r14, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x509b jmp 0x509b jmp 0x5096 jmp 0x50c9 jmp 0x50c9 jmp 0x509b movq %rax, %r12 jmp 0x50e8 movq %rax, %r12 movb $0x1, %r15b jmp 0x50e3 movq %rax, %r12 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x50c2 movq 0x18(%rsp), %rsi incq %rsi callq 0x2180 jmp 0x50c2 movq %rax, %r12 movq %r14, %rbx jmp 0x50e8 jmp 0x50c9 movq %rax, %r12 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x50e3 movq 0x18(%rsp), %rsi incq %rsi callq 0x2180 testb %r15b, %r15b je 0x50f5 movl $0x38, %esi movq %rbx, %rdi callq 0x2180 movq %r12, %rdi callq 0x2250
_Z20makeNodeWithPropertyRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_b: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r15d, edx mov rbx, rsi mov r13, rdi mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov r12, rax mov r14, rax lea rbp, [rsp+68h+var_50] mov [rbp-10h], rbp lea rsi, aProperty; "property" lea rdx, aProperty+8; "" lea rdi, [rsp+68h+var_60] 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 rax, [r12+10h] mov [r14], rax mov rsi, [rsp+68h+var_60] mov rdx, [rsp+68h+var_58] add rdx, rsi mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov [rsp+68h+var_38], rbx xorps xmm0, xmm0 movups xmmword ptr [r14+20h], xmm0 mov qword ptr [r14+30h], 0 mov rdi, [rsp+68h+var_60]; void * cmp rdi, rbp jz short loc_4DFD mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4DFD: mov [rsp+68h+var_3C], r15d mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax lea rdi, [rsp+68h+var_60] mov [rdi], rbp lea rsi, aPropertyKey; "PROPERTY_KEY" lea rdx, aPropertyKey+0Ch; "" 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, rbx add rax, 10h mov [rbx], rax mov rsi, [rsp+68h+var_60] mov rdx, [rsp+68h+var_58] add rdx, rsi mov r15b, 1 mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) xorps xmm0, xmm0 movups xmmword ptr [rbx+20h], xmm0 mov qword ptr [rbx+30h], 0 xor r15d, r15d mov rdi, r14 mov rsi, rbx call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) add r12, 20h ; ' ' mov rdi, [rsp+68h+var_60]; void * cmp rdi, rbp jz short loc_4E84 mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4E84: mov rax, [r12] mov r15, [rax] mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax add rax, 10h mov [rbx], rax mov rsi, [r13+0] mov rdx, [r13+8] add rdx, rsi mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) xorps xmm0, xmm0 movups xmmword ptr [rbx+20h], xmm0 mov qword ptr [rbx+30h], 0 mov rdi, r15 mov rsi, rbx call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax lea rdi, [rsp+68h+var_60] mov [rdi], rbp lea rsi, asc_607B; "=" lea rdx, asc_607B+1; "" 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, rbx add rax, 10h mov [rbx], rax mov rsi, [rsp+68h+var_60] mov rdx, [rsp+68h+var_58] add rdx, rsi mov r15b, 1 mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) xorps xmm0, xmm0 movups xmmword ptr [rbx+20h], xmm0 mov qword ptr [rbx+30h], 0 xor r15d, r15d mov rdi, r14 mov rsi, rbx call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) mov rdi, [rsp+68h+var_60]; void * cmp rdi, rbp jz short loc_4F4A mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4F4A: mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax cmp byte ptr [rsp+68h+var_3C], 0 jz short loc_4FBA lea rdi, [rsp+68h+var_60] mov [rdi], rbp lea rsi, aText; "TEXT" lea rdx, aText+4; "" 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, rbx add rax, 10h mov [rbx], rax mov rsi, [rsp+68h+var_60] mov rdx, [rsp+68h+var_58] add rdx, rsi mov r15b, 1 mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) xorps xmm0, xmm0 movups xmmword ptr [rbx+20h], xmm0 mov qword ptr [rbx+30h], 0 xor r15d, r15d mov rdi, r14 mov rsi, rbx call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) jmp short loc_5014 loc_4FBA: lea rdi, [rsp+68h+var_60] mov [rdi], rbp lea rsi, aNumber; "NUMBER" lea rdx, aNumber+6; "" 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, rbx add rax, 10h mov [rbx], rax mov rsi, [rsp+68h+var_60] mov rdx, [rsp+68h+var_58] add rdx, rsi mov r15b, 1 mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) xorps xmm0, xmm0 movups xmmword ptr [rbx+20h], xmm0 mov qword ptr [rbx+30h], 0 xor r15d, r15d mov rdi, r14 mov rsi, rbx call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) loc_5014: mov rdi, [rsp+68h+var_60]; void * cmp rdi, rbp jz short loc_502B mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_502B: mov rax, [r12] mov r15, [rax+10h] mov edi, 38h ; '8'; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax add rax, 10h mov [rbx], rax mov rax, [rsp+68h+var_38] mov rsi, [rax] mov rdx, [rax+8] add rdx, rsi mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) xorps xmm0, xmm0 movups xmmword ptr [rbx+20h], xmm0 mov qword ptr [rbx+30h], 0 mov rdi, r15 mov rsi, rbx call __ZN3AST4Node8addChildEPS0_; AST::Node::addChild(AST::Node*) mov rax, r14 add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_509B jmp short loc_509B jmp short loc_5096 jmp short loc_50C9 jmp short loc_50C9 jmp short loc_509B loc_5096: mov r12, rax jmp short loc_50E8 loc_509B: mov r12, rax mov r15b, 1 jmp short loc_50E3 mov r12, rax mov rdi, [rsp+arg_0]; void * cmp rdi, rbp jz short loc_50C2 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_50C2 mov r12, rax loc_50C2: mov rbx, r14 jmp short loc_50E8 jmp short $+2 loc_50C9: mov r12, rax mov rdi, [rsp+arg_0]; void * cmp rdi, rbp jz short loc_50E3 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_50E3: test r15b, r15b jz short loc_50F5 loc_50E8: mov esi, 38h ; '8'; unsigned __int64 mov rdi, rbx; void * call __ZdlPvm; operator delete(void *,ulong) loc_50F5: mov rdi, r12 call __Unwind_Resume
long long makeNodeWithProperty(_QWORD *a1, _QWORD *a2, int a3) { long long v4; // r12 long long v5; // r14 long long v6; // rbx long long **v7; // r12 long long v8; // r15 long long v9; // rbx long long v10; // rbx long long v11; // rbx long long v12; // r15 long long v13; // rbx void *v15; // [rsp+8h] [rbp-60h] BYREF long long v16; // [rsp+10h] [rbp-58h] _QWORD v17[2]; // [rsp+18h] [rbp-50h] BYREF int v18; // [rsp+2Ch] [rbp-3Ch] _QWORD *v19; // [rsp+30h] [rbp-38h] v4 = operator new(0x38uLL); v5 = v4; v15 = v17; std::string::_M_construct<char const*>(&v15, "property", ""); *(_QWORD *)v4 = v4 + 16; std::string::_M_construct<char *>(v4, v15, (char *)v15 + v16); v19 = a2; *(_OWORD *)(v4 + 32) = 0LL; *(_QWORD *)(v4 + 48) = 0LL; if ( v15 != v17 ) operator delete(v15, v17[0] + 1LL); v18 = a3; v6 = operator new(0x38uLL); v15 = v17; std::string::_M_construct<char const*>(&v15, "PROPERTY_KEY", ""); *(_QWORD *)v6 = v6 + 16; std::string::_M_construct<char *>(v6, v15, (char *)v15 + v16); *(_OWORD *)(v6 + 32) = 0LL; *(_QWORD *)(v6 + 48) = 0LL; AST::Node::addChild(v4, v6); v7 = (long long **)(v4 + 32); if ( v15 != v17 ) operator delete(v15, v17[0] + 1LL); v8 = **v7; v9 = operator new(0x38uLL); *(_QWORD *)v9 = v9 + 16; std::string::_M_construct<char *>(v9, *a1, *a1 + a1[1]); *(_OWORD *)(v9 + 32) = 0LL; *(_QWORD *)(v9 + 48) = 0LL; AST::Node::addChild(v8, v9); v10 = operator new(0x38uLL); v15 = v17; std::string::_M_construct<char const*>(&v15, "=", ""); *(_QWORD *)v10 = v10 + 16; std::string::_M_construct<char *>(v10, v15, (char *)v15 + v16); *(_OWORD *)(v10 + 32) = 0LL; *(_QWORD *)(v10 + 48) = 0LL; AST::Node::addChild(v5, v10); if ( v15 != v17 ) operator delete(v15, v17[0] + 1LL); v11 = operator new(0x38uLL); v15 = v17; if ( (_BYTE)v18 ) std::string::_M_construct<char const*>(&v15, "TEXT", ""); else std::string::_M_construct<char const*>(&v15, "NUMBER", ""); *(_QWORD *)v11 = v11 + 16; std::string::_M_construct<char *>(v11, v15, (char *)v15 + v16); *(_OWORD *)(v11 + 32) = 0LL; *(_QWORD *)(v11 + 48) = 0LL; AST::Node::addChild(v5, v11); if ( v15 != v17 ) operator delete(v15, v17[0] + 1LL); v12 = (*v7)[2]; v13 = operator new(0x38uLL); *(_QWORD *)v13 = v13 + 16; std::string::_M_construct<char *>(v13, *v19, *v19 + v19[1]); *(_OWORD *)(v13 + 32) = 0LL; *(_QWORD *)(v13 + 48) = 0LL; AST::Node::addChild(v12, v13); return v5; }
makeNodeWithProperty: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R15D,EDX MOV RBX,RSI MOV R13,RDI MOV EDI,0x38 CALL 0x00102170 MOV R12,RAX MOV R14,RAX LEA RBP,[RSP + 0x18] MOV qword ptr [RBP + -0x10],RBP LAB_00104d9c: LEA RSI,[0x106065] LEA RDX,[0x10606d] LEA RDI,[RSP + 0x8] CALL 0x00102080 LEA RAX,[R12 + 0x10] MOV qword ptr [R14],RAX MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] ADD RDX,RSI LAB_00104dc9: MOV RDI,R14 CALL 0x00102090 LAB_00104dd1: MOV qword ptr [RSP + 0x30],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x20],XMM0 MOV qword ptr [R14 + 0x30],0x0 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x00104dfd MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00102180 LAB_00104dfd: MOV dword ptr [RSP + 0x2c],R15D MOV EDI,0x38 CALL 0x00102170 MOV RBX,RAX LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],RBP LAB_00104e17: LEA RSI,[0x10606e] LEA RDX,[0x10607a] CALL 0x00102080 MOV RAX,RBX ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] ADD RDX,RSI MOV R15B,0x1 LAB_00104e44: MOV RDI,RBX CALL 0x00102090 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOV qword ptr [RBX + 0x30],0x0 XOR R15D,R15D MOV RDI,R14 MOV RSI,RBX CALL 0x00102030 LAB_00104e69: ADD R12,0x20 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x00104e84 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00102180 LAB_00104e84: MOV RAX,qword ptr [R12] MOV R15,qword ptr [RAX] MOV EDI,0x38 CALL 0x00102170 MOV RBX,RAX ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RSI,qword ptr [R13] MOV RDX,qword ptr [R13 + 0x8] ADD RDX,RSI LAB_00104eaa: MOV RDI,RBX CALL 0x00102090 LAB_00104eb2: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOV qword ptr [RBX + 0x30],0x0 MOV RDI,R15 MOV RSI,RBX CALL 0x00102030 MOV EDI,0x38 CALL 0x00102170 MOV RBX,RAX LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],RBP LAB_00104ee1: LEA RSI,[0x10607b] LEA RDX,[0x10607c] CALL 0x00102080 MOV RAX,RBX ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] ADD RDX,RSI MOV R15B,0x1 LAB_00104f0e: MOV RDI,RBX CALL 0x00102090 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOV qword ptr [RBX + 0x30],0x0 XOR R15D,R15D MOV RDI,R14 MOV RSI,RBX CALL 0x00102030 LAB_00104f33: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x00104f4a MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00102180 LAB_00104f4a: MOV EDI,0x38 CALL 0x00102170 MOV RBX,RAX CMP byte ptr [RSP + 0x2c],0x0 JZ 0x00104fba LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],RBP LAB_00104f66: LEA RSI,[0x10607d] LEA RDX,[0x106081] CALL 0x00102080 MOV RAX,RBX ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] ADD RDX,RSI MOV R15B,0x1 LAB_00104f93: MOV RDI,RBX CALL 0x00102090 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOV qword ptr [RBX + 0x30],0x0 XOR R15D,R15D MOV RDI,R14 MOV RSI,RBX CALL 0x00102030 JMP 0x00105014 LAB_00104fba: LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],RBP LAB_00104fc2: LEA RSI,[0x106082] LEA RDX,[0x106088] CALL 0x00102080 MOV RAX,RBX ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] ADD RDX,RSI MOV R15B,0x1 LAB_00104fef: MOV RDI,RBX CALL 0x00102090 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOV qword ptr [RBX + 0x30],0x0 XOR R15D,R15D MOV RDI,R14 MOV RSI,RBX CALL 0x00102030 LAB_00105014: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x0010502b MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00102180 LAB_0010502b: MOV RAX,qword ptr [R12] MOV R15,qword ptr [RAX + 0x10] MOV EDI,0x38 CALL 0x00102170 MOV RBX,RAX ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RAX,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] ADD RDX,RSI LAB_00105056: MOV RDI,RBX CALL 0x00102090 LAB_0010505e: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOV qword ptr [RBX + 0x30],0x0 MOV RDI,R15 MOV RSI,RBX CALL 0x00102030 MOV RAX,R14 ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* makeNodeWithProperty(std::__cxx11::string const&, std::__cxx11::string const&, bool) */ Node * makeNodeWithProperty(string *param_1,string *param_2,bool param_3) { Node *this; Node *pNVar1; Node *pNVar2; int7 in_register_00000011; long *local_60; long local_58; long local_50 [2]; int4 local_3c; string *local_38; this = (Node *)operator_new(0x38); /* try { // try from 00104d9c to 00104db3 has its CatchHandler @ 001050bf */ local_60 = local_50; std::__cxx11::string::_M_construct<char_const*>(&local_60,"property",""); *(Node **)this = this + 0x10; /* try { // try from 00104dc9 to 00104dd0 has its CatchHandler @ 001050a3 */ std::__cxx11::string::_M_construct<char*>(this,local_60,local_58 + (long)local_60); *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; local_38 = param_2; if (local_60 != local_50) { operator_delete(local_60,local_50[0] + 1); } local_3c = (int4)CONCAT71(in_register_00000011,param_3); pNVar1 = (Node *)operator_new(0x38); local_60 = local_50; /* try { // try from 00104e17 to 00104e29 has its CatchHandler @ 0010509b */ std::__cxx11::string::_M_construct<char_const*>(&local_60,"PROPERTY_KEY",""); *(Node **)pNVar1 = pNVar1 + 0x10; /* try { // try from 00104e44 to 00104e68 has its CatchHandler @ 001050c9 */ std::__cxx11::string::_M_construct<char*>(pNVar1,local_60,local_58 + (long)local_60); *(int8 *)(pNVar1 + 0x20) = 0; *(int8 *)(pNVar1 + 0x28) = 0; *(int8 *)(pNVar1 + 0x30) = 0; AST::Node::addChild(this,pNVar1); if (local_60 != local_50) { operator_delete(local_60,local_50[0] + 1); } pNVar1 = (Node *)**(int8 **)(this + 0x20); pNVar2 = (Node *)operator_new(0x38); *(Node **)pNVar2 = pNVar2 + 0x10; /* try { // try from 00104eaa to 00104eb1 has its CatchHandler @ 00105096 */ std::__cxx11::string::_M_construct<char*> (pNVar2,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); *(int8 *)(pNVar2 + 0x20) = 0; *(int8 *)(pNVar2 + 0x28) = 0; *(int8 *)(pNVar2 + 0x30) = 0; AST::Node::addChild(pNVar1,pNVar2); pNVar1 = (Node *)operator_new(0x38); local_60 = local_50; /* try { // try from 00104ee1 to 00104ef3 has its CatchHandler @ 00105094 */ std::__cxx11::string::_M_construct<char_const*>(&local_60,&DAT_0010607b,&DAT_0010607c); *(Node **)pNVar1 = pNVar1 + 0x10; /* try { // try from 00104f0e to 00104f32 has its CatchHandler @ 001050c7 */ std::__cxx11::string::_M_construct<char*>(pNVar1,local_60,local_58 + (long)local_60); *(int8 *)(pNVar1 + 0x20) = 0; *(int8 *)(pNVar1 + 0x28) = 0; *(int8 *)(pNVar1 + 0x30) = 0; AST::Node::addChild(this,pNVar1); if (local_60 != local_50) { operator_delete(local_60,local_50[0] + 1); } pNVar1 = (Node *)operator_new(0x38); if ((char)local_3c == '\0') { local_60 = local_50; /* try { // try from 00104fc2 to 00104fd4 has its CatchHandler @ 0010508a */ std::__cxx11::string::_M_construct<char_const*>(&local_60,"NUMBER",""); *(Node **)pNVar1 = pNVar1 + 0x10; /* try { // try from 00104fef to 00105013 has its CatchHandler @ 00105090 */ std::__cxx11::string::_M_construct<char*>(pNVar1,local_60,local_58 + (long)local_60); *(int8 *)(pNVar1 + 0x20) = 0; *(int8 *)(pNVar1 + 0x28) = 0; *(int8 *)(pNVar1 + 0x30) = 0; AST::Node::addChild(this,pNVar1); } else { local_60 = local_50; /* try { // try from 00104f66 to 00104f78 has its CatchHandler @ 0010508c */ std::__cxx11::string::_M_construct<char_const*>(&local_60,&DAT_0010607d,&DAT_00106081); *(Node **)pNVar1 = pNVar1 + 0x10; /* try { // try from 00104f93 to 00104fb7 has its CatchHandler @ 00105092 */ std::__cxx11::string::_M_construct<char*>(pNVar1,local_60,local_58 + (long)local_60); *(int8 *)(pNVar1 + 0x20) = 0; *(int8 *)(pNVar1 + 0x28) = 0; *(int8 *)(pNVar1 + 0x30) = 0; AST::Node::addChild(this,pNVar1); } if (local_60 != local_50) { operator_delete(local_60,local_50[0] + 1); } pNVar1 = *(Node **)(*(long *)(this + 0x20) + 0x10); pNVar2 = (Node *)operator_new(0x38); *(Node **)pNVar2 = pNVar2 + 0x10; /* try { // try from 00105056 to 0010505d has its CatchHandler @ 0010508e */ std::__cxx11::string::_M_construct<char*> (pNVar2,*(long *)local_38,*(long *)(local_38 + 8) + *(long *)local_38); *(int8 *)(pNVar2 + 0x20) = 0; *(int8 *)(pNVar2 + 0x28) = 0; *(int8 *)(pNVar2 + 0x30) = 0; AST::Node::addChild(pNVar1,pNVar2); return this; }
21,167
mysql_stmt_reset_start
eloqsql/libmariadb/libmariadb/mariadb_async.c
int STDCALL mysql_stmt_reset_start(my_bool *ret, MYSQL_STMT *stmt) { MK_ASYNC_START_BODY( mysql_stmt_reset, stmt->mysql, { WIN_SET_NONBLOCKING(stmt->mysql) parms.stmt= stmt; }, TRUE, r_my_bool, /* If stmt->mysql==NULL then we will not block so can call directly. */ if (!stmt->mysql) { *ret= mysql_stmt_reset(stmt); return 0; }) }
O0
c
mysql_stmt_reset_start: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rax cmpq $0x0, 0x38(%rax) jne 0x3daa8 movq -0x18(%rbp), %rdi callq 0x2c4a0 movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) movl $0x0, -0x4(%rbp) jmp 0x3dbb6 movq -0x18(%rbp), %rax movq 0x38(%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movb $0x1, 0x14(%rax) movq -0x28(%rbp), %rdi addq $0x38, %rdi leaq 0xe2(%rip), %rsi # 0x3dbc0 leaq -0x30(%rbp), %rdx callq 0x3f430 movl %eax, -0x1c(%rbp) movq -0x28(%rbp), %rax movb $0x0, 0x15(%rax) movq -0x28(%rbp), %rax movb $0x0, 0x14(%rax) cmpl $0x0, -0x1c(%rbp) jle 0x3db16 movq -0x28(%rbp), %rax movb $0x1, 0x15(%rax) movq -0x28(%rbp), %rax movl (%rax), %eax movl %eax, -0x4(%rbp) jmp 0x3dbb6 cmpl $0x0, -0x1c(%rbp) jge 0x3dba2 jmp 0x3db22 movq -0x18(%rbp), %rax movq 0x38(%rax), %rax movl $0x7d8, 0x90(%rax) # imm = 0x7D8 movq -0x18(%rbp), %rax movq 0x38(%rax), %rdi addq $0x297, %rdi # imm = 0x297 leaq 0x223c6(%rip), %rax # 0x5ff10 movq (%rax), %rsi movl $0x5, %edx callq 0x13210 movq -0x18(%rbp), %rax movq 0x38(%rax), %rax movb $0x0, 0x29c(%rax) movq -0x18(%rbp), %rax movq 0x38(%rax), %rdi addq $0x97, %rdi leaq 0x223a4(%rip), %rax # 0x5ff20 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13210 movq -0x18(%rbp), %rax movq 0x38(%rax), %rax movb $0x0, 0x296(%rax) movq -0x10(%rbp), %rax movb $0x1, (%rax) jmp 0x3dbaf movq -0x28(%rbp), %rax movb 0x8(%rax), %cl movq -0x10(%rbp), %rax movb %cl, (%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nop
mysql_stmt_reset_start: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_18] cmp qword ptr [rax+38h], 0 jnz short loc_3DAA8 mov rdi, [rbp+var_18] call mysql_stmt_reset mov cl, al mov rax, [rbp+var_10] mov [rax], cl mov [rbp+var_4], 0 jmp loc_3DBB6 loc_3DAA8: mov rax, [rbp+var_18] mov rax, [rax+38h] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_30], rax mov rax, [rbp+var_28] mov byte ptr [rax+14h], 1 mov rdi, [rbp+var_28] add rdi, 38h ; '8' lea rsi, mysql_stmt_reset_start_internal lea rdx, [rbp+var_30] call my_context_spawn mov [rbp+var_1C], eax mov rax, [rbp+var_28] mov byte ptr [rax+15h], 0 mov rax, [rbp+var_28] mov byte ptr [rax+14h], 0 cmp [rbp+var_1C], 0 jle short loc_3DB16 mov rax, [rbp+var_28] mov byte ptr [rax+15h], 1 mov rax, [rbp+var_28] mov eax, [rax] mov [rbp+var_4], eax jmp loc_3DBB6 loc_3DB16: cmp [rbp+var_1C], 0 jge loc_3DBA2 jmp short $+2 loc_3DB22: mov rax, [rbp+var_18] mov rax, [rax+38h] mov dword ptr [rax+90h], 7D8h mov rax, [rbp+var_18] mov rdi, [rax+38h] add rdi, 297h lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_18] mov rax, [rax+38h] mov byte ptr [rax+29Ch], 0 mov rax, [rbp+var_18] mov rdi, [rax+38h] add rdi, 97h lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov rax, [rbp+var_18] mov rax, [rax+38h] mov byte ptr [rax+296h], 0 mov rax, [rbp+var_10] mov byte ptr [rax], 1 jmp short loc_3DBAF loc_3DBA2: mov rax, [rbp+var_28] mov cl, [rax+8] mov rax, [rbp+var_10] mov [rax], cl loc_3DBAF: mov [rbp+var_4], 0 loc_3DBB6: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long mysql_stmt_reset_start(char *a1, long long a2) { long long v3; // [rsp+0h] [rbp-30h] BYREF _BYTE *v4; // [rsp+8h] [rbp-28h] int v5; // [rsp+14h] [rbp-1Ch] long long v6; // [rsp+18h] [rbp-18h] char *v7; // [rsp+20h] [rbp-10h] v7 = a1; v6 = a2; if ( *(_QWORD *)(a2 + 56) ) { v4 = *(_BYTE **)(*(_QWORD *)(*(_QWORD *)(v6 + 56) + 1152LL) + 40LL); v3 = v6; v4[20] = 1; v5 = my_context_spawn(v4 + 56, mysql_stmt_reset_start_internal, &v3); v4[21] = 0; v4[20] = 0; if ( v5 <= 0 ) { if ( v5 >= 0 ) { *v7 = v4[8]; } else { *(_DWORD *)(*(_QWORD *)(v6 + 56) + 144LL) = 2008; strncpy(*(_QWORD *)(v6 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(*(_QWORD *)(v6 + 56) + 668LL) = 0; strncpy(*(_QWORD *)(v6 + 56) + 151LL, client_errors[8], 511LL); *(_BYTE *)(*(_QWORD *)(v6 + 56) + 662LL) = 0; *v7 = 1; } return 0; } else { v4[21] = 1; return *(unsigned int *)v4; } } else { *v7 = mysql_stmt_reset(v6); return 0; } }
mysql_stmt_reset_start: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0x38],0x0 JNZ 0x0013daa8 MOV RDI,qword ptr [RBP + -0x18] CALL 0x0012c4a0 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x0 JMP 0x0013dbb6 LAB_0013daa8: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x14],0x1 MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x38 LEA RSI,[0x13dbc0] LEA RDX,[RBP + -0x30] CALL 0x0013f430 MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x15],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x14],0x0 CMP dword ptr [RBP + -0x1c],0x0 JLE 0x0013db16 MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x15],0x1 MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x0013dbb6 LAB_0013db16: CMP dword ptr [RBP + -0x1c],0x0 JGE 0x0013dba2 JMP 0x0013db22 LAB_0013db22: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] MOV dword ptr [RAX + 0x90],0x7d8 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x38] ADD RDI,0x297 LEA RAX,[0x15ff10] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] MOV byte ptr [RAX + 0x29c],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x38] ADD RDI,0x97 LEA RAX,[0x15ff20] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] MOV byte ptr [RAX + 0x296],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],0x1 JMP 0x0013dbaf LAB_0013dba2: MOV RAX,qword ptr [RBP + -0x28] MOV CL,byte ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL LAB_0013dbaf: MOV dword ptr [RBP + -0x4],0x0 LAB_0013dbb6: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 mysql_stmt_reset_start(int1 *param_1,long param_2) { int1 uVar1; long local_38; int4 *local_30; int local_24; long local_20; int1 *local_18; int4 local_c; local_20 = param_2; local_18 = param_1; if (*(long *)(param_2 + 0x38) == 0) { uVar1 = mysql_stmt_reset(param_2); *local_18 = uVar1; local_c = 0; } else { local_30 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28); *(int1 *)(local_30 + 5) = 1; local_38 = param_2; local_24 = my_context_spawn(local_30 + 0xe,mysql_stmt_reset_start_internal,&local_38); *(int1 *)((long)local_30 + 0x15) = 0; *(int1 *)(local_30 + 5) = 0; if (local_24 < 1) { if (local_24 < 0) { *(int4 *)(*(long *)(local_20 + 0x38) + 0x90) = 0x7d8; strncpy((char *)(*(long *)(local_20 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(*(long *)(local_20 + 0x38) + 0x29c) = 0; strncpy((char *)(*(long *)(local_20 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_0015ff60, 0x1ff); *(int1 *)(*(long *)(local_20 + 0x38) + 0x296) = 0; *local_18 = 1; } else { *local_18 = *(int1 *)(local_30 + 2); } local_c = 0; } else { *(int1 *)((long)local_30 + 0x15) = 1; local_c = *local_30; } } return local_c; }
21,168
my_fcvt
eloqsql/strings/dtoa.c
size_t my_fcvt(double x, int precision, char *to, my_bool *error) { int decpt, sign, len, i; char *res, *src, *end, *dst= to; char buf[DTOA_BUFF_SIZE]; DBUG_ASSERT(precision >= 0 && precision < DECIMAL_NOT_SPECIFIED && to != NULL); res= dtoa(x, 5, precision, &decpt, &sign, &end, buf, sizeof(buf)); if (decpt == DTOA_OVERFLOW) { dtoa_free(res, buf, sizeof(buf)); *to++= '0'; *to= '\0'; if (error != NULL) *error= TRUE; return 1; } src= res; len= (int)(end - src); if (sign) *dst++= '-'; if (decpt <= 0) { *dst++= '0'; *dst++= '.'; for (i= decpt; i < 0; i++) *dst++= '0'; } for (i= 1; i <= len; i++) { *dst++= *src++; if (i == decpt && i < len) *dst++= '.'; } while (i++ <= decpt) *dst++= '0'; if (precision > 0) { if (len <= decpt) *dst++= '.'; for (i= precision - MY_MAX(0, (len - decpt)); i > 0; i--) *dst++= '0'; } *dst= '\0'; if (error != NULL) *error= FALSE; dtoa_free(res, buf, sizeof(buf)); return dst - to; }
O0
c
my_fcvt: pushq %rbp movq %rsp, %rbp subq $0xee0, %rsp # imm = 0xEE0 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movsd %xmm0, -0xe80(%rbp) movl %edi, -0xe84(%rbp) movq %rsi, -0xe90(%rbp) movq %rdx, -0xe98(%rbp) movq -0xe90(%rbp), %rax movq %rax, -0xec8(%rbp) jmp 0x70594 movsd -0xe80(%rbp), %xmm0 movl -0xe84(%rbp), %esi leaq -0xe70(%rbp), %r9 movl $0x5, %edi leaq -0xe9c(%rbp), %rdx leaq -0xea0(%rbp), %rcx leaq -0xec0(%rbp), %r8 movq $0xe60, (%rsp) # imm = 0xE60 callq 0x70900 movq %rax, -0xeb0(%rbp) cmpl $0x270f, -0xe9c(%rbp) # imm = 0x270F jne 0x70641 movq -0xeb0(%rbp), %rdi leaq -0xe70(%rbp), %rsi movl $0xe60, %edx # imm = 0xE60 callq 0x71f50 movq -0xe90(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xe90(%rbp) movb $0x30, (%rax) movq -0xe90(%rbp), %rax movb $0x0, (%rax) cmpq $0x0, -0xe98(%rbp) je 0x70631 movq -0xe98(%rbp), %rax movb $0x1, (%rax) movq $0x1, -0xe78(%rbp) jmp 0x708c8 movq -0xeb0(%rbp), %rax movq %rax, -0xeb8(%rbp) movq -0xec0(%rbp), %rax movq -0xeb8(%rbp), %rcx subq %rcx, %rax movl %eax, -0xea4(%rbp) cmpl $0x0, -0xea0(%rbp) je 0x70687 movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x2d, (%rax) cmpl $0x0, -0xe9c(%rbp) jg 0x70700 movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x30, (%rax) movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x2e, (%rax) movl -0xe9c(%rbp), %eax movl %eax, -0xea8(%rbp) cmpl $0x0, -0xea8(%rbp) jge 0x706fe movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x30, (%rax) movl -0xea8(%rbp), %eax addl $0x1, %eax movl %eax, -0xea8(%rbp) jmp 0x706cc jmp 0x70700 movl $0x1, -0xea8(%rbp) movl -0xea8(%rbp), %eax cmpl -0xea4(%rbp), %eax jg 0x70790 movq -0xeb8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xeb8(%rbp) movb (%rax), %cl movq -0xec8(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0xec8(%rbp) movb %cl, (%rax) movl -0xea8(%rbp), %eax cmpl -0xe9c(%rbp), %eax jne 0x7077a movl -0xea8(%rbp), %eax cmpl -0xea4(%rbp), %eax jge 0x7077a movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x2e, (%rax) jmp 0x7077c movl -0xea8(%rbp), %eax addl $0x1, %eax movl %eax, -0xea8(%rbp) jmp 0x7070a jmp 0x70792 movl -0xea8(%rbp), %eax movl %eax, %ecx addl $0x1, %ecx movl %ecx, -0xea8(%rbp) cmpl -0xe9c(%rbp), %eax jg 0x707c5 movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x30, (%rax) jmp 0x70792 cmpl $0x0, -0xe84(%rbp) jle 0x7087a movl -0xea4(%rbp), %eax cmpl -0xe9c(%rbp), %eax jg 0x707f8 movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x2e, (%rax) movl -0xe84(%rbp), %eax movl %eax, -0xecc(%rbp) movl -0xea4(%rbp), %ecx subl -0xe9c(%rbp), %ecx xorl %eax, %eax cmpl %ecx, %eax jle 0x70820 xorl %eax, %eax movl %eax, -0xed0(%rbp) jmp 0x70832 movl -0xea4(%rbp), %eax subl -0xe9c(%rbp), %eax movl %eax, -0xed0(%rbp) movl -0xecc(%rbp), %eax movl -0xed0(%rbp), %ecx subl %ecx, %eax movl %eax, -0xea8(%rbp) cmpl $0x0, -0xea8(%rbp) jle 0x70878 movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x30, (%rax) movl -0xea8(%rbp), %eax addl $-0x1, %eax movl %eax, -0xea8(%rbp) jmp 0x70846 jmp 0x7087a movq -0xec8(%rbp), %rax movb $0x0, (%rax) cmpq $0x0, -0xe98(%rbp) je 0x70898 movq -0xe98(%rbp), %rax movb $0x0, (%rax) movq -0xeb0(%rbp), %rdi leaq -0xe70(%rbp), %rsi movl $0xe60, %edx # imm = 0xE60 callq 0x71f50 movq -0xec8(%rbp), %rax movq -0xe90(%rbp), %rcx subq %rcx, %rax movq %rax, -0xe78(%rbp) movq -0xe78(%rbp), %rax movq %rax, -0xed8(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x708f8 movq -0xed8(%rbp), %rax addq $0xee0, %rsp # imm = 0xEE0 popq %rbp retq callq 0x242f0 nopl (%rax)
my_fcvt: push rbp mov rbp, rsp sub rsp, 0EE0h mov rax, fs:28h mov [rbp+var_8], rax movsd [rbp+var_E80], xmm0 mov [rbp+var_E84], edi mov [rbp+var_E90], rsi mov [rbp+var_E98], rdx mov rax, [rbp+var_E90] mov [rbp+var_EC8], rax jmp short $+2 loc_70594: movsd xmm0, [rbp+var_E80] mov esi, [rbp+var_E84] lea r9, [rbp+var_E70] mov edi, 5 lea rdx, [rbp+var_E9C] lea rcx, [rbp+var_EA0] lea r8, [rbp+var_EC0] mov [rsp+0EE0h+var_EE0], 0E60h call dtoa mov [rbp+var_EB0], rax cmp [rbp+var_E9C], 270Fh jnz short loc_70641 mov rdi, [rbp+var_EB0] lea rsi, [rbp+var_E70] mov edx, 0E60h call dtoa_free mov rax, [rbp+var_E90] mov rcx, rax add rcx, 1 mov [rbp+var_E90], rcx mov byte ptr [rax], 30h ; '0' mov rax, [rbp+var_E90] mov byte ptr [rax], 0 cmp [rbp+var_E98], 0 jz short loc_70631 mov rax, [rbp+var_E98] mov byte ptr [rax], 1 loc_70631: mov [rbp+var_E78], 1 jmp loc_708C8 loc_70641: mov rax, [rbp+var_EB0] mov [rbp+var_EB8], rax mov rax, [rbp+var_EC0] mov rcx, [rbp+var_EB8] sub rax, rcx mov [rbp+var_EA4], eax cmp [rbp+var_EA0], 0 jz short loc_70687 mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 2Dh ; '-' loc_70687: cmp [rbp+var_E9C], 0 jg short loc_70700 mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 30h ; '0' mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 2Eh ; '.' mov eax, [rbp+var_E9C] mov [rbp+var_EA8], eax loc_706CC: cmp [rbp+var_EA8], 0 jge short loc_706FE mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 30h ; '0' mov eax, [rbp+var_EA8] add eax, 1 mov [rbp+var_EA8], eax jmp short loc_706CC loc_706FE: jmp short $+2 loc_70700: mov [rbp+var_EA8], 1 loc_7070A: mov eax, [rbp+var_EA8] cmp eax, [rbp+var_EA4] jg short loc_70790 mov rax, [rbp+var_EB8] mov rcx, rax add rcx, 1 mov [rbp+var_EB8], rcx mov cl, [rax] mov rax, [rbp+var_EC8] mov rdx, rax add rdx, 1 mov [rbp+var_EC8], rdx mov [rax], cl mov eax, [rbp+var_EA8] cmp eax, [rbp+var_E9C] jnz short loc_7077A mov eax, [rbp+var_EA8] cmp eax, [rbp+var_EA4] jge short loc_7077A mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 2Eh ; '.' loc_7077A: jmp short $+2 loc_7077C: mov eax, [rbp+var_EA8] add eax, 1 mov [rbp+var_EA8], eax jmp loc_7070A loc_70790: jmp short $+2 loc_70792: mov eax, [rbp+var_EA8] mov ecx, eax add ecx, 1 mov [rbp+var_EA8], ecx cmp eax, [rbp+var_E9C] jg short loc_707C5 mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 30h ; '0' jmp short loc_70792 loc_707C5: cmp [rbp+var_E84], 0 jle loc_7087A mov eax, [rbp+var_EA4] cmp eax, [rbp+var_E9C] jg short loc_707F8 mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 2Eh ; '.' loc_707F8: mov eax, [rbp+var_E84] mov [rbp+var_ECC], eax mov ecx, [rbp+var_EA4] sub ecx, [rbp+var_E9C] xor eax, eax cmp eax, ecx jle short loc_70820 xor eax, eax mov [rbp+var_ED0], eax jmp short loc_70832 loc_70820: mov eax, [rbp+var_EA4] sub eax, [rbp+var_E9C] mov [rbp+var_ED0], eax loc_70832: mov eax, [rbp+var_ECC] mov ecx, [rbp+var_ED0] sub eax, ecx mov [rbp+var_EA8], eax loc_70846: cmp [rbp+var_EA8], 0 jle short loc_70878 mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 30h ; '0' mov eax, [rbp+var_EA8] add eax, 0FFFFFFFFh mov [rbp+var_EA8], eax jmp short loc_70846 loc_70878: jmp short $+2 loc_7087A: mov rax, [rbp+var_EC8] mov byte ptr [rax], 0 cmp [rbp+var_E98], 0 jz short loc_70898 mov rax, [rbp+var_E98] mov byte ptr [rax], 0 loc_70898: mov rdi, [rbp+var_EB0] lea rsi, [rbp+var_E70] mov edx, 0E60h call dtoa_free mov rax, [rbp+var_EC8] mov rcx, [rbp+var_E90] sub rax, rcx mov [rbp+var_E78], rax loc_708C8: mov rax, [rbp+var_E78] mov [rbp+var_ED8], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_708F8 mov rax, [rbp+var_ED8] add rsp, 0EE0h pop rbp retn loc_708F8: call ___stack_chk_fail
long long my_fcvt(int a1, _BYTE *a2, _BYTE *a3, double a4) { _BYTE *v4; // rax _BYTE *v5; // rax _BYTE *v6; // rax char *v7; // rax char v8; // cl _BYTE *v9; // rax _BYTE *v10; // rax int v11; // eax _BYTE *v12; // rax _BYTE *v13; // rax _BYTE *v14; // rax int v16; // [rsp+10h] [rbp-ED0h] _BYTE *v17; // [rsp+18h] [rbp-EC8h] long long v18; // [rsp+20h] [rbp-EC0h] BYREF char *v19; // [rsp+28h] [rbp-EB8h] long long v20; // [rsp+30h] [rbp-EB0h] int i; // [rsp+38h] [rbp-EA8h] int v22; // [rsp+3Ch] [rbp-EA4h] int v23; // [rsp+40h] [rbp-EA0h] BYREF int v24; // [rsp+44h] [rbp-E9Ch] BYREF _BYTE *v25; // [rsp+48h] [rbp-E98h] _BYTE *v26; // [rsp+50h] [rbp-E90h] int v27; // [rsp+5Ch] [rbp-E84h] double v28; // [rsp+60h] [rbp-E80h] _BYTE v30[3688]; // [rsp+70h] [rbp-E70h] BYREF unsigned long long v31; // [rsp+ED8h] [rbp-8h] v31 = __readfsqword(0x28u); v28 = a4; v27 = a1; v26 = a2; v25 = a3; v17 = a2; v20 = dtoa(5, a1, (unsigned int)&v24, (unsigned int)&v23, (unsigned int)&v18, (unsigned int)v30, 3680LL); if ( v24 == 9999 ) { dtoa_free(v20, v30, 3680LL, a4); v4 = v26++; *v4 = 48; *v26 = 0; if ( v25 ) *v25 = 1; return 1LL; } else { v19 = (char *)v20; v22 = v18 - v20; if ( v23 ) { v17 = a2 + 1; *a2 = 45; } if ( v24 <= 0 ) { *v17 = 48; v5 = v17 + 1; v17 += 2; *v5 = 46; for ( i = v24; i < 0; ++i ) { v6 = v17++; *v6 = 48; } } for ( i = 1; i <= v22; ++i ) { v7 = v19++; v8 = *v7; v9 = v17++; *v9 = v8; if ( i == v24 && i < v22 ) { v10 = v17++; *v10 = 46; } } while ( 1 ) { v11 = i++; if ( v11 > v24 ) break; v12 = v17++; *v12 = 48; } if ( v27 > 0 ) { if ( v22 <= v24 ) { v13 = v17++; *v13 = 46; } if ( v22 - v24 >= 0 ) v16 = v22 - v24; else v16 = 0; for ( i = v27 - v16; i > 0; --i ) { v14 = v17++; *v14 = 48; } } *v17 = 0; if ( v25 ) *v25 = 0; dtoa_free(v20, v30, 3680LL, a4); return v17 - v26; } }
my_fcvt: PUSH RBP MOV RBP,RSP SUB RSP,0xee0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOVSD qword ptr [RBP + -0xe80],XMM0 MOV dword ptr [RBP + -0xe84],EDI MOV qword ptr [RBP + -0xe90],RSI MOV qword ptr [RBP + -0xe98],RDX MOV RAX,qword ptr [RBP + -0xe90] MOV qword ptr [RBP + -0xec8],RAX JMP 0x00170594 LAB_00170594: MOVSD XMM0,qword ptr [RBP + -0xe80] MOV ESI,dword ptr [RBP + -0xe84] LEA R9,[RBP + -0xe70] MOV EDI,0x5 LEA RDX,[RBP + -0xe9c] LEA RCX,[RBP + -0xea0] LEA R8,[RBP + -0xec0] MOV qword ptr [RSP],0xe60 CALL 0x00170900 MOV qword ptr [RBP + -0xeb0],RAX CMP dword ptr [RBP + -0xe9c],0x270f JNZ 0x00170641 MOV RDI,qword ptr [RBP + -0xeb0] LEA RSI,[RBP + -0xe70] MOV EDX,0xe60 CALL 0x00171f50 MOV RAX,qword ptr [RBP + -0xe90] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xe90],RCX MOV byte ptr [RAX],0x30 MOV RAX,qword ptr [RBP + -0xe90] MOV byte ptr [RAX],0x0 CMP qword ptr [RBP + -0xe98],0x0 JZ 0x00170631 MOV RAX,qword ptr [RBP + -0xe98] MOV byte ptr [RAX],0x1 LAB_00170631: MOV qword ptr [RBP + -0xe78],0x1 JMP 0x001708c8 LAB_00170641: MOV RAX,qword ptr [RBP + -0xeb0] MOV qword ptr [RBP + -0xeb8],RAX MOV RAX,qword ptr [RBP + -0xec0] MOV RCX,qword ptr [RBP + -0xeb8] SUB RAX,RCX MOV dword ptr [RBP + -0xea4],EAX CMP dword ptr [RBP + -0xea0],0x0 JZ 0x00170687 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x2d LAB_00170687: CMP dword ptr [RBP + -0xe9c],0x0 JG 0x00170700 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x30 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x2e MOV EAX,dword ptr [RBP + -0xe9c] MOV dword ptr [RBP + -0xea8],EAX LAB_001706cc: CMP dword ptr [RBP + -0xea8],0x0 JGE 0x001706fe MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x30 MOV EAX,dword ptr [RBP + -0xea8] ADD EAX,0x1 MOV dword ptr [RBP + -0xea8],EAX JMP 0x001706cc LAB_001706fe: JMP 0x00170700 LAB_00170700: MOV dword ptr [RBP + -0xea8],0x1 LAB_0017070a: MOV EAX,dword ptr [RBP + -0xea8] CMP EAX,dword ptr [RBP + -0xea4] JG 0x00170790 MOV RAX,qword ptr [RBP + -0xeb8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xeb8],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0xec8] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0xec8],RDX MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0xea8] CMP EAX,dword ptr [RBP + -0xe9c] JNZ 0x0017077a MOV EAX,dword ptr [RBP + -0xea8] CMP EAX,dword ptr [RBP + -0xea4] JGE 0x0017077a MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x2e LAB_0017077a: JMP 0x0017077c LAB_0017077c: MOV EAX,dword ptr [RBP + -0xea8] ADD EAX,0x1 MOV dword ptr [RBP + -0xea8],EAX JMP 0x0017070a LAB_00170790: JMP 0x00170792 LAB_00170792: MOV EAX,dword ptr [RBP + -0xea8] MOV ECX,EAX ADD ECX,0x1 MOV dword ptr [RBP + -0xea8],ECX CMP EAX,dword ptr [RBP + -0xe9c] JG 0x001707c5 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x30 JMP 0x00170792 LAB_001707c5: CMP dword ptr [RBP + -0xe84],0x0 JLE 0x0017087a MOV EAX,dword ptr [RBP + -0xea4] CMP EAX,dword ptr [RBP + -0xe9c] JG 0x001707f8 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x2e LAB_001707f8: MOV EAX,dword ptr [RBP + -0xe84] MOV dword ptr [RBP + -0xecc],EAX MOV ECX,dword ptr [RBP + -0xea4] SUB ECX,dword ptr [RBP + -0xe9c] XOR EAX,EAX CMP EAX,ECX JLE 0x00170820 XOR EAX,EAX MOV dword ptr [RBP + -0xed0],EAX JMP 0x00170832 LAB_00170820: MOV EAX,dword ptr [RBP + -0xea4] SUB EAX,dword ptr [RBP + -0xe9c] MOV dword ptr [RBP + -0xed0],EAX LAB_00170832: MOV EAX,dword ptr [RBP + -0xecc] MOV ECX,dword ptr [RBP + -0xed0] SUB EAX,ECX MOV dword ptr [RBP + -0xea8],EAX LAB_00170846: CMP dword ptr [RBP + -0xea8],0x0 JLE 0x00170878 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x30 MOV EAX,dword ptr [RBP + -0xea8] ADD EAX,-0x1 MOV dword ptr [RBP + -0xea8],EAX JMP 0x00170846 LAB_00170878: JMP 0x0017087a LAB_0017087a: MOV RAX,qword ptr [RBP + -0xec8] MOV byte ptr [RAX],0x0 CMP qword ptr [RBP + -0xe98],0x0 JZ 0x00170898 MOV RAX,qword ptr [RBP + -0xe98] MOV byte ptr [RAX],0x0 LAB_00170898: MOV RDI,qword ptr [RBP + -0xeb0] LEA RSI,[RBP + -0xe70] MOV EDX,0xe60 CALL 0x00171f50 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,qword ptr [RBP + -0xe90] SUB RAX,RCX MOV qword ptr [RBP + -0xe78],RAX LAB_001708c8: MOV RAX,qword ptr [RBP + -0xe78] MOV qword ptr [RBP + -0xed8],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001708f8 MOV RAX,qword ptr [RBP + -0xed8] ADD RSP,0xee0 POP RBP RET LAB_001708f8: CALL 0x001242f0
long my_fcvt(int8 param_1,int param_2,int1 *param_3,int1 *param_4) { int1 *puVar1; long in_FS_OFFSET; int local_ed8; int1 *local_ed0; int local_ec8 [2]; int1 *local_ec0; int1 *local_eb8; int local_eb0; int local_eac; int local_ea8; int local_ea4; int1 *local_ea0; int1 *local_e98; int local_e8c; int8 local_e88; long local_e80; int1 local_e78 [3688]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_ea0 = param_4; local_e98 = param_3; local_e8c = param_2; local_e88 = param_1; local_eb8 = (int1 *)dtoa(param_1,5,param_2,&local_ea4,&local_ea8,local_ec8,local_e78,0xe60); if (local_ea4 == 9999) { dtoa_free(local_eb8,local_e78,0xe60); *local_e98 = 0x30; local_e98[1] = 0; if (local_ea0 != (int1 *)0x0) { *local_ea0 = 1; } local_e80 = 1; local_e98 = local_e98 + 1; } else { local_eac = local_ec8[0] - (int)local_eb8; local_ed0 = param_3; if (local_ea8 != 0) { local_ed0 = param_3 + 1; *param_3 = 0x2d; } if (local_ea4 < 1) { *local_ed0 = 0x30; local_ed0[1] = 0x2e; local_ed0 = local_ed0 + 2; for (local_eb0 = local_ea4; local_eb0 < 0; local_eb0 = local_eb0 + 1) { *local_ed0 = 0x30; local_ed0 = local_ed0 + 1; } } local_ec0 = local_eb8; for (local_eb0 = 1; local_eb0 <= local_eac; local_eb0 = local_eb0 + 1) { puVar1 = local_ed0 + 1; *local_ed0 = *local_ec0; if ((local_eb0 == local_ea4) && (local_eb0 < local_eac)) { *puVar1 = 0x2e; puVar1 = local_ed0 + 2; } local_ed0 = puVar1; local_ec0 = local_ec0 + 1; } while (local_eb0 <= local_ea4) { *local_ed0 = 0x30; local_ed0 = local_ed0 + 1; local_eb0 = local_eb0 + 1; } local_eb0 = local_eb0 + 1; if (0 < local_e8c) { if (local_eac <= local_ea4) { *local_ed0 = 0x2e; local_ed0 = local_ed0 + 1; } if (local_eac - local_ea4 < 0) { local_ed8 = 0; } else { local_ed8 = local_eac - local_ea4; } for (local_eb0 = local_e8c - local_ed8; 0 < local_eb0; local_eb0 = local_eb0 + -1) { *local_ed0 = 0x30; local_ed0 = local_ed0 + 1; } } *local_ed0 = 0; if (local_ea0 != (int1 *)0x0) { *local_ea0 = 0; } dtoa_free(local_eb8,local_e78,0xe60); local_e80 = (long)local_ed0 - (long)local_e98; } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_e80; }
21,169
llm_build_norm(ggml_context*, ggml_tensor*, llama_hparams const&, ggml_tensor*, ggml_tensor*, llm_norm_type, std::function<void (ggml_tensor*, char const*, int)> const&, int)
monkey531[P]llama/src/llama.cpp
static struct ggml_tensor * llm_build_norm( struct ggml_context * ctx, struct ggml_tensor * cur, const llama_hparams & hparams, struct ggml_tensor * mw, struct ggml_tensor * mb, llm_norm_type type, const llm_build_cb & cb, int il) { switch (type) { case LLM_NORM: cur = ggml_norm (ctx, cur, hparams.f_norm_eps); break; case LLM_NORM_RMS: cur = ggml_rms_norm (ctx, cur, hparams.f_norm_rms_eps); break; case LLM_NORM_GROUP: { cur = ggml_reshape_3d(ctx, cur, cur->ne[0], 1, cur->ne[1]); cur = ggml_group_norm(ctx, cur, hparams.n_norm_groups, hparams.f_norm_group_eps); cur = ggml_reshape_2d(ctx, cur, cur->ne[0], cur->ne[2]); } break; } if (mw || mb) { cb(cur, "norm", il); } if (mw) { cur = ggml_mul(ctx, cur, mw); if (mb) { cb(cur, "norm_w", il); } } if (mb) { cur = ggml_add(ctx, cur, mb); } return cur; }
O1
cpp
llm_build_norm(ggml_context*, ggml_tensor*, llama_hparams const&, ggml_tensor*, ggml_tensor*, llm_norm_type, std::function<void (ggml_tensor*, char const*, int)> const&, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %rbx movq %rcx, %r12 movq %rdx, %r13 movq %rdi, %r14 movl 0x48(%rsp), %ebp movq 0x40(%rsp), %r15 cmpl $0x2, %r9d je 0x75a4f cmpl $0x1, %r9d jne 0x75a94 movss 0x186c(%r13), %xmm0 movq %r14, %rdi callq 0x69770 jmp 0x75aa5 movq 0x10(%rsi), %rdx movq 0x18(%rsi), %r8 movl $0x1, %ecx movq %r14, %rdi callq 0x69130 movl 0x1858(%r13), %edx movss 0x1870(%r13), %xmm0 movq %r14, %rdi movq %rax, %rsi callq 0x6ae60 movq 0x10(%rax), %rdx movq 0x20(%rax), %rcx movq %r14, %rdi movq %rax, %rsi callq 0x6be70 jmp 0x75aa5 movss 0x1868(%r13), %xmm0 movq %r14, %rdi callq 0x67d20 movq %rax, %r13 movq %r12, %rax orq %rbx, %rax je 0x75ac4 leaq 0xa1884(%rip), %rdx # 0x11733b movq %r15, %rdi movq %r13, %rsi movl %ebp, %ecx callq 0x65030 testq %r12, %r12 je 0x75af3 movq %r14, %rdi movq %r13, %rsi movq %r12, %rdx callq 0x6ac30 movq %rax, %r13 testq %rbx, %rbx je 0x75af3 leaq 0x9f35c(%rip), %rdx # 0x114e42 movq %r15, %rdi movq %r13, %rsi movl %ebp, %ecx callq 0x65030 testq %rbx, %rbx je 0x75b14 movq %r14, %rdi movq %r13, %rsi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x66e40 movq %r13, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZL14llm_build_normP12ggml_contextP11ggml_tensorRK13llama_hparamsS2_S2_13llm_norm_typeRKSt8functionIFvS2_PKciEEi: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, r8 mov r12, rcx mov r13, rdx mov r14, rdi mov ebp, [rsp+38h+arg_8] mov r15, [rsp+38h+arg_0] cmp r9d, 2 jz short loc_75A4F cmp r9d, 1 jnz short loc_75A94 movss xmm0, dword ptr [r13+186Ch] mov rdi, r14 call _ggml_rms_norm jmp short loc_75AA5 loc_75A4F: mov rdx, [rsi+10h] mov r8, [rsi+18h] mov ecx, 1 mov rdi, r14 call _ggml_reshape_3d mov edx, [r13+1858h] movss xmm0, dword ptr [r13+1870h] mov rdi, r14 mov rsi, rax call _ggml_group_norm mov rdx, [rax+10h] mov rcx, [rax+20h] mov rdi, r14 mov rsi, rax call _ggml_reshape_2d jmp short loc_75AA5 loc_75A94: movss xmm0, dword ptr [r13+1868h] mov rdi, r14 call _ggml_norm loc_75AA5: mov r13, rax mov rax, r12 or rax, rbx jz short loc_75AC4 lea rdx, aPosnetDNorm+0Ah; "norm" mov rdi, r15 mov rsi, r13 mov ecx, ebp call __ZNKSt8functionIFvP11ggml_tensorPKciEEclES1_S3_i; std::function<void ()(ggml_tensor *,char const*,int)>::operator()(ggml_tensor *,char const*,int) loc_75AC4: test r12, r12 jz short loc_75AF3 mov rdi, r14 mov rsi, r13 mov rdx, r12 call _ggml_mul mov r13, rax test rbx, rbx jz short loc_75AF3 lea rdx, aNormW; "norm_w" mov rdi, r15 mov rsi, r13 mov ecx, ebp call __ZNKSt8functionIFvP11ggml_tensorPKciEEclES1_S3_i; std::function<void ()(ggml_tensor *,char const*,int)>::operator()(ggml_tensor *,char const*,int) loc_75AF3: test rbx, rbx jz short loc_75B14 mov rdi, r14 mov rsi, r13 mov rdx, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _ggml_add loc_75B14: mov rax, r13 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long llm_build_norm( long long a1, long long a2, unsigned int *a3, long long a4, long long a5, int a6, long long a7, unsigned int a8) { float v11; // xmm0_4 long long v12; // rax long long v13; // rax long long v14; // rax long long v15; // r13 long long v16; // rax if ( a6 == 2 ) { v13 = ggml_reshape_3d(a1, a2, *(_QWORD *)(a2 + 16), 1LL, *(_QWORD *)(a2 + 24)); v11 = *((float *)a3 + 1564); v14 = ggml_group_norm(a1, v13, a3[1558], v11); v12 = ggml_reshape_2d(a1, v14, *(_QWORD *)(v14 + 16), *(_QWORD *)(v14 + 32)); } else if ( a6 == 1 ) { v11 = *((float *)a3 + 1563); v12 = ggml_rms_norm(a1, v11); } else { v11 = *((float *)a3 + 1562); v12 = ggml_norm(a1, v11); } v15 = v12; if ( a5 | a4 ) std::function<void ()(ggml_tensor *,char const*,int)>::operator()(a7, v12, "norm", a8); if ( a4 ) { v16 = ggml_mul(a1, v15, a4); v15 = v16; if ( a5 ) std::function<void ()(ggml_tensor *,char const*,int)>::operator()(a7, v16, "norm_w", a8); } if ( a5 ) return ggml_add(a1, v15, a5, v11); else return v15; }
llm_build_norm: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,R8 MOV R12,RCX MOV R13,RDX MOV R14,RDI MOV EBP,dword ptr [RSP + 0x48] MOV R15,qword ptr [RSP + 0x40] CMP R9D,0x2 JZ 0x00175a4f CMP R9D,0x1 JNZ 0x00175a94 MOVSS XMM0,dword ptr [R13 + 0x186c] MOV RDI,R14 CALL 0x00169770 JMP 0x00175aa5 LAB_00175a4f: MOV RDX,qword ptr [RSI + 0x10] MOV R8,qword ptr [RSI + 0x18] MOV ECX,0x1 MOV RDI,R14 CALL 0x00169130 MOV EDX,dword ptr [R13 + 0x1858] MOVSS XMM0,dword ptr [R13 + 0x1870] MOV RDI,R14 MOV RSI,RAX CALL 0x0016ae60 MOV RDX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RAX + 0x20] MOV RDI,R14 MOV RSI,RAX CALL 0x0016be70 JMP 0x00175aa5 LAB_00175a94: MOVSS XMM0,dword ptr [R13 + 0x1868] MOV RDI,R14 CALL 0x00167d20 LAB_00175aa5: MOV R13,RAX MOV RAX,R12 OR RAX,RBX JZ 0x00175ac4 LEA RDX,[0x21733b] MOV RDI,R15 MOV RSI,R13 MOV ECX,EBP CALL 0x00165030 LAB_00175ac4: TEST R12,R12 JZ 0x00175af3 MOV RDI,R14 MOV RSI,R13 MOV RDX,R12 CALL 0x0016ac30 MOV R13,RAX TEST RBX,RBX JZ 0x00175af3 LEA RDX,[0x214e42] MOV RDI,R15 MOV RSI,R13 MOV ECX,EBP CALL 0x00165030 LAB_00175af3: TEST RBX,RBX JZ 0x00175b14 MOV RDI,R14 MOV RSI,R13 MOV RDX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00166e40 LAB_00175b14: MOV RAX,R13 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* llm_build_norm(ggml_context*, ggml_tensor*, llama_hparams const&, ggml_tensor*, ggml_tensor*, llm_norm_type, std::function<void (ggml_tensor*, char const*, int)> const&, int) */ ggml_tensor * llm_build_norm(int8 param_1,long param_2,long param_3,long param_4,long param_5,int param_6, function<void(ggml_tensor*,char_const*,int)> *param_7,int param_8) { ggml_tensor *pgVar1; int8 uVar2; long lVar3; if (param_6 == 2) { uVar2 = ggml_reshape_3d(param_1,param_2,*(int8 *)(param_2 + 0x10),1, *(int8 *)(param_2 + 0x18)); lVar3 = ggml_group_norm(*(int4 *)(param_3 + 0x1870),param_1,uVar2, *(int4 *)(param_3 + 0x1858)); pgVar1 = (ggml_tensor *) ggml_reshape_2d(param_1,lVar3,*(int8 *)(lVar3 + 0x10), *(int8 *)(lVar3 + 0x20)); } else if (param_6 == 1) { pgVar1 = (ggml_tensor *)ggml_rms_norm(*(int4 *)(param_3 + 0x186c),param_1); } else { pgVar1 = (ggml_tensor *)ggml_norm(*(int4 *)(param_3 + 0x1868),param_1); } if (param_4 != 0 || param_5 != 0) { std::function<void(ggml_tensor*,char_const*,int)>::operator()(param_7,pgVar1,"norm",param_8); } if (param_4 != 0) { pgVar1 = (ggml_tensor *)ggml_mul(param_1,pgVar1,param_4); if (param_5 != 0) { std::function<void(ggml_tensor*,char_const*,int)>::operator()(param_7,pgVar1,"norm_w",param_8) ; } } if (param_5 != 0) { pgVar1 = (ggml_tensor *)ggml_add(param_1,pgVar1,param_5); return pgVar1; } return pgVar1; }
21,170
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
int EvalBasisLinear(REAL s, REAL t, REAL wP[4], REAL wDs[4], REAL wDt[4], REAL wDss[4], REAL wDst[4], REAL wDtt[4]) { REAL sC = 1.0f - s; REAL tC = 1.0f - t; if (wP) { wP[0] = sC * tC; wP[1] = s * tC; wP[2] = s * t; wP[3] = sC * t; } if (wDs && wDt) { wDs[0] = -tC; wDs[1] = tC; wDs[2] = t; wDs[3] = -t; wDt[0] = -sC; wDt[1] = -s; wDt[2] = s; wDt[3] = sC; if (wDss && wDst && wDtt) { for(int i = 0; i < 4; ++i) { wDss[i] = 0.0f; wDtt[i] = 0.0f; } wDst[0] = 1.0f; wDst[1] = -1.0f; wDst[2] = 1.0f; wDst[3] = -1.0f; } } return 4; }
O0
cpp
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*): pushq %rbp movq %rsp, %rbp movsd %xmm0, -0x8(%rbp) movsd %xmm1, -0x10(%rbp) movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq %rdx, -0x28(%rbp) movq %rcx, -0x30(%rbp) movq %r8, -0x38(%rbp) movq %r9, -0x40(%rbp) movsd 0xbb4aa(%rip), %xmm0 # 0x1ec598 subsd -0x8(%rbp), %xmm0 movsd %xmm0, -0x48(%rbp) movsd 0xbb498(%rip), %xmm0 # 0x1ec598 subsd -0x10(%rbp), %xmm0 movsd %xmm0, -0x50(%rbp) cmpq $0x0, -0x18(%rbp) je 0x13115c movsd -0x48(%rbp), %xmm0 mulsd -0x50(%rbp), %xmm0 movq -0x18(%rbp), %rax movsd %xmm0, (%rax) movsd -0x8(%rbp), %xmm0 mulsd -0x50(%rbp), %xmm0 movq -0x18(%rbp), %rax movsd %xmm0, 0x8(%rax) movsd -0x8(%rbp), %xmm0 mulsd -0x10(%rbp), %xmm0 movq -0x18(%rbp), %rax movsd %xmm0, 0x10(%rax) movsd -0x48(%rbp), %xmm0 mulsd -0x10(%rbp), %xmm0 movq -0x18(%rbp), %rax movsd %xmm0, 0x18(%rax) cmpq $0x0, -0x20(%rbp) je 0x1312d6 cmpq $0x0, -0x28(%rbp) je 0x1312d6 movsd -0x50(%rbp), %xmm0 movq %xmm0, %rax movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movq -0x20(%rbp), %rax movsd %xmm0, (%rax) movsd -0x50(%rbp), %xmm0 movq -0x20(%rbp), %rax movsd %xmm0, 0x8(%rax) movsd -0x10(%rbp), %xmm0 movq -0x20(%rbp), %rax movsd %xmm0, 0x10(%rax) movsd -0x10(%rbp), %xmm0 movq %xmm0, %rax movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movq -0x20(%rbp), %rax movsd %xmm0, 0x18(%rax) movsd -0x48(%rbp), %xmm0 movq %xmm0, %rax movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movq -0x28(%rbp), %rax movsd %xmm0, (%rax) movsd -0x8(%rbp), %xmm0 movq %xmm0, %rax movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movq -0x28(%rbp), %rax movsd %xmm0, 0x8(%rax) movsd -0x8(%rbp), %xmm0 movq -0x28(%rbp), %rax movsd %xmm0, 0x10(%rax) movsd -0x48(%rbp), %xmm0 movq -0x28(%rbp), %rax movsd %xmm0, 0x18(%rax) cmpq $0x0, -0x30(%rbp) je 0x1312d4 cmpq $0x0, -0x38(%rbp) je 0x1312d4 cmpq $0x0, -0x40(%rbp) je 0x1312d4 movl $0x0, -0x54(%rbp) cmpl $0x4, -0x54(%rbp) jge 0x131291 movq -0x30(%rbp), %rax movslq -0x54(%rbp), %rcx xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movq -0x40(%rbp), %rax movslq -0x54(%rbp), %rcx xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) movl -0x54(%rbp), %eax addl $0x1, %eax movl %eax, -0x54(%rbp) jmp 0x131260 movq -0x38(%rbp), %rax movsd 0xbb2fb(%rip), %xmm0 # 0x1ec598 movsd %xmm0, (%rax) movq -0x38(%rbp), %rax movsd 0xbb393(%rip), %xmm0 # 0x1ec640 movsd %xmm0, 0x8(%rax) movq -0x38(%rbp), %rax movsd 0xbb2da(%rip), %xmm0 # 0x1ec598 movsd %xmm0, 0x10(%rax) movq -0x38(%rbp), %rax movsd 0xbb371(%rip), %xmm0 # 0x1ec640 movsd %xmm0, 0x18(%rax) jmp 0x1312d6 movl $0x4, %eax popq %rbp retq nopl (%rax)
_ZN10OpenSubdiv6v3_6_03Far8internal15EvalBasisLinearIdEEiT_S4_PS4_S5_S5_S5_S5_S5_: push rbp mov rbp, rsp movsd [rbp+var_8], xmm0 movsd [rbp+var_10], xmm1 mov [rbp+var_18], rdi mov [rbp+var_20], rsi mov [rbp+var_28], rdx mov [rbp+var_30], rcx mov [rbp+var_38], r8 mov [rbp+var_40], r9 movsd xmm0, cs:qword_1EC598 subsd xmm0, [rbp+var_8] movsd [rbp+var_48], xmm0 movsd xmm0, cs:qword_1EC598 subsd xmm0, [rbp+var_10] movsd [rbp+var_50], xmm0 cmp [rbp+var_18], 0 jz short loc_13115C movsd xmm0, [rbp+var_48] mulsd xmm0, [rbp+var_50] mov rax, [rbp+var_18] movsd qword ptr [rax], xmm0 movsd xmm0, [rbp+var_8] mulsd xmm0, [rbp+var_50] mov rax, [rbp+var_18] movsd qword ptr [rax+8], xmm0 movsd xmm0, [rbp+var_8] mulsd xmm0, [rbp+var_10] mov rax, [rbp+var_18] movsd qword ptr [rax+10h], xmm0 movsd xmm0, [rbp+var_48] mulsd xmm0, [rbp+var_10] mov rax, [rbp+var_18] movsd qword ptr [rax+18h], xmm0 loc_13115C: cmp [rbp+var_20], 0 jz loc_1312D6 cmp [rbp+var_28], 0 jz loc_1312D6 movsd xmm0, [rbp+var_50] movq rax, xmm0 mov rcx, 8000000000000000h xor rax, rcx movq xmm0, rax mov rax, [rbp+var_20] movsd qword ptr [rax], xmm0 movsd xmm0, [rbp+var_50] mov rax, [rbp+var_20] movsd qword ptr [rax+8], xmm0 movsd xmm0, [rbp+var_10] mov rax, [rbp+var_20] movsd qword ptr [rax+10h], xmm0 movsd xmm0, [rbp+var_10] movq rax, xmm0 mov rcx, 8000000000000000h xor rax, rcx movq xmm0, rax mov rax, [rbp+var_20] movsd qword ptr [rax+18h], xmm0 movsd xmm0, [rbp+var_48] movq rax, xmm0 mov rcx, 8000000000000000h xor rax, rcx movq xmm0, rax mov rax, [rbp+var_28] movsd qword ptr [rax], xmm0 movsd xmm0, [rbp+var_8] movq rax, xmm0 mov rcx, 8000000000000000h xor rax, rcx movq xmm0, rax mov rax, [rbp+var_28] movsd qword ptr [rax+8], xmm0 movsd xmm0, [rbp+var_8] mov rax, [rbp+var_28] movsd qword ptr [rax+10h], xmm0 movsd xmm0, [rbp+var_48] mov rax, [rbp+var_28] movsd qword ptr [rax+18h], xmm0 cmp [rbp+var_30], 0 jz loc_1312D4 cmp [rbp+var_38], 0 jz loc_1312D4 cmp [rbp+var_40], 0 jz short loc_1312D4 mov [rbp+var_54], 0 loc_131260: cmp [rbp+var_54], 4 jge short loc_131291 mov rax, [rbp+var_30] movsxd rcx, [rbp+var_54] xorps xmm0, xmm0 movsd qword ptr [rax+rcx*8], xmm0 mov rax, [rbp+var_40] movsxd rcx, [rbp+var_54] xorps xmm0, xmm0 movsd qword ptr [rax+rcx*8], xmm0 mov eax, [rbp+var_54] add eax, 1 mov [rbp+var_54], eax jmp short loc_131260 loc_131291: mov rax, [rbp+var_38] movsd xmm0, cs:qword_1EC598 movsd qword ptr [rax], xmm0 mov rax, [rbp+var_38] movsd xmm0, cs:qword_1EC640 movsd qword ptr [rax+8], xmm0 mov rax, [rbp+var_38] movsd xmm0, cs:qword_1EC598 movsd qword ptr [rax+10h], xmm0 mov rax, [rbp+var_38] movsd xmm0, cs:qword_1EC640 movsd qword ptr [rax+18h], xmm0 loc_1312D4: jmp short $+2 loc_1312D6: mov eax, 4 pop rbp retn
long long OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<double>( double *a1, long long a2, long long a3, long long a4, _QWORD *a5, long long a6, double a7, double a8) { int i; // [rsp+0h] [rbp-54h] double v10; // [rsp+4h] [rbp-50h] double v11; // [rsp+Ch] [rbp-48h] v11 = 1.0 - a7; v10 = 1.0 - a8; if ( a1 ) { *a1 = v11 * v10; a1[1] = a7 * v10; a1[2] = a7 * a8; a1[3] = v11 * a8; } if ( a2 ) { if ( a3 ) { *(double *)a2 = -(1.0 - a8); *(double *)(a2 + 8) = v10; *(double *)(a2 + 16) = a8; *(_QWORD *)(a2 + 24) = *(_QWORD *)&a8 ^ 0x8000000000000000LL; *(double *)a3 = -(1.0 - a7); *(_QWORD *)(a3 + 8) = *(_QWORD *)&a7 ^ 0x8000000000000000LL; *(double *)(a3 + 16) = a7; *(double *)(a3 + 24) = v11; if ( a4 ) { if ( a5 && a6 ) { for ( i = 0; i < 4; ++i ) { *(_QWORD *)(a4 + 8LL * i) = 0LL; *(_QWORD *)(a6 + 8LL * i) = 0LL; } *a5 = 0x3FF0000000000000LL; a5[1] = 0xBFF0000000000000LL; a5[2] = 0x3FF0000000000000LL; a5[3] = 0xBFF0000000000000LL; } } } } return 4LL; }
21,171
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
int EvalBasisLinear(REAL s, REAL t, REAL wP[4], REAL wDs[4], REAL wDt[4], REAL wDss[4], REAL wDst[4], REAL wDtt[4]) { REAL sC = 1.0f - s; REAL tC = 1.0f - t; if (wP) { wP[0] = sC * tC; wP[1] = s * tC; wP[2] = s * t; wP[3] = sC * t; } if (wDs && wDt) { wDs[0] = -tC; wDs[1] = tC; wDs[2] = t; wDs[3] = -t; wDt[0] = -sC; wDt[1] = -s; wDt[2] = s; wDt[3] = sC; if (wDss && wDst && wDtt) { for(int i = 0; i < 4; ++i) { wDss[i] = 0.0f; wDtt[i] = 0.0f; } wDst[0] = 1.0f; wDst[1] = -1.0f; wDst[2] = 1.0f; wDst[3] = -1.0f; } } return 4; }
O1
cpp
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*): movss 0x5116b(%rip), %xmm3 # 0xb2000 movaps %xmm3, %xmm2 subss %xmm0, %xmm2 subss %xmm1, %xmm3 testq %rdi, %rdi je 0x60ed4 movaps %xmm2, %xmm4 mulss %xmm3, %xmm4 movss %xmm4, (%rdi) movaps %xmm3, %xmm4 mulss %xmm0, %xmm4 movss %xmm4, 0x4(%rdi) movaps %xmm0, %xmm4 mulss %xmm1, %xmm4 movss %xmm4, 0x8(%rdi) movaps %xmm2, %xmm4 mulss %xmm1, %xmm4 movss %xmm4, 0xc(%rdi) testq %rsi, %rsi sete %al testq %rdx, %rdx sete %dil orb %al, %dil jne 0x60f5c movaps 0x568c3(%rip), %xmm4 # 0xb77b0 movaps %xmm3, %xmm5 xorps %xmm4, %xmm5 movss %xmm5, (%rsi) movss %xmm3, 0x4(%rsi) movss %xmm1, 0x8(%rsi) xorps %xmm4, %xmm1 movss %xmm1, 0xc(%rsi) movaps %xmm2, %xmm1 xorps %xmm4, %xmm1 movss %xmm1, (%rdx) xorps %xmm0, %xmm4 movss %xmm4, 0x4(%rdx) movss %xmm0, 0x8(%rdx) movss %xmm2, 0xc(%rdx) testq %rcx, %rcx sete %al testq %r8, %r8 sete %dl orb %al, %dl testq %r9, %r9 sete %al orb %dl, %al jne 0x60f5c xorl %eax, %eax xorl %edx, %edx movl %eax, (%rcx,%rdx,4) movl %eax, (%r9,%rdx,4) incq %rdx cmpq $0x4, %rdx jne 0x60f41 movaps 0x56868(%rip), %xmm0 # 0xb77c0 movups %xmm0, (%r8) movl $0x4, %eax retq
_ZN10OpenSubdiv6v3_6_03Far8internal15EvalBasisLinearIfEEiT_S4_PS4_S5_S5_S5_S5_S5_: movss xmm3, cs:dword_B2000 movaps xmm2, xmm3 subss xmm2, xmm0 subss xmm3, xmm1 test rdi, rdi jz short loc_60ED4 movaps xmm4, xmm2 mulss xmm4, xmm3 movss dword ptr [rdi], xmm4 movaps xmm4, xmm3 mulss xmm4, xmm0 movss dword ptr [rdi+4], xmm4 movaps xmm4, xmm0 mulss xmm4, xmm1 movss dword ptr [rdi+8], xmm4 movaps xmm4, xmm2 mulss xmm4, xmm1 movss dword ptr [rdi+0Ch], xmm4 loc_60ED4: test rsi, rsi setz al test rdx, rdx setz dil or dil, al jnz short loc_60F5C movaps xmm4, cs:xmmword_B77B0 movaps xmm5, xmm3 xorps xmm5, xmm4 movss dword ptr [rsi], xmm5 movss dword ptr [rsi+4], xmm3 movss dword ptr [rsi+8], xmm1 xorps xmm1, xmm4 movss dword ptr [rsi+0Ch], xmm1 movaps xmm1, xmm2 xorps xmm1, xmm4 movss dword ptr [rdx], xmm1 xorps xmm4, xmm0 movss dword ptr [rdx+4], xmm4 movss dword ptr [rdx+8], xmm0 movss dword ptr [rdx+0Ch], xmm2 test rcx, rcx setz al test r8, r8 setz dl or dl, al test r9, r9 setz al or al, dl jnz short loc_60F5C xor eax, eax xor edx, edx loc_60F41: mov [rcx+rdx*4], eax mov [r9+rdx*4], eax inc rdx cmp rdx, 4 jnz short loc_60F41 movaps xmm0, cs:xmmword_B77C0 movups xmmword ptr [r8], xmm0 loc_60F5C: mov eax, 4 retn
long long OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>( float *a1, float *a2, float *a3, long long a4, _OWORD *a5, long long a6, float a7, float a8) { float v8; // xmm2_4 float v9; // xmm3_4 long long i; // rdx v8 = 1.0 - a7; v9 = 1.0 - a8; if ( a1 ) { *a1 = v8 * v9; a1[1] = v9 * a7; a1[2] = a7 * a8; a1[3] = v8 * a8; } if ( a2 != 0LL && a3 != 0LL ) { *a2 = -v9; a2[1] = v9; a2[2] = a8; a2[3] = -a8; *a3 = -v8; a3[1] = -a7; a3[2] = a7; a3[3] = v8; if ( a4 != 0 && a5 != 0LL && a6 != 0 ) { for ( i = 0LL; i != 4; ++i ) { *(_DWORD *)(a4 + 4 * i) = 0; *(_DWORD *)(a6 + 4 * i) = 0; } *a5 = xmmword_B77C0; } } return 4LL; }
EvalBasisLinear<float>: MOVSS XMM3,dword ptr [0x001b2000] MOVAPS XMM2,XMM3 SUBSS XMM2,XMM0 SUBSS XMM3,XMM1 TEST RDI,RDI JZ 0x00160ed4 MOVAPS XMM4,XMM2 MULSS XMM4,XMM3 MOVSS dword ptr [RDI],XMM4 MOVAPS XMM4,XMM3 MULSS XMM4,XMM0 MOVSS dword ptr [RDI + 0x4],XMM4 MOVAPS XMM4,XMM0 MULSS XMM4,XMM1 MOVSS dword ptr [RDI + 0x8],XMM4 MOVAPS XMM4,XMM2 MULSS XMM4,XMM1 MOVSS dword ptr [RDI + 0xc],XMM4 LAB_00160ed4: TEST RSI,RSI SETZ AL TEST RDX,RDX SETZ DIL OR DIL,AL JNZ 0x00160f5c MOVAPS XMM4,xmmword ptr [0x001b77b0] MOVAPS XMM5,XMM3 XORPS XMM5,XMM4 MOVSS dword ptr [RSI],XMM5 MOVSS dword ptr [RSI + 0x4],XMM3 MOVSS dword ptr [RSI + 0x8],XMM1 XORPS XMM1,XMM4 MOVSS dword ptr [RSI + 0xc],XMM1 MOVAPS XMM1,XMM2 XORPS XMM1,XMM4 MOVSS dword ptr [RDX],XMM1 XORPS XMM4,XMM0 MOVSS dword ptr [RDX + 0x4],XMM4 MOVSS dword ptr [RDX + 0x8],XMM0 MOVSS dword ptr [RDX + 0xc],XMM2 TEST RCX,RCX SETZ AL TEST R8,R8 SETZ DL OR DL,AL TEST R9,R9 SETZ AL OR AL,DL JNZ 0x00160f5c XOR EAX,EAX XOR EDX,EDX LAB_00160f41: MOV dword ptr [RCX + RDX*0x4],EAX MOV dword ptr [R9 + RDX*0x4],EAX INC RDX CMP RDX,0x4 JNZ 0x00160f41 MOVAPS XMM0,xmmword ptr [0x001b77c0] MOVUPS xmmword ptr [R8],XMM0 LAB_00160f5c: MOV EAX,0x4 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*) */ int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float> (float param_1,float param_2,float *param_3,float *param_4,float *param_5, float *param_6,float *param_7,float *param_8) { uint uVar1; int8 uVar2; long lVar3; float fVar4; float fVar5; fVar4 = DAT_001b2000 - param_1; fVar5 = DAT_001b2000 - param_2; if (param_3 != (float *)0x0) { *param_3 = fVar4 * fVar5; param_3[1] = fVar5 * param_1; param_3[2] = param_1 * param_2; param_3[3] = fVar4 * param_2; } uVar1 = _DAT_001b77b0; if (param_5 != (float *)0x0 && param_4 != (float *)0x0) { *param_4 = (float)((uint)fVar5 ^ _DAT_001b77b0); param_4[1] = fVar5; param_4[2] = param_2; param_4[3] = (float)((uint)param_2 ^ uVar1); *param_5 = (float)((uint)fVar4 ^ uVar1); param_5[1] = (float)(uVar1 ^ (uint)param_1); param_5[2] = param_1; param_5[3] = fVar4; if (param_8 != (float *)0x0 && (param_7 != (float *)0x0 && param_6 != (float *)0x0)) { lVar3 = 0; do { param_6[lVar3] = 0.0; param_8[lVar3] = 0.0; uVar2 = _UNK_001b77c8; lVar3 = lVar3 + 1; } while (lVar3 != 4); *(int8 *)param_7 = _DAT_001b77c0; *(int8 *)(param_7 + 2) = uVar2; } } return 4; }
21,172
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
int EvalBasisLinear(REAL s, REAL t, REAL wP[4], REAL wDs[4], REAL wDt[4], REAL wDss[4], REAL wDst[4], REAL wDtt[4]) { REAL sC = 1.0f - s; REAL tC = 1.0f - t; if (wP) { wP[0] = sC * tC; wP[1] = s * tC; wP[2] = s * t; wP[3] = sC * t; } if (wDs && wDt) { wDs[0] = -tC; wDs[1] = tC; wDs[2] = t; wDs[3] = -t; wDt[0] = -sC; wDt[1] = -s; wDt[2] = s; wDt[3] = sC; if (wDss && wDst && wDtt) { for(int i = 0; i < 4; ++i) { wDss[i] = 0.0f; wDtt[i] = 0.0f; } wDst[0] = 1.0f; wDst[1] = -1.0f; wDst[2] = 1.0f; wDst[3] = -1.0f; } } return 4; }
O2
cpp
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*): movsd 0x488ab(%rip), %xmm3 # 0xbe508 movapd %xmm3, %xmm2 subsd %xmm0, %xmm2 subsd %xmm1, %xmm3 testq %rdi, %rdi je 0x75c9f movapd %xmm3, %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] movapd %xmm2, %xmm5 unpcklpd %xmm0, %xmm5 # xmm5 = xmm5[0],xmm0[0] mulpd %xmm4, %xmm5 movupd %xmm5, (%rdi) movapd %xmm0, %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] movapd %xmm1, %xmm5 unpcklpd %xmm1, %xmm5 # xmm5 = xmm5[0],xmm1[0] mulpd %xmm4, %xmm5 movupd %xmm5, 0x10(%rdi) testq %rsi, %rsi sete %al testq %rdx, %rdx sete %dil orb %al, %dil jne 0x75d38 movapd 0x48953(%rip), %xmm4 # 0xbe610 movapd %xmm3, %xmm5 xorpd %xmm4, %xmm5 movlpd %xmm5, (%rsi) movsd %xmm3, 0x8(%rsi) movsd %xmm1, 0x10(%rsi) xorpd %xmm4, %xmm1 movlpd %xmm1, 0x18(%rsi) movapd %xmm2, %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] xorpd %xmm4, %xmm1 movupd %xmm1, (%rdx) movsd %xmm0, 0x10(%rdx) movsd %xmm2, 0x18(%rdx) testq %rcx, %rcx sete %al testq %r8, %r8 sete %dl orb %al, %dl testq %r9, %r9 sete %al orb %dl, %al jne 0x75d38 xorl %eax, %eax cmpq $0x4, %rax je 0x75d25 andq $0x0, (%rcx,%rax,8) andq $0x0, (%r9,%rax,8) incq %rax jmp 0x75d10 movapd 0x4be53(%rip), %xmm0 # 0xc1b80 movupd %xmm0, (%r8) movupd %xmm0, 0x10(%r8) pushq $0x4 popq %rax retq
_ZN10OpenSubdiv6v3_6_03Far8internal15EvalBasisLinearIdEEiT_S4_PS4_S5_S5_S5_S5_S5_: movsd xmm3, cs:qword_BE508 movapd xmm2, xmm3 subsd xmm2, xmm0 subsd xmm3, xmm1 test rdi, rdi jz short loc_75C9F movapd xmm4, xmm3 unpcklpd xmm4, xmm3 movapd xmm5, xmm2 unpcklpd xmm5, xmm0 mulpd xmm5, xmm4 movupd xmmword ptr [rdi], xmm5 movapd xmm4, xmm0 unpcklpd xmm4, xmm2 movapd xmm5, xmm1 unpcklpd xmm5, xmm1 mulpd xmm5, xmm4 movupd xmmword ptr [rdi+10h], xmm5 loc_75C9F: test rsi, rsi setz al test rdx, rdx setz dil or dil, al jnz loc_75D38 movapd xmm4, cs:xmmword_BE610 movapd xmm5, xmm3 xorpd xmm5, xmm4 movlpd qword ptr [rsi], xmm5 movsd qword ptr [rsi+8], xmm3 movsd qword ptr [rsi+10h], xmm1 xorpd xmm1, xmm4 movlpd qword ptr [rsi+18h], xmm1 movapd xmm1, xmm2 unpcklpd xmm1, xmm0 xorpd xmm1, xmm4 movupd xmmword ptr [rdx], xmm1 movsd qword ptr [rdx+10h], xmm0 movsd qword ptr [rdx+18h], xmm2 test rcx, rcx setz al test r8, r8 setz dl or dl, al test r9, r9 setz al or al, dl jnz short loc_75D38 xor eax, eax loc_75D10: cmp rax, 4 jz short loc_75D25 and qword ptr [rcx+rax*8], 0 and qword ptr [r9+rax*8], 0 inc rax jmp short loc_75D10 loc_75D25: movapd xmm0, cs:xmmword_C1B80 movupd xmmword ptr [r8], xmm0 movupd xmmword ptr [r8+10h], xmm0 loc_75D38: push 4 pop rax retn
long long OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<double>( __m128d *a1, double *a2, __m128d *a3, long long a4, _OWORD *a5, long long a6, __m128d a7, __m128d a8) { __m128d v8; // xmm2 __m128d v9; // xmm3 __m128d v10; // xmm1 long long i; // rax v9 = (__m128d)0x3FF0000000000000uLL; v8 = (__m128d)0x3FF0000000000000uLL; v8.m128d_f64[0] = 1.0 - a7.m128d_f64[0]; v9.m128d_f64[0] = 1.0 - a8.m128d_f64[0]; if ( a1 ) { *a1 = _mm_mul_pd(_mm_unpacklo_pd(v8, a7), _mm_unpacklo_pd(v9, v9)); a1[1] = _mm_mul_pd(_mm_unpacklo_pd(a8, a8), _mm_unpacklo_pd(a7, v8)); } if ( a2 != 0LL && a3 != 0LL ) { *a2 = -v9.m128d_f64[0]; a2[1] = v9.m128d_f64[0]; a2[2] = a8.m128d_f64[0]; a2[3] = -a8.m128d_f64[0]; v10 = _mm_unpacklo_pd(v8, a7); v10.m128d_f64[0] = -v10.m128d_f64[0]; v10.m128d_f64[1] = -v10.m128d_f64[1]; *a3 = v10; a3[1].m128d_f64[0] = a7.m128d_f64[0]; a3[1].m128d_f64[1] = v8.m128d_f64[0]; if ( a4 != 0 && a5 != 0LL && a6 != 0 ) { for ( i = 0LL; i != 4; ++i ) { *(_QWORD *)(a4 + 8 * i) = 0LL; *(_QWORD *)(a6 + 8 * i) = 0LL; } *a5 = xmmword_C1B80; a5[1] = xmmword_C1B80; } } return 4LL; }
EvalBasisLinear<double>: MOVSD XMM3,qword ptr [0x001be508] MOVAPD XMM2,XMM3 SUBSD XMM2,XMM0 SUBSD XMM3,XMM1 TEST RDI,RDI JZ 0x00175c9f MOVAPD XMM4,XMM3 UNPCKLPD XMM4,XMM3 MOVAPD XMM5,XMM2 UNPCKLPD XMM5,XMM0 MULPD XMM5,XMM4 MOVUPD xmmword ptr [RDI],XMM5 MOVAPD XMM4,XMM0 UNPCKLPD XMM4,XMM2 MOVAPD XMM5,XMM1 UNPCKLPD XMM5,XMM1 MULPD XMM5,XMM4 MOVUPD xmmword ptr [RDI + 0x10],XMM5 LAB_00175c9f: TEST RSI,RSI SETZ AL TEST RDX,RDX SETZ DIL OR DIL,AL JNZ 0x00175d38 MOVAPD XMM4,xmmword ptr [0x001be610] MOVAPD XMM5,XMM3 XORPD XMM5,XMM4 MOVLPD qword ptr [RSI],XMM5 MOVSD qword ptr [RSI + 0x8],XMM3 MOVSD qword ptr [RSI + 0x10],XMM1 XORPD XMM1,XMM4 MOVLPD qword ptr [RSI + 0x18],XMM1 MOVAPD XMM1,XMM2 UNPCKLPD XMM1,XMM0 XORPD XMM1,XMM4 MOVUPD xmmword ptr [RDX],XMM1 MOVSD qword ptr [RDX + 0x10],XMM0 MOVSD qword ptr [RDX + 0x18],XMM2 TEST RCX,RCX SETZ AL TEST R8,R8 SETZ DL OR DL,AL TEST R9,R9 SETZ AL OR AL,DL JNZ 0x00175d38 XOR EAX,EAX LAB_00175d10: CMP RAX,0x4 JZ 0x00175d25 AND qword ptr [RCX + RAX*0x8],0x0 AND qword ptr [R9 + RAX*0x8],0x0 INC RAX JMP 0x00175d10 LAB_00175d25: MOVAPD XMM0,xmmword ptr [0x001c1b80] MOVUPD xmmword ptr [R8],XMM0 MOVUPD xmmword ptr [R8 + 0x10],XMM0 LAB_00175d38: PUSH 0x4 POP RAX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<double>(double, double, double*, double*, double*, double*, double*, double*) */ int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<double> (double param_1,double param_2,double *param_3,double *param_4,double *param_5, double *param_6,double *param_7,double *param_8) { ulong uVar1; ulong uVar2; long lVar3; double dVar4; double dVar5; dVar4 = DAT_001be508 - param_1; dVar5 = DAT_001be508 - param_2; if (param_3 != (double *)0x0) { *param_3 = dVar4 * dVar5; param_3[1] = param_1 * dVar5; param_3[2] = param_2 * param_1; param_3[3] = param_2 * dVar4; } uVar2 = _UNK_001be618; uVar1 = _DAT_001be610; if (param_5 != (double *)0x0 && param_4 != (double *)0x0) { *param_4 = (double)((ulong)dVar5 ^ _DAT_001be610); param_4[1] = dVar5; param_4[2] = param_2; param_4[3] = (double)((ulong)param_2 ^ uVar1); *param_5 = (double)((ulong)dVar4 ^ uVar1); param_5[1] = (double)((ulong)param_1 ^ uVar2); param_5[2] = param_1; param_5[3] = dVar4; if (param_8 != (double *)0x0 && (param_7 != (double *)0x0 && param_6 != (double *)0x0)) { for (lVar3 = 0; dVar5 = _UNK_001c1b88, dVar4 = _DAT_001c1b80, lVar3 != 4; lVar3 = lVar3 + 1) { param_6[lVar3] = 0.0; param_8[lVar3] = 0.0; } *param_7 = _DAT_001c1b80; param_7[1] = dVar5; param_7[2] = dVar4; param_7[3] = dVar5; } } return 4; }
21,173
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
int EvalBasisLinear(REAL s, REAL t, REAL wP[4], REAL wDs[4], REAL wDt[4], REAL wDss[4], REAL wDst[4], REAL wDtt[4]) { REAL sC = 1.0f - s; REAL tC = 1.0f - t; if (wP) { wP[0] = sC * tC; wP[1] = s * tC; wP[2] = s * t; wP[3] = sC * t; } if (wDs && wDt) { wDs[0] = -tC; wDs[1] = tC; wDs[2] = t; wDs[3] = -t; wDt[0] = -sC; wDt[1] = -s; wDt[2] = s; wDt[3] = sC; if (wDss && wDst && wDtt) { for(int i = 0; i < 4; ++i) { wDss[i] = 0.0f; wDtt[i] = 0.0f; } wDst[0] = 1.0f; wDst[1] = -1.0f; wDst[2] = 1.0f; wDst[3] = -1.0f; } } return 4; }
O3
cpp
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*): movss 0x51aad(%rip), %xmm3 # 0xb5000 movaps %xmm3, %xmm2 subss %xmm0, %xmm2 subss %xmm1, %xmm3 testq %rdi, %rdi je 0x6357a movaps %xmm2, %xmm4 unpcklps %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1] shufps $0x14, %xmm4, %xmm4 # xmm4 = xmm4[0,1,1,0] movaps %xmm3, %xmm5 shufps $0x0, %xmm1, %xmm5 # xmm5 = xmm5[0,0],xmm1[0,0] mulps %xmm4, %xmm5 movups %xmm5, (%rdi) testq %rsi, %rsi sete %al testq %rdx, %rdx sete %dil orb %al, %dil jne 0x635fc movaps 0x51add(%rip), %xmm4 # 0xb5070 movaps %xmm3, %xmm5 xorps %xmm4, %xmm5 movss %xmm5, (%rsi) movss %xmm3, 0x4(%rsi) movss %xmm1, 0x8(%rsi) xorps %xmm4, %xmm1 movss %xmm1, 0xc(%rsi) movaps %xmm2, %xmm1 unpcklps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1] xorps %xmm4, %xmm1 movlps %xmm1, (%rdx) movss %xmm0, 0x8(%rdx) movss %xmm2, 0xc(%rdx) testq %rcx, %rcx sete %al testq %r8, %r8 sete %dl orb %al, %dl testq %r9, %r9 sete %al orb %dl, %al jne 0x635fc xorl %eax, %eax xorl %edx, %edx movl %eax, (%rcx,%rdx,4) movl %eax, (%r9,%rdx,4) incq %rdx cmpq $0x4, %rdx jne 0x635e1 movaps 0x57648(%rip), %xmm0 # 0xbac40 movups %xmm0, (%r8) movl $0x4, %eax retq
_ZN10OpenSubdiv6v3_6_03Far8internal15EvalBasisLinearIfEEiT_S4_PS4_S5_S5_S5_S5_S5_: movss xmm3, cs:dword_B5000 movaps xmm2, xmm3 subss xmm2, xmm0 subss xmm3, xmm1 test rdi, rdi jz short loc_6357A movaps xmm4, xmm2 unpcklps xmm4, xmm0 shufps xmm4, xmm4, 14h movaps xmm5, xmm3 shufps xmm5, xmm1, 0 mulps xmm5, xmm4 movups xmmword ptr [rdi], xmm5 loc_6357A: test rsi, rsi setz al test rdx, rdx setz dil or dil, al jnz short loc_635FC movaps xmm4, cs:xmmword_B5070 movaps xmm5, xmm3 xorps xmm5, xmm4 movss dword ptr [rsi], xmm5 movss dword ptr [rsi+4], xmm3 movss dword ptr [rsi+8], xmm1 xorps xmm1, xmm4 movss dword ptr [rsi+0Ch], xmm1 movaps xmm1, xmm2 unpcklps xmm1, xmm0 xorps xmm1, xmm4 movlps qword ptr [rdx], xmm1 movss dword ptr [rdx+8], xmm0 movss dword ptr [rdx+0Ch], xmm2 test rcx, rcx setz al test r8, r8 setz dl or dl, al test r9, r9 setz al or al, dl jnz short loc_635FC xor eax, eax xor edx, edx loc_635E1: mov [rcx+rdx*4], eax mov [r9+rdx*4], eax inc rdx cmp rdx, 4 jnz short loc_635E1 movaps xmm0, cs:xmmword_BAC40 movups xmmword ptr [r8], xmm0 loc_635FC: mov eax, 4 retn
long long OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>( __m128 *a1, long long a2, long long a3, long long a4, _OWORD *a5, long long a6, __m128 a7, __m128 a8) { __m128 v8; // xmm2 __m128 v9; // xmm3 __m128 v10; // xmm4 long long i; // rdx v9 = (__m128)0x3F800000u; v8 = (__m128)0x3F800000u; v8.m128_f32[0] = 1.0 - a7.m128_f32[0]; v9.m128_f32[0] = 1.0 - a8.m128_f32[0]; if ( a1 ) { v10 = _mm_unpacklo_ps(v8, a7); *a1 = _mm_mul_ps(_mm_shuffle_ps(v9, a8, 0), _mm_shuffle_ps(v10, v10, 20)); } if ( a2 != 0 && a3 != 0 ) { *(float *)a2 = -v9.m128_f32[0]; *(_DWORD *)(a2 + 4) = v9.m128_i32[0]; *(_DWORD *)(a2 + 8) = a8.m128_i32[0]; *(float *)(a2 + 12) = -a8.m128_f32[0]; _mm_storel_ps((double *)a3, _mm_xor_ps(_mm_unpacklo_ps(v8, a7), (__m128)xmmword_B5070)); *(_DWORD *)(a3 + 8) = a7.m128_i32[0]; *(_DWORD *)(a3 + 12) = v8.m128_i32[0]; if ( a4 != 0 && a5 != 0LL && a6 != 0 ) { for ( i = 0LL; i != 4; ++i ) { *(_DWORD *)(a4 + 4 * i) = 0; *(_DWORD *)(a6 + 4 * i) = 0; } *a5 = xmmword_BAC40; } } return 4LL; }
EvalBasisLinear<float>: MOVSS XMM3,dword ptr [0x001b5000] MOVAPS XMM2,XMM3 SUBSS XMM2,XMM0 SUBSS XMM3,XMM1 TEST RDI,RDI JZ 0x0016357a MOVAPS XMM4,XMM2 UNPCKLPS XMM4,XMM0 SHUFPS XMM4,XMM4,0x14 MOVAPS XMM5,XMM3 SHUFPS XMM5,XMM1,0x0 MULPS XMM5,XMM4 MOVUPS xmmword ptr [RDI],XMM5 LAB_0016357a: TEST RSI,RSI SETZ AL TEST RDX,RDX SETZ DIL OR DIL,AL JNZ 0x001635fc MOVAPS XMM4,xmmword ptr [0x001b5070] MOVAPS XMM5,XMM3 XORPS XMM5,XMM4 MOVSS dword ptr [RSI],XMM5 MOVSS dword ptr [RSI + 0x4],XMM3 MOVSS dword ptr [RSI + 0x8],XMM1 XORPS XMM1,XMM4 MOVSS dword ptr [RSI + 0xc],XMM1 MOVAPS XMM1,XMM2 UNPCKLPS XMM1,XMM0 XORPS XMM1,XMM4 MOVLPS qword ptr [RDX],XMM1 MOVSS dword ptr [RDX + 0x8],XMM0 MOVSS dword ptr [RDX + 0xc],XMM2 TEST RCX,RCX SETZ AL TEST R8,R8 SETZ DL OR DL,AL TEST R9,R9 SETZ AL OR AL,DL JNZ 0x001635fc XOR EAX,EAX XOR EDX,EDX LAB_001635e1: MOV dword ptr [RCX + RDX*0x4],EAX MOV dword ptr [R9 + RDX*0x4],EAX INC RDX CMP RDX,0x4 JNZ 0x001635e1 MOVAPS XMM0,xmmword ptr [0x001bac40] MOVUPS xmmword ptr [R8],XMM0 LAB_001635fc: MOV EAX,0x4 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float>(float, float, float*, float*, float*, float*, float*, float*) */ int OpenSubdiv::v3_6_0::Far::internal::EvalBasisLinear<float> (float param_1,float param_2,float *param_3,float *param_4,float *param_5, float *param_6,float *param_7,float *param_8) { uint uVar1; uint uVar2; int8 uVar3; long lVar4; float fVar5; float fVar6; fVar5 = DAT_001b5000 - param_1; fVar6 = DAT_001b5000 - param_2; if (param_3 != (float *)0x0) { *param_3 = fVar6 * fVar5; param_3[1] = fVar6 * param_1; param_3[2] = param_2 * param_1; param_3[3] = param_2 * fVar5; } uVar2 = _UNK_001b5074; uVar1 = _DAT_001b5070; if (param_5 != (float *)0x0 && param_4 != (float *)0x0) { *param_4 = (float)((uint)fVar6 ^ _DAT_001b5070); param_4[1] = fVar6; param_4[2] = param_2; param_4[3] = (float)((uint)param_2 ^ uVar1); *(ulong *)param_5 = CONCAT44((uint)param_1 ^ uVar2,(uint)fVar5 ^ uVar1); param_5[2] = param_1; param_5[3] = fVar5; if (param_8 != (float *)0x0 && (param_7 != (float *)0x0 && param_6 != (float *)0x0)) { lVar4 = 0; do { param_6[lVar4] = 0.0; param_8[lVar4] = 0.0; uVar3 = _UNK_001bac48; lVar4 = lVar4 + 1; } while (lVar4 != 4); *(int8 *)param_7 = _DAT_001bac40; *(int8 *)(param_7 + 2) = uVar3; } } return 4; }
21,174
blst_uint64_from_fp
corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/exports.c
void blst_uint64_from_fp(unsigned long long ret[6], const vec384 a) { const union { long one; char little; } is_endian = { 1 }; if (sizeof(limb_t) == 8 || is_endian.little) { from_fp((limb_t *)ret, a); } else { vec384 out; int i; from_fp(out, a); for (i = 0; i < 6; i++) ret[i] = out[2*i] | ((unsigned long long)out[2*i+1] << 32); } }
O2
c
blst_uint64_from_fp: pushq %rbp movq %rsp, %rbp popq %rbp jmp 0x565c4
blst_uint64_from_fp: push rbp mov rbp, rsp pop rbp jmp from_fp
long long blst_uint64_from_fp(long long a1, long long a2) { return from_fp(a1, a2); }
blst_uint64_from_fp: PUSH RBP MOV RBP,RSP POP RBP JMP 0x001565c4
void blst_uint64_from_fp(void) { from_fp(); return; }
21,175
ma_keyseg_read
eloqsql/storage/maria/ma_open.c
uchar *_ma_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) keyseg->bit_pos= (uint16)(keyseg->null_pos + (keyseg->null_bit == 7)); else { keyseg->bit_pos= (uint16)keyseg->null_pos; keyseg->null_pos= 0; } return ptr; }
O3
c
ma_keyseg_read: pushq %rbp movq %rsp, %rbp movq %rdi, %rax movb (%rdi), %cl movb %cl, 0x18(%rsi) movzbl 0x1(%rdi), %edx movw %dx, 0x16(%rsi) movb 0x2(%rdi), %cl movb %cl, 0x19(%rsi) movb 0x3(%rdi), %dil movb %dil, 0x1a(%rsi) movzbl 0x4(%rax), %edi shll $0x8, %edi orl %edx, %edi movw %di, 0x16(%rsi) movb 0x5(%rax), %dl movb %dl, 0x1b(%rsi) movzwl 0x6(%rax), %edx rolw $0x8, %dx movw %dx, 0x12(%rsi) movzwl 0x8(%rax), %edx rolw $0x8, %dx movw %dx, 0x14(%rsi) movl 0xa(%rax), %edx bswapl %edx movl %edx, 0x8(%rsi) movzwl 0x10(%rax), %edx rolw $0x8, %dx movzwl %dx, %edx movzbl 0xf(%rax), %edi shll $0x10, %edi movzbl 0xe(%rax), %r8d shll $0x18, %r8d orl %edi, %r8d orl %edx, %r8d movl %r8d, 0xc(%rsi) movq $0x0, (%rsi) testb %cl, %cl je 0x36f50 xorl %edi, %edi cmpb $0x7, %cl sete %dil addl %edi, %edx jmp 0x36f57 movl $0x0, 0xc(%rsi) movw %dx, 0x10(%rsi) addq $0x12, %rax popq %rbp retq
_ma_keyseg_read: push rbp mov rbp, rsp mov rax, rdi mov cl, [rdi] mov [rsi+18h], cl movzx edx, byte ptr [rdi+1] mov [rsi+16h], dx mov cl, [rdi+2] mov [rsi+19h], cl mov dil, [rdi+3] mov [rsi+1Ah], dil movzx edi, byte ptr [rax+4] shl edi, 8 or edi, edx mov [rsi+16h], di mov dl, [rax+5] mov [rsi+1Bh], dl movzx edx, word ptr [rax+6] rol dx, 8 mov [rsi+12h], dx movzx edx, word ptr [rax+8] rol dx, 8 mov [rsi+14h], dx mov edx, [rax+0Ah] bswap edx mov [rsi+8], edx movzx edx, word ptr [rax+10h] rol dx, 8 movzx edx, dx movzx edi, byte ptr [rax+0Fh] shl edi, 10h movzx r8d, byte ptr [rax+0Eh] shl r8d, 18h or r8d, edi or r8d, edx mov [rsi+0Ch], r8d mov qword ptr [rsi], 0 test cl, cl jz short loc_36F50 xor edi, edi cmp cl, 7 setz dil add edx, edi jmp short loc_36F57 loc_36F50: mov dword ptr [rsi+0Ch], 0 loc_36F57: mov [rsi+10h], dx add rax, 12h pop rbp retn
long long ma_keyseg_read(long long a1, long long a2) { __int16 v2; // dx char v3; // cl unsigned __int16 v4; // dx *(_BYTE *)(a2 + 24) = *(_BYTE *)a1; v2 = *(unsigned __int8 *)(a1 + 1); *(_WORD *)(a2 + 22) = v2; v3 = *(_BYTE *)(a1 + 2); *(_BYTE *)(a2 + 25) = v3; *(_BYTE *)(a2 + 26) = *(_BYTE *)(a1 + 3); *(_WORD *)(a2 + 22) = v2 | (*(unsigned __int8 *)(a1 + 4) << 8); *(_BYTE *)(a2 + 27) = *(_BYTE *)(a1 + 5); *(_WORD *)(a2 + 18) = __ROL2__(*(_WORD *)(a1 + 6), 8); *(_WORD *)(a2 + 20) = __ROL2__(*(_WORD *)(a1 + 8), 8); *(_DWORD *)(a2 + 8) = _byteswap_ulong(*(_DWORD *)(a1 + 10)); v4 = __ROL2__(*(_WORD *)(a1 + 16), 8); *(_DWORD *)(a2 + 12) = v4 | (*(unsigned __int8 *)(a1 + 15) << 16) | (*(unsigned __int8 *)(a1 + 14) << 24); *(_QWORD *)a2 = 0LL; if ( v3 ) v4 += v3 == 7; else *(_DWORD *)(a2 + 12) = 0; *(_WORD *)(a2 + 16) = v4; return a1 + 18; }
_ma_keyseg_read: PUSH RBP MOV RBP,RSP MOV RAX,RDI MOV CL,byte ptr [RDI] MOV byte ptr [RSI + 0x18],CL MOVZX EDX,byte ptr [RDI + 0x1] MOV word ptr [RSI + 0x16],DX MOV CL,byte ptr [RDI + 0x2] MOV byte ptr [RSI + 0x19],CL MOV DIL,byte ptr [RDI + 0x3] MOV byte ptr [RSI + 0x1a],DIL MOVZX EDI,byte ptr [RAX + 0x4] SHL EDI,0x8 OR EDI,EDX MOV word ptr [RSI + 0x16],DI MOV DL,byte ptr [RAX + 0x5] MOV byte ptr [RSI + 0x1b],DL MOVZX EDX,word ptr [RAX + 0x6] ROL DX,0x8 MOV word ptr [RSI + 0x12],DX MOVZX EDX,word ptr [RAX + 0x8] ROL DX,0x8 MOV word ptr [RSI + 0x14],DX MOV EDX,dword ptr [RAX + 0xa] BSWAP EDX MOV dword ptr [RSI + 0x8],EDX MOVZX EDX,word ptr [RAX + 0x10] ROL DX,0x8 MOVZX EDX,DX MOVZX EDI,byte ptr [RAX + 0xf] SHL EDI,0x10 MOVZX R8D,byte ptr [RAX + 0xe] SHL R8D,0x18 OR R8D,EDI OR R8D,EDX MOV dword ptr [RSI + 0xc],R8D MOV qword ptr [RSI],0x0 TEST CL,CL JZ 0x00136f50 XOR EDI,EDI CMP CL,0x7 SETZ DIL ADD EDX,EDI JMP 0x00136f57 LAB_00136f50: MOV dword ptr [RSI + 0xc],0x0 LAB_00136f57: MOV word ptr [RSI + 0x10],DX ADD RAX,0x12 POP RBP RET
int1 * _ma_keyseg_read(int1 *param_1,int8 *param_2) { char cVar1; byte bVar2; uint uVar3; ushort uVar4; *(int1 *)(param_2 + 3) = *param_1; bVar2 = param_1[1]; *(ushort *)((long)param_2 + 0x16) = (ushort)bVar2; cVar1 = param_1[2]; *(char *)((long)param_2 + 0x19) = cVar1; *(int1 *)((long)param_2 + 0x1a) = param_1[3]; *(ushort *)((long)param_2 + 0x16) = CONCAT11(param_1[4],bVar2); *(int1 *)((long)param_2 + 0x1b) = param_1[5]; *(ushort *)((long)param_2 + 0x12) = *(ushort *)(param_1 + 6) << 8 | *(ushort *)(param_1 + 6) >> 8; *(ushort *)((long)param_2 + 0x14) = *(ushort *)(param_1 + 8) << 8 | *(ushort *)(param_1 + 8) >> 8; uVar3 = *(uint *)(param_1 + 10); *(uint *)(param_2 + 1) = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18; uVar4 = *(ushort *)(param_1 + 0x10) << 8 | *(ushort *)(param_1 + 0x10) >> 8; *(uint *)((long)param_2 + 0xc) = (uint)(byte)param_1[0xe] << 0x18 | (uint)(byte)param_1[0xf] << 0x10 | (uint)uVar4; *param_2 = 0; if (cVar1 == '\0') { *(int4 *)((long)param_2 + 0xc) = 0; } else { uVar4 = uVar4 + (cVar1 == '\a'); } *(ushort *)(param_2 + 2) = uVar4; return param_1 + 0x12; }
21,176
ConfigMgr::Configure(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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>>>>, std::basic_string_view<char, std::char_traits<char>>)
SylCore-WoTLK/src/common/Configuration/Config.cpp
void ConfigMgr::Configure(std::string const& initFileName, std::vector<std::string> args, std::string_view modulesConfigList /*= {}*/) { _filename = initFileName; _args = std::move(args); // Add modules config if exist if (!modulesConfigList.empty()) { for (auto const& itr : Acore::Tokenize(modulesConfigList, ',', false)) { _additonalFiles.emplace_back(itr); } } }
O0
cpp
ConfigMgr::Configure(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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>>>>, std::basic_string_view<char, std::char_traits<char>>): subq $0x88, %rsp movq %rdx, (%rsp) movq %rcx, 0x78(%rsp) movq %r8, 0x80(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq %rdx, 0x60(%rsp) movq 0x68(%rsp), %rsi leaq 0x24ab55(%rip), %rdi # 0x3d53e8 callq 0x6ffd0 movq (%rsp), %rsi leaq 0x24b8e5(%rip), %rdi # 0x3d6188 callq 0x18e370 leaq 0x78(%rsp), %rdi callq 0x91350 testb $0x1, %al jne 0x18a982 movq 0x78(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx leaq 0x40(%rsp), %rdi movl $0x2c, %ecx xorl %r8d, %r8d callq 0x1f56f0 leaq 0x40(%rsp), %rax movq %rax, 0x58(%rsp) movq 0x58(%rsp), %rdi callq 0x179ab0 movq %rax, 0x28(%rsp) movq 0x58(%rsp), %rdi callq 0x179ae0 movq %rax, 0x20(%rsp) leaq 0x28(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0x179b10 xorb $-0x1, %al testb $0x1, %al jne 0x18a936 leaq 0x40(%rsp), %rdi callq 0x10b7e0 jmp 0x18a980 leaq 0x28(%rsp), %rdi callq 0x179b50 movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rsi leaq 0x24b81f(%rip), %rdi # 0x3d6170 callq 0x179b60 jmp 0x18a958 jmp 0x18a95a leaq 0x28(%rsp), %rdi callq 0x179be0 jmp 0x18a915 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x10(%rsp) movl %eax, 0xc(%rsp) leaq 0x40(%rsp), %rdi callq 0x10b7e0 jmp 0x18a98a jmp 0x18a982 addq $0x88, %rsp retq movq 0x10(%rsp), %rdi callq 0x21d50 nopw %cs:(%rax,%rax)
_ZN9ConfigMgr9ConfigureERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS5_SaIS5_EESt17basic_string_viewIcS3_E: sub rsp, 88h mov [rsp+88h+var_88], rdx mov [rsp+88h+var_10], rcx mov [rsp+88h+var_8], r8 mov [rsp+88h+var_18], rdi mov [rsp+88h+var_20], rsi mov [rsp+88h+var_28], rdx mov rsi, [rsp+88h+var_20] lea rdi, _ZN12_GLOBAL__N_19_filenameB5cxx11E; `anonymous namespace'::_filename call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&) mov rsi, [rsp+88h+var_88] lea rdi, _ZN12_GLOBAL__N_15_argsB5cxx11E; `anonymous namespace'::_args call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSEOS7_; std::vector<std::string>::operator=(std::vector<std::string>&&) lea rdi, [rsp+88h+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5emptyEv; std::string_view::empty(void) test al, 1 jnz loc_18A982 mov rax, [rsp+88h+var_10] mov [rsp+88h+var_58], rax mov rax, [rsp+88h+var_8] mov [rsp+88h+var_50], rax mov rsi, [rsp+88h+var_58] mov rdx, [rsp+88h+var_50] lea rdi, [rsp+88h+var_48] mov ecx, 2Ch ; ',' xor r8d, r8d call _ZN5Acore8TokenizeESt17basic_string_viewIcSt11char_traitsIcEEcb; Acore::Tokenize(std::string_view,char,bool) lea rax, [rsp+88h+var_48] mov [rsp+88h+var_30], rax mov rdi, [rsp+88h+var_30] call _ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EE5beginEv; std::vector<std::string_view>::begin(void) mov [rsp+88h+var_60], rax mov rdi, [rsp+88h+var_30] call _ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EE3endEv; std::vector<std::string_view>::end(void) mov [rsp+88h+var_68], rax loc_18A915: lea rdi, [rsp+88h+var_60] lea rsi, [rsp+88h+var_68] call _ZN9__gnu_cxxeqIPSt17basic_string_viewIcSt11char_traitsIcEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE xor al, 0FFh test al, 1 jnz short loc_18A936 lea rdi, [rsp+88h+var_48] call _ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EED2Ev; std::vector<std::string_view>::~vector() jmp short loc_18A980 loc_18A936: lea rdi, [rsp+88h+var_60] call _ZNK9__gnu_cxx17__normal_iteratorIPSt17basic_string_viewIcSt11char_traitsIcEESt6vectorIS4_SaIS4_EEEdeEv; __gnu_cxx::__normal_iterator<std::string_view *,std::vector<std::string_view>>::operator*(void) mov [rsp+88h+var_70], rax mov rsi, [rsp+88h+var_70] lea rdi, _ZN12_GLOBAL__N_115_additonalFilesB5cxx11E; `anonymous namespace'::_additonalFiles call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJRKSt17basic_string_viewIcS3_EEEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string_view const&>(std::string_view const&) jmp short $+2 loc_18A958: jmp short $+2 loc_18A95A: lea rdi, [rsp+88h+var_60] call _ZN9__gnu_cxx17__normal_iteratorIPSt17basic_string_viewIcSt11char_traitsIcEESt6vectorIS4_SaIS4_EEEppEv; __gnu_cxx::__normal_iterator<std::string_view *,std::vector<std::string_view>>::operator++(void) jmp short loc_18A915 mov rcx, rax mov eax, edx mov [rsp+arg_8], rcx mov [rsp+arg_4], eax lea rdi, [rsp+arg_38] call _ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EED2Ev; std::vector<std::string_view>::~vector() jmp short loc_18A98A loc_18A980: jmp short $+2 loc_18A982: add rsp, 88h retn loc_18A98A: mov rdi, [rsp+arg_8] call __Unwind_Resume
char ConfigMgr::Configure(long long a1, long long a2, long long a3, long long a4, long long a5) { char result; // al int v6; // r9d long long v8; // [rsp+18h] [rbp-70h] long long v9; // [rsp+20h] [rbp-68h] BYREF _QWORD v10[3]; // [rsp+28h] [rbp-60h] BYREF long long v11[3]; // [rsp+40h] [rbp-48h] BYREF long long *v12; // [rsp+58h] [rbp-30h] long long v13; // [rsp+60h] [rbp-28h] long long v14; // [rsp+68h] [rbp-20h] long long v15; // [rsp+70h] [rbp-18h] long long v16; // [rsp+78h] [rbp-10h] BYREF long long v17; // [rsp+80h] [rbp-8h] v16 = a4; v17 = a5; v15 = a1; v14 = a2; v13 = a3; std::string::operator=((long long)&`anonymous namespace'::_filename[abi:cxx11], a2); std::vector<std::string>::operator=(&`anonymous namespace'::_args[abi:cxx11], a3); result = std::string_view::empty(&v16); if ( (result & 1) == 0 ) { v10[1] = v16; v10[2] = v17; Acore::Tokenize((unsigned int)v11, v16, v17, 44, 0, v6); v12 = v11; v10[0] = std::vector<std::string_view>::begin((long long)v11); v9 = std::vector<std::string_view>::end((long long)v12); while ( !__gnu_cxx::operator==<std::string_view *,std::vector<std::string_view>>((long long)v10, (long long)&v9) ) { v8 = __gnu_cxx::__normal_iterator<std::string_view *,std::vector<std::string_view>>::operator*((long long)v10); std::vector<std::string>::emplace_back<std::string_view const&>( &`anonymous namespace'::_additonalFiles[abi:cxx11], v8); __gnu_cxx::__normal_iterator<std::string_view *,std::vector<std::string_view>>::operator++(v10); } return std::vector<std::string_view>::~vector(v11); } return result; }
21,177
ConfigMgr::Configure(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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>>>>, std::basic_string_view<char, std::char_traits<char>>)
SylCore-WoTLK/src/common/Configuration/Config.cpp
void ConfigMgr::Configure(std::string const& initFileName, std::vector<std::string> args, std::string_view modulesConfigList /*= {}*/) { _filename = initFileName; _args = std::move(args); // Add modules config if exist if (!modulesConfigList.empty()) { for (auto const& itr : Acore::Tokenize(modulesConfigList, ',', false)) { _additonalFiles.emplace_back(itr); } } }
O3
cpp
ConfigMgr::Configure(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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>>>>, std::basic_string_view<char, std::char_traits<char>>): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %r8, %rbx movq %rcx, %r14 movq %rdx, %r15 leaq 0xc8593(%rip), %rdi # 0x16d208 callq 0x3eb0e movq 0xc8bdf(%rip), %rax # 0x16d860 movups (%r15), %xmm0 movq 0x10(%r15), %rcx movq %rcx, 0xc8bd0(%rip) # 0x16d860 movaps 0xc8bb9(%rip), %xmm1 # 0x16d850 movaps %xmm0, 0xc8bb2(%rip) # 0x16d850 movq %rsp, %rdi movaps %xmm1, (%rdi) movq %rax, 0x10(%rdi) xorps %xmm0, %xmm0 movups %xmm0, (%r15) movq $0x0, 0x10(%r15) callq 0x2857a testq %r14, %r14 je 0xa4d1a movq %rsp, %r15 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx movl $0x2c, %ecx xorl %r8d, %r8d callq 0xc4c9c movq (%r15), %rbx movq 0x8(%r15), %r15 cmpq %r15, %rbx je 0xa4d05 leaq 0xc8b43(%rip), %r14 # 0x16d830 movq %r14, %rdi movq %rbx, %rsi callq 0x9e31c addq $0x10, %rbx cmpq %r15, %rbx jne 0xa4ced movq (%rsp), %rbx testq %rbx, %rbx je 0xa4d1a movq 0x10(%rsp), %rsi subq %rbx, %rsi movq %rbx, %rdi callq 0xd32e8 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq (%rsp), %rdi testq %rdi, %rdi je 0xa4d3d movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0xd32e8 movq %rbx, %rdi callq 0x1bba0
_ZN9ConfigMgr9ConfigureERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS5_SaIS5_EESt17basic_string_viewIcS3_E: push r15 push r14 push rbx sub rsp, 20h mov rbx, r8 mov r14, rcx mov r15, rdx lea rdi, _ZN12_GLOBAL__N_19_filenameB5cxx11E; `anonymous namespace'::_filename call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) mov rax, cs:qword_16D860 movups xmm0, xmmword ptr [r15] mov rcx, [r15+10h] mov cs:qword_16D860, rcx movaps xmm1, cs:_ZN12_GLOBAL__N_15_argsB5cxx11E; `anonymous namespace'::_args movaps cs:_ZN12_GLOBAL__N_15_argsB5cxx11E, xmm0; `anonymous namespace'::_args mov rdi, rsp; void * movaps xmmword ptr [rdi], xmm1 mov [rdi+10h], rax xorps xmm0, xmm0 movups xmmword ptr [r15], xmm0 mov qword ptr [r15+10h], 0 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() test r14, r14 jz short loc_A4D1A mov r15, rsp mov rdi, r15 mov rsi, r14 mov rdx, rbx mov ecx, 2Ch ; ',' xor r8d, r8d call _ZN5Acore8TokenizeESt17basic_string_viewIcSt11char_traitsIcEEcb; Acore::Tokenize(std::string_view,char,bool) mov rbx, [r15] mov r15, [r15+8] cmp rbx, r15 jz short loc_A4D05 lea r14, _ZN12_GLOBAL__N_115_additonalFilesB5cxx11E; `anonymous namespace'::_additonalFiles loc_A4CED: mov rdi, r14 mov rsi, rbx call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJRKSt17basic_string_viewIcS3_EEEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string_view const&>(std::string_view const&) add rbx, 10h cmp rbx, r15 jnz short loc_A4CED mov rbx, [rsp+38h+var_38] loc_A4D05: test rbx, rbx jz short loc_A4D1A mov rsi, [rsp+38h+var_28] sub rsi, rbx; unsigned __int64 mov rdi, rbx; void * call _ZdlPvm; operator delete(void *,ulong) loc_A4D1A: add rsp, 20h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+0]; void * test rdi, rdi jz short loc_A4D3D mov rsi, [rsp+arg_8] sub rsi, rdi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_A4D3D: mov rdi, rbx call __Unwind_Resume
void ConfigMgr::Configure(_DWORD a1, _QWORD *a2, long long a3, long long a4, long long a5) { long long v8; // rax __int128 v9; // xmm0 __int128 v10; // xmm1 char *v11; // rbx char *v12; // r15 __int128 v13; // [rsp+0h] [rbp-38h] BYREF long long v14; // [rsp+10h] [rbp-28h] std::string::_M_assign(&`anonymous namespace'::_filename[abi:cxx11], a2); v8 = qword_16D860; v9 = *(_OWORD *)a3; qword_16D860 = *(_QWORD *)(a3 + 16); v10 = `anonymous namespace'::_args[abi:cxx11]; `anonymous namespace'::_args[abi:cxx11] = v9; v13 = v10; v14 = v8; *(_OWORD *)a3 = 0LL; *(_QWORD *)(a3 + 16) = 0LL; std::vector<std::string>::~vector(&v13); if ( a4 ) { Acore::Tokenize(&v13, a4, a5, 44LL, 0LL); v12 = (char *)*((_QWORD *)&v13 + 1); v11 = (char *)v13; if ( (_QWORD)v13 != *((_QWORD *)&v13 + 1) ) { do { std::vector<std::string>::emplace_back<std::string_view const&>( (long long)&`anonymous namespace'::_additonalFiles[abi:cxx11], (long long)v11); v11 += 16; } while ( v11 != v12 ); v11 = (char *)v13; } if ( v11 ) operator delete(v11, v14 - (_QWORD)v11); } }
Configure: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,R8 MOV R14,RCX MOV R15,RDX LEA RDI,[0x26d208] CALL 0x0013eb0e MOV RAX,qword ptr [0x0026d860] MOVUPS XMM0,xmmword ptr [R15] MOV RCX,qword ptr [R15 + 0x10] MOV qword ptr [0x0026d860],RCX MOVAPS XMM1,xmmword ptr [0x0026d850] MOVAPS xmmword ptr [0x0026d850],XMM0 MOV RDI,RSP MOVAPS xmmword ptr [RDI],XMM1 MOV qword ptr [RDI + 0x10],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15],XMM0 MOV qword ptr [R15 + 0x10],0x0 CALL 0x0012857a TEST R14,R14 JZ 0x001a4d1a MOV R15,RSP MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX MOV ECX,0x2c XOR R8D,R8D CALL 0x001c4c9c MOV RBX,qword ptr [R15] MOV R15,qword ptr [R15 + 0x8] CMP RBX,R15 JZ 0x001a4d05 LEA R14,[0x26d830] LAB_001a4ced: MOV RDI,R14 MOV RSI,RBX CALL 0x0019e31c LAB_001a4cf8: ADD RBX,0x10 CMP RBX,R15 JNZ 0x001a4ced MOV RBX,qword ptr [RSP] LAB_001a4d05: TEST RBX,RBX JZ 0x001a4d1a MOV RSI,qword ptr [RSP + 0x10] SUB RSI,RBX MOV RDI,RBX CALL 0x001d32e8 LAB_001a4d1a: ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* ConfigMgr::Configure(std::__cxx11::string const&, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >, std::basic_string_view<char, std::char_traits<char> >) */ void ConfigMgr::Configure (int8 param_1,string *param_2,int8 *param_3,long param_4, int8 param_5) { basic_string_view *pbVar1; basic_string_view *pbVar2; basic_string_view *local_38; basic_string_view *pbStack_30; long local_28; std::__cxx11::string::_M_assign((string *)&(anonymous_namespace)::_filename_abi_cxx11_,param_2); local_38 = (basic_string_view *)(anonymous_namespace)::_args_abi_cxx11_._0_8_; pbStack_30 = (basic_string_view *)(anonymous_namespace)::_args_abi_cxx11_._8_8_; local_28 = (anonymous_namespace)::_args_abi_cxx11_._16_8_; (anonymous_namespace)::_args_abi_cxx11_._0_8_ = *param_3; (anonymous_namespace)::_args_abi_cxx11_._8_8_ = param_3[1]; (anonymous_namespace)::_args_abi_cxx11_._16_8_ = param_3[2]; *param_3 = 0; param_3[1] = 0; param_3[2] = 0; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_38); if (param_4 != 0) { Acore::Tokenize(&local_38,param_4,param_5,0x2c,0); pbVar1 = pbStack_30; for (pbVar2 = local_38; pbVar2 != pbVar1; pbVar2 = pbVar2 + 0x10) { /* try { // try from 001a4ced to 001a4cf7 has its CatchHandler @ 001a4d24 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::basic_string_view<char,std::char_traits<char>>const&> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) &(anonymous_namespace)::_additonalFiles_abi_cxx11_,pbVar2); } if (local_38 != (basic_string_view *)0x0) { operator_delete(local_38,local_28 - (long)local_38); } } return; }
21,178
my_strntol_mb2_or_mb4
eloqsql/strings/ctype-ucs2.c
static long my_strntol_mb2_or_mb4(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative= 0; int overflow; int cnv; my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; register unsigned int cutlim; register uint32 cutoff; register uint32 res; register const uchar *s= (const uchar*) nptr; register const uchar *e= (const uchar*) nptr+l; const uchar *save; *err= 0; do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { switch (wc) { case ' ' : break; case '\t': break; case '-' : negative= !negative; break; case '+' : break; default : goto bs; } } else /* No more characters or bad multibyte sequence */ { if (endptr != NULL ) *endptr= (char*) s; err[0]= (cnv==MY_CS_ILSEQ) ? EILSEQ : EDOM; return 0; } s+= cnv; } while (1); bs: overflow= 0; res= 0; save= s; cutoff= ((uint32)~0L) / (uint32) base; cutlim= (uint) (((uint32)~0L) % (uint32) base); do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { s+= cnv; if (wc >= '0' && wc <= '9') wc-= '0'; else if (wc >= 'A' && wc <= 'Z') wc= wc - 'A' + 10; else if (wc >= 'a' && wc <= 'z') wc= wc - 'a' + 10; else break; if ((int)wc >= base) break; if (res > cutoff || (res == cutoff && wc > cutlim)) overflow= 1; else { res*= (uint32) base; res+= wc; } } else if (cnv == MY_CS_ILSEQ) { if (endptr !=NULL ) *endptr = (char*) s; err[0]= EILSEQ; return 0; } else { /* No more characters */ break; } } while(1); if (endptr != NULL) *endptr = (char *) s; if (s == save) { err[0]= EDOM; return 0L; } if (negative) { if (res > (uint32) INT_MIN32) overflow= 1; } else if (res > INT_MAX32) overflow= 1; if (overflow) { err[0]= ERANGE; return negative ? INT_MIN32 : INT_MAX32; } return (negative ? -((long) res) : (long) res); }
O3
c
my_strntol_mb2_or_mb4: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, -0x40(%rbp) movl %ecx, -0x34(%rbp) movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %r14 movq 0xb8(%rdi), %rax movq 0x28(%rax), %r12 addq %rsi, %r13 movq %r9, -0x50(%rbp) movl $0x0, (%r9) leaq -0x30(%rbp), %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0x46942 movl $0x0, -0x38(%rbp) leaq -0x30(%rbp), %rbx movq -0x30(%rbp), %rcx cmpq $0x2a, %rcx jg 0x46912 cmpq $0x9, %rcx je 0x4692a cmpq $0x20, %rcx je 0x4692a jmp 0x46974 cmpq $0x2b, %rcx je 0x4692a cmpq $0x2d, %rcx jne 0x46974 xorl %ecx, %ecx cmpl $0x0, -0x38(%rbp) sete %cl movl %ecx, -0x38(%rbp) movl %eax, %eax addq %rax, %r15 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jg 0x468fa movq -0x40(%rbp), %rcx testq %rcx, %rcx je 0x4694e movq %r15, (%rcx) testl %eax, %eax movl $0x54, %eax movl $0x21, %ecx cmovel %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, (%rax) xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x34(%rbp) movl %edx, %ebx movl %eax, -0x44(%rbp) leaq -0x30(%rbp), %rsi movq %r14, %rdi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0x46a3a movl %ebx, %ecx movq %rcx, -0x60(%rbp) xorl %ecx, %ecx movq %r15, %rbx xorl %r8d, %r8d movq %rbx, %rsi movl %eax, %ebx addq %rsi, %rbx movq -0x30(%rbp), %rsi leaq -0x30(%rsi), %rax cmpq $0x9, %rax ja 0x469c5 movq %rax, -0x30(%rbp) jmp 0x469ea leaq -0x41(%rsi), %rax cmpq $0x19, %rax ja 0x469d5 addq $-0x37, %rsi jmp 0x469e3 leaq -0x61(%rsi), %rax cmpq $0x19, %rax ja 0x46a4a addq $-0x57, %rsi movq %rsi, -0x30(%rbp) movq %rsi, %rax cmpl -0x34(%rbp), %eax jge 0x46a4a movl $0x1, %esi cmpl -0x44(%rbp), %ecx ja 0x46a0d jne 0x46a04 movl -0x44(%rbp), %edi cmpq -0x60(%rbp), %rax ja 0x46a0f imull -0x34(%rbp), %ecx addl %eax, %ecx movl %r8d, %esi movl %ecx, %edi movl %edi, -0x54(%rbp) movl %esi, -0x58(%rbp) movq %r14, %rdi leaq -0x30(%rbp), %rsi movq %rbx, %rdx movq %r13, %rcx callq *%r12 movl -0x54(%rbp), %edi movl -0x58(%rbp), %esi movl %edi, %ecx movl %esi, %r8d testl %eax, %eax jg 0x469a9 jmp 0x46a41 xorl %edi, %edi movq %r15, %rbx xorl %esi, %esi testl %eax, %eax je 0x46aa9 movl %esi, %r8d movl %edi, %ecx movq -0x40(%rbp), %rax testq %rax, %rax je 0x46a56 movq %rbx, (%rax) cmpq %r15, %rbx je 0x46a9a cmpl $0x80000001, %ecx # imm = 0x80000001 movl $0x1, %eax movl %r8d, %esi cmovael %eax, %esi testl %ecx, %ecx cmovsl %eax, %r8d movl -0x38(%rbp), %edi testl %edi, %edi cmovnel %esi, %r8d testl %r8d, %r8d je 0x46ac4 testl %edi, %edi movq -0x50(%rbp), %rax movl $0x22, (%rax) movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF movq $-0x80000000, %rax # imm = 0x80000000 jmp 0x46ace movq -0x50(%rbp), %rax movl $0x21, (%rax) jmp 0x46963 movq -0x40(%rbp), %rax testq %rax, %rax je 0x46ab5 movq %rbx, (%rax) movq -0x50(%rbp), %rax movl $0x54, (%rax) jmp 0x46963 movl %ecx, %ecx movq %rcx, %rax negq %rax testl %edi, %edi cmoveq %rcx, %rax jmp 0x46965
my_strntol_mb2_or_mb4: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_40], r8 mov [rbp+var_34], ecx mov r13, rdx mov r15, rsi mov r14, rdi mov rax, [rdi+0B8h] mov r12, [rax+28h] add r13, rsi mov [rbp+var_50], r9 mov dword ptr [r9], 0 lea rsi, [rbp+var_30] mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle short loc_46942 mov [rbp+var_38], 0 lea rbx, [rbp+var_30] loc_468FA: mov rcx, [rbp+var_30] cmp rcx, 2Ah ; '*' jg short loc_46912 cmp rcx, 9 jz short loc_4692A cmp rcx, 20h ; ' ' jz short loc_4692A jmp short loc_46974 loc_46912: cmp rcx, 2Bh ; '+' jz short loc_4692A cmp rcx, 2Dh ; '-' jnz short loc_46974 xor ecx, ecx cmp [rbp+var_38], 0 setz cl mov [rbp+var_38], ecx loc_4692A: mov eax, eax add r15, rax mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r13 call r12 test eax, eax jg short loc_468FA loc_46942: mov rcx, [rbp+var_40] test rcx, rcx jz short loc_4694E mov [rcx], r15 loc_4694E: test eax, eax mov eax, 54h ; 'T' mov ecx, 21h ; '!' cmovz ecx, eax mov rax, [rbp+var_50] mov [rax], ecx loc_46963: xor eax, eax loc_46965: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_46974: mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_34] mov ebx, edx mov [rbp+var_44], eax lea rsi, [rbp+var_30] mov rdi, r14 mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle loc_46A3A mov ecx, ebx mov [rbp+var_60], rcx xor ecx, ecx mov rbx, r15 xor r8d, r8d loc_469A9: mov rsi, rbx mov ebx, eax add rbx, rsi mov rsi, [rbp+var_30] lea rax, [rsi-30h] cmp rax, 9 ja short loc_469C5 mov [rbp+var_30], rax jmp short loc_469EA loc_469C5: lea rax, [rsi-41h] cmp rax, 19h ja short loc_469D5 add rsi, 0FFFFFFFFFFFFFFC9h jmp short loc_469E3 loc_469D5: lea rax, [rsi-61h] cmp rax, 19h ja short loc_46A4A add rsi, 0FFFFFFFFFFFFFFA9h loc_469E3: mov [rbp+var_30], rsi mov rax, rsi loc_469EA: cmp eax, [rbp+var_34] jge short loc_46A4A mov esi, 1 cmp ecx, [rbp+var_44] ja short loc_46A0D jnz short loc_46A04 mov edi, [rbp+var_44] cmp rax, [rbp+var_60] ja short loc_46A0F loc_46A04: imul ecx, [rbp+var_34] add ecx, eax mov esi, r8d loc_46A0D: mov edi, ecx loc_46A0F: mov [rbp+var_54], edi mov [rbp+var_58], esi mov rdi, r14 lea rsi, [rbp+var_30] mov rdx, rbx mov rcx, r13 call r12 mov edi, [rbp+var_54] mov esi, [rbp+var_58] mov ecx, edi mov r8d, esi test eax, eax jg loc_469A9 jmp short loc_46A41 loc_46A3A: xor edi, edi mov rbx, r15 xor esi, esi loc_46A41: test eax, eax jz short loc_46AA9 mov r8d, esi mov ecx, edi loc_46A4A: mov rax, [rbp+var_40] test rax, rax jz short loc_46A56 mov [rax], rbx loc_46A56: cmp rbx, r15 jz short loc_46A9A cmp ecx, 80000001h mov eax, 1 mov esi, r8d cmovnb esi, eax test ecx, ecx cmovs r8d, eax mov edi, [rbp+var_38] test edi, edi cmovnz r8d, esi test r8d, r8d jz short loc_46AC4 test edi, edi mov rax, [rbp+var_50] mov dword ptr [rax], 22h ; '"' mov ecx, 7FFFFFFFh mov rax, 0FFFFFFFF80000000h jmp short loc_46ACE loc_46A9A: mov rax, [rbp+var_50] mov dword ptr [rax], 21h ; '!' jmp loc_46963 loc_46AA9: mov rax, [rbp+var_40] test rax, rax jz short loc_46AB5 mov [rax], rbx loc_46AB5: mov rax, [rbp+var_50] mov dword ptr [rax], 54h ; 'T' jmp loc_46963 loc_46AC4: mov ecx, ecx mov rax, rcx neg rax test edi, edi loc_46ACE: cmovz rax, rcx jmp loc_46965
long long my_strntol_mb2_or_mb4(long long a1, long long a2, long long a3, unsigned int a4, _QWORD *a5, int *a6) { long long v6; // r15 long long ( *v8)(long long, _QWORD *, long long, long long); // r12 long long v9; // r13 int v10; // eax int v11; // ecx long long result; // rax int v13; // eax long long v14; // rcx long long v15; // rbx long long v16; // r8 unsigned long long v17; // rax long long v18; // rsi unsigned int v19; // esi unsigned int v20; // edi int v21; // esi bool v22; // zf unsigned int v24; // [rsp+1Ch] [rbp-44h] BOOL v26; // [rsp+28h] [rbp-38h] _QWORD v28[6]; // [rsp+30h] [rbp-30h] BYREF v6 = a2; v8 = *(long long ( **)(long long, _QWORD *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); v9 = a2 + a3; *a6 = 0; v10 = v8(a1, v28, a2, a2 + a3); if ( v10 <= 0 ) { LABEL_11: if ( a5 ) *a5 = v6; v11 = 33; if ( !v10 ) v11 = 84; *a6 = v11; return 0LL; } v26 = 0; while ( 1 ) { if ( v28[0] > 42LL ) { if ( v28[0] != 43LL ) { if ( v28[0] != 45LL ) break; v26 = !v26; } goto LABEL_10; } if ( v28[0] != 9LL && v28[0] != 32LL ) break; LABEL_10: v6 += (unsigned int)v10; v10 = v8(a1, v28, v6, v9); if ( v10 <= 0 ) goto LABEL_11; } v24 = 0xFFFFFFFF / a4; v13 = v8(a1, v28, v6, v9); if ( v13 > 0 ) { LODWORD(v14) = 0; v15 = v6; v16 = 0LL; while ( 1 ) { v15 += (unsigned int)v13; v17 = v28[0] - 48LL; if ( (unsigned long long)(v28[0] - 48LL) > 9 ) { if ( (unsigned long long)(v28[0] - 65LL) > 0x19 ) { if ( (unsigned long long)(v28[0] - 97LL) > 0x19 ) goto LABEL_37; v18 = v28[0] - 87LL; } else { v18 = v28[0] - 55LL; } v28[0] = v18; v17 = v18; } else { v28[0] -= 48LL; } if ( (int)v17 >= (int)a4 ) goto LABEL_37; v19 = 1; if ( (unsigned int)v14 <= v24 ) { if ( (_DWORD)v14 == v24 ) { v20 = 0xFFFFFFFF / a4; if ( v17 > 0xFFFFFFFF % a4 ) goto LABEL_32; } LODWORD(v14) = v17 + a4 * v14; v19 = v16; } v20 = v14; LABEL_32: v13 = ((long long ( *)(long long, _QWORD *, long long, long long, long long))v8)(a1, v28, v15, v9, v16); LODWORD(v14) = v20; v16 = v19; if ( v13 <= 0 ) goto LABEL_35; } } v20 = 0; v15 = v6; v19 = 0; LABEL_35: if ( !v13 ) { if ( a5 ) *a5 = v15; *a6 = 84; return 0LL; } LODWORD(v16) = v19; LODWORD(v14) = v20; LABEL_37: if ( a5 ) *a5 = v15; if ( v15 == v6 ) { *a6 = 33; return 0LL; } v21 = v16; if ( (unsigned int)v14 >= 0x80000001 ) v21 = 1; if ( (int)v14 < 0 ) LODWORD(v16) = 1; if ( v26 ) LODWORD(v16) = v21; if ( (_DWORD)v16 ) { v22 = !v26; *a6 = 34; v14 = 0x7FFFFFFFLL; result = 0xFFFFFFFF80000000LL; } else { v14 = (unsigned int)v14; result = -(long long)(unsigned int)v14; v22 = !v26; } if ( v22 ) return v14; return result; }
my_strntol_mb2_or_mb4: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV qword ptr [RBP + -0x40],R8 MOV dword ptr [RBP + -0x34],ECX MOV R13,RDX MOV R15,RSI MOV R14,RDI MOV RAX,qword ptr [RDI + 0xb8] MOV R12,qword ptr [RAX + 0x28] ADD R13,RSI MOV qword ptr [RBP + -0x50],R9 MOV dword ptr [R9],0x0 LEA RSI,[RBP + -0x30] MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x00146942 MOV dword ptr [RBP + -0x38],0x0 LEA RBX,[RBP + -0x30] LAB_001468fa: MOV RCX,qword ptr [RBP + -0x30] CMP RCX,0x2a JG 0x00146912 CMP RCX,0x9 JZ 0x0014692a CMP RCX,0x20 JZ 0x0014692a JMP 0x00146974 LAB_00146912: CMP RCX,0x2b JZ 0x0014692a CMP RCX,0x2d JNZ 0x00146974 XOR ECX,ECX CMP dword ptr [RBP + -0x38],0x0 SETZ CL MOV dword ptr [RBP + -0x38],ECX LAB_0014692a: MOV EAX,EAX ADD R15,RAX MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JG 0x001468fa LAB_00146942: MOV RCX,qword ptr [RBP + -0x40] TEST RCX,RCX JZ 0x0014694e MOV qword ptr [RCX],R15 LAB_0014694e: TEST EAX,EAX MOV EAX,0x54 MOV ECX,0x21 CMOVZ ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],ECX LAB_00146963: XOR EAX,EAX LAB_00146965: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00146974: MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x34] MOV EBX,EDX MOV dword ptr [RBP + -0x44],EAX LEA RSI,[RBP + -0x30] MOV RDI,R14 MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x00146a3a MOV ECX,EBX MOV qword ptr [RBP + -0x60],RCX XOR ECX,ECX MOV RBX,R15 XOR R8D,R8D LAB_001469a9: MOV RSI,RBX MOV EBX,EAX ADD RBX,RSI MOV RSI,qword ptr [RBP + -0x30] LEA RAX,[RSI + -0x30] CMP RAX,0x9 JA 0x001469c5 MOV qword ptr [RBP + -0x30],RAX JMP 0x001469ea LAB_001469c5: LEA RAX,[RSI + -0x41] CMP RAX,0x19 JA 0x001469d5 ADD RSI,-0x37 JMP 0x001469e3 LAB_001469d5: LEA RAX,[RSI + -0x61] CMP RAX,0x19 JA 0x00146a4a ADD RSI,-0x57 LAB_001469e3: MOV qword ptr [RBP + -0x30],RSI MOV RAX,RSI LAB_001469ea: CMP EAX,dword ptr [RBP + -0x34] JGE 0x00146a4a MOV ESI,0x1 CMP ECX,dword ptr [RBP + -0x44] JA 0x00146a0d JNZ 0x00146a04 MOV EDI,dword ptr [RBP + -0x44] CMP RAX,qword ptr [RBP + -0x60] JA 0x00146a0f LAB_00146a04: IMUL ECX,dword ptr [RBP + -0x34] ADD ECX,EAX MOV ESI,R8D LAB_00146a0d: MOV EDI,ECX LAB_00146a0f: MOV dword ptr [RBP + -0x54],EDI MOV dword ptr [RBP + -0x58],ESI MOV RDI,R14 LEA RSI,[RBP + -0x30] MOV RDX,RBX MOV RCX,R13 CALL R12 MOV EDI,dword ptr [RBP + -0x54] MOV ESI,dword ptr [RBP + -0x58] MOV ECX,EDI MOV R8D,ESI TEST EAX,EAX JG 0x001469a9 JMP 0x00146a41 LAB_00146a3a: XOR EDI,EDI MOV RBX,R15 XOR ESI,ESI LAB_00146a41: TEST EAX,EAX JZ 0x00146aa9 MOV R8D,ESI MOV ECX,EDI LAB_00146a4a: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x00146a56 MOV qword ptr [RAX],RBX LAB_00146a56: CMP RBX,R15 JZ 0x00146a9a CMP ECX,0x80000001 MOV EAX,0x1 MOV ESI,R8D CMOVNC ESI,EAX TEST ECX,ECX CMOVS R8D,EAX MOV EDI,dword ptr [RBP + -0x38] TEST EDI,EDI CMOVNZ R8D,ESI TEST R8D,R8D JZ 0x00146ac4 TEST EDI,EDI MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x22 MOV ECX,0x7fffffff MOV RAX,-0x80000000 JMP 0x00146ace LAB_00146a9a: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x21 JMP 0x00146963 LAB_00146aa9: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x00146ab5 MOV qword ptr [RAX],RBX LAB_00146ab5: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x54 JMP 0x00146963 LAB_00146ac4: MOV ECX,ECX MOV RAX,RCX NEG RAX TEST EDI,EDI LAB_00146ace: CMOVZ RAX,RCX JMP 0x00146965
ulong my_strntol_mb2_or_mb4 (long param_1,long param_2,long param_3,uint param_4,long *param_5, int4 *param_6) { code *pcVar1; bool bVar2; bool bVar3; bool bVar4; uint uVar5; uint uVar6; ulong uVar7; int4 uVar8; uint uVar9; ulong uVar10; long lVar11; ulong local_38; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); param_3 = param_3 + param_2; *param_6 = 0; uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3); if (0 < (int)uVar5) { bVar2 = false; do { if ((long)local_38 < 0x2b) { if ((local_38 != 9) && (local_38 != 0x20)) { LAB_00146974: uVar5 = (uint)(0xffffffff / (ulong)param_4); uVar6 = (*pcVar1)(param_1,&local_38,param_2,param_3); lVar11 = param_2; if ((int)uVar6 < 1) { uVar9 = 0; bVar3 = false; goto LAB_00146a41; } uVar9 = 0; bVar3 = false; goto LAB_001469a9; } } else if (local_38 != 0x2b) { if (local_38 != 0x2d) goto LAB_00146974; bVar2 = !bVar2; } param_2 = param_2 + (ulong)uVar5; uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3); } while (0 < (int)uVar5); } if (param_5 != (long *)0x0) { *param_5 = param_2; } uVar8 = 0x21; if (uVar5 == 0) { uVar8 = 0x54; } *param_6 = uVar8; return 0; while( true ) { if ((int)param_4 <= (int)uVar7) goto LAB_00146a4a; uVar6 = uVar9; bVar4 = true; if ((uVar9 <= uVar5) && ((uVar9 != uVar5 || (uVar6 = uVar5, bVar4 = true, uVar7 <= 0xffffffffU % (ulong)param_4)))) { uVar6 = uVar9 * param_4 + (int)uVar7; bVar4 = bVar3; } bVar3 = bVar4; uVar9 = uVar6; local_38 = uVar7; uVar6 = (*pcVar1)(param_1,&local_38,lVar11,param_3); if ((int)uVar6 < 1) break; LAB_001469a9: lVar11 = (ulong)uVar6 + lVar11; uVar7 = local_38 - 0x30; if (9 < uVar7) { if (local_38 - 0x41 < 0x1a) { uVar7 = local_38 - 0x37; } else { if (0x19 < local_38 - 0x61) goto LAB_00146a4a; uVar7 = local_38 - 0x57; } } } LAB_00146a41: if (uVar6 == 0) { if (param_5 != (long *)0x0) { *param_5 = lVar11; } *param_6 = 0x54; } else { LAB_00146a4a: if (param_5 != (long *)0x0) { *param_5 = lVar11; } if (lVar11 != param_2) { bVar4 = bVar3; if (0x80000000 < uVar9) { bVar4 = true; } if ((int)uVar9 < 0) { bVar3 = true; } if (bVar2) { bVar3 = bVar4; } if (bVar3) { *param_6 = 0x22; uVar10 = 0x7fffffff; uVar7 = 0xffffffff80000000; } else { uVar10 = (ulong)uVar9; uVar7 = -uVar10; } if (!bVar2) { return uVar10; } return uVar7; } *param_6 = 0x21; } return 0; }
21,179
client_mpvio_read_packet
eloqsql/libmariadb/plugins/auth/my_auth.c
static int client_mpvio_read_packet(struct st_plugin_vio *mpv, uchar **buf) { MCPVIO_EXT *mpvio= (MCPVIO_EXT*)mpv; MYSQL *mysql= mpvio->mysql; ulong pkt_len; /* there are cached data left, feed it to a plugin */ if (mpvio->cached_server_reply.pkt) { *buf= mpvio->cached_server_reply.pkt; mpvio->cached_server_reply.pkt= 0; mpvio->packets_read++; return mpvio->cached_server_reply.pkt_len; } if (mpvio->packets_read == 0) { /* the server handshake packet came from the wrong plugin, or it's mysql_change_user(). Either way, there is no data for a plugin to read. send a dummy packet to the server to initiate a dialog. */ if (client_mpvio_write_packet(mpv, 0, 0)) return (int)packet_error; } /* otherwise read the data */ if ((pkt_len= ma_net_safe_read(mysql)) == packet_error) return (int)packet_error; mpvio->last_read_packet_len= pkt_len; *buf= mysql->net.read_pos; /* was it a request to change plugins ? */ if (pkt_len && **buf == 254) return (int)packet_error; /* if yes, this plugin shan't continue */ /* the server sends \1\255 or \1\254 instead of just \255 or \254 - for us to not confuse it with an error or "change plugin" packets. We remove this escaping \1 here. See also server_mpvio_write_packet() where the escaping is done. */ if (pkt_len && **buf == 1) { (*buf)++; pkt_len--; } mpvio->packets_read++; return pkt_len; }
O0
c
client_mpvio_read_packet: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq $0x0, 0x30(%rax) je 0x18486 movq -0x20(%rbp), %rax movq 0x30(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movq -0x20(%rbp), %rax movq $0x0, 0x30(%rax) movq -0x20(%rbp), %rax movl 0x40(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x40(%rax) movq -0x20(%rbp), %rax movl 0x38(%rax), %eax movl %eax, -0x4(%rbp) jmp 0x18557 movq -0x20(%rbp), %rax cmpl $0x0, 0x40(%rax) jne 0x184b3 movq -0x10(%rbp), %rdi xorl %eax, %eax movl %eax, %edx movq %rdx, %rsi callq 0x18560 cmpl $0x0, %eax je 0x184b1 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x18557 jmp 0x184b3 movq -0x28(%rbp), %rdi callq 0x20850 movq %rax, -0x30(%rbp) movl $0xffffffff, %ecx # imm = 0xFFFFFFFF cmpq %rcx, %rax jne 0x184d6 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x18557 movq -0x30(%rbp), %rax movl %eax, %ecx movq -0x20(%rbp), %rax movl %ecx, 0x4c(%rax) movq -0x28(%rbp), %rax movq 0x20(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) cmpq $0x0, -0x30(%rbp) je 0x18513 movq -0x18(%rbp), %rax movq (%rax), %rax movzbl (%rax), %eax cmpl $0xfe, %eax jne 0x18513 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x18557 cmpq $0x0, -0x30(%rbp) je 0x18543 movq -0x18(%rbp), %rax movq (%rax), %rax movzbl (%rax), %eax cmpl $0x1, %eax jne 0x18543 movq -0x18(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movq -0x30(%rbp), %rax addq $-0x1, %rax movq %rax, -0x30(%rbp) movq -0x20(%rbp), %rax movl 0x40(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x40(%rax) movq -0x30(%rbp), %rax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq
client_mpvio_read_packet: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov rax, [rax+18h] mov [rbp+var_28], rax mov rax, [rbp+var_20] cmp qword ptr [rax+30h], 0 jz short loc_18486 mov rax, [rbp+var_20] mov rcx, [rax+30h] mov rax, [rbp+var_18] mov [rax], rcx mov rax, [rbp+var_20] mov qword ptr [rax+30h], 0 mov rax, [rbp+var_20] mov ecx, [rax+40h] add ecx, 1 mov [rax+40h], ecx mov rax, [rbp+var_20] mov eax, [rax+38h] mov [rbp+var_4], eax jmp loc_18557 loc_18486: mov rax, [rbp+var_20] cmp dword ptr [rax+40h], 0 jnz short loc_184B3 mov rdi, [rbp+var_10] xor eax, eax mov edx, eax mov rsi, rdx call client_mpvio_write_packet cmp eax, 0 jz short loc_184B1 mov [rbp+var_4], 0FFFFFFFFh jmp loc_18557 loc_184B1: jmp short $+2 loc_184B3: mov rdi, [rbp+var_28] call ma_net_safe_read mov [rbp+var_30], rax mov ecx, 0FFFFFFFFh cmp rax, rcx jnz short loc_184D6 mov [rbp+var_4], 0FFFFFFFFh jmp loc_18557 loc_184D6: mov rax, [rbp+var_30] mov ecx, eax mov rax, [rbp+var_20] mov [rax+4Ch], ecx mov rax, [rbp+var_28] mov rcx, [rax+20h] mov rax, [rbp+var_18] mov [rax], rcx cmp [rbp+var_30], 0 jz short loc_18513 mov rax, [rbp+var_18] mov rax, [rax] movzx eax, byte ptr [rax] cmp eax, 0FEh jnz short loc_18513 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_18557 loc_18513: cmp [rbp+var_30], 0 jz short loc_18543 mov rax, [rbp+var_18] mov rax, [rax] movzx eax, byte ptr [rax] cmp eax, 1 jnz short loc_18543 mov rax, [rbp+var_18] mov rcx, [rax] add rcx, 1 mov [rax], rcx mov rax, [rbp+var_30] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_30], rax loc_18543: mov rax, [rbp+var_20] mov ecx, [rax+40h] add ecx, 1 mov [rax+40h], ecx mov rax, [rbp+var_30] mov [rbp+var_4], eax loc_18557: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long client_mpvio_read_packet(long long a1, _QWORD *a2) { long long v3; // [rsp+0h] [rbp-30h] long long v4; // [rsp+8h] [rbp-28h] v4 = *(_QWORD *)(a1 + 24); if ( *(_QWORD *)(a1 + 48) ) { *a2 = *(_QWORD *)(a1 + 48); *(_QWORD *)(a1 + 48) = 0LL; ++*(_DWORD *)(a1 + 64); return *(unsigned int *)(a1 + 56); } else if ( *(_DWORD *)(a1 + 64) || !(unsigned int)client_mpvio_write_packet(a1, 0LL) ) { v3 = ma_net_safe_read(v4); if ( v3 == 0xFFFFFFFFLL ) { return (unsigned int)-1; } else { *(_DWORD *)(a1 + 76) = v3; *a2 = *(_QWORD *)(v4 + 32); if ( v3 && *(unsigned __int8 *)*a2 == 254 ) { return (unsigned int)-1; } else { if ( v3 && *(_BYTE *)*a2 == 1 ) { ++*a2; LODWORD(v3) = v3 - 1; } ++*(_DWORD *)(a1 + 64); return (unsigned int)v3; } } } else { return (unsigned int)-1; } }
client_mpvio_read_packet: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0x30],0x0 JZ 0x00118486 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x30],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x40] ADD ECX,0x1 MOV dword ptr [RAX + 0x40],ECX MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x38] MOV dword ptr [RBP + -0x4],EAX JMP 0x00118557 LAB_00118486: MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0x40],0x0 JNZ 0x001184b3 MOV RDI,qword ptr [RBP + -0x10] XOR EAX,EAX MOV EDX,EAX MOV RSI,RDX CALL 0x00118560 CMP EAX,0x0 JZ 0x001184b1 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x00118557 LAB_001184b1: JMP 0x001184b3 LAB_001184b3: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00120850 MOV qword ptr [RBP + -0x30],RAX MOV ECX,0xffffffff CMP RAX,RCX JNZ 0x001184d6 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x00118557 LAB_001184d6: MOV RAX,qword ptr [RBP + -0x30] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x4c],ECX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX CMP qword ptr [RBP + -0x30],0x0 JZ 0x00118513 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfe JNZ 0x00118513 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x00118557 LAB_00118513: CMP qword ptr [RBP + -0x30],0x0 JZ 0x00118543 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOVZX EAX,byte ptr [RAX] CMP EAX,0x1 JNZ 0x00118543 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x30] ADD RAX,-0x1 MOV qword ptr [RBP + -0x30],RAX LAB_00118543: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x40] ADD ECX,0x1 MOV dword ptr [RAX + 0x40],ECX MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x4],EAX LAB_00118557: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 client_mpvio_read_packet(long param_1,long *param_2) { long lVar1; int iVar2; long local_38; int4 local_c; lVar1 = *(long *)(param_1 + 0x18); if (*(long *)(param_1 + 0x30) == 0) { if ((*(int *)(param_1 + 0x40) == 0) && (iVar2 = client_mpvio_write_packet(param_1,0), iVar2 != 0)) { local_c = 0xffffffff; } else { local_38 = ma_net_safe_read(lVar1); if (local_38 == 0xffffffff) { local_c = 0xffffffff; } else { *(int *)(param_1 + 0x4c) = (int)local_38; *param_2 = *(long *)(lVar1 + 0x20); if ((local_38 == 0) || (*(char *)*param_2 != -2)) { if ((local_38 != 0) && (*(char *)*param_2 == '\x01')) { *param_2 = *param_2 + 1; local_38 = local_38 + -1; } *(int *)(param_1 + 0x40) = *(int *)(param_1 + 0x40) + 1; local_c = (int4)local_38; } else { local_c = 0xffffffff; } } } } else { *param_2 = *(long *)(param_1 + 0x30); *(int8 *)(param_1 + 0x30) = 0; *(int *)(param_1 + 0x40) = *(int *)(param_1 + 0x40) + 1; local_c = *(int4 *)(param_1 + 0x38); } return local_c; }
21,180
my_uca_generate_implicit_page
eloqsql/strings/ctype-uca.c
static my_bool my_uca_generate_implicit_page(MY_CHARSET_LOADER *loader, MY_UCA_WEIGHT_LEVEL *dst, uint page) { uint chc, size= 256 * dst->lengths[page] * sizeof(uint16); if (!(dst->weights[page]= (uint16 *) (loader->once_alloc)(size))) return TRUE; memset(dst->weights[page], 0, size); for (chc= 0 ; chc < 256; chc++) { uint16 *w= dst->weights[page] + chc * dst->lengths[page]; my_uca_implicit_weight_put(w, (page << 8) + chc, dst->levelno); } return FALSE; }
O0
c
my_uca_generate_implicit_page: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movl -0x1c(%rbp), %ecx movzbl (%rax,%rcx), %eax shll $0x8, %eax cltq shlq %rax movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rax movq 0x80(%rax), %rax movl -0x24(%rbp), %ecx movl %ecx, %edi callq *%rax movq -0x18(%rbp), %rcx movq 0x10(%rcx), %rcx movl -0x1c(%rbp), %edx movq %rax, (%rcx,%rdx,8) cmpq $0x0, %rax jne 0xa3bad movb $0x1, -0x1(%rbp) jmp 0xa3c34 movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl -0x1c(%rbp), %ecx movq (%rax,%rcx,8), %rdi movl -0x24(%rbp), %eax movl %eax, %edx xorl %esi, %esi callq 0x37300 movl $0x0, -0x20(%rbp) cmpl $0x100, -0x20(%rbp) # imm = 0x100 jae 0xa3c30 movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl -0x1c(%rbp), %ecx movq (%rax,%rcx,8), %rax movl -0x20(%rbp), %ecx movq -0x18(%rbp), %rdx movq 0x8(%rdx), %rdx movl -0x1c(%rbp), %esi movzbl (%rdx,%rsi), %edx imull %edx, %ecx movl %ecx, %ecx shlq %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rdi movl -0x1c(%rbp), %eax shll $0x8, %eax addl -0x20(%rbp), %eax movl %eax, %eax movl %eax, %esi movq -0x18(%rbp), %rax movl 0x30(%rax), %edx callq 0xa3c40 movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) jmp 0xa3bcf movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_uca_generate_implicit_page: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov rax, [rbp+var_18] mov rax, [rax+8] mov ecx, [rbp+var_1C] movzx eax, byte ptr [rax+rcx] shl eax, 8 cdqe shl rax, 1 mov [rbp+var_24], eax mov rax, [rbp+var_10] mov rax, [rax+80h] mov ecx, [rbp+var_24] mov edi, ecx call rax mov rcx, [rbp+var_18] mov rcx, [rcx+10h] mov edx, [rbp+var_1C] mov [rcx+rdx*8], rax cmp rax, 0 jnz short loc_A3BAD mov [rbp+var_1], 1 jmp loc_A3C34 loc_A3BAD: mov rax, [rbp+var_18] mov rax, [rax+10h] mov ecx, [rbp+var_1C] mov rdi, [rax+rcx*8] mov eax, [rbp+var_24] mov edx, eax xor esi, esi call _memset mov [rbp+var_20], 0 loc_A3BCF: cmp [rbp+var_20], 100h jnb short loc_A3C30 mov rax, [rbp+var_18] mov rax, [rax+10h] mov ecx, [rbp+var_1C] mov rax, [rax+rcx*8] mov ecx, [rbp+var_20] mov rdx, [rbp+var_18] mov rdx, [rdx+8] mov esi, [rbp+var_1C] movzx edx, byte ptr [rdx+rsi] imul ecx, edx mov ecx, ecx shl rcx, 1 add rax, rcx mov [rbp+var_30], rax mov rdi, [rbp+var_30] mov eax, [rbp+var_1C] shl eax, 8 add eax, [rbp+var_20] mov eax, eax mov esi, eax mov rax, [rbp+var_18] mov edx, [rax+30h] call my_uca_implicit_weight_put mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax jmp short loc_A3BCF loc_A3C30: mov [rbp+var_1], 0 loc_A3C34: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char my_uca_generate_implicit_page(long long a1, long long a2, unsigned int a3) { long long v3; // rax unsigned int v5; // [rsp+Ch] [rbp-24h] unsigned int i; // [rsp+10h] [rbp-20h] v5 = *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a3) << 9; v3 = (*(long long ( **)(_QWORD))(a1 + 128))(v5); *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3) = v3; if ( !v3 ) return 1; memset(*(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3), 0LL, v5); for ( i = 0; i < 0x100; ++i ) my_uca_implicit_weight_put( 2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a3) * i + *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3), i + (a3 << 8), *(unsigned int *)(a2 + 48)); return 0; }
my_uca_generate_implicit_page: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV ECX,dword ptr [RBP + -0x1c] MOVZX EAX,byte ptr [RAX + RCX*0x1] SHL EAX,0x8 CDQE SHL RAX,0x1 MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x80] MOV ECX,dword ptr [RBP + -0x24] MOV EDI,ECX CALL RAX MOV RCX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RCX + 0x10] MOV EDX,dword ptr [RBP + -0x1c] MOV qword ptr [RCX + RDX*0x8],RAX CMP RAX,0x0 JNZ 0x001a3bad MOV byte ptr [RBP + -0x1],0x1 JMP 0x001a3c34 LAB_001a3bad: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RBP + -0x1c] MOV RDI,qword ptr [RAX + RCX*0x8] MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX XOR ESI,ESI CALL 0x00137300 MOV dword ptr [RBP + -0x20],0x0 LAB_001a3bcf: CMP dword ptr [RBP + -0x20],0x100 JNC 0x001a3c30 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RAX + RCX*0x8] MOV ECX,dword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RDX + 0x8] MOV ESI,dword ptr [RBP + -0x1c] MOVZX EDX,byte ptr [RDX + RSI*0x1] IMUL ECX,EDX MOV ECX,ECX SHL RCX,0x1 ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x1c] SHL EAX,0x8 ADD EAX,dword ptr [RBP + -0x20] MOV EAX,EAX MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RAX + 0x30] CALL 0x001a3c40 MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX JMP 0x001a3bcf LAB_001a3c30: MOV byte ptr [RBP + -0x1],0x0 LAB_001a3c34: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 my_uca_generate_implicit_page(long param_1,long param_2,uint param_3) { size_t __n; long lVar1; int4 local_28; int1 local_9; __n = (long)(int)((uint)*(byte *)(*(long *)(param_2 + 8) + (ulong)param_3) << 8) << 1; lVar1 = (**(code **)(param_1 + 0x80))(__n); *(long *)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8) = lVar1; if (lVar1 == 0) { local_9 = 1; } else { memset(*(void **)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8),0,__n); for (local_28 = 0; local_28 < 0x100; local_28 = local_28 + 1) { my_uca_implicit_weight_put (*(long *)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8) + (ulong)(local_28 * *(byte *)(*(long *)(param_2 + 8) + (ulong)param_3)) * 2, param_3 * 0x100 + local_28,*(int4 *)(param_2 + 0x30)); } local_9 = 0; } return local_9; }
21,181
rtree_insert_req
eloqsql/storage/myisam/rt_index.c
static int rtree_insert_req(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *key, uint key_length, my_off_t page, my_off_t *new_page, int ins_level, int level) { uchar *k; uint nod_flag; uchar *page_buf; int res; DBUG_ENTER("rtree_insert_req"); if (!(page_buf = (uchar*)my_alloca((uint)keyinfo->block_length + HA_MAX_KEY_BUFF))) { my_errno = HA_ERR_OUT_OF_MEM; DBUG_RETURN(-1); /* purecov: inspected */ } if (!_mi_fetch_keypage(info, keyinfo, page, DFLT_INIT_HITS, page_buf, 0)) goto err1; nod_flag = mi_test_if_nod(page_buf); DBUG_PRINT("rtree", ("page: %lu level: %d ins_level: %d nod_flag: %u", (ulong) page, level, ins_level, nod_flag)); if ((ins_level == -1 && nod_flag) || /* key: go down to leaf */ (ins_level > -1 && ins_level > level)) /* branch: go down to ins_level */ { if ((k = rtree_pick_key(info, keyinfo, key, key_length, page_buf, nod_flag)) == NULL) goto err1; switch ((res = rtree_insert_req(info, keyinfo, key, key_length, _mi_kpos(nod_flag, k), new_page, ins_level, level + 1))) { case 0: /* child was not split */ { rtree_combine_rect(keyinfo->seg, k, key, k, key_length); if (_mi_write_keypage(info, keyinfo, page, DFLT_INIT_HITS, page_buf)) goto err1; goto ok; } case 1: /* child was split */ { uchar *new_key = page_buf + keyinfo->block_length + nod_flag; /* set proper MBR for key */ if (rtree_set_key_mbr(info, keyinfo, k, key_length, _mi_kpos(nod_flag, k))) goto err1; /* add new key for new page */ _mi_kpointer(info, new_key - nod_flag, *new_page); if (rtree_set_key_mbr(info, keyinfo, new_key, key_length, *new_page)) goto err1; res = rtree_add_key(info, keyinfo, new_key, key_length, page_buf, new_page); if (_mi_write_keypage(info, keyinfo, page, DFLT_INIT_HITS, page_buf)) goto err1; goto ok; } default: case -1: /* error */ { goto err1; } } } else { res = rtree_add_key(info, keyinfo, key, key_length, page_buf, new_page); if (_mi_write_keypage(info, keyinfo, page, DFLT_INIT_HITS, page_buf)) goto err1; goto ok; } ok: my_afree((uchar*)page_buf); DBUG_RETURN(res); err1: my_afree((uchar*)page_buf); DBUG_RETURN(-1); /* purecov: inspected */ }
O0
c
rtree_insert_req: pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movl 0x18(%rbp), %eax movl 0x10(%rbp), %eax movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq %rdx, -0x28(%rbp) movl %ecx, -0x2c(%rbp) movq %r8, -0x38(%rbp) movq %r9, -0x40(%rbp) movq -0x20(%rbp), %rax movzwl 0xe(%rax), %eax addl $0x4c7, %eax # imm = 0x4C7 andl $-0x10, %eax movl %eax, %ecx movq %rsp, %rax subq %rcx, %rax movq %rax, %rsp movq %rax, -0x58(%rbp) cmpq $0x0, %rax jne 0x51be1 callq 0x82360 movl $0x80, (%rax) movl $0xffffffff, -0xc(%rbp) # imm = 0xFFFFFFFF jmp 0x51ec5 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x38(%rbp), %rdx movq -0x58(%rbp), %r8 movl $0x3, %ecx xorl %r9d, %r9d callq 0x64530 cmpq $0x0, %rax jne 0x51c09 jmp 0x51ebc movq -0x58(%rbp), %rax movzbl (%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x51c2c movq -0x18(%rbp), %rax movq (%rax), %rax movl 0x17c(%rax), %eax movl %eax, -0x6c(%rbp) jmp 0x51c33 xorl %eax, %eax movl %eax, -0x6c(%rbp) jmp 0x51c33 movl -0x6c(%rbp), %eax movl %eax, -0x4c(%rbp) jmp 0x51c3b cmpl $-0x1, 0x10(%rbp) jne 0x51c47 cmpl $0x0, -0x4c(%rbp) jne 0x51c5d cmpl $-0x1, 0x10(%rbp) jle 0x51e70 movl 0x10(%rbp), %eax cmpl 0x18(%rbp), %eax jle 0x51e70 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movl -0x2c(%rbp), %ecx movq -0x58(%rbp), %r8 movl -0x4c(%rbp), %r9d callq 0x51ef0 movq %rax, -0x48(%rbp) cmpq $0x0, %rax jne 0x51c88 jmp 0x51ebc movq -0x18(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x88(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x80(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x74(%rbp) movl -0x4c(%rbp), %edi movq -0x48(%rbp), %rsi callq 0x45440 movq -0x90(%rbp), %rdi movq -0x88(%rbp), %rsi movq -0x80(%rbp), %rdx movl -0x74(%rbp), %ecx movq %rax, %r8 movq -0x40(%rbp), %r9 movl 0x10(%rbp), %r10d movl 0x18(%rbp), %r11d incl %r11d subq $0x10, %rsp movq %rsp, %rax movl %r11d, 0x8(%rax) movl %r10d, (%rax) callq 0x51b70 addq $0x10, %rsp movl %eax, -0x5c(%rbp) movl %eax, %ecx movl %ecx, -0x70(%rbp) subl $-0x1, %eax je 0x51e6e jmp 0x51d09 movl -0x70(%rbp), %eax testl %eax, %eax je 0x51d1f jmp 0x51d12 movl -0x70(%rbp), %eax subl $0x1, %eax je 0x51d65 jmp 0x51e6c movq -0x20(%rbp), %rax movq 0x28(%rax), %rdi movq -0x48(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x48(%rbp), %rcx movl -0x2c(%rbp), %r8d callq 0x54df0 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x38(%rbp), %rdx movq -0x58(%rbp), %r8 movl $0x3, %ecx callq 0x646b0 cmpl $0x0, %eax je 0x51d60 jmp 0x51ebc jmp 0x51eb2 movq -0x58(%rbp), %rax movq -0x20(%rbp), %rcx movzwl 0xe(%rcx), %ecx movslq %ecx, %rcx addq %rcx, %rax movl -0x4c(%rbp), %ecx addq %rcx, %rax movq %rax, -0x68(%rbp) movq -0x18(%rbp), %rax movq %rax, -0xb0(%rbp) movq -0x20(%rbp), %rax movq %rax, -0xa8(%rbp) movq -0x48(%rbp), %rax movq %rax, -0xa0(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x94(%rbp) movl -0x4c(%rbp), %edi movq -0x48(%rbp), %rsi callq 0x45440 movq -0xb0(%rbp), %rdi movq -0xa8(%rbp), %rsi movq -0xa0(%rbp), %rdx movl -0x94(%rbp), %ecx movq %rax, %r8 callq 0x52420 cmpl $0x0, %eax je 0x51de4 jmp 0x51ebc movq -0x18(%rbp), %rdi movq -0x68(%rbp), %rsi movl -0x4c(%rbp), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax addq %rax, %rsi movq -0x40(%rbp), %rax movq (%rax), %rdx callq 0x46ab0 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x68(%rbp), %rdx movl -0x2c(%rbp), %ecx movq -0x40(%rbp), %rax movq (%rax), %r8 callq 0x52420 cmpl $0x0, %eax je 0x51e2a jmp 0x51ebc movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x68(%rbp), %rdx movl -0x2c(%rbp), %ecx movq -0x58(%rbp), %r8 movq -0x40(%rbp), %r9 callq 0x52150 movl %eax, -0x5c(%rbp) movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x38(%rbp), %rdx movq -0x58(%rbp), %r8 movl $0x3, %ecx callq 0x646b0 cmpl $0x0, %eax je 0x51e6a jmp 0x51ebc jmp 0x51eb2 jmp 0x51e6e jmp 0x51ebc movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movl -0x2c(%rbp), %ecx movq -0x58(%rbp), %r8 movq -0x40(%rbp), %r9 callq 0x52150 movl %eax, -0x5c(%rbp) movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x38(%rbp), %rdx movq -0x58(%rbp), %r8 movl $0x3, %ecx callq 0x646b0 cmpl $0x0, %eax je 0x51eb0 jmp 0x51ebc jmp 0x51eb2 jmp 0x51eb4 movl -0x5c(%rbp), %eax movl %eax, -0xc(%rbp) jmp 0x51ec5 jmp 0x51ebe movl $0xffffffff, -0xc(%rbp) # imm = 0xFFFFFFFF movl -0xc(%rbp), %eax movl %eax, -0xb4(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x51eeb movl -0xb4(%rbp), %eax movq %rbp, %rsp popq %rbp retq callq 0x283b0
rtree_insert_req: push rbp mov rbp, rsp sub rsp, 0C0h mov eax, [rbp+arg_8] mov eax, [rbp+arg_0] mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_18], rdi mov [rbp+var_20], rsi mov [rbp+var_28], rdx mov [rbp+var_2C], ecx mov [rbp+var_38], r8 mov [rbp+var_40], r9 mov rax, [rbp+var_20] movzx eax, word ptr [rax+0Eh] add eax, 4C7h and eax, 0FFFFFFF0h mov ecx, eax mov rax, rsp sub rax, rcx mov rsp, rax mov [rbp+var_58], rax cmp rax, 0 jnz short loc_51BE1 call _my_thread_var mov dword ptr [rax], 80h mov [rbp+var_C], 0FFFFFFFFh jmp loc_51EC5 loc_51BE1: mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_38] mov r8, [rbp+var_58] mov ecx, 3 xor r9d, r9d call _mi_fetch_keypage cmp rax, 0 jnz short loc_51C09 jmp loc_51EBC loc_51C09: mov rax, [rbp+var_58] movzx eax, byte ptr [rax] and eax, 80h cmp eax, 0 jz short loc_51C2C mov rax, [rbp+var_18] mov rax, [rax] mov eax, [rax+17Ch] mov [rbp+var_6C], eax jmp short loc_51C33 loc_51C2C: xor eax, eax mov [rbp+var_6C], eax jmp short $+2 loc_51C33: mov eax, [rbp+var_6C] mov [rbp+var_4C], eax jmp short $+2 loc_51C3B: cmp [rbp+arg_0], 0FFFFFFFFh jnz short loc_51C47 cmp [rbp+var_4C], 0 jnz short loc_51C5D loc_51C47: cmp [rbp+arg_0], 0FFFFFFFFh jle loc_51E70 mov eax, [rbp+arg_0] cmp eax, [rbp+arg_8] jle loc_51E70 loc_51C5D: mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov ecx, [rbp+var_2C] mov r8, [rbp+var_58] mov r9d, [rbp+var_4C] call rtree_pick_key mov [rbp+var_48], rax cmp rax, 0 jnz short loc_51C88 jmp loc_51EBC loc_51C88: mov rax, [rbp+var_18] mov [rbp+var_90], rax mov rax, [rbp+var_20] mov [rbp+var_88], rax mov rax, [rbp+var_28] mov [rbp+var_80], rax mov eax, [rbp+var_2C] mov [rbp+var_74], eax mov edi, [rbp+var_4C] mov rsi, [rbp+var_48] call _mi_kpos mov rdi, [rbp+var_90] mov rsi, [rbp+var_88] mov rdx, [rbp+var_80] mov ecx, [rbp+var_74] mov r8, rax mov r9, [rbp+var_40] mov r10d, [rbp+arg_0] mov r11d, [rbp+arg_8] inc r11d sub rsp, 10h mov rax, rsp mov [rax+8], r11d mov [rax], r10d call rtree_insert_req add rsp, 10h mov [rbp+var_5C], eax mov ecx, eax mov [rbp+var_70], ecx sub eax, 0FFFFFFFFh jz loc_51E6E jmp short $+2 loc_51D09: mov eax, [rbp+var_70] test eax, eax jz short loc_51D1F jmp short $+2 loc_51D12: mov eax, [rbp+var_70] sub eax, 1 jz short loc_51D65 jmp loc_51E6C loc_51D1F: mov rax, [rbp+var_20] mov rdi, [rax+28h] mov rsi, [rbp+var_48] mov rdx, [rbp+var_28] mov rcx, [rbp+var_48] mov r8d, [rbp+var_2C] call rtree_combine_rect mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_38] mov r8, [rbp+var_58] mov ecx, 3 call _mi_write_keypage cmp eax, 0 jz short loc_51D60 jmp loc_51EBC loc_51D60: jmp loc_51EB2 loc_51D65: mov rax, [rbp+var_58] mov rcx, [rbp+var_20] movzx ecx, word ptr [rcx+0Eh] movsxd rcx, ecx add rax, rcx mov ecx, [rbp+var_4C] add rax, rcx mov [rbp+var_68], rax mov rax, [rbp+var_18] mov [rbp+var_B0], rax mov rax, [rbp+var_20] mov [rbp+var_A8], rax mov rax, [rbp+var_48] mov [rbp+var_A0], rax mov eax, [rbp+var_2C] mov [rbp+var_94], eax mov edi, [rbp+var_4C] mov rsi, [rbp+var_48] call _mi_kpos mov rdi, [rbp+var_B0] mov rsi, [rbp+var_A8] mov rdx, [rbp+var_A0] mov ecx, [rbp+var_94] mov r8, rax call rtree_set_key_mbr cmp eax, 0 jz short loc_51DE4 jmp loc_51EBC loc_51DE4: mov rdi, [rbp+var_18] mov rsi, [rbp+var_68] mov eax, [rbp+var_4C] mov ecx, eax xor eax, eax sub rax, rcx add rsi, rax mov rax, [rbp+var_40] mov rdx, [rax] call _mi_kpointer mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_68] mov ecx, [rbp+var_2C] mov rax, [rbp+var_40] mov r8, [rax] call rtree_set_key_mbr cmp eax, 0 jz short loc_51E2A jmp loc_51EBC loc_51E2A: mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_68] mov ecx, [rbp+var_2C] mov r8, [rbp+var_58] mov r9, [rbp+var_40] call rtree_add_key mov [rbp+var_5C], eax mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_38] mov r8, [rbp+var_58] mov ecx, 3 call _mi_write_keypage cmp eax, 0 jz short loc_51E6A jmp short loc_51EBC loc_51E6A: jmp short loc_51EB2 loc_51E6C: jmp short $+2 loc_51E6E: jmp short loc_51EBC loc_51E70: mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov ecx, [rbp+var_2C] mov r8, [rbp+var_58] mov r9, [rbp+var_40] call rtree_add_key mov [rbp+var_5C], eax mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_38] mov r8, [rbp+var_58] mov ecx, 3 call _mi_write_keypage cmp eax, 0 jz short loc_51EB0 jmp short loc_51EBC loc_51EB0: jmp short $+2 loc_51EB2: jmp short $+2 loc_51EB4: mov eax, [rbp+var_5C] mov [rbp+var_C], eax jmp short loc_51EC5 loc_51EBC: jmp short $+2 loc_51EBE: mov [rbp+var_C], 0FFFFFFFFh loc_51EC5: mov eax, [rbp+var_C] mov [rbp+var_B4], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_51EEB mov eax, [rbp+var_B4] mov rsp, rbp pop rbp retn loc_51EEB: call ___stack_chk_fail
long long rtree_insert_req( long long a1, long long a2, long long a3, unsigned int a4, long long a5, unsigned long long *a6, int a7, int a8) { int v8; // eax long long v9; // rax long long v11; // [rsp+0h] [rbp-C0h] BYREF long long v12; // [rsp+10h] [rbp-B0h] long long v13; // [rsp+18h] [rbp-A8h] long long v14; // [rsp+20h] [rbp-A0h] unsigned int v15; // [rsp+2Ch] [rbp-94h] long long v16; // [rsp+30h] [rbp-90h] long long v17; // [rsp+38h] [rbp-88h] long long v18; // [rsp+40h] [rbp-80h] unsigned int v19; // [rsp+4Ch] [rbp-74h] unsigned int v20; // [rsp+50h] [rbp-70h] unsigned int v21; // [rsp+54h] [rbp-6Ch] _BYTE *v22; // [rsp+58h] [rbp-68h] unsigned int inserted; // [rsp+64h] [rbp-5Ch] _BYTE *v24; // [rsp+68h] [rbp-58h] unsigned int v25; // [rsp+74h] [rbp-4Ch] long long v26; // [rsp+78h] [rbp-48h] unsigned long long *v27; // [rsp+80h] [rbp-40h] long long v28; // [rsp+88h] [rbp-38h] unsigned int v29; // [rsp+94h] [rbp-2Ch] long long v30; // [rsp+98h] [rbp-28h] long long v31; // [rsp+A0h] [rbp-20h] long long v32; // [rsp+A8h] [rbp-18h] unsigned long long v34; // [rsp+B8h] [rbp-8h] v34 = __readfsqword(0x28u); v32 = a1; v31 = a2; v30 = a3; v29 = a4; v28 = a5; v27 = a6; v24 = (char *)&v11 - ((*(unsigned __int16 *)(a2 + 14) + 1223) & 0xFFFFFFF0); if ( v24 ) { if ( !mi_fetch_keypage(v32, v31, v28, 3LL, v24, 0LL) ) return (unsigned int)-1; if ( (*v24 & 0x80) != 0 ) v21 = *(_DWORD *)(*(_QWORD *)v32 + 380LL); else v21 = 0; v25 = v21; if ( a7 == -1 && v25 || a7 > -1 && a7 > a8 ) { v26 = rtree_pick_key(v32, v31, v30, v29, v24, v25); if ( !v26 ) return (unsigned int)-1; v16 = v32; v17 = v31; v18 = v30; v19 = v29; v8 = mi_kpos(v25, v26); inserted = rtree_insert_req(v16, v17, v18, v19, v8, (_DWORD)v27, a7, a8 + 1); v20 = inserted; if ( inserted == -1 ) return (unsigned int)-1; if ( v20 ) { if ( v20 == 1 ) { v22 = &v24[*(unsigned __int16 *)(v31 + 14) + v25]; v12 = v32; v13 = v31; v14 = v26; v15 = v29; v9 = mi_kpos(v25, v26); if ( !(unsigned int)rtree_set_key_mbr(v12, v13, v14, v15, v9) ) { mi_kpointer(v32, &v22[-v25], *v27); if ( !(unsigned int)rtree_set_key_mbr(v32, v31, v22, v29, *v27) ) { inserted = rtree_add_key(v32, v31, v22, v29, v24, v27); if ( !(unsigned int)mi_write_keypage(v32, v31, v28, 3LL, v24) ) return inserted; } } } return (unsigned int)-1; } rtree_combine_rect(*(_QWORD *)(v31 + 40), v26, v30, v26, v29); if ( (unsigned int)mi_write_keypage(v32, v31, v28, 3LL, v24) ) return (unsigned int)-1; } else { inserted = rtree_add_key(v32, v31, v30, v29, v24, v27); if ( (unsigned int)mi_write_keypage(v32, v31, v28, 3LL, v24) ) return (unsigned int)-1; } return inserted; } *(_DWORD *)my_thread_var(a1, (const char *)a2) = 128; return (unsigned int)-1; }
rtree_insert_req: PUSH RBP MOV RBP,RSP SUB RSP,0xc0 MOV EAX,dword ptr [RBP + 0x18] MOV EAX,dword ptr [RBP + 0x10] MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x18],RDI MOV qword ptr [RBP + -0x20],RSI MOV qword ptr [RBP + -0x28],RDX MOV dword ptr [RBP + -0x2c],ECX MOV qword ptr [RBP + -0x38],R8 MOV qword ptr [RBP + -0x40],R9 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX + 0xe] ADD EAX,0x4c7 AND EAX,0xfffffff0 MOV ECX,EAX MOV RAX,RSP SUB RAX,RCX MOV RSP,RAX MOV qword ptr [RBP + -0x58],RAX CMP RAX,0x0 JNZ 0x00151be1 CALL 0x00182360 MOV dword ptr [RAX],0x80 MOV dword ptr [RBP + -0xc],0xffffffff JMP 0x00151ec5 LAB_00151be1: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x38] MOV R8,qword ptr [RBP + -0x58] MOV ECX,0x3 XOR R9D,R9D CALL 0x00164530 CMP RAX,0x0 JNZ 0x00151c09 JMP 0x00151ebc LAB_00151c09: MOV RAX,qword ptr [RBP + -0x58] MOVZX EAX,byte ptr [RAX] AND EAX,0x80 CMP EAX,0x0 JZ 0x00151c2c MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x17c] MOV dword ptr [RBP + -0x6c],EAX JMP 0x00151c33 LAB_00151c2c: XOR EAX,EAX MOV dword ptr [RBP + -0x6c],EAX JMP 0x00151c33 LAB_00151c33: MOV EAX,dword ptr [RBP + -0x6c] MOV dword ptr [RBP + -0x4c],EAX JMP 0x00151c3b LAB_00151c3b: CMP dword ptr [RBP + 0x10],-0x1 JNZ 0x00151c47 CMP dword ptr [RBP + -0x4c],0x0 JNZ 0x00151c5d LAB_00151c47: CMP dword ptr [RBP + 0x10],-0x1 JLE 0x00151e70 MOV EAX,dword ptr [RBP + 0x10] CMP EAX,dword ptr [RBP + 0x18] JLE 0x00151e70 LAB_00151c5d: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x2c] MOV R8,qword ptr [RBP + -0x58] MOV R9D,dword ptr [RBP + -0x4c] CALL 0x00151ef0 MOV qword ptr [RBP + -0x48],RAX CMP RAX,0x0 JNZ 0x00151c88 JMP 0x00151ebc LAB_00151c88: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x80],RAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x74],EAX MOV EDI,dword ptr [RBP + -0x4c] MOV RSI,qword ptr [RBP + -0x48] CALL 0x00145440 MOV RDI,qword ptr [RBP + -0x90] MOV RSI,qword ptr [RBP + -0x88] MOV RDX,qword ptr [RBP + -0x80] MOV ECX,dword ptr [RBP + -0x74] MOV R8,RAX MOV R9,qword ptr [RBP + -0x40] MOV R10D,dword ptr [RBP + 0x10] MOV R11D,dword ptr [RBP + 0x18] INC R11D SUB RSP,0x10 MOV RAX,RSP MOV dword ptr [RAX + 0x8],R11D MOV dword ptr [RAX],R10D CALL 0x00151b70 ADD RSP,0x10 MOV dword ptr [RBP + -0x5c],EAX MOV ECX,EAX MOV dword ptr [RBP + -0x70],ECX SUB EAX,-0x1 JZ 0x00151e6e JMP 0x00151d09 LAB_00151d09: MOV EAX,dword ptr [RBP + -0x70] TEST EAX,EAX JZ 0x00151d1f JMP 0x00151d12 LAB_00151d12: MOV EAX,dword ptr [RBP + -0x70] SUB EAX,0x1 JZ 0x00151d65 JMP 0x00151e6c LAB_00151d1f: MOV RAX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RAX + 0x28] MOV RSI,qword ptr [RBP + -0x48] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x48] MOV R8D,dword ptr [RBP + -0x2c] CALL 0x00154df0 MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x38] MOV R8,qword ptr [RBP + -0x58] MOV ECX,0x3 CALL 0x001646b0 CMP EAX,0x0 JZ 0x00151d60 JMP 0x00151ebc LAB_00151d60: JMP 0x00151eb2 LAB_00151d65: MOV RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x20] MOVZX ECX,word ptr [RCX + 0xe] MOVSXD RCX,ECX ADD RAX,RCX MOV ECX,dword ptr [RBP + -0x4c] ADD RAX,RCX MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0xb0],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0xa8],RAX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0xa0],RAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x94],EAX MOV EDI,dword ptr [RBP + -0x4c] MOV RSI,qword ptr [RBP + -0x48] CALL 0x00145440 MOV RDI,qword ptr [RBP + -0xb0] MOV RSI,qword ptr [RBP + -0xa8] MOV RDX,qword ptr [RBP + -0xa0] MOV ECX,dword ptr [RBP + -0x94] MOV R8,RAX CALL 0x00152420 CMP EAX,0x0 JZ 0x00151de4 JMP 0x00151ebc LAB_00151de4: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x68] MOV EAX,dword ptr [RBP + -0x4c] MOV ECX,EAX XOR EAX,EAX SUB RAX,RCX ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RAX] CALL 0x00146ab0 MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x68] MOV ECX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x40] MOV R8,qword ptr [RAX] CALL 0x00152420 CMP EAX,0x0 JZ 0x00151e2a JMP 0x00151ebc LAB_00151e2a: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x68] MOV ECX,dword ptr [RBP + -0x2c] MOV R8,qword ptr [RBP + -0x58] MOV R9,qword ptr [RBP + -0x40] CALL 0x00152150 MOV dword ptr [RBP + -0x5c],EAX MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x38] MOV R8,qword ptr [RBP + -0x58] MOV ECX,0x3 CALL 0x001646b0 CMP EAX,0x0 JZ 0x00151e6a JMP 0x00151ebc LAB_00151e6a: JMP 0x00151eb2 LAB_00151e6c: JMP 0x00151e6e LAB_00151e6e: JMP 0x00151ebc LAB_00151e70: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x2c] MOV R8,qword ptr [RBP + -0x58] MOV R9,qword ptr [RBP + -0x40] CALL 0x00152150 MOV dword ptr [RBP + -0x5c],EAX MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x38] MOV R8,qword ptr [RBP + -0x58] MOV ECX,0x3 CALL 0x001646b0 CMP EAX,0x0 JZ 0x00151eb0 JMP 0x00151ebc LAB_00151eb0: JMP 0x00151eb2 LAB_00151eb2: JMP 0x00151eb4 LAB_00151eb4: MOV EAX,dword ptr [RBP + -0x5c] MOV dword ptr [RBP + -0xc],EAX JMP 0x00151ec5 LAB_00151ebc: JMP 0x00151ebe LAB_00151ebe: MOV dword ptr [RBP + -0xc],0xffffffff LAB_00151ec5: MOV EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0xb4],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00151eeb MOV EAX,dword ptr [RBP + -0xb4] MOV RSP,RBP POP RBP RET LAB_00151eeb: CALL 0x001283b0
int rtree_insert_req(long *param_1,long param_2,int8 param_3,int4 param_4, int8 param_5,int8 *param_6,int param_7,int param_8) { long lVar1; long *plVar2; int4 uVar3; uint uVar4; byte *pbVar5; int8 *puVar6; int iVar7; byte *pbVar8; int4 *puVar9; long lVar10; long lVar11; int8 uVar12; int8 uVar13; long in_FS_OFFSET; int8 uStack_e0; int aiStack_d8 [2]; int8 uStack_d0; byte abStack_c8 [12]; int local_bc; long *local_b8; long local_b0; long local_a8; int4 local_9c; long *local_98; long local_90; int8 local_88; int4 local_7c; int local_78; uint local_74; byte *local_70; int local_64; byte *local_60; uint local_54; long local_50; int8 *local_48; int8 local_40; int4 local_34; int8 local_30; long local_28; long *local_20; int local_14; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); lVar1 = -(ulong)(*(ushort *)(param_2 + 0xe) + 0x4c7 & 0xfffffff0); pbVar8 = abStack_c8 + lVar1; local_60 = pbVar8; local_48 = param_6; local_40 = param_5; local_34 = param_4; local_30 = param_3; local_28 = param_2; local_20 = param_1; if (pbVar8 == (byte *)0x0) { *(int8 *)((long)&uStack_d0 + lVar1) = 0x151bcf; puVar9 = (int4 *)_my_thread_var(); *puVar9 = 0x80; local_14 = -1; goto LAB_00151ec5; } *(int8 *)((long)&uStack_d0 + lVar1) = 0x151bfe; lVar10 = _mi_fetch_keypage(param_1,param_2,param_5,3,pbVar8,0); plVar2 = local_20; lVar11 = local_28; uVar13 = local_30; uVar3 = local_34; puVar6 = local_48; pbVar8 = local_60; if (lVar10 != 0) { if ((*local_60 & 0x80) == 0) { local_74 = 0; } else { local_74 = *(uint *)(*local_20 + 0x17c); } uVar4 = local_74; local_54 = local_74; if (((param_7 == -1) && (local_74 != 0)) || ((-1 < param_7 && (param_8 < param_7)))) { *(int8 *)((long)&uStack_d0 + lVar1) = 0x151c79; lVar11 = rtree_pick_key(plVar2,lVar11,uVar13,uVar3,pbVar8,uVar4); uVar4 = local_54; local_50 = lVar11; if (lVar11 != 0) { local_98 = local_20; local_90 = local_28; local_88 = local_30; local_7c = local_34; *(int8 *)((long)&uStack_d0 + lVar1) = 0x151cb8; uVar12 = _mi_kpos(uVar4,lVar11); puVar6 = local_48; uVar3 = local_7c; uVar13 = local_88; lVar11 = local_90; plVar2 = local_98; *(int *)((long)&uStack_d0 + lVar1) = param_8 + 1; *(int *)((long)aiStack_d8 + lVar1) = param_7; *(int8 *)((long)&uStack_e0 + lVar1) = 0x151cf2; local_78 = rtree_insert_req(plVar2,lVar11,uVar13,uVar3,uVar12,puVar6); uVar13 = local_30; uVar3 = local_34; lVar11 = local_50; uVar4 = local_54; local_64 = local_78; if (local_78 != -1) { if (local_78 == 0) { uVar12 = *(int8 *)(local_28 + 0x28); *(int8 *)((long)&uStack_d0 + lVar1) = 0x151d3c; rtree_combine_rect(uVar12,lVar11,uVar13,lVar11,uVar3); plVar2 = local_20; lVar11 = local_28; uVar13 = local_40; pbVar8 = local_60; *(int8 *)((long)&uStack_d0 + lVar1) = 0x151d56; iVar7 = _mi_write_keypage(plVar2,lVar11,uVar13,3,pbVar8); goto joined_r0x00151e66; } if (local_78 == 1) { local_70 = local_60 + (ulong)local_54 + (long)(int)(uint)*(ushort *)(local_28 + 0xe); local_b8 = local_20; local_b0 = local_28; local_a8 = local_50; local_9c = local_34; *(int8 *)((long)&uStack_d0 + lVar1) = 0x151db7; uVar13 = _mi_kpos(uVar4,lVar11); uVar3 = local_9c; lVar10 = local_a8; lVar11 = local_b0; plVar2 = local_b8; *(int8 *)((long)&uStack_d0 + lVar1) = 0x151dda; iVar7 = rtree_set_key_mbr(plVar2,lVar11,lVar10,uVar3,uVar13); plVar2 = local_20; if (iVar7 == 0) { lVar11 = (long)local_70 - (ulong)local_54; uVar13 = *local_48; *(int8 *)((long)&uStack_d0 + lVar1) = 0x151e05; _mi_kpointer(plVar2,lVar11,uVar13); plVar2 = local_20; lVar11 = local_28; uVar3 = local_34; pbVar8 = local_70; uVar13 = *local_48; *(int8 *)((long)&uStack_d0 + lVar1) = 0x151e20; iVar7 = rtree_set_key_mbr(plVar2,lVar11,pbVar8,uVar3,uVar13); plVar2 = local_20; lVar11 = local_28; uVar3 = local_34; puVar6 = local_48; pbVar5 = local_60; pbVar8 = local_70; if (iVar7 == 0) { *(int8 *)((long)&uStack_d0 + lVar1) = 0x151e46; local_64 = rtree_add_key(plVar2,lVar11,pbVar8,uVar3,pbVar5,puVar6); plVar2 = local_20; lVar11 = local_28; uVar13 = local_40; pbVar8 = local_60; *(int8 *)((long)&uStack_d0 + lVar1) = 0x151e63; iVar7 = _mi_write_keypage(plVar2,lVar11,uVar13,3,pbVar8); goto joined_r0x00151e66; } } } } } } else { *(int8 *)((long)&uStack_d0 + lVar1) = 0x151e8c; local_64 = rtree_add_key(plVar2,lVar11,uVar13,uVar3,pbVar8,puVar6); plVar2 = local_20; lVar11 = local_28; uVar13 = local_40; pbVar8 = local_60; *(int8 *)((long)&uStack_d0 + lVar1) = 0x151ea9; iVar7 = _mi_write_keypage(plVar2,lVar11,uVar13,3,pbVar8); joined_r0x00151e66: local_14 = local_64; if (iVar7 == 0) goto LAB_00151ec5; } } local_14 = -1; LAB_00151ec5: local_bc = local_14; if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_14; } /* WARNING: Subroutine does not return */ *(code **)((long)&uStack_d0 + lVar1) = rtree_pick_key; __stack_chk_fail(); }
21,182
lunasvg::SVGElement::build()
dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp
void SVGElement::build() { for(const auto& child : m_children) { if(auto element = toSVGElement(child)) { element->build(); } } }
O1
cpp
lunasvg::SVGElement::build(): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq 0x58(%rdi), %r15 addq $0x58, %rbx cmpq %rbx, %r15 je 0xfe5f movq 0x10(%r15), %r14 testq %r14, %r14 je 0xfe49 movq (%r14), %rax movq %r14, %rdi callq *0x18(%rax) testb %al, %al jne 0xfe4c xorl %r14d, %r14d testq %r14, %r14 je 0xfe5a movq (%r14), %rax movq %r14, %rdi callq *0x70(%rax) movq (%r15), %r15 jmp 0xfe2e popq %rbx popq %r14 popq %r15 retq nop
_ZN7lunasvg10SVGElement5buildEv: push r15 push r14 push rbx mov rbx, rdi mov r15, [rdi+58h] add rbx, 58h ; 'X' loc_FE2E: cmp r15, rbx jz short loc_FE5F mov r14, [r15+10h] test r14, r14 jz short loc_FE49 mov rax, [r14] mov rdi, r14 call qword ptr [rax+18h] test al, al jnz short loc_FE4C loc_FE49: xor r14d, r14d loc_FE4C: test r14, r14 jz short loc_FE5A mov rax, [r14] mov rdi, r14 call qword ptr [rax+70h] loc_FE5A: mov r15, [r15] jmp short loc_FE2E loc_FE5F: pop rbx pop r14 pop r15 retn
void lunasvg::SVGElement::build(lunasvg::SVGElement *this) { _QWORD *i; // r15 long long v2; // r14 for ( i = (_QWORD *)*((_QWORD *)this + 11); i != (_QWORD *)((char *)this + 88); i = (_QWORD *)*i ) { v2 = i[2]; if ( !v2 || !(*(unsigned __int8 ( **)(_QWORD))(*(_QWORD *)v2 + 24LL))(i[2]) ) v2 = 0LL; if ( v2 ) (*(void ( **)(long long))(*(_QWORD *)v2 + 112LL))(v2); } }
build: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI MOV R15,qword ptr [RDI + 0x58] ADD RBX,0x58 LAB_0010fe2e: CMP R15,RBX JZ 0x0010fe5f MOV R14,qword ptr [R15 + 0x10] TEST R14,R14 JZ 0x0010fe49 MOV RAX,qword ptr [R14] MOV RDI,R14 CALL qword ptr [RAX + 0x18] TEST AL,AL JNZ 0x0010fe4c LAB_0010fe49: XOR R14D,R14D LAB_0010fe4c: TEST R14,R14 JZ 0x0010fe5a MOV RAX,qword ptr [R14] MOV RDI,R14 CALL qword ptr [RAX + 0x70] LAB_0010fe5a: MOV R15,qword ptr [R15] JMP 0x0010fe2e LAB_0010fe5f: POP RBX POP R14 POP R15 RET
/* lunasvg::SVGElement::build() */ void __thiscall lunasvg::SVGElement::build(SVGElement *this) { char cVar1; long *plVar2; SVGElement *pSVar3; pSVar3 = *(SVGElement **)(this + 0x58); do { if (pSVar3 == this + 0x58) { return; } plVar2 = *(long **)(pSVar3 + 0x10); if (plVar2 == (long *)0x0) { LAB_0010fe49: plVar2 = (long *)0x0; } else { cVar1 = (**(code **)(*plVar2 + 0x18))(plVar2); if (cVar1 == '\0') goto LAB_0010fe49; } if (plVar2 != (long *)0x0) { (**(code **)(*plVar2 + 0x70))(plVar2); } pSVar3 = *(SVGElement **)pSVar3; } while( true ); }
21,183
common_log_main()
monkey531[P]llama/common/log.cpp
struct common_log * common_log_main() { static struct common_log log; return &log; }
O3
cpp
common_log_main(): pushq %rbx movb 0x62ea6(%rip), %al # 0xf2530 testb %al, %al je 0x8f697 leaq 0x62dcb(%rip), %rax # 0xf2460 popq %rbx retq leaq 0x62e92(%rip), %rdi # 0xf2530 callq 0x19e10 testl %eax, %eax je 0x8f68e leaq 0x62db2(%rip), %rdi # 0xf2460 movl $0x100, %esi # imm = 0x100 callq 0x8fdc8 leaq 0x153(%rip), %rdi # 0x8f812 leaq 0x62d9a(%rip), %rsi # 0xf2460 leaq 0x620eb(%rip), %rdx # 0xf17b8 callq 0x196a0 leaq 0x62e57(%rip), %rdi # 0xf2530 callq 0x194d0 jmp 0x8f68e movq %rax, %rbx leaq 0x62e46(%rip), %rdi # 0xf2530 callq 0x194c0 movq %rbx, %rdi callq 0x19dc0
_Z15common_log_mainv: push rbx mov al, cs:_ZGVZ15common_log_mainvE3log; `guard variable for'common_log_main(void)::log test al, al jz short loc_8F697 loc_8F68E: lea rax, _ZZ15common_log_mainvE3log; common_log_main(void)::log pop rbx retn loc_8F697: lea rdi, _ZGVZ15common_log_mainvE3log; __guard * call ___cxa_guard_acquire test eax, eax jz short loc_8F68E lea rdi, _ZZ15common_log_mainvE3log; this mov esi, 100h; unsigned __int64 call _ZN10common_logC2Em; common_log::common_log(ulong) lea rdi, _ZN10common_logD2Ev; lpfunc lea rsi, _ZZ15common_log_mainvE3log; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZ15common_log_mainvE3log; __guard * call ___cxa_guard_release jmp short loc_8F68E mov rbx, rax lea rdi, _ZGVZ15common_log_mainvE3log; __guard * call ___cxa_guard_abort mov rdi, rbx call __Unwind_Resume
void *common_log_main(void) { if ( !(_BYTE)`guard variable for'common_log_main(void)::log && __cxa_guard_acquire(&`guard variable for'common_log_main(void)::log) ) { common_log::common_log((common_log *)&common_log_main(void)::log, 0x100uLL); __cxa_atexit(common_log::~common_log, &common_log_main(void)::log, &_dso_handle); __cxa_guard_release(&`guard variable for'common_log_main(void)::log); } return &common_log_main(void)::log; }
common_log_main: PUSH RBX MOV AL,byte ptr [0x001f2530] TEST AL,AL JZ 0x0018f697 LAB_0018f68e: LEA RAX,[0x1f2460] POP RBX RET LAB_0018f697: LEA RDI,[0x1f2530] CALL 0x00119e10 TEST EAX,EAX JZ 0x0018f68e LAB_0018f6a7: LEA RDI,[0x1f2460] MOV ESI,0x100 CALL 0x0018fdc8 LAB_0018f6b8: LEA RDI,[0x18f812] LEA RSI,[0x1f2460] LEA RDX,[0x1f17b8] CALL 0x001196a0 LEA RDI,[0x1f2530] CALL 0x001194d0 JMP 0x0018f68e
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* common_log_main() */ int1 * common_log_main(void) { int iVar1; if (common_log_main()::log == '\0') { iVar1 = __cxa_guard_acquire(&common_log_main()::log); if (iVar1 != 0) { /* try { // try from 0018f6a7 to 0018f6b7 has its CatchHandler @ 0018f6e0 */ common_log::common_log((common_log *)common_log_main()::log,0x100); __cxa_atexit(common_log::~common_log,common_log_main()::log,&__dso_handle); __cxa_guard_release(&common_log_main()::log); } } return common_log_main()::log; }
21,184
js_object___defineGetter__
bluesky950520[P]quickjs/quickjs.c
static JSValue js_object___defineGetter__(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int magic) { JSValue obj; JSValue prop, value, get, set; int ret, flags; JSAtom atom; prop = argv[0]; value = argv[1]; obj = JS_ToObject(ctx, this_val); if (JS_IsException(obj)) return JS_EXCEPTION; if (check_function(ctx, value)) { JS_FreeValue(ctx, obj); return JS_EXCEPTION; } atom = JS_ValueToAtom(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) { JS_FreeValue(ctx, obj); return JS_EXCEPTION; } flags = JS_PROP_THROW | JS_PROP_HAS_ENUMERABLE | JS_PROP_ENUMERABLE | JS_PROP_HAS_CONFIGURABLE | JS_PROP_CONFIGURABLE; if (magic) { get = JS_UNDEFINED; set = value; flags |= JS_PROP_HAS_SET; } else { get = value; set = JS_UNDEFINED; flags |= JS_PROP_HAS_GET; } ret = JS_DefineProperty(ctx, obj, atom, JS_UNDEFINED, get, set, flags); JS_FreeValue(ctx, obj); JS_FreeAtom(ctx, atom); if (ret < 0) { return JS_EXCEPTION; } else { return JS_UNDEFINED; } }
O0
c
js_object___defineGetter__: pushq %rbx subq $0x110, %rsp # imm = 0x110 movq %rsi, 0xf0(%rsp) movq %rdx, 0xf8(%rsp) movq %rdi, 0xe8(%rsp) movl %ecx, 0xe4(%rsp) movq %r8, 0xd8(%rsp) movl %r9d, 0xd4(%rsp) movq 0xd8(%rsp), %rax movq (%rax), %rcx movq %rcx, 0xb0(%rsp) movq 0x8(%rax), %rax movq %rax, 0xb8(%rsp) movq 0xd8(%rsp), %rax movq 0x10(%rax), %rcx movq %rcx, 0xa0(%rsp) movq 0x18(%rax), %rax movq %rax, 0xa8(%rsp) movq 0xe8(%rsp), %rdi movq 0xf0(%rsp), %rsi movq 0xf8(%rsp), %rdx callq 0x37770 movq %rax, 0x60(%rsp) movq %rdx, 0x68(%rsp) movq 0x60(%rsp), %rax movq %rax, 0xc0(%rsp) movq 0x68(%rsp), %rax movq %rax, 0xc8(%rsp) movq 0xc0(%rsp), %rdi movq 0xc8(%rsp), %rsi callq 0x23cc0 cmpl $0x0, %eax je 0xc188d movl $0x0, 0x100(%rsp) movq $0x6, 0x108(%rsp) jmp 0xc1afd movq 0xe8(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x6da80 cmpl $0x0, %eax je 0xc18e8 movq 0xe8(%rsp), %rdi movq 0xc0(%rsp), %rsi movq 0xc8(%rsp), %rdx callq 0x23c90 movl $0x0, 0x100(%rsp) movq $0x6, 0x108(%rsp) jmp 0xc1afd movq 0xe8(%rsp), %rdi movq 0xb0(%rsp), %rsi movq 0xb8(%rsp), %rdx callq 0x31200 movl %eax, 0x74(%rsp) cmpl $0x0, 0x74(%rsp) sete %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xc195b movq 0xe8(%rsp), %rdi movq 0xc0(%rsp), %rsi movq 0xc8(%rsp), %rdx callq 0x23c90 movl $0x0, 0x100(%rsp) movq $0x6, 0x108(%rsp) jmp 0xc1afd movl $0x4505, 0x78(%rsp) # imm = 0x4505 cmpl $0x0, 0xd4(%rsp) je 0xc19c7 movl $0x0, 0x50(%rsp) movq $0x3, 0x58(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x90(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x98(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x80(%rsp) movq 0xa8(%rsp), %rax movq %rax, 0x88(%rsp) movl 0x78(%rsp), %eax orl $0x1000, %eax # imm = 0x1000 movl %eax, 0x78(%rsp) jmp 0xc1a1f movq 0xa0(%rsp), %rax movq %rax, 0x90(%rsp) movq 0xa8(%rsp), %rax movq %rax, 0x98(%rsp) movl $0x0, 0x40(%rsp) movq $0x3, 0x48(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x88(%rsp) movl 0x78(%rsp), %eax orl $0x800, %eax # imm = 0x800 movl %eax, 0x78(%rsp) movq 0xe8(%rsp), %rdi movl 0x74(%rsp), %ecx movl $0x0, 0x30(%rsp) movq $0x3, 0x38(%rsp) movl 0x78(%rsp), %eax movq 0xc0(%rsp), %rsi movq 0xc8(%rsp), %rdx movq 0x30(%rsp), %r8 movq 0x38(%rsp), %r9 leaq 0x90(%rsp), %r11 leaq 0x80(%rsp), %r10 movq (%r11), %rbx movq %rbx, (%rsp) movq 0x8(%r11), %r11 movq %r11, 0x8(%rsp) movq (%r10), %r11 movq %r11, 0x10(%rsp) movq 0x8(%r10), %r10 movq %r10, 0x18(%rsp) movl %eax, 0x20(%rsp) callq 0x33de0 movl %eax, 0x7c(%rsp) movq 0xe8(%rsp), %rdi movq 0xc0(%rsp), %rsi movq 0xc8(%rsp), %rdx callq 0x23c90 movq 0xe8(%rsp), %rdi movl 0x74(%rsp), %esi callq 0x29040 cmpl $0x0, 0x7c(%rsp) jge 0xc1ae6 movl $0x0, 0x100(%rsp) movq $0x6, 0x108(%rsp) jmp 0xc1afd movl $0x0, 0x100(%rsp) movq $0x3, 0x108(%rsp) movq 0x100(%rsp), %rax movq 0x108(%rsp), %rdx addq $0x110, %rsp # imm = 0x110 popq %rbx retq nopw %cs:(%rax,%rax)
js_object___defineGetter__: push rbx sub rsp, 110h mov [rsp+118h+var_28], rsi mov [rsp+118h+var_20], rdx mov [rsp+118h+var_30], rdi mov [rsp+118h+var_34], ecx mov [rsp+118h+var_40], r8 mov [rsp+118h+var_44], r9d mov rax, [rsp+118h+var_40] mov rcx, [rax] mov [rsp+118h+var_68], rcx mov rax, [rax+8] mov [rsp+118h+var_60], rax mov rax, [rsp+118h+var_40] mov rcx, [rax+10h] mov [rsp+118h+var_78], rcx mov rax, [rax+18h] mov [rsp+118h+var_70], rax mov rdi, [rsp+118h+var_30] mov rsi, [rsp+118h+var_28] mov rdx, [rsp+118h+var_20] call JS_ToObject mov [rsp+118h+var_B8], rax mov [rsp+118h+var_B0], rdx mov rax, [rsp+118h+var_B8] mov [rsp+118h+var_58], rax mov rax, [rsp+118h+var_B0] mov [rsp+118h+var_50], rax mov rdi, [rsp+118h+var_58] mov rsi, [rsp+118h+var_50] call JS_IsException_1 cmp eax, 0 jz short loc_C188D mov dword ptr [rsp+118h+var_18], 0 mov [rsp+118h+var_10], 6 jmp loc_C1AFD loc_C188D: mov rdi, [rsp+118h+var_30] mov rsi, [rsp+118h+var_78] mov rdx, [rsp+118h+var_70] call check_function cmp eax, 0 jz short loc_C18E8 mov rdi, [rsp+118h+var_30] mov rsi, [rsp+118h+var_58] mov rdx, [rsp+118h+var_50] call JS_FreeValue mov dword ptr [rsp+118h+var_18], 0 mov [rsp+118h+var_10], 6 jmp loc_C1AFD loc_C18E8: mov rdi, [rsp+118h+var_30] mov rsi, [rsp+118h+var_68] mov rdx, [rsp+118h+var_60] call JS_ValueToAtom mov [rsp+118h+var_A4], eax cmp [rsp+118h+var_A4], 0 setz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_C195B mov rdi, [rsp+118h+var_30] mov rsi, [rsp+118h+var_58] mov rdx, [rsp+118h+var_50] call JS_FreeValue mov dword ptr [rsp+118h+var_18], 0 mov [rsp+118h+var_10], 6 jmp loc_C1AFD loc_C195B: mov [rsp+118h+var_A0], 4505h cmp [rsp+118h+var_44], 0 jz short loc_C19C7 mov dword ptr [rsp+118h+var_C8], 0 mov [rsp+118h+var_C0], 3 mov rax, [rsp+118h+var_C8] mov [rsp+118h+var_88], rax mov rax, [rsp+118h+var_C0] mov [rsp+118h+var_80], rax mov rax, [rsp+118h+var_78] mov [rsp+118h+var_98], rax mov rax, [rsp+118h+var_70] mov [rsp+118h+var_90], rax mov eax, [rsp+118h+var_A0] or eax, 1000h mov [rsp+118h+var_A0], eax jmp short loc_C1A1F loc_C19C7: mov rax, [rsp+118h+var_78] mov [rsp+118h+var_88], rax mov rax, [rsp+118h+var_70] mov [rsp+118h+var_80], rax mov dword ptr [rsp+118h+var_D8], 0 mov [rsp+118h+var_D0], 3 mov rax, [rsp+118h+var_D8] mov [rsp+118h+var_98], rax mov rax, [rsp+118h+var_D0] mov [rsp+118h+var_90], rax mov eax, [rsp+118h+var_A0] or eax, 800h mov [rsp+118h+var_A0], eax loc_C1A1F: mov rdi, [rsp+118h+var_30] mov ecx, [rsp+118h+var_A4] mov dword ptr [rsp+118h+var_E8], 0 mov [rsp+118h+var_E0], 3 mov eax, [rsp+118h+var_A0] mov rsi, [rsp+118h+var_58] mov rdx, [rsp+118h+var_50] mov r8, [rsp+118h+var_E8] mov r9, [rsp+118h+var_E0] lea r11, [rsp+118h+var_88] lea r10, [rsp+118h+var_98] mov rbx, [r11] mov [rsp+118h+var_118], rbx mov r11, [r11+8] mov [rsp+118h+var_110], r11 mov r11, [r10] mov [rsp+118h+var_108], r11 mov r10, [r10+8] mov [rsp+118h+var_100], r10 mov [rsp+118h+var_F8], eax call JS_DefineProperty mov [rsp+118h+var_9C], eax mov rdi, [rsp+118h+var_30] mov rsi, [rsp+118h+var_58] mov rdx, [rsp+118h+var_50] call JS_FreeValue mov rdi, [rsp+118h+var_30] mov esi, [rsp+118h+var_A4] call JS_FreeAtom cmp [rsp+118h+var_9C], 0 jge short loc_C1AE6 mov dword ptr [rsp+118h+var_18], 0 mov [rsp+118h+var_10], 6 jmp short loc_C1AFD loc_C1AE6: mov dword ptr [rsp+118h+var_18], 0 mov [rsp+118h+var_10], 3 loc_C1AFD: mov rax, [rsp+118h+var_18] mov rdx, [rsp+118h+var_10] add rsp, 110h pop rbx retn
long long js_object___defineGetter__( long long a1, _DWORD *a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long *a13, long long a14) { long long v14; // rdx double v15; // xmm4_8 double v16; // xmm5_8 __m128 v17; // xmm4 __m128 v18; // xmm5 _DWORD *v20; // [rsp+30h] [rbp-E8h] _DWORD *v21; // [rsp+40h] [rbp-D8h] _DWORD *v22; // [rsp+50h] [rbp-C8h] _DWORD *v23; // [rsp+60h] [rbp-B8h] unsigned int v24; // [rsp+74h] [rbp-A4h] unsigned int v25; // [rsp+78h] [rbp-A0h] _DWORD *v26; // [rsp+80h] [rbp-98h] long long v27; // [rsp+88h] [rbp-90h] _DWORD *v28; // [rsp+90h] [rbp-88h] unsigned int v29; // [rsp+98h] [rbp-80h] long long v30; // [rsp+A0h] [rbp-78h] long long v31; // [rsp+A8h] [rbp-70h] long long v32; // [rsp+B0h] [rbp-68h] long long v33; // [rsp+B8h] [rbp-60h] long long v34; // [rsp+C8h] [rbp-50h] int v35; // [rsp+D4h] [rbp-44h] long long v36; // [rsp+100h] [rbp-18h] v35 = a14; v32 = *a13; v33 = a13[1]; v30 = a13[2]; v31 = a13[3]; v23 = JS_ToObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, v30, (long long)a13, a14); v34 = v14; if ( JS_IsException_1((long long)v23, v14) ) { LODWORD(v36) = 0; } else if ( (unsigned int)check_function(a1, v30, v31, a4, a5, a6, a7, v15, v16, a10, a11) || (v24 = JS_ValueToAtom(a1, v32, v33)) == 0 ) { JS_FreeValue(a1, (long long)v23, v34); LODWORD(v36) = 0; } else { if ( v35 ) { LODWORD(v22) = 0; v28 = v22; v29 = 3; v26 = (_DWORD *)v30; v27 = v31; v25 = 21765; } else { v28 = (_DWORD *)v30; v29 = v31; LODWORD(v21) = 0; v26 = v21; v27 = 3LL; v25 = 19717; } LODWORD(v20) = 0; JS_DefineProperty(a1, (long long)v23, v34, v24, v20, 3LL, a4, a5, a6, a7, v17, v18, a10, a11, v28, v29, v26, v27, v25); JS_FreeValue(a1, (long long)v23, v34); JS_FreeAtom(a1, v24); LODWORD(v36) = 0; } return v36; }
JS_ToBigIntCtorFree: SUB RSP,0xf8 MOV qword ptr [RSP + 0xd8],RSI MOV qword ptr [RSP + 0xe0],RDX MOV qword ptr [RSP + 0xd0],RDI LAB_001c17bf: MOV EAX,dword ptr [RSP + 0xe0] MOV dword ptr [RSP + 0xcc],EAX MOV EAX,dword ptr [RSP + 0xcc] ADD EAX,0x9 MOV ECX,EAX MOV qword ptr [RSP],RCX SUB EAX,0x10 JA 0x001c1b76 MOV RAX,qword ptr [RSP] LEA RCX,[0x216bc8] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: MOV RDI,qword ptr [RSP + 0xd0] MOVSXD RSI,dword ptr [RSP + 0xd8] CALL 0x0013de70 MOV qword ptr [RSP + 0xb8],RAX MOV qword ptr [RSP + 0xc0],RDX MOV RAX,qword ptr [RSP + 0xb8] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0xc0] MOV qword ptr [RSP + 0xe0],RAX JMP 0x001c1bbb caseD_fffffff7: JMP 0x001c1bbb caseD_7: MOV RDI,qword ptr [RSP + 0xd0] MOV RDX,qword ptr [RSP + 0xd8] MOV RCX,qword ptr [RSP + 0xe0] LEA RSI,[RSP + 0x88] CALL 0x00175f50 MOV qword ptr [RSP + 0xb0],RAX MOV RDI,qword ptr [RSP + 0xb0] CALL 0x001c1c00 CMP EAX,0x0 JNZ 0x001c18ea MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xd8] MOV RDX,qword ptr [RSP + 0xe0] CALL 0x00127e10 MOV RDI,qword ptr [RSP + 0xd0] LEA RSI,[0x21ad82] MOV AL,0x0 CALL 0x0012d7f0 MOV qword ptr [RSP + 0x78],RAX MOV qword ptr [RSP + 0x80],RDX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0xe0],RAX JMP 0x001c1aa3 LAB_001c18ea: MOV RDI,qword ptr [RSP + 0xd0] CALL 0x0013df50 MOV qword ptr [RSP + 0x68],RAX MOV qword ptr [RSP + 0x70],RDX MOV RDI,qword ptr [RSP + 0x68] MOV RSI,qword ptr [RSP + 0x70] CALL 0x00127e40 CMP EAX,0x0 JZ 0x001c194e MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xd8] MOV RDX,qword ptr [RSP + 0xe0] CALL 0x00127e10 MOV dword ptr [RSP + 0xe8],0x0 MOV qword ptr [RSP + 0xf0],0x6 JMP 0x001c1bdb LAB_001c194e: MOV RDI,qword ptr [RSP + 0x68] MOV RSI,qword ptr [RSP + 0x70] CALL 0x0013dfd0 MOV qword ptr [RSP + 0x60],RAX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0xb0] CALL 0x001ea440 MOV dword ptr [RSP + 0x5c],EAX MOV RDI,qword ptr [RSP + 0x60] MOV ESI,0x1 CALL 0x001ee2a0 OR EAX,dword ptr [RSP + 0x5c] MOV dword ptr [RSP + 0x5c],EAX MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xd8] MOV RDX,qword ptr [RSP + 0xe0] CALL 0x00127e10 MOV EAX,dword ptr [RSP + 0x5c] AND EAX,0x20 CMP EAX,0x0 JZ 0x001c1a05 MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] CALL 0x00127e10 MOV RDI,qword ptr [RSP + 0xd0] CALL 0x00125d90 MOV qword ptr [RSP + 0x48],RAX MOV qword ptr [RSP + 0x50],RDX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0xe0],RAX JMP 0x001c1aa1 LAB_001c1a05: MOV EAX,dword ptr [RSP + 0x5c] AND EAX,0x10 CMP EAX,0x0 JZ 0x001c1a64 MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] CALL 0x00127e10 MOV RDI,qword ptr [RSP + 0xd0] LEA RSI,[0x21adab] MOV AL,0x0 CALL 0x0012d7f0 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0xe0],RAX JMP 0x001c1a9f LAB_001c1a64: MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] CALL 0x00175610 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x30],RDX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0xe0],RAX LAB_001c1a9f: JMP 0x001c1aa1 LAB_001c1aa1: JMP 0x001c1aa3 LAB_001c1aa3: LEA RAX,[RSP + 0x88] CMP qword ptr [RSP + 0xb0],RAX JNZ 0x001c1ac2 MOV RDI,qword ptr [RSP + 0xb0] CALL 0x00162aa0 LAB_001c1ac2: JMP 0x001c1bbb caseD_fffffff9: MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xd8] MOV RDX,qword ptr [RSP + 0xe0] CALL 0x00166e70 MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0xe0],RAX JMP 0x001c1bbb caseD_ffffffff: MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xd8] MOV RDX,qword ptr [RSP + 0xe0] MOV ECX,0x1 CALL 0x00165f90 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0xe0],RAX MOV RDI,qword ptr [RSP + 0xd8] MOV RSI,qword ptr [RSP + 0xe0] CALL 0x00127e40 CMP EAX,0x0 JZ 0x001c1b6f JMP 0x001c1bbb LAB_001c1b6f: JMP 0x001c17bf caseD_2: JMP 0x001c1b76 caseD_fffffff8: MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xd8] MOV RDX,qword ptr [RSP + 0xe0] CALL 0x00127e10 MOV RDI,qword ptr [RSP + 0xd0] LEA RSI,[0x218733] MOV AL,0x0 CALL 0x00131480 MOV qword ptr [RSP + 0xe8],RAX MOV qword ptr [RSP + 0xf0],RDX JMP 0x001c1bdb LAB_001c1bbb: MOV RAX,qword ptr [RSP + 0xd8] MOV qword ptr [RSP + 0xe8],RAX MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0xf0],RAX LAB_001c1bdb: MOV RAX,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xf0] ADD RSP,0xf8 RET
int1 [16] JS_ToBigIntCtorFree(int8 param_1,int8 param_2,int8 param_3) { int iVar1; uint uVar2; uint uVar3; int8 uVar4; int8 uVar5; int8 uVar6; int1 auVar7 [16]; int1 local_70 [40]; int1 *local_48; int4 local_2c; int8 local_28; int1 local_20 [16]; int4 local_10; int4 uStack_c; int8 local_8; local_20._8_8_ = param_3; local_20._0_8_ = param_2; local_28 = param_1; LAB_001c17bf: uVar4 = local_20._8_8_; local_2c = local_20._8_4_; switch(local_20._8_4_) { case 0: case 1: auVar7 = JS_NewBigInt64(local_28,(long)(int)local_20._0_4_); local_20 = auVar7; break; case 2: case 3: default: JS_FreeValue(local_28,local_20._0_8_,uVar4); auVar7 = JS_ThrowTypeError(local_28,"cannot convert to BigInt"); local_8 = auVar7._8_8_; local_10 = auVar7._0_4_; uStack_c = auVar7._4_4_; goto LAB_001c1bdb; case 7: local_48 = (int1 *)JS_ToBigInt1(local_28,local_70,local_20._0_8_,uVar4); iVar1 = bf_is_finite(local_48); if (iVar1 == 0) { JS_FreeValue(local_28,local_20._0_8_,local_20._8_8_); auVar7 = JS_ThrowRangeError(local_28,"cannot convert NaN or Infinity to BigInt"); local_20 = auVar7; } else { auVar7 = JS_NewBigInt(local_28); uVar6 = auVar7._8_8_; uVar4 = auVar7._0_8_; iVar1 = JS_IsException(uVar4,uVar6); if (iVar1 != 0) { JS_FreeValue(local_28,local_20._0_8_,local_20._8_8_); local_10 = 0; local_8 = 6; goto LAB_001c1bdb; } uVar5 = JS_GetBigInt(uVar4,uVar6); uVar2 = bf_set(uVar5,local_48); uVar3 = bf_rint(uVar5,1); JS_FreeValue(local_28,local_20._0_8_,local_20._8_8_); if (((uVar3 | uVar2) & 0x20) == 0) { if (((uVar3 | uVar2) & 0x10) == 0) { auVar7 = JS_CompactBigInt(local_28,uVar4,uVar6); local_20 = auVar7; } else { JS_FreeValue(local_28,uVar4,uVar6); auVar7 = JS_ThrowRangeError(local_28,"cannot convert to BigInt: not an integer"); local_20 = auVar7; } } else { JS_FreeValue(local_28,uVar4,uVar6); auVar7 = JS_ThrowOutOfMemory(local_28); local_20 = auVar7; } } if (local_48 == local_70) { bf_delete(local_48); } break; case 0xfffffff7: break; case 0xfffffff9: auVar7 = JS_StringToBigIntErr(local_28,local_20._0_8_,uVar4); local_20 = auVar7; break; case 0xffffffff: goto switchD_001c17f8_caseD_ffffffff; } goto LAB_001c1bbb; switchD_001c17f8_caseD_ffffffff: auVar7 = JS_ToPrimitiveFree(local_28,local_20._0_8_,uVar4,1); local_20 = auVar7; iVar1 = JS_IsException(auVar7._0_8_,auVar7._8_8_); if (iVar1 != 0) { LAB_001c1bbb: local_10 = local_20._0_4_; uStack_c = local_20._4_4_; local_8 = local_20._8_8_; LAB_001c1bdb: auVar7._4_4_ = uStack_c; auVar7._0_4_ = local_10; auVar7._8_8_ = local_8; return auVar7; } goto LAB_001c17bf; }
21,185
js_object___defineGetter__
bluesky950520[P]quickjs/quickjs.c
static JSValue js_object___defineGetter__(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int magic) { JSValue obj; JSValue prop, value, get, set; int ret, flags; JSAtom atom; prop = argv[0]; value = argv[1]; obj = JS_ToObject(ctx, this_val); if (JS_IsException(obj)) return JS_EXCEPTION; if (check_function(ctx, value)) { JS_FreeValue(ctx, obj); return JS_EXCEPTION; } atom = JS_ValueToAtom(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) { JS_FreeValue(ctx, obj); return JS_EXCEPTION; } flags = JS_PROP_THROW | JS_PROP_HAS_ENUMERABLE | JS_PROP_ENUMERABLE | JS_PROP_HAS_CONFIGURABLE | JS_PROP_CONFIGURABLE; if (magic) { get = JS_UNDEFINED; set = value; flags |= JS_PROP_HAS_SET; } else { get = value; set = JS_UNDEFINED; flags |= JS_PROP_HAS_GET; } ret = JS_DefineProperty(ctx, obj, atom, JS_UNDEFINED, get, set, flags); JS_FreeValue(ctx, obj); JS_FreeAtom(ctx, atom); if (ret < 0) { return JS_EXCEPTION; } else { return JS_UNDEFINED; } }
O1
c
js_object___defineGetter__: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %r9d, 0x3c(%rsp) movq %rdi, %rbx movq (%r8), %r15 movq 0x8(%r8), %rax movq %rax, 0x50(%rsp) movq 0x10(%r8), %rbp movq 0x18(%r8), %r12 callq 0x26ddd movq %rdx, %r14 movl $0x6, %r13d cmpl $0x6, %r14d je 0x717ed movq %rax, 0x30(%rsp) movq %rbx, %rdi movq %rbp, %rsi movq %r12, %rdx callq 0x415b1 testl %eax, %eax je 0x71734 movq 0x18(%rbx), %rdi movq 0x30(%rsp), %rsi movq %r14, %rdx callq 0x1d8c6 jmp 0x717ed movq %rbx, %rdi movq %r15, %rsi movq 0x50(%rsp), %rdx callq 0x24093 testl %eax, %eax je 0x7171e cmpl $0x0, 0x3c(%rsp) je 0x7176c movl $0x0, 0x40(%rsp) movq $0x3, 0x48(%rsp) movq %rbp, 0x58(%rsp) movl $0x5505, %ecx # imm = 0x5505 jmp 0x71789 movq %rbp, 0x40(%rsp) movq %r12, 0x48(%rsp) movl $0x0, 0x58(%rsp) movl $0x4d05, %ecx # imm = 0x4D05 movl $0x3, %r12d movq %r12, 0x60(%rsp) movups 0x58(%rsp), %xmm0 movups %xmm0, 0x10(%rsp) movups 0x40(%rsp), %xmm0 movups %xmm0, (%rsp) movl %ecx, 0x20(%rsp) movl $0x3, %r9d movq %rbx, %rdi movq 0x30(%rsp), %r12 movq %r12, %rsi movq %r14, %rdx movl %eax, %ebp movl %eax, %ecx xorl %r8d, %r8d callq 0x254b9 movl %eax, %r15d movq 0x18(%rbx), %rdi movq %r12, %rsi movq %r14, %rdx callq 0x1d8c6 movq %rbx, %rdi movl %ebp, %esi callq 0x207d8 shrl $0x1f, %r15d leaq (%r15,%r15,2), %r13 addq $0x3, %r13 xorl %eax, %eax movq %r13, %rdx addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_object___defineGetter__: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov [rsp+98h+var_5C], r9d mov rbx, rdi mov r15, [r8] mov rax, [r8+8] mov [rsp+98h+var_48], rax mov rbp, [r8+10h] mov r12, [r8+18h] call JS_ToObject mov r14, rdx mov r13d, 6 cmp r14d, 6 jz loc_717ED mov [rsp+98h+var_68], rax mov rdi, rbx mov rsi, rbp mov rdx, r12 call check_function test eax, eax jz short loc_71734 loc_7171E: mov rdi, [rbx+18h] mov rsi, [rsp+98h+var_68] mov rdx, r14 call JS_FreeValueRT jmp loc_717ED loc_71734: mov rdi, rbx mov rsi, r15 mov rdx, [rsp+98h+var_48] call JS_ValueToAtom test eax, eax jz short loc_7171E cmp [rsp+98h+var_5C], 0 jz short loc_7176C mov dword ptr [rsp+98h+var_58], 0 mov qword ptr [rsp+98h+var_58+8], 3 mov qword ptr [rsp+98h+var_40], rbp mov ecx, 5505h jmp short loc_71789 loc_7176C: mov qword ptr [rsp+98h+var_58], rbp mov qword ptr [rsp+98h+var_58+8], r12 mov dword ptr [rsp+98h+var_40], 0 mov ecx, 4D05h mov r12d, 3 loc_71789: mov qword ptr [rsp+98h+var_40+8], r12 movups xmm0, [rsp+98h+var_40] movups [rsp+98h+var_88], xmm0 movups xmm0, [rsp+98h+var_58] movups [rsp+98h+var_98], xmm0 mov [rsp+98h+var_78], ecx mov r9d, 3 mov rdi, rbx mov r12, [rsp+98h+var_68] mov rsi, r12 mov rdx, r14 mov ebp, eax mov ecx, eax xor r8d, r8d call JS_DefineProperty mov r15d, eax mov rdi, [rbx+18h] mov rsi, r12 mov rdx, r14 call JS_FreeValueRT mov rdi, rbx mov esi, ebp call JS_FreeAtom shr r15d, 1Fh lea r13, [r15+r15*2] add r13, 3 loc_717ED: xor eax, eax mov rdx, r13 add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_object___defineGetter__( 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; // r15 long long v15; // rbp long long v16; // r12 _DWORD *v17; // rax double v18; // xmm4_8 double v19; // xmm5_8 long long v20; // rdx long long v21; // r14 unsigned int v22; // eax __m128 v23; // xmm4 __m128 v24; // xmm5 unsigned int v25; // ecx int v26; // ebp _DWORD *v28; // [rsp+30h] [rbp-68h] int v29; // [rsp+3Ch] [rbp-5Ch] __m128 v30; // [rsp+40h] [rbp-58h] long long v31; // [rsp+50h] [rbp-48h] _DWORD *v32; // [rsp+58h] [rbp-40h] v29 = a6; v14 = *a5; v31 = a5[1]; v15 = a5[2]; v16 = a5[3]; v17 = JS_ToObject(a1, a2, a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v21 = v20; if ( (_DWORD)v20 != 6 ) { v28 = v17; if ( (unsigned int)check_function(a1, v15, v16, a7, a8, a9, a10, v18, v19, a13, a14) || (v22 = JS_ValueToAtom(a1, v14, v31)) == 0 ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), v28, v21); } else { if ( v29 ) { v30.m128_i32[0] = 0; v30.m128_u64[1] = 3LL; v32 = (_DWORD *)v15; v25 = 21765; } else { v30.m128_u64[0] = v15; v30.m128_u64[1] = v16; LODWORD(v32) = 0; v25 = 19717; v16 = 3LL; } v26 = v22; JS_DefineProperty( a1, (unsigned long long)v28, v21, v22, 0LL, 3LL, v30, a8, a9, a10, v23, v24, a13, a14, v30.m128_u64[0], v30.m128_i64[1], v32, v16, v25); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v28, v21); JS_FreeAtom(a1, v26); } } return 0LL; }
21,186
js_object___defineGetter__
bluesky950520[P]quickjs/quickjs.c
static JSValue js_object___defineGetter__(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int magic) { JSValue obj; JSValue prop, value, get, set; int ret, flags; JSAtom atom; prop = argv[0]; value = argv[1]; obj = JS_ToObject(ctx, this_val); if (JS_IsException(obj)) return JS_EXCEPTION; if (check_function(ctx, value)) { JS_FreeValue(ctx, obj); return JS_EXCEPTION; } atom = JS_ValueToAtom(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) { JS_FreeValue(ctx, obj); return JS_EXCEPTION; } flags = JS_PROP_THROW | JS_PROP_HAS_ENUMERABLE | JS_PROP_ENUMERABLE | JS_PROP_HAS_CONFIGURABLE | JS_PROP_CONFIGURABLE; if (magic) { get = JS_UNDEFINED; set = value; flags |= JS_PROP_HAS_SET; } else { get = value; set = JS_UNDEFINED; flags |= JS_PROP_HAS_GET; } ret = JS_DefineProperty(ctx, obj, atom, JS_UNDEFINED, get, set, flags); JS_FreeValue(ctx, obj); JS_FreeAtom(ctx, atom); if (ret < 0) { return JS_EXCEPTION; } else { return JS_UNDEFINED; } }
O2
c
js_object___defineGetter__: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %r9d, 0x3c(%rsp) movq %rdi, %rbx movq (%r8), %rbp movq 0x8(%r8), %rax movq %rax, 0x40(%rsp) movq 0x10(%r8), %r15 movq 0x18(%r8), %r12 callq 0x20b92 movq %rdx, %r14 pushq $0x6 popq %r13 cmpl $0x6, %r14d je 0x5f94d movq %rax, 0x30(%rsp) movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x3949a testl %eax, %eax je 0x5f8a2 movq %rbx, %rdi movq 0x30(%rsp), %rsi movq %r14, %rdx callq 0x1801e jmp 0x5f94d movq %rbx, %rdi movq %rbp, %rsi movq 0x40(%rsp), %rdx callq 0x1e0bc testl %eax, %eax je 0x5f88d movl %eax, %ebp cmpl $0x0, 0x3c(%rsp) je 0x5f8d3 andl $0x0, 0x58(%rsp) movq %r15, 0x48(%rsp) movl $0x5505, %eax # imm = 0x5505 pushq $0x3 popq %rcx jmp 0x5f8e9 movq %r15, 0x58(%rsp) andl $0x0, 0x48(%rsp) movl $0x4d05, %eax # imm = 0x4D05 movq %r12, %rcx pushq $0x3 popq %r12 movq %rcx, 0x60(%rsp) movq %r12, 0x50(%rsp) movups 0x48(%rsp), %xmm0 movups %xmm0, 0x10(%rsp) movups 0x58(%rsp), %xmm0 movups %xmm0, (%rsp) movl %eax, 0x20(%rsp) pushq $0x3 popq %r9 movq %rbx, %rdi movq 0x30(%rsp), %r12 movq %r12, %rsi movq %r14, %rdx movl %ebp, %ecx xorl %r8d, %r8d callq 0x1f1de movl %eax, %r15d movq %rbx, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x1801e movq %rbx, %rdi movl %ebp, %esi callq 0x1a995 shrl $0x1f, %r15d leaq (%r15,%r15,2), %r13 addq $0x3, %r13 xorl %eax, %eax movq %r13, %rdx addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_object___defineGetter__: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov [rsp+98h+var_5C], r9d mov rbx, rdi mov rbp, [r8] mov rax, [r8+8] mov [rsp+98h+var_58], rax mov r15, [r8+10h] mov r12, [r8+18h] call JS_ToObject mov r14, rdx push 6 pop r13 cmp r14d, 6 jz loc_5F94D mov [rsp+98h+var_68], rax mov rdi, rbx mov rsi, r15 mov rdx, r12 call check_function test eax, eax jz short loc_5F8A2 loc_5F88D: mov rdi, rbx mov rsi, [rsp+98h+var_68] mov rdx, r14 call JS_FreeValue jmp loc_5F94D loc_5F8A2: mov rdi, rbx mov rsi, rbp mov rdx, [rsp+98h+var_58] call JS_ValueToAtom test eax, eax jz short loc_5F88D mov ebp, eax cmp [rsp+98h+var_5C], 0 jz short loc_5F8D3 and dword ptr [rsp+98h+var_40], 0 mov qword ptr [rsp+98h+var_50], r15 mov eax, 5505h push 3 pop rcx jmp short loc_5F8E9 loc_5F8D3: mov qword ptr [rsp+98h+var_40], r15 and dword ptr [rsp+98h+var_50], 0 mov eax, 4D05h mov rcx, r12 push 3 pop r12 loc_5F8E9: mov qword ptr [rsp+98h+var_40+8], rcx mov qword ptr [rsp+98h+var_50+8], r12 movups xmm0, [rsp+98h+var_50] movups [rsp+98h+var_88], xmm0 movups xmm0, [rsp+98h+var_40] movups [rsp+98h+var_98], xmm0 mov [rsp+98h+var_78], eax push 3 pop r9 mov rdi, rbx mov r12, [rsp+98h+var_68] mov rsi, r12 mov rdx, r14 mov ecx, ebp xor r8d, r8d call JS_DefineProperty mov r15d, eax mov rdi, rbx mov rsi, r12 mov rdx, r14 call JS_FreeValue mov rdi, rbx mov esi, ebp call JS_FreeAtom shr r15d, 1Fh lea r13, [r15+r15*2] add r13, 3 loc_5F94D: xor eax, eax mov rdx, r13 add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_object___defineGetter__( 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; // rbp long long v15; // r15 long long v16; // r12 long long v17; // rax double v18; // xmm4_8 double v19; // xmm5_8 long long v20; // rdx long long v21; // r14 unsigned int v22; // eax __m128 v23; // xmm4 __m128 v24; // xmm5 unsigned int v25; // ebp unsigned int v26; // eax long long v27; // rcx long long v29; // [rsp+30h] [rbp-68h] int v30; // [rsp+3Ch] [rbp-5Ch] long long v31; // [rsp+40h] [rbp-58h] _DWORD *v32; // [rsp+48h] [rbp-50h] __m128 v33; // [rsp+58h] [rbp-40h] v30 = a6; v14 = *a5; v31 = a5[1]; v15 = a5[2]; v16 = a5[3]; v17 = JS_ToObject(a1, a2, a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v21 = v20; if ( (_DWORD)v20 != 6 ) { v29 = v17; if ( (unsigned int)check_function(a1, v15, v16, a7, a8, a9, a10, v18, v19, a13, a14) || (v22 = JS_ValueToAtom(a1, v14, v31)) == 0 ) { JS_FreeValue(a1, v29, v21); } else { v25 = v22; if ( v30 ) { v33.m128_i32[0] = 0; v32 = (_DWORD *)v15; v26 = 21765; v27 = 3LL; } else { v33.m128_u64[0] = v15; LODWORD(v32) = 0; v26 = 19717; v27 = v16; LODWORD(v16) = 3; } v33.m128_u64[1] = v27; JS_DefineProperty( a1, v29, v21, v25, 0LL, 3LL, v33, a8, a9, a10, v23, v24, a13, a14, v33.m128_u64[0], v27, v32, v16, v26); JS_FreeValue(a1, v29, v21); JS_FreeAtom(a1, v25); } } return 0LL; }
js_object___defineGetter__: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV dword ptr [RSP + 0x3c],R9D MOV RBX,RDI MOV RBP,qword ptr [R8] MOV RAX,qword ptr [R8 + 0x8] MOV qword ptr [RSP + 0x40],RAX MOV R15,qword ptr [R8 + 0x10] MOV R12,qword ptr [R8 + 0x18] CALL 0x00120b92 MOV R14,RDX PUSH 0x6 POP R13 CMP R14D,0x6 JZ 0x0015f94d MOV qword ptr [RSP + 0x30],RAX MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 CALL 0x0013949a TEST EAX,EAX JZ 0x0015f8a2 LAB_0015f88d: MOV RDI,RBX MOV RSI,qword ptr [RSP + 0x30] MOV RDX,R14 CALL 0x0011801e JMP 0x0015f94d LAB_0015f8a2: MOV RDI,RBX MOV RSI,RBP MOV RDX,qword ptr [RSP + 0x40] CALL 0x0011e0bc TEST EAX,EAX JZ 0x0015f88d MOV EBP,EAX CMP dword ptr [RSP + 0x3c],0x0 JZ 0x0015f8d3 AND dword ptr [RSP + 0x58],0x0 MOV qword ptr [RSP + 0x48],R15 MOV EAX,0x5505 PUSH 0x3 POP RCX JMP 0x0015f8e9 LAB_0015f8d3: MOV qword ptr [RSP + 0x58],R15 AND dword ptr [RSP + 0x48],0x0 MOV EAX,0x4d05 MOV RCX,R12 PUSH 0x3 POP R12 LAB_0015f8e9: MOV qword ptr [RSP + 0x60],RCX MOV qword ptr [RSP + 0x50],R12 MOVUPS XMM0,xmmword ptr [RSP + 0x48] MOVUPS xmmword ptr [RSP + 0x10],XMM0 MOVUPS XMM0,xmmword ptr [RSP + 0x58] MOVUPS xmmword ptr [RSP],XMM0 MOV dword ptr [RSP + 0x20],EAX PUSH 0x3 POP R9 MOV RDI,RBX MOV R12,qword ptr [RSP + 0x30] MOV RSI,R12 MOV RDX,R14 MOV ECX,EBP XOR R8D,R8D CALL 0x0011f1de MOV R15D,EAX MOV RDI,RBX MOV RSI,R12 MOV RDX,R14 CALL 0x0011801e MOV RDI,RBX MOV ESI,EBP CALL 0x0011a995 SHR R15D,0x1f LEA R13,[R15 + R15*0x2] ADD R13,0x3 LAB_0015f94d: XOR EAX,EAX MOV RDX,R13 ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] js_object___defineGetter__(int8 param_1) { ulong uVar1; int8 uVar2; int iVar3; int4 uVar4; uint uVar5; int8 uVar6; int8 *in_R8; int in_R9D; int8 uVar7; ulong uVar8; int1 auVar9 [16]; ulong local_50; ulong local_40; int4 uStack_38; uVar7 = *in_R8; uVar6 = in_R8[1]; uVar1 = in_R8[2]; uVar2 = in_R8[3]; auVar9 = JS_ToObject(); auVar9._8_8_ = auVar9._8_8_; auVar9._0_8_ = auVar9._0_8_; uVar8 = 6; if (auVar9._8_4_ != 6) { iVar3 = check_function(param_1,uVar1,uVar2); if (iVar3 == 0) { iVar3 = JS_ValueToAtom(param_1,uVar7,uVar6); if (iVar3 != 0) { if (in_R9D == 0) { local_50 = local_50 & 0xffffffff00000000; uVar4 = 0x4d05; uVar7 = 3; uVar6 = uVar2; local_40 = uVar1; } else { local_40 = 0; uVar4 = 0x5505; uVar6 = 3; uVar7 = uVar2; local_50 = uVar1; } uStack_38 = (int4)uVar6; uVar5 = JS_DefineProperty(param_1,auVar9._0_8_,auVar9._8_8_,iVar3,0,3,(int4)local_40, uStack_38,local_50,uVar7,uVar4); JS_FreeValue(param_1,auVar9._0_8_,auVar9._8_8_); JS_FreeAtom(param_1,iVar3); uVar8 = (ulong)(uVar5 >> 0x1f) * 3 + 3; goto LAB_0015f94d; } } JS_FreeValue(param_1,auVar9._0_8_,auVar9._8_8_); } LAB_0015f94d: auVar9._8_8_ = 0; auVar9._0_8_ = uVar8; return auVar9 << 0x40; }
21,187
pfs_start_transaction_v1
eloqsql/storage/perfschema/pfs.cc
void pfs_start_transaction_v1(PSI_transaction_locker *locker, const char *src_file, uint src_line) { PSI_transaction_locker_state *state= reinterpret_cast<PSI_transaction_locker_state*> (locker); assert(state != NULL); uint flags= state->m_flags; ulonglong timer_start= 0; if (flags & STATE_FLAG_TIMED) { timer_start= get_timer_raw_value_and_function(transaction_timer, &state->m_timer); state->m_timer_start= timer_start; } if (flags & STATE_FLAG_EVENT) { PFS_events_transactions *pfs= reinterpret_cast<PFS_events_transactions*> (state->m_transaction); assert(pfs != NULL); pfs->m_timer_start= timer_start; pfs->m_source_file= src_file; pfs->m_source_line= src_line; pfs->m_state= TRANS_STATE_ACTIVE; //pfs->m_sid.clear(); bzero(&pfs->m_gtid_spec, sizeof(pfs->m_gtid_spec)); } }
O0
cpp
pfs_start_transaction_v1: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movl (%rax), %eax movl %eax, -0x24(%rbp) movq $0x0, -0x30(%rbp) movl -0x24(%rbp), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x4c84d leaq 0x1c6b9a(%rip), %rax # 0x2133c8 movl (%rax), %edi movq -0x20(%rbp), %rsi addq $0x20, %rsi callq 0x42c00 movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x18(%rax) movl -0x24(%rbp), %eax andl $0x4, %eax cmpl $0x0, %eax je 0x4c8a5 movq -0x20(%rbp), %rax movq 0x28(%rax), %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x38(%rax) movq -0x10(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x48(%rax) movl -0x14(%rbp), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x50(%rax) movq -0x38(%rbp), %rax movl $0x1, 0x60(%rax) movq -0x38(%rbp), %rdi addq $0x68, %rdi xorl %esi, %esi movl $0x10, %edx callq 0x261c0 addq $0x40, %rsp popq %rbp retq nopl (%rax,%rax)
pfs_start_transaction_v1: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov rax, [rbp+var_8] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov eax, [rax] mov [rbp+var_24], eax mov [rbp+var_30], 0 mov eax, [rbp+var_24] and eax, 1 cmp eax, 0 jz short loc_4C84D lea rax, transaction_timer mov edi, [rax] mov rsi, [rbp+var_20] add rsi, 20h ; ' ' call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void)) mov [rbp+var_30], rax mov rcx, [rbp+var_30] mov rax, [rbp+var_20] mov [rax+18h], rcx loc_4C84D: mov eax, [rbp+var_24] and eax, 4 cmp eax, 0 jz short loc_4C8A5 mov rax, [rbp+var_20] mov rax, [rax+28h] mov [rbp+var_38], rax mov rcx, [rbp+var_30] mov rax, [rbp+var_38] mov [rax+38h], rcx mov rcx, [rbp+var_10] mov rax, [rbp+var_38] mov [rax+48h], rcx mov ecx, [rbp+var_14] mov rax, [rbp+var_38] mov [rax+50h], ecx mov rax, [rbp+var_38] mov dword ptr [rax+60h], 1 mov rdi, [rbp+var_38] add rdi, 68h ; 'h' xor esi, esi mov edx, 10h call _memset loc_4C8A5: add rsp, 40h pop rbp retn
long long pfs_start_transaction_v1(int *a1, long long a2, int a3) { long long result; // rax long long v4; // [rsp+8h] [rbp-38h] unsigned long long timer_raw_value_and_function; // [rsp+10h] [rbp-30h] int v6; // [rsp+1Ch] [rbp-24h] v6 = *a1; timer_raw_value_and_function = 0LL; if ( (*a1 & 1) != 0 ) { timer_raw_value_and_function = get_timer_raw_value_and_function( (unsigned int)transaction_timer, (unsigned long long (**)(void))a1 + 4); *((_QWORD *)a1 + 3) = timer_raw_value_and_function; } result = v6 & 4; if ( (v6 & 4) != 0 ) { v4 = *((_QWORD *)a1 + 5); *(_QWORD *)(v4 + 56) = timer_raw_value_and_function; *(_QWORD *)(v4 + 72) = a2; *(_DWORD *)(v4 + 80) = a3; *(_DWORD *)(v4 + 96) = 1; return memset(v4 + 104, 0LL, 16LL); } return result; }
pfs_start_transaction_v1: PUSH RBP MOV RBP,RSP SUB RSP,0x40 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 + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x24],EAX MOV qword ptr [RBP + -0x30],0x0 MOV EAX,dword ptr [RBP + -0x24] AND EAX,0x1 CMP EAX,0x0 JZ 0x0014c84d LEA RAX,[0x3133c8] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x20] ADD RSI,0x20 CALL 0x00142c00 MOV qword ptr [RBP + -0x30],RAX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x18],RCX LAB_0014c84d: MOV EAX,dword ptr [RBP + -0x24] AND EAX,0x4 CMP EAX,0x0 JZ 0x0014c8a5 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x38],RAX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x38],RCX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x48],RCX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x50],ECX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x60],0x1 MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x68 XOR ESI,ESI MOV EDX,0x10 CALL 0x001261c0 LAB_0014c8a5: ADD RSP,0x40 POP RBP RET
void pfs_start_transaction_v1(uint *param_1,int8 param_2,int4 param_3) { uint uVar1; long lVar2; int8 local_38; uVar1 = *param_1; local_38 = 0; if ((uVar1 & 1) != 0) { local_38 = get_timer_raw_value_and_function(transaction_timer); *(int8 *)(param_1 + 6) = local_38; } if ((uVar1 & 4) != 0) { lVar2 = *(long *)(param_1 + 10); *(int8 *)(lVar2 + 0x38) = local_38; *(int8 *)(lVar2 + 0x48) = param_2; *(int4 *)(lVar2 + 0x50) = param_3; *(int4 *)(lVar2 + 0x60) = 1; memset((void *)(lVar2 + 0x68),0,0x10); } return; }
21,188
pfs_start_transaction_v1
eloqsql/storage/perfschema/pfs.cc
void pfs_start_transaction_v1(PSI_transaction_locker *locker, const char *src_file, uint src_line) { PSI_transaction_locker_state *state= reinterpret_cast<PSI_transaction_locker_state*> (locker); assert(state != NULL); uint flags= state->m_flags; ulonglong timer_start= 0; if (flags & STATE_FLAG_TIMED) { timer_start= get_timer_raw_value_and_function(transaction_timer, &state->m_timer); state->m_timer_start= timer_start; } if (flags & STATE_FLAG_EVENT) { PFS_events_transactions *pfs= reinterpret_cast<PFS_events_transactions*> (state->m_transaction); assert(pfs != NULL); pfs->m_timer_start= timer_start; pfs->m_source_file= src_file; pfs->m_source_line= src_line; pfs->m_state= TRANS_STATE_ACTIVE; //pfs->m_sid.clear(); bzero(&pfs->m_gtid_spec, sizeof(pfs->m_gtid_spec)); } }
O3
cpp
pfs_start_transaction_v1: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %ebx movq %rsi, %r14 movq %rdi, %r15 movl (%rdi), %r12d testb $0x1, %r12b jne 0x3db0b xorl %eax, %eax jmp 0x3db21 leaq 0x2d95ae(%rip), %rax # 0x3170c0 movl (%rax), %edi leaq 0x20(%r15), %rsi callq 0x3a78f movq %rax, 0x18(%r15) testb $0x4, %r12b je 0x3db44 movq 0x28(%r15), %rcx movq %rax, 0x38(%rcx) movq %r14, 0x48(%rcx) movl %ebx, 0x50(%rcx) movl $0x1, 0x60(%rcx) xorps %xmm0, %xmm0 movups %xmm0, 0x68(%rcx) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
pfs_start_transaction_v1: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov ebx, edx mov r14, rsi mov r15, rdi mov r12d, [rdi] test r12b, 1 jnz short loc_3DB0B xor eax, eax jmp short loc_3DB21 loc_3DB0B: lea rax, transaction_timer mov edi, [rax] lea rsi, [r15+20h] call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void)) mov [r15+18h], rax loc_3DB21: test r12b, 4 jz short loc_3DB44 mov rcx, [r15+28h] mov [rcx+38h], rax mov [rcx+48h], r14 mov [rcx+50h], ebx mov dword ptr [rcx+60h], 1 xorps xmm0, xmm0 movups xmmword ptr [rcx+68h], xmm0 loc_3DB44: pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long pfs_start_transaction_v1(int *a1, long long a2, int a3) { int v4; // r12d long long result; // rax long long v6; // rcx v4 = *a1; if ( (*a1 & 1) != 0 ) { result = get_timer_raw_value_and_function(transaction_timer, (unsigned long long (**)(void))a1 + 4); *((_QWORD *)a1 + 3) = result; } else { result = 0LL; } if ( (v4 & 4) != 0 ) { v6 = *((_QWORD *)a1 + 5); *(_QWORD *)(v6 + 56) = result; *(_QWORD *)(v6 + 72) = a2; *(_DWORD *)(v6 + 80) = a3; *(_DWORD *)(v6 + 96) = 1; *(_OWORD *)(v6 + 104) = 0LL; } return result; }
pfs_start_transaction_v1: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV EBX,EDX MOV R14,RSI MOV R15,RDI MOV R12D,dword ptr [RDI] TEST R12B,0x1 JNZ 0x0013db0b XOR EAX,EAX JMP 0x0013db21 LAB_0013db0b: LEA RAX,[0x4170c0] MOV EDI,dword ptr [RAX] LEA RSI,[R15 + 0x20] CALL 0x0013a78f MOV qword ptr [R15 + 0x18],RAX LAB_0013db21: TEST R12B,0x4 JZ 0x0013db44 MOV RCX,qword ptr [R15 + 0x28] MOV qword ptr [RCX + 0x38],RAX MOV qword ptr [RCX + 0x48],R14 MOV dword ptr [RCX + 0x50],EBX MOV dword ptr [RCX + 0x60],0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RCX + 0x68],XMM0 LAB_0013db44: POP RBX POP R12 POP R14 POP R15 POP RBP RET
void pfs_start_transaction_v1(uint *param_1,int8 param_2,int4 param_3) { uint uVar1; long lVar2; int8 uVar3; uVar1 = *param_1; if ((uVar1 & 1) == 0) { uVar3 = 0; } else { uVar3 = get_timer_raw_value_and_function(transaction_timer,param_1 + 8); *(int8 *)(param_1 + 6) = uVar3; } if ((uVar1 & 4) != 0) { lVar2 = *(long *)(param_1 + 10); *(int8 *)(lVar2 + 0x38) = uVar3; *(int8 *)(lVar2 + 0x48) = param_2; *(int4 *)(lVar2 + 0x50) = param_3; *(int4 *)(lVar2 + 0x60) = 1; *(int8 *)(lVar2 + 0x68) = 0; *(int8 *)(lVar2 + 0x70) = 0; } return; }
21,189
my_fstat
eloqsql/mysys/my_lib.c
int my_fstat(File Filedes, MY_STAT *stat_area, myf MyFlags __attribute__((unused))) { DBUG_ENTER("my_fstat"); DBUG_PRINT("my",("fd: %d MyFlags: %lu", Filedes, MyFlags)); #ifdef _WIN32 DBUG_RETURN(my_win_fstat(Filedes, stat_area)); #elif defined HAVE_valgrind { int s= fstat(Filedes, stat_area); if (!s) MSAN_STAT_WORKAROUND(stat_area); DBUG_RETURN(s); } #else DBUG_RETURN(fstat(Filedes, (struct stat *) stat_area)); #endif }
O0
c
my_fstat: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) jmp 0xf4ec5 jmp 0xf4ec7 movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi callq 0x2a550 movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax addq $0x20, %rsp popq %rbp retq nop
my_fstat: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx jmp short $+2 loc_F4EC5: jmp short $+2 loc_F4EC7: mov edi, [rbp+var_4] mov rsi, [rbp+var_10] call _fstat64 mov [rbp+var_1C], eax mov eax, [rbp+var_1C] add rsp, 20h pop rbp retn
long long my_fstat(unsigned int a1, long long a2) { return (unsigned int)fstat64(a1, a2); }
my_fstat: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX JMP 0x001f4ec5 LAB_001f4ec5: JMP 0x001f4ec7 LAB_001f4ec7: MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0012a550 MOV dword ptr [RBP + -0x1c],EAX MOV EAX,dword ptr [RBP + -0x1c] ADD RSP,0x20 POP RBP RET
int my_fstat(int param_1,stat64 *param_2) { int iVar1; iVar1 = fstat64(param_1,param_2); return iVar1; }
21,190
testing::internal::HasNewFatalFailureHelper::HasNewFatalFailureHelper()
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-test-part.cc
HasNewFatalFailureHelper::HasNewFatalFailureHelper() : has_new_fatal_failure_(false), original_reporter_( GetUnitTestImpl()->GetTestPartResultReporterForCurrentThread()) { GetUnitTestImpl()->SetTestPartResultReporterForCurrentThread(this); }
O0
cpp
testing::internal::HasNewFatalFailureHelper::HasNewFatalFailureHelper(): subq $0x48, %rsp movq %rdi, 0x40(%rsp) movq 0x40(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0xe4890 movq 0x18(%rsp), %rax leaq 0xbb324(%rip), %rcx # 0x176ab8 addq $0x10, %rcx movq %rcx, (%rax) movb $0x0, 0x8(%rax) addq $0x10, %rax movq %rax, 0x20(%rsp) callq 0xe2720 movq %rax, 0x28(%rsp) jmp 0xbb7b4 movq 0x28(%rsp), %rdi callq 0xbb820 movq %rax, 0x10(%rsp) jmp 0xbb7c5 movq 0x20(%rsp), %rax movq 0x10(%rsp), %rcx movq %rcx, (%rax) callq 0xe2720 movq %rax, 0x8(%rsp) jmp 0xbb7de movq 0x18(%rsp), %rsi movq 0x8(%rsp), %rdi callq 0xbb840 jmp 0xbb7ef addq $0x48, %rsp retq movq 0x18(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) callq 0xeea10 movq 0x38(%rsp), %rdi callq 0x14c80 nopw %cs:(%rax,%rax)
_ZN7testing8internal24HasNewFatalFailureHelperC2Ev: sub rsp, 48h mov [rsp+48h+var_8], rdi mov rdi, [rsp+48h+var_8]; this mov [rsp+48h+var_30], rdi call _ZN7testing31TestPartResultReporterInterfaceC2Ev; testing::TestPartResultReporterInterface::TestPartResultReporterInterface(void) mov rax, [rsp+48h+var_30] lea rcx, _ZTVN7testing8internal24HasNewFatalFailureHelperE; `vtable for'testing::internal::HasNewFatalFailureHelper add rcx, 10h mov [rax], rcx mov byte ptr [rax+8], 0 add rax, 10h mov [rsp+48h+var_28], rax call _ZN7testing8internal15GetUnitTestImplEv; testing::internal::GetUnitTestImpl(void) mov [rsp+48h+var_20], rax jmp short $+2 loc_BB7B4: mov rdi, [rsp+48h+var_20]; this call _ZN7testing8internal12UnitTestImpl41GetTestPartResultReporterForCurrentThreadEv; testing::internal::UnitTestImpl::GetTestPartResultReporterForCurrentThread(void) mov [rsp+48h+var_38], rax jmp short $+2 loc_BB7C5: mov rax, [rsp+48h+var_28] mov rcx, [rsp+48h+var_38] mov [rax], rcx call _ZN7testing8internal15GetUnitTestImplEv; testing::internal::GetUnitTestImpl(void) mov [rsp+48h+var_40], rax jmp short $+2 loc_BB7DE: mov rsi, [rsp+48h+var_30]; testing::TestPartResultReporterInterface * mov rdi, [rsp+48h+var_40]; this call _ZN7testing8internal12UnitTestImpl41SetTestPartResultReporterForCurrentThreadEPNS_31TestPartResultReporterInterfaceE; testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread(testing::TestPartResultReporterInterface *) jmp short $+2 loc_BB7EF: add rsp, 48h retn mov rdi, [rsp+arg_10]; this mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax call _ZN7testing31TestPartResultReporterInterfaceD2Ev; testing::TestPartResultReporterInterface::~TestPartResultReporterInterface() mov rdi, [rsp+arg_30] call __Unwind_Resume
long long testing::internal::HasNewFatalFailureHelper::HasNewFatalFailureHelper( testing::internal::HasNewFatalFailureHelper *this) { testing::internal::UnitTestImpl *UnitTestImpl; // rdi testing::internal::UnitTestImpl *v3; // [rsp+8h] [rbp-40h] _QWORD *v5; // [rsp+20h] [rbp-28h] testing::TestPartResultReporterInterface::TestPartResultReporterInterface(this); *(_QWORD *)this = &`vtable for'testing::internal::HasNewFatalFailureHelper + 2; *((_BYTE *)this + 8) = 0; v5 = (_QWORD *)((char *)this + 16); UnitTestImpl = (testing::internal::UnitTestImpl *)testing::internal::GetUnitTestImpl(this); *v5 = testing::internal::UnitTestImpl::GetTestPartResultReporterForCurrentThread(UnitTestImpl); v3 = (testing::internal::UnitTestImpl *)testing::internal::GetUnitTestImpl(UnitTestImpl); return testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread(v3, this); }
HasNewFatalFailureHelper: SUB RSP,0x48 MOV qword ptr [RSP + 0x40],RDI MOV RDI,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x18],RDI CALL 0x001e4890 MOV RAX,qword ptr [RSP + 0x18] LEA RCX,[0x276ab8] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV byte ptr [RAX + 0x8],0x0 ADD RAX,0x10 MOV qword ptr [RSP + 0x20],RAX LAB_001bb7a8: CALL 0x001e2720 MOV qword ptr [RSP + 0x28],RAX JMP 0x001bb7b4 LAB_001bb7b4: MOV RDI,qword ptr [RSP + 0x28] CALL 0x001bb820 MOV qword ptr [RSP + 0x10],RAX JMP 0x001bb7c5 LAB_001bb7c5: MOV RAX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],RCX CALL 0x001e2720 MOV qword ptr [RSP + 0x8],RAX JMP 0x001bb7de LAB_001bb7de: MOV RSI,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RSP + 0x8] CALL 0x001bb840 LAB_001bb7ed: JMP 0x001bb7ef LAB_001bb7ef: ADD RSP,0x48 RET
/* testing::internal::HasNewFatalFailureHelper::HasNewFatalFailureHelper() */ void __thiscall testing::internal::HasNewFatalFailureHelper::HasNewFatalFailureHelper (HasNewFatalFailureHelper *this) { UnitTestImpl *pUVar1; int8 uVar2; TestPartResultReporterInterface::TestPartResultReporterInterface ((TestPartResultReporterInterface *)this); *(int ***)this = &PTR__HasNewFatalFailureHelper_00276ac8; this[8] = (HasNewFatalFailureHelper)0x0; /* try { // try from 001bb7a8 to 001bb7ec has its CatchHandler @ 001bb7f4 */ pUVar1 = (UnitTestImpl *)GetUnitTestImpl(); uVar2 = UnitTestImpl::GetTestPartResultReporterForCurrentThread(pUVar1); *(int8 *)(this + 0x10) = uVar2; pUVar1 = (UnitTestImpl *)GetUnitTestImpl(); UnitTestImpl::SetTestPartResultReporterForCurrentThread (pUVar1,(TestPartResultReporterInterface *)this); return; }
21,191
intx::reciprocal_2by1(unsigned long)
corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp
inline uint64_t reciprocal_2by1(uint64_t d) noexcept { INTX_REQUIRE(d & 0x8000000000000000); // Must be normalized. const uint64_t d9 = d >> 55; const uint32_t v0 = internal::reciprocal_table[d9 - 256]; const uint64_t d40 = (d >> 24) + 1; const uint64_t v1 = (v0 << 11) - uint32_t(uint32_t{v0 * v0} * d40 >> 40) - 1; const uint64_t v2 = (v1 << 13) + (v1 * (0x1000000000000000 - v1 * d40) >> 47); const uint64_t d0 = d & 1; const uint64_t d63 = (d >> 1) + d0; // ceil(d/2) const uint64_t e = ((v2 >> 1) & (0 - d0)) - v2 * d63; const uint64_t v3 = (umul(v2, e)[1] >> 1) + (v2 << 31); const uint64_t v4 = v3 - (umul(v3, d) + d)[1] - d; return v4; }
O2
cpp
intx::reciprocal_2by1(unsigned long): pushq %r14 pushq %rbx pushq %rax testq %rdi, %rdi jns 0x396fc movq %rdi, %rbx movq %rdi, %rax shrq $0x37, %rax leaq 0x3d52f(%rip), %rcx # 0x76b90 movzwl -0x200(%rcx,%rax,2), %eax movq %rdi, %rcx shrq $0x18, %rcx incq %rcx movl %eax, %edx shll $0xb, %edx imull %eax, %eax imulq %rcx, %rax shrq $0x28, %rax notl %eax addl %edx, %eax imulq %rax, %rcx movabsq $0x1000000000000000, %r14 # imm = 0x1000000000000000 subq %rcx, %r14 imulq %rax, %r14 shlq $0xd, %rax shrq $0x2f, %r14 addq %rax, %r14 movl %ebx, %ecx andl $0x1, %ecx movq %rdi, %rdx shrq %rdx addq %rcx, %rdx negq %rcx movq %r14, %rax shrq %rax andq %rcx, %rax imulq %r14, %rdx subq %rdx, %rax mulq %r14 shrq %rdx shlq $0x1f, %r14 addq %rdx, %r14 movq %r14, %rax mulq %rdi movq %rax, %rdi movq %rdx, %rsi movq %rbx, %rdx xorl %ecx, %ecx callq 0x38d80 addq %rbx, %rdx subq %rdx, %r14 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq leaq 0x3d90d(%rip), %rdi # 0x77010 leaq 0x3d814(%rip), %rsi # 0x76f1e leaq 0x3d916(%rip), %rcx # 0x77027 movl $0x274, %edx # imm = 0x274 callq 0x22110
_ZN4intx15reciprocal_2by1Em: push r14 push rbx push rax test rdi, rdi jns loc_396FC mov rbx, rdi mov rax, rdi shr rax, 37h lea rcx, _ZN4intx8internalL16reciprocal_tableE; intx::internal::reciprocal_table movzx eax, word ptr [rcx+rax*2-200h] mov rcx, rdi shr rcx, 18h inc rcx mov edx, eax shl edx, 0Bh imul eax, eax imul rax, rcx shr rax, 28h not eax add eax, edx imul rcx, rax mov r14, 1000000000000000h sub r14, rcx imul r14, rax shl rax, 0Dh shr r14, 2Fh add r14, rax mov ecx, ebx and ecx, 1 mov rdx, rdi shr rdx, 1 add rdx, rcx neg rcx mov rax, r14 shr rax, 1 and rax, rcx imul rdx, r14 sub rax, rdx mul r14 shr rdx, 1 shl r14, 1Fh add r14, rdx mov rax, r14 mul rdi mov rdi, rax mov rsi, rdx mov rdx, rbx xor ecx, ecx call _ZN4intxplENS_4uintILj128EEES1_; intx::operator+(intx::uint<128u>,intx::uint<128u>) add rdx, rbx sub r14, rdx mov rax, r14 add rsp, 8 pop rbx pop r14 retn loc_396FC: lea rdi, aD0x80000000000; "d & 0x8000000000000000" lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea rcx, aUint64TIntxRec; "uint64_t intx::reciprocal_2by1(uint64_t"... mov edx, 274h call ___assert_fail
unsigned long long intx::reciprocal_2by1(long long this) { int v1; // eax unsigned long long v2; // rcx long long v3; // rax unsigned long long v4; // r14 unsigned long long v5; // r14 long long v6; // rdx if ( this >= 0 ) __assert_fail( "d & 0x8000000000000000", "/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp", 628LL, "uint64_t intx::reciprocal_2by1(uint64_t)"); v1 = intx::internal::reciprocal_table[((unsigned long long)this >> 55) - 256]; v2 = ((unsigned long long)this >> 24) + 1; v3 = (v1 << 11) + ~((unsigned int)((v2 * (unsigned int)(v1 * v1)) >> 32) >> 8); v4 = (v3 << 13) + ((v3 * (0x1000000000000000LL - v3 * v2)) >> 47); v5 = ((unsigned long long)((v4 * (unsigned __int128)((-(this & 1) & (v4 >> 1)) - v4 * ((this & 1) + ((unsigned long long)this >> 1)))) >> 64) >> 1) + (v4 << 31); intx::operator+(this * v5, ((unsigned long long)this * (unsigned __int128)v5) >> 64, this, 0LL); return v5 - (this + v6); }
reciprocal_2by1: PUSH R14 PUSH RBX PUSH RAX TEST RDI,RDI JNS 0x001396fc MOV RBX,RDI MOV RAX,RDI SHR RAX,0x37 LEA RCX,[0x176b90] MOVZX EAX,word ptr [RCX + RAX*0x2 + -0x200] MOV RCX,RDI SHR RCX,0x18 INC RCX MOV EDX,EAX SHL EDX,0xb IMUL EAX,EAX IMUL RAX,RCX SHR RAX,0x28 NOT EAX ADD EAX,EDX IMUL RCX,RAX MOV R14,0x1000000000000000 SUB R14,RCX IMUL R14,RAX SHL RAX,0xd SHR R14,0x2f ADD R14,RAX MOV ECX,EBX AND ECX,0x1 MOV RDX,RDI SHR RDX,0x1 ADD RDX,RCX NEG RCX MOV RAX,R14 SHR RAX,0x1 AND RAX,RCX IMUL RDX,R14 SUB RAX,RDX MUL R14 SHR RDX,0x1 SHL R14,0x1f ADD R14,RDX MOV RAX,R14 MUL RDI MOV RDI,RAX MOV RSI,RDX MOV RDX,RBX XOR ECX,ECX CALL 0x00138d80 ADD RDX,RBX SUB R14,RDX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET LAB_001396fc: LEA RDI,[0x177010] LEA RSI,[0x176f1e] LEA RCX,[0x177027] MOV EDX,0x274 CALL 0x00122110
/* intx::reciprocal_2by1(unsigned long) */ long intx::reciprocal_2by1(ulong param_1) { ushort uVar1; int1 auVar2 [16]; int1 auVar3 [16]; int1 auVar4 [16]; int1 auVar5 [16]; long lVar6; long extraout_RDX; ulong uVar7; ulong uVar8; if ((long)param_1 < 0) { uVar1 = *(ushort *)(&DAT_00176990 + (param_1 >> 0x37) * 2); lVar6 = (param_1 >> 0x18) + 1; uVar8 = (ulong)(~(uint)((ulong)((uint)uVar1 * (uint)uVar1) * lVar6 >> 0x28) + (uint)uVar1 * 0x800); uVar7 = ((0x1000000000000000 - lVar6 * uVar8) * uVar8 >> 0x2f) + uVar8 * 0x2000; uVar8 = (ulong)((uint)param_1 & 1); auVar2._8_8_ = 0; auVar2._0_8_ = (uVar7 >> 1 & -uVar8) - ((param_1 >> 1) + uVar8) * uVar7; auVar4._8_8_ = 0; auVar4._0_8_ = uVar7; uVar8 = uVar7 * 0x80000000 + (SUB168(auVar2 * auVar4,8) >> 1); auVar3._8_8_ = 0; auVar3._0_8_ = uVar8; auVar5._8_8_ = 0; auVar5._0_8_ = param_1; operator+(SUB168(auVar3 * auVar5,0),SUB168(auVar3 * auVar5,8),param_1,0); return uVar8 - (extraout_RDX + param_1); } /* WARNING: Subroutine does not return */ __assert_fail("d & 0x8000000000000000", "/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp" ,0x274,"uint64_t intx::reciprocal_2by1(uint64_t)"); }
21,192
report_path_error_ex(char const*, st_json_path_t*, char const*, int, Sql_state_errno_level::enum_warning_level)
eloqsql/sql/item_jsonfunc.cc
void report_path_error_ex(const char *ps, json_path_t *p, const char *fname, int n_param, Sql_condition::enum_warning_level lv) { THD *thd= current_thd; int position= (int)((const char *) p->s.c_str - ps + 1); uint code; n_param++; switch (p->s.error) { case JE_BAD_CHR: case JE_NOT_JSON_CHR: case JE_SYN: code= ER_JSON_PATH_SYNTAX; break; case JE_EOS: code= ER_JSON_PATH_EOS; break; case JE_DEPTH: code= ER_JSON_PATH_DEPTH; if (lv == Sql_condition::WARN_LEVEL_ERROR) my_error(code, MYF(0), JSON_DEPTH_LIMIT, n_param, fname, position); else push_warning_printf(thd, lv, code, ER_THD(thd, code), JSON_DEPTH_LIMIT, n_param, fname, position); return; case NO_WILDCARD_ALLOWED: code= ER_JSON_PATH_NO_WILDCARD; break; case TRIVIAL_PATH_NOT_ALLOWED: code= ER_JSON_PATH_EMPTY; break; default: return; } if (lv == Sql_condition::WARN_LEVEL_ERROR) my_error(code, MYF(0), n_param, fname, position); else push_warning_printf(thd, lv, code, ER_THD(thd, code), n_param, fname, position); }
O3
cpp
report_path_error_ex(char const*, st_json_path_t*, char const*, int, Sql_state_errno_level::enum_warning_level): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r8d, %r15d movl %ecx, %r14d movq %rdx, %rbx movq %rsi, %r13 movq %rdi, %r12 callq 0x467888 movl 0x18(%r13), %ecx addl $0x7, %ecx cmpl $0xa, %ecx ja 0x60de15 movl (%r13), %r10d subl %r12d, %r10d incl %r10d incl %r14d leaq 0x3f352f(%rip), %rdx # 0xa01334 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movl $0xfca, %edx # imm = 0xFCA jmp 0x60de65 addq $0x8, %rsp jmp 0x60decf movl $0xfcc, %edx # imm = 0xFCC jmp 0x60de65 movl $0xfd3, %edx # imm = 0xFD3 jmp 0x60de65 cmpl $0x2, %r15d jne 0x60deda movl $0xfcb, %edi # imm = 0xFCB xorl %esi, %esi movl $0x20, %edx movl %r14d, %ecx movq %rbx, %r8 movl %r10d, %r9d xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x89dd0b movl $0xfc9, %edx # imm = 0xFC9 cmpl $0x2, %r15d jne 0x60de8d movl %edx, %edi xorl %esi, %esi movl %r14d, %edx movq %rbx, %rcx movl %r10d, %r8d xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x89dd0b movq 0xb90(%rax), %rcx movq 0x18(%rcx), %rcx imull $0x1063, %edx, %esi # imm = 0x1063 shrl $0x16, %esi imull $0x3e8, %esi, %esi # imm = 0x3E8 movl %edx, %edi subl %esi, %edi movzwl %di, %esi movq (%rcx,%rsi,8), %rcx subq $0x8, %rsp movq %rax, %rdi movl %r15d, %esi movl %r14d, %r8d movq %rbx, %r9 xorl %eax, %eax pushq %r10 callq 0x4dd8e8 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0xb90(%rax), %rcx movq 0x18(%rcx), %rcx movq 0x158(%rcx), %rcx movq %rax, %rdi movl %r15d, %esi movl $0xfcb, %edx # imm = 0xFCB movl $0x20, %r8d movl %r14d, %r9d xorl %eax, %eax pushq %r10 pushq %rbx callq 0x4dd8e8 jmp 0x60decb
_Z20report_path_error_exPKcP14st_json_path_tS0_iN21Sql_state_errno_level18enum_warning_levelE: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r15d, r8d mov r14d, ecx mov rbx, rdx mov r13, rsi mov r12, rdi call _current_thd mov ecx, [r13+18h] add ecx, 7; switch 11 cases cmp ecx, 0Ah ja short def_60DE0C; jumptable 000000000060DE0C default case, cases -6,-5,0,2 mov r10d, [r13+0] sub r10d, r12d inc r10d inc r14d lea rdx, jpt_60DE0C movsxd rcx, ds:(jpt_60DE0C - 0A01334h)[rdx+rcx*4] add rcx, rdx jmp rcx; switch jump loc_60DE0E: mov edx, 0FCAh; jumptable 000000000060DE0C cases -4,-2,-1 jmp short loc_60DE65 def_60DE0C: add rsp, 8; jumptable 000000000060DE0C default case, cases -6,-5,0,2 jmp loc_60DECF loc_60DE1E: mov edx, 0FCCh; jumptable 000000000060DE0C case 1 jmp short loc_60DE65 loc_60DE25: mov edx, 0FD3h; jumptable 000000000060DE0C case 3 jmp short loc_60DE65 loc_60DE2C: cmp r15d, 2; jumptable 000000000060DE0C case -7 jnz loc_60DEDA mov edi, 0FCBh xor esi, esi mov edx, 20h ; ' ' mov ecx, r14d mov r8, rbx mov r9d, r10d xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp my_error loc_60DE60: mov edx, 0FC9h; jumptable 000000000060DE0C case -3 loc_60DE65: cmp r15d, 2 jnz short loc_60DE8D mov edi, edx xor esi, esi mov edx, r14d mov rcx, rbx mov r8d, r10d xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp my_error loc_60DE8D: mov rcx, [rax+0B90h] mov rcx, [rcx+18h] imul esi, edx, 1063h shr esi, 16h imul esi, 3E8h mov edi, edx sub edi, esi movzx esi, di mov rcx, [rcx+rsi*8] sub rsp, 8 mov rdi, rax mov esi, r15d mov r8d, r14d mov r9, rbx xor eax, eax push r10 call _Z19push_warning_printfP3THDN21Sql_state_errno_level18enum_warning_levelEjPKcz; push_warning_printf(THD *,Sql_state_errno_level::enum_warning_level,uint,char const*,...) loc_60DECB: add rsp, 18h loc_60DECF: pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_60DEDA: mov rcx, [rax+0B90h] mov rcx, [rcx+18h] mov rcx, [rcx+158h] mov rdi, rax mov esi, r15d mov edx, 0FCBh mov r8d, 20h ; ' ' mov r9d, r14d xor eax, eax push r10 push rbx call _Z19push_warning_printfP3THDN21Sql_state_errno_level18enum_warning_levelEjPKcz; push_warning_printf(THD *,Sql_state_errno_level::enum_warning_level,uint,char const*,...) jmp short loc_60DECB
THD * report_path_error_ex( int a1, _DWORD *a2, long long a3, int a4, unsigned int a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13) { THD *result; // rax int v17; // r9d __m128 v18; // xmm4 __m128 v19; // xmm5 int v20; // r10d unsigned int v21; // r14d unsigned int v22; // edx result = (THD *)current_thd(); v20 = *a2 - a1 + 1; v21 = a4 + 1; switch ( a2[6] ) { case 0xFFFFFFF9: if ( a5 == 2 ) return (THD *)my_error(4043, 0, 32, v21, a3, v20); else return (THD *)push_warning_printf( result, a5, 0xFCBu, *(_QWORD *)(*(_QWORD *)(*((_QWORD *)result + 370) + 24LL) + 344LL), 32LL, v21, a6, a7, a8, a9, v18, v19, a12, a13, a3); case 0xFFFFFFFC: case 0xFFFFFFFE: case 0xFFFFFFFF: v22 = 4042; goto LABEL_8; case 0xFFFFFFFD: v22 = 4041; goto LABEL_8; case 1: v22 = 4044; goto LABEL_8; case 3: v22 = 4051; LABEL_8: if ( a5 == 2 ) result = (THD *)my_error(v22, 0, v21, a3, v20, v17); else result = (THD *)push_warning_printf( result, a5, v22, *(_QWORD *)(*(_QWORD *)(*((_QWORD *)result + 370) + 24LL) + 8LL * (unsigned __int16)(v22 - 1000 * ((unsigned __int16)((4195 * v22) >> 16) >> 6))), v21, a3, a6, a7, a8, a9, v18, v19, a12, a13, *(_BYTE *)a2 - (unsigned __int8)a1 + 1); break; default: return result; } return result; }
notify_reload_acl_and_cache: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV AL,byte ptr [0x011eb858] TEST AL,AL JZ 0x0060de03 LAB_0060ddd6: MOV AL,byte ptr [0x011eb868] TEST AL,AL JZ 0x0060de0d LAB_0060dde0: MOV AL,byte ptr [0x011eb878] TEST AL,AL JZ 0x0060de47 LAB_0060ddea: MOV AL,byte ptr [0x011eb888] TEST AL,AL JZ 0x0060de4e LAB_0060ddf4: MOV RDI,RBX ADD RSP,0x8 POP RBX POP RBP JMP qword ptr [0x011eb880] LAB_0060de03: MOV RDI,RBX CALL 0x0050c07e JMP 0x0060ddd6 LAB_0060de0d: LEA RDI,[0x11eb868] CALL 0x00500710 TEST EAX,EAX JZ 0x0060dde0 MOV RDI,qword ptr [0x011eb850] LAB_0060de24: LEA RSI,[0x11497b0] XOR EDX,EDX CALL 0x007b4dcc LAB_0060de32: MOV qword ptr [0x011eb860],RAX LEA RDI,[0x11eb868] CALL 0x00500ca0 JMP 0x0060dde0 LAB_0060de47: CALL 0x0050c0b7 JMP 0x0060ddea LAB_0060de4e: CALL 0x0050c0f0 JMP 0x0060ddf4
/* notify_reload_acl_and_cache(THD*) */ void notify_reload_acl_and_cache(THD *param_1) { int iVar1; THD *pTVar2; pTVar2 = param_1; if (notify_reload_acl_and_cache(THD*)::t == '\0') { notify_reload_acl_and_cache(param_1); } if (notify_reload_acl_and_cache(THD*)::pi == '\0') { pTVar2 = (THD *)&notify_reload_acl_and_cache(THD*)::pi; iVar1 = __cxa_guard_acquire(); if (iVar1 != 0) { /* try { // try from 0060de24 to 0060de31 has its CatchHandler @ 0060de55 */ notify_reload_acl_and_cache(THD*)::pi = ha_resolve_by_name(notify_reload_acl_and_cache(THD*)::t, (st_mysql_const_lex_string *)ELOQ_ENGINE_NAME,false); pTVar2 = (THD *)&notify_reload_acl_and_cache(THD*)::pi; __cxa_guard_release(); } } if (notify_reload_acl_and_cache(THD*)::handle == '\0') { notify_reload_acl_and_cache(pTVar2); } if (notify_reload_acl_and_cache(THD*)::fp == '\0') { notify_reload_acl_and_cache(pTVar2); } /* WARNING: Could not recover jumptable at 0x0060ddfd. Too many branches */ /* WARNING: Treating indirect jump as call */ (*notify_reload_acl_and_cache(THD*)::fp)(param_1); return; }
21,193
js_array_isArray
bluesky950520[P]quickjs/quickjs.c
static JSValue js_array_isArray(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int ret; ret = JS_IsArray(ctx, argv[0]); if (ret < 0) return JS_EXCEPTION; else return js_bool(ret); }
O0
c
js_array_isArray: subq $0x48, %rsp movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq %rdi, 0x20(%rsp) movl %ecx, 0x1c(%rsp) movq %r8, 0x10(%rsp) movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x3fe90 movl %eax, 0xc(%rsp) cmpl $0x0, 0xc(%rsp) jge 0xd5420 movl $0x0, 0x38(%rsp) movq $0x6, 0x40(%rsp) jmp 0xd5433 movl 0xc(%rsp), %edi callq 0x5d540 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) movq 0x38(%rsp), %rax movq 0x40(%rsp), %rdx addq $0x48, %rsp retq nopw %cs:(%rax,%rax)
js_array_isArray: sub rsp, 48h mov [rsp+48h+var_20], rsi mov [rsp+48h+var_18], rdx mov [rsp+48h+var_28], rdi mov [rsp+48h+var_2C], ecx mov [rsp+48h+var_38], r8 mov rdi, [rsp+48h+var_28] mov rax, [rsp+48h+var_38] mov rsi, [rax] mov rdx, [rax+8] call JS_IsArray mov [rsp+48h+var_3C], eax cmp [rsp+48h+var_3C], 0 jge short loc_D5420 mov dword ptr [rsp+48h+var_10], 0 mov [rsp+48h+var_8], 6 jmp short loc_D5433 loc_D5420: mov edi, [rsp+48h+var_3C] call js_bool mov [rsp+48h+var_10], rax mov [rsp+48h+var_8], rdx loc_D5433: mov rax, [rsp+48h+var_10] mov rdx, [rsp+48h+var_8] add rsp, 48h retn
long long js_array_isArray(long long a1, long long a2, long long a3, long long a4, long long *a5) { int IsArray; // [rsp+Ch] [rbp-3Ch] long long v7; // [rsp+38h] [rbp-10h] IsArray = JS_IsArray(a1, *a5, a5[1]); if ( IsArray >= 0 ) return js_bool(IsArray); LODWORD(v7) = 0; return v7; }
js_array_isArray: SUB RSP,0x48 MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x20],RDI MOV dword ptr [RSP + 0x1c],ECX MOV qword ptr [RSP + 0x10],R8 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x0013fe90 MOV dword ptr [RSP + 0xc],EAX CMP dword ptr [RSP + 0xc],0x0 JGE 0x001d5420 MOV dword ptr [RSP + 0x38],0x0 MOV qword ptr [RSP + 0x40],0x6 JMP 0x001d5433 LAB_001d5420: MOV EDI,dword ptr [RSP + 0xc] CALL 0x0015d540 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX LAB_001d5433: MOV RAX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] ADD RSP,0x48 RET
int1 [16] js_array_isArray(int8 param_1) { int iVar1; int8 *in_R8; int1 auVar2 [16]; int4 local_10; int4 uStack_c; int8 local_8; iVar1 = JS_IsArray(param_1,*in_R8,in_R8[1]); if (iVar1 < 0) { local_10 = 0; local_8 = 6; } else { auVar2 = js_bool(iVar1); local_8 = auVar2._8_8_; local_10 = auVar2._0_4_; uStack_c = auVar2._4_4_; } auVar2._4_4_ = uStack_c; auVar2._0_4_ = local_10; auVar2._8_8_ = local_8; return auVar2; }
21,194
printNewConnection(char const*)
serhmarch[P]ModbusBridge/src/mbridge.cpp
void printNewConnection(const Modbus::Char *source) { std::cout << "New connection: " << source << std::endl; }
O1
cpp
printNewConnection(char const*): pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 movq 0x1cc10(%rip), %rbx # 0x22fd8 leaq 0x13116(%rip), %rsi # 0x194e5 movl $0x10, %edx movq %rbx, %rdi callq 0x5370 testq %r14, %r14 je 0x63fd movq %r14, %rdi callq 0x5180 movq 0x1cbe8(%rip), %rdi # 0x22fd8 movq %r14, %rsi movq %rax, %rdx callq 0x5370 jmp 0x6414 movq (%rbx), %rax movq -0x18(%rax), %rax leaq (%rbx,%rax), %rdi movl 0x20(%rbx,%rax), %esi orl $0x1, %esi callq 0x5520 movq (%rbx), %rax movq -0x18(%rax), %rdi addq %rbx, %rdi movl $0xa, %esi callq 0x52f0 movsbl %al, %esi movq %rbx, %rdi callq 0x5040 movq %rax, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x5240
_Z18printNewConnectionPKc: push r14 push rbx push rax mov r14, rdi mov rbx, cs:_ZSt4cout_ptr lea rsi, aNewConnection; "New connection: " mov edx, 10h mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) test r14, r14 jz short loc_63FD mov rdi, r14 call _strlen mov rdi, cs:_ZSt4cout_ptr mov rsi, r14 mov rdx, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_6414 loc_63FD: mov rax, [rbx] mov rax, [rax-18h] lea rdi, [rbx+rax] mov esi, [rbx+rax+20h] or esi, 1 call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate) loc_6414: mov rax, [rbx] mov rdi, [rax-18h] add rdi, rbx mov esi, 0Ah call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char) movsx esi, al; char mov rdi, rbx; this call __ZNSo3putEc; std::ostream::put(char) mov rdi, rax; this add rsp, 8 pop rbx pop r14 jmp __ZNSo5flushEv; std::ostream::flush(void)
long long printNewConnection(const char *a1) { long long v1; // rax char v2; // al std::ostream *v3; // rax std::__ostream_insert<char,std::char_traits<char>>(&std::cout, "New connection: ", 16LL); if ( a1 ) { v1 = strlen(a1); std::__ostream_insert<char,std::char_traits<char>>(&std::cout, a1, v1); } else { std::ios::clear( (char *)&std::cout + *(_QWORD *)(std::cout - 24LL), *(_DWORD *)((char *)&std::cout + *(_QWORD *)(std::cout - 24LL) + 32) | 1u); } v2 = std::ios::widen((char *)&std::cout + *(_QWORD *)(std::cout - 24LL), 10LL); v3 = (std::ostream *)std::ostream::put((std::ostream *)&std::cout, v2); return std::ostream::flush(v3); }
printNewConnection: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI MOV RBX,qword ptr [0x00122fd8] LEA RSI,[0x1194e5] MOV EDX,0x10 MOV RDI,RBX CALL 0x00105370 TEST R14,R14 JZ 0x001063fd MOV RDI,R14 CALL 0x00105180 MOV RDI,qword ptr [0x00122fd8] MOV RSI,R14 MOV RDX,RAX CALL 0x00105370 JMP 0x00106414 LAB_001063fd: MOV RAX,qword ptr [RBX] MOV RAX,qword ptr [RAX + -0x18] LEA RDI,[RBX + RAX*0x1] MOV ESI,dword ptr [RBX + RAX*0x1 + 0x20] OR ESI,0x1 CALL 0x00105520 LAB_00106414: MOV RAX,qword ptr [RBX] MOV RDI,qword ptr [RAX + -0x18] ADD RDI,RBX MOV ESI,0xa CALL 0x001052f0 MOVSX ESI,AL MOV RDI,RBX CALL 0x00105040 MOV RDI,RAX ADD RSP,0x8 POP RBX POP R14 JMP 0x00105240
/* printNewConnection(char const*) */ void printNewConnection(char *param_1) { int *puVar1; size_t sVar2; puVar1 = PTR_cout_00122fd8; std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cout_00122fd8,"New connection: ",0x10); if (param_1 == (char *)0x0) { std::ios::clear(puVar1 + *(long *)(*(long *)puVar1 + -0x18), *(uint *)(puVar1 + *(long *)(*(long *)puVar1 + -0x18) + 0x20) | 1); } else { sVar2 = strlen(param_1); std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cout_00122fd8,param_1,sVar2); } std::ios::widen((char)*(int8 *)(*(long *)puVar1 + -0x18) + (char)puVar1); std::ostream::put((char)puVar1); std::ostream::flush(); return; }
21,195
printNewConnection(char const*)
serhmarch[P]ModbusBridge/src/mbridge.cpp
void printNewConnection(const Modbus::Char *source) { std::cout << "New connection: " << source << std::endl; }
O3
cpp
printNewConnection(char const*): pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 movq 0x1bc10(%rip), %rbx # 0x21fd8 leaq 0x12116(%rip), %rsi # 0x184e5 movl $0x10, %edx movq %rbx, %rdi callq 0x5370 testq %r14, %r14 je 0x63fd movq %r14, %rdi callq 0x5180 movq 0x1bbe8(%rip), %rdi # 0x21fd8 movq %r14, %rsi movq %rax, %rdx callq 0x5370 jmp 0x6414 movq (%rbx), %rax movq -0x18(%rax), %rax leaq (%rbx,%rax), %rdi movl 0x20(%rbx,%rax), %esi orl $0x1, %esi callq 0x5520 movq (%rbx), %rax movq -0x18(%rax), %rdi addq %rbx, %rdi movl $0xa, %esi callq 0x52f0 movsbl %al, %esi movq %rbx, %rdi callq 0x5040 movq %rax, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x5240
_Z18printNewConnectionPKc: push r14 push rbx push rax mov r14, rdi mov rbx, cs:_ZSt4cout_ptr lea rsi, aNewConnection; "New connection: " mov edx, 10h mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) test r14, r14 jz short loc_63FD mov rdi, r14 call _strlen mov rdi, cs:_ZSt4cout_ptr mov rsi, r14 mov rdx, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_6414 loc_63FD: mov rax, [rbx] mov rax, [rax-18h] lea rdi, [rbx+rax] mov esi, [rbx+rax+20h] or esi, 1 call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate) loc_6414: mov rax, [rbx] mov rdi, [rax-18h] add rdi, rbx mov esi, 0Ah call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char) movsx esi, al; char mov rdi, rbx; this call __ZNSo3putEc; std::ostream::put(char) mov rdi, rax; this add rsp, 8 pop rbx pop r14 jmp __ZNSo5flushEv; std::ostream::flush(void)
long long printNewConnection(const char *a1) { long long v1; // rax char v2; // al std::ostream *v3; // rax std::__ostream_insert<char,std::char_traits<char>>(&std::cout, "New connection: ", 16LL); if ( a1 ) { v1 = strlen(a1); std::__ostream_insert<char,std::char_traits<char>>(&std::cout, a1, v1); } else { std::ios::clear( (char *)&std::cout + *(_QWORD *)(std::cout - 24LL), *(_DWORD *)((char *)&std::cout + *(_QWORD *)(std::cout - 24LL) + 32) | 1u); } v2 = std::ios::widen((char *)&std::cout + *(_QWORD *)(std::cout - 24LL), 10LL); v3 = (std::ostream *)std::ostream::put((std::ostream *)&std::cout, v2); return std::ostream::flush(v3); }
printNewConnection: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI MOV RBX,qword ptr [0x00121fd8] LEA RSI,[0x1184e5] MOV EDX,0x10 MOV RDI,RBX CALL 0x00105370 TEST R14,R14 JZ 0x001063fd MOV RDI,R14 CALL 0x00105180 MOV RDI,qword ptr [0x00121fd8] MOV RSI,R14 MOV RDX,RAX CALL 0x00105370 JMP 0x00106414 LAB_001063fd: MOV RAX,qword ptr [RBX] MOV RAX,qword ptr [RAX + -0x18] LEA RDI,[RBX + RAX*0x1] MOV ESI,dword ptr [RBX + RAX*0x1 + 0x20] OR ESI,0x1 CALL 0x00105520 LAB_00106414: MOV RAX,qword ptr [RBX] MOV RDI,qword ptr [RAX + -0x18] ADD RDI,RBX MOV ESI,0xa CALL 0x001052f0 MOVSX ESI,AL MOV RDI,RBX CALL 0x00105040 MOV RDI,RAX ADD RSP,0x8 POP RBX POP R14 JMP 0x00105240
/* printNewConnection(char const*) */ void printNewConnection(char *param_1) { int *puVar1; size_t sVar2; puVar1 = PTR_cout_00121fd8; std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cout_00121fd8,"New connection: ",0x10); if (param_1 == (char *)0x0) { std::ios::clear(puVar1 + *(long *)(*(long *)puVar1 + -0x18), *(uint *)(puVar1 + *(long *)(*(long *)puVar1 + -0x18) + 0x20) | 1); } else { sVar2 = strlen(param_1); std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cout_00121fd8,param_1,sVar2); } std::ios::widen((char)*(int8 *)(*(long *)puVar1 + -0x18) + (char)puVar1); std::ostream::put((char)puVar1); std::ostream::flush(); return; }
21,196
pcmp
eloqsql/strings/ctype-simple.c
static int pcmp(const void * f, const void * s) { const uni_idx *F= (const uni_idx*) f; const uni_idx *S= (const uni_idx*) s; int res; if (!(res=((S->nchars)-(F->nchars)))) res=((F->uidx.from)-(S->uidx.to)); return res; }
O3
c
pcmp: pushq %rbp movq %rsp, %rbp movl (%rsi), %eax subl (%rdi), %eax jne 0x5b571 movzwl 0x8(%rdi), %eax movzwl 0xa(%rsi), %ecx subl %ecx, %eax popq %rbp retq nop
pcmp: push rbp mov rbp, rsp mov eax, [rsi] sub eax, [rdi] jnz short loc_5B571 movzx eax, word ptr [rdi+8] movzx ecx, word ptr [rsi+0Ah] sub eax, ecx loc_5B571: pop rbp retn
long long pcmp(long long a1, long long a2) { long long result; // rax result = (unsigned int)(*(_DWORD *)a2 - *(_DWORD *)a1); if ( *(_DWORD *)a2 == *(_DWORD *)a1 ) return *(unsigned __int16 *)(a1 + 8) - (unsigned int)*(unsigned __int16 *)(a2 + 10); return result; }
pcmp: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RSI] SUB EAX,dword ptr [RDI] JNZ 0x0015b571 MOVZX EAX,word ptr [RDI + 0x8] MOVZX ECX,word ptr [RSI + 0xa] SUB EAX,ECX LAB_0015b571: POP RBP RET
int pcmp(int *param_1,int *param_2) { int iVar1; iVar1 = *param_2 - *param_1; if (iVar1 == 0) { iVar1 = (uint)*(ushort *)(param_1 + 2) - (uint)*(ushort *)((long)param_2 + 10); } return iVar1; }
21,197
str2int
eloqsql/strings/str2int.c
char *str2int(register const char *src, register int radix, long int lower, long int upper, long int *val) { int sign; /* is number negative (+1) or positive (-1) */ int n; /* number of digits yet to be converted */ long limit; /* "largest" possible valid input */ long scale; /* the amount to multiply next digit by */ long sofar; /* the running value */ register int d; /* (negative of) next digit */ char *start; int digits[32]; /* Room for numbers */ /* Make sure *val is sensible in case of error */ *val = 0; /* Check that the radix is in the range 2..36 */ #ifndef DBUG_OFF if (radix < 2 || radix > 36) { errno=EDOM; return NullS; } #endif /* The basic problem is: how do we handle the conversion of a number without resorting to machine-specific code to check for overflow? Obviously, we have to ensure that no calculation can overflow. We are guaranteed that the "lower" and "upper" arguments are valid machine integers. On sign-and-magnitude, twos-complement, and ones-complement machines all, if +|n| is representable, so is -|n|, but on twos complement machines the converse is not true. So the "maximum" representable number has a negative representative. Limit is set to MY_MIN(-|lower|,-|upper|); this is the "largest" number we are concerned with. */ /* Calculate Limit using Scale as a scratch variable */ if ((limit = lower) > 0) limit = -limit; if ((scale = upper) > 0) scale = -scale; if (scale < limit) limit = scale; /* Skip leading spaces and check for a sign. Note: because on a 2s complement machine MinLong is a valid integer but |MinLong| is not, we have to keep the current converted value (and the scale!) as *negative* numbers, so the sign is the opposite of what you might expect. */ while (my_isspace(&my_charset_latin1,*src)) src++; sign = -1; if (*src == '+') src++; else if (*src == '-') src++, sign = 1; /* Skip leading zeros so that we never compute a power of radix in scale that we won't have a need for. Otherwise sticking enough 0s in front of a number could cause the multiplication to overflow when it neededn't. */ start=(char*) src; while (*src == '0') src++; /* Move over the remaining digits. We have to convert from left to left in order to avoid overflow. Answer is after last digit. */ for (n = 0; (digits[n]=char_val(*src)) < radix && n < 20; n++,src++) ; /* Check that there is at least one digit */ if (start == src) { errno=EDOM; return NullS; } /* The invariant we want to maintain is that src is just to the right of n digits, we've converted k digits to sofar, scale = -radix**k, and scale < sofar < 0. Now if the final number is to be within the original Limit, we must have (to the left)*scale+sofar >= Limit, or (to the left)*scale >= Limit-sofar, i.e. the digits to the left of src must form an integer <= (Limit-sofar)/(scale). In particular, this is true of the next digit. In our incremental calculation of Limit, IT IS VITAL that (-|N|)/(-|D|) = |N|/|D| */ for (sofar = 0, scale = -1; --n >= 1;) { if ((long) -(d=digits[n]) < limit) { errno=ERANGE; return NullS; } limit = (limit+d)/radix, sofar += d*scale; scale *= radix; } if (n == 0) { if ((long) -(d=digits[n]) < limit) /* get last digit */ { errno=ERANGE; return NullS; } sofar+=d*scale; } /* Now it might still happen that sofar = -32768 or its equivalent, so we can't just multiply by the sign and check that the result is in the range lower..upper. All of this caution is a right pain in the neck. If only there were a standard routine which says generate thus and such a signal on integer overflow... But not enough machines can do it *SIGH*. */ if (sign < 0) { if (sofar < -LONG_MAX || (sofar= -sofar) > upper) { errno=ERANGE; return NullS; } } else if (sofar < lower) { errno=ERANGE; return NullS; } *val = sofar; errno=0; /* indicate that all went well */ return (char*) src; }
O3
c
str2int: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x80, %rsp movq %rdx, %r9 movq $0x0, (%r8) movq %rdx, %rax negq %rax cmovsq %rdx, %rax movq %rcx, %rdx negq %rdx cmovnsq %rcx, %rdx leaq 0x2c7b31(%rip), %r10 # 0x359d70 movq 0x40(%r10), %r11 movzbl (%rdi), %r10d incq %rdi testb $0x8, 0x1(%r11,%r10) jne 0x92243 negq %rax cmpq %rax, %rdx cmovlq %rdx, %rax cmpl $0x2b, %r10d je 0x92270 cmpl $0x2d, %r10d jne 0x9226d xorl %r10d, %r10d jmp 0x92273 decq %rdi movb $0x1, %r10b leaq -0x1(%rdi), %rbx movb 0x1(%rbx), %r14b incq %rbx cmpb $0x30, %r14b je 0x92277 xorl %r11d, %r11d xorl %edx, %edx leal -0x30(%r14), %r15d cmpb $0x9, %r15b ja 0x92299 movzbl %r15b, %r15d jmp 0x922c5 leal -0x41(%r14), %r15d cmpb $0x19, %r15b ja 0x922ad movzbl %r14b, %r15d addl $-0x37, %r15d jmp 0x922c5 leal -0x61(%r14), %r12d movl $0x7f, %r15d cmpb $0x19, %r12b ja 0x922c5 movzbl %r14b, %r15d addl $-0x57, %r15d movl %r15d, -0xa0(%rbp,%rdx,4) cmpl %esi, %r15d jge 0x922e7 cmpq $0x13, %rdx ja 0x922e7 incq %rdx movb 0x1(%rbx), %r14b incq %rbx incl %r11d jmp 0x92289 cmpq %rdi, %rbx je 0x9232f cmpq $0x2, %rdx jb 0x92337 movslq %esi, %r14 movq $-0x1, %rdi xorl %esi, %esi decl %r11d movslq -0xa0(%rbp,%r11,4), %r15 movq %r15, %rdx negq %rdx cmpq %rdx, %rax jg 0x92372 addq %r15, %rax cqto idivq %r14 imulq %rdi, %r15 addq %r15, %rsi imulq %r14, %rdi cmpl $0x1, %r11d jg 0x922fe jmp 0x92344 movl $0x21, %r14d jmp 0x92378 xorl %esi, %esi decl %edx jne 0x9235d movq $-0x1, %rdi movslq -0xa0(%rbp), %rdx movq %rdx, %r11 negq %r11 cmpq %r11, %rax jg 0x92372 imulq %rdx, %rdi addq %rdi, %rsi testb %r10b, %r10b je 0x92395 negq %rsi seto %al cmpq %rcx, %rsi setg %cl orb %al, %cl je 0x9239a movl $0x22, %r14d xorl %ebx, %ebx callq 0x28050 movl %r14d, (%rax) movq %rbx, %rax addq $0x80, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq cmpq %r9, %rsi jl 0x92372 movq %rsi, (%r8) xorl %r14d, %r14d jmp 0x9237a nop
str2int: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 80h mov r9, rdx mov qword ptr [r8], 0 mov rax, rdx neg rax cmovs rax, rdx mov rdx, rcx neg rdx cmovns rdx, rcx lea r10, my_charset_latin1 mov r11, [r10+40h] loc_92243: movzx r10d, byte ptr [rdi] inc rdi test byte ptr [r11+r10+1], 8 jnz short loc_92243 neg rax cmp rdx, rax cmovl rax, rdx cmp r10d, 2Bh ; '+' jz short loc_92270 cmp r10d, 2Dh ; '-' jnz short loc_9226D xor r10d, r10d jmp short loc_92273 loc_9226D: dec rdi loc_92270: mov r10b, 1 loc_92273: lea rbx, [rdi-1] loc_92277: mov r14b, [rbx+1] inc rbx cmp r14b, 30h ; '0' jz short loc_92277 xor r11d, r11d xor edx, edx loc_92289: lea r15d, [r14-30h] cmp r15b, 9 ja short loc_92299 movzx r15d, r15b jmp short loc_922C5 loc_92299: lea r15d, [r14-41h] cmp r15b, 19h ja short loc_922AD movzx r15d, r14b add r15d, 0FFFFFFC9h jmp short loc_922C5 loc_922AD: lea r12d, [r14-61h] mov r15d, 7Fh cmp r12b, 19h ja short loc_922C5 movzx r15d, r14b add r15d, 0FFFFFFA9h loc_922C5: mov [rbp+rdx*4+var_A0], r15d cmp r15d, esi jge short loc_922E7 cmp rdx, 13h ja short loc_922E7 inc rdx mov r14b, [rbx+1] inc rbx inc r11d jmp short loc_92289 loc_922E7: cmp rbx, rdi jz short loc_9232F cmp rdx, 2 jb short loc_92337 movsxd r14, esi mov rdi, 0FFFFFFFFFFFFFFFFh xor esi, esi loc_922FE: dec r11d movsxd r15, [rbp+r11*4+var_A0] mov rdx, r15 neg rdx cmp rax, rdx jg short loc_92372 add rax, r15 cqo idiv r14 imul r15, rdi add rsi, r15 imul rdi, r14 cmp r11d, 1 jg short loc_922FE jmp short loc_92344 loc_9232F: mov r14d, 21h ; '!' jmp short loc_92378 loc_92337: xor esi, esi dec edx jnz short loc_9235D mov rdi, 0FFFFFFFFFFFFFFFFh loc_92344: movsxd rdx, [rbp+var_A0] mov r11, rdx neg r11 cmp rax, r11 jg short loc_92372 imul rdi, rdx add rsi, rdi loc_9235D: test r10b, r10b jz short loc_92395 neg rsi seto al cmp rsi, rcx setnle cl or cl, al jz short loc_9239A loc_92372: mov r14d, 22h ; '"' loc_92378: xor ebx, ebx loc_9237A: call ___errno_location mov [rax], r14d mov rax, rbx add rsp, 80h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_92395: cmp rsi, r9 jl short loc_92372 loc_9239A: mov [r8], rsi xor r14d, r14d jmp short loc_9237A
long long str2int(long long a1, int a2, long long a3, long long a4, long long *a5) { long long v6; // rax long long v7; // rdx long long v8; // r10 long long v9; // rax char v10; // r10 long long v11; // rbx unsigned __int8 v12; // r14 long long v13; // r11 unsigned long long i; // rdx int v15; // r15d long long v16; // r14 long long v17; // rsi long long v18; // r15 int v19; // r14d _DWORD v21[40]; // [rsp+0h] [rbp-A0h] *a5 = 0LL; v6 = -a3; if ( a3 > 0 ) v6 = a3; v7 = -a4; if ( a4 <= 0 ) v7 = a4; do v8 = *(unsigned __int8 *)a1++; while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + v8 + 1) & 8) != 0 ); v9 = -v6; if ( v7 < v9 ) v9 = v7; if ( (_DWORD)v8 != 43 ) { if ( (_DWORD)v8 == 45 ) { v10 = 0; goto LABEL_13; } --a1; } v10 = 1; LABEL_13: v11 = a1 - 1; do v12 = *(_BYTE *)++v11; while ( v12 == 48 ); LODWORD(v13) = 0; for ( i = 0LL; ; ++i ) { LOBYTE(v15) = v12 - 48; if ( (unsigned __int8)(v12 - 48) > 9u ) { if ( (unsigned __int8)(v12 - 65) > 0x19u ) { v15 = 127; if ( (unsigned __int8)(v12 - 97) <= 0x19u ) v15 = v12 - 87; } else { v15 = v12 - 55; } } else { v15 = (unsigned __int8)v15; } v21[i] = v15; if ( v15 >= a2 || i > 0x13 ) break; v12 = *(_BYTE *)++v11; LODWORD(v13) = v13 + 1; } if ( v11 != a1 ) { if ( i >= 2 ) { v16 = a2; a1 = -1LL; v17 = 0LL; while ( 1 ) { v13 = (unsigned int)(v13 - 1); v18 = (int)v21[v13]; if ( v9 > -v18 ) goto LABEL_38; v9 = (v18 + v9) / v16; v17 += a1 * v18; a1 *= v16; if ( (int)v13 <= 1 ) goto LABEL_34; } } v17 = 0LL; if ( (_DWORD)i == 1 ) { a1 = -1LL; LABEL_34: if ( v9 > -(long long)v21[0] ) goto LABEL_38; a1 *= v21[0]; v17 += a1; } if ( v10 ) { v17 = -v17; if ( __OFSUB__(v17, 1LL) || v17 > a4 ) { LABEL_38: v19 = 34; goto LABEL_39; } } else if ( v17 < a3 ) { goto LABEL_38; } *a5 = v17; v19 = 0; goto LABEL_40; } v19 = 33; LABEL_39: v11 = 0LL; LABEL_40: *(_DWORD *)__errno_location(a1) = v19; return v11; }
str2int: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x80 MOV R9,RDX MOV qword ptr [R8],0x0 MOV RAX,RDX NEG RAX CMOVS RAX,RDX MOV RDX,RCX NEG RDX CMOVNS RDX,RCX LEA R10,[0x459d70] MOV R11,qword ptr [R10 + 0x40] LAB_00192243: MOVZX R10D,byte ptr [RDI] INC RDI TEST byte ptr [R11 + R10*0x1 + 0x1],0x8 JNZ 0x00192243 NEG RAX CMP RDX,RAX CMOVL RAX,RDX CMP R10D,0x2b JZ 0x00192270 CMP R10D,0x2d JNZ 0x0019226d XOR R10D,R10D JMP 0x00192273 LAB_0019226d: DEC RDI LAB_00192270: MOV R10B,0x1 LAB_00192273: LEA RBX,[RDI + -0x1] LAB_00192277: MOV R14B,byte ptr [RBX + 0x1] INC RBX CMP R14B,0x30 JZ 0x00192277 XOR R11D,R11D XOR EDX,EDX LAB_00192289: LEA R15D,[R14 + -0x30] CMP R15B,0x9 JA 0x00192299 MOVZX R15D,R15B JMP 0x001922c5 LAB_00192299: LEA R15D,[R14 + -0x41] CMP R15B,0x19 JA 0x001922ad MOVZX R15D,R14B ADD R15D,-0x37 JMP 0x001922c5 LAB_001922ad: LEA R12D,[R14 + -0x61] MOV R15D,0x7f CMP R12B,0x19 JA 0x001922c5 MOVZX R15D,R14B ADD R15D,-0x57 LAB_001922c5: MOV dword ptr [RBP + RDX*0x4 + -0xa0],R15D CMP R15D,ESI JGE 0x001922e7 CMP RDX,0x13 JA 0x001922e7 INC RDX MOV R14B,byte ptr [RBX + 0x1] INC RBX INC R11D JMP 0x00192289 LAB_001922e7: CMP RBX,RDI JZ 0x0019232f CMP RDX,0x2 JC 0x00192337 MOVSXD R14,ESI MOV RDI,-0x1 XOR ESI,ESI LAB_001922fe: DEC R11D MOVSXD R15,dword ptr [RBP + R11*0x4 + -0xa0] MOV RDX,R15 NEG RDX CMP RAX,RDX JG 0x00192372 ADD RAX,R15 CQO IDIV R14 IMUL R15,RDI ADD RSI,R15 IMUL RDI,R14 CMP R11D,0x1 JG 0x001922fe JMP 0x00192344 LAB_0019232f: MOV R14D,0x21 JMP 0x00192378 LAB_00192337: XOR ESI,ESI DEC EDX JNZ 0x0019235d MOV RDI,-0x1 LAB_00192344: MOVSXD RDX,dword ptr [RBP + -0xa0] MOV R11,RDX NEG R11 CMP RAX,R11 JG 0x00192372 IMUL RDI,RDX ADD RSI,RDI LAB_0019235d: TEST R10B,R10B JZ 0x00192395 NEG RSI SETO AL CMP RSI,RCX SETG CL OR CL,AL JZ 0x0019239a LAB_00192372: MOV R14D,0x22 LAB_00192378: XOR EBX,EBX LAB_0019237a: CALL 0x00128050 MOV dword ptr [RAX],R14D MOV RAX,RBX ADD RSP,0x80 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00192395: CMP RSI,R9 JL 0x00192372 LAB_0019239a: MOV qword ptr [R8],RSI XOR R14D,R14D JMP 0x0019237a
byte * str2int(byte *param_1,int param_2,long param_3,long param_4,long *param_5) { long lVar1; int *piVar2; ulong uVar3; byte *pbVar4; long lVar5; byte *pbVar6; long lVar7; ulong uVar8; byte bVar9; int iVar10; uint uVar11; long lVar12; bool bVar13; uint local_a8 [32]; *param_5 = 0; lVar5 = -param_3; if (0 < param_3) { lVar5 = param_3; } lVar7 = -param_4; if (param_4 < 1) { lVar7 = param_4; } do { pbVar4 = param_1; bVar9 = *pbVar4; param_1 = pbVar4 + 1; } while ((PTR_ctype_latin1_00459db0[(ulong)bVar9 + 1] & 8) != 0); lVar1 = -lVar5; if (SBORROW8(lVar7,-lVar5) != lVar7 + lVar5 < 0) { lVar1 = lVar7; } pbVar6 = param_1; if ((bVar9 == 0x2b) || (pbVar6 = pbVar4, bVar9 != 0x2d)) { bVar13 = true; } else { bVar13 = false; pbVar6 = param_1; } pbVar4 = pbVar6 + -1; do { bVar9 = pbVar4[1]; pbVar4 = pbVar4 + 1; } while (bVar9 == 0x30); uVar8 = 0; uVar3 = 0; while( true ) { if ((byte)(bVar9 - 0x30) < 10) { uVar11 = (uint)(byte)(bVar9 - 0x30); } else if ((byte)(bVar9 + 0xbf) < 0x1a) { uVar11 = bVar9 - 0x37; } else { uVar11 = 0x7f; if ((byte)(bVar9 + 0x9f) < 0x1a) { uVar11 = bVar9 - 0x57; } } local_a8[uVar3] = uVar11; if ((param_2 <= (int)uVar11) || (0x13 < uVar3)) break; uVar3 = uVar3 + 1; bVar9 = pbVar4[1]; pbVar4 = pbVar4 + 1; uVar8 = (ulong)((int)uVar8 + 1); } if (pbVar4 == pbVar6) { iVar10 = 0x21; } else { if (uVar3 < 2) { lVar5 = 0; if ((int)uVar3 == 1) { lVar7 = -1; goto LAB_00192344; } LAB_0019235d: if (bVar13) { lVar7 = -lVar5; bVar13 = -param_4 == lVar5; lVar5 = lVar7; if (bVar13 || lVar7 < param_4) { LAB_0019239a: *param_5 = lVar5; iVar10 = 0; goto LAB_0019237a; } } else if (param_3 <= lVar5) goto LAB_0019239a; } else { lVar7 = -1; lVar5 = 0; do { uVar11 = (int)uVar8 - 1; uVar8 = (ulong)uVar11; lVar12 = (long)(int)local_a8[uVar8]; if (lVar1 != -lVar12 && SBORROW8(lVar1,-lVar12) == lVar1 + lVar12 < 0) goto LAB_00192372; lVar1 = (lVar1 + lVar12) / (long)param_2; lVar5 = lVar5 + lVar12 * lVar7; lVar7 = lVar7 * param_2; } while (1 < (int)uVar11); LAB_00192344: lVar12 = (long)(int)local_a8[0]; if (lVar1 == -lVar12 || SBORROW8(lVar1,-lVar12) != lVar1 + lVar12 < 0) { lVar5 = lVar5 + lVar7 * lVar12; goto LAB_0019235d; } } LAB_00192372: iVar10 = 0x22; } pbVar4 = (byte *)0x0; LAB_0019237a: piVar2 = __errno_location(); *piVar2 = iVar10; return pbVar4; }
21,198
translog_read_file_header
eloqsql/storage/maria/ma_loghandler.c
my_bool translog_read_file_header(LOGHANDLER_FILE_INFO *desc, File file) { uchar page_buff[LOG_HEADER_DATA_SIZE]; DBUG_ENTER("translog_read_file_header"); if (mysql_file_pread(file, page_buff, sizeof(page_buff), 0, MYF(MY_FNABP | MY_WME))) { DBUG_PRINT("info", ("log read fail error: %d", my_errno)); DBUG_RETURN(1); } translog_interpret_file_header(desc, page_buff); DBUG_PRINT("info", ("timestamp: %llu aria ver: %lu mysql ver: %lu " "server id %lu page size %lu file number %lu " "max lsn: " LSN_FMT, (ulonglong) desc->timestamp, (ulong) desc->maria_version, (ulong) desc->mysql_version, (ulong) desc->server_id, desc->page_size, (ulong) desc->file_number, LSN_IN_PARTS(desc->max_lsn))); DBUG_RETURN(0); }
O0
c
translog_read_file_header: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x50(%rbp) movl %esi, -0x54(%rbp) movl -0x54(%rbp), %edx leaq -0x40(%rbp), %rcx leaq 0x12b6c0(%rip), %rdi # 0x1573aa movl $0x4e0, %esi # imm = 0x4E0 movl $0x2c, %r8d xorl %eax, %eax movl %eax, %r9d movq $0x12, (%rsp) callq 0x2bd60 cmpq $0x0, %rax je 0x2bd19 jmp 0x2bd0f jmp 0x2bd11 jmp 0x2bd13 movb $0x1, -0x41(%rbp) jmp 0x2bd2e movq -0x50(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0x2bba0 jmp 0x2bd28 jmp 0x2bd2a movb $0x0, -0x41(%rbp) movb -0x41(%rbp), %al movb %al, -0x55(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x2bd4f movb -0x55(%rbp), %al addq $0x60, %rsp popq %rbp retq callq 0x2a250 nopw %cs:(%rax,%rax)
translog_read_file_header: push rbp mov rbp, rsp sub rsp, 60h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_50], rdi mov [rbp+var_54], esi mov edx, [rbp+var_54] lea rcx, [rbp+var_40] lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 4E0h mov r8d, 2Ch ; ',' xor eax, eax mov r9d, eax mov [rsp+60h+var_60], 12h call inline_mysql_file_pread cmp rax, 0 jz short loc_2BD19 jmp short $+2 loc_2BD0F: jmp short $+2 loc_2BD11: jmp short $+2 loc_2BD13: mov [rbp+var_41], 1 jmp short loc_2BD2E loc_2BD19: mov rdi, [rbp+var_50] lea rsi, [rbp+var_40] call translog_interpret_file_header jmp short $+2 loc_2BD28: jmp short $+2 loc_2BD2A: mov [rbp+var_41], 0 loc_2BD2E: mov al, [rbp+var_41] mov [rbp+var_55], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_2BD4F mov al, [rbp+var_55] add rsp, 60h pop rbp retn loc_2BD4F: call ___stack_chk_fail
char translog_read_file_header(unsigned long long *a1, int a2) { _BYTE v4[56]; // [rsp+20h] [rbp-40h] BYREF unsigned long long v5; // [rsp+58h] [rbp-8h] v5 = __readfsqword(0x28u); if ( inline_mysql_file_pread( (unsigned int)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 1248, a2, (unsigned int)v4, 44, 0, 18LL) ) { return 1; } translog_interpret_file_header(a1, (long long)v4); return 0; }
translog_read_file_header: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x50],RDI MOV dword ptr [RBP + -0x54],ESI MOV EDX,dword ptr [RBP + -0x54] LEA RCX,[RBP + -0x40] LEA RDI,[0x2573aa] MOV ESI,0x4e0 MOV R8D,0x2c XOR EAX,EAX MOV R9D,EAX MOV qword ptr [RSP],0x12 CALL 0x0012bd60 CMP RAX,0x0 JZ 0x0012bd19 JMP 0x0012bd0f LAB_0012bd0f: JMP 0x0012bd11 LAB_0012bd11: JMP 0x0012bd13 LAB_0012bd13: MOV byte ptr [RBP + -0x41],0x1 JMP 0x0012bd2e LAB_0012bd19: MOV RDI,qword ptr [RBP + -0x50] LEA RSI,[RBP + -0x40] CALL 0x0012bba0 JMP 0x0012bd28 LAB_0012bd28: JMP 0x0012bd2a LAB_0012bd2a: MOV byte ptr [RBP + -0x41],0x0 LAB_0012bd2e: MOV AL,byte ptr [RBP + -0x41] MOV byte ptr [RBP + -0x55],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0012bd4f MOV AL,byte ptr [RBP + -0x55] ADD RSP,0x60 POP RBP RET LAB_0012bd4f: CALL 0x0012a250
int8 translog_read_file_header(int8 param_1,int4 param_2) { long lVar1; long in_FS_OFFSET; bool local_49; int1 local_48 [56]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); lVar1 = inline_mysql_file_pread ("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0x4e0, param_2,local_48,0x2c,0,0x12); if (lVar1 == 0) { translog_interpret_file_header(param_1,local_48); } local_49 = lVar1 != 0; 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_49); }
21,199
purge_digest(PFS_thread*, PFS_digest_key*)
eloqsql/storage/perfschema/pfs_digest.cc
void purge_digest(PFS_thread* thread, PFS_digest_key *hash_key) { LF_PINS *pins= get_digest_hash_pins(thread); if (unlikely(pins == NULL)) return; PFS_statements_digest_stat **entry; /* Lookup LF_HASH using this new key. */ entry= reinterpret_cast<PFS_statements_digest_stat**> (lf_hash_search(&digest_hash, pins, hash_key, sizeof(PFS_digest_key))); if (entry && (entry != MY_ERRPTR)) { lf_hash_delete(&digest_hash, pins, hash_key, sizeof(PFS_digest_key)); } lf_hash_search_unpin(pins); return; }
O0
cpp
purge_digest(PFS_thread*, PFS_digest_key*): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi callq 0x55c90 movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x55d31 jmp 0x55d95 movq -0x18(%rbp), %rsi movq -0x10(%rbp), %rdx leaq 0x3ba9c8(%rip), %rdi # 0x410708 movl $0xd4, %ecx callq 0x5fc80 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x55d79 movl $0x1, %eax cmpq %rax, -0x20(%rbp) je 0x55d79 movq -0x18(%rbp), %rsi movq -0x10(%rbp), %rdx leaq 0x3ba999(%rip), %rdi # 0x410708 movl $0xd4, %ecx callq 0x5f260 jmp 0x55d7b jmp 0x55d7d jmp 0x55d7f movq -0x18(%rbp), %rcx movq $0x0, -0x28(%rbp) movq -0x28(%rbp), %rax xchgq %rax, 0x10(%rcx) jmp 0x55d95 addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
_Z12purge_digestP10PFS_threadP14PFS_digest_key: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8]; PFS_thread * call _ZL20get_digest_hash_pinsP10PFS_thread; get_digest_hash_pins(PFS_thread *) mov [rbp+var_18], rax cmp [rbp+var_18], 0 setz al and al, 1 movzx eax, al cmp eax, 0 jz short loc_55D31 jmp short loc_55D95 loc_55D31: mov rsi, [rbp+var_18] mov rdx, [rbp+var_10] lea rdi, digest_hash mov ecx, 0D4h call lf_hash_search mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_55D79 mov eax, 1 cmp [rbp+var_20], rax jz short loc_55D79 mov rsi, [rbp+var_18] mov rdx, [rbp+var_10] lea rdi, digest_hash mov ecx, 0D4h call lf_hash_delete loc_55D79: jmp short $+2 loc_55D7B: jmp short $+2 loc_55D7D: jmp short $+2 loc_55D7F: mov rcx, [rbp+var_18] mov [rbp+var_28], 0 mov rax, [rbp+var_28] xchg rax, [rcx+10h] jmp short $+2 loc_55D95: add rsp, 30h pop rbp retn
long long purge_digest(PFS_thread *a1, long long a2) { long long result; // rax long long digest_hash_pins; // [rsp+18h] [rbp-18h] digest_hash_pins = get_digest_hash_pins(a1); result = digest_hash_pins == 0; if ( digest_hash_pins ) { if ( (unsigned long long)lf_hash_search(&digest_hash, digest_hash_pins, a2, 212LL) >= 2 ) lf_hash_delete(&digest_hash, digest_hash_pins, a2, 212LL); return _InterlockedExchange64((volatile long long *)(digest_hash_pins + 16), 0LL); } return result; }
purge_digest: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x8] CALL 0x00155c90 MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x00155d31 JMP 0x00155d95 LAB_00155d31: MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x10] LEA RDI,[0x510708] MOV ECX,0xd4 CALL 0x0015fc80 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JZ 0x00155d79 MOV EAX,0x1 CMP qword ptr [RBP + -0x20],RAX JZ 0x00155d79 MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x10] LEA RDI,[0x510708] MOV ECX,0xd4 CALL 0x0015f260 LAB_00155d79: JMP 0x00155d7b LAB_00155d7b: JMP 0x00155d7d LAB_00155d7d: JMP 0x00155d7f LAB_00155d7f: MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x28],0x0 MOV RAX,qword ptr [RBP + -0x28] XCHG qword ptr [RCX + 0x10],RAX JMP 0x00155d95 LAB_00155d95: ADD RSP,0x30 POP RBP RET
/* purge_digest(PFS_thread*, PFS_digest_key*) */ ulong purge_digest(PFS_thread *param_1,PFS_digest_key *param_2) { long lVar1; ulong uVar2; long lVar3; lVar1 = get_digest_hash_pins(param_1); uVar2 = (ulong)(lVar1 == 0); if (lVar1 != 0) { lVar3 = lf_hash_search(digest_hash,lVar1,param_2,0xd4); if ((lVar3 != 0) && (lVar3 != 1)) { lf_hash_delete(digest_hash,lVar1,param_2,0xd4); } LOCK(); uVar2 = *(ulong *)(lVar1 + 0x10); *(ulong *)(lVar1 + 0x10) = 0; UNLOCK(); } return uVar2; }