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
29,300
minja::Parser::parseValueExpression()::'lambda'()::operator()() const
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseValueExpression() { auto parseValue = [&]() -> std::shared_ptr<Expression> { auto location = get_location(); auto constant = parseConstant(); if (constant) return std::make_shared<LiteralExpr>(location, *constant); static std::regex null_regex(R"(null\b)"); if (!consumeToken(null_regex).empty()) return std::make_shared<LiteralExpr>(location, Value()); auto identifier = parseIdentifier(); if (identifier) return identifier; auto braced = parseBracedExpressionOrArray(); if (braced) return braced; auto array = parseArray(); if (array) return array; auto dictionary = parseDictionary(); if (dictionary) return dictionary; throw std::runtime_error("Expected value expression"); }; auto value = parseValue(); while (it != end && consumeSpaces() && peekSymbols({ "[", "." })) { if (!consumeToken("[").empty()) { std::shared_ptr<Expression> index; if (!consumeToken(":").empty()) { auto slice_end = parseExpression(); index = std::make_shared<SliceExpr>(slice_end->location, nullptr, std::move(slice_end)); } else { auto slice_start = parseExpression(); if (!consumeToken(":").empty()) { consumeSpaces(); if (peekSymbols({ "]" })) { index = std::make_shared<SliceExpr>(slice_start->location, std::move(slice_start), nullptr); } else { auto slice_end = parseExpression(); index = std::make_shared<SliceExpr>(slice_start->location, std::move(slice_start), std::move(slice_end)); } } else { index = std::move(slice_start); } } if (!index) throw std::runtime_error("Empty index in subscript"); if (consumeToken("]").empty()) throw std::runtime_error("Expected closing bracket in subscript"); value = std::make_shared<SubscriptExpr>(value->location, std::move(value), std::move(index)); } else if (!consumeToken(".").empty()) { auto identifier = parseIdentifier(); if (!identifier) throw std::runtime_error("Expected identifier in subscript"); consumeSpaces(); if (peekSymbols({ "(" })) { auto callParams = parseCallArgs(); value = std::make_shared<MethodCallExpr>(identifier->location, std::move(value), std::move(identifier), std::move(callParams)); } else { auto key = std::make_shared<LiteralExpr>(identifier->location, Value(identifier->get_name())); value = std::make_shared<SubscriptExpr>(identifier->location, std::move(value), std::move(key)); } } consumeSpaces(); } if (peekSymbols({ "(" })) { auto location = get_location(); auto callParams = parseCallArgs(); value = std::make_shared<CallExpr>(location, std::move(value), std::move(callParams)); } return value; }
O2
cpp
minja::Parser::parseValueExpression()::'lambda'()::operator()() const: pushq %r15 pushq %r14 pushq %rbx subq $0xa0, %rsp movq %rdi, %rbx movq (%rsi), %r14 leaq 0x38(%rsp), %rdi movq %r14, %rsi callq 0x6009c leaq 0x28(%rsp), %rdi movq %r14, %rsi callq 0x65ca0 movq 0x28(%rsp), %rdx testq %rdx, %rdx je 0x653d7 leaq 0x50(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x65f38 leaq 0x58(%rsp), %rdi movaps -0x8(%rdi), %xmm0 andq $0x0, (%rdi) movups %xmm0, (%rbx) andq $0x0, -0x8(%rdi) callq 0x4f578 jmp 0x65453 leaq 0x97d8a(%rip), %rax # 0xfd168 movb (%rax), %al testb %al, %al je 0x65538 leaq 0x97d59(%rip), %rdx # 0xfd148 leaq 0x50(%rsp), %rdi pushq $0x1 popq %rcx movq %r14, %rsi callq 0x604c0 leaq 0x50(%rsp), %rdi movq 0x8(%rdi), %r15 callq 0x241b8 testq %r15, %r15 je 0x65477 leaq 0x50(%rsp), %r14 movq %r14, %rdi callq 0x65f5a movq %rsp, %rdi leaq 0x38(%rsp), %rsi movq %r14, %rdx callq 0x65bda leaq 0x8(%rsp), %rdi movaps -0x8(%rdi), %xmm0 andq $0x0, (%rdi) movups %xmm0, (%rbx) andq $0x0, -0x8(%rdi) callq 0x4f578 leaq 0x50(%rsp), %rdi callq 0x62c1e leaq 0x30(%rsp), %rdi callq 0x4f578 leaq 0x40(%rsp), %rdi callq 0x4f578 movq %rbx, %rax addq $0xa0, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x50(%rsp), %rdi movq %r14, %rsi callq 0x60c34 movq 0x50(%rsp), %rax testq %rax, %rax je 0x654ab movq %rax, (%rbx) movq 0x58(%rsp), %rax andq $0x0, 0x58(%rsp) movq %rax, 0x8(%rbx) andq $0x0, 0x50(%rsp) jmp 0x6552e movq %rsp, %rdi movq %r14, %rsi callq 0x65f7a movq (%rsp), %rax testq %rax, %rax je 0x654d8 movq %rax, (%rbx) movq 0x8(%rsp), %rax andq $0x0, 0x8(%rsp) movq %rax, 0x8(%rbx) andq $0x0, (%rsp) jmp 0x65524 leaq 0x18(%rsp), %rdi movq %r14, %rsi callq 0x6634a movq 0x18(%rsp), %rax testq %rax, %rax je 0x65509 movq %rax, (%rbx) movq 0x20(%rsp), %rax andq $0x0, 0x20(%rsp) movq %rax, 0x8(%rbx) andq $0x0, 0x18(%rsp) jmp 0x6551a movq %rbx, %rdi movq %r14, %rsi callq 0x66718 cmpq $0x0, (%rbx) je 0x6558d leaq 0x20(%rsp), %rdi callq 0x4f578 leaq 0x8(%rsp), %rdi callq 0x4f578 leaq 0x58(%rsp), %rdi jmp 0x653d0 leaq 0x97c29(%rip), %rdi # 0xfd168 callq 0x23ff0 testl %eax, %eax je 0x653e8 leaq 0x97bf5(%rip), %rdi # 0xfd148 leaq 0x4db5c(%rip), %rsi # 0xb30b6 pushq $0x10 popq %rdx callq 0x460ca leaq -0x1f279(%rip), %rdi # 0x462f0 leaq 0x97bd8(%rip), %rsi # 0xfd148 leaq 0x97371(%rip), %rdx # 0xfc8e8 callq 0x237b0 leaq 0x97be5(%rip), %rdi # 0xfd168 callq 0x235d0 jmp 0x653e8 pushq $0x10 popq %rdi callq 0x23450 movq %rax, %r15 leaq 0x4db1e(%rip), %rsi # 0xb30bd movq %rax, %rdi callq 0x23310 movq 0x96a42(%rip), %rsi # 0xfbff0 movq 0x969a3(%rip), %rdx # 0xfbf58 movq %r15, %rdi callq 0x23ef0 movq %rax, %r14 leaq 0x97ba1(%rip), %rdi # 0xfd168 callq 0x235c0 jmp 0x6562f movq %rax, %r14 jmp 0x655de movq %rax, %r14 movq %r15, %rdi callq 0x23680 addq $0x8, %rbx movq %rbx, %rdi callq 0x4f578 jmp 0x655ef movq %rax, %r14 leaq 0x20(%rsp), %rdi callq 0x4f578 jmp 0x655fe movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x4f578 jmp 0x6560d movq %rax, %r14 leaq 0x58(%rsp), %rdi callq 0x4f578 jmp 0x6562f jmp 0x6562c movq %rax, %r14 leaq 0x50(%rsp), %rdi callq 0x62c1e jmp 0x6562f jmp 0x6562c movq %rax, %r14 leaq 0x30(%rsp), %rdi callq 0x4f578 jmp 0x6563e movq %rax, %r14 leaq 0x40(%rsp), %rdi callq 0x4f578 movq %r14, %rdi callq 0x23f80
_ZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEv: push r15 push r14 push rbx sub rsp, 0A0h mov rbx, rdi mov r14, [rsi] lea rdi, [rsp+0B8h+var_80]; this mov rsi, r14 call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void) lea rdi, [rsp+0B8h+var_90]; this mov rsi, r14 call _ZN5minja6Parser13parseConstantEv; minja::Parser::parseConstant(void) mov rdx, [rsp+0B8h+var_90] test rdx, rdx jz short loc_653D7 lea rdi, [rsp+0B8h+var_68] lea rsi, [rsp+0B8h+var_80] call _ZSt11make_sharedIN5minja11LiteralExprEJRNS0_8LocationERNS0_5ValueEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::LiteralExpr,minja::Location &,minja::Value &>(minja::Location &,minja::Value &) lea rdi, [rsp+0B8h+var_60] movaps xmm0, xmmword ptr [rdi-8] and qword ptr [rdi], 0 movups xmmword ptr [rbx], xmm0 and qword ptr [rdi-8], 0 loc_653D0: call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_65453 loc_653D7: lea rax, _ZGVZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; `guard variable for'minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex mov al, [rax] test al, al jz loc_65538 loc_653E8: lea rdx, _ZZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex lea rdi, [rsp+0B8h+var_68] push 1 pop rcx mov rsi, r14 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) lea rdi, [rsp+0B8h+var_68]; void * mov r15, [rdi+8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test r15, r15 jz short loc_65477 lea r14, [rsp+0B8h+var_68] mov rdi, r14; this call _ZN5minja5ValueC2Ev; minja::Value::Value(void) mov rdi, rsp lea rsi, [rsp+0B8h+var_80] mov rdx, r14 call _ZSt11make_sharedIN5minja11LiteralExprEJRNS0_8LocationENS0_5ValueEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::LiteralExpr,minja::Location &,minja::Value>(minja::Location &,minja::Value &&) lea rdi, [rsp+0B8h+var_B0] movaps xmm0, xmmword ptr [rdi-8] and qword ptr [rdi], 0 movups xmmword ptr [rbx], xmm0 and qword ptr [rdi-8], 0 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+0B8h+var_68]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_65453: lea rdi, [rsp+0B8h+var_88] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+0B8h+var_78] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rax, rbx add rsp, 0A0h pop rbx pop r14 pop r15 retn loc_65477: lea rdi, [rsp+0B8h+var_68]; this mov rsi, r14 call _ZN5minja6Parser15parseIdentifierEv; minja::Parser::parseIdentifier(void) mov rax, [rsp+0B8h+var_68] test rax, rax jz short loc_654AB mov [rbx], rax mov rax, [rsp+0B8h+var_60] and [rsp+0B8h+var_60], 0 mov [rbx+8], rax and [rsp+0B8h+var_68], 0 jmp loc_6552E loc_654AB: mov rdi, rsp; this mov rsi, r14 call _ZN5minja6Parser28parseBracedExpressionOrArrayEv; minja::Parser::parseBracedExpressionOrArray(void) mov rax, [rsp+0B8h+var_B8] test rax, rax jz short loc_654D8 mov [rbx], rax mov rax, [rsp+0B8h+var_B0] and [rsp+0B8h+var_B0], 0 mov [rbx+8], rax and [rsp+0B8h+var_B8], 0 jmp short loc_65524 loc_654D8: lea rdi, [rsp+0B8h+var_A0]; this mov rsi, r14 call _ZN5minja6Parser10parseArrayEv; minja::Parser::parseArray(void) mov rax, [rsp+0B8h+var_A0] test rax, rax jz short loc_65509 mov [rbx], rax mov rax, [rsp+0B8h+var_98] and [rsp+0B8h+var_98], 0 mov [rbx+8], rax and [rsp+0B8h+var_A0], 0 jmp short loc_6551A loc_65509: mov rdi, rbx; this mov rsi, r14 call _ZN5minja6Parser15parseDictionaryEv; minja::Parser::parseDictionary(void) cmp qword ptr [rbx], 0 jz short loc_6558D loc_6551A: lea rdi, [rsp+0B8h+var_98] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_65524: lea rdi, [rsp+0B8h+var_B0] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_6552E: lea rdi, [rsp+0B8h+var_60] jmp loc_653D0 loc_65538: lea rdi, _ZGVZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_653E8 lea rdi, _ZZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex lea rsi, aNullB; "null\\b" push 10h pop rdx 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, _ZZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; __guard * call ___cxa_guard_release jmp loc_653E8 loc_6558D: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedValueE; "Expected value 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:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw mov r14, rax lea rdi, _ZGVZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_6562F mov r14, rax jmp short loc_655DE mov r14, rax mov rdi, r15; void * call ___cxa_free_exception loc_655DE: add rbx, 8 mov rdi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_655EF mov r14, rax loc_655EF: lea rdi, [rsp+0B8h+var_98] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_655FE mov r14, rax loc_655FE: lea rdi, [rsp+0B8h+var_B0] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_6560D mov r14, rax loc_6560D: lea rdi, [rsp+0B8h+var_60] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_6562F jmp short loc_6562C mov r14, rax lea rdi, [rsp+0B8h+var_68]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_6562F jmp short $+2 loc_6562C: mov r14, rax loc_6562F: lea rdi, [rsp+0B8h+var_88] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_6563E mov r14, rax loc_6563E: lea rdi, [rsp+0B8h+var_78] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, r14 call __Unwind_Resume
minja::Parser * minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator()( minja::Parser *this, _QWORD **a2) { _QWORD *v2; // r14 __int128 v3; // xmm0 long long v4; // r15 __int128 v5; // xmm0 long long v7; // rax long long v8; // rax long long v9; // rax std::runtime_error *exception; // r15 __int128 v11; // [rsp+0h] [rbp-B8h] BYREF long long v12; // [rsp+18h] [rbp-A0h] BYREF long long v13; // [rsp+20h] [rbp-98h] BYREF long long v14; // [rsp+28h] [rbp-90h] BYREF long long v15; // [rsp+30h] [rbp-88h] BYREF _BYTE v16[8]; // [rsp+38h] [rbp-80h] BYREF long long v17; // [rsp+40h] [rbp-78h] BYREF _OWORD v18[6]; // [rsp+50h] [rbp-68h] BYREF v2 = *a2; minja::Parser::get_location((minja::Parser *)v16, *a2); minja::Parser::parseConstant((minja::Parser *)&v14); if ( v14 ) { std::make_shared<minja::LiteralExpr,minja::Location &,minja::Value &>(v18, v16); v3 = v18[0]; *((_QWORD *)&v18[0] + 1) = 0LL; *(_OWORD *)this = v3; *(_QWORD *)&v18[0] = 0LL; } else { if ( !(_BYTE)`guard variable for'minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11], (long long)"null\\b", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11]); } minja::Parser::consumeToken( v18, (long long)v2, (long long)&minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11], 1u); v4 = *((_QWORD *)&v18[0] + 1); std::string::~string(v18); if ( v4 ) { minja::Value::Value((minja::Value *)v18); std::make_shared<minja::LiteralExpr,minja::Location &,minja::Value>(&v11, v16, v18); v5 = v11; *((_QWORD *)&v11 + 1) = 0LL; *(_OWORD *)this = v5; *(_QWORD *)&v11 = 0LL; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v11 + 1); minja::Value::~Value((minja::Value *)v18); goto LABEL_7; } minja::Parser::parseIdentifier((minja::Parser *)v18, v2); if ( *(_QWORD *)&v18[0] ) { *(_QWORD *)this = *(_QWORD *)&v18[0]; v7 = *((_QWORD *)&v18[0] + 1); *((_QWORD *)&v18[0] + 1) = 0LL; *((_QWORD *)this + 1) = v7; *(_QWORD *)&v18[0] = 0LL; } else { minja::Parser::parseBracedExpressionOrArray((minja::Parser *)&v11); if ( (_QWORD)v11 ) { *(_QWORD *)this = v11; v8 = *((_QWORD *)&v11 + 1); *((_QWORD *)&v11 + 1) = 0LL; *((_QWORD *)this + 1) = v8; *(_QWORD *)&v11 = 0LL; } else { minja::Parser::parseArray((minja::Parser *)&v12); if ( v12 ) { *(_QWORD *)this = v12; v9 = v13; v13 = 0LL; *((_QWORD *)this + 1) = v9; v12 = 0LL; } else { minja::Parser::parseDictionary(this); if ( !*(_QWORD *)this ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected value expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } } std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v13); } std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v11 + 1); } } std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)v18 + 1); LABEL_7: std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v15); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v17); return this; }
operator(): PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xa0 MOV RBX,RDI MOV R14,qword ptr [RSI] LEA RDI,[RSP + 0x38] MOV RSI,R14 CALL 0x0016009c LAB_00165395: LEA RDI,[RSP + 0x28] MOV RSI,R14 CALL 0x00165ca0 MOV RDX,qword ptr [RSP + 0x28] TEST RDX,RDX JZ 0x001653d7 LAB_001653ac: LEA RDI,[RSP + 0x50] LEA RSI,[RSP + 0x38] CALL 0x00165f38 LEA RDI,[RSP + 0x58] MOVAPS XMM0,xmmword ptr [RDI + -0x8] AND qword ptr [RDI],0x0 MOVUPS xmmword ptr [RBX],XMM0 AND qword ptr [RDI + -0x8],0x0 LAB_001653d0: CALL 0x0014f578 JMP 0x00165453 LAB_001653d7: LEA RAX,[0x1fd168] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x00165538 LAB_001653e8: LEA RDX,[0x1fd148] LEA RDI,[RSP + 0x50] PUSH 0x1 POP RCX MOV RSI,R14 CALL 0x001604c0 LEA RDI,[RSP + 0x50] MOV R15,qword ptr [RDI + 0x8] CALL 0x001241b8 TEST R15,R15 JZ 0x00165477 LEA R14,[RSP + 0x50] MOV RDI,R14 CALL 0x00165f5a LAB_0016541f: MOV RDI,RSP LEA RSI,[RSP + 0x38] MOV RDX,R14 CALL 0x00165bda LEA RDI,[RSP + 0x8] MOVAPS XMM0,xmmword ptr [RDI + -0x8] AND qword ptr [RDI],0x0 MOVUPS xmmword ptr [RBX],XMM0 AND qword ptr [RDI + -0x8],0x0 CALL 0x0014f578 LEA RDI,[RSP + 0x50] CALL 0x00162c1e LAB_00165453: LEA RDI,[RSP + 0x30] CALL 0x0014f578 LEA RDI,[RSP + 0x40] CALL 0x0014f578 MOV RAX,RBX ADD RSP,0xa0 POP RBX POP R14 POP R15 RET LAB_00165477: LEA RDI,[RSP + 0x50] MOV RSI,R14 CALL 0x00160c34 MOV RAX,qword ptr [RSP + 0x50] TEST RAX,RAX JZ 0x001654ab MOV qword ptr [RBX],RAX MOV RAX,qword ptr [RSP + 0x58] AND qword ptr [RSP + 0x58],0x0 MOV qword ptr [RBX + 0x8],RAX AND qword ptr [RSP + 0x50],0x0 JMP 0x0016552e LAB_001654ab: MOV RDI,RSP MOV RSI,R14 CALL 0x00165f7a MOV RAX,qword ptr [RSP] TEST RAX,RAX JZ 0x001654d8 MOV qword ptr [RBX],RAX MOV RAX,qword ptr [RSP + 0x8] AND qword ptr [RSP + 0x8],0x0 MOV qword ptr [RBX + 0x8],RAX AND qword ptr [RSP],0x0 JMP 0x00165524 LAB_001654d8: LEA RDI,[RSP + 0x18] MOV RSI,R14 CALL 0x0016634a MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x00165509 MOV qword ptr [RBX],RAX MOV RAX,qword ptr [RSP + 0x20] AND qword ptr [RSP + 0x20],0x0 MOV qword ptr [RBX + 0x8],RAX AND qword ptr [RSP + 0x18],0x0 JMP 0x0016551a LAB_00165509: MOV RDI,RBX MOV RSI,R14 CALL 0x00166718 CMP qword ptr [RBX],0x0 JZ 0x0016558d LAB_0016551a: LEA RDI,[RSP + 0x20] CALL 0x0014f578 LAB_00165524: LEA RDI,[RSP + 0x8] CALL 0x0014f578 LAB_0016552e: LEA RDI,[RSP + 0x58] JMP 0x001653d0 LAB_00165538: LEA RDI,[0x1fd168] CALL 0x00123ff0 TEST EAX,EAX JZ 0x001653e8 LAB_0016554c: LEA RDI,[0x1fd148] LEA RSI,[0x1b30b6] PUSH 0x10 POP RDX CALL 0x001460ca LAB_00165562: LEA RDI,[0x1462f0] LEA RSI,[0x1fd148] LEA RDX,[0x1fc8e8] CALL 0x001237b0 LEA RDI,[0x1fd168] CALL 0x001235d0 JMP 0x001653e8 LAB_0016558d: PUSH 0x10 POP RDI CALL 0x00123450 MOV R15,RAX LAB_00165598: LEA RSI,[0x1b30bd] MOV RDI,RAX CALL 0x00123310 LAB_001655a7: MOV RSI,qword ptr [0x001fbff0] MOV RDX,qword ptr [0x001fbf58] MOV RDI,R15 CALL 0x00123ef0
/* minja::Parser::parseValueExpression()::{lambda()#1}::TEMPNAMEPLACEHOLDERVALUE() const */ _lambda___1_ * __thiscall minja::Parser::parseValueExpression()::{lambda()#1}::operator()(_lambda___1_ *this) { int8 uVar1; long lVar2; int iVar3; runtime_error *this_00; int8 *in_RSI; long local_b8; int8 auStack_b0 [2]; long local_a0; int8 local_98; long local_90; __shared_count<(__gnu_cxx::_Lock_policy)2> local_88 [8]; Value local_80 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_78 [16]; long local_68; long alStack_60 [9]; uVar1 = *in_RSI; get_location(); /* try { // try from 00165395 to 001653a1 has its CatchHandler @ 0016563b */ parseConstant(); if (local_90 == 0) { if ((operator()()::null_regex_abi_cxx11_ == '\0') && (iVar3 = __cxa_guard_acquire(&operator()()::null_regex_abi_cxx11_), iVar3 != 0)) { /* try { // try from 0016554c to 00165561 has its CatchHandler @ 001655bd */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) operator()()::null_regex_abi_cxx11_,"null\\b",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, operator()()::null_regex_abi_cxx11_,&__dso_handle); __cxa_guard_release(&operator()()::null_regex_abi_cxx11_); } /* try { // try from 001653e8 to 001653fe has its CatchHandler @ 0016562a */ consumeToken(&local_68,uVar1,operator()()::null_regex_abi_cxx11_,1); lVar2 = alStack_60[0]; std::__cxx11::string::~string((string *)&local_68); if (lVar2 != 0) { Value::Value((Value *)&local_68); /* try { // try from 0016541f to 0016542e has its CatchHandler @ 0016561b */ std::make_shared<minja::LiteralExpr,minja::Location&,minja::Value> ((Location *)&local_b8,local_80); uVar1 = auStack_b0[0]; auStack_b0[0] = 0; *(long *)this = local_b8; *(int8 *)(this + 8) = uVar1; local_b8 = 0; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_b0); Value::~Value((Value *)&local_68); goto LAB_00165453; } /* try { // try from 00165477 to 00165483 has its CatchHandler @ 00165619 */ parseIdentifier(); lVar2 = alStack_60[0]; if (local_68 == 0) { /* try { // try from 001654ab to 001654b5 has its CatchHandler @ 0016560a */ parseBracedExpressionOrArray(); uVar1 = auStack_b0[0]; if (local_b8 == 0) { /* try { // try from 001654d8 to 001654e4 has its CatchHandler @ 001655fb */ parseArray(); uVar1 = local_98; if (local_a0 == 0) { /* try { // try from 00165509 to 00165513 has its CatchHandler @ 001655ec */ parseDictionary(); if (*(long *)this == 0) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00165598 to 001655a6 has its CatchHandler @ 001655d3 */ std::runtime_error::runtime_error(this_00,"Expected value expression"); /* try { // try from 001655a7 to 001655bc has its CatchHandler @ 001655ce */ /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001fbff0,PTR__runtime_error_001fbf58); } } else { *(long *)this = local_a0; local_98 = 0; *(int8 *)(this + 8) = uVar1; local_a0 = 0; } std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_98); } else { *(long *)this = local_b8; auStack_b0[0] = 0; *(int8 *)(this + 8) = uVar1; local_b8 = 0; } std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_b0); } else { *(long *)this = local_68; alStack_60[0] = 0; *(long *)(this + 8) = lVar2; local_68 = 0; } } else { /* try { // try from 001653ac to 001653ba has its CatchHandler @ 0016562c */ std::make_shared<minja::LiteralExpr,minja::Location&,minja::Value&> ((Location *)&local_68,local_80); lVar2 = alStack_60[0]; alStack_60[0] = 0; *(long *)this = local_68; *(long *)(this + 8) = lVar2; local_68 = 0; } std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_60); LAB_00165453: std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_88); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_78); return this; }
29,301
my_error_register
eloqsql/mysys/my_error.c
int my_error_register(const char** (*get_errmsgs)(int error), uint first, uint last) { struct my_err_head *meh_p; struct my_err_head **search_meh_pp; /* Allocate a new header structure. */ if (! (meh_p= (struct my_err_head*) my_malloc(key_memory_my_err_head, sizeof(struct my_err_head), MYF(MY_WME)))) return 1; meh_p->get_errmsgs= get_errmsgs; meh_p->meh_first= first; meh_p->meh_last= last; /* Search for the right position in the list. */ for (search_meh_pp= &my_errmsgs_list; *search_meh_pp; search_meh_pp= &(*search_meh_pp)->meh_next) { if ((*search_meh_pp)->meh_last > first) break; } /* Error numbers must be unique. No overlapping is allowed. */ if (*search_meh_pp && ((*search_meh_pp)->meh_first <= last)) { my_free(meh_p); return 1; } /* Insert header into the chain. */ meh_p->meh_next= *search_meh_pp; *search_meh_pp= meh_p; return 0; }
O3
c
my_error_register: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %r14d movl %esi, %r15d movq %rdi, %r12 leaq 0x33bb42(%rip), %rax # 0x366a30 movl (%rax), %edi movl $0x18, %esi movl $0x10, %edx callq 0x2b599 movl $0x1, %ebx testq %rax, %rax je 0x2af45 movq %r12, 0x8(%rax) movl %r15d, 0x10(%rax) movl %r14d, 0x14(%rax) leaq 0x2c4a5c(%rip), %rcx # 0x2ef978 movq %rcx, %rdx movq (%rcx), %rcx testq %rcx, %rcx je 0x2af33 cmpl %r15d, 0x14(%rcx) jbe 0x2af1c cmpl %r14d, 0x10(%rcx) jbe 0x2af3d movq %rcx, (%rax) movq %rax, (%rdx) xorl %ebx, %ebx jmp 0x2af45 movq %rax, %rdi callq 0x2b7c6 movl %ebx, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
my_error_register: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14d, edx mov r15d, esi mov r12, rdi lea rax, key_memory_my_err_head mov edi, [rax] mov esi, 18h mov edx, 10h call my_malloc mov ebx, 1 test rax, rax jz short loc_2AF45 mov [rax+8], r12 mov [rax+10h], r15d mov [rax+14h], r14d lea rcx, my_errmsgs_list loc_2AF1C: mov rdx, rcx mov rcx, [rcx] test rcx, rcx jz short loc_2AF33 cmp [rcx+14h], r15d jbe short loc_2AF1C cmp [rcx+10h], r14d jbe short loc_2AF3D loc_2AF33: mov [rax], rcx mov [rdx], rax xor ebx, ebx jmp short loc_2AF45 loc_2AF3D: mov rdi, rax call my_free loc_2AF45: mov eax, ebx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long my_error_register(long long a1, unsigned int a2, unsigned int a3) { long long v4; // rax unsigned int v5; // ebx long long **v6; // rcx _QWORD *v7; // rdx v4 = my_malloc(key_memory_my_err_head, 24LL, 16LL); v5 = 1; if ( v4 ) { *(_QWORD *)(v4 + 8) = a1; *(_DWORD *)(v4 + 16) = a2; *(_DWORD *)(v4 + 20) = a3; v6 = &my_errmsgs_list; do { v7 = v6; v6 = (long long **)*v6; if ( !v6 ) goto LABEL_6; } while ( *((_DWORD *)v6 + 5) <= a2 ); if ( *((_DWORD *)v6 + 4) > a3 ) { LABEL_6: *(_QWORD *)v4 = v6; *v7 = v4; return 0; } my_free(v4); } return v5; }
my_error_register: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14D,EDX MOV R15D,ESI MOV R12,RDI LEA RAX,[0x466a30] MOV EDI,dword ptr [RAX] MOV ESI,0x18 MOV EDX,0x10 CALL 0x0012b599 MOV EBX,0x1 TEST RAX,RAX JZ 0x0012af45 MOV qword ptr [RAX + 0x8],R12 MOV dword ptr [RAX + 0x10],R15D MOV dword ptr [RAX + 0x14],R14D LEA RCX,[0x3ef978] LAB_0012af1c: MOV RDX,RCX MOV RCX,qword ptr [RCX] TEST RCX,RCX JZ 0x0012af33 CMP dword ptr [RCX + 0x14],R15D JBE 0x0012af1c CMP dword ptr [RCX + 0x10],R14D JBE 0x0012af3d LAB_0012af33: MOV qword ptr [RAX],RCX MOV qword ptr [RDX],RAX XOR EBX,EBX JMP 0x0012af45 LAB_0012af3d: MOV RDI,RAX CALL 0x0012b7c6 LAB_0012af45: MOV EAX,EBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
int8 my_error_register(long param_1,uint param_2,uint param_3) { int **ppuVar1; long *plVar2; int **ppuVar3; int8 uVar4; plVar2 = (long *)my_malloc(key_memory_my_err_head,0x18,0x10); uVar4 = 1; if (plVar2 != (long *)0x0) { plVar2[1] = param_1; *(uint *)(plVar2 + 2) = param_2; *(uint *)((long)plVar2 + 0x14) = param_3; ppuVar1 = &my_errmsgs_list; do { ppuVar3 = ppuVar1; ppuVar1 = (int **)*ppuVar3; if (ppuVar1 == (int **)0x0) goto LAB_0012af33; } while (*(uint *)((long)ppuVar1 + 0x14) <= param_2); if (param_3 < *(uint *)(ppuVar1 + 2)) { LAB_0012af33: *plVar2 = (long)ppuVar1; *ppuVar3 = (int *)plVar2; uVar4 = 0; } else { my_free(plVar2); } } return uVar4; }
29,302
main
corpus-core[P]colibri-stateless/src/cli/proofer.c
int main(int argc, char* argv[]) { if (argc < 2) { fprintf(stderr, "Usage: %s [options] <method> <params> > proof.ssz\n" "\n" " -c <chain_id> : selected chain (default MAINNET = 1)\n" " -t <testname> : generates test files in test/data/<testname>\n" " -x <cachedir> : caches all reguests in the cache directory\n" " -o <outputfile> : ssz file with the proof ( default to stdout )\n" " -i : include code in the proof\n" "\n", argv[0]); exit(EXIT_FAILURE); } char* method = NULL; buffer_t buffer = {0}; char* outputfile = NULL; uint32_t flags = 0; chain_id_t chain_id = C4_CHAIN_MAINNET; buffer_add_chars(&buffer, "["); for (int i = 1; i < argc; i++) { if (*argv[i] == '-') { for (char* c = argv[i] + 1; *c; c++) { switch (*c) { case 'c': chain_id = atoi(argv[++i]); break; case 'o': outputfile = argv[++i]; break; case 'i': flags |= C4_PROOFER_FLAG_INCLUDE_CODE; break; #ifdef TEST #ifdef USE_CURL case 't': curl_set_test_dir(argv[++i]); break; case 'x': curl_set_cache_dir(argv[++i]); break; #endif #endif default: fprintf(stderr, "Unknown option: %c\n", *c); exit(EXIT_FAILURE); } } } else if (method == NULL) method = argv[i]; else { if (buffer.data.len > 1) buffer_add_chars(&buffer, ","); if (argv[i][0] == '{' || argv[i][0] == '[' || strcmp(argv[i], "true") == 0 || strcmp(argv[i], "false") == 0) buffer_add_chars(&buffer, argv[i]); else bprintf(&buffer, "\"%s\"", argv[i]); } } buffer_add_chars(&buffer, "]"); proofer_ctx_t* ctx = c4_proofer_create(method, (char*) buffer.data.data, chain_id, flags); while (true) { switch (c4_proofer_execute(ctx)) { case C4_SUCCESS: if (outputfile) bytes_write(ctx->proof, fopen(outputfile, "wb"), true); else fwrite(ctx->proof.data, 1, ctx->proof.len, stdout); fflush(stdout); exit(EXIT_SUCCESS); case C4_ERROR: fprintf(stderr, "Failed: %s\n", ctx->state.error); exit(EXIT_FAILURE); case C4_PENDING: #ifdef USE_CURL curl_fetch_all(&ctx->state); #else fprintf(stderr, "CURL not enabled\n"); exit(EXIT_FAILURE); #endif break; } } c4_proofer_free(ctx); }
O0
c
main: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movl $0x0, -0x4(%rbp) movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) cmpl $0x2, -0x8(%rbp) jge 0x5475 movq 0x69b8d(%rip), %rax # 0x6efe0 movq (%rax), %rdi movq -0x10(%rbp), %rax movq (%rax), %rdx leaq 0x4cba0(%rip), %rsi # 0x52004 movb $0x0, %al callq 0x50d0 movl $0x1, %edi callq 0x51e0 movq $0x0, -0x18(%rbp) leaq -0x30(%rbp), %rdi xorl %esi, %esi movl $0x18, %edx callq 0x5110 movq $0x0, -0x38(%rbp) movl $0x0, -0x3c(%rbp) movl $0x1, -0x40(%rbp) leaq -0x30(%rbp), %rdi leaq 0x4ccb4(%rip), %rsi # 0x52162 callq 0x190f0 movl $0x1, -0x44(%rbp) movl -0x44(%rbp), %eax cmpl -0x8(%rbp), %eax jge 0x5685 movq -0x10(%rbp), %rax movslq -0x44(%rbp), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %eax cmpl $0x2d, %eax jne 0x55a8 movq -0x10(%rbp), %rax movslq -0x44(%rbp), %rcx movq (%rax,%rcx,8), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax cmpb $0x0, (%rax) je 0x55a3 movq -0x50(%rbp), %rax movsbl (%rax), %eax movl %eax, -0x5c(%rbp) subl $0x63, %eax je 0x5524 jmp 0x5510 movl -0x5c(%rbp), %eax subl $0x69, %eax je 0x555c jmp 0x551a movl -0x5c(%rbp), %eax subl $0x6f, %eax je 0x5542 jmp 0x5567 movq -0x10(%rbp), %rax movl -0x44(%rbp), %ecx addl $0x1, %ecx movl %ecx, -0x44(%rbp) movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq 0x5120 movl %eax, -0x40(%rbp) jmp 0x5590 movq -0x10(%rbp), %rax movl -0x44(%rbp), %ecx addl $0x1, %ecx movl %ecx, -0x44(%rbp) movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movq %rax, -0x38(%rbp) jmp 0x5590 movl -0x3c(%rbp), %eax orl $0x1, %eax movl %eax, -0x3c(%rbp) jmp 0x5590 movq 0x69a72(%rip), %rax # 0x6efe0 movq (%rax), %rdi movq -0x50(%rbp), %rax movsbl (%rax), %edx leaq 0x4cbe5(%rip), %rsi # 0x52164 movb $0x0, %al callq 0x50d0 movl $0x1, %edi callq 0x51e0 jmp 0x5592 movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0x54f2 jmp 0x5675 cmpq $0x0, -0x18(%rbp) jne 0x55c4 movq -0x10(%rbp), %rax movslq -0x44(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -0x18(%rbp) jmp 0x5673 cmpl $0x1, -0x30(%rbp) jbe 0x55da leaq -0x30(%rbp), %rdi leaq 0x4d7a1(%rip), %rsi # 0x52d76 callq 0x190f0 movq -0x10(%rbp), %rax movslq -0x44(%rbp), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %eax cmpl $0x7b, %eax je 0x563c movq -0x10(%rbp), %rax movslq -0x44(%rbp), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %eax cmpl $0x5b, %eax je 0x563c movq -0x10(%rbp), %rax movslq -0x44(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq 0x4cb63(%rip), %rsi # 0x52178 callq 0x5250 cmpl $0x0, %eax je 0x563c movq -0x10(%rbp), %rax movslq -0x44(%rbp), %rcx movq (%rax,%rcx,8), %rdi leaq 0x4cb4b(%rip), %rsi # 0x5217d callq 0x5250 cmpl $0x0, %eax jne 0x5653 movq -0x10(%rbp), %rax movslq -0x44(%rbp), %rcx movq (%rax,%rcx,8), %rsi leaq -0x30(%rbp), %rdi callq 0x190f0 jmp 0x5671 movq -0x10(%rbp), %rax movslq -0x44(%rbp), %rcx movq (%rax,%rcx,8), %rdx leaq -0x30(%rbp), %rdi leaq 0x4cb19(%rip), %rsi # 0x52183 movb $0x0, %al callq 0x19740 jmp 0x5673 jmp 0x5675 jmp 0x5677 movl -0x44(%rbp), %eax addl $0x1, %eax movl %eax, -0x44(%rbp) jmp 0x54ba leaq -0x30(%rbp), %rdi leaq 0x4d7ad(%rip), %rsi # 0x52e3d callq 0x190f0 movq -0x18(%rbp), %rdi movq -0x28(%rbp), %rsi movl -0x40(%rbp), %edx movl -0x3c(%rbp), %ecx callq 0x6820 movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rdi callq 0x69d0 movl %eax, %ecx movl %ecx, -0x60(%rbp) subl $-0x1, %eax je 0x5753 jmp 0x56c5 movl -0x60(%rbp), %eax testl %eax, %eax je 0x56df jmp 0x56ce movl -0x60(%rbp), %eax subl $0x2, %eax je 0x577d jmp 0x578a cmpq $0x0, -0x38(%rbp) je 0x5718 movq -0x58(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x38(%rbp), %rdi leaq 0x4ca8f(%rip), %rsi # 0x52188 callq 0x5320 movq %rax, %rdx movq -0x68(%rbp), %rax movl 0x20(%rax), %edi movq 0x28(%rax), %rsi movl $0x1, %ecx callq 0x192d0 jmp 0x573d movq -0x58(%rbp), %rax movq 0x28(%rax), %rdi movq -0x58(%rbp), %rax movl 0x20(%rax), %eax movl %eax, %edx movq 0x698a8(%rip), %rax # 0x6efd8 movq (%rax), %rcx movl $0x1, %esi callq 0x5300 movq 0x69894(%rip), %rax # 0x6efd8 movq (%rax), %rdi callq 0x5170 xorl %edi, %edi callq 0x51e0 movq 0x69886(%rip), %rax # 0x6efe0 movq (%rax), %rdi movq -0x58(%rbp), %rax movq 0x40(%rax), %rdx leaq 0x4ca1f(%rip), %rsi # 0x5218b movb $0x0, %al callq 0x50d0 movl $0x1, %edi callq 0x51e0 movq -0x58(%rbp), %rdi addq $0x38, %rdi callq 0x59d0 jmp 0x56ac nop
main: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_4], 0 mov [rbp+var_8], edi mov [rbp+var_10], rsi cmp [rbp+var_8], 2 jge short loc_5475 mov rax, cs:stderr_ptr mov rdi, [rax] mov rax, [rbp+var_10] mov rdx, [rax] lea rsi, aUsageSOptionsM; "Usage: %s [options] <method> <params> >"... mov al, 0 call _fprintf mov edi, 1 call _exit loc_5475: mov [rbp+var_18], 0 lea rdi, [rbp+var_30] xor esi, esi mov edx, 18h call _memset mov [rbp+var_38], 0 mov [rbp+var_3C], 0 mov [rbp+var_40], 1 lea rdi, [rbp+var_30] lea rsi, asc_52162; "[" call buffer_add_chars mov [rbp+var_44], 1 loc_54BA: mov eax, [rbp+var_44] cmp eax, [rbp+var_8] jge loc_5685 mov rax, [rbp+var_10] movsxd rcx, [rbp+var_44] mov rax, [rax+rcx*8] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jnz loc_55A8 mov rax, [rbp+var_10] movsxd rcx, [rbp+var_44] mov rax, [rax+rcx*8] add rax, 1 mov [rbp+var_50], rax loc_54F2: mov rax, [rbp+var_50] cmp byte ptr [rax], 0 jz loc_55A3 mov rax, [rbp+var_50] movsx eax, byte ptr [rax] mov [rbp+var_5C], eax sub eax, 63h ; 'c' jz short loc_5524 jmp short $+2 loc_5510: mov eax, [rbp+var_5C] sub eax, 69h ; 'i' jz short loc_555C jmp short $+2 loc_551A: mov eax, [rbp+var_5C] sub eax, 6Fh ; 'o' jz short loc_5542 jmp short loc_5567 loc_5524: mov rax, [rbp+var_10] mov ecx, [rbp+var_44] add ecx, 1 mov [rbp+var_44], ecx movsxd rcx, ecx mov rdi, [rax+rcx*8] call _atoi mov [rbp+var_40], eax jmp short loc_5590 loc_5542: mov rax, [rbp+var_10] mov ecx, [rbp+var_44] add ecx, 1 mov [rbp+var_44], ecx movsxd rcx, ecx mov rax, [rax+rcx*8] mov [rbp+var_38], rax jmp short loc_5590 loc_555C: mov eax, [rbp+var_3C] or eax, 1 mov [rbp+var_3C], eax jmp short loc_5590 loc_5567: mov rax, cs:stderr_ptr mov rdi, [rax] mov rax, [rbp+var_50] movsx edx, byte ptr [rax] lea rsi, aUnknownOptionC; "Unknown option: %c\n" mov al, 0 call _fprintf mov edi, 1 call _exit loc_5590: jmp short $+2 loc_5592: mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp loc_54F2 loc_55A3: jmp loc_5675 loc_55A8: cmp [rbp+var_18], 0 jnz short loc_55C4 mov rax, [rbp+var_10] movsxd rcx, [rbp+var_44] mov rax, [rax+rcx*8] mov [rbp+var_18], rax jmp loc_5673 loc_55C4: cmp [rbp+var_30], 1 jbe short loc_55DA lea rdi, [rbp+var_30] lea rsi, aJ_0+3; "," call buffer_add_chars loc_55DA: mov rax, [rbp+var_10] movsxd rcx, [rbp+var_44] mov rax, [rax+rcx*8] movsx eax, byte ptr [rax] cmp eax, 7Bh ; '{' jz short loc_563C mov rax, [rbp+var_10] movsxd rcx, [rbp+var_44] mov rax, [rax+rcx*8] movsx eax, byte ptr [rax] cmp eax, 5Bh ; '[' jz short loc_563C mov rax, [rbp+var_10] movsxd rcx, [rbp+var_44] mov rdi, [rax+rcx*8] lea rsi, aTrue; "true" call _strcmp cmp eax, 0 jz short loc_563C mov rax, [rbp+var_10] movsxd rcx, [rbp+var_44] mov rdi, [rax+rcx*8] lea rsi, aFalse; "false" call _strcmp cmp eax, 0 jnz short loc_5653 loc_563C: mov rax, [rbp+var_10] movsxd rcx, [rbp+var_44] mov rsi, [rax+rcx*8] lea rdi, [rbp+var_30] call buffer_add_chars jmp short loc_5671 loc_5653: mov rax, [rbp+var_10] movsxd rcx, [rbp+var_44] mov rdx, [rax+rcx*8] lea rdi, [rbp+var_30] lea rsi, aS; "\"%s\"" mov al, 0 call bprintf loc_5671: jmp short $+2 loc_5673: jmp short $+2 loc_5675: jmp short $+2 loc_5677: mov eax, [rbp+var_44] add eax, 1 mov [rbp+var_44], eax jmp loc_54BA loc_5685: lea rdi, [rbp+var_30] lea rsi, aJLastest+0Dh; "]" call buffer_add_chars mov rdi, [rbp+var_18] mov rsi, [rbp+var_28] mov edx, [rbp+var_40] mov ecx, [rbp+var_3C] call c4_proofer_create mov [rbp+var_58], rax loc_56AC: mov rdi, [rbp+var_58] call c4_proofer_execute mov ecx, eax mov [rbp+var_60], ecx sub eax, 0FFFFFFFFh jz loc_5753 jmp short $+2 loc_56C5: mov eax, [rbp+var_60] test eax, eax jz short loc_56DF jmp short $+2 loc_56CE: mov eax, [rbp+var_60] sub eax, 2 jz loc_577D jmp loc_578A loc_56DF: cmp [rbp+var_38], 0 jz short loc_5718 mov rax, [rbp+var_58] mov [rbp+var_68], rax mov rdi, [rbp+var_38] lea rsi, aWb; "wb" call _fopen mov rdx, rax mov rax, [rbp+var_68] mov edi, [rax+20h] mov rsi, [rax+28h] mov ecx, 1 call bytes_write jmp short loc_573D loc_5718: mov rax, [rbp+var_58] mov rdi, [rax+28h] mov rax, [rbp+var_58] mov eax, [rax+20h] mov edx, eax mov rax, cs:stdout_ptr mov rcx, [rax] mov esi, 1 call _fwrite loc_573D: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush xor edi, edi call _exit loc_5753: mov rax, cs:stderr_ptr mov rdi, [rax] mov rax, [rbp+var_58] mov rdx, [rax+40h] lea rsi, aFailedS; "Failed: %s\n" mov al, 0 call _fprintf mov edi, 1 call _exit loc_577D: mov rdi, [rbp+var_58] add rdi, 38h ; '8' call curl_fetch_all loc_578A: jmp loc_56AC
int __noreturn main(int argc, const char **argv, const char **envp) { int v3; // r8d int v4; // r9d int v5; // eax long long v6; // rdx char v7; // [rsp+0h] [rbp-70h] int v8; // [rsp+14h] [rbp-5Ch] long long v9; // [rsp+18h] [rbp-58h] _BYTE *j; // [rsp+20h] [rbp-50h] int i; // [rsp+2Ch] [rbp-44h] unsigned int v12; // [rsp+30h] [rbp-40h] unsigned int v13; // [rsp+34h] [rbp-3Ch] const char *v14; // [rsp+38h] [rbp-38h] unsigned int v15; // [rsp+40h] [rbp-30h] BYREF long long v16; // [rsp+48h] [rbp-28h] const char *v17; // [rsp+58h] [rbp-18h] const char **v18; // [rsp+60h] [rbp-10h] int v19; // [rsp+68h] [rbp-8h] int v20; // [rsp+6Ch] [rbp-4h] v20 = 0; v19 = argc; v18 = argv; if ( argc < 2 ) { fprintf( stderr, "Usage: %s [options] <method> <params> > proof.ssz\n" "\n" " -c <chain_id> : selected chain (default MAINNET = 1)\n" " -t <testname> : generates test files in test/data/<testname>\n" " -x <cachedir> : caches all reguests in the cache directory\n" " -o <outputfile> : ssz file with the proof ( default to stdout )\n" " -i : include code in the proof\n" "\n", *v18); exit(1LL); } v17 = 0LL; memset(&v15, 0LL, 24LL); v14 = 0LL; v13 = 0; v12 = 1; buffer_add_chars(&v15, "["); for ( i = 1; i < v19; ++i ) { if ( *v18[i] == 45 ) { for ( j = v18[i] + 1; *j; ++j ) { v8 = (char)*j; switch ( v8 ) { case 'c': v12 = atoi(v18[++i]); break; case 'i': v13 |= 1u; break; case 'o': v14 = v18[++i]; break; default: fprintf(stderr, "Unknown option: %c\n", (unsigned int)(char)*j); exit(1LL); } } } else if ( v17 ) { if ( v15 > 1 ) buffer_add_chars(&v15, ","); if ( *v18[i] == 123 || *v18[i] == 91 || !(unsigned int)strcmp(v18[i], "true") || !(unsigned int)strcmp(v18[i], "false") ) { buffer_add_chars(&v15, v18[i]); } else { bprintf((unsigned int)&v15, (unsigned int)"\"%s\"", (unsigned int)v18[i], i, v3, v4, v7); } } else { v17 = v18[i]; } } buffer_add_chars(&v15, "]"); v9 = c4_proofer_create(v17, v16, v12, v13); while ( 1 ) { v5 = c4_proofer_execute(v9); if ( v5 == -1 ) break; if ( !v5 ) { if ( v14 ) { v6 = fopen(v14, "wb"); bytes_write(*(unsigned int *)(v9 + 32), *(_QWORD *)(v9 + 40), v6, 1LL); } else { fwrite(*(_QWORD *)(v9 + 40), 1LL, *(unsigned int *)(v9 + 32), stdout); } fflush(stdout); exit(0LL); } if ( v5 == 2 ) curl_fetch_all(v9 + 56); } fprintf(stderr, "Failed: %s\n", *(const char **)(v9 + 64)); exit(1LL); }
main: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV dword ptr [RBP + -0x4],0x0 MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI CMP dword ptr [RBP + -0x8],0x2 JGE 0x00105475 MOV RAX,qword ptr [0x0016efe0] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX] LEA RSI,[0x152004] MOV AL,0x0 CALL 0x001050d0 MOV EDI,0x1 CALL 0x001051e0 LAB_00105475: MOV qword ptr [RBP + -0x18],0x0 LEA RDI,[RBP + -0x30] XOR ESI,ESI MOV EDX,0x18 CALL 0x00105110 MOV qword ptr [RBP + -0x38],0x0 MOV dword ptr [RBP + -0x3c],0x0 MOV dword ptr [RBP + -0x40],0x1 LEA RDI,[RBP + -0x30] LEA RSI,[0x152162] CALL 0x001190f0 MOV dword ptr [RBP + -0x44],0x1 LAB_001054ba: MOV EAX,dword ptr [RBP + -0x44] CMP EAX,dword ptr [RBP + -0x8] JGE 0x00105685 MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RAX + RCX*0x8] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2d JNZ 0x001055a8 MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RAX + RCX*0x8] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX LAB_001054f2: MOV RAX,qword ptr [RBP + -0x50] CMP byte ptr [RAX],0x0 JZ 0x001055a3 MOV RAX,qword ptr [RBP + -0x50] MOVSX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x5c],EAX SUB EAX,0x63 JZ 0x00105524 JMP 0x00105510 LAB_00105510: MOV EAX,dword ptr [RBP + -0x5c] SUB EAX,0x69 JZ 0x0010555c JMP 0x0010551a LAB_0010551a: MOV EAX,dword ptr [RBP + -0x5c] SUB EAX,0x6f JZ 0x00105542 JMP 0x00105567 LAB_00105524: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x44] ADD ECX,0x1 MOV dword ptr [RBP + -0x44],ECX MOVSXD RCX,ECX MOV RDI,qword ptr [RAX + RCX*0x8] CALL 0x00105120 MOV dword ptr [RBP + -0x40],EAX JMP 0x00105590 LAB_00105542: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x44] ADD ECX,0x1 MOV dword ptr [RBP + -0x44],ECX MOVSXD RCX,ECX MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x38],RAX JMP 0x00105590 LAB_0010555c: MOV EAX,dword ptr [RBP + -0x3c] OR EAX,0x1 MOV dword ptr [RBP + -0x3c],EAX JMP 0x00105590 LAB_00105567: MOV RAX,qword ptr [0x0016efe0] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x50] MOVSX EDX,byte ptr [RAX] LEA RSI,[0x152164] MOV AL,0x0 CALL 0x001050d0 MOV EDI,0x1 CALL 0x001051e0 LAB_00105590: JMP 0x00105592 LAB_00105592: MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX JMP 0x001054f2 LAB_001055a3: JMP 0x00105675 LAB_001055a8: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x001055c4 MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x00105673 LAB_001055c4: CMP dword ptr [RBP + -0x30],0x1 JBE 0x001055da LEA RDI,[RBP + -0x30] LEA RSI,[0x152d76] CALL 0x001190f0 LAB_001055da: MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RAX + RCX*0x8] MOVSX EAX,byte ptr [RAX] CMP EAX,0x7b JZ 0x0010563c MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RAX + RCX*0x8] MOVSX EAX,byte ptr [RAX] CMP EAX,0x5b JZ 0x0010563c MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x44] MOV RDI,qword ptr [RAX + RCX*0x8] LEA RSI,[0x152178] CALL 0x00105250 CMP EAX,0x0 JZ 0x0010563c MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x44] MOV RDI,qword ptr [RAX + RCX*0x8] LEA RSI,[0x15217d] CALL 0x00105250 CMP EAX,0x0 JNZ 0x00105653 LAB_0010563c: MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x44] MOV RSI,qword ptr [RAX + RCX*0x8] LEA RDI,[RBP + -0x30] CALL 0x001190f0 JMP 0x00105671 LAB_00105653: MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x44] MOV RDX,qword ptr [RAX + RCX*0x8] LEA RDI,[RBP + -0x30] LEA RSI,[0x152183] MOV AL,0x0 CALL 0x00119740 LAB_00105671: JMP 0x00105673 LAB_00105673: JMP 0x00105675 LAB_00105675: JMP 0x00105677 LAB_00105677: MOV EAX,dword ptr [RBP + -0x44] ADD EAX,0x1 MOV dword ptr [RBP + -0x44],EAX JMP 0x001054ba LAB_00105685: LEA RDI,[RBP + -0x30] LEA RSI,[0x152e3d] CALL 0x001190f0 MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x28] MOV EDX,dword ptr [RBP + -0x40] MOV ECX,dword ptr [RBP + -0x3c] CALL 0x00106820 MOV qword ptr [RBP + -0x58],RAX LAB_001056ac: MOV RDI,qword ptr [RBP + -0x58] CALL 0x001069d0 MOV ECX,EAX MOV dword ptr [RBP + -0x60],ECX SUB EAX,-0x1 JZ 0x00105753 JMP 0x001056c5 LAB_001056c5: MOV EAX,dword ptr [RBP + -0x60] TEST EAX,EAX JZ 0x001056df JMP 0x001056ce LAB_001056ce: MOV EAX,dword ptr [RBP + -0x60] SUB EAX,0x2 JZ 0x0010577d JMP 0x0010578a LAB_001056df: CMP qword ptr [RBP + -0x38],0x0 JZ 0x00105718 MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x68],RAX MOV RDI,qword ptr [RBP + -0x38] LEA RSI,[0x152188] CALL 0x00105320 MOV RDX,RAX MOV RAX,qword ptr [RBP + -0x68] MOV EDI,dword ptr [RAX + 0x20] MOV RSI,qword ptr [RAX + 0x28] MOV ECX,0x1 CALL 0x001192d0 JMP 0x0010573d LAB_00105718: MOV RAX,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x58] MOV EAX,dword ptr [RAX + 0x20] MOV EDX,EAX MOV RAX,qword ptr [0x0016efd8] MOV RCX,qword ptr [RAX] MOV ESI,0x1 CALL 0x00105300 LAB_0010573d: MOV RAX,qword ptr [0x0016efd8] MOV RDI,qword ptr [RAX] CALL 0x00105170 XOR EDI,EDI CALL 0x001051e0 LAB_00105753: MOV RAX,qword ptr [0x0016efe0] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RAX + 0x40] LEA RSI,[0x15218b] MOV AL,0x0 CALL 0x001050d0 MOV EDI,0x1 CALL 0x001051e0 LAB_0010577d: MOV RDI,qword ptr [RBP + -0x58] ADD RDI,0x38 CALL 0x001059d0 LAB_0010578a: JMP 0x001056ac
void main(int param_1,int8 *param_2) { char cVar1; int iVar2; long lVar3; FILE *pFVar4; char *local_58; int local_4c; int local_48; int4 local_44; char *local_40; uint local_38 [2]; int8 local_30; long local_20; int8 *local_18; int local_10; int4 local_c; local_c = 0; local_18 = param_2; local_10 = param_1; if (param_1 < 2) { fprintf(*(FILE **)PTR_stderr_0016efe0, "Usage: %s [options] <method> <params> > proof.ssz\n\n -c <chain_id> : selected chain (default MAINNET = 1)\n -t <testname> : generates test files in test/data/<testname>\n -x <cachedir> : caches all reguests in the cache directory\n -o <outputfile> : ssz file with the proof ( default to stdout )\n -i : include code in the proof\n\n" ,*param_2); /* WARNING: Subroutine does not return */ exit(1); } local_20 = 0; memset(local_38,0,0x18); local_40 = (char *)0x0; local_44 = 0; local_48 = 1; buffer_add_chars(local_38,&DAT_00152162); local_4c = 1; do { if (local_10 <= local_4c) { buffer_add_chars(local_38,"]"); lVar3 = c4_proofer_create(local_20,local_30,local_48,local_44); while( true ) { iVar2 = c4_proofer_execute(lVar3); if (iVar2 == -1) { fprintf(*(FILE **)PTR_stderr_0016efe0,"Failed: %s\n",*(int8 *)(lVar3 + 0x40)); /* WARNING: Subroutine does not return */ exit(1); } if (iVar2 == 0) break; if (iVar2 == 2) { curl_fetch_all(lVar3 + 0x38); } } if (local_40 == (char *)0x0) { fwrite(*(void **)(lVar3 + 0x28),1,(ulong)*(uint *)(lVar3 + 0x20), *(FILE **)PTR_stdout_0016efd8); } else { pFVar4 = fopen(local_40,"wb"); bytes_write(*(int4 *)(lVar3 + 0x20),*(int8 *)(lVar3 + 0x28),pFVar4,1); } fflush(*(FILE **)PTR_stdout_0016efd8); /* WARNING: Subroutine does not return */ exit(0); } if (*(char *)local_18[local_4c] == '-') { local_58 = (char *)local_18[local_4c]; while (local_58 = local_58 + 1, *local_58 != '\0') { cVar1 = *local_58; if (cVar1 == 'c') { local_4c = local_4c + 1; local_48 = atoi((char *)local_18[local_4c]); } else if (cVar1 == 'i') { local_44 = 1; } else { if (cVar1 != 'o') { fprintf(*(FILE **)PTR_stderr_0016efe0,"Unknown option: %c\n",(ulong)(uint)(int)*local_58 ); /* WARNING: Subroutine does not return */ exit(1); } local_4c = local_4c + 1; local_40 = (char *)local_18[local_4c]; } } } else if (local_20 == 0) { local_20 = local_18[local_4c]; } else { if (1 < local_38[0]) { buffer_add_chars(local_38,&DAT_00152d76); } if ((((*(char *)local_18[local_4c] == '{') || (*(char *)local_18[local_4c] == '[')) || (iVar2 = strcmp((char *)local_18[local_4c],"true"), iVar2 == 0)) || (iVar2 = strcmp((char *)local_18[local_4c],"false"), iVar2 == 0)) { buffer_add_chars(local_38,local_18[local_4c]); } else { bprintf(local_38,&DAT_00152183,local_18[local_4c]); } } local_4c = local_4c + 1; } while( true ); }
29,303
main
corpus-core[P]colibri-stateless/src/cli/proofer.c
int main(int argc, char* argv[]) { if (argc < 2) { fprintf(stderr, "Usage: %s [options] <method> <params> > proof.ssz\n" "\n" " -c <chain_id> : selected chain (default MAINNET = 1)\n" " -t <testname> : generates test files in test/data/<testname>\n" " -x <cachedir> : caches all reguests in the cache directory\n" " -o <outputfile> : ssz file with the proof ( default to stdout )\n" " -i : include code in the proof\n" "\n", argv[0]); exit(EXIT_FAILURE); } char* method = NULL; buffer_t buffer = {0}; char* outputfile = NULL; uint32_t flags = 0; chain_id_t chain_id = C4_CHAIN_MAINNET; buffer_add_chars(&buffer, "["); for (int i = 1; i < argc; i++) { if (*argv[i] == '-') { for (char* c = argv[i] + 1; *c; c++) { switch (*c) { case 'c': chain_id = atoi(argv[++i]); break; case 'o': outputfile = argv[++i]; break; case 'i': flags |= C4_PROOFER_FLAG_INCLUDE_CODE; break; #ifdef TEST #ifdef USE_CURL case 't': curl_set_test_dir(argv[++i]); break; case 'x': curl_set_cache_dir(argv[++i]); break; #endif #endif default: fprintf(stderr, "Unknown option: %c\n", *c); exit(EXIT_FAILURE); } } } else if (method == NULL) method = argv[i]; else { if (buffer.data.len > 1) buffer_add_chars(&buffer, ","); if (argv[i][0] == '{' || argv[i][0] == '[' || strcmp(argv[i], "true") == 0 || strcmp(argv[i], "false") == 0) buffer_add_chars(&buffer, argv[i]); else bprintf(&buffer, "\"%s\"", argv[i]); } } buffer_add_chars(&buffer, "]"); proofer_ctx_t* ctx = c4_proofer_create(method, (char*) buffer.data.data, chain_id, flags); while (true) { switch (c4_proofer_execute(ctx)) { case C4_SUCCESS: if (outputfile) bytes_write(ctx->proof, fopen(outputfile, "wb"), true); else fwrite(ctx->proof.data, 1, ctx->proof.len, stdout); fflush(stdout); exit(EXIT_SUCCESS); case C4_ERROR: fprintf(stderr, "Failed: %s\n", ctx->state.error); exit(EXIT_FAILURE); case C4_PENDING: #ifdef USE_CURL curl_fetch_all(&ctx->state); #else fprintf(stderr, "CURL not enabled\n"); exit(EXIT_FAILURE); #endif break; } } c4_proofer_free(ctx); }
O1
c
main: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rsi, %r14 cmpl $0x1, %edi jg 0x57b2 movq 0x54847(%rip), %rax # 0x59fe0 movq (%rax), %rdi movq (%r14), %rdx leaq 0x3785e(%rip), %rsi # 0x3d004 xorl %eax, %eax callq 0x50d0 jmp 0x58fb movl %edi, %ebp xorps %xmm0, %xmm0 leaq 0x20(%rsp), %rdi movaps %xmm0, (%rdi) movq $0x0, 0x10(%rdi) leaq 0x37994(%rip), %rsi # 0x3d162 callq 0x12cc5 movl $0x1, %r12d movq $0x0, 0x10(%rsp) movl $0x1, %r15d movl $0x0, 0xc(%rsp) movq $0x0, 0x18(%rsp) movslq %r12d, %r13 movq (%r14,%r13,8), %rbx cmpb $0x2d, (%rbx) jne 0x5851 incq %rbx movzbl (%rbx), %eax cmpl $0x63, %eax jne 0x5824 incl %r12d movslq %r12d, %rax movq (%r14,%rax,8), %rdi callq 0x5120 movl %eax, %r15d jmp 0x5805 testl %eax, %eax je 0x5894 cmpl $0x69, %eax je 0x5847 cmpl $0x6f, %eax jne 0x58e0 incl %r12d movslq %r12d, %r12 movq (%r14,%r12,8), %rax movq %rax, 0x18(%rsp) jmp 0x5805 movl $0x1, 0xc(%rsp) jmp 0x5805 cmpq $0x0, 0x10(%rsp) je 0x588f cmpl $0x2, 0x20(%rsp) jb 0x5871 leaq 0x20(%rsp), %rdi leaq 0x38523(%rip), %rsi # 0x3dd8f callq 0x12cc5 movq (%r14,%r13,8), %rbx movzbl (%rbx), %eax orl $0x20, %eax cmpl $0x7b, %eax jne 0x58a2 leaq 0x20(%rsp), %rdi movq %rbx, %rsi callq 0x12cc5 jmp 0x5894 movq %rbx, 0x10(%rsp) incl %r12d cmpl %ebp, %r12d jl 0x57f9 jmp 0x5905 movq %rbx, %rdi leaq 0x378cc(%rip), %rsi # 0x3d178 callq 0x5280 testl %eax, %eax je 0x5880 movq %rbx, %rdi leaq 0x378be(%rip), %rsi # 0x3d17d callq 0x5280 testl %eax, %eax je 0x5880 leaq 0x20(%rsp), %rdi leaq 0x378af(%rip), %rsi # 0x3d183 movq %rbx, %rdx xorl %eax, %eax callq 0x13095 jmp 0x5894 movsbl %al, %edx movq 0x546f6(%rip), %rax # 0x59fe0 movq (%rax), %rdi leaq 0x37870(%rip), %rsi # 0x3d164 xorl %eax, %eax callq 0x50d0 movl $0x1, %edi callq 0x5200 leaq 0x3854a(%rip), %rsi # 0x3de56 leaq 0x20(%rsp), %rbx movq %rbx, %rdi callq 0x12cc5 movq 0x8(%rbx), %rsi movq 0x10(%rsp), %rdi movl %r15d, %edx movl 0xc(%rsp), %ecx callq 0x64b0 movq %rax, %r14 movq %rax, %rbx addq $0x38, %rbx movq %r14, %rdi callq 0x65b5 cmpl $0x2, %eax je 0x5950 cmpl $-0x1, %eax je 0x595a testl %eax, %eax jne 0x5938 jmp 0x5974 movq %rbx, %rdi callq 0x5b94 jmp 0x5938 movq 0x5467f(%rip), %rax # 0x59fe0 movq (%rax), %rdi movq 0x40(%r14), %rdx leaq 0x3781c(%rip), %rsi # 0x3d18b jmp 0x57a6 movq 0x18(%rsp), %rdi testq %rdi, %rdi jne 0x599c movq 0x28(%r14), %rdi movl 0x20(%r14), %edx movq 0x5464b(%rip), %rax # 0x59fd8 movq (%rax), %rcx movl $0x1, %esi callq 0x5320 jmp 0x59bd leaq 0x377e5(%rip), %rsi # 0x3d188 callq 0x5330 movl 0x20(%r14), %edi movq 0x28(%r14), %rsi movq %rax, %rdx movl $0x1, %ecx callq 0x12e16 movq 0x54614(%rip), %rax # 0x59fd8 movq (%rax), %rdi callq 0x5190 xorl %edi, %edi callq 0x5200 nop
main: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r14, rsi cmp edi, 1 jg short loc_57B2 mov rax, cs:stderr_ptr mov rdi, [rax] mov rdx, [r14] lea rsi, aUsageSOptionsM; "Usage: %s [options] <method> <params> >"... loc_57A6: xor eax, eax call _fprintf jmp loc_58FB loc_57B2: mov ebp, edi xorps xmm0, xmm0 lea rdi, [rsp+68h+var_48] movaps xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 lea rsi, asc_3D162; "[" call buffer_add_chars mov r12d, 1 mov [rsp+68h+var_58], 0 mov r15d, 1 mov [rsp+68h+var_5C], 0 mov [rsp+68h+var_50], 0 loc_57F9: movsxd r13, r12d mov rbx, [r14+r13*8] cmp byte ptr [rbx], 2Dh ; '-' jnz short loc_5851 loc_5805: inc rbx movzx eax, byte ptr [rbx] cmp eax, 63h ; 'c' jnz short loc_5824 inc r12d movsxd rax, r12d mov rdi, [r14+rax*8] call _atoi mov r15d, eax jmp short loc_5805 loc_5824: test eax, eax jz short loc_5894 cmp eax, 69h ; 'i' jz short loc_5847 cmp eax, 6Fh ; 'o' jnz loc_58E0 inc r12d movsxd r12, r12d mov rax, [r14+r12*8] mov [rsp+68h+var_50], rax jmp short loc_5805 loc_5847: mov [rsp+68h+var_5C], 1 jmp short loc_5805 loc_5851: cmp [rsp+68h+var_58], 0 jz short loc_588F cmp [rsp+68h+var_48], 2 jb short loc_5871 lea rdi, [rsp+68h+var_48] lea rsi, aJ_0+3; "," call buffer_add_chars loc_5871: mov rbx, [r14+r13*8] movzx eax, byte ptr [rbx] or eax, 20h cmp eax, 7Bh ; '{' jnz short loc_58A2 loc_5880: lea rdi, [rsp+68h+var_48] mov rsi, rbx call buffer_add_chars jmp short loc_5894 loc_588F: mov [rsp+68h+var_58], rbx loc_5894: inc r12d cmp r12d, ebp jl loc_57F9 jmp short loc_5905 loc_58A2: mov rdi, rbx lea rsi, aTrue; "true" call _strcmp test eax, eax jz short loc_5880 mov rdi, rbx lea rsi, aFalse; "false" call _strcmp test eax, eax jz short loc_5880 lea rdi, [rsp+68h+var_48] lea rsi, aS; "\"%s\"" mov rdx, rbx xor eax, eax call bprintf jmp short loc_5894 loc_58E0: movsx edx, al mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aUnknownOptionC; "Unknown option: %c\n" xor eax, eax call _fprintf loc_58FB: mov edi, 1 call _exit loc_5905: lea rsi, aJLastest+0Dh; "]" lea rbx, [rsp+68h+var_48] mov rdi, rbx call buffer_add_chars mov rsi, [rbx+8] mov rdi, [rsp+68h+var_58] mov edx, r15d mov ecx, [rsp+68h+var_5C] call c4_proofer_create mov r14, rax mov rbx, rax add rbx, 38h ; '8' loc_5938: mov rdi, r14 call c4_proofer_execute cmp eax, 2 jz short loc_5950 cmp eax, 0FFFFFFFFh jz short loc_595A test eax, eax jnz short loc_5938 jmp short loc_5974 loc_5950: mov rdi, rbx call curl_fetch_all jmp short loc_5938 loc_595A: mov rax, cs:stderr_ptr mov rdi, [rax] mov rdx, [r14+40h] lea rsi, aFailedS; "Failed: %s\n" jmp loc_57A6 loc_5974: mov rdi, [rsp+68h+var_50] test rdi, rdi jnz short loc_599C mov rdi, [r14+28h] mov edx, [r14+20h] mov rax, cs:stdout_ptr mov rcx, [rax] mov esi, 1 call _fwrite jmp short loc_59BD loc_599C: lea rsi, aWb; "wb" call _fopen mov edi, [r14+20h] mov rsi, [r14+28h] mov rdx, rax mov ecx, 1 call bytes_write loc_59BD: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush xor edi, edi call _exit
int __noreturn main(int argc, const char **argv, const char **envp) { long long v3; // rdx int v4; // r12d unsigned int v5; // r15d const char *v6; // rbx int v7; // eax const char *v8; // rbx int v9; // ecx int v10; // r8d int v11; // r9d long long v12; // r14 int v13; // eax long long v14; // rax char v15; // [rsp+0h] [rbp-68h] unsigned int v16; // [rsp+Ch] [rbp-5Ch] const char *v17; // [rsp+10h] [rbp-58h] const char *v18; // [rsp+18h] [rbp-50h] __int128 v19; // [rsp+20h] [rbp-48h] BYREF long long v20; // [rsp+30h] [rbp-38h] if ( argc <= 1 ) { fprintf( stderr, "Usage: %s [options] <method> <params> > proof.ssz\n" "\n" " -c <chain_id> : selected chain (default MAINNET = 1)\n" " -t <testname> : generates test files in test/data/<testname>\n" " -x <cachedir> : caches all reguests in the cache directory\n" " -o <outputfile> : ssz file with the proof ( default to stdout )\n" " -i : include code in the proof\n" "\n", *argv); goto LABEL_24; } v19 = 0LL; v20 = 0LL; buffer_add_chars(&v19, "[", envp); v4 = 1; v17 = 0LL; v5 = 1; v16 = 0; v18 = 0LL; while ( 1 ) { v6 = argv[v4]; if ( *v6 == 45 ) break; if ( v17 ) { if ( (unsigned int)v19 >= 2 ) buffer_add_chars(&v19, ",", v3); v8 = argv[v4]; if ( (*(unsigned __int8 *)v8 | 0x20) == 0x7B || !(unsigned int)strcmp(argv[v4], "true") || !(unsigned int)strcmp(v8, "false") ) { buffer_add_chars(&v19, v8, v3); } else { bprintf((unsigned int)&v19, (unsigned int)"\"%s\"", (_DWORD)v8, v9, v10, v11, v15); } } else { v17 = argv[v4]; } LABEL_18: if ( ++v4 >= argc ) { buffer_add_chars(&v19, "]", v3); v12 = c4_proofer_create(v17, *((_QWORD *)&v19 + 1), v5, v16); while ( 1 ) { while ( 1 ) { v13 = c4_proofer_execute(v12); if ( v13 != 2 ) break; curl_fetch_all(v12 + 56); } if ( v13 == -1 ) break; if ( !v13 ) { if ( v18 ) { v14 = fopen(v18, "wb"); bytes_write(*(unsigned int *)(v12 + 32), *(_QWORD *)(v12 + 40), v14, 1LL); } else { fwrite(*(_QWORD *)(v12 + 40), 1LL, *(unsigned int *)(v12 + 32), stdout); } fflush(stdout); exit(0LL); } } fprintf(stderr, "Failed: %s\n", *(_QWORD *)(v12 + 64)); goto LABEL_24; } } while ( 1 ) { while ( 1 ) { while ( 1 ) { v7 = *(unsigned __int8 *)++v6; if ( v7 != 99 ) break; v5 = atoi(argv[++v4]); } if ( !*v6 ) goto LABEL_18; if ( v7 != 105 ) break; v16 = 1; } if ( v7 != 111 ) break; v18 = argv[++v4]; } fprintf(stderr, "Unknown option: %c\n", (unsigned int)(char)v7); LABEL_24: exit(1LL); }
main: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RSI CMP EDI,0x1 JG 0x001057b2 MOV RAX,qword ptr [0x00159fe0] MOV RDI,qword ptr [RAX] MOV RDX,qword ptr [R14] LEA RSI,[0x13d004] LAB_001057a6: XOR EAX,EAX CALL 0x001050d0 JMP 0x001058fb LAB_001057b2: MOV EBP,EDI XORPS XMM0,XMM0 LEA RDI,[RSP + 0x20] MOVAPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 LEA RSI,[0x13d162] CALL 0x00112cc5 MOV R12D,0x1 MOV qword ptr [RSP + 0x10],0x0 MOV R15D,0x1 MOV dword ptr [RSP + 0xc],0x0 MOV qword ptr [RSP + 0x18],0x0 LAB_001057f9: MOVSXD R13,R12D MOV RBX,qword ptr [R14 + R13*0x8] CMP byte ptr [RBX],0x2d JNZ 0x00105851 LAB_00105805: INC RBX MOVZX EAX,byte ptr [RBX] CMP EAX,0x63 JNZ 0x00105824 INC R12D MOVSXD RAX,R12D MOV RDI,qword ptr [R14 + RAX*0x8] CALL 0x00105120 MOV R15D,EAX JMP 0x00105805 LAB_00105824: TEST EAX,EAX JZ 0x00105894 CMP EAX,0x69 JZ 0x00105847 CMP EAX,0x6f JNZ 0x001058e0 INC R12D MOVSXD R12,R12D MOV RAX,qword ptr [R14 + R12*0x8] MOV qword ptr [RSP + 0x18],RAX JMP 0x00105805 LAB_00105847: MOV dword ptr [RSP + 0xc],0x1 JMP 0x00105805 LAB_00105851: CMP qword ptr [RSP + 0x10],0x0 JZ 0x0010588f CMP dword ptr [RSP + 0x20],0x2 JC 0x00105871 LEA RDI,[RSP + 0x20] LEA RSI,[0x13dd8f] CALL 0x00112cc5 LAB_00105871: MOV RBX,qword ptr [R14 + R13*0x8] MOVZX EAX,byte ptr [RBX] OR EAX,0x20 CMP EAX,0x7b JNZ 0x001058a2 LAB_00105880: LEA RDI,[RSP + 0x20] MOV RSI,RBX CALL 0x00112cc5 JMP 0x00105894 LAB_0010588f: MOV qword ptr [RSP + 0x10],RBX LAB_00105894: INC R12D CMP R12D,EBP JL 0x001057f9 JMP 0x00105905 LAB_001058a2: MOV RDI,RBX LEA RSI,[0x13d178] CALL 0x00105280 TEST EAX,EAX JZ 0x00105880 MOV RDI,RBX LEA RSI,[0x13d17d] CALL 0x00105280 TEST EAX,EAX JZ 0x00105880 LEA RDI,[RSP + 0x20] LEA RSI,[0x13d183] MOV RDX,RBX XOR EAX,EAX CALL 0x00113095 JMP 0x00105894 LAB_001058e0: MOVSX EDX,AL MOV RAX,qword ptr [0x00159fe0] MOV RDI,qword ptr [RAX] LEA RSI,[0x13d164] XOR EAX,EAX CALL 0x001050d0 LAB_001058fb: MOV EDI,0x1 CALL 0x00105200 LAB_00105905: LEA RSI,[0x13de56] LEA RBX,[RSP + 0x20] MOV RDI,RBX CALL 0x00112cc5 MOV RSI,qword ptr [RBX + 0x8] MOV RDI,qword ptr [RSP + 0x10] MOV EDX,R15D MOV ECX,dword ptr [RSP + 0xc] CALL 0x001064b0 MOV R14,RAX MOV RBX,RAX ADD RBX,0x38 LAB_00105938: MOV RDI,R14 CALL 0x001065b5 CMP EAX,0x2 JZ 0x00105950 CMP EAX,-0x1 JZ 0x0010595a TEST EAX,EAX JNZ 0x00105938 JMP 0x00105974 LAB_00105950: MOV RDI,RBX CALL 0x00105b94 JMP 0x00105938 LAB_0010595a: MOV RAX,qword ptr [0x00159fe0] MOV RDI,qword ptr [RAX] MOV RDX,qword ptr [R14 + 0x40] LEA RSI,[0x13d18b] JMP 0x001057a6 LAB_00105974: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JNZ 0x0010599c MOV RDI,qword ptr [R14 + 0x28] MOV EDX,dword ptr [R14 + 0x20] MOV RAX,qword ptr [0x00159fd8] MOV RCX,qword ptr [RAX] MOV ESI,0x1 CALL 0x00105320 JMP 0x001059bd LAB_0010599c: LEA RSI,[0x13d188] CALL 0x00105330 MOV EDI,dword ptr [R14 + 0x20] MOV RSI,qword ptr [R14 + 0x28] MOV RDX,RAX MOV ECX,0x1 CALL 0x00112e16 LAB_001059bd: MOV RAX,qword ptr [0x00159fd8] MOV RDI,qword ptr [RAX] CALL 0x00105190 XOR EDI,EDI CALL 0x00105200
void main(int param_1,int8 *param_2) { char cVar1; byte *__s1; char *pcVar2; int iVar3; int iVar4; long lVar5; FILE *pFVar6; int8 uVar7; char *pcVar8; int iVar9; ulong uVar10; int4 local_5c; char *local_58; char *local_50; int8 local_48; int8 uStack_40; int8 local_38; if (param_1 < 2) { pFVar6 = *(FILE **)PTR_stderr_00159fe0; uVar7 = *param_2; pcVar8 = "Usage: %s [options] <method> <params> > proof.ssz\n\n -c <chain_id> : selected chain (default MAINNET = 1)\n -t <testname> : generates test files in test/data/<testname>\n -x <cachedir> : caches all reguests in the cache directory\n -o <outputfile> : ssz file with the proof ( default to stdout )\n -i : include code in the proof\n\n" ; } else { local_48 = 0; uStack_40 = 0; local_38 = 0; buffer_add_chars(&local_48,&DAT_0013d162); uVar10 = 1; local_58 = (char *)0x0; iVar3 = 1; local_5c = 0; local_50 = (char *)0x0; do { iVar9 = (int)uVar10; pcVar8 = (char *)param_2[iVar9]; if (*pcVar8 == '-') { while( true ) { while( true ) { pcVar8 = pcVar8 + 1; cVar1 = *pcVar8; iVar9 = (int)uVar10; if (cVar1 != 'c') break; uVar10 = (ulong)(iVar9 + 1U); iVar3 = atoi((char *)param_2[(int)(iVar9 + 1U)]); } pcVar2 = local_58; if (cVar1 == '\0') break; if (cVar1 == 'i') { local_5c = 1; } else { if (cVar1 != 'o') { fprintf(*(FILE **)PTR_stderr_00159fe0,"Unknown option: %c\n",(ulong)(uint)(int)cVar1); goto LAB_001058fb; } uVar10 = (ulong)(iVar9 + 1); local_50 = (char *)param_2[uVar10]; } } } else { pcVar2 = pcVar8; if (local_58 != (char *)0x0) { if (1 < (uint)local_48) { buffer_add_chars(&local_48,&DAT_0013dd8f); } __s1 = (byte *)param_2[iVar9]; if ((((*__s1 | 0x20) == 0x7b) || (iVar4 = strcmp((char *)__s1,"true"), iVar4 == 0)) || (iVar4 = strcmp((char *)__s1,"false"), iVar4 == 0)) { buffer_add_chars(&local_48,__s1); pcVar2 = local_58; } else { bprintf(&local_48,&DAT_0013d183,__s1); pcVar2 = local_58; } } } local_58 = pcVar2; uVar10 = (ulong)(iVar9 + 1U); } while ((int)(iVar9 + 1U) < param_1); buffer_add_chars(&local_48,"]"); lVar5 = c4_proofer_create(local_58,uStack_40,iVar3,local_5c); while( true ) { while (iVar3 = c4_proofer_execute(lVar5), iVar3 == 2) { curl_fetch_all(lVar5 + 0x38); } if (iVar3 == -1) break; if (iVar3 == 0) { if (local_50 == (char *)0x0) { fwrite(*(void **)(lVar5 + 0x28),1,(ulong)*(uint *)(lVar5 + 0x20), *(FILE **)PTR_stdout_00159fd8); } else { pFVar6 = fopen(local_50,"wb"); bytes_write(*(int4 *)(lVar5 + 0x20),*(int8 *)(lVar5 + 0x28),pFVar6,1); } fflush(*(FILE **)PTR_stdout_00159fd8); /* WARNING: Subroutine does not return */ exit(0); } } pFVar6 = *(FILE **)PTR_stderr_00159fe0; uVar7 = *(int8 *)(lVar5 + 0x40); pcVar8 = "Failed: %s\n"; } fprintf(pFVar6,pcVar8,uVar7); LAB_001058fb: /* WARNING: Subroutine does not return */ exit(1); }
29,304
main
corpus-core[P]colibri-stateless/src/cli/proofer.c
int main(int argc, char* argv[]) { if (argc < 2) { fprintf(stderr, "Usage: %s [options] <method> <params> > proof.ssz\n" "\n" " -c <chain_id> : selected chain (default MAINNET = 1)\n" " -t <testname> : generates test files in test/data/<testname>\n" " -x <cachedir> : caches all reguests in the cache directory\n" " -o <outputfile> : ssz file with the proof ( default to stdout )\n" " -i : include code in the proof\n" "\n", argv[0]); exit(EXIT_FAILURE); } char* method = NULL; buffer_t buffer = {0}; char* outputfile = NULL; uint32_t flags = 0; chain_id_t chain_id = C4_CHAIN_MAINNET; buffer_add_chars(&buffer, "["); for (int i = 1; i < argc; i++) { if (*argv[i] == '-') { for (char* c = argv[i] + 1; *c; c++) { switch (*c) { case 'c': chain_id = atoi(argv[++i]); break; case 'o': outputfile = argv[++i]; break; case 'i': flags |= C4_PROOFER_FLAG_INCLUDE_CODE; break; #ifdef TEST #ifdef USE_CURL case 't': curl_set_test_dir(argv[++i]); break; case 'x': curl_set_cache_dir(argv[++i]); break; #endif #endif default: fprintf(stderr, "Unknown option: %c\n", *c); exit(EXIT_FAILURE); } } } else if (method == NULL) method = argv[i]; else { if (buffer.data.len > 1) buffer_add_chars(&buffer, ","); if (argv[i][0] == '{' || argv[i][0] == '[' || strcmp(argv[i], "true") == 0 || strcmp(argv[i], "false") == 0) buffer_add_chars(&buffer, argv[i]); else bprintf(&buffer, "\"%s\"", argv[i]); } } buffer_add_chars(&buffer, "]"); proofer_ctx_t* ctx = c4_proofer_create(method, (char*) buffer.data.data, chain_id, flags); while (true) { switch (c4_proofer_execute(ctx)) { case C4_SUCCESS: if (outputfile) bytes_write(ctx->proof, fopen(outputfile, "wb"), true); else fwrite(ctx->proof.data, 1, ctx->proof.len, stdout); fflush(stdout); exit(EXIT_SUCCESS); case C4_ERROR: fprintf(stderr, "Failed: %s\n", ctx->state.error); exit(EXIT_FAILURE); case C4_PENDING: #ifdef USE_CURL curl_fetch_all(&ctx->state); #else fprintf(stderr, "CURL not enabled\n"); exit(EXIT_FAILURE); #endif break; } } c4_proofer_free(ctx); }
O3
c
main: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rsi, %r14 cmpl $0x1, %edi jg 0x57b2 movq 0x54847(%rip), %rax # 0x59fe0 movq (%rax), %rdi movq (%r14), %rdx leaq 0x3785e(%rip), %rsi # 0x3d004 xorl %eax, %eax callq 0x50d0 jmp 0x5904 movl %edi, %ebp xorps %xmm0, %xmm0 leaq 0x20(%rsp), %rdi movaps %xmm0, (%rdi) movq $0x0, 0x10(%rdi) leaq 0x37994(%rip), %rsi # 0x3d162 callq 0x129cf movl $0x1, %r12d movq $0x0, 0x10(%rsp) movl $0x1, %r15d movl $0x0, 0xc(%rsp) movq $0x0, 0x18(%rsp) movslq %r12d, %rbx movq (%r14,%rbx,8), %r13 movb (%r13), %al cmpb $0x2d, %al jne 0x5856 incq %r13 movzbl (%r13), %eax cmpl $0x63, %eax jne 0x5829 incl %r12d movslq %r12d, %rax movq (%r14,%rax,8), %rdi callq 0x5120 movl %eax, %r15d jmp 0x5808 testl %eax, %eax je 0x589d cmpl $0x69, %eax je 0x584c cmpl $0x6f, %eax jne 0x58e9 incl %r12d movslq %r12d, %r12 movq (%r14,%r12,8), %rax movq %rax, 0x18(%rsp) jmp 0x5808 movl $0x1, 0xc(%rsp) jmp 0x5808 cmpq $0x0, 0x10(%rsp) je 0x5898 cmpl $0x2, 0x20(%rsp) jb 0x587e leaq 0x20(%rsp), %rdi leaq 0x3851e(%rip), %rsi # 0x3dd8f callq 0x129cf movq (%r14,%rbx,8), %r13 movb (%r13), %al movzbl %al, %eax orl $0x20, %eax cmpl $0x7b, %eax jne 0x58ab leaq 0x20(%rsp), %rdi movq %r13, %rsi callq 0x129cf jmp 0x589d movq %r13, 0x10(%rsp) incl %r12d cmpl %ebp, %r12d jl 0x57f9 jmp 0x590e movq %r13, %rdi leaq 0x378c3(%rip), %rsi # 0x3d178 callq 0x5280 testl %eax, %eax je 0x5889 movq %r13, %rdi leaq 0x378b5(%rip), %rsi # 0x3d17d callq 0x5280 testl %eax, %eax je 0x5889 leaq 0x20(%rsp), %rdi leaq 0x378a6(%rip), %rsi # 0x3d183 movq %r13, %rdx xorl %eax, %eax callq 0x12da8 jmp 0x589d movsbl %al, %edx movq 0x546ed(%rip), %rax # 0x59fe0 movq (%rax), %rdi leaq 0x37867(%rip), %rsi # 0x3d164 xorl %eax, %eax callq 0x50d0 movl $0x1, %edi callq 0x5200 leaq 0x38541(%rip), %rsi # 0x3de56 leaq 0x20(%rsp), %r14 movq %r14, %rdi callq 0x129cf movq 0x8(%r14), %rsi movq 0x10(%rsp), %rdi movl %r15d, %edx movl 0xc(%rsp), %ecx callq 0x64bc movq %rax, %rbx movq %rax, %r14 addq $0x38, %r14 movq %rbx, %rdi callq 0x65c1 cmpl $0x2, %eax je 0x5959 cmpl $-0x1, %eax je 0x5963 testl %eax, %eax jne 0x5941 jmp 0x597d movq %r14, %rdi callq 0x5ba6 jmp 0x5941 movq 0x54676(%rip), %rax # 0x59fe0 movq (%rax), %rdi movq 0x40(%rbx), %rdx leaq 0x37813(%rip), %rsi # 0x3d18b jmp 0x57a6 movq 0x18(%rsp), %rdi testq %rdi, %rdi jne 0x59a4 movq 0x28(%rbx), %rdi movl 0x20(%rbx), %edx movq 0x54643(%rip), %rax # 0x59fd8 movq (%rax), %rcx movl $0x1, %esi callq 0x5320 jmp 0x59c4 leaq 0x377dd(%rip), %rsi # 0x3d188 callq 0x5330 movl 0x20(%rbx), %edi movq 0x28(%rbx), %rsi movq %rax, %rdx movl $0x1, %ecx callq 0x12b1b movq 0x5460d(%rip), %rax # 0x59fd8 movq (%rax), %rdi callq 0x5190 xorl %edi, %edi callq 0x5200 nop
main: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r14, rsi cmp edi, 1 jg short loc_57B2 mov rax, cs:stderr_ptr mov rdi, [rax] mov rdx, [r14] lea rsi, aUsageSOptionsM; "Usage: %s [options] <method> <params> >"... loc_57A6: xor eax, eax call _fprintf jmp loc_5904 loc_57B2: mov ebp, edi xorps xmm0, xmm0 lea rdi, [rsp+68h+var_48] movaps xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 lea rsi, asc_3D162; "[" call buffer_add_chars mov r12d, 1 mov [rsp+68h+var_58], 0 mov r15d, 1 mov [rsp+68h+var_5C], 0 mov [rsp+68h+var_50], 0 loc_57F9: movsxd rbx, r12d mov r13, [r14+rbx*8] mov al, [r13+0] cmp al, 2Dh ; '-' jnz short loc_5856 loc_5808: inc r13 movzx eax, byte ptr [r13+0] cmp eax, 63h ; 'c' jnz short loc_5829 inc r12d movsxd rax, r12d mov rdi, [r14+rax*8] call _atoi mov r15d, eax jmp short loc_5808 loc_5829: test eax, eax jz short loc_589D cmp eax, 69h ; 'i' jz short loc_584C cmp eax, 6Fh ; 'o' jnz loc_58E9 inc r12d movsxd r12, r12d mov rax, [r14+r12*8] mov [rsp+68h+var_50], rax jmp short loc_5808 loc_584C: mov [rsp+68h+var_5C], 1 jmp short loc_5808 loc_5856: cmp [rsp+68h+var_58], 0 jz short loc_5898 cmp [rsp+68h+var_48], 2 jb short loc_587E lea rdi, [rsp+68h+var_48] lea rsi, aJ_0+3; "," call buffer_add_chars mov r13, [r14+rbx*8] mov al, [r13+0] loc_587E: movzx eax, al or eax, 20h cmp eax, 7Bh ; '{' jnz short loc_58AB loc_5889: lea rdi, [rsp+68h+var_48] mov rsi, r13 call buffer_add_chars jmp short loc_589D loc_5898: mov [rsp+68h+var_58], r13 loc_589D: inc r12d cmp r12d, ebp jl loc_57F9 jmp short loc_590E loc_58AB: mov rdi, r13 lea rsi, aTrue; "true" call _strcmp test eax, eax jz short loc_5889 mov rdi, r13 lea rsi, aFalse; "false" call _strcmp test eax, eax jz short loc_5889 lea rdi, [rsp+68h+var_48] lea rsi, aS; "\"%s\"" mov rdx, r13 xor eax, eax call bprintf jmp short loc_589D loc_58E9: movsx edx, al mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aUnknownOptionC; "Unknown option: %c\n" xor eax, eax call _fprintf loc_5904: mov edi, 1 call _exit loc_590E: lea rsi, aJLastest+0Dh; "]" lea r14, [rsp+68h+var_48] mov rdi, r14 call buffer_add_chars mov rsi, [r14+8] mov rdi, [rsp+68h+var_58] mov edx, r15d mov ecx, [rsp+68h+var_5C] call c4_proofer_create mov rbx, rax mov r14, rax add r14, 38h ; '8' loc_5941: mov rdi, rbx call c4_proofer_execute cmp eax, 2 jz short loc_5959 cmp eax, 0FFFFFFFFh jz short loc_5963 test eax, eax jnz short loc_5941 jmp short loc_597D loc_5959: mov rdi, r14 call curl_fetch_all jmp short loc_5941 loc_5963: mov rax, cs:stderr_ptr mov rdi, [rax] mov rdx, [rbx+40h] lea rsi, aFailedS; "Failed: %s\n" jmp loc_57A6 loc_597D: mov rdi, [rsp+68h+var_50] test rdi, rdi jnz short loc_59A4 mov rdi, [rbx+28h] mov edx, [rbx+20h] mov rax, cs:stdout_ptr mov rcx, [rax] mov esi, 1 call _fwrite jmp short loc_59C4 loc_59A4: lea rsi, aWb; "wb" call _fopen mov edi, [rbx+20h] mov rsi, [rbx+28h] mov rdx, rax mov ecx, 1 call bytes_write loc_59C4: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush xor edi, edi call _exit
int __noreturn main(int argc, const char **argv, const char **envp) { long long v3; // rdx int v4; // r12d unsigned int v5; // r15d const char *v6; // r13 unsigned __int8 v7; // al int v8; // eax int v9; // ecx int v10; // r8d int v11; // r9d long long v12; // rbx int v13; // eax long long v14; // rax char v15; // [rsp+0h] [rbp-68h] unsigned int v16; // [rsp+Ch] [rbp-5Ch] const char *v17; // [rsp+10h] [rbp-58h] const char *v18; // [rsp+18h] [rbp-50h] __int128 v19; // [rsp+20h] [rbp-48h] BYREF long long v20; // [rsp+30h] [rbp-38h] if ( argc <= 1 ) { fprintf( stderr, "Usage: %s [options] <method> <params> > proof.ssz\n" "\n" " -c <chain_id> : selected chain (default MAINNET = 1)\n" " -t <testname> : generates test files in test/data/<testname>\n" " -x <cachedir> : caches all reguests in the cache directory\n" " -o <outputfile> : ssz file with the proof ( default to stdout )\n" " -i : include code in the proof\n" "\n", *argv); goto LABEL_24; } v19 = 0LL; v20 = 0LL; buffer_add_chars(&v19, "[", envp); v4 = 1; v17 = 0LL; v5 = 1; v16 = 0; v18 = 0LL; while ( 1 ) { v6 = argv[v4]; v7 = *v6; if ( *v6 == 45 ) break; if ( v17 ) { if ( (unsigned int)v19 >= 2 ) { buffer_add_chars(&v19, ",", v3); v6 = argv[v4]; v7 = *v6; } if ( (v7 | 0x20) == 0x7B || !(unsigned int)strcmp(v6, "true") || !(unsigned int)strcmp(v6, "false") ) buffer_add_chars(&v19, v6, v3); else bprintf((unsigned int)&v19, (unsigned int)"\"%s\"", (_DWORD)v6, v9, v10, v11, v15); } else { v17 = argv[v4]; } LABEL_18: if ( ++v4 >= argc ) { buffer_add_chars(&v19, "]", v3); v12 = c4_proofer_create(v17, *((_QWORD *)&v19 + 1), v5, v16); while ( 1 ) { while ( 1 ) { v13 = c4_proofer_execute(v12); if ( v13 != 2 ) break; curl_fetch_all(v12 + 56); } if ( v13 == -1 ) break; if ( !v13 ) { if ( v18 ) { v14 = fopen(v18, "wb"); bytes_write(*(unsigned int *)(v12 + 32), *(_QWORD *)(v12 + 40), v14, 1LL); } else { fwrite(*(_QWORD *)(v12 + 40), 1LL, *(unsigned int *)(v12 + 32), stdout); } fflush(stdout); exit(0LL); } } fprintf(stderr, "Failed: %s\n", *(_QWORD *)(v12 + 64)); goto LABEL_24; } } while ( 1 ) { while ( 1 ) { while ( 1 ) { v8 = *(unsigned __int8 *)++v6; if ( v8 != 99 ) break; v5 = atoi(argv[++v4]); } if ( !*v6 ) goto LABEL_18; if ( v8 != 105 ) break; v16 = 1; } if ( v8 != 111 ) break; v18 = argv[++v4]; } fprintf(stderr, "Unknown option: %c\n", (unsigned int)(char)v8); LABEL_24: exit(1LL); }
main: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RSI CMP EDI,0x1 JG 0x001057b2 MOV RAX,qword ptr [0x00159fe0] MOV RDI,qword ptr [RAX] MOV RDX,qword ptr [R14] LEA RSI,[0x13d004] LAB_001057a6: XOR EAX,EAX CALL 0x001050d0 JMP 0x00105904 LAB_001057b2: MOV EBP,EDI XORPS XMM0,XMM0 LEA RDI,[RSP + 0x20] MOVAPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 LEA RSI,[0x13d162] CALL 0x001129cf MOV R12D,0x1 MOV qword ptr [RSP + 0x10],0x0 MOV R15D,0x1 MOV dword ptr [RSP + 0xc],0x0 MOV qword ptr [RSP + 0x18],0x0 LAB_001057f9: MOVSXD RBX,R12D MOV R13,qword ptr [R14 + RBX*0x8] MOV AL,byte ptr [R13] CMP AL,0x2d JNZ 0x00105856 LAB_00105808: INC R13 MOVZX EAX,byte ptr [R13] CMP EAX,0x63 JNZ 0x00105829 INC R12D MOVSXD RAX,R12D MOV RDI,qword ptr [R14 + RAX*0x8] CALL 0x00105120 MOV R15D,EAX JMP 0x00105808 LAB_00105829: TEST EAX,EAX JZ 0x0010589d CMP EAX,0x69 JZ 0x0010584c CMP EAX,0x6f JNZ 0x001058e9 INC R12D MOVSXD R12,R12D MOV RAX,qword ptr [R14 + R12*0x8] MOV qword ptr [RSP + 0x18],RAX JMP 0x00105808 LAB_0010584c: MOV dword ptr [RSP + 0xc],0x1 JMP 0x00105808 LAB_00105856: CMP qword ptr [RSP + 0x10],0x0 JZ 0x00105898 CMP dword ptr [RSP + 0x20],0x2 JC 0x0010587e LEA RDI,[RSP + 0x20] LEA RSI,[0x13dd8f] CALL 0x001129cf MOV R13,qword ptr [R14 + RBX*0x8] MOV AL,byte ptr [R13] LAB_0010587e: MOVZX EAX,AL OR EAX,0x20 CMP EAX,0x7b JNZ 0x001058ab LAB_00105889: LEA RDI,[RSP + 0x20] MOV RSI,R13 CALL 0x001129cf JMP 0x0010589d LAB_00105898: MOV qword ptr [RSP + 0x10],R13 LAB_0010589d: INC R12D CMP R12D,EBP JL 0x001057f9 JMP 0x0010590e LAB_001058ab: MOV RDI,R13 LEA RSI,[0x13d178] CALL 0x00105280 TEST EAX,EAX JZ 0x00105889 MOV RDI,R13 LEA RSI,[0x13d17d] CALL 0x00105280 TEST EAX,EAX JZ 0x00105889 LEA RDI,[RSP + 0x20] LEA RSI,[0x13d183] MOV RDX,R13 XOR EAX,EAX CALL 0x00112da8 JMP 0x0010589d LAB_001058e9: MOVSX EDX,AL MOV RAX,qword ptr [0x00159fe0] MOV RDI,qword ptr [RAX] LEA RSI,[0x13d164] XOR EAX,EAX CALL 0x001050d0 LAB_00105904: MOV EDI,0x1 CALL 0x00105200 LAB_0010590e: LEA RSI,[0x13de56] LEA R14,[RSP + 0x20] MOV RDI,R14 CALL 0x001129cf MOV RSI,qword ptr [R14 + 0x8] MOV RDI,qword ptr [RSP + 0x10] MOV EDX,R15D MOV ECX,dword ptr [RSP + 0xc] CALL 0x001064bc MOV RBX,RAX MOV R14,RAX ADD R14,0x38 LAB_00105941: MOV RDI,RBX CALL 0x001065c1 CMP EAX,0x2 JZ 0x00105959 CMP EAX,-0x1 JZ 0x00105963 TEST EAX,EAX JNZ 0x00105941 JMP 0x0010597d LAB_00105959: MOV RDI,R14 CALL 0x00105ba6 JMP 0x00105941 LAB_00105963: MOV RAX,qword ptr [0x00159fe0] MOV RDI,qword ptr [RAX] MOV RDX,qword ptr [RBX + 0x40] LEA RSI,[0x13d18b] JMP 0x001057a6 LAB_0010597d: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JNZ 0x001059a4 MOV RDI,qword ptr [RBX + 0x28] MOV EDX,dword ptr [RBX + 0x20] MOV RAX,qword ptr [0x00159fd8] MOV RCX,qword ptr [RAX] MOV ESI,0x1 CALL 0x00105320 JMP 0x001059c4 LAB_001059a4: LEA RSI,[0x13d188] CALL 0x00105330 MOV EDI,dword ptr [RBX + 0x20] MOV RSI,qword ptr [RBX + 0x28] MOV RDX,RAX MOV ECX,0x1 CALL 0x00112b1b LAB_001059c4: MOV RAX,qword ptr [0x00159fd8] MOV RDI,qword ptr [RAX] CALL 0x00105190 XOR EDI,EDI CALL 0x00105200
void main(int param_1,int8 *param_2) { byte *pbVar1; byte bVar2; int iVar3; int iVar4; long lVar5; FILE *pFVar6; int8 uVar7; char *__format; int iVar8; ulong uVar9; byte *__s1; int4 local_5c; byte *local_58; char *local_50; int8 local_48; int8 uStack_40; int8 local_38; if (param_1 < 2) { pFVar6 = *(FILE **)PTR_stderr_00159fe0; uVar7 = *param_2; __format = "Usage: %s [options] <method> <params> > proof.ssz\n\n -c <chain_id> : selected chain (default MAINNET = 1)\n -t <testname> : generates test files in test/data/<testname>\n -x <cachedir> : caches all reguests in the cache directory\n -o <outputfile> : ssz file with the proof ( default to stdout )\n -i : include code in the proof\n\n" ; } else { local_48 = 0; uStack_40 = 0; local_38 = 0; buffer_add_chars(&local_48,&DAT_0013d162); uVar9 = 1; local_58 = (byte *)0x0; iVar3 = 1; local_5c = 0; local_50 = (char *)0x0; do { iVar8 = (int)uVar9; __s1 = (byte *)param_2[iVar8]; bVar2 = *__s1; if (bVar2 == 0x2d) { while( true ) { while( true ) { __s1 = __s1 + 1; bVar2 = *__s1; iVar8 = (int)uVar9; if (bVar2 != 99) break; uVar9 = (ulong)(iVar8 + 1U); iVar3 = atoi((char *)param_2[(int)(iVar8 + 1U)]); } pbVar1 = local_58; if (bVar2 == 0) break; if (bVar2 == 0x69) { local_5c = 1; } else { if (bVar2 != 0x6f) { fprintf(*(FILE **)PTR_stderr_00159fe0,"Unknown option: %c\n", (ulong)(uint)(int)(char)bVar2); goto LAB_00105904; } uVar9 = (ulong)(iVar8 + 1); local_50 = (char *)param_2[uVar9]; } } } else { pbVar1 = __s1; if (local_58 != (byte *)0x0) { if (1 < (uint)local_48) { buffer_add_chars(&local_48,&DAT_0013dd8f); __s1 = (byte *)param_2[iVar8]; bVar2 = *__s1; } if ((((bVar2 | 0x20) == 0x7b) || (iVar4 = strcmp((char *)__s1,"true"), iVar4 == 0)) || (iVar4 = strcmp((char *)__s1,"false"), iVar4 == 0)) { buffer_add_chars(&local_48,__s1); pbVar1 = local_58; } else { bprintf(&local_48,&DAT_0013d183,__s1); pbVar1 = local_58; } } } local_58 = pbVar1; uVar9 = (ulong)(iVar8 + 1U); } while ((int)(iVar8 + 1U) < param_1); buffer_add_chars(&local_48,"]"); lVar5 = c4_proofer_create(local_58,uStack_40,iVar3,local_5c); while( true ) { while (iVar3 = c4_proofer_execute(lVar5), iVar3 == 2) { curl_fetch_all(lVar5 + 0x38); } if (iVar3 == -1) break; if (iVar3 == 0) { if (local_50 == (char *)0x0) { fwrite(*(void **)(lVar5 + 0x28),1,(ulong)*(uint *)(lVar5 + 0x20), *(FILE **)PTR_stdout_00159fd8); } else { pFVar6 = fopen(local_50,"wb"); bytes_write(*(int4 *)(lVar5 + 0x20),*(int8 *)(lVar5 + 0x28),pFVar6,1); } fflush(*(FILE **)PTR_stdout_00159fd8); /* WARNING: Subroutine does not return */ exit(0); } } pFVar6 = *(FILE **)PTR_stderr_00159fe0; uVar7 = *(int8 *)(lVar5 + 0x40); __format = "Failed: %s\n"; } fprintf(pFVar6,__format,uVar7); LAB_00105904: /* WARNING: Subroutine does not return */ exit(1); }
29,305
google::protobuf::compiler::python::ContainsPythonKeyword(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/python/helpers.cc
bool ContainsPythonKeyword(const std::string& module_name) { std::vector<std::string> tokens = Split(module_name, "."); for (int i = 0; i < static_cast<int>(tokens.size()); ++i) { if (std::find(kKeywords, kKeywordsEnd, tokens[i]) != kKeywordsEnd) { return true; } } return false; }
O0
cpp
google::protobuf::compiler::python::ContainsPythonKeyword(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): subq $0x68, %rsp movq %rdi, 0x58(%rsp) movq 0x58(%rsp), %rsi leaq 0x30(%rsp), %rdi callq 0x28ad0 movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx leaq 0x40(%rsp), %rdi leaq 0x33f578(%rip), %rcx # 0x400e06 movl $0x1, %r8d callq 0x28a00 movl $0x0, 0x2c(%rsp) movl 0x2c(%rsp), %eax movl %eax, 0x14(%rsp) leaq 0x40(%rsp), %rdi callq 0x28b30 movq %rax, %rcx movl 0x14(%rsp), %eax cmpl %ecx, %eax jge 0xc193b movq 0x43107b(%rip), %rax # 0x4f2940 movq %rax, (%rsp) movslq 0x2c(%rsp), %rsi leaq 0x40(%rsp), %rdi callq 0x28b50 movq (%rsp), %rsi movq %rax, %rdx leaq 0x4293aa(%rip), %rdi # 0x4eac90 callq 0xc2150 movq %rax, 0x8(%rsp) jmp 0xc18f2 movq 0x8(%rsp), %rax cmpq 0x431042(%rip), %rax # 0x4f2940 je 0xc1929 movb $0x1, 0x67(%rsp) movl $0x1, 0x18(%rsp) jmp 0xc1948 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) leaq 0x40(%rsp), %rdi callq 0x28c40 jmp 0xc195d jmp 0xc192b movl 0x2c(%rsp), %eax addl $0x1, %eax movl %eax, 0x2c(%rsp) jmp 0xc18a1 movb $0x0, 0x67(%rsp) movl $0x1, 0x18(%rsp) leaq 0x40(%rsp), %rdi callq 0x28c40 movb 0x67(%rsp), %al andb $0x1, %al addq $0x68, %rsp retq movq 0x20(%rsp), %rdi callq 0x21700 nopw (%rax,%rax)
_ZN6google8protobuf8compiler6python21ContainsPythonKeywordERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 68h mov [rsp+68h+var_10], rdi mov rsi, [rsp+68h+var_10] lea rdi, [rsp+68h+var_38] call _ZN6google8protobuf20stringpiece_internal11StringPieceC2ISaIcEEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcET_EE; google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(std::string const&) mov rsi, [rsp+68h+var_38] mov rdx, [rsp+68h+var_30] lea rdi, [rsp+68h+var_28] lea rcx, aWhichIsNotDefi+77h; "." mov r8d, 1 call _ZN6google8protobuf5SplitB5cxx11ENS0_20stringpiece_internal11StringPieceEPKcb; google::protobuf::Split(google::protobuf::stringpiece_internal::StringPiece,char const*,bool) mov [rsp+68h+var_3C], 0 loc_C18A1: mov eax, [rsp+68h+var_3C] mov [rsp+68h+var_54], eax lea rdi, [rsp+68h+var_28] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void) mov rcx, rax mov eax, [rsp+68h+var_54] cmp eax, ecx jge short loc_C193B mov rax, cs:_ZN6google8protobuf8compiler6python12kKeywordsEndE; google::protobuf::compiler::python::kKeywordsEnd mov [rsp+68h+var_68], rax movsxd rsi, [rsp+68h+var_3C] lea rdi, [rsp+68h+var_28] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm; std::vector<std::string>::operator[](ulong) mov rsi, [rsp+68h+var_68] mov rdx, rax lea rdi, _ZN6google8protobuf8compiler6pythonL9kKeywordsE; google::protobuf::compiler::python::kKeywords call _ZSt4findIPKPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEET_SA_SA_RKT0_; std::find<char const* const*,std::string>(char const* const*,char const* const*,std::string const&) mov [rsp+68h+var_60], rax jmp short $+2 loc_C18F2: mov rax, [rsp+68h+var_60] cmp rax, cs:_ZN6google8protobuf8compiler6python12kKeywordsEndE; google::protobuf::compiler::python::kKeywordsEnd jz short loc_C1929 mov [rsp+68h+var_1], 1 mov [rsp+68h+var_50], 1 jmp short loc_C1948 mov rcx, rax mov eax, edx mov [rsp+arg_18], rcx mov [rsp+arg_14], eax lea rdi, [rsp+arg_38] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_C195D loc_C1929: jmp short $+2 loc_C192B: mov eax, [rsp+68h+var_3C] add eax, 1 mov [rsp+68h+var_3C], eax jmp loc_C18A1 loc_C193B: mov [rsp+68h+var_1], 0 mov [rsp+68h+var_50], 1 loc_C1948: lea rdi, [rsp+68h+var_28] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov al, [rsp+68h+var_1] and al, 1 add rsp, 68h retn loc_C195D: mov rdi, [rsp+arg_18] call __Unwind_Resume
char google::protobuf::compiler::python::ContainsPythonKeyword(unsigned long long a1) { long long v1; // rax long long *v3; // [rsp+0h] [rbp-68h] int i; // [rsp+2Ch] [rbp-3Ch] long long v5[2]; // [rsp+30h] [rbp-38h] BYREF long long v6[4]; // [rsp+40h] [rbp-28h] BYREF char v7; // [rsp+67h] [rbp-1h] v6[3] = a1; google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(v5, a1); google::protobuf::Split[abi:cxx11]((long long)v6, v5[0], v5[1], (long long)".", 1); for ( i = 0; i < (int)std::vector<std::string>::size(v6); ++i ) { v3 = google::protobuf::compiler::python::kKeywordsEnd; v1 = std::vector<std::string>::operator[](v6, i); if ( (long long *)std::find<char const* const*,std::string>(&google::protobuf::compiler::python::kKeywords, v3, v1) != google::protobuf::compiler::python::kKeywordsEnd ) { v7 = 1; goto LABEL_7; } } v7 = 0; LABEL_7: std::vector<std::string>::~vector(v6); return v7 & 1; }
ContainsPythonKeyword: SUB RSP,0x68 MOV qword ptr [RSP + 0x58],RDI MOV RSI,qword ptr [RSP + 0x58] LEA RDI,[RSP + 0x30] CALL 0x00128ad0 MOV RSI,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x38] LEA RDI,[RSP + 0x40] LEA RCX,[0x500e06] MOV R8D,0x1 CALL 0x00128a00 MOV dword ptr [RSP + 0x2c],0x0 LAB_001c18a1: MOV EAX,dword ptr [RSP + 0x2c] MOV dword ptr [RSP + 0x14],EAX LEA RDI,[RSP + 0x40] CALL 0x00128b30 MOV RCX,RAX MOV EAX,dword ptr [RSP + 0x14] CMP EAX,ECX JGE 0x001c193b MOV RAX,qword ptr [0x005f2940] MOV qword ptr [RSP],RAX MOVSXD RSI,dword ptr [RSP + 0x2c] LEA RDI,[RSP + 0x40] CALL 0x00128b50 MOV RSI,qword ptr [RSP] MOV RDX,RAX LAB_001c18df: LEA RDI,[0x5eac90] CALL 0x001c2150 LAB_001c18eb: MOV qword ptr [RSP + 0x8],RAX JMP 0x001c18f2 LAB_001c18f2: MOV RAX,qword ptr [RSP + 0x8] CMP RAX,qword ptr [0x005f2940] JZ 0x001c1929 MOV byte ptr [RSP + 0x67],0x1 MOV dword ptr [RSP + 0x18],0x1 JMP 0x001c1948 LAB_001c1929: JMP 0x001c192b LAB_001c192b: MOV EAX,dword ptr [RSP + 0x2c] ADD EAX,0x1 MOV dword ptr [RSP + 0x2c],EAX JMP 0x001c18a1 LAB_001c193b: MOV byte ptr [RSP + 0x67],0x0 MOV dword ptr [RSP + 0x18],0x1 LAB_001c1948: LEA RDI,[RSP + 0x40] CALL 0x00128c40 MOV AL,byte ptr [RSP + 0x67] AND AL,0x1 ADD RSP,0x68 RET
/* google::protobuf::compiler::python::ContainsPythonKeyword(std::__cxx11::string const&) */ ulong google::protobuf::compiler::python::ContainsPythonKeyword(string *param_1) { int *puVar1; int iVar2; string *psVar3; char **ppcVar4; int8 uVar5; int local_3c; int8 local_38; int8 local_30; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_28 [24]; string *local_10; int1 local_1; local_10 = param_1; stringpiece_internal::StringPiece::StringPiece<std::allocator<char>> ((StringPiece *)&local_38,param_1); Split_abi_cxx11_(local_28,local_38,local_30,".",1); local_3c = 0; do { iVar2 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size(local_28); puVar1 = kKeywordsEnd; if (iVar2 <= local_3c) { local_1 = 0; LAB_001c1948: uVar5 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector (local_28); return CONCAT71((int7)((ulong)uVar5 >> 8),local_1) & 0xffffffffffffff01; } psVar3 = (string *) std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::operator[] (local_28,(long)local_3c); /* try { // try from 001c18df to 001c18ea has its CatchHandler @ 001c190f */ ppcVar4 = std::find<char_const*const*,std::__cxx11::string> ((char **)kKeywords,(char **)puVar1,psVar3); if (ppcVar4 != (char **)kKeywordsEnd) { local_1 = 1; goto LAB_001c1948; } local_3c = local_3c + 1; } while( true ); }
29,306
AssetStore::clean()
GhostEscape/src/core/asset_store.cpp
void AssetStore::clean() { for (auto &texture : textures_) { SDL_DestroyTexture(texture.second); } textures_.clear(); for (auto &sound : sounds_) { Mix_FreeChunk(sound.second); } sounds_.clear(); for (auto &music : music_) { Mix_FreeMusic(music.second); } music_.clear(); for (auto &font : fonts_) { TTF_CloseFont(font.second); } fonts_.clear(); }
O0
cpp
AssetStore::clean(): pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x90(%rbp) addq $0x8, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0xac80 movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0xacb0 movq %rax, -0x20(%rbp) leaq -0x18(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0xace0 testb $0x1, %al jne 0xa31f jmp 0xa344 leaq -0x18(%rbp), %rdi callq 0xad10 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq 0x20(%rax), %rdi callq 0x6360 leaq -0x18(%rbp), %rdi callq 0xad50 jmp 0xa30c movq -0x90(%rbp), %rdi addq $0x8, %rdi callq 0xad80 movq -0x90(%rbp), %rax addq $0x40, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rdi callq 0xada0 movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rdi callq 0xadd0 movq %rax, -0x40(%rbp) leaq -0x38(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xae00 testb $0x1, %al jne 0xa390 jmp 0xa3b5 leaq -0x38(%rbp), %rdi callq 0xae30 movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movq 0x20(%rax), %rdi callq 0x62f0 leaq -0x38(%rbp), %rdi callq 0xae70 jmp 0xa37d movq -0x90(%rbp), %rdi addq $0x40, %rdi callq 0xaea0 movq -0x90(%rbp), %rax addq $0x78, %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rdi callq 0xaec0 movq %rax, -0x58(%rbp) movq -0x50(%rbp), %rdi callq 0xaef0 movq %rax, -0x60(%rbp) leaq -0x58(%rbp), %rdi leaq -0x60(%rbp), %rsi callq 0xaf20 testb $0x1, %al jne 0xa401 jmp 0xa426 leaq -0x58(%rbp), %rdi callq 0xaf50 movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax movq 0x20(%rax), %rdi callq 0x60b0 leaq -0x58(%rbp), %rdi callq 0xaf90 jmp 0xa3ee movq -0x90(%rbp), %rdi addq $0x78, %rdi callq 0xafc0 movq -0x90(%rbp), %rax addq $0xb0, %rax movq %rax, -0x70(%rbp) movq -0x70(%rbp), %rdi callq 0xafe0 movq %rax, -0x78(%rbp) movq -0x70(%rbp), %rdi callq 0xb010 movq %rax, -0x80(%rbp) leaq -0x78(%rbp), %rdi leaq -0x80(%rbp), %rsi callq 0xb040 testb $0x1, %al jne 0xa474 jmp 0xa49f leaq -0x78(%rbp), %rdi callq 0xb070 movq %rax, -0x88(%rbp) movq -0x88(%rbp), %rax movq 0x20(%rax), %rdi callq 0x6740 leaq -0x78(%rbp), %rdi callq 0xb0b0 jmp 0xa461 movq -0x90(%rbp), %rdi addq $0xb0, %rdi callq 0xb0e0 addq $0x90, %rsp popq %rbp retq nopl (%rax,%rax)
_ZN10AssetStore5cleanEv: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_90], rax add rax, 8 mov [rbp+var_10], rax mov rdi, [rbp+var_10] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11SDL_TextureSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE5beginEv; std::unordered_map<std::string,SDL_Texture *>::begin(void) mov [rbp+var_18], rax mov rdi, [rbp+var_10] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11SDL_TextureSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv; std::unordered_map<std::string,SDL_Texture *>::end(void) mov [rbp+var_20], rax loc_A30C: lea rdi, [rbp+var_18] lea rsi, [rbp+var_20] call _ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11SDL_TextureELb1EEESE_; std::__detail::operator!=(std::__detail::_Node_iterator_base<std::pair<std::string const,SDL_Texture *>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,SDL_Texture *>,true> const&) test al, 1 jnz short loc_A31F jmp short loc_A344 loc_A31F: lea rdi, [rbp+var_18] call _ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11SDL_TextureELb0ELb1EEdeEv; std::__detail::_Node_iterator<std::pair<std::string const,SDL_Texture *>,false,true>::operator*(void) mov [rbp+var_28], rax mov rax, [rbp+var_28] mov rdi, [rax+20h] call _SDL_DestroyTexture lea rdi, [rbp+var_18] call _ZNSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11SDL_TextureELb0ELb1EEppEv; std::__detail::_Node_iterator<std::pair<std::string const,SDL_Texture *>,false,true>::operator++(void) jmp short loc_A30C loc_A344: mov rdi, [rbp+var_90] add rdi, 8 call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11SDL_TextureSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE5clearEv; std::unordered_map<std::string,SDL_Texture *>::clear(void) mov rax, [rbp+var_90] add rax, 40h ; '@' mov [rbp+var_30], rax mov rdi, [rbp+var_30] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE5beginEv; std::unordered_map<std::string,Mix_Chunk *>::begin(void) mov [rbp+var_38], rax mov rdi, [rbp+var_30] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv; std::unordered_map<std::string,Mix_Chunk *>::end(void) mov [rbp+var_40], rax loc_A37D: lea rdi, [rbp+var_38] lea rsi, [rbp+var_40] call _ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkELb1EEESE_; std::__detail::operator!=(std::__detail::_Node_iterator_base<std::pair<std::string const,Mix_Chunk *>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,Mix_Chunk *>,true> const&) test al, 1 jnz short loc_A390 jmp short loc_A3B5 loc_A390: lea rdi, [rbp+var_38] call _ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkELb0ELb1EEdeEv; std::__detail::_Node_iterator<std::pair<std::string const,Mix_Chunk *>,false,true>::operator*(void) mov [rbp+var_48], rax mov rax, [rbp+var_48] mov rdi, [rax+20h] call _Mix_FreeChunk lea rdi, [rbp+var_38] call _ZNSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkELb0ELb1EEppEv; std::__detail::_Node_iterator<std::pair<std::string const,Mix_Chunk *>,false,true>::operator++(void) jmp short loc_A37D loc_A3B5: mov rdi, [rbp+var_90] add rdi, 40h ; '@' call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE5clearEv; std::unordered_map<std::string,Mix_Chunk *>::clear(void) mov rax, [rbp+var_90] add rax, 78h ; 'x' mov [rbp+var_50], rax mov rdi, [rbp+var_50] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_MusicSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE5beginEv; std::unordered_map<std::string,Mix_Music *>::begin(void) mov [rbp+var_58], rax mov rdi, [rbp+var_50] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_MusicSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv; std::unordered_map<std::string,Mix_Music *>::end(void) mov [rbp+var_60], rax loc_A3EE: lea rdi, [rbp+var_58] lea rsi, [rbp+var_60] call _ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_MusicELb1EEESE_; std::__detail::operator!=(std::__detail::_Node_iterator_base<std::pair<std::string const,Mix_Music *>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,Mix_Music *>,true> const&) test al, 1 jnz short loc_A401 jmp short loc_A426 loc_A401: lea rdi, [rbp+var_58] call _ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_MusicELb0ELb1EEdeEv; std::__detail::_Node_iterator<std::pair<std::string const,Mix_Music *>,false,true>::operator*(void) mov [rbp+var_68], rax mov rax, [rbp+var_68] mov rdi, [rax+20h] call _Mix_FreeMusic lea rdi, [rbp+var_58] call _ZNSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_MusicELb0ELb1EEppEv; std::__detail::_Node_iterator<std::pair<std::string const,Mix_Music *>,false,true>::operator++(void) jmp short loc_A3EE loc_A426: mov rdi, [rbp+var_90] add rdi, 78h ; 'x' call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_MusicSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE5clearEv; std::unordered_map<std::string,Mix_Music *>::clear(void) mov rax, [rbp+var_90] add rax, 0B0h mov [rbp+var_70], rax mov rdi, [rbp+var_70] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP8TTF_FontSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE5beginEv; std::unordered_map<std::string,TTF_Font *>::begin(void) mov [rbp+var_78], rax mov rdi, [rbp+var_70] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP8TTF_FontSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv; std::unordered_map<std::string,TTF_Font *>::end(void) mov [rbp+var_80], rax loc_A461: lea rdi, [rbp+var_78] lea rsi, [rbp+var_80] call _ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP8TTF_FontELb1EEESE_; std::__detail::operator!=(std::__detail::_Node_iterator_base<std::pair<std::string const,TTF_Font *>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,TTF_Font *>,true> const&) test al, 1 jnz short loc_A474 jmp short loc_A49F loc_A474: lea rdi, [rbp+var_78] call _ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP8TTF_FontELb0ELb1EEdeEv; std::__detail::_Node_iterator<std::pair<std::string const,TTF_Font *>,false,true>::operator*(void) mov [rbp+var_88], rax mov rax, [rbp+var_88] mov rdi, [rax+20h] call _TTF_CloseFont lea rdi, [rbp+var_78] call _ZNSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP8TTF_FontELb0ELb1EEppEv; std::__detail::_Node_iterator<std::pair<std::string const,TTF_Font *>,false,true>::operator++(void) jmp short loc_A461 loc_A49F: mov rdi, [rbp+var_90] add rdi, 0B0h call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP8TTF_FontSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE5clearEv; std::unordered_map<std::string,TTF_Font *>::clear(void) add rsp, 90h pop rbp retn
long long AssetStore::clean(AssetStore *this) { long long v2; // [rsp+8h] [rbp-88h] long long v3; // [rsp+10h] [rbp-80h] BYREF _QWORD v4[2]; // [rsp+18h] [rbp-78h] BYREF long long v5; // [rsp+28h] [rbp-68h] long long v6; // [rsp+30h] [rbp-60h] BYREF _QWORD v7[2]; // [rsp+38h] [rbp-58h] BYREF long long v8; // [rsp+48h] [rbp-48h] long long v9; // [rsp+50h] [rbp-40h] BYREF _QWORD v10[2]; // [rsp+58h] [rbp-38h] BYREF long long v11; // [rsp+68h] [rbp-28h] long long v12; // [rsp+70h] [rbp-20h] BYREF _QWORD v13[3]; // [rsp+78h] [rbp-18h] BYREF v13[2] = this; v13[1] = (char *)this + 8; v13[0] = std::unordered_map<std::string,SDL_Texture *>::begin((char *)this + 8); v12 = std::unordered_map<std::string,SDL_Texture *>::end((char *)this + 8); while ( (std::__detail::operator!=(v13, &v12) & 1) != 0 ) { v11 = std::__detail::_Node_iterator<std::pair<std::string const,SDL_Texture *>,false,true>::operator*(v13); SDL_DestroyTexture(*(_QWORD *)(v11 + 32)); std::__detail::_Node_iterator<std::pair<std::string const,SDL_Texture *>,false,true>::operator++(v13); } std::unordered_map<std::string,SDL_Texture *>::clear((char *)this + 8); v10[1] = (char *)this + 64; v10[0] = std::unordered_map<std::string,Mix_Chunk *>::begin((char *)this + 64); v9 = std::unordered_map<std::string,Mix_Chunk *>::end((char *)this + 64); while ( (std::__detail::operator!=(v10, &v9) & 1) != 0 ) { v8 = std::__detail::_Node_iterator<std::pair<std::string const,Mix_Chunk *>,false,true>::operator*(v10); Mix_FreeChunk(*(_QWORD *)(v8 + 32)); std::__detail::_Node_iterator<std::pair<std::string const,Mix_Chunk *>,false,true>::operator++(v10); } std::unordered_map<std::string,Mix_Chunk *>::clear((char *)this + 64); v7[1] = (char *)this + 120; v7[0] = std::unordered_map<std::string,Mix_Music *>::begin((char *)this + 120); v6 = std::unordered_map<std::string,Mix_Music *>::end((char *)this + 120); while ( (std::__detail::operator!=(v7, &v6) & 1) != 0 ) { v5 = std::__detail::_Node_iterator<std::pair<std::string const,Mix_Music *>,false,true>::operator*(v7); Mix_FreeMusic(*(_QWORD *)(v5 + 32)); std::__detail::_Node_iterator<std::pair<std::string const,Mix_Music *>,false,true>::operator++(v7); } std::unordered_map<std::string,Mix_Music *>::clear((char *)this + 120); v4[1] = (char *)this + 176; v4[0] = std::unordered_map<std::string,TTF_Font *>::begin((char *)this + 176); v3 = std::unordered_map<std::string,TTF_Font *>::end((char *)this + 176); while ( (std::__detail::operator!=(v4, &v3) & 1) != 0 ) { v2 = std::__detail::_Node_iterator<std::pair<std::string const,TTF_Font *>,false,true>::operator*(v4); TTF_CloseFont(*(_QWORD *)(v2 + 32)); std::__detail::_Node_iterator<std::pair<std::string const,TTF_Font *>,false,true>::operator++(v4); } return std::unordered_map<std::string,TTF_Font *>::clear((char *)this + 176); }
clean: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x90],RAX ADD RAX,0x8 MOV qword ptr [RBP + -0x10],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0010ac80 MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0010acb0 MOV qword ptr [RBP + -0x20],RAX LAB_0010a30c: LEA RDI,[RBP + -0x18] LEA RSI,[RBP + -0x20] CALL 0x0010ace0 TEST AL,0x1 JNZ 0x0010a31f JMP 0x0010a344 LAB_0010a31f: LEA RDI,[RBP + -0x18] CALL 0x0010ad10 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX + 0x20] CALL 0x00106360 LEA RDI,[RBP + -0x18] CALL 0x0010ad50 JMP 0x0010a30c LAB_0010a344: MOV RDI,qword ptr [RBP + -0x90] ADD RDI,0x8 CALL 0x0010ad80 MOV RAX,qword ptr [RBP + -0x90] ADD RAX,0x40 MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x30] CALL 0x0010ada0 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x30] CALL 0x0010add0 MOV qword ptr [RBP + -0x40],RAX LAB_0010a37d: LEA RDI,[RBP + -0x38] LEA RSI,[RBP + -0x40] CALL 0x0010ae00 TEST AL,0x1 JNZ 0x0010a390 JMP 0x0010a3b5 LAB_0010a390: LEA RDI,[RBP + -0x38] CALL 0x0010ae30 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RAX + 0x20] CALL 0x001062f0 LEA RDI,[RBP + -0x38] CALL 0x0010ae70 JMP 0x0010a37d LAB_0010a3b5: MOV RDI,qword ptr [RBP + -0x90] ADD RDI,0x40 CALL 0x0010aea0 MOV RAX,qword ptr [RBP + -0x90] ADD RAX,0x78 MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x50] CALL 0x0010aec0 MOV qword ptr [RBP + -0x58],RAX MOV RDI,qword ptr [RBP + -0x50] CALL 0x0010aef0 MOV qword ptr [RBP + -0x60],RAX LAB_0010a3ee: LEA RDI,[RBP + -0x58] LEA RSI,[RBP + -0x60] CALL 0x0010af20 TEST AL,0x1 JNZ 0x0010a401 JMP 0x0010a426 LAB_0010a401: LEA RDI,[RBP + -0x58] CALL 0x0010af50 MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x68] MOV RDI,qword ptr [RAX + 0x20] CALL 0x001060b0 LEA RDI,[RBP + -0x58] CALL 0x0010af90 JMP 0x0010a3ee LAB_0010a426: MOV RDI,qword ptr [RBP + -0x90] ADD RDI,0x78 CALL 0x0010afc0 MOV RAX,qword ptr [RBP + -0x90] ADD RAX,0xb0 MOV qword ptr [RBP + -0x70],RAX MOV RDI,qword ptr [RBP + -0x70] CALL 0x0010afe0 MOV qword ptr [RBP + -0x78],RAX MOV RDI,qword ptr [RBP + -0x70] CALL 0x0010b010 MOV qword ptr [RBP + -0x80],RAX LAB_0010a461: LEA RDI,[RBP + -0x78] LEA RSI,[RBP + -0x80] CALL 0x0010b040 TEST AL,0x1 JNZ 0x0010a474 JMP 0x0010a49f LAB_0010a474: LEA RDI,[RBP + -0x78] CALL 0x0010b070 MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x88] MOV RDI,qword ptr [RAX + 0x20] CALL 0x00106740 LEA RDI,[RBP + -0x78] CALL 0x0010b0b0 JMP 0x0010a461 LAB_0010a49f: MOV RDI,qword ptr [RBP + -0x90] ADD RDI,0xb0 CALL 0x0010b0e0 ADD RSP,0x90 POP RBP RET
/* AssetStore::clean() */ void __thiscall AssetStore::clean(AssetStore *this) { ulong uVar1; long lVar2; int8 local_88; int8 local_80; unordered_map<std::__cxx11::string,TTF_Font*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,TTF_Font*>>> *local_78; long local_70; int8 local_68; int8 local_60; unordered_map<std::__cxx11::string,Mix_Music*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Music*>>> *local_58; long local_50; int8 local_48; int8 local_40; unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>> *local_38; long local_30; int8 local_28; int8 local_20; unordered_map<std::__cxx11::string,SDL_Texture*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>> *local_18; AssetStore *local_10; local_18 = (unordered_map<std::__cxx11::string,SDL_Texture*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>> *)(this + 8); local_10 = this; local_20 = std:: unordered_map<std::__cxx11::string,SDL_Texture*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>> ::begin(local_18); local_28 = std:: unordered_map<std::__cxx11::string,SDL_Texture*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>> ::end(); while( true ) { uVar1 = std::__detail::operator!= ((_Node_iterator_base *)&local_20,(_Node_iterator_base *)&local_28); if ((uVar1 & 1) == 0) break; local_30 = std::__detail:: _Node_iterator<std::pair<std::__cxx11::string_const,SDL_Texture*>,false,true>:: operator*((_Node_iterator<std::pair<std::__cxx11::string_const,SDL_Texture*>,false,true> *)&local_20); SDL_DestroyTexture(*(int8 *)(local_30 + 0x20)); std::__detail::_Node_iterator<std::pair<std::__cxx11::string_const,SDL_Texture*>,false,true>:: operator++((_Node_iterator<std::pair<std::__cxx11::string_const,SDL_Texture*>,false,true> *) &local_20); } std:: unordered_map<std::__cxx11::string,SDL_Texture*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>> ::clear((unordered_map<std::__cxx11::string,SDL_Texture*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>> *)(this + 8)); local_38 = (unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>> *)(this + 0x40); local_40 = std:: unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>> ::begin(local_38); local_48 = std:: unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>> ::end(); while( true ) { uVar1 = std::__detail::operator!= ((_Node_iterator_base *)&local_40,(_Node_iterator_base *)&local_48); if ((uVar1 & 1) == 0) break; local_50 = std::__detail:: _Node_iterator<std::pair<std::__cxx11::string_const,Mix_Chunk*>,false,true>:: operator*((_Node_iterator<std::pair<std::__cxx11::string_const,Mix_Chunk*>,false,true> *)&local_40); Mix_FreeChunk(*(int8 *)(local_50 + 0x20)); std::__detail::_Node_iterator<std::pair<std::__cxx11::string_const,Mix_Chunk*>,false,true>:: operator++((_Node_iterator<std::pair<std::__cxx11::string_const,Mix_Chunk*>,false,true> *) &local_40); } std:: unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>> ::clear((unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>> *)(this + 0x40)); local_58 = (unordered_map<std::__cxx11::string,Mix_Music*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Music*>>> *)(this + 0x78); local_60 = std:: unordered_map<std::__cxx11::string,Mix_Music*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Music*>>> ::begin(local_58); local_68 = std:: unordered_map<std::__cxx11::string,Mix_Music*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Music*>>> ::end(); while( true ) { uVar1 = std::__detail::operator!= ((_Node_iterator_base *)&local_60,(_Node_iterator_base *)&local_68); if ((uVar1 & 1) == 0) break; local_70 = std::__detail:: _Node_iterator<std::pair<std::__cxx11::string_const,Mix_Music*>,false,true>:: operator*((_Node_iterator<std::pair<std::__cxx11::string_const,Mix_Music*>,false,true> *)&local_60); Mix_FreeMusic(*(int8 *)(local_70 + 0x20)); std::__detail::_Node_iterator<std::pair<std::__cxx11::string_const,Mix_Music*>,false,true>:: operator++((_Node_iterator<std::pair<std::__cxx11::string_const,Mix_Music*>,false,true> *) &local_60); } std:: unordered_map<std::__cxx11::string,Mix_Music*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Music*>>> ::clear((unordered_map<std::__cxx11::string,Mix_Music*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Music*>>> *)(this + 0x78)); local_78 = (unordered_map<std::__cxx11::string,TTF_Font*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,TTF_Font*>>> *)(this + 0xb0); local_80 = std:: unordered_map<std::__cxx11::string,TTF_Font*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,TTF_Font*>>> ::begin(local_78); local_88 = std:: unordered_map<std::__cxx11::string,TTF_Font*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,TTF_Font*>>> ::end(); while( true ) { uVar1 = std::__detail::operator!= ((_Node_iterator_base *)&local_80,(_Node_iterator_base *)&local_88); if ((uVar1 & 1) == 0) break; lVar2 = std::__detail:: _Node_iterator<std::pair<std::__cxx11::string_const,TTF_Font*>,false,true>::operator* ((_Node_iterator<std::pair<std::__cxx11::string_const,TTF_Font*>,false,true> * )&local_80); TTF_CloseFont(*(int8 *)(lVar2 + 0x20)); std::__detail::_Node_iterator<std::pair<std::__cxx11::string_const,TTF_Font*>,false,true>:: operator++((_Node_iterator<std::pair<std::__cxx11::string_const,TTF_Font*>,false,true> *) &local_80); } std:: unordered_map<std::__cxx11::string,TTF_Font*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,TTF_Font*>>> ::clear((unordered_map<std::__cxx11::string,TTF_Font*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,TTF_Font*>>> *)(this + 0xb0)); return; }
29,307
AssetStore::clean()
GhostEscape/src/core/asset_store.cpp
void AssetStore::clean() { for (auto &texture : textures_) { SDL_DestroyTexture(texture.second); } textures_.clear(); for (auto &sound : sounds_) { Mix_FreeChunk(sound.second); } sounds_.clear(); for (auto &music : music_) { Mix_FreeMusic(music.second); } music_.clear(); for (auto &font : fonts_) { TTF_CloseFont(font.second); } fonts_.clear(); }
O3
cpp
AssetStore::clean(): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x8(%rdi), %r14 movq 0x18(%rdi), %r15 testq %r15, %r15 je 0x6c18 movq 0x28(%r15), %rdi callq 0x52c0 movq (%r15), %r15 jmp 0x6c05 movq %r14, %rdi callq 0x6aea leaq 0x40(%rbx), %r14 movq 0x50(%rbx), %r15 testq %r15, %r15 je 0x6c3b movq 0x28(%r15), %rdi callq 0x5280 movq (%r15), %r15 jmp 0x6c28 movq %r14, %rdi callq 0x6a34 leaq 0x78(%rbx), %r14 movq 0x88(%rbx), %r15 testq %r15, %r15 je 0x6c61 movq 0x28(%r15), %rdi callq 0x5090 movq (%r15), %r15 jmp 0x6c4e movq %r14, %rdi callq 0x697e movq 0xc0(%rbx), %r14 testq %r14, %r14 je 0x6c83 movq 0x28(%r14), %rdi callq 0x55f0 movq (%r14), %r14 jmp 0x6c70 addq $0xb0, %rbx movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x68c8
_ZN10AssetStore5cleanEv: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi lea r14, [rdi+8] mov r15, [rdi+18h] loc_6C05: test r15, r15 jz short loc_6C18 mov rdi, [r15+28h] call _SDL_DestroyTexture mov r15, [r15] jmp short loc_6C05 loc_6C18: mov rdi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11SDL_TextureESaISA_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE5clearEv; std::_Hashtable<std::string,std::pair<std::string const,SDL_Texture *>,std::allocator<std::pair<std::string const,SDL_Texture *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::clear(void) lea r14, [rbx+40h] mov r15, [rbx+50h] loc_6C28: test r15, r15 jz short loc_6C3B mov rdi, [r15+28h] call _Mix_FreeChunk mov r15, [r15] jmp short loc_6C28 loc_6C3B: mov rdi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P9Mix_ChunkESaISA_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE5clearEv; std::_Hashtable<std::string,std::pair<std::string const,Mix_Chunk *>,std::allocator<std::pair<std::string const,Mix_Chunk *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::clear(void) lea r14, [rbx+78h] mov r15, [rbx+88h] loc_6C4E: test r15, r15 jz short loc_6C61 mov rdi, [r15+28h] call _Mix_FreeMusic mov r15, [r15] jmp short loc_6C4E loc_6C61: mov rdi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P9Mix_MusicESaISA_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE5clearEv; std::_Hashtable<std::string,std::pair<std::string const,Mix_Music *>,std::allocator<std::pair<std::string const,Mix_Music *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::clear(void) mov r14, [rbx+0C0h] loc_6C70: test r14, r14 jz short loc_6C83 mov rdi, [r14+28h] call _TTF_CloseFont mov r14, [r14] jmp short loc_6C70 loc_6C83: add rbx, 0B0h mov rdi, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P8TTF_FontESaISA_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE5clearEv; std::_Hashtable<std::string,std::pair<std::string const,TTF_Font *>,std::allocator<std::pair<std::string const,TTF_Font *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::clear(void)
long long AssetStore::clean(AssetStore *this) { _QWORD *i; // r15 _QWORD *j; // r15 _QWORD *k; // r15 _QWORD *m; // r14 for ( i = (_QWORD *)*((_QWORD *)this + 3); i; i = (_QWORD *)*i ) SDL_DestroyTexture(i[5]); std::_Hashtable<std::string,std::pair<std::string const,SDL_Texture *>,std::allocator<std::pair<std::string const,SDL_Texture *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::clear((_QWORD *)this + 1); for ( j = (_QWORD *)*((_QWORD *)this + 10); j; j = (_QWORD *)*j ) Mix_FreeChunk(j[5]); std::_Hashtable<std::string,std::pair<std::string const,Mix_Chunk *>,std::allocator<std::pair<std::string const,Mix_Chunk *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::clear((_QWORD *)this + 8); for ( k = (_QWORD *)*((_QWORD *)this + 17); k; k = (_QWORD *)*k ) Mix_FreeMusic(k[5]); std::_Hashtable<std::string,std::pair<std::string const,Mix_Music *>,std::allocator<std::pair<std::string const,Mix_Music *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::clear((_QWORD *)this + 15); for ( m = (_QWORD *)*((_QWORD *)this + 24); m; m = (_QWORD *)*m ) TTF_CloseFont(m[5]); return std::_Hashtable<std::string,std::pair<std::string const,TTF_Font *>,std::allocator<std::pair<std::string const,TTF_Font *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::clear((_QWORD *)this + 22); }
clean: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA R14,[RDI + 0x8] MOV R15,qword ptr [RDI + 0x18] LAB_00106c05: TEST R15,R15 JZ 0x00106c18 MOV RDI,qword ptr [R15 + 0x28] CALL 0x001052c0 MOV R15,qword ptr [R15] JMP 0x00106c05 LAB_00106c18: MOV RDI,R14 CALL 0x00106aea LEA R14,[RBX + 0x40] MOV R15,qword ptr [RBX + 0x50] LAB_00106c28: TEST R15,R15 JZ 0x00106c3b MOV RDI,qword ptr [R15 + 0x28] CALL 0x00105280 MOV R15,qword ptr [R15] JMP 0x00106c28 LAB_00106c3b: MOV RDI,R14 CALL 0x00106a34 LEA R14,[RBX + 0x78] MOV R15,qword ptr [RBX + 0x88] LAB_00106c4e: TEST R15,R15 JZ 0x00106c61 MOV RDI,qword ptr [R15 + 0x28] CALL 0x00105090 MOV R15,qword ptr [R15] JMP 0x00106c4e LAB_00106c61: MOV RDI,R14 CALL 0x0010697e MOV R14,qword ptr [RBX + 0xc0] LAB_00106c70: TEST R14,R14 JZ 0x00106c83 MOV RDI,qword ptr [R14 + 0x28] CALL 0x001055f0 MOV R14,qword ptr [R14] JMP 0x00106c70 LAB_00106c83: ADD RBX,0xb0 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x001068c8
/* AssetStore::clean() */ void __thiscall AssetStore::clean(AssetStore *this) { int8 *puVar1; for (puVar1 = *(int8 **)(this + 0x18); puVar1 != (int8 *)0x0; puVar1 = (int8 *)*puVar1) { SDL_DestroyTexture(puVar1[5]); } std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,SDL_Texture*>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::clear((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,SDL_Texture*>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)(this + 8)); for (puVar1 = *(int8 **)(this + 0x50); puVar1 != (int8 *)0x0; puVar1 = (int8 *)*puVar1) { Mix_FreeChunk(puVar1[5]); } std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,Mix_Chunk*>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::clear((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,Mix_Chunk*>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)(this + 0x40)); for (puVar1 = *(int8 **)(this + 0x88); puVar1 != (int8 *)0x0; puVar1 = (int8 *)*puVar1) { Mix_FreeMusic(puVar1[5]); } std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,Mix_Music*>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Music*>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::clear((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,Mix_Music*>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Music*>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)(this + 0x78)); for (puVar1 = *(int8 **)(this + 0xc0); puVar1 != (int8 *)0x0; puVar1 = (int8 *)*puVar1) { TTF_CloseFont(puVar1[5]); } std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,TTF_Font*>,std::allocator<std::pair<std::__cxx11::string_const,TTF_Font*>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::clear((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,TTF_Font*>,std::allocator<std::pair<std::__cxx11::string_const,TTF_Font*>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)(this + 0xb0)); return; }
29,308
mysql_stmt_more_results
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
my_bool STDCALL mysql_stmt_more_results(MYSQL_STMT *stmt) { /* MDEV 4604: Server doesn't set MORE_RESULT flag for OutParam result set, so we need to check for SERVER_MORE_RESULTS_EXIST and for SERVER_PS_OUT_PARAMS) */ return (stmt && stmt->mysql && ((stmt->mysql->server_status & SERVER_MORE_RESULTS_EXIST) || (stmt->mysql->server_status & SERVER_PS_OUT_PARAMS))); }
O0
c
mysql_stmt_more_results: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) xorl %eax, %eax cmpq $0x0, -0x8(%rbp) movb %al, -0x9(%rbp) je 0x2c0f1 movq -0x8(%rbp), %rcx xorl %eax, %eax cmpq $0x0, 0x38(%rcx) movb %al, -0x9(%rbp) je 0x2c0f1 movq -0x8(%rbp), %rax movq 0x38(%rax), %rax movl 0x380(%rax), %ecx andl $0x8, %ecx movb $0x1, %al cmpl $0x0, %ecx movb %al, -0xa(%rbp) jne 0x2c0eb movq -0x8(%rbp), %rax movq 0x38(%rax), %rax movl 0x380(%rax), %eax andl $0x1000, %eax # imm = 0x1000 cmpl $0x0, %eax setne %al movb %al, -0xa(%rbp) movb -0xa(%rbp), %al movb %al, -0x9(%rbp) movb -0x9(%rbp), %al andb $0x1, %al movzbl %al, %eax popq %rbp retq nopl (%rax,%rax)
mysql_stmt_more_results: push rbp mov rbp, rsp mov [rbp+var_8], rdi xor eax, eax cmp [rbp+var_8], 0 mov [rbp+var_9], al jz short loc_2C0F1 mov rcx, [rbp+var_8] xor eax, eax cmp qword ptr [rcx+38h], 0 mov [rbp+var_9], al jz short loc_2C0F1 mov rax, [rbp+var_8] mov rax, [rax+38h] mov ecx, [rax+380h] and ecx, 8 mov al, 1 cmp ecx, 0 mov [rbp+var_A], al jnz short loc_2C0EB mov rax, [rbp+var_8] mov rax, [rax+38h] mov eax, [rax+380h] and eax, 1000h cmp eax, 0 setnz al mov [rbp+var_A], al loc_2C0EB: mov al, [rbp+var_A] mov [rbp+var_9], al loc_2C0F1: mov al, [rbp+var_9] and al, 1 movzx eax, al pop rbp retn
_BOOL8 mysql_stmt_more_results(long long a1) { bool v2; // [rsp+0h] [rbp-Ah] bool v3; // [rsp+1h] [rbp-9h] v3 = 0; if ( a1 ) { v3 = 0; if ( *(_QWORD *)(a1 + 56) ) { v2 = 1; if ( (*(_DWORD *)(*(_QWORD *)(a1 + 56) + 896LL) & 8) == 0 ) return (*(_DWORD *)(*(_QWORD *)(a1 + 56) + 896LL) & 0x1000) != 0; return v2; } } return v3; }
mysql_stmt_more_results: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI XOR EAX,EAX CMP qword ptr [RBP + -0x8],0x0 MOV byte ptr [RBP + -0x9],AL JZ 0x0012c0f1 MOV RCX,qword ptr [RBP + -0x8] XOR EAX,EAX CMP qword ptr [RCX + 0x38],0x0 MOV byte ptr [RBP + -0x9],AL JZ 0x0012c0f1 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x38] MOV ECX,dword ptr [RAX + 0x380] AND ECX,0x8 MOV AL,0x1 CMP ECX,0x0 MOV byte ptr [RBP + -0xa],AL JNZ 0x0012c0eb MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x38] MOV EAX,dword ptr [RAX + 0x380] AND EAX,0x1000 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0xa],AL LAB_0012c0eb: MOV AL,byte ptr [RBP + -0xa] MOV byte ptr [RBP + -0x9],AL LAB_0012c0f1: MOV AL,byte ptr [RBP + -0x9] AND AL,0x1 MOVZX EAX,AL POP RBP RET
bool mysql_stmt_more_results(long param_1) { int1 local_12; int1 local_11; local_11 = false; if ((param_1 != 0) && (local_11 = false, *(long *)(param_1 + 0x38) != 0)) { local_12 = true; if ((*(uint *)(*(long *)(param_1 + 0x38) + 0x380) & 8) == 0) { local_12 = (*(uint *)(*(long *)(param_1 + 0x38) + 0x380) & 0x1000) != 0; } local_11 = local_12; } return local_11; }
29,309
std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::synchronous_factory>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, spdlog::color_mode)
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/sinks/stdout_color_sinks-inl.h
SPDLOG_INLINE std::shared_ptr<logger> stdout_color_mt(const std::string &logger_name, color_mode mode) { return Factory::template create<sinks::stdout_color_sink_mt>(logger_name, mode); }
O3
c
std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::synchronous_factory>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, spdlog::color_mode): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x4(%rsp), %r14 movl %edx, (%r14) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rsi), %rax movq 0x8(%rsi), %rdx addq %rax, %rdx leaq 0x8(%rsp), %r15 movq %r15, %rdi movq %rax, %rsi callq 0x18f38 movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x3b6da movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x3b6a8 movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 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 0x3b6d1 movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 movq %rbx, %rdi callq 0x11760 nop
_ZN6spdlog15stdout_color_mtINS_19synchronous_factoryEEESt10shared_ptrINS_6loggerEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_10color_modeE: push r15 push r14 push r12 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rsp+48h+var_44] mov [r14], edx lea r12, [rsp+48h+var_30] mov [r12-10h], r12 mov rax, [rsi] mov rdx, [rsi+8] add rdx, rax lea r15, [rsp+48h+var_40] mov rdi, r15 mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov rdi, rbx mov rsi, r15 mov rdx, r14 call _ZN6spdlog19synchronous_factory6createINS_5sinks21ansicolor_stdout_sinkINS_7details13console_mutexEEEJRNS_10color_modeEEEESt10shared_ptrINS_6loggerEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT0_; spdlog::synchronous_factory::create<spdlog::sinks::ansicolor_stdout_sink<spdlog::details::console_mutex>,spdlog::color_mode &>(std::string,spdlog::color_mode &) mov rdi, [rsp+48h+var_40]; void * cmp rdi, r12 jz short loc_3B6A8 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3B6A8: 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_3B6D1 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3B6D1: mov rdi, rbx call __Unwind_Resume
long long spdlog::stdout_color_mt<spdlog::synchronous_factory>(long long a1, long long a2, int a3) { int v3; // ecx int v4; // r8d int v5; // r9d int v7; // [rsp+4h] [rbp-44h] BYREF void *v8[2]; // [rsp+8h] [rbp-40h] BYREF _QWORD v9[6]; // [rsp+18h] [rbp-30h] BYREF v7 = a3; v8[0] = v9; std::string::_M_construct<char *>((long long)v8, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); spdlog::synchronous_factory::create<spdlog::sinks::ansicolor_stdout_sink<spdlog::details::console_mutex>,spdlog::color_mode &>( a1, (unsigned int)v8, (unsigned int)&v7, v3, v4, v5); if ( v8[0] != v9 ) operator delete(v8[0], v9[0] + 1LL); return a1; }
stdout_color_mt<spdlog::synchronous_factory>: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RSP + 0x4] MOV dword ptr [R14],EDX LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV RAX,qword ptr [RSI] MOV RDX,qword ptr [RSI + 0x8] ADD RDX,RAX LEA R15,[RSP + 0x8] MOV RDI,R15 MOV RSI,RAX CALL 0x00118f38 LAB_0013b683: MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x0013b6da LAB_0013b691: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x0013b6a8 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00111120 LAB_0013b6a8: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 RET
/* std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::synchronous_factory>(std::__cxx11::string const&, spdlog::color_mode) */ spdlog * __thiscall spdlog::stdout_color_mt<spdlog::synchronous_factory>(spdlog *this,long *param_1,int4 param_3) { int4 local_44; long *local_40 [2]; long local_30 [2]; local_44 = param_3; local_40[0] = local_30; std::__cxx11::string::_M_construct<char*>(local_40,*param_1,param_1[1] + *param_1); /* try { // try from 0013b683 to 0013b690 has its CatchHandler @ 0013b6b7 */ synchronous_factory:: create<spdlog::sinks::ansicolor_stdout_sink<spdlog::details::console_mutex>,spdlog::color_mode&> ((synchronous_factory *)this,local_40,&local_44); if (local_40[0] != local_30) { operator_delete(local_40[0],local_30[0] + 1); } return this; }
29,310
mi_read_rnd_mempack_record
eloqsql/storage/myisam/mi_packrec.c
static int _mi_read_rnd_mempack_record(MI_INFO *info, uchar *buf, register my_off_t filepos, my_bool skip_deleted_blocks __attribute__((unused))) { MI_BLOCK_INFO block_info; MYISAM_SHARE *share=info->s; uchar *pos,*start; DBUG_ENTER("_mi_read_rnd_mempack_record"); if (filepos >= share->state.state.data_file_length) { my_errno=HA_ERR_END_OF_FILE; goto err; } if (!(pos= (uchar*) _mi_mempack_get_block_info(info, &info->bit_buff, &block_info, &info->rec_buff, (uchar*) (start=share->file_map+ filepos)))) goto err; #ifndef DBUG_OFF if (block_info.rec_len > info->s->max_pack_length) { my_errno=HA_ERR_WRONG_IN_RECORD; goto err; } #endif info->packed_length=block_info.rec_len; info->lastpos=filepos; info->nextpos=filepos+(uint) (pos-start)+block_info.rec_len; info->update|= HA_STATE_AKTIV | HA_STATE_KEY_CHANGED; DBUG_RETURN (_mi_pack_rec_unpack(info, &info->bit_buff, buf, pos, block_info.rec_len)); err: DBUG_RETURN(my_errno); }
O3
c
mi_read_rnd_mempack_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq (%rdi), %rax cmpq %rdx, 0x40(%rax) jbe 0xa1797 movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 leaq 0x50(%rdi), %r12 leaq 0x120(%rdi), %rcx movq 0x270(%rax), %r13 addq %rdx, %r13 leaq -0x88(%rbp), %rdx movq %r12, %rsi movq %r13, %r8 callq 0xa30e2 testq %rax, %rax je 0xa17a2 movq -0x70(%rbp), %r8 movq %r8, 0x1b0(%r14) movq %r15, 0x170(%r14) movl %eax, %ecx subl %r13d, %ecx addq %r8, %r15 addq %rcx, %r15 movq %r15, 0x178(%r14) orb $-0x7e, 0x1d0(%r14) movq %fs:0x28, %rcx cmpq -0x30(%rbp), %rcx jne 0xa17c7 movq %r14, %rdi movq %r12, %rsi movq %rbx, %rdx movq %rax, %rcx addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xa113b callq 0xc5c9a movl $0x89, (%rax) callq 0xc5c9a movl (%rax), %eax movq %fs:0x28, %rcx cmpq -0x30(%rbp), %rcx jne 0xa17c7 addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x2b280
_mi_read_rnd_mempack_record: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov rax, fs:28h mov [rbp+var_30], rax mov rax, [rdi] cmp [rax+40h], rdx jbe loc_A1797 mov r15, rdx mov rbx, rsi mov r14, rdi lea r12, [rdi+50h] lea rcx, [rdi+120h] mov r13, [rax+270h] add r13, rdx lea rdx, [rbp+var_88] mov rsi, r12 mov r8, r13 call _mi_mempack_get_block_info test rax, rax jz short loc_A17A2 mov r8, [rbp+var_70] mov [r14+1B0h], r8 mov [r14+170h], r15 mov ecx, eax sub ecx, r13d add r15, r8 add r15, rcx mov [r14+178h], r15 or byte ptr [r14+1D0h], 82h mov rcx, fs:28h cmp rcx, [rbp+var_30] jnz short loc_A17C7 mov rdi, r14 mov rsi, r12 mov rdx, rbx mov rcx, rax add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _mi_pack_rec_unpack loc_A1797: call _my_thread_var mov dword ptr [rax], 89h loc_A17A2: call _my_thread_var mov eax, [rax] mov rcx, fs:28h cmp rcx, [rbp+var_30] jnz short loc_A17C7 add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_A17C7: call ___stack_chk_fail
long long mi_read_rnd_mempack_record(_QWORD *a1, long long a2, unsigned long long a3) { unsigned long long v4; // r13 long long block_info; // rax long long v6; // r8 _BYTE v8[24]; // [rsp+8h] [rbp-88h] BYREF long long v9; // [rsp+20h] [rbp-70h] unsigned long long v10; // [rsp+60h] [rbp-30h] v10 = __readfsqword(0x28u); if ( *(_QWORD *)(*a1 + 64LL) <= a3 ) { *(_DWORD *)my_thread_var(a1) = 137; } else { v4 = a3 + *(_QWORD *)(*a1 + 624LL); block_info = mi_mempack_get_block_info(a1, a1 + 10, v8, a1 + 36, v4); if ( block_info ) { v6 = v9; a1[54] = v9; a1[46] = a3; a1[47] = (unsigned int)(block_info - v4) + v6 + a3; *((_BYTE *)a1 + 464) |= 0x82u; return mi_pack_rec_unpack(a1, (long long)(a1 + 10), a2, block_info, v6); } } return *(unsigned int *)my_thread_var(a1); }
_mi_read_rnd_mempack_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RDI] CMP qword ptr [RAX + 0x40],RDX JBE 0x001a1797 MOV R15,RDX MOV RBX,RSI MOV R14,RDI LEA R12,[RDI + 0x50] LEA RCX,[RDI + 0x120] MOV R13,qword ptr [RAX + 0x270] ADD R13,RDX LEA RDX,[RBP + -0x88] MOV RSI,R12 MOV R8,R13 CALL 0x001a30e2 TEST RAX,RAX JZ 0x001a17a2 MOV R8,qword ptr [RBP + -0x70] MOV qword ptr [R14 + 0x1b0],R8 MOV qword ptr [R14 + 0x170],R15 MOV ECX,EAX SUB ECX,R13D ADD R15,R8 ADD R15,RCX MOV qword ptr [R14 + 0x178],R15 OR byte ptr [R14 + 0x1d0],0x82 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x30] JNZ 0x001a17c7 MOV RDI,R14 MOV RSI,R12 MOV RDX,RBX MOV RCX,RAX ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001a113b LAB_001a1797: CALL 0x001c5c9a MOV dword ptr [RAX],0x89 LAB_001a17a2: CALL 0x001c5c9a MOV EAX,dword ptr [RAX] MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x30] JNZ 0x001a17c7 ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001a17c7: CALL 0x0012b280
ulong _mi_read_rnd_mempack_record(long *param_1,int8 param_2,ulong param_3) { long lVar1; ulong uVar2; int4 *puVar3; uint *puVar4; long lVar5; long in_FS_OFFSET; int1 local_90 [24]; long local_78; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); if (param_3 < *(ulong *)(*param_1 + 0x40)) { lVar5 = *(long *)(*param_1 + 0x270) + param_3; lVar1 = _mi_mempack_get_block_info(param_1,param_1 + 10,local_90,param_1 + 0x24,lVar5); if (lVar1 != 0) { param_1[0x36] = local_78; param_1[0x2e] = param_3; param_1[0x2f] = param_3 + local_78 + (ulong)(uint)((int)lVar1 - (int)lVar5); *(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) | 0x82; if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { uVar2 = _mi_pack_rec_unpack(param_1,param_1 + 10,param_2,lVar1); return uVar2; } goto LAB_001a17c7; } } else { puVar3 = (int4 *)_my_thread_var(); *puVar3 = 0x89; } puVar4 = (uint *)_my_thread_var(); if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return (ulong)*puVar4; } LAB_001a17c7: /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
29,311
ggml_graph_compute.cold.1
monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c
static void clear_numa_thread_affinity(void) { if (!ggml_is_numa()) { return; } size_t setsize = CPU_ALLOC_SIZE(g_state.numa.total_cpus); cpu_set_t * cpus = CPU_ALLOC(g_state.numa.total_cpus); CPU_ZERO_S(setsize, cpus); for (unsigned i = 0; i < g_state.numa.total_cpus; ++i) { CPU_SET_S(i, setsize, cpus); } int rv = pthread_setaffinity_np(pthread_self(), setsize, cpus); if (rv) { fprintf(stderr, "warning: pthread_setaffinity_np() failed: %s\n", strerror(rv)); } CPU_FREE(cpus); }
O3
c
ggml_graph_compute.cold.1: pushq %rbx movq 0x5c323(%rip), %rax # 0x64fc0 movq (%rax), %rbx callq 0x81a0 leaq 0x4af9c(%rip), %rsi # 0x53c48 movq %rbx, %rdi movq %rax, %rdx xorl %eax, %eax callq 0x87c0 popq %rbx retq
ggml_graph_compute_cold_1: push rbx mov rax, cs:stderr_ptr mov rbx, [rax] call _strerror lea rsi, aWarningPthread; "warning: pthread_setaffinity_np() faile"... mov rdi, rbx mov rdx, rax xor eax, eax call _fprintf pop rbx retn
long long ggml_graph_compute_cold_1() { long long v0; // rbx const char *v1; // rax v0 = stderr; v1 = (const char *)strerror(); return fprintf(v0, "warning: pthread_setaffinity_np() failed: %s\n", v1); }
ggml_graph_compute.cold.1: PUSH RBX MOV RAX,qword ptr [0x00164fc0] MOV RBX,qword ptr [RAX] CALL 0x001081a0 LEA RSI,[0x153c48] MOV RDI,RBX MOV RDX,RAX XOR EAX,EAX CALL 0x001087c0 POP RBX RET
void ggml_graph_compute_cold_1(int param_1) { FILE *__stream; char *pcVar1; __stream = *(FILE **)PTR_stderr_00164fc0; pcVar1 = strerror(param_1); fprintf(__stream,"warning: pthread_setaffinity_np() failed: %s\n",pcVar1); return; }
29,312
my_mb_wc_gb2312
eloqsql/strings/ctype-gb2312.c
static int my_mb_wc_gb2312(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e){ int hi; if (s >= e) return MY_CS_TOOSMALL; if ((hi= s[0]) < 0x80) { pwc[0]=hi; return 1; } if (s+2>e) return MY_CS_TOOSMALL2; if (!IS_MB2_CHAR(hi, s[1])) return MY_CS_ILSEQ; if (!(pwc[0]=func_gb2312_uni_onechar(((hi<<8)+s[1])&0x7F7F))) return -2; return 2; }
O0
c
my_mb_wc_gb2312: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x4588e movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x4594c movq -0x20(%rbp), %rax movzbl (%rax), %eax movl %eax, -0x2c(%rbp) cmpl $0x80, %eax jge 0x458b6 movslq -0x2c(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0x4594c movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x458cd movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x4594c movl -0x2c(%rbp), %eax movzbl %al, %ecx movl $0xa1, %eax cmpl %ecx, %eax jg 0x45909 movl -0x2c(%rbp), %eax movzbl %al, %eax cmpl $0xf7, %eax jg 0x45909 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %ecx movl $0xa1, %eax cmpl %ecx, %eax jg 0x45909 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xfe, %eax jle 0x45912 movl $0x0, -0x4(%rbp) jmp 0x4594c movl -0x2c(%rbp), %edi shll $0x8, %edi movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax addl %eax, %edi andl $0x7f7f, %edi # imm = 0x7F7F callq 0x45c60 cltq movq -0x18(%rbp), %rcx movq %rax, (%rcx) cmpq $0x0, %rax jne 0x45945 movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE jmp 0x4594c movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_mb_wc_gb2312: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_4588E mov [rbp+var_4], 0FFFFFF9Bh jmp loc_4594C loc_4588E: mov rax, [rbp+var_20] movzx eax, byte ptr [rax] mov [rbp+var_2C], eax cmp eax, 80h jge short loc_458B6 movsxd rcx, [rbp+var_2C] mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_4594C loc_458B6: mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_458CD mov [rbp+var_4], 0FFFFFF9Ah jmp short loc_4594C loc_458CD: mov eax, [rbp+var_2C] movzx ecx, al mov eax, 0A1h cmp eax, ecx jg short loc_45909 mov eax, [rbp+var_2C] movzx eax, al cmp eax, 0F7h jg short loc_45909 mov rax, [rbp+var_20] movzx ecx, byte ptr [rax+1] mov eax, 0A1h cmp eax, ecx jg short loc_45909 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 0FEh jle short loc_45912 loc_45909: mov [rbp+var_4], 0 jmp short loc_4594C loc_45912: mov edi, [rbp+var_2C] shl edi, 8 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] add edi, eax and edi, 7F7Fh call func_gb2312_uni_onechar cdqe mov rcx, [rbp+var_18] mov [rcx], rax cmp rax, 0 jnz short loc_45945 mov [rbp+var_4], 0FFFFFFFEh jmp short loc_4594C loc_45945: mov [rbp+var_4], 2 loc_4594C: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_mb_wc_gb2312(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4) { int v4; // eax __int16 v6; // [rsp+4h] [rbp-2Ch] if ( (unsigned long long)a3 < a4 ) { v6 = *a3; if ( *a3 >= 0x80u ) { if ( (unsigned long long)(a3 + 2) <= a4 ) { if ( (unsigned __int8)v6 < 0xA1u || (unsigned __int8)v6 > 0xF7u || a3[1] < 0xA1u || a3[1] == 255 ) { return 0; } else { v4 = func_gb2312_uni_onechar((a3[1] + (v6 << 8)) & 0x7F7F); *a2 = v4; if ( v4 ) return 2; else return (unsigned int)-2; } } else { return (unsigned int)-102; } } else { *a2 = *a3; return 1; } } else { return (unsigned int)-101; } }
my_mb_wc_gb2312: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x0014588e MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x0014594c LAB_0014588e: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x80 JGE 0x001458b6 MOVSXD RCX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x0014594c LAB_001458b6: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x001458cd MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x0014594c LAB_001458cd: MOV EAX,dword ptr [RBP + -0x2c] MOVZX ECX,AL MOV EAX,0xa1 CMP EAX,ECX JG 0x00145909 MOV EAX,dword ptr [RBP + -0x2c] MOVZX EAX,AL CMP EAX,0xf7 JG 0x00145909 MOV RAX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RAX + 0x1] MOV EAX,0xa1 CMP EAX,ECX JG 0x00145909 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xfe JLE 0x00145912 LAB_00145909: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0014594c LAB_00145912: MOV EDI,dword ptr [RBP + -0x2c] SHL EDI,0x8 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] ADD EDI,EAX AND EDI,0x7f7f CALL 0x00145c60 CDQE MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RCX],RAX CMP RAX,0x0 JNZ 0x00145945 MOV dword ptr [RBP + -0x4],0xfffffffe JMP 0x0014594c LAB_00145945: MOV dword ptr [RBP + -0x4],0x2 LAB_0014594c: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_mb_wc_gb2312(int8 param_1,long *param_2,byte *param_3,byte *param_4) { uint uVar1; int iVar2; int4 local_c; if (param_3 < param_4) { uVar1 = (uint)*param_3; if (uVar1 < 0x80) { *param_2 = (long)(int)uVar1; local_c = 1; } else if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else if ((((uVar1 < 0xa1) || (0xf7 < uVar1)) || (param_3[1] < 0xa1)) || (param_3[1] == 0xff)) { local_c = 0; } else { iVar2 = func_gb2312_uni_onechar(uVar1 * 0x100 + (uint)param_3[1] & 0x7f7f); *param_2 = (long)iVar2; if ((long)iVar2 == 0) { local_c = 0xfffffffe; } else { local_c = 2; } } } else { local_c = 0xffffff9b; } return local_c; }
29,313
lf_dynarray_iterate
eloqsql/mysys/lf_dynarray.c
int lf_dynarray_iterate(LF_DYNARRAY *array, lf_dynarray_func func, void *arg) { int i, res; for (i= 0; i < LF_DYNARRAY_LEVELS; i++) if ((res= recursive_iterate(array, array->level[i], i, func, arg))) return res; return 0; }
O0
c
lf_dynarray_iterate: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl $0x0, -0x24(%rbp) cmpl $0x4, -0x24(%rbp) jge 0xfd21e movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rax movslq -0x24(%rbp), %rcx movq (%rax,%rcx,8), %rsi movl -0x24(%rbp), %edx movq -0x18(%rbp), %rcx movq -0x20(%rbp), %r8 callq 0xfd230 movl %eax, -0x28(%rbp) cmpl $0x0, %eax je 0xfd211 movl -0x28(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0xfd225 jmp 0xfd213 movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0xfd1db movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nop
lf_dynarray_iterate: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], 0 loc_FD1DB: cmp [rbp+var_24], 4 jge short loc_FD21E mov rdi, [rbp+var_10] mov rax, [rbp+var_10] movsxd rcx, [rbp+var_24] mov rsi, [rax+rcx*8] mov edx, [rbp+var_24] mov rcx, [rbp+var_18] mov r8, [rbp+var_20] call recursive_iterate mov [rbp+var_28], eax cmp eax, 0 jz short loc_FD211 mov eax, [rbp+var_28] mov [rbp+var_4], eax jmp short loc_FD225 loc_FD211: jmp short $+2 loc_FD213: mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp short loc_FD1DB loc_FD21E: mov [rbp+var_4], 0 loc_FD225: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long lf_dynarray_iterate(long long a1, long long a2, long long a3) { unsigned int v4; // [rsp+8h] [rbp-28h] int i; // [rsp+Ch] [rbp-24h] for ( i = 0; i < 4; ++i ) { v4 = recursive_iterate(a1, *(_QWORD *)(a1 + 8LL * i), (unsigned int)i, a2, a3); if ( v4 ) return v4; } return 0; }
lf_dynarray_iterate: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],0x0 LAB_001fd1db: CMP dword ptr [RBP + -0x24],0x4 JGE 0x001fd21e MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x24] MOV RSI,qword ptr [RAX + RCX*0x8] MOV EDX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x20] CALL 0x001fd230 MOV dword ptr [RBP + -0x28],EAX CMP EAX,0x0 JZ 0x001fd211 MOV EAX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x4],EAX JMP 0x001fd225 LAB_001fd211: JMP 0x001fd213 LAB_001fd213: MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x001fd1db LAB_001fd21e: MOV dword ptr [RBP + -0x4],0x0 LAB_001fd225: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int lf_dynarray_iterate(long param_1,int8 param_2,int8 param_3) { int iVar1; int local_2c; local_2c = 0; while( true ) { if (3 < local_2c) { return 0; } iVar1 = recursive_iterate(param_1,*(int8 *)(param_1 + (long)local_2c * 8),local_2c,param_2 ,param_3); if (iVar1 != 0) break; local_2c = local_2c + 1; } return iVar1; }
29,314
get_rowpos_in_head_or_tail_page
eloqsql/storage/maria/ma_blockrec.c
static my_bool get_rowpos_in_head_or_tail_page(MARIA_HA *info, const MARIA_BITMAP_BLOCK *block, uchar *buff, uint length, uint page_type, enum pagecache_page_lock lock, uint rownr, struct st_row_pos_info *res) { MARIA_PINNED_PAGE page_link; MARIA_SHARE *share= info->s; uchar *dir; uint block_size= share->block_size; uint max_entry, max_length, rec_offset; DBUG_ENTER("get_rowpos_in_head_or_tail_page"); if (block->org_bitmap_value == 0) /* Empty block */ { /* New page */ make_empty_page(info, buff, page_type, 0); res->empty_space= block_size - PAGE_HEADER_SIZE(share) - PAGE_SUFFIX_SIZE; } else { page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; buff= pagecache_read(share->pagecache, &info->dfile, block->page, 0, 0, share->page_type, lock, &page_link.link); page_link.changed= buff != 0; push_dynamic(&info->pinned_pages, (void*) &page_link); if (!page_link.changed) /* Read error */ { _ma_set_fatal_error(info, my_errno); DBUG_RETURN(1); } DBUG_ASSERT((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == (uchar) page_type); if ((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) != (uchar) page_type) goto err; res->empty_space= uint2korr(buff + EMPTY_SPACE_OFFSET); } max_entry= (uint) buff[DIR_COUNT_OFFSET]; if (max_entry <= rownr) { if (extend_directory(info, buff, block_size, max_entry, rownr, &res->empty_space, page_type == HEAD_PAGE)) goto err; } /* The following dir entry is unused in case of insert / update but not in case of undo_update / undo_delete */ dir= dir_entry_pos(buff, block_size, rownr); if (extend_area_on_page(info, buff, dir, rownr, length, &res->empty_space, &rec_offset, &max_length, page_type == HEAD_PAGE)) goto err; res->buff= buff; res->rownr= rownr; res->dir= dir; res->data= buff + rec_offset; res->length= length; DBUG_RETURN(0); err: DBUG_ASSERT(!maria_assert_if_crashed_table); _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); /* File crashed */ DBUG_RETURN(1); }
O3
c
get_rowpos_in_head_or_tail_page: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r9, -0x40(%rbp) movl %ecx, -0x2c(%rbp) movq %rdi, %r14 movq (%rdi), %rbx movl 0x7bc(%rbx), %r12d cmpb $0x0, 0x15(%rsi) je 0x4f694 movl %r8d, -0x30(%rbp) leaq -0x60(%rbp), %r15 movl $0x6, 0x8(%r15) movq 0x600(%rbx), %rdi leaq 0x470(%r14), %rax movq (%rsi), %rdx movl 0x7d4(%rbx), %r9d movq %rax, %rsi xorl %ecx, %ecx xorl %r8d, %r8d pushq %r15 pushq $0x4 callq 0x3b0b2 addq $0x10, %rsp movq %rax, %r13 testq %rax, %rax setne 0x10(%r15) leaq 0x2e8(%r14), %rdi movq %r15, %rsi callq 0x919c2 cmpb $0x0, 0x10(%r15) je 0x4f75a movb 0x7(%r13), %al andb $0x7, %al movl -0x30(%rbp), %r8d cmpb %r8b, %al movq -0x40(%rbp), %rbx jne 0x4f750 movzwl 0xa(%r13), %eax jmp 0x4f6bf movq %rdx, %r13 movq %r14, %rdi movq %rdx, %rsi movl %r8d, %edx xorl %ecx, %ecx movl %r8d, %r15d callq 0x4d97e movl %r15d, %r8d movl 0xc18(%rbx), %ecx movl %r12d, %eax subl %ecx, %eax addl $-0x10, %eax movq -0x40(%rbp), %rbx movq 0x10(%rbp), %r15 movl %eax, 0x20(%r15) movzbl 0x8(%r13), %ecx cmpl %ebx, %ecx ja 0x4f705 leaq 0x20(%r15), %r9 xorl %eax, %eax cmpl $0x1, %r8d sete %al subq $0x8, %rsp movq %r14, %rdi movq %r13, %rsi movl %r12d, %edx movl %r8d, %r15d movl %ebx, %r8d pushq %rax callq 0x4da14 movl %r15d, %r8d movq 0x10(%rbp), %r15 addq $0x10, %rsp testb %al, %al jne 0x4f750 addq %r13, %r12 leal (,%rbx,4), %eax subq %rax, %r12 addq $-0x8, %r12 leaq 0x20(%r15), %r9 xorl %eax, %eax cmpl $0x1, %r8d sete %al subq $0x8, %rsp leaq -0x44(%rbp), %r10 leaq -0x34(%rbp), %r11 movq %r14, %rdi movq %r13, %rsi movq %r12, %rdx movl %ebx, %ecx movl -0x2c(%rbp), %r8d pushq %rax pushq %r10 pushq %r11 callq 0x4db8a addq $0x20, %rsp testb %al, %al je 0x4f77a movq %r14, %rdi movl $0x7f, %esi jmp 0x4f764 callq 0xa1ac2 movl (%rax), %esi movq %r14, %rdi callq 0x3fc54 movb $0x1, %al addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r13, (%r15) movl %ebx, 0x1c(%r15) movq %r12, 0x10(%r15) movl -0x34(%rbp), %eax addq %r13, %rax movq %rax, 0x8(%r15) movl -0x2c(%rbp), %eax movl %eax, 0x18(%r15) xorl %eax, %eax jmp 0x4f76b
get_rowpos_in_head_or_tail_page: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_40], r9 mov [rbp+var_2C], ecx mov r14, rdi mov rbx, [rdi] mov r12d, [rbx+7BCh] cmp byte ptr [rsi+15h], 0 jz loc_4F694 mov [rbp+var_30], r8d lea r15, [rbp+var_60] mov dword ptr [r15+8], 6 mov rdi, [rbx+600h] lea rax, [r14+470h] mov rdx, [rsi] mov r9d, [rbx+7D4h] mov rsi, rax xor ecx, ecx xor r8d, r8d push r15 push 4 call pagecache_read add rsp, 10h mov r13, rax test rax, rax setnz byte ptr [r15+10h] lea rdi, [r14+2E8h] mov rsi, r15 call insert_dynamic cmp byte ptr [r15+10h], 0 jz loc_4F75A mov al, [r13+7] and al, 7 mov r8d, [rbp+var_30] cmp al, r8b mov rbx, [rbp+var_40] jnz loc_4F750 movzx eax, word ptr [r13+0Ah] jmp short loc_4F6BF loc_4F694: mov r13, rdx mov rdi, r14 mov rsi, rdx mov edx, r8d xor ecx, ecx mov r15d, r8d call make_empty_page mov r8d, r15d mov ecx, [rbx+0C18h] mov eax, r12d sub eax, ecx add eax, 0FFFFFFF0h mov rbx, [rbp+var_40] loc_4F6BF: mov r15, [rbp+arg_0] mov [r15+20h], eax movzx ecx, byte ptr [r13+8] cmp ecx, ebx ja short loc_4F705 lea r9, [r15+20h] xor eax, eax cmp r8d, 1 setz al sub rsp, 8 mov rdi, r14 mov rsi, r13 mov edx, r12d mov r15d, r8d mov r8d, ebx push rax call extend_directory mov r8d, r15d mov r15, [rbp+arg_0] add rsp, 10h test al, al jnz short loc_4F750 loc_4F705: add r12, r13 lea eax, ds:0[rbx*4] sub r12, rax add r12, 0FFFFFFFFFFFFFFF8h lea r9, [r15+20h] xor eax, eax cmp r8d, 1 setz al sub rsp, 8 lea r10, [rbp+var_44] lea r11, [rbp+var_34] mov rdi, r14 mov rsi, r13 mov rdx, r12 mov ecx, ebx mov r8d, [rbp+var_2C] push rax push r10 push r11 call extend_area_on_page add rsp, 20h test al, al jz short loc_4F77A loc_4F750: mov rdi, r14 mov esi, 7Fh jmp short loc_4F764 loc_4F75A: call _my_thread_var mov esi, [rax] mov rdi, r14 loc_4F764: call _ma_set_fatal_error mov al, 1 loc_4F76B: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4F77A: mov [r15], r13 mov [r15+1Ch], ebx mov [r15+10h], r12 mov eax, [rbp+var_34] add rax, r13 mov [r15+8], rax mov eax, [rbp+var_2C] mov [r15+18h], eax xor eax, eax jmp short loc_4F76B
char get_rowpos_in_head_or_tail_page( long long *a1, long long a2, _BYTE *a3, unsigned int a4, int a5, long long a6, long long a7) { long long v8; // rbx long long v9; // r12 long long v10; // r13 long long *v11; // rdi long long v12; // rdx long long v13; // rcx int v14; // r9d long long v15; // r8 unsigned int v16; // ebx int v17; // eax long long v19; // r15 unsigned int v20; // ecx unsigned int v21; // r15d char v22; // al unsigned __int16 *v23; // r12 long long *v24; // rdi int v25; // esi long long v27; // [rsp+0h] [rbp-60h] BYREF int v28; // [rsp+8h] [rbp-58h] bool v29; // [rsp+10h] [rbp-50h] int v30; // [rsp+1Ch] [rbp-44h] BYREF long long v31; // [rsp+20h] [rbp-40h] unsigned int v32; // [rsp+2Ch] [rbp-34h] BYREF unsigned int v33; // [rsp+30h] [rbp-30h] unsigned int v34; // [rsp+34h] [rbp-2Ch] v31 = a6; v34 = a4; v8 = *a1; v9 = *(unsigned int *)(*a1 + 1980); if ( *(_BYTE *)(a2 + 21) ) { v33 = a5; v28 = 6; v10 = pagecache_read( *(_QWORD *)(v8 + 1536), (long long)(a1 + 142), *(_QWORD *)a2, 0, 0LL, *(_DWORD *)(v8 + 2004), 4u, &v27); v29 = v10 != 0; v11 = a1 + 93; insert_dynamic(a1 + 93, &v27); if ( !v29 ) { v25 = *(_DWORD *)my_thread_var(v11); v24 = a1; goto LABEL_11; } v15 = v33; v16 = v31; if ( (*(_BYTE *)(v10 + 7) & 7) != (_BYTE)v33 ) { LABEL_9: v24 = a1; v25 = 127; LABEL_11: ma_set_fatal_error(v24, v25, v12, v13, v15, v14); return 1; } v17 = *(unsigned __int16 *)(v10 + 10); } else { v10 = (long long)a3; make_empty_page((long long)a1, a3, a5, 0); LODWORD(v15) = a5; v17 = v9 - *(_DWORD *)(v8 + 3096) - 16; v16 = v31; } v19 = a7; *(_DWORD *)(a7 + 32) = v17; v20 = *(unsigned __int8 *)(v10 + 8); if ( v20 <= v16 ) { v21 = v15; v22 = extend_directory(a1, v10, v9, v20, v16, (unsigned int *)(a7 + 32), (_DWORD)v15 == 1); v15 = v21; v19 = a7; if ( v22 ) goto LABEL_9; } v23 = (unsigned __int16 *)(v10 + v9 - 4 * v16 - 8); if ( extend_area_on_page((long long)a1, v10, v23, v16, v34, (_DWORD *)(v19 + 32), &v32, &v30, (_DWORD)v15 == 1) ) goto LABEL_9; *(_QWORD *)v19 = v10; *(_DWORD *)(v19 + 28) = v16; *(_QWORD *)(v19 + 16) = v23; *(_QWORD *)(v19 + 8) = v10 + v32; *(_DWORD *)(v19 + 24) = v34; return 0; }
get_rowpos_in_head_or_tail_page: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV qword ptr [RBP + -0x40],R9 MOV dword ptr [RBP + -0x2c],ECX MOV R14,RDI MOV RBX,qword ptr [RDI] MOV R12D,dword ptr [RBX + 0x7bc] CMP byte ptr [RSI + 0x15],0x0 JZ 0x0014f694 MOV dword ptr [RBP + -0x30],R8D LEA R15,[RBP + -0x60] MOV dword ptr [R15 + 0x8],0x6 MOV RDI,qword ptr [RBX + 0x600] LEA RAX,[R14 + 0x470] MOV RDX,qword ptr [RSI] MOV R9D,dword ptr [RBX + 0x7d4] MOV RSI,RAX XOR ECX,ECX XOR R8D,R8D PUSH R15 PUSH 0x4 CALL 0x0013b0b2 ADD RSP,0x10 MOV R13,RAX TEST RAX,RAX SETNZ byte ptr [R15 + 0x10] LEA RDI,[R14 + 0x2e8] MOV RSI,R15 CALL 0x001919c2 CMP byte ptr [R15 + 0x10],0x0 JZ 0x0014f75a MOV AL,byte ptr [R13 + 0x7] AND AL,0x7 MOV R8D,dword ptr [RBP + -0x30] CMP AL,R8B MOV RBX,qword ptr [RBP + -0x40] JNZ 0x0014f750 MOVZX EAX,word ptr [R13 + 0xa] JMP 0x0014f6bf LAB_0014f694: MOV R13,RDX MOV RDI,R14 MOV RSI,RDX MOV EDX,R8D XOR ECX,ECX MOV R15D,R8D CALL 0x0014d97e MOV R8D,R15D MOV ECX,dword ptr [RBX + 0xc18] MOV EAX,R12D SUB EAX,ECX ADD EAX,-0x10 MOV RBX,qword ptr [RBP + -0x40] LAB_0014f6bf: MOV R15,qword ptr [RBP + 0x10] MOV dword ptr [R15 + 0x20],EAX MOVZX ECX,byte ptr [R13 + 0x8] CMP ECX,EBX JA 0x0014f705 LEA R9,[R15 + 0x20] XOR EAX,EAX CMP R8D,0x1 SETZ AL SUB RSP,0x8 MOV RDI,R14 MOV RSI,R13 MOV EDX,R12D MOV R15D,R8D MOV R8D,EBX PUSH RAX CALL 0x0014da14 MOV R8D,R15D MOV R15,qword ptr [RBP + 0x10] ADD RSP,0x10 TEST AL,AL JNZ 0x0014f750 LAB_0014f705: ADD R12,R13 LEA EAX,[RBX*0x4] SUB R12,RAX ADD R12,-0x8 LEA R9,[R15 + 0x20] XOR EAX,EAX CMP R8D,0x1 SETZ AL SUB RSP,0x8 LEA R10,[RBP + -0x44] LEA R11,[RBP + -0x34] MOV RDI,R14 MOV RSI,R13 MOV RDX,R12 MOV ECX,EBX MOV R8D,dword ptr [RBP + -0x2c] PUSH RAX PUSH R10 PUSH R11 CALL 0x0014db8a ADD RSP,0x20 TEST AL,AL JZ 0x0014f77a LAB_0014f750: MOV RDI,R14 MOV ESI,0x7f JMP 0x0014f764 LAB_0014f75a: CALL 0x001a1ac2 MOV ESI,dword ptr [RAX] MOV RDI,R14 LAB_0014f764: CALL 0x0013fc54 MOV AL,0x1 LAB_0014f76b: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014f77a: MOV qword ptr [R15],R13 MOV dword ptr [R15 + 0x1c],EBX MOV qword ptr [R15 + 0x10],R12 MOV EAX,dword ptr [RBP + -0x34] ADD RAX,R13 MOV qword ptr [R15 + 0x8],RAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [R15 + 0x18],EAX XOR EAX,EAX JMP 0x0014f76b
int8 get_rowpos_in_head_or_tail_page (long *param_1,int8 *param_2,long param_3,int4 param_4,int param_5, ulong param_6,long *param_7) { uint uVar1; ulong uVar2; char cVar3; uint uVar4; int4 *puVar5; int4 uVar6; long lVar7; int1 local_68 [8]; int4 local_60; char local_58; int1 local_4c [4]; ulong local_48; uint local_3c; int local_38; int4 local_34; lVar7 = *param_1; uVar1 = *(uint *)(lVar7 + 0x7bc); local_48 = param_6; local_34 = param_4; if (*(char *)((long)param_2 + 0x15) == '\0') { make_empty_page(param_1,param_3,param_5,0); uVar4 = (uVar1 - *(int *)(lVar7 + 0xc18)) - 0x10; LAB_0014f6bf: uVar2 = local_48; *(uint *)(param_7 + 4) = uVar4; uVar4 = (uint)local_48; if ((uVar4 < *(byte *)(param_3 + 8)) || (cVar3 = extend_directory(param_1,param_3,(ulong)uVar1,*(byte *)(param_3 + 8), local_48 & 0xffffffff,param_7 + 4,param_5 == 1), cVar3 == '\0')) { lVar7 = (((ulong)uVar1 + param_3) - (ulong)(uVar4 * 4)) + -8; cVar3 = extend_area_on_page(param_1,param_3,lVar7,uVar2 & 0xffffffff,local_34,param_7 + 4, &local_3c,local_4c,param_5 == 1); if (cVar3 == '\0') { *param_7 = param_3; *(uint *)((long)param_7 + 0x1c) = uVar4; param_7[2] = lVar7; param_7[1] = (ulong)local_3c + param_3; *(int4 *)(param_7 + 3) = local_34; return 0; } } } else { local_60 = 6; local_38 = param_5; param_3 = pagecache_read(*(int8 *)(lVar7 + 0x600),param_1 + 0x8e,*param_2,0,0, *(int4 *)(lVar7 + 0x7d4),4,local_68); local_58 = param_3 != 0; insert_dynamic(param_1 + 0x5d,local_68); if (local_58 == '\0') { puVar5 = (int4 *)_my_thread_var(); uVar6 = *puVar5; goto LAB_0014f764; } if ((*(byte *)(param_3 + 7) & 7) == (byte)local_38) { uVar4 = (uint)*(ushort *)(param_3 + 10); param_5 = local_38; goto LAB_0014f6bf; } } uVar6 = 0x7f; LAB_0014f764: _ma_set_fatal_error(param_1,uVar6); return 1; }
29,315
testing::internal::GetBoolAssertionFailureMessage[abi:cxx11](testing::AssertionResult const&, char const*, char const*, char const*)
seiftnesse[P]memoryallocator/build_O0/_deps/googletest-src/googletest/src/gtest.cc
std::string GetBoolAssertionFailureMessage( const AssertionResult& assertion_result, const char* expression_text, const char* actual_predicate_value, const char* expected_predicate_value) { const char* actual_message = assertion_result.message(); Message msg; msg << "Value of: " << expression_text << "\n Actual: " << actual_predicate_value; if (actual_message[0] != '\0') msg << " (" << actual_message << ")"; msg << "\nExpected: " << expected_predicate_value; return msg.GetString(); }
O0
cpp
testing::internal::GetBoolAssertionFailureMessage[abi:cxx11](testing::AssertionResult const&, char const*, char const*, char const*): pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x68(%rbp) movq %rdi, %rax movq %rax, -0x60(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rdi callq 0x16440 movq %rax, -0x30(%rbp) leaq -0x38(%rbp), %rdi movq %rdi, -0x58(%rbp) callq 0x2daf0 movq -0x58(%rbp), %rdi leaq 0x4d8cd(%rip), %rsi # 0x744ac callq 0x4e050 movq %rax, -0x50(%rbp) jmp 0x26bea movq -0x50(%rbp), %rdi leaq -0x18(%rbp), %rsi callq 0x18fc0 movq %rax, -0x70(%rbp) jmp 0x26bfd movq -0x70(%rbp), %rdi leaq 0x4d8af(%rip), %rsi # 0x744b7 callq 0x18e00 movq %rax, -0x78(%rbp) jmp 0x26c13 movq -0x78(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x18fc0 jmp 0x26c22 movq -0x30(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax je 0x26c88 leaq 0x4ab19(%rip), %rsi # 0x7174e leaq -0x38(%rbp), %rdi callq 0x19030 movq %rax, -0x80(%rbp) jmp 0x26c44 movq -0x80(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x18fc0 movq %rax, -0x88(%rbp) jmp 0x26c5a movq -0x88(%rbp), %rdi leaq 0x4dde8(%rip), %rsi # 0x74a50 callq 0x4aa80 jmp 0x26c6f jmp 0x26c88 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) leaq -0x38(%rbp), %rdi callq 0x13ed0 jmp 0x26cd8 leaq 0x4d834(%rip), %rsi # 0x744c3 leaq -0x38(%rbp), %rdi callq 0x18e00 movq %rax, -0x90(%rbp) jmp 0x26ca1 movq -0x90(%rbp), %rdi leaq -0x28(%rbp), %rsi callq 0x18fc0 jmp 0x26cb3 movq -0x68(%rbp), %rdi leaq -0x38(%rbp), %rsi callq 0x20c50 jmp 0x26cc2 leaq -0x38(%rbp), %rdi callq 0x13ed0 movq -0x60(%rbp), %rax addq $0x90, %rsp popq %rbp retq movq -0x40(%rbp), %rdi callq 0xbcd0 nopw %cs:(%rax,%rax)
_ZN7testing8internal30GetBoolAssertionFailureMessageB5cxx11ERKNS_15AssertionResultEPKcS5_S5_: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_68], rdi mov rax, rdi mov [rbp+var_60], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rdi, [rbp+var_10]; this call _ZNK7testing15AssertionResult7messageEv; testing::AssertionResult::message(void) mov [rbp+var_30], rax lea rdi, [rbp+var_38]; this mov [rbp+var_58], rdi call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rdi, [rbp+var_58] lea rsi, aValueOf; "Value of: " call _ZN7testing7MessagelsIA11_cEERS0_RKT_; testing::Message::operator<<<char [11]>(char [11] const&) mov [rbp+var_50], rax jmp short $+2 loc_26BEA: mov rdi, [rbp+var_50] lea rsi, [rbp+var_18] call _ZN7testing7MessagelsIKcEERS0_RKPT_; testing::Message::operator<<<char const>(char const * const&) mov [rbp+var_70], rax jmp short $+2 loc_26BFD: mov rdi, [rbp+var_70] lea rsi, aActual_0; "\n Actual: " call _ZN7testing7MessagelsIA12_cEERS0_RKT_; testing::Message::operator<<<char [12]>(char [12] const&) mov [rbp+var_78], rax jmp short $+2 loc_26C13: mov rdi, [rbp+var_78] lea rsi, [rbp+var_20] call _ZN7testing7MessagelsIKcEERS0_RKPT_; testing::Message::operator<<<char const>(char const * const&) jmp short $+2 loc_26C22: mov rax, [rbp+var_30] movsx eax, byte ptr [rax] cmp eax, 0 jz short loc_26C88 lea rsi, aExpected+9; " (" lea rdi, [rbp+var_38] call _ZN7testing7MessagelsIA3_cEERS0_RKT_; testing::Message::operator<<<char [3]>(char [3] const&) mov [rbp+var_80], rax jmp short $+2 loc_26C44: mov rdi, [rbp+var_80] lea rsi, [rbp+var_30] call _ZN7testing7MessagelsIKcEERS0_RKPT_; testing::Message::operator<<<char const>(char const * const&) mov [rbp+var_88], rax jmp short $+2 loc_26C5A: mov rdi, [rbp+var_88] lea rsi, aTeardowntestsu+12h; ")" call _ZN7testing7MessagelsIA2_cEERS0_RKT_; testing::Message::operator<<<char [2]>(char [2] const&) jmp short $+2 loc_26C6F: jmp short loc_26C88 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax lea rdi, [rbp+var_38]; this call _ZN7testing7MessageD2Ev; testing::Message::~Message() jmp short loc_26CD8 loc_26C88: lea rsi, aExpected_1; "\nExpected: " lea rdi, [rbp+var_38] call _ZN7testing7MessagelsIA12_cEERS0_RKT_; testing::Message::operator<<<char [12]>(char [12] const&) mov [rbp+var_90], rax jmp short $+2 loc_26CA1: mov rdi, [rbp+var_90] lea rsi, [rbp+var_28] call _ZN7testing7MessagelsIKcEERS0_RKPT_; testing::Message::operator<<<char const>(char const * const&) jmp short $+2 loc_26CB3: mov rdi, [rbp+var_68] lea rsi, [rbp+var_38] call _ZNK7testing7Message9GetStringB5cxx11Ev; testing::Message::GetString(void) jmp short $+2 loc_26CC2: lea rdi, [rbp+var_38]; this call _ZN7testing7MessageD2Ev; testing::Message::~Message() mov rax, [rbp+var_60] add rsp, 90h pop rbp retn loc_26CD8: mov rdi, [rbp+var_40] call __Unwind_Resume
long long testing::internal::GetBoolAssertionFailureMessage[abi:cxx11]( long long a1, testing::AssertionResult *a2, long long a3, long long a4, long long a5) { long long v6; // [rsp+0h] [rbp-90h] long long v7; // [rsp+8h] [rbp-88h] long long v8; // [rsp+10h] [rbp-80h] long long v9; // [rsp+18h] [rbp-78h] long long v10; // [rsp+20h] [rbp-70h] long long v11; // [rsp+40h] [rbp-50h] _BYTE v12[8]; // [rsp+58h] [rbp-38h] BYREF char *v13; // [rsp+60h] [rbp-30h] BYREF long long v14; // [rsp+68h] [rbp-28h] BYREF long long v15; // [rsp+70h] [rbp-20h] BYREF _QWORD v16[3]; // [rsp+78h] [rbp-18h] BYREF v16[2] = a1; v16[1] = a2; v16[0] = a3; v15 = a4; v14 = a5; v13 = testing::AssertionResult::message(a2); testing::Message::Message((testing::Message *)v12); v11 = testing::Message::operator<<<char [11]>(v12, "Value of: "); v10 = testing::Message::operator<<<char const>(v11, v16); v9 = testing::Message::operator<<<char [12]>(v10, (long long)"\n Actual: "); testing::Message::operator<<<char const>(v9, &v15); if ( *v13 ) { v8 = testing::Message::operator<<<char [3]>((long long)v12, (long long)" ("); v7 = testing::Message::operator<<<char const>(v8, &v13); testing::Message::operator<<<char [2]>(v7, ")"); } v6 = testing::Message::operator<<<char [12]>((long long)v12, (long long)"\nExpected: "); testing::Message::operator<<<char const>(v6, &v14); testing::Message::GetString[abi:cxx11](a1); testing::Message::~Message((testing::Message *)v12); return a1; }
GetBoolAssertionFailureMessage[abi:cxx11]: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x68],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x60],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00116440 MOV qword ptr [RBP + -0x30],RAX LEA RDI,[RBP + -0x38] MOV qword ptr [RBP + -0x58],RDI CALL 0x0012daf0 MOV RDI,qword ptr [RBP + -0x58] LAB_00126bd8: LEA RSI,[0x1744ac] CALL 0x0014e050 MOV qword ptr [RBP + -0x50],RAX JMP 0x00126bea LAB_00126bea: MOV RDI,qword ptr [RBP + -0x50] LEA RSI,[RBP + -0x18] CALL 0x00118fc0 MOV qword ptr [RBP + -0x70],RAX JMP 0x00126bfd LAB_00126bfd: MOV RDI,qword ptr [RBP + -0x70] LEA RSI,[0x1744b7] CALL 0x00118e00 MOV qword ptr [RBP + -0x78],RAX JMP 0x00126c13 LAB_00126c13: MOV RDI,qword ptr [RBP + -0x78] LEA RSI,[RBP + -0x20] CALL 0x00118fc0 JMP 0x00126c22 LAB_00126c22: MOV RAX,qword ptr [RBP + -0x30] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JZ 0x00126c88 LEA RSI,[0x17174e] LEA RDI,[RBP + -0x38] CALL 0x00119030 MOV qword ptr [RBP + -0x80],RAX JMP 0x00126c44 LAB_00126c44: MOV RDI,qword ptr [RBP + -0x80] LEA RSI,[RBP + -0x30] CALL 0x00118fc0 MOV qword ptr [RBP + -0x88],RAX JMP 0x00126c5a LAB_00126c5a: MOV RDI,qword ptr [RBP + -0x88] LEA RSI,[0x174a50] CALL 0x0014aa80 JMP 0x00126c6f LAB_00126c6f: JMP 0x00126c88 LAB_00126c88: LEA RSI,[0x1744c3] LEA RDI,[RBP + -0x38] CALL 0x00118e00 MOV qword ptr [RBP + -0x90],RAX JMP 0x00126ca1 LAB_00126ca1: MOV RDI,qword ptr [RBP + -0x90] LEA RSI,[RBP + -0x28] CALL 0x00118fc0 JMP 0x00126cb3 LAB_00126cb3: MOV RDI,qword ptr [RBP + -0x68] LEA RSI,[RBP + -0x38] CALL 0x00120c50 LAB_00126cc0: JMP 0x00126cc2 LAB_00126cc2: LEA RDI,[RBP + -0x38] CALL 0x00113ed0 MOV RAX,qword ptr [RBP + -0x60] ADD RSP,0x90 POP RBP RET
/* testing::internal::GetBoolAssertionFailureMessage[abi:cxx11](testing::AssertionResult const&, char const*, char const*, char const*) */ internal * __thiscall testing::internal::GetBoolAssertionFailureMessage_abi_cxx11_ (internal *this,AssertionResult *param_1,char *param_2,char *param_3,char *param_4) { Message *pMVar1; Message local_40 [8]; char *local_38; char *local_30; char *local_28; char *local_20; AssertionResult *local_18; internal *local_10; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; local_10 = this; local_38 = (char *)AssertionResult::message(param_1); Message::Message(local_40); /* try { // try from 00126bd8 to 00126cbf has its CatchHandler @ 00126c71 */ pMVar1 = Message::operator<<(local_40,"Value of: "); pMVar1 = Message::operator<<(pMVar1,&local_20); pMVar1 = Message::operator<<(pMVar1,"\n Actual: "); Message::operator<<(pMVar1,&local_28); if (*local_38 != '\0') { pMVar1 = Message::operator<<(local_40," ("); pMVar1 = Message::operator<<(pMVar1,&local_38); Message::operator<<(pMVar1,")"); } pMVar1 = Message::operator<<(local_40,"\nExpected: "); Message::operator<<(pMVar1,&local_30); Message::GetString_abi_cxx11_(); Message::~Message(local_40); return this; }
29,316
testing::internal::ParseFlag(char const*, char const*, bool*)
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
static bool ParseFlag(const char* str, const char* flag_name, bool* value) { // Gets the value of the flag as a string. const char* const value_str = ParseFlagValue(str, flag_name, true); // Aborts if the parsing failed. if (value_str == nullptr) return false; // Converts the string value to a bool. *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F'); return true; }
O3
cpp
testing::internal::ParseFlag(char const*, char const*, bool*): pushq %rbx movq %rdx, %rbx movl $0x1, %edx callq 0x2f06b testq %rax, %rax je 0x31ccb movzbl (%rax), %edx xorl %ecx, %ecx cmpl $0x30, %edx je 0x31cc9 cmpl $0x66, %edx je 0x31cc9 cmpb $0x46, %dl setne %cl movb %cl, (%rbx) testq %rax, %rax setne %al popq %rbx retq nop
_ZN7testing8internalL9ParseFlagEPKcS2_Pb: push rbx mov rbx, rdx mov edx, (offset dword_0+1); char * call _ZN7testing8internalL14ParseFlagValueEPKcS2_b; testing::internal::ParseFlagValue(char const*,char const*,bool) test rax, rax jz short loc_31CCB movzx edx, byte ptr [rax] xor ecx, ecx cmp edx, 30h ; '0' jz short loc_31CC9 cmp edx, 66h ; 'f' jz short loc_31CC9 cmp dl, 46h ; 'F' setnz cl loc_31CC9: mov [rbx], cl loc_31CCB: test rax, rax setnz al pop rbx retn
bool testing::internal::ParseFlag(testing::internal *this, const char *a2, bool *a3, bool *a4) { char *v5; // rax int v6; // edx bool v7; // cl v5 = testing::internal::ParseFlagValue(this, a2, (const char *)&dword_0 + 1); if ( v5 ) { v6 = (unsigned __int8)*v5; v7 = 0; if ( v6 != 48 && v6 != 102 ) v7 = (_BYTE)v6 != 70; *a3 = v7; } return v5 != 0LL; }
ParseFlag: PUSH RBX MOV RBX,RDX MOV EDX,0x1 CALL 0x0012f06b TEST RAX,RAX JZ 0x00131ccb MOVZX EDX,byte ptr [RAX] XOR ECX,ECX CMP EDX,0x30 JZ 0x00131cc9 CMP EDX,0x66 JZ 0x00131cc9 CMP DL,0x46 SETNZ CL LAB_00131cc9: MOV byte ptr [RBX],CL LAB_00131ccb: TEST RAX,RAX SETNZ AL POP RBX RET
/* testing::internal::ParseFlag(char const*, char const*, bool*) */ bool testing::internal::ParseFlag(char *param_1,char *param_2,bool *param_3) { char cVar1; char *pcVar2; bool bVar3; pcVar2 = (char *)ParseFlagValue(param_1,param_2,true); if (pcVar2 != (char *)0x0) { cVar1 = *pcVar2; bVar3 = false; if ((cVar1 != '0') && (bVar3 = false, cVar1 != 'f')) { bVar3 = cVar1 != 'F'; } *param_3 = bVar3; } return pcVar2 != (char *)0x0; }
29,317
SchemaConverter::_resolve_ref(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string _resolve_ref(const std::string & ref) { std::string ref_name = ref.substr(ref.find_last_of('/') + 1); if (_rules.find(ref_name) == _rules.end() && _refs_being_resolved.find(ref) == _refs_being_resolved.end()) { _refs_being_resolved.insert(ref); json resolved = _refs[ref]; ref_name = visit(resolved, ref_name); _refs_being_resolved.erase(ref); } return ref_name; }
O1
cpp
SchemaConverter::_resolve_ref(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq %rdx, %rdi movl $0x2f, %esi movq $-0x1, %rdx callq 0x19fa0 leaq 0x1(%rax), %rdx movq %rbx, %rdi movq %r14, %rsi movq $-0x1, %rcx callq 0x197f0 leaq 0x28(%r15), %rdi movq %rbx, %rsi callq 0xa6066 leaq 0x30(%r15), %rcx cmpq %rcx, %rax jne 0xa8ed1 leaq 0x90(%r15), %r12 movq %r12, %rdi movq %r14, %rsi callq 0xab07a testq %rax, %rax jne 0xa8ed1 leaq 0x18(%rsp), %rdx movq %r12, (%rdx) movq %r12, %rdi movq %r14, %rsi callq 0x86480 leaq 0x58(%r15), %rdi movq %r14, %rsi callq 0xab0b4 leaq 0x8(%rsp), %rdi movq %rax, %rsi callq 0x29bca leaq 0x18(%rsp), %rdi leaq 0x8(%rsp), %rdx movq %r15, %rsi movq %rbx, %rcx callq 0xa61e8 leaq 0x18(%rsp), %r15 movq %rbx, %rdi movq %r15, %rsi callq 0x19940 movq (%r15), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0xa8eaf movq 0x28(%rsp), %rsi incq %rsi callq 0x197a0 movq %r12, %rdi movq %r14, %rsi callq 0xab514 leaq 0x8(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x6d806 movq %r14, %rdi callq 0x2968c movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0xa8ee2 movq %rax, %r14 leaq 0x8(%rsp), %r15 movq %r15, %rdi xorl %esi, %esi callq 0x6d806 movq %r15, %rdi callq 0x2968c jmp 0xa8f07 jmp 0xa8f04 jmp 0xa8f04 jmp 0xa8f04 movq %rax, %r14 movq (%rbx), %rdi addq $0x10, %rbx cmpq %rbx, %rdi je 0xa8f1e movq (%rbx), %rsi incq %rsi callq 0x197a0 movq %r14, %rdi callq 0x19e00
_ZN15SchemaConverter12_resolve_refERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push r12 push rbx sub rsp, 38h mov r14, rdx mov r15, rsi mov rbx, rdi mov rdi, rdx mov esi, 2Fh ; '/' mov rdx, 0FFFFFFFFFFFFFFFFh call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm; std::string::rfind(char,ulong) lea rdx, [rax+1] mov rdi, rbx mov rsi, r14 mov rcx, 0FFFFFFFFFFFFFFFFh call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) lea rdi, [r15+28h] mov rsi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE4findERS7_; 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>>>::find(std::string const&) lea rcx, [r15+30h] cmp rax, rcx jnz loc_A8ED1 lea r12, [r15+90h] mov rdi, r12 mov rsi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE4findERKS5_; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::find(std::string const&) test rax, rax jnz loc_A8ED1 lea rdx, [rsp+58h+var_40] mov [rdx], r12 mov rdi, r12 mov rsi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE9_M_insertIRKS5_NS7_10_AllocNodeISaINS7_10_Hash_nodeIS5_Lb1EEEEEEEESt4pairINS7_14_Node_iteratorIS5_Lb1ELb1EEEbEOT_RKT0_St17integral_constantIbLb1EE; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_insert<std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>>>(std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>> const&,std::integral_constant<bool,true>) lea rdi, [r15+58h] mov rsi, r14 call _ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_N8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS6_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESaISI_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixERS8_; std::__detail::_Map_base<std::string,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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::operator[](std::string const&) lea rdi, [rsp+58h+var_50] mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; 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::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&) lea rdi, [rsp+58h+var_40] lea rdx, [rsp+58h+var_50] mov rsi, r15 mov rcx, rbx call _ZN15SchemaConverter5visitERKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_; SchemaConverter::visit(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,std::string const&) lea r15, [rsp+58h+var_40] mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r15]; void * lea rax, [rsp+58h+var_30] cmp rdi, rax jz short loc_A8EAF mov rsi, [rsp+58h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A8EAF: mov rdi, r12 mov rsi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE8_M_eraseESt17integral_constantIbLb1EERKS5_; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_erase(std::integral_constant<bool,true>,std::string const&) lea r14, [rsp+58h+var_50] 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_A8ED1: mov rax, rbx add rsp, 38h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_A8EE2: mov r14, rax lea r15, [rsp+arg_0] mov rdi, r15 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, r15 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() jmp short loc_A8F07 jmp short loc_A8F04 jmp short loc_A8F04 jmp short $+2 loc_A8F04: mov r14, rax loc_A8F07: mov rdi, [rbx]; void * add rbx, 10h cmp rdi, rbx jz short loc_A8F1E mov rsi, [rbx] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A8F1E: mov rdi, r14 call __Unwind_Resume
void * SchemaConverter::_resolve_ref(void *a1, long long a2, long long a3) { long long v4; // rax int v5; // edx int v6; // ecx int v7; // r8d int v8; // r9d unsigned __int8 *v9; // rax unsigned __int8 v11[16]; // [rsp+8h] [rbp-50h] BYREF void *v12[2]; // [rsp+18h] [rbp-40h] BYREF long long v13; // [rsp+28h] [rbp-30h] BYREF v4 = std::string::rfind(a3, 47LL, -1LL); std::string::substr(a1, a3, v4 + 1, -1LL); if ( 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>>>::find( a2 + 40, (long long)a1) == a2 + 48 && !std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::find( a2 + 144, a3) ) { v12[0] = (void *)(a2 + 144); std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_insert<std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>>>( a2 + 144, a3, v12); v9 = (unsigned __int8 *)std::__detail::_Map_base<std::string,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>>,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>>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::operator[]( (int)a2 + 88, a3, v5, v6, v7, v8); 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)v11, v9); SchemaConverter::visit(v12, a2, v11, a1); std::string::operator=(a1, v12); if ( v12[0] != &v13 ) operator delete(v12[0], v13 + 1); std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_erase( a2 + 144, a3); 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 *)v11); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v11); } return a1; }
_resolve_ref: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV RDI,RDX MOV ESI,0x2f MOV RDX,-0x1 CALL 0x00119fa0 LEA RDX,[RAX + 0x1] MOV RDI,RBX MOV RSI,R14 MOV RCX,-0x1 CALL 0x001197f0 LEA RDI,[R15 + 0x28] LAB_001a8e14: MOV RSI,RBX CALL 0x001a6066 LEA RCX,[R15 + 0x30] CMP RAX,RCX JNZ 0x001a8ed1 LEA R12,[R15 + 0x90] LAB_001a8e30: MOV RDI,R12 MOV RSI,R14 CALL 0x001ab07a TEST RAX,RAX JNZ 0x001a8ed1 LEA RDX,[RSP + 0x18] MOV qword ptr [RDX],R12 LAB_001a8e4c: MOV RDI,R12 MOV RSI,R14 CALL 0x00186480 LEA RDI,[R15 + 0x58] LAB_001a8e5b: MOV RSI,R14 CALL 0x001ab0b4 LEA RDI,[RSP + 0x8] MOV RSI,RAX CALL 0x00129bca LAB_001a8e70: LEA RDI,[RSP + 0x18] LEA RDX,[RSP + 0x8] MOV RSI,R15 MOV RCX,RBX CALL 0x001a61e8 LEA R15,[RSP + 0x18] MOV RDI,RBX MOV RSI,R15 CALL 0x00119940 MOV RDI,qword ptr [R15] LEA RAX,[RSP + 0x28] CMP RDI,RAX JZ 0x001a8eaf MOV RSI,qword ptr [RSP + 0x28] INC RSI CALL 0x001197a0 LAB_001a8eaf: MOV RDI,R12 MOV RSI,R14 CALL 0x001ab514 LAB_001a8eba: LEA R14,[RSP + 0x8] MOV RDI,R14 XOR ESI,ESI CALL 0x0016d806 MOV RDI,R14 CALL 0x0012968c LAB_001a8ed1: MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R14 POP R15 RET
/* SchemaConverter::_resolve_ref(std::__cxx11::string const&) */ string * SchemaConverter::_resolve_ref(string *param_1) { _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> *this; string *psVar1; long lVar2; basic_json *pbVar3; string *in_RDX; string *in_RSI; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_50 [16]; _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> *local_40 [2]; long local_30 [2]; std::__cxx11::string::rfind((char)in_RDX,0x2f); std::__cxx11::string::substr((ulong)param_1,(ulong)in_RDX); /* try { // try from 001a8e14 to 001a8e1b has its CatchHandler @ 001a8f04 */ psVar1 = (string *) 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>>> ::find((_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>>> *)(in_RSI + 0x28),param_1); if (psVar1 == in_RSI + 0x30) { this = (_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> *)(in_RSI + 0x90); /* try { // try from 001a8e30 to 001a8e3a has its CatchHandler @ 001a8f02 */ lVar2 = std:: _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> ::find(this,in_RDX); if (lVar2 == 0) { local_40[0] = this; /* try { // try from 001a8e4c to 001a8e56 has its CatchHandler @ 001a8efe */ std:: _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> :: _M_insert<std::__cxx11::string_const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::__cxx11::string,true>>>> (this); /* try { // try from 001a8e5b to 001a8e6f has its CatchHandler @ 001a8f00 */ pbVar3 = (basic_json *) std::__detail:: _Map_base<std::__cxx11::string,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>>,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>>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true> ::operator[]((_Map_base<std::__cxx11::string,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>>,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>>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true> *)(in_RSI + 0x58),in_RDX); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_50,pbVar3); /* try { // try from 001a8e70 to 001a8e84 has its CatchHandler @ 001a8ee2 */ visit((basic_json *)local_40,in_RSI); std::__cxx11::string::operator=(param_1,(string *)local_40); if (local_40[0] != (_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> *)local_30) { operator_delete(local_40[0],local_30[0] + 1); } /* try { // try from 001a8eaf to 001a8eb9 has its CatchHandler @ 001a8ee0 */ std:: _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> ::_M_erase(this); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_50,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_50); } } return param_1; }
29,318
uint64_from_le
corpus-core[P]colibri-stateless/src/util/bytes.c
uint64_t uint64_from_le(uint8_t* data) { return (uint64_t) data[0] | ((uint64_t) data[1] << 8) | ((uint64_t) data[2] << 16) | ((uint64_t) data[3] << 24) | ((uint64_t) data[4] << 32) | ((uint64_t) data[5] << 40) | ((uint64_t) data[6] << 48) | ((uint64_t) data[7] << 56); }
O0
c
uint64_from_le: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movzbl (%rax), %eax movq -0x8(%rbp), %rcx movzbl 0x1(%rcx), %ecx shlq $0x8, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x2(%rcx), %ecx shlq $0x10, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x3(%rcx), %ecx shlq $0x18, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x4(%rcx), %ecx shlq $0x20, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x5(%rcx), %ecx shlq $0x28, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x6(%rcx), %ecx shlq $0x30, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x7(%rcx), %ecx shlq $0x38, %rcx orq %rcx, %rax popq %rbp retq nopw (%rax,%rax)
uint64_from_le: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] movzx eax, byte ptr [rax] mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+1] shl rcx, 8 or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+2] shl rcx, 10h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+3] shl rcx, 18h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+4] shl rcx, 20h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+5] shl rcx, 28h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+6] shl rcx, 30h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+7] shl rcx, 38h or rax, rcx pop rbp retn
unsigned long long uint64_from_le(unsigned __int8 *a1) { return ((unsigned long long)a1[7] << 56) | ((unsigned long long)a1[6] << 48) | ((unsigned long long)a1[5] << 40) | ((unsigned long long)a1[4] << 32) | ((unsigned long long)a1[3] << 24) | ((unsigned long long)a1[2] << 16) | *(unsigned __int16 *)a1; }
uint64_from_le: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x1] SHL RCX,0x8 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x2] SHL RCX,0x10 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x3] SHL RCX,0x18 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x4] SHL RCX,0x20 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x5] SHL RCX,0x28 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x6] SHL RCX,0x30 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x7] SHL RCX,0x38 OR RAX,RCX POP RBP RET
int8 uint64_from_le(int8 *param_1) { return *param_1; }
29,319
uint64_from_le
corpus-core[P]colibri-stateless/src/util/bytes.c
uint64_t uint64_from_le(uint8_t* data) { return (uint64_t) data[0] | ((uint64_t) data[1] << 8) | ((uint64_t) data[2] << 16) | ((uint64_t) data[3] << 24) | ((uint64_t) data[4] << 32) | ((uint64_t) data[5] << 40) | ((uint64_t) data[6] << 48) | ((uint64_t) data[7] << 56); }
O2
c
uint64_from_le: movq (%rdi), %rax retq
uint64_from_le: mov rax, [rdi] retn
long long uint64_from_le(long long a1) { return *(_QWORD *)a1; }
uint64_from_le: MOV RAX,qword ptr [RDI] RET
int8 uint64_from_le(int8 *param_1) { return *param_1; }
29,320
merge_many_buff
eloqsql/storage/maria/ma_sort.c
static int merge_many_buff(MARIA_SORT_PARAM *info, ha_keys keys, uchar **sort_keys, BUFFPEK *buffpek, uint *maxbuffer, IO_CACHE *t_file) { uint tmp, merges, max_merges; IO_CACHE t_file2, *from_file, *to_file, *temp; BUFFPEK *lastbuff; DBUG_ENTER("merge_many_buff"); if (*maxbuffer < MERGEBUFF2) DBUG_RETURN(0); /* purecov: inspected */ if (flush_io_cache(t_file) || open_cached_file(&t_file2,my_tmpdir(info->tmpdir),"ST", DISK_BUFFER_SIZE, info->sort_info->param->myf_rw)) DBUG_RETURN(1); /* purecov: inspected */ /* Calculate how many merges are needed */ max_merges= 1; /* Count merge_index */ tmp= *maxbuffer; while (tmp >= MERGEBUFF2) { merges= (tmp-MERGEBUFF*3/2 + 1) / MERGEBUFF + 1; max_merges+= merges; tmp= merges; } merges= 0; from_file= t_file ; to_file= &t_file2; while (*maxbuffer >= MERGEBUFF2) { uint i; reinit_io_cache(from_file,READ_CACHE,0L,0,0); reinit_io_cache(to_file,WRITE_CACHE,0L,0,0); lastbuff=buffpek; for (i=0 ; i + MERGEBUFF*3/2 <= *maxbuffer ; i+=MERGEBUFF) { if (merge_buffers(info,keys,from_file,to_file,sort_keys,lastbuff++, buffpek+i,buffpek+i+MERGEBUFF-1)) goto cleanup; if (info->sort_info->param->max_stage != 1) /* If not parallel */ _ma_report_progress(info->sort_info->param, merges++, max_merges); } if (merge_buffers(info,keys,from_file,to_file,sort_keys,lastbuff++, buffpek+i,buffpek+ *maxbuffer)) break; /* purecov: inspected */ if (flush_io_cache(to_file)) break; /* purecov: inspected */ temp=from_file; from_file=to_file; to_file=temp; *maxbuffer= (uint) (lastbuff-buffpek)-1; if (info->sort_info->param->max_stage != 1) /* If not parallel */ _ma_report_progress(info->sort_info->param, merges++, max_merges); } cleanup: close_cached_file(to_file); /* This holds old result */ if (to_file == t_file) { DBUG_ASSERT(t_file2.type == WRITE_CACHE); *t_file=t_file2; /* Copy result file */ } DBUG_RETURN(*maxbuffer >= MERGEBUFF2); /* Return 1 if interrupted */ }
O0
c
merge_many_buff: pushq %rbp movq %rsp, %rbp subq $0x190, %rsp # imm = 0x190 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x30(%rbp), %rax cmpl $0x1f, (%rax) jae 0xaca5a jmp 0xaca4e movl $0x0, -0x4(%rbp) jmp 0xacdc8 movq -0x38(%rbp), %rdi movl $0x1, %esi callq 0x1069c0 cmpl $0x0, %eax jne 0xacab9 movq -0x10(%rbp), %rax movq 0x3f8(%rax), %rdi callq 0x1143b0 movq %rax, %rsi movq -0x10(%rbp), %rax movq 0x380(%rax), %rax movq 0x90(%rax), %rax movq 0x20998(%rax), %r8 leaq -0x150(%rbp), %rdi leaq 0xd65b6(%rip), %rdx # 0x18305d movl $0x80000, %ecx # imm = 0x80000 callq 0x1050e0 movsbl %al, %eax cmpl $0x0, %eax je 0xacac7 jmp 0xacabb movl $0x1, -0x4(%rbp) jmp 0xacdc8 movl $0x1, -0x44(%rbp) movq -0x30(%rbp), %rax movl (%rax), %eax movl %eax, -0x3c(%rbp) cmpl $0x1f, -0x3c(%rbp) jb 0xacb06 movl -0x3c(%rbp), %eax subl $0x16, %eax addl $0x1, %eax movl $0xf, %ecx xorl %edx, %edx divl %ecx addl $0x1, %eax movl %eax, -0x40(%rbp) movl -0x40(%rbp), %eax addl -0x44(%rbp), %eax movl %eax, -0x44(%rbp) movl -0x40(%rbp), %eax movl %eax, -0x3c(%rbp) jmp 0xacad7 movl $0x0, -0x40(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x158(%rbp) leaq -0x150(%rbp), %rax movq %rax, -0x160(%rbp) movq -0x30(%rbp), %rax cmpl $0x1f, (%rax) jb 0xacd80 movq -0x158(%rbp), %rdi movl $0x1, %esi xorl %eax, %eax movl %eax, %edx xorl %r8d, %r8d movl %r8d, %ecx callq 0x106630 movq -0x160(%rbp), %rdi movl $0x2, %esi xorl %eax, %eax movl %eax, %edx xorl %r8d, %r8d movl %r8d, %ecx callq 0x106630 movq -0x28(%rbp), %rax movq %rax, -0x170(%rbp) movl $0x0, -0x174(%rbp) movl -0x174(%rbp), %eax addl $0x16, %eax movq -0x30(%rbp), %rcx cmpl (%rcx), %eax ja 0xacc63 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x158(%rbp), %rdx movq -0x160(%rbp), %rcx movq -0x20(%rbp), %r8 movq -0x170(%rbp), %r9 movq %r9, %rax addq $0x30, %rax movq %rax, -0x170(%rbp) movq -0x28(%rbp), %r10 movl -0x174(%rbp), %eax imulq $0x30, %rax, %rax addq %rax, %r10 movq -0x28(%rbp), %rax movl -0x174(%rbp), %r11d imulq $0x30, %r11, %r11 addq %r11, %rax addq $0x2d0, %rax # imm = 0x2D0 addq $-0x30, %rax movq %r10, (%rsp) movq %rax, 0x8(%rsp) callq 0xae9c0 cmpl $0x0, %eax je 0xacc07 jmp 0xacd82 movq -0x10(%rbp), %rax movq 0x380(%rax), %rax movq 0x90(%rax), %rax cmpl $0x1, 0x20cc8(%rax) je 0xacc4d movq -0x10(%rbp), %rax movq 0x380(%rax), %rax movq 0x90(%rax), %rdi movl -0x40(%rbp), %eax movl %eax, %ecx addl $0x1, %ecx movl %ecx, -0x40(%rbp) movl %eax, %eax movl %eax, %esi movl -0x44(%rbp), %eax movl %eax, %edx callq 0x2b3e0 jmp 0xacc4f movl -0x174(%rbp), %eax addl $0xf, %eax movl %eax, -0x174(%rbp) jmp 0xacb7e movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x158(%rbp), %rdx movq -0x160(%rbp), %rcx movq -0x20(%rbp), %r8 movq -0x170(%rbp), %r9 movq %r9, %rax addq $0x30, %rax movq %rax, -0x170(%rbp) movq -0x28(%rbp), %r10 movl -0x174(%rbp), %eax imulq $0x30, %rax, %rax addq %rax, %r10 movq -0x28(%rbp), %rax movq -0x30(%rbp), %r11 movl (%r11), %r11d imulq $0x30, %r11, %r11 addq %r11, %rax movq %r10, (%rsp) movq %rax, 0x8(%rsp) callq 0xae9c0 cmpl $0x0, %eax je 0xacccd jmp 0xacd80 movq -0x160(%rbp), %rdi movl $0x1, %esi callq 0x1069c0 cmpl $0x0, %eax je 0xacce8 jmp 0xacd80 movq -0x158(%rbp), %rax movq %rax, -0x168(%rbp) movq -0x160(%rbp), %rax movq %rax, -0x158(%rbp) movq -0x168(%rbp), %rax movq %rax, -0x160(%rbp) movq -0x170(%rbp), %rax movq -0x28(%rbp), %rcx subq %rcx, %rax movl $0x30, %ecx cqto idivq %rcx movl %eax, %ecx subl $0x1, %ecx movq -0x30(%rbp), %rax movl %ecx, (%rax) movq -0x10(%rbp), %rax movq 0x380(%rax), %rax movq 0x90(%rax), %rax cmpl $0x1, 0x20cc8(%rax) je 0xacd7b movq -0x10(%rbp), %rax movq 0x380(%rax), %rax movq 0x90(%rax), %rdi movl -0x40(%rbp), %eax movl %eax, %ecx addl $0x1, %ecx movl %ecx, -0x40(%rbp) movl %eax, %eax movl %eax, %esi movl -0x44(%rbp), %eax movl %eax, %edx callq 0x2b3e0 jmp 0xacb26 jmp 0xacd82 movq -0x160(%rbp), %rdi callq 0x1052a0 movq -0x160(%rbp), %rax cmpq -0x38(%rbp), %rax jne 0xacdb4 jmp 0xacd9d jmp 0xacd9f movq -0x38(%rbp), %rdi leaq -0x150(%rbp), %rsi movl $0x108, %edx # imm = 0x108 callq 0x2a0c0 jmp 0xacdb6 movq -0x30(%rbp), %rax cmpl $0x1f, (%rax) setae %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x190, %rsp # imm = 0x190 popq %rbp retq nopw %cs:(%rax,%rax)
merge_many_buff: push rbp mov rbp, rsp sub rsp, 190h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_30] cmp dword ptr [rax], 1Fh jnb short loc_ACA5A jmp short $+2 loc_ACA4E: mov [rbp+var_4], 0 jmp loc_ACDC8 loc_ACA5A: mov rdi, [rbp+var_38] mov esi, 1 call my_b_flush_io_cache cmp eax, 0 jnz short loc_ACAB9 mov rax, [rbp+var_10] mov rdi, [rax+3F8h] call my_tmpdir mov rsi, rax mov rax, [rbp+var_10] mov rax, [rax+380h] mov rax, [rax+90h] mov r8, [rax+20998h] lea rdi, [rbp+var_150] lea rdx, aSt; "ST" mov ecx, 80000h call open_cached_file movsx eax, al cmp eax, 0 jz short loc_ACAC7 loc_ACAB9: jmp short $+2 loc_ACABB: mov [rbp+var_4], 1 jmp loc_ACDC8 loc_ACAC7: mov [rbp+var_44], 1 mov rax, [rbp+var_30] mov eax, [rax] mov [rbp+var_3C], eax loc_ACAD7: cmp [rbp+var_3C], 1Fh jb short loc_ACB06 mov eax, [rbp+var_3C] sub eax, 16h add eax, 1 mov ecx, 0Fh xor edx, edx div ecx add eax, 1 mov [rbp+var_40], eax mov eax, [rbp+var_40] add eax, [rbp+var_44] mov [rbp+var_44], eax mov eax, [rbp+var_40] mov [rbp+var_3C], eax jmp short loc_ACAD7 loc_ACB06: mov [rbp+var_40], 0 mov rax, [rbp+var_38] mov [rbp+var_158], rax lea rax, [rbp+var_150] mov [rbp+var_160], rax loc_ACB26: mov rax, [rbp+var_30] cmp dword ptr [rax], 1Fh jb loc_ACD80 mov rdi, [rbp+var_158] mov esi, 1 xor eax, eax mov edx, eax xor r8d, r8d mov ecx, r8d call reinit_io_cache mov rdi, [rbp+var_160] mov esi, 2 xor eax, eax mov edx, eax xor r8d, r8d mov ecx, r8d call reinit_io_cache mov rax, [rbp+var_28] mov [rbp+var_170], rax mov [rbp+var_174], 0 loc_ACB7E: mov eax, [rbp+var_174] add eax, 16h mov rcx, [rbp+var_30] cmp eax, [rcx] ja loc_ACC63 mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_158] mov rcx, [rbp+var_160] mov r8, [rbp+var_20] mov r9, [rbp+var_170] mov rax, r9 add rax, 30h ; '0' mov [rbp+var_170], rax mov r10, [rbp+var_28] mov eax, [rbp+var_174] imul rax, 30h ; '0' add r10, rax mov rax, [rbp+var_28] mov r11d, [rbp+var_174] imul r11, 30h ; '0' add rax, r11 add rax, 2D0h add rax, 0FFFFFFFFFFFFFFD0h mov [rsp+190h+var_190], r10 mov [rsp+190h+var_188], rax call merge_buffers cmp eax, 0 jz short loc_ACC07 jmp loc_ACD82 loc_ACC07: mov rax, [rbp+var_10] mov rax, [rax+380h] mov rax, [rax+90h] cmp dword ptr [rax+20CC8h], 1 jz short loc_ACC4D mov rax, [rbp+var_10] mov rax, [rax+380h] mov rdi, [rax+90h] mov eax, [rbp+var_40] mov ecx, eax add ecx, 1 mov [rbp+var_40], ecx mov eax, eax mov esi, eax mov eax, [rbp+var_44] mov edx, eax call _ma_report_progress loc_ACC4D: jmp short $+2 loc_ACC4F: mov eax, [rbp+var_174] add eax, 0Fh mov [rbp+var_174], eax jmp loc_ACB7E loc_ACC63: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_158] mov rcx, [rbp+var_160] mov r8, [rbp+var_20] mov r9, [rbp+var_170] mov rax, r9 add rax, 30h ; '0' mov [rbp+var_170], rax mov r10, [rbp+var_28] mov eax, [rbp+var_174] imul rax, 30h ; '0' add r10, rax mov rax, [rbp+var_28] mov r11, [rbp+var_30] mov r11d, [r11] imul r11, 30h ; '0' add rax, r11 mov [rsp+190h+var_190], r10 mov [rsp+190h+var_188], rax call merge_buffers cmp eax, 0 jz short loc_ACCCD jmp loc_ACD80 loc_ACCCD: mov rdi, [rbp+var_160] mov esi, 1 call my_b_flush_io_cache cmp eax, 0 jz short loc_ACCE8 jmp loc_ACD80 loc_ACCE8: mov rax, [rbp+var_158] mov [rbp+var_168], rax mov rax, [rbp+var_160] mov [rbp+var_158], rax mov rax, [rbp+var_168] mov [rbp+var_160], rax mov rax, [rbp+var_170] mov rcx, [rbp+var_28] sub rax, rcx mov ecx, 30h ; '0' cqo idiv rcx mov ecx, eax sub ecx, 1 mov rax, [rbp+var_30] mov [rax], ecx mov rax, [rbp+var_10] mov rax, [rax+380h] mov rax, [rax+90h] cmp dword ptr [rax+20CC8h], 1 jz short loc_ACD7B mov rax, [rbp+var_10] mov rax, [rax+380h] mov rdi, [rax+90h] mov eax, [rbp+var_40] mov ecx, eax add ecx, 1 mov [rbp+var_40], ecx mov eax, eax mov esi, eax mov eax, [rbp+var_44] mov edx, eax call _ma_report_progress loc_ACD7B: jmp loc_ACB26 loc_ACD80: jmp short $+2 loc_ACD82: mov rdi, [rbp+var_160] call close_cached_file mov rax, [rbp+var_160] cmp rax, [rbp+var_38] jnz short loc_ACDB4 jmp short $+2 loc_ACD9D: jmp short $+2 loc_ACD9F: mov rdi, [rbp+var_38] lea rsi, [rbp+var_150] mov edx, 108h call _memcpy loc_ACDB4: jmp short $+2 loc_ACDB6: mov rax, [rbp+var_30] cmp dword ptr [rax], 1Fh setnb al and al, 1 movzx eax, al mov [rbp+var_4], eax loc_ACDC8: mov eax, [rbp+var_4] add rsp, 190h pop rbp retn
_BOOL8 merge_many_buff(long long a1, long long a2, long long a3, long long a4, unsigned int *a5, _BYTE *a6) { long long v6; // rax int v7; // r9d int v8; // r9d unsigned int j; // [rsp+1Ch] [rbp-174h] long long v11; // [rsp+20h] [rbp-170h] long long v12; // [rsp+20h] [rbp-170h] _BYTE *v13; // [rsp+28h] [rbp-168h] _BYTE *v14; // [rsp+30h] [rbp-160h] _BYTE *v15; // [rsp+38h] [rbp-158h] _BYTE v16[268]; // [rsp+40h] [rbp-150h] BYREF int v17; // [rsp+14Ch] [rbp-44h] unsigned int v18; // [rsp+150h] [rbp-40h] unsigned int i; // [rsp+154h] [rbp-3Ch] _BYTE *v20; // [rsp+158h] [rbp-38h] unsigned int *v21; // [rsp+160h] [rbp-30h] long long v22; // [rsp+168h] [rbp-28h] long long v23; // [rsp+170h] [rbp-20h] long long v24; // [rsp+178h] [rbp-18h] long long v25; // [rsp+180h] [rbp-10h] v25 = a1; v24 = a2; v23 = a3; v22 = a4; v21 = a5; v20 = a6; if ( *a5 >= 0x1F ) { if ( (unsigned int)my_b_flush_io_cache(v20, 1LL) ) return 1; v6 = my_tmpdir(*(_QWORD *)(v25 + 1016)); if ( (unsigned __int8)open_cached_file( v16, v6, "ST", 0x80000LL, *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v25 + 896) + 144LL) + 133528LL)) ) { return 1; } else { v17 = 1; for ( i = *v21; i >= 0x1F; i = v18 ) { v18 = (i - 22 + 1) / 0xF + 1; v17 += v18; } v18 = 0; v15 = v20; v14 = v16; while ( *v21 >= 0x1F ) { reinit_io_cache(v15, 1LL, 0LL, 0LL); reinit_io_cache(v14, 2LL, 0LL, 0LL); v11 = v22; for ( j = 0; j + 22 <= *v21; j += 15 ) { v7 = v11; v11 += 48LL; if ( (unsigned int)merge_buffers( v25, v24, (_DWORD)v15, (_DWORD)v14, v23, v7, 48LL * j + v22, 48LL * j + v22 + 672) ) goto LABEL_22; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v25 + 896) + 144LL) + 134344LL) != 1 ) { ++v18; ma_report_progress(); } } v8 = v11; v12 = v11 + 48; if ( (unsigned int)merge_buffers(v25, v24, (_DWORD)v15, (_DWORD)v14, v23, v8, 48LL * j + v22, 48LL * *v21 + v22) || (unsigned int)my_b_flush_io_cache(v14, 1LL) ) { break; } v13 = v15; v15 = v14; v14 = v13; *v21 = (v12 - v22) / 48 - 1; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v25 + 896) + 144LL) + 134344LL) != 1 ) { ++v18; ma_report_progress(); } } LABEL_22: close_cached_file(v14); if ( v14 == v20 ) memcpy(v20, v16, 264LL); return *v21 >= 0x1F; } } else { return 0; } }
merge_many_buff: PUSH RBP MOV RBP,RSP SUB RSP,0x190 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x30] CMP dword ptr [RAX],0x1f JNC 0x001aca5a JMP 0x001aca4e LAB_001aca4e: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001acdc8 LAB_001aca5a: MOV RDI,qword ptr [RBP + -0x38] MOV ESI,0x1 CALL 0x002069c0 CMP EAX,0x0 JNZ 0x001acab9 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x3f8] CALL 0x002143b0 MOV RSI,RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x380] MOV RAX,qword ptr [RAX + 0x90] MOV R8,qword ptr [RAX + 0x20998] LEA RDI,[RBP + -0x150] LEA RDX,[0x28305d] MOV ECX,0x80000 CALL 0x002050e0 MOVSX EAX,AL CMP EAX,0x0 JZ 0x001acac7 LAB_001acab9: JMP 0x001acabb LAB_001acabb: MOV dword ptr [RBP + -0x4],0x1 JMP 0x001acdc8 LAB_001acac7: MOV dword ptr [RBP + -0x44],0x1 MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x3c],EAX LAB_001acad7: CMP dword ptr [RBP + -0x3c],0x1f JC 0x001acb06 MOV EAX,dword ptr [RBP + -0x3c] SUB EAX,0x16 ADD EAX,0x1 MOV ECX,0xf XOR EDX,EDX DIV ECX ADD EAX,0x1 MOV dword ptr [RBP + -0x40],EAX MOV EAX,dword ptr [RBP + -0x40] ADD EAX,dword ptr [RBP + -0x44] MOV dword ptr [RBP + -0x44],EAX MOV EAX,dword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x3c],EAX JMP 0x001acad7 LAB_001acb06: MOV dword ptr [RBP + -0x40],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x158],RAX LEA RAX,[RBP + -0x150] MOV qword ptr [RBP + -0x160],RAX LAB_001acb26: MOV RAX,qword ptr [RBP + -0x30] CMP dword ptr [RAX],0x1f JC 0x001acd80 MOV RDI,qword ptr [RBP + -0x158] MOV ESI,0x1 XOR EAX,EAX MOV EDX,EAX XOR R8D,R8D MOV ECX,R8D CALL 0x00206630 MOV RDI,qword ptr [RBP + -0x160] MOV ESI,0x2 XOR EAX,EAX MOV EDX,EAX XOR R8D,R8D MOV ECX,R8D CALL 0x00206630 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x170],RAX MOV dword ptr [RBP + -0x174],0x0 LAB_001acb7e: MOV EAX,dword ptr [RBP + -0x174] ADD EAX,0x16 MOV RCX,qword ptr [RBP + -0x30] CMP EAX,dword ptr [RCX] JA 0x001acc63 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x158] MOV RCX,qword ptr [RBP + -0x160] MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x170] MOV RAX,R9 ADD RAX,0x30 MOV qword ptr [RBP + -0x170],RAX MOV R10,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RBP + -0x174] IMUL RAX,RAX,0x30 ADD R10,RAX MOV RAX,qword ptr [RBP + -0x28] MOV R11D,dword ptr [RBP + -0x174] IMUL R11,R11,0x30 ADD RAX,R11 ADD RAX,0x2d0 ADD RAX,-0x30 MOV qword ptr [RSP],R10 MOV qword ptr [RSP + 0x8],RAX CALL 0x001ae9c0 CMP EAX,0x0 JZ 0x001acc07 JMP 0x001acd82 LAB_001acc07: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x380] MOV RAX,qword ptr [RAX + 0x90] CMP dword ptr [RAX + 0x20cc8],0x1 JZ 0x001acc4d MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x380] MOV RDI,qword ptr [RAX + 0x90] MOV EAX,dword ptr [RBP + -0x40] MOV ECX,EAX ADD ECX,0x1 MOV dword ptr [RBP + -0x40],ECX MOV EAX,EAX MOV ESI,EAX MOV EAX,dword ptr [RBP + -0x44] MOV EDX,EAX CALL 0x0012b3e0 LAB_001acc4d: JMP 0x001acc4f LAB_001acc4f: MOV EAX,dword ptr [RBP + -0x174] ADD EAX,0xf MOV dword ptr [RBP + -0x174],EAX JMP 0x001acb7e LAB_001acc63: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x158] MOV RCX,qword ptr [RBP + -0x160] MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x170] MOV RAX,R9 ADD RAX,0x30 MOV qword ptr [RBP + -0x170],RAX MOV R10,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RBP + -0x174] IMUL RAX,RAX,0x30 ADD R10,RAX MOV RAX,qword ptr [RBP + -0x28] MOV R11,qword ptr [RBP + -0x30] MOV R11D,dword ptr [R11] IMUL R11,R11,0x30 ADD RAX,R11 MOV qword ptr [RSP],R10 MOV qword ptr [RSP + 0x8],RAX CALL 0x001ae9c0 CMP EAX,0x0 JZ 0x001acccd JMP 0x001acd80 LAB_001acccd: MOV RDI,qword ptr [RBP + -0x160] MOV ESI,0x1 CALL 0x002069c0 CMP EAX,0x0 JZ 0x001acce8 JMP 0x001acd80 LAB_001acce8: MOV RAX,qword ptr [RBP + -0x158] MOV qword ptr [RBP + -0x168],RAX MOV RAX,qword ptr [RBP + -0x160] MOV qword ptr [RBP + -0x158],RAX MOV RAX,qword ptr [RBP + -0x168] MOV qword ptr [RBP + -0x160],RAX MOV RAX,qword ptr [RBP + -0x170] MOV RCX,qword ptr [RBP + -0x28] SUB RAX,RCX MOV ECX,0x30 CQO IDIV RCX MOV ECX,EAX SUB ECX,0x1 MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x380] MOV RAX,qword ptr [RAX + 0x90] CMP dword ptr [RAX + 0x20cc8],0x1 JZ 0x001acd7b MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x380] MOV RDI,qword ptr [RAX + 0x90] MOV EAX,dword ptr [RBP + -0x40] MOV ECX,EAX ADD ECX,0x1 MOV dword ptr [RBP + -0x40],ECX MOV EAX,EAX MOV ESI,EAX MOV EAX,dword ptr [RBP + -0x44] MOV EDX,EAX CALL 0x0012b3e0 LAB_001acd7b: JMP 0x001acb26 LAB_001acd80: JMP 0x001acd82 LAB_001acd82: MOV RDI,qword ptr [RBP + -0x160] CALL 0x002052a0 MOV RAX,qword ptr [RBP + -0x160] CMP RAX,qword ptr [RBP + -0x38] JNZ 0x001acdb4 JMP 0x001acd9d LAB_001acd9d: JMP 0x001acd9f LAB_001acd9f: MOV RDI,qword ptr [RBP + -0x38] LEA RSI,[RBP + -0x150] MOV EDX,0x108 CALL 0x0012a0c0 LAB_001acdb4: JMP 0x001acdb6 LAB_001acdb6: MOV RAX,qword ptr [RBP + -0x30] CMP dword ptr [RAX],0x1f SETNC AL AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x4],EAX LAB_001acdc8: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x190 POP RBP RET
bool merge_many_buff(long param_1,int8 param_2,int8 param_3,long param_4,uint *param_5, int1 *param_6) { bool bVar1; int1 *puVar2; char cVar3; int iVar4; int iVar5; int8 uVar6; uint local_17c; long local_178; int1 *local_168; int1 *local_160; int1 local_158 [268]; int local_4c; int local_48; uint local_44; int1 *local_40; uint *local_38; long local_30; int8 local_28; int8 local_20; long local_18; if (*param_5 < 0x1f) { bVar1 = false; } else { local_40 = param_6; local_38 = param_5; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; iVar4 = my_b_flush_io_cache(param_6,1); if (iVar4 == 0) { uVar6 = my_tmpdir(*(int8 *)(local_18 + 0x3f8)); cVar3 = open_cached_file(local_158,uVar6,&DAT_0028305d,0x80000, *(int8 *) (*(long *)(*(long *)(local_18 + 0x380) + 0x90) + 0x20998)); if (cVar3 == '\0') { local_4c = 1; local_44 = *local_38; while (0x1e < local_44) { local_44 = (local_44 - 0x15) / 0xf + 1; local_4c = local_44 + local_4c; } local_48 = 0; local_160 = local_40; local_168 = local_158; while (puVar2 = local_160, 0x1e < *local_38) { reinit_io_cache(local_160,1,0,0); reinit_io_cache(local_168,2,0,0); local_178 = local_30; for (local_17c = 0; local_17c + 0x16 <= *local_38; local_17c = local_17c + 0xf) { iVar5 = merge_buffers(local_18,local_20,local_160,local_168,local_28,local_178, local_30 + (ulong)local_17c * 0x30, local_30 + (ulong)local_17c * 0x30 + 0x2a0); iVar4 = local_48; if (iVar5 != 0) goto LAB_001acd82; if (*(int *)(*(long *)(*(long *)(local_18 + 0x380) + 0x90) + 0x20cc8) != 1) { local_48 = local_48 + 1; _ma_report_progress(*(int8 *)(*(long *)(local_18 + 0x380) + 0x90),iVar4,local_4c ); } local_178 = local_178 + 0x30; } iVar4 = merge_buffers(local_18,local_20,local_160,local_168,local_28,local_178, local_30 + (ulong)local_17c * 0x30, local_30 + (ulong)*local_38 * 0x30); if ((iVar4 != 0) || (iVar5 = my_b_flush_io_cache(local_168,1), iVar4 = local_48, iVar5 != 0)) break; local_160 = local_168; local_168 = puVar2; *local_38 = (int)(((local_178 + 0x30) - local_30) / 0x30) - 1; if (*(int *)(*(long *)(*(long *)(local_18 + 0x380) + 0x90) + 0x20cc8) != 1) { local_48 = local_48 + 1; _ma_report_progress(*(int8 *)(*(long *)(local_18 + 0x380) + 0x90),iVar4,local_4c); } } LAB_001acd82: close_cached_file(local_168); if (local_168 == local_40) { memcpy(local_40,local_158,0x108); } return 0x1e < *local_38; } } bVar1 = true; } return bVar1; }
29,321
merge_many_buff
eloqsql/storage/maria/ma_sort.c
static int merge_many_buff(MARIA_SORT_PARAM *info, ha_keys keys, uchar **sort_keys, BUFFPEK *buffpek, uint *maxbuffer, IO_CACHE *t_file) { uint tmp, merges, max_merges; IO_CACHE t_file2, *from_file, *to_file, *temp; BUFFPEK *lastbuff; DBUG_ENTER("merge_many_buff"); if (*maxbuffer < MERGEBUFF2) DBUG_RETURN(0); /* purecov: inspected */ if (flush_io_cache(t_file) || open_cached_file(&t_file2,my_tmpdir(info->tmpdir),"ST", DISK_BUFFER_SIZE, info->sort_info->param->myf_rw)) DBUG_RETURN(1); /* purecov: inspected */ /* Calculate how many merges are needed */ max_merges= 1; /* Count merge_index */ tmp= *maxbuffer; while (tmp >= MERGEBUFF2) { merges= (tmp-MERGEBUFF*3/2 + 1) / MERGEBUFF + 1; max_merges+= merges; tmp= merges; } merges= 0; from_file= t_file ; to_file= &t_file2; while (*maxbuffer >= MERGEBUFF2) { uint i; reinit_io_cache(from_file,READ_CACHE,0L,0,0); reinit_io_cache(to_file,WRITE_CACHE,0L,0,0); lastbuff=buffpek; for (i=0 ; i + MERGEBUFF*3/2 <= *maxbuffer ; i+=MERGEBUFF) { if (merge_buffers(info,keys,from_file,to_file,sort_keys,lastbuff++, buffpek+i,buffpek+i+MERGEBUFF-1)) goto cleanup; if (info->sort_info->param->max_stage != 1) /* If not parallel */ _ma_report_progress(info->sort_info->param, merges++, max_merges); } if (merge_buffers(info,keys,from_file,to_file,sort_keys,lastbuff++, buffpek+i,buffpek+ *maxbuffer)) break; /* purecov: inspected */ if (flush_io_cache(to_file)) break; /* purecov: inspected */ temp=from_file; from_file=to_file; to_file=temp; *maxbuffer= (uint) (lastbuff-buffpek)-1; if (info->sort_info->param->max_stage != 1) /* If not parallel */ _ma_report_progress(info->sort_info->param, merges++, max_merges); } cleanup: close_cached_file(to_file); /* This holds old result */ if (to_file == t_file) { DBUG_ASSERT(t_file2.type == WRITE_CACHE); *t_file=t_file2; /* Copy result file */ } DBUG_RETURN(*maxbuffer >= MERGEBUFF2); /* Return 1 if interrupted */ }
O3
c
merge_many_buff: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x148, %rsp # imm = 0x148 movq %rdx, -0x60(%rbp) movq %rsi, -0x58(%rbp) xorl %r15d, %r15d cmpl $0x1f, (%r8) jb 0x83664 movq %r9, %r13 movq %r8, %rbx movq %rcx, %r12 movq %rdi, %r14 movl $0x1, %r15d movq %r9, %rdi movl $0x1, %esi callq 0xb0e3d testl %eax, %eax jne 0x83664 movq 0x3f8(%r14), %rdi callq 0xb90fe movq 0x380(%r14), %rcx movq 0x90(%rcx), %rcx movq 0x20998(%rcx), %r8 leaq 0x7abd6(%rip), %rdx # 0xfdffd leaq -0x168(%rbp), %rdi movl $0x80000, %ecx # imm = 0x80000 movq %rax, %rsi callq 0xb0044 testb %al, %al jne 0x83664 leaq -0x168(%rbp), %r15 movl (%rbx), %ecx cmpl $0x1f, %ecx jb 0x83639 movl $0x1, %eax movl $0x88888889, %edx # imm = 0x88888889 movl %ecx, %esi addl $-0x15, %esi movq %rsi, %rdi imulq %rdx, %rdi shrq $0x23, %rdi addl %edi, %eax incl %eax incl %edi cmpl $0x1c1, %esi # imm = 0x1C1 movl %edi, %esi ja 0x83461 cmpl $0x1f, %ecx jb 0x83639 movl %eax, %eax movq %rax, -0x50(%rbp) movq $0x0, -0x38(%rbp) leaq -0x168(%rbp), %rcx movq %r13, -0x30(%rbp) movq %r13, -0x48(%rbp) movq -0x30(%rbp), %rdi movq %rcx, %r15 movq %rdi, -0x40(%rbp) movl $0x1, %esi xorl %edx, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0xb0c0c movq %r15, -0x30(%rbp) movq %r15, %rdi movl $0x2, %esi xorl %edx, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0xb0c0c movl (%rbx), %eax cmpl $0x16, %eax jae 0x834eb movq %r12, %r15 xorl %r13d, %r13d jmp 0x83576 movl $0x16, %r13d movq %r12, %r15 leal -0x16(%r13), %eax leaq (%rax,%rax,2), %rax shlq $0x4, %rax leaq (%r12,%rax), %r10 addq %r12, %rax addq $0x2a0, %rax # imm = 0x2A0 movq %r14, %rdi movq -0x58(%rbp), %rsi movq -0x40(%rbp), %rdx movq -0x30(%rbp), %rcx movq -0x60(%rbp), %r8 movq %r15, %r9 pushq %rax pushq %r10 callq 0x849e0 addq $0x10, %rsp testl %eax, %eax jne 0x83631 movq 0x380(%r14), %rax movq 0x90(%rax), %rdi cmpl $0x1, 0x20cc8(%rdi) je 0x83563 movq -0x38(%rbp), %rax movl %eax, %esi incl %eax movq %rax, -0x38(%rbp) movq -0x50(%rbp), %rdx callq 0x32db7 addq $0x30, %r15 movl (%rbx), %eax addl $0xf, %r13d cmpl %eax, %r13d jbe 0x834f4 addl $-0x16, %r13d leaq (,%r13,2), %r10 addq %r13, %r10 shlq $0x4, %r10 addq %r12, %r10 movl %eax, %eax leaq (%rax,%rax,2), %rax shlq $0x4, %rax addq %r12, %rax movq %r14, %rdi movq -0x58(%rbp), %rsi movq -0x40(%rbp), %rdx movq -0x30(%rbp), %r13 movq %r13, %rcx movq -0x60(%rbp), %r8 movq %r15, %r9 pushq %rax pushq %r10 callq 0x849e0 addq $0x10, %rsp testl %eax, %eax jne 0x83679 movq %r13, %rdi movl $0x1, %esi callq 0xb0e3d testl %eax, %eax movq -0x48(%rbp), %r13 jne 0x8367e addq $0x30, %r15 subq %r12, %r15 shrq $0x4, %r15 imull $0xaaaaaaab, %r15d, %eax # imm = 0xAAAAAAAB decl %eax movl %eax, (%rbx) movq 0x380(%r14), %rcx movq 0x90(%rcx), %rdi cmpl $0x1, 0x20cc8(%rdi) je 0x8361f movq -0x38(%rbp), %rax movl %eax, %esi incl %eax movq %rax, -0x38(%rbp) movq -0x50(%rbp), %rdx callq 0x32db7 movl (%rbx), %eax movq -0x40(%rbp), %r15 movq %r15, %rcx cmpl $0x1e, %eax ja 0x834a5 jmp 0x83639 movq -0x30(%rbp), %r15 movq -0x48(%rbp), %r13 movq %r15, %rdi callq 0xb011c cmpq %r13, %r15 jne 0x8365a leaq -0x168(%rbp), %rsi movl $0x108, %edx # imm = 0x108 movq %r13, %rdi callq 0x2a0b0 xorl %r15d, %r15d cmpl $0x1f, (%rbx) setae %r15b movl %r15d, %eax addq $0x148, %rsp # imm = 0x148 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r13, %r15 jmp 0x83635 movq -0x30(%rbp), %r15 jmp 0x83639
merge_many_buff: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 148h mov [rbp+var_60], rdx mov [rbp+var_58], rsi xor r15d, r15d cmp dword ptr [r8], 1Fh jb loc_83664 mov r13, r9 mov rbx, r8 mov r12, rcx mov r14, rdi mov r15d, 1 mov rdi, r9 mov esi, 1 call my_b_flush_io_cache test eax, eax jnz loc_83664 mov rdi, [r14+3F8h] call my_tmpdir mov rcx, [r14+380h] mov rcx, [rcx+90h] mov r8, [rcx+20998h] lea rdx, aSt; "ST" lea rdi, [rbp+var_168] mov ecx, 80000h mov rsi, rax call open_cached_file test al, al jnz loc_83664 lea r15, [rbp+var_168] mov ecx, [rbx] cmp ecx, 1Fh jb loc_83639 mov eax, 1 mov edx, 88888889h mov esi, ecx loc_83461: add esi, 0FFFFFFEBh mov rdi, rsi imul rdi, rdx shr rdi, 23h add eax, edi inc eax inc edi cmp esi, 1C1h mov esi, edi ja short loc_83461 cmp ecx, 1Fh jb loc_83639 mov eax, eax mov [rbp+var_50], rax mov [rbp+var_38], 0 lea rcx, [rbp+var_168] mov [rbp+var_30], r13 mov [rbp+var_48], r13 loc_834A5: mov rdi, [rbp+var_30] mov r15, rcx mov [rbp+var_40], rdi mov esi, 1 xor edx, edx xor ecx, ecx xor r8d, r8d call reinit_io_cache mov [rbp+var_30], r15 mov rdi, r15 mov esi, 2 xor edx, edx xor ecx, ecx xor r8d, r8d call reinit_io_cache mov eax, [rbx] cmp eax, 16h jnb short loc_834EB mov r15, r12 xor r13d, r13d jmp loc_83576 loc_834EB: mov r13d, 16h mov r15, r12 loc_834F4: lea eax, [r13-16h] lea rax, [rax+rax*2] shl rax, 4 lea r10, [r12+rax] add rax, r12 add rax, 2A0h mov rdi, r14 mov rsi, [rbp+var_58] mov rdx, [rbp+var_40] mov rcx, [rbp+var_30] mov r8, [rbp+var_60] mov r9, r15 push rax push r10 call merge_buffers add rsp, 10h test eax, eax jnz loc_83631 mov rax, [r14+380h] mov rdi, [rax+90h] cmp dword ptr [rdi+20CC8h], 1 jz short loc_83563 mov rax, [rbp+var_38] mov esi, eax inc eax mov [rbp+var_38], rax mov rdx, [rbp+var_50] call _ma_report_progress loc_83563: add r15, 30h ; '0' mov eax, [rbx] add r13d, 0Fh cmp r13d, eax jbe short loc_834F4 add r13d, 0FFFFFFEAh loc_83576: lea r10, ds:0[r13*2] add r10, r13 shl r10, 4 add r10, r12 mov eax, eax lea rax, [rax+rax*2] shl rax, 4 add rax, r12 mov rdi, r14 mov rsi, [rbp+var_58] mov rdx, [rbp+var_40] mov r13, [rbp+var_30] mov rcx, r13 mov r8, [rbp+var_60] mov r9, r15 push rax push r10 call merge_buffers add rsp, 10h test eax, eax jnz loc_83679 mov rdi, r13 mov esi, 1 call my_b_flush_io_cache test eax, eax mov r13, [rbp+var_48] jnz loc_8367E add r15, 30h ; '0' sub r15, r12 shr r15, 4 imul eax, r15d, 0AAAAAAABh dec eax mov [rbx], eax mov rcx, [r14+380h] mov rdi, [rcx+90h] cmp dword ptr [rdi+20CC8h], 1 jz short loc_8361F mov rax, [rbp+var_38] mov esi, eax inc eax mov [rbp+var_38], rax mov rdx, [rbp+var_50] call _ma_report_progress mov eax, [rbx] loc_8361F: mov r15, [rbp+var_40] mov rcx, r15 cmp eax, 1Eh ja loc_834A5 jmp short loc_83639 loc_83631: mov r15, [rbp+var_30] loc_83635: mov r13, [rbp+var_48] loc_83639: mov rdi, r15 call close_cached_file cmp r15, r13 jnz short loc_8365A lea rsi, [rbp+var_168] mov edx, 108h mov rdi, r13 call _memcpy loc_8365A: xor r15d, r15d cmp dword ptr [rbx], 1Fh setnb r15b loc_83664: mov eax, r15d add rsp, 148h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_83679: mov r15, r13 jmp short loc_83635 loc_8367E: mov r15, [rbp+var_30] jmp short loc_83639
long long merge_many_buff(long long a1, long long a2, long long a3, long long a4, unsigned int *a5, _BYTE *a6) { unsigned int v6; // r15d _BYTE *v7; // r13 long long v10; // rax _BYTE *v11; // r15 unsigned int v12; // eax unsigned int v13; // esi unsigned int v14; // esi bool v15; // cc _BYTE *v16; // rcx _BYTE *v17; // r15 unsigned int v18; // eax long long v19; // r15 long long v20; // r13 unsigned int v21; // r13d long long v22; // r10 _BYTE *v23; // r13 int v24; // eax unsigned int v25; // eax _BYTE v27[264]; // [rsp+8h] [rbp-168h] BYREF long long v28; // [rsp+110h] [rbp-60h] long long v29; // [rsp+118h] [rbp-58h] long long v30; // [rsp+120h] [rbp-50h] _BYTE *v31; // [rsp+128h] [rbp-48h] _BYTE *v32; // [rsp+130h] [rbp-40h] long long v33; // [rsp+138h] [rbp-38h] _BYTE *v34; // [rsp+140h] [rbp-30h] v28 = a3; v29 = a2; v6 = 0; if ( *a5 >= 0x1F ) { v7 = a6; v6 = 1; if ( !(unsigned int)my_b_flush_io_cache(a6, 1LL) ) { v10 = my_tmpdir(*(_QWORD *)(a1 + 1016)); if ( !(unsigned __int8)open_cached_file( v27, v10, "ST", 0x80000LL, *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 896) + 144LL) + 133528LL)) ) { v11 = v27; if ( *a5 >= 0x1F ) { v12 = 1; v13 = *a5; do { v14 = v13 - 21; v12 += v14 / 0xF + 1; v15 = v14 <= 0x1C1; v13 = v14 / 0xF + 1; } while ( !v15 ); if ( *a5 >= 0x1F ) { v30 = v12; v33 = 0LL; v16 = v27; v34 = v7; v31 = v7; while ( 1 ) { v17 = v16; v32 = v34; reinit_io_cache(v34, 1LL, 0LL, 0LL, 0LL); v34 = v17; reinit_io_cache(v17, 2LL, 0LL, 0LL, 0LL); v18 = *a5; if ( *a5 >= 0x16 ) { v21 = 22; v19 = a4; while ( !(unsigned int)merge_buffers( a1, v29, (_DWORD)v32, (_DWORD)v34, v28, v19, a4 + 48LL * (v21 - 22), a4 + 48LL * (v21 - 22) + 672) ) { if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 896) + 144LL) + 134344LL) != 1 ) { v33 = (unsigned int)(v33 + 1); ma_report_progress(); } v19 += 48LL; v18 = *a5; v21 += 15; if ( v21 > *a5 ) { v20 = v21 - 22; goto LABEL_17; } } v11 = v34; goto LABEL_24; } v19 = a4; v20 = 0LL; LABEL_17: v22 = a4 + 48 * v20; v23 = v34; if ( (unsigned int)merge_buffers(a1, v29, (_DWORD)v32, (_DWORD)v34, v28, v19, v22, a4 + 48LL * v18) ) { v11 = v23; LABEL_24: v7 = v31; goto LABEL_25; } v24 = my_b_flush_io_cache(v23, 1LL); v7 = v31; if ( v24 ) break; v25 = -1431655765 * ((unsigned long long)(v19 + 48 - a4) >> 4) - 1; *a5 = v25; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 896) + 144LL) + 134344LL) != 1 ) { v33 = (unsigned int)(v33 + 1); ma_report_progress(); v25 = *a5; } v11 = v32; v16 = v32; if ( v25 <= 0x1E ) goto LABEL_25; } v11 = v34; } } LABEL_25: close_cached_file(v11); if ( v11 == v7 ) memcpy(v7, v27, 264LL); return *a5 >= 0x1F; } } } return v6; }
merge_many_buff: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x148 MOV qword ptr [RBP + -0x60],RDX MOV qword ptr [RBP + -0x58],RSI XOR R15D,R15D CMP dword ptr [R8],0x1f JC 0x00183664 MOV R13,R9 MOV RBX,R8 MOV R12,RCX MOV R14,RDI MOV R15D,0x1 MOV RDI,R9 MOV ESI,0x1 CALL 0x001b0e3d TEST EAX,EAX JNZ 0x00183664 MOV RDI,qword ptr [R14 + 0x3f8] CALL 0x001b90fe MOV RCX,qword ptr [R14 + 0x380] MOV RCX,qword ptr [RCX + 0x90] MOV R8,qword ptr [RCX + 0x20998] LEA RDX,[0x1fdffd] LEA RDI,[RBP + -0x168] MOV ECX,0x80000 MOV RSI,RAX CALL 0x001b0044 TEST AL,AL JNZ 0x00183664 LEA R15,[RBP + -0x168] MOV ECX,dword ptr [RBX] CMP ECX,0x1f JC 0x00183639 MOV EAX,0x1 MOV EDX,0x88888889 MOV ESI,ECX LAB_00183461: ADD ESI,-0x15 MOV RDI,RSI IMUL RDI,RDX SHR RDI,0x23 ADD EAX,EDI INC EAX INC EDI CMP ESI,0x1c1 MOV ESI,EDI JA 0x00183461 CMP ECX,0x1f JC 0x00183639 MOV EAX,EAX MOV qword ptr [RBP + -0x50],RAX MOV qword ptr [RBP + -0x38],0x0 LEA RCX,[RBP + -0x168] MOV qword ptr [RBP + -0x30],R13 MOV qword ptr [RBP + -0x48],R13 LAB_001834a5: MOV RDI,qword ptr [RBP + -0x30] MOV R15,RCX MOV qword ptr [RBP + -0x40],RDI MOV ESI,0x1 XOR EDX,EDX XOR ECX,ECX XOR R8D,R8D CALL 0x001b0c0c MOV qword ptr [RBP + -0x30],R15 MOV RDI,R15 MOV ESI,0x2 XOR EDX,EDX XOR ECX,ECX XOR R8D,R8D CALL 0x001b0c0c MOV EAX,dword ptr [RBX] CMP EAX,0x16 JNC 0x001834eb MOV R15,R12 XOR R13D,R13D JMP 0x00183576 LAB_001834eb: MOV R13D,0x16 MOV R15,R12 LAB_001834f4: LEA EAX,[R13 + -0x16] LEA RAX,[RAX + RAX*0x2] SHL RAX,0x4 LEA R10,[R12 + RAX*0x1] ADD RAX,R12 ADD RAX,0x2a0 MOV RDI,R14 MOV RSI,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x30] MOV R8,qword ptr [RBP + -0x60] MOV R9,R15 PUSH RAX PUSH R10 CALL 0x001849e0 ADD RSP,0x10 TEST EAX,EAX JNZ 0x00183631 MOV RAX,qword ptr [R14 + 0x380] MOV RDI,qword ptr [RAX + 0x90] CMP dword ptr [RDI + 0x20cc8],0x1 JZ 0x00183563 MOV RAX,qword ptr [RBP + -0x38] MOV ESI,EAX INC EAX MOV qword ptr [RBP + -0x38],RAX MOV RDX,qword ptr [RBP + -0x50] CALL 0x00132db7 LAB_00183563: ADD R15,0x30 MOV EAX,dword ptr [RBX] ADD R13D,0xf CMP R13D,EAX JBE 0x001834f4 ADD R13D,-0x16 LAB_00183576: LEA R10,[R13*0x2] ADD R10,R13 SHL R10,0x4 ADD R10,R12 MOV EAX,EAX LEA RAX,[RAX + RAX*0x2] SHL RAX,0x4 ADD RAX,R12 MOV RDI,R14 MOV RSI,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RBP + -0x40] MOV R13,qword ptr [RBP + -0x30] MOV RCX,R13 MOV R8,qword ptr [RBP + -0x60] MOV R9,R15 PUSH RAX PUSH R10 CALL 0x001849e0 ADD RSP,0x10 TEST EAX,EAX JNZ 0x00183679 MOV RDI,R13 MOV ESI,0x1 CALL 0x001b0e3d TEST EAX,EAX MOV R13,qword ptr [RBP + -0x48] JNZ 0x0018367e ADD R15,0x30 SUB R15,R12 SHR R15,0x4 IMUL EAX,R15D,-0x55555555 DEC EAX MOV dword ptr [RBX],EAX MOV RCX,qword ptr [R14 + 0x380] MOV RDI,qword ptr [RCX + 0x90] CMP dword ptr [RDI + 0x20cc8],0x1 JZ 0x0018361f MOV RAX,qword ptr [RBP + -0x38] MOV ESI,EAX INC EAX MOV qword ptr [RBP + -0x38],RAX MOV RDX,qword ptr [RBP + -0x50] CALL 0x00132db7 MOV EAX,dword ptr [RBX] LAB_0018361f: MOV R15,qword ptr [RBP + -0x40] MOV RCX,R15 CMP EAX,0x1e JA 0x001834a5 JMP 0x00183639 LAB_00183631: MOV R15,qword ptr [RBP + -0x30] LAB_00183635: MOV R13,qword ptr [RBP + -0x48] LAB_00183639: MOV RDI,R15 CALL 0x001b011c CMP R15,R13 JNZ 0x0018365a LEA RSI,[RBP + -0x168] MOV EDX,0x108 MOV RDI,R13 CALL 0x0012a0b0 LAB_0018365a: XOR R15D,R15D CMP dword ptr [RBX],0x1f SETNC R15B LAB_00183664: MOV EAX,R15D ADD RSP,0x148 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00183679: MOV R15,R13 JMP 0x00183635 LAB_0018367e: MOV R15,qword ptr [RBP + -0x30] JMP 0x00183639
bool merge_many_buff(long param_1,int8 param_2,int8 param_3,long param_4,uint *param_5, int1 *param_6) { char cVar1; int iVar2; uint uVar3; uint uVar4; int8 uVar5; long lVar6; int1 *puVar7; uint uVar8; ulong uVar9; uint uVar10; long lVar11; bool bVar12; int1 local_170 [264]; int8 local_68; int8 local_60; ulong local_58; int1 *local_50; int1 *local_48; ulong local_40; int1 *local_38; bVar12 = false; if (0x1e < *param_5) { bVar12 = true; local_68 = param_3; local_60 = param_2; iVar2 = my_b_flush_io_cache(param_6,1); if (iVar2 == 0) { uVar5 = my_tmpdir(*(int8 *)(param_1 + 0x3f8)); cVar1 = open_cached_file(local_170,uVar5,&DAT_001fdffd,0x80000, *(int8 *) (*(long *)(*(long *)(param_1 + 0x380) + 0x90) + 0x20998)); if (cVar1 == '\0') { uVar4 = *param_5; puVar7 = local_170; if (0x1e < uVar4) { uVar3 = 1; uVar10 = uVar4; do { uVar8 = uVar10 - 0x15; uVar10 = uVar8 / 0xf; uVar3 = uVar3 + uVar10 + 1; uVar10 = uVar10 + 1; } while (0x1c1 < uVar8); if (0x1e < uVar4) { local_58 = (ulong)uVar3; local_40 = 0; puVar7 = local_170; local_50 = param_6; local_38 = param_6; do { local_48 = local_38; reinit_io_cache(local_38,1,0,0,0); local_38 = puVar7; reinit_io_cache(puVar7,2,0,0,0); uVar4 = *param_5; lVar11 = param_4; if (uVar4 < 0x16) { uVar9 = 0; } else { uVar10 = 0x16; do { uVar3 = uVar10; lVar6 = (ulong)(uVar3 - 0x16) * 0x30; iVar2 = merge_buffers(param_1,local_60,local_48,local_38,local_68,lVar11, param_4 + lVar6,lVar6 + param_4 + 0x2a0); param_6 = local_50; puVar7 = local_38; if (iVar2 != 0) goto LAB_00183639; lVar6 = *(long *)(*(long *)(param_1 + 0x380) + 0x90); if (*(int *)(lVar6 + 0x20cc8) != 1) { uVar9 = local_40 & 0xffffffff; local_40 = (ulong)((int)local_40 + 1); _ma_report_progress(lVar6,uVar9,local_58); } lVar11 = lVar11 + 0x30; uVar4 = *param_5; uVar10 = uVar3 + 0xf; } while (uVar3 + 0xf <= uVar4); uVar9 = (ulong)(uVar3 - 7); } puVar7 = local_38; iVar2 = merge_buffers(param_1,local_60,local_48,local_38,local_68,lVar11, uVar9 * 0x30 + param_4,(ulong)uVar4 * 0x30 + param_4); param_6 = local_50; if ((iVar2 != 0) || (iVar2 = my_b_flush_io_cache(puVar7,1), param_6 = local_50, puVar7 = local_38, iVar2 != 0)) break; uVar4 = (int)((ulong)((lVar11 + 0x30) - param_4) >> 4) * -0x55555555 - 1; *param_5 = uVar4; lVar11 = *(long *)(*(long *)(param_1 + 0x380) + 0x90); if (*(int *)(lVar11 + 0x20cc8) != 1) { uVar9 = local_40 & 0xffffffff; local_40 = (ulong)((int)local_40 + 1); _ma_report_progress(lVar11,uVar9,local_58); uVar4 = *param_5; } puVar7 = local_48; } while (0x1e < uVar4); } } LAB_00183639: close_cached_file(puVar7); if (puVar7 == param_6) { memcpy(param_6,local_170,0x108); } bVar12 = 0x1e < *param_5; } } } return bVar12; }
29,322
inline_mysql_file_pread
eloqsql/include/mysql/psi/mysql_file.h
static inline size_t inline_mysql_file_pread( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, uchar *buffer, size_t count, my_off_t offset, myf flags) { size_t result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; size_t bytes_read; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line); result= my_pread(file, buffer, count, offset, flags); if (flags & (MY_NABP | MY_FNABP)) bytes_read= (result == 0) ? count : 0; else bytes_read= (result != MY_FILE_ERROR) ? result : 0; PSI_FILE_CALL(end_file_wait)(locker, bytes_read); return result; } #endif result= my_pread(file, buffer, count, offset, flags); return result; }
O0
c
inline_mysql_file_pread: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq 0x10(%rbp), %rax movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) leaq 0x218a7c(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x88(%rbp), %rdi movl $0x6, %edx 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 0xa774f leaq 0x218a32(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x210(%rax), %rax movq -0x40(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x10(%rbp), %rdx movl -0x14(%rbp), %ecx callq *%rax movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx movq 0x10(%rbp), %r8 callq 0xf4660 movq %rax, -0x38(%rbp) movq 0x10(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xa76fa cmpq $0x0, -0x38(%rbp) jne 0xa76df movq -0x28(%rbp), %rax movq %rax, -0x98(%rbp) jmp 0xa76ea xorl %eax, %eax movq %rax, -0x98(%rbp) jmp 0xa76ea movq -0x98(%rbp), %rax movq %rax, -0x90(%rbp) jmp 0xa7727 cmpq $-0x1, -0x38(%rbp) je 0xa770e movq -0x38(%rbp), %rax movq %rax, -0xa0(%rbp) jmp 0xa7719 xorl %eax, %eax movq %rax, -0xa0(%rbp) jmp 0xa7719 movq -0xa0(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0x21898a(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x218(%rax), %rax movq -0x40(%rbp), %rdi movq -0x90(%rbp), %rsi callq *%rax movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xa7773 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx movq 0x10(%rbp), %r8 callq 0xf4660 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq
inline_mysql_file_pread_6: push rbp mov rbp, rsp sub rsp, 0A0h mov rax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+158h] mov esi, [rbp+var_18] lea rdi, [rbp+var_88] mov edx, 6 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 loc_A774F lea rax, PSI_server mov rax, [rax] mov rax, [rax+210h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_28] mov rdx, [rbp+var_10] mov ecx, [rbp+var_14] call rax mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] mov r8, [rbp+arg_0] call my_pread mov [rbp+var_38], rax mov rax, [rbp+arg_0] and rax, 6 cmp rax, 0 jz short loc_A76FA cmp [rbp+var_38], 0 jnz short loc_A76DF mov rax, [rbp+var_28] mov [rbp+var_98], rax jmp short loc_A76EA loc_A76DF: xor eax, eax mov [rbp+var_98], rax jmp short $+2 loc_A76EA: mov rax, [rbp+var_98] mov [rbp+var_90], rax jmp short loc_A7727 loc_A76FA: cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_A770E mov rax, [rbp+var_38] mov [rbp+var_A0], rax jmp short loc_A7719 loc_A770E: xor eax, eax mov [rbp+var_A0], rax jmp short $+2 loc_A7719: mov rax, [rbp+var_A0] mov [rbp+var_90], rax loc_A7727: lea rax, PSI_server mov rax, [rax] mov rax, [rax+218h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_90] call rax mov rax, [rbp+var_38] mov [rbp+var_8], rax jmp short loc_A7773 loc_A774F: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] mov r8, [rbp+arg_0] call my_pread mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_A7773: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn
long long inline_mysql_file_pread_6( long long a1, unsigned int a2, unsigned int a3, long long a4, long long a5, long long a6, long long a7) { long long v8; // [rsp+0h] [rbp-A0h] long long v9; // [rsp+8h] [rbp-98h] _BYTE v10[72]; // [rsp+18h] [rbp-88h] BYREF long long v11; // [rsp+60h] [rbp-40h] long long v12; // [rsp+68h] [rbp-38h] long long v13; // [rsp+70h] [rbp-30h] long long v14; // [rsp+78h] [rbp-28h] long long v15; // [rsp+80h] [rbp-20h] unsigned int v16; // [rsp+88h] [rbp-18h] unsigned int v17; // [rsp+8Ch] [rbp-14h] long long v18; // [rsp+90h] [rbp-10h] v18 = a1; v17 = a2; v16 = a3; v15 = a4; v14 = a5; v13 = a6; v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v10, a3, 6LL); if ( v11 ) { ((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v11, v14, v18, v17); v12 = my_pread(v16, v15, v14, v13, a7); if ( (a7 & 6) != 0 ) { if ( v12 ) v9 = 0LL; else v9 = v14; ((void ( *)(long long, long long))PSI_server[67])(v11, v9); } else { if ( v12 == -1 ) v8 = 0LL; else v8 = v12; ((void ( *)(long long, long long))PSI_server[67])(v11, v8); } return v12; } else { return my_pread(v16, v15, v14, v13, a7); } }
inline_mysql_file_pread: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x88] MOV EDX,0x6 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 0x001a774f LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x210] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] CALL RAX MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] MOV R8,qword ptr [RBP + 0x10] CALL 0x001f4660 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + 0x10] AND RAX,0x6 CMP RAX,0x0 JZ 0x001a76fa CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001a76df MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x98],RAX JMP 0x001a76ea LAB_001a76df: XOR EAX,EAX MOV qword ptr [RBP + -0x98],RAX JMP 0x001a76ea LAB_001a76ea: MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x90],RAX JMP 0x001a7727 LAB_001a76fa: CMP qword ptr [RBP + -0x38],-0x1 JZ 0x001a770e MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0xa0],RAX JMP 0x001a7719 LAB_001a770e: XOR EAX,EAX MOV qword ptr [RBP + -0xa0],RAX JMP 0x001a7719 LAB_001a7719: MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x90],RAX LAB_001a7727: LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x90] CALL RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX JMP 0x001a7773 LAB_001a774f: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] MOV R8,qword ptr [RBP + 0x10] CALL 0x001f4660 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_001a7773: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
long inline_mysql_file_pread (int8 param_1,int4 param_2,int4 param_3,int8 param_4, long param_5,int8 param_6,ulong param_7) { long local_a8; long local_a0; long local_98; int1 local_90 [72]; long local_48; long local_40; int8 local_38; long local_30; int8 local_28; int4 local_20; int4 local_1c; int8 local_18; long local_10; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6); if (local_48 == 0) { local_10 = my_pread(local_20,local_28,local_30,local_38,param_7); } else { (**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c); local_40 = my_pread(local_20,local_28,local_30,local_38,param_7); if ((param_7 & 6) == 0) { local_a8 = local_40; if (local_40 == -1) { local_a8 = 0; } local_98 = local_a8; } else { if (local_40 == 0) { local_a0 = local_30; } else { local_a0 = 0; } local_98 = local_a0; } (**(code **)(PSI_server + 0x218))(local_48,local_98); local_10 = local_40; } return local_10; }
29,323
inline_mysql_file_pread
eloqsql/include/mysql/psi/mysql_file.h
static inline size_t inline_mysql_file_pread( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, uchar *buffer, size_t count, my_off_t offset, myf flags) { size_t result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; size_t bytes_read; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line); result= my_pread(file, buffer, count, offset, flags); if (flags & (MY_NABP | MY_FNABP)) bytes_read= (result == 0) ? count : 0; else bytes_read= (result != MY_FILE_ERROR) ? result : 0; PSI_FILE_CALL(end_file_wait)(locker, bytes_read); return result; } #endif result= my_pread(file, buffer, count, offset, flags); return result; }
O3
c
inline_mysql_file_pread: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %rbx movq %rdx, %r14 movl %esi, %r15d movl %edi, %r13d leaq 0x331ead(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0x70(%rbp), %rdi movl $0x6, %edx callq *0x158(%rax) testq %rax, %rax jne 0x541a5 movl $0x4, %r8d movl %r15d, %edi movq %r14, %rsi movq %rbx, %rdx xorl %ecx, %ecx callq 0xa0660 movq %rax, %r14 movq %r14, %rax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r12 leaq 0x331e61(%rip), %rax # 0x386010 movq (%rax), %rax leaq 0x868c9(%rip), %rdx # 0xdaa82 movq %r12, %rdi movq %rbx, %rsi movl %r13d, %ecx callq *0x210(%rax) xorl %r13d, %r13d movl $0x4, %r8d movl %r15d, %edi movq %r14, %rsi movq %rbx, %rdx xorl %ecx, %ecx callq 0xa0660 movq %rax, %r14 testq %rax, %rax cmoveq %rbx, %r13 leaq 0x331e1e(%rip), %rax # 0x386010 movq (%rax), %rax movq %r12, %rdi movq %r13, %rsi callq *0x218(%rax) jmp 0x54193
inline_mysql_file_pread_1: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov rbx, rcx mov r14, rdx mov r15d, esi mov r13d, edi lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_70] mov edx, 6 call qword ptr [rax+158h] test rax, rax jnz short loc_541A5 mov r8d, 4 mov edi, r15d mov rsi, r14 mov rdx, rbx xor ecx, ecx call my_pread mov r14, rax loc_54193: mov rax, r14 add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_541A5: mov r12, rax lea rax, PSI_server mov rax, [rax] lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r12 mov rsi, rbx mov ecx, r13d call qword ptr [rax+210h] xor r13d, r13d mov r8d, 4 mov edi, r15d mov rsi, r14 mov rdx, rbx xor ecx, ecx call my_pread mov r14, rax test rax, rax cmovz r13, rbx lea rax, PSI_server mov rax, [rax] mov rdi, r12 mov rsi, r13 call qword ptr [rax+218h] jmp short loc_54193
long long inline_mysql_file_pread_1(unsigned int a1, long long a2, long long a3, long long a4) { long long v6; // rax long long v7; // r14 long long v9; // r12 long long v10; // r13 _BYTE v11[112]; // [rsp+0h] [rbp-70h] BYREF v6 = ((long long ( *)(_BYTE *, long long, long long))PSI_server[43])(v11, a2, 6LL); if ( !v6 ) return my_pread((unsigned int)a2, a3, a4, 0LL, 4LL); v9 = v6; ((void ( *)(long long, long long, const char *, _QWORD))PSI_server[66])( v6, a4, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c", a1); v10 = 0LL; v7 = my_pread((unsigned int)a2, a3, a4, 0LL, 4LL); if ( !v7 ) v10 = a4; ((void ( *)(long long, long long))PSI_server[67])(v9, v10); return v7; }
inline_mysql_file_pread: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV RBX,RCX MOV R14,RDX MOV R15D,ESI MOV R13D,EDI LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x70] MOV EDX,0x6 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x001541a5 MOV R8D,0x4 MOV EDI,R15D MOV RSI,R14 MOV RDX,RBX XOR ECX,ECX CALL 0x001a0660 MOV R14,RAX LAB_00154193: MOV RAX,R14 ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001541a5: MOV R12,RAX LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDX,[0x1daa82] MOV RDI,R12 MOV RSI,RBX MOV ECX,R13D CALL qword ptr [RAX + 0x210] XOR R13D,R13D MOV R8D,0x4 MOV EDI,R15D MOV RSI,R14 MOV RDX,RBX XOR ECX,ECX CALL 0x001a0660 MOV R14,RAX TEST RAX,RAX CMOVZ R13,RBX LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] MOV RDI,R12 MOV RSI,R13 CALL qword ptr [RAX + 0x218] JMP 0x00154193
long inline_mysql_file_pread(int4 param_1,ulong param_2,int8 param_3,int8 param_4) { long lVar1; long lVar2; int8 uVar3; int1 local_78 [72]; lVar1 = (**(code **)(PSI_server + 0x158))(local_78,param_2,6); if (lVar1 == 0) { lVar2 = my_pread(param_2 & 0xffffffff,param_3,param_4,0,4); } else { (**(code **)(PSI_server + 0x210)) (lVar1,param_4,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c", param_1); lVar2 = my_pread(param_2 & 0xffffffff,param_3,param_4,0,4); uVar3 = 0; if (lVar2 == 0) { uVar3 = param_4; } (**(code **)(PSI_server + 0x218))(lVar1,uVar3); } return lVar2; }
29,324
copy_uca_collation
eloqsql/mysys/charset.c
static void copy_uca_collation(struct charset_info_st *to, CHARSET_INFO *from, CHARSET_INFO *loaded) { to->cset= from->cset; to->coll= from->coll; /* Single-level UCA collation have strnxfrm_multiple=8. In case of a multi-level UCA collation we use strnxfrm_multiply=4. That means MY_COLLATION_HANDLER::strnfrmlen() will request the caller to allocate a buffer smaller size for each level, for performance purpose, and to fit longer VARCHARs to @@max_sort_length. This makes filesort produce non-precise order for some rare Unicode characters that produce more than 4 weights (long expansions). UCA requires 2 bytes per weight multiplied by the number of levels. In case of a 2-level collation, each character requires 4*2=8 bytes. Therefore, the longest VARCHAR that fits into the default @@max_sort_length is 1024/8=VARCHAR(128). With strnxfrm_multiply==8, only VARCHAR(64) would fit. Note, the built-in collation utf8_thai_520_w2 also uses strnxfrm_multiply=4, for the same purpose. TODO: we could add a new LDML syntax to choose strxfrm_multiply value. */ to->strxfrm_multiply= loaded->levels_for_order > 1 ? 4 : from->strxfrm_multiply; to->min_sort_char= from->min_sort_char; to->max_sort_char= from->max_sort_char; to->mbminlen= from->mbminlen; to->mbmaxlen= from->mbmaxlen; to->caseup_multiply= from->caseup_multiply; to->casedn_multiply= from->casedn_multiply; to->state|= MY_CS_AVAILABLE | MY_CS_LOADED | MY_CS_STRNXFRM | MY_CS_UNICODE; }
O0
c
copy_uca_collation: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0xb8(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xb8(%rax) movq -0x10(%rbp), %rax movq 0xc0(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xc0(%rax) movq -0x18(%rbp), %rax movzbl 0xb2(%rax), %eax cmpl $0x1, %eax jle 0xde8e6 movl $0x4, %eax movl %eax, -0x1c(%rbp) jmp 0xde8f3 movq -0x10(%rbp), %rax movl 0x90(%rax), %eax movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x90(%rax) movq -0x10(%rbp), %rax movq 0xa0(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xa0(%rax) movq -0x10(%rbp), %rax movq 0xa8(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xa8(%rax) movq -0x10(%rbp), %rax movl 0x98(%rax), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x98(%rax) movq -0x10(%rbp), %rax movl 0x9c(%rax), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x9c(%rax) movq -0x10(%rbp), %rax movb 0x94(%rax), %cl movq -0x8(%rbp), %rax movb %cl, 0x94(%rax) movq -0x10(%rbp), %rax movb 0x95(%rax), %cl movq -0x8(%rbp), %rax movb %cl, 0x95(%rax) movq -0x8(%rbp), %rax movl 0xc(%rax), %ecx orl $0x2c8, %ecx # imm = 0x2C8 movl %ecx, 0xc(%rax) popq %rbp retq nop
copy_uca_collation: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] mov rcx, [rax+0B8h] mov rax, [rbp+var_8] mov [rax+0B8h], rcx mov rax, [rbp+var_10] mov rcx, [rax+0C0h] mov rax, [rbp+var_8] mov [rax+0C0h], rcx mov rax, [rbp+var_18] movzx eax, byte ptr [rax+0B2h] cmp eax, 1 jle short loc_DE8E6 mov eax, 4 mov [rbp+var_1C], eax jmp short loc_DE8F3 loc_DE8E6: mov rax, [rbp+var_10] mov eax, [rax+90h] mov [rbp+var_1C], eax loc_DE8F3: mov ecx, [rbp+var_1C] mov rax, [rbp+var_8] mov [rax+90h], ecx mov rax, [rbp+var_10] mov rcx, [rax+0A0h] mov rax, [rbp+var_8] mov [rax+0A0h], rcx mov rax, [rbp+var_10] mov rcx, [rax+0A8h] mov rax, [rbp+var_8] mov [rax+0A8h], rcx mov rax, [rbp+var_10] mov ecx, [rax+98h] mov rax, [rbp+var_8] mov [rax+98h], ecx mov rax, [rbp+var_10] mov ecx, [rax+9Ch] mov rax, [rbp+var_8] mov [rax+9Ch], ecx mov rax, [rbp+var_10] mov cl, [rax+94h] mov rax, [rbp+var_8] mov [rax+94h], cl mov rax, [rbp+var_10] mov cl, [rax+95h] mov rax, [rbp+var_8] mov [rax+95h], cl mov rax, [rbp+var_8] mov ecx, [rax+0Ch] or ecx, 2C8h mov [rax+0Ch], ecx pop rbp retn
long long copy_uca_collation(long long a1, long long a2, long long a3) { long long result; // rax int v4; // [rsp+0h] [rbp-1Ch] *(_QWORD *)(a1 + 184) = *(_QWORD *)(a2 + 184); *(_QWORD *)(a1 + 192) = *(_QWORD *)(a2 + 192); if ( *(unsigned __int8 *)(a3 + 178) <= 1u ) v4 = *(_DWORD *)(a2 + 144); else v4 = 4; *(_DWORD *)(a1 + 144) = v4; *(_QWORD *)(a1 + 160) = *(_QWORD *)(a2 + 160); *(_QWORD *)(a1 + 168) = *(_QWORD *)(a2 + 168); *(_DWORD *)(a1 + 152) = *(_DWORD *)(a2 + 152); *(_DWORD *)(a1 + 156) = *(_DWORD *)(a2 + 156); *(_BYTE *)(a1 + 148) = *(_BYTE *)(a2 + 148); *(_BYTE *)(a1 + 149) = *(_BYTE *)(a2 + 149); result = a1; *(_DWORD *)(a1 + 12) |= 0x2C8u; return result; }
copy_uca_collation: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xb8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0xc0] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xc0],RCX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0xb2] CMP EAX,0x1 JLE 0x001de8e6 MOV EAX,0x4 MOV dword ptr [RBP + -0x1c],EAX JMP 0x001de8f3 LAB_001de8e6: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x90] MOV dword ptr [RBP + -0x1c],EAX LAB_001de8f3: MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x90],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0xa0] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xa0],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0xa8] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xa8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x98] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x98],ECX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x9c] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x9c],ECX MOV RAX,qword ptr [RBP + -0x10] MOV CL,byte ptr [RAX + 0x94] MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x94],CL MOV RAX,qword ptr [RBP + -0x10] MOV CL,byte ptr [RAX + 0x95] MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x95],CL MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0xc] OR ECX,0x2c8 MOV dword ptr [RAX + 0xc],ECX POP RBP RET
void copy_uca_collation(long param_1,long param_2,long param_3) { int4 local_24; *(int8 *)(param_1 + 0xb8) = *(int8 *)(param_2 + 0xb8); *(int8 *)(param_1 + 0xc0) = *(int8 *)(param_2 + 0xc0); if (*(byte *)(param_3 + 0xb2) < 2) { local_24 = *(int4 *)(param_2 + 0x90); } else { local_24 = 4; } *(int4 *)(param_1 + 0x90) = local_24; *(int8 *)(param_1 + 0xa0) = *(int8 *)(param_2 + 0xa0); *(int8 *)(param_1 + 0xa8) = *(int8 *)(param_2 + 0xa8); *(int4 *)(param_1 + 0x98) = *(int4 *)(param_2 + 0x98); *(int4 *)(param_1 + 0x9c) = *(int4 *)(param_2 + 0x9c); *(int1 *)(param_1 + 0x94) = *(int1 *)(param_2 + 0x94); *(int1 *)(param_1 + 0x95) = *(int1 *)(param_2 + 0x95); *(uint *)(param_1 + 0xc) = *(uint *)(param_1 + 0xc) | 0x2c8; return; }
29,325
double minja::Value::get<double>() const
monkey531[P]llama/common/minja.hpp
T get() const { if (is_primitive()) return primitive_.get<T>(); throw std::runtime_error("get<T> not defined for this value type: " + dump()); }
O0
cpp
double minja::Value::get<double>() const: subq $0x68, %rsp movq %rdi, 0x60(%rsp) movq 0x60(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x114b40 testb $0x1, %al jne 0x1149be jmp 0x1149d1 movq 0x8(%rsp), %rdi addq $0x40, %rdi callq 0x116180 addq $0x68, %rsp retq movb $0x1, 0x13(%rsp) movl $0x10, %edi callq 0x5d680 movq 0x8(%rsp), %rsi movq %rax, (%rsp) leaq 0x20(%rsp), %rdi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x114bc0 jmp 0x1149fc leaq 0x104a1b(%rip), %rsi # 0x21941e leaq 0x40(%rsp), %rdi leaq 0x20(%rsp), %rdx callq 0xf9720 jmp 0x114a14 movq (%rsp), %rdi leaq 0x40(%rsp), %rsi callq 0x5d4b0 jmp 0x114a24 movq (%rsp), %rdi movb $0x0, 0x13(%rsp) movq 0x19957c(%rip), %rsi # 0x2adfb0 movq 0x199535(%rip), %rdx # 0x2adf70 callq 0x5db00 jmp 0x114aa2 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) jmp 0x114a84 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) jmp 0x114a7a movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) leaq 0x40(%rsp), %rdi callq 0x5e548 leaq 0x20(%rsp), %rdi callq 0x5e548 testb $0x1, 0x13(%rsp) jne 0x114a8d jmp 0x114a96 movq (%rsp), %rdi callq 0x5df80 jmp 0x114a98 movq 0x18(%rsp), %rdi callq 0x5dbc0 nopw %cs:(%rax,%rax) nopl (%rax)
_ZNK5minja5Value3getIdEET_v: sub rsp, 68h mov [rsp+68h+var_8], rdi mov rdi, [rsp+68h+var_8]; this mov [rsp+68h+var_60], rdi call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void) test al, 1 jnz short loc_1149BE jmp short loc_1149D1 loc_1149BE: mov rdi, [rsp+68h+var_60] add rdi, 40h ; '@' call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3getIddEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalIT_ELi0EEEvEE8get_implIT0_EtlNS0_6detail12priority_tagILj4EEEEEEv add rsp, 68h retn loc_1149D1: mov [rsp+68h+var_55], 1 mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rsi, [rsp+68h+var_60] mov [rsp+68h+var_68], rax lea rdi, [rsp+68h+var_48] mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) jmp short $+2 loc_1149FC: lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"... lea rdi, [rsp+68h+var_28] lea rdx, [rsp+68h+var_48] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) jmp short $+2 loc_114A14: mov rdi, [rsp+68h+var_68] lea rsi, [rsp+68h+var_28] call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) jmp short $+2 loc_114A24: mov rdi, [rsp+68h+var_68]; void * mov [rsp+68h+var_55], 0 mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw
long long minja::Value::get<double>(minja::Value *a1) { unsigned int exception; // eax int v3; // r8d int v4; // r9d void *v5; // [rsp+0h] [rbp-68h] _BYTE v6[32]; // [rsp+20h] [rbp-48h] BYREF _BYTE v7[32]; // [rsp+40h] [rbp-28h] BYREF minja::Value *v8; // [rsp+60h] [rbp-8h] v8 = a1; if ( (minja::Value::is_primitive(a1) & 1) == 0 ) { exception = (unsigned int)__cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((unsigned int)v6, (_DWORD)a1, -1, 0, v3, v4, exception, (_DWORD)a1); std::operator+<char>((long long)v7, (long long)"get<T> not defined for this value type: ", (long long)v6); std::runtime_error::runtime_error(v5, v7); __cxa_throw( v5, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } 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>::get<double,double>((char *)a1 + 64); }
29,326
double minja::Value::get<double>() const
monkey531[P]llama/common/minja.hpp
T get() const { if (is_primitive()) return primitive_.get<T>(); throw std::runtime_error("get<T> not defined for this value type: " + dump()); }
O1
cpp
double minja::Value::get<double>() const: pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 cmpq $0x0, 0x10(%rdi) jne 0x90c5b cmpq $0x0, 0x20(%r14) jne 0x90c5b cmpq $0x0, 0x30(%r14) jne 0x90c5b addq $0x40, %r14 movq %rsp, %rbx movl $0x0, (%rbx) movq %r14, %rdi movq %rbx, %rsi callq 0x90d14 movl (%rbx), %eax addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x10, %edi callq 0x1b440 movq %rax, %rbx leaq 0x20(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x867a8 leaq 0x62dd4(%rip), %rsi # 0xf3a57 movq %rsp, %rdi leaq 0x20(%rsp), %rdx callq 0x7859b movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0x1be00 xorl %ebp, %ebp movq 0x9f341(%rip), %rsi # 0x12ffe8 movq 0x9f2a2(%rip), %rdx # 0x12ff50 movq %rbx, %rdi callq 0x1bef0 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x90cdc movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8b0 jmp 0x90cdc movq %rax, %r14 movb $0x1, %bpl leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x90cff movq 0x30(%rsp), %rsi incq %rsi callq 0x1b8b0 jmp 0x90cff movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x90d0c movq %rbx, %rdi callq 0x1b650 movq %r14, %rdi callq 0x1bf70
_ZNK5minja5Value3getIiEET_v: push rbp push r14 push rbx sub rsp, 40h mov r14, rdi cmp qword ptr [rdi+10h], 0 jnz short loc_90C5B cmp qword ptr [r14+20h], 0 jnz short loc_90C5B cmp qword ptr [r14+30h], 0 jnz short loc_90C5B add r14, 40h ; '@' mov rbx, rsp mov dword ptr [rbx], 0 mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ mov eax, [rbx] add rsp, 40h pop rbx pop r14 pop rbp retn loc_90C5B: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+58h+var_38] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"... mov rdi, rsp lea rdx, [rsp+58h+var_38] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 mov rsi, rsp 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+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_90CDC mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_90CDC mov r14, rax mov bpl, 1 loc_90CDC: lea rax, [rsp+58h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_90CFF mov rsi, [rsp+58h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_90CFF mov r14, rax mov bpl, 1 loc_90CFF: test bpl, bpl jz short loc_90D0C mov rdi, rbx; void * call ___cxa_free_exception loc_90D0C: mov rdi, r14 call __Unwind_Resume
long long minja::Value::get<int>(_QWORD *a1) { void *exception; // rbx _DWORD v3[4]; // [rsp+0h] [rbp-58h] BYREF _BYTE v4[16]; // [rsp+20h] [rbp-38h] BYREF if ( a1[2] || a1[4] || a1[6] ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v4, (long long)a1, 0xFFFFFFFF, 0); std::operator+<char>((long long)v3, (long long)"get<T> not defined for this value type: ", (long long)v4); std::runtime_error::runtime_error(exception, v3); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v3[0] = 0; ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_( a1 + 8, v3); return v3[0]; }
get<int>: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RDI CMP qword ptr [RDI + 0x10],0x0 JNZ 0x00190c5b CMP qword ptr [R14 + 0x20],0x0 JNZ 0x00190c5b CMP qword ptr [R14 + 0x30],0x0 JNZ 0x00190c5b ADD R14,0x40 MOV RBX,RSP MOV dword ptr [RBX],0x0 MOV RDI,R14 MOV RSI,RBX CALL 0x00190d14 MOV EAX,dword ptr [RBX] ADD RSP,0x40 POP RBX POP R14 POP RBP RET LAB_00190c5b: MOV EDI,0x10 CALL 0x0011b440 MOV RBX,RAX LAB_00190c68: LEA RDI,[RSP + 0x20] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001867a8 LAB_00190c7c: LEA RSI,[0x1f3a57] MOV RDI,RSP LEA RDX,[RSP + 0x20] CALL 0x0017859b MOV BPL,0x1 LAB_00190c93: MOV RSI,RSP MOV RDI,RBX CALL 0x0011be00 XOR EBP,EBP MOV RSI,qword ptr [0x0022ffe8] MOV RDX,qword ptr [0x0022ff50] MOV RDI,RBX CALL 0x0011bef0
/* int minja::Value::get<int>() const */ int __thiscall minja::Value::get<int>(Value *this) { runtime_error *this_00; int local_58 [8]; int1 local_38 [32]; if (((*(long *)(this + 0x10) == 0) && (*(long *)(this + 0x20) == 0)) && (*(long *)(this + 0x30) == 0)) { local_58[0] = 0; _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (this + 0x40,local_58); return local_58[0]; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00190c68 to 00190c7b has its CatchHandler @ 00190cf9 */ dump_abi_cxx11_((int)local_38,SUB81(this,0)); /* try { // try from 00190c7c to 00190c8f has its CatchHandler @ 00190cd6 */ std::operator+((char *)local_58,(string *)"get<T> not defined for this value type: "); /* try { // try from 00190c93 to 00190cb5 has its CatchHandler @ 00190cb6 */ std::runtime_error::runtime_error(this_00,(string *)local_58); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50); }
29,327
double minja::Value::get<double>() const
monkey531[P]llama/common/minja.hpp
T get() const { if (is_primitive()) return primitive_.get<T>(); throw std::runtime_error("get<T> not defined for this value type: " + dump()); }
O3
cpp
double minja::Value::get<double>() const: pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 cmpq $0x0, 0x10(%rdi) jne 0x860e5 cmpq $0x0, 0x20(%r14) jne 0x860e5 cmpq $0x0, 0x30(%r14) jne 0x860e5 addq $0x40, %r14 leaq 0x20(%rsp), %rbx movq $0x0, (%rbx) movq %r14, %rdi movq %rbx, %rsi callq 0x863cf movq (%rbx), %rax addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x10, %edi callq 0x1b440 movq %rax, %rbx movq %rsp, %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x86334 leaq 0x6b93c(%rip), %rsi # 0xf1a47 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x78ac9 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x1be00 xorl %ebp, %ebp movq 0xa7eb7(%rip), %rsi # 0x12dfe8 movq 0xa7e18(%rip), %rdx # 0x12df50 movq %rbx, %rdi callq 0x1bef0 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x8615e movq 0x30(%rsp), %rsi incq %rsi callq 0x1b8b0 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86179 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8b0 testb %bpl, %bpl jne 0x861a3 jmp 0x861ab movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x861a3 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8b0 jmp 0x861a3 movq %rax, %r14 movq %rbx, %rdi callq 0x1b650 movq %r14, %rdi callq 0x1bf70 nop
_ZNK5minja5Value3getIlEET_v: push rbp push r14 push rbx sub rsp, 40h mov r14, rdi cmp qword ptr [rdi+10h], 0 jnz short loc_860E5 cmp qword ptr [r14+20h], 0 jnz short loc_860E5 cmp qword ptr [r14+30h], 0 jnz short loc_860E5 add r14, 40h ; '@' lea rbx, [rsp+58h+var_38] mov qword ptr [rbx], 0 mov rdi, r14 mov rsi, rbx call _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_ mov rax, [rbx] add rsp, 40h pop rbx pop r14 pop rbp retn loc_860E5: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, rsp mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"... lea rdi, [rsp+58h+var_38] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+58h+var_38] 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+58h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_8615E mov rsi, [rsp+58h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8615E: lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_86179 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_86179: test bpl, bpl jnz short loc_861A3 jmp short loc_861AB mov r14, rax lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_861A3 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_861A3 mov r14, rax loc_861A3: mov rdi, rbx; void * call ___cxa_free_exception loc_861AB: mov rdi, r14 call __Unwind_Resume
get<long>: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RDI CMP qword ptr [RDI + 0x10],0x0 JNZ 0x001860e5 CMP qword ptr [R14 + 0x20],0x0 JNZ 0x001860e5 CMP qword ptr [R14 + 0x30],0x0 JNZ 0x001860e5 ADD R14,0x40 LEA RBX,[RSP + 0x20] MOV qword ptr [RBX],0x0 MOV RDI,R14 MOV RSI,RBX CALL 0x001863cf MOV RAX,qword ptr [RBX] ADD RSP,0x40 POP RBX POP R14 POP RBP RET LAB_001860e5: MOV EDI,0x10 CALL 0x0011b440 MOV RBX,RAX LAB_001860f2: MOV RDI,RSP MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x00186334 LAB_00186104: LEA RSI,[0x1f1a47] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x00178ac9 MOV BPL,0x1 LAB_0018611b: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x0011be00 XOR EBP,EBP MOV RSI,qword ptr [0x0022dfe8] MOV RDX,qword ptr [0x0022df50] MOV RDI,RBX CALL 0x0011bef0
/* long minja::Value::get<long>() const */ long __thiscall minja::Value::get<long>(Value *this) { runtime_error *this_00; int1 auStack_58 [32]; long local_38 [4]; if (((*(long *)(this + 0x10) == 0) && (*(long *)(this + 0x20) == 0)) && (*(long *)(this + 0x30) == 0)) { local_38[0] = 0; _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_ (this + 0x40,local_38); return local_38[0]; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001860f2 to 00186103 has its CatchHandler @ 001861a0 */ dump_abi_cxx11_((int)auStack_58,SUB81(this,0)); /* try { // try from 00186104 to 00186117 has its CatchHandler @ 00186180 */ std::operator+((char *)local_38,(string *)"get<T> not defined for this value type: "); /* try { // try from 0018611b to 0018613f has its CatchHandler @ 00186140 */ std::runtime_error::runtime_error(this_00,(string *)local_38); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_0022dfe8,PTR__runtime_error_0022df50); }
29,328
maria_ftparser_alloc_param
eloqsql/storage/maria/ma_ft_parser.c
MYSQL_FTPARSER_PARAM* maria_ftparser_alloc_param(MARIA_HA *info) { if (!info->ftparser_param) { /* . info->ftparser_param can not be zero after the initialization, because it always includes built-in fulltext parser. And built-in parser can be called even if the table has no fulltext indexes and no varchar/text fields. ftb_find_relevance... parser (ftb_find_relevance_parse, ftb_find_relevance_add_word) calls ftb_check_phrase... parser (ftb_check_phrase_internal, ftb_phrase_add_word). Thus MAX_PARAM_NR=2. */ info->ftparser_param= (MYSQL_FTPARSER_PARAM *) my_malloc(PSI_INSTRUMENT_ME, MAX_PARAM_NR * sizeof(MYSQL_FTPARSER_PARAM) * info->s->ftkeys, MYF(MY_WME | MY_ZEROFILL)); init_alloc_root(PSI_INSTRUMENT_ME, &info->ft_memroot, FTPARSER_MEMROOT_ALLOC_SIZE, 0, MYF(0)); } return info->ftparser_param; }
O3
c
maria_ftparser_alloc_param: movq 0x368(%rdi), %rax testq %rax, %rax je 0x5f7f6 retq pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movq (%rdi), %rax movl 0x748(%rax), %esi shlq $0x7, %rsi movl $0x30, %edx xorl %edi, %edi callq 0x9fd41 movq %rax, 0x368(%rbx) leaq 0x328(%rbx), %rsi movl $0x10000, %edx # imm = 0x10000 xorl %edi, %edi xorl %ecx, %ecx xorl %r8d, %r8d callq 0x9c930 movq 0x368(%rbx), %rax addq $0x8, %rsp popq %rbx popq %rbp retq
maria_ftparser_alloc_param: mov rax, [rdi+368h] test rax, rax jz short loc_5F7F6 retn loc_5F7F6: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov rax, [rdi] mov esi, [rax+748h] shl rsi, 7 mov edx, 30h ; '0' xor edi, edi call my_malloc mov [rbx+368h], rax lea rsi, [rbx+328h] mov edx, offset stru_10000 xor edi, edi xor ecx, ecx xor r8d, r8d call init_alloc_root mov rax, [rbx+368h] add rsp, 8 pop rbx pop rbp retn
long long maria_ftparser_alloc_param(_QWORD *a1) { long long result; // rax result = a1[109]; if ( !result ) { a1[109] = my_malloc(0LL, (unsigned long long)*(unsigned int *)(*a1 + 1864LL) << 7, 48LL); init_alloc_root(0LL, a1 + 101, &stru_10000, 0LL, 0LL); return a1[109]; } return result; }
maria_ftparser_alloc_param: MOV RAX,qword ptr [RDI + 0x368] TEST RAX,RAX JZ 0x0015f7f6 RET LAB_0015f7f6: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV ESI,dword ptr [RAX + 0x748] SHL RSI,0x7 MOV EDX,0x30 XOR EDI,EDI CALL 0x0019fd41 MOV qword ptr [RBX + 0x368],RAX LEA RSI,[RBX + 0x328] MOV EDX,0x10000 XOR EDI,EDI XOR ECX,ECX XOR R8D,R8D CALL 0x0019c930 MOV RAX,qword ptr [RBX + 0x368] ADD RSP,0x8 POP RBX POP RBP RET
long maria_ftparser_alloc_param(long *param_1) { long lVar1; int8 in_R9; long lVar2; lVar2 = param_1[0x6d]; if (lVar2 != 0) { return lVar2; } lVar1 = my_malloc(0,(ulong)*(uint *)(*param_1 + 0x748) << 7,0x30); param_1[0x6d] = lVar1; init_alloc_root(0,param_1 + 0x65,0x10000,0,0,in_R9,lVar2); return param_1[0x6d]; }
29,329
my_wc_mb_filename
eloqsql/strings/ctype-utf8.c
static int my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { int code; static const char hex[]= "0123456789abcdef"; if (s >= e) return MY_CS_TOOSMALL; if (wc < 128 && filename_safe_char[wc]) { *s= (uchar) wc; return 1; } if (s + 3 > e) return MY_CS_TOOSMALL3; *s++= MY_FILENAME_ESCAPE; if ((wc >= 0x00C0 && wc <= 0x05FF && (code= uni_0C00_05FF[wc - 0x00C0])) || (wc >= 0x1E00 && wc <= 0x1FFF && (code= uni_1E00_1FFF[wc - 0x1E00])) || (wc >= 0x2160 && wc <= 0x217F && (code= uni_2160_217F[wc - 0x2160])) || (wc >= 0x24B0 && wc <= 0x24EF && (code= uni_24B0_24EF[wc - 0x24B0])) || (wc >= 0xFF20 && wc <= 0xFF5F && (code= uni_FF20_FF5F[wc - 0xFF20]))) { *s++= (code / 80) + 0x30; *s++= (code % 80) + 0x30; return 3; } /* Non letter */ if (s + 4 > e) return MY_CS_TOOSMALL5; *s++= hex[(wc >> 12) & 15]; *s++= hex[(wc >> 8) & 15]; *s++= hex[(wc >> 4) & 15]; *s++= hex[(wc) & 15]; return 5; }
O0
c
my_wc_mb_filename: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x68f4a movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x691b5 cmpq $0x80, -0x18(%rbp) jae 0x68f80 movq -0x18(%rbp), %rcx leaq 0x148461(%rip), %rax # 0x1b13c0 movsbl (%rax,%rcx), %eax cmpl $0x0, %eax je 0x68f80 movq -0x18(%rbp), %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl $0x1, -0x4(%rbp) jmp 0x691b5 movq -0x20(%rbp), %rax addq $0x3, %rax cmpq -0x28(%rbp), %rax jbe 0x68f9a movl $0xffffff99, -0x4(%rbp) # imm = 0xFFFFFF99 jmp 0x691b5 movq -0x20(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x20(%rbp) movb $0x40, (%rax) cmpq $0xc0, -0x18(%rbp) jb 0x68fe2 cmpq $0x5ff, -0x18(%rbp) # imm = 0x5FF ja 0x68fe2 movq -0x18(%rbp), %rcx subq $0xc0, %rcx leaq 0x14b5ae(%rip), %rax # 0x1b4580 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x690ae cmpq $0x1e00, -0x18(%rbp) # imm = 0x1E00 jb 0x69018 cmpq $0x1fff, -0x18(%rbp) # imm = 0x1FFF ja 0x69018 movq -0x18(%rbp), %rcx subq $0x1e00, %rcx # imm = 0x1E00 leaq 0x31bb68(%rip), %rax # 0x384b70 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x690ae cmpq $0x2160, -0x18(%rbp) # imm = 0x2160 jb 0x6904a cmpq $0x217f, -0x18(%rbp) # imm = 0x217F ja 0x6904a movq -0x18(%rbp), %rcx subq $0x2160, %rcx # imm = 0x2160 leaq 0x14b402(%rip), %rax # 0x1b4440 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x690ae cmpq $0x24b0, -0x18(%rbp) # imm = 0x24B0 jb 0x6907c cmpq $0x24ef, -0x18(%rbp) # imm = 0x24EF ja 0x6907c movq -0x18(%rbp), %rcx subq $0x24b0, %rcx # imm = 0x24B0 leaq 0x14b410(%rip), %rax # 0x1b4480 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x690ae cmpq $0xff20, -0x18(%rbp) # imm = 0xFF20 jb 0x690fc cmpq $0xff5f, -0x18(%rbp) # imm = 0xFF5F ja 0x690fc movq -0x18(%rbp), %rcx subq $0xff20, %rcx # imm = 0xFF20 leaq 0x14b45e(%rip), %rax # 0x1b4500 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax je 0x690fc movl -0x2c(%rbp), %eax movl $0x50, %ecx cltd idivl %ecx addl $0x30, %eax movb %al, %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movl -0x2c(%rbp), %eax movl $0x50, %ecx cltd idivl %ecx addl $0x30, %edx movb %dl, %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movl $0x3, -0x4(%rbp) jmp 0x691b5 movq -0x20(%rbp), %rax addq $0x4, %rax cmpq -0x28(%rbp), %rax jbe 0x69116 movl $0xffffff97, -0x4(%rbp) # imm = 0xFFFFFF97 jmp 0x691b5 movq -0x18(%rbp), %rcx shrq $0xc, %rcx andq $0xf, %rcx leaq 0x14b2f7(%rip), %rax # 0x1b4420 movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x18(%rbp), %rcx shrq $0x8, %rcx andq $0xf, %rcx leaq 0x14b2d0(%rip), %rax # 0x1b4420 movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x18(%rbp), %rcx shrq $0x4, %rcx andq $0xf, %rcx leaq 0x14b2a9(%rip), %rax # 0x1b4420 movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x18(%rbp), %rcx andq $0xf, %rcx leaq 0x14b286(%rip), %rax # 0x1b4420 movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movl $0x5, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
my_wc_mb_filename: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_68F4A mov [rbp+var_4], 0FFFFFF9Bh jmp loc_691B5 loc_68F4A: cmp [rbp+var_18], 80h jnb short loc_68F80 mov rcx, [rbp+var_18] lea rax, filename_safe_char movsx eax, byte ptr [rax+rcx] cmp eax, 0 jz short loc_68F80 mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov [rbp+var_4], 1 jmp loc_691B5 loc_68F80: mov rax, [rbp+var_20] add rax, 3 cmp rax, [rbp+var_28] jbe short loc_68F9A mov [rbp+var_4], 0FFFFFF99h jmp loc_691B5 loc_68F9A: mov rax, [rbp+var_20] mov rcx, rax add rcx, 1 mov [rbp+var_20], rcx mov byte ptr [rax], 40h ; '@' cmp [rbp+var_18], 0C0h jb short loc_68FE2 cmp [rbp+var_18], 5FFh ja short loc_68FE2 mov rcx, [rbp+var_18] sub rcx, 0C0h lea rax, uni_0C00_05FF movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jnz loc_690AE loc_68FE2: cmp [rbp+var_18], 1E00h jb short loc_69018 cmp [rbp+var_18], 1FFFh ja short loc_69018 mov rcx, [rbp+var_18] sub rcx, 1E00h lea rax, uni_1E00_1FFF movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jnz loc_690AE loc_69018: cmp [rbp+var_18], 2160h jb short loc_6904A cmp [rbp+var_18], 217Fh ja short loc_6904A mov rcx, [rbp+var_18] sub rcx, 2160h lea rax, uni_2160_217F movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jnz short loc_690AE loc_6904A: cmp [rbp+var_18], 24B0h jb short loc_6907C cmp [rbp+var_18], 24EFh ja short loc_6907C mov rcx, [rbp+var_18] sub rcx, 24B0h lea rax, uni_24B0_24EF movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jnz short loc_690AE loc_6907C: cmp [rbp+var_18], 0FF20h jb short loc_690FC cmp [rbp+var_18], 0FF5Fh ja short loc_690FC mov rcx, [rbp+var_18] sub rcx, 0FF20h lea rax, uni_FF20_FF5F movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jz short loc_690FC loc_690AE: mov eax, [rbp+var_2C] mov ecx, 50h ; 'P' cdq idiv ecx add eax, 30h ; '0' mov cl, al mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov eax, [rbp+var_2C] mov ecx, 50h ; 'P' cdq idiv ecx add edx, 30h ; '0' mov cl, dl mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov [rbp+var_4], 3 jmp loc_691B5 loc_690FC: mov rax, [rbp+var_20] add rax, 4 cmp rax, [rbp+var_28] jbe short loc_69116 mov [rbp+var_4], 0FFFFFF97h jmp loc_691B5 loc_69116: mov rcx, [rbp+var_18] shr rcx, 0Ch and rcx, 0Fh lea rax, my_wc_mb_filename_hex; "0123456789abcdef" mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rcx, [rbp+var_18] shr rcx, 8 and rcx, 0Fh lea rax, my_wc_mb_filename_hex; "0123456789abcdef" mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rcx, [rbp+var_18] shr rcx, 4 and rcx, 0Fh lea rax, my_wc_mb_filename_hex; "0123456789abcdef" mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rcx, [rbp+var_18] and rcx, 0Fh lea rax, my_wc_mb_filename_hex; "0123456789abcdef" mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov [rbp+var_4], 5 loc_691B5: mov eax, [rbp+var_4] pop rbp retn
long long my_wc_mb_filename(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { int v5; // [rsp+0h] [rbp-2Ch] _BYTE *v6; // [rsp+Ch] [rbp-20h] if ( (unsigned long long)a3 < a4 ) { if ( a2 < 0x80 && filename_safe_char[a2] ) { *a3 = a2; return 1; } else if ( (unsigned long long)(a3 + 3) <= a4 ) { v6 = a3 + 1; *a3 = 64; if ( a2 >= 0xC0 && a2 <= 0x5FF && (v5 = uni_0C00_05FF[a2 - 192]) != 0 || a2 >= 0x1E00 && a2 <= 0x1FFF && (v5 = uni_1E00_1FFF[a2 - 7680]) != 0 || a2 >= 0x2160 && a2 <= 0x217F && (v5 = uni_2160_217F[a2 - 8544]) != 0 || a2 >= 0x24B0 && a2 <= 0x24EF && (v5 = uni_24B0_24EF[a2 - 9392]) != 0 || a2 >= 0xFF20 && a2 <= 0xFF5F && (v5 = uni_FF20_FF5F[a2 - 65312]) != 0 ) { *v6 = v5 / 80 + 48; a3[2] = v5 % 80 + 48; return 3; } else if ( (unsigned long long)(a3 + 5) <= a4 ) { *v6 = my_wc_mb_filename_hex[(unsigned __int16)a2 >> 12]; a3[2] = my_wc_mb_filename_hex[(a2 >> 8) & 0xF]; a3[3] = my_wc_mb_filename_hex[(unsigned __int8)a2 >> 4]; a3[4] = my_wc_mb_filename_hex[a2 & 0xF]; return 5; } else { return (unsigned int)-105; } } else { return (unsigned int)-103; } } else { return (unsigned int)-101; } }
my_wc_mb_filename: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x00168f4a MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x001691b5 LAB_00168f4a: CMP qword ptr [RBP + -0x18],0x80 JNC 0x00168f80 MOV RCX,qword ptr [RBP + -0x18] LEA RAX,[0x2b13c0] MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x0 JZ 0x00168f80 MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x1 JMP 0x001691b5 LAB_00168f80: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x3 CMP RAX,qword ptr [RBP + -0x28] JBE 0x00168f9a MOV dword ptr [RBP + -0x4],0xffffff99 JMP 0x001691b5 LAB_00168f9a: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x20],RCX MOV byte ptr [RAX],0x40 CMP qword ptr [RBP + -0x18],0xc0 JC 0x00168fe2 CMP qword ptr [RBP + -0x18],0x5ff JA 0x00168fe2 MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0xc0 LEA RAX,[0x2b4580] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x001690ae LAB_00168fe2: CMP qword ptr [RBP + -0x18],0x1e00 JC 0x00169018 CMP qword ptr [RBP + -0x18],0x1fff JA 0x00169018 MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x1e00 LEA RAX,[0x484b70] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x001690ae LAB_00169018: CMP qword ptr [RBP + -0x18],0x2160 JC 0x0016904a CMP qword ptr [RBP + -0x18],0x217f JA 0x0016904a MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x2160 LEA RAX,[0x2b4440] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x001690ae LAB_0016904a: CMP qword ptr [RBP + -0x18],0x24b0 JC 0x0016907c CMP qword ptr [RBP + -0x18],0x24ef JA 0x0016907c MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x24b0 LEA RAX,[0x2b4480] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x001690ae LAB_0016907c: CMP qword ptr [RBP + -0x18],0xff20 JC 0x001690fc CMP qword ptr [RBP + -0x18],0xff5f JA 0x001690fc MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0xff20 LEA RAX,[0x2b4500] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JZ 0x001690fc LAB_001690ae: MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,0x50 CDQ IDIV ECX ADD EAX,0x30 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,0x50 CDQ IDIV ECX ADD EDX,0x30 MOV CL,DL MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x3 JMP 0x001691b5 LAB_001690fc: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x4 CMP RAX,qword ptr [RBP + -0x28] JBE 0x00169116 MOV dword ptr [RBP + -0x4],0xffffff97 JMP 0x001691b5 LAB_00169116: MOV RCX,qword ptr [RBP + -0x18] SHR RCX,0xc AND RCX,0xf LEA RAX,[0x2b4420] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV RCX,qword ptr [RBP + -0x18] SHR RCX,0x8 AND RCX,0xf LEA RAX,[0x2b4420] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV RCX,qword ptr [RBP + -0x18] SHR RCX,0x4 AND RCX,0xf LEA RAX,[0x2b4420] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV RCX,qword ptr [RBP + -0x18] AND RCX,0xf LEA RAX,[0x2b4420] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x5 LAB_001691b5: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_wc_mb_filename(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4) { uint local_34; int4 local_c; if (param_3 < param_4) { if ((param_2 < 0x80) && (filename_safe_char[param_2] != '\0')) { *param_3 = (char)param_2; local_c = 1; } else if (param_4 < param_3 + 3) { local_c = 0xffffff99; } else { *param_3 = 0x40; if ((((((param_2 < 0xc0) || (0x5ff < param_2)) || (local_34 = (uint)*(ushort *)(uni_0C00_05FF + (param_2 - 0xc0) * 2), local_34 == 0)) && (((param_2 < 0x1e00 || (0x1fff < param_2)) || (local_34 = (uint)*(ushort *)(uni_1E00_1FFF + (param_2 - 0x1e00) * 2), local_34 == 0)))) && (((param_2 < 0x2160 || (0x217f < param_2)) || (local_34 = (uint)*(ushort *)(uni_2160_217F + (param_2 - 0x2160) * 2), local_34 == 0)) )) && ((((param_2 < 0x24b0 || (0x24ef < param_2)) || (local_34 = (uint)*(ushort *)(uni_24B0_24EF + (param_2 - 0x24b0) * 2), local_34 == 0)) && (((param_2 < 0xff20 || (0xff5f < param_2)) || (local_34 = (uint)*(ushort *)(uni_FF20_FF5F + (param_2 - 0xff20) * 2), local_34 == 0)))))) { if (param_4 < param_3 + 5) { local_c = 0xffffff97; } else { param_3[1] = "0123456789abcdef"[param_2 >> 0xc & 0xf]; param_3[2] = "0123456789abcdef"[param_2 >> 8 & 0xf]; param_3[3] = "0123456789abcdef"[param_2 >> 4 & 0xf]; param_3[4] = "0123456789abcdef"[param_2 & 0xf]; local_c = 5; } } else { param_3[1] = (char)(local_34 / 0x50) + '0'; param_3[2] = (char)(local_34 % 0x50) + '0'; local_c = 3; } } } else { local_c = 0xffffff9b; } return local_c; }
29,330
stbi__pic_load(stbi__context*, int*, int*, int*, int, stbi__result_info*)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri) { stbi_uc *result; int i, x,y, internal_comp; STBI_NOTUSED(ri); if (!comp) comp = &internal_comp; for (i=0; i<92; ++i) stbi__get8(s); x = stbi__get16be(s); y = stbi__get16be(s); if (y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); if (x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pic header)"); if (!stbi__mad3sizes_valid(x, y, 4, 0)) return stbi__errpuc("too large", "PIC image too large to decode"); stbi__get32be(s); //skip `ratio' stbi__get16be(s); //skip `fields' stbi__get16be(s); //skip `pad' // intermediate buffer is RGBA result = (stbi_uc *) stbi__malloc_mad3(x, y, 4, 0); if (!result) return stbi__errpuc("outofmem", "Out of memory"); memset(result, 0xff, x*y*4); if (!stbi__pic_load_core(s,x,y,comp, result)) { STBI_FREE(result); result=0; } *px = x; *py = y; if (req_comp == 0) req_comp = *comp; result=stbi__convert_format(result,4,req_comp,x,y); return result; }
O0
c
stbi__pic_load(stbi__context*, int*, int*, int*, int, stbi__result_info*): subq $0x58, %rsp movq %rdi, 0x48(%rsp) movq %rsi, 0x40(%rsp) movq %rdx, 0x38(%rsp) movq %rcx, 0x30(%rsp) movl %r8d, 0x2c(%rsp) movq %r9, 0x20(%rsp) cmpq $0x0, 0x30(%rsp) jne 0x9d3d4 leaq 0x8(%rsp), %rax movq %rax, 0x30(%rsp) movl $0x0, 0x14(%rsp) cmpl $0x5c, 0x14(%rsp) jge 0x9d3fa movq 0x48(%rsp), %rdi callq 0x9f080 movl 0x14(%rsp), %eax addl $0x1, %eax movl %eax, 0x14(%rsp) jmp 0x9d3dc movq 0x48(%rsp), %rdi callq 0xa1050 movl %eax, 0x10(%rsp) movq 0x48(%rsp), %rdi callq 0xa1050 movl %eax, 0xc(%rsp) cmpl $0x1000000, 0xc(%rsp) # imm = 0x1000000 jle 0x9d441 leaq 0x4f768(%rip), %rdi # 0xecb8f callq 0x85d80 movl %eax, %ecx xorl %eax, %eax cmpl $0x0, %ecx cmovneq %rax, %rax movq %rax, 0x50(%rsp) jmp 0x9d5dc cmpl $0x1000000, 0x10(%rsp) # imm = 0x1000000 jle 0x9d46c leaq 0x4f73d(%rip), %rdi # 0xecb8f callq 0x85d80 movl %eax, %ecx xorl %eax, %eax cmpl $0x0, %ecx cmovneq %rax, %rax movq %rax, 0x50(%rsp) jmp 0x9d5dc movq 0x48(%rsp), %rdi callq 0xa4a80 cmpl $0x0, %eax je 0x9d49c leaq 0x4f974(%rip), %rdi # 0xecdf6 callq 0x85d80 movl %eax, %ecx xorl %eax, %eax cmpl $0x0, %ecx cmovneq %rax, %rax movq %rax, 0x50(%rsp) jmp 0x9d5dc movl 0x10(%rsp), %edi movl 0xc(%rsp), %esi movl $0x4, %edx xorl %ecx, %ecx callq 0xa28f0 cmpl $0x0, %eax jne 0x9d4d6 leaq 0x4f6d3(%rip), %rdi # 0xecb8f callq 0x85d80 movl %eax, %ecx xorl %eax, %eax cmpl $0x0, %ecx cmovneq %rax, %rax movq %rax, 0x50(%rsp) jmp 0x9d5dc movq 0x48(%rsp), %rdi callq 0xa1010 movq 0x48(%rsp), %rdi callq 0xa1050 movq 0x48(%rsp), %rdi callq 0xa1050 movl 0x10(%rsp), %edi movl 0xc(%rsp), %esi movl $0x4, %edx xorl %ecx, %ecx callq 0xa2890 movq %rax, 0x18(%rsp) cmpq $0x0, 0x18(%rsp) jne 0x9d536 leaq 0x4f752(%rip), %rdi # 0xecc6e callq 0x85d80 movl %eax, %ecx xorl %eax, %eax cmpl $0x0, %ecx cmovneq %rax, %rax movq %rax, 0x50(%rsp) jmp 0x9d5dc movq 0x18(%rsp), %rdi movl 0x10(%rsp), %eax imull 0xc(%rsp), %eax shll $0x2, %eax movslq %eax, %rdx movl $0xff, %esi callq 0x75130 movq 0x48(%rsp), %rdi movl 0x10(%rsp), %esi movl 0xc(%rsp), %edx movq 0x30(%rsp), %rcx movq 0x18(%rsp), %r8 callq 0xa4b00 cmpq $0x0, %rax jne 0x9d589 movq 0x18(%rsp), %rdi callq 0x79400 movq $0x0, 0x18(%rsp) movl 0x10(%rsp), %ecx movq 0x40(%rsp), %rax movl %ecx, (%rax) movl 0xc(%rsp), %ecx movq 0x38(%rsp), %rax movl %ecx, (%rax) cmpl $0x0, 0x2c(%rsp) jne 0x9d5b1 movq 0x30(%rsp), %rax movl (%rax), %eax movl %eax, 0x2c(%rsp) movq 0x18(%rsp), %rdi movl 0x2c(%rsp), %edx movl 0x10(%rsp), %ecx movl 0xc(%rsp), %r8d movl $0x4, %esi callq 0xa0250 movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x50(%rsp), %rax addq $0x58, %rsp retq nopw %cs:(%rax,%rax)
_ZL14stbi__pic_loadP13stbi__contextPiS1_S1_iP17stbi__result_info: sub rsp, 58h mov [rsp+58h+var_10], rdi mov [rsp+58h+var_18], rsi mov [rsp+58h+var_20], rdx mov [rsp+58h+var_28], rcx mov [rsp+58h+var_2C], r8d mov [rsp+58h+var_38], r9 cmp [rsp+58h+var_28], 0 jnz short loc_9D3D4 lea rax, [rsp+58h+var_50] mov [rsp+58h+var_28], rax loc_9D3D4: mov [rsp+58h+var_44], 0 loc_9D3DC: cmp [rsp+58h+var_44], 5Ch ; '\' jge short loc_9D3FA mov rdi, [rsp+58h+var_10] call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) mov eax, [rsp+58h+var_44] add eax, 1 mov [rsp+58h+var_44], eax jmp short loc_9D3DC loc_9D3FA: mov rdi, [rsp+58h+var_10] call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) mov [rsp+58h+var_48], eax mov rdi, [rsp+58h+var_10] call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) mov [rsp+58h+var_4C], eax cmp [rsp+58h+var_4C], 1000000h jle short loc_9D441 lea rdi, aTooLarge; "too large" call _ZL9stbi__errPKc; stbi__err(char const*) mov ecx, eax xor eax, eax cmp ecx, 0 cmovnz rax, rax mov [rsp+58h+var_8], rax jmp loc_9D5DC loc_9D441: cmp [rsp+58h+var_48], 1000000h jle short loc_9D46C lea rdi, aTooLarge; "too large" call _ZL9stbi__errPKc; stbi__err(char const*) mov ecx, eax xor eax, eax cmp ecx, 0 cmovnz rax, rax mov [rsp+58h+var_8], rax jmp loc_9D5DC loc_9D46C: mov rdi, [rsp+58h+var_10] call _ZL12stbi__at_eofP13stbi__context; stbi__at_eof(stbi__context *) cmp eax, 0 jz short loc_9D49C lea rdi, aBadFile; "bad file" call _ZL9stbi__errPKc; stbi__err(char const*) mov ecx, eax xor eax, eax cmp ecx, 0 cmovnz rax, rax mov [rsp+58h+var_8], rax jmp loc_9D5DC loc_9D49C: mov edi, [rsp+58h+var_48]; int mov esi, [rsp+58h+var_4C]; int mov edx, 4; int xor ecx, ecx; int call _ZL21stbi__mad3sizes_validiiii; stbi__mad3sizes_valid(int,int,int,int) cmp eax, 0 jnz short loc_9D4D6 lea rdi, aTooLarge; "too large" call _ZL9stbi__errPKc; stbi__err(char const*) mov ecx, eax xor eax, eax cmp ecx, 0 cmovnz rax, rax mov [rsp+58h+var_8], rax jmp loc_9D5DC loc_9D4D6: mov rdi, [rsp+58h+var_10] call _ZL13stbi__get32beP13stbi__context; stbi__get32be(stbi__context *) mov rdi, [rsp+58h+var_10] call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) mov rdi, [rsp+58h+var_10] call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) mov edi, [rsp+58h+var_48]; int mov esi, [rsp+58h+var_4C]; int mov edx, 4; int xor ecx, ecx; int call _ZL17stbi__malloc_mad3iiii; stbi__malloc_mad3(int,int,int,int) mov [rsp+58h+var_40], rax cmp [rsp+58h+var_40], 0 jnz short loc_9D536 lea rdi, aOutofmem; "outofmem" call _ZL9stbi__errPKc; stbi__err(char const*) mov ecx, eax xor eax, eax cmp ecx, 0 cmovnz rax, rax mov [rsp+58h+var_8], rax jmp loc_9D5DC loc_9D536: mov rdi, [rsp+58h+var_40] mov eax, [rsp+58h+var_48] imul eax, [rsp+58h+var_4C] shl eax, 2 movsxd rdx, eax mov esi, 0FFh call _memset mov rdi, [rsp+58h+var_10] mov esi, [rsp+58h+var_48] mov edx, [rsp+58h+var_4C] mov rcx, [rsp+58h+var_28] mov r8, [rsp+58h+var_40] call _ZL19stbi__pic_load_coreP13stbi__contextiiPiPh; stbi__pic_load_core(stbi__context *,int,int,int *,uchar *) cmp rax, 0 jnz short loc_9D589 mov rdi, [rsp+58h+var_40] call _free mov [rsp+58h+var_40], 0 loc_9D589: mov ecx, [rsp+58h+var_48] mov rax, [rsp+58h+var_18] mov [rax], ecx mov ecx, [rsp+58h+var_4C] mov rax, [rsp+58h+var_20] mov [rax], ecx cmp [rsp+58h+var_2C], 0 jnz short loc_9D5B1 mov rax, [rsp+58h+var_28] mov eax, [rax] mov [rsp+58h+var_2C], eax loc_9D5B1: mov rdi, [rsp+58h+var_40]; unsigned __int8 * mov edx, [rsp+58h+var_2C]; int mov ecx, [rsp+58h+var_48]; unsigned int mov r8d, [rsp+58h+var_4C]; unsigned int mov esi, 4; int call _ZL20stbi__convert_formatPhiijj; stbi__convert_format(uchar *,int,int,uint,uint) mov [rsp+58h+var_40], rax mov rax, [rsp+58h+var_40] mov [rsp+58h+var_8], rax loc_9D5DC: mov rax, [rsp+58h+var_8] add rsp, 58h retn
long long stbi__pic_load(long long a1, unsigned int *a2, unsigned int *a3, int *a4, int a5, long long a6) { char v7; // [rsp+8h] [rbp-50h] BYREF unsigned int v8; // [rsp+Ch] [rbp-4Ch] unsigned int v9; // [rsp+10h] [rbp-48h] int i; // [rsp+14h] [rbp-44h] unsigned __int8 *v11; // [rsp+18h] [rbp-40h] long long v12; // [rsp+20h] [rbp-38h] int v13; // [rsp+2Ch] [rbp-2Ch] int *v14; // [rsp+30h] [rbp-28h] unsigned int *v15; // [rsp+38h] [rbp-20h] unsigned int *v16; // [rsp+40h] [rbp-18h] long long v17; // [rsp+48h] [rbp-10h] v17 = a1; v16 = a2; v15 = a3; v14 = a4; v13 = a5; v12 = a6; if ( !a4 ) v14 = (int *)&v7; for ( i = 0; i < 92; ++i ) stbi__get8(v17); v9 = stbi__get16be(v17); v8 = stbi__get16be(v17); if ( (int)v8 > 0x1000000 || (int)v9 > 0x1000000 ) goto LABEL_12; if ( (unsigned int)stbi__at_eof(v17) ) { stbi__err("bad file"); return 0LL; } if ( !(unsigned int)stbi__mad3sizes_valid(v9, v8, 4, 0) ) { LABEL_12: stbi__err("too large"); return 0LL; } stbi__get32be(v17); stbi__get16be(v17); stbi__get16be(v17); v11 = (unsigned __int8 *)stbi__malloc_mad3(v9, v8, 4, 0); if ( v11 ) { memset(v11, 255LL, (int)(4 * v8 * v9)); if ( !stbi__pic_load_core(v17, v9, v8, v14, v11) ) { free(v11); v11 = 0LL; } *v16 = v9; *v15 = v8; if ( !v13 ) v13 = *v14; return stbi__convert_format(v11, 4, v13, v9, v8); } else { stbi__err("outofmem"); return 0LL; } }
stbi__pic_load: SUB RSP,0x58 MOV qword ptr [RSP + 0x48],RDI MOV qword ptr [RSP + 0x40],RSI MOV qword ptr [RSP + 0x38],RDX MOV qword ptr [RSP + 0x30],RCX MOV dword ptr [RSP + 0x2c],R8D MOV qword ptr [RSP + 0x20],R9 CMP qword ptr [RSP + 0x30],0x0 JNZ 0x0019d3d4 LEA RAX,[RSP + 0x8] MOV qword ptr [RSP + 0x30],RAX LAB_0019d3d4: MOV dword ptr [RSP + 0x14],0x0 LAB_0019d3dc: CMP dword ptr [RSP + 0x14],0x5c JGE 0x0019d3fa MOV RDI,qword ptr [RSP + 0x48] CALL 0x0019f080 MOV EAX,dword ptr [RSP + 0x14] ADD EAX,0x1 MOV dword ptr [RSP + 0x14],EAX JMP 0x0019d3dc LAB_0019d3fa: MOV RDI,qword ptr [RSP + 0x48] CALL 0x001a1050 MOV dword ptr [RSP + 0x10],EAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x001a1050 MOV dword ptr [RSP + 0xc],EAX CMP dword ptr [RSP + 0xc],0x1000000 JLE 0x0019d441 LEA RDI,[0x1ecb8f] CALL 0x00185d80 MOV ECX,EAX XOR EAX,EAX CMP ECX,0x0 CMOVNZ RAX,RAX MOV qword ptr [RSP + 0x50],RAX JMP 0x0019d5dc LAB_0019d441: CMP dword ptr [RSP + 0x10],0x1000000 JLE 0x0019d46c LEA RDI,[0x1ecb8f] CALL 0x00185d80 MOV ECX,EAX XOR EAX,EAX CMP ECX,0x0 CMOVNZ RAX,RAX MOV qword ptr [RSP + 0x50],RAX JMP 0x0019d5dc LAB_0019d46c: MOV RDI,qword ptr [RSP + 0x48] CALL 0x001a4a80 CMP EAX,0x0 JZ 0x0019d49c LEA RDI,[0x1ecdf6] CALL 0x00185d80 MOV ECX,EAX XOR EAX,EAX CMP ECX,0x0 CMOVNZ RAX,RAX MOV qword ptr [RSP + 0x50],RAX JMP 0x0019d5dc LAB_0019d49c: MOV EDI,dword ptr [RSP + 0x10] MOV ESI,dword ptr [RSP + 0xc] MOV EDX,0x4 XOR ECX,ECX CALL 0x001a28f0 CMP EAX,0x0 JNZ 0x0019d4d6 LEA RDI,[0x1ecb8f] CALL 0x00185d80 MOV ECX,EAX XOR EAX,EAX CMP ECX,0x0 CMOVNZ RAX,RAX MOV qword ptr [RSP + 0x50],RAX JMP 0x0019d5dc LAB_0019d4d6: MOV RDI,qword ptr [RSP + 0x48] CALL 0x001a1010 MOV RDI,qword ptr [RSP + 0x48] CALL 0x001a1050 MOV RDI,qword ptr [RSP + 0x48] CALL 0x001a1050 MOV EDI,dword ptr [RSP + 0x10] MOV ESI,dword ptr [RSP + 0xc] MOV EDX,0x4 XOR ECX,ECX CALL 0x001a2890 MOV qword ptr [RSP + 0x18],RAX CMP qword ptr [RSP + 0x18],0x0 JNZ 0x0019d536 LEA RDI,[0x1ecc6e] CALL 0x00185d80 MOV ECX,EAX XOR EAX,EAX CMP ECX,0x0 CMOVNZ RAX,RAX MOV qword ptr [RSP + 0x50],RAX JMP 0x0019d5dc LAB_0019d536: MOV RDI,qword ptr [RSP + 0x18] MOV EAX,dword ptr [RSP + 0x10] IMUL EAX,dword ptr [RSP + 0xc] SHL EAX,0x2 MOVSXD RDX,EAX MOV ESI,0xff CALL 0x00175130 MOV RDI,qword ptr [RSP + 0x48] MOV ESI,dword ptr [RSP + 0x10] MOV EDX,dword ptr [RSP + 0xc] MOV RCX,qword ptr [RSP + 0x30] MOV R8,qword ptr [RSP + 0x18] CALL 0x001a4b00 CMP RAX,0x0 JNZ 0x0019d589 MOV RDI,qword ptr [RSP + 0x18] CALL 0x00179400 MOV qword ptr [RSP + 0x18],0x0 LAB_0019d589: MOV ECX,dword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x40] MOV dword ptr [RAX],ECX MOV ECX,dword ptr [RSP + 0xc] MOV RAX,qword ptr [RSP + 0x38] MOV dword ptr [RAX],ECX CMP dword ptr [RSP + 0x2c],0x0 JNZ 0x0019d5b1 MOV RAX,qword ptr [RSP + 0x30] MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x2c],EAX LAB_0019d5b1: MOV RDI,qword ptr [RSP + 0x18] MOV EDX,dword ptr [RSP + 0x2c] MOV ECX,dword ptr [RSP + 0x10] MOV R8D,dword ptr [RSP + 0xc] MOV ESI,0x4 CALL 0x001a0250 MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x50],RAX LAB_0019d5dc: MOV RAX,qword ptr [RSP + 0x50] ADD RSP,0x58 RET
/* stbi__pic_load(stbi__context*, int*, int*, int*, int, stbi__result_info*) */ int8 stbi__pic_load(stbi__context *param_1,int *param_2,int *param_3,int *param_4,int param_5, stbi__result_info *param_6) { int iVar1; long lVar2; int local_50; uint local_4c; uint local_48; int local_44; uchar *local_40; stbi__result_info *local_38; int local_2c; int *local_28; uint *local_20; uint *local_18; stbi__context *local_10; int8 local_8; local_28 = param_4; if (param_4 == (int *)0x0) { local_28 = &local_50; } local_38 = param_6; local_2c = param_5; local_20 = (uint *)param_3; local_18 = (uint *)param_2; local_10 = param_1; for (local_44 = 0; local_44 < 0x5c; local_44 = local_44 + 1) { stbi__get8(local_10); } local_48 = stbi__get16be(local_10); local_4c = stbi__get16be(local_10); if ((int)local_4c < 0x1000001) { if ((int)local_48 < 0x1000001) { iVar1 = stbi__at_eof(local_10); if (iVar1 == 0) { iVar1 = stbi__mad3sizes_valid(local_48,local_4c,4,0); if (iVar1 == 0) { stbi__err("too large"); local_8 = 0; } else { stbi__get32be(local_10); stbi__get16be(local_10); stbi__get16be(local_10); local_40 = (uchar *)stbi__malloc_mad3(local_48,local_4c,4,0); if (local_40 == (uchar *)0x0) { stbi__err("outofmem"); local_8 = 0; } else { memset(local_40,0xff,(long)(int)(local_48 * local_4c * 4)); lVar2 = stbi__pic_load_core(local_10,local_48,local_4c,local_28,local_40); if (lVar2 == 0) { free(local_40); local_40 = (uchar *)0x0; } *local_18 = local_48; *local_20 = local_4c; if (local_2c == 0) { local_2c = *local_28; } local_8 = stbi__convert_format(local_40,4,local_2c,local_48,local_4c); } } } else { stbi__err("bad file"); local_8 = 0; } } else { stbi__err("too large"); local_8 = 0; } } else { stbi__err("too large"); local_8 = 0; } return local_8; }
29,331
spdlog::pattern_formatter::compile_pattern_(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h
SPDLOG_INLINE void pattern_formatter::compile_pattern_(const std::string &pattern) { auto end = pattern.end(); std::unique_ptr<details::aggregate_formatter> user_chars; formatters_.clear(); for (auto it = pattern.begin(); it != end; ++it) { if (*it == '%') { if (user_chars) // append user chars found so far { formatters_.push_back(std::move(user_chars)); } auto padding = handle_padspec_(++it, end); if (it != end) { if (padding.enabled()) { handle_flag_<details::scoped_padder>(*it, padding); } else { handle_flag_<details::null_scoped_padder>(*it, padding); } } else { break; } } else // chars not following the % sign should be displayed as is { if (!user_chars) { user_chars = details::make_unique<details::aggregate_formatter>(); } user_chars->add_ch(*it); } } if (user_chars) // append raw chars found so far { formatters_.push_back(std::move(user_chars)); } }
O0
c
spdlog::pattern_formatter::compile_pattern_(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): subq $0xe8, %rsp movq %rdi, 0xe0(%rsp) movq %rsi, 0xd8(%rsp) movq 0xe0(%rsp), %rax movq %rax, 0x48(%rsp) movq 0xd8(%rsp), %rdi callq 0x3b600 movq %rax, 0xd0(%rsp) leaq 0xc8(%rsp), %rdi callq 0x3b650 movq 0x48(%rsp), %rdi addq $0x90, %rdi callq 0x3b680 movq 0xd8(%rsp), %rdi callq 0x3b6a0 movq %rax, 0xc0(%rsp) leaq 0xc0(%rsp), %rdi leaq 0xd0(%rsp), %rsi callq 0x3b550 xorb $-0x1, %al testb $0x1, %al jne 0x369dc jmp 0x36c3c leaq 0xc0(%rsp), %rdi callq 0x3b590 movsbl (%rax), %eax cmpl $0x25, %eax jne 0x36bbf leaq 0xc8(%rsp), %rdi callq 0x3b6d0 testb $0x1, %al jne 0x36a08 jmp 0x36a78 movq 0x48(%rsp), %rax addq $0x90, %rax movq %rax, 0x38(%rsp) leaq 0xb8(%rsp), %rdi movq %rdi, 0x40(%rsp) leaq 0xc8(%rsp), %rsi callq 0x3b6f0 movq 0x38(%rsp), %rdi movq 0x40(%rsp), %rsi callq 0x3ae00 jmp 0x36a43 leaq 0xb8(%rsp), %rdi callq 0x3af50 jmp 0x36a78 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xb0(%rsp) movl %eax, 0xac(%rsp) leaq 0xb8(%rsp), %rdi callq 0x3af50 jmp 0x36cc8 leaq 0xc0(%rsp), %rdi callq 0x3b5a0 movq %rax, %rdi movq 0xd0(%rsp), %rax movq %rax, 0x90(%rsp) movq 0x90(%rsp), %rsi callq 0x37350 movq %rdx, 0x28(%rsp) movq %rax, 0x30(%rsp) jmp 0x36ab1 movq 0x28(%rsp), %rax movq 0x30(%rsp), %rcx movq %rcx, 0x80(%rsp) movq %rax, 0x88(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x98(%rsp) movl 0x88(%rsp), %eax movl %eax, 0xa0(%rsp) movw 0x8c(%rsp), %ax movw %ax, 0xa4(%rsp) leaq 0xc0(%rsp), %rdi leaq 0xd0(%rsp), %rsi callq 0x3b550 xorb $-0x1, %al testb $0x1, %al jne 0x36b19 jmp 0x36bbb leaq 0x98(%rsp), %rdi callq 0x3b750 movb %al, 0x27(%rsp) jmp 0x36b2c movb 0x27(%rsp), %al testb $0x1, %al jne 0x36b36 jmp 0x36b84 leaq 0xc0(%rsp), %rdi callq 0x3b590 movq 0x48(%rsp), %rdi movsbl (%rax), %esi movups 0x98(%rsp), %xmm0 movaps %xmm0, 0x70(%rsp) movq 0x70(%rsp), %rdx movq 0x78(%rsp), %rcx callq 0x3b760 jmp 0x36b69 jmp 0x36bb9 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xb0(%rsp) movl %eax, 0xac(%rsp) jmp 0x36cc8 leaq 0xc0(%rsp), %rdi callq 0x3b590 movq 0x48(%rsp), %rdi movsbl (%rax), %esi movups 0x98(%rsp), %xmm0 movaps %xmm0, 0x60(%rsp) movq 0x60(%rsp), %rdx movq 0x68(%rsp), %rcx callq 0x3db50 jmp 0x36bb7 jmp 0x36bb9 jmp 0x36bbd jmp 0x36c3c jmp 0x36c28 leaq 0xc8(%rsp), %rdi callq 0x3b6d0 testb $0x1, %al jne 0x36bf8 leaq 0x58(%rsp), %rdi callq 0x3ff30 jmp 0x36bdc leaq 0xc8(%rsp), %rdi leaq 0x58(%rsp), %rsi callq 0x3ff90 leaq 0x58(%rsp), %rdi callq 0x3ffc0 leaq 0xc8(%rsp), %rdi callq 0x40020 movq %rax, 0x18(%rsp) leaq 0xc0(%rsp), %rdi callq 0x3b590 movq 0x18(%rsp), %rdi movsbl (%rax), %esi callq 0x40030 jmp 0x36c26 jmp 0x36c28 jmp 0x36c2a leaq 0xc0(%rsp), %rdi callq 0x3b5a0 jmp 0x369bc leaq 0xc8(%rsp), %rdi callq 0x3b6d0 testb $0x1, %al jne 0x36c4f jmp 0x36cb3 movq 0x48(%rsp), %rax addq $0x90, %rax movq %rax, 0x8(%rsp) leaq 0x50(%rsp), %rdi movq %rdi, 0x10(%rsp) leaq 0xc8(%rsp), %rsi callq 0x3b6f0 movq 0x8(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x3ae00 jmp 0x36c87 leaq 0x50(%rsp), %rdi callq 0x3af50 jmp 0x36cb3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xb0(%rsp) movl %eax, 0xac(%rsp) leaq 0x50(%rsp), %rdi callq 0x3af50 jmp 0x36cc8 leaq 0xc8(%rsp), %rdi callq 0x3ffc0 addq $0xe8, %rsp retq leaq 0xc8(%rsp), %rdi callq 0x3ffc0 movq 0xb0(%rsp), %rdi callq 0x14c80 nopw %cs:(%rax,%rax)
_ZN6spdlog17pattern_formatter16compile_pattern_ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 0E8h mov [rsp+0E8h+var_8], rdi mov [rsp+0E8h+var_10], rsi mov rax, [rsp+0E8h+var_8] mov [rsp+0E8h+var_A0], rax mov rdi, [rsp+0E8h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv; std::string::end(void) mov [rsp+0E8h+var_18], rax lea rdi, [rsp+0E8h+var_20] call _ZNSt10unique_ptrIN6spdlog7details19aggregate_formatterESt14default_deleteIS2_EEC2IS4_vEEv; std::unique_ptr<spdlog::details::aggregate_formatter>::unique_ptr<std::default_delete<spdlog::details::aggregate_formatter>,void>(void) mov rdi, [rsp+0E8h+var_A0] add rdi, 90h call _ZNSt6vectorISt10unique_ptrIN6spdlog7details14flag_formatterESt14default_deleteIS3_EESaIS6_EE5clearEv; std::vector<std::unique_ptr<spdlog::details::flag_formatter>>::clear(void) mov rdi, [rsp+0E8h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void) mov [rsp+0E8h+var_28], rax loc_369BC: lea rdi, [rsp+0E8h+var_28] lea rsi, [rsp+0E8h+var_18] call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE xor al, 0FFh test al, 1 jnz short loc_369DC jmp loc_36C3C loc_369DC: lea rdi, [rsp+0E8h+var_28] call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] cmp eax, 25h ; '%' jnz loc_36BBF lea rdi, [rsp+0E8h+var_20] call _ZNKSt10unique_ptrIN6spdlog7details19aggregate_formatterESt14default_deleteIS2_EEcvbEv; std::unique_ptr<spdlog::details::aggregate_formatter>::operator bool(void) test al, 1 jnz short loc_36A08 jmp short loc_36A78 loc_36A08: mov rax, [rsp+0E8h+var_A0] add rax, 90h mov [rsp+0E8h+var_B0], rax lea rdi, [rsp+0E8h+var_30] mov [rsp+0E8h+var_A8], rdi lea rsi, [rsp+0E8h+var_20] call _ZNSt10unique_ptrIN6spdlog7details14flag_formatterESt14default_deleteIS2_EEC2INS1_19aggregate_formatterES3_IS7_EvEEOS_IT_T0_E; std::unique_ptr<spdlog::details::flag_formatter>::unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>,void>(std::unique_ptr&&<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>>) mov rdi, [rsp+0E8h+var_B0] mov rsi, [rsp+0E8h+var_A8] call _ZNSt6vectorISt10unique_ptrIN6spdlog7details14flag_formatterESt14default_deleteIS3_EESaIS6_EE9push_backEOS6_; std::vector<std::unique_ptr<spdlog::details::flag_formatter>>::push_back(std::unique_ptr<spdlog::details::flag_formatter>&&) jmp short $+2 loc_36A43: lea rdi, [rsp+0E8h+var_30] call _ZNSt10unique_ptrIN6spdlog7details14flag_formatterESt14default_deleteIS2_EED2Ev; std::unique_ptr<spdlog::details::flag_formatter>::~unique_ptr() jmp short loc_36A78 mov rcx, rax mov eax, edx mov [rsp+arg_A8], rcx mov [rsp+arg_A4], eax lea rdi, [rsp+arg_B0] call _ZNSt10unique_ptrIN6spdlog7details14flag_formatterESt14default_deleteIS2_EED2Ev; std::unique_ptr<spdlog::details::flag_formatter>::~unique_ptr() jmp loc_36CC8 loc_36A78: lea rdi, [rsp+0E8h+var_28] call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void) mov rdi, rax mov rax, [rsp+0E8h+var_18] mov [rsp+0E8h+var_58], rax mov rsi, [rsp+0E8h+var_58] call _ZN6spdlog17pattern_formatter15handle_padspec_ERN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESB_; spdlog::pattern_formatter::handle_padspec_(__gnu_cxx::__normal_iterator<char const*,std::string> &,__gnu_cxx::__normal_iterator<char const*,std::string>) mov [rsp+0E8h+var_C0], rdx mov [rsp+0E8h+var_B8], rax jmp short $+2 loc_36AB1: mov rax, [rsp+0E8h+var_C0] mov rcx, [rsp+0E8h+var_B8] mov [rsp+0E8h+var_68], rcx mov [rsp+0E8h+var_60], rax mov rax, [rsp+0E8h+var_68] mov qword ptr [rsp+0E8h+var_50], rax mov eax, dword ptr [rsp+0E8h+var_60] mov dword ptr [rsp+0E8h+var_50+8], eax mov ax, word ptr [rsp+0E8h+var_60+4] mov word ptr [rsp+0E8h+var_50+0Ch], ax lea rdi, [rsp+0E8h+var_28] lea rsi, [rsp+0E8h+var_18] call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE xor al, 0FFh test al, 1 jnz short loc_36B19 jmp loc_36BBB loc_36B19: lea rdi, [rsp+0E8h+var_50]; this call _ZNK6spdlog7details12padding_info7enabledEv; spdlog::details::padding_info::enabled(void) mov [rsp+0E8h+var_C1], al jmp short $+2 loc_36B2C: mov al, [rsp+0E8h+var_C1] test al, 1 jnz short loc_36B36 jmp short loc_36B84 loc_36B36: lea rdi, [rsp+0E8h+var_28] call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) mov rdi, [rsp+0E8h+var_A0] movsx esi, byte ptr [rax] movups xmm0, [rsp+0E8h+var_50] movaps [rsp+0E8h+var_78], xmm0 mov rdx, qword ptr [rsp+0E8h+var_78] mov rcx, qword ptr [rsp+0E8h+var_78+8] call _ZN6spdlog17pattern_formatter12handle_flag_INS_7details13scoped_padderEEEvcNS2_12padding_infoE; spdlog::pattern_formatter::handle_flag_<spdlog::details::scoped_padder>(char,spdlog::details::padding_info) jmp short $+2 loc_36B69: jmp short loc_36BB9 mov rcx, rax mov eax, edx mov [rsp+arg_A8], rcx mov [rsp+arg_A4], eax jmp loc_36CC8 loc_36B84: lea rdi, [rsp+0E8h+var_28] call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) mov rdi, [rsp+0E8h+var_A0] movsx esi, byte ptr [rax] movups xmm0, [rsp+0E8h+var_50] movaps [rsp+0E8h+var_88], xmm0 mov rdx, qword ptr [rsp+0E8h+var_88] mov rcx, qword ptr [rsp+0E8h+var_88+8] call _ZN6spdlog17pattern_formatter12handle_flag_INS_7details18null_scoped_padderEEEvcNS2_12padding_infoE; spdlog::pattern_formatter::handle_flag_<spdlog::details::null_scoped_padder>(char,spdlog::details::padding_info) jmp short $+2 loc_36BB7: jmp short $+2 loc_36BB9: jmp short loc_36BBD loc_36BBB: jmp short loc_36C3C loc_36BBD: jmp short loc_36C28 loc_36BBF: lea rdi, [rsp+0E8h+var_20] call _ZNKSt10unique_ptrIN6spdlog7details19aggregate_formatterESt14default_deleteIS2_EEcvbEv; std::unique_ptr<spdlog::details::aggregate_formatter>::operator bool(void) test al, 1 jnz short loc_36BF8 lea rdi, [rsp+0E8h+var_90] call _ZSt11make_uniqueIN6spdlog7details19aggregate_formatterEJEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<spdlog::details::aggregate_formatter>() jmp short $+2 loc_36BDC: lea rdi, [rsp+0E8h+var_20] lea rsi, [rsp+0E8h+var_90] call _ZNSt10unique_ptrIN6spdlog7details19aggregate_formatterESt14default_deleteIS2_EEaSEOS5_; std::unique_ptr<spdlog::details::aggregate_formatter>::operator=(std::unique_ptr<spdlog::details::aggregate_formatter>&&) lea rdi, [rsp+0E8h+var_90] call _ZNSt10unique_ptrIN6spdlog7details19aggregate_formatterESt14default_deleteIS2_EED2Ev; std::unique_ptr<spdlog::details::aggregate_formatter>::~unique_ptr() loc_36BF8: lea rdi, [rsp+0E8h+var_20] call _ZNKSt10unique_ptrIN6spdlog7details19aggregate_formatterESt14default_deleteIS2_EEptEv; std::unique_ptr<spdlog::details::aggregate_formatter>::operator->(void) mov [rsp+0E8h+var_D0], rax lea rdi, [rsp+0E8h+var_28] call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) mov rdi, [rsp+0E8h+var_D0]; this movsx esi, byte ptr [rax]; char call _ZN6spdlog7details19aggregate_formatter6add_chEc; spdlog::details::aggregate_formatter::add_ch(char) jmp short $+2 loc_36C26: jmp short $+2 loc_36C28: jmp short $+2 loc_36C2A: lea rdi, [rsp+0E8h+var_28] call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void) jmp loc_369BC loc_36C3C: lea rdi, [rsp+0E8h+var_20] call _ZNKSt10unique_ptrIN6spdlog7details19aggregate_formatterESt14default_deleteIS2_EEcvbEv; std::unique_ptr<spdlog::details::aggregate_formatter>::operator bool(void) test al, 1 jnz short loc_36C4F jmp short loc_36CB3 loc_36C4F: mov rax, [rsp+0E8h+var_A0] add rax, 90h mov [rsp+0E8h+var_E0], rax lea rdi, [rsp+0E8h+var_98] mov [rsp+0E8h+var_D8], rdi lea rsi, [rsp+0E8h+var_20] call _ZNSt10unique_ptrIN6spdlog7details14flag_formatterESt14default_deleteIS2_EEC2INS1_19aggregate_formatterES3_IS7_EvEEOS_IT_T0_E; std::unique_ptr<spdlog::details::flag_formatter>::unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>,void>(std::unique_ptr&&<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>>) mov rdi, [rsp+0E8h+var_E0] mov rsi, [rsp+0E8h+var_D8] call _ZNSt6vectorISt10unique_ptrIN6spdlog7details14flag_formatterESt14default_deleteIS3_EESaIS6_EE9push_backEOS6_; std::vector<std::unique_ptr<spdlog::details::flag_formatter>>::push_back(std::unique_ptr<spdlog::details::flag_formatter>&&) jmp short $+2 loc_36C87: lea rdi, [rsp+0E8h+var_98] call _ZNSt10unique_ptrIN6spdlog7details14flag_formatterESt14default_deleteIS2_EED2Ev; std::unique_ptr<spdlog::details::flag_formatter>::~unique_ptr() jmp short loc_36CB3 mov rcx, rax mov eax, edx mov [rsp+arg_A8], rcx mov [rsp+arg_A4], eax lea rdi, [rsp+arg_48] call _ZNSt10unique_ptrIN6spdlog7details14flag_formatterESt14default_deleteIS2_EED2Ev; std::unique_ptr<spdlog::details::flag_formatter>::~unique_ptr() jmp short loc_36CC8 loc_36CB3: lea rdi, [rsp+0E8h+var_20] call _ZNSt10unique_ptrIN6spdlog7details19aggregate_formatterESt14default_deleteIS2_EED2Ev; std::unique_ptr<spdlog::details::aggregate_formatter>::~unique_ptr() add rsp, 0E8h retn loc_36CC8: lea rdi, [rsp+arg_C0] call _ZNSt10unique_ptrIN6spdlog7details19aggregate_formatterESt14default_deleteIS2_EED2Ev; std::unique_ptr<spdlog::details::aggregate_formatter>::~unique_ptr() mov rdi, [rsp+arg_A8] call __Unwind_Resume
long long spdlog::pattern_formatter::compile_pattern_(long long a1, long long a2) { long long v2; // rax long long v3; // rdx long long v4; // rsi long long v5; // rsi char *v6; // rax spdlog::details::aggregate_formatter *v8; // [rsp+18h] [rbp-D0h] _BYTE v9[8]; // [rsp+50h] [rbp-98h] BYREF _BYTE v10[8]; // [rsp+58h] [rbp-90h] BYREF __int128 v11; // [rsp+60h] [rbp-88h] __int128 v12; // [rsp+70h] [rbp-78h] long long v13; // [rsp+80h] [rbp-68h] long long v14; // [rsp+88h] [rbp-60h] long long v15; // [rsp+90h] [rbp-58h] __int128 v16; // [rsp+98h] [rbp-50h] BYREF _BYTE v17[8]; // [rsp+B8h] [rbp-30h] BYREF long long i; // [rsp+C0h] [rbp-28h] BYREF _BYTE v19[8]; // [rsp+C8h] [rbp-20h] BYREF long long v20; // [rsp+D0h] [rbp-18h] BYREF long long v21; // [rsp+D8h] [rbp-10h] long long v22; // [rsp+E0h] [rbp-8h] v22 = a1; v21 = a2; v20 = std::string::end(a2); std::unique_ptr<spdlog::details::aggregate_formatter>::unique_ptr<std::default_delete<spdlog::details::aggregate_formatter>,void>(v19); std::vector<std::unique_ptr<spdlog::details::flag_formatter>>::clear(a1 + 144); for ( i = std::string::begin(v21); (__gnu_cxx::operator==<char const*,std::string>(&i, &v20) & 1) == 0; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(&i) ) { if ( *(_BYTE *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(&i) == 37 ) { if ( (std::unique_ptr<spdlog::details::aggregate_formatter>::operator bool(v19) & 1) != 0 ) { std::unique_ptr<spdlog::details::flag_formatter>::unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>,void>( v17, v19); std::vector<std::unique_ptr<spdlog::details::flag_formatter>>::push_back(a1 + 144, v17); std::unique_ptr<spdlog::details::flag_formatter>::~unique_ptr(v17); } v2 = __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(&i); v15 = v20; v13 = spdlog::pattern_formatter::handle_padspec_(v2, v20); v14 = v3; *(_QWORD *)&v16 = v13; DWORD2(v16) = v3; WORD6(v16) = WORD2(v3); if ( (__gnu_cxx::operator==<char const*,std::string>(&i, &v20) & 1) != 0 ) break; if ( (spdlog::details::padding_info::enabled((spdlog::details::padding_info *)&v16) & 1) != 0 ) { v4 = (unsigned int)*(char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(&i); v12 = v16; spdlog::pattern_formatter::handle_flag_<spdlog::details::scoped_padder>(a1, v4, v16, *((_QWORD *)&v16 + 1)); } else { v5 = (unsigned int)*(char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(&i); v11 = v16; spdlog::pattern_formatter::handle_flag_<spdlog::details::null_scoped_padder>(a1, v5, v16, *((_QWORD *)&v16 + 1)); } } else { if ( (std::unique_ptr<spdlog::details::aggregate_formatter>::operator bool(v19) & 1) == 0 ) { std::make_unique<spdlog::details::aggregate_formatter>(v10); std::unique_ptr<spdlog::details::aggregate_formatter>::operator=(v19, v10); std::unique_ptr<spdlog::details::aggregate_formatter>::~unique_ptr(v10); } v8 = (spdlog::details::aggregate_formatter *)std::unique_ptr<spdlog::details::aggregate_formatter>::operator->(v19); v6 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(&i); spdlog::details::aggregate_formatter::add_ch(v8, *v6); } } if ( (std::unique_ptr<spdlog::details::aggregate_formatter>::operator bool(v19) & 1) != 0 ) { std::unique_ptr<spdlog::details::flag_formatter>::unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>,void>( v9, v19); std::vector<std::unique_ptr<spdlog::details::flag_formatter>>::push_back(a1 + 144, v9); std::unique_ptr<spdlog::details::flag_formatter>::~unique_ptr(v9); } return std::unique_ptr<spdlog::details::aggregate_formatter>::~unique_ptr(v19); }
compile_pattern_: SUB RSP,0xe8 MOV qword ptr [RSP + 0xe0],RDI MOV qword ptr [RSP + 0xd8],RSI MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0xd8] CALL 0x0013b600 MOV qword ptr [RSP + 0xd0],RAX LEA RDI,[RSP + 0xc8] CALL 0x0013b650 MOV RDI,qword ptr [RSP + 0x48] ADD RDI,0x90 CALL 0x0013b680 MOV RDI,qword ptr [RSP + 0xd8] CALL 0x0013b6a0 MOV qword ptr [RSP + 0xc0],RAX LAB_001369bc: LEA RDI,[RSP + 0xc0] LEA RSI,[RSP + 0xd0] CALL 0x0013b550 XOR AL,0xff TEST AL,0x1 JNZ 0x001369dc JMP 0x00136c3c LAB_001369dc: LEA RDI,[RSP + 0xc0] CALL 0x0013b590 MOVSX EAX,byte ptr [RAX] CMP EAX,0x25 JNZ 0x00136bbf LEA RDI,[RSP + 0xc8] CALL 0x0013b6d0 TEST AL,0x1 JNZ 0x00136a08 JMP 0x00136a78 LAB_00136a08: MOV RAX,qword ptr [RSP + 0x48] ADD RAX,0x90 MOV qword ptr [RSP + 0x38],RAX LEA RDI,[RSP + 0xb8] MOV qword ptr [RSP + 0x40],RDI LEA RSI,[RSP + 0xc8] CALL 0x0013b6f0 MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x40] LAB_00136a3c: CALL 0x0013ae00 JMP 0x00136a43 LAB_00136a43: LEA RDI,[RSP + 0xb8] CALL 0x0013af50 JMP 0x00136a78 LAB_00136a78: LEA RDI,[RSP + 0xc0] CALL 0x0013b5a0 MOV RDI,RAX MOV RAX,qword ptr [RSP + 0xd0] MOV qword ptr [RSP + 0x90],RAX MOV RSI,qword ptr [RSP + 0x90] LAB_00136aa0: CALL 0x00137350 MOV qword ptr [RSP + 0x28],RDX MOV qword ptr [RSP + 0x30],RAX JMP 0x00136ab1 LAB_00136ab1: MOV RAX,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x80],RCX MOV qword ptr [RSP + 0x88],RAX MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x98],RAX MOV EAX,dword ptr [RSP + 0x88] MOV dword ptr [RSP + 0xa0],EAX MOV AX,word ptr [RSP + 0x8c] MOV word ptr [RSP + 0xa4],AX LEA RDI,[RSP + 0xc0] LEA RSI,[RSP + 0xd0] CALL 0x0013b550 XOR AL,0xff TEST AL,0x1 JNZ 0x00136b19 JMP 0x00136bbb LAB_00136b19: LEA RDI,[RSP + 0x98] CALL 0x0013b750 MOV byte ptr [RSP + 0x27],AL JMP 0x00136b2c LAB_00136b2c: MOV AL,byte ptr [RSP + 0x27] TEST AL,0x1 JNZ 0x00136b36 JMP 0x00136b84 LAB_00136b36: LEA RDI,[RSP + 0xc0] CALL 0x0013b590 MOV RDI,qword ptr [RSP + 0x48] MOVSX ESI,byte ptr [RAX] MOVUPS XMM0,xmmword ptr [RSP + 0x98] MOVAPS xmmword ptr [RSP + 0x70],XMM0 MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x78] CALL 0x0013b760 JMP 0x00136b69 LAB_00136b69: JMP 0x00136bb9 LAB_00136b84: LEA RDI,[RSP + 0xc0] CALL 0x0013b590 MOV RDI,qword ptr [RSP + 0x48] MOVSX ESI,byte ptr [RAX] MOVUPS XMM0,xmmword ptr [RSP + 0x98] MOVAPS xmmword ptr [RSP + 0x60],XMM0 MOV RDX,qword ptr [RSP + 0x60] MOV RCX,qword ptr [RSP + 0x68] CALL 0x0013db50 JMP 0x00136bb7 LAB_00136bb7: JMP 0x00136bb9 LAB_00136bb9: JMP 0x00136bbd LAB_00136bbb: JMP 0x00136c3c LAB_00136bbd: JMP 0x00136c28 LAB_00136bbf: LEA RDI,[RSP + 0xc8] CALL 0x0013b6d0 TEST AL,0x1 JNZ 0x00136bf8 LEA RDI,[RSP + 0x58] CALL 0x0013ff30 JMP 0x00136bdc LAB_00136bdc: LEA RDI,[RSP + 0xc8] LEA RSI,[RSP + 0x58] CALL 0x0013ff90 LEA RDI,[RSP + 0x58] CALL 0x0013ffc0 LAB_00136bf8: LEA RDI,[RSP + 0xc8] CALL 0x00140020 MOV qword ptr [RSP + 0x18],RAX LEA RDI,[RSP + 0xc0] CALL 0x0013b590 MOV RDI,qword ptr [RSP + 0x18] MOVSX ESI,byte ptr [RAX] CALL 0x00140030 JMP 0x00136c26 LAB_00136c26: JMP 0x00136c28 LAB_00136c28: JMP 0x00136c2a LAB_00136c2a: LEA RDI,[RSP + 0xc0] CALL 0x0013b5a0 JMP 0x001369bc LAB_00136c3c: LEA RDI,[RSP + 0xc8] CALL 0x0013b6d0 TEST AL,0x1 JNZ 0x00136c4f JMP 0x00136cb3 LAB_00136c4f: MOV RAX,qword ptr [RSP + 0x48] ADD RAX,0x90 MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x50] MOV qword ptr [RSP + 0x10],RDI LEA RSI,[RSP + 0xc8] CALL 0x0013b6f0 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x10] LAB_00136c80: CALL 0x0013ae00 LAB_00136c85: JMP 0x00136c87 LAB_00136c87: LEA RDI,[RSP + 0x50] CALL 0x0013af50 JMP 0x00136cb3 LAB_00136cb3: LEA RDI,[RSP + 0xc8] CALL 0x0013ffc0 ADD RSP,0xe8 RET
/* spdlog::pattern_formatter::compile_pattern_(std::__cxx11::string const&) */ void __thiscall spdlog::pattern_formatter::compile_pattern_(pattern_formatter *this,string *param_1) { byte bVar1; bool bVar2; char *pcVar3; int8 uVar4; aggregate_formatter *this_00; int1 auVar5 [16]; unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>> local_98 [8]; unique_ptr local_90 [8]; int4 local_88; int4 uStack_84; int4 uStack_80; int4 uStack_7c; int4 local_78; int4 uStack_74; int4 uStack_70; int4 uStack_6c; int1 local_68 [16]; int8 local_58; int8 local_50; int4 uStack_48; int4 uStack_44; unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>> local_30 [8]; int8 local_28; unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>> local_20 [8]; int8 local_18; string *local_10; pattern_formatter *local_8; local_10 = param_1; local_8 = this; local_18 = std::__cxx11::string::end(param_1); std:: unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>> ::unique_ptr<std::default_delete<spdlog::details::aggregate_formatter>,void>(local_20); std:: vector<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>,std::allocator<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>>> ::clear((vector<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>,std::allocator<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>>> *)(this + 0x90)); local_28 = std::__cxx11::string::begin(local_10); while( true ) { bVar1 = _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE (&local_28,&local_18); if (((bVar1 ^ 0xff) & 1) == 0) break; pcVar3 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator* ((__normal_iterator<char_const*,std::__cxx11::string> *)&local_28); if (*pcVar3 == '%') { bVar2 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)local_20); if (bVar2) { std:: unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>> :: unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>,void> (local_30,(unique_ptr *)local_20); /* try { // try from 00136a3c to 00136a40 has its CatchHandler @ 00136a52 */ std:: vector<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>,std::allocator<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>>> ::push_back((vector<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>,std::allocator<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>>> *)(this + 0x90),(unique_ptr *)local_30); std:: unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>> ::~unique_ptr(local_30); } uVar4 = __gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++ ((__normal_iterator<char_const*,std::__cxx11::string> *)&local_28); local_58 = local_18; /* try { // try from 00136aa0 to 00136c23 has its CatchHandler @ 00136b6b */ auVar5 = handle_padspec_(uVar4,local_18); local_50 = auVar5._0_8_; local_68._8_4_ = auVar5._8_4_; uStack_48 = local_68._8_4_; local_68._12_2_ = auVar5._12_2_; uStack_44 = CONCAT22(uStack_44._2_2_,local_68._12_2_); local_68 = auVar5; bVar1 = _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE (&local_28,&local_18); if (((bVar1 ^ 0xff) & 1) == 0) break; bVar1 = details::padding_info::enabled((padding_info *)&local_50); if ((bVar1 & 1) == 0) { pcVar3 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator* ((__normal_iterator<char_const*,std::__cxx11::string> *)&local_28 ); local_88 = (int4)local_50; uStack_84 = local_50._4_4_; uStack_80 = uStack_48; uStack_7c = uStack_44; handle_flag_<spdlog::details::null_scoped_padder> (this,(int)*pcVar3,local_50,CONCAT44(uStack_44,uStack_48)); } else { pcVar3 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator* ((__normal_iterator<char_const*,std::__cxx11::string> *)&local_28 ); local_78 = (int4)local_50; uStack_74 = local_50._4_4_; uStack_70 = uStack_48; uStack_6c = uStack_44; handle_flag_<spdlog::details::scoped_padder> (this,(int)*pcVar3,local_50,CONCAT44(uStack_44,uStack_48)); } } else { bVar2 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)local_20); if (!bVar2) { std::make_unique<spdlog::details::aggregate_formatter>(); std:: unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>> ::operator=(local_20,local_90); std:: unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>> ::~unique_ptr((unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>> *)local_90); } this_00 = (aggregate_formatter *) std:: unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>> ::operator->(local_20); pcVar3 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator* ((__normal_iterator<char_const*,std::__cxx11::string> *)&local_28); details::aggregate_formatter::add_ch(this_00,*pcVar3); } __gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++ ((__normal_iterator<char_const*,std::__cxx11::string> *)&local_28); } bVar2 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)local_20); if (bVar2) { std:: unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>> :: unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>,void> (local_98,(unique_ptr *)local_20); /* try { // try from 00136c80 to 00136c84 has its CatchHandler @ 00136c93 */ std:: vector<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>,std::allocator<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>>> ::push_back((vector<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>,std::allocator<std::unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>>>> *)(this + 0x90),(unique_ptr *)local_98); std:: unique_ptr<spdlog::details::flag_formatter,std::default_delete<spdlog::details::flag_formatter>> ::~unique_ptr(local_98); } std:: unique_ptr<spdlog::details::aggregate_formatter,std::default_delete<spdlog::details::aggregate_formatter>> ::~unique_ptr(local_20); return; }
29,332
mi_ft_parse
eloqsql/storage/myisam/ft_update.c
uint _mi_ft_parse(TREE *parsed, MI_INFO *info, uint keynr, const uchar *record, MYSQL_FTPARSER_PARAM *param, MEM_ROOT *mem_root) { FT_SEG_ITERATOR ftsi; struct st_mysql_ftparser *parser; DBUG_ENTER("_mi_ft_parse"); _mi_ft_segiterator_init(info, keynr, record, &ftsi); ft_parse_init(parsed, info->s->keyinfo[keynr].seg->charset); parser= info->s->keyinfo[keynr].parser; while (_mi_ft_segiterator(&ftsi)) { if (ftsi.pos) if (ft_parse(parsed, (uchar *)ftsi.pos, ftsi.len, parser, param, mem_root)) DBUG_RETURN(1); } DBUG_RETURN(0); }
O3
c
mi_ft_parse: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %r9, %rbx movq %r8, %r14 movq %rsi, -0x30(%rbp) movq %rdi, %r15 movq (%rsi), %rax movq 0x218(%rax), %rax movl %edx, %edx imulq $0x70, %rdx, %r13 movzwl 0x8(%rax,%r13), %edx leaq -0x50(%rbp), %r12 movl %edx, (%r12) movq 0x28(%rax,%r13), %rax movq %rax, 0x8(%r12) movq %rcx, 0x10(%r12) movq $0x0, 0x18(%r12) movl $0x0, 0x4(%r12) movq (%rax), %rsi callq 0x7445a movq -0x30(%rbp), %rax movq (%rax), %rax movq 0x218(%rax), %rax movq 0x38(%rax,%r13), %r13 movq %r12, %rdi callq 0x7482e xorl %ecx, %ecx testl %eax, %eax je 0x749a2 movq -0x38(%rbp), %rsi testq %rsi, %rsi je 0x7498d movl -0x4c(%rbp), %edx movq %r15, %rdi movq %r13, %rcx movq %r14, %r8 movq %rbx, %r9 callq 0x744aa testl %eax, %eax jne 0x7499d movq %r12, %rdi callq 0x7482e testl %eax, %eax jne 0x7496c xorl %ecx, %ecx jmp 0x749a2 movl $0x1, %ecx movl %ecx, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_mi_ft_parse: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, r9 mov r14, r8 mov [rbp+var_30], rsi mov r15, rdi mov rax, [rsi] mov rax, [rax+218h] mov edx, edx imul r13, rdx, 70h ; 'p' movzx edx, word ptr [rax+r13+8] lea r12, [rbp+var_50] mov [r12], edx mov rax, [rax+r13+28h] mov [r12+8], rax mov [r12+10h], rcx mov qword ptr [r12+18h], 0 mov dword ptr [r12+4], 0 mov rsi, [rax] call ft_parse_init mov rax, [rbp+var_30] mov rax, [rax] mov rax, [rax+218h] mov r13, [rax+r13+38h] mov rdi, r12 call _mi_ft_segiterator xor ecx, ecx test eax, eax jz short loc_749A2 loc_7496C: mov rsi, [rbp+var_38] test rsi, rsi jz short loc_7498D mov edx, [rbp+var_4C] mov rdi, r15 mov rcx, r13 mov r8, r14 mov r9, rbx call ft_parse test eax, eax jnz short loc_7499D loc_7498D: mov rdi, r12 call _mi_ft_segiterator test eax, eax jnz short loc_7496C xor ecx, ecx jmp short loc_749A2 loc_7499D: mov ecx, 1 loc_749A2: mov eax, ecx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mi_ft_parse(_QWORD *a1, long long a2, unsigned int a3, long long a4, long long a5, long long a6) { long long v8; // rax long long v9; // r13 long long v10; // r13 int v11; // eax unsigned int v12; // ecx int v14; // [rsp+0h] [rbp-50h] BYREF int v15; // [rsp+4h] [rbp-4Ch] long long *v16; // [rsp+8h] [rbp-48h] long long v17; // [rsp+10h] [rbp-40h] long long v18; // [rsp+18h] [rbp-38h] long long v19; // [rsp+20h] [rbp-30h] v19 = a2; v8 = *(_QWORD *)(*(_QWORD *)a2 + 536LL); v9 = 112LL * a3; v14 = *(unsigned __int16 *)(v8 + v9 + 8); v16 = *(long long **)(v8 + v9 + 40); v17 = a4; v18 = 0LL; v15 = 0; ft_parse_init(a1, *v16); v10 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a2 + 536LL) + v9 + 56); v11 = mi_ft_segiterator((long long)&v14); v12 = 0; if ( v11 ) { while ( !v18 || !(unsigned int)ft_parse((long long)a1, v18, v15, v10, a5, a6) ) { if ( !(unsigned int)mi_ft_segiterator((long long)&v14) ) return 0; } return 1; } return v12; }
_mi_ft_parse: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,R9 MOV R14,R8 MOV qword ptr [RBP + -0x30],RSI MOV R15,RDI MOV RAX,qword ptr [RSI] MOV RAX,qword ptr [RAX + 0x218] MOV EDX,EDX IMUL R13,RDX,0x70 MOVZX EDX,word ptr [RAX + R13*0x1 + 0x8] LEA R12,[RBP + -0x50] MOV dword ptr [R12],EDX MOV RAX,qword ptr [RAX + R13*0x1 + 0x28] MOV qword ptr [R12 + 0x8],RAX MOV qword ptr [R12 + 0x10],RCX MOV qword ptr [R12 + 0x18],0x0 MOV dword ptr [R12 + 0x4],0x0 MOV RSI,qword ptr [RAX] CALL 0x0017445a MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV R13,qword ptr [RAX + R13*0x1 + 0x38] MOV RDI,R12 CALL 0x0017482e XOR ECX,ECX TEST EAX,EAX JZ 0x001749a2 LAB_0017496c: MOV RSI,qword ptr [RBP + -0x38] TEST RSI,RSI JZ 0x0017498d MOV EDX,dword ptr [RBP + -0x4c] MOV RDI,R15 MOV RCX,R13 MOV R8,R14 MOV R9,RBX CALL 0x001744aa TEST EAX,EAX JNZ 0x0017499d LAB_0017498d: MOV RDI,R12 CALL 0x0017482e TEST EAX,EAX JNZ 0x0017496c XOR ECX,ECX JMP 0x001749a2 LAB_0017499d: MOV ECX,0x1 LAB_001749a2: MOV EAX,ECX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 _mi_ft_parse(int8 param_1,long *param_2,uint param_3,int8 param_4,int8 param_5, int8 param_6) { int8 uVar1; int iVar2; long lVar3; uint local_58; int4 local_54; int8 *local_50; int8 local_48; long local_40; long *local_38; lVar3 = (ulong)param_3 * 0x70; local_58 = (uint)*(ushort *)(*(long *)(*param_2 + 0x218) + 8 + lVar3); local_50 = *(int8 **)(*(long *)(*param_2 + 0x218) + 0x28 + lVar3); local_40 = 0; local_54 = 0; local_48 = param_4; local_38 = param_2; ft_parse_init(param_1,*local_50); uVar1 = *(int8 *)(*(long *)(*local_38 + 0x218) + 0x38 + lVar3); iVar2 = _mi_ft_segiterator(&local_58); while( true ) { if (iVar2 == 0) { return 0; } if ((local_40 != 0) && (iVar2 = ft_parse(param_1,local_40,local_54,uVar1,param_5,param_6), iVar2 != 0)) break; iVar2 = _mi_ft_segiterator(&local_58); } return 1; }
29,333
thr_print_lock
eloqsql/mysys/thr_lock.c
static void thr_print_lock(const char* name,struct st_lock_list *list) { THR_LOCK_DATA *data,**prev; uint count=0; if (list->data) { printf("%-10s: ",name); prev= &list->data; for (data=list->data; data && count++ < MAX_LOCKS ; data=data->next) { printf("%p (%lu:%d); ", data, (ulong) data->owner->thread_id, (int) data->type); if (data->prev != prev) printf("\nWarning: prev didn't point at previous lock\n"); prev= &data->next; } puts(""); if (prev != list->last) printf("Warning: last didn't point at last lock\n"); } }
O0
c
thr_print_lock: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl $0x0, -0x24(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, (%rax) je 0xf9bbc movq -0x8(%rbp), %rsi leaq 0x5ac24(%rip), %rdi # 0x154714 movb $0x0, %al callq 0x2a050 movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) xorl %eax, %eax cmpq $0x0, -0x18(%rbp) movb %al, -0x25(%rbp) je 0xf9b2c movl -0x24(%rbp), %eax movl %eax, %ecx addl $0x1, %ecx movl %ecx, -0x24(%rbp) cmpl $0x3e8, %eax # imm = 0x3E8 setb %al movb %al, -0x25(%rbp) movb -0x25(%rbp), %al testb $0x1, %al jne 0xf9b35 jmp 0xf9b92 movq -0x18(%rbp), %rsi movq -0x18(%rbp), %rax movq (%rax), %rax movq 0x8(%rax), %rdx movq -0x18(%rbp), %rax movl 0x40(%rax), %ecx leaq 0x5abca(%rip), %rdi # 0x15471c movb $0x0, %al callq 0x2a050 movq -0x18(%rbp), %rax movq 0x10(%rax), %rax cmpq -0x20(%rbp), %rax je 0xf9b75 leaq 0x5abbc(%rip), %rdi # 0x15472a movb $0x0, %al callq 0x2a050 movq -0x18(%rbp), %rax addq $0x8, %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) jmp 0xf9b0a leaq 0x5e10b(%rip), %rdi # 0x157ca4 callq 0x2a790 movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x8(%rcx), %rax je 0xf9bba leaq 0x5aba5(%rip), %rdi # 0x154758 movb $0x0, %al callq 0x2a050 jmp 0xf9bbc addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
thr_print_lock: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_24], 0 mov rax, [rbp+var_10] cmp qword ptr [rax], 0 jz loc_F9BBC mov rsi, [rbp+var_8] lea rdi, a10s; "%-10s: " mov al, 0 call _printf mov rax, [rbp+var_10] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_18], rax loc_F9B0A: xor eax, eax cmp [rbp+var_18], 0 mov [rbp+var_25], al jz short loc_F9B2C mov eax, [rbp+var_24] mov ecx, eax add ecx, 1 mov [rbp+var_24], ecx cmp eax, 3E8h setb al mov [rbp+var_25], al loc_F9B2C: mov al, [rbp+var_25] test al, 1 jnz short loc_F9B35 jmp short loc_F9B92 loc_F9B35: mov rsi, [rbp+var_18] mov rax, [rbp+var_18] mov rax, [rax] mov rdx, [rax+8] mov rax, [rbp+var_18] mov ecx, [rax+40h] lea rdi, aPLuD; "%p (%lu:%d); " mov al, 0 call _printf mov rax, [rbp+var_18] mov rax, [rax+10h] cmp rax, [rbp+var_20] jz short loc_F9B75 lea rdi, aWarningPrevDid; "\nWarning: prev didn't point at previou"... mov al, 0 call _printf loc_F9B75: mov rax, [rbp+var_18] add rax, 8 mov [rbp+var_20], rax mov rax, [rbp+var_18] mov rax, [rax+8] mov [rbp+var_18], rax jmp loc_F9B0A loc_F9B92: lea rdi, asc_157CA0+4; "" call _puts mov rax, [rbp+var_20] mov rcx, [rbp+var_10] cmp rax, [rcx+8] jz short loc_F9BBA lea rdi, aWarningLastDid; "Warning: last didn't point at last lock"... mov al, 0 call _printf loc_F9BBA: jmp short $+2 loc_F9BBC: add rsp, 30h pop rbp retn
long long thr_print_lock(const char *a1, _QWORD *a2) { long long result; // rax unsigned int v3; // eax bool v4; // [rsp+Bh] [rbp-25h] unsigned int v5; // [rsp+Ch] [rbp-24h] _QWORD *v6; // [rsp+10h] [rbp-20h] long long i; // [rsp+18h] [rbp-18h] v5 = 0; result = (long long)a2; if ( *a2 ) { printf("%-10s: ", a1); v6 = a2; for ( i = *a2; ; i = *(_QWORD *)(i + 8) ) { v4 = 0; if ( i ) { v3 = v5++; v4 = v3 < 0x3E8; } if ( !v4 ) break; printf("%p (%lu:%d); ", (const void *)i, *(_QWORD *)(*(_QWORD *)i + 8LL), *(_DWORD *)(i + 64)); if ( *(_QWORD **)(i + 16) != v6 ) printf("\nWarning: prev didn't point at previous lock\n"); v6 = (_QWORD *)(i + 8); } puts(""); result = (long long)v6; if ( v6 != (_QWORD *)a2[1] ) return printf("Warning: last didn't point at last lock\n"); } return result; }
thr_print_lock: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x24],0x0 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX],0x0 JZ 0x001f9bbc MOV RSI,qword ptr [RBP + -0x8] LEA RDI,[0x254714] MOV AL,0x0 CALL 0x0012a050 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX LAB_001f9b0a: XOR EAX,EAX CMP qword ptr [RBP + -0x18],0x0 MOV byte ptr [RBP + -0x25],AL JZ 0x001f9b2c MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX ADD ECX,0x1 MOV dword ptr [RBP + -0x24],ECX CMP EAX,0x3e8 SETC AL MOV byte ptr [RBP + -0x25],AL LAB_001f9b2c: MOV AL,byte ptr [RBP + -0x25] TEST AL,0x1 JNZ 0x001f9b35 JMP 0x001f9b92 LAB_001f9b35: MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x40] LEA RDI,[0x25471c] MOV AL,0x0 CALL 0x0012a050 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] CMP RAX,qword ptr [RBP + -0x20] JZ 0x001f9b75 LEA RDI,[0x25472a] MOV AL,0x0 CALL 0x0012a050 LAB_001f9b75: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x8 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x001f9b0a LAB_001f9b92: LEA RDI,[0x257ca4] CALL 0x0012a790 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x8] JZ 0x001f9bba LEA RDI,[0x254758] MOV AL,0x0 CALL 0x0012a050 LAB_001f9bba: JMP 0x001f9bbc LAB_001f9bbc: ADD RSP,0x30 POP RBP RET
void thr_print_lock(int8 param_1,long *param_2) { uint uVar1; uint local_2c; long *local_28; long *local_20; local_2c = 0; if (*param_2 != 0) { printf("%-10s: ",param_1); local_20 = (long *)*param_2; local_28 = param_2; while( true ) { uVar1 = local_2c; if (local_20 != (long *)0x0) { local_2c = local_2c + 1; } if (local_20 == (long *)0x0 || 999 < uVar1) break; printf("%p (%lu:%d); ",local_20,*(int8 *)(*local_20 + 8),(ulong)*(uint *)(local_20 + 8)) ; if ((long *)local_20[2] != local_28) { printf("\nWarning: prev didn\'t point at previous lock\n"); } local_28 = local_20 + 1; local_20 = (long *)local_20[1]; } puts(""); if (local_28 != (long *)param_2[1]) { printf("Warning: last didn\'t point at last lock\n"); } } return; }
29,334
LefDefParser::lefiPin::addAntennaSize(double, char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMacro.cpp
void lefiPin::addAntennaSize(double val, const char *layer) { int len; if (numAntennaSize_ == antennaSizeAllocated_) { int i; int max; int lim = numAntennaSize_; double *nd; char **nl; if (antennaSizeAllocated_ == 0) max = antennaSizeAllocated_ = 2; else max = antennaSizeAllocated_ *= 2; nd = (double*) lefMalloc(sizeof(double) * max); nl = (char**) lefMalloc(sizeof(double) * max); for (i = 0; i < lim; i++) { nl[i] = antennaSizeLayer_[i]; nd[i] = antennaSize_[i]; } lefFree((char*) (antennaSizeLayer_)); lefFree((char*) (antennaSize_)); antennaSizeLayer_ = nl; antennaSize_ = nd; } antennaSize_[numAntennaSize_] = val; if (layer) { // layer can be null, since it is optional len = strlen(layer) + 1; antennaSizeLayer_[numAntennaSize_] = (char*) lefMalloc(len); strcpy(antennaSizeLayer_[numAntennaSize_], layer); } else antennaSizeLayer_[numAntennaSize_] = NULL; numAntennaSize_ += 1; }
O0
cpp
LefDefParser::lefiPin::addAntennaSize(double, char const*): subq $0x48, %rsp movq %rdi, 0x40(%rsp) movsd %xmm0, 0x38(%rsp) movq %rsi, 0x30(%rsp) movq 0x40(%rsp), %rcx movq %rcx, 0x8(%rsp) movl 0x180(%rcx), %eax cmpl 0x184(%rcx), %eax jne 0x445ff movq 0x8(%rsp), %rax movl 0x180(%rax), %ecx movl %ecx, 0x20(%rsp) cmpl $0x0, 0x184(%rax) jne 0x44521 movq 0x8(%rsp), %rax movl $0x2, 0x184(%rax) movl $0x2, 0x24(%rsp) jmp 0x44538 movq 0x8(%rsp), %rcx movl 0x184(%rcx), %eax shll %eax movl %eax, 0x184(%rcx) movl %eax, 0x24(%rsp) movslq 0x24(%rsp), %rdi shlq $0x3, %rdi callq 0x359d0 movq %rax, 0x18(%rsp) movslq 0x24(%rsp), %rdi shlq $0x3, %rdi callq 0x359d0 movq %rax, 0x10(%rsp) movl $0x0, 0x28(%rsp) movl 0x28(%rsp), %eax cmpl 0x20(%rsp), %eax jge 0x445c0 movq 0x8(%rsp), %rax movq 0x190(%rax), %rcx movslq 0x28(%rsp), %rdx movq (%rcx,%rdx,8), %rsi movq 0x10(%rsp), %rcx movslq 0x28(%rsp), %rdx movq %rsi, (%rcx,%rdx,8) movq 0x188(%rax), %rax movslq 0x28(%rsp), %rcx movsd (%rax,%rcx,8), %xmm0 movq 0x18(%rsp), %rax movslq 0x28(%rsp), %rcx movsd %xmm0, (%rax,%rcx,8) movl 0x28(%rsp), %eax addl $0x1, %eax movl %eax, 0x28(%rsp) jmp 0x44566 movq 0x8(%rsp), %rax movq 0x190(%rax), %rdi callq 0x38c90 movq 0x8(%rsp), %rax movq 0x188(%rax), %rdi callq 0x38c90 movq 0x8(%rsp), %rax movq 0x10(%rsp), %rcx movq %rcx, 0x190(%rax) movq 0x18(%rsp), %rcx movq %rcx, 0x188(%rax) movq 0x8(%rsp), %rcx movsd 0x38(%rsp), %xmm0 movq 0x188(%rcx), %rax movslq 0x180(%rcx), %rcx movsd %xmm0, (%rax,%rcx,8) cmpq $0x0, 0x30(%rsp) je 0x44679 movq 0x30(%rsp), %rdi callq 0x20d0 addq $0x1, %rax movl %eax, 0x2c(%rsp) movslq 0x2c(%rsp), %rdi callq 0x359d0 movq 0x8(%rsp), %rcx movq %rax, %rsi movq 0x190(%rcx), %rax movslq 0x180(%rcx), %rdx movq %rsi, (%rax,%rdx,8) movq 0x190(%rcx), %rax movslq 0x180(%rcx), %rcx movq (%rax,%rcx,8), %rdi movq 0x30(%rsp), %rsi callq 0x2250 jmp 0x44694 movq 0x8(%rsp), %rcx movq 0x190(%rcx), %rax movslq 0x180(%rcx), %rcx movq $0x0, (%rax,%rcx,8) movq 0x8(%rsp), %rax movl 0x180(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x180(%rax) addq $0x48, %rsp retq nopl (%rax)
_ZN12LefDefParser7lefiPin14addAntennaSizeEdPKc: sub rsp, 48h mov [rsp+48h+var_8], rdi movsd [rsp+48h+var_10], xmm0 mov [rsp+48h+var_18], rsi mov rcx, [rsp+48h+var_8] mov [rsp+48h+var_40], rcx mov eax, [rcx+180h] cmp eax, [rcx+184h] jnz loc_445FF mov rax, [rsp+48h+var_40] mov ecx, [rax+180h] mov [rsp+48h+var_28], ecx cmp dword ptr [rax+184h], 0 jnz short loc_44521 mov rax, [rsp+48h+var_40] mov dword ptr [rax+184h], 2 mov [rsp+48h+var_24], 2 jmp short loc_44538 loc_44521: mov rcx, [rsp+48h+var_40] mov eax, [rcx+184h] shl eax, 1 mov [rcx+184h], eax mov [rsp+48h+var_24], eax loc_44538: movsxd rdi, [rsp+48h+var_24] shl rdi, 3; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov [rsp+48h+var_30], rax movsxd rdi, [rsp+48h+var_24] shl rdi, 3; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov [rsp+48h+var_38], rax mov [rsp+48h+var_20], 0 loc_44566: mov eax, [rsp+48h+var_20] cmp eax, [rsp+48h+var_28] jge short loc_445C0 mov rax, [rsp+48h+var_40] mov rcx, [rax+190h] movsxd rdx, [rsp+48h+var_20] mov rsi, [rcx+rdx*8]; unsigned __int64 mov rcx, [rsp+48h+var_38] movsxd rdx, [rsp+48h+var_20] mov [rcx+rdx*8], rsi mov rax, [rax+188h] movsxd rcx, [rsp+48h+var_20] movsd xmm0, qword ptr [rax+rcx*8] mov rax, [rsp+48h+var_30] movsxd rcx, [rsp+48h+var_20] movsd qword ptr [rax+rcx*8], xmm0 mov eax, [rsp+48h+var_20] add eax, 1 mov [rsp+48h+var_20], eax jmp short loc_44566 loc_445C0: mov rax, [rsp+48h+var_40] mov rdi, [rax+190h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rax, [rsp+48h+var_40] mov rdi, [rax+188h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rax, [rsp+48h+var_40] mov rcx, [rsp+48h+var_38] mov [rax+190h], rcx mov rcx, [rsp+48h+var_30] mov [rax+188h], rcx loc_445FF: mov rcx, [rsp+48h+var_40] movsd xmm0, [rsp+48h+var_10] mov rax, [rcx+188h] movsxd rcx, dword ptr [rcx+180h] movsd qword ptr [rax+rcx*8], xmm0 cmp [rsp+48h+var_18], 0 jz short loc_44679 mov rdi, [rsp+48h+var_18] call _strlen add rax, 1 mov [rsp+48h+var_1C], eax movsxd rdi, [rsp+48h+var_1C]; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov rcx, [rsp+48h+var_40] mov rsi, rax mov rax, [rcx+190h] movsxd rdx, dword ptr [rcx+180h] mov [rax+rdx*8], rsi mov rax, [rcx+190h] movsxd rcx, dword ptr [rcx+180h] mov rdi, [rax+rcx*8] mov rsi, [rsp+48h+var_18] call _strcpy jmp short loc_44694 loc_44679: mov rcx, [rsp+48h+var_40] mov rax, [rcx+190h] movsxd rcx, dword ptr [rcx+180h] mov qword ptr [rax+rcx*8], 0 loc_44694: mov rax, [rsp+48h+var_40] mov ecx, [rax+180h] add ecx, 1 mov [rax+180h], ecx add rsp, 48h retn
LefDefParser::lefiPin * LefDefParser::lefiPin::addAntennaSize( LefDefParser::lefiPin *this, double a2, char *a3) { int v3; // eax LefDefParser::lefiPin *result; // rax long long v5; // [rsp+10h] [rbp-38h] long long v6; // [rsp+18h] [rbp-30h] int v7; // [rsp+20h] [rbp-28h] int v8; // [rsp+24h] [rbp-24h] int i; // [rsp+28h] [rbp-20h] int v10; // [rsp+2Ch] [rbp-1Ch] char *v11; // [rsp+30h] [rbp-18h] v11 = a3; if ( *((_DWORD *)this + 96) == *((_DWORD *)this + 97) ) { v7 = *((_DWORD *)this + 96); if ( *((_DWORD *)this + 97) ) { v3 = 2 * *((_DWORD *)this + 97); *((_DWORD *)this + 97) = v3; v8 = v3; } else { *((_DWORD *)this + 97) = 2; v8 = 2; } v6 = LefDefParser::lefMalloc((LefDefParser *)(8LL * v8)); v5 = LefDefParser::lefMalloc((LefDefParser *)(8LL * v8)); for ( i = 0; i < v7; ++i ) { a3 = *(char **)(*((_QWORD *)this + 50) + 8LL * i); *(_QWORD *)(v5 + 8LL * i) = a3; *(_QWORD *)(v6 + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 49) + 8LL * i); } LefDefParser::lefFree(*((LefDefParser **)this + 50), a3); LefDefParser::lefFree(*((LefDefParser **)this + 49), a3); *((_QWORD *)this + 50) = v5; *((_QWORD *)this + 49) = v6; } *(double *)(*((_QWORD *)this + 49) + 8LL * *((int *)this + 96)) = a2; if ( v11 ) { v10 = strlen(v11) + 1; *(_QWORD *)(*((_QWORD *)this + 50) + 8LL * *((int *)this + 96)) = LefDefParser::lefMalloc((LefDefParser *)v10); strcpy(*(_QWORD *)(*((_QWORD *)this + 50) + 8LL * *((int *)this + 96)), v11); } else { *(_QWORD *)(*((_QWORD *)this + 50) + 8LL * *((int *)this + 96)) = 0LL; } result = this; ++*((_DWORD *)this + 96); return result; }
addAntennaSize: SUB RSP,0x48 MOV qword ptr [RSP + 0x40],RDI MOVSD qword ptr [RSP + 0x38],XMM0 MOV qword ptr [RSP + 0x30],RSI MOV RCX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x8],RCX MOV EAX,dword ptr [RCX + 0x180] CMP EAX,dword ptr [RCX + 0x184] JNZ 0x001445ff MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RAX + 0x180] MOV dword ptr [RSP + 0x20],ECX CMP dword ptr [RAX + 0x184],0x0 JNZ 0x00144521 MOV RAX,qword ptr [RSP + 0x8] MOV dword ptr [RAX + 0x184],0x2 MOV dword ptr [RSP + 0x24],0x2 JMP 0x00144538 LAB_00144521: MOV RCX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RCX + 0x184] SHL EAX,0x1 MOV dword ptr [RCX + 0x184],EAX MOV dword ptr [RSP + 0x24],EAX LAB_00144538: MOVSXD RDI,dword ptr [RSP + 0x24] SHL RDI,0x3 CALL 0x001359d0 MOV qword ptr [RSP + 0x18],RAX MOVSXD RDI,dword ptr [RSP + 0x24] SHL RDI,0x3 CALL 0x001359d0 MOV qword ptr [RSP + 0x10],RAX MOV dword ptr [RSP + 0x28],0x0 LAB_00144566: MOV EAX,dword ptr [RSP + 0x28] CMP EAX,dword ptr [RSP + 0x20] JGE 0x001445c0 MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RAX + 0x190] MOVSXD RDX,dword ptr [RSP + 0x28] MOV RSI,qword ptr [RCX + RDX*0x8] MOV RCX,qword ptr [RSP + 0x10] MOVSXD RDX,dword ptr [RSP + 0x28] MOV qword ptr [RCX + RDX*0x8],RSI MOV RAX,qword ptr [RAX + 0x188] MOVSXD RCX,dword ptr [RSP + 0x28] MOVSD XMM0,qword ptr [RAX + RCX*0x8] MOV RAX,qword ptr [RSP + 0x18] MOVSXD RCX,dword ptr [RSP + 0x28] MOVSD qword ptr [RAX + RCX*0x8],XMM0 MOV EAX,dword ptr [RSP + 0x28] ADD EAX,0x1 MOV dword ptr [RSP + 0x28],EAX JMP 0x00144566 LAB_001445c0: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x190] CALL 0x00138c90 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x188] CALL 0x00138c90 MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x190],RCX MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x188],RCX LAB_001445ff: MOV RCX,qword ptr [RSP + 0x8] MOVSD XMM0,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RCX + 0x188] MOVSXD RCX,dword ptr [RCX + 0x180] MOVSD qword ptr [RAX + RCX*0x8],XMM0 CMP qword ptr [RSP + 0x30],0x0 JZ 0x00144679 MOV RDI,qword ptr [RSP + 0x30] CALL 0x001020d0 ADD RAX,0x1 MOV dword ptr [RSP + 0x2c],EAX MOVSXD RDI,dword ptr [RSP + 0x2c] CALL 0x001359d0 MOV RCX,qword ptr [RSP + 0x8] MOV RSI,RAX MOV RAX,qword ptr [RCX + 0x190] MOVSXD RDX,dword ptr [RCX + 0x180] MOV qword ptr [RAX + RDX*0x8],RSI MOV RAX,qword ptr [RCX + 0x190] MOVSXD RCX,dword ptr [RCX + 0x180] MOV RDI,qword ptr [RAX + RCX*0x8] MOV RSI,qword ptr [RSP + 0x30] CALL 0x00102250 JMP 0x00144694 LAB_00144679: MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RCX + 0x190] MOVSXD RCX,dword ptr [RCX + 0x180] MOV qword ptr [RAX + RCX*0x8],0x0 LAB_00144694: MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RAX + 0x180] ADD ECX,0x1 MOV dword ptr [RAX + 0x180],ECX ADD RSP,0x48 RET
/* LefDefParser::lefiPin::addAntennaSize(double, char const*) */ void __thiscall LefDefParser::lefiPin::addAntennaSize(lefiPin *this,double param_1,char *param_2) { int iVar1; long lVar2; long lVar3; size_t sVar4; int8 uVar5; int local_24; int local_20; if (*(int *)(this + 0x180) == *(int *)(this + 0x184)) { iVar1 = *(int *)(this + 0x180); if (*(int *)(this + 0x184) == 0) { *(int4 *)(this + 0x184) = 2; local_24 = 2; } else { local_24 = *(int *)(this + 0x184) << 1; *(int *)(this + 0x184) = local_24; } lVar2 = lefMalloc((long)local_24 << 3); lVar3 = lefMalloc((long)local_24 << 3); for (local_20 = 0; local_20 < iVar1; local_20 = local_20 + 1) { *(int8 *)(lVar3 + (long)local_20 * 8) = *(int8 *)(*(long *)(this + 400) + (long)local_20 * 8); *(int8 *)(lVar2 + (long)local_20 * 8) = *(int8 *)(*(long *)(this + 0x188) + (long)local_20 * 8); } lefFree(*(void **)(this + 400)); lefFree(*(void **)(this + 0x188)); *(long *)(this + 400) = lVar3; *(long *)(this + 0x188) = lVar2; } *(double *)(*(long *)(this + 0x188) + (long)*(int *)(this + 0x180) * 8) = param_1; if (param_2 == (char *)0x0) { *(int8 *)(*(long *)(this + 400) + (long)*(int *)(this + 0x180) * 8) = 0; } else { sVar4 = strlen(param_2); uVar5 = lefMalloc((long)((int)sVar4 + 1)); *(int8 *)(*(long *)(this + 400) + (long)*(int *)(this + 0x180) * 8) = uVar5; strcpy(*(char **)(*(long *)(this + 400) + (long)*(int *)(this + 0x180) * 8),param_2); } *(int *)(this + 0x180) = *(int *)(this + 0x180) + 1; return; }
29,335
get_index_pos
bluesky950520[P]quickjs/libunicode.c
static int get_index_pos(uint32_t *pcode, uint32_t c, const uint8_t *index_table, int index_table_len) { uint32_t code, v; int idx_min, idx_max, idx; idx_min = 0; v = get_le24(index_table); code = v & ((1 << 21) - 1); if (c < code) { *pcode = 0; return 0; } idx_max = index_table_len - 1; code = get_le24(index_table + idx_max * 3); if (c >= code) return -1; /* invariant: tab[idx_min] <= c < tab2[idx_max] */ while ((idx_max - idx_min) > 1) { idx = (idx_max + idx_min) / 2; v = get_le24(index_table + idx * 3); code = v & ((1 << 21) - 1); if (c < code) { idx_max = idx; } else { idx_min = idx; } } v = get_le24(index_table + idx_min * 3); *pcode = v & ((1 << 21) - 1); return (idx_min + 1) * UNICODE_INDEX_BLOCK_LEN + (v >> 21); }
O2
c
get_index_pos: movq %rdx, %r8 movzwl (%rdx), %eax movzbl 0x2(%rdx), %edx andl $0x1f, %edx shll $0x10, %edx orl %eax, %edx cmpl %esi, %edx jbe 0x84971 andl $0x0, (%rdi) xorl %eax, %eax retq decl %ecx leaq (%rcx,%rcx,2), %rax movzwl (%r8,%rax), %edx movzbl 0x2(%r8,%rax), %eax shll $0x10, %eax orl %edx, %eax cmpl %esi, %eax jbe 0x849f5 xorl %r9d, %r9d pushq $0x2 popq %r10 movl %ecx, %eax subl %r9d, %eax cmpl $0x2, %eax jl 0x849c9 leal (%rcx,%r9), %eax cltd idivl %r10d cltq leaq (%rax,%rax,2), %rdx movzwl (%r8,%rdx), %r11d movzbl 0x2(%r8,%rdx), %edx andl $0x1f, %edx shll $0x10, %edx orl %r11d, %edx cmpl %esi, %edx cmovbel %eax, %r9d cmoval %eax, %ecx jmp 0x84992 movslq %r9d, %rax leaq (%rax,%rax,2), %rax movzwl (%r8,%rax), %ecx movzbl 0x2(%r8,%rax), %eax movl %eax, %edx andl $0x1f, %edx shll $0x10, %edx orl %ecx, %edx movl %edx, (%rdi) shll $0x5, %r9d shrl $0x5, %eax addl %r9d, %eax addl $0x20, %eax retq pushq $-0x1 popq %rax retq
get_index_pos: mov r8, rdx movzx eax, word ptr [rdx] movzx edx, byte ptr [rdx+2] and edx, 1Fh shl edx, 10h or edx, eax cmp edx, esi jbe short loc_84971 and dword ptr [rdi], 0 xor eax, eax retn loc_84971: dec ecx lea rax, [rcx+rcx*2] movzx edx, word ptr [r8+rax] movzx eax, byte ptr [r8+rax+2] shl eax, 10h or eax, edx cmp eax, esi jbe short loc_849F5 xor r9d, r9d push 2 pop r10 loc_84992: mov eax, ecx sub eax, r9d cmp eax, 2 jl short loc_849C9 lea eax, [rcx+r9] cdq idiv r10d cdqe lea rdx, [rax+rax*2] movzx r11d, word ptr [r8+rdx] movzx edx, byte ptr [r8+rdx+2] and edx, 1Fh shl edx, 10h or edx, r11d cmp edx, esi cmovbe r9d, eax cmova ecx, eax jmp short loc_84992 loc_849C9: movsxd rax, r9d lea rax, [rax+rax*2] movzx ecx, word ptr [r8+rax] movzx eax, byte ptr [r8+rax+2] mov edx, eax and edx, 1Fh shl edx, 10h or edx, ecx mov [rdi], edx shl r9d, 5 shr eax, 5 add eax, r9d add eax, 20h ; ' ' retn loc_849F5: push 0FFFFFFFFFFFFFFFFh pop rax retn
long long get_index_pos(_DWORD *a1, unsigned int a2, unsigned __int16 *a3, int a4) { long long v5; // rcx int v6; // r9d long long v7; // rax int v8; // ecx if ( (*a3 | ((unsigned __int8)(a3[1] & 0x1F) << 16)) <= a2 ) { v5 = (unsigned int)(a4 - 1); if ( (*(unsigned __int16 *)((char *)a3 + 3 * v5) | (*((unsigned __int8 *)a3 + 3 * v5 + 2) << 16)) <= a2 ) { return -1LL; } else { v6 = 0; while ( (int)v5 - v6 >= 2 ) { if ( (*(unsigned __int16 *)((char *)a3 + 3 * (((int)v5 + v6) / 2)) | ((unsigned __int8)(*((_BYTE *)a3 + 3 * (((int)v5 + v6) / 2) + 2) & 0x1F) << 16)) > a2 ) LODWORD(v5) = ((int)v5 + v6) / 2; else v6 = ((int)v5 + v6) / 2; } v7 = 3LL * v6; v8 = *(unsigned __int16 *)((char *)a3 + v7); LODWORD(v7) = *((unsigned __int8 *)a3 + v7 + 2); *a1 = v8 | ((v7 & 0x1F) << 16); return 32 * v6 + ((unsigned int)v7 >> 5) + 32; } } else { *a1 = 0; return 0LL; } }
get_index_pos: MOV R8,RDX MOVZX EAX,word ptr [RDX] MOVZX EDX,byte ptr [RDX + 0x2] AND EDX,0x1f SHL EDX,0x10 OR EDX,EAX CMP EDX,ESI JBE 0x00184971 AND dword ptr [RDI],0x0 XOR EAX,EAX RET LAB_00184971: DEC ECX LEA RAX,[RCX + RCX*0x2] MOVZX EDX,word ptr [R8 + RAX*0x1] MOVZX EAX,byte ptr [R8 + RAX*0x1 + 0x2] SHL EAX,0x10 OR EAX,EDX CMP EAX,ESI JBE 0x001849f5 XOR R9D,R9D PUSH 0x2 POP R10 LAB_00184992: MOV EAX,ECX SUB EAX,R9D CMP EAX,0x2 JL 0x001849c9 LEA EAX,[RCX + R9*0x1] CDQ IDIV R10D CDQE LEA RDX,[RAX + RAX*0x2] MOVZX R11D,word ptr [R8 + RDX*0x1] MOVZX EDX,byte ptr [R8 + RDX*0x1 + 0x2] AND EDX,0x1f SHL EDX,0x10 OR EDX,R11D CMP EDX,ESI CMOVBE R9D,EAX CMOVA ECX,EAX JMP 0x00184992 LAB_001849c9: MOVSXD RAX,R9D LEA RAX,[RAX + RAX*0x2] MOVZX ECX,word ptr [R8 + RAX*0x1] MOVZX EAX,byte ptr [R8 + RAX*0x1 + 0x2] MOV EDX,EAX AND EDX,0x1f SHL EDX,0x10 OR EDX,ECX MOV dword ptr [RDI],EDX SHL R9D,0x5 SHR EAX,0x5 ADD EAX,R9D ADD EAX,0x20 RET LAB_001849f5: PUSH -0x1 POP RAX RET
ulong get_index_pos(uint *param_1,uint param_2,ushort *param_3,int param_4) { byte bVar1; ulong uVar2; long lVar3; int iVar4; ulong uVar5; int iVar6; if (param_2 < (((byte)param_3[1] & 0x1f) << 0x10 | (uint)*param_3)) { *param_1 = 0; return 0; } uVar5 = (ulong)(param_4 - 1); if (param_2 < CONCAT12(*(int1 *)((long)param_3 + uVar5 * 3 + 2), *(int2 *)((long)param_3 + uVar5 * 3))) { iVar4 = 0; while (iVar6 = iVar4, 1 < (int)uVar5 - iVar6) { uVar2 = (long)((int)uVar5 + iVar6) / 2; iVar4 = (int)uVar2; lVar3 = (long)iVar4 * 3; if (param_2 < ((*(byte *)((long)param_3 + lVar3 + 2) & 0x1f) << 0x10 | (uint)*(ushort *)((long)param_3 + lVar3))) { uVar5 = uVar2 & 0xffffffff; iVar4 = iVar6; } } bVar1 = *(byte *)((long)param_3 + (long)iVar6 * 3 + 2); *param_1 = (bVar1 & 0x1f) << 0x10 | (uint)*(ushort *)((long)param_3 + (long)iVar6 * 3); return (ulong)((uint)(bVar1 >> 5) + iVar6 * 0x20 + 0x20); } return 0xffffffffffffffff; }
29,336
CLI::Error::Error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, CLI::ExitCodes)
MikePodsytnik[P]TCRtrie/build_O2/_deps/cli11-src/include/CLI/Error.hpp
Error(std::string name, std::string msg, ExitCodes exit_code) : Error(name, msg, static_cast<int>(exit_code)) {}
O2
cpp
CLI::Error::Error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, CLI::ExitCodes): pushq %r15 pushq %r14 pushq %rbx subq $0x40, %rsp movl %ecx, %ebx movq %rdx, %r15 movq %rdi, %r14 leaq 0x20(%rsp), %rdi callq 0x75e0 movq %rsp, %rdi movq %r15, %rsi callq 0x75e0 leaq 0x20(%rsp), %rsi movq %rsp, %rdx movq %r14, %rdi movl %ebx, %ecx callq 0x107e2 movq %rsp, %rdi callq 0x7860 leaq 0x20(%rsp), %rdi callq 0x7860 addq $0x40, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %rdi callq 0x7860 jmp 0x107ba movq %rax, %rbx leaq 0x20(%rsp), %rdi callq 0x7860 movq %rbx, %rdi callq 0x7770
_ZN3CLI5ErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_NS_9ExitCodesE: push r15 push r14 push rbx sub rsp, 40h mov ebx, ecx mov r15, rdx mov r14, rdi lea rdi, [rsp+58h+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) mov rdi, rsp mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) lea rsi, [rsp+58h+var_38] mov rdx, rsp mov rdi, r14 mov ecx, ebx call _ZN3CLI5ErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_i; CLI::Error::Error(std::string,std::string,int) mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+58h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() add rsp, 40h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_107BA mov rbx, rax loc_107BA: lea rdi, [rsp+arg_18]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
void CLI::Error::Error(long long a1, long long a2, long long a3, unsigned int a4) { _BYTE v5[32]; // [rsp+0h] [rbp-58h] BYREF _BYTE v6[56]; // [rsp+20h] [rbp-38h] BYREF std::string::basic_string(v6); std::string::basic_string(v5); CLI::Error::Error(a1, v6, v5, a4); std::string::~string(v5); std::string::~string(v6); }
Error: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x40 MOV EBX,ECX MOV R15,RDX MOV R14,RDI LEA RDI,[RSP + 0x20] CALL 0x001075e0 LAB_00110771: MOV RDI,RSP MOV RSI,R15 CALL 0x001075e0 LAB_0011077c: LEA RSI,[RSP + 0x20] MOV RDX,RSP MOV RDI,R14 MOV ECX,EBX CALL 0x001107e2 LAB_0011078e: MOV RDI,RSP CALL 0x00107860 LEA RDI,[RSP + 0x20] CALL 0x00107860 ADD RSP,0x40 POP RBX POP R14 POP R15 RET
/* CLI::Error::Error(std::__cxx11::string, std::__cxx11::string, CLI::ExitCodes) */ void __thiscall CLI::Error::Error(Error *this,string *param_2,string *param_3,int4 param_4) { string asStack_58 [32]; string local_38 [32]; std::__cxx11::string::string(local_38,param_2); /* try { // try from 00110771 to 0011077b has its CatchHandler @ 001107b7 */ std::__cxx11::string::string(asStack_58,param_3); /* try { // try from 0011077c to 0011078d has its CatchHandler @ 001107aa */ Error(this,local_38,asStack_58,param_4); std::__cxx11::string::~string(asStack_58); std::__cxx11::string::~string(local_38); return; }
29,337
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/quadRefinement.cpp
void QuadRefinement::populateEdgeFaceRelation() { // // Notes on allocating/initializing the edge-face counts/offsets vector: // // Be aware of scheme-specific decisions here, e.g.: // - inspection of sparse child faces for edges from faces // - no guaranteed "neighborhood" around Bilinear verts from verts // // If uniform subdivision, face count of a child edge will be: // - 2 for new interior edges from parent faces // == 2 * number of parent face verts for both quad- and tri-split // - same as parent edge for edges from parent edges // If sparse subdivision, face count of a child edge will be: // - 1 or 2 for new interior edge depending on child faces in parent face // - requires inspection if not all child faces present // ? same as parent edge for edges from parent edges // - given end vertex must have its full set of child faces // - not for Bilinear -- only if neighborhood is non-zero // - could at least make a quick traversal of components and use the above // two points to get much closer estimate than what is used for uniform // int childEdgeFaceIndexSizeEstimate = (int)_parent->_faceVertIndices.size() * 2 + (int)_parent->_edgeFaceIndices.size() * 2; _child->_edgeFaceCountsAndOffsets.resize(_child->getNumEdges() * 2); _child->_edgeFaceIndices.resize( childEdgeFaceIndexSizeEstimate); _child->_edgeFaceLocalIndices.resize(childEdgeFaceIndexSizeEstimate); // Update _maxEdgeFaces from the parent level before calling the // populateEdgeFacesFromParent methods below, as these may further // update _maxEdgeFaces. _child->_maxEdgeFaces = _parent->_maxEdgeFaces; populateEdgeFacesFromParentFaces(); populateEdgeFacesFromParentEdges(); // Revise the over-allocated estimate based on what is used (as indicated in the // count/offset for the last vertex) and trim the index vector accordingly: childEdgeFaceIndexSizeEstimate = _child->getNumEdgeFaces(_child->getNumEdges()-1) + _child->getOffsetOfEdgeFaces(_child->getNumEdges()-1); _child->_edgeFaceIndices.resize( childEdgeFaceIndexSizeEstimate); _child->_edgeFaceLocalIndices.resize(childEdgeFaceIndexSizeEstimate); }
O0
cpp
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation(): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq 0x8(%rax), %rdi addq $0x30, %rdi callq 0xd7ae0 movq %rax, %rcx movq -0x18(%rbp), %rax shll %ecx movl %ecx, -0x3c(%rbp) movq 0x8(%rax), %rdi addq $0xa8, %rdi callq 0xd7ae0 movl -0x3c(%rbp), %ecx movq %rax, %rdx movq -0x18(%rbp), %rax shll %edx addl %edx, %ecx movl %ecx, -0xc(%rbp) movq 0x10(%rax), %rcx addq $0x90, %rcx movq %rcx, -0x38(%rbp) movq 0x10(%rax), %rdi callq 0xca130 movq -0x38(%rbp), %rdi shll %eax movslq %eax, %rsi callq 0xc9aa0 movq -0x18(%rbp), %rax movq 0x10(%rax), %rdi addq $0xa8, %rdi movslq -0xc(%rbp), %rsi callq 0xc9aa0 movq -0x18(%rbp), %rax movq 0x10(%rax), %rdi addq $0xc0, %rdi movslq -0xc(%rbp), %rsi callq 0xc7e90 movq -0x18(%rbp), %rdi movq 0x8(%rdi), %rax movl 0x10(%rax), %ecx movq 0x10(%rdi), %rax movl %ecx, 0x10(%rax) callq 0xd2bc0 movq -0x18(%rbp), %rdi callq 0xd0730 movq -0x18(%rbp), %rax movq 0x10(%rax), %rcx movq %rcx, -0x30(%rbp) movq 0x10(%rax), %rdi callq 0xca130 movq -0x30(%rbp), %rdi movl %eax, %esi subl $0x1, %esi callq 0xd0ea0 movl %eax, %ecx movq -0x18(%rbp), %rax movl %ecx, -0x1c(%rbp) movq 0x10(%rax), %rcx movq %rcx, -0x28(%rbp) movq 0x10(%rax), %rdi callq 0xca130 movq -0x28(%rbp), %rdi movl %eax, %esi subl $0x1, %esi callq 0xca080 movl -0x1c(%rbp), %ecx movl %eax, %edx movq -0x18(%rbp), %rax addl %edx, %ecx movl %ecx, -0xc(%rbp) movq 0x10(%rax), %rdi addq $0xa8, %rdi movslq -0xc(%rbp), %rsi callq 0xc9aa0 movq -0x18(%rbp), %rax movq 0x10(%rax), %rdi addq $0xc0, %rdi movslq -0xc(%rbp), %rsi callq 0xc7e90 addq $0x40, %rsp popq %rbp retq nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement24populateEdgeFaceRelationEv: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_18], rax mov rdi, [rax+8] add rdi, 30h ; '0' call __ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void) mov rcx, rax mov rax, [rbp+var_18] shl ecx, 1 mov [rbp+var_3C], ecx mov rdi, [rax+8] add rdi, 0A8h call __ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void) mov ecx, [rbp+var_3C] mov rdx, rax mov rax, [rbp+var_18] shl edx, 1 add ecx, edx mov [rbp+var_C], ecx mov rcx, [rax+10h] add rcx, 90h mov [rbp+var_38], rcx mov rdi, [rax+10h]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level11getNumEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(void) mov rdi, [rbp+var_38] shl eax, 1 movsxd rsi, eax call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov rax, [rbp+var_18] mov rdi, [rax+10h] add rdi, 0A8h movsxd rsi, [rbp+var_C] call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov rax, [rbp+var_18] mov rdi, [rax+10h] add rdi, 0C0h movsxd rsi, [rbp+var_C] call __ZNSt6vectorItSaItEE6resizeEm; std::vector<ushort>::resize(ulong) mov rdi, [rbp+var_18]; this mov rax, [rdi+8] mov ecx, [rax+10h] mov rax, [rdi+10h] mov [rax+10h], ecx call __ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement32populateEdgeFacesFromParentFacesEv; OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentFaces(void) mov rdi, [rbp+var_18]; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement32populateEdgeFacesFromParentEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentEdges(void) mov rax, [rbp+var_18] mov rcx, [rax+10h] mov [rbp+var_30], rcx mov rdi, [rax+10h]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level11getNumEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(void) mov rdi, [rbp+var_30]; this mov esi, eax sub esi, 1; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getNumEdgeFacesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdgeFaces(int) mov ecx, eax mov rax, [rbp+var_18] mov [rbp+var_1C], ecx mov rcx, [rax+10h] mov [rbp+var_28], rcx mov rdi, [rax+10h]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level11getNumEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(void) mov rdi, [rbp+var_28]; this mov esi, eax sub esi, 1; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level20getOffsetOfEdgeFacesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getOffsetOfEdgeFaces(int) mov ecx, [rbp+var_1C] mov edx, eax mov rax, [rbp+var_18] add ecx, edx mov [rbp+var_C], ecx mov rdi, [rax+10h] add rdi, 0A8h movsxd rsi, [rbp+var_C] call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov rax, [rbp+var_18] mov rdi, [rax+10h] add rdi, 0C0h movsxd rsi, [rbp+var_C] call __ZNSt6vectorItSaItEE6resizeEm; std::vector<ushort>::resize(ulong) add rsp, 40h pop rbp retn
long long OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation( OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement *this) { int NumEdges; // eax int v2; // eax int v3; // eax int v5; // [rsp+4h] [rbp-3Ch] long long v6; // [rsp+8h] [rbp-38h] OpenSubdiv::v3_6_0::Vtr::internal::Level *v7; // [rsp+10h] [rbp-30h] OpenSubdiv::v3_6_0::Vtr::internal::Level *v8; // [rsp+18h] [rbp-28h] int NumEdgeFaces; // [rsp+24h] [rbp-1Ch] int v10; // [rsp+34h] [rbp-Ch] int v11; // [rsp+34h] [rbp-Ch] v5 = 2 * std::vector<int>::size(*((_QWORD *)this + 1) + 48LL); v10 = 2 * std::vector<int>::size(*((_QWORD *)this + 1) + 168LL) + v5; v6 = *((_QWORD *)this + 2) + 144LL; NumEdges = OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(*((OpenSubdiv::v3_6_0::Vtr::internal::Level **)this + 2)); std::vector<int>::resize(v6, 2 * NumEdges); std::vector<int>::resize(*((_QWORD *)this + 2) + 168LL, v10); std::vector<unsigned short>::resize(*((_QWORD *)this + 2) + 192LL, v10); *(_DWORD *)(*((_QWORD *)this + 2) + 16LL) = *(_DWORD *)(*((_QWORD *)this + 1) + 16LL); OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentFaces(this); OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentEdges(this); v7 = (OpenSubdiv::v3_6_0::Vtr::internal::Level *)*((_QWORD *)this + 2); v2 = OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(v7); NumEdgeFaces = OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdgeFaces(v7, v2 - 1); v8 = (OpenSubdiv::v3_6_0::Vtr::internal::Level *)*((_QWORD *)this + 2); v3 = OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumEdges(v8); v11 = OpenSubdiv::v3_6_0::Vtr::internal::Level::getOffsetOfEdgeFaces(v8, v3 - 1) + NumEdgeFaces; std::vector<int>::resize(*((_QWORD *)this + 2) + 168LL, v11); return std::vector<unsigned short>::resize(*((_QWORD *)this + 2) + 192LL, v11); }
populateEdgeFaceRelation: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RAX + 0x8] ADD RDI,0x30 CALL 0x001d7ae0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x18] SHL ECX,0x1 MOV dword ptr [RBP + -0x3c],ECX MOV RDI,qword ptr [RAX + 0x8] ADD RDI,0xa8 CALL 0x001d7ae0 MOV ECX,dword ptr [RBP + -0x3c] MOV RDX,RAX MOV RAX,qword ptr [RBP + -0x18] SHL EDX,0x1 ADD ECX,EDX MOV dword ptr [RBP + -0xc],ECX MOV RCX,qword ptr [RAX + 0x10] ADD RCX,0x90 MOV qword ptr [RBP + -0x38],RCX MOV RDI,qword ptr [RAX + 0x10] CALL 0x001ca130 MOV RDI,qword ptr [RBP + -0x38] SHL EAX,0x1 MOVSXD RSI,EAX CALL 0x001c9aa0 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x10] ADD RDI,0xa8 MOVSXD RSI,dword ptr [RBP + -0xc] CALL 0x001c9aa0 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x10] ADD RDI,0xc0 MOVSXD RSI,dword ptr [RBP + -0xc] CALL 0x001c7e90 MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RDI + 0x8] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RDI + 0x10] MOV dword ptr [RAX + 0x10],ECX CALL 0x001d2bc0 MOV RDI,qword ptr [RBP + -0x18] CALL 0x001d0730 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x30],RCX MOV RDI,qword ptr [RAX + 0x10] CALL 0x001ca130 MOV RDI,qword ptr [RBP + -0x30] MOV ESI,EAX SUB ESI,0x1 CALL 0x001d0ea0 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x1c],ECX MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x28],RCX MOV RDI,qword ptr [RAX + 0x10] CALL 0x001ca130 MOV RDI,qword ptr [RBP + -0x28] MOV ESI,EAX SUB ESI,0x1 CALL 0x001ca080 MOV ECX,dword ptr [RBP + -0x1c] MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x18] ADD ECX,EDX MOV dword ptr [RBP + -0xc],ECX MOV RDI,qword ptr [RAX + 0x10] ADD RDI,0xa8 MOVSXD RSI,dword ptr [RBP + -0xc] CALL 0x001c9aa0 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x10] ADD RDI,0xc0 MOVSXD RSI,dword ptr [RBP + -0xc] CALL 0x001c7e90 ADD RSP,0x40 POP RBP RET
/* OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation(QuadRefinement *this) { long lVar1; Level *pLVar2; int iVar3; int iVar4; iVar3 = std::vector<int,std::allocator<int>>::size ((vector<int,std::allocator<int>> *)(*(long *)(this + 8) + 0x30)); iVar4 = std::vector<int,std::allocator<int>>::size ((vector<int,std::allocator<int>> *)(*(long *)(this + 8) + 0xa8)); iVar4 = iVar3 * 2 + iVar4 * 2; lVar1 = *(long *)(this + 0x10); iVar3 = Level::getNumEdges(*(Level **)(this + 0x10)); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(lVar1 + 0x90),(long)(iVar3 << 1)); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(*(long *)(this + 0x10) + 0xa8),(long)iVar4); std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *) (*(long *)(this + 0x10) + 0xc0),(long)iVar4); *(int4 *)(*(long *)(this + 0x10) + 0x10) = *(int4 *)(*(long *)(this + 8) + 0x10); populateEdgeFacesFromParentFaces(this); populateEdgeFacesFromParentEdges(this); pLVar2 = *(Level **)(this + 0x10); iVar3 = Level::getNumEdges(*(Level **)(this + 0x10)); iVar3 = Level::getNumEdgeFaces(pLVar2,iVar3 + -1); pLVar2 = *(Level **)(this + 0x10); iVar4 = Level::getNumEdges(*(Level **)(this + 0x10)); iVar4 = Level::getOffsetOfEdgeFaces(pLVar2,iVar4 + -1); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(*(long *)(this + 0x10) + 0xa8), (long)(iVar3 + iVar4)); std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *) (*(long *)(this + 0x10) + 0xc0),(long)(iVar3 + iVar4)); return; }
29,338
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/quadRefinement.cpp
void QuadRefinement::populateEdgeFaceRelation() { // // Notes on allocating/initializing the edge-face counts/offsets vector: // // Be aware of scheme-specific decisions here, e.g.: // - inspection of sparse child faces for edges from faces // - no guaranteed "neighborhood" around Bilinear verts from verts // // If uniform subdivision, face count of a child edge will be: // - 2 for new interior edges from parent faces // == 2 * number of parent face verts for both quad- and tri-split // - same as parent edge for edges from parent edges // If sparse subdivision, face count of a child edge will be: // - 1 or 2 for new interior edge depending on child faces in parent face // - requires inspection if not all child faces present // ? same as parent edge for edges from parent edges // - given end vertex must have its full set of child faces // - not for Bilinear -- only if neighborhood is non-zero // - could at least make a quick traversal of components and use the above // two points to get much closer estimate than what is used for uniform // int childEdgeFaceIndexSizeEstimate = (int)_parent->_faceVertIndices.size() * 2 + (int)_parent->_edgeFaceIndices.size() * 2; _child->_edgeFaceCountsAndOffsets.resize(_child->getNumEdges() * 2); _child->_edgeFaceIndices.resize( childEdgeFaceIndexSizeEstimate); _child->_edgeFaceLocalIndices.resize(childEdgeFaceIndexSizeEstimate); // Update _maxEdgeFaces from the parent level before calling the // populateEdgeFacesFromParent methods below, as these may further // update _maxEdgeFaces. _child->_maxEdgeFaces = _parent->_maxEdgeFaces; populateEdgeFacesFromParentFaces(); populateEdgeFacesFromParentEdges(); // Revise the over-allocated estimate based on what is used (as indicated in the // count/offset for the last vertex) and trim the index vector accordingly: childEdgeFaceIndexSizeEstimate = _child->getNumEdgeFaces(_child->getNumEdges()-1) + _child->getOffsetOfEdgeFaces(_child->getNumEdges()-1); _child->_edgeFaceIndices.resize( childEdgeFaceIndexSizeEstimate); _child->_edgeFaceLocalIndices.resize(childEdgeFaceIndexSizeEstimate); }
O2
cpp
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation(): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x8(%rdi), %rax movq 0x10(%rdi), %rdi movq 0x38(%rax), %rcx movq 0xb0(%rax), %r14 subq 0x30(%rax), %rcx shrq $0x2, %rcx subq 0xa8(%rax), %r14 shrq $0x2, %r14 addl %ecx, %r14d addl %r14d, %r14d movslq 0x4(%rdi), %rsi addq $0x90, %rdi addq %rsi, %rsi callq 0x514b0 movl $0xa8, %r12d movq 0x10(%rbx), %rdi addq %r12, %rdi movslq %r14d, %r15 movq %r15, %rsi callq 0x514b0 movl $0xc0, %r14d movq 0x10(%rbx), %rdi addq %r14, %rdi movq %r15, %rsi callq 0x50b30 movq 0x8(%rbx), %rax movq 0x10(%rbx), %rcx movl 0x10(%rax), %eax movl %eax, 0x10(%rcx) movq %rbx, %rdi callq 0x543e0 movq %rbx, %rdi callq 0x53860 movq 0x10(%rbx), %rdi movl 0x4(%rdi), %eax leal -0x2(,%rax,2), %ecx movslq %ecx, %rcx movq 0x90(%rdi), %rdx movslq (%rdx,%rcx,4), %rcx leal -0x1(,%rax,2), %eax cltq movslq (%rdx,%rax,4), %r15 addq %rcx, %r15 addq %r12, %rdi movq %r15, %rsi callq 0x514b0 addq 0x10(%rbx), %r14 movq %r14, %rdi movq %r15, %rsi addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x50b30
_ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement24populateEdgeFaceRelationEv: push r15 push r14 push r12 push rbx push rax mov rbx, rdi mov rax, [rdi+8] mov rdi, [rdi+10h] mov rcx, [rax+38h] mov r14, [rax+0B0h] sub rcx, [rax+30h] shr rcx, 2 sub r14, [rax+0A8h] shr r14, 2 add r14d, ecx add r14d, r14d movsxd rsi, dword ptr [rdi+4] add rdi, 90h add rsi, rsi call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov r12d, 0A8h mov rdi, [rbx+10h] add rdi, r12 movsxd r15, r14d mov rsi, r15 call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov r14d, 0C0h mov rdi, [rbx+10h] add rdi, r14 mov rsi, r15 call __ZNSt6vectorItSaItEE6resizeEm; std::vector<ushort>::resize(ulong) mov rax, [rbx+8] mov rcx, [rbx+10h] mov eax, [rax+10h] mov [rcx+10h], eax mov rdi, rbx; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement32populateEdgeFacesFromParentFacesEv; OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentFaces(void) mov rdi, rbx; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement32populateEdgeFacesFromParentEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentEdges(void) mov rdi, [rbx+10h] mov eax, [rdi+4] lea ecx, ds:0FFFFFFFFFFFFFFFEh[rax*2] movsxd rcx, ecx mov rdx, [rdi+90h] movsxd rcx, dword ptr [rdx+rcx*4] lea eax, ds:0FFFFFFFFFFFFFFFFh[rax*2] cdqe movsxd r15, dword ptr [rdx+rax*4] add r15, rcx add rdi, r12 mov rsi, r15 call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) add r14, [rbx+10h] mov rdi, r14 mov rsi, r15 add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp __ZNSt6vectorItSaItEE6resizeEm; std::vector<ushort>::resize(ulong)
long long OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation( OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement *this) { int v2; // r14d long long v3; // rdi long long v4; // r15 v2 = 2 * (((*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) - *(_QWORD *)(*((_QWORD *)this + 1) + 48LL)) >> 2) + ((*(_QWORD *)(*((_QWORD *)this + 1) + 176LL) - *(_QWORD *)(*((_QWORD *)this + 1) + 168LL)) >> 2)); std::vector<int>::resize(*((_QWORD *)this + 2) + 144LL, 2LL * *(int *)(*((_QWORD *)this + 2) + 4LL)); std::vector<int>::resize(*((_QWORD *)this + 2) + 168LL, v2); std::vector<unsigned short>::resize(*((_QWORD *)this + 2) + 192LL, v2); *(_DWORD *)(*((_QWORD *)this + 2) + 16LL) = *(_DWORD *)(*((_QWORD *)this + 1) + 16LL); OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentFaces(this); OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentEdges(this); v3 = *((_QWORD *)this + 2); v4 = *(int *)(*(_QWORD *)(v3 + 144) + 4LL * (2 * *(_DWORD *)(v3 + 4) - 2)) + (long long)*(int *)(*(_QWORD *)(v3 + 144) + 4LL * (2 * *(_DWORD *)(v3 + 4) - 1)); std::vector<int>::resize(v3 + 168, v4); return std::vector<unsigned short>::resize(*((_QWORD *)this + 2) + 192LL, v4); }
populateEdgeFaceRelation: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x8] MOV RDI,qword ptr [RDI + 0x10] MOV RCX,qword ptr [RAX + 0x38] MOV R14,qword ptr [RAX + 0xb0] SUB RCX,qword ptr [RAX + 0x30] SHR RCX,0x2 SUB R14,qword ptr [RAX + 0xa8] SHR R14,0x2 ADD R14D,ECX ADD R14D,R14D MOVSXD RSI,dword ptr [RDI + 0x4] ADD RDI,0x90 ADD RSI,RSI CALL 0x001514b0 MOV R12D,0xa8 MOV RDI,qword ptr [RBX + 0x10] ADD RDI,R12 MOVSXD R15,R14D MOV RSI,R15 CALL 0x001514b0 MOV R14D,0xc0 MOV RDI,qword ptr [RBX + 0x10] ADD RDI,R14 MOV RSI,R15 CALL 0x00150b30 MOV RAX,qword ptr [RBX + 0x8] MOV RCX,qword ptr [RBX + 0x10] MOV EAX,dword ptr [RAX + 0x10] MOV dword ptr [RCX + 0x10],EAX MOV RDI,RBX CALL 0x001543e0 MOV RDI,RBX CALL 0x00153860 MOV RDI,qword ptr [RBX + 0x10] MOV EAX,dword ptr [RDI + 0x4] LEA ECX,[-0x2 + RAX*0x2] MOVSXD RCX,ECX MOV RDX,qword ptr [RDI + 0x90] MOVSXD RCX,dword ptr [RDX + RCX*0x4] LEA EAX,[-0x1 + RAX*0x2] CDQE MOVSXD R15,dword ptr [RDX + RAX*0x4] ADD R15,RCX ADD RDI,R12 MOV RSI,R15 CALL 0x001514b0 ADD R14,qword ptr [RBX + 0x10] MOV RDI,R14 MOV RSI,R15 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP 0x00150b30
/* OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation(QuadRefinement *this) { long lVar1; long lVar2; long lVar3; long lVar4; ulong uVar5; lVar1 = *(long *)(this + 8); lVar2 = *(long *)(lVar1 + 0x38); lVar3 = *(long *)(lVar1 + 0xb0); lVar4 = *(long *)(lVar1 + 0x30); lVar1 = *(long *)(lVar1 + 0xa8); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(*(long *)(this + 0x10) + 0x90), (long)*(int *)(*(long *)(this + 0x10) + 4) * 2); uVar5 = (ulong)(((int)((ulong)(lVar3 - lVar1) >> 2) + (int)((ulong)(lVar2 - lVar4) >> 2)) * 2); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(*(long *)(this + 0x10) + 0xa8),uVar5); std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *) (*(long *)(this + 0x10) + 0xc0),uVar5); *(int4 *)(*(long *)(this + 0x10) + 0x10) = *(int4 *)(*(long *)(this + 8) + 0x10); populateEdgeFacesFromParentFaces(this); populateEdgeFacesFromParentEdges(this); lVar1 = *(long *)(this + 0x10); uVar5 = (long)*(int *)(*(long *)(lVar1 + 0x90) + (long)(*(int *)(lVar1 + 4) * 2 + -1) * 4) + (long)*(int *)(*(long *)(lVar1 + 0x90) + (long)(*(int *)(lVar1 + 4) * 2 + -2) * 4); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(lVar1 + 0xa8),uVar5); std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *) (*(long *)(this + 0x10) + 0xc0),uVar5); return; }
29,339
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/quadRefinement.cpp
void QuadRefinement::populateEdgeFaceRelation() { // // Notes on allocating/initializing the edge-face counts/offsets vector: // // Be aware of scheme-specific decisions here, e.g.: // - inspection of sparse child faces for edges from faces // - no guaranteed "neighborhood" around Bilinear verts from verts // // If uniform subdivision, face count of a child edge will be: // - 2 for new interior edges from parent faces // == 2 * number of parent face verts for both quad- and tri-split // - same as parent edge for edges from parent edges // If sparse subdivision, face count of a child edge will be: // - 1 or 2 for new interior edge depending on child faces in parent face // - requires inspection if not all child faces present // ? same as parent edge for edges from parent edges // - given end vertex must have its full set of child faces // - not for Bilinear -- only if neighborhood is non-zero // - could at least make a quick traversal of components and use the above // two points to get much closer estimate than what is used for uniform // int childEdgeFaceIndexSizeEstimate = (int)_parent->_faceVertIndices.size() * 2 + (int)_parent->_edgeFaceIndices.size() * 2; _child->_edgeFaceCountsAndOffsets.resize(_child->getNumEdges() * 2); _child->_edgeFaceIndices.resize( childEdgeFaceIndexSizeEstimate); _child->_edgeFaceLocalIndices.resize(childEdgeFaceIndexSizeEstimate); // Update _maxEdgeFaces from the parent level before calling the // populateEdgeFacesFromParent methods below, as these may further // update _maxEdgeFaces. _child->_maxEdgeFaces = _parent->_maxEdgeFaces; populateEdgeFacesFromParentFaces(); populateEdgeFacesFromParentEdges(); // Revise the over-allocated estimate based on what is used (as indicated in the // count/offset for the last vertex) and trim the index vector accordingly: childEdgeFaceIndexSizeEstimate = _child->getNumEdgeFaces(_child->getNumEdges()-1) + _child->getOffsetOfEdgeFaces(_child->getNumEdges()-1); _child->_edgeFaceIndices.resize( childEdgeFaceIndexSizeEstimate); _child->_edgeFaceLocalIndices.resize(childEdgeFaceIndexSizeEstimate); }
O3
cpp
OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation(): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x8(%rdi), %rax movq 0x10(%rdi), %rdi movq 0x38(%rax), %rcx movq 0xb0(%rax), %r14 subq 0x30(%rax), %rcx shrq $0x2, %rcx subq 0xa8(%rax), %r14 shrq $0x2, %r14 addl %ecx, %r14d addl %r14d, %r14d movslq 0x4(%rdi), %rsi addq $0x90, %rdi addq %rsi, %rsi callq 0x39670 movl $0xa8, %r12d movq 0x10(%rbx), %rdi addq %r12, %rdi movslq %r14d, %r15 movq %r15, %rsi callq 0x39670 movl $0xc0, %r14d movq 0x10(%rbx), %rdi addq %r14, %rdi movq %r15, %rsi callq 0x39150 movq 0x8(%rbx), %rax movq 0x10(%rbx), %rcx movl 0x10(%rax), %eax movl %eax, 0x10(%rcx) movq %rbx, %rdi callq 0x3b340 movq %rbx, %rdi callq 0x3ac20 movq 0x10(%rbx), %rdi movl 0x4(%rdi), %eax leal -0x2(,%rax,2), %ecx movslq %ecx, %rcx movq 0x90(%rdi), %rdx movslq (%rdx,%rcx,4), %rcx leal -0x1(,%rax,2), %eax cltq movslq (%rdx,%rax,4), %r15 addq %rcx, %r15 addq %r12, %rdi movq %r15, %rsi callq 0x39670 addq 0x10(%rbx), %r14 movq %r14, %rdi movq %r15, %rsi addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x39150
_ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement24populateEdgeFaceRelationEv: push r15 push r14 push r12 push rbx push rax mov rbx, rdi mov rax, [rdi+8] mov rdi, [rdi+10h] mov rcx, [rax+38h] mov r14, [rax+0B0h] sub rcx, [rax+30h] shr rcx, 2 sub r14, [rax+0A8h] shr r14, 2 add r14d, ecx add r14d, r14d movsxd rsi, dword ptr [rdi+4] add rdi, 90h add rsi, rsi call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov r12d, 0A8h mov rdi, [rbx+10h] add rdi, r12 movsxd r15, r14d mov rsi, r15 call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov r14d, 0C0h mov rdi, [rbx+10h] add rdi, r14 mov rsi, r15 call __ZNSt6vectorItSaItEE6resizeEm; std::vector<ushort>::resize(ulong) mov rax, [rbx+8] mov rcx, [rbx+10h] mov eax, [rax+10h] mov [rcx+10h], eax mov rdi, rbx; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement32populateEdgeFacesFromParentFacesEv; OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentFaces(void) mov rdi, rbx; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal14QuadRefinement32populateEdgeFacesFromParentEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentEdges(void) mov rdi, [rbx+10h] mov eax, [rdi+4] lea ecx, ds:0FFFFFFFFFFFFFFFEh[rax*2] movsxd rcx, ecx mov rdx, [rdi+90h] movsxd rcx, dword ptr [rdx+rcx*4] lea eax, ds:0FFFFFFFFFFFFFFFFh[rax*2] cdqe movsxd r15, dword ptr [rdx+rax*4] add r15, rcx add rdi, r12 mov rsi, r15 call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) add r14, [rbx+10h] mov rdi, r14 mov rsi, r15 add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp __ZNSt6vectorItSaItEE6resizeEm; std::vector<ushort>::resize(ulong)
long long OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation( OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement *this) { int v2; // r14d long long v3; // rdi long long v4; // r15 v2 = 2 * (((*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) - *(_QWORD *)(*((_QWORD *)this + 1) + 48LL)) >> 2) + ((*(_QWORD *)(*((_QWORD *)this + 1) + 176LL) - *(_QWORD *)(*((_QWORD *)this + 1) + 168LL)) >> 2)); std::vector<int>::resize(*((_QWORD *)this + 2) + 144LL, 2LL * *(int *)(*((_QWORD *)this + 2) + 4LL)); std::vector<int>::resize(*((_QWORD *)this + 2) + 168LL, v2); std::vector<unsigned short>::resize(*((_QWORD *)this + 2) + 192LL, v2); *(_DWORD *)(*((_QWORD *)this + 2) + 16LL) = *(_DWORD *)(*((_QWORD *)this + 1) + 16LL); OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentFaces(this); OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFacesFromParentEdges(this); v3 = *((_QWORD *)this + 2); v4 = *(int *)(*(_QWORD *)(v3 + 144) + 4LL * (2 * *(_DWORD *)(v3 + 4) - 2)) + (long long)*(int *)(*(_QWORD *)(v3 + 144) + 4LL * (2 * *(_DWORD *)(v3 + 4) - 1)); std::vector<int>::resize(v3 + 168, v4); return std::vector<unsigned short>::resize(*((_QWORD *)this + 2) + 192LL, v4); }
populateEdgeFaceRelation: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x8] MOV RDI,qword ptr [RDI + 0x10] MOV RCX,qword ptr [RAX + 0x38] MOV R14,qword ptr [RAX + 0xb0] SUB RCX,qword ptr [RAX + 0x30] SHR RCX,0x2 SUB R14,qword ptr [RAX + 0xa8] SHR R14,0x2 ADD R14D,ECX ADD R14D,R14D MOVSXD RSI,dword ptr [RDI + 0x4] ADD RDI,0x90 ADD RSI,RSI CALL 0x00139670 MOV R12D,0xa8 MOV RDI,qword ptr [RBX + 0x10] ADD RDI,R12 MOVSXD R15,R14D MOV RSI,R15 CALL 0x00139670 MOV R14D,0xc0 MOV RDI,qword ptr [RBX + 0x10] ADD RDI,R14 MOV RSI,R15 CALL 0x00139150 MOV RAX,qword ptr [RBX + 0x8] MOV RCX,qword ptr [RBX + 0x10] MOV EAX,dword ptr [RAX + 0x10] MOV dword ptr [RCX + 0x10],EAX MOV RDI,RBX CALL 0x0013b340 MOV RDI,RBX CALL 0x0013ac20 MOV RDI,qword ptr [RBX + 0x10] MOV EAX,dword ptr [RDI + 0x4] LEA ECX,[-0x2 + RAX*0x2] MOVSXD RCX,ECX MOV RDX,qword ptr [RDI + 0x90] MOVSXD RCX,dword ptr [RDX + RCX*0x4] LEA EAX,[-0x1 + RAX*0x2] CDQE MOVSXD R15,dword ptr [RDX + RAX*0x4] ADD R15,RCX ADD RDI,R12 MOV RSI,R15 CALL 0x00139670 ADD R14,qword ptr [RBX + 0x10] MOV RDI,R14 MOV RSI,R15 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP 0x00139150
/* OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::QuadRefinement::populateEdgeFaceRelation(QuadRefinement *this) { long lVar1; long lVar2; long lVar3; long lVar4; ulong uVar5; lVar1 = *(long *)(this + 8); lVar2 = *(long *)(lVar1 + 0x38); lVar3 = *(long *)(lVar1 + 0xb0); lVar4 = *(long *)(lVar1 + 0x30); lVar1 = *(long *)(lVar1 + 0xa8); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(*(long *)(this + 0x10) + 0x90), (long)*(int *)(*(long *)(this + 0x10) + 4) * 2); uVar5 = (ulong)(((int)((ulong)(lVar3 - lVar1) >> 2) + (int)((ulong)(lVar2 - lVar4) >> 2)) * 2); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(*(long *)(this + 0x10) + 0xa8),uVar5); std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *) (*(long *)(this + 0x10) + 0xc0),uVar5); *(int4 *)(*(long *)(this + 0x10) + 0x10) = *(int4 *)(*(long *)(this + 8) + 0x10); populateEdgeFacesFromParentFaces(this); populateEdgeFacesFromParentEdges(this); lVar1 = *(long *)(this + 0x10); uVar5 = (long)*(int *)(*(long *)(lVar1 + 0x90) + (long)(*(int *)(lVar1 + 4) * 2 + -1) * 4) + (long)*(int *)(*(long *)(lVar1 + 0x90) + (long)(*(int *)(lVar1 + 4) * 2 + -2) * 4); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(lVar1 + 0xa8),uVar5); std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *) (*(long *)(this + 0x10) + 0xc0),uVar5); return; }
29,340
free_bytecode_atoms
bluesky950520[P]quickjs/quickjs.c
static void free_bytecode_atoms(JSRuntime *rt, const uint8_t *bc_buf, int bc_len, BOOL use_short_opcodes) { int pos, len, op; JSAtom atom; const JSOpCode *oi; pos = 0; while (pos < bc_len) { op = bc_buf[pos]; if (use_short_opcodes) oi = &short_opcode_info(op); else oi = &opcode_info[op]; len = oi->size; switch(oi->fmt) { case OP_FMT_atom: case OP_FMT_atom_u8: case OP_FMT_atom_u16: case OP_FMT_atom_label_u8: case OP_FMT_atom_label_u16: atom = get_u32(bc_buf + pos + 1); JS_FreeAtomRT(rt, atom); break; default: break; } pos += len; } }
O0
c
free_bytecode_atoms: subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movl %edx, 0x24(%rsp) movl %ecx, 0x20(%rsp) movl $0x0, 0x1c(%rsp) movl 0x1c(%rsp), %eax cmpl 0x24(%rsp), %eax jge 0x5f014 movq 0x28(%rsp), %rax movslq 0x1c(%rsp), %rcx movzbl (%rax,%rcx), %eax movl %eax, 0x14(%rsp) cmpl $0x0, 0x20(%rsp) je 0x5efa0 cmpl $0xb3, 0x14(%rsp) jl 0x5ef7c movl 0x14(%rsp), %eax addl $0x12, %eax movl %eax, 0x4(%rsp) jmp 0x5ef84 movl 0x14(%rsp), %eax movl %eax, 0x4(%rsp) movl 0x4(%rsp), %eax movslq %eax, %rcx leaq 0xae2ce(%rip), %rax # 0x10d260 shlq $0x2, %rcx addq %rcx, %rax movq %rax, 0x8(%rsp) jmp 0x5efb8 movslq 0x14(%rsp), %rcx leaq 0xae2b4(%rip), %rax # 0x10d260 shlq $0x2, %rcx addq %rcx, %rax movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rax movzbl (%rax), %eax movl %eax, 0x18(%rsp) movq 0x8(%rsp), %rax movzbl 0x3(%rax), %eax addl $-0x18, %eax subl $0x4, %eax ja 0x5f001 jmp 0x5efd7 movq 0x28(%rsp), %rdi movslq 0x1c(%rsp), %rax addq %rax, %rdi addq $0x1, %rdi callq 0x5f1b0 movl %eax, 0x10(%rsp) movq 0x30(%rsp), %rdi movl 0x10(%rsp), %esi callq 0x23da0 jmp 0x5f003 jmp 0x5f003 movl 0x18(%rsp), %eax addl 0x1c(%rsp), %eax movl %eax, 0x1c(%rsp) jmp 0x5ef3e addq $0x38, %rsp retq nopl (%rax)
free_bytecode_atoms: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov [rsp+38h+var_14], edx mov [rsp+38h+var_18], ecx mov [rsp+38h+var_1C], 0 loc_5EF3E: mov eax, [rsp+38h+var_1C] cmp eax, [rsp+38h+var_14] jge loc_5F014 mov rax, [rsp+38h+var_10] movsxd rcx, [rsp+38h+var_1C] movzx eax, byte ptr [rax+rcx] mov [rsp+38h+var_24], eax cmp [rsp+38h+var_18], 0 jz short loc_5EFA0 cmp [rsp+38h+var_24], 0B3h jl short loc_5EF7C mov eax, [rsp+38h+var_24] add eax, 12h mov [rsp+38h+var_34], eax jmp short loc_5EF84 loc_5EF7C: mov eax, [rsp+38h+var_24] mov [rsp+38h+var_34], eax loc_5EF84: mov eax, [rsp+38h+var_34] movsxd rcx, eax lea rax, opcode_info shl rcx, 2 add rax, rcx mov [rsp+38h+var_30], rax jmp short loc_5EFB8 loc_5EFA0: movsxd rcx, [rsp+38h+var_24] lea rax, opcode_info shl rcx, 2 add rax, rcx mov [rsp+38h+var_30], rax loc_5EFB8: mov rax, [rsp+38h+var_30] movzx eax, byte ptr [rax] mov [rsp+38h+var_20], eax mov rax, [rsp+38h+var_30] movzx eax, byte ptr [rax+3] add eax, 0FFFFFFE8h sub eax, 4 ja short loc_5F001 jmp short $+2 loc_5EFD7: mov rdi, [rsp+38h+var_10] movsxd rax, [rsp+38h+var_1C] add rdi, rax add rdi, 1 call get_u32 mov [rsp+38h+var_28], eax mov rdi, [rsp+38h+var_8] mov esi, [rsp+38h+var_28] call JS_FreeAtomRT jmp short loc_5F003 loc_5F001: jmp short $+2 loc_5F003: mov eax, [rsp+38h+var_20] add eax, [rsp+38h+var_1C] mov [rsp+38h+var_1C], eax jmp loc_5EF3E loc_5F014: add rsp, 38h retn
long long free_bytecode_atoms(long long a1, long long a2, int a3, int a4) { long long result; // rax unsigned int v5; // eax int v6; // [rsp+4h] [rbp-34h] unsigned __int8 *v7; // [rsp+8h] [rbp-30h] int v8; // [rsp+18h] [rbp-20h] unsigned int i; // [rsp+1Ch] [rbp-1Ch] for ( i = 0; ; i += v8 ) { result = i; if ( (int)i >= a3 ) break; if ( a4 ) { if ( *(unsigned __int8 *)(a2 + (int)i) < 0xB3u ) v6 = *(unsigned __int8 *)(a2 + (int)i); else v6 = *(unsigned __int8 *)(a2 + (int)i) + 18; v7 = (unsigned __int8 *)&opcode_info + 4 * v6; } else { v7 = (unsigned __int8 *)&opcode_info + 4 * *(unsigned __int8 *)(a2 + (int)i); } v8 = *v7; if ( (unsigned int)v7[3] - 24 <= 4 ) { get_u32((int)i + a2 + 1); JS_FreeAtomRT(a1, v5); } } return result; }
free_bytecode_atoms: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV dword ptr [RSP + 0x24],EDX MOV dword ptr [RSP + 0x20],ECX MOV dword ptr [RSP + 0x1c],0x0 LAB_0015ef3e: MOV EAX,dword ptr [RSP + 0x1c] CMP EAX,dword ptr [RSP + 0x24] JGE 0x0015f014 MOV RAX,qword ptr [RSP + 0x28] MOVSXD RCX,dword ptr [RSP + 0x1c] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV dword ptr [RSP + 0x14],EAX CMP dword ptr [RSP + 0x20],0x0 JZ 0x0015efa0 CMP dword ptr [RSP + 0x14],0xb3 JL 0x0015ef7c MOV EAX,dword ptr [RSP + 0x14] ADD EAX,0x12 MOV dword ptr [RSP + 0x4],EAX JMP 0x0015ef84 LAB_0015ef7c: MOV EAX,dword ptr [RSP + 0x14] MOV dword ptr [RSP + 0x4],EAX LAB_0015ef84: MOV EAX,dword ptr [RSP + 0x4] MOVSXD RCX,EAX LEA RAX,[0x20d260] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RSP + 0x8],RAX JMP 0x0015efb8 LAB_0015efa0: MOVSXD RCX,dword ptr [RSP + 0x14] LEA RAX,[0x20d260] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RSP + 0x8],RAX LAB_0015efb8: MOV RAX,qword ptr [RSP + 0x8] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RSP + 0x18],EAX MOV RAX,qword ptr [RSP + 0x8] MOVZX EAX,byte ptr [RAX + 0x3] ADD EAX,-0x18 SUB EAX,0x4 JA 0x0015f001 JMP 0x0015efd7 LAB_0015efd7: MOV RDI,qword ptr [RSP + 0x28] MOVSXD RAX,dword ptr [RSP + 0x1c] ADD RDI,RAX ADD RDI,0x1 CALL 0x0015f1b0 MOV dword ptr [RSP + 0x10],EAX MOV RDI,qword ptr [RSP + 0x30] MOV ESI,dword ptr [RSP + 0x10] CALL 0x00123da0 JMP 0x0015f003 LAB_0015f001: JMP 0x0015f003 LAB_0015f003: MOV EAX,dword ptr [RSP + 0x18] ADD EAX,dword ptr [RSP + 0x1c] MOV dword ptr [RSP + 0x1c],EAX JMP 0x0015ef3e LAB_0015f014: ADD RSP,0x38 RET
void free_bytecode_atoms(int8 param_1,long param_2,int param_3,int param_4) { byte bVar1; uint uVar2; int4 uVar3; byte *local_30; int local_1c; for (local_1c = 0; local_1c < param_3; local_1c = (uint)bVar1 + local_1c) { uVar2 = (uint)*(byte *)(param_2 + local_1c); if ((param_4 != 0) && (0xb2 < uVar2)) { uVar2 = uVar2 + 0x12; } local_30 = opcode_info + (long)(int)uVar2 * 4; bVar1 = *local_30; if ((byte)opcode_info[(long)(int)uVar2 * 4 + 3] - 0x18 < 5) { uVar3 = get_u32(param_2 + local_1c + 1); JS_FreeAtomRT(param_1,uVar3); } } return; }
29,341
free_bytecode_atoms
bluesky950520[P]quickjs/quickjs.c
static void free_bytecode_atoms(JSRuntime *rt, const uint8_t *bc_buf, int bc_len, BOOL use_short_opcodes) { int pos, len, op; JSAtom atom; const JSOpCode *oi; pos = 0; while (pos < bc_len) { op = bc_buf[pos]; if (use_short_opcodes) oi = &short_opcode_info(op); else oi = &opcode_info[op]; len = oi->size; switch(oi->fmt) { case OP_FMT_atom: case OP_FMT_atom_u8: case OP_FMT_atom_u16: case OP_FMT_atom_label_u8: case OP_FMT_atom_label_u16: atom = get_u32(bc_buf + pos + 1); JS_FreeAtomRT(rt, atom); break; default: break; } pos += len; } }
O1
c
free_bytecode_atoms: testl %edx, %edx jle 0x3c9d9 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx xorl %r12d, %r12d leaq 0x617d7(%rip), %r13 # 0x9e140 movl %ecx, 0x4(%rsp) movl %r12d, %r12d movzbl (%r14,%r12), %eax leal 0x12(%rax), %edx cmpl $0xb3, %eax cmovbl %eax, %edx testl %ecx, %ecx cmovel %eax, %edx movzbl (%r13,%rdx,4), %r15d movb 0x3(%r13,%rdx,4), %al addb $-0x18, %al cmpb $0x4, %al ja 0x3c9c3 movslq 0x1(%r14,%r12), %rax cmpq $0xe0, %rax jl 0x3c9c3 movq 0x68(%rbx), %rdx movq (%rdx,%rax,8), %rsi movl (%rsi), %eax leal -0x1(%rax), %edx movl %edx, (%rsi) cmpl $0x1, %eax jg 0x3c9c3 movq %rbx, %rdi callq 0x3b863 movl 0x4(%rsp), %ecx addl %r15d, %r12d cmpl %ebp, %r12d jl 0x3c96d addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
free_bytecode_atoms: test edx, edx jle locret_3C9D9 push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, edx mov r14, rsi mov rbx, rdi xor r12d, r12d lea r13, opcode_info mov [rsp+38h+var_34], ecx loc_3C96D: mov r12d, r12d movzx eax, byte ptr [r14+r12] lea edx, [rax+12h] cmp eax, 0B3h cmovb edx, eax test ecx, ecx cmovz edx, eax movzx r15d, byte ptr [r13+rdx*4+0] mov al, [r13+rdx*4+3] add al, 0E8h cmp al, 4 ja short loc_3C9C3 movsxd rax, dword ptr [r14+r12+1] cmp rax, 0E0h jl short loc_3C9C3 mov rdx, [rbx+68h] mov rsi, [rdx+rax*8] mov eax, [rsi] lea edx, [rax-1] mov [rsi], edx cmp eax, 1 jg short loc_3C9C3 mov rdi, rbx call JS_FreeAtomStruct mov ecx, [rsp+38h+var_34] loc_3C9C3: add r12d, r15d cmp r12d, ebp jl short loc_3C96D add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp locret_3C9D9: retn
char free_bytecode_atoms(long long a1, long long a2, int a3, int a4) { long long v4; // rax unsigned int v7; // r12d unsigned int v8; // eax long long v9; // rdx int v10; // r15d _DWORD *v11; // rsi int v13; // [rsp+0h] [rbp-34h] if ( a3 > 0 ) { v7 = 0; v13 = a4; do { v8 = *(unsigned __int8 *)(a2 + v7); v9 = v8 + 18; if ( v8 < 0xB3 ) v9 = *(unsigned __int8 *)(a2 + v7); if ( !a4 ) v9 = *(unsigned __int8 *)(a2 + v7); v10 = opcode_info[4 * v9]; LOBYTE(v4) = opcode_info[4 * v9 + 3] - 24; if ( (unsigned __int8)v4 <= 4u ) { v4 = *(int *)(a2 + v7 + 1); if ( v4 >= 224 ) { v11 = *(_DWORD **)(*(_QWORD *)(a1 + 104) + 8 * v4); LODWORD(v4) = (*v11)--; if ( (int)v4 <= 1 ) { LOBYTE(v4) = JS_FreeAtomStruct(a1, (long long)v11); a4 = v13; } } } v7 += v10; } while ( (int)v7 < a3 ); } return v4; }
29,342
free_bytecode_atoms
bluesky950520[P]quickjs/quickjs.c
static void free_bytecode_atoms(JSRuntime *rt, const uint8_t *bc_buf, int bc_len, BOOL use_short_opcodes) { int pos, len, op; JSAtom atom; const JSOpCode *oi; pos = 0; while (pos < bc_len) { op = bc_buf[pos]; if (use_short_opcodes) oi = &short_opcode_info(op); else oi = &opcode_info[op]; len = oi->size; switch(oi->fmt) { case OP_FMT_atom: case OP_FMT_atom_u8: case OP_FMT_atom_u16: case OP_FMT_atom_label_u8: case OP_FMT_atom_label_u16: atom = get_u32(bc_buf + pos + 1); JS_FreeAtomRT(rt, atom); break; default: break; } pos += len; } }
O2
c
free_bytecode_atoms: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %ebx movl %edx, %ebp movq %rsi, %r14 movq %rdi, (%rsp) xorl %r12d, %r12d leaq 0x4fae8(%rip), %r13 # 0x850e0 cmpl %ebp, %r12d jge 0x3563c movl %r12d, %eax movzbl (%r14,%rax), %ecx leal 0x12(%rcx), %edx cmpl $0xb3, %ecx cmovbl %ecx, %edx testl %ebx, %ebx cmovel %ecx, %edx movzbl (%r13,%rdx,4), %r15d movb 0x3(%r13,%rdx,4), %cl addb $-0x18, %cl cmpb $0x4, %cl ja 0x35637 movl 0x1(%r14,%rax), %esi movq (%rsp), %rdi callq 0x182d0 addl %r15d, %r12d jmp 0x355f8 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
free_bytecode_atoms: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebx, ecx mov ebp, edx mov r14, rsi mov [rsp+38h+var_38], rdi xor r12d, r12d lea r13, opcode_info loc_355F8: cmp r12d, ebp jge short loc_3563C mov eax, r12d movzx ecx, byte ptr [r14+rax] lea edx, [rcx+12h] cmp ecx, 0B3h cmovb edx, ecx test ebx, ebx cmovz edx, ecx movzx r15d, byte ptr [r13+rdx*4+0] mov cl, [r13+rdx*4+3] add cl, 0E8h cmp cl, 4 ja short loc_35637 mov esi, [r14+rax+1] mov rdi, [rsp+38h+var_38] call JS_FreeAtomRT loc_35637: add r12d, r15d jmp short loc_355F8 loc_3563C: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long free_bytecode_atoms(long long a1, long long a2, int a3, int a4) { unsigned int i; // r12d long long result; // rax unsigned int v8; // ecx long long v9; // rdx int v10; // r15d for ( i = 0; (int)i < a3; i += v10 ) { result = i; v8 = *(unsigned __int8 *)(a2 + i); v9 = v8 + 18; if ( v8 < 0xB3 ) v9 = *(unsigned __int8 *)(a2 + i); if ( !a4 ) v9 = *(unsigned __int8 *)(a2 + i); v10 = opcode_info[4 * v9]; if ( (unsigned __int8)(opcode_info[4 * v9 + 3] - 24) <= 4u ) result = JS_FreeAtomRT(a1, *(_DWORD *)(a2 + i + 1)); } return result; }
free_bytecode_atoms: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBX,ECX MOV EBP,EDX MOV R14,RSI MOV qword ptr [RSP],RDI XOR R12D,R12D LEA R13,[0x1850e0] LAB_001355f8: CMP R12D,EBP JGE 0x0013563c MOV EAX,R12D MOVZX ECX,byte ptr [R14 + RAX*0x1] LEA EDX,[RCX + 0x12] CMP ECX,0xb3 CMOVC EDX,ECX TEST EBX,EBX CMOVZ EDX,ECX MOVZX R15D,byte ptr [R13 + RDX*0x4] MOV CL,byte ptr [R13 + RDX*0x4 + 0x3] ADD CL,0xe8 CMP CL,0x4 JA 0x00135637 MOV ESI,dword ptr [R14 + RAX*0x1 + 0x1] MOV RDI,qword ptr [RSP] CALL 0x001182d0 LAB_00135637: ADD R12D,R15D JMP 0x001355f8 LAB_0013563c: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void free_bytecode_atoms(int8 param_1,long param_2,int param_3,int param_4) { byte bVar1; uint uVar2; ulong uVar3; uint uVar4; for (uVar4 = 0; (int)uVar4 < param_3; uVar4 = uVar4 + bVar1) { bVar1 = *(byte *)(param_2 + (ulong)uVar4); uVar2 = bVar1 + 0x12; if (bVar1 < 0xb3) { uVar2 = (uint)bVar1; } uVar3 = (ulong)uVar2; if (param_4 == 0) { uVar3 = (ulong)bVar1; } bVar1 = opcode_info[uVar3 * 4]; if ((byte)(opcode_info[uVar3 * 4 + 3] - 0x18) < 5) { JS_FreeAtomRT(param_1,*(int4 *)(param_2 + 1 + (ulong)uVar4)); } } return; }
29,343
my_strntoull_mb2_or_mb4
eloqsql/strings/ctype-ucs2.c
static ulonglong my_strntoull_mb2_or_mb4(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative= 0; int overflow; int cnv; my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; register ulonglong cutoff; register unsigned int cutlim; register ulonglong res; register const uchar *s= (const uchar*) nptr; register const uchar *e= (const uchar*) nptr + l; const uchar *save; *err= 0; do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { switch (wc) { case ' ' : break; case '\t': break; case '-' : negative= !negative; break; case '+' : break; default : goto bs; } } else /* No more characters or bad multibyte sequence */ { if (endptr !=NULL ) *endptr = (char*)s; err[0]= (cnv==MY_CS_ILSEQ) ? EILSEQ : EDOM; return 0; } s+=cnv; } while (1); bs: overflow = 0; res = 0; save = s; cutoff = (~(ulonglong) 0) / (unsigned long int) base; cutlim = (uint) ((~(ulonglong) 0) % (unsigned long int) base); do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { s+=cnv; if ( wc>='0' && wc<='9') wc -= '0'; else if ( wc>='A' && wc<='Z') wc = wc - 'A' + 10; else if ( wc>='a' && wc<='z') wc = wc - 'a' + 10; else break; if ((int)wc >= base) break; if (res > cutoff || (res == cutoff && wc > cutlim)) overflow = 1; else { res *= (ulonglong) base; res += wc; } } else if (cnv==MY_CS_ILSEQ) { if (endptr !=NULL ) *endptr = (char*)s; err[0]= EILSEQ; return 0; } else { /* No more characters */ break; } } while(1); if (endptr != NULL) *endptr = (char *) s; if (s == save) { err[0]= EDOM; return 0L; } if (overflow) { err[0]= ERANGE; return (~(ulonglong) 0); } return (negative ? -((longlong) res) : (longlong) res); }
O3
c
my_strntoull_mb2_or_mb4: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r8, -0x40(%rbp) movl %ecx, -0x44(%rbp) movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %r14 movq 0xb8(%rdi), %rax movq 0x28(%rax), %r12 addq %rsi, %r13 movq %r9, -0x50(%rbp) movl $0x0, (%r9) leaq -0x30(%rbp), %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0xc3dda movl $0x0, -0x34(%rbp) leaq -0x30(%rbp), %rbx movq -0x30(%rbp), %rcx cmpq $0x2a, %rcx jg 0xc3daa cmpq $0x9, %rcx je 0xc3dc2 cmpq $0x20, %rcx je 0xc3dc2 jmp 0xc3e0c cmpq $0x2b, %rcx je 0xc3dc2 cmpq $0x2d, %rcx jne 0xc3e0c xorl %ecx, %ecx cmpl $0x0, -0x34(%rbp) sete %cl movl %ecx, -0x34(%rbp) movl %eax, %eax addq %rax, %r15 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jg 0xc3d92 movq -0x40(%rbp), %rcx testq %rcx, %rcx je 0xc3de6 movq %r15, (%rcx) testl %eax, %eax movl $0x54, %eax movl $0x21, %ecx cmovel %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, (%rax) xorl %eax, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movslq -0x44(%rbp), %rcx movq $-0x1, %rax xorl %edx, %edx movq %rcx, -0x60(%rbp) divq %rcx movq %rdx, %rbx movq %rax, -0x58(%rbp) leaq -0x30(%rbp), %rsi movq %r14, %rdi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0xc3ee6 movq %r12, -0x70(%rbp) movl %ebx, %ecx movq %rcx, -0x68(%rbp) xorl %ecx, %ecx movq %r15, %rbx xorl %edi, %edi movq %rbx, %rsi movl %eax, %ebx addq %rsi, %rbx movq -0x30(%rbp), %rsi leaq -0x30(%rsi), %rax cmpq $0x9, %rax ja 0xc3e6c movq %rax, -0x30(%rbp) jmp 0xc3e91 leaq -0x41(%rsi), %rax cmpq $0x19, %rax ja 0xc3e7c addq $-0x37, %rsi jmp 0xc3e8a leaq -0x61(%rsi), %rax cmpq $0x19, %rax ja 0xc3ef7 addq $-0x57, %rsi movq %rsi, -0x30(%rbp) movq %rsi, %rax cmpl -0x44(%rbp), %eax jge 0xc3ef7 movl $0x1, %esi cmpq -0x58(%rbp), %rcx jbe 0xc3ea6 movq %rcx, %r12 jmp 0xc3ebf jne 0xc3eb2 movq -0x58(%rbp), %r12 cmpq -0x68(%rbp), %rax ja 0xc3ebf imulq -0x60(%rbp), %rcx addq %rcx, %rax movl %edi, %esi movq %rax, %r12 movq %rsi, -0x78(%rbp) movq %r14, %rdi leaq -0x30(%rbp), %rsi movq %rbx, %rdx movq %r13, %rcx callq *-0x70(%rbp) movq -0x78(%rbp), %rsi movq %r12, %rcx movl %esi, %edi testl %eax, %eax jg 0xc3e50 jmp 0xc3eee xorl %r12d, %r12d movq %r15, %rbx xorl %esi, %esi testl %eax, %eax je 0xc3f31 movl %esi, %edi movq %r12, %rcx movq -0x40(%rbp), %rax testq %rax, %rax je 0xc3f03 movq %rbx, (%rax) cmpq %r15, %rbx je 0xc3f22 testl %edi, %edi je 0xc3f4c movq -0x50(%rbp), %rax movl $0x22, (%rax) movq $-0x1, %rax jmp 0xc3dfd movq -0x50(%rbp), %rax movl $0x21, (%rax) jmp 0xc3dfb movq -0x40(%rbp), %rax testq %rax, %rax je 0xc3f3d movq %rbx, (%rax) movq -0x50(%rbp), %rax movl $0x54, (%rax) jmp 0xc3dfb movq %rcx, %rax negq %rax cmpl $0x0, -0x34(%rbp) cmoveq %rcx, %rax jmp 0xc3dfd
my_strntoull_mb2_or_mb4: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov [rbp+var_40], r8 mov [rbp+var_44], ecx mov r13, rdx mov r15, rsi mov r14, rdi mov rax, [rdi+0B8h] mov r12, [rax+28h] add r13, rsi mov [rbp+var_50], r9 mov dword ptr [r9], 0 lea rsi, [rbp+var_30] mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle short loc_C3DDA mov [rbp+var_34], 0 lea rbx, [rbp+var_30] loc_C3D92: mov rcx, [rbp+var_30] cmp rcx, 2Ah ; '*' jg short loc_C3DAA cmp rcx, 9 jz short loc_C3DC2 cmp rcx, 20h ; ' ' jz short loc_C3DC2 jmp short loc_C3E0C loc_C3DAA: cmp rcx, 2Bh ; '+' jz short loc_C3DC2 cmp rcx, 2Dh ; '-' jnz short loc_C3E0C xor ecx, ecx cmp [rbp+var_34], 0 setz cl mov [rbp+var_34], ecx loc_C3DC2: mov eax, eax add r15, rax mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r13 call r12 test eax, eax jg short loc_C3D92 loc_C3DDA: mov rcx, [rbp+var_40] test rcx, rcx jz short loc_C3DE6 mov [rcx], r15 loc_C3DE6: test eax, eax mov eax, 54h ; 'T' mov ecx, 21h ; '!' cmovz ecx, eax mov rax, [rbp+var_50] mov [rax], ecx loc_C3DFB: xor eax, eax loc_C3DFD: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_C3E0C: movsxd rcx, [rbp+var_44] mov rax, 0FFFFFFFFFFFFFFFFh xor edx, edx mov [rbp+var_60], rcx div rcx mov rbx, rdx mov [rbp+var_58], rax lea rsi, [rbp+var_30] mov rdi, r14 mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle loc_C3EE6 mov [rbp+var_70], r12 mov ecx, ebx mov [rbp+var_68], rcx xor ecx, ecx mov rbx, r15 xor edi, edi loc_C3E50: mov rsi, rbx mov ebx, eax add rbx, rsi mov rsi, [rbp+var_30] lea rax, [rsi-30h] cmp rax, 9 ja short loc_C3E6C mov [rbp+var_30], rax jmp short loc_C3E91 loc_C3E6C: lea rax, [rsi-41h] cmp rax, 19h ja short loc_C3E7C add rsi, 0FFFFFFFFFFFFFFC9h jmp short loc_C3E8A loc_C3E7C: lea rax, [rsi-61h] cmp rax, 19h ja short loc_C3EF7 add rsi, 0FFFFFFFFFFFFFFA9h loc_C3E8A: mov [rbp+var_30], rsi mov rax, rsi loc_C3E91: cmp eax, [rbp+var_44] jge short loc_C3EF7 mov esi, 1 cmp rcx, [rbp+var_58] jbe short loc_C3EA6 mov r12, rcx jmp short loc_C3EBF loc_C3EA6: jnz short loc_C3EB2 mov r12, [rbp+var_58] cmp rax, [rbp+var_68] ja short loc_C3EBF loc_C3EB2: imul rcx, [rbp+var_60] add rax, rcx mov esi, edi mov r12, rax loc_C3EBF: mov [rbp+var_78], rsi mov rdi, r14 lea rsi, [rbp+var_30] mov rdx, rbx mov rcx, r13 call [rbp+var_70] mov rsi, [rbp+var_78] mov rcx, r12 mov edi, esi test eax, eax jg loc_C3E50 jmp short loc_C3EEE loc_C3EE6: xor r12d, r12d mov rbx, r15 xor esi, esi loc_C3EEE: test eax, eax jz short loc_C3F31 mov edi, esi mov rcx, r12 loc_C3EF7: mov rax, [rbp+var_40] test rax, rax jz short loc_C3F03 mov [rax], rbx loc_C3F03: cmp rbx, r15 jz short loc_C3F22 test edi, edi jz short loc_C3F4C mov rax, [rbp+var_50] mov dword ptr [rax], 22h ; '"' mov rax, 0FFFFFFFFFFFFFFFFh jmp loc_C3DFD loc_C3F22: mov rax, [rbp+var_50] mov dword ptr [rax], 21h ; '!' jmp loc_C3DFB loc_C3F31: mov rax, [rbp+var_40] test rax, rax jz short loc_C3F3D mov [rax], rbx loc_C3F3D: mov rax, [rbp+var_50] mov dword ptr [rax], 54h ; 'T' jmp loc_C3DFB loc_C3F4C: mov rax, rcx neg rax cmp [rbp+var_34], 0 cmovz rax, rcx jmp loc_C3DFD
long long my_strntoull_mb2_or_mb4(long long a1, long long a2, long long a3, int a4, _QWORD *a5, int *a6) { long long v6; // r15 long long ( *v8)(long long, _QWORD *, long long, long long); // r12 long long v9; // r13 int v10; // eax int v11; // ecx long long result; // rax int v13; // eax unsigned long long v14; // rcx long long v15; // rbx int v16; // edi unsigned long long v17; // rax long long v18; // rsi int v19; // esi unsigned long long v20; // r12 long long ( *v21)(long long, _QWORD *, long long, long long); // [rsp+10h] [rbp-70h] unsigned long long v22; // [rsp+28h] [rbp-58h] BOOL v26; // [rsp+4Ch] [rbp-34h] _QWORD v27[6]; // [rsp+50h] [rbp-30h] BYREF v6 = a2; v8 = *(long long ( **)(long long, _QWORD *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); v9 = a2 + a3; *a6 = 0; v10 = v8(a1, v27, a2, a2 + a3); if ( v10 <= 0 ) { LABEL_11: if ( a5 ) *a5 = v6; v11 = 33; if ( !v10 ) v11 = 84; *a6 = v11; return 0LL; } v26 = 0; while ( v27[0] > 42LL ) { if ( v27[0] != 43LL ) { if ( v27[0] != 45LL ) goto LABEL_17; v26 = !v26; } LABEL_10: v6 += (unsigned int)v10; v10 = v8(a1, v27, v6, v9); if ( v10 <= 0 ) goto LABEL_11; } if ( v27[0] == 9LL || v27[0] == 32LL ) goto LABEL_10; LABEL_17: v22 = 0xFFFFFFFFFFFFFFFFLL / a4; v13 = v8(a1, v27, v6, v9); if ( v13 <= 0 ) { v20 = 0LL; v15 = v6; v19 = 0; LABEL_35: if ( v13 ) { v16 = v19; v14 = v20; goto LABEL_37; } if ( a5 ) *a5 = v15; *a6 = 84; return 0LL; } v21 = v8; v14 = 0LL; v15 = v6; v16 = 0; while ( 1 ) { v15 += (unsigned int)v13; v17 = v27[0] - 48LL; if ( (unsigned long long)(v27[0] - 48LL) > 9 ) { if ( (unsigned long long)(v27[0] - 65LL) > 0x19 ) { if ( (unsigned long long)(v27[0] - 97LL) > 0x19 ) break; v18 = v27[0] - 87LL; } else { v18 = v27[0] - 55LL; } v27[0] = v18; v17 = v18; } else { v27[0] -= 48LL; } if ( (int)v17 >= a4 ) break; v19 = 1; if ( v14 <= v22 ) { if ( v14 != v22 || (v20 = 0xFFFFFFFFFFFFFFFFLL / a4, v17 <= (unsigned int)(0xFFFFFFFFFFFFFFFFLL % a4)) ) { v19 = v16; v20 = a4 * v14 + v17; } } else { v20 = v14; } v13 = v21(a1, v27, v15, v9); v14 = v20; v16 = v19; if ( v13 <= 0 ) goto LABEL_35; } LABEL_37: if ( a5 ) *a5 = v15; if ( v15 == v6 ) { *a6 = 33; return 0LL; } if ( v16 ) { *a6 = 34; return -1LL; } else { result = -(long long)v14; if ( !v26 ) return v14; } return result; }
my_strntoull_mb2_or_mb4: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV qword ptr [RBP + -0x40],R8 MOV dword ptr [RBP + -0x44],ECX MOV R13,RDX MOV R15,RSI MOV R14,RDI MOV RAX,qword ptr [RDI + 0xb8] MOV R12,qword ptr [RAX + 0x28] ADD R13,RSI MOV qword ptr [RBP + -0x50],R9 MOV dword ptr [R9],0x0 LEA RSI,[RBP + -0x30] MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x001c3dda MOV dword ptr [RBP + -0x34],0x0 LEA RBX,[RBP + -0x30] LAB_001c3d92: MOV RCX,qword ptr [RBP + -0x30] CMP RCX,0x2a JG 0x001c3daa CMP RCX,0x9 JZ 0x001c3dc2 CMP RCX,0x20 JZ 0x001c3dc2 JMP 0x001c3e0c LAB_001c3daa: CMP RCX,0x2b JZ 0x001c3dc2 CMP RCX,0x2d JNZ 0x001c3e0c XOR ECX,ECX CMP dword ptr [RBP + -0x34],0x0 SETZ CL MOV dword ptr [RBP + -0x34],ECX LAB_001c3dc2: MOV EAX,EAX ADD R15,RAX MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JG 0x001c3d92 LAB_001c3dda: MOV RCX,qword ptr [RBP + -0x40] TEST RCX,RCX JZ 0x001c3de6 MOV qword ptr [RCX],R15 LAB_001c3de6: TEST EAX,EAX MOV EAX,0x54 MOV ECX,0x21 CMOVZ ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],ECX LAB_001c3dfb: XOR EAX,EAX LAB_001c3dfd: ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001c3e0c: MOVSXD RCX,dword ptr [RBP + -0x44] MOV RAX,-0x1 XOR EDX,EDX MOV qword ptr [RBP + -0x60],RCX DIV RCX MOV RBX,RDX MOV qword ptr [RBP + -0x58],RAX LEA RSI,[RBP + -0x30] MOV RDI,R14 MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x001c3ee6 MOV qword ptr [RBP + -0x70],R12 MOV ECX,EBX MOV qword ptr [RBP + -0x68],RCX XOR ECX,ECX MOV RBX,R15 XOR EDI,EDI LAB_001c3e50: MOV RSI,RBX MOV EBX,EAX ADD RBX,RSI MOV RSI,qword ptr [RBP + -0x30] LEA RAX,[RSI + -0x30] CMP RAX,0x9 JA 0x001c3e6c MOV qword ptr [RBP + -0x30],RAX JMP 0x001c3e91 LAB_001c3e6c: LEA RAX,[RSI + -0x41] CMP RAX,0x19 JA 0x001c3e7c ADD RSI,-0x37 JMP 0x001c3e8a LAB_001c3e7c: LEA RAX,[RSI + -0x61] CMP RAX,0x19 JA 0x001c3ef7 ADD RSI,-0x57 LAB_001c3e8a: MOV qword ptr [RBP + -0x30],RSI MOV RAX,RSI LAB_001c3e91: CMP EAX,dword ptr [RBP + -0x44] JGE 0x001c3ef7 MOV ESI,0x1 CMP RCX,qword ptr [RBP + -0x58] JBE 0x001c3ea6 MOV R12,RCX JMP 0x001c3ebf LAB_001c3ea6: JNZ 0x001c3eb2 MOV R12,qword ptr [RBP + -0x58] CMP RAX,qword ptr [RBP + -0x68] JA 0x001c3ebf LAB_001c3eb2: IMUL RCX,qword ptr [RBP + -0x60] ADD RAX,RCX MOV ESI,EDI MOV R12,RAX LAB_001c3ebf: MOV qword ptr [RBP + -0x78],RSI MOV RDI,R14 LEA RSI,[RBP + -0x30] MOV RDX,RBX MOV RCX,R13 CALL qword ptr [RBP + -0x70] MOV RSI,qword ptr [RBP + -0x78] MOV RCX,R12 MOV EDI,ESI TEST EAX,EAX JG 0x001c3e50 JMP 0x001c3eee LAB_001c3ee6: XOR R12D,R12D MOV RBX,R15 XOR ESI,ESI LAB_001c3eee: TEST EAX,EAX JZ 0x001c3f31 MOV EDI,ESI MOV RCX,R12 LAB_001c3ef7: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x001c3f03 MOV qword ptr [RAX],RBX LAB_001c3f03: CMP RBX,R15 JZ 0x001c3f22 TEST EDI,EDI JZ 0x001c3f4c MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x22 MOV RAX,-0x1 JMP 0x001c3dfd LAB_001c3f22: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x21 JMP 0x001c3dfb LAB_001c3f31: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x001c3f3d MOV qword ptr [RAX],RBX LAB_001c3f3d: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x54 JMP 0x001c3dfb LAB_001c3f4c: MOV RAX,RCX NEG RAX CMP dword ptr [RBP + -0x34],0x0 CMOVZ RAX,RCX JMP 0x001c3dfd
ulong my_strntoull_mb2_or_mb4 (long param_1,long param_2,long param_3,int param_4,long *param_5, int4 *param_6) { code *pcVar1; int1 auVar2 [16]; int1 auVar3 [16]; bool bVar4; bool bVar5; ulong uVar6; bool bVar7; uint uVar8; ulong uVar9; int4 uVar10; ulong uVar11; long lVar12; ulong uVar13; ulong local_38; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); param_3 = param_3 + param_2; *param_6 = 0; uVar8 = (*pcVar1)(param_1,&local_38,param_2,param_3); if (0 < (int)uVar8) { bVar4 = false; do { if ((long)local_38 < 0x2b) { if ((local_38 != 9) && (local_38 != 0x20)) { LAB_001c3e0c: auVar2._8_8_ = 0; auVar2._0_8_ = (long)param_4; auVar3 = ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff); uVar9 = SUB168(auVar3 / auVar2,0); uVar8 = (*pcVar1)(param_1,&local_38,param_2,param_3); lVar12 = param_2; if ((int)uVar8 < 1) { uVar11 = 0; bVar5 = false; goto LAB_001c3eee; } uVar11 = 0; bVar5 = false; goto LAB_001c3e50; } } else if (local_38 != 0x2b) { if (local_38 != 0x2d) goto LAB_001c3e0c; bVar4 = !bVar4; } param_2 = param_2 + (ulong)uVar8; uVar8 = (*pcVar1)(param_1,&local_38,param_2,param_3); } while (0 < (int)uVar8); } if (param_5 != (long *)0x0) { *param_5 = param_2; } uVar10 = 0x21; if (uVar8 == 0) { uVar10 = 0x54; } *param_6 = uVar10; return 0; while( true ) { if (param_4 <= (int)uVar13) goto LAB_001c3ef7; uVar6 = uVar11; bVar7 = true; if ((uVar11 <= uVar9) && ((uVar11 != uVar9 || (uVar6 = uVar9, uVar13 <= (SUB168(auVar3 % auVar2,0) & 0xffffffff))))) { uVar6 = uVar13 + uVar11 * (long)param_4; bVar7 = bVar5; } bVar5 = bVar7; uVar11 = uVar6; local_38 = uVar13; uVar8 = (*pcVar1)(param_1,&local_38,lVar12,param_3); if ((int)uVar8 < 1) break; LAB_001c3e50: lVar12 = (ulong)uVar8 + lVar12; uVar13 = local_38 - 0x30; if (9 < uVar13) { if (local_38 - 0x41 < 0x1a) { uVar13 = local_38 - 0x37; } else { if (0x19 < local_38 - 0x61) goto LAB_001c3ef7; uVar13 = local_38 - 0x57; } } } LAB_001c3eee: if (uVar8 == 0) { if (param_5 != (long *)0x0) { *param_5 = lVar12; } *param_6 = 0x54; } else { LAB_001c3ef7: if (param_5 != (long *)0x0) { *param_5 = lVar12; } if (lVar12 != param_2) { if (bVar5) { *param_6 = 0x22; return 0xffffffffffffffff; } if (!bVar4) { return uVar11; } return -uVar11; } *param_6 = 0x21; } return 0; }
29,344
String::append(char)
eloqsql/sql/sql_string.h
inline bool append(char chr) { return Binary_string::append_char(chr); }
O3
c
String::append(char): pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movl %esi, %ebx movq %rdi, %r14 movl 0x10(%rdi), %esi cmpl 0x14(%rdi), %esi jb 0xbcf3 leaq 0x8(%r14), %rdi incl %esi callq 0xb290 testb %al, %al jne 0xbd0a movl 0x10(%r14), %esi movq 0x8(%r14), %rax leal 0x1(%rsi), %ecx movl %ecx, 0x10(%r14) movl %esi, %ecx movb %bl, (%rax,%rcx) xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq movb $0x1, %al jmp 0xbd05
_ZN6String6appendEc: push rbp mov rbp, rsp push r14 push rbx mov ebx, esi mov r14, rdi mov esi, [rdi+10h] cmp esi, [rdi+14h] jb short loc_BCF3 lea rdi, [r14+8]; this inc esi; unsigned __int64 call __ZN13Binary_string18realloc_with_extraEm; Binary_string::realloc_with_extra(ulong) test al, al jnz short loc_BD0A mov esi, [r14+10h] loc_BCF3: mov rax, [r14+8] lea ecx, [rsi+1] mov [r14+10h], ecx mov ecx, esi mov [rax+rcx], bl xor eax, eax loc_BD05: pop rbx pop r14 pop rbp retn loc_BD0A: mov al, 1 jmp short loc_BD05
char String::append(String *this, char a2) { unsigned int v3; // esi long long v4; // rax v3 = *((_DWORD *)this + 4); if ( v3 < *((_DWORD *)this + 5) ) goto LABEL_4; if ( !(unsigned __int8)Binary_string::realloc_with_extra((String *)((char *)this + 8), v3 + 1) ) { v3 = *((_DWORD *)this + 4); LABEL_4: v4 = *((_QWORD *)this + 1); *((_DWORD *)this + 4) = v3 + 1; *(_BYTE *)(v4 + v3) = a2; return 0; } return 1; }
append: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV EBX,ESI MOV R14,RDI MOV ESI,dword ptr [RDI + 0x10] CMP ESI,dword ptr [RDI + 0x14] JC 0x0010bcf3 LEA RDI,[R14 + 0x8] INC ESI CALL 0x0010b290 TEST AL,AL JNZ 0x0010bd0a MOV ESI,dword ptr [R14 + 0x10] LAB_0010bcf3: MOV RAX,qword ptr [R14 + 0x8] LEA ECX,[RSI + 0x1] MOV dword ptr [R14 + 0x10],ECX MOV ECX,ESI MOV byte ptr [RAX + RCX*0x1],BL XOR EAX,EAX LAB_0010bd05: POP RBX POP R14 POP RBP RET LAB_0010bd0a: MOV AL,0x1 JMP 0x0010bd05
/* String::append(char) */ int8 __thiscall String::append(String *this,char param_1) { char cVar1; uint uVar2; uVar2 = *(uint *)(this + 0x10); if (*(uint *)(this + 0x14) <= uVar2) { cVar1 = Binary_string::realloc_with_extra((Binary_string *)(this + 8),(ulong)(uVar2 + 1)); if (cVar1 != '\0') { return 1; } uVar2 = *(uint *)(this + 0x10); } *(uint *)(this + 0x10) = uVar2 + 1; *(char *)(*(long *)(this + 8) + (ulong)uVar2) = param_1; return 0; }
29,345
nglog::ReprintFatalMessage()
ng-log[P]ng-log/src/logging.cc
void ReprintFatalMessage() { if (fatal_message[0]) { const size_t n = strlen(fatal_message); if (!FLAGS_logtostderr) { // Also write to stderr (don't color to avoid terminal checks) WriteToStderr(fatal_message, n); } LogDestination::LogToAllLogfiles(NGLOG_ERROR, fatal_time, fatal_message, n); } }
O1
cpp
nglog::ReprintFatalMessage(): cmpb $0x0, 0x3acdc(%rip) # 0x56150 je 0x1b4ae pushq %rbx leaq 0x3acd2(%rip), %rdi # 0x56150 callq 0x8270 movq %rax, %rbx leaq 0x2bb5d(%rip), %rax # 0x46fea cmpb $0x0, (%rax) je 0x1b4af leaq 0x3adb7(%rip), %rsi # 0x56250 leaq 0x3acb0(%rip), %rdx # 0x56150 movl $0x2, %edi movq %rbx, %rcx popq %rbx jmp 0x20f30 retq movq %rbx, %rdi callq 0x93af jmp 0x1b492 nop
_ZN5nglog19ReprintFatalMessageEv: cmp cs:_ZN5nglogL13fatal_messageE, 0; nglog::fatal_message jz short locret_1B4AE push rbx lea rdi, _ZN5nglogL13fatal_messageE; nglog::fatal_message call _strlen mov rbx, rax lea rax, _ZN3fLB17FLAGS_logtostderrE; fLB::FLAGS_logtostderr cmp byte ptr [rax], 0 jz short loc_1B4AF loc_1B492: lea rsi, _ZN5nglogL10fatal_timeE; nglog::fatal_time lea rdx, _ZN5nglogL13fatal_messageE; nglog::fatal_message mov edi, 2 mov rcx, rbx pop rbx jmp _ZN5nglog14LogDestination16LogToAllLogfilesENS_11LogSeverityERKNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEEPKcm; nglog::LogDestination::LogToAllLogfiles(nglog::LogSeverity,std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,char const*,ulong) locret_1B4AE: retn loc_1B4AF: mov rdi, rbx call _ZN5nglog19ReprintFatalMessageEv_cold_1; nglog::ReprintFatalMessage(void) [clone] jmp short loc_1B492
void nglog::ReprintFatalMessage(nglog *this) { long long v1; // rbx if ( nglog::fatal_message ) { v1 = strlen(&nglog::fatal_message); if ( !fLB::FLAGS_logtostderr ) nglog::ReprintFatalMessage(v1); nglog::LogDestination::LogToAllLogfiles(2LL, &nglog::fatal_time, &nglog::fatal_message, v1); } }
ReprintFatalMessage: CMP byte ptr [0x00156150],0x0 JZ 0x0011b4ae PUSH RBX LEA RDI,[0x156150] CALL 0x00108270 MOV RBX,RAX LEA RAX,[0x146fea] CMP byte ptr [RAX],0x0 JZ 0x0011b4af LAB_0011b492: LEA RSI,[0x156250] LEA RDX,[0x156150] MOV EDI,0x2 MOV RCX,RBX POP RBX JMP 0x00120f30 LAB_0011b4ae: RET LAB_0011b4af: MOV RDI,RBX CALL 0x001093af JMP 0x0011b492
/* nglog::ReprintFatalMessage() */ void nglog::ReprintFatalMessage(void) { nglog *this; if (fatal_message != '\0') { this = (nglog *)strlen(&fatal_message); if (fLB::FLAGS_logtostderr == '\0') { ReprintFatalMessage(this); } LogDestination::LogToAllLogfiles(2,&fatal_time,&fatal_message,this); return; } return; }
29,346
intx::uint<256u> intx::operator>><256u>(intx::uint<256u> const&, intx::uint<256u> const&)
corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp
inline constexpr uint<N> operator>>(const uint<N>& x, const uint<N>& shift) noexcept { uint64_t high_words_fold = 0; for (size_t i = 1; i < uint<N>::num_words; ++i) high_words_fold |= shift[i]; if (INTX_UNLIKELY(high_words_fold != 0)) return 0; return x >> shift[0]; }
O2
cpp
intx::uint<256u> intx::operator>><256u>(intx::uint<256u> const&, intx::uint<256u> const&): pushq %rbx movq %rdi, %rbx movq 0x10(%rdx), %rax orq 0x8(%rdx), %rax orq 0x18(%rdx), %rax jne 0x3b0e3 movq (%rdx), %rdx movq %rbx, %rdi callq 0x3abf6 movq %rbx, %rax popq %rbx retq xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbx) movups %xmm0, (%rbx) jmp 0x3b0de
_ZN4intxrsILj256EEENS_4uintIXT_EEERKS2_S4_: push rbx mov rbx, rdi mov rax, [rdx+10h] or rax, [rdx+8] or rax, [rdx+18h] jnz short loc_3B0E3 mov rdx, [rdx] mov rdi, rbx call _ZN4intxrsERKNS_4uintILj256EEEm; intx::operator>>(intx::uint<256u> const&,ulong) loc_3B0DE: mov rax, rbx pop rbx retn loc_3B0E3: xorps xmm0, xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx], xmm0 jmp short loc_3B0DE
_OWORD * intx::operator>><256u>(_OWORD *a1, unsigned long long *a2, unsigned long long *a3) { if ( a3[3] | a3[1] | a3[2] ) { a1[1] = 0LL; *a1 = 0LL; } else { intx::operator>>((long long)a1, a2, *a3); } return a1; }
operator>>: PUSH RBX MOV RBX,RDI MOV RAX,qword ptr [RDX + 0x10] OR RAX,qword ptr [RDX + 0x8] OR RAX,qword ptr [RDX + 0x18] JNZ 0x0013b0e3 MOV RDX,qword ptr [RDX] MOV RDI,RBX CALL 0x0013abf6 LAB_0013b0de: MOV RAX,RBX POP RBX RET LAB_0013b0e3: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX],XMM0 JMP 0x0013b0de
/* intx::uint<256u> intx::TEMPNAMEPLACEHOLDERVALUE(intx::uint<256u> const&, intx::uint<256u> const&) */ intx * __thiscall intx::operator>>(intx *this,uint *param_1,uint *param_2) { if ((*(long *)(param_2 + 0x10) == 0 && *(long *)(param_2 + 8) == 0) && *(long *)(param_2 + 0x18) == 0) { operator>>(this,param_1,*(ulong *)param_2); } else { *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; } return this; }
29,347
my_caseup_utf8mb4
eloqsql/strings/ctype-utf8.c
static size_t my_caseup_utf8mb4(CHARSET_INFO *cs, const char *src, size_t srclen, char *dst, size_t dstlen) { my_wc_t wc; int srcres, dstres; const char *srcend= src + srclen; char *dstend= dst + dstlen, *dst0= dst; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(src != dst || cs->caseup_multiply == 1); while ((src < srcend) && (srcres= my_mb_wc_utf8mb4(cs, &wc, (uchar *) src, (uchar*) srcend)) > 0) { my_toupper_utf8mb4(uni_plane, &wc); if ((dstres= my_wc_mb_utf8mb4(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0) break; src+= srcres; dst+= dstres; } return (size_t) (dst - dst0); }
O3
c
my_caseup_utf8mb4: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r8, -0x38(%rbp) movq %rcx, %r13 movq %rcx, -0x30(%rbp) testq %rdx, %rdx jle 0x4e359 movq %rdx, %r15 movq %rsi, %r12 addq %rsi, %r15 movq -0x30(%rbp), %r13 addq %r13, -0x38(%rbp) movq 0x78(%rdi), %r14 leaq -0x40(%rbp), %rdi movq %r12, %rsi movq %r15, %rdx callq 0x513ea testl %eax, %eax jle 0x4e359 movl %eax, %ebx movq -0x40(%rbp), %rsi cmpq (%r14), %rsi ja 0x4e33a movq 0x8(%r14), %rax movq %rsi, %rcx shrq $0x8, %rcx movq (%rax,%rcx,8), %rax testq %rax, %rax je 0x4e33a movzbl %sil, %ecx leaq (%rcx,%rcx,2), %rcx movl (%rax,%rcx,4), %esi movq %rsi, -0x40(%rbp) movq %r13, %rdx movq -0x38(%rbp), %rcx callq 0x4e0d9 testl %eax, %eax jle 0x4e359 movl %ebx, %ecx addq %rcx, %r12 movl %eax, %eax addq %rax, %r13 cmpq %r15, %r12 jb 0x4e2f9 subq -0x30(%rbp), %r13 movq %r13, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_caseup_utf8mb4: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rbp+var_38], r8 mov r13, rcx mov [rbp+var_30], rcx test rdx, rdx jle short loc_4E359 mov r15, rdx mov r12, rsi add r15, rsi mov r13, [rbp+var_30] add [rbp+var_38], r13 mov r14, [rdi+78h] loc_4E2F9: lea rdi, [rbp+var_40] mov rsi, r12 mov rdx, r15 call my_mb_wc_utf8mb4_quick_0 test eax, eax jle short loc_4E359 mov ebx, eax mov rsi, [rbp+var_40] cmp rsi, [r14] ja short loc_4E33A mov rax, [r14+8] mov rcx, rsi shr rcx, 8 mov rax, [rax+rcx*8] test rax, rax jz short loc_4E33A movzx ecx, sil lea rcx, [rcx+rcx*2] mov esi, [rax+rcx*4] mov [rbp+var_40], rsi loc_4E33A: mov rdx, r13 mov rcx, [rbp+var_38] call my_wc_mb_utf8mb4 test eax, eax jle short loc_4E359 mov ecx, ebx add r12, rcx mov eax, eax add r13, rax cmp r12, r15 jb short loc_4E2F9 loc_4E359: sub r13, [rbp+var_30] mov rax, r13 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_BYTE * my_caseup_utf8mb4(long long a1, unsigned long long a2, long long a3, _BYTE *a4, unsigned long long a5) { _BYTE *v5; // r13 unsigned long long v6; // r12 unsigned long long v7; // r15 unsigned long long *v8; // r14 int v9; // eax unsigned int v10; // ebx unsigned long long v11; // rsi long long v12; // rax int v13; // eax unsigned long long v15; // [rsp+0h] [rbp-40h] BYREF unsigned long long v16; // [rsp+8h] [rbp-38h] _BYTE *v17; // [rsp+10h] [rbp-30h] v16 = a5; v5 = a4; v17 = a4; if ( a3 > 0 ) { v6 = a2; v7 = a2 + a3; v5 = v17; v16 += (unsigned long long)v17; v8 = *(unsigned long long **)(a1 + 120); do { v9 = my_mb_wc_utf8mb4_quick_0(&v15, v6, v7); if ( v9 <= 0 ) break; v10 = v9; v11 = v15; if ( v15 <= *v8 ) { v12 = *(_QWORD *)(v8[1] + 8 * (v15 >> 8)); if ( v12 ) { v11 = *(unsigned int *)(v12 + 12LL * (unsigned __int8)v15); v15 = v11; } } v13 = my_wc_mb_utf8mb4((long long)&v15, v11, v5, v16); if ( v13 <= 0 ) break; v6 += v10; v5 += (unsigned int)v13; } while ( v6 < v7 ); } return (_BYTE *)(v5 - v17); }
my_caseup_utf8mb4: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RBP + -0x38],R8 MOV R13,RCX MOV qword ptr [RBP + -0x30],RCX TEST RDX,RDX JLE 0x0014e359 MOV R15,RDX MOV R12,RSI ADD R15,RSI MOV R13,qword ptr [RBP + -0x30] ADD qword ptr [RBP + -0x38],R13 MOV R14,qword ptr [RDI + 0x78] LAB_0014e2f9: LEA RDI,[RBP + -0x40] MOV RSI,R12 MOV RDX,R15 CALL 0x001513ea TEST EAX,EAX JLE 0x0014e359 MOV EBX,EAX MOV RSI,qword ptr [RBP + -0x40] CMP RSI,qword ptr [R14] JA 0x0014e33a MOV RAX,qword ptr [R14 + 0x8] MOV RCX,RSI SHR RCX,0x8 MOV RAX,qword ptr [RAX + RCX*0x8] TEST RAX,RAX JZ 0x0014e33a MOVZX ECX,SIL LEA RCX,[RCX + RCX*0x2] MOV ESI,dword ptr [RAX + RCX*0x4] MOV qword ptr [RBP + -0x40],RSI LAB_0014e33a: MOV RDX,R13 MOV RCX,qword ptr [RBP + -0x38] CALL 0x0014e0d9 TEST EAX,EAX JLE 0x0014e359 MOV ECX,EBX ADD R12,RCX MOV EAX,EAX ADD R13,RAX CMP R12,R15 JC 0x0014e2f9 LAB_0014e359: SUB R13,qword ptr [RBP + -0x30] MOV RAX,R13 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_caseup_utf8mb4(long param_1,ulong param_2,long param_3,long param_4,long param_5) { ulong *puVar1; long lVar2; uint uVar3; uint uVar4; ulong uVar5; ulong local_48; long local_40; long local_38; local_38 = param_4; if (0 < param_3) { uVar5 = param_3 + param_2; local_40 = param_5 + param_4; puVar1 = *(ulong **)(param_1 + 0x78); do { uVar3 = my_mb_wc_utf8mb4_quick(&local_48,param_2,uVar5); if ((int)uVar3 < 1) break; if ((local_48 <= *puVar1) && (lVar2 = *(long *)(puVar1[1] + (local_48 >> 8) * 8), lVar2 != 0)) { local_48 = (ulong)*(uint *)(lVar2 + (local_48 & 0xff) * 0xc); } uVar4 = my_wc_mb_utf8mb4(); if ((int)uVar4 < 1) break; param_2 = param_2 + uVar3; param_4 = param_4 + (ulong)uVar4; } while (param_2 < uVar5); } return param_4 - local_38; }
29,348
nglog::InstallFailureSignalHandler()
ng-log[P]ng-log/src/signalhandler.cc
void InstallFailureSignalHandler() { #ifdef HAVE_SIGACTION // Build the sigaction struct. struct sigaction sig_action; memset(&sig_action, 0, sizeof(sig_action)); sigemptyset(&sig_action.sa_mask); sig_action.sa_flags |= SA_SIGINFO; sig_action.sa_sigaction = &FailureSignalHandler; for (auto kFailureSignal : kFailureSignals) { CHECK_ERR(sigaction(kFailureSignal.number, &sig_action, nullptr)); } kFailureSignalHandlerInstalled = true; #elif defined(NGLOG_OS_WINDOWS) for (size_t i = 0; i < ARRAYSIZE(kFailureSignals); ++i) { CHECK_NE(signal(kFailureSignals[i].number, &FailureSignalHandler), SIG_ERR); } kFailureSignalHandlerInstalled = true; #endif // HAVE_SIGACTION }
O1
cpp
nglog::InstallFailureSignalHandler(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x118, %rsp # imm = 0x118 leaq 0x80(%rsp), %rbx xorl %r13d, %r13d movl $0x98, %edx movq %rbx, %rdi xorl %esi, %esi callq 0x72a0 leaq 0x88(%rsp), %r14 movq %r14, %rdi callq 0x76d0 orb $0x4, 0x80(%r14) leaq -0x88(%rip), %rax # 0x20991 movq %rax, -0x8(%r14) leaq 0x1025c(%rip), %rbp # 0x30c80 leaq 0x44e7(%rip), %r14 # 0x24f12 leaq 0x20(%rsp), %r15 leaq 0x4528(%rip), %r12 # 0x24f5f movl (%r13,%rbp), %edi movq %rbx, %rsi xorl %edx, %edx callq 0x76e0 cmpl $-0x1, %eax je 0x20a57 addq $0x10, %r13 cmpq $0x60, %r13 jne 0x20a37 jmp 0x20aaf leaq -0x157c0(%rip), %rax # 0xb29e movq %rax, 0x10(%rsp) movq $0x0, 0x18(%rsp) movups 0x10(%rsp), %xmm0 movups %xmm0, (%rsp) movq %r15, %rdi movq %r14, %rsi movl $0x18b, %edx # imm = 0x18B movl $0x3, %ecx xorl %r8d, %r8d callq 0xc342 movq %r15, %rdi callq 0xb762 movl $0x36, %edx movq %rax, %rdi movq %r12, %rsi callq 0x7600 movq %r15, %rdi callq 0xc3ac jmp 0x20a4b addq $0x118, %rsp # imm = 0x118 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x20(%rsp), %rdi callq 0xc3ac movq %rbx, %rdi callq 0x79b0 movq %rax, %rdi callq 0x98b5
_ZN5nglog27InstallFailureSignalHandlerEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 118h lea rbx, [rsp+148h+var_C8] xor r13d, r13d mov edx, 98h mov rdi, rbx xor esi, esi call _memset lea r14, [rsp+148h+var_C0] mov rdi, r14 call _sigemptyset or byte ptr [r14+80h], 4 lea rax, _ZN5nglog12_GLOBAL__N_120FailureSignalHandlerEiP9siginfo_tPv; nglog::`anonymous namespace'::FailureSignalHandler(int,siginfo_t *,void *) mov [r14-8], rax lea rbp, _ZN5nglog12_GLOBAL__N_115kFailureSignalsE; nglog::`anonymous namespace'::kFailureSignals lea r14, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea r15, [rsp+148h+var_128] lea r12, aSigactionKfail; "sigaction(kFailureSignal.number, &sig_a"... loc_20A37: mov edi, [r13+rbp+0] mov rsi, rbx xor edx, edx call _sigaction cmp eax, 0FFFFFFFFh jz short loc_20A57 loc_20A4B: add r13, 10h cmp r13, 60h ; '`' jnz short loc_20A37 jmp short loc_20AAF loc_20A57: lea rax, _ZN5nglog10LogMessage9SendToLogEv; nglog::LogMessage::SendToLog(void) mov qword ptr [rsp+148h+var_138], rax mov qword ptr [rsp+148h+var_138+8], 0 movups xmm0, [rsp+148h+var_138] movups [rsp+148h+var_148], xmm0 mov rdi, r15 mov rsi, r14 mov edx, 18Bh mov ecx, 3 xor r8d, r8d call _ZN5nglog15ErrnoLogMessageC2EPKciNS_11LogSeverityElMNS_10LogMessageEFvvE; nglog::ErrnoLogMessage::ErrnoLogMessage(char const*,int,nglog::LogSeverity,long,void (nglog::LogMessage::*)(void)) mov rdi, r15; this call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void) mov edx, 36h ; '6' mov rdi, rax mov rsi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, r15; this call _ZN5nglog15ErrnoLogMessageD2Ev; nglog::ErrnoLogMessage::~ErrnoLogMessage() jmp short loc_20A4B loc_20AAF: add rsp, 118h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_18]; this call _ZN5nglog15ErrnoLogMessageD2Ev; nglog::ErrnoLogMessage::~ErrnoLogMessage() mov rdi, rbx call __Unwind_Resume mov rdi, rax call __clang_call_terminate
void nglog::InstallFailureSignalHandler(nglog *this) { long long v1; // r13 long long v2; // r9 long long v3; // rax _QWORD v4[12]; // [rsp+20h] [rbp-128h] BYREF long long ( *v5)(int, long long, long long); // [rsp+80h] [rbp-C8h] BYREF _BYTE v6[128]; // [rsp+88h] [rbp-C0h] BYREF char v7; // [rsp+108h] [rbp-40h] v1 = 0LL; memset(&v5, 0LL, 152LL); sigemptyset(v6); v7 |= 4u; v5 = nglog::`anonymous namespace'::FailureSignalHandler; do { if ( (unsigned int)sigaction( *(unsigned int *)((char *)&nglog::`anonymous namespace'::kFailureSignals + v1), &v5, 0LL) == -1 ) { nglog::ErrnoLogMessage::ErrnoLogMessage( v4, (nglog::tools *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/signalhandler.cc", 395, 3, 0LL, v2, (long long)nglog::LogMessage::SendToLog, 0LL); v3 = nglog::LogMessage::stream((nglog::LogMessage *)v4); std::__ostream_insert<char,std::char_traits<char>>( v3, "sigaction(kFailureSignal.number, &sig_action, nullptr)", 54LL); nglog::ErrnoLogMessage::~ErrnoLogMessage((nglog::ErrnoLogMessage *)v4); } v1 += 16LL; } while ( v1 != 96 ); }
InstallFailureSignalHandler: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x118 LEA RBX,[RSP + 0x80] XOR R13D,R13D MOV EDX,0x98 MOV RDI,RBX XOR ESI,ESI CALL 0x001072a0 LEA R14,[RSP + 0x88] MOV RDI,R14 CALL 0x001076d0 OR byte ptr [R14 + 0x80],0x4 LEA RAX,[0x120991] MOV qword ptr [R14 + -0x8],RAX LEA RBP,[0x130c80] LEA R14,[0x124f12] LEA R15,[RSP + 0x20] LEA R12,[0x124f5f] LAB_00120a37: MOV EDI,dword ptr [R13 + RBP*0x1] MOV RSI,RBX XOR EDX,EDX CALL 0x001076e0 CMP EAX,-0x1 JZ 0x00120a57 LAB_00120a4b: ADD R13,0x10 CMP R13,0x60 JNZ 0x00120a37 JMP 0x00120aaf LAB_00120a57: LEA RAX,[0x10b29e] MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x18],0x0 MOVUPS XMM0,xmmword ptr [RSP + 0x10] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,R15 MOV RSI,R14 MOV EDX,0x18b MOV ECX,0x3 XOR R8D,R8D CALL 0x0010c342 LAB_00120a8d: MOV RDI,R15 CALL 0x0010b762 MOV EDX,0x36 MOV RDI,RAX MOV RSI,R12 CALL 0x00107600 LAB_00120aa5: MOV RDI,R15 CALL 0x0010c3ac JMP 0x00120a4b LAB_00120aaf: ADD RSP,0x118 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nglog::InstallFailureSignalHandler() */ void nglog::InstallFailureSignalHandler(void) { int iVar1; ostream *poVar2; int8 in_R9; long lVar3; LogMessage local_128 [96]; sigaction local_c8; lVar3 = 0; memset(&local_c8,0,0x98); sigemptyset(&local_c8.sa_mask); local_c8.sa_flags._0_1_ = (byte)local_c8.sa_flags | 4; local_c8.__sigaction_handler.sa_handler = (anonymous_namespace)::FailureSignalHandler; do { iVar1 = sigaction(*(int *)((long)&(anonymous_namespace)::kFailureSignals + lVar3),&local_c8, (sigaction *)0x0); if (iVar1 == -1) { ErrnoLogMessage::ErrnoLogMessage ((ErrnoLogMessage *)local_128, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/signalhandler.cc", 0x18b,3,0,in_R9,0x10b29e,0); /* try { // try from 00120a8d to 00120aa4 has its CatchHandler @ 00120ac1 */ poVar2 = (ostream *)LogMessage::stream(local_128); std::__ostream_insert<char,std::char_traits<char>> (poVar2,"sigaction(kFailureSignal.number, &sig_action, nullptr)",0x36); ErrnoLogMessage::~ErrnoLogMessage((ErrnoLogMessage *)local_128); } lVar3 = lVar3 + 0x10; } while (lVar3 != 0x60); return; }
29,349
google::protobuf::internal::ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray(google::protobuf::MessageLite const*, unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc
uint8_t* ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray( const MessageLite* extendee, uint8_t* target, io::EpsCopyOutputStream* stream) const { const ExtensionSet* extension_set = this; ForEach([&target, extendee, stream, extension_set](int number, const Extension& ext) { target = ext.InternalSerializeMessageSetItemWithCachedSizesToArray( extendee, extension_set, number, target, stream); }); return target; }
O3
cpp
google::protobuf::internal::ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray(google::protobuf::MessageLite const*, unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rcx, %r14 leaq 0x20(%rsp), %rcx movq %rdx, (%rcx) movswq 0xa(%rdi), %r12 movq 0x10(%rdi), %rbx movq %rcx, 0x28(%rsp) movq %rsi, 0x30(%rsp) movq %r14, 0x38(%rsp) movq %rdi, 0x40(%rsp) testq %r12, %r12 js 0x9a085 movq %rdx, %rax testw %r12w, %r12w je 0x9a079 movq %rsi, %r15 shlq $0x5, %r12 addq %rbx, %r12 movl (%rbx), %ecx leaq 0x8(%rbx), %rdi movq %r15, %rsi movq %rax, %r8 movq %r14, %r9 callq 0x9a966 movq %rax, 0x20(%rsp) addq $0x20, %rbx cmpq %r12, %rbx jne 0x9a057 addq $0x68, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq 0x18(%rbx), %rsi addq $0x8, %rbx movups 0x28(%rsp), %xmm0 movups 0x38(%rsp), %xmm1 movups %xmm1, 0x10(%rsp) movups %xmm0, (%rsp) leaq 0x48(%rsp), %rdi movq %rbx, %rdx callq 0x9ad2e movq 0x20(%rsp), %rax jmp 0x9a079
_ZNK6google8protobuf8internal12ExtensionSet49InternalSerializeMessageSetWithCachedSizesToArrayEPKNS0_11MessageLiteEPhPNS0_2io19EpsCopyOutputStreamE: push r15 push r14 push r12 push rbx sub rsp, 68h mov r14, rcx lea rcx, [rsp+88h+var_68] mov [rcx], rdx movsx r12, word ptr [rdi+0Ah] mov rbx, [rdi+10h] mov qword ptr [rsp+88h+var_60], rcx mov qword ptr [rsp+88h+var_60+8], rsi mov qword ptr [rsp+88h+var_50], r14 mov qword ptr [rsp+88h+var_50+8], rdi test r12, r12 js short loc_9A085 mov rax, rdx test r12w, r12w jz short loc_9A079 mov r15, rsi shl r12, 5 add r12, rbx loc_9A057: mov ecx, [rbx]; int lea rdi, [rbx+8]; this mov rsi, r15; google::protobuf::MessageLite * mov r8, rax; unsigned __int8 * mov r9, r14; google::protobuf::io::EpsCopyOutputStream * call _ZNK6google8protobuf8internal12ExtensionSet9Extension53InternalSerializeMessageSetItemWithCachedSizesToArrayEPKNS0_11MessageLiteEPKS2_iPhPNS0_2io19EpsCopyOutputStreamE; google::protobuf::internal::ExtensionSet::Extension::InternalSerializeMessageSetItemWithCachedSizesToArray(google::protobuf::MessageLite const*,google::protobuf::internal::ExtensionSet const*,int,uchar *,google::protobuf::io::EpsCopyOutputStream *) mov [rsp+88h+var_68], rax add rbx, 20h ; ' ' cmp rbx, r12 jnz short loc_9A057 loc_9A079: add rsp, 68h pop rbx pop r12 pop r14 pop r15 retn loc_9A085: mov rsi, [rbx+18h] add rbx, 8 movups xmm0, [rsp+88h+var_60] movups xmm1, [rsp+88h+var_50] movups [rsp+88h+var_78], xmm1 movups [rsp+88h+var_88], xmm0 lea rdi, [rsp+88h+var_40] mov rdx, rbx call _ZN6google8protobuf8internal12ExtensionSet7ForEachISt17_Rb_tree_iteratorISt4pairIKiNS2_9ExtensionEEEZNKS2_49InternalSerializeMessageSetWithCachedSizesToArrayEPKNS0_11MessageLiteEPhPNS0_2io19EpsCopyOutputStreamEE3$_0EET0_T_SJ_SI_; google::protobuf::internal::ExtensionSet::ForEach<std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>,google::protobuf::internal::ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray(google::protobuf::MessageLite const*,uchar *,google::protobuf::io::EpsCopyOutputStream *)::$_0>(std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>,std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>,google::protobuf::internal::ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray(google::protobuf::MessageLite const*,uchar *,google::protobuf::io::EpsCopyOutputStream *)::$_0) mov rax, [rsp+88h+var_68] jmp short loc_9A079
unsigned __int8 * google::protobuf::internal::ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray( google::protobuf::internal::ExtensionSet *this, const google::protobuf::MessageLite *a2, const google::protobuf::internal::ExtensionSet *a3, google::protobuf::io::EpsCopyOutputStream *a4, int a5, int a6) { long long v7; // r12 long long v8; // rbx unsigned __int8 *result; // rax long long v10; // r12 const google::protobuf::internal::ExtensionSet *v11; // [rsp+20h] [rbp-68h] BYREF __int128 v12; // [rsp+28h] [rbp-60h] __int128 v13; // [rsp+38h] [rbp-50h] char v14; // [rsp+48h] [rbp-40h] BYREF v11 = a3; v7 = *((__int16 *)this + 5); v8 = *((_QWORD *)this + 2); *(_QWORD *)&v12 = &v11; *((_QWORD *)&v12 + 1) = a2; *(_QWORD *)&v13 = a4; *((_QWORD *)&v13 + 1) = this; if ( v7 < 0 ) { google::protobuf::internal::ExtensionSet::ForEach<std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>,google::protobuf::internal::ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray(google::protobuf::MessageLite const*,unsigned char *,google::protobuf::io::EpsCopyOutputStream *)::$_0>( (unsigned int)&v14, *(_QWORD *)(v8 + 24), v8 + 8, (unsigned int)&v11, a5, a6, v12, v13); return (unsigned __int8 *)v11; } else { result = (unsigned __int8 *)a3; if ( (_WORD)v7 ) { v10 = v8 + 32 * v7; do { result = (unsigned __int8 *)google::protobuf::internal::ExtensionSet::Extension::InternalSerializeMessageSetItemWithCachedSizesToArray( (google::protobuf::internal::ExtensionSet::Extension *)(v8 + 8), a2, a3, *(_DWORD *)v8, result, a4); v11 = (const google::protobuf::internal::ExtensionSet *)result; v8 += 32LL; } while ( v8 != v10 ); } } return result; }
InternalSerializeMessageSetWithCachedSizesToArray: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R14,RCX LEA RCX,[RSP + 0x20] MOV qword ptr [RCX],RDX MOVSX R12,word ptr [RDI + 0xa] MOV RBX,qword ptr [RDI + 0x10] MOV qword ptr [RSP + 0x28],RCX MOV qword ptr [RSP + 0x30],RSI MOV qword ptr [RSP + 0x38],R14 MOV qword ptr [RSP + 0x40],RDI TEST R12,R12 JS 0x0019a085 MOV RAX,RDX TEST R12W,R12W JZ 0x0019a079 MOV R15,RSI SHL R12,0x5 ADD R12,RBX LAB_0019a057: MOV ECX,dword ptr [RBX] LEA RDI,[RBX + 0x8] MOV RSI,R15 MOV R8,RAX MOV R9,R14 CALL 0x0019a966 MOV qword ptr [RSP + 0x20],RAX ADD RBX,0x20 CMP RBX,R12 JNZ 0x0019a057 LAB_0019a079: ADD RSP,0x68 POP RBX POP R12 POP R14 POP R15 RET LAB_0019a085: MOV RSI,qword ptr [RBX + 0x18] ADD RBX,0x8 MOVUPS XMM0,xmmword ptr [RSP + 0x28] MOVUPS XMM1,xmmword ptr [RSP + 0x38] MOVUPS xmmword ptr [RSP + 0x10],XMM1 MOVUPS xmmword ptr [RSP],XMM0 LEA RDI,[RSP + 0x48] MOV RDX,RBX CALL 0x0019ad2e MOV RAX,qword ptr [RSP + 0x20] JMP 0x0019a079
/* google::protobuf::internal::ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray(google::protobuf::MessageLite const*, unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const */ uchar * __thiscall google::protobuf::internal::ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray (ExtensionSet *this,MessageLite *param_1,uchar *param_2,EpsCopyOutputStream *param_3) { short sVar1; int *piVar2; int *piVar3; int1 auVar4 [16]; uchar *local_68; uchar **local_60; MessageLite *pMStack_58; EpsCopyOutputStream *local_50; ExtensionSet *pEStack_48; int1 local_40 [32]; auVar4._8_8_ = param_2; auVar4._0_8_ = param_2; local_60 = &local_68; sVar1 = *(short *)(this + 10); piVar2 = *(int **)(this + 0x10); pMStack_58 = param_1; local_50 = param_3; pEStack_48 = this; if ((long)sVar1 < 0) { local_68 = param_2; ForEach<std::_Rb_tree_iterator<std::pair<int_const,google::protobuf::internal::ExtensionSet::Extension>>,google::protobuf::internal::ExtensionSet::InternalSerializeMessageSetWithCachedSizesToArray(google::protobuf::MessageLite_const*,unsigned_char*,google::protobuf::io::EpsCopyOutputStream*)const::__0> (local_40,*(int8 *)(piVar2 + 6),piVar2 + 2); param_2 = local_68; } else if (sVar1 != 0) { piVar3 = piVar2 + (long)sVar1 * 8; do { local_68 = auVar4._0_8_; auVar4 = Extension::InternalSerializeMessageSetItemWithCachedSizesToArray ((Extension *)(piVar2 + 2),param_1,auVar4._8_8_,*piVar2,local_68,param_3); param_2 = auVar4._0_8_; piVar2 = piVar2 + 8; } while (piVar2 != piVar3); } return param_2; }
29,350
ha_myisam::rnd_end()
eloqsql/storage/myisam/ha_myisam.cc
int ha_myisam::rnd_end() { DBUG_ENTER("ha_myisam::rnd_end"); ds_mrr.dsmrr_close(); #if !defined(DBUG_OFF) && defined(SQL_SELECT_FIXED_FOR_UPDATE) file->update&= ~HA_STATE_AKTIV; // Forget active row #endif DBUG_RETURN(0); }
O0
cpp
ha_myisam::rnd_end(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi addq $0x510, %rdi # imm = 0x510 callq 0x76d5d0 xorl %eax, %eax addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN9ha_myisam7rnd_endEv: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8] add rdi, 510h; this call _ZN10DsMrr_impl11dsmrr_closeEv; DsMrr_impl::dsmrr_close(void) xor eax, eax add rsp, 10h pop rbp retn
long long ha_myisam::rnd_end(ha_myisam *this) { DsMrr_impl::dsmrr_close((ha_myisam *)((char *)this + 1296)); return 0LL; }
~Item_nodeset_func: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI UD2
/* Item_nodeset_func::~Item_nodeset_func() */ void __thiscall Item_nodeset_func::~Item_nodeset_func(Item_nodeset_func *this) { code *pcVar1; /* WARNING: Does not return */ pcVar1 = (code *)invalidInstructionException(); (*pcVar1)(); }
29,351
ma_pack_rec_unpack
eloqsql/storage/maria/ma_packrec.c
int _ma_pack_rec_unpack(register MARIA_HA *info, MARIA_BIT_BUFF *bit_buff, register uchar *to, uchar *from, ulong reclength) { uchar *end_field; reg3 MARIA_COLUMNDEF *end; MARIA_COLUMNDEF *current_field; MARIA_SHARE *share= info->s; DBUG_ENTER("_ma_pack_rec_unpack"); if (info->s->base.null_bytes) { memcpy(to, from, info->s->base.null_bytes); to+= info->s->base.null_bytes; from+= info->s->base.null_bytes; reclength-= info->s->base.null_bytes; } init_bit_buffer(bit_buff, from, reclength); for (current_field=share->columndef, end=current_field+share->base.fields ; current_field < end ; current_field++,to=end_field) { end_field=to+current_field->length; (*current_field->unpack)(current_field, bit_buff, to, end_field); } if (!bit_buff->error && bit_buff->pos - bit_buff->bits / 8 == bit_buff->end) DBUG_RETURN(0); info->update&= ~HA_STATE_AKTIV; _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); DBUG_RETURN(HA_ERR_WRONG_IN_RECORD); }
O0
c
ma_pack_rec_unpack: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax cmpl $0x0, 0x3fc(%rax) je 0x38341 movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x3fc(%rax), %eax movl %eax, %edx callq 0x2a090 movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x3fc(%rax), %ecx movq -0x20(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x3fc(%rax), %ecx movq -0x28(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x3fc(%rax), %eax movl %eax, %ecx movq -0x30(%rbp), %rax subq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x30(%rbp), %rax movl %eax, %edx callq 0x38440 movq -0x50(%rbp), %rax movq 0x588(%rax), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movq -0x50(%rbp), %rcx movl 0x3c8(%rcx), %ecx imulq $0x38, %rcx, %rcx addq %rcx, %rax movq %rax, -0x40(%rbp) movq -0x48(%rbp), %rax cmpq -0x40(%rbp), %rax jae 0x383cc movq -0x20(%rbp), %rax movq -0x48(%rbp), %rcx movzwl 0x8(%rcx), %ecx movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x48(%rbp), %rax movq 0x18(%rax), %rax movq -0x48(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x38(%rbp), %rcx callq *%rax movq -0x48(%rbp), %rax addq $0x38, %rax movq %rax, -0x48(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x20(%rbp) jmp 0x3837c movq -0x18(%rbp), %rax cmpl $0x0, 0x28(%rax) jne 0x38409 movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq -0x18(%rbp), %rcx movl 0x4(%rcx), %ecx shrl $0x3, %ecx movl %ecx, %ecx movl %ecx, %edx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movq -0x18(%rbp), %rcx cmpq 0x10(%rcx), %rax jne 0x38409 jmp 0x38400 movl $0x0, -0x4(%rbp) jmp 0x38431 movq -0x10(%rbp), %rax movl 0x624(%rax), %ecx andl $-0x3, %ecx movl %ecx, 0x624(%rax) movq -0x10(%rbp), %rdi movl $0x7f, %esi callq 0x33880 movl $0x7f, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw (%rax,%rax)
_ma_pack_rec_unpack: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_50], rax mov rax, [rbp+var_10] mov rax, [rax] cmp dword ptr [rax+3FCh], 0 jz short loc_38341 mov rdi, [rbp+var_20] mov rsi, [rbp+var_28] mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax+3FCh] mov edx, eax call _memcpy mov rax, [rbp+var_10] mov rax, [rax] mov ecx, [rax+3FCh] mov rax, [rbp+var_20] mov ecx, ecx add rax, rcx mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rax, [rax] mov ecx, [rax+3FCh] mov rax, [rbp+var_28] mov ecx, ecx add rax, rcx mov [rbp+var_28], rax mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax+3FCh] mov ecx, eax mov rax, [rbp+var_30] sub rax, rcx mov [rbp+var_30], rax loc_38341: mov rdi, [rbp+var_18] mov rsi, [rbp+var_28] mov rax, [rbp+var_30] mov edx, eax call init_bit_buffer mov rax, [rbp+var_50] mov rax, [rax+588h] mov [rbp+var_48], rax mov rax, [rbp+var_48] mov rcx, [rbp+var_50] mov ecx, [rcx+3C8h] imul rcx, 38h ; '8' add rax, rcx mov [rbp+var_40], rax loc_3837C: mov rax, [rbp+var_48] cmp rax, [rbp+var_40] jnb short loc_383CC mov rax, [rbp+var_20] mov rcx, [rbp+var_48] movzx ecx, word ptr [rcx+8] movsxd rcx, ecx add rax, rcx mov [rbp+var_38], rax mov rax, [rbp+var_48] mov rax, [rax+18h] mov rdi, [rbp+var_48] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] mov rcx, [rbp+var_38] call rax mov rax, [rbp+var_48] add rax, 38h ; '8' mov [rbp+var_48], rax mov rax, [rbp+var_38] mov [rbp+var_20], rax jmp short loc_3837C loc_383CC: mov rax, [rbp+var_18] cmp dword ptr [rax+28h], 0 jnz short loc_38409 mov rax, [rbp+var_18] mov rax, [rax+8] mov rcx, [rbp+var_18] mov ecx, [rcx+4] shr ecx, 3 mov ecx, ecx mov edx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov rcx, [rbp+var_18] cmp rax, [rcx+10h] jnz short loc_38409 jmp short $+2 loc_38400: mov [rbp+var_4], 0 jmp short loc_38431 loc_38409: mov rax, [rbp+var_10] mov ecx, [rax+624h] and ecx, 0FFFFFFFDh mov [rax+624h], ecx mov rdi, [rbp+var_10] mov esi, 7Fh call _ma_set_fatal_error mov [rbp+var_4], 7Fh loc_38431: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long ma_pack_rec_unpack(_DWORD *a1, long long a2, long long a3, long long a4, unsigned int a5) { long long v5; // rdx long long v6; // r8 int v7; // r9d long long v8; // rcx long long v10; // [rsp+0h] [rbp-50h] unsigned long long v11; // [rsp+8h] [rbp-48h] unsigned long long v12; // [rsp+10h] [rbp-40h] long long v13; // [rsp+18h] [rbp-38h] long long v15; // [rsp+28h] [rbp-28h] long long v16; // [rsp+30h] [rbp-20h] v16 = a3; v15 = a4; v10 = *(_QWORD *)a1; if ( *(_DWORD *)(*(_QWORD *)a1 + 1020LL) ) { memcpy(a3, a4, *(unsigned int *)(*(_QWORD *)a1 + 1020LL)); v16 += *(unsigned int *)(*(_QWORD *)a1 + 1020LL); v15 += *(unsigned int *)(*(_QWORD *)a1 + 1020LL); a5 -= *(_DWORD *)(*(_QWORD *)a1 + 1020LL); } init_bit_buffer(a2, v15, a5); v11 = *(_QWORD *)(v10 + 1416); v12 = 56LL * *(unsigned int *)(v10 + 968) + v11; while ( v11 < v12 ) { v13 = *(unsigned __int16 *)(v11 + 8) + v16; (*(void ( **)(unsigned long long, long long, long long, long long))(v11 + 24))(v11, a2, v16, v13); v11 += 56LL; v16 = v13; } if ( *(_DWORD *)(a2 + 40) || (v5 = *(_DWORD *)(a2 + 4) >> 3, *(_QWORD *)(a2 + 8) - v5 != *(_QWORD *)(a2 + 16)) ) { v8 = a1[393] & 0xFFFFFFFD; a1[393] = v8; ma_set_fatal_error(a1, 127, v5, v8, v6, v7); return 127; } else { return 0; } }
_ma_pack_rec_unpack: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x3fc],0x0 JZ 0x00138341 MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x3fc] MOV EDX,EAX CALL 0x0012a090 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RAX + 0x3fc] MOV RAX,qword ptr [RBP + -0x20] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RAX + 0x3fc] MOV RAX,qword ptr [RBP + -0x28] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x3fc] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x30],RAX LAB_00138341: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x30] MOV EDX,EAX CALL 0x00138440 MOV RAX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RAX + 0x588] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RCX + 0x3c8] IMUL RCX,RCX,0x38 ADD RAX,RCX MOV qword ptr [RBP + -0x40],RAX LAB_0013837c: MOV RAX,qword ptr [RBP + -0x48] CMP RAX,qword ptr [RBP + -0x40] JNC 0x001383cc MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x48] MOVZX ECX,word ptr [RCX + 0x8] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX + 0x18] MOV RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x38] CALL RAX MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x38 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x20],RAX JMP 0x0013837c LAB_001383cc: MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x28],0x0 JNZ 0x00138409 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RCX + 0x4] SHR ECX,0x3 MOV ECX,ECX MOV EDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV RCX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RCX + 0x10] JNZ 0x00138409 JMP 0x00138400 LAB_00138400: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00138431 LAB_00138409: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x624] AND ECX,0xfffffffd MOV dword ptr [RAX + 0x624],ECX MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x7f CALL 0x00133880 MOV dword ptr [RBP + -0x4],0x7f LAB_00138431: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
int4 _ma_pack_rec_unpack(long *param_1,long param_2,void *param_3,void *param_4,int param_5) { long lVar1; ulong uVar2; void *pvVar3; int8 local_50; int8 local_30; int8 local_28; int4 local_c; lVar1 = *param_1; local_30 = param_4; local_28 = param_3; if (*(int *)(*param_1 + 0x3fc) != 0) { memcpy(param_3,param_4,(ulong)*(uint *)(*param_1 + 0x3fc)); local_28 = (void *)((long)param_3 + (ulong)*(uint *)(*param_1 + 0x3fc)); local_30 = (void *)((long)param_4 + (ulong)*(uint *)(*param_1 + 0x3fc)); param_5 = param_5 - *(int *)(*param_1 + 0x3fc); } init_bit_buffer(param_2,local_30,param_5); local_50 = *(ulong *)(lVar1 + 0x588); uVar2 = local_50 + (ulong)*(uint *)(lVar1 + 0x3c8) * 0x38; for (; local_50 < uVar2; local_50 = local_50 + 0x38) { pvVar3 = (void *)((long)local_28 + (long)(int)(uint)*(ushort *)(local_50 + 8)); (**(code **)(local_50 + 0x18))(local_50,param_2,local_28,pvVar3); local_28 = pvVar3; } if ((*(int *)(param_2 + 0x28) == 0) && (*(long *)(param_2 + 8) - (ulong)(*(uint *)(param_2 + 4) >> 3) == *(long *)(param_2 + 0x10))) { local_c = 0; } else { *(uint *)((long)param_1 + 0x624) = *(uint *)((long)param_1 + 0x624) & 0xfffffffd; _ma_set_fatal_error(param_1,0x7f); local_c = 0x7f; } return local_c; }
29,352
options_add_initcommand
eloqsql/libmariadb/libmariadb/mariadb_lib.c
static void options_add_initcommand(struct st_mysql_options *options, const char *init_cmd) { char *insert= strdup(init_cmd); if (!options->init_command) { options->init_command= (DYNAMIC_ARRAY*)malloc(sizeof(DYNAMIC_ARRAY)); ma_init_dynamic_array(options->init_command, sizeof(char*), 5, 5); } if (ma_insert_dynamic(options->init_command, (gptr)&insert)) free(insert); }
O3
c
options_add_initcommand: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movq %rsi, %rdi callq 0x14800 movq %rax, -0x10(%rbp) movq 0x48(%rbx), %rdi testq %rdi, %rdi jne 0x2d529 movl $0x18, %edi callq 0x14620 movq %rax, 0x48(%rbx) movq %rax, %rdi movl $0x8, %esi movl $0x5, %edx movl $0x5, %ecx callq 0x40f18 movq 0x48(%rbx), %rdi leaq -0x10(%rbp), %rsi callq 0x40f90 testb %al, %al je 0x2d53f movq -0x10(%rbp), %rdi callq 0x14590 addq $0x8, %rsp popq %rbx popq %rbp retq
options_add_initcommand: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov rdi, rsi call _strdup mov [rbp+var_10], rax mov rdi, [rbx+48h] test rdi, rdi jnz short loc_2D529 mov edi, 18h call _malloc mov [rbx+48h], rax mov rdi, rax mov esi, 8 mov edx, 5 mov ecx, 5 call ma_init_dynamic_array mov rdi, [rbx+48h] loc_2D529: lea rsi, [rbp+var_10] call ma_insert_dynamic test al, al jz short loc_2D53F mov rdi, [rbp+var_10] call _free loc_2D53F: add rsp, 8 pop rbx pop rbp retn
long long options_add_initcommand(long long a1, long long a2) { long long v3; // rdi long long v4; // rax long long result; // rax long long v6; // [rsp+0h] [rbp-10h] BYREF v6 = strdup(a2); v3 = *(_QWORD *)(a1 + 72); if ( !v3 ) { v4 = malloc(24LL); *(_QWORD *)(a1 + 72) = v4; ma_init_dynamic_array(v4, 8LL, 5LL, 5LL); v3 = *(_QWORD *)(a1 + 72); } result = ma_insert_dynamic(v3, &v6); if ( (_BYTE)result ) return free(v6); return result; }
options_add_initcommand: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV RDI,RSI CALL 0x00114800 MOV qword ptr [RBP + -0x10],RAX MOV RDI,qword ptr [RBX + 0x48] TEST RDI,RDI JNZ 0x0012d529 MOV EDI,0x18 CALL 0x00114620 MOV qword ptr [RBX + 0x48],RAX MOV RDI,RAX MOV ESI,0x8 MOV EDX,0x5 MOV ECX,0x5 CALL 0x00140f18 MOV RDI,qword ptr [RBX + 0x48] LAB_0012d529: LEA RSI,[RBP + -0x10] CALL 0x00140f90 TEST AL,AL JZ 0x0012d53f MOV RDI,qword ptr [RBP + -0x10] CALL 0x00114590 LAB_0012d53f: ADD RSP,0x8 POP RBX POP RBP RET
void options_add_initcommand(long param_1,char *param_2) { char cVar1; void *pvVar2; long lVar3; char *local_18; local_18 = strdup(param_2); lVar3 = *(long *)(param_1 + 0x48); if (lVar3 == 0) { pvVar2 = malloc(0x18); *(void **)(param_1 + 0x48) = pvVar2; ma_init_dynamic_array(pvVar2,8,5,5); lVar3 = *(long *)(param_1 + 0x48); } cVar1 = ma_insert_dynamic(lVar3,&local_18); if (cVar1 != '\0') { free(local_18); } return; }
29,353
SaveFileText
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/utils.c
bool SaveFileText(const char *fileName, char *text) { bool success = false; if (fileName != NULL) { if (saveFileText) { return saveFileText(fileName, text); } #if defined(SUPPORT_STANDARD_FILEIO) FILE *file = fopen(fileName, "wt"); if (file != NULL) { int count = fprintf(file, "%s", text); if (count < 0) TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to write text file", fileName); else TRACELOG(LOG_INFO, "FILEIO: [%s] Text file saved successfully", fileName); int result = fclose(file); if (result == 0) success = true; } else TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to open text file", fileName); #else TRACELOG(LOG_WARNING, "FILEIO: Standard file io not supported, use custom file callback"); #endif } else TRACELOG(LOG_WARNING, "FILEIO: File name provided is not valid"); return success; }
O2
c
SaveFileText: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax testq %rdi, %rdi je 0xa1957 movq %rsi, %r15 movq %rdi, %rbx movq 0x8f460(%rip), %rax # 0x130da0 testq %rax, %rax je 0xa196c movq %rbx, %rdi movq %r15, %rsi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmpq *%rax leaq 0x33712(%rip), %rsi # 0xd5070 xorl %ebp, %ebp pushq $0x4 popq %rdi xorl %eax, %eax callq 0xa128b jmp 0xa19e0 leaq 0x1fd9b(%rip), %rsi # 0xc170e movq %rbx, %rdi callq 0x9620 testq %rax, %rax je 0xa19a6 movq %rax, %r14 leaq 0x234cf(%rip), %rsi # 0xc4e59 movq %rax, %rdi movq %r15, %rdx xorl %eax, %eax callq 0x9780 testl %eax, %eax js 0xa19be leaq 0x3395c(%rip), %rsi # 0xd52fe pushq $0x3 jmp 0xa19c7 leaq 0x33904(%rip), %rsi # 0xd52b1 xorl %ebp, %ebp pushq $0x4 popq %rdi movq %rbx, %rdx xorl %eax, %eax callq 0xa128b jmp 0xa19e0 leaq 0x33912(%rip), %rsi # 0xd52d7 pushq $0x4 popq %rdi movq %rbx, %rdx xorl %eax, %eax callq 0xa128b movq %r14, %rdi callq 0x9510 testl %eax, %eax sete %bpl movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
SaveFileText: push rbp push r15 push r14 push rbx push rax test rdi, rdi jz short loc_A1957 mov r15, rsi mov rbx, rdi mov rax, cs:saveFileText test rax, rax jz short loc_A196C mov rdi, rbx mov rsi, r15 add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp rax loc_A1957: lea rsi, aFileioFileName; "FILEIO: File name provided is not valid" xor ebp, ebp push 4 pop rdi xor eax, eax call TraceLog jmp short loc_A19E0 loc_A196C: lea rsi, aSowt+2; "wt" mov rdi, rbx call _fopen test rax, rax jz short loc_A19A6 mov r14, rax lea rsi, aGlslS+10h; "%s" mov rdi, rax mov rdx, r15 xor eax, eax call _fprintf test eax, eax js short loc_A19BE lea rsi, aFileioSTextFil; "FILEIO: [%s] Text file saved successful"... push 3 jmp short loc_A19C7 loc_A19A6: lea rsi, aFileioSFailedT_9; "FILEIO: [%s] Failed to open text file" xor ebp, ebp push 4 pop rdi mov rdx, rbx xor eax, eax call TraceLog jmp short loc_A19E0 loc_A19BE: lea rsi, aFileioSFailedT_10; "FILEIO: [%s] Failed to write text file" push 4 loc_A19C7: pop rdi mov rdx, rbx xor eax, eax call TraceLog mov rdi, r14 call _fclose test eax, eax setz bpl loc_A19E0: mov eax, ebp add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long SaveFileText(const char *a1, const char *a2) { unsigned int v2; // ebp long long v4; // rax long long v5; // r14 if ( a1 ) { if ( saveFileText ) return saveFileText(a1, a2); v4 = fopen(a1, "wt"); if ( v4 ) { v5 = v4; if ( (int)fprintf(v4, "%s", a2) < 0 ) TraceLog(4, (long long)"FILEIO: [%s] Failed to write text file", a1); else TraceLog(3, (long long)"FILEIO: [%s] Text file saved successfully", a1); LOBYTE(v2) = (unsigned int)fclose(v5) == 0; } else { v2 = 0; TraceLog(4, (long long)"FILEIO: [%s] Failed to open text file", a1); } } else { v2 = 0; TraceLog(4, (long long)"FILEIO: File name provided is not valid"); } return v2; }
SaveFileText: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX TEST RDI,RDI JZ 0x001a1957 MOV R15,RSI MOV RBX,RDI MOV RAX,qword ptr [0x00230da0] TEST RAX,RAX JZ 0x001a196c MOV RDI,RBX MOV RSI,R15 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP RAX LAB_001a1957: LEA RSI,[0x1d5070] XOR EBP,EBP PUSH 0x4 POP RDI XOR EAX,EAX CALL 0x001a128b JMP 0x001a19e0 LAB_001a196c: LEA RSI,[0x1c170e] MOV RDI,RBX CALL 0x00109620 TEST RAX,RAX JZ 0x001a19a6 MOV R14,RAX LEA RSI,[0x1c4e59] MOV RDI,RAX MOV RDX,R15 XOR EAX,EAX CALL 0x00109780 TEST EAX,EAX JS 0x001a19be LEA RSI,[0x1d52fe] PUSH 0x3 JMP 0x001a19c7 LAB_001a19a6: LEA RSI,[0x1d52b1] XOR EBP,EBP PUSH 0x4 POP RDI MOV RDX,RBX XOR EAX,EAX CALL 0x001a128b JMP 0x001a19e0 LAB_001a19be: LEA RSI,[0x1d52d7] PUSH 0x4 LAB_001a19c7: POP RDI MOV RDX,RBX XOR EAX,EAX CALL 0x001a128b MOV RDI,R14 CALL 0x00109510 TEST EAX,EAX SETZ BPL LAB_001a19e0: MOV EAX,EBP ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
ulong SaveFileText(char *param_1,int8 param_2) { int iVar1; ulong uVar2; FILE *__stream; int8 unaff_RBP; char *pcVar3; int8 uStack_30; if (param_1 == (char *)0x0) { uVar2 = 0; TraceLog(4,"FILEIO: File name provided is not valid"); } else { if (saveFileText != (code *)0x0) { /* WARNING: Could not recover jumptable at 0x001a1955. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar2 = (*saveFileText)(param_1,param_2); return uVar2; } __stream = fopen(param_1,"wt"); if (__stream == (FILE *)0x0) { uVar2 = 0; TraceLog(4,"FILEIO: [%s] Failed to open text file",param_1); } else { iVar1 = fprintf(__stream,"%s",param_2); if (iVar1 < 0) { pcVar3 = "FILEIO: [%s] Failed to write text file"; uStack_30 = 4; } else { pcVar3 = "FILEIO: [%s] Text file saved successfully"; uStack_30 = 3; } TraceLog(uStack_30,pcVar3,param_1); iVar1 = fclose(__stream); uVar2 = CONCAT71((int7)((ulong)unaff_RBP >> 8),iVar1 == 0); } } return uVar2 & 0xffffffff; }
29,354
SaveFileText
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/utils.c
bool SaveFileText(const char *fileName, char *text) { bool success = false; if (fileName != NULL) { if (saveFileText) { return saveFileText(fileName, text); } #if defined(SUPPORT_STANDARD_FILEIO) FILE *file = fopen(fileName, "wt"); if (file != NULL) { int count = fprintf(file, "%s", text); if (count < 0) TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to write text file", fileName); else TRACELOG(LOG_INFO, "FILEIO: [%s] Text file saved successfully", fileName); int result = fclose(file); if (result == 0) success = true; } else TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to open text file", fileName); #else TRACELOG(LOG_WARNING, "FILEIO: Standard file io not supported, use custom file callback"); #endif } else TRACELOG(LOG_WARNING, "FILEIO: File name provided is not valid"); return success; }
O3
c
SaveFileText: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax testq %rdi, %rdi je 0xba4e7 movq %rsi, %r15 movq %rdi, %rbx movq 0x8a8b0(%rip), %rax # 0x144d80 testq %rax, %rax je 0xba4fe movq %rbx, %rdi movq %r15, %rsi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmpq *%rax leaq 0x34a92(%rip), %rsi # 0xeef80 xorl %ebp, %ebp movl $0x4, %edi xorl %eax, %eax callq 0xb9db7 jmp 0xba579 leaq 0x34ce2(%rip), %rsi # 0xef1e7 movq %rbx, %rdi callq 0xa630 testq %rax, %rax je 0xba53b movq %rax, %r14 leaq 0x247b5(%rip), %rsi # 0xdecd1 movq %rax, %rdi movq %r15, %rdx xorl %eax, %eax callq 0xa790 testl %eax, %eax js 0xba555 leaq 0x34cdd(%rip), %rsi # 0xef211 movl $0x3, %edi jmp 0xba561 leaq 0x34c7f(%rip), %rsi # 0xef1c1 xorl %ebp, %ebp movl $0x4, %edi movq %rbx, %rdx xorl %eax, %eax callq 0xb9db7 jmp 0xba579 leaq 0x34c8e(%rip), %rsi # 0xef1ea movl $0x4, %edi movq %rbx, %rdx xorl %eax, %eax callq 0xb9db7 movq %r14, %rdi callq 0xa520 testl %eax, %eax sete %bpl movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
SaveFileText: push rbp push r15 push r14 push rbx push rax test rdi, rdi jz short loc_BA4E7 mov r15, rsi mov rbx, rdi mov rax, cs:saveFileText test rax, rax jz short loc_BA4FE mov rdi, rbx mov rsi, r15 add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp rax loc_BA4E7: lea rsi, aFileioFileName; "FILEIO: File name provided is not valid" xor ebp, ebp mov edi, 4 xor eax, eax call TraceLog jmp short loc_BA579 loc_BA4FE: lea rsi, aWt; "wt" mov rdi, rbx call _fopen test rax, rax jz short loc_BA53B mov r14, rax lea rsi, aGlslS+10h; "%s" mov rdi, rax mov rdx, r15 xor eax, eax call _fprintf test eax, eax js short loc_BA555 lea rsi, aFileioSTextFil; "FILEIO: [%s] Text file saved successful"... mov edi, 3 jmp short loc_BA561 loc_BA53B: lea rsi, aFileioSFailedT_9; "FILEIO: [%s] Failed to open text file" xor ebp, ebp mov edi, 4 mov rdx, rbx xor eax, eax call TraceLog jmp short loc_BA579 loc_BA555: lea rsi, aFileioSFailedT_10; "FILEIO: [%s] Failed to write text file" mov edi, 4 loc_BA561: mov rdx, rbx xor eax, eax call TraceLog mov rdi, r14 call _fclose test eax, eax setz bpl loc_BA579: mov eax, ebp add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long SaveFileText(const char *a1, const char *a2) { unsigned int v2; // ebp long long v4; // rax long long v5; // r14 if ( a1 ) { if ( saveFileText ) return saveFileText(a1, a2); v4 = fopen(a1, "wt"); if ( v4 ) { v5 = v4; if ( (int)fprintf(v4, "%s", a2) < 0 ) TraceLog(4, (long long)"FILEIO: [%s] Failed to write text file", a1); else TraceLog(3, (long long)"FILEIO: [%s] Text file saved successfully", a1); LOBYTE(v2) = (unsigned int)fclose(v5) == 0; } else { v2 = 0; TraceLog(4, (long long)"FILEIO: [%s] Failed to open text file", a1); } } else { v2 = 0; TraceLog(4, (long long)"FILEIO: File name provided is not valid"); } return v2; }
SaveFileText: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX TEST RDI,RDI JZ 0x001ba4e7 MOV R15,RSI MOV RBX,RDI MOV RAX,qword ptr [0x00244d80] TEST RAX,RAX JZ 0x001ba4fe MOV RDI,RBX MOV RSI,R15 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP RAX LAB_001ba4e7: LEA RSI,[0x1eef80] XOR EBP,EBP MOV EDI,0x4 XOR EAX,EAX CALL 0x001b9db7 JMP 0x001ba579 LAB_001ba4fe: LEA RSI,[0x1ef1e7] MOV RDI,RBX CALL 0x0010a630 TEST RAX,RAX JZ 0x001ba53b MOV R14,RAX LEA RSI,[0x1decd1] MOV RDI,RAX MOV RDX,R15 XOR EAX,EAX CALL 0x0010a790 TEST EAX,EAX JS 0x001ba555 LEA RSI,[0x1ef211] MOV EDI,0x3 JMP 0x001ba561 LAB_001ba53b: LEA RSI,[0x1ef1c1] XOR EBP,EBP MOV EDI,0x4 MOV RDX,RBX XOR EAX,EAX CALL 0x001b9db7 JMP 0x001ba579 LAB_001ba555: LEA RSI,[0x1ef1ea] MOV EDI,0x4 LAB_001ba561: MOV RDX,RBX XOR EAX,EAX CALL 0x001b9db7 MOV RDI,R14 CALL 0x0010a520 TEST EAX,EAX SETZ BPL LAB_001ba579: MOV EAX,EBP ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
ulong SaveFileText(char *param_1,int8 param_2) { int iVar1; ulong uVar2; FILE *__stream; int8 unaff_RBP; char *pcVar3; int8 uVar4; if (param_1 == (char *)0x0) { uVar2 = 0; TraceLog(4,"FILEIO: File name provided is not valid"); } else { if (saveFileText != (code *)0x0) { /* WARNING: Could not recover jumptable at 0x001ba4e5. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar2 = (*saveFileText)(param_1,param_2); return uVar2; } __stream = fopen(param_1,"wt"); if (__stream == (FILE *)0x0) { uVar2 = 0; TraceLog(4,"FILEIO: [%s] Failed to open text file",param_1); } else { iVar1 = fprintf(__stream,"%s",param_2); if (iVar1 < 0) { pcVar3 = "FILEIO: [%s] Failed to write text file"; uVar4 = 4; } else { pcVar3 = "FILEIO: [%s] Text file saved successfully"; uVar4 = 3; } TraceLog(uVar4,pcVar3,param_1); iVar1 = fclose(__stream); uVar2 = CONCAT71((int7)((ulong)unaff_RBP >> 8),iVar1 == 0); } } return uVar2 & 0xffffffff; }
29,355
aimrt::runtime::core::rpc::LocalRpcBackend::RegisterGetExecutorFunc(std::function<aimrt::executor::ExecutorRef (std::basic_string_view<char, std::char_traits<char>>)> const&)
aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/rpc/local_rpc_backend.cc
void LocalRpcBackend::RegisterGetExecutorFunc( const std::function<aimrt::executor::ExecutorRef(std::string_view)>& get_executor_func) { AIMRT_CHECK_ERROR_THROW( state_.load() == State::kPreInit, "Method can only be called when state is 'PreInit'."); get_executor_func_ = get_executor_func; }
O3
cpp
aimrt::runtime::core::rpc::LocalRpcBackend::RegisterGetExecutorFunc(std::function<aimrt::executor::ExecutorRef (std::basic_string_view<char, std::char_traits<char>>)> const&): pushq %rbx subq $0x40, %rsp movq %rdi, %rbx movl 0x28(%rdi), %eax testl %eax, %eax jne 0xfda3e addq $0x48, %rbx movq %rbx, %rdi addq $0x40, %rsp popq %rbx jmp 0x9b042 leaq 0xf2f8c(%rip), %rsi # 0x1f09d1 leaq 0x10(%rsp), %rdi leaq 0x30(%rsp), %r8 movl $0x32, %edx xorl %ecx, %ecx callq 0x9b9c8 movq 0x30(%rbx), %rbx cmpq $0x0, 0x10(%rbx) jne 0xfda6b callq 0x80b20 movq %rbx, %rdi callq *0x18(%rbx) cmpl $0x4, %eax ja 0xfdaa8 movq 0x10(%rsp), %r9 movq 0x18(%rsp), %rax addq $0x20, %rbx movq %rax, (%rsp) leaq 0xfa0d5(%rip), %rcx # 0x1f7b64 leaq 0xf2f6e(%rip), %r8 # 0x1f0a04 movq %rbx, %rdi movl $0x4, %esi movl $0x187, %edx # imm = 0x187 callq 0x83aa0 movl $0x28, %edi callq 0x80f20 leaq 0x19946f(%rip), %rcx # 0x296f28 movq %rcx, (%rax) leaq 0x18(%rax), %rdx movq %rdx, 0x8(%rax) leaq 0x20(%rsp), %rcx movq -0x10(%rcx), %rsi cmpq %rcx, %rsi jne 0xfdada movups (%rcx), %xmm0 movups %xmm0, (%rdx) jmp 0xfdae7 movq %rsi, 0x8(%rax) movq 0x20(%rsp), %rdx movq %rdx, 0x18(%rax) movq 0x18(%rsp), %rdx movq %rdx, 0x10(%rax) movq %rcx, 0x10(%rsp) movq $0x0, 0x18(%rsp) movb $0x0, 0x20(%rsp) leaq 0x199336(%rip), %rsi # 0x296e40 leaq -0x62faf(%rip), %rdx # 0x9ab62 movq %rax, %rdi callq 0x83970 jmp 0xfdb1b movq %rax, %rbx leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xfdb39 movq 0x20(%rsp), %rsi incq %rsi callq 0x82190 movq %rbx, %rdi callq 0x83b70 nop
_ZN5aimrt7runtime4core3rpc15LocalRpcBackend23RegisterGetExecutorFuncERKSt8functionIFNS_8executor11ExecutorRefESt17basic_string_viewIcSt11char_traitsIcEEEE: push rbx sub rsp, 40h mov rbx, rdi mov eax, [rdi+28h] test eax, eax jnz short loc_FDA3E add rbx, 48h ; 'H' mov rdi, rbx add rsp, 40h pop rbx jmp _ZNSt8functionIFN5aimrt8executor11ExecutorRefESt17basic_string_viewIcSt11char_traitsIcEEEEaSERKS8_; std::function<aimrt::executor::ExecutorRef ()(std::string_view)>::operator=(std::function<aimrt::executor::ExecutorRef ()(std::string_view)> const&) loc_FDA3E: lea rsi, aMethodCanOnlyB_0; "Method can only be called when state is"... lea rdi, [rsp+48h+var_38]; int lea r8, [rsp+48h+var_18]; int mov edx, 32h ; '2'; int xor ecx, ecx; int call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>) mov rbx, [rbx+30h] cmp qword ptr [rbx+10h], 0 jnz short loc_FDA6B call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) loc_FDA6B: mov rdi, rbx call qword ptr [rbx+18h] cmp eax, 4 ja short loc_FDAA8 mov r9, qword ptr [rsp+48h+var_38] mov rax, [rsp+48h+var_30] add rbx, 20h ; ' ' mov [rsp+48h+var_48], rax lea rcx, aWorkspaceLlm4b_12; "/workspace/llm4binary/github2025/aimrt_"... lea r8, aRegistergetexe; "RegisterGetExecutorFunc" mov rdi, rbx mov esi, 4 mov edx, 187h call __ZNKSt8functionIFvjjPKcS1_S1_mEEclEjjS1_S1_S1_m; std::function<void ()(uint,uint,char const*,char const*,char const*,ulong)>::operator()(uint,uint,char const*,char const*,char const*,ulong) loc_FDAA8: mov edi, 28h ; '('; thrown_size call ___cxa_allocate_exception lea rcx, off_296F28 mov [rax], rcx lea rdx, [rax+18h] mov [rax+8], rdx lea rcx, [rsp+48h+var_28] mov rsi, [rcx-10h] cmp rsi, rcx jnz short loc_FDADA movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rdx], xmm0 jmp short loc_FDAE7 loc_FDADA: mov [rax+8], rsi mov rdx, [rsp+48h+var_28] mov [rax+18h], rdx loc_FDAE7: mov rdx, [rsp+48h+var_30] mov [rax+10h], rdx mov qword ptr [rsp+48h+var_38], rcx mov [rsp+48h+var_30], 0 mov byte ptr [rsp+48h+var_28], 0 lea rsi, _ZTIN5aimrt6common4util14AimRTExceptionE; lptinfo lea rdx, _ZN5aimrt6common4util14AimRTExceptionD2Ev; void (*)(void *) mov rdi, rax; void * call ___cxa_throw jmp short $+2 loc_FDB1B: mov rbx, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_FDB39 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_FDB39: mov rdi, rbx call __Unwind_Resume
__int128 * aimrt::runtime::core::rpc::LocalRpcBackend::RegisterGetExecutorFunc(long long a1) { long long v2; // rbx char *exception; // rax int v4[2]; // [rsp+10h] [rbp-38h] BYREF long long v5; // [rsp+18h] [rbp-30h] __int128 v6; // [rsp+20h] [rbp-28h] BYREF int v7[6]; // [rsp+30h] [rbp-18h] BYREF if ( *(_DWORD *)(a1 + 40) ) { fmt::v10::vformat[abi:cxx11](v4, "Method can only be called when state is 'PreInit'.", 50LL, 0LL, (long long)v7); v2 = *(_QWORD *)(a1 + 48); if ( !*(_QWORD *)(v2 + 16) ) std::__throw_bad_function_call(); if ( (*(unsigned int ( **)(long long))(v2 + 24))(v2) <= 4 ) std::function<void ()(unsigned int,unsigned int,char const*,char const*,char const*,unsigned long)>::operator()( v2 + 32, 4, 391, (unsigned int)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/rpc/local_rpc_backend.cc", (unsigned int)"RegisterGetExecutorFunc", v4[0], v5); exception = (char *)__cxa_allocate_exception(0x28uLL); *(_QWORD *)exception = off_296F28; *((_QWORD *)exception + 1) = exception + 24; if ( *(__int128 **)v4 == &v6 ) { *(_OWORD *)(exception + 24) = v6; } else { *((_QWORD *)exception + 1) = *(_QWORD *)v4; *((_QWORD *)exception + 3) = v6; } *((_QWORD *)exception + 2) = v5; *(_QWORD *)v4 = &v6; v5 = 0LL; LOBYTE(v6) = 0; __cxa_throw( exception, (struct type_info *)&`typeinfo for'aimrt::common::util::AimRTException, (void (*)(void *))aimrt::common::util::AimRTException::~AimRTException); } return std::function<aimrt::executor::ExecutorRef ()(std::string_view)>::operator=((__int128 *)(a1 + 72)); }
RegisterGetExecutorFunc: PUSH RBX SUB RSP,0x40 MOV RBX,RDI MOV EAX,dword ptr [RDI + 0x28] TEST EAX,EAX JNZ 0x001fda3e ADD RBX,0x48 MOV RDI,RBX ADD RSP,0x40 POP RBX JMP 0x0019b042 LAB_001fda3e: LEA RSI,[0x2f09d1] LEA RDI,[RSP + 0x10] LEA R8,[RSP + 0x30] MOV EDX,0x32 XOR ECX,ECX CALL 0x0019b9c8 MOV RBX,qword ptr [RBX + 0x30] CMP qword ptr [RBX + 0x10],0x0 JNZ 0x001fda6b LAB_001fda66: CALL 0x00180b20 LAB_001fda6b: MOV RDI,RBX CALL qword ptr [RBX + 0x18] CMP EAX,0x4 JA 0x001fdaa8 MOV R9,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x18] ADD RBX,0x20 LAB_001fda84: MOV qword ptr [RSP],RAX LEA RCX,[0x2f7b64] LEA R8,[0x2f0a04] MOV RDI,RBX MOV ESI,0x4 MOV EDX,0x187 CALL 0x00183aa0 LAB_001fdaa8: MOV EDI,0x28 CALL 0x00180f20 LEA RCX,[0x396f28] MOV qword ptr [RAX],RCX LEA RDX,[RAX + 0x18] MOV qword ptr [RAX + 0x8],RDX LEA RCX,[RSP + 0x20] MOV RSI,qword ptr [RCX + -0x10] CMP RSI,RCX JNZ 0x001fdada MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RDX],XMM0 JMP 0x001fdae7 LAB_001fdada: MOV qword ptr [RAX + 0x8],RSI MOV RDX,qword ptr [RSP + 0x20] MOV qword ptr [RAX + 0x18],RDX LAB_001fdae7: MOV RDX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x10],RDX MOV qword ptr [RSP + 0x10],RCX MOV qword ptr [RSP + 0x18],0x0 MOV byte ptr [RSP + 0x20],0x0 LAB_001fdb03: LEA RSI,[0x396e40] LEA RDX,[0x19ab62] MOV RDI,RAX CALL 0x00183970
/* aimrt::runtime::core::rpc::LocalRpcBackend::RegisterGetExecutorFunc(std::function<aimrt::executor::ExecutorRef (std::basic_string_view<char, std::char_traits<char> >)> const&) */ void __thiscall aimrt::runtime::core::rpc::LocalRpcBackend::RegisterGetExecutorFunc (LocalRpcBackend *this,function *param_1) { long lVar1; uint uVar2; int8 *puVar3; uint *local_38; int8 local_30; uint local_28; int4 uStack_24; int4 uStack_20; int4 uStack_1c; int1 local_18 [16]; if (*(int *)(this + 0x28) == 0) { std::function<aimrt::executor::ExecutorRef(std::basic_string_view<char,std::char_traits<char>>)> ::operator=((function<aimrt::executor::ExecutorRef(std::basic_string_view<char,std::char_traits<char>>)> *)(this + 0x48),param_1); return; } fmt::v10::vformat_abi_cxx11_ (&local_38,"Method can only be called when state is \'PreInit\'.",0x32,0,local_18); lVar1 = *(long *)(this + 0x30); if (*(long *)(lVar1 + 0x10) == 0) { /* WARNING: Subroutine does not return */ /* try { // try from 001fda66 to 001fda70 has its CatchHandler @ 001fdb1b */ std::__throw_bad_function_call(); } uVar2 = (**(code **)(lVar1 + 0x18))(lVar1); if (uVar2 < 5) { /* try { // try from 001fda84 to 001fdaa7 has its CatchHandler @ 001fdb19 */ std::function<void(unsigned_int,unsigned_int,char_const*,char_const*,char_const*,unsigned_long)> ::operator()((int)lVar1 + 0x20,4,(char *)0x187, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/rpc/local_rpc_backend.cc" ,"RegisterGetExecutorFunc",(ulong)local_38); } puVar3 = (int8 *)__cxa_allocate_exception(0x28); *puVar3 = &PTR__AimRTException_00396f28; puVar3[1] = puVar3 + 3; if (local_38 == &local_28) { *(uint *)(puVar3 + 3) = local_28; *(int4 *)((long)puVar3 + 0x1c) = uStack_24; *(int4 *)(puVar3 + 4) = uStack_20; *(int4 *)((long)puVar3 + 0x24) = uStack_1c; } else { puVar3[1] = local_38; puVar3[3] = CONCAT44(uStack_24,local_28); } puVar3[2] = local_30; local_30 = 0; local_28 = local_28 & 0xffffff00; local_38 = &local_28; /* try { // try from 001fdb03 to 001fdb18 has its CatchHandler @ 001fdb1b */ /* WARNING: Subroutine does not return */ __cxa_throw(puVar3,&common::util::AimRTException::typeinfo, common::util::AimRTException::~AimRTException); }
29,356
Catch::Session::~Session()
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
Session::~Session() { Catch::cleanUp(); }
O3
cpp
Catch::Session::~Session(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0x4cac7 leaq 0xdf2c1(%rip), %r14 # 0x134060 movq (%r14), %rdi testq %rdi, %rdi je 0x54dad movq (%rdi), %rax callq *0x8(%rax) movq $0x0, (%r14) movq 0x170(%rbx), %rdi testq %rdi, %rdi je 0x54dc6 movq (%rdi), %rax callq *0x8(%rax) leaq 0x158(%rbx), %rdi callq 0x783e8 leaq 0x140(%rbx), %rdi callq 0x783e8 leaq 0x128(%rbx), %rdi callq 0x7b5f4 movq 0x108(%rbx), %rdi leaq 0x118(%rbx), %rax cmpq %rax, %rdi je 0x54e08 movq (%rax), %rsi incq %rsi callq 0x17150 movq 0xe8(%rbx), %rdi leaq 0xf8(%rbx), %rax cmpq %rax, %rdi je 0x54e26 movq (%rax), %rsi incq %rsi callq 0x17150 movq 0xc8(%rbx), %rdi leaq 0xd8(%rbx), %rax cmpq %rax, %rdi je 0x54e44 movq (%rax), %rsi incq %rsi callq 0x17150 leaq 0xd9b2d(%rip), %rax # 0x12e978 addq $0x10, %rax movq %rax, (%rbx) leaq 0x48(%rbx), %rdi callq 0x7bcca leaq 0x30(%rbx), %rdi callq 0x7bc82 leaq 0xd8695(%rip), %rax # 0x12d500 addq $0x10, %rax movq %rax, 0x8(%rbx) movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0x54e81 callq 0x33e7c movq 0x18(%rbx), %rdi addq $0x8, %rsp testq %rdi, %rdi je 0x54e96 popq %rbx popq %r14 jmp 0x33e7c popq %rbx popq %r14 retq movq %rax, %rdi callq 0x1f2c3
_ZN5Catch7SessionD2Ev: push r14; Alternative name is 'Catch::Session::~Session()' push rbx push rax mov rbx, rdi call _ZN5Catch17cleanupSingletonsEv; Catch::cleanupSingletons(void) lea r14, _ZN5Catch15IMutableContext14currentContextE; Catch::IMutableContext::currentContext mov rdi, [r14] test rdi, rdi jz short loc_54DAD mov rax, [rdi] call qword ptr [rax+8] loc_54DAD: mov qword ptr [r14], 0 mov rdi, [rbx+170h] test rdi, rdi jz short loc_54DC6 mov rax, [rdi] call qword ptr [rax+8] loc_54DC6: lea rdi, [rbx+158h] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rbx+140h] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rbx+128h] call _ZNSt6vectorIN5Catch12ReporterSpecESaIS1_EED2Ev; std::vector<Catch::ReporterSpec>::~vector() mov rdi, [rbx+108h]; void * lea rax, [rbx+118h] cmp rdi, rax jz short loc_54E08 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_54E08: mov rdi, [rbx+0E8h]; void * lea rax, [rbx+0F8h] cmp rdi, rax jz short loc_54E26 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_54E26: mov rdi, [rbx+0C8h]; void * lea rax, [rbx+0D8h] cmp rdi, rax jz short loc_54E44 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_54E44: lea rax, _ZTVN5Catch5Clara6ParserE; `vtable for'Catch::Clara::Parser add rax, 10h mov [rbx], rax lea rdi, [rbx+48h] call _ZNSt6vectorIN5Catch5Clara3ArgESaIS2_EED2Ev; std::vector<Catch::Clara::Arg>::~vector() lea rdi, [rbx+30h] call _ZNSt6vectorIN5Catch5Clara3OptESaIS2_EED2Ev; std::vector<Catch::Clara::Opt>::~vector() lea rax, _ZTVN5Catch5Clara7ExeNameE; `vtable for'Catch::Clara::ExeName add rax, 10h mov [rbx+8], rax mov rdi, [rbx+28h] test rdi, rdi jz short loc_54E81 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_54E81: mov rdi, [rbx+18h] add rsp, 8 test rdi, rdi jz short loc_54E96 pop rbx pop r14 jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_54E96: pop rbx pop r14 retn mov rdi, rax call __clang_call_terminate
void Catch::Session::~Session(volatile signed __int32 **this) { volatile signed __int32 *v2; // rdi volatile signed __int32 **v3; // rdi volatile signed __int32 **v4; // rdi volatile signed __int32 **v5; // rdi volatile signed __int32 *v6; // rdi volatile signed __int32 *v7; // rdi Catch::cleanupSingletons((Catch *)this); if ( Catch::IMutableContext::currentContext ) (*(void ( **)(_QWORD *))(*Catch::IMutableContext::currentContext + 8LL))(Catch::IMutableContext::currentContext); Catch::IMutableContext::currentContext = 0LL; v2 = this[46]; if ( v2 ) (*(void ( **)(volatile signed __int32 *))(*(_QWORD *)v2 + 8LL))(v2); std::vector<std::string>::~vector(this + 43); std::vector<std::string>::~vector(this + 40); std::vector<Catch::ReporterSpec>::~vector(this + 37); v3 = (volatile signed __int32 **)this[33]; if ( v3 != this + 35 ) operator delete(v3, (unsigned long long)this[35] + 1); v4 = (volatile signed __int32 **)this[29]; if ( v4 != this + 31 ) operator delete(v4, (unsigned long long)this[31] + 1); v5 = (volatile signed __int32 **)this[25]; if ( v5 != this + 27 ) operator delete(v5, (unsigned long long)this[27] + 1); *this = (volatile signed __int32 *)(&`vtable for'Catch::Clara::Parser + 2); std::vector<Catch::Clara::Arg>::~vector(this + 9); std::vector<Catch::Clara::Opt>::~vector(this + 6); this[1] = (volatile signed __int32 *)(&`vtable for'Catch::Clara::ExeName + 2); v6 = this[5]; if ( v6 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6); v7 = this[3]; if ( v7 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v7); }
~Session: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LAB_00154d93: CALL 0x0014cac7 LAB_00154d98: LEA R14,[0x234060] MOV RDI,qword ptr [R14] TEST RDI,RDI JZ 0x00154dad MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_00154dad: MOV qword ptr [R14],0x0 MOV RDI,qword ptr [RBX + 0x170] TEST RDI,RDI JZ 0x00154dc6 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_00154dc6: LEA RDI,[RBX + 0x158] CALL 0x001783e8 LEA RDI,[RBX + 0x140] CALL 0x001783e8 LEA RDI,[RBX + 0x128] CALL 0x0017b5f4 MOV RDI,qword ptr [RBX + 0x108] LEA RAX,[RBX + 0x118] CMP RDI,RAX JZ 0x00154e08 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00117150 LAB_00154e08: MOV RDI,qword ptr [RBX + 0xe8] LEA RAX,[RBX + 0xf8] CMP RDI,RAX JZ 0x00154e26 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00117150 LAB_00154e26: MOV RDI,qword ptr [RBX + 0xc8] LEA RAX,[RBX + 0xd8] CMP RDI,RAX JZ 0x00154e44 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00117150 LAB_00154e44: LEA RAX,[0x22e978] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA RDI,[RBX + 0x48] CALL 0x0017bcca LEA RDI,[RBX + 0x30] CALL 0x0017bc82 LEA RAX,[0x22d500] ADD RAX,0x10 MOV qword ptr [RBX + 0x8],RAX MOV RDI,qword ptr [RBX + 0x28] TEST RDI,RDI JZ 0x00154e81 CALL 0x00133e7c LAB_00154e81: MOV RDI,qword ptr [RBX + 0x18] ADD RSP,0x8 TEST RDI,RDI JZ 0x00154e96 POP RBX POP R14 JMP 0x00133e7c LAB_00154e96: POP RBX POP R14 RET
/* Catch::Session::~Session() */ void __thiscall Catch::Session::~Session(Session *this) { /* try { // try from 00154d93 to 00154d97 has its CatchHandler @ 00154e9a */ cleanupSingletons(); if (IMutableContext::currentContext != (long *)0x0) { (**(code **)(*IMutableContext::currentContext + 8))(); } IMutableContext::currentContext = (long *)0x0; if (*(long **)(this + 0x170) != (long *)0x0) { (**(code **)(**(long **)(this + 0x170) + 8))(); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x158)); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x140)); std::vector<Catch::ReporterSpec,std::allocator<Catch::ReporterSpec>>::~vector ((vector<Catch::ReporterSpec,std::allocator<Catch::ReporterSpec>> *)(this + 0x128)); if (*(Session **)(this + 0x108) != this + 0x118) { operator_delete(*(Session **)(this + 0x108),*(long *)(this + 0x118) + 1); } if (*(Session **)(this + 0xe8) != this + 0xf8) { operator_delete(*(Session **)(this + 0xe8),*(long *)(this + 0xf8) + 1); } if (*(Session **)(this + 200) != this + 0xd8) { operator_delete(*(Session **)(this + 200),*(long *)(this + 0xd8) + 1); } *(int ***)this = &PTR__Parser_0022e988; std::vector<Catch::Clara::Arg,std::allocator<Catch::Clara::Arg>>::~vector ((vector<Catch::Clara::Arg,std::allocator<Catch::Clara::Arg>> *)(this + 0x48)); std::vector<Catch::Clara::Opt,std::allocator<Catch::Clara::Opt>>::~vector ((vector<Catch::Clara::Opt,std::allocator<Catch::Clara::Opt>> *)(this + 0x30)); *(int ***)(this + 8) = &PTR__ExeName_0022d510; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28)); } if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18)); return; } return; }
29,357
ma_calc_bin_pack_key_length
eloqsql/storage/maria/ma_search.c
int _ma_calc_bin_pack_key_length(const MARIA_KEY *int_key, uint nod_flag, uchar *next_key, uchar *org_key, uchar *prev_key, MARIA_KEY_PARAM *s_temp) { uint length,key_length,ref_length; const uchar *key= int_key->data; s_temp->totlength= key_length= (int_key->data_length + int_key->ref_length+ nod_flag); #ifdef HAVE_valgrind s_temp->n_length= s_temp->n_ref_length=0; /* For valgrind */ #endif s_temp->key=key; s_temp->prev_key=org_key; if (prev_key) /* If not first key in block */ { /* pack key against previous key */ /* As keys may be identical when running a sort in maria_chk, we have to guard against the case where keys may be identical */ const uchar *end; end=key+key_length; for ( ; *key == *prev_key && key < end; key++,prev_key++) ; s_temp->ref_length= ref_length=(uint) (key-s_temp->key); length=key_length - ref_length + get_pack_length(ref_length); } else { /* No previous key */ s_temp->ref_length=ref_length=0; length=key_length+1; } if ((s_temp->next_key_pos=next_key)) /* If another key after */ { /* pack key against next key */ uint next_length,next_length_pack; get_key_pack_length(next_length,next_length_pack,next_key); /* If first key and next key is packed (only on delete) */ if (!prev_key && org_key && next_length) { const uchar *end; for (key= s_temp->key, end=key+next_length ; *key == *org_key && key < end; key++,org_key++) ; ref_length= (uint) (key - s_temp->key); } if (next_length > ref_length) { /* We put a key with different case between two keys with the same prefix Extend next key to have same prefix as this key */ s_temp->n_ref_length= ref_length; s_temp->prev_length= next_length-ref_length; s_temp->prev_key+= ref_length; return s_temp->move_length= ((int) (length+ s_temp->prev_length - next_length_pack + get_pack_length(ref_length))); } /* Check how many characters are identical to next key */ key= s_temp->key+next_length; s_temp->prev_length= 0; while (*key++ == *next_key++) ; if ((ref_length= (uint) (key - s_temp->key)-1) == next_length) { s_temp->next_key_pos=0; return (s_temp->move_length= length); /* Can't pack next key */ } s_temp->n_ref_length=ref_length; return s_temp->move_length= (int) (length-(ref_length - next_length) - next_length_pack + get_pack_length(ref_length)); } return (s_temp->move_length= (int) length); }
O0
c
ma_calc_bin_pack_key_length: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) movq -0x10(%rbp), %rax movl 0x10(%rax), %ecx movq -0x10(%rbp), %rax addl 0x14(%rax), %ecx addl -0x14(%rbp), %ecx movl %ecx, -0x40(%rbp) movq -0x38(%rbp), %rax movl %ecx, 0x30(%rax) movq -0x50(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, (%rax) movq -0x28(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x8(%rax) cmpq $0x0, -0x30(%rbp) je 0x98bd8 movq -0x50(%rbp), %rax movl -0x40(%rbp), %ecx addq %rcx, %rax movq %rax, -0x58(%rbp) movq -0x50(%rbp), %rax movzbl (%rax), %ecx movq -0x30(%rbp), %rax movzbl (%rax), %edx xorl %eax, %eax cmpl %edx, %ecx movb %al, -0x69(%rbp) jne 0x98b76 movq -0x50(%rbp), %rax cmpq -0x58(%rbp), %rax setb %al movb %al, -0x69(%rbp) movb -0x69(%rbp), %al testb $0x1, %al jne 0x98b7f jmp 0x98b9b jmp 0x98b81 movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) jmp 0x98b51 movq -0x50(%rbp), %rax movq -0x38(%rbp), %rcx movq (%rcx), %rcx subq %rcx, %rax movl %eax, %ecx movl %ecx, -0x44(%rbp) movq -0x38(%rbp), %rax movl %ecx, 0x20(%rax) movl -0x40(%rbp), %eax subl -0x44(%rbp), %eax movl -0x44(%rbp), %esi movl $0x1, %ecx movl $0x3, %edx cmpl $0xff, %esi cmovael %edx, %ecx addl %ecx, %eax movl %eax, -0x3c(%rbp) jmp 0x98bf3 movl $0x0, -0x44(%rbp) movq -0x38(%rbp), %rax movl $0x0, 0x20(%rax) movl -0x40(%rbp), %eax addl $0x1, %eax movl %eax, -0x3c(%rbp) movq -0x20(%rbp), %rax movq -0x38(%rbp), %rcx movq %rax, 0x10(%rcx) cmpq $0x0, %rax je 0x98e12 movq -0x20(%rbp), %rax movzbl (%rax), %eax cmpl $0xff, %eax je 0x98c35 movq -0x20(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x20(%rbp) movzbl (%rax), %eax movl %eax, -0x5c(%rbp) movl $0x1, -0x60(%rbp) jmp 0x98c69 movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax movzwl %ax, %eax movq -0x20(%rbp), %rcx movzbl 0x1(%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax movl %eax, -0x5c(%rbp) movq -0x20(%rbp), %rax addq $0x3, %rax movq %rax, -0x20(%rbp) movl $0x3, -0x60(%rbp) cmpq $0x0, -0x30(%rbp) jne 0x98cf5 cmpq $0x0, -0x28(%rbp) je 0x98cf5 cmpl $0x0, -0x5c(%rbp) je 0x98cf5 movq -0x38(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movl -0x5c(%rbp), %ecx addq %rcx, %rax movq %rax, -0x68(%rbp) movq -0x50(%rbp), %rax movzbl (%rax), %ecx movq -0x28(%rbp), %rax movzbl (%rax), %edx xorl %eax, %eax cmpl %edx, %ecx movb %al, -0x6a(%rbp) jne 0x98cbf movq -0x50(%rbp), %rax cmpq -0x68(%rbp), %rax setb %al movb %al, -0x6a(%rbp) movb -0x6a(%rbp), %al testb $0x1, %al jne 0x98cc8 jmp 0x98ce4 jmp 0x98cca movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x98c9a movq -0x50(%rbp), %rax movq -0x38(%rbp), %rcx movq (%rcx), %rcx subq %rcx, %rax movl %eax, -0x44(%rbp) movl -0x5c(%rbp), %eax cmpl -0x44(%rbp), %eax jbe 0x98d5c movl -0x44(%rbp), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x28(%rax) movl -0x5c(%rbp), %ecx subl -0x44(%rbp), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x38(%rax) movl -0x44(%rbp), %edx movq -0x38(%rbp), %rax movq 0x8(%rax), %rcx movl %edx, %edx addq %rdx, %rcx movq %rcx, 0x8(%rax) movl -0x3c(%rbp), %eax movq -0x38(%rbp), %rcx addl 0x38(%rcx), %eax subl -0x60(%rbp), %eax movl -0x44(%rbp), %esi movl $0x1, %ecx movl $0x3, %edx cmpl $0xff, %esi cmovael %edx, %ecx addl %ecx, %eax movq -0x38(%rbp), %rcx movl %eax, 0x44(%rcx) movl %eax, -0x4(%rbp) jmp 0x98e1f movq -0x38(%rbp), %rax movq (%rax), %rax movl -0x5c(%rbp), %ecx addq %rcx, %rax movq %rax, -0x50(%rbp) movq -0x38(%rbp), %rax movl $0x0, 0x38(%rax) movq -0x50(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x50(%rbp) movzbl (%rax), %eax movq -0x20(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movzbl (%rcx), %ecx cmpl %ecx, %eax jne 0x98da2 jmp 0x98d78 movq -0x50(%rbp), %rax movq -0x38(%rbp), %rcx movq (%rcx), %rcx subq %rcx, %rax subl $0x1, %eax movl %eax, -0x44(%rbp) cmpl -0x5c(%rbp), %eax jne 0x98dd6 movq -0x38(%rbp), %rax movq $0x0, 0x10(%rax) movl -0x3c(%rbp), %eax movq -0x38(%rbp), %rcx movl %eax, 0x44(%rcx) movl %eax, -0x4(%rbp) jmp 0x98e1f movl -0x44(%rbp), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x28(%rax) movl -0x3c(%rbp), %eax movl -0x44(%rbp), %ecx subl -0x5c(%rbp), %ecx subl %ecx, %eax subl -0x60(%rbp), %eax movl -0x44(%rbp), %esi movl $0x1, %ecx movl $0x3, %edx cmpl $0xff, %esi cmovael %edx, %ecx addl %ecx, %eax movq -0x38(%rbp), %rcx movl %eax, 0x44(%rcx) movl %eax, -0x4(%rbp) jmp 0x98e1f movl -0x3c(%rbp), %eax movq -0x38(%rbp), %rcx movl %eax, 0x44(%rcx) movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
_ma_calc_bin_pack_key_length: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_50], rax mov rax, [rbp+var_10] mov ecx, [rax+10h] mov rax, [rbp+var_10] add ecx, [rax+14h] add ecx, [rbp+var_14] mov [rbp+var_40], ecx mov rax, [rbp+var_38] mov [rax+30h], ecx mov rcx, [rbp+var_50] mov rax, [rbp+var_38] mov [rax], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_38] mov [rax+8], rcx cmp [rbp+var_30], 0 jz loc_98BD8 mov rax, [rbp+var_50] mov ecx, [rbp+var_40] add rax, rcx mov [rbp+var_58], rax loc_98B51: mov rax, [rbp+var_50] movzx ecx, byte ptr [rax] mov rax, [rbp+var_30] movzx edx, byte ptr [rax] xor eax, eax cmp ecx, edx mov [rbp+var_69], al jnz short loc_98B76 mov rax, [rbp+var_50] cmp rax, [rbp+var_58] setb al mov [rbp+var_69], al loc_98B76: mov al, [rbp+var_69] test al, 1 jnz short loc_98B7F jmp short loc_98B9B loc_98B7F: jmp short $+2 loc_98B81: mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax jmp short loc_98B51 loc_98B9B: mov rax, [rbp+var_50] mov rcx, [rbp+var_38] mov rcx, [rcx] sub rax, rcx mov ecx, eax mov [rbp+var_44], ecx mov rax, [rbp+var_38] mov [rax+20h], ecx mov eax, [rbp+var_40] sub eax, [rbp+var_44] mov esi, [rbp+var_44] mov ecx, 1 mov edx, 3 cmp esi, 0FFh cmovnb ecx, edx add eax, ecx mov [rbp+var_3C], eax jmp short loc_98BF3 loc_98BD8: mov [rbp+var_44], 0 mov rax, [rbp+var_38] mov dword ptr [rax+20h], 0 mov eax, [rbp+var_40] add eax, 1 mov [rbp+var_3C], eax loc_98BF3: mov rax, [rbp+var_20] mov rcx, [rbp+var_38] mov [rcx+10h], rax cmp rax, 0 jz loc_98E12 mov rax, [rbp+var_20] movzx eax, byte ptr [rax] cmp eax, 0FFh jz short loc_98C35 mov rax, [rbp+var_20] mov rcx, rax add rcx, 1 mov [rbp+var_20], rcx movzx eax, byte ptr [rax] mov [rbp+var_5C], eax mov [rbp+var_60], 1 jmp short loc_98C69 loc_98C35: mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] movzx eax, ax mov rcx, [rbp+var_20] movzx ecx, byte ptr [rcx+1] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax mov [rbp+var_5C], eax mov rax, [rbp+var_20] add rax, 3 mov [rbp+var_20], rax mov [rbp+var_60], 3 loc_98C69: cmp [rbp+var_30], 0 jnz loc_98CF5 cmp [rbp+var_28], 0 jz short loc_98CF5 cmp [rbp+var_5C], 0 jz short loc_98CF5 mov rax, [rbp+var_38] mov rax, [rax] mov [rbp+var_50], rax mov rax, [rbp+var_50] mov ecx, [rbp+var_5C] add rax, rcx mov [rbp+var_68], rax loc_98C9A: mov rax, [rbp+var_50] movzx ecx, byte ptr [rax] mov rax, [rbp+var_28] movzx edx, byte ptr [rax] xor eax, eax cmp ecx, edx mov [rbp+var_6A], al jnz short loc_98CBF mov rax, [rbp+var_50] cmp rax, [rbp+var_68] setb al mov [rbp+var_6A], al loc_98CBF: mov al, [rbp+var_6A] test al, 1 jnz short loc_98CC8 jmp short loc_98CE4 loc_98CC8: jmp short $+2 loc_98CCA: mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_98C9A loc_98CE4: mov rax, [rbp+var_50] mov rcx, [rbp+var_38] mov rcx, [rcx] sub rax, rcx mov [rbp+var_44], eax loc_98CF5: mov eax, [rbp+var_5C] cmp eax, [rbp+var_44] jbe short loc_98D5C mov ecx, [rbp+var_44] mov rax, [rbp+var_38] mov [rax+28h], ecx mov ecx, [rbp+var_5C] sub ecx, [rbp+var_44] mov rax, [rbp+var_38] mov [rax+38h], ecx mov edx, [rbp+var_44] mov rax, [rbp+var_38] mov rcx, [rax+8] mov edx, edx add rcx, rdx mov [rax+8], rcx mov eax, [rbp+var_3C] mov rcx, [rbp+var_38] add eax, [rcx+38h] sub eax, [rbp+var_60] mov esi, [rbp+var_44] mov ecx, 1 mov edx, 3 cmp esi, 0FFh cmovnb ecx, edx add eax, ecx mov rcx, [rbp+var_38] mov [rcx+44h], eax mov [rbp+var_4], eax jmp loc_98E1F loc_98D5C: mov rax, [rbp+var_38] mov rax, [rax] mov ecx, [rbp+var_5C] add rax, rcx mov [rbp+var_50], rax mov rax, [rbp+var_38] mov dword ptr [rax+38h], 0 loc_98D78: mov rax, [rbp+var_50] mov rcx, rax add rcx, 1 mov [rbp+var_50], rcx movzx eax, byte ptr [rax] mov rcx, [rbp+var_20] mov rdx, rcx add rdx, 1 mov [rbp+var_20], rdx movzx ecx, byte ptr [rcx] cmp eax, ecx jnz short loc_98DA2 jmp short loc_98D78 loc_98DA2: mov rax, [rbp+var_50] mov rcx, [rbp+var_38] mov rcx, [rcx] sub rax, rcx sub eax, 1 mov [rbp+var_44], eax cmp eax, [rbp+var_5C] jnz short loc_98DD6 mov rax, [rbp+var_38] mov qword ptr [rax+10h], 0 mov eax, [rbp+var_3C] mov rcx, [rbp+var_38] mov [rcx+44h], eax mov [rbp+var_4], eax jmp short loc_98E1F loc_98DD6: mov ecx, [rbp+var_44] mov rax, [rbp+var_38] mov [rax+28h], ecx mov eax, [rbp+var_3C] mov ecx, [rbp+var_44] sub ecx, [rbp+var_5C] sub eax, ecx sub eax, [rbp+var_60] mov esi, [rbp+var_44] mov ecx, 1 mov edx, 3 cmp esi, 0FFh cmovnb ecx, edx add eax, ecx mov rcx, [rbp+var_38] mov [rcx+44h], eax mov [rbp+var_4], eax jmp short loc_98E1F loc_98E12: mov eax, [rbp+var_3C] mov rcx, [rbp+var_38] mov [rcx+44h], eax mov [rbp+var_4], eax loc_98E1F: mov eax, [rbp+var_4] pop rbp retn
long long ma_calc_bin_pack_key_length( unsigned __int8 **a1, int a2, unsigned __int8 *a3, unsigned __int8 *a4, unsigned __int8 *a5, unsigned __int8 **a6) { int v6; // ecx int v7; // ecx unsigned int v8; // eax unsigned __int8 *v9; // rax unsigned __int8 *v10; // rcx int v11; // ecx bool v13; // [rsp+0h] [rbp-6Ah] bool v14; // [rsp+1h] [rbp-69h] int v15; // [rsp+Ah] [rbp-60h] unsigned int v16; // [rsp+Eh] [rbp-5Ch] unsigned __int8 *v17; // [rsp+12h] [rbp-58h] unsigned __int8 *v18; // [rsp+1Ah] [rbp-50h] unsigned __int8 *i; // [rsp+1Ah] [rbp-50h] unsigned __int8 *v20; // [rsp+1Ah] [rbp-50h] unsigned int v21; // [rsp+26h] [rbp-44h] unsigned int v22; // [rsp+26h] [rbp-44h] int v23; // [rsp+2Ah] [rbp-40h] unsigned int v24; // [rsp+2Eh] [rbp-3Ch] unsigned __int8 *v25; // [rsp+3Ah] [rbp-30h] unsigned __int8 *v26; // [rsp+42h] [rbp-28h] unsigned __int8 *v27; // [rsp+4Ah] [rbp-20h] v26 = a4; v25 = a5; v18 = *a1; v23 = a2 + *((_DWORD *)a1 + 5) + *((_DWORD *)a1 + 4); *((_DWORD *)a6 + 12) = v23; *a6 = v18; a6[1] = a4; if ( a5 ) { v17 = &v18[v23]; while ( 1 ) { v14 = 0; if ( *v18 == *v25 ) v14 = v18 < v17; if ( !v14 ) break; ++v18; ++v25; } v21 = (_DWORD)v18 - (unsigned int)*a6; *((_DWORD *)a6 + 8) = v21; v6 = 1; if ( v21 >= 0xFF ) v6 = 3; v24 = v6 + v23 - v21; } else { v21 = 0; *((_DWORD *)a6 + 8) = 0; v24 = v23 + 1; } a6[2] = a3; if ( a3 ) { if ( *a3 == 255 ) { v16 = _byteswap_ushort(*(_WORD *)(a3 + 1)); v27 = a3 + 3; v15 = 3; } else { v27 = a3 + 1; v16 = *a3; v15 = 1; } if ( !v25 && v26 && v16 ) { for ( i = *a6; ; ++i ) { v13 = 0; if ( *i == *v26 ) v13 = i < &(*a6)[v16]; if ( !v13 ) break; ++v26; } v21 = (_DWORD)i - *(_DWORD *)a6; } if ( v16 <= v21 ) { v20 = &(*a6)[v16]; *((_DWORD *)a6 + 14) = 0; do { v9 = v20++; v10 = v27++; } while ( *v9 == *v10 ); v22 = (_DWORD)v20 - (unsigned int)*a6 - 1; if ( v22 == v16 ) { a6[2] = 0LL; *((_DWORD *)a6 + 17) = v24; return v24; } else { *((_DWORD *)a6 + 10) = v22; v11 = 1; if ( v22 >= 0xFF ) v11 = 3; *((_DWORD *)a6 + 17) = v11 + v24 - (v22 - v16) - v15; return v11 + v24 - (v22 - v16) - v15; } } else { *((_DWORD *)a6 + 10) = v21; *((_DWORD *)a6 + 14) = v16 - v21; a6[1] += v21; v7 = 1; if ( v21 >= 0xFF ) v7 = 3; v8 = v7 + *((_DWORD *)a6 + 14) + v24 - v15; *((_DWORD *)a6 + 17) = v8; return v8; } } else { *((_DWORD *)a6 + 17) = v24; return v24; } }
_ma_calc_bin_pack_key_length: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] ADD ECX,dword ptr [RAX + 0x14] ADD ECX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x40],ECX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x30],ECX MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x8],RCX CMP qword ptr [RBP + -0x30],0x0 JZ 0x00198bd8 MOV RAX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x40] ADD RAX,RCX MOV qword ptr [RBP + -0x58],RAX LAB_00198b51: MOV RAX,qword ptr [RBP + -0x50] MOVZX ECX,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x30] MOVZX EDX,byte ptr [RAX] XOR EAX,EAX CMP ECX,EDX MOV byte ptr [RBP + -0x69],AL JNZ 0x00198b76 MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x58] SETC AL MOV byte ptr [RBP + -0x69],AL LAB_00198b76: MOV AL,byte ptr [RBP + -0x69] TEST AL,0x1 JNZ 0x00198b7f JMP 0x00198b9b LAB_00198b7f: JMP 0x00198b81 LAB_00198b81: MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x30],RAX JMP 0x00198b51 LAB_00198b9b: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RCX] SUB RAX,RCX MOV ECX,EAX MOV dword ptr [RBP + -0x44],ECX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x20],ECX MOV EAX,dword ptr [RBP + -0x40] SUB EAX,dword ptr [RBP + -0x44] MOV ESI,dword ptr [RBP + -0x44] MOV ECX,0x1 MOV EDX,0x3 CMP ESI,0xff CMOVNC ECX,EDX ADD EAX,ECX MOV dword ptr [RBP + -0x3c],EAX JMP 0x00198bf3 LAB_00198bd8: MOV dword ptr [RBP + -0x44],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x20],0x0 MOV EAX,dword ptr [RBP + -0x40] ADD EAX,0x1 MOV dword ptr [RBP + -0x3c],EAX LAB_00198bf3: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RCX + 0x10],RAX CMP RAX,0x0 JZ 0x00198e12 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0xff JZ 0x00198c35 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x20],RCX MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x5c],EAX MOV dword ptr [RBP + -0x60],0x1 JMP 0x00198c69 LAB_00198c35: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RCX + 0x1] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX MOV dword ptr [RBP + -0x5c],EAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x3 MOV qword ptr [RBP + -0x20],RAX MOV dword ptr [RBP + -0x60],0x3 LAB_00198c69: CMP qword ptr [RBP + -0x30],0x0 JNZ 0x00198cf5 CMP qword ptr [RBP + -0x28],0x0 JZ 0x00198cf5 CMP dword ptr [RBP + -0x5c],0x0 JZ 0x00198cf5 MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x5c] ADD RAX,RCX MOV qword ptr [RBP + -0x68],RAX LAB_00198c9a: MOV RAX,qword ptr [RBP + -0x50] MOVZX ECX,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x28] MOVZX EDX,byte ptr [RAX] XOR EAX,EAX CMP ECX,EDX MOV byte ptr [RBP + -0x6a],AL JNZ 0x00198cbf MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x68] SETC AL MOV byte ptr [RBP + -0x6a],AL LAB_00198cbf: MOV AL,byte ptr [RBP + -0x6a] TEST AL,0x1 JNZ 0x00198cc8 JMP 0x00198ce4 LAB_00198cc8: JMP 0x00198cca LAB_00198cca: MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00198c9a LAB_00198ce4: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RCX] SUB RAX,RCX MOV dword ptr [RBP + -0x44],EAX LAB_00198cf5: MOV EAX,dword ptr [RBP + -0x5c] CMP EAX,dword ptr [RBP + -0x44] JBE 0x00198d5c MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x28],ECX MOV ECX,dword ptr [RBP + -0x5c] SUB ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x38],ECX MOV EDX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0x8] MOV EDX,EDX ADD RCX,RDX MOV qword ptr [RAX + 0x8],RCX MOV EAX,dword ptr [RBP + -0x3c] MOV RCX,qword ptr [RBP + -0x38] ADD EAX,dword ptr [RCX + 0x38] SUB EAX,dword ptr [RBP + -0x60] MOV ESI,dword ptr [RBP + -0x44] MOV ECX,0x1 MOV EDX,0x3 CMP ESI,0xff CMOVNC ECX,EDX ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x38] MOV dword ptr [RCX + 0x44],EAX MOV dword ptr [RBP + -0x4],EAX JMP 0x00198e1f LAB_00198d5c: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x5c] ADD RAX,RCX MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x38],0x0 LAB_00198d78: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x50],RCX MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x20] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOVZX ECX,byte ptr [RCX] CMP EAX,ECX JNZ 0x00198da2 JMP 0x00198d78 LAB_00198da2: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RCX] SUB RAX,RCX SUB EAX,0x1 MOV dword ptr [RBP + -0x44],EAX CMP EAX,dword ptr [RBP + -0x5c] JNZ 0x00198dd6 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x10],0x0 MOV EAX,dword ptr [RBP + -0x3c] MOV RCX,qword ptr [RBP + -0x38] MOV dword ptr [RCX + 0x44],EAX MOV dword ptr [RBP + -0x4],EAX JMP 0x00198e1f LAB_00198dd6: MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x28],ECX MOV EAX,dword ptr [RBP + -0x3c] MOV ECX,dword ptr [RBP + -0x44] SUB ECX,dword ptr [RBP + -0x5c] SUB EAX,ECX SUB EAX,dword ptr [RBP + -0x60] MOV ESI,dword ptr [RBP + -0x44] MOV ECX,0x1 MOV EDX,0x3 CMP ESI,0xff CMOVNC ECX,EDX ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x38] MOV dword ptr [RCX + 0x44],EAX MOV dword ptr [RBP + -0x4],EAX JMP 0x00198e1f LAB_00198e12: MOV EAX,dword ptr [RBP + -0x3c] MOV RCX,qword ptr [RBP + -0x38] MOV dword ptr [RCX + 0x44],EAX MOV dword ptr [RBP + -0x4],EAX LAB_00198e1f: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int _ma_calc_bin_pack_key_length (int8 *param_1,int param_2,byte *param_3,char *param_4,char *param_5, long *param_6) { byte bVar1; byte bVar2; char *pcVar3; uint uVar4; byte *pbVar5; int local_68; uint local_64; byte *local_58; uint local_4c; int local_44; char *local_38; char *local_30; byte *local_28; int local_c; local_58 = (byte *)*param_1; uVar4 = *(int *)(param_1 + 2) + *(int *)((long)param_1 + 0x14) + param_2; *(uint *)(param_6 + 6) = uVar4; *param_6 = (long)local_58; param_6[1] = (long)param_4; local_38 = param_5; if (param_5 == (char *)0x0) { local_4c = 0; *(int4 *)(param_6 + 4) = 0; local_44 = uVar4 + 1; } else { pcVar3 = (char *)local_58 + uVar4; for (; *local_58 == *local_38 && local_58 < pcVar3; local_58 = local_58 + 1) { local_38 = local_38 + 1; } local_4c = (int)local_58 - (int)*param_6; *(uint *)(param_6 + 4) = local_4c; local_44 = 1; if (0xfe < local_4c) { local_44 = 3; } local_44 = (uVar4 - local_4c) + local_44; } param_6[2] = (long)param_3; if (param_3 == (byte *)0x0) { *(int *)((long)param_6 + 0x44) = local_44; local_c = local_44; } else { if (*param_3 == 0xff) { local_64 = (uint)CONCAT11(param_3[1],param_3[2]); local_28 = param_3 + 3; local_68 = 3; } else { local_28 = param_3 + 1; local_64 = (uint)*param_3; local_68 = 1; } if (((local_38 == (char *)0x0) && (param_4 != (char *)0x0)) && (local_64 != 0)) { local_58 = (byte *)*param_6; pcVar3 = (char *)local_58 + local_64; local_30 = param_4; for (; *local_58 == *local_30 && local_58 < pcVar3; local_58 = local_58 + 1) { local_30 = local_30 + 1; } local_4c = (int)local_58 - (int)*param_6; } if (local_4c < local_64) { *(uint *)(param_6 + 5) = local_4c; *(uint *)(param_6 + 7) = local_64 - local_4c; param_6[1] = param_6[1] + (ulong)local_4c; local_c = 1; if (0xfe < local_4c) { local_c = 3; } local_c = ((local_44 + (int)param_6[7]) - local_68) + local_c; *(int *)((long)param_6 + 0x44) = local_c; } else { *(int4 *)(param_6 + 7) = 0; local_58 = (byte *)(*param_6 + (ulong)local_64); do { pbVar5 = local_58 + 1; bVar1 = *local_58; bVar2 = *local_28; local_58 = pbVar5; local_28 = local_28 + 1; } while (bVar1 == bVar2); uVar4 = ((int)pbVar5 - (int)*param_6) - 1; if (uVar4 == local_64) { param_6[2] = 0; *(int *)((long)param_6 + 0x44) = local_44; local_c = local_44; } else { *(uint *)(param_6 + 5) = uVar4; local_c = 1; if (0xfe < uVar4) { local_c = 3; } local_c = ((local_44 - (uVar4 - local_64)) - local_68) + local_c; *(int *)((long)param_6 + 0x44) = local_c; } } } return local_c; }
29,358
my_casedn_utf8mb3
eloqsql/strings/ctype-utf8.c
static size_t my_casedn_utf8mb3(CHARSET_INFO *cs, const char *src, size_t srclen, char *dst, size_t dstlen) { my_wc_t wc; int srcres, dstres; const char *srcend= src + srclen; char *dstend= dst + dstlen, *dst0= dst; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(src != dst || cs->casedn_multiply == 1); while ((src < srcend) && (srcres= my_utf8mb3_uni(cs, &wc, (uchar*) src, (uchar*)srcend)) > 0) { my_tolower_utf8mb3(uni_plane, &wc); if ((dstres= my_uni_utf8mb3(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0) break; src+= srcres; dst+= dstres; } return (size_t) (dst - dst0); }
O0
c
my_casedn_utf8mb3: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x58(%rbp) jmp 0x6393a jmp 0x6393c movq -0x10(%rbp), %rcx xorl %eax, %eax cmpq -0x40(%rbp), %rcx movb %al, -0x59(%rbp) jae 0x6396c movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx movq -0x40(%rbp), %rcx leaq -0x30(%rbp), %rsi callq 0x634e0 movl %eax, -0x34(%rbp) cmpl $0x0, %eax setg %al movb %al, -0x59(%rbp) movb -0x59(%rbp), %al testb $0x1, %al jne 0x63975 jmp 0x639c8 movq -0x58(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x647b0 movq -0x8(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x48(%rbp), %rcx callq 0x63510 movl %eax, -0x38(%rbp) cmpl $0x0, %eax jg 0x639a1 jmp 0x639c8 movl -0x34(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movl -0x38(%rbp), %ecx movq -0x20(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) jmp 0x6393c movq -0x20(%rbp), %rax movq -0x50(%rbp), %rcx subq %rcx, %rax addq $0x60, %rsp popq %rbp retq nopl (%rax)
my_casedn_utf8mb3: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_20] add rax, [rbp+var_28] mov [rbp+var_48], rax mov rax, [rbp+var_20] mov [rbp+var_50], rax mov rax, [rbp+var_8] mov rax, [rax+78h] mov [rbp+var_58], rax jmp short $+2 loc_6393A: jmp short $+2 loc_6393C: mov rcx, [rbp+var_10] xor eax, eax cmp rcx, [rbp+var_40] mov [rbp+var_59], al jnb short loc_6396C mov rdi, [rbp+var_8] mov rdx, [rbp+var_10] mov rcx, [rbp+var_40] lea rsi, [rbp+var_30] call my_utf8mb3_uni mov [rbp+var_34], eax cmp eax, 0 setnle al mov [rbp+var_59], al loc_6396C: mov al, [rbp+var_59] test al, 1 jnz short loc_63975 jmp short loc_639C8 loc_63975: mov rdi, [rbp+var_58] lea rsi, [rbp+var_30] call my_tolower_utf8mb3 mov rdi, [rbp+var_8] mov rsi, [rbp+var_30] mov rdx, [rbp+var_20] mov rcx, [rbp+var_48] call my_uni_utf8mb3 mov [rbp+var_38], eax cmp eax, 0 jg short loc_639A1 jmp short loc_639C8 loc_639A1: mov ecx, [rbp+var_34] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax mov ecx, [rbp+var_38] mov rax, [rbp+var_20] movsxd rcx, ecx add rax, rcx mov [rbp+var_20], rax jmp loc_6393C loc_639C8: mov rax, [rbp+var_20] mov rcx, [rbp+var_50] sub rax, rcx add rsp, 60h pop rbp retn
_BYTE * my_casedn_utf8mb3(long long a1, unsigned long long a2, long long a3, _BYTE *a4, long long a5, long long a6) { bool v7; // [rsp+7h] [rbp-59h] long long v8; // [rsp+8h] [rbp-58h] unsigned long long v10; // [rsp+18h] [rbp-48h] unsigned long long v11; // [rsp+20h] [rbp-40h] int v12; // [rsp+28h] [rbp-38h] int v13; // [rsp+2Ch] [rbp-34h] unsigned long long v14[2]; // [rsp+30h] [rbp-30h] BYREF _BYTE *v15; // [rsp+40h] [rbp-20h] long long v16; // [rsp+48h] [rbp-18h] unsigned long long v17; // [rsp+50h] [rbp-10h] long long v18; // [rsp+58h] [rbp-8h] v18 = a1; v17 = a2; v16 = a3; v15 = a4; v14[1] = a5; v11 = a3 + a2; v10 = (unsigned long long)&a4[a5]; v8 = *(_QWORD *)(a1 + 120); while ( 1 ) { v7 = 0; if ( v17 < v11 ) { v13 = my_utf8mb3_uni(v18, (long long)v14, v17, v11, a5, a6); v7 = v13 > 0; } if ( !v7 ) break; my_tolower_utf8mb3(v8, v14); v12 = my_uni_utf8mb3(v18, v14[0], v15, v10); if ( v12 <= 0 ) break; v17 += v13; v15 += v12; } return (_BYTE *)(v15 - a4); }
my_casedn_utf8mb3: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x78] MOV qword ptr [RBP + -0x58],RAX JMP 0x0016393a LAB_0016393a: JMP 0x0016393c LAB_0016393c: MOV RCX,qword ptr [RBP + -0x10] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x40] MOV byte ptr [RBP + -0x59],AL JNC 0x0016396c MOV RDI,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x40] LEA RSI,[RBP + -0x30] CALL 0x001634e0 MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 SETG AL MOV byte ptr [RBP + -0x59],AL LAB_0016396c: MOV AL,byte ptr [RBP + -0x59] TEST AL,0x1 JNZ 0x00163975 JMP 0x001639c8 LAB_00163975: MOV RDI,qword ptr [RBP + -0x58] LEA RSI,[RBP + -0x30] CALL 0x001647b0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x48] CALL 0x00163510 MOV dword ptr [RBP + -0x38],EAX CMP EAX,0x0 JG 0x001639a1 JMP 0x001639c8 LAB_001639a1: MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV ECX,dword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX JMP 0x0016393c LAB_001639c8: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x50] SUB RAX,RCX ADD RSP,0x60 POP RBP RET
long my_casedn_utf8mb3(long param_1,ulong param_2,long param_3,long param_4,long param_5) { int8 uVar1; bool bVar2; int iVar3; int local_3c; int8 local_38; long local_30; long local_28; long local_20; ulong local_18; long local_10; uVar1 = *(int8 *)(param_1 + 0x78); local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; while( true ) { bVar2 = false; if (local_18 < param_2 + param_3) { local_3c = my_utf8mb3_uni(local_10,&local_38,local_18,param_2 + param_3); bVar2 = 0 < local_3c; } if (!bVar2) break; my_tolower_utf8mb3(uVar1,&local_38); iVar3 = my_uni_utf8mb3(local_10,local_38,local_28,param_4 + param_5); if (iVar3 < 1) break; local_18 = local_18 + (long)local_3c; local_28 = local_28 + iVar3; } return local_28 - param_4; }
29,359
ma_dynstr_realloc
eloqsql/libmariadb/libmariadb/ma_string.c
my_bool ma_dynstr_realloc(DYNAMIC_STRING *str, size_t additional_size) { if (!additional_size) return(FALSE); if (str->length + additional_size > str->max_length) { str->max_length=((str->length + additional_size+str->alloc_increment-1)/ str->alloc_increment)*str->alloc_increment; if (!(str->str=(char*) realloc(str->str,str->max_length))) return(TRUE); } return(FALSE); }
O0
c
ma_dynstr_realloc: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x3197d movb $0x0, -0x1(%rbp) jmp 0x319f6 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax addq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x10(%rcx), %rax jbe 0x319f2 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax addq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx addq 0x18(%rcx), %rax subq $0x1, %rax movq -0x10(%rbp), %rcx xorl %edx, %edx divq 0x18(%rcx) movq %rax, %rcx movq -0x10(%rbp), %rax imulq 0x18(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x10(%rbp), %rax movq 0x10(%rax), %rsi callq 0x13700 movq -0x10(%rbp), %rcx movq %rax, (%rcx) cmpq $0x0, %rax jne 0x319f0 movb $0x1, -0x1(%rbp) jmp 0x319f6 jmp 0x319f2 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nop
ma_dynstr_realloc: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi cmp [rbp+var_18], 0 jnz short loc_3197D mov [rbp+var_1], 0 jmp short loc_319F6 loc_3197D: mov rax, [rbp+var_10] mov rax, [rax+8] add rax, [rbp+var_18] mov rcx, [rbp+var_10] cmp rax, [rcx+10h] jbe short loc_319F2 mov rax, [rbp+var_10] mov rax, [rax+8] add rax, [rbp+var_18] mov rcx, [rbp+var_10] add rax, [rcx+18h] sub rax, 1 mov rcx, [rbp+var_10] xor edx, edx div qword ptr [rcx+18h] mov rcx, rax mov rax, [rbp+var_10] imul rcx, [rax+18h] mov rax, [rbp+var_10] mov [rax+10h], rcx mov rax, [rbp+var_10] mov rdi, [rax] mov rax, [rbp+var_10] mov rsi, [rax+10h] call _realloc mov rcx, [rbp+var_10] mov [rcx], rax cmp rax, 0 jnz short loc_319F0 mov [rbp+var_1], 1 jmp short loc_319F6 loc_319F0: jmp short $+2 loc_319F2: mov [rbp+var_1], 0 loc_319F6: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
bool ma_dynstr_realloc(long long *a1, long long a2) { long long v2; // rax char v4; // [rsp+1Fh] [rbp-1h] if ( a2 ) { v4 = 0; if ( a2 + a1[1] > (unsigned long long)a1[2] ) { a1[2] = a1[3] * ((a1[3] + a2 + a1[1] - 1) / (unsigned long long)a1[3]); v2 = realloc(*a1, a1[2]); *a1 = v2; if ( !v2 ) return 1; } } else { return 0; } return v4; }
ma_dynstr_realloc: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI CMP qword ptr [RBP + -0x18],0x0 JNZ 0x0013197d MOV byte ptr [RBP + -0x1],0x0 JMP 0x001319f6 LAB_0013197d: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] ADD RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x10] JBE 0x001319f2 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] ADD RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RCX + 0x18] SUB RAX,0x1 MOV RCX,qword ptr [RBP + -0x10] XOR EDX,EDX DIV qword ptr [RCX + 0x18] MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] IMUL RCX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x10] CALL 0x00113700 MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX],RAX CMP RAX,0x0 JNZ 0x001319f0 MOV byte ptr [RBP + -0x1],0x1 JMP 0x001319f6 LAB_001319f0: JMP 0x001319f2 LAB_001319f2: MOV byte ptr [RBP + -0x1],0x0 LAB_001319f6: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 ma_dynstr_realloc(int8 *param_1,long param_2) { void *pvVar1; if ((param_2 != 0) && ((ulong)param_1[2] < (ulong)(param_1[1] + param_2))) { param_1[2] = (((param_1[1] + param_2 + param_1[3]) - 1U) / (ulong)param_1[3]) * param_1[3]; pvVar1 = realloc((void *)*param_1,param_1[2]); *param_1 = pvVar1; if (pvVar1 == (void *)0x0) { return 1; } } return 0; }
29,360
CreateObject(int)
Pyarmor-Static-Unpack-1shot/pyc_object.cpp
PycRef<PycObject> CreateObject(int type) { switch (type) { case PycObject::TYPE_NULL: return NULL; case PycObject::TYPE_NONE: return Pyc_None; case PycObject::TYPE_FALSE: return Pyc_False; case PycObject::TYPE_TRUE: return Pyc_True; case PycObject::TYPE_STOPITER: return Pyc_StopIteration; case PycObject::TYPE_ELLIPSIS: return Pyc_Ellipsis; case PycObject::TYPE_INT: return new PycInt(type); case PycObject::TYPE_INT64: return new PycLong(type); case PycObject::TYPE_FLOAT: return new PycFloat(type); case PycObject::TYPE_BINARY_FLOAT: return new PycCFloat(type); case PycObject::TYPE_COMPLEX: return new PycComplex(type); case PycObject::TYPE_BINARY_COMPLEX: return new PycCComplex(type); case PycObject::TYPE_LONG: return new PycLong(type); case PycObject::TYPE_STRING: case PycObject::TYPE_INTERNED: case PycObject::TYPE_STRINGREF: case PycObject::TYPE_UNICODE: case PycObject::TYPE_ASCII: case PycObject::TYPE_ASCII_INTERNED: case PycObject::TYPE_SHORT_ASCII: case PycObject::TYPE_SHORT_ASCII_INTERNED: return new PycString(type); case PycObject::TYPE_TUPLE: case PycObject::TYPE_SMALL_TUPLE: return new PycTuple(type); case PycObject::TYPE_LIST: return new PycList(type); case PycObject::TYPE_DICT: return new PycDict(type); case PycObject::TYPE_CODE: case PycObject::TYPE_CODE2: return new PycCode(type); case PycObject::TYPE_SET: case PycObject::TYPE_FROZENSET: return new PycSet(type); default: fprintf(stderr, "CreateObject: Got unsupported type 0x%X\n", type); return NULL; } }
O3
cpp
CreateObject(int): pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movl %esi, %r14d movq %rdi, %rbx cmpl $0x59, %esi jle 0x32c4c leal -0x5a(%r14), %eax cmpl $0x21, %eax ja 0x32f2c leaq 0x5872(%rip), %rcx # 0x38488 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl $0x30, %edi callq 0x7220 movq $0x5b, 0xc(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rax) movq $0x0, 0x28(%rax) leaq 0x17f69(%rip), %rcx # 0x4abb0 jmp 0x32f03 cmpl $0x3b, %r14d jle 0x32cd8 leal -0x3c(%r14), %eax cmpl $0x18, %eax ja 0x32f2c leaq 0x57ba(%rip), %rcx # 0x38424 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl $0x30, %edi callq 0x7220 movl %r14d, 0xc(%rax) movl $0x0, 0x10(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rax) movq $0x0, 0x28(%rax) leaq 0x17f4a(%rip), %rcx # 0x4abe8 jmp 0x32f03 movl $0x30, %edi callq 0x7220 movl %r14d, 0xc(%rax) leaq 0x18040(%rip), %rcx # 0x4acf8 addq $0x10, %rcx movq %rcx, (%rax) leaq 0x20(%rax), %rcx movq %rcx, 0x10(%rax) movq $0x0, 0x18(%rax) movb $0x0, 0x20(%rax) jmp 0x32f06 leal -0x28(%r14), %eax cmpl $0x2, %eax jb 0x32d5a cmpl $0x2e, %r14d je 0x32f18 cmpl $0x30, %r14d jne 0x32f2c movq $0x0, (%rbx) jmp 0x32f10 movl $0xa8, %edi callq 0x7220 movl %r14d, 0xc(%rax) leaq 0x17c7a(%rip), %rcx # 0x4a990 addq $0x10, %rcx movq %rcx, (%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movups %xmm0, 0x20(%rax) movups %xmm0, 0x30(%rax) movups %xmm0, 0x40(%rax) movups %xmm0, 0x50(%rax) movups %xmm0, 0x60(%rax) movups %xmm0, 0x6c(%rax) movups %xmm0, 0x80(%rax) movups %xmm0, 0x90(%rax) movq $0x0, 0xa0(%rax) jmp 0x32f06 movl $0x30, %edi callq 0x7220 movl %r14d, 0xc(%rax) movl $0x0, 0x10(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rax) movq $0x0, 0x28(%rax) leaq 0x17edb(%rip), %rcx # 0x4ac60 jmp 0x32eff movl $0x30, %edi callq 0x7220 movq $0x49, 0xc(%rax) jmp 0x32e77 movq 0x18528(%rip), %rax # 0x4b2d0 jmp 0x32f1f movq 0x18514(%rip), %rax # 0x4b2c8 jmp 0x32f1f movq 0x184f0(%rip), %rax # 0x4b2b0 jmp 0x32f1f movq 0x184f4(%rip), %rax # 0x4b2c0 jmp 0x32f1f movl $0x50, %edi callq 0x7220 movl $0x78, 0xc(%rax) leaq 0x20(%rax), %rcx movq %rcx, 0x10(%rax) xorl %ecx, %ecx movq %rcx, 0x18(%rax) movb %cl, 0x20(%rax) leaq 0x17cce(%rip), %rdx # 0x4aac8 addq $0x10, %rdx movq %rdx, (%rax) leaq 0x40(%rax), %rdx movq %rdx, 0x30(%rax) movq %rcx, 0x38(%rax) movb %cl, 0x40(%rax) jmp 0x32f06 movl $0x30, %edi callq 0x7220 movl $0x66, 0xc(%rax) leaq 0x17c53(%rip), %rcx # 0x4aa80 jmp 0x32cb8 movl $0x28, %edi callq 0x7220 movl $0x7b, 0xc(%rax) leaq 0x17e66(%rip), %rcx # 0x4acb0 addq $0x10, %rcx movq %rcx, (%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movq $0x0, 0x20(%rax) jmp 0x32f06 movl $0x30, %edi callq 0x7220 movq $0x6c, 0xc(%rax) leaq 0x17bba(%rip), %rcx # 0x4aa38 addq $0x10, %rcx movq %rcx, (%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rax) movq $0x0, 0x28(%rax) jmp 0x32f06 movl $0x18, %edi callq 0x7220 movabsq $0x6900000069, %rcx # imm = 0x6900000069 movq %rcx, 0xc(%rax) leaq 0x17b3b(%rip), %rcx # 0x4a9f0 jmp 0x32eff movl $0x18, %edi callq 0x7220 movl $0x67, 0xc(%rax) leaq 0x17c41(%rip), %rcx # 0x4ab10 addq $0x10, %rcx movq %rcx, (%rax) movq $0x0, 0x10(%rax) jmp 0x32f06 movl $0x20, %edi callq 0x7220 movl $0x79, 0xc(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) leaq 0x17c59(%rip), %rcx # 0x4ab58 addq $0x10, %rcx movq %rcx, (%rax) movq %rax, (%rbx) movl $0x1, 0x8(%rax) movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq movq 0x18399(%rip), %rax # 0x4b2b8 movq %rax, (%rbx) testq %rax, %rax je 0x32f10 incl 0x8(%rax) jmp 0x32f10 movq 0x18065(%rip), %rax # 0x4af98 movq (%rax), %rdi leaq 0x55d3(%rip), %rsi # 0x38510 movl %r14d, %edx xorl %eax, %eax callq 0x7320 jmp 0x32cf5
_Z12CreateObjecti: push rbp mov rbp, rsp push r14 push rbx mov r14d, esi mov rbx, rdi cmp esi, 59h ; 'Y' jle short loc_32C4C lea eax, [r14-5Ah]; switch 34 cases cmp eax, 21h ja def_32C1D; jumptable 0000000000032C1D default case, cases 92-96,98,100,101,104,106,107,109-114,118,119 lea rcx, jpt_32C1D movsxd rax, ds:(jpt_32C1D - 38488h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_32C1F: mov edi, 30h ; '0'; jumptable 0000000000032C1D case 91 call __Znwm; operator new(ulong) mov qword ptr [rax+0Ch], 5Bh ; '[' xorps xmm0, xmm0 movups xmmword ptr [rax+18h], xmm0 mov qword ptr [rax+28h], 0 lea rcx, off_4ABB0 jmp loc_32F03 loc_32C4C: cmp r14d, 3Bh ; ';' jle loc_32CD8 lea eax, [r14-3Ch]; switch 25 cases cmp eax, 18h ja def_32C1D; jumptable 0000000000032C1D default case, cases 92-96,98,100,101,104,106,107,109-114,118,119 lea rcx, jpt_32C71 movsxd rax, ds:(jpt_32C71 - 38424h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_32C73: mov edi, 30h ; '0'; jumptable 0000000000032C71 cases 60,62 call __Znwm; operator new(ulong) mov [rax+0Ch], r14d mov dword ptr [rax+10h], 0 xorps xmm0, xmm0 movups xmmword ptr [rax+18h], xmm0 mov qword ptr [rax+28h], 0 lea rcx, off_4ABE8 jmp loc_32F03 loc_32CA3: mov edi, 30h ; '0'; jumptable 0000000000032C1D cases 90,97,115-117,122 call __Znwm; operator new(ulong) mov [rax+0Ch], r14d lea rcx, _ZTV9PycString; `vtable for'PycString loc_32CB8: add rcx, 10h mov [rax], rcx lea rcx, [rax+20h] mov [rax+10h], rcx mov qword ptr [rax+18h], 0 mov byte ptr [rax+20h], 0 jmp loc_32F06 loc_32CD8: lea eax, [r14-28h] cmp eax, 2 jb short loc_32D5A cmp r14d, 2Eh ; '.' jz loc_32F18 cmp r14d, 30h ; '0' jnz def_32C1D; jumptable 0000000000032C1D default case, cases 92-96,98,100,101,104,106,107,109-114,118,119 loc_32CF5: mov qword ptr [rbx], 0 jmp loc_32F10 loc_32D01: mov edi, 0A8h; jumptable 0000000000032C1D case 99 call __Znwm; operator new(ulong) mov [rax+0Ch], r14d lea rcx, _ZTV7PycCode; `vtable for'PycCode add rcx, 10h mov [rax], rcx xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 movups xmmword ptr [rax+20h], xmm0 movups xmmword ptr [rax+30h], xmm0 movups xmmword ptr [rax+40h], xmm0 movups xmmword ptr [rax+50h], xmm0 movups xmmword ptr [rax+60h], xmm0 movups xmmword ptr [rax+6Ch], xmm0 movups xmmword ptr [rax+80h], xmm0 movups xmmword ptr [rax+90h], xmm0 mov qword ptr [rax+0A0h], 0 jmp loc_32F06 loc_32D5A: mov edi, 30h ; '0'; unsigned __int64 call __Znwm; operator new(ulong) mov [rax+0Ch], r14d mov dword ptr [rax+10h], 0 xorps xmm0, xmm0 movups xmmword ptr [rax+18h], xmm0 mov qword ptr [rax+28h], 0 lea rcx, _ZTV8PycTuple; `vtable for'PycTuple jmp loc_32EFF loc_32D8A: mov edi, 30h ; '0'; jumptable 0000000000032C71 case 73 call __Znwm; operator new(ulong) mov qword ptr [rax+0Ch], 49h ; 'I' jmp loc_32E77 loc_32DA1: mov rax, cs:Pyc_True; jumptable 0000000000032C71 case 84 jmp loc_32F1F loc_32DAD: mov rax, cs:Pyc_False; jumptable 0000000000032C71 case 70 jmp loc_32F1F loc_32DB9: mov rax, cs:Pyc_None; jumptable 0000000000032C71 case 78 jmp loc_32F1F loc_32DC5: mov rax, cs:Pyc_StopIteration; jumptable 0000000000032C71 case 83 jmp loc_32F1F loc_32DD1: mov edi, 50h ; 'P'; jumptable 0000000000032C1D case 120 call __Znwm; operator new(ulong) mov dword ptr [rax+0Ch], 78h ; 'x' lea rcx, [rax+20h] mov [rax+10h], rcx xor ecx, ecx mov [rax+18h], rcx mov [rax+20h], cl lea rdx, _ZTV10PycComplex; `vtable for'PycComplex add rdx, 10h mov [rax], rdx lea rdx, [rax+40h] mov [rax+30h], rdx mov [rax+38h], rcx mov [rax+40h], cl jmp loc_32F06 loc_32E15: mov edi, 30h ; '0'; jumptable 0000000000032C1D case 102 call __Znwm; operator new(ulong) mov dword ptr [rax+0Ch], 66h ; 'f' lea rcx, _ZTV8PycFloat; `vtable for'PycFloat jmp loc_32CB8 loc_32E32: mov edi, 28h ; '('; jumptable 0000000000032C1D case 123 call __Znwm; operator new(ulong) mov dword ptr [rax+0Ch], 7Bh ; '{' lea rcx, _ZTV7PycDict; `vtable for'PycDict add rcx, 10h mov [rax], rcx xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 mov qword ptr [rax+20h], 0 jmp loc_32F06 loc_32E65: mov edi, 30h ; '0'; jumptable 0000000000032C1D case 108 call __Znwm; operator new(ulong) mov qword ptr [rax+0Ch], 6Ch ; 'l' loc_32E77: lea rcx, _ZTV7PycLong; `vtable for'PycLong add rcx, 10h mov [rax], rcx xorps xmm0, xmm0 movups xmmword ptr [rax+18h], xmm0 mov qword ptr [rax+28h], 0 jmp short loc_32F06 loc_32E96: mov edi, 18h; jumptable 0000000000032C1D case 105 call __Znwm; operator new(ulong) mov rcx, 6900000069h mov [rax+0Ch], rcx lea rcx, _ZTV6PycInt; `vtable for'PycInt jmp short loc_32EFF loc_32EB7: mov edi, 18h; jumptable 0000000000032C1D case 103 call __Znwm; operator new(ulong) mov dword ptr [rax+0Ch], 67h ; 'g' lea rcx, _ZTV9PycCFloat; `vtable for'PycCFloat add rcx, 10h mov [rax], rcx mov qword ptr [rax+10h], 0 jmp short loc_32F06 loc_32EE0: mov edi, 20h ; ' '; jumptable 0000000000032C1D case 121 call __Znwm; operator new(ulong) mov dword ptr [rax+0Ch], 79h ; 'y' xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 lea rcx, _ZTV11PycCComplex; `vtable for'PycCComplex loc_32EFF: add rcx, 10h loc_32F03: mov [rax], rcx loc_32F06: mov [rbx], rax mov dword ptr [rax+8], 1 loc_32F10: mov rax, rbx pop rbx pop r14 pop rbp retn loc_32F18: mov rax, cs:Pyc_Ellipsis loc_32F1F: mov [rbx], rax test rax, rax jz short loc_32F10 inc dword ptr [rax+8] jmp short loc_32F10 def_32C1D: mov rax, cs:stderr_ptr; jumptable 0000000000032C1D default case, cases 92-96,98,100,101,104,106,107,109-114,118,119 mov rdi, [rax] lea rsi, aCreateobjectGo; "CreateObject: Got unsupported type 0x%X"... mov edx, r14d xor eax, eax call _fprintf jmp loc_32CF5
long long * CreateObject(long long *a1, int a2) { long long v2; // rax void ( **v3)(PycSimpleSequence *__hidden); // rcx long long *v4; // rcx long long *v5; // rcx long long v6; // rax if ( a2 > 89 ) { switch ( a2 ) { case 'Z': case 'a': case 's': case 't': case 'u': case 'z': goto LABEL_7; case '[': v2 = operator new(0x30uLL); *(_QWORD *)(v2 + 12) = 91LL; *(_OWORD *)(v2 + 24) = 0LL; *(_QWORD *)(v2 + 40) = 0LL; v3 = off_4ABB0; goto LABEL_29; case 'c': goto LABEL_13; case 'f': v2 = operator new(0x30uLL); *(_DWORD *)(v2 + 12) = 102; v4 = &`vtable for'PycFloat; goto LABEL_8; case 'g': v2 = operator new(0x18uLL); *(_DWORD *)(v2 + 12) = 103; *(_QWORD *)v2 = &`vtable for'PycCFloat + 2; *(_QWORD *)(v2 + 16) = 0LL; goto LABEL_30; case 'i': v2 = operator new(0x18uLL); *(_QWORD *)(v2 + 12) = 0x6900000069LL; v5 = &`vtable for'PycInt; goto LABEL_28; case 'l': v2 = operator new(0x30uLL); *(_QWORD *)(v2 + 12) = 108LL; goto LABEL_24; case 'x': v2 = operator new(0x50uLL); *(_DWORD *)(v2 + 12) = 120; *(_QWORD *)(v2 + 16) = v2 + 32; *(_QWORD *)(v2 + 24) = 0LL; *(_BYTE *)(v2 + 32) = 0; *(_QWORD *)v2 = &`vtable for'PycComplex + 2; *(_QWORD *)(v2 + 48) = v2 + 64; *(_QWORD *)(v2 + 56) = 0LL; *(_BYTE *)(v2 + 64) = 0; goto LABEL_30; case 'y': v2 = operator new(0x20uLL); *(_DWORD *)(v2 + 12) = 121; *(_OWORD *)(v2 + 16) = 0LL; v5 = &`vtable for'PycCComplex; goto LABEL_28; case '{': v2 = operator new(0x28uLL); *(_DWORD *)(v2 + 12) = 123; *(_QWORD *)v2 = &`vtable for'PycDict + 2; *(_OWORD *)(v2 + 16) = 0LL; *(_QWORD *)(v2 + 32) = 0LL; goto LABEL_30; default: goto LABEL_35; } } if ( a2 > 59 ) { switch ( a2 ) { case '<': case '>': v2 = operator new(0x30uLL); *(_DWORD *)(v2 + 12) = a2; *(_DWORD *)(v2 + 16) = 0; *(_OWORD *)(v2 + 24) = 0LL; *(_QWORD *)(v2 + 40) = 0LL; v3 = off_4ABE8; goto LABEL_29; case 'A': case 'R': LABEL_7: v2 = operator new(0x30uLL); *(_DWORD *)(v2 + 12) = a2; v4 = &`vtable for'PycString; LABEL_8: *(_QWORD *)v2 = v4 + 2; *(_QWORD *)(v2 + 16) = v2 + 32; *(_QWORD *)(v2 + 24) = 0LL; *(_BYTE *)(v2 + 32) = 0; goto LABEL_30; case 'C': LABEL_13: v2 = operator new(0xA8uLL); *(_DWORD *)(v2 + 12) = a2; *(_QWORD *)v2 = &`vtable for'PycCode + 2; *(_OWORD *)(v2 + 16) = 0LL; *(_OWORD *)(v2 + 32) = 0LL; *(_OWORD *)(v2 + 48) = 0LL; *(_OWORD *)(v2 + 64) = 0LL; *(_OWORD *)(v2 + 80) = 0LL; *(_OWORD *)(v2 + 96) = 0LL; *(_OWORD *)(v2 + 108) = 0LL; *(_OWORD *)(v2 + 128) = 0LL; *(_OWORD *)(v2 + 144) = 0LL; *(_QWORD *)(v2 + 160) = 0LL; goto LABEL_30; case 'F': v6 = Pyc_False; goto LABEL_33; case 'I': v2 = operator new(0x30uLL); *(_QWORD *)(v2 + 12) = 73LL; LABEL_24: *(_QWORD *)v2 = &`vtable for'PycLong + 2; *(_OWORD *)(v2 + 24) = 0LL; *(_QWORD *)(v2 + 40) = 0LL; goto LABEL_30; case 'N': v6 = Pyc_None; goto LABEL_33; case 'S': v6 = Pyc_StopIteration; goto LABEL_33; case 'T': v6 = Pyc_True; goto LABEL_33; default: goto LABEL_35; } } if ( (unsigned int)(a2 - 40) < 2 ) { v2 = operator new(0x30uLL); *(_DWORD *)(v2 + 12) = a2; *(_DWORD *)(v2 + 16) = 0; *(_OWORD *)(v2 + 24) = 0LL; *(_QWORD *)(v2 + 40) = 0LL; v5 = &`vtable for'PycTuple; LABEL_28: v3 = (void ( **)(PycSimpleSequence *__hidden))(v5 + 2); LABEL_29: *(_QWORD *)v2 = v3; LABEL_30: *a1 = v2; *(_DWORD *)(v2 + 8) = 1; } else if ( a2 == 46 ) { v6 = Pyc_Ellipsis; LABEL_33: *a1 = v6; if ( v6 ) ++*(_DWORD *)(v6 + 8); } else { if ( a2 != 48 ) LABEL_35: fprintf(stderr, "CreateObject: Got unsupported type 0x%X\n", a2); *a1 = 0LL; } return a1; }
CreateObject: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14D,ESI MOV RBX,RDI CMP ESI,0x59 JLE 0x00132c4c LEA EAX,[R14 + -0x5a] CMP EAX,0x21 JA 0x00132f2c LEA RCX,[0x138488] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_5b: MOV EDI,0x30 CALL 0x00107220 MOV qword ptr [RAX + 0xc],0x5b XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x18],XMM0 MOV qword ptr [RAX + 0x28],0x0 LEA RCX,[0x14abb0] JMP 0x00132f03 LAB_00132c4c: CMP R14D,0x3b JLE 0x00132cd8 LEA EAX,[R14 + -0x3c] CMP EAX,0x18 JA 0x00132f2c LEA RCX,[0x138424] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_3c: MOV EDI,0x30 CALL 0x00107220 MOV dword ptr [RAX + 0xc],R14D MOV dword ptr [RAX + 0x10],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x18],XMM0 MOV qword ptr [RAX + 0x28],0x0 LEA RCX,[0x14abe8] JMP 0x00132f03 caseD_5a: MOV EDI,0x30 CALL 0x00107220 MOV dword ptr [RAX + 0xc],R14D LEA RCX,[0x14acf8] LAB_00132cb8: ADD RCX,0x10 MOV qword ptr [RAX],RCX LEA RCX,[RAX + 0x20] MOV qword ptr [RAX + 0x10],RCX MOV qword ptr [RAX + 0x18],0x0 MOV byte ptr [RAX + 0x20],0x0 JMP 0x00132f06 LAB_00132cd8: LEA EAX,[R14 + -0x28] CMP EAX,0x2 JC 0x00132d5a CMP R14D,0x2e JZ 0x00132f18 CMP R14D,0x30 JNZ 0x00132f2c LAB_00132cf5: MOV qword ptr [RBX],0x0 JMP 0x00132f10 caseD_63: MOV EDI,0xa8 CALL 0x00107220 MOV dword ptr [RAX + 0xc],R14D LEA RCX,[0x14a990] ADD RCX,0x10 MOV qword ptr [RAX],RCX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOVUPS xmmword ptr [RAX + 0x20],XMM0 MOVUPS xmmword ptr [RAX + 0x30],XMM0 MOVUPS xmmword ptr [RAX + 0x40],XMM0 MOVUPS xmmword ptr [RAX + 0x50],XMM0 MOVUPS xmmword ptr [RAX + 0x60],XMM0 MOVUPS xmmword ptr [RAX + 0x6c],XMM0 MOVUPS xmmword ptr [RAX + 0x80],XMM0 MOVUPS xmmword ptr [RAX + 0x90],XMM0 MOV qword ptr [RAX + 0xa0],0x0 JMP 0x00132f06 LAB_00132d5a: MOV EDI,0x30 CALL 0x00107220 MOV dword ptr [RAX + 0xc],R14D MOV dword ptr [RAX + 0x10],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x18],XMM0 MOV qword ptr [RAX + 0x28],0x0 LEA RCX,[0x14ac60] JMP 0x00132eff caseD_49: MOV EDI,0x30 CALL 0x00107220 MOV qword ptr [RAX + 0xc],0x49 JMP 0x00132e77 caseD_54: MOV RAX,qword ptr [0x0014b2d0] JMP 0x00132f1f caseD_46: MOV RAX,qword ptr [0x0014b2c8] JMP 0x00132f1f caseD_4e: MOV RAX,qword ptr [0x0014b2b0] JMP 0x00132f1f caseD_53: MOV RAX,qword ptr [0x0014b2c0] JMP 0x00132f1f caseD_78: MOV EDI,0x50 CALL 0x00107220 MOV dword ptr [RAX + 0xc],0x78 LEA RCX,[RAX + 0x20] MOV qword ptr [RAX + 0x10],RCX XOR ECX,ECX MOV qword ptr [RAX + 0x18],RCX MOV byte ptr [RAX + 0x20],CL LEA RDX,[0x14aac8] ADD RDX,0x10 MOV qword ptr [RAX],RDX LEA RDX,[RAX + 0x40] MOV qword ptr [RAX + 0x30],RDX MOV qword ptr [RAX + 0x38],RCX MOV byte ptr [RAX + 0x40],CL JMP 0x00132f06 caseD_66: MOV EDI,0x30 CALL 0x00107220 MOV dword ptr [RAX + 0xc],0x66 LEA RCX,[0x14aa80] JMP 0x00132cb8 caseD_7b: MOV EDI,0x28 CALL 0x00107220 MOV dword ptr [RAX + 0xc],0x7b LEA RCX,[0x14acb0] ADD RCX,0x10 MOV qword ptr [RAX],RCX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV qword ptr [RAX + 0x20],0x0 JMP 0x00132f06 caseD_6c: MOV EDI,0x30 CALL 0x00107220 MOV qword ptr [RAX + 0xc],0x6c LAB_00132e77: LEA RCX,[0x14aa38] ADD RCX,0x10 MOV qword ptr [RAX],RCX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x18],XMM0 MOV qword ptr [RAX + 0x28],0x0 JMP 0x00132f06 caseD_69: MOV EDI,0x18 CALL 0x00107220 MOV RCX,0x6900000069 MOV qword ptr [RAX + 0xc],RCX LEA RCX,[0x14a9f0] JMP 0x00132eff caseD_67: MOV EDI,0x18 CALL 0x00107220 MOV dword ptr [RAX + 0xc],0x67 LEA RCX,[0x14ab10] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x10],0x0 JMP 0x00132f06 caseD_79: MOV EDI,0x20 CALL 0x00107220 MOV dword ptr [RAX + 0xc],0x79 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 LEA RCX,[0x14ab58] LAB_00132eff: ADD RCX,0x10 LAB_00132f03: MOV qword ptr [RAX],RCX LAB_00132f06: MOV qword ptr [RBX],RAX MOV dword ptr [RAX + 0x8],0x1 LAB_00132f10: MOV RAX,RBX POP RBX POP R14 POP RBP RET LAB_00132f18: MOV RAX,qword ptr [0x0014b2b8] LAB_00132f1f: MOV qword ptr [RBX],RAX TEST RAX,RAX JZ 0x00132f10 INC dword ptr [RAX + 0x8] JMP 0x00132f10 caseD_5c: MOV RAX,qword ptr [0x0014af98] MOV RDI,qword ptr [RAX] LEA RSI,[0x138510] MOV EDX,R14D XOR EAX,EAX CALL 0x00107320 JMP 0x00132cf5
/* CreateObject(int) */ long * CreateObject(int param_1) { int8 *puVar1; long lVar2; int *puVar3; int **ppuVar4; uint in_ESI; int4 in_register_0000003c; long *plVar5; plVar5 = (long *)CONCAT44(in_register_0000003c,param_1); if ((int)in_ESI < 0x5a) { if ((int)in_ESI < 0x3c) { if (in_ESI - 0x28 < 2) { puVar1 = (int8 *)operator_new(0x30); *(uint *)((long)puVar1 + 0xc) = in_ESI; *(int4 *)(puVar1 + 2) = 0; puVar1[3] = 0; puVar1[4] = 0; puVar1[5] = 0; puVar3 = &PycTuple::vtable; goto LAB_00132eff; } lVar2 = Pyc_Ellipsis; if (in_ESI == 0x2e) goto LAB_00132f1f; if (in_ESI == 0x30) goto LAB_00132cf5; switchD_00132c1d_caseD_5c: fprintf(*(FILE **)PTR_stderr_0014af98,"CreateObject: Got unsupported type 0x%X\n", (ulong)in_ESI); LAB_00132cf5: *plVar5 = 0; return plVar5; } switch(in_ESI) { case 0x3c: case 0x3e: puVar1 = (int8 *)operator_new(0x30); *(uint *)((long)puVar1 + 0xc) = in_ESI; *(int4 *)(puVar1 + 2) = 0; puVar1[3] = 0; puVar1[4] = 0; puVar1[5] = 0; ppuVar4 = &PTR__PycSimpleSequence_0014abe8; goto LAB_00132f03; default: goto switchD_00132c1d_caseD_5c; case 0x41: case 0x52: goto switchD_00132c1d_caseD_5a; case 0x43: goto switchD_00132c1d_caseD_63; case 0x46: lVar2 = Pyc_False; break; case 0x49: puVar1 = (int8 *)operator_new(0x30); *(int8 *)((long)puVar1 + 0xc) = 0x49; goto LAB_00132e77; case 0x4e: lVar2 = Pyc_None; break; case 0x53: lVar2 = Pyc_StopIteration; break; case 0x54: lVar2 = Pyc_True; } LAB_00132f1f: *plVar5 = lVar2; if (lVar2 == 0) { return plVar5; } *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1; return plVar5; } switch(in_ESI) { case 0x5a: case 0x61: case 0x73: case 0x74: case 0x75: case 0x7a: switchD_00132c1d_caseD_5a: puVar1 = (int8 *)operator_new(0x30); *(uint *)((long)puVar1 + 0xc) = in_ESI; puVar3 = &PycString::vtable; goto LAB_00132cb8; case 0x5b: puVar1 = (int8 *)operator_new(0x30); *(int8 *)((long)puVar1 + 0xc) = 0x5b; puVar1[3] = 0; puVar1[4] = 0; puVar1[5] = 0; ppuVar4 = &PTR__PycSimpleSequence_0014abb0; goto LAB_00132f03; default: goto switchD_00132c1d_caseD_5c; case 99: switchD_00132c1d_caseD_63: puVar1 = (int8 *)operator_new(0xa8); *(uint *)((long)puVar1 + 0xc) = in_ESI; *puVar1 = &PTR__PycCode_0014a9a0; puVar1[2] = 0; puVar1[3] = 0; puVar1[4] = 0; puVar1[5] = 0; puVar1[6] = 0; puVar1[7] = 0; puVar1[8] = 0; puVar1[9] = 0; puVar1[10] = 0; puVar1[0xb] = 0; puVar1[0xc] = 0; puVar1[0xd] = 0; *(int8 *)((long)puVar1 + 0x6c) = 0; *(int8 *)((long)puVar1 + 0x74) = 0; puVar1[0x10] = 0; puVar1[0x11] = 0; puVar1[0x12] = 0; puVar1[0x13] = 0; puVar1[0x14] = 0; break; case 0x66: puVar1 = (int8 *)operator_new(0x30); *(int4 *)((long)puVar1 + 0xc) = 0x66; puVar3 = &PycFloat::vtable; LAB_00132cb8: *puVar1 = puVar3 + 0x10; puVar1[2] = puVar1 + 4; puVar1[3] = 0; *(int1 *)(puVar1 + 4) = 0; break; case 0x67: puVar1 = (int8 *)operator_new(0x18); *(int4 *)((long)puVar1 + 0xc) = 0x67; *puVar1 = &PTR__PycObject_0014ab20; puVar1[2] = 0; break; case 0x69: puVar1 = (int8 *)operator_new(0x18); *(int8 *)((long)puVar1 + 0xc) = 0x6900000069; puVar3 = &PycInt::vtable; goto LAB_00132eff; case 0x6c: puVar1 = (int8 *)operator_new(0x30); *(int8 *)((long)puVar1 + 0xc) = 0x6c; LAB_00132e77: *puVar1 = &PTR__PycLong_0014aa48; puVar1[3] = 0; puVar1[4] = 0; puVar1[5] = 0; break; case 0x78: puVar1 = (int8 *)operator_new(0x50); *(int4 *)((long)puVar1 + 0xc) = 0x78; puVar1[2] = puVar1 + 4; puVar1[3] = 0; *(int1 *)(puVar1 + 4) = 0; *puVar1 = &PTR__PycComplex_0014aad8; puVar1[6] = puVar1 + 8; puVar1[7] = 0; *(int1 *)(puVar1 + 8) = 0; break; case 0x79: puVar1 = (int8 *)operator_new(0x20); *(int4 *)((long)puVar1 + 0xc) = 0x79; puVar1[2] = 0; puVar1[3] = 0; puVar3 = &PycCComplex::vtable; LAB_00132eff: ppuVar4 = (int **)(puVar3 + 0x10); LAB_00132f03: *puVar1 = ppuVar4; break; case 0x7b: puVar1 = (int8 *)operator_new(0x28); *(int4 *)((long)puVar1 + 0xc) = 0x7b; *puVar1 = &PTR__PycDict_0014acc0; puVar1[2] = 0; puVar1[3] = 0; puVar1[4] = 0; } *plVar5 = (long)puVar1; *(int4 *)(puVar1 + 1) = 1; return plVar5; }
29,361
ma_unlock_key_del
eloqsql/storage/maria/ma_key_recover.c
void _ma_unlock_key_del(MARIA_HA *info) { DBUG_ASSERT(info->key_del_used); if (info->key_del_used == 1) /* Ignore insert-with-append */ { MARIA_SHARE *share= info->s; mysql_mutex_lock(&share->key_del_lock); share->key_del_used= 0; share->state.key_del= share->key_del_current; mysql_mutex_unlock(&share->key_del_lock); mysql_cond_signal(&share->key_del_cond); } info->key_del_used= 0; }
O3
c
ma_unlock_key_del: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpb $0x1, 0x67e(%rdi) jne 0x41401 movq (%rbx), %r14 leaq 0x938(%r14), %r15 cmpq $0x0, 0x978(%r14) jne 0x41413 movq %r15, %rdi callq 0x29200 movb $0x0, 0x7e9(%r14) movq 0x700(%r14), %rax movq %rax, 0x120(%r14) movq 0x978(%r14), %rdi testq %rdi, %rdi jne 0x41429 movq %r15, %rdi callq 0x291c0 movq 0x9b0(%r14), %rdi addq $0x980, %r14 # imm = 0x980 testq %rdi, %rdi jne 0x4143b movq %r14, %rdi callq 0x295b0 movb $0x0, 0x67e(%rbx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x98ec3(%rip), %rsi # 0xda2dd movq %r15, %rdi movl $0x59a, %edx # imm = 0x59A callq 0x2eb6f jmp 0x413bc leaq 0x344be0(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x413de leaq 0x344bce(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x170(%rax) jmp 0x413f9 nopl (%rax)
_ma_unlock_key_del: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi cmp byte ptr [rdi+67Eh], 1 jnz short loc_41401 mov r14, [rbx] lea r15, [r14+938h] cmp qword ptr [r14+978h], 0 jnz short loc_41413 mov rdi, r15 call _pthread_mutex_lock loc_413BC: mov byte ptr [r14+7E9h], 0 mov rax, [r14+700h] mov [r14+120h], rax mov rdi, [r14+978h] test rdi, rdi jnz short loc_41429 loc_413DE: mov rdi, r15 call _pthread_mutex_unlock mov rdi, [r14+9B0h] add r14, 980h test rdi, rdi jnz short loc_4143B loc_413F9: mov rdi, r14 call _pthread_cond_signal loc_41401: mov byte ptr [rbx+67Eh], 0 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_41413: lea rsi, aWorkspaceLlm4b_28; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r15 mov edx, 59Ah call psi_mutex_lock jmp short loc_413BC loc_41429: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_413DE loc_4143B: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_413F9
long long ma_unlock_key_del(_BYTE *a1) { long long v2; // r14 long long v3; // r15 long long v4; // rdi long long v5; // rdi long long v6; // r14 long long result; // rax if ( a1[1662] == 1 ) { v2 = *(_QWORD *)a1; v3 = *(_QWORD *)a1 + 2360LL; if ( *(_QWORD *)(*(_QWORD *)a1 + 2424LL) ) psi_mutex_lock( *(_QWORD *)a1 + 2360LL, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_key_recover.c", 0x59Au); else pthread_mutex_lock(*(_QWORD *)a1 + 2360LL); *(_BYTE *)(v2 + 2025) = 0; *(_QWORD *)(v2 + 288) = *(_QWORD *)(v2 + 1792); v4 = *(_QWORD *)(v2 + 2424); if ( v4 ) ((void ( *)(long long))PSI_server[44])(v4); pthread_mutex_unlock(v3); v5 = *(_QWORD *)(v2 + 2480); v6 = v2 + 2432; if ( v5 ) ((void ( *)(long long))PSI_server[46])(v5); result = pthread_cond_signal(v6); } a1[1662] = 0; return result; }
_ma_unlock_key_del: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CMP byte ptr [RDI + 0x67e],0x1 JNZ 0x00141401 MOV R14,qword ptr [RBX] LEA R15,[R14 + 0x938] CMP qword ptr [R14 + 0x978],0x0 JNZ 0x00141413 MOV RDI,R15 CALL 0x00129200 LAB_001413bc: MOV byte ptr [R14 + 0x7e9],0x0 MOV RAX,qword ptr [R14 + 0x700] MOV qword ptr [R14 + 0x120],RAX MOV RDI,qword ptr [R14 + 0x978] TEST RDI,RDI JNZ 0x00141429 LAB_001413de: MOV RDI,R15 CALL 0x001291c0 MOV RDI,qword ptr [R14 + 0x9b0] ADD R14,0x980 TEST RDI,RDI JNZ 0x0014143b LAB_001413f9: MOV RDI,R14 CALL 0x001295b0 LAB_00141401: MOV byte ptr [RBX + 0x67e],0x0 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_00141413: LEA RSI,[0x1da2dd] MOV RDI,R15 MOV EDX,0x59a CALL 0x0012eb6f JMP 0x001413bc LAB_00141429: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001413de LAB_0014143b: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x001413f9
void _ma_unlock_key_del(long *param_1) { pthread_mutex_t *__mutex; long lVar1; if (*(char *)((long)param_1 + 0x67e) == '\x01') { lVar1 = *param_1; __mutex = (pthread_mutex_t *)(lVar1 + 0x938); if (*(long *)(lVar1 + 0x978) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_key_recover.c",0x59a ); } *(int1 *)(lVar1 + 0x7e9) = 0; *(int8 *)(lVar1 + 0x120) = *(int8 *)(lVar1 + 0x700); if (*(long *)(lVar1 + 0x978) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); if (*(long *)(lVar1 + 0x9b0) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar1 + 0x980)); } *(int1 *)((long)param_1 + 0x67e) = 0; return; }
29,362
mark_blocks_free
eloqsql/mysys/my_alloc.c
static inline void mark_blocks_free(MEM_ROOT* root) { reg1 USED_MEM *next; reg2 USED_MEM **last; /* iterate through (partially) free blocks, mark them free */ last= &root->free; for (next= root->free; next; next= *(last= &next->next)) { next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); TRASH_MEM(next); } /* Combine the free and the used list */ *last= next=root->used; /* now go through the used blocks and mark them free */ for (; next; next= next->next) { next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); TRASH_MEM(next); } /* Now everything is set; Indicate that nothing is used anymore */ root->used= 0; root->first_block_usage= 0; root->block_num= 4; }
O0
c
mark_blocks_free: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0xedbaf movq -0x10(%rbp), %rax movq 0x10(%rax), %rcx subq $0x18, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) jmp 0xedb98 jmp 0xedb9a jmp 0xedb9c jmp 0xedb9e movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) movq (%rax), %rax movq %rax, -0x10(%rbp) jmp 0xedb7b movq -0x8(%rbp), %rax movq 0x8(%rax), %rcx movq %rcx, -0x10(%rbp) movq -0x18(%rbp), %rax movq %rcx, (%rax) cmpq $0x0, -0x10(%rbp) je 0xedbf2 movq -0x10(%rbp), %rax movq 0x10(%rax), %rcx subq $0x18, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) jmp 0xedbdf jmp 0xedbe1 jmp 0xedbe3 jmp 0xedbe5 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) jmp 0xedbc2 movq -0x8(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x2c(%rax) movq -0x8(%rbp), %rax movl $0x4, 0x28(%rax) popq %rbp retq nopw %cs:(%rax,%rax)
mark_blocks_free: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_18], rax mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_10], rax loc_EDB7B: cmp [rbp+var_10], 0 jz short loc_EDBAF mov rax, [rbp+var_10] mov rcx, [rax+10h] sub rcx, 18h mov rax, [rbp+var_10] mov [rax+8], rcx jmp short $+2 loc_EDB98: jmp short $+2 loc_EDB9A: jmp short $+2 loc_EDB9C: jmp short $+2 loc_EDB9E: mov rax, [rbp+var_10] mov [rbp+var_18], rax mov rax, [rax] mov [rbp+var_10], rax jmp short loc_EDB7B loc_EDBAF: mov rax, [rbp+var_8] mov rcx, [rax+8] mov [rbp+var_10], rcx mov rax, [rbp+var_18] mov [rax], rcx loc_EDBC2: cmp [rbp+var_10], 0 jz short loc_EDBF2 mov rax, [rbp+var_10] mov rcx, [rax+10h] sub rcx, 18h mov rax, [rbp+var_10] mov [rax+8], rcx jmp short $+2 loc_EDBDF: jmp short $+2 loc_EDBE1: jmp short $+2 loc_EDBE3: jmp short $+2 loc_EDBE5: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_10], rax jmp short loc_EDBC2 loc_EDBF2: mov rax, [rbp+var_8] mov qword ptr [rax+8], 0 mov rax, [rbp+var_8] mov dword ptr [rax+2Ch], 0 mov rax, [rbp+var_8] mov dword ptr [rax+28h], 4 pop rbp retn
long long mark_blocks_free(long long a1) { long long result; // rax _QWORD *v2; // [rsp+0h] [rbp-18h] _QWORD *i; // [rsp+8h] [rbp-10h] _QWORD *v4; // [rsp+8h] [rbp-10h] v2 = (_QWORD *)a1; for ( i = *(_QWORD **)a1; i; i = (_QWORD *)*i ) { i[1] = i[2] - 24LL; v2 = i; } v4 = *(_QWORD **)(a1 + 8); *v2 = v4; while ( v4 ) { v4[1] = v4[2] - 24LL; v4 = (_QWORD *)*v4; } *(_QWORD *)(a1 + 8) = 0LL; *(_DWORD *)(a1 + 44) = 0; result = a1; *(_DWORD *)(a1 + 40) = 4; return result; }
mark_blocks_free: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX LAB_001edb7b: CMP qword ptr [RBP + -0x10],0x0 JZ 0x001edbaf MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x10] SUB RCX,0x18 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX JMP 0x001edb98 LAB_001edb98: JMP 0x001edb9a LAB_001edb9a: JMP 0x001edb9c LAB_001edb9c: JMP 0x001edb9e LAB_001edb9e: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX JMP 0x001edb7b LAB_001edbaf: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x10],RCX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX LAB_001edbc2: CMP qword ptr [RBP + -0x10],0x0 JZ 0x001edbf2 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x10] SUB RCX,0x18 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX JMP 0x001edbdf LAB_001edbdf: JMP 0x001edbe1 LAB_001edbe1: JMP 0x001edbe3 LAB_001edbe3: JMP 0x001edbe5 LAB_001edbe5: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX JMP 0x001edbc2 LAB_001edbf2: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x2c],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x28],0x4 POP RBP RET
void mark_blocks_free(int8 *param_1) { int8 *local_20; int8 *local_18; local_20 = param_1; for (local_18 = (int8 *)*param_1; local_18 != (int8 *)0x0; local_18 = (int8 *)*local_18) { local_18[1] = local_18[2] + -0x18; local_20 = local_18; } local_18 = (int8 *)param_1[1]; *local_20 = local_18; for (; local_18 != (int8 *)0x0; local_18 = (int8 *)*local_18) { local_18[1] = local_18[2] + -0x18; } param_1[1] = 0; *(int4 *)((long)param_1 + 0x2c) = 0; *(int4 *)(param_1 + 5) = 4; return; }
29,363
free_tree
eloqsql/mysys/tree.c
static int free_tree(TREE *tree, my_bool abort, myf free_flags) { int error, first_error= 0; DBUG_ENTER("free_tree"); DBUG_PRINT("enter",("tree: %p", tree)); if (tree->root) /* If initialized */ { if (tree->with_delete) { if ((error= delete_tree_element(tree, tree->root, abort))) { first_error= first_error ? first_error : error; abort= 1; } } else { if (tree->free) { if (tree->memory_limit) (*tree->free)(NULL, free_init, tree->custom_arg); if ((error= delete_tree_element(tree, tree->root, abort))) first_error= first_error ? first_error : error; if (tree->memory_limit) (*tree->free)(NULL, free_end, tree->custom_arg); } free_root(&tree->mem_root, free_flags); } } tree->root= &null_element; tree->elements_in_tree=0; tree->allocated=0; DBUG_RETURN(first_error); }
O3
c
free_tree: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %esi, %r15d movq %rdi, %rbx movq (%rdi), %rsi testq %rsi, %rsi je 0xa5bd9 cmpb $0x0, 0x278(%rbx) je 0xa5bde movsbl %r15b, %edx movq %rbx, %rdi callq 0xa6832 movl %eax, %r15d jmp 0xa5c48 xorl %r15d, %r15d jmp 0xa5c48 movq %rdx, %r14 movq 0x280(%rbx), %rax testq %rax, %rax je 0xa5c36 cmpq $0x0, 0x218(%rbx) je 0xa5c07 movq 0x230(%rbx), %rdx xorl %edi, %edi xorl %esi, %esi callq *%rax movq (%rbx), %rsi movsbl %r15b, %edx movq %rbx, %rdi callq 0xa6832 movl %eax, %r15d cmpq $0x0, 0x218(%rbx) je 0xa5c39 movq 0x230(%rbx), %rdx xorl %edi, %edi movl $0x2, %esi callq *0x280(%rbx) jmp 0xa5c39 xorl %r15d, %r15d leaq 0x238(%rbx), %rdi movq %r14, %rsi callq 0x9e1a3 leaq 0x2e1f71(%rip), %rax # 0x387bc0 movq %rax, (%rbx) movl $0x0, 0x20c(%rbx) movq $0x0, 0x220(%rbx) movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
free_tree: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r15d, esi mov rbx, rdi mov rsi, [rdi] test rsi, rsi jz short loc_A5BD9 cmp byte ptr [rbx+278h], 0 jz short loc_A5BDE movsx edx, r15b mov rdi, rbx call delete_tree_element mov r15d, eax jmp short loc_A5C48 loc_A5BD9: xor r15d, r15d jmp short loc_A5C48 loc_A5BDE: mov r14, rdx mov rax, [rbx+280h] test rax, rax jz short loc_A5C36 cmp qword ptr [rbx+218h], 0 jz short loc_A5C07 mov rdx, [rbx+230h] xor edi, edi xor esi, esi call rax mov rsi, [rbx] loc_A5C07: movsx edx, r15b mov rdi, rbx call delete_tree_element mov r15d, eax cmp qword ptr [rbx+218h], 0 jz short loc_A5C39 mov rdx, [rbx+230h] xor edi, edi mov esi, 2 call qword ptr [rbx+280h] jmp short loc_A5C39 loc_A5C36: xor r15d, r15d loc_A5C39: lea rdi, [rbx+238h] mov rsi, r14 call free_root loc_A5C48: lea rax, null_element mov [rbx], rax mov dword ptr [rbx+20Ch], 0 mov qword ptr [rbx+220h], 0 mov eax, r15d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long free_tree(long long *a1, char a2, char a3) { long long v4; // rsi unsigned int v5; // r15d void ( *v7)(_QWORD, _QWORD, long long); // rax v4 = *a1; if ( *a1 ) { if ( *((_BYTE *)a1 + 632) ) { v5 = delete_tree_element(a1, v4, (unsigned int)a2); } else { v7 = (void ( *)(_QWORD, _QWORD, long long))a1[80]; if ( v7 ) { if ( a1[67] ) { v7(0LL, 0LL, a1[70]); v4 = *a1; } v5 = delete_tree_element(a1, v4, (unsigned int)a2); if ( a1[67] ) ((void ( *)(_QWORD, long long, long long))a1[80])(0LL, 2LL, a1[70]); } else { v5 = 0; } free_root(a1 + 71, a3); } } else { v5 = 0; } *a1 = (long long)&null_element; *((_DWORD *)a1 + 131) = 0; a1[68] = 0LL; return v5; }
free_tree: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R15D,ESI MOV RBX,RDI MOV RSI,qword ptr [RDI] TEST RSI,RSI JZ 0x001a5bd9 CMP byte ptr [RBX + 0x278],0x0 JZ 0x001a5bde MOVSX EDX,R15B MOV RDI,RBX CALL 0x001a6832 MOV R15D,EAX JMP 0x001a5c48 LAB_001a5bd9: XOR R15D,R15D JMP 0x001a5c48 LAB_001a5bde: MOV R14,RDX MOV RAX,qword ptr [RBX + 0x280] TEST RAX,RAX JZ 0x001a5c36 CMP qword ptr [RBX + 0x218],0x0 JZ 0x001a5c07 MOV RDX,qword ptr [RBX + 0x230] XOR EDI,EDI XOR ESI,ESI CALL RAX MOV RSI,qword ptr [RBX] LAB_001a5c07: MOVSX EDX,R15B MOV RDI,RBX CALL 0x001a6832 MOV R15D,EAX CMP qword ptr [RBX + 0x218],0x0 JZ 0x001a5c39 MOV RDX,qword ptr [RBX + 0x230] XOR EDI,EDI MOV ESI,0x2 CALL qword ptr [RBX + 0x280] JMP 0x001a5c39 LAB_001a5c36: XOR R15D,R15D LAB_001a5c39: LEA RDI,[RBX + 0x238] MOV RSI,R14 CALL 0x0019e1a3 LAB_001a5c48: LEA RAX,[0x487bc0] MOV qword ptr [RBX],RAX MOV dword ptr [RBX + 0x20c],0x0 MOV qword ptr [RBX + 0x220],0x0 MOV EAX,R15D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int4 free_tree(long *param_1,char param_2,int8 param_3) { int4 uVar1; long lVar2; lVar2 = *param_1; if (lVar2 == 0) { uVar1 = 0; } else if ((char)param_1[0x4f] == '\0') { if ((code *)param_1[0x50] == (code *)0x0) { uVar1 = 0; } else { if (param_1[0x43] != 0) { (*(code *)param_1[0x50])(0,0,param_1[0x46]); lVar2 = *param_1; } uVar1 = delete_tree_element(param_1,lVar2,(int)param_2); if (param_1[0x43] != 0) { (*(code *)param_1[0x50])(0,2,param_1[0x46]); } } free_root(param_1 + 0x47,param_3); } else { uVar1 = delete_tree_element(param_1,lVar2,(int)param_2); } *param_1 = (long)null_element; *(int4 *)((long)param_1 + 0x20c) = 0; param_1[0x44] = 0; return uVar1; }
29,364
limb_to_a
bluesky950520[P]quickjs/libbf.c
static void limb_to_a(char *buf, limb_t n, unsigned int radix, int len) { int digit, i; if (radix == 10) { /* specific case with constant divisor */ for(i = len - 1; i >= 0; i--) { digit = (limb_t)n % 10; n = (limb_t)n / 10; buf[i] = digit + '0'; } } else { for(i = len - 1; i >= 0; i--) { digit = (limb_t)n % radix; n = (limb_t)n / radix; if (digit < 10) digit += '0'; else digit += 'a' - 10; buf[i] = digit; } } }
O0
c
limb_to_a: movq %rdi, -0x8(%rsp) movq %rsi, -0x10(%rsp) movl %edx, -0x14(%rsp) movl %ecx, -0x18(%rsp) cmpl $0xa, -0x14(%rsp) jne 0xf82e9 movl -0x18(%rsp), %eax subl $0x1, %eax movl %eax, -0x20(%rsp) cmpl $0x0, -0x20(%rsp) jl 0xf82e7 movq -0x10(%rsp), %rax movl $0xa, %ecx xorl %edx, %edx divq %rcx movl %edx, %eax movl %eax, -0x1c(%rsp) movq -0x10(%rsp), %rax movl $0xa, %ecx xorl %edx, %edx divq %rcx movq %rax, -0x10(%rsp) movl -0x1c(%rsp), %eax addl $0x30, %eax movb %al, %dl movq -0x8(%rsp), %rax movslq -0x20(%rsp), %rcx movb %dl, (%rax,%rcx) movl -0x20(%rsp), %eax addl $-0x1, %eax movl %eax, -0x20(%rsp) jmp 0xf8294 jmp 0xf8363 movl -0x18(%rsp), %eax subl $0x1, %eax movl %eax, -0x20(%rsp) cmpl $0x0, -0x20(%rsp) jl 0xf8361 movq -0x10(%rsp), %rax movl -0x14(%rsp), %ecx xorl %edx, %edx divq %rcx movl %edx, %eax movl %eax, -0x1c(%rsp) movq -0x10(%rsp), %rax movl -0x14(%rsp), %ecx xorl %edx, %edx divq %rcx movq %rax, -0x10(%rsp) cmpl $0xa, -0x1c(%rsp) jge 0xf8336 movl -0x1c(%rsp), %eax addl $0x30, %eax movl %eax, -0x1c(%rsp) jmp 0xf8341 movl -0x1c(%rsp), %eax addl $0x57, %eax movl %eax, -0x1c(%rsp) movl -0x1c(%rsp), %eax movb %al, %dl movq -0x8(%rsp), %rax movslq -0x20(%rsp), %rcx movb %dl, (%rax,%rcx) movl -0x20(%rsp), %eax addl $-0x1, %eax movl %eax, -0x20(%rsp) jmp 0xf82f4 jmp 0xf8363 retq nopw %cs:(%rax,%rax)
limb_to_a: mov [rsp+var_8], rdi mov [rsp+var_10], rsi mov [rsp+var_14], edx mov [rsp+var_18], ecx cmp [rsp+var_14], 0Ah jnz short loc_F82E9 mov eax, [rsp+var_18] sub eax, 1 mov [rsp+var_20], eax loc_F8294: cmp [rsp+var_20], 0 jl short loc_F82E7 mov rax, [rsp+var_10] mov ecx, 0Ah xor edx, edx div rcx mov eax, edx mov [rsp+var_1C], eax mov rax, [rsp+var_10] mov ecx, 0Ah xor edx, edx div rcx mov [rsp+var_10], rax mov eax, [rsp+var_1C] add eax, 30h ; '0' mov dl, al mov rax, [rsp+var_8] movsxd rcx, [rsp+var_20] mov [rax+rcx], dl mov eax, [rsp+var_20] add eax, 0FFFFFFFFh mov [rsp+var_20], eax jmp short loc_F8294 loc_F82E7: jmp short locret_F8363 loc_F82E9: mov eax, [rsp+var_18] sub eax, 1 mov [rsp+var_20], eax loc_F82F4: cmp [rsp+var_20], 0 jl short loc_F8361 mov rax, [rsp+var_10] mov ecx, [rsp+var_14] xor edx, edx div rcx mov eax, edx mov [rsp+var_1C], eax mov rax, [rsp+var_10] mov ecx, [rsp+var_14] xor edx, edx div rcx mov [rsp+var_10], rax cmp [rsp+var_1C], 0Ah jge short loc_F8336 mov eax, [rsp+var_1C] add eax, 30h ; '0' mov [rsp+var_1C], eax jmp short loc_F8341 loc_F8336: mov eax, [rsp+var_1C] add eax, 57h ; 'W' mov [rsp+var_1C], eax loc_F8341: mov eax, [rsp+var_1C] mov dl, al mov rax, [rsp+var_8] movsxd rcx, [rsp+var_20] mov [rax+rcx], dl mov eax, [rsp+var_20] add eax, 0FFFFFFFFh mov [rsp+var_20], eax jmp short loc_F82F4 loc_F8361: jmp short $+2 locret_F8363: retn
long long limb_to_a(long long a1, unsigned long long a2, unsigned int a3, int a4) { long long result; // rax int i; // [rsp+0h] [rbp-20h] int j; // [rsp+0h] [rbp-20h] int v7; // [rsp+4h] [rbp-1Ch] int v8; // [rsp+4h] [rbp-1Ch] char v9; // [rsp+4h] [rbp-1Ch] if ( a3 == 10 ) { result = (unsigned int)(a4 - 1); for ( i = a4 - 1; i >= 0; --i ) { v7 = a2 % 0xA; a2 /= 0xAuLL; *(_BYTE *)(a1 + i) = v7 + 48; result = (unsigned int)(i - 1); } } else { result = (unsigned int)(a4 - 1); for ( j = a4 - 1; j >= 0; --j ) { v8 = a2 % a3; a2 /= a3; if ( v8 >= 10 ) v9 = v8 + 87; else v9 = v8 + 48; *(_BYTE *)(a1 + j) = v9; result = (unsigned int)(j - 1); } } return result; }
limb_to_a: MOV qword ptr [RSP + -0x8],RDI MOV qword ptr [RSP + -0x10],RSI MOV dword ptr [RSP + -0x14],EDX MOV dword ptr [RSP + -0x18],ECX CMP dword ptr [RSP + -0x14],0xa JNZ 0x001f82e9 MOV EAX,dword ptr [RSP + -0x18] SUB EAX,0x1 MOV dword ptr [RSP + -0x20],EAX LAB_001f8294: CMP dword ptr [RSP + -0x20],0x0 JL 0x001f82e7 MOV RAX,qword ptr [RSP + -0x10] MOV ECX,0xa XOR EDX,EDX DIV RCX MOV EAX,EDX MOV dword ptr [RSP + -0x1c],EAX MOV RAX,qword ptr [RSP + -0x10] MOV ECX,0xa XOR EDX,EDX DIV RCX MOV qword ptr [RSP + -0x10],RAX MOV EAX,dword ptr [RSP + -0x1c] ADD EAX,0x30 MOV DL,AL MOV RAX,qword ptr [RSP + -0x8] MOVSXD RCX,dword ptr [RSP + -0x20] MOV byte ptr [RAX + RCX*0x1],DL MOV EAX,dword ptr [RSP + -0x20] ADD EAX,-0x1 MOV dword ptr [RSP + -0x20],EAX JMP 0x001f8294 LAB_001f82e7: JMP 0x001f8363 LAB_001f82e9: MOV EAX,dword ptr [RSP + -0x18] SUB EAX,0x1 MOV dword ptr [RSP + -0x20],EAX LAB_001f82f4: CMP dword ptr [RSP + -0x20],0x0 JL 0x001f8361 MOV RAX,qword ptr [RSP + -0x10] MOV ECX,dword ptr [RSP + -0x14] XOR EDX,EDX DIV RCX MOV EAX,EDX MOV dword ptr [RSP + -0x1c],EAX MOV RAX,qword ptr [RSP + -0x10] MOV ECX,dword ptr [RSP + -0x14] XOR EDX,EDX DIV RCX MOV qword ptr [RSP + -0x10],RAX CMP dword ptr [RSP + -0x1c],0xa JGE 0x001f8336 MOV EAX,dword ptr [RSP + -0x1c] ADD EAX,0x30 MOV dword ptr [RSP + -0x1c],EAX JMP 0x001f8341 LAB_001f8336: MOV EAX,dword ptr [RSP + -0x1c] ADD EAX,0x57 MOV dword ptr [RSP + -0x1c],EAX LAB_001f8341: MOV EAX,dword ptr [RSP + -0x1c] MOV DL,AL MOV RAX,qword ptr [RSP + -0x8] MOVSXD RCX,dword ptr [RSP + -0x20] MOV byte ptr [RAX + RCX*0x1],DL MOV EAX,dword ptr [RSP + -0x20] ADD EAX,-0x1 MOV dword ptr [RSP + -0x20],EAX JMP 0x001f82f4 LAB_001f8361: JMP 0x001f8363 LAB_001f8363: RET
void limb_to_a(long param_1,ulong param_2,uint param_3,int param_4) { int1 auVar1 [16]; ulong uVar2; int4 local_20; int1 local_1c; int8 local_10; local_10 = param_2; if (param_3 == 10) { for (local_20 = param_4 + -1; -1 < local_20; local_20 = local_20 + -1) { auVar1._8_8_ = 0; auVar1._0_8_ = local_10; local_10 = local_10 / 10; *(char *)(param_1 + local_20) = SUB161(auVar1 % ZEXT816(10),0) + '0'; } } else { for (local_20 = param_4 + -1; -1 < local_20; local_20 = local_20 + -1) { uVar2 = local_10 % (ulong)param_3; local_10 = local_10 / param_3; local_1c = (char)uVar2; if ((int)uVar2 < 10) { local_1c = local_1c + '0'; } else { local_1c = local_1c + 'W'; } *(char *)(param_1 + local_20) = local_1c; } } return; }
29,365
Overworld::generate_features(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&)
untodesu[P]voxelius/game/server/overworld.cc
void Overworld::generate_features(const chunk_pos &cpos, VoxelStorage &voxels) { const chunk_pos_xz tree_chunks[] = { chunk_pos_xz(cpos.x - 0, cpos.z - 1), chunk_pos_xz(cpos.x - 1, cpos.z - 1), chunk_pos_xz(cpos.x - 1, cpos.z + 0), chunk_pos_xz(cpos.x - 1, cpos.z + 1), chunk_pos_xz(cpos.x + 0, cpos.z + 0), chunk_pos_xz(cpos.x + 0, cpos.z + 1), chunk_pos_xz(cpos.x + 1, cpos.z - 1), chunk_pos_xz(cpos.x + 1, cpos.z + 0), chunk_pos_xz(cpos.x + 1, cpos.z + 1), }; for(unsigned int i = 0U; i < cxpr::array_size(tree_chunks); ++i) { const auto &cpos_xz = tree_chunks[i]; const auto &metadata = get_or_create_metadata(cpos_xz); for(const auto &tree_info : metadata.trees) { auto hdx = static_cast<std::size_t>(tree_info.x + tree_info.z * CHUNK_SIZE); auto height = metadata.heightmap[hdx]; if(height == std::numeric_limits<voxel_pos::value_type>::min()) { // What happened? Cave happened continue; } auto cpos_xyz = chunk_pos(cpos_xz.x, 0, cpos_xz.y); auto lpos_xyz = local_pos(tree_info.x, 0, tree_info.z); auto vpos = coord::to_voxel(cpos_xyz, lpos_xyz); vpos.y = height; if(is_inside_cave(vpos)) { // Cave is in the way continue; } m_feat_tree[tree_info.y].place(vpos + DIR_UP<voxel_pos::value_type>, cpos, voxels); } } }
O0
cpp
Overworld::generate_features(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&): pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xf8(%rbp) movq -0x10(%rbp), %rax movl (%rax), %esi subl $0x0, %esi movq -0x10(%rbp), %rax movl 0x8(%rax), %edx subl $0x1, %edx leaq -0x60(%rbp), %rdi callq 0x2ccb0 leaq -0x60(%rbp), %rdi addq $0x8, %rdi movq -0x10(%rbp), %rax movl (%rax), %esi subl $0x1, %esi movq -0x10(%rbp), %rax movl 0x8(%rax), %edx subl $0x1, %edx callq 0x2ccb0 leaq -0x60(%rbp), %rdi addq $0x10, %rdi movq -0x10(%rbp), %rax movl (%rax), %esi subl $0x1, %esi movq -0x10(%rbp), %rax movl 0x8(%rax), %edx addl $0x0, %edx callq 0x2ccb0 leaq -0x60(%rbp), %rdi addq $0x18, %rdi movq -0x10(%rbp), %rax movl (%rax), %esi subl $0x1, %esi movq -0x10(%rbp), %rax movl 0x8(%rax), %edx addl $0x1, %edx callq 0x2ccb0 leaq -0x60(%rbp), %rdi addq $0x20, %rdi movq -0x10(%rbp), %rax movl (%rax), %esi addl $0x0, %esi movq -0x10(%rbp), %rax movl 0x8(%rax), %edx addl $0x0, %edx callq 0x2ccb0 leaq -0x60(%rbp), %rdi addq $0x28, %rdi movq -0x10(%rbp), %rax movl (%rax), %esi addl $0x0, %esi movq -0x10(%rbp), %rax movl 0x8(%rax), %edx addl $0x1, %edx callq 0x2ccb0 leaq -0x60(%rbp), %rdi addq $0x30, %rdi movq -0x10(%rbp), %rax movl (%rax), %esi addl $0x1, %esi movq -0x10(%rbp), %rax movl 0x8(%rax), %edx subl $0x1, %edx callq 0x2ccb0 leaq -0x60(%rbp), %rdi addq $0x38, %rdi movq -0x10(%rbp), %rax movl (%rax), %esi addl $0x1, %esi movq -0x10(%rbp), %rax movl 0x8(%rax), %edx addl $0x0, %edx callq 0x2ccb0 leaq -0x60(%rbp), %rdi addq $0x40, %rdi movq -0x10(%rbp), %rax movl (%rax), %esi addl $0x1, %esi movq -0x10(%rbp), %rax movl 0x8(%rax), %edx addl $0x1, %edx callq 0x2ccb0 movl $0x0, -0x64(%rbp) movl -0x64(%rbp), %eax movq %rax, -0x100(%rbp) leaq -0x60(%rbp), %rdi callq 0x2c120 movq %rax, %rcx movq -0x100(%rbp), %rax cmpq %rcx, %rax jae 0x2b91c movq -0xf8(%rbp), %rdi movl -0x64(%rbp), %eax movl %eax, %ecx leaq -0x60(%rbp), %rax shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x70(%rbp) movq -0x70(%rbp), %rsi callq 0x2bb10 movq %rax, -0x78(%rbp) movq -0x78(%rbp), %rax addq $0x1000, %rax # imm = 0x1000 movq %rax, -0x80(%rbp) movq -0x80(%rbp), %rdi callq 0x2cdd0 movq %rax, -0x88(%rbp) movq -0x80(%rbp), %rdi callq 0x2ce00 movq %rax, -0x90(%rbp) leaq -0x88(%rbp), %rdi leaq -0x90(%rbp), %rsi callq 0x2ce30 testb $0x1, %al jne 0x2b79d jmp 0x2b90c leaq -0x88(%rbp), %rdi callq 0x2ce70 movq %rax, -0x98(%rbp) movq -0x98(%rbp), %rax movswl (%rax), %eax movq -0x98(%rbp), %rcx movswl 0x4(%rcx), %ecx shll $0x4, %ecx addl %ecx, %eax movl %eax, %eax movq %rax, -0xa0(%rbp) movq -0x78(%rbp), %rdi addq $0x800, %rdi # imm = 0x800 movq -0xa0(%rbp), %rsi callq 0x2ce90 movq (%rax), %rax movq %rax, -0xa8(%rbp) movq -0xa8(%rbp), %rax movq %rax, -0x108(%rbp) callq 0x2c8a0 movq %rax, %rcx movq -0x108(%rbp), %rax cmpq %rcx, %rax jne 0x2b81b jmp 0x2b8fb movq -0x70(%rbp), %rax movl (%rax), %esi movq -0x70(%rbp), %rax movl 0x4(%rax), %ecx leaq -0xb4(%rbp), %rdi xorl %edx, %edx callq 0x2ca90 movq -0x98(%rbp), %rax movw (%rax), %cx movq -0x98(%rbp), %rax leaq -0xba(%rbp), %rdi xorl %edx, %edx movswl %cx, %esi movswl 0x4(%rax), %ecx callq 0x2cec0 leaq -0xd8(%rbp), %rdi leaq -0xb4(%rbp), %rsi leaq -0xba(%rbp), %rdx callq 0x2ca20 movq -0xf8(%rbp), %rdi movq -0xa8(%rbp), %rax movq %rax, -0xd0(%rbp) leaq -0xd8(%rbp), %rsi callq 0x2b930 testb $0x1, %al jne 0x2b89d jmp 0x2b89f jmp 0x2b8fb movq -0xf8(%rbp), %rax addq $0x4d0, %rax # imm = 0x4D0 movq -0x98(%rbp), %rcx movswq 0x2(%rcx), %rcx shlq $0x5, %rcx addq %rcx, %rax movq %rax, -0x110(%rbp) leaq -0xf0(%rbp), %rdi leaq -0xd8(%rbp), %rsi leaq 0x1b9205(%rip), %rdx # 0x1e4ae0 callq 0x2cf00 movq -0x110(%rbp), %rdi movq -0x10(%rbp), %rdx movq -0x18(%rbp), %rcx leaq -0xf0(%rbp), %rsi callq 0xa93a0 leaq -0x88(%rbp), %rdi callq 0x2cf60 jmp 0x2b781 jmp 0x2b90e movl -0x64(%rbp), %eax addl $0x1, %eax movl %eax, -0x64(%rbp) jmp 0x2b705 addq $0x110, %rsp # imm = 0x110 popq %rbp retq nopw %cs:(%rax,%rax)
_ZN9Overworld17generate_featuresERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage: push rbp mov rbp, rsp sub rsp, 110h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_8] mov [rbp+var_F8], rax mov rax, [rbp+var_10] mov esi, [rax] sub esi, 0 mov rax, [rbp+var_10] mov edx, [rax+8] sub edx, 1 lea rdi, [rbp+var_60] call _ZN3glm3vecILi2EiLNS_9qualifierE0EEC2Eii; glm::vec<2,int,(glm::qualifier)0>::vec(int,int) lea rdi, [rbp+var_60] add rdi, 8 mov rax, [rbp+var_10] mov esi, [rax] sub esi, 1 mov rax, [rbp+var_10] mov edx, [rax+8] sub edx, 1 call _ZN3glm3vecILi2EiLNS_9qualifierE0EEC2Eii; glm::vec<2,int,(glm::qualifier)0>::vec(int,int) lea rdi, [rbp+var_60] add rdi, 10h mov rax, [rbp+var_10] mov esi, [rax] sub esi, 1 mov rax, [rbp+var_10] mov edx, [rax+8] add edx, 0 call _ZN3glm3vecILi2EiLNS_9qualifierE0EEC2Eii; glm::vec<2,int,(glm::qualifier)0>::vec(int,int) lea rdi, [rbp+var_60] add rdi, 18h mov rax, [rbp+var_10] mov esi, [rax] sub esi, 1 mov rax, [rbp+var_10] mov edx, [rax+8] add edx, 1 call _ZN3glm3vecILi2EiLNS_9qualifierE0EEC2Eii; glm::vec<2,int,(glm::qualifier)0>::vec(int,int) lea rdi, [rbp+var_60] add rdi, 20h ; ' ' mov rax, [rbp+var_10] mov esi, [rax] add esi, 0 mov rax, [rbp+var_10] mov edx, [rax+8] add edx, 0 call _ZN3glm3vecILi2EiLNS_9qualifierE0EEC2Eii; glm::vec<2,int,(glm::qualifier)0>::vec(int,int) lea rdi, [rbp+var_60] add rdi, 28h ; '(' mov rax, [rbp+var_10] mov esi, [rax] add esi, 0 mov rax, [rbp+var_10] mov edx, [rax+8] add edx, 1 call _ZN3glm3vecILi2EiLNS_9qualifierE0EEC2Eii; glm::vec<2,int,(glm::qualifier)0>::vec(int,int) lea rdi, [rbp+var_60] add rdi, 30h ; '0' mov rax, [rbp+var_10] mov esi, [rax] add esi, 1 mov rax, [rbp+var_10] mov edx, [rax+8] sub edx, 1 call _ZN3glm3vecILi2EiLNS_9qualifierE0EEC2Eii; glm::vec<2,int,(glm::qualifier)0>::vec(int,int) lea rdi, [rbp+var_60] add rdi, 38h ; '8' mov rax, [rbp+var_10] mov esi, [rax] add esi, 1 mov rax, [rbp+var_10] mov edx, [rax+8] add edx, 0 call _ZN3glm3vecILi2EiLNS_9qualifierE0EEC2Eii; glm::vec<2,int,(glm::qualifier)0>::vec(int,int) lea rdi, [rbp+var_60] add rdi, 40h ; '@' mov rax, [rbp+var_10] mov esi, [rax] add esi, 1 mov rax, [rbp+var_10] mov edx, [rax+8] add edx, 1 call _ZN3glm3vecILi2EiLNS_9qualifierE0EEC2Eii; glm::vec<2,int,(glm::qualifier)0>::vec(int,int) mov [rbp+var_64], 0 loc_2B705: mov eax, [rbp+var_64] mov [rbp+var_100], rax lea rdi, [rbp+var_60] call _ZN4cxprL10array_sizeIN3glm3vecILi2EiLNS1_9qualifierE0EEELm9EEEKmRAT0__KT_; cxpr::array_size<glm::vec<2,int,(glm::qualifier)0>,9ul>(glm::vec<2,int,(glm::qualifier)0> const(&)[9ul]) mov rcx, rax mov rax, [rbp+var_100] cmp rax, rcx jnb loc_2B91C mov rdi, [rbp+var_F8] mov eax, [rbp+var_64] loc_2B735: mov ecx, eax lea rax, [rbp+var_60] shl rcx, 3 add rax, rcx mov [rbp+var_70], rax mov rsi, [rbp+var_70] call _ZN9Overworld22get_or_create_metadataERKN3glm3vecILi2EiLNS0_9qualifierE0EEE; Overworld::get_or_create_metadata(glm::vec<2,int,(glm::qualifier)0> const&) mov [rbp+var_78], rax mov rax, [rbp+var_78] add rax, 1000h mov [rbp+var_80], rax mov rdi, [rbp+var_80] call _ZNKSt6vectorIN3glm3vecILi3EsLNS0_9qualifierE0EEESaIS3_EE5beginEv; std::vector<glm::vec<3,short,(glm::qualifier)0>>::begin(void) mov [rbp+var_88], rax mov rdi, [rbp+var_80] call _ZNKSt6vectorIN3glm3vecILi3EsLNS0_9qualifierE0EEESaIS3_EE3endEv; std::vector<glm::vec<3,short,(glm::qualifier)0>>::end(void) mov [rbp+var_90], rax loc_2B781: lea rdi, [rbp+var_88] lea rsi, [rbp+var_90] call _ZN9__gnu_cxxneIPKN3glm3vecILi3EsLNS1_9qualifierE0EEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_; __gnu_cxx::operator!=<glm::vec<3,short,(glm::qualifier)0> const*,std::vector<glm::vec<3,short,(glm::qualifier)0>>>(__gnu_cxx::__normal_iterator<glm::vec<3,short,(glm::qualifier)0> const*,std::vector<glm::vec<3,short,(glm::qualifier)0>>> const&,__gnu_cxx::__normal_iterator<glm::vec<3,short,(glm::qualifier)0> const*,std::vector<glm::vec<3,short,(glm::qualifier)0>>> const&) test al, 1 jnz short loc_2B79D jmp loc_2B90C loc_2B79D: lea rdi, [rbp+var_88] call _ZNK9__gnu_cxx17__normal_iteratorIPKN3glm3vecILi3EsLNS1_9qualifierE0EEESt6vectorIS4_SaIS4_EEEdeEv; __gnu_cxx::__normal_iterator<glm::vec<3,short,(glm::qualifier)0> const*,std::vector<glm::vec<3,short,(glm::qualifier)0>>>::operator*(void) mov [rbp+var_98], rax mov rax, [rbp+var_98] movsx eax, word ptr [rax] mov rcx, [rbp+var_98] movsx ecx, word ptr [rcx+4] shl ecx, 4 add eax, ecx mov eax, eax mov [rbp+var_A0], rax mov rdi, [rbp+var_78] add rdi, 800h mov rsi, [rbp+var_A0] call _ZNKSt5arrayIlLm256EEixEm; std::array<long,256ul>::operator[](ulong) mov rax, [rax] mov [rbp+var_A8], rax mov rax, [rbp+var_A8] mov [rbp+var_108], rax call _ZNSt14numeric_limitsIlE3minEv; std::numeric_limits<long>::min(void) mov rcx, rax mov rax, [rbp+var_108] cmp rax, rcx jnz short loc_2B81B jmp loc_2B8FB loc_2B81B: mov rax, [rbp+var_70] mov esi, [rax] mov rax, [rbp+var_70] mov ecx, [rax+4] lea rdi, [rbp+var_B4] xor edx, edx call _ZN3glm3vecILi3EiLNS_9qualifierE0EEC2Eiii; glm::vec<3,int,(glm::qualifier)0>::vec(int,int,int) mov rax, [rbp+var_98] mov cx, [rax] mov rax, [rbp+var_98] lea rdi, [rbp+var_BA] xor edx, edx movsx esi, cx movsx ecx, word ptr [rax+4] call _ZN3glm3vecILi3EsLNS_9qualifierE0EEC2IsisEET_T0_T1_; glm::vec<3,short,(glm::qualifier)0>::vec<short,int,short>(short,int,short) lea rdi, [rbp+var_D8] lea rsi, [rbp+var_B4] lea rdx, [rbp+var_BA] call _ZN5coord8to_voxelERKN3glm3vecILi3EiLNS0_9qualifierE0EEERKNS1_ILi3EsLS2_0EEE; coord::to_voxel(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,short,(glm::qualifier)0> const&) mov rdi, [rbp+var_F8] mov rax, [rbp+var_A8] mov [rbp+var_D0], rax lea rsi, [rbp+var_D8] call _ZN9Overworld14is_inside_caveERKN3glm3vecILi3ElLNS0_9qualifierE0EEE; Overworld::is_inside_cave(glm::vec<3,long,(glm::qualifier)0> const&) test al, 1 jnz short loc_2B89D jmp short loc_2B89F loc_2B89D: jmp short loc_2B8FB loc_2B89F: mov rax, [rbp+var_F8] add rax, 4D0h mov rcx, [rbp+var_98] movsx rcx, word ptr [rcx+2] shl rcx, 5 add rax, rcx mov [rbp+var_110], rax lea rdi, [rbp+var_F0] lea rsi, [rbp+var_D8] lea rdx, _ZL6DIR_UPIlE; DIR_UP<long> call _ZN3glmplIlLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<long,(glm::qualifier)0>(glm::vec<3,long,(glm::qualifier)0> const&,glm::vec<3,long,(glm::qualifier)0> const&) mov rdi, [rbp+var_110] mov rdx, [rbp+var_10] mov rcx, [rbp+var_18] lea rsi, [rbp+var_F0] call _ZNK7Feature5placeERKN3glm3vecILi3ElLNS0_9qualifierE0EEERKNS1_ILi3EiLS2_0EEER12VoxelStorage; Feature::place(glm::vec<3,long,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) loc_2B8FB: lea rdi, [rbp+var_88] call _ZN9__gnu_cxx17__normal_iteratorIPKN3glm3vecILi3EsLNS1_9qualifierE0EEESt6vectorIS4_SaIS4_EEEppEv; __gnu_cxx::__normal_iterator<glm::vec<3,short,(glm::qualifier)0> const*,std::vector<glm::vec<3,short,(glm::qualifier)0>>>::operator++(void) jmp loc_2B781 loc_2B90C: jmp short $+2 loc_2B90E: mov eax, [rbp+var_64] add eax, 1 mov [rbp+var_64], eax jmp loc_2B705 loc_2B91C: add rsp, 110h pop rbp retn
unsigned long long Overworld::generate_features(long long a1, unsigned int *a2, long long a3) { unsigned long long v3; // rcx unsigned long long result; // rax long long v5; // [rsp+0h] [rbp-110h] long long v6; // [rsp+8h] [rbp-108h] unsigned long long v7; // [rsp+10h] [rbp-100h] _BYTE v8[24]; // [rsp+20h] [rbp-F0h] BYREF char v9[8]; // [rsp+38h] [rbp-D8h] BYREF long long v10; // [rsp+40h] [rbp-D0h] _BYTE v11[6]; // [rsp+56h] [rbp-BAh] BYREF _BYTE v12[12]; // [rsp+5Ch] [rbp-B4h] BYREF long long v13; // [rsp+68h] [rbp-A8h] long long v14; // [rsp+70h] [rbp-A0h] __int16 *v15; // [rsp+78h] [rbp-98h] long long v16; // [rsp+80h] [rbp-90h] BYREF long long v17; // [rsp+88h] [rbp-88h] BYREF long long v18; // [rsp+90h] [rbp-80h] long long metadata; // [rsp+98h] [rbp-78h] unsigned int *v20; // [rsp+A0h] [rbp-70h] unsigned int i; // [rsp+ACh] [rbp-64h] _BYTE v22[72]; // [rsp+B0h] [rbp-60h] BYREF long long v23; // [rsp+B8h] [rbp-58h] BYREF long long v24; // [rsp+C0h] [rbp-50h] BYREF long long v25; // [rsp+C8h] [rbp-48h] BYREF long long v26; // [rsp+D0h] [rbp-40h] BYREF long long v27; // [rsp+D8h] [rbp-38h] BYREF long long v28; // [rsp+E0h] [rbp-30h] BYREF long long v29; // [rsp+E8h] [rbp-28h] BYREF long long v30; // [rsp+F0h] [rbp-20h] BYREF long long v31; // [rsp+F8h] [rbp-18h] unsigned int *v32; // [rsp+100h] [rbp-10h] long long v33; // [rsp+108h] [rbp-8h] v33 = a1; v32 = a2; v31 = a3; glm::vec<2,int,(glm::qualifier)0>::vec(v22, *a2, a2[2] - 1); glm::vec<2,int,(glm::qualifier)0>::vec(&v23, *v32 - 1, v32[2] - 1); glm::vec<2,int,(glm::qualifier)0>::vec(&v24, *v32 - 1, v32[2]); glm::vec<2,int,(glm::qualifier)0>::vec(&v25, *v32 - 1, v32[2] + 1); glm::vec<2,int,(glm::qualifier)0>::vec(&v26, *v32, v32[2]); glm::vec<2,int,(glm::qualifier)0>::vec(&v27, *v32, v32[2] + 1); glm::vec<2,int,(glm::qualifier)0>::vec(&v28, *v32 + 1, v32[2] - 1); glm::vec<2,int,(glm::qualifier)0>::vec(&v29, *v32 + 1, v32[2]); glm::vec<2,int,(glm::qualifier)0>::vec(&v30, *v32 + 1, v32[2] + 1); for ( i = 0; ; ++i ) { v7 = i; v3 = cxpr::array_size<glm::vec<2,int,(glm::qualifier)0>,9ul>(v22); result = v7; if ( v7 >= v3 ) break; v20 = (unsigned int *)&v22[8 * i]; metadata = Overworld::get_or_create_metadata(a1, v20); v18 = metadata + 4096; v17 = std::vector<glm::vec<3,short,(glm::qualifier)0>>::begin(metadata + 4096); v16 = std::vector<glm::vec<3,short,(glm::qualifier)0>>::end(v18); while ( (__gnu_cxx::operator!=<glm::vec<3,short,(glm::qualifier)0> const*,std::vector<glm::vec<3,short,(glm::qualifier)0>>>( &v17, &v16) & 1) != 0 ) { v15 = (__int16 *)__gnu_cxx::__normal_iterator<glm::vec<3,short,(glm::qualifier)0> const*,std::vector<glm::vec<3,short,(glm::qualifier)0>>>::operator*(&v17); v14 = (unsigned int)(16 * v15[2] + *v15); v13 = *(_QWORD *)std::array<long,256ul>::operator[](metadata + 2048, v14); v6 = v13; if ( v6 != std::numeric_limits<long>::min() ) { glm::vec<3,int,(glm::qualifier)0>::vec(v12, *v20, 0LL, v20[1]); glm::vec<3,short,(glm::qualifier)0>::vec<short,int,short>(v11, (unsigned int)*v15, 0LL, (unsigned int)v15[2]); coord::to_voxel(v9, v12, v11); v10 = v13; if ( (Overworld::is_inside_cave(a1, v9) & 1) == 0 ) { v5 = 32LL * v15[1] + a1 + 1232; glm::operator+<long,(glm::qualifier)0>(v8, v9, &DIR_UP<long>); Feature::place(v5, v8, v32, v31); } } __gnu_cxx::__normal_iterator<glm::vec<3,short,(glm::qualifier)0> const*,std::vector<glm::vec<3,short,(glm::qualifier)0>>>::operator++(&v17); } } return result; }
generate_features: PUSH RBP MOV RBP,RSP SUB RSP,0x110 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0xf8],RAX MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] SUB ESI,0x0 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x8] SUB EDX,0x1 LEA RDI,[RBP + -0x60] CALL 0x0012ccb0 LEA RDI,[RBP + -0x60] ADD RDI,0x8 MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] SUB ESI,0x1 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x8] SUB EDX,0x1 CALL 0x0012ccb0 LEA RDI,[RBP + -0x60] ADD RDI,0x10 MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] SUB ESI,0x1 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x8] ADD EDX,0x0 CALL 0x0012ccb0 LEA RDI,[RBP + -0x60] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] SUB ESI,0x1 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x8] ADD EDX,0x1 CALL 0x0012ccb0 LEA RDI,[RBP + -0x60] ADD RDI,0x20 MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] ADD ESI,0x0 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x8] ADD EDX,0x0 CALL 0x0012ccb0 LEA RDI,[RBP + -0x60] ADD RDI,0x28 MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] ADD ESI,0x0 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x8] ADD EDX,0x1 CALL 0x0012ccb0 LEA RDI,[RBP + -0x60] ADD RDI,0x30 MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] ADD ESI,0x1 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x8] SUB EDX,0x1 CALL 0x0012ccb0 LEA RDI,[RBP + -0x60] ADD RDI,0x38 MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] ADD ESI,0x1 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x8] ADD EDX,0x0 CALL 0x0012ccb0 LEA RDI,[RBP + -0x60] ADD RDI,0x40 MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] ADD ESI,0x1 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x8] ADD EDX,0x1 CALL 0x0012ccb0 MOV dword ptr [RBP + -0x64],0x0 LAB_0012b705: MOV EAX,dword ptr [RBP + -0x64] MOV qword ptr [RBP + -0x100],RAX LEA RDI,[RBP + -0x60] CALL 0x0012c120 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x100] CMP RAX,RCX JNC 0x0012b91c MOV RDI,qword ptr [RBP + -0xf8] MOV EAX,dword ptr [RBP + -0x64] MOV ECX,EAX LEA RAX,[RBP + -0x60] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x70],RAX MOV RSI,qword ptr [RBP + -0x70] CALL 0x0012bb10 MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x78] ADD RAX,0x1000 MOV qword ptr [RBP + -0x80],RAX MOV RDI,qword ptr [RBP + -0x80] CALL 0x0012cdd0 MOV qword ptr [RBP + -0x88],RAX MOV RDI,qword ptr [RBP + -0x80] CALL 0x0012ce00 MOV qword ptr [RBP + -0x90],RAX LAB_0012b781: LEA RDI,[RBP + -0x88] LEA RSI,[RBP + -0x90] CALL 0x0012ce30 TEST AL,0x1 JNZ 0x0012b79d JMP 0x0012b90c LAB_0012b79d: LEA RDI,[RBP + -0x88] CALL 0x0012ce70 MOV qword ptr [RBP + -0x98],RAX MOV RAX,qword ptr [RBP + -0x98] MOVSX EAX,word ptr [RAX] MOV RCX,qword ptr [RBP + -0x98] MOVSX ECX,word ptr [RCX + 0x4] SHL ECX,0x4 ADD EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0xa0],RAX MOV RDI,qword ptr [RBP + -0x78] ADD RDI,0x800 MOV RSI,qword ptr [RBP + -0xa0] CALL 0x0012ce90 MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xa8],RAX MOV RAX,qword ptr [RBP + -0xa8] MOV qword ptr [RBP + -0x108],RAX CALL 0x0012c8a0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x108] CMP RAX,RCX JNZ 0x0012b81b JMP 0x0012b8fb LAB_0012b81b: MOV RAX,qword ptr [RBP + -0x70] MOV ESI,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x70] MOV ECX,dword ptr [RAX + 0x4] LEA RDI,[RBP + -0xb4] XOR EDX,EDX CALL 0x0012ca90 MOV RAX,qword ptr [RBP + -0x98] MOV CX,word ptr [RAX] MOV RAX,qword ptr [RBP + -0x98] LEA RDI,[RBP + -0xba] XOR EDX,EDX MOVSX ESI,CX MOVSX ECX,word ptr [RAX + 0x4] CALL 0x0012cec0 LEA RDI,[RBP + -0xd8] LEA RSI,[RBP + -0xb4] LEA RDX,[RBP + -0xba] CALL 0x0012ca20 MOV RDI,qword ptr [RBP + -0xf8] MOV RAX,qword ptr [RBP + -0xa8] MOV qword ptr [RBP + -0xd0],RAX LEA RSI,[RBP + -0xd8] CALL 0x0012b930 TEST AL,0x1 JNZ 0x0012b89d JMP 0x0012b89f LAB_0012b89d: JMP 0x0012b8fb LAB_0012b89f: MOV RAX,qword ptr [RBP + -0xf8] ADD RAX,0x4d0 MOV RCX,qword ptr [RBP + -0x98] MOVSX RCX,word ptr [RCX + 0x2] SHL RCX,0x5 ADD RAX,RCX MOV qword ptr [RBP + -0x110],RAX LEA RDI,[RBP + -0xf0] LEA RSI,[RBP + -0xd8] LEA RDX,[0x2e4ae0] CALL 0x0012cf00 MOV RDI,qword ptr [RBP + -0x110] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x18] LEA RSI,[RBP + -0xf0] CALL 0x001a93a0 LAB_0012b8fb: LEA RDI,[RBP + -0x88] CALL 0x0012cf60 JMP 0x0012b781 LAB_0012b90c: JMP 0x0012b90e LAB_0012b90e: MOV EAX,dword ptr [RBP + -0x64] ADD EAX,0x1 MOV dword ptr [RBP + -0x64],EAX JMP 0x0012b705 LAB_0012b91c: ADD RSP,0x110 POP RBP RET
/* Overworld::generate_features(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&) */ void __thiscall Overworld::generate_features(Overworld *this,vec *param_1,VoxelStorage *param_2) { short sVar1; long lVar2; bool bVar3; ulong uVar4; long *plVar5; long lVar6; ulong uVar7; glm local_f8 [24]; coord local_e0 [8]; long local_d8; vec<3,short,(glm::qualifier)0> local_c2 [6]; vec<3,int,(glm::qualifier)0> local_bc [12]; long local_b0; ulong local_a8; short *local_a0; int8 local_98; int8 local_90; vector<glm::vec<3,short,(glm::qualifier)0>,std::allocator<glm::vec<3,short,(glm::qualifier)0>>> *local_88; long local_80; vec *local_78; uint local_6c; vec<2,int,(glm::qualifier)0> local_68 [8]; vec<2,int,(glm::qualifier)0> avStack_60 [8]; vec<2,int,(glm::qualifier)0> avStack_58 [8]; vec<2,int,(glm::qualifier)0> avStack_50 [8]; vec<2,int,(glm::qualifier)0> avStack_48 [8]; vec<2,int,(glm::qualifier)0> avStack_40 [8]; vec<2,int,(glm::qualifier)0> avStack_38 [8]; vec<2,int,(glm::qualifier)0> avStack_30 [8]; vec<2,int,(glm::qualifier)0> avStack_28 [8]; VoxelStorage *local_20; vec *local_18; Overworld *local_10; local_20 = param_2; local_18 = param_1; local_10 = this; glm::vec<2,int,(glm::qualifier)0>::vec(local_68,*(int *)param_1,*(int *)(param_1 + 8) + -1); glm::vec<2,int,(glm::qualifier)0>::vec (avStack_60,*(int *)local_18 + -1,*(int *)(local_18 + 8) + -1); glm::vec<2,int,(glm::qualifier)0>::vec(avStack_58,*(int *)local_18 + -1,*(int *)(local_18 + 8)); glm::vec<2,int,(glm::qualifier)0>::vec (avStack_50,*(int *)local_18 + -1,*(int *)(local_18 + 8) + 1); glm::vec<2,int,(glm::qualifier)0>::vec(avStack_48,*(int *)local_18,*(int *)(local_18 + 8)); glm::vec<2,int,(glm::qualifier)0>::vec(avStack_40,*(int *)local_18,*(int *)(local_18 + 8) + 1); glm::vec<2,int,(glm::qualifier)0>::vec (avStack_38,*(int *)local_18 + 1,*(int *)(local_18 + 8) + -1); glm::vec<2,int,(glm::qualifier)0>::vec(avStack_30,*(int *)local_18 + 1,*(int *)(local_18 + 8)); glm::vec<2,int,(glm::qualifier)0>::vec(avStack_28,*(int *)local_18 + 1,*(int *)(local_18 + 8) + 1) ; for (local_6c = 0; uVar7 = (ulong)local_6c, uVar4 = cxpr::array_size<glm::vec<2,int,(glm::qualifier)0>,9ul>(local_68), uVar7 < uVar4; local_6c = local_6c + 1) { local_78 = (vec *)(local_68 + (ulong)local_6c * 8); local_80 = get_or_create_metadata(this,local_78); local_88 = (vector<glm::vec<3,short,(glm::qualifier)0>,std::allocator<glm::vec<3,short,(glm::qualifier)0>>> *)(local_80 + 0x1000); local_90 = std:: vector<glm::vec<3,short,(glm::qualifier)0>,std::allocator<glm::vec<3,short,(glm::qualifier)0>>> ::begin(local_88); local_98 = std:: vector<glm::vec<3,short,(glm::qualifier)0>,std::allocator<glm::vec<3,short,(glm::qualifier)0>>> ::end(local_88); while (bVar3 = __gnu_cxx::operator!= ((__normal_iterator *)&local_90,(__normal_iterator *)&local_98), bVar3) { local_a0 = (short *)__gnu_cxx:: __normal_iterator<glm::vec<3,short,(glm::qualifier)0>const*,std::vector<glm::vec<3,short,(glm::qualifier)0>,std::allocator<glm::vec<3,short,(glm::qualifier)0>>>> ::operator*((__normal_iterator<glm::vec<3,short,(glm::qualifier)0>const*,std::vector<glm::vec<3,short,(glm::qualifier)0>,std::allocator<glm::vec<3,short,(glm::qualifier)0>>>> *)&local_90); local_a8 = (ulong)(uint)((int)*local_a0 + local_a0[2] * 0x10); plVar5 = (long *)std::array<long,256ul>::operator[] ((array<long,256ul> *)(local_80 + 0x800),local_a8); lVar2 = *plVar5; local_b0 = lVar2; lVar6 = std::numeric_limits<long>::min(); if (lVar2 != lVar6) { glm::vec<3,int,(glm::qualifier)0>::vec(local_bc,*(int *)local_78,0,*(int *)(local_78 + 4)); glm::vec<3,short,(glm::qualifier)0>::vec<short,int,short>(local_c2,*local_a0,0,local_a0[2]); coord::to_voxel(local_e0,(vec *)local_bc,(vec *)local_c2); local_d8 = local_b0; uVar7 = is_inside_cave(this,(vec *)local_e0); if ((uVar7 & 1) == 0) { sVar1 = local_a0[1]; glm::operator+(local_f8,(vec *)local_e0,(vec *)DIR_UP<long>); Feature::place((Feature *)(this + (long)sVar1 * 0x20 + 0x4d0),(vec *)local_f8,local_18, local_20); } } __gnu_cxx:: __normal_iterator<glm::vec<3,short,(glm::qualifier)0>const*,std::vector<glm::vec<3,short,(glm::qualifier)0>,std::allocator<glm::vec<3,short,(glm::qualifier)0>>>> ::operator++((__normal_iterator<glm::vec<3,short,(glm::qualifier)0>const*,std::vector<glm::vec<3,short,(glm::qualifier)0>,std::allocator<glm::vec<3,short,(glm::qualifier)0>>>> *)&local_90); } } return; }
29,366
extract_desc
bluesky950520[P]quickjs/run-test262.c
char *extract_desc(const char *buf) { const char *p, *desc_start; char *desc; int len; p = buf; while (*p != '\0') { if (p[0] == '/' && p[1] == '*' && p[2] == '-' && p[3] != '/') { p += 3; desc_start = p; while (*p != '\0' && (p[0] != '*' || p[1] != '/')) p++; if (*p == '\0') { warning("Expecting end of desc comment"); return NULL; } len = p - desc_start; desc = malloc(len + 1); memcpy(desc, desc_start, len); desc[len] = '\0'; return desc; } else { p++; } } return NULL; }
O0
c
extract_desc: subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rax movzbl (%rax), %eax cmpl $0x0, %eax je 0x10bfa movq 0x20(%rsp), %rax movzbl (%rax), %eax cmpl $0x2f, %eax jne 0x10be7 movq 0x20(%rsp), %rax movzbl 0x1(%rax), %eax cmpl $0x2a, %eax jne 0x10be7 movq 0x20(%rsp), %rax movzbl 0x2(%rax), %eax cmpl $0x2d, %eax jne 0x10be7 movq 0x20(%rsp), %rax movzbl 0x3(%rax), %eax cmpl $0x2f, %eax je 0x10be7 movq 0x20(%rsp), %rax addq $0x3, %rax movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x20(%rsp), %rax movzbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, 0xb(%rsp) je 0x10b54 movq 0x20(%rsp), %rax movzbl (%rax), %ecx movb $0x1, %al cmpl $0x2a, %ecx movb %al, 0xa(%rsp) jne 0x10b4c movq 0x20(%rsp), %rax movzbl 0x1(%rax), %eax cmpl $0x2f, %eax setne %al movb %al, 0xa(%rsp) movb 0xa(%rsp), %al movb %al, 0xb(%rsp) movb 0xb(%rsp), %al testb $0x1, %al jne 0x10b5e jmp 0x10b6e movq 0x20(%rsp), %rax addq $0x1, %rax movq %rax, 0x20(%rsp) jmp 0x10b13 movq 0x20(%rsp), %rax movzbl (%rax), %eax cmpl $0x0, %eax jne 0x10b94 leaq 0xfe678(%rip), %rdi # 0x10f1fa movb $0x0, %al callq 0xeb80 movq $0x0, 0x30(%rsp) jmp 0x10c03 movq 0x20(%rsp), %rax movq 0x18(%rsp), %rcx subq %rcx, %rax movl %eax, 0xc(%rsp) movl 0xc(%rsp), %eax addl $0x1, %eax movslq %eax, %rdi callq 0xe6c0 movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rsi movslq 0xc(%rsp), %rdx callq 0xe610 movq 0x10(%rsp), %rax movslq 0xc(%rsp), %rcx movb $0x0, (%rax,%rcx) movq 0x10(%rsp), %rax movq %rax, 0x30(%rsp) jmp 0x10c03 movq 0x20(%rsp), %rax addq $0x1, %rax movq %rax, 0x20(%rsp) jmp 0x10aa3 movq $0x0, 0x30(%rsp) movq 0x30(%rsp), %rax addq $0x38, %rsp retq nopl (%rax)
extract_desc: sub rsp, 38h mov [rsp+38h+var_10], rdi mov rax, [rsp+38h+var_10] mov [rsp+38h+var_18], rax loc_10AA3: mov rax, [rsp+38h+var_18] movzx eax, byte ptr [rax] cmp eax, 0 jz loc_10BFA mov rax, [rsp+38h+var_18] movzx eax, byte ptr [rax] cmp eax, 2Fh ; '/' jnz loc_10BE7 mov rax, [rsp+38h+var_18] movzx eax, byte ptr [rax+1] cmp eax, 2Ah ; '*' jnz loc_10BE7 mov rax, [rsp+38h+var_18] movzx eax, byte ptr [rax+2] cmp eax, 2Dh ; '-' jnz loc_10BE7 mov rax, [rsp+38h+var_18] movzx eax, byte ptr [rax+3] cmp eax, 2Fh ; '/' jz loc_10BE7 mov rax, [rsp+38h+var_18] add rax, 3 mov [rsp+38h+var_18], rax mov rax, [rsp+38h+var_18] mov [rsp+38h+var_20], rax loc_10B13: mov rax, [rsp+38h+var_18] movzx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rsp+38h+var_2D], al jz short loc_10B54 mov rax, [rsp+38h+var_18] movzx ecx, byte ptr [rax] mov al, 1 cmp ecx, 2Ah ; '*' mov [rsp+38h+var_2E], al jnz short loc_10B4C mov rax, [rsp+38h+var_18] movzx eax, byte ptr [rax+1] cmp eax, 2Fh ; '/' setnz al mov [rsp+38h+var_2E], al loc_10B4C: mov al, [rsp+38h+var_2E] mov [rsp+38h+var_2D], al loc_10B54: mov al, [rsp+38h+var_2D] test al, 1 jnz short loc_10B5E jmp short loc_10B6E loc_10B5E: mov rax, [rsp+38h+var_18] add rax, 1 mov [rsp+38h+var_18], rax jmp short loc_10B13 loc_10B6E: mov rax, [rsp+38h+var_18] movzx eax, byte ptr [rax] cmp eax, 0 jnz short loc_10B94 lea rdi, aExpectingEndOf; "Expecting end of desc comment" mov al, 0 call warning mov [rsp+38h+var_8], 0 jmp short loc_10C03 loc_10B94: mov rax, [rsp+38h+var_18] mov rcx, [rsp+38h+var_20] sub rax, rcx mov [rsp+38h+var_2C], eax mov eax, [rsp+38h+var_2C] add eax, 1 movsxd rdi, eax call _malloc mov [rsp+38h+var_28], rax mov rdi, [rsp+38h+var_28] mov rsi, [rsp+38h+var_20] movsxd rdx, [rsp+38h+var_2C] call _memcpy mov rax, [rsp+38h+var_28] movsxd rcx, [rsp+38h+var_2C] mov byte ptr [rax+rcx], 0 mov rax, [rsp+38h+var_28] mov [rsp+38h+var_8], rax jmp short loc_10C03 loc_10BE7: mov rax, [rsp+38h+var_18] add rax, 1 mov [rsp+38h+var_18], rax jmp loc_10AA3 loc_10BFA: mov [rsp+38h+var_8], 0 loc_10C03: mov rax, [rsp+38h+var_8] add rsp, 38h retn
long long extract_desc( _BYTE *a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { long long v14; // rcx char v16; // [rsp+0h] [rbp-38h] bool v17; // [rsp+Ah] [rbp-2Eh] bool v18; // [rsp+Bh] [rbp-2Dh] long long v19; // [rsp+10h] [rbp-28h] unsigned __int8 *v20; // [rsp+18h] [rbp-20h] unsigned __int8 *v22; // [rsp+20h] [rbp-18h] while ( 1 ) { if ( !*a1 ) return 0LL; if ( *a1 == 47 && a1[1] == 42 && a1[2] == 45 && a1[3] != 47 ) break; ++a1; } v22 = a1 + 3; v20 = v22; while ( 1 ) { v14 = *v22; v18 = 0; if ( *v22 ) { v14 = *v22; v17 = 1; if ( (_DWORD)v14 == 42 ) v17 = v22[1] != 47; v18 = v17; } if ( !v18 ) break; ++v22; } if ( *v22 ) { v19 = malloc((int)v22 - (int)v20 + 1); memcpy(v19, v20, (int)v22 - (int)v20); *(_BYTE *)(v19 + (int)v22 - (int)v20) = 0; return v19; } else { warning((long long)"Expecting end of desc comment", a2, a3, v14, a13, a14, a4, a5, a6, a7, a8, a9, a10, a11, v16); return 0LL; } }
extract_desc: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x20],RAX LAB_00110aa3: MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0x0 JZ 0x00110bfa MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2f JNZ 0x00110be7 MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x2a JNZ 0x00110be7 MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX + 0x2] CMP EAX,0x2d JNZ 0x00110be7 MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX + 0x3] CMP EAX,0x2f JZ 0x00110be7 MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x3 MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x18],RAX LAB_00110b13: MOV RAX,qword ptr [RSP + 0x20] MOVZX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RSP + 0xb],AL JZ 0x00110b54 MOV RAX,qword ptr [RSP + 0x20] MOVZX ECX,byte ptr [RAX] MOV AL,0x1 CMP ECX,0x2a MOV byte ptr [RSP + 0xa],AL JNZ 0x00110b4c MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x2f SETNZ AL MOV byte ptr [RSP + 0xa],AL LAB_00110b4c: MOV AL,byte ptr [RSP + 0xa] MOV byte ptr [RSP + 0xb],AL LAB_00110b54: MOV AL,byte ptr [RSP + 0xb] TEST AL,0x1 JNZ 0x00110b5e JMP 0x00110b6e LAB_00110b5e: MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x1 MOV qword ptr [RSP + 0x20],RAX JMP 0x00110b13 LAB_00110b6e: MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0x0 JNZ 0x00110b94 LEA RDI,[0x20f1fa] MOV AL,0x0 CALL 0x0010eb80 MOV qword ptr [RSP + 0x30],0x0 JMP 0x00110c03 LAB_00110b94: MOV RAX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x18] SUB RAX,RCX MOV dword ptr [RSP + 0xc],EAX MOV EAX,dword ptr [RSP + 0xc] ADD EAX,0x1 MOVSXD RDI,EAX CALL 0x0010e6c0 MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x18] MOVSXD RDX,dword ptr [RSP + 0xc] CALL 0x0010e610 MOV RAX,qword ptr [RSP + 0x10] MOVSXD RCX,dword ptr [RSP + 0xc] MOV byte ptr [RAX + RCX*0x1],0x0 MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x30],RAX JMP 0x00110c03 LAB_00110be7: MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x1 MOV qword ptr [RSP + 0x20],RAX JMP 0x00110aa3 LAB_00110bfa: MOV qword ptr [RSP + 0x30],0x0 LAB_00110c03: MOV RAX,qword ptr [RSP + 0x30] ADD RSP,0x38 RET
void * extract_desc(char *param_1) { int iVar1; char *__src; void *__dest; bool bVar2; char *local_18; local_18 = param_1; while( true ) { if (*local_18 == '\0') { return (void *)0x0; } if ((((*local_18 == '/') && (local_18[1] == '*')) && (local_18[2] == '-')) && (local_18[3] != '/')) break; local_18 = local_18 + 1; } __src = local_18 + 3; local_18 = __src; while( true ) { bVar2 = false; if ((*local_18 != '\0') && (bVar2 = true, *local_18 == '*')) { bVar2 = local_18[1] != '/'; } if (!bVar2) break; local_18 = local_18 + 1; } if (*local_18 == '\0') { warning("Expecting end of desc comment"); return (void *)0x0; } iVar1 = (int)local_18 - (int)__src; __dest = malloc((long)(iVar1 + 1)); memcpy(__dest,__src,(long)iVar1); *(int1 *)((long)__dest + (long)iVar1) = 0; return __dest; }
29,367
extract_desc
bluesky950520[P]quickjs/run-test262.c
char *extract_desc(const char *buf) { const char *p, *desc_start; char *desc; int len; p = buf; while (*p != '\0') { if (p[0] == '/' && p[1] == '*' && p[2] == '-' && p[3] != '/') { p += 3; desc_start = p; while (*p != '\0' && (p[0] != '*' || p[1] != '/')) p++; if (*p == '\0') { warning("Expecting end of desc comment"); return NULL; } len = p - desc_start; desc = malloc(len + 1); memcpy(desc, desc_start, len); desc[len] = '\0'; return desc; } else { p++; } } return NULL; }
O2
c
extract_desc: pushq %r15 pushq %r14 pushq %rbx addq $0x4, %rdi movzbl -0x4(%rdi), %eax cmpl $0x2f, %eax je 0xfefc testl %eax, %eax jne 0xff10 jmp 0xff15 cmpb $0x2a, -0x3(%rdi) jne 0xff10 cmpb $0x2d, -0x2(%rdi) jne 0xff10 movb -0x1(%rdi), %cl cmpb $0x2f, %cl jne 0xff21 incq %rdi jmp 0xfeed xorl %r15d, %r15d movq %r15, %rax popq %rbx popq %r14 popq %r15 retq movabsq $0x100000000, %rax # imm = 0x100000000 leaq -0x1(%rdi), %r14 xorl %ebx, %ebx cmpb $0x2a, %cl je 0xff41 movzbl %cl, %ecx testl %ecx, %ecx je 0xff50 movb (%rdi), %cl jmp 0xff48 movb (%rdi), %cl cmpb $0x2f, %cl je 0xff63 addq %rax, %rbx incq %rdi jmp 0xff31 leaq 0x75299(%rip), %rdi # 0x851f0 xorl %r15d, %r15d xorl %eax, %eax callq 0xeba0 jmp 0xff18 addq %rbx, %rax sarq $0x20, %rax movq %rax, %rdi callq 0xe6f0 movq %rax, %r15 sarq $0x20, %rbx movq %rax, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0xe630 movb $0x0, (%r15,%rbx) jmp 0xff18
extract_desc: push r15 push r14 push rbx add rdi, 4 loc_FEED: movzx eax, byte ptr [rdi-4] cmp eax, 2Fh ; '/' jz short loc_FEFC test eax, eax jnz short loc_FF10 jmp short loc_FF15 loc_FEFC: cmp byte ptr [rdi-3], 2Ah ; '*' jnz short loc_FF10 cmp byte ptr [rdi-2], 2Dh ; '-' jnz short loc_FF10 mov cl, [rdi-1] cmp cl, 2Fh ; '/' jnz short loc_FF21 loc_FF10: inc rdi jmp short loc_FEED loc_FF15: xor r15d, r15d loc_FF18: mov rax, r15 pop rbx pop r14 pop r15 retn loc_FF21: mov rax, 100000000h lea r14, [rdi-1] xor ebx, ebx loc_FF31: cmp cl, 2Ah ; '*' jz short loc_FF41 movzx ecx, cl test ecx, ecx jz short loc_FF50 mov cl, [rdi] jmp short loc_FF48 loc_FF41: mov cl, [rdi] cmp cl, 2Fh ; '/' jz short loc_FF63 loc_FF48: add rbx, rax inc rdi jmp short loc_FF31 loc_FF50: lea rdi, aExpectingEndOf; "Expecting end of desc comment" xor r15d, r15d xor eax, eax call warning jmp short loc_FF18 loc_FF63: add rax, rbx sar rax, 20h mov rdi, rax call _malloc mov r15, rax sar rbx, 20h mov rdi, rax mov rsi, r14 mov rdx, rbx call _memcpy mov byte ptr [r15+rbx], 0 jmp short loc_FF18
long long extract_desc( long long a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { _BYTE *i; // rdi long long v15; // rcx long long v16; // r15 _BYTE *v18; // r14 long long j; // rbx long long v20; // rbx char v21; // [rsp+0h] [rbp-18h] for ( i = (_BYTE *)(a1 + 4); *(i - 4) == 47; ++i ) { if ( *(i - 3) == 42 && *(i - 2) == 45 ) { LOBYTE(v15) = *(i - 1); if ( (_BYTE)v15 != 47 ) { v18 = i - 1; for ( j = 0LL; ; j += 0x100000000LL ) { if ( (_BYTE)v15 == 42 ) { LOBYTE(v15) = *i; if ( *i == 47 ) { v16 = malloc((j + 0x100000000LL) >> 32); v20 = j >> 32; memcpy(v16, v18, v20); *(_BYTE *)(v16 + v20) = 0; return v16; } } else { v15 = (unsigned __int8)v15; if ( !(_BYTE)v15 ) { v16 = 0LL; warning( (long long)"Expecting end of desc comment", a2, a3, v15, a13, a14, a4, a5, a6, a7, a8, a9, a10, a11, v21); return v16; } LOBYTE(v15) = *i; } ++i; } } } LABEL_8: ; } if ( *(i - 4) ) goto LABEL_8; return 0LL; }
extract_desc: PUSH R15 PUSH R14 PUSH RBX ADD RDI,0x4 LAB_0010feed: MOVZX EAX,byte ptr [RDI + -0x4] CMP EAX,0x2f JZ 0x0010fefc TEST EAX,EAX JNZ 0x0010ff10 JMP 0x0010ff15 LAB_0010fefc: CMP byte ptr [RDI + -0x3],0x2a JNZ 0x0010ff10 CMP byte ptr [RDI + -0x2],0x2d JNZ 0x0010ff10 MOV CL,byte ptr [RDI + -0x1] CMP CL,0x2f JNZ 0x0010ff21 LAB_0010ff10: INC RDI JMP 0x0010feed LAB_0010ff15: XOR R15D,R15D LAB_0010ff18: MOV RAX,R15 POP RBX POP R14 POP R15 RET LAB_0010ff21: MOV RAX,0x100000000 LEA R14,[RDI + -0x1] XOR EBX,EBX LAB_0010ff31: CMP CL,0x2a JZ 0x0010ff41 MOVZX ECX,CL TEST ECX,ECX JZ 0x0010ff50 MOV CL,byte ptr [RDI] JMP 0x0010ff48 LAB_0010ff41: MOV CL,byte ptr [RDI] CMP CL,0x2f JZ 0x0010ff63 LAB_0010ff48: ADD RBX,RAX INC RDI JMP 0x0010ff31 LAB_0010ff50: LEA RDI,[0x1851f0] XOR R15D,R15D XOR EAX,EAX CALL 0x0010eba0 JMP 0x0010ff18 LAB_0010ff63: ADD RAX,RBX SAR RAX,0x20 MOV RDI,RAX CALL 0x0010e6f0 MOV R15,RAX SAR RBX,0x20 MOV RDI,RAX MOV RSI,R14 MOV RDX,RBX CALL 0x0010e630 MOV byte ptr [R15 + RBX*0x1],0x0 JMP 0x0010ff18
void * extract_desc(long param_1) { char *__src; void *__dest; char cVar1; long lVar2; char *pcVar3; pcVar3 = (char *)(param_1 + 4); do { if (pcVar3[-4] == '/') { if (((pcVar3[-3] == '*') && (pcVar3[-2] == '-')) && (cVar1 = pcVar3[-1], cVar1 != '/')) { __src = pcVar3 + -1; lVar2 = 0; do { if (cVar1 == '*') { cVar1 = *pcVar3; if (cVar1 == '/') { __dest = malloc(lVar2 + 0x100000000 >> 0x20); memcpy(__dest,__src,lVar2 >> 0x20); *(int1 *)((long)__dest + (lVar2 >> 0x20)) = 0; return __dest; } } else { if (cVar1 == '\0') { warning("Expecting end of desc comment"); return (void *)0x0; } cVar1 = *pcVar3; } lVar2 = lVar2 + 0x100000000; pcVar3 = pcVar3 + 1; } while( true ); } } else if (pcVar3[-4] == '\0') { return (void *)0x0; } pcVar3 = pcVar3 + 1; } while( true ); }
29,368
inline_mysql_file_read
eloqsql/include/mysql/psi/mysql_file.h
static inline size_t inline_mysql_file_read( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, uchar *buffer, size_t count, myf flags) { size_t result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; size_t bytes_read; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line); result= my_read(file, buffer, count, flags); if (flags & (MY_NABP | MY_FNABP)) bytes_read= (result == 0) ? count : 0; else bytes_read= (result != MY_FILE_ERROR) ? result : 0; PSI_FILE_CALL(end_file_wait)(locker, bytes_read); return result; } #endif result= my_read(file, buffer, count, flags); return result; }
O0
c
inline_mysql_file_read: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) leaq 0x1e6238(%rip), %rax # 0x2cdee0 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x88(%rbp), %rdi movl $0x6, %edx 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 0xe7db7 leaq 0x1e61ee(%rip), %rax # 0x2cdee0 movq (%rax), %rax movq 0x210(%rax), %rax movq -0x40(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x10(%rbp), %rdx movl -0x14(%rbp), %ecx callq *%rax movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx callq 0xfd210 movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xe7d62 cmpq $0x0, -0x38(%rbp) jne 0xe7d47 movq -0x28(%rbp), %rax movq %rax, -0x98(%rbp) jmp 0xe7d52 xorl %eax, %eax movq %rax, -0x98(%rbp) jmp 0xe7d52 movq -0x98(%rbp), %rax movq %rax, -0x90(%rbp) jmp 0xe7d8f cmpq $-0x1, -0x38(%rbp) je 0xe7d76 movq -0x38(%rbp), %rax movq %rax, -0xa0(%rbp) jmp 0xe7d81 xorl %eax, %eax movq %rax, -0xa0(%rbp) jmp 0xe7d81 movq -0xa0(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0x1e614a(%rip), %rax # 0x2cdee0 movq (%rax), %rax movq 0x218(%rax), %rax movq -0x40(%rbp), %rdi movq -0x90(%rbp), %rsi callq *%rax movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xe7dd7 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx callq 0xfd210 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_file_read_5: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+158h] mov esi, [rbp+var_18] lea rdi, [rbp+var_88] mov edx, 6 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 loc_E7DB7 lea rax, PSI_server mov rax, [rax] mov rax, [rax+210h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_28] mov rdx, [rbp+var_10] mov ecx, [rbp+var_14] call rax mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] call my_read mov [rbp+var_38], rax mov rax, [rbp+var_30] and rax, 6 cmp rax, 0 jz short loc_E7D62 cmp [rbp+var_38], 0 jnz short loc_E7D47 mov rax, [rbp+var_28] mov [rbp+var_98], rax jmp short loc_E7D52 loc_E7D47: xor eax, eax mov [rbp+var_98], rax jmp short $+2 loc_E7D52: mov rax, [rbp+var_98] mov [rbp+var_90], rax jmp short loc_E7D8F loc_E7D62: cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_E7D76 mov rax, [rbp+var_38] mov [rbp+var_A0], rax jmp short loc_E7D81 loc_E7D76: xor eax, eax mov [rbp+var_A0], rax jmp short $+2 loc_E7D81: mov rax, [rbp+var_A0] mov [rbp+var_90], rax loc_E7D8F: lea rax, PSI_server mov rax, [rax] mov rax, [rax+218h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_90] call rax mov rax, [rbp+var_38] mov [rbp+var_8], rax jmp short loc_E7DD7 loc_E7DB7: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] call my_read mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_E7DD7: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn
long long inline_mysql_file_read_5( long long a1, unsigned int a2, unsigned int a3, long long a4, long long a5, long long a6) { long long v7; // [rsp+0h] [rbp-A0h] long long v8; // [rsp+8h] [rbp-98h] _BYTE v9[72]; // [rsp+18h] [rbp-88h] BYREF long long v10; // [rsp+60h] [rbp-40h] long long v11; // [rsp+68h] [rbp-38h] long long v12; // [rsp+70h] [rbp-30h] long long v13; // [rsp+78h] [rbp-28h] long long v14; // [rsp+80h] [rbp-20h] unsigned int v15; // [rsp+88h] [rbp-18h] unsigned int v16; // [rsp+8Ch] [rbp-14h] long long v17; // [rsp+90h] [rbp-10h] v17 = a1; v16 = a2; v15 = a3; v14 = a4; v13 = a5; v12 = a6; v10 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v9, a3, 6LL); if ( v10 ) { ((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v10, v13, v17, v16); v11 = my_read(v15, v14, v13, v12); if ( (v12 & 6) != 0 ) { if ( v11 ) v8 = 0LL; else v8 = v13; ((void ( *)(long long, long long))PSI_server[67])(v10, v8); } else { if ( v11 == -1 ) v7 = 0LL; else v7 = v11; ((void ( *)(long long, long long))PSI_server[67])(v10, v7); } return v11; } else { return my_read(v15, v14, v13, v12); } }
inline_mysql_file_read: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 LEA RAX,[0x3cdee0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x88] MOV EDX,0x6 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 0x001e7db7 LEA RAX,[0x3cdee0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x210] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] CALL RAX MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] CALL 0x001fd210 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x6 CMP RAX,0x0 JZ 0x001e7d62 CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001e7d47 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x98],RAX JMP 0x001e7d52 LAB_001e7d47: XOR EAX,EAX MOV qword ptr [RBP + -0x98],RAX JMP 0x001e7d52 LAB_001e7d52: MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x90],RAX JMP 0x001e7d8f LAB_001e7d62: CMP qword ptr [RBP + -0x38],-0x1 JZ 0x001e7d76 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0xa0],RAX JMP 0x001e7d81 LAB_001e7d76: XOR EAX,EAX MOV qword ptr [RBP + -0xa0],RAX JMP 0x001e7d81 LAB_001e7d81: MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x90],RAX LAB_001e7d8f: LEA RAX,[0x3cdee0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x90] CALL RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX JMP 0x001e7dd7 LAB_001e7db7: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] CALL 0x001fd210 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_001e7dd7: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
long inline_mysql_file_read (int8 param_1,int4 param_2,int4 param_3,int8 param_4, long param_5,ulong param_6) { long local_a8; long local_a0; long local_98; int1 local_90 [72]; long local_48; long local_40; ulong local_38; long local_30; int8 local_28; int4 local_20; int4 local_1c; int8 local_18; long local_10; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6); if (local_48 == 0) { local_10 = my_read(local_20,local_28,local_30,local_38); } else { (**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c); local_40 = my_read(local_20,local_28,local_30,local_38); if ((local_38 & 6) == 0) { local_a8 = local_40; if (local_40 == -1) { local_a8 = 0; } local_98 = local_a8; } else { if (local_40 == 0) { local_a0 = local_30; } else { local_a0 = 0; } local_98 = local_a0; } (**(code **)(PSI_server + 0x218))(local_48,local_98); local_10 = local_40; } return local_10; }
29,369
pvio_socket_set_timeout
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
my_bool pvio_socket_set_timeout(MARIADB_PVIO *pvio, enum enum_pvio_timeout type, int timeout) { struct st_pvio_socket *csock= NULL; if (!pvio) return 1; csock= (struct st_pvio_socket *)pvio->data; pvio->timeout[type]= (timeout > 0) ? timeout * 1000 : -1; if (csock) return pvio_socket_change_timeout(pvio, type, timeout * 1000); return 0; }
O3
c
pvio_socket_set_timeout: pushq %rbp movq %rsp, %rbp testq %rdi, %rdi je 0x31945 movl %edx, %eax imull $0x3e8, %edx, %edx # imm = 0x3E8 testl %eax, %eax movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmovgl %edx, %eax movl %esi, %ecx cmpq $0x0, (%rdi) movl %eax, 0x24(%rdi,%rcx,4) je 0x31949 popq %rbp jmp 0x3259c movb $0x1, %al jmp 0x3194b xorl %eax, %eax popq %rbp retq
pvio_socket_set_timeout: push rbp mov rbp, rsp test rdi, rdi jz short loc_31945 mov eax, edx imul edx, 3E8h test eax, eax mov eax, 0FFFFFFFFh cmovg eax, edx mov ecx, esi cmp qword ptr [rdi], 0 mov [rdi+rcx*4+24h], eax jz short loc_31949 pop rbp jmp pvio_socket_change_timeout loc_31945: mov al, 1 jmp short loc_3194B loc_31949: xor eax, eax loc_3194B: pop rbp retn
char pvio_socket_set_timeout(_QWORD *a1, unsigned int a2, int a3) { int v4; // edx bool v5; // cc int v6; // eax bool v7; // zf if ( !a1 ) return 1; v4 = 1000 * a3; v5 = a3 <= 0; v6 = -1; if ( !v5 ) v6 = v4; v7 = *a1 == 0LL; *((_DWORD *)a1 + a2 + 9) = v6; if ( v7 ) return 0; else return pvio_socket_change_timeout(); }
pvio_socket_set_timeout: PUSH RBP MOV RBP,RSP TEST RDI,RDI JZ 0x00131945 MOV EAX,EDX IMUL EDX,EDX,0x3e8 TEST EAX,EAX MOV EAX,0xffffffff CMOVG EAX,EDX MOV ECX,ESI CMP qword ptr [RDI],0x0 MOV dword ptr [RDI + RCX*0x4 + 0x24],EAX JZ 0x00131949 POP RBP JMP 0x0013259c LAB_00131945: MOV AL,0x1 JMP 0x0013194b LAB_00131949: XOR EAX,EAX LAB_0013194b: POP RBP RET
int8 pvio_socket_set_timeout(long *param_1,uint param_2,int param_3) { long lVar1; int iVar2; int8 uVar3; if (param_1 == (long *)0x0) { uVar3 = 1; } else { iVar2 = -1; if (0 < param_3) { iVar2 = param_3 * 1000; } lVar1 = *param_1; *(int *)((long)param_1 + (ulong)param_2 * 4 + 0x24) = iVar2; if (lVar1 != 0) { uVar3 = pvio_socket_change_timeout(); return uVar3; } uVar3 = 0; } return uVar3; }
29,370
js_std_file_getline
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_std_file_getline(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { FILE *f = js_std_file_get(ctx, this_val); int c; DynBuf dbuf; JSValue obj; if (!f) return JS_EXCEPTION; js_std_dbuf_init(ctx, &dbuf); for(;;) { c = fgetc(f); if (c == EOF) { if (dbuf.size == 0) { /* EOF */ dbuf_free(&dbuf); return JS_NULL; } else { break; } } if (c == '\n') break; if (dbuf_putc(&dbuf, c)) { dbuf_free(&dbuf); return JS_ThrowOutOfMemory(ctx); } } obj = JS_NewStringLen(ctx, (const char *)dbuf.buf, dbuf.size); dbuf_free(&dbuf); return obj; }
O0
c
js_std_file_getline: subq $0x98, %rsp movq %rsi, 0x78(%rsp) movq %rdx, 0x80(%rsp) movq %rdi, 0x70(%rsp) movl %ecx, 0x6c(%rsp) movq %r8, 0x60(%rsp) movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi movq 0x80(%rsp), %rdx callq 0x127c0 movq %rax, 0x58(%rsp) cmpq $0x0, 0x58(%rsp) jne 0x122c2 movl $0x0, 0x88(%rsp) movq $0x6, 0x90(%rsp) jmp 0x123b4 movq 0x70(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0x13490 movq 0x58(%rsp), %rdi callq 0xe380 movl %eax, 0x54(%rsp) cmpl $-0x1, 0x54(%rsp) jne 0x12316 cmpq $0x0, 0x28(%rsp) jne 0x12314 leaq 0x20(%rsp), %rdi callq 0x1d670 movl $0x0, 0x88(%rsp) movq $0x2, 0x90(%rsp) jmp 0x123b4 jmp 0x12360 cmpl $0xa, 0x54(%rsp) jne 0x1231f jmp 0x12360 movl 0x54(%rsp), %eax leaq 0x20(%rsp), %rdi movzbl %al, %esi callq 0x1d410 cmpl $0x0, %eax je 0x1235b leaq 0x20(%rsp), %rdi callq 0x1d670 movq 0x70(%rsp), %rdi callq 0x20950 movq %rax, 0x88(%rsp) movq %rdx, 0x90(%rsp) jmp 0x123b4 jmp 0x122d1 movq 0x70(%rsp), %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx callq 0x26fb0 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movq (%rsp), %rax movq %rax, 0x10(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x18(%rsp) leaq 0x20(%rsp), %rdi callq 0x1d670 movq 0x10(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x90(%rsp) movq 0x88(%rsp), %rax movq 0x90(%rsp), %rdx addq $0x98, %rsp retq nopl (%rax)
js_std_file_getline: sub rsp, 98h mov [rsp+98h+var_20], rsi mov [rsp+98h+var_18], rdx mov [rsp+98h+var_28], rdi mov [rsp+98h+var_2C], ecx mov [rsp+98h+var_38], r8 mov rdi, [rsp+98h+var_28] mov rsi, [rsp+98h+var_20] mov rdx, [rsp+98h+var_18] call js_std_file_get mov [rsp+98h+var_40], rax cmp [rsp+98h+var_40], 0 jnz short loc_122C2 mov dword ptr [rsp+98h+var_10], 0 mov [rsp+98h+var_8], 6 jmp loc_123B4 loc_122C2: mov rdi, [rsp+98h+var_28] lea rsi, [rsp+98h+var_78] call js_std_dbuf_init loc_122D1: mov rdi, [rsp+98h+var_40] call _fgetc mov [rsp+98h+var_44], eax cmp [rsp+98h+var_44], 0FFFFFFFFh jnz short loc_12316 cmp [rsp+98h+var_70], 0 jnz short loc_12314 lea rdi, [rsp+98h+var_78] call dbuf_free mov dword ptr [rsp+98h+var_10], 0 mov [rsp+98h+var_8], 2 jmp loc_123B4 loc_12314: jmp short loc_12360 loc_12316: cmp [rsp+98h+var_44], 0Ah jnz short loc_1231F jmp short loc_12360 loc_1231F: mov eax, [rsp+98h+var_44] lea rdi, [rsp+98h+var_78] movzx esi, al call dbuf_putc cmp eax, 0 jz short loc_1235B lea rdi, [rsp+98h+var_78] call dbuf_free mov rdi, [rsp+98h+var_28] call JS_ThrowOutOfMemory mov [rsp+98h+var_10], rax mov [rsp+98h+var_8], rdx jmp short loc_123B4 loc_1235B: jmp loc_122D1 loc_12360: mov rdi, [rsp+98h+var_28] mov rsi, [rsp+98h+var_78] mov rdx, [rsp+98h+var_70] call JS_NewStringLen mov [rsp+98h+var_98], rax mov [rsp+98h+var_90], rdx mov rax, [rsp+98h+var_98] mov [rsp+98h+var_88], rax mov rax, [rsp+98h+var_90] mov [rsp+98h+var_80], rax lea rdi, [rsp+98h+var_78] call dbuf_free mov rax, [rsp+98h+var_88] mov [rsp+98h+var_10], rax mov rax, [rsp+98h+var_80] mov [rsp+98h+var_8], rax loc_123B4: mov rax, [rsp+98h+var_10] mov rdx, [rsp+98h+var_8] add rsp, 98h retn
long long js_std_file_getline(long long a1, long long a2, long long a3, int a4, long long a5) { long long v5; // rdx long long v6; // rdx long long v8; // [rsp+0h] [rbp-98h] long long v9; // [rsp+18h] [rbp-80h] long long v10; // [rsp+20h] [rbp-78h] BYREF long long v11; // [rsp+28h] [rbp-70h] int v12; // [rsp+54h] [rbp-44h] long long v13; // [rsp+58h] [rbp-40h] long long v14; // [rsp+60h] [rbp-38h] int v15; // [rsp+6Ch] [rbp-2Ch] long long v16; // [rsp+70h] [rbp-28h] long long v17; // [rsp+78h] [rbp-20h] long long v18; // [rsp+80h] [rbp-18h] long long v19; // [rsp+88h] [rbp-10h] long long v20; // [rsp+90h] [rbp-8h] v17 = a2; v18 = a3; v16 = a1; v15 = a4; v14 = a5; v13 = js_std_file_get(a1, a2, a3); if ( v13 ) { js_std_dbuf_init(v16, &v10); while ( 1 ) { v12 = fgetc(v13); if ( v12 == -1 ) break; if ( v12 == 10 ) goto LABEL_12; if ( (unsigned int)dbuf_putc(&v10, (unsigned __int8)v12) ) { dbuf_free(&v10); v19 = JS_ThrowOutOfMemory(v16); v20 = v5; return v19; } } if ( !v11 ) { dbuf_free(&v10); LODWORD(v19) = 0; v20 = 2LL; return v19; } LABEL_12: v8 = JS_NewStringLen(v16, v10, v11); v9 = v6; dbuf_free(&v10); v19 = v8; v20 = v9; } else { LODWORD(v19) = 0; v20 = 6LL; } return v19; }
js_std_file_getline: SUB RSP,0x98 MOV qword ptr [RSP + 0x78],RSI MOV qword ptr [RSP + 0x80],RDX MOV qword ptr [RSP + 0x70],RDI MOV dword ptr [RSP + 0x6c],ECX MOV qword ptr [RSP + 0x60],R8 MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] CALL 0x001127c0 MOV qword ptr [RSP + 0x58],RAX CMP qword ptr [RSP + 0x58],0x0 JNZ 0x001122c2 MOV dword ptr [RSP + 0x88],0x0 MOV qword ptr [RSP + 0x90],0x6 JMP 0x001123b4 LAB_001122c2: MOV RDI,qword ptr [RSP + 0x70] LEA RSI,[RSP + 0x20] CALL 0x00113490 LAB_001122d1: MOV RDI,qword ptr [RSP + 0x58] CALL 0x0010e380 MOV dword ptr [RSP + 0x54],EAX CMP dword ptr [RSP + 0x54],-0x1 JNZ 0x00112316 CMP qword ptr [RSP + 0x28],0x0 JNZ 0x00112314 LEA RDI,[RSP + 0x20] CALL 0x0011d670 MOV dword ptr [RSP + 0x88],0x0 MOV qword ptr [RSP + 0x90],0x2 JMP 0x001123b4 LAB_00112314: JMP 0x00112360 LAB_00112316: CMP dword ptr [RSP + 0x54],0xa JNZ 0x0011231f JMP 0x00112360 LAB_0011231f: MOV EAX,dword ptr [RSP + 0x54] LEA RDI,[RSP + 0x20] MOVZX ESI,AL CALL 0x0011d410 CMP EAX,0x0 JZ 0x0011235b LEA RDI,[RSP + 0x20] CALL 0x0011d670 MOV RDI,qword ptr [RSP + 0x70] CALL 0x00120950 MOV qword ptr [RSP + 0x88],RAX MOV qword ptr [RSP + 0x90],RDX JMP 0x001123b4 LAB_0011235b: JMP 0x001122d1 LAB_00112360: MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] CALL 0x00126fb0 MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x18],RAX LEA RDI,[RSP + 0x20] CALL 0x0011d670 MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x88],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x90],RAX LAB_001123b4: MOV RAX,qword ptr [RSP + 0x88] MOV RDX,qword ptr [RSP + 0x90] ADD RSP,0x98 RET
int1 [16] js_std_file_getline(int8 param_1,int8 param_2,int8 param_3,int4 param_4, int8 param_5) { int iVar1; int1 auVar2 [16]; int8 local_78; long local_70; uint local_44; FILE *local_40; int8 local_38; int4 local_2c; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_38 = param_5; local_2c = param_4; local_28 = param_1; local_20 = param_2; local_18 = param_3; local_40 = (FILE *)js_std_file_get(param_1,param_2,param_3); if (local_40 == (FILE *)0x0) { local_10 = 0; local_8 = 6; } else { js_std_dbuf_init(local_28,&local_78); do { local_44 = fgetc(local_40); if (local_44 == 0xffffffff) { if (local_70 == 0) { dbuf_free(&local_78); local_10 = 0; local_8 = 2; } else { LAB_00112360: auVar2 = JS_NewStringLen(local_28,local_78,local_70); dbuf_free(&local_78); local_10 = auVar2._0_4_; uStack_c = auVar2._4_4_; local_8 = auVar2._8_8_; } goto LAB_001123b4; } if (local_44 == 10) goto LAB_00112360; iVar1 = dbuf_putc(&local_78,local_44 & 0xff); } while (iVar1 == 0); dbuf_free(&local_78); auVar2 = JS_ThrowOutOfMemory(local_28); local_8 = auVar2._8_8_; local_10 = auVar2._0_4_; uStack_c = auVar2._4_4_; } LAB_001123b4: auVar2._4_4_ = uStack_c; auVar2._0_4_ = local_10; auVar2._8_8_ = local_8; return auVar2; }
29,371
js_std_file_getline
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_std_file_getline(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { FILE *f = js_std_file_get(ctx, this_val); int c; DynBuf dbuf; JSValue obj; if (!f) return JS_EXCEPTION; js_std_dbuf_init(ctx, &dbuf); for(;;) { c = fgetc(f); if (c == EOF) { if (dbuf.size == 0) { /* EOF */ dbuf_free(&dbuf); return JS_NULL; } else { break; } } if (c == '\n') break; if (dbuf_putc(&dbuf, c)) { dbuf_free(&dbuf); return JS_ThrowOutOfMemory(ctx); } } obj = JS_NewStringLen(ctx, (const char *)dbuf.buf, dbuf.size); dbuf_free(&dbuf); return obj; }
O1
c
js_std_file_getline: pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %rbx callq 0x15974 testq %rax, %rax je 0x1578b movq %rax, %r14 movq %rbx, %rdi callq 0x1f16a leaq 0x6777(%rip), %rdx # 0x1beae movq %rsp, %r15 movq %r15, %rdi movq %rax, %rsi callq 0x1a717 movq %r14, %rdi callq 0xe380 cmpl $0xa, %eax je 0x1579f cmpl $-0x1, %eax je 0x15797 movzbl %al, %esi movq %r15, %rdi callq 0x1a8bc testl %eax, %eax je 0x15745 movq %rsp, %rdi callq 0x1aa16 movq %rbx, %rdi callq 0x1bf4f movq %rax, %r14 movq %rdx, %rbx movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx jmp 0x157cc movl $0x6, %ebx xorl %r14d, %r14d xorl %ecx, %ecx jmp 0x157cc cmpq $0x0, 0x8(%rsp) je 0x157df movq %rsp, %r15 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %rbx, %rdi callq 0x1f2f3 movq %rax, %r14 movq %rdx, %rbx movq %r15, %rdi callq 0x1aa16 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %r14, %rcx movl %r14d, %eax orq %rcx, %rax movq %rbx, %rdx addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq movq %rsp, %rdi callq 0x1aa16 movl $0x2, %ebx jmp 0x15790
js_std_file_getline: push r15 push r14 push rbx sub rsp, 30h mov rbx, rdi call js_std_file_get test rax, rax jz short loc_1578B mov r14, rax mov rdi, rbx call JS_GetRuntime lea rdx, js_realloc_rt mov r15, rsp mov rdi, r15 mov rsi, rax call dbuf_init2 loc_15745: mov rdi, r14 call _fgetc cmp eax, 0Ah jz short loc_1579F cmp eax, 0FFFFFFFFh jz short loc_15797 movzx esi, al mov rdi, r15 call dbuf_putc test eax, eax jz short loc_15745 mov rdi, rsp call dbuf_free mov rdi, rbx call JS_ThrowOutOfMemory mov r14, rax mov rbx, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax jmp short loc_157CC loc_1578B: mov ebx, 6 loc_15790: xor r14d, r14d xor ecx, ecx jmp short loc_157CC loc_15797: cmp [rsp+48h+var_40], 0 jz short loc_157DF loc_1579F: mov r15, rsp mov rsi, [r15] mov rdx, [r15+8] mov rdi, rbx call JS_NewStringLen mov r14, rax mov rbx, rdx mov rdi, r15 call dbuf_free mov rcx, 0FFFFFFFF00000000h and rcx, r14 loc_157CC: mov eax, r14d or rax, rcx mov rdx, rbx add rsp, 30h pop rbx pop r14 pop r15 retn loc_157DF: mov rdi, rsp call dbuf_free mov ebx, 2 jmp short loc_15790
unsigned long long js_std_file_getline(long long a1) { long long v1; // rax long long v2; // r14 long long Runtime; // rsi int v4; // eax long long v5; // rax long long v6; // r14 unsigned long long v7; // rcx long long v9; // [rsp+0h] [rbp-48h] BYREF long long v10; // [rsp+8h] [rbp-40h] v1 = js_std_file_get(a1); if ( v1 ) { v2 = v1; Runtime = JS_GetRuntime(a1); dbuf_init2(&v9, Runtime, js_realloc_rt); while ( 1 ) { v4 = fgetc(v2); if ( v4 == 10 ) goto LABEL_9; if ( v4 == -1 ) break; if ( (unsigned int)dbuf_putc(&v9, (unsigned __int8)v4) ) { dbuf_free(&v9); v5 = JS_ThrowOutOfMemory(a1); LODWORD(v6) = v5; v7 = v5 & 0xFFFFFFFF00000000LL; return v7 | (unsigned int)v6; } } if ( v10 ) { LABEL_9: v6 = JS_NewStringLen(a1, v9, v10); dbuf_free(&v9); v7 = v6 & 0xFFFFFFFF00000000LL; return v7 | (unsigned int)v6; } dbuf_free(&v9); } LODWORD(v6) = 0; v7 = 0LL; return v7 | (unsigned int)v6; }
js_std_file_getline: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV RBX,RDI CALL 0x00115974 TEST RAX,RAX JZ 0x0011578b MOV R14,RAX MOV RDI,RBX CALL 0x0011f16a LEA RDX,[0x11beae] MOV R15,RSP MOV RDI,R15 MOV RSI,RAX CALL 0x0011a717 LAB_00115745: MOV RDI,R14 CALL 0x0010e380 CMP EAX,0xa JZ 0x0011579f CMP EAX,-0x1 JZ 0x00115797 MOVZX ESI,AL MOV RDI,R15 CALL 0x0011a8bc TEST EAX,EAX JZ 0x00115745 MOV RDI,RSP CALL 0x0011aa16 MOV RDI,RBX CALL 0x0011bf4f MOV R14,RAX MOV RBX,RDX MOV RCX,-0x100000000 AND RCX,RAX JMP 0x001157cc LAB_0011578b: MOV EBX,0x6 LAB_00115790: XOR R14D,R14D XOR ECX,ECX JMP 0x001157cc LAB_00115797: CMP qword ptr [RSP + 0x8],0x0 JZ 0x001157df LAB_0011579f: MOV R15,RSP MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x0011f2f3 MOV R14,RAX MOV RBX,RDX MOV RDI,R15 CALL 0x0011aa16 MOV RCX,-0x100000000 AND RCX,R14 LAB_001157cc: MOV EAX,R14D OR RAX,RCX MOV RDX,RBX ADD RSP,0x30 POP RBX POP R14 POP R15 RET LAB_001157df: MOV RDI,RSP CALL 0x0011aa16 MOV EBX,0x2 JMP 0x00115790
int1 [16] js_std_file_getline(int8 param_1) { uint uVar1; int iVar2; FILE *__stream; int8 uVar3; ulong uVar4; int1 auVar5 [16]; int1 auVar6 [16]; int8 local_48; long local_40; __stream = (FILE *)js_std_file_get(); if (__stream == (FILE *)0x0) { uVar4 = 6; LAB_00115790: auVar5._8_8_ = 0; auVar5._0_8_ = uVar4; auVar5 = auVar5 << 0x40; uVar4 = 0; } else { uVar3 = JS_GetRuntime(param_1); dbuf_init2(&local_48,uVar3,js_realloc_rt); do { uVar1 = fgetc(__stream); if (uVar1 == 10) { LAB_0011579f: auVar5 = JS_NewStringLen(param_1,local_48,local_40); dbuf_free(&local_48); uVar4 = auVar5._0_8_ & 0xffffffff00000000; goto LAB_001157cc; } if (uVar1 == 0xffffffff) { if (local_40 != 0) goto LAB_0011579f; dbuf_free(&local_48); uVar4 = 2; goto LAB_00115790; } iVar2 = dbuf_putc(&local_48,uVar1 & 0xff); } while (iVar2 == 0); dbuf_free(&local_48); auVar5 = JS_ThrowOutOfMemory(param_1); uVar4 = auVar5._0_8_ & 0xffffffff00000000; } LAB_001157cc: auVar6._0_8_ = auVar5._0_8_ & 0xffffffff | uVar4; auVar6._8_8_ = auVar5._8_8_; return auVar6; }
29,372
js_std_file_getline
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_std_file_getline(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { FILE *f = js_std_file_get(ctx, this_val); int c; DynBuf dbuf; JSValue obj; if (!f) return JS_EXCEPTION; js_std_dbuf_init(ctx, &dbuf); for(;;) { c = fgetc(f); if (c == EOF) { if (dbuf.size == 0) { /* EOF */ dbuf_free(&dbuf); return JS_NULL; } else { break; } } if (c == '\n') break; if (dbuf_putc(&dbuf, c)) { dbuf_free(&dbuf); return JS_ThrowOutOfMemory(ctx); } } obj = JS_NewStringLen(ctx, (const char *)dbuf.buf, dbuf.size); dbuf_free(&dbuf); return obj; }
O3
c
js_std_file_getline: pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %rbx callq 0x1634c testq %rax, %rax je 0x1616d movq %rax, %r14 movq %rbx, %rdi callq 0x1f8ad leaq 0x6655(%rip), %rdx # 0x1c76e movq %rsp, %r15 movq %r15, %rdi movq %rax, %rsi callq 0x1b01f movq %r14, %rdi callq 0xe380 cmpl $0xa, %eax je 0x16192 cmpl $-0x1, %eax je 0x16179 movzbl %al, %esi movq %r15, %rdi callq 0x1b1c5 testl %eax, %eax je 0x16127 movq %rsp, %rdi callq 0x1b31f movq %rbx, %rdi callq 0x1c80f movq %rax, %r14 movq %rdx, %rbx movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx jmp 0x161c0 movl $0x6, %ebx xorl %r14d, %r14d xorl %ecx, %ecx jmp 0x161c0 movq 0x8(%rsp), %rdx testq %rdx, %rdx jne 0x16197 movq %rsp, %rdi callq 0x1b31f movl $0x2, %ebx jmp 0x16172 movq 0x8(%rsp), %rdx movq %rsp, %r15 movq (%r15), %rsi movq %rbx, %rdi callq 0x1fa32 movq %rax, %r14 movq %rdx, %rbx movq %r15, %rdi callq 0x1b31f movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %r14, %rcx movl %r14d, %eax orq %rcx, %rax movq %rbx, %rdx addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq
js_std_file_getline: push r15 push r14 push rbx sub rsp, 30h mov rbx, rdi call js_std_file_get test rax, rax jz short loc_1616D mov r14, rax mov rdi, rbx call JS_GetRuntime lea rdx, js_realloc_rt mov r15, rsp mov rdi, r15 mov rsi, rax call dbuf_init2 loc_16127: mov rdi, r14 call _fgetc cmp eax, 0Ah jz short loc_16192 cmp eax, 0FFFFFFFFh jz short loc_16179 movzx esi, al mov rdi, r15 call dbuf_putc test eax, eax jz short loc_16127 mov rdi, rsp call dbuf_free mov rdi, rbx call JS_ThrowOutOfMemory mov r14, rax mov rbx, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax jmp short loc_161C0 loc_1616D: mov ebx, 6 loc_16172: xor r14d, r14d xor ecx, ecx jmp short loc_161C0 loc_16179: mov rdx, [rsp+48h+var_40] test rdx, rdx jnz short loc_16197 mov rdi, rsp call dbuf_free mov ebx, 2 jmp short loc_16172 loc_16192: mov rdx, [rsp+48h+var_40] loc_16197: mov r15, rsp mov rsi, [r15] mov rdi, rbx call JS_NewStringLen mov r14, rax mov rbx, rdx mov rdi, r15 call dbuf_free mov rcx, 0FFFFFFFF00000000h and rcx, r14 loc_161C0: mov eax, r14d or rax, rcx mov rdx, rbx add rsp, 30h pop rbx pop r14 pop r15 retn
unsigned long long js_std_file_getline(long long a1) { long long v1; // rax long long v2; // r14 long long Runtime; // rsi int v4; // eax long long v5; // rax long long v6; // r14 unsigned long long v7; // rcx long long v8; // rdx long long v10; // [rsp+0h] [rbp-48h] BYREF long long v11; // [rsp+8h] [rbp-40h] v1 = js_std_file_get(a1); if ( v1 ) { v2 = v1; Runtime = JS_GetRuntime(a1); dbuf_init2(&v10, Runtime, js_realloc_rt); while ( 1 ) { v4 = fgetc(v2); if ( v4 == 10 ) { v8 = v11; goto LABEL_11; } if ( v4 == -1 ) break; if ( (unsigned int)dbuf_putc(&v10, (unsigned __int8)v4) ) { dbuf_free(&v10); v5 = JS_ThrowOutOfMemory(a1); LODWORD(v6) = v5; v7 = v5 & 0xFFFFFFFF00000000LL; return v7 | (unsigned int)v6; } } v8 = v11; if ( !v11 ) { dbuf_free(&v10); goto LABEL_7; } LABEL_11: v6 = JS_NewStringLen(a1, v10, v8); dbuf_free(&v10); v7 = v6 & 0xFFFFFFFF00000000LL; } else { LABEL_7: LODWORD(v6) = 0; v7 = 0LL; } return v7 | (unsigned int)v6; }
js_std_file_getline: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV RBX,RDI CALL 0x0011634c TEST RAX,RAX JZ 0x0011616d MOV R14,RAX MOV RDI,RBX CALL 0x0011f8ad LEA RDX,[0x11c76e] MOV R15,RSP MOV RDI,R15 MOV RSI,RAX CALL 0x0011b01f LAB_00116127: MOV RDI,R14 CALL 0x0010e380 CMP EAX,0xa JZ 0x00116192 CMP EAX,-0x1 JZ 0x00116179 MOVZX ESI,AL MOV RDI,R15 CALL 0x0011b1c5 TEST EAX,EAX JZ 0x00116127 MOV RDI,RSP CALL 0x0011b31f MOV RDI,RBX CALL 0x0011c80f MOV R14,RAX MOV RBX,RDX MOV RCX,-0x100000000 AND RCX,RAX JMP 0x001161c0 LAB_0011616d: MOV EBX,0x6 LAB_00116172: XOR R14D,R14D XOR ECX,ECX JMP 0x001161c0 LAB_00116179: MOV RDX,qword ptr [RSP + 0x8] TEST RDX,RDX JNZ 0x00116197 MOV RDI,RSP CALL 0x0011b31f MOV EBX,0x2 JMP 0x00116172 LAB_00116192: MOV RDX,qword ptr [RSP + 0x8] LAB_00116197: MOV R15,RSP MOV RSI,qword ptr [R15] MOV RDI,RBX CALL 0x0011fa32 MOV R14,RAX MOV RBX,RDX MOV RDI,R15 CALL 0x0011b31f MOV RCX,-0x100000000 AND RCX,R14 LAB_001161c0: MOV EAX,R14D OR RAX,RCX MOV RDX,RBX ADD RSP,0x30 POP RBX POP R14 POP R15 RET
int1 [16] js_std_file_getline(int8 param_1) { uint uVar1; int iVar2; FILE *__stream; int8 uVar3; ulong uVar4; int1 auVar5 [16]; int1 auVar6 [16]; int8 local_48; long local_40; __stream = (FILE *)js_std_file_get(); if (__stream == (FILE *)0x0) { uVar4 = 6; LAB_00116172: auVar5._8_8_ = 0; auVar5._0_8_ = uVar4; auVar5 = auVar5 << 0x40; uVar4 = 0; } else { uVar3 = JS_GetRuntime(param_1); dbuf_init2(&local_48,uVar3,js_realloc_rt); do { uVar1 = fgetc(__stream); if (uVar1 == 10) { LAB_00116197: auVar5 = JS_NewStringLen(param_1,local_48,local_40); dbuf_free(&local_48); uVar4 = auVar5._0_8_ & 0xffffffff00000000; goto LAB_001161c0; } if (uVar1 == 0xffffffff) { if (local_40 != 0) goto LAB_00116197; dbuf_free(&local_48); uVar4 = 2; goto LAB_00116172; } iVar2 = dbuf_putc(&local_48,uVar1 & 0xff); } while (iVar2 == 0); dbuf_free(&local_48); auVar5 = JS_ThrowOutOfMemory(param_1); uVar4 = auVar5._0_8_ & 0xffffffff00000000; } LAB_001161c0: auVar6._0_8_ = auVar5._0_8_ & 0xffffffff | uVar4; auVar6._8_8_ = auVar5._8_8_; return auVar6; }
29,373
inline_mysql_file_close
eloqsql/include/mysql/psi/mysql_file.h
static inline int inline_mysql_file_close( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, myf flags) { int result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CLOSE); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line); result= my_close(file, flags); PSI_FILE_CALL(end_file_close_wait)(locker, result); return result; } #endif result= my_close(file, flags); return result; }
O0
c
inline_mysql_file_close: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq %rcx, -0x20(%rbp) leaq 0x20eae8(%rip), %rax # 0x2c0238 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x78(%rbp), %rdi movl $0x4, %edx callq *%rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%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 0xb17db leaq 0x20eaa5(%rip), %rax # 0x2c0238 movq (%rax), %rax movq 0x220(%rax), %rax movq -0x30(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx callq *%rax movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi callq 0xf4490 movl %eax, -0x24(%rbp) leaq 0x20ea78(%rip), %rax # 0x2c0238 movq (%rax), %rax movq 0x228(%rax), %rax movq -0x30(%rbp), %rdi movl -0x24(%rbp), %esi callq *%rax movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0xb17f0 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi callq 0xf4490 movl %eax, -0x24(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x80, %rsp popq %rbp retq nopl (%rax)
inline_mysql_file_close_5: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_20], rcx lea rax, PSI_server mov rax, [rax] mov rax, [rax+158h] mov esi, [rbp+var_18] lea rdi, [rbp+var_78] mov edx, 4 call rax mov [rbp+var_30], rax cmp [rbp+var_30], 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_B17DB lea rax, PSI_server mov rax, [rax] mov rax, [rax+220h] mov rdi, [rbp+var_30] mov rsi, [rbp+var_10] mov edx, [rbp+var_14] call rax mov edi, [rbp+var_18] mov rsi, [rbp+var_20] call my_close mov [rbp+var_24], eax lea rax, PSI_server mov rax, [rax] mov rax, [rax+228h] mov rdi, [rbp+var_30] mov esi, [rbp+var_24] call rax mov eax, [rbp+var_24] mov [rbp+var_4], eax jmp short loc_B17F0 loc_B17DB: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] call my_close mov [rbp+var_24], eax mov eax, [rbp+var_24] mov [rbp+var_4], eax loc_B17F0: mov eax, [rbp+var_4] add rsp, 80h pop rbp retn
long long inline_mysql_file_close_5(long long a1, unsigned int a2, unsigned int a3, long long a4) { _BYTE v5[72]; // [rsp+8h] [rbp-78h] BYREF long long v6; // [rsp+50h] [rbp-30h] unsigned int v7; // [rsp+5Ch] [rbp-24h] long long v8; // [rsp+60h] [rbp-20h] unsigned int v9; // [rsp+68h] [rbp-18h] unsigned int v10; // [rsp+6Ch] [rbp-14h] long long v11; // [rsp+70h] [rbp-10h] v11 = a1; v10 = a2; v9 = a3; v8 = a4; v6 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v5, a3, 4LL); if ( v6 ) { ((void ( *)(long long, long long, _QWORD))PSI_server[68])(v6, v11, v10); v7 = my_close(v9, v8); ((void ( *)(long long, _QWORD))PSI_server[69])(v6, v7); } else { return (unsigned int)my_close(v9, v8); } return v7; }
inline_mysql_file_close: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x20],RCX LEA RAX,[0x3c0238] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x78] MOV EDX,0x4 CALL RAX MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x30],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 0x001b17db LEA RAX,[0x3c0238] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x220] MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] CALL RAX MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x001f4490 MOV dword ptr [RBP + -0x24],EAX LEA RAX,[0x3c0238] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x228] MOV RDI,qword ptr [RBP + -0x30] MOV ESI,dword ptr [RBP + -0x24] CALL RAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX JMP 0x001b17f0 LAB_001b17db: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x001f4490 MOV dword ptr [RBP + -0x24],EAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX LAB_001b17f0: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x80 POP RBP RET
int4 inline_mysql_file_close(int8 param_1,int4 param_2,int4 param_3,int8 param_4) { int1 local_80 [72]; long local_38; int4 local_2c; int8 local_28; int4 local_20; int4 local_1c; int8 local_18; int4 local_c; local_28 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_38 = (**(code **)(PSI_server + 0x158))(local_80,param_3,4); if (local_38 == 0) { local_c = my_close(local_20,local_28); } else { (**(code **)(PSI_server + 0x220))(local_38,local_18,local_1c); local_2c = my_close(local_20,local_28); (**(code **)(PSI_server + 0x228))(local_38,local_2c); local_c = local_2c; } return local_c; }
29,374
inline_mysql_file_close
eloqsql/include/mysql/psi/mysql_file.h
static inline int inline_mysql_file_close( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, myf flags) { int result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CLOSE); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line); result= my_close(file, flags); PSI_FILE_CALL(end_file_close_wait)(locker, result); return result; } #endif result= my_close(file, flags); return result; }
O3
c
inline_mysql_file_close: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x58, %rsp movl %esi, %ebx movl %edi, %r14d leaq 0x2f5258(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0x68(%rbp), %rdi movl $0x4, %edx callq *0x158(%rax) testq %rax, %rax jne 0x90de3 movl %ebx, %edi xorl %esi, %esi callq 0xa0515 addq $0x58, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq -0x1c(%rbp), %r15 movq %rax, %rdi movl %r14d, %esi movl %ebx, %edx movq %r15, %rcx callq 0x2e834 movl (%r15), %eax jmp 0x90dd8
inline_mysql_file_close_1: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 58h mov ebx, esi mov r14d, edi lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_68] mov edx, 4 call qword ptr [rax+158h] test rax, rax jnz short loc_90DE3 mov edi, ebx xor esi, esi call my_close loc_90DD8: add rsp, 58h pop rbx pop r14 pop r15 pop rbp retn loc_90DE3: lea r15, [rbp+var_1C] mov rdi, rax mov esi, r14d mov edx, ebx mov rcx, r15 call inline_mysql_file_close_cold_1_1 mov eax, [r15] jmp short loc_90DD8
long long inline_mysql_file_close_1(unsigned int a1, long long a2) { long long v2; // rax _BYTE v4[76]; // [rsp+8h] [rbp-68h] BYREF unsigned int v5[7]; // [rsp+54h] [rbp-1Ch] BYREF v2 = ((long long ( *)(_BYTE *, long long, long long))PSI_server[43])(v4, a2, 4LL); if ( !v2 ) return my_close((unsigned int)a2, 0LL); inline_mysql_file_close_cold_1_1(v2, a1, a2, v5); return v5[0]; }
inline_mysql_file_close: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x58 MOV EBX,ESI MOV R14D,EDI LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x68] MOV EDX,0x4 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00190de3 MOV EDI,EBX XOR ESI,ESI CALL 0x001a0515 LAB_00190dd8: ADD RSP,0x58 POP RBX POP R14 POP R15 POP RBP RET LAB_00190de3: LEA R15,[RBP + -0x1c] MOV RDI,RAX MOV ESI,R14D MOV EDX,EBX MOV RCX,R15 CALL 0x0012e834 MOV EAX,dword ptr [R15] JMP 0x00190dd8
ulong inline_mysql_file_close(int4 param_1,ulong param_2) { long lVar1; ulong uVar2; int1 local_70 [76]; uint local_24; lVar1 = (**(code **)(PSI_server + 0x158))(local_70,param_2,4); if (lVar1 == 0) { uVar2 = my_close(param_2 & 0xffffffff,0); } else { inline_mysql_file_close_cold_1(lVar1,param_1,param_2 & 0xffffffff,&local_24); uVar2 = (ulong)local_24; } return uVar2; }
29,375
my_charlen_utf8mb3
eloqsql/strings/ctype-utf8.c
static int my_charlen_utf8mb3(CHARSET_INFO *cs __attribute__((unused)), const uchar *s, const uchar *e) { uchar c; if (s >= e) return MY_CS_TOOSMALL; c= s[0]; if (c < 0xf0) return my_valid_mbcharlen_utf8mb3(s, e); return MY_CS_ILSEQ; }
O3
c
my_charlen_utf8mb3: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rdx, %rsi jae 0x61c77 movb (%rsi), %cl cmpb $-0x11, %cl ja 0x61c75 movl $0x1, %eax testb %cl, %cl jns 0x61c77 cmpb $-0x3e, %cl jae 0x61c79 xorl %eax, %eax popq %rbp retq cmpb $-0x21, %cl ja 0x61c99 leaq 0x2(%rsi), %rcx movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rdx, %rcx ja 0x61c77 xorl %eax, %eax cmpb $-0x40, 0x1(%rsi) setl %al addl %eax, %eax jmp 0x61c77 leaq 0x3(%rsi), %rdi movl $0xffffff99, %eax # imm = 0xFFFFFF99 cmpq %rdx, %rdi ja 0x61c77 movb 0x1(%rsi), %dl cmpb $-0x41, %dl jg 0x61c75 cmpb $-0x41, 0x2(%rsi) movl $0x0, %eax jg 0x61c77 xorl %eax, %eax cmpb $-0x60, %dl setae %al cmpb $-0x20, %cl leal (%rax,%rax,2), %ecx movl $0x3, %eax cmovel %ecx, %eax jmp 0x61c77
my_charlen_utf8mb3: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rsi, rdx jnb short loc_61C77 mov cl, [rsi] cmp cl, 0EFh ja short loc_61C75 mov eax, 1 test cl, cl jns short loc_61C77 cmp cl, 0C2h jnb short loc_61C79 loc_61C75: xor eax, eax loc_61C77: pop rbp retn loc_61C79: cmp cl, 0DFh ja short loc_61C99 lea rcx, [rsi+2] mov eax, 0FFFFFF9Ah cmp rcx, rdx ja short loc_61C77 xor eax, eax cmp byte ptr [rsi+1], 0C0h setl al add eax, eax jmp short loc_61C77 loc_61C99: lea rdi, [rsi+3] mov eax, 0FFFFFF99h cmp rdi, rdx ja short loc_61C77 mov dl, [rsi+1] cmp dl, 0BFh jg short loc_61C75 cmp byte ptr [rsi+2], 0BFh mov eax, 0 jg short loc_61C77 xor eax, eax cmp dl, 0A0h setnb al cmp cl, 0E0h lea ecx, [rax+rax*2] mov eax, 3 cmovz eax, ecx jmp short loc_61C77
long long my_charlen_utf8mb3(long long a1, char *a2, unsigned long long a3) { long long result; // rax char v4; // cl char v5; // dl result = 4294967195LL; if ( (unsigned long long)a2 < a3 ) { v4 = *a2; if ( (unsigned __int8)*a2 > 0xEFu ) return 0LL; result = 1LL; if ( v4 >= 0 ) return result; if ( (unsigned __int8)v4 < 0xC2u ) return 0LL; if ( (unsigned __int8)v4 > 0xDFu ) { result = 4294967193LL; if ( (unsigned long long)(a2 + 3) <= a3 ) { v5 = a2[1]; if ( v5 > -65 ) return 0LL; result = 0LL; if ( a2[2] <= -65 ) { result = 3LL; if ( v4 == -32 ) return 3 * (unsigned int)((unsigned __int8)v5 >= 0xA0u); } } } else { result = 4294967194LL; if ( (unsigned long long)(a2 + 2) <= a3 ) return 2 * (unsigned int)(a2[1] < -64); } } return result; }
my_charlen_utf8mb3: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RSI,RDX JNC 0x00161c77 MOV CL,byte ptr [RSI] CMP CL,0xef JA 0x00161c75 MOV EAX,0x1 TEST CL,CL JNS 0x00161c77 CMP CL,0xc2 JNC 0x00161c79 LAB_00161c75: XOR EAX,EAX LAB_00161c77: POP RBP RET LAB_00161c79: CMP CL,0xdf JA 0x00161c99 LEA RCX,[RSI + 0x2] MOV EAX,0xffffff9a CMP RCX,RDX JA 0x00161c77 XOR EAX,EAX CMP byte ptr [RSI + 0x1],0xc0 SETL AL ADD EAX,EAX JMP 0x00161c77 LAB_00161c99: LEA RDI,[RSI + 0x3] MOV EAX,0xffffff99 CMP RDI,RDX JA 0x00161c77 MOV DL,byte ptr [RSI + 0x1] CMP DL,0xbf JG 0x00161c75 CMP byte ptr [RSI + 0x2],0xbf MOV EAX,0x0 JG 0x00161c77 XOR EAX,EAX CMP DL,0xa0 SETNC AL CMP CL,0xe0 LEA ECX,[RAX + RAX*0x2] MOV EAX,0x3 CMOVZ EAX,ECX JMP 0x00161c77
int my_charlen_utf8mb3(int8 param_1,byte *param_2,byte *param_3) { byte bVar1; if (param_3 <= param_2) { return -0x65; } bVar1 = *param_2; if (bVar1 < 0xf0) { if (-1 < (char)bVar1) { return 1; } if (0xc1 < bVar1) { if (bVar1 < 0xe0) { if (param_3 < param_2 + 2) { return -0x66; } return (uint)((char)param_2[1] < -0x40) * 2; } if (param_3 < param_2 + 3) { return -0x67; } if ((char)param_2[1] < -0x40) { if (-0x41 < (char)param_2[2]) { return 0; } if (bVar1 != 0xe0) { return 3; } return (uint)(0x9f < param_2[1]) * 3; } } } return 0; }
29,376
get_allocr_backend
7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c
static ggml_backend_t get_allocr_backend(ggml_backend_sched_t sched, ggml_tallocr_t allocr) { if (allocr == NULL) { return NULL; } // find highest prio backend that supports the buffer type for (int i = 0; i < sched->n_backends; i++) { if (sched->tallocs[i] == allocr) { return sched->backends[i]; } } GGML_UNREACHABLE(); }
O0
c
get_allocr_backend: movq %rdi, -0x10(%rsp) movq %rsi, -0x18(%rsp) cmpq $0x0, -0x18(%rsp) jne 0x16ae0d movq $0x0, -0x8(%rsp) jmp 0x16ae5d movl $0x0, -0x1c(%rsp) movl -0x1c(%rsp), %eax movq -0x10(%rsp), %rcx cmpl (%rcx), %eax jge 0x16ae5d movq -0x10(%rsp), %rax movslq -0x1c(%rsp), %rcx movq 0x28(%rax,%rcx,8), %rax cmpq -0x18(%rsp), %rax jne 0x16ae4e movq -0x10(%rsp), %rax movslq -0x1c(%rsp), %rcx movq 0x8(%rax,%rcx,8), %rax movq %rax, -0x8(%rsp) jmp 0x16ae5d jmp 0x16ae50 movl -0x1c(%rsp), %eax addl $0x1, %eax movl %eax, -0x1c(%rsp) jmp 0x16ae15 movq -0x8(%rsp), %rax retq nopw %cs:(%rax,%rax) nopl (%rax)
get_allocr_backend: mov [rsp+var_10], rdi mov [rsp+var_18], rsi cmp [rsp+var_18], 0 jnz short loc_16AE0D mov [rsp+var_8], 0 jmp short loc_16AE5D loc_16AE0D: mov [rsp+var_1C], 0 loc_16AE15: mov eax, [rsp+var_1C] mov rcx, [rsp+var_10] cmp eax, [rcx] jge short loc_16AE5D mov rax, [rsp+var_10] movsxd rcx, [rsp+var_1C] mov rax, [rax+rcx*8+28h] cmp rax, [rsp+var_18] jnz short loc_16AE4E mov rax, [rsp+var_10] movsxd rcx, [rsp+var_1C] mov rax, [rax+rcx*8+8] mov [rsp+var_8], rax jmp short loc_16AE5D loc_16AE4E: jmp short $+2 loc_16AE50: mov eax, [rsp+var_1C] add eax, 1 mov [rsp+var_1C], eax jmp short loc_16AE15 loc_16AE5D: mov rax, [rsp+var_8] retn
long long get_allocr_backend(_DWORD *a1, long long a2) { int i; // [rsp+0h] [rbp-1Ch] long long v4; // [rsp+14h] [rbp-8h] if ( !a2 ) return 0LL; for ( i = 0; i < *a1; ++i ) { if ( *(_QWORD *)&a1[2 * i + 10] == a2 ) return *(_QWORD *)&a1[2 * i + 2]; } return v4; }
~allocator: PUSH RAX MOV qword ptr [RSP],RDI MOV RDI,qword ptr [RSP] CALL 0x0016b730 POP RAX RET
/* std::allocator<KarrasSchedule>::~allocator() */ allocator<KarrasSchedule> * __thiscall std::allocator<KarrasSchedule>::~allocator(allocator<KarrasSchedule> *this) { __gnu_cxx::new_allocator<KarrasSchedule>::~new_allocator((new_allocator<KarrasSchedule> *)this); return this; }
29,377
vemit_tap
eloqsql/libmariadb/unittest/mytap/tap.c
static void vemit_tap(int pass, char const *fmt, va_list ap) { fprintf(tapout, "%sok %d%s", pass ? "" : "not ", ++g_test.last, (fmt && *fmt) ? " - " : ""); if (fmt && *fmt) vfprintf(tapout, fmt, ap); }
O0
c
vemit_tap: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq 0x4e00e(%rip), %rax # 0x7dfc8 movq (%rax), %rax movq %rax, -0x30(%rbp) movl -0x4(%rbp), %edx leaq 0x3abd2(%rip), %rax # 0x6ab9d leaq 0x3639e(%rip), %rcx # 0x66370 cmpl $0x0, %edx cmovneq %rcx, %rax movq %rax, -0x28(%rbp) movl 0x51365(%rip), %eax # 0x81348 addl $0x1, %eax movl %eax, -0x20(%rbp) movl %eax, 0x51359(%rip) # 0x81348 xorl %eax, %eax cmpq $0x0, -0x10(%rbp) movb %al, -0x19(%rbp) je 0x3000b movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax setne %al movb %al, -0x19(%rbp) movl -0x20(%rbp), %ecx movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rdi movb -0x19(%rbp), %sil leaq 0x3634f(%rip), %r8 # 0x66370 leaq 0x3ab7a(%rip), %rax # 0x6aba2 testb $0x1, %sil cmovneq %rax, %r8 leaq 0x3ab5c(%rip), %rsi # 0x6ab93 movb $0x0, %al callq 0x14650 cmpq $0x0, -0x10(%rbp) je 0x30068 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax je 0x30068 movq 0x4df70(%rip), %rax # 0x7dfc8 movq (%rax), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x145d0 addq $0x30, %rsp popq %rbp retq nop
vemit_tap: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, cs:stdout_ptr mov rax, [rax] mov [rbp+var_30], rax mov edx, [rbp+var_4] lea rax, aNot; "not " lea rcx, a12+4; "" cmp edx, 0 cmovnz rax, rcx mov [rbp+var_28], rax mov eax, cs:dword_81348 add eax, 1 mov [rbp+var_20], eax mov cs:dword_81348, eax xor eax, eax cmp [rbp+var_10], 0 mov [rbp+var_19], al jz short loc_3000B mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 0 setnz al mov [rbp+var_19], al loc_3000B: mov ecx, [rbp+var_20] mov rdx, [rbp+var_28] mov rdi, [rbp+var_30] mov sil, [rbp+var_19] lea r8, a12+4; "" lea rax, asc_6ABA2; " - " test sil, 1 cmovnz r8, rax lea rsi, aSokDS; "%sok %d%s" mov al, 0 call _fprintf cmp [rbp+var_10], 0 jz short loc_30068 mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 0 jz short loc_30068 mov rax, cs:stdout_ptr mov rdi, [rax] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] call _vfprintf loc_30068: add rsp, 30h pop rbp retn
long long vemit_tap(int a1, _BYTE *a2, long long a3) { const char *v3; // rax const char *v4; // r8 long long result; // rax int v6; // [rsp+10h] [rbp-20h] bool v7; // [rsp+17h] [rbp-19h] v3 = "not "; if ( a1 ) v3 = ""; v6 = ++dword_81348; v7 = 0; if ( a2 ) v7 = *a2 != 0; v4 = ""; if ( v7 ) v4 = " - "; result = fprintf(stdout, "%sok %d%s", v3, v6, v4); if ( a2 ) { result = (unsigned int)(char)*a2; if ( *a2 ) return vfprintf(stdout, a2, a3); } return result; }
vemit_tap: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [0x0017dfc8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX MOV EDX,dword ptr [RBP + -0x4] LEA RAX,[0x16ab9d] LEA RCX,[0x166370] CMP EDX,0x0 CMOVNZ RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV EAX,dword ptr [0x00181348] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX MOV dword ptr [0x00181348],EAX XOR EAX,EAX CMP qword ptr [RBP + -0x10],0x0 MOV byte ptr [RBP + -0x19],AL JZ 0x0013000b MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x19],AL LAB_0013000b: MOV ECX,dword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RBP + -0x30] MOV SIL,byte ptr [RBP + -0x19] LEA R8,[0x166370] LEA RAX,[0x16aba2] TEST SIL,0x1 CMOVNZ R8,RAX LEA RSI,[0x16ab93] MOV AL,0x0 CALL 0x00114650 CMP qword ptr [RBP + -0x10],0x0 JZ 0x00130068 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JZ 0x00130068 MOV RAX,qword ptr [0x0017dfc8] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] CALL 0x001145d0 LAB_00130068: ADD RSP,0x30 POP RBP RET
void vemit_tap(int param_1,char *param_2,__gnuc_va_list param_3) { int *puVar1; int *puVar2; bool bVar3; puVar1 = &DAT_0016ab9d; if (param_1 != 0) { puVar1 = &DAT_00166370; } DAT_00181348 = DAT_00181348 + 1; bVar3 = false; if (param_2 != (char *)0x0) { bVar3 = *param_2 != '\0'; } puVar2 = &DAT_00166370; if (bVar3) { puVar2 = &DAT_0016aba2; } fprintf(*(FILE **)PTR_stdout_0017dfc8,"%sok %d%s",puVar1,(ulong)DAT_00181348,puVar2); if ((param_2 != (char *)0x0) && (*param_2 != '\0')) { vfprintf(*(FILE **)PTR_stdout_0017dfc8,param_2,param_3); } return; }
29,378
inline_mysql_file_fopen
eloqsql/include/mysql/psi/mysql_file.h
static inline MYSQL_FILE* inline_mysql_file_fopen( #ifdef HAVE_PSI_FILE_INTERFACE PSI_file_key key, const char *src_file, uint src_line, #endif const char *filename, int flags, myf myFlags) { MYSQL_FILE *that; that= (MYSQL_FILE*) my_malloc(PSI_NOT_INSTRUMENTED, sizeof(MYSQL_FILE), MYF(MY_WME)); if (likely(that != NULL)) { #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_STREAM_OPEN, filename, that); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line); that->m_file= my_fopen(filename, flags, myFlags); that->m_psi= PSI_FILE_CALL(end_file_open_wait)(locker, that->m_file); if (unlikely(that->m_file == NULL)) { my_free(that); return NULL; } return that; } #endif that->m_psi= NULL; that->m_file= my_fopen(filename, flags, myFlags); if (unlikely(that->m_file == NULL)) { my_free(that); return NULL; } } return that; }
O0
c
inline_mysql_file_fopen: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movl %edi, -0xc(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movl %r8d, -0x2c(%rbp) movq %r9, -0x38(%rbp) xorl %edi, %edi movl $0x10, %edx movq %rdx, %rsi callq 0x281f0 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 0x2d0f9 leaq 0x1a8839(%rip), %rax # 0x1d57e8 movq (%rax), %rax movq 0x148(%rax), %rax movl -0xc(%rbp), %esi movq -0x28(%rbp), %rcx movq -0x40(%rbp), %r8 leaq -0x90(%rbp), %rdi movl $0x3, %edx callq *%rax movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%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 0x2d09b leaq 0x1a87e7(%rip), %rax # 0x1d57e8 movq (%rax), %rax movq 0x1f0(%rax), %rax movq -0x48(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x1c(%rbp), %edx callq *%rax movq -0x28(%rbp), %rdi movl -0x2c(%rbp), %esi movq -0x38(%rbp), %rdx callq 0x30010 movq %rax, %rcx movq -0x40(%rbp), %rax movq %rcx, (%rax) leaq 0x1a87af(%rip), %rax # 0x1d57e8 movq (%rax), %rax movq 0x1f8(%rax), %rax movq -0x48(%rbp), %rdi movq -0x40(%rbp), %rcx movq (%rcx), %rsi callq *%rax movq %rax, %rcx movq -0x40(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x40(%rbp), %rax cmpq $0x0, (%rax) sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x2d091 movq -0x40(%rbp), %rdi callq 0x28570 movq $0x0, -0x8(%rbp) jmp 0x2d101 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x2d101 movq -0x40(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x28(%rbp), %rdi movl -0x2c(%rbp), %esi movq -0x38(%rbp), %rdx callq 0x30010 movq %rax, %rcx movq -0x40(%rbp), %rax movq %rcx, (%rax) movq -0x40(%rbp), %rax cmpq $0x0, (%rax) sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x2d0f7 movq -0x40(%rbp), %rdi callq 0x28570 movq $0x0, -0x8(%rbp) jmp 0x2d101 jmp 0x2d0f9 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x90, %rsp popq %rbp retq nop
inline_mysql_file_fopen: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_C], edi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov [rbp+var_2C], r8d mov [rbp+var_38], r9 xor edi, edi mov edx, 10h mov rsi, rdx call my_malloc 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 loc_2D0F9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+148h] mov esi, [rbp+var_C] mov rcx, [rbp+var_28] mov r8, [rbp+var_40] lea rdi, [rbp+var_90] mov edx, 3 call rax mov [rbp+var_48], rax cmp [rbp+var_48], 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 loc_2D09B lea rax, PSI_server mov rax, [rax] mov rax, [rax+1F0h] mov rdi, [rbp+var_48] mov rsi, [rbp+var_18] mov edx, [rbp+var_1C] call rax mov rdi, [rbp+var_28] mov esi, [rbp+var_2C] mov rdx, [rbp+var_38] call my_fopen mov rcx, rax mov rax, [rbp+var_40] mov [rax], rcx lea rax, PSI_server mov rax, [rax] mov rax, [rax+1F8h] mov rdi, [rbp+var_48] mov rcx, [rbp+var_40] mov rsi, [rcx] call rax mov rcx, rax mov rax, [rbp+var_40] mov [rax+8], rcx mov rax, [rbp+var_40] cmp qword ptr [rax], 0 setz 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_2D091 mov rdi, [rbp+var_40] call my_free mov [rbp+var_8], 0 jmp short loc_2D101 loc_2D091: mov rax, [rbp+var_40] mov [rbp+var_8], rax jmp short loc_2D101 loc_2D09B: mov rax, [rbp+var_40] mov qword ptr [rax+8], 0 mov rdi, [rbp+var_28] mov esi, [rbp+var_2C] mov rdx, [rbp+var_38] call my_fopen mov rcx, rax mov rax, [rbp+var_40] mov [rax], rcx mov rax, [rbp+var_40] cmp qword ptr [rax], 0 setz 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_2D0F7 mov rdi, [rbp+var_40] call my_free mov [rbp+var_8], 0 jmp short loc_2D101 loc_2D0F7: jmp short $+2 loc_2D0F9: mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_2D101: mov rax, [rbp+var_8] add rsp, 90h pop rbp retn
_QWORD * inline_mysql_file_fopen( unsigned int a1, long long a2, unsigned int a3, long long a4, unsigned int a5, long long a6) { long long v6; // rax long long v7; // rax long long v8; // rax _BYTE v10[72]; // [rsp+0h] [rbp-90h] BYREF long long v11; // [rsp+48h] [rbp-48h] _QWORD *v12; // [rsp+50h] [rbp-40h] long long v13; // [rsp+58h] [rbp-38h] unsigned int v14; // [rsp+64h] [rbp-2Ch] long long v15; // [rsp+68h] [rbp-28h] unsigned int v16; // [rsp+74h] [rbp-1Ch] long long v17; // [rsp+78h] [rbp-18h] unsigned int v18; // [rsp+84h] [rbp-Ch] v18 = a1; v17 = a2; v16 = a3; v15 = a4; v14 = a5; v13 = a6; v12 = (_QWORD *)my_malloc(0, 0x10uLL, 16); if ( !v12 ) return v12; v11 = (*((long long ( **)(_BYTE *, _QWORD, long long, long long, _QWORD *))PSI_server + 41))( v10, v18, 3LL, v15, v12); if ( !v11 ) { v12[1] = 0LL; v8 = my_fopen(v15, v14, v13); *v12 = v8; if ( !*v12 ) goto LABEL_4; return v12; } (*((void ( **)(long long, long long, _QWORD))PSI_server + 62))(v11, v17, v16); v6 = my_fopen(v15, v14, v13); *v12 = v6; v7 = (*((long long ( **)(long long, _QWORD))PSI_server + 63))(v11, *v12); v12[1] = v7; if ( *v12 ) return v12; LABEL_4: my_free((long long)v12); return 0LL; }
inline_mysql_file_fopen: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV dword ptr [RBP + -0xc],EDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV dword ptr [RBP + -0x2c],R8D MOV qword ptr [RBP + -0x38],R9 XOR EDI,EDI MOV EDX,0x10 MOV RSI,RDX CALL 0x001281f0 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 0x0012d0f9 LEA RAX,[0x2d57e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x148] MOV ESI,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x28] MOV R8,qword ptr [RBP + -0x40] LEA RDI,[RBP + -0x90] MOV EDX,0x3 CALL RAX MOV qword ptr [RBP + -0x48],RAX CMP qword ptr [RBP + -0x48],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 0x0012d09b LEA RAX,[0x2d57e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1f0] MOV RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x1c] CALL RAX MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0x2c] MOV RDX,qword ptr [RBP + -0x38] CALL 0x00130010 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RCX LEA RAX,[0x2d57e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1f8] MOV RDI,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RCX] CALL RAX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX],0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0012d091 MOV RDI,qword ptr [RBP + -0x40] CALL 0x00128570 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012d101 LAB_0012d091: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX JMP 0x0012d101 LAB_0012d09b: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x8],0x0 MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0x2c] MOV RDX,qword ptr [RBP + -0x38] CALL 0x00130010 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX],0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0012d0f7 MOV RDI,qword ptr [RBP + -0x40] CALL 0x00128570 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012d101 LAB_0012d0f7: JMP 0x0012d0f9 LAB_0012d0f9: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_0012d101: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x90 POP RBP RET
long * inline_mysql_file_fopen (int4 param_1,int8 param_2,int4 param_3,int8 param_4, int4 param_5,int8 param_6) { long lVar1; int1 local_98 [72]; long local_50; long *local_48; int8 local_40; int4 local_34; int8 local_30; int4 local_24; int8 local_20; int4 local_14; local_40 = param_6; local_34 = param_5; local_30 = param_4; local_24 = param_3; local_20 = param_2; local_14 = param_1; local_48 = (long *)my_malloc(0,0x10); if (local_48 != (long *)0x0) { local_50 = (**(code **)(PSI_server + 0x148))(local_98,local_14,3,local_30,local_48); if (local_50 != 0) { (**(code **)(PSI_server + 0x1f0))(local_50,local_20,local_24); lVar1 = my_fopen(local_30,local_34,local_40); *local_48 = lVar1; lVar1 = (**(code **)(PSI_server + 0x1f8))(local_50,*local_48); local_48[1] = lVar1; if (*local_48 == 0) { my_free(local_48); return (long *)0x0; } return local_48; } local_48[1] = 0; lVar1 = my_fopen(local_30,local_34,local_40); *local_48 = lVar1; if (*local_48 == 0) { my_free(local_48); return (long *)0x0; } } return local_48; }
29,379
google::protobuf::compiler::CodeGeneratorRequest* google::protobuf::Arena::CreateMaybeMessage<google::protobuf::compiler::CodeGeneratorRequest>(google::protobuf::Arena*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/plugin.pb.cc
CodeGeneratorRequest::CodeGeneratorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorRequest) }
O3
cpp
google::protobuf::compiler::CodeGeneratorRequest* google::protobuf::Arena::CreateMaybeMessage<google::protobuf::compiler::CodeGeneratorRequest>(google::protobuf::Arena*): pushq %rbx testq %rdi, %rdi je 0x64f17 movq %rdi, %rbx leaq 0x21348a(%rip), %rdx # 0x278368 movl $0x58, %esi callq 0xf9580 movq %rbx, 0x8(%rax) leaq 0x21321d(%rip), %rcx # 0x278110 movq %rcx, (%rax) movq $0x0, 0x10(%rax) movq %rbx, 0x18(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rax) movq %rbx, 0x30(%rax) movups %xmm0, 0x38(%rax) movups %xmm0, 0x48(%rax) jmp 0x64f48 movl $0x58, %edi callq 0x1f4f0 xorl %ecx, %ecx movq %rcx, 0x8(%rax) leaq 0x2131e2(%rip), %rdx # 0x278110 movq %rdx, (%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movups %xmm0, 0x20(%rax) movups %xmm0, 0x30(%rax) movups %xmm0, 0x40(%rax) movq %rcx, 0x50(%rax) leaq 0x21b629(%rip), %rcx # 0x280578 movq %rcx, 0x48(%rax) popq %rbx retq nop
_ZN6google8protobuf5Arena18CreateMaybeMessageINS0_8compiler20CodeGeneratorRequestEJEEEPT_PS1_DpOT0_: push rbx test rdi, rdi jz short loc_64F17 mov rbx, rdi lea rdx, _ZTIN6google8protobuf8compiler20CodeGeneratorRequestE; type_info * mov esi, 58h ; 'X'; unsigned __int64 call _ZN6google8protobuf5Arena23AllocateAlignedWithHookEmPKSt9type_info; google::protobuf::Arena::AllocateAlignedWithHook(ulong,std::type_info const*) mov [rax+8], rbx lea rcx, off_278110 mov [rax], rcx mov qword ptr [rax+10h], 0 mov [rax+18h], rbx xorps xmm0, xmm0 movups xmmword ptr [rax+20h], xmm0 mov [rax+30h], rbx movups xmmword ptr [rax+38h], xmm0 movups xmmword ptr [rax+48h], xmm0 jmp short loc_64F48 loc_64F17: mov edi, 58h ; 'X'; unsigned __int64 call __Znwm; operator new(ulong) xor ecx, ecx mov [rax+8], rcx lea rdx, off_278110 mov [rax], rdx xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 movups xmmword ptr [rax+20h], xmm0 movups xmmword ptr [rax+30h], xmm0 movups xmmword ptr [rax+40h], xmm0 mov [rax+50h], rcx loc_64F48: lea rcx, _ZN6google8protobuf8internal26fixed_address_empty_stringB5cxx11E; google::protobuf::internal::fixed_address_empty_string mov [rax+48h], rcx pop rbx retn
long long google::protobuf::Arena::CreateMaybeMessage<google::protobuf::compiler::CodeGeneratorRequest>( google::protobuf::Arena *a1) { long long result; // rax if ( a1 ) { result = google::protobuf::Arena::AllocateAlignedWithHook( a1, 0x58uLL, (const type_info *)&`typeinfo for'google::protobuf::compiler::CodeGeneratorRequest); *(_QWORD *)(result + 8) = a1; *(_QWORD *)result = off_278110; *(_QWORD *)(result + 16) = 0LL; *(_QWORD *)(result + 24) = a1; *(_OWORD *)(result + 32) = 0LL; *(_QWORD *)(result + 48) = a1; *(_OWORD *)(result + 56) = 0LL; *(_OWORD *)(result + 72) = 0LL; } else { result = operator new(0x58uLL); *(_QWORD *)(result + 8) = 0LL; *(_QWORD *)result = off_278110; *(_OWORD *)(result + 16) = 0LL; *(_OWORD *)(result + 32) = 0LL; *(_OWORD *)(result + 48) = 0LL; *(_OWORD *)(result + 64) = 0LL; *(_QWORD *)(result + 80) = 0LL; } *(_QWORD *)(result + 72) = google::protobuf::internal::fixed_address_empty_string[abi:cxx11]; return result; }
CreateMaybeMessage<google::protobuf::compiler::CodeGeneratorRequest>: PUSH RBX TEST RDI,RDI JZ 0x00164f17 MOV RBX,RDI LEA RDX,[0x378368] MOV ESI,0x58 CALL 0x001f9580 MOV qword ptr [RAX + 0x8],RBX LEA RCX,[0x378110] MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x10],0x0 MOV qword ptr [RAX + 0x18],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x20],XMM0 MOV qword ptr [RAX + 0x30],RBX MOVUPS xmmword ptr [RAX + 0x38],XMM0 MOVUPS xmmword ptr [RAX + 0x48],XMM0 JMP 0x00164f48 LAB_00164f17: MOV EDI,0x58 CALL 0x0011f4f0 XOR ECX,ECX MOV qword ptr [RAX + 0x8],RCX LEA RDX,[0x378110] MOV qword ptr [RAX],RDX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOVUPS xmmword ptr [RAX + 0x20],XMM0 MOVUPS xmmword ptr [RAX + 0x30],XMM0 MOVUPS xmmword ptr [RAX + 0x40],XMM0 MOV qword ptr [RAX + 0x50],RCX LAB_00164f48: LEA RCX,[0x380578] MOV qword ptr [RAX + 0x48],RCX POP RBX RET
/* google::protobuf::compiler::CodeGeneratorRequest* google::protobuf::Arena::CreateMaybeMessage<google::protobuf::compiler::CodeGeneratorRequest>(google::protobuf::Arena*) */ CodeGeneratorRequest * google::protobuf::Arena::CreateMaybeMessage<google::protobuf::compiler::CodeGeneratorRequest> (Arena *param_1) { CodeGeneratorRequest *pCVar1; if (param_1 == (Arena *)0x0) { pCVar1 = (CodeGeneratorRequest *)operator_new(0x58); *(int8 *)(pCVar1 + 8) = 0; *(int ***)pCVar1 = &PTR__CodeGeneratorRequest_00378110; *(int8 *)(pCVar1 + 0x10) = 0; *(int8 *)(pCVar1 + 0x18) = 0; *(int8 *)(pCVar1 + 0x20) = 0; *(int8 *)(pCVar1 + 0x28) = 0; *(int8 *)(pCVar1 + 0x30) = 0; *(int8 *)(pCVar1 + 0x38) = 0; *(int8 *)(pCVar1 + 0x40) = 0; *(int8 *)(pCVar1 + 0x48) = 0; *(int8 *)(pCVar1 + 0x50) = 0; } else { pCVar1 = (CodeGeneratorRequest *)AllocateAlignedWithHook((ulong)param_1,(type_info *)0x58); *(Arena **)(pCVar1 + 8) = param_1; *(int ***)pCVar1 = &PTR__CodeGeneratorRequest_00378110; *(int8 *)(pCVar1 + 0x10) = 0; *(Arena **)(pCVar1 + 0x18) = param_1; *(int8 *)(pCVar1 + 0x20) = 0; *(int8 *)(pCVar1 + 0x28) = 0; *(Arena **)(pCVar1 + 0x30) = param_1; *(int8 *)(pCVar1 + 0x38) = 0; *(int8 *)(pCVar1 + 0x40) = 0; *(int8 *)(pCVar1 + 0x48) = 0; *(int8 *)(pCVar1 + 0x50) = 0; } *(int8 **)(pCVar1 + 0x48) = &internal::fixed_address_empty_string_abi_cxx11_; return pCVar1; }
29,380
minja::Value::operator<(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
bool operator<(const Value & other) const { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (is_number() && other.is_number()) return get<double>() < other.get<double>(); if (is_string() && other.is_string()) return get<std::string>() < other.get<std::string>(); throw std::runtime_error("Cannot compare values: " + dump() + " < " + other.dump()); }
O1
cpp
minja::Value::operator<(minja::Value const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xa8, %rsp movq %rsi, %r14 movq %rdi, %r15 cmpq $0x0, 0x20(%rdi) movb 0x40(%rdi), %al jne 0x9cad1 cmpq $0x0, 0x10(%r15) jne 0x9cad1 testb %al, %al jne 0x9cad1 cmpq $0x0, 0x30(%r15) je 0x9cbcf leal -0x5(%rax), %ecx cmpb $0x2, %cl ja 0x9cb09 movb 0x40(%r14), %cl addb $-0x5, %cl cmpb $0x2, %cl ja 0x9cb09 movq %r15, %rdi callq 0x8b8ac movsd %xmm0, 0x40(%rsp) movq %r14, %rdi callq 0x8b8ac ucomisd 0x40(%rsp), %xmm0 seta %bl jmp 0x9cbbf cmpb $0x3, %al jne 0x9cc01 cmpb $0x3, 0x40(%r14) jne 0x9cc01 leaq 0x20(%rsp), %rdi movq %r15, %rsi callq 0x8c7ec movq %rsp, %rdi movq %r14, %rsi callq 0x8c7ec movq 0x28(%rsp), %r14 movq 0x8(%rsp), %r15 cmpq %r14, %r15 movq %r14, %rdx cmovbq %r15, %rdx testq %rdx, %rdx je 0x9cb5f movq (%rsp), %rsi movq 0x20(%rsp), %rdi callq 0x1b420 movl %eax, %ebx jmp 0x9cb61 xorl %ebx, %ebx testl %ebx, %ebx jne 0x9cb86 subq %r15, %r14 cmpq $-0x7fffffff, %r14 # imm = 0x80000001 movq $-0x80000000, %rbx # imm = 0x80000000 cmovgeq %r14, %rbx movl $0x7fffffff, %eax # imm = 0x7FFFFFFF cmpq %rax, %rbx cmovgeq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9cba1 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b940 shrl $0x1f, %ebx leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9cbbf movq 0x30(%rsp), %rsi incq %rsi callq 0x1b940 movl %ebx, %eax addq $0xa8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1b460 movq %rax, %rbx leaq 0x5a59b(%rip), %rsi # 0xf717e movq %rax, %rdi callq 0x1b340 movq 0x973fe(%rip), %rsi # 0x133ff0 movq 0x97367(%rip), %rdx # 0x133f60 movq %rbx, %rdi callq 0x1bfa0 movl $0x10, %edi callq 0x1b460 movq %rax, %rbx leaq 0x68(%rsp), %rdi movq %r15, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x8b9e2 leaq 0x5b14a(%rip), %rsi # 0xf7d73 leaq 0x88(%rsp), %rdi leaq 0x68(%rsp), %rdx callq 0x7d807 leaq 0x5b149(%rip), %rsi # 0xf7d8b leaq 0x88(%rsp), %rdi callq 0x1c190 leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x9cc70 movups (%rcx), %xmm0 movups %xmm0, (%r15) jmp 0x9cc7c movq %rdx, (%rsp) movq (%rcx), %rdx movq %rdx, 0x10(%rsp) movq 0x8(%rax), %rdx movq %rdx, 0x8(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x48(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x8b9e2 leaq 0x20(%rsp), %rdi movq %rsp, %rsi leaq 0x48(%rsp), %rdx callq 0x7d8d8 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x1bea0 xorl %ebp, %ebp movq 0x9731d(%rip), %rsi # 0x133ff0 movq 0x97286(%rip), %rdx # 0x133f60 movq %rbx, %rdi callq 0x1bfa0 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9cd08 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b940 jmp 0x9cd08 movq %rax, %r14 movb $0x1, %bpl leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9cd2b movq 0x58(%rsp), %rsi incq %rsi callq 0x1b940 jmp 0x9cd2b movq %rax, %r14 movb $0x1, %bpl movq (%rsp), %rdi cmpq %r15, %rdi je 0x9cd49 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b940 jmp 0x9cd49 movq %rax, %r14 movb $0x1, %bpl leaq 0x98(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9cd72 movq 0x98(%rsp), %rsi incq %rsi callq 0x1b940 jmp 0x9cd72 movq %rax, %r14 movb $0x1, %bpl leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9cd95 movq 0x78(%rsp), %rsi incq %rsi callq 0x1b940 jmp 0x9cd95 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl jne 0x9cd9f jmp 0x9cdc7 movq %rax, %r14 movq %rbx, %rdi callq 0x1b6b0 jmp 0x9cdc7 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9cdc7 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b940 movq %r14, %rdi callq 0x1c040 nop
_ZNK5minja5ValueltERKS0_: push rbp push r15 push r14 push rbx sub rsp, 0A8h mov r14, rsi mov r15, rdi cmp qword ptr [rdi+20h], 0 mov al, [rdi+40h] jnz short loc_9CAD1 cmp qword ptr [r15+10h], 0 jnz short loc_9CAD1 test al, al jnz short loc_9CAD1 cmp qword ptr [r15+30h], 0 jz loc_9CBCF loc_9CAD1: lea ecx, [rax-5] cmp cl, 2 ja short loc_9CB09 mov cl, [r14+40h] add cl, 0FBh cmp cl, 2 ja short loc_9CB09 mov rdi, r15 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+0C8h+var_88], xmm0 mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) ucomisd xmm0, [rsp+0C8h+var_88] setnbe bl jmp loc_9CBBF loc_9CB09: cmp al, 3 jnz loc_9CC01 cmp byte ptr [r14+40h], 3 jnz loc_9CC01 lea rdi, [rsp+0C8h+var_A8] mov rsi, r15 call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) mov rdi, rsp mov rsi, r14 call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) mov r14, [rsp+0C8h+var_A0] mov r15, [rsp+0C8h+var_C0] cmp r15, r14 mov rdx, r14 cmovb rdx, r15 test rdx, rdx jz short loc_9CB5F mov rsi, [rsp+0C8h+var_C8] mov rdi, [rsp+0C8h+var_A8] call _memcmp mov ebx, eax jmp short loc_9CB61 loc_9CB5F: xor ebx, ebx loc_9CB61: test ebx, ebx jnz short loc_9CB86 sub r14, r15 cmp r14, 0FFFFFFFF80000001h mov rbx, 0FFFFFFFF80000000h cmovge rbx, r14 mov eax, 7FFFFFFFh cmp rbx, rax cmovge rbx, rax loc_9CB86: lea rax, [rsp+0C8h+var_B8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9CBA1 mov rsi, [rsp+0C8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9CBA1: shr ebx, 1Fh lea rax, [rsp+0C8h+var_98] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9CBBF mov rsi, [rsp+0C8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9CBBF: mov eax, ebx add rsp, 0A8h pop rbx pop r14 pop r15 pop rbp retn loc_9CBCF: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aUndefinedValue; "Undefined value or reference" 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, rbx; void * call ___cxa_throw loc_9CC01: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+0C8h+var_60] mov rsi, r15 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aCannotCompareV; "Cannot compare values: " lea rdi, [rsp+0C8h+var_40] lea rdx, [rsp+0C8h+var_60] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) lea rsi, asc_F7D8B; " < " lea rdi, [rsp+0C8h+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r15, [rsp+0C8h+var_B8] mov [r15-10h], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_9CC70 movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r15], xmm0 jmp short loc_9CC7C loc_9CC70: mov [rsp+0C8h+var_C8], rdx mov rdx, [rcx] mov [rsp+0C8h+var_B8], rdx loc_9CC7C: mov rdx, [rax+8] mov [rsp+0C8h+var_C0], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rdi, [rsp+0C8h+var_80] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rdi, [rsp+0C8h+var_A8] mov rsi, rsp lea rdx, [rsp+0C8h+var_80] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&) mov bpl, 1 lea rsi, [rsp+0C8h+var_A8] 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+0C8h+var_98] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9CD08 mov rsi, [rsp+0C8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9CD08 mov r14, rax mov bpl, 1 loc_9CD08: lea rax, [rsp+0C8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9CD2B mov rsi, [rsp+0C8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9CD2B mov r14, rax mov bpl, 1 loc_9CD2B: mov rdi, [rsp+0C8h+var_C8]; void * cmp rdi, r15 jz short loc_9CD49 mov rsi, [rsp+0C8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9CD49 mov r14, rax mov bpl, 1 loc_9CD49: lea rax, [rsp+0C8h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9CD72 mov rsi, [rsp+0C8h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9CD72 mov r14, rax mov bpl, 1 loc_9CD72: lea rax, [rsp+0C8h+var_50] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9CD95 mov rsi, [rsp+0C8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9CD95 mov r14, rax mov bpl, 1 loc_9CD95: test bpl, bpl jnz short loc_9CD9F jmp short loc_9CDC7 mov r14, rax loc_9CD9F: mov rdi, rbx; void * call ___cxa_free_exception jmp short loc_9CDC7 mov r14, rax lea rax, [rsp+0C8h+var_98] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9CDC7 mov rsi, [rsp+0C8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9CDC7: mov rdi, r14 call __Unwind_Resume
long long minja::Value::operator<(long long a1, long long a2) { unsigned int v2; // ebx char v3; // al unsigned long long v4; // r14 unsigned long long v5; // r15 unsigned long long v6; // rdx long long v7; // rbx long long v8; // r14 std::runtime_error *exception; // rbx void *v11; // rbx long long v12; // rax __int128 *v13; // rcx void *v14; // [rsp+0h] [rbp-C8h] BYREF unsigned long long v15; // [rsp+8h] [rbp-C0h] __int128 v16; // [rsp+10h] [rbp-B8h] BYREF long long *v17; // [rsp+20h] [rbp-A8h] BYREF unsigned long long v18; // [rsp+28h] [rbp-A0h] long long v19; // [rsp+30h] [rbp-98h] BYREF double v20; // [rsp+40h] [rbp-88h] _QWORD v21[2]; // [rsp+48h] [rbp-80h] BYREF _BYTE v22[16]; // [rsp+68h] [rbp-60h] BYREF _BYTE v23[16]; // [rsp+88h] [rbp-40h] BYREF v3 = *(_BYTE *)(a1 + 64); if ( !*(_QWORD *)(a1 + 32) && !*(_QWORD *)(a1 + 16) && !v3 && !*(_QWORD *)(a1 + 48) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Undefined value or reference"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( (unsigned __int8)(v3 - 5) > 2u || (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 2u ) { if ( v3 != 3 || *(_BYTE *)(a2 + 64) != 3 ) { v11 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v22, a1, 0xFFFFFFFF, 0); std::operator+<char>((long long)v23, (long long)"Cannot compare values: ", (long long)v22); v12 = std::string::append(v23, " < "); v14 = &v16; v13 = (__int128 *)(v12 + 16); if ( *(_QWORD *)v12 == v12 + 16 ) { v16 = *v13; } else { v14 = *(void **)v12; *(_QWORD *)&v16 = *(_QWORD *)v13; } v15 = *(_QWORD *)(v12 + 8); *(_QWORD *)v12 = v13; *(_QWORD *)(v12 + 8) = 0LL; *(_BYTE *)(v12 + 16) = 0; minja::Value::dump[abi:cxx11]((long long)v21, a2, 0xFFFFFFFF, 0); std::operator+<char>((long long)&v17, &v14, v21); std::runtime_error::runtime_error(v11, &v17); __cxa_throw( v11, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Value::get<std::string>((long long)&v17, (_QWORD *)a1); minja::Value::get<std::string>((long long)&v14, (_QWORD *)a2); v4 = v18; v5 = v15; v6 = v18; if ( v15 < v18 ) v6 = v15; if ( v6 ) LODWORD(v7) = memcmp(v17, v14); else LODWORD(v7) = 0; if ( !(_DWORD)v7 ) { v8 = v4 - v5; v7 = 0xFFFFFFFF80000000LL; if ( v8 >= -2147483647 ) v7 = v8; if ( v7 >= 0x7FFFFFFF ) LODWORD(v7) = 0x7FFFFFFF; } if ( v14 != &v16 ) operator delete(v14, v16 + 1); v2 = (unsigned int)v7 >> 31; if ( v17 != &v19 ) operator delete(v17, v19 + 1); } else { v20 = minja::Value::get<double>(a1); LOBYTE(v2) = minja::Value::get<double>(a2) > v20; } return v2; }
operator<: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xa8 MOV R14,RSI MOV R15,RDI CMP qword ptr [RDI + 0x20],0x0 MOV AL,byte ptr [RDI + 0x40] JNZ 0x0019cad1 CMP qword ptr [R15 + 0x10],0x0 JNZ 0x0019cad1 TEST AL,AL JNZ 0x0019cad1 CMP qword ptr [R15 + 0x30],0x0 JZ 0x0019cbcf LAB_0019cad1: LEA ECX,[RAX + -0x5] CMP CL,0x2 JA 0x0019cb09 MOV CL,byte ptr [R14 + 0x40] ADD CL,0xfb CMP CL,0x2 JA 0x0019cb09 MOV RDI,R15 CALL 0x0018b8ac MOVSD qword ptr [RSP + 0x40],XMM0 MOV RDI,R14 CALL 0x0018b8ac UCOMISD XMM0,qword ptr [RSP + 0x40] SETA BL JMP 0x0019cbbf LAB_0019cb09: CMP AL,0x3 JNZ 0x0019cc01 CMP byte ptr [R14 + 0x40],0x3 JNZ 0x0019cc01 LEA RDI,[RSP + 0x20] MOV RSI,R15 CALL 0x0018c7ec LAB_0019cb29: MOV RDI,RSP MOV RSI,R14 CALL 0x0018c7ec LAB_0019cb34: MOV R14,qword ptr [RSP + 0x28] MOV R15,qword ptr [RSP + 0x8] CMP R15,R14 MOV RDX,R14 CMOVC RDX,R15 TEST RDX,RDX JZ 0x0019cb5f MOV RSI,qword ptr [RSP] MOV RDI,qword ptr [RSP + 0x20] CALL 0x0011b420 MOV EBX,EAX JMP 0x0019cb61 LAB_0019cb5f: XOR EBX,EBX LAB_0019cb61: TEST EBX,EBX JNZ 0x0019cb86 SUB R14,R15 CMP R14,-0x7fffffff MOV RBX,-0x80000000 CMOVGE RBX,R14 MOV EAX,0x7fffffff CMP RBX,RAX CMOVGE RBX,RAX LAB_0019cb86: LEA RAX,[RSP + 0x10] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0019cba1 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b940 LAB_0019cba1: SHR EBX,0x1f LEA RAX,[RSP + 0x30] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0019cbbf MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011b940 LAB_0019cbbf: MOV EAX,EBX ADD RSP,0xa8 POP RBX POP R14 POP R15 POP RBP RET LAB_0019cbcf: MOV EDI,0x10 CALL 0x0011b460 MOV RBX,RAX LAB_0019cbdc: LEA RSI,[0x1f717e] MOV RDI,RAX CALL 0x0011b340 LAB_0019cbeb: MOV RSI,qword ptr [0x00233ff0] MOV RDX,qword ptr [0x00233f60] MOV RDI,RBX CALL 0x0011bfa0 LAB_0019cc01: MOV EDI,0x10 CALL 0x0011b460 MOV RBX,RAX LAB_0019cc0e: LEA RDI,[RSP + 0x68] MOV RSI,R15 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0018b9e2 LAB_0019cc22: LEA RSI,[0x1f7d73] LEA RDI,[RSP + 0x88] LEA RDX,[RSP + 0x68] CALL 0x0017d807 LAB_0019cc3b: LEA RSI,[0x1f7d8b] LEA RDI,[RSP + 0x88] CALL 0x0011c190 LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x0019cc70 MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R15],XMM0 JMP 0x0019cc7c LAB_0019cc70: MOV qword ptr [RSP],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x10],RDX LAB_0019cc7c: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_0019cc94: LEA RDI,[RSP + 0x48] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0018b9e2 LAB_0019cca8: LEA RDI,[RSP + 0x20] MOV RSI,RSP LEA RDX,[RSP + 0x48] CALL 0x0017d8d8 MOV BPL,0x1 LAB_0019ccbd: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x0011bea0 XOR EBP,EBP MOV RSI,qword ptr [0x00233ff0] MOV RDX,qword ptr [0x00233f60] MOV RDI,RBX CALL 0x0011bfa0
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ ulong __thiscall minja::Value::operator<(Value *this,Value *param_1) { Value VVar1; double dVar2; uint uVar3; runtime_error *prVar4; long *plVar5; long *plVar6; ulong uVar7; int8 unaff_RBX; long *local_c8; ulong local_c0; long local_b8; long lStack_b0; long *local_a8; ulong local_a0; long local_98 [2]; double local_88; int1 local_80 [32]; int1 local_60 [32]; char local_40 [32]; VVar1 = this[0x40]; if ((((*(long *)(this + 0x20) == 0) && (*(long *)(this + 0x10) == 0)) && (VVar1 == (Value)0x0)) && (*(long *)(this + 0x30) == 0)) { prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0019cbdc to 0019cbea has its CatchHandler @ 0019cd9c */ std::runtime_error::runtime_error(prVar4,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_00233ff0,PTR__runtime_error_00233f60); } if (((byte)((char)VVar1 - 5U) < 3) && ((byte)((char)param_1[0x40] - 5U) < 3)) { local_88 = get<double>(this); dVar2 = get<double>(param_1); uVar7 = CONCAT71((int7)((ulong)unaff_RBX >> 8),local_88 < dVar2); } else { if ((VVar1 != (Value)0x3) || (param_1[0x40] != (Value)0x3)) { prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0019cc0e to 0019cc21 has its CatchHandler @ 0019cd8f */ dump_abi_cxx11_((int)local_60,SUB81(this,0)); /* try { // try from 0019cc22 to 0019cc3a has its CatchHandler @ 0019cd6c */ std::operator+(local_40,(string *)"Cannot compare values: "); /* try { // try from 0019cc3b to 0019cc4e has its CatchHandler @ 0019cd43 */ plVar5 = (long *)std::__cxx11::string::append(local_40); local_c8 = (long *)*plVar5; plVar6 = plVar5 + 2; if (local_c8 == plVar6) { local_b8 = *plVar6; lStack_b0 = plVar5[3]; local_c8 = &local_b8; } else { local_b8 = *plVar6; } local_c0 = plVar5[1]; *plVar5 = (long)plVar6; plVar5[1] = 0; *(int1 *)(plVar5 + 2) = 0; /* try { // try from 0019cc94 to 0019cca7 has its CatchHandler @ 0019cd25 */ dump_abi_cxx11_((int)local_80,SUB81(param_1,0)); /* try { // try from 0019cca8 to 0019ccb9 has its CatchHandler @ 0019cd02 */ std::operator+((string *)&local_a8,(string *)&local_c8); /* try { // try from 0019ccbd to 0019cce1 has its CatchHandler @ 0019cce2 */ std::runtime_error::runtime_error(prVar4,(string *)&local_a8); /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_00233ff0,PTR__runtime_error_00233f60); } get<std::__cxx11::string>(); /* try { // try from 0019cb29 to 0019cb33 has its CatchHandler @ 0019cda9 */ get<std::__cxx11::string>(); uVar7 = local_a0; if (local_c0 < local_a0) { uVar7 = local_c0; } if (uVar7 == 0) { uVar7 = 0; } else { uVar3 = memcmp(local_a8,local_c8,uVar7); uVar7 = (ulong)uVar3; } if ((int)uVar7 == 0) { uVar7 = 0xffffffff80000000; if (-0x80000000 < (long)(local_a0 - local_c0)) { uVar7 = local_a0 - local_c0; } if (0x7ffffffe < (long)uVar7) { uVar7 = 0; } } if (local_c8 != &local_b8) { operator_delete(local_c8,local_b8 + 1); } uVar7 = uVar7 >> 0x1f & 1; if (local_a8 != local_98) { operator_delete(local_a8,local_98[0] + 1); } } return uVar7 & 0xffffffff; }
29,381
my_parse_charset_xml
eloqsql/strings/ctype.c
my_bool my_parse_charset_xml(MY_CHARSET_LOADER *loader, const char *buf, size_t len) { MY_XML_PARSER p; struct my_cs_file_info info; my_bool rc; my_charset_file_init(&info); my_xml_parser_create(&p); my_xml_set_enter_handler(&p,cs_enter); my_xml_set_value_handler(&p,cs_value); my_xml_set_leave_handler(&p,cs_leave); info.loader= loader; my_xml_set_user_data(&p, (void *) &info); rc= (my_xml_parse(&p,buf,len) == MY_XML_OK) ? FALSE : TRUE; my_xml_parser_free(&p); my_charset_file_free(&info); if (rc != MY_XML_OK) { const char *errstr= my_xml_error_string(&p); if (sizeof(loader->error) > 32 + strlen(errstr)) { /* We cannot use my_snprintf() here. See previous comment. */ sprintf(loader->error, "at line %d pos %d: %s", my_xml_error_lineno(&p)+1, (int) my_xml_error_pos(&p), my_xml_error_string(&p)); } } return rc; }
O3
c
my_parse_charset_xml: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x928, %rsp # imm = 0x928 movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) leaq -0x260(%rbp), %r15 movl $0xc8, %edx movq %r15, %rdi xorl %esi, %esi callq 0x261c0 xorps %xmm0, %xmm0 movups %xmm0, -0x58(%r15) movups %xmm0, -0x4f(%r15) leaq -0x190(%rbp), %r13 movq %r13, %rdi callq 0x7c9e8 leaq 0x10e(%rip), %rsi # 0x75905 movq %r13, %rdi callq 0x7ca5d leaq 0x1ec(%rip), %rsi # 0x759f2 movq %r13, %rdi callq 0x7ca50 leaq 0x9e5(%rip), %rsi # 0x761fa movq %r13, %rdi callq 0x7ca6a movq %rbx, -0x948(%rbp) movq %rbx, 0xc8(%r15) leaq -0x940(%rbp), %rbx movq %r13, %rdi movq %rbx, %rsi callq 0x7ca77 movq %r13, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x7bf48 movl %eax, %r14d movq %r13, %rdi callq 0x7ca24 movq -0x58(%r15), %rdi movq 0x7a8(%rbx), %rax callq *0x98(%rax) testl %r14d, %r14d je 0x758d9 leaq -0x190(%rbp), %rdi callq 0x7ca84 movq %rax, %rdi callq 0x26150 addq $0x20, %rax cmpq $0x7f, %rax ja 0x758d9 leaq -0x190(%rbp), %rbx movq %rbx, %rdi callq 0x7cac1 leal 0x1(%rax), %r15d movq %rbx, %rdi callq 0x7ca8e movq %rax, %r12 movq %rbx, %rdi callq 0x7ca84 movq %rax, (%rsp) leaq 0xc0e1(%rip), %rcx # 0x8199c movl $0x80, %edx movq -0x948(%rbp), %rdi movl $0x1, %esi movl %r15d, %r8d movl %r12d, %r9d xorl %eax, %eax callq 0x26200 testl %r14d, %r14d setne %al movq %fs:0x28, %rcx cmpq -0x30(%rbp), %rcx jne 0x75900 addq $0x928, %rsp # imm = 0x928 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x263b0
my_parse_charset_xml: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 928h mov r14, rdx mov r12, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax lea r15, [rbp+var_260] mov edx, 0C8h mov rdi, r15 xor esi, esi call _memset xorps xmm0, xmm0 movups xmmword ptr [r15-58h], xmm0 movups xmmword ptr [r15-4Fh], xmm0 lea r13, [rbp+var_190] mov rdi, r13 call my_xml_parser_create lea rsi, cs_enter mov rdi, r13 call my_xml_set_enter_handler lea rsi, cs_value mov rdi, r13 call my_xml_set_value_handler lea rsi, cs_leave mov rdi, r13 call my_xml_set_leave_handler mov [rbp+var_948], rbx mov [r15+0C8h], rbx lea rbx, [rbp+var_940] mov rdi, r13 mov rsi, rbx call my_xml_set_user_data mov rdi, r13 mov rsi, r12 mov rdx, r14 call my_xml_parse mov r14d, eax mov rdi, r13 call my_xml_parser_free mov rdi, [r15-58h] mov rax, [rbx+7A8h] call qword ptr [rax+98h] test r14d, r14d jz short loc_758D9 lea rdi, [rbp+var_190] call my_xml_error_string mov rdi, rax call _strlen add rax, 20h ; ' ' cmp rax, 7Fh ja short loc_758D9 lea rbx, [rbp+var_190] mov rdi, rbx call my_xml_error_lineno lea r15d, [rax+1] mov rdi, rbx call my_xml_error_pos mov r12, rax mov rdi, rbx call my_xml_error_string mov [rsp+950h+var_950], rax lea rcx, aAtLineDPosDS; "at line %d pos %d: %s" mov edx, 80h mov rdi, [rbp+var_948] mov esi, 1 mov r8d, r15d mov r9d, r12d xor eax, eax call ___sprintf_chk loc_758D9: test r14d, r14d setnz al mov rcx, fs:28h cmp rcx, [rbp+var_30] jnz short loc_75900 add rsp, 928h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_75900: call ___stack_chk_fail
bool my_parse_charset_xml(long long a1, long long a2, long long a3) { int v4; // r14d long long v5; // rax int v6; // r15d int v7; // r12d const char *v8; // rax _QWORD v10[220]; // [rsp+10h] [rbp-940h] BYREF _BYTE v11[200]; // [rsp+6F0h] [rbp-260h] BYREF long long v12; // [rsp+7B8h] [rbp-198h] _BYTE v13[352]; // [rsp+7C0h] [rbp-190h] BYREF unsigned long long v14; // [rsp+920h] [rbp-30h] v14 = __readfsqword(0x28u); memset(v11, 0LL, sizeof(v11)); memset(&v10[209], 0, 25); my_xml_parser_create(v13); my_xml_set_enter_handler(v13, cs_enter); my_xml_set_value_handler(v13, cs_value); my_xml_set_leave_handler(v13, cs_leave); v12 = a1; my_xml_set_user_data(v13, v10); v4 = my_xml_parse(v13, a2, a3); my_xml_parser_free(v13); (*(void ( **)(_QWORD))(v12 + 152))(v10[209]); if ( v4 ) { v5 = my_xml_error_string(v13); if ( (unsigned long long)(strlen(v5) + 32) <= 0x7F ) { v6 = my_xml_error_lineno(v13) + 1; v7 = my_xml_error_pos(v13); v8 = (const char *)my_xml_error_string(v13); __sprintf_chk(a1, 1LL, 128LL, "at line %d pos %d: %s", v6, v7, v8); } } return v4 != 0; }
my_parse_charset_xml: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x928 MOV R14,RDX MOV R12,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX LEA R15,[RBP + -0x260] MOV EDX,0xc8 MOV RDI,R15 XOR ESI,ESI CALL 0x001261c0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + -0x58],XMM0 MOVUPS xmmword ptr [R15 + -0x4f],XMM0 LEA R13,[RBP + -0x190] MOV RDI,R13 CALL 0x0017c9e8 LEA RSI,[0x175905] MOV RDI,R13 CALL 0x0017ca5d LEA RSI,[0x1759f2] MOV RDI,R13 CALL 0x0017ca50 LEA RSI,[0x1761fa] MOV RDI,R13 CALL 0x0017ca6a MOV qword ptr [RBP + -0x948],RBX MOV qword ptr [R15 + 0xc8],RBX LEA RBX,[RBP + -0x940] MOV RDI,R13 MOV RSI,RBX CALL 0x0017ca77 MOV RDI,R13 MOV RSI,R12 MOV RDX,R14 CALL 0x0017bf48 MOV R14D,EAX MOV RDI,R13 CALL 0x0017ca24 MOV RDI,qword ptr [R15 + -0x58] MOV RAX,qword ptr [RBX + 0x7a8] CALL qword ptr [RAX + 0x98] TEST R14D,R14D JZ 0x001758d9 LEA RDI,[RBP + -0x190] CALL 0x0017ca84 MOV RDI,RAX CALL 0x00126150 ADD RAX,0x20 CMP RAX,0x7f JA 0x001758d9 LEA RBX,[RBP + -0x190] MOV RDI,RBX CALL 0x0017cac1 LEA R15D,[RAX + 0x1] MOV RDI,RBX CALL 0x0017ca8e MOV R12,RAX MOV RDI,RBX CALL 0x0017ca84 MOV qword ptr [RSP],RAX LEA RCX,[0x18199c] MOV EDX,0x80 MOV RDI,qword ptr [RBP + -0x948] MOV ESI,0x1 MOV R8D,R15D MOV R9D,R12D XOR EAX,EAX CALL 0x00126200 LAB_001758d9: TEST R14D,R14D SETNZ AL MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x30] JNZ 0x00175900 ADD RSP,0x928 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00175900: CALL 0x001263b0
bool my_parse_charset_xml(long param_1,int8 param_2,int8 param_3) { int iVar1; int iVar2; int4 uVar3; char *__s; size_t sVar4; int8 uVar5; long in_FS_OFFSET; int1 local_948 [1672]; int8 local_2c0; int1 uStack_2b8; int7 uStack_2b7; int1 uStack_2b0; int8 uStack_2af; int1 local_268 [200]; long local_1a0; int1 local_198 [352]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); memset(local_268,0,200); local_2c0 = 0; uStack_2b8 = 0; uStack_2b7 = 0; uStack_2b0 = 0; uStack_2af = 0; my_xml_parser_create(local_198); my_xml_set_enter_handler(local_198,cs_enter); my_xml_set_value_handler(local_198,cs_value); my_xml_set_leave_handler(local_198,cs_leave); local_1a0 = param_1; my_xml_set_user_data(local_198,local_948); iVar1 = my_xml_parse(local_198,param_2,param_3); my_xml_parser_free(local_198); (**(code **)(local_1a0 + 0x98))(local_2c0); if (iVar1 != 0) { __s = (char *)my_xml_error_string(local_198); sVar4 = strlen(__s); if (sVar4 + 0x20 < 0x80) { iVar2 = my_xml_error_lineno(local_198); uVar3 = my_xml_error_pos(local_198); uVar5 = my_xml_error_string(local_198); __sprintf_chk(param_1,1,0x80,"at line %d pos %d: %s",iVar2 + 1,uVar3,uVar5); } } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return iVar1 != 0; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
29,382
usage
eloqsql/libmariadb/unittest/libmariadb/my_test.h
static void usage() { printf("Execute test with the following options:\n"); printf("-h hostname\n"); printf("-u username\n"); printf("-p password\n"); printf("-d database\n"); printf("-S socketname\n"); printf("-t force use of TLS\n"); printf("-P port number\n"); printf("? displays this help and exits\n"); }
O3
c
usage: pushq %rbp movq %rsp, %rbp leaq 0x202fb(%rip), %rsi # 0x3776b movl $0x1, %edi xorl %eax, %eax callq 0x13030 leaq 0x20312(%rip), %rsi # 0x37795 movl $0x1, %edi xorl %eax, %eax callq 0x13030 leaq 0x2030c(%rip), %rsi # 0x377a2 movl $0x1, %edi xorl %eax, %eax callq 0x13030 leaq 0x20306(%rip), %rsi # 0x377af movl $0x1, %edi xorl %eax, %eax callq 0x13030 leaq 0x20300(%rip), %rsi # 0x377bc movl $0x1, %edi xorl %eax, %eax callq 0x13030 leaq 0x202fa(%rip), %rsi # 0x377c9 movl $0x1, %edi xorl %eax, %eax callq 0x13030 leaq 0x202f6(%rip), %rsi # 0x377d8 movl $0x1, %edi xorl %eax, %eax callq 0x13030 leaq 0x202f8(%rip), %rsi # 0x377ed movl $0x1, %edi xorl %eax, %eax callq 0x13030 leaq 0x202f5(%rip), %rsi # 0x377fd movl $0x1, %edi xorl %eax, %eax popq %rbp jmp 0x13030
usage: push rbp mov rbp, rsp lea rsi, aExecuteTestWit; "Execute test with the following options"... mov edi, 1 xor eax, eax call ___printf_chk lea rsi, aHHostname; "-h hostname\n" mov edi, 1 xor eax, eax call ___printf_chk lea rsi, aUUsername; "-u username\n" mov edi, 1 xor eax, eax call ___printf_chk lea rsi, aPPassword; "-p password\n" mov edi, 1 xor eax, eax call ___printf_chk lea rsi, aDDatabase; "-d database\n" mov edi, 1 xor eax, eax call ___printf_chk lea rsi, aSSocketname; "-S socketname\n" mov edi, 1 xor eax, eax call ___printf_chk lea rsi, aTForceUseOfTls; "-t force use of TLS\n" mov edi, 1 xor eax, eax call ___printf_chk lea rsi, aPPortNumber; "-P port number\n" mov edi, 1 xor eax, eax call ___printf_chk lea rsi, aDisplaysThisHe; "? displays this help and exits\n" mov edi, 1 xor eax, eax pop rbp jmp ___printf_chk
long long usage() { __printf_chk(1LL, "Execute test with the following options:\n"); __printf_chk(1LL, "-h hostname\n"); __printf_chk(1LL, "-u username\n"); __printf_chk(1LL, "-p password\n"); __printf_chk(1LL, "-d database\n"); __printf_chk(1LL, "-S socketname\n"); __printf_chk(1LL, "-t force use of TLS\n"); __printf_chk(1LL, "-P port number\n"); return __printf_chk(1LL, "? displays this help and exits\n"); }
usage: PUSH RBP MOV RBP,RSP LEA RSI,[0x13776b] MOV EDI,0x1 XOR EAX,EAX CALL 0x00113030 LEA RSI,[0x137795] MOV EDI,0x1 XOR EAX,EAX CALL 0x00113030 LEA RSI,[0x1377a2] MOV EDI,0x1 XOR EAX,EAX CALL 0x00113030 LEA RSI,[0x1377af] MOV EDI,0x1 XOR EAX,EAX CALL 0x00113030 LEA RSI,[0x1377bc] MOV EDI,0x1 XOR EAX,EAX CALL 0x00113030 LEA RSI,[0x1377c9] MOV EDI,0x1 XOR EAX,EAX CALL 0x00113030 LEA RSI,[0x1377d8] MOV EDI,0x1 XOR EAX,EAX CALL 0x00113030 LEA RSI,[0x1377ed] MOV EDI,0x1 XOR EAX,EAX CALL 0x00113030 LEA RSI,[0x1377fd] MOV EDI,0x1 XOR EAX,EAX POP RBP JMP 0x00113030
void usage(void) { __printf_chk(1,"Execute test with the following options:\n"); __printf_chk(1,"-h hostname\n"); __printf_chk(1,"-u username\n"); __printf_chk(1,"-p password\n"); __printf_chk(1,"-d database\n"); __printf_chk(1,"-S socketname\n"); __printf_chk(1,"-t force use of TLS\n"); __printf_chk(1,"-P port number\n"); __printf_chk(1,"? displays this help and exits\n"); return; }
29,383
fmt::v10::detail::bigint::operator<<=(int)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
auto operator<<=(int shift) -> bigint& { FMT_ASSERT(shift >= 0, ""); exp_ += shift / bigit_bits; shift %= bigit_bits; if (shift == 0) return *this; bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { bigit c = bigits_[i] >> (bigit_bits - shift); bigits_[i] = (bigits_[i] << shift) + carry; carry = c; } if (carry != 0) bigits_.push_back(carry); return *this; }
O0
c
fmt::v10::detail::bigint::operator<<=(int): subq $0x48, %rsp movq %rdi, 0x38(%rsp) movl %esi, 0x34(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x8(%rsp) cmpl $0x0, 0x34(%rsp) setge %al andb $0x1, %al movb %al, 0x33(%rsp) leaq 0x33(%rsp), %rdi leaq 0x32cdf8(%rip), %rsi # 0x3e1fa9 callq 0xac150 movl 0x34(%rsp), %eax movl $0x20, %ecx cltd idivl %ecx movl %eax, %ecx movq 0x8(%rsp), %rax addl 0xa0(%rax), %ecx movl %ecx, 0xa0(%rax) movl 0x34(%rsp), %eax movl $0x20, %ecx cltd idivl %ecx movl %edx, 0x34(%rsp) cmpl $0x0, 0x34(%rsp) jne 0xb51fb movq 0x8(%rsp), %rax movq %rax, 0x40(%rsp) jmp 0xb52b3 movq 0x8(%rsp), %rdi movl $0x0, 0x2c(%rsp) movq $0x0, 0x20(%rsp) callq 0xb5dd0 movq %rax, 0x18(%rsp) movq 0x20(%rsp), %rax cmpq 0x18(%rsp), %rax jae 0xb5293 movq 0x8(%rsp), %rdi movq 0x20(%rsp), %rsi callq 0xb6210 movq 0x8(%rsp), %rdi movl (%rax), %eax movl $0x20, %ecx subl 0x34(%rsp), %ecx shrl %cl, %eax movl %eax, 0x14(%rsp) movq 0x20(%rsp), %rsi callq 0xb6210 movq 0x8(%rsp), %rdi movl (%rax), %eax movl 0x34(%rsp), %ecx shll %cl, %eax addl 0x2c(%rsp), %eax movl %eax, 0x4(%rsp) movq 0x20(%rsp), %rsi callq 0xb6210 movl 0x4(%rsp), %ecx movl %ecx, (%rax) movl 0x14(%rsp), %eax movl %eax, 0x2c(%rsp) movq 0x20(%rsp), %rax addq $0x1, %rax movq %rax, 0x20(%rsp) jmp 0xb521b cmpl $0x0, 0x2c(%rsp) je 0xb52a9 movq 0x8(%rsp), %rdi leaq 0x2c(%rsp), %rsi callq 0xb6300 movq 0x8(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax addq $0x48, %rsp retq nopl (%rax)
_ZN3fmt3v106detail6bigintlSEi: sub rsp, 48h mov [rsp+48h+var_10], rdi mov [rsp+48h+var_14], esi mov rax, [rsp+48h+var_10] mov [rsp+48h+var_40], rax cmp [rsp+48h+var_14], 0 setnl al and al, 1 mov [rsp+48h+var_15], al lea rdi, [rsp+48h+var_15] lea rsi, asc_3E1FA8+1; "ࠀ\u0B00" call _ZN3fmt3v106detail13ignore_unusedIJbA1_cEEEvDpRKT_; fmt::v10::detail::ignore_unused<bool,char [1]>(bool,char [1] const&) mov eax, [rsp+48h+var_14] mov ecx, 20h ; ' ' cdq idiv ecx mov ecx, eax mov rax, [rsp+48h+var_40] add ecx, [rax+0A0h] mov [rax+0A0h], ecx mov eax, [rsp+48h+var_14] mov ecx, 20h ; ' ' cdq idiv ecx mov [rsp+48h+var_14], edx cmp [rsp+48h+var_14], 0 jnz short loc_B51FB mov rax, [rsp+48h+var_40] mov [rsp+48h+var_8], rax jmp loc_B52B3 loc_B51FB: mov rdi, [rsp+48h+var_40] mov [rsp+48h+var_1C], 0 mov [rsp+48h+var_28], 0 call _ZNK3fmt3v106detail6bufferIjE4sizeEv; fmt::v10::detail::buffer<uint>::size(void) mov [rsp+48h+var_30], rax loc_B521B: mov rax, [rsp+48h+var_28] cmp rax, [rsp+48h+var_30] jnb short loc_B5293 mov rdi, [rsp+48h+var_40] mov rsi, [rsp+48h+var_28] call _ZN3fmt3v106detail6bufferIjEixImEERjT_; fmt::v10::detail::buffer<uint>::operator[]<ulong>(ulong) mov rdi, [rsp+48h+var_40] mov eax, [rax] mov ecx, 20h ; ' ' sub ecx, [rsp+48h+var_14] shr eax, cl mov [rsp+48h+var_34], eax mov rsi, [rsp+48h+var_28] call _ZN3fmt3v106detail6bufferIjEixImEERjT_; fmt::v10::detail::buffer<uint>::operator[]<ulong>(ulong) mov rdi, [rsp+48h+var_40] mov eax, [rax] mov ecx, [rsp+48h+var_14] shl eax, cl add eax, [rsp+48h+var_1C] mov [rsp+48h+var_44], eax mov rsi, [rsp+48h+var_28] call _ZN3fmt3v106detail6bufferIjEixImEERjT_; fmt::v10::detail::buffer<uint>::operator[]<ulong>(ulong) mov ecx, [rsp+48h+var_44] mov [rax], ecx mov eax, [rsp+48h+var_34] mov [rsp+48h+var_1C], eax mov rax, [rsp+48h+var_28] add rax, 1 mov [rsp+48h+var_28], rax jmp short loc_B521B loc_B5293: cmp [rsp+48h+var_1C], 0 jz short loc_B52A9 mov rdi, [rsp+48h+var_40] lea rsi, [rsp+48h+var_1C] call _ZN3fmt3v106detail6bufferIjE9push_backERKj; fmt::v10::detail::buffer<uint>::push_back(uint const&) loc_B52A9: mov rax, [rsp+48h+var_40] mov [rsp+48h+var_8], rax loc_B52B3: mov rax, [rsp+48h+var_8] add rsp, 48h retn
long long fmt::v10::detail::bigint::operator<<=(long long a1, int a2) { int v3; // [rsp+4h] [rbp-44h] int v4; // [rsp+14h] [rbp-34h] unsigned long long v5; // [rsp+18h] [rbp-30h] unsigned long long v6; // [rsp+20h] [rbp-28h] int v7; // [rsp+2Ch] [rbp-1Ch] BYREF bool v8; // [rsp+33h] [rbp-15h] int v9; // [rsp+34h] [rbp-14h] long long v10; // [rsp+38h] [rbp-10h] v10 = a1; v9 = a2; v8 = a2 >= 0; fmt::v10::detail::ignore_unused<bool,char [1]>(); *(_DWORD *)(a1 + 160) += a2 / 32; v9 %= 32; if ( !v9 ) return a1; v7 = 0; v6 = 0LL; v5 = fmt::v10::detail::buffer<unsigned int>::size(a1, (char *)asc_3E1FA8 + 1); while ( v6 < v5 ) { v4 = *(_DWORD *)fmt::v10::detail::buffer<unsigned int>::operator[]<unsigned long>(a1, v6) >> (32 - v9); v3 = v7 + (*(_DWORD *)fmt::v10::detail::buffer<unsigned int>::operator[]<unsigned long>(a1, v6) << v9); *(_DWORD *)fmt::v10::detail::buffer<unsigned int>::operator[]<unsigned long>(a1, v6) = v3; v7 = v4; ++v6; } if ( v7 ) fmt::v10::detail::buffer<unsigned int>::push_back(a1, &v7); return a1; }
operator<<=: SUB RSP,0x48 MOV qword ptr [RSP + 0x38],RDI MOV dword ptr [RSP + 0x34],ESI MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x8],RAX CMP dword ptr [RSP + 0x34],0x0 SETGE AL AND AL,0x1 MOV byte ptr [RSP + 0x33],AL LEA RDI,[RSP + 0x33] LEA RSI,[0x4e1fa9] CALL 0x001ac150 MOV EAX,dword ptr [RSP + 0x34] MOV ECX,0x20 CDQ IDIV ECX MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x8] ADD ECX,dword ptr [RAX + 0xa0] MOV dword ptr [RAX + 0xa0],ECX MOV EAX,dword ptr [RSP + 0x34] MOV ECX,0x20 CDQ IDIV ECX MOV dword ptr [RSP + 0x34],EDX CMP dword ptr [RSP + 0x34],0x0 JNZ 0x001b51fb MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x40],RAX JMP 0x001b52b3 LAB_001b51fb: MOV RDI,qword ptr [RSP + 0x8] MOV dword ptr [RSP + 0x2c],0x0 MOV qword ptr [RSP + 0x20],0x0 CALL 0x001b5dd0 MOV qword ptr [RSP + 0x18],RAX LAB_001b521b: MOV RAX,qword ptr [RSP + 0x20] CMP RAX,qword ptr [RSP + 0x18] JNC 0x001b5293 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x20] CALL 0x001b6210 MOV RDI,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX] MOV ECX,0x20 SUB ECX,dword ptr [RSP + 0x34] SHR EAX,CL MOV dword ptr [RSP + 0x14],EAX MOV RSI,qword ptr [RSP + 0x20] CALL 0x001b6210 MOV RDI,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX] MOV ECX,dword ptr [RSP + 0x34] SHL EAX,CL ADD EAX,dword ptr [RSP + 0x2c] MOV dword ptr [RSP + 0x4],EAX MOV RSI,qword ptr [RSP + 0x20] CALL 0x001b6210 MOV ECX,dword ptr [RSP + 0x4] MOV dword ptr [RAX],ECX MOV EAX,dword ptr [RSP + 0x14] MOV dword ptr [RSP + 0x2c],EAX MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x1 MOV qword ptr [RSP + 0x20],RAX JMP 0x001b521b LAB_001b5293: CMP dword ptr [RSP + 0x2c],0x0 JZ 0x001b52a9 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[RSP + 0x2c] CALL 0x001b6300 LAB_001b52a9: MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x40],RAX LAB_001b52b3: MOV RAX,qword ptr [RSP + 0x40] ADD RSP,0x48 RET
/* fmt::v10::detail::bigint::TEMPNAMEPLACEHOLDERVALUE(int) */ bigint * __thiscall fmt::v10::detail::bigint::operator<<=(bigint *this,int param_1) { uint uVar1; char cVar2; uint uVar3; ulong uVar4; uint *puVar5; ulong local_28; uint local_1c; bool local_15; int local_14; bigint *local_10; local_15 = -1 < param_1; local_14 = param_1; local_10 = this; ignore_unused<bool,char[1]>(&local_15,""); *(int *)(this + 0xa0) = local_14 / 0x20 + *(int *)(this + 0xa0); local_14 = local_14 % 0x20; if (local_14 != 0) { local_1c = 0; local_28 = 0; uVar4 = buffer<unsigned_int>::size((buffer<unsigned_int> *)this); for (; local_28 < uVar4; local_28 = local_28 + 1) { puVar5 = buffer<unsigned_int>::operator[]<unsigned_long> ((buffer<unsigned_int> *)this,local_28); uVar1 = *puVar5; cVar2 = (char)local_14; puVar5 = buffer<unsigned_int>::operator[]<unsigned_long> ((buffer<unsigned_int> *)this,local_28); uVar3 = (*puVar5 << ((byte)local_14 & 0x1f)) + local_1c; puVar5 = buffer<unsigned_int>::operator[]<unsigned_long> ((buffer<unsigned_int> *)this,local_28); *puVar5 = uVar3; local_1c = uVar1 >> (0x20U - cVar2 & 0x1f); } if (local_1c != 0) { buffer<unsigned_int>::push_back((buffer<unsigned_int> *)this,&local_1c); } } return this; }
29,384
fmt::v10::detail::bigint::operator<<=(int)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
auto operator<<=(int shift) -> bigint& { FMT_ASSERT(shift >= 0, ""); exp_ += shift / bigit_bits; shift %= bigit_bits; if (shift == 0) return *this; bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { bigit c = bigits_[i] >> (bigit_bits - shift); bigits_[i] = (bigits_[i] << shift) + carry; carry = c; } if (carry != 0) bigits_.push_back(carry); return *this; }
O3
c
fmt::v10::detail::bigint::operator<<=(int): pushq %rbp pushq %rbx pushq %rax movq %rdi, %rbx leal 0x1f(%rsi), %eax testl %esi, %esi cmovnsl %esi, %eax movl %eax, %ecx sarl $0x5, %ecx addl %ecx, 0xa0(%rdi) andl $-0x20, %eax subl %eax, %esi je 0x3c738 movq 0x10(%rbx), %rdx testq %rdx, %rdx je 0x3c738 movq 0x8(%rbx), %rdi movl $0x20, %eax subl %esi, %eax xorl %r8d, %r8d xorl %ebp, %ebp movl %ebp, %r9d movl (%rdi,%r8,4), %r10d movl %r10d, %ebp movl %eax, %ecx shrl %cl, %ebp movl %esi, %ecx shll %cl, %r10d addl %r9d, %r10d movl %r10d, (%rdi,%r8,4) incq %r8 cmpq %r8, %rdx jne 0x3c6ed testl %ebp, %ebp je 0x3c738 leaq 0x1(%rdx), %rsi cmpq %rsi, 0x18(%rbx) jae 0x3c72d movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rdx leaq 0x1(%rdx), %rsi movq 0x8(%rbx), %rax movq %rsi, 0x10(%rbx) movl %ebp, (%rax,%rdx,4) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %rbp retq
_ZN3fmt3v106detail6bigintlSEi: push rbp push rbx push rax mov rbx, rdi lea eax, [rsi+1Fh] test esi, esi cmovns eax, esi mov ecx, eax sar ecx, 5 add [rdi+0A0h], ecx and eax, 0FFFFFFE0h sub esi, eax jz short loc_3C738 mov rdx, [rbx+10h] test rdx, rdx jz short loc_3C738 mov rdi, [rbx+8] mov eax, 20h ; ' ' sub eax, esi xor r8d, r8d xor ebp, ebp loc_3C6ED: mov r9d, ebp mov r10d, [rdi+r8*4] mov ebp, r10d mov ecx, eax shr ebp, cl mov ecx, esi shl r10d, cl add r10d, r9d mov [rdi+r8*4], r10d inc r8 cmp rdx, r8 jnz short loc_3C6ED test ebp, ebp jz short loc_3C738 lea rsi, [rdx+1] cmp [rbx+18h], rsi jnb short loc_3C72D mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rdx, [rbx+10h] lea rsi, [rdx+1] loc_3C72D: mov rax, [rbx+8] mov [rbx+10h], rsi mov [rax+rdx*4], ebp loc_3C738: mov rax, rbx add rsp, 8 pop rbx pop rbp retn
long long fmt::v10::detail::bigint::operator<<=(long long a1, int a2) { int v2; // eax int v4; // esi long long v5; // rdx long long v6; // rdi long long v7; // r8 int v8; // ebp int v9; // r9d long long v10; // rsi long long v11; // rax *(_DWORD *)(a1 + 160) += a2 / 32; v4 = a2 - (v2 & 0xFFFFFFE0); if ( v4 ) { v5 = *(_QWORD *)(a1 + 16); if ( v5 ) { v6 = *(_QWORD *)(a1 + 8); v7 = 0LL; v8 = 0; do { v9 = v8; v8 = *(_DWORD *)(v6 + 4 * v7) >> (32 - v4); *(_DWORD *)(v6 + 4 * v7) = v9 + (*(_DWORD *)(v6 + 4 * v7) << v4); ++v7; } while ( v5 != v7 ); if ( v8 ) { v10 = v5 + 1; if ( *(_QWORD *)(a1 + 24) < (unsigned long long)(v5 + 1) ) { (**(void ( ***)(long long))a1)(a1); v5 = *(_QWORD *)(a1 + 16); v10 = v5 + 1; } v11 = *(_QWORD *)(a1 + 8); *(_QWORD *)(a1 + 16) = v10; *(_DWORD *)(v11 + 4 * v5) = v8; } } } return a1; }
operator<<=: PUSH RBP PUSH RBX PUSH RAX MOV RBX,RDI LEA EAX,[RSI + 0x1f] TEST ESI,ESI CMOVNS EAX,ESI MOV ECX,EAX SAR ECX,0x5 ADD dword ptr [RDI + 0xa0],ECX AND EAX,0xffffffe0 SUB ESI,EAX JZ 0x0013c738 MOV RDX,qword ptr [RBX + 0x10] TEST RDX,RDX JZ 0x0013c738 MOV RDI,qword ptr [RBX + 0x8] MOV EAX,0x20 SUB EAX,ESI XOR R8D,R8D XOR EBP,EBP LAB_0013c6ed: MOV R9D,EBP MOV R10D,dword ptr [RDI + R8*0x4] MOV EBP,R10D MOV ECX,EAX SHR EBP,CL MOV ECX,ESI SHL R10D,CL ADD R10D,R9D MOV dword ptr [RDI + R8*0x4],R10D INC R8 CMP RDX,R8 JNZ 0x0013c6ed TEST EBP,EBP JZ 0x0013c738 LEA RSI,[RDX + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x0013c72d MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RDX,qword ptr [RBX + 0x10] LEA RSI,[RDX + 0x1] LAB_0013c72d: MOV RAX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV dword ptr [RAX + RDX*0x4],EBP LAB_0013c738: MOV RAX,RBX ADD RSP,0x8 POP RBX POP RBP RET
/* fmt::v10::detail::bigint::TEMPNAMEPLACEHOLDERVALUE(int) */ bigint * __thiscall fmt::v10::detail::bigint::operator<<=(bigint *this,int param_1) { uint uVar1; long lVar2; byte bVar3; byte bVar4; int iVar5; long lVar6; uint uVar7; uint uVar8; ulong uVar9; long lVar10; iVar5 = param_1 + 0x1f; if (-1 < param_1) { iVar5 = param_1; } *(int *)(this + 0xa0) = *(int *)(this + 0xa0) + (iVar5 >> 5); if ((param_1 % 0x20 != 0) && (lVar6 = *(long *)(this + 0x10), lVar6 != 0)) { lVar2 = *(long *)(this + 8); bVar4 = (byte)(param_1 % 0x20); lVar10 = 0; uVar7 = 0; do { uVar1 = *(uint *)(lVar2 + lVar10 * 4); bVar3 = 0x20 - bVar4 & 0x1f; uVar8 = uVar1 >> bVar3; *(uint *)(lVar2 + lVar10 * 4) = (uVar1 << (bVar4 & 0x1f)) + uVar7; lVar10 = lVar10 + 1; uVar7 = uVar8; } while (lVar6 != lVar10); if (uVar1 >> bVar3 != 0) { uVar9 = lVar6 + 1; if (*(ulong *)(this + 0x18) < uVar9) { (*(code *)**(int8 **)this)(this); lVar6 = *(long *)(this + 0x10); uVar9 = lVar6 + 1; } *(ulong *)(this + 0x10) = uVar9; *(uint *)(*(long *)(this + 8) + lVar6 * 4) = uVar8; } } return this; }
29,385
splash_init_filename(char const*)
untodesu[P]voxelius/game/shared/splash.cc
static void splash_init_filename(const char *filename) { if(auto file = PHYSFS_openRead(filename)) { auto source = std::string(PHYSFS_fileLength(file), char(0x00)); PHYSFS_readBytes(file, source.data(), source.size()); PHYSFS_close(file); std::string line; std::istringstream stream(source); while(std::getline(stream, line)) splash_lines.push_back(sanitize_line(line)); splash_random.seed(std::random_device()()); } else { splash_lines.push_back(fmt::format("{}: {}", filename, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()))); splash_random.seed(std::random_device()()); } }
O0
cpp
splash_init_filename(char const*): pushq %rbp movq %rsp, %rbp subq $0x29c0, %rsp # imm = 0x29C0 movq %rdi, -0x20(%rbp) movq -0x20(%rbp), %rdi callq 0x28a600 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) je 0x16aed7 movq -0x28(%rbp), %rdi callq 0x28b1f0 movq %rax, -0x2978(%rbp) leaq -0x49(%rbp), %rdi movq %rdi, -0x2970(%rbp) callq 0x2d1c0 movq -0x2978(%rbp), %rsi movq -0x2970(%rbp), %rcx leaq -0x48(%rbp), %rdi xorl %edx, %edx callq 0x417e0 jmp 0x16acd2 leaq -0x49(%rbp), %rdi callq 0x2d620 movq -0x28(%rbp), %rax movq %rax, -0x2988(%rbp) leaq -0x48(%rbp), %rdi movq %rdi, -0x2990(%rbp) callq 0x2c1a0 movq -0x2990(%rbp), %rdi movq %rax, -0x2980(%rbp) callq 0x2c5d0 movq -0x2988(%rbp), %rdi movq -0x2980(%rbp), %rsi movq %rax, %rdx callq 0x28aaa0 jmp 0x16ad21 movq -0x28(%rbp), %rdi callq 0x28a840 jmp 0x16ad2c leaq -0x80(%rbp), %rdi callq 0x2c6d0 leaq -0x200(%rbp), %rdi leaq -0x48(%rbp), %rsi movl $0x8, %edx callq 0x2c920 jmp 0x16ad4c jmp 0x16ad4e leaq -0x200(%rbp), %rdi leaq -0x80(%rbp), %rsi callq 0x2c990 movq %rax, -0x2998(%rbp) jmp 0x16ad67 movq -0x2998(%rbp), %rdi movq (%rdi), %rax movq -0x18(%rax), %rax addq %rax, %rdi callq 0x2c720 movb %al, -0x2999(%rbp) jmp 0x16ad85 movb -0x2999(%rbp), %al testb $0x1, %al jne 0x16ad94 jmp 0x16ae33 leaq -0x220(%rbp), %rdi leaq -0x80(%rbp), %rsi callq 0x16b100 jmp 0x16ada6 leaq 0x3a67eb(%rip), %rdi # 0x511598 leaq -0x220(%rbp), %rsi callq 0xf6030 jmp 0x16adbb leaq -0x220(%rbp), %rdi callq 0x2d648 jmp 0x16ad4e movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) leaq -0x49(%rbp), %rdi callq 0x2d620 jmp 0x16afec movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) jmp 0x16aec9 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) jmp 0x16aec0 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) jmp 0x16aeb4 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) leaq -0x220(%rbp), %rdi callq 0x2d648 jmp 0x16aeb4 leaq -0x15a8(%rbp), %rdi callq 0xf28c0 jmp 0x16ae41 leaq -0x15a8(%rbp), %rdi callq 0xf2960 movl %eax, -0x29a0(%rbp) jmp 0x16ae55 movl -0x29a0(%rbp), %eax movl %eax, %eax movl %eax, %esi leaq 0x3a5d6a(%rip), %rdi # 0x510bd0 callq 0xf2800 jmp 0x16ae6d leaq -0x15a8(%rbp), %rdi callq 0xf2980 leaq -0x200(%rbp), %rdi callq 0x2ca40 leaq -0x80(%rbp), %rdi callq 0x2d648 leaq -0x48(%rbp), %rdi callq 0x2d648 jmp 0x16afe3 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) leaq -0x15a8(%rbp), %rdi callq 0xf2980 leaq -0x200(%rbp), %rdi callq 0x2ca40 leaq -0x80(%rbp), %rdi callq 0x2d648 leaq -0x48(%rbp), %rdi callq 0x2d648 jmp 0x16afec leaq -0x15d8(%rbp), %rax movq %rax, -0x10(%rbp) leaq 0x250a2d(%rip), %rax # 0x3bb916 movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x317c0 movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) callq 0x2860d0 movl %eax, %edi callq 0x2861d0 movq %rax, -0x15e0(%rbp) movq -0x15d8(%rbp), %rsi movq -0x15d0(%rbp), %rdx leaq -0x15c8(%rbp), %rdi movq %rdi, -0x29a8(%rbp) leaq -0x20(%rbp), %rcx leaq -0x15e0(%rbp), %r8 callq 0x16b220 movq -0x29a8(%rbp), %rsi leaq 0x3a6649(%rip), %rdi # 0x511598 callq 0xf6030 jmp 0x16af56 leaq -0x15c8(%rbp), %rdi callq 0x2d648 leaq -0x2968(%rbp), %rdi movq %rdi, -0x29b8(%rbp) callq 0xf28c0 movq -0x29b8(%rbp), %rdi callq 0xf2960 movl %eax, -0x29ac(%rbp) jmp 0x16af89 movl -0x29ac(%rbp), %eax movl %eax, %eax movl %eax, %esi leaq 0x3a5c36(%rip), %rdi # 0x510bd0 callq 0xf2800 jmp 0x16afa1 leaq -0x2968(%rbp), %rdi callq 0xf2980 jmp 0x16afe3 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) leaq -0x15c8(%rbp), %rdi callq 0x2d648 jmp 0x16afec movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) leaq -0x2968(%rbp), %rdi callq 0xf2980 jmp 0x16afec addq $0x29c0, %rsp # imm = 0x29C0 popq %rbp retq movq -0x58(%rbp), %rdi callq 0x2cbe0 nopw %cs:(%rax,%rax)
_ZL20splash_init_filenamePKc: push rbp mov rbp, rsp sub rsp, 29C0h mov [rbp+var_20], rdi mov rdi, [rbp+var_20] call PHYSFS_openRead mov [rbp+var_28], rax cmp [rbp+var_28], 0 jz loc_16AED7 mov rdi, [rbp+var_28] call PHYSFS_fileLength mov [rbp+var_2978], rax lea rdi, [rbp+var_49] mov [rbp+var_2970], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rsi, [rbp+var_2978] mov rcx, [rbp+var_2970] lea rdi, [rbp+var_48] xor edx, edx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_; std::string::basic_string<std::allocator<char>>(ulong,char,std::allocator<char> const&) jmp short $+2 loc_16ACD2: lea rdi, [rbp+var_49] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rax, [rbp+var_28] mov [rbp+var_2988], rax lea rdi, [rbp+var_48] mov [rbp+var_2990], rdi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv; std::string::data(void) mov rdi, [rbp+var_2990] mov [rbp+var_2980], rax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdi, [rbp+var_2988] mov rsi, [rbp+var_2980] mov rdx, rax call PHYSFS_readBytes jmp short $+2 loc_16AD21: mov rdi, [rbp+var_28] call PHYSFS_close jmp short $+2 loc_16AD2C: lea rdi, [rbp+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) lea rdi, [rbp+var_200] lea rsi, [rbp+var_48] mov edx, 8 call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode) jmp short $+2 loc_16AD4C: jmp short $+2 loc_16AD4E: lea rdi, [rbp+var_200] lea rsi, [rbp+var_80] call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &) mov [rbp+var_2998], rax jmp short $+2 loc_16AD67: mov rdi, [rbp+var_2998] mov rax, [rdi] mov rax, [rax-18h] add rdi, rax call __ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv; std::ios::operator bool(void) mov [rbp+var_2999], al jmp short $+2 loc_16AD85: mov al, [rbp+var_2999] test al, 1 jnz short loc_16AD94 jmp loc_16AE33 loc_16AD94: lea rdi, [rbp+var_220] lea rsi, [rbp+var_80] call _ZL13sanitize_lineRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; sanitize_line(std::string const&) jmp short $+2 loc_16ADA6: lea rdi, _ZL12splash_linesB5cxx11; splash_lines lea rsi, [rbp+var_220] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&) jmp short $+2 loc_16ADBB: lea rdi, [rbp+var_220]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_16AD4E mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax lea rdi, [rbp+var_49] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_16AFEC mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax jmp loc_16AEC9 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax jmp loc_16AEC0 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax jmp loc_16AEB4 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax lea rdi, [rbp+var_220]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_16AEB4 loc_16AE33: lea rdi, [rbp+var_15A8]; this call _ZNSt13random_deviceC2Ev; std::random_device::random_device(void) jmp short $+2 loc_16AE41: lea rdi, [rbp+var_15A8] call _ZNSt13random_deviceclEv; std::random_device::operator()(void) mov [rbp+var_29A0], eax jmp short $+2 loc_16AE55: mov eax, [rbp+var_29A0] mov eax, eax mov esi, eax lea rdi, _ZL13splash_random; splash_random call _ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EE4seedEm; std::mersenne_twister_engine<ulong,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>::seed(ulong) jmp short $+2 loc_16AE6D: lea rdi, [rbp+var_15A8]; this call _ZNSt13random_deviceD2Ev; std::random_device::~random_device() lea rdi, [rbp+var_200] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream() lea rdi, [rbp+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_16AFE3 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax lea rdi, [rbp+var_15A8]; this call _ZNSt13random_deviceD2Ev; std::random_device::~random_device() loc_16AEB4: lea rdi, [rbp+var_200] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream() loc_16AEC0: lea rdi, [rbp+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_16AEC9: lea rdi, [rbp+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_16AFEC loc_16AED7: lea rax, [rbp+var_15D8] mov [rbp+var_10], rax lea rax, aResource+0Ah; "{}: {}" mov [rbp+var_18], rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call _ZN3fmt3v1117basic_string_viewIcEC2EPKc; fmt::v11::basic_string_view<char>::basic_string_view(char const*) mov rax, [rbp+var_18] mov [rbp+var_8], rax call PHYSFS_getLastErrorCode mov edi, eax call PHYSFS_getErrorByCode mov [rbp+var_15E0], rax mov rsi, [rbp+var_15D8] mov rdx, [rbp+var_15D0] lea rdi, [rbp+var_15C8] mov [rbp+var_29A8], rdi lea rcx, [rbp+var_20] lea r8, [rbp+var_15E0] call _ZN3fmt3v116formatIJRPKcS3_EEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOSD_; fmt::v11::format<char const*&,char const*>(fmt::v11::basic_format_string<char,fmt::v11::type_identity<char const*&,char const*>::type>,char const*&,char const*&&) mov rsi, [rbp+var_29A8] lea rdi, _ZL12splash_linesB5cxx11; splash_lines call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&) jmp short $+2 loc_16AF56: lea rdi, [rbp+var_15C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_2968]; this mov [rbp+var_29B8], rdi call _ZNSt13random_deviceC2Ev; std::random_device::random_device(void) mov rdi, [rbp+var_29B8] call _ZNSt13random_deviceclEv; std::random_device::operator()(void) mov [rbp+var_29AC], eax jmp short $+2 loc_16AF89: mov eax, [rbp+var_29AC] mov eax, eax mov esi, eax lea rdi, _ZL13splash_random; splash_random call _ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EE4seedEm; std::mersenne_twister_engine<ulong,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>::seed(ulong) jmp short $+2 loc_16AFA1: lea rdi, [rbp+var_2968]; this call _ZNSt13random_deviceD2Ev; std::random_device::~random_device() jmp short loc_16AFE3 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax lea rdi, [rbp+var_15C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_16AFEC mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax lea rdi, [rbp+var_2968]; this call _ZNSt13random_deviceD2Ev; std::random_device::~random_device() jmp short loc_16AFEC loc_16AFE3: add rsp, 29C0h pop rbp retn loc_16AFEC: mov rdi, [rbp+var_58] call __Unwind_Resume
void splash_init_filename(const char *a1, long long a2) { long long v2; // rax unsigned int LastErrorCode; // eax unsigned int v4; // [rsp+14h] [rbp-29ACh] unsigned int v5; // [rsp+20h] [rbp-29A0h] _QWORD *v6; // [rsp+28h] [rbp-2998h] long long v7; // [rsp+38h] [rbp-2988h] long long v8; // [rsp+40h] [rbp-2980h] long long v9; // [rsp+48h] [rbp-2978h] _BYTE v10[5000]; // [rsp+58h] [rbp-2968h] BYREF long long ErrorByCode; // [rsp+13E0h] [rbp-15E0h] BYREF _QWORD v12[2]; // [rsp+13E8h] [rbp-15D8h] BYREF _BYTE v13[32]; // [rsp+13F8h] [rbp-15C8h] BYREF _BYTE v14[5000]; // [rsp+1418h] [rbp-15A8h] BYREF _BYTE v15[32]; // [rsp+27A0h] [rbp-220h] BYREF _BYTE v16[384]; // [rsp+27C0h] [rbp-200h] BYREF _BYTE v17[36]; // [rsp+2940h] [rbp-80h] BYREF char v18; // [rsp+2977h] [rbp-49h] BYREF _BYTE v19[32]; // [rsp+2978h] [rbp-48h] BYREF long long v20; // [rsp+2998h] [rbp-28h] const char *v21; // [rsp+29A0h] [rbp-20h] BYREF char *v22; // [rsp+29A8h] [rbp-18h] _QWORD *v23; // [rsp+29B0h] [rbp-10h] char *v24; // [rsp+29B8h] [rbp-8h] v21 = a1; v20 = PHYSFS_openRead(a1); if ( v20 ) { v9 = PHYSFS_fileLength(v20); std::allocator<char>::allocator(&v18, a2); std::string::basic_string<std::allocator<char>>((long long)v19, v9, 0, (long long)&v18); std::allocator<char>::~allocator(&v18); v7 = v20; v8 = std::string::data(v19); v2 = std::string::size(v19); PHYSFS_readBytes(v7, v8, v2); PHYSFS_close(v20); std::string::basic_string(v17); std::istringstream::basic_istringstream(v16, v19, 8LL); while ( 1 ) { v6 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v16, v17); if ( (std::ios::operator bool((char *)v6 + *(_QWORD *)(*v6 - 24LL)) & 1) == 0 ) break; sanitize_line(v15, v17); std::vector<std::string>::push_back((long long)&splash_lines[abi:cxx11], (long long)v15); std::string::~string(v15); } std::random_device::random_device((std::random_device *)v14, (long long)v17); v5 = std::random_device::operator()((std::random_device *)v14); std::mersenne_twister_engine<unsigned long,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>::seed( splash_random, v5); std::random_device::~random_device((std::random_device *)v14); std::istringstream::~istringstream(v16); std::string::~string(v17); std::string::~string(v19); } else { v23 = v12; v22 = "{}: {}"; fmt::v11::basic_string_view<char>::basic_string_view(v12, (long long)"{}: {}"); v24 = v22; LastErrorCode = PHYSFS_getLastErrorCode(v12, "{}: {}"); ErrorByCode = PHYSFS_getErrorByCode(LastErrorCode); fmt::v11::format<char const*&,char const*>(v13, v12[0], v12[1], &v21, &ErrorByCode); std::vector<std::string>::push_back((long long)&splash_lines[abi:cxx11], (long long)v13); std::string::~string(v13); std::random_device::random_device((std::random_device *)v10, (long long)v13); v4 = std::random_device::operator()((std::random_device *)v10); std::mersenne_twister_engine<unsigned long,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>::seed( splash_random, v4); std::random_device::~random_device((std::random_device *)v10); } }
_Destroy<entt::delegate<void(ChunkCreateEvent&)>*>: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0016aca0 ADD RSP,0x10 POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* void std::_Destroy<entt::delegate<void (ChunkCreateEvent&)>*>(entt::delegate<void (ChunkCreateEvent&)>*, entt::delegate<void (ChunkCreateEvent&)>*) */ void std::_Destroy<entt::delegate<void(ChunkCreateEvent&)>*>(delegate *param_1,delegate *param_2) { _Destroy_aux<true>::__destroy<entt::delegate<void(ChunkCreateEvent&)>*>(param_1,param_2); return; }
29,386
splash_init_filename(char const*)
untodesu[P]voxelius/game/shared/splash.cc
static void splash_init_filename(const char *filename) { if(auto file = PHYSFS_openRead(filename)) { auto source = std::string(PHYSFS_fileLength(file), char(0x00)); PHYSFS_readBytes(file, source.data(), source.size()); PHYSFS_close(file); std::string line; std::istringstream stream(source); while(std::getline(stream, line)) splash_lines.push_back(sanitize_line(line)); splash_random.seed(std::random_device()()); } else { splash_lines.push_back(fmt::format("{}: {}", filename, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()))); splash_random.seed(std::random_device()()); } }
O1
cpp
splash_init_filename(char const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1548, %rsp # imm = 0x1548 movq %rdi, %r14 callq 0x1361eb testq %rax, %rax je 0x7eaad movq %rax, %rbx movq %rax, %rdi callq 0x1367d5 leaq 0x10(%rsp), %rcx movq %rcx, -0x10(%rcx) movq %rsp, %rdi movq %rax, %rsi xorl %edx, %edx callq 0x26a10 movq (%rsp), %rsi movq 0x8(%rsp), %rdx movq %rbx, %rdi callq 0x1364f9 movq %rbx, %rdi callq 0x1363bc leaq 0x30(%rsp), %rax movq %rax, -0x10(%rax) movq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x40(%rsp), %rbx movq %rsp, %rsi movq %rbx, %rdi movl $0x8, %edx callq 0x26ef0 leaq 0x1d0(%rsp), %r13 leaq 0x1c0(%rsp), %r12 movq 0x40(%rsp), %rax movq -0x18(%rax), %rdi addq %rbx, %rdi movl $0xa, %esi callq 0x26870 movsbl %al, %edx movq %rbx, %rdi leaq 0x20(%rsp), %rsi callq 0x270b0 movq (%rax), %rcx movq -0x18(%rcx), %rcx testb $0x5, 0x20(%rax,%rcx) jne 0x7e9db movq %r13, 0x1c0(%rsp) movq $0x0, 0x1c8(%rsp) movb $0x0, 0x1d0(%rsp) movq 0x28(%rsp), %rbp testq %rbp, %rbp je 0x7e9a6 movq 0x20(%rsp), %r15 xorl %r14d, %r14d movzbl (%r15,%r14), %eax cmpl $0xa, %eax je 0x7e99e cmpl $0xd, %eax je 0x7e99e movsbl %al, %esi movq %r12, %rdi callq 0x26750 incq %r14 cmpq %r14, %rbp jne 0x7e984 leaq 0x1e29ab(%rip), %rdi # 0x261358 movq %r12, %rsi callq 0x5ed14 movq 0x1c0(%rsp), %rdi cmpq %r13, %rdi je 0x7e91e movq 0x1d0(%rsp), %rsi incq %rsi callq 0x268d0 jmp 0x7e91e leaq 0x1c0(%rsp), %rdi callq 0x5d2fc leaq 0x1c0(%rsp), %rdi callq 0x26c20 movabsq $0x5851f42d4c957f2d, %rcx # imm = 0x5851F42D4C957F2D movl %eax, %edi movq %rdi, 0x1e1f88(%rip) # 0x260990 movl $0x1, %eax leaq 0x1e1f7c(%rip), %rdx # 0x260990 movq %rdi, %rsi shrq $0x3e, %rsi xorq %rdi, %rsi imulq %rcx, %rsi addq %rax, %rsi movq %rsi, (%rdx,%rax,8) incq %rax movq %rsi, %rdi cmpq $0x138, %rax # imm = 0x138 jne 0x7ea17 movq $0x138, 0x1e290e(%rip) # imm = 0x138 leaq 0x1c0(%rsp), %rdi callq 0x26840 movq 0x1dc512(%rip), %rsi # 0x25af68 leaq 0x40(%rsp), %rdi callq 0x26c90 leaq 0xb8(%rsp), %rdi callq 0x26280 movq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x7ea89 movq 0x30(%rsp), %rsi incq %rsi callq 0x268d0 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x7eb82 movq 0x10(%rsp), %rsi incq %rsi callq 0x268d0 jmp 0x7eb82 callq 0x133295 movl %eax, %edi callq 0x133310 leaq 0x1c0(%rsp), %r8 movq %r14, (%r8) movq %rax, 0x10(%r8) leaq 0x164c79(%rip), %rsi # 0x1e3748 leaq 0x40(%rsp), %rbx movl $0x6, %edx movl $0xcc, %ecx movq %rbx, %rdi callq 0x147c0b leaq 0x1e286b(%rip), %rdi # 0x261358 movq %rbx, %rsi callq 0x5ed14 leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7eb10 movq 0x50(%rsp), %rsi incq %rsi callq 0x268d0 leaq 0x1c0(%rsp), %rbx movq %rbx, %rdi callq 0x5d2fc movq %rbx, %rdi callq 0x26c20 movabsq $0x5851f42d4c957f2d, %rcx # imm = 0x5851F42D4C957F2D movl %eax, %edi movq %rdi, 0x1e1e55(%rip) # 0x260990 movl $0x1, %eax leaq 0x1e1e49(%rip), %rdx # 0x260990 movq %rdi, %rsi shrq $0x3e, %rsi xorq %rdi, %rsi imulq %rcx, %rsi addq %rax, %rsi movq %rsi, (%rdx,%rax,8) incq %rax movq %rsi, %rdi cmpq $0x138, %rax # imm = 0x138 jne 0x7eb4a movq $0x138, 0x1e27db(%rip) # imm = 0x138 leaq 0x1c0(%rsp), %rdi callq 0x26840 addq $0x1548, %rsp # imm = 0x1548 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x7ebe0 movq %rax, %rbx leaq 0x1c0(%rsp), %rdi callq 0x26840 jmp 0x7ec78 jmp 0x7ebe0 movq %rax, %rbx leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7ec78 movq 0x50(%rsp), %rsi jmp 0x7ec70 jmp 0x7ebe0 movq %rax, %rbx leaq 0x1c0(%rsp), %rdi callq 0x26840 jmp 0x7ec23 movq %rax, %rdi callq 0x3011f jmp 0x7ebfe movq %rax, %rbx jmp 0x7ec41 movq %rax, %rbx jmp 0x7ec78 movq %rax, %rbx jmp 0x7ec5d jmp 0x7ec03 movq %rax, %rbx jmp 0x7ec23 movq %rax, %rbx movq 0x1c0(%rsp), %rdi cmpq %r13, %rdi je 0x7ec23 movq 0x1d0(%rsp), %rsi incq %rsi callq 0x268d0 movq 0x1dc33e(%rip), %rsi # 0x25af68 leaq 0x40(%rsp), %rdi callq 0x26c90 leaq 0xb8(%rsp), %rdi callq 0x26280 movq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x7ec5d movq 0x30(%rsp), %rsi incq %rsi callq 0x268d0 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x7ec78 movq 0x10(%rsp), %rsi incq %rsi callq 0x268d0 movq %rbx, %rdi callq 0x26fe0
_ZL20splash_init_filenamePKc: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1548h mov r14, rdi call PHYSFS_openRead test rax, rax jz loc_7EAAD mov rbx, rax mov rdi, rax call PHYSFS_fileLength lea rcx, [rsp+1578h+var_1568] mov [rcx-10h], rcx mov rdi, rsp mov rsi, rax xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) mov rsi, [rsp+1578h+var_1578] mov rdx, [rsp+1578h+var_1570] mov rdi, rbx call PHYSFS_readBytes mov rdi, rbx call PHYSFS_close lea rax, [rsp+1578h+var_1548] mov [rax-10h], rax mov qword ptr [rax-8], 0 mov byte ptr [rax], 0 lea rbx, [rsp+1578h+var_1538] mov rsi, rsp mov rdi, rbx mov edx, 8 call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode) lea r13, [rsp+1578h+var_13A8] lea r12, [rsp+1578h+var_13B8] loc_7E91E: mov rax, [rsp+1578h+var_1538] mov rdi, [rax-18h] add rdi, rbx mov esi, 0Ah call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char) movsx edx, al mov rdi, rbx lea rsi, [rsp+1578h+var_1558] call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &,char) mov rcx, [rax] mov rcx, [rcx-18h] test byte ptr [rax+rcx+20h], 5 jnz loc_7E9DB mov [rsp+1578h+var_13B8], r13 mov [rsp+1578h+var_13B0], 0 mov byte ptr [rsp+1578h+var_13A8], 0 mov rbp, [rsp+1578h+var_1550] test rbp, rbp jz short loc_7E9A6 mov r15, [rsp+1578h+var_1558] xor r14d, r14d loc_7E984: movzx eax, byte ptr [r15+r14] cmp eax, 0Ah jz short loc_7E99E cmp eax, 0Dh jz short loc_7E99E movsx esi, al mov rdi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) loc_7E99E: inc r14 cmp rbp, r14 jnz short loc_7E984 loc_7E9A6: lea rdi, _ZL12splash_linesB5cxx11; splash_lines mov rsi, r12 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, [rsp+1578h+var_13B8]; void * cmp rdi, r13 jz loc_7E91E mov rsi, [rsp+1578h+var_13A8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_7E91E loc_7E9DB: lea rdi, [rsp+1578h+var_13B8]; this call _ZNSt13random_deviceC2Ev; std::random_device::random_device(void) lea rdi, [rsp+1578h+var_13B8]; this call __ZNSt13random_device9_M_getvalEv; std::random_device::_M_getval(void) mov rcx, 5851F42D4C957F2Dh mov edi, eax mov cs:_ZL13splash_random, rdi; splash_random mov eax, 1 lea rdx, _ZL13splash_random; splash_random mov rsi, rdi loc_7EA17: shr rsi, 3Eh xor rsi, rdi imul rsi, rcx add rsi, rax mov [rdx+rax*8], rsi inc rax mov rdi, rsi cmp rax, 138h jnz short loc_7EA17 mov cs:qword_261350, 138h lea rdi, [rsp+1578h+var_13B8]; this call __ZNSt13random_device7_M_finiEv; std::random_device::_M_fini(void) mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1578h+var_1538] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream() lea rdi, [rsp+1578h+var_14C0]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, [rsp+1578h+var_1558]; void * lea rax, [rsp+1578h+var_1548] cmp rdi, rax jz short loc_7EA89 mov rsi, [rsp+1578h+var_1548] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7EA89: mov rdi, [rsp+1578h+var_1578]; void * lea rax, [rsp+1578h+var_1568] cmp rdi, rax jz loc_7EB82 mov rsi, [rsp+1578h+var_1568] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_7EB82 loc_7EAAD: call PHYSFS_getLastErrorCode mov edi, eax call PHYSFS_getErrorByCode lea r8, [rsp+1578h+var_13B8] mov [r8], r14 mov [r8+10h], rax lea rsi, aResource+0Ah; "{}: {}" lea rbx, [rsp+1578h+var_1538] mov edx, 6 mov ecx, 0CCh mov rdi, rbx call _ZN3fmt3v117vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_7contextEEE; fmt::v11::vformat(fmt::v11::basic_string_view<char>,fmt::v11::basic_format_args<fmt::v11::context>) lea rdi, _ZL12splash_linesB5cxx11; splash_lines mov rsi, rbx call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) lea rax, [rsp+1578h+var_1528] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7EB10 mov rsi, [rsp+1578h+var_1528] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7EB10: lea rbx, [rsp+1578h+var_13B8] mov rdi, rbx; this call _ZNSt13random_deviceC2Ev; std::random_device::random_device(void) mov rdi, rbx; this call __ZNSt13random_device9_M_getvalEv; std::random_device::_M_getval(void) mov rcx, 5851F42D4C957F2Dh mov edi, eax mov cs:_ZL13splash_random, rdi; splash_random mov eax, 1 lea rdx, _ZL13splash_random; splash_random mov rsi, rdi loc_7EB4A: shr rsi, 3Eh xor rsi, rdi imul rsi, rcx add rsi, rax mov [rdx+rax*8], rsi inc rax mov rdi, rsi cmp rax, 138h jnz short loc_7EB4A mov cs:qword_261350, 138h lea rdi, [rsp+1578h+var_13B8]; this call __ZNSt13random_device7_M_finiEv; std::random_device::_M_fini(void) loc_7EB82: add rsp, 1548h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_7EBE0 mov rbx, rax lea rdi, [rsp+1578h+var_13B8]; this call __ZNSt13random_device7_M_finiEv; std::random_device::_M_fini(void) jmp loc_7EC78 jmp short loc_7EBE0 mov rbx, rax lea rax, [rsp+1578h+var_1528] mov rdi, [rax-10h] cmp rdi, rax jz loc_7EC78 mov rsi, [rsp+1578h+var_1528] jmp loc_7EC70 jmp short loc_7EBE0 mov rbx, rax lea rdi, [rsp+1578h+var_13B8]; this call __ZNSt13random_device7_M_finiEv; std::random_device::_M_fini(void) jmp short loc_7EC23 loc_7EBE0: mov rdi, rax call __clang_call_terminate jmp short loc_7EBFE mov rbx, rax jmp short loc_7EC41 mov rbx, rax jmp loc_7EC78 mov rbx, rax jmp short loc_7EC5D jmp short loc_7EC03 loc_7EBFE: mov rbx, rax jmp short loc_7EC23 loc_7EC03: mov rbx, rax mov rdi, [rsp+1578h+var_13B8]; void * cmp rdi, r13 jz short loc_7EC23 mov rsi, [rsp+1578h+var_13A8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7EC23: mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1578h+var_1538] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream() lea rdi, [rsp+1578h+var_14C0]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() loc_7EC41: mov rdi, [rsp+1578h+var_1558]; void * lea rax, [rsp+1578h+var_1548] cmp rdi, rax jz short loc_7EC5D mov rsi, [rsp+1578h+var_1548] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7EC5D: mov rdi, [rsp+1578h+var_1578]; void * lea rax, [rsp+1578h+var_1568] cmp rdi, rax jz short loc_7EC78 mov rsi, [rsp+1578h+var_1568] loc_7EC70: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7EC78: mov rdi, rbx call __Unwind_Resume
void splash_init_filename(const char *a1) { long long v1; // rax long long v2; // rbx long long v3; // rax double v4; // xmm0_8 char v5; // al _QWORD *v6; // rax long long v7; // rbp unsigned __int8 *v8; // r15 long long v9; // r14 int v10; // eax long long v11; // rdi long long v12; // rax unsigned long long v13; // rsi unsigned int LastErrorCode; // eax int v15; // r9d long long v16; // rdi long long v17; // rax unsigned long long v18; // rsi void *v19[2]; // [rsp+0h] [rbp-1578h] BYREF _QWORD v20[2]; // [rsp+10h] [rbp-1568h] BYREF void *v21; // [rsp+20h] [rbp-1558h] BYREF long long v22; // [rsp+28h] [rbp-1550h] _QWORD v23[2]; // [rsp+30h] [rbp-1548h] BYREF void *v24[2]; // [rsp+40h] [rbp-1538h] BYREF long long v25; // [rsp+50h] [rbp-1528h] BYREF _BYTE v26[264]; // [rsp+B8h] [rbp-14C0h] BYREF void *v27[2]; // [rsp+1C0h] [rbp-13B8h] BYREF _QWORD v28[629]; // [rsp+1D0h] [rbp-13A8h] BYREF v1 = PHYSFS_openRead(a1); if ( v1 ) { v2 = v1; v3 = PHYSFS_fileLength(v1); v19[0] = v20; v4 = std::string::_M_construct(v19, v3, 0LL); PHYSFS_readBytes(v2, v19[0], v19[1], v4); PHYSFS_close(v2); v21 = v23; v22 = 0LL; LOBYTE(v23[0]) = 0; std::istringstream::basic_istringstream(v24, v19, 8LL); while ( 1 ) { v5 = std::ios::widen((char *)v24 + *((_QWORD *)v24[0] - 3), 10LL); v6 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v24, &v21, (unsigned int)v5); if ( (*((_BYTE *)v6 + *(_QWORD *)(*v6 - 24LL) + 32) & 5) != 0 ) break; v27[0] = v28; v27[1] = 0LL; LOBYTE(v28[0]) = 0; v7 = v22; if ( v22 ) { v8 = (unsigned __int8 *)v21; v9 = 0LL; do { v10 = v8[v9]; if ( v10 != 10 && v10 != 13 ) std::string::push_back(v27, (unsigned int)(char)v10); ++v9; } while ( v7 != v9 ); } std::vector<std::string>::emplace_back<std::string>((long long)&splash_lines[abi:cxx11], (long long)v27); if ( v27[0] != v28 ) operator delete(v27[0], v28[0] + 1LL); } std::random_device::random_device((std::random_device *)v27); v11 = (unsigned int)std::random_device::_M_getval((std::random_device *)v27); splash_random[0] = v11; v12 = 1LL; v13 = v11; do { v13 = v12 + 0x5851F42D4C957F2DLL * (v11 ^ (v13 >> 62)); splash_random[v12++] = v13; v11 = v13; } while ( v12 != 312 ); qword_261350 = 312LL; std::random_device::_M_fini((std::random_device *)v27); std::istringstream::~istringstream(v24, &`VTT for'std::istringstream); std::ios_base::~ios_base((std::ios_base *)v26); if ( v21 != v23 ) operator delete(v21, v23[0] + 1LL); if ( v19[0] != v20 ) operator delete(v19[0], v20[0] + 1LL); } else { LastErrorCode = PHYSFS_getLastErrorCode(); v27[0] = (void *)a1; v28[0] = PHYSFS_getErrorByCode(LastErrorCode); fmt::v11::vformat[abi:cxx11]((unsigned int)v24, (unsigned int)"{}: {}", 6, 204, (unsigned int)v27, v15); std::vector<std::string>::emplace_back<std::string>((long long)&splash_lines[abi:cxx11], (long long)v24); if ( v24[0] != &v25 ) operator delete(v24[0], v25 + 1); std::random_device::random_device((std::random_device *)v27); v16 = (unsigned int)std::random_device::_M_getval((std::random_device *)v27); splash_random[0] = v16; v17 = 1LL; v18 = v16; do { v18 = v17 + 0x5851F42D4C957F2DLL * (v16 ^ (v18 >> 62)); splash_random[v17++] = v18; v16 = v18; } while ( v17 != 312 ); qword_261350 = 312LL; std::random_device::_M_fini((std::random_device *)v27); } }
splash_init_filename: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1548 MOV R14,RDI CALL 0x002361eb TEST RAX,RAX JZ 0x0017eaad MOV RBX,RAX MOV RDI,RAX CALL 0x002367d5 LEA RCX,[RSP + 0x10] MOV qword ptr [RCX + -0x10],RCX LAB_0017e8bf: MOV RDI,RSP MOV RSI,RAX XOR EDX,EDX CALL 0x00126a10 MOV RSI,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] LAB_0017e8d5: MOV RDI,RBX CALL 0x002364f9 MOV RDI,RBX CALL 0x002363bc LEA RAX,[RSP + 0x30] MOV qword ptr [RAX + -0x10],RAX MOV qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 LAB_0017e8f9: LEA RBX,[RSP + 0x40] MOV RSI,RSP MOV RDI,RBX MOV EDX,0x8 CALL 0x00126ef0 LEA R13,[RSP + 0x1d0] LEA R12,[RSP + 0x1c0] LAB_0017e91e: MOV RAX,qword ptr [RSP + 0x40] MOV RDI,qword ptr [RAX + -0x18] ADD RDI,RBX LAB_0017e92a: MOV ESI,0xa CALL 0x00126870 MOVSX EDX,AL MOV RDI,RBX LEA RSI,[RSP + 0x20] CALL 0x001270b0 MOV RCX,qword ptr [RAX] MOV RCX,qword ptr [RCX + -0x18] TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5 JNZ 0x0017e9db MOV qword ptr [RSP + 0x1c0],R13 MOV qword ptr [RSP + 0x1c8],0x0 MOV byte ptr [RSP + 0x1d0],0x0 MOV RBP,qword ptr [RSP + 0x28] TEST RBP,RBP JZ 0x0017e9a6 MOV R15,qword ptr [RSP + 0x20] XOR R14D,R14D LAB_0017e984: MOVZX EAX,byte ptr [R15 + R14*0x1] CMP EAX,0xa JZ 0x0017e99e CMP EAX,0xd JZ 0x0017e99e LAB_0017e993: MOVSX ESI,AL MOV RDI,R12 CALL 0x00126750 LAB_0017e99e: INC R14 CMP RBP,R14 JNZ 0x0017e984 LAB_0017e9a6: LEA RDI,[0x361358] MOV RSI,R12 CALL 0x0015ed14 MOV RDI,qword ptr [RSP + 0x1c0] CMP RDI,R13 JZ 0x0017e91e MOV RSI,qword ptr [RSP + 0x1d0] INC RSI CALL 0x001268d0 JMP 0x0017e91e LAB_0017e9db: LEA RDI,[RSP + 0x1c0] CALL 0x0015d2fc LAB_0017e9e8: LEA RDI,[RSP + 0x1c0] CALL 0x00126c20 MOV RCX,0x5851f42d4c957f2d MOV EDI,EAX MOV qword ptr [0x00360990],RDI MOV EAX,0x1 LEA RDX,[0x360990] MOV RSI,RDI LAB_0017ea17: SHR RSI,0x3e XOR RSI,RDI IMUL RSI,RCX ADD RSI,RAX MOV qword ptr [RDX + RAX*0x8],RSI INC RAX MOV RDI,RSI CMP RAX,0x138 JNZ 0x0017ea17 MOV qword ptr [0x00361350],0x138 LAB_0017ea42: LEA RDI,[RSP + 0x1c0] CALL 0x00126840 LAB_0017ea4f: MOV RSI,qword ptr [0x0035af68] LEA RDI,[RSP + 0x40] CALL 0x00126c90 LEA RDI,[RSP + 0xb8] CALL 0x00126280 MOV RDI,qword ptr [RSP + 0x20] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x0017ea89 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x001268d0 LAB_0017ea89: MOV RDI,qword ptr [RSP] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x0017eb82 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x001268d0 JMP 0x0017eb82 LAB_0017eaad: CALL 0x00233295 MOV EDI,EAX CALL 0x00233310 LEA R8,[RSP + 0x1c0] MOV qword ptr [R8],R14 MOV qword ptr [R8 + 0x10],RAX LEA RSI,[0x2e3748] LEA RBX,[RSP + 0x40] MOV EDX,0x6 MOV ECX,0xcc MOV RDI,RBX CALL 0x00247c0b LAB_0017eae6: LEA RDI,[0x361358] MOV RSI,RBX CALL 0x0015ed14 LAB_0017eaf5: LEA RAX,[RSP + 0x50] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0017eb10 MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x001268d0 LAB_0017eb10: LEA RBX,[RSP + 0x1c0] MOV RDI,RBX CALL 0x0015d2fc LAB_0017eb20: MOV RDI,RBX CALL 0x00126c20 MOV RCX,0x5851f42d4c957f2d MOV EDI,EAX MOV qword ptr [0x00360990],RDI MOV EAX,0x1 LEA RDX,[0x360990] MOV RSI,RDI LAB_0017eb4a: SHR RSI,0x3e XOR RSI,RDI IMUL RSI,RCX ADD RSI,RAX MOV qword ptr [RDX + RAX*0x8],RSI INC RAX MOV RDI,RSI CMP RAX,0x138 JNZ 0x0017eb4a MOV qword ptr [0x00361350],0x138 LAB_0017eb75: LEA RDI,[RSP + 0x1c0] CALL 0x00126840 LAB_0017eb82: ADD RSP,0x1548 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* splash_init_filename(char const*) */ void splash_init_filename(char *param_1) { int1 *puVar1; char cVar2; uint uVar3; int4 uVar4; long lVar5; istream *piVar6; ulong uVar7; long lVar8; long *local_1578; int8 local_1570; long local_1568 [2]; int1 *local_1558; long local_1550; int1 local_1548; int7 uStack_1547; long *local_1538 [2]; long local_1528 [13]; ios_base local_14c0 [264]; ulong *local_13b8; int8 local_13b0; ulong local_13a8 [623]; lVar5 = PHYSFS_openRead(); if (lVar5 == 0) { uVar4 = PHYSFS_getLastErrorCode(); local_13a8[0] = PHYSFS_getErrorByCode(uVar4); local_13b8 = (ulong *)param_1; fmt::v11::vformat_abi_cxx11_((string *)local_1538,"{}: {}",6,0xcc); /* try { // try from 0017eae6 to 0017eaf4 has its CatchHandler @ 0017ebad */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) &splash_lines_abi_cxx11_,(string *)local_1538); if (local_1538[0] != local_1528) { operator_delete(local_1538[0],local_1528[0] + 1); } std::random_device::random_device((random_device *)&local_13b8); /* try { // try from 0017eb20 to 0017eb27 has its CatchHandler @ 0017eb96 */ uVar3 = std::random_device::_M_getval(); uVar7 = (ulong)uVar3; lVar5 = 1; splash_random._0_8_ = uVar7; do { uVar7 = (uVar7 >> 0x3e ^ uVar7) * 0x5851f42d4c957f2d + lVar5; *(ulong *)(splash_random + lVar5 * 8) = uVar7; lVar5 = lVar5 + 1; } while (lVar5 != 0x138); splash_random._2496_8_ = 0x138; /* try { // try from 0017eb75 to 0017eb81 has its CatchHandler @ 0017eb94 */ std::random_device::_M_fini(); } else { cVar2 = PHYSFS_fileLength(lVar5); local_1578 = local_1568; /* try { // try from 0017e8bf to 0017e8cb has its CatchHandler @ 0017ebef */ std::__cxx11::string::_M_construct((ulong)&local_1578,cVar2); /* try { // try from 0017e8d5 to 0017e8e4 has its CatchHandler @ 0017ebf7 */ PHYSFS_readBytes(lVar5,local_1578,local_1570); PHYSFS_close(lVar5); local_1558 = &local_1548; local_1550 = 0; local_1548 = 0; /* try { // try from 0017e8f9 to 0017e90d has its CatchHandler @ 0017ebea */ std::__cxx11::istringstream::istringstream((istringstream *)local_1538,&local_1578,8); while( true ) { /* try { // try from 0017e92a to 0017e943 has its CatchHandler @ 0017ebfe */ cVar2 = std::ios::widen((char)local_1538[0][-3] + (char)(istream *)local_1538); piVar6 = std::getline<char,std::char_traits<char>,std::allocator<char>> ((istream *)local_1538,(string *)&local_1558,cVar2); lVar5 = local_1550; puVar1 = local_1558; if (((byte)piVar6[*(long *)(*(long *)piVar6 + -0x18) + 0x20] & 5) != 0) break; local_13b0 = 0; local_13a8[0] = local_13a8[0] & 0xffffffffffffff00; local_13b8 = local_13a8; if (local_1550 != 0) { lVar8 = 0; do { if ((puVar1[lVar8] != '\n') && (puVar1[lVar8] != '\r')) { /* try { // try from 0017e993 to 0017e99d has its CatchHandler @ 0017ec03 */ std::__cxx11::string::push_back((char)(string *)&local_13b8); } lVar8 = lVar8 + 1; } while (lVar5 != lVar8); } /* try { // try from 0017e9a6 to 0017e9b4 has its CatchHandler @ 0017ebfc */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) &splash_lines_abi_cxx11_,(string *)&local_13b8); if (local_13b8 != local_13a8) { operator_delete(local_13b8,local_13a8[0] + 1); } } /* try { // try from 0017e9db to 0017e9e7 has its CatchHandler @ 0017ebe8 */ std::random_device::random_device((random_device *)&local_13b8); /* try { // try from 0017e9e8 to 0017e9f4 has its CatchHandler @ 0017ebce */ uVar3 = std::random_device::_M_getval(); uVar7 = (ulong)uVar3; lVar5 = 1; splash_random._0_8_ = uVar7; do { uVar7 = (uVar7 >> 0x3e ^ uVar7) * 0x5851f42d4c957f2d + lVar5; *(ulong *)(splash_random + lVar5 * 8) = uVar7; lVar5 = lVar5 + 1; } while (lVar5 != 0x138); splash_random._2496_8_ = 0x138; /* try { // try from 0017ea42 to 0017ea4e has its CatchHandler @ 0017ebcc */ std::random_device::_M_fini(); std::__cxx11::istringstream::~istringstream((istringstream *)local_1538); std::ios_base::~ios_base(local_14c0); if (local_1558 != &local_1548) { operator_delete(local_1558,CONCAT71(uStack_1547,local_1548) + 1); } if (local_1578 != local_1568) { operator_delete(local_1578,local_1568[0] + 1); } } return; }
29,387
splash_init_filename(char const*)
untodesu[P]voxelius/game/shared/splash.cc
static void splash_init_filename(const char *filename) { if(auto file = PHYSFS_openRead(filename)) { auto source = std::string(PHYSFS_fileLength(file), char(0x00)); PHYSFS_readBytes(file, source.data(), source.size()); PHYSFS_close(file); std::string line; std::istringstream stream(source); while(std::getline(stream, line)) splash_lines.push_back(sanitize_line(line)); splash_random.seed(std::random_device()()); } else { splash_lines.push_back(fmt::format("{}: {}", filename, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()))); splash_random.seed(std::random_device()()); } }
O2
cpp
splash_init_filename(char const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1558, %rsp # imm = 0x1558 movq %rdi, 0x8(%rsp) callq 0x119fef testq %rax, %rax je 0x78597 movq %rax, %rbx movq %rax, %rdi callq 0x11a569 leaq 0x20(%rsp), %rcx movq %rcx, -0x10(%rcx) leaq 0x10(%rsp), %rdi movq %rax, %rsi xorl %edx, %edx callq 0x26a80 movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx movq %rbx, %rdi callq 0x11a2bb movq %rbx, %rdi callq 0x11a18b leaq 0x40(%rsp), %rax movq %rax, -0x10(%rax) andq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x50(%rsp), %rdi leaq 0x10(%rsp), %rsi pushq $0x8 popq %rdx callq 0x26f70 leaq 0x50(%rsp), %rbx leaq 0x30(%rsp), %r14 leaq 0x1d0(%rsp), %r12 movq %rbx, %rdi movq %r14, %rsi callq 0x26120 movq (%rax), %rcx movq -0x18(%rcx), %rcx testb $0x5, 0x20(%rax,%rcx) jne 0x7853f leaq 0x1e0(%rsp), %rax movq %rax, 0x1d0(%rsp) andq $0x0, 0x1d8(%rsp) movb $0x0, 0x1e0(%rsp) movq 0x30(%rsp), %rbp movq 0x38(%rsp), %r13 xorl %r15d, %r15d cmpq %r15, %r13 je 0x78523 movzbl (%rbp,%r15), %eax cmpl $0xa, %eax je 0x7851e cmpl $0xd, %eax je 0x7851e movsbl %al, %esi movq %r12, %rdi callq 0x267c0 incq %r15 jmp 0x784fe leaq 0x1dfe8e(%rip), %rdi # 0x2583b8 movq %r12, %rsi callq 0x59f70 movq %r12, %rdi callq 0x272a8 jmp 0x784b7 leaq 0x1d0(%rsp), %rdi callq 0x588a0 leaq 0x1d0(%rsp), %rdi callq 0x26cc0 movl %eax, %esi leaq 0x1df48e(%rip), %rdi # 0x2579f0 callq 0x5885e leaq 0x1d0(%rsp), %rdi callq 0x588f6 leaq 0x50(%rsp), %rdi callq 0x26390 leaq 0x30(%rsp), %rdi callq 0x272a8 leaq 0x10(%rsp), %rdi callq 0x272a8 jmp 0x78619 callq 0x1176e6 movl %eax, %edi callq 0x11775d leaq 0x50(%rsp), %r8 movq %rax, (%r8) leaq 0x143c9a(%rip), %rsi # 0x1bc24c leaq 0x1d0(%rsp), %rbx pushq $0x6 popq %rdx leaq 0x8(%rsp), %rcx movq %rbx, %rdi callq 0x78797 leaq 0x1dfde7(%rip), %rdi # 0x2583b8 movq %rbx, %rsi callq 0x59f70 leaq 0x1d0(%rsp), %rdi callq 0x272a8 leaq 0x1d0(%rsp), %rbx movq %rbx, %rdi callq 0x588a0 movq %rbx, %rdi callq 0x26cc0 movl %eax, %esi leaq 0x1df3e9(%rip), %rdi # 0x2579f0 callq 0x5885e leaq 0x1d0(%rsp), %rdi callq 0x588f6 addq $0x1558, %rsp # imm = 0x1558 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x1d0(%rsp), %rdi jmp 0x7869d jmp 0x7866f movq %rax, %rbx jmp 0x7868e movq %rax, %rbx jmp 0x786a2 movq %rax, %rbx leaq 0x1d0(%rsp), %rdi callq 0x588f6 jmp 0x786a2 movq %rax, %rbx leaq 0x1d0(%rsp), %rdi callq 0x588f6 jmp 0x78684 movq %rax, %rbx jmp 0x78698 jmp 0x78674 movq %rax, %rbx jmp 0x78684 movq %rax, %rbx leaq 0x1d0(%rsp), %rdi callq 0x272a8 leaq 0x50(%rsp), %rdi callq 0x26390 leaq 0x30(%rsp), %rdi callq 0x272a8 leaq 0x10(%rsp), %rdi callq 0x272a8 movq %rbx, %rdi callq 0x27040
_ZL20splash_init_filenamePKc: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1558h mov [rsp+1588h+var_1580], rdi call PHYSFS_openRead test rax, rax jz loc_78597 mov rbx, rax mov rdi, rax call PHYSFS_fileLength lea rcx, [rsp+1588h+var_1568] mov [rcx-10h], rcx lea rdi, [rsp+1588h+var_1578] mov rsi, rax xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) mov rsi, [rsp+1588h+var_1578] mov rdx, [rsp+1588h+var_1570] mov rdi, rbx call PHYSFS_readBytes mov rdi, rbx call PHYSFS_close lea rax, [rsp+1588h+var_1548] mov [rax-10h], rax and qword ptr [rax-8], 0 mov byte ptr [rax], 0 lea rdi, [rsp+1588h+var_1538] lea rsi, [rsp+1588h+var_1578] push 8 pop rdx call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode) lea rbx, [rsp+1588h+var_1538] lea r14, [rsp+1588h+var_1558] lea r12, [rsp+1588h+var_13B8] loc_784B7: mov rdi, rbx mov rsi, r14 call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &) mov rcx, [rax] mov rcx, [rcx-18h] test byte ptr [rax+rcx+20h], 5 jnz short loc_7853F lea rax, [rsp+1588h+var_13A8] mov [rsp+1588h+var_13B8], rax and [rsp+1588h+var_13B0], 0 mov [rsp+1588h+var_13A8], 0 mov rbp, [rsp+1588h+var_1558] mov r13, [rsp+1588h+var_1550] xor r15d, r15d loc_784FE: cmp r13, r15 jz short loc_78523 movzx eax, byte ptr [rbp+r15+0] cmp eax, 0Ah jz short loc_7851E cmp eax, 0Dh jz short loc_7851E movsx esi, al mov rdi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) loc_7851E: inc r15 jmp short loc_784FE loc_78523: lea rdi, _ZL12splash_linesB5cxx11; splash_lines mov rsi, r12 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, r12; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_784B7 loc_7853F: lea rdi, [rsp+1588h+var_13B8]; this call _ZNSt13random_deviceC2Ev; std::random_device::random_device(void) lea rdi, [rsp+1588h+var_13B8]; this call __ZNSt13random_device9_M_getvalEv; std::random_device::_M_getval(void) mov esi, eax lea rdi, _ZL13splash_random; splash_random call _ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EE4seedEm; std::mersenne_twister_engine<ulong,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>::seed(ulong) lea rdi, [rsp+1588h+var_13B8]; this call _ZNSt13random_deviceD2Ev; std::random_device::~random_device() lea rdi, [rsp+1588h+var_1538] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream() lea rdi, [rsp+1588h+var_1558]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1588h+var_1578]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_78619 loc_78597: call PHYSFS_getLastErrorCode mov edi, eax call PHYSFS_getErrorByCode lea r8, [rsp+1588h+var_1538] mov [r8], rax lea rsi, aResource+0Ah; "{}: {}" lea rbx, [rsp+1588h+var_13B8] push 6 pop rdx lea rcx, [rsp+1588h+var_1580] mov rdi, rbx call _ZN3fmt3v116formatIJRPKcS3_EEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOSD_; fmt::v11::format<char const*&,char const*>(fmt::v11::basic_format_string<char,fmt::v11::type_identity<char const*&,char const*>::type>,char const*&,char const*&&) lea rdi, _ZL12splash_linesB5cxx11; splash_lines mov rsi, rbx call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) lea rdi, [rsp+1588h+var_13B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rbx, [rsp+1588h+var_13B8] mov rdi, rbx; this call _ZNSt13random_deviceC2Ev; std::random_device::random_device(void) mov rdi, rbx; this call __ZNSt13random_device9_M_getvalEv; std::random_device::_M_getval(void) mov esi, eax lea rdi, _ZL13splash_random; splash_random call _ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EE4seedEm; std::mersenne_twister_engine<ulong,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>::seed(ulong) lea rdi, [rsp+1588h+var_13B8]; this call _ZNSt13random_deviceD2Ev; std::random_device::~random_device() loc_78619: add rsp, 1558h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_1C8] jmp short loc_7869D jmp short loc_7866F mov rbx, rax jmp short loc_7868E mov rbx, rax jmp short loc_786A2 mov rbx, rax lea rdi, [rsp+arg_1C8]; this call _ZNSt13random_deviceD2Ev; std::random_device::~random_device() jmp short loc_786A2 mov rbx, rax lea rdi, [rsp+arg_1C8]; this call _ZNSt13random_deviceD2Ev; std::random_device::~random_device() jmp short loc_78684 mov rbx, rax jmp short loc_78698 jmp short loc_78674 loc_7866F: mov rbx, rax jmp short loc_78684 loc_78674: mov rbx, rax lea rdi, [rsp+arg_1C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_78684: lea rdi, [rsp+arg_48] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream() loc_7868E: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_78698: lea rdi, [rsp+arg_8]; void * loc_7869D: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_786A2: mov rdi, rbx call __Unwind_Resume
void splash_init_filename(const char *a1, long long a2) { long long v2; // rax long long v3; // rbx long long v4; // rax _QWORD *v5; // rax char *v6; // rbp long long v7; // r13 long long i; // r15 int v9; // eax unsigned int v10; // eax unsigned int LastErrorCode; // eax unsigned int v12; // eax const char *v13; // [rsp+8h] [rbp-1580h] BYREF _QWORD v14[2]; // [rsp+10h] [rbp-1578h] BYREF char v15; // [rsp+20h] [rbp-1568h] BYREF char *v16; // [rsp+30h] [rbp-1558h] BYREF long long v17; // [rsp+38h] [rbp-1550h] char v18; // [rsp+40h] [rbp-1548h] BYREF _QWORD v19[48]; // [rsp+50h] [rbp-1538h] BYREF _QWORD v20[2]; // [rsp+1D0h] [rbp-13B8h] BYREF char v21; // [rsp+1E0h] [rbp-13A8h] BYREF v13 = a1; v2 = PHYSFS_openRead(a1); if ( v2 ) { v3 = v2; v4 = PHYSFS_fileLength(v2); v14[0] = &v15; std::string::_M_construct(v14, v4, 0LL); PHYSFS_readBytes(v3, v14[0], v14[1]); PHYSFS_close(v3); v16 = &v18; v17 = 0LL; v18 = 0; std::istringstream::basic_istringstream(v19, v14, 8LL); while ( 1 ) { v5 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v19, &v16); if ( (*((_BYTE *)v5 + *(_QWORD *)(*v5 - 24LL) + 32) & 5) != 0 ) break; v20[0] = &v21; v20[1] = 0LL; v21 = 0; v6 = v16; v7 = v17; for ( i = 0LL; v7 != i; ++i ) { v9 = (unsigned __int8)v6[i]; if ( v9 != 10 && v9 != 13 ) std::string::push_back(v20, (unsigned int)(char)v9); } std::vector<std::string>::emplace_back<std::string>((long long)&splash_lines[abi:cxx11], (long long)v20); std::string::~string(v20); } std::random_device::random_device((std::random_device *)v20); v10 = std::random_device::_M_getval((std::random_device *)v20); std::mersenne_twister_engine<unsigned long,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>::seed( splash_random, v10); std::random_device::~random_device((std::random_device *)v20); std::istringstream::~istringstream(v19); std::string::~string(&v16); std::string::~string(v14); } else { LastErrorCode = PHYSFS_getLastErrorCode(a1, a2); v19[0] = PHYSFS_getErrorByCode(LastErrorCode); fmt::v11::format<char const*&,char const*>(v20, "{}: {}", 6LL, &v13); std::vector<std::string>::emplace_back<std::string>((long long)&splash_lines[abi:cxx11], (long long)v20); std::string::~string(v20); std::random_device::random_device((std::random_device *)v20); v12 = std::random_device::_M_getval((std::random_device *)v20); std::mersenne_twister_engine<unsigned long,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>::seed( splash_random, v12); std::random_device::~random_device((std::random_device *)v20); } }
splash_init_filename: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1558 MOV qword ptr [RSP + 0x8],RDI CALL 0x00219fef TEST RAX,RAX JZ 0x00178597 MOV RBX,RAX MOV RDI,RAX CALL 0x0021a569 LEA RCX,[RSP + 0x20] MOV qword ptr [RCX + -0x10],RCX LAB_00178459: LEA RDI,[RSP + 0x10] MOV RSI,RAX XOR EDX,EDX CALL 0x00126a80 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x18] LAB_00178472: MOV RDI,RBX CALL 0x0021a2bb MOV RDI,RBX CALL 0x0021a18b LEA RAX,[RSP + 0x40] MOV qword ptr [RAX + -0x10],RAX AND qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 LAB_00178493: LEA RDI,[RSP + 0x50] LEA RSI,[RSP + 0x10] PUSH 0x8 POP RDX CALL 0x00126f70 LEA RBX,[RSP + 0x50] LEA R14,[RSP + 0x30] LEA R12,[RSP + 0x1d0] LAB_001784b7: MOV RDI,RBX MOV RSI,R14 CALL 0x00126120 MOV RCX,qword ptr [RAX] MOV RCX,qword ptr [RCX + -0x18] TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5 JNZ 0x0017853f LEA RAX,[RSP + 0x1e0] MOV qword ptr [RSP + 0x1d0],RAX AND qword ptr [RSP + 0x1d8],0x0 MOV byte ptr [RSP + 0x1e0],0x0 MOV RBP,qword ptr [RSP + 0x30] MOV R13,qword ptr [RSP + 0x38] XOR R15D,R15D LAB_001784fe: CMP R13,R15 JZ 0x00178523 MOVZX EAX,byte ptr [RBP + R15*0x1] CMP EAX,0xa JZ 0x0017851e CMP EAX,0xd JZ 0x0017851e LAB_00178513: MOVSX ESI,AL MOV RDI,R12 CALL 0x001267c0 LAB_0017851e: INC R15 JMP 0x001784fe LAB_00178523: LEA RDI,[0x3583b8] MOV RSI,R12 CALL 0x00159f70 MOV RDI,R12 CALL 0x001272a8 JMP 0x001784b7 LAB_0017853f: LEA RDI,[RSP + 0x1d0] CALL 0x001588a0 LAB_0017854c: LEA RDI,[RSP + 0x1d0] CALL 0x00126cc0 MOV ESI,EAX LEA RDI,[0x3579f0] CALL 0x0015885e LAB_00178567: LEA RDI,[RSP + 0x1d0] CALL 0x001588f6 LEA RDI,[RSP + 0x50] CALL 0x00126390 LEA RDI,[RSP + 0x30] CALL 0x001272a8 LEA RDI,[RSP + 0x10] CALL 0x001272a8 JMP 0x00178619 LAB_00178597: CALL 0x002176e6 MOV EDI,EAX CALL 0x0021775d LEA R8,[RSP + 0x50] MOV qword ptr [R8],RAX LEA RSI,[0x2bc24c] LEA RBX,[RSP + 0x1d0] PUSH 0x6 POP RDX LEA RCX,[RSP + 0x8] MOV RDI,RBX CALL 0x00178797 LAB_001785ca: LEA RDI,[0x3583b8] MOV RSI,RBX CALL 0x00159f70 LAB_001785d9: LEA RDI,[RSP + 0x1d0] CALL 0x001272a8 LEA RBX,[RSP + 0x1d0] MOV RDI,RBX CALL 0x001588a0 LAB_001785f6: MOV RDI,RBX CALL 0x00126cc0 MOV ESI,EAX LEA RDI,[0x3579f0] CALL 0x0015885e LAB_0017860c: LEA RDI,[RSP + 0x1d0] CALL 0x001588f6 LAB_00178619: ADD RSP,0x1558 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* splash_init_filename(char const*) */ void splash_init_filename(char *param_1) { int1 *puVar1; char cVar2; uint uVar3; int4 uVar4; long lVar5; istream *piVar6; long lVar7; char *local_1580; int1 *local_1578; int8 local_1570; int1 local_1568 [16]; int1 *local_1558; long local_1550; int1 local_1548 [16]; int8 local_1538 [48]; int1 *local_13b8; int8 local_13b0; int1 local_13a8 [4984]; local_1580 = param_1; lVar5 = PHYSFS_openRead(); if (lVar5 == 0) { uVar4 = PHYSFS_getLastErrorCode(); local_1538[0] = PHYSFS_getErrorByCode(uVar4); fmt::v11::format<char_const*&,char_const*>((string *)&local_13b8,"{}: {}",6,&local_1580); /* try { // try from 001785ca to 001785d8 has its CatchHandler @ 0017862b */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) &splash_lines_abi_cxx11_,(string *)&local_13b8); std::__cxx11::string::~string((string *)&local_13b8); std::random_device::random_device((random_device *)&local_13b8); /* try { // try from 001785f6 to 0017860b has its CatchHandler @ 00178644 */ uVar3 = std::random_device::_M_getval(); std:: mersenne_twister_engine<unsigned_long,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul> ::seed((mersenne_twister_engine<unsigned_long,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul> *)splash_random,(ulong)uVar3); std::random_device::~random_device((random_device *)&local_13b8); } else { cVar2 = PHYSFS_fileLength(lVar5); local_1578 = local_1568; /* try { // try from 00178459 to 00178467 has its CatchHandler @ 0017863f */ std::__cxx11::string::_M_construct((ulong)&local_1578,cVar2); /* try { // try from 00178472 to 00178481 has its CatchHandler @ 00178668 */ PHYSFS_readBytes(lVar5,local_1578,local_1570); PHYSFS_close(lVar5); local_1558 = local_1548; local_1550 = 0; local_1548[0] = 0; /* try { // try from 00178493 to 001784a4 has its CatchHandler @ 0017863a */ std::__cxx11::istringstream::istringstream((istringstream *)local_1538,&local_1578,8); while( true ) { /* try { // try from 001784b7 to 001784c1 has its CatchHandler @ 0017866f */ piVar6 = std::getline<char,std::char_traits<char>,std::allocator<char>> ((istream *)local_1538,(string *)&local_1558); lVar5 = local_1550; puVar1 = local_1558; if (((byte)piVar6[*(long *)(*(long *)piVar6 + -0x18) + 0x20] & 5) != 0) break; local_13b8 = local_13a8; local_13b0 = 0; local_13a8[0] = 0; for (lVar7 = 0; lVar5 != lVar7; lVar7 = lVar7 + 1) { if ((puVar1[lVar7] != '\n') && (puVar1[lVar7] != '\r')) { /* try { // try from 00178513 to 0017851d has its CatchHandler @ 00178674 */ std::__cxx11::string::push_back((char)(string *)&local_13b8); } } /* try { // try from 00178523 to 00178531 has its CatchHandler @ 0017866d */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) &splash_lines_abi_cxx11_,(string *)&local_13b8); std::__cxx11::string::~string((string *)&local_13b8); } /* try { // try from 0017853f to 0017854b has its CatchHandler @ 00178638 */ std::random_device::random_device((random_device *)&local_13b8); /* try { // try from 0017854c to 00178566 has its CatchHandler @ 00178656 */ uVar3 = std::random_device::_M_getval(); std:: mersenne_twister_engine<unsigned_long,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul> ::seed((mersenne_twister_engine<unsigned_long,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul> *)splash_random,(ulong)uVar3); std::random_device::~random_device((random_device *)&local_13b8); std::__cxx11::istringstream::~istringstream((istringstream *)local_1538); std::__cxx11::string::~string((string *)&local_1558); std::__cxx11::string::~string((string *)&local_1578); } return; }
29,388
my_wildcmp_mb_impl
eloqsql/strings/ctype-mb.c
static int my_wildcmp_mb_impl(CHARSET_INFO *cs, const char *str,const char *str_end, const char *wildstr,const char *wildend, int escape, int w_one, int w_many, int recurse_level) { int result= -1; /* Not found, using wildcards */ if (my_string_stack_guard && my_string_stack_guard(recurse_level)) return 1; while (wildstr != wildend) { while (*wildstr != w_many && *wildstr != w_one) { int l; if (*wildstr == escape && wildstr+1 != wildend) wildstr++; if ((l = my_ismbchar(cs, wildstr, wildend))) { if (str+l > str_end || memcmp(str, wildstr, l) != 0) return 1; str += l; wildstr += l; } else if (str == str_end || likeconv(cs,*wildstr++) != likeconv(cs,*str++)) return(1); /* No match */ if (wildstr == wildend) return (str != str_end); /* Match if both are at end */ result=1; /* Found an anchor char */ } if (*wildstr == w_one) { do { if (str == str_end) /* Skip one char if possible */ return (result); INC_PTR(cs,str,str_end); } while (++wildstr < wildend && *wildstr == w_one); if (wildstr == wildend) break; } if (*wildstr == w_many) { /* Found w_many */ uchar cmp; const char* mb = wildstr; int mb_len=0; wildstr++; /* Remove any '%' and '_' from the wild search string */ for (; wildstr != wildend ; wildstr++) { if (*wildstr == w_many) continue; if (*wildstr == w_one) { if (str == str_end) return (-1); INC_PTR(cs,str,str_end); continue; } break; /* Not a wild character */ } if (wildstr == wildend) return(0); /* Ok if w_many is last */ if (str == str_end) return -1; if ((cmp= *wildstr) == escape && wildstr+1 != wildend) cmp= *++wildstr; mb=wildstr; mb_len= my_ismbchar(cs, wildstr, wildend); INC_PTR(cs,wildstr,wildend); /* This is compared trough cmp */ cmp=likeconv(cs,cmp); do { for (;;) { if (str >= str_end) return -1; if (mb_len) { if (str+mb_len <= str_end && memcmp(str, mb, mb_len) == 0) { str += mb_len; break; } } else if (!my_ismbchar(cs, str, str_end) && likeconv(cs,*str) == cmp) { str++; break; } INC_PTR(cs,str, str_end); } { int tmp=my_wildcmp_mb_impl(cs,str,str_end,wildstr,wildend,escape,w_one, w_many, recurse_level + 1); if (tmp <= 0) return (tmp); } } while (str != str_end); return(-1); } } return (str != str_end ? 1 : 0); }
O3
c
my_wildcmp_mb_impl: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movl %r9d, -0x44(%rbp) movq %r8, -0x40(%rbp) movq %rcx, %r15 movq %rdx, -0x58(%rbp) movq %rsi, %r12 movq %rdi, -0x38(%rbp) movl 0x20(%rbp), %eax movq %rax, -0x68(%rbp) leaq 0xb556e8(%rip), %rax # 0xc08998 movq (%rax), %rax testq %rax, %rax je 0xb32cb movl 0x20(%rbp), %edi callq *%rax movl $0x1, %r14d testl %eax, %eax jne 0xb3466 movl 0x10(%rbp), %edi movl $0xffffffff, %r14d # imm = 0xFFFFFFFF cmpq -0x40(%rbp), %r15 je 0xb3458 movb (%r15), %al movsbl %al, %ecx movl 0x18(%rbp), %edx cmpl %edx, %ecx sete %sil cmpl %edi, %ecx sete %dl orb %dl, %sil movq -0x58(%rbp), %r13 je 0xb3394 testb %dl, %dl je 0xb3381 incq %r15 movq %r15, %rax movq -0x38(%rbp), %rbx cmpq %r13, %r12 je 0xb3466 movq %rax, %r15 movq 0xb8(%rbx), %rax movq %rbx, %rdi movq %r12, %rsi movq %r13, %rdx callq *0xc0(%rax) movl %eax, %ecx movl $0x1, %eax cmpl $0x2, %ecx jl 0xb335c movq 0xb8(%rbx), %rax movq %rbx, %rdi movq %r12, %rsi movq %r13, %rdx callq *0xc0(%rax) cmpl $0x2, %eax movl $0x0, %ecx cmovll %ecx, %eax addq %rax, %r12 cmpq -0x40(%rbp), %r15 movl 0x10(%rbp), %edi jae 0xb3374 movsbl (%r15), %ecx leaq 0x1(%r15), %rax cmpl %edi, %ecx je 0xb330d cmpq -0x40(%rbp), %r15 je 0xb345c movb (%r15), %al movsbl %al, %eax movl 0x18(%rbp), %ecx cmpl %ecx, %eax jne 0xb32d4 jmp 0xb3478 leaq 0x1(%r15), %rbx movq -0x40(%rbp), %rdx cmpq %rdx, %rbx cmoveq %r15, %rbx cmpl -0x44(%rbp), %ecx cmovneq %r15, %rbx movq -0x38(%rbp), %rdi movq 0xb8(%rdi), %rax movq %rbx, %rsi callq *0xc0(%rax) cmpl $0x2, %eax jge 0xb33f8 movl $0x1, %r14d cmpq %r13, %r12 je 0xb3466 movq -0x38(%rbp), %rax movq 0x58(%rax), %rax movzbl (%rbx), %ecx movb (%rax,%rcx), %cl movzbl (%r12), %edx cmpb (%rax,%rdx), %cl movl 0x10(%rbp), %edi jne 0xb3466 incq %rbx incq %r12 movq %rbx, %r15 jmp 0xb342b movl %eax, %r15d movq %r13, %rax leaq (%r12,%r15), %r13 movl $0x1, %r14d cmpq %rax, %r13 ja 0xb3466 movq %r12, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x29560 testl %eax, %eax movl 0x10(%rbp), %edi jne 0xb3466 addq %r15, %rbx movq %rbx, %r15 movq %r13, %r12 cmpq -0x40(%rbp), %r15 movq -0x58(%rbp), %r13 je 0xb345c movb (%r15), %al movsbl %al, %ecx cmpl %edi, %ecx sete %dl movl 0x18(%rbp), %esi cmpl %esi, %ecx je 0xb32ff cmpl %edi, %ecx jne 0xb3394 jmp 0xb32ff movq -0x58(%rbp), %r13 xorl %r14d, %r14d cmpq %r13, %r12 setne %r14b movl %r14d, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x1(%r15), %rax cmpq -0x40(%rbp), %rax je 0xb3508 addq $0x2, %r15 xorl %r13d, %r13d xorl %r14d, %r14d movb -0x1(%r15), %bl movsbl %bl, %eax movl 0x18(%rbp), %ecx cmpl %ecx, %eax je 0xb34f6 cmpl %edi, %eax jne 0xb3510 movq -0x58(%rbp), %rbx cmpq %rbx, %r12 je 0xb36da movq -0x38(%rbp), %rdi movq 0xb8(%rdi), %rax movq %r12, %rsi movq %rbx, %rdx callq *0xc0(%rax) movl %eax, %ecx movl $0x1, %eax cmpl $0x2, %ecx jl 0xb34f0 movq -0x38(%rbp), %rdi movq 0xb8(%rdi), %rax movq %r12, %rsi movq %rbx, %rdx callq *0xc0(%rax) cmpl $0x2, %eax cmovll %r13d, %eax addq %rax, %r12 movl 0x10(%rbp), %edi leaq 0x1(%r15), %rax cmpq -0x40(%rbp), %r15 movq %rax, %r15 jne 0xb3490 jmp 0xb3466 xorl %r14d, %r14d jmp 0xb3466 movl $0xffffffff, %r14d # imm = 0xFFFFFFFF movq -0x58(%rbp), %r13 cmpq %r13, %r12 je 0xb3466 movzbl %bl, %eax leaq -0x1(%r15), %rcx movq %rcx, -0x50(%rbp) cmpl -0x44(%rbp), %eax jne 0xb3540 cmpq -0x40(%rbp), %r15 je 0xb3540 movb (%r15), %bl movq %r15, -0x50(%rbp) movq -0x38(%rbp), %rdi movq 0xb8(%rdi), %rax movq -0x50(%rbp), %rsi movq -0x40(%rbp), %rdx callq *0xc0(%rax) xorl %ecx, %ecx cmpl $0x2, %eax movl %eax, %r15d cmovll %ecx, %eax movl %eax, -0x60(%rbp) movq -0x38(%rbp), %rdi movq 0xb8(%rdi), %rax movq -0x50(%rbp), %rsi movq -0x40(%rbp), %rdx callq *0xc0(%rax) movl $0x1, %ecx cmpl $0x2, %eax jl 0xb35b0 movq -0x38(%rbp), %rdi movq 0xb8(%rdi), %rax movq -0x50(%rbp), %rsi movq -0x40(%rbp), %rdx callq *0xc0(%rax) movl %eax, %ecx cmpl $0x2, %eax movl $0x0, %eax cmovll %eax, %ecx addq -0x50(%rbp), %rcx movq %rcx, -0x70(%rbp) movq -0x38(%rbp), %rax movq 0x58(%rax), %rax movzbl %bl, %ecx movb (%rax,%rcx), %al movb %al, -0x29(%rbp) movl -0x60(%rbp), %eax movq %rax, -0x60(%rbp) movq -0x68(%rbp), %rax incl %eax movq %rax, -0x68(%rbp) cmpq %r13, %r12 jae 0xb3466 movq %r12, %rbx cmpl $0x2, %r15d jge 0xb361d movq -0x38(%rbp), %rdi movq 0xb8(%rdi), %rax movq %rbx, %rsi movq %r13, %rdx callq *0xc0(%rax) cmpl $0x1, %eax jg 0xb363e movq -0x38(%rbp), %rax movq 0x58(%rax), %rax movzbl (%rbx), %ecx movb -0x29(%rbp), %dl cmpb %dl, (%rax,%rcx) jne 0xb363e jmp 0xb3694 movq -0x60(%rbp), %rax leaq (%rbx,%rax), %r12 cmpq %r13, %r12 ja 0xb363e movq %rbx, %rdi movq -0x50(%rbp), %rsi movq -0x60(%rbp), %rdx callq 0x29560 testl %eax, %eax je 0xb369a movq -0x38(%rbp), %rdi movq 0xb8(%rdi), %rax movq %rbx, %rsi movq %r13, %rdx callq *0xc0(%rax) movl %eax, %ecx movl $0x1, %eax cmpl $0x2, %ecx jl 0xb3683 movq -0x38(%rbp), %rdi movq 0xb8(%rdi), %rax movq %rbx, %rsi movq %r13, %rdx callq *0xc0(%rax) cmpl $0x2, %eax movl $0x0, %ecx cmovll %ecx, %eax addq %rax, %rbx cmpq %r13, %rbx jb 0xb35e6 jmp 0xb3466 incq %rbx movq %rbx, %r12 subq $0x8, %rsp movq -0x38(%rbp), %rdi movq %r12, %rsi movq %r13, %rdx movq -0x70(%rbp), %rcx movq -0x40(%rbp), %r8 movl -0x44(%rbp), %r9d pushq -0x68(%rbp) movl 0x18(%rbp), %eax pushq %rax movl 0x10(%rbp), %eax pushq %rax callq 0xb327b addq $0x20, %rsp testl %eax, %eax jle 0xb36e5 cmpq %r13, %r12 jne 0xb35da jmp 0xb3466 movl $0xffffffff, %r14d # imm = 0xFFFFFFFF jmp 0xb3466 movl %eax, %r14d jmp 0xb3466
my_wildcmp_mb_impl: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov [rbp+var_44], r9d mov [rbp+var_40], r8 mov r15, rcx mov [rbp+var_58], rdx mov r12, rsi mov [rbp+var_38], rdi mov eax, [rbp+arg_10] mov [rbp+var_68], rax lea rax, my_string_stack_guard mov rax, [rax] test rax, rax jz short loc_B32CB mov edi, [rbp+arg_10] call rax mov r14d, 1 test eax, eax jnz loc_B3466 loc_B32CB: mov edi, [rbp+arg_0] mov r14d, 0FFFFFFFFh loc_B32D4: cmp r15, [rbp+var_40] jz loc_B3458 mov al, [r15] movsx ecx, al mov edx, [rbp+arg_8] cmp ecx, edx setz sil cmp ecx, edi setz dl or sil, dl mov r13, [rbp+var_58] jz loc_B3394 loc_B32FF: test dl, dl jz short loc_B3381 inc r15 mov rax, r15 mov rbx, [rbp+var_38] loc_B330D: cmp r12, r13 jz loc_B3466 mov r15, rax mov rax, [rbx+0B8h] mov rdi, rbx mov rsi, r12 mov rdx, r13 call qword ptr [rax+0C0h] mov ecx, eax mov eax, 1 cmp ecx, 2 jl short loc_B335C mov rax, [rbx+0B8h] mov rdi, rbx mov rsi, r12 mov rdx, r13 call qword ptr [rax+0C0h] cmp eax, 2 mov ecx, 0 cmovl eax, ecx loc_B335C: add r12, rax cmp r15, [rbp+var_40] mov edi, [rbp+arg_0] jnb short loc_B3374 movsx ecx, byte ptr [r15] lea rax, [r15+1] cmp ecx, edi jz short loc_B330D loc_B3374: cmp r15, [rbp+var_40] jz loc_B345C mov al, [r15] loc_B3381: movsx eax, al mov ecx, [rbp+arg_8] cmp eax, ecx jnz loc_B32D4 jmp loc_B3478 loc_B3394: lea rbx, [r15+1] mov rdx, [rbp+var_40] cmp rbx, rdx cmovz rbx, r15 cmp ecx, [rbp+var_44] cmovnz rbx, r15 mov rdi, [rbp+var_38] mov rax, [rdi+0B8h] mov rsi, rbx call qword ptr [rax+0C0h] cmp eax, 2 jge short loc_B33F8 mov r14d, 1 cmp r12, r13 jz loc_B3466 mov rax, [rbp+var_38] mov rax, [rax+58h] movzx ecx, byte ptr [rbx] mov cl, [rax+rcx] movzx edx, byte ptr [r12] cmp cl, [rax+rdx] mov edi, [rbp+arg_0] jnz short loc_B3466 inc rbx inc r12 mov r15, rbx jmp short loc_B342B loc_B33F8: mov r15d, eax mov rax, r13 lea r13, [r12+r15] mov r14d, 1 cmp r13, rax ja short loc_B3466 mov rdi, r12 mov rsi, rbx mov rdx, r15 call _bcmp test eax, eax mov edi, [rbp+arg_0] jnz short loc_B3466 add rbx, r15 mov r15, rbx mov r12, r13 loc_B342B: cmp r15, [rbp+var_40] mov r13, [rbp+var_58] jz short loc_B345C mov al, [r15] movsx ecx, al cmp ecx, edi setz dl mov esi, [rbp+arg_8] cmp ecx, esi jz loc_B32FF cmp ecx, edi jnz loc_B3394 jmp loc_B32FF loc_B3458: mov r13, [rbp+var_58] loc_B345C: xor r14d, r14d cmp r12, r13 setnz r14b loc_B3466: mov eax, r14d add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_B3478: lea rax, [r15+1] cmp rax, [rbp+var_40] jz loc_B3508 add r15, 2 xor r13d, r13d xor r14d, r14d loc_B3490: mov bl, [r15-1] movsx eax, bl mov ecx, [rbp+arg_8] cmp eax, ecx jz short loc_B34F6 cmp eax, edi jnz short loc_B3510 mov rbx, [rbp+var_58] cmp r12, rbx jz loc_B36DA mov rdi, [rbp+var_38] mov rax, [rdi+0B8h] mov rsi, r12 mov rdx, rbx call qword ptr [rax+0C0h] mov ecx, eax mov eax, 1 cmp ecx, 2 jl short loc_B34F0 mov rdi, [rbp+var_38] mov rax, [rdi+0B8h] mov rsi, r12 mov rdx, rbx call qword ptr [rax+0C0h] cmp eax, 2 cmovl eax, r13d loc_B34F0: add r12, rax mov edi, [rbp+arg_0] loc_B34F6: lea rax, [r15+1] cmp r15, [rbp+var_40] mov r15, rax jnz short loc_B3490 jmp loc_B3466 loc_B3508: xor r14d, r14d jmp loc_B3466 loc_B3510: mov r14d, 0FFFFFFFFh mov r13, [rbp+var_58] cmp r12, r13 jz loc_B3466 movzx eax, bl lea rcx, [r15-1] mov [rbp+var_50], rcx cmp eax, [rbp+var_44] jnz short loc_B3540 cmp r15, [rbp+var_40] jz short loc_B3540 mov bl, [r15] mov [rbp+var_50], r15 loc_B3540: mov rdi, [rbp+var_38] mov rax, [rdi+0B8h] mov rsi, [rbp+var_50] mov rdx, [rbp+var_40] call qword ptr [rax+0C0h] xor ecx, ecx cmp eax, 2 mov r15d, eax cmovl eax, ecx mov dword ptr [rbp+var_60], eax mov rdi, [rbp+var_38] mov rax, [rdi+0B8h] mov rsi, [rbp+var_50] mov rdx, [rbp+var_40] call qword ptr [rax+0C0h] mov ecx, 1 cmp eax, 2 jl short loc_B35B0 mov rdi, [rbp+var_38] mov rax, [rdi+0B8h] mov rsi, [rbp+var_50] mov rdx, [rbp+var_40] call qword ptr [rax+0C0h] mov ecx, eax cmp eax, 2 mov eax, 0 cmovl ecx, eax loc_B35B0: add rcx, [rbp+var_50] mov [rbp+var_70], rcx mov rax, [rbp+var_38] mov rax, [rax+58h] movzx ecx, bl mov al, [rax+rcx] mov [rbp+var_29], al mov eax, dword ptr [rbp+var_60] mov [rbp+var_60], rax mov rax, [rbp+var_68] inc eax mov [rbp+var_68], rax loc_B35DA: cmp r12, r13 jnb loc_B3466 mov rbx, r12 loc_B35E6: cmp r15d, 2 jge short loc_B361D mov rdi, [rbp+var_38] mov rax, [rdi+0B8h] mov rsi, rbx mov rdx, r13 call qword ptr [rax+0C0h] cmp eax, 1 jg short loc_B363E mov rax, [rbp+var_38] mov rax, [rax+58h] movzx ecx, byte ptr [rbx] mov dl, [rbp+var_29] cmp [rax+rcx], dl jnz short loc_B363E jmp short loc_B3694 loc_B361D: mov rax, [rbp+var_60] lea r12, [rbx+rax] cmp r12, r13 ja short loc_B363E mov rdi, rbx mov rsi, [rbp+var_50] mov rdx, [rbp+var_60] call _bcmp test eax, eax jz short loc_B369A loc_B363E: mov rdi, [rbp+var_38] mov rax, [rdi+0B8h] mov rsi, rbx mov rdx, r13 call qword ptr [rax+0C0h] mov ecx, eax mov eax, 1 cmp ecx, 2 jl short loc_B3683 mov rdi, [rbp+var_38] mov rax, [rdi+0B8h] mov rsi, rbx mov rdx, r13 call qword ptr [rax+0C0h] cmp eax, 2 mov ecx, 0 cmovl eax, ecx loc_B3683: add rbx, rax cmp rbx, r13 jb loc_B35E6 jmp loc_B3466 loc_B3694: inc rbx mov r12, rbx loc_B369A: sub rsp, 8 mov rdi, [rbp+var_38] mov rsi, r12 mov rdx, r13 mov rcx, [rbp+var_70] mov r8, [rbp+var_40] mov r9d, [rbp+var_44] push [rbp+var_68] mov eax, [rbp+arg_8] push rax mov eax, [rbp+arg_0] push rax call my_wildcmp_mb_impl add rsp, 20h test eax, eax jle short loc_B36E5 cmp r12, r13 jnz loc_B35DA jmp loc_B3466 loc_B36DA: mov r14d, 0FFFFFFFFh jmp loc_B3466 loc_B36E5: mov r14d, eax jmp loc_B3466
long long my_wildcmp_mb_impl( long long a1, unsigned __int8 *a2, unsigned __int8 *a3, char *a4, char *a5, int a6, int a7, int a8, unsigned int a9) { unsigned int v11; // r14d int v12; // edi char v13; // al int v14; // ecx bool v15; // dl unsigned __int8 *v16; // r13 char *v17; // rax int v18; // ecx long long v19; // rax unsigned __int8 *v20; // rbx int v21; // eax long long v22; // r15 unsigned __int8 *v23; // rax unsigned __int8 *v24; // r13 char *v26; // r15 unsigned __int8 v27; // bl int v28; // ecx long long v29; // rax int v31; // eax int v32; // r15d int v33; // eax int v34; // ecx unsigned __int8 *v35; // rbx int v36; // ecx long long v37; // rax int v38; // eax int v39; // [rsp+0h] [rbp-70h] unsigned int v40; // [rsp+10h] [rbp-60h] char *v42; // [rsp+20h] [rbp-50h] char v46; // [rsp+47h] [rbp-29h] if ( !my_string_stack_guard || (v11 = 1, !(unsigned int)my_string_stack_guard(a9)) ) { v12 = a7; v11 = -1; do { if ( a4 == a5 ) { v16 = a3; return a2 != v16; } v13 = *a4; v14 = *a4; v15 = v14 == v12; v16 = a3; if ( v14 != v12 && v14 != a8 ) { do { v20 = (unsigned __int8 *)(a4 + 1); if ( a4 + 1 == a5 ) v20 = (unsigned __int8 *)a4; if ( v14 != a6 ) v20 = (unsigned __int8 *)a4; v21 = (*(long long ( **)(long long, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v20); if ( v21 >= 2 ) { v22 = (unsigned int)v21; v23 = v16; v24 = &a2[v22]; v11 = 1; if ( &a2[v22] > v23 ) return v11; v12 = a7; if ( (unsigned int)bcmp(a2, v20, v22) ) return v11; a4 = (char *)&v20[v22]; a2 = v24; } else { v11 = 1; if ( a2 == v16 ) return v11; v12 = a7; if ( *(_BYTE *)(*(_QWORD *)(a1 + 88) + *v20) != *(_BYTE *)(*(_QWORD *)(a1 + 88) + *a2) ) return v11; ++a2; a4 = (char *)(v20 + 1); } v16 = a3; if ( a4 == a5 ) return a2 != v16; v13 = *a4; v14 = *a4; v15 = v14 == v12; } while ( v14 != a8 && v14 != v12 ); } if ( v15 ) { v17 = a4 + 1; do { if ( a2 == v16 ) return v11; a4 = v17; v18 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, a2, v16); v19 = 1LL; if ( v18 >= 2 ) { v19 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, a2, v16); if ( (int)v19 < 2 ) v19 = 0LL; } a2 += v19; v12 = a7; if ( a4 >= a5 ) break; v17 = a4 + 1; } while ( *a4 == a7 ); if ( a4 == a5 ) return a2 != v16; v13 = *a4; } } while ( v13 != a8 ); if ( a4 + 1 == a5 ) { return 0; } else { v26 = a4 + 2; v11 = 0; while ( 1 ) { v27 = *(v26 - 1); if ( (char)v27 == a8 ) goto LABEL_45; if ( (char)v27 != v12 ) break; if ( a2 == a3 ) return (unsigned int)-1; v28 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, a2, a3); v29 = 1LL; if ( v28 >= 2 ) { v29 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, a2, a3); if ( (int)v29 < 2 ) v29 = 0LL; } a2 += v29; v12 = a7; LABEL_45: if ( v26++ == a5 ) return v11; } v11 = -1; if ( a2 != a3 ) { v42 = v26 - 1; if ( v27 == a6 && v26 != a5 ) { v27 = *v26; v42 = v26; } v31 = (*(long long ( **)(long long, char *, char *))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v42, a5); v32 = v31; if ( v31 < 2 ) v31 = 0; v40 = v31; v33 = (*(long long ( **)(long long, char *, char *))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v42, a5); v34 = 1; if ( v33 >= 2 ) { v34 = (*(long long ( **)(long long, char *, char *, long long))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v42, a5, 1LL); if ( v34 < 2 ) v34 = 0; } v39 = (_DWORD)v42 + v34; v46 = *(_BYTE *)(*(_QWORD *)(a1 + 88) + v27); do { if ( a2 >= a3 ) return v11; v35 = a2; while ( v32 >= 2 ) { a2 = &v35[v40]; if ( a2 <= a3 && !(unsigned int)bcmp(v35, v42, v40) ) goto LABEL_71; LABEL_66: v36 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v35, a3); v37 = 1LL; if ( v36 >= 2 ) { v37 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v35, a3); if ( (int)v37 < 2 ) v37 = 0LL; } v35 += v37; if ( v35 >= a3 ) return v11; } if ( (*(int ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v35, a3) > 1 || *(_BYTE *)(*(_QWORD *)(a1 + 88) + *v35) != v46 ) { goto LABEL_66; } a2 = v35 + 1; LABEL_71: v38 = my_wildcmp_mb_impl(a1, (_DWORD)a2, (_DWORD)a3, v39, (_DWORD)a5, a6, a7, a8, a9 + 1); if ( v38 <= 0 ) return (unsigned int)v38; } while ( a2 != a3 ); } } } return v11; }
my_wildcmp_mb_impl: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV dword ptr [RBP + -0x44],R9D MOV qword ptr [RBP + -0x40],R8 MOV R15,RCX MOV qword ptr [RBP + -0x58],RDX MOV R12,RSI MOV qword ptr [RBP + -0x38],RDI MOV EAX,dword ptr [RBP + 0x20] MOV qword ptr [RBP + -0x68],RAX LEA RAX,[0xd08998] MOV RAX,qword ptr [RAX] TEST RAX,RAX JZ 0x001b32cb MOV EDI,dword ptr [RBP + 0x20] CALL RAX MOV R14D,0x1 TEST EAX,EAX JNZ 0x001b3466 LAB_001b32cb: MOV EDI,dword ptr [RBP + 0x10] MOV R14D,0xffffffff LAB_001b32d4: CMP R15,qword ptr [RBP + -0x40] JZ 0x001b3458 MOV AL,byte ptr [R15] MOVSX ECX,AL MOV EDX,dword ptr [RBP + 0x18] CMP ECX,EDX SETZ SIL CMP ECX,EDI SETZ DL OR SIL,DL MOV R13,qword ptr [RBP + -0x58] JZ 0x001b3394 LAB_001b32ff: TEST DL,DL JZ 0x001b3381 INC R15 MOV RAX,R15 MOV RBX,qword ptr [RBP + -0x38] LAB_001b330d: CMP R12,R13 JZ 0x001b3466 MOV R15,RAX MOV RAX,qword ptr [RBX + 0xb8] MOV RDI,RBX MOV RSI,R12 MOV RDX,R13 CALL qword ptr [RAX + 0xc0] MOV ECX,EAX MOV EAX,0x1 CMP ECX,0x2 JL 0x001b335c MOV RAX,qword ptr [RBX + 0xb8] MOV RDI,RBX MOV RSI,R12 MOV RDX,R13 CALL qword ptr [RAX + 0xc0] CMP EAX,0x2 MOV ECX,0x0 CMOVL EAX,ECX LAB_001b335c: ADD R12,RAX CMP R15,qword ptr [RBP + -0x40] MOV EDI,dword ptr [RBP + 0x10] JNC 0x001b3374 MOVSX ECX,byte ptr [R15] LEA RAX,[R15 + 0x1] CMP ECX,EDI JZ 0x001b330d LAB_001b3374: CMP R15,qword ptr [RBP + -0x40] JZ 0x001b345c MOV AL,byte ptr [R15] LAB_001b3381: MOVSX EAX,AL MOV ECX,dword ptr [RBP + 0x18] CMP EAX,ECX JNZ 0x001b32d4 JMP 0x001b3478 LAB_001b3394: LEA RBX,[R15 + 0x1] MOV RDX,qword ptr [RBP + -0x40] CMP RBX,RDX CMOVZ RBX,R15 CMP ECX,dword ptr [RBP + -0x44] CMOVNZ RBX,R15 MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,RBX CALL qword ptr [RAX + 0xc0] CMP EAX,0x2 JGE 0x001b33f8 MOV R14D,0x1 CMP R12,R13 JZ 0x001b3466 MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x58] MOVZX ECX,byte ptr [RBX] MOV CL,byte ptr [RAX + RCX*0x1] MOVZX EDX,byte ptr [R12] CMP CL,byte ptr [RAX + RDX*0x1] MOV EDI,dword ptr [RBP + 0x10] JNZ 0x001b3466 INC RBX INC R12 MOV R15,RBX JMP 0x001b342b LAB_001b33f8: MOV R15D,EAX MOV RAX,R13 LEA R13,[R12 + R15*0x1] MOV R14D,0x1 CMP R13,RAX JA 0x001b3466 MOV RDI,R12 MOV RSI,RBX MOV RDX,R15 CALL 0x00129560 TEST EAX,EAX MOV EDI,dword ptr [RBP + 0x10] JNZ 0x001b3466 ADD RBX,R15 MOV R15,RBX MOV R12,R13 LAB_001b342b: CMP R15,qword ptr [RBP + -0x40] MOV R13,qword ptr [RBP + -0x58] JZ 0x001b345c MOV AL,byte ptr [R15] MOVSX ECX,AL CMP ECX,EDI SETZ DL MOV ESI,dword ptr [RBP + 0x18] CMP ECX,ESI JZ 0x001b32ff CMP ECX,EDI JNZ 0x001b3394 JMP 0x001b32ff LAB_001b3458: MOV R13,qword ptr [RBP + -0x58] LAB_001b345c: XOR R14D,R14D CMP R12,R13 SETNZ R14B LAB_001b3466: MOV EAX,R14D ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001b3478: LEA RAX,[R15 + 0x1] CMP RAX,qword ptr [RBP + -0x40] JZ 0x001b3508 ADD R15,0x2 XOR R13D,R13D XOR R14D,R14D LAB_001b3490: MOV BL,byte ptr [R15 + -0x1] MOVSX EAX,BL MOV ECX,dword ptr [RBP + 0x18] CMP EAX,ECX JZ 0x001b34f6 CMP EAX,EDI JNZ 0x001b3510 MOV RBX,qword ptr [RBP + -0x58] CMP R12,RBX JZ 0x001b36da MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,R12 MOV RDX,RBX CALL qword ptr [RAX + 0xc0] MOV ECX,EAX MOV EAX,0x1 CMP ECX,0x2 JL 0x001b34f0 MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,R12 MOV RDX,RBX CALL qword ptr [RAX + 0xc0] CMP EAX,0x2 CMOVL EAX,R13D LAB_001b34f0: ADD R12,RAX MOV EDI,dword ptr [RBP + 0x10] LAB_001b34f6: LEA RAX,[R15 + 0x1] CMP R15,qword ptr [RBP + -0x40] MOV R15,RAX JNZ 0x001b3490 JMP 0x001b3466 LAB_001b3508: XOR R14D,R14D JMP 0x001b3466 LAB_001b3510: MOV R14D,0xffffffff MOV R13,qword ptr [RBP + -0x58] CMP R12,R13 JZ 0x001b3466 MOVZX EAX,BL LEA RCX,[R15 + -0x1] MOV qword ptr [RBP + -0x50],RCX CMP EAX,dword ptr [RBP + -0x44] JNZ 0x001b3540 CMP R15,qword ptr [RBP + -0x40] JZ 0x001b3540 MOV BL,byte ptr [R15] MOV qword ptr [RBP + -0x50],R15 LAB_001b3540: MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x40] CALL qword ptr [RAX + 0xc0] XOR ECX,ECX CMP EAX,0x2 MOV R15D,EAX CMOVL EAX,ECX MOV dword ptr [RBP + -0x60],EAX MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x40] CALL qword ptr [RAX + 0xc0] MOV ECX,0x1 CMP EAX,0x2 JL 0x001b35b0 MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x40] CALL qword ptr [RAX + 0xc0] MOV ECX,EAX CMP EAX,0x2 MOV EAX,0x0 CMOVL ECX,EAX LAB_001b35b0: ADD RCX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x70],RCX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x58] MOVZX ECX,BL MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x29],AL MOV EAX,dword ptr [RBP + -0x60] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x68] INC EAX MOV qword ptr [RBP + -0x68],RAX LAB_001b35da: CMP R12,R13 JNC 0x001b3466 MOV RBX,R12 LAB_001b35e6: CMP R15D,0x2 JGE 0x001b361d MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,RBX MOV RDX,R13 CALL qword ptr [RAX + 0xc0] CMP EAX,0x1 JG 0x001b363e MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x58] MOVZX ECX,byte ptr [RBX] MOV DL,byte ptr [RBP + -0x29] CMP byte ptr [RAX + RCX*0x1],DL JNZ 0x001b363e JMP 0x001b3694 LAB_001b361d: MOV RAX,qword ptr [RBP + -0x60] LEA R12,[RBX + RAX*0x1] CMP R12,R13 JA 0x001b363e MOV RDI,RBX MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x60] CALL 0x00129560 TEST EAX,EAX JZ 0x001b369a LAB_001b363e: MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,RBX MOV RDX,R13 CALL qword ptr [RAX + 0xc0] MOV ECX,EAX MOV EAX,0x1 CMP ECX,0x2 JL 0x001b3683 MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,RBX MOV RDX,R13 CALL qword ptr [RAX + 0xc0] CMP EAX,0x2 MOV ECX,0x0 CMOVL EAX,ECX LAB_001b3683: ADD RBX,RAX CMP RBX,R13 JC 0x001b35e6 JMP 0x001b3466 LAB_001b3694: INC RBX MOV R12,RBX LAB_001b369a: SUB RSP,0x8 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,R12 MOV RDX,R13 MOV RCX,qword ptr [RBP + -0x70] MOV R8,qword ptr [RBP + -0x40] MOV R9D,dword ptr [RBP + -0x44] PUSH qword ptr [RBP + -0x68] MOV EAX,dword ptr [RBP + 0x18] PUSH RAX MOV EAX,dword ptr [RBP + 0x10] PUSH RAX CALL 0x001b327b ADD RSP,0x20 TEST EAX,EAX JLE 0x001b36e5 CMP R12,R13 JNZ 0x001b35da JMP 0x001b3466 LAB_001b36da: MOV R14D,0xffffffff JMP 0x001b3466 LAB_001b36e5: MOV R14D,EAX JMP 0x001b3466
uint my_wildcmp_mb_impl(long param_1,byte *param_2,byte *param_3,byte *param_4,byte *param_5, uint param_6,uint param_7,uint param_8,int param_9) { char cVar1; byte bVar2; int iVar3; uint uVar4; uint uVar5; ulong uVar6; ulong uVar7; uint uVar8; byte *__s2; byte *pbVar9; bool bVar10; byte *local_58; if ((my_string_stack_guard != (code *)0x0) && (iVar3 = (*my_string_stack_guard)(param_9), iVar3 != 0)) { return 1; } uVar4 = 0xffffffff; do { if (param_4 == param_5) { LAB_001b345c: return (uint)(param_2 != param_3); } bVar2 = *param_4; uVar8 = (uint)(char)bVar2; bVar10 = uVar8 == param_7; pbVar9 = param_2; if (uVar8 != param_8 && !bVar10) { do { __s2 = param_4 + 1; if (param_4 + 1 == param_5) { __s2 = param_4; } if (uVar8 != param_6) { __s2 = param_4; } uVar4 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,__s2); if ((int)uVar4 < 2) { if (pbVar9 == param_3) { return 1; } if (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*__s2) != *(char *)(*(long *)(param_1 + 0x58) + (ulong)*pbVar9)) { return 1; } param_4 = __s2 + 1; param_2 = pbVar9 + 1; } else { uVar6 = (ulong)uVar4; param_2 = pbVar9 + uVar6; if (param_3 < param_2) { return 1; } iVar3 = bcmp(pbVar9,__s2,uVar6); if (iVar3 != 0) { return 1; } param_4 = __s2 + uVar6; } uVar4 = 1; if (param_4 == param_5) goto LAB_001b345c; bVar2 = *param_4; uVar8 = (uint)(char)bVar2; bVar10 = uVar8 == param_7; } while ((uVar8 != param_8) && (pbVar9 = param_2, uVar8 != param_7)); } if (bVar10) { do { param_4 = param_4 + 1; if (param_2 == param_3) { return uVar4; } iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3); uVar6 = 1; if (1 < iVar3) { uVar8 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3); uVar6 = (ulong)uVar8; if ((int)uVar8 < 2) { uVar6 = 0; } } param_2 = param_2 + uVar6; } while ((param_4 < param_5) && ((int)(char)*param_4 == param_7)); if (param_4 == param_5) goto LAB_001b345c; bVar2 = *param_4; } } while ((int)(char)bVar2 != param_8); if (param_4 + 1 != param_5) { pbVar9 = param_4 + 2; do { bVar2 = pbVar9[-1]; if ((int)(char)bVar2 != param_8) { if ((int)(char)bVar2 != param_7) { if (param_2 == param_3) { return 0xffffffff; } local_58 = pbVar9 + -1; if ((bVar2 == param_6) && (pbVar9 != param_5)) { bVar2 = *pbVar9; local_58 = pbVar9; } uVar8 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,local_58,param_5); uVar4 = uVar8; if ((int)uVar8 < 2) { uVar4 = 0; } iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,local_58,param_5); uVar6 = 1; if (1 < iVar3) { uVar5 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,local_58,param_5); uVar6 = (ulong)uVar5; if ((int)uVar5 < 2) { uVar6 = 0; } } cVar1 = *(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar2); goto LAB_001b35da; } if (param_2 == param_3) { return 0xffffffff; } iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3); uVar6 = 1; if (1 < iVar3) { uVar4 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3); uVar6 = (ulong)uVar4; if ((int)uVar4 < 2) { uVar6 = 0; } } param_2 = param_2 + uVar6; } bVar10 = pbVar9 != param_5; pbVar9 = pbVar9 + 1; } while (bVar10); } return 0; LAB_001b35da: if (param_3 <= param_2) { return 0xffffffff; } do { if ((int)uVar8 < 2) { iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3); if ((iVar3 < 2) && (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_2) == cVar1)) break; } else { pbVar9 = param_2 + uVar4; if ((pbVar9 <= param_3) && (iVar3 = bcmp(param_2,local_58,(ulong)uVar4), iVar3 == 0)) goto LAB_001b369a; } iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3); uVar7 = 1; if (1 < iVar3) { uVar5 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3); uVar7 = (ulong)uVar5; if ((int)uVar5 < 2) { uVar7 = 0; } } param_2 = param_2 + uVar7; if (param_3 <= param_2) { return 0xffffffff; } } while( true ); pbVar9 = param_2 + 1; LAB_001b369a: uVar5 = my_wildcmp_mb_impl(param_1,pbVar9,param_3,local_58 + uVar6,param_5,param_6,param_7,param_8 ,param_9 + 1); if ((int)uVar5 < 1) { return uVar5; } param_2 = pbVar9; if (pbVar9 == param_3) { return 0xffffffff; } goto LAB_001b35da; }
29,389
qdevtools::QObjectTreeModel::setRoot(QObject*)
HuaiminNotSleepYet[P]QDevTools/qdevtools.cpp
void QObjectTreeModel::setRoot(QObject* value) { setRoot(value ? QObjectList{value} : QObjectList{}); }
O1
cpp
qdevtools::QObjectTreeModel::setRoot(QObject*): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx testq %rsi, %rsi je 0x1156f movq %rsi, %r14 movq %rsp, %r15 movl $0x8, %esi movl $0x8, %edx movl $0x1, %ecx movq %r15, %rdi movl $0x1, %r8d callq 0xf1d0 movq %rax, 0x8(%r15) movq $0x0, 0x10(%r15) movq %r14, (%rax) movq $0x1, 0x10(%r15) jmp 0x1157f xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq %rsp, %rsi movq %rbx, %rdi callq 0x114de movq (%rsp), %rax testq %rax, %rax je 0x115ab lock decl (%rax) jne 0x115ab movq (%rsp), %rdi movl $0x8, %esi movl $0x8, %edx callq 0xf610 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq (%rsp), %rdi testq %rdi, %rdi je 0x115c9 movq %rsp, %rsi callq 0x100e4 movq %rbx, %rdi callq 0xf410 nop
_ZN9qdevtools16QObjectTreeModel7setRootEP7QObject: push r15 push r14 push rbx sub rsp, 20h mov rbx, rdi test rsi, rsi jz short loc_1156F mov r14, rsi mov r15, rsp mov esi, 8 mov edx, 8 mov ecx, 1 mov rdi, r15 mov r8d, 1 call __ZN10QArrayData8allocateEPPS_xxxNS_16AllocationOptionE; QArrayData::allocate(QArrayData**,long long,long long,long long,QArrayData::AllocationOption) mov [r15+8], rax mov qword ptr [r15+10h], 0 mov [rax], r14 mov qword ptr [r15+10h], 1 jmp short loc_1157F loc_1156F: xorps xmm0, xmm0 movaps [rsp+38h+var_38], xmm0 mov [rsp+38h+var_28], 0 loc_1157F: mov rsi, rsp mov rdi, rbx; this call _ZN9qdevtools16QObjectTreeModel7setRootERK5QListIP7QObjectE; qdevtools::QObjectTreeModel::setRoot(QList<QObject *> const&) mov rax, qword ptr [rsp+38h+var_38] test rax, rax jz short loc_115AB lock dec dword ptr [rax] jnz short loc_115AB mov rdi, qword ptr [rsp+38h+var_38] mov esi, 8 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_115AB: add rsp, 20h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+0] test rdi, rdi jz short loc_115C9 mov rsi, rsp call _ZN9qdevtools16QObjectTreeModel7setRootEP7QObject_cold_1; qdevtools::QObjectTreeModel::setRoot(QObject *) [clone] loc_115C9: mov rdi, rbx call __Unwind_Resume
long long qdevtools::QObjectTreeModel::setRoot(qdevtools::QObjectTreeModel *this, QObject *a2) { long long result; // rax __int128 v3; // [rsp+0h] [rbp-38h] BYREF long long v4; // [rsp+10h] [rbp-28h] if ( a2 ) { *((_QWORD *)&v3 + 1) = QArrayData::allocate(&v3, 8LL, 8LL, 1LL, 1LL); **((_QWORD **)&v3 + 1) = a2; v4 = 1LL; } else { v3 = 0LL; v4 = 0LL; } qdevtools::QObjectTreeModel::setRoot(this, (long long)&v3); result = v3; if ( (_QWORD)v3 ) { if ( !_InterlockedDecrement((volatile signed __int32 *)v3) ) return QArrayData::deallocate(v3, 8LL); } return result; }
setRoot: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,RDI TEST RSI,RSI JZ 0x0011156f MOV R14,RSI MOV R15,RSP MOV ESI,0x8 MOV EDX,0x8 MOV ECX,0x1 MOV RDI,R15 MOV R8D,0x1 CALL 0x0010f1d0 MOV qword ptr [R15 + 0x8],RAX MOV qword ptr [R15 + 0x10],0x0 MOV qword ptr [RAX],R14 MOV qword ptr [R15 + 0x10],0x1 JMP 0x0011157f LAB_0011156f: XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],0x0 LAB_0011157f: MOV RSI,RSP MOV RDI,RBX CALL 0x001114de LAB_0011158a: MOV RAX,qword ptr [RSP] TEST RAX,RAX JZ 0x001115ab DEC.LOCK dword ptr [RAX] JNZ 0x001115ab MOV RDI,qword ptr [RSP] MOV ESI,0x8 MOV EDX,0x8 CALL 0x0010f610 LAB_001115ab: ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* qdevtools::QObjectTreeModel::setRoot(QObject*) */ void __thiscall qdevtools::QObjectTreeModel::setRoot(QObjectTreeModel *this,QObject *param_1) { QArrayData *local_38; int8 *puStack_30; ulong local_28; if (param_1 == (QObject *)0x0) { local_38 = (QArrayData *)0x0; puStack_30 = (int8 *)0x0; } else { puStack_30 = (int8 *)QArrayData::allocate(&local_38,8,8,1,1); *puStack_30 = param_1; } /* try { // try from 0011157f to 00111589 has its CatchHandler @ 001115b5 */ local_28 = (ulong)(param_1 != (QObject *)0x0); setRoot(this,(QList *)&local_38); if (local_38 != (QArrayData *)0x0) { LOCK(); *(int *)local_38 = *(int *)local_38 + -1; UNLOCK(); if (*(int *)local_38 == 0) { QArrayData::deallocate(local_38,8,8); } } return; }
29,390
qdevtools::QObjectTreeModel::setRoot(QObject*)
HuaiminNotSleepYet[P]QDevTools/qdevtools.cpp
void QObjectTreeModel::setRoot(QObject* value) { setRoot(value ? QObjectList{value} : QObjectList{}); }
O3
cpp
qdevtools::QObjectTreeModel::setRoot(QObject*): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx testq %rsi, %rsi je 0x11563 movq %rsi, %r14 movq %rsp, %r15 movl $0x8, %esi movl $0x8, %edx movl $0x1, %ecx movq %r15, %rdi movl $0x1, %r8d callq 0xf1d0 movq %rax, 0x8(%r15) movq %r14, (%rax) movq $0x1, 0x10(%r15) jmp 0x11573 xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq %rsp, %rsi movq %rbx, %rdi callq 0x114da movq (%rsp), %rax testq %rax, %rax je 0x1159f lock decl (%rax) jne 0x1159f movq (%rsp), %rdi movl $0x8, %esi movl $0x8, %edx callq 0xf610 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq (%rsp), %rdi testq %rdi, %rdi je 0x115bd movq %rsp, %rsi callq 0x100e4 movq %rbx, %rdi callq 0xf410 nop
_ZN9qdevtools16QObjectTreeModel7setRootEP7QObject: push r15 push r14 push rbx sub rsp, 20h mov rbx, rdi test rsi, rsi jz short loc_11563 mov r14, rsi mov r15, rsp mov esi, 8 mov edx, 8 mov ecx, 1 mov rdi, r15 mov r8d, 1 call __ZN10QArrayData8allocateEPPS_xxxNS_16AllocationOptionE; QArrayData::allocate(QArrayData**,long long,long long,long long,QArrayData::AllocationOption) mov [r15+8], rax mov [rax], r14 mov qword ptr [r15+10h], 1 jmp short loc_11573 loc_11563: xorps xmm0, xmm0 movaps [rsp+38h+var_38], xmm0 mov [rsp+38h+var_28], 0 loc_11573: mov rsi, rsp mov rdi, rbx; this call _ZN9qdevtools16QObjectTreeModel7setRootERK5QListIP7QObjectE; qdevtools::QObjectTreeModel::setRoot(QList<QObject *> const&) mov rax, qword ptr [rsp+38h+var_38] test rax, rax jz short loc_1159F lock dec dword ptr [rax] jnz short loc_1159F mov rdi, qword ptr [rsp+38h+var_38] mov esi, 8 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_1159F: add rsp, 20h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+0] test rdi, rdi jz short loc_115BD mov rsi, rsp call _ZN9qdevtools16QObjectTreeModel7setRootEP7QObject_cold_1; qdevtools::QObjectTreeModel::setRoot(QObject *) [clone] loc_115BD: mov rdi, rbx call __Unwind_Resume
long long qdevtools::QObjectTreeModel::setRoot(qdevtools::QObjectTreeModel *this, QObject *a2) { long long result; // rax __int128 v3; // [rsp+0h] [rbp-38h] BYREF long long v4; // [rsp+10h] [rbp-28h] if ( a2 ) { *((_QWORD *)&v3 + 1) = QArrayData::allocate(&v3, 8LL, 8LL, 1LL, 1LL); **((_QWORD **)&v3 + 1) = a2; v4 = 1LL; } else { v3 = 0LL; v4 = 0LL; } qdevtools::QObjectTreeModel::setRoot(this, (long long)&v3); result = v3; if ( (_QWORD)v3 ) { if ( !_InterlockedDecrement((volatile signed __int32 *)v3) ) return QArrayData::deallocate(v3, 8LL); } return result; }
setRoot: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,RDI TEST RSI,RSI JZ 0x00111563 MOV R14,RSI MOV R15,RSP MOV ESI,0x8 MOV EDX,0x8 MOV ECX,0x1 MOV RDI,R15 MOV R8D,0x1 CALL 0x0010f1d0 MOV qword ptr [R15 + 0x8],RAX MOV qword ptr [RAX],R14 MOV qword ptr [R15 + 0x10],0x1 JMP 0x00111573 LAB_00111563: XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],0x0 LAB_00111573: MOV RSI,RSP MOV RDI,RBX CALL 0x001114da LAB_0011157e: MOV RAX,qword ptr [RSP] TEST RAX,RAX JZ 0x0011159f DEC.LOCK dword ptr [RAX] JNZ 0x0011159f MOV RDI,qword ptr [RSP] MOV ESI,0x8 MOV EDX,0x8 CALL 0x0010f610 LAB_0011159f: ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* qdevtools::QObjectTreeModel::setRoot(QObject*) */ void __thiscall qdevtools::QObjectTreeModel::setRoot(QObjectTreeModel *this,QObject *param_1) { QArrayData *local_38; int8 *puStack_30; ulong local_28; if (param_1 == (QObject *)0x0) { local_38 = (QArrayData *)0x0; puStack_30 = (int8 *)0x0; } else { puStack_30 = (int8 *)QArrayData::allocate(&local_38,8,8,1,1); *puStack_30 = param_1; } /* try { // try from 00111573 to 0011157d has its CatchHandler @ 001115a9 */ local_28 = (ulong)(param_1 != (QObject *)0x0); setRoot(this,(QList *)&local_38); if (local_38 != (QArrayData *)0x0) { LOCK(); *(int *)local_38 = *(int *)local_38 + -1; UNLOCK(); if (*(int *)local_38 == 0) { QArrayData::deallocate(local_38,8,8); } } return; }
29,391
moodycamel::ConcurrentQueue<std::__n4861::coroutine_handle<void>, moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer::new_block_index(unsigned long)
AlayaLite/build_O3/_deps/concurrentqueue-src/concurrentqueue.h
bool new_block_index(size_t numberOfFilledSlotsToExpose) { auto prevBlockSizeMask = pr_blockIndexSize - 1; // Create the new block pr_blockIndexSize <<= 1; auto newRawPtr = static_cast<char*>((Traits::malloc)(sizeof(BlockIndexHeader) + std::alignment_of<BlockIndexEntry>::value - 1 + sizeof(BlockIndexEntry) * pr_blockIndexSize)); if (newRawPtr == nullptr) { pr_blockIndexSize >>= 1; // Reset to allow graceful retry return false; } auto newBlockIndexEntries = reinterpret_cast<BlockIndexEntry*>(details::align_for<BlockIndexEntry>(newRawPtr + sizeof(BlockIndexHeader))); // Copy in all the old indices, if any size_t j = 0; if (pr_blockIndexSlotsUsed != 0) { auto i = (pr_blockIndexFront - pr_blockIndexSlotsUsed) & prevBlockSizeMask; do { newBlockIndexEntries[j++] = pr_blockIndexEntries[i]; i = (i + 1) & prevBlockSizeMask; } while (i != pr_blockIndexFront); } // Update everything auto header = new (newRawPtr) BlockIndexHeader; header->size = pr_blockIndexSize; header->front.store(numberOfFilledSlotsToExpose - 1, std::memory_order_relaxed); header->entries = newBlockIndexEntries; header->prev = pr_blockIndexRaw; // we link the new block to the old one so we can free it later pr_blockIndexFront = j; pr_blockIndexEntries = newBlockIndexEntries; pr_blockIndexRaw = newRawPtr; blockIndex.store(header, std::memory_order_release); return true; }
O3
c
moodycamel::ConcurrentQueue<std::__n4861::coroutine_handle<void>, moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer::new_block_index(unsigned long): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x68(%rdi), %r12 leaq (%r12,%r12), %r15 movq %r15, 0x68(%rdi) movq %r12, %rdi shlq $0x5, %rdi addq $0x27, %rdi callq 0x11a80 testq %rax, %rax je 0x2ad1d leaq 0x20(%rax), %rcx negl %ecx andl $0x7, %ecx addq %rax, %rcx addq $0x20, %rcx movq 0x60(%rbx), %rdx testq %rdx, %rdx je 0x2ad28 decq %r12 movq 0x70(%rbx), %rsi movq 0x78(%rbx), %rdi movq %rsi, %r8 subq %rdx, %r8 andq %r12, %r8 xorl %edx, %edx movq %rcx, %r9 movq %r8, %r10 shlq $0x4, %r10 incq %rdx movups (%rdi,%r10), %xmm0 movups %xmm0, (%r9) incq %r8 andq %r12, %r8 addq $0x10, %r9 cmpq %rsi, %r8 jne 0x2acf9 jmp 0x2ad2a btrq $0x3f, %r12 movq %r12, 0x68(%rbx) jmp 0x2ad56 xorl %edx, %edx movq %r15, (%rax) decq %r14 movq %r14, 0x8(%rax) movq %rcx, 0x10(%rax) movq 0x80(%rbx), %rsi movq %rsi, 0x18(%rax) movq %rdx, 0x70(%rbx) movq %rcx, 0x78(%rbx) movq %rax, 0x80(%rbx) movq %rax, 0x58(%rbx) testq %rax, %rax setne %al addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN10moodycamel15ConcurrentQueueINSt7__n486116coroutine_handleIvEENS_28ConcurrentQueueDefaultTraitsEE16ExplicitProducer15new_block_indexEm: push r15 push r14 push r12 push rbx push rax mov r14, rsi mov rbx, rdi mov r12, [rdi+68h] lea r15, [r12+r12] mov [rdi+68h], r15 mov rdi, r12 shl rdi, 5 add rdi, 27h ; ''' call _malloc test rax, rax jz short loc_2AD1D lea rcx, [rax+20h] neg ecx and ecx, 7 add rcx, rax add rcx, 20h ; ' ' mov rdx, [rbx+60h] test rdx, rdx jz short loc_2AD28 dec r12 mov rsi, [rbx+70h] mov rdi, [rbx+78h] mov r8, rsi sub r8, rdx and r8, r12 xor edx, edx mov r9, rcx loc_2ACF9: mov r10, r8 shl r10, 4 inc rdx movups xmm0, xmmword ptr [rdi+r10] movups xmmword ptr [r9], xmm0 inc r8 and r8, r12 add r9, 10h cmp r8, rsi jnz short loc_2ACF9 jmp short loc_2AD2A loc_2AD1D: btr r12, 3Fh ; '?' mov [rbx+68h], r12 jmp short loc_2AD56 loc_2AD28: xor edx, edx loc_2AD2A: mov [rax], r15 dec r14 mov [rax+8], r14 mov [rax+10h], rcx mov rsi, [rbx+80h] mov [rax+18h], rsi mov [rbx+70h], rdx mov [rbx+78h], rcx mov [rbx+80h], rax mov [rbx+58h], rax loc_2AD56: test rax, rax setnz al add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
bool moodycamel::ConcurrentQueue<std::__n4861::coroutine_handle<void>,moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer::new_block_index( _QWORD *a1, long long a2) { long long v4; // r12 long long v5; // r15 long long *v6; // rax long long v7; // rcx long long v8; // rdx long long v9; // r12 long long v10; // rsi long long v11; // rdi long long v12; // r8 long long v13; // rdx _OWORD *v14; // r9 v4 = a1[13]; v5 = 2 * v4; a1[13] = 2 * v4; v6 = (long long *)malloc(32 * v4 + 39); if ( v6 ) { v7 = (long long)v6 + (-((_DWORD)v6 + 32) & 7) + 32; v8 = a1[12]; if ( v8 ) { v9 = v4 - 1; v10 = a1[14]; v11 = a1[15]; v12 = v9 & (a1[14] - v8); v13 = 0LL; v14 = (_OWORD *)((char *)v6 + (-((_DWORD)v6 + 32) & 7) + 32); do { ++v13; *v14 = *(_OWORD *)(v11 + 16 * v12); v12 = v9 & (v12 + 1); ++v14; } while ( v12 != v10 ); } else { v13 = 0LL; } *v6 = v5; v6[1] = a2 - 1; v6[2] = v7; v6[3] = a1[16]; a1[14] = v13; a1[15] = v7; a1[16] = v6; a1[11] = v6; } else { a1[13] = v4 & 0x7FFFFFFFFFFFFFFFLL; } return v6 != 0LL; }
new_block_index: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV R12,qword ptr [RDI + 0x68] LEA R15,[R12 + R12*0x1] MOV qword ptr [RDI + 0x68],R15 MOV RDI,R12 SHL RDI,0x5 ADD RDI,0x27 CALL 0x00111a80 TEST RAX,RAX JZ 0x0012ad1d LEA RCX,[RAX + 0x20] NEG ECX AND ECX,0x7 ADD RCX,RAX ADD RCX,0x20 MOV RDX,qword ptr [RBX + 0x60] TEST RDX,RDX JZ 0x0012ad28 DEC R12 MOV RSI,qword ptr [RBX + 0x70] MOV RDI,qword ptr [RBX + 0x78] MOV R8,RSI SUB R8,RDX AND R8,R12 XOR EDX,EDX MOV R9,RCX LAB_0012acf9: MOV R10,R8 SHL R10,0x4 INC RDX MOVUPS XMM0,xmmword ptr [RDI + R10*0x1] MOVUPS xmmword ptr [R9],XMM0 INC R8 AND R8,R12 ADD R9,0x10 CMP R8,RSI JNZ 0x0012acf9 JMP 0x0012ad2a LAB_0012ad1d: BTR R12,0x3f MOV qword ptr [RBX + 0x68],R12 JMP 0x0012ad56 LAB_0012ad28: XOR EDX,EDX LAB_0012ad2a: MOV qword ptr [RAX],R15 DEC R14 MOV qword ptr [RAX + 0x8],R14 MOV qword ptr [RAX + 0x10],RCX MOV RSI,qword ptr [RBX + 0x80] MOV qword ptr [RAX + 0x18],RSI MOV qword ptr [RBX + 0x70],RDX MOV qword ptr [RBX + 0x78],RCX MOV qword ptr [RBX + 0x80],RAX MOV qword ptr [RBX + 0x58],RAX LAB_0012ad56: TEST RAX,RAX SETNZ AL ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* moodycamel::ConcurrentQueue<std::__n4861::coroutine_handle<void>, moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer::new_block_index(unsigned long) */ bool __thiscall moodycamel:: ConcurrentQueue<std::__n4861::coroutine_handle<void>,moodycamel::ConcurrentQueueDefaultTraits>:: ExplicitProducer::new_block_index(ExplicitProducer *this,ulong param_1) { int8 *puVar1; ulong uVar2; ulong uVar3; long lVar4; int8 uVar5; long *plVar6; int8 *puVar7; long lVar8; ulong uVar9; int8 *puVar10; uVar2 = *(ulong *)(this + 0x68); *(ulong *)(this + 0x68) = uVar2 * 2; plVar6 = (long *)malloc(uVar2 * 0x20 + 0x27); if (plVar6 == (long *)0x0) { *(ulong *)(this + 0x68) = uVar2 & 0x7fffffffffffffff; } else { puVar7 = (int8 *)((long)plVar6 + (ulong)(-((int)plVar6 + 0x20) & 7) + 0x20); if (*(long *)(this + 0x60) == 0) { lVar8 = 0; } else { uVar3 = *(ulong *)(this + 0x70); lVar4 = *(long *)(this + 0x78); uVar9 = uVar3 - *(long *)(this + 0x60) & uVar2 - 1; lVar8 = 0; puVar10 = puVar7; do { lVar8 = lVar8 + 1; puVar1 = (int8 *)(lVar4 + uVar9 * 0x10); uVar5 = puVar1[1]; *puVar10 = *puVar1; puVar10[1] = uVar5; uVar9 = uVar9 + 1 & uVar2 - 1; puVar10 = puVar10 + 2; } while (uVar9 != uVar3); } *plVar6 = uVar2 * 2; plVar6[1] = param_1 - 1; plVar6[2] = (long)puVar7; plVar6[3] = *(long *)(this + 0x80); *(long *)(this + 0x70) = lVar8; *(int8 **)(this + 0x78) = puVar7; *(long **)(this + 0x80) = plVar6; *(long **)(this + 0x58) = plVar6; } return plVar6 != (long *)0x0; }
29,392
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(); }
O1
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 0x28bea leaq 0xa8(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x289b6 movzbl 0xc0(%r14), %ecx leaq 0xc8(%rsp), %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x2a380 movq 0xb8(%rsp), %rax testq %rax, %rax je 0x28a83 leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0xc8(%rsp), %rsi movq %r14, %rdi callq 0x2a47a testb %bpl, %bpl je 0x28bbf leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x29588 movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x28bbf movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x2b3a0 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 0x9618e(%rip), %rsi # 0xbec80 leaq 0x9618c(%rip), %rdx # 0xbec85 leaq 0x8(%rsp), %rdi callq 0x32ea4 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x2b658 leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x2b45a leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x2b35a leaq 0xc432e(%rip), %rax # 0xece88 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x19d80 leaq 0x68(%rsp), %rdi callq 0x19c80 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28b8d movq 0x38(%rsp), %rsi incq %rsi callq 0x196b0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x28ba4 movq 0x18(%rsp), %rsi incq %rsi callq 0x196b0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28bbf movq 0x58(%rsp), %rsi incq %rsi callq 0x196b0 movb 0x140(%rsp), %bpl cmpb $0x1, %bpl jne 0x28dad leaq 0x1a0(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) jmp 0x28dd3 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 0x2ba38 testb %bpl, %bpl je 0x28d42 leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x29588 movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x28d42 movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x2b3a0 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 0x9600b(%rip), %rsi # 0xbec80 leaq 0x96009(%rip), %rdx # 0xbec85 leaq 0x8(%rsp), %rdi callq 0x32ea4 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x2b658 leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x2b45a leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x2c8ee leaq 0xc41ab(%rip), %rax # 0xece88 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x19d80 leaq 0x68(%rsp), %rdi callq 0x19c80 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28d10 movq 0x38(%rsp), %rsi incq %rsi callq 0x196b0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x28d27 movq 0x18(%rsp), %rsi incq %rsi callq 0x196b0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28d42 movq 0x58(%rsp), %rsi incq %rsi callq 0x196b0 movb 0xf0(%rsp), %bpl cmpb $0x1, %bpl jne 0x28d8e leaq 0x180(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x28fd0 movq %rbx, %rdi movq %r14, %rsi callq 0x2b96e movq %r14, %rdi xorl %esi, %esi callq 0x28fd0 movq %r14, %rdi callq 0x2e790 movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x28e0a movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x196b0 jmp 0x28e0a cmpb $0x9, (%rbx) jne 0x28dfd leaq 0x190(%rsp), %r14 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x28fd0 movq %r14, %rdi movl $0x1, %esi callq 0x28fd0 movq %rbx, %rdi movq %r14, %rsi callq 0x2b96e movq %r14, %rdi xorl %esi, %esi callq 0x28fd0 movq %r14, %rdi callq 0x2e790 leaq 0xc8(%rsp), %rdi callq 0x2b9b8 testb %bpl, %bpl jne 0x28e1c movq %rbx, %rdi movl $0x1, %esi callq 0x28fd0 addq $0x1b0, %rsp # imm = 0x1B0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0xc4052(%rip), %rax # 0xece88 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x19d80 leaq 0x68(%rsp), %rdi callq 0x19c80 jmp 0x28e53 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28e73 movq 0x38(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x28e73 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x28e8f movq 0x18(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x28e8f movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28f3f movq 0x58(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x28f3f jmp 0x28f3c movq %rax, %rbx leaq 0xc3fc6(%rip), %rax # 0xece88 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x19d80 leaq 0x68(%rsp), %rdi callq 0x19c80 jmp 0x28edf movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28eff movq 0x38(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x28eff movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x28f1b movq 0x18(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x28f1b movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28f8d movq 0x58(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x28f8d jmp 0x28f8a jmp 0x28f82 movq %rax, %rbx movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x28f9a movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x196b0 jmp 0x28f9a movq %rax, %rbx movq 0xb8(%rsp), %rax testq %rax, %rax je 0x28f9a leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x28f9a movq %rax, %rdi callq 0x28537 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x2b9b8 movq %rbx, %rdi callq 0x19be0
_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_28BEA 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_28A83 lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax loc_28A83: 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_28BBF 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_28BBF 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_ECE88 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_28B8D mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28B8D: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_28BA4 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28BA4: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28BBF mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28BBF: mov bpl, [rsp+1D8h+var_98] cmp bpl, 1 jnz loc_28DAD lea r14, [rsp+1D8h+var_38] mov byte ptr [r14], 9 mov qword ptr [r14+8], 0 jmp loc_28DD3 loc_28BEA: 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_28D42 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_28D42 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_ECE88 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_28D10 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28D10: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_28D27 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28D27: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28D42 mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28D42: mov bpl, [rsp+1D8h+var_E8] cmp bpl, 1 jnz short loc_28D8E 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_28D8E: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_28E0A mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_28E0A loc_28DAD: cmp byte ptr [rbx], 9 jnz short loc_28DFD 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) loc_28DD3: 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_28DFD: 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_28E0A: test bpl, bpl jnz short loc_28E1C 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_28E1C: add rsp, 1B0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rax, off_ECE88 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_28E53 mov rbx, rax loc_28E53: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28E73 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_28E73 mov rbx, rax loc_28E73: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_28E8F mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_28E8F mov rbx, rax loc_28E8F: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz loc_28F3F mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_28F3F jmp loc_28F3C mov rbx, rax lea rax, off_ECE88 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_28EDF mov rbx, rax loc_28EDF: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28EFF mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_28EFF mov rbx, rax loc_28EFF: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_28F1B mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_28F1B mov rbx, rax loc_28F1B: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28F8D mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_28F8D jmp short loc_28F8A jmp short loc_28F82 loc_28F3C: mov rbx, rax loc_28F3F: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_28F9A mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_28F9A mov rbx, rax mov rax, [rsp+1D8h+var_120] test rax, rax jz short loc_28F9A lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax jmp short loc_28F9A loc_28F82: mov rdi, rax call __clang_call_terminate loc_28F8A: mov rbx, rax loc_28F8D: 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_28F9A: 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, _BYTE *a3) { _QWORD *v5; // rsi int v6; // eax _QWORD *v7; // r15 int v8; // r8d int v9; // r9d char v10; // bp char *v11; // r14 char v12; // al int v13; // eax long long v14; // r15 int v15; // r8d int v16; // r9d void *v17; // [rsp+0h] [rbp-1D8h] void *v18; // [rsp+0h] [rbp-1D8h] void *v19; // [rsp+0h] [rbp-1D8h] void *v20; // [rsp+8h] [rbp-1D0h] BYREF long long v21; // [rsp+10h] [rbp-1C8h] long long v22; // [rsp+18h] [rbp-1C0h] BYREF void *v23; // [rsp+20h] [rbp-1B8h] long long *v24; // [rsp+28h] [rbp-1B0h] BYREF long long v25; // [rsp+30h] [rbp-1A8h] long long v26; // [rsp+38h] [rbp-1A0h] BYREF long long v27; // [rsp+40h] [rbp-198h] long long *v28; // [rsp+48h] [rbp-190h] BYREF long long v29; // [rsp+50h] [rbp-188h] long long v30; // [rsp+58h] [rbp-180h] BYREF int v31; // [rsp+60h] [rbp-178h] void ( **v32)(nlohmann::json_abi_v3_11_3::detail::exception *__hidden); // [rsp+68h] [rbp-170h] BYREF long long v33; // [rsp+70h] [rbp-168h] int v34; // [rsp+78h] [rbp-160h] BYREF int v35; // [rsp+80h] [rbp-158h] int v36; // [rsp+88h] [rbp-150h] long long v37[2]; // [rsp+90h] [rbp-148h] BYREF long long v38; // [rsp+A0h] [rbp-138h] __int128 v39; // [rsp+A8h] [rbp-130h] BYREF void ( *v40)(__int128 *, __int128 *, long long); // [rsp+B8h] [rbp-120h] _BYTE *v41; // [rsp+C8h] [rbp-110h] BYREF __int128 v42; // [rsp+D0h] [rbp-108h] __int128 v43; // [rsp+E0h] [rbp-F8h] char v44; // [rsp+F0h] [rbp-E8h] char v45; // [rsp+F1h] [rbp-E7h] char v46; // [rsp+140h] [rbp-98h] char v47[8]; // [rsp+180h] [rbp-58h] BYREF long long v48; // [rsp+188h] [rbp-50h] _BYTE v49[8]; // [rsp+190h] [rbp-48h] BYREF long long v50; // [rsp+198h] [rbp-40h] char v51; // [rsp+1A0h] [rbp-38h] BYREF long long v52; // [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( &v39, 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( &v41, a3, &v39, *(unsigned __int8 *)(a1 + 192)); if ( v40 ) v40(&v39, &v39, 3LL); v5 = &v41; 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 = *(_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( &v28, a1 + 40); v38 = *(_QWORD *)(a1 + 88); *(_OWORD *)v37 = *(_OWORD *)(a1 + 72); v20 = &v22; std::string::_M_construct<char const*>(&v20, "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)&v24, a1, 15, (int)&v20, v8, v9, v17, (int)v20, v21, v22, (int)v23, (int)v24, v25, v26, v27); 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 *)&v32, 101, (int)v37, v18, (int)v20, v21, v22, v23, (int)v24, v25, v26, v27, (int)v28, v29, v30, v31, (int)v32, v33, v34, v35, v36, v37[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>( &v41, v7, &v28, &v32); v32 = off_ECE88; std::runtime_error::~runtime_error((std::runtime_error *)&v34); std::exception::~exception((std::exception *)&v32); if ( v24 != &v26 ) { v5 = (_QWORD *)(v26 + 1); operator delete(v24, v26 + 1); } if ( v20 != &v22 ) { v5 = (_QWORD *)(v22 + 1); operator delete(v20, v22 + 1); } if ( v28 != &v30 ) { v5 = (_QWORD *)(v30 + 1); operator delete(v28, v30 + 1); } } } v10 = v46; if ( v46 == 1 ) { v11 = &v51; v51 = 9; v52 = 0LL; } else { if ( *a3 != 9 ) { LABEL_29: 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( &v41, v5); goto LABEL_30; } v11 = v49; v49[0] = 0; v50 = 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( v49, 1LL); } 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( v11, 1LL); 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, v11); 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( v11, 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>::data::~data(v11); goto LABEL_29; } v12 = *(_BYTE *)(a1 + 192); v41 = a3; v42 = 0LL; v43 = 0LL; v44 = 0; v45 = v12; 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 ) { v13 = 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) = v13; if ( v13 != 15 ) { v14 = *(_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( &v28, a1 + 40); v38 = *(_QWORD *)(a1 + 88); *(_OWORD *)v37 = *(_OWORD *)(a1 + 72); v20 = &v22; std::string::_M_construct<char const*>(&v20, "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)&v24, a1, 15, (int)&v20, v15, v16, v17, (int)v20, v21, v22, (int)v23, (int)v24, v25, v26, v27); 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 *)&v32, 101, (int)v37, v19, (int)v20, v21, v22, v23, (int)v24, v25, v26, v27, (int)v28, v29, v30, v31, (int)v32, v33, v34, v35, v36, v37[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>( &v41, v14, &v28, &v32); v32 = off_ECE88; std::runtime_error::~runtime_error((std::runtime_error *)&v34); std::exception::~exception((std::exception *)&v32); if ( v24 != &v26 ) operator delete(v24, v26 + 1); if ( v20 != &v22 ) operator delete(v20, v22 + 1); if ( v28 != &v30 ) operator delete(v28, v30 + 1); } } v10 = v44; if ( v44 == 1 ) { v47[0] = 9; v48 = 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( v47, 1LL); 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, v47); 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( 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>::data::~data(v47); } if ( (_QWORD)v42 ) operator delete((void *)v42, v43 - v42); LABEL_30: if ( !v10 ) 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, 1LL); }
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 0x00128bea LEA R15,[RSP + 0xa8] MOV RDI,R15 MOV RSI,R14 CALL 0x001289b6 MOVZX ECX,byte ptr [R14 + 0xc0] LAB_00128a51: LEA RDI,[RSP + 0xc8] MOV RSI,RBX MOV RDX,R15 CALL 0x0012a380 MOV RAX,qword ptr [RSP + 0xb8] TEST RAX,RAX JZ 0x00128a83 LAB_00128a71: LEA RDI,[RSP + 0xa8] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00128a83: LEA RSI,[RSP + 0xc8] MOV RDI,R14 CALL 0x0012a47a TEST BPL,BPL JZ 0x00128bbf LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00129588 MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x00128bbf MOV R15,qword ptr [R14 + 0x48] LAB_00128ab9: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x0012b3a0 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_00128aeb: LEA RSI,[0x1bec80] LEA RDX,[0x1bec85] LEA RDI,[RSP + 0x8] CALL 0x00132ea4 LAB_00128b03: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x0012b658 LAB_00128b1a: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x0012b45a LAB_00128b39: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x0012b35a LEA RAX,[0x1ece88] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00119d80 LEA RDI,[RSP + 0x68] CALL 0x00119c80 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00128b8d MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001196b0 LAB_00128b8d: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00128ba4 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001196b0 LAB_00128ba4: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00128bbf MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001196b0 LAB_00128bbf: MOV BPL,byte ptr [RSP + 0x140] CMP BPL,0x1 JNZ 0x00128dad LEA R14,[RSP + 0x1a0] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 JMP 0x00128dd3 LAB_00128bea: 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_00128c0e: MOV RDI,R14 CALL 0x0012ba38 TEST BPL,BPL JZ 0x00128d42 LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00129588 MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x00128d42 MOV R15,qword ptr [R14 + 0x48] LAB_00128c3c: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x0012b3a0 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_00128c6e: LEA RSI,[0x1bec80] LEA RDX,[0x1bec85] LEA RDI,[RSP + 0x8] CALL 0x00132ea4 LAB_00128c86: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x0012b658 LAB_00128c9d: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x0012b45a LAB_00128cbc: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x0012c8ee LEA RAX,[0x1ece88] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00119d80 LEA RDI,[RSP + 0x68] CALL 0x00119c80 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00128d10 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001196b0 LAB_00128d10: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00128d27 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001196b0 LAB_00128d27: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00128d42 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001196b0 LAB_00128d42: MOV BPL,byte ptr [RSP + 0xf0] CMP BPL,0x1 JNZ 0x00128d8e LEA R14,[RSP + 0x180] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x00128fd0 MOV RDI,RBX MOV RSI,R14 CALL 0x0012b96e MOV RDI,R14 XOR ESI,ESI CALL 0x00128fd0 MOV RDI,R14 CALL 0x0012e790 LAB_00128d8e: MOV RDI,qword ptr [RSP + 0xd0] TEST RDI,RDI JZ 0x00128e0a MOV RSI,qword ptr [RSP + 0xe0] SUB RSI,RDI CALL 0x001196b0 JMP 0x00128e0a LAB_00128dad: CMP byte ptr [RBX],0x9 JNZ 0x00128dfd LEA R14,[RSP + 0x190] MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x00128fd0 LAB_00128dd3: MOV RDI,R14 MOV ESI,0x1 CALL 0x00128fd0 MOV RDI,RBX MOV RSI,R14 CALL 0x0012b96e MOV RDI,R14 XOR ESI,ESI CALL 0x00128fd0 MOV RDI,R14 CALL 0x0012e790 LAB_00128dfd: LEA RDI,[RSP + 0xc8] CALL 0x0012b9b8 LAB_00128e0a: TEST BPL,BPL JNZ 0x00128e1c MOV RDI,RBX MOV ESI,0x1 CALL 0x00128fd0 LAB_00128e1c: 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; int iVar2; char cVar3; bool bVar4; data *this_00; 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 00128c0e to 00128c2a has its CatchHandler @ 00128f3c */ 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) { iVar2 = 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) = iVar2; if (iVar2 != 0xf) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 00128c3c to 00128c48 has its CatchHandler @ 00128eb3 */ 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 00128c6e to 00128c85 has its CatchHandler @ 00128e8c */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 00128c86 to 00128c9c has its CatchHandler @ 00128e70 */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 00128c9d to 00128cbb has its CatchHandler @ 00128e50 */ _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 00128cbc to 00128cd5 has its CatchHandler @ 00128e2c */ 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_001ece88; 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); } } } cVar3 = 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); } goto LAB_00128e0a; } 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 00128a51 to 00128a63 has its CatchHandler @ 00128f5e */ 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 00128a71 to 00128a82 has its CatchHandler @ 00128f3a */ (*local_120)(local_130,local_130,3); } /* try { // try from 00128a83 to 00128aa7 has its CatchHandler @ 00128f8a */ 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) { iVar2 = 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) = iVar2; if (iVar2 != 0xf) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 00128ab9 to 00128ac5 has its CatchHandler @ 00128f38 */ 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 00128aeb to 00128b02 has its CatchHandler @ 00128f18 */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 00128b03 to 00128b19 has its CatchHandler @ 00128efc */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 00128b1a to 00128b38 has its CatchHandler @ 00128edc */ _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 00128b39 to 00128b52 has its CatchHandler @ 00128eb8 */ 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_001ece88; 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 == '\x01') { this_00 = local_38; local_38[0] = (data)0x9; local_30 = 0; LAB_00128dd3: 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(this_00,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> ::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> ::assert_invariant(SUB81(this_00,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> ::data::~data(this_00); } else if (*param_2 == (basic_json)0x9) { this_00 = local_48; local_48[0] = (data)0x0; local_40 = 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(SUB81(this_00,0)); goto LAB_00128dd3; } 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); cVar3 = local_98; LAB_00128e0a: if (cVar3 == '\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(SUB81(param_2,0)); } return; }
29,393
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 0x280fb leaq 0xa8(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x27e94 movzbl 0xc0(%r14), %ecx leaq 0xc8(%rsp), %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x297c0 movq 0xb8(%rsp), %rax testq %rax, %rax je 0x27f61 leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0xc8(%rsp), %rsi movq %r14, %rdi callq 0x298ba testb %bpl, %bpl je 0x2809d leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x28a9a movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x2809d movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x2a6a2 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 0x93ca0(%rip), %rsi # 0xbbc70 leaq 0x93c9e(%rip), %rdx # 0xbbc75 leaq 0x8(%rsp), %rdi callq 0x320e8 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x2a95a leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x2a75c leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x2a65c leaq 0xc1e80(%rip), %rax # 0xe9eb8 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x19d80 leaq 0x68(%rsp), %rdi callq 0x19c80 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2806b movq 0x38(%rsp), %rsi incq %rsi callq 0x196b0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x28082 movq 0x18(%rsp), %rsi incq %rsi callq 0x196b0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2809d movq 0x58(%rsp), %rsi incq %rsi callq 0x196b0 cmpb $0x0, 0x140(%rsp) je 0x282c3 leaq 0x1a0(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x284e2 movq %rbx, %rdi movq %r14, %rsi callq 0x2ac70 movq %r14, %rdi xorl %esi, %esi callq 0x284e2 movq %r14, %rdi callq 0x2d98e leaq 0xc8(%rsp), %rdi callq 0x2acba jmp 0x2832d 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 0x2ad3a testb %bpl, %bpl je 0x28253 leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x28a9a movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x28253 movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x2a6a2 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 0x93aea(%rip), %rsi # 0xbbc70 leaq 0x93ae8(%rip), %rdx # 0xbbc75 leaq 0x8(%rsp), %rdi callq 0x320e8 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x2a95a leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x2a75c leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x2bafc leaq 0xc1cca(%rip), %rax # 0xe9eb8 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x19d80 leaq 0x68(%rsp), %rdi callq 0x19c80 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28221 movq 0x38(%rsp), %rsi incq %rsi callq 0x196b0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x28238 movq 0x18(%rsp), %rsi incq %rsi callq 0x196b0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28253 movq 0x58(%rsp), %rsi incq %rsi callq 0x196b0 movb 0xf0(%rsp), %bpl cmpb $0x1, %bpl jne 0x2829f leaq 0x180(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x284e2 movq %rbx, %rdi movq %r14, %rsi callq 0x2ac70 movq %r14, %rdi xorl %esi, %esi callq 0x284e2 movq %r14, %rdi callq 0x2d98e movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x282bc movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x196b0 testb %bpl, %bpl je 0x28320 jmp 0x2832d cmpb $0x9, (%rbx) jne 0x28313 leaq 0x190(%rsp), %r14 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x284e2 movq %r14, %rdi movl $0x1, %esi callq 0x284e2 movq %rbx, %rdi movq %r14, %rsi callq 0x2ac70 movq %r14, %rdi xorl %esi, %esi callq 0x284e2 movq %r14, %rdi callq 0x2d98e leaq 0xc8(%rsp), %rdi callq 0x2acba movq %rbx, %rdi movl $0x1, %esi callq 0x284e2 addq $0x1b0, %rsp # imm = 0x1B0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0xc1b71(%rip), %rax # 0xe9eb8 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x19d80 leaq 0x68(%rsp), %rdi callq 0x19c80 jmp 0x28364 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28384 movq 0x38(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x28384 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x283a0 movq 0x18(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x283a0 movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28450 movq 0x58(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x28450 jmp 0x2844d movq %rax, %rbx leaq 0xc1ae5(%rip), %rax # 0xe9eb8 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x19d80 leaq 0x68(%rsp), %rdi callq 0x19c80 jmp 0x283f0 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28410 movq 0x38(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x28410 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x2842c movq 0x18(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x2842c movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2849e movq 0x58(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x2849e jmp 0x2849b jmp 0x28493 movq %rax, %rbx movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x284ab movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x196b0 jmp 0x284ab movq %rax, %rbx movq 0xb8(%rsp), %rax testq %rax, %rax je 0x284ab leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x284ab movq %rax, %rdi callq 0x27a01 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x2acba movq %rbx, %rdi callq 0x19be0 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_280FB 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_27F61 lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax loc_27F61: 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_2809D 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_2809D 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_E9EB8 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_2806B mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2806B: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_28082 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28082: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2809D mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2809D: cmp [rsp+1D8h+var_98], 0 jz loc_282C3 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_2832D loc_280FB: 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_28253 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_28253 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_E9EB8 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_28221 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28221: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_28238 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28238: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28253 mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28253: mov bpl, [rsp+1D8h+var_E8] cmp bpl, 1 jnz short loc_2829F 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_2829F: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_282BC mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_282BC: test bpl, bpl jz short loc_28320 jmp short loc_2832D loc_282C3: cmp byte ptr [rbx], 9 jnz short loc_28313 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_28313: 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_28320: 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_2832D: add rsp, 1B0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rax, off_E9EB8 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_28364 mov rbx, rax loc_28364: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28384 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_28384 mov rbx, rax loc_28384: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_283A0 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_283A0 mov rbx, rax loc_283A0: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz loc_28450 mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_28450 jmp loc_2844D mov rbx, rax lea rax, off_E9EB8 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_283F0 mov rbx, rax loc_283F0: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28410 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_28410 mov rbx, rax loc_28410: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_2842C mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_2842C mov rbx, rax loc_2842C: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2849E mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_2849E jmp short loc_2849B jmp short loc_28493 loc_2844D: mov rbx, rax loc_28450: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_284AB mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_284AB mov rbx, rax mov rax, [rsp+1D8h+var_120] test rax, rax jz short loc_284AB lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax jmp short loc_284AB loc_28493: mov rdi, rax call __clang_call_terminate loc_2849B: mov rbx, rax loc_2849E: 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_284AB: 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, _BYTE *a3) { _QWORD *v5; // rsi int v6; // eax _QWORD *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] _BYTE *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] _BYTE 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 = *(_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, 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_E9EB8; std::runtime_error::~runtime_error((std::runtime_error *)&v33); std::exception::~exception((std::exception *)&v31); if ( v23 != &v25 ) { v5 = (_QWORD *)(v25 + 1); operator delete(v23, v25 + 1); } if ( v19 != &v21 ) { v5 = (_QWORD *)(v21 + 1); operator delete(v19, v21 + 1); } if ( v27 != &v29 ) { v5 = (_QWORD *)(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, 1LL); 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, 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>::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, 1LL); 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, 1LL); 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, 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>::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_E9EB8; 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, 1LL); 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, 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>::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, 1LL); }
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 0x001280fb LEA R15,[RSP + 0xa8] MOV RDI,R15 MOV RSI,R14 CALL 0x00127e94 MOVZX ECX,byte ptr [R14 + 0xc0] LAB_00127f2f: LEA RDI,[RSP + 0xc8] MOV RSI,RBX MOV RDX,R15 CALL 0x001297c0 MOV RAX,qword ptr [RSP + 0xb8] TEST RAX,RAX JZ 0x00127f61 LAB_00127f4f: LEA RDI,[RSP + 0xa8] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00127f61: LEA RSI,[RSP + 0xc8] MOV RDI,R14 CALL 0x001298ba TEST BPL,BPL JZ 0x0012809d LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00128a9a MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x0012809d MOV R15,qword ptr [R14 + 0x48] LAB_00127f97: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x0012a6a2 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_00127fc9: LEA RSI,[0x1bbc70] LEA RDX,[0x1bbc75] LEA RDI,[RSP + 0x8] CALL 0x001320e8 LAB_00127fe1: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x0012a95a LAB_00127ff8: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x0012a75c LAB_00128017: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x0012a65c LEA RAX,[0x1e9eb8] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00119d80 LEA RDI,[RSP + 0x68] CALL 0x00119c80 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0012806b MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001196b0 LAB_0012806b: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00128082 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001196b0 LAB_00128082: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0012809d MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001196b0 LAB_0012809d: CMP byte ptr [RSP + 0x140],0x0 JZ 0x001282c3 LEA R14,[RSP + 0x1a0] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x001284e2 MOV RDI,RBX MOV RSI,R14 CALL 0x0012ac70 MOV RDI,R14 XOR ESI,ESI CALL 0x001284e2 MOV RDI,R14 CALL 0x0012d98e LEA RDI,[RSP + 0xc8] CALL 0x0012acba JMP 0x0012832d LAB_001280fb: 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_0012811f: MOV RDI,R14 CALL 0x0012ad3a TEST BPL,BPL JZ 0x00128253 LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00128a9a MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x00128253 MOV R15,qword ptr [R14 + 0x48] LAB_0012814d: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x0012a6a2 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_0012817f: LEA RSI,[0x1bbc70] LEA RDX,[0x1bbc75] LEA RDI,[RSP + 0x8] CALL 0x001320e8 LAB_00128197: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x0012a95a LAB_001281ae: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x0012a75c LAB_001281cd: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x0012bafc LEA RAX,[0x1e9eb8] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00119d80 LEA RDI,[RSP + 0x68] CALL 0x00119c80 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00128221 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001196b0 LAB_00128221: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00128238 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001196b0 LAB_00128238: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00128253 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001196b0 LAB_00128253: MOV BPL,byte ptr [RSP + 0xf0] CMP BPL,0x1 JNZ 0x0012829f LEA R14,[RSP + 0x180] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x001284e2 MOV RDI,RBX MOV RSI,R14 CALL 0x0012ac70 MOV RDI,R14 XOR ESI,ESI CALL 0x001284e2 MOV RDI,R14 CALL 0x0012d98e LAB_0012829f: MOV RDI,qword ptr [RSP + 0xd0] TEST RDI,RDI JZ 0x001282bc MOV RSI,qword ptr [RSP + 0xe0] SUB RSI,RDI CALL 0x001196b0 LAB_001282bc: TEST BPL,BPL JZ 0x00128320 JMP 0x0012832d LAB_001282c3: CMP byte ptr [RBX],0x9 JNZ 0x00128313 LEA R14,[RSP + 0x190] MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x001284e2 MOV RDI,R14 MOV ESI,0x1 CALL 0x001284e2 MOV RDI,RBX MOV RSI,R14 CALL 0x0012ac70 MOV RDI,R14 XOR ESI,ESI CALL 0x001284e2 MOV RDI,R14 CALL 0x0012d98e LAB_00128313: LEA RDI,[RSP + 0xc8] CALL 0x0012acba LAB_00128320: MOV RDI,RBX MOV ESI,0x1 CALL 0x001284e2 LAB_0012832d: 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 0012811f to 0012813b has its CatchHandler @ 0012844d */ 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 0012814d to 00128159 has its CatchHandler @ 001283c4 */ 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 0012817f to 00128196 has its CatchHandler @ 0012839d */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 00128197 to 001281ad has its CatchHandler @ 00128381 */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 001281ae to 001281cc has its CatchHandler @ 00128361 */ _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 001281cd to 001281e6 has its CatchHandler @ 0012833d */ 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_001e9eb8; 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 00127f2f to 00127f41 has its CatchHandler @ 0012846f */ 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 00127f4f to 00127f60 has its CatchHandler @ 0012844b */ (*local_120)(local_130,local_130,3); } /* try { // try from 00127f61 to 00127f85 has its CatchHandler @ 0012849b */ 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 00127f97 to 00127fa3 has its CatchHandler @ 00128449 */ 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 00127fc9 to 00127fe0 has its CatchHandler @ 00128429 */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 00127fe1 to 00127ff7 has its CatchHandler @ 0012840d */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 00127ff8 to 00128016 has its CatchHandler @ 001283ed */ _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 00128017 to 00128030 has its CatchHandler @ 001283c9 */ 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_001e9eb8; 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; }
29,394
stbi__tga_test(stbi__context*)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static int stbi__tga_test(stbi__context *s) { int res = 0; int sz, tga_color_type; stbi__get8(s); // discard Offset tga_color_type = stbi__get8(s); // color type if ( tga_color_type > 1 ) goto errorEnd; // only RGB or indexed allowed sz = stbi__get8(s); // image type if ( tga_color_type == 1 ) { // colormapped (paletted) image if (sz != 1 && sz != 9) goto errorEnd; // colortype 1 demands image type 1 or 9 stbi__skip(s,4); // skip index of first colormap entry and number of entries sz = stbi__get8(s); // check bits per palette color entry if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd; stbi__skip(s,4); // skip image x and y origin } else { // "normal" image w/o colormap if ( (sz != 2) && (sz != 3) && (sz != 10) && (sz != 11) ) goto errorEnd; // only RGB or grey allowed, +/- RLE stbi__skip(s,9); // skip colormap specification and image x/y origin } if ( stbi__get16le(s) < 1 ) goto errorEnd; // test width if ( stbi__get16le(s) < 1 ) goto errorEnd; // test height sz = stbi__get8(s); // bits per pixel if ( (tga_color_type == 1) && (sz != 8) && (sz != 16) ) goto errorEnd; // for colormapped images, bpp is size of an index if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd; res = 1; // if we got this far, everything's good and we can return 1 instead of 0 errorEnd: stbi__rewind(s); return res; }
O3
c
stbi__tga_test(stbi__context*): pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq 0xc0(%rdi), %rax movq 0xc8(%rdi), %rcx cmpq %rcx, %rax jb 0x31d02 cmpl $0x0, 0x30(%rbx) je 0x31d0c movq %rbx, %rdi callq 0x32867 movq 0xc0(%rbx), %rax movq 0xc8(%rbx), %rcx incq %rax movq %rax, 0xc0(%rbx) cmpq %rcx, %rax jb 0x31d26 cmpl $0x0, 0x30(%rbx) je 0x31d49 movq %rbx, %rdi callq 0x32867 movq 0xc0(%rbx), %rax movq %rax, %rcx incq %rax movq %rax, 0xc0(%rbx) movb (%rcx), %dl cmpb $0x1, %dl ja 0x31db5 movq 0xc8(%rbx), %rcx testb %dl, %dl sete %r14b jmp 0x31d4c movb $0x1, %r14b cmpq %rcx, %rax jb 0x31d6a cmpl $0x0, 0x30(%rbx) je 0x31dff movq %rbx, %rdi callq 0x32867 movq 0xc0(%rbx), %rax leaq 0x1(%rax), %rdx movq %rdx, 0xc0(%rbx) movb (%rax), %cl movq %rdx, %rax testb %r14b, %r14b je 0x31dbc andb $-0xa, %cl cmpb $0x2, %cl jne 0x31db5 cmpq $0x0, 0x10(%rbx) je 0x31e06 movq 0xc8(%rbx), %rdx movl %edx, %ecx subl %eax, %ecx cmpl $0x8, %ecx jg 0x31e06 movq %rdx, 0xc0(%rbx) movq 0x28(%rbx), %rdi movl $0x9, %esi subl %ecx, %esi jmp 0x31e91 xorl %ebp, %ebp jmp 0x31f1a andb $-0x9, %cl xorl %ebp, %ebp cmpb $0x1, %cl jne 0x31f1a cmpq $0x0, 0x10(%rbx) je 0x31e0f movq 0xc8(%rbx), %rdx movl %edx, %ecx subl %eax, %ecx cmpl $0x3, %ecx jg 0x31e0f movq %rdx, 0xc0(%rbx) movq 0x28(%rbx), %rdi movl $0x4, %esi subl %ecx, %esi callq *0x18(%rbx) movq 0xc0(%rbx), %rax jmp 0x31e1a xorl %ecx, %ecx jmp 0x31d7a addq $0x9, %rax jmp 0x31e9a addq $0x4, %rax movq %rax, 0xc0(%rbx) cmpq 0xc8(%rbx), %rax jb 0x31e3c cmpl $0x0, 0x30(%rbx) je 0x31f1a movq %rbx, %rdi callq 0x32867 movq 0xc0(%rbx), %rax leaq 0x1(%rax), %rcx movq %rcx, 0xc0(%rbx) movzbl (%rax), %edx cmpq $0x20, %rdx ja 0x31f1a movabsq $0x101018100, %rsi # imm = 0x101018100 btq %rdx, %rsi jae 0x31f1a cmpq $0x0, 0x10(%rbx) je 0x31e96 movq 0xc8(%rbx), %rsi movl %esi, %edx subl %ecx, %edx cmpl $0x3, %edx jg 0x31e96 movq %rsi, 0xc0(%rbx) movq 0x28(%rbx), %rdi movl $0x4, %esi subl %edx, %esi callq *0x18(%rbx) jmp 0x31ea1 addq $0x5, %rax movq %rax, 0xc0(%rbx) movq %rbx, %rdi callq 0x34bad xorl %ebp, %ebp testl %eax, %eax je 0x31f1a movq %rbx, %rdi callq 0x34bad testl %eax, %eax je 0x31f1a movq 0xc0(%rbx), %rax cmpq 0xc8(%rbx), %rax jb 0x31ee0 cmpl $0x0, 0x30(%rbx) je 0x31f2f movq %rbx, %rdi callq 0x32867 movq 0xc0(%rbx), %rax leaq 0x1(%rax), %rcx movq %rcx, 0xc0(%rbx) movb (%rax), %al testb %r14b, %r14b je 0x31f10 cmpb $0x20, %al ja 0x31f1a movzbl %al, %eax movabsq $0x101018100, %rcx # imm = 0x101018100 btq %rax, %rcx jae 0x31f1a movl $0x1, %ebp jmp 0x31f1a addb $-0x8, %al xorl %ebp, %ebp testb $-0x9, %al sete %bpl movups 0xd0(%rbx), %xmm0 movups %xmm0, 0xc0(%rbx) movl %ebp, %eax popq %rbx popq %r14 popq %rbp retq xorl %eax, %eax jmp 0x31eed
_ZL14stbi__tga_testP13stbi__context: push rbp push r14 push rbx mov rbx, rdi mov rax, [rdi+0C0h] mov rcx, [rdi+0C8h] cmp rax, rcx jb short loc_31D02 cmp dword ptr [rbx+30h], 0 jz short loc_31D0C mov rdi, rbx call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [rbx+0C0h] mov rcx, [rbx+0C8h] loc_31D02: inc rax mov [rbx+0C0h], rax loc_31D0C: cmp rax, rcx jb short loc_31D26 cmp dword ptr [rbx+30h], 0 jz short loc_31D49 mov rdi, rbx call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [rbx+0C0h] loc_31D26: mov rcx, rax inc rax mov [rbx+0C0h], rax mov dl, [rcx] cmp dl, 1 ja short loc_31DB5 mov rcx, [rbx+0C8h] test dl, dl setz r14b jmp short loc_31D4C loc_31D49: mov r14b, 1 loc_31D4C: cmp rax, rcx jb short loc_31D6A cmp dword ptr [rbx+30h], 0 jz loc_31DFF mov rdi, rbx call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [rbx+0C0h] loc_31D6A: lea rdx, [rax+1] mov [rbx+0C0h], rdx mov cl, [rax] mov rax, rdx loc_31D7A: test r14b, r14b jz short loc_31DBC and cl, 0F6h cmp cl, 2 jnz short loc_31DB5 cmp qword ptr [rbx+10h], 0 jz short loc_31E06 mov rdx, [rbx+0C8h] mov ecx, edx sub ecx, eax cmp ecx, 8 jg short loc_31E06 mov [rbx+0C0h], rdx mov rdi, [rbx+28h] mov esi, 9 sub esi, ecx jmp loc_31E91 loc_31DB5: xor ebp, ebp jmp loc_31F1A loc_31DBC: and cl, 0F7h xor ebp, ebp cmp cl, 1 jnz loc_31F1A cmp qword ptr [rbx+10h], 0 jz short loc_31E0F mov rdx, [rbx+0C8h] mov ecx, edx sub ecx, eax cmp ecx, 3 jg short loc_31E0F mov [rbx+0C0h], rdx mov rdi, [rbx+28h] mov esi, 4 sub esi, ecx call qword ptr [rbx+18h] mov rax, [rbx+0C0h] jmp short loc_31E1A loc_31DFF: xor ecx, ecx jmp loc_31D7A loc_31E06: add rax, 9 jmp loc_31E9A loc_31E0F: add rax, 4 mov [rbx+0C0h], rax loc_31E1A: cmp rax, [rbx+0C8h] jb short loc_31E3C cmp dword ptr [rbx+30h], 0 jz loc_31F1A mov rdi, rbx call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [rbx+0C0h] loc_31E3C: lea rcx, [rax+1] mov [rbx+0C0h], rcx movzx edx, byte ptr [rax] cmp rdx, 20h ; ' ' ja loc_31F1A mov rsi, 101018100h bt rsi, rdx jnb loc_31F1A cmp qword ptr [rbx+10h], 0 jz short loc_31E96 mov rsi, [rbx+0C8h] mov edx, esi sub edx, ecx cmp edx, 3 jg short loc_31E96 mov [rbx+0C0h], rsi mov rdi, [rbx+28h] mov esi, 4 sub esi, edx loc_31E91: call qword ptr [rbx+18h] jmp short loc_31EA1 loc_31E96: add rax, 5 loc_31E9A: mov [rbx+0C0h], rax loc_31EA1: mov rdi, rbx call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *) xor ebp, ebp test eax, eax jz short loc_31F1A mov rdi, rbx call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *) test eax, eax jz short loc_31F1A mov rax, [rbx+0C0h] cmp rax, [rbx+0C8h] jb short loc_31EE0 cmp dword ptr [rbx+30h], 0 jz short loc_31F2F mov rdi, rbx call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [rbx+0C0h] loc_31EE0: lea rcx, [rax+1] mov [rbx+0C0h], rcx mov al, [rax] loc_31EED: test r14b, r14b jz short loc_31F10 cmp al, 20h ; ' ' ja short loc_31F1A movzx eax, al mov rcx, 101018100h bt rcx, rax jnb short loc_31F1A mov ebp, 1 jmp short loc_31F1A loc_31F10: add al, 0F8h xor ebp, ebp test al, 0F7h setz bpl loc_31F1A: movups xmm0, xmmword ptr [rbx+0D0h] movups xmmword ptr [rbx+0C0h], xmm0 mov eax, ebp pop rbx pop r14 pop rbp retn loc_31F2F: xor eax, eax jmp short loc_31EED
_BOOL8 stbi__tga_test(long long a1) { char *v2; // rax unsigned long long v3; // rcx char *v4; // rcx char v5; // dl bool v6; // r14 char v7; // cl int v8; // ecx long long v9; // rdi long long v10; // rsi BOOL v11; // ebp int v12; // ecx unsigned __int8 *v13; // rax unsigned __int8 *v14; // rax unsigned long long v15; // rdx long long v16; // rsi int v17; // edx unsigned __int8 *v18; // rax unsigned __int8 v19; // al long long v20; // rcx v2 = *(char **)(a1 + 192); v3 = *(_QWORD *)(a1 + 200); if ( (unsigned long long)v2 >= v3 ) { if ( !*(_DWORD *)(a1 + 48) ) goto LABEL_5; stbi__refill_buffer(a1); v2 = *(char **)(a1 + 192); v3 = *(_QWORD *)(a1 + 200); } *(_QWORD *)(a1 + 192) = ++v2; LABEL_5: if ( (unsigned long long)v2 >= v3 ) { if ( !*(_DWORD *)(a1 + 48) ) { v6 = 1; goto LABEL_11; } stbi__refill_buffer(a1); v2 = *(char **)(a1 + 192); } v4 = v2++; *(_QWORD *)(a1 + 192) = v2; v5 = *v4; if ( (unsigned __int8)*v4 > 1u ) goto LABEL_20; v3 = *(_QWORD *)(a1 + 200); v6 = v5 == 0; LABEL_11: if ( (unsigned long long)v2 < v3 ) { LABEL_14: *(_QWORD *)(a1 + 192) = v2 + 1; v7 = *v2++; goto LABEL_15; } if ( *(_DWORD *)(a1 + 48) ) { stbi__refill_buffer(a1); v2 = *(char **)(a1 + 192); goto LABEL_14; } v7 = 0; LABEL_15: if ( v6 ) { if ( (v7 & 0xF6) == 2 ) { if ( *(_QWORD *)(a1 + 16) ) { v8 = *(_QWORD *)(a1 + 200) - (_DWORD)v2; if ( v8 <= 8 ) { *(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200); v9 = *(_QWORD *)(a1 + 40); v10 = (unsigned int)(9 - v8); LABEL_36: (*(void ( **)(long long, long long))(a1 + 24))(v9, v10); LABEL_39: v11 = 0; if ( !(unsigned int)stbi__get16le(a1) || !(unsigned int)stbi__get16le(a1) ) goto LABEL_50; v18 = *(unsigned __int8 **)(a1 + 192); if ( (unsigned long long)v18 >= *(_QWORD *)(a1 + 200) ) { if ( !*(_DWORD *)(a1 + 48) ) { v19 = 0; LABEL_45: if ( v6 ) { if ( v19 <= 0x20u ) { v20 = 0x101018100LL; if ( _bittest64(&v20, v19) ) v11 = 1; } } else { v11 = ((v19 - 8) & 0xF7) == 0; } goto LABEL_50; } stbi__refill_buffer(a1); v18 = *(unsigned __int8 **)(a1 + 192); } *(_QWORD *)(a1 + 192) = v18 + 1; v19 = *v18; goto LABEL_45; } } v14 = (unsigned __int8 *)(v2 + 9); goto LABEL_38; } LABEL_20: v11 = 0; goto LABEL_50; } v11 = 0; if ( (v7 & 0xF7) == 1 ) { if ( *(_QWORD *)(a1 + 16) && (v12 = *(_QWORD *)(a1 + 200) - (_DWORD)v2, v12 <= 3) ) { *(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200); (*(void ( **)(_QWORD, _QWORD))(a1 + 24))(*(_QWORD *)(a1 + 40), (unsigned int)(4 - v12)); v13 = *(unsigned __int8 **)(a1 + 192); } else { v13 = (unsigned __int8 *)(v2 + 4); *(_QWORD *)(a1 + 192) = v13; } if ( (unsigned long long)v13 >= *(_QWORD *)(a1 + 200) ) { if ( !*(_DWORD *)(a1 + 48) ) goto LABEL_50; stbi__refill_buffer(a1); v13 = *(unsigned __int8 **)(a1 + 192); } *(_QWORD *)(a1 + 192) = v13 + 1; v15 = *v13; if ( v15 <= 0x20 ) { v16 = 0x101018100LL; if ( _bittest64(&v16, v15) ) { if ( *(_QWORD *)(a1 + 16) ) { v17 = *(_QWORD *)(a1 + 200) - ((_DWORD)v13 + 1); if ( v17 <= 3 ) { *(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200); v9 = *(_QWORD *)(a1 + 40); v10 = (unsigned int)(4 - v17); goto LABEL_36; } } v14 = v13 + 5; LABEL_38: *(_QWORD *)(a1 + 192) = v14; goto LABEL_39; } } } LABEL_50: *(_OWORD *)(a1 + 192) = *(_OWORD *)(a1 + 208); return v11; }
stbi__tga_test: PUSH RBP PUSH R14 PUSH RBX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0xc0] MOV RCX,qword ptr [RDI + 0xc8] CMP RAX,RCX JC 0x00131d02 CMP dword ptr [RBX + 0x30],0x0 JZ 0x00131d0c MOV RDI,RBX CALL 0x00132867 MOV RAX,qword ptr [RBX + 0xc0] MOV RCX,qword ptr [RBX + 0xc8] LAB_00131d02: INC RAX MOV qword ptr [RBX + 0xc0],RAX LAB_00131d0c: CMP RAX,RCX JC 0x00131d26 CMP dword ptr [RBX + 0x30],0x0 JZ 0x00131d49 MOV RDI,RBX CALL 0x00132867 MOV RAX,qword ptr [RBX + 0xc0] LAB_00131d26: MOV RCX,RAX INC RAX MOV qword ptr [RBX + 0xc0],RAX MOV DL,byte ptr [RCX] CMP DL,0x1 JA 0x00131db5 MOV RCX,qword ptr [RBX + 0xc8] TEST DL,DL SETZ R14B JMP 0x00131d4c LAB_00131d49: MOV R14B,0x1 LAB_00131d4c: CMP RAX,RCX JC 0x00131d6a CMP dword ptr [RBX + 0x30],0x0 JZ 0x00131dff MOV RDI,RBX CALL 0x00132867 MOV RAX,qword ptr [RBX + 0xc0] LAB_00131d6a: LEA RDX,[RAX + 0x1] MOV qword ptr [RBX + 0xc0],RDX MOV CL,byte ptr [RAX] MOV RAX,RDX LAB_00131d7a: TEST R14B,R14B JZ 0x00131dbc AND CL,0xf6 CMP CL,0x2 JNZ 0x00131db5 CMP qword ptr [RBX + 0x10],0x0 JZ 0x00131e06 MOV RDX,qword ptr [RBX + 0xc8] MOV ECX,EDX SUB ECX,EAX CMP ECX,0x8 JG 0x00131e06 MOV qword ptr [RBX + 0xc0],RDX MOV RDI,qword ptr [RBX + 0x28] MOV ESI,0x9 SUB ESI,ECX JMP 0x00131e91 LAB_00131db5: XOR EBP,EBP JMP 0x00131f1a LAB_00131dbc: AND CL,0xf7 XOR EBP,EBP CMP CL,0x1 JNZ 0x00131f1a CMP qword ptr [RBX + 0x10],0x0 JZ 0x00131e0f MOV RDX,qword ptr [RBX + 0xc8] MOV ECX,EDX SUB ECX,EAX CMP ECX,0x3 JG 0x00131e0f MOV qword ptr [RBX + 0xc0],RDX MOV RDI,qword ptr [RBX + 0x28] MOV ESI,0x4 SUB ESI,ECX CALL qword ptr [RBX + 0x18] MOV RAX,qword ptr [RBX + 0xc0] JMP 0x00131e1a LAB_00131dff: XOR ECX,ECX JMP 0x00131d7a LAB_00131e06: ADD RAX,0x9 JMP 0x00131e9a LAB_00131e0f: ADD RAX,0x4 MOV qword ptr [RBX + 0xc0],RAX LAB_00131e1a: CMP RAX,qword ptr [RBX + 0xc8] JC 0x00131e3c CMP dword ptr [RBX + 0x30],0x0 JZ 0x00131f1a MOV RDI,RBX CALL 0x00132867 MOV RAX,qword ptr [RBX + 0xc0] LAB_00131e3c: LEA RCX,[RAX + 0x1] MOV qword ptr [RBX + 0xc0],RCX MOVZX EDX,byte ptr [RAX] CMP RDX,0x20 JA 0x00131f1a MOV RSI,0x101018100 BT RSI,RDX JNC 0x00131f1a CMP qword ptr [RBX + 0x10],0x0 JZ 0x00131e96 MOV RSI,qword ptr [RBX + 0xc8] MOV EDX,ESI SUB EDX,ECX CMP EDX,0x3 JG 0x00131e96 MOV qword ptr [RBX + 0xc0],RSI MOV RDI,qword ptr [RBX + 0x28] MOV ESI,0x4 SUB ESI,EDX LAB_00131e91: CALL qword ptr [RBX + 0x18] JMP 0x00131ea1 LAB_00131e96: ADD RAX,0x5 LAB_00131e9a: MOV qword ptr [RBX + 0xc0],RAX LAB_00131ea1: MOV RDI,RBX CALL 0x00134bad XOR EBP,EBP TEST EAX,EAX JZ 0x00131f1a MOV RDI,RBX CALL 0x00134bad TEST EAX,EAX JZ 0x00131f1a MOV RAX,qword ptr [RBX + 0xc0] CMP RAX,qword ptr [RBX + 0xc8] JC 0x00131ee0 CMP dword ptr [RBX + 0x30],0x0 JZ 0x00131f2f MOV RDI,RBX CALL 0x00132867 MOV RAX,qword ptr [RBX + 0xc0] LAB_00131ee0: LEA RCX,[RAX + 0x1] MOV qword ptr [RBX + 0xc0],RCX MOV AL,byte ptr [RAX] LAB_00131eed: TEST R14B,R14B JZ 0x00131f10 CMP AL,0x20 JA 0x00131f1a MOVZX EAX,AL MOV RCX,0x101018100 BT RCX,RAX JNC 0x00131f1a MOV EBP,0x1 JMP 0x00131f1a LAB_00131f10: ADD AL,0xf8 XOR EBP,EBP TEST AL,0xf7 SETZ BPL LAB_00131f1a: MOVUPS XMM0,xmmword ptr [RBX + 0xd0] MOVUPS xmmword ptr [RBX + 0xc0],XMM0 MOV EAX,EBP POP RBX POP R14 POP RBP RET LAB_00131f2f: XOR EAX,EAX JMP 0x00131eed
/* stbi__tga_test(stbi__context*) */ bool stbi__tga_test(stbi__context *param_1) { byte *pbVar1; byte *pbVar2; ulong uVar3; byte bVar4; int iVar5; int8 uVar6; bool bVar7; bool bVar8; pbVar1 = *(byte **)(param_1 + 0xc0); pbVar2 = *(byte **)(param_1 + 200); if (pbVar1 < pbVar2) { LAB_00131d02: pbVar1 = pbVar1 + 1; *(byte **)(param_1 + 0xc0) = pbVar1; } else if (*(int *)(param_1 + 0x30) != 0) { stbi__refill_buffer(param_1); pbVar1 = *(byte **)(param_1 + 0xc0); pbVar2 = *(byte **)(param_1 + 200); goto LAB_00131d02; } if (pbVar1 < pbVar2) { LAB_00131d26: *(byte **)(param_1 + 0xc0) = pbVar1 + 1; if (*pbVar1 < 2) { pbVar2 = *(byte **)(param_1 + 200); bVar7 = *pbVar1 == 0; pbVar1 = pbVar1 + 1; goto LAB_00131d4c; } LAB_00131db5: bVar8 = false; goto LAB_00131f1a; } if (*(int *)(param_1 + 0x30) != 0) { stbi__refill_buffer(param_1); pbVar1 = *(byte **)(param_1 + 0xc0); goto LAB_00131d26; } bVar7 = true; LAB_00131d4c: if (pbVar1 < pbVar2) { LAB_00131d6a: *(byte **)(param_1 + 0xc0) = pbVar1 + 1; bVar4 = *pbVar1; pbVar1 = pbVar1 + 1; } else { if (*(int *)(param_1 + 0x30) != 0) { stbi__refill_buffer(param_1); pbVar1 = *(byte **)(param_1 + 0xc0); goto LAB_00131d6a; } bVar4 = 0; } if (bVar7) { if ((bVar4 & 0xf6) != 2) goto LAB_00131db5; if (*(long *)(param_1 + 0x10) == 0) { LAB_00131e06: pbVar1 = pbVar1 + 9; goto LAB_00131e9a; } iVar5 = (int)*(int8 *)(param_1 + 200) - (int)pbVar1; if (8 < iVar5) goto LAB_00131e06; *(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200); uVar6 = *(int8 *)(param_1 + 0x28); iVar5 = 9 - iVar5; LAB_00131e91: (**(code **)(param_1 + 0x18))(uVar6,iVar5); } else { bVar8 = false; if ((bVar4 & 0xf7) != 1) goto LAB_00131f1a; if (*(long *)(param_1 + 0x10) == 0) { LAB_00131e0f: pbVar1 = pbVar1 + 4; *(byte **)(param_1 + 0xc0) = pbVar1; } else { iVar5 = (int)*(int8 *)(param_1 + 200) - (int)pbVar1; if (3 < iVar5) goto LAB_00131e0f; *(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200); (**(code **)(param_1 + 0x18))(*(int8 *)(param_1 + 0x28),4 - iVar5); pbVar1 = *(byte **)(param_1 + 0xc0); } if (*(byte **)(param_1 + 200) <= pbVar1) { if (*(int *)(param_1 + 0x30) == 0) goto LAB_00131f1a; stbi__refill_buffer(param_1); pbVar1 = *(byte **)(param_1 + 0xc0); } *(byte **)(param_1 + 0xc0) = pbVar1 + 1; if ((0x20 < (ulong)*pbVar1) || ((0x101018100U >> ((ulong)*pbVar1 & 0x3f) & 1) == 0)) goto LAB_00131f1a; if (*(long *)(param_1 + 0x10) != 0) { iVar5 = (int)*(int8 *)(param_1 + 200) - (int)(pbVar1 + 1); if (iVar5 < 4) { *(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200); uVar6 = *(int8 *)(param_1 + 0x28); iVar5 = 4 - iVar5; goto LAB_00131e91; } } pbVar1 = pbVar1 + 5; LAB_00131e9a: *(byte **)(param_1 + 0xc0) = pbVar1; } iVar5 = stbi__get16le(param_1); bVar8 = false; if (iVar5 == 0) goto LAB_00131f1a; iVar5 = stbi__get16le(param_1); if (iVar5 == 0) goto LAB_00131f1a; pbVar2 = *(byte **)(param_1 + 0xc0); if (pbVar2 < *(byte **)(param_1 + 200)) { LAB_00131ee0: *(byte **)(param_1 + 0xc0) = pbVar2 + 1; uVar3 = (ulong)*pbVar2; } else { if (*(int *)(param_1 + 0x30) != 0) { stbi__refill_buffer(param_1); pbVar2 = *(byte **)(param_1 + 0xc0); goto LAB_00131ee0; } uVar3 = 0; } if (bVar7) { if (((byte)uVar3 < 0x21) && (bVar8 = false, (0x101018100U >> (uVar3 & 0x3f) & 1) != 0)) { bVar8 = true; } } else { bVar8 = ((byte)uVar3 - 8 & 0xf7) == 0; } LAB_00131f1a: *(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 0xd0); *(int8 *)(param_1 + 200) = *(int8 *)(param_1 + 0xd8); return bVar8; }
29,395
checker_valid_call
alca/libalca/checker.c
int checker_valid_call(ac_checker *checker, ac_expr *call, ac_context_object *function) { if (!call) return FALSE; char *arg_types = NULL; for (int i = 0; i < call->u.call.arg_count; i++) { ac_token_type t = resolve_type(checker, call->u.call.arguments[i]); if (t == TOKEN_EOF) return FALSE; if (t == TOKEN_STRING) arg_types = ac_str_extend(arg_types, 's'); else if (t == TOKEN_NUMBER) arg_types = ac_str_extend(arg_types, 'i'); else if (t == TOKEN_FALSE || t == TOKEN_TRUE) arg_types = ac_str_extend(arg_types, 'b'); else report_error(checker, call->u.call.paren, ERROR_UNEXPECTED_TYPE, FALSE, "argument must be string, integer or boolean"); } unsigned int count; const char *types; ac_error error = ac_context_validate_function_call(function, arg_types, &count, &types); if (arg_types) ac_free(arg_types); if (error != ERROR_SUCCESS) { char *msg = ac_alloc(32); if (error == ERROR_BAD_CALL) sprintf(msg, "expected %d arguments", count); else if (error == ERROR_UNEXPECTED_TYPE) { report_error(checker, call->u.call.paren, ERROR_BAD_CALL, FALSE, "expected argument types '%s', got '%s'", types, arg_types); } else report_error(checker, call->u.call.paren, ERROR_BAD_CALL, FALSE, "not a function"); } return TRUE; }
O0
c
checker_valid_call: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x102c7 movl $0x0, -0x4(%rbp) jmp 0x10474 movq $0x0, -0x28(%rbp) movl $0x0, -0x2c(%rbp) movl -0x2c(%rbp), %eax movq -0x18(%rbp), %rcx cmpl 0x18(%rcx), %eax jae 0x103aa movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x28(%rax), %rax movslq -0x2c(%rbp), %rcx movq (%rax,%rcx,8), %rsi callq 0x7a80 movl %eax, -0x30(%rbp) cmpl $0x38, -0x30(%rbp) jne 0x10314 movl $0x0, -0x4(%rbp) jmp 0x10474 cmpl $0x27, -0x30(%rbp) jne 0x1032e movq -0x28(%rbp), %rdi movl $0x73, %esi callq 0x74d0 movq %rax, -0x28(%rbp) jmp 0x1039a cmpl $0x26, -0x30(%rbp) jne 0x10348 movq -0x28(%rbp), %rdi movl $0x69, %esi callq 0x74d0 movq %rax, -0x28(%rbp) jmp 0x10398 cmpl $0x2b, -0x30(%rbp) je 0x10354 cmpl $0x2a, -0x30(%rbp) jne 0x10368 movq -0x28(%rbp), %rdi movl $0x62, %esi callq 0x74d0 movq %rax, -0x28(%rbp) jmp 0x10396 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x20(%rax), %rax movl 0x10(%rax), %esi movl $0xd, %edx leaq 0x4e368(%rip), %rcx # 0x5e6eb movb $0x0, %al callq 0x7080 movl $0x0, -0x4(%rbp) jmp 0x10474 jmp 0x10398 jmp 0x1039a jmp 0x1039c movl -0x2c(%rbp), %eax addl $0x1, %eax movl %eax, -0x2c(%rbp) jmp 0x102d6 movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi leaq -0x34(%rbp), %rdx leaq -0x40(%rbp), %rcx callq 0x7330 movl %eax, -0x44(%rbp) cmpq $0x0, -0x28(%rbp) je 0x103d2 movq -0x28(%rbp), %rdi callq 0x73f0 cmpl $0x0, -0x44(%rbp) je 0x1046d movl $0x20, %edi callq 0x7890 movq %rax, -0x50(%rbp) cmpl $0x8, -0x44(%rbp) jne 0x10407 movq -0x50(%rbp), %rdi movl -0x34(%rbp), %edx leaq 0x4e319(%rip), %rsi # 0x5e717 movb $0x0, %al callq 0x7c10 jmp 0x1046b cmpl $0xd, -0x44(%rbp) jne 0x10440 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x20(%rax), %rax movl 0x10(%rax), %esi movq -0x40(%rbp), %r8 movq -0x28(%rbp), %r9 movl $0x8, %edx leaq 0x4e2fd(%rip), %rcx # 0x5e72d movb $0x0, %al callq 0x7080 movl $0x0, -0x4(%rbp) jmp 0x10474 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x20(%rax), %rax movl 0x10(%rax), %esi movl $0x8, %edx leaq 0x4e2f9(%rip), %rcx # 0x5e754 movb $0x0, %al callq 0x7080 movl $0x0, -0x4(%rbp) jmp 0x10474 jmp 0x1046d movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopl (%rax)
checker_valid_call: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx cmp [rbp+var_18], 0 jnz short loc_102C7 mov [rbp+var_4], 0 jmp loc_10474 loc_102C7: mov [rbp+var_28], 0 mov [rbp+var_2C], 0 loc_102D6: mov eax, [rbp+var_2C] mov rcx, [rbp+var_18] cmp eax, [rcx+18h] jnb loc_103AA mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov rax, [rax+28h] movsxd rcx, [rbp+var_2C] mov rsi, [rax+rcx*8] call _resolve_type mov [rbp+var_30], eax cmp [rbp+var_30], 38h ; '8' jnz short loc_10314 mov [rbp+var_4], 0 jmp loc_10474 loc_10314: cmp [rbp+var_30], 27h ; ''' jnz short loc_1032E mov rdi, [rbp+var_28] mov esi, 73h ; 's' call _ac_str_extend mov [rbp+var_28], rax jmp short loc_1039A loc_1032E: cmp [rbp+var_30], 26h ; '&' jnz short loc_10348 mov rdi, [rbp+var_28] mov esi, 69h ; 'i' call _ac_str_extend mov [rbp+var_28], rax jmp short loc_10398 loc_10348: cmp [rbp+var_30], 2Bh ; '+' jz short loc_10354 cmp [rbp+var_30], 2Ah ; '*' jnz short loc_10368 loc_10354: mov rdi, [rbp+var_28] mov esi, 62h ; 'b' call _ac_str_extend mov [rbp+var_28], rax jmp short loc_10396 loc_10368: mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov rax, [rax+20h] mov esi, [rax+10h] mov edx, 0Dh lea rcx, aArgumentMustBe; "argument must be string, integer or boo"... mov al, 0 call _checker_errorf mov [rbp+var_4], 0 jmp loc_10474 loc_10396: jmp short $+2 loc_10398: jmp short $+2 loc_1039A: jmp short $+2 loc_1039C: mov eax, [rbp+var_2C] add eax, 1 mov [rbp+var_2C], eax jmp loc_102D6 loc_103AA: mov rdi, [rbp+var_20] mov rsi, [rbp+var_28] lea rdx, [rbp+var_34] lea rcx, [rbp+var_40] call _ac_context_validate_function_call mov [rbp+var_44], eax cmp [rbp+var_28], 0 jz short loc_103D2 mov rdi, [rbp+var_28] call _ac_free loc_103D2: cmp [rbp+var_44], 0 jz loc_1046D mov edi, 20h ; ' ' call _ac_alloc mov [rbp+var_50], rax cmp [rbp+var_44], 8 jnz short loc_10407 mov rdi, [rbp+var_50] mov edx, [rbp+var_34] lea rsi, aExpectedDArgum; "expected %d arguments" mov al, 0 call _sprintf jmp short loc_1046B loc_10407: cmp [rbp+var_44], 0Dh jnz short loc_10440 mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov rax, [rax+20h] mov esi, [rax+10h] mov r8, [rbp+var_40] mov r9, [rbp+var_28] mov edx, 8 lea rcx, aExpectedArgume; "expected argument types '%s', got '%s'" mov al, 0 call _checker_errorf mov [rbp+var_4], 0 jmp short loc_10474 loc_10440: mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov rax, [rax+20h] mov esi, [rax+10h] mov edx, 8 lea rcx, aNotAFunction; "not a function" mov al, 0 call _checker_errorf mov [rbp+var_4], 0 jmp short loc_10474 loc_1046B: jmp short $+2 loc_1046D: mov [rbp+var_4], 1 loc_10474: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long checker_valid_call(long long a1, long long a2, long long a3) { long long v4; // [rsp+0h] [rbp-50h] int v5; // [rsp+Ch] [rbp-44h] const char *v6; // [rsp+10h] [rbp-40h] BYREF int v7; // [rsp+1Ch] [rbp-34h] BYREF int v8; // [rsp+20h] [rbp-30h] unsigned int i; // [rsp+24h] [rbp-2Ch] const char *v10; // [rsp+28h] [rbp-28h] long long v11; // [rsp+30h] [rbp-20h] long long v12; // [rsp+38h] [rbp-18h] long long v13; // [rsp+40h] [rbp-10h] v13 = a1; v12 = a2; v11 = a3; if ( !a2 ) return 0; v10 = 0LL; for ( i = 0; i < *(_DWORD *)(v12 + 24); ++i ) { v8 = resolve_type(v13, *(_QWORD *)(*(_QWORD *)(v12 + 40) + 8LL * (int)i)); switch ( v8 ) { case '8': return 0; case '\'': v10 = (const char *)ac_str_extend(v10, 115LL); break; case '&': v10 = (const char *)ac_str_extend(v10, 105LL); break; case '+': case '*': v10 = (const char *)ac_str_extend(v10, 98LL); break; default: checker_errorf( v13, *(_DWORD *)(*(_QWORD *)(v12 + 32) + 16LL), 13, (long long)"argument must be string, integer or boolean"); return 0; } } v5 = ac_context_validate_function_call(v11, (long long)v10, &v7, &v6); if ( v10 ) ac_free(v10); if ( !v5 ) return 1; v4 = ac_alloc(32LL); if ( v5 == 8 ) { sprintf(v4, "expected %d arguments", v7); return 1; } if ( v5 == 13 ) checker_errorf( v13, *(_DWORD *)(*(_QWORD *)(v12 + 32) + 16LL), 8, (long long)"expected argument types '%s', got '%s'", v6, v10); else checker_errorf(v13, *(_DWORD *)(*(_QWORD *)(v12 + 32) + 16LL), 8, (long long)"not a function"); return 0; }
checker_valid_call: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX CMP qword ptr [RBP + -0x18],0x0 JNZ 0x001102c7 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00110474 LAB_001102c7: MOV qword ptr [RBP + -0x28],0x0 MOV dword ptr [RBP + -0x2c],0x0 LAB_001102d6: MOV EAX,dword ptr [RBP + -0x2c] MOV RCX,qword ptr [RBP + -0x18] CMP EAX,dword ptr [RCX + 0x18] JNC 0x001103aa MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x28] MOVSXD RCX,dword ptr [RBP + -0x2c] MOV RSI,qword ptr [RAX + RCX*0x8] CALL 0x00107a80 MOV dword ptr [RBP + -0x30],EAX CMP dword ptr [RBP + -0x30],0x38 JNZ 0x00110314 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00110474 LAB_00110314: CMP dword ptr [RBP + -0x30],0x27 JNZ 0x0011032e MOV RDI,qword ptr [RBP + -0x28] MOV ESI,0x73 CALL 0x001074d0 MOV qword ptr [RBP + -0x28],RAX JMP 0x0011039a LAB_0011032e: CMP dword ptr [RBP + -0x30],0x26 JNZ 0x00110348 MOV RDI,qword ptr [RBP + -0x28] MOV ESI,0x69 CALL 0x001074d0 MOV qword ptr [RBP + -0x28],RAX JMP 0x00110398 LAB_00110348: CMP dword ptr [RBP + -0x30],0x2b JZ 0x00110354 CMP dword ptr [RBP + -0x30],0x2a JNZ 0x00110368 LAB_00110354: MOV RDI,qword ptr [RBP + -0x28] MOV ESI,0x62 CALL 0x001074d0 MOV qword ptr [RBP + -0x28],RAX JMP 0x00110396 LAB_00110368: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x20] MOV ESI,dword ptr [RAX + 0x10] MOV EDX,0xd LEA RCX,[0x15e6eb] MOV AL,0x0 CALL 0x00107080 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00110474 LAB_00110396: JMP 0x00110398 LAB_00110398: JMP 0x0011039a LAB_0011039a: JMP 0x0011039c LAB_0011039c: MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x001102d6 LAB_001103aa: MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] LEA RDX,[RBP + -0x34] LEA RCX,[RBP + -0x40] CALL 0x00107330 MOV dword ptr [RBP + -0x44],EAX CMP qword ptr [RBP + -0x28],0x0 JZ 0x001103d2 MOV RDI,qword ptr [RBP + -0x28] CALL 0x001073f0 LAB_001103d2: CMP dword ptr [RBP + -0x44],0x0 JZ 0x0011046d MOV EDI,0x20 CALL 0x00107890 MOV qword ptr [RBP + -0x50],RAX CMP dword ptr [RBP + -0x44],0x8 JNZ 0x00110407 MOV RDI,qword ptr [RBP + -0x50] MOV EDX,dword ptr [RBP + -0x34] LEA RSI,[0x15e717] MOV AL,0x0 CALL 0x00107c10 JMP 0x0011046b LAB_00110407: CMP dword ptr [RBP + -0x44],0xd JNZ 0x00110440 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x20] MOV ESI,dword ptr [RAX + 0x10] MOV R8,qword ptr [RBP + -0x40] MOV R9,qword ptr [RBP + -0x28] MOV EDX,0x8 LEA RCX,[0x15e72d] MOV AL,0x0 CALL 0x00107080 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00110474 LAB_00110440: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x20] MOV ESI,dword ptr [RAX + 0x10] MOV EDX,0x8 LEA RCX,[0x15e754] MOV AL,0x0 CALL 0x00107080 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00110474 LAB_0011046b: JMP 0x0011046d LAB_0011046d: MOV dword ptr [RBP + -0x4],0x1 LAB_00110474: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
int4 checker_valid_call(int8 param_1,long param_2,int8 param_3) { int iVar1; char *__s; int8 local_48; uint local_3c; int local_38; uint local_34; long local_30; int8 local_28; long local_20; int8 local_18; int4 local_c; if (param_2 == 0) { local_c = 0; } else { local_30 = 0; local_28 = param_3; local_20 = param_2; local_18 = param_1; for (local_34 = 0; local_34 < *(uint *)(local_20 + 0x18); local_34 = local_34 + 1) { local_38 = resolve_type(local_18,*(int8 *) (*(long *)(local_20 + 0x28) + (long)(int)local_34 * 8)); if (local_38 == 0x38) { return 0; } if (local_38 == 0x27) { local_30 = ac_str_extend(local_30,0x73); } else if (local_38 == 0x26) { local_30 = ac_str_extend(local_30,0x69); } else { if ((local_38 != 0x2b) && (local_38 != 0x2a)) { checker_errorf(local_18,*(int4 *)(*(long *)(local_20 + 0x20) + 0x10),0xd, "argument must be string, integer or boolean"); return 0; } local_30 = ac_str_extend(local_30,0x62); } } iVar1 = ac_context_validate_function_call(local_28,local_30,&local_3c,&local_48); if (local_30 != 0) { ac_free(local_30); } if (iVar1 != 0) { __s = (char *)ac_alloc(0x20); if (iVar1 != 8) { if (iVar1 == 0xd) { checker_errorf(local_18,*(int4 *)(*(long *)(local_20 + 0x20) + 0x10),8, "expected argument types \'%s\', got \'%s\'",local_48,local_30); return 0; } checker_errorf(local_18,*(int4 *)(*(long *)(local_20 + 0x20) + 0x10),8, "not a function"); return 0; } sprintf(__s,"expected %d arguments",(ulong)local_3c); } local_c = 1; } return local_c; }
29,396
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
monkey531[P]llama/common/json.hpp
static diyfp normalize(diyfp x) noexcept { JSON_ASSERT(x.f != 0); while ((x.f >> 63u) == 0) { x.f <<= 1u; x.e--; } return x; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp): pushq %rax testq %rdi, %rdi jne 0x87d32 leaq 0x280b9(%rip), %rdi # 0xafdcc leaq 0x224f0(%rip), %rdx # 0xaa20a leaq 0x2d88f(%rip), %rcx # 0xb55b0 movl $0x42a1, %esi # imm = 0x42A1 xorl %eax, %eax callq 0x23ee0 addq %rdi, %rdi decl %esi testq %rdi, %rdi jns 0x87d2d movq %rdi, %rax movl %esi, %edx popq %rcx retq movq %rax, %rdi callq 0x27867
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_: push rax test rdi, rdi jnz short loc_87D32 lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aXF0; "x.f != 0" mov esi, 42A1h xor eax, eax call _ggml_abort loc_87D2D: add rdi, rdi dec esi loc_87D32: test rdi, rdi jns short loc_87D2D mov rax, rdi mov edx, esi pop rcx retn mov rdi, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(long long a1, int a2) { if ( a1 ) goto LABEL_4; a1 = (long long)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"; a2 = 17057; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17057LL, "GGML_ASSERT(%s) failed", "x.f != 0"); do { a1 *= 2LL; --a2; LABEL_4: ; } while ( a1 >= 0 ); return a1; }
normalize: PUSH RAX TEST RDI,RDI JNZ 0x00187d32 LAB_00187d0c: LEA RDI,[0x1afdcc] LEA RDX,[0x1aa20a] LEA RCX,[0x1b55b0] MOV ESI,0x42a1 XOR EAX,EAX CALL 0x00123ee0 LAB_00187d2d: ADD RDI,RDI DEC ESI LAB_00187d32: TEST RDI,RDI JNS 0x00187d2d MOV RAX,RDI MOV EDX,ESI POP RCX RET
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(diyfp *this,int param_2) { int1 auVar1 [16]; if (this == (diyfp *)0x0) { /* try { // try from 00187d0c to 00187d2c has its CatchHandler @ 00187d3e */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x42a1, "GGML_ASSERT(%s) failed","x.f != 0"); } for (; -1 < (long)this; this = (diyfp *)((long)this * 2)) { param_2 = param_2 + -1; } auVar1._8_4_ = param_2; auVar1._0_8_ = this; auVar1._12_4_ = 0; return auVar1; }
29,397
ident_realloc
bluesky950520[P]quickjs/quickjs.c
static __exception int ident_realloc(JSContext *ctx, char **pbuf, size_t *psize, char *static_buf) { char *buf, *new_buf; size_t size, new_size; buf = *pbuf; size = *psize; if (size >= (SIZE_MAX / 3) * 2) new_size = SIZE_MAX; else new_size = size + (size >> 1); if (buf == static_buf) { new_buf = js_malloc(ctx, new_size); if (!new_buf) return -1; memcpy(new_buf, buf, size); } else { new_buf = js_realloc(ctx, buf, new_size); if (!new_buf) return -1; } *pbuf = new_buf; *psize = new_size; return 0; }
O0
c
ident_realloc: subq $0x48, %rsp movq %rdi, 0x38(%rsp) movq %rsi, 0x30(%rsp) movq %rdx, 0x28(%rsp) movq %rcx, 0x20(%rsp) movq 0x30(%rsp), %rax movq (%rax), %rax movq %rax, 0x18(%rsp) movq 0x28(%rsp), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) movabsq $-0x5555555555555556, %rax # imm = 0xAAAAAAAAAAAAAAAA cmpq %rax, 0x8(%rsp) jb 0x8d12d movq $-0x1, (%rsp) jmp 0x8d141 movq 0x8(%rsp), %rax movq 0x8(%rsp), %rcx shrq %rcx addq %rcx, %rax movq %rax, (%rsp) movq 0x18(%rsp), %rax cmpq 0x20(%rsp), %rax jne 0x8d188 movq 0x38(%rsp), %rdi movq (%rsp), %rsi callq 0x27fa0 movq %rax, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) jne 0x8d172 movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF jmp 0x8d1d5 movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rsi movq 0x8(%rsp), %rdx callq 0xe610 jmp 0x8d1b4 movq 0x38(%rsp), %rdi movq 0x18(%rsp), %rsi movq (%rsp), %rdx callq 0x280d0 movq %rax, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) jne 0x8d1b2 movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF jmp 0x8d1d5 jmp 0x8d1b4 movq 0x10(%rsp), %rcx movq 0x30(%rsp), %rax movq %rcx, (%rax) movq (%rsp), %rcx movq 0x28(%rsp), %rax movq %rcx, (%rax) movl $0x0, 0x44(%rsp) movl 0x44(%rsp), %eax addq $0x48, %rsp retq nop
ident_realloc: sub rsp, 48h mov [rsp+48h+var_10], rdi mov [rsp+48h+var_18], rsi mov [rsp+48h+var_20], rdx mov [rsp+48h+var_28], rcx mov rax, [rsp+48h+var_18] mov rax, [rax] mov [rsp+48h+var_30], rax mov rax, [rsp+48h+var_20] mov rax, [rax] mov [rsp+48h+var_40], rax mov rax, 0AAAAAAAAAAAAAAAAh cmp [rsp+48h+var_40], rax jb short loc_8D12D mov [rsp+48h+var_48], 0FFFFFFFFFFFFFFFFh jmp short loc_8D141 loc_8D12D: mov rax, [rsp+48h+var_40] mov rcx, [rsp+48h+var_40] shr rcx, 1 add rax, rcx mov [rsp+48h+var_48], rax loc_8D141: mov rax, [rsp+48h+var_30] cmp rax, [rsp+48h+var_28] jnz short loc_8D188 mov rdi, [rsp+48h+var_10] mov rsi, [rsp+48h+var_48] call js_malloc mov [rsp+48h+var_38], rax cmp [rsp+48h+var_38], 0 jnz short loc_8D172 mov [rsp+48h+var_4], 0FFFFFFFFh jmp short loc_8D1D5 loc_8D172: mov rdi, [rsp+48h+var_38] mov rsi, [rsp+48h+var_30] mov rdx, [rsp+48h+var_40] call _memcpy jmp short loc_8D1B4 loc_8D188: mov rdi, [rsp+48h+var_10] mov rsi, [rsp+48h+var_30] mov rdx, [rsp+48h+var_48] call js_realloc mov [rsp+48h+var_38], rax cmp [rsp+48h+var_38], 0 jnz short loc_8D1B2 mov [rsp+48h+var_4], 0FFFFFFFFh jmp short loc_8D1D5 loc_8D1B2: jmp short $+2 loc_8D1B4: mov rcx, [rsp+48h+var_38] mov rax, [rsp+48h+var_18] mov [rax], rcx mov rcx, [rsp+48h+var_48] mov rax, [rsp+48h+var_20] mov [rax], rcx mov [rsp+48h+var_4], 0 loc_8D1D5: mov eax, [rsp+48h+var_4] add rsp, 48h retn
long long ident_realloc(long long a1, long long *a2, long long *a3, long long a4) { long long v5; // [rsp+0h] [rbp-48h] unsigned long long v6; // [rsp+8h] [rbp-40h] long long v7; // [rsp+10h] [rbp-38h] long long v8; // [rsp+18h] [rbp-30h] v8 = *a2; v6 = *a3; if ( (unsigned long long)*a3 < 0xAAAAAAAAAAAAAAAALL ) v5 = (v6 >> 1) + v6; else v5 = -1LL; if ( v8 != a4 ) { v7 = js_realloc(a1, v8, v5); if ( !v7 ) return (unsigned int)-1; LABEL_10: *a2 = v7; *a3 = v5; return 0; } v7 = js_malloc(a1, v5); if ( v7 ) { memcpy(v7, v8, v6); goto LABEL_10; } return (unsigned int)-1; }
ident_realloc: SUB RSP,0x48 MOV qword ptr [RSP + 0x38],RDI MOV qword ptr [RSP + 0x30],RSI MOV qword ptr [RSP + 0x28],RDX MOV qword ptr [RSP + 0x20],RCX MOV RAX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x8],RAX MOV RAX,-0x5555555555555556 CMP qword ptr [RSP + 0x8],RAX JC 0x0018d12d MOV qword ptr [RSP],-0x1 JMP 0x0018d141 LAB_0018d12d: MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x8] SHR RCX,0x1 ADD RAX,RCX MOV qword ptr [RSP],RAX LAB_0018d141: MOV RAX,qword ptr [RSP + 0x18] CMP RAX,qword ptr [RSP + 0x20] JNZ 0x0018d188 MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP] CALL 0x00127fa0 MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x10],0x0 JNZ 0x0018d172 MOV dword ptr [RSP + 0x44],0xffffffff JMP 0x0018d1d5 LAB_0018d172: MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x8] CALL 0x0010e610 JMP 0x0018d1b4 LAB_0018d188: MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP] CALL 0x001280d0 MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x10],0x0 JNZ 0x0018d1b2 MOV dword ptr [RSP + 0x44],0xffffffff JMP 0x0018d1d5 LAB_0018d1b2: JMP 0x0018d1b4 LAB_0018d1b4: MOV RCX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RAX],RCX MOV dword ptr [RSP + 0x44],0x0 LAB_0018d1d5: MOV EAX,dword ptr [RSP + 0x44] ADD RSP,0x48 RET
int4 ident_realloc(int8 param_1,int8 *param_2,ulong *param_3,void *param_4) { void *__src; ulong __n; ulong local_48; void *local_38; __src = (void *)*param_2; __n = *param_3; if (__n < 0xaaaaaaaaaaaaaaaa) { local_48 = __n + (__n >> 1); } else { local_48 = 0xffffffffffffffff; } if (__src == param_4) { local_38 = (void *)js_malloc(param_1,local_48); if (local_38 == (void *)0x0) { return 0xffffffff; } memcpy(local_38,__src,__n); } else { local_38 = (void *)js_realloc(param_1,__src,local_48); if (local_38 == (void *)0x0) { return 0xffffffff; } } *param_2 = local_38; *param_3 = local_48; return 0; }
29,398
reinit_io_cache
eloqsql/mysys/mf_iocache.c
my_bool reinit_io_cache(IO_CACHE *info, enum cache_type type, my_off_t seek_offset, my_bool use_async_io __attribute__((unused)), my_bool clear_cache) { DBUG_ENTER("reinit_io_cache"); DBUG_PRINT("enter",("cache:%p type: %d seek_offset: %llu clear_cache: %d", info, type, (ulonglong) seek_offset, (int) clear_cache)); DBUG_ASSERT(type == READ_CACHE || type == WRITE_CACHE); DBUG_ASSERT(info->type == READ_CACHE || info->type == WRITE_CACHE); /* If the whole file is in memory, avoid flushing to disk */ if (! clear_cache && seek_offset >= info->pos_in_file && seek_offset <= my_b_tell(info)) { /* Reuse current buffer without flushing it to disk */ uchar *pos; if (info->type == WRITE_CACHE && type == READ_CACHE) { info->read_end=info->write_pos; info->end_of_file=my_b_tell(info); /* Trigger a new seek only if we have a valid file handle. */ info->seek_not_done= (info->file != -1); } else if (type == WRITE_CACHE) { if (info->type == READ_CACHE) { info->write_end=info->write_buffer+info->buffer_length; info->seek_not_done=1; } info->end_of_file = ~(my_off_t) 0; } pos=info->request_pos+(seek_offset-info->pos_in_file); if (type == WRITE_CACHE) info->write_pos=pos; else info->read_pos= pos; } else { /* If we change from WRITE_CACHE to READ_CACHE, assume that everything after the current positions should be ignored. In other cases we update end_of_file as it may have changed since last init. */ if (type == READ_CACHE) { if (info->type == WRITE_CACHE) info->end_of_file= my_b_tell(info); else { if (!(info->myflags & MY_ENCRYPT)) info->end_of_file= mysql_file_seek(info->file, 0L, MY_SEEK_END, MYF(0)); } } /* flush cache if we want to reuse it */ if (!clear_cache && my_b_flush_io_cache(info,1)) DBUG_RETURN(1); info->pos_in_file=seek_offset; /* Better to do always do a seek */ info->seek_not_done=1; info->request_pos=info->read_pos=info->write_pos=info->buffer; if (type == READ_CACHE) { info->read_end=info->buffer; /* Nothing in cache */ } else { if (info->myflags & MY_ENCRYPT) { info->write_end = info->write_buffer + info->buffer_length; if (seek_offset && info->file != -1) { info->read_end= info->buffer; _my_b_encr_read(info, 0, 0); /* prefill the buffer */ info->write_pos= info->read_pos; info->seek_not_done=1; } } else { info->write_end=(info->buffer + info->buffer_length - (seek_offset & (IO_SIZE-1))); } info->end_of_file= ~(my_off_t) 0; } } info->type=type; info->error=0; init_functions(info); DBUG_RETURN(0); }
O0
c
reinit_io_cache: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb %r8b, %al movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movb %cl, -0x21(%rbp) movb %al, -0x22(%rbp) jmp 0x1309c1e jmp 0x1309c20 jmp 0x1309c22 jmp 0x1309c24 jmp 0x1309c26 cmpb $0x0, -0x22(%rbp) jne 0x1309d41 movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx cmpq (%rcx), %rax jb 0x1309d41 movq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi callq 0x1309f30 movq %rax, %rcx movq -0x38(%rbp), %rax cmpq %rcx, %rax ja 0x1309d41 movq -0x10(%rbp), %rax cmpl $0x2, 0xb0(%rax) jne 0x1309cb8 cmpl $0x1, -0x14(%rbp) jne 0x1309cb8 movq -0x10(%rbp), %rax movq 0x40(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rdi callq 0x1309f30 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rax cmpl $-0x1, 0xd4(%rax) setne %al andb $0x1, %al movzbl %al, %ecx movq -0x10(%rbp), %rax movl %ecx, 0xe0(%rax) jmp 0x1309d02 cmpl $0x2, -0x14(%rbp) jne 0x1309d00 movq -0x10(%rbp), %rax cmpl $0x1, 0xb0(%rax) jne 0x1309cf4 movq -0x10(%rbp), %rax movq 0x30(%rax), %rcx movq -0x10(%rbp), %rax addq 0xe8(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x10(%rbp), %rax movl $0x1, 0xe0(%rax) movq -0x10(%rbp), %rax movq $-0x1, 0x8(%rax) jmp 0x1309d02 movq -0x10(%rbp), %rax movq 0x28(%rax), %rax movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rdx subq (%rdx), %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) cmpl $0x2, -0x14(%rbp) jne 0x1309d30 movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) jmp 0x1309d3c movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) jmp 0x1309ef6 cmpl $0x1, -0x14(%rbp) jne 0x1309db7 movq -0x10(%rbp), %rax cmpl $0x2, 0xb0(%rax) jne 0x1309d6a movq -0x10(%rbp), %rdi callq 0x1309f30 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) jmp 0x1309db5 movq -0x10(%rbp), %rax movq 0xf8(%rax), %rax andq $0x40, %rax cmpq $0x0, %rax jne 0x1309db3 movq -0x10(%rbp), %rax movl 0xd4(%rax), %edx leaq 0x198abc(%rip), %rdi # 0x14a284c movl $0x1dd, %esi # imm = 0x1DD xorl %eax, %eax movl %eax, %r9d movl $0x2, %r8d movq %r9, %rcx callq 0x1309610 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) jmp 0x1309db5 jmp 0x1309db7 cmpb $0x0, -0x22(%rbp) jne 0x1309ddb movq -0x10(%rbp), %rdi movl $0x1, %esi callq 0x1309f90 cmpl $0x0, %eax je 0x1309ddb jmp 0x1309dd2 movb $0x1, -0x1(%rbp) jmp 0x1309f1e movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movl $0x1, 0xe0(%rax) movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x10(%rbp), %rax movq %rcx, 0x28(%rax) cmpl $0x1, -0x14(%rbp) jne 0x1309e2f movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x18(%rax) jmp 0x1309ef4 movq -0x10(%rbp), %rax movq 0xf8(%rax), %rax andq $0x40, %rax cmpq $0x0, %rax je 0x1309eba movq -0x10(%rbp), %rax movq 0x30(%rax), %rcx movq -0x10(%rbp), %rax addq 0xe8(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x48(%rax) cmpq $0x0, -0x20(%rbp) je 0x1309eb8 movq -0x10(%rbp), %rax cmpl $-0x1, 0xd4(%rax) je 0x1309eb8 movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x18(%rax) leaq 0x13140ee(%rip), %rax # 0x261df78 movq (%rax), %rax movq -0x10(%rbp), %rdi xorl %ecx, %ecx movl %ecx, %edx movq %rdx, %rsi callq *%rax movq -0x10(%rbp), %rax movq 0x10(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rax movl $0x1, 0xe0(%rax) jmp 0x1309ee8 movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx movq -0x10(%rbp), %rax addq 0xe8(%rax), %rcx movq -0x20(%rbp), %rdx andq $0xfff, %rdx # imm = 0xFFF xorl %eax, %eax subq %rdx, %rax addq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x10(%rbp), %rax movq $-0x1, 0x8(%rax) jmp 0x1309ef6 movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0xb0(%rax) movq -0x10(%rbp), %rax movl $0x0, 0xe4(%rax) movq -0x10(%rbp), %rdi callq 0x1309770 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
reinit_io_cache: push rbp mov rbp, rsp sub rsp, 40h mov al, r8b mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_21], cl mov [rbp+var_22], al jmp short $+2 loc_1309C1E: jmp short $+2 loc_1309C20: jmp short $+2 loc_1309C22: jmp short $+2 loc_1309C24: jmp short $+2 loc_1309C26: cmp [rbp+var_22], 0 jnz loc_1309D41 mov rax, [rbp+var_20] mov rcx, [rbp+var_10] cmp rax, [rcx] jb loc_1309D41 mov rax, [rbp+var_20] mov [rbp+var_38], rax mov rdi, [rbp+var_10] call my_b_tell_4 mov rcx, rax mov rax, [rbp+var_38] cmp rax, rcx ja loc_1309D41 mov rax, [rbp+var_10] cmp dword ptr [rax+0B0h], 2 jnz short loc_1309CB8 cmp [rbp+var_14], 1 jnz short loc_1309CB8 mov rax, [rbp+var_10] mov rcx, [rax+40h] mov rax, [rbp+var_10] mov [rax+18h], rcx mov rdi, [rbp+var_10] call my_b_tell_4 mov rcx, rax mov rax, [rbp+var_10] mov [rax+8], rcx mov rax, [rbp+var_10] cmp dword ptr [rax+0D4h], 0FFFFFFFFh setnz al and al, 1 movzx ecx, al mov rax, [rbp+var_10] mov [rax+0E0h], ecx jmp short loc_1309D02 loc_1309CB8: cmp [rbp+var_14], 2 jnz short loc_1309D00 mov rax, [rbp+var_10] cmp dword ptr [rax+0B0h], 1 jnz short loc_1309CF4 mov rax, [rbp+var_10] mov rcx, [rax+30h] mov rax, [rbp+var_10] add rcx, [rax+0E8h] mov rax, [rbp+var_10] mov [rax+48h], rcx mov rax, [rbp+var_10] mov dword ptr [rax+0E0h], 1 loc_1309CF4: mov rax, [rbp+var_10] mov qword ptr [rax+8], 0FFFFFFFFFFFFFFFFh loc_1309D00: jmp short $+2 loc_1309D02: mov rax, [rbp+var_10] mov rax, [rax+28h] mov rcx, [rbp+var_20] mov rdx, [rbp+var_10] sub rcx, [rdx] add rax, rcx mov [rbp+var_30], rax cmp [rbp+var_14], 2 jnz short loc_1309D30 mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax+40h], rcx jmp short loc_1309D3C loc_1309D30: mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax+10h], rcx loc_1309D3C: jmp loc_1309EF6 loc_1309D41: cmp [rbp+var_14], 1 jnz short loc_1309DB7 mov rax, [rbp+var_10] cmp dword ptr [rax+0B0h], 2 jnz short loc_1309D6A mov rdi, [rbp+var_10] call my_b_tell_4 mov rcx, rax mov rax, [rbp+var_10] mov [rax+8], rcx jmp short loc_1309DB5 loc_1309D6A: mov rax, [rbp+var_10] mov rax, [rax+0F8h] and rax, 40h cmp rax, 0 jnz short loc_1309DB3 mov rax, [rbp+var_10] mov edx, [rax+0D4h] lea rdi, aWorkspaceLlm4b_356; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 1DDh xor eax, eax mov r9d, eax mov r8d, 2 mov rcx, r9 call inline_mysql_file_seek_9 mov rcx, rax mov rax, [rbp+var_10] mov [rax+8], rcx loc_1309DB3: jmp short $+2 loc_1309DB5: jmp short $+2 loc_1309DB7: cmp [rbp+var_22], 0 jnz short loc_1309DDB mov rdi, [rbp+var_10] mov esi, 1 call my_b_flush_io_cache cmp eax, 0 jz short loc_1309DDB jmp short $+2 loc_1309DD2: mov [rbp+var_1], 1 jmp loc_1309F1E loc_1309DDB: mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax], rcx mov rax, [rbp+var_10] mov dword ptr [rax+0E0h], 1 mov rax, [rbp+var_10] mov rcx, [rax+20h] mov rax, [rbp+var_10] mov [rax+40h], rcx mov rax, [rbp+var_10] mov [rax+10h], rcx mov rax, [rbp+var_10] mov [rax+28h], rcx cmp [rbp+var_14], 1 jnz short loc_1309E2F mov rax, [rbp+var_10] mov rcx, [rax+20h] mov rax, [rbp+var_10] mov [rax+18h], rcx jmp loc_1309EF4 loc_1309E2F: mov rax, [rbp+var_10] mov rax, [rax+0F8h] and rax, 40h cmp rax, 0 jz short loc_1309EBA mov rax, [rbp+var_10] mov rcx, [rax+30h] mov rax, [rbp+var_10] add rcx, [rax+0E8h] mov rax, [rbp+var_10] mov [rax+48h], rcx cmp [rbp+var_20], 0 jz short loc_1309EB8 mov rax, [rbp+var_10] cmp dword ptr [rax+0D4h], 0FFFFFFFFh jz short loc_1309EB8 mov rax, [rbp+var_10] mov rcx, [rax+20h] mov rax, [rbp+var_10] mov [rax+18h], rcx lea rax, _my_b_encr_read mov rax, [rax] mov rdi, [rbp+var_10] xor ecx, ecx mov edx, ecx mov rsi, rdx call rax mov rax, [rbp+var_10] mov rcx, [rax+10h] mov rax, [rbp+var_10] mov [rax+40h], rcx mov rax, [rbp+var_10] mov dword ptr [rax+0E0h], 1 loc_1309EB8: jmp short loc_1309EE8 loc_1309EBA: mov rax, [rbp+var_10] mov rcx, [rax+20h] mov rax, [rbp+var_10] add rcx, [rax+0E8h] mov rdx, [rbp+var_20] and rdx, 0FFFh xor eax, eax sub rax, rdx add rcx, rax mov rax, [rbp+var_10] mov [rax+48h], rcx loc_1309EE8: mov rax, [rbp+var_10] mov qword ptr [rax+8], 0FFFFFFFFFFFFFFFFh loc_1309EF4: jmp short $+2 loc_1309EF6: mov ecx, [rbp+var_14] mov rax, [rbp+var_10] mov [rax+0B0h], ecx mov rax, [rbp+var_10] mov dword ptr [rax+0E4h], 0 mov rdi, [rbp+var_10] call init_functions mov [rbp+var_1], 0 loc_1309F1E: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char reinit_io_cache(long long a1, int a2, unsigned long long a3, double a4, long long a5, char a6) { long long v6; // rcx unsigned long long v8; // [rsp+10h] [rbp-30h] if ( !a6 && a3 >= *(_QWORD *)a1 && a3 <= my_b_tell_4(a1) ) { if ( *(_DWORD *)(a1 + 176) == 2 && a2 == 1 ) { *(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 64); *(_QWORD *)(a1 + 8) = my_b_tell_4(a1); *(_DWORD *)(a1 + 224) = *(_DWORD *)(a1 + 212) != -1; } else if ( a2 == 2 ) { if ( *(_DWORD *)(a1 + 176) == 1 ) { *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 48); *(_DWORD *)(a1 + 224) = 1; } *(_QWORD *)(a1 + 8) = -1LL; } v8 = a3 - *(_QWORD *)a1 + *(_QWORD *)(a1 + 40); if ( a2 == 2 ) *(_QWORD *)(a1 + 64) = v8; else *(_QWORD *)(a1 + 16) = v8; LABEL_31: *(_DWORD *)(a1 + 176) = a2; *(_DWORD *)(a1 + 228) = 0; init_functions(a1); return 0; } if ( a2 == 1 ) { if ( *(_DWORD *)(a1 + 176) == 2 ) { *(_QWORD *)(a1 + 8) = my_b_tell_4(a1); } else if ( (*(_QWORD *)(a1 + 248) & 0x40LL) == 0 ) { *(_QWORD *)(a1 + 8) = inline_mysql_file_seek_9( (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 0x1DDu, *(_DWORD *)(a1 + 212), 0LL, 2u, 0LL); } } if ( a6 || !(unsigned int)my_b_flush_io_cache(a1, 1LL, a4) ) { *(_QWORD *)a1 = a3; *(_DWORD *)(a1 + 224) = 1; v6 = *(_QWORD *)(a1 + 32); *(_QWORD *)(a1 + 64) = v6; *(_QWORD *)(a1 + 16) = v6; *(_QWORD *)(a1 + 40) = v6; if ( a2 == 1 ) { *(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 32); } else { if ( (*(_QWORD *)(a1 + 248) & 0x40LL) != 0 ) { *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 48); if ( a3 && *(_DWORD *)(a1 + 212) != -1 ) { *(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 32); my_b_encr_read(a1, 0LL); *(_QWORD *)(a1 + 64) = *(_QWORD *)(a1 + 16); *(_DWORD *)(a1 + 224) = 1; } } else { *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 32) - (a3 & 0xFFF); } *(_QWORD *)(a1 + 8) = -1LL; } goto LABEL_31; } return 1; }
__niter_base<TrxUndoRsegs*>: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* TrxUndoRsegs* std::__niter_base<TrxUndoRsegs*>(TrxUndoRsegs*) */ TrxUndoRsegs * std::__niter_base<TrxUndoRsegs*>(TrxUndoRsegs *param_1) { return param_1; }
29,399
reinit_io_cache
eloqsql/mysys/mf_iocache.c
my_bool reinit_io_cache(IO_CACHE *info, enum cache_type type, my_off_t seek_offset, my_bool use_async_io __attribute__((unused)), my_bool clear_cache) { DBUG_ENTER("reinit_io_cache"); DBUG_PRINT("enter",("cache:%p type: %d seek_offset: %llu clear_cache: %d", info, type, (ulonglong) seek_offset, (int) clear_cache)); DBUG_ASSERT(type == READ_CACHE || type == WRITE_CACHE); DBUG_ASSERT(info->type == READ_CACHE || info->type == WRITE_CACHE); /* If the whole file is in memory, avoid flushing to disk */ if (! clear_cache && seek_offset >= info->pos_in_file && seek_offset <= my_b_tell(info)) { /* Reuse current buffer without flushing it to disk */ uchar *pos; if (info->type == WRITE_CACHE && type == READ_CACHE) { info->read_end=info->write_pos; info->end_of_file=my_b_tell(info); /* Trigger a new seek only if we have a valid file handle. */ info->seek_not_done= (info->file != -1); } else if (type == WRITE_CACHE) { if (info->type == READ_CACHE) { info->write_end=info->write_buffer+info->buffer_length; info->seek_not_done=1; } info->end_of_file = ~(my_off_t) 0; } pos=info->request_pos+(seek_offset-info->pos_in_file); if (type == WRITE_CACHE) info->write_pos=pos; else info->read_pos= pos; } else { /* If we change from WRITE_CACHE to READ_CACHE, assume that everything after the current positions should be ignored. In other cases we update end_of_file as it may have changed since last init. */ if (type == READ_CACHE) { if (info->type == WRITE_CACHE) info->end_of_file= my_b_tell(info); else { if (!(info->myflags & MY_ENCRYPT)) info->end_of_file= mysql_file_seek(info->file, 0L, MY_SEEK_END, MYF(0)); } } /* flush cache if we want to reuse it */ if (!clear_cache && my_b_flush_io_cache(info,1)) DBUG_RETURN(1); info->pos_in_file=seek_offset; /* Better to do always do a seek */ info->seek_not_done=1; info->request_pos=info->read_pos=info->write_pos=info->buffer; if (type == READ_CACHE) { info->read_end=info->buffer; /* Nothing in cache */ } else { if (info->myflags & MY_ENCRYPT) { info->write_end = info->write_buffer + info->buffer_length; if (seek_offset && info->file != -1) { info->read_end= info->buffer; _my_b_encr_read(info, 0, 0); /* prefill the buffer */ info->write_pos= info->read_pos; info->seek_not_done=1; } } else { info->write_end=(info->buffer + info->buffer_length - (seek_offset & (IO_SIZE-1))); } info->end_of_file= ~(my_off_t) 0; } } info->type=type; info->error=0; init_functions(info); DBUG_RETURN(0); }
O3
c
reinit_io_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r8d, %r12d movq %rdx, %r15 movl %esi, %r14d movq %rdi, %rbx testb %r12b, %r12b jne 0xce7288 movq (%rbx), %rdx movq %r15, %rax subq %rdx, %rax jb 0xce7288 movl 0xb0(%rbx), %esi leaq 0x10(%rbx), %rdi leaq 0x40(%rbx), %r8 cmpl $0x2, %esi movq 0x28(%rbx), %rcx cmoveq %r8, %rdi subq %rcx, %rdx movq (%rdi), %rdi addq %rdx, %rdi cmpq %r15, %rdi jae 0xce73cb cmpl $0x1, %r14d jne 0xce72ee cmpl $0x2, 0xb0(%rbx) jne 0xce72a4 movq (%rbx), %rax subq 0x28(%rbx), %rax addq 0x40(%rbx), %rax jmp 0xce72ea testb $0x40, 0xf8(%rbx) jne 0xce72ee movl 0xd4(%rbx), %r13d leaq 0x83fc4d(%rip), %rax # 0x1526f08 movq (%rax), %rax leaq -0x78(%rbp), %rdi movl %r13d, %esi movl $0x8, %edx callq *0x158(%rax) testq %rax, %rax jne 0xce7443 movl %r13d, %edi xorl %esi, %esi movl $0x2, %edx xorl %ecx, %ecx callq 0xcf7854 movq %rax, 0x8(%rbx) testb %r12b, %r12b je 0xce733f movq %r15, (%rbx) movl $0x1, 0xe0(%rbx) movq 0x20(%rbx), %rax movq %rax, 0x40(%rbx) movq %rax, 0x10(%rbx) movq %rax, 0x28(%rbx) cmpl $0x1, %r14d jne 0xce731f movq %rax, 0x18(%rbx) jmp 0xce73a1 testb $0x40, 0xf8(%rbx) jne 0xce7356 addq 0xe8(%rbx), %rax andl $0xfff, %r15d # imm = 0xFFF subq %r15, %rax movq %rax, 0x48(%rbx) jmp 0xce7399 movq %rbx, %rdi movl $0x1, %esi callq 0xce7461 movl %eax, %ecx movb $0x1, %al testl %ecx, %ecx jne 0xce73bc jmp 0xce72f3 movq 0x30(%rbx), %rcx addq 0xe8(%rbx), %rcx movq %rcx, 0x48(%rbx) testq %r15, %r15 je 0xce7399 cmpl $-0x1, 0xd4(%rbx) je 0xce7399 movq %rax, 0x18(%rbx) leaq 0x118a15a(%rip), %rax # 0x1e714d8 movq %rbx, %rdi xorl %esi, %esi xorl %edx, %edx callq *(%rax) movq 0x10(%rbx), %rax movq %rax, 0x40(%rbx) movl $0x1, 0xe0(%rbx) movq $-0x1, 0x8(%rbx) movl %r14d, 0xb0(%rbx) movl $0x0, 0xe4(%rbx) movq %rbx, %rdi callq 0xce7017 xorl %eax, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %esi, %edi xorl $0x2, %edi movl %r14d, %r8d xorl $0x1, %r8d orl %edi, %r8d jne 0xce73ff movq 0x40(%rbx), %rsi movq %rsi, 0x18(%rbx) addq %rsi, %rdx movq %rdx, 0x8(%rbx) xorl %edx, %edx cmpl $-0x1, 0xd4(%rbx) setne %dl movl %edx, 0xe0(%rbx) jmp 0xce7437 cmpl $0x2, %r14d jne 0xce7437 cmpl $0x1, %esi jne 0xce7423 movq 0x30(%rbx), %rdx addq 0xe8(%rbx), %rdx movq %rdx, 0x48(%rbx) movl $0x1, 0xe0(%rbx) movq $-0x1, 0x8(%rbx) addq %rax, %rcx movq %rcx, 0x40(%rbx) jmp 0xce73a1 addq %rax, %rcx movq %rcx, 0x10(%rbx) jmp 0xce73a1 leaq -0x30(%rbp), %rcx movq %rax, %rdi movl %r13d, %esi movq %rcx, %r13 movq %rcx, %rdx callq 0x69721f movq (%r13), %rax jmp 0xce72ea
reinit_io_cache: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r12d, r8d mov r15, rdx mov r14d, esi mov rbx, rdi test r12b, r12b jnz short loc_CE7288 mov rdx, [rbx] mov rax, r15 sub rax, rdx jb short loc_CE7288 mov esi, [rbx+0B0h] lea rdi, [rbx+10h] lea r8, [rbx+40h] cmp esi, 2 mov rcx, [rbx+28h] cmovz rdi, r8 sub rdx, rcx mov rdi, [rdi] add rdi, rdx cmp rdi, r15 jnb loc_CE73CB loc_CE7288: cmp r14d, 1 jnz short loc_CE72EE cmp dword ptr [rbx+0B0h], 2 jnz short loc_CE72A4 mov rax, [rbx] sub rax, [rbx+28h] add rax, [rbx+40h] jmp short loc_CE72EA loc_CE72A4: test byte ptr [rbx+0F8h], 40h jnz short loc_CE72EE mov r13d, [rbx+0D4h] lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_78] mov esi, r13d mov edx, 8 call qword ptr [rax+158h] test rax, rax jnz loc_CE7443 mov edi, r13d xor esi, esi mov edx, 2 xor ecx, ecx call my_seek loc_CE72EA: mov [rbx+8], rax loc_CE72EE: test r12b, r12b jz short loc_CE733F loc_CE72F3: mov [rbx], r15 mov dword ptr [rbx+0E0h], 1 mov rax, [rbx+20h] mov [rbx+40h], rax mov [rbx+10h], rax mov [rbx+28h], rax cmp r14d, 1 jnz short loc_CE731F mov [rbx+18h], rax jmp loc_CE73A1 loc_CE731F: test byte ptr [rbx+0F8h], 40h jnz short loc_CE7356 add rax, [rbx+0E8h] and r15d, 0FFFh sub rax, r15 mov [rbx+48h], rax jmp short loc_CE7399 loc_CE733F: mov rdi, rbx mov esi, 1 call my_b_flush_io_cache mov ecx, eax mov al, 1 test ecx, ecx jnz short loc_CE73BC jmp short loc_CE72F3 loc_CE7356: mov rcx, [rbx+30h] add rcx, [rbx+0E8h] mov [rbx+48h], rcx test r15, r15 jz short loc_CE7399 cmp dword ptr [rbx+0D4h], 0FFFFFFFFh jz short loc_CE7399 mov [rbx+18h], rax lea rax, _my_b_encr_read mov rdi, rbx xor esi, esi xor edx, edx call qword ptr [rax] mov rax, [rbx+10h] mov [rbx+40h], rax mov dword ptr [rbx+0E0h], 1 loc_CE7399: mov qword ptr [rbx+8], 0FFFFFFFFFFFFFFFFh loc_CE73A1: mov [rbx+0B0h], r14d mov dword ptr [rbx+0E4h], 0 mov rdi, rbx call init_functions xor eax, eax loc_CE73BC: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_CE73CB: mov edi, esi xor edi, 2 mov r8d, r14d xor r8d, 1 or r8d, edi jnz short loc_CE73FF mov rsi, [rbx+40h] mov [rbx+18h], rsi add rdx, rsi mov [rbx+8], rdx xor edx, edx cmp dword ptr [rbx+0D4h], 0FFFFFFFFh setnz dl mov [rbx+0E0h], edx jmp short loc_CE7437 loc_CE73FF: cmp r14d, 2 jnz short loc_CE7437 cmp esi, 1 jnz short loc_CE7423 mov rdx, [rbx+30h] add rdx, [rbx+0E8h] mov [rbx+48h], rdx mov dword ptr [rbx+0E0h], 1 loc_CE7423: mov qword ptr [rbx+8], 0FFFFFFFFFFFFFFFFh add rcx, rax mov [rbx+40h], rcx jmp loc_CE73A1 loc_CE7437: add rcx, rax mov [rbx+10h], rcx jmp loc_CE73A1 loc_CE7443: lea rcx, [rbp+var_30] mov rdi, rax mov esi, r13d mov r13, rcx mov rdx, rcx call reinit_io_cache_cold_1 mov rax, [r13+0] jmp loc_CE72EA
char reinit_io_cache(long long a1, int a2, unsigned long long a3, long long a4, char a5) { long long v9; // rdx unsigned long long v10; // rax int v11; // esi _QWORD *v12; // rdi long long v13; // rcx long long v14; // rdx long long v15; // rax unsigned int v16; // r13d long long v17; // rax long long v18; // rax int v19; // ecx char result; // al long long v21; // rsi _BYTE v22[72]; // [rsp+8h] [rbp-78h] BYREF long long v23[6]; // [rsp+50h] [rbp-30h] BYREF if ( !a5 ) { v9 = *(_QWORD *)a1; v10 = a3 - *(_QWORD *)a1; if ( a3 >= *(_QWORD *)a1 ) { v11 = *(_DWORD *)(a1 + 176); v12 = (_QWORD *)(a1 + 16); v13 = *(_QWORD *)(a1 + 40); if ( v11 == 2 ) v12 = (_QWORD *)(a1 + 64); v14 = v9 - v13; if ( v14 + *v12 >= a3 ) { if ( v11 ^ 2 | a2 ^ 1 ) { if ( a2 == 2 ) { if ( v11 == 1 ) { *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 48); *(_DWORD *)(a1 + 224) = 1; } *(_QWORD *)(a1 + 8) = -1LL; *(_QWORD *)(a1 + 64) = v10 + v13; goto LABEL_24; } } else { v21 = *(_QWORD *)(a1 + 64); *(_QWORD *)(a1 + 24) = v21; *(_QWORD *)(a1 + 8) = v21 + v14; *(_DWORD *)(a1 + 224) = *(_DWORD *)(a1 + 212) != -1; } *(_QWORD *)(a1 + 16) = v10 + v13; LABEL_24: *(_DWORD *)(a1 + 176) = a2; *(_DWORD *)(a1 + 228) = 0; init_functions(a1); return 0; } } } if ( a2 == 1 ) { if ( *(_DWORD *)(a1 + 176) == 2 ) { v15 = *(_QWORD *)(a1 + 64) + *(_QWORD *)a1 - *(_QWORD *)(a1 + 40); LABEL_12: *(_QWORD *)(a1 + 8) = v15; goto LABEL_13; } if ( (*(_BYTE *)(a1 + 248) & 0x40) == 0 ) { v16 = *(_DWORD *)(a1 + 212); v17 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v22, v16, 8LL); if ( v17 ) { reinit_io_cache_cold_1(v17, v16, v23); v15 = v23[0]; } else { v15 = my_seek(v16, 0LL, 2LL, 0LL); } goto LABEL_12; } } LABEL_13: if ( a5 || (v19 = my_b_flush_io_cache(a1, 1LL), result = 1, !v19) ) { *(_QWORD *)a1 = a3; *(_DWORD *)(a1 + 224) = 1; v18 = *(_QWORD *)(a1 + 32); *(_QWORD *)(a1 + 64) = v18; *(_QWORD *)(a1 + 16) = v18; *(_QWORD *)(a1 + 40) = v18; if ( a2 == 1 ) { *(_QWORD *)(a1 + 24) = v18; } else { if ( (*(_BYTE *)(a1 + 248) & 0x40) != 0 ) { *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 48); if ( a3 ) { if ( *(_DWORD *)(a1 + 212) != -1 ) { *(_QWORD *)(a1 + 24) = v18; my_b_encr_read(a1, 0LL, 0LL); *(_QWORD *)(a1 + 64) = *(_QWORD *)(a1 + 16); *(_DWORD *)(a1 + 224) = 1; } } } else { *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + v18 - (a3 & 0xFFF); } *(_QWORD *)(a1 + 8) = -1LL; } goto LABEL_24; } return result; }