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
45,000
minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&)
monkey531[P]llama/common/minja.hpp
CallExpr(const Location & location, std::shared_ptr<Expression> && obj, ArgumentsExpression && a) : Expression(location), object(std::move(obj)), args(std::move(a)) {}
O2
cpp
minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&): pushq %r15 pushq %r14 pushq %rbx movq %rcx, %rbx movq %rdx, %r14 movq %rdi, %r15 callq 0x6759c leaq 0x8f308(%rip), %rax # 0x1028d0 addq $0x10, %rax movq %rax, (%r15) andq $0x0, 0x28(%r15) movups (%r14), %xmm0 andq $0x0, 0x8(%r14) movups %xmm0, 0x20(%r15) andq $0x0, (%r14) addq $0x30, %r15 movq %r15, %rdi movq %rbx, %rsi popq %rbx popq %r14 popq %r15 jmp 0x70472
_ZN5minja8CallExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEEONS_19ArgumentsExpressionE: push r15 push r14 push rbx mov rbx, rcx mov r14, rdx mov r15, rdi call _ZN5minja10ExpressionC2ERKNS_8LocationE; minja::Expression::Expression(minja::Location const&) lea rax, _ZTVN5minja8CallExprE; `vtable for'minja::CallExpr add rax, 10h mov [r15], rax and qword ptr [r15+28h], 0 movups xmm0, xmmword ptr [r14] and qword ptr [r14+8], 0 movups xmmword ptr [r15+20h], xmm0 and qword ptr [r14], 0 add r15, 30h ; '0' mov rdi, r15 mov rsi, rbx pop rbx pop r14 pop r15 jmp _ZN5minja19ArgumentsExpressionC2EOS0_; minja::ArgumentsExpression::ArgumentsExpression(minja::ArgumentsExpression&&)
long long minja::CallExpr::CallExpr(long long a1, _QWORD *a2, __int128 *a3, long long a4) { __int128 v6; // xmm0 minja::Expression::Expression((_QWORD *)a1, a2); *(_QWORD *)a1 = &`vtable for'minja::CallExpr + 2; *(_QWORD *)(a1 + 40) = 0LL; v6 = *a3; *((_QWORD *)a3 + 1) = 0LL; *(_OWORD *)(a1 + 32) = v6; *(_QWORD *)a3 = 0LL; return minja::ArgumentsExpression::ArgumentsExpression(a1 + 48, a4); }
CallExpr: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RCX MOV R14,RDX MOV R15,RDI CALL 0x0016759c LEA RAX,[0x2028d0] ADD RAX,0x10 MOV qword ptr [R15],RAX AND qword ptr [R15 + 0x28],0x0 MOVUPS XMM0,xmmword ptr [R14] AND qword ptr [R14 + 0x8],0x0 MOVUPS xmmword ptr [R15 + 0x20],XMM0 AND qword ptr [R14],0x0 ADD R15,0x30 MOV RDI,R15 MOV RSI,RBX POP RBX POP R14 POP R15 JMP 0x00170472
/* minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&) */ void __thiscall minja::CallExpr::CallExpr (CallExpr *this,Location *param_1,shared_ptr *param_2,ArgumentsExpression *param_3) { int8 uVar1; Expression::Expression((Expression *)this,param_1); *(int ***)this = &PTR_do_evaluate_002028e0; *(int8 *)(this + 0x28) = 0; uVar1 = *(int8 *)(param_2 + 8); *(int8 *)(param_2 + 8) = 0; *(int8 *)(this + 0x20) = *(int8 *)param_2; *(int8 *)(this + 0x28) = uVar1; *(int8 *)param_2 = 0; ArgumentsExpression::ArgumentsExpression((ArgumentsExpression *)(this + 0x30),param_3); return; }
45,001
YAML::BadSubscript::BadSubscript<char [5]>(YAML::Mark const&, char const (&) [5])
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/exceptions.h
BadSubscript(const BadSubscript&) = default;
O3
c
YAML::BadSubscript::BadSubscript<char [5]>(YAML::Mark const&, char const (&) [5]): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsp, %r15 movq %r15, %rdi movq %rdx, %rsi callq 0x363c8 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx callq 0x245e0 leaq 0x4d176(%rip), %rax # 0xaf730 addq $0x10, %rax movq %rax, (%rbx) leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x625dc movq 0x10(%rsp), %rsi incq %rsi callq 0x1f250 leaq 0x4d3cd(%rip), %rax # 0xaf9b0 addq $0x10, %rax movq %rax, (%rbx) addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x62612 movq 0x10(%rsp), %rsi incq %rsi callq 0x1f250 movq %rbx, %rdi callq 0x1ffd0
_ZN4YAML12BadSubscriptC2IA17_cEERKNS_4MarkERKT_: push r15 push r14 push rbx sub rsp, 20h mov r14, rsi mov rbx, rdi mov r15, rsp mov rdi, r15 mov rsi, rdx call _ZN4YAML8ErrorMsg22BAD_SUBSCRIPT_WITH_KEYB5cxx11EPKc; YAML::ErrorMsg::BAD_SUBSCRIPT_WITH_KEY(char const*) mov rdi, rbx mov rsi, r14 mov rdx, r15 call _ZN4YAML9ExceptionC2ERKNS_4MarkERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::Exception::Exception(YAML::Mark const&,std::string const&) lea rax, _ZTVN4YAML23RepresentationExceptionE; `vtable for'YAML::RepresentationException add rax, 10h mov [rbx], rax lea rax, [rsp+38h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_625DC mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_625DC: lea rax, _ZTVN4YAML12BadSubscriptE; `vtable for'YAML::BadSubscript add rax, 10h mov [rbx], rax add rsp, 20h pop rbx pop r14 pop r15 retn mov rbx, rax lea rax, [rsp+arg_8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_62612 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_62612: mov rdi, rbx call __Unwind_Resume
long long * YAML::BadSubscript::BadSubscript<char [17]>(_QWORD *a1, int a2, long long a3) { int v3; // ecx int v4; // r8d int v5; // r9d long long *result; // rax void *v7[2]; // [rsp+0h] [rbp-38h] BYREF long long v8; // [rsp+10h] [rbp-28h] BYREF YAML::ErrorMsg::BAD_SUBSCRIPT_WITH_KEY[abi:cxx11]((long long)v7, a3); YAML::Exception::Exception((_DWORD)a1, a2, (unsigned int)v7, v3, v4, v5); *a1 = &`vtable for'YAML::RepresentationException + 2; if ( v7[0] != &v8 ) operator delete(v7[0], v8 + 1); result = &`vtable for'YAML::BadSubscript + 2; *a1 = &`vtable for'YAML::BadSubscript + 2; return result; }
BadSubscript<char[17]>: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV R14,RSI MOV RBX,RDI MOV R15,RSP MOV RDI,R15 MOV RSI,RDX CALL 0x001363c8 LAB_001625a5: MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 CALL 0x001245e0 LAB_001625b3: LEA RAX,[0x1af730] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA RAX,[RSP + 0x10] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001625dc MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011f250 LAB_001625dc: LEA RAX,[0x1af9b0] ADD RAX,0x10 MOV qword ptr [RBX],RAX ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* YAML::BadSubscript::BadSubscript<char [17]>(YAML::Mark const&, char const (&) [17]) */ void __thiscall YAML::BadSubscript::BadSubscript<char[17]>(BadSubscript *this,Mark *param_1,char *param_2) { long *local_38 [2]; long local_28 [2]; ErrorMsg::BAD_SUBSCRIPT_WITH_KEY_abi_cxx11_((ErrorMsg *)local_38,param_2); /* try { // try from 001625a5 to 001625b2 has its CatchHandler @ 001625f4 */ Exception::Exception((Exception *)this,param_1,(string *)local_38); *(int ***)this = &PTR__BadInsert_001af740; if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } *(int ***)this = &PTR__BadInsert_001af9c0; return; }
45,002
my_strerror
eloqsql/strings/my_vsnprintf.c
const char* my_strerror(char *buf, size_t len, int nr) { char *msg= NULL; buf[0]= '\0'; /* failsafe */ if (nr <= 0) { strmake(buf, (nr == 0 ? "Internal error/check (Not system error)" : "Internal error < 0 (Not system error)"), len-1); return buf; } /* These (handler-) error messages are shared by perror, as required by the principle of least surprise. */ if ((nr >= HA_ERR_FIRST) && (nr <= HA_ERR_LAST)) { msg= (char *) handler_error_messages[nr - HA_ERR_FIRST]; strmake(buf, msg, len - 1); } else { /* On Windows, do things the Windows way. On a system that supports both the GNU and the XSI variant, use whichever was configured (GNU); if this choice is not advertised, use the default (POSIX/XSI). Testing for __GNUC__ is not sufficient to determine whether this choice exists. */ #if defined(_WIN32) strerror_s(buf, len, nr); #elif ((defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE >= 200112L)) || \ (defined _XOPEN_SOURCE && (_XOPEN_SOURCE >= 600))) && \ ! defined _GNU_SOURCE strerror_r(nr, buf, len); /* I can build with or without GNU */ #elif defined(__GLIBC__) && defined (_GNU_SOURCE) char *r= strerror_r(nr, buf, len); if (r != buf) /* Want to help, GNU? */ strmake(buf, r, len - 1); /* Then don't. */ #else strerror_r(nr, buf, len); #endif } /* strerror() return values are implementation-dependent, so let's be pragmatic. */ if (!buf[0]) strmake(buf, "unknown error", len - 1); return buf; }
O3
c
my_strerror: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movb $0x0, (%rdi) testl %edx, %edx jle 0xd6d92 leal -0x78(%rdx), %eax cmpl $0x4e, %eax ja 0xd6da6 movl %eax, %eax leaq 0x285133(%rip), %rcx # 0x35bebc movslq (%rcx,%rax,4), %rsi addq %rcx, %rsi jmp 0xd6dbb leaq 0x90a9(%rip), %rax # 0xdfe42 leaq 0x90ca(%rip), %rsi # 0xdfe6a cmoveq %rax, %rsi jmp 0xd6dd3 movl %edx, %edi movq %rbx, %rsi movq %r14, %rdx callq 0x29940 movq %rax, %rsi cmpq %rbx, %rax je 0xd6dc7 leaq -0x1(%r14), %rdx movq %rbx, %rdi callq 0xd71d8 cmpb $0x0, (%rbx) jne 0xd6de1 leaq 0x90bd(%rip), %rsi # 0xdfe90 decq %r14 movq %rbx, %rdi movq %r14, %rdx callq 0xd71d8 movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq
my_strerror: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi mov rbx, rdi mov byte ptr [rdi], 0 test edx, edx jle short loc_D6D92 lea eax, [rdx-78h] cmp eax, 4Eh ; 'N' ja short loc_D6DA6 mov eax, eax lea rcx, handler_error_messages_rel movsxd rsi, dword ptr [rcx+rax*4] add rsi, rcx jmp short loc_D6DBB loc_D6D92: lea rax, aInternalErrorC; "Internal error/check (Not system error)" lea rsi, aInternalError0; "Internal error < 0 (Not system error)" cmovz rsi, rax jmp short loc_D6DD3 loc_D6DA6: mov edi, edx mov rsi, rbx mov rdx, r14 call _strerror_r mov rsi, rax cmp rax, rbx jz short loc_D6DC7 loc_D6DBB: lea rdx, [r14-1] mov rdi, rbx call strmake loc_D6DC7: cmp byte ptr [rbx], 0 jnz short loc_D6DE1 lea rsi, aUnknownError; "unknown error" loc_D6DD3: dec r14 mov rdi, rbx mov rdx, r14 call strmake loc_D6DE1: mov rax, rbx pop rbx pop r14 pop rbp retn
char * my_strerror(char *a1, long long a2, int a3) { char *v4; // rsi const char *v5; // rsi *a1 = 0; if ( a3 <= 0 ) { v5 = "Internal error < 0 (Not system error)"; if ( !a3 ) v5 = "Internal error/check (Not system error)"; goto LABEL_11; } if ( (unsigned int)(a3 - 120) > 0x4E ) { v4 = (char *)strerror_r((unsigned int)a3, a1, a2); if ( v4 == a1 ) goto LABEL_9; } else { v4 = (char *)handler_error_messages_rel + handler_error_messages_rel[a3 - 120]; } strmake(a1, v4, a2 - 1); LABEL_9: if ( !*a1 ) { v5 = "unknown error"; LABEL_11: strmake(a1, v5, a2 - 1); } return a1; }
my_strerror: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI MOV RBX,RDI MOV byte ptr [RDI],0x0 TEST EDX,EDX JLE 0x001d6d92 LEA EAX,[RDX + -0x78] CMP EAX,0x4e JA 0x001d6da6 MOV EAX,EAX LEA RCX,[0x45bebc] MOVSXD RSI,dword ptr [RCX + RAX*0x4] ADD RSI,RCX JMP 0x001d6dbb LAB_001d6d92: LEA RAX,[0x1dfe42] LEA RSI,[0x1dfe6a] CMOVZ RSI,RAX JMP 0x001d6dd3 LAB_001d6da6: MOV EDI,EDX MOV RSI,RBX MOV RDX,R14 CALL 0x00129940 MOV RSI,RAX CMP RAX,RBX JZ 0x001d6dc7 LAB_001d6dbb: LEA RDX,[R14 + -0x1] MOV RDI,RBX CALL 0x001d71d8 LAB_001d6dc7: CMP byte ptr [RBX],0x0 JNZ 0x001d6de1 LEA RSI,[0x1dfe90] LAB_001d6dd3: DEC R14 MOV RDI,RBX MOV RDX,R14 CALL 0x001d71d8 LAB_001d6de1: MOV RAX,RBX POP RBX POP R14 POP RBP RET
char * my_strerror(char *param_1,size_t param_2,int param_3) { char *pcVar1; *param_1 = '\0'; if (param_3 < 1) { pcVar1 = "Internal error < 0 (Not system error)"; if (param_3 == 0) { pcVar1 = "Internal error/check (Not system error)"; } goto LAB_001d6dd3; } if (param_3 - 0x78U < 0x4f) { pcVar1 = handler_error_messages_rel + *(int *)(handler_error_messages_rel + (ulong)(param_3 - 0x78U) * 4); LAB_001d6dbb: strmake(param_1,pcVar1,param_2 - 1); } else { pcVar1 = strerror_r(param_3,param_1,param_2); if (pcVar1 != param_1) goto LAB_001d6dbb; } if (*param_1 != '\0') { return param_1; } pcVar1 = "unknown error"; LAB_001d6dd3: strmake(param_1,pcVar1,param_2 - 1); return param_1; }
45,003
ast_create_cond_clause
eshkol/src/frontend/ast/create/ast_create.c
AstNode* ast_create_cond_clause(Arena* arena, AstNode* test, AstNode* result, size_t line, size_t column) { AstNode* node = ast_create_node(arena, AST_COND_CLAUSE, line, column); if (!node) { return NULL; } node->as.cond_clause.test = test; node->as.cond_clause.result = result; return node; }
O3
c
ast_create_cond_clause: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdx, %rbx movq %rsi, %r14 movl $0x21, %esi movq %rcx, %rdx movq %r8, %rcx callq 0x3978 testq %rax, %rax je 0x326e movq %r14, 0x48(%rax) movq %rbx, 0x50(%rax) popq %rbx popq %r14 popq %rbp retq
ast_create_cond_clause: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdx mov r14, rsi mov esi, 21h ; '!' mov rdx, rcx mov rcx, r8 call ast_create_node test rax, rax jz short loc_326E mov [rax+48h], r14 mov [rax+50h], rbx loc_326E: pop rbx pop r14 pop rbp retn
long long ast_create_cond_clause(long long a1, long long a2, long long a3, long long a4, long long a5) { long long result; // rax result = ast_create_node(a1, 33LL, a4, a5); if ( result ) { *(_QWORD *)(result + 72) = a2; *(_QWORD *)(result + 80) = a3; } return result; }
ast_create_cond_clause: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDX MOV R14,RSI MOV ESI,0x21 MOV RDX,RCX MOV RCX,R8 CALL 0x00103978 TEST RAX,RAX JZ 0x0010326e MOV qword ptr [RAX + 0x48],R14 MOV qword ptr [RAX + 0x50],RBX LAB_0010326e: POP RBX POP R14 POP RBP RET
void ast_create_cond_clause (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5) { long lVar1; lVar1 = ast_create_node(param_1,0x21,param_4,param_5); if (lVar1 != 0) { *(int8 *)(lVar1 + 0x48) = param_2; *(int8 *)(lVar1 + 0x50) = param_3; } return; }
45,004
test_if_hard_path
eloqsql/mysys/my_getwd.c
int test_if_hard_path(register const char *dir_name) { if (dir_name[0] == FN_HOMELIB && dir_name[1] == FN_LIBCHAR) return (home_dir != NullS && test_if_hard_path(home_dir)); if (dir_name[0] == FN_LIBCHAR) return (TRUE); #ifdef FN_DEVCHAR return (strchr(dir_name,FN_DEVCHAR) != 0); #else return FALSE; #endif }
O0
c
test_if_hard_path: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x7e, %eax jne 0xf65cc movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax cmpl $0x2f, %eax jne 0xf65cc xorl %eax, %eax leaq 0xb9359a(%rip), %rcx # 0xc89b38 cmpq $0x0, (%rcx) movb %al, -0x11(%rbp) je 0xf65bf leaq 0xb9358a(%rip), %rax # 0xc89b38 movq (%rax), %rdi callq 0xf6570 cmpl $0x0, %eax setne %al movb %al, -0x11(%rbp) movb -0x11(%rbp), %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x4(%rbp) jmp 0xf65e8 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x2f, %eax jne 0xf65e1 movl $0x1, -0x4(%rbp) jmp 0xf65e8 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
test_if_hard_path: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 7Eh ; '~' jnz short loc_F65CC mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] cmp eax, 2Fh ; '/' jnz short loc_F65CC xor eax, eax lea rcx, home_dir cmp qword ptr [rcx], 0 mov [rbp+var_11], al jz short loc_F65BF lea rax, home_dir mov rdi, [rax] call test_if_hard_path cmp eax, 0 setnz al mov [rbp+var_11], al loc_F65BF: mov al, [rbp+var_11] and al, 1 movzx eax, al mov [rbp+var_4], eax jmp short loc_F65E8 loc_F65CC: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 2Fh ; '/' jnz short loc_F65E1 mov [rbp+var_4], 1 jmp short loc_F65E8 loc_F65E1: mov [rbp+var_4], 0 loc_F65E8: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
_BOOL8 test_if_hard_path(char *a1) { bool v2; // [rsp+Fh] [rbp-11h] if ( *a1 == 126 && a1[1] == 47 ) { v2 = 0; if ( home_dir ) return (unsigned int)test_if_hard_path(home_dir) != 0; return v2; } else { return *a1 == 47; } }
test_if_hard_path: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x7e JNZ 0x001f65cc MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] CMP EAX,0x2f JNZ 0x001f65cc XOR EAX,EAX LEA RCX,[0xd89b38] CMP qword ptr [RCX],0x0 MOV byte ptr [RBP + -0x11],AL JZ 0x001f65bf LEA RAX,[0xd89b38] MOV RDI,qword ptr [RAX] CALL 0x001f6570 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x11],AL LAB_001f65bf: MOV AL,byte ptr [RBP + -0x11] AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x4],EAX JMP 0x001f65e8 LAB_001f65cc: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2f JNZ 0x001f65e1 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001f65e8 LAB_001f65e1: MOV dword ptr [RBP + -0x4],0x0 LAB_001f65e8: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
bool test_if_hard_path(char *param_1) { int iVar1; bool local_19; if ((*param_1 == '~') && (param_1[1] == '/')) { local_19 = false; if (home_dir != 0) { iVar1 = test_if_hard_path(home_dir); local_19 = iVar1 != 0; } } else if (*param_1 == '/') { local_19 = true; } else { local_19 = false; } return local_19; }
45,005
test_if_hard_path
eloqsql/mysys/my_getwd.c
int test_if_hard_path(register const char *dir_name) { if (dir_name[0] == FN_HOMELIB && dir_name[1] == FN_LIBCHAR) return (home_dir != NullS && test_if_hard_path(home_dir)); if (dir_name[0] == FN_LIBCHAR) return (TRUE); #ifdef FN_DEVCHAR return (strchr(dir_name,FN_DEVCHAR) != 0); #else return FALSE; #endif }
O3
c
test_if_hard_path: pushq %rbp movq %rsp, %rbp leaq 0xb6ad0f(%rip), %rax # 0xc0de18 movq (%rax), %rax movb (%rdi), %cl cmpb $0x7e, %cl jne 0xa3125 cmpb $0x2f, 0x1(%rdi) jne 0xa3125 movq %rax, %rdi testq %rax, %rax jne 0xa310c xorl %eax, %eax jmp 0xa312d xorl %eax, %eax cmpb $0x2f, %cl sete %al popq %rbp retq
test_if_hard_path: push rbp mov rbp, rsp lea rax, home_dir mov rax, [rax] loc_A310C: mov cl, [rdi] cmp cl, 7Eh ; '~' jnz short loc_A3125 cmp byte ptr [rdi+1], 2Fh ; '/' jnz short loc_A3125 mov rdi, rax test rax, rax jnz short loc_A310C xor eax, eax jmp short loc_A312D loc_A3125: xor eax, eax cmp cl, 2Fh ; '/' setz al loc_A312D: pop rbp retn
_BOOL8 test_if_hard_path(_BYTE *a1) { while ( *a1 == 126 && a1[1] == 47 ) { a1 = (_BYTE *)home_dir; if ( !home_dir ) return 0LL; } return *a1 == 47; }
test_if_hard_path: PUSH RBP MOV RBP,RSP LEA RAX,[0xd0de18] MOV RAX,qword ptr [RAX] LAB_001a310c: MOV CL,byte ptr [RDI] CMP CL,0x7e JNZ 0x001a3125 CMP byte ptr [RDI + 0x1],0x2f JNZ 0x001a3125 MOV RDI,RAX TEST RAX,RAX JNZ 0x001a310c XOR EAX,EAX JMP 0x001a312d LAB_001a3125: XOR EAX,EAX CMP CL,0x2f SETZ AL LAB_001a312d: POP RBP RET
bool test_if_hard_path(char *param_1) { while ((*param_1 == '~' && (param_1[1] == '/'))) { param_1 = home_dir; if (home_dir == (char *)0x0) { return false; } } return *param_1 == '/'; }
45,006
ma_init
eloqsql/libmariadb/libmariadb/ma_init.c
void ma_init(void) { if (ma_init_done) return; ma_init_done=1; { #ifdef _WIN32 my_win_init(); #endif return; } }
O0
c
ma_init: pushq %rbp movq %rsp, %rbp leaq 0x3a251e(%rip), %rax # 0x3eb7b9 cmpb $0x0, (%rax) je 0x492a2 jmp 0x492ac leaq 0x3a2510(%rip), %rax # 0x3eb7b9 movb $0x1, (%rax) popq %rbp retq nop
ma_init: push rbp mov rbp, rsp lea rax, ma_init_done cmp byte ptr [rax], 0 jz short loc_492A2 jmp short loc_492AC loc_492A2: lea rax, ma_init_done mov byte ptr [rax], 1 loc_492AC: pop rbp retn
void *ma_init() { void *result; // rax result = &ma_init_done; if ( !ma_init_done ) { result = &ma_init_done; ma_init_done = 1; } return result; }
ma_init: PUSH RBP MOV RBP,RSP LEA RAX,[0x4eb7b9] CMP byte ptr [RAX],0x0 JZ 0x001492a2 JMP 0x001492ac LAB_001492a2: LEA RAX,[0x4eb7b9] MOV byte ptr [RAX],0x1 LAB_001492ac: POP RBP RET
void ma_init(void) { if (ma_init_done == '\0') { ma_init_done = '\x01'; } return; }
45,007
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>::operator[](unsigned long)
monkey531[P]llama/common/json.hpp
reference operator[](size_type idx) { // implicitly convert null value to an empty array if (is_null()) { m_data.m_type = value_t::array; m_data.m_value.array = create<array_t>(); assert_invariant(); } // operator[] only works for arrays if (JSON_HEDLEY_LIKELY(is_array())) { // fill up array with null values if given idx is outside range if (idx >= m_data.m_value.array->size()) { #if JSON_DIAGNOSTICS // remember array size & capacity before resizing const auto old_size = m_data.m_value.array->size(); const auto old_capacity = m_data.m_value.array->capacity(); #endif m_data.m_value.array->resize(idx + 1); #if JSON_DIAGNOSTICS if (JSON_HEDLEY_UNLIKELY(m_data.m_value.array->capacity() != old_capacity)) { // capacity has changed: update all parents set_parents(); } else { // set parent for values added above set_parents(begin() + static_cast<typename iterator::difference_type>(old_size), static_cast<typename iterator::difference_type>(idx + 1 - old_size)); } #endif assert_invariant(); } return m_data.m_value.array->operator[](idx); } JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a numeric argument with ", type_name()), this)); }
O1
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>::operator[](unsigned long): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %rbx movq %rdi, %r14 cmpb $0x0, (%rdi) jne 0x4b792 movb $0x2, (%r14) movl $0x18, %edi callq 0x196a0 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x28fd0 cmpb $0x2, (%r14) jne 0x4b7d9 movq 0x8(%r14), %rdi movq 0x8(%rdi), %rax subq (%rdi), %rax sarq $0x4, %rax cmpq %rbx, %rax ja 0x4b7c2 leaq 0x1(%rbx), %rsi callq 0x50cde movq %r14, %rdi movl $0x1, %esi callq 0x28fd0 movq 0x8(%r14), %rax shlq $0x4, %rbx addq (%rax), %rbx movq %rbx, %rax addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x20, %edi callq 0x19370 movq %rax, %rbx movq %r14, %rdi callq 0x2f7ce leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x6f77f(%rip), %rsi # 0xbaf7c leaq 0x10(%rsp), %rdi callq 0x50d0e movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x131, %esi # imm = 0x131 movq %r14, %rcx callq 0x2f57a xorl %ebp, %ebp leaq 0xa16f8(%rip), %rsi # 0xecf20 leaq -0x1fee1(%rip), %rdx # 0x2b94e movq %rbx, %rdi callq 0x19b70 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x4b85d movq 0x20(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x4b85d movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x4b86a movq %rbx, %rdi callq 0x19510 movq %r14, %rdi callq 0x19be0
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixEm: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov rbx, rsi mov r14, rdi cmp byte ptr [rdi], 0 jnz short loc_4B792 mov byte ptr [r14], 2 mov edi, 18h; unsigned __int64 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 mov [r14+8], rax mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_4B792: cmp byte ptr [r14], 2 jnz short loc_4B7D9 mov rdi, [r14+8] mov rax, [rdi+8] sub rax, [rdi] sar rax, 4 cmp rax, rbx ja short loc_4B7C2 lea rsi, [rbx+1] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6resizeEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::resize(ulong) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_4B7C2: mov rax, [r14+8] shl rbx, 4 add rbx, [rax] mov rax, rbx add rsp, 30h pop rbx pop r14 pop rbp retn loc_4B7D9: 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) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aCannotUseOpera; "cannot use operator[] with a numeric ar"... lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA52_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>(char const(&)[52],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 131h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ 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 mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_4B85D mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_4B85D mov r14, rax mov bpl, 1 loc_4B85D: test bpl, bpl jz short loc_4B86A mov rdi, rbx; void * call ___cxa_free_exception loc_4B86A: mov rdi, r14 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>::operator[]( long long a1, unsigned long long a2) { long long v3; // rax _QWORD *v4; // rdi nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx _QWORD v7[2]; // [rsp+10h] [rbp-38h] BYREF if ( !*(_BYTE *)a1 ) { *(_BYTE *)a1 = 2; v3 = operator new(0x18uLL); *(_OWORD *)v3 = 0LL; *(_QWORD *)(v3 + 16) = 0LL; *(_QWORD *)(a1 + 8) = v3; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } if ( *(_BYTE *)a1 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>( v7, "cannot use operator[] with a numeric argument with "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 305, v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v4 = *(_QWORD **)(a1 + 8); if ( (long long)(v4[1] - *v4) >> 4 <= a2 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::resize( v4, a2 + 1); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } return **(_QWORD **)(a1 + 8) + 16 * a2; }
operator[]: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV RBX,RSI MOV R14,RDI CMP byte ptr [RDI],0x0 JNZ 0x0014b792 MOV byte ptr [R14],0x2 MOV EDI,0x18 CALL 0x001196a0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 MOV qword ptr [R14 + 0x8],RAX MOV RDI,R14 MOV ESI,0x1 CALL 0x00128fd0 LAB_0014b792: CMP byte ptr [R14],0x2 JNZ 0x0014b7d9 MOV RDI,qword ptr [R14 + 0x8] MOV RAX,qword ptr [RDI + 0x8] SUB RAX,qword ptr [RDI] SAR RAX,0x4 CMP RAX,RBX JA 0x0014b7c2 LEA RSI,[RBX + 0x1] CALL 0x00150cde MOV RDI,R14 MOV ESI,0x1 CALL 0x00128fd0 LAB_0014b7c2: MOV RAX,qword ptr [R14 + 0x8] SHL RBX,0x4 ADD RBX,qword ptr [RAX] MOV RAX,RBX ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0014b7d9: MOV EDI,0x20 CALL 0x00119370 MOV RBX,RAX MOV RDI,R14 CALL 0x0012f7ce LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0014b7f6: LEA RSI,[0x1baf7c] LEA RDI,[RSP + 0x10] CALL 0x00150d0e MOV BPL,0x1 LAB_0014b80a: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x131 MOV RCX,R14 CALL 0x0012f57a XOR EBP,EBP LEA RSI,[0x1ecf20] LEA RDX,[0x12b94e] MOV RDI,RBX CALL 0x00119b70
/* 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>::operator[](unsigned long) */ long __thiscall 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> ::operator[](basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,ulong param_1) { vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *this_00; int8 *puVar1; int8 uVar2; char *local_40; detail local_38 [32]; if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0) { *this = (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> )0x2; puVar1 = (int8 *)operator_new(0x18); *puVar1 = 0; puVar1[1] = 0; puVar1[2] = 0; *(int8 **)(this + 8) = puVar1; assert_invariant(SUB81(this,0)); } if (*this == (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> )0x2) { this_00 = *(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 8); if ((ulong)(*(long *)(this_00 + 8) - *(long *)this_00 >> 4) <= param_1) { std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::resize(this_00,param_1 + 1); assert_invariant(SUB81(this,0)); } return param_1 * 0x10 + **(long **)(this + 8); } uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 0014b7f6 to 0014b806 has its CatchHandler @ 0014b857 */ detail::concat<std::__cxx11::string,char_const(&)[52],char_const*> (local_38,"cannot use operator[] with a numeric argument with ",&local_40); /* try { // try from 0014b80a to 0014b836 has its CatchHandler @ 0014b837 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x131,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception); }
45,008
rak_array_init_copy
fabiosvm[P]rak/src/array.c
void rak_array_init_copy(RakArray *arr1, RakArray *arr2, RakError *err) { int len = rak_array_len(arr2); rak_array_init_with_capacity(arr1, len, err); if (!rak_is_ok(err)) return; for (int i = 0; i < len; ++i) { RakValue val = rak_array_get(arr2, i); rak_slice_set(&arr1->slice, i, val); rak_value_retain(val); } arr1->slice.len = len; }
O2
c
rak_array_init_copy: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx movl 0xc(%rsi), %ebp movl %ebp, %esi callq 0x228d cmpb $0x1, (%r15) jne 0x233b xorl %eax, %eax testl %ebp, %ebp movl $0x0, %ecx cmovgl %ebp, %ecx shlq $0x4, %rcx cmpq %rax, %rcx je 0x2338 movq 0x10(%r14), %rdx movl (%rdx,%rax), %esi movl 0x4(%rdx,%rax), %edi movq 0x8(%rdx,%rax), %rdx movq 0x10(%rbx), %r8 movl %esi, (%r8,%rax) movl %edi, 0x4(%r8,%rax) movq %rdx, 0x8(%r8,%rax) testb $0x2, %dil je 0x2332 incl (%rdx) addq $0x10, %rax jmp 0x2303 movl %ebp, 0xc(%rbx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
rak_array_init_copy: push rbp push r15 push r14 push rbx push rax mov r15, rdx mov r14, rsi mov rbx, rdi mov ebp, [rsi+0Ch] mov esi, ebp call rak_array_init_with_capacity cmp byte ptr [r15], 1 jnz short loc_233B xor eax, eax test ebp, ebp mov ecx, 0 cmovg ecx, ebp shl rcx, 4 loc_2303: cmp rcx, rax jz short loc_2338 mov rdx, [r14+10h] mov esi, [rdx+rax] mov edi, [rdx+rax+4] mov rdx, [rdx+rax+8] mov r8, [rbx+10h] mov [r8+rax], esi mov [r8+rax+4], edi mov [r8+rax+8], rdx test dil, 2 jz short loc_2332 inc dword ptr [rdx] loc_2332: add rax, 10h jmp short loc_2303 loc_2338: mov [rbx+0Ch], ebp loc_233B: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long rak_array_init_copy(long long a1, long long a2, _BYTE *a3) { int v6; // ebp long long result; // rax long long v8; // rcx long long v9; // rcx long long v10; // rdx int v11; // esi int v12; // edi _DWORD *v13; // rdx long long v14; // r8 v6 = *(_DWORD *)(a2 + 12); result = rak_array_init_with_capacity(a1, v6, a3); if ( *a3 == 1 ) { result = 0LL; v8 = 0LL; if ( v6 > 0 ) v8 = (unsigned int)v6; v9 = 16 * v8; while ( v9 != result ) { v10 = *(_QWORD *)(a2 + 16); v11 = *(_DWORD *)(v10 + result); v12 = *(_DWORD *)(v10 + result + 4); v13 = *(_DWORD **)(v10 + result + 8); v14 = *(_QWORD *)(a1 + 16); *(_DWORD *)(v14 + result) = v11; *(_DWORD *)(v14 + result + 4) = v12; *(_QWORD *)(v14 + result + 8) = v13; if ( (v12 & 2) != 0 ) ++*v13; result += 16LL; } *(_DWORD *)(a1 + 12) = v6; } return result; }
rak_array_init_copy: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R15,RDX MOV R14,RSI MOV RBX,RDI MOV EBP,dword ptr [RSI + 0xc] MOV ESI,EBP CALL 0x0010228d CMP byte ptr [R15],0x1 JNZ 0x0010233b XOR EAX,EAX TEST EBP,EBP MOV ECX,0x0 CMOVG ECX,EBP SHL RCX,0x4 LAB_00102303: CMP RCX,RAX JZ 0x00102338 MOV RDX,qword ptr [R14 + 0x10] MOV ESI,dword ptr [RDX + RAX*0x1] MOV EDI,dword ptr [RDX + RAX*0x1 + 0x4] MOV RDX,qword ptr [RDX + RAX*0x1 + 0x8] MOV R8,qword ptr [RBX + 0x10] MOV dword ptr [R8 + RAX*0x1],ESI MOV dword ptr [R8 + RAX*0x1 + 0x4],EDI MOV qword ptr [R8 + RAX*0x1 + 0x8],RDX TEST DIL,0x2 JZ 0x00102332 INC dword ptr [RDX] LAB_00102332: ADD RAX,0x10 JMP 0x00102303 LAB_00102338: MOV dword ptr [RBX + 0xc],EBP LAB_0010233b: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void rak_array_init_copy(long param_1,long param_2,char *param_3) { uint uVar1; uint uVar2; long lVar3; int *piVar4; long lVar5; long lVar6; ulong uVar7; uVar1 = *(uint *)(param_2 + 0xc); rak_array_init_with_capacity(param_1,uVar1); if (*param_3 == '\x01') { lVar6 = 0; uVar7 = 0; if (0 < (int)uVar1) { uVar7 = (ulong)uVar1; } for (; uVar7 * 0x10 != lVar6; lVar6 = lVar6 + 0x10) { lVar3 = *(long *)(param_2 + 0x10); uVar2 = *(uint *)(lVar3 + 4 + lVar6); piVar4 = *(int **)(lVar3 + 8 + lVar6); lVar5 = *(long *)(param_1 + 0x10); *(int4 *)(lVar5 + lVar6) = *(int4 *)(lVar3 + lVar6); *(uint *)(lVar5 + 4 + lVar6) = uVar2; *(int **)(lVar5 + 8 + lVar6) = piVar4; if ((uVar2 & 2) != 0) { *piVar4 = *piVar4 + 1; } } *(uint *)(param_1 + 0xc) = uVar1; } return; }
45,009
translog_mark_file_finished
eloqsql/storage/maria/ma_loghandler.c
static void translog_mark_file_finished(uint32 file) { int i; struct st_file_counter *UNINIT_VAR(fc_ptr); DBUG_ENTER("translog_mark_file_finished"); DBUG_PRINT("enter", ("file: %lu", (ulong) file)); mysql_mutex_lock(&log_descriptor.unfinished_files_lock); DBUG_ASSERT(log_descriptor.unfinished_files.elements > 0); for (i= 0; i < (int) log_descriptor.unfinished_files.elements; i++) { fc_ptr= dynamic_element(&log_descriptor.unfinished_files, i, struct st_file_counter *); if (fc_ptr->file == file) { break; } } DBUG_ASSERT(i < (int) log_descriptor.unfinished_files.elements); if (! --fc_ptr->counter) delete_dynamic_element(&log_descriptor.unfinished_files, i); mysql_mutex_unlock(&log_descriptor.unfinished_files_lock); DBUG_VOID_RETURN; }
O0
c
translog_mark_file_finished: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x4(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x10(%rbp) jmp 0x5d665 leaq 0x41cff4(%rip), %rdi # 0x47a660 addq $0x800e08, %rdi # imm = 0x800E08 leaq 0xf593f(%rip), %rsi # 0x152fb9 movl $0x58d, %edx # imm = 0x58D callq 0x510a0 jmp 0x5d686 movl $0x0, -0x8(%rbp) movl -0x8(%rbp), %eax cmpl 0xc1de22(%rip), %eax # 0xc7b4b8 jge 0x5d6c8 movq 0xc1de11(%rip), %rax # 0xc7b4b0 movslq -0x8(%rbp), %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movl (%rax), %eax cmpl -0x4(%rbp), %eax jne 0x5d6bb jmp 0x5d6c8 jmp 0x5d6bd movl -0x8(%rbp), %eax addl $0x1, %eax movl %eax, -0x8(%rbp) jmp 0x5d68d jmp 0x5d6ca jmp 0x5d6cc movq -0x10(%rbp), %rcx movl 0x4(%rcx), %eax addl $-0x1, %eax movl %eax, 0x4(%rcx) cmpl $0x0, %eax jne 0x5d6f4 movl -0x8(%rbp), %esi leaq 0x41cf78(%rip), %rdi # 0x47a660 addq $0x800e50, %rdi # imm = 0x800E50 callq 0xdc1e0 leaq 0x41cf65(%rip), %rdi # 0x47a660 addq $0x800e08, %rdi # imm = 0x800E08 callq 0x51110 jmp 0x5d709 addq $0x10, %rsp popq %rbp retq nop
translog_mark_file_finished: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_4], edi mov rax, [rbp+var_10] mov [rbp+var_10], rax jmp short $+2 loc_5D665: lea rdi, log_descriptor add rdi, 800E08h lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 58Dh call inline_mysql_mutex_lock_8 jmp short $+2 loc_5D686: mov [rbp+var_8], 0 loc_5D68D: mov eax, [rbp+var_8] cmp eax, cs:dword_C7B4B8 jge short loc_5D6C8 mov rax, cs:qword_C7B4B0 movsxd rcx, [rbp+var_8] shl rcx, 3 add rax, rcx mov [rbp+var_10], rax mov rax, [rbp+var_10] mov eax, [rax] cmp eax, [rbp+var_4] jnz short loc_5D6BB jmp short loc_5D6C8 loc_5D6BB: jmp short $+2 loc_5D6BD: mov eax, [rbp+var_8] add eax, 1 mov [rbp+var_8], eax jmp short loc_5D68D loc_5D6C8: jmp short $+2 loc_5D6CA: jmp short $+2 loc_5D6CC: mov rcx, [rbp+var_10] mov eax, [rcx+4] add eax, 0FFFFFFFFh mov [rcx+4], eax cmp eax, 0 jnz short loc_5D6F4 mov esi, [rbp+var_8] lea rdi, log_descriptor add rdi, 800E50h call delete_dynamic_element loc_5D6F4: lea rdi, log_descriptor add rdi, 800E08h call inline_mysql_mutex_unlock_8 jmp short $+2 loc_5D709: add rsp, 10h pop rbp retn
long long translog_mark_file_finished(int a1) { int v1; // eax _DWORD *v3; // [rsp+0h] [rbp-10h] int i; // [rsp+8h] [rbp-8h] inline_mysql_mutex_lock_8( (long long)&log_descriptor[1049025], (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x58Du); for ( i = 0; i < dword_C7B4B8; ++i ) { v3 = (_DWORD *)(8LL * i + qword_C7B4B0); if ( *v3 == a1 ) break; } v1 = v3[1] - 1; v3[1] = v1; if ( !v1 ) delete_dynamic_element(&log_descriptor[1049034], (unsigned int)i); return inline_mysql_mutex_unlock_8((long long)&log_descriptor[1049025]); }
translog_mark_file_finished: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV dword ptr [RBP + -0x4],EDI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x10],RAX JMP 0x0015d665 LAB_0015d665: LEA RDI,[0x57a660] ADD RDI,0x800e08 LEA RSI,[0x252fb9] MOV EDX,0x58d CALL 0x001510a0 JMP 0x0015d686 LAB_0015d686: MOV dword ptr [RBP + -0x8],0x0 LAB_0015d68d: MOV EAX,dword ptr [RBP + -0x8] CMP EAX,dword ptr [0x00d7b4b8] JGE 0x0015d6c8 MOV RAX,qword ptr [0x00d7b4b0] MOVSXD RCX,dword ptr [RBP + -0x8] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] CMP EAX,dword ptr [RBP + -0x4] JNZ 0x0015d6bb JMP 0x0015d6c8 LAB_0015d6bb: JMP 0x0015d6bd LAB_0015d6bd: MOV EAX,dword ptr [RBP + -0x8] ADD EAX,0x1 MOV dword ptr [RBP + -0x8],EAX JMP 0x0015d68d LAB_0015d6c8: JMP 0x0015d6ca LAB_0015d6ca: JMP 0x0015d6cc LAB_0015d6cc: MOV RCX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RCX + 0x4] ADD EAX,-0x1 MOV dword ptr [RCX + 0x4],EAX CMP EAX,0x0 JNZ 0x0015d6f4 MOV ESI,dword ptr [RBP + -0x8] LEA RDI,[0x57a660] ADD RDI,0x800e50 CALL 0x001dc1e0 LAB_0015d6f4: LEA RDI,[0x57a660] ADD RDI,0x800e08 CALL 0x00151110 JMP 0x0015d709 LAB_0015d709: ADD RSP,0x10 POP RBP RET
void translog_mark_file_finished(int param_1) { int iVar1; int *local_18; int local_10; inline_mysql_mutex_lock (&DAT_00d7b468,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x58d); local_10 = 0; while ((local_10 < DAT_00d7b4b8 && (local_18 = (int *)(DAT_00d7b4b0 + (long)local_10 * 8), *local_18 != param_1))) { local_10 = local_10 + 1; } iVar1 = local_18[1]; local_18[1] = iVar1 + -1; if (iVar1 + -1 == 0) { delete_dynamic_element(&DAT_00d7b4b0,local_10); } inline_mysql_mutex_unlock(&DAT_00d7b468); return; }
45,010
minja::Value::operator*(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
Value operator*(const Value& rhs) const { if (is_string() && rhs.is_number_integer()) { std::ostringstream out; for (int64_t i = 0, n = rhs.get<int64_t>(); i < n; ++i) { out << to_str(); } return out.str(); } else if (is_number_integer() && rhs.is_number_integer()) return get<int64_t>() * rhs.get<int64_t>(); else return get<double>() * rhs.get<double>(); }
O2
cpp
minja::Value::operator*(minja::Value const&) const: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1a0, %rsp # imm = 0x1A0 movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx movb 0x40(%rsi), %al cmpb $0x3, %al jne 0x6c752 movb 0x40(%r15), %al addb $-0x5, %al cmpb $0x1, %al ja 0x6c78b leaq 0x28(%rsp), %rdi callq 0x21900 movq %r15, %rdi callq 0x5fd0e xorl %r13d, %r13d testq %rax, %rax cmovgq %rax, %r13 leaq 0x8(%rsp), %r15 leaq 0x28(%rsp), %r12 subq $0x1, %r13 jb 0x6c7b8 movq %r15, %rdi movq %r14, %rsi callq 0x6c3d0 movq %r12, %rdi movq %r15, %rsi callq 0x21610 movq %r15, %rdi callq 0x21dc8 jmp 0x6c728 addb $-0x5, %al cmpb $0x1, %al ja 0x6c78b movb 0x40(%r15), %al addb $-0x5, %al cmpb $0x1, %al ja 0x6c78b movq %r14, %rdi callq 0x5fd0e movq %rax, %r14 movq %r15, %rdi callq 0x5fd0e imulq %r14, %rax leaq 0x28(%rsp), %rsi movq %rax, (%rsi) movq %rbx, %rdi callq 0x5fdc4 jmp 0x6c7e8 movq %r14, %rdi callq 0x5fde2 movsd %xmm0, (%rsp) movq %r15, %rdi callq 0x5fde2 mulsd (%rsp), %xmm0 leaq 0x28(%rsp), %rsi movsd %xmm0, (%rsi) movq %rbx, %rdi callq 0x5fe98 jmp 0x6c7e8 leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x21a90 leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x628fc leaq 0x8(%rsp), %rdi callq 0x21dc8 leaq 0x28(%rsp), %rdi callq 0x21170 movq %rbx, %rax addq $0x1a0, %rsp # imm = 0x1A0 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq jmp 0x6c807 jmp 0x6c802 jmp 0x6c802 movq %rax, %rbx jmp 0x6c814 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x21dc8 leaq 0x28(%rsp), %rdi callq 0x21170 movq %rbx, %rdi callq 0x21be0
_ZNK5minja5ValuemlERKS0_: push r15 push r14 push r13 push r12 push rbx sub rsp, 1A0h mov r15, rdx mov r14, rsi mov rbx, rdi mov al, [rsi+40h] cmp al, 3 jnz short loc_6C752 mov al, [r15+40h] add al, 0FBh cmp al, 1 ja loc_6C78B lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rdi, r15 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) xor r13d, r13d test rax, rax cmovg r13, rax lea r15, [rsp+1C8h+var_1C0] lea r12, [rsp+1C8h+var_1A0] loc_6C728: sub r13, 1 jb loc_6C7B8 mov rdi, r15; this mov rsi, r14; minja::Value * call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void) mov rdi, r12 mov rsi, r15 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_6C728 loc_6C752: add al, 0FBh cmp al, 1 ja short loc_6C78B mov al, [r15+40h] add al, 0FBh cmp al, 1 ja short loc_6C78B mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r14, rax mov rdi, r15 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) imul rax, r14 lea rsi, [rsp+1C8h+var_1A0]; __int64 * mov [rsi], rax mov rdi, rbx; this call _ZN5minja5ValueC2ERKl; minja::Value::Value(long const&) jmp short loc_6C7E8 loc_6C78B: mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+1C8h+var_1C8], xmm0 mov rdi, r15 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) mulsd xmm0, [rsp+1C8h+var_1C8] lea rsi, [rsp+1C8h+var_1A0]; double * movsd qword ptr [rsi], xmm0 mov rdi, rbx; this call _ZN5minja5ValueC2ERKd; minja::Value::Value(double const&) jmp short loc_6C7E8 loc_6C7B8: lea rsi, [rsp+1C8h+var_198] lea rdi, [rsp+1C8h+var_1C0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) lea rsi, [rsp+1C8h+var_1C0] mov rdi, rbx call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&) lea rdi, [rsp+1C8h+var_1C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() loc_6C7E8: mov rax, rbx add rsp, 1A0h pop rbx pop r12 pop r13 pop r14 pop r15 retn jmp short loc_6C807 jmp short loc_6C802 jmp short $+2 loc_6C802: mov rbx, rax jmp short loc_6C814 loc_6C807: mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_6C814: lea rdi, [rsp+arg_20] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() mov rdi, rbx call __Unwind_Resume
minja::Value * minja::Value::operator*(minja::Value *this, minja::Value *a2, minja::Value *a3, double a4) { char v5; // al long long v6; // rax long long v7; // r13 long long v9; // r14 _BYTE v11[32]; // [rsp+8h] [rbp-1C0h] BYREF double v12; // [rsp+28h] [rbp-1A0h] BYREF _BYTE v13[408]; // [rsp+30h] [rbp-198h] BYREF v5 = *((_BYTE *)a2 + 64); if ( v5 != 3 ) { if ( (unsigned __int8)(v5 - 5) <= 1u && (unsigned __int8)(*((_BYTE *)a3 + 64) - 5) <= 1u ) { v9 = minja::Value::get<long>(a2); *(_QWORD *)&v12 = v9 * minja::Value::get<long>(a3); minja::Value::Value(this, (const long long *)&v12); return this; } LABEL_10: minja::Value::get<double>(a2); minja::Value::get<double>(a3); v12 = a4 * a4; minja::Value::Value(this, &v12); return this; } if ( (unsigned __int8)(*((_BYTE *)a3 + 64) - 5) > 1u ) goto LABEL_10; std::ostringstream::basic_ostringstream(&v12); v6 = minja::Value::get<long>(a3); v7 = 0LL; if ( v6 > 0 ) v7 = v6; while ( v7-- != 0 ) { minja::Value::to_str[abi:cxx11]((std::__cxx11 *)v11, a2, a4); std::operator<<<char>(&v12, v11); std::string::~string(v11); } std::stringbuf::str(v11, v13); minja::Value::Value((long long)this, (long long)v11); std::string::~string(v11); std::ostringstream::~ostringstream(&v12); return this; }
operator*: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1a0 MOV R15,RDX MOV R14,RSI MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] CMP AL,0x3 JNZ 0x0016c752 MOV AL,byte ptr [R15 + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0016c78b LEA RDI,[RSP + 0x28] CALL 0x00121900 LAB_0016c70c: MOV RDI,R15 CALL 0x0015fd0e XOR R13D,R13D TEST RAX,RAX CMOVG R13,RAX LEA R15,[RSP + 0x8] LEA R12,[RSP + 0x28] LAB_0016c728: SUB R13,0x1 JC 0x0016c7b8 LAB_0016c732: MOV RDI,R15 MOV RSI,R14 CALL 0x0016c3d0 LAB_0016c73d: MOV RDI,R12 MOV RSI,R15 CALL 0x00121610 LAB_0016c748: MOV RDI,R15 CALL 0x00121dc8 JMP 0x0016c728 LAB_0016c752: ADD AL,0xfb CMP AL,0x1 JA 0x0016c78b MOV AL,byte ptr [R15 + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0016c78b MOV RDI,R14 CALL 0x0015fd0e MOV R14,RAX MOV RDI,R15 CALL 0x0015fd0e IMUL RAX,R14 LEA RSI,[RSP + 0x28] MOV qword ptr [RSI],RAX MOV RDI,RBX CALL 0x0015fdc4 JMP 0x0016c7e8 LAB_0016c78b: MOV RDI,R14 CALL 0x0015fde2 MOVSD qword ptr [RSP],XMM0 MOV RDI,R15 CALL 0x0015fde2 MULSD XMM0,qword ptr [RSP] LEA RSI,[RSP + 0x28] MOVSD qword ptr [RSI],XMM0 MOV RDI,RBX CALL 0x0015fe98 JMP 0x0016c7e8 LAB_0016c7b8: LEA RSI,[RSP + 0x30] LAB_0016c7bd: LEA RDI,[RSP + 0x8] CALL 0x00121a90 LAB_0016c7c7: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x001628fc LAB_0016c7d4: LEA RDI,[RSP + 0x8] CALL 0x00121dc8 LEA RDI,[RSP + 0x28] CALL 0x00121170 LAB_0016c7e8: MOV RAX,RBX ADD RSP,0x1a0 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ Value * __thiscall minja::Value::operator*(Value *this,Value *param_1) { long lVar1; Value *in_RDX; long lVar2; bool bVar3; double dVar4; string local_1c0 [32]; double local_1a0 [47]; if (param_1[0x40] == (Value)0x3) { if ((byte)((char)in_RDX[0x40] - 5U) < 2) { std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1a0); /* try { // try from 0016c70c to 0016c713 has its CatchHandler @ 0016c800 */ lVar1 = get<long>(in_RDX); lVar2 = 0; if (0 < lVar1) { lVar2 = lVar1; } while (bVar3 = lVar2 != 0, lVar2 = lVar2 + -1, bVar3) { /* try { // try from 0016c732 to 0016c73c has its CatchHandler @ 0016c802 */ to_str_abi_cxx11_(); /* try { // try from 0016c73d to 0016c747 has its CatchHandler @ 0016c807 */ std::operator<<((ostream *)local_1a0,local_1c0); std::__cxx11::string::~string(local_1c0); } /* try { // try from 0016c7bd to 0016c7c6 has its CatchHandler @ 0016c7fe */ std::__cxx11::stringbuf::str(); /* try { // try from 0016c7c7 to 0016c7d3 has its CatchHandler @ 0016c7fc */ Value(this,local_1c0); std::__cxx11::string::~string(local_1c0); std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1a0); return this; } } else if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) { lVar2 = get<long>(param_1); lVar1 = get<long>(in_RDX); local_1a0[0] = (double)(lVar1 * lVar2); Value(this,(long *)local_1a0); return this; } dVar4 = get<double>(param_1); local_1a0[0] = get<double>(in_RDX); local_1a0[0] = local_1a0[0] * dVar4; Value(this,local_1a0); return this; }
45,011
js_os_init
bluesky950520[P]quickjs/quickjs-libc.c
static int js_os_init(JSContext *ctx, JSModuleDef *m) { JSRuntime *rt = JS_GetRuntime(ctx); JSThreadState *ts = js_get_thread_state(rt); ts->can_js_os_poll = TRUE; #ifdef USE_WORKER { JSValue proto, obj; /* Worker class */ JS_NewClassID(rt, &ts->worker_class_id); JS_NewClass(rt, ts->worker_class_id, &js_worker_class); proto = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, proto, js_worker_proto_funcs, countof(js_worker_proto_funcs)); obj = JS_NewCFunction2(ctx, js_worker_ctor, "Worker", 1, JS_CFUNC_constructor, 0); JS_SetConstructor(ctx, obj, proto); JS_SetClassProto(ctx, ts->worker_class_id, proto); /* set 'Worker.parent' if necessary */ if (ts->recv_pipe && ts->send_pipe) { JS_DefinePropertyValueStr(ctx, obj, "parent", js_worker_ctor_internal(ctx, JS_UNDEFINED, ts->recv_pipe, ts->send_pipe), JS_PROP_C_W_E); } JS_SetModuleExport(ctx, m, "Worker", obj); } #endif /* USE_WORKER */ return JS_SetModuleExportList(ctx, m, js_os_funcs, countof(js_os_funcs)); }
O2
c
js_os_init: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, 0x10(%rsp) movq %rdi, %r14 callq 0x1dd35 movq %rax, %rbx movq %rax, %rdi callq 0x13e3a movq %rax, %r15 movl $0x1, 0x60(%rax) leaq 0x7c(%rax), %rsi movq %rbx, %rdi callq 0x1e5cd movl 0x7c(%r15), %esi leaq 0xabc60(%rip), %rdx # 0xbf588 movq %rbx, %rdi callq 0x1e60a movq %r14, %rdi callq 0x1ee79 movq %rax, %rbp movq %rdx, %rbx leaq 0xa52bb(%rip), %rcx # 0xb8c00 pushq $0x2 popq %r12 movq %r14, %rdi movq %rax, %rsi movl %r12d, %r8d callq 0x2ffaf leaq 0x2d87(%rip), %rsi # 0x166e5 leaq 0x72274(%rip), %rdx # 0x85bd9 pushq $0x1 popq %rcx movq %r14, %rdi movl %r12d, %r8d xorl %r9d, %r9d callq 0x1ee8d movq %rax, %r12 movq %rdx, %r13 movq %r14, %rdi movq %rax, %rsi movq %rbp, %rcx movq %rbx, %r8 callq 0x30497 movl 0x7c(%r15), %esi movq %r14, %rdi movq %rbp, %rdx movq %rbx, %rcx callq 0x1da90 movq 0x68(%r15), %rcx testq %rcx, %rcx je 0x139e0 movq 0x70(%r15), %r8 testq %r8, %r8 je 0x139e0 pushq $0x3 popq %rdx movq %r14, %rdi xorl %esi, %esi callq 0x1693a movq %rdx, %r9 movl $0x7, (%rsp) leaq 0x725ef(%rip), %rcx # 0x85fbe movq %r14, %rdi movq %r12, %rsi movq %r13, %rdx movq %rax, %r8 callq 0x245db leaq 0x721f2(%rip), %rdx # 0x85bd9 movq %r14, %rdi movq 0x10(%rsp), %rbx movq %rbx, %rsi movq %r12, %rcx movq %r13, %r8 callq 0x2cc4b leaq 0xa523c(%rip), %rdx # 0xb8c40 pushq $0x4a popq %rcx movq %r14, %rdi movq %rbx, %rsi addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x30358
js_os_init: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rsp+48h+var_38], rsi mov r14, rdi call JS_GetRuntime mov rbx, rax mov rdi, rax call js_get_thread_state mov r15, rax mov dword ptr [rax+60h], 1 lea rsi, [rax+7Ch] mov rdi, rbx call JS_NewClassID mov esi, [r15+7Ch] lea rdx, js_worker_class mov rdi, rbx call JS_NewClass mov rdi, r14 call JS_NewObject mov rbp, rax mov rbx, rdx lea rcx, js_worker_proto_funcs push 2 pop r12 mov rdi, r14 mov rsi, rax mov r8d, r12d call JS_SetPropertyFunctionList lea rsi, js_worker_ctor lea rdx, aWorker; "Worker" push 1 pop rcx mov rdi, r14 mov r8d, r12d xor r9d, r9d call JS_NewCFunction2 mov r12, rax mov r13, rdx mov rdi, r14 mov rsi, rax mov rcx, rbp mov r8, rbx call JS_SetConstructor mov esi, [r15+7Ch] mov rdi, r14 mov rdx, rbp mov rcx, rbx call JS_SetClassProto mov rcx, [r15+68h] test rcx, rcx jz short loc_139E0 mov r8, [r15+70h] test r8, r8 jz short loc_139E0 push 3 pop rdx mov rdi, r14 xor esi, esi call js_worker_ctor_internal mov r9, rdx mov [rsp+48h+var_48], 7 lea rcx, aParent; "parent" mov rdi, r14 mov rsi, r12 mov rdx, r13 mov r8, rax call JS_DefinePropertyValueStr loc_139E0: lea rdx, aWorker; "Worker" mov rdi, r14 mov rbx, [rsp+48h+var_38] mov rsi, rbx mov rcx, r12 mov r8, r13 call JS_SetModuleExport lea rdx, js_os_funcs push 4Ah ; 'J' pop rcx mov rdi, r14 mov rsi, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp JS_SetModuleExportList
long long js_os_init(long long a1, long long a2) { long long Runtime; // rbx long long thread_state; // r15 long long v4; // rbp long long v5; // rdx long long v6; // rbx long long v7; // r12 long long v8; // rdx long long v9; // r13 int v10; // eax int v11; // edx Runtime = JS_GetRuntime(a1); thread_state = js_get_thread_state(Runtime); *(_DWORD *)(thread_state + 96) = 1; JS_NewClassID(Runtime, thread_state + 124); JS_NewClass(Runtime, *(unsigned int *)(thread_state + 124), &js_worker_class); v4 = JS_NewObject(a1); v6 = v5; JS_SetPropertyFunctionList(a1, v4, v5, &js_worker_proto_funcs, 2LL); v7 = JS_NewCFunction2(a1, js_worker_ctor, "Worker", 1LL, 2LL, 0LL); v9 = v8; JS_SetConstructor(a1, v7, v8, v4, v6); JS_SetClassProto(a1, *(unsigned int *)(thread_state + 124), v4, v6); if ( *(_QWORD *)(thread_state + 104) && *(_QWORD *)(thread_state + 112) ) { v10 = js_worker_ctor_internal(a1, 0LL, 3LL); JS_DefinePropertyValueStr(a1, v7, v9, (unsigned int)"parent", v10, v11, 7); } JS_SetModuleExport(a1, a2, "Worker", v7, v9); return JS_SetModuleExportList(a1, a2, &js_os_funcs, 74LL); }
js_os_init: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RSI MOV R14,RDI CALL 0x0011dd35 MOV RBX,RAX MOV RDI,RAX CALL 0x00113e3a MOV R15,RAX MOV dword ptr [RAX + 0x60],0x1 LEA RSI,[RAX + 0x7c] MOV RDI,RBX CALL 0x0011e5cd MOV ESI,dword ptr [R15 + 0x7c] LEA RDX,[0x1bf588] MOV RDI,RBX CALL 0x0011e60a MOV RDI,R14 CALL 0x0011ee79 MOV RBP,RAX MOV RBX,RDX LEA RCX,[0x1b8c00] PUSH 0x2 POP R12 MOV RDI,R14 MOV RSI,RAX MOV R8D,R12D CALL 0x0012ffaf LEA RSI,[0x1166e5] LEA RDX,[0x185bd9] PUSH 0x1 POP RCX MOV RDI,R14 MOV R8D,R12D XOR R9D,R9D CALL 0x0011ee8d MOV R12,RAX MOV R13,RDX MOV RDI,R14 MOV RSI,RAX MOV RCX,RBP MOV R8,RBX CALL 0x00130497 MOV ESI,dword ptr [R15 + 0x7c] MOV RDI,R14 MOV RDX,RBP MOV RCX,RBX CALL 0x0011da90 MOV RCX,qword ptr [R15 + 0x68] TEST RCX,RCX JZ 0x001139e0 MOV R8,qword ptr [R15 + 0x70] TEST R8,R8 JZ 0x001139e0 PUSH 0x3 POP RDX MOV RDI,R14 XOR ESI,ESI CALL 0x0011693a MOV R9,RDX MOV dword ptr [RSP],0x7 LEA RCX,[0x185fbe] MOV RDI,R14 MOV RSI,R12 MOV RDX,R13 MOV R8,RAX CALL 0x001245db LAB_001139e0: LEA RDX,[0x185bd9] MOV RDI,R14 MOV RBX,qword ptr [RSP + 0x10] MOV RSI,RBX MOV RCX,R12 MOV R8,R13 CALL 0x0012cc4b LEA RDX,[0x1b8c40] PUSH 0x4a POP RCX MOV RDI,R14 MOV RSI,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00130358
void js_os_init(int8 param_1,int8 param_2) { int8 uVar1; long lVar2; int8 uVar3; int8 uVar4; int8 uVar5; int1 auVar6 [16]; uVar1 = JS_GetRuntime(); lVar2 = js_get_thread_state(uVar1); *(int4 *)(lVar2 + 0x60) = 1; JS_NewClassID(uVar1,lVar2 + 0x7c); JS_NewClass(uVar1,*(int4 *)(lVar2 + 0x7c),js_worker_class); auVar6 = JS_NewObject(param_1); uVar4 = auVar6._8_8_; uVar1 = auVar6._0_8_; JS_SetPropertyFunctionList(param_1,uVar1,uVar4,js_worker_proto_funcs,2); auVar6 = JS_NewCFunction2(param_1,js_worker_ctor,"Worker",1,2,0); uVar5 = auVar6._8_8_; uVar3 = auVar6._0_8_; JS_SetConstructor(param_1,uVar3,uVar5,uVar1,uVar4); JS_SetClassProto(param_1,*(int4 *)(lVar2 + 0x7c),uVar1,uVar4); if ((*(long *)(lVar2 + 0x68) != 0) && (*(long *)(lVar2 + 0x70) != 0)) { auVar6 = js_worker_ctor_internal(param_1,0,3); JS_DefinePropertyValueStr(param_1,uVar3,uVar5,"parent",auVar6._0_8_,auVar6._8_8_,7); } JS_SetModuleExport(param_1,param_2,"Worker",uVar3,uVar5); JS_SetModuleExportList(param_1,param_2,js_os_funcs,0x4a); return; }
45,012
nlohmann::json_abi_v3_11_3::ordered_map<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>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>::find(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json.hpp
iterator find(const key_type& key) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it; } } return Container::end(); }
O2
cpp
nlohmann::json_abi_v3_11_3::ordered_map<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>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>::find(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %r14 movq 0x8(%r15), %rax cmpq %rax, %r14 je 0x7e8a7 movq %r14, %rdi movq %rbx, %rsi callq 0x28141 testb %al, %al jne 0x7e8a4 addq $0x30, %r14 jmp 0x7e886 movq %r14, %rax popq %rbx popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findERSH_: push r15 push r14 push rbx mov rbx, rsi mov r15, rdi mov r14, [rdi] loc_7E886: mov rax, [r15+8] cmp r14, rax jz short loc_7E8A7 mov rdi, r14 mov rsi, rbx call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ test al, al jnz short loc_7E8A4 add r14, 30h ; '0' jmp short loc_7E886 loc_7E8A4: mov rax, r14 loc_7E8A7: pop rbx pop r14 pop r15 retn
_QWORD * nlohmann::json_abi_v3_11_3::ordered_map<std::string,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>,std::less<void>,std::allocator<std::pair<std::string const,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>>>>::find( long long a1, _QWORD *a2) { _QWORD *i; // r14 _QWORD *result; // rax for ( i = *(_QWORD **)a1; ; i += 6 ) { result = *(_QWORD **)(a1 + 8); if ( i == result ) break; if ( std::operator==<char>(i, a2) ) return i; } return result; }
find: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R15,RDI MOV R14,qword ptr [RDI] LAB_0017e886: MOV RAX,qword ptr [R15 + 0x8] CMP R14,RAX JZ 0x0017e8a7 MOV RDI,R14 MOV RSI,RBX CALL 0x00128141 TEST AL,AL JNZ 0x0017e8a4 ADD R14,0x30 JMP 0x0017e886 LAB_0017e8a4: MOV RAX,R14 LAB_0017e8a7: POP RBX POP R14 POP R15 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<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>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > > >::find(std::__cxx11::string const&) */ string * __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<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>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::find(ordered_map<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>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *this,string *param_1) { char cVar1; string *psVar2; string *psVar3; psVar3 = *(string **)this; while ((psVar2 = *(string **)(this + 8), psVar3 != *(string **)(this + 8) && (cVar1 = std::operator==(psVar3,param_1), psVar2 = psVar3, cVar1 == '\0'))) { psVar3 = psVar3 + 0x30; } return psVar2; }
45,013
my_strxfrm_pad_nweights_unicode
eloqsql/strings/ctype-utf8.c
size_t my_strxfrm_pad_nweights_unicode(uchar *str, uchar *strend, size_t nweights) { uchar *str0; DBUG_ASSERT(str && str <= strend); for (str0= str; str < strend && nweights; nweights--) { *str++= 0x00; if (str < strend) *str++= 0x20; } return str - str0; }
O3
c
my_strxfrm_pad_nweights_unicode: cmpq %rsi, %rdi setae %al testq %rdx, %rdx sete %cl orb %al, %cl movq %rdi, %rax jne 0xce435 pushq %rbp movq %rsp, %rbp decq %rdx movq %rdi, %rcx leaq 0x1(%rcx), %rax movb $0x0, (%rcx) cmpq %rsi, %rax jae 0xce41f movb $0x20, 0x1(%rcx) addq $0x2, %rcx movq %rcx, %rax addq $-0x1, %rdx setb %r8b cmpq %rsi, %rax jae 0xce434 movq %rax, %rcx testb %r8b, %r8b jne 0xce408 popq %rbp subq %rdi, %rax retq
my_strxfrm_pad_nweights_unicode: cmp rdi, rsi setnb al test rdx, rdx setz cl or cl, al mov rax, rdi jnz short loc_CE435 push rbp mov rbp, rsp dec rdx mov rcx, rdi loc_CE408: lea rax, [rcx+1] mov byte ptr [rcx], 0 cmp rax, rsi jnb short loc_CE41F mov byte ptr [rcx+1], 20h ; ' ' add rcx, 2 mov rax, rcx loc_CE41F: add rdx, 0FFFFFFFFFFFFFFFFh setb r8b cmp rax, rsi jnb short loc_CE434 mov rcx, rax test r8b, r8b jnz short loc_CE408 loc_CE434: pop rbp loc_CE435: sub rax, rdi retn
long long my_strxfrm_pad_nweights_unicode(_BYTE *a1, unsigned long long a2, long long a3) { _BYTE *v3; // rax long long v4; // rdx _BYTE *v5; // rcx bool v6; // cf v3 = a1; if ( (unsigned long long)a1 < a2 && a3 != 0 ) { v4 = a3 - 1; v5 = a1; do { v3 = v5 + 1; *v5 = 0; if ( (unsigned long long)(v5 + 1) < a2 ) { v5[1] = 32; v3 = v5 + 2; } v6 = v4-- != 0; if ( (unsigned long long)v3 >= a2 ) break; v5 = v3; } while ( v6 ); } return v3 - a1; }
my_strxfrm_pad_nweights_unicode: CMP RDI,RSI SETNC AL TEST RDX,RDX SETZ CL OR CL,AL MOV RAX,RDI JNZ 0x001ce435 PUSH RBP MOV RBP,RSP DEC RDX MOV RCX,RDI LAB_001ce408: LEA RAX,[RCX + 0x1] MOV byte ptr [RCX],0x0 CMP RAX,RSI JNC 0x001ce41f MOV byte ptr [RCX + 0x1],0x20 ADD RCX,0x2 MOV RAX,RCX LAB_001ce41f: ADD RDX,-0x1 SETC R8B CMP RAX,RSI JNC 0x001ce434 MOV RCX,RAX TEST R8B,R8B JNZ 0x001ce408 LAB_001ce434: POP RBP LAB_001ce435: SUB RAX,RDI RET
long my_strxfrm_pad_nweights_unicode(int1 *param_1,int1 *param_2,long param_3) { int1 *puVar1; int1 *puVar2; bool bVar3; puVar2 = param_1; if (param_3 != 0 && param_1 < param_2) { param_3 = param_3 + -1; puVar1 = param_1; do { puVar2 = puVar1 + 1; *puVar1 = 0; if (puVar2 < param_2) { puVar1[1] = 0x20; puVar2 = puVar1 + 2; } bVar3 = param_3 != 0; param_3 = param_3 + -1; } while ((puVar2 < param_2) && (puVar1 = puVar2, bVar3)); } return (long)puVar2 - (long)param_1; }
45,014
pvio_socket_is_alive
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
my_bool pvio_socket_is_alive(MARIADB_PVIO *pvio) { struct st_pvio_socket *csock= NULL; #ifndef _WIN32 struct pollfd poll_fd; #else FD_SET sfds; struct timeval tv= {0,0}; #endif int res; if (!pvio || !pvio->data) return 0; csock= (struct st_pvio_socket *)pvio->data; #ifndef _WIN32 memset(&poll_fd, 0, sizeof(struct pollfd)); poll_fd.events= POLLPRI | POLLIN; poll_fd.fd= csock->socket; res= poll(&poll_fd, 1, 0); if (res <= 0) /* timeout or error */ return FALSE; if (!(poll_fd.revents & (POLLIN | POLLPRI))) return FALSE; return TRUE; #else /* We can't use the WSAPoll function, it's broken :-( (see Windows 8 Bugs 309411 - WSAPoll does not report failed connections) Instead we need to use select function: If TIMEVAL is initialized to {0, 0}, select will return immediately; this is used to poll the state of the selected sockets. */ FD_ZERO(&sfds); FD_SET(csock->socket, &sfds); res= select((int)csock->socket + 1, &sfds, NULL, NULL, &tv); if (res > 0 && FD_ISSET(csock->socket, &sfds)) return TRUE; return FALSE; #endif }
O0
c
pvio_socket_is_alive: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq $0x0, -0x18(%rbp) cmpq $0x0, -0x10(%rbp) je 0x9d065 movq -0x10(%rbp), %rax cmpq $0x0, (%rax) jne 0x9d06b movb $0x0, -0x1(%rbp) jmp 0x9d0ca movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) leaq -0x20(%rbp), %rdi xorl %esi, %esi movl $0x8, %edx callq 0x3b390 movw $0x3, -0x1c(%rbp) movq -0x18(%rbp), %rax movl (%rax), %eax movl %eax, -0x20(%rbp) leaq -0x20(%rbp), %rdi movl $0x1, %esi xorl %edx, %edx callq 0x3b370 movl %eax, -0x24(%rbp) cmpl $0x0, -0x24(%rbp) jg 0x9d0b4 movb $0x0, -0x1(%rbp) jmp 0x9d0ca movswl -0x1a(%rbp), %eax andl $0x3, %eax cmpl $0x0, %eax jne 0x9d0c6 movb $0x0, -0x1(%rbp) jmp 0x9d0ca movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
pvio_socket_is_alive: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], 0 cmp [rbp+var_10], 0 jz short loc_9D065 mov rax, [rbp+var_10] cmp qword ptr [rax], 0 jnz short loc_9D06B loc_9D065: mov [rbp+var_1], 0 jmp short loc_9D0CA loc_9D06B: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_18], rax lea rdi, [rbp+var_20] xor esi, esi mov edx, 8 call _memset mov [rbp+var_1C], 3 mov rax, [rbp+var_18] mov eax, [rax] mov [rbp+var_20], eax lea rdi, [rbp+var_20] mov esi, 1 xor edx, edx call _poll mov [rbp+var_24], eax cmp [rbp+var_24], 0 jg short loc_9D0B4 mov [rbp+var_1], 0 jmp short loc_9D0CA loc_9D0B4: movsx eax, [rbp+var_1A] and eax, 3 cmp eax, 0 jnz short loc_9D0C6 mov [rbp+var_1], 0 jmp short loc_9D0CA loc_9D0C6: mov [rbp+var_1], 1 loc_9D0CA: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
bool pvio_socket_is_alive(int **a1) { int v2; // [rsp+10h] [rbp-20h] BYREF __int16 v3; // [rsp+14h] [rbp-1Ch] __int16 v4; // [rsp+16h] [rbp-1Ah] int *v5; // [rsp+18h] [rbp-18h] int **v6; // [rsp+20h] [rbp-10h] v6 = a1; v5 = 0LL; if ( !a1 || !*v6 ) return 0; v5 = *v6; memset(&v2, 0LL, 8LL); v3 = 3; v2 = *v5; return (int)poll(&v2, 1LL, 0LL) > 0 && (v4 & 3) != 0; }
pvio_socket_is_alive: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],0x0 CMP qword ptr [RBP + -0x10],0x0 JZ 0x0019d065 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX],0x0 JNZ 0x0019d06b LAB_0019d065: MOV byte ptr [RBP + -0x1],0x0 JMP 0x0019d0ca LAB_0019d06b: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX LEA RDI,[RBP + -0x20] XOR ESI,ESI MOV EDX,0x8 CALL 0x0013b390 MOV word ptr [RBP + -0x1c],0x3 MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x20],EAX LEA RDI,[RBP + -0x20] MOV ESI,0x1 XOR EDX,EDX CALL 0x0013b370 MOV dword ptr [RBP + -0x24],EAX CMP dword ptr [RBP + -0x24],0x0 JG 0x0019d0b4 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0019d0ca LAB_0019d0b4: MOVSX EAX,word ptr [RBP + -0x1a] AND EAX,0x3 CMP EAX,0x0 JNZ 0x0019d0c6 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0019d0ca LAB_0019d0c6: MOV byte ptr [RBP + -0x1],0x1 LAB_0019d0ca: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 pvio_socket_is_alive(long *param_1) { int iVar1; pollfd local_28; int *local_20; long *local_18; int1 local_9; if ((param_1 == (long *)0x0) || (*param_1 == 0)) { local_9 = 0; } else { local_20 = (int *)*param_1; local_18 = param_1; memset(&local_28,0,8); local_28.events = 3; local_28.fd = *local_20; iVar1 = poll(&local_28,1,0); if (iVar1 < 1) { local_9 = 0; } else if ((local_28.revents & 3U) == 0) { local_9 = 0; } else { local_9 = 1; } } return local_9; }
45,015
unlock_lock_and_free_resource
eloqsql/mysys/waiting_threads.c
static int unlock_lock_and_free_resource(WT_THD *thd, WT_RESOURCE *rc) { uint keylen; const void *key; DBUG_ENTER("unlock_lock_and_free_resource"); DBUG_ASSERT(rc->state == ACTIVE); if (rc->owners.elements || rc->waiter_count) { DBUG_PRINT("wt", ("nothing to do, %u owners, %u waiters", rc->owners.elements, rc->waiter_count)); rc_unlock(rc); DBUG_RETURN(0); } if (fix_thd_pins(thd)) { rc_unlock(rc); DBUG_RETURN(1); } /* XXX if (rc->id.type->make_key) key= rc->id.type->make_key(&rc->id, &keylen); else */ { key= &rc->id; keylen= sizeof_WT_RESOURCE_ID; } /* To free the element correctly we need to: 1. take its lock (already done). 2. set the state to FREE 3. release the lock 4. remove from the hash */ rc->state= FREE; rc_unlock(rc); DBUG_RETURN(lf_hash_delete(&reshash, thd->pins, key, keylen) == -1); }
O3
c
unlock_lock_and_free_resource: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %rbx cmpl $0x0, 0xe8(%rsi) jne 0xa6e2e cmpl $0x0, 0x10(%rbx) je 0xa6e41 addq $0x18, %rbx movq %rbx, %rdi callq 0xa4036 xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq movq %rdi, %r14 cmpq $0x0, 0x30(%rdi) je 0xa6e7f movl $0x1, 0x14(%rbx) leaq 0x18(%rbx), %rdi callq 0xa4036 movq 0x30(%r14), %rsi leaq 0xb61c6a(%rip), %rdi # 0xc08ad0 movq %rbx, %rdx movl $0x10, %ecx callq 0x2f731 movl %eax, %ecx xorl %eax, %eax cmpl $-0x1, %ecx sete %al jmp 0xa6e3c leaq 0xb61c72(%rip), %rdi # 0xc08af8 callq 0x2f225 movq %rax, 0x30(%r14) testq %rax, %rax jne 0xa6e4b addq $0x18, %rbx movq %rbx, %rdi callq 0xa4036 movl $0x1, %eax jmp 0xa6e3c
unlock_lock_and_free_resource: push rbp mov rbp, rsp push r14 push rbx mov rbx, rsi cmp dword ptr [rsi+0E8h], 0 jnz short loc_A6E2E cmp dword ptr [rbx+10h], 0 jz short loc_A6E41 loc_A6E2E: add rbx, 18h mov rdi, rbx call my_rw_unlock xor eax, eax loc_A6E3C: pop rbx pop r14 pop rbp retn loc_A6E41: mov r14, rdi cmp qword ptr [rdi+30h], 0 jz short loc_A6E7F loc_A6E4B: mov dword ptr [rbx+14h], 1 lea rdi, [rbx+18h] call my_rw_unlock mov rsi, [r14+30h] lea rdi, reshash mov rdx, rbx mov ecx, 10h call lf_hash_delete mov ecx, eax xor eax, eax cmp ecx, 0FFFFFFFFh setz al jmp short loc_A6E3C loc_A6E7F: lea rdi, unk_C08AF8 call lf_pinbox_get_pins mov [r14+30h], rax test rax, rax jnz short loc_A6E4B add rbx, 18h mov rdi, rbx call my_rw_unlock mov eax, 1 jmp short loc_A6E3C
_BOOL8 unlock_lock_and_free_resource(long long a1, _DWORD *a2) { long long pins; // rax if ( a2[58] || a2[4] ) { my_rw_unlock((long long)(a2 + 6)); return 0LL; } else if ( *(_QWORD *)(a1 + 48) || (pins = lf_pinbox_get_pins((long long)&unk_C08AF8), (*(_QWORD *)(a1 + 48) = pins) != 0LL) ) { a2[5] = 1; my_rw_unlock((long long)(a2 + 6)); return (unsigned int)lf_hash_delete((long long)&reshash, *(volatile long long **)(a1 + 48), (long long)a2, 0x10u) == -1; } else { my_rw_unlock((long long)(a2 + 6)); return 1LL; } }
unlock_lock_and_free_resource: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RSI CMP dword ptr [RSI + 0xe8],0x0 JNZ 0x001a6e2e CMP dword ptr [RBX + 0x10],0x0 JZ 0x001a6e41 LAB_001a6e2e: ADD RBX,0x18 MOV RDI,RBX CALL 0x001a4036 XOR EAX,EAX LAB_001a6e3c: POP RBX POP R14 POP RBP RET LAB_001a6e41: MOV R14,RDI CMP qword ptr [RDI + 0x30],0x0 JZ 0x001a6e7f LAB_001a6e4b: MOV dword ptr [RBX + 0x14],0x1 LEA RDI,[RBX + 0x18] CALL 0x001a4036 MOV RSI,qword ptr [R14 + 0x30] LEA RDI,[0xd08ad0] MOV RDX,RBX MOV ECX,0x10 CALL 0x0012f731 MOV ECX,EAX XOR EAX,EAX CMP ECX,-0x1 SETZ AL JMP 0x001a6e3c LAB_001a6e7f: LEA RDI,[0xd08af8] CALL 0x0012f225 MOV qword ptr [R14 + 0x30],RAX TEST RAX,RAX JNZ 0x001a6e4b ADD RBX,0x18 MOV RDI,RBX CALL 0x001a4036 MOV EAX,0x1 JMP 0x001a6e3c
bool unlock_lock_and_free_resource(long param_1,long param_2) { int iVar1; long lVar2; bool bVar3; if ((*(int *)(param_2 + 0xe8) == 0) && (*(int *)(param_2 + 0x10) == 0)) { if (*(long *)(param_1 + 0x30) == 0) { lVar2 = lf_pinbox_get_pins(0xd08af8); *(long *)(param_1 + 0x30) = lVar2; if (lVar2 == 0) { my_rw_unlock(param_2 + 0x18); return true; } } *(int4 *)(param_2 + 0x14) = 1; my_rw_unlock(param_2 + 0x18); iVar1 = lf_hash_delete(reshash,*(int8 *)(param_1 + 0x30),param_2,0x10); bVar3 = iVar1 == -1; } else { my_rw_unlock(param_2 + 0x18); bVar3 = false; } return bVar3; }
45,016
minja::Parser::parseIdentifier()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<VariableExpr> parseIdentifier() { static std::regex ident_regex(R"((?!(?:not|is|and|or|del)\b)[a-zA-Z_]\w*)"); auto location = get_location(); auto ident = consumeToken(ident_regex); if (ident.empty()) return nullptr; return std::make_shared<VariableExpr>(location, ident); }
O1
cpp
minja::Parser::parseIdentifier(): pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0xaa506(%rip), %rax # 0x1301f8 movb (%rax), %al testb %al, %al je 0x85db4 movq (%r14), %rax movq %rax, 0x10(%rsp) movq 0x8(%r14), %rax movq %rax, 0x18(%rsp) testq %rax, %rax je 0x85d27 movq 0xa926f(%rip), %rcx # 0x12ef88 cmpb $0x0, (%rcx) je 0x85d23 incl 0x8(%rax) jmp 0x85d27 lock incl 0x8(%rax) movq 0x20(%r14), %rax subq 0x10(%r14), %rax movq %rax, 0x20(%rsp) leaq 0xaa49d(%rip), %rdx # 0x1301d8 leaq 0x28(%rsp), %rdi movq %r14, %rsi movl $0x1, %ecx callq 0x85672 cmpq $0x0, 0x30(%rsp) je 0x85d79 movq $0x0, (%rbx) leaq 0x8(%rbx), %rdi leaq 0xf(%rsp), %rdx leaq 0x10(%rsp), %rcx leaq 0x28(%rsp), %r8 movq %rbx, %rsi callq 0x9a43a jmp 0x85d7f xorps %xmm0, %xmm0 movups %xmm0, (%rbx) leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x85d9a movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8e0 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x85da9 callq 0x6e958 movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r14 retq leaq 0xaa43d(%rip), %rdi # 0x1301f8 callq 0x1c010 testl %eax, %eax je 0x85cfc leaq 0xaa409(%rip), %rdi # 0x1301d8 leaq 0x6dae0(%rip), %rsi # 0xf38b6 movl $0x10, %edx callq 0x63988 leaq -0x22157(%rip), %rdi # 0x63c90 leaq 0xaa3ea(%rip), %rsi # 0x1301d8 leaq 0xa9ae3(%rip), %rdx # 0x12f8d8 callq 0x1b7b0 leaq 0xaa3f7(%rip), %rdi # 0x1301f8 callq 0x1b5b0 jmp 0x85cfc movq %rax, %rbx leaq 0xaa3e3(%rip), %rdi # 0x1301f8 callq 0x1b5a0 jmp 0x85e4e movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x85e3f movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8e0 jmp 0x85e3f movq %rax, %rbx movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x85e4e callq 0x6e958 movq %rbx, %rdi callq 0x1bfb0
_ZN5minja6Parser15parseIdentifierEv: push r14 push rbx sub rsp, 48h mov r14, rsi mov rbx, rdi lea rax, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; `guard variable for'minja::Parser::parseIdentifier(void)::ident_regex mov al, [rax] test al, al jz loc_85DB4 loc_85CFC: mov rax, [r14] mov [rsp+58h+var_48], rax mov rax, [r14+8] mov [rsp+58h+var_40], rax test rax, rax jz short loc_85D27 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_85D23 inc dword ptr [rax+8] jmp short loc_85D27 loc_85D23: lock inc dword ptr [rax+8] loc_85D27: mov rax, [r14+20h] sub rax, [r14+10h] mov [rsp+58h+var_38], rax lea rdx, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rdi, [rsp+58h+var_30] mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) cmp [rsp+58h+var_28], 0 jz short loc_85D79 mov qword ptr [rbx], 0 lea rdi, [rbx+8] lea rdx, [rsp+58h+var_49] lea rcx, [rsp+58h+var_48] lea r8, [rsp+58h+var_30] mov rsi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja12VariableExprESaIS5_EJRNS4_8LocationERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::VariableExpr,std::allocator<minja::VariableExpr>,minja::Location &,std::string &>(minja::VariableExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::VariableExpr>>,minja::Location &,std::string &) jmp short loc_85D7F loc_85D79: xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 loc_85D7F: lea rax, [rsp+58h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_85D9A mov rsi, [rsp+58h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_85D9A: mov rdi, [rsp+58h+var_40] test rdi, rdi jz short loc_85DA9 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_85DA9: mov rax, rbx add rsp, 48h pop rbx pop r14 retn loc_85DB4: lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_85CFC lea rdi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rsi, aNotIsAndOrDelB; "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\"... mov edx, 10h call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_release jmp loc_85CFC mov rbx, rax lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_85E4E mov rbx, rax lea rax, [rsp+arg_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_85E3F mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_85E3F mov rbx, rax loc_85E3F: mov rdi, [rsp+arg_10] test rdi, rdi jz short loc_85E4E call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_85E4E: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::parseIdentifier(minja::Parser *this, long long *a2) { volatile signed __int32 *v2; // rax char v4; // [rsp+Fh] [rbp-49h] BYREF long long v5; // [rsp+10h] [rbp-48h] BYREF volatile signed __int32 *v6; // [rsp+18h] [rbp-40h] long long v7; // [rsp+20h] [rbp-38h] void *v8[2]; // [rsp+28h] [rbp-30h] BYREF long long v9; // [rsp+38h] [rbp-20h] BYREF if ( !(_BYTE)`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], (long long)"(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]); } v5 = *a2; v2 = (volatile signed __int32 *)a2[1]; v6 = v2; if ( v2 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v2 + 2); else _InterlockedIncrement(v2 + 2); } v7 = a2[4] - a2[2]; minja::Parser::consumeToken( (long long)v8, (long long)a2, (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], 1u); if ( v8[1] ) { *(_QWORD *)this = 0LL; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::VariableExpr,std::allocator<minja::VariableExpr>,minja::Location &,std::string &>( (char *)this + 8, this, &v4, &v5, v8); } else { *(_OWORD *)this = 0LL; } if ( v8[0] != &v9 ) operator delete(v8[0], v9 + 1); if ( v6 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6); return this; }
parseIdentifier: PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RSI MOV RBX,RDI LEA RAX,[0x2301f8] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x00185db4 LAB_00185cfc: MOV RAX,qword ptr [R14] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RSP + 0x18],RAX TEST RAX,RAX JZ 0x00185d27 MOV RCX,qword ptr [0x0022ef88] CMP byte ptr [RCX],0x0 JZ 0x00185d23 INC dword ptr [RAX + 0x8] JMP 0x00185d27 LAB_00185d23: INC.LOCK dword ptr [RAX + 0x8] LAB_00185d27: MOV RAX,qword ptr [R14 + 0x20] SUB RAX,qword ptr [R14 + 0x10] MOV qword ptr [RSP + 0x20],RAX LAB_00185d34: LEA RDX,[0x2301d8] LEA RDI,[RSP + 0x28] MOV RSI,R14 MOV ECX,0x1 CALL 0x00185672 CMP qword ptr [RSP + 0x30],0x0 JZ 0x00185d79 MOV qword ptr [RBX],0x0 LEA RDI,[RBX + 0x8] LAB_00185d60: LEA RDX,[RSP + 0xf] LEA RCX,[RSP + 0x10] LEA R8,[RSP + 0x28] MOV RSI,RBX CALL 0x0019a43a JMP 0x00185d7f LAB_00185d79: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 LAB_00185d7f: LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00185d9a MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011b8e0 LAB_00185d9a: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x00185da9 CALL 0x0016e958 LAB_00185da9: MOV RAX,RBX ADD RSP,0x48 POP RBX POP R14 RET LAB_00185db4: LEA RDI,[0x2301f8] CALL 0x0011c010 TEST EAX,EAX JZ 0x00185cfc LAB_00185dc8: LEA RDI,[0x2301d8] LEA RSI,[0x1f38b6] MOV EDX,0x10 CALL 0x00163988 LAB_00185de0: LEA RDI,[0x163c90] LEA RSI,[0x2301d8] LEA RDX,[0x22f8d8] CALL 0x0011b7b0 LEA RDI,[0x2301f8] CALL 0x0011b5b0 JMP 0x00185cfc
/* minja::Parser::parseIdentifier() */ void minja::Parser::parseIdentifier(void) { _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this; int iVar1; long in_RSI; int8 *in_RDI; long *local_30; long local_28; long local_20 [2]; if (parseIdentifier()::ident_regex_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseIdentifier()::ident_regex_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 00185dc8 to 00185ddf has its CatchHandler @ 00185e0b */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseIdentifier()::ident_regex_abi_cxx11_, "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseIdentifier()::ident_regex_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseIdentifier()::ident_regex_abi_cxx11_); } } this = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(in_RSI + 8); if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_0022ef88 == '\0') { LOCK(); *(int *)(this + 8) = *(int *)(this + 8) + 1; UNLOCK(); } else { *(int *)(this + 8) = *(int *)(this + 8) + 1; } } /* try { // try from 00185d34 to 00185d4c has its CatchHandler @ 00185e3c */ consumeToken(&local_30); if (local_28 == 0) { *in_RDI = 0; in_RDI[1] = 0; } else { *in_RDI = 0; /* try { // try from 00185d60 to 00185d76 has its CatchHandler @ 00185e1c */ std::__shared_count<(__gnu_cxx::_Lock_policy)2>:: __shared_count<minja::VariableExpr,std::allocator<minja::VariableExpr>,minja::Location&,std::__cxx11::string&> ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(in_RDI + 1)); } if (local_30 != local_20) { operator_delete(local_30,local_20[0] + 1); } if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this); } return; }
45,017
Catch::UnaryExpr<Graph*&>::streamReconstructedExpression(std::ostream&) const
11AgReS1SoR11[P]Graph/build_O1/_deps/catch2-src/src/catch2/../catch2/internal/catch_decomposer.hpp
void streamReconstructedExpression( std::ostream &os ) const override { os << Catch::Detail::stringify( m_lhs ); }
O1
cpp
Catch::UnaryExpr<Graph*&>::streamReconstructedExpression(std::ostream&) const: pushq %r14 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movq 0x10(%rdi), %rax movq (%rax), %rsi leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x1643c movq (%r14), %rsi movq 0x8(%r14), %rdx movq %rbx, %rdi callq 0x115b0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x163f6 movq 0x18(%rsp), %rsi incq %rsi callq 0x114e0 addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1641c movq 0x18(%rsp), %rsi incq %rsi callq 0x114e0 movq %rbx, %rdi callq 0x11900
_ZNK5Catch9UnaryExprIRP4LineE29streamReconstructedExpressionERSo: push r14 push rbx sub rsp, 28h mov rbx, rsi mov rax, [rdi+10h] mov rsi, [rax] lea r14, [rsp+38h+var_30] mov rdi, r14 call _ZN5Catch11StringMakerIP4LinevE7convertIS1_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_; Catch::StringMaker<Line *,void>::convert<Line>(Line *) mov rsi, [r14] mov rdx, [r14+8] 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) lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_163F6 mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_163F6: add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1641C mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1641C: mov rdi, rbx call __Unwind_Resume
void Catch::UnaryExpr<Line *&>::streamReconstructedExpression(long long a1, long long a2) { void *v2[2]; // [rsp+8h] [rbp-30h] BYREF long long v3; // [rsp+18h] [rbp-20h] BYREF Catch::StringMaker<Line *,void>::convert<Line>(v2, **(_QWORD **)(a1 + 16)); std::__ostream_insert<char,std::char_traits<char>>(a2, v2[0], v2[1]); if ( v2[0] != &v3 ) operator delete(v2[0], v3 + 1); }
streamReconstructedExpression: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RSI MOV RAX,qword ptr [RDI + 0x10] MOV RSI,qword ptr [RAX] LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x0011643c MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] LAB_001163d3: MOV RDI,RBX CALL 0x001115b0 LAB_001163db: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001163f6 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001114e0 LAB_001163f6: ADD RSP,0x28 POP RBX POP R14 RET
/* Catch::UnaryExpr<Line*&>::streamReconstructedExpression(std::ostream&) const */ void __thiscall Catch::UnaryExpr<Line*&>::streamReconstructedExpression(UnaryExpr<Line*&> *this,ostream *param_1) { long *local_30; long local_28; long local_20 [2]; StringMaker<Line*,void>::convert<Line> ((StringMaker<Line*,void> *)&local_30,(Line *)**(int8 **)(this + 0x10)); /* try { // try from 001163d3 to 001163da has its CatchHandler @ 001163fe */ std::__ostream_insert<char,std::char_traits<char>>(param_1,(char *)local_30,local_28); if (local_30 != local_20) { operator_delete(local_30,local_20[0] + 1); } return; }
45,018
update_backward_delete_link
eloqsql/storage/myisam/mi_dynrec.c
static int update_backward_delete_link(MI_INFO *info, my_off_t delete_block, my_off_t filepos) { MI_BLOCK_INFO block_info; DBUG_ENTER("update_backward_delete_link"); if (delete_block != HA_OFFSET_ERROR) { block_info.second_read=0; if (_mi_get_block_info(&block_info,info->dfile,delete_block) & BLOCK_DELETED) { uchar buff[8]; mi_sizestore(buff,filepos); if (info->s->file_write(info,buff, 8, delete_block+12, MYF(MY_NABP))) DBUG_RETURN(1); /* Error on write */ } else { my_errno=HA_ERR_WRONG_IN_RECORD; DBUG_RETURN(1); /* Wrong delete link */ } } DBUG_RETURN(0); }
O3
c
update_backward_delete_link: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movq %fs:0x28, %rax movq %rax, -0x20(%rbp) cmpq $-0x1, %rsi je 0x7bc50 movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 leaq -0x78(%rbp), %rdi movl $0x0, 0x50(%rdi) movl 0x1c0(%r14), %esi movq %rbx, %rdx callq 0x7b6bb testb $0x4, %al jne 0x7bc1b callq 0xa4ab2 movl $0x7f, (%rax) movl $0x1, %eax jmp 0x7bc52 bswapq %r15 leaq -0x80(%rbp), %rsi movq %r15, (%rsi) movq (%r14), %rax addq $0xc, %rbx movl $0x8, %edx movl $0x4, %r8d movq %r14, %rdi movq %rbx, %rcx callq *0x2e8(%rax) movq %rax, %rcx movl $0x1, %eax testq %rcx, %rcx jne 0x7bc52 xorl %eax, %eax movq %fs:0x28, %rcx cmpq -0x20(%rbp), %rcx jne 0x7bc6c addq $0x68, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0x29220
update_backward_delete_link_0: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 68h mov rax, fs:28h mov [rbp+var_20], rax cmp rsi, 0FFFFFFFFFFFFFFFFh jz short loc_7BC50 mov r15, rdx mov rbx, rsi mov r14, rdi lea rdi, [rbp+var_78] mov dword ptr [rdi+50h], 0 mov esi, [r14+1C0h] mov rdx, rbx call _mi_get_block_info test al, 4 jnz short loc_7BC1B call _my_thread_var mov dword ptr [rax], 7Fh mov eax, 1 jmp short loc_7BC52 loc_7BC1B: bswap r15 lea rsi, [rbp+var_80] mov [rsi], r15 mov rax, [r14] add rbx, 0Ch mov edx, 8 mov r8d, 4 mov rdi, r14 mov rcx, rbx call qword ptr [rax+2E8h] mov rcx, rax mov eax, 1 test rcx, rcx jnz short loc_7BC52 loc_7BC50: xor eax, eax loc_7BC52: mov rcx, fs:28h cmp rcx, [rbp+var_20] jnz short loc_7BC6C add rsp, 68h pop rbx pop r14 pop r15 pop rbp retn loc_7BC6C: call ___stack_chk_fail
long long update_backward_delete_link_0(unsigned int *a1, long long a2, unsigned long long a3) { long long result; // rax long long v5; // rcx unsigned long long v6; // [rsp+0h] [rbp-80h] BYREF _BYTE v7[80]; // [rsp+8h] [rbp-78h] BYREF int v8; // [rsp+58h] [rbp-28h] unsigned long long v9; // [rsp+60h] [rbp-20h] v9 = __readfsqword(0x28u); if ( a2 == -1 ) return 0LL; v8 = 0; if ( (mi_get_block_info((long long)v7, a1[112], a2) & 4) == 0 ) { *(_DWORD *)my_thread_var(v7) = 127; return 1LL; } v6 = _byteswap_uint64(a3); v5 = (*(long long ( **)(unsigned int *, unsigned long long *, long long, long long, long long))(*(_QWORD *)a1 + 744LL))( a1, &v6, 8LL, a2 + 12, 4LL); result = 1LL; if ( !v5 ) return 0LL; return result; }
update_backward_delete_link: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x68 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX CMP RSI,-0x1 JZ 0x0017bc50 MOV R15,RDX MOV RBX,RSI MOV R14,RDI LEA RDI,[RBP + -0x78] MOV dword ptr [RDI + 0x50],0x0 MOV ESI,dword ptr [R14 + 0x1c0] MOV RDX,RBX CALL 0x0017b6bb TEST AL,0x4 JNZ 0x0017bc1b CALL 0x001a4ab2 MOV dword ptr [RAX],0x7f MOV EAX,0x1 JMP 0x0017bc52 LAB_0017bc1b: BSWAP R15 LEA RSI,[RBP + -0x80] MOV qword ptr [RSI],R15 MOV RAX,qword ptr [R14] ADD RBX,0xc MOV EDX,0x8 MOV R8D,0x4 MOV RDI,R14 MOV RCX,RBX CALL qword ptr [RAX + 0x2e8] MOV RCX,RAX MOV EAX,0x1 TEST RCX,RCX JNZ 0x0017bc52 LAB_0017bc50: XOR EAX,EAX LAB_0017bc52: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x20] JNZ 0x0017bc6c ADD RSP,0x68 POP RBX POP R14 POP R15 POP RBP RET LAB_0017bc6c: CALL 0x00129220
int8 update_backward_delete_link(long *param_1,long param_2,ulong param_3) { ulong uVar1; int4 *puVar2; int8 uVar3; long lVar4; long in_FS_OFFSET; ulong local_88; int1 local_80 [80]; int4 local_30; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 != -1) { local_30 = 0; uVar1 = _mi_get_block_info(local_80,(int)param_1[0x38],param_2); if ((uVar1 & 4) == 0) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7f; uVar3 = 1; goto LAB_0017bc52; } local_88 = param_3 >> 0x38 | (param_3 & 0xff000000000000) >> 0x28 | (param_3 & 0xff0000000000) >> 0x18 | (param_3 & 0xff00000000) >> 8 | (param_3 & 0xff000000) << 8 | (param_3 & 0xff0000) << 0x18 | (param_3 & 0xff00) << 0x28 | param_3 << 0x38; lVar4 = (**(code **)(*param_1 + 0x2e8))(param_1,&local_88,8,param_2 + 0xc,4); uVar3 = 1; if (lVar4 != 0) goto LAB_0017bc52; } uVar3 = 0; LAB_0017bc52: if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return uVar3; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
45,019
Explain_query::print_explain_str(THD*, String*, bool)
eloqsql/sql/sql_explain.cc
bool Explain_query::print_explain_str(THD *thd, String *out_str, bool is_analyze) { List<Item> fields; thd->make_explain_field_list(fields, thd->lex->describe, is_analyze); select_result_text_buffer output_buf(thd); output_buf.send_result_set_metadata(fields, thd->lex->describe); if (print_explain(&output_buf, thd->lex->describe, is_analyze)) return true; output_buf.save_to(out_str); return false; }
O0
cpp
Explain_query::print_explain_str(THD*, String*, bool): pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movb %cl, %al movq %fs:0x28, %rcx movq %rcx, -0x8(%rbp) movq %rdi, -0x60(%rbp) movq %rsi, -0x68(%rbp) movq %rdx, -0x70(%rbp) andb $0x1, %al movb %al, -0x71(%rbp) movq -0x60(%rbp), %rax movq %rax, -0xa0(%rbp) leaq -0x20(%rbp), %rdi movq %rdi, -0x90(%rbp) callq 0x7ecce0 movq -0x90(%rbp), %rsi movq -0x68(%rbp), %rdi movq 0x58(%rdi), %rax movzbl 0x1838(%rax), %edx movzbl -0x71(%rbp), %ecx andl $0x1, %ecx callq 0x883770 movq -0x68(%rbp), %rsi leaq -0x50(%rbp), %rdi movq %rdi, -0x98(%rbp) callq 0xa9b520 movq -0x98(%rbp), %rdi movq -0x90(%rbp), %rsi movq -0x68(%rbp), %rax movq 0x58(%rax), %rax movzbl 0x1838(%rax), %edx callq 0x98f8c0 jmp 0xa91900 movq -0xa0(%rbp), %rdi movq -0x68(%rbp), %rax movq 0x58(%rax), %rax movzbl 0x1838(%rax), %edx movzbl -0x71(%rbp), %ecx andl $0x1, %ecx leaq -0x50(%rbp), %rsi callq 0xa91730 movl %eax, -0xa4(%rbp) jmp 0xa9192e movl -0xa4(%rbp), %eax cmpl $0x0, %eax je 0xa91963 movb $0x1, -0x51(%rbp) movl $0x1, -0x88(%rbp) jmp 0xa91980 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x80(%rbp) movl %eax, -0x84(%rbp) leaq -0x50(%rbp), %rdi callq 0x9a7240 jmp 0xa919b5 movq -0x70(%rbp), %rsi leaq -0x50(%rbp), %rdi callq 0x98fc20 jmp 0xa91972 movb $0x0, -0x51(%rbp) movl $0x1, -0x88(%rbp) leaq -0x50(%rbp), %rdi callq 0x9a7240 movb -0x51(%rbp), %al movb %al, -0xa5(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xa919de movb -0xa5(%rbp), %al andb $0x1, %al addq $0xb0, %rsp popq %rbp retq movq -0x80(%rbp), %rax movq %rax, -0xb0(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xa919de movq -0xb0(%rbp), %rdi callq 0x7589b0 callq 0x758480 nopw %cs:(%rax,%rax)
_ZN13Explain_query17print_explain_strEP3THDP6Stringb: push rbp mov rbp, rsp sub rsp, 0B0h mov al, cl mov rcx, fs:28h mov [rbp+var_8], rcx mov [rbp+var_60], rdi mov [rbp+var_68], rsi mov [rbp+var_70], rdx and al, 1 mov [rbp+var_71], al mov rax, [rbp+var_60] mov [rbp+var_A0], rax lea rdi, [rbp+var_20] mov [rbp+var_90], rdi call _ZN4ListI4ItemEC2Ev; List<Item>::List(void) mov rsi, [rbp+var_90] mov rdi, [rbp+var_68] mov rax, [rdi+58h] movzx edx, byte ptr [rax+1838h] movzx ecx, [rbp+var_71] and ecx, 1 call _ZN3THD23make_explain_field_listER4ListI4ItemEhb; THD::make_explain_field_list(List<Item> &,uchar,bool) mov rsi, [rbp+var_68]; THD * lea rdi, [rbp+var_50]; this mov [rbp+var_98], rdi call _ZN25select_result_text_bufferC2EP3THD; select_result_text_buffer::select_result_text_buffer(THD *) mov rdi, [rbp+var_98] mov rsi, [rbp+var_90] mov rax, [rbp+var_68] mov rax, [rax+58h] movzx edx, byte ptr [rax+1838h] call _ZN25select_result_text_buffer24send_result_set_metadataER4ListI4ItemEj; select_result_text_buffer::send_result_set_metadata(List<Item> &,uint) jmp short $+2 loc_A91900: mov rdi, [rbp+var_A0]; this mov rax, [rbp+var_68] mov rax, [rax+58h] movzx edx, byte ptr [rax+1838h]; unsigned __int8 movzx ecx, [rbp+var_71] and ecx, 1; bool lea rsi, [rbp+var_50]; select_result_sink * call _ZN13Explain_query13print_explainEP18select_result_sinkhb; Explain_query::print_explain(select_result_sink *,uchar,bool) mov [rbp+var_A4], eax jmp short $+2 loc_A9192E: mov eax, [rbp+var_A4] cmp eax, 0 jz short loc_A91963 mov [rbp+var_51], 1 mov [rbp+var_88], 1 jmp short loc_A91980 mov rcx, rax mov eax, edx mov [rbp+var_80], rcx mov [rbp+var_84], eax lea rdi, [rbp+var_50]; this call _ZN25select_result_text_bufferD2Ev; select_result_text_buffer::~select_result_text_buffer() jmp short loc_A919B5 loc_A91963: mov rsi, [rbp+var_70]; String * lea rdi, [rbp+var_50]; this call _ZN25select_result_text_buffer7save_toEP6String; select_result_text_buffer::save_to(String *) jmp short $+2 loc_A91972: mov [rbp+var_51], 0 mov [rbp+var_88], 1 loc_A91980: lea rdi, [rbp+var_50]; this call _ZN25select_result_text_bufferD2Ev; select_result_text_buffer::~select_result_text_buffer() mov al, [rbp+var_51] mov [rbp+var_A5], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_A919DE mov al, [rbp+var_A5] and al, 1 add rsp, 0B0h pop rbp retn loc_A919B5: mov rax, [rbp+var_80] mov [rbp+var_B0], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_A919DE mov rdi, [rbp+var_B0] call __Unwind_Resume loc_A919DE: call ___stack_chk_fail
char Explain_query::print_explain_str(Explain_query *this, THD *a2, String *a3, char a4) { char v5; // [rsp+3Fh] [rbp-71h] char v7; // [rsp+5Fh] [rbp-51h] _BYTE v8[48]; // [rsp+60h] [rbp-50h] BYREF _BYTE v9[24]; // [rsp+90h] [rbp-20h] BYREF unsigned long long v10; // [rsp+A8h] [rbp-8h] v10 = __readfsqword(0x28u); v5 = a4 & 1; List<Item>::List((base_list *)v9); THD::make_explain_field_list((long long *)a2, (long long)v9, *(_BYTE *)(*((_QWORD *)a2 + 11) + 6200LL), v5 & 1); select_result_text_buffer::select_result_text_buffer((select_result_text_buffer *)v8, a2); select_result_text_buffer::send_result_set_metadata((long long)v8, (long long)v9); if ( (unsigned int)Explain_query::print_explain( this, (select_result_sink *)v8, *(_BYTE *)(*((_QWORD *)a2 + 11) + 6200LL), v5 & 1) ) { v7 = 1; } else { select_result_text_buffer::save_to((select_result_text_buffer *)v8, a3); v7 = 0; } select_result_text_buffer::~select_result_text_buffer((select_result_text_buffer *)v8); return v7 & 1; }
calc_sum_callback: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x8] ADD ECX,0x1 MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x8] TEST byte ptr [RAX + 0x27b8],0x1 JNZ 0x00a918c4 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc80 CALL 0x00981390 MOV RAX,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RAX + 0x1498] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x818] ADD RCX,RDX MOV qword ptr [RAX + 0x818],RCX LAB_00a918c4: MOV RDI,qword ptr [RBP + -0x8] CALL 0x008ec050 CMP EAX,0x0 JZ 0x00a918e8 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RAX + 0x808] ADD ECX,0x1 MOV dword ptr [RAX + 0x808],ECX LAB_00a918e8: XOR EAX,EAX ADD RSP,0x10 POP RBP RET
/* calc_sum_callback(THD*, calc_sum_callback_arg*) */ int8 calc_sum_callback(THD *param_1,calc_sum_callback_arg *param_2) { int iVar1; *(int *)(param_2 + 8) = *(int *)(param_2 + 8) + 1; if (((byte)param_1[0x27b8] & 1) == 0) { add_to_status(*(system_status_var **)param_2,(system_status_var *)(param_1 + 0xc80)); *(long *)(*(long *)param_2 + 0x818) = *(long *)(*(long *)param_2 + 0x818) + *(long *)(param_1 + 0x1498); } iVar1 = THD::get_command(param_1); if (iVar1 != 0) { *(int *)(*(long *)param_2 + 0x808) = *(int *)(*(long *)param_2 + 0x808) + 1; } return 0; }
45,020
google::protobuf::compiler::cpp::RepeatedStringFieldGenerator::GenerateInlineAccessorDefinitions(google::protobuf::io::Printer*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/string_field.cc
void RepeatedStringFieldGenerator::GenerateInlineAccessorDefinitions( io::Printer* printer) const { Formatter format(printer, variables_); format( "inline std::string* $classname$::add_$name$() {\n" " std::string* _s = _internal_add_$name$();\n" "$annotate_add_mutable$" " // @@protoc_insertion_point(field_add_mutable:$full_name$)\n" " return _s;\n" "}\n"); if (options_.safe_boundary_check) { format( "inline const std::string& $classname$::_internal_$name$(int index) " "const {\n" " return $field$.InternalCheckedGet(\n" " index, ::$proto_ns$::internal::GetEmptyStringAlreadyInited());\n" "}\n"); } else { format( "inline const std::string& $classname$::_internal_$name$(int index) " "const {\n" " return $field$.Get(index);\n" "}\n"); } format( "inline const std::string& $classname$::$name$(int index) const {\n" "$annotate_get$" " // @@protoc_insertion_point(field_get:$full_name$)\n" " return _internal_$name$(index);\n" "}\n" "inline std::string* $classname$::mutable_$name$(int index) {\n" "$annotate_mutable$" " // @@protoc_insertion_point(field_mutable:$full_name$)\n" " return $field$.Mutable(index);\n" "}\n" "inline void $classname$::set_$name$(int index, const std::string& " "value) " "{\n" " $field$.Mutable(index)->assign(value);\n" "$annotate_set$" " // @@protoc_insertion_point(field_set:$full_name$)\n" "}\n" "inline void $classname$::set_$name$(int index, std::string&& value) {\n" " $field$.Mutable(index)->assign(std::move(value));\n" "$annotate_set$" " // @@protoc_insertion_point(field_set:$full_name$)\n" "}\n" "inline void $classname$::set_$name$(int index, const char* value) {\n" " $null_check$" " $field$.Mutable(index)->assign(value);\n" "$annotate_set$" " // @@protoc_insertion_point(field_set_char:$full_name$)\n" "}\n"); if (!options_.opensource_runtime) { format( "inline void " "$classname$::set_$name$(int index, StringPiece value) {\n" " $field$.Mutable(index)->assign(value.data(), value.size());\n" "$annotate_set$" " // @@protoc_insertion_point(field_set_string_piece:$full_name$)\n" "}\n"); } format( "inline void " "$classname$::set_$name$" "(int index, const $pointer_type$* value, size_t size) {\n" " $field$.Mutable(index)->assign(\n" " reinterpret_cast<const char*>(value), size);\n" "$annotate_set$" " // @@protoc_insertion_point(field_set_pointer:$full_name$)\n" "}\n" "inline std::string* $classname$::_internal_add_$name$() {\n" " return $field$.Add();\n" "}\n" "inline void $classname$::add_$name$(const std::string& value) {\n" " $field$.Add()->assign(value);\n" "$annotate_add$" " // @@protoc_insertion_point(field_add:$full_name$)\n" "}\n" "inline void $classname$::add_$name$(std::string&& value) {\n" " $field$.Add(std::move(value));\n" "$annotate_add$" " // @@protoc_insertion_point(field_add:$full_name$)\n" "}\n" "inline void $classname$::add_$name$(const char* value) {\n" " $null_check$" " $field$.Add()->assign(value);\n" "$annotate_add$" " // @@protoc_insertion_point(field_add_char:$full_name$)\n" "}\n"); if (!options_.opensource_runtime) { format( "inline void $classname$::add_$name$(StringPiece value) {\n" " $field$.Add()->assign(value.data(), value.size());\n" "$annotate_add$" " // @@protoc_insertion_point(field_add_string_piece:$full_name$)\n" "}\n"); } format( "inline void " "$classname$::add_$name$(const $pointer_type$* value, size_t size) {\n" " $field$.Add()->assign(reinterpret_cast<const char*>(value), size);\n" "$annotate_add$" " // @@protoc_insertion_point(field_add_pointer:$full_name$)\n" "}\n" "inline const ::$proto_ns$::RepeatedPtrField<std::string>&\n" "$classname$::$name$() const {\n" "$annotate_list$" " // @@protoc_insertion_point(field_list:$full_name$)\n" " return $field$;\n" "}\n" "inline ::$proto_ns$::RepeatedPtrField<std::string>*\n" "$classname$::mutable_$name$() {\n" "$annotate_mutable_list$" " // @@protoc_insertion_point(field_mutable_list:$full_name$)\n" " return &$field$;\n" "}\n"); }
O3
cpp
google::protobuf::compiler::cpp::RepeatedStringFieldGenerator::GenerateInlineAccessorDefinitions(google::protobuf::io::Printer*) const: pushq %r14 pushq %rbx subq $0x38, %rsp movq %rdi, %r14 leaq 0x18(%rdi), %rax leaq 0x8(%rsp), %rbx movq %rsi, -0x8(%rbx) movq %rbx, %rdi movq %rax, %rsi callq 0x7e61e leaq 0x102064(%rip), %rsi # 0x1cf559 movq %rsp, %rdi callq 0x39938 movq 0x10(%r14), %rax leaq 0x102110(%rip), %rcx # 0x1cf618 leaq 0x1021c1(%rip), %rsi # 0x1cf6d0 cmpb $0x0, 0xcc(%rax) cmovneq %rcx, %rsi movq %rsp, %rdi callq 0x39938 leaq 0x102212(%rip), %rsi # 0x1cf73b movq %rsp, %rdi callq 0x39938 movq 0x10(%r14), %rax cmpb $0x0, 0xd2(%rax) jne 0xcd54d leaq 0x102587(%rip), %rsi # 0x1cfacc movq %rsp, %rdi callq 0x39938 leaq 0x10264d(%rip), %rsi # 0x1cfba1 movq %rsp, %rdi callq 0x39938 movq 0x10(%r14), %rax cmpb $0x0, 0xd2(%rax) jne 0xcd578 leaq 0x102978(%rip), %rsi # 0x1cfee8 movq %rsp, %rdi callq 0x39938 leaq 0x102a2a(%rip), %rsi # 0x1cffa9 movq %rsp, %rdi callq 0x39938 movq %rbx, %rdi callq 0x2e5e0 addq $0x38, %rsp popq %rbx popq %r14 retq movq %rax, %r14 movq %rbx, %rdi callq 0x2e5e0 movq %r14, %rdi callq 0x1f860
_ZNK6google8protobuf8compiler3cpp28RepeatedStringFieldGenerator33GenerateInlineAccessorDefinitionsEPNS0_2io7PrinterE: push r14 push rbx sub rsp, 38h mov r14, rdi lea rax, [rdi+18h] lea rbx, [rsp+48h+var_40] mov [rbx-8], rsi mov rdi, rbx mov rsi, rax call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>> const&) lea rsi, aInlineStdStrin_3; "inline std::string* $classname$::add_$n"... mov rdi, rsp call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ mov rax, [r14+10h] lea rcx, aInlineConstStd_1; "inline const std::string& $classname$::"... lea rsi, aInlineConstStd_2; "inline const std::string& $classname$::"... cmp byte ptr [rax+0CCh], 0 cmovnz rsi, rcx mov rdi, rsp call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ lea rsi, aInlineConstStd_3; "inline const std::string& $classname$::"... mov rdi, rsp call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ mov rax, [r14+10h] cmp byte ptr [rax+0D2h], 0 jnz short loc_CD54D lea rsi, aInlineVoidClas_5; "inline void $classname$::set_$name$(int"... mov rdi, rsp call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ loc_CD54D: lea rsi, aInlineVoidClas_6; "inline void $classname$::set_$name$(int"... mov rdi, rsp call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ mov rax, [r14+10h] cmp byte ptr [rax+0D2h], 0 jnz short loc_CD578 lea rsi, aInlineVoidClas_7; "inline void $classname$::add_$name$(Str"... mov rdi, rsp call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ loc_CD578: lea rsi, aInlineVoidClas_8; "inline void $classname$::add_$name$(con"... mov rdi, rsp call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ mov rdi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() add rsp, 38h pop rbx pop r14 retn mov r14, rax mov rdi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() mov rdi, r14 call __Unwind_Resume
long long google::protobuf::compiler::cpp::RepeatedStringFieldGenerator::GenerateInlineAccessorDefinitions( google::protobuf::compiler::cpp::RepeatedStringFieldGenerator *this, google::protobuf::io::Printer *a2) { const char *v2; // rsi long long result; // rax google::protobuf::io::Printer *v4; // [rsp+0h] [rbp-48h] BYREF _BYTE v5[64]; // [rsp+8h] [rbp-40h] BYREF v4 = a2; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree( (long long)v5, (long long)this + 24); google::protobuf::compiler::cpp::Formatter::operator()<>( &v4, "inline std::string* $classname$::add_$name$() {\n" " std::string* _s = _internal_add_$name$();\n" "$annotate_add_mutable$ // @@protoc_insertion_point(field_add_mutable:$full_name$)\n" " return _s;\n" "}\n"); v2 = "inline const std::string& $classname$::_internal_$name$(int index) const {\n return $field$.Get(index);\n}\n"; if ( *(_BYTE *)(*((_QWORD *)this + 2) + 204LL) ) v2 = "inline const std::string& $classname$::_internal_$name$(int index) const {\n" " return $field$.InternalCheckedGet(\n" " index, ::$proto_ns$::internal::GetEmptyStringAlreadyInited());\n" "}\n"; google::protobuf::compiler::cpp::Formatter::operator()<>(&v4, v2); google::protobuf::compiler::cpp::Formatter::operator()<>( &v4, "inline const std::string& $classname$::$name$(int index) const {\n" "$annotate_get$ // @@protoc_insertion_point(field_get:$full_name$)\n" " return _internal_$name$(index);\n" "}\n" "inline std::string* $classname$::mutable_$name$(int index) {\n" "$annotate_mutable$ // @@protoc_insertion_point(field_mutable:$full_name$)\n" " return $field$.Mutable(index);\n" "}\n" "inline void $classname$::set_$name$(int index, const std::string& value) {\n" " $field$.Mutable(index)->assign(value);\n" "$annotate_set$ // @@protoc_insertion_point(field_set:$full_name$)\n" "}\n" "inline void $classname$::set_$name$(int index, std::string&& value) {\n" " $field$.Mutable(index)->assign(std::move(value));\n" "$annotate_set$ // @@protoc_insertion_point(field_set:$full_name$)\n" "}\n" "inline void $classname$::set_$name$(int index, const char* value) {\n" " $null_check$ $field$.Mutable(index)->assign(value);\n" "$annotate_set$ // @@protoc_insertion_point(field_set_char:$full_name$)\n" "}\n"); if ( !*(_BYTE *)(*((_QWORD *)this + 2) + 210LL) ) google::protobuf::compiler::cpp::Formatter::operator()<>( &v4, "inline void $classname$::set_$name$(int index, StringPiece value) {\n" " $field$.Mutable(index)->assign(value.data(), value.size());\n" "$annotate_set$ // @@protoc_insertion_point(field_set_string_piece:$full_name$)\n" "}\n"); google::protobuf::compiler::cpp::Formatter::operator()<>( &v4, "inline void $classname$::set_$name$(int index, const $pointer_type$* value, size_t size) {\n" " $field$.Mutable(index)->assign(\n" " reinterpret_cast<const char*>(value), size);\n" "$annotate_set$ // @@protoc_insertion_point(field_set_pointer:$full_name$)\n" "}\n" "inline std::string* $classname$::_internal_add_$name$() {\n" " return $field$.Add();\n" "}\n" "inline void $classname$::add_$name$(const std::string& value) {\n" " $field$.Add()->assign(value);\n" "$annotate_add$ // @@protoc_insertion_point(field_add:$full_name$)\n" "}\n" "inline void $classname$::add_$name$(std::string&& value) {\n" " $field$.Add(std::move(value));\n" "$annotate_add$ // @@protoc_insertion_point(field_add:$full_name$)\n" "}\n" "inline void $classname$::add_$name$(const char* value) {\n" " $null_check$ $field$.Add()->assign(value);\n" "$annotate_add$ // @@protoc_insertion_point(field_add_char:$full_name$)\n" "}\n"); if ( !*(_BYTE *)(*((_QWORD *)this + 2) + 210LL) ) google::protobuf::compiler::cpp::Formatter::operator()<>( &v4, "inline void $classname$::add_$name$(StringPiece value) {\n" " $field$.Add()->assign(value.data(), value.size());\n" "$annotate_add$ // @@protoc_insertion_point(field_add_string_piece:$full_name$)\n" "}\n"); result = google::protobuf::compiler::cpp::Formatter::operator()<>( &v4, "inline void $classname$::add_$name$(const $pointer_type$* value, size_t size) {\n" " $field$.Add()->assign(reinterpret_cast<const char*>(value), size);\n" "$annotate_add$ // @@protoc_insertion_point(field_add_pointer:$full_name$)\n" "}\n" "inline const ::$proto_ns$::RepeatedPtrField<std::string>&\n" "$classname$::$name$() const {\n" "$annotate_list$ // @@protoc_insertion_point(field_list:$full_name$)\n" " return $field$;\n" "}\n" "inline ::$proto_ns$::RepeatedPtrField<std::string>*\n" "$classname$::mutable_$name$() {\n" "$annotate_mutable_list$ // @@protoc_insertion_point(field_mutable_list:$full_name$)\n" " return &$field$;\n" "}\n"); std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree((long long)v5); return result; }
GenerateInlineAccessorDefinitions: PUSH R14 PUSH RBX SUB RSP,0x38 MOV R14,RDI LEA RAX,[RDI + 0x18] LEA RBX,[RSP + 0x8] MOV qword ptr [RBX + -0x8],RSI MOV RDI,RBX MOV RSI,RAX CALL 0x0017e61e LAB_001cd4ee: LEA RSI,[0x2cf559] MOV RDI,RSP CALL 0x00139938 MOV RAX,qword ptr [R14 + 0x10] LEA RCX,[0x2cf618] LEA RSI,[0x2cf6d0] CMP byte ptr [RAX + 0xcc],0x0 CMOVNZ RSI,RCX MOV RDI,RSP CALL 0x00139938 LEA RSI,[0x2cf73b] MOV RDI,RSP CALL 0x00139938 MOV RAX,qword ptr [R14 + 0x10] CMP byte ptr [RAX + 0xd2],0x0 JNZ 0x001cd54d LEA RSI,[0x2cfacc] MOV RDI,RSP CALL 0x00139938 LAB_001cd54d: LEA RSI,[0x2cfba1] MOV RDI,RSP CALL 0x00139938 MOV RAX,qword ptr [R14 + 0x10] CMP byte ptr [RAX + 0xd2],0x0 JNZ 0x001cd578 LEA RSI,[0x2cfee8] MOV RDI,RSP CALL 0x00139938 LAB_001cd578: LEA RSI,[0x2cffa9] MOV RDI,RSP CALL 0x00139938 LAB_001cd587: MOV RDI,RBX CALL 0x0012e5e0 ADD RSP,0x38 POP RBX POP R14 RET
/* google::protobuf::compiler::cpp::RepeatedStringFieldGenerator::GenerateInlineAccessorDefinitions(google::protobuf::io::Printer*) const */ void __thiscall google::protobuf::compiler::cpp::RepeatedStringFieldGenerator::GenerateInlineAccessorDefinitions (RepeatedStringFieldGenerator *this,Printer *param_1) { char *pcVar1; Printer *local_48; _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> local_40 [48]; local_48 = param_1; std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::_Rb_tree(local_40,(_Rb_tree *)(this + 0x18)); /* try { // try from 001cd4ee to 001cd586 has its CatchHandler @ 001cd597 */ Formatter::operator()<> ((Formatter *)&local_48, "inline std::string* $classname$::add_$name$() {\n std::string* _s = _internal_add_$name$();\n$annotate_add_mutable$ // @@protoc_insertion_point(field_add_mutable:$full_name$)\n return _s;\n}\n" ); pcVar1 = "inline const std::string& $classname$::_internal_$name$(int index) const {\n return $field$.Get(index);\n}\n" ; if (*(char *)(*(long *)(this + 0x10) + 0xcc) != '\0') { pcVar1 = "inline const std::string& $classname$::_internal_$name$(int index) const {\n return $field$.InternalCheckedGet(\n index, ::$proto_ns$::internal::GetEmptyStringAlreadyInited());\n}\n" ; } Formatter::operator()<>((Formatter *)&local_48,pcVar1); Formatter::operator()<> ((Formatter *)&local_48, "inline const std::string& $classname$::$name$(int index) const {\n$annotate_get$ // @@protoc_insertion_point(field_get:$full_name$)\n return _internal_$name$(index);\n}\ninline std::string* $classname$::mutable_$name$(int index) {\n$annotate_mutable$ // @@protoc_insertion_point(field_mutable:$full_name$)\n return $field$.Mutable(index);\n}\ninline void $classname$::set_$name$(int index, const std::string& value) {\n $field$.Mutable(index)->assign(value);\n$annotate_set$ // @@protoc_insertion_point(field_set:$full_name$)\n}\ninline void $classname$::set_$name$(int index, std::string&& value) {\n $field$.Mutable(index)->assign(std::move(value));\n$annotate_set$ // @@protoc_insertion_point(field_set:$full_name$)\n}\ninline void $classname$::set_$name$(int index, const char* value) {\n $null_check$ $field$.Mutable(index)->assign(value);\n$annotate_set$ // @@protoc_insertion_point(field_set_char:$full_name$)\n}\n" ); if (*(char *)(*(long *)(this + 0x10) + 0xd2) == '\0') { Formatter::operator()<> ((Formatter *)&local_48, "inline void $classname$::set_$name$(int index, StringPiece value) {\n $field$.Mutable(index)->assign(value.data(), value.size());\n$annotate_set$ // @@protoc_insertion_point(field_set_string_piece:$full_name$)\n}\n" ); } Formatter::operator()<> ((Formatter *)&local_48, "inline void $classname$::set_$name$(int index, const $pointer_type$* value, size_t size) {\n $field$.Mutable(index)->assign(\n reinterpret_cast<const char*>(value), size);\n$annotate_set$ // @@protoc_insertion_point(field_set_pointer:$full_name$)\n}\ninline std::string* $classname$::_internal_add_$name$() {\n return $field$.Add();\n}\ninline void $classname$::add_$name$(const std::string& value) {\n $field$.Add()->assign(value);\n$annotate_add$ // @@protoc_insertion_point(field_add:$full_name$)\n}\ninline void $classname$::add_$name$(std::string&& value) {\n $field$.Add(std::move(value));\n$annotate_add$ // @@protoc_insertion_point(field_add:$full_name$)\n}\ninline void $classname$::add_$name$(const char* value) {\n $null_check$ $field$.Add()->assign(value);\n$annotate_add$ // @@protoc_insertion_point(field_add_char:$full_name$)\n}\n" ); if (*(char *)(*(long *)(this + 0x10) + 0xd2) == '\0') { Formatter::operator()<> ((Formatter *)&local_48, "inline void $classname$::add_$name$(StringPiece value) {\n $field$.Add()->assign(value.data(), value.size());\n$annotate_add$ // @@protoc_insertion_point(field_add_string_piece:$full_name$)\n}\n" ); } Formatter::operator()<> ((Formatter *)&local_48, "inline void $classname$::add_$name$(const $pointer_type$* value, size_t size) {\n $field$.Add()->assign(reinterpret_cast<const char*>(value), size);\n$annotate_add$ // @@protoc_insertion_point(field_add_pointer:$full_name$)\n}\ninline const ::$proto_ns$::RepeatedPtrField<std::string>&\n$classname$::$name$() const {\n$annotate_list$ // @@protoc_insertion_point(field_list:$full_name$)\n return $field$;\n}\ninline ::$proto_ns$::RepeatedPtrField<std::string>*\n$classname$::mutable_$name$() {\n$annotate_mutable_list$ // @@protoc_insertion_point(field_mutable_list:$full_name$)\n return &$field$;\n}\n" ); std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::~_Rb_tree(local_40); return; }
45,021
nglog::GetStackTrace[abi:cxx11]()
ng-log[P]ng-log/src/utilities.cc
std::string GetStackTrace() { std::string stacktrace; DumpStackTrace(1, DebugWriteToString, &stacktrace); return stacktrace; }
O3
cpp
nglog::GetStackTrace[abi:cxx11](): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %r15 movq %r15, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) leaq 0x13f(%rip), %rdi # 0x22f1e movq %rbx, %rsi callq 0x22e0e movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq (%rbx), %rdi cmpq %r15, %rdi je 0x22e06 movq (%r15), %rsi incq %rsi callq 0x8edc movq %r14, %rdi callq 0x7930
_ZN5nglog13GetStackTraceB5cxx11Ev: push r15 push r14 push rbx mov rbx, rdi lea r15, [rdi+10h] mov [rdi], r15 mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 lea rdi, _ZN5nglogL18DebugWriteToStringEPKcPv; this mov rsi, rbx; int call _ZN5nglogL14DumpStackTraceEiPFvPKcPvES2_; nglog::DumpStackTrace(int,void (*)(char const*,void *),void *) mov rax, rbx pop rbx pop r14 pop r15 retn mov r14, rax mov rdi, [rbx]; void * cmp rdi, r15 jz short loc_22E06 mov rsi, [r15] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_22E06: mov rdi, r14 call __Unwind_Resume
long long nglog::GetStackTrace[abi:cxx11](long long a1, long long a2, void (*a3)(const char *, void *), void *a4) { *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; nglog::DumpStackTrace((nglog *)nglog::DebugWriteToString, a1, a3, a4); return a1; }
GetStackTrace[abi:cxx11]: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA R15,[RDI + 0x10] MOV qword ptr [RDI],R15 MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 LAB_00122dd8: LEA RDI,[0x122f1e] MOV RSI,RBX CALL 0x00122e0e LAB_00122de7: MOV RAX,RBX POP RBX POP R14 POP R15 RET
/* nglog::GetStackTrace[abi:cxx11]() */ void nglog::GetStackTrace_abi_cxx11_(void) { void *in_RDX; _func_void_char_ptr_void_ptr *in_RDI; *(_func_void_char_ptr_void_ptr **)in_RDI = in_RDI + 0x10; *(int8 *)(in_RDI + 8) = 0; in_RDI[0x10] = (code)0x0; /* try { // try from 00122dd8 to 00122de6 has its CatchHandler @ 00122df0 */ DumpStackTrace(0x122f1e,in_RDI,in_RDX); return; }
45,022
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&)
monkey531[P]llama/common/minja.hpp
TemplateToken(Type type, const Location & location, SpaceHandling pre, SpaceHandling post) : type(type), location(location), pre_space(pre), post_space(post) {}
O3
cpp
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&): leaq 0x93013(%rip), %rax # 0x12c2d8 addq $0x10, %rax movq %rax, (%rdi) movl $0xf, 0x8(%rdi) movq (%rsi), %rax movq %rax, 0x10(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x18(%rdi) testq %rax, %rax je 0x992fd movq 0x94c92(%rip), %r9 # 0x12df80 cmpb $0x0, (%r9) je 0x992f9 incl 0x8(%rax) jmp 0x992fd lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x20(%rdi) movl %edx, 0x28(%rdi) movl %ecx, 0x2c(%rdi) leaq 0x93b26(%rip), %rax # 0x12ce38 addq $0x10, %rax movq %rax, (%rdi) xorl %eax, %eax movq %rax, 0x38(%rdi) movups (%r8), %xmm0 movq %rax, 0x8(%r8) movups %xmm0, 0x30(%rdi) movq %rax, (%r8) retq nop
_ZN5minja19FilterTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_10ExpressionEE: lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken add rax, 10h mov [rdi], rax mov dword ptr [rdi+8], 0Fh mov rax, [rsi] mov [rdi+10h], rax mov rax, [rsi+8] mov [rdi+18h], rax test rax, rax jz short loc_992FD mov r9, cs:__libc_single_threaded_ptr cmp byte ptr [r9], 0 jz short loc_992F9 inc dword ptr [rax+8] jmp short loc_992FD loc_992F9: lock inc dword ptr [rax+8] loc_992FD: mov rax, [rsi+10h] mov [rdi+20h], rax mov [rdi+28h], edx mov [rdi+2Ch], ecx lea rax, _ZTVN5minja19FilterTemplateTokenE; `vtable for'minja::FilterTemplateToken add rax, 10h mov [rdi], rax xor eax, eax mov [rdi+38h], rax movups xmm0, xmmword ptr [r8] mov [r8+8], rax movups xmmword ptr [rdi+30h], xmm0 mov [r8], rax retn
long long minja::FilterTemplateToken::FilterTemplateToken( long long a1, _QWORD *a2, int a3, int a4, __int128 *a5) { long long v5; // rax long long result; // rax __int128 v7; // xmm0 *(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2; *(_DWORD *)(a1 + 8) = 15; *(_QWORD *)(a1 + 16) = *a2; v5 = a2[1]; *(_QWORD *)(a1 + 24) = v5; if ( v5 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v5 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v5 + 8)); } *(_QWORD *)(a1 + 32) = a2[2]; *(_DWORD *)(a1 + 40) = a3; *(_DWORD *)(a1 + 44) = a4; *(_QWORD *)a1 = &`vtable for'minja::FilterTemplateToken + 2; result = 0LL; *(_QWORD *)(a1 + 56) = 0LL; v7 = *a5; *((_QWORD *)a5 + 1) = 0LL; *(_OWORD *)(a1 + 48) = v7; *(_QWORD *)a5 = 0LL; return result; }
FilterTemplateToken: LEA RAX,[0x22c2d8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV dword ptr [RDI + 0x8],0xf MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x10],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x18],RAX TEST RAX,RAX JZ 0x001992fd MOV R9,qword ptr [0x0022df80] CMP byte ptr [R9],0x0 JZ 0x001992f9 INC dword ptr [RAX + 0x8] JMP 0x001992fd LAB_001992f9: INC.LOCK dword ptr [RAX + 0x8] LAB_001992fd: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RDI + 0x20],RAX MOV dword ptr [RDI + 0x28],EDX MOV dword ptr [RDI + 0x2c],ECX LEA RAX,[0x22ce38] ADD RAX,0x10 MOV qword ptr [RDI],RAX XOR EAX,EAX MOV qword ptr [RDI + 0x38],RAX MOVUPS XMM0,xmmword ptr [R8] MOV qword ptr [R8 + 0x8],RAX MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV qword ptr [R8],RAX RET
/* minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&) */ void __thiscall minja::FilterTemplateToken::FilterTemplateToken (FilterTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4, int8 *param_5) { long lVar1; int8 uVar2; *(int ***)this = &PTR__TemplateToken_0022c2e8; *(int4 *)(this + 8) = 0xf; *(int8 *)(this + 0x10) = *param_1; lVar1 = param_1[1]; *(long *)(this + 0x18) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_0022df80 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x20) = param_1[2]; *(int4 *)(this + 0x28) = param_3; *(int4 *)(this + 0x2c) = param_4; *(int ***)this = &PTR__FilterTemplateToken_0022ce48; *(int8 *)(this + 0x38) = 0; uVar2 = param_5[1]; param_5[1] = 0; *(int8 *)(this + 0x30) = *param_5; *(int8 *)(this + 0x38) = uVar2; *param_5 = 0; return; }
45,023
test_timers()
eloqsql/storage/perfschema/unittest/pfs_timer-t.cc
void test_timers() { ulonglong t1_a; ulonglong t2_a; ulonglong t3_a; ulonglong t4_a; ulonglong t5_a; ulonglong t1_b; ulonglong t2_b; ulonglong t3_b; ulonglong t4_b; ulonglong t5_b; my_timer_init(&sys_timer_info); init_timers(); t1_a= get_timer_pico_value(TIMER_NAME_CYCLE); /* Wait 5 seconds */ my_sleep(5000000); t1_b= get_timer_pico_value(TIMER_NAME_CYCLE); t2_a= get_timer_pico_value(TIMER_NAME_NANOSEC); my_sleep(5000000); t2_b= get_timer_pico_value(TIMER_NAME_NANOSEC); t3_a= get_timer_pico_value(TIMER_NAME_MICROSEC); my_sleep(5000000); t3_b= get_timer_pico_value(TIMER_NAME_MICROSEC); t4_a= get_timer_pico_value(TIMER_NAME_MILLISEC); my_sleep(5000000); t4_b= get_timer_pico_value(TIMER_NAME_MILLISEC); t5_a= get_timer_pico_value(TIMER_NAME_TICK); my_sleep(5000000); t5_b= get_timer_pico_value(TIMER_NAME_TICK); /* Print the timer values, for manual inspection by a human. Tests involving low level timers can not be automated. */ diag("cycle a: %13llu", t1_a); diag("nano a: %13llu", t2_a); diag("micro a: %13llu", t3_a); diag("milli a: %13llu", t4_a); diag("tick a: %13llu", t5_a); diag("cycle b: %13llu", t1_b); diag("nano b: %13llu", t2_b); diag("micro b: %13llu", t3_b); diag("milli b: %13llu", t4_b); diag("tick b: %13llu", t5_b); diag("cycle b-a: %13llu", t1_b-t1_a); diag("nano b-a: %13llu", t2_b-t2_a); diag("micro b-a: %13llu", t3_b-t3_a); diag("milli b-a: %13llu", t4_b-t4_a); diag("tick b-a: %13llu", t5_b-t5_a); if ((t1_a == 0) && (t1_b == 0)) skip(1, "cycle timer not implemented"); else ok(t1_b > t1_a, "cycle timer ascending"); if ((t2_a == 0) && (t2_b == 0)) skip(1, "nano timer not implemented"); else ok(t2_b > t2_a, "nano timer ascending"); if ((t3_a == 0) && (t3_b == 0)) skip(1, "micro timer not implemented"); else ok(t3_b > t3_a, "micro timer ascending"); if ((t4_a == 0) && (t4_b == 0)) skip(1, "milli timer not implemented"); else ok(t4_b > t4_a, "milli timer ascending"); if ((t5_a == 0) && (t5_b == 0)) skip(1, "tick timer not implemented"); else ok(t5_b > t5_a, "tick timer ascending"); }
O0
cpp
test_timers(): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp leaq 0x36b6c1(%rip), %rdi # 0x38ff60 callq 0x28350 callq 0x25930 movl $0x1, %edi callq 0x25f90 movq %rax, -0x8(%rbp) movl $0x4c4b40, %edi # imm = 0x4C4B40 callq 0x26d30 movl $0x1, %edi callq 0x25f90 movq %rax, -0x30(%rbp) movl $0x2, %edi callq 0x25f90 movq %rax, -0x10(%rbp) movl $0x4c4b40, %edi # imm = 0x4C4B40 callq 0x26d30 movl $0x2, %edi callq 0x25f90 movq %rax, -0x38(%rbp) movl $0x3, %edi callq 0x25f90 movq %rax, -0x18(%rbp) movl $0x4c4b40, %edi # imm = 0x4C4B40 callq 0x26d30 movl $0x3, %edi callq 0x25f90 movq %rax, -0x40(%rbp) movl $0x4, %edi callq 0x25f90 movq %rax, -0x20(%rbp) movl $0x4c4b40, %edi # imm = 0x4C4B40 callq 0x26d30 movl $0x4, %edi callq 0x25f90 movq %rax, -0x48(%rbp) movl $0x5, %edi callq 0x25f90 movq %rax, -0x28(%rbp) movl $0x4c4b40, %edi # imm = 0x4C4B40 callq 0x26d30 movl $0x5, %edi callq 0x25f90 movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rsi leaq 0x55692(%rip), %rdi # 0x7a004 movb $0x0, %al callq 0x24d30 movq -0x10(%rbp), %rsi leaq 0x55690(%rip), %rdi # 0x7a014 movb $0x0, %al callq 0x24d30 movq -0x18(%rbp), %rsi leaq 0x5568d(%rip), %rdi # 0x7a023 movb $0x0, %al callq 0x24d30 movq -0x20(%rbp), %rsi leaq 0x5568b(%rip), %rdi # 0x7a033 movb $0x0, %al callq 0x24d30 movq -0x28(%rbp), %rsi leaq 0x55689(%rip), %rdi # 0x7a043 movb $0x0, %al callq 0x24d30 movq -0x30(%rbp), %rsi leaq 0x55686(%rip), %rdi # 0x7a052 movb $0x0, %al callq 0x24d30 movq -0x38(%rbp), %rsi leaq 0x55684(%rip), %rdi # 0x7a062 movb $0x0, %al callq 0x24d30 movq -0x40(%rbp), %rsi leaq 0x55681(%rip), %rdi # 0x7a071 movb $0x0, %al callq 0x24d30 movq -0x48(%rbp), %rsi leaq 0x5567f(%rip), %rdi # 0x7a081 movb $0x0, %al callq 0x24d30 movq -0x50(%rbp), %rsi leaq 0x5567d(%rip), %rdi # 0x7a091 movb $0x0, %al callq 0x24d30 movq -0x30(%rbp), %rsi subq -0x8(%rbp), %rsi leaq 0x55676(%rip), %rdi # 0x7a0a0 movb $0x0, %al callq 0x24d30 movq -0x38(%rbp), %rsi subq -0x10(%rbp), %rsi leaq 0x55672(%rip), %rdi # 0x7a0b2 movb $0x0, %al callq 0x24d30 movq -0x40(%rbp), %rsi subq -0x18(%rbp), %rsi leaq 0x5566d(%rip), %rdi # 0x7a0c3 movb $0x0, %al callq 0x24d30 movq -0x48(%rbp), %rsi subq -0x20(%rbp), %rsi leaq 0x55669(%rip), %rdi # 0x7a0d5 movb $0x0, %al callq 0x24d30 movq -0x50(%rbp), %rsi subq -0x28(%rbp), %rsi leaq 0x55665(%rip), %rdi # 0x7a0e7 movb $0x0, %al callq 0x24d30 cmpq $0x0, -0x8(%rbp) jne 0x24aac cmpq $0x0, -0x30(%rbp) jne 0x24aac movl $0x1, %edi leaq 0x55655(%rip), %rsi # 0x7a0f8 movb $0x0, %al callq 0x25290 jmp 0x24aca movq -0x30(%rbp), %rax cmpq -0x8(%rbp), %rax seta %al andb $0x1, %al movzbl %al, %edi leaq 0x55651(%rip), %rsi # 0x7a114 movb $0x0, %al callq 0x24ff0 cmpq $0x0, -0x10(%rbp) jne 0x24aed cmpq $0x0, -0x38(%rbp) jne 0x24aed movl $0x1, %edi leaq 0x55646(%rip), %rsi # 0x7a12a movb $0x0, %al callq 0x25290 jmp 0x24b0b movq -0x38(%rbp), %rax cmpq -0x10(%rbp), %rax seta %al andb $0x1, %al movzbl %al, %edi leaq 0x55641(%rip), %rsi # 0x7a145 movb $0x0, %al callq 0x24ff0 cmpq $0x0, -0x18(%rbp) jne 0x24b2e cmpq $0x0, -0x40(%rbp) jne 0x24b2e movl $0x1, %edi leaq 0x55635(%rip), %rsi # 0x7a15a movb $0x0, %al callq 0x25290 jmp 0x24b4c movq -0x40(%rbp), %rax cmpq -0x18(%rbp), %rax seta %al andb $0x1, %al movzbl %al, %edi leaq 0x55631(%rip), %rsi # 0x7a176 movb $0x0, %al callq 0x24ff0 cmpq $0x0, -0x20(%rbp) jne 0x24b6f cmpq $0x0, -0x48(%rbp) jne 0x24b6f movl $0x1, %edi leaq 0x55626(%rip), %rsi # 0x7a18c movb $0x0, %al callq 0x25290 jmp 0x24b8d movq -0x48(%rbp), %rax cmpq -0x20(%rbp), %rax seta %al andb $0x1, %al movzbl %al, %edi leaq 0x55622(%rip), %rsi # 0x7a1a8 movb $0x0, %al callq 0x24ff0 cmpq $0x0, -0x28(%rbp) jne 0x24bb0 cmpq $0x0, -0x50(%rbp) jne 0x24bb0 movl $0x1, %edi leaq 0x55617(%rip), %rsi # 0x7a1be movb $0x0, %al callq 0x25290 jmp 0x24bce movq -0x50(%rbp), %rax cmpq -0x28(%rbp), %rax seta %al andb $0x1, %al movzbl %al, %edi leaq 0x55612(%rip), %rsi # 0x7a1d9 movb $0x0, %al callq 0x24ff0 addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_Z11test_timersv: push rbp mov rbp, rsp sub rsp, 50h lea rdi, sys_timer_info call my_timer_init call _Z11init_timersv; init_timers(void) mov edi, 1 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_8], rax mov edi, 4C4B40h call my_sleep mov edi, 1 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_30], rax mov edi, 2 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_10], rax mov edi, 4C4B40h call my_sleep mov edi, 2 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_38], rax mov edi, 3 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_18], rax mov edi, 4C4B40h call my_sleep mov edi, 3 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_40], rax mov edi, 4 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_20], rax mov edi, 4C4B40h call my_sleep mov edi, 4 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_48], rax mov edi, 5 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_28], rax mov edi, 4C4B40h call my_sleep mov edi, 5 call _Z20get_timer_pico_value15enum_timer_name; get_timer_pico_value(enum_timer_name) mov [rbp+var_50], rax mov rsi, [rbp+var_8] lea rdi, aCycleA13llu; "cycle a: %13llu" mov al, 0 call diag mov rsi, [rbp+var_10] lea rdi, aNanoA13llu; "nano a: %13llu" mov al, 0 call diag mov rsi, [rbp+var_18] lea rdi, aMicroA13llu; "micro a: %13llu" mov al, 0 call diag mov rsi, [rbp+var_20] lea rdi, aMilliA13llu; "milli a: %13llu" mov al, 0 call diag mov rsi, [rbp+var_28] lea rdi, aTickA13llu; "tick a: %13llu" mov al, 0 call diag mov rsi, [rbp+var_30] lea rdi, aCycleB13llu; "cycle b: %13llu" mov al, 0 call diag mov rsi, [rbp+var_38] lea rdi, aNanoB13llu; "nano b: %13llu" mov al, 0 call diag mov rsi, [rbp+var_40] lea rdi, aMicroB13llu; "micro b: %13llu" mov al, 0 call diag mov rsi, [rbp+var_48] lea rdi, aMilliB13llu; "milli b: %13llu" mov al, 0 call diag mov rsi, [rbp+var_50] lea rdi, aTickB13llu; "tick b: %13llu" mov al, 0 call diag mov rsi, [rbp+var_30] sub rsi, [rbp+var_8] lea rdi, aCycleBA13llu; "cycle b-a: %13llu" mov al, 0 call diag mov rsi, [rbp+var_38] sub rsi, [rbp+var_10] lea rdi, aNanoBA13llu; "nano b-a: %13llu" mov al, 0 call diag mov rsi, [rbp+var_40] sub rsi, [rbp+var_18] lea rdi, aMicroBA13llu; "micro b-a: %13llu" mov al, 0 call diag mov rsi, [rbp+var_48] sub rsi, [rbp+var_20] lea rdi, aMilliBA13llu; "milli b-a: %13llu" mov al, 0 call diag mov rsi, [rbp+var_50] sub rsi, [rbp+var_28] lea rdi, aTickBA13llu; "tick b-a: %13llu" mov al, 0 call diag cmp [rbp+var_8], 0 jnz short loc_24AAC cmp [rbp+var_30], 0 jnz short loc_24AAC mov edi, 1 lea rsi, aCycleTimerNotI; "cycle timer not implemented" mov al, 0 call skip jmp short loc_24ACA loc_24AAC: mov rax, [rbp+var_30] cmp rax, [rbp+var_8] setnbe al and al, 1 movzx edi, al lea rsi, aCycleTimerAsce; "cycle timer ascending" mov al, 0 call ok loc_24ACA: cmp [rbp+var_10], 0 jnz short loc_24AED cmp [rbp+var_38], 0 jnz short loc_24AED mov edi, 1 lea rsi, aNanoTimerNotIm; "nano timer not implemented" mov al, 0 call skip jmp short loc_24B0B loc_24AED: mov rax, [rbp+var_38] cmp rax, [rbp+var_10] setnbe al and al, 1 movzx edi, al lea rsi, aNanoTimerAscen; "nano timer ascending" mov al, 0 call ok loc_24B0B: cmp [rbp+var_18], 0 jnz short loc_24B2E cmp [rbp+var_40], 0 jnz short loc_24B2E mov edi, 1 lea rsi, aMicroTimerNotI; "micro timer not implemented" mov al, 0 call skip jmp short loc_24B4C loc_24B2E: mov rax, [rbp+var_40] cmp rax, [rbp+var_18] setnbe al and al, 1 movzx edi, al lea rsi, aMicroTimerAsce; "micro timer ascending" mov al, 0 call ok loc_24B4C: cmp [rbp+var_20], 0 jnz short loc_24B6F cmp [rbp+var_48], 0 jnz short loc_24B6F mov edi, 1 lea rsi, aMilliTimerNotI; "milli timer not implemented" mov al, 0 call skip jmp short loc_24B8D loc_24B6F: mov rax, [rbp+var_48] cmp rax, [rbp+var_20] setnbe al and al, 1 movzx edi, al lea rsi, aMilliTimerAsce; "milli timer ascending" mov al, 0 call ok loc_24B8D: cmp [rbp+var_28], 0 jnz short loc_24BB0 cmp [rbp+var_50], 0 jnz short loc_24BB0 mov edi, 1 lea rsi, aTickTimerNotIm; "tick timer not implemented" mov al, 0 call skip jmp short loc_24BCE loc_24BB0: mov rax, [rbp+var_50] cmp rax, [rbp+var_28] setnbe al and al, 1 movzx edi, al lea rsi, aTickTimerAscen; "tick timer ascending" mov al, 0 call ok loc_24BCE: add rsp, 50h pop rbp retn
long long test_timers(void) { char v0; // al int v1; // edx int v2; // ecx int v3; // r8d int v4; // r9d int v5; // edx int v6; // ecx int v7; // r8d int v8; // r9d int v9; // edx int v10; // ecx int v11; // r8d int v12; // r9d int v13; // edx int v14; // ecx int v15; // r8d int v16; // r9d int v17; // edx int v18; // ecx int v19; // r8d int v20; // r9d int v21; // edx int v22; // ecx int v23; // r8d int v24; // r9d int v25; // edx int v26; // ecx int v27; // r8d int v28; // r9d int v29; // edx int v30; // ecx int v31; // r8d int v32; // r9d int v33; // edx int v34; // ecx int v35; // r8d int v36; // r9d int v37; // edx int v38; // ecx int v39; // r8d int v40; // r9d int v41; // edx int v42; // ecx int v43; // r8d int v44; // r9d int v45; // edx int v46; // ecx int v47; // r8d int v48; // r9d int v49; // edx int v50; // ecx int v51; // r8d int v52; // r9d int v53; // edx int v54; // ecx int v55; // r8d int v56; // r9d int v57; // edx int v58; // ecx int v59; // r8d int v60; // r9d int v61; // edx int v62; // ecx int v63; // r8d int v64; // r9d int v65; // edx int v66; // ecx int v67; // r8d int v68; // r9d int v69; // edx int v70; // ecx int v71; // r8d int v72; // r9d int v73; // edx int v74; // ecx int v75; // r8d int v76; // r9d int v77; // edx int v78; // ecx int v79; // r8d int v80; // r9d char v82; // [rsp+0h] [rbp-50h] char v83; // [rsp+0h] [rbp-50h] char v84; // [rsp+0h] [rbp-50h] char v85; // [rsp+0h] [rbp-50h] char v86; // [rsp+0h] [rbp-50h] char v87; // [rsp+0h] [rbp-50h] char v88; // [rsp+0h] [rbp-50h] char v89; // [rsp+0h] [rbp-50h] int v90; // [rsp+0h] [rbp-50h] char v91; // [rsp+0h] [rbp-50h] char v92; // [rsp+0h] [rbp-50h] char v93; // [rsp+0h] [rbp-50h] char v94; // [rsp+0h] [rbp-50h] int v95; // [rsp+0h] [rbp-50h] char v96; // [rsp+0h] [rbp-50h] char v97; // [rsp+0h] [rbp-50h] char v98; // [rsp+0h] [rbp-50h] char v99; // [rsp+0h] [rbp-50h] unsigned long long v100; // [rsp+0h] [rbp-50h] unsigned long long v101; // [rsp+8h] [rbp-48h] unsigned long long v102; // [rsp+10h] [rbp-40h] unsigned long long v103; // [rsp+18h] [rbp-38h] unsigned long long v104; // [rsp+20h] [rbp-30h] unsigned long long v105; // [rsp+28h] [rbp-28h] unsigned long long v106; // [rsp+30h] [rbp-20h] unsigned long long v107; // [rsp+38h] [rbp-18h] unsigned long long v108; // [rsp+40h] [rbp-10h] unsigned long long timer_pico_value; // [rsp+48h] [rbp-8h] my_timer_init(&sys_timer_info); init_timers(); timer_pico_value = get_timer_pico_value(1LL); my_sleep(5000000LL); v104 = get_timer_pico_value(1LL); v108 = get_timer_pico_value(2LL); my_sleep(5000000LL); v103 = get_timer_pico_value(2LL); v107 = get_timer_pico_value(3LL); my_sleep(5000000LL); v102 = get_timer_pico_value(3LL); v106 = get_timer_pico_value(4LL); my_sleep(5000000LL); v101 = get_timer_pico_value(4LL); v105 = get_timer_pico_value(5LL); my_sleep(5000000LL); v0 = get_timer_pico_value(5LL); diag((unsigned int)"cycle a: %13llu", timer_pico_value, v1, v2, v3, v4, v0); diag((unsigned int)"nano a: %13llu", v108, v5, v6, v7, v8, v82); diag((unsigned int)"micro a: %13llu", v107, v9, v10, v11, v12, v83); diag((unsigned int)"milli a: %13llu", v106, v13, v14, v15, v16, v84); diag((unsigned int)"tick a: %13llu", v105, v17, v18, v19, v20, v85); diag((unsigned int)"cycle b: %13llu", v104, v21, v22, v23, v24, v86); diag((unsigned int)"nano b: %13llu", v103, v25, v26, v27, v28, v87); diag((unsigned int)"micro b: %13llu", v102, v29, v30, v31, v32, v88); diag((unsigned int)"milli b: %13llu", v101, v33, v34, v35, v36, v89); diag((unsigned int)"tick b: %13llu", v90, v37, v38, v39, v40, v90); diag((unsigned int)"cycle b-a: %13llu", v104 - timer_pico_value, v41, v42, v43, v44, v91); diag((unsigned int)"nano b-a: %13llu", v103 - v108, v45, v46, v47, v48, v92); diag((unsigned int)"micro b-a: %13llu", v102 - v107, v49, v50, v51, v52, v93); diag((unsigned int)"milli b-a: %13llu", v101 - v106, v53, v54, v55, v56, v94); diag((unsigned int)"tick b-a: %13llu", v95 - v105, v57, v58, v59, v60, v95); if ( timer_pico_value || v104 ) ok(v104 > timer_pico_value, (unsigned int)"cycle timer ascending", v61, v62, v63, v64, v96); else skip(1, (unsigned int)"cycle timer not implemented", v61, v62, v63, v64, v96); if ( v108 || v103 ) ok(v103 > v108, (unsigned int)"nano timer ascending", v65, v66, v67, v68, v97); else skip(1, (unsigned int)"nano timer not implemented", v65, v66, v67, v68, v97); if ( v107 || v102 ) ok(v102 > v107, (unsigned int)"micro timer ascending", v69, v70, v71, v72, v98); else skip(1, (unsigned int)"micro timer not implemented", v69, v70, v71, v72, v98); if ( v106 || v101 ) ok(v101 > v106, (unsigned int)"milli timer ascending", v73, v74, v75, v76, v99); else skip(1, (unsigned int)"milli timer not implemented", v73, v74, v75, v76, v99); if ( v105 || v100 ) return ok(v100 > v105, (unsigned int)"tick timer ascending", v77, v78, v79, v80, v100); else return skip(1, (unsigned int)"tick timer not implemented", v77, v78, v79, v80, 0); }
test_timers: PUSH RBP MOV RBP,RSP SUB RSP,0x50 LEA RDI,[0x48ff60] CALL 0x00128350 CALL 0x00125930 MOV EDI,0x1 CALL 0x00125f90 MOV qword ptr [RBP + -0x8],RAX MOV EDI,0x4c4b40 CALL 0x00126d30 MOV EDI,0x1 CALL 0x00125f90 MOV qword ptr [RBP + -0x30],RAX MOV EDI,0x2 CALL 0x00125f90 MOV qword ptr [RBP + -0x10],RAX MOV EDI,0x4c4b40 CALL 0x00126d30 MOV EDI,0x2 CALL 0x00125f90 MOV qword ptr [RBP + -0x38],RAX MOV EDI,0x3 CALL 0x00125f90 MOV qword ptr [RBP + -0x18],RAX MOV EDI,0x4c4b40 CALL 0x00126d30 MOV EDI,0x3 CALL 0x00125f90 MOV qword ptr [RBP + -0x40],RAX MOV EDI,0x4 CALL 0x00125f90 MOV qword ptr [RBP + -0x20],RAX MOV EDI,0x4c4b40 CALL 0x00126d30 MOV EDI,0x4 CALL 0x00125f90 MOV qword ptr [RBP + -0x48],RAX MOV EDI,0x5 CALL 0x00125f90 MOV qword ptr [RBP + -0x28],RAX MOV EDI,0x4c4b40 CALL 0x00126d30 MOV EDI,0x5 CALL 0x00125f90 MOV qword ptr [RBP + -0x50],RAX MOV RSI,qword ptr [RBP + -0x8] LEA RDI,[0x17a004] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x10] LEA RDI,[0x17a014] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x18] LEA RDI,[0x17a023] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x20] LEA RDI,[0x17a033] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x28] LEA RDI,[0x17a043] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x30] LEA RDI,[0x17a052] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x38] LEA RDI,[0x17a062] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x40] LEA RDI,[0x17a071] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x48] LEA RDI,[0x17a081] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x50] LEA RDI,[0x17a091] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x30] SUB RSI,qword ptr [RBP + -0x8] LEA RDI,[0x17a0a0] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x38] SUB RSI,qword ptr [RBP + -0x10] LEA RDI,[0x17a0b2] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x40] SUB RSI,qword ptr [RBP + -0x18] LEA RDI,[0x17a0c3] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x48] SUB RSI,qword ptr [RBP + -0x20] LEA RDI,[0x17a0d5] MOV AL,0x0 CALL 0x00124d30 MOV RSI,qword ptr [RBP + -0x50] SUB RSI,qword ptr [RBP + -0x28] LEA RDI,[0x17a0e7] MOV AL,0x0 CALL 0x00124d30 CMP qword ptr [RBP + -0x8],0x0 JNZ 0x00124aac CMP qword ptr [RBP + -0x30],0x0 JNZ 0x00124aac MOV EDI,0x1 LEA RSI,[0x17a0f8] MOV AL,0x0 CALL 0x00125290 JMP 0x00124aca LAB_00124aac: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x8] SETA AL AND AL,0x1 MOVZX EDI,AL LEA RSI,[0x17a114] MOV AL,0x0 CALL 0x00124ff0 LAB_00124aca: CMP qword ptr [RBP + -0x10],0x0 JNZ 0x00124aed CMP qword ptr [RBP + -0x38],0x0 JNZ 0x00124aed MOV EDI,0x1 LEA RSI,[0x17a12a] MOV AL,0x0 CALL 0x00125290 JMP 0x00124b0b LAB_00124aed: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x10] SETA AL AND AL,0x1 MOVZX EDI,AL LEA RSI,[0x17a145] MOV AL,0x0 CALL 0x00124ff0 LAB_00124b0b: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x00124b2e CMP qword ptr [RBP + -0x40],0x0 JNZ 0x00124b2e MOV EDI,0x1 LEA RSI,[0x17a15a] MOV AL,0x0 CALL 0x00125290 JMP 0x00124b4c LAB_00124b2e: MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x18] SETA AL AND AL,0x1 MOVZX EDI,AL LEA RSI,[0x17a176] MOV AL,0x0 CALL 0x00124ff0 LAB_00124b4c: CMP qword ptr [RBP + -0x20],0x0 JNZ 0x00124b6f CMP qword ptr [RBP + -0x48],0x0 JNZ 0x00124b6f MOV EDI,0x1 LEA RSI,[0x17a18c] MOV AL,0x0 CALL 0x00125290 JMP 0x00124b8d LAB_00124b6f: MOV RAX,qword ptr [RBP + -0x48] CMP RAX,qword ptr [RBP + -0x20] SETA AL AND AL,0x1 MOVZX EDI,AL LEA RSI,[0x17a1a8] MOV AL,0x0 CALL 0x00124ff0 LAB_00124b8d: CMP qword ptr [RBP + -0x28],0x0 JNZ 0x00124bb0 CMP qword ptr [RBP + -0x50],0x0 JNZ 0x00124bb0 MOV EDI,0x1 LEA RSI,[0x17a1be] MOV AL,0x0 CALL 0x00125290 JMP 0x00124bce LAB_00124bb0: MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x28] SETA AL AND AL,0x1 MOVZX EDI,AL LEA RSI,[0x17a1d9] MOV AL,0x0 CALL 0x00124ff0 LAB_00124bce: ADD RSP,0x50 POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* test_timers() */ void test_timers(void) { ulong uVar1; ulong uVar2; ulong uVar3; ulong uVar4; ulong uVar5; ulong uVar6; ulong uVar7; ulong uVar8; ulong uVar9; ulong uVar10; my_timer_init(sys_timer_info); init_timers(); uVar1 = get_timer_pico_value(1); my_sleep(5000000); uVar2 = get_timer_pico_value(1); uVar3 = get_timer_pico_value(2); my_sleep(5000000); uVar4 = get_timer_pico_value(2); uVar5 = get_timer_pico_value(3); my_sleep(5000000); uVar6 = get_timer_pico_value(3); uVar7 = get_timer_pico_value(4); my_sleep(5000000); uVar8 = get_timer_pico_value(4); uVar9 = get_timer_pico_value(5); my_sleep(5000000); uVar10 = get_timer_pico_value(5); diag("cycle a: %13llu",uVar1); diag("nano a: %13llu",uVar3); diag("micro a: %13llu",uVar5); diag("milli a: %13llu",uVar7); diag("tick a: %13llu",uVar9); diag("cycle b: %13llu",uVar2); diag("nano b: %13llu",uVar4); diag("micro b: %13llu",uVar6); diag("milli b: %13llu",uVar8); diag("tick b: %13llu",uVar10); diag("cycle b-a: %13llu",uVar2 - uVar1); diag("nano b-a: %13llu",uVar4 - uVar3); diag("micro b-a: %13llu",uVar6 - uVar5); diag("milli b-a: %13llu",uVar8 - uVar7); diag("tick b-a: %13llu",uVar10 - uVar9); if ((uVar1 == 0) && (uVar2 == 0)) { skip(1,"cycle timer not implemented"); } else { ok(uVar1 < uVar2,"cycle timer ascending"); } if ((uVar3 == 0) && (uVar4 == 0)) { skip(1,"nano timer not implemented"); } else { ok(uVar3 < uVar4,"nano timer ascending"); } if ((uVar5 == 0) && (uVar6 == 0)) { skip(1,"micro timer not implemented"); } else { ok(uVar5 < uVar6,"micro timer ascending"); } if ((uVar7 == 0) && (uVar8 == 0)) { skip(1,"milli timer not implemented"); } else { ok(uVar7 < uVar8,"milli timer ascending"); } if ((uVar9 == 0) && (uVar10 == 0)) { skip(1,"tick timer not implemented"); } else { ok(uVar9 < uVar10,"tick timer ascending"); } return; }
45,024
OpenSubdiv::v3_6_0::Tmr::TopologyMap::findPlan(OpenSubdiv::v3_6_0::Tmr::Neighborhood const&, int&) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/topologyMap.cpp
inline Index TopologyMap::findPlan(Neighborhood const & neighborhood, int& startingEdge) const { startingEdge = 0; int tableSize = (int)_hashTable.size(); key_type hashKey = neighborhood.GetHash(); for (int psl = 0; psl < tableSize; ++psl) { address_type address = computeAddress(hashKey, psl, tableSize); Index planIndex = _hashTable[address]; if (planIndex == INDEX_INVALID) return INDEX_INVALID; SubdivisionPlan const* plan = _plansTable[planIndex].get(); if (plan && plan->IsTopologicalMatch(neighborhood, startingEdge)) return planIndex; } return INDEX_INVALID; }
O0
cpp
OpenSubdiv::v3_6_0::Tmr::TopologyMap::findPlan(OpenSubdiv::v3_6_0::Tmr::Neighborhood const&, int&) const: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x48(%rbp) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x58, %rdi callq 0xc3aa0 movl %eax, -0x24(%rbp) movq -0x18(%rbp), %rdi callq 0xc49b0 movl %eax, -0x28(%rbp) movl $0x0, -0x2c(%rbp) movl -0x2c(%rbp), %eax cmpl -0x24(%rbp), %eax jge 0x1e4a2b movl -0x28(%rbp), %edi movl -0x2c(%rbp), %esi movl -0x24(%rbp), %edx callq 0xc4160 movq -0x48(%rbp), %rdi movl %eax, -0x30(%rbp) addq $0x58, %rdi movl -0x30(%rbp), %eax movl %eax, %esi callq 0xc9420 movl (%rax), %eax movl %eax, -0x34(%rbp) cmpl $-0x1, -0x34(%rbp) jne 0x1e49d8 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x1e4a32 movq -0x48(%rbp), %rdi addq $0x70, %rdi movslq -0x34(%rbp), %rsi callq 0xce8c0 movq %rax, %rdi callq 0xd15e0 movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) je 0x1e4a1b movq -0x40(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0xc3dd0 testb $0x1, %al jne 0x1e4a13 jmp 0x1e4a1b movl -0x34(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x1e4a32 jmp 0x1e4a1d movl -0x2c(%rbp), %eax addl $0x1, %eax movl %eax, -0x2c(%rbp) jmp 0x1e4995 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
_ZNK10OpenSubdiv6v3_6_03Tmr11TopologyMap8findPlanERKNS1_12NeighborhoodERi: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rdi, [rbp+var_10] mov [rbp+var_48], rdi mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rdi, 58h ; 'X' call __ZNKSt6vectorIjSaIjEE4sizeEv; std::vector<uint>::size(void) mov dword ptr [rbp+var_28+4], eax mov rdi, [rbp+var_18]; this call __ZNK10OpenSubdiv6v3_6_03Tmr12Neighborhood7GetHashEv; OpenSubdiv::v3_6_0::Tmr::Neighborhood::GetHash(void) mov dword ptr [rbp+var_28], eax mov [rbp+var_2C], 0 loc_1E4995: mov eax, [rbp+var_2C] cmp eax, dword ptr [rbp+var_28+4] jge loc_1E4A2B mov edi, dword ptr [rbp+var_28]; this mov esi, [rbp+var_2C]; unsigned int mov edx, dword ptr [rbp+var_28+4]; unsigned int call __ZN10OpenSubdiv6v3_6_03Tmr14computeAddressEjjj; OpenSubdiv::v3_6_0::Tmr::computeAddress(uint,uint,uint) mov rdi, [rbp+var_48] mov [rbp+var_30], eax add rdi, 58h ; 'X' mov eax, [rbp+var_30] mov esi, eax call __ZNKSt6vectorIjSaIjEEixEm; std::vector<uint>::operator[](ulong) mov eax, [rax] mov [rbp+var_34], eax cmp [rbp+var_34], 0FFFFFFFFh jnz short loc_1E49D8 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_1E4A32 loc_1E49D8: mov rdi, [rbp+var_48] add rdi, 70h ; 'p' movsxd rsi, [rbp+var_34] call __ZNKSt6vectorISt10unique_ptrIKN10OpenSubdiv6v3_6_03Tmr15SubdivisionPlanESt14default_deleteIS5_EESaIS8_EEixEm; std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::operator[](ulong) mov rdi, rax call __ZNKSt10unique_ptrIKN10OpenSubdiv6v3_6_03Tmr15SubdivisionPlanESt14default_deleteIS4_EE3getEv; std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>::get(void) mov [rbp+var_40], rax cmp [rbp+var_40], 0 jz short loc_1E4A1B mov rdi, [rbp+var_40]; this mov rsi, [rbp+var_18]; OpenSubdiv::v3_6_0::Tmr::Neighborhood * mov rdx, [rbp+var_20]; int * call __ZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan18IsTopologicalMatchERKNS1_12NeighborhoodERi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::IsTopologicalMatch(OpenSubdiv::v3_6_0::Tmr::Neighborhood const&,int &) test al, 1 jnz short loc_1E4A13 jmp short loc_1E4A1B loc_1E4A13: mov eax, [rbp+var_34] mov [rbp+var_4], eax jmp short loc_1E4A32 loc_1E4A1B: jmp short $+2 loc_1E4A1D: mov eax, [rbp+var_2C] add eax, 1 mov [rbp+var_2C], eax jmp loc_1E4995 loc_1E4A2B: mov [rbp+var_4], 0FFFFFFFFh loc_1E4A32: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long OpenSubdiv::v3_6_0::Tmr::TopologyMap::findPlan( OpenSubdiv::v3_6_0::Tmr::TopologyMap *this, const OpenSubdiv::v3_6_0::Tmr::Neighborhood *a2, int *a3) { unsigned int v3; // ecx long long v4; // rax OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan *v6; // [rsp+10h] [rbp-40h] unsigned int v7; // [rsp+1Ch] [rbp-34h] unsigned int v8; // [rsp+20h] [rbp-30h] signed int i; // [rsp+24h] [rbp-2Ch] unsigned int Hash; // [rsp+28h] [rbp-28h] signed int v11; // [rsp+2Ch] [rbp-24h] *a3 = 0; v11 = std::vector<unsigned int>::size((char *)this + 88); Hash = OpenSubdiv::v3_6_0::Tmr::Neighborhood::GetHash(a2); for ( i = 0; i < v11; ++i ) { v8 = OpenSubdiv::v3_6_0::Tmr::computeAddress((OpenSubdiv::v3_6_0::Tmr *)Hash, i, v11, v3); v7 = *(_DWORD *)std::vector<unsigned int>::operator[]((char *)this + 88, v8); if ( v7 == -1 ) return (unsigned int)-1; v4 = std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::operator[]( (char *)this + 112, (int)v7); v6 = (OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan *)std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>::get(v4); if ( v6 && (OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::IsTopologicalMatch(v6, a2, a3) & 1) != 0 ) return v7; } return (unsigned int)-1; }
45,025
OpenSubdiv::v3_6_0::Tmr::TopologyMap::findPlan(OpenSubdiv::v3_6_0::Tmr::Neighborhood const&, int&) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/topologyMap.cpp
inline Index TopologyMap::findPlan(Neighborhood const & neighborhood, int& startingEdge) const { startingEdge = 0; int tableSize = (int)_hashTable.size(); key_type hashKey = neighborhood.GetHash(); for (int psl = 0; psl < tableSize; ++psl) { address_type address = computeAddress(hashKey, psl, tableSize); Index planIndex = _hashTable[address]; if (planIndex == INDEX_INVALID) return INDEX_INVALID; SubdivisionPlan const* plan = _plansTable[planIndex].get(); if (plan && plan->IsTopologicalMatch(neighborhood, startingEdge)) return planIndex; } return INDEX_INVALID; }
O2
cpp
OpenSubdiv::v3_6_0::Tmr::TopologyMap::findPlan(OpenSubdiv::v3_6_0::Tmr::Neighborhood const&, int&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, (%rsp) andl $0x0, (%rdx) movq %rdi, %r14 movq 0x60(%rdi), %r13 subq 0x58(%rdi), %r13 movq %rsi, %r15 shrq $0x2, %r13 movl 0x4(%rsi), %r12d xorl %ebp, %ebp testl %r13d, %r13d cmovgl %r13d, %ebp subl $0x1, %ebp jb 0xb9c06 movl %r12d, %eax xorl %edx, %edx divl %r13d movq 0x58(%r14), %rax movslq (%rax,%rdx,4), %rbx cmpq $-0x1, %rbx je 0xb9c06 movq 0x70(%r14), %rax movq (%rax,%rbx,8), %rdi testq %rdi, %rdi je 0xb9c01 movq %r15, %rsi movq (%rsp), %rdx callq 0x4f480 testb %al, %al jne 0xb9c0b incl %r12d jmp 0xb9bc9 pushq $-0x1 popq %rax jmp 0xb9c0d movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZNK10OpenSubdiv6v3_6_03Tmr11TopologyMap8findPlanERKNS1_12NeighborhoodERi: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov [rsp+38h+var_38], rdx and dword ptr [rdx], 0 mov r14, rdi mov r13, [rdi+60h] sub r13, [rdi+58h] mov r15, rsi shr r13, 2 mov r12d, [rsi+4] xor ebp, ebp test r13d, r13d cmovg ebp, r13d loc_B9BC9: sub ebp, 1 jb short loc_B9C06 mov eax, r12d xor edx, edx div r13d mov rax, [r14+58h] movsxd rbx, dword ptr [rax+rdx*4] cmp rbx, 0FFFFFFFFFFFFFFFFh jz short loc_B9C06 mov rax, [r14+70h] mov rdi, [rax+rbx*8]; this test rdi, rdi jz short loc_B9C01 mov rsi, r15; OpenSubdiv::v3_6_0::Tmr::Neighborhood * mov rdx, [rsp+38h+var_38]; int * call __ZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan18IsTopologicalMatchERKNS1_12NeighborhoodERi; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::IsTopologicalMatch(OpenSubdiv::v3_6_0::Tmr::Neighborhood const&,int &) test al, al jnz short loc_B9C0B loc_B9C01: inc r12d jmp short loc_B9BC9 loc_B9C06: push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_B9C0D loc_B9C0B: mov eax, ebx loc_B9C0D: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Tmr::TopologyMap::findPlan( OpenSubdiv::v3_6_0::Tmr::TopologyMap *this, const OpenSubdiv::v3_6_0::Tmr::Neighborhood *a2, int *a3) { long long v4; // r13 unsigned int v5; // r12d int v6; // ebp long long v8; // rbx OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan *v9; // rdi *a3 = 0; v4 = (*((_QWORD *)this + 12) - *((_QWORD *)this + 11)) >> 2; v5 = *((_DWORD *)a2 + 1); v6 = 0; if ( (int)v4 > 0 ) v6 = (*((_QWORD *)this + 12) - *((_QWORD *)this + 11)) >> 2; while ( 1 ) { if ( v6-- == 0 ) return -1LL; v8 = *(int *)(*((_QWORD *)this + 11) + 4LL * (v5 % (unsigned int)v4)); if ( v8 == -1 ) return -1LL; v9 = *(OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan **)(*((_QWORD *)this + 14) + 8 * v8); if ( v9 ) { if ( (unsigned __int8)OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::IsTopologicalMatch(v9, a2, a3) ) break; } ++v5; } return (unsigned int)v8; }
findPlan: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV qword ptr [RSP],RDX AND dword ptr [RDX],0x0 MOV R14,RDI MOV R13,qword ptr [RDI + 0x60] SUB R13,qword ptr [RDI + 0x58] MOV R15,RSI SHR R13,0x2 MOV R12D,dword ptr [RSI + 0x4] XOR EBP,EBP TEST R13D,R13D CMOVG EBP,R13D LAB_001b9bc9: SUB EBP,0x1 JC 0x001b9c06 MOV EAX,R12D XOR EDX,EDX DIV R13D MOV RAX,qword ptr [R14 + 0x58] MOVSXD RBX,dword ptr [RAX + RDX*0x4] CMP RBX,-0x1 JZ 0x001b9c06 MOV RAX,qword ptr [R14 + 0x70] MOV RDI,qword ptr [RAX + RBX*0x8] TEST RDI,RDI JZ 0x001b9c01 MOV RSI,R15 MOV RDX,qword ptr [RSP] CALL 0x0014f480 TEST AL,AL JNZ 0x001b9c0b LAB_001b9c01: INC R12D JMP 0x001b9bc9 LAB_001b9c06: PUSH -0x1 POP RAX JMP 0x001b9c0d LAB_001b9c0b: MOV EAX,EBX LAB_001b9c0d: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Tmr::TopologyMap::findPlan(OpenSubdiv::v3_6_0::Tmr::Neighborhood const&, int&) const */ ulong __thiscall OpenSubdiv::v3_6_0::Tmr::TopologyMap::findPlan(TopologyMap *this,Neighborhood *param_1,int *param_2) { uint uVar1; SubdivisionPlan *this_00; char cVar2; int iVar3; ulong uVar4; uint uVar5; ulong uVar6; *param_2 = 0; uVar6 = (ulong)(*(long *)(this + 0x60) - *(long *)(this + 0x58)) >> 2; uVar5 = *(uint *)(param_1 + 4); uVar4 = 0; if (0 < (int)uVar6) { uVar4 = uVar6 & 0xffffffff; } while( true ) { iVar3 = (int)uVar4; uVar4 = (ulong)(iVar3 - 1); if (iVar3 == 0) { return 0xffffffffffffffff; } uVar1 = *(uint *)(*(long *)(this + 0x58) + ((ulong)uVar5 % (uVar6 & 0xffffffff)) * 4); if ((long)(int)uVar1 == -1) break; this_00 = *(SubdivisionPlan **)(*(long *)(this + 0x70) + (long)(int)uVar1 * 8); if ((this_00 != (SubdivisionPlan *)0x0) && (cVar2 = SubdivisionPlan::IsTopologicalMatch(this_00,param_1,param_2), cVar2 != '\0')) { return (ulong)uVar1; } uVar5 = uVar5 + 1; } return 0xffffffffffffffff; }
45,026
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>>>>>::parse(bool, 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>&)
monkey531[P]llama/common/./json.hpp
void parse(const bool strict, BasicJsonType& result) { if (callback) { json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } // set top-level value to null if it was discarded by the callback // function if (result.is_discarded()) { result = nullptr; } } else { json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } } result.assert_invariant(); }
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>>>>>::parse(bool, 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>&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1c0, %rsp # imm = 0x1C0 movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r15 cmpq $0x0, 0x10(%rdi) je 0x409f8 leaq 0xc8(%rsp), %r14 movq %r14, %rdi movq %r15, %rsi callq 0x4084a movzbl 0xc0(%r15), %ecx leaq 0x108(%rsp), %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x41a42 leaq 0xc8(%rsp), %rdi callq 0x64088 leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x41b06 testb %bpl, %bpl je 0x409ce movq %r15, %rdi callq 0x40d30 cmpl $0xf, %eax je 0x409ce leaq 0x28(%r15), %rsi movq 0x48(%r15), %r14 leaq 0x70(%rsp), %rdi callq 0x4263a leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x5e059(%rip), %rsi # 0x9e99e leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x262e2 leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x42818 leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x426e2 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r14, %rsi callq 0x425f6 leaq 0x90(%rsp), %rdi callq 0x46fe2 leaq 0x50(%rsp), %rdi callq 0x20d78 leaq 0x30(%rsp), %rdi callq 0x20d78 leaq 0x70(%rsp), %rdi callq 0x20d78 movb 0x180(%rsp), %bpl cmpb $0x1, %bpl jne 0x40b40 leaq 0xf8(%rsp), %r14 pushq $0x9 popq %rsi movq %r14, %rdi callq 0x429b4 jmp 0x40b57 movb 0xc0(%r15), %al leaq 0x110(%rsp), %r14 movq %rbx, -0x8(%r14) xorps %xmm0, %xmm0 movups %xmm0, (%r14) movups %xmm0, 0x10(%r14) movb $0x0, 0x20(%r14) movb %al, 0x21(%r14) leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x42a4a testb %bpl, %bpl je 0x40b01 movq %r15, %rdi callq 0x40d30 cmpl $0xf, %eax je 0x40b01 leaq 0x28(%r15), %rsi movq 0x48(%r15), %r12 leaq 0x70(%rsp), %rdi callq 0x4263a leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x5df26(%rip), %rsi # 0x9e99e leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x262e2 leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x42818 leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x426e2 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r12, %rsi callq 0x4353a leaq 0x90(%rsp), %rdi callq 0x46fe2 leaq 0x50(%rsp), %rdi callq 0x20d78 leaq 0x30(%rsp), %rdi callq 0x20d78 leaq 0x70(%rsp), %rdi callq 0x20d78 cmpb $0x1, 0x130(%rsp) jne 0x40b7e leaq 0xb8(%rsp), %rdi pushq $0x9 popq %rsi callq 0x429b4 leaq 0xb8(%rsp), %r15 movq %rbx, %rdi movq %r15, %rsi callq 0x429ca movq %r15, %rdi callq 0x2b1f0 movq %r14, %rdi callq 0x43ab6 jmp 0x40b91 cmpb $0x9, (%rbx) jne 0x40b6a leaq 0xe8(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x2b1d0 movq %rbx, %rdi movq %r14, %rsi callq 0x429ca movq %r14, %rdi callq 0x2b1f0 leaq 0x108(%rsp), %rdi callq 0x42a0e testb %bpl, %bpl je 0x40b86 jmp 0x40b91 movq %r14, %rdi callq 0x43ab6 pushq $0x1 popq %rsi movq %rbx, %rdi callq 0x3b386 addq $0x1c0, %rsp # imm = 0x1C0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x46fe2 jmp 0x40bb6 movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x20d78 jmp 0x40bc5 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x20d78 jmp 0x40bd4 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x20d78 jmp 0x40c38 jmp 0x40c35 movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x46fe2 jmp 0x40bf7 movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x20d78 jmp 0x40c06 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x20d78 jmp 0x40c15 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x20d78 jmp 0x40c45 jmp 0x40c42 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x64088 jmp 0x40c52 movq %rax, %rbx movq %r14, %rdi callq 0x43ab6 jmp 0x40c52 movq %rax, %rbx leaq 0x108(%rsp), %rdi callq 0x42a0e movq %rbx, %rdi callq 0x20b90
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_: push rbp push r15 push r14 push r12 push rbx sub rsp, 1C0h mov rbx, rdx mov ebp, esi mov r15, rdi cmp qword ptr [rdi+10h], 0 jz loc_409F8 lea r14, [rsp+1E8h+var_120] mov rdi, r14 mov rsi, r15 call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; 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> &)>::function(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> &)> const&) movzx ecx, byte ptr [r15+0C0h] lea rdi, [rsp+1E8h+var_E0] mov rsi, rbx mov rdx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::json_sax_dom_callback_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>&,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) lea rdi, [rsp+1E8h+var_120]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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::json_sax_dom_callback_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>> *) test bpl, bpl jz loc_409CE mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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>>>::get_token(void) cmp eax, 0Fh jz loc_409CE lea rsi, [r15+28h] mov r14, [r15+48h] lea rdi, [rsp+1E8h+var_178] call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aNamespacedSetN+32h; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_409CE: mov bpl, [rsp+1E8h+var_68] cmp bpl, 1 jnz loc_40B40 lea r14, [rsp+1E8h+var_F0] push 9 pop rsi mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_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(nlohmann::json_abi_v3_11_3::detail::value_t) jmp loc_40B57 loc_409F8: mov al, [r15+0C0h] lea r14, [rsp+1E8h+var_D8] mov [r14-8], rbx xorps xmm0, xmm0 movups xmmword ptr [r14], xmm0 movups xmmword ptr [r14+10h], xmm0 mov byte ptr [r14+20h], 0 mov [r14+21h], al lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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::json_sax_dom_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>> *) test bpl, bpl jz loc_40B01 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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>>>::get_token(void) cmp eax, 0Fh jz loc_40B01 lea rsi, [r15+28h] mov r12, [r15+48h] lea rdi, [rsp+1E8h+var_178] call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aNamespacedSetN+32h; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_40B01: cmp [rsp+1E8h+var_B8], 1 jnz short loc_40B7E lea rdi, [rsp+1E8h+var_130] push 9 pop rsi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_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(nlohmann::json_abi_v3_11_3::detail::value_t) lea r15, [rsp+1E8h+var_130] mov rdi, rbx mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 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() mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<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> *>>::~_Vector_base() jmp short loc_40B91 loc_40B40: cmp byte ptr [rbx], 9 jnz short loc_40B6A lea r14, [rsp+1E8h+var_100] mov rdi, r14 xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; 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(decltype(nullptr)) loc_40B57: mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 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() loc_40B6A: lea rdi, [rsp+1E8h+var_E0] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::~json_sax_dom_callback_parser() test bpl, bpl jz short loc_40B86 jmp short loc_40B91 loc_40B7E: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<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> *>>::~_Vector_base() loc_40B86: push 1 pop rsi mov rdi, rbx call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_40B91: add rsp, 1C0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_40BB6 mov rbx, rax loc_40BB6: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40BC5 mov rbx, rax loc_40BC5: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40BD4 mov rbx, rax loc_40BD4: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C38 jmp short loc_40C35 mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_40BF7 mov rbx, rax loc_40BF7: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C06 mov rbx, rax loc_40C06: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C15 mov rbx, rax loc_40C15: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C45 jmp short loc_40C42 mov rbx, rax lea rdi, [rsp+arg_C0]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() jmp short loc_40C52 loc_40C35: mov rbx, rax loc_40C38: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<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> *>>::~_Vector_base() jmp short loc_40C52 loc_40C42: mov rbx, rax loc_40C45: lea rdi, [rsp+arg_100] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::~json_sax_dom_callback_parser() loc_40C52: mov rdi, rbx call __Unwind_Resume
long long 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>>>::parse( long long a1, char a2, char *a3, int a4, int a5, int a6) { int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // r14 int v12; // r8d int v13; // r9d char v14; // bp _BYTE *v15; // r14 char v16; // al long long v17; // r12 int v18; // r8d int v19; // r9d long long result; // rax int v21; // [rsp+0h] [rbp-1E8h] int v22; // [rsp+8h] [rbp-1E0h] char v23[16]; // [rsp+10h] [rbp-1D8h] char v24[16]; // [rsp+10h] [rbp-1D8h] int v25[2]; // [rsp+20h] [rbp-1C8h] int v26[2]; // [rsp+20h] [rbp-1C8h] int v27; // [rsp+28h] [rbp-1C0h] long long v28; // [rsp+30h] [rbp-1B8h] BYREF int v29; // [rsp+38h] [rbp-1B0h] int v30; // [rsp+40h] [rbp-1A8h] int v31; // [rsp+48h] [rbp-1A0h] char v32[8]; // [rsp+50h] [rbp-198h] BYREF int v33; // [rsp+58h] [rbp-190h] int v34; // [rsp+60h] [rbp-188h] int v35; // [rsp+68h] [rbp-180h] char v36[8]; // [rsp+70h] [rbp-178h] BYREF int v37; // [rsp+78h] [rbp-170h] int v38; // [rsp+80h] [rbp-168h] int v39; // [rsp+88h] [rbp-160h] char v40[40]; // [rsp+90h] [rbp-158h] BYREF _BYTE v41[16]; // [rsp+B8h] [rbp-130h] BYREF _OWORD v42[2]; // [rsp+C8h] [rbp-120h] BYREF _BYTE v43[16]; // [rsp+E8h] [rbp-100h] BYREF _BYTE v44[16]; // [rsp+F8h] [rbp-F0h] BYREF char *v45; // [rsp+108h] [rbp-E0h] BYREF _BYTE v46[32]; // [rsp+110h] [rbp-D8h] BYREF char v47; // [rsp+130h] [rbp-B8h] char v48; // [rsp+131h] [rbp-B7h] char v49; // [rsp+180h] [rbp-68h] if ( !*(_QWORD *)(a1 + 16) ) { v16 = *(_BYTE *)(a1 + 192); v45 = a3; memset(v46, 0, sizeof(v46)); v47 = 0; v48 = v16; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>>( a1, (unsigned int)&v45, (_DWORD)a3, a4, a5, a6); if ( a2 && (unsigned int)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>>>::get_token(a1) != 15 ) { v17 = *(_QWORD *)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( v36, a1 + 40); *(_QWORD *)v26 = *(_QWORD *)(a1 + 88); *(_OWORD *)v24 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, (long long)"value"); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (unsigned int)v32, a1, 15, (unsigned int)&v28, v18, v19); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v24[0], *(int *)&v24[8], v26[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v17, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } if ( v47 == 1 ) { 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( v41, 9LL); 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>::operator=( a3, v41); 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)v41); return std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<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> *>>::~_Vector_base(v46); } result = std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<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> *>>::~_Vector_base(v46); goto LABEL_18; } 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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function( v42, a1); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::json_sax_dom_callback_parser( &v45, a3, v42, *(unsigned __int8 *)(a1 + 192)); std::_Function_base::~_Function_base((std::_Function_base *)v42); 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>>( a1, (unsigned int)&v45, v7, v8, v9, v10); if ( a2 ) { if ( (unsigned int)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>>>::get_token(a1) != 15 ) { v11 = *(_QWORD *)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( v36, a1 + 40); *(_QWORD *)v25 = *(_QWORD *)(a1 + 88); *(_OWORD *)v23 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, (long long)"value"); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (unsigned int)v32, a1, 15, (unsigned int)&v28, v12, v13); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v23[0], *(int *)&v23[8], v25[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v11, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } } v14 = v49; if ( v49 == 1 ) { v15 = v44; 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( v44, 9LL); } else { if ( *a3 != 9 ) goto LABEL_15; v15 = v43; 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)v43); } 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>::operator=( a3, v15); 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)v15); LABEL_15: result = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::~json_sax_dom_callback_parser(&v45); if ( !v14 ) LABEL_18: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(a3); return result; }
parse: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x1c0 MOV RBX,RDX MOV EBP,ESI MOV R15,RDI CMP qword ptr [RDI + 0x10],0x0 JZ 0x001409f8 LEA R14,[RSP + 0xc8] MOV RDI,R14 MOV RSI,R15 CALL 0x0014084a MOVZX ECX,byte ptr [R15 + 0xc0] LAB_001408cd: LEA RDI,[RSP + 0x108] MOV RSI,RBX MOV RDX,R14 CALL 0x00141a42 LEA RDI,[RSP + 0xc8] CALL 0x00164088 LAB_001408ed: LEA RSI,[RSP + 0x108] MOV RDI,R15 CALL 0x00141b06 TEST BPL,BPL JZ 0x001409ce MOV RDI,R15 CALL 0x00140d30 CMP EAX,0xf JZ 0x001409ce LEA RSI,[R15 + 0x28] MOV R14,qword ptr [R15 + 0x48] LAB_0014091f: LEA RDI,[RSP + 0x70] CALL 0x0014263a LEA RAX,[R15 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x20],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x10],XMM0 LAB_0014093e: LEA RSI,[0x19e99e] LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0xf] CALL 0x001262e2 LAB_00140954: LEA RDI,[RSP + 0x50] PUSH 0xf POP RDX LEA RCX,[RSP + 0x30] MOV RSI,R15 CALL 0x00142818 LAB_00140969: LEA RDI,[RSP + 0x90] PUSH 0x65 POP RSI LEA RDX,[RSP + 0x10] LEA RCX,[RSP + 0x50] XOR R8D,R8D CALL 0x001426e2 LAB_00140986: LEA RDI,[RSP + 0x108] LEA RDX,[RSP + 0x70] LEA RCX,[RSP + 0x90] MOV RSI,R14 CALL 0x001425f6 LEA RDI,[RSP + 0x90] CALL 0x00146fe2 LEA RDI,[RSP + 0x50] CALL 0x00120d78 LEA RDI,[RSP + 0x30] CALL 0x00120d78 LEA RDI,[RSP + 0x70] CALL 0x00120d78 LAB_001409ce: MOV BPL,byte ptr [RSP + 0x180] CMP BPL,0x1 JNZ 0x00140b40 LEA R14,[RSP + 0xf8] LAB_001409e8: PUSH 0x9 POP RSI MOV RDI,R14 CALL 0x001429b4 JMP 0x00140b57 LAB_001409f8: MOV AL,byte ptr [R15 + 0xc0] LEA R14,[RSP + 0x110] MOV qword ptr [R14 + -0x8],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14],XMM0 MOVUPS xmmword ptr [R14 + 0x10],XMM0 MOV byte ptr [R14 + 0x20],0x0 MOV byte ptr [R14 + 0x21],AL LAB_00140a20: LEA RSI,[RSP + 0x108] MOV RDI,R15 CALL 0x00142a4a TEST BPL,BPL JZ 0x00140b01 MOV RDI,R15 CALL 0x00140d30 CMP EAX,0xf JZ 0x00140b01 LEA RSI,[R15 + 0x28] MOV R12,qword ptr [R15 + 0x48] LAB_00140a52: LEA RDI,[RSP + 0x70] CALL 0x0014263a LEA RAX,[R15 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x20],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x10],XMM0 LAB_00140a71: LEA RSI,[0x19e99e] LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0xf] CALL 0x001262e2 LAB_00140a87: LEA RDI,[RSP + 0x50] PUSH 0xf POP RDX LEA RCX,[RSP + 0x30] MOV RSI,R15 CALL 0x00142818 LAB_00140a9c: LEA RDI,[RSP + 0x90] PUSH 0x65 POP RSI LEA RDX,[RSP + 0x10] LEA RCX,[RSP + 0x50] XOR R8D,R8D CALL 0x001426e2 LAB_00140ab9: LEA RDI,[RSP + 0x108] LEA RDX,[RSP + 0x70] LEA RCX,[RSP + 0x90] MOV RSI,R12 CALL 0x0014353a LEA RDI,[RSP + 0x90] CALL 0x00146fe2 LEA RDI,[RSP + 0x50] CALL 0x00120d78 LEA RDI,[RSP + 0x30] CALL 0x00120d78 LEA RDI,[RSP + 0x70] CALL 0x00120d78 LAB_00140b01: CMP byte ptr [RSP + 0x130],0x1 JNZ 0x00140b7e LAB_00140b0b: LEA RDI,[RSP + 0xb8] PUSH 0x9 POP RSI CALL 0x001429b4 LAB_00140b1b: LEA R15,[RSP + 0xb8] MOV RDI,RBX MOV RSI,R15 CALL 0x001429ca MOV RDI,R15 CALL 0x0012b1f0 MOV RDI,R14 CALL 0x00143ab6 JMP 0x00140b91 LAB_00140b40: CMP byte ptr [RBX],0x9 JNZ 0x00140b6a LEA R14,[RSP + 0xe8] MOV RDI,R14 XOR ESI,ESI CALL 0x0012b1d0 LAB_00140b57: MOV RDI,RBX MOV RSI,R14 CALL 0x001429ca MOV RDI,R14 CALL 0x0012b1f0 LAB_00140b6a: LEA RDI,[RSP + 0x108] CALL 0x00142a0e TEST BPL,BPL JZ 0x00140b86 JMP 0x00140b91 LAB_00140b7e: MOV RDI,R14 CALL 0x00143ab6 LAB_00140b86: PUSH 0x1 POP RSI MOV RDI,RBX CALL 0x0013b386 LAB_00140b91: ADD RSP,0x1c0 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::parse(bool, 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>&) */ void __thiscall 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>>> ::parse(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>>> *this,bool param_1,basic_json *param_2) { ulong uVar1; int iVar2; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this_00; allocator local_1d9; int8 local_1d8; int8 uStack_1d0; int8 local_1c8; string local_1b8 [32]; string local_198 [32]; string local_178 [32]; parse_error local_158 [40]; 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_130 [16]; 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>&)> local_120 [32]; 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_100 [16]; 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_f0 [16]; basic_json *local_e0; int8 local_d8; int8 uStack_d0; int8 local_c8; int8 uStack_c0; char local_b8; 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>>> local_b7; char local_68; if (*(long *)(this + 0x10) == 0) { local_b7 = this[0xc0]; local_d8 = 0; uStack_d0 = 0; local_c8 = 0; uStack_c0 = 0; local_b8 = '\0'; /* try { // try from 00140a20 to 00140a40 has its CatchHandler @ 00140c35 */ local_e0 = param_2; sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>> (this,(json_sax_dom_parser *)&local_e0); if ((param_1) && (iVar2 = get_token(this), iVar2 != 0xf)) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 00140a52 to 00140a5b has its CatchHandler @ 00140be0 */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_1c8 = *(int8 *)(this + 0x58); local_1d8 = *(int8 *)(this + 0x48); uStack_1d0 = *(int8 *)(this + 0x50); /* try { // try from 00140a71 to 00140a86 has its CatchHandler @ 00140bd1 */ std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9); /* try { // try from 00140a87 to 00140a9b has its CatchHandler @ 00140bc2 */ exception_message(local_198,this,0xf,local_1b8); /* try { // try from 00140a9c to 00140ab8 has its CatchHandler @ 00140bb3 */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_158,0x65,&local_1d8,local_198,0); /* try { // try from 00140ab9 to 00140ad5 has its CatchHandler @ 00140ba1 */ json_sax_dom_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>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_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>> *)&local_e0,uVar1,local_178,local_158); exception::~exception((exception *)local_158); std::__cxx11::string::~string(local_198); std::__cxx11::string::~string(local_1b8); std::__cxx11::string::~string(local_178); } if (local_b8 == '\x01') { /* try { // try from 00140b0b to 00140b1a has its CatchHandler @ 00140c35 */ 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_130,9); 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> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_2,local_130); 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_130); std:: _Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::~_Vector_base((_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)&local_d8); return; } std:: _Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::~_Vector_base((_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)&local_d8); goto LAB_00140b86; } 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>&)> ::function(local_120,(function *)this); /* try { // try from 001408cd to 001408df has its CatchHandler @ 00140c23 */ json_sax_dom_callback_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>> ::json_sax_dom_callback_parser ((json_sax_dom_callback_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>> *)&local_e0,param_2,local_120,this[0xc0]); std::_Function_base::~_Function_base((_Function_base *)local_120); /* try { // try from 001408ed to 0014090d has its CatchHandler @ 00140c42 */ sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>> (this,(json_sax_dom_callback_parser *)&local_e0); if ((param_1) && (iVar2 = get_token(this), iVar2 != 0xf)) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 0014091f to 00140928 has its CatchHandler @ 00140c21 */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_1c8 = *(int8 *)(this + 0x58); local_1d8 = *(int8 *)(this + 0x48); uStack_1d0 = *(int8 *)(this + 0x50); /* try { // try from 0014093e to 00140953 has its CatchHandler @ 00140c12 */ std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9); /* try { // try from 00140954 to 00140968 has its CatchHandler @ 00140c03 */ exception_message(local_198,this,0xf,local_1b8); /* try { // try from 00140969 to 00140985 has its CatchHandler @ 00140bf4 */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_158,0x65,&local_1d8,local_198,0); /* try { // try from 00140986 to 001409a2 has its CatchHandler @ 00140be2 */ json_sax_dom_callback_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>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_callback_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>> *)&local_e0,uVar1,local_178,local_158); exception::~exception((exception *)local_158); std::__cxx11::string::~string(local_198); std::__cxx11::string::~string(local_1b8); std::__cxx11::string::~string(local_178); } if (local_68 == '\x01') { this_00 = local_f0; /* try { // try from 001409e8 to 001409f2 has its CatchHandler @ 00140c42 */ 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(this_00,9); LAB_00140b57: 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> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_2,this_00); 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(this_00); } else if (*param_2 == (basic_json)0x9) { this_00 = local_100; 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((_func_decltype_nullptr *)this_00); goto LAB_00140b57; } json_sax_dom_callback_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>> ::~json_sax_dom_callback_parser ((json_sax_dom_callback_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>> *)&local_e0); if (local_68 != '\0') { return; } LAB_00140b86: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(param_2,0)); return; }
45,027
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>>>>>::parse(bool, 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>&)
monkey531[P]llama/common/./json.hpp
void parse(const bool strict, BasicJsonType& result) { if (callback) { json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } // set top-level value to null if it was discarded by the callback // function if (result.is_discarded()) { result = nullptr; } } else { json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } } result.assert_invariant(); }
O3
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>>>>>::parse(bool, 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>&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1b0, %rsp # imm = 0x1B0 movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r14 cmpq $0x0, 0x10(%rdi) je 0x44909 leaq 0xa8(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x446a2 movzbl 0xc0(%r14), %ecx leaq 0xc8(%rsp), %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x45a38 movq 0xb8(%rsp), %rax testq %rax, %rax je 0x4476f leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0xc8(%rsp), %rsi movq %r14, %rdi callq 0x45b32 testb %bpl, %bpl je 0x448ab leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x44e3a movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x448ab movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x46932 leaq 0x48(%r14), %rax movq 0x10(%rax), %rcx movq %rcx, 0xa0(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x90(%rsp) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x76e4a(%rip), %rsi # 0xbb628 leaq 0x76e48(%rip), %rdx # 0xbb62d leaq 0x8(%rsp), %rdi callq 0x590a2 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x46bea leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x469ec leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x468ec leaq 0xa9ac2(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44879 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44890 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x448ab movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 cmpb $0x0, 0x140(%rsp) je 0x44ad1 leaq 0x1a0(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rdi movq %r14, %rsi callq 0x46ee0 movq %r14, %rdi xorl %esi, %esi callq 0x3d970 movq %r14, %rdi callq 0x4a5c0 leaq 0xc8(%rsp), %rdi callq 0x46f2a jmp 0x44b3b movb 0xc0(%r14), %al leaq 0xc8(%rsp), %rsi movq %rbx, (%rsi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rsi) movups %xmm0, 0x18(%rsi) movb $0x0, 0x28(%rsi) movb %al, 0x29(%rsi) movq %r14, %rdi callq 0x46faa testb %bpl, %bpl je 0x44a61 leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x44e3a movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x44a61 movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x46932 leaq 0x48(%r14), %rax movq 0x10(%rax), %rcx movq %rcx, 0xa0(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x90(%rsp) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x76c94(%rip), %rsi # 0xbb628 leaq 0x76c92(%rip), %rdx # 0xbb62d leaq 0x8(%rsp), %rdi callq 0x590a2 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x46bea leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x469ec leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x47d84 leaq 0xa990c(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44a2f movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44a46 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44a61 movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 movb 0xf0(%rsp), %bpl cmpb $0x1, %bpl jne 0x44aad leaq 0x180(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rdi movq %r14, %rsi callq 0x46ee0 movq %r14, %rdi xorl %esi, %esi callq 0x3d970 movq %r14, %rdi callq 0x4a5c0 movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x44aca movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x186a0 testb %bpl, %bpl je 0x44b2e jmp 0x44b3b cmpb $0x9, (%rbx) jne 0x44b21 leaq 0x190(%rsp), %r14 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rdi movq %r14, %rsi callq 0x46ee0 movq %r14, %rdi xorl %esi, %esi callq 0x3d970 movq %r14, %rdi callq 0x4a5c0 leaq 0xc8(%rsp), %rdi callq 0x46f2a movq %rbx, %rdi movl $0x1, %esi callq 0x3d970 addq $0x1b0, %rsp # imm = 0x1B0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0xa97b3(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 jmp 0x44b72 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44b92 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44b92 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44bae movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44bae movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44c5e movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44c5e jmp 0x44c5b movq %rax, %rbx leaq 0xa9727(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 jmp 0x44bfe movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44c1e movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44c1e movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44c3a movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44c3a movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44cac movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44cac jmp 0x44ca9 jmp 0x44ca1 movq %rax, %rbx movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x44cb9 movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x186a0 jmp 0x44cb9 movq %rax, %rbx movq 0xb8(%rsp), %rax testq %rax, %rax je 0x44cb9 leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x44cb9 movq %rax, %rdi callq 0x2ad73 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x46f2a movq %rbx, %rdi callq 0x18b90 nop
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_: push rbp push r15 push r14 push r12 push rbx sub rsp, 1B0h mov rbx, rdx mov ebp, esi mov r14, rdi cmp qword ptr [rdi+10h], 0 jz loc_44909 lea r15, [rsp+1D8h+var_130] mov rdi, r15 mov rsi, r14 call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; 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> &)>::function(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> &)> const&) movzx ecx, byte ptr [r14+0C0h] lea rdi, [rsp+1D8h+var_110] mov rsi, rbx mov rdx, r15 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::json_sax_dom_callback_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>&,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) mov rax, [rsp+1D8h+var_120] test rax, rax jz short loc_4476F lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax loc_4476F: lea rsi, [rsp+1D8h+var_110] mov rdi, r14; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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::json_sax_dom_callback_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>> *) test bpl, bpl jz loc_448AB lea r12, [r14+28h] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan(void) mov [r14+20h], eax cmp eax, 0Fh jz loc_448AB mov r15, [r14+48h] lea rdi, [rsp+1D8h+var_190] mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r14+48h] mov rcx, [rax+10h] mov [rsp+1D8h+var_138], rcx movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1D8h+var_148], xmm0; __int64 lea r12, [rsp+1D8h+var_1C0] mov [r12-10h], r12 lea rsi, aNamespacedSetN+32h; "value" lea rdx, aNamespacedSetN+37h; "" lea rdi, [rsp+1D8h+var_1D0] 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+1D8h+var_1B0]; int lea rcx, [rsp+1D8h+var_1D0]; int mov rsi, r14; int mov edx, 0Fh; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1D8h+var_170]; this lea rdx, [rsp+1D8h+var_148]; int lea rcx, [rsp+1D8h+var_1B0] mov esi, 65h ; 'e'; int xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1D8h+var_110] lea rdx, [rsp+1D8h+var_190] lea rcx, [rsp+1D8h+var_170] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44879 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44879: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44890 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44890: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_448AB mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_448AB: cmp [rsp+1D8h+var_98], 0 jz loc_44AD1 lea r14, [rsp+1D8h+var_38] mov byte ptr [r14], 9 mov qword ptr [r14+8], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() lea rdi, [rsp+1D8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::~json_sax_dom_callback_parser() jmp loc_44B3B loc_44909: mov al, [r14+0C0h] lea rsi, [rsp+1D8h+var_110] mov [rsi], rbx xorps xmm0, xmm0 movups xmmword ptr [rsi+8], xmm0 movups xmmword ptr [rsi+18h], xmm0 mov byte ptr [rsi+28h], 0 mov [rsi+29h], al mov rdi, r14; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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::json_sax_dom_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>> *) test bpl, bpl jz loc_44A61 lea r12, [r14+28h] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan(void) mov [r14+20h], eax cmp eax, 0Fh jz loc_44A61 mov r15, [r14+48h] lea rdi, [rsp+1D8h+var_190] mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r14+48h] mov rcx, [rax+10h] mov [rsp+1D8h+var_138], rcx movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1D8h+var_148], xmm0; __int64 lea r12, [rsp+1D8h+var_1C0] mov [r12-10h], r12 lea rsi, aNamespacedSetN+32h; "value" lea rdx, aNamespacedSetN+37h; "" lea rdi, [rsp+1D8h+var_1D0] 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+1D8h+var_1B0]; int lea rcx, [rsp+1D8h+var_1D0]; int mov rsi, r14; int mov edx, 0Fh; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1D8h+var_170]; this lea rdx, [rsp+1D8h+var_148]; int lea rcx, [rsp+1D8h+var_1B0] mov esi, 65h ; 'e'; int xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1D8h+var_110] lea rdx, [rsp+1D8h+var_190] lea rcx, [rsp+1D8h+var_170] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44A2F mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44A2F: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44A46 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44A46: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44A61 mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44A61: mov bpl, [rsp+1D8h+var_E8] cmp bpl, 1 jnz short loc_44AAD lea r14, [rsp+1D8h+var_58] mov byte ptr [r14], 9 mov qword ptr [r14+8], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_44AAD: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_44ACA mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44ACA: test bpl, bpl jz short loc_44B2E jmp short loc_44B3B loc_44AD1: cmp byte ptr [rbx], 9 jnz short loc_44B21 lea r14, [rsp+1D8h+var_48] mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_44B21: lea rdi, [rsp+1D8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::~json_sax_dom_callback_parser() loc_44B2E: mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_44B3B: add rsp, 1B0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() jmp short loc_44B72 mov rbx, rax loc_44B72: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44B92 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44B92 mov rbx, rax loc_44B92: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44BAE mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44BAE mov rbx, rax loc_44BAE: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz loc_44C5E mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_44C5E jmp loc_44C5B mov rbx, rax lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() jmp short loc_44BFE mov rbx, rax loc_44BFE: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44C1E mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44C1E mov rbx, rax loc_44C1E: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44C3A mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44C3A mov rbx, rax loc_44C3A: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44CAC mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44CAC jmp short loc_44CA9 jmp short loc_44CA1 loc_44C5B: mov rbx, rax loc_44C5E: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_44CB9 mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44CB9 mov rbx, rax mov rax, [rsp+1D8h+var_120] test rax, rax jz short loc_44CB9 lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax jmp short loc_44CB9 loc_44CA1: mov rdi, rax call __clang_call_terminate loc_44CA9: mov rbx, rax loc_44CAC: lea rdi, [rsp+1D8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::~json_sax_dom_callback_parser() loc_44CB9: mov rdi, rbx call __Unwind_Resume
void 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>>>::parse( long long a1, char a2, char *a3) { char **v5; // rsi int v6; // eax char **v7; // r15 int v8; // r8d int v9; // r9d char v10; // al int v11; // eax long long v12; // r15 int v13; // r8d int v14; // r9d char v15; // bp void *v16; // [rsp+0h] [rbp-1D8h] void *v17; // [rsp+0h] [rbp-1D8h] void *v18; // [rsp+0h] [rbp-1D8h] void *v19; // [rsp+8h] [rbp-1D0h] BYREF long long v20; // [rsp+10h] [rbp-1C8h] long long v21; // [rsp+18h] [rbp-1C0h] BYREF void *v22; // [rsp+20h] [rbp-1B8h] long long *v23; // [rsp+28h] [rbp-1B0h] BYREF long long v24; // [rsp+30h] [rbp-1A8h] long long v25; // [rsp+38h] [rbp-1A0h] BYREF long long v26; // [rsp+40h] [rbp-198h] long long *v27; // [rsp+48h] [rbp-190h] BYREF long long v28; // [rsp+50h] [rbp-188h] long long v29; // [rsp+58h] [rbp-180h] BYREF int v30; // [rsp+60h] [rbp-178h] void ( **v31)(nlohmann::json_abi_v3_11_3::detail::exception *__hidden); // [rsp+68h] [rbp-170h] BYREF long long v32; // [rsp+70h] [rbp-168h] int v33; // [rsp+78h] [rbp-160h] BYREF int v34; // [rsp+80h] [rbp-158h] int v35; // [rsp+88h] [rbp-150h] long long v36[2]; // [rsp+90h] [rbp-148h] BYREF long long v37; // [rsp+A0h] [rbp-138h] __int128 v38; // [rsp+A8h] [rbp-130h] BYREF void ( *v39)(__int128 *, __int128 *, long long); // [rsp+B8h] [rbp-120h] char *v40; // [rsp+C8h] [rbp-110h] BYREF __int128 v41; // [rsp+D0h] [rbp-108h] __int128 v42; // [rsp+E0h] [rbp-F8h] char v43; // [rsp+F0h] [rbp-E8h] char v44; // [rsp+F1h] [rbp-E7h] char v45; // [rsp+140h] [rbp-98h] char v46[8]; // [rsp+180h] [rbp-58h] BYREF long long v47; // [rsp+188h] [rbp-50h] char v48[8]; // [rsp+190h] [rbp-48h] BYREF long long v49; // [rsp+198h] [rbp-40h] char v50[8]; // [rsp+1A0h] [rbp-38h] BYREF long long v51; // [rsp+1A8h] [rbp-30h] if ( *(_QWORD *)(a1 + 16) ) { 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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function( &v38, a1); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::json_sax_dom_callback_parser( &v40, a3, &v38, *(unsigned __int8 *)(a1 + 192)); if ( v39 ) v39(&v38, &v38, 3LL); v5 = &v40; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>>(a1); if ( a2 ) { v6 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan(a1 + 40); *(_DWORD *)(a1 + 32) = v6; if ( v6 != 15 ) { v7 = *(char ***)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( &v27, a1 + 40); v37 = *(_QWORD *)(a1 + 88); *(_OWORD *)v36 = *(_OWORD *)(a1 + 72); v19 = &v21; std::string::_M_construct<char const*>(&v19, "value", ""); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (int)&v23, a1, 15, (int)&v19, v8, v9, v16, (int)v19, v20, v21, (int)v22, (int)v23, v24, v25, v26); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::exception *)&v31, 101, (int)v36, v17, (int)v19, v20, v21, v22, (int)v23, v24, v25, v26, (int)v27, v28, v29, v30, (int)v31, v32, v33, v34, v35, v36[0]); v5 = v7; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v40, v7, &v27, &v31); v31 = off_EE308; std::runtime_error::~runtime_error((std::runtime_error *)&v33); std::exception::~exception((std::exception *)&v31); if ( v23 != &v25 ) { v5 = (char **)(v25 + 1); operator delete(v23, v25 + 1); } if ( v19 != &v21 ) { v5 = (char **)(v21 + 1); operator delete(v19, v21 + 1); } if ( v27 != &v29 ) { v5 = (char **)(v29 + 1); operator delete(v27, v29 + 1); } } } if ( v45 ) { v50[0] = 9; v51 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v50); 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>::operator=( a3, v50); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v50); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v50); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::~json_sax_dom_callback_parser( &v40, 0LL); return; } if ( *a3 == 9 ) { v48[0] = 0; v49 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v48); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v48); 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>::operator=( a3, v48); v5 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v48); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v48); } nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::~json_sax_dom_callback_parser( &v40, v5); goto LABEL_31; } v10 = *(_BYTE *)(a1 + 192); v40 = a3; v41 = 0LL; v42 = 0LL; v43 = 0; v44 = v10; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>>(a1); if ( a2 ) { v11 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan(a1 + 40); *(_DWORD *)(a1 + 32) = v11; if ( v11 != 15 ) { v12 = *(_QWORD *)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( &v27, a1 + 40); v37 = *(_QWORD *)(a1 + 88); *(_OWORD *)v36 = *(_OWORD *)(a1 + 72); v19 = &v21; std::string::_M_construct<char const*>(&v19, "value", ""); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (int)&v23, a1, 15, (int)&v19, v13, v14, v16, (int)v19, v20, v21, (int)v22, (int)v23, v24, v25, v26); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::exception *)&v31, 101, (int)v36, v18, (int)v19, v20, v21, v22, (int)v23, v24, v25, v26, (int)v27, v28, v29, v30, (int)v31, v32, v33, v34, v35, v36[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v40, v12, &v27, &v31); v31 = off_EE308; std::runtime_error::~runtime_error((std::runtime_error *)&v33); std::exception::~exception((std::exception *)&v31); if ( v23 != &v25 ) operator delete(v23, v25 + 1); if ( v19 != &v21 ) operator delete(v19, v21 + 1); if ( v27 != &v29 ) operator delete(v27, v29 + 1); } } v15 = v43; if ( v43 == 1 ) { v46[0] = 9; v47 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v46); 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>::operator=( a3, v46); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v46); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v46); } if ( (_QWORD)v41 ) operator delete((void *)v41, v42 - v41); if ( !v15 ) LABEL_31: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(a3); }
parse: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x1b0 MOV RBX,RDX MOV EBP,ESI MOV R14,RDI CMP qword ptr [RDI + 0x10],0x0 JZ 0x00144909 LEA R15,[RSP + 0xa8] MOV RDI,R15 MOV RSI,R14 CALL 0x001446a2 MOVZX ECX,byte ptr [R14 + 0xc0] LAB_0014473d: LEA RDI,[RSP + 0xc8] MOV RSI,RBX MOV RDX,R15 CALL 0x00145a38 MOV RAX,qword ptr [RSP + 0xb8] TEST RAX,RAX JZ 0x0014476f LAB_0014475d: LEA RDI,[RSP + 0xa8] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_0014476f: LEA RSI,[RSP + 0xc8] MOV RDI,R14 CALL 0x00145b32 TEST BPL,BPL JZ 0x001448ab LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00144e3a MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x001448ab MOV R15,qword ptr [R14 + 0x48] LAB_001447a5: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x00146932 LEA RAX,[R14 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0xa0],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x90],XMM0 LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LAB_001447d7: LEA RSI,[0x1bb628] LEA RDX,[0x1bb62d] LEA RDI,[RSP + 0x8] CALL 0x001590a2 LAB_001447ef: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x00146bea LAB_00144806: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x001469ec LAB_00144825: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x001468ec LEA RAX,[0x1ee308] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00118d30 LEA RDI,[RSP + 0x68] CALL 0x00118c30 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00144879 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_00144879: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00144890 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_00144890: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001448ab MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001186a0 LAB_001448ab: CMP byte ptr [RSP + 0x140],0x0 JZ 0x00144ad1 LEA R14,[RSP + 0x1a0] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,RBX MOV RSI,R14 CALL 0x00146ee0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R14 CALL 0x0014a5c0 LEA RDI,[RSP + 0xc8] CALL 0x00146f2a JMP 0x00144b3b LAB_00144909: MOV AL,byte ptr [R14 + 0xc0] LEA RSI,[RSP + 0xc8] MOV qword ptr [RSI],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSI + 0x8],XMM0 MOVUPS xmmword ptr [RSI + 0x18],XMM0 MOV byte ptr [RSI + 0x28],0x0 MOV byte ptr [RSI + 0x29],AL LAB_0014492d: MOV RDI,R14 CALL 0x00146faa TEST BPL,BPL JZ 0x00144a61 LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00144e3a MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x00144a61 MOV R15,qword ptr [R14 + 0x48] LAB_0014495b: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x00146932 LEA RAX,[R14 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0xa0],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x90],XMM0 LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LAB_0014498d: LEA RSI,[0x1bb628] LEA RDX,[0x1bb62d] LEA RDI,[RSP + 0x8] CALL 0x001590a2 LAB_001449a5: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x00146bea LAB_001449bc: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x001469ec LAB_001449db: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x00147d84 LEA RAX,[0x1ee308] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00118d30 LEA RDI,[RSP + 0x68] CALL 0x00118c30 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00144a2f MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_00144a2f: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00144a46 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_00144a46: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00144a61 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001186a0 LAB_00144a61: MOV BPL,byte ptr [RSP + 0xf0] CMP BPL,0x1 JNZ 0x00144aad LEA R14,[RSP + 0x180] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,RBX MOV RSI,R14 CALL 0x00146ee0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R14 CALL 0x0014a5c0 LAB_00144aad: MOV RDI,qword ptr [RSP + 0xd0] TEST RDI,RDI JZ 0x00144aca MOV RSI,qword ptr [RSP + 0xe0] SUB RSI,RDI CALL 0x001186a0 LAB_00144aca: TEST BPL,BPL JZ 0x00144b2e JMP 0x00144b3b LAB_00144ad1: CMP byte ptr [RBX],0x9 JNZ 0x00144b21 LEA R14,[RSP + 0x190] MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,RBX MOV RSI,R14 CALL 0x00146ee0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R14 CALL 0x0014a5c0 LAB_00144b21: LEA RDI,[RSP + 0xc8] CALL 0x00146f2a LAB_00144b2e: MOV RDI,RBX MOV ESI,0x1 CALL 0x0013d970 LAB_00144b3b: ADD RSP,0x1b0 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::parse(bool, 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>&) */ void __thiscall 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>>> ::parse(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>>> *this,bool param_1,basic_json *param_2) { ulong uVar1; char cVar2; int iVar3; bool bVar4; long *local_1d0 [2]; long local_1c0 [2]; long *local_1b0 [2]; long local_1a0 [2]; long *local_190 [2]; long local_180 [2]; int **local_170 [2]; runtime_error local_160 [24]; int4 local_148; int4 uStack_144; int4 uStack_140; int4 uStack_13c; int8 local_138; 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>&)> local_130 [16]; code *local_120; basic_json *local_110; void *local_108; int8 uStack_100; long local_f8; int8 uStack_f0; char local_e8; 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>>> local_e7; char local_98; data local_58 [8]; int8 local_50; data local_48 [8]; int8 local_40; data local_38 [8]; int8 local_30; if (*(long *)(this + 0x10) == 0) { local_e7 = this[0xc0]; local_108 = (void *)0x0; uStack_100 = 0; local_f8 = 0; uStack_f0 = 0; local_e8 = '\0'; local_110 = param_2; /* try { // try from 0014492d to 00144949 has its CatchHandler @ 00144c5b */ sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>> (this,(json_sax_dom_parser *)&local_110); if (param_1) { iVar3 = lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::scan((lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *)(this + 0x28)); *(int *)(this + 0x20) = iVar3; if (iVar3 != 0xf) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 0014495b to 00144967 has its CatchHandler @ 00144bd2 */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_138 = *(int8 *)(this + 0x58); local_148 = *(int4 *)(this + 0x48); uStack_144 = *(int4 *)(this + 0x4c); uStack_140 = *(int4 *)(this + 0x50); uStack_13c = *(int4 *)(this + 0x54); /* try { // try from 0014498d to 001449a4 has its CatchHandler @ 00144bab */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 001449a5 to 001449bb has its CatchHandler @ 00144b8f */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 001449bc to 001449da has its CatchHandler @ 00144b6f */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_170,0x65,&local_148,local_1b0,0); /* try { // try from 001449db to 001449f4 has its CatchHandler @ 00144b4b */ json_sax_dom_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>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_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>> *)&local_110,uVar1,(string *)local_190,(parse_error *)local_170); local_170[0] = &PTR__exception_001ee308; std::runtime_error::~runtime_error(local_160); std::exception::~exception((exception *)local_170); if (local_1b0[0] != local_1a0) { operator_delete(local_1b0[0],local_1a0[0] + 1); } if (local_1d0[0] != local_1c0) { operator_delete(local_1d0[0],local_1c0[0] + 1); } if (local_190[0] != local_180) { operator_delete(local_190[0],local_180[0] + 1); } } } cVar2 = local_e8; if (local_e8 == '\x01') { local_58[0] = (data)0x9; local_50 = 0; bVar4 = SUB81(local_58,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); 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> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_2,local_58); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_58); } if (local_108 != (void *)0x0) { operator_delete(local_108,local_f8 - (long)local_108); } if (cVar2 != '\0') { return; } } else { 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>&)> ::function(local_130,this); /* try { // try from 0014473d to 0014474f has its CatchHandler @ 00144c7d */ json_sax_dom_callback_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>> ::json_sax_dom_callback_parser ((json_sax_dom_callback_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>> *)&local_110,param_2,local_130,this[0xc0]); if (local_120 != (code *)0x0) { /* try { // try from 0014475d to 0014476e has its CatchHandler @ 00144c59 */ (*local_120)(local_130,local_130,3); } /* try { // try from 0014476f to 00144793 has its CatchHandler @ 00144ca9 */ sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>> (this,(json_sax_dom_callback_parser *)&local_110); if (param_1) { iVar3 = lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::scan((lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *)(this + 0x28)); *(int *)(this + 0x20) = iVar3; if (iVar3 != 0xf) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 001447a5 to 001447b1 has its CatchHandler @ 00144c57 */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_138 = *(int8 *)(this + 0x58); local_148 = *(int4 *)(this + 0x48); uStack_144 = *(int4 *)(this + 0x4c); uStack_140 = *(int4 *)(this + 0x50); uStack_13c = *(int4 *)(this + 0x54); /* try { // try from 001447d7 to 001447ee has its CatchHandler @ 00144c37 */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 001447ef to 00144805 has its CatchHandler @ 00144c1b */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 00144806 to 00144824 has its CatchHandler @ 00144bfb */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_170,0x65,&local_148,local_1b0,0); /* try { // try from 00144825 to 0014483e has its CatchHandler @ 00144bd7 */ json_sax_dom_callback_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>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_callback_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>> *)&local_110,uVar1,(string *)local_190,(parse_error *)local_170); local_170[0] = &PTR__exception_001ee308; std::runtime_error::~runtime_error(local_160); std::exception::~exception((exception *)local_170); if (local_1b0[0] != local_1a0) { operator_delete(local_1b0[0],local_1a0[0] + 1); } if (local_1d0[0] != local_1c0) { operator_delete(local_1d0[0],local_1c0[0] + 1); } if (local_190[0] != local_180) { operator_delete(local_190[0],local_180[0] + 1); } } } if (local_98 != '\0') { local_38[0] = (data)0x9; local_30 = 0; bVar4 = SUB81(local_38,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); 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> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_2,local_38); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_38); json_sax_dom_callback_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>> ::~json_sax_dom_callback_parser ((json_sax_dom_callback_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>> *)&local_110); return; } if (*param_2 == (basic_json)0x9) { local_48[0] = (data)0x0; local_40 = 0; bVar4 = SUB81(local_48,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); 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> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_2,local_48); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_48); } json_sax_dom_callback_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>> ::~json_sax_dom_callback_parser ((json_sax_dom_callback_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>> *)&local_110); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(param_2,0)); return; }
45,028
cs_enter
eloqsql/strings/ctype.c
static int cs_enter(MY_XML_PARSER *st,const char *attr, size_t len) { struct my_cs_file_info *i= (struct my_cs_file_info *)st->user_data; const struct my_cs_file_section_st *s= cs_file_sec(attr,len); int state= s ? s->state : 0; switch (state) { case 0: i->loader->reporter(WARNING_LEVEL, "Unknown LDML tag: '%.*s'", len, attr); break; case _CS_CHARSET: my_charset_file_reset_charset(i); break; case _CS_COLLATION: my_charset_file_reset_collation(i); break; case _CS_RESET: return tailoring_append(st, " &", 0, NULL); default: break; } return MY_XML_OK; }
O3
c
cs_enter: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r14 movq 0x140(%rdi), %rbx leaq 0x2b24dd(%rip), %r13 # 0x383220 leaq 0xb30e(%rip), %r12 # 0xdc058 movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx callq 0x291d0 testl %eax, %eax jne 0xd0d63 cmpb $0x0, (%r12,%r15) je 0xd0da3 movq 0x18(%r13), %r12 addq $0x10, %r13 testq %r12, %r12 jne 0xd0d4a movq 0x7a8(%rbx), %r8 leaq 0xe388(%rip), %rsi # 0xdf106 movl $0x1, %edi movq %r15, %rdx movq %r14, %rcx xorl %eax, %eax callq *0xa0(%r8) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl (%r13), %eax cmpl $0x8, %eax jg 0xd0dcd testl %eax, %eax je 0xd0d70 cmpl $0x8, %eax jne 0xd0d92 addq $0x6e0, %rbx # imm = 0x6E0 movl $0xc8, %edx movq %rbx, %rdi xorl %esi, %esi callq 0x292c0 jmp 0xd0d92 cmpl $0x9, %eax je 0xd0dfa cmpl $0x12d, %eax # imm = 0x12D jne 0xd0d92 leaq 0xe33f(%rip), %rsi # 0xdf11f movq %rbx, %rdi xorl %edx, %edx xorl %ecx, %ecx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xd1f9c movq $0x0, 0x690(%rbx) movb $0x0, 0x6a0(%rbx) jmp 0xd0d92
cs_enter: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdx mov r14, rsi mov rbx, [rdi+140h] lea r13, sec lea r12, aIndexXml+6; "xml" loc_D0D4A: mov rdi, r14 mov rsi, r12 mov rdx, r15 call _strncmp test eax, eax jnz short loc_D0D63 cmp byte ptr [r12+r15], 0 jz short loc_D0DA3 loc_D0D63: mov r12, [r13+18h] add r13, 10h test r12, r12 jnz short loc_D0D4A loc_D0D70: mov r8, [rbx+7A8h] lea rsi, aUnknownLdmlTag; "Unknown LDML tag: '%.*s'" mov edi, 1 mov rdx, r15 mov rcx, r14 xor eax, eax call qword ptr [r8+0A0h] loc_D0D92: xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_D0DA3: mov eax, [r13+0] cmp eax, 8 jg short loc_D0DCD test eax, eax jz short loc_D0D70 cmp eax, 8 jnz short loc_D0D92 add rbx, 6E0h mov edx, 0C8h mov rdi, rbx xor esi, esi call _memset jmp short loc_D0D92 loc_D0DCD: cmp eax, 9 jz short loc_D0DFA cmp eax, 12Dh jnz short loc_D0D92 lea rsi, asc_DF11F; " &" mov rdi, rbx xor edx, edx xor ecx, ecx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp tailoring_append loc_D0DFA: mov qword ptr [rbx+690h], 0 mov byte ptr [rbx+6A0h], 0 jmp short loc_D0D92
long long cs_enter(long long a1, const char *a2, long long a3) { long long v4; // rbx char *v5; // r13 char *v6; // r12 int v8; // eax v4 = *(_QWORD *)(a1 + 320); v5 = (char *)&sec; v6 = "xml"; while ( (unsigned int)strncmp(a2, v6, a3) || v6[a3] ) { v6 = (char *)*((_QWORD *)v5 + 3); v5 += 16; if ( !v6 ) goto LABEL_5; } v8 = *(_DWORD *)v5; if ( *(int *)v5 <= 8 ) { if ( v8 ) { if ( v8 == 8 ) memset(v4 + 1760, 0LL, 200LL); } else { LABEL_5: (*(void (**)(long long, const char *, ...))(*(_QWORD *)(v4 + 1960) + 160LL))( 1LL, "Unknown LDML tag: '%.*s'", a3, a2); } return 0LL; } if ( v8 == 9 ) { *(_QWORD *)(v4 + 1680) = 0LL; *(_BYTE *)(v4 + 1696) = 0; return 0LL; } if ( v8 != 301 ) return 0LL; return tailoring_append(v4, " &", 0LL, 0LL); }
cs_enter: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R14,RSI MOV RBX,qword ptr [RDI + 0x140] LEA R13,[0x483220] LEA R12,[0x1dc058] LAB_001d0d4a: MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 CALL 0x001291d0 TEST EAX,EAX JNZ 0x001d0d63 CMP byte ptr [R12 + R15*0x1],0x0 JZ 0x001d0da3 LAB_001d0d63: MOV R12,qword ptr [R13 + 0x18] ADD R13,0x10 TEST R12,R12 JNZ 0x001d0d4a LAB_001d0d70: MOV R8,qword ptr [RBX + 0x7a8] LEA RSI,[0x1df106] MOV EDI,0x1 MOV RDX,R15 MOV RCX,R14 XOR EAX,EAX CALL qword ptr [R8 + 0xa0] LAB_001d0d92: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001d0da3: MOV EAX,dword ptr [R13] CMP EAX,0x8 JG 0x001d0dcd TEST EAX,EAX JZ 0x001d0d70 CMP EAX,0x8 JNZ 0x001d0d92 ADD RBX,0x6e0 MOV EDX,0xc8 MOV RDI,RBX XOR ESI,ESI CALL 0x001292c0 JMP 0x001d0d92 LAB_001d0dcd: CMP EAX,0x9 JZ 0x001d0dfa CMP EAX,0x12d JNZ 0x001d0d92 LEA RSI,[0x1df11f] MOV RDI,RBX XOR EDX,EDX XOR ECX,ECX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001d1f9c LAB_001d0dfa: MOV qword ptr [RBX + 0x690],0x0 MOV byte ptr [RBX + 0x6a0],0x0 JMP 0x001d0d92
int8 cs_enter(long param_1,char *param_2,size_t param_3) { long lVar1; int iVar2; int8 uVar3; char *__s2; int *piVar4; lVar1 = *(long *)(param_1 + 0x140); piVar4 = &sec; __s2 = "xml"; while ((iVar2 = strncmp(param_2,__s2,param_3), iVar2 != 0 || (__s2[param_3] != '\0'))) { __s2 = *(char **)(piVar4 + 6); piVar4 = piVar4 + 4; if (__s2 == (char *)0x0) { LAB_001d0d70: (**(code **)(*(long *)(lVar1 + 0x7a8) + 0xa0))(1,"Unknown LDML tag: \'%.*s\'",param_3,param_2) ; return 0; } } iVar2 = *piVar4; if (8 < iVar2) { if (iVar2 == 9) { *(int8 *)(lVar1 + 0x690) = 0; *(int1 *)(lVar1 + 0x6a0) = 0; return 0; } if (iVar2 != 0x12d) { return 0; } uVar3 = tailoring_append(lVar1,&DAT_001df11f,0,0); return uVar3; } if (iVar2 != 0) { if (iVar2 != 8) { return 0; } memset((void *)(lVar1 + 0x6e0),0,200); return 0; } goto LAB_001d0d70; }
45,029
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::propagateComponentTags()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp
void Refinement::propagateComponentTags() { populateFaceTagVectors(); populateEdgeTagVectors(); populateVertexTagVectors(); }
O3
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::propagateComponentTags(): pushq %rbx movq %rdi, %rbx movq 0x10(%rdi), %rdi movslq (%rdi), %rsi addq $0x60, %rdi callq 0x39590 movq %rbx, %rdi callq 0x389b0 movq %rbx, %rdi callq 0x3aca0 movq %rbx, %rdi popq %rbx jmp 0x3a280 nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement22propagateComponentTagsEv: push rbx mov rbx, rdi mov rdi, [rdi+10h] movsxd rsi, dword ptr [rdi] add rdi, 60h ; '`' call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal5Level4FTagESaIS5_EE6resizeEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag>::resize(ulong) mov rdi, rbx; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement31populateFaceTagsFromParentFacesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateFaceTagsFromParentFaces(void) mov rdi, rbx; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement22populateEdgeTagVectorsEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagVectors(void) mov rdi, rbx; this pop rbx jmp __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement24populateVertexTagVectorsEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexTagVectors(void)
long long OpenSubdiv::v3_6_0::Vtr::internal::Refinement::propagateComponentTags( OpenSubdiv::v3_6_0::Vtr::internal::Refinement *this) { std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag>::resize( *((_QWORD *)this + 2) + 96LL, **((int **)this + 2)); OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateFaceTagsFromParentFaces(this); OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagVectors(this); return OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexTagVectors(this); }
propagateComponentTags: PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x10] MOVSXD RSI,dword ptr [RDI] ADD RDI,0x60 CALL 0x00139590 MOV RDI,RBX CALL 0x001389b0 MOV RDI,RBX CALL 0x0013aca0 MOV RDI,RBX POP RBX JMP 0x0013a280
/* OpenSubdiv::v3_6_0::Vtr::internal::Refinement::propagateComponentTags() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Refinement::propagateComponentTags(Refinement *this) { std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag>> ::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag>> *)(*(int **)(this + 0x10) + 0x18),(long)**(int **)(this + 0x10)); populateFaceTagsFromParentFaces(this); populateEdgeTagVectors(this); populateVertexTagVectors(this); return; }
45,030
common_log::set_colors(bool)
monkey531[P]llama/common/log.cpp
void set_colors(bool colors) { pause(); if (colors) { g_col[COMMON_LOG_COL_DEFAULT] = LOG_COL_DEFAULT; g_col[COMMON_LOG_COL_BOLD] = LOG_COL_BOLD; g_col[COMMON_LOG_COL_RED] = LOG_COL_RED; g_col[COMMON_LOG_COL_GREEN] = LOG_COL_GREEN; g_col[COMMON_LOG_COL_YELLOW] = LOG_COL_YELLOW; g_col[COMMON_LOG_COL_BLUE] = LOG_COL_BLUE; g_col[COMMON_LOG_COL_MAGENTA] = LOG_COL_MAGENTA; g_col[COMMON_LOG_COL_CYAN] = LOG_COL_CYAN; g_col[COMMON_LOG_COL_WHITE] = LOG_COL_WHITE; } else { for (size_t i = 0; i < g_col.size(); i++) { g_col[i] = ""; } } resume(); }
O1
cpp
common_log::set_colors(bool): pushq %rbp pushq %rbx pushq %rax movl %esi, %ebp movq %rdi, %rbx callq 0xcd5e4 testl %ebp, %ebp je 0xcdaa1 movq 0x62a0a(%rip), %rax # 0x130440 leaq 0x2a5c2(%rip), %rcx # 0xf7fff movq %rcx, (%rax) movq 0x629f9(%rip), %rax # 0x130440 leaq 0x2a5b6(%rip), %rcx # 0xf8004 movq %rcx, 0x8(%rax) leaq 0x2a5b0(%rip), %rcx # 0xf8009 movq %rcx, 0x10(%rax) leaq 0x2a5ab(%rip), %rcx # 0xf800f movq %rcx, 0x18(%rax) leaq 0x2a5a6(%rip), %rcx # 0xf8015 movq %rcx, 0x20(%rax) leaq 0x2a5a1(%rip), %rcx # 0xf801b movq %rcx, 0x28(%rax) leaq 0x2a59c(%rip), %rcx # 0xf8021 movq %rcx, 0x30(%rax) leaq 0x2a597(%rip), %rcx # 0xf8027 movq %rcx, 0x38(%rax) leaq 0x1b79c(%rip), %rcx # 0xe9237 movq %rcx, 0x40(%rax) jmp 0xcdadb movq 0x62998(%rip), %rax # 0x130440 cmpq %rax, 0x62999(%rip) # 0x130448 je 0xcdadb xorl %ecx, %ecx leaq 0x1b8c7(%rip), %rdx # 0xe9381 movq %rdx, (%rax,%rcx,8) incq %rcx movq 0x62980(%rip), %rsi # 0x130448 movq 0x62971(%rip), %rax # 0x130440 subq %rax, %rsi sarq $0x3, %rsi cmpq %rsi, %rcx jb 0xcdaba movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %rbp jmp 0xcd66c nop
_ZN10common_log10set_colorsEb: push rbp push rbx push rax mov ebp, esi mov rbx, rdi call _ZN10common_log5pauseEv; common_log::pause(void) test ebp, ebp jz short loc_CDAA1 mov rax, cs:_ZL5g_col; g_col lea rcx, a0m; "\x1B[0m" mov [rax], rcx mov rax, cs:_ZL5g_col; g_col lea rcx, a1m; "\x1B[1m" mov [rax+8], rcx lea rcx, a31m; "\x1B[31m" mov [rax+10h], rcx lea rcx, a32m; "\x1B[32m" mov [rax+18h], rcx lea rcx, a33m; "\x1B[33m" mov [rax+20h], rcx lea rcx, a34m; "\x1B[34m" mov [rax+28h], rcx lea rcx, a35m; "\x1B[35m" mov [rax+30h], rcx lea rcx, a36m; "\x1B[36m" mov [rax+38h], rcx lea rcx, aDmS37m+7; "\x1B[37m" mov [rax+40h], rcx jmp short loc_CDADB loc_CDAA1: mov rax, cs:_ZL5g_col; g_col cmp cs:qword_130448, rax jz short loc_CDADB xor ecx, ecx lea rdx, aTarget+9; "" loc_CDABA: mov [rax+rcx*8], rdx inc rcx mov rsi, cs:qword_130448 mov rax, cs:_ZL5g_col; g_col sub rsi, rax sar rsi, 3 cmp rcx, rsi jb short loc_CDABA loc_CDADB: mov rdi, rbx; this add rsp, 8 pop rbx pop rbp jmp _ZN10common_log6resumeEv; common_log::resume(void)
long long common_log::set_colors(common_log *this, int a2) { _QWORD *v2; // rax long long v3; // rax unsigned long long v4; // rcx common_log::pause(this); if ( a2 ) { *(_QWORD *)g_col = "\x1B[0m"; v2 = (_QWORD *)g_col; *(_QWORD *)(g_col + 8) = "\x1B[1m"; v2[2] = "\x1B[31m"; v2[3] = "\x1B[32m"; v2[4] = "\x1B[33m"; v2[5] = "\x1B[34m"; v2[6] = "\x1B[35m"; v2[7] = "\x1B[36m"; v2[8] = "\x1B[37m"; } else { v3 = g_col; if ( qword_130448 != g_col ) { v4 = 0LL; do { *(_QWORD *)(v3 + 8 * v4++) = ""; v3 = g_col; } while ( v4 < (qword_130448 - g_col) >> 3 ); } } return common_log::resume(this); }
set_colors: PUSH RBP PUSH RBX PUSH RAX MOV EBP,ESI MOV RBX,RDI CALL 0x001cd5e4 TEST EBP,EBP JZ 0x001cdaa1 MOV RAX,qword ptr [0x00230440] LEA RCX,[0x1f7fff] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [0x00230440] LEA RCX,[0x1f8004] MOV qword ptr [RAX + 0x8],RCX LEA RCX,[0x1f8009] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[0x1f800f] MOV qword ptr [RAX + 0x18],RCX LEA RCX,[0x1f8015] MOV qword ptr [RAX + 0x20],RCX LEA RCX,[0x1f801b] MOV qword ptr [RAX + 0x28],RCX LEA RCX,[0x1f8021] MOV qword ptr [RAX + 0x30],RCX LEA RCX,[0x1f8027] MOV qword ptr [RAX + 0x38],RCX LEA RCX,[0x1e9237] MOV qword ptr [RAX + 0x40],RCX JMP 0x001cdadb LAB_001cdaa1: MOV RAX,qword ptr [0x00230440] CMP qword ptr [0x00230448],RAX JZ 0x001cdadb XOR ECX,ECX LEA RDX,[0x1e9381] LAB_001cdaba: MOV qword ptr [RAX + RCX*0x8],RDX INC RCX MOV RSI,qword ptr [0x00230448] MOV RAX,qword ptr [0x00230440] SUB RSI,RAX SAR RSI,0x3 CMP RCX,RSI JC 0x001cdaba LAB_001cdadb: MOV RDI,RBX ADD RSP,0x8 POP RBX POP RBP JMP 0x001cd66c
/* common_log::set_colors(bool) */ void __thiscall common_log::set_colors(common_log *this,bool param_1) { int8 *puVar1; ulong uVar2; int7 in_register_00000031; pause(this); if ((int)CONCAT71(in_register_00000031,param_1) == 0) { if (DAT_00230448 != g_col) { uVar2 = 0; do { g_col[uVar2] = ""; uVar2 = uVar2 + 1; } while (uVar2 < (ulong)((long)DAT_00230448 - (long)g_col >> 3)); } } else { *g_col = &DAT_001f7fff; puVar1 = g_col; g_col[1] = &DAT_001f8004; puVar1[2] = &DAT_001f8009; puVar1[3] = &DAT_001f800f; puVar1[4] = &DAT_001f8015; puVar1[5] = &DAT_001f801b; puVar1[6] = &DAT_001f8021; puVar1[7] = &DAT_001f8027; puVar1[8] = &DAT_001e9237; } resume(this); return; }
45,031
fmt::v10::detail::bigint::align(fmt::v10::detail::bigint const&)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
FMT_CONSTEXPR20 void align(const bigint& other) { int exp_difference = exp_ - other.exp_; if (exp_difference <= 0) return; int num_bigits = static_cast<int>(bigits_.size()); bigits_.resize(to_unsigned(num_bigits + exp_difference)); for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) bigits_[j] = bigits_[i]; std::uninitialized_fill_n(bigits_.data(), exp_difference, 0u); exp_ -= exp_difference; }
O0
c
fmt::v10::detail::bigint::align(fmt::v10::detail::bigint const&): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x8(%rsp) movl 0xa0(%rax), %eax movq 0x28(%rsp), %rcx subl 0xa0(%rcx), %eax movl %eax, 0x24(%rsp) cmpl $0x0, 0x24(%rsp) jg 0xb7069 jmp 0xb712a movq 0x8(%rsp), %rdi callq 0xb5dd0 movl %eax, 0x20(%rsp) movl 0x20(%rsp), %edi addl 0x24(%rsp), %edi callq 0xa5690 movq 0x8(%rsp), %rdi movl %eax, %eax movl %eax, %esi callq 0xb6230 movl 0x20(%rsp), %eax subl $0x1, %eax movl %eax, 0x1c(%rsp) movl 0x1c(%rsp), %eax addl 0x24(%rsp), %eax movl %eax, 0x18(%rsp) cmpl $0x0, 0x1c(%rsp) jl 0xb70f0 movq 0x8(%rsp), %rdi movl 0x1c(%rsp), %esi callq 0xb67e0 movq 0x8(%rsp), %rdi movl (%rax), %eax movl %eax, 0x4(%rsp) movl 0x18(%rsp), %esi callq 0xb67e0 movl 0x4(%rsp), %ecx movl %ecx, (%rax) movl 0x1c(%rsp), %eax addl $-0x1, %eax movl %eax, 0x1c(%rsp) movl 0x18(%rsp), %eax addl $-0x1, %eax movl %eax, 0x18(%rsp) jmp 0xb70a9 movq 0x8(%rsp), %rdi callq 0xb5d80 movq %rax, %rdi movl 0x24(%rsp), %esi movl $0x0, 0x14(%rsp) leaq 0x14(%rsp), %rdx callq 0x95bc0 movq 0x8(%rsp), %rax movl 0x24(%rsp), %edx movl 0xa0(%rax), %ecx subl %edx, %ecx movl %ecx, 0xa0(%rax) addq $0x38, %rsp retq nop
_ZN3fmt3v106detail6bigint5alignERKS2_: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov rax, [rsp+38h+var_8] mov [rsp+38h+var_30], rax mov eax, [rax+0A0h] mov rcx, [rsp+38h+var_10] sub eax, [rcx+0A0h] mov [rsp+38h+var_14], eax cmp [rsp+38h+var_14], 0 jg short loc_B7069 jmp loc_B712A loc_B7069: mov rdi, [rsp+38h+var_30] call _ZNK3fmt3v106detail6bufferIjE4sizeEv; fmt::v10::detail::buffer<uint>::size(void) mov [rsp+38h+var_18], eax mov edi, [rsp+38h+var_18] add edi, [rsp+38h+var_14] call _ZN3fmt3v106detail11to_unsignedIiEENSt13make_unsignedIT_E4typeES4_; fmt::v10::detail::to_unsigned<int>(int) mov rdi, [rsp+38h+var_30] mov eax, eax mov esi, eax call _ZN3fmt3v1019basic_memory_bufferIjLm32ESaIjEE6resizeEm; fmt::v10::basic_memory_buffer<uint,32ul,std::allocator<uint>>::resize(ulong) mov eax, [rsp+38h+var_18] sub eax, 1 mov [rsp+38h+var_1C], eax mov eax, [rsp+38h+var_1C] add eax, [rsp+38h+var_14] mov [rsp+38h+var_20], eax loc_B70A9: cmp [rsp+38h+var_1C], 0 jl short loc_B70F0 mov rdi, [rsp+38h+var_30] mov esi, [rsp+38h+var_1C] call _ZN3fmt3v106detail6bufferIjEixIiEERjT_; fmt::v10::detail::buffer<uint>::operator[]<int>(int) mov rdi, [rsp+38h+var_30] mov eax, [rax] mov [rsp+38h+var_34], eax mov esi, [rsp+38h+var_20] call _ZN3fmt3v106detail6bufferIjEixIiEERjT_; fmt::v10::detail::buffer<uint>::operator[]<int>(int) mov ecx, [rsp+38h+var_34] mov [rax], ecx mov eax, [rsp+38h+var_1C] add eax, 0FFFFFFFFh mov [rsp+38h+var_1C], eax mov eax, [rsp+38h+var_20] add eax, 0FFFFFFFFh mov [rsp+38h+var_20], eax jmp short loc_B70A9 loc_B70F0: mov rdi, [rsp+38h+var_30] call _ZN3fmt3v106detail6bufferIjE4dataEv; fmt::v10::detail::buffer<uint>::data(void) mov rdi, rax mov esi, [rsp+38h+var_14] mov [rsp+38h+var_24], 0 lea rdx, [rsp+38h+var_24] call __ZSt20uninitialized_fill_nIPjijET_S1_T0_RKT1_; std::uninitialized_fill_n<uint *,int,uint>(uint *,int,uint const&) mov rax, [rsp+38h+var_30] mov edx, [rsp+38h+var_14] mov ecx, [rax+0A0h] sub ecx, edx mov [rax+0A0h], ecx loc_B712A: add rsp, 38h retn
long long fmt::v10::detail::bigint::align(fmt::v10::detail::bigint *this, const fmt::v10::detail::bigint *a2) { long long result; // rax unsigned int v3; // eax long long v4; // rax int v5; // [rsp+4h] [rbp-34h] int v6; // [rsp+14h] [rbp-24h] BYREF int v7; // [rsp+18h] [rbp-20h] int v8; // [rsp+1Ch] [rbp-1Ch] int v9; // [rsp+20h] [rbp-18h] int v10; // [rsp+24h] [rbp-14h] const fmt::v10::detail::bigint *v11; // [rsp+28h] [rbp-10h] fmt::v10::detail::bigint *v12; // [rsp+30h] [rbp-8h] v12 = this; v11 = a2; result = (unsigned int)(*((_DWORD *)this + 40) - *((_DWORD *)a2 + 40)); v10 = *((_DWORD *)this + 40) - *((_DWORD *)a2 + 40); if ( v10 > 0 ) { v9 = fmt::v10::detail::buffer<unsigned int>::size((long long)this); v3 = fmt::v10::detail::to_unsigned<int>(v10 + v9); fmt::v10::basic_memory_buffer<unsigned int,32ul,std::allocator<unsigned int>>::resize((long long)this, v3); v8 = v9 - 1; v7 = v10 + v9 - 1; while ( v8 >= 0 ) { v5 = *(_DWORD *)fmt::v10::detail::buffer<unsigned int>::operator[]<int>((long long)this, v8); *(_DWORD *)fmt::v10::detail::buffer<unsigned int>::operator[]<int>((long long)this, v7) = v5; --v8; --v7; } v4 = fmt::v10::detail::buffer<unsigned int>::data((long long)this); v6 = 0; std::uninitialized_fill_n<unsigned int *,int,unsigned int>(v4, (unsigned int)v10, &v6); result = (long long)this; *((_DWORD *)this + 40) -= v10; } return result; }
align: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x8],RAX MOV EAX,dword ptr [RAX + 0xa0] MOV RCX,qword ptr [RSP + 0x28] SUB EAX,dword ptr [RCX + 0xa0] MOV dword ptr [RSP + 0x24],EAX CMP dword ptr [RSP + 0x24],0x0 JG 0x001b7069 JMP 0x001b712a LAB_001b7069: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001b5dd0 MOV dword ptr [RSP + 0x20],EAX MOV EDI,dword ptr [RSP + 0x20] ADD EDI,dword ptr [RSP + 0x24] CALL 0x001a5690 MOV RDI,qword ptr [RSP + 0x8] MOV EAX,EAX MOV ESI,EAX CALL 0x001b6230 MOV EAX,dword ptr [RSP + 0x20] SUB EAX,0x1 MOV dword ptr [RSP + 0x1c],EAX MOV EAX,dword ptr [RSP + 0x1c] ADD EAX,dword ptr [RSP + 0x24] MOV dword ptr [RSP + 0x18],EAX LAB_001b70a9: CMP dword ptr [RSP + 0x1c],0x0 JL 0x001b70f0 MOV RDI,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RSP + 0x1c] CALL 0x001b67e0 MOV RDI,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x4],EAX MOV ESI,dword ptr [RSP + 0x18] CALL 0x001b67e0 MOV ECX,dword ptr [RSP + 0x4] MOV dword ptr [RAX],ECX MOV EAX,dword ptr [RSP + 0x1c] ADD EAX,-0x1 MOV dword ptr [RSP + 0x1c],EAX MOV EAX,dword ptr [RSP + 0x18] ADD EAX,-0x1 MOV dword ptr [RSP + 0x18],EAX JMP 0x001b70a9 LAB_001b70f0: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001b5d80 MOV RDI,RAX MOV ESI,dword ptr [RSP + 0x24] MOV dword ptr [RSP + 0x14],0x0 LEA RDX,[RSP + 0x14] CALL 0x00195bc0 MOV RAX,qword ptr [RSP + 0x8] MOV EDX,dword ptr [RSP + 0x24] MOV ECX,dword ptr [RAX + 0xa0] SUB ECX,EDX MOV dword ptr [RAX + 0xa0],ECX LAB_001b712a: ADD RSP,0x38 RET
/* fmt::v10::detail::bigint::align(fmt::v10::detail::bigint const&) */ void __thiscall fmt::v10::detail::bigint::align(bigint *this,bigint *param_1) { uint uVar1; uint *puVar2; uint local_24; int local_20; int local_1c; int local_18; int local_14; bigint *local_10; bigint *local_8; local_14 = *(int *)(this + 0xa0) - *(int *)(param_1 + 0xa0); if (0 < local_14) { local_10 = param_1; local_8 = this; local_18 = buffer<unsigned_int>::size((buffer<unsigned_int> *)this); uVar1 = to_unsigned<int>(local_18 + local_14); basic_memory_buffer<unsigned_int,32ul,std::allocator<unsigned_int>>::resize ((basic_memory_buffer<unsigned_int,32ul,std::allocator<unsigned_int>> *)this, (ulong)uVar1); local_1c = local_18 + -1; local_20 = local_1c + local_14; for (; -1 < local_1c; local_1c = local_1c + -1) { puVar2 = buffer<unsigned_int>::operator[]<int>((buffer<unsigned_int> *)this,local_1c); uVar1 = *puVar2; puVar2 = buffer<unsigned_int>::operator[]<int>((buffer<unsigned_int> *)this,local_20); *puVar2 = uVar1; local_20 = local_20 + -1; } puVar2 = (uint *)buffer<unsigned_int>::data((buffer<unsigned_int> *)this); local_24 = 0; std::uninitialized_fill_n<unsigned_int*,int,unsigned_int>(puVar2,local_14,&local_24); *(int *)(this + 0xa0) = *(int *)(this + 0xa0) - local_14; } return; }
45,032
fmt::v10::detail::bigint::align(fmt::v10::detail::bigint const&)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
FMT_CONSTEXPR20 void align(const bigint& other) { int exp_difference = exp_ - other.exp_; if (exp_difference <= 0) return; int num_bigits = static_cast<int>(bigits_.size()); bigits_.resize(to_unsigned(num_bigits + exp_difference)); for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) bigits_[j] = bigits_[i]; std::uninitialized_fill_n(bigits_.data(), exp_difference, 0u); exp_ -= exp_difference; }
O3
c
fmt::v10::detail::bigint::align(fmt::v10::detail::bigint const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movl 0xa0(%rdi), %r15d subl 0xa0(%rsi), %r15d jle 0x3d02d movq %rdi, %rbx movl 0x10(%rdi), %r12d leal (%r15,%r12), %r14d movq 0x18(%rdi), %rax cmpq %r14, %rax jae 0x3cfd3 movq (%rbx), %rax movq %rbx, %rdi movq %r14, %rsi callq *(%rax) movq 0x18(%rbx), %rax cmpq %r14, %rax cmovbq %rax, %r14 movq %r14, 0x10(%rbx) testl %r12d, %r12d jle 0x3d014 movl %r12d, %eax decl %eax leal (%r12,%r15), %ecx decl %ecx movq 0x8(%rbx), %rdi movslq %ecx, %rdx leaq (%rdi,%rax,4), %rcx notq %rax leaq (%rdi,%rdx,4), %rdx xorl %esi, %esi movl (%rcx,%rsi,4), %r8d movl %r8d, (%rdx,%rsi,4) decq %rsi cmpq %rsi, %rax jne 0x3d002 jmp 0x3d018 movq 0x8(%rbx), %rdi movl %r15d, %edx shlq $0x2, %rdx xorl %esi, %esi callq 0x2c970 subl %r15d, 0xa0(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq nop
_ZN3fmt3v106detail6bigint5alignERKS2_: push r15 push r14 push r12 push rbx push rax mov r15d, [rdi+0A0h] sub r15d, [rsi+0A0h] jle short loc_3D02D mov rbx, rdi mov r12d, [rdi+10h] lea r14d, [r15+r12] mov rax, [rdi+18h] cmp rax, r14 jnb short loc_3CFD3 mov rax, [rbx] mov rdi, rbx mov rsi, r14 call qword ptr [rax] mov rax, [rbx+18h] loc_3CFD3: cmp rax, r14 cmovb r14, rax mov [rbx+10h], r14 test r12d, r12d jle short loc_3D014 mov eax, r12d dec eax lea ecx, [r12+r15] dec ecx mov rdi, [rbx+8] movsxd rdx, ecx lea rcx, [rdi+rax*4] not rax lea rdx, [rdi+rdx*4] xor esi, esi loc_3D002: mov r8d, [rcx+rsi*4] mov [rdx+rsi*4], r8d dec rsi cmp rax, rsi jnz short loc_3D002 jmp short loc_3D018 loc_3D014: mov rdi, [rbx+8] loc_3D018: mov edx, r15d shl rdx, 2 xor esi, esi call _memset sub [rbx+0A0h], r15d loc_3D02D: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long fmt::v10::detail::bigint::align(fmt::v10::detail::bigint *this, const fmt::v10::detail::bigint *a2) { long long result; // rax int v3; // r15d bool v4; // cc unsigned int v5; // r15d int v7; // r12d unsigned long long v8; // r14 unsigned long long v9; // rax long long v10; // rax long long v11; // rdi long long v12; // rcx long long v13; // rax long long v14; // rsi v3 = *((_DWORD *)this + 40); v4 = v3 <= *((_DWORD *)a2 + 40); v5 = v3 - *((_DWORD *)a2 + 40); if ( !v4 ) { v7 = *((_DWORD *)this + 4); v8 = v5 + v7; v9 = *((_QWORD *)this + 3); if ( v9 < v8 ) { (**(void ( ***)(fmt::v10::detail::bigint *, _QWORD))this)(this, v5 + v7); v9 = *((_QWORD *)this + 3); } if ( v9 < v8 ) v8 = v9; *((_QWORD *)this + 2) = v8; if ( v7 <= 0 ) { v11 = *((_QWORD *)this + 1); } else { v10 = (unsigned int)(v7 - 1); v11 = *((_QWORD *)this + 1); v12 = v11 + 4 * v10; v13 = ~v10; v14 = 0LL; do { *(_DWORD *)(v11 + 4LL * (int)(v7 + v5 - 1) + 4 * v14) = *(_DWORD *)(v12 + 4 * v14); --v14; } while ( v13 != v14 ); } result = memset(v11, 0LL, 4LL * v5); *((_DWORD *)this + 40) -= v5; } return result; }
align: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R15D,dword ptr [RDI + 0xa0] SUB R15D,dword ptr [RSI + 0xa0] JLE 0x0013d02d MOV RBX,RDI MOV R12D,dword ptr [RDI + 0x10] LEA R14D,[R15 + R12*0x1] MOV RAX,qword ptr [RDI + 0x18] CMP RAX,R14 JNC 0x0013cfd3 MOV RAX,qword ptr [RBX] MOV RDI,RBX MOV RSI,R14 CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x18] LAB_0013cfd3: CMP RAX,R14 CMOVC R14,RAX MOV qword ptr [RBX + 0x10],R14 TEST R12D,R12D JLE 0x0013d014 MOV EAX,R12D DEC EAX LEA ECX,[R12 + R15*0x1] DEC ECX MOV RDI,qword ptr [RBX + 0x8] MOVSXD RDX,ECX LEA RCX,[RDI + RAX*0x4] NOT RAX LEA RDX,[RDI + RDX*0x4] XOR ESI,ESI LAB_0013d002: MOV R8D,dword ptr [RCX + RSI*0x4] MOV dword ptr [RDX + RSI*0x4],R8D DEC RSI CMP RAX,RSI JNZ 0x0013d002 JMP 0x0013d018 LAB_0013d014: MOV RDI,qword ptr [RBX + 0x8] LAB_0013d018: MOV EDX,R15D SHL RDX,0x2 XOR ESI,ESI CALL 0x0012c970 SUB dword ptr [RBX + 0xa0],R15D LAB_0013d02d: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* fmt::v10::detail::bigint::align(fmt::v10::detail::bigint const&) */ void __thiscall fmt::v10::detail::bigint::align(bigint *this,bigint *param_1) { int iVar1; ulong uVar2; void *__s; ulong uVar3; uint uVar4; uVar4 = *(int *)(this + 0xa0) - *(int *)(param_1 + 0xa0); if (uVar4 != 0 && *(int *)(param_1 + 0xa0) <= *(int *)(this + 0xa0)) { iVar1 = *(int *)(this + 0x10); uVar3 = (ulong)(uVar4 + iVar1); uVar2 = *(ulong *)(this + 0x18); if (uVar2 < uVar3) { (*(code *)**(int8 **)this)(this); uVar2 = *(ulong *)(this + 0x18); } if (uVar2 < uVar3) { uVar3 = uVar2; } *(ulong *)(this + 0x10) = uVar3; if (iVar1 < 1) { __s = *(void **)(this + 8); } else { __s = *(void **)(this + 8); uVar2 = 0; do { *(int4 *)((long)__s + uVar2 * 4 + (long)(int)(iVar1 + uVar4 + -1) * 4) = *(int4 *)((long)__s + uVar2 * 4 + (ulong)(iVar1 - 1) * 4); uVar2 = uVar2 - 1; } while (~(ulong)(iVar1 - 1) != uVar2); } memset(__s,0,(ulong)uVar4 << 2); *(uint *)(this + 0xa0) = *(int *)(this + 0xa0) - uVar4; } return; }
45,033
stbi_loadf_from_file
monkey531[P]llama/examples/llava/../../common/stb_image.h
STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) { stbi__context s; stbi__start_file(&s,f); return stbi__loadf_main(&s,x,y,comp,req_comp); }
O1
c
stbi_loadf_from_file: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe0, %rsp movl %r8d, %ebx movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %r12 movq 0x3ac2b(%rip), %rax # 0x5a820 leaq 0x38(%rsp), %rcx movq %rax, -0x18(%rcx) movups 0x3ac0b(%rip), %xmm0 # 0x5a810 movups %xmm0, -0x28(%rcx) movq %rdi, -0x10(%rcx) movabsq $0x8000000001, %rax # imm = 0x8000000001 movq %rax, -0x8(%rcx) movl $0x0, 0x80(%rcx) movq %rcx, 0x98(%rcx) movq %rcx, 0x88(%rcx) movq %rsp, %r13 movq %r13, %rdi callq 0x32c25 movq 0xc8(%r13), %rax movq %rax, 0xd8(%r13) movq %r13, %rdi movq %r12, %rsi movq %r15, %rdx movq %r14, %rcx movl %ebx, %r8d callq 0x1f8a1 addq $0xe0, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
stbi_loadf_from_file: push r15 push r14 push r13 push r12 push rbx sub rsp, 0E0h mov ebx, r8d mov r14, rcx mov r15, rdx mov r12, rsi mov rax, cs:off_5A820 lea rcx, [rsp+108h+var_D0] mov [rcx-18h], rax movups xmm0, xmmword ptr cs:_ZL21stbi__stdio_callbacks; stbi__stdio_callbacks movups xmmword ptr [rcx-28h], xmm0 mov [rcx-10h], rdi mov rax, 8000000001h mov [rcx-8], rax mov dword ptr [rcx+80h], 0 mov [rcx+98h], rcx mov [rcx+88h], rcx mov r13, rsp mov rdi, r13 call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [r13+0C8h] mov [r13+0D8h], rax mov rdi, r13 mov rsi, r12 mov rdx, r15 mov rcx, r14 mov r8d, ebx call _ZL16stbi__loadf_mainP13stbi__contextPiS1_S1_i; stbi__loadf_main(stbi__context *,int *,int *,int *,int) add rsp, 0E0h pop rbx pop r12 pop r13 pop r14 pop r15 retn
void * stbi_loadf_from_file(long long a1, int *a2, int *a3, int *a4, int a5) { _OWORD v9[2]; // [rsp+0h] [rbp-108h] BYREF long long ( *v10)(void *); // [rsp+20h] [rbp-E8h] long long v11; // [rsp+28h] [rbp-E0h] long long v12; // [rsp+30h] [rbp-D8h] _BYTE v13[128]; // [rsp+38h] [rbp-D0h] BYREF int v14; // [rsp+B8h] [rbp-50h] _BYTE *v15; // [rsp+C0h] [rbp-48h] long long v16; // [rsp+C8h] [rbp-40h] _BYTE *v17; // [rsp+D0h] [rbp-38h] long long v18; // [rsp+D8h] [rbp-30h] v10 = stbi__stdio_eof; v9[1] = *(_OWORD *)&stbi__stdio_callbacks; v11 = a1; v12 = 0x8000000001LL; v14 = 0; v17 = v13; v15 = v13; stbi__refill_buffer(v9); v18 = v16; return stbi__loadf_main((long long)v9, a2, a3, a4, a5); }
stbi_loadf_from_file: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xe0 MOV EBX,R8D MOV R14,RCX MOV R15,RDX MOV R12,RSI MOV RAX,qword ptr [0x0015a820] LEA RCX,[RSP + 0x38] MOV qword ptr [RCX + -0x18],RAX MOVUPS XMM0,xmmword ptr [0x0015a810] MOVUPS xmmword ptr [RCX + -0x28],XMM0 MOV qword ptr [RCX + -0x10],RDI MOV RAX,0x8000000001 MOV qword ptr [RCX + -0x8],RAX MOV dword ptr [RCX + 0x80],0x0 MOV qword ptr [RCX + 0x98],RCX MOV qword ptr [RCX + 0x88],RCX MOV R13,RSP MOV RDI,R13 CALL 0x00132c25 MOV RAX,qword ptr [R13 + 0xc8] MOV qword ptr [R13 + 0xd8],RAX MOV RDI,R13 MOV RSI,R12 MOV RDX,R15 MOV RCX,R14 MOV R8D,EBX CALL 0x0011f8a1 ADD RSP,0xe0 POP RBX POP R12 POP R13 POP R14 POP R15 RET
void stbi_loadf_from_file(int8 param_1,int *param_2,int *param_3,int *param_4,int param_5) { stbi__context asStack_108 [40]; int8 local_e0; int8 local_d8; int1 local_d0 [128]; int4 local_50; int1 *local_48; int8 local_40; int1 *local_38; int8 local_30; local_48 = local_d0; asStack_108._32_8_ = stbi__stdio_callbacks._16_8_; asStack_108._16_8_ = stbi__stdio_callbacks._0_8_; asStack_108._24_8_ = stbi__stdio_callbacks._8_8_; local_d8 = 0x8000000001; local_50 = 0; local_e0 = param_1; local_38 = local_48; stbi__refill_buffer(asStack_108); local_30 = local_40; stbi__loadf_main(asStack_108,param_2,param_3,param_4,param_5); return; }
45,034
spdlog::details::registry::set_levels(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, spdlog::level::level_enum, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, spdlog::level::level_enum>>>, spdlog::level::level_enum*)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/details/registry-inl.h
SPDLOG_INLINE void registry::set_levels(log_levels levels, level::level_enum *global_level) { std::lock_guard<std::mutex> lock(logger_map_mutex_); log_levels_ = std::move(levels); auto global_level_requested = global_level != nullptr; global_log_level_ = global_level_requested ? *global_level : global_log_level_; for (auto &logger : loggers_) { auto logger_entry = log_levels_.find(logger.first); if (logger_entry != log_levels_.end()) { logger.second->set_level(logger_entry->second); } else if (global_level_requested) { logger.second->set_level(*global_level); } } }
O0
c
spdlog::details::registry::set_levels(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, spdlog::level::level_enum, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, spdlog::level::level_enum>>>, spdlog::level::level_enum*): subq $0x98, %rsp movq %rsi, 0x28(%rsp) movq %rdi, 0x90(%rsp) movq %rsi, 0x88(%rsp) movq %rdx, 0x80(%rsp) movq 0x90(%rsp), %rsi movq %rsi, 0x20(%rsp) leaq 0x78(%rsp), %rdi callq 0x389f0 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi addq $0xb0, %rdi callq 0x39e30 cmpq $0x0, 0x80(%rsp) setne %al andb $0x1, %al movb %al, 0x77(%rsp) testb $0x1, 0x77(%rsp) je 0x34a1a movq 0x80(%rsp), %rax movl (%rax), %eax movl %eax, 0x1c(%rsp) jmp 0x34a29 movq 0x20(%rsp), %rax movl 0xf0(%rax), %eax movl %eax, 0x1c(%rsp) movq 0x20(%rsp), %rax movl 0x1c(%rsp), %ecx movl %ecx, 0xf0(%rax) addq $0x78, %rax movq %rax, 0x68(%rsp) movq 0x68(%rsp), %rdi callq 0x39b60 movq %rax, 0x60(%rsp) movq 0x68(%rsp), %rdi callq 0x39970 movq %rax, 0x58(%rsp) leaq 0x60(%rsp), %rdi leaq 0x58(%rsp), %rsi callq 0x39950 xorb $-0x1, %al testb $0x1, %al jne 0x34a79 jmp 0x34b62 leaq 0x60(%rsp), %rdi callq 0x39b90 movq 0x20(%rsp), %rdi movq %rax, 0x50(%rsp) addq $0xb0, %rdi movq 0x50(%rsp), %rsi callq 0x39880 movq %rax, 0x10(%rsp) jmp 0x34aa5 movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rax movq %rax, 0x48(%rsp) addq $0xb0, %rdi callq 0x398d0 movq %rax, 0x30(%rsp) leaq 0x48(%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0x398b0 xorb $-0x1, %al testb $0x1, %al jne 0x34adc jmp 0x34b24 movq 0x50(%rsp), %rdi addq $0x20, %rdi callq 0x39790 movq %rax, 0x8(%rsp) leaq 0x48(%rsp), %rdi callq 0x39900 movq 0x8(%rsp), %rdi movl 0x20(%rax), %esi callq 0x33b00 jmp 0x34b08 jmp 0x34b51 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x40(%rsp) movl %eax, 0x3c(%rsp) leaq 0x78(%rsp), %rdi callq 0x38ab0 jmp 0x34b74 testb $0x1, 0x77(%rsp) je 0x34b4f movq 0x50(%rsp), %rdi addq $0x20, %rdi callq 0x39790 movq %rax, %rdi movq 0x80(%rsp), %rax movl (%rax), %esi callq 0x33b00 jmp 0x34b4d jmp 0x34b4f jmp 0x34b51 jmp 0x34b53 leaq 0x60(%rsp), %rdi callq 0x39bb0 jmp 0x34a5f leaq 0x78(%rsp), %rdi callq 0x38ab0 addq $0x98, %rsp retq movq 0x40(%rsp), %rdi callq 0x14c80 nop
_ZN6spdlog7details8registry10set_levelsESt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_5level10level_enumESt4hashIS8_ESt8equal_toIS8_ESaISt4pairIKS8_SA_EEEPSA_: sub rsp, 98h mov [rsp+98h+var_70], rsi mov [rsp+98h+var_8], rdi mov [rsp+98h+var_10], rsi mov [rsp+98h+var_18], rdx mov rsi, [rsp+98h+var_8] mov [rsp+98h+var_78], rsi lea rdi, [rsp+98h+var_20] call _ZNSt10lock_guardISt5mutexEC2ERS0_; std::lock_guard<std::mutex>::lock_guard(std::mutex&) mov rdi, [rsp+98h+var_78] mov rsi, [rsp+98h+var_70] add rdi, 0B0h call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6spdlog5level10level_enumESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEEaSEOSH_; std::unordered_map<std::string,spdlog::level::level_enum>::operator=(std::unordered_map<std::string,spdlog::level::level_enum>&&) cmp [rsp+98h+var_18], 0 setnz al and al, 1 mov [rsp+98h+var_21], al test [rsp+98h+var_21], 1 jz short loc_34A1A mov rax, [rsp+98h+var_18] mov eax, [rax] mov [rsp+98h+var_7C], eax jmp short loc_34A29 loc_34A1A: mov rax, [rsp+98h+var_78] mov eax, [rax+0F0h] mov [rsp+98h+var_7C], eax loc_34A29: mov rax, [rsp+98h+var_78] mov ecx, [rsp+98h+var_7C] mov [rax+0F0h], ecx add rax, 78h ; 'x' mov [rsp+98h+var_30], rax mov rdi, [rsp+98h+var_30] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEE5beginEv; std::unordered_map<std::string,std::shared_ptr<spdlog::logger>>::begin(void) mov [rsp+98h+var_38], rax mov rdi, [rsp+98h+var_30] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEE3endEv; std::unordered_map<std::string,std::shared_ptr<spdlog::logger>>::end(void) mov [rsp+98h+var_40], rax loc_34A5F: lea rdi, [rsp+98h+var_38] lea rsi, [rsp+98h+var_40] call _ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEEELb1EEESG_; std::__detail::operator==(std::__detail::_Node_iterator_base<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,true> const&) xor al, 0FFh test al, 1 jnz short loc_34A79 jmp loc_34B62 loc_34A79: lea rdi, [rsp+98h+var_38] call _ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEEELb0ELb1EEdeEv; std::__detail::_Node_iterator<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,false,true>::operator*(void) mov rdi, [rsp+98h+var_78] mov [rsp+98h+var_48], rax add rdi, 0B0h mov rsi, [rsp+98h+var_48] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6spdlog5level10level_enumESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE4findERSE_; std::unordered_map<std::string,spdlog::level::level_enum>::find(std::string const&) mov [rsp+98h+var_88], rax jmp short $+2 loc_34AA5: mov rdi, [rsp+98h+var_78] mov rax, [rsp+98h+var_88] mov [rsp+98h+var_50], rax add rdi, 0B0h call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6spdlog5level10level_enumESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE3endEv; std::unordered_map<std::string,spdlog::level::level_enum>::end(void) mov [rsp+98h+var_68], rax lea rdi, [rsp+98h+var_50] lea rsi, [rsp+98h+var_68] call _ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6spdlog5level10level_enumEELb1EEESF_; std::__detail::operator==(std::__detail::_Node_iterator_base<std::pair<std::string const,spdlog::level::level_enum>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,spdlog::level::level_enum>,true> const&) xor al, 0FFh test al, 1 jnz short loc_34ADC jmp short loc_34B24 loc_34ADC: mov rdi, [rsp+98h+var_48] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN6spdlog6loggerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<spdlog::logger,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov [rsp+98h+var_90], rax lea rdi, [rsp+98h+var_50] call _ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6spdlog5level10level_enumEELb0ELb1EEptEv; std::__detail::_Node_iterator<std::pair<std::string const,spdlog::level::level_enum>,false,true>::operator->(void) mov rdi, [rsp+98h+var_90] mov esi, [rax+20h] call _ZN6spdlog6logger9set_levelENS_5level10level_enumE; spdlog::logger::set_level(spdlog::level::level_enum) jmp short $+2 loc_34B08: jmp short loc_34B51 mov rcx, rax mov eax, edx mov [rsp+arg_38], rcx mov [rsp+arg_34], eax lea rdi, [rsp+arg_70] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() jmp short loc_34B74 loc_34B24: test [rsp+98h+var_21], 1 jz short loc_34B4F mov rdi, [rsp+98h+var_48] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN6spdlog6loggerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<spdlog::logger,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax mov rax, [rsp+98h+var_18] mov esi, [rax] call _ZN6spdlog6logger9set_levelENS_5level10level_enumE; spdlog::logger::set_level(spdlog::level::level_enum) jmp short $+2 loc_34B4D: jmp short $+2 loc_34B4F: jmp short $+2 loc_34B51: jmp short $+2 loc_34B53: lea rdi, [rsp+98h+var_38] call _ZNSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEEELb0ELb1EEppEv; std::__detail::_Node_iterator<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,false,true>::operator++(void) jmp loc_34A5F loc_34B62: lea rdi, [rsp+98h+var_20] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() add rsp, 98h retn loc_34B74: mov rdi, [rsp+arg_38] call __Unwind_Resume
long long spdlog::details::registry::set_levels(long long a1, long long a2, __int32 *a3) { long long v3; // rax long long v4; // rax long long v6; // [rsp+8h] [rbp-90h] __int32 v7; // [rsp+1Ch] [rbp-7Ch] long long v8[3]; // [rsp+30h] [rbp-68h] BYREF long long v9; // [rsp+48h] [rbp-50h] BYREF long long v10; // [rsp+50h] [rbp-48h] long long v11; // [rsp+58h] [rbp-40h] BYREF _QWORD v12[2]; // [rsp+60h] [rbp-38h] BYREF bool v13; // [rsp+77h] [rbp-21h] _BYTE v14[8]; // [rsp+78h] [rbp-20h] BYREF __int32 *v15; // [rsp+80h] [rbp-18h] long long v16; // [rsp+88h] [rbp-10h] long long v17; // [rsp+90h] [rbp-8h] v17 = a1; v16 = a2; v15 = a3; std::lock_guard<std::mutex>::lock_guard(v14, a1); std::unordered_map<std::string,spdlog::level::level_enum>::operator=(a1 + 176, a2); v13 = v15 != 0LL; if ( v15 ) v7 = *v15; else v7 = *(_DWORD *)(a1 + 240); *(_DWORD *)(a1 + 240) = v7; v12[1] = a1 + 120; v12[0] = std::unordered_map<std::string,std::shared_ptr<spdlog::logger>>::begin(a1 + 120); v11 = std::unordered_map<std::string,std::shared_ptr<spdlog::logger>>::end(a1 + 120); while ( (std::__detail::operator==(v12, &v11) & 1) == 0 ) { v10 = std::__detail::_Node_iterator<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,false,true>::operator*(v12); v9 = std::unordered_map<std::string,spdlog::level::level_enum>::find(a1 + 176, v10); v8[0] = std::unordered_map<std::string,spdlog::level::level_enum>::end(a1 + 176); if ( (std::__detail::operator==(&v9, v8) & 1) != 0 ) { if ( v13 ) { v4 = std::__shared_ptr_access<spdlog::logger,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v10 + 32); spdlog::logger::set_level(v4, *v15); } } else { v6 = std::__shared_ptr_access<spdlog::logger,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v10 + 32); v3 = std::__detail::_Node_iterator<std::pair<std::string const,spdlog::level::level_enum>,false,true>::operator->(&v9); spdlog::logger::set_level(v6, *(_DWORD *)(v3 + 32)); } std::__detail::_Node_iterator<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,false,true>::operator++(v12); } return std::lock_guard<std::mutex>::~lock_guard(v14); }
set_levels: SUB RSP,0x98 MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x90],RDI MOV qword ptr [RSP + 0x88],RSI MOV qword ptr [RSP + 0x80],RDX MOV RSI,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x20],RSI LEA RDI,[RSP + 0x78] CALL 0x001389f0 MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] ADD RDI,0xb0 CALL 0x00139e30 CMP qword ptr [RSP + 0x80],0x0 SETNZ AL AND AL,0x1 MOV byte ptr [RSP + 0x77],AL TEST byte ptr [RSP + 0x77],0x1 JZ 0x00134a1a MOV RAX,qword ptr [RSP + 0x80] MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x1c],EAX JMP 0x00134a29 LAB_00134a1a: MOV RAX,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RAX + 0xf0] MOV dword ptr [RSP + 0x1c],EAX LAB_00134a29: MOV RAX,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RSP + 0x1c] MOV dword ptr [RAX + 0xf0],ECX ADD RAX,0x78 MOV qword ptr [RSP + 0x68],RAX MOV RDI,qword ptr [RSP + 0x68] CALL 0x00139b60 MOV qword ptr [RSP + 0x60],RAX MOV RDI,qword ptr [RSP + 0x68] CALL 0x00139970 MOV qword ptr [RSP + 0x58],RAX LAB_00134a5f: LEA RDI,[RSP + 0x60] LEA RSI,[RSP + 0x58] CALL 0x00139950 XOR AL,0xff TEST AL,0x1 JNZ 0x00134a79 JMP 0x00134b62 LAB_00134a79: LEA RDI,[RSP + 0x60] CALL 0x00139b90 MOV RDI,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x50],RAX ADD RDI,0xb0 MOV RSI,qword ptr [RSP + 0x50] LAB_00134a99: CALL 0x00139880 MOV qword ptr [RSP + 0x10],RAX JMP 0x00134aa5 LAB_00134aa5: MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x48],RAX ADD RDI,0xb0 CALL 0x001398d0 MOV qword ptr [RSP + 0x30],RAX LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x30] CALL 0x001398b0 XOR AL,0xff TEST AL,0x1 JNZ 0x00134adc JMP 0x00134b24 LAB_00134adc: MOV RDI,qword ptr [RSP + 0x50] ADD RDI,0x20 CALL 0x00139790 MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x48] CALL 0x00139900 MOV RDI,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RAX + 0x20] CALL 0x00133b00 JMP 0x00134b08 LAB_00134b08: JMP 0x00134b51 LAB_00134b24: TEST byte ptr [RSP + 0x77],0x1 JZ 0x00134b4f MOV RDI,qword ptr [RSP + 0x50] ADD RDI,0x20 CALL 0x00139790 MOV RDI,RAX MOV RAX,qword ptr [RSP + 0x80] MOV ESI,dword ptr [RAX] CALL 0x00133b00 LAB_00134b4b: JMP 0x00134b4d LAB_00134b4d: JMP 0x00134b4f LAB_00134b4f: JMP 0x00134b51 LAB_00134b51: JMP 0x00134b53 LAB_00134b53: LEA RDI,[RSP + 0x60] CALL 0x00139bb0 JMP 0x00134a5f LAB_00134b62: LEA RDI,[RSP + 0x78] CALL 0x00138ab0 ADD RSP,0x98 RET
/* spdlog::details::registry::set_levels(std::unordered_map<std::__cxx11::string, spdlog::level::level_enum, std::hash<std::__cxx11::string >, std::equal_to<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, spdlog::level::level_enum> > >, spdlog::level::level_enum*) */ void __thiscall spdlog::details::registry::set_levels(registry *this,unordered_map *param_2,int4 *param_3) { byte bVar1; long lVar2; logger *plVar3; int4 local_7c; int8 local_68 [3]; int8 local_50; string *local_48; int8 local_40; int8 local_38; unordered_map<std::__cxx11::string,std::shared_ptr<spdlog::logger>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>>> *local_30; byte local_21; lock_guard<std::mutex> local_20 [8]; int4 *local_18; unordered_map *local_10; registry *local_8; local_18 = param_3; local_10 = param_2; local_8 = this; std::lock_guard<std::mutex>::lock_guard(local_20,(mutex *)this); std:: unordered_map<std::__cxx11::string,spdlog::level::level_enum,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,spdlog::level::level_enum>>> ::operator=((unordered_map<std::__cxx11::string,spdlog::level::level_enum,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,spdlog::level::level_enum>>> *)(this + 0xb0),param_2); local_21 = local_18 != (int4 *)0x0; if ((bool)local_21) { local_7c = *local_18; } else { local_7c = *(int4 *)(this + 0xf0); } *(int4 *)(this + 0xf0) = local_7c; local_30 = (unordered_map<std::__cxx11::string,std::shared_ptr<spdlog::logger>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>>> *)(this + 0x78); local_38 = std:: unordered_map<std::__cxx11::string,std::shared_ptr<spdlog::logger>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>>> ::begin(local_30); local_40 = std:: unordered_map<std::__cxx11::string,std::shared_ptr<spdlog::logger>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>>> ::end(); while (bVar1 = std::__detail::operator== ((_Node_iterator_base *)&local_38,(_Node_iterator_base *)&local_40), ((bVar1 ^ 0xff) & 1) != 0) { local_48 = (string *) std::__detail:: _Node_iterator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>,false,true> ::operator*((_Node_iterator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>,false,true> *)&local_38); /* try { // try from 00134a99 to 00134b4a has its CatchHandler @ 00134b0a */ local_50 = std:: unordered_map<std::__cxx11::string,spdlog::level::level_enum,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,spdlog::level::level_enum>>> ::find((unordered_map<std::__cxx11::string,spdlog::level::level_enum,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,spdlog::level::level_enum>>> *)(this + 0xb0),local_48); local_68[0] = std:: unordered_map<std::__cxx11::string,spdlog::level::level_enum,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,spdlog::level::level_enum>>> ::end(); bVar1 = std::__detail::operator== ((_Node_iterator_base *)&local_50,(_Node_iterator_base *)local_68); if (((bVar1 ^ 0xff) & 1) == 0) { if ((local_21 & 1) != 0) { plVar3 = (logger *) std::__shared_ptr_access<spdlog::logger,(__gnu_cxx::_Lock_policy)2,false,false>:: operator->((__shared_ptr_access<spdlog::logger,(__gnu_cxx::_Lock_policy)2,false,false> *)(local_48 + 0x20)); logger::set_level(plVar3,*local_18); } } else { plVar3 = (logger *) std::__shared_ptr_access<spdlog::logger,(__gnu_cxx::_Lock_policy)2,false,false>:: operator->((__shared_ptr_access<spdlog::logger,(__gnu_cxx::_Lock_policy)2,false,false> *)(local_48 + 0x20)); lVar2 = std::__detail:: _Node_iterator<std::pair<std::__cxx11::string_const,spdlog::level::level_enum>,false,true> ::operator->((_Node_iterator<std::pair<std::__cxx11::string_const,spdlog::level::level_enum>,false,true> *)&local_50); logger::set_level(plVar3,*(int4 *)(lVar2 + 0x20)); } std::__detail:: _Node_iterator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>,false,true> ::operator++((_Node_iterator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>,false,true> *)&local_38); } std::lock_guard<std::mutex>::~lock_guard(local_20); return; }
45,035
mysql_fetch_row
eloqsql/libmariadb/libmariadb/mariadb_lib.c
MYSQL_ROW STDCALL mysql_fetch_row(MYSQL_RES *res) { if (!res) return 0; if (res->handle) { if (res->handle->status != MYSQL_STATUS_USE_RESULT && res->handle->status != MYSQL_STATUS_GET_RESULT) return 0; } if (!res->data) { /* Unbufferred fetch */ if (!res->eof && res->handle) { if (!(res->handle->methods->db_read_one_row(res->handle,res->field_count,res->row, res->lengths))) { res->row_count++; return(res->current_row=res->row); } res->eof=1; res->handle->status=MYSQL_STATUS_READY; /* Don't clear handle in mysql_free_results */ res->handle=0; } return((MYSQL_ROW) NULL); } { MYSQL_ROW tmp; if (!res->data_cursor) { return(res->current_row=(MYSQL_ROW) NULL); } tmp = res->data_cursor->data; res->data_cursor = res->data_cursor->next; return(res->current_row=tmp); } }
O0
c
mysql_fetch_row: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) jne 0x51820 movq $0x0, -0x8(%rbp) jmp 0x51972 movq -0x10(%rbp), %rax cmpq $0x0, 0x78(%rax) je 0x5185c movq -0x10(%rbp), %rax movq 0x78(%rax), %rax cmpl $0x2, 0x488(%rax) je 0x5185a movq -0x10(%rbp), %rax movq 0x78(%rax), %rax cmpl $0x1, 0x488(%rax) je 0x5185a movq $0x0, -0x8(%rbp) jmp 0x51972 jmp 0x5185c movq -0x10(%rbp), %rax cmpq $0x0, 0x18(%rax) jne 0x5191e movq -0x10(%rbp), %rax cmpb $0x0, 0x80(%rax) jne 0x51914 movq -0x10(%rbp), %rax cmpq $0x0, 0x78(%rax) je 0x51914 movq -0x10(%rbp), %rax movq 0x78(%rax), %rax movq 0x4d0(%rax), %rax movq 0x30(%rax), %rax movq -0x10(%rbp), %rcx movq 0x78(%rcx), %rdi movq -0x10(%rbp), %rcx movl 0x8(%rcx), %esi movq -0x10(%rbp), %rcx movq 0x60(%rcx), %rdx movq -0x10(%rbp), %rcx movq 0x70(%rcx), %rcx callq *%rax cmpl $0x0, %eax jne 0x518eb movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movq -0x10(%rbp), %rax movq 0x60(%rax), %rax movq -0x10(%rbp), %rcx movq %rax, 0x68(%rcx) movq %rax, -0x8(%rbp) jmp 0x51972 movq -0x10(%rbp), %rax movb $0x1, 0x80(%rax) movq -0x10(%rbp), %rax movq 0x78(%rax), %rax movl $0x0, 0x488(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x78(%rax) movq $0x0, -0x8(%rbp) jmp 0x51972 movq -0x10(%rbp), %rax cmpq $0x0, 0x20(%rax) jne 0x5193f movq -0x10(%rbp), %rax movq $0x0, 0x68(%rax) movq $0x0, -0x8(%rbp) jmp 0x51972 movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx movq %rax, 0x68(%rcx) movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopl (%rax)
mysql_fetch_row: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi cmp [rbp+var_10], 0 jnz short loc_51820 mov [rbp+var_8], 0 jmp loc_51972 loc_51820: mov rax, [rbp+var_10] cmp qword ptr [rax+78h], 0 jz short loc_5185C mov rax, [rbp+var_10] mov rax, [rax+78h] cmp dword ptr [rax+488h], 2 jz short loc_5185A mov rax, [rbp+var_10] mov rax, [rax+78h] cmp dword ptr [rax+488h], 1 jz short loc_5185A mov [rbp+var_8], 0 jmp loc_51972 loc_5185A: jmp short $+2 loc_5185C: mov rax, [rbp+var_10] cmp qword ptr [rax+18h], 0 jnz loc_5191E mov rax, [rbp+var_10] cmp byte ptr [rax+80h], 0 jnz loc_51914 mov rax, [rbp+var_10] cmp qword ptr [rax+78h], 0 jz loc_51914 mov rax, [rbp+var_10] mov rax, [rax+78h] mov rax, [rax+4D0h] mov rax, [rax+30h] mov rcx, [rbp+var_10] mov rdi, [rcx+78h] mov rcx, [rbp+var_10] mov esi, [rcx+8] mov rcx, [rbp+var_10] mov rdx, [rcx+60h] mov rcx, [rbp+var_10] mov rcx, [rcx+70h] call rax cmp eax, 0 jnz short loc_518EB mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 1 mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax+60h] mov rcx, [rbp+var_10] mov [rcx+68h], rax mov [rbp+var_8], rax jmp loc_51972 loc_518EB: mov rax, [rbp+var_10] mov byte ptr [rax+80h], 1 mov rax, [rbp+var_10] mov rax, [rax+78h] mov dword ptr [rax+488h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+78h], 0 loc_51914: mov [rbp+var_8], 0 jmp short loc_51972 loc_5191E: mov rax, [rbp+var_10] cmp qword ptr [rax+20h], 0 jnz short loc_5193F mov rax, [rbp+var_10] mov qword ptr [rax+68h], 0 mov [rbp+var_8], 0 jmp short loc_51972 loc_5193F: mov rax, [rbp+var_10] mov rax, [rax+20h] mov rax, [rax+8] mov [rbp+var_18], rax mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+20h], rcx mov rax, [rbp+var_18] mov rcx, [rbp+var_10] mov [rcx+68h], rax mov [rbp+var_8], rax loc_51972: mov rax, [rbp+var_8] add rsp, 20h pop rbp retn
long long mysql_fetch_row(long long a1) { long long v1; // rax long long v3; // [rsp+8h] [rbp-18h] if ( !a1 ) return 0LL; if ( *(_QWORD *)(a1 + 120) && *(_DWORD *)(*(_QWORD *)(a1 + 120) + 1160LL) != 2 && *(_DWORD *)(*(_QWORD *)(a1 + 120) + 1160LL) != 1 ) { return 0LL; } if ( !*(_QWORD *)(a1 + 24) ) { if ( !*(_BYTE *)(a1 + 128) && *(_QWORD *)(a1 + 120) ) { if ( !(*(unsigned int ( **)(_QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 120) + 1232LL) + 48LL))( *(_QWORD *)(a1 + 120), *(unsigned int *)(a1 + 8), *(_QWORD *)(a1 + 96), *(_QWORD *)(a1 + 112)) ) { ++*(_QWORD *)a1; v1 = *(_QWORD *)(a1 + 96); *(_QWORD *)(a1 + 104) = v1; return v1; } *(_BYTE *)(a1 + 128) = 1; *(_DWORD *)(*(_QWORD *)(a1 + 120) + 1160LL) = 0; *(_QWORD *)(a1 + 120) = 0LL; } return 0LL; } if ( *(_QWORD *)(a1 + 32) ) { v3 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 8LL); *(_QWORD *)(a1 + 32) = **(_QWORD **)(a1 + 32); *(_QWORD *)(a1 + 104) = v3; return v3; } else { *(_QWORD *)(a1 + 104) = 0LL; return 0LL; } }
mysql_fetch_row: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI CMP qword ptr [RBP + -0x10],0x0 JNZ 0x00151820 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00151972 LAB_00151820: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x78],0x0 JZ 0x0015185c MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] CMP dword ptr [RAX + 0x488],0x2 JZ 0x0015185a MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] CMP dword ptr [RAX + 0x488],0x1 JZ 0x0015185a MOV qword ptr [RBP + -0x8],0x0 JMP 0x00151972 LAB_0015185a: JMP 0x0015185c LAB_0015185c: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x18],0x0 JNZ 0x0015191e MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x80],0x0 JNZ 0x00151914 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x78],0x0 JZ 0x00151914 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] MOV RAX,qword ptr [RAX + 0x4d0] MOV RAX,qword ptr [RAX + 0x30] MOV RCX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RCX + 0x78] MOV RCX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RCX + 0x8] MOV RCX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RCX + 0x60] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x70] CALL RAX CMP EAX,0x0 JNZ 0x001518eb MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x60] MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x68],RAX MOV qword ptr [RBP + -0x8],RAX JMP 0x00151972 LAB_001518eb: MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x80],0x1 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] MOV dword ptr [RAX + 0x488],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x78],0x0 LAB_00151914: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00151972 LAB_0015191e: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x20],0x0 JNZ 0x0015193f MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x68],0x0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00151972 LAB_0015193f: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x68],RAX MOV qword ptr [RBP + -0x8],RAX LAB_00151972: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x20 POP RBP RET
long mysql_fetch_row(long *param_1) { int iVar1; long local_10; if (param_1 == (long *)0x0) { local_10 = 0; } else if (((param_1[0xf] == 0) || (*(int *)(param_1[0xf] + 0x488) == 2)) || (*(int *)(param_1[0xf] + 0x488) == 1)) { if (param_1[3] == 0) { if (((char)param_1[0x10] == '\0') && (param_1[0xf] != 0)) { iVar1 = (**(code **)(*(long *)(param_1[0xf] + 0x4d0) + 0x30)) (param_1[0xf],(int)param_1[1],param_1[0xc],param_1[0xe]); if (iVar1 == 0) { *param_1 = *param_1 + 1; param_1[0xd] = param_1[0xc]; return param_1[0xc]; } *(int1 *)(param_1 + 0x10) = 1; *(int4 *)(param_1[0xf] + 0x488) = 0; param_1[0xf] = 0; } local_10 = 0; } else if (param_1[4] == 0) { param_1[0xd] = 0; local_10 = 0; } else { local_10 = *(long *)(param_1[4] + 8); param_1[4] = *(long *)param_1[4]; param_1[0xd] = local_10; } } else { local_10 = 0; } return local_10; }
45,036
maria_ft_add_word
eloqsql/storage/maria/ma_ft_parser.c
static int maria_ft_add_word(MYSQL_FTPARSER_PARAM *param, const char *word, int word_len, MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info __attribute__((unused))) { TREE *wtree; FT_WORD w; MY_FT_PARSER_PARAM *ft_param=param->mysql_ftparam; DBUG_ENTER("maria_ft_add_word"); wtree= ft_param->wtree; if (param->flags & MYSQL_FTFLAGS_NEED_COPY) { uchar *ptr; DBUG_ASSERT(wtree->with_delete == 0); ptr= (uchar *)alloc_root(ft_param->mem_root, word_len); memcpy(ptr, word, word_len); w.pos= ptr; } else w.pos= (uchar*) word; w.len= word_len; if (!tree_insert(wtree, &w, 0, wtree->custom_arg)) { delete_tree(wtree, 0); DBUG_RETURN(1); } DBUG_RETURN(0); }
O3
c
maria_ft_add_word: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %edx, %r14d movq %rsi, %r15 movq 0x18(%rdi), %rax movq (%rax), %rbx testb $0x1, 0x34(%rdi) je 0x5f7a3 movq 0x8(%rax), %rdi movslq %r14d, %r12 movq %r12, %rsi callq 0x9ca87 movq %rax, %r13 movq %rax, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x29080 movq %r13, %r15 leaq -0x40(%rbp), %rsi movq %r15, (%rsi) movl %r14d, 0x8(%rsi) movq 0x230(%rbx), %rcx xorl %r14d, %r14d movq %rbx, %rdi xorl %edx, %edx callq 0xa47e2 testq %rax, %rax jne 0x5f7d7 movq %rbx, %rdi xorl %esi, %esi callq 0xa46fa movl $0x1, %r14d movl %r14d, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
maria_ft_add_word: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14d, edx mov r15, rsi mov rax, [rdi+18h] mov rbx, [rax] test byte ptr [rdi+34h], 1 jz short loc_5F7A3 mov rdi, [rax+8] movsxd r12, r14d mov rsi, r12 call alloc_root mov r13, rax mov rdi, rax mov rsi, r15 mov rdx, r12 call _memcpy mov r15, r13 loc_5F7A3: lea rsi, [rbp+var_40] mov [rsi], r15 mov [rsi+8], r14d mov rcx, [rbx+230h] xor r14d, r14d mov rdi, rbx xor edx, edx call tree_insert test rax, rax jnz short loc_5F7D7 mov rdi, rbx xor esi, esi call delete_tree mov r14d, 1 loc_5F7D7: mov eax, r14d add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long maria_ft_add_word(long long a1, long long a2, int a3) { long long v4; // r15 long long *v5; // rax long long v6; // rbx long long v7; // r13 unsigned int v8; // r14d long long v10; // [rsp+0h] [rbp-40h] BYREF int v11; // [rsp+8h] [rbp-38h] v4 = a2; v5 = *(long long **)(a1 + 24); v6 = *v5; if ( (*(_BYTE *)(a1 + 52) & 1) != 0 ) { v7 = alloc_root(v5[1], a3); memcpy(v7, a2, a3); v4 = v7; } v10 = v4; v11 = a3; v8 = 0; if ( !tree_insert(v6, &v10, 0LL, *(_QWORD *)(v6 + 560)) ) { delete_tree(v6, 0LL); return 1; } return v8; }
maria_ft_add_word: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14D,EDX MOV R15,RSI MOV RAX,qword ptr [RDI + 0x18] MOV RBX,qword ptr [RAX] TEST byte ptr [RDI + 0x34],0x1 JZ 0x0015f7a3 MOV RDI,qword ptr [RAX + 0x8] MOVSXD R12,R14D MOV RSI,R12 CALL 0x0019ca87 MOV R13,RAX MOV RDI,RAX MOV RSI,R15 MOV RDX,R12 CALL 0x00129080 MOV R15,R13 LAB_0015f7a3: LEA RSI,[RBP + -0x40] MOV qword ptr [RSI],R15 MOV dword ptr [RSI + 0x8],R14D MOV RCX,qword ptr [RBX + 0x230] XOR R14D,R14D MOV RDI,RBX XOR EDX,EDX CALL 0x001a47e2 TEST RAX,RAX JNZ 0x0015f7d7 MOV RDI,RBX XOR ESI,ESI CALL 0x001a46fa MOV R14D,0x1 LAB_0015f7d7: MOV EAX,R14D ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
bool maria_ft_add_word(long param_1,void *param_2,int param_3) { long lVar1; void *__dest; long lVar2; void *local_48; int local_40; lVar1 = **(long **)(param_1 + 0x18); __dest = param_2; if ((*(byte *)(param_1 + 0x34) & 1) != 0) { __dest = (void *)alloc_root((*(long **)(param_1 + 0x18))[1],(long)param_3); memcpy(__dest,param_2,(long)param_3); } local_48 = __dest; local_40 = param_3; lVar2 = tree_insert(lVar1,&local_48,0,*(int8 *)(lVar1 + 0x230)); if (lVar2 == 0) { delete_tree(lVar1,0); } return lVar2 == 0; }
45,037
LefDefParser::defrData::~defrData()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defrData.cpp
defrData::~defrData() { // lex_un_init. /* Close the file */ if (defrLog) { fclose(defrLog); defrLog = 0; } free(deftoken); free(uc_token); free(pv_deftoken); free(magic); // freeRingBuffer. int i; ringPlace = 0; for (i = 0; i < RING_SIZE; i++) { free(ring[i]); } }
O3
cpp
LefDefParser::defrData::~defrData(): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq (%rdi), %rdi testq %rdi, %rdi je 0x30698 callq 0x71a0 movq $0x0, (%rbx) movq 0x20(%rbx), %rdi callq 0x7220 movq 0x28(%rbx), %rdi callq 0x7220 movq 0x48(%rbx), %rdi callq 0x7220 movq 0x38(%rbx), %rdi callq 0x7220 movl $0x0, 0x184(%rbx) xorl %r14d, %r14d movq 0x9128(%rbx,%r14,8), %rdi callq 0x7220 incq %r14 cmpq $0xa, %r14 jne 0x306c9 xorl %r15d, %r15d leaq 0xf(%rsp), %r14 movq 0x9238(%rbx,%r15), %rdi addq $-0x18, %rdi movq %r14, %rsi callq 0x7120 addq $-0x8, %r15 cmpq $-0xa0, %r15 jne 0x306e7 leaq 0x1240(%rbx), %rdi callq 0x1bbb0 leaq 0x1228(%rbx), %rdi callq 0x1bd4c leaq 0x1168(%rbx), %rdi callq 0x2b2a2 leaq 0x10e0(%rbx), %rdi callq 0x2a822 leaq 0x1088(%rbx), %rdi callq 0x2f73a leaq 0xff0(%rbx), %rdi callq 0x2d7e2 leaq 0xfa0(%rbx), %rdi callq 0x27a68 leaq 0xed8(%rbx), %rdi callq 0x2ecc8 leaq 0xe80(%rbx), %rdi callq 0x15a1c leaq 0xe40(%rbx), %rdi callq 0x225ce leaq 0xd90(%rbx), %rdi callq 0x13b1e leaq 0xcf8(%rbx), %rdi callq 0x287ca leaq 0xc98(%rbx), %rdi callq 0x2a110 leaq 0xc08(%rbx), %rdi callq 0x2e184 leaq 0xb98(%rbx), %rdi callq 0x14f5c leaq 0xa80(%rbx), %rdi callq 0x29250 leaq 0xa58(%rbx), %rdi callq 0x201f2 leaq 0xa10(%rbx), %rdi callq 0x1fef2 leaq 0x980(%rbx), %rdi callq 0x1f5f6 leaq 0x7d8(%rbx), %rdi callq 0x1d37a leaq 0x7c0(%rbx), %rdi callq 0x2cf48 leaq 0x770(%rbx), %rdi callq 0x2cd64 leaq 0x720(%rbx), %rdi callq 0x2cd64 leaq 0x4c8(%rbx), %rdi callq 0x244b4 leaq 0x4b0(%rbx), %rdi callq 0x122b4 leaq 0x358(%rbx), %rdi callq 0x129da leaq 0x308(%rbx), %rdi callq 0x2cd64 leaq 0x2c0(%rbx), %rdi callq 0x2ca44 leaq 0x278(%rbx), %rdi callq 0x14132 leaq 0x218(%rbx), %rdi callq 0x30edc leaq 0x1e8(%rbx), %rdi callq 0x30edc movq 0x1d0(%rbx), %rdi testq %rdi, %rdi je 0x30897 movq 0x1e0(%rbx), %rsi subq %rdi, %rsi callq 0x71c0 addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq nop
_ZN12LefDefParser8defrDataD2Ev: push r15 push r14 push rbx sub rsp, 10h mov rbx, rdi mov rdi, [rdi] test rdi, rdi jz short loc_30698 call _fclose mov qword ptr [rbx], 0 loc_30698: mov rdi, [rbx+20h] call _free mov rdi, [rbx+28h] call _free mov rdi, [rbx+48h] call _free mov rdi, [rbx+38h] call _free mov dword ptr [rbx+184h], 0 xor r14d, r14d loc_306C9: mov rdi, [rbx+r14*8+9128h] call _free inc r14 cmp r14, 0Ah jnz short loc_306C9 xor r15d, r15d lea r14, [rsp+28h+var_19] loc_306E7: mov rdi, [rbx+r15+9238h] add rdi, 0FFFFFFFFFFFFFFE8h mov rsi, r14 call __ZNSs4_Rep10_M_disposeERKSaIcE; std::string::_Rep::_M_dispose(std::allocator<char> const&) add r15, 0FFFFFFFFFFFFFFF8h cmp r15, 0FFFFFFFFFFFFFF60h jnz short loc_306E7 lea rdi, [rbx+1240h]; this call _ZN12LefDefParser14defiGeometriesD2Ev; LefDefParser::defiGeometries::~defiGeometries() lea rdi, [rbx+1228h]; this call _ZN12LefDefParser10defiStylesD2Ev; LefDefParser::defiStyles::~defiStyles() lea rdi, [rbx+1168h]; this call _ZN12LefDefParser14defiNonDefaultD2Ev; LefDefParser::defiNonDefault::~defiNonDefault() lea rdi, [rbx+10E0h]; this call _ZN12LefDefParser8defiFillD2Ev; LefDefParser::defiFill::~defiFill() lea rdi, [rbx+1088h]; this call _ZN12LefDefParser8defiSlotD2Ev; LefDefParser::defiSlot::~defiSlot() lea rdi, [rbx+0FF0h]; this call _ZN12LefDefParser12defiBlockageD2Ev; LefDefParser::defiBlockage::~defiBlockage() lea rdi, [rbx+0FA0h]; this call _ZN12LefDefParser11defiPinPropD2Ev; LefDefParser::defiPinProp::~defiPinProp() lea rdi, [rbx+0ED8h]; this call _ZN12LefDefParser13defiPartitionD2Ev; LefDefParser::defiPartition::~defiPartition() lea rdi, [rbx+0E80h]; this call _ZN12LefDefParser17defiTimingDisableD2Ev; LefDefParser::defiTimingDisable::~defiTimingDisable() lea rdi, [rbx+0E40h]; this call _ZN12LefDefParser7defiFPCD2Ev; LefDefParser::defiFPC::~defiFPC() lea rdi, [rbx+0D90h]; this call _ZN12LefDefParser12defiIOTimingD2Ev; LefDefParser::defiIOTiming::~defiIOTiming() lea rdi, [rbx+0CF8h]; this call _ZN12LefDefParser13defiScanchainD2Ev; LefDefParser::defiScanchain::~defiScanchain() lea rdi, [rbx+0C98h]; this call _ZN12LefDefParser13defiAssertionD2Ev; LefDefParser::defiAssertion::~defiAssertion() lea rdi, [rbx+0C08h]; this call _ZN12LefDefParser9defiGroupD2Ev; LefDefParser::defiGroup::~defiGroup() lea rdi, [rbx+0B98h]; this call _ZN12LefDefParser10defiRegionD2Ev; LefDefParser::defiRegion::~defiRegion() lea rdi, [rbx+0A80h]; this call _ZN12LefDefParser7defiViaD2Ev; LefDefParser::defiVia::~defiVia() lea rdi, [rbx+0A58h]; this call _ZN12LefDefParser13defiGcellGridD2Ev; LefDefParser::defiGcellGrid::~defiGcellGrid() lea rdi, [rbx+0A10h]; this call _ZN12LefDefParser9defiTrackD2Ev; LefDefParser::defiTrack::~defiTrack() lea rdi, [rbx+980h]; this call _ZN12LefDefParser7defiRowD2Ev; LefDefParser::defiRow::~defiRow() lea rdi, [rbx+7D8h]; this call _ZN12LefDefParser7defiPinD2Ev; LefDefParser::defiPin::~defiPin() lea rdi, [rbx+7C0h]; this call _ZN12LefDefParser7defiBoxD2Ev; LefDefParser::defiBox::~defiBox() lea rdi, [rbx+770h]; this call _ZN12LefDefParser8defiSiteD2Ev; LefDefParser::defiSite::~defiSite() lea rdi, [rbx+720h]; this call _ZN12LefDefParser8defiSiteD2Ev; LefDefParser::defiSite::~defiSite() lea rdi, [rbx+4C8h]; this call _ZN12LefDefParser7defiNetD2Ev; LefDefParser::defiNet::~defiNet() lea rdi, [rbx+4B0h]; this call _ZN12LefDefParser27defiComponentMaskShiftLayerD2Ev; LefDefParser::defiComponentMaskShiftLayer::~defiComponentMaskShiftLayer() lea rdi, [rbx+358h]; this call _ZN12LefDefParser13defiComponentD2Ev; LefDefParser::defiComponent::~defiComponent() lea rdi, [rbx+308h]; this call _ZN12LefDefParser8defiSiteD2Ev; LefDefParser::defiSite::~defiSite() lea rdi, [rbx+2C0h]; this call _ZN12LefDefParser8defiPropD2Ev; LefDefParser::defiProp::~defiProp() lea rdi, [rbx+278h]; this call _ZN12LefDefParser8defiPathD2Ev; LefDefParser::defiPath::~defiPath() lea rdi, [rbx+218h] call _ZNSt8_Rb_treeISsSt4pairIKSsSsESt10_Select1stIS2_EN12LefDefParser17defCompareStringsESaIS2_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() lea rdi, [rbx+1E8h] call _ZNSt8_Rb_treeISsSt4pairIKSsSsESt10_Select1stIS2_EN12LefDefParser17defCompareStringsESaIS2_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() mov rdi, [rbx+1D0h]; void * test rdi, rdi jz short loc_30897 mov rsi, [rbx+1E0h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_30897: add rsp, 10h pop rbx pop r14 pop r15 retn
void LefDefParser::defrData::~defrData(void **this) { void *v2; // rdi long long i; // r14 long long j; // r15 void *v5; // rdi _BYTE v6[25]; // [rsp+Fh] [rbp-19h] BYREF v2 = *this; if ( v2 ) { fclose(v2); *this = 0LL; } free(this[4]); free(this[5]); free(this[9]); free(this[7]); *((_DWORD *)this + 97) = 0; for ( i = 0LL; i != 10; ++i ) free(this[i + 4645]); for ( j = 0LL; j != -20; --j ) std::string::_Rep::_M_dispose((char *)this[j + 4679] - 24, v6); LefDefParser::defiGeometries::~defiGeometries(this + 584); LefDefParser::defiStyles::~defiStyles((LefDefParser::defiStyles *)(this + 581)); LefDefParser::defiNonDefault::~defiNonDefault((LefDefParser::defiNonDefault *)(this + 557)); LefDefParser::defiFill::~defiFill((LefDefParser::defiFill *)(this + 540)); LefDefParser::defiSlot::~defiSlot((LefDefParser::defiSlot *)(this + 529)); LefDefParser::defiBlockage::~defiBlockage((LefDefParser::defiBlockage *)(this + 510)); LefDefParser::defiPinProp::~defiPinProp((LefDefParser::defiPinProp *)(this + 500)); LefDefParser::defiPartition::~defiPartition((LefDefParser::defiPartition *)(this + 475)); LefDefParser::defiTimingDisable::~defiTimingDisable((LefDefParser::defiTimingDisable *)(this + 464)); LefDefParser::defiFPC::~defiFPC((LefDefParser::defiFPC *)(this + 456)); LefDefParser::defiIOTiming::~defiIOTiming((LefDefParser::defiIOTiming *)(this + 434)); LefDefParser::defiScanchain::~defiScanchain(this + 415); LefDefParser::defiAssertion::~defiAssertion((LefDefParser::defiAssertion *)(this + 403)); LefDefParser::defiGroup::~defiGroup((LefDefParser::defiGroup *)(this + 385)); LefDefParser::defiRegion::~defiRegion((LefDefParser::defiRegion *)(this + 371)); LefDefParser::defiVia::~defiVia((LefDefParser::defiVia *)(this + 336)); LefDefParser::defiGcellGrid::~defiGcellGrid((LefDefParser::defiGcellGrid *)(this + 331)); LefDefParser::defiTrack::~defiTrack((LefDefParser::defiTrack *)(this + 322)); LefDefParser::defiRow::~defiRow((LefDefParser::defiRow *)(this + 304)); LefDefParser::defiPin::~defiPin((LefDefParser::defiPin *)(this + 251)); LefDefParser::defiBox::~defiBox((LefDefParser::defiBox *)(this + 248)); LefDefParser::defiSite::~defiSite(this + 238); LefDefParser::defiSite::~defiSite(this + 228); LefDefParser::defiNet::~defiNet(this + 153); LefDefParser::defiComponentMaskShiftLayer::~defiComponentMaskShiftLayer((LefDefParser::defiComponentMaskShiftLayer *)(this + 150)); LefDefParser::defiComponent::~defiComponent(this + 107); LefDefParser::defiSite::~defiSite(this + 97); LefDefParser::defiProp::~defiProp(this + 88); LefDefParser::defiPath::~defiPath((LefDefParser::defiPath *)(this + 79)); std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree(this + 67); std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree(this + 61); v5 = this[58]; if ( v5 ) operator delete(v5, (_BYTE *)this[60] - (_BYTE *)v5); }
~defrData: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV RDI,qword ptr [RDI] TEST RDI,RDI JZ 0x00130698 CALL 0x001071a0 MOV qword ptr [RBX],0x0 LAB_00130698: MOV RDI,qword ptr [RBX + 0x20] CALL 0x00107220 MOV RDI,qword ptr [RBX + 0x28] CALL 0x00107220 MOV RDI,qword ptr [RBX + 0x48] CALL 0x00107220 MOV RDI,qword ptr [RBX + 0x38] CALL 0x00107220 MOV dword ptr [RBX + 0x184],0x0 XOR R14D,R14D LAB_001306c9: MOV RDI,qword ptr [RBX + R14*0x8 + 0x9128] CALL 0x00107220 INC R14 CMP R14,0xa JNZ 0x001306c9 XOR R15D,R15D LEA R14,[RSP + 0xf] LAB_001306e7: MOV RDI,qword ptr [RBX + R15*0x1 + 0x9238] ADD RDI,-0x18 MOV RSI,R14 CALL 0x00107120 ADD R15,-0x8 CMP R15,-0xa0 JNZ 0x001306e7 LEA RDI,[RBX + 0x1240] CALL 0x0011bbb0 LEA RDI,[RBX + 0x1228] CALL 0x0011bd4c LEA RDI,[RBX + 0x1168] CALL 0x0012b2a2 LEA RDI,[RBX + 0x10e0] CALL 0x0012a822 LEA RDI,[RBX + 0x1088] CALL 0x0012f73a LEA RDI,[RBX + 0xff0] CALL 0x0012d7e2 LEA RDI,[RBX + 0xfa0] CALL 0x00127a68 LEA RDI,[RBX + 0xed8] CALL 0x0012ecc8 LEA RDI,[RBX + 0xe80] CALL 0x00115a1c LEA RDI,[RBX + 0xe40] CALL 0x001225ce LEA RDI,[RBX + 0xd90] CALL 0x00113b1e LEA RDI,[RBX + 0xcf8] CALL 0x001287ca LEA RDI,[RBX + 0xc98] CALL 0x0012a110 LEA RDI,[RBX + 0xc08] CALL 0x0012e184 LEA RDI,[RBX + 0xb98] CALL 0x00114f5c LEA RDI,[RBX + 0xa80] CALL 0x00129250 LEA RDI,[RBX + 0xa58] CALL 0x001201f2 LEA RDI,[RBX + 0xa10] CALL 0x0011fef2 LEA RDI,[RBX + 0x980] CALL 0x0011f5f6 LEA RDI,[RBX + 0x7d8] CALL 0x0011d37a LEA RDI,[RBX + 0x7c0] CALL 0x0012cf48 LEA RDI,[RBX + 0x770] CALL 0x0012cd64 LEA RDI,[RBX + 0x720] CALL 0x0012cd64 LEA RDI,[RBX + 0x4c8] CALL 0x001244b4 LEA RDI,[RBX + 0x4b0] CALL 0x001122b4 LEA RDI,[RBX + 0x358] CALL 0x001129da LEA RDI,[RBX + 0x308] CALL 0x0012cd64 LEA RDI,[RBX + 0x2c0] CALL 0x0012ca44 LEA RDI,[RBX + 0x278] CALL 0x00114132 LEA RDI,[RBX + 0x218] CALL 0x00130edc LEA RDI,[RBX + 0x1e8] CALL 0x00130edc MOV RDI,qword ptr [RBX + 0x1d0] TEST RDI,RDI JZ 0x00130897 MOV RSI,qword ptr [RBX + 0x1e0] SUB RSI,RDI CALL 0x001071c0 LAB_00130897: ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* LefDefParser::defrData::~defrData() */ void __thiscall LefDefParser::defrData::~defrData(defrData *this) { void *pvVar1; long lVar2; if (*(FILE **)this != (FILE *)0x0) { fclose(*(FILE **)this); *(int8 *)this = 0; } free(*(void **)(this + 0x20)); free(*(void **)(this + 0x28)); free(*(void **)(this + 0x48)); free(*(void **)(this + 0x38)); *(int4 *)(this + 0x184) = 0; lVar2 = 0; do { free(*(void **)(this + lVar2 * 8 + 0x9128)); lVar2 = lVar2 + 1; } while (lVar2 != 10); lVar2 = 0; do { std::string::_Rep::_M_dispose((allocator *)(*(long *)(this + lVar2 + 0x9238) + -0x18)); lVar2 = lVar2 + -8; } while (lVar2 != -0xa0); defiGeometries::~defiGeometries((defiGeometries *)(this + 0x1240)); defiStyles::~defiStyles((defiStyles *)(this + 0x1228)); defiNonDefault::~defiNonDefault((defiNonDefault *)(this + 0x1168)); defiFill::~defiFill((defiFill *)(this + 0x10e0)); defiSlot::~defiSlot((defiSlot *)(this + 0x1088)); defiBlockage::~defiBlockage((defiBlockage *)(this + 0xff0)); defiPinProp::~defiPinProp((defiPinProp *)(this + 4000)); defiPartition::~defiPartition((defiPartition *)(this + 0xed8)); defiTimingDisable::~defiTimingDisable((defiTimingDisable *)(this + 0xe80)); defiFPC::~defiFPC((defiFPC *)(this + 0xe40)); defiIOTiming::~defiIOTiming((defiIOTiming *)(this + 0xd90)); defiScanchain::~defiScanchain((defiScanchain *)(this + 0xcf8)); defiAssertion::~defiAssertion((defiAssertion *)(this + 0xc98)); defiGroup::~defiGroup((defiGroup *)(this + 0xc08)); defiRegion::~defiRegion((defiRegion *)(this + 0xb98)); defiVia::~defiVia((defiVia *)(this + 0xa80)); defiGcellGrid::~defiGcellGrid((defiGcellGrid *)(this + 0xa58)); defiTrack::~defiTrack((defiTrack *)(this + 0xa10)); defiRow::~defiRow((defiRow *)(this + 0x980)); defiPin::~defiPin((defiPin *)(this + 0x7d8)); defiBox::~defiBox((defiBox *)(this + 0x7c0)); defiSite::~defiSite((defiSite *)(this + 0x770)); defiSite::~defiSite((defiSite *)(this + 0x720)); defiNet::~defiNet((defiNet *)(this + 0x4c8)); defiComponentMaskShiftLayer::~defiComponentMaskShiftLayer ((defiComponentMaskShiftLayer *)(this + 0x4b0)); defiComponent::~defiComponent((defiComponent *)(this + 0x358)); defiSite::~defiSite((defiSite *)(this + 0x308)); defiProp::~defiProp((defiProp *)(this + 0x2c0)); defiPath::~defiPath((defiPath *)(this + 0x278)); std:: _Rb_tree<std::string,std::pair<std::string_const,std::string>,std::_Select1st<std::pair<std::string_const,std::string>>,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string_const,std::string>>> ::~_Rb_tree((_Rb_tree<std::string,std::pair<std::string_const,std::string>,std::_Select1st<std::pair<std::string_const,std::string>>,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string_const,std::string>>> *)(this + 0x218)); std:: _Rb_tree<std::string,std::pair<std::string_const,std::string>,std::_Select1st<std::pair<std::string_const,std::string>>,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string_const,std::string>>> ::~_Rb_tree((_Rb_tree<std::string,std::pair<std::string_const,std::string>,std::_Select1st<std::pair<std::string_const,std::string>>,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string_const,std::string>>> *)(this + 0x1e8)); pvVar1 = *(void **)(this + 0x1d0); if (pvVar1 != (void *)0x0) { operator_delete(pvVar1,*(long *)(this + 0x1e0) - (long)pvVar1); } return; }
45,038
string_from[abi:cxx11](std::vector<int, std::allocator<int>> const&)
llama.cpp/common/common.cpp
std::string string_from(const std::vector<int> & values) { std::stringstream buf; buf << "[ "; bool first = true; for (auto e : values) { if (first) { first = false; } else { buf << ", "; } buf << std::to_string(e); } buf << " ]"; return buf.str(); }
O3
cpp
string_from[abi:cxx11](std::vector<int, std::allocator<int>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq %rsi, %rbx movq %rdi, 0x28(%rsp) leaq 0x30(%rsp), %rdi callq 0x172f0 leaq 0x40(%rsp), %rdi leaq 0xe96e(%rip), %rsi # 0x62b28 movl $0x2, %edx callq 0x17a80 movq (%rbx), %r12 movq 0x8(%rbx), %r15 cmpq %r15, %r12 je 0x542ba movb $0x1, %al movl $0xd1b71759, %r14d # imm = 0xD1B71759 movl (%r12), %r13d testb $0x1, %al jne 0x541fa movl $0x2, %edx leaq 0x40(%rsp), %rdi leaq 0xf035(%rip), %rsi # 0x6322a callq 0x17a80 movl %r13d, %ebp negl %ebp cmovsl %r13d, %ebp movl $0x1, %ebx cmpl $0xa, %ebp jb 0x54249 movl $0x4, %ebx movl %ebp, %eax cmpl $0x63, %eax jbe 0x54242 cmpl $0x3e7, %eax # imm = 0x3E7 jbe 0x54247 cmpl $0x2710, %eax # imm = 0x2710 jb 0x54249 movl %eax, %ecx imulq %r14, %rcx shrq $0x2d, %rcx addl $0x4, %ebx cmpl $0x1869f, %eax # imm = 0x1869F movl %ecx, %eax ja 0x54214 addl $-0x3, %ebx jmp 0x54249 addl $-0x2, %ebx jmp 0x54249 decl %ebx shrl $0x1f, %r13d leal (%rbx,%r13), %esi leaq 0x18(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x8(%rsp), %rdi movl $0x2d, %edx callq 0x17690 addq 0x8(%rsp), %r13 movq %r13, %rdi movl %ebx, %esi movl %ebp, %edx callq 0x261d0 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x40(%rsp), %rdi callq 0x17a80 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x542ab movq 0x18(%rsp), %rsi incq %rsi callq 0x17100 addq $0x4, %r12 xorl %eax, %eax cmpq %r15, %r12 jne 0x541dc leaq 0xe86a(%rip), %rsi # 0x62b2b movl $0x2, %edx leaq 0x40(%rsp), %rdi callq 0x17a80 movq 0x28(%rsp), %rbx leaq 0x48(%rsp), %rsi movq %rbx, %rdi callq 0x17410 movq 0x23cc7(%rip), %rsi # 0x77fb0 leaq 0x30(%rsp), %rdi callq 0x17850 leaq 0xb0(%rsp), %rdi callq 0x177f0 movq %rbx, %rax addq $0x1b8, %rsp # imm = 0x1B8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x54319 jmp 0x54319 movq %rax, %rbx jmp 0x54345 movq %rax, %rdi callq 0x25387 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x54345 movq 0x18(%rsp), %rsi incq %rsi callq 0x17100 movq 0x23c64(%rip), %rsi # 0x77fb0 leaq 0x30(%rsp), %rdi callq 0x17850 leaq 0xb0(%rsp), %rdi callq 0x177f0 movq %rbx, %rdi callq 0x17710
_Z11string_fromB5cxx11RKSt6vectorIiSaIiEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1B8h mov rbx, rsi mov [rsp+1E8h+var_1C0], rdi lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea rdi, [rsp+1E8h+var_1A8] lea rsi, asc_62B28; "[ " mov edx, 2 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r12, [rbx] mov r15, [rbx+8] cmp r12, r15 jz loc_542BA mov al, 1 mov r14d, 0D1B71759h loc_541DC: mov r13d, [r12] test al, 1 jnz short loc_541FA mov edx, 2 lea rdi, [rsp+1E8h+var_1A8] lea rsi, aZuD+6; ", " call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_541FA: mov ebp, r13d neg ebp cmovs ebp, r13d mov ebx, 1 cmp ebp, 0Ah jb short loc_54249 mov ebx, 4 mov eax, ebp loc_54214: cmp eax, 63h ; 'c' jbe short loc_54242 cmp eax, 3E7h jbe short loc_54247 cmp eax, 2710h jb short loc_54249 mov ecx, eax imul rcx, r14 shr rcx, 2Dh add ebx, 4 cmp eax, offset _ZNSt15__new_allocatorIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEE8allocateEmPKv_cold_1_0; std::__new_allocator<std::__detail::_StateSeq<std::regex_traits<char>> *>::allocate(ulong,void const*) [clone] mov eax, ecx ja short loc_54214 add ebx, 0FFFFFFFDh jmp short loc_54249 loc_54242: add ebx, 0FFFFFFFEh jmp short loc_54249 loc_54247: dec ebx loc_54249: shr r13d, 1Fh lea esi, [rbx+r13] lea rax, [rsp+1E8h+var_1D0] mov [rsp+1E8h+var_1E0], rax lea rdi, [rsp+1E8h+var_1E0] mov edx, 2Dh ; '-' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) add r13, [rsp+1E8h+var_1E0] mov rdi, r13 mov esi, ebx mov edx, ebp call _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint) mov rsi, [rsp+1E8h+var_1E0] mov rdx, [rsp+1E8h+var_1D8] lea rdi, [rsp+1E8h+var_1A8] 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+1E8h+var_1E0]; void * lea rax, [rsp+1E8h+var_1D0] cmp rdi, rax jz short loc_542AB mov rsi, [rsp+1E8h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_542AB: add r12, 4 xor eax, eax cmp r12, r15 jnz loc_541DC loc_542BA: lea rsi, asc_62B2B; " ]" mov edx, 2 lea rdi, [rsp+1E8h+var_1A8] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rbx, [rsp+1E8h+var_1C0] lea rsi, [rsp+1E8h+var_1A0] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+1E8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, rbx add rsp, 1B8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_54319 jmp short $+2 loc_54319: mov rbx, rax jmp short loc_54345 mov rdi, rax call __clang_call_terminate mov rbx, rax mov rdi, [rsp+1E8h+var_1E0]; void * lea rax, [rsp+1E8h+var_1D0] cmp rdi, rax jz short loc_54345 mov rsi, [rsp+1E8h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_54345: mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+1E8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long string_from[abi:cxx11](long long a1, int **a2) { int *v2; // r12 int *v3; // r15 char v4; // al int v5; // r13d unsigned int v6; // ebp int v7; // ebx unsigned int v8; // eax bool v9; // cc unsigned int v10; // r13d long long v11; // rbx void *v13[2]; // [rsp+8h] [rbp-1E0h] BYREF _QWORD v14[2]; // [rsp+18h] [rbp-1D0h] BYREF long long v15; // [rsp+28h] [rbp-1C0h] _BYTE v16[16]; // [rsp+30h] [rbp-1B8h] BYREF char v17[8]; // [rsp+40h] [rbp-1A8h] BYREF char v18[104]; // [rsp+48h] [rbp-1A0h] BYREF char v19[312]; // [rsp+B0h] [rbp-138h] BYREF v15 = a1; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v16); std::__ostream_insert<char,std::char_traits<char>>(v17, "[ ", 2LL); v2 = *a2; v3 = a2[1]; if ( *a2 != v3 ) { v4 = 1; do { v5 = *v2; if ( (v4 & 1) == 0 ) std::__ostream_insert<char,std::char_traits<char>>(v17, ", ", 2LL); v6 = -v5; if ( v5 > 0 ) v6 = v5; v7 = 1; if ( v6 >= 0xA ) { v7 = 4; v8 = v6; while ( 1 ) { if ( v8 <= 0x63 ) { v7 -= 2; goto LABEL_16; } if ( v8 <= 0x3E7 ) break; if ( v8 < 0x2710 ) goto LABEL_16; v7 += 4; v9 = v8 <= (unsigned int)std::__new_allocator<std::__detail::_StateSeq<std::regex_traits<char>> *>::allocate; v8 /= 0x2710u; if ( v9 ) { v7 -= 3; goto LABEL_16; } } --v7; } LABEL_16: v10 = (unsigned int)v5 >> 31; v13[0] = v14; std::string::_M_construct(v13, v7 + v10, 45LL); std::__detail::__to_chars_10_impl<unsigned int>((char *)v13[0] + v10, v7, v6); std::__ostream_insert<char,std::char_traits<char>>(v17, v13[0], v13[1]); if ( v13[0] != v14 ) operator delete(v13[0], v14[0] + 1LL); ++v2; v4 = 0; } while ( v2 != v3 ); } std::__ostream_insert<char,std::char_traits<char>>(v17, " ]", 2LL); v11 = v15; std::stringbuf::str(v15, v18); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream( v16, &`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>); std::ios_base::~ios_base((std::ios_base *)v19); return v11; }
string_from[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1b8 MOV RBX,RSI MOV qword ptr [RSP + 0x28],RDI LEA RDI,[RSP + 0x30] CALL 0x001172f0 LEA RDI,[RSP + 0x40] LAB_001541b3: LEA RSI,[0x162b28] MOV EDX,0x2 CALL 0x00117a80 MOV R12,qword ptr [RBX] MOV R15,qword ptr [RBX + 0x8] CMP R12,R15 JZ 0x001542ba MOV AL,0x1 MOV R14D,0xd1b71759 LAB_001541dc: MOV R13D,dword ptr [R12] TEST AL,0x1 JNZ 0x001541fa LAB_001541e4: MOV EDX,0x2 LEA RDI,[RSP + 0x40] LEA RSI,[0x16322a] CALL 0x00117a80 LAB_001541fa: MOV EBP,R13D NEG EBP CMOVS EBP,R13D MOV EBX,0x1 CMP EBP,0xa JC 0x00154249 MOV EBX,0x4 MOV EAX,EBP LAB_00154214: CMP EAX,0x63 JBE 0x00154242 CMP EAX,0x3e7 JBE 0x00154247 CMP EAX,0x2710 JC 0x00154249 MOV ECX,EAX IMUL RCX,R14 SHR RCX,0x2d ADD EBX,0x4 CMP EAX,0x1869f MOV EAX,ECX JA 0x00154214 ADD EBX,-0x3 JMP 0x00154249 LAB_00154242: ADD EBX,-0x2 JMP 0x00154249 LAB_00154247: DEC EBX LAB_00154249: SHR R13D,0x1f LEA ESI,[RBX + R13*0x1] LEA RAX,[RSP + 0x18] MOV qword ptr [RSP + 0x8],RAX LAB_0015425b: LEA RDI,[RSP + 0x8] MOV EDX,0x2d CALL 0x00117690 ADD R13,qword ptr [RSP + 0x8] MOV RDI,R13 MOV ESI,EBX MOV EDX,EBP CALL 0x001261d0 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_00154285: LEA RDI,[RSP + 0x40] CALL 0x00117a80 MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x001542ab MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00117100 LAB_001542ab: ADD R12,0x4 XOR EAX,EAX CMP R12,R15 JNZ 0x001541dc LAB_001542ba: LEA RSI,[0x162b2b] MOV EDX,0x2 LEA RDI,[RSP + 0x40] CALL 0x00117a80 MOV RBX,qword ptr [RSP + 0x28] LEA RSI,[RSP + 0x48] MOV RDI,RBX CALL 0x00117410 LAB_001542e2: MOV RSI,qword ptr [0x00177fb0] LEA RDI,[RSP + 0x30] CALL 0x00117850 LEA RDI,[RSP + 0xb0] CALL 0x001177f0 MOV RAX,RBX ADD RSP,0x1b8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* string_from[abi:cxx11](std::vector<int, std::allocator<int> > const&) */ vector * string_from_abi_cxx11_(vector *param_1) { uint uVar1; uint *puVar2; uint uVar3; vector *pvVar4; uint uVar5; bool bVar6; uint uVar7; ulong uVar8; uint uVar9; int8 *in_RSI; uint *puVar10; long *local_1e0; long local_1d8; long local_1d0 [2]; vector *local_1c0; stringstream local_1b8 [16]; ostream local_1a8 [112]; ios_base local_138 [264]; local_1c0 = param_1; std::__cxx11::stringstream::stringstream(local_1b8); /* try { // try from 001541b3 to 001541c3 has its CatchHandler @ 00154315 */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,"[ ",2); puVar10 = (uint *)*in_RSI; puVar2 = (uint *)in_RSI[1]; if (puVar10 != puVar2) { bVar6 = true; do { uVar1 = *puVar10; if (!bVar6) { /* try { // try from 001541e4 to 001541f9 has its CatchHandler @ 00154319 */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,", ",2); } uVar3 = -uVar1; if (0 < (int)uVar1) { uVar3 = uVar1; } uVar9 = 1; if (9 < uVar3) { uVar8 = (ulong)uVar3; uVar5 = 4; do { uVar9 = uVar5; uVar7 = (uint)uVar8; if (uVar7 < 100) { uVar9 = uVar9 - 2; goto LAB_00154249; } if (uVar7 < 1000) { uVar9 = uVar9 - 1; goto LAB_00154249; } if (uVar7 < 10000) goto LAB_00154249; uVar8 = uVar8 / 10000; uVar5 = uVar9 + 4; } while (99999 < uVar7); uVar9 = uVar9 + 1; } LAB_00154249: local_1e0 = local_1d0; /* try { // try from 0015425b to 00154269 has its CatchHandler @ 0015431e */ std::__cxx11::string::_M_construct((ulong)&local_1e0,(char)uVar9 - (char)((int)uVar1 >> 0x1f)) ; std::__detail::__to_chars_10_impl<unsigned_int> ((char *)((long)local_1e0 + (ulong)(uVar1 >> 0x1f)),uVar9,uVar3); /* try { // try from 00154285 to 0015428e has its CatchHandler @ 00154326 */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,(char *)local_1e0,local_1d8); if (local_1e0 != local_1d0) { operator_delete(local_1e0,local_1d0[0] + 1); } puVar10 = puVar10 + 1; bVar6 = false; } while (puVar10 != puVar2); } /* try { // try from 001542ba to 001542e1 has its CatchHandler @ 00154317 */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8," ]",2); pvVar4 = local_1c0; std::__cxx11::stringbuf::str(); std::__cxx11::stringstream::~stringstream(local_1b8); std::ios_base::~ios_base(local_138); return pvVar4; }
45,039
qdevtools::StyleSheetEdit::setState(qdevtools::StyleSheetEdit::State)
HuaiminNotSleepYet[P]QDevTools/qdevtools.cpp
void setState(State value) { layout()->itemAt(3)->widget()->setFixedHeight(height()); layout()->itemAt(4)->widget()->setFixedHeight(height()); switch (value) { case Edit: layout()->itemAt(0)->widget()->setVisible(true); // edit layout()->itemAt(1)->widget()->setVisible(true); // apply layout()->itemAt(2)->widget()->setVisible(true); // clear layout()->itemAt(3)->widget()->setVisible(false); // unlink layout()->itemAt(4)->widget()->setVisible(false); // drop break; case Drop: layout()->itemAt(0)->widget()->setVisible(false); // edit layout()->itemAt(1)->widget()->setVisible(false); // apply layout()->itemAt(2)->widget()->setVisible(false); // clear layout()->itemAt(3)->widget()->setVisible(false); // unlink layout()->itemAt(4)->widget()->setVisible(true); break; case Link: layout()->itemAt(0)->widget()->setVisible(false); // edit layout()->itemAt(1)->widget()->setVisible(false); // apply layout()->itemAt(2)->widget()->setVisible(false); // clear layout()->itemAt(3)->widget()->setVisible(true); // unlink layout()->itemAt(4)->widget()->setVisible(false); // drop static_cast<QPushButton*>(layout()->itemAt(3)->widget())->setText("Unlink " + watcher_->files().value(0)); break; } state_ = value; }
O0
cpp
qdevtools::StyleSheetEdit::setState(qdevtools::StyleSheetEdit::State): pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x78(%rbp) callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movq 0xa8(%rax), %rax movl $0x3, %esi callq *%rax movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movq -0x78(%rbp), %rdi movq %rax, -0x80(%rbp) callq 0x1c150 movq -0x80(%rbp), %rdi movl %eax, %esi callq 0xf170 movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movq 0xa8(%rax), %rax movl $0x4, %esi callq *%rax movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movq -0x78(%rbp), %rdi movq %rax, -0x70(%rbp) callq 0x1c150 movq -0x70(%rbp), %rdi movl %eax, %esi callq 0xf170 movl -0xc(%rbp), %eax movl %eax, -0x68(%rbp) testl %eax, %eax je 0x35903 jmp 0x358e4 movl -0x68(%rbp), %eax subl $0x1, %eax je 0x359f4 jmp 0x358f2 movl -0x68(%rbp), %eax subl $0x2, %eax je 0x35adf jmp 0x35d05 movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax xorl %esi, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax movl $0x1, %esi callq *0x68(%rax) movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movl $0x1, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax movl $0x1, %esi callq *0x68(%rax) movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movl $0x2, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax movl $0x1, %esi callq *0x68(%rax) movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movl $0x3, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax xorl %esi, %esi callq *0x68(%rax) movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movl $0x4, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax xorl %esi, %esi callq *0x68(%rax) jmp 0x35d05 movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax xorl %esi, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax xorl %esi, %esi callq *0x68(%rax) movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movl $0x1, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax xorl %esi, %esi callq *0x68(%rax) movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movl $0x2, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax xorl %esi, %esi callq *0x68(%rax) movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movl $0x3, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax xorl %esi, %esi callq *0x68(%rax) movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movl $0x4, %esi callq *0xa8(%rax) movq %rax, %rdi movq (%rdi), %rax callq *0x68(%rax) movq %rax, %rdi movq (%rdi), %rax movl $0x1, %esi callq *0x68(%rax) jmp 0x35d05 movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movq 0xa8(%rax), %rax xorl %esi, %esi movl %esi, -0x8c(%rbp) callq *%rax movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movl -0x8c(%rbp), %esi movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movq 0xa8(%rax), %rax movl $0x1, %esi movl %esi, -0xa0(%rbp) callq *%rax movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movl -0x8c(%rbp), %esi movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movq 0xa8(%rax), %rax movl $0x2, %esi callq *%rax movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movl -0x8c(%rbp), %esi movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movq 0xa8(%rax), %rax movl $0x3, %esi movl %esi, -0x9c(%rbp) callq *%rax movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movl -0xa0(%rbp), %esi movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movq -0x78(%rbp), %rdi callq 0xf820 movq %rax, %rdi movq (%rdi), %rax movq 0xa8(%rax), %rax movl $0x4, %esi callq *%rax movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movl -0x8c(%rbp), %esi movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movq -0x78(%rbp), %rdi callq 0xf820 movl -0x9c(%rbp), %esi movq %rax, %rdi movq (%rdi), %rax movq 0xa8(%rax), %rax callq *%rax movq %rax, %rdi movq (%rdi), %rax movq 0x68(%rax), %rax callq *%rax movq %rax, %rcx movq -0x78(%rbp), %rax movq %rcx, -0x98(%rbp) movq 0x28(%rax), %rsi leaq -0x58(%rbp), %rdi movq %rdi, -0x88(%rbp) callq 0xfb70 movl -0x8c(%rbp), %eax movq -0x88(%rbp), %rsi movl %eax, %edx leaq -0x40(%rbp), %rdi callq 0x378c0 jmp 0x35c7b leaq 0x5dca(%rip), %rsi # 0x3ba4c leaq -0x28(%rbp), %rdi leaq -0x40(%rbp), %rdx callq 0x37830 jmp 0x35c91 movq -0x98(%rbp), %rdi leaq -0x28(%rbp), %rsi callq 0xf3f0 jmp 0x35ca3 leaq -0x28(%rbp), %rdi callq 0x1b1e0 leaq -0x40(%rbp), %rdi callq 0x1b1e0 leaq -0x58(%rbp), %rdi callq 0x1d730 jmp 0x35d05 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) jmp 0x35cfa movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) jmp 0x35cf1 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) leaq -0x28(%rbp), %rdi callq 0x1b1e0 leaq -0x40(%rbp), %rdi callq 0x1b1e0 leaq -0x58(%rbp), %rdi callq 0x1d730 jmp 0x35d18 movq -0x78(%rbp), %rax movl -0xc(%rbp), %ecx movl %ecx, 0x30(%rax) addq $0xa0, %rsp popq %rbp retq movq -0x60(%rbp), %rdi callq 0xf410 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN9qdevtools14StyleSheetEdit8setStateENS0_5StateE: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rdi, [rbp+var_8]; this mov [rbp+var_78], rdi call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov rax, [rax+0A8h] mov esi, 3 call rax mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov rdi, [rbp+var_78]; this mov [rbp+var_80], rax call _ZNK7QWidget6heightEv; QWidget::height(void) mov rdi, [rbp+var_80]; this mov esi, eax; int call __ZN7QWidget14setFixedHeightEi; QWidget::setFixedHeight(int) mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov rax, [rax+0A8h] mov esi, 4 call rax mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov rdi, [rbp+var_78]; this mov [rbp+var_70], rax call _ZNK7QWidget6heightEv; QWidget::height(void) mov rdi, [rbp+var_70]; this mov esi, eax; int call __ZN7QWidget14setFixedHeightEi; QWidget::setFixedHeight(int) mov eax, [rbp+var_C] mov [rbp+var_68], eax test eax, eax jz short loc_35903 jmp short $+2 loc_358E4: mov eax, [rbp+var_68] sub eax, 1 jz loc_359F4 jmp short $+2 loc_358F2: mov eax, [rbp+var_68] sub eax, 2 jz loc_35ADF jmp loc_35D05 loc_35903: mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] xor esi, esi call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] mov esi, 1 call qword ptr [rax+68h] mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov esi, 1 call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] mov esi, 1 call qword ptr [rax+68h] mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov esi, 2 call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] mov esi, 1 call qword ptr [rax+68h] mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov esi, 3 call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] xor esi, esi call qword ptr [rax+68h] mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov esi, 4 call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] xor esi, esi call qword ptr [rax+68h] jmp loc_35D05 loc_359F4: mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] xor esi, esi call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] xor esi, esi call qword ptr [rax+68h] mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov esi, 1 call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] xor esi, esi call qword ptr [rax+68h] mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov esi, 2 call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] xor esi, esi call qword ptr [rax+68h] mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov esi, 3 call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] xor esi, esi call qword ptr [rax+68h] mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov esi, 4 call qword ptr [rax+0A8h] mov rdi, rax mov rax, [rdi] call qword ptr [rax+68h] mov rdi, rax mov rax, [rdi] mov esi, 1 call qword ptr [rax+68h] jmp loc_35D05 loc_35ADF: mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov rax, [rax+0A8h] xor esi, esi mov [rbp+var_8C], esi call rax mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov esi, [rbp+var_8C] mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov rax, [rax+0A8h] mov esi, 1 mov [rbp+var_A0], esi call rax mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov esi, [rbp+var_8C] mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov rax, [rax+0A8h] mov esi, 2 call rax mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov esi, [rbp+var_8C] mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov rax, [rax+0A8h] mov esi, 3 mov [rbp+var_9C], esi call rax mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov esi, [rbp+var_A0] mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rdi, rax mov rax, [rdi] mov rax, [rax+0A8h] mov esi, 4 call rax mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov esi, [rbp+var_8C] mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov rdi, [rbp+var_78]; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov esi, [rbp+var_9C] mov rdi, rax mov rax, [rdi] mov rax, [rax+0A8h] call rax mov rdi, rax mov rax, [rdi] mov rax, [rax+68h] call rax mov rcx, rax mov rax, [rbp+var_78] mov [rbp+var_98], rcx mov rsi, [rax+28h] lea rdi, [rbp+var_58]; this mov [rbp+var_88], rdi call __ZNK18QFileSystemWatcher5filesEv; QFileSystemWatcher::files(void) mov eax, [rbp+var_8C] mov rsi, [rbp+var_88] mov edx, eax lea rdi, [rbp+var_40] call _ZNK5QListI7QStringE5valueEx; QList<QString>::value(long long) jmp short $+2 loc_35C7B: lea rsi, aUnlink; "Unlink " lea rdi, [rbp+var_28] lea rdx, [rbp+var_40] call _ZplPKcRK7QString; operator+(char const*,QString const&) jmp short $+2 loc_35C91: mov rdi, [rbp+var_98]; this lea rsi, [rbp+var_28]; QString * call __ZN15QAbstractButton7setTextERK7QString; QAbstractButton::setText(QString const&) jmp short $+2 loc_35CA3: lea rdi, [rbp+var_28]; this call _ZN7QStringD2Ev; QString::~QString() lea rdi, [rbp+var_40]; this call _ZN7QStringD2Ev; QString::~QString() lea rdi, [rbp+var_58] call _ZN5QListI7QStringED2Ev; QList<QString>::~QList() jmp short loc_35D05 mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax jmp short loc_35CFA mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax jmp short loc_35CF1 mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax lea rdi, [rbp+var_28]; this call _ZN7QStringD2Ev; QString::~QString() loc_35CF1: lea rdi, [rbp+var_40]; this call _ZN7QStringD2Ev; QString::~QString() loc_35CFA: lea rdi, [rbp+var_58] call _ZN5QListI7QStringED2Ev; QList<QString>::~QList() jmp short loc_35D18 loc_35D05: mov rax, [rbp+var_78] mov ecx, [rbp+var_C] mov [rax+30h], ecx add rsp, 0A0h pop rbp retn loc_35D18: mov rdi, [rbp+var_60] call __Unwind_Resume
QWidget * qdevtools::StyleSheetEdit::setState(QWidget *a1, int a2) { long long v2; // rax long long v3; // rax int v4; // eax long long v5; // rax long long v6; // rax int v7; // eax long long v8; // rax long long v9; // rax long long v10; // rax long long v11; // rax long long v12; // rax long long v13; // rax long long v14; // rax long long v15; // rax long long v16; // rax long long v17; // rax long long v18; // rax long long v19; // rax long long v20; // rax long long v21; // rax long long v22; // rax long long v23; // rax long long v24; // rax long long v25; // rax long long v26; // rax long long v27; // rax long long v28; // rax long long v29; // rax long long v30; // rax long long v31; // rax long long v32; // rax long long v33; // rax long long v34; // rax long long v35; // rax long long v36; // rax long long v37; // rax long long v38; // rax long long v39; // rax long long v40; // rax long long v41; // rax long long v42; // rax long long v43; // rax long long v44; // rax long long v45; // rax long long v46; // rax long long v47; // rax long long v48; // rax long long v49; // rax long long v50; // rax long long v51; // rax long long v52; // rax long long v53; // rax long long v54; // rax QWidget *result; // rax QAbstractButton *v56; // [rsp+8h] [rbp-98h] QWidget *v57; // [rsp+20h] [rbp-80h] QWidget *v58; // [rsp+30h] [rbp-70h] _BYTE v59[24]; // [rsp+48h] [rbp-58h] BYREF _BYTE v60[24]; // [rsp+60h] [rbp-40h] BYREF _BYTE v61[28]; // [rsp+78h] [rbp-28h] BYREF int v62; // [rsp+94h] [rbp-Ch] QWidget *v63; // [rsp+98h] [rbp-8h] v63 = a1; v62 = a2; v2 = QWidget::layout(a1); v3 = (*(long long ( **)(long long, long long))(*(_QWORD *)v2 + 168LL))(v2, 3LL); v57 = (QWidget *)(*(long long ( **)(long long))(*(_QWORD *)v3 + 104LL))(v3); v4 = QWidget::height(a1); QWidget::setFixedHeight(v57, v4); v5 = QWidget::layout(a1); v6 = (*(long long ( **)(long long, long long))(*(_QWORD *)v5 + 168LL))(v5, 4LL); v58 = (QWidget *)(*(long long ( **)(long long))(*(_QWORD *)v6 + 104LL))(v6); v7 = QWidget::height(a1); QWidget::setFixedHeight(v58, v7); if ( a2 ) { if ( a2 == 1 ) { v23 = QWidget::layout(a1); v24 = (*(long long ( **)(long long, _QWORD))(*(_QWORD *)v23 + 168LL))(v23, 0LL); v25 = (*(long long ( **)(long long))(*(_QWORD *)v24 + 104LL))(v24); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v25 + 104LL))(v25, 0LL); v26 = QWidget::layout(a1); v27 = (*(long long ( **)(long long, long long))(*(_QWORD *)v26 + 168LL))(v26, 1LL); v28 = (*(long long ( **)(long long))(*(_QWORD *)v27 + 104LL))(v27); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v28 + 104LL))(v28, 0LL); v29 = QWidget::layout(a1); v30 = (*(long long ( **)(long long, long long))(*(_QWORD *)v29 + 168LL))(v29, 2LL); v31 = (*(long long ( **)(long long))(*(_QWORD *)v30 + 104LL))(v30); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v31 + 104LL))(v31, 0LL); v32 = QWidget::layout(a1); v33 = (*(long long ( **)(long long, long long))(*(_QWORD *)v32 + 168LL))(v32, 3LL); v34 = (*(long long ( **)(long long))(*(_QWORD *)v33 + 104LL))(v33); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v34 + 104LL))(v34, 0LL); v35 = QWidget::layout(a1); v36 = (*(long long ( **)(long long, long long))(*(_QWORD *)v35 + 168LL))(v35, 4LL); v37 = (*(long long ( **)(long long))(*(_QWORD *)v36 + 104LL))(v36); (*(void ( **)(long long, long long))(*(_QWORD *)v37 + 104LL))(v37, 1LL); } else if ( a2 == 2 ) { v38 = QWidget::layout(a1); v39 = (*(long long ( **)(long long))(*(_QWORD *)v38 + 168LL))(v38); v40 = (*(long long ( **)(long long))(*(_QWORD *)v39 + 104LL))(v39); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v40 + 104LL))(v40, 0LL); v41 = QWidget::layout(a1); v42 = (*(long long ( **)(long long))(*(_QWORD *)v41 + 168LL))(v41); v43 = (*(long long ( **)(long long))(*(_QWORD *)v42 + 104LL))(v42); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v43 + 104LL))(v43, 0LL); v44 = QWidget::layout(a1); v45 = (*(long long ( **)(long long, long long))(*(_QWORD *)v44 + 168LL))(v44, 2LL); v46 = (*(long long ( **)(long long))(*(_QWORD *)v45 + 104LL))(v45); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v46 + 104LL))(v46, 0LL); v47 = QWidget::layout(a1); v48 = (*(long long ( **)(long long))(*(_QWORD *)v47 + 168LL))(v47); v49 = (*(long long ( **)(long long))(*(_QWORD *)v48 + 104LL))(v48); (*(void ( **)(long long, long long))(*(_QWORD *)v49 + 104LL))(v49, 1LL); v50 = QWidget::layout(a1); v51 = (*(long long ( **)(long long, long long))(*(_QWORD *)v50 + 168LL))(v50, 4LL); v52 = (*(long long ( **)(long long))(*(_QWORD *)v51 + 104LL))(v51); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v52 + 104LL))(v52, 0LL); v53 = QWidget::layout(a1); v54 = (*(long long ( **)(long long, long long))(*(_QWORD *)v53 + 168LL))(v53, 3LL); v56 = (QAbstractButton *)(*(long long ( **)(long long))(*(_QWORD *)v54 + 104LL))(v54); QFileSystemWatcher::files((QFileSystemWatcher *)v59); QList<QString>::value(v60, v59, 0LL); operator+(v61, "Unlink ", v60); QAbstractButton::setText(v56, (const QString *)v61); QString::~QString((QString *)v61); QString::~QString((QString *)v60); QList<QString>::~QList((long long)v59); } } else { v8 = QWidget::layout(a1); v9 = (*(long long ( **)(long long, _QWORD))(*(_QWORD *)v8 + 168LL))(v8, 0LL); v10 = (*(long long ( **)(long long))(*(_QWORD *)v9 + 104LL))(v9); (*(void ( **)(long long, long long))(*(_QWORD *)v10 + 104LL))(v10, 1LL); v11 = QWidget::layout(a1); v12 = (*(long long ( **)(long long, long long))(*(_QWORD *)v11 + 168LL))(v11, 1LL); v13 = (*(long long ( **)(long long))(*(_QWORD *)v12 + 104LL))(v12); (*(void ( **)(long long, long long))(*(_QWORD *)v13 + 104LL))(v13, 1LL); v14 = QWidget::layout(a1); v15 = (*(long long ( **)(long long, long long))(*(_QWORD *)v14 + 168LL))(v14, 2LL); v16 = (*(long long ( **)(long long))(*(_QWORD *)v15 + 104LL))(v15); (*(void ( **)(long long, long long))(*(_QWORD *)v16 + 104LL))(v16, 1LL); v17 = QWidget::layout(a1); v18 = (*(long long ( **)(long long, long long))(*(_QWORD *)v17 + 168LL))(v17, 3LL); v19 = (*(long long ( **)(long long))(*(_QWORD *)v18 + 104LL))(v18); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v19 + 104LL))(v19, 0LL); v20 = QWidget::layout(a1); v21 = (*(long long ( **)(long long, long long))(*(_QWORD *)v20 + 168LL))(v20, 4LL); v22 = (*(long long ( **)(long long))(*(_QWORD *)v21 + 104LL))(v21); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v22 + 104LL))(v22, 0LL); } result = a1; *((_DWORD *)a1 + 12) = v62; return result; }
setState: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x78],RDI CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0xa8] MOV ESI,0x3 CALL RAX MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV RDI,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x80],RAX CALL 0x0011c150 MOV RDI,qword ptr [RBP + -0x80] MOV ESI,EAX CALL 0x0010f170 MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0xa8] MOV ESI,0x4 CALL RAX MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV RDI,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x70],RAX CALL 0x0011c150 MOV RDI,qword ptr [RBP + -0x70] MOV ESI,EAX CALL 0x0010f170 MOV EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x68],EAX TEST EAX,EAX JZ 0x00135903 JMP 0x001358e4 LAB_001358e4: MOV EAX,dword ptr [RBP + -0x68] SUB EAX,0x1 JZ 0x001359f4 JMP 0x001358f2 LAB_001358f2: MOV EAX,dword ptr [RBP + -0x68] SUB EAX,0x2 JZ 0x00135adf JMP 0x00135d05 LAB_00135903: MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] XOR ESI,ESI CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x1 CALL qword ptr [RAX + 0x68] MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x1 CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x1 CALL qword ptr [RAX + 0x68] MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x2 CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x1 CALL qword ptr [RAX + 0x68] MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x3 CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] XOR ESI,ESI CALL qword ptr [RAX + 0x68] MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x4 CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] XOR ESI,ESI CALL qword ptr [RAX + 0x68] JMP 0x00135d05 LAB_001359f4: MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] XOR ESI,ESI CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] XOR ESI,ESI CALL qword ptr [RAX + 0x68] MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x1 CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] XOR ESI,ESI CALL qword ptr [RAX + 0x68] MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x2 CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] XOR ESI,ESI CALL qword ptr [RAX + 0x68] MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x3 CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] XOR ESI,ESI CALL qword ptr [RAX + 0x68] MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x4 CALL qword ptr [RAX + 0xa8] MOV RDI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x68] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV ESI,0x1 CALL qword ptr [RAX + 0x68] JMP 0x00135d05 LAB_00135adf: MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0xa8] XOR ESI,ESI MOV dword ptr [RBP + -0x8c],ESI CALL RAX MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV ESI,dword ptr [RBP + -0x8c] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0xa8] MOV ESI,0x1 MOV dword ptr [RBP + -0xa0],ESI CALL RAX MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV ESI,dword ptr [RBP + -0x8c] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0xa8] MOV ESI,0x2 CALL RAX MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV ESI,dword ptr [RBP + -0x8c] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0xa8] MOV ESI,0x3 MOV dword ptr [RBP + -0x9c],ESI CALL RAX MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV ESI,dword ptr [RBP + -0xa0] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0xa8] MOV ESI,0x4 CALL RAX MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV ESI,dword ptr [RBP + -0x8c] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV RDI,qword ptr [RBP + -0x78] CALL 0x0010f820 MOV ESI,dword ptr [RBP + -0x9c] MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0xa8] CALL RAX MOV RDI,RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x68] CALL RAX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x98],RCX MOV RSI,qword ptr [RAX + 0x28] LEA RDI,[RBP + -0x58] MOV qword ptr [RBP + -0x88],RDI CALL 0x0010fb70 MOV EAX,dword ptr [RBP + -0x8c] MOV RSI,qword ptr [RBP + -0x88] LAB_00135c6e: MOV EDX,EAX LEA RDI,[RBP + -0x40] CALL 0x001378c0 JMP 0x00135c7b LAB_00135c7b: LEA RSI,[0x13ba4c] LEA RDI,[RBP + -0x28] LEA RDX,[RBP + -0x40] CALL 0x00137830 JMP 0x00135c91 LAB_00135c91: MOV RDI,qword ptr [RBP + -0x98] LEA RSI,[RBP + -0x28] CALL 0x0010f3f0 LAB_00135ca1: JMP 0x00135ca3 LAB_00135ca3: LEA RDI,[RBP + -0x28] CALL 0x0011b1e0 LEA RDI,[RBP + -0x40] CALL 0x0011b1e0 LEA RDI,[RBP + -0x58] CALL 0x0011d730 JMP 0x00135d05 LAB_00135d05: MOV RAX,qword ptr [RBP + -0x78] MOV ECX,dword ptr [RBP + -0xc] MOV dword ptr [RAX + 0x30],ECX ADD RSP,0xa0 POP RBP RET
/* qdevtools::StyleSheetEdit::setState(qdevtools::StyleSheetEdit::State) */ void __thiscall qdevtools::StyleSheetEdit::setState(StyleSheetEdit *this,int param_2) { int iVar1; long *plVar2; QString *pQVar3; QList<QString> local_60 [24]; QString local_48 [24]; QString local_30 [28]; int local_14; StyleSheetEdit *local_10; local_14 = param_2; local_10 = this; plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,3); iVar1 = (**(code **)(*plVar2 + 0x68))(); QWidget::height((QWidget *)this); QWidget::setFixedHeight(iVar1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,4); iVar1 = (**(code **)(*plVar2 + 0x68))(); QWidget::height((QWidget *)this); QWidget::setFixedHeight(iVar1); if (local_14 == 0) { plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,0); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,1); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,2); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,3); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,4); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); } else if (local_14 == 1) { plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,0); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,1); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,2); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,3); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,4); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,1); } else if (local_14 == 2) { plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,2); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,4); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,3); pQVar3 = (QString *)(**(code **)(*plVar2 + 0x68))(); QFileSystemWatcher::files(); /* try { // try from 00135c6e to 00135c78 has its CatchHandler @ 00135cc0 */ QList<QString>::value((longlong)local_48); /* try { // try from 00135c7b to 00135c8e has its CatchHandler @ 00135cce */ operator+((char *)local_30,(QString *)"Unlink "); /* try { // try from 00135c91 to 00135ca0 has its CatchHandler @ 00135cdc */ QAbstractButton::setText(pQVar3); QString::~QString(local_30); QString::~QString(local_48); QList<QString>::~QList(local_60); } *(int *)(this + 0x30) = local_14; return; }
45,040
qdevtools::StyleSheetEdit::setState(qdevtools::StyleSheetEdit::State)
HuaiminNotSleepYet[P]QDevTools/qdevtools.cpp
void setState(State value) { layout()->itemAt(3)->widget()->setFixedHeight(height()); layout()->itemAt(4)->widget()->setFixedHeight(height()); switch (value) { case Edit: layout()->itemAt(0)->widget()->setVisible(true); // edit layout()->itemAt(1)->widget()->setVisible(true); // apply layout()->itemAt(2)->widget()->setVisible(true); // clear layout()->itemAt(3)->widget()->setVisible(false); // unlink layout()->itemAt(4)->widget()->setVisible(false); // drop break; case Drop: layout()->itemAt(0)->widget()->setVisible(false); // edit layout()->itemAt(1)->widget()->setVisible(false); // apply layout()->itemAt(2)->widget()->setVisible(false); // clear layout()->itemAt(3)->widget()->setVisible(false); // unlink layout()->itemAt(4)->widget()->setVisible(true); break; case Link: layout()->itemAt(0)->widget()->setVisible(false); // edit layout()->itemAt(1)->widget()->setVisible(false); // apply layout()->itemAt(2)->widget()->setVisible(false); // clear layout()->itemAt(3)->widget()->setVisible(true); // unlink layout()->itemAt(4)->widget()->setVisible(false); // drop static_cast<QPushButton*>(layout()->itemAt(3)->widget())->setText("Unlink " + watcher_->files().value(0)); break; } state_ = value; }
O3
cpp
qdevtools::StyleSheetEdit::setState(qdevtools::StyleSheetEdit::State): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movl %esi, %ebx movq %rdi, %r14 callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x3, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq 0x20(%r14), %rcx movl 0x20(%rcx), %esi subl 0x18(%rcx), %esi incl %esi movq %rax, %rdi callq 0xf170 movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x4, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq 0x20(%r14), %rcx movl 0x20(%rcx), %esi subl 0x18(%rcx), %esi incl %esi movq %rax, %rdi callq 0xf170 cmpl $0x2, %ebx je 0x202f4 cmpl $0x1, %ebx je 0x2020e testl %ebx, %ebx jne 0x204c9 movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi movl $0x1, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x1, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi movl $0x1, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x2, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi movl $0x1, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x3, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x4, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi jmp 0x202ec movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x1, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x2, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x3, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x4, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi movl $0x1, %esi callq *0x68(%rcx) jmp 0x204c9 movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x1, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x2, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x3, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi movl $0x1, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x4, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq (%rax), %rcx movq %rax, %rdi xorl %esi, %esi callq *0x68(%rcx) movq %r14, %rdi callq 0xf820 movq (%rax), %rcx movq %rax, %rdi movl $0x3, %esi callq *0xa8(%rcx) movq (%rax), %rcx movq %rax, %rdi callq *0x68(%rcx) movq %rax, %r15 movq 0x28(%r14), %rsi leaq 0x30(%rsp), %r12 movq %r12, %rdi callq 0xfb50 cmpq $0x0, 0x10(%r12) je 0x2043b movq 0x38(%rsp), %rcx movq (%rcx), %rax movq %rax, (%rsp) movq 0x8(%rcx), %rdx movq %rdx, 0x8(%rsp) movq 0x10(%rcx), %rcx movq %rcx, 0x10(%rsp) testq %rax, %rax je 0x2044b lock incl (%rax) jmp 0x2044b xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) leaq 0x260a(%rip), %rdx # 0x22a5c leaq 0x18(%rsp), %rdi movl $0x7, %esi callq 0xf6f0 leaq 0x18(%rsp), %rdi movq %rsp, %rsi callq 0xf190 leaq 0x18(%rsp), %rsi movq %r15, %rdi callq 0xf3f0 movq 0x18(%rsp), %rax testq %rax, %rax je 0x2049e lock decl (%rax) jne 0x2049e movq 0x18(%rsp), %rdi movl $0x2, %esi movl $0x8, %edx callq 0xf610 movq (%rsp), %rax testq %rax, %rax je 0x204bf lock decl (%rax) jne 0x204bf movq (%rsp), %rdi movl $0x2, %esi movl $0x8, %edx callq 0xf610 leaq 0x30(%rsp), %rdi callq 0x1c968 movl %ebx, 0x30(%r14) addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x204db movq %rax, %rbx movq 0x18(%rsp), %rax testq %rax, %rax je 0x20506 lock decl (%rax) jne 0x20506 movq 0x18(%rsp), %rdi movl $0x2, %esi movl $0x8, %edx callq 0xf610 jmp 0x20506 movq %rax, %rbx movq (%rsp), %rax testq %rax, %rax je 0x20527 lock decl (%rax) jne 0x20527 movq (%rsp), %rdi movl $0x2, %esi movl $0x8, %edx callq 0xf610 leaq 0x30(%rsp), %rdi callq 0x1c968 movq %rbx, %rdi callq 0xf410 nop
_ZN9qdevtools14StyleSheetEdit8setStateENS0_5StateE: push r15 push r14 push r12 push rbx sub rsp, 48h mov ebx, esi mov r14, rdi call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 3 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [r14+20h] mov esi, [rcx+20h] sub esi, [rcx+18h] inc esi; int mov rdi, rax; this call __ZN7QWidget14setFixedHeightEi; QWidget::setFixedHeight(int) mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 4 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [r14+20h] mov esi, [rcx+20h] sub esi, [rcx+18h] inc esi; int mov rdi, rax; this call __ZN7QWidget14setFixedHeightEi; QWidget::setFixedHeight(int) cmp ebx, 2 jz loc_202F4 cmp ebx, 1 jz loc_2020E test ebx, ebx jnz loc_204C9 mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax mov esi, 1 call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 1 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax mov esi, 1 call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 2 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax mov esi, 1 call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 3 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 4 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi jmp loc_202EC loc_2020E: mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 1 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 2 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 3 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 4 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax mov esi, 1 loc_202EC: call qword ptr [rcx+68h] jmp loc_204C9 loc_202F4: mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 1 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 2 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 3 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax mov esi, 1 call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 4 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov rcx, [rax] mov rdi, rax xor esi, esi call qword ptr [rcx+68h] mov rdi, r14; this call __ZNK7QWidget6layoutEv; QWidget::layout(void) mov rcx, [rax] mov rdi, rax mov esi, 3 call qword ptr [rcx+0A8h] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+68h] mov r15, rax mov rsi, [r14+28h] lea r12, [rsp+68h+var_38] mov rdi, r12; this call __ZNK18QFileSystemWatcher5filesEv; QFileSystemWatcher::files(void) cmp qword ptr [r12+10h], 0 jz short loc_2043B mov rcx, [rsp+68h+var_30] mov rax, [rcx] mov qword ptr [rsp+68h+var_68], rax mov rdx, [rcx+8] mov qword ptr [rsp+68h+var_68+8], rdx mov rcx, [rcx+10h] mov [rsp+68h+var_58], rcx test rax, rax jz short loc_2044B lock inc dword ptr [rax] jmp short loc_2044B loc_2043B: xorps xmm0, xmm0 movaps [rsp+68h+var_68], xmm0 mov [rsp+68h+var_58], 0 loc_2044B: lea rdx, aUnlink; "Unlink " lea rdi, [rsp+68h+var_50] mov esi, 7 call __ZN7QString8fromUtf8E14QByteArrayView; QString::fromUtf8(QByteArrayView) lea rdi, [rsp+68h+var_50]; this mov rsi, rsp; QString * call __ZN7QString6appendERKS_; QString::append(QString const&) lea rsi, [rsp+68h+var_50]; QString * mov rdi, r15; this call __ZN15QAbstractButton7setTextERK7QString; QAbstractButton::setText(QString const&) mov rax, [rsp+68h+var_50] test rax, rax jz short loc_2049E lock dec dword ptr [rax] jnz short loc_2049E mov rdi, [rsp+68h+var_50] mov esi, 2 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_2049E: mov rax, qword ptr [rsp+68h+var_68] test rax, rax jz short loc_204BF lock dec dword ptr [rax] jnz short loc_204BF mov rdi, qword ptr [rsp+68h+var_68] mov esi, 2 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_204BF: lea rdi, [rsp+68h+var_38] call _ZN17QArrayDataPointerI7QStringED2Ev; QArrayDataPointer<QString>::~QArrayDataPointer() loc_204C9: mov [r14+30h], ebx add rsp, 48h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_204DB: mov rbx, rax mov rax, [rsp+arg_10] test rax, rax jz short loc_20506 lock dec dword ptr [rax] jnz short loc_20506 mov rdi, [rsp+arg_10] mov esi, 2 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) jmp short loc_20506 mov rbx, rax loc_20506: mov rax, [rsp+0] test rax, rax jz short loc_20527 lock dec dword ptr [rax] jnz short loc_20527 mov rdi, [rsp+0] mov esi, 2 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_20527: lea rdi, [rsp+arg_28] call _ZN17QArrayDataPointerI7QStringED2Ev; QArrayDataPointer<QString>::~QArrayDataPointer() mov rdi, rbx call __Unwind_Resume
volatile signed __int32 * qdevtools::StyleSheetEdit::setState(QWidget *this, int a2) { long long v4; // rax long long v5; // rax QWidget *v6; // rax long long v7; // rax long long v8; // rax QWidget *v9; // rax volatile signed __int32 *result; // rax long long v11; // rax long long v12; // rax long long v13; // rax long long v14; // rax long long v15; // rax long long v16; // rax long long v17; // rax long long v18; // rax long long v19; // rax long long v20; // rax long long v21; // rax long long v22; // rax long long v23; // rax long long v24; // rax _QWORD *v25; // rax long long v26; // rcx _QWORD *v27; // rdi long long v28; // rsi long long v29; // rax long long v30; // rax long long v31; // rax long long v32; // rax long long v33; // rax long long v34; // rax long long v35; // rax long long v36; // rax long long v37; // rax long long v38; // rax long long v39; // rax long long v40; // rax long long v41; // rax long long v42; // rax _QWORD *v43; // rax long long v44; // rax long long v45; // rax long long v46; // rax long long v47; // rax long long v48; // rax long long v49; // rax long long v50; // rax long long v51; // rax long long v52; // rax long long v53; // rax long long v54; // rax long long v55; // rax long long v56; // rax long long v57; // rax long long v58; // rax long long v59; // rax long long v60; // rax QAbstractButton *v61; // r15 volatile signed __int32 *v62; // rax __int128 v63; // [rsp+0h] [rbp-68h] BYREF long long v64; // [rsp+10h] [rbp-58h] volatile signed __int32 *v65[3]; // [rsp+18h] [rbp-50h] BYREF volatile signed __int32 *v66; // [rsp+30h] [rbp-38h] BYREF long long v67; // [rsp+38h] [rbp-30h] long long v68; // [rsp+40h] [rbp-28h] v4 = QWidget::layout(this); v5 = (*(long long ( **)(long long, long long))(*(_QWORD *)v4 + 168LL))(v4, 3LL); v6 = (QWidget *)(*(long long ( **)(long long))(*(_QWORD *)v5 + 104LL))(v5); QWidget::setFixedHeight(v6, *(_DWORD *)(*((_QWORD *)this + 4) + 32LL) - *(_DWORD *)(*((_QWORD *)this + 4) + 24LL) + 1); v7 = QWidget::layout(this); v8 = (*(long long ( **)(long long, long long))(*(_QWORD *)v7 + 168LL))(v7, 4LL); v9 = (QWidget *)(*(long long ( **)(long long))(*(_QWORD *)v8 + 104LL))(v8); result = (volatile signed __int32 *)QWidget::setFixedHeight( v9, *(_DWORD *)(*((_QWORD *)this + 4) + 32LL) - *(_DWORD *)(*((_QWORD *)this + 4) + 24LL) + 1); switch ( a2 ) { case 2: v44 = QWidget::layout(this); v45 = (*(long long ( **)(long long, _QWORD))(*(_QWORD *)v44 + 168LL))(v44, 0LL); v46 = (*(long long ( **)(long long))(*(_QWORD *)v45 + 104LL))(v45); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v46 + 104LL))(v46, 0LL); v47 = QWidget::layout(this); v48 = (*(long long ( **)(long long, long long))(*(_QWORD *)v47 + 168LL))(v47, 1LL); v49 = (*(long long ( **)(long long))(*(_QWORD *)v48 + 104LL))(v48); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v49 + 104LL))(v49, 0LL); v50 = QWidget::layout(this); v51 = (*(long long ( **)(long long, long long))(*(_QWORD *)v50 + 168LL))(v50, 2LL); v52 = (*(long long ( **)(long long))(*(_QWORD *)v51 + 104LL))(v51); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v52 + 104LL))(v52, 0LL); v53 = QWidget::layout(this); v54 = (*(long long ( **)(long long, long long))(*(_QWORD *)v53 + 168LL))(v53, 3LL); v55 = (*(long long ( **)(long long))(*(_QWORD *)v54 + 104LL))(v54); (*(void ( **)(long long, long long))(*(_QWORD *)v55 + 104LL))(v55, 1LL); v56 = QWidget::layout(this); v57 = (*(long long ( **)(long long, long long))(*(_QWORD *)v56 + 168LL))(v56, 4LL); v58 = (*(long long ( **)(long long))(*(_QWORD *)v57 + 104LL))(v57); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v58 + 104LL))(v58, 0LL); v59 = QWidget::layout(this); v60 = (*(long long ( **)(long long, long long))(*(_QWORD *)v59 + 168LL))(v59, 3LL); v61 = (QAbstractButton *)(*(long long ( **)(long long))(*(_QWORD *)v60 + 104LL))(v60); QFileSystemWatcher::files((QFileSystemWatcher *)&v66); if ( v68 ) { v62 = *(volatile signed __int32 **)v67; *(_QWORD *)&v63 = v62; *((_QWORD *)&v63 + 1) = *(_QWORD *)(v67 + 8); v64 = *(_QWORD *)(v67 + 16); if ( v62 ) _InterlockedIncrement(v62); } else { v63 = 0LL; v64 = 0LL; } QString::fromUtf8(v65, 7LL, "Unlink "); QString::append((QString *)v65, (const QString *)&v63); QAbstractButton::setText(v61, (const QString *)v65); if ( v65[0] && !_InterlockedDecrement(v65[0]) ) QArrayData::deallocate(v65[0], 2LL); if ( (_QWORD)v63 && !_InterlockedDecrement((volatile signed __int32 *)v63) ) QArrayData::deallocate(v63, 2LL); result = QArrayDataPointer<QString>::~QArrayDataPointer(&v66); break; case 1: v29 = QWidget::layout(this); v30 = (*(long long ( **)(long long, _QWORD))(*(_QWORD *)v29 + 168LL))(v29, 0LL); v31 = (*(long long ( **)(long long))(*(_QWORD *)v30 + 104LL))(v30); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v31 + 104LL))(v31, 0LL); v32 = QWidget::layout(this); v33 = (*(long long ( **)(long long, long long))(*(_QWORD *)v32 + 168LL))(v32, 1LL); v34 = (*(long long ( **)(long long))(*(_QWORD *)v33 + 104LL))(v33); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v34 + 104LL))(v34, 0LL); v35 = QWidget::layout(this); v36 = (*(long long ( **)(long long, long long))(*(_QWORD *)v35 + 168LL))(v35, 2LL); v37 = (*(long long ( **)(long long))(*(_QWORD *)v36 + 104LL))(v36); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v37 + 104LL))(v37, 0LL); v38 = QWidget::layout(this); v39 = (*(long long ( **)(long long, long long))(*(_QWORD *)v38 + 168LL))(v38, 3LL); v40 = (*(long long ( **)(long long))(*(_QWORD *)v39 + 104LL))(v39); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v40 + 104LL))(v40, 0LL); v41 = QWidget::layout(this); v42 = (*(long long ( **)(long long, long long))(*(_QWORD *)v41 + 168LL))(v41, 4LL); v43 = (_QWORD *)(*(long long ( **)(long long))(*(_QWORD *)v42 + 104LL))(v42); v26 = *v43; v27 = v43; v28 = 1LL; goto LABEL_6; case 0: v11 = QWidget::layout(this); v12 = (*(long long ( **)(long long, _QWORD))(*(_QWORD *)v11 + 168LL))(v11, 0LL); v13 = (*(long long ( **)(long long))(*(_QWORD *)v12 + 104LL))(v12); (*(void ( **)(long long, long long))(*(_QWORD *)v13 + 104LL))(v13, 1LL); v14 = QWidget::layout(this); v15 = (*(long long ( **)(long long, long long))(*(_QWORD *)v14 + 168LL))(v14, 1LL); v16 = (*(long long ( **)(long long))(*(_QWORD *)v15 + 104LL))(v15); (*(void ( **)(long long, long long))(*(_QWORD *)v16 + 104LL))(v16, 1LL); v17 = QWidget::layout(this); v18 = (*(long long ( **)(long long, long long))(*(_QWORD *)v17 + 168LL))(v17, 2LL); v19 = (*(long long ( **)(long long))(*(_QWORD *)v18 + 104LL))(v18); (*(void ( **)(long long, long long))(*(_QWORD *)v19 + 104LL))(v19, 1LL); v20 = QWidget::layout(this); v21 = (*(long long ( **)(long long, long long))(*(_QWORD *)v20 + 168LL))(v20, 3LL); v22 = (*(long long ( **)(long long))(*(_QWORD *)v21 + 104LL))(v21); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v22 + 104LL))(v22, 0LL); v23 = QWidget::layout(this); v24 = (*(long long ( **)(long long, long long))(*(_QWORD *)v23 + 168LL))(v23, 4LL); v25 = (_QWORD *)(*(long long ( **)(long long))(*(_QWORD *)v24 + 104LL))(v24); v26 = *v25; v27 = v25; v28 = 0LL; LABEL_6: result = (volatile signed __int32 *)(*(long long ( **)(_QWORD *, long long))(v26 + 104))(v27, v28); break; } *((_DWORD *)this + 12) = a2; return result; }
setState: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x48 MOV EBX,ESI MOV R14,RDI CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x3 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [R14 + 0x20] MOV ESI,dword ptr [RCX + 0x20] SUB ESI,dword ptr [RCX + 0x18] INC ESI MOV RDI,RAX CALL 0x0010f170 MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x4 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [R14 + 0x20] MOV ESI,dword ptr [RCX + 0x20] SUB ESI,dword ptr [RCX + 0x18] INC ESI MOV RDI,RAX CALL 0x0010f170 CMP EBX,0x2 JZ 0x001202f4 CMP EBX,0x1 JZ 0x0012020e TEST EBX,EBX JNZ 0x001204c9 MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x1 CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x1 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x1 CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x2 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x1 CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x3 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x4 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI JMP 0x001202ec LAB_0012020e: MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x1 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x2 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x3 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x4 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x1 LAB_001202ec: CALL qword ptr [RCX + 0x68] JMP 0x001204c9 LAB_001202f4: MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x1 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x2 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x3 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x1 CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x4 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV RCX,qword ptr [RAX] MOV RDI,RAX XOR ESI,ESI CALL qword ptr [RCX + 0x68] MOV RDI,R14 CALL 0x0010f820 MOV RCX,qword ptr [RAX] MOV RDI,RAX MOV ESI,0x3 CALL qword ptr [RCX + 0xa8] MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x68] MOV R15,RAX MOV RSI,qword ptr [R14 + 0x28] LEA R12,[RSP + 0x30] MOV RDI,R12 CALL 0x0010fb50 CMP qword ptr [R12 + 0x10],0x0 JZ 0x0012043b MOV RCX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RCX] MOV qword ptr [RSP],RAX MOV RDX,qword ptr [RCX + 0x8] MOV qword ptr [RSP + 0x8],RDX MOV RCX,qword ptr [RCX + 0x10] MOV qword ptr [RSP + 0x10],RCX TEST RAX,RAX JZ 0x0012044b INC.LOCK dword ptr [RAX] JMP 0x0012044b LAB_0012043b: XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],0x0 LAB_0012044b: LEA RDX,[0x122a5c] LEA RDI,[RSP + 0x18] MOV ESI,0x7 CALL 0x0010f6f0 LAB_00120461: LEA RDI,[RSP + 0x18] MOV RSI,RSP CALL 0x0010f190 LAB_0012046e: LEA RSI,[RSP + 0x18] MOV RDI,R15 CALL 0x0010f3f0 LAB_0012047b: MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x0012049e DEC.LOCK dword ptr [RAX] JNZ 0x0012049e MOV RDI,qword ptr [RSP + 0x18] MOV ESI,0x2 MOV EDX,0x8 CALL 0x0010f610 LAB_0012049e: MOV RAX,qword ptr [RSP] TEST RAX,RAX JZ 0x001204bf DEC.LOCK dword ptr [RAX] JNZ 0x001204bf MOV RDI,qword ptr [RSP] MOV ESI,0x2 MOV EDX,0x8 CALL 0x0010f610 LAB_001204bf: LEA RDI,[RSP + 0x30] CALL 0x0011c968 LAB_001204c9: MOV dword ptr [R14 + 0x30],EBX ADD RSP,0x48 POP RBX POP R12 POP R14 POP R15 RET
/* qdevtools::StyleSheetEdit::setState(qdevtools::StyleSheetEdit::State) */ void __thiscall qdevtools::StyleSheetEdit::setState(StyleSheetEdit *this,int param_2) { int iVar1; long *plVar2; QString *pQVar3; long lVar4; int8 uVar5; QArrayData *local_68; QArrayData *local_50 [3]; QArrayDataPointer<QString> local_38 [8]; int8 *local_30; long local_28; plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,3); iVar1 = (**(code **)(*plVar2 + 0x68))(plVar2); QWidget::setFixedHeight(iVar1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,4); iVar1 = (**(code **)(*plVar2 + 0x68))(plVar2); QWidget::setFixedHeight(iVar1); if (param_2 == 2) { plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,0); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,1); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,2); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,3); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,4); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,3); pQVar3 = (QString *)(**(code **)(*plVar2 + 0x68))(plVar2); QFileSystemWatcher::files(); if (local_28 == 0) { local_68 = (QArrayData *)0x0; } else { local_68 = (QArrayData *)*local_30; if (local_68 != (QArrayData *)0x0) { LOCK(); *(int *)local_68 = *(int *)local_68 + 1; UNLOCK(); } } /* try { // try from 0012044b to 00120460 has its CatchHandler @ 00120503 */ QString::fromUtf8(local_50,7,"Unlink "); /* try { // try from 00120461 to 0012046d has its CatchHandler @ 001204db */ QString::append((QString *)local_50); /* try { // try from 0012046e to 0012047a has its CatchHandler @ 001204d9 */ QAbstractButton::setText(pQVar3); if (local_50[0] != (QArrayData *)0x0) { LOCK(); *(int *)local_50[0] = *(int *)local_50[0] + -1; UNLOCK(); if (*(int *)local_50[0] == 0) { QArrayData::deallocate(local_50[0],2,8); } } if (local_68 != (QArrayData *)0x0) { LOCK(); *(int *)local_68 = *(int *)local_68 + -1; UNLOCK(); if (*(int *)local_68 == 0) { QArrayData::deallocate(local_68,2,8); } } QArrayDataPointer<QString>::~QArrayDataPointer(local_38); } else { if (param_2 == 1) { plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,0); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,1); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,2); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,3); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,4); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); lVar4 = *plVar2; uVar5 = 1; } else { if (param_2 != 0) goto LAB_001204c9; plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,0); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,1); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,2); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,1); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,3); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); (**(code **)(*plVar2 + 0x68))(plVar2,0); plVar2 = (long *)QWidget::layout(); plVar2 = (long *)(**(code **)(*plVar2 + 0xa8))(plVar2,4); plVar2 = (long *)(**(code **)(*plVar2 + 0x68))(plVar2); lVar4 = *plVar2; uVar5 = 0; } (**(code **)(lVar4 + 0x68))(plVar2,uVar5); } LAB_001204c9: *(int *)(this + 0x30) = param_2; return; }
45,041
ma_apply_undo_key_delete
eloqsql/storage/maria/ma_key_recover.c
my_bool _ma_apply_undo_key_delete(MARIA_HA *info, LSN undo_lsn, const uchar *header, uint length, my_bool with_root) { LSN lsn; my_bool res; uint keynr, skip_bytes; uchar key_buff[MARIA_MAX_KEY_BUFF]; MARIA_SHARE *share= info->s; my_off_t new_root; struct st_msg_to_write_hook_for_undo_key msg; MARIA_KEY key; DBUG_ENTER("_ma_apply_undo_key_delete"); share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS | STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE); keynr= key_nr_korr(header); skip_bytes= KEY_NR_STORE_SIZE + (with_root ? PAGE_STORE_SIZE : 0); header+= skip_bytes; length-= skip_bytes; /* We have to copy key as _ma_ck_real_write_btree() may change it */ memcpy(key_buff, header, length); DBUG_DUMP("key", key_buff, length); key.keyinfo= share->keyinfo + keynr; key.data= key_buff; key.data_length= length - share->rec_reflength; key.ref_length= share->rec_reflength; key.flag= SEARCH_USER_KEY_HAS_TRANSID; new_root= share->state.key_root[keynr]; res= (share->keyinfo[keynr].key_alg == HA_KEY_ALG_RTREE) ? maria_rtree_insert_level(info, &key, -1, &new_root) : _ma_ck_real_write_btree(info, &key, &new_root, share->keyinfo[keynr].write_comp_flag | key.flag); if (res) _ma_mark_file_crashed(share); msg.root= &share->state.key_root[keynr]; msg.value= new_root; msg.keynr= keynr; if (_ma_write_clr(info, undo_lsn, *msg.root == msg.value ? LOGREC_UNDO_KEY_DELETE : LOGREC_UNDO_KEY_DELETE_WITH_ROOT, 0, 0, &lsn, (void*) &msg)) res= 1; _ma_fast_unlock_key_del(info); _ma_unpin_all_pages_and_finalize_row(info, lsn); DBUG_RETURN(res); }
O0
c
ma_apply_undo_key_delete: pushq %rbp movq %rsp, %rbp subq $0xa80, %rsp # imm = 0xA80 movb %r8b, %al movq %fs:0x28, %r8 movq %r8, -0x8(%rbp) movq %rdi, -0x9e8(%rbp) movq %rsi, -0x9f0(%rbp) movq %rdx, -0x9f8(%rbp) movl %ecx, -0x9fc(%rbp) movb %al, -0x9fd(%rbp) movq -0x9e8(%rbp), %rax movq (%rax), %rax movq %rax, -0xa20(%rbp) movq -0xa20(%rbp), %rax movl 0x170(%rax), %ecx orl $0x1b1, %ecx # imm = 0x1B1 movl %ecx, 0x170(%rax) movq -0x9f8(%rbp), %rax movzbl (%rax), %eax movl %eax, -0xa10(%rbp) movsbl -0x9fd(%rbp), %edx xorl %eax, %eax movl $0x5, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax addl $0x1, %eax movl %eax, -0xa14(%rbp) movl -0xa14(%rbp), %ecx movq -0x9f8(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x9f8(%rbp) movl -0xa14(%rbp), %ecx movl -0x9fc(%rbp), %eax subl %ecx, %eax movl %eax, -0x9fc(%rbp) leaq -0x9e0(%rbp), %rdi movq -0x9f8(%rbp), %rsi movl -0x9fc(%rbp), %eax movl %eax, %edx callq 0x2a0c0 jmp 0x4181d movq -0xa20(%rbp), %rax movq 0x570(%rax), %rax movl -0xa10(%rbp), %ecx imulq $0x118, %rcx, %rcx # imm = 0x118 addq %rcx, %rax movq %rax, -0xa60(%rbp) leaq -0x9e0(%rbp), %rax movq %rax, -0xa68(%rbp) movl -0x9fc(%rbp), %eax movq -0xa20(%rbp), %rcx subl 0x740(%rcx), %eax movl %eax, -0xa58(%rbp) movq -0xa20(%rbp), %rax movl 0x740(%rax), %eax movl %eax, -0xa54(%rbp) movl $0x80000, -0xa50(%rbp) # imm = 0x80000 movq -0xa20(%rbp), %rax movq 0x118(%rax), %rax movl -0xa10(%rbp), %ecx movq (%rax,%rcx,8), %rax movq %rax, -0xa28(%rbp) movq -0xa20(%rbp), %rax movq 0x570(%rax), %rax movl -0xa10(%rbp), %ecx imulq $0x118, %rcx, %rcx # imm = 0x118 addq %rcx, %rax movzbl 0xa4(%rax), %eax cmpl $0x2, %eax jne 0x418f6 movq -0x9e8(%rbp), %rdi leaq -0xa68(%rbp), %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF leaq -0xa28(%rbp), %rcx callq 0x77220 movl %eax, -0xa6c(%rbp) jmp 0x41943 movq -0x9e8(%rbp), %rdi movq -0xa20(%rbp), %rax movq 0x570(%rax), %rax movl -0xa10(%rbp), %ecx imulq $0x118, %rcx, %rcx # imm = 0x118 addq %rcx, %rax movl 0xb4(%rax), %ecx orl -0xa50(%rbp), %ecx leaq -0xa68(%rbp), %rsi leaq -0xa28(%rbp), %rdx callq 0x63700 movsbl %al, %eax movl %eax, -0xa6c(%rbp) movl -0xa6c(%rbp), %eax movb %al, -0xa09(%rbp) cmpb $0x0, -0xa09(%rbp) je 0x41964 movq -0xa20(%rbp), %rdi callq 0x44570 movq -0xa20(%rbp), %rax movq 0x118(%rax), %rax movl -0xa10(%rbp), %ecx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0xa48(%rbp) movq -0xa28(%rbp), %rax movq %rax, -0xa40(%rbp) movl -0xa10(%rbp), %eax movl %eax, -0xa38(%rbp) movq -0x9e8(%rbp), %rdi movq -0x9f0(%rbp), %rsi movq -0xa48(%rbp), %rax movq (%rax), %rcx movq -0xa40(%rbp), %r8 movl $0x18, %edx movl $0x17, %eax cmpq %r8, %rcx cmovel %eax, %edx xorl %r8d, %r8d leaq -0xa08(%rbp), %r9 leaq -0xa48(%rbp), %rax movl %r8d, %ecx movq %rax, (%rsp) callq 0x3f280 cmpb $0x0, %al je 0x419f7 movb $0x1, -0xa09(%rbp) movq -0x9e8(%rbp), %rdi callq 0x3f7e0 movq -0x9e8(%rbp), %rdi movq -0xa08(%rbp), %rsi callq 0x41710 movb -0xa09(%rbp), %al movb %al, -0xa6d(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x41a43 movb -0xa6d(%rbp), %al addq $0xa80, %rsp # imm = 0xA80 popq %rbp retq callq 0x2a260 nopl (%rax,%rax)
_ma_apply_undo_key_delete: push rbp mov rbp, rsp sub rsp, 0A80h mov al, r8b mov r8, fs:28h mov [rbp+var_8], r8 mov [rbp+var_9E8], rdi mov [rbp+var_9F0], rsi mov [rbp+var_9F8], rdx mov [rbp+var_9FC], ecx mov [rbp+var_9FD], al mov rax, [rbp+var_9E8] mov rax, [rax] mov [rbp+var_A20], rax mov rax, [rbp+var_A20] mov ecx, [rax+170h] or ecx, 1B1h mov [rax+170h], ecx mov rax, [rbp+var_9F8] movzx eax, byte ptr [rax] mov [rbp+var_A10], eax movsx edx, [rbp+var_9FD] xor eax, eax mov ecx, 5 cmp edx, 0 cmovnz eax, ecx add eax, 1 mov [rbp+var_A14], eax mov ecx, [rbp+var_A14] mov rax, [rbp+var_9F8] mov ecx, ecx add rax, rcx mov [rbp+var_9F8], rax mov ecx, [rbp+var_A14] mov eax, [rbp+var_9FC] sub eax, ecx mov [rbp+var_9FC], eax lea rdi, [rbp+var_9E0] mov rsi, [rbp+var_9F8] mov eax, [rbp+var_9FC] mov edx, eax call _memcpy jmp short $+2 loc_4181D: mov rax, [rbp+var_A20] mov rax, [rax+570h] mov ecx, [rbp+var_A10] imul rcx, 118h add rax, rcx mov [rbp+var_A60], rax lea rax, [rbp+var_9E0] mov [rbp+var_A68], rax mov eax, [rbp+var_9FC] mov rcx, [rbp+var_A20] sub eax, [rcx+740h] mov [rbp+var_A58], eax mov rax, [rbp+var_A20] mov eax, [rax+740h] mov [rbp+var_A54], eax mov [rbp+var_A50], 80000h mov rax, [rbp+var_A20] mov rax, [rax+118h] mov ecx, [rbp+var_A10] mov rax, [rax+rcx*8] mov [rbp+var_A28], rax mov rax, [rbp+var_A20] mov rax, [rax+570h] mov ecx, [rbp+var_A10] imul rcx, 118h add rax, rcx movzx eax, byte ptr [rax+0A4h] cmp eax, 2 jnz short loc_418F6 mov rdi, [rbp+var_9E8] lea rsi, [rbp+var_A68] mov edx, 0FFFFFFFFh lea rcx, [rbp+var_A28] call maria_rtree_insert_level mov [rbp+var_A6C], eax jmp short loc_41943 loc_418F6: mov rdi, [rbp+var_9E8] mov rax, [rbp+var_A20] mov rax, [rax+570h] mov ecx, [rbp+var_A10] imul rcx, 118h add rax, rcx mov ecx, [rax+0B4h] or ecx, [rbp+var_A50] lea rsi, [rbp+var_A68] lea rdx, [rbp+var_A28] call _ma_ck_real_write_btree movsx eax, al mov [rbp+var_A6C], eax loc_41943: mov eax, [rbp+var_A6C] mov [rbp+var_A09], al cmp [rbp+var_A09], 0 jz short loc_41964 mov rdi, [rbp+var_A20] call _ma_mark_file_crashed loc_41964: mov rax, [rbp+var_A20] mov rax, [rax+118h] mov ecx, [rbp+var_A10] shl rcx, 3 add rax, rcx mov [rbp+var_A48], rax mov rax, [rbp+var_A28] mov [rbp+var_A40], rax mov eax, [rbp+var_A10] mov [rbp+var_A38], eax mov rdi, [rbp+var_9E8] mov rsi, [rbp+var_9F0] mov rax, [rbp+var_A48] mov rcx, [rax] mov r8, [rbp+var_A40] mov edx, 18h mov eax, 17h cmp rcx, r8 cmovz edx, eax xor r8d, r8d lea r9, [rbp+var_A08] lea rax, [rbp+var_A48] mov ecx, r8d mov [rsp+0A80h+var_A80], rax call _ma_write_clr cmp al, 0 jz short loc_419F7 mov [rbp+var_A09], 1 loc_419F7: mov rdi, [rbp+var_9E8] call _ma_fast_unlock_key_del mov rdi, [rbp+var_9E8] mov rsi, [rbp+var_A08] call _ma_unpin_all_pages_and_finalize_row mov al, [rbp+var_A09] mov [rbp+var_A6D], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_41A43 mov al, [rbp+var_A6D] add rsp, 0A80h pop rbp retn loc_41A43: call ___stack_chk_fail
char ma_apply_undo_key_delete(_QWORD *a1, long long a2, unsigned __int8 *a3, unsigned int a4, char a5) { int v5; // eax int v6; // edx char inserted; // [rsp+14h] [rbp-A6Ch] _QWORD v9[2]; // [rsp+18h] [rbp-A68h] BYREF unsigned int v10; // [rsp+28h] [rbp-A58h] int v11; // [rsp+2Ch] [rbp-A54h] int v12; // [rsp+30h] [rbp-A50h] _QWORD v13[2]; // [rsp+38h] [rbp-A48h] BYREF unsigned int v14; // [rsp+48h] [rbp-A38h] long long v15; // [rsp+58h] [rbp-A28h] BYREF long long v16; // [rsp+60h] [rbp-A20h] int v17; // [rsp+6Ch] [rbp-A14h] unsigned int v18; // [rsp+70h] [rbp-A10h] char v19; // [rsp+77h] [rbp-A09h] long long v20; // [rsp+78h] [rbp-A08h] BYREF char v21; // [rsp+83h] [rbp-9FDh] unsigned int v22; // [rsp+84h] [rbp-9FCh] unsigned __int8 *v23; // [rsp+88h] [rbp-9F8h] long long v24; // [rsp+90h] [rbp-9F0h] _QWORD *v25; // [rsp+98h] [rbp-9E8h] _BYTE v26[2520]; // [rsp+A0h] [rbp-9E0h] BYREF unsigned long long v27; // [rsp+A78h] [rbp-8h] v27 = __readfsqword(0x28u); v25 = a1; v24 = a2; v23 = a3; v22 = a4; v21 = a5; v16 = *a1; *(_DWORD *)(v16 + 368) |= 0x1B1u; v18 = *v23; v5 = 0; if ( v21 ) v5 = 5; v17 = v5 + 1; v23 += (unsigned int)(v5 + 1); v22 -= v5 + 1; memcpy(v26, v23, v22); v9[1] = 280LL * v18 + *(_QWORD *)(v16 + 1392); v9[0] = v26; v10 = v22 - *(_DWORD *)(v16 + 1856); v11 = *(_DWORD *)(v16 + 1856); v12 = 0x80000; v15 = *(_QWORD *)(*(_QWORD *)(v16 + 280) + 8LL * v18); if ( *(_BYTE *)(280LL * v18 + *(_QWORD *)(v16 + 1392) + 164) == 2 ) inserted = maria_rtree_insert_level(v25, v9, 0xFFFFFFFFLL, &v15); else inserted = ma_ck_real_write_btree( v25, v9, &v15, (unsigned int)v12 | *(_DWORD *)(280LL * v18 + *(_QWORD *)(v16 + 1392) + 180)); v19 = inserted; if ( inserted ) ma_mark_file_crashed(v16); v13[0] = 8LL * v18 + *(_QWORD *)(v16 + 280); v13[1] = v15; v14 = v18; v6 = 24; if ( *(_QWORD *)v13[0] == v15 ) v6 = 23; if ( ma_write_clr(v25, v24, v6, 0, 0, (long long)&v20, (long long)v13) ) v19 = 1; ma_fast_unlock_key_del((long long)v25); ma_unpin_all_pages_and_finalize_row((long long)v25, v20); return v19; }
_ma_apply_undo_key_delete: PUSH RBP MOV RBP,RSP SUB RSP,0xa80 MOV AL,R8B MOV R8,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],R8 MOV qword ptr [RBP + -0x9e8],RDI MOV qword ptr [RBP + -0x9f0],RSI MOV qword ptr [RBP + -0x9f8],RDX MOV dword ptr [RBP + -0x9fc],ECX MOV byte ptr [RBP + -0x9fd],AL MOV RAX,qword ptr [RBP + -0x9e8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xa20],RAX MOV RAX,qword ptr [RBP + -0xa20] MOV ECX,dword ptr [RAX + 0x170] OR ECX,0x1b1 MOV dword ptr [RAX + 0x170],ECX MOV RAX,qword ptr [RBP + -0x9f8] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0xa10],EAX MOVSX EDX,byte ptr [RBP + -0x9fd] XOR EAX,EAX MOV ECX,0x5 CMP EDX,0x0 CMOVNZ EAX,ECX ADD EAX,0x1 MOV dword ptr [RBP + -0xa14],EAX MOV ECX,dword ptr [RBP + -0xa14] MOV RAX,qword ptr [RBP + -0x9f8] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x9f8],RAX MOV ECX,dword ptr [RBP + -0xa14] MOV EAX,dword ptr [RBP + -0x9fc] SUB EAX,ECX MOV dword ptr [RBP + -0x9fc],EAX LEA RDI,[RBP + -0x9e0] MOV RSI,qword ptr [RBP + -0x9f8] MOV EAX,dword ptr [RBP + -0x9fc] MOV EDX,EAX CALL 0x0012a0c0 JMP 0x0014181d LAB_0014181d: MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x570] MOV ECX,dword ptr [RBP + -0xa10] IMUL RCX,RCX,0x118 ADD RAX,RCX MOV qword ptr [RBP + -0xa60],RAX LEA RAX,[RBP + -0x9e0] MOV qword ptr [RBP + -0xa68],RAX MOV EAX,dword ptr [RBP + -0x9fc] MOV RCX,qword ptr [RBP + -0xa20] SUB EAX,dword ptr [RCX + 0x740] MOV dword ptr [RBP + -0xa58],EAX MOV RAX,qword ptr [RBP + -0xa20] MOV EAX,dword ptr [RAX + 0x740] MOV dword ptr [RBP + -0xa54],EAX MOV dword ptr [RBP + -0xa50],0x80000 MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x118] MOV ECX,dword ptr [RBP + -0xa10] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0xa28],RAX MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x570] MOV ECX,dword ptr [RBP + -0xa10] IMUL RCX,RCX,0x118 ADD RAX,RCX MOVZX EAX,byte ptr [RAX + 0xa4] CMP EAX,0x2 JNZ 0x001418f6 MOV RDI,qword ptr [RBP + -0x9e8] LEA RSI,[RBP + -0xa68] MOV EDX,0xffffffff LEA RCX,[RBP + -0xa28] CALL 0x00177220 MOV dword ptr [RBP + -0xa6c],EAX JMP 0x00141943 LAB_001418f6: MOV RDI,qword ptr [RBP + -0x9e8] MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x570] MOV ECX,dword ptr [RBP + -0xa10] IMUL RCX,RCX,0x118 ADD RAX,RCX MOV ECX,dword ptr [RAX + 0xb4] OR ECX,dword ptr [RBP + -0xa50] LEA RSI,[RBP + -0xa68] LEA RDX,[RBP + -0xa28] CALL 0x00163700 MOVSX EAX,AL MOV dword ptr [RBP + -0xa6c],EAX LAB_00141943: MOV EAX,dword ptr [RBP + -0xa6c] MOV byte ptr [RBP + -0xa09],AL CMP byte ptr [RBP + -0xa09],0x0 JZ 0x00141964 MOV RDI,qword ptr [RBP + -0xa20] CALL 0x00144570 LAB_00141964: MOV RAX,qword ptr [RBP + -0xa20] MOV RAX,qword ptr [RAX + 0x118] MOV ECX,dword ptr [RBP + -0xa10] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0xa48],RAX MOV RAX,qword ptr [RBP + -0xa28] MOV qword ptr [RBP + -0xa40],RAX MOV EAX,dword ptr [RBP + -0xa10] MOV dword ptr [RBP + -0xa38],EAX MOV RDI,qword ptr [RBP + -0x9e8] MOV RSI,qword ptr [RBP + -0x9f0] MOV RAX,qword ptr [RBP + -0xa48] MOV RCX,qword ptr [RAX] MOV R8,qword ptr [RBP + -0xa40] MOV EDX,0x18 MOV EAX,0x17 CMP RCX,R8 CMOVZ EDX,EAX XOR R8D,R8D LEA R9,[RBP + -0xa08] LEA RAX,[RBP + -0xa48] MOV ECX,R8D MOV qword ptr [RSP],RAX CALL 0x0013f280 CMP AL,0x0 JZ 0x001419f7 MOV byte ptr [RBP + -0xa09],0x1 LAB_001419f7: MOV RDI,qword ptr [RBP + -0x9e8] CALL 0x0013f7e0 MOV RDI,qword ptr [RBP + -0x9e8] MOV RSI,qword ptr [RBP + -0xa08] CALL 0x00141710 MOV AL,byte ptr [RBP + -0xa09] MOV byte ptr [RBP + -0xa6d],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00141a43 MOV AL,byte ptr [RBP + -0xa6d] ADD RSP,0xa80 POP RBP RET LAB_00141a43: CALL 0x0012a260
int8 _ma_apply_undo_key_delete(long *param_1,int8 param_2,byte *param_3,int param_4,char param_5) { char cVar1; int iVar2; int8 uVar3; long in_FS_OFFSET; char local_a74; int1 *local_a70; long local_a68; int local_a60; int4 local_a5c; int4 local_a58; long *local_a50; long local_a48; uint local_a40; long local_a30; long local_a28; uint local_a1c; uint local_a18; char local_a11; int8 local_a10; char local_a05; uint local_a04; byte *local_a00; int8 local_9f8; long *local_9f0; int1 local_9e8 [2520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_a28 = *param_1; *(uint *)(local_a28 + 0x170) = *(uint *)(local_a28 + 0x170) | 0x1b1; local_a18 = (uint)*param_3; iVar2 = 0; if (param_5 != '\0') { iVar2 = 5; } local_a1c = iVar2 + 1; local_a00 = param_3 + local_a1c; local_a04 = param_4 - local_a1c; local_a05 = param_5; local_9f8 = param_2; local_9f0 = param_1; memcpy(local_9e8,local_a00,(ulong)local_a04); local_a68 = *(long *)(local_a28 + 0x570) + (ulong)local_a18 * 0x118; local_a70 = local_9e8; local_a60 = local_a04 - *(int *)(local_a28 + 0x740); local_a5c = *(int4 *)(local_a28 + 0x740); local_a58 = 0x80000; local_a30 = *(long *)(*(long *)(local_a28 + 0x118) + (ulong)local_a18 * 8); if (*(char *)(*(long *)(local_a28 + 0x570) + (ulong)local_a18 * 0x118 + 0xa4) == '\x02') { local_a74 = maria_rtree_insert_level(local_9f0,&local_a70,0xffffffff,&local_a30); } else { local_a74 = _ma_ck_real_write_btree (local_9f0,&local_a70,&local_a30, *(uint *)(*(long *)(local_a28 + 0x570) + (ulong)local_a18 * 0x118 + 0xb4) | 0x80000); } local_a11 = local_a74; if (local_a74 != '\0') { _ma_mark_file_crashed(local_a28); } local_a50 = (long *)(*(long *)(local_a28 + 0x118) + (ulong)local_a18 * 8); local_a48 = local_a30; local_a40 = local_a18; uVar3 = 0x18; if (*local_a50 == local_a30) { uVar3 = 0x17; } cVar1 = _ma_write_clr(local_9f0,local_9f8,uVar3,0,0,&local_a10,&local_a50); if (cVar1 != '\0') { local_a11 = '\x01'; } _ma_fast_unlock_key_del(local_9f0); _ma_unpin_all_pages_and_finalize_row(local_9f0,local_a10); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_a11); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
45,042
psi_mutex_trylock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_mutex_trylock(mysql_mutex_t *that, const char *file, uint line) { PSI_mutex_locker_state state; PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait) (&state, that->m_psi, PSI_MUTEX_TRYLOCK, file, line); # ifdef SAFE_MUTEX int result= safe_mutex_lock(&that->m_mutex, TRUE, file, line); # else int result= pthread_mutex_trylock(&that->m_mutex); # endif if (locker) PSI_MUTEX_CALL(end_mutex_wait)(locker, result); return result; }
O0
c
psi_mutex_trylock: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) leaq 0x1c95ce(%rip), %rax # 0x2c1158 movq (%rax), %rax movq 0x190(%rax), %rax movq -0x8(%rbp), %rcx movq 0x40(%rcx), %rsi movq -0x10(%rbp), %rcx movl -0x14(%rbp), %r8d leaq -0x48(%rbp), %rdi movl $0x1, %edx callq *%rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rdi callq 0x2a3b0 movl %eax, -0x54(%rbp) cmpq $0x0, -0x50(%rbp) je 0xf7be0 leaq 0x1c958b(%rip), %rax # 0x2c1158 movq (%rax), %rax movq 0x198(%rax), %rax movq -0x50(%rbp), %rdi movl -0x54(%rbp), %esi callq *%rax movl -0x54(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopl (%rax)
psi_mutex_trylock: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx lea rax, PSI_server mov rax, [rax] mov rax, [rax+190h] mov rcx, [rbp+var_8] mov rsi, [rcx+40h] mov rcx, [rbp+var_10] mov r8d, [rbp+var_14] lea rdi, [rbp+var_48] mov edx, 1 call rax mov [rbp+var_50], rax mov rdi, [rbp+var_8] call _pthread_mutex_trylock mov [rbp+var_54], eax cmp [rbp+var_50], 0 jz short loc_F7BE0 lea rax, PSI_server mov rax, [rax] mov rax, [rax+198h] mov rdi, [rbp+var_50] mov esi, [rbp+var_54] call rax loc_F7BE0: mov eax, [rbp+var_54] add rsp, 60h pop rbp retn
long long psi_mutex_trylock(long long a1, long long a2, unsigned int a3) { unsigned int v4; // [rsp+Ch] [rbp-54h] long long v5; // [rsp+10h] [rbp-50h] _BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF unsigned int v7; // [rsp+4Ch] [rbp-14h] long long v8; // [rsp+50h] [rbp-10h] long long v9; // [rsp+58h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, _QWORD))PSI_server[50])( v6, *(_QWORD *)(a1 + 64), 1LL, a2, a3); v4 = pthread_mutex_trylock(v9); if ( v5 ) ((void ( *)(long long, _QWORD))PSI_server[51])(v5, v4); return v4; }
psi_mutex_trylock: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LEA RAX,[0x3c1158] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x190] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x40] MOV RCX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RBP + -0x14] LEA RDI,[RBP + -0x48] MOV EDX,0x1 CALL RAX MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x0012a3b0 MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x001f7be0 LEA RAX,[0x3c1158] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x198] MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x54] CALL RAX LAB_001f7be0: MOV EAX,dword ptr [RBP + -0x54] ADD RSP,0x60 POP RBP RET
int psi_mutex_trylock(pthread_mutex_t *param_1,int8 param_2,int4 param_3) { int iVar1; long lVar2; int1 local_50 [52]; int4 local_1c; int8 local_18; pthread_mutex_t *local_10; local_1c = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 400)) (local_50,*(int8 *)((long)param_1 + 0x40),1,param_2,param_3); iVar1 = pthread_mutex_trylock(local_10); if (lVar2 != 0) { (**(code **)(PSI_server + 0x198))(lVar2,iVar1); } return iVar1; }
45,043
skip_trailing_space
eloqsql/strings/strings_def.h
static inline const uchar *skip_trailing_space(const uchar *ptr,size_t len) { const uchar *end= ptr + len; if (len > 20) { const uchar *end_words= (const uchar *)(intptr) (((ulonglong)(intptr)end) / SIZEOF_INT * SIZEOF_INT); const uchar *start_words= (const uchar *)(intptr) ((((ulonglong)(intptr)ptr) + SIZEOF_INT - 1) / SIZEOF_INT * SIZEOF_INT); DBUG_ASSERT(((ulonglong)(intptr)ptr) >= SIZEOF_INT); if (end_words > ptr) { while (end > end_words && end[-1] == 0x20) end--; if (end[-1] == 0x20 && start_words < end_words) while (end > start_words && ((unsigned *)end)[-1] == SPACE_INT) end -= SIZEOF_INT; } } while (end > ptr && end[-1] == 0x20) end--; return (end); }
O0
c
skip_trailing_space: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax addq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x14, -0x10(%rbp) jbe 0xba53a movq -0x18(%rbp), %rax shrq $0x2, %rax shlq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax addq $0x4, %rax subq $0x1, %rax shrq $0x2, %rax shlq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0xba49d movq -0x20(%rbp), %rax cmpq -0x8(%rbp), %rax jbe 0xba538 jmp 0xba4ad movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x20(%rbp), %rcx movb %al, -0x29(%rbp) jbe 0xba4cd movq -0x18(%rbp), %rax movzbl -0x1(%rax), %eax cmpl $0x20, %eax sete %al movb %al, -0x29(%rbp) movb -0x29(%rbp), %al testb $0x1, %al jne 0xba4d6 jmp 0xba4e4 movq -0x18(%rbp), %rax addq $-0x1, %rax movq %rax, -0x18(%rbp) jmp 0xba4ad movq -0x18(%rbp), %rax movzbl -0x1(%rax), %eax cmpl $0x20, %eax jne 0xba536 movq -0x28(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0xba536 jmp 0xba4fd movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x28(%rbp), %rcx movb %al, -0x2a(%rbp) jbe 0xba51d movq -0x18(%rbp), %rax cmpl $0x20202020, -0x4(%rax) # imm = 0x20202020 sete %al movb %al, -0x2a(%rbp) movb -0x2a(%rbp), %al testb $0x1, %al jne 0xba526 jmp 0xba534 movq -0x18(%rbp), %rax addq $-0x4, %rax movq %rax, -0x18(%rbp) jmp 0xba4fd jmp 0xba536 jmp 0xba538 jmp 0xba53a jmp 0xba53c movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x8(%rbp), %rcx movb %al, -0x2b(%rbp) jbe 0xba55c movq -0x18(%rbp), %rax movzbl -0x1(%rax), %eax cmpl $0x20, %eax sete %al movb %al, -0x2b(%rbp) movb -0x2b(%rbp), %al testb $0x1, %al jne 0xba565 jmp 0xba573 movq -0x18(%rbp), %rax addq $-0x1, %rax movq %rax, -0x18(%rbp) jmp 0xba53c movq -0x18(%rbp), %rax popq %rbp retq nopl (%rax)
skip_trailing_space_3: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] add rax, [rbp+var_10] mov [rbp+var_18], rax cmp [rbp+var_10], 14h jbe loc_BA53A mov rax, [rbp+var_18] shr rax, 2 shl rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_8] add rax, 4 sub rax, 1 shr rax, 2 shl rax, 2 mov [rbp+var_28], rax jmp short $+2 loc_BA49D: mov rax, [rbp+var_20] cmp rax, [rbp+var_8] jbe loc_BA538 jmp short $+2 loc_BA4AD: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_20] mov [rbp+var_29], al jbe short loc_BA4CD mov rax, [rbp+var_18] movzx eax, byte ptr [rax-1] cmp eax, 20h ; ' ' setz al mov [rbp+var_29], al loc_BA4CD: mov al, [rbp+var_29] test al, 1 jnz short loc_BA4D6 jmp short loc_BA4E4 loc_BA4D6: mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_18], rax jmp short loc_BA4AD loc_BA4E4: mov rax, [rbp+var_18] movzx eax, byte ptr [rax-1] cmp eax, 20h ; ' ' jnz short loc_BA536 mov rax, [rbp+var_28] cmp rax, [rbp+var_20] jnb short loc_BA536 jmp short $+2 loc_BA4FD: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_28] mov [rbp+var_2A], al jbe short loc_BA51D mov rax, [rbp+var_18] cmp dword ptr [rax-4], 20202020h setz al mov [rbp+var_2A], al loc_BA51D: mov al, [rbp+var_2A] test al, 1 jnz short loc_BA526 jmp short loc_BA534 loc_BA526: mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rax jmp short loc_BA4FD loc_BA534: jmp short $+2 loc_BA536: jmp short $+2 loc_BA538: jmp short $+2 loc_BA53A: jmp short $+2 loc_BA53C: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_8] mov [rbp+var_2B], al jbe short loc_BA55C mov rax, [rbp+var_18] movzx eax, byte ptr [rax-1] cmp eax, 20h ; ' ' setz al mov [rbp+var_2B], al loc_BA55C: mov al, [rbp+var_2B] test al, 1 jnz short loc_BA565 jmp short loc_BA573 loc_BA565: mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_18], rax jmp short loc_BA53C loc_BA573: mov rax, [rbp+var_18] pop rbp retn
unsigned long long skip_trailing_space_3(unsigned long long a1, unsigned long long a2) { bool v3; // [rsp+1h] [rbp-2Bh] bool v4; // [rsp+2h] [rbp-2Ah] bool v5; // [rsp+3h] [rbp-29h] unsigned long long v6; // [rsp+4h] [rbp-28h] unsigned long long v7; // [rsp+Ch] [rbp-20h] unsigned long long v8; // [rsp+14h] [rbp-18h] v8 = a2 + a1; if ( a2 > 0x14 ) { v7 = 4 * (v8 >> 2); v6 = 4 * ((a1 + 3) >> 2); if ( v7 > a1 ) { while ( 1 ) { v5 = 0; if ( v8 > v7 ) v5 = *(_BYTE *)(v8 - 1) == 32; if ( !v5 ) break; --v8; } if ( *(_BYTE *)(v8 - 1) == 32 && v6 < v7 ) { while ( 1 ) { v4 = 0; if ( v8 > v6 ) v4 = *(_DWORD *)(v8 - 4) == 538976288; if ( !v4 ) break; v8 -= 4LL; } } } } while ( 1 ) { v3 = 0; if ( v8 > a1 ) v3 = *(_BYTE *)(v8 - 1) == 32; if ( !v3 ) break; --v8; } return v8; }
skip_trailing_space: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] ADD RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x10],0x14 JBE 0x001ba53a MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x2 SHL RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x4 SUB RAX,0x1 SHR RAX,0x2 SHL RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x001ba49d LAB_001ba49d: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x8] JBE 0x001ba538 JMP 0x001ba4ad LAB_001ba4ad: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x20] MOV byte ptr [RBP + -0x29],AL JBE 0x001ba4cd MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + -0x1] CMP EAX,0x20 SETZ AL MOV byte ptr [RBP + -0x29],AL LAB_001ba4cd: MOV AL,byte ptr [RBP + -0x29] TEST AL,0x1 JNZ 0x001ba4d6 JMP 0x001ba4e4 LAB_001ba4d6: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x001ba4ad LAB_001ba4e4: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + -0x1] CMP EAX,0x20 JNZ 0x001ba536 MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001ba536 JMP 0x001ba4fd LAB_001ba4fd: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x28] MOV byte ptr [RBP + -0x2a],AL JBE 0x001ba51d MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + -0x4],0x20202020 SETZ AL MOV byte ptr [RBP + -0x2a],AL LAB_001ba51d: MOV AL,byte ptr [RBP + -0x2a] TEST AL,0x1 JNZ 0x001ba526 JMP 0x001ba534 LAB_001ba526: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x4 MOV qword ptr [RBP + -0x18],RAX JMP 0x001ba4fd LAB_001ba534: JMP 0x001ba536 LAB_001ba536: JMP 0x001ba538 LAB_001ba538: JMP 0x001ba53a LAB_001ba53a: JMP 0x001ba53c LAB_001ba53c: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x8] MOV byte ptr [RBP + -0x2b],AL JBE 0x001ba55c MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + -0x1] CMP EAX,0x20 SETZ AL MOV byte ptr [RBP + -0x2b],AL LAB_001ba55c: MOV AL,byte ptr [RBP + -0x2b] TEST AL,0x1 JNZ 0x001ba565 JMP 0x001ba573 LAB_001ba565: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x001ba53c LAB_001ba573: MOV RAX,qword ptr [RBP + -0x18] POP RBP RET
ulong skip_trailing_space(ulong param_1,ulong param_2) { ulong uVar1; ulong uVar2; bool bVar3; ulong local_20; local_20 = param_1 + param_2; if (0x14 < param_2) { uVar1 = local_20 & 0xfffffffffffffffc; uVar2 = param_1 + 3 & 0xfffffffffffffffc; if (param_1 < uVar1) { while( true ) { bVar3 = false; if (uVar1 < local_20) { bVar3 = *(char *)(local_20 - 1) == ' '; } if (!bVar3) break; local_20 = local_20 - 1; } if ((*(char *)(local_20 - 1) == ' ') && (uVar2 < uVar1)) { while( true ) { bVar3 = false; if (uVar2 < local_20) { bVar3 = *(int *)(local_20 - 4) == 0x20202020; } if (!bVar3) break; local_20 = local_20 - 4; } } } } while( true ) { bVar3 = false; if (param_1 < local_20) { bVar3 = *(char *)(local_20 - 1) == ' '; } if (!bVar3) break; local_20 = local_20 - 1; } return local_20; }
45,044
mbedtls_chacha20_starts
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/chacha20.c
int mbedtls_chacha20_starts(mbedtls_chacha20_context *ctx, const unsigned char nonce[12], uint32_t counter) { CHACHA20_VALIDATE_RET(ctx != NULL); CHACHA20_VALIDATE_RET(nonce != NULL); /* Counter */ ctx->state[12] = counter; /* Nonce */ ctx->state[13] = MBEDTLS_GET_UINT32_LE(nonce, 0); ctx->state[14] = MBEDTLS_GET_UINT32_LE(nonce, 4); ctx->state[15] = MBEDTLS_GET_UINT32_LE(nonce, 8); mbedtls_platform_zeroize(ctx->keystream8, sizeof(ctx->keystream8)); /* Initially, there's no keystream bytes available */ ctx->keystream_bytes_used = CHACHA20_BLOCK_SIZE_BYTES; return 0; }
O3
c
mbedtls_chacha20_starts: pushq %rbx movq %rdi, %rbx movl %edx, 0x30(%rdi) movl (%rsi), %eax movl %eax, 0x34(%rdi) movl 0x4(%rsi), %eax movl %eax, 0x38(%rdi) movl 0x8(%rsi), %eax movl %eax, 0x3c(%rdi) addq $0x40, %rdi movl $0x40, %esi callq 0x8db8c movq $0x40, 0x80(%rbx) xorl %eax, %eax popq %rbx retq
mbedtls_chacha20_starts: push rbx mov rbx, rdi mov [rdi+30h], edx mov eax, [rsi] mov [rdi+34h], eax mov eax, [rsi+4] mov [rdi+38h], eax mov eax, [rsi+8] mov [rdi+3Ch], eax add rdi, 40h ; '@' mov esi, 40h ; '@' call mbedtls_platform_zeroize mov qword ptr [rbx+80h], 40h ; '@' xor eax, eax pop rbx retn
long long mbedtls_chacha20_starts(long long a1, _DWORD *a2, int a3) { *(_DWORD *)(a1 + 48) = a3; *(_DWORD *)(a1 + 52) = *a2; *(_DWORD *)(a1 + 56) = a2[1]; *(_DWORD *)(a1 + 60) = a2[2]; mbedtls_platform_zeroize(a1 + 64, 64LL); *(_QWORD *)(a1 + 128) = 64LL; return 0LL; }
mbedtls_chacha20_starts: PUSH RBX MOV RBX,RDI MOV dword ptr [RDI + 0x30],EDX MOV EAX,dword ptr [RSI] MOV dword ptr [RDI + 0x34],EAX MOV EAX,dword ptr [RSI + 0x4] MOV dword ptr [RDI + 0x38],EAX MOV EAX,dword ptr [RSI + 0x8] MOV dword ptr [RDI + 0x3c],EAX ADD RDI,0x40 MOV ESI,0x40 CALL 0x0018db8c MOV qword ptr [RBX + 0x80],0x40 XOR EAX,EAX POP RBX RET
int8 mbedtls_chacha20_starts(long param_1,int4 *param_2,int4 param_3) { *(int4 *)(param_1 + 0x30) = param_3; *(int4 *)(param_1 + 0x34) = *param_2; *(int4 *)(param_1 + 0x38) = param_2[1]; *(int4 *)(param_1 + 0x3c) = param_2[2]; mbedtls_platform_zeroize(param_1 + 0x40,0x40); *(int8 *)(param_1 + 0x80) = 0x40; return 0; }
45,045
mysql_stmt_attr_set
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
my_bool STDCALL mysql_stmt_attr_set(MYSQL_STMT *stmt, enum enum_stmt_attr_type attr_type, const void *value) { switch (attr_type) { case STMT_ATTR_UPDATE_MAX_LENGTH: stmt->update_max_length= *(my_bool *)value; break; case STMT_ATTR_CURSOR_TYPE: if (*(ulong *)value > (unsigned long) CURSOR_TYPE_READ_ONLY) { SET_CLIENT_STMT_ERROR(stmt, CR_NOT_IMPLEMENTED, SQLSTATE_UNKNOWN, 0); return(1); } stmt->flags = *(ulong *)value; break; case STMT_ATTR_PREFETCH_ROWS: if (*(ulong *)value == 0) *(long *)value= MYSQL_DEFAULT_PREFETCH_ROWS; else stmt->prefetch_rows= *(long *)value; break; case STMT_ATTR_PREBIND_PARAMS: if (stmt->state > MYSQL_STMT_INITTED) { mysql_stmt_internal_reset(stmt, 1); net_stmt_close(stmt, 0); stmt->state= MYSQL_STMT_INITTED; stmt->params= 0; } stmt->prebind_params= stmt->param_count= *(unsigned int *)value; break; case STMT_ATTR_ARRAY_SIZE: stmt->array_size= *(unsigned int *)value; break; case STMT_ATTR_ROW_SIZE: stmt->row_size= *(size_t *)value; break; case STMT_ATTR_CB_RESULT: stmt->result_callback= (ps_result_callback)value; break; case STMT_ATTR_CB_PARAM: stmt->param_callback= (ps_param_callback)value; break; case STMT_ATTR_CB_USER_DATA: stmt->user_data= (void *)value; break; default: SET_CLIENT_STMT_ERROR(stmt, CR_NOT_IMPLEMENTED, SQLSTATE_UNKNOWN, 0); return(1); } return(0); }
O0
c
mysql_stmt_attr_set: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movl -0x14(%rbp), %eax movl %eax, -0x24(%rbp) testl %eax, %eax je 0x29772 jmp 0x296f3 movl -0x24(%rbp), %eax subl $0x1, %eax je 0x29787 jmp 0x29701 movl -0x24(%rbp), %eax subl $0x2, %eax je 0x29816 jmp 0x2970f movl -0x24(%rbp), %eax subl $0xc8, %eax je 0x29844 jmp 0x2971f movl -0x24(%rbp), %eax subl $0xc9, %eax je 0x2989a jmp 0x2972f movl -0x24(%rbp), %eax subl $0xca, %eax je 0x298af jmp 0x2973f movl -0x24(%rbp), %eax subl $0xcc, %eax je 0x298eb jmp 0x2974f movl -0x24(%rbp), %eax subl $0xcd, %eax je 0x298da jmp 0x2975f movl -0x24(%rbp), %eax subl $0xce, %eax je 0x298c6 jmp 0x298fc movq -0x20(%rbp), %rax movb (%rax), %cl movq -0x10(%rbp), %rax movb %cl, 0x313(%rax) jmp 0x2996a movq -0x20(%rbp), %rax cmpq $0x1, (%rax) jbe 0x29802 jmp 0x29793 movq -0x10(%rbp), %rax movl $0x806, 0x108(%rax) # imm = 0x806 movq -0x10(%rbp), %rdi addq $0x30d, %rdi # imm = 0x30D leaq 0x378ad(%rip), %rax # 0x61060 movq (%rax), %rsi movl $0x5, %edx callq 0x13210 movq -0x10(%rbp), %rax movb $0x0, 0x312(%rax) movq -0x10(%rbp), %rdi addq $0x10c, %rdi # imm = 0x10C leaq 0x37893(%rip), %rax # 0x61070 movq 0x1b0(%rax), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13210 movq -0x10(%rbp), %rax movb $0x0, 0x30b(%rax) movb $0x1, -0x1(%rbp) jmp 0x2996e movq -0x20(%rbp), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x48(%rax) jmp 0x2996a movq -0x20(%rbp), %rax cmpq $0x0, (%rax) jne 0x2982d movq -0x20(%rbp), %rax movq $0x1, (%rax) jmp 0x2983f movq -0x20(%rbp), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x318(%rax) jmp 0x2996a movq -0x10(%rbp), %rax cmpl $0x0, 0x50(%rax) jbe 0x2987e movq -0x10(%rbp), %rdi movl $0x1, %esi callq 0x29980 movq -0x10(%rbp), %rdi xorl %esi, %esi callq 0x29b90 movq -0x10(%rbp), %rax movl $0x0, 0x50(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x70(%rax) movq -0x20(%rbp), %rax movl (%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x64(%rax) movq -0x10(%rbp), %rax movl %ecx, 0x378(%rax) jmp 0x2996a movq -0x20(%rbp), %rax movl (%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x368(%rax) jmp 0x2996a movq -0x20(%rbp), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x370(%rax) jmp 0x2996a movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x388(%rax) jmp 0x2996a movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x390(%rax) jmp 0x2996a movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x380(%rax) jmp 0x2996a jmp 0x298fe movq -0x10(%rbp), %rax movl $0x806, 0x108(%rax) # imm = 0x806 movq -0x10(%rbp), %rdi addq $0x30d, %rdi # imm = 0x30D leaq 0x37742(%rip), %rax # 0x61060 movq (%rax), %rsi movl $0x5, %edx callq 0x13210 movq -0x10(%rbp), %rax movb $0x0, 0x312(%rax) movq -0x10(%rbp), %rdi addq $0x10c, %rdi # imm = 0x10C leaq 0x37728(%rip), %rax # 0x61070 movq 0x1b0(%rax), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13210 movq -0x10(%rbp), %rax movb $0x0, 0x30b(%rax) movb $0x1, -0x1(%rbp) jmp 0x2996e movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
mysql_stmt_attr_set: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov eax, [rbp+var_14] mov [rbp+var_24], eax test eax, eax jz loc_29772 jmp short $+2 loc_296F3: mov eax, [rbp+var_24] sub eax, 1 jz loc_29787 jmp short $+2 loc_29701: mov eax, [rbp+var_24] sub eax, 2 jz loc_29816 jmp short $+2 loc_2970F: mov eax, [rbp+var_24] sub eax, 0C8h jz loc_29844 jmp short $+2 loc_2971F: mov eax, [rbp+var_24] sub eax, 0C9h jz loc_2989A jmp short $+2 loc_2972F: mov eax, [rbp+var_24] sub eax, 0CAh jz loc_298AF jmp short $+2 loc_2973F: mov eax, [rbp+var_24] sub eax, 0CCh jz loc_298EB jmp short $+2 loc_2974F: mov eax, [rbp+var_24] sub eax, 0CDh jz loc_298DA jmp short $+2 loc_2975F: mov eax, [rbp+var_24] sub eax, 0CEh jz loc_298C6 jmp loc_298FC loc_29772: mov rax, [rbp+var_20] mov cl, [rax] mov rax, [rbp+var_10] mov [rax+313h], cl jmp loc_2996A loc_29787: mov rax, [rbp+var_20] cmp qword ptr [rax], 1 jbe short loc_29802 jmp short $+2 loc_29793: mov rax, [rbp+var_10] mov dword ptr [rax+108h], 806h mov rdi, [rbp+var_10] add rdi, 30Dh lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_10] mov byte ptr [rax+312h], 0 mov rdi, [rbp+var_10] add rdi, 10Ch lea rax, client_errors mov rsi, [rax+1B0h] mov edx, 200h call _strncpy mov rax, [rbp+var_10] mov byte ptr [rax+30Bh], 0 mov [rbp+var_1], 1 jmp loc_2996E loc_29802: mov rax, [rbp+var_20] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+48h], rcx jmp loc_2996A loc_29816: mov rax, [rbp+var_20] cmp qword ptr [rax], 0 jnz short loc_2982D mov rax, [rbp+var_20] mov qword ptr [rax], 1 jmp short loc_2983F loc_2982D: mov rax, [rbp+var_20] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+318h], rcx loc_2983F: jmp loc_2996A loc_29844: mov rax, [rbp+var_10] cmp dword ptr [rax+50h], 0 jbe short loc_2987E mov rdi, [rbp+var_10] mov esi, 1 call mysql_stmt_internal_reset mov rdi, [rbp+var_10] xor esi, esi call net_stmt_close mov rax, [rbp+var_10] mov dword ptr [rax+50h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+70h], 0 loc_2987E: mov rax, [rbp+var_20] mov ecx, [rax] mov rax, [rbp+var_10] mov [rax+64h], ecx mov rax, [rbp+var_10] mov [rax+378h], ecx jmp loc_2996A loc_2989A: mov rax, [rbp+var_20] mov ecx, [rax] mov rax, [rbp+var_10] mov [rax+368h], ecx jmp loc_2996A loc_298AF: mov rax, [rbp+var_20] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+370h], rcx jmp loc_2996A loc_298C6: mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax+388h], rcx jmp loc_2996A loc_298DA: mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax+390h], rcx jmp short loc_2996A loc_298EB: mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax+380h], rcx jmp short loc_2996A loc_298FC: jmp short $+2 loc_298FE: mov rax, [rbp+var_10] mov dword ptr [rax+108h], 806h mov rdi, [rbp+var_10] add rdi, 30Dh lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_10] mov byte ptr [rax+312h], 0 mov rdi, [rbp+var_10] add rdi, 10Ch lea rax, client_errors mov rsi, [rax+1B0h] mov edx, 200h call _strncpy mov rax, [rbp+var_10] mov byte ptr [rax+30Bh], 0 mov [rbp+var_1], 1 jmp short loc_2996E loc_2996A: mov [rbp+var_1], 0 loc_2996E: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char mysql_stmt_attr_set(long long a1, int a2, _BYTE *a3) { int v3; // ecx if ( !a2 ) { *(_BYTE *)(a1 + 787) = *a3; return 0; } if ( a2 != 1 ) { switch ( a2 ) { case 2: if ( *(_QWORD *)a3 ) *(_QWORD *)(a1 + 792) = *(_QWORD *)a3; else *(_QWORD *)a3 = 1LL; break; case 200: if ( *(_DWORD *)(a1 + 80) ) { mysql_stmt_internal_reset(a1, 1LL); net_stmt_close(a1, 0LL); *(_DWORD *)(a1 + 80) = 0; *(_QWORD *)(a1 + 112) = 0LL; } v3 = *(_DWORD *)a3; *(_DWORD *)(a1 + 100) = *(_DWORD *)a3; *(_DWORD *)(a1 + 888) = v3; break; case 201: *(_DWORD *)(a1 + 872) = *(_DWORD *)a3; break; case 202: *(_QWORD *)(a1 + 880) = *(_QWORD *)a3; break; case 204: *(_QWORD *)(a1 + 896) = a3; break; case 205: *(_QWORD *)(a1 + 912) = a3; break; case 206: *(_QWORD *)(a1 + 904) = a3; break; default: goto LABEL_13; } return 0; } if ( *(_QWORD *)a3 <= 1uLL ) { *(_QWORD *)(a1 + 72) = *(_QWORD *)a3; return 0; } LABEL_13: *(_DWORD *)(a1 + 264) = 2054; strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 786) = 0; strncpy(a1 + 268, client_errors[54], 512LL); *(_BYTE *)(a1 + 779) = 0; return 1; }
mysql_stmt_attr_set: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x24],EAX TEST EAX,EAX JZ 0x00129772 JMP 0x001296f3 LAB_001296f3: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0x1 JZ 0x00129787 JMP 0x00129701 LAB_00129701: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0x2 JZ 0x00129816 JMP 0x0012970f LAB_0012970f: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0xc8 JZ 0x00129844 JMP 0x0012971f LAB_0012971f: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0xc9 JZ 0x0012989a JMP 0x0012972f LAB_0012972f: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0xca JZ 0x001298af JMP 0x0012973f LAB_0012973f: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0xcc JZ 0x001298eb JMP 0x0012974f LAB_0012974f: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0xcd JZ 0x001298da JMP 0x0012975f LAB_0012975f: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0xce JZ 0x001298c6 JMP 0x001298fc LAB_00129772: MOV RAX,qword ptr [RBP + -0x20] MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x313],CL JMP 0x0012996a LAB_00129787: MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX],0x1 JBE 0x00129802 JMP 0x00129793 LAB_00129793: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x108],0x806 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x30d LEA RAX,[0x161060] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x312],0x0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x10c LEA RAX,[0x161070] MOV RSI,qword ptr [RAX + 0x1b0] MOV EDX,0x200 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x30b],0x0 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0012996e LAB_00129802: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x48],RCX JMP 0x0012996a LAB_00129816: MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX],0x0 JNZ 0x0012982d MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],0x1 JMP 0x0012983f LAB_0012982d: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x318],RCX LAB_0012983f: JMP 0x0012996a LAB_00129844: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x50],0x0 JBE 0x0012987e MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x1 CALL 0x00129980 MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI CALL 0x00129b90 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x50],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x70],0x0 LAB_0012987e: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x64],ECX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x378],ECX JMP 0x0012996a LAB_0012989a: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x368],ECX JMP 0x0012996a LAB_001298af: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x370],RCX JMP 0x0012996a LAB_001298c6: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x388],RCX JMP 0x0012996a LAB_001298da: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x390],RCX JMP 0x0012996a LAB_001298eb: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x380],RCX JMP 0x0012996a LAB_001298fc: JMP 0x001298fe LAB_001298fe: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x108],0x806 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x30d LEA RAX,[0x161060] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x312],0x0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x10c LEA RAX,[0x161070] MOV RSI,qword ptr [RAX + 0x1b0] MOV EDX,0x200 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x30b],0x0 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0012996e LAB_0012996a: MOV byte ptr [RBP + -0x1],0x0 LAB_0012996e: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 mysql_stmt_attr_set(long param_1,int param_2,ulong *param_3) { ulong uVar1; if (param_2 == 0) { *(char *)(param_1 + 0x313) = (char)*param_3; } else if (param_2 == 1) { if (1 < *param_3) { *(int4 *)(param_1 + 0x108) = 0x806; strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; strncpy((char *)(param_1 + 0x10c),PTR_s_This_feature_is_not_implemented_o_00161220,0x200); *(int1 *)(param_1 + 0x30b) = 0; return 1; } *(ulong *)(param_1 + 0x48) = *param_3; } else if (param_2 == 2) { if (*param_3 == 0) { *param_3 = 1; } else { *(ulong *)(param_1 + 0x318) = *param_3; } } else if (param_2 == 200) { if (*(int *)(param_1 + 0x50) != 0) { mysql_stmt_internal_reset(param_1,1); net_stmt_close(param_1,0); *(int4 *)(param_1 + 0x50) = 0; *(int8 *)(param_1 + 0x70) = 0; } uVar1 = *param_3; *(int *)(param_1 + 100) = (int)uVar1; *(int *)(param_1 + 0x378) = (int)uVar1; } else if (param_2 == 0xc9) { *(int *)(param_1 + 0x368) = (int)*param_3; } else if (param_2 == 0xca) { *(ulong *)(param_1 + 0x370) = *param_3; } else if (param_2 == 0xcc) { *(ulong **)(param_1 + 0x380) = param_3; } else if (param_2 == 0xcd) { *(ulong **)(param_1 + 0x390) = param_3; } else { if (param_2 != 0xce) { *(int4 *)(param_1 + 0x108) = 0x806; strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; strncpy((char *)(param_1 + 0x10c),PTR_s_This_feature_is_not_implemented_o_00161220,0x200); *(int1 *)(param_1 + 0x30b) = 0; return 1; } *(ulong **)(param_1 + 0x388) = param_3; } return 0; }
45,046
mysql_stmt_attr_set
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
my_bool STDCALL mysql_stmt_attr_set(MYSQL_STMT *stmt, enum enum_stmt_attr_type attr_type, const void *value) { switch (attr_type) { case STMT_ATTR_UPDATE_MAX_LENGTH: stmt->update_max_length= *(my_bool *)value; break; case STMT_ATTR_CURSOR_TYPE: if (*(ulong *)value > (unsigned long) CURSOR_TYPE_READ_ONLY) { SET_CLIENT_STMT_ERROR(stmt, CR_NOT_IMPLEMENTED, SQLSTATE_UNKNOWN, 0); return(1); } stmt->flags = *(ulong *)value; break; case STMT_ATTR_PREFETCH_ROWS: if (*(ulong *)value == 0) *(long *)value= MYSQL_DEFAULT_PREFETCH_ROWS; else stmt->prefetch_rows= *(long *)value; break; case STMT_ATTR_PREBIND_PARAMS: if (stmt->state > MYSQL_STMT_INITTED) { mysql_stmt_internal_reset(stmt, 1); net_stmt_close(stmt, 0); stmt->state= MYSQL_STMT_INITTED; stmt->params= 0; } stmt->prebind_params= stmt->param_count= *(unsigned int *)value; break; case STMT_ATTR_ARRAY_SIZE: stmt->array_size= *(unsigned int *)value; break; case STMT_ATTR_ROW_SIZE: stmt->row_size= *(size_t *)value; break; case STMT_ATTR_CB_RESULT: stmt->result_callback= (ps_result_callback)value; break; case STMT_ATTR_CB_PARAM: stmt->param_callback= (ps_param_callback)value; break; case STMT_ATTR_CB_USER_DATA: stmt->user_data= (void *)value; break; default: SET_CLIENT_STMT_ERROR(stmt, CR_NOT_IMPLEMENTED, SQLSTATE_UNKNOWN, 0); return(1); } return(0); }
O3
c
mysql_stmt_attr_set: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdx, %r14 movq %rdi, %rbx cmpl $0xc7, %esi jle 0x208ef addl $0xffffff38, %esi # imm = 0xFFFFFF38 cmpl $0x6, %esi ja 0x20967 leaq 0x18a17(%rip), %rax # 0x392c0 movslq (%rax,%rsi,4), %rcx addq %rax, %rcx jmpq *%rcx cmpl $0x0, 0x50(%rbx) je 0x208de movq %rbx, %rdi movl $0x1, %esi callq 0x209d4 movq %rbx, %rdi xorl %esi, %esi callq 0x20b36 movl $0x0, 0x50(%rbx) movq $0x0, 0x70(%rbx) movl (%r14), %eax movl %eax, 0x64(%rbx) movl %eax, 0x378(%rbx) jmp 0x209cd testl %esi, %esi je 0x20953 cmpl $0x1, %esi je 0x2095e cmpl $0x2, %esi jne 0x20967 movq (%r14), %rax testq %rax, %rax je 0x209c6 movq %rax, 0x318(%rbx) jmp 0x209cd movq %r14, 0x390(%rbx) jmp 0x209cd movq (%r14), %rax movq %rax, 0x370(%rbx) jmp 0x209cd movq %r14, 0x380(%rbx) jmp 0x209cd movl (%r14), %eax movl %eax, 0x368(%rbx) jmp 0x209cd movq %r14, 0x388(%rbx) jmp 0x209cd movb (%r14), %al movb %al, 0x313(%rbx) jmp 0x209cd movq (%r14), %rax cmpq $0x2, %rax jb 0x209c0 movl $0x806, 0x108(%rbx) # imm = 0x806 leaq 0x30d(%rbx), %rdi leaq 0x2a231(%rip), %rax # 0x4abb0 movq (%rax), %rsi movl $0x5, %edx callq 0x13220 xorl %r14d, %r14d movb %r14b, 0x312(%rbx) leaq 0x10c(%rbx), %rdi leaq 0x2a21c(%rip), %rax # 0x4abc0 movq 0x1b0(%rax), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13220 movb %r14b, 0x30b(%rbx) movb $0x1, %al jmp 0x209cf movq %rax, 0x48(%rbx) jmp 0x209cd movq $0x1, (%r14) xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq
mysql_stmt_attr_set: push rbp mov rbp, rsp push r14 push rbx mov r14, rdx mov rbx, rdi cmp esi, 0C7h jle short loc_208EF add esi, 0FFFFFF38h; switch 7 cases cmp esi, 6 ja def_208B0; jumptable 00000000000208B0 default case, case 203 lea rax, jpt_208B0 movsxd rcx, ds:(jpt_208B0 - 392C0h)[rax+rsi*4] add rcx, rax jmp rcx; switch jump loc_208B2: cmp dword ptr [rbx+50h], 0; jumptable 00000000000208B0 case 200 jz short loc_208DE mov rdi, rbx mov esi, 1 call mysql_stmt_internal_reset mov rdi, rbx xor esi, esi call net_stmt_close mov dword ptr [rbx+50h], 0 mov qword ptr [rbx+70h], 0 loc_208DE: mov eax, [r14] mov [rbx+64h], eax mov [rbx+378h], eax jmp loc_209CD loc_208EF: test esi, esi jz short loc_20953 cmp esi, 1 jz short loc_2095E cmp esi, 2 jnz short def_208B0; jumptable 00000000000208B0 default case, case 203 mov rax, [r14] test rax, rax jz loc_209C6 mov [rbx+318h], rax jmp loc_209CD loc_20915: mov [rbx+390h], r14; jumptable 00000000000208B0 case 205 jmp loc_209CD loc_20921: mov rax, [r14]; jumptable 00000000000208B0 case 202 mov [rbx+370h], rax jmp loc_209CD loc_20930: mov [rbx+380h], r14; jumptable 00000000000208B0 case 204 jmp loc_209CD loc_2093C: mov eax, [r14]; jumptable 00000000000208B0 case 201 mov [rbx+368h], eax jmp loc_209CD loc_2094A: mov [rbx+388h], r14; jumptable 00000000000208B0 case 206 jmp short loc_209CD loc_20953: mov al, [r14] mov [rbx+313h], al jmp short loc_209CD loc_2095E: mov rax, [r14] cmp rax, 2 jb short loc_209C0 def_208B0: mov dword ptr [rbx+108h], 806h; jumptable 00000000000208B0 default case, case 203 lea rdi, [rbx+30Dh] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy xor r14d, r14d mov [rbx+312h], r14b lea rdi, [rbx+10Ch] lea rax, client_errors mov rsi, [rax+1B0h] mov edx, 200h call _strncpy mov [rbx+30Bh], r14b mov al, 1 jmp short loc_209CF loc_209C0: mov [rbx+48h], rax jmp short loc_209CD loc_209C6: mov qword ptr [r14], 1 loc_209CD: xor eax, eax loc_209CF: pop rbx pop r14 pop rbp retn
char mysql_stmt_attr_set(long long a1, int a2, int *a3) { int v4; // eax if ( a2 > 199 ) { switch ( a2 ) { case 200: if ( *(_DWORD *)(a1 + 80) ) { mysql_stmt_internal_reset(a1, 1LL); net_stmt_close(a1, 0LL); *(_DWORD *)(a1 + 80) = 0; *(_QWORD *)(a1 + 112) = 0LL; } v4 = *a3; *(_DWORD *)(a1 + 100) = *a3; *(_DWORD *)(a1 + 888) = v4; return 0; case 201: *(_DWORD *)(a1 + 872) = *a3; return 0; case 202: *(_QWORD *)(a1 + 880) = *(_QWORD *)a3; return 0; case 204: *(_QWORD *)(a1 + 896) = a3; return 0; case 205: *(_QWORD *)(a1 + 912) = a3; return 0; case 206: *(_QWORD *)(a1 + 904) = a3; return 0; default: goto LABEL_18; } } if ( a2 ) { if ( a2 != 1 ) { if ( a2 == 2 ) { if ( *(_QWORD *)a3 ) *(_QWORD *)(a1 + 792) = *(_QWORD *)a3; else *(_QWORD *)a3 = 1LL; return 0; } LABEL_18: *(_DWORD *)(a1 + 264) = 2054; strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 786) = 0; strncpy(a1 + 268, client_errors[54], 512LL); *(_BYTE *)(a1 + 779) = 0; return 1; } if ( *(_QWORD *)a3 >= 2uLL ) goto LABEL_18; *(_QWORD *)(a1 + 72) = *(_QWORD *)a3; } else { *(_BYTE *)(a1 + 787) = *(_BYTE *)a3; } return 0; }
mysql_stmt_attr_set: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RDX MOV RBX,RDI CMP ESI,0xc7 JLE 0x001208ef ADD ESI,0xffffff38 CMP ESI,0x6 JA 0x00120967 LEA RAX,[0x1392c0] MOVSXD RCX,dword ptr [RAX + RSI*0x4] ADD RCX,RAX switchD: JMP RCX caseD_c8: CMP dword ptr [RBX + 0x50],0x0 JZ 0x001208de MOV RDI,RBX MOV ESI,0x1 CALL 0x001209d4 MOV RDI,RBX XOR ESI,ESI CALL 0x00120b36 MOV dword ptr [RBX + 0x50],0x0 MOV qword ptr [RBX + 0x70],0x0 LAB_001208de: MOV EAX,dword ptr [R14] MOV dword ptr [RBX + 0x64],EAX MOV dword ptr [RBX + 0x378],EAX JMP 0x001209cd LAB_001208ef: TEST ESI,ESI JZ 0x00120953 CMP ESI,0x1 JZ 0x0012095e CMP ESI,0x2 JNZ 0x00120967 MOV RAX,qword ptr [R14] TEST RAX,RAX JZ 0x001209c6 MOV qword ptr [RBX + 0x318],RAX JMP 0x001209cd caseD_cd: MOV qword ptr [RBX + 0x390],R14 JMP 0x001209cd caseD_ca: MOV RAX,qword ptr [R14] MOV qword ptr [RBX + 0x370],RAX JMP 0x001209cd caseD_cc: MOV qword ptr [RBX + 0x380],R14 JMP 0x001209cd caseD_c9: MOV EAX,dword ptr [R14] MOV dword ptr [RBX + 0x368],EAX JMP 0x001209cd caseD_ce: MOV qword ptr [RBX + 0x388],R14 JMP 0x001209cd LAB_00120953: MOV AL,byte ptr [R14] MOV byte ptr [RBX + 0x313],AL JMP 0x001209cd LAB_0012095e: MOV RAX,qword ptr [R14] CMP RAX,0x2 JC 0x001209c0 caseD_cb: MOV dword ptr [RBX + 0x108],0x806 LEA RDI,[RBX + 0x30d] LEA RAX,[0x14abb0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113220 XOR R14D,R14D MOV byte ptr [RBX + 0x312],R14B LEA RDI,[RBX + 0x10c] LEA RAX,[0x14abc0] MOV RSI,qword ptr [RAX + 0x1b0] MOV EDX,0x200 CALL 0x00113220 MOV byte ptr [RBX + 0x30b],R14B MOV AL,0x1 JMP 0x001209cf LAB_001209c0: MOV qword ptr [RBX + 0x48],RAX JMP 0x001209cd LAB_001209c6: MOV qword ptr [R14],0x1 LAB_001209cd: XOR EAX,EAX LAB_001209cf: POP RBX POP R14 POP RBP RET
int8 mysql_stmt_attr_set(long param_1,int param_2,ulong *param_3) { ulong uVar1; if (param_2 < 200) { if (param_2 == 0) { *(char *)(param_1 + 0x313) = (char)*param_3; } else if (param_2 == 1) { if (1 < *param_3) goto switchD_001208b0_caseD_cb; *(ulong *)(param_1 + 0x48) = *param_3; } else { if (param_2 != 2) { switchD_001208b0_caseD_cb: *(int4 *)(param_1 + 0x108) = 0x806; strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; strncpy((char *)(param_1 + 0x10c),PTR_s_This_feature_is_not_implemented_o_0014ad70,0x200); *(int1 *)(param_1 + 0x30b) = 0; return 1; } if (*param_3 == 0) { *param_3 = 1; } else { *(ulong *)(param_1 + 0x318) = *param_3; } } } else { switch(param_2) { case 200: if (*(int *)(param_1 + 0x50) != 0) { mysql_stmt_internal_reset(param_1,1); net_stmt_close(param_1,0); *(int4 *)(param_1 + 0x50) = 0; *(int8 *)(param_1 + 0x70) = 0; } uVar1 = *param_3; *(int *)(param_1 + 100) = (int)uVar1; *(int *)(param_1 + 0x378) = (int)uVar1; break; case 0xc9: *(int *)(param_1 + 0x368) = (int)*param_3; break; case 0xca: *(ulong *)(param_1 + 0x370) = *param_3; break; default: goto switchD_001208b0_caseD_cb; case 0xcc: *(ulong **)(param_1 + 0x380) = param_3; break; case 0xcd: *(ulong **)(param_1 + 0x390) = param_3; break; case 0xce: *(ulong **)(param_1 + 0x388) = param_3; } } return 0; }
45,047
set_default_charset
eloqsql/libmariadb/libmariadb/mariadb_charset.c
my_bool set_default_charset(uint cs, myf flags __attribute__((unused))) { MARIADB_CHARSET_INFO *new_charset; new_charset = mysql_get_charset_by_nr(cs); if (!new_charset) { return(TRUE); /* error */ } ma_default_charset_info = new_charset; return(FALSE); }
O0
c
set_default_charset: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl -0x8(%rbp), %edi callq 0x4eb90 movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x4ec57 movb $0x1, -0x1(%rbp) jmp 0x4ec69 movq -0x18(%rbp), %rcx leaq 0x1d5e6(%rip), %rax # 0x6c248 movq %rcx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
set_default_charset: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], edi mov [rbp+var_C], esi mov edi, [rbp+var_8] call mysql_get_charset_by_nr mov [rbp+var_18], rax cmp [rbp+var_18], 0 jnz short loc_4EC57 mov [rbp+var_1], 1 jmp short loc_4EC69 loc_4EC57: mov rcx, [rbp+var_18] lea rax, ma_default_charset_info mov [rax], rcx mov [rbp+var_1], 0 loc_4EC69: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char set_default_charset(int a1) { char *charset_by_nr; // [rsp+8h] [rbp-18h] charset_by_nr = mysql_get_charset_by_nr(a1); if ( !charset_by_nr ) return 1; ma_default_charset_info = charset_by_nr; return 0; }
set_default_charset: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x8],EDI MOV dword ptr [RBP + -0xc],ESI MOV EDI,dword ptr [RBP + -0x8] CALL 0x0014eb90 MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0x0 JNZ 0x0014ec57 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0014ec69 LAB_0014ec57: MOV RCX,qword ptr [RBP + -0x18] LEA RAX,[0x16c248] MOV qword ptr [RAX],RCX MOV byte ptr [RBP + -0x1],0x0 LAB_0014ec69: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int8 set_default_charset(int4 param_1) { long lVar1; int8 *puVar2; bool local_9; lVar1 = mysql_get_charset_by_nr(param_1); if (lVar1 != 0) { puVar2 = &ma_default_charset_info; ma_default_charset_info = lVar1; } else { puVar2 = (int8 *)0x0; } local_9 = lVar1 == 0; return CONCAT71((int7)((ulong)puVar2 >> 8),local_9); }
45,048
func_gb2312_uni_onechar
eloqsql/strings/ctype-gb2312.c
static int func_gb2312_uni_onechar(int code){ if ((code>=0x2121)&&(code<=0x2658)) return(tab_gb2312_uni0[code-0x2121]); if ((code>=0x2721)&&(code<=0x296F)) return(tab_gb2312_uni1[code-0x2721]); if ((code>=0x3021)&&(code<=0x777E)) return(tab_gb2312_uni2[code-0x3021]); return(0); }
O0
c
func_gb2312_uni_onechar: pushq %rbp movq %rsp, %rbp movl %edi, -0x8(%rbp) cmpl $0x2121, -0x8(%rbp) # imm = 0x2121 jl 0xa6b14 cmpl $0x2658, -0x8(%rbp) # imm = 0x2658 jg 0xa6b14 movl -0x8(%rbp), %eax subl $0x2121, %eax # imm = 0x2121 movslq %eax, %rcx leaq 0xca2b5(%rip), %rax # 0x170dc0 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xa6b75 cmpl $0x2721, -0x8(%rbp) # imm = 0x2721 jl 0xa6b41 cmpl $0x296f, -0x8(%rbp) # imm = 0x296F jg 0xa6b41 movl -0x8(%rbp), %eax subl $0x2721, %eax # imm = 0x2721 movslq %eax, %rcx leaq 0xcacf8(%rip), %rax # 0x171830 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xa6b75 cmpl $0x3021, -0x8(%rbp) # imm = 0x3021 jl 0xa6b6e cmpl $0x777e, -0x8(%rbp) # imm = 0x777E jg 0xa6b6e movl -0x8(%rbp), %eax subl $0x3021, %eax # imm = 0x3021 movslq %eax, %rcx leaq 0xcb16b(%rip), %rax # 0x171cd0 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xa6b75 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
func_gb2312_uni_onechar: push rbp mov rbp, rsp mov [rbp+var_8], edi cmp [rbp+var_8], 2121h jl short loc_A6B14 cmp [rbp+var_8], 2658h jg short loc_A6B14 mov eax, [rbp+var_8] sub eax, 2121h movsxd rcx, eax lea rax, tab_gb2312_uni0 movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp short loc_A6B75 loc_A6B14: cmp [rbp+var_8], 2721h jl short loc_A6B41 cmp [rbp+var_8], 296Fh jg short loc_A6B41 mov eax, [rbp+var_8] sub eax, 2721h movsxd rcx, eax lea rax, tab_gb2312_uni1 movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp short loc_A6B75 loc_A6B41: cmp [rbp+var_8], 3021h jl short loc_A6B6E cmp [rbp+var_8], 777Eh jg short loc_A6B6E mov eax, [rbp+var_8] sub eax, 3021h movsxd rcx, eax lea rax, tab_gb2312_uni2 movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp short loc_A6B75 loc_A6B6E: mov [rbp+var_4], 0 loc_A6B75: mov eax, [rbp+var_4] pop rbp retn
long long func_gb2312_uni_onechar(int a1) { if ( a1 < 8481 || a1 > 9816 ) { if ( a1 < 10017 || a1 > 10607 ) { if ( a1 < 12321 || a1 > 30590 ) return 0; else return tab_gb2312_uni2[a1 - 12321]; } else { return tab_gb2312_uni1[a1 - 10017]; } } else { return tab_gb2312_uni0[a1 - 8481]; } }
func_gb2312_uni_onechar: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x8],EDI CMP dword ptr [RBP + -0x8],0x2121 JL 0x001a6b14 CMP dword ptr [RBP + -0x8],0x2658 JG 0x001a6b14 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x2121 MOVSXD RCX,EAX LEA RAX,[0x270dc0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001a6b75 LAB_001a6b14: CMP dword ptr [RBP + -0x8],0x2721 JL 0x001a6b41 CMP dword ptr [RBP + -0x8],0x296f JG 0x001a6b41 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x2721 MOVSXD RCX,EAX LEA RAX,[0x271830] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001a6b75 LAB_001a6b41: CMP dword ptr [RBP + -0x8],0x3021 JL 0x001a6b6e CMP dword ptr [RBP + -0x8],0x777e JG 0x001a6b6e MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x3021 MOVSXD RCX,EAX LEA RAX,[0x271cd0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001a6b75 LAB_001a6b6e: MOV dword ptr [RBP + -0x4],0x0 LAB_001a6b75: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int2 func_gb2312_uni_onechar(int param_1) { int2 uVar1; if ((param_1 < 0x2121) || (0x2658 < param_1)) { if ((param_1 < 0x2721) || (0x296f < param_1)) { if ((param_1 < 0x3021) || (0x777e < param_1)) { uVar1 = 0; } else { uVar1 = *(int2 *)(tab_gb2312_uni2 + (long)(param_1 + -0x3021) * 2); } } else { uVar1 = *(int2 *)(tab_gb2312_uni1 + (long)(param_1 + -0x2721) * 2); } } else { uVar1 = *(int2 *)(tab_gb2312_uni0 + (long)(param_1 + -0x2121) * 2); } return uVar1; }
45,049
mj_solveM2
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_core_smooth.c
void mj_solveM2(const mjModel* m, mjData* d, mjtNum* x, const mjtNum* y, int n) { // local copies of key variables mjtNum* qLD = d->qLD; mjtNum* qLDiagSqrtInv = d->qLDiagSqrtInv; int* dof_Madr = m->dof_Madr; int* dof_parentid = m->dof_parentid; int nv = m->nv; // x = y mju_copy(x, y, n * nv); // loop over the n input vectors for (int ivec=0; ivec < n; ivec++) { int offset = ivec*nv; // x <- inv(L') * x; skip simple, exploit sparsity of input vector for (int i=nv-1; i >= 0; i--) { mjtNum tmp; if (!m->dof_simplenum[i] && (tmp = x[i+offset])) { // init int Madr_ij = dof_Madr[i]+1; int j = dof_parentid[i]; // traverse ancestors backwards while (j >= 0) { x[j+offset] -= qLD[Madr_ij++] * tmp; // x(j) -= L(i,j) * x(i) // advance to parent j = dof_parentid[j]; } } } // x <- sqrt(inv(D)) * x for (int i=0; i < nv; i++) { x[i+offset] *= qLDiagSqrtInv[i]; // x(i) /= sqrt(L(i,i)) } } }
O0
c
mj_solveM2: subq $0x78, %rsp movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq %rdx, 0x60(%rsp) movq %rcx, 0x58(%rsp) movl %r8d, 0x54(%rsp) movq 0x68(%rsp), %rax movq 0x27930(%rax), %rax movq %rax, 0x48(%rsp) movq 0x68(%rsp), %rax movq 0x27940(%rax), %rax movq %rax, 0x40(%rsp) movq 0x70(%rsp), %rax movq 0x6e0(%rax), %rax movq %rax, 0x38(%rsp) movq 0x70(%rsp), %rax movq 0x6d0(%rax), %rax movq %rax, 0x30(%rsp) movq 0x70(%rsp), %rax movl 0x4(%rax), %eax movl %eax, 0x2c(%rsp) movq 0x60(%rsp), %rdi movq 0x58(%rsp), %rsi movl 0x54(%rsp), %edx imull 0x2c(%rsp), %edx callq 0x492d0 movl $0x0, 0x28(%rsp) movl 0x28(%rsp), %eax cmpl 0x54(%rsp), %eax jge 0x8123b movl 0x28(%rsp), %eax imull 0x2c(%rsp), %eax movl %eax, 0x24(%rsp) movl 0x2c(%rsp), %eax subl $0x1, %eax movl %eax, 0x20(%rsp) cmpl $0x0, 0x20(%rsp) jl 0x811e1 movq 0x70(%rsp), %rax movq 0x6e8(%rax), %rax movslq 0x20(%rsp), %rcx cmpl $0x0, (%rax,%rcx,4) jne 0x811cf movq 0x60(%rsp), %rax movl 0x20(%rsp), %ecx addl 0x24(%rsp), %ecx movslq %ecx, %rcx vmovsd (%rax,%rcx,8), %xmm0 vmovsd %xmm0, 0x18(%rsp) vxorps %xmm1, %xmm1, %xmm1 vucomisd %xmm1, %xmm0 jne 0x81135 jp 0x81135 jmp 0x811cf movq 0x38(%rsp), %rax movslq 0x20(%rsp), %rcx movl (%rax,%rcx,4), %eax addl $0x1, %eax movl %eax, 0x14(%rsp) movq 0x30(%rsp), %rax movslq 0x20(%rsp), %rcx movl (%rax,%rcx,4), %eax movl %eax, 0x10(%rsp) cmpl $0x0, 0x10(%rsp) jl 0x811cd movq 0x48(%rsp), %rax movl 0x14(%rsp), %ecx movl %ecx, %edx addl $0x1, %edx movl %edx, 0x14(%rsp) movslq %ecx, %rcx vmovsd (%rax,%rcx,8), %xmm0 vmovsd 0x18(%rsp), %xmm2 movq 0x60(%rsp), %rax movl 0x10(%rsp), %ecx addl 0x24(%rsp), %ecx movslq %ecx, %rcx vmovsd (%rax,%rcx,8), %xmm1 vmovq %xmm0, %rdx movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000 xorq %rsi, %rdx vmovq %rdx, %xmm0 vmulsd %xmm2, %xmm0, %xmm0 vaddsd %xmm1, %xmm0, %xmm0 vmovsd %xmm0, (%rax,%rcx,8) movq 0x30(%rsp), %rax movslq 0x10(%rsp), %rcx movl (%rax,%rcx,4), %eax movl %eax, 0x10(%rsp) jmp 0x8115a jmp 0x811cf jmp 0x811d1 movl 0x20(%rsp), %eax addl $-0x1, %eax movl %eax, 0x20(%rsp) jmp 0x810e3 movl $0x0, 0xc(%rsp) movl 0xc(%rsp), %eax cmpl 0x2c(%rsp), %eax jge 0x81229 movq 0x40(%rsp), %rax movslq 0xc(%rsp), %rcx vmovsd (%rax,%rcx,8), %xmm0 movq 0x60(%rsp), %rax movl 0xc(%rsp), %ecx addl 0x24(%rsp), %ecx movslq %ecx, %rcx vmulsd (%rax,%rcx,8), %xmm0, %xmm0 vmovsd %xmm0, (%rax,%rcx,8) movl 0xc(%rsp), %eax addl $0x1, %eax movl %eax, 0xc(%rsp) jmp 0x811e9 jmp 0x8122b movl 0x28(%rsp), %eax addl $0x1, %eax movl %eax, 0x28(%rsp) jmp 0x810bd addq $0x78, %rsp retq
mj_solveM2: sub rsp, 78h mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov [rsp+78h+var_18], rdx mov [rsp+78h+var_20], rcx mov [rsp+78h+var_24], r8d mov rax, [rsp+78h+var_10] mov rax, [rax+27930h] mov [rsp+78h+var_30], rax mov rax, [rsp+78h+var_10] mov rax, [rax+27940h] mov [rsp+78h+var_38], rax mov rax, [rsp+78h+var_8] mov rax, [rax+6E0h] mov [rsp+78h+var_40], rax mov rax, [rsp+78h+var_8] mov rax, [rax+6D0h] mov [rsp+78h+var_48], rax mov rax, [rsp+78h+var_8] mov eax, [rax+4] mov [rsp+78h+var_4C], eax mov rdi, [rsp+78h+var_18] mov rsi, [rsp+78h+var_20] mov edx, [rsp+78h+var_24] imul edx, [rsp+78h+var_4C] call _mju_copy mov [rsp+78h+var_50], 0 loc_810BD: mov eax, [rsp+78h+var_50] cmp eax, [rsp+78h+var_24] jge loc_8123B mov eax, [rsp+78h+var_50] imul eax, [rsp+78h+var_4C] mov [rsp+78h+var_54], eax mov eax, [rsp+78h+var_4C] sub eax, 1 mov [rsp+78h+var_58], eax loc_810E3: cmp [rsp+78h+var_58], 0 jl loc_811E1 mov rax, [rsp+78h+var_8] mov rax, [rax+6E8h] movsxd rcx, [rsp+78h+var_58] cmp dword ptr [rax+rcx*4], 0 jnz loc_811CF mov rax, [rsp+78h+var_18] mov ecx, [rsp+78h+var_58] add ecx, [rsp+78h+var_54] movsxd rcx, ecx vmovsd xmm0, qword ptr [rax+rcx*8] vmovsd [rsp+78h+var_60], xmm0 vxorps xmm1, xmm1, xmm1 vucomisd xmm0, xmm1 jnz short loc_81135 jp short loc_81135 jmp loc_811CF loc_81135: mov rax, [rsp+78h+var_40] movsxd rcx, [rsp+78h+var_58] mov eax, [rax+rcx*4] add eax, 1 mov [rsp+78h+var_64], eax mov rax, [rsp+78h+var_48] movsxd rcx, [rsp+78h+var_58] mov eax, [rax+rcx*4] mov [rsp+78h+var_68], eax loc_8115A: cmp [rsp+78h+var_68], 0 jl short loc_811CD mov rax, [rsp+78h+var_30] mov ecx, [rsp+78h+var_64] mov edx, ecx add edx, 1 mov [rsp+78h+var_64], edx movsxd rcx, ecx vmovsd xmm0, qword ptr [rax+rcx*8] vmovsd xmm2, [rsp+78h+var_60] mov rax, [rsp+78h+var_18] mov ecx, [rsp+78h+var_68] add ecx, [rsp+78h+var_54] movsxd rcx, ecx vmovsd xmm1, qword ptr [rax+rcx*8] vmovq rdx, xmm0 mov rsi, 8000000000000000h xor rdx, rsi vmovq xmm0, rdx vmulsd xmm0, xmm0, xmm2 vaddsd xmm0, xmm0, xmm1 vmovsd qword ptr [rax+rcx*8], xmm0 mov rax, [rsp+78h+var_48] movsxd rcx, [rsp+78h+var_68] mov eax, [rax+rcx*4] mov [rsp+78h+var_68], eax jmp short loc_8115A loc_811CD: jmp short $+2 loc_811CF: jmp short $+2 loc_811D1: mov eax, [rsp+78h+var_58] add eax, 0FFFFFFFFh mov [rsp+78h+var_58], eax jmp loc_810E3 loc_811E1: mov [rsp+78h+var_6C], 0 loc_811E9: mov eax, [rsp+78h+var_6C] cmp eax, [rsp+78h+var_4C] jge short loc_81229 mov rax, [rsp+78h+var_38] movsxd rcx, [rsp+78h+var_6C] vmovsd xmm0, qword ptr [rax+rcx*8] mov rax, [rsp+78h+var_18] mov ecx, [rsp+78h+var_6C] add ecx, [rsp+78h+var_54] movsxd rcx, ecx vmulsd xmm0, xmm0, qword ptr [rax+rcx*8] vmovsd qword ptr [rax+rcx*8], xmm0 mov eax, [rsp+78h+var_6C] add eax, 1 mov [rsp+78h+var_6C], eax jmp short loc_811E9 loc_81229: jmp short $+2 loc_8122B: mov eax, [rsp+78h+var_50] add eax, 1 mov [rsp+78h+var_50], eax jmp loc_810BD loc_8123B: add rsp, 78h retn
long long mj_solveM2(long long a1, long long a2, long long a3, long long a4, int a5, double a6, __m128 _XMM1) { long long result; // rax int m; // [rsp+Ch] [rbp-6Ch] int k; // [rsp+10h] [rbp-68h] int v29; // [rsp+14h] [rbp-64h] int j; // [rsp+20h] [rbp-58h] int v32; // [rsp+24h] [rbp-54h] unsigned int i; // [rsp+28h] [rbp-50h] int v34; // [rsp+2Ch] [rbp-4Ch] long long v35; // [rsp+30h] [rbp-48h] long long v36; // [rsp+38h] [rbp-40h] long long v37; // [rsp+40h] [rbp-38h] long long v38; // [rsp+48h] [rbp-30h] v38 = *(_QWORD *)(a2 + 162096); v37 = *(_QWORD *)(a2 + 162112); v36 = *(_QWORD *)(a1 + 1760); v35 = *(_QWORD *)(a1 + 1744); v34 = *(_DWORD *)(a1 + 4); mju_copy(a3, a4, (unsigned int)(v34 * a5)); for ( i = 0; ; ++i ) { result = i; if ( (int)i >= a5 ) break; v32 = v34 * i; for ( j = v34 - 1; j >= 0; --j ) { if ( !*(_DWORD *)(*(_QWORD *)(a1 + 1768) + 4LL * j) ) { _RAX = a3; _RCX = v32 + j; __asm { vmovsd xmm0, qword ptr [rax+rcx*8] vmovsd [rsp+78h+var_60], xmm0 vxorps xmm1, xmm1, xmm1 vucomisd xmm0, xmm1 } if ( v32 + j || __SETP__(v32 + j, 0) ) { v29 = *(_DWORD *)(v36 + 4LL * j) + 1; for ( k = *(_DWORD *)(v35 + 4LL * j); k >= 0; k = *(_DWORD *)(v35 + 4LL * k) ) { _RAX = v38; LODWORD(_RCX) = v29++; _RCX = (int)_RCX; __asm { vmovsd xmm0, qword ptr [rax+rcx*8] vmovsd xmm2, [rsp+78h+var_60] } _RAX = a3; _RCX = v32 + k; __asm { vmovsd xmm1, qword ptr [rax+rcx*8] vmovq rdx, xmm0 } _RDX ^= 0x8000000000000000LL; __asm { vmovq xmm0, rdx vmulsd xmm0, xmm0, xmm2 vaddsd xmm0, xmm0, xmm1 vmovsd qword ptr [rax+rcx*8], xmm0 } } } } } for ( m = 0; m < v34; ++m ) { _RAX = v37; _RCX = m; __asm { vmovsd xmm0, qword ptr [rax+rcx*8] } _RAX = a3; _RCX = v32 + m; __asm { vmulsd xmm0, xmm0, qword ptr [rax+rcx*8] vmovsd qword ptr [rax+rcx*8], xmm0 } } } return result; }
mj_solveM2: SUB RSP,0x78 MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV qword ptr [RSP + 0x60],RDX MOV qword ptr [RSP + 0x58],RCX MOV dword ptr [RSP + 0x54],R8D MOV RAX,qword ptr [RSP + 0x68] MOV RAX,qword ptr [RAX + 0x27930] MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x68] MOV RAX,qword ptr [RAX + 0x27940] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x6e0] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x6d0] MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x70] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RSP + 0x2c],EAX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x58] MOV EDX,dword ptr [RSP + 0x54] IMUL EDX,dword ptr [RSP + 0x2c] CALL 0x001492d0 MOV dword ptr [RSP + 0x28],0x0 LAB_001810bd: MOV EAX,dword ptr [RSP + 0x28] CMP EAX,dword ptr [RSP + 0x54] JGE 0x0018123b MOV EAX,dword ptr [RSP + 0x28] IMUL EAX,dword ptr [RSP + 0x2c] MOV dword ptr [RSP + 0x24],EAX MOV EAX,dword ptr [RSP + 0x2c] SUB EAX,0x1 MOV dword ptr [RSP + 0x20],EAX LAB_001810e3: CMP dword ptr [RSP + 0x20],0x0 JL 0x001811e1 MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x6e8] MOVSXD RCX,dword ptr [RSP + 0x20] CMP dword ptr [RAX + RCX*0x4],0x0 JNZ 0x001811cf MOV RAX,qword ptr [RSP + 0x60] MOV ECX,dword ptr [RSP + 0x20] ADD ECX,dword ptr [RSP + 0x24] MOVSXD RCX,ECX VMOVSD XMM0,qword ptr [RAX + RCX*0x8] VMOVSD qword ptr [RSP + 0x18],XMM0 VXORPS XMM1,XMM1,XMM1 VUCOMISD XMM0,XMM1 JNZ 0x00181135 JP 0x00181135 JMP 0x001811cf LAB_00181135: MOV RAX,qword ptr [RSP + 0x38] MOVSXD RCX,dword ptr [RSP + 0x20] MOV EAX,dword ptr [RAX + RCX*0x4] ADD EAX,0x1 MOV dword ptr [RSP + 0x14],EAX MOV RAX,qword ptr [RSP + 0x30] MOVSXD RCX,dword ptr [RSP + 0x20] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RSP + 0x10],EAX LAB_0018115a: CMP dword ptr [RSP + 0x10],0x0 JL 0x001811cd MOV RAX,qword ptr [RSP + 0x48] MOV ECX,dword ptr [RSP + 0x14] MOV EDX,ECX ADD EDX,0x1 MOV dword ptr [RSP + 0x14],EDX MOVSXD RCX,ECX VMOVSD XMM0,qword ptr [RAX + RCX*0x8] VMOVSD XMM2,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x60] MOV ECX,dword ptr [RSP + 0x10] ADD ECX,dword ptr [RSP + 0x24] MOVSXD RCX,ECX VMOVSD XMM1,qword ptr [RAX + RCX*0x8] VMOVQ RDX,XMM0 MOV RSI,-0x8000000000000000 XOR RDX,RSI VMOVQ XMM0,RDX VMULSD XMM0,XMM0,XMM2 VADDSD XMM0,XMM0,XMM1 VMOVSD qword ptr [RAX + RCX*0x8],XMM0 MOV RAX,qword ptr [RSP + 0x30] MOVSXD RCX,dword ptr [RSP + 0x10] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RSP + 0x10],EAX JMP 0x0018115a LAB_001811cd: JMP 0x001811cf LAB_001811cf: JMP 0x001811d1 LAB_001811d1: MOV EAX,dword ptr [RSP + 0x20] ADD EAX,-0x1 MOV dword ptr [RSP + 0x20],EAX JMP 0x001810e3 LAB_001811e1: MOV dword ptr [RSP + 0xc],0x0 LAB_001811e9: MOV EAX,dword ptr [RSP + 0xc] CMP EAX,dword ptr [RSP + 0x2c] JGE 0x00181229 MOV RAX,qword ptr [RSP + 0x40] MOVSXD RCX,dword ptr [RSP + 0xc] VMOVSD XMM0,qword ptr [RAX + RCX*0x8] MOV RAX,qword ptr [RSP + 0x60] MOV ECX,dword ptr [RSP + 0xc] ADD ECX,dword ptr [RSP + 0x24] MOVSXD RCX,ECX VMULSD XMM0,XMM0,qword ptr [RAX + RCX*0x8] VMOVSD qword ptr [RAX + RCX*0x8],XMM0 MOV EAX,dword ptr [RSP + 0xc] ADD EAX,0x1 MOV dword ptr [RSP + 0xc],EAX JMP 0x001811e9 LAB_00181229: JMP 0x0018122b LAB_0018122b: MOV EAX,dword ptr [RSP + 0x28] ADD EAX,0x1 MOV dword ptr [RSP + 0x28],EAX JMP 0x001810bd LAB_0018123b: ADD RSP,0x78 RET
void mj_solveM2(long param_1,long param_2,long param_3,int8 param_4,int param_5) { double dVar1; int iVar2; long lVar3; long lVar4; long lVar5; long lVar6; int iVar7; int local_6c; int local_68; int local_64; int local_58; int local_50; lVar3 = *(long *)(param_2 + 0x27930); lVar4 = *(long *)(param_2 + 0x27940); lVar5 = *(long *)(param_1 + 0x6e0); lVar6 = *(long *)(param_1 + 0x6d0); iVar2 = *(int *)(param_1 + 4); mju_copy(param_3,param_4,param_5 * iVar2); for (local_50 = 0; local_50 < param_5; local_50 = local_50 + 1) { iVar7 = local_50 * iVar2; local_58 = iVar2; while (local_58 = local_58 + -1, -1 < local_58) { if (*(int *)(*(long *)(param_1 + 0x6e8) + (long)local_58 * 4) == 0) { dVar1 = *(double *)(param_3 + (long)(local_58 + iVar7) * 8); if ((dVar1 != 0.0) || (NAN(dVar1))) { local_64 = *(int *)(lVar5 + (long)local_58 * 4); for (local_68 = *(int *)(lVar6 + (long)local_58 * 4); local_64 = local_64 + 1, -1 < local_68; local_68 = *(int *)(lVar6 + (long)local_68 * 4)) { *(double *)(param_3 + (long)(local_68 + iVar7) * 8) = -*(double *)(lVar3 + (long)local_64 * 8) * dVar1 + *(double *)(param_3 + (long)(local_68 + iVar7) * 8); } } } } for (local_6c = 0; local_6c < iVar2; local_6c = local_6c + 1) { *(double *)(param_3 + (long)(local_6c + iVar7) * 8) = *(double *)(lVar4 + (long)local_6c * 8) * *(double *)(param_3 + (long)(local_6c + iVar7) * 8); } } return; }
45,050
fmt::v10::appender fmt::v10::detail::write_exponent<char, fmt::v10::appender>(int, fmt::v10::appender)
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
FMT_CONSTEXPR auto write_exponent(int exp, It it) -> It { FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range"); if (exp < 0) { *it++ = static_cast<Char>('-'); exp = -exp; } else { *it++ = static_cast<Char>('+'); } if (exp >= 100) { const char* top = digits2(to_unsigned(exp / 100)); if (exp >= 1000) *it++ = static_cast<Char>(top[0]); *it++ = static_cast<Char>(top[1]); exp %= 100; } const char* d = digits2(to_unsigned(exp)); *it++ = static_cast<Char>(d[0]); *it++ = static_cast<Char>(d[1]); return it; }
O3
c
fmt::v10::appender fmt::v10::detail::write_exponent<char, fmt::v10::appender>(int, fmt::v10::appender): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %rbx movl %edi, %ebp movq 0x10(%rsi), %rax movq 0x18(%rsi), %rcx leaq 0x1(%rax), %rsi testl %edi, %edi js 0x44a70 cmpq %rsi, %rcx jae 0x44a62 movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb $0x2b, (%rcx,%rax) jmp 0x44a93 cmpq %rsi, %rcx jae 0x44a85 movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb $0x2d, (%rcx,%rax) negl %ebp cmpl $0x64, %ebp jb 0x44b27 movl %ebp, %eax imulq $0x51eb851f, %rax, %r14 # imm = 0x51EB851F shrq $0x25, %r14 leal (%r14,%r14), %r15d cmpl $0x3e8, %ebp # imm = 0x3E8 jb 0x44aea leaq 0x3cfe6(%rip), %rax # 0x81aa2 movb (%r15,%rax), %r12b movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi cmpq %rsi, 0x18(%rbx) jae 0x44ade movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb %r12b, (%rcx,%rax) imull $0x64, %r14d, %r12d leaq 0x3cfad(%rip), %rax # 0x81aa2 movb 0x1(%r15,%rax), %r14b movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi cmpq %rsi, 0x18(%rbx) jae 0x44b18 movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi subl %r12d, %ebp movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb %r14b, (%rcx,%rax) movl %ebp, %r14d leaq 0x3cf71(%rip), %r15 # 0x81aa2 movb (%r15,%r14,2), %bpl movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi cmpq %rsi, 0x18(%rbx) jae 0x44b53 movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb %bpl, (%rcx,%rax) movb 0x1(%r15,%r14,2), %bpl movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi cmpq %rsi, 0x18(%rbx) jae 0x44b82 movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb %bpl, (%rcx,%rax) movq %rbx, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_ZN3fmt3v106detail14write_exponentIcNS0_8appenderEEET0_iS4_: push rbp push r15 push r14 push r12 push rbx mov rbx, rsi mov ebp, edi mov rax, [rsi+10h] mov rcx, [rsi+18h] lea rsi, [rax+1] test edi, edi js short loc_44A70 cmp rcx, rsi jnb short loc_44A62 mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_44A62: mov rcx, [rbx+8] mov [rbx+10h], rsi mov byte ptr [rcx+rax], 2Bh ; '+' jmp short loc_44A93 loc_44A70: cmp rcx, rsi jnb short loc_44A85 mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_44A85: mov rcx, [rbx+8] mov [rbx+10h], rsi mov byte ptr [rcx+rax], 2Dh ; '-' neg ebp loc_44A93: cmp ebp, 64h ; 'd' jb loc_44B27 mov eax, ebp imul r14, rax, 51EB851Fh shr r14, 25h lea r15d, [r14+r14] cmp ebp, 3E8h jb short loc_44AEA lea rax, a00010203040506; "000102030405060708091011121314151617181"... mov r12b, [r15+rax] mov rax, [rbx+10h] lea rsi, [rax+1] cmp [rbx+18h], rsi jnb short loc_44ADE mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_44ADE: mov rcx, [rbx+8] mov [rbx+10h], rsi mov [rcx+rax], r12b loc_44AEA: imul r12d, r14d, 64h ; 'd' lea rax, a00010203040506; "000102030405060708091011121314151617181"... mov r14b, [r15+rax+1] mov rax, [rbx+10h] lea rsi, [rax+1] cmp [rbx+18h], rsi jnb short loc_44B18 mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_44B18: sub ebp, r12d mov rcx, [rbx+8] mov [rbx+10h], rsi mov [rcx+rax], r14b loc_44B27: mov r14d, ebp lea r15, a00010203040506; "000102030405060708091011121314151617181"... mov bpl, [r15+r14*2] mov rax, [rbx+10h] lea rsi, [rax+1] cmp [rbx+18h], rsi jnb short loc_44B53 mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_44B53: mov rcx, [rbx+8] mov [rbx+10h], rsi mov [rcx+rax], bpl mov bpl, [r15+r14*2+1] mov rax, [rbx+10h] lea rsi, [rax+1] cmp [rbx+18h], rsi jnb short loc_44B82 mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_44B82: mov rcx, [rbx+8] mov [rbx+10h], rsi mov [rcx+rax], bpl mov rax, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long fmt::v10::detail::write_exponent<char,fmt::v10::appender>(int a1, long long a2) { unsigned int v3; // ebp long long v4; // rax unsigned long long v5; // rcx unsigned long long v6; // rsi long long v7; // rcx long long v8; // rcx long long v9; // r15 char v10; // r12 long long v11; // rax long long v12; // rsi long long v13; // rcx char v14; // r14 long long v15; // rax long long v16; // rsi long long v17; // rcx long long v18; // r14 char v19; // bp long long v20; // rax long long v21; // rsi long long v22; // rcx char v23; // bp long long v24; // rax long long v25; // rsi long long v26; // rcx v3 = a1; v4 = *(_QWORD *)(a2 + 16); v5 = *(_QWORD *)(a2 + 24); v6 = v4 + 1; if ( a1 < 0 ) { if ( v5 < v6 ) { (**(void ( ***)(long long))a2)(a2); v4 = *(_QWORD *)(a2 + 16); v6 = v4 + 1; } v8 = *(_QWORD *)(a2 + 8); *(_QWORD *)(a2 + 16) = v6; *(_BYTE *)(v8 + v4) = 45; v3 = -a1; } else { if ( v5 < v6 ) { (**(void ( ***)(long long))a2)(a2); v4 = *(_QWORD *)(a2 + 16); v6 = v4 + 1; } v7 = *(_QWORD *)(a2 + 8); *(_QWORD *)(a2 + 16) = v6; *(_BYTE *)(v7 + v4) = 43; } if ( v3 >= 0x64 ) { v9 = 2 * (v3 / 0x64); if ( v3 >= 0x3E8 ) { v10 = a00010203040506[v9]; v11 = *(_QWORD *)(a2 + 16); v12 = v11 + 1; if ( *(_QWORD *)(a2 + 24) < (unsigned long long)(v11 + 1) ) { (**(void ( ***)(long long))a2)(a2); v11 = *(_QWORD *)(a2 + 16); v12 = v11 + 1; } v13 = *(_QWORD *)(a2 + 8); *(_QWORD *)(a2 + 16) = v12; *(_BYTE *)(v13 + v11) = v10; } v14 = a00010203040506[v9 + 1]; v15 = *(_QWORD *)(a2 + 16); v16 = v15 + 1; if ( *(_QWORD *)(a2 + 24) < (unsigned long long)(v15 + 1) ) { (**(void ( ***)(long long))a2)(a2); v15 = *(_QWORD *)(a2 + 16); v16 = v15 + 1; } v3 %= 0x64u; v17 = *(_QWORD *)(a2 + 8); *(_QWORD *)(a2 + 16) = v16; *(_BYTE *)(v17 + v15) = v14; } v18 = v3; v19 = a00010203040506[2 * v3]; v20 = *(_QWORD *)(a2 + 16); v21 = v20 + 1; if ( *(_QWORD *)(a2 + 24) < (unsigned long long)(v20 + 1) ) { (**(void ( ***)(long long))a2)(a2); v20 = *(_QWORD *)(a2 + 16); v21 = v20 + 1; } v22 = *(_QWORD *)(a2 + 8); *(_QWORD *)(a2 + 16) = v21; *(_BYTE *)(v22 + v20) = v19; v23 = a00010203040506[2 * v18 + 1]; v24 = *(_QWORD *)(a2 + 16); v25 = v24 + 1; if ( *(_QWORD *)(a2 + 24) < (unsigned long long)(v24 + 1) ) { (**(void ( ***)(long long))a2)(a2); v24 = *(_QWORD *)(a2 + 16); v25 = v24 + 1; } v26 = *(_QWORD *)(a2 + 8); *(_QWORD *)(a2 + 16) = v25; *(_BYTE *)(v26 + v24) = v23; return a2; }
write_exponent<char,fmt::v10::appender>: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RSI MOV EBP,EDI MOV RAX,qword ptr [RSI + 0x10] MOV RCX,qword ptr [RSI + 0x18] LEA RSI,[RAX + 0x1] TEST EDI,EDI JS 0x00144a70 CMP RCX,RSI JNC 0x00144a62 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00144a62: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],0x2b JMP 0x00144a93 LAB_00144a70: CMP RCX,RSI JNC 0x00144a85 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00144a85: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],0x2d NEG EBP LAB_00144a93: CMP EBP,0x64 JC 0x00144b27 MOV EAX,EBP IMUL R14,RAX,0x51eb851f SHR R14,0x25 LEA R15D,[R14 + R14*0x1] CMP EBP,0x3e8 JC 0x00144aea LEA RAX,[0x181aa2] MOV R12B,byte ptr [R15 + RAX*0x1] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x00144ade MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00144ade: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],R12B LAB_00144aea: IMUL R12D,R14D,0x64 LEA RAX,[0x181aa2] MOV R14B,byte ptr [R15 + RAX*0x1 + 0x1] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x00144b18 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00144b18: SUB EBP,R12D MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],R14B LAB_00144b27: MOV R14D,EBP LEA R15,[0x181aa2] MOV BPL,byte ptr [R15 + R14*0x2] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x00144b53 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00144b53: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],BPL MOV BPL,byte ptr [R15 + R14*0x2 + 0x1] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x00144b82 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00144b82: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],BPL MOV RAX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* fmt::v10::appender fmt::v10::detail::write_exponent<char, fmt::v10::appender>(int, fmt::v10::appender) */ int8 * fmt::v10::detail::write_exponent<char,fmt::v10::appender>(uint param_1,int8 *param_2) { int1 uVar1; char cVar2; uint uVar3; long lVar4; ulong uVar5; lVar4 = param_2[2]; uVar5 = lVar4 + 1; if ((int)param_1 < 0) { if ((ulong)param_2[3] < uVar5) { (**(code **)*param_2)(param_2); lVar4 = param_2[2]; uVar5 = lVar4 + 1; } param_2[2] = uVar5; *(int1 *)(param_2[1] + lVar4) = 0x2d; param_1 = -param_1; } else { if ((ulong)param_2[3] < uVar5) { (**(code **)*param_2)(param_2); lVar4 = param_2[2]; uVar5 = lVar4 + 1; } param_2[2] = uVar5; *(int1 *)(param_2[1] + lVar4) = 0x2b; } if (99 < param_1) { uVar3 = (param_1 / 100) * 2; if (999 < param_1) { uVar1 = (&DAT_00181aa2)[uVar3]; lVar4 = param_2[2]; uVar5 = lVar4 + 1; if ((ulong)param_2[3] < uVar5) { (**(code **)*param_2)(param_2); lVar4 = param_2[2]; uVar5 = lVar4 + 1; } param_2[2] = uVar5; *(int1 *)(param_2[1] + lVar4) = uVar1; } cVar2 = "0010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899" [uVar3]; lVar4 = param_2[2]; uVar5 = lVar4 + 1; if ((ulong)param_2[3] < uVar5) { (**(code **)*param_2)(param_2); lVar4 = param_2[2]; uVar5 = lVar4 + 1; } param_1 = param_1 % 100; param_2[2] = uVar5; *(char *)(param_2[1] + lVar4) = cVar2; } uVar1 = (&DAT_00181aa2)[(ulong)param_1 * 2]; lVar4 = param_2[2]; uVar5 = lVar4 + 1; if ((ulong)param_2[3] < uVar5) { (**(code **)*param_2)(param_2); lVar4 = param_2[2]; uVar5 = lVar4 + 1; } param_2[2] = uVar5; *(int1 *)(param_2[1] + lVar4) = uVar1; cVar2 = "0010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899" [(ulong)param_1 * 2]; lVar4 = param_2[2]; uVar5 = lVar4 + 1; if ((ulong)param_2[3] < uVar5) { (**(code **)*param_2)(param_2); lVar4 = param_2[2]; uVar5 = lVar4 + 1; } param_2[2] = uVar5; *(char *)(param_2[1] + lVar4) = cVar2; return param_2; }
45,051
mi_cmp_static_record
eloqsql/storage/myisam/mi_statrec.c
int _mi_cmp_static_record(register MI_INFO *info, register const uchar *old) { DBUG_ENTER("_mi_cmp_static_record"); if (info->opt_flag & WRITE_CACHE_USED) { if (flush_io_cache(&info->rec_cache)) { DBUG_RETURN(-1); } info->rec_cache.seek_not_done=1; /* We have done a seek */ } if ((info->opt_flag & READ_CHECK_USED)) { /* If check isn't disabled */ info->rec_cache.seek_not_done=1; /* We have done a seek */ if (info->s->file_read(info, info->rec_buff, info->s->base.reclength, info->lastpos, MYF(MY_NABP))) DBUG_RETURN(-1); if (memcmp(info->rec_buff, old, (uint) info->s->base.reclength)) { DBUG_DUMP("read",old,info->s->base.reclength); DBUG_DUMP("disk",info->rec_buff,info->s->base.reclength); my_errno=HA_ERR_RECORD_CHANGED; /* Record have changed */ DBUG_RETURN(1); } } DBUG_RETURN(0); }
O3
c
mi_cmp_static_record: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 movl 0x1c8(%rdi), %ecx testb $0x10, %cl je 0x883b7 leaq 0x220(%r14), %rdi movl $0x1, %esi callq 0x967f1 movl %eax, %ecx movl $0xffffffff, %eax # imm = 0xFFFFFFFF testl %ecx, %ecx jne 0x88430 movl $0x1, 0x300(%r14) movl 0x1c8(%r14), %ecx xorl %eax, %eax testb $0x4, %cl je 0x88430 movl $0x1, 0x300(%r14) movq (%r14), %rax movq 0x120(%r14), %rsi movq 0x140(%rax), %rdx movq 0x170(%r14), %rcx movl $0x4, %r8d movq %r14, %rdi callq *0x2e0(%rax) movq %rax, %rcx movl $0xffffffff, %eax # imm = 0xFFFFFFFF testq %rcx, %rcx jne 0x88430 movq (%r14), %rax movq 0x120(%r14), %rdi movl 0x140(%rax), %edx movq %rbx, %rsi callq 0x29560 movl %eax, %ecx movl $0x0, %eax testl %ecx, %ecx je 0x88430 callq 0xa2f56 movl $0x7b, (%rax) movl $0x1, %eax popq %rbx popq %r14 popq %rbp retq
_mi_cmp_static_record: push rbp mov rbp, rsp push r14 push rbx mov rbx, rsi mov r14, rdi mov ecx, [rdi+1C8h] test cl, 10h jz short loc_883B7 lea rdi, [r14+220h] mov esi, 1 call my_b_flush_io_cache mov ecx, eax mov eax, 0FFFFFFFFh test ecx, ecx jnz loc_88430 mov dword ptr [r14+300h], 1 mov ecx, [r14+1C8h] loc_883B7: xor eax, eax test cl, 4 jz short loc_88430 mov dword ptr [r14+300h], 1 mov rax, [r14] mov rsi, [r14+120h] mov rdx, [rax+140h] mov rcx, [r14+170h] mov r8d, 4 mov rdi, r14 call qword ptr [rax+2E0h] mov rcx, rax mov eax, 0FFFFFFFFh test rcx, rcx jnz short loc_88430 mov rax, [r14] mov rdi, [r14+120h] mov edx, [rax+140h] mov rsi, rbx call _bcmp mov ecx, eax mov eax, 0 test ecx, ecx jz short loc_88430 call _my_thread_var mov dword ptr [rax], 7Bh ; '{' mov eax, 1 loc_88430: pop rbx pop r14 pop rbp retn
long long mi_cmp_static_record(_QWORD *a1, long long a2) { int v3; // ecx int v4; // ecx long long result; // rax long long v6; // rcx long long v7; // rdi int v8; // ecx v3 = *((_DWORD *)a1 + 114); if ( (v3 & 0x10) != 0 ) { v4 = my_b_flush_io_cache(a1 + 68, 1LL); result = 0xFFFFFFFFLL; if ( v4 ) return result; *((_DWORD *)a1 + 192) = 1; v3 = *((_DWORD *)a1 + 114); } result = 0LL; if ( (v3 & 4) != 0 ) { *((_DWORD *)a1 + 192) = 1; v6 = (*(long long ( **)(_QWORD *, _QWORD, _QWORD, _QWORD, long long))(*a1 + 736LL))( a1, a1[36], *(_QWORD *)(*a1 + 320LL), a1[46], 4LL); result = 0xFFFFFFFFLL; if ( !v6 ) { v7 = a1[36]; v8 = bcmp(v7, a2, *(unsigned int *)(*a1 + 320LL)); result = 0LL; if ( v8 ) { *(_DWORD *)my_thread_var(v7) = 123; return 1LL; } } } return result; }
_mi_cmp_static_record: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI MOV ECX,dword ptr [RDI + 0x1c8] TEST CL,0x10 JZ 0x001883b7 LEA RDI,[R14 + 0x220] MOV ESI,0x1 CALL 0x001967f1 MOV ECX,EAX MOV EAX,0xffffffff TEST ECX,ECX JNZ 0x00188430 MOV dword ptr [R14 + 0x300],0x1 MOV ECX,dword ptr [R14 + 0x1c8] LAB_001883b7: XOR EAX,EAX TEST CL,0x4 JZ 0x00188430 MOV dword ptr [R14 + 0x300],0x1 MOV RAX,qword ptr [R14] MOV RSI,qword ptr [R14 + 0x120] MOV RDX,qword ptr [RAX + 0x140] MOV RCX,qword ptr [R14 + 0x170] MOV R8D,0x4 MOV RDI,R14 CALL qword ptr [RAX + 0x2e0] MOV RCX,RAX MOV EAX,0xffffffff TEST RCX,RCX JNZ 0x00188430 MOV RAX,qword ptr [R14] MOV RDI,qword ptr [R14 + 0x120] MOV EDX,dword ptr [RAX + 0x140] MOV RSI,RBX CALL 0x00129560 MOV ECX,EAX MOV EAX,0x0 TEST ECX,ECX JZ 0x00188430 CALL 0x001a2f56 MOV dword ptr [RAX],0x7b MOV EAX,0x1 LAB_00188430: POP RBX POP R14 POP RBP RET
int8 _mi_cmp_static_record(long *param_1,void *param_2) { uint uVar1; int iVar2; long lVar3; int8 uVar4; int4 *puVar5; uVar1 = *(uint *)(param_1 + 0x39); if ((uVar1 & 0x10) != 0) { iVar2 = my_b_flush_io_cache(param_1 + 0x44,1); if (iVar2 != 0) { return 0xffffffff; } *(int4 *)(param_1 + 0x60) = 1; uVar1 = *(uint *)(param_1 + 0x39); } uVar4 = 0; if ((uVar1 & 4) != 0) { *(int4 *)(param_1 + 0x60) = 1; lVar3 = (**(code **)(*param_1 + 0x2e0)) (param_1,param_1[0x24],*(int8 *)(*param_1 + 0x140),param_1[0x2e],4); uVar4 = 0xffffffff; if (lVar3 == 0) { iVar2 = bcmp((void *)param_1[0x24],param_2,(ulong)*(uint *)(*param_1 + 0x140)); uVar4 = 0; if (iVar2 != 0) { puVar5 = (int4 *)_my_thread_var(); *puVar5 = 0x7b; uVar4 = 1; } } } return uVar4; }
45,052
composition_destination_in
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c
static void composition_destination_in(uint32_t* dest, int length, const uint32_t* src, uint32_t const_alpha) { if(const_alpha == 255) { for(int i = 0; i < length; i++) { dest[i] = BYTE_MUL(dest[i], plutovg_alpha(src[i])); } } else { uint32_t cia = 255 - const_alpha; for(int i = 0; i < length; i++) { uint32_t a = BYTE_MUL(plutovg_alpha(src[i]), const_alpha) + cia; dest[i] = BYTE_MUL(dest[i], a); } } }
O1
c
composition_destination_in: pushq %rbp pushq %rbx cmpl $0xff, %ecx jne 0x41939 testl %esi, %esi jle 0x419ce movl %esi, %eax xorl %ecx, %ecx movl $0xff00ff, %esi # imm = 0xFF00FF movl $0x800080, %r8d # imm = 0x800080 movl (%rdi,%rcx,4), %r9d movl (%rdx,%rcx,4), %r11d shrl $0x18, %r11d movl %r9d, %r10d andl %esi, %r10d imull %r11d, %r10d movl %r10d, %ebx shrl $0x8, %ebx andl %esi, %ebx addl %r8d, %r10d addl %ebx, %r10d shrl $0x8, %r10d andl %esi, %r10d shrl $0x8, %r9d andl %esi, %r9d imull %r11d, %r9d movl %r9d, %r11d shrl $0x8, %r11d andl %esi, %r11d addl %r8d, %r9d addl %r11d, %r9d andl $0xff00ff00, %r9d # imm = 0xFF00FF00 orl %r10d, %r9d movl %r9d, (%rdi,%rcx,4) incq %rcx cmpq %rcx, %rax jne 0x418d8 jmp 0x419ce testl %esi, %esi jle 0x419ce movl %esi, %eax xorl %esi, %esi movl $0xff00ff, %r8d # imm = 0xFF00FF movl $0x800080, %r9d # imm = 0x800080 movzbl 0x3(%rdx,%rsi,4), %r10d imull %ecx, %r10d movl %r10d, %r11d shrl $0x8, %r11d andl %r8d, %r11d addl %r9d, %r10d addl %r11d, %r10d shrl $0x8, %r10d andl %r8d, %r10d subl %ecx, %r10d addl $0xff, %r10d movl (%rdi,%rsi,4), %r11d movl %r11d, %ebx andl %r8d, %ebx imull %r10d, %ebx movl %ebx, %ebp shrl $0x8, %ebp andl %r8d, %ebp addl %r9d, %ebx addl %ebp, %ebx shrl $0x8, %ebx andl %r8d, %ebx shrl $0x8, %r11d andl %r8d, %r11d imull %r10d, %r11d movl %r11d, %r10d shrl $0x8, %r10d andl %r8d, %r10d addl %r9d, %r11d addl %r10d, %r11d andl $0xff00ff00, %r11d # imm = 0xFF00FF00 orl %ebx, %r11d movl %r11d, (%rdi,%rsi,4) incq %rsi cmpq %rsi, %rax jne 0x41951 popq %rbx popq %rbp retq
composition_destination_in: push rbp push rbx cmp ecx, 0FFh jnz short loc_41939 test esi, esi jle loc_419CE mov eax, esi xor ecx, ecx mov esi, 0FF00FFh mov r8d, 800080h loc_418D8: mov r9d, [rdi+rcx*4] mov r11d, [rdx+rcx*4] shr r11d, 18h mov r10d, r9d and r10d, esi imul r10d, r11d mov ebx, r10d shr ebx, 8 and ebx, esi add r10d, r8d add r10d, ebx shr r10d, 8 and r10d, esi shr r9d, 8 and r9d, esi imul r9d, r11d mov r11d, r9d shr r11d, 8 and r11d, esi add r9d, r8d add r9d, r11d and r9d, 0FF00FF00h or r9d, r10d mov [rdi+rcx*4], r9d inc rcx cmp rax, rcx jnz short loc_418D8 jmp loc_419CE loc_41939: test esi, esi jle loc_419CE mov eax, esi xor esi, esi mov r8d, 0FF00FFh mov r9d, 800080h loc_41951: movzx r10d, byte ptr [rdx+rsi*4+3] imul r10d, ecx mov r11d, r10d shr r11d, 8 and r11d, r8d add r10d, r9d add r10d, r11d shr r10d, 8 and r10d, r8d sub r10d, ecx add r10d, 0FFh mov r11d, [rdi+rsi*4] mov ebx, r11d and ebx, r8d imul ebx, r10d mov ebp, ebx shr ebp, 8 and ebp, r8d add ebx, r9d add ebx, ebp shr ebx, 8 and ebx, r8d shr r11d, 8 and r11d, r8d imul r11d, r10d mov r10d, r11d shr r10d, 8 and r10d, r8d add r11d, r9d add r11d, r10d and r11d, 0FF00FF00h or r11d, ebx mov [rdi+rsi*4], r11d inc rsi cmp rax, rsi jnz short loc_41951 loc_419CE: pop rbx pop rbp retn
void composition_destination_in(long long a1, int a2, long long a3, int a4) { long long i; // rcx int v5; // r11d long long v6; // rax long long j; // rsi unsigned int v8; // r10d if ( a4 == 255 ) { if ( a2 > 0 ) { for ( i = 0LL; i != a2; ++i ) { v5 = HIBYTE(*(_DWORD *)(a3 + 4 * i)); *(_DWORD *)(a1 + 4 * i) = (((((v5 * (*(_DWORD *)(a1 + 4 * i) & 0xFF00FFu)) >> 8) & 0xFF00FF) + v5 * (*(_DWORD *)(a1 + 4 * i) & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF | ((((v5 * ((*(_DWORD *)(a1 + 4 * i) >> 8) & 0xFF00FFu)) >> 8) & 0xFF00FF) + v5 * ((*(_DWORD *)(a1 + 4 * i) >> 8) & 0xFF00FF) + 8388736) & 0xFF00FF00; } } } else if ( a2 > 0 ) { v6 = (unsigned int)a2; for ( j = 0LL; j != v6; ++j ) { v8 = ((((((a4 * (unsigned int)*(unsigned __int8 *)(a3 + 4 * j + 3)) >> 8) & 0xFF00FF) + a4 * *(unsigned __int8 *)(a3 + 4 * j + 3) + 8388736) >> 8) & 0xFF00FF) - a4 + 255; *(_DWORD *)(a1 + 4 * j) = (((((v8 * (*(_DWORD *)(a1 + 4 * j) & 0xFF00FF)) >> 8) & 0xFF00FF) + v8 * (*(_DWORD *)(a1 + 4 * j) & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF | ((((v8 * ((*(_DWORD *)(a1 + 4 * j) >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF) + v8 * ((*(_DWORD *)(a1 + 4 * j) >> 8) & 0xFF00FF) + 8388736) & 0xFF00FF00; } } }
composition_destination_in: PUSH RBP PUSH RBX CMP ECX,0xff JNZ 0x00141939 TEST ESI,ESI JLE 0x001419ce MOV EAX,ESI XOR ECX,ECX MOV ESI,0xff00ff MOV R8D,0x800080 LAB_001418d8: MOV R9D,dword ptr [RDI + RCX*0x4] MOV R11D,dword ptr [RDX + RCX*0x4] SHR R11D,0x18 MOV R10D,R9D AND R10D,ESI IMUL R10D,R11D MOV EBX,R10D SHR EBX,0x8 AND EBX,ESI ADD R10D,R8D ADD R10D,EBX SHR R10D,0x8 AND R10D,ESI SHR R9D,0x8 AND R9D,ESI IMUL R9D,R11D MOV R11D,R9D SHR R11D,0x8 AND R11D,ESI ADD R9D,R8D ADD R9D,R11D AND R9D,0xff00ff00 OR R9D,R10D MOV dword ptr [RDI + RCX*0x4],R9D INC RCX CMP RAX,RCX JNZ 0x001418d8 JMP 0x001419ce LAB_00141939: TEST ESI,ESI JLE 0x001419ce MOV EAX,ESI XOR ESI,ESI MOV R8D,0xff00ff MOV R9D,0x800080 LAB_00141951: MOVZX R10D,byte ptr [RDX + RSI*0x4 + 0x3] IMUL R10D,ECX MOV R11D,R10D SHR R11D,0x8 AND R11D,R8D ADD R10D,R9D ADD R10D,R11D SHR R10D,0x8 AND R10D,R8D SUB R10D,ECX ADD R10D,0xff MOV R11D,dword ptr [RDI + RSI*0x4] MOV EBX,R11D AND EBX,R8D IMUL EBX,R10D MOV EBP,EBX SHR EBP,0x8 AND EBP,R8D ADD EBX,R9D ADD EBX,EBP SHR EBX,0x8 AND EBX,R8D SHR R11D,0x8 AND R11D,R8D IMUL R11D,R10D MOV R10D,R11D SHR R10D,0x8 AND R10D,R8D ADD R11D,R9D ADD R11D,R10D AND R11D,0xff00ff00 OR R11D,EBX MOV dword ptr [RDI + RSI*0x4],R11D INC RSI CMP RAX,RSI JNZ 0x00141951 LAB_001419ce: POP RBX POP RBP RET
void composition_destination_in(long param_1,uint param_2,long param_3,int param_4) { ulong uVar1; uint uVar2; uint uVar3; int iVar4; uint uVar5; if (param_4 == 0xff) { if (0 < (int)param_2) { uVar1 = 0; do { uVar3 = *(uint *)(param_1 + uVar1 * 4); uVar5 = *(uint *)(param_3 + uVar1 * 4) >> 0x18; uVar2 = (uVar3 & 0xff00ff) * uVar5; uVar5 = (uVar3 >> 8 & 0xff00ff) * uVar5; *(uint *)(param_1 + uVar1 * 4) = uVar5 + 0x800080 + (uVar5 >> 8 & 0xff00ff) & 0xff00ff00 | uVar2 + 0x800080 + (uVar2 >> 8 & 0xff00ff) >> 8 & 0xff00ff; uVar1 = uVar1 + 1; } while (param_2 != uVar1); } } else if (0 < (int)param_2) { uVar1 = 0; do { uVar3 = (uint)*(byte *)(param_3 + 3 + uVar1 * 4) * param_4; iVar4 = ((uVar3 + 0x800080 + (uVar3 >> 8 & 0xff00ff) >> 8 & 0xff00ff) - param_4) + 0xff; uVar3 = *(uint *)(param_1 + uVar1 * 4); uVar5 = (uVar3 & 0xff00ff) * iVar4; uVar3 = (uVar3 >> 8 & 0xff00ff) * iVar4; *(uint *)(param_1 + uVar1 * 4) = uVar3 + 0x800080 + (uVar3 >> 8 & 0xff00ff) & 0xff00ff00 | uVar5 + 0x800080 + (uVar5 >> 8 & 0xff00ff) >> 8 & 0xff00ff; uVar1 = uVar1 + 1; } while (param_2 != uVar1); } return; }
45,053
composition_destination_in
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c
static void composition_destination_in(uint32_t* dest, int length, const uint32_t* src, uint32_t const_alpha) { if(const_alpha == 255) { for(int i = 0; i < length; i++) { dest[i] = BYTE_MUL(dest[i], plutovg_alpha(src[i])); } } else { uint32_t cia = 255 - const_alpha; for(int i = 0; i < length; i++) { uint32_t a = BYTE_MUL(plutovg_alpha(src[i]), const_alpha) + cia; dest[i] = BYTE_MUL(dest[i], a); } } }
O2
c
composition_destination_in: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %rbx movq %rdi, %r14 xorl %r15d, %r15d testl %esi, %esi cmovgl %esi, %r15d cmpl $0xff, %ecx jne 0x390fe xorl %r12d, %r12d cmpq %r12, %r15 je 0x3912f movl (%r14,%r12,4), %edi movzbl 0x3(%rbx,%r12,4), %esi callq 0x38d7d movl %eax, (%r14,%r12,4) incq %r12 jmp 0x390e1 movl %ecx, %ebp xorl %r12d, %r12d cmpq %r12, %r15 je 0x3912f movzbl 0x3(%rbx,%r12,4), %edi movl %ebp, %esi callq 0x38d7d subl %ebp, %eax leal 0xff(%rax), %esi movl (%r14,%r12,4), %edi callq 0x38d7d movl %eax, (%r14,%r12,4) incq %r12 jmp 0x39103 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
composition_destination_in: push rbp push r15 push r14 push r12 push rbx mov rbx, rdx mov r14, rdi xor r15d, r15d test esi, esi cmovg r15d, esi cmp ecx, 0FFh jnz short loc_390FE xor r12d, r12d loc_390E1: cmp r15, r12 jz short loc_3912F mov edi, [r14+r12*4] movzx esi, byte ptr [rbx+r12*4+3] call BYTE_MUL mov [r14+r12*4], eax inc r12 jmp short loc_390E1 loc_390FE: mov ebp, ecx xor r12d, r12d loc_39103: cmp r15, r12 jz short loc_3912F movzx edi, byte ptr [rbx+r12*4+3] mov esi, ebp call BYTE_MUL sub eax, ebp lea esi, [rax+0FFh] mov edi, [r14+r12*4] call BYTE_MUL mov [r14+r12*4], eax inc r12 jmp short loc_39103 loc_3912F: pop rbx pop r12 pop r14 pop r15 pop rbp retn
void composition_destination_in(long long a1, int a2, long long a3, int a4) { long long v5; // r15 long long i; // r12 long long j; // r12 int v9; // eax v5 = 0LL; if ( a2 > 0 ) v5 = (unsigned int)a2; if ( a4 == 255 ) { for ( i = 0LL; v5 != i; ++i ) *(_DWORD *)(a1 + 4 * i) = BYTE_MUL(*(_DWORD *)(a1 + 4 * i), *(unsigned __int8 *)(a3 + 4 * i + 3)); } else { for ( j = 0LL; v5 != j; ++j ) { v9 = BYTE_MUL(*(unsigned __int8 *)(a3 + 4 * j + 3), a4); *(_DWORD *)(a1 + 4 * j) = BYTE_MUL(*(_DWORD *)(a1 + 4 * j), v9 - a4 + 255); } } }
composition_destination_in: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RDX MOV R14,RDI XOR R15D,R15D TEST ESI,ESI CMOVG R15D,ESI CMP ECX,0xff JNZ 0x001390fe XOR R12D,R12D LAB_001390e1: CMP R15,R12 JZ 0x0013912f MOV EDI,dword ptr [R14 + R12*0x4] MOVZX ESI,byte ptr [RBX + R12*0x4 + 0x3] CALL 0x00138d7d MOV dword ptr [R14 + R12*0x4],EAX INC R12 JMP 0x001390e1 LAB_001390fe: MOV EBP,ECX XOR R12D,R12D LAB_00139103: CMP R15,R12 JZ 0x0013912f MOVZX EDI,byte ptr [RBX + R12*0x4 + 0x3] MOV ESI,EBP CALL 0x00138d7d SUB EAX,EBP LEA ESI,[RAX + 0xff] MOV EDI,dword ptr [R14 + R12*0x4] CALL 0x00138d7d MOV dword ptr [R14 + R12*0x4],EAX INC R12 JMP 0x00139103 LAB_0013912f: POP RBX POP R12 POP R14 POP R15 POP RBP RET
void composition_destination_in(long param_1,uint param_2,long param_3,int param_4) { int4 uVar1; int iVar2; ulong uVar3; ulong uVar4; uVar4 = 0; if (0 < (int)param_2) { uVar4 = (ulong)param_2; } if (param_4 == 0xff) { for (uVar3 = 0; uVar4 != uVar3; uVar3 = uVar3 + 1) { uVar1 = BYTE_MUL(*(int4 *)(param_1 + uVar3 * 4),*(int1 *)(param_3 + 3 + uVar3 * 4) ); *(int4 *)(param_1 + uVar3 * 4) = uVar1; } } else { for (uVar3 = 0; uVar4 != uVar3; uVar3 = uVar3 + 1) { iVar2 = BYTE_MUL(*(int1 *)(param_3 + 3 + uVar3 * 4),param_4); uVar1 = BYTE_MUL(*(int4 *)(param_1 + uVar3 * 4),(iVar2 - param_4) + 0xff); *(int4 *)(param_1 + uVar3 * 4) = uVar1; } } return; }
45,054
rw_pr_init
eloqsql/mysys/thr_rwlock.c
int rw_pr_init(rw_pr_lock_t *rwlock) { pthread_mutex_init(&rwlock->lock, NULL); pthread_cond_init(&rwlock->no_active_readers, NULL); rwlock->active_readers= 0; rwlock->writers_waiting_readers= 0; rwlock->active_writer= FALSE; #ifdef SAFE_MUTEX rwlock->writer_thread= 0; #endif return 0; }
O0
c
rw_pr_init: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x244a0 movq -0x8(%rbp), %rdi addq $0x28, %rdi xorl %eax, %eax movl %eax, %esi callq 0x243a0 movq -0x8(%rbp), %rax movl $0x0, 0x58(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x5c(%rax) movq -0x8(%rbp), %rax movb $0x0, 0x60(%rax) xorl %eax, %eax addq $0x10, %rsp popq %rbp retq
rw_pr_init: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8] xor eax, eax mov esi, eax call _pthread_mutex_init mov rdi, [rbp+var_8] add rdi, 28h ; '(' xor eax, eax mov esi, eax call _pthread_cond_init mov rax, [rbp+var_8] mov dword ptr [rax+58h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+5Ch], 0 mov rax, [rbp+var_8] mov byte ptr [rax+60h], 0 xor eax, eax add rsp, 10h pop rbp retn
long long rw_pr_init(long long a1) { pthread_mutex_init(a1, 0LL); pthread_cond_init(a1 + 40, 0LL); *(_DWORD *)(a1 + 88) = 0; *(_DWORD *)(a1 + 92) = 0; *(_BYTE *)(a1 + 96) = 0; return 0LL; }
rw_pr_init: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV ESI,EAX CALL 0x001244a0 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x28 XOR EAX,EAX MOV ESI,EAX CALL 0x001243a0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x58],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x5c],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x60],0x0 XOR EAX,EAX ADD RSP,0x10 POP RBP RET
int8 rw_pr_init(pthread_mutex_t *param_1) { pthread_mutex_init(param_1,(pthread_mutexattr_t *)0x0); pthread_cond_init((pthread_cond_t *)(param_1 + 1),(pthread_condattr_t *)0x0); *(int4 *)((long)param_1 + 0x58) = 0; *(int4 *)((long)param_1 + 0x5c) = 0; *(int1 *)((long)param_1 + 0x60) = 0; return 0; }
45,055
metrics::Info::serialize[abi:cxx11]() const
nickolajgrishuk[P]metricz-cpp/src/metrics.cpp
std::string Info::serialize() const { std::lock_guard<std::mutex> lock(mutex_); std::ostringstream out; if (!help_.empty()) { out << "# HELP " << name_ << " " << help_ << "\n"; } out << "# TYPE " << name_ << " info\n"; out << name_; write_labels(out, labels_); out << " 1\n"; return out.str(); }
O3
cpp
metrics::Info::serialize[abi:cxx11]() const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x178, %rsp # imm = 0x178 movq %rsi, %r15 movq %rdi, %r14 leaq 0x60(%rsi), %rbx movq %rbx, %rdi callq 0x8820 testl %eax, %eax jne 0x2b517 movq %rsp, %rdi callq 0x8720 cmpq $0x0, 0x30(%r15) je 0x2b46c leaq 0x52a4(%rip), %rsi # 0x306b8 movq %rsp, %rdi movl $0x7, %edx callq 0x8620 movq 0x8(%r15), %rsi movq 0x10(%r15), %rdx movq %rsp, %rdi callq 0x8620 movq %rax, %r12 leaq 0x2ef9(%rip), %rsi # 0x2e334 movl $0x1, %edx movq %rax, %rdi callq 0x8620 movq 0x28(%r15), %rsi movq 0x30(%r15), %rdx movq %r12, %rdi callq 0x8620 leaq 0x2fb4(%rip), %rsi # 0x2e413 movl $0x1, %edx movq %rax, %rdi callq 0x8620 leaq 0x524d(%rip), %rsi # 0x306c0 movq %rsp, %rdi movl $0x7, %edx callq 0x8620 movq 0x8(%r15), %rsi movq 0x10(%r15), %rdx movq %rsp, %rdi callq 0x8620 leaq 0x527b(%rip), %rsi # 0x30712 movl $0x6, %edx movq %rax, %rdi callq 0x8620 movq 0x8(%r15), %rsi movq 0x10(%r15), %rdx movq %rsp, %rdi callq 0x8620 addq $0x48, %r15 movq %rsp, %rdi movq %r15, %rsi callq 0x2a1db leaq 0x524f(%rip), %rsi # 0x30719 movq %rsp, %rdi movl $0x3, %edx callq 0x8620 leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x8880 movq 0x14abd(%rip), %rsi # 0x3ffa8 movq %rsp, %rdi callq 0x82c0 leaq 0x70(%rsp), %rdi callq 0x81c0 movq %rbx, %rdi callq 0x8430 movq %r14, %rax addq $0x178, %rsp # imm = 0x178 popq %rbx popq %r12 popq %r14 popq %r15 retq movl %eax, %edi callq 0x8390 movq %rax, %r14 jmp 0x2b53f movq %rax, %r14 movq 0x14a7b(%rip), %rsi # 0x3ffa8 movq %rsp, %rdi callq 0x82c0 leaq 0x70(%rsp), %rdi callq 0x81c0 movq %rbx, %rdi callq 0x8430 movq %r14, %rdi callq 0x8980 nop
_ZNK7metrics4Info9serializeB5cxx11Ev: push r15 push r14 push r12 push rbx sub rsp, 178h mov r15, rsi mov r14, rdi lea rbx, [rsi+60h] mov rdi, rbx call _pthread_mutex_lock test eax, eax jnz loc_2B517 mov rdi, rsp call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) cmp qword ptr [r15+30h], 0 jz short loc_2B46C lea rsi, aHelp; "# HELP " mov rdi, rsp mov edx, 7 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [r15+8] mov rdx, [r15+10h] mov rdi, rsp call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r12, rax lea rsi, aContentRange_0+0Eh; " " mov edx, 1 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 rsi, [r15+28h] mov rdx, [r15+30h] mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, a0+4; "\n" mov edx, 1 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) loc_2B46C: lea rsi, aType; "# TYPE " mov rdi, rsp mov edx, 7 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [r15+8] mov rdx, [r15+10h] mov rdi, rsp call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aInfo; " info\n" mov edx, 6 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 rsi, [r15+8] mov rdx, [r15+10h] mov rdi, rsp call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) add r15, 48h ; 'H' mov rdi, rsp mov rsi, r15 call _ZN7metrics12_GLOBAL__N_112write_labelsERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt6vectorINS_5LabelESaIS9_EE; metrics::`anonymous namespace'::write_labels(std::ostringstream &,std::vector<metrics::Label> const&) lea rsi, a1; " 1\n" mov rdi, rsp mov edx, 3 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, [rsp+198h+var_190] mov rdi, r14 call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr mov rdi, rsp call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+198h+var_128]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call _pthread_mutex_unlock mov rax, r14 add rsp, 178h pop rbx pop r12 pop r14 pop r15 retn loc_2B517: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) mov r14, rax jmp short loc_2B53F mov r14, rax mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr mov rdi, rsp call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+198h+var_128]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() loc_2B53F: mov rdi, rbx call _pthread_mutex_unlock mov rdi, r14 call __Unwind_Resume
long long metrics::Info::serialize[abi:cxx11](long long a1, _QWORD *a2) { int v2; // eax long long v3; // r12 long long v4; // rax long long v5; // rax long long v7; // [rsp+0h] [rbp-198h] BYREF _BYTE v8[104]; // [rsp+8h] [rbp-190h] BYREF _BYTE v9[296]; // [rsp+70h] [rbp-128h] BYREF v2 = pthread_mutex_lock(a2 + 12); if ( v2 ) std::__throw_system_error(v2); std::ostringstream::basic_ostringstream(&v7); if ( a2[6] ) { std::__ostream_insert<char,std::char_traits<char>>(&v7, "# HELP ", 7LL); v3 = std::__ostream_insert<char,std::char_traits<char>>(&v7, a2[1], a2[2]); std::__ostream_insert<char,std::char_traits<char>>(v3, " ", 1LL); v4 = std::__ostream_insert<char,std::char_traits<char>>(v3, a2[5], a2[6]); std::__ostream_insert<char,std::char_traits<char>>(v4, "\n", 1LL); } std::__ostream_insert<char,std::char_traits<char>>(&v7, "# TYPE ", 7LL); v5 = std::__ostream_insert<char,std::char_traits<char>>(&v7, a2[1], a2[2]); std::__ostream_insert<char,std::char_traits<char>>(v5, " info\n", 6LL); std::__ostream_insert<char,std::char_traits<char>>(&v7, a2[1], a2[2]); metrics::`anonymous namespace'::write_labels((long long)&v7, a2 + 9); std::__ostream_insert<char,std::char_traits<char>>(&v7, " 1\n", 3LL); std::stringbuf::str(a1, v8); std::ostringstream::~ostringstream(&v7, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v9); pthread_mutex_unlock(a2 + 12); return a1; }
serialize[abi:cxx11]: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x178 MOV R15,RSI MOV R14,RDI LEA RBX,[RSI + 0x60] MOV RDI,RBX CALL 0x00108820 TEST EAX,EAX JNZ 0x0012b517 LAB_0012b3fe: MOV RDI,RSP CALL 0x00108720 CMP qword ptr [R15 + 0x30],0x0 JZ 0x0012b46c LAB_0012b40d: LEA RSI,[0x1306b8] MOV RDI,RSP MOV EDX,0x7 CALL 0x00108620 MOV RSI,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV RDI,RSP CALL 0x00108620 MOV R12,RAX LEA RSI,[0x12e334] MOV EDX,0x1 MOV RDI,RAX CALL 0x00108620 MOV RSI,qword ptr [R15 + 0x28] MOV RDX,qword ptr [R15 + 0x30] MOV RDI,R12 CALL 0x00108620 LEA RSI,[0x12e413] MOV EDX,0x1 MOV RDI,RAX CALL 0x00108620 LAB_0012b46c: LEA RSI,[0x1306c0] MOV RDI,RSP MOV EDX,0x7 CALL 0x00108620 MOV RSI,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV RDI,RSP CALL 0x00108620 LEA RSI,[0x130712] MOV EDX,0x6 MOV RDI,RAX CALL 0x00108620 MOV RSI,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV RDI,RSP CALL 0x00108620 ADD R15,0x48 MOV RDI,RSP MOV RSI,R15 CALL 0x0012a1db LEA RSI,[0x130719] MOV RDI,RSP MOV EDX,0x3 CALL 0x00108620 LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x00108880 LAB_0012b4e4: MOV RSI,qword ptr [0x0013ffa8] MOV RDI,RSP CALL 0x001082c0 LEA RDI,[RSP + 0x70] CALL 0x001081c0 MOV RDI,RBX CALL 0x00108430 MOV RAX,R14 ADD RSP,0x178 POP RBX POP R12 POP R14 POP R15 RET LAB_0012b517: MOV EDI,EAX CALL 0x00108390
/* metrics::Info::serialize[abi:cxx11]() const */ void metrics::Info::serialize_abi_cxx11_(void) { int iVar1; ostream *poVar2; long in_RSI; ostringstream aoStack_198 [112]; ios_base local_128 [264]; iVar1 = pthread_mutex_lock((pthread_mutex_t *)(in_RSI + 0x60)); if (iVar1 == 0) { /* try { // try from 0012b3fe to 0012b405 has its CatchHandler @ 0012b51e */ std::__cxx11::ostringstream::ostringstream(aoStack_198); if (*(long *)(in_RSI + 0x30) != 0) { /* try { // try from 0012b40d to 0012b4e3 has its CatchHandler @ 0012b523 */ std::__ostream_insert<char,std::char_traits<char>>((ostream *)aoStack_198,"# HELP ",7); poVar2 = std::__ostream_insert<char,std::char_traits<char>> ((ostream *)aoStack_198,*(char **)(in_RSI + 8),*(long *)(in_RSI + 0x10)); std::__ostream_insert<char,std::char_traits<char>>(poVar2," ",1); poVar2 = std::__ostream_insert<char,std::char_traits<char>> (poVar2,*(char **)(in_RSI + 0x28),*(long *)(in_RSI + 0x30)); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1); } std::__ostream_insert<char,std::char_traits<char>>((ostream *)aoStack_198,"# TYPE ",7); poVar2 = std::__ostream_insert<char,std::char_traits<char>> ((ostream *)aoStack_198,*(char **)(in_RSI + 8),*(long *)(in_RSI + 0x10)); std::__ostream_insert<char,std::char_traits<char>>(poVar2," info\n",6); std::__ostream_insert<char,std::char_traits<char>> ((ostream *)aoStack_198,*(char **)(in_RSI + 8),*(long *)(in_RSI + 0x10)); (anonymous_namespace)::write_labels(aoStack_198,(vector *)(in_RSI + 0x48)); std::__ostream_insert<char,std::char_traits<char>>((ostream *)aoStack_198," 1\n",3); std::__cxx11::stringbuf::str(); std::__cxx11::ostringstream::~ostringstream(aoStack_198); std::ios_base::~ios_base(local_128); pthread_mutex_unlock((pthread_mutex_t *)(in_RSI + 0x60)); return; } /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar1); }
45,056
minja::simple_function(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>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&)
llama.cpp/common/minja/minja.hpp
static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) { std::map<std::string, size_t> named_positions; for (size_t i = 0, n = params.size(); i < n; i++) named_positions[params[i]] = i; return Value::callable([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) -> Value { auto args_obj = Value::object(); std::vector<bool> provided_args(params.size()); for (size_t i = 0, n = args.args.size(); i < n; i++) { auto & arg = args.args[i]; if (i < params.size()) { args_obj.set(params[i], arg); provided_args[i] = true; } else { throw std::runtime_error("Too many positional params for " + fn_name); } } for (auto & [name, value] : args.kwargs) { auto named_pos_it = named_positions.find(name); if (named_pos_it == named_positions.end()) { throw std::runtime_error("Unknown argument " + name + " for function " + fn_name); } provided_args[named_pos_it->second] = true; args_obj.set(name, value); } return fn(context, args_obj); }); }
O3
cpp
minja::simple_function(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>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %rcx, 0x28(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, 0x20(%rsp) leaq 0xc0(%rsp), %rax movl $0x0, (%rax) xorl %ecx, %ecx movq %rcx, 0x8(%rax) movq %rax, 0x10(%rax) movq %rax, 0x18(%rax) movq %rcx, 0x20(%rax) movq 0x8(%rdx), %rbp subq (%rdx), %rbp je 0xa1482 sarq $0x5, %rbp cmpq $0x1, %rbp adcq $0x0, %rbp xorl %ebx, %ebx leaq 0xb8(%rsp), %r13 xorl %r12d, %r12d movq (%r15), %rsi addq %rbx, %rsi movq %r13, %rdi callq 0xc4aae movq %r12, (%rax) incq %r12 addq $0x20, %rbx cmpq %r12, %rbp jne 0xa1465 leaq 0x30(%rsp), %rdi movq %r15, %rsi callq 0x2ba3a leaq 0x48(%rsp), %rdi leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) movq (%r14), %rsi movq 0x8(%r14), %rdx addq %rsi, %rdx callq 0x2c98c leaq 0x68(%rsp), %r14 leaq 0xb8(%rsp), %rsi movq %r14, %rdi callq 0xc4ea0 leaq 0x98(%rsp), %r15 movq %r15, %rdi movq 0x28(%rsp), %rsi callq 0xc4b42 xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movaps %xmm0, (%rsp) movl $0x88, %edi callq 0x20220 movq %rax, %r12 leaq 0x30(%rsp), %rsi movq %rax, %rdi callq 0x2ba3a leaq 0x18(%r12), %rdi leaq 0x28(%r12), %rbp movq %rbp, 0x18(%r12) movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx addq %rsi, %rdx callq 0x2c98c leaq 0x40(%r12), %rax movq 0x78(%rsp), %rdx testq %rdx, %rdx je 0xa1569 leaq 0x70(%rsp), %rdi movl (%rdi), %ecx movq %rdx, 0x48(%r12) movq 0x10(%rdi), %r8 movq 0x18(%rdi), %rsi movq %rax, 0x8(%rdx) leaq 0x90(%rsp), %rdx movq (%rdx), %rax movq %rax, 0x60(%r12) movq $0x0, -0x18(%rdx) movq %rdi, -0x10(%rdx) movq %rdi, -0x8(%rdx) movq %r8, %rax jmp 0xa157c movq $0x0, 0x48(%r12) leaq 0x60(%r12), %rdx xorl %ecx, %ecx movq %rax, %rsi movq %rax, 0x50(%r12) movq %rsi, 0x58(%r12) movq $0x0, (%rdx) movl %ecx, 0x40(%r12) leaq 0x68(%r12), %rdi movq %r15, %rsi callq 0xc4b42 movq %rsp, %rsi movq %r12, (%rsi) leaq 0x1c8(%rip), %rax # 0xa1774 movq %rax, 0x18(%rsi) leaq 0x7cb(%rip), %rax # 0xa1d82 movq %rax, 0x10(%rsi) movq 0x20(%rsp), %rdi callq 0xbf836 movq 0x10(%rsp), %rax testq %rax, %rax je 0xa15dc movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0xa8(%rsp), %rax testq %rax, %rax je 0xa15f6 movq %r15, %rdi movq %r15, %rsi movl $0x3, %edx callq *%rax movq %r14, %rdi callq 0xc5102 movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0xa1615 movq 0x58(%rsp), %rsi incq %rsi callq 0x20180 leaq 0x30(%rsp), %rdi callq 0x27ea0 leaq 0xb8(%rsp), %rdi callq 0xc5102 addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xa16bd jmp 0xa16bd movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0xa16c8 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0xa16c8 jmp 0xa16bd movq %rax, %rbx movq %r12, %rdi addq $0x38, %rdi callq 0xc5102 movq 0x18(%r12), %rdi cmpq %rbp, %rdi je 0xa168a movq (%rbp), %rsi incq %rsi callq 0x20180 jmp 0xa168a movq %rax, %rbx movq %r12, %rdi callq 0x27ea0 jmp 0xa1697 movq %rax, %rbx movl $0x88, %esi movq %r12, %rdi callq 0x20180 movq 0x10(%rsp), %rax testq %rax, %rax je 0xa16c8 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0xa16c8 movq %rax, %rdi callq 0x2a257 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0xa1726 jmp 0xa1711 movq %rax, %rbx movq %r14, %rdi callq 0xc5102 jmp 0xa16e4 movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0xa1700 movq 0x58(%rsp), %rsi incq %rsi callq 0x20180 jmp 0xa1700 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x27ea0 jmp 0xa1711 jmp 0xa170e movq %rax, %rbx leaq 0xb8(%rsp), %rdi callq 0xc5102 movq %rbx, %rdi callq 0x20b50
_ZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0E8h mov [rsp+118h+var_F0], rcx mov r15, rdx mov r14, rsi mov [rsp+118h+var_F8], rdi lea rax, [rsp+118h+var_58] mov dword ptr [rax], 0 xor ecx, ecx mov [rax+8], rcx mov [rax+10h], rax mov [rax+18h], rax mov [rax+20h], rcx mov rbp, [rdx+8] sub rbp, [rdx] jz short loc_A1482 sar rbp, 5 cmp rbp, 1 adc rbp, 0 xor ebx, ebx lea r13, [rsp+118h+var_60] xor r12d, r12d loc_A1465: mov rsi, [r15] add rsi, rbx mov rdi, r13 call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEixERS9_; std::map<std::string,ulong>::operator[](std::string const&) mov [rax], r12 inc r12 add rbx, 20h ; ' ' cmp rbp, r12 jnz short loc_A1465 loc_A1482: lea rdi, [rsp+118h+var_E8] mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) lea rdi, [rsp+118h+var_D0] lea r13, [rsp+118h+var_C0] mov [r13-10h], r13 mov rsi, [r14] mov rdx, [r14+8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r14, [rsp+118h+var_B0] lea rsi, [rsp+118h+var_60] mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>> const&) lea r15, [rsp+118h+var_80] mov rdi, r15 mov rsi, [rsp+118h+var_F0] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&) xorps xmm0, xmm0 movaps [rsp+118h+var_108], xmm0 movaps [rsp+118h+var_118], xmm0 mov edi, 88h; unsigned __int64 call __Znwm; operator new(ulong) mov r12, rax lea rsi, [rsp+118h+var_E8] mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) lea rdi, [r12+18h] lea rbp, [r12+28h] mov [r12+18h], rbp mov rsi, [rsp+118h+var_D0] mov rdx, [rsp+118h+var_C8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rax, [r12+40h] mov rdx, [rsp+118h+var_A0] test rdx, rdx jz short loc_A1569 lea rdi, [rsp+118h+var_A8] mov ecx, [rdi] mov [r12+48h], rdx mov r8, [rdi+10h] mov rsi, [rdi+18h] mov [rdx+8], rax lea rdx, [rsp+118h+var_88] mov rax, [rdx] mov [r12+60h], rax mov qword ptr [rdx-18h], 0 mov [rdx-10h], rdi mov [rdx-8], rdi mov rax, r8 jmp short loc_A157C loc_A1569: mov qword ptr [r12+48h], 0 lea rdx, [r12+60h] xor ecx, ecx mov rsi, rax loc_A157C: mov [r12+50h], rax mov [r12+58h], rsi mov qword ptr [rdx], 0 mov [r12+40h], ecx lea rdi, [r12+68h] mov rsi, r15 call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&) mov rsi, rsp mov [rsi], r12 lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E9_M_invokeERKSt9_Any_dataS6_S8_; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke(std::_Any_data const&,std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &) mov [rsi+18h], rax lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsi+10h], rax mov rdi, [rsp+118h+var_F8] call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&) mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_A15DC mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_A15DC: mov rax, [rsp+118h+var_70] test rax, rax jz short loc_A15F6 mov rdi, r15 mov rsi, r15 mov edx, 3 call rax loc_A15F6: mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, [rsp+118h+var_D0]; void * cmp rdi, r13 jz short loc_A1615 mov rsi, [rsp+118h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A1615: lea rdi, [rsp+118h+var_E8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rsp+118h+var_60] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() add rsp, 0E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_A16BD jmp short loc_A16BD mov rbx, rax mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_A16C8 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax jmp short loc_A16C8 jmp short loc_A16BD mov rbx, rax mov rdi, r12 add rdi, 38h ; '8' call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, [r12+18h]; void * cmp rdi, rbp jz short loc_A168A mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_A168A mov rbx, rax loc_A168A: mov rdi, r12 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_A1697 mov rbx, rax loc_A1697: mov esi, 88h; unsigned __int64 mov rdi, r12; void * call __ZdlPvm; operator delete(void *,ulong) mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_A16C8 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax jmp short loc_A16C8 loc_A16BD: mov rdi, rax call __clang_call_terminate mov rbx, rax loc_A16C8: lea rdi, [rsp+118h+var_E8] call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0() jmp short loc_A1711 mov rbx, rax mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() jmp short loc_A16E4 mov rbx, rax loc_A16E4: mov rdi, [rsp+118h+var_D0]; void * cmp rdi, r13 jz short loc_A1700 mov rsi, [rsp+118h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_A1700 mov rbx, rax loc_A1700: lea rdi, [rsp+118h+var_E8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_A1711 jmp short $+2 loc_A170E: mov rbx, rax loc_A1711: lea rdi, [rsp+118h+var_60] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, rbx call __Unwind_Resume
long long minja::simple_function(long long a1, long long a2, _QWORD *a3, long long a4) { long long v5; // rbp long long v6; // rbp long long v7; // rbx long long v8; // r12 long long v9; // r12 long long v10; // rax long long v11; // rdx int v12; // ecx int *v13; // r8 int *v14; // rsi long long *v15; // rdx __int128 v17; // [rsp+0h] [rbp-118h] BYREF __int128 v18; // [rsp+10h] [rbp-108h] long long v19; // [rsp+20h] [rbp-F8h] long long v20; // [rsp+28h] [rbp-F0h] _QWORD v21[3]; // [rsp+30h] [rbp-E8h] BYREF void *v22[2]; // [rsp+48h] [rbp-D0h] BYREF _QWORD v23[2]; // [rsp+58h] [rbp-C0h] BYREF _BYTE v24[8]; // [rsp+68h] [rbp-B0h] BYREF int v25; // [rsp+70h] [rbp-A8h] BYREF long long v26; // [rsp+78h] [rbp-A0h] int *v27; // [rsp+80h] [rbp-98h] int *v28; // [rsp+88h] [rbp-90h] long long v29; // [rsp+90h] [rbp-88h] BYREF _BYTE v30[16]; // [rsp+98h] [rbp-80h] BYREF void ( *v31)(_BYTE *, _BYTE *, long long); // [rsp+A8h] [rbp-70h] _BYTE v32[8]; // [rsp+B8h] [rbp-60h] BYREF int v33; // [rsp+C0h] [rbp-58h] BYREF long long v34; // [rsp+C8h] [rbp-50h] int *v35; // [rsp+D0h] [rbp-48h] int *v36; // [rsp+D8h] [rbp-40h] long long v37; // [rsp+E0h] [rbp-38h] v20 = a4; v19 = a1; v33 = 0; v34 = 0LL; v35 = &v33; v36 = &v33; v37 = 0LL; v5 = a3[1] - *a3; if ( v5 ) { v6 = (v5 >> 5 == 0) + (v5 >> 5); v7 = 0LL; v8 = 0LL; do { *(_QWORD *)std::map<std::string,unsigned long>::operator[](v32, v7 + *a3) = v8++; v7 += 32LL; } while ( v6 != v8 ); } std::vector<std::string>::vector((long long)v21, a3); v22[0] = v23; std::string::_M_construct<char *>((long long)v22, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_Rb_tree( v24, v32); std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v30, v20); v18 = 0LL; v17 = 0LL; v9 = operator new(0x88uLL); std::vector<std::string>::vector(v9, v21); *(_QWORD *)(v9 + 24) = v9 + 40; std::string::_M_construct<char *>(v9 + 24, (_BYTE *)v22[0], (long long)v22[0] + (unsigned long long)v22[1]); v10 = v9 + 64; v11 = v26; if ( v26 ) { v12 = v25; *(_QWORD *)(v9 + 72) = v26; v13 = v27; v14 = v28; *(_QWORD *)(v11 + 8) = v10; v15 = &v29; *(_QWORD *)(v9 + 96) = v29; v26 = 0LL; v27 = &v25; v28 = &v25; v10 = (long long)v13; } else { *(_QWORD *)(v9 + 72) = 0LL; v15 = (long long *)(v9 + 96); v12 = 0; v14 = (int *)(v9 + 64); } *(_QWORD *)(v9 + 80) = v10; *(_QWORD *)(v9 + 88) = v14; *v15 = 0LL; *(_DWORD *)(v9 + 64) = v12; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v9 + 104, v30); *(_QWORD *)&v17 = v9; *((_QWORD *)&v18 + 1) = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke; *(_QWORD *)&v18 = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager; minja::Value::callable(v19); if ( std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager ) ((void ( *)(__int128 *, __int128 *, long long))v18)(&v17, &v17, 3LL); if ( v31 ) v31(v30, v30, 3LL); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree(v24); if ( v22[0] != v23 ) operator delete(v22[0], v23[0] + 1LL); std::vector<std::string>::~vector((long long)v21); return std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree(v32); }
simple_function: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xe8 MOV qword ptr [RSP + 0x28],RCX MOV R15,RDX MOV R14,RSI MOV qword ptr [RSP + 0x20],RDI LEA RAX,[RSP + 0xc0] MOV dword ptr [RAX],0x0 XOR ECX,ECX MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RAX + 0x10],RAX MOV qword ptr [RAX + 0x18],RAX MOV qword ptr [RAX + 0x20],RCX MOV RBP,qword ptr [RDX + 0x8] SUB RBP,qword ptr [RDX] JZ 0x001a1482 SAR RBP,0x5 CMP RBP,0x1 ADC RBP,0x0 XOR EBX,EBX LEA R13,[RSP + 0xb8] XOR R12D,R12D LAB_001a1465: MOV RSI,qword ptr [R15] ADD RSI,RBX LAB_001a146b: MOV RDI,R13 CALL 0x001c4aae MOV qword ptr [RAX],R12 INC R12 ADD RBX,0x20 CMP RBP,R12 JNZ 0x001a1465 LAB_001a1482: LEA RDI,[RSP + 0x30] MOV RSI,R15 CALL 0x0012ba3a LEA RDI,[RSP + 0x48] LEA R13,[RSP + 0x58] MOV qword ptr [R13 + -0x10],R13 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] ADD RDX,RSI LAB_001a14a7: CALL 0x0012c98c LEA R14,[RSP + 0x68] LAB_001a14b1: LEA RSI,[RSP + 0xb8] MOV RDI,R14 CALL 0x001c4ea0 LEA R15,[RSP + 0x98] LAB_001a14c9: MOV RDI,R15 MOV RSI,qword ptr [RSP + 0x28] CALL 0x001c4b42 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOVAPS xmmword ptr [RSP],XMM0 LAB_001a14e2: MOV EDI,0x88 CALL 0x00120220 LAB_001a14ec: MOV R12,RAX LEA RSI,[RSP + 0x30] MOV RDI,RAX CALL 0x0012ba3a LEA RDI,[R12 + 0x18] LEA RBP,[R12 + 0x28] MOV qword ptr [R12 + 0x18],RBP MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] ADD RDX,RSI LAB_001a1518: CALL 0x0012c98c LEA RAX,[R12 + 0x40] MOV RDX,qword ptr [RSP + 0x78] TEST RDX,RDX JZ 0x001a1569 LEA RDI,[RSP + 0x70] MOV ECX,dword ptr [RDI] MOV qword ptr [R12 + 0x48],RDX MOV R8,qword ptr [RDI + 0x10] MOV RSI,qword ptr [RDI + 0x18] MOV qword ptr [RDX + 0x8],RAX LEA RDX,[RSP + 0x90] MOV RAX,qword ptr [RDX] MOV qword ptr [R12 + 0x60],RAX MOV qword ptr [RDX + -0x18],0x0 MOV qword ptr [RDX + -0x10],RDI MOV qword ptr [RDX + -0x8],RDI MOV RAX,R8 JMP 0x001a157c LAB_001a1569: MOV qword ptr [R12 + 0x48],0x0 LEA RDX,[R12 + 0x60] XOR ECX,ECX MOV RSI,RAX LAB_001a157c: MOV qword ptr [R12 + 0x50],RAX MOV qword ptr [R12 + 0x58],RSI MOV qword ptr [RDX],0x0 MOV dword ptr [R12 + 0x40],ECX LEA RDI,[R12 + 0x68] LAB_001a1597: MOV RSI,R15 CALL 0x001c4b42 MOV RSI,RSP MOV qword ptr [RSI],R12 LEA RAX,[0x1a1774] MOV qword ptr [RSI + 0x18],RAX LEA RAX,[0x1a1d82] MOV qword ptr [RSI + 0x10],RAX LAB_001a15bb: MOV RDI,qword ptr [RSP + 0x20] CALL 0x001bf836 MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x001a15dc LAB_001a15cf: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001a15dc: MOV RAX,qword ptr [RSP + 0xa8] TEST RAX,RAX JZ 0x001a15f6 LAB_001a15e9: MOV RDI,R15 MOV RSI,R15 MOV EDX,0x3 CALL RAX LAB_001a15f6: MOV RDI,R14 CALL 0x001c5102 MOV RDI,qword ptr [RSP + 0x48] CMP RDI,R13 JZ 0x001a1615 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x00120180 LAB_001a1615: LEA RDI,[RSP + 0x30] CALL 0x00127ea0 LEA RDI,[RSP + 0xb8] CALL 0x001c5102 ADD RSP,0xe8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::simple_function(std::__cxx11::string const&, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&) */ void __thiscall minja::simple_function(minja *this,string *param_1,vector *param_2,function *param_3) { long *plVar1; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *this_00; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar2; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar3; long lVar4; long lVar5; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar6; long lVar7; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_118; int8 uStack_110; code *local_108; code *pcStack_100; minja *local_f8; function *local_f0; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_e8 [24]; long *local_d0; long local_c8; long local_c0 [2]; _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> local_b0 [8]; int4 local_a8 [2]; long local_a0; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_98; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_90; int8 local_88; function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> local_80 [16]; code *local_70; map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> local_60 [8]; int4 local_58 [2]; int8 local_50; int4 *local_48; int4 *local_40; int8 local_38; local_48 = local_58; local_58[0] = 0; local_50 = 0; local_38 = 0; local_f8 = this; local_f0 = param_3; local_40 = local_48; if (*(long *)(param_2 + 8) - *(long *)param_2 != 0) { lVar5 = *(long *)(param_2 + 8) - *(long *)param_2 >> 5; lVar4 = 0; lVar7 = 0; do { /* try { // try from 001a146b to 001a1472 has its CatchHandler @ 001a170e */ plVar1 = (long *)std:: map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::operator[](local_60,(string *)(*(long *)param_2 + lVar4)); *plVar1 = lVar7; lVar7 = lVar7 + 1; lVar4 = lVar4 + 0x20; } while (lVar5 + (ulong)(lVar5 == 0) != lVar7); } /* try { // try from 001a1482 to 001a148e has its CatchHandler @ 001a170c */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_e8,param_2); local_d0 = local_c0; /* try { // try from 001a14a7 to 001a14ab has its CatchHandler @ 001a16fd */ std::__cxx11::string::_M_construct<char*> (&local_d0,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); /* try { // try from 001a14b1 to 001a14c0 has its CatchHandler @ 001a16e1 */ std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::_Rb_tree(local_b0,(_Rb_tree *)local_60); /* try { // try from 001a14c9 to 001a14d5 has its CatchHandler @ 001a16d4 */ std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function (local_80,local_f0); local_108 = (code *)0x0; pcStack_100 = (code *)0x0; local_118 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)0x0; uStack_110 = 0; /* try { // try from 001a14e2 to 001a14eb has its CatchHandler @ 001a16c5 */ this_00 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)operator_new(0x88); /* try { // try from 001a14ec to 001a14fb has its CatchHandler @ 001a1694 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector (this_00,(vector *)local_e8); *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x18) = this_00 + 0x28; /* try { // try from 001a1518 to 001a151c has its CatchHandler @ 001a1687 */ std::__cxx11::string::_M_construct<char*>(this_00 + 0x18,local_d0,local_c8 + (long)local_d0); pvVar2 = this_00 + 0x40; if (local_a0 == 0) { *(int8 *)(this_00 + 0x48) = 0; pvVar3 = this_00 + 0x60; local_a8[0] = 0; pvVar6 = pvVar2; } else { *(long *)(this_00 + 0x48) = local_a0; *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(local_a0 + 8) = pvVar2; pvVar3 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_88; *(int8 *)(this_00 + 0x60) = local_88; local_a0 = 0; pvVar2 = local_98; pvVar6 = local_90; local_98 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a8; local_90 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a8; } *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x50) = pvVar2; *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x58) = pvVar6; *(int8 *)pvVar3 = 0; *(int4 *)(this_00 + 0x40) = local_a8[0]; /* try { // try from 001a1597 to 001a159e has its CatchHandler @ 001a1660 */ std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function ((function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> *) (this_00 + 0x68),local_80); pcStack_100 = std:: _Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0> ::_M_invoke; local_108 = std:: _Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0> ::_M_manager; local_118 = this_00; /* try { // try from 001a15bb to 001a15c4 has its CatchHandler @ 001a1642 */ Value::callable((Value *)local_f8,(function *)&local_118); if (local_108 != (code *)0x0) { /* try { // try from 001a15cf to 001a15db has its CatchHandler @ 001a1640 */ (*local_108)(&local_118,&local_118,3); } if (local_70 != (code *)0x0) { /* try { // try from 001a15e9 to 001a15f5 has its CatchHandler @ 001a163e */ (*local_70)(local_80,local_80,3); } std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::~_Rb_tree(local_b0); if (local_d0 != local_c0) { operator_delete(local_d0,local_c0[0] + 1); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_e8); std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> *)local_60); return; }
45,057
minja::Parser::parseIfExpression()
monkey531[P]llama/common/minja.hpp
std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>> parseIfExpression() { auto condition = parseLogicalOr(); if (!condition) throw std::runtime_error("Expected condition expression"); static std::regex else_tok(R"(else\b)"); std::shared_ptr<Expression> else_expr; if (!consumeToken(else_tok).empty()) { else_expr = parseExpression(); if (!else_expr) throw std::runtime_error("Expected 'else' expression"); } return std::pair(std::move(condition), std::move(else_expr)); }
O1
cpp
minja::Parser::parseIfExpression(): pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsp, %r15 movq %r15, %rdi callq 0x856a0 cmpq $0x0, (%r15) je 0x85a4c leaq 0xab84f(%rip), %rax # 0x1311a8 movb (%rax), %al testb %al, %al je 0x85a7e leaq 0xab81e(%rip), %rdx # 0x131188 leaq 0x10(%rsp), %rdi movq %r14, %rsi movl $0x1, %ecx callq 0x84544 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi movq -0x8(%rax), %r15 cmpq %rax, %rdi je 0x8599b movq 0x20(%rsp), %rsi incq %rsi callq 0x1b8c0 testq %r15, %r15 je 0x85a0c leaq 0x10(%rsp), %rdi movq %r14, %rsi movl $0x1, %edx callq 0x84322 movq 0x10(%rsp), %r15 movq 0x18(%rsp), %r14 xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x859d3 callq 0x6d7f6 testq %r15, %r15 jne 0x85a12 movl $0x10, %edi callq 0x1b440 movq %rax, %r15 leaq 0x6edd8(%rip), %rsi # 0xf47c4 movq %rax, %rdi callq 0x1b320 movq 0xaa5ed(%rip), %rsi # 0x12ffe8 movq 0xaa54e(%rip), %rdx # 0x12ff50 movq %r15, %rdi callq 0x1bf00 jmp 0x85a7e xorl %r15d, %r15d xorl %r14d, %r14d xorl %eax, %eax movq %rax, 0x8(%rbx) movaps (%rsp), %xmm0 movq %rax, 0x8(%rsp) movups %xmm0, (%rbx) movq %rax, (%rsp) movq %r15, 0x10(%rbx) movq %r14, 0x18(%rbx) movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x85a3f callq 0x6d7f6 movq %rbx, %rax addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq movl $0x10, %edi callq 0x1b440 movq %rax, %r14 leaq 0x6ed3f(%rip), %rsi # 0xf479f movq %rax, %rdi callq 0x1b320 movq 0xaa579(%rip), %rsi # 0x12ffe8 movq 0xaa4da(%rip), %rdx # 0x12ff50 movq %r14, %rdi callq 0x1bf00 leaq 0xab723(%rip), %rdi # 0x1311a8 callq 0x1bff0 testl %eax, %eax je 0x85963 leaq 0xab6ef(%rip), %rdi # 0x131188 leaq 0x6ed1d(%rip), %rsi # 0xf47bd movl $0x10, %edx callq 0x62826 leaq -0x22f83(%rip), %rdi # 0x62b2e leaq 0xab6d0(%rip), %rsi # 0x131188 leaq 0xaae19(%rip), %rdx # 0x1308d8 callq 0x1b7a0 leaq 0xab6dd(%rip), %rdi # 0x1311a8 callq 0x1b5a0 jmp 0x85963 movq %rax, %rbx leaq 0xab6c9(%rip), %rdi # 0x1311a8 callq 0x1b590 jmp 0x85b1f movq %rax, %rbx jmp 0x85b12 movq %rax, %rbx movq %r15, %rdi callq 0x1b660 jmp 0x85b12 movq %rax, %rbx jmp 0x85b1f movq %rax, %rbx movq %r14, %rdi callq 0x1b660 jmp 0x85b1f jmp 0x85b0c movq %rax, %rbx xorl %r14d, %r14d testq %r14, %r14 je 0x85b1f movq %r14, %rdi callq 0x6d7f6 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x85b2e callq 0x6d7f6 movq %rbx, %rdi callq 0x1bf90
_ZN5minja6Parser17parseIfExpressionEv: push r15 push r14 push rbx sub rsp, 30h mov r14, rsi mov rbx, rdi mov r15, rsp mov rdi, r15; this call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void) cmp qword ptr [r15], 0 jz loc_85A4C lea rax, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; `guard variable for'minja::Parser::parseIfExpression(void)::else_tok mov al, [rax] test al, al jz loc_85A7E loc_85963: lea rdx, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok lea rdi, [rsp+48h+var_38] mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * mov r15, [rax-8] cmp rdi, rax jz short loc_8599B mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8599B: test r15, r15 jz short loc_85A0C lea rdi, [rsp+48h+var_38]; this mov rsi, r14; bool mov edx, 1 call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool) mov r15, qword ptr [rsp+48h+var_38] mov r14, qword ptr [rsp+48h+var_38+8] xorps xmm0, xmm0 movaps [rsp+48h+var_38], xmm0 mov rdi, qword ptr [rsp+48h+var_38+8] test rdi, rdi jz short loc_859D3 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_859D3: test r15, r15 jnz short loc_85A12 mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedElseEx; "Expected 'else' expression" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp short loc_85A7E loc_85A0C: xor r15d, r15d xor r14d, r14d loc_85A12: xor eax, eax mov [rbx+8], rax movaps xmm0, [rsp+48h+var_48] mov qword ptr [rsp+48h+var_48+8], rax movups xmmword ptr [rbx], xmm0 mov qword ptr [rsp+48h+var_48], rax mov [rbx+10h], r15 mov [rbx+18h], r14 mov rdi, qword ptr [rsp+48h+var_48+8] test rdi, rdi jz short loc_85A3F call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_85A3F: mov rax, rbx add rsp, 30h pop rbx pop r14 pop r15 retn loc_85A4C: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpectedCondit_1; "Expected condition expression" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_85A7E: lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_85963 lea rdi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok lea rsi, aElseB; "else\\b" mov edx, 10h call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard * call ___cxa_guard_release jmp loc_85963 mov rbx, rax lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_85B1F mov rbx, rax jmp short loc_85B12 mov rbx, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_85B12 mov rbx, rax jmp short loc_85B1F mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_85B1F jmp short $+2 loc_85B0C: mov rbx, rax xor r14d, r14d loc_85B12: test r14, r14 jz short loc_85B1F mov rdi, r14 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_85B1F: mov rdi, [rsp+arg_0] test rdi, rdi jz short loc_85B2E call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_85B2E: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::parseIfExpression(minja::Parser *this, long long *a2) { long long v2; // r15 __int128 v3; // kr00_16 std::runtime_error *v4; // r15 __int128 v5; // xmm0 std::runtime_error *exception; // r14 __int128 v8; // [rsp+0h] [rbp-48h] BYREF __int128 v9; // [rsp+10h] [rbp-38h] BYREF long long v10; // [rsp+20h] [rbp-28h] BYREF minja::Parser::parseLogicalOr((volatile signed __int32 **)&v8, a2); if ( !(_QWORD)v8 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected condition expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( !(_BYTE)`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11], (long long)"else\\b", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]); } minja::Parser::consumeToken( (long long)&v9, (long long)a2, (long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11], 1u); v2 = *((_QWORD *)&v9 + 1); if ( (long long *)v9 != &v10 ) operator delete((void *)v9, v10 + 1); if ( v2 ) { minja::Parser::parseExpression((minja::Parser *)&v9, a2, 1); v3 = v9; v9 = 0LL; if ( !(_QWORD)v3 ) { v4 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(v4, "Expected 'else' expression"); __cxa_throw( v4, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } } else { v3 = 0uLL; } *((_QWORD *)this + 1) = 0LL; v5 = v8; *((_QWORD *)&v8 + 1) = 0LL; *(_OWORD *)this = v5; *(_QWORD *)&v8 = 0LL; *((_OWORD *)this + 1) = v3; if ( *((_QWORD *)&v8 + 1) ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v8 + 1)); return this; }
parseIfExpression: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI MOV R15,RSP MOV RDI,R15 CALL 0x001856a0 CMP qword ptr [R15],0x0 JZ 0x00185a4c LEA RAX,[0x2311a8] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x00185a7e LAB_00185963: LEA RDX,[0x231188] LEA RDI,[RSP + 0x10] MOV RSI,R14 MOV ECX,0x1 CALL 0x00184544 LEA RAX,[RSP + 0x20] MOV RDI,qword ptr [RAX + -0x10] MOV R15,qword ptr [RAX + -0x8] CMP RDI,RAX JZ 0x0018599b MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x0011b8c0 LAB_0018599b: TEST R15,R15 JZ 0x00185a0c LAB_001859a0: LEA RDI,[RSP + 0x10] MOV RSI,R14 MOV EDX,0x1 CALL 0x00184322 LAB_001859b2: MOV R15,qword ptr [RSP + 0x10] MOV R14,qword ptr [RSP + 0x18] XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x001859d3 CALL 0x0016d7f6 LAB_001859d3: TEST R15,R15 JNZ 0x00185a12 MOV EDI,0x10 CALL 0x0011b440 MOV R15,RAX LAB_001859e5: LEA RSI,[0x1f47c4] MOV RDI,RAX CALL 0x0011b320 LAB_001859f4: MOV RSI,qword ptr [0x0022ffe8] MOV RDX,qword ptr [0x0022ff50] MOV RDI,R15 CALL 0x0011bf00 LAB_00185a0c: XOR R15D,R15D XOR R14D,R14D LAB_00185a12: XOR EAX,EAX MOV qword ptr [RBX + 0x8],RAX MOVAPS XMM0,xmmword ptr [RSP] MOV qword ptr [RSP + 0x8],RAX MOVUPS xmmword ptr [RBX],XMM0 MOV qword ptr [RSP],RAX MOV qword ptr [RBX + 0x10],R15 MOV qword ptr [RBX + 0x18],R14 MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x00185a3f CALL 0x0016d7f6 LAB_00185a3f: MOV RAX,RBX ADD RSP,0x30 POP RBX POP R14 POP R15 RET LAB_00185a4c: MOV EDI,0x10 CALL 0x0011b440 MOV R14,RAX LAB_00185a59: LEA RSI,[0x1f479f] MOV RDI,RAX CALL 0x0011b320 LAB_00185a68: MOV RSI,qword ptr [0x0022ffe8] MOV RDX,qword ptr [0x0022ff50] MOV RDI,R14 CALL 0x0011bf00 LAB_00185a7e: LEA RDI,[0x2311a8] CALL 0x0011bff0 TEST EAX,EAX JZ 0x00185963 LAB_00185a92: LEA RDI,[0x231188] LEA RSI,[0x1f47bd] MOV EDX,0x10 CALL 0x00162826 LAB_00185aaa: LEA RDI,[0x162b2e] LEA RSI,[0x231188] LEA RDX,[0x2308d8] CALL 0x0011b7a0 LEA RDI,[0x2311a8] CALL 0x0011b5a0 JMP 0x00185963
/* WARNING: Removing unreachable block (ram,0x001859ce) */ /* WARNING: Removing unreachable block (ram,0x00185a3a) */ /* minja::Parser::parseIfExpression() */ void minja::Parser::parseIfExpression(void) { int iVar1; runtime_error *prVar2; long *in_RDI; long lVar3; long *plVar4; long local_48; long lStack_40; long *local_38; long lStack_30; long local_28 [2]; parseLogicalOr(); if (local_48 == 0) { prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00185a59 to 00185a67 has its CatchHandler @ 00185afd */ std::runtime_error::runtime_error(prVar2,"Expected condition expression"); /* try { // try from 00185a68 to 00185a7d has its CatchHandler @ 00185af8 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50); } if ((parseIfExpression()::else_tok_abi_cxx11_ == '\0') && (iVar1 = __cxa_guard_acquire(&parseIfExpression()::else_tok_abi_cxx11_), iVar1 != 0)) { /* try { // try from 00185a92 to 00185aa9 has its CatchHandler @ 00185ad5 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseIfExpression()::else_tok_abi_cxx11_,"else\\b",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseIfExpression()::else_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseIfExpression()::else_tok_abi_cxx11_); } /* try { // try from 00185963 to 0018597b has its CatchHandler @ 00185b0c */ consumeToken(&local_38); lVar3 = lStack_30; if (local_38 != local_28) { operator_delete(local_38,local_28[0] + 1); } if (lVar3 == 0) { plVar4 = (long *)0x0; lVar3 = 0; } else { /* try { // try from 001859a0 to 001859b1 has its CatchHandler @ 00185b0a */ parseExpression(SUB81(&local_38,0)); lVar3 = lStack_30; plVar4 = local_38; lStack_30 = 0; local_38 = (long *)0x0; if (plVar4 == (long *)0x0) { prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001859e5 to 001859f3 has its CatchHandler @ 00185aeb */ std::runtime_error::runtime_error(prVar2,"Expected \'else\' expression"); /* try { // try from 001859f4 to 00185a09 has its CatchHandler @ 00185ae6 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50); } } in_RDI[1] = 0; *in_RDI = local_48; in_RDI[1] = lStack_40; in_RDI[2] = (long)plVar4; in_RDI[3] = lVar3; return; }
45,058
minja::Parser::parseIdentifier()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<VariableExpr> parseIdentifier() { static std::regex ident_regex(R"((?!(?:not|is|and|or|del)\b)[a-zA-Z_]\w*)"); auto location = get_location(); auto ident = consumeToken(ident_regex); if (ident.empty()) return nullptr; return std::make_shared<VariableExpr>(location, ident); }
O1
cpp
minja::Parser::parseIdentifier(): pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0xaaaf4(%rip), %rax # 0x130208 movb (%rax), %al testb %al, %al je 0x857d6 movq (%r14), %rax movq %rax, 0x10(%rsp) movq 0x8(%r14), %rax movq %rax, 0x18(%rsp) testq %rax, %rax je 0x85749 movq 0xa984d(%rip), %rcx # 0x12ef88 cmpb $0x0, (%rcx) je 0x85745 incl 0x8(%rax) jmp 0x85749 lock incl 0x8(%rax) movq 0x20(%r14), %rax subq 0x10(%r14), %rax movq %rax, 0x20(%rsp) leaq 0xaaa8b(%rip), %rdx # 0x1301e8 leaq 0x28(%rsp), %rdi movq %r14, %rsi movl $0x1, %ecx callq 0x85094 cmpq $0x0, 0x30(%rsp) je 0x8579b movq $0x0, (%rbx) leaq 0x8(%rbx), %rdi leaq 0xf(%rsp), %rdx leaq 0x10(%rsp), %rcx leaq 0x28(%rsp), %r8 movq %rbx, %rsi callq 0x99e5c jmp 0x857a1 xorps %xmm0, %xmm0 movups %xmm0, (%rbx) leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x857bc movq 0x38(%rsp), %rsi incq %rsi callq 0x1b900 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x857cb callq 0x6e160 movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r14 retq leaq 0xaaa2b(%rip), %rdi # 0x130208 callq 0x1c030 testl %eax, %eax je 0x8571e leaq 0xaa9f7(%rip), %rdi # 0x1301e8 leaq 0x6e39e(%rip), %rsi # 0xf3b96 movl $0x10, %edx callq 0x63190 leaq -0x22371(%rip), %rdi # 0x63498 leaq 0xaa9d8(%rip), %rsi # 0x1301e8 leaq 0xaa0d1(%rip), %rdx # 0x12f8e8 callq 0x1b7c0 leaq 0xaa9e5(%rip), %rdi # 0x130208 callq 0x1b5d0 jmp 0x8571e movq %rax, %rbx leaq 0xaa9d1(%rip), %rdi # 0x130208 callq 0x1b5c0 jmp 0x85870 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x85861 movq 0x38(%rsp), %rsi incq %rsi callq 0x1b900 jmp 0x85861 movq %rax, %rbx movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x85870 callq 0x6e160 movq %rbx, %rdi callq 0x1bfd0
_ZN5minja6Parser15parseIdentifierEv: push r14 push rbx sub rsp, 48h mov r14, rsi mov rbx, rdi lea rax, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; `guard variable for'minja::Parser::parseIdentifier(void)::ident_regex mov al, [rax] test al, al jz loc_857D6 loc_8571E: mov rax, [r14] mov [rsp+58h+var_48], rax mov rax, [r14+8] mov [rsp+58h+var_40], rax test rax, rax jz short loc_85749 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_85745 inc dword ptr [rax+8] jmp short loc_85749 loc_85745: lock inc dword ptr [rax+8] loc_85749: mov rax, [r14+20h] sub rax, [r14+10h] mov [rsp+58h+var_38], rax lea rdx, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rdi, [rsp+58h+var_30] mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) cmp [rsp+58h+var_28], 0 jz short loc_8579B mov qword ptr [rbx], 0 lea rdi, [rbx+8] lea rdx, [rsp+58h+var_49] lea rcx, [rsp+58h+var_48] lea r8, [rsp+58h+var_30] mov rsi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja12VariableExprESaIS5_EJRNS4_8LocationERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::VariableExpr,std::allocator<minja::VariableExpr>,minja::Location &,std::string &>(minja::VariableExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::VariableExpr>>,minja::Location &,std::string &) jmp short loc_857A1 loc_8579B: xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 loc_857A1: lea rax, [rsp+58h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_857BC mov rsi, [rsp+58h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_857BC: mov rdi, [rsp+58h+var_40] test rdi, rdi jz short loc_857CB call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_857CB: mov rax, rbx add rsp, 48h pop rbx pop r14 retn loc_857D6: lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_8571E lea rdi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rsi, aNotIsAndOrDelB; "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\"... mov edx, 10h call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_release jmp loc_8571E mov rbx, rax lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_85870 mov rbx, rax lea rax, [rsp+arg_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_85861 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_85861 mov rbx, rax loc_85861: mov rdi, [rsp+arg_10] test rdi, rdi jz short loc_85870 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_85870: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::parseIdentifier(minja::Parser *this, long long *a2) { volatile signed __int32 *v2; // rax char v4; // [rsp+Fh] [rbp-49h] BYREF long long v5; // [rsp+10h] [rbp-48h] BYREF volatile signed __int32 *v6; // [rsp+18h] [rbp-40h] long long v7; // [rsp+20h] [rbp-38h] void *v8[2]; // [rsp+28h] [rbp-30h] BYREF long long v9; // [rsp+38h] [rbp-20h] BYREF if ( !(_BYTE)`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], (long long)"(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]); } v5 = *a2; v2 = (volatile signed __int32 *)a2[1]; v6 = v2; if ( v2 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v2 + 2); else _InterlockedIncrement(v2 + 2); } v7 = a2[4] - a2[2]; minja::Parser::consumeToken( (long long)v8, (long long)a2, (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], 1u); if ( v8[1] ) { *(_QWORD *)this = 0LL; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::VariableExpr,std::allocator<minja::VariableExpr>,minja::Location &,std::string &>( (char *)this + 8, this, &v4, &v5, v8); } else { *(_OWORD *)this = 0LL; } if ( v8[0] != &v9 ) operator delete(v8[0], v9 + 1); if ( v6 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6); return this; }
parseIdentifier: PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RSI MOV RBX,RDI LEA RAX,[0x230208] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x001857d6 LAB_0018571e: MOV RAX,qword ptr [R14] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RSP + 0x18],RAX TEST RAX,RAX JZ 0x00185749 MOV RCX,qword ptr [0x0022ef88] CMP byte ptr [RCX],0x0 JZ 0x00185745 INC dword ptr [RAX + 0x8] JMP 0x00185749 LAB_00185745: INC.LOCK dword ptr [RAX + 0x8] LAB_00185749: MOV RAX,qword ptr [R14 + 0x20] SUB RAX,qword ptr [R14 + 0x10] MOV qword ptr [RSP + 0x20],RAX LAB_00185756: LEA RDX,[0x2301e8] LEA RDI,[RSP + 0x28] MOV RSI,R14 MOV ECX,0x1 CALL 0x00185094 CMP qword ptr [RSP + 0x30],0x0 JZ 0x0018579b MOV qword ptr [RBX],0x0 LEA RDI,[RBX + 0x8] LAB_00185782: LEA RDX,[RSP + 0xf] LEA RCX,[RSP + 0x10] LEA R8,[RSP + 0x28] MOV RSI,RBX CALL 0x00199e5c JMP 0x001857a1 LAB_0018579b: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 LAB_001857a1: LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001857bc MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011b900 LAB_001857bc: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x001857cb CALL 0x0016e160 LAB_001857cb: MOV RAX,RBX ADD RSP,0x48 POP RBX POP R14 RET LAB_001857d6: LEA RDI,[0x230208] CALL 0x0011c030 TEST EAX,EAX JZ 0x0018571e LAB_001857ea: LEA RDI,[0x2301e8] LEA RSI,[0x1f3b96] MOV EDX,0x10 CALL 0x00163190 LAB_00185802: LEA RDI,[0x163498] LEA RSI,[0x2301e8] LEA RDX,[0x22f8e8] CALL 0x0011b7c0 LEA RDI,[0x230208] CALL 0x0011b5d0 JMP 0x0018571e
/* minja::Parser::parseIdentifier() */ void minja::Parser::parseIdentifier(void) { _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this; int iVar1; long in_RSI; int8 *in_RDI; long *local_30; long local_28; long local_20 [2]; if (parseIdentifier()::ident_regex_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseIdentifier()::ident_regex_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 001857ea to 00185801 has its CatchHandler @ 0018582d */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseIdentifier()::ident_regex_abi_cxx11_, "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseIdentifier()::ident_regex_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseIdentifier()::ident_regex_abi_cxx11_); } } this = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(in_RSI + 8); if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_0022ef88 == '\0') { LOCK(); *(int *)(this + 8) = *(int *)(this + 8) + 1; UNLOCK(); } else { *(int *)(this + 8) = *(int *)(this + 8) + 1; } } /* try { // try from 00185756 to 0018576e has its CatchHandler @ 0018585e */ consumeToken(&local_30); if (local_28 == 0) { *in_RDI = 0; in_RDI[1] = 0; } else { *in_RDI = 0; /* try { // try from 00185782 to 00185798 has its CatchHandler @ 0018583e */ std::__shared_count<(__gnu_cxx::_Lock_policy)2>:: __shared_count<minja::VariableExpr,std::allocator<minja::VariableExpr>,minja::Location&,std::__cxx11::string&> ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(in_RDI + 1)); } if (local_30 != local_20) { operator_delete(local_30,local_20[0] + 1); } if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this); } return; }
45,059
ma_insert_dynamic
eloqsql/libmariadb/libmariadb/ma_array.c
my_bool ma_insert_dynamic(DYNAMIC_ARRAY *array, void *element) { void *buffer; if (array->elements == array->max_element) { /* Call only when necessary */ if (!(buffer=ma_alloc_dynamic(array))) return TRUE; } else { buffer=array->buffer+(array->elements * array->size_of_element); array->elements++; } memcpy(buffer,element,(size_t) array->size_of_element); return FALSE; }
O3
c
ma_insert_dynamic: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 movl 0x8(%rdi), %ecx cmpl 0xc(%rdi), %ecx jne 0x50783 movq %r14, %rdi callq 0x507aa testq %rax, %rax je 0x507a6 movq %rax, %rdi movl 0x14(%r14), %eax jmp 0x50795 movl 0x14(%r14), %eax movl %eax, %edi imull %ecx, %edi addq (%r14), %rdi incl %ecx movl %ecx, 0x8(%r14) movl %eax, %edx movq %rbx, %rsi callq 0x35080 xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq movb $0x1, %al jmp 0x507a1
ma_insert_dynamic: push rbp mov rbp, rsp push r14 push rbx mov rbx, rsi mov r14, rdi mov ecx, [rdi+8] cmp ecx, [rdi+0Ch] jnz short loc_50783 mov rdi, r14 call ma_alloc_dynamic test rax, rax jz short loc_507A6 mov rdi, rax mov eax, [r14+14h] jmp short loc_50795 loc_50783: mov eax, [r14+14h] mov edi, eax imul edi, ecx add rdi, [r14] inc ecx mov [r14+8], ecx loc_50795: mov edx, eax mov rsi, rbx call _memcpy xor eax, eax loc_507A1: pop rbx pop r14 pop rbp retn loc_507A6: mov al, 1 jmp short loc_507A1
long long ma_insert_dynamic(long long a1, long long a2) { int v3; // ecx long long v4; // rax long long v5; // rdi unsigned int v6; // eax v3 = *(_DWORD *)(a1 + 8); if ( v3 != *(_DWORD *)(a1 + 12) ) { v6 = *(_DWORD *)(a1 + 20); v5 = *(_QWORD *)a1 + v3 * v6; *(_DWORD *)(a1 + 8) = v3 + 1; goto LABEL_5; } v4 = ma_alloc_dynamic(a1); if ( v4 ) { v5 = v4; v6 = *(_DWORD *)(a1 + 20); LABEL_5: memcpy(v5, a2, v6); return 0LL; } return 1LL; }
ma_insert_dynamic: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI MOV ECX,dword ptr [RDI + 0x8] CMP ECX,dword ptr [RDI + 0xc] JNZ 0x00150783 MOV RDI,R14 CALL 0x001507aa TEST RAX,RAX JZ 0x001507a6 MOV RDI,RAX MOV EAX,dword ptr [R14 + 0x14] JMP 0x00150795 LAB_00150783: MOV EAX,dword ptr [R14 + 0x14] MOV EDI,EAX IMUL EDI,ECX ADD RDI,qword ptr [R14] INC ECX MOV dword ptr [R14 + 0x8],ECX LAB_00150795: MOV EDX,EAX MOV RSI,RBX CALL 0x00135080 XOR EAX,EAX LAB_001507a1: POP RBX POP R14 POP RBP RET LAB_001507a6: MOV AL,0x1 JMP 0x001507a1
int8 ma_insert_dynamic(long *param_1,void *param_2) { int iVar1; uint uVar2; void *__dest; iVar1 = (int)param_1[1]; if (iVar1 == *(int *)((long)param_1 + 0xc)) { __dest = (void *)ma_alloc_dynamic(param_1); if (__dest == (void *)0x0) { return 1; } uVar2 = *(uint *)((long)param_1 + 0x14); } else { uVar2 = *(uint *)((long)param_1 + 0x14); __dest = (void *)((ulong)(uVar2 * iVar1) + *param_1); *(int *)(param_1 + 1) = iVar1 + 1; } memcpy(__dest,param_2,(ulong)uVar2); return 0; }
45,060
my_strnxfrm_8bit_bin
eloqsql/strings/ctype-bin.c
static size_t my_strnxfrm_8bit_bin(CHARSET_INFO *cs, uchar * dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { set_if_smaller(srclen, dstlen); set_if_smaller(srclen, nweights); if (srclen && dst != src) memcpy(dst, src, srclen); return my_strxfrm_pad_desc_and_reverse(cs, dst, dst + srclen, dst + dstlen, (uint)(nweights - srclen), flags, 0); }
O0
c
my_strnxfrm_8bit_bin: pushq %rbp movq %rsp, %rbp subq $0x40, %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) movq -0x30(%rbp), %rax cmpq -0x18(%rbp), %rax jbe 0x86884 movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) jmp 0x86886 jmp 0x86888 movq -0x30(%rbp), %rax movl -0x1c(%rbp), %ecx cmpq %rcx, %rax jbe 0x8689b movl -0x1c(%rbp), %eax movq %rax, -0x30(%rbp) jmp 0x8689d cmpq $0x0, -0x30(%rbp) je 0x868bf movq -0x10(%rbp), %rax cmpq -0x28(%rbp), %rax je 0x868bf movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x30(%rbp), %rdx callq 0x360b0 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rdx addq -0x30(%rbp), %rdx movq -0x10(%rbp), %rcx addq -0x18(%rbp), %rcx movl -0x1c(%rbp), %eax subq -0x30(%rbp), %rax movl %eax, %r8d movl 0x10(%rbp), %r9d xorl %eax, %eax movl $0x0, (%rsp) callq 0x92600 addq $0x40, %rsp popq %rbp retq nopl (%rax)
my_strnxfrm_8bit_bin: push rbp mov rbp, rsp sub rsp, 40h 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 rax, [rbp+var_30] cmp rax, [rbp+var_18] jbe short loc_86884 mov rax, [rbp+var_18] mov [rbp+var_30], rax loc_86884: jmp short $+2 loc_86886: jmp short $+2 loc_86888: mov rax, [rbp+var_30] mov ecx, [rbp+var_1C] cmp rax, rcx jbe short loc_8689B mov eax, [rbp+var_1C] mov [rbp+var_30], rax loc_8689B: jmp short $+2 loc_8689D: cmp [rbp+var_30], 0 jz short loc_868BF mov rax, [rbp+var_10] cmp rax, [rbp+var_28] jz short loc_868BF mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] mov rdx, [rbp+var_30] call _memcpy loc_868BF: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_10] add rdx, [rbp+var_30] mov rcx, [rbp+var_10] add rcx, [rbp+var_18] mov eax, [rbp+var_1C] sub rax, [rbp+var_30] mov r8d, eax mov r9d, [rbp+arg_0] xor eax, eax mov [rsp+40h+var_40], 0 call my_strxfrm_pad_desc_and_reverse add rsp, 40h pop rbp retn
long long my_strnxfrm_8bit_bin( int a1, long long a2, unsigned long long a3, unsigned int a4, long long a5, unsigned long long a6, int a7) { unsigned long long v8; // [rsp+10h] [rbp-30h] int v10; // [rsp+28h] [rbp-18h] v10 = a3; v8 = a6; if ( a6 > a3 ) v8 = a3; if ( v8 > a4 ) v8 = a4; if ( v8 && a2 != a5 ) memcpy(a2, a5, v8); return my_strxfrm_pad_desc_and_reverse(a1, a2, (int)v8 + (int)a2, v10 + (int)a2, a4 - (unsigned int)v8, a7, 0); }
my_strnxfrm_8bit_bin: PUSH RBP MOV RBP,RSP SUB RSP,0x40 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 RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x18] JBE 0x00186884 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX LAB_00186884: JMP 0x00186886 LAB_00186886: JMP 0x00186888 LAB_00186888: MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RBP + -0x1c] CMP RAX,RCX JBE 0x0018689b MOV EAX,dword ptr [RBP + -0x1c] MOV qword ptr [RBP + -0x30],RAX LAB_0018689b: JMP 0x0018689d LAB_0018689d: CMP qword ptr [RBP + -0x30],0x0 JZ 0x001868bf MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x28] JZ 0x001868bf MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x30] CALL 0x001360b0 LAB_001868bf: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x1c] SUB RAX,qword ptr [RBP + -0x30] MOV R8D,EAX MOV R9D,dword ptr [RBP + 0x10] XOR EAX,EAX MOV dword ptr [RSP],0x0 CALL 0x00192600 ADD RSP,0x40 POP RBP RET
void my_strnxfrm_8bit_bin (int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5, ulong param_6,int4 param_7) { int8 local_38; local_38 = param_6; if (param_3 < param_6) { local_38 = param_3; } if (param_4 < local_38) { local_38 = (ulong)param_4; } if ((local_38 != 0) && (param_2 != param_5)) { memcpy(param_2,param_5,local_38); } my_strxfrm_pad_desc_and_reverse (param_1,param_2,(long)param_2 + local_38,(long)param_2 + param_3, param_4 - (int)local_38,param_7,0); return; }
45,061
bitmap_test_and_set
eloqsql/mysys/my_bitmap.c
my_bool bitmap_test_and_set(MY_BITMAP *map, uint bitmap_bit) { my_bool res; DBUG_ASSERT(map->bitmap); DBUG_ASSERT(bitmap_bit < map->n_bits); bitmap_lock(map); res= bitmap_fast_test_and_set(map, bitmap_bit); bitmap_unlock(map); return res; }
O0
c
bitmap_test_and_set: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) jmp 0xee1d1 jmp 0xee1d3 jmp 0xee1d5 movq -0x8(%rbp), %rdi callq 0xee200 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi callq 0xee160 movb %al, -0xd(%rbp) movq -0x8(%rbp), %rdi callq 0xee240 movb -0xd(%rbp), %al addq $0x10, %rsp popq %rbp retq nop
bitmap_test_and_set: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_C], esi jmp short $+2 loc_EE1D1: jmp short $+2 loc_EE1D3: jmp short $+2 loc_EE1D5: mov rdi, [rbp+var_8] call bitmap_lock mov rdi, [rbp+var_8] mov esi, [rbp+var_C] call bitmap_fast_test_and_set mov [rbp+var_D], al mov rdi, [rbp+var_8] call bitmap_unlock mov al, [rbp+var_D] add rsp, 10h pop rbp retn
char bitmap_test_and_set(_QWORD *a1, unsigned int a2) { char v3; // [rsp+3h] [rbp-Dh] bitmap_lock(a1); v3 = bitmap_fast_test_and_set(a1, a2); bitmap_unlock(a1); return v3; }
bitmap_test_and_set: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI JMP 0x001ee1d1 LAB_001ee1d1: JMP 0x001ee1d3 LAB_001ee1d3: JMP 0x001ee1d5 LAB_001ee1d5: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001ee200 MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] CALL 0x001ee160 MOV byte ptr [RBP + -0xd],AL MOV RDI,qword ptr [RBP + -0x8] CALL 0x001ee240 MOV AL,byte ptr [RBP + -0xd] ADD RSP,0x10 POP RBP RET
int1 bitmap_test_and_set(int8 param_1,int4 param_2) { int1 uVar1; bitmap_lock(param_1); uVar1 = bitmap_fast_test_and_set(param_1,param_2); bitmap_unlock(param_1); return uVar1; }
45,062
Catch::XmlEncode::encodeTo(std::ostream&) const
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.hpp
constexpr auto size() const noexcept -> size_type { return m_size; }
O3
cpp
Catch::XmlEncode::encodeTo(std::ostream&) const: movq 0x8(%rdi), %rcx testq %rcx, %rcx je 0x6420b pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 xorl %r12d, %r12d leaq 0x79f24(%rip), %r13 # 0xddee0 leaq 0x4(%rsp), %rbp leaq 0x79f0d(%rip), %r15 # 0xdded5 movq (%r14), %rax movb (%rax,%r12), %dl addq %r12, %rax movzbl %dl, %esi cmpl $0x3b, %esi jg 0x63ff4 cmpl $0x22, %esi je 0x64038 cmpl $0x26, %esi jne 0x64012 movl $0x5, %edx movq %rbx, %rdi movq %r15, %rsi jmp 0x64093 cmpl $0x3e, %esi je 0x6404c cmpl $0x3c, %esi jne 0x64012 movl $0x4, %edx movq %rbx, %rdi leaq 0x79ec3(%rip), %rsi # 0xdded0 jmp 0x64093 cmpb $0x9, %dl jb 0x6402e leal -0xe(%rdx), %edi cmpb $0x12, %dil setae %dil cmpb $0x7f, %dl setne %r8b testb %dil, %r8b jne 0x640ad movq %rbx, %rdi callq 0x6420c jmp 0x64098 cmpl $0x1, 0x10(%r14) jne 0x64083 movl $0x6, %edx movq %rbx, %rdi movq %r13, %rsi jmp 0x64093 cmpq $0x3, %r12 jb 0x6406f cmpb $0x5d, -0x1(%rax) jne 0x6406f cmpb $0x5d, -0x2(%rax) jne 0x6406f movl $0x4, %edx movq %rbx, %rdi leaq 0x79e6e(%rip), %rsi # 0xddedb jmp 0x64093 movb $0x3e, 0x5(%rsp) movl $0x1, %edx movq %rbx, %rdi leaq 0x5(%rsp), %rsi jmp 0x64093 movb $0x22, 0x4(%rsp) movl $0x1, %edx movq %rbx, %rdi movq %rbp, %rsi callq 0x17be0 incq %r12 movq 0x8(%r14), %rcx cmpq %rcx, %r12 jb 0x63fc8 jmp 0x641fd cmpb $0x7e, %dl ja 0x640c5 movb %dl, 0x6(%rsp) movl $0x1, %edx movq %rbx, %rdi leaq 0x6(%rsp), %rsi jmp 0x64093 addb $0x8, %dl cmpb $-0x39, %dl jbe 0x6402e movl %esi, %edx andl $-0x20, %edx cmpl $0xc0, %edx jne 0x640f9 leaq 0x1(%r12), %rdx cmpq %rcx, %rdx jae 0x64194 movl $0x1f, %ecx movl $0x2, %r15d jmp 0x6412e movl %esi, %edx andl $-0x10, %edx xorl %r15d, %r15d cmpl $0xe0, %edx setne %r15b leaq (%r12,%r15), %rdi addq $0x2, %rdi cmpq %rcx, %rdi jae 0x64194 addq $0x3, %r15 xorl %ecx, %ecx cmpl $0xe0, %edx sete %cl leal 0x7(,%rcx,8), %ecx andl %esi, %ecx movb $0x1, %dil movl $0x1, %r8d movl %ecx, %edx movzbl (%rax,%r8), %ecx movl %ecx, %r9d andl $-0x40, %r9d cmpl $0x80, %r9d sete %r9b andb %r9b, %dil shll $0x6, %edx andl $0x3f, %ecx orl %edx, %ecx incq %r8 cmpq %r8, %r15 jne 0x64139 cmpl $0x7f, %edx seta %al testb %al, %dil je 0x6417e cmpl $0x3, %r15d jb 0x641a8 cmpl $0x800, %edx # imm = 0x800 jae 0x641a8 movq %rbx, %rdi callq 0x6420c leaq 0x79d53(%rip), %r13 # 0xddee0 leaq 0x4(%rsp), %rbp jmp 0x6419c movq %rbx, %rdi callq 0x6420c leaq 0x79d32(%rip), %r15 # 0xdded5 jmp 0x64098 addl $0xfffff7ff, %ecx # imm = 0xFFFFF7FF cmpl $0xf7ff, %ecx # imm = 0xF7FF setb %al cmpl $0x4, %r15d setae %cl testb %al, %cl jne 0x6417e movq %r12, %r13 movq %r15, %rbp cmpl $0x10ffff, %edx # imm = 0x10FFFF ja 0x6417e movq (%r14), %rax movb (%rax,%r13), %al movb %al, 0x7(%rsp) movl $0x1, %edx movq %rbx, %rdi leaq 0x7(%rsp), %rsi callq 0x17be0 incq %r13 decq %rbp jne 0x641d0 addq %r15, %r12 decq %r12 jmp 0x64186 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZNK5Catch9XmlEncode8encodeToERSo: mov rcx, [rdi+8] test rcx, rcx jz locret_6420B push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r14, rdi xor r12d, r12d lea r13, aQuot; "&quot;" lea rbp, [rsp+38h+var_34] lea r15, aAmp; "&amp;" loc_63FC8: mov rax, [r14] mov dl, [rax+r12]; unsigned __int8 add rax, r12 movzx esi, dl; std::ostream * cmp esi, 3Bh ; ';' jg short loc_63FF4 cmp esi, 22h ; '"' jz short loc_64038 cmp esi, 26h ; '&' jnz short loc_64012 mov edx, 5 mov rdi, rbx mov rsi, r15 jmp loc_64093 loc_63FF4: cmp esi, 3Eh ; '>' jz short loc_6404C cmp esi, 3Ch ; '<' jnz short loc_64012 mov edx, 4 mov rdi, rbx lea rsi, aLt; "&lt;" jmp loc_64093 loc_64012: cmp dl, 9 jb short loc_6402E lea edi, [rdx-0Eh] cmp dil, 12h setnb dil cmp dl, 7Fh setnz r8b test r8b, dil jnz short loc_640AD loc_6402E: mov rdi, rbx; this call _ZN5Catch12_GLOBAL__N_113hexEscapeCharERSoh; Catch::`anonymous namespace'::hexEscapeChar(std::ostream &,uchar) jmp short loc_64098 loc_64038: cmp dword ptr [r14+10h], 1 jnz short loc_64083 mov edx, 6 mov rdi, rbx mov rsi, r13 jmp short loc_64093 loc_6404C: cmp r12, 3 jb short loc_6406F cmp byte ptr [rax-1], 5Dh ; ']' jnz short loc_6406F cmp byte ptr [rax-2], 5Dh ; ']' jnz short loc_6406F mov edx, 4 mov rdi, rbx lea rsi, aGt; "&gt;" jmp short loc_64093 loc_6406F: mov [rsp+38h+var_33], 3Eh ; '>' mov edx, 1 mov rdi, rbx lea rsi, [rsp+38h+var_33] jmp short loc_64093 loc_64083: mov [rsp+38h+var_34], 22h ; '"' mov edx, 1 mov rdi, rbx mov rsi, rbp loc_64093: call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_64098: inc r12 mov rcx, [r14+8] cmp r12, rcx jb loc_63FC8 jmp loc_641FD loc_640AD: cmp dl, 7Eh ; '~' ja short loc_640C5 mov [rsp+38h+var_32], dl mov edx, 1 mov rdi, rbx lea rsi, [rsp+38h+var_32] jmp short loc_64093 loc_640C5: add dl, 8 cmp dl, 0C7h jbe loc_6402E mov edx, esi and edx, 0FFFFFFE0h cmp edx, 0C0h jnz short loc_640F9 lea rdx, [r12+1]; unsigned __int8 cmp rdx, rcx jnb loc_64194 mov ecx, 1Fh mov r15d, 2 jmp short loc_6412E loc_640F9: mov edx, esi and edx, 0FFFFFFF0h xor r15d, r15d cmp edx, 0E0h setnz r15b lea rdi, [r12+r15] add rdi, 2 cmp rdi, rcx jnb short loc_64194 add r15, 3 xor ecx, ecx cmp edx, 0E0h setz cl lea ecx, ds:7[rcx*8] loc_6412E: and ecx, esi mov dil, 1 mov r8d, 1 loc_64139: mov edx, ecx movzx ecx, byte ptr [rax+r8] mov r9d, ecx and r9d, 0FFFFFFC0h cmp r9d, 80h setz r9b and dil, r9b shl edx, 6; unsigned __int8 and ecx, 3Fh or ecx, edx inc r8 cmp r15, r8 jnz short loc_64139 cmp edx, 7Fh setnbe al test dil, al jz short loc_6417E cmp r15d, 3 jb short loc_641A8 cmp edx, 800h jnb short loc_641A8 loc_6417E: mov rdi, rbx; this call _ZN5Catch12_GLOBAL__N_113hexEscapeCharERSoh; Catch::`anonymous namespace'::hexEscapeChar(std::ostream &,uchar) loc_64186: lea r13, aQuot; "&quot;" lea rbp, [rsp+38h+var_34] jmp short loc_6419C loc_64194: mov rdi, rbx; this call _ZN5Catch12_GLOBAL__N_113hexEscapeCharERSoh; Catch::`anonymous namespace'::hexEscapeChar(std::ostream &,uchar) loc_6419C: lea r15, aAmp; "&amp;" jmp loc_64098 loc_641A8: add ecx, 0FFFFF7FFh cmp ecx, 0F7FFh setb al cmp r15d, 4 setnb cl test cl, al jnz short loc_6417E mov r13, r12 mov rbp, r15 cmp edx, offset unk_10FFFF ja short loc_6417E loc_641D0: mov rax, [r14] mov al, [rax+r13] mov [rsp+38h+var_31], al mov edx, 1 mov rdi, rbx lea rsi, [rsp+38h+var_31] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) inc r13 dec rbp jnz short loc_641D0 add r12, r15 dec r12 jmp short loc_64186 loc_641FD: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp locret_6420B: retn
long long Catch::XmlEncode::encodeTo(Catch::XmlEncode *this, std::ostream *a2) { long long result; // rax unsigned long long v3; // rcx unsigned long long i; // r12 unsigned __int8 v7; // dl unsigned long long v8; // rax std::ostream *v9; // rsi long long v10; // rdx std::ostream *v11; // rdi const char *v12; // rsi int v13; // edx int v14; // ecx long long v15; // r15 _BOOL8 v16; // r15 int v17; // ecx char v18; // di long long v19; // r8 unsigned int v20; // edx unsigned long long v21; // r13 long long v22; // rbp _DWORD v23[13]; // [rsp+0h] [rbp-34h] BYREF v3 = *((_QWORD *)this + 1); if ( v3 ) { v23[0] = HIDWORD(result); for ( i = 0LL; i < v3; ++i ) { v7 = *(_BYTE *)(*(_QWORD *)this + i); v8 = i + *(_QWORD *)this; v9 = (std::ostream *)v7; if ( v7 > 0x3Bu ) { if ( v7 == 62 ) { if ( i >= 3 && *(_BYTE *)(v8 - 1) == 93 && *(_BYTE *)(v8 - 2) == 93 ) { v10 = 4LL; v11 = a2; v12 = "&gt;"; } else { BYTE1(v23[0]) = 62; v10 = 1LL; v11 = a2; v12 = (char *)v23 + 1; } goto LABEL_21; } if ( v7 == 60 ) { v10 = 4LL; v11 = a2; v12 = "&lt;"; goto LABEL_21; } } else { if ( v7 == 34 ) { if ( *((_DWORD *)this + 4) == 1 ) { v10 = 6LL; v11 = a2; v12 = "&quot;"; } else { LOBYTE(v23[0]) = 34; v10 = 1LL; v11 = a2; v12 = (const char *)v23; } goto LABEL_21; } if ( v7 == 38 ) { v10 = 5LL; v11 = a2; v12 = "&amp;"; LABEL_21: result = std::__ostream_insert<char,std::char_traits<char>>(v11, v12, v10); goto LABEL_22; } } if ( v7 < 9u || (unsigned __int8)(v7 - 14) < 0x12u || v7 == 127 ) goto LABEL_12; if ( v7 <= 0x7Eu ) { BYTE2(v23[0]) = *(_BYTE *)(*(_QWORD *)this + i); v10 = 1LL; v11 = a2; v12 = (char *)v23 + 2; goto LABEL_21; } v7 += 8; if ( v7 > 0xC7u ) { if ( ((unsigned int)v9 & 0xFFFFFFE0) == 0xC0 ) { LOBYTE(v13) = i + 1; if ( i + 1 < v3 ) { v14 = 31; v15 = 2LL; goto LABEL_32; } } else { v13 = (unsigned __int8)v9 & 0xF0; v16 = ((unsigned int)v9 & 0xFFFFFFF0) != 224; if ( i + v16 + 2 < v3 ) { v15 = v16 + 3; v14 = 8 * (v13 == 224) + 7; LABEL_32: v17 = (unsigned int)v9 & v14; v18 = 1; v19 = 1LL; do { v18 &= (*(_BYTE *)(v8 + v19) & 0xC0) == 128; v20 = v17 << 6; v17 = (v17 << 6) | *(_BYTE *)(v8 + v19++) & 0x3F; } while ( v15 != v19 ); if ( ((v20 > 0x7F) & (unsigned __int8)v18) == 0 || (unsigned int)v15 >= 3 && v20 < 0x800 || (unsigned int)(v17 - 2049) < 0xF7FF && (unsigned int)v15 >= 4 || (v21 = i, v22 = v15, v20 > (unsigned int)&unk_10FFFF) ) { result = Catch::`anonymous namespace'::hexEscapeChar(a2, v9, v20); } else { do { HIBYTE(v23[0]) = *(_BYTE *)(*(_QWORD *)this + v21); result = std::__ostream_insert<char,std::char_traits<char>>(a2, (char *)v23 + 3, 1LL); ++v21; --v22; } while ( v22 ); i = v15 + i - 1; } goto LABEL_22; } } result = Catch::`anonymous namespace'::hexEscapeChar(a2, v9, v13); } else { LABEL_12: result = Catch::`anonymous namespace'::hexEscapeChar(a2, v9, v7); } LABEL_22: v3 = *((_QWORD *)this + 1); } } return result; }
encodeTo: MOV RCX,qword ptr [RDI + 0x8] TEST RCX,RCX JZ 0x0016420b PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI XOR R12D,R12D LEA R13,[0x1ddee0] LEA RBP,[RSP + 0x4] LEA R15,[0x1dded5] LAB_00163fc8: MOV RAX,qword ptr [R14] MOV DL,byte ptr [RAX + R12*0x1] ADD RAX,R12 MOVZX ESI,DL CMP ESI,0x3b JG 0x00163ff4 CMP ESI,0x22 JZ 0x00164038 CMP ESI,0x26 JNZ 0x00164012 MOV EDX,0x5 MOV RDI,RBX MOV RSI,R15 JMP 0x00164093 LAB_00163ff4: CMP ESI,0x3e JZ 0x0016404c CMP ESI,0x3c JNZ 0x00164012 MOV EDX,0x4 MOV RDI,RBX LEA RSI,[0x1dded0] JMP 0x00164093 LAB_00164012: CMP DL,0x9 JC 0x0016402e LEA EDI,[RDX + -0xe] CMP DIL,0x12 SETNC DIL CMP DL,0x7f SETNZ R8B TEST R8B,DIL JNZ 0x001640ad LAB_0016402e: MOV RDI,RBX CALL 0x0016420c JMP 0x00164098 LAB_00164038: CMP dword ptr [R14 + 0x10],0x1 JNZ 0x00164083 MOV EDX,0x6 MOV RDI,RBX MOV RSI,R13 JMP 0x00164093 LAB_0016404c: CMP R12,0x3 JC 0x0016406f CMP byte ptr [RAX + -0x1],0x5d JNZ 0x0016406f CMP byte ptr [RAX + -0x2],0x5d JNZ 0x0016406f MOV EDX,0x4 MOV RDI,RBX LEA RSI,[0x1ddedb] JMP 0x00164093 LAB_0016406f: MOV byte ptr [RSP + 0x5],0x3e MOV EDX,0x1 MOV RDI,RBX LEA RSI,[RSP + 0x5] JMP 0x00164093 LAB_00164083: MOV byte ptr [RSP + 0x4],0x22 MOV EDX,0x1 MOV RDI,RBX MOV RSI,RBP LAB_00164093: CALL 0x00117be0 LAB_00164098: INC R12 MOV RCX,qword ptr [R14 + 0x8] CMP R12,RCX JC 0x00163fc8 JMP 0x001641fd LAB_001640ad: CMP DL,0x7e JA 0x001640c5 MOV byte ptr [RSP + 0x6],DL MOV EDX,0x1 MOV RDI,RBX LEA RSI,[RSP + 0x6] JMP 0x00164093 LAB_001640c5: ADD DL,0x8 CMP DL,0xc7 JBE 0x0016402e MOV EDX,ESI AND EDX,0xffffffe0 CMP EDX,0xc0 JNZ 0x001640f9 LEA RDX,[R12 + 0x1] CMP RDX,RCX JNC 0x00164194 MOV ECX,0x1f MOV R15D,0x2 JMP 0x0016412e LAB_001640f9: MOV EDX,ESI AND EDX,0xfffffff0 XOR R15D,R15D CMP EDX,0xe0 SETNZ R15B LEA RDI,[R12 + R15*0x1] ADD RDI,0x2 CMP RDI,RCX JNC 0x00164194 ADD R15,0x3 XOR ECX,ECX CMP EDX,0xe0 SETZ CL LEA ECX,[0x7 + RCX*0x8] LAB_0016412e: AND ECX,ESI MOV DIL,0x1 MOV R8D,0x1 LAB_00164139: MOV EDX,ECX MOVZX ECX,byte ptr [RAX + R8*0x1] MOV R9D,ECX AND R9D,0xffffffc0 CMP R9D,0x80 SETZ R9B AND DIL,R9B SHL EDX,0x6 AND ECX,0x3f OR ECX,EDX INC R8 CMP R15,R8 JNZ 0x00164139 CMP EDX,0x7f SETA AL TEST DIL,AL JZ 0x0016417e CMP R15D,0x3 JC 0x001641a8 CMP EDX,0x800 JNC 0x001641a8 LAB_0016417e: MOV RDI,RBX CALL 0x0016420c LAB_00164186: LEA R13,[0x1ddee0] LEA RBP,[RSP + 0x4] JMP 0x0016419c LAB_00164194: MOV RDI,RBX CALL 0x0016420c LAB_0016419c: LEA R15,[0x1dded5] JMP 0x00164098 LAB_001641a8: ADD ECX,0xfffff7ff CMP ECX,0xf7ff SETC AL CMP R15D,0x4 SETNC CL TEST CL,AL JNZ 0x0016417e MOV R13,R12 MOV RBP,R15 CMP EDX,0x10ffff JA 0x0016417e LAB_001641d0: MOV RAX,qword ptr [R14] MOV AL,byte ptr [RAX + R13*0x1] MOV byte ptr [RSP + 0x7],AL MOV EDX,0x1 MOV RDI,RBX LEA RSI,[RSP + 0x7] CALL 0x00117be0 INC R13 DEC RBP JNZ 0x001641d0 ADD R12,R15 DEC R12 JMP 0x00164186 LAB_001641fd: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP LAB_0016420b: RET
/* Catch::XmlEncode::encodeTo(std::ostream&) const */ void __thiscall Catch::XmlEncode::encodeTo(XmlEncode *this,ostream *param_1) { byte bVar1; byte bVar2; int8 in_RAX; long lVar3; uint uVar4; uint uVar5; char *pcVar6; long lVar7; ulong uVar8; ulong uVar9; long lVar10; ulong uVar11; int8 uStack_38; uVar9 = *(ulong *)(this + 8); if (uVar9 != 0) { uVar8 = 0; uStack_38 = in_RAX; do { pcVar6 = (char *)((long)&uStack_38 + 4); bVar1 = *(byte *)(*(long *)this + uVar8); lVar3 = *(long *)this + uVar8; if (bVar1 < 0x3c) { if (bVar1 == 0x22) { if (*(int *)(this + 0x10) == 1) { lVar3 = 6; pcVar6 = "&quot;"; } else { uStack_38._0_5_ = CONCAT14(0x22,(int4)uStack_38); lVar3 = 1; } goto LAB_00164093; } if (bVar1 == 0x26) { lVar3 = 5; pcVar6 = "&amp;"; goto LAB_00164093; } LAB_00164012: if ((bVar1 < 9) || (bVar1 == 0x7f || (byte)(bVar1 - 0xe) < 0x12)) { LAB_0016402e: (anonymous_namespace)::hexEscapeChar(param_1,bVar1); } else { if (bVar1 < 0x7f) { uStack_38._0_7_ = CONCAT16(bVar1,(int6)uStack_38); lVar3 = 1; pcVar6 = (char *)((long)&uStack_38 + 6); goto LAB_00164093; } if ((byte)(bVar1 + 8) < 200) goto LAB_0016402e; if ((bVar1 & 0xe0) == 0xc0) { if (uVar8 + 1 < uVar9) { uVar4 = 0x1f; lVar10 = 2; LAB_0016412e: uVar4 = uVar4 & bVar1; bVar2 = 1; lVar7 = 1; do { bVar2 = bVar2 & (*(byte *)(lVar3 + lVar7) & 0xffffffc0) == 0x80; uVar5 = uVar4 << 6; uVar4 = *(byte *)(lVar3 + lVar7) & 0x3f | uVar5; lVar7 = lVar7 + 1; } while (lVar10 != lVar7); if (((((bool)(bVar2 & 0x7f < uVar5)) && (((uint)lVar10 < 3 || (0x7ff < uVar5)))) && ((uint)lVar10 < 4 || 0xf7fe < uVar4 - 0x801)) && (lVar3 = lVar10, uVar9 = uVar8, uVar5 < 0x110000)) { do { uStack_38 = CONCAT17(*(int1 *)(*(long *)this + uVar9),(int7)uStack_38) ; std::__ostream_insert<char,std::char_traits<char>> (param_1,(char *)((long)&uStack_38 + 7),1); uVar9 = uVar9 + 1; lVar3 = lVar3 + -1; } while (lVar3 != 0); uVar8 = (uVar8 + lVar10) - 1; } else { (anonymous_namespace)::hexEscapeChar(param_1,bVar1); } goto LAB_00164098; } } else { uVar4 = bVar1 & 0xfffffff0; uVar11 = (ulong)(uVar4 != 0xe0); if (uVar8 + uVar11 + 2 < uVar9) { lVar10 = uVar11 + 3; uVar4 = (uint)(uVar4 == 0xe0) * 8 + 7; goto LAB_0016412e; } } (anonymous_namespace)::hexEscapeChar(param_1,bVar1); } } else { if (bVar1 == 0x3e) { if (((uVar8 < 3) || (*(char *)(lVar3 + -1) != ']')) || (*(char *)(lVar3 + -2) != ']')) { uStack_38._0_6_ = CONCAT15(0x3e,(int5)uStack_38); lVar3 = 1; pcVar6 = (char *)((long)&uStack_38 + 5); } else { lVar3 = 4; pcVar6 = "&gt;"; } } else { if (bVar1 != 0x3c) goto LAB_00164012; lVar3 = 4; pcVar6 = "&lt;"; } LAB_00164093: std::__ostream_insert<char,std::char_traits<char>>(param_1,pcVar6,lVar3); } LAB_00164098: uVar8 = uVar8 + 1; uVar9 = *(ulong *)(this + 8); } while (uVar8 < uVar9); } return; }
45,063
psi_mutex_lock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_mutex_lock(mysql_mutex_t *that, const char *file, uint line) { PSI_mutex_locker_state state; PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait) (&state, that->m_psi, PSI_MUTEX_LOCK, file, line); # ifdef SAFE_MUTEX int result= safe_mutex_lock(&that->m_mutex, FALSE, file, line); # else int result= pthread_mutex_lock(&that->m_mutex); # endif if (locker) PSI_MUTEX_CALL(end_mutex_wait)(locker, result); return result; }
O0
c
psi_mutex_lock: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) leaq 0x23d22e(%rip), %rax # 0x301fb8 movq (%rax), %rax movq 0x190(%rax), %rax movq -0x8(%rbp), %rcx movq 0x40(%rcx), %rsi movq -0x10(%rbp), %rcx movl -0x14(%rbp), %r8d leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *%rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rdi callq 0x602d0 movl %eax, -0x54(%rbp) cmpq $0x0, -0x50(%rbp) je 0xc4ddd leaq 0x23d1ee(%rip), %rax # 0x301fb8 movq (%rax), %rax movq 0x198(%rax), %rax movq -0x50(%rbp), %rdi movl -0x54(%rbp), %esi callq *%rax movl -0x54(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
psi_mutex_lock: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx lea rax, PSI_server mov rax, [rax] mov rax, [rax+190h] mov rcx, [rbp+var_8] mov rsi, [rcx+40h] mov rcx, [rbp+var_10] mov r8d, [rbp+var_14] lea rdi, [rbp+var_48] xor edx, edx call rax mov [rbp+var_50], rax mov rdi, [rbp+var_8] call _pthread_mutex_lock mov [rbp+var_54], eax cmp [rbp+var_50], 0 jz short loc_C4DDD lea rax, PSI_server mov rax, [rax] mov rax, [rax+198h] mov rdi, [rbp+var_50] mov esi, [rbp+var_54] call rax loc_C4DDD: mov eax, [rbp+var_54] add rsp, 60h pop rbp retn
long long psi_mutex_lock(long long a1, long long a2, unsigned int a3) { unsigned int v4; // [rsp+Ch] [rbp-54h] long long v5; // [rsp+10h] [rbp-50h] _BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF unsigned int v7; // [rsp+4Ch] [rbp-14h] long long v8; // [rsp+50h] [rbp-10h] long long v9; // [rsp+58h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server + 50))( v6, *(_QWORD *)(a1 + 64), 0LL, a2, a3); v4 = pthread_mutex_lock(v9); if ( v5 ) (*((void ( **)(long long, _QWORD))PSI_server + 51))(v5, v4); return v4; }
psi_mutex_lock: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LEA RAX,[0x401fb8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x190] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x40] MOV RCX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RBP + -0x14] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL RAX MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x001602d0 MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x001c4ddd LEA RAX,[0x401fb8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x198] MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x54] CALL RAX LAB_001c4ddd: MOV EAX,dword ptr [RBP + -0x54] ADD RSP,0x60 POP RBP RET
int psi_mutex_lock(pthread_mutex_t *param_1,int8 param_2,int4 param_3) { int iVar1; long lVar2; int1 local_50 [52]; int4 local_1c; int8 local_18; pthread_mutex_t *local_10; local_1c = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 400)) (local_50,*(int8 *)((long)param_1 + 0x40),0,param_2,param_3); iVar1 = pthread_mutex_lock(local_10); if (lVar2 != 0) { (**(code **)(PSI_server + 0x198))(lVar2,iVar1); } return iVar1; }
45,064
psi_mutex_lock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_mutex_lock(mysql_mutex_t *that, const char *file, uint line) { PSI_mutex_locker_state state; PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait) (&state, that->m_psi, PSI_MUTEX_LOCK, file, line); # ifdef SAFE_MUTEX int result= safe_mutex_lock(&that->m_mutex, FALSE, file, line); # else int result= pthread_mutex_lock(&that->m_mutex); # endif if (locker) PSI_MUTEX_CALL(end_mutex_wait)(locker, result); return result; }
O3
c
psi_mutex_lock: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %edx, %r8d movq %rsi, %rcx movq %rdi, %r14 leaq 0x384a60(%rip), %r15 # 0x3e5ac8 movq (%r15), %rax movq 0x40(%rdi), %rsi leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *0x190(%rax) movq %rax, %rbx movq %r14, %rdi callq 0x5f2e0 movl %eax, %r14d testq %rbx, %rbx je 0x6109d movq (%r15), %rax movq %rbx, %rdi movl %r14d, %esi callq *0x198(%rax) movl %r14d, %eax addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
psi_mutex_lock: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 38h mov r8d, edx mov rcx, rsi mov r14, rdi lea r15, PSI_server mov rax, [r15] mov rsi, [rdi+40h] lea rdi, [rbp+var_48] xor edx, edx call qword ptr [rax+190h] mov rbx, rax mov rdi, r14 call _pthread_mutex_lock mov r14d, eax test rbx, rbx jz short loc_6109D mov rax, [r15] mov rdi, rbx mov esi, r14d call qword ptr [rax+198h] loc_6109D: mov eax, r14d add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn
long long psi_mutex_lock(long long a1, long long a2, unsigned int a3) { long long v3; // rbx unsigned int v4; // r14d _BYTE v6[72]; // [rsp+8h] [rbp-48h] BYREF v3 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server + 50))( v6, *(_QWORD *)(a1 + 64), 0LL, a2, a3); v4 = pthread_mutex_lock(a1); if ( v3 ) (*((void ( **)(long long, _QWORD))PSI_server + 51))(v3, v4); return v4; }
psi_mutex_lock: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV R8D,EDX MOV RCX,RSI MOV R14,RDI LEA R15,[0x4e5ac8] MOV RAX,qword ptr [R15] MOV RSI,qword ptr [RDI + 0x40] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL qword ptr [RAX + 0x190] MOV RBX,RAX MOV RDI,R14 CALL 0x0015f2e0 MOV R14D,EAX TEST RBX,RBX JZ 0x0016109d MOV RAX,qword ptr [R15] MOV RDI,RBX MOV ESI,R14D CALL qword ptr [RAX + 0x198] LAB_0016109d: MOV EAX,R14D ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET
int psi_mutex_lock(pthread_mutex_t *param_1,int8 param_2,int4 param_3) { int iVar1; long lVar2; int1 local_50 [48]; lVar2 = (**(code **)(PSI_server + 400)) (local_50,*(int8 *)((long)param_1 + 0x40),0,param_2,param_3); iVar1 = pthread_mutex_lock(param_1); if (lVar2 != 0) { (**(code **)(PSI_server + 0x198))(lVar2,iVar1); } return iVar1; }
45,065
TIME_from_longlong_datetime_packed(st_mysql_time*, long long)
eloqsql/sql/compat56.cc
void TIME_from_longlong_datetime_packed(MYSQL_TIME *ltime, longlong tmp) { longlong ymd, hms; longlong ymdhms, ym; DBUG_ASSERT(tmp != LONGLONG_MIN); if ((ltime->neg= (tmp < 0))) tmp= -tmp; ltime->second_part= MY_PACKED_TIME_GET_FRAC_PART(tmp); ymdhms= MY_PACKED_TIME_GET_INT_PART(tmp); ymd= ymdhms >> 17; ym= ymd >> 5; hms= ymdhms % (1 << 17); ltime->day= ymd % (1 << 5); ltime->month= ym % 13; ltime->year= (uint) (ym / 13); ltime->second= hms % (1 << 6); ltime->minute= (hms >> 6) % (1 << 6); ltime->hour= (uint) (hms >> 12); ltime->time_type= MYSQL_TIMESTAMP_DATETIME; }
O0
cpp
TIME_from_longlong_datetime_packed(st_mysql_time*, long long): pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0x625ee cmpq $0x0, -0x10(%rbp) setl %al movb %al, %dl andb $0x1, %dl movq -0x8(%rbp), %rcx movb %dl, 0x20(%rcx) testb $0x1, %al jne 0x62608 jmp 0x62612 xorl %eax, %eax subq -0x10(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movl $0x1000000, %ecx # imm = 0x1000000 cqto idivq %rcx movq -0x8(%rbp), %rax movq %rdx, 0x18(%rax) movq -0x10(%rbp), %rax sarq $0x18, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax sarq $0x11, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax sarq $0x5, %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movl $0x20000, %ecx # imm = 0x20000 cqto idivq %rcx movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax movl $0x20, %ecx cqto idivq %rcx movl %edx, %ecx movq -0x8(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x30(%rbp), %rax movl $0xd, %ecx cqto idivq %rcx movl %edx, %ecx movq -0x8(%rbp), %rax movl %ecx, 0x4(%rax) movq -0x30(%rbp), %rax movl $0xd, %ecx cqto idivq %rcx movl %eax, %ecx movq -0x8(%rbp), %rax movl %ecx, (%rax) movq -0x20(%rbp), %rax movl $0x40, %ecx cqto idivq %rcx movl %edx, %ecx movq -0x8(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x20(%rbp), %rax sarq $0x6, %rax movl $0x40, %ecx cqto idivq %rcx movl %edx, %ecx movq -0x8(%rbp), %rax movl %ecx, 0x10(%rax) movq -0x20(%rbp), %rax sarq $0xc, %rax movl %eax, %ecx movq -0x8(%rbp), %rax movl %ecx, 0xc(%rax) movq -0x8(%rbp), %rax movl $0x1, 0x24(%rax) popq %rbp retq nopw %cs:(%rax,%rax)
_Z34TIME_from_longlong_datetime_packedP13st_mysql_timex: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_625EE: cmp [rbp+var_10], 0 setl al mov dl, al and dl, 1 mov rcx, [rbp+var_8] mov [rcx+20h], dl test al, 1 jnz short loc_62608 jmp short loc_62612 loc_62608: xor eax, eax sub rax, [rbp+var_10] mov [rbp+var_10], rax loc_62612: mov rax, [rbp+var_10] mov ecx, 1000000h cqo idiv rcx mov rax, [rbp+var_8] mov [rax+18h], rdx mov rax, [rbp+var_10] sar rax, 18h mov [rbp+var_28], rax mov rax, [rbp+var_28] sar rax, 11h mov [rbp+var_18], rax mov rax, [rbp+var_18] sar rax, 5 mov [rbp+var_30], rax mov rax, [rbp+var_28] mov ecx, 20000h cqo idiv rcx mov [rbp+var_20], rdx mov rax, [rbp+var_18] mov ecx, 20h ; ' ' cqo idiv rcx mov ecx, edx mov rax, [rbp+var_8] mov [rax+8], ecx mov rax, [rbp+var_30] mov ecx, 0Dh cqo idiv rcx mov ecx, edx mov rax, [rbp+var_8] mov [rax+4], ecx mov rax, [rbp+var_30] mov ecx, 0Dh cqo idiv rcx mov ecx, eax mov rax, [rbp+var_8] mov [rax], ecx mov rax, [rbp+var_20] mov ecx, 40h ; '@' cqo idiv rcx mov ecx, edx mov rax, [rbp+var_8] mov [rax+14h], ecx mov rax, [rbp+var_20] sar rax, 6 mov ecx, 40h ; '@' cqo idiv rcx mov ecx, edx mov rax, [rbp+var_8] mov [rax+10h], ecx mov rax, [rbp+var_20] sar rax, 0Ch mov ecx, eax mov rax, [rbp+var_8] mov [rax+0Ch], ecx mov rax, [rbp+var_8] mov dword ptr [rax+24h], 1 pop rbp retn
long long TIME_from_longlong_datetime_packed(long long a1, long long a2) { long long result; // rax long long v3; // [rsp+10h] [rbp-20h] long long v4; // [rsp+20h] [rbp-10h] v4 = a2; *(_BYTE *)(a1 + 32) = a2 < 0; if ( a2 < 0 ) v4 = -a2; *(_QWORD *)(a1 + 24) = v4 % 0x1000000; v3 = (v4 >> 24) % 0x20000; *(_DWORD *)(a1 + 8) = (v4 >> 41) % 32; *(_DWORD *)(a1 + 4) = (v4 >> 46) % 13; *(_DWORD *)a1 = (v4 >> 46) / 13; *(_DWORD *)(a1 + 20) = v3 % 64; *(_DWORD *)(a1 + 16) = (v3 >> 6) % 64; *(_DWORD *)(a1 + 12) = v3 >> 12; result = a1; *(_DWORD *)(a1 + 36) = 1; return result; }
TIME_from_longlong_datetime_packed: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x001625ee LAB_001625ee: CMP qword ptr [RBP + -0x10],0x0 SETL AL MOV DL,AL AND DL,0x1 MOV RCX,qword ptr [RBP + -0x8] MOV byte ptr [RCX + 0x20],DL TEST AL,0x1 JNZ 0x00162608 JMP 0x00162612 LAB_00162608: XOR EAX,EAX SUB RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x10],RAX LAB_00162612: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,0x1000000 CQO IDIV RCX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x18],RDX MOV RAX,qword ptr [RBP + -0x10] SAR RAX,0x18 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] SAR RAX,0x11 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] SAR RAX,0x5 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] MOV ECX,0x20000 CQO IDIV RCX MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,0x20 CQO IDIV RCX MOV ECX,EDX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x30] MOV ECX,0xd CQO IDIV RCX MOV ECX,EDX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x4],ECX MOV RAX,qword ptr [RBP + -0x30] MOV ECX,0xd CQO IDIV RCX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x20] MOV ECX,0x40 CQO IDIV RCX MOV ECX,EDX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x14],ECX MOV RAX,qword ptr [RBP + -0x20] SAR RAX,0x6 MOV ECX,0x40 CQO IDIV RCX MOV ECX,EDX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x20] SAR RAX,0xc MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xc],ECX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x24],0x1 POP RBP RET
/* TIME_from_longlong_datetime_packed(st_mysql_time*, long long) */ void TIME_from_longlong_datetime_packed(st_mysql_time *param_1,longlong param_2) { long lVar1; long local_18; param_1[0x20] = (st_mysql_time)(param_2 < 0); local_18 = param_2; if (param_2 < 0) { local_18 = -param_2; } *(long *)(param_1 + 0x18) = local_18 % 0x1000000; lVar1 = (local_18 >> 0x18) % 0x20000; *(int *)(param_1 + 8) = (int)((local_18 >> 0x29) % 0x20); *(int *)(param_1 + 4) = (int)((local_18 >> 0x2e) % 0xd); *(int *)param_1 = (int)((local_18 >> 0x2e) / 0xd); *(int *)(param_1 + 0x14) = (int)(lVar1 % 0x40); *(int *)(param_1 + 0x10) = (int)((lVar1 >> 6) % 0x40); *(int *)(param_1 + 0xc) = (int)(lVar1 >> 0xc); *(int4 *)(param_1 + 0x24) = 1; return; }
45,066
default_reporter
eloqsql/mysys/my_getopt.c
static void default_reporter(enum loglevel level, const char *format, ...) { va_list args; DBUG_ENTER("default_reporter"); va_start(args, format); if (level == WARNING_LEVEL) fprintf(stderr, "%s", "Warning: "); else if (level == INFORMATION_LEVEL) fprintf(stderr, "%s", "Info: "); vfprintf(stderr, format, args); va_end(args); fputc('\n', stderr); fflush(stderr); DBUG_VOID_RETURN; }
O0
c
default_reporter: pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp testb %al, %al je 0x83a78 movaps %xmm0, -0xb0(%rbp) movaps %xmm1, -0xa0(%rbp) movaps %xmm2, -0x90(%rbp) movaps %xmm3, -0x80(%rbp) movaps %xmm4, -0x70(%rbp) movaps %xmm5, -0x60(%rbp) movaps %xmm6, -0x50(%rbp) movaps %xmm7, -0x40(%rbp) movq %r9, -0xb8(%rbp) movq %r8, -0xc0(%rbp) movq %rcx, -0xc8(%rbp) movq %rdx, -0xd0(%rbp) movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) leaq -0x30(%rbp), %rax leaq -0xe0(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x10, (%rax) cmpl $0x1, -0x4(%rbp) jne 0x83ae6 movq 0x1c0514(%rip), %rax # 0x243fe0 movq (%rax), %rdi leaq 0x65324(%rip), %rsi # 0xe8dfa leaq 0x623be(%rip), %rdx # 0xe5e9b movb $0x0, %al callq 0x29570 jmp 0x83b0d cmpl $0x2, -0x4(%rbp) jne 0x83b0b movq 0x1c04ed(%rip), %rax # 0x243fe0 movq (%rax), %rdi leaq 0x652fd(%rip), %rsi # 0xe8dfa leaq 0x623a1(%rip), %rdx # 0xe5ea5 movb $0x0, %al callq 0x29570 jmp 0x83b0d movq 0x1c04cc(%rip), %rax # 0x243fe0 movq (%rax), %rdi movq -0x10(%rbp), %rsi leaq -0x30(%rbp), %rdx callq 0x29530 leaq -0x30(%rbp), %rax movq 0x1c04b1(%rip), %rax # 0x243fe0 movq (%rax), %rsi movl $0xa, %edi callq 0x294f0 movq 0x1c049d(%rip), %rax # 0x243fe0 movq (%rax), %rdi callq 0x29470 jmp 0x83b4d addq $0xe0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
default_reporter_0: push rbp mov rbp, rsp sub rsp, 0E0h test al, al jz short loc_83A78 movaps [rbp+var_B0], xmm0 movaps [rbp+var_A0], xmm1 movaps [rbp+var_90], xmm2 movaps [rbp+var_80], xmm3 movaps [rbp+var_70], xmm4 movaps [rbp+var_60], xmm5 movaps [rbp+var_50], xmm6 movaps [rbp+var_40], xmm7 loc_83A78: mov [rbp+var_B8], r9 mov [rbp+var_C0], r8 mov [rbp+var_C8], rcx mov [rbp+var_D0], rdx mov [rbp+var_4], edi mov [rbp+var_10], rsi lea rax, [rbp+var_30] lea rcx, [rbp+var_E0] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 10h cmp [rbp+var_4], 1 jnz short loc_83AE6 mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aAtLineDPosDS+13h; "%s" lea rdx, aWarning; "Warning: " mov al, 0 call _fprintf jmp short loc_83B0D loc_83AE6: cmp [rbp+var_4], 2 jnz short loc_83B0B mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aAtLineDPosDS+13h; "%s" lea rdx, aInfo; "Info: " mov al, 0 call _fprintf loc_83B0B: jmp short $+2 loc_83B0D: mov rax, cs:stderr_ptr mov rdi, [rax] mov rsi, [rbp+var_10] lea rdx, [rbp+var_30] call _vfprintf lea rax, [rbp+var_30] mov rax, cs:stderr_ptr mov rsi, [rax] mov edi, 0Ah call _fputc mov rax, cs:stderr_ptr mov rdi, [rax] call _fflush jmp short $+2 loc_83B4D: add rsp, 0E0h pop rbp retn
long long default_reporter_0(int a1, long long a2, ...) { va_list va; // [rsp+B0h] [rbp-30h] BYREF long long v4; // [rsp+D0h] [rbp-10h] int v5; // [rsp+DCh] [rbp-4h] va_start(va, a2); v5 = a1; v4 = a2; if ( a1 == 1 ) { fprintf(stderr, "%s", "Warning: "); } else if ( v5 == 2 ) { fprintf(stderr, "%s", "Info: "); } vfprintf(stderr, v4, va); fputc(10LL, stderr); return fflush(stderr); }
default_reporter: PUSH RBP MOV RBP,RSP SUB RSP,0xe0 TEST AL,AL JZ 0x00183a78 MOVAPS xmmword ptr [RBP + -0xb0],XMM0 MOVAPS xmmword ptr [RBP + -0xa0],XMM1 MOVAPS xmmword ptr [RBP + -0x90],XMM2 MOVAPS xmmword ptr [RBP + -0x80],XMM3 MOVAPS xmmword ptr [RBP + -0x70],XMM4 MOVAPS xmmword ptr [RBP + -0x60],XMM5 MOVAPS xmmword ptr [RBP + -0x50],XMM6 MOVAPS xmmword ptr [RBP + -0x40],XMM7 LAB_00183a78: MOV qword ptr [RBP + -0xb8],R9 MOV qword ptr [RBP + -0xc0],R8 MOV qword ptr [RBP + -0xc8],RCX MOV qword ptr [RBP + -0xd0],RDX MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI LEA RAX,[RBP + -0x30] LEA RCX,[RBP + -0xe0] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x10 CMP dword ptr [RBP + -0x4],0x1 JNZ 0x00183ae6 MOV RAX,qword ptr [0x00343fe0] MOV RDI,qword ptr [RAX] LEA RSI,[0x1e8dfa] LEA RDX,[0x1e5e9b] MOV AL,0x0 CALL 0x00129570 JMP 0x00183b0d LAB_00183ae6: CMP dword ptr [RBP + -0x4],0x2 JNZ 0x00183b0b MOV RAX,qword ptr [0x00343fe0] MOV RDI,qword ptr [RAX] LEA RSI,[0x1e8dfa] LEA RDX,[0x1e5ea5] MOV AL,0x0 CALL 0x00129570 LAB_00183b0b: JMP 0x00183b0d LAB_00183b0d: MOV RAX,qword ptr [0x00343fe0] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[RBP + -0x30] CALL 0x00129530 LEA RAX,[RBP + -0x30] MOV RAX,qword ptr [0x00343fe0] MOV RSI,qword ptr [RAX] MOV EDI,0xa CALL 0x001294f0 MOV RAX,qword ptr [0x00343fe0] MOV RDI,qword ptr [RAX] CALL 0x00129470 JMP 0x00183b4d LAB_00183b4d: ADD RSP,0xe0 POP RBP RET
void default_reporter(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int param_9,char *param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int1 local_e8 [16]; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int4 local_38; int4 local_34; int1 *local_30; int1 *local_28; char *local_18; int local_c; if (in_AL != '\0') { local_b8 = param_1; local_a8 = param_2; local_98 = param_3; local_88 = param_4; local_78 = param_5; local_68 = param_6; local_58 = param_7; local_48 = param_8; } local_28 = local_e8; local_30 = &stack0x00000008; local_34 = 0x30; local_38 = 0x10; local_d8 = param_11; local_d0 = param_12; local_c8 = param_13; local_c0 = param_14; local_18 = param_10; local_c = param_9; if (param_9 == 1) { fprintf(*(FILE **)PTR_stderr_00343fe0,"%s","Warning: "); } else if (param_9 == 2) { fprintf(*(FILE **)PTR_stderr_00343fe0,"%s","Info: "); } vfprintf(*(FILE **)PTR_stderr_00343fe0,local_18,&local_38); fputc(10,*(FILE **)PTR_stderr_00343fe0); fflush(*(FILE **)PTR_stderr_00343fe0); return; }
45,067
my_pwrite
eloqsql/mysys/my_pread.c
size_t my_pwrite(int Filedes, const uchar *Buffer, size_t Count, my_off_t offset, myf MyFlags) { size_t writtenbytes, written; uint errors; DBUG_ENTER("my_pwrite"); DBUG_PRINT("my",("fd: %d Seek: %llu Buffer: %p Count: %lu MyFlags: %lu", Filedes, (ulonglong)offset, Buffer, (ulong)Count, MyFlags)); errors= 0; written= 0; if (!(MyFlags & (MY_WME | MY_FAE | MY_FNABP))) MyFlags|= my_global_flags; for (;;) { #ifdef _WIN32 writtenbytes= my_win_pwrite(Filedes, Buffer, Count,offset); #else writtenbytes= pwrite(Filedes, Buffer, Count, offset); #endif if (writtenbytes == Count) break; my_errno= errno; if (writtenbytes != (size_t) -1) { /* Safegueard */ written+=writtenbytes; Buffer+=writtenbytes; Count-=writtenbytes; offset+=writtenbytes; } DBUG_PRINT("error",("Write only %u bytes", (uint) writtenbytes)); #ifndef NO_BACKGROUND if (my_thread_var->abort) MyFlags&= ~ MY_WAIT_IF_FULL; /* End if aborted by user */ if ((my_errno == ENOSPC || my_errno == EDQUOT) && (MyFlags & MY_WAIT_IF_FULL)) { wait_for_free_space(my_filename(Filedes), errors); errors++; continue; } if ((writtenbytes && writtenbytes != (size_t) -1) || my_errno == EINTR) continue; /* Retry */ #endif /* Don't give a warning if it's ok that we only write part of the data */ if (MyFlags & (MY_NABP | MY_FNABP)) { if (MyFlags & (MY_WME | MY_FAE | MY_FNABP)) my_error(EE_WRITE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))), my_filename(Filedes),my_errno); DBUG_RETURN(MY_FILE_ERROR); /* Error on write */ } break; /* Return bytes written */ } DBUG_EXECUTE_IF("check", my_seek(Filedes, -1, SEEK_SET, MYF(0));); if (MyFlags & (MY_NABP | MY_FNABP)) DBUG_RETURN(0); /* Want only errors */ DBUG_RETURN(writtenbytes+written); /* purecov: inspected */ }
O3
c
my_pwrite: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %r13 movq %rdx, %rbx movq %rsi, -0x38(%rbp) movl %edi, -0x2c(%rbp) movq $0x0, -0x40(%rbp) movl $0x0, %r14d testb $0x1a, %r8b jne 0xa03f6 leaq 0xb67dc5(%rip), %rax # 0xc081b8 movq (%rax), %r14 orq %r8, %r14 movl -0x2c(%rbp), %edi movq -0x38(%rbp), %rsi movq %rbx, %rdx movq %r13, %rcx callq 0x29820 cmpq %rbx, %rax jne 0xa0422 testb $0x6, %r14b je 0xa0504 xorl %r15d, %r15d jmp 0xa050b movq %rax, %r15 movq $0x0, -0x48(%rbp) callq 0x297b0 movq %rax, -0x50(%rbp) movq $0x0, -0x40(%rbp) movq %r13, %r12 movq -0x50(%rbp), %rax movl (%rax), %r13d callq 0xa16ee movl %r13d, (%rax) cmpq $-0x1, %r15 je 0xa0469 addq %r15, -0x40(%rbp) addq %r15, -0x38(%rbp) subq %r15, %rbx movq %r12, %r13 addq %r15, %r13 jmp 0xa046c movq %r12, %r13 callq 0xa16ee movl %r14d, %ecx andl $-0x21, %ecx cmpl $0x0, 0xe0(%rax) cmovneq %rcx, %r14 callq 0xa16ee cmpl $0x1c, (%rax) jne 0xa0494 testb $0x20, %r14b je 0xa04a6 jmp 0xa04dd callq 0xa16ee cmpl $0x7a, (%rax) jne 0xa04a6 movl %r14d, %eax andl $0x20, %eax jne 0xa04dd leaq -0x1(%r15), %rax cmpq $-0x2, %rax jb 0xa04ba callq 0xa16ee cmpl $0x4, (%rax) jne 0xa051d movl -0x2c(%rbp), %edi movq -0x38(%rbp), %rsi movq %rbx, %rdx movq %r13, %rcx callq 0x29820 movq %rax, %r15 cmpq %rbx, %rax jne 0xa043e jmp 0xa0410 movl -0x2c(%rbp), %r15d movl %r15d, %edi callq 0xa8bcc movq %rax, %rdi movq -0x48(%rbp), %r12 movl %r12d, %esi callq 0xa863a incl %r12d movq %r12, -0x48(%rbp) movl %r15d, %edi jmp 0xa04bd movq -0x40(%rbp), %r15 addq %rbx, %r15 movq %r15, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq testb $0x6, %r14b je 0xa0561 movq $-0x1, %r15 testb $0x1a, %r14b je 0xa050b andl $0x440, %r14d # imm = 0x440 orq $0x4, %r14 movl -0x2c(%rbp), %edi callq 0xa8bcc movq %rax, %rbx callq 0xa16ee movl (%rax), %ecx movl $0x3, %edi movq %r14, %rsi movq %rbx, %rdx xorl %eax, %eax callq 0x9dda3 jmp 0xa050b movq %r15, %rbx jmp 0xa0410 nopl (%rax)
my_pwrite: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r13, rcx mov rbx, rdx mov [rbp+var_38], rsi mov [rbp+var_2C], edi mov [rbp+var_40], 0 mov r14d, 0 test r8b, 1Ah jnz short loc_A03F6 lea rax, my_global_flags mov r14, [rax] loc_A03F6: or r14, r8 mov edi, [rbp+var_2C] mov rsi, [rbp+var_38] mov rdx, rbx mov rcx, r13 call _pwrite64 cmp rax, rbx jnz short loc_A0422 loc_A0410: test r14b, 6 jz loc_A0504 xor r15d, r15d jmp loc_A050B loc_A0422: mov r15, rax mov [rbp+var_48], 0 call ___errno_location mov [rbp+var_50], rax mov [rbp+var_40], 0 loc_A043E: mov r12, r13 mov rax, [rbp+var_50] mov r13d, [rax] call _my_thread_var mov [rax], r13d cmp r15, 0FFFFFFFFFFFFFFFFh jz short loc_A0469 add [rbp+var_40], r15 add [rbp+var_38], r15 sub rbx, r15 mov r13, r12 add r13, r15 jmp short loc_A046C loc_A0469: mov r13, r12 loc_A046C: call _my_thread_var mov ecx, r14d and ecx, 0FFFFFFDFh cmp dword ptr [rax+0E0h], 0 cmovnz r14, rcx call _my_thread_var cmp dword ptr [rax], 1Ch jnz short loc_A0494 test r14b, 20h jz short loc_A04A6 jmp short loc_A04DD loc_A0494: call _my_thread_var cmp dword ptr [rax], 7Ah ; 'z' jnz short loc_A04A6 mov eax, r14d and eax, 20h jnz short loc_A04DD loc_A04A6: lea rax, [r15-1] cmp rax, 0FFFFFFFFFFFFFFFEh jb short loc_A04BA call _my_thread_var cmp dword ptr [rax], 4 jnz short loc_A051D loc_A04BA: mov edi, [rbp+var_2C] loc_A04BD: mov rsi, [rbp+var_38] mov rdx, rbx mov rcx, r13 call _pwrite64 mov r15, rax cmp rax, rbx jnz loc_A043E jmp loc_A0410 loc_A04DD: mov r15d, [rbp+var_2C] mov edi, r15d call my_filename mov rdi, rax mov r12, [rbp+var_48] mov esi, r12d call wait_for_free_space inc r12d mov [rbp+var_48], r12 mov edi, r15d jmp short loc_A04BD loc_A0504: mov r15, [rbp+var_40] add r15, rbx loc_A050B: mov rax, r15 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_A051D: test r14b, 6 jz short loc_A0561 mov r15, 0FFFFFFFFFFFFFFFFh test r14b, 1Ah jz short loc_A050B and r14d, 440h or r14, 4 mov edi, [rbp+var_2C] call my_filename mov rbx, rax call _my_thread_var mov ecx, [rax] mov edi, 3 mov rsi, r14 mov rdx, rbx xor eax, eax call my_error jmp short loc_A050B loc_A0561: mov rbx, r15 jmp loc_A0410
long long my_pwrite(long long a1, const char *a2, long long a3, long long a4, __int16 a5) { long long v5; // r13 long long v6; // rbx __int16 v7; // r14 __int16 v8; // r14 long long v9; // rax long long v10; // r15 long long v11; // r15 long long v12; // r12 int v13; // r13d long long v14; // rax long long v16; // rbx unsigned int *v17; // rax int *v18; // [rsp+0h] [rbp-50h] unsigned int v19; // [rsp+8h] [rbp-48h] long long v20; // [rsp+10h] [rbp-40h] const char *v21; // [rsp+18h] [rbp-38h] unsigned int v22; // [rsp+24h] [rbp-2Ch] v5 = a4; v6 = a3; v21 = a2; v22 = a1; v20 = 0LL; v7 = 0; if ( (a5 & 0x1A) == 0 ) v7 = my_global_flags; v8 = a5 | v7; a1 = (unsigned int)a1; v9 = pwrite64((unsigned int)a1, a2, a3, a4); if ( v9 == v6 ) goto LABEL_4; v11 = v9; v19 = 0; v18 = (int *)__errno_location((unsigned int)a1); v20 = 0LL; while ( 1 ) { v12 = v5; v13 = *v18; *(_DWORD *)my_thread_var(a1, a2) = v13; if ( v11 == -1 ) { v5 = v12; } else { v20 += v11; v21 += v11; v6 -= v11; v5 = v11 + v12; } if ( *(_DWORD *)(my_thread_var(a1, a2) + 224) ) v8 &= ~0x20u; if ( *(_DWORD *)my_thread_var(a1, a2) == 28 ) { if ( (v8 & 0x20) != 0 ) goto LABEL_22; } else if ( *(_DWORD *)my_thread_var(a1, a2) == 122 && (v8 & 0x20) != 0 ) { LABEL_22: v14 = my_filename(v22); wait_for_free_space(v14, v19++); a1 = v22; goto LABEL_20; } if ( (unsigned long long)(v11 - 1) >= 0xFFFFFFFFFFFFFFFELL && *(_DWORD *)my_thread_var(a1, a2) != 4 ) break; a1 = v22; LABEL_20: a2 = v21; v11 = pwrite64(a1, v21, v6, v5); if ( v11 == v6 ) goto LABEL_4; } if ( (v8 & 6) == 0 ) { v6 = v11; LABEL_4: if ( (v8 & 6) != 0 ) return 0LL; else return v6 + v20; } v10 = -1LL; if ( (v8 & 0x1A) != 0 ) { v16 = my_filename(v22); v17 = (unsigned int *)my_thread_var(v22, a2); my_error(3u, v8 & 0x440 | 4LL, v16, *v17); } return v10; }
my_pwrite: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R13,RCX MOV RBX,RDX MOV qword ptr [RBP + -0x38],RSI MOV dword ptr [RBP + -0x2c],EDI MOV qword ptr [RBP + -0x40],0x0 MOV R14D,0x0 TEST R8B,0x1a JNZ 0x001a03f6 LEA RAX,[0xd081b8] MOV R14,qword ptr [RAX] LAB_001a03f6: OR R14,R8 MOV EDI,dword ptr [RBP + -0x2c] MOV RSI,qword ptr [RBP + -0x38] MOV RDX,RBX MOV RCX,R13 CALL 0x00129820 CMP RAX,RBX JNZ 0x001a0422 LAB_001a0410: TEST R14B,0x6 JZ 0x001a0504 XOR R15D,R15D JMP 0x001a050b LAB_001a0422: MOV R15,RAX MOV qword ptr [RBP + -0x48],0x0 CALL 0x001297b0 MOV qword ptr [RBP + -0x50],RAX MOV qword ptr [RBP + -0x40],0x0 LAB_001a043e: MOV R12,R13 MOV RAX,qword ptr [RBP + -0x50] MOV R13D,dword ptr [RAX] CALL 0x001a16ee MOV dword ptr [RAX],R13D CMP R15,-0x1 JZ 0x001a0469 ADD qword ptr [RBP + -0x40],R15 ADD qword ptr [RBP + -0x38],R15 SUB RBX,R15 MOV R13,R12 ADD R13,R15 JMP 0x001a046c LAB_001a0469: MOV R13,R12 LAB_001a046c: CALL 0x001a16ee MOV ECX,R14D AND ECX,0xffffffdf CMP dword ptr [RAX + 0xe0],0x0 CMOVNZ R14,RCX CALL 0x001a16ee CMP dword ptr [RAX],0x1c JNZ 0x001a0494 TEST R14B,0x20 JZ 0x001a04a6 JMP 0x001a04dd LAB_001a0494: CALL 0x001a16ee CMP dword ptr [RAX],0x7a JNZ 0x001a04a6 MOV EAX,R14D AND EAX,0x20 JNZ 0x001a04dd LAB_001a04a6: LEA RAX,[R15 + -0x1] CMP RAX,-0x2 JC 0x001a04ba CALL 0x001a16ee CMP dword ptr [RAX],0x4 JNZ 0x001a051d LAB_001a04ba: MOV EDI,dword ptr [RBP + -0x2c] LAB_001a04bd: MOV RSI,qword ptr [RBP + -0x38] MOV RDX,RBX MOV RCX,R13 CALL 0x00129820 MOV R15,RAX CMP RAX,RBX JNZ 0x001a043e JMP 0x001a0410 LAB_001a04dd: MOV R15D,dword ptr [RBP + -0x2c] MOV EDI,R15D CALL 0x001a8bcc MOV RDI,RAX MOV R12,qword ptr [RBP + -0x48] MOV ESI,R12D CALL 0x001a863a INC R12D MOV qword ptr [RBP + -0x48],R12 MOV EDI,R15D JMP 0x001a04bd LAB_001a0504: MOV R15,qword ptr [RBP + -0x40] ADD R15,RBX LAB_001a050b: MOV RAX,R15 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001a051d: TEST R14B,0x6 JZ 0x001a0561 MOV R15,-0x1 TEST R14B,0x1a JZ 0x001a050b AND R14D,0x440 OR R14,0x4 MOV EDI,dword ptr [RBP + -0x2c] CALL 0x001a8bcc MOV RBX,RAX CALL 0x001a16ee MOV ECX,dword ptr [RAX] MOV EDI,0x3 MOV RSI,R14 MOV RDX,RBX XOR EAX,EAX CALL 0x0019dda3 JMP 0x001a050b LAB_001a0561: MOV RBX,R15 JMP 0x001a0410
long my_pwrite(int param_1,void *param_2,size_t param_3,__off64_t param_4,ulong param_5) { int iVar1; size_t sVar2; int *piVar3; int *piVar4; long lVar5; int8 uVar6; int4 *puVar7; int iVar8; ulong uVar9; long local_48; void *local_40; local_48 = 0; uVar9 = 0; if ((param_5 & 0x1a) == 0) { uVar9 = my_global_flags; } uVar9 = uVar9 | param_5; sVar2 = pwrite64(param_1,param_2,param_3,param_4); if (sVar2 != param_3) { iVar8 = 0; piVar3 = __errno_location(); local_48 = 0; local_40 = param_2; do { iVar1 = *piVar3; piVar4 = (int *)_my_thread_var(); *piVar4 = iVar1; if (sVar2 != 0xffffffffffffffff) { local_48 = local_48 + sVar2; local_40 = (void *)((long)local_40 + sVar2); param_3 = param_3 - sVar2; param_4 = param_4 + sVar2; } lVar5 = _my_thread_var(); if (*(int *)(lVar5 + 0xe0) != 0) { uVar9 = (ulong)((uint)uVar9 & 0xffffffdf); } piVar4 = (int *)_my_thread_var(); if (*piVar4 == 0x1c) { if ((uVar9 & 0x20) != 0) goto LAB_001a04dd; LAB_001a04a6: if ((0xfffffffffffffffd < sVar2 - 1) && (piVar4 = (int *)_my_thread_var(), *piVar4 != 4)) { param_3 = sVar2; if ((uVar9 & 6) != 0) { if ((uVar9 & 0x1a) == 0) { return -1; } uVar6 = my_filename(param_1); puVar7 = (int4 *)_my_thread_var(); my_error(3,(uint)uVar9 & 0x440 | 4,uVar6,*puVar7); return -1; } break; } } else { piVar4 = (int *)_my_thread_var(); if ((*piVar4 != 0x7a) || ((uVar9 & 0x20) == 0)) goto LAB_001a04a6; LAB_001a04dd: uVar6 = my_filename(param_1); wait_for_free_space(uVar6,iVar8); iVar8 = iVar8 + 1; } sVar2 = pwrite64(param_1,local_40,param_3,param_4); } while (sVar2 != param_3); } if ((uVar9 & 6) == 0) { local_48 = local_48 + param_3; } else { local_48 = 0; } return local_48; }
45,068
minja::Context::at(minja::Value const&)
monkey531[P]llama/common/minja.hpp
virtual Value & at(const Value & key) { if (values_.contains(key)) return values_.at(key); if (parent_) return parent_->at(key); throw std::runtime_error("Undefined variable: " + key.dump()); }
O1
cpp
minja::Context::at(minja::Value const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x18(%rdi), %r15 movq %r15, %rdi callq 0x94c52 testb %al, %al je 0x9e4d1 movq %r15, %rdi movq %r14, %rsi addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x94a54 movq 0x68(%rbx), %rdi testq %rdi, %rdi je 0x9e4f0 movq (%rdi), %rax movq 0x18(%rax), %rax movq %r14, %rsi addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmpq *%rax movl $0x10, %edi callq 0x1b450 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x87b4a leaq 0x55e5b(%rip), %rsi # 0xf4373 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x798cf movb $0x1, %bpl leaq 0x28(%rsp), %rsi movq %rbx, %rdi callq 0x1be30 xorl %ebp, %ebp movq 0x90ab0(%rip), %rsi # 0x12eff0 movq 0x90a19(%rip), %rdx # 0x12ef60 movq %rbx, %rdi callq 0x1bf30 movq %rax, %r14 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9e575 movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8f0 jmp 0x9e575 movq %rax, %r14 movb $0x1, %bpl leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9e598 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8f0 jmp 0x9e598 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x9e5a5 movq %rbx, %rdi callq 0x1b690 movq %r14, %rdi callq 0x1bfb0 nop
_ZN5minja7Context2atERKNS_5ValueE: push rbp push r15 push r14 push rbx sub rsp, 48h mov r14, rsi mov rbx, rdi lea r15, [rdi+18h] mov rdi, r15; this call _ZNK5minja5Value8containsERKS0_; minja::Value::contains(minja::Value const&) test al, al jz short loc_9E4D1 mov rdi, r15; this mov rsi, r14; minja::Value * add rsp, 48h pop rbx pop r14 pop r15 pop rbp jmp _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&) loc_9E4D1: mov rdi, [rbx+68h] test rdi, rdi jz short loc_9E4F0 mov rax, [rdi] mov rax, [rax+18h] mov rsi, r14 add rsp, 48h pop rbx pop r14 pop r15 pop rbp jmp rax loc_9E4F0: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_60] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUndefinedVaria; "Undefined variable: " lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_60] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+68h+var_40] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+68h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9E575 mov rsi, [rsp+68h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9E575 mov r14, rax mov bpl, 1 loc_9E575: lea rax, [rsp+68h+var_50] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9E598 mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9E598 mov r14, rax mov bpl, 1 loc_9E598: test bpl, bpl jz short loc_9E5A5 mov rdi, rbx; void * call ___cxa_free_exception loc_9E5A5: mov rdi, r14 call __Unwind_Resume
unsigned long long minja::Context::at(minja::Context *this, const minja::Value *a2, __m128d a3) { long long v4; // rdi void *exception; // rbx _BYTE v6[16]; // [rsp+8h] [rbp-60h] BYREF _BYTE v7[16]; // [rsp+28h] [rbp-40h] BYREF if ( (unsigned __int8)minja::Value::contains((minja::Context *)((char *)this + 24), a2, a3) ) return minja::Value::at((minja::Context *)((char *)this + 24), a2); v4 = *((_QWORD *)this + 13); if ( !v4 ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v6, (long long)a2, 0xFFFFFFFF, 0); std::operator+<char>((long long)v7, (long long)"Undefined variable: ", (long long)v6); std::runtime_error::runtime_error(exception, v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return (*(long long ( **)(long long, const minja::Value *))(*(_QWORD *)v4 + 24LL))(v4, a2); }
at: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RSI MOV RBX,RDI LEA R15,[RDI + 0x18] MOV RDI,R15 CALL 0x00194c52 TEST AL,AL JZ 0x0019e4d1 MOV RDI,R15 MOV RSI,R14 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP JMP 0x00194a54 LAB_0019e4d1: MOV RDI,qword ptr [RBX + 0x68] TEST RDI,RDI JZ 0x0019e4f0 MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x18] MOV RSI,R14 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP JMP RAX LAB_0019e4f0: MOV EDI,0x10 CALL 0x0011b450 MOV RBX,RAX LAB_0019e4fd: LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x00187b4a LAB_0019e511: LEA RSI,[0x1f4373] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL 0x001798cf MOV BPL,0x1 LAB_0019e52a: LEA RSI,[RSP + 0x28] MOV RDI,RBX CALL 0x0011be30 XOR EBP,EBP MOV RSI,qword ptr [0x0022eff0] MOV RDX,qword ptr [0x0022ef60] MOV RDI,RBX CALL 0x0011bf30
/* minja::Context::at(minja::Value const&) */ void __thiscall minja::Context::at(Context *this,Value *param_1) { long *plVar1; char cVar2; runtime_error *this_00; int1 local_60 [32]; string local_40 [32]; cVar2 = Value::contains((Value *)(this + 0x18),param_1); if (cVar2 != '\0') { Value::at((Value *)(this + 0x18),param_1); return; } plVar1 = *(long **)(this + 0x68); if (plVar1 != (long *)0x0) { /* WARNING: Could not recover jumptable at 0x0019e4ee. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(*plVar1 + 0x18))(plVar1,param_1); return; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0019e4fd to 0019e510 has its CatchHandler @ 0019e592 */ Value::dump_abi_cxx11_((int)local_60,SUB81(param_1,0)); /* try { // try from 0019e511 to 0019e526 has its CatchHandler @ 0019e56f */ std::operator+((char *)local_40,(string *)"Undefined variable: "); /* try { // try from 0019e52a to 0019e54e has its CatchHandler @ 0019e54f */ std::runtime_error::runtime_error(this_00,local_40); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_0022eff0,PTR__runtime_error_0022ef60); }
45,069
div_by_zz
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/vect.c
static void div_by_zz(limb_t val[]) { static const limb_t zz[] = { TO_LIMB_T(0x0000000100000000), TO_LIMB_T(0xac45a4010001a402) }; size_t loop, zz_len = sizeof(zz)/sizeof(zz[0]); limb_t d_lo, d_hi; d_lo = zz[zz_len - 2]; d_hi = zz[zz_len - 1]; for (loop = zz_len, zz_len--; loop--;) { limb_t q = div_3_limbs(val + loop + zz_len, d_lo, d_hi); (void)quot_rem_128(val + loop, zz, q); } /* remainder is in low half of val[], quotient is in high */ }
O0
c
div_by_zz: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq $0x2, -0x18(%rbp) movq -0x18(%rbp), %rcx subq $0x2, %rcx leaq 0x20e7d(%rip), %rax # 0x55070 movq (%rax,%rcx,8), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rcx subq $0x1, %rcx leaq 0x20e66(%rip), %rax # 0x55070 movq (%rax,%rcx,8), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x18(%rbp), %rax addq $-0x1, %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, %rcx addq $-0x1, %rcx movq %rcx, -0x10(%rbp) cmpq $0x0, %rax je 0x34287 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax shlq $0x3, %rax addq %rax, %rdi movq -0x18(%rbp), %rax shlq $0x3, %rax addq %rax, %rdi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x48ca0 movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax shlq $0x3, %rax addq %rax, %rdi movq -0x30(%rbp), %rdx leaq 0x20df0(%rip), %rsi # 0x55070 callq 0x48d00 jmp 0x34226 addq $0x30, %rsp popq %rbp retq nopl (%rax)
div_by_zz: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_18], 2 mov rcx, [rbp+var_18] sub rcx, 2 lea rax, div_by_zz_zz mov rax, [rax+rcx*8] mov [rbp+var_20], rax mov rcx, [rbp+var_18] sub rcx, 1 lea rax, div_by_zz_zz mov rax, [rax+rcx*8] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_10], rax mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_18], rax loc_34226: mov rax, [rbp+var_10] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFFh mov [rbp+var_10], rcx cmp rax, 0 jz short loc_34287 mov rdi, [rbp+var_8] mov rax, [rbp+var_10] shl rax, 3 add rdi, rax mov rax, [rbp+var_18] shl rax, 3 add rdi, rax mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] call div_3_limbs mov [rbp+var_30], rax mov rdi, [rbp+var_8] mov rax, [rbp+var_10] shl rax, 3 add rdi, rax mov rdx, [rbp+var_30] lea rsi, div_by_zz_zz call quot_rem_128 jmp short loc_34226 loc_34287: add rsp, 30h pop rbp retn
long long div_by_zz(long long a1) { long long result; // rax long long v2; // [rsp+0h] [rbp-30h] long long v3; // [rsp+8h] [rbp-28h] long long i; // [rsp+20h] [rbp-10h] v3 = div_by_zz_zz[1]; for ( i = 2LL; ; quot_rem_128(8 * i + a1, div_by_zz_zz, v2) ) { result = i--; if ( !result ) break; v2 = div_3_limbs(8 * i + a1 + 8, div_by_zz_zz[0], v3); } return result; }
div_by_zz: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x18],0x2 MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x2 LEA RAX,[0x155070] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x20],RAX MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x1 LEA RAX,[0x155070] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x1 MOV qword ptr [RBP + -0x18],RAX LAB_00134226: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,-0x1 MOV qword ptr [RBP + -0x10],RCX CMP RAX,0x0 JZ 0x00134287 MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] SHL RAX,0x3 ADD RDI,RAX MOV RAX,qword ptr [RBP + -0x18] SHL RAX,0x3 ADD RDI,RAX MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] CALL 0x00148ca0 MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] SHL RAX,0x3 ADD RDI,RAX MOV RDX,qword ptr [RBP + -0x30] LEA RSI,[0x155070] CALL 0x00148d00 JMP 0x00134226 LAB_00134287: ADD RSP,0x30 POP RBP RET
void div_by_zz(long param_1) { int8 uVar1; int8 uVar2; int8 uVar3; long lVar4; long local_18; uVar2 = DAT_00155078; uVar1 = div_by_zz_zz; local_18 = 2; while( true ) { lVar4 = local_18 + -1; if (local_18 == 0) break; uVar3 = div_3_limbs(param_1 + lVar4 * 8 + 8,uVar1,uVar2); quot_rem_128(param_1 + lVar4 * 8,&div_by_zz_zz,uVar3); local_18 = lVar4; } return; }
45,070
mujoco::plugin::sdf::Nut::Gradient(double*, double const*) const
aimrt_mujoco_sim/_deps/mujoco-src/plugin/sdf/nut.cc
void Nut::Gradient(mjtNum grad[3], const mjtNum point[3]) const { mjtNum eps = 1e-8; mjtNum dist0 = distance(point, attribute); mjtNum pointX[3] = {point[0]+eps, point[1], point[2]}; mjtNum distX = distance(pointX, attribute); mjtNum pointY[3] = {point[0], point[1]+eps, point[2]}; mjtNum distY = distance(pointY, attribute); mjtNum pointZ[3] = {point[0], point[1], point[2]+eps}; mjtNum distZ = distance(pointZ, attribute); grad[0] = (distX - dist0) / eps; grad[1] = (distY - dist0) / eps; grad[2] = (distZ - dist0) / eps; }
O3
cpp
mujoco::plugin::sdf::Nut::Gradient(double*, double const*) const: pushq %r15 pushq %r14 pushq %rbx subq $0x90, %rsp movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 movq %rdx, %rdi movq %r14, %rsi callq 0xec80 vmovaps %xmm0, 0x20(%rsp) vmovsd 0x3b744(%rip), %xmm0 # 0x4a5e0 vaddsd (%r15), %xmm0, %xmm0 leaq 0x70(%rsp), %rdi vmovsd %xmm0, (%rdi) vmovups 0x8(%r15), %xmm0 vmovups %xmm0, 0x8(%rdi) movq %r14, %rsi callq 0xec80 vmovsd (%r15), %xmm1 leaq 0x50(%rsp), %rdi vmovsd %xmm1, (%rdi) vmovsd 0x3b70d(%rip), %xmm1 # 0x4a5e0 vaddsd 0x8(%r15), %xmm1, %xmm1 vmovaps %xmm0, 0x10(%rsp) vmovsd %xmm1, 0x8(%rdi) vmovsd 0x10(%r15), %xmm0 vmovsd %xmm0, 0x10(%rdi) movq %r14, %rsi callq 0xec80 vmovaps %xmm0, (%rsp) vmovups (%r15), %xmm0 leaq 0x30(%rsp), %rdi vmovaps %xmm0, (%rdi) vmovsd 0x3b6ce(%rip), %xmm0 # 0x4a5e0 vaddsd 0x10(%r15), %xmm0, %xmm0 vmovsd %xmm0, 0x10(%rdi) movq %r14, %rsi callq 0xec80 vmovapd 0x10(%rsp), %xmm1 vunpcklpd (%rsp), %xmm1, %xmm1 # xmm1 = xmm1[0],mem[0] vmovapd 0x20(%rsp), %xmm3 vmovddup %xmm3, %xmm2 # xmm2 = xmm3[0,0] vsubpd %xmm2, %xmm1, %xmm1 vmovddup 0x3b69a(%rip), %xmm2 # xmm2 = mem[0,0] vdivpd %xmm2, %xmm1, %xmm1 vmovupd %xmm1, (%rbx) vsubsd %xmm3, %xmm0, %xmm0 vdivsd 0x3b686(%rip), %xmm0, %xmm0 # 0x4a5e0 vmovsd %xmm0, 0x10(%rbx) addq $0x90, %rsp popq %rbx popq %r14 popq %r15 retq
_ZNK6mujoco6plugin3sdf3Nut8GradientEPdPKd: push r15 push r14 push rbx sub rsp, 90h mov r15, rdx mov rbx, rsi mov r14, rdi mov rdi, rdx; this mov rsi, r14; double * call _ZN6mujoco6plugin3sdf12_GLOBAL__N_18distanceEPKdS4__2; mujoco::plugin::sdf::`anonymous namespace'::distance(double const*,double const*) vmovaps [rsp+0A8h+var_88], xmm0 vmovsd xmm0, cs:qword_4A5E0 vaddsd xmm0, xmm0, qword ptr [r15] lea rdi, [rsp+0A8h+var_38]; this vmovsd qword ptr [rdi], xmm0 vmovups xmm0, xmmword ptr [r15+8] vmovups xmmword ptr [rdi+8], xmm0 mov rsi, r14; double * call _ZN6mujoco6plugin3sdf12_GLOBAL__N_18distanceEPKdS4__2; mujoco::plugin::sdf::`anonymous namespace'::distance(double const*,double const*) vmovsd xmm1, qword ptr [r15] lea rdi, [rsp+0A8h+var_58]; this vmovsd qword ptr [rdi], xmm1 vmovsd xmm1, cs:qword_4A5E0 vaddsd xmm1, xmm1, qword ptr [r15+8] vmovaps [rsp+0A8h+var_98], xmm0 vmovsd qword ptr [rdi+8], xmm1 vmovsd xmm0, qword ptr [r15+10h] vmovsd qword ptr [rdi+10h], xmm0 mov rsi, r14; double * call _ZN6mujoco6plugin3sdf12_GLOBAL__N_18distanceEPKdS4__2; mujoco::plugin::sdf::`anonymous namespace'::distance(double const*,double const*) vmovaps [rsp+0A8h+var_A8], xmm0 vmovups xmm0, xmmword ptr [r15] lea rdi, [rsp+0A8h+var_78]; this vmovaps xmmword ptr [rdi], xmm0 vmovsd xmm0, cs:qword_4A5E0 vaddsd xmm0, xmm0, qword ptr [r15+10h] vmovsd qword ptr [rdi+10h], xmm0 mov rsi, r14; double * call _ZN6mujoco6plugin3sdf12_GLOBAL__N_18distanceEPKdS4__2; mujoco::plugin::sdf::`anonymous namespace'::distance(double const*,double const*) vmovapd xmm1, [rsp+0A8h+var_98] vunpcklpd xmm1, xmm1, [rsp+0A8h+var_A8] vmovapd xmm3, [rsp+0A8h+var_88] vmovddup xmm2, xmm3 vsubpd xmm1, xmm1, xmm2 vmovddup xmm2, cs:qword_4A5E0 vdivpd xmm1, xmm1, xmm2 vmovupd xmmword ptr [rbx], xmm1 vsubsd xmm0, xmm0, xmm3 vdivsd xmm0, xmm0, cs:qword_4A5E0 vmovsd qword ptr [rbx+10h], xmm0 add rsp, 90h pop rbx pop r14 pop r15 retn
void mujoco::plugin::sdf::Nut::Gradient( mujoco::plugin::sdf::Nut *this, double *a2, mujoco::plugin::sdf::_anonymous_namespace_ *a3, __m128 _XMM0) { const double *v11; // rdx const double *v17; // rdx const double *v22; // rdx _BYTE v35[32]; // [rsp+30h] [rbp-78h] BYREF _BYTE v36[32]; // [rsp+50h] [rbp-58h] BYREF _BYTE v37[56]; // [rsp+70h] [rbp-38h] BYREF _R15 = a3; _RBX = a2; *(double *)_XMM0.m128_u64 = mujoco::plugin::sdf::`anonymous namespace'::distance( a3, (const double *)this, (const double *)a3); __asm { vmovaps [rsp+0A8h+var_88], xmm0 vmovsd xmm0, cs:qword_4A5E0 vaddsd xmm0, xmm0, qword ptr [r15] } _RDI = v37; __asm { vmovsd qword ptr [rdi], xmm0 vmovups xmm0, xmmword ptr [r15+8] vmovups xmmword ptr [rdi+8], xmm0 } *(double *)&_XMM0 = mujoco::plugin::sdf::`anonymous namespace'::distance( (mujoco::plugin::sdf::_anonymous_namespace_ *)v37, (const double *)this, v11); __asm { vmovsd xmm1, qword ptr [r15] } _RDI = v36; __asm { vmovsd qword ptr [rdi], xmm1 vmovsd xmm1, cs:qword_4A5E0 vaddsd xmm1, xmm1, qword ptr [r15+8] vmovaps [rsp+0A8h+var_98], xmm0 vmovsd qword ptr [rdi+8], xmm1 vmovsd xmm0, qword ptr [r15+10h] vmovsd qword ptr [rdi+10h], xmm0 } *(double *)&_XMM0 = mujoco::plugin::sdf::`anonymous namespace'::distance( (mujoco::plugin::sdf::_anonymous_namespace_ *)v36, (const double *)this, v17); __asm { vmovaps [rsp+0A8h+var_A8], xmm0 vmovups xmm0, xmmword ptr [r15] } _RDI = v35; __asm { vmovaps xmmword ptr [rdi], xmm0 vmovsd xmm0, cs:qword_4A5E0 vaddsd xmm0, xmm0, qword ptr [r15+10h] vmovsd qword ptr [rdi+10h], xmm0 } *(double *)&_XMM0 = mujoco::plugin::sdf::`anonymous namespace'::distance( (mujoco::plugin::sdf::_anonymous_namespace_ *)v35, (const double *)this, v22); __asm { vmovapd xmm1, [rsp+0A8h+var_98] vunpcklpd xmm1, xmm1, [rsp+0A8h+var_A8] vmovapd xmm3, [rsp+0A8h+var_88] vmovddup xmm2, xmm3 vsubpd xmm1, xmm1, xmm2 vmovddup xmm2, cs:qword_4A5E0 vdivpd xmm1, xmm1, xmm2 vmovupd xmmword ptr [rbx], xmm1 vsubsd xmm0, xmm0, xmm3 vdivsd xmm0, xmm0, cs:qword_4A5E0 vmovsd qword ptr [rbx+10h], xmm0 } }
Gradient: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x90 MOV R15,RDX MOV RBX,RSI MOV R14,RDI MOV RDI,RDX MOV RSI,R14 CALL 0x0010ec80 VMOVAPS xmmword ptr [RSP + 0x20],XMM0 VMOVSD XMM0,qword ptr [0x0014a5e0] VADDSD XMM0,XMM0,qword ptr [R15] LEA RDI,[RSP + 0x70] VMOVSD qword ptr [RDI],XMM0 VMOVUPS XMM0,xmmword ptr [R15 + 0x8] VMOVUPS xmmword ptr [RDI + 0x8],XMM0 MOV RSI,R14 CALL 0x0010ec80 VMOVSD XMM1,qword ptr [R15] LEA RDI,[RSP + 0x50] VMOVSD qword ptr [RDI],XMM1 VMOVSD XMM1,qword ptr [0x0014a5e0] VADDSD XMM1,XMM1,qword ptr [R15 + 0x8] VMOVAPS xmmword ptr [RSP + 0x10],XMM0 VMOVSD qword ptr [RDI + 0x8],XMM1 VMOVSD XMM0,qword ptr [R15 + 0x10] VMOVSD qword ptr [RDI + 0x10],XMM0 MOV RSI,R14 CALL 0x0010ec80 VMOVAPS xmmword ptr [RSP],XMM0 VMOVUPS XMM0,xmmword ptr [R15] LEA RDI,[RSP + 0x30] VMOVAPS xmmword ptr [RDI],XMM0 VMOVSD XMM0,qword ptr [0x0014a5e0] VADDSD XMM0,XMM0,qword ptr [R15 + 0x10] VMOVSD qword ptr [RDI + 0x10],XMM0 MOV RSI,R14 CALL 0x0010ec80 VMOVAPD XMM1,xmmword ptr [RSP + 0x10] VUNPCKLPD XMM1,XMM1,xmmword ptr [RSP] VMOVAPD XMM3,xmmword ptr [RSP + 0x20] VMOVDDUP XMM2,XMM3 VSUBPD XMM1,XMM1,XMM2 VMOVDDUP XMM2,qword ptr [0x0014a5e0] VDIVPD XMM1,XMM1,XMM2 VMOVUPD xmmword ptr [RBX],XMM1 VSUBSD XMM0,XMM0,XMM3 VDIVSD XMM0,XMM0,qword ptr [0x0014a5e0] VMOVSD qword ptr [RBX + 0x10],XMM0 ADD RSP,0x90 POP RBX POP R14 POP R15 RET
/* mujoco::plugin::sdf::Nut::Gradient(double*, double const*) const */ void __thiscall mujoco::plugin::sdf::Nut::Gradient(Nut *this,double *param_1,double *param_2) { int1 auVar1 [16]; int1 auVar2 [16]; double dVar3; int8 uVar4; int8 uVar5; double dVar6; int8 extraout_XMM0_Qb; int8 extraout_XMM0_Qb_00; int1 auVar7 [16]; int1 auVar8 [16]; double local_78; double dStack_70; double local_68; double local_58; double local_50; double local_48; double local_38; double local_30; double dStack_28; dVar3 = (double)(anonymous_namespace)::distance(param_2,(double *)this); local_38 = DAT_0014a5e0 + *param_2; local_30 = param_2[1]; dStack_28 = param_2[2]; uVar4 = (anonymous_namespace)::distance(&local_38,(double *)this); local_58 = *param_2; local_50 = DAT_0014a5e0 + param_2[1]; local_48 = param_2[2]; uVar5 = (anonymous_namespace)::distance(&local_58,(double *)this); local_78 = *param_2; dStack_70 = param_2[1]; local_68 = DAT_0014a5e0 + param_2[2]; dVar6 = (double)(anonymous_namespace)::distance(&local_78,(double *)this); auVar2._8_8_ = extraout_XMM0_Qb; auVar2._0_8_ = uVar4; auVar1._8_8_ = extraout_XMM0_Qb_00; auVar1._0_8_ = uVar5; auVar1 = vunpcklpd_avx(auVar2,auVar1); auVar7._8_8_ = dVar3; auVar7._0_8_ = dVar3; auVar1 = vsubpd_avx(auVar1,auVar7); auVar8._8_8_ = DAT_0014a5e0; auVar8._0_8_ = DAT_0014a5e0; auVar1 = vdivpd_avx(auVar1,auVar8); *(int1 (*) [16])param_1 = auVar1; param_1[2] = (dVar6 - dVar3) / DAT_0014a5e0; return; }
45,071
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&)
monkey531[P]llama/common/json.hpp
void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val) { switch (static_cast<value_t>(j)) { case value_t::number_unsigned: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>()); break; } case value_t::number_integer: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); break; } case value_t::number_float: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>()); break; } case value_t::null: case value_t::object: case value_t::array: case value_t::string: case value_t::boolean: case value_t::binary: case value_t::discarded: default: JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j)); } }
O0
cpp
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&): subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq 0x50(%rsp), %rdi callq 0x1236b0 movzbl %al, %ecx movq %rcx, 0x8(%rsp) subb $0x9, %al ja 0x1235eb movq 0x8(%rsp), %rax leaq 0xfaa44(%rip), %rcx # 0x21dfd4 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x50(%rsp), %rdi callq 0x1236c0 movq (%rax), %rcx movq 0x48(%rsp), %rax movq %rcx, (%rax) jmp 0x123699 movq 0x50(%rsp), %rdi callq 0x1236e0 movq (%rax), %rcx movq 0x48(%rsp), %rax movq %rcx, (%rax) jmp 0x123699 movq 0x50(%rsp), %rdi callq 0x123700 cvttsd2si (%rax), %rcx movq 0x48(%rsp), %rax movq %rcx, (%rax) jmp 0x123699 jmp 0x1235eb movb $0x1, 0x13(%rsp) movl $0x20, %edi callq 0x5e6b0 movq %rax, (%rsp) movq 0x50(%rsp), %rdi callq 0xef030 movq %rax, 0x20(%rsp) leaq 0xfc1a3(%rip), %rsi # 0x21f7b7 leaq 0x28(%rsp), %rdi leaq 0x20(%rsp), %rdx callq 0x1238d0 jmp 0x123625 movq (%rsp), %rdi movq 0x50(%rsp), %rcx movl $0x12e, %esi # imm = 0x12E leaq 0x28(%rsp), %rdx callq 0x123720 jmp 0x12363f movq (%rsp), %rdi movb $0x0, 0x13(%rsp) leaq 0x18d9e9(%rip), %rsi # 0x2b1038 leaq -0x34576(%rip), %rdx # 0xef0e0 callq 0x5eb30 jmp 0x1236a8 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) jmp 0x123685 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) leaq 0x28(%rsp), %rdi callq 0x5f5d8 testb $0x1, 0x13(%rsp) jne 0x12368e jmp 0x123697 movq (%rsp), %rdi callq 0x5efd0 jmp 0x12369e addq $0x58, %rsp retq movq 0x18(%rsp), %rdi callq 0x5ebf0 nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: sub rsp, 58h mov qword ptr [rsp+58h+var_8], rdi; char mov qword ptr [rsp+58h+var_10], rsi; int mov rdi, qword ptr [rsp+58h+var_8] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEcvNS0_6detail7value_tEEv; 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>::operator nlohmann::json_abi_v3_11_3::detail::value_t(void) movzx ecx, al mov qword ptr [rsp+58h+var_50], rcx; int sub al, 9; switch 10 cases ja short def_123597; jumptable 0000000000123597 default case mov rax, qword ptr [rsp+58h+var_50] lea rcx, jpt_123597 movsxd rax, ds:(jpt_123597 - 21DFD4h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_123599: mov rdi, qword ptr [rsp+58h+var_8]; jumptable 0000000000123597 case 6 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKmTnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv mov rcx, [rax] mov rax, qword ptr [rsp+58h+var_10] mov [rax], rcx jmp loc_123699 loc_1235B3: mov rdi, qword ptr [rsp+58h+var_8]; jumptable 0000000000123597 case 5 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKlTnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv mov rcx, [rax] mov rax, qword ptr [rsp+58h+var_10] mov [rax], rcx jmp loc_123699 loc_1235CD: mov rdi, qword ptr [rsp+58h+var_8]; jumptable 0000000000123597 case 7 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKdTnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv cvttsd2si rcx, qword ptr [rax] mov rax, qword ptr [rsp+58h+var_10] mov [rax], rcx jmp loc_123699 loc_1235E9: jmp short $+2; jumptable 0000000000123597 cases 0-4,8,9 def_123597: mov [rsp+58h+var_45], 1; jumptable 0000000000123597 default case mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+58h+var_58], rax; int mov rdi, qword ptr [rsp+58h+var_8] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov qword ptr [rsp+58h+var_38], rax; int lea rsi, aTypeMustBeNumb; "type must be number, but is " lea rdi, [rsp+58h+var_30] lea rdx, [rsp+58h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) jmp short $+2 loc_123625: mov rdi, [rsp+58h+var_58]; int mov rcx, qword ptr [rsp+58h+var_8] mov esi, 12Eh lea rdx, [rsp+58h+var_30] call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ jmp short $+2 loc_12363F: mov rdi, [rsp+58h+var_58]; void * mov [rsp+58h+var_45], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_1236A8 mov rcx, rax mov eax, edx mov [rsp+arg_10], rcx mov [rsp+arg_C], eax jmp short loc_123685 mov rcx, rax mov eax, edx mov [rsp+arg_10], rcx mov [rsp+arg_C], eax lea rdi, [rsp+arg_20]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_123685: test [rsp+arg_B], 1 jnz short loc_12368E jmp short loc_123697 loc_12368E: mov rdi, [rsp+0]; void * call ___cxa_free_exception loc_123697: jmp short loc_12369E loc_123699: add rsp, 58h retn loc_12369E: mov rdi, [rsp+arg_10] call __Unwind_Resume loc_1236A8: nop dword ptr [rax+rax+00000000h]
45,072
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&)
monkey531[P]llama/common/json.hpp
void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val) { switch (static_cast<value_t>(j)) { case value_t::number_unsigned: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>()); break; } case value_t::number_integer: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); break; } case value_t::number_float: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>()); break; } case value_t::null: case value_t::object: case value_t::array: case value_t::string: case value_t::boolean: case value_t::binary: case value_t::discarded: default: JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j)); } }
O2
cpp
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movzbl (%rdi), %eax cmpl $0x5, %eax je 0x68484 cmpl $0x7, %eax je 0x6847c cmpl $0x6, %eax jne 0x68497 movsd 0x8(%r14), %xmm1 unpcklps 0x4f57a(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0x4f582(%rip), %xmm1 # 0xb79f0 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 jmp 0x6848a movsd 0x8(%r14), %xmm0 jmp 0x6848a cvtsi2sdq 0x8(%r14), %xmm0 movsd %xmm0, (%rsi) addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq pushq $0x20 popq %rdi callq 0x24470 movq %rax, %rbx movq %r14, %rdi callq 0x537d6 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x508ff(%rip), %rsi # 0xb8db8 leaq 0x10(%rsp), %rdi callq 0x67e01 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0x67d14 xorl %ebp, %ebp leaq 0x99cdc(%rip), %rsi # 0x1021c0 leaq -0x18155(%rip), %rdx # 0x50396 movq %rbx, %rdi callq 0x24f50 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x25258 testb %bpl, %bpl jne 0x6850a jmp 0x68512 movq %rax, %r14 movq %rbx, %rdi callq 0x246b0 movq %r14, %rdi callq 0x24fe0
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: push rbp; char push r14; int push rbx; int sub rsp, 30h mov r14, rdi movzx eax, byte ptr [rdi] cmp eax, 5 jz short loc_68484 cmp eax, 7 jz short loc_6847C cmp eax, 6 jnz short loc_68497 movsd xmm1, qword ptr [r14+8] unpcklps xmm1, cs:xmmword_B79E0 subpd xmm1, cs:xmmword_B79F0 movapd xmm0, xmm1 unpckhpd xmm0, xmm1 addsd xmm0, xmm1 jmp short loc_6848A loc_6847C: movsd xmm0, qword ptr [r14+8] jmp short loc_6848A loc_68484: cvtsi2sd xmm0, qword ptr [r14+8] loc_6848A: movsd qword ptr [rsi], xmm0 add rsp, 30h pop rbx pop r14 pop rbp retn loc_68497: push 20h ; ' ' pop rdi; 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) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeNumb; "type must be number, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; 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 mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_6850A jmp short loc_68512 mov r14, rax loc_6850A: mov rdi, rbx; void * call ___cxa_free_exception loc_68512: mov rdi, r14 call __Unwind_Resume
long long ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_( unsigned __int8 *a1, double *a2) { long long result; // rax __m128d v3; // xmm1 double v4; // xmm0_8 nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx const char *v6; // [rsp+8h] [rbp-40h] BYREF _BYTE v7[56]; // [rsp+10h] [rbp-38h] BYREF result = *a1; switch ( (_DWORD)result ) { case 5: v4 = (double)(int)*((_QWORD *)a1 + 1); break; case 7: v4 = *((double *)a1 + 1); break; case 6: v3 = _mm_sub_pd( (__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a1 + 1), (__m128)xmmword_B79E0), (__m128d)xmmword_B79F0); v4 = _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0]; break; default: exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v6 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v7, (long long)"type must be number, but is ", &v6); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, (long long)v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } *a2 = v4; return result; }
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI MOVZX EAX,byte ptr [RDI] CMP EAX,0x5 JZ 0x00168484 CMP EAX,0x7 JZ 0x0016847c CMP EAX,0x6 JNZ 0x00168497 MOVSD XMM1,qword ptr [R14 + 0x8] UNPCKLPS XMM1,xmmword ptr [0x001b79e0] SUBPD XMM1,xmmword ptr [0x001b79f0] MOVAPD XMM0,XMM1 UNPCKHPD XMM0,XMM1 ADDSD XMM0,XMM1 JMP 0x0016848a LAB_0016847c: MOVSD XMM0,qword ptr [R14 + 0x8] JMP 0x0016848a LAB_00168484: CVTSI2SD XMM0,qword ptr [R14 + 0x8] LAB_0016848a: MOVSD qword ptr [RSI],XMM0 ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_00168497: PUSH 0x20 POP RDI CALL 0x00124470 MOV RBX,RAX MOV RDI,R14 CALL 0x001537d6 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_001684b2: LEA RSI,[0x1b8db8] LEA RDI,[RSP + 0x10] CALL 0x00167e01 MOV BPL,0x1 LAB_001684c6: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x00167d14 XOR EBP,EBP LEA RSI,[0x2021c0] LEA RDX,[0x150396] MOV RDI,RBX CALL 0x00124f50
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (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,double *param_2) { 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> bVar1; int8 uVar2; double dVar3; char *local_40; detail local_38 [32]; bVar1 = *param_1; if (bVar1 == (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> )0x5) { dVar3 = (double)*(long *)(param_1 + 8); } else if (bVar1 == (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> )0x7) { dVar3 = *(double *)(param_1 + 8); } else { if (bVar1 != (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> )0x6) { uVar2 = __cxa_allocate_exception(0x20); local_40 = (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 001684b2 to 001684c2 has its CatchHandler @ 00168507 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"type must be number, but is ",&local_40); /* try { // try from 001684c6 to 001684f2 has its CatchHandler @ 001684f3 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x12e,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } dVar3 = ((double)CONCAT44(_UNK_001b79e4,(int)((ulong)*(int8 *)(param_1 + 8) >> 0x20)) - _UNK_001b79f8) + ((double)CONCAT44(_DAT_001b79e0,(int)*(int8 *)(param_1 + 8)) - _DAT_001b79f0); } *param_2 = dVar3; return; }
45,073
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&)
monkey531[P]llama/common/json.hpp
void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val) { switch (static_cast<value_t>(j)) { case value_t::number_unsigned: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>()); break; } case value_t::number_integer: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); break; } case value_t::number_float: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>()); break; } case value_t::null: case value_t::object: case value_t::array: case value_t::string: case value_t::boolean: case value_t::binary: case value_t::discarded: default: JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j)); } }
O3
cpp
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movzbl (%rdi), %eax cmpl $0x5, %eax je 0x8c168 cmpl $0x7, %eax je 0x8c16e cmpl $0x6, %eax jne 0x8c180 movq 0x8(%r14), %rax jmp 0x8c174 cvttsd2si 0x8(%r14), %rax movq %rax, (%rsi) addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x20, %edi callq 0x1b450 movq %rax, %rbx movq %r14, %rdi callq 0x71c06 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x68c04(%rip), %rsi # 0xf4da8 leaq 0x10(%rsp), %rdi callq 0x8c3e5 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0x8c216 xorl %ebp, %ebp leaq 0xa2fe1(%rip), %rsi # 0x12f1b0 leaq -0x1e37e(%rip), %rdx # 0x6de58 movq %rbx, %rdi callq 0x1bf60 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x8c1fc movq 0x20(%rsp), %rsi incq %rsi callq 0x1b910 testb %bpl, %bpl jne 0x8c206 jmp 0x8c20e movq %rax, %r14 movq %rbx, %rdi callq 0x1b690 movq %r14, %rdi callq 0x1bff0
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov r14, rdi movzx eax, byte ptr [rdi] cmp eax, 5 jz short loc_8C168 cmp eax, 7 jz short loc_8C16E cmp eax, 6 jnz short loc_8C180 loc_8C168: mov rax, [r14+8] jmp short loc_8C174 loc_8C16E: cvttsd2si rax, qword ptr [r14+8] loc_8C174: mov [rsi], rax add rsp, 30h pop rbx pop r14 pop rbp retn loc_8C180: 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) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeNumb; "type must be number, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; 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 mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_8C1FC mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8C1FC: test bpl, bpl jnz short loc_8C206 jmp short loc_8C20E mov r14, rax loc_8C206: mov rdi, rbx; void * call ___cxa_free_exception loc_8C20E: mov rdi, r14 call __Unwind_Resume
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI MOVZX EAX,byte ptr [RDI] CMP EAX,0x5 JZ 0x0018c168 CMP EAX,0x7 JZ 0x0018c16e CMP EAX,0x6 JNZ 0x0018c180 LAB_0018c168: MOV RAX,qword ptr [R14 + 0x8] JMP 0x0018c174 LAB_0018c16e: CVTTSD2SI RAX,qword ptr [R14 + 0x8] LAB_0018c174: MOV qword ptr [RSI],RAX ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0018c180: MOV EDI,0x20 CALL 0x0011b450 MOV RBX,RAX MOV RDI,R14 CALL 0x00171c06 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0018c19d: LEA RSI,[0x1f4da8] LEA RDI,[RSP + 0x10] CALL 0x0018c3e5 MOV BPL,0x1 LAB_0018c1b1: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x0018c216 XOR EBP,EBP LEA RSI,[0x22f1b0] LEA RDX,[0x16de58] MOV RDI,RBX CALL 0x0011bf60
void _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (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,long *param_2) { 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> bVar1; long lVar2; int8 uVar3; char *local_40; detail local_38 [32]; bVar1 = *param_1; if (bVar1 != (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> )0x5) { if (bVar1 == (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> )0x7) { lVar2 = (long)*(double *)(param_1 + 8); goto LAB_0018c174; } if (bVar1 != (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> )0x6) { uVar3 = __cxa_allocate_exception(0x20); local_40 = (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 0018c19d to 0018c1ad has its CatchHandler @ 0018c203 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"type must be number, but is ",&local_40); /* try { // try from 0018c1b1 to 0018c1dd has its CatchHandler @ 0018c1de */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar3,0x12e,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } } lVar2 = *(long *)(param_1 + 8); LAB_0018c174: *param_2 = lVar2; return; }
45,074
plutovg_matrix_init_rotate
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-matrix.c
void plutovg_matrix_init_rotate(plutovg_matrix_t* matrix, float angle) { float c = cosf(angle); float s = sinf(angle); plutovg_matrix_init(matrix, c, s, -s, c, 0, 0); }
O1
c
plutovg_matrix_init_rotate: pushq %rbx subq $0x10, %rsp movss %xmm0, 0x8(%rsp) movq %rdi, %rbx callq 0xa270 movss %xmm0, 0xc(%rsp) movss 0x8(%rsp), %xmm0 callq 0xa2b0 movaps 0x1b453(%rip), %xmm1 # 0x43100 xorps %xmm0, %xmm1 movss 0xc(%rsp), %xmm2 movss %xmm2, (%rbx) movss %xmm0, 0x4(%rbx) movss %xmm1, 0x8(%rbx) movss %xmm2, 0xc(%rbx) movq $0x0, 0x10(%rbx) addq $0x10, %rsp popq %rbx retq
plutovg_matrix_init_rotate: push rbx sub rsp, 10h movss [rsp+18h+var_10], xmm0 mov rbx, rdi call _cosf movss [rsp+18h+var_C], xmm0 movss xmm0, [rsp+18h+var_10] call _sinf movaps xmm1, cs:xmmword_43100 xorps xmm1, xmm0 movss xmm2, [rsp+18h+var_C] movss dword ptr [rbx], xmm2 movss dword ptr [rbx+4], xmm0 movss dword ptr [rbx+8], xmm1 movss dword ptr [rbx+0Ch], xmm2 mov qword ptr [rbx+10h], 0 add rsp, 10h pop rbx retn
void plutovg_matrix_init_rotate(long long a1, float a2) { float v2; // xmm0_4 float v4; // [rsp+Ch] [rbp-Ch] v4 = cosf(); v2 = sinf(a2); *(float *)a1 = v4; *(float *)(a1 + 4) = v2; *(float *)(a1 + 8) = -v2; *(float *)(a1 + 12) = v4; *(_QWORD *)(a1 + 16) = 0LL; }
plutovg_matrix_init_rotate: PUSH RBX SUB RSP,0x10 MOVSS dword ptr [RSP + 0x8],XMM0 MOV RBX,RDI CALL 0x0010a270 MOVSS dword ptr [RSP + 0xc],XMM0 MOVSS XMM0,dword ptr [RSP + 0x8] CALL 0x0010a2b0 MOVAPS XMM1,xmmword ptr [0x00143100] XORPS XMM1,XMM0 MOVSS XMM2,dword ptr [RSP + 0xc] MOVSS dword ptr [RBX],XMM2 MOVSS dword ptr [RBX + 0x4],XMM0 MOVSS dword ptr [RBX + 0x8],XMM1 MOVSS dword ptr [RBX + 0xc],XMM2 MOV qword ptr [RBX + 0x10],0x0 ADD RSP,0x10 POP RBX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void plutovg_matrix_init_rotate(float param_1,float *param_2) { float fVar1; float fVar2; float fVar3; fVar1 = cosf(param_1); fVar2 = sinf(param_1); fVar3 = (float)(_DAT_00143100 ^ (uint)fVar2); *param_2 = fVar1; param_2[1] = fVar2; param_2[2] = fVar3; param_2[3] = fVar1; param_2[4] = 0.0; param_2[5] = 0.0; return; }
45,075
plutovg_matrix_init_rotate
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-matrix.c
void plutovg_matrix_init_rotate(plutovg_matrix_t* matrix, float angle) { float c = cosf(angle); float s = sinf(angle); plutovg_matrix_init(matrix, c, s, -s, c, 0, 0); }
O3
c
plutovg_matrix_init_rotate: pushq %rbx subq $0x10, %rsp movss %xmm0, 0x8(%rsp) movq %rdi, %rbx callq 0xa250 movss %xmm0, 0xc(%rsp) movss 0x8(%rsp), %xmm0 callq 0xa280 movaps 0x1b703(%rip), %xmm1 # 0x43100 xorps %xmm0, %xmm1 movss 0xc(%rsp), %xmm2 movss %xmm2, (%rbx) movss %xmm0, 0x4(%rbx) movss %xmm1, 0x8(%rbx) movss %xmm2, 0xc(%rbx) movq $0x0, 0x10(%rbx) addq $0x10, %rsp popq %rbx retq
plutovg_matrix_init_rotate: push rbx sub rsp, 10h movss [rsp+18h+var_10], xmm0 mov rbx, rdi call _cosf movss [rsp+18h+var_C], xmm0 movss xmm0, [rsp+18h+var_10] call _sinf movaps xmm1, cs:xmmword_43100 xorps xmm1, xmm0 movss xmm2, [rsp+18h+var_C] movss dword ptr [rbx], xmm2 movss dword ptr [rbx+4], xmm0 movss dword ptr [rbx+8], xmm1 movss dword ptr [rbx+0Ch], xmm2 mov qword ptr [rbx+10h], 0 add rsp, 10h pop rbx retn
void plutovg_matrix_init_rotate(long long a1, float a2) { float v2; // xmm0_4 float v4; // [rsp+Ch] [rbp-Ch] v4 = cosf(); v2 = sinf(a2); *(float *)a1 = v4; *(float *)(a1 + 4) = v2; *(float *)(a1 + 8) = -v2; *(float *)(a1 + 12) = v4; *(_QWORD *)(a1 + 16) = 0LL; }
plutovg_matrix_init_rotate: PUSH RBX SUB RSP,0x10 MOVSS dword ptr [RSP + 0x8],XMM0 MOV RBX,RDI CALL 0x0010a250 MOVSS dword ptr [RSP + 0xc],XMM0 MOVSS XMM0,dword ptr [RSP + 0x8] CALL 0x0010a280 MOVAPS XMM1,xmmword ptr [0x00143100] XORPS XMM1,XMM0 MOVSS XMM2,dword ptr [RSP + 0xc] MOVSS dword ptr [RBX],XMM2 MOVSS dword ptr [RBX + 0x4],XMM0 MOVSS dword ptr [RBX + 0x8],XMM1 MOVSS dword ptr [RBX + 0xc],XMM2 MOV qword ptr [RBX + 0x10],0x0 ADD RSP,0x10 POP RBX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void plutovg_matrix_init_rotate(float param_1,float *param_2) { float fVar1; float fVar2; float fVar3; fVar1 = cosf(param_1); fVar2 = sinf(param_1); fVar3 = (float)(_DAT_00143100 ^ (uint)fVar2); *param_2 = fVar1; param_2[1] = fVar2; param_2[2] = fVar3; param_2[3] = fVar1; param_2[4] = 0.0; param_2[5] = 0.0; return; }
45,076
common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool)
monkey531[P]llama/common/common.cpp
std::string common_detokenize(const struct llama_vocab * vocab, const std::vector<llama_token> & tokens, bool special) { std::string text; text.resize(std::max(text.capacity(), tokens.size())); int32_t n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special); if (n_chars < 0) { text.resize(-n_chars); n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special); GGML_ASSERT(n_chars <= (int32_t)text.size()); // whitespace trimming is performed after per-token detokenization } text.resize(n_chars); // NOTE: the original tokenizer decodes bytes after collecting the pieces. return text; }
O0
cpp
common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool): subq $0xb8, %rsp movq %rdi, 0x68(%rsp) movb %cl, %al movq %rdi, %rcx movq %rcx, 0x60(%rsp) movq %rdi, 0xb0(%rsp) movq %rsi, 0xa8(%rsp) movq %rdx, 0xa0(%rsp) andb $0x1, %al movb %al, 0x9f(%rsp) movb $0x0, 0x9e(%rsp) callq 0x5c680 movq 0x68(%rsp), %rdi callq 0x5c3e0 movq %rax, 0x90(%rsp) movq 0xa0(%rsp), %rdi callq 0x6d0d0 movq %rax, 0x88(%rsp) leaq 0x90(%rsp), %rdi leaq 0x88(%rsp), %rsi callq 0x6a0b0 movq %rax, 0x70(%rsp) jmp 0xfb0b7 movq 0x68(%rsp), %rdi movq 0x70(%rsp), %rax movq (%rax), %rsi callq 0x5c7b0 jmp 0xfb0cb movq 0xa8(%rsp), %rax movq %rax, 0x40(%rsp) movq 0xa0(%rsp), %rdi callq 0x102890 movq %rax, 0x48(%rsp) movq 0xa0(%rsp), %rdi callq 0x6d0d0 movq 0x68(%rsp), %rdi movl %eax, 0x54(%rsp) xorl %eax, %eax movl %eax, %esi callq 0x5d680 movq %rax, 0x58(%rsp) jmp 0xfb110 movq 0x68(%rsp), %rdi callq 0x5c5a0 movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi movl 0x54(%rsp), %edx movq 0x58(%rsp), %rcx movl %eax, %r8d movzbl 0x9f(%rsp), %r9d andl $0x1, %r9d movq %rsp, %rax movl %r9d, (%rax) xorl %r9d, %r9d callq 0x5d4c0 movl %eax, 0x3c(%rsp) jmp 0xfb151 movl 0x3c(%rsp), %eax movl %eax, 0x78(%rsp) cmpl $0x0, 0x78(%rsp) jge 0xfb266 movq 0x68(%rsp), %rdi movl 0x78(%rsp), %eax negl %eax movslq %eax, %rsi callq 0x5c7b0 jmp 0xfb179 movq 0xa8(%rsp), %rax movq %rax, 0x18(%rsp) movq 0xa0(%rsp), %rdi callq 0x102890 movq %rax, 0x20(%rsp) movq 0xa0(%rsp), %rdi callq 0x6d0d0 movq 0x68(%rsp), %rdi movl %eax, 0x2c(%rsp) xorl %eax, %eax movl %eax, %esi callq 0x5d680 movq %rax, 0x30(%rsp) jmp 0xfb1be movq 0x68(%rsp), %rdi callq 0x5c5a0 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rsi movl 0x2c(%rsp), %edx movq 0x30(%rsp), %rcx movl %eax, %r8d movzbl 0x9f(%rsp), %r9d andl $0x1, %r9d movq %rsp, %rax movl %r9d, (%rax) xorl %r9d, %r9d callq 0x5d4c0 movl %eax, 0x14(%rsp) jmp 0xfb1ff movq 0x68(%rsp), %rdi movl 0x14(%rsp), %eax movl %eax, 0x78(%rsp) movl 0x78(%rsp), %eax movl %eax, 0x10(%rsp) callq 0x5c5a0 movq %rax, %rcx movl 0x10(%rsp), %eax cmpl %ecx, %eax jle 0xfb264 leaq 0x11d7da(%rip), %rdi # 0x218a05 leaq 0x114123(%rip), %rdx # 0x20f355 leaq 0x11de71(%rip), %rcx # 0x2190aa xorl %eax, %eax movl $0x6e2, %esi # imm = 0x6E2 callq 0x5d050 jmp 0xfb247 movq 0x68(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x80(%rsp) movl %eax, 0x7c(%rsp) callq 0x5d858 jmp 0xfb2a0 jmp 0xfb266 movq 0x68(%rsp), %rdi movslq 0x78(%rsp), %rsi callq 0x5c7b0 jmp 0xfb277 movb $0x1, 0x9e(%rsp) testb $0x1, 0x9e(%rsp) jne 0xfb293 movq 0x68(%rsp), %rdi callq 0x5d858 movq 0x60(%rsp), %rax addq $0xb8, %rsp retq movq 0x80(%rsp), %rdi callq 0x5ccd0 nopl (%rax)
_Z17common_detokenizeB5cxx11PK11llama_vocabRKSt6vectorIiSaIiEEb: sub rsp, 0B8h mov [rsp+0B8h+var_50], rdi mov al, cl mov rcx, rdi mov [rsp+0B8h+var_58], rcx mov [rsp+0B8h+var_8], rdi mov [rsp+0B8h+var_10], rsi mov [rsp+0B8h+var_18], rdx and al, 1 mov [rsp+0B8h+var_19], al mov [rsp+0B8h+var_1A], 0 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rdi, [rsp+0B8h+var_50] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv; std::string::capacity(void) mov [rsp+0B8h+var_28], rax mov rdi, [rsp+0B8h+var_18] call _ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void) mov [rsp+0B8h+var_30], rax lea rdi, [rsp+0B8h+var_28] lea rsi, [rsp+0B8h+var_30] call _ZSt3maxImERKT_S2_S2_; std::max<ulong>(ulong const&,ulong const&) mov [rsp+0B8h+var_48], rax jmp short $+2 loc_FB0B7: mov rdi, [rsp+0B8h+var_50] mov rax, [rsp+0B8h+var_48] mov rsi, [rax] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong) jmp short $+2 loc_FB0CB: mov rax, [rsp+0B8h+var_10] mov [rsp+0B8h+var_78], rax mov rdi, [rsp+0B8h+var_18] call _ZNKSt6vectorIiSaIiEE4dataEv; std::vector<int>::data(void) mov [rsp+0B8h+var_70], rax mov rdi, [rsp+0B8h+var_18] call _ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void) mov rdi, [rsp+0B8h+var_50] mov [rsp+0B8h+var_64], eax xor eax, eax mov esi, eax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) mov [rsp+0B8h+var_60], rax jmp short $+2 loc_FB110: mov rdi, [rsp+0B8h+var_50] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdi, [rsp+0B8h+var_78] mov rsi, [rsp+0B8h+var_70] mov edx, [rsp+0B8h+var_64] mov rcx, [rsp+0B8h+var_60] mov r8d, eax movzx r9d, [rsp+0B8h+var_19] and r9d, 1 mov rax, rsp mov [rax], r9d xor r9d, r9d call _llama_detokenize mov [rsp+0B8h+var_7C], eax jmp short $+2 loc_FB151: mov eax, [rsp+0B8h+var_7C] mov [rsp+0B8h+var_40], eax cmp [rsp+0B8h+var_40], 0 jge loc_FB266 mov rdi, [rsp+0B8h+var_50] mov eax, [rsp+0B8h+var_40] neg eax movsxd rsi, eax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong) jmp short $+2 loc_FB179: mov rax, [rsp+0B8h+var_10] mov [rsp+0B8h+var_A0], rax mov rdi, [rsp+0B8h+var_18] call _ZNKSt6vectorIiSaIiEE4dataEv; std::vector<int>::data(void) mov [rsp+0B8h+var_98], rax mov rdi, [rsp+0B8h+var_18] call _ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void) mov rdi, [rsp+0B8h+var_50] mov [rsp+0B8h+var_8C], eax xor eax, eax mov esi, eax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) mov [rsp+0B8h+var_88], rax jmp short $+2 loc_FB1BE: mov rdi, [rsp+0B8h+var_50] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdi, [rsp+0B8h+var_A0] mov rsi, [rsp+0B8h+var_98] mov edx, [rsp+0B8h+var_8C] mov rcx, [rsp+0B8h+var_88] mov r8d, eax movzx r9d, [rsp+0B8h+var_19] and r9d, 1 mov rax, rsp mov [rax], r9d xor r9d, r9d call _llama_detokenize mov [rsp+0B8h+var_A4], eax jmp short $+2 loc_FB1FF: mov rdi, [rsp+0B8h+var_50] mov eax, [rsp+0B8h+var_A4] mov [rsp+0B8h+var_40], eax mov eax, [rsp+0B8h+var_40] mov [rsp+0B8h+var_A8], eax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rcx, rax mov eax, [rsp+0B8h+var_A8] cmp eax, ecx jle short loc_FB264 lea rdi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aNCharsInt32TTe; "n_chars <= (int32_t)text.size()" xor eax, eax mov esi, 6E2h call _ggml_abort jmp short $+2 loc_FB247: mov rdi, [rsp+0B8h+var_50]; void * mov rcx, rax mov eax, edx mov [rsp+0B8h+var_38], rcx mov [rsp+0B8h+var_3C], eax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_FB2A0 loc_FB264: jmp short $+2 loc_FB266: mov rdi, [rsp+0B8h+var_50] movsxd rsi, [rsp+0B8h+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong) jmp short $+2 loc_FB277: mov [rsp+0B8h+var_1A], 1 test [rsp+0B8h+var_1A], 1 jnz short loc_FB293 mov rdi, [rsp+0B8h+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_FB293: mov rax, [rsp+0B8h+var_58] add rsp, 0B8h retn loc_FB2A0: mov rdi, [rsp+0B8h+var_38] call __Unwind_Resume
void * common_detokenize[abi:cxx11](void *a1, long long a2, _QWORD *a3, char a4) { unsigned int v4; // eax unsigned int v5; // eax long long v7; // [rsp+18h] [rbp-A0h] long long v8; // [rsp+20h] [rbp-98h] unsigned int v9; // [rsp+2Ch] [rbp-8Ch] long long v10; // [rsp+30h] [rbp-88h] long long v11; // [rsp+40h] [rbp-78h] long long v12; // [rsp+48h] [rbp-70h] unsigned int v13; // [rsp+54h] [rbp-64h] long long v14; // [rsp+58h] [rbp-60h] _QWORD *v15; // [rsp+70h] [rbp-48h] int v16; // [rsp+78h] [rbp-40h] long long v17; // [rsp+80h] [rbp-38h] long long v18; // [rsp+88h] [rbp-30h] BYREF long long v19; // [rsp+90h] [rbp-28h] BYREF char v20; // [rsp+9Eh] [rbp-1Ah] char v21; // [rsp+9Fh] [rbp-19h] _QWORD *v22; // [rsp+A0h] [rbp-18h] long long v23; // [rsp+A8h] [rbp-10h] void *v24; // [rsp+B0h] [rbp-8h] v24 = a1; v23 = a2; v22 = a3; v21 = a4 & 1; v20 = 0; std::string::basic_string(a1); v19 = std::string::capacity(a1); v18 = std::vector<int>::size(v22); v15 = std::max<unsigned long>(&v19, &v18); std::string::resize(a1, *v15); v11 = v23; v12 = std::vector<int>::data(v22); v13 = std::vector<int>::size(v22); v14 = std::string::operator[](a1, 0LL); v4 = std::string::size(a1); v16 = llama_detokenize(v11, v12, v13, v14, v4, 0LL, v21 & 1); if ( v16 < 0 ) { std::string::resize(a1, -v16); v7 = v23; v8 = std::vector<int>::data(v22); v9 = std::vector<int>::size(v22); v10 = std::string::operator[](a1, 0LL); v5 = std::string::size(a1); v16 = llama_detokenize(v7, v8, v9, v10, v5, 0LL, v21 & 1); if ( v16 > (int)std::string::size(a1) ) { v17 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp", 1762LL, "GGML_ASSERT(%s) failed", "n_chars <= (int32_t)text.size()"); std::string::~string(a1); _Unwind_Resume(v17); } } std::string::resize(a1, v16); return a1; }
common_detokenize[abi:cxx11]: SUB RSP,0xb8 MOV qword ptr [RSP + 0x68],RDI MOV AL,CL MOV RCX,RDI MOV qword ptr [RSP + 0x60],RCX MOV qword ptr [RSP + 0xb0],RDI MOV qword ptr [RSP + 0xa8],RSI MOV qword ptr [RSP + 0xa0],RDX AND AL,0x1 MOV byte ptr [RSP + 0x9f],AL MOV byte ptr [RSP + 0x9e],0x0 CALL 0x0015c680 MOV RDI,qword ptr [RSP + 0x68] CALL 0x0015c3e0 MOV qword ptr [RSP + 0x90],RAX MOV RDI,qword ptr [RSP + 0xa0] CALL 0x0016d0d0 MOV qword ptr [RSP + 0x88],RAX LAB_001fb09b: LEA RDI,[RSP + 0x90] LEA RSI,[RSP + 0x88] CALL 0x0016a0b0 MOV qword ptr [RSP + 0x70],RAX JMP 0x001fb0b7 LAB_001fb0b7: MOV RDI,qword ptr [RSP + 0x68] MOV RAX,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RAX] CALL 0x0015c7b0 JMP 0x001fb0cb LAB_001fb0cb: MOV RAX,qword ptr [RSP + 0xa8] MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0xa0] CALL 0x00202890 MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0xa0] CALL 0x0016d0d0 MOV RDI,qword ptr [RSP + 0x68] MOV dword ptr [RSP + 0x54],EAX XOR EAX,EAX MOV ESI,EAX CALL 0x0015d680 MOV qword ptr [RSP + 0x58],RAX JMP 0x001fb110 LAB_001fb110: MOV RDI,qword ptr [RSP + 0x68] CALL 0x0015c5a0 MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x48] MOV EDX,dword ptr [RSP + 0x54] MOV RCX,qword ptr [RSP + 0x58] MOV R8D,EAX MOVZX R9D,byte ptr [RSP + 0x9f] AND R9D,0x1 MOV RAX,RSP MOV dword ptr [RAX],R9D XOR R9D,R9D CALL 0x0015d4c0 MOV dword ptr [RSP + 0x3c],EAX JMP 0x001fb151 LAB_001fb151: MOV EAX,dword ptr [RSP + 0x3c] MOV dword ptr [RSP + 0x78],EAX CMP dword ptr [RSP + 0x78],0x0 JGE 0x001fb266 MOV RDI,qword ptr [RSP + 0x68] MOV EAX,dword ptr [RSP + 0x78] NEG EAX MOVSXD RSI,EAX CALL 0x0015c7b0 JMP 0x001fb179 LAB_001fb179: MOV RAX,qword ptr [RSP + 0xa8] MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0xa0] CALL 0x00202890 MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0xa0] CALL 0x0016d0d0 MOV RDI,qword ptr [RSP + 0x68] MOV dword ptr [RSP + 0x2c],EAX XOR EAX,EAX MOV ESI,EAX CALL 0x0015d680 MOV qword ptr [RSP + 0x30],RAX JMP 0x001fb1be LAB_001fb1be: MOV RDI,qword ptr [RSP + 0x68] CALL 0x0015c5a0 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] MOV EDX,dword ptr [RSP + 0x2c] MOV RCX,qword ptr [RSP + 0x30] MOV R8D,EAX MOVZX R9D,byte ptr [RSP + 0x9f] AND R9D,0x1 MOV RAX,RSP MOV dword ptr [RAX],R9D XOR R9D,R9D CALL 0x0015d4c0 MOV dword ptr [RSP + 0x14],EAX JMP 0x001fb1ff LAB_001fb1ff: MOV RDI,qword ptr [RSP + 0x68] MOV EAX,dword ptr [RSP + 0x14] MOV dword ptr [RSP + 0x78],EAX MOV EAX,dword ptr [RSP + 0x78] MOV dword ptr [RSP + 0x10],EAX CALL 0x0015c5a0 MOV RCX,RAX MOV EAX,dword ptr [RSP + 0x10] CMP EAX,ECX JLE 0x001fb264 LEA RDI,[0x318a05] LEA RDX,[0x30f355] LEA RCX,[0x3190aa] XOR EAX,EAX MOV ESI,0x6e2 CALL 0x0015d050 JMP 0x001fb247 LAB_001fb247: MOV RDI,qword ptr [RSP + 0x68] MOV RCX,RAX MOV EAX,EDX MOV qword ptr [RSP + 0x80],RCX MOV dword ptr [RSP + 0x7c],EAX CALL 0x0015d858 JMP 0x001fb2a0 LAB_001fb264: JMP 0x001fb266 LAB_001fb266: MOV RDI,qword ptr [RSP + 0x68] MOVSXD RSI,dword ptr [RSP + 0x78] CALL 0x0015c7b0 LAB_001fb275: JMP 0x001fb277 LAB_001fb277: MOV byte ptr [RSP + 0x9e],0x1 TEST byte ptr [RSP + 0x9e],0x1 JNZ 0x001fb293 MOV RDI,qword ptr [RSP + 0x68] CALL 0x0015d858 LAB_001fb293: MOV RAX,qword ptr [RSP + 0x60] ADD RSP,0xb8 RET LAB_001fb2a0: MOV RDI,qword ptr [RSP + 0x80] CALL 0x0015ccd0
/* WARNING: Removing unreachable block (ram,0x001fb289) */ /* common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int> > const&, bool) */ llama_vocab * common_detokenize_abi_cxx11_(llama_vocab *param_1,vector *param_2,bool param_3) { vector *pvVar1; int4 uVar2; int4 uVar3; int iVar4; int iVar5; int8 uVar6; int8 uVar7; byte in_CL; int7 in_register_00000011; ulong local_30; ulong local_28; int1 local_1a; byte local_19; vector<int,std::allocator<int>> *local_18; vector *local_10; llama_vocab *local_8; local_18 = (vector<int,std::allocator<int>> *)CONCAT71(in_register_00000011,param_3); local_19 = in_CL & 1; local_1a = 0; local_10 = param_2; local_8 = param_1; std::__cxx11::string::string((string *)param_1); local_28 = std::__cxx11::string::capacity(); local_30 = std::vector<int,std::allocator<int>>::size(local_18); /* try { // try from 001fb09b to 001fb274 has its CatchHandler @ 001fb247 */ std::max<unsigned_long>(&local_28,&local_30); std::__cxx11::string::resize((ulong)param_1); pvVar1 = local_10; uVar6 = std::vector<int,std::allocator<int>>::data(local_18); uVar2 = std::vector<int,std::allocator<int>>::size(local_18); uVar7 = std::__cxx11::string::operator[]((ulong)param_1); uVar3 = std::__cxx11::string::size(); iVar4 = llama_detokenize(pvVar1,uVar6,uVar2,uVar7,uVar3,0,local_19 & 1); if (iVar4 < 0) { std::__cxx11::string::resize((ulong)param_1); pvVar1 = local_10; uVar6 = std::vector<int,std::allocator<int>>::data(local_18); uVar2 = std::vector<int,std::allocator<int>>::size(local_18); uVar7 = std::__cxx11::string::operator[]((ulong)param_1); uVar3 = std::__cxx11::string::size(); iVar4 = llama_detokenize(pvVar1,uVar6,uVar2,uVar7,uVar3,0,local_19 & 1); iVar5 = std::__cxx11::string::size(); if (iVar5 < iVar4) { uVar6 = ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp" ,0x6e2,"GGML_ASSERT(%s) failed","n_chars <= (int32_t)text.size()"); /* catch() { ... } // from try @ 001fb09b with catch @ 001fb247 */ std::__cxx11::string::~string((string *)param_1); /* WARNING: Subroutine does not return */ _Unwind_Resume(uVar6); } } std::__cxx11::string::resize((ulong)param_1); return param_1; }
45,077
common_log::add(ggml_log_level, char const*, __va_list_tag*)
monkey531[P]llama/common/log.cpp
void add(enum ggml_log_level level, const char * fmt, va_list args) { std::lock_guard<std::mutex> lock(mtx); if (!running) { // discard messages while the worker thread is paused return; } auto & entry = entries[tail]; { // cannot use args twice, so make a copy in case we need to expand the buffer va_list args_copy; va_copy(args_copy, args); #if 1 const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args); if (n >= entry.msg.size()) { entry.msg.resize(n + 1); vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args_copy); } #else // hack for bolding arguments std::stringstream ss; for (int i = 0; fmt[i] != 0; i++) { if (fmt[i] == '%') { ss << LOG_COL_BOLD; while (fmt[i] != ' ' && fmt[i] != ')' && fmt[i] != ']' && fmt[i] != 0) ss << fmt[i++]; ss << LOG_COL_DEFAULT; if (fmt[i] == 0) break; } ss << fmt[i]; } const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args); if (n >= entry.msg.size()) { entry.msg.resize(n + 1); vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args_copy); } #endif va_end(args_copy); } entry.level = level; entry.prefix = prefix; entry.timestamp = 0; if (timestamps) { entry.timestamp = t_us() - t_start; } entry.is_end = false; tail = (tail + 1) % entries.size(); if (tail == head) { // expand the buffer std::vector<common_log_entry> new_entries(2*entries.size()); size_t new_tail = 0; do { new_entries[new_tail] = std::move(entries[head]); head = (head + 1) % entries.size(); new_tail = (new_tail + 1); } while (head != tail); head = 0; tail = new_tail; for (size_t i = tail; i < new_entries.size(); i++) { new_entries[i].msg.resize(256); } entries = std::move(new_entries); } cv.notify_one(); }
O3
cpp
common_log::add(ggml_log_level, char const*, __va_list_tag*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %r15 movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx callq 0x189b0 testl %eax, %eax jne 0x7f06c cmpb $0x1, 0x6a(%rbx) jne 0x7f055 movl %ebp, 0xc(%rsp) movq 0x78(%rbx), %r13 movq 0x98(%rbx), %rax leaq (%rax,%rax,2), %rbp shlq $0x4, %rbp movq %r13, %r12 addq %rbp, %r12 movq 0x10(%r15), %rax movq %rax, 0x40(%rsp) movups (%r15), %xmm0 movaps %xmm0, 0x30(%rsp) movq 0x10(%r13,%rbp), %rdi movq 0x18(%r13,%rbp), %rsi subq %rdi, %rsi movq %r14, %rdx movq %r15, %rcx callq 0x18d38 movslq %eax, %rsi movq 0x18(%r13,%rbp), %rax subq 0x10(%r13,%rbp), %rax cmpq %rsi, %rax ja 0x7ee54 leaq 0x10(,%rbp), %rdi addq %r13, %rdi incq %rsi callq 0x2a1b4 movq 0x10(%r12), %rdi movq 0x18(%r12), %rsi subq %rdi, %rsi leaq 0x30(%rsp), %rcx movq %r14, %rdx callq 0x18d38 movl 0xc(%rsp), %eax movl %eax, (%r12) movb 0x68(%rbx), %al movb %al, 0x4(%r12) movq $0x0, 0x8(%r12) cmpb $0x1, 0x69(%rbx) jne 0x7ee9c callq 0x18080 movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF imulq %rcx movq %rdx, %rax shrq $0x3f, %rax sarq $0x7, %rdx addq %rax, %rdx subq 0x70(%rbx), %rdx movq %rdx, 0x8(%r12) movb $0x0, 0x28(%r12) movq 0x80(%rbx), %rsi movq 0x98(%rbx), %rax incq %rax subq 0x78(%rbx), %rsi sarq $0x4, %rsi movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB imulq %r14, %rsi xorl %edx, %edx divq %rsi movq %rdx, 0x98(%rbx) cmpq 0x90(%rbx), %rdx jne 0x7f04c addq %rsi, %rsi leaq 0x10(%rsp), %rdi leaq 0x30(%rsp), %rdx movq %rbx, (%rsp) callq 0x7fade movq 0x78(%rbx), %rcx movq 0x90(%rbx), %rdx movl $0x10, %r12d xorl %ebp, %ebp xorl %r13d, %r13d leaq (%rdx,%rdx,2), %rax shlq $0x4, %rax movq 0x10(%rsp), %r15 movq %r14, %rbx leaq (%rcx,%rax), %r14 addq $0x10, %r14 movups -0x10(%r14), %xmm0 movups %xmm0, (%r15,%rbp) leaq (%r15,%r12), %rdi movq %r14, %rsi callq 0x7fb5c movb 0x18(%r14), %al movq %rbx, %r14 movq (%rsp), %rbx movb %al, 0x28(%r15,%rbp) movq 0x90(%rbx), %rax incq %rax movq 0x78(%rbx), %rcx movq 0x80(%rbx), %rsi movq %rsi, %rdi subq %rcx, %rdi sarq $0x4, %rdi imulq %r14, %rdi xorl %edx, %edx divq %rdi movq %rdx, 0x90(%rbx) incq %r13 addq $0x30, %r12 addq $0x30, %rbp cmpq 0x98(%rbx), %rdx jne 0x7ef0e movq $0x0, 0x90(%rbx) movq %r13, 0x98(%rbx) movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rax movq %rax, %rdx subq %rdi, %rdx sarq $0x4, %rdx imulq %r14, %rdx cmpq %rdx, %r13 jae 0x7effe addq %r12, %rdi movl $0x100, %esi # imm = 0x100 callq 0x2a1b4 incq %r13 movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rax movq %rax, %rcx subq %rdi, %rcx sarq $0x4, %rcx imulq %r14, %rcx addq $0x30, %r12 cmpq %rcx, %r13 jb 0x7efc2 movq 0x78(%rbx), %rcx movq 0x80(%rbx), %rsi movq 0x88(%rbx), %rdx movq %rdi, 0x78(%rbx) movq %rax, 0x80(%rbx) leaq 0x10(%rsp), %r14 movq 0x10(%r14), %rax movq %rax, 0x88(%rbx) leaq 0x30(%rsp), %rdi movq %rcx, (%rdi) movq %rsi, 0x8(%rdi) movq %rdx, 0x10(%rdi) xorps %xmm0, %xmm0 movaps %xmm0, (%r14) movq $0x0, 0x10(%r14) callq 0x7f354 movq %r14, %rdi callq 0x7f354 leaq 0x30(%rbx), %rdi callq 0x18360 movq %rbx, %rdi callq 0x18520 addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %eax, %edi callq 0x18470 jmp 0x7f079 movq %rbx, (%rsp) movq %rax, %r14 jmp 0x7f08b movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x7f354 movq (%rsp), %rdi callq 0x18520 movq %r14, %rdi callq 0x18ba0
_ZN10common_log3addE14ggml_log_levelPKcP13__va_list_tag: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r15, rcx mov r14, rdx mov ebp, esi mov rbx, rdi call _pthread_mutex_lock test eax, eax jnz loc_7F06C cmp byte ptr [rbx+6Ah], 1 jnz loc_7F055 mov [rsp+78h+var_6C], ebp mov r13, [rbx+78h] mov rax, [rbx+98h] lea rbp, [rax+rax*2] shl rbp, 4 mov r12, r13 add r12, rbp mov rax, [r15+10h] mov [rsp+78h+var_38], rax movups xmm0, xmmword ptr [r15] movaps [rsp+78h+var_48], xmm0 mov rdi, [r13+rbp+10h] mov rsi, [r13+rbp+18h] sub rsi, rdi mov rdx, r14 mov rcx, r15 call vsnprintf movsxd rsi, eax mov rax, [r13+rbp+18h] sub rax, [r13+rbp+10h] cmp rax, rsi ja short loc_7EE54 lea rdi, ds:10h[rbp] add rdi, r13 inc rsi call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong) mov rdi, [r12+10h]; this mov rsi, [r12+18h] sub rsi, rdi lea rcx, [rsp+78h+var_48] mov rdx, r14 call vsnprintf loc_7EE54: mov eax, [rsp+78h+var_6C] mov [r12], eax mov al, [rbx+68h] mov [r12+4], al mov qword ptr [r12+8], 0 cmp byte ptr [rbx+69h], 1 jnz short loc_7EE9C call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void) mov rcx, 20C49BA5E353F7CFh imul rcx mov rax, rdx shr rax, 3Fh sar rdx, 7 add rdx, rax sub rdx, [rbx+70h] mov [r12+8], rdx loc_7EE9C: mov byte ptr [r12+28h], 0 mov rsi, [rbx+80h] mov rax, [rbx+98h] inc rax sub rsi, [rbx+78h] sar rsi, 4 mov r14, 0AAAAAAAAAAAAAAABh imul rsi, r14 xor edx, edx div rsi mov [rbx+98h], rdx cmp rdx, [rbx+90h] jnz loc_7F04C add rsi, rsi lea rdi, [rsp+78h+var_68] lea rdx, [rsp+78h+var_48] mov [rsp+78h+var_78], rbx call _ZNSt6vectorI16common_log_entrySaIS0_EEC2EmRKS1_; std::vector<common_log_entry>::vector(ulong,std::allocator<common_log_entry> const&) mov rcx, [rbx+78h] mov rdx, [rbx+90h] mov r12d, 10h xor ebp, ebp xor r13d, r13d loc_7EF0E: lea rax, [rdx+rdx*2] shl rax, 4 mov r15, [rsp+78h+var_68] mov rbx, r14 lea r14, [rcx+rax] add r14, 10h movups xmm0, xmmword ptr [r14-10h] movups xmmword ptr [r15+rbp], xmm0 lea rdi, [r15+r12] mov rsi, r14 call _ZNSt6vectorIcSaIcEE14_M_move_assignEOS1_St17integral_constantIbLb1EE; std::vector<char>::_M_move_assign(std::vector<char>&&,std::integral_constant<bool,true>) mov al, [r14+18h] mov r14, rbx mov rbx, [rsp+78h+var_78] mov [r15+rbp+28h], al mov rax, [rbx+90h] inc rax mov rcx, [rbx+78h] mov rsi, [rbx+80h] mov rdi, rsi sub rdi, rcx sar rdi, 4 imul rdi, r14 xor edx, edx div rdi mov [rbx+90h], rdx inc r13 add r12, 30h ; '0' add rbp, 30h ; '0' cmp rdx, [rbx+98h] jnz loc_7EF0E mov qword ptr [rbx+90h], 0 mov [rbx+98h], r13 mov rdi, [rsp+78h+var_68] mov rax, [rsp+78h+var_60] mov rdx, rax sub rdx, rdi sar rdx, 4 imul rdx, r14 cmp r13, rdx jnb short loc_7EFFE loc_7EFC2: add rdi, r12 mov esi, 100h call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong) inc r13 mov rdi, [rsp+78h+var_68] mov rax, [rsp+78h+var_60] mov rcx, rax sub rcx, rdi sar rcx, 4 imul rcx, r14 add r12, 30h ; '0' cmp r13, rcx jb short loc_7EFC2 mov rcx, [rbx+78h] mov rsi, [rbx+80h] loc_7EFFE: mov rdx, [rbx+88h] mov [rbx+78h], rdi mov [rbx+80h], rax lea r14, [rsp+78h+var_68] mov rax, [r14+10h] mov [rbx+88h], rax lea rdi, [rsp+78h+var_48] mov [rdi], rcx mov [rdi+8], rsi mov [rdi+10h], rdx xorps xmm0, xmm0 movaps xmmword ptr [r14], xmm0 mov qword ptr [r14+10h], 0 call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector() mov rdi, r14 call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector() loc_7F04C: lea rdi, [rbx+30h]; this call __ZNSt18condition_variable10notify_oneEv; std::condition_variable::notify_one(void) loc_7F055: mov rdi, rbx call _pthread_mutex_unlock add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7F06C: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) jmp short loc_7F079 mov [rsp+78h+var_78], rbx loc_7F079: mov r14, rax jmp short loc_7F08B mov r14, rax lea rdi, [rsp+78h+var_68] call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector() loc_7F08B: mov rdi, [rsp+78h+var_78] call _pthread_mutex_unlock mov rdi, r14 call __Unwind_Resume
long long common_log::add(long long a1, int a2, long long a3, __int128 *a4) { _QWORD *v6; // rbx int v7; // eax long long v8; // r13 long long v9; // rbp long long v10; // r12 std::chrono::_V2::system_clock *v11; // rdi unsigned long long v12; // rsi unsigned long long v13; // r14 unsigned long long v14; // rsi unsigned long long v15; // rdx long long v16; // rcx unsigned long long v17; // rdx long long v18; // r12 long long v19; // rbp unsigned long long v20; // r13 long long v21; // r15 unsigned long long v22; // rbx long long v23; // r14 char v24; // al long long v25; // rsi __int128 v26; // kr00_16 long long v27; // rdx _QWORD *v29; // [rsp+0h] [rbp-78h] __int128 v31; // [rsp+10h] [rbp-68h] BYREF long long v32; // [rsp+20h] [rbp-58h] __int128 v33; // [rsp+30h] [rbp-48h] BYREF long long v34; // [rsp+40h] [rbp-38h] v6 = (_QWORD *)a1; v7 = pthread_mutex_lock(); if ( v7 ) std::__throw_system_error(v7); if ( *(_BYTE *)(a1 + 106) == 1 ) { v8 = *(_QWORD *)(a1 + 120); v9 = 48LL * *(_QWORD *)(a1 + 152); v10 = v9 + v8; v34 = *((_QWORD *)a4 + 2); v33 = *a4; v11 = *(std::chrono::_V2::system_clock **)(v8 + v9 + 16); v12 = (int)vsnprintf(v11, *(_QWORD *)(v8 + v9 + 24) - (_QWORD)v11, a3, a4); if ( *(_QWORD *)(v8 + v9 + 24) - *(_QWORD *)(v8 + v9 + 16) <= v12 ) { std::vector<char>::resize((_QWORD *)(v8 + v9 + 16), v12 + 1); v11 = *(std::chrono::_V2::system_clock **)(v10 + 16); vsnprintf(v11, *(_QWORD *)(v10 + 24) - (_QWORD)v11, a3, &v33); } *(_DWORD *)v10 = a2; *(_BYTE *)(v10 + 4) = *((_BYTE *)v6 + 104); *(_QWORD *)(v10 + 8) = 0LL; if ( *((_BYTE *)v6 + 105) == 1 ) *(_QWORD *)(v10 + 8) = std::chrono::_V2::system_clock::now(v11) / 1000LL - v6[14]; *(_BYTE *)(v10 + 40) = 0; v13 = 0xAAAAAAAAAAAAAAABLL; v14 = 0xAAAAAAAAAAAAAAABLL * ((long long)(v6[16] - v6[15]) >> 4); v15 = (v6[19] + 1LL) % v14; v6[19] = v15; if ( v15 == v6[18] ) { v29 = v6; std::vector<common_log_entry>::vector(&v31, 2 * v14, &v33); v16 = v6[15]; v17 = v6[18]; v18 = 16LL; v19 = 0LL; v20 = 0LL; do { v21 = v31; v22 = v13; v23 = v16 + 48 * v17 + 16; *(_OWORD *)(v31 + v19) = *(_OWORD *)(v16 + 48 * v17); std::vector<char>::_M_move_assign(v21 + v18, v23); v24 = *(_BYTE *)(v23 + 24); v13 = v22; v6 = v29; *(_BYTE *)(v21 + v19 + 40) = v24; v16 = v29[15]; v25 = v29[16]; v17 = (v29[18] + 1LL) % (v13 * ((v25 - v16) >> 4)); v29[18] = v17; ++v20; v18 += 48LL; v19 += 48LL; } while ( v17 != v29[19] ); v29[18] = 0LL; v29[19] = v20; v26 = v31; if ( v20 < v13 * ((long long)(*((_QWORD *)&v31 + 1) - v31) >> 4) ) { do { std::vector<char>::resize((_QWORD *)(v18 + v26), 0x100uLL); ++v20; v18 += 48LL; v26 = v31; } while ( v20 < v13 * ((long long)(*((_QWORD *)&v31 + 1) - v31) >> 4) ); v16 = v29[15]; v25 = v29[16]; } v27 = v29[17]; *(_OWORD *)(v29 + 15) = v26; v29[17] = v32; *(_QWORD *)&v33 = v16; *((_QWORD *)&v33 + 1) = v25; v34 = v27; v31 = 0LL; v32 = 0LL; std::vector<common_log_entry>::~vector(&v33); std::vector<common_log_entry>::~vector(&v31); } std::condition_variable::notify_one((std::condition_variable *)(v6 + 6)); } return pthread_mutex_unlock(v6); }
add: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R15,RCX MOV R14,RDX MOV EBP,ESI MOV RBX,RDI CALL 0x001189b0 TEST EAX,EAX JNZ 0x0017f06c CMP byte ptr [RBX + 0x6a],0x1 JNZ 0x0017f055 MOV dword ptr [RSP + 0xc],EBP MOV R13,qword ptr [RBX + 0x78] MOV RAX,qword ptr [RBX + 0x98] LEA RBP,[RAX + RAX*0x2] SHL RBP,0x4 MOV R12,R13 ADD R12,RBP MOV RAX,qword ptr [R15 + 0x10] MOV qword ptr [RSP + 0x40],RAX MOVUPS XMM0,xmmword ptr [R15] MOVAPS xmmword ptr [RSP + 0x30],XMM0 MOV RDI,qword ptr [R13 + RBP*0x1 + 0x10] MOV RSI,qword ptr [R13 + RBP*0x1 + 0x18] SUB RSI,RDI MOV RDX,R14 MOV RCX,R15 CALL 0x00118d38 MOVSXD RSI,EAX MOV RAX,qword ptr [R13 + RBP*0x1 + 0x18] SUB RAX,qword ptr [R13 + RBP*0x1 + 0x10] CMP RAX,RSI JA 0x0017ee54 LEA RDI,[0x10 + RBP*0x1] ADD RDI,R13 INC RSI LAB_0017ee35: CALL 0x0012a1b4 MOV RDI,qword ptr [R12 + 0x10] MOV RSI,qword ptr [R12 + 0x18] SUB RSI,RDI LEA RCX,[RSP + 0x30] MOV RDX,R14 CALL 0x00118d38 LAB_0017ee54: MOV EAX,dword ptr [RSP + 0xc] MOV dword ptr [R12],EAX MOV AL,byte ptr [RBX + 0x68] MOV byte ptr [R12 + 0x4],AL MOV qword ptr [R12 + 0x8],0x0 CMP byte ptr [RBX + 0x69],0x1 JNZ 0x0017ee9c CALL 0x00118080 MOV RCX,0x20c49ba5e353f7cf IMUL RCX MOV RAX,RDX SHR RAX,0x3f SAR RDX,0x7 ADD RDX,RAX SUB RDX,qword ptr [RBX + 0x70] MOV qword ptr [R12 + 0x8],RDX LAB_0017ee9c: MOV byte ptr [R12 + 0x28],0x0 MOV RSI,qword ptr [RBX + 0x80] MOV RAX,qword ptr [RBX + 0x98] INC RAX SUB RSI,qword ptr [RBX + 0x78] SAR RSI,0x4 MOV R14,-0x5555555555555555 IMUL RSI,R14 XOR EDX,EDX DIV RSI MOV qword ptr [RBX + 0x98],RDX CMP RDX,qword ptr [RBX + 0x90] JNZ 0x0017f04c ADD RSI,RSI LAB_0017eee5: LEA RDI,[RSP + 0x10] LEA RDX,[RSP + 0x30] MOV qword ptr [RSP],RBX CALL 0x0017fade MOV RCX,qword ptr [RBX + 0x78] MOV RDX,qword ptr [RBX + 0x90] MOV R12D,0x10 XOR EBP,EBP XOR R13D,R13D LAB_0017ef0e: LEA RAX,[RDX + RDX*0x2] SHL RAX,0x4 MOV R15,qword ptr [RSP + 0x10] MOV RBX,R14 LEA R14,[RCX + RAX*0x1] ADD R14,0x10 MOVUPS XMM0,xmmword ptr [R14 + -0x10] MOVUPS xmmword ptr [R15 + RBP*0x1],XMM0 LEA RDI,[R15 + R12*0x1] MOV RSI,R14 CALL 0x0017fb5c MOV AL,byte ptr [R14 + 0x18] MOV R14,RBX MOV RBX,qword ptr [RSP] MOV byte ptr [R15 + RBP*0x1 + 0x28],AL MOV RAX,qword ptr [RBX + 0x90] INC RAX MOV RCX,qword ptr [RBX + 0x78] MOV RSI,qword ptr [RBX + 0x80] MOV RDI,RSI SUB RDI,RCX SAR RDI,0x4 IMUL RDI,R14 XOR EDX,EDX DIV RDI MOV qword ptr [RBX + 0x90],RDX INC R13 ADD R12,0x30 ADD RBP,0x30 CMP RDX,qword ptr [RBX + 0x98] JNZ 0x0017ef0e MOV qword ptr [RBX + 0x90],0x0 MOV qword ptr [RBX + 0x98],R13 MOV RDI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x18] MOV RDX,RAX SUB RDX,RDI SAR RDX,0x4 IMUL RDX,R14 CMP R13,RDX JNC 0x0017effe LAB_0017efc2: ADD RDI,R12 LAB_0017efc5: MOV ESI,0x100 CALL 0x0012a1b4 LAB_0017efcf: INC R13 MOV RDI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x18] MOV RCX,RAX SUB RCX,RDI SAR RCX,0x4 IMUL RCX,R14 ADD R12,0x30 CMP R13,RCX JC 0x0017efc2 MOV RCX,qword ptr [RBX + 0x78] MOV RSI,qword ptr [RBX + 0x80] LAB_0017effe: MOV RDX,qword ptr [RBX + 0x88] MOV qword ptr [RBX + 0x78],RDI MOV qword ptr [RBX + 0x80],RAX LEA R14,[RSP + 0x10] MOV RAX,qword ptr [R14 + 0x10] MOV qword ptr [RBX + 0x88],RAX LEA RDI,[RSP + 0x30] MOV qword ptr [RDI],RCX MOV qword ptr [RDI + 0x8],RSI MOV qword ptr [RDI + 0x10],RDX XORPS XMM0,XMM0 MOVAPS xmmword ptr [R14],XMM0 MOV qword ptr [R14 + 0x10],0x0 CALL 0x0017f354 MOV RDI,R14 CALL 0x0017f354 LAB_0017f04c: LEA RDI,[RBX + 0x30] CALL 0x00118360 LAB_0017f055: MOV RDI,RBX CALL 0x00118520 ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017f06c: MOV EDI,EAX CALL 0x00118470
/* common_log::add(ggml_log_level, char const*, __va_list_tag*) */ void __thiscall common_log::add(common_log *this,int4 param_2,char *param_3,long *param_4) { int4 *puVar1; char *__s; int4 uVar2; int4 uVar3; int4 uVar4; int iVar5; long lVar6; ulong uVar7; long lVar8; long lVar9; int4 *puVar10; long lVar11; ulong uVar12; long local_68; long lStack_60; int8 local_58; long local_48; long lStack_40; long local_38; iVar5 = pthread_mutex_lock((pthread_mutex_t *)this); if (iVar5 == 0) { if (this[0x6a] == (common_log)0x1) { lVar6 = *(long *)(this + 0x78); lVar8 = *(long *)(this + 0x98) * 0x30; puVar10 = (int4 *)(lVar6 + lVar8); local_38 = param_4[2]; local_48 = *param_4; lStack_40 = param_4[1]; __s = *(char **)(lVar6 + 0x10 + lVar8); iVar5 = vsnprintf(__s,*(long *)(lVar6 + 0x18 + lVar8) - (long)__s,param_3,param_4); if ((ulong)(*(long *)(lVar6 + 0x18 + lVar8) - *(long *)(lVar6 + 0x10 + lVar8)) <= (ulong)(long)iVar5) { /* try { // try from 0017ee35 to 0017ee39 has its CatchHandler @ 0017f075 */ std::vector<char,std::allocator<char>>::resize ((vector<char,std::allocator<char>> *)(lVar8 + 0x10 + lVar6),(long)iVar5 + 1); vsnprintf(*(char **)(puVar10 + 4),*(long *)(puVar10 + 6) - (long)*(char **)(puVar10 + 4), param_3,&local_48); } *puVar10 = param_2; *(common_log *)(puVar10 + 1) = this[0x68]; *(int8 *)(puVar10 + 2) = 0; if (this[0x69] == (common_log)0x1) { lVar6 = std::chrono::_V2::system_clock::now(); *(long *)(puVar10 + 2) = lVar6 / 1000 - *(long *)(this + 0x70); } *(int1 *)(puVar10 + 10) = 0; lVar6 = *(long *)(this + 0x80) - *(long *)(this + 0x78) >> 4; uVar7 = (*(long *)(this + 0x98) + 1U) % (ulong)(lVar6 * -0x5555555555555555); *(ulong *)(this + 0x98) = uVar7; if (uVar7 == *(ulong *)(this + 0x90)) { /* try { // try from 0017eee5 to 0017eef7 has its CatchHandler @ 0017f073 */ std::vector<common_log_entry,std::allocator<common_log_entry>>::vector ((ulong)&local_68,(allocator *)(lVar6 * 0x5555555555555556)); lVar6 = *(long *)(this + 0x78); uVar7 = *(ulong *)(this + 0x90); lVar11 = 0x10; lVar8 = 0; uVar12 = 0; do { lVar9 = local_68; puVar10 = (int4 *)(lVar6 + uVar7 * 0x30); uVar2 = puVar10[1]; uVar3 = puVar10[2]; uVar4 = puVar10[3]; puVar1 = (int4 *)(local_68 + lVar8); *puVar1 = *puVar10; puVar1[1] = uVar2; puVar1[2] = uVar3; puVar1[3] = uVar4; std::vector<char,std::allocator<char>>::_M_move_assign(local_68 + lVar11,puVar10 + 4); *(int1 *)(lVar9 + 0x28 + lVar8) = *(int1 *)(puVar10 + 10); lVar6 = *(long *)(this + 0x78); lVar9 = *(long *)(this + 0x80); uVar7 = (*(long *)(this + 0x90) + 1U) % (ulong)((lVar9 - lVar6 >> 4) * -0x5555555555555555); *(ulong *)(this + 0x90) = uVar7; uVar12 = uVar12 + 1; lVar11 = lVar11 + 0x30; lVar8 = lVar8 + 0x30; } while (uVar7 != *(ulong *)(this + 0x98)); *(int8 *)(this + 0x90) = 0; *(ulong *)(this + 0x98) = uVar12; if (uVar12 < (ulong)((lStack_60 - local_68 >> 4) * -0x5555555555555555)) { do { /* try { // try from 0017efc5 to 0017efce has its CatchHandler @ 0017f07e */ std::vector<char,std::allocator<char>>::resize ((vector<char,std::allocator<char>> *)(local_68 + lVar11),0x100); uVar12 = uVar12 + 1; lVar11 = lVar11 + 0x30; } while (uVar12 < (ulong)((lStack_60 - local_68 >> 4) * -0x5555555555555555)); lVar6 = *(long *)(this + 0x78); lVar9 = *(long *)(this + 0x80); } local_38 = *(long *)(this + 0x88); *(long *)(this + 0x78) = local_68; *(long *)(this + 0x80) = lStack_60; *(int8 *)(this + 0x88) = local_58; local_68 = 0; lStack_60 = 0; local_58 = 0; local_48 = lVar6; lStack_40 = lVar9; std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector ((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_48); std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector ((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_68); } std::condition_variable::notify_one(); } pthread_mutex_unlock((pthread_mutex_t *)this); return; } /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar5); }
45,078
google::protobuf::compiler::cpp::FileDllExport[abi:cxx11](google::protobuf::FileDescriptor const*, google::protobuf::compiler::cpp::Options const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/helpers.cc
std::string FileDllExport(const FileDescriptor* file, const Options& options) { return UniqueName("PROTOBUF_INTERNAL_EXPORT", file, options); }
O3
cpp
google::protobuf::compiler::cpp::FileDllExport[abi:cxx11](google::protobuf::FileDescriptor const*, google::protobuf::compiler::cpp::Options const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x167e70(%rip), %rsi # 0x19d5bf leaq 0x167e81(%rip), %rdx # 0x19d5d7 leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x250b2 movq 0x8(%r14), %rdx movq %rbx, %rdi movq %r15, %rsi callq 0x37183 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x35781 callq 0x1f4a0 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x357a2 callq 0x1f4a0 movq %rbx, %rdi callq 0x1f860
_ZN6google8protobuf8compiler3cpp13FileDllExportB5cxx11EPKNS0_14FileDescriptorERKNS2_7OptionsE: push r15 push r14 push r12; char push rbx; int sub rsp, 28h mov r14, rsi mov rbx, rdi lea r12, [rsp+48h+var_30] mov [r12-10h], r12 lea rsi, aProtobufIntern; "PROTOBUF_INTERNAL_EXPORT" lea rdx, aProtobufIntern+18h; "" lea r15, [rsp+48h+var_40] mov rdi, 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) mov rdx, [r14+8]; int mov rdi, rbx; int mov rsi, r15; int call _ZN6google8protobuf8compiler3cpp10UniqueNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_RKNS2_7OptionsE; google::protobuf::compiler::cpp::UniqueName(std::string const&,std::string const&,google::protobuf::compiler::cpp::Options const&) mov rdi, [rsp+48h+var_40]; void * cmp rdi, r12 jz short loc_35781 call __ZdlPv; operator delete(void *) loc_35781: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_357A2 call __ZdlPv; operator delete(void *) loc_357A2: mov rdi, rbx call __Unwind_Resume
long long google::protobuf::compiler::cpp::FileDllExport[abi:cxx11](long long a1, long long a2) { int v2; // ecx int v3; // r8d int v4; // r9d void *v6; // [rsp+0h] [rbp-48h] void *v7; // [rsp+8h] [rbp-40h] BYREF int v8; // [rsp+10h] [rbp-38h] int v9[6]; // [rsp+18h] [rbp-30h] BYREF char v10; // [rsp+30h] [rbp-18h] v7 = v9; std::string::_M_construct<char const*>((long long)&v7, "PROTOBUF_INTERNAL_EXPORT", (long long)""); google::protobuf::compiler::cpp::UniqueName( a1, (int)&v7, *(_QWORD *)(a2 + 8), v2, v3, v4, v6, (int)v7, v8, v9[0], v9[2], v9[4], v10); if ( v7 != v9 ) operator delete(v7); return a1; }
FileDllExport[abi:cxx11]: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14,RSI MOV RBX,RDI LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LEA RSI,[0x29d5bf] LEA RDX,[0x29d5d7] LEA R15,[RSP + 0x8] MOV RDI,R15 CALL 0x001250b2 MOV RDX,qword ptr [R14 + 0x8] LAB_00135767: MOV RDI,RBX MOV RSI,R15 CALL 0x00137183 LAB_00135772: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00135781 CALL 0x0011f4a0 LAB_00135781: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 RET
/* google::protobuf::compiler::cpp::FileDllExport[abi:cxx11](google::protobuf::FileDescriptor const*, google::protobuf::compiler::cpp::Options const&) */ FileDescriptor * google::protobuf::compiler::cpp::FileDllExport_abi_cxx11_(FileDescriptor *param_1,Options *param_2) { int1 *local_40 [2]; int1 local_30 [16]; local_40[0] = local_30; std::__cxx11::string::_M_construct<char_const*>((string *)local_40,"PROTOBUF_INTERNAL_EXPORT",""); /* try { // try from 00135767 to 00135771 has its CatchHandler @ 00135790 */ UniqueName((string *)param_1,(string *)local_40,*(Options **)(param_2 + 8)); if (local_40[0] != local_30) { operator_delete(local_40[0]); } return param_1; }
45,079
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<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>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>::find<char const (&) [5], 0>(char const (&) [5])
monkey531[P]llama/common/json.hpp
iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it; } } return Container::end(); }
O2
cpp
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<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>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>::find<char const (&) [5], 0>(char const (&) [5]): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %r14 movq 0x8(%r15), %rax cmpq %rax, %r14 je 0xae8a3 movq %r14, %rdi movq %rbx, %rsi callq 0x48eb9 testb %al, %al jne 0xae8a0 addq $0x30, %r14 jmp 0xae882 movq %r14, %rax popq %rbx popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: push r15 push r14 push rbx mov rbx, rsi mov r15, rdi mov r14, [rdi] loc_AE882: mov rax, [r15+8] cmp r14, rax jz short loc_AE8A3 mov rdi, r14 mov rsi, rbx call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jnz short loc_AE8A0 add r14, 30h ; '0' jmp short loc_AE882 loc_AE8A0: mov rax, r14 loc_AE8A3: pop rbx pop r14 pop r15 retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_( long long *a1) { long long i; // r14 long long result; // rax for ( i = *a1; ; i += 48LL ) { result = a1[1]; if ( i == result ) break; if ( std::operator==<char>(i) ) return i; } return result; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R15,RDI MOV R14,qword ptr [RDI] LAB_001ae882: MOV RAX,qword ptr [R15 + 0x8] CMP R14,RAX JZ 0x001ae8a3 MOV RDI,R14 MOV RSI,RBX CALL 0x00148eb9 TEST AL,AL JNZ 0x001ae8a0 ADD R14,0x30 JMP 0x001ae882 LAB_001ae8a0: MOV RAX,R14 LAB_001ae8a3: POP RBX POP R14 POP R15 RET
string * _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (int8 *param_1,char *param_2) { bool bVar1; string *psVar2; string *psVar3; psVar3 = (string *)*param_1; while ((psVar2 = (string *)param_1[1], psVar3 != (string *)param_1[1] && (bVar1 = std::operator==(psVar3,param_2), psVar2 = psVar3, !bVar1))) { psVar3 = psVar3 + 0x30; } return psVar2; }
45,080
clip_image_load_from_file
monkey531[P]llama/examples/llava/clip.cpp
bool clip_image_load_from_file(const char * fname, clip_image_u8 * img) { int nx, ny, nc; auto * data = stbi_load(fname, &nx, &ny, &nc, 3); if (!data) { LOG_ERR("%s: failed to load image '%s'\n", __func__, fname); return false; } build_clip_img_from_data(data, nx, ny, img); stbi_image_free(data); return true; }
O3
cpp
clip_image_load_from_file: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %r14 movq %rdi, %r15 leaq 0x8(%rsp), %rsi leaq 0x4(%rsp), %rdx leaq 0xc(%rsp), %rcx movl $0x3, %r8d callq 0x283db movq %rax, %rbx testq %rax, %rax je 0x3131c movl 0x8(%rsp), %eax movl 0x4(%rsp), %ecx movl %eax, (%r14) movl %ecx, 0x4(%r14) leaq 0x8(%r14), %rdi imull %ecx, %eax leal (%rax,%rax,2), %eax movslq %eax, %rsi callq 0x442de movq 0x8(%r14), %rdi movq 0x10(%r14), %rdx subq %rdi, %rdx movq %rbx, %rsi callq 0x1d9e0 movq %rbx, %rdi callq 0x1de80 testq %rbx, %rbx setne %al addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movq 0x124c65(%rip), %rax # 0x155f88 movq (%rax), %rdi leaq 0xd9f0e(%rip), %rsi # 0x10b23b leaq 0xd9f26(%rip), %rdx # 0x10b25a movq %r15, %rcx xorl %eax, %eax callq 0x1e1e0 jmp 0x3130c
clip_image_load_from_file: push r15 push r14 push rbx sub rsp, 10h mov r14, rsi mov r15, rdi lea rsi, [rsp+28h+var_20] lea rdx, [rsp+28h+var_24] lea rcx, [rsp+28h+var_1C] mov r8d, 3 call stbi_load mov rbx, rax test rax, rax jz short loc_3131C mov eax, [rsp+28h+var_20] mov ecx, [rsp+28h+var_24] mov [r14], eax mov [r14+4], ecx lea rdi, [r14+8] imul eax, ecx lea eax, [rax+rax*2] movsxd rsi, eax call _ZNSt6vectorIhSaIhEE6resizeEm; std::vector<uchar>::resize(ulong) mov rdi, [r14+8] mov rdx, [r14+10h] sub rdx, rdi mov rsi, rbx call _memcpy mov rdi, rbx call _free loc_3130C: test rbx, rbx setnz al add rsp, 10h pop rbx pop r14 pop r15 retn loc_3131C: mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aSFailedToLoadI_0; "%s: failed to load image '%s'\n" lea rdx, aClipImageLoadF_0; "clip_image_load_from_file" mov rcx, r15 xor eax, eax call _fprintf jmp short loc_3130C
bool clip_image_load_from_file(const char *a1, long long a2) { long long v2; // rbx int v3; // eax int v4; // ecx int v6; // [rsp+4h] [rbp-24h] BYREF int v7; // [rsp+8h] [rbp-20h] BYREF _BYTE v8[28]; // [rsp+Ch] [rbp-1Ch] BYREF v2 = stbi_load((long long)a1, (long long)&v7, (long long)&v6, (long long)v8, 3u); if ( v2 ) { v3 = v7; v4 = v6; *(_DWORD *)a2 = v7; *(_DWORD *)(a2 + 4) = v4; std::vector<unsigned char>::resize(a2 + 8, 3 * v4 * v3); memcpy(*(_QWORD *)(a2 + 8), v2, *(_QWORD *)(a2 + 16) - *(_QWORD *)(a2 + 8)); free(v2); } else { fprintf(stderr, "%s: failed to load image '%s'\n", "clip_image_load_from_file", a1); } return v2 != 0; }
clip_image_load_from_file: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RSI MOV R15,RDI LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x4] LEA RCX,[RSP + 0xc] MOV R8D,0x3 CALL 0x001283db MOV RBX,RAX TEST RAX,RAX JZ 0x0013131c MOV EAX,dword ptr [RSP + 0x8] MOV ECX,dword ptr [RSP + 0x4] MOV dword ptr [R14],EAX MOV dword ptr [R14 + 0x4],ECX LEA RDI,[R14 + 0x8] IMUL EAX,ECX LEA EAX,[RAX + RAX*0x2] MOVSXD RSI,EAX CALL 0x001442de MOV RDI,qword ptr [R14 + 0x8] MOV RDX,qword ptr [R14 + 0x10] SUB RDX,RDI MOV RSI,RBX CALL 0x0011d9e0 MOV RDI,RBX CALL 0x0011de80 LAB_0013130c: TEST RBX,RBX SETNZ AL ADD RSP,0x10 POP RBX POP R14 POP R15 RET LAB_0013131c: MOV RAX,qword ptr [0x00255f88] MOV RDI,qword ptr [RAX] LEA RSI,[0x20b23b] LEA RDX,[0x20b25a] MOV RCX,R15 XOR EAX,EAX CALL 0x0011e1e0 JMP 0x0013130c
bool clip_image_load_from_file(int8 param_1,int *param_2) { void *__src; int local_24; int local_20; int1 local_1c [4]; __src = (void *)stbi_load(param_1,&local_20,&local_24,local_1c,3); if (__src == (void *)0x0) { fprintf(*(FILE **)PTR_stderr_00255f88,"%s: failed to load image \'%s\'\n", "clip_image_load_from_file",param_1); } else { *param_2 = local_20; param_2[1] = local_24; std::vector<unsigned_char,std::allocator<unsigned_char>>::resize ((vector<unsigned_char,std::allocator<unsigned_char>> *)(param_2 + 2), (long)(local_20 * local_24 * 3)); memcpy(*(void **)(param_2 + 2),__src,*(long *)(param_2 + 4) - (long)*(void **)(param_2 + 2)); free(__src); } return __src != (void *)0x0; }
45,081
get_record_position
eloqsql/storage/maria/ma_blockrec.c
static uchar *get_record_position(MARIA_SHARE *share, uchar *buff, uint record_number, uchar **end_of_data) { uint block_size= share->block_size; uint number_of_records= (uint) buff[DIR_COUNT_OFFSET]; uchar *dir; uchar *data; uint offset, length; #ifdef SANITY_CHECKS if (record_number >= number_of_records || record_number > ((block_size - PAGE_HEADER_SIZE(share) - PAGE_SUFFIX_SIZE) / DIR_ENTRY_SIZE)) { DBUG_PRINT("error", ("Wrong row number: record_number: %u number_of_records: %u", record_number, number_of_records)); return 0; } #endif dir= dir_entry_pos(buff, block_size, record_number); offset= uint2korr(dir); length= uint2korr(dir + 2); #ifdef SANITY_CHECKS if (offset < PAGE_HEADER_SIZE(share) || offset + length > (block_size - number_of_records * DIR_ENTRY_SIZE - PAGE_SUFFIX_SIZE)) { DBUG_PRINT("error", ("Wrong row position: record_number: %u offset: %u " "length: %u number_of_records: %u", record_number, offset, length, number_of_records)); return 0; } #endif data= buff + offset; *end_of_data= data + length; return data; }
O0
c
get_record_position: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax movl 0x7bc(%rax), %eax movl %eax, -0x2c(%rbp) movq -0x18(%rbp), %rax movzbl 0x8(%rax), %eax movl %eax, -0x30(%rbp) movl -0x1c(%rbp), %eax cmpl -0x30(%rbp), %eax jae 0x786c6 movl -0x1c(%rbp), %eax movl -0x2c(%rbp), %ecx movq -0x10(%rbp), %rdx movl 0xc18(%rdx), %edx addl $0xc, %edx subl %edx, %ecx subl $0x4, %ecx shrl $0x2, %ecx cmpl %ecx, %eax jbe 0x786d7 jmp 0x786c8 jmp 0x786ca movq $0x0, -0x8(%rbp) jmp 0x78760 movq -0x18(%rbp), %rdi movl -0x2c(%rbp), %esi movl -0x1c(%rbp), %edx callq 0x75000 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movzwl (%rax), %eax movl %eax, -0x44(%rbp) movq -0x38(%rbp), %rax movzwl 0x2(%rax), %eax movl %eax, -0x48(%rbp) movl -0x44(%rbp), %eax movq -0x10(%rbp), %rcx movl 0xc18(%rcx), %ecx addl $0xc, %ecx cmpl %ecx, %eax jb 0x7872b movl -0x44(%rbp), %eax addl -0x48(%rbp), %eax movl -0x2c(%rbp), %ecx movl -0x30(%rbp), %edx shll $0x2, %edx subl %edx, %ecx subl $0x4, %ecx cmpl %ecx, %eax jbe 0x78739 jmp 0x7872d jmp 0x7872f movq $0x0, -0x8(%rbp) jmp 0x78760 movq -0x18(%rbp), %rax movl -0x44(%rbp), %ecx addq %rcx, %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rcx movl -0x48(%rbp), %eax addq %rax, %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopw (%rax,%rax)
get_record_position: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov rax, [rbp+var_10] mov eax, [rax+7BCh] mov [rbp+var_2C], eax mov rax, [rbp+var_18] movzx eax, byte ptr [rax+8] mov [rbp+var_30], eax mov eax, [rbp+var_1C] cmp eax, [rbp+var_30] jnb short loc_786C6 mov eax, [rbp+var_1C] mov ecx, [rbp+var_2C] mov rdx, [rbp+var_10] mov edx, [rdx+0C18h] add edx, 0Ch sub ecx, edx sub ecx, 4 shr ecx, 2 cmp eax, ecx jbe short loc_786D7 loc_786C6: jmp short $+2 loc_786C8: jmp short $+2 loc_786CA: mov [rbp+var_8], 0 jmp loc_78760 loc_786D7: mov rdi, [rbp+var_18] mov esi, [rbp+var_2C] mov edx, [rbp+var_1C] call dir_entry_pos mov [rbp+var_38], rax mov rax, [rbp+var_38] movzx eax, word ptr [rax] mov [rbp+var_44], eax mov rax, [rbp+var_38] movzx eax, word ptr [rax+2] mov [rbp+var_48], eax mov eax, [rbp+var_44] mov rcx, [rbp+var_10] mov ecx, [rcx+0C18h] add ecx, 0Ch cmp eax, ecx jb short loc_7872B mov eax, [rbp+var_44] add eax, [rbp+var_48] mov ecx, [rbp+var_2C] mov edx, [rbp+var_30] shl edx, 2 sub ecx, edx sub ecx, 4 cmp eax, ecx jbe short loc_78739 loc_7872B: jmp short $+2 loc_7872D: jmp short $+2 loc_7872F: mov [rbp+var_8], 0 jmp short loc_78760 loc_78739: mov rax, [rbp+var_18] mov ecx, [rbp+var_44] add rax, rcx mov [rbp+var_40], rax mov rcx, [rbp+var_40] mov eax, [rbp+var_48] add rcx, rax mov rax, [rbp+var_28] mov [rax], rcx mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_78760: mov rax, [rbp+var_8] add rsp, 50h pop rbp retn
long long get_record_position(long long a1, long long a2, unsigned int a3, _QWORD *a4) { unsigned int v5; // [rsp+Ch] [rbp-44h] unsigned __int16 *v6; // [rsp+18h] [rbp-38h] unsigned int v7; // [rsp+20h] [rbp-30h] unsigned int v8; // [rsp+24h] [rbp-2Ch] v8 = *(_DWORD *)(a1 + 1980); v7 = *(unsigned __int8 *)(a2 + 8); if ( a3 >= v7 || a3 > (v8 - (*(_DWORD *)(a1 + 3096) + 12) - 4) >> 2 ) return 0LL; v6 = (unsigned __int16 *)dir_entry_pos(a2, v8, a3); v5 = *v6; if ( v5 < *(_DWORD *)(a1 + 3096) + 12 || v6[1] + v5 > v8 - 4 * v7 - 4 ) return 0LL; *a4 = v6[1] + *v6 + a2; return v5 + a2; }
get_record_position: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x7bc] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x8] MOV dword ptr [RBP + -0x30],EAX MOV EAX,dword ptr [RBP + -0x1c] CMP EAX,dword ptr [RBP + -0x30] JNC 0x001786c6 MOV EAX,dword ptr [RBP + -0x1c] MOV ECX,dword ptr [RBP + -0x2c] MOV RDX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RDX + 0xc18] ADD EDX,0xc SUB ECX,EDX SUB ECX,0x4 SHR ECX,0x2 CMP EAX,ECX JBE 0x001786d7 LAB_001786c6: JMP 0x001786c8 LAB_001786c8: JMP 0x001786ca LAB_001786ca: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00178760 LAB_001786d7: MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x2c] MOV EDX,dword ptr [RBP + -0x1c] CALL 0x00175000 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOVZX EAX,word ptr [RAX] MOV dword ptr [RBP + -0x44],EAX MOV RAX,qword ptr [RBP + -0x38] MOVZX EAX,word ptr [RAX + 0x2] MOV dword ptr [RBP + -0x48],EAX MOV EAX,dword ptr [RBP + -0x44] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0xc18] ADD ECX,0xc CMP EAX,ECX JC 0x0017872b MOV EAX,dword ptr [RBP + -0x44] ADD EAX,dword ptr [RBP + -0x48] MOV ECX,dword ptr [RBP + -0x2c] MOV EDX,dword ptr [RBP + -0x30] SHL EDX,0x2 SUB ECX,EDX SUB ECX,0x4 CMP EAX,ECX JBE 0x00178739 LAB_0017872b: JMP 0x0017872d LAB_0017872d: JMP 0x0017872f LAB_0017872f: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00178760 LAB_00178739: MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x44] ADD RAX,RCX MOV qword ptr [RBP + -0x40],RAX MOV RCX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RBP + -0x48] ADD RCX,RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_00178760: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
long get_record_position(long param_1,long param_2,uint param_3,long *param_4) { byte bVar1; int iVar2; uint uVar3; ushort *puVar4; long local_10; iVar2 = *(int *)(param_1 + 0x7bc); bVar1 = *(byte *)(param_2 + 8); if ((param_3 < bVar1) && (param_3 <= (iVar2 - (*(int *)(param_1 + 0xc18) + 0xc)) - 4U >> 2)) { puVar4 = (ushort *)dir_entry_pos(param_2,iVar2,param_3); uVar3 = (uint)*puVar4; if ((uVar3 < *(int *)(param_1 + 0xc18) + 0xcU) || ((iVar2 + (uint)bVar1 * -4) - 4 < uVar3 + puVar4[1])) { local_10 = 0; } else { local_10 = param_2 + (ulong)uVar3; *param_4 = local_10 + (ulong)(uint)puVar4[1]; } } else { local_10 = 0; } return local_10; }
45,082
list_walk
eloqsql/libmariadb/libmariadb/ma_list.c
int list_walk(LIST *list, list_walk_action action, gptr argument) { int error=0; while (list) { if ((error = (*action)(list->data,argument))) return error; list= list_rest(list); } return 0; }
O0
c
list_walk: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl $0x0, -0x24(%rbp) cmpq $0x0, -0x10(%rbp) je 0x3d792 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x10(%rcx), %rdi movq -0x20(%rbp), %rsi callq *%rax movl %eax, -0x24(%rbp) cmpl $0x0, %eax je 0x3d784 movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x3d799 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x10(%rbp) jmp 0x3d75b movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
list_walk: 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_24], 0 loc_3D75B: cmp [rbp+var_10], 0 jz short loc_3D792 mov rax, [rbp+var_18] mov rcx, [rbp+var_10] mov rdi, [rcx+10h] mov rsi, [rbp+var_20] call rax mov [rbp+var_24], eax cmp eax, 0 jz short loc_3D784 mov eax, [rbp+var_24] mov [rbp+var_4], eax jmp short loc_3D799 loc_3D784: mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_10], rax jmp short loc_3D75B loc_3D792: mov [rbp+var_4], 0 loc_3D799: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long list_walk(long long a1, long long ( *a2)(_QWORD, long long), long long a3) { unsigned int v4; // [rsp+Ch] [rbp-24h] while ( a1 ) { v4 = a2(*(_QWORD *)(a1 + 16), a3); if ( v4 ) return v4; a1 = *(_QWORD *)(a1 + 8); } return 0; }
list_walk: 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 dword ptr [RBP + -0x24],0x0 LAB_0013d75b: CMP qword ptr [RBP + -0x10],0x0 JZ 0x0013d792 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RCX + 0x10] MOV RSI,qword ptr [RBP + -0x20] CALL RAX MOV dword ptr [RBP + -0x24],EAX CMP EAX,0x0 JZ 0x0013d784 MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX JMP 0x0013d799 LAB_0013d784: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x10],RAX JMP 0x0013d75b LAB_0013d792: MOV dword ptr [RBP + -0x4],0x0 LAB_0013d799: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int list_walk(long param_1,code *param_2,int8 param_3) { int iVar1; long local_18; local_18 = param_1; while( true ) { if (local_18 == 0) { return 0; } iVar1 = (*param_2)(*(int8 *)(local_18 + 0x10),param_3); if (iVar1 != 0) break; local_18 = *(long *)(local_18 + 8); } return iVar1; }
45,083
my_thread_global_reinit
eloqsql/mysys/my_thr_init.c
void my_thread_global_reinit(void) { struct st_my_thread_var *tmp; DBUG_ASSERT(my_thread_global_init_done); #ifdef HAVE_PSI_INTERFACE my_init_mysys_psi_keys(); #endif my_thread_destroy_common_mutex(); my_thread_init_common_mutex(); my_thread_destroy_internal_mutex(); my_thread_init_internal_mutex(); tmp= my_thread_var; DBUG_ASSERT(tmp); my_thread_destory_thr_mutex(tmp); my_thread_init_thr_mutex(tmp); }
O0
c
my_thread_global_reinit: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp jmp 0xf547a callq 0xf22e0 callq 0xf5320 callq 0xf54c0 callq 0xf53d0 callq 0xf5590 callq 0xf55f0 movq %rax, -0x8(%rbp) jmp 0xf549e movq -0x8(%rbp), %rdi callq 0xf5610 movq -0x8(%rbp), %rdi callq 0xf5640 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_thread_global_reinit: push rbp mov rbp, rsp sub rsp, 10h jmp short $+2 loc_F547A: call my_init_mysys_psi_keys call my_thread_destroy_common_mutex call my_thread_init_common_mutex call my_thread_destroy_internal_mutex call my_thread_init_internal_mutex call _my_thread_var mov [rbp+var_8], rax jmp short $+2 loc_F549E: mov rdi, [rbp+var_8] call my_thread_destory_thr_mutex mov rdi, [rbp+var_8] call my_thread_init_thr_mutex add rsp, 10h pop rbp retn
long long my_thread_global_reinit() { double inited; // xmm0_8 double v1; // xmm0_8 long long v3; // [rsp+8h] [rbp-8h] my_init_mysys_psi_keys(); my_thread_destroy_common_mutex(); inited = my_thread_init_common_mutex(); my_thread_destroy_internal_mutex(inited); v1 = my_thread_init_internal_mutex(); v3 = my_thread_var(v1); my_thread_destory_thr_mutex(v3); return my_thread_init_thr_mutex(v3); }
my_thread_global_reinit: PUSH RBP MOV RBP,RSP SUB RSP,0x10 JMP 0x001f547a LAB_001f547a: CALL 0x001f22e0 CALL 0x001f5320 CALL 0x001f54c0 CALL 0x001f53d0 CALL 0x001f5590 CALL 0x001f55f0 MOV qword ptr [RBP + -0x8],RAX JMP 0x001f549e LAB_001f549e: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001f5610 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001f5640 ADD RSP,0x10 POP RBP RET
void my_thread_global_reinit(void) { int8 uVar1; my_init_mysys_psi_keys(); my_thread_destroy_common_mutex(); my_thread_init_common_mutex(); my_thread_destroy_internal_mutex(); my_thread_init_internal_mutex(); uVar1 = _my_thread_var(); my_thread_destory_thr_mutex(uVar1); my_thread_init_thr_mutex(uVar1); return; }
45,084
main
eloqsql/sql/tztime.cc
int main(int argc, char **argv) { const char *trunc_tables= ""; MY_INIT(argv[0]); load_defaults_or_exit("my", load_default_groups, &argc, &argv); default_argv= argv; if ((handle_options(&argc, &argv, my_long_options, get_one_option))) exit(1); if ((argc != 1 && argc != 2) || (opt_leap && argc != 1)) { print_usage(); free_allocated_data(); return 1; } if (argc == 1 && !opt_leap) trunc_tables= trunc_tables_const; printf("set @wsrep_is_on=(%s);\n", wsrep_is_on); printf("SELECT concat('%%', GROUP_CONCAT(OPTION), '%%') INTO @replicate_opt " " FROM" " (SELECT DISTINCT concat('REPLICATE_', UPPER(ENGINE)) AS OPTION" " FROM information_schema.TABLES" " WHERE TABLE_SCHEMA=DATABASE()" " AND TABLE_NAME IN ('time_zone'," " 'time_zone_name'," " 'time_zone_transition'," " 'time_zone_transition_type'," " 'time_zone_leap_second')" " AND ENGINE in ('MyISAM'," " 'Aria')) AS o" " ORDER BY OPTION DESC;\n"); printf("set @wsrep_cannot_replicate_tz=@wsrep_is_on AND (%s);\n", wsrep_cannot_replicate_tz); if (opt_skip_write_binlog) /* We turn off session wsrep if we cannot replicate using galera. Disable sql_log_bin as the name implies. */ printf("execute immediate if(@wsrep_is_on, 'SET @save_wsrep_on=@@WSREP_ON, WSREP_ON=OFF', 'do 0');\n" "SET @save_sql_log_bin=@@SQL_LOG_BIN;\n" "SET SESSION SQL_LOG_BIN=0;\n" "SET @wsrep_cannot_replicate_tz=0;\n" "%s%s;\n", trunc_tables, lock_tables); else // Alter time zone tables to InnoDB if wsrep_on is enabled // to allow changes to them to replicate with Galera printf( "execute immediate if(@wsrep_cannot_replicate_tz, " SAVE_ENGINE("time_zone") ", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " SAVE_ENGINE("time_zone_name") ", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_name ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " SAVE_ENGINE("time_zone_transition") ", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_transition ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " SAVE_ENGINE("time_zone_transition_type") ", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_transition_type ENGINE=InnoDB', 'do 0');\n" "%s" "/*M!100602 execute immediate if(@wsrep_cannot_replicate_tz, 'start transaction', '%s')*/;\n" , trunc_tables, lock_tables); if (argc == 1 && !opt_leap) { /* Argument is timezonedir */ root_name_end= strmake_buf(fullname, argv[0]); if (scan_tz_dir(root_name_end, 0, opt_verbose)) { printf("ROLLBACK;\n"); fflush(stdout); fprintf(stderr, "There were fatal errors during processing " "of zoneinfo directory '%s'\n", fullname); return 1; } printf("UNLOCK TABLES;\n" "COMMIT;\n"); printf( "execute immediate if(@wsrep_cannot_replicate_tz, 'do 0'," "'ALTER TABLE time_zone_transition " "ORDER BY Time_zone_id, Transition_time');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'do 0'," "'ALTER TABLE time_zone_transition_type " "ORDER BY Time_zone_id, Transition_type_id');\n"); } else { /* First argument is timezonefile. The second is timezonename if opt_leap is not given */ init_alloc_root(PSI_INSTRUMENT_ME, &tz_storage, 32768, 0, MYF(0)); if (tz_load(argv[0], &tz_info, &tz_storage)) { fflush(stdout); fprintf(stderr, "Problems with zoneinfo file '%s'\n", argv[0]); return 1; } if (opt_leap) print_tz_leaps_as_sql(&tz_info); else print_tz_as_sql(argv[1], &tz_info); printf("UNLOCK TABLES;\n" "COMMIT;\n"); free_root(&tz_storage, MYF(0)); } if(opt_skip_write_binlog) printf("SET SESSION SQL_LOG_BIN=@save_sql_log_bin;\n" "execute immediate if(@wsrep_is_on, 'SET SESSION WSREP_ON=@save_wsrep_on', 'do 0');\n"); else // Change back to what it was before printf( "execute immediate if(@wsrep_cannot_replicate_tz, " "concat('ALTER TABLE time_zone ENGINE=', @time_zone_engine), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " "concat('ALTER TABLE time_zone_name ENGINE=', @time_zone_name_engine), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " "concat('ALTER TABLE time_zone_transition ENGINE=', " "@time_zone_transition_engine, ', ORDER BY Time_zone_id, Transition_time'), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " "concat('ALTER TABLE time_zone_transition_type ENGINE=', " "@time_zone_transition_type_engine, ', ORDER BY Time_zone_id, Transition_type_id'), 'do 0');\n"); free_allocated_data(); my_end(0); return 0; }
O0
cpp
main: pushq %rbp movq %rsp, %rbp subq $0x240, %rsp # imm = 0x240 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movl $0x0, -0x214(%rbp) movl %edi, -0x218(%rbp) movq %rsi, -0x220(%rbp) leaq 0x5ce43(%rip), %rax # 0x82469 movq %rax, -0x228(%rbp) movq -0x220(%rbp), %rax movq (%rax), %rcx leaq 0x36aca2(%rip), %rax # 0x3902e0 movq %rcx, (%rax) callq 0x2f360 leaq 0x5bec5(%rip), %rdi # 0x81512 leaq 0x1b29bc(%rip), %rsi # 0x1d8010 leaq -0x218(%rbp), %rdx leaq -0x220(%rbp), %rcx callq 0x26970 movl %eax, %ecx movl %ecx, -0x234(%rbp) testl %eax, %eax je 0x25682 jmp 0x25675 movl -0x234(%rbp), %eax subl $0x4, %eax je 0x25684 jmp 0x25692 jmp 0x256a3 xorl %edi, %edi callq 0x2f5a0 xorl %edi, %edi callq 0x24390 xorl %edi, %edi callq 0x2f5a0 movl $0x1, %edi callq 0x24390 movq -0x220(%rbp), %rax movq %rax, 0x36a72f(%rip) # 0x38fde0 leaq -0x218(%rbp), %rdi leaq -0x220(%rbp), %rsi leaq 0x1b295a(%rip), %rdx # 0x1d8020 leaq 0x313(%rip), %rcx # 0x259e0 callq 0x2b980 cmpl $0x0, %eax je 0x256e1 movl $0x1, %edi callq 0x24390 cmpl $0x1, -0x218(%rbp) je 0x256f3 cmpl $0x2, -0x218(%rbp) jne 0x25705 cmpb $0x0, 0x36a436(%rip) # 0x38fb30 je 0x2571e cmpl $0x1, -0x218(%rbp) je 0x2571e callq 0x25a60 callq 0x25b50 movl $0x1, -0x214(%rbp) jmp 0x259a7 cmpl $0x1, -0x218(%rbp) jne 0x2573e cmpb $0x0, 0x36a402(%rip) # 0x38fb30 jne 0x2573e movq 0x1b2bf9(%rip), %rax # 0x1d8330 movq %rax, -0x228(%rbp) movq 0x1b2bf3(%rip), %rsi # 0x1d8338 leaq 0x5bdc9(%rip), %rdi # 0x81515 movb $0x0, %al callq 0x24050 leaq 0x5bdd3(%rip), %rdi # 0x8152d movb $0x0, %al callq 0x24050 movq 0x1b2bd8(%rip), %rsi # 0x1d8340 leaq 0x5bfc8(%rip), %rdi # 0x81737 movb $0x0, %al callq 0x24050 cmpb $0x0, 0x36a3b5(%rip) # 0x38fb32 je 0x2579d movq -0x228(%rbp), %rsi movq 0x1b2bbb(%rip), %rdx # 0x1d8348 leaq 0x5bfda(%rip), %rdi # 0x8176e movb $0x0, %al callq 0x24050 jmp 0x257b9 movq -0x228(%rbp), %rsi movq 0x1b2b9d(%rip), %rdx # 0x1d8348 leaq 0x5c080(%rip), %rdi # 0x81832 movb $0x0, %al callq 0x24050 cmpl $0x1, -0x218(%rbp) jne 0x258a2 cmpb $0x0, 0x36a363(%rip) # 0x38fb30 jne 0x258a2 leaq -0x210(%rbp), %rdi xorl %esi, %esi movl $0x201, %edx # imm = 0x201 callq 0x24180 movb $0x2, -0x210(%rbp) movq -0x220(%rbp), %rax movq (%rax), %rsi leaq 0x36a3d2(%rip), %rdi # 0x38fbd0 movl $0x200, %edx # imm = 0x200 callq 0x7efc0 movq %rax, -0x230(%rbp) movq -0x230(%rbp), %rax movq %rax, 0x36a5bb(%rip) # 0x38fdd8 movq 0x36a5b4(%rip), %rdi # 0x38fdd8 movsbl 0x36a306(%rip), %edx # 0x38fb31 xorl %esi, %esi callq 0x249f0 cmpb $0x0, %al je 0x25881 leaq 0x5c51e(%rip), %rdi # 0x81d5b movb $0x0, %al callq 0x24050 movq 0x1b2775(%rip), %rax # 0x1d7fc0 movq (%rax), %rdi callq 0x24350 movq 0x1b2786(%rip), %rax # 0x1d7fe0 movq (%rax), %rdi leaq 0x5c502(%rip), %rsi # 0x81d66 leaq 0x36a365(%rip), %rdx # 0x38fbd0 movb $0x0, %al callq 0x24430 movl $0x1, -0x214(%rbp) jmp 0x259a7 leaq 0x5c524(%rip), %rdi # 0x81dac movb $0x0, %al callq 0x24050 leaq 0x5c52e(%rip), %rdi # 0x81dc4 movb $0x0, %al callq 0x24050 jmp 0x2596a xorl %edi, %edi leaq 0x36a2e5(%rip), %rsi # 0x38fb90 movl $0x8000, %edx # imm = 0x8000 xorl %eax, %eax movl %eax, %r8d movq %r8, %rcx callq 0x2a260 movq -0x220(%rbp), %rax movq (%rax), %rdi leaq 0x36a26a(%rip), %rsi # 0x38fb38 leaq 0x36a2bb(%rip), %rdx # 0x38fb90 callq 0x24d10 cmpb $0x0, %al je 0x2591e movq 0x1b26db(%rip), %rax # 0x1d7fc0 movq (%rax), %rdi callq 0x24350 movq 0x1b26ec(%rip), %rax # 0x1d7fe0 movq (%rax), %rdi movq -0x220(%rbp), %rax movq (%rax), %rdx leaq 0x5c5cd(%rip), %rsi # 0x81ed5 movb $0x0, %al callq 0x24430 movl $0x1, -0x214(%rbp) jmp 0x259a7 cmpb $0x0, 0x36a20b(%rip) # 0x38fb30 je 0x25935 leaq 0x36a20a(%rip), %rdi # 0x38fb38 callq 0x248f0 jmp 0x2594c movq -0x220(%rbp), %rax movq 0x8(%rax), %rdi leaq 0x36a1f1(%rip), %rsi # 0x38fb38 callq 0x24720 leaq 0x5c459(%rip), %rdi # 0x81dac movb $0x0, %al callq 0x24050 leaq 0x36a22f(%rip), %rdi # 0x38fb90 xorl %eax, %eax movl %eax, %esi callq 0x2aad0 cmpb $0x0, 0x36a1c1(%rip) # 0x38fb32 je 0x25983 leaq 0x5c57d(%rip), %rdi # 0x81ef7 movb $0x0, %al callq 0x24050 jmp 0x25991 leaq 0x5c5ec(%rip), %rdi # 0x81f76 movb $0x0, %al callq 0x24050 callq 0x25b50 xorl %edi, %edi callq 0x2f5a0 movl $0x0, -0x214(%rbp) movl -0x214(%rbp), %eax movl %eax, -0x238(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x259d4 movl -0x238(%rbp), %eax addq $0x240, %rsp # imm = 0x240 popq %rbp retq callq 0x24300 nopl (%rax)
main: push rbp mov rbp, rsp sub rsp, 240h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_214], 0 mov [rbp+var_218], edi mov [rbp+var_220], rsi lea rax, aCreateSqlComma+43h; "" mov [rbp+var_228], rax mov rax, [rbp+var_220] mov rcx, [rax] lea rax, my_progname mov [rax], rcx call my_init lea rdi, aMy; "my" lea rsi, _ZL19load_default_groups; load_default_groups lea rdx, [rbp+var_218] lea rcx, [rbp+var_220] call load_defaults mov ecx, eax mov [rbp+var_234], ecx test eax, eax jz short loc_25682 jmp short $+2 loc_25675: mov eax, [rbp+var_234] sub eax, 4 jz short loc_25684 jmp short loc_25692 loc_25682: jmp short loc_256A3 loc_25684: xor edi, edi call my_end xor edi, edi call _exit loc_25692: xor edi, edi call my_end mov edi, 1 call _exit loc_256A3: mov rax, [rbp+var_220] mov cs:_ZL12default_argv, rax; default_argv lea rdi, [rbp+var_218] lea rsi, [rbp+var_220] lea rdx, _ZL15my_long_options; my_long_options lea rcx, _ZL14get_one_optionPK9my_optionPKcS3_; get_one_option(my_option const*,char const*,char const*) call handle_options cmp eax, 0 jz short loc_256E1 mov edi, 1 call _exit loc_256E1: cmp [rbp+var_218], 1 jz short loc_256F3 cmp [rbp+var_218], 2 jnz short loc_25705 loc_256F3: cmp cs:opt_leap, 0 jz short loc_2571E cmp [rbp+var_218], 1 jz short loc_2571E loc_25705: call _ZL11print_usagev; print_usage(void) call _ZL19free_allocated_datav; free_allocated_data(void) mov [rbp+var_214], 1 jmp loc_259A7 loc_2571E: cmp [rbp+var_218], 1 jnz short loc_2573E cmp cs:opt_leap, 0 jnz short loc_2573E mov rax, cs:_ZL18trunc_tables_const; trunc_tables_const mov [rbp+var_228], rax loc_2573E: mov rsi, cs:_ZL11wsrep_is_on; wsrep_is_on lea rdi, aSetWsrepIsOnS; "set @wsrep_is_on=(%s);\n" mov al, 0 call _printf lea rdi, aSelectConcatGr; "SELECT concat('%%', GROUP_CONCAT(OPTION"... mov al, 0 call _printf mov rsi, cs:_ZL25wsrep_cannot_replicate_tz; wsrep_cannot_replicate_tz lea rdi, aSetWsrepCannot; "set @wsrep_cannot_replicate_tz=@wsrep_i"... mov al, 0 call _printf cmp cs:opt_skip_write_binlog, 0 jz short loc_2579D mov rsi, [rbp+var_228] mov rdx, cs:_ZL11lock_tables; lock_tables lea rdi, aExecuteImmedia_1; "execute immediate if(@wsrep_is_on, 'SET"... mov al, 0 call _printf jmp short loc_257B9 loc_2579D: mov rsi, [rbp+var_228] mov rdx, cs:_ZL11lock_tables; lock_tables lea rdi, aExecuteImmedia_2; "execute immediate if(@wsrep_cannot_repl"... mov al, 0 call _printf loc_257B9: cmp [rbp+var_218], 1 jnz loc_258A2 cmp cs:opt_leap, 0 jnz loc_258A2 lea rdi, [rbp+var_210] xor esi, esi mov edx, 201h call _memset mov [rbp+var_210], 2 mov rax, [rbp+var_220] mov rsi, [rax] lea rdi, fullname mov edx, 200h call strmake mov [rbp+var_230], rax mov rax, [rbp+var_230] mov cs:root_name_end, rax mov rdi, cs:root_name_end; char * movsx edx, cs:opt_verbose; unsigned int xor esi, esi; unsigned int call _Z11scan_tz_dirPcjj; scan_tz_dir(char *,uint,uint) cmp al, 0 jz short loc_25881 lea rdi, aRollback; "ROLLBACK;\n" mov al, 0 call _printf mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aThereWereFatal; "There were fatal errors during processi"... lea rdx, fullname mov al, 0 call _fprintf mov [rbp+var_214], 1 jmp loc_259A7 loc_25881: lea rdi, aUnlockTablesCo; "UNLOCK TABLES;\nCOMMIT;\n" mov al, 0 call _printf lea rdi, aExecuteImmedia_3; "execute immediate if(@wsrep_cannot_repl"... mov al, 0 call _printf jmp loc_2596A loc_258A2: xor edi, edi lea rsi, tz_storage mov edx, 8000h xor eax, eax mov r8d, eax mov rcx, r8 call init_alloc_root mov rax, [rbp+var_220] mov rdi, [rax] lea rsi, tz_info lea rdx, tz_storage call _ZL7tz_loadPKcP17st_time_zone_infoP11st_mem_root; tz_load(char const*,st_time_zone_info *,st_mem_root *) cmp al, 0 jz short loc_2591E mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] mov rax, [rbp+var_220] mov rdx, [rax] lea rsi, aProblemsWithZo; "Problems with zoneinfo file '%s'\n" mov al, 0 call _fprintf mov [rbp+var_214], 1 jmp loc_259A7 loc_2591E: cmp cs:opt_leap, 0 jz short loc_25935 lea rdi, tz_info call _Z21print_tz_leaps_as_sqlPK17st_time_zone_info; print_tz_leaps_as_sql(st_time_zone_info const*) jmp short loc_2594C loc_25935: mov rax, [rbp+var_220] mov rdi, [rax+8] lea rsi, tz_info call _Z15print_tz_as_sqlPKcPK17st_time_zone_info; print_tz_as_sql(char const*,st_time_zone_info const*) loc_2594C: lea rdi, aUnlockTablesCo; "UNLOCK TABLES;\nCOMMIT;\n" mov al, 0 call _printf lea rdi, tz_storage xor eax, eax mov esi, eax call free_root loc_2596A: cmp cs:opt_skip_write_binlog, 0 jz short loc_25983 lea rdi, aSetSessionSqlL; "SET SESSION SQL_LOG_BIN=@save_sql_log_b"... mov al, 0 call _printf jmp short loc_25991 loc_25983: lea rdi, aExecuteImmedia_4; "execute immediate if(@wsrep_cannot_repl"... mov al, 0 call _printf loc_25991: call _ZL19free_allocated_datav; free_allocated_data(void) xor edi, edi call my_end mov [rbp+var_214], 0 loc_259A7: mov eax, [rbp+var_214] mov [rbp+var_238], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_259D4 mov eax, [rbp+var_238] add rsp, 240h pop rbp retn loc_259D4: call ___stack_chk_fail
int main(int argc, const char **argv, const char **envp) { int v5; // [rsp+Ch] [rbp-234h] const char *v6; // [rsp+18h] [rbp-228h] const char **v7; // [rsp+20h] [rbp-220h] BYREF int v8; // [rsp+28h] [rbp-218h] BYREF int v9; // [rsp+2Ch] [rbp-214h] char v10[520]; // [rsp+30h] [rbp-210h] BYREF unsigned long long v11; // [rsp+238h] [rbp-8h] v11 = __readfsqword(0x28u); v9 = 0; v8 = argc; v7 = argv; v6 = ""; my_progname = *argv; my_init(argc, argv, envp); v5 = load_defaults("my", &load_default_groups, &v8, &v7); if ( v5 ) { if ( v5 != 4 ) { my_end(0LL); exit(1LL); } my_end(0LL); exit(0LL); } default_argv = (long long)v7; if ( (unsigned int)handle_options(&v8, &v7, &my_long_options, get_one_option) ) exit(1LL); if ( (v8 == 1 || v8 == 2) && (!opt_leap || v8 == 1) ) { if ( v8 == 1 && !opt_leap ) v6 = trunc_tables_const[0]; printf("set @wsrep_is_on=(%s);\n", wsrep_is_on[0]); printf( "SELECT concat('%%', GROUP_CONCAT(OPTION), '%%') INTO @replicate_opt FROM (SELECT DISTINCT concat('REPLICATE_', " "UPPER(ENGINE)) AS OPTION FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME IN" " ('time_zone', 'time_zone_name', 'time_zone_transition', " " 'time_zone_transition_type', 'time_zone_leap_second') AND ENGINE in ('" "MyISAM', 'Aria')) AS o ORDER BY OPTION DESC;\n"); printf("set @wsrep_cannot_replicate_tz=@wsrep_is_on AND (%s);\n", wsrep_cannot_replicate_tz[0]); if ( opt_skip_write_binlog ) printf( "execute immediate if(@wsrep_is_on, 'SET @save_wsrep_on=@@WSREP_ON, WSREP_ON=OFF', 'do 0');\n" "SET @save_sql_log_bin=@@SQL_LOG_BIN;\n" "SET SESSION SQL_LOG_BIN=0;\n" "SET @wsrep_cannot_replicate_tz=0;\n" "%s%s;\n", v6, lock_tables[0]); else printf( "execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_engine from information_schema." "TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone'\", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_name_engine from information_sc" "hema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone_name'\", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_name ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_transition_engine from informat" "ion_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone_transition'\", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_transition ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_transition_type_engine from inf" "ormation_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone_transition_type'\", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_transition_type ENGINE=InnoDB', 'do 0');" "\n" "%s/*M!100602 execute immediate if(@wsrep_cannot_replicate_tz, 'start transaction', '%s')*/;\n", v6, lock_tables[0]); if ( v8 != 1 || opt_leap ) { init_alloc_root(0LL, &tz_storage, 0x8000LL, 0LL, 0LL); if ( tz_load(*v7, tz_info, (long long)&tz_storage) ) { fflush(stdout); fprintf(stderr, "Problems with zoneinfo file '%s'\n", *v7); return 1; } if ( opt_leap ) print_tz_leaps_as_sql((long long)tz_info); else print_tz_as_sql(v7[1], (long long)tz_info); printf("UNLOCK TABLES;\nCOMMIT;\n"); free_root(&tz_storage, 0LL); } else { memset(v10, 0LL, 513LL); v10[0] = 2; root_name_end = (char *)strmake(fullname, *v7, 512LL); if ( scan_tz_dir(root_name_end, 0, opt_verbose) ) { printf("ROLLBACK;\n"); fflush(stdout); fprintf(stderr, "There were fatal errors during processing of zoneinfo directory '%s'\n", fullname); return 1; } printf("UNLOCK TABLES;\nCOMMIT;\n"); printf( "execute immediate if(@wsrep_cannot_replicate_tz, 'do 0','ALTER TABLE time_zone_transition ORDER BY Time_zone_id," " Transition_time');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'do 0','ALTER TABLE time_zone_transition_type ORDER BY Time_zon" "e_id, Transition_type_id');\n"); } if ( opt_skip_write_binlog ) printf( "SET SESSION SQL_LOG_BIN=@save_sql_log_bin;\n" "execute immediate if(@wsrep_is_on, 'SET SESSION WSREP_ON=@save_wsrep_on', 'do 0');\n"); else printf( "execute immediate if(@wsrep_cannot_replicate_tz, concat('ALTER TABLE time_zone ENGINE=', @time_zone_engine), 'do" " 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, concat('ALTER TABLE time_zone_name ENGINE=', @time_zone_name_en" "gine), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, concat('ALTER TABLE time_zone_transition ENGINE=', @time_zone_t" "ransition_engine, ', ORDER BY Time_zone_id, Transition_time'), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, concat('ALTER TABLE time_zone_transition_type ENGINE=', @time_z" "one_transition_type_engine, ', ORDER BY Time_zone_id, Transition_type_id'), 'do 0');\n"); free_allocated_data(); my_end(0LL); return 0; } else { print_usage(); free_allocated_data(); return 1; } }
main: PUSH RBP MOV RBP,RSP SUB RSP,0x240 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0x214],0x0 MOV dword ptr [RBP + -0x218],EDI MOV qword ptr [RBP + -0x220],RSI LEA RAX,[0x182469] MOV qword ptr [RBP + -0x228],RAX MOV RAX,qword ptr [RBP + -0x220] MOV RCX,qword ptr [RAX] LEA RAX,[0x4902e0] MOV qword ptr [RAX],RCX CALL 0x0012f360 LEA RDI,[0x181512] LEA RSI,[0x2d8010] LEA RDX,[RBP + -0x218] LEA RCX,[RBP + -0x220] CALL 0x00126970 MOV ECX,EAX MOV dword ptr [RBP + -0x234],ECX TEST EAX,EAX JZ 0x00125682 JMP 0x00125675 LAB_00125675: MOV EAX,dword ptr [RBP + -0x234] SUB EAX,0x4 JZ 0x00125684 JMP 0x00125692 LAB_00125682: JMP 0x001256a3 LAB_00125684: XOR EDI,EDI CALL 0x0012f5a0 XOR EDI,EDI CALL 0x00124390 LAB_00125692: XOR EDI,EDI CALL 0x0012f5a0 MOV EDI,0x1 CALL 0x00124390 LAB_001256a3: MOV RAX,qword ptr [RBP + -0x220] MOV qword ptr [0x0048fde0],RAX LEA RDI,[RBP + -0x218] LEA RSI,[RBP + -0x220] LEA RDX,[0x2d8020] LEA RCX,[0x1259e0] CALL 0x0012b980 CMP EAX,0x0 JZ 0x001256e1 MOV EDI,0x1 CALL 0x00124390 LAB_001256e1: CMP dword ptr [RBP + -0x218],0x1 JZ 0x001256f3 CMP dword ptr [RBP + -0x218],0x2 JNZ 0x00125705 LAB_001256f3: CMP byte ptr [0x0048fb30],0x0 JZ 0x0012571e CMP dword ptr [RBP + -0x218],0x1 JZ 0x0012571e LAB_00125705: CALL 0x00125a60 CALL 0x00125b50 MOV dword ptr [RBP + -0x214],0x1 JMP 0x001259a7 LAB_0012571e: CMP dword ptr [RBP + -0x218],0x1 JNZ 0x0012573e CMP byte ptr [0x0048fb30],0x0 JNZ 0x0012573e MOV RAX,qword ptr [0x002d8330] MOV qword ptr [RBP + -0x228],RAX LAB_0012573e: MOV RSI,qword ptr [0x002d8338] LEA RDI,[0x181515] MOV AL,0x0 CALL 0x00124050 LEA RDI,[0x18152d] MOV AL,0x0 CALL 0x00124050 MOV RSI,qword ptr [0x002d8340] LEA RDI,[0x181737] MOV AL,0x0 CALL 0x00124050 CMP byte ptr [0x0048fb32],0x0 JZ 0x0012579d MOV RSI,qword ptr [RBP + -0x228] MOV RDX,qword ptr [0x002d8348] LEA RDI,[0x18176e] MOV AL,0x0 CALL 0x00124050 JMP 0x001257b9 LAB_0012579d: MOV RSI,qword ptr [RBP + -0x228] MOV RDX,qword ptr [0x002d8348] LEA RDI,[0x181832] MOV AL,0x0 CALL 0x00124050 LAB_001257b9: CMP dword ptr [RBP + -0x218],0x1 JNZ 0x001258a2 CMP byte ptr [0x0048fb30],0x0 JNZ 0x001258a2 LEA RDI,[RBP + -0x210] XOR ESI,ESI MOV EDX,0x201 CALL 0x00124180 MOV byte ptr [RBP + -0x210],0x2 MOV RAX,qword ptr [RBP + -0x220] MOV RSI,qword ptr [RAX] LEA RDI,[0x48fbd0] MOV EDX,0x200 CALL 0x0017efc0 MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x230] MOV qword ptr [0x0048fdd8],RAX MOV RDI,qword ptr [0x0048fdd8] MOVSX EDX,byte ptr [0x0048fb31] XOR ESI,ESI CALL 0x001249f0 CMP AL,0x0 JZ 0x00125881 LEA RDI,[0x181d5b] MOV AL,0x0 CALL 0x00124050 MOV RAX,qword ptr [0x002d7fc0] MOV RDI,qword ptr [RAX] CALL 0x00124350 MOV RAX,qword ptr [0x002d7fe0] MOV RDI,qword ptr [RAX] LEA RSI,[0x181d66] LEA RDX,[0x48fbd0] MOV AL,0x0 CALL 0x00124430 MOV dword ptr [RBP + -0x214],0x1 JMP 0x001259a7 LAB_00125881: LEA RDI,[0x181dac] MOV AL,0x0 CALL 0x00124050 LEA RDI,[0x181dc4] MOV AL,0x0 CALL 0x00124050 JMP 0x0012596a LAB_001258a2: XOR EDI,EDI LEA RSI,[0x48fb90] MOV EDX,0x8000 XOR EAX,EAX MOV R8D,EAX MOV RCX,R8 CALL 0x0012a260 MOV RAX,qword ptr [RBP + -0x220] MOV RDI,qword ptr [RAX] LEA RSI,[0x48fb38] LEA RDX,[0x48fb90] CALL 0x00124d10 CMP AL,0x0 JZ 0x0012591e MOV RAX,qword ptr [0x002d7fc0] MOV RDI,qword ptr [RAX] CALL 0x00124350 MOV RAX,qword ptr [0x002d7fe0] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x220] MOV RDX,qword ptr [RAX] LEA RSI,[0x181ed5] MOV AL,0x0 CALL 0x00124430 MOV dword ptr [RBP + -0x214],0x1 JMP 0x001259a7 LAB_0012591e: CMP byte ptr [0x0048fb30],0x0 JZ 0x00125935 LEA RDI,[0x48fb38] CALL 0x001248f0 JMP 0x0012594c LAB_00125935: MOV RAX,qword ptr [RBP + -0x220] MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[0x48fb38] CALL 0x00124720 LAB_0012594c: LEA RDI,[0x181dac] MOV AL,0x0 CALL 0x00124050 LEA RDI,[0x48fb90] XOR EAX,EAX MOV ESI,EAX CALL 0x0012aad0 LAB_0012596a: CMP byte ptr [0x0048fb32],0x0 JZ 0x00125983 LEA RDI,[0x181ef7] MOV AL,0x0 CALL 0x00124050 JMP 0x00125991 LAB_00125983: LEA RDI,[0x181f76] MOV AL,0x0 CALL 0x00124050 LAB_00125991: CALL 0x00125b50 XOR EDI,EDI CALL 0x0012f5a0 MOV dword ptr [RBP + -0x214],0x0 LAB_001259a7: MOV EAX,dword ptr [RBP + -0x214] MOV dword ptr [RBP + -0x238],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001259d4 MOV EAX,dword ptr [RBP + -0x238] ADD RSP,0x240 POP RBP RET LAB_001259d4: CALL 0x00124300
int4 main(int param_1,int8 *param_2) { char cVar1; int iVar2; long in_FS_OFFSET; char *local_230; int8 *local_228; int local_220; int4 local_21c; int1 local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_21c = 0; local_230 = ""; my_progname = *param_2; local_228 = param_2; local_220 = param_1; my_init(); iVar2 = load_defaults(&DAT_00181512,load_default_groups,&local_220,&local_228); if (iVar2 != 0) { if (iVar2 != 4) { my_end(0); /* WARNING: Subroutine does not return */ exit(1); } my_end(); /* WARNING: Subroutine does not return */ exit(0); } default_argv = local_228; iVar2 = handle_options(&local_220,&local_228,my_long_options,get_one_option); if (iVar2 != 0) { /* WARNING: Subroutine does not return */ exit(1); } if (((local_220 == 1) || (local_220 == 2)) && ((opt_leap == '\0' || (local_220 == 1)))) { if ((local_220 == 1) && (opt_leap == '\0')) { local_230 = trunc_tables_const; } printf("set @wsrep_is_on=(%s);\n",wsrep_is_on); printf( "SELECT concat(\'%%\', GROUP_CONCAT(OPTION), \'%%\') INTO @replicate_opt FROM (SELECT DISTINCT concat(\'REPLICATE_\', UPPER(ENGINE)) AS OPTION FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME IN (\'time_zone\', \'time_zone_name\', \'time_zone_transition\', \'time_zone_transition_type\', \'time_zone_leap_second\') AND ENGINE in (\'MyISAM\', \'Aria\')) AS o ORDER BY OPTION DESC;\n" ); printf("set @wsrep_cannot_replicate_tz=@wsrep_is_on AND (%s);\n",wsrep_cannot_replicate_tz); if (opt_skip_write_binlog == '\0') { printf("execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME=\'time_zone\'\", \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'ALTER TABLE time_zone ENGINE=InnoDB\', \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_name_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME=\'time_zone_name\'\", \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'ALTER TABLE time_zone_name ENGINE=InnoDB\', \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_transition_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME=\'time_zone_transition\'\", \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'ALTER TABLE time_zone_transition ENGINE=InnoDB\', \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_transition_type_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME=\'time_zone_transition_type\'\", \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'ALTER TABLE time_zone_transition_type ENGINE=InnoDB\', \'do 0\');\n%s/*M!100602 execute immediate if(@wsrep_cannot_replicate_tz, \'start transaction\', \'%s\')*/;\n" ,local_230,lock_tables); } else { printf("execute immediate if(@wsrep_is_on, \'SET @save_wsrep_on=@@WSREP_ON, WSREP_ON=OFF\', \'do 0\');\nSET @save_sql_log_bin=@@SQL_LOG_BIN;\nSET SESSION SQL_LOG_BIN=0;\nSET @wsrep_cannot_replicate_tz=0;\n%s%s;\n" ,local_230,lock_tables); } if ((local_220 == 1) && (opt_leap == '\0')) { memset(local_218,0,0x201); local_218[0] = 2; root_name_end = (char *)strmake(fullname,*local_228,0x200); cVar1 = scan_tz_dir(root_name_end,0,(int)opt_verbose); if (cVar1 != '\0') { printf("ROLLBACK;\n"); fflush(*(FILE **)PTR_stdout_002d7fc0); fprintf(*(FILE **)PTR_stderr_002d7fe0, "There were fatal errors during processing of zoneinfo directory \'%s\'\n",fullname) ; local_21c = 1; goto LAB_001259a7; } printf("UNLOCK TABLES;\nCOMMIT;\n"); printf( "execute immediate if(@wsrep_cannot_replicate_tz, \'do 0\',\'ALTER TABLE time_zone_transition ORDER BY Time_zone_id, Transition_time\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'do 0\',\'ALTER TABLE time_zone_transition_type ORDER BY Time_zone_id, Transition_type_id\');\n" ); } else { init_alloc_root(0,tz_storage,0x8000,0); cVar1 = tz_load((char *)*local_228,(st_time_zone_info *)tz_info,(st_mem_root *)tz_storage); if (cVar1 != '\0') { fflush(*(FILE **)PTR_stdout_002d7fc0); fprintf(*(FILE **)PTR_stderr_002d7fe0,"Problems with zoneinfo file \'%s\'\n",*local_228); local_21c = 1; goto LAB_001259a7; } if (opt_leap == '\0') { print_tz_as_sql((char *)local_228[1],(st_time_zone_info *)tz_info); } else { print_tz_leaps_as_sql((st_time_zone_info *)tz_info); } printf("UNLOCK TABLES;\nCOMMIT;\n"); free_root(tz_storage,0); } if (opt_skip_write_binlog == '\0') { printf( "execute immediate if(@wsrep_cannot_replicate_tz, concat(\'ALTER TABLE time_zone ENGINE=\', @time_zone_engine), \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, concat(\'ALTER TABLE time_zone_name ENGINE=\', @time_zone_name_engine), \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, concat(\'ALTER TABLE time_zone_transition ENGINE=\', @time_zone_transition_engine, \', ORDER BY Time_zone_id, Transition_time\'), \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, concat(\'ALTER TABLE time_zone_transition_type ENGINE=\', @time_zone_transition_type_engine, \', ORDER BY Time_zone_id, Transition_type_id\'), \'do 0\');\n" ); } else { printf( "SET SESSION SQL_LOG_BIN=@save_sql_log_bin;\nexecute immediate if(@wsrep_is_on, \'SET SESSION WSREP_ON=@save_wsrep_on\', \'do 0\');\n" ); } free_allocated_data(); my_end(0); local_21c = 0; } else { print_usage(); free_allocated_data(); local_21c = 1; } LAB_001259a7: if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_21c; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
45,085
main
eloqsql/sql/tztime.cc
int main(int argc, char **argv) { const char *trunc_tables= ""; MY_INIT(argv[0]); load_defaults_or_exit("my", load_default_groups, &argc, &argv); default_argv= argv; if ((handle_options(&argc, &argv, my_long_options, get_one_option))) exit(1); if ((argc != 1 && argc != 2) || (opt_leap && argc != 1)) { print_usage(); free_allocated_data(); return 1; } if (argc == 1 && !opt_leap) trunc_tables= trunc_tables_const; printf("set @wsrep_is_on=(%s);\n", wsrep_is_on); printf("SELECT concat('%%', GROUP_CONCAT(OPTION), '%%') INTO @replicate_opt " " FROM" " (SELECT DISTINCT concat('REPLICATE_', UPPER(ENGINE)) AS OPTION" " FROM information_schema.TABLES" " WHERE TABLE_SCHEMA=DATABASE()" " AND TABLE_NAME IN ('time_zone'," " 'time_zone_name'," " 'time_zone_transition'," " 'time_zone_transition_type'," " 'time_zone_leap_second')" " AND ENGINE in ('MyISAM'," " 'Aria')) AS o" " ORDER BY OPTION DESC;\n"); printf("set @wsrep_cannot_replicate_tz=@wsrep_is_on AND (%s);\n", wsrep_cannot_replicate_tz); if (opt_skip_write_binlog) /* We turn off session wsrep if we cannot replicate using galera. Disable sql_log_bin as the name implies. */ printf("execute immediate if(@wsrep_is_on, 'SET @save_wsrep_on=@@WSREP_ON, WSREP_ON=OFF', 'do 0');\n" "SET @save_sql_log_bin=@@SQL_LOG_BIN;\n" "SET SESSION SQL_LOG_BIN=0;\n" "SET @wsrep_cannot_replicate_tz=0;\n" "%s%s;\n", trunc_tables, lock_tables); else // Alter time zone tables to InnoDB if wsrep_on is enabled // to allow changes to them to replicate with Galera printf( "execute immediate if(@wsrep_cannot_replicate_tz, " SAVE_ENGINE("time_zone") ", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " SAVE_ENGINE("time_zone_name") ", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_name ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " SAVE_ENGINE("time_zone_transition") ", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_transition ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " SAVE_ENGINE("time_zone_transition_type") ", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_transition_type ENGINE=InnoDB', 'do 0');\n" "%s" "/*M!100602 execute immediate if(@wsrep_cannot_replicate_tz, 'start transaction', '%s')*/;\n" , trunc_tables, lock_tables); if (argc == 1 && !opt_leap) { /* Argument is timezonedir */ root_name_end= strmake_buf(fullname, argv[0]); if (scan_tz_dir(root_name_end, 0, opt_verbose)) { printf("ROLLBACK;\n"); fflush(stdout); fprintf(stderr, "There were fatal errors during processing " "of zoneinfo directory '%s'\n", fullname); return 1; } printf("UNLOCK TABLES;\n" "COMMIT;\n"); printf( "execute immediate if(@wsrep_cannot_replicate_tz, 'do 0'," "'ALTER TABLE time_zone_transition " "ORDER BY Time_zone_id, Transition_time');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'do 0'," "'ALTER TABLE time_zone_transition_type " "ORDER BY Time_zone_id, Transition_type_id');\n"); } else { /* First argument is timezonefile. The second is timezonename if opt_leap is not given */ init_alloc_root(PSI_INSTRUMENT_ME, &tz_storage, 32768, 0, MYF(0)); if (tz_load(argv[0], &tz_info, &tz_storage)) { fflush(stdout); fprintf(stderr, "Problems with zoneinfo file '%s'\n", argv[0]); return 1; } if (opt_leap) print_tz_leaps_as_sql(&tz_info); else print_tz_as_sql(argv[1], &tz_info); printf("UNLOCK TABLES;\n" "COMMIT;\n"); free_root(&tz_storage, MYF(0)); } if(opt_skip_write_binlog) printf("SET SESSION SQL_LOG_BIN=@save_sql_log_bin;\n" "execute immediate if(@wsrep_is_on, 'SET SESSION WSREP_ON=@save_wsrep_on', 'do 0');\n"); else // Change back to what it was before printf( "execute immediate if(@wsrep_cannot_replicate_tz, " "concat('ALTER TABLE time_zone ENGINE=', @time_zone_engine), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " "concat('ALTER TABLE time_zone_name ENGINE=', @time_zone_name_engine), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " "concat('ALTER TABLE time_zone_transition ENGINE=', " "@time_zone_transition_engine, ', ORDER BY Time_zone_id, Transition_time'), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, " "concat('ALTER TABLE time_zone_transition_type ENGINE=', " "@time_zone_transition_type_engine, ', ORDER BY Time_zone_id, Transition_type_id'), 'do 0');\n"); free_allocated_data(); my_end(0); return 0; }
O3
cpp
main: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x10, %rsp leaq -0x14(%rbp), %rbx movl %edi, (%rbx) leaq -0x20(%rbp), %r14 movq %rsi, (%r14) movq (%rsi), %rax leaq 0x3475b0(%rip), %rcx # 0x36d700 movq %rax, (%rcx) callq 0x2b31c leaq 0x3a044(%rip), %rdi # 0x601a3 leaq 0x2cfeaa(%rip), %rsi # 0x2f6010 movq %rbx, %rdx movq %r14, %rcx callq 0x269ed testl %eax, %eax jne 0x2632d leaq -0x20(%rbp), %rsi movq (%rsi), %rax movq %rax, 0x347079(%rip) # 0x36d200 leaq 0x2cfe92(%rip), %rdx # 0x2f6020 leaq 0x1ba(%rip), %rcx # 0x2634f leaq -0x14(%rbp), %rdi callq 0x28e40 testl %eax, %eax jne 0x26345 movl -0x14(%rbp), %eax leal -0x3(%rax), %ecx cmpl $-0x2, %ecx jb 0x261c8 cmpl $0x1, %eax sete %dl movb 0x346d93(%rip), %cl # 0x36cf50 testb %cl, %cl sete %sil orb %dl, %sil jne 0x261ea callq 0x2638b movq 0x34702c(%rip), %rdi # 0x36d200 callq 0x26ff7 xorl %edi, %edi callq 0x2b4b7 movl $0x1, %ebx jmp 0x26304 testb %cl, %cl leaq 0x3aae0(%rip), %rcx # 0x60cd3 leaq 0x3ab7b(%rip), %rbx # 0x60d75 cmovneq %rcx, %rbx cmpl $0x1, %eax cmovneq %rcx, %rbx leaq 0x39f9a(%rip), %rdi # 0x601a6 leaq 0x3abeb(%rip), %rsi # 0x60dfe xorl %eax, %eax callq 0x24060 leaq 0x39f9d(%rip), %rdi # 0x601be xorl %eax, %eax callq 0x24060 leaq 0x3a199(%rip), %rdi # 0x603c8 leaq 0x3ac3c(%rip), %rsi # 0x60e72 xorl %eax, %eax callq 0x24060 cmpb $0x0, 0x346d0e(%rip) # 0x36cf52 leaq 0x3a278(%rip), %rax # 0x604c3 leaq 0x3a1ad(%rip), %rdi # 0x603ff cmoveq %rax, %rdi leaq 0x3ac9d(%rip), %rdx # 0x60efa movq %rbx, %rsi xorl %eax, %eax callq 0x24060 cmpl $0x1, -0x14(%rbp) jne 0x2630f cmpb $0x0, 0x346cd8(%rip) # 0x36cf50 jne 0x2630f movq -0x20(%rbp), %rax movq (%rax), %rsi leaq 0x346d64(%rip), %rdi # 0x36cff0 movl $0x200, %edx # imm = 0x200 callq 0x5ed58 movq %rax, 0x346f5b(%rip) # 0x36d1f8 movsbl 0x346cad(%rip), %edx # 0x36cf51 movq %rax, %rdi xorl %esi, %esi callq 0x25f2f testb %al, %al jne 0x26323 leaq 0x3b156(%rip), %rdi # 0x6140f callq 0x24550 leaq 0x3b030(%rip), %rdi # 0x612f5 callq 0x24550 cmpb $0x0, 0x346c81(%rip) # 0x36cf52 leaq 0x3b14e(%rip), %rax # 0x61426 leaq 0x3b3ba(%rip), %rdi # 0x61699 cmoveq %rax, %rdi callq 0x24550 movq 0x346f11(%rip), %rdi # 0x36d200 callq 0x26ff7 xorl %ebx, %ebx xorl %edi, %edi callq 0x2b4b7 xorl %edi, %edi callq 0x2b4b7 movl %ebx, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq leaq -0x20(%rbp), %rdi callq 0x24cbd movl $0x1, %ebx testb $0x1, %al jne 0x262ca jmp 0x26304 callq 0x24c7d jmp 0x261e0 xorl %edi, %edi cmpl $0x4, %eax jne 0x26340 callq 0x2b4b7 xorl %edi, %edi callq 0x243f0 callq 0x2b4b7 movl $0x1, %edi callq 0x243f0
main: push rbp mov rbp, rsp push r14 push rbx sub rsp, 10h lea rbx, [rbp+var_14] mov [rbx], edi lea r14, [rbp+var_20] mov [r14], rsi mov rax, [rsi] lea rcx, my_progname mov [rcx], rax call my_init lea rdi, aMy; "my" lea rsi, _ZL19load_default_groups; load_default_groups mov rdx, rbx mov rcx, r14 call load_defaults test eax, eax jnz loc_2632D lea rsi, [rbp+var_20] mov rax, [rsi] mov cs:_ZL12default_argv, rax; default_argv lea rdx, _ZL15my_long_options; my_long_options lea rcx, _ZL14get_one_optionPK9my_optionPKcS3_; get_one_option(my_option const*,char const*,char const*) lea rdi, [rbp+var_14] call handle_options test eax, eax jnz loc_26345 mov eax, [rbp+var_14] lea ecx, [rax-3] cmp ecx, 0FFFFFFFEh jb short loc_261C8 cmp eax, 1 setz dl mov cl, cs:opt_leap test cl, cl setz sil or sil, dl jnz short loc_261EA loc_261C8: call _ZL11print_usagev; print_usage(void) mov rdi, cs:_ZL12default_argv; default_argv call free_defaults xor edi, edi call my_end loc_261E0: mov ebx, 1 jmp loc_26304 loc_261EA: test cl, cl lea rcx, aCreateSqlComma+43h; "" lea rbx, aTruncateTableT_0; "TRUNCATE TABLE time_zone;\nTRUNCATE TAB"... cmovnz rbx, rcx cmp eax, 1 cmovnz rbx, rcx lea rdi, aSetWsrepIsOnS; "set @wsrep_is_on=(%s);\n" lea rsi, aSelectCoalesce; "select coalesce(sum(SESSION_VALUE='ON')"... xor eax, eax call _printf lea rdi, aSelectConcatGr; "SELECT concat('%%', GROUP_CONCAT(OPTION"... xor eax, eax call _printf lea rdi, aSetWsrepCannot; "set @wsrep_cannot_replicate_tz=@wsrep_i"... lea rsi, aSelectCoalesce_0; "select coalesce(sum(GLOBAL_VALUE NOT LI"... xor eax, eax call _printf cmp cs:opt_skip_write_binlog, 0 lea rax, aExecuteImmedia_1; "execute immediate if(@wsrep_cannot_repl"... lea rdi, aExecuteImmedia_2; "execute immediate if(@wsrep_is_on, 'SET"... cmovz rdi, rax lea rdx, aLockTablesTime; "LOCK TABLES time_zone WRITE,\n time_zo"... mov rsi, rbx xor eax, eax call _printf cmp [rbp+var_14], 1 jnz loc_2630F cmp cs:opt_leap, 0 jnz loc_2630F mov rax, [rbp+var_20] mov rsi, [rax] lea rdi, fullname mov edx, 200h call strmake mov cs:root_name_end, rax movsx edx, cs:opt_verbose; unsigned int mov rdi, rax; char * xor esi, esi; unsigned int call _Z11scan_tz_dirPcjj; scan_tz_dir(char *,uint,uint) test al, al jnz short loc_26323 lea rdi, aUnlockTablesCo; "UNLOCK TABLES;\nCOMMIT;" call _puts lea rdi, aExecuteImmedia_3; "execute immediate if(@wsrep_cannot_repl"... call _puts loc_262CA: cmp cs:opt_skip_write_binlog, 0 lea rax, aExecuteImmedia_4; "execute immediate if(@wsrep_cannot_repl"... lea rdi, aSetSessionSqlL; "SET SESSION SQL_LOG_BIN=@save_sql_log_b"... cmovz rdi, rax call _puts mov rdi, cs:_ZL12default_argv; default_argv call free_defaults xor ebx, ebx xor edi, edi call my_end xor edi, edi call my_end loc_26304: mov eax, ebx add rsp, 10h pop rbx pop r14 pop rbp retn loc_2630F: lea rdi, [rbp+var_20] call main_cold_2 mov ebx, 1 test al, 1 jnz short loc_262CA jmp short loc_26304 loc_26323: call main_cold_1 jmp loc_261E0 loc_2632D: xor edi, edi cmp eax, 4 jnz short loc_26340 call my_end xor edi, edi call _exit loc_26340: call my_end loc_26345: mov edi, 1 call _exit
int main(int argc, const char **argv, const char **envp) { int v3; // eax int v4; // ebx char *v5; // rbx const char *v6; // rdi const char *v7; // rdi const char **v9; // [rsp+0h] [rbp-20h] BYREF _DWORD v10[5]; // [rsp+Ch] [rbp-14h] BYREF v10[0] = argc; v9 = argv; my_progname = *argv; my_init(argc, argv, envp); v3 = load_defaults("my", &load_default_groups, v10, &v9); if ( v3 ) { if ( v3 == 4 ) { my_end(0LL); exit(0LL); } my_end(0LL); LABEL_27: exit(1LL); } default_argv = (long long)v9; if ( (unsigned int)handle_options(v10, &v9, &my_long_options, get_one_option) ) goto LABEL_27; if ( (unsigned int)(v10[0] - 3) < 0xFFFFFFFE || v10[0] != 1 && opt_leap != 0 ) { print_usage(); free_defaults(default_argv); my_end(0LL); return 1; } v5 = "TRUNCATE TABLE time_zone;\n" "TRUNCATE TABLE time_zone_name;\n" "TRUNCATE TABLE time_zone_transition;\n" "TRUNCATE TABLE time_zone_transition_type;\n"; if ( opt_leap ) v5 = ""; if ( v10[0] != 1 ) v5 = ""; printf( "set @wsrep_is_on=(%s);\n", "select coalesce(sum(SESSION_VALUE='ON'), 0) from information_schema.SYSTEM_VARIABLES WHERE VARIABLE_NAME='wsrep_on'"); printf( "SELECT concat('%%', GROUP_CONCAT(OPTION), '%%') INTO @replicate_opt FROM (SELECT DISTINCT concat('REPLICATE_', UP" "PER(ENGINE)) AS OPTION FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME IN ('t" "ime_zone', 'time_zone_name', 'time_zone_transition', " " 'time_zone_transition_type', 'time_zone_leap_second') AND ENGINE in ('MyISAM'," " 'Aria')) AS o ORDER BY OPTION DESC;\n"); printf( "set @wsrep_cannot_replicate_tz=@wsrep_is_on AND (%s);\n", "select coalesce(sum(GLOBAL_VALUE NOT LIKE @replicate_opt), 0) from information_schema.SYSTEM_VARIABLES WHERE VARIABL" "E_NAME='wsrep_mode'"); v6 = "execute immediate if(@wsrep_is_on, 'SET @save_wsrep_on=@@WSREP_ON, WSREP_ON=OFF', 'do 0');\n" "SET @save_sql_log_bin=@@SQL_LOG_BIN;\n" "SET SESSION SQL_LOG_BIN=0;\n" "SET @wsrep_cannot_replicate_tz=0;\n" "%s%s;\n"; if ( !opt_skip_write_binlog ) v6 = "execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_engine from information_schema" ".TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone'\", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_name_engine from information_s" "chema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone_name'\", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_name ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_transition_engine from informa" "tion_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone_transition'\", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_transition ENGINE=InnoDB', 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_transition_type_engine from in" "formation_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone_transition_type'\", 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_transition_type ENGINE=InnoDB', 'do 0')" ";\n" "%s/*M!100602 execute immediate if(@wsrep_cannot_replicate_tz, 'start transaction', '%s')*/;\n"; printf( v6, v5, "LOCK TABLES time_zone WRITE,\n" " time_zone_leap_second WRITE,\n" " time_zone_name WRITE,\n" " time_zone_transition WRITE,\n" " time_zone_transition_type WRITE"); if ( v10[0] != 1 || opt_leap ) { v4 = 1; if ( (main_cold_2((long long **)&v9) & 1) == 0 ) return v4; } else { root_name_end = strmake(fullname, *v9, 512LL); if ( (unsigned __int8)scan_tz_dir((char *)root_name_end, 0, opt_verbose) ) { main_cold_1(); return 1; } puts("UNLOCK TABLES;\nCOMMIT;"); puts( "execute immediate if(@wsrep_cannot_replicate_tz, 'do 0','ALTER TABLE time_zone_transition ORDER BY Time_zone_id, T" "ransition_time');\n" "execute immediate if(@wsrep_cannot_replicate_tz, 'do 0','ALTER TABLE time_zone_transition_type ORDER BY Time_zone_" "id, Transition_type_id');"); } v7 = "SET SESSION SQL_LOG_BIN=@save_sql_log_bin;\n" "execute immediate if(@wsrep_is_on, 'SET SESSION WSREP_ON=@save_wsrep_on', 'do 0');"; if ( !opt_skip_write_binlog ) v7 = "execute immediate if(@wsrep_cannot_replicate_tz, concat('ALTER TABLE time_zone ENGINE=', @time_zone_engine), 'd" "o 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, concat('ALTER TABLE time_zone_name ENGINE=', @time_zone_name_e" "ngine), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, concat('ALTER TABLE time_zone_transition ENGINE=', @time_zone_" "transition_engine, ', ORDER BY Time_zone_id, Transition_time'), 'do 0');\n" "execute immediate if(@wsrep_cannot_replicate_tz, concat('ALTER TABLE time_zone_transition_type ENGINE=', @time_" "zone_transition_type_engine, ', ORDER BY Time_zone_id, Transition_type_id'), 'do 0');"; puts(v7); free_defaults(default_argv); v4 = 0; my_end(0LL); my_end(0LL); return v4; }
main: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x10 LEA RBX,[RBP + -0x14] MOV dword ptr [RBX],EDI LEA R14,[RBP + -0x20] MOV qword ptr [R14],RSI MOV RAX,qword ptr [RSI] LEA RCX,[0x46d700] MOV qword ptr [RCX],RAX CALL 0x0012b31c LEA RDI,[0x1601a3] LEA RSI,[0x3f6010] MOV RDX,RBX MOV RCX,R14 CALL 0x001269ed TEST EAX,EAX JNZ 0x0012632d LEA RSI,[RBP + -0x20] MOV RAX,qword ptr [RSI] MOV qword ptr [0x0046d200],RAX LEA RDX,[0x3f6020] LEA RCX,[0x12634f] LEA RDI,[RBP + -0x14] CALL 0x00128e40 TEST EAX,EAX JNZ 0x00126345 MOV EAX,dword ptr [RBP + -0x14] LEA ECX,[RAX + -0x3] CMP ECX,-0x2 JC 0x001261c8 CMP EAX,0x1 SETZ DL MOV CL,byte ptr [0x0046cf50] TEST CL,CL SETZ SIL OR SIL,DL JNZ 0x001261ea LAB_001261c8: CALL 0x0012638b MOV RDI,qword ptr [0x0046d200] CALL 0x00126ff7 XOR EDI,EDI CALL 0x0012b4b7 LAB_001261e0: MOV EBX,0x1 JMP 0x00126304 LAB_001261ea: TEST CL,CL LEA RCX,[0x160cd3] LEA RBX,[0x160d75] CMOVNZ RBX,RCX CMP EAX,0x1 CMOVNZ RBX,RCX LEA RDI,[0x1601a6] LEA RSI,[0x160dfe] XOR EAX,EAX CALL 0x00124060 LEA RDI,[0x1601be] XOR EAX,EAX CALL 0x00124060 LEA RDI,[0x1603c8] LEA RSI,[0x160e72] XOR EAX,EAX CALL 0x00124060 CMP byte ptr [0x0046cf52],0x0 LEA RAX,[0x1604c3] LEA RDI,[0x1603ff] CMOVZ RDI,RAX LEA RDX,[0x160efa] MOV RSI,RBX XOR EAX,EAX CALL 0x00124060 CMP dword ptr [RBP + -0x14],0x1 JNZ 0x0012630f CMP byte ptr [0x0046cf50],0x0 JNZ 0x0012630f MOV RAX,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RAX] LEA RDI,[0x46cff0] MOV EDX,0x200 CALL 0x0015ed58 MOV qword ptr [0x0046d1f8],RAX MOVSX EDX,byte ptr [0x0046cf51] MOV RDI,RAX XOR ESI,ESI CALL 0x00125f2f TEST AL,AL JNZ 0x00126323 LEA RDI,[0x16140f] CALL 0x00124550 LEA RDI,[0x1612f5] CALL 0x00124550 LAB_001262ca: CMP byte ptr [0x0046cf52],0x0 LEA RAX,[0x161426] LEA RDI,[0x161699] CMOVZ RDI,RAX CALL 0x00124550 MOV RDI,qword ptr [0x0046d200] CALL 0x00126ff7 XOR EBX,EBX XOR EDI,EDI CALL 0x0012b4b7 XOR EDI,EDI CALL 0x0012b4b7 LAB_00126304: MOV EAX,EBX ADD RSP,0x10 POP RBX POP R14 POP RBP RET LAB_0012630f: LEA RDI,[RBP + -0x20] CALL 0x00124cbd MOV EBX,0x1 TEST AL,0x1 JNZ 0x001262ca JMP 0x00126304 LAB_00126323: CALL 0x00124c7d JMP 0x001261e0 LAB_0012632d: XOR EDI,EDI CMP EAX,0x4 JNZ 0x00126340 CALL 0x0012b4b7 XOR EDI,EDI CALL 0x001243f0 LAB_00126340: CALL 0x0012b4b7 LAB_00126345: MOV EDI,0x1 CALL 0x001243f0
int8 main(int param_1,int8 *param_2) { char cVar1; int iVar2; ulong uVar3; int8 uVar4; char *pcVar5; char *__format; int8 *local_28; int local_1c; my_progname = *param_2; local_28 = param_2; local_1c = param_1; my_init(); iVar2 = load_defaults(&DAT_001601a3,load_default_groups,&local_1c,&local_28); if (iVar2 != 0) { if (iVar2 == 4) { my_end(); /* WARNING: Subroutine does not return */ exit(0); } my_end(); LAB_00126345: /* WARNING: Subroutine does not return */ exit(1); } default_argv = local_28; iVar2 = handle_options(&local_1c,&local_28,my_long_options,get_one_option); if (iVar2 != 0) goto LAB_00126345; if ((local_1c - 3U < 0xfffffffe) || (opt_leap != '\0' && local_1c != 1)) { print_usage(); free_defaults(default_argv); my_end(0); LAB_001261e0: uVar4 = 1; } else { pcVar5 = "TRUNCATE TABLE time_zone;\nTRUNCATE TABLE time_zone_name;\nTRUNCATE TABLE time_zone_transition;\nTRUNCATE TABLE time_zone_transition_type;\n" ; if (opt_leap != '\0') { pcVar5 = ""; } if (local_1c != 1) { pcVar5 = ""; } printf("set @wsrep_is_on=(%s);\n", "select coalesce(sum(SESSION_VALUE=\'ON\'), 0) from information_schema.SYSTEM_VARIABLES WHERE VARIABLE_NAME=\'wsrep_on\'" ); printf( "SELECT concat(\'%%\', GROUP_CONCAT(OPTION), \'%%\') INTO @replicate_opt FROM (SELECT DISTINCT concat(\'REPLICATE_\', UPPER(ENGINE)) AS OPTION FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME IN (\'time_zone\', \'time_zone_name\', \'time_zone_transition\', \'time_zone_transition_type\', \'time_zone_leap_second\') AND ENGINE in (\'MyISAM\', \'Aria\')) AS o ORDER BY OPTION DESC;\n" ); printf("set @wsrep_cannot_replicate_tz=@wsrep_is_on AND (%s);\n", "select coalesce(sum(GLOBAL_VALUE NOT LIKE @replicate_opt), 0) from information_schema.SYSTEM_VARIABLES WHERE VARIABLE_NAME=\'wsrep_mode\'" ); __format = "execute immediate if(@wsrep_is_on, \'SET @save_wsrep_on=@@WSREP_ON, WSREP_ON=OFF\', \'do 0\');\nSET @save_sql_log_bin=@@SQL_LOG_BIN;\nSET SESSION SQL_LOG_BIN=0;\nSET @wsrep_cannot_replicate_tz=0;\n%s%s;\n" ; if (opt_skip_write_binlog == '\0') { __format = "execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME=\'time_zone\'\", \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'ALTER TABLE time_zone ENGINE=InnoDB\', \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_name_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME=\'time_zone_name\'\", \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'ALTER TABLE time_zone_name ENGINE=InnoDB\', \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_transition_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME=\'time_zone_transition\'\", \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'ALTER TABLE time_zone_transition ENGINE=InnoDB\', \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_transition_type_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME=\'time_zone_transition_type\'\", \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'ALTER TABLE time_zone_transition_type ENGINE=InnoDB\', \'do 0\');\n%s/*M!100602 execute immediate if(@wsrep_cannot_replicate_tz, \'start transaction\', \'%s\')*/;\n" ; } printf(__format,pcVar5, "LOCK TABLES time_zone WRITE,\n time_zone_leap_second WRITE,\n time_zone_name WRITE,\n time_zone_transition WRITE,\n time_zone_transition_type WRITE" ); if ((local_1c == 1) && (opt_leap == '\0')) { root_name_end = (char *)strmake(fullname,*local_28,0x200); cVar1 = scan_tz_dir(root_name_end,0,(int)opt_verbose); if (cVar1 != '\0') { main_cold_1(); goto LAB_001261e0; } puts("UNLOCK TABLES;\nCOMMIT;"); puts( "execute immediate if(@wsrep_cannot_replicate_tz, \'do 0\',\'ALTER TABLE time_zone_transition ORDER BY Time_zone_id, Transition_time\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'do 0\',\'ALTER TABLE time_zone_transition_type ORDER BY Time_zone_id, Transition_type_id\');" ); } else { uVar3 = main_cold_2(&local_28); if ((uVar3 & 1) == 0) { return 1; } } pcVar5 = "SET SESSION SQL_LOG_BIN=@save_sql_log_bin;\nexecute immediate if(@wsrep_is_on, \'SET SESSION WSREP_ON=@save_wsrep_on\', \'do 0\');" ; if (opt_skip_write_binlog == '\0') { pcVar5 = "execute immediate if(@wsrep_cannot_replicate_tz, concat(\'ALTER TABLE time_zone ENGINE=\', @time_zone_engine), \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, concat(\'ALTER TABLE time_zone_name ENGINE=\', @time_zone_name_engine), \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, concat(\'ALTER TABLE time_zone_transition ENGINE=\', @time_zone_transition_engine, \', ORDER BY Time_zone_id, Transition_time\'), \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, concat(\'ALTER TABLE time_zone_transition_type ENGINE=\', @time_zone_transition_type_engine, \', ORDER BY Time_zone_id, Transition_type_id\'), \'do 0\');" ; } puts(pcVar5); free_defaults(default_argv); uVar4 = 0; my_end(0); my_end(0); } return uVar4; }
45,086
mthd_my_skip_result
eloqsql/libmariadb/libmariadb/mariadb_lib.c
void mthd_my_skip_result(MYSQL *mysql) { ulong pkt_len; do { pkt_len= ma_net_safe_read(mysql); if (pkt_len == packet_error) break; } while (pkt_len > 8 || mysql->net.read_pos[0] != 254); return; }
O0
c
mthd_my_skip_result: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x17060 movq %rax, -0x10(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, -0x10(%rbp) jne 0x18466 jmp 0x18491 jmp 0x18468 movb $0x1, %al cmpq $0x8, -0x10(%rbp) movb %al, -0x11(%rbp) ja 0x1848a movq -0x8(%rbp), %rax movq 0x20(%rax), %rax movzbl (%rax), %eax cmpl $0xfe, %eax setne %al movb %al, -0x11(%rbp) movb -0x11(%rbp), %al testb $0x1, %al jne 0x1844c addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
mthd_my_skip_result: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi loc_1844C: mov rdi, [rbp+var_8] call ma_net_safe_read mov [rbp+var_10], rax mov eax, 0FFFFFFFFh cmp [rbp+var_10], rax jnz short loc_18466 jmp short loc_18491 loc_18466: jmp short $+2 loc_18468: mov al, 1 cmp [rbp+var_10], 8 mov [rbp+var_11], al ja short loc_1848A mov rax, [rbp+var_8] mov rax, [rax+20h] movzx eax, byte ptr [rax] cmp eax, 0FEh setnz al mov [rbp+var_11], al loc_1848A: mov al, [rbp+var_11] test al, 1 jnz short loc_1844C loc_18491: add rsp, 20h pop rbp retn
char mthd_my_skip_result(long long a1, long long a2, long long a3, long long a4, int a5, int a6) { char result; // al bool v7; // [rsp+Fh] [rbp-11h] unsigned long long v8; // [rsp+10h] [rbp-10h] do { v8 = ma_net_safe_read(a1, a2, a3, a4, a5, a6); result = -1; if ( v8 == 0xFFFFFFFF ) break; v7 = 1; if ( v8 <= 8 ) v7 = **(unsigned __int8 **)(a1 + 32) != 254; result = v7; } while ( v7 ); return result; }
mthd_my_skip_result: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI LAB_0011844c: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00117060 MOV qword ptr [RBP + -0x10],RAX MOV EAX,0xffffffff CMP qword ptr [RBP + -0x10],RAX JNZ 0x00118466 JMP 0x00118491 LAB_00118466: JMP 0x00118468 LAB_00118468: MOV AL,0x1 CMP qword ptr [RBP + -0x10],0x8 MOV byte ptr [RBP + -0x11],AL JA 0x0011848a MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfe SETNZ AL MOV byte ptr [RBP + -0x11],AL LAB_0011848a: MOV AL,byte ptr [RBP + -0x11] TEST AL,0x1 JNZ 0x0011844c LAB_00118491: ADD RSP,0x20 POP RBP RET
void mthd_my_skip_result(long param_1) { ulong uVar1; bool bVar2; do { uVar1 = ma_net_safe_read(param_1); if (uVar1 == 0xffffffff) { return; } bVar2 = true; if (uVar1 < 9) { bVar2 = **(char **)(param_1 + 0x20) != -2; } } while (bVar2); return; }
45,087
ma_row_pos_from_key
eloqsql/storage/maria/ma_search.c
MARIA_RECORD_POS _ma_row_pos_from_key(const MARIA_KEY *key) { my_off_t pos; const uchar *after_key= key->data + key->data_length; MARIA_SHARE *share= key->keyinfo->share; switch (share->rec_reflength) { #if SIZEOF_OFF_T > 4 case 8: pos= (my_off_t) mi_uint8korr(after_key); break; case 7: pos= (my_off_t) mi_uint7korr(after_key); break; case 6: pos= (my_off_t) mi_uint6korr(after_key); break; case 5: pos= (my_off_t) mi_uint5korr(after_key); break; #else case 8: pos= (my_off_t) mi_uint4korr(after_key+4); break; case 7: pos= (my_off_t) mi_uint4korr(after_key+3); break; case 6: pos= (my_off_t) mi_uint4korr(after_key+2); break; case 5: pos= (my_off_t) mi_uint4korr(after_key+1); break; #endif case 4: pos= (my_off_t) mi_uint4korr(after_key); break; case 3: pos= (my_off_t) mi_uint3korr(after_key); break; case 2: pos= (my_off_t) mi_uint2korr(after_key); break; case 0: /* NO_RECORD */ default: pos=0L; /* Shut compiler up */ } return (*share->keypos_to_recpos)(share, pos); }
O0
c
ma_row_pos_from_key: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rcx movq (%rcx), %rax movl 0x10(%rcx), %ecx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movl 0x740(%rax), %eax movq %rax, -0x28(%rbp) subq $0x8, %rax ja 0x6c553 movq -0x28(%rbp), %rax leaq 0xedd91(%rip), %rcx # 0x15a1b0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x18(%rbp), %rax movzbl 0x7(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x6(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x5(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x4(%rcx), %ecx shll $0x18, %ecx orl %ecx, %eax movl %eax, %eax movq -0x18(%rbp), %rcx movzbl 0x3(%rcx), %ecx movq -0x18(%rbp), %rdx movzbl 0x2(%rdx), %edx shll $0x8, %edx orl %edx, %ecx movq -0x18(%rbp), %rdx movzbl 0x1(%rdx), %edx shll $0x10, %edx orl %edx, %ecx movq -0x18(%rbp), %rdx movzbl (%rdx), %edx shll $0x18, %edx orl %edx, %ecx movl %ecx, %ecx shlq $0x20, %rcx orq %rcx, %rax movq %rax, -0x10(%rbp) jmp 0x6c55b movq -0x18(%rbp), %rdi callq 0x6c050 movq %rax, -0x10(%rbp) jmp 0x6c55b movq -0x18(%rbp), %rdi callq 0x6c0b0 movq %rax, -0x10(%rbp) jmp 0x6c55b movq -0x18(%rbp), %rdi callq 0x6c100 movq %rax, -0x10(%rbp) jmp 0x6c55b movq -0x18(%rbp), %rax movzbl 0x3(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx shll $0x18, %ecx orl %ecx, %eax movl %eax, %eax movq %rax, -0x10(%rbp) jmp 0x6c55b movq -0x18(%rbp), %rax movzbl 0x2(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax movq %rax, -0x10(%rbp) jmp 0x6c55b movq -0x18(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax movq %rax, -0x10(%rbp) jmp 0x6c55b jmp 0x6c553 movq $0x0, -0x10(%rbp) movq -0x20(%rbp), %rax movq 0x6c8(%rax), %rax movq -0x20(%rbp), %rdi movq -0x10(%rbp), %rsi callq *%rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_row_pos_from_key: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov rcx, [rbp+var_8] mov rax, [rcx] mov ecx, [rcx+10h] add rax, rcx mov [rbp+var_18], rax mov rax, [rbp+var_8] mov rax, [rax+8] mov rax, [rax] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov eax, [rax+740h] mov [rbp+var_28], rax sub rax, 8; switch 9 cases ja def_6C426; jumptable 000000000006C426 default case, case 1 mov rax, [rbp+var_28] lea rcx, jpt_6C426 movsxd rax, ds:(jpt_6C426 - 15A1B0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_6C428: mov rax, [rbp+var_18]; jumptable 000000000006C426 case 8 movzx eax, byte ptr [rax+7] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+6] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+5] shl ecx, 10h or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+4] shl ecx, 18h or eax, ecx mov eax, eax mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+3] mov rdx, [rbp+var_18] movzx edx, byte ptr [rdx+2] shl edx, 8 or ecx, edx mov rdx, [rbp+var_18] movzx edx, byte ptr [rdx+1] shl edx, 10h or ecx, edx mov rdx, [rbp+var_18] movzx edx, byte ptr [rdx] shl edx, 18h or ecx, edx mov ecx, ecx shl rcx, 20h or rax, rcx mov [rbp+var_10], rax jmp loc_6C55B loc_6C499: mov rdi, [rbp+var_18]; jumptable 000000000006C426 case 7 call mi_uint7korr mov [rbp+var_10], rax jmp loc_6C55B loc_6C4AB: mov rdi, [rbp+var_18]; jumptable 000000000006C426 case 6 call mi_uint6korr mov [rbp+var_10], rax jmp loc_6C55B loc_6C4BD: mov rdi, [rbp+var_18]; jumptable 000000000006C426 case 5 call mi_uint5korr mov [rbp+var_10], rax jmp loc_6C55B loc_6C4CF: mov rax, [rbp+var_18]; jumptable 000000000006C426 case 4 movzx eax, byte ptr [rax+3] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+2] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] shl ecx, 10h or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] shl ecx, 18h or eax, ecx mov eax, eax mov [rbp+var_10], rax jmp short loc_6C55B loc_6C505: mov rax, [rbp+var_18]; jumptable 000000000006C426 case 3 movzx eax, byte ptr [rax+2] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] shl ecx, 10h or eax, ecx mov eax, eax mov [rbp+var_10], rax jmp short loc_6C55B loc_6C52E: mov rax, [rbp+var_18]; jumptable 000000000006C426 case 2 movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax mov [rbp+var_10], rax jmp short loc_6C55B loc_6C551: jmp short $+2; jumptable 000000000006C426 case 0 def_6C426: mov [rbp+var_10], 0; jumptable 000000000006C426 default case, case 1 loc_6C55B: mov rax, [rbp+var_20] mov rax, [rax+6C8h] mov rdi, [rbp+var_20] mov rsi, [rbp+var_10] call rax add rsp, 30h pop rbp retn
long long ma_row_pos_from_key(long long a1) { long long result; // rax long long v2; // [rsp+10h] [rbp-20h] unsigned int *v3; // [rsp+18h] [rbp-18h] unsigned long long v4; // [rsp+20h] [rbp-10h] unsigned long long v5; // [rsp+20h] [rbp-10h] unsigned long long v6; // [rsp+20h] [rbp-10h] v3 = (unsigned int *)(*(unsigned int *)(a1 + 16) + *(_QWORD *)a1); v2 = **(_QWORD **)(a1 + 8); switch ( *(_DWORD *)(v2 + 1856) ) { case 2: result = (*(long long ( **)(long long, _QWORD))(v2 + 1736))(v2, _byteswap_ushort(*(_WORD *)v3)); break; case 3: result = (*(long long ( **)(long long, _QWORD))(v2 + 1736))( v2, (*(unsigned __int8 *)v3 << 16) | (*((unsigned __int8 *)v3 + 1) << 8) | (unsigned int)*((unsigned __int8 *)v3 + 2)); break; case 4: result = (*(long long ( **)(long long, _QWORD))(v2 + 1736))(v2, _byteswap_ulong(*v3)); break; case 5: v6 = mi_uint5korr(v3); result = (*(long long ( **)(long long, unsigned long long))(v2 + 1736))(v2, v6); break; case 6: v5 = mi_uint6korr(v3); result = (*(long long ( **)(long long, unsigned long long))(v2 + 1736))(v2, v5); break; case 7: v4 = mi_uint7korr(v3); result = (*(long long ( **)(long long, unsigned long long))(v2 + 1736))(v2, v4); break; case 8: result = (*(long long ( **)(long long, unsigned long long))(v2 + 1736))( v2, ((unsigned long long)_byteswap_ulong(*v3) << 32) | _byteswap_ulong(v3[1])); break; default: result = (*(long long ( **)(long long, _QWORD))(v2 + 1736))(v2, 0LL); break; } return result; }
_ma_row_pos_from_key: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RCX] MOV ECX,dword ptr [RCX + 0x10] ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x740] MOV qword ptr [RBP + -0x28],RAX SUB RAX,0x8 JA 0x0016c553 MOV RAX,qword ptr [RBP + -0x28] LEA RCX,[0x25a1b0] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_8: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x7] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x6] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x5] SHL ECX,0x10 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x4] SHL ECX,0x18 OR EAX,ECX MOV EAX,EAX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x3] MOV RDX,qword ptr [RBP + -0x18] MOVZX EDX,byte ptr [RDX + 0x2] SHL EDX,0x8 OR ECX,EDX MOV RDX,qword ptr [RBP + -0x18] MOVZX EDX,byte ptr [RDX + 0x1] SHL EDX,0x10 OR ECX,EDX MOV RDX,qword ptr [RBP + -0x18] MOVZX EDX,byte ptr [RDX] SHL EDX,0x18 OR ECX,EDX MOV ECX,ECX SHL RCX,0x20 OR RAX,RCX MOV qword ptr [RBP + -0x10],RAX JMP 0x0016c55b caseD_7: MOV RDI,qword ptr [RBP + -0x18] CALL 0x0016c050 MOV qword ptr [RBP + -0x10],RAX JMP 0x0016c55b caseD_6: MOV RDI,qword ptr [RBP + -0x18] CALL 0x0016c0b0 MOV qword ptr [RBP + -0x10],RAX JMP 0x0016c55b caseD_5: MOV RDI,qword ptr [RBP + -0x18] CALL 0x0016c100 MOV qword ptr [RBP + -0x10],RAX JMP 0x0016c55b caseD_4: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x3] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x10 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] SHL ECX,0x18 OR EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0x10],RAX JMP 0x0016c55b caseD_3: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x2] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0x10],RAX JMP 0x0016c55b caseD_2: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX MOV qword ptr [RBP + -0x10],RAX JMP 0x0016c55b caseD_0: JMP 0x0016c553 caseD_1: MOV qword ptr [RBP + -0x10],0x0 LAB_0016c55b: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x6c8] MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x10] CALL RAX ADD RSP,0x30 POP RBP RET
void _ma_row_pos_from_key(long *param_1) { long lVar1; int1 *puVar2; ulong local_18; puVar2 = (int1 *)(*param_1 + (ulong)*(uint *)(param_1 + 2)); lVar1 = *(long *)param_1[1]; switch(*(int4 *)(lVar1 + 0x740)) { case 0: default: local_18 = 0; break; case 2: local_18 = (ulong)CONCAT11(*puVar2,puVar2[1]); break; case 3: local_18 = (ulong)CONCAT12(*puVar2,CONCAT11(puVar2[1],puVar2[2])); break; case 4: local_18 = (ulong)CONCAT13(*puVar2,CONCAT12(puVar2[1],CONCAT11(puVar2[2],puVar2[3]))); break; case 5: local_18 = mi_uint5korr(puVar2); break; case 6: local_18 = mi_uint6korr(puVar2); break; case 7: local_18 = mi_uint7korr(puVar2); break; case 8: local_18 = CONCAT44(CONCAT13(*puVar2,CONCAT12(puVar2[1],CONCAT11(puVar2[2],puVar2[3]))), CONCAT13(puVar2[4],CONCAT12(puVar2[5],CONCAT11(puVar2[6],puVar2[7])))); } (**(code **)(lVar1 + 0x6c8))(lVar1,local_18); return; }
45,088
testing::TestResult::ValidateTestProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::TestProperty const&)
seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc
bool TestResult::ValidateTestProperty(const std::string& xml_element, const TestProperty& test_property) { return ValidateTestPropertyName(test_property.key(), GetReservedAttributesForElement(xml_element)); }
O1
cpp
testing::TestResult::ValidateTestProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::TestProperty const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdi, %rbx movq (%rsi), %rsi leaq 0x78(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x3518c leaq 0x1fbb7(%rip), %rsi # 0x438c0 movq %rbx, %rdi callq 0x9160 testl %eax, %eax je 0x23dc2 leaq 0x1fa87(%rip), %rsi # 0x437a7 movq %rbx, %rdi callq 0x9160 testl %eax, %eax je 0x23de1 leaq 0x1fab5(%rip), %rsi # 0x437ec movq %rbx, %rdi callq 0x9160 testl %eax, %eax je 0x23e00 leaq 0x1ecad(%rip), %rdx # 0x429fb leaq 0x38(%rsp), %rdi movl $0x3, %esi movl $0x8f9, %ecx # imm = 0x8F9 callq 0x1b13e movq 0x3627f(%rip), %rdi # 0x59fe8 leaq 0x20669(%rip), %rsi # 0x443d9 movl $0x18, %edx callq 0x95a0 movq 0x36267(%rip), %rdi # 0x59fe8 leaq 0x2066a(%rip), %rsi # 0x443f2 movl $0x23, %edx callq 0x95a0 movq (%rbx), %rsi movq 0x8(%rbx), %rdx movq 0x36248(%rip), %rdi # 0x59fe8 callq 0x95a0 leaq 0x38(%rsp), %rdi callq 0x1b280 xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movq $0x0, 0x20(%rsp) jmp 0x23e1d leaq 0x35757(%rip), %rsi # 0x59520 leaq 0x35790(%rip), %rdx # 0x59560 leaq 0x10(%rsp), %rdi leaq 0x38(%rsp), %rcx callq 0x3ab5c jmp 0x23e1d leaq 0x35778(%rip), %rsi # 0x59560 leaq 0x357b1(%rip), %rdx # 0x595a0 leaq 0x10(%rsp), %rdi leaq 0x38(%rsp), %rcx callq 0x3ab5c jmp 0x23e1d leaq 0x35799(%rip), %rsi # 0x595a0 leaq 0x357d2(%rip), %rdx # 0x595e0 leaq 0x10(%rsp), %rdi leaq 0x38(%rsp), %rcx callq 0x3ab5c movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rsi leaq 0x78(%rsp), %rdx callq 0x3e758 movq %rax, %rbx movq 0x18(%rsp), %r14 cmpq %r14, %rax je 0x2405f leaq 0x58(%rsp), %rdi callq 0x20c50 movq 0x58(%rsp), %rax movq %rax, 0x30(%rsp) leaq 0x10(%rax), %r15 leaq 0x2053e(%rip), %rsi # 0x4439f movl $0x27, %edx movq %r15, %rdi callq 0x95a0 movq 0x78(%rsp), %rsi movq 0x80(%rsp), %rdx movq %r15, %rdi callq 0x95a0 leaq 0x1c8f4(%rip), %rsi # 0x4077e movl $0x2, %edx movq %r15, %rdi callq 0x95a0 movq %r15, 0x68(%rsp) movq %r14, 0x70(%rsp) movq %rbx, 0x60(%rsp) movq %rsp, %rdi callq 0x20c50 movq 0x18(%rsp), %rax subq 0x10(%rsp), %rax je 0x23f83 sarq $0x5, %rax movq (%rsp), %r12 addq $0x10, %r12 movl $0x8, %r14d xorl %r15d, %r15d leaq 0x20bfe(%rip), %r13 # 0x44ad8 leaq 0x1c2d1(%rip), %rbp # 0x401b2 leaq 0x1ecda(%rip), %rbx # 0x42bc2 testq %r15, %r15 sete %cl cmpq $0x3, %rax setb %al orb %cl, %al jne 0x23f09 movl $0x2, %edx movq %r12, %rdi movq %r13, %rsi callq 0x95a0 movq 0x18(%rsp), %rax subq 0x10(%rsp), %rax sarq $0x5, %rax decq %rax cmpq %rax, %r15 jne 0x23f2f movl $0x4, %edx movq %r12, %rdi movq %rbp, %rsi callq 0x95a0 movl $0x1, %edx movq %r12, %rdi movq %rbx, %rsi callq 0x95a0 movq 0x10(%rsp), %rax movq -0x8(%rax,%r14), %rsi movq (%rax,%r14), %rdx movq %r12, %rdi callq 0x95a0 movl $0x1, %edx movq %r12, %rdi movq %rbx, %rsi callq 0x95a0 movq 0x18(%rsp), %rax subq 0x10(%rsp), %rax incq %r15 sarq $0x5, %rax addq $0x20, %r14 cmpq %rax, %r15 jb 0x23ee8 movq (%rsp), %rbx leaq 0x38(%rsp), %rdi movq %rbx, %rsi callq 0x20eb3 testq %rbx, %rbx movq 0x68(%rsp), %r15 je 0x23fa7 movq (%rbx), %rax movq %rbx, %rdi callq *0x8(%rax) movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx movq %r15, %rdi callq 0x95a0 movq 0x70(%rsp), %r14 leaq 0x20402(%rip), %rsi # 0x443c7 movl $0x11, %edx movq %r15, %rdi callq 0x95a0 leaq 0x1f4fb(%rip), %rsi # 0x434d4 movl $0xb, %edx movq %r15, %rdi callq 0x95a0 leaq 0x1f41f(%rip), %rsi # 0x4340c movl $0x1, %edx movq %r15, %rdi callq 0x95a0 leaq 0x1e9fa(%rip), %rdx # 0x429fb leaq 0x1f115(%rip), %r8 # 0x4311d movq %rsp, %rdi movl $0x1, %esi movl $0x922, %ecx # imm = 0x922 callq 0x1d200 movq 0x60(%rsp), %rbx movq %rsp, %rdi leaq 0x58(%rsp), %rsi callq 0x1ab80 movq %rsp, %rdi callq 0x1d26c leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2404f movq 0x48(%rsp), %rsi incq %rsi callq 0x94c0 movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x2405f movq (%rdi), %rax callq *0x8(%rax) leaq 0x10(%rsp), %rdi callq 0x3538e leaq 0x88(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2408a movq 0x88(%rsp), %rsi incq %rsi callq 0x94c0 cmpq %r14, %rbx sete %al addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq %rsp, %rdi callq 0x1d26c jmp 0x240d6 jmp 0x240d3 jmp 0x240f3 jmp 0x240ce movq %rax, %r14 leaq 0x38(%rsp), %rdi callq 0x1b280 jmp 0x24122 movq %rax, %r14 jmp 0x24122 movq %rax, %r14 jmp 0x24118 movq %rax, %r14 jmp 0x24105 movq %rax, %r14 leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x24105 movq 0x48(%rsp), %rsi incq %rsi callq 0x94c0 jmp 0x24105 movq %rax, %r14 movq (%rsp), %rdi testq %rdi, %rdi je 0x24105 movq (%rdi), %rax callq *0x8(%rax) cmpq $0x0, 0x30(%rsp) je 0x24118 movq 0x30(%rsp), %rdi movq (%rdi), %rax callq *0x8(%rax) leaq 0x10(%rsp), %rdi callq 0x3538e leaq 0x88(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x24143 movq 0x88(%rsp), %rsi incq %rsi callq 0x94c0 movq %r14, %rdi callq 0x99a0 nop
_ZN7testing10TestResult20ValidateTestPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_12TestPropertyE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov rbx, rdi mov rsi, [rsi] lea rdi, [rsp+0C8h+var_50] lea rdx, [rsp+0C8h+var_B9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aTestsuites; "testsuites" mov rdi, rbx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_23DC2 lea rsi, aTestsuite+3; "testsuite" mov rdi, rbx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_23DE1 lea rsi, aTestcase+5; "testcase" mov rdi, rbx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_23E00 lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_90] mov esi, 3 mov ecx, 8F9h call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aConditionFalse; "Condition false failed. " mov edx, 18h 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, aUnrecognizedXm; "Unrecognized xml_element provided: " mov edx, 23h ; '#' call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [rbx] mov rdx, [rbx+8] mov rdi, cs:_ZSt4cerr_ptr 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+0C8h+var_90]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() xorps xmm0, xmm0 movaps [rsp+0C8h+var_B8], xmm0 mov [rsp+0C8h+var_A8], 0 jmp short loc_23E1D loc_23DC2: lea rsi, _ZN7testingL29kReservedTestSuitesAttributesE; testing::kReservedTestSuitesAttributes lea rdx, _ZN7testingL28kReservedTestSuiteAttributesE; testing::kReservedTestSuiteAttributes lea rdi, [rsp+0C8h+var_B8] lea rcx, [rsp+0C8h+var_90] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2IPKPKcvEET_SD_RKS6_; std::vector<std::string>::vector<char const* const*,void>(char const* const*,char const* const*,std::allocator<std::string> const&) jmp short loc_23E1D loc_23DE1: lea rsi, _ZN7testingL28kReservedTestSuiteAttributesE; testing::kReservedTestSuiteAttributes lea rdx, _ZN7testingL27kReservedTestCaseAttributesE; testing::kReservedTestCaseAttributes lea rdi, [rsp+0C8h+var_B8] lea rcx, [rsp+0C8h+var_90] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2IPKPKcvEET_SD_RKS6_; std::vector<std::string>::vector<char const* const*,void>(char const* const*,char const* const*,std::allocator<std::string> const&) jmp short loc_23E1D loc_23E00: lea rsi, _ZN7testingL27kReservedTestCaseAttributesE; testing::kReservedTestCaseAttributes lea rdx, _ZN7testingL33kReservedOutputTestCaseAttributesE; testing::kReservedOutputTestCaseAttributes lea rdi, [rsp+0C8h+var_B8] lea rcx, [rsp+0C8h+var_90] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2IPKPKcvEET_SD_RKS6_; std::vector<std::string>::vector<char const* const*,void>(char const* const*,char const* const*,std::allocator<std::string> const&) loc_23E1D: mov rdi, qword ptr [rsp+0C8h+var_B8] mov rsi, qword ptr [rsp+0C8h+var_B8+8] lea rdx, [rsp+0C8h+var_50] call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIS8_EEET_SH_SH_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__ops::_Iter_equals_val<std::string const>>(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__ops::_Iter_equals_val<std::string const>,std::random_access_iterator_tag) mov rbx, rax mov r14, qword ptr [rsp+0C8h+var_B8+8] cmp rax, r14 jz loc_2405F lea rdi, [rsp+0C8h+var_70]; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_70] mov [rsp+0C8h+var_98], rax lea r15, [rax+10h] lea rsi, aReservedKeyUse; "Reserved key used in RecordProperty(): " mov edx, 27h ; ''' mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [rsp+0C8h+var_50] mov rdx, [rsp+0C8h+var_48] mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aExpected+9; " (" mov edx, 2 mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov [rsp+0C8h+var_60], r15 mov [rsp+0C8h+var_58], r14 mov [rsp+0C8h+var_68], rbx mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, qword ptr [rsp+0C8h+var_B8+8] sub rax, qword ptr [rsp+0C8h+var_B8] jz loc_23F83 sar rax, 5 mov r12, [rsp+0C8h+var_C8] add r12, 10h mov r14d, 8 xor r15d, r15d lea r13, aMustBeInRange0+15h; ", " lea rbp, aSmallBlocksAnd+0Eh; "and " lea rbx, aUnknownTypePar+25h; "'" loc_23EE8: test r15, r15 setz cl cmp rax, 3 setb al or al, cl jnz short loc_23F09 mov edx, 2 mov rdi, r12 mov rsi, r13 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_23F09: mov rax, qword ptr [rsp+0C8h+var_B8+8] sub rax, qword ptr [rsp+0C8h+var_B8] sar rax, 5 dec rax cmp r15, rax jnz short loc_23F2F mov edx, 4 mov rdi, r12 mov rsi, rbp call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_23F2F: mov edx, 1 mov rdi, r12 mov rsi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rax, qword ptr [rsp+0C8h+var_B8] mov rsi, [rax+r14-8] mov rdx, [rax+r14] mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov edx, 1 mov rdi, r12 mov rsi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rax, qword ptr [rsp+0C8h+var_B8+8] sub rax, qword ptr [rsp+0C8h+var_B8] inc r15 sar rax, 5 add r14, 20h ; ' ' cmp r15, rax jb loc_23EE8 loc_23F83: mov rbx, [rsp+0C8h+var_C8] lea rdi, [rsp+0C8h+var_90] mov rsi, rbx call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *) test rbx, rbx mov r15, [rsp+0C8h+var_60] jz short loc_23FA7 mov rax, [rbx] mov rdi, rbx call qword ptr [rax+8] loc_23FA7: mov rsi, [rsp+0C8h+var_90] mov rdx, [rsp+0C8h+var_88] mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r14, [rsp+0C8h+var_58] lea rsi, aAreReservedBy; " are reserved by " mov edx, 11h mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aGoogleTest; "Google Test" mov edx, 0Bh mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aTeardowntestsu+12h; ")" mov edx, 1 mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea r8, aFailed; "Failed" mov rdi, rsp mov esi, 1 mov ecx, 922h call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) mov rbx, [rsp+0C8h+var_68] mov rdi, rsp lea rsi, [rsp+0C8h+var_70] call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) mov rdi, rsp; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() lea rax, [rsp+0C8h+var_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2404F mov rsi, [rsp+0C8h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2404F: mov rdi, [rsp+0C8h+var_98] test rdi, rdi jz short loc_2405F mov rax, [rdi] call qword ptr [rax+8] loc_2405F: lea rdi, [rsp+0C8h+var_B8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rax, [rsp+0C8h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2408A mov rsi, [rsp+0C8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2408A: cmp rbx, r14 setz al add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, rsp; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() jmp short loc_240D6 jmp short loc_240D3 jmp short loc_240F3 jmp short loc_240CE mov r14, rax lea rdi, [rsp+arg_30]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() jmp short loc_24122 mov r14, rax jmp short loc_24122 mov r14, rax jmp short loc_24118 loc_240CE: mov r14, rax jmp short loc_24105 loc_240D3: mov r14, rax loc_240D6: lea rax, [rsp+arg_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_24105 mov rsi, [rsp+arg_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_24105 loc_240F3: mov r14, rax mov rdi, [rsp+0] test rdi, rdi jz short loc_24105 mov rax, [rdi] call qword ptr [rax+8] loc_24105: cmp [rsp+arg_28], 0 jz short loc_24118 mov rdi, [rsp+arg_28] mov rax, [rdi] call qword ptr [rax+8] loc_24118: lea rdi, [rsp+arg_8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_24122: lea rax, [rsp+arg_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_24143 mov rsi, [rsp+arg_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_24143: mov rdi, r14 call __Unwind_Resume
bool testing::TestResult::ValidateTestProperty(_QWORD *a1, _QWORD *a2) { long long v2; // rbx long long v3; // r14 long long v4; // r15 unsigned long long v5; // rax long long v6; // r12 long long v7; // r14 unsigned long long v8; // r15 long long v9; // rbx long long v10; // r15 long long v12; // [rsp+0h] [rbp-C8h] BYREF char v13; // [rsp+Fh] [rbp-B9h] BYREF __int128 v14; // [rsp+10h] [rbp-B8h] BYREF long long v15; // [rsp+20h] [rbp-A8h] long long v16; // [rsp+30h] [rbp-98h] void *v17[2]; // [rsp+38h] [rbp-90h] BYREF long long v18; // [rsp+48h] [rbp-80h] BYREF long long v19; // [rsp+58h] [rbp-70h] BYREF long long v20; // [rsp+60h] [rbp-68h] long long v21; // [rsp+68h] [rbp-60h] long long v22; // [rsp+70h] [rbp-58h] void *v23[2]; // [rsp+78h] [rbp-50h] BYREF long long v24; // [rsp+88h] [rbp-40h] BYREF std::string::basic_string<std::allocator<char>>(v23, *a2, &v13); if ( !(unsigned int)std::string::compare(a1, "testsuites") ) { std::vector<std::string>::vector<char const* const*,void>( &v14, testing::kReservedTestSuitesAttributes, testing::kReservedTestSuiteAttributes, v17); } else if ( !(unsigned int)std::string::compare(a1, "testsuite") ) { std::vector<std::string>::vector<char const* const*,void>( &v14, testing::kReservedTestSuiteAttributes, &testing::kReservedTestCaseAttributes, v17); } else if ( !(unsigned int)std::string::compare(a1, "testcase") ) { std::vector<std::string>::vector<char const* const*,void>( &v14, &testing::kReservedTestCaseAttributes, &testing::kReservedOutputTestCaseAttributes, v17); } else { testing::internal::GTestLog::GTestLog( v17, 3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc", 2297); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Condition false failed. ", 24LL); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Unrecognized xml_element provided: ", 35LL); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, *a1, a1[1]); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v17); v14 = 0LL; v15 = 0LL; } v2 = std::__find_if<__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__ops::_Iter_equals_val<std::string const>>( v14, *((_QWORD *)&v14 + 1), v23); v3 = *((_QWORD *)&v14 + 1); if ( v2 != *((_QWORD *)&v14 + 1) ) { testing::Message::Message((testing::Message *)&v19); v16 = v19; v4 = v19 + 16; std::__ostream_insert<char,std::char_traits<char>>(v19 + 16, "Reserved key used in RecordProperty(): ", 39LL); std::__ostream_insert<char,std::char_traits<char>>(v4, v23[0], v23[1]); std::__ostream_insert<char,std::char_traits<char>>(v4, " (", 2LL); v21 = v4; v22 = v3; v20 = v2; testing::Message::Message((testing::Message *)&v12); if ( *((_QWORD *)&v14 + 1) != (_QWORD)v14 ) { v5 = (long long)(*((_QWORD *)&v14 + 1) - v14) >> 5; v6 = v12 + 16; v7 = 8LL; v8 = 0LL; do { if ( v8 != 0 && v5 >= 3 ) std::__ostream_insert<char,std::char_traits<char>>(v6, ", ", 2LL); if ( v8 == ((long long)(*((_QWORD *)&v14 + 1) - v14) >> 5) - 1 ) std::__ostream_insert<char,std::char_traits<char>>(v6, "and ", 4LL); std::__ostream_insert<char,std::char_traits<char>>(v6, "'", 1LL); std::__ostream_insert<char,std::char_traits<char>>(v6, *(_QWORD *)(v14 + v7 - 8), *(_QWORD *)(v14 + v7)); std::__ostream_insert<char,std::char_traits<char>>(v6, "'", 1LL); ++v8; v5 = (long long)(*((_QWORD *)&v14 + 1) - v14) >> 5; v7 += 32LL; } while ( v8 < v5 ); } v9 = v12; testing::internal::StringStreamToString((long long)v17, v12); v10 = v21; if ( v9 ) (*(void ( **)(long long))(*(_QWORD *)v9 + 8LL))(v9); std::__ostream_insert<char,std::char_traits<char>>(v10, v17[0], v17[1]); v3 = v22; std::__ostream_insert<char,std::char_traits<char>>(v10, " are reserved by ", 17LL); std::__ostream_insert<char,std::char_traits<char>>(v10, "Google Test", 11LL); std::__ostream_insert<char,std::char_traits<char>>(v10, ")", 1LL); testing::internal::AssertHelper::AssertHelper( &v12, 1, (long long)"/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/google" "test/src/gtest.cc", 2338, (long long)"Failed"); v2 = v20; testing::internal::AssertHelper::operator=((testing::UnitTest *)&v12, (int)&v19); testing::internal::AssertHelper::~AssertHelper((testing::internal::AssertHelper *)&v12); if ( v17[0] != &v18 ) operator delete(v17[0], v18 + 1); if ( v16 ) (*(void ( **)(long long))(*(_QWORD *)v16 + 8LL))(v16); } std::vector<std::string>::~vector(&v14); if ( v23[0] != &v24 ) operator delete(v23[0], v24 + 1); return v2 == v3; }
ValidateTestProperty: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV RBX,RDI MOV RSI,qword ptr [RSI] LEA RDI,[RSP + 0x78] LEA RDX,[RSP + 0xf] CALL 0x0013518c LEA RSI,[0x1438c0] MOV RDI,RBX CALL 0x00109160 TEST EAX,EAX JZ 0x00123dc2 LEA RSI,[0x1437a7] MOV RDI,RBX CALL 0x00109160 TEST EAX,EAX JZ 0x00123de1 LEA RSI,[0x1437ec] MOV RDI,RBX CALL 0x00109160 TEST EAX,EAX JZ 0x00123e00 LAB_00123d47: LEA RDX,[0x1429fb] LEA RDI,[RSP + 0x38] MOV ESI,0x3 MOV ECX,0x8f9 CALL 0x0011b13e LAB_00123d62: MOV RDI,qword ptr [0x00159fe8] LEA RSI,[0x1443d9] MOV EDX,0x18 CALL 0x001095a0 MOV RDI,qword ptr [0x00159fe8] LEA RSI,[0x1443f2] MOV EDX,0x23 CALL 0x001095a0 MOV RSI,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x8] MOV RDI,qword ptr [0x00159fe8] CALL 0x001095a0 LEA RDI,[RSP + 0x38] CALL 0x0011b280 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOV qword ptr [RSP + 0x20],0x0 JMP 0x00123e1d LAB_00123dc2: LEA RSI,[0x159520] LEA RDX,[0x159560] LEA RDI,[RSP + 0x10] LEA RCX,[RSP + 0x38] CALL 0x0013ab5c JMP 0x00123e1d LAB_00123de1: LEA RSI,[0x159560] LEA RDX,[0x1595a0] LEA RDI,[RSP + 0x10] LEA RCX,[RSP + 0x38] CALL 0x0013ab5c JMP 0x00123e1d LAB_00123e00: LEA RSI,[0x1595a0] LEA RDX,[0x1595e0] LEA RDI,[RSP + 0x10] LEA RCX,[RSP + 0x38] CALL 0x0013ab5c LAB_00123e1d: MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x18] LAB_00123e27: LEA RDX,[RSP + 0x78] CALL 0x0013e758 MOV RBX,RAX MOV R14,qword ptr [RSP + 0x18] CMP RAX,R14 JZ 0x0012405f LEA RDI,[RSP + 0x58] CALL 0x00120c50 MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x30],RAX LEA R15,[RAX + 0x10] LAB_00123e5a: LEA RSI,[0x14439f] MOV EDX,0x27 MOV RDI,R15 CALL 0x001095a0 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] MOV RDI,R15 CALL 0x001095a0 LEA RSI,[0x14077e] MOV EDX,0x2 MOV RDI,R15 CALL 0x001095a0 LAB_00123e97: MOV qword ptr [RSP + 0x68],R15 MOV qword ptr [RSP + 0x70],R14 MOV qword ptr [RSP + 0x60],RBX MOV RDI,RSP CALL 0x00120c50 MOV RAX,qword ptr [RSP + 0x18] SUB RAX,qword ptr [RSP + 0x10] JZ 0x00123f83 SAR RAX,0x5 MOV R12,qword ptr [RSP] ADD R12,0x10 MOV R14D,0x8 XOR R15D,R15D LEA R13,[0x144ad8] LEA RBP,[0x1401b2] LEA RBX,[0x142bc2] LAB_00123ee8: TEST R15,R15 SETZ CL CMP RAX,0x3 SETC AL OR AL,CL JNZ 0x00123f09 LAB_00123ef9: MOV EDX,0x2 MOV RDI,R12 MOV RSI,R13 CALL 0x001095a0 LAB_00123f09: MOV RAX,qword ptr [RSP + 0x18] SUB RAX,qword ptr [RSP + 0x10] SAR RAX,0x5 DEC RAX CMP R15,RAX JNZ 0x00123f2f MOV EDX,0x4 MOV RDI,R12 MOV RSI,RBP CALL 0x001095a0 LAB_00123f2f: MOV EDX,0x1 MOV RDI,R12 MOV RSI,RBX CALL 0x001095a0 MOV RAX,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX + R14*0x1 + -0x8] MOV RDX,qword ptr [RAX + R14*0x1] MOV RDI,R12 CALL 0x001095a0 MOV EDX,0x1 MOV RDI,R12 MOV RSI,RBX CALL 0x001095a0 MOV RAX,qword ptr [RSP + 0x18] SUB RAX,qword ptr [RSP + 0x10] INC R15 SAR RAX,0x5 ADD R14,0x20 CMP R15,RAX JC 0x00123ee8 LAB_00123f83: MOV RBX,qword ptr [RSP] LAB_00123f87: LEA RDI,[RSP + 0x38] MOV RSI,RBX CALL 0x00120eb3 LAB_00123f94: TEST RBX,RBX MOV R15,qword ptr [RSP + 0x68] JZ 0x00123fa7 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX + 0x8] LAB_00123fa7: MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] LAB_00123fb1: MOV RDI,R15 CALL 0x001095a0 MOV R14,qword ptr [RSP + 0x70] LEA RSI,[0x1443c7] MOV EDX,0x11 MOV RDI,R15 CALL 0x001095a0 LEA RSI,[0x1434d4] MOV EDX,0xb MOV RDI,R15 CALL 0x001095a0 LEA RSI,[0x14340c] MOV EDX,0x1 MOV RDI,R15 CALL 0x001095a0 LAB_00123ffa: LEA RDX,[0x1429fb] LEA R8,[0x14311d] MOV RDI,RSP MOV ESI,0x1 MOV ECX,0x922 CALL 0x0011d200 MOV RBX,qword ptr [RSP + 0x60] LAB_0012401f: MOV RDI,RSP LEA RSI,[RSP + 0x58] CALL 0x0011ab80 LAB_0012402c: MOV RDI,RSP CALL 0x0011d26c LEA RAX,[RSP + 0x48] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0012404f MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x001094c0 LAB_0012404f: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x0012405f MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0012405f: LEA RDI,[RSP + 0x10] CALL 0x0013538e LEA RAX,[RSP + 0x88] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0012408a MOV RSI,qword ptr [RSP + 0x88] INC RSI CALL 0x001094c0 LAB_0012408a: CMP RBX,R14 SETZ AL ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* testing::TestResult::ValidateTestProperty(std::__cxx11::string const&, testing::TestProperty const&) */ bool testing::TestResult::ValidateTestProperty(string *param_1,TestProperty *param_2) { int iVar1; long lVar2; ulong uVar3; ostream *poVar4; long lVar5; ulong uVar6; long *local_c8; allocator local_b9; char *local_b8; long lStack_b0; int8 local_a8; long *local_98; long *local_90; long local_88; long local_80 [2]; long *local_70; long local_68; ostream *local_60; long local_58; long *local_50; long local_48; long local_40 [2]; std::__cxx11::string::string<std::allocator<char>> ((string *)&local_50,*(char **)param_2,&local_b9); iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 == 0) { /* try { // try from 00123dc2 to 00123e1c has its CatchHandler @ 001240c4 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: vector<char_const*const*,void> (&local_b8,(char **)kReservedTestSuitesAttributes, (allocator *)kReservedTestSuiteAttributes); } else { iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 == 0) { std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: vector<char_const*const*,void> (&local_b8,(char **)kReservedTestSuiteAttributes, (allocator *)kReservedTestCaseAttributes); } else { iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 == 0) { std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: vector<char_const*const*,void> (&local_b8,(char **)kReservedTestCaseAttributes, (allocator *)kReservedOutputTestCaseAttributes); } else { /* try { // try from 00123d47 to 00123d61 has its CatchHandler @ 001240c4 */ internal::GTestLog::GTestLog ((GTestLog *)&local_90,3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc" ,0x8f9); /* try { // try from 00123d62 to 00123da4 has its CatchHandler @ 001240b5 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159fe8,"Condition false failed. ",0x18); std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159fe8,"Unrecognized xml_element provided: ",0x23); std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159fe8,*(char **)param_1,*(long *)(param_1 + 8)); internal::GTestLog::~GTestLog((GTestLog *)&local_90); local_b8 = (char *)0x0; lStack_b0 = 0; local_a8 = 0; } } } /* try { // try from 00123e27 to 00123e4b has its CatchHandler @ 001240c9 */ lVar2 = std:: __find_if<__gnu_cxx::__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>,__gnu_cxx::__ops::_Iter_equals_val<std::__cxx11::string_const>> (local_b8,lStack_b0,&local_50); lVar5 = lStack_b0; if (lVar2 != lStack_b0) { Message::Message((Message *)&local_70); local_98 = local_70; poVar4 = (ostream *)(local_70 + 2); /* try { // try from 00123e5a to 00123e96 has its CatchHandler @ 001240ce */ std::__ostream_insert<char,std::char_traits<char>> (poVar4,"Reserved key used in RecordProperty(): ",0x27); std::__ostream_insert<char,std::char_traits<char>>(poVar4,(char *)local_50,local_48); std::__ostream_insert<char,std::char_traits<char>>(poVar4," (",2); /* try { // try from 00123e97 to 00123ead has its CatchHandler @ 001240b3 */ local_58 = lVar5; local_68 = lVar2; local_60 = poVar4; Message::Message((Message *)&local_c8); if (lStack_b0 - (long)local_b8 != 0) { uVar3 = lStack_b0 - (long)local_b8 >> 5; poVar4 = (ostream *)(local_c8 + 2); lVar5 = 8; uVar6 = 0; do { if (2 < uVar3 && uVar6 != 0) { /* try { // try from 00123ef9 to 00123f64 has its CatchHandler @ 001240f3 */ std::__ostream_insert<char,std::char_traits<char>>(poVar4,", ",2); } if (uVar6 == (lStack_b0 - (long)local_b8 >> 5) - 1U) { std::__ostream_insert<char,std::char_traits<char>>(poVar4,"and ",4); } std::__ostream_insert<char,std::char_traits<char>>(poVar4,"\'",1); std::__ostream_insert<char,std::char_traits<char>> (poVar4,*(char **)(local_b8 + lVar5 + -8),*(long *)(local_b8 + lVar5)); std::__ostream_insert<char,std::char_traits<char>>(poVar4,"\'",1); uVar6 = uVar6 + 1; uVar3 = lStack_b0 - (long)local_b8 >> 5; lVar5 = lVar5 + 0x20; } while (uVar6 < uVar3); } /* try { // try from 00123f87 to 00123f93 has its CatchHandler @ 001240b1 */ internal::StringStreamToString((stringstream *)&local_90); poVar4 = local_60; if (local_c8 != (long *)0x0) { (**(code **)(*local_c8 + 8))(local_c8); } /* try { // try from 00123fb1 to 00123ff9 has its CatchHandler @ 001240d3 */ std::__ostream_insert<char,std::char_traits<char>>(poVar4,(char *)local_90,local_88); lVar5 = local_58; std::__ostream_insert<char,std::char_traits<char>>(poVar4," are reserved by ",0x11); std::__ostream_insert<char,std::char_traits<char>>(poVar4,"Google Test",0xb); std::__ostream_insert<char,std::char_traits<char>>(poVar4,")",1); /* try { // try from 00123ffa to 00124019 has its CatchHandler @ 001240af */ internal::AssertHelper::AssertHelper ((AssertHelper *)&local_c8,1, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc" ,0x922,"Failed"); lVar2 = local_68; /* try { // try from 0012401f to 0012402b has its CatchHandler @ 001240a2 */ internal::AssertHelper::operator=((AssertHelper *)&local_c8,(Message *)&local_70); internal::AssertHelper::~AssertHelper((AssertHelper *)&local_c8); if (local_90 != local_80) { operator_delete(local_90,local_80[0] + 1); } if (local_98 != (long *)0x0) { (**(code **)(*local_98 + 8))(); } } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_b8); if (local_50 != local_40) { operator_delete(local_50,local_40[0] + 1); } return lVar2 == lVar5; }
45,089
minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)>> const&)
monkey531[P]llama/common/minja.hpp
Value(const std::shared_ptr<CallableType> & callable) : object_(std::make_shared<ObjectType>()), callable_(callable) {}
O2
cpp
minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)>> const&): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx addq $0x20, %rdi xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbx) movups %xmm0, (%rbx) callq 0x67b70 leaq 0x30(%rbx), %rdi movq %r14, %rsi callq 0x68bb2 addq $0x40, %rbx movq %rbx, %rdi xorl %esi, %esi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x3d548 movq %rax, %r14 leaq 0x18(%rbx), %rdi callq 0x4fae0 addq $0x8, %rbx movq %rbx, %rdi callq 0x6411e movq %r14, %rdi callq 0x24f60
_ZN5minja5ValueC2ERKSt10shared_ptrISt8functionIFS0_RKS1_INS_7ContextEERNS_14ArgumentsValueEEEE: push r14 push rbx push rax mov r14, rsi mov rbx, rdi add rdi, 20h ; ' ' xorps xmm0, xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx], xmm0 call _ZSt11make_sharedIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<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>,minja::Value,std::less<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>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>() lea rdi, [rbx+30h] mov rsi, r14 call _ZNSt12__shared_ptrISt8functionIFN5minja5ValueERKSt10shared_ptrINS1_7ContextEERNS1_14ArgumentsValueEEELN9__gnu_cxx12_Lock_policyE2EEC2ERKSE_; std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2> const&) add rbx, 40h ; '@' mov rdi, rbx xor esi, esi add rsp, 8 pop rbx pop r14 jmp _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; 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(decltype(nullptr)) mov r14, rax lea rdi, [rbx+18h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() add rbx, 8 mov rdi, rbx call _ZNSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__weak_count<(__gnu_cxx::_Lock_policy)2>::~__weak_count() mov rdi, r14 call __Unwind_Resume
long long minja::Value::Value(long long a1, _QWORD *a2) { *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)a1 = 0LL; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<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>,minja::Value,std::less<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>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>(a1 + 32); std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr( (_QWORD *)(a1 + 48), a2); return 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 + 64); }
Value: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI ADD RDI,0x20 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX],XMM0 LAB_0017009c: CALL 0x00167b70 LAB_001700a1: LEA RDI,[RBX + 0x30] MOV RSI,R14 CALL 0x00168bb2 ADD RBX,0x40 MOV RDI,RBX XOR ESI,ESI ADD RSP,0x8 POP RBX POP R14 JMP 0x0013d548
/* minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)> > const&) */ void __thiscall minja::Value::Value(Value *this,shared_ptr *param_1) { *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; /* try { // try from 0017009c to 001700a0 has its CatchHandler @ 001700c2 */ std:: make_shared<nlohmann::json_abi_v3_11_3::ordered_map<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>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> (); std:: __shared_ptr<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>,(__gnu_cxx::_Lock_policy)2> ::__shared_ptr((__shared_ptr<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>,(__gnu_cxx::_Lock_policy)2> *)(this + 0x30),(__shared_ptr *)param_1); 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((_func_decltype_nullptr *)(this + 0x40)); return; }
45,090
LefDefParser::defwStartPinProperties(int)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
int defwStartPinProperties(int count) { defwFunc = DEFW_PINPROP_START; // Current function of writer if (!defwFile) return DEFW_UNINITIALIZED; if ((defwState >= DEFW_PINPROP_START) && (defwState <= DEFW_PINPROP_END)) return DEFW_BAD_ORDER; fprintf(defwFile, "PINPROPERTIES %d ;\n", count); defwLines++; defwCounter = count; defwState = DEFW_PINPROP_START; return DEFW_OK; }
O0
cpp
LefDefParser::defwStartPinProperties(int): pushq %rax movl %edi, (%rsp) leaq 0x13fed(%rip), %rax # 0x2b168 movl $0x28, (%rax) leaq 0x13fd0(%rip), %rax # 0x2b158 cmpq $0x0, (%rax) jne 0x17198 movl $0x1, 0x4(%rsp) jmp 0x1720b leaq 0x13fc5(%rip), %rax # 0x2b164 cmpl $0x28, (%rax) jl 0x171ba leaq 0x13fb9(%rip), %rax # 0x2b164 cmpl $0x2a, (%rax) jg 0x171ba movl $0x2, 0x4(%rsp) jmp 0x1720b leaq 0x13f97(%rip), %rax # 0x2b158 movq (%rax), %rdi movl (%rsp), %edx leaq 0xd7ee(%rip), %rsi # 0x249bc movb $0x0, %al callq 0x10f0 leaq 0x13f84(%rip), %rax # 0x2b160 movl (%rax), %ecx addl $0x1, %ecx leaq 0x13f78(%rip), %rax # 0x2b160 movl %ecx, (%rax) movl (%rsp), %ecx leaq 0x13f84(%rip), %rax # 0x2b178 movl %ecx, (%rax) leaq 0x13f67(%rip), %rax # 0x2b164 movl $0x28, (%rax) movl $0x0, 0x4(%rsp) movl 0x4(%rsp), %eax popq %rcx retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser22defwStartPinPropertiesEi: push rax mov [rsp+8+var_8], edi lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc mov dword ptr [rax], 28h ; '(' lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile cmp qword ptr [rax], 0 jnz short loc_17198 mov [rsp+8+var_4], 1 jmp short loc_1720B loc_17198: lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 28h ; '(' jl short loc_171BA lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 2Ah ; '*' jg short loc_171BA mov [rsp+8+var_4], 2 jmp short loc_1720B loc_171BA: lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rdi, [rax] mov edx, [rsp+8+var_8] lea rsi, aPinpropertiesD; "PINPROPERTIES %d ;\n" mov al, 0 call _fprintf lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov [rax], ecx mov ecx, [rsp+8+var_8] lea rax, _ZN12LefDefParser11defwCounterE; LefDefParser::defwCounter mov [rax], ecx lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState mov dword ptr [rax], 28h ; '(' mov [rsp+8+var_4], 0 loc_1720B: mov eax, [rsp+8+var_4] pop rcx retn
long long LefDefParser::defwStartPinProperties(LefDefParser *this) { LefDefParser::defwFunc = 40; if ( LefDefParser::defwFile ) { if ( LefDefParser::defwState < 40 || LefDefParser::defwState > 42 ) { fprintf(LefDefParser::defwFile, "PINPROPERTIES %d ;\n", (_DWORD)this); ++LefDefParser::defwLines; LefDefParser::defwCounter = (_DWORD)this; LefDefParser::defwState = 40; return 0; } else { return 2; } } else { return 1; } }
defwStartPinProperties: PUSH RAX MOV dword ptr [RSP],EDI LEA RAX,[0x12b168] MOV dword ptr [RAX],0x28 LEA RAX,[0x12b158] CMP qword ptr [RAX],0x0 JNZ 0x00117198 MOV dword ptr [RSP + 0x4],0x1 JMP 0x0011720b LAB_00117198: LEA RAX,[0x12b164] CMP dword ptr [RAX],0x28 JL 0x001171ba LEA RAX,[0x12b164] CMP dword ptr [RAX],0x2a JG 0x001171ba MOV dword ptr [RSP + 0x4],0x2 JMP 0x0011720b LAB_001171ba: LEA RAX,[0x12b158] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP] LEA RSI,[0x1249bc] MOV AL,0x0 CALL 0x001010f0 LEA RAX,[0x12b160] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x12b160] MOV dword ptr [RAX],ECX MOV ECX,dword ptr [RSP] LEA RAX,[0x12b178] MOV dword ptr [RAX],ECX LEA RAX,[0x12b164] MOV dword ptr [RAX],0x28 MOV dword ptr [RSP + 0x4],0x0 LAB_0011720b: MOV EAX,dword ptr [RSP + 0x4] POP RCX RET
/* LefDefParser::defwStartPinProperties(int) */ int4 LefDefParser::defwStartPinProperties(int param_1) { int4 local_4; defwFunc = 0x28; if (defwFile == (FILE *)0x0) { local_4 = 1; } else if ((defwState < 0x28) || (0x2a < defwState)) { fprintf(defwFile,"PINPROPERTIES %d ;\n",param_1); defwLines = defwLines + 1; defwState = 0x28; local_4 = 0; defwCounter = param_1; } else { local_4 = 2; } return local_4; }
45,091
my_print_help
eloqsql/mysys/my_getopt.c
void my_print_help(const struct my_option *options) { uint col, name_space= 22, comment_space= 57; const struct my_option *optp; DBUG_ENTER("my_print_help"); for (optp= options; optp->name; optp++) { const char *typelib_help= 0; if (!optp->comment) continue; if (optp->id && optp->id < 256) { printf(" -%c%s", optp->id, strlen(optp->name) ? ", " : " "); col= 6; } else { printf(" "); col= 2; } if (strlen(optp->name)) { printf("--"); col+= 2 + print_name(optp); if (optp->arg_type == NO_ARG || (optp->var_type & GET_TYPE_MASK) == GET_BOOL || (optp->var_type & GET_TYPE_MASK) == GET_BIT) { putchar(' '); col++; } else if ((optp->var_type & GET_TYPE_MASK) == GET_STR || (optp->var_type & GET_TYPE_MASK) == GET_STR_ALLOC || (optp->var_type & GET_TYPE_MASK) == GET_ENUM || (optp->var_type & GET_TYPE_MASK) == GET_SET || (optp->var_type & GET_TYPE_MASK) == GET_FLAGSET ) { printf("%s=name%s ", optp->arg_type == OPT_ARG ? "[" : "", optp->arg_type == OPT_ARG ? "]" : ""); col+= (optp->arg_type == OPT_ARG) ? 8 : 6; } else { printf("%s=#%s ", optp->arg_type == OPT_ARG ? "[" : "", optp->arg_type == OPT_ARG ? "]" : ""); col+= (optp->arg_type == OPT_ARG) ? 5 : 3; } } if (optp->comment && *optp->comment) { uint count; if (col > name_space) { putchar('\n'); col= 0; } col= print_comment(optp->comment, col, name_space, comment_space); if (optp->var_type & GET_AUTO) { col= print_comment(" (Automatically configured unless set explicitly)", col, name_space, comment_space); } switch (optp->var_type & GET_TYPE_MASK) { case GET_ENUM: typelib_help= ". One of: "; count= optp->typelib->count; break; case GET_SET: typelib_help= ". Any combination of: "; count= optp->typelib->count; break; case GET_FLAGSET: typelib_help= ". Takes a comma-separated list of option=value pairs, " "where value is on, off, or default, and options are: "; count= optp->typelib->count - 1; break; } if (typelib_help && strstr(optp->comment, optp->typelib->type_names[0]) == NULL) { uint i; col= print_comment(typelib_help, col, name_space, comment_space); col= print_comment(optp->typelib->type_names[0], col, name_space, comment_space); for (i= 1; i < count; i++) { col= print_comment(", ", col, name_space, comment_space); col= print_comment(optp->typelib->type_names[i], col, name_space, comment_space); } } } putchar('\n'); if ((optp->var_type & GET_TYPE_MASK) == GET_BOOL || (optp->var_type & GET_TYPE_MASK) == GET_BIT) { if (optp->def_value != 0) { printf("%*s(Defaults to on; use --skip-", name_space, ""); print_name(optp); printf(" to disable.)\n"); } } } DBUG_VOID_RETURN; }
O3
c
my_print_help: movq (%rdi), %rax testq %rax, %rax je 0x27509 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x38351(%rip), %r15 # 0x5f52a cmpq $0x0, 0x10(%rbx) je 0x27498 movl 0x8(%rbx), %edx testl %edx, %edx sete %cl cmpl $0x100, %edx # imm = 0x100 setge %sil orb %cl, %sil jne 0x27227 cmpb $0x0, (%rax) movq %r15, %rcx leaq 0x38325(%rip), %rax # 0x5f52d cmoveq %rax, %rcx movl $0x1, %edi leaq 0x3830a(%rip), %rsi # 0x5f522 xorl %eax, %eax callq 0x24030 movl $0x6, %r12d jmp 0x27240 movl $0x1, %edi leaq 0x382fa(%rip), %rsi # 0x5f52d xorl %eax, %eax callq 0x24030 movl $0x2, %r12d movq (%rbx), %rax cmpb $0x0, (%rax) je 0x2731d movl $0x1, %edi leaq 0x3d4bb(%rip), %rsi # 0x64713 xorl %eax, %eax callq 0x24030 movq (%rbx), %r14 addl %r14d, %r12d addl $0x2, %r12d movzbl (%r14), %eax movl $0x2d, %edi cmpl $0x5f, %eax je 0x2727e testl %eax, %eax je 0x2728b movsbl %al, %edi callq 0x24480 incq %r14 incl %r12d jmp 0x27269 movq (%rbx), %r14 movl 0x38(%rbx), %eax testl %eax, %eax je 0x2730d movq 0x30(%rbx), %rcx andl $0x3f, %ecx cmpq $0x10, %rcx ja 0x274ab movl $0xb600, %edx # imm = 0xB600 btq %rcx, %rdx jae 0x272fe cmpl $0x1, %eax leaq 0x3c641(%rip), %rcx # 0x638fc movq %rcx, %rdx leaq 0x3d45d(%rip), %rax # 0x64722 cmoveq %rax, %rdx leaq 0x3b3b6(%rip), %rax # 0x62686 cmoveq %rax, %rcx movl $0x1, %edi leaq 0x38250(%rip), %rsi # 0x5f530 xorl %eax, %eax callq 0x24030 xorl %eax, %eax cmpl $0x1, 0x38(%rbx) sete %al addl %eax, %eax subl %r14d, %eax addl %eax, %r12d addl $0x6, %r12d jmp 0x2731d movl $0x10004, %edx # imm = 0x10004 btq %rcx, %rdx jae 0x274ab movl $0x20, %edi callq 0x24480 subl %r14d, %r12d incl %r12d movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x27421 cmpb $0x0, (%rdi) je 0x27421 cmpl $0x17, %r12d jb 0x2734a movl $0xa, %edi callq 0x24480 movq 0x10(%rbx), %rdi xorl %r12d, %r12d movl %r12d, %esi callq 0x2750a movl %eax, %r12d movq 0x30(%rbx), %rax testb $0x40, %al je 0x27373 leaq 0x381df(%rip), %rdi # 0x5f543 movl %r12d, %esi callq 0x2750a movl %eax, %r12d movq 0x30(%rbx), %rax andl $0x3f, %eax cmpq $0xf, %rax je 0x273aa cmpl $0xd, %eax je 0x2739a cmpl $0xc, %eax jne 0x27421 movq 0x28(%rbx), %rax movl (%rax), %r13d leaq 0x381dd(%rip), %r14 # 0x5f575 jmp 0x273bb movq 0x28(%rbx), %rax movl (%rax), %r13d leaq 0x381d8(%rip), %r14 # 0x5f580 jmp 0x273bb movq 0x28(%rbx), %rax movl (%rax), %r13d decl %r13d leaq 0x381dc(%rip), %r14 # 0x5f597 movq 0x10(%rbx), %rdi movq 0x10(%rax), %rax movq (%rax), %rsi callq 0x240b0 testq %rax, %rax jne 0x27421 movq %r14, %rdi movl %r12d, %esi callq 0x2750a movq 0x28(%rbx), %rcx movq 0x10(%rcx), %rcx movq (%rcx), %rdi movl %eax, %esi callq 0x2750a cmpl $0x2, %r13d jb 0x27421 movl %r13d, %r14d movl $0x1, %r12d movq %r15, %rdi movl %eax, %esi callq 0x2750a movq 0x28(%rbx), %rcx movq 0x10(%rcx), %rcx movq (%rcx,%r12,8), %rdi movl %eax, %esi callq 0x2750a incq %r12 cmpq %r12, %r14 jne 0x273fc movl $0xa, %edi callq 0x24480 movq 0x30(%rbx), %rax andl $0x3f, %eax cmpq $0x10, %rax je 0x2743d cmpl $0x2, %eax jne 0x27498 cmpq $0x0, 0x40(%rbx) je 0x27498 movl $0x1, %edi leaq 0x381b3(%rip), %rsi # 0x5f603 movl $0x16, %edx leaq 0x3c4a0(%rip), %rcx # 0x638fc xorl %eax, %eax callq 0x24030 movq (%rbx), %r14 movzbl (%r14), %eax movl $0x2d, %edi cmpl $0x5f, %eax je 0x2747b testl %eax, %eax je 0x27485 movsbl %al, %edi callq 0x24480 incq %r14 jmp 0x27466 movl $0x1, %edi leaq 0x38192(%rip), %rsi # 0x5f623 xorl %eax, %eax callq 0x24030 movq 0x70(%rbx), %rax addq $0x70, %rbx testq %rax, %rax jne 0x271d9 jmp 0x274fb cmpl $0x1, %eax leaq 0x3c447(%rip), %rcx # 0x638fc movq %rcx, %rdx leaq 0x3d263(%rip), %rax # 0x64722 cmoveq %rax, %rdx leaq 0x3b1bc(%rip), %rax # 0x62686 cmoveq %rax, %rcx movl $0x1, %edi leaq 0x38061(%rip), %rsi # 0x5f53b xorl %eax, %eax callq 0x24030 xorl %eax, %eax cmpl $0x1, 0x38(%rbx) sete %al addl %eax, %eax subl %r14d, %eax addl %eax, %r12d addl $0x3, %r12d jmp 0x2731d addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_print_help: mov rax, [rdi] test rax, rax jz locret_27509 push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi lea r15, asc_5F52A; ", " loc_271D9: cmp qword ptr [rbx+10h], 0 jz loc_27498 mov edx, [rbx+8] test edx, edx setz cl cmp edx, 100h setnl sil or sil, cl jnz short loc_27227 cmp byte ptr [rax], 0 mov rcx, r15 lea rax, asc_5F52D; " " cmovz rcx, rax mov edi, 1 lea rsi, aCS; " -%c%s" xor eax, eax call ___printf_chk mov r12d, 6 jmp short loc_27240 loc_27227: mov edi, 1 lea rsi, asc_5F52D; " " xor eax, eax call ___printf_chk mov r12d, 2 loc_27240: mov rax, [rbx] cmp byte ptr [rax], 0 jz loc_2731D mov edi, 1 lea rsi, asc_64711+2; "--" xor eax, eax call ___printf_chk mov r14, [rbx] add r12d, r14d add r12d, 2 loc_27269: movzx eax, byte ptr [r14] mov edi, 2Dh ; '-' cmp eax, 5Fh ; '_' jz short loc_2727E test eax, eax jz short loc_2728B movsx edi, al loc_2727E: call _putchar inc r14 inc r12d jmp short loc_27269 loc_2728B: mov r14, [rbx] mov eax, [rbx+38h] test eax, eax jz short loc_2730D mov rcx, [rbx+30h] and ecx, 3Fh cmp rcx, 10h ja loc_274AB mov edx, 0B600h bt rdx, rcx jnb short loc_272FE cmp eax, 1 lea rcx, asc_638F8+4; "" mov rdx, rcx lea rax, aCdata_0+8; "[" cmovz rdx, rax lea rax, aVersion400+0Eh; "]" cmovz rcx, rax mov edi, 1 lea rsi, aSNameS; "%s=name%s " xor eax, eax call ___printf_chk xor eax, eax cmp dword ptr [rbx+38h], 1 setz al add eax, eax sub eax, r14d add r12d, eax add r12d, 6 jmp short loc_2731D loc_272FE: mov edx, 10004h bt rdx, rcx jnb loc_274AB loc_2730D: mov edi, 20h ; ' ' call _putchar sub r12d, r14d inc r12d loc_2731D: mov rdi, [rbx+10h] test rdi, rdi jz loc_27421 cmp byte ptr [rdi], 0 jz loc_27421 cmp r12d, 17h jb short loc_2734A mov edi, 0Ah call _putchar mov rdi, [rbx+10h] xor r12d, r12d loc_2734A: mov esi, r12d call print_comment mov r12d, eax mov rax, [rbx+30h] test al, 40h jz short loc_27373 lea rdi, aAutomaticallyC; " (Automatically configured unless set e"... mov esi, r12d call print_comment mov r12d, eax mov rax, [rbx+30h] loc_27373: and eax, 3Fh cmp rax, 0Fh jz short loc_273AA cmp eax, 0Dh jz short loc_2739A cmp eax, 0Ch jnz loc_27421 mov rax, [rbx+28h] mov r13d, [rax] lea r14, aOneOf; ". One of: " jmp short loc_273BB loc_2739A: mov rax, [rbx+28h] mov r13d, [rax] lea r14, aAnyCombination; ". Any combination of: " jmp short loc_273BB loc_273AA: mov rax, [rbx+28h] mov r13d, [rax] dec r13d lea r14, aTakesACommaSep; ". Takes a comma-separated list of optio"... loc_273BB: mov rdi, [rbx+10h] mov rax, [rax+10h] mov rsi, [rax] call _strstr test rax, rax jnz short loc_27421 mov rdi, r14 mov esi, r12d call print_comment mov rcx, [rbx+28h] mov rcx, [rcx+10h] mov rdi, [rcx] mov esi, eax call print_comment cmp r13d, 2 jb short loc_27421 mov r14d, r13d mov r12d, 1 loc_273FC: mov rdi, r15 mov esi, eax call print_comment mov rcx, [rbx+28h] mov rcx, [rcx+10h] mov rdi, [rcx+r12*8] mov esi, eax call print_comment inc r12 cmp r14, r12 jnz short loc_273FC loc_27421: mov edi, 0Ah call _putchar mov rax, [rbx+30h] and eax, 3Fh cmp rax, 10h jz short loc_2743D cmp eax, 2 jnz short loc_27498 loc_2743D: cmp qword ptr [rbx+40h], 0 jz short loc_27498 mov edi, 1 lea rsi, aSDefaultsToOnU; "%*s(Defaults to on; use --skip-" mov edx, 16h lea rcx, asc_638F8+4; "" xor eax, eax call ___printf_chk mov r14, [rbx] loc_27466: movzx eax, byte ptr [r14] mov edi, 2Dh ; '-' cmp eax, 5Fh ; '_' jz short loc_2747B test eax, eax jz short loc_27485 movsx edi, al loc_2747B: call _putchar inc r14 jmp short loc_27466 loc_27485: mov edi, 1 lea rsi, aToDisable; " to disable.)\n" xor eax, eax call ___printf_chk loc_27498: mov rax, [rbx+70h] add rbx, 70h ; 'p' test rax, rax jnz loc_271D9 jmp short loc_274FB loc_274AB: cmp eax, 1 lea rcx, asc_638F8+4; "" mov rdx, rcx lea rax, aCdata_0+8; "[" cmovz rdx, rax lea rax, aVersion400+0Eh; "]" cmovz rcx, rax mov edi, 1 lea rsi, aSS; "%s=#%s " xor eax, eax call ___printf_chk xor eax, eax cmp dword ptr [rbx+38h], 1 setz al add eax, eax sub eax, r14d add r12d, eax add r12d, 3 jmp loc_2731D loc_274FB: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp locret_27509: retn
_BYTE * my_print_help(_BYTE **a1) { _BYTE *result; // rax _BYTE **v2; // rbx long long v3; // rdx const char *v4; // rcx unsigned int v5; // r12d _BYTE *v6; // r14 unsigned int i; // r12d int v8; // eax long long v9; // rdi _BYTE *v10; // r14 int v11; // eax unsigned long long v12; // rcx long long v13; // rdx const char *v14; // rcx const char *v15; // rdx long long v16; // rdx _BYTE *v17; // rdi unsigned int v18; // r12d _BYTE *v19; // rax long long v20; // rax _BYTE *v21; // rax unsigned int v22; // r13d const char *v23; // r14 unsigned int v24; // eax unsigned int v25; // eax long long j; // r12 unsigned int v27; // eax long long v28; // rax _BYTE *k; // r14 int v30; // eax long long v31; // rdi const char *v32; // rcx const char *v33; // rdx result = *a1; if ( !*a1 ) return result; v2 = a1; do { if ( !v2[2] ) goto LABEL_48; v3 = *((unsigned int *)v2 + 2); if ( (_DWORD)v3 == 0 || (int)v3 >= 256 ) { __printf_chk(1LL, " "); v5 = 2; } else { v4 = ", "; if ( !*result ) v4 = " "; __printf_chk(1LL, " -%c%s", v3, v4); v5 = 6; } if ( !**v2 ) goto LABEL_23; __printf_chk(1LL, "--"); v6 = *v2; for ( i = (unsigned int)*v2 + v5 + 2; ; ++i ) { v8 = (unsigned __int8)*v6; v9 = 45LL; if ( v8 == 95 ) goto LABEL_14; if ( !*v6 ) break; v9 = (unsigned int)(char)v8; LABEL_14: putchar(v9); ++v6; } v10 = *v2; v11 = *((_DWORD *)v2 + 14); if ( !v11 ) goto LABEL_22; v12 = (unsigned long long)v2[6] & 0x3F; if ( v12 <= 0x10 ) { v13 = 46592LL; if ( _bittest64(&v13, v12) ) { v14 = ""; v15 = ""; if ( v11 == 1 ) { v15 = "["; v14 = "]"; } __printf_chk(1LL, "%s=name%s ", v15, v14); v5 = 2 * (*((_DWORD *)v2 + 14) == 1) - (_DWORD)v10 + i + 6; goto LABEL_23; } v16 = 65540LL; if ( _bittest64(&v16, v12) ) { LABEL_22: putchar(32LL); v5 = i - (_DWORD)v10 + 1; goto LABEL_23; } } v32 = ""; v33 = ""; if ( v11 == 1 ) { v33 = "["; v32 = "]"; } __printf_chk(1LL, "%s=#%s ", v33, v32); v5 = 2 * (*((_DWORD *)v2 + 14) == 1) - (_DWORD)v10 + i + 3; LABEL_23: v17 = v2[2]; if ( !v17 || !*v17 ) goto LABEL_39; if ( v5 >= 0x17 ) { putchar(10LL); v17 = v2[2]; v5 = 0; } v18 = print_comment(v17, v5); v19 = v2[6]; if ( ((unsigned __int8)v19 & 0x40) != 0 ) { v18 = print_comment(" (Automatically configured unless set explicitly)", v18); v19 = v2[6]; } v20 = (unsigned __int8)v19 & 0x3F; if ( v20 == 15 ) { v21 = v2[5]; v22 = *(_DWORD *)v21 - 1; v23 = ". Takes a comma-separated list of option=value pairs, where value is on, off, or default, and options are: "; goto LABEL_35; } if ( (_DWORD)v20 == 13 ) { v21 = v2[5]; v22 = *(_DWORD *)v21; v23 = ". Any combination of: "; LABEL_35: if ( !strstr(v2[2], **((_QWORD **)v21 + 2)) ) { v24 = print_comment(v23, v18); v25 = print_comment(**((_QWORD **)v2[5] + 2), v24); if ( v22 >= 2 ) { for ( j = 1LL; j != v22; v25 = print_comment(*(_QWORD *)(*((_QWORD *)v2[5] + 2) + 8 * j++), v27) ) v27 = print_comment(", ", v25); } } goto LABEL_39; } if ( (_DWORD)v20 == 12 ) { v21 = v2[5]; v22 = *(_DWORD *)v21; v23 = ". One of: "; goto LABEL_35; } LABEL_39: putchar(10LL); v28 = (unsigned long long)v2[6] & 0x3F; if ( (v28 == 16 || (_DWORD)v28 == 2) && v2[8] ) { __printf_chk(1LL, "%*s(Defaults to on; use --skip-", 22, ""); for ( k = *v2; ; ++k ) { v30 = (unsigned __int8)*k; v31 = 45LL; if ( v30 != 95 ) { if ( !*k ) { __printf_chk(1LL, " to disable.)\n"); break; } v31 = (unsigned int)(char)v30; } putchar(v31); } } LABEL_48: result = v2[14]; v2 += 14; } while ( result ); return result; }
my_print_help: MOV RAX,qword ptr [RDI] TEST RAX,RAX JZ 0x00127509 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI LEA R15,[0x15f52a] LAB_001271d9: CMP qword ptr [RBX + 0x10],0x0 JZ 0x00127498 MOV EDX,dword ptr [RBX + 0x8] TEST EDX,EDX SETZ CL CMP EDX,0x100 SETGE SIL OR SIL,CL JNZ 0x00127227 CMP byte ptr [RAX],0x0 MOV RCX,R15 LEA RAX,[0x15f52d] CMOVZ RCX,RAX MOV EDI,0x1 LEA RSI,[0x15f522] XOR EAX,EAX CALL 0x00124030 MOV R12D,0x6 JMP 0x00127240 LAB_00127227: MOV EDI,0x1 LEA RSI,[0x15f52d] XOR EAX,EAX CALL 0x00124030 MOV R12D,0x2 LAB_00127240: MOV RAX,qword ptr [RBX] CMP byte ptr [RAX],0x0 JZ 0x0012731d MOV EDI,0x1 LEA RSI,[0x164713] XOR EAX,EAX CALL 0x00124030 MOV R14,qword ptr [RBX] ADD R12D,R14D ADD R12D,0x2 LAB_00127269: MOVZX EAX,byte ptr [R14] MOV EDI,0x2d CMP EAX,0x5f JZ 0x0012727e TEST EAX,EAX JZ 0x0012728b MOVSX EDI,AL LAB_0012727e: CALL 0x00124480 INC R14 INC R12D JMP 0x00127269 LAB_0012728b: MOV R14,qword ptr [RBX] MOV EAX,dword ptr [RBX + 0x38] TEST EAX,EAX JZ 0x0012730d MOV RCX,qword ptr [RBX + 0x30] AND ECX,0x3f CMP RCX,0x10 JA 0x001274ab MOV EDX,0xb600 BT RDX,RCX JNC 0x001272fe CMP EAX,0x1 LEA RCX,[0x1638fc] MOV RDX,RCX LEA RAX,[0x164722] CMOVZ RDX,RAX LEA RAX,[0x162686] CMOVZ RCX,RAX MOV EDI,0x1 LEA RSI,[0x15f530] XOR EAX,EAX CALL 0x00124030 XOR EAX,EAX CMP dword ptr [RBX + 0x38],0x1 SETZ AL ADD EAX,EAX SUB EAX,R14D ADD R12D,EAX ADD R12D,0x6 JMP 0x0012731d LAB_001272fe: MOV EDX,0x10004 BT RDX,RCX JNC 0x001274ab LAB_0012730d: MOV EDI,0x20 CALL 0x00124480 SUB R12D,R14D INC R12D LAB_0012731d: MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JZ 0x00127421 CMP byte ptr [RDI],0x0 JZ 0x00127421 CMP R12D,0x17 JC 0x0012734a MOV EDI,0xa CALL 0x00124480 MOV RDI,qword ptr [RBX + 0x10] XOR R12D,R12D LAB_0012734a: MOV ESI,R12D CALL 0x0012750a MOV R12D,EAX MOV RAX,qword ptr [RBX + 0x30] TEST AL,0x40 JZ 0x00127373 LEA RDI,[0x15f543] MOV ESI,R12D CALL 0x0012750a MOV R12D,EAX MOV RAX,qword ptr [RBX + 0x30] LAB_00127373: AND EAX,0x3f CMP RAX,0xf JZ 0x001273aa CMP EAX,0xd JZ 0x0012739a CMP EAX,0xc JNZ 0x00127421 MOV RAX,qword ptr [RBX + 0x28] MOV R13D,dword ptr [RAX] LEA R14,[0x15f575] JMP 0x001273bb LAB_0012739a: MOV RAX,qword ptr [RBX + 0x28] MOV R13D,dword ptr [RAX] LEA R14,[0x15f580] JMP 0x001273bb LAB_001273aa: MOV RAX,qword ptr [RBX + 0x28] MOV R13D,dword ptr [RAX] DEC R13D LEA R14,[0x15f597] LAB_001273bb: MOV RDI,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + 0x10] MOV RSI,qword ptr [RAX] CALL 0x001240b0 TEST RAX,RAX JNZ 0x00127421 MOV RDI,R14 MOV ESI,R12D CALL 0x0012750a MOV RCX,qword ptr [RBX + 0x28] MOV RCX,qword ptr [RCX + 0x10] MOV RDI,qword ptr [RCX] MOV ESI,EAX CALL 0x0012750a CMP R13D,0x2 JC 0x00127421 MOV R14D,R13D MOV R12D,0x1 LAB_001273fc: MOV RDI,R15 MOV ESI,EAX CALL 0x0012750a MOV RCX,qword ptr [RBX + 0x28] MOV RCX,qword ptr [RCX + 0x10] MOV RDI,qword ptr [RCX + R12*0x8] MOV ESI,EAX CALL 0x0012750a INC R12 CMP R14,R12 JNZ 0x001273fc LAB_00127421: MOV EDI,0xa CALL 0x00124480 MOV RAX,qword ptr [RBX + 0x30] AND EAX,0x3f CMP RAX,0x10 JZ 0x0012743d CMP EAX,0x2 JNZ 0x00127498 LAB_0012743d: CMP qword ptr [RBX + 0x40],0x0 JZ 0x00127498 MOV EDI,0x1 LEA RSI,[0x15f603] MOV EDX,0x16 LEA RCX,[0x1638fc] XOR EAX,EAX CALL 0x00124030 MOV R14,qword ptr [RBX] LAB_00127466: MOVZX EAX,byte ptr [R14] MOV EDI,0x2d CMP EAX,0x5f JZ 0x0012747b TEST EAX,EAX JZ 0x00127485 MOVSX EDI,AL LAB_0012747b: CALL 0x00124480 INC R14 JMP 0x00127466 LAB_00127485: MOV EDI,0x1 LEA RSI,[0x15f623] XOR EAX,EAX CALL 0x00124030 LAB_00127498: MOV RAX,qword ptr [RBX + 0x70] ADD RBX,0x70 TEST RAX,RAX JNZ 0x001271d9 JMP 0x001274fb LAB_001274ab: CMP EAX,0x1 LEA RCX,[0x1638fc] MOV RDX,RCX LEA RAX,[0x164722] CMOVZ RDX,RAX LEA RAX,[0x162686] CMOVZ RCX,RAX MOV EDI,0x1 LEA RSI,[0x15f53b] XOR EAX,EAX CALL 0x00124030 XOR EAX,EAX CMP dword ptr [RBX + 0x38],0x1 SETZ AL ADD EAX,EAX SUB EAX,R14D ADD R12D,EAX ADD R12D,0x3 JMP 0x0012731d LAB_001274fb: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP LAB_00127509: RET
void my_print_help(int8 *param_1) { char cVar1; int4 uVar2; uint *puVar3; char *pcVar4; int *puVar5; int iVar6; int8 in_R8; int8 in_R9; int iVar7; uint uVar8; ulong uVar9; int iVar10; char *pcVar11; char *pcVar12; pcVar11 = (char *)*param_1; pcVar12 = pcVar11; joined_r0x001271bb: if (pcVar11 == (char *)0x0) { return; } if (param_1[2] != 0) { iVar7 = *(int *)(param_1 + 1); if (iVar7 < 0x100 && iVar7 != 0) { puVar5 = &DAT_0015f52a; if (*pcVar11 == '\0') { puVar5 = &DAT_0015f52d; } __printf_chk(1," -%c%s",iVar7,puVar5,in_R8,in_R9,pcVar12); uVar8 = 6; } else { __printf_chk(1,&DAT_0015f52d); uVar8 = 2; } if (*(char *)*param_1 != '\0') { __printf_chk(1,&DAT_00164713); pcVar11 = (char *)*param_1; iVar7 = uVar8 + (int)pcVar11 + 2; do { cVar1 = *pcVar11; iVar6 = 0x2d; if (cVar1 != '_') { if (cVar1 == '\0') goto LAB_0012728b; iVar6 = (int)cVar1; } putchar(iVar6); pcVar11 = pcVar11 + 1; iVar7 = iVar7 + 1; } while( true ); } goto LAB_0012731d; } goto LAB_00127498; LAB_0012728b: iVar6 = *(int *)(param_1 + 7); iVar10 = (int)*param_1; if (iVar6 == 0) { LAB_0012730d: putchar(0x20); uVar8 = (iVar7 - iVar10) + 1; } else { uVar9 = (ulong)((uint)param_1[6] & 0x3f); if (uVar9 < 0x11) { if ((0xb600UL >> uVar9 & 1) != 0) { pcVar11 = ""; puVar5 = &DAT_001638fc; if (iVar6 == 1) { puVar5 = &DAT_00164722; pcVar11 = "]"; } __printf_chk(1,"%s=name%s ",puVar5,pcVar11); uVar8 = iVar7 + ((uint)(*(int *)(param_1 + 7) == 1) * 2 - iVar10) + 6; goto LAB_0012731d; } if ((0x10004UL >> uVar9 & 1) != 0) goto LAB_0012730d; } pcVar11 = ""; puVar5 = &DAT_001638fc; if (iVar6 == 1) { puVar5 = &DAT_00164722; pcVar11 = "]"; } __printf_chk(1,&DAT_0015f53b,puVar5,pcVar11); uVar8 = iVar7 + ((uint)(*(int *)(param_1 + 7) == 1) * 2 - iVar10) + 3; } LAB_0012731d: pcVar11 = (char *)param_1[2]; if ((pcVar11 != (char *)0x0) && (*pcVar11 != '\0')) { if (0x16 < uVar8) { putchar(10); pcVar11 = (char *)param_1[2]; uVar8 = 0; } uVar2 = print_comment(pcVar11,uVar8); uVar8 = (uint)param_1[6]; if ((param_1[6] & 0x40) != 0) { uVar2 = print_comment(" (Automatically configured unless set explicitly)",uVar2); uVar8 = (uint)param_1[6]; } uVar8 = uVar8 & 0x3f; if (uVar8 == 0xf) { puVar3 = (uint *)param_1[5]; uVar8 = *puVar3 - 1; pcVar11 = ". Takes a comma-separated list of option=value pairs, where value is on, off, or default, and options are: " ; } else if (uVar8 == 0xd) { puVar3 = (uint *)param_1[5]; uVar8 = *puVar3; pcVar11 = ". Any combination of: "; } else { if (uVar8 != 0xc) goto LAB_00127421; puVar3 = (uint *)param_1[5]; uVar8 = *puVar3; pcVar11 = ". One of: "; } pcVar4 = strstr((char *)param_1[2],(char *)**(int8 **)(puVar3 + 4)); if (pcVar4 == (char *)0x0) { uVar2 = print_comment(pcVar11,uVar2); uVar2 = print_comment(**(int8 **)(param_1[5] + 0x10),uVar2); if (1 < uVar8) { uVar9 = 1; do { uVar2 = print_comment(&DAT_0015f52a,uVar2); uVar2 = print_comment(*(int8 *)(*(long *)(param_1[5] + 0x10) + uVar9 * 8),uVar2); uVar9 = uVar9 + 1; } while (uVar8 != uVar9); } } } LAB_00127421: putchar(10); uVar8 = (uint)param_1[6] & 0x3f; if (((uVar8 == 0x10) || (uVar8 == 2)) && (param_1[8] != 0)) { __printf_chk(1,"%*s(Defaults to on; use --skip-",0x16,&DAT_001638fc); pcVar11 = (char *)*param_1; do { cVar1 = *pcVar11; iVar7 = 0x2d; if (cVar1 != '_') { if (cVar1 == '\0') goto LAB_00127485; iVar7 = (int)cVar1; } putchar(iVar7); pcVar11 = pcVar11 + 1; } while( true ); } LAB_00127498: pcVar11 = (char *)param_1[0xe]; param_1 = param_1 + 0xe; goto joined_r0x001271bb; LAB_00127485: __printf_chk(1," to disable.)\n"); goto LAB_00127498; }
45,092
read_block
eloqsql/storage/maria/ma_pagecache.c
static void read_block(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block, my_bool primary) { DBUG_ENTER("read_block"); DBUG_PRINT("enter", ("read block: %p primary: %d", block, primary)); if (primary) { size_t error; PAGECACHE_IO_HOOK_ARGS args; /* This code is executed only by threads that submitted primary requests */ pagecache->global_cache_read++; /* Page is not in buffer yet, is to be read from disk Here other threads may step in and register as secondary readers. They will register in block->wqueue[COND_FOR_REQUESTED]. */ pagecache_pthread_mutex_unlock(&pagecache->cache_lock); args.page= block->buffer; args.pageno= block->hash_link->pageno; args.data= block->hash_link->file.callback_data; error= (*block->hash_link->file.pre_read_hook)(&args); if (!error) { error= pagecache_fread(pagecache, &block->hash_link->file, args.page, block->hash_link->pageno, pagecache->readwrite_flags); } error= (*block->hash_link->file.post_read_hook)(error != 0, &args); pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (error) { DBUG_ASSERT(maria_in_recovery || !maria_assert_if_crashed_table); block->status|= PCBLOCK_ERROR; block->error= (int16) my_errno; my_debug_put_break_here(); } else { block->status|= PCBLOCK_READ; } DBUG_PRINT("read_block", ("primary request: new page in cache")); /* Signal that all pending requests for this page now can be processed */ if (block->wqueue[COND_FOR_REQUESTED].last_thread) wqueue_release_queue(&block->wqueue[COND_FOR_REQUESTED]); } else { /* This code is executed only by threads that submitted secondary requests */ struct st_my_thread_var *thread= my_thread_var; /* Put the request into a queue and wait until it can be processed */ wqueue_add_to_queue(&block->wqueue[COND_FOR_REQUESTED], thread); do { DBUG_PRINT("wait", ("suspend thread %s %ld", thread->name, (ulong) thread->id)); pagecache_pthread_cond_wait(&thread->suspend, &pagecache->cache_lock); } while (thread->next); DBUG_PRINT("read_block", ("secondary request: new page in cache")); } DBUG_VOID_RETURN; }
O0
c
read_block: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movb %dl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movb %al, -0x11(%rbp) jmp 0x3f577 cmpb $0x0, -0x11(%rbp) je 0x3f6f5 movq -0x8(%rbp), %rax movq 0x188(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x188(%rax) movq -0x8(%rbp), %rdi addq $0xc8, %rdi callq 0x3dc00 movq -0x10(%rbp), %rax movq 0x30(%rax), %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq 0x60(%rax), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq 0x58(%rax), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax leaq -0x40(%rbp), %rdi callq *0x30(%rax) movsbq %al, %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x3f654 movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movl 0x28(%rax), %edx movq -0x40(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rax movl 0x80(%rax), %eax movl %eax, %r8d movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq 0x60(%rax), %r9 movq -0x8(%rbp), %rax movl 0x190(%rax), %eax movl %eax, %ecx shlq %cl, %r9 movq -0x50(%rbp), %rcx movq -0x8(%rbp), %rax movq 0x198(%rax), %rax leaq 0x11c3e2(%rip), %rdi # 0x15ba24 movl $0xc16, %esi # imm = 0xC16 movq %rax, (%rsp) callq 0x3fe70 movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq 0x38(%rax), %rax cmpq $0x0, -0x20(%rbp) setne %cl andb $0x1, %cl movzbl %cl, %edi leaq -0x40(%rbp), %rsi callq *%rax movsbq %al, %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rdi addq $0xc8, %rdi leaq 0x11c396(%rip), %rsi # 0x15ba24 movl $0xc19, %edx # imm = 0xC19 callq 0x3db90 cmpq $0x0, -0x20(%rbp) je 0x3f6c8 jmp 0x3f6a1 jmp 0x3f6a3 movq -0x10(%rbp), %rax movzwl 0x74(%rax), %ecx orl $0x1, %ecx movw %cx, 0x74(%rax) callq 0xfe880 movl (%rax), %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x76(%rax) jmp 0x3f6c6 jmp 0x3f6d7 movq -0x10(%rbp), %rax movzwl 0x74(%rax), %ecx orl $0x2, %ecx movw %cx, 0x74(%rax) jmp 0x3f6d9 jmp 0x3f6db movq -0x10(%rbp), %rax cmpq $0x0, 0x48(%rax) je 0x3f6f3 movq -0x10(%rbp), %rdi addq $0x48, %rdi callq 0x1087c0 jmp 0x3f74b callq 0xfe880 movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rdi addq $0x48, %rdi movq -0x48(%rbp), %rsi callq 0x1086c0 jmp 0x3f711 jmp 0x3f713 movq -0x48(%rbp), %rdi addq $0x8, %rdi movq -0x8(%rbp), %rsi addq $0xc8, %rsi leaq 0x11c2f7(%rip), %rdx # 0x15ba24 movl $0xc3b, %ecx # imm = 0xC3B callq 0x41b10 movq -0x48(%rbp), %rax cmpq $0x0, 0x88(%rax) jne 0x3f70f jmp 0x3f747 jmp 0x3f749 jmp 0x3f74b jmp 0x3f74d jmp 0x3f74f addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
read_block: push rbp mov rbp, rsp sub rsp, 60h mov al, dl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_11], al jmp short $+2 loc_3F577: cmp [rbp+var_11], 0 jz loc_3F6F5 mov rax, [rbp+var_8] mov rcx, [rax+188h] add rcx, 1 mov [rax+188h], rcx mov rdi, [rbp+var_8] add rdi, 0C8h call inline_mysql_mutex_unlock_0 mov rax, [rbp+var_10] mov rax, [rax+30h] mov [rbp+var_40], rax mov rax, [rbp+var_10] mov rax, [rax+20h] mov rax, [rax+60h] mov [rbp+var_38], rax mov rax, [rbp+var_10] mov rax, [rax+20h] mov rax, [rax+58h] mov [rbp+var_30], rax mov rax, [rbp+var_10] mov rax, [rax+20h] lea rdi, [rbp+var_40] call qword ptr [rax+30h] movsx rax, al mov [rbp+var_20], rax cmp [rbp+var_20], 0 jnz short loc_3F654 mov rax, [rbp+var_10] mov rax, [rax+20h] mov edx, [rax+28h] mov rax, [rbp+var_40] mov [rbp+var_50], rax mov rax, [rbp+var_8] mov eax, [rax+80h] mov r8d, eax mov rax, [rbp+var_10] mov rax, [rax+20h] mov r9, [rax+60h] mov rax, [rbp+var_8] mov eax, [rax+190h] mov ecx, eax shl r9, cl mov rcx, [rbp+var_50] mov rax, [rbp+var_8] mov rax, [rax+198h] lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 0C16h mov [rsp+60h+var_60], rax call inline_mysql_file_pread_1 mov [rbp+var_20], rax loc_3F654: mov rax, [rbp+var_10] mov rax, [rax+20h] mov rax, [rax+38h] cmp [rbp+var_20], 0 setnz cl and cl, 1 movzx edi, cl lea rsi, [rbp+var_40] call rax movsx rax, al mov [rbp+var_20], rax mov rdi, [rbp+var_8] add rdi, 0C8h lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 0C19h call inline_mysql_mutex_lock_0 cmp [rbp+var_20], 0 jz short loc_3F6C8 jmp short $+2 loc_3F6A1: jmp short $+2 loc_3F6A3: mov rax, [rbp+var_10] movzx ecx, word ptr [rax+74h] or ecx, 1 mov [rax+74h], cx call _my_thread_var mov eax, [rax] mov cx, ax mov rax, [rbp+var_10] mov [rax+76h], cx jmp short $+2 loc_3F6C6: jmp short loc_3F6D7 loc_3F6C8: mov rax, [rbp+var_10] movzx ecx, word ptr [rax+74h] or ecx, 2 mov [rax+74h], cx loc_3F6D7: jmp short $+2 loc_3F6D9: jmp short $+2 loc_3F6DB: mov rax, [rbp+var_10] cmp qword ptr [rax+48h], 0 jz short loc_3F6F3 mov rdi, [rbp+var_10] add rdi, 48h ; 'H' call wqueue_release_queue loc_3F6F3: jmp short loc_3F74B loc_3F6F5: call _my_thread_var mov [rbp+var_48], rax mov rdi, [rbp+var_10] add rdi, 48h ; 'H' mov rsi, [rbp+var_48] call wqueue_add_to_queue loc_3F70F: jmp short $+2 loc_3F711: jmp short $+2 loc_3F713: mov rdi, [rbp+var_48] add rdi, 8 mov rsi, [rbp+var_8] add rsi, 0C8h lea rdx, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 0C3Bh call inline_mysql_cond_wait_0 mov rax, [rbp+var_48] cmp qword ptr [rax+88h], 0 jnz short loc_3F70F jmp short $+2 loc_3F747: jmp short $+2 loc_3F749: jmp short $+2 loc_3F74B: jmp short $+2 loc_3F74D: jmp short $+2 loc_3F74F: add rsp, 60h pop rbp retn
long long read_block(long long a1, long long a2, char a3) { char v3; // al long long result; // rax long long v5; // [rsp+18h] [rbp-48h] _QWORD v6[4]; // [rsp+20h] [rbp-40h] BYREF long long v7; // [rsp+40h] [rbp-20h] char v8; // [rsp+4Fh] [rbp-11h] long long v9; // [rsp+50h] [rbp-10h] long long v10; // [rsp+58h] [rbp-8h] v10 = a1; v9 = a2; v8 = a3; if ( a3 ) { ++*(_QWORD *)(v10 + 392); inline_mysql_mutex_unlock_0(v10 + 200); v6[0] = *(_QWORD *)(v9 + 48); v6[1] = *(_QWORD *)(*(_QWORD *)(v9 + 32) + 96LL); v6[2] = *(_QWORD *)(*(_QWORD *)(v9 + 32) + 88LL); v3 = (*(long long ( **)(_QWORD *))(*(_QWORD *)(v9 + 32) + 48LL))(v6); v7 = v3; if ( !v3 ) v7 = inline_mysql_file_pread_1( (unsigned int)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 3094, *(_DWORD *)(*(_QWORD *)(v9 + 32) + 40LL), v6[0], *(_DWORD *)(v10 + 128), *(_QWORD *)(*(_QWORD *)(v9 + 32) + 96LL) << *(_DWORD *)(v10 + 400), *(_QWORD *)(v10 + 408)); v7 = (*(char ( **)(bool, _QWORD *))(*(_QWORD *)(v9 + 32) + 56LL))(v7 != 0, v6); inline_mysql_mutex_lock_0( v10 + 200, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0xC19u); if ( v7 ) { *(_WORD *)(v9 + 116) |= 1u; *(_WORD *)(v9 + 118) = *(_DWORD *)my_thread_var(); } else { *(_WORD *)(v9 + 116) |= 2u; } result = v9; if ( *(_QWORD *)(v9 + 72) ) return wqueue_release_queue(v9 + 72); } else { v5 = my_thread_var(); wqueue_add_to_queue(v9 + 72, v5); do { inline_mysql_cond_wait_0( v5 + 8, v10 + 200, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 3131LL); result = v5; } while ( *(_QWORD *)(v5 + 136) ); } return result; }
read_block: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV AL,DL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV byte ptr [RBP + -0x11],AL JMP 0x0013f577 LAB_0013f577: CMP byte ptr [RBP + -0x11],0x0 JZ 0x0013f6f5 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x188] ADD RCX,0x1 MOV qword ptr [RAX + 0x188],RCX MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 CALL 0x0013dc00 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x60] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x58] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] LEA RDI,[RBP + -0x40] CALL qword ptr [RAX + 0x30] MOVSX RAX,AL MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JNZ 0x0013f654 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV EDX,dword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x80] MOV R8D,EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV R9,qword ptr [RAX + 0x60] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x190] MOV ECX,EAX SHL R9,CL MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x198] LEA RDI,[0x25ba24] MOV ESI,0xc16 MOV qword ptr [RSP],RAX CALL 0x0013fe70 MOV qword ptr [RBP + -0x20],RAX LAB_0013f654: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x38] CMP qword ptr [RBP + -0x20],0x0 SETNZ CL AND CL,0x1 MOVZX EDI,CL LEA RSI,[RBP + -0x40] CALL RAX MOVSX RAX,AL MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 LEA RSI,[0x25ba24] MOV EDX,0xc19 CALL 0x0013db90 CMP qword ptr [RBP + -0x20],0x0 JZ 0x0013f6c8 JMP 0x0013f6a1 LAB_0013f6a1: JMP 0x0013f6a3 LAB_0013f6a3: MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RAX + 0x74] OR ECX,0x1 MOV word ptr [RAX + 0x74],CX CALL 0x001fe880 MOV EAX,dword ptr [RAX] MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x76],CX JMP 0x0013f6c6 LAB_0013f6c6: JMP 0x0013f6d7 LAB_0013f6c8: MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RAX + 0x74] OR ECX,0x2 MOV word ptr [RAX + 0x74],CX LAB_0013f6d7: JMP 0x0013f6d9 LAB_0013f6d9: JMP 0x0013f6db LAB_0013f6db: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x48],0x0 JZ 0x0013f6f3 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x48 CALL 0x002087c0 LAB_0013f6f3: JMP 0x0013f74b LAB_0013f6f5: CALL 0x001fe880 MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x48 MOV RSI,qword ptr [RBP + -0x48] CALL 0x002086c0 LAB_0013f70f: JMP 0x0013f711 LAB_0013f711: JMP 0x0013f713 LAB_0013f713: MOV RDI,qword ptr [RBP + -0x48] ADD RDI,0x8 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc8 LEA RDX,[0x25ba24] MOV ECX,0xc3b CALL 0x00141b10 MOV RAX,qword ptr [RBP + -0x48] CMP qword ptr [RAX + 0x88],0x0 JNZ 0x0013f70f JMP 0x0013f747 LAB_0013f747: JMP 0x0013f749 LAB_0013f749: JMP 0x0013f74b LAB_0013f74b: JMP 0x0013f74d LAB_0013f74d: JMP 0x0013f74f LAB_0013f74f: ADD RSP,0x60 POP RBP RET
void read_block(long param_1,long param_2,char param_3) { char cVar1; int4 *puVar2; long lVar3; int8 extraout_RDX; int1 auVar4 [16]; long local_48; int8 local_40; int8 local_38; long local_28; char local_19; long local_18; long local_10; local_19 = param_3; local_18 = param_2; local_10 = param_1; if (param_3 == '\0') { lVar3 = _my_thread_var(); wqueue_add_to_queue(local_18 + 0x48,lVar3); do { inline_mysql_cond_wait (lVar3 + 8,local_10 + 200, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0xc3b); } while (*(long *)(lVar3 + 0x88) != 0); } else { *(long *)(param_1 + 0x188) = *(long *)(param_1 + 0x188) + 1; inline_mysql_mutex_unlock(param_1 + 200); local_48 = *(long *)(local_18 + 0x30); local_40 = *(int8 *)(*(long *)(local_18 + 0x20) + 0x60); local_38 = *(int8 *)(*(long *)(local_18 + 0x20) + 0x58); cVar1 = (**(code **)(*(long *)(local_18 + 0x20) + 0x30))(&local_48); local_28 = (long)cVar1; auVar4._8_8_ = extraout_RDX; auVar4._0_8_ = local_28; if (local_28 == 0) { auVar4 = inline_mysql_file_pread ("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0xc16,*(int4 *)(*(long *)(local_18 + 0x20) + 0x28),local_48, *(int4 *)(local_10 + 0x80), *(long *)(*(long *)(local_18 + 0x20) + 0x60) << ((byte)*(int4 *)(local_10 + 400) & 0x3f), *(int8 *)(local_10 + 0x198)); } local_28 = auVar4._0_8_; cVar1 = (**(code **)(*(long *)(local_18 + 0x20) + 0x38)) (local_28 != 0,&local_48,auVar4._8_8_,local_28 != 0); local_28 = (long)cVar1; inline_mysql_mutex_lock (local_10 + 200, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0xc19); if (local_28 == 0) { *(ushort *)(local_18 + 0x74) = *(ushort *)(local_18 + 0x74) | 2; } else { *(ushort *)(local_18 + 0x74) = *(ushort *)(local_18 + 0x74) | 1; puVar2 = (int4 *)_my_thread_var(); *(short *)(local_18 + 0x76) = (short)*puVar2; } if (*(long *)(local_18 + 0x48) != 0) { wqueue_release_queue(local_18 + 0x48); } } return; }
45,093
read_block
eloqsql/storage/maria/ma_pagecache.c
static void read_block(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block, my_bool primary) { DBUG_ENTER("read_block"); DBUG_PRINT("enter", ("read block: %p primary: %d", block, primary)); if (primary) { size_t error; PAGECACHE_IO_HOOK_ARGS args; /* This code is executed only by threads that submitted primary requests */ pagecache->global_cache_read++; /* Page is not in buffer yet, is to be read from disk Here other threads may step in and register as secondary readers. They will register in block->wqueue[COND_FOR_REQUESTED]. */ pagecache_pthread_mutex_unlock(&pagecache->cache_lock); args.page= block->buffer; args.pageno= block->hash_link->pageno; args.data= block->hash_link->file.callback_data; error= (*block->hash_link->file.pre_read_hook)(&args); if (!error) { error= pagecache_fread(pagecache, &block->hash_link->file, args.page, block->hash_link->pageno, pagecache->readwrite_flags); } error= (*block->hash_link->file.post_read_hook)(error != 0, &args); pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (error) { DBUG_ASSERT(maria_in_recovery || !maria_assert_if_crashed_table); block->status|= PCBLOCK_ERROR; block->error= (int16) my_errno; my_debug_put_break_here(); } else { block->status|= PCBLOCK_READ; } DBUG_PRINT("read_block", ("primary request: new page in cache")); /* Signal that all pending requests for this page now can be processed */ if (block->wqueue[COND_FOR_REQUESTED].last_thread) wqueue_release_queue(&block->wqueue[COND_FOR_REQUESTED]); } else { /* This code is executed only by threads that submitted secondary requests */ struct st_my_thread_var *thread= my_thread_var; /* Put the request into a queue and wait until it can be processed */ wqueue_add_to_queue(&block->wqueue[COND_FOR_REQUESTED], thread); do { DBUG_PRINT("wait", ("suspend thread %s %ld", thread->name, (ulong) thread->id)); pagecache_pthread_cond_wait(&thread->suspend, &pagecache->cache_lock); } while (thread->next); DBUG_PRINT("read_block", ("secondary request: new page in cache")); } DBUG_VOID_RETURN; }
O3
c
read_block: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rsi, %rbx movq %rdi, %r14 testb %dl, %dl je 0x3ec1e incq 0x188(%r14) leaq 0xc8(%r14), %r15 movq 0x108(%r14), %rdi testq %rdi, %rdi jne 0x3ed69 movq %r15, %rdi callq 0x2a1e0 movq 0x30(%rbx), %rax leaq -0x68(%rbp), %rdi movq %rax, (%rdi) movq 0x20(%rbx), %rax movq 0x60(%rax), %rcx movq %rcx, 0x8(%rdi) movq 0x58(%rax), %rcx movq %rcx, 0x10(%rdi) callq *0x30(%rax) testb %al, %al je 0x3ec80 movsbq %al, %r12 jmp 0x3ecf6 callq 0xa813e movq %rax, %r15 addq $0x48, %rbx movq %rbx, %rdi movq %rax, %rsi callq 0xad2bf movq %r15, %rbx addq $0x8, %rbx addq $0xc8, %r14 leaq 0xa2ebf(%rip), %r12 # 0xe1b09 cmpq $0x0, 0x38(%r15) jne 0x3ec6b movq %rbx, %rdi movq %r14, %rsi callq 0x2a460 cmpq $0x0, 0x88(%r15) jne 0x3ec4a jmp 0x3ed57 movq %rbx, %rdi movq %r14, %rsi movq %r12, %rdx movl $0xc3b, %ecx # imm = 0xC3B callq 0x30914 jmp 0x3ec5c movq 0x20(%rbx), %rax movl 0x28(%rax), %r13d movq -0x68(%rbp), %rcx movq %rcx, -0x40(%rbp) movq 0x60(%rax), %r12 movb 0x190(%r14), %cl shlq %cl, %r12 movl 0x80(%r14), %eax movq %rax, -0x38(%rbp) movq 0x198(%r14), %rax movq %rax, -0x30(%rbp) leaq 0x35059d(%rip), %rax # 0x38f258 movq (%rax), %rax leaq -0xb0(%rbp), %rdi movl %r13d, %esi movl $0x6, %edx callq *0x158(%rax) testq %rax, %rax jne 0x3ed94 movl %r13d, %edi movq -0x40(%rbp), %rsi movq -0x38(%rbp), %rdx movq %r12, %rcx movq -0x30(%rbp), %r8 callq 0xa6c7c movq %rax, %r12 movq 0x20(%rbx), %rax xorl %edi, %edi testq %r12, %r12 setne %dil leaq -0x68(%rbp), %rsi callq *0x38(%rax) movl %eax, %r12d cmpq $0x0, 0x108(%r14) jne 0x3ed7e movq %r15, %rdi callq 0x2a220 movzwl 0x74(%rbx), %eax testb %r12b, %r12b je 0x3ed3d orl $0x1, %eax movw %ax, 0x74(%rbx) callq 0xa813e movzwl (%rax), %eax movw %ax, 0x76(%rbx) jmp 0x3ed44 orl $0x2, %eax movw %ax, 0x74(%rbx) cmpq $0x0, 0x48(%rbx) je 0x3ed57 addq $0x48, %rbx movq %rbx, %rdi callq 0xad33f addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x3504e8(%rip), %rax # 0x38f258 movq (%rax), %rax callq *0x160(%rax) jmp 0x3ebe7 leaq 0xa2d84(%rip), %rsi # 0xe1b09 movq %r15, %rdi movl $0xc19, %edx # imm = 0xC19 callq 0x30603 jmp 0x3ed1f movq %rax, %rcx leaq 0x3504ba(%rip), %rax # 0x38f258 movq (%rax), %rax leaq 0xa2d61(%rip), %rdx # 0xe1b09 movq %rcx, -0x48(%rbp) movq %rcx, %rdi movq -0x38(%rbp), %rsi movl $0xc16, %ecx # imm = 0xC16 callq *0x210(%rax) movl %r13d, %edi movq -0x40(%rbp), %rsi movq -0x38(%rbp), %r13 movq %r13, %rdx movq %r12, %rcx movq -0x30(%rbp), %r8 callq 0xa6c7c movq %rax, %r12 xorl %esi, %esi testq %rax, %rax cmovneq %rsi, %r13 cmpq $-0x1, %rax cmovneq %rax, %rsi testb $0x6, -0x30(%rbp) cmovneq %r13, %rsi leaq 0x35045d(%rip), %rax # 0x38f258 movq (%rax), %rax movq -0x48(%rbp), %rdi callq *0x218(%rax) jmp 0x3ecf6
read_block: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov rbx, rsi mov r14, rdi test dl, dl jz short loc_3EC1E inc qword ptr [r14+188h] lea r15, [r14+0C8h] mov rdi, [r14+108h] test rdi, rdi jnz loc_3ED69 loc_3EBE7: mov rdi, r15 call _pthread_mutex_unlock mov rax, [rbx+30h] lea rdi, [rbp+var_68] mov [rdi], rax mov rax, [rbx+20h] mov rcx, [rax+60h] mov [rdi+8], rcx mov rcx, [rax+58h] mov [rdi+10h], rcx call qword ptr [rax+30h] test al, al jz short loc_3EC80 movsx r12, al jmp loc_3ECF6 loc_3EC1E: call _my_thread_var mov r15, rax add rbx, 48h ; 'H' mov rdi, rbx mov rsi, rax call wqueue_add_to_queue mov rbx, r15 add rbx, 8 add r14, 0C8h lea r12, aWorkspaceLlm4b_26; "/workspace/llm4binary/github2025/eloqsq"... loc_3EC4A: cmp qword ptr [r15+38h], 0 jnz short loc_3EC6B mov rdi, rbx mov rsi, r14 call _pthread_cond_wait loc_3EC5C: cmp qword ptr [r15+88h], 0 jnz short loc_3EC4A jmp loc_3ED57 loc_3EC6B: mov rdi, rbx mov rsi, r14 mov rdx, r12 mov ecx, 0C3Bh call psi_cond_wait jmp short loc_3EC5C loc_3EC80: mov rax, [rbx+20h] mov r13d, [rax+28h] mov rcx, [rbp+var_68] mov [rbp+var_40], rcx mov r12, [rax+60h] mov cl, [r14+190h] shl r12, cl mov eax, [r14+80h] mov [rbp+var_38], rax mov rax, [r14+198h] mov [rbp+var_30], rax lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_B0] mov esi, r13d mov edx, 6 call qword ptr [rax+158h] test rax, rax jnz loc_3ED94 mov edi, r13d mov rsi, [rbp+var_40] mov rdx, [rbp+var_38] mov rcx, r12 mov r8, [rbp+var_30] call my_pread mov r12, rax loc_3ECF6: mov rax, [rbx+20h] xor edi, edi test r12, r12 setnz dil lea rsi, [rbp+var_68] call qword ptr [rax+38h] mov r12d, eax cmp qword ptr [r14+108h], 0 jnz short loc_3ED7E mov rdi, r15 call _pthread_mutex_lock loc_3ED1F: movzx eax, word ptr [rbx+74h] test r12b, r12b jz short loc_3ED3D or eax, 1 mov [rbx+74h], ax call _my_thread_var movzx eax, word ptr [rax] mov [rbx+76h], ax jmp short loc_3ED44 loc_3ED3D: or eax, 2 mov [rbx+74h], ax loc_3ED44: cmp qword ptr [rbx+48h], 0 jz short loc_3ED57 add rbx, 48h ; 'H' mov rdi, rbx call wqueue_release_queue loc_3ED57: add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3ED69: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_3EBE7 loc_3ED7E: lea rsi, aWorkspaceLlm4b_26; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r15 mov edx, 0C19h call psi_mutex_lock jmp short loc_3ED1F loc_3ED94: mov rcx, rax lea rax, PSI_server mov rax, [rax] lea rdx, aWorkspaceLlm4b_26; "/workspace/llm4binary/github2025/eloqsq"... mov [rbp+var_48], rcx mov rdi, rcx mov rsi, [rbp+var_38] mov ecx, 0C16h call qword ptr [rax+210h] mov edi, r13d mov rsi, [rbp+var_40] mov r13, [rbp+var_38] mov rdx, r13 mov rcx, r12 mov r8, [rbp+var_30] call my_pread mov r12, rax xor esi, esi test rax, rax cmovnz r13, rsi cmp rax, 0FFFFFFFFFFFFFFFFh cmovnz rsi, rax test byte ptr [rbp+var_30], 6 cmovnz rsi, r13 lea rax, PSI_server mov rax, [rax] mov rdi, [rbp+var_48] call qword ptr [rax+218h] jmp loc_3ECF6
long long read_block(long long a1, long long a2, char a3) { long long v3; // rax char v4; // al long long v5; // r12 long long v6; // r15 long long v7; // r14 long long result; // rax long long v9; // rax unsigned int v10; // r13d long long v11; // r12 long long v12; // rax char v13; // r12 int v14; // eax _BYTE v15[72]; // [rsp+0h] [rbp-B0h] BYREF _QWORD v16[4]; // [rsp+48h] [rbp-68h] BYREF long long v17; // [rsp+68h] [rbp-48h] long long v18; // [rsp+70h] [rbp-40h] long long v19; // [rsp+78h] [rbp-38h] long long v20; // [rsp+80h] [rbp-30h] if ( a3 ) { ++*(_QWORD *)(a1 + 392); if ( *(_QWORD *)(a1 + 264) ) PSI_server[44](); pthread_mutex_unlock(a1 + 200); v16[0] = *(_QWORD *)(a2 + 48); v3 = *(_QWORD *)(a2 + 32); v16[1] = *(_QWORD *)(v3 + 96); v16[2] = *(_QWORD *)(v3 + 88); v4 = (*(long long (**)(void))(v3 + 48))(); if ( v4 ) { v5 = v4; } else { v9 = *(_QWORD *)(a2 + 32); v10 = *(_DWORD *)(v9 + 40); v18 = v16[0]; v11 = *(_QWORD *)(v9 + 96) << *(_BYTE *)(a1 + 400); v19 = *(unsigned int *)(a1 + 128); v20 = *(_QWORD *)(a1 + 408); v12 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v15, v10, 6LL); if ( v12 ) { v17 = v12; ((void ( *)(long long, long long, const char *, long long))PSI_server[66])( v12, v19, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 3094LL); v5 = my_pread(v10, v18, v19, v11, v20); ((void ( *)(long long))PSI_server[67])(v17); } else { v5 = my_pread(v10, v18, v19, v11, v20); } } v13 = (*(long long ( **)(bool, _QWORD *))(*(_QWORD *)(a2 + 32) + 56LL))(v5 != 0, v16); if ( *(_QWORD *)(a1 + 264) ) psi_mutex_lock(a1 + 200, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0xC19u); else pthread_mutex_lock(a1 + 200); v14 = *(unsigned __int16 *)(a2 + 116); if ( v13 ) { *(_WORD *)(a2 + 116) = v14 | 1; result = *(unsigned __int16 *)my_thread_var(a1 + 200); *(_WORD *)(a2 + 118) = result; } else { result = v14 | 2u; *(_WORD *)(a2 + 116) = result; } if ( *(_QWORD *)(a2 + 72) ) return wqueue_release_queue(a2 + 72); } else { v6 = my_thread_var(a1); wqueue_add_to_queue(a2 + 72, v6); v7 = a1 + 200; do { if ( *(_QWORD *)(v6 + 56) ) result = psi_cond_wait( v6 + 8, v7, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0xC3Bu); else result = pthread_cond_wait(v6 + 8, v7); } while ( *(_QWORD *)(v6 + 136) ); } return result; }
read_block: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV RBX,RSI MOV R14,RDI TEST DL,DL JZ 0x0013ec1e INC qword ptr [R14 + 0x188] LEA R15,[R14 + 0xc8] MOV RDI,qword ptr [R14 + 0x108] TEST RDI,RDI JNZ 0x0013ed69 LAB_0013ebe7: MOV RDI,R15 CALL 0x0012a1e0 MOV RAX,qword ptr [RBX + 0x30] LEA RDI,[RBP + -0x68] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RBX + 0x20] MOV RCX,qword ptr [RAX + 0x60] MOV qword ptr [RDI + 0x8],RCX MOV RCX,qword ptr [RAX + 0x58] MOV qword ptr [RDI + 0x10],RCX CALL qword ptr [RAX + 0x30] TEST AL,AL JZ 0x0013ec80 MOVSX R12,AL JMP 0x0013ecf6 LAB_0013ec1e: CALL 0x001a813e MOV R15,RAX ADD RBX,0x48 MOV RDI,RBX MOV RSI,RAX CALL 0x001ad2bf MOV RBX,R15 ADD RBX,0x8 ADD R14,0xc8 LEA R12,[0x1e1b09] LAB_0013ec4a: CMP qword ptr [R15 + 0x38],0x0 JNZ 0x0013ec6b MOV RDI,RBX MOV RSI,R14 CALL 0x0012a460 LAB_0013ec5c: CMP qword ptr [R15 + 0x88],0x0 JNZ 0x0013ec4a JMP 0x0013ed57 LAB_0013ec6b: MOV RDI,RBX MOV RSI,R14 MOV RDX,R12 MOV ECX,0xc3b CALL 0x00130914 JMP 0x0013ec5c LAB_0013ec80: MOV RAX,qword ptr [RBX + 0x20] MOV R13D,dword ptr [RAX + 0x28] MOV RCX,qword ptr [RBP + -0x68] MOV qword ptr [RBP + -0x40],RCX MOV R12,qword ptr [RAX + 0x60] MOV CL,byte ptr [R14 + 0x190] SHL R12,CL MOV EAX,dword ptr [R14 + 0x80] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [R14 + 0x198] MOV qword ptr [RBP + -0x30],RAX LEA RAX,[0x48f258] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0xb0] MOV ESI,R13D MOV EDX,0x6 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0013ed94 MOV EDI,R13D MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x38] MOV RCX,R12 MOV R8,qword ptr [RBP + -0x30] CALL 0x001a6c7c MOV R12,RAX LAB_0013ecf6: MOV RAX,qword ptr [RBX + 0x20] XOR EDI,EDI TEST R12,R12 SETNZ DIL LEA RSI,[RBP + -0x68] CALL qword ptr [RAX + 0x38] MOV R12D,EAX CMP qword ptr [R14 + 0x108],0x0 JNZ 0x0013ed7e MOV RDI,R15 CALL 0x0012a220 LAB_0013ed1f: MOVZX EAX,word ptr [RBX + 0x74] TEST R12B,R12B JZ 0x0013ed3d OR EAX,0x1 MOV word ptr [RBX + 0x74],AX CALL 0x001a813e MOVZX EAX,word ptr [RAX] MOV word ptr [RBX + 0x76],AX JMP 0x0013ed44 LAB_0013ed3d: OR EAX,0x2 MOV word ptr [RBX + 0x74],AX LAB_0013ed44: CMP qword ptr [RBX + 0x48],0x0 JZ 0x0013ed57 ADD RBX,0x48 MOV RDI,RBX CALL 0x001ad33f LAB_0013ed57: ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013ed69: LEA RAX,[0x48f258] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0013ebe7 LAB_0013ed7e: LEA RSI,[0x1e1b09] MOV RDI,R15 MOV EDX,0xc19 CALL 0x00130603 JMP 0x0013ed1f LAB_0013ed94: MOV RCX,RAX LEA RAX,[0x48f258] MOV RAX,qword ptr [RAX] LEA RDX,[0x1e1b09] MOV qword ptr [RBP + -0x48],RCX MOV RDI,RCX MOV RSI,qword ptr [RBP + -0x38] MOV ECX,0xc16 CALL qword ptr [RAX + 0x210] MOV EDI,R13D MOV RSI,qword ptr [RBP + -0x40] MOV R13,qword ptr [RBP + -0x38] MOV RDX,R13 MOV RCX,R12 MOV R8,qword ptr [RBP + -0x30] CALL 0x001a6c7c MOV R12,RAX XOR ESI,ESI TEST RAX,RAX CMOVNZ R13,RSI CMP RAX,-0x1 CMOVNZ RSI,RAX TEST byte ptr [RBP + -0x30],0x6 CMOVNZ RSI,R13 LEA RAX,[0x48f258] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RBP + -0x48] CALL qword ptr [RAX + 0x218] JMP 0x0013ecf6
void read_block(long param_1,long param_2,char param_3) { pthread_mutex_t *__mutex; int4 uVar1; char cVar2; long lVar3; int2 *puVar4; ulong uVar5; ulong uVar6; long lVar7; ulong uVar8; int1 local_b8 [72]; int8 local_70; int8 local_68; int8 local_60; long local_50; int8 local_48; ulong local_40; ulong local_38; if (param_3 == '\0') { lVar3 = _my_thread_var(); wqueue_add_to_queue(param_2 + 0x48,lVar3); do { if (*(long *)(lVar3 + 0x38) == 0) { pthread_cond_wait((pthread_cond_t *)(lVar3 + 8),(pthread_mutex_t *)(param_1 + 200)); } else { psi_cond_wait((pthread_cond_t *)(lVar3 + 8),(pthread_mutex_t *)(param_1 + 200), "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0xc3b) ; } } while (*(long *)(lVar3 + 0x88) != 0); } else { *(long *)(param_1 + 0x188) = *(long *)(param_1 + 0x188) + 1; __mutex = (pthread_mutex_t *)(param_1 + 200); if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); local_70 = *(int8 *)(param_2 + 0x30); lVar3 = *(long *)(param_2 + 0x20); local_68 = *(int8 *)(lVar3 + 0x60); local_60 = *(int8 *)(lVar3 + 0x58); cVar2 = (**(code **)(lVar3 + 0x30))(); if (cVar2 == '\0') { uVar1 = *(int4 *)(*(long *)(param_2 + 0x20) + 0x28); local_48 = local_70; lVar7 = *(long *)(*(long *)(param_2 + 0x20) + 0x60) << (*(byte *)(param_1 + 400) & 0x3f); local_40 = (ulong)*(uint *)(param_1 + 0x80); local_38 = *(ulong *)(param_1 + 0x198); lVar3 = (**(code **)(PSI_server + 0x158))(local_b8,uVar1,6); if (lVar3 == 0) { uVar6 = my_pread(uVar1,local_48,local_40,lVar7,local_38); } else { local_50 = lVar3; (**(code **)(PSI_server + 0x210)) (lVar3,local_40, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0xc16); uVar8 = local_40; uVar6 = my_pread(uVar1,local_48,local_40,lVar7,local_38); if (uVar6 != 0) { uVar8 = 0; } uVar5 = 0; if (uVar6 != 0xffffffffffffffff) { uVar5 = uVar6; } if ((local_38 & 6) != 0) { uVar5 = uVar8; } (**(code **)(PSI_server + 0x218))(local_50,uVar5); } } else { uVar6 = (ulong)cVar2; } cVar2 = (**(code **)(*(long *)(param_2 + 0x20) + 0x38))(uVar6 != 0,&local_70); if (*(long *)(param_1 + 0x108) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c" ,0xc19); } if (cVar2 == '\0') { *(ushort *)(param_2 + 0x74) = *(ushort *)(param_2 + 0x74) | 2; } else { *(ushort *)(param_2 + 0x74) = *(ushort *)(param_2 + 0x74) | 1; puVar4 = (int2 *)_my_thread_var(); *(int2 *)(param_2 + 0x76) = *puVar4; } if (*(long *)(param_2 + 0x48) != 0) { wqueue_release_queue(param_2 + 0x48); } } return; }
45,094
ma_fcvt
eloqsql/libmariadb/libmariadb/ma_dtoa.c
size_t ma_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 < NOT_FIXED_DEC && 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 - 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
ma_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) 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 0xba8b0 movq %rax, -0xeb0(%rbp) cmpl $0x270f, -0xe9c(%rbp) # imm = 0x270F jne 0xba5ef movq -0xeb0(%rbp), %rdi leaq -0xe70(%rbp), %rsi movl $0xe60, %edx # imm = 0xE60 callq 0xbbf10 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 0xba5df movq -0xe98(%rbp), %rax movb $0x1, (%rax) movq $0x1, -0xe78(%rbp) jmp 0xba876 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 0xba635 movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x2d, (%rax) cmpl $0x0, -0xe9c(%rbp) jg 0xba6ae 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 0xba6ac 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 0xba67a jmp 0xba6ae movl $0x1, -0xea8(%rbp) movl -0xea8(%rbp), %eax cmpl -0xea4(%rbp), %eax jg 0xba73e 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 0xba728 movl -0xea8(%rbp), %eax cmpl -0xea4(%rbp), %eax jge 0xba728 movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x2e, (%rax) jmp 0xba72a movl -0xea8(%rbp), %eax addl $0x1, %eax movl %eax, -0xea8(%rbp) jmp 0xba6b8 jmp 0xba740 movl -0xea8(%rbp), %eax movl %eax, %ecx addl $0x1, %ecx movl %ecx, -0xea8(%rbp) cmpl -0xe9c(%rbp), %eax jg 0xba773 movq -0xec8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0xec8(%rbp) movb $0x30, (%rax) jmp 0xba740 cmpl $0x0, -0xe84(%rbp) jle 0xba828 movl -0xea4(%rbp), %eax cmpl -0xe9c(%rbp), %eax jg 0xba7a6 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 0xba7ce xorl %eax, %eax movl %eax, -0xed0(%rbp) jmp 0xba7e0 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 0xba826 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 0xba7f4 jmp 0xba828 movq -0xec8(%rbp), %rax movb $0x0, (%rax) cmpq $0x0, -0xe98(%rbp) je 0xba846 movq -0xe98(%rbp), %rax movb $0x0, (%rax) movq -0xeb0(%rbp), %rdi leaq -0xe70(%rbp), %rsi movl $0xe60, %edx # imm = 0xE60 callq 0xbbf10 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 0xba8a6 movq -0xed8(%rbp), %rax addq $0xee0, %rsp # imm = 0xEE0 popq %rbp retq callq 0x3a2a0 nopl (%rax,%rax)
ma_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 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_BA5EF 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_BA5DF mov rax, [rbp+var_E98] mov byte ptr [rax], 1 loc_BA5DF: mov [rbp+var_E78], 1 jmp loc_BA876 loc_BA5EF: 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_BA635 mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 2Dh ; '-' loc_BA635: cmp [rbp+var_E9C], 0 jg short loc_BA6AE 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_BA67A: cmp [rbp+var_EA8], 0 jge short loc_BA6AC 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_BA67A loc_BA6AC: jmp short $+2 loc_BA6AE: mov [rbp+var_EA8], 1 loc_BA6B8: mov eax, [rbp+var_EA8] cmp eax, [rbp+var_EA4] jg short loc_BA73E 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_BA728 mov eax, [rbp+var_EA8] cmp eax, [rbp+var_EA4] jge short loc_BA728 mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 2Eh ; '.' loc_BA728: jmp short $+2 loc_BA72A: mov eax, [rbp+var_EA8] add eax, 1 mov [rbp+var_EA8], eax jmp loc_BA6B8 loc_BA73E: jmp short $+2 loc_BA740: mov eax, [rbp+var_EA8] mov ecx, eax add ecx, 1 mov [rbp+var_EA8], ecx cmp eax, [rbp+var_E9C] jg short loc_BA773 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_BA740 loc_BA773: cmp [rbp+var_E84], 0 jle loc_BA828 mov eax, [rbp+var_EA4] cmp eax, [rbp+var_E9C] jg short loc_BA7A6 mov rax, [rbp+var_EC8] mov rcx, rax add rcx, 1 mov [rbp+var_EC8], rcx mov byte ptr [rax], 2Eh ; '.' loc_BA7A6: 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_BA7CE xor eax, eax mov [rbp+var_ED0], eax jmp short loc_BA7E0 loc_BA7CE: mov eax, [rbp+var_EA4] sub eax, [rbp+var_E9C] mov [rbp+var_ED0], eax loc_BA7E0: mov eax, [rbp+var_ECC] mov ecx, [rbp+var_ED0] sub eax, ecx mov [rbp+var_EA8], eax loc_BA7F4: cmp [rbp+var_EA8], 0 jle short loc_BA826 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_BA7F4 loc_BA826: jmp short $+2 loc_BA828: mov rax, [rbp+var_EC8] mov byte ptr [rax], 0 cmp [rbp+var_E98], 0 jz short loc_BA846 mov rax, [rbp+var_E98] mov byte ptr [rax], 0 loc_BA846: 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_BA876: 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_BA8A6 mov rax, [rbp+var_ED8] add rsp, 0EE0h pop rbp retn loc_BA8A6: call ___stack_chk_fail
long long ma_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); 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); return v17 - v26; } }
ma_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 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 0x001ba8b0 MOV qword ptr [RBP + -0xeb0],RAX CMP dword ptr [RBP + -0xe9c],0x270f JNZ 0x001ba5ef MOV RDI,qword ptr [RBP + -0xeb0] LEA RSI,[RBP + -0xe70] MOV EDX,0xe60 CALL 0x001bbf10 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 0x001ba5df MOV RAX,qword ptr [RBP + -0xe98] MOV byte ptr [RAX],0x1 LAB_001ba5df: MOV qword ptr [RBP + -0xe78],0x1 JMP 0x001ba876 LAB_001ba5ef: 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 0x001ba635 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x2d LAB_001ba635: CMP dword ptr [RBP + -0xe9c],0x0 JG 0x001ba6ae 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_001ba67a: CMP dword ptr [RBP + -0xea8],0x0 JGE 0x001ba6ac 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 0x001ba67a LAB_001ba6ac: JMP 0x001ba6ae LAB_001ba6ae: MOV dword ptr [RBP + -0xea8],0x1 LAB_001ba6b8: MOV EAX,dword ptr [RBP + -0xea8] CMP EAX,dword ptr [RBP + -0xea4] JG 0x001ba73e 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 0x001ba728 MOV EAX,dword ptr [RBP + -0xea8] CMP EAX,dword ptr [RBP + -0xea4] JGE 0x001ba728 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x2e LAB_001ba728: JMP 0x001ba72a LAB_001ba72a: MOV EAX,dword ptr [RBP + -0xea8] ADD EAX,0x1 MOV dword ptr [RBP + -0xea8],EAX JMP 0x001ba6b8 LAB_001ba73e: JMP 0x001ba740 LAB_001ba740: 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 0x001ba773 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x30 JMP 0x001ba740 LAB_001ba773: CMP dword ptr [RBP + -0xe84],0x0 JLE 0x001ba828 MOV EAX,dword ptr [RBP + -0xea4] CMP EAX,dword ptr [RBP + -0xe9c] JG 0x001ba7a6 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0xec8],RCX MOV byte ptr [RAX],0x2e LAB_001ba7a6: 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 0x001ba7ce XOR EAX,EAX MOV dword ptr [RBP + -0xed0],EAX JMP 0x001ba7e0 LAB_001ba7ce: MOV EAX,dword ptr [RBP + -0xea4] SUB EAX,dword ptr [RBP + -0xe9c] MOV dword ptr [RBP + -0xed0],EAX LAB_001ba7e0: MOV EAX,dword ptr [RBP + -0xecc] MOV ECX,dword ptr [RBP + -0xed0] SUB EAX,ECX MOV dword ptr [RBP + -0xea8],EAX LAB_001ba7f4: CMP dword ptr [RBP + -0xea8],0x0 JLE 0x001ba826 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 0x001ba7f4 LAB_001ba826: JMP 0x001ba828 LAB_001ba828: MOV RAX,qword ptr [RBP + -0xec8] MOV byte ptr [RAX],0x0 CMP qword ptr [RBP + -0xe98],0x0 JZ 0x001ba846 MOV RAX,qword ptr [RBP + -0xe98] MOV byte ptr [RAX],0x0 LAB_001ba846: MOV RDI,qword ptr [RBP + -0xeb0] LEA RSI,[RBP + -0xe70] MOV EDX,0xe60 CALL 0x001bbf10 MOV RAX,qword ptr [RBP + -0xec8] MOV RCX,qword ptr [RBP + -0xe90] SUB RAX,RCX MOV qword ptr [RBP + -0xe78],RAX LAB_001ba876: 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 0x001ba8a6 MOV RAX,qword ptr [RBP + -0xed8] ADD RSP,0xee0 POP RBP RET LAB_001ba8a6: CALL 0x0013a2a0
long ma_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; }
45,095
ggml_acc_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_acc_impl( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, size_t nb1, size_t nb2, size_t nb3, size_t offset, bool inplace) { GGML_ASSERT(ggml_nelements(b) <= ggml_nelements(a)); GGML_ASSERT(ggml_is_contiguous(a)); GGML_ASSERT(a->type == GGML_TYPE_F32); GGML_ASSERT(b->type == GGML_TYPE_F32); struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_ACC; result->src[0] = a; result->src[1] = b; return result; }
O1
c
ggml_acc_impl: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r12 movq 0x18(%rdx), %rax imulq 0x10(%rdx), %rax imulq 0x20(%rdx), %rax imulq 0x28(%rdx), %rax movq 0x18(%rsi), %rcx imulq 0x10(%rsi), %rcx imulq 0x20(%rsi), %rcx imulq 0x28(%rsi), %rcx cmpq %rcx, %rax jg 0x1c27c movq %r9, %r14 movq %r8, %r15 movq %rdx, %rbx movq %rsi, %r13 movq %rdi, %rbp movq %rsi, %rdi xorl %esi, %esi callq 0x1b410 testb %al, %al je 0x1c298 movl (%r13), %esi testl %esi, %esi jne 0x1c2b4 cmpl $0x0, (%rbx) jne 0x1c2d0 cmpb $0x0, 0x48(%rsp) je 0x1c21c movq %rbp, %rdi movq %r13, %rsi callq 0x17260 jmp 0x1c233 leaq 0x10(%r13), %rcx movq %rbp, %rdi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1b871 testq %rax, %rax je 0x1c2ec movq 0x40(%rsp), %rcx movzbl 0x48(%rsp), %edx movl %r12d, 0x54(%rax) movl %r15d, 0x58(%rax) movl %r14d, 0x5c(%rax) movl %ecx, 0x60(%rax) movl %edx, 0x64(%rax) movl $0x4, 0x50(%rax) movq %r13, 0x98(%rax) movq %rbx, 0xa0(%rax) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x302ec(%rip), %rdi # 0x4c56f leaq 0x30337(%rip), %rdx # 0x4c5c1 leaq 0x32521(%rip), %rcx # 0x4e7b2 movl $0x798, %esi # imm = 0x798 jmp 0x1c306 leaq 0x302d0(%rip), %rdi # 0x4c56f leaq 0x3031b(%rip), %rdx # 0x4c5c1 leaq 0x306d3(%rip), %rcx # 0x4c980 movl $0x799, %esi # imm = 0x799 jmp 0x1c306 leaq 0x302b4(%rip), %rdi # 0x4c56f leaq 0x302ff(%rip), %rdx # 0x4c5c1 leaq 0x30a9e(%rip), %rcx # 0x4cd67 movl $0x79a, %esi # imm = 0x79A jmp 0x1c306 leaq 0x30298(%rip), %rdi # 0x4c56f leaq 0x302e3(%rip), %rdx # 0x4c5c1 leaq 0x324f4(%rip), %rcx # 0x4e7d9 movl $0x79b, %esi # imm = 0x79B jmp 0x1c306 leaq 0x323d2(%rip), %rdi # 0x4e6c5 leaq 0x302c7(%rip), %rdx # 0x4c5c1 leaq 0x324f1(%rip), %rcx # 0x4e7f2 movl $0x70, %esi xorl %eax, %eax callq 0x18ce0
ggml_acc_impl: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r12, rcx mov rax, [rdx+18h] imul rax, [rdx+10h] imul rax, [rdx+20h] imul rax, [rdx+28h] mov rcx, [rsi+18h] imul rcx, [rsi+10h] imul rcx, [rsi+20h] imul rcx, [rsi+28h] cmp rax, rcx jg loc_1C27C mov r14, r9 mov r15, r8 mov rbx, rdx mov r13, rsi mov rbp, rdi mov rdi, rsi xor esi, esi call ggml_is_contiguous_n test al, al jz loc_1C298 mov esi, [r13+0] test esi, esi jnz loc_1C2B4 cmp dword ptr [rbx], 0 jnz loc_1C2D0 cmp [rsp+38h+arg_8], 0 jz short loc_1C21C mov rdi, rbp mov rsi, r13 call _ggml_view_tensor jmp short loc_1C233 loc_1C21C: lea rcx, [r13+10h] mov rdi, rbp mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl loc_1C233: test rax, rax jz loc_1C2EC mov rcx, [rsp+38h+arg_0] movzx edx, [rsp+38h+arg_8] mov [rax+54h], r12d mov [rax+58h], r15d mov [rax+5Ch], r14d mov [rax+60h], ecx mov [rax+64h], edx mov dword ptr [rax+50h], 4 mov [rax+98h], r13 mov [rax+0A0h], rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1C27C: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlNelementsB; "ggml_nelements(b) <= ggml_nelements(a)" mov esi, 798h jmp short loc_1C306 loc_1C298: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsContiguo_3; "ggml_is_contiguous(a)" mov esi, 799h jmp short loc_1C306 loc_1C2B4: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aATypeGgmlTypeF; "a->type == GGML_TYPE_F32" mov esi, 79Ah jmp short loc_1C306 loc_1C2D0: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aBTypeGgmlTypeF; "b->type == GGML_TYPE_F32" mov esi, 79Bh jmp short loc_1C306 loc_1C2EC: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorNull; "tensor != NULL" mov esi, 70h ; 'p' loc_1C306: xor eax, eax call _ggml_abort
long long ggml_acc_impl( long long a1, long long a2, long long a3, int a4, int a5, int a6, double a7, long long a8, unsigned __int8 a9) { long long result; // rax const char *v14; // rdi const char *v15; // rcx int v16; // esi if ( *(_QWORD *)(a3 + 40) * *(_QWORD *)(a3 + 32) * *(_QWORD *)(a3 + 16) * *(_QWORD *)(a3 + 24) > *(_QWORD *)(a2 + 40) * *(_QWORD *)(a2 + 32) * *(_QWORD *)(a2 + 16) * *(_QWORD *)(a2 + 24) ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v15 = "ggml_nelements(b) <= ggml_nelements(a)"; v16 = 1944; goto LABEL_15; } if ( !(unsigned __int8)ggml_is_contiguous_n((unsigned int *)a2, 0) ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v15 = "ggml_is_contiguous(a)"; v16 = 1945; goto LABEL_15; } if ( *(_DWORD *)a2 ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v15 = "a->type == GGML_TYPE_F32"; v16 = 1946; goto LABEL_15; } if ( *(_DWORD *)a3 ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v15 = "b->type == GGML_TYPE_F32"; v16 = 1947; goto LABEL_15; } if ( a9 ) result = ggml_view_tensor(a1, a2, a7); else result = ggml_new_tensor_impl(a1, 0, 4, (long long *)(a2 + 16), 0LL, 0LL, a7); if ( !result ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"; v15 = "tensor != NULL"; v16 = 112; LABEL_15: ggml_abort((_DWORD)v14, v16, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v15, a5, a6); } *(_DWORD *)(result + 84) = a4; *(_DWORD *)(result + 88) = a5; *(_DWORD *)(result + 92) = a6; *(_DWORD *)(result + 96) = a8; *(_DWORD *)(result + 100) = a9; *(_DWORD *)(result + 80) = 4; *(_QWORD *)(result + 152) = a2; *(_QWORD *)(result + 160) = a3; return result; }
ggml_acc_impl: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,RCX MOV RAX,qword ptr [RDX + 0x18] IMUL RAX,qword ptr [RDX + 0x10] IMUL RAX,qword ptr [RDX + 0x20] IMUL RAX,qword ptr [RDX + 0x28] MOV RCX,qword ptr [RSI + 0x18] IMUL RCX,qword ptr [RSI + 0x10] IMUL RCX,qword ptr [RSI + 0x20] IMUL RCX,qword ptr [RSI + 0x28] CMP RAX,RCX JG 0x0011c27c MOV R14,R9 MOV R15,R8 MOV RBX,RDX MOV R13,RSI MOV RBP,RDI MOV RDI,RSI XOR ESI,ESI CALL 0x0011b410 TEST AL,AL JZ 0x0011c298 MOV ESI,dword ptr [R13] TEST ESI,ESI JNZ 0x0011c2b4 CMP dword ptr [RBX],0x0 JNZ 0x0011c2d0 CMP byte ptr [RSP + 0x48],0x0 JZ 0x0011c21c MOV RDI,RBP MOV RSI,R13 CALL 0x00117260 JMP 0x0011c233 LAB_0011c21c: LEA RCX,[R13 + 0x10] MOV RDI,RBP MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x0011b871 LAB_0011c233: TEST RAX,RAX JZ 0x0011c2ec MOV RCX,qword ptr [RSP + 0x40] MOVZX EDX,byte ptr [RSP + 0x48] MOV dword ptr [RAX + 0x54],R12D MOV dword ptr [RAX + 0x58],R15D MOV dword ptr [RAX + 0x5c],R14D MOV dword ptr [RAX + 0x60],ECX MOV dword ptr [RAX + 0x64],EDX MOV dword ptr [RAX + 0x50],0x4 MOV qword ptr [RAX + 0x98],R13 MOV qword ptr [RAX + 0xa0],RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011c27c: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14e7b2] MOV ESI,0x798 JMP 0x0011c306 LAB_0011c298: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14c980] MOV ESI,0x799 JMP 0x0011c306 LAB_0011c2b4: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14cd67] MOV ESI,0x79a JMP 0x0011c306 LAB_0011c2d0: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14e7d9] MOV ESI,0x79b JMP 0x0011c306 LAB_0011c2ec: LEA RDI,[0x14e6c5] LEA RDX,[0x14c5c1] LEA RCX,[0x14e7f2] MOV ESI,0x70 LAB_0011c306: XOR EAX,EAX CALL 0x00118ce0
void ggml_acc_impl(int8 param_1,int *param_2,int *param_3,int4 param_4, int4 param_5,int4 param_6,int4 param_7,byte param_8) { char cVar1; long lVar2; long lVar3; char *pcVar4; int8 uVar5; char *pcVar6; lVar2 = *(long *)(param_3 + 6) * *(long *)(param_3 + 4) * *(long *)(param_3 + 8) * *(long *)(param_3 + 10); lVar3 = *(long *)(param_2 + 6) * *(long *)(param_2 + 4) * *(long *)(param_2 + 8) * *(long *)(param_2 + 10); if (lVar2 - lVar3 == 0 || lVar2 < lVar3) { cVar1 = ggml_is_contiguous_n(param_2,0); if (cVar1 == '\0') { pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar4 = "ggml_is_contiguous(a)"; uVar5 = 0x799; } else if (*param_2 == 0) { if (*param_3 == 0) { if (param_8 == 0) { lVar2 = ggml_new_tensor_impl(param_1,0,4,param_2 + 4,0,0); } else { lVar2 = ggml_view_tensor(param_1,param_2); } if (lVar2 != 0) { *(int4 *)(lVar2 + 0x54) = param_4; *(int4 *)(lVar2 + 0x58) = param_5; *(int4 *)(lVar2 + 0x5c) = param_6; *(int4 *)(lVar2 + 0x60) = param_7; *(uint *)(lVar2 + 100) = (uint)param_8; *(int4 *)(lVar2 + 0x50) = 4; *(int **)(lVar2 + 0x98) = param_2; *(int **)(lVar2 + 0xa0) = param_3; return; } pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"; pcVar4 = "tensor != NULL"; uVar5 = 0x70; } else { pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c" ; pcVar4 = "b->type == GGML_TYPE_F32"; uVar5 = 0x79b; } } else { pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar4 = "a->type == GGML_TYPE_F32"; uVar5 = 0x79a; } } else { pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar4 = "ggml_nelements(b) <= ggml_nelements(a)"; uVar5 = 0x798; } /* WARNING: Subroutine does not return */ ggml_abort(pcVar6,uVar5,"GGML_ASSERT(%s) failed",pcVar4); }
45,096
ggml_acc_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_acc_impl( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, size_t nb1, size_t nb2, size_t nb3, size_t offset, bool inplace) { GGML_ASSERT(ggml_nelements(b) <= ggml_nelements(a)); GGML_ASSERT(ggml_is_contiguous(a)); GGML_ASSERT(a->type == GGML_TYPE_F32); GGML_ASSERT(b->type == GGML_TYPE_F32); struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_ACC; result->src[0] = a; result->src[1] = b; return result; }
O2
c
ggml_acc_impl: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r13 movq 0x18(%rdx), %rax imulq 0x10(%rdx), %rax imulq 0x20(%rdx), %rax imulq 0x28(%rdx), %rax movq 0x18(%rsi), %rcx imulq 0x10(%rsi), %rcx imulq 0x20(%rsi), %rcx imulq 0x28(%rsi), %rcx cmpq %rcx, %rax jg 0x21b56 movq %r9, %r15 movq %r8, %r12 movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %rbp movq %rsi, %rdi callq 0x1fb90 testb %al, %al je 0x21b72 cmpl $0x0, (%r14) jne 0x21b8e cmpl $0x0, (%rbx) jne 0x21baa movq %rbp, %rdi movq %r14, %rsi cmpb $0x0, 0x58(%rsp) je 0x21afe callq 0x1d410 jmp 0x21b03 callq 0x1e7a0 movq %rax, %rbp movq %rsp, %rsi movl %r13d, (%rsi) movl %r12d, 0x4(%rsi) movl %r15d, 0x8(%rsi) movq 0x50(%rsp), %rax movl %eax, 0xc(%rsi) movzbl 0x58(%rsp), %eax movl %eax, 0x10(%rsi) pushq $0x14 popq %rdx movq %rbp, %rdi callq 0x2221d movl $0x4, 0x50(%rbp) movq %r14, 0x98(%rbp) movq %rbx, 0xa0(%rbp) movq %rbp, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2ca26(%rip), %rdi # 0x4e583 leaq 0x2ca71(%rip), %rdx # 0x4e5d5 leaq 0x2ec5b(%rip), %rcx # 0x507c6 movl $0x798, %esi # imm = 0x798 jmp 0x21bc4 leaq 0x2ca0a(%rip), %rdi # 0x4e583 leaq 0x2ca55(%rip), %rdx # 0x4e5d5 leaq 0x2ce0d(%rip), %rcx # 0x4e994 movl $0x799, %esi # imm = 0x799 jmp 0x21bc4 leaq 0x2c9ee(%rip), %rdi # 0x4e583 leaq 0x2ca39(%rip), %rdx # 0x4e5d5 leaq 0x2d1d8(%rip), %rcx # 0x4ed7b movl $0x79a, %esi # imm = 0x79A jmp 0x21bc4 leaq 0x2c9d2(%rip), %rdi # 0x4e583 leaq 0x2ca1d(%rip), %rdx # 0x4e5d5 leaq 0x2ec2e(%rip), %rcx # 0x507ed movl $0x79b, %esi # imm = 0x79B xorl %eax, %eax callq 0x1f9b0
ggml_acc_impl: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r13, rcx mov rax, [rdx+18h] imul rax, [rdx+10h] imul rax, [rdx+20h] imul rax, [rdx+28h] mov rcx, [rsi+18h] imul rcx, [rsi+10h] imul rcx, [rsi+20h] imul rcx, [rsi+28h] cmp rax, rcx jg loc_21B56 mov r15, r9 mov r12, r8 mov rbx, rdx mov r14, rsi mov rbp, rdi mov rdi, rsi call _ggml_is_contiguous_0 test al, al jz loc_21B72 cmp dword ptr [r14], 0 jnz loc_21B8E cmp dword ptr [rbx], 0 jnz loc_21BAA mov rdi, rbp mov rsi, r14 cmp [rsp+48h+arg_8], 0 jz short loc_21AFE call _ggml_view_tensor jmp short loc_21B03 loc_21AFE: call _ggml_dup_tensor loc_21B03: mov rbp, rax mov rsi, rsp mov [rsi], r13d mov [rsi+4], r12d mov [rsi+8], r15d mov rax, [rsp+48h+arg_0] mov [rsi+0Ch], eax movzx eax, [rsp+48h+arg_8] mov [rsi+10h], eax push 14h pop rdx mov rdi, rbp call ggml_set_op_params mov dword ptr [rbp+50h], 4 mov [rbp+98h], r14 mov [rbp+0A0h], rbx mov rax, rbp add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_21B56: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlNelementsB; "ggml_nelements(b) <= ggml_nelements(a)" mov esi, 798h jmp short loc_21BC4 loc_21B72: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsContiguo_3; "ggml_is_contiguous(a)" mov esi, 799h jmp short loc_21BC4 loc_21B8E: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aATypeGgmlTypeF; "a->type == GGML_TYPE_F32" mov esi, 79Ah jmp short loc_21BC4 loc_21BAA: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aBTypeGgmlTypeF; "b->type == GGML_TYPE_F32" mov esi, 79Bh loc_21BC4: xor eax, eax call _ggml_abort
long long ggml_acc_impl( long long a1, long long a2, long long a3, int 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, unsigned __int8 a16) { int v17; // r15d int v18; // r12d long long v20; // rax long long v21; // rbp const char *v23; // rcx int v24; // esi _DWORD v25[18]; // [rsp+0h] [rbp-48h] BYREF if ( *(_QWORD *)(a3 + 40) * *(_QWORD *)(a3 + 32) * *(_QWORD *)(a3 + 16) * *(_QWORD *)(a3 + 24) > *(_QWORD *)(a2 + 40) * *(_QWORD *)(a2 + 32) * *(_QWORD *)(a2 + 16) * *(_QWORD *)(a2 + 24) ) { v23 = "ggml_nelements(b) <= ggml_nelements(a)"; v24 = 1944; goto LABEL_13; } v17 = a6; v18 = a5; if ( !(unsigned __int8)ggml_is_contiguous_0(a2) ) { v23 = "ggml_is_contiguous(a)"; v24 = 1945; goto LABEL_13; } if ( *(_DWORD *)a2 ) { v23 = "a->type == GGML_TYPE_F32"; v24 = 1946; goto LABEL_13; } if ( *(_DWORD *)a3 ) { v23 = "b->type == GGML_TYPE_F32"; v24 = 1947; LABEL_13: ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", v24, (long long)"GGML_ASSERT(%s) failed", (long long)v23, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v25[0]); } if ( a16 ) v20 = ggml_view_tensor(a1, a2, a7, a8, a9, a10, a11, a12, a13, a14); else v20 = ggml_dup_tensor(a1, (unsigned int *)a2); v21 = v20; v25[0] = a4; v25[1] = v18; v25[2] = v17; v25[3] = a15; v25[4] = a16; ((void ( *)(long long, _DWORD *, long long))ggml_set_op_params)(v20, v25, 20LL); *(_DWORD *)(v21 + 80) = 4; *(_QWORD *)(v21 + 152) = a2; *(_QWORD *)(v21 + 160) = a3; return v21; }
ggml_acc_impl: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R13,RCX MOV RAX,qword ptr [RDX + 0x18] IMUL RAX,qword ptr [RDX + 0x10] IMUL RAX,qword ptr [RDX + 0x20] IMUL RAX,qword ptr [RDX + 0x28] MOV RCX,qword ptr [RSI + 0x18] IMUL RCX,qword ptr [RSI + 0x10] IMUL RCX,qword ptr [RSI + 0x20] IMUL RCX,qword ptr [RSI + 0x28] CMP RAX,RCX JG 0x00121b56 MOV R15,R9 MOV R12,R8 MOV RBX,RDX MOV R14,RSI MOV RBP,RDI MOV RDI,RSI CALL 0x0011fb90 TEST AL,AL JZ 0x00121b72 CMP dword ptr [R14],0x0 JNZ 0x00121b8e CMP dword ptr [RBX],0x0 JNZ 0x00121baa MOV RDI,RBP MOV RSI,R14 CMP byte ptr [RSP + 0x58],0x0 JZ 0x00121afe CALL 0x0011d410 JMP 0x00121b03 LAB_00121afe: CALL 0x0011e7a0 LAB_00121b03: MOV RBP,RAX MOV RSI,RSP MOV dword ptr [RSI],R13D MOV dword ptr [RSI + 0x4],R12D MOV dword ptr [RSI + 0x8],R15D MOV RAX,qword ptr [RSP + 0x50] MOV dword ptr [RSI + 0xc],EAX MOVZX EAX,byte ptr [RSP + 0x58] MOV dword ptr [RSI + 0x10],EAX PUSH 0x14 POP RDX MOV RDI,RBP CALL 0x0012221d MOV dword ptr [RBP + 0x50],0x4 MOV qword ptr [RBP + 0x98],R14 MOV qword ptr [RBP + 0xa0],RBX MOV RAX,RBP ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00121b56: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x1507c6] MOV ESI,0x798 JMP 0x00121bc4 LAB_00121b72: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x14e994] MOV ESI,0x799 JMP 0x00121bc4 LAB_00121b8e: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x14ed7b] MOV ESI,0x79a JMP 0x00121bc4 LAB_00121baa: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x1507ed] MOV ESI,0x79b LAB_00121bc4: XOR EAX,EAX CALL 0x0011f9b0
long ggml_acc_impl(int8 param_1,int *param_2,int *param_3,int4 param_4, int4 param_5,int4 param_6,int4 param_7,byte param_8) { char cVar1; long lVar2; long lVar3; char *pcVar4; int8 uVar5; int4 local_48; int4 local_44; int4 local_40; int4 local_3c; uint local_38; lVar2 = *(long *)(param_3 + 6) * *(long *)(param_3 + 4) * *(long *)(param_3 + 8) * *(long *)(param_3 + 10); lVar3 = *(long *)(param_2 + 6) * *(long *)(param_2 + 4) * *(long *)(param_2 + 8) * *(long *)(param_2 + 10); if (lVar2 - lVar3 == 0 || lVar2 < lVar3) { cVar1 = ggml_is_contiguous_0(param_2); if (cVar1 == '\0') { pcVar4 = "ggml_is_contiguous(a)"; uVar5 = 0x799; } else if (*param_2 == 0) { if (*param_3 == 0) { if (param_8 == 0) { lVar2 = ggml_dup_tensor(param_1,param_2); } else { lVar2 = ggml_view_tensor(); } local_3c = param_7; local_38 = (uint)param_8; local_48 = param_4; local_44 = param_5; local_40 = param_6; ggml_set_op_params(lVar2,&local_48,0x14); *(int4 *)(lVar2 + 0x50) = 4; *(int **)(lVar2 + 0x98) = param_2; *(int **)(lVar2 + 0xa0) = param_3; return lVar2; } pcVar4 = "b->type == GGML_TYPE_F32"; uVar5 = 0x79b; } else { pcVar4 = "a->type == GGML_TYPE_F32"; uVar5 = 0x79a; } } else { pcVar4 = "ggml_nelements(b) <= ggml_nelements(a)"; uVar5 = 0x798; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", uVar5,"GGML_ASSERT(%s) failed",pcVar4); }
45,097
ggml_acc_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_acc_impl( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, size_t nb1, size_t nb2, size_t nb3, size_t offset, bool inplace) { GGML_ASSERT(ggml_nelements(b) <= ggml_nelements(a)); GGML_ASSERT(ggml_is_contiguous(a)); GGML_ASSERT(a->type == GGML_TYPE_F32); GGML_ASSERT(b->type == GGML_TYPE_F32); struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_ACC; result->src[0] = a; result->src[1] = b; return result; }
O3
c
ggml_acc_impl: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r12 movq 0x18(%rdx), %rax imulq 0x10(%rdx), %rax imulq 0x20(%rdx), %rax imulq 0x28(%rdx), %rax movq 0x18(%rsi), %rcx imulq 0x10(%rsi), %rcx imulq 0x20(%rsi), %rcx imulq 0x28(%rsi), %rcx cmpq %rcx, %rax jg 0x1afa0 movq %r9, %r14 movq %r8, %r15 movq %rdx, %rbx movq %rsi, %r13 movq %rdi, %rbp movq %rsi, %rdi xorl %esi, %esi callq 0x1a0b9 testb %al, %al je 0x1afbc cmpl $0x0, (%r13) jne 0x1afd8 cmpl $0x0, (%rbx) jne 0x1aff4 cmpb $0x0, 0x48(%rsp) je 0x1af3e movq %rbp, %rdi movq %r13, %rsi callq 0x16260 jmp 0x1af57 leaq 0x10(%r13), %rcx movq %rbp, %rdi xorl %esi, %esi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1a57f testq %rax, %rax je 0x1b010 movq 0x40(%rsp), %rcx movzbl 0x48(%rsp), %edx movl %r12d, 0x54(%rax) movl %r15d, 0x58(%rax) movl %r14d, 0x5c(%rax) movl %ecx, 0x60(%rax) movl %edx, 0x64(%rax) movl $0x4, 0x50(%rax) movq %r13, 0x98(%rax) movq %rbx, 0xa0(%rax) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x3166c(%rip), %rdi # 0x4c613 leaq 0x316b7(%rip), %rdx # 0x4c665 leaq 0x338a1(%rip), %rcx # 0x4e856 movl $0x798, %esi # imm = 0x798 jmp 0x1b02a leaq 0x31650(%rip), %rdi # 0x4c613 leaq 0x3169b(%rip), %rdx # 0x4c665 leaq 0x31a53(%rip), %rcx # 0x4ca24 movl $0x799, %esi # imm = 0x799 jmp 0x1b02a leaq 0x31634(%rip), %rdi # 0x4c613 leaq 0x3167f(%rip), %rdx # 0x4c665 leaq 0x31e1e(%rip), %rcx # 0x4ce0b movl $0x79a, %esi # imm = 0x79A jmp 0x1b02a leaq 0x31618(%rip), %rdi # 0x4c613 leaq 0x31663(%rip), %rdx # 0x4c665 leaq 0x33874(%rip), %rcx # 0x4e87d movl $0x79b, %esi # imm = 0x79B jmp 0x1b02a leaq 0x33752(%rip), %rdi # 0x4e769 leaq 0x31647(%rip), %rdx # 0x4c665 leaq 0x33871(%rip), %rcx # 0x4e896 movl $0x70, %esi xorl %eax, %eax callq 0x17cd0
ggml_acc_impl: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r12, rcx mov rax, [rdx+18h] imul rax, [rdx+10h] imul rax, [rdx+20h] imul rax, [rdx+28h] mov rcx, [rsi+18h] imul rcx, [rsi+10h] imul rcx, [rsi+20h] imul rcx, [rsi+28h] cmp rax, rcx jg loc_1AFA0 mov r14, r9 mov r15, r8 mov rbx, rdx mov r13, rsi mov rbp, rdi mov rdi, rsi xor esi, esi call ggml_is_contiguous_n test al, al jz loc_1AFBC cmp dword ptr [r13+0], 0 jnz loc_1AFD8 cmp dword ptr [rbx], 0 jnz loc_1AFF4 cmp [rsp+38h+arg_8], 0 jz short loc_1AF3E mov rdi, rbp mov rsi, r13 call _ggml_view_tensor jmp short loc_1AF57 loc_1AF3E: lea rcx, [r13+10h] mov rdi, rbp xor esi, esi mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl loc_1AF57: test rax, rax jz loc_1B010 mov rcx, [rsp+38h+arg_0] movzx edx, [rsp+38h+arg_8] mov [rax+54h], r12d mov [rax+58h], r15d mov [rax+5Ch], r14d mov [rax+60h], ecx mov [rax+64h], edx mov dword ptr [rax+50h], 4 mov [rax+98h], r13 mov [rax+0A0h], rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1AFA0: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlNelementsB; "ggml_nelements(b) <= ggml_nelements(a)" mov esi, 798h jmp short loc_1B02A loc_1AFBC: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsContiguo_3; "ggml_is_contiguous(a)" mov esi, 799h jmp short loc_1B02A loc_1AFD8: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aATypeGgmlTypeF; "a->type == GGML_TYPE_F32" mov esi, 79Ah jmp short loc_1B02A loc_1AFF4: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aBTypeGgmlTypeF; "b->type == GGML_TYPE_F32" mov esi, 79Bh jmp short loc_1B02A loc_1B010: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorNull; "tensor != NULL" mov esi, 70h ; 'p' loc_1B02A: xor eax, eax call _ggml_abort
long long ggml_acc_impl( long long a1, long long a2, long long a3, int a4, int a5, int a6, double a7, long long a8, unsigned __int8 a9) { long long result; // rax const char *v14; // rdi const char *v15; // rcx int v16; // esi if ( *(_QWORD *)(a3 + 40) * *(_QWORD *)(a3 + 32) * *(_QWORD *)(a3 + 16) * *(_QWORD *)(a3 + 24) > *(_QWORD *)(a2 + 40) * *(_QWORD *)(a2 + 32) * *(_QWORD *)(a2 + 16) * *(_QWORD *)(a2 + 24) ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v15 = "ggml_nelements(b) <= ggml_nelements(a)"; v16 = 1944; goto LABEL_15; } if ( !ggml_is_contiguous_n((unsigned int *)a2, 0) ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v15 = "ggml_is_contiguous(a)"; v16 = 1945; goto LABEL_15; } if ( *(_DWORD *)a2 ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v15 = "a->type == GGML_TYPE_F32"; v16 = 1946; goto LABEL_15; } if ( *(_DWORD *)a3 ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v15 = "b->type == GGML_TYPE_F32"; v16 = 1947; goto LABEL_15; } if ( a9 ) result = ggml_view_tensor(a1, a2, a7); else result = ggml_new_tensor_impl(a1, 0, 4u, (long long *)(a2 + 16), 0LL, 0LL, a7); if ( !result ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"; v15 = "tensor != NULL"; v16 = 112; LABEL_15: ggml_abort((_DWORD)v14, v16, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v15, a5, a6); } *(_DWORD *)(result + 84) = a4; *(_DWORD *)(result + 88) = a5; *(_DWORD *)(result + 92) = a6; *(_DWORD *)(result + 96) = a8; *(_DWORD *)(result + 100) = a9; *(_DWORD *)(result + 80) = 4; *(_QWORD *)(result + 152) = a2; *(_QWORD *)(result + 160) = a3; return result; }
ggml_acc_impl: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,RCX MOV RAX,qword ptr [RDX + 0x18] IMUL RAX,qword ptr [RDX + 0x10] IMUL RAX,qword ptr [RDX + 0x20] IMUL RAX,qword ptr [RDX + 0x28] MOV RCX,qword ptr [RSI + 0x18] IMUL RCX,qword ptr [RSI + 0x10] IMUL RCX,qword ptr [RSI + 0x20] IMUL RCX,qword ptr [RSI + 0x28] CMP RAX,RCX JG 0x0011afa0 MOV R14,R9 MOV R15,R8 MOV RBX,RDX MOV R13,RSI MOV RBP,RDI MOV RDI,RSI XOR ESI,ESI CALL 0x0011a0b9 TEST AL,AL JZ 0x0011afbc CMP dword ptr [R13],0x0 JNZ 0x0011afd8 CMP dword ptr [RBX],0x0 JNZ 0x0011aff4 CMP byte ptr [RSP + 0x48],0x0 JZ 0x0011af3e MOV RDI,RBP MOV RSI,R13 CALL 0x00116260 JMP 0x0011af57 LAB_0011af3e: LEA RCX,[R13 + 0x10] MOV RDI,RBP XOR ESI,ESI MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x0011a57f LAB_0011af57: TEST RAX,RAX JZ 0x0011b010 MOV RCX,qword ptr [RSP + 0x40] MOVZX EDX,byte ptr [RSP + 0x48] MOV dword ptr [RAX + 0x54],R12D MOV dword ptr [RAX + 0x58],R15D MOV dword ptr [RAX + 0x5c],R14D MOV dword ptr [RAX + 0x60],ECX MOV dword ptr [RAX + 0x64],EDX MOV dword ptr [RAX + 0x50],0x4 MOV qword ptr [RAX + 0x98],R13 MOV qword ptr [RAX + 0xa0],RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011afa0: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14e856] MOV ESI,0x798 JMP 0x0011b02a LAB_0011afbc: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14ca24] MOV ESI,0x799 JMP 0x0011b02a LAB_0011afd8: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14ce0b] MOV ESI,0x79a JMP 0x0011b02a LAB_0011aff4: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14e87d] MOV ESI,0x79b JMP 0x0011b02a LAB_0011b010: LEA RDI,[0x14e769] LEA RDX,[0x14c665] LEA RCX,[0x14e896] MOV ESI,0x70 LAB_0011b02a: XOR EAX,EAX CALL 0x00117cd0
void ggml_acc_impl(int8 param_1,int *param_2,int *param_3,int4 param_4, int4 param_5,int4 param_6,int4 param_7,byte param_8) { char cVar1; long lVar2; long lVar3; char *pcVar4; int8 uVar5; char *pcVar6; lVar2 = *(long *)(param_3 + 6) * *(long *)(param_3 + 4) * *(long *)(param_3 + 8) * *(long *)(param_3 + 10); lVar3 = *(long *)(param_2 + 6) * *(long *)(param_2 + 4) * *(long *)(param_2 + 8) * *(long *)(param_2 + 10); if (lVar2 - lVar3 == 0 || lVar2 < lVar3) { cVar1 = ggml_is_contiguous_n(param_2,0); if (cVar1 == '\0') { pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar4 = "ggml_is_contiguous(a)"; uVar5 = 0x799; } else if (*param_2 == 0) { if (*param_3 == 0) { if (param_8 == 0) { lVar2 = ggml_new_tensor_impl(param_1,0,4,param_2 + 4,0,0); } else { lVar2 = ggml_view_tensor(param_1,param_2); } if (lVar2 != 0) { *(int4 *)(lVar2 + 0x54) = param_4; *(int4 *)(lVar2 + 0x58) = param_5; *(int4 *)(lVar2 + 0x5c) = param_6; *(int4 *)(lVar2 + 0x60) = param_7; *(uint *)(lVar2 + 100) = (uint)param_8; *(int4 *)(lVar2 + 0x50) = 4; *(int **)(lVar2 + 0x98) = param_2; *(int **)(lVar2 + 0xa0) = param_3; return; } pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"; pcVar4 = "tensor != NULL"; uVar5 = 0x70; } else { pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c" ; pcVar4 = "b->type == GGML_TYPE_F32"; uVar5 = 0x79b; } } else { pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar4 = "a->type == GGML_TYPE_F32"; uVar5 = 0x79a; } } else { pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar4 = "ggml_nelements(b) <= ggml_nelements(a)"; uVar5 = 0x798; } /* WARNING: Subroutine does not return */ ggml_abort(pcVar6,uVar5,"GGML_ASSERT(%s) failed",pcVar4); }
45,098
inline_mysql_file_open
eloqsql/include/mysql/psi/mysql_file.h
static inline File inline_mysql_file_open( #ifdef HAVE_PSI_FILE_INTERFACE PSI_file_key key, const char *src_file, uint src_line, #endif const char *filename, int flags, myf myFlags) { File file; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_OPEN, filename, &locker); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line); file= my_open(filename, flags, myFlags); PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file); return file; } #endif file= my_open(filename, flags, myFlags); return file; }
O0
c
inline_mysql_file_open: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq %r9, -0x30(%rbp) leaq 0x1a31f8(%rip), %rax # 0x1ce8d0 movq (%rax), %rax movq 0x148(%rax), %rax movl -0x8(%rbp), %esi movq -0x20(%rbp), %rcx leaq -0x88(%rbp), %rdi movl $0x2, %edx leaq -0x40(%rbp), %r8 callq *%rax movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x2b772 leaq 0x1a31aa(%rip), %rax # 0x1ce8d0 movq (%rax), %rax movq 0x1f0(%rax), %rax movq -0x40(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx callq *%rax movq -0x20(%rbp), %rdi movl -0x24(%rbp), %esi movq -0x30(%rbp), %rdx callq 0x2fa10 movl %eax, -0x34(%rbp) leaq 0x1a3179(%rip), %rax # 0x1ce8d0 movq (%rax), %rax movq 0x200(%rax), %rax movq -0x40(%rbp), %rdi movl -0x34(%rbp), %esi callq *%rax movl -0x34(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x2b78b movq -0x20(%rbp), %rdi movl -0x24(%rbp), %esi movq -0x30(%rbp), %rdx callq 0x2fa10 movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x90, %rsp popq %rbp retq nopw (%rax,%rax)
inline_mysql_file_open: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_8], edi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov [rbp+var_30], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+148h] mov esi, [rbp+var_8] mov rcx, [rbp+var_20] lea rdi, [rbp+var_88] mov edx, 2 lea r8, [rbp+var_40] call rax mov [rbp+var_40], rax cmp [rbp+var_40], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_2B772 lea rax, PSI_server mov rax, [rax] mov rax, [rax+1F0h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_10] mov edx, [rbp+var_14] call rax mov rdi, [rbp+var_20] mov esi, [rbp+var_24] mov rdx, [rbp+var_30] call my_open mov [rbp+var_34], eax lea rax, PSI_server mov rax, [rax] mov rax, [rax+200h] mov rdi, [rbp+var_40] mov esi, [rbp+var_34] call rax mov eax, [rbp+var_34] mov [rbp+var_4], eax jmp short loc_2B78B loc_2B772: mov rdi, [rbp+var_20] mov esi, [rbp+var_24] mov rdx, [rbp+var_30] call my_open mov [rbp+var_34], eax mov eax, [rbp+var_34] mov [rbp+var_4], eax loc_2B78B: mov eax, [rbp+var_4] add rsp, 90h pop rbp retn
long long inline_mysql_file_open( unsigned int a1, long long a2, unsigned int a3, long long a4, unsigned int a5, long long a6) { _BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF long long v8; // [rsp+50h] [rbp-40h] BYREF unsigned int v9; // [rsp+5Ch] [rbp-34h] long long v10; // [rsp+60h] [rbp-30h] unsigned int v11; // [rsp+6Ch] [rbp-24h] long long v12; // [rsp+70h] [rbp-20h] unsigned int v13; // [rsp+7Ch] [rbp-14h] long long v14; // [rsp+80h] [rbp-10h] unsigned int v15; // [rsp+88h] [rbp-8h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v10 = a6; v8 = (*((long long ( **)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[0] + 41))( v7, a1, 2LL, a4, &v8); if ( v8 ) { (*((void ( **)(long long, long long, _QWORD))PSI_server[0] + 62))(v8, v14, v13); v9 = my_open(v12, v11, v10); (*((void ( **)(long long, _QWORD))PSI_server[0] + 64))(v8, v9); } else { return (unsigned int)my_open(v12, v11, v10); } return v9; }
inline_mysql_file_open: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV qword ptr [RBP + -0x20],RCX MOV dword ptr [RBP + -0x24],R8D MOV qword ptr [RBP + -0x30],R9 LEA RAX,[0x2ce8d0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x148] MOV ESI,dword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x20] LEA RDI,[RBP + -0x88] MOV EDX,0x2 LEA R8,[RBP + -0x40] CALL RAX MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0012b772 LEA RAX,[0x2ce8d0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1f0] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] CALL RAX MOV RDI,qword ptr [RBP + -0x20] MOV ESI,dword ptr [RBP + -0x24] MOV RDX,qword ptr [RBP + -0x30] CALL 0x0012fa10 MOV dword ptr [RBP + -0x34],EAX LEA RAX,[0x2ce8d0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x200] MOV RDI,qword ptr [RBP + -0x40] MOV ESI,dword ptr [RBP + -0x34] CALL RAX MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x4],EAX JMP 0x0012b78b LAB_0012b772: MOV RDI,qword ptr [RBP + -0x20] MOV ESI,dword ptr [RBP + -0x24] MOV RDX,qword ptr [RBP + -0x30] CALL 0x0012fa10 MOV dword ptr [RBP + -0x34],EAX MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x4],EAX LAB_0012b78b: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x90 POP RBP RET
int4 inline_mysql_file_open (int4 param_1,int8 param_2,int4 param_3,int8 param_4, int4 param_5,int8 param_6) { int1 local_90 [72]; long local_48; int4 local_3c; int8 local_38; int4 local_2c; int8 local_28; int4 local_1c; int8 local_18; int4 local_10; int4 local_c; local_38 = param_6; local_2c = param_5; local_28 = param_4; local_1c = param_3; local_18 = param_2; local_10 = param_1; local_48 = (**(code **)(PSI_server + 0x148))(local_90,param_1,2,param_4,&local_48); if (local_48 == 0) { local_c = my_open(local_28,local_2c,local_38); } else { (**(code **)(PSI_server + 0x1f0))(local_48,local_18,local_1c); local_3c = my_open(local_28,local_2c,local_38); (**(code **)(PSI_server + 0x200))(local_48,local_3c); local_c = local_3c; } return local_c; }
45,099
getopt_double_limit_value
eloqsql/mysys/my_getopt.c
double getopt_double_limit_value(double num, const struct my_option *optp, my_bool *fix) { my_bool adjusted= FALSE; double old= num; double min, max; DBUG_ENTER("getopt_double_limit_value"); max= getopt_ulonglong2double(optp->max_value); min= getopt_ulonglong2double(optp->min_value); if (max && num > max) { num= max; adjusted= TRUE; } if (num < min) { num= min; adjusted= TRUE; } if (fix) *fix= adjusted; else if (adjusted) my_getopt_error_reporter(WARNING_LEVEL, "option '%s': value %g adjusted to %g", optp->name, old, num); DBUG_RETURN(num); }
O0
c
getopt_double_limit_value: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movsd %xmm0, -0x8(%rbp) movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movb $0x0, -0x19(%rbp) movsd -0x8(%rbp), %xmm0 movsd %xmm0, -0x28(%rbp) movq -0x10(%rbp), %rax movq 0x50(%rax), %rdi callq 0x79600 movsd %xmm0, -0x38(%rbp) movq -0x10(%rbp), %rax movq 0x48(%rax), %rdi callq 0x79600 movsd %xmm0, -0x30(%rbp) movsd -0x38(%rbp), %xmm0 xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne 0x7b909 jp 0x7b909 jmp 0x7b923 movsd -0x8(%rbp), %xmm0 ucomisd -0x38(%rbp), %xmm0 jbe 0x7b923 movsd -0x38(%rbp), %xmm0 movsd %xmm0, -0x8(%rbp) movb $0x1, -0x19(%rbp) movsd -0x8(%rbp), %xmm1 movsd -0x30(%rbp), %xmm0 ucomisd %xmm1, %xmm0 jbe 0x7b941 movsd -0x30(%rbp), %xmm0 movsd %xmm0, -0x8(%rbp) movb $0x1, -0x19(%rbp) cmpq $0x0, -0x18(%rbp) je 0x7b953 movb -0x19(%rbp), %cl movq -0x18(%rbp), %rax movb %cl, (%rax) jmp 0x7b986 cmpb $0x0, -0x19(%rbp) je 0x7b984 leaq 0x1b9a80(%rip), %rax # 0x2353e0 movq (%rax), %rcx movq -0x10(%rbp), %rax movq (%rax), %rdx movsd -0x28(%rbp), %xmm0 movsd -0x8(%rbp), %xmm1 movl $0x1, %edi leaq 0x551d4(%rip), %rsi # 0xd0b54 movb $0x2, %al callq *%rcx jmp 0x7b986 jmp 0x7b988 movsd -0x8(%rbp), %xmm0 movsd %xmm0, -0x40(%rbp) movsd -0x40(%rbp), %xmm0 addq $0x40, %rsp popq %rbp retq nopl (%rax)
getopt_double_limit_value: push rbp mov rbp, rsp sub rsp, 40h movsd [rbp+var_8], xmm0 mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_19], 0 movsd xmm0, [rbp+var_8] movsd [rbp+var_28], xmm0 mov rax, [rbp+var_10] mov rdi, [rax+50h] call getopt_ulonglong2double movsd [rbp+var_38], xmm0 mov rax, [rbp+var_10] mov rdi, [rax+48h] call getopt_ulonglong2double movsd [rbp+var_30], xmm0 movsd xmm0, [rbp+var_38] xorps xmm1, xmm1 ucomisd xmm0, xmm1 jnz short loc_7B909 jp short loc_7B909 jmp short loc_7B923 loc_7B909: movsd xmm0, [rbp+var_8] ucomisd xmm0, [rbp+var_38] jbe short loc_7B923 movsd xmm0, [rbp+var_38] movsd [rbp+var_8], xmm0 mov [rbp+var_19], 1 loc_7B923: movsd xmm1, [rbp+var_8] movsd xmm0, [rbp+var_30] ucomisd xmm0, xmm1 jbe short loc_7B941 movsd xmm0, [rbp+var_30] movsd [rbp+var_8], xmm0 mov [rbp+var_19], 1 loc_7B941: cmp [rbp+var_18], 0 jz short loc_7B953 mov cl, [rbp+var_19] mov rax, [rbp+var_18] mov [rax], cl jmp short loc_7B986 loc_7B953: cmp [rbp+var_19], 0 jz short loc_7B984 lea rax, my_getopt_error_reporter mov rcx, [rax] mov rax, [rbp+var_10] mov rdx, [rax] movsd xmm0, [rbp+var_28] movsd xmm1, [rbp+var_8] mov edi, 1 lea rsi, aOptionSValueGA; "option '%s': value %g adjusted to %g" mov al, 2 call rcx loc_7B984: jmp short $+2 loc_7B986: jmp short $+2 loc_7B988: movsd xmm0, [rbp+var_8] movsd [rbp+var_40], xmm0 movsd xmm0, [rbp+var_40] add rsp, 40h pop rbp retn
double getopt_double_limit_value(_QWORD *a1, char *a2, double a3) { double v4; // [rsp+8h] [rbp-38h] double v5; // [rsp+10h] [rbp-30h] char v7; // [rsp+27h] [rbp-19h] double v8; // [rsp+38h] [rbp-8h] v8 = a3; v7 = 0; v4 = getopt_ulonglong2double(a1[10]); v5 = getopt_ulonglong2double(a1[9]); if ( v4 != 0.0 && v8 > v4 ) { v8 = v4; v7 = 1; } if ( v5 > v8 ) { v8 = v5; v7 = 1; } if ( a2 ) { *a2 = v7; } else if ( v7 ) { my_getopt_error_reporter(1, (long long)"option '%s': value %g adjusted to %g", *a1, a3, v8); } return v8; }
getopt_double_limit_value: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOVSD qword ptr [RBP + -0x8],XMM0 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV byte ptr [RBP + -0x19],0x0 MOVSD XMM0,qword ptr [RBP + -0x8] MOVSD qword ptr [RBP + -0x28],XMM0 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x50] CALL 0x00179600 MOVSD qword ptr [RBP + -0x38],XMM0 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x48] CALL 0x00179600 MOVSD qword ptr [RBP + -0x30],XMM0 MOVSD XMM0,qword ptr [RBP + -0x38] XORPS XMM1,XMM1 UCOMISD XMM0,XMM1 JNZ 0x0017b909 JP 0x0017b909 JMP 0x0017b923 LAB_0017b909: MOVSD XMM0,qword ptr [RBP + -0x8] UCOMISD XMM0,qword ptr [RBP + -0x38] JBE 0x0017b923 MOVSD XMM0,qword ptr [RBP + -0x38] MOVSD qword ptr [RBP + -0x8],XMM0 MOV byte ptr [RBP + -0x19],0x1 LAB_0017b923: MOVSD XMM1,qword ptr [RBP + -0x8] MOVSD XMM0,qword ptr [RBP + -0x30] UCOMISD XMM0,XMM1 JBE 0x0017b941 MOVSD XMM0,qword ptr [RBP + -0x30] MOVSD qword ptr [RBP + -0x8],XMM0 MOV byte ptr [RBP + -0x19],0x1 LAB_0017b941: CMP qword ptr [RBP + -0x18],0x0 JZ 0x0017b953 MOV CL,byte ptr [RBP + -0x19] MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX],CL JMP 0x0017b986 LAB_0017b953: CMP byte ptr [RBP + -0x19],0x0 JZ 0x0017b984 LEA RAX,[0x3353e0] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX] MOVSD XMM0,qword ptr [RBP + -0x28] MOVSD XMM1,qword ptr [RBP + -0x8] MOV EDI,0x1 LEA RSI,[0x1d0b54] MOV AL,0x2 CALL RCX LAB_0017b984: JMP 0x0017b986 LAB_0017b986: JMP 0x0017b988 LAB_0017b988: MOVSD XMM0,qword ptr [RBP + -0x8] MOVSD qword ptr [RBP + -0x40],XMM0 MOVSD XMM0,qword ptr [RBP + -0x40] ADD RSP,0x40 POP RBP RET
double getopt_double_limit_value(double param_1,int8 *param_2,char *param_3) { double dVar1; double dVar2; char local_21; double local_10; local_21 = '\0'; dVar1 = (double)getopt_ulonglong2double(param_2[10]); dVar2 = (double)getopt_ulonglong2double(param_2[9]); if (((dVar1 != 0.0) || (local_10 = param_1, NAN(dVar1))) && (local_10 = param_1, dVar1 < param_1)) { local_21 = '\x01'; local_10 = dVar1; } if (local_10 < dVar2) { local_21 = '\x01'; local_10 = dVar2; } if (param_3 == (char *)0x0) { if (local_21 != '\0') { (*(code *)my_getopt_error_reporter) (param_1,local_10,1,"option \'%s\': value %g adjusted to %g",*param_2); } } else { *param_3 = local_21; } return local_10; }