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
38,900
LefDefParser::defrPrintUnusedCallbacks(_IO_FILE*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defrReader.cpp
void defrPrintUnusedCallbacks(FILE *log) { int i; int first = 1; for (i = 0; i < CBMAX; i++) { if (defContext.settings->UnusedCallbacks[i]) { if (first) { fprintf(log, "WARNING (DEFPARS-5001): DEF statement found in the def file with no callback set.\n"); first = 0; } fprintf(log, "%5d %s\n", defContext.settings->UnusedCallbacks[i], typeToString((defrCallbackType_e) i)); } } }
O3
cpp
LefDefParser::defrPrintUnusedCallbacks(_IO_FILE*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x4f915(%rip), %r13 # 0x63290 movq (%r13), %rax movl $0x1, %r12d xorl %r14d, %r14d leaq 0x2cc8c(%rip), %r15 # 0x4061b movl 0x120(%rax,%r14,4), %ebp testl %ebp, %ebp je 0x139e6 testl %r12d, %r12d je 0x139c5 movl $0x52, %esi movl $0x1, %edx leaq 0x2cc17(%rip), %rdi # 0x405c8 movq %rbx, %rcx callq 0x6350 movq (%r13), %rax movl 0x120(%rax,%r14,4), %ebp movl %r14d, %edi callq 0x1355d xorl %r12d, %r12d movq %rbx, %rdi movq %r15, %rsi movl %ebp, %edx movq %rax, %rcx xorl %eax, %eax callq 0x6290 movq (%r13), %rax incq %r14 cmpq $0x96, %r14 jne 0x1398f addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN12LefDefParser24defrPrintUnusedCallbacksEP8_IO_FILE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi lea r13, _ZN12LefDefParser10defContextE; LefDefParser::defContext mov rax, [r13+0] mov r12d, 1 xor r14d, r14d lea r15, a5dS; "%5d %s\n" loc_1398F: mov ebp, [rax+r14*4+120h] test ebp, ebp jz short loc_139E6 test r12d, r12d jz short loc_139C5 mov esi, 52h ; 'R' mov edx, 1 lea rdi, aWarningDefpars; "WARNING (DEFPARS-5001): DEF statement f"... mov rcx, rbx call _fwrite mov rax, [r13+0] mov ebp, [rax+r14*4+120h] loc_139C5: mov edi, r14d call _ZN12LefDefParser12typeToStringENS_18defrCallbackType_eE; LefDefParser::typeToString(LefDefParser::defrCallbackType_e) xor r12d, r12d mov rdi, rbx mov rsi, r15 mov edx, ebp mov rcx, rax xor eax, eax call _fprintf mov rax, [r13+0] loc_139E6: inc r14 cmp r14, 96h jnz short loc_1398F add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long LefDefParser::defrPrintUnusedCallbacks(long long a1) { long long result; // rax int v2; // r12d long long i; // r14 int v4; // ebp const char *v5; // rax result = LefDefParser::defContext[0]; v2 = 1; for ( i = 0LL; i != 150; ++i ) { v4 = *(_DWORD *)(result + 4 * i + 288); if ( v4 ) { if ( v2 ) { fwrite("WARNING (DEFPARS-5001): DEF statement found in the def file with no callback set.\n", 82LL, 1LL, a1); v4 = *(_DWORD *)(LefDefParser::defContext[0] + 4 * i + 288); } v5 = LefDefParser::typeToString(i); v2 = 0; fprintf(a1, "%5d %s\n", v4, v5); result = LefDefParser::defContext[0]; } } return result; }
defrPrintUnusedCallbacks: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI LEA R13,[0x163290] MOV RAX,qword ptr [R13] MOV R12D,0x1 XOR R14D,R14D LEA R15,[0x14061b] LAB_0011398f: MOV EBP,dword ptr [RAX + R14*0x4 + 0x120] TEST EBP,EBP JZ 0x001139e6 TEST R12D,R12D JZ 0x001139c5 MOV ESI,0x52 MOV EDX,0x1 LEA RDI,[0x1405c8] MOV RCX,RBX CALL 0x00106350 MOV RAX,qword ptr [R13] MOV EBP,dword ptr [RAX + R14*0x4 + 0x120] LAB_001139c5: MOV EDI,R14D CALL 0x0011355d XOR R12D,R12D MOV RDI,RBX MOV RSI,R15 MOV EDX,EBP MOV RCX,RAX XOR EAX,EAX CALL 0x00106290 MOV RAX,qword ptr [R13] LAB_001139e6: INC R14 CMP R14,0x96 JNZ 0x0011398f ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* LefDefParser::defrPrintUnusedCallbacks(_IO_FILE*) */ void LefDefParser::defrPrintUnusedCallbacks(_IO_FILE *param_1) { bool bVar1; int8 uVar2; long lVar3; uint uVar4; ulong uVar5; bVar1 = true; uVar5 = 0; lVar3 = defContext; do { uVar4 = *(uint *)(lVar3 + 0x120 + uVar5 * 4); if (uVar4 != 0) { if (bVar1) { fwrite("WARNING (DEFPARS-5001): DEF statement found in the def file with no callback set.\n" ,0x52,1,param_1); uVar4 = *(uint *)(defContext + 0x120 + uVar5 * 4); } uVar2 = typeToString(uVar5 & 0xffffffff); bVar1 = false; fprintf(param_1,"%5d %s\n",(ulong)uVar4,uVar2); lVar3 = defContext; } uVar5 = uVar5 + 1; } while (uVar5 != 0x96); return; }
38,901
ftxui::operator|=(std::shared_ptr<ftxui::ComponentBase>&, std::function<std::shared_ptr<ftxui::ComponentBase> (std::shared_ptr<ftxui::ComponentBase>)>)
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/component/util.cpp
Component& operator|=(Component& component, ComponentDecorator decorator) { component = component | decorator; // NOLINT return component; }
O2
cpp
ftxui::operator|=(std::shared_ptr<ftxui::ComponentBase>&, std::function<std::shared_ptr<ftxui::ComponentBase> (std::shared_ptr<ftxui::ComponentBase>)>): pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x8(%rsp), %rdi movq %rbx, %rsi callq 0x1341e leaq 0x28(%rsp), %rdi movq %r14, %rsi callq 0x2b808 leaq 0x18(%rsp), %rdi leaq 0x8(%rsp), %rsi leaq 0x28(%rsp), %rdx callq 0x2b5d0 leaq 0x18(%rsp), %rsi movq %rbx, %rdi callq 0x22068 leaq 0x20(%rsp), %rdi callq 0x13452 leaq 0x28(%rsp), %rdi callq 0x13b10 leaq 0x10(%rsp), %rdi callq 0x13452 movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x13b10 jmp 0x2b748 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x13452 movq %rbx, %rdi callq 0xc7f0
_ZN5ftxuioRERSt10shared_ptrINS_13ComponentBaseEESt8functionIFS2_S2_EE: push r14 push rbx sub rsp, 48h mov r14, rsi mov rbx, rdi lea rdi, [rsp+58h+var_50] mov rsi, rbx call _ZNSt12__shared_ptrIN5ftxui13ComponentBaseELN9__gnu_cxx12_Lock_policyE2EEC2ERKS4_; std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2> const&) lea rdi, [rsp+58h+var_30] mov rsi, r14 call _ZNSt8functionIFSt10shared_ptrIN5ftxui13ComponentBaseEES3_EEC2ERKS5_; std::function<std::shared_ptr<ftxui::ComponentBase> ()(std::shared_ptr<ftxui::ComponentBase>)>::function(std::function<std::shared_ptr<ftxui::ComponentBase> ()(std::shared_ptr<ftxui::ComponentBase>)> const&) lea rdi, [rsp+58h+var_40] lea rsi, [rsp+58h+var_50] lea rdx, [rsp+58h+var_30] call _ZN5ftxuiorESt10shared_ptrINS_13ComponentBaseEESt8functionIFS2_S2_EE; ftxui::operator|(std::shared_ptr<ftxui::ComponentBase>,std::function<std::shared_ptr<ftxui::ComponentBase> ()(std::shared_ptr<ftxui::ComponentBase>)>) lea rsi, [rsp+58h+var_40] mov rdi, rbx call _ZNSt12__shared_ptrIN5ftxui13ComponentBaseELN9__gnu_cxx12_Lock_policyE2EEaSEOS4_; std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>&&) lea rdi, [rsp+58h+var_38] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+58h+var_30]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rdi, [rsp+58h+var_48] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rax, rbx add rsp, 48h pop rbx pop r14 retn mov rbx, rax lea rdi, [rsp+arg_20]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() jmp short loc_2B748 mov rbx, rax loc_2B748: lea rdi, [rsp+arg_8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, rbx call __Unwind_Resume
__int128 * ftxui::operator|=(__int128 *a1, long long a2) { long long v3; // [rsp+8h] [rbp-50h] BYREF long long v4; // [rsp+10h] [rbp-48h] BYREF __int128 v5; // [rsp+18h] [rbp-40h] BYREF _BYTE v6[48]; // [rsp+28h] [rbp-30h] BYREF std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(&v3, a1); std::function<std::shared_ptr<ftxui::ComponentBase> ()(std::shared_ptr<ftxui::ComponentBase>)>::function(v6, a2); ftxui::operator|((long long)&v5, &v3, (long long)v6); std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::operator=(a1, &v5); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v5 + 1); std::_Function_base::~_Function_base((std::_Function_base *)v6); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v4); return a1; }
operator|=: PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RSI MOV RBX,RDI LEA RDI,[RSP + 0x8] MOV RSI,RBX CALL 0x0011341e LAB_0012b6df: LEA RDI,[RSP + 0x28] MOV RSI,R14 CALL 0x0012b808 LAB_0012b6ec: LEA RDI,[RSP + 0x18] LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x0012b5d0 LAB_0012b700: LEA RSI,[RSP + 0x18] MOV RDI,RBX CALL 0x00122068 LEA RDI,[RSP + 0x20] CALL 0x00113452 LEA RDI,[RSP + 0x28] CALL 0x00113b10 LEA RDI,[RSP + 0x10] CALL 0x00113452 MOV RAX,RBX ADD RSP,0x48 POP RBX POP R14 RET
/* ftxui::TEMPNAMEPLACEHOLDERVALUE(std::shared_ptr<ftxui::ComponentBase>&, std::function<std::shared_ptr<ftxui::ComponentBase> (std::shared_ptr<ftxui::ComponentBase>)>) */ __shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2> * ftxui::operator|=(__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2> *param_1, function *param_2) { __shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2> local_50 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_48 [8]; ftxui local_40 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_38 [8]; function<std::shared_ptr<ftxui::ComponentBase>(std::shared_ptr<ftxui::ComponentBase>)> local_30 [32]; std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::__shared_ptr (local_50,(__shared_ptr *)param_1); /* try { // try from 0012b6df to 0012b6eb has its CatchHandler @ 0012b745 */ std::function<std::shared_ptr<ftxui::ComponentBase>(std::shared_ptr<ftxui::ComponentBase>)>:: function(local_30,param_2); /* try { // try from 0012b6ec to 0012b6ff has its CatchHandler @ 0012b736 */ operator|(local_40,local_50,local_30); std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::operator= (param_1,(__shared_ptr *)local_40); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_38); std::_Function_base::~_Function_base((_Function_base *)local_30); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_48); return param_1; }
38,902
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, double, 0>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, double&)
llama.cpp/common/json.hpp
void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val) { switch (static_cast<value_t>(j)) { case value_t::number_unsigned: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>()); break; } case value_t::number_integer: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); break; } case value_t::number_float: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>()); break; } case value_t::null: case value_t::object: case value_t::array: case value_t::string: case value_t::boolean: case value_t::binary: case value_t::discarded: default: JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j)); } }
O3
cpp
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, double, 0>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, double&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movzbl (%rdi), %eax cmpl $0x5, %eax je 0xe4784 cmpl $0x7, %eax je 0xe477c cmpl $0x6, %eax jne 0xe4797 movsd 0x8(%r14), %xmm1 unpcklps 0x5342a(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0x53432(%rip), %xmm1 # 0x137ba0 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 jmp 0xe478a movsd 0x8(%r14), %xmm0 jmp 0xe478a cvtsi2sdq 0x8(%r14), %xmm0 movsd %xmm0, (%rsi) addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x20, %edi callq 0x23850 movq %rax, %rbx movq %r14, %rdi callq 0xafc76 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x62615(%rip), %rsi # 0x146dd0 leaq 0x10(%rsp), %rdi callq 0xa5604 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0xe1580 xorl %ebp, %ebp leaq 0xa885a(%rip), %rsi # 0x18d040 leaq -0x48c6d(%rip), %rdx # 0x9bb80 movq %rbx, %rdi callq 0x23e00 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xe4813 movq 0x20(%rsp), %rsi incq %rsi callq 0x231f0 testb %bpl, %bpl jne 0xe481d jmp 0xe4825 movq %rax, %r14 movq %rbx, %rdi callq 0x24440 movq %r14, %rdi callq 0x23ee0 nop
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: push rbp; void * push r14; int push rbx; __int64 sub rsp, 30h mov r14, rdi movzx eax, byte ptr [rdi] cmp eax, 5 jz short loc_E4784 cmp eax, 7 jz short loc_E477C cmp eax, 6 jnz short loc_E4797 movsd xmm1, qword ptr [r14+8] unpcklps xmm1, cs:xmmword_137B90 subpd xmm1, cs:xmmword_137BA0 movapd xmm0, xmm1 unpckhpd xmm0, xmm1 addsd xmm0, xmm1 jmp short loc_E478A loc_E477C: movsd xmm0, qword ptr [r14+8] jmp short loc_E478A loc_E4784: cvtsi2sd xmm0, qword ptr [r14+8] loc_E478A: movsd qword ptr [rsi], xmm0 add rsp, 30h pop rbx pop r14 pop rbp retn loc_E4797: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeNumb; "type must be number, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_E4813 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E4813: test bpl, bpl jnz short loc_E481D jmp short loc_E4825 mov r14, rax loc_E481D: mov rdi, rbx; void * call ___cxa_free_exception loc_E4825: mov rdi, r14 call __Unwind_Resume
long long ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_( unsigned __int8 *a1, double *a2) { long long result; // rax __m128d v3; // xmm1 double v4; // xmm0_8 nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx const char *v6; // [rsp+8h] [rbp-40h] BYREF _QWORD v7[2]; // [rsp+10h] [rbp-38h] BYREF result = *a1; switch ( (_DWORD)result ) { case 5: v4 = (double)(int)*((_QWORD *)a1 + 1); break; case 7: v4 = *((double *)a1 + 1); break; case 6: v3 = _mm_sub_pd( (__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a1 + 1), (__m128)xmmword_137B90), (__m128d)xmmword_137BA0); v4 = _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0]; break; default: exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v6 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v7, (long long)"type must be number, but is ", &v6); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } *a2 = v4; return result; }
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI MOVZX EAX,byte ptr [RDI] CMP EAX,0x5 JZ 0x001e4784 CMP EAX,0x7 JZ 0x001e477c CMP EAX,0x6 JNZ 0x001e4797 MOVSD XMM1,qword ptr [R14 + 0x8] UNPCKLPS XMM1,xmmword ptr [0x00237b90] SUBPD XMM1,xmmword ptr [0x00237ba0] MOVAPD XMM0,XMM1 UNPCKHPD XMM0,XMM1 ADDSD XMM0,XMM1 JMP 0x001e478a LAB_001e477c: MOVSD XMM0,qword ptr [R14 + 0x8] JMP 0x001e478a LAB_001e4784: CVTSI2SD XMM0,qword ptr [R14 + 0x8] LAB_001e478a: MOVSD qword ptr [RSI],XMM0 ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_001e4797: MOV EDI,0x20 CALL 0x00123850 MOV RBX,RAX MOV RDI,R14 CALL 0x001afc76 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_001e47b4: LEA RSI,[0x246dd0] LEA RDI,[RSP + 0x10] CALL 0x001a5604 MOV BPL,0x1 LAB_001e47c8: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x001e1580 XOR EBP,EBP LEA RSI,[0x28d040] LEA RDX,[0x19bb80] MOV RDI,RBX CALL 0x00123e00
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,double *param_2) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> bVar1; int8 uVar2; double dVar3; char *local_40; detail local_38 [32]; bVar1 = *param_1; if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x5) { dVar3 = (double)*(long *)(param_1 + 8); } else if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x7) { dVar3 = *(double *)(param_1 + 8); } else { if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x6) { uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 001e47b4 to 001e47c4 has its CatchHandler @ 001e481a */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"type must be number, but is ",&local_40); /* try { // try from 001e47c8 to 001e47f4 has its CatchHandler @ 001e47f5 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x12e,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } dVar3 = ((double)CONCAT44(DAT_00237b90._4_4_,(int)((ulong)*(int8 *)(param_1 + 8) >> 0x20)) - _UNK_00237ba8) + ((double)CONCAT44((int4)DAT_00237b90,(int)*(int8 *)(param_1 + 8)) - _DAT_00237ba0); } *param_2 = dVar3; return; }
38,903
ma_get_last_key
eloqsql/storage/maria/ma_search.c
uchar *_ma_get_last_key(MARIA_KEY *key, MARIA_PAGE *ma_page, uchar *endpos) { uint page_flag,nod_flag; uchar *lastpos, *page; MARIA_KEYDEF *keyinfo= key->keyinfo; DBUG_ENTER("_ma_get_last_key"); DBUG_PRINT("enter",("page: %p endpos: %p", ma_page->buff, endpos)); page_flag= ma_page->flag; nod_flag= ma_page->node; page= ma_page->buff + keyinfo->share->keypage_header + nod_flag; if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)) && ! (page_flag & KEYPAGE_FLAG_HAS_TRANSID)) { lastpos= endpos-keyinfo->keylength-nod_flag; key->ref_length= keyinfo->share->rec_reflength; key->data_length= keyinfo->keylength - key->ref_length; key->flag= 0; if (lastpos >= page) bmove(key->data, lastpos, keyinfo->keylength + nod_flag); } else { lastpos= page; key->data[0]=0; /* safety */ while (page < endpos) { lastpos= page; if (!(*keyinfo->get_key)(key, page_flag, nod_flag, &page)) { DBUG_PRINT("error",("Couldn't find last key: page: %p", page)); _ma_set_fatal_error_with_share(keyinfo->share, HA_ERR_CRASHED); DBUG_RETURN(0); } } } DBUG_PRINT("exit",("lastpos: %p length: %u", lastpos, key->data_length + key->ref_length)); DBUG_RETURN(lastpos); }
O0
c
ma_get_last_key: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x40(%rbp) jmp 0x99332 movq -0x18(%rbp), %rax movl 0x2c(%rax), %eax movl %eax, -0x24(%rbp) movq -0x18(%rbp), %rax movl 0x28(%rax), %eax movl %eax, -0x28(%rbp) movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movq -0x40(%rbp), %rcx movq (%rcx), %rcx movl 0x744(%rcx), %ecx addq %rcx, %rax movl -0x28(%rbp), %ecx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x40(%rbp), %rax movzwl 0xa2(%rax), %eax andl $0x28, %eax cmpl $0x0, %eax jne 0x9941f movl -0x24(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax jne 0x9941f movq -0x20(%rbp), %rax movq -0x40(%rbp), %rcx movzwl 0xaa(%rcx), %ecx movslq %ecx, %rdx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movl -0x28(%rbp), %ecx movl %ecx, %edx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x40(%rbp), %rax movq (%rax), %rax movl 0x740(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x40(%rbp), %rax movzwl 0xaa(%rax), %ecx movq -0x10(%rbp), %rax subl 0x14(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x10(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x18(%rax) movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax jb 0x9941d movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x30(%rbp), %rsi movq -0x40(%rbp), %rax movzwl 0xaa(%rax), %eax addl -0x28(%rbp), %eax movl %eax, %eax movl %eax, %edx callq 0x2a140 jmp 0x99486 movq -0x38(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movb $0x0, (%rax) movq -0x38(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x99484 movq -0x38(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x40(%rbp), %rax movq 0xe0(%rax), %rax movq -0x10(%rbp), %rdi movl -0x24(%rbp), %esi movl -0x28(%rbp), %edx leaq -0x38(%rbp), %rcx callq *%rax cmpl $0x0, %eax jne 0x99482 jmp 0x99465 jmp 0x99467 movq -0x40(%rbp), %rax movq (%rax), %rdi movl $0x7e, %esi callq 0x45ec0 movq $0x0, -0x8(%rbp) jmp 0x99494 jmp 0x99431 jmp 0x99486 jmp 0x99488 jmp 0x9948a jmp 0x9948c movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nop
_ma_get_last_key: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_40], rax jmp short $+2 loc_99332: mov rax, [rbp+var_18] mov eax, [rax+2Ch] mov [rbp+var_24], eax mov rax, [rbp+var_18] mov eax, [rax+28h] mov [rbp+var_28], eax mov rax, [rbp+var_18] mov rax, [rax+10h] mov rcx, [rbp+var_40] mov rcx, [rcx] mov ecx, [rcx+744h] add rax, rcx mov ecx, [rbp+var_28] add rax, rcx mov [rbp+var_38], rax mov rax, [rbp+var_40] movzx eax, word ptr [rax+0A2h] and eax, 28h cmp eax, 0 jnz loc_9941F mov eax, [rbp+var_24] and eax, 2 cmp eax, 0 jnz loc_9941F mov rax, [rbp+var_20] mov rcx, [rbp+var_40] movzx ecx, word ptr [rcx+0AAh] movsxd rdx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov ecx, [rbp+var_28] mov edx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_40] mov rax, [rax] mov ecx, [rax+740h] mov rax, [rbp+var_10] mov [rax+14h], ecx mov rax, [rbp+var_40] movzx ecx, word ptr [rax+0AAh] mov rax, [rbp+var_10] sub ecx, [rax+14h] mov rax, [rbp+var_10] mov [rax+10h], ecx mov rax, [rbp+var_10] mov dword ptr [rax+18h], 0 mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jb short loc_9941D mov rax, [rbp+var_10] mov rdi, [rax] mov rsi, [rbp+var_30] mov rax, [rbp+var_40] movzx eax, word ptr [rax+0AAh] add eax, [rbp+var_28] mov eax, eax mov edx, eax call _memmove loc_9941D: jmp short loc_99486 loc_9941F: mov rax, [rbp+var_38] mov [rbp+var_30], rax mov rax, [rbp+var_10] mov rax, [rax] mov byte ptr [rax], 0 loc_99431: mov rax, [rbp+var_38] cmp rax, [rbp+var_20] jnb short loc_99484 mov rax, [rbp+var_38] mov [rbp+var_30], rax mov rax, [rbp+var_40] mov rax, [rax+0E0h] mov rdi, [rbp+var_10] mov esi, [rbp+var_24] mov edx, [rbp+var_28] lea rcx, [rbp+var_38] call rax cmp eax, 0 jnz short loc_99482 jmp short $+2 loc_99465: jmp short $+2 loc_99467: mov rax, [rbp+var_40] mov rdi, [rax] mov esi, 7Eh ; '~' call _ma_set_fatal_error_with_share mov [rbp+var_8], 0 jmp short loc_99494 loc_99482: jmp short loc_99431 loc_99484: jmp short $+2 loc_99486: jmp short $+2 loc_99488: jmp short $+2 loc_9948A: jmp short $+2 loc_9948C: mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_99494: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
unsigned long long ma_get_last_key(long long a1, long long a2, unsigned long long a3) { long long v3; // rdx long long v4; // rcx long long v5; // r8 int v6; // r9d long long v8; // [rsp+0h] [rbp-40h] unsigned long long v9; // [rsp+8h] [rbp-38h] BYREF unsigned long long v10; // [rsp+10h] [rbp-30h] unsigned int v11; // [rsp+18h] [rbp-28h] unsigned int v12; // [rsp+1Ch] [rbp-24h] unsigned long long v13; // [rsp+20h] [rbp-20h] long long v14; // [rsp+28h] [rbp-18h] long long v15; // [rsp+30h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; v8 = *(_QWORD *)(a1 + 8); v12 = *(_DWORD *)(a2 + 44); v11 = *(_DWORD *)(a2 + 40); v9 = v11 + *(unsigned int *)(*(_QWORD *)v8 + 1860LL) + *(_QWORD *)(a2 + 16); if ( (*(_WORD *)(v8 + 162) & 0x28) != 0 || (v12 & 2) != 0 ) { v10 = v9; **(_BYTE **)v15 = 0; while ( v9 < v13 ) { v10 = v9; if ( !(*(unsigned int ( **)(long long, _QWORD, _QWORD, unsigned long long *))(v8 + 224))(v15, v12, v11, &v9) ) { ma_set_fatal_error_with_share(*(_QWORD *)v8, 126, v3, v4, v5, v6); return 0LL; } } } else { v10 = v13 - *(unsigned __int16 *)(v8 + 170) - v11; *(_DWORD *)(v15 + 20) = *(_DWORD *)(*(_QWORD *)v8 + 1856LL); *(_DWORD *)(v15 + 16) = *(unsigned __int16 *)(v8 + 170) - *(_DWORD *)(v15 + 20); *(_DWORD *)(v15 + 24) = 0; if ( v10 >= v9 ) memmove(*(_QWORD *)v15, v10, v11 + *(unsigned __int16 *)(v8 + 170)); } return v10; }
_ma_get_last_key: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x40],RAX JMP 0x00199332 LAB_00199332: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x2c] MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x28] MOV dword ptr [RBP + -0x28],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RCX] MOV ECX,dword ptr [RCX + 0x744] ADD RAX,RCX MOV ECX,dword ptr [RBP + -0x28] ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,word ptr [RAX + 0xa2] AND EAX,0x28 CMP EAX,0x0 JNZ 0x0019941f MOV EAX,dword ptr [RBP + -0x24] AND EAX,0x2 CMP EAX,0x0 JNZ 0x0019941f MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x40] MOVZX ECX,word ptr [RCX + 0xaa] MOVSXD RDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV ECX,dword ptr [RBP + -0x28] MOV EDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RAX + 0x740] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x14],ECX MOV RAX,qword ptr [RBP + -0x40] MOVZX ECX,word ptr [RAX + 0xaa] MOV RAX,qword ptr [RBP + -0x10] SUB ECX,dword ptr [RAX + 0x14] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x18],0x0 MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JC 0x0019941d MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,word ptr [RAX + 0xaa] ADD EAX,dword ptr [RBP + -0x28] MOV EAX,EAX MOV EDX,EAX CALL 0x0012a140 LAB_0019941d: JMP 0x00199486 LAB_0019941f: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV byte ptr [RAX],0x0 LAB_00199431: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x20] JNC 0x00199484 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX + 0xe0] MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x24] MOV EDX,dword ptr [RBP + -0x28] LEA RCX,[RBP + -0x38] CALL RAX CMP EAX,0x0 JNZ 0x00199482 JMP 0x00199465 LAB_00199465: JMP 0x00199467 LAB_00199467: MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX] MOV ESI,0x7e CALL 0x00145ec0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00199494 LAB_00199482: JMP 0x00199431 LAB_00199484: JMP 0x00199486 LAB_00199486: JMP 0x00199488 LAB_00199488: JMP 0x0019948a LAB_0019948a: JMP 0x0019948c LAB_0019948c: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_00199494: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
void * _ma_get_last_key(int8 *param_1,long param_2,void *param_3) { long *plVar1; int iVar2; void *local_40; void *local_38; uint local_30; uint local_2c; void *local_28; long local_20; int8 *local_18; void *local_10; plVar1 = (long *)param_1[1]; local_2c = *(uint *)(param_2 + 0x2c); local_30 = *(uint *)(param_2 + 0x28); local_40 = (void *)(*(long *)(param_2 + 0x10) + (ulong)*(uint *)(*plVar1 + 0x744) + (ulong)local_30); local_28 = param_3; local_20 = param_2; local_18 = param_1; if (((*(ushort *)((long)plVar1 + 0xa2) & 0x28) == 0) && ((local_2c & 2) == 0)) { local_38 = (void *)((long)param_3 + (-(ulong)local_30 - (long)(int)(uint)*(ushort *)((long)plVar1 + 0xaa))); *(int4 *)((long)param_1 + 0x14) = *(int4 *)(*plVar1 + 0x740); *(uint *)(param_1 + 2) = (uint)*(ushort *)((long)plVar1 + 0xaa) - *(int *)((long)param_1 + 0x14) ; *(int4 *)(param_1 + 3) = 0; if (local_40 <= local_38) { memmove((void *)*param_1,local_38,(ulong)(*(ushort *)((long)plVar1 + 0xaa) + local_30)); } LAB_00199486: local_10 = local_38; } else { *(int1 *)*param_1 = 0; local_38 = local_40; do { if (local_28 <= local_40) goto LAB_00199486; local_38 = local_40; iVar2 = (*(code *)plVar1[0x1c])(local_18,local_2c,local_30,&local_40); } while (iVar2 != 0); _ma_set_fatal_error_with_share(*plVar1,0x7e); local_10 = (void *)0x0; } return local_10; }
38,904
my_snprintf
eloqsql/strings/my_vsnprintf.c
size_t my_snprintf(char* to, size_t n, const char* fmt, ...) { size_t result; va_list args; va_start(args,fmt); result= my_vsnprintf(to, n, fmt, args); va_end(args); return result; }
O3
c
my_snprintf: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdx, %r10 movq %rsi, %rdx movq %rdi, %rsi leaq -0xd0(%rbp), %rdi movq %rcx, 0x18(%rdi) movq %r8, 0x20(%rdi) movq %r9, 0x28(%rdi) testb %al, %al je 0x4a16f movaps %xmm0, -0xa0(%rbp) movaps %xmm1, -0x90(%rbp) movaps %xmm2, -0x80(%rbp) movaps %xmm3, -0x70(%rbp) movaps %xmm4, -0x60(%rbp) movaps %xmm5, -0x50(%rbp) movaps %xmm6, -0x40(%rbp) movaps %xmm7, -0x30(%rbp) leaq -0x20(%rbp), %r8 movq %rdi, 0x10(%r8) leaq 0x10(%rbp), %rax movq %rax, 0x8(%r8) movabsq $0x3000000018, %rax # imm = 0x3000000018 movq %rax, (%r8) leaq 0x2ece85(%rip), %rdi # 0x337018 movq %r10, %rcx callq 0x48f3c addq $0xd0, %rsp popq %rbp retq
my_snprintf: push rbp mov rbp, rsp sub rsp, 0D0h mov r10, rdx mov rdx, rsi mov rsi, rdi lea rdi, [rbp+var_D0] mov [rdi+18h], rcx mov [rdi+20h], r8 mov [rdi+28h], r9 test al, al jz short loc_4A16F movaps [rbp+var_A0], xmm0 movaps [rbp+var_90], xmm1 movaps [rbp+var_80], xmm2 movaps [rbp+var_70], xmm3 movaps [rbp+var_60], xmm4 movaps [rbp+var_50], xmm5 movaps [rbp+var_40], xmm6 movaps [rbp+var_30], xmm7 loc_4A16F: lea r8, [rbp+var_20] mov [r8+10h], rdi lea rax, [rbp+arg_0] mov [r8+8], rax mov rax, 3000000018h mov [r8], rax lea rdi, my_charset_latin1 mov rcx, r10 call my_vsnprintf_ex add rsp, 0D0h pop rbp retn
unsigned long long my_snprintf( unsigned long long a1, long long a2, unsigned __int8 *a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { char v16; // [rsp+0h] [rbp-D0h] BYREF long long v17; // [rsp+18h] [rbp-B8h] long long v18; // [rsp+20h] [rbp-B0h] long long v19; // [rsp+28h] [rbp-A8h] __m128 v20; // [rsp+30h] [rbp-A0h] __m128 v21; // [rsp+40h] [rbp-90h] __m128 v22; // [rsp+50h] [rbp-80h] __m128 v23; // [rsp+60h] [rbp-70h] __m128 v24; // [rsp+70h] [rbp-60h] __m128 v25; // [rsp+80h] [rbp-50h] __m128 v26; // [rsp+90h] [rbp-40h] __m128 v27; // [rsp+A0h] [rbp-30h] _QWORD v28[4]; // [rsp+B0h] [rbp-20h] BYREF v20 = a7; v21 = a8; v22 = a9; v23 = a10; v24 = a11; v25 = a12; v26 = a13; v27 = a14; v17 = a4; v18 = a5; v19 = a6; v28[2] = &v16; v28[1] = &a15; v28[0] = 0x3000000018LL; return my_vsnprintf_ex((long long)&my_charset_latin1, a1, a2, a3, (unsigned int *)v28); }
my_snprintf: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 MOV R10,RDX MOV RDX,RSI MOV RSI,RDI LEA RDI,[RBP + -0xd0] MOV qword ptr [RDI + 0x18],RCX MOV qword ptr [RDI + 0x20],R8 MOV qword ptr [RDI + 0x28],R9 TEST AL,AL JZ 0x0014a16f MOVAPS xmmword ptr [RBP + -0xa0],XMM0 MOVAPS xmmword ptr [RBP + -0x90],XMM1 MOVAPS xmmword ptr [RBP + -0x80],XMM2 MOVAPS xmmword ptr [RBP + -0x70],XMM3 MOVAPS xmmword ptr [RBP + -0x60],XMM4 MOVAPS xmmword ptr [RBP + -0x50],XMM5 MOVAPS xmmword ptr [RBP + -0x40],XMM6 MOVAPS xmmword ptr [RBP + -0x30],XMM7 LAB_0014a16f: LEA R8,[RBP + -0x20] MOV qword ptr [R8 + 0x10],RDI LEA RAX,[RBP + 0x10] MOV qword ptr [R8 + 0x8],RAX MOV RAX,0x3000000018 MOV qword ptr [R8],RAX LEA RDI,[0x437018] MOV RCX,R10 CALL 0x00148f3c ADD RSP,0xd0 POP RBP RET
void my_snprintf(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int1 local_d8 [24]; int8 local_c0; int8 local_b8; int8 local_b0; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int8 local_28; int1 *local_20; int1 *local_18; local_18 = local_d8; if (in_AL != '\0') { local_a8 = param_1; local_98 = param_2; local_88 = param_3; local_78 = param_4; local_68 = param_5; local_58 = param_6; local_48 = param_7; local_38 = param_8; } local_20 = &stack0x00000008; local_28 = 0x3000000018; local_c0 = param_12; local_b8 = param_13; local_b0 = param_14; my_vsnprintf_ex(&my_charset_latin1,param_9,param_10,param_11); return; }
38,905
my_malloc
eloqsql/mysys/my_malloc.c
void *my_malloc(PSI_memory_key key, size_t size, myf my_flags) { my_memory_header *mh; void *point; DBUG_ENTER("my_malloc"); DBUG_PRINT("my",("size: %zu flags: %lu", size, my_flags)); compile_time_assert(sizeof(my_memory_header) <= HEADER_SIZE); if (!(my_flags & (MY_WME | MY_FAE))) my_flags|= my_global_flags; /* Safety */ if (!size) size=1; if (size > SIZE_T_MAX - 1024L*1024L*16L) /* Wrong call */ DBUG_RETURN(0); /* We have to align size as we store MY_THREAD_SPECIFIC flag in the LSB */ size= ALIGN_SIZE(size); if (DBUG_EVALUATE_IF("simulate_out_of_memory", 1, 0)) mh= NULL; else mh= (my_memory_header*) sf_malloc(size + HEADER_SIZE, my_flags); if (mh == NULL) { my_errno=errno; if (my_flags & MY_FAE) error_handler_hook=fatal_error_handler_hook; if (my_flags & (MY_FAE+MY_WME)) my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_ERROR_LOG+ME_FATAL),size); if (my_flags & MY_FAE) abort(); point= NULL; } else { int flag= MY_TEST(my_flags & MY_THREAD_SPECIFIC); mh->m_size= size | flag; mh->m_key= PSI_CALL_memory_alloc(key, size, & mh->m_owner); update_malloc_size(size + HEADER_SIZE, flag); point= HEADER_TO_USER(mh); if (my_flags & MY_ZEROFILL) bzero(point, size); else TRASH_ALLOC(point, size); } DBUG_PRINT("exit",("ptr: %p", point)); DBUG_RETURN(point); }
O0
c
my_malloc: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl %edi, -0xc(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) jmp 0xc2365 jmp 0xc2367 jmp 0xc2369 movq -0x20(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax jne 0xc2389 leaq 0x403c3a(%rip), %rax # 0x4c5fb8 movq (%rax), %rax orq -0x20(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x18(%rbp) jne 0xc2398 movq $0x1, -0x18(%rbp) cmpq $-0x1000001, -0x18(%rbp) # imm = 0xFEFFFFFF jbe 0xc23b1 jmp 0xc23a4 movq $0x0, -0x8(%rbp) jmp 0xc2508 movq -0x18(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdi addq $0x18, %rdi callq 0x60aa0 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0xc2456 callq 0x60ba0 movl (%rax), %eax movl %eax, -0x38(%rbp) callq 0xc46c0 movl -0x38(%rbp), %ecx movl %ecx, (%rax) movq -0x20(%rbp), %rax andq $0x8, %rax cmpq $0x0, %rax je 0xc2413 leaq 0x23f6d2(%rip), %rax # 0x301ad8 movq (%rax), %rcx leaq 0x23f6c0(%rip), %rax # 0x301ad0 movq %rcx, (%rax) movq -0x20(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0xc2436 movq -0x18(%rbp), %rdx movl $0x5, %edi movl $0x1044, %esi # imm = 0x1044 movb $0x0, %al callq 0xbca70 movq -0x20(%rbp), %rax andq $0x8, %rax cmpq $0x0, %rax je 0xc2449 callq 0x60870 movq $0x0, -0x30(%rbp) jmp 0xc24fa movq -0x20(%rbp), %rdx andq $0x10000, %rdx # imm = 0x10000 xorl %eax, %eax movl $0x1, %ecx cmpq $0x0, %rdx cmovnel %ecx, %eax movl %eax, -0x34(%rbp) movq -0x18(%rbp), %rcx movslq -0x34(%rbp), %rax orq %rax, %rcx movq -0x28(%rbp), %rax movq %rcx, 0x8(%rax) leaq 0x23fb2c(%rip), %rax # 0x301fb8 movq (%rax), %rax movq 0x3e0(%rax), %rax movl -0xc(%rbp), %edi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rdx callq *%rax movl %eax, %ecx movq -0x28(%rbp), %rax movl %ecx, 0x10(%rax) movq 0x23f5cd(%rip), %rax # 0x301a80 movq -0x18(%rbp), %rdi addq $0x18, %rdi movl -0x34(%rbp), %ecx movsbl %cl, %esi callq *%rax movq -0x28(%rbp), %rax addq $0x18, %rax movq %rax, -0x30(%rbp) movq -0x20(%rbp), %rax andq $0x20, %rax cmpq $0x0, %rax je 0xc24ee movq -0x30(%rbp), %rdi movq -0x18(%rbp), %rdx xorl %esi, %esi callq 0x60350 jmp 0xc24f8 jmp 0xc24f0 jmp 0xc24f2 jmp 0xc24f4 jmp 0xc24f6 jmp 0xc24f8 jmp 0xc24fa jmp 0xc24fc jmp 0xc24fe jmp 0xc2500 movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_malloc: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_C], edi mov [rbp+var_18], rsi mov [rbp+var_20], rdx jmp short $+2 loc_C2365: jmp short $+2 loc_C2367: jmp short $+2 loc_C2369: mov rax, [rbp+var_20] and rax, 18h cmp rax, 0 jnz short loc_C2389 lea rax, my_global_flags mov rax, [rax] or rax, [rbp+var_20] mov [rbp+var_20], rax loc_C2389: cmp [rbp+var_18], 0 jnz short loc_C2398 mov [rbp+var_18], 1 loc_C2398: cmp [rbp+var_18], 0FFFFFFFFFEFFFFFFh jbe short loc_C23B1 jmp short $+2 loc_C23A4: mov [rbp+var_8], 0 jmp loc_C2508 loc_C23B1: mov rax, [rbp+var_18] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h mov [rbp+var_18], rax mov rdi, [rbp+var_18] add rdi, 18h call _malloc mov [rbp+var_28], rax cmp [rbp+var_28], 0 jnz short loc_C2456 call ___errno_location mov eax, [rax] mov [rbp+var_38], eax call _my_thread_var mov ecx, [rbp+var_38] mov [rax], ecx mov rax, [rbp+var_20] and rax, 8 cmp rax, 0 jz short loc_C2413 lea rax, fatal_error_handler_hook mov rcx, [rax] lea rax, error_handler_hook mov [rax], rcx loc_C2413: mov rax, [rbp+var_20] and rax, 18h cmp rax, 0 jz short loc_C2436 mov rdx, [rbp+var_18] mov edi, 5 mov esi, 1044h mov al, 0 call my_error loc_C2436: mov rax, [rbp+var_20] and rax, 8 cmp rax, 0 jz short loc_C2449 call _abort loc_C2449: mov [rbp+var_30], 0 jmp loc_C24FA loc_C2456: mov rdx, [rbp+var_20] and rdx, 10000h xor eax, eax mov ecx, 1 cmp rdx, 0 cmovnz eax, ecx mov [rbp+var_34], eax mov rcx, [rbp+var_18] movsxd rax, [rbp+var_34] or rcx, rax mov rax, [rbp+var_28] mov [rax+8], rcx lea rax, PSI_server mov rax, [rax] mov rax, [rax+3E0h] mov edi, [rbp+var_C] mov rsi, [rbp+var_18] mov rdx, [rbp+var_28] call rax mov ecx, eax mov rax, [rbp+var_28] mov [rax+10h], ecx mov rax, cs:update_malloc_size mov rdi, [rbp+var_18] add rdi, 18h mov ecx, [rbp+var_34] movsx esi, cl call rax ; dummy mov rax, [rbp+var_28] add rax, 18h mov [rbp+var_30], rax mov rax, [rbp+var_20] and rax, 20h cmp rax, 0 jz short loc_C24EE mov rdi, [rbp+var_30] mov rdx, [rbp+var_18] xor esi, esi call _memset jmp short loc_C24F8 loc_C24EE: jmp short $+2 loc_C24F0: jmp short $+2 loc_C24F2: jmp short $+2 loc_C24F4: jmp short $+2 loc_C24F6: jmp short $+2 loc_C24F8: jmp short $+2 loc_C24FA: jmp short $+2 loc_C24FC: jmp short $+2 loc_C24FE: jmp short $+2 loc_C2500: mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_C2508: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
long long my_malloc(unsigned int a1, unsigned long long a2, int a3) { int v4; // [rsp+8h] [rbp-38h] long long v5; // [rsp+10h] [rbp-30h] long long v6; // [rsp+18h] [rbp-28h] int v7; // [rsp+20h] [rbp-20h] unsigned long long v8; // [rsp+28h] [rbp-18h] unsigned long long v9; // [rsp+28h] [rbp-18h] v8 = a2; v7 = a3; if ( (a3 & 0x18) == 0 ) v7 = a3 | my_global_flags; if ( !a2 ) v8 = 1LL; if ( v8 > 0xFFFFFFFFFEFFFFFFLL ) return 0LL; v9 = (v8 + 7) & 0xFFFFFFFFFFFFFFF8LL; v6 = malloc(v9 + 24); if ( v6 ) { *(_QWORD *)(v6 + 8) = ((v7 & 0x10000) != 0) | v9; *(_DWORD *)(v6 + 16) = (*((long long ( **)(_QWORD, unsigned long long, long long))PSI_server + 124))(a1, v9, v6); update_malloc_size(v9 + 24, (v7 & 0x10000) != 0); v5 = v6 + 24; if ( (v7 & 0x20) != 0 ) memset(v5, 0LL, v9); } else { v4 = *(_DWORD *)__errno_location(v9 + 24); *(_DWORD *)my_thread_var() = v4; if ( (v7 & 8) != 0 ) error_handler_hook = fatal_error_handler_hook[0]; if ( (v7 & 0x18) != 0 ) my_error(5u, 4164LL, v9); if ( (v7 & 8) != 0 ) abort(); return 0LL; } return v5; }
my_malloc: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV dword ptr [RBP + -0xc],EDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX JMP 0x001c2365 LAB_001c2365: JMP 0x001c2367 LAB_001c2367: JMP 0x001c2369 LAB_001c2369: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x18 CMP RAX,0x0 JNZ 0x001c2389 LEA RAX,[0x5c5fb8] MOV RAX,qword ptr [RAX] OR RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x20],RAX LAB_001c2389: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x001c2398 MOV qword ptr [RBP + -0x18],0x1 LAB_001c2398: CMP qword ptr [RBP + -0x18],-0x1000001 JBE 0x001c23b1 JMP 0x001c23a4 LAB_001c23a4: MOV qword ptr [RBP + -0x8],0x0 JMP 0x001c2508 LAB_001c23b1: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 CALL 0x00160aa0 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x001c2456 CALL 0x00160ba0 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x38],EAX CALL 0x001c46c0 MOV ECX,dword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x8 CMP RAX,0x0 JZ 0x001c2413 LEA RAX,[0x401ad8] MOV RCX,qword ptr [RAX] LEA RAX,[0x401ad0] MOV qword ptr [RAX],RCX LAB_001c2413: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x18 CMP RAX,0x0 JZ 0x001c2436 MOV RDX,qword ptr [RBP + -0x18] MOV EDI,0x5 MOV ESI,0x1044 MOV AL,0x0 CALL 0x001bca70 LAB_001c2436: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x8 CMP RAX,0x0 JZ 0x001c2449 CALL 0x00160870 LAB_001c2449: MOV qword ptr [RBP + -0x30],0x0 JMP 0x001c24fa LAB_001c2456: MOV RDX,qword ptr [RBP + -0x20] AND RDX,0x10000 XOR EAX,EAX MOV ECX,0x1 CMP RDX,0x0 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x34],EAX MOV RCX,qword ptr [RBP + -0x18] MOVSXD RAX,dword ptr [RBP + -0x34] OR RCX,RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX + 0x8],RCX LEA RAX,[0x401fb8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x3e0] MOV EDI,dword ptr [RBP + -0xc] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x28] CALL RAX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [0x00401a80] MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 MOV ECX,dword ptr [RBP + -0x34] MOVSX ESI,CL CALL RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x18 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x20 CMP RAX,0x0 JZ 0x001c24ee MOV RDI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x18] XOR ESI,ESI CALL 0x00160350 JMP 0x001c24f8 LAB_001c24ee: JMP 0x001c24f0 LAB_001c24f0: JMP 0x001c24f2 LAB_001c24f2: JMP 0x001c24f4 LAB_001c24f4: JMP 0x001c24f6 LAB_001c24f6: JMP 0x001c24f8 LAB_001c24f8: JMP 0x001c24fa LAB_001c24fa: JMP 0x001c24fc LAB_001c24fc: JMP 0x001c24fe LAB_001c24fe: JMP 0x001c2500 LAB_001c2500: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_001c2508: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
void * my_malloc(int4 param_1,ulong param_2,ulong param_3) { int iVar1; int4 uVar2; ulong __n; int *piVar3; void *local_38; ulong local_28; ulong local_20; void *local_10; local_28 = param_3; if ((param_3 & 0x18) == 0) { local_28 = my_global_flags | param_3; } local_20 = param_2; if (param_2 == 0) { local_20 = 1; } if (local_20 < 0xffffffffff000000) { __n = local_20 + 7 & 0xfffffffffffffff8; local_38 = malloc(__n + 0x18); if (local_38 == (void *)0x0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; if ((local_28 & 8) != 0) { error_handler_hook = fatal_error_handler_hook; } if ((local_28 & 0x18) != 0) { my_error(5,0x1044,__n); } if ((local_28 & 8) != 0) { /* WARNING: Subroutine does not return */ abort(); } local_38 = (void *)0x0; } else { *(ulong *)((long)local_38 + 8) = __n | (long)(int)(uint)((local_28 & 0x10000) != 0); uVar2 = (**(code **)(PSI_server + 0x3e0))(param_1,__n,local_38); *(int4 *)((long)local_38 + 0x10) = uVar2; (*(code *)update_malloc_size)(__n + 0x18); local_38 = (void *)((long)local_38 + 0x18); if ((local_28 & 0x20) != 0) { memset(local_38,0,__n); } } local_10 = local_38; } else { local_10 = (void *)0x0; } return local_10; }
38,906
mysql_real_query
eloqsql/libmariadb/libmariadb/mariadb_lib.c
int STDCALL mysql_real_query(MYSQL *mysql, const char *query, unsigned long length) { my_bool skip_result= OPT_EXT_VAL(mysql, multi_command); if (length == (unsigned long)-1) length= (unsigned long)strlen(query); free_old_query(mysql); if (ma_simple_command(mysql, COM_QUERY,query,length,1,0)) return(-1); if (!skip_result && !mysql->options.extension->skip_read_response) return(mysql->methods->db_read_query_result(mysql)); return(0); }
O3
c
mysql_real_query: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq 0x480(%rdi), %rax testq %rax, %rax je 0x20632 cmpb $0x0, 0xa8(%rax) setne %r13b jmp 0x20635 xorl %r13d, %r13d cmpq $-0x1, %r15 jne 0x20646 movq %r14, %rdi callq 0x131c0 movq %rax, %r15 movq %rbx, %rdi callq 0x211e2 movq 0x4d0(%rbx), %rax xorl %r12d, %r12d movq %rbx, %rdi movl $0x3, %esi movq %r14, %rdx movq %r15, %rcx movl $0x1, %r8d xorl %r9d, %r9d callq *0x10(%rax) xorl %ecx, %ecx testl %eax, %eax setne %al orb %al, %r13b testb $0x1, %r13b je 0x2068b movb %al, %cl negl %ecx movl %ecx, %r12d jmp 0x2069b movq 0x480(%rbx), %rax cmpb $0x0, 0x148(%rax) je 0x206ad movl %r12d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x4d0(%rbx), %rax movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmpq *0x20(%rax)
mysql_real_query: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdx mov r14, rsi mov rbx, rdi mov rax, [rdi+480h] test rax, rax jz short loc_20632 cmp byte ptr [rax+0A8h], 0 setnz r13b jmp short loc_20635 loc_20632: xor r13d, r13d loc_20635: cmp r15, 0FFFFFFFFFFFFFFFFh jnz short loc_20646 mov rdi, r14 call _strlen mov r15, rax loc_20646: mov rdi, rbx call free_old_query mov rax, [rbx+4D0h] xor r12d, r12d mov rdi, rbx mov esi, 3 mov rdx, r14 mov rcx, r15 mov r8d, 1 xor r9d, r9d call qword ptr [rax+10h] xor ecx, ecx test eax, eax setnz al or r13b, al test r13b, 1 jz short loc_2068B mov cl, al neg ecx mov r12d, ecx jmp short loc_2069B loc_2068B: mov rax, [rbx+480h] cmp byte ptr [rax+148h], 0 jz short loc_206AD loc_2069B: mov eax, r12d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_206AD: mov rax, [rbx+4D0h] mov rdi, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp qword ptr [rax+20h]
long long mysql_real_query(long long a1, long long a2, long long a3) { long long v3; // rax long long v4; // r15 long long v5; // rax bool v6; // r13 unsigned int v7; // r12d int v8; // eax long long v9; // rdx int v10; // ecx bool v11; // al long long v13; // [rsp-8h] [rbp-30h] v13 = v3; v4 = a3; v5 = *(_QWORD *)(a1 + 1152); if ( v5 ) v6 = *(_BYTE *)(v5 + 168) != 0; else v6 = 0; if ( a3 == -1 ) v4 = strlen(a2); free_old_query(a1); v7 = 0; v8 = (*(long long ( **)(long long, long long, long long, long long, long long, _QWORD, long long))(*(_QWORD *)(a1 + 1232) + 16LL))( a1, 3LL, a2, v4, 1LL, 0LL, v13); v10 = 0; v11 = v8 != 0; if ( v11 || v6 ) { LOBYTE(v10) = v11; return (unsigned int)-v10; } if ( *(_BYTE *)(*(_QWORD *)(a1 + 1152) + 328LL) ) return v7; return (*(long long ( **)(long long, long long, long long, _QWORD))(*(_QWORD *)(a1 + 1232) + 32LL))( a1, 3LL, v9, 0LL); }
mysql_real_query: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x480] TEST RAX,RAX JZ 0x00120632 CMP byte ptr [RAX + 0xa8],0x0 SETNZ R13B JMP 0x00120635 LAB_00120632: XOR R13D,R13D LAB_00120635: CMP R15,-0x1 JNZ 0x00120646 MOV RDI,R14 CALL 0x001131c0 MOV R15,RAX LAB_00120646: MOV RDI,RBX CALL 0x001211e2 MOV RAX,qword ptr [RBX + 0x4d0] XOR R12D,R12D MOV RDI,RBX MOV ESI,0x3 MOV RDX,R14 MOV RCX,R15 MOV R8D,0x1 XOR R9D,R9D CALL qword ptr [RAX + 0x10] XOR ECX,ECX TEST EAX,EAX SETNZ AL OR R13B,AL TEST R13B,0x1 JZ 0x0012068b MOV CL,AL NEG ECX MOV R12D,ECX JMP 0x0012069b LAB_0012068b: MOV RAX,qword ptr [RBX + 0x480] CMP byte ptr [RAX + 0x148],0x0 JZ 0x001206ad LAB_0012069b: MOV EAX,R12D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001206ad: MOV RAX,qword ptr [RBX + 0x4d0] MOV RDI,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP qword ptr [RAX + 0x20]
ulong mysql_real_query(long param_1,char *param_2,size_t param_3) { int iVar1; ulong uVar2; uint uVar3; bool bVar4; if (*(long *)(param_1 + 0x480) == 0) { bVar4 = false; } else { bVar4 = *(char *)(*(long *)(param_1 + 0x480) + 0xa8) != '\0'; } if (param_3 == 0xffffffffffffffff) { param_3 = strlen(param_2); } free_old_query(param_1); uVar3 = 0; iVar1 = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x10))(param_1,3,param_2,param_3,1,0); if (bVar4 || iVar1 != 0) { uVar3 = -(uint)(iVar1 != 0); } else if (*(char *)(*(long *)(param_1 + 0x480) + 0x148) == '\0') { /* WARNING: Could not recover jumptable at 0x001206c5. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar2 = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x20))(param_1); return uVar2; } return (ulong)uVar3; }
38,907
httplib::ClientImpl::adjust_host_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
hkr04[P]cpp-mcp/common/httplib.h
inline std::string ClientImpl::adjust_host_string(const std::string &host) const { if (host.find(':') != std::string::npos) { return "[" + host + "]"; } return host; }
O1
c
httplib::ClientImpl::adjust_host_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const: pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdx, %r14 movq %rdi, %rbx movq %rdx, %rdi movl $0x3a, %esi xorl %edx, %edx callq 0x86f0 cmpq $-0x1, %rax je 0x31dde leaq 0x106bd(%rip), %rsi # 0x4245c movq %rsp, %r15 movq %r15, %rdi movq %r14, %rdx callq 0x15282 leaq 0x1069a(%rip), %rsi # 0x4244e movq %r15, %rdi callq 0x8a20 leaq 0x10(%rbx), %rdx movq %rdx, (%rbx) movq (%rax), %rsi movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rsi je 0x31df9 movq %rsi, (%rbx) movq (%rcx), %rdx movq %rdx, 0x10(%rbx) jmp 0x31dff leaq 0x10(%rbx), %rax movq %rax, (%rbx) movq (%r14), %rsi movq 0x8(%r14), %rdx addq %rsi, %rdx movq %rbx, %rdi callq 0xbbf2 jmp 0x31e31 movups (%rcx), %xmm0 movups %xmm0, (%rdx) movq 0x8(%rax), %rdx movq %rdx, 0x8(%rbx) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x31e31 movq 0x10(%rsp), %rsi incq %rsi callq 0x8580 movq %rbx, %rax addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x31e5c movq 0x10(%rsp), %rsi incq %rsi callq 0x8580 movq %rbx, %rdi callq 0x8960
_ZNK7httplib10ClientImpl18adjust_host_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push rbx sub rsp, 20h mov r14, rdx mov rbx, rdi mov rdi, rdx mov esi, 3Ah ; ':' xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_31DDE lea rsi, aBytes+9; "[" mov r15, rsp mov rdi, r15 mov rdx, r14 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) lea rsi, asc_4244D+1; "]" mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rdx, [rbx+10h] mov [rbx], rdx mov rsi, [rax] mov rcx, rax add rcx, 10h cmp rsi, rcx jz short loc_31DF9 mov [rbx], rsi mov rdx, [rcx] mov [rbx+10h], rdx jmp short loc_31DFF loc_31DDE: lea rax, [rbx+10h] mov [rbx], rax mov rsi, [r14] mov rdx, [r14+8] add rdx, rsi mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) jmp short loc_31E31 loc_31DF9: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rdx], xmm0 loc_31DFF: mov rdx, [rax+8] mov [rbx+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rax, [rsp+38h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_31E31 mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_31E31: mov rax, rbx add rsp, 20h pop rbx pop r14 pop r15 retn mov rbx, rax lea rax, [rsp+arg_8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_31E5C mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_31E5C: mov rdi, rbx call __Unwind_Resume
long long httplib::ClientImpl::adjust_host_string(long long a1, long long a2, _QWORD *a3) { long long v4; // rax _OWORD *v5; // rcx void *v7[2]; // [rsp+0h] [rbp-38h] BYREF long long v8; // [rsp+10h] [rbp-28h] BYREF if ( std::string::find(a3, 58LL, 0LL) == -1 ) { *(_QWORD *)a1 = a1 + 16; std::string::_M_construct<char *>((_QWORD *)a1, (_BYTE *)*a3, *a3 + a3[1]); } else { std::operator+<char>((long long)v7, (long long)"[", a3); v4 = std::string::append(v7, "]"); *(_QWORD *)a1 = a1 + 16; v5 = (_OWORD *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { *(_OWORD *)(a1 + 16) = *v5; } else { *(_QWORD *)a1 = *(_QWORD *)v4; *(_QWORD *)(a1 + 16) = *(_QWORD *)v5; } *(_QWORD *)(a1 + 8) = *(_QWORD *)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; if ( v7[0] != &v8 ) operator delete(v7[0], v8 + 1); } return a1; }
adjust_host_string: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV R14,RDX MOV RBX,RDI MOV RDI,RDX MOV ESI,0x3a XOR EDX,EDX CALL 0x001086f0 CMP RAX,-0x1 JZ 0x00131dde LEA RSI,[0x14245c] MOV R15,RSP MOV RDI,R15 MOV RDX,R14 CALL 0x00115282 LAB_00131dad: LEA RSI,[0x14244e] MOV RDI,R15 CALL 0x00108a20 LAB_00131dbc: LEA RDX,[RBX + 0x10] MOV qword ptr [RBX],RDX MOV RSI,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RSI,RCX JZ 0x00131df9 MOV qword ptr [RBX],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RBX + 0x10],RDX JMP 0x00131dff LAB_00131dde: LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] ADD RDX,RSI MOV RDI,RBX CALL 0x0010bbf2 JMP 0x00131e31 LAB_00131df9: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RDX],XMM0 LAB_00131dff: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RBX + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA RAX,[RSP + 0x10] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00131e31 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00108580 LAB_00131e31: MOV RAX,RBX ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* httplib::ClientImpl::adjust_host_string(std::__cxx11::string const&) const */ string * httplib::ClientImpl::adjust_host_string(string *param_1) { long lVar1; long *plVar2; long *plVar3; long *in_RDX; long *local_38 [2]; long local_28 [2]; lVar1 = std::__cxx11::string::find((char)in_RDX,0x3a); if (lVar1 == -1) { *(string **)param_1 = param_1 + 0x10; std::__cxx11::string::_M_construct<char*>(param_1,*in_RDX,in_RDX[1] + *in_RDX); } else { std::operator+((char *)local_38,(string *)&DAT_0014245c); /* try { // try from 00131dad to 00131dbb has its CatchHandler @ 00131e3e */ plVar2 = (long *)std::__cxx11::string::append((char *)local_38); *(string **)param_1 = param_1 + 0x10; plVar3 = plVar2 + 2; if ((long *)*plVar2 == plVar3) { lVar1 = plVar2[3]; *(long *)(param_1 + 0x10) = *plVar3; *(long *)(param_1 + 0x18) = lVar1; } else { *(long **)param_1 = (long *)*plVar2; *(long *)(param_1 + 0x10) = *plVar3; } *(long *)(param_1 + 8) = plVar2[1]; *plVar2 = (long)plVar3; plVar2[1] = 0; *(int1 *)(plVar2 + 2) = 0; if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } } return param_1; }
38,908
thr_multi_unlock
eloqsql/mysys/thr_lock.c
void thr_multi_unlock(THR_LOCK_DATA **data,uint count, uint unlock_flags) { THR_LOCK_DATA **pos,**end; DBUG_ENTER("thr_multi_unlock"); DBUG_PRINT("lock",("data: %p count: %d flags: %u", data, count, unlock_flags)); for (pos=data,end=data+count; pos < end ; pos++) { #ifdef MAIN printf("Thread: %s Rel lock: %p type: %d\n", my_thread_name(), pos[0]->lock, pos[0]->type); fflush(stdout); #endif if ((*pos)->type != TL_UNLOCK) thr_unlock(*pos, unlock_flags); else { DBUG_PRINT("lock",("Free lock: data: %p thread:%lu lock: %p", *pos, (ulong) (*pos)->owner->thread_id, (*pos)->lock)); } } DBUG_VOID_RETURN; }
O0
c
thr_multi_unlock: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) jmp 0xf8a94 movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movl -0xc(%rbp), %ecx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0xf8aec movq -0x18(%rbp), %rax movq (%rax), %rax cmpl $0x0, 0x40(%rax) je 0xf8ad6 movq -0x18(%rbp), %rax movq (%rax), %rdi movl -0x10(%rbp), %esi callq 0xf7b50 jmp 0xf8adc jmp 0xf8ad8 jmp 0xf8ada jmp 0xf8adc jmp 0xf8ade movq -0x18(%rbp), %rax addq $0x8, %rax movq %rax, -0x18(%rbp) jmp 0xf8aae jmp 0xf8aee jmp 0xf8af0 addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
thr_multi_unlock: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx jmp short $+2 loc_F8A94: mov rax, [rbp+var_8] mov [rbp+var_18], rax mov rax, [rbp+var_8] mov ecx, [rbp+var_C] shl rcx, 3 add rax, rcx mov [rbp+var_20], rax loc_F8AAE: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnb short loc_F8AEC mov rax, [rbp+var_18] mov rax, [rax] cmp dword ptr [rax+40h], 0 jz short loc_F8AD6 mov rax, [rbp+var_18] mov rdi, [rax] mov esi, [rbp+var_10] call thr_unlock jmp short loc_F8ADC loc_F8AD6: jmp short $+2 loc_F8AD8: jmp short $+2 loc_F8ADA: jmp short $+2 loc_F8ADC: jmp short $+2 loc_F8ADE: mov rax, [rbp+var_18] add rax, 8 mov [rbp+var_18], rax jmp short loc_F8AAE loc_F8AEC: jmp short $+2 loc_F8AEE: jmp short $+2 loc_F8AF0: add rsp, 20h pop rbp retn
long long * thr_multi_unlock(long long *a1, int a2, char a3) { long long *result; // rax long long *i; // [rsp+8h] [rbp-18h] for ( i = a1; ; ++i ) { result = i; if ( i >= &a1[a2] ) break; if ( *(_DWORD *)(*i + 64) ) thr_unlock(*i, a3); } return result; }
thr_multi_unlock: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX JMP 0x001f8a94 LAB_001f8a94: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RBP + -0xc] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX LAB_001f8aae: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001f8aec MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x40],0x0 JZ 0x001f8ad6 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX] MOV ESI,dword ptr [RBP + -0x10] CALL 0x001f7b50 JMP 0x001f8adc LAB_001f8ad6: JMP 0x001f8ad8 LAB_001f8ad8: JMP 0x001f8ada LAB_001f8ada: JMP 0x001f8adc LAB_001f8adc: JMP 0x001f8ade LAB_001f8ade: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x8 MOV qword ptr [RBP + -0x18],RAX JMP 0x001f8aae LAB_001f8aec: JMP 0x001f8aee LAB_001f8aee: JMP 0x001f8af0 LAB_001f8af0: ADD RSP,0x20 POP RBP RET
void thr_multi_unlock(long *param_1,uint param_2,int4 param_3) { long *local_20; for (local_20 = param_1; local_20 < param_1 + param_2; local_20 = local_20 + 1) { if (*(int *)(*local_20 + 0x40) != 0) { thr_unlock(*local_20,param_3); } } return; }
38,909
nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
monkey531[P]llama/common/json.hpp
static parse_error create(int id_, const position_t& pos, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("parse_error", id_), "parse error", position_string(pos), ": ", exception::diagnostics(context), what_arg); return {id_, pos.chars_read_total, w.c_str()}; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xb8, %rsp movq %rcx, %r15 movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx leaq 0x70765(%rip), %rsi # 0xaffca leaq 0x58(%rsp), %rdi leaq 0x17(%rsp), %rdx callq 0x2746a leaq 0x78(%rsp), %rdi leaq 0x58(%rsp), %rsi movl %ebp, %edx callq 0x3d88c leaq 0x38(%rsp), %rdi movq %r14, %rsi callq 0x44682 leaq 0x18(%rsp), %rdi xorl %esi, %esi callq 0x3d902 movq %r15, (%rsp) leaq 0x7072d(%rip), %rdx # 0xaffd6 leaq 0x74b2f(%rip), %r8 # 0xb43df leaq 0x98(%rsp), %rdi leaq 0x78(%rsp), %rsi leaq 0x38(%rsp), %rcx leaq 0x18(%rsp), %r9 callq 0x445eb leaq 0x18(%rsp), %rdi callq 0x241b8 leaq 0x38(%rsp), %rdi callq 0x241b8 leaq 0x78(%rsp), %rdi callq 0x241b8 leaq 0x58(%rsp), %rdi callq 0x241b8 movq (%r14), %rdx movq 0x98(%rsp), %rcx movq %rbx, %rdi movl %ebp, %esi callq 0x44712 leaq 0x98(%rsp), %rdi callq 0x241b8 movq %rbx, %rax addq $0xb8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x98(%rsp), %rdi jmp 0x3f969 movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0x241b8 jmp 0x3f946 movq %rax, %rbx leaq 0x38(%rsp), %rdi callq 0x241b8 jmp 0x3f955 movq %rax, %rbx leaq 0x78(%rsp), %rdi callq 0x241b8 jmp 0x3f964 movq %rax, %rbx leaq 0x58(%rsp), %rdi callq 0x241b8 movq %rbx, %rdi callq 0x23f80 movq %rax, %rbx jmp 0x3f96e nop
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: push rbp push r15 push r14 push rbx sub rsp, 0B8h mov r15, rcx mov r14, rdx mov ebp, esi mov rbx, rdi lea rsi, aParseError; "parse_error" lea rdi, [rsp+0D8h+var_80] lea rdx, [rsp+0D8h+var_C1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+0D8h+var_60] lea rsi, [rsp+0D8h+var_80] mov edx, ebp call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea rdi, [rsp+0D8h+var_A0] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error15position_stringB5cxx11ERKNS1_10position_tE; nlohmann::json_abi_v3_11_3::detail::parse_error::position_string(nlohmann::json_abi_v3_11_3::detail::position_t const&) lea rdi, [rsp+0D8h+var_C0] xor esi, esi call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsB5cxx11EDn; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics(decltype(nullptr)) mov [rsp+0D8h+var_D8], r15 lea rdx, aParseError_0; "parse error" lea r8, aSubtype+9; ": " lea rdi, [rsp+0D8h+var_40] lea rsi, [rsp+0D8h+var_60] lea rcx, [rsp+0D8h+var_A0] lea r9, [rsp+0D8h+var_C0] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_RA12_KcS8_RA3_S9_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&) lea rdi, [rsp+0D8h+var_C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0D8h+var_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0D8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0D8h+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdx, [r14]; unsigned __int64 mov rcx, [rsp+0D8h+var_40]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail11parse_errorC2EimPKc; nlohmann::json_abi_v3_11_3::detail::parse_error::parse_error(int,ulong,char const*) lea rdi, [rsp+0D8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, rbx add rsp, 0B8h pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_90] jmp short loc_3F969 mov rbx, rax lea rdi, [rsp+arg_10]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_3F946 mov rbx, rax loc_3F946: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_3F955 mov rbx, rax loc_3F955: lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_3F964 mov rbx, rax loc_3F964: lea rdi, [rsp+arg_50]; void * loc_3F969: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_3F96E: mov rdi, rbx call __Unwind_Resume mov rbx, rax jmp short loc_3F96E
nlohmann::json_abi_v3_11_3::detail::parse_error * ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( nlohmann::json_abi_v3_11_3::detail::parse_error *this, int a2, unsigned long long *a3, long long a4) { int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d _QWORD v11[4]; // [rsp+18h] [rbp-C0h] BYREF _BYTE v12[32]; // [rsp+38h] [rbp-A0h] BYREF _QWORD v13[4]; // [rsp+58h] [rbp-80h] BYREF _BYTE v14[32]; // [rsp+78h] [rbp-60h] BYREF char *v15[8]; // [rsp+98h] [rbp-40h] BYREF std::string::basic_string<std::allocator<char>>(v13, (long long)"parse_error"); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v14, (long long)v13, a2); nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11]( (unsigned int)v12, (_DWORD)a3, v6, v7, v8, v9); nlohmann::json_abi_v3_11_3::detail::exception::diagnostics[abi:cxx11](v11); nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>( (unsigned int)v15, (unsigned int)v14, (unsigned int)"parse error", (unsigned int)v12, (unsigned int)": ", (unsigned int)v11, a4); std::string::~string(v11); std::string::~string(v12); std::string::~string(v14); std::string::~string(v13); nlohmann::json_abi_v3_11_3::detail::parse_error::parse_error(this, a2, *a3, v15[0]); std::string::~string(v15); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xb8 MOV R15,RCX MOV R14,RDX MOV EBP,ESI MOV RBX,RDI LAB_0013f85e: LEA RSI,[0x1affca] LEA RDI,[RSP + 0x58] LEA RDX,[RSP + 0x17] CALL 0x0012746a LAB_0013f874: LEA RDI,[RSP + 0x78] LEA RSI,[RSP + 0x58] MOV EDX,EBP CALL 0x0013d88c LAB_0013f885: LEA RDI,[RSP + 0x38] MOV RSI,R14 CALL 0x00144682 LAB_0013f892: LEA RDI,[RSP + 0x18] XOR ESI,ESI CALL 0x0013d902 LAB_0013f89e: MOV qword ptr [RSP],R15 LEA RDX,[0x1affd6] LEA R8,[0x1b43df] LEA RDI,[RSP + 0x98] LEA RSI,[RSP + 0x78] LEA RCX,[RSP + 0x38] LEA R9,[RSP + 0x18] CALL 0x001445eb LEA RDI,[RSP + 0x18] CALL 0x001241b8 LEA RDI,[RSP + 0x38] CALL 0x001241b8 LEA RDI,[RSP + 0x78] CALL 0x001241b8 LEA RDI,[RSP + 0x58] CALL 0x001241b8 MOV RDX,qword ptr [R14] MOV RCX,qword ptr [RSP + 0x98] LAB_0013f8ff: MOV RDI,RBX MOV ESI,EBP CALL 0x00144712 LAB_0013f909: LEA RDI,[RSP + 0x98] CALL 0x001241b8 MOV RAX,RBX ADD RSP,0xb8 POP RBX POP R14 POP R15 POP RBP RET
parse_error * _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (parse_error *param_1,int param_2,position_t *param_3,string *param_4) { allocator local_c1; string local_c0 [32]; parse_error local_a0 [32]; string local_80 [32]; exception local_60 [32]; char *local_40 [4]; /* try { // try from 0013f85e to 0013f873 has its CatchHandler @ 0013f976 */ std::__cxx11::string::string<std::allocator<char>>(local_80,"parse_error",&local_c1); /* try { // try from 0013f874 to 0013f884 has its CatchHandler @ 0013f961 */ nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2); /* try { // try from 0013f885 to 0013f891 has its CatchHandler @ 0013f952 */ nlohmann::json_abi_v3_11_3::detail::parse_error::position_string_abi_cxx11_(local_a0,param_3); /* try { // try from 0013f892 to 0013f89d has its CatchHandler @ 0013f943 */ nlohmann::json_abi_v3_11_3::detail::exception::diagnostics_abi_cxx11_ ((_func_decltype_nullptr *)local_c0); /* try { // try from 0013f89e to 0013f8cb has its CatchHandler @ 0013f934 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,std::__cxx11::string,char_const(&)[12],std::__cxx11::string,char_const(&)[3],std::__cxx11::string,std::__cxx11::string_const&> ((detail *)local_40,(string *)local_60,"parse error",(string *)local_a0,": ",local_c0, param_4); std::__cxx11::string::~string(local_c0); std::__cxx11::string::~string((string *)local_a0); std::__cxx11::string::~string((string *)local_60); std::__cxx11::string::~string(local_80); /* try { // try from 0013f8ff to 0013f908 has its CatchHandler @ 0013f927 */ nlohmann::json_abi_v3_11_3::detail::parse_error::parse_error (param_1,param_2,*(ulong *)param_3,local_40[0]); std::__cxx11::string::~string((string *)local_40); return param_1; }
38,910
my_strnncollsp_nchars_generic
eloqsql/strings/ctype.c
int my_strnncollsp_nchars_generic(CHARSET_INFO *cs, const uchar *str1, size_t len1, const uchar *str2, size_t len2, size_t nchars) { int error; len1= my_well_formed_length(cs, (const char *) str1, (const char *) str1 + len1, nchars, &error); len2= my_well_formed_length(cs, (const char *) str2, (const char *) str2 + len2, nchars, &error); DBUG_ASSERT((cs->state & MY_CS_NOPAD) == 0); return cs->coll->strnncollsp(cs, str1, len1, str2, len2); }
O0
c
my_strnncollsp_nchars_generic: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rdx addq -0x18(%rbp), %rdx movq -0x30(%rbp), %rcx leaq -0x34(%rbp), %r8 callq 0x6dc80 movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x20(%rbp), %rdx addq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx leaq -0x34(%rbp), %r8 callq 0x6dc80 movq %rax, -0x28(%rbp) jmp 0x6dc54 movq -0x8(%rbp), %rax movq 0xc0(%rax), %rax movq 0x10(%rax), %rax movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx movq -0x28(%rbp), %r8 callq *%rax addq $0x40, %rsp popq %rbp retq nop
my_strnncollsp_nchars_generic: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_10] add rdx, [rbp+var_18] mov rcx, [rbp+var_30] lea r8, [rbp+var_34] call my_well_formed_length mov [rbp+var_18], rax mov rdi, [rbp+var_8] mov rsi, [rbp+var_20] mov rdx, [rbp+var_20] add rdx, [rbp+var_28] mov rcx, [rbp+var_30] lea r8, [rbp+var_34] call my_well_formed_length mov [rbp+var_28], rax jmp short $+2 loc_6DC54: mov rax, [rbp+var_8] mov rax, [rax+0C0h] mov rax, [rax+10h] mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] mov r8, [rbp+var_28] call rax add rsp, 40h pop rbp retn
long long my_strnncollsp_nchars_generic( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6) { _BYTE v7[4]; // [rsp+Ch] [rbp-34h] BYREF long long v8; // [rsp+10h] [rbp-30h] long long v9; // [rsp+18h] [rbp-28h] long long v10; // [rsp+20h] [rbp-20h] long long v11; // [rsp+28h] [rbp-18h] long long v12; // [rsp+30h] [rbp-10h] long long v13; // [rsp+38h] [rbp-8h] v13 = a1; v12 = a2; v11 = a3; v10 = a4; v9 = a5; v8 = a6; v11 = my_well_formed_length(a1, a2, a3 + a2, a6, v7); v9 = my_well_formed_length(v13, v10, v9 + v10, v8, v7); return (*(long long ( **)(long long, long long, long long, long long, long long))(*(_QWORD *)(v13 + 192) + 16LL))( v13, v12, v11, v10, v9); }
my_strnncollsp_nchars_generic: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] LEA R8,[RBP + -0x34] CALL 0x0016dc80 MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x20] ADD RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] LEA R8,[RBP + -0x34] CALL 0x0016dc80 MOV qword ptr [RBP + -0x28],RAX JMP 0x0016dc54 LAB_0016dc54: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xc0] MOV RAX,qword ptr [RAX + 0x10] MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x28] CALL RAX ADD RSP,0x40 POP RBP RET
void my_strnncollsp_nchars_generic (long param_1,long param_2,long param_3,long param_4,long param_5,int8 param_6) { int1 local_3c [4]; int8 local_38; long local_30; long local_28; long local_20; long local_18; long local_10; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; local_20 = my_well_formed_length(param_1,param_2,param_2 + param_3,param_6,local_3c); local_30 = my_well_formed_length(local_10,local_28,local_28 + local_30,local_38,local_3c); (**(code **)(*(long *)(local_10 + 0xc0) + 0x10))(local_10,local_18,local_20,local_28,local_30); return; }
38,911
testing::internal::(anonymous namespace)::SplitEscapedString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
std::vector<std::string> SplitEscapedString(const std::string& str) { std::vector<std::string> lines; size_t start = 0, end = str.size(); if (end > 2 && str[0] == '"' && str[end - 1] == '"') { ++start; --end; } bool escaped = false; for (size_t i = start; i + 1 < end; ++i) { if (escaped) { escaped = false; if (str[i] == 'n') { lines.push_back(str.substr(start, i - start - 1)); start = i + 1; } } else { escaped = str[i] == '\\'; } } lines.push_back(str.substr(start, end - start)); return lines; }
O0
cpp
testing::internal::(anonymous namespace)::SplitEscapedString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): subq $0x98, %rsp movq %rdi, (%rsp) movq %rdi, %rax movq %rax, 0x8(%rsp) movq %rdi, 0x90(%rsp) movq %rsi, 0x88(%rsp) movb $0x0, 0x87(%rsp) callq 0xeb910 movq $0x0, 0x78(%rsp) movq 0x88(%rsp), %rdi callq 0x2a450 movq %rax, 0x70(%rsp) cmpq $0x2, 0x70(%rsp) jbe 0xcad16 movq 0x88(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x9c8e0 movsbl (%rax), %eax cmpl $0x22, %eax jne 0xcad16 movq 0x88(%rsp), %rdi movq 0x70(%rsp), %rsi subq $0x1, %rsi callq 0x9c8e0 movsbl (%rax), %eax cmpl $0x22, %eax jne 0xcad16 movq 0x78(%rsp), %rax addq $0x1, %rax movq %rax, 0x78(%rsp) movq 0x70(%rsp), %rax addq $-0x1, %rax movq %rax, 0x70(%rsp) movb $0x0, 0x6f(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x60(%rsp), %rax addq $0x1, %rax cmpq 0x70(%rsp), %rax jae 0xcae20 testb $0x1, 0x6f(%rsp) je 0xcadea movb $0x0, 0x6f(%rsp) movq 0x88(%rsp), %rdi movq 0x60(%rsp), %rsi callq 0x9c8e0 movsbl (%rax), %eax cmpl $0x6e, %eax jne 0xcade8 movq 0x88(%rsp), %rsi movq 0x78(%rsp), %rdx movq 0x60(%rsp), %rax movq %rdx, %rcx notq %rcx addq %rax, %rcx leaq 0x40(%rsp), %rdi callq 0x417e0 jmp 0xcad8e movq (%rsp), %rdi leaq 0x40(%rsp), %rsi callq 0xedbb0 jmp 0xcad9e leaq 0x40(%rsp), %rdi callq 0x1dfd0 movq 0x60(%rsp), %rax addq $0x1, %rax movq %rax, 0x78(%rsp) jmp 0xcade8 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0xcae9f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x40(%rsp), %rdi callq 0x1dfd0 jmp 0xcae9f jmp 0xcae0b movq 0x88(%rsp), %rdi movq 0x60(%rsp), %rsi callq 0x9c8e0 movsbl (%rax), %eax cmpl $0x5c, %eax sete %al andb $0x1, %al movb %al, 0x6f(%rsp) jmp 0xcae0d movq 0x60(%rsp), %rax addq $0x1, %rax movq %rax, 0x60(%rsp) jmp 0xcad25 movq 0x88(%rsp), %rsi movq 0x78(%rsp), %rdx movq 0x70(%rsp), %rcx subq %rdx, %rcx leaq 0x10(%rsp), %rdi callq 0x417e0 jmp 0xcae41 movq (%rsp), %rdi leaq 0x10(%rsp), %rsi callq 0xedbb0 jmp 0xcae51 leaq 0x10(%rsp), %rdi callq 0x1dfd0 movb $0x1, 0x87(%rsp) testb $0x1, 0x87(%rsp) jne 0xcae92 jmp 0xcae89 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x10(%rsp), %rdi callq 0x1dfd0 jmp 0xcae9f movq (%rsp), %rdi callq 0xeb700 movq 0x8(%rsp), %rax addq $0x98, %rsp retq movq (%rsp), %rdi callq 0xeb700 movq 0x38(%rsp), %rdi callq 0x16cf0 nopw %cs:(%rax,%rax)
_ZN7testing8internal12_GLOBAL__N_118SplitEscapedStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 98h mov [rsp+98h+var_98], rdi mov rax, rdi mov [rsp+98h+var_90], rax mov [rsp+98h+var_8], rdi mov [rsp+98h+var_10], rsi mov [rsp+98h+var_11], 0 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void) mov [rsp+98h+var_20], 0 mov rdi, [rsp+98h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov [rsp+98h+var_28], rax cmp [rsp+98h+var_28], 2 jbe short loc_CAD16 mov rdi, [rsp+98h+var_10] xor eax, eax mov esi, eax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) movsx eax, byte ptr [rax] cmp eax, 22h ; '"' jnz short loc_CAD16 mov rdi, [rsp+98h+var_10] mov rsi, [rsp+98h+var_28] sub rsi, 1 call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) movsx eax, byte ptr [rax] cmp eax, 22h ; '"' jnz short loc_CAD16 mov rax, [rsp+98h+var_20] add rax, 1 mov [rsp+98h+var_20], rax mov rax, [rsp+98h+var_28] add rax, 0FFFFFFFFFFFFFFFFh mov [rsp+98h+var_28], rax loc_CAD16: mov [rsp+98h+var_29], 0 mov rax, [rsp+98h+var_20] mov [rsp+98h+var_38], rax loc_CAD25: mov rax, [rsp+98h+var_38] add rax, 1 cmp rax, [rsp+98h+var_28] jnb loc_CAE20 test [rsp+98h+var_29], 1 jz loc_CADEA mov [rsp+98h+var_29], 0 mov rdi, [rsp+98h+var_10] mov rsi, [rsp+98h+var_38] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) movsx eax, byte ptr [rax] cmp eax, 6Eh ; 'n' jnz loc_CADE8 mov rsi, [rsp+98h+var_10] mov rdx, [rsp+98h+var_20] mov rax, [rsp+98h+var_38] mov rcx, rdx not rcx add rcx, rax lea rdi, [rsp+98h+var_58] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) jmp short $+2 loc_CAD8E: mov rdi, [rsp+98h+var_98] lea rsi, [rsp+98h+var_58] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&) jmp short $+2 loc_CAD9E: lea rdi, [rsp+98h+var_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, [rsp+98h+var_38] add rax, 1 mov [rsp+98h+var_20], rax jmp short loc_CADE8 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp loc_CAE9F mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_CAE9F loc_CADE8: jmp short loc_CAE0B loc_CADEA: mov rdi, [rsp+98h+var_10] mov rsi, [rsp+98h+var_38] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) movsx eax, byte ptr [rax] cmp eax, 5Ch ; '\' setz al and al, 1 mov [rsp+98h+var_29], al loc_CAE0B: jmp short $+2 loc_CAE0D: mov rax, [rsp+98h+var_38] add rax, 1 mov [rsp+98h+var_38], rax jmp loc_CAD25 loc_CAE20: mov rsi, [rsp+98h+var_10] mov rdx, [rsp+98h+var_20] mov rcx, [rsp+98h+var_28] sub rcx, rdx lea rdi, [rsp+98h+var_88] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) jmp short $+2 loc_CAE41: mov rdi, [rsp+98h+var_98] lea rsi, [rsp+98h+var_88] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&) jmp short $+2 loc_CAE51: lea rdi, [rsp+98h+var_88]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov [rsp+98h+var_11], 1 test [rsp+98h+var_11], 1 jnz short loc_CAE92 jmp short loc_CAE89 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_CAE9F loc_CAE89: mov rdi, [rsp+98h+var_98]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_CAE92: mov rax, [rsp+98h+var_90] add rsp, 98h retn loc_CAE9F: mov rdi, [rsp+0]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rsp+arg_30] call __Unwind_Resume
long long testing::internal::`anonymous namespace'::SplitEscapedString(long long a1, long long a2) { _BYTE v3[48]; // [rsp+10h] [rbp-88h] BYREF _BYTE v4[32]; // [rsp+40h] [rbp-58h] BYREF long long i; // [rsp+60h] [rbp-38h] bool v6; // [rsp+6Fh] [rbp-29h] unsigned long long v7; // [rsp+70h] [rbp-28h] long long v8; // [rsp+78h] [rbp-20h] char v9; // [rsp+87h] [rbp-11h] long long v10; // [rsp+88h] [rbp-10h] long long v11; // [rsp+90h] [rbp-8h] v11 = a1; v10 = a2; v9 = 0; std::vector<std::string>::vector(a1); v8 = 0LL; v7 = std::string::size(a2); if ( v7 > 2 && *(_BYTE *)std::string::operator[](v10, 0LL) == 34 && *(_BYTE *)std::string::operator[](v10, v7 - 1) == 34 ) { ++v8; --v7; } v6 = 0; for ( i = v8; i + 1 < v7; ++i ) { if ( v6 ) { v6 = 0; if ( *(_BYTE *)std::string::operator[](v10, i) == 110 ) { std::string::substr(v4, v10, v8, i + ~v8); std::vector<std::string>::push_back(a1, v4); std::string::~string(v4); v8 = i + 1; } } else { v6 = *(_BYTE *)std::string::operator[](v10, i) == 92; } } std::string::substr(v3, v10, v8, v7 - v8); std::vector<std::string>::push_back(a1, v3); std::string::~string(v3); return a1; }
SplitEscapedString: SUB RSP,0x98 MOV qword ptr [RSP],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x90],RDI MOV qword ptr [RSP + 0x88],RSI MOV byte ptr [RSP + 0x87],0x0 CALL 0x001eb910 MOV qword ptr [RSP + 0x78],0x0 MOV RDI,qword ptr [RSP + 0x88] CALL 0x0012a450 MOV qword ptr [RSP + 0x70],RAX CMP qword ptr [RSP + 0x70],0x2 JBE 0x001cad16 MOV RDI,qword ptr [RSP + 0x88] XOR EAX,EAX MOV ESI,EAX CALL 0x0019c8e0 MOVSX EAX,byte ptr [RAX] CMP EAX,0x22 JNZ 0x001cad16 MOV RDI,qword ptr [RSP + 0x88] MOV RSI,qword ptr [RSP + 0x70] SUB RSI,0x1 CALL 0x0019c8e0 MOVSX EAX,byte ptr [RAX] CMP EAX,0x22 JNZ 0x001cad16 MOV RAX,qword ptr [RSP + 0x78] ADD RAX,0x1 MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x70] ADD RAX,-0x1 MOV qword ptr [RSP + 0x70],RAX LAB_001cad16: MOV byte ptr [RSP + 0x6f],0x0 MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x60],RAX LAB_001cad25: MOV RAX,qword ptr [RSP + 0x60] ADD RAX,0x1 CMP RAX,qword ptr [RSP + 0x70] JNC 0x001cae20 TEST byte ptr [RSP + 0x6f],0x1 JZ 0x001cadea MOV byte ptr [RSP + 0x6f],0x0 MOV RDI,qword ptr [RSP + 0x88] MOV RSI,qword ptr [RSP + 0x60] CALL 0x0019c8e0 MOVSX EAX,byte ptr [RAX] CMP EAX,0x6e JNZ 0x001cade8 MOV RSI,qword ptr [RSP + 0x88] MOV RDX,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RSP + 0x60] MOV RCX,RDX NOT RCX ADD RCX,RAX LAB_001cad82: LEA RDI,[RSP + 0x40] CALL 0x001417e0 JMP 0x001cad8e LAB_001cad8e: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x40] CALL 0x001edbb0 JMP 0x001cad9e LAB_001cad9e: LEA RDI,[RSP + 0x40] CALL 0x0011dfd0 MOV RAX,qword ptr [RSP + 0x60] ADD RAX,0x1 MOV qword ptr [RSP + 0x78],RAX JMP 0x001cade8 LAB_001cade8: JMP 0x001cae0b LAB_001cadea: MOV RDI,qword ptr [RSP + 0x88] MOV RSI,qword ptr [RSP + 0x60] CALL 0x0019c8e0 MOVSX EAX,byte ptr [RAX] CMP EAX,0x5c SETZ AL AND AL,0x1 MOV byte ptr [RSP + 0x6f],AL LAB_001cae0b: JMP 0x001cae0d LAB_001cae0d: MOV RAX,qword ptr [RSP + 0x60] ADD RAX,0x1 MOV qword ptr [RSP + 0x60],RAX JMP 0x001cad25 LAB_001cae20: MOV RSI,qword ptr [RSP + 0x88] MOV RDX,qword ptr [RSP + 0x78] MOV RCX,qword ptr [RSP + 0x70] SUB RCX,RDX LAB_001cae35: LEA RDI,[RSP + 0x10] CALL 0x001417e0 JMP 0x001cae41 LAB_001cae41: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x10] CALL 0x001edbb0 LAB_001cae4f: JMP 0x001cae51 LAB_001cae51: LEA RDI,[RSP + 0x10] CALL 0x0011dfd0 MOV byte ptr [RSP + 0x87],0x1 TEST byte ptr [RSP + 0x87],0x1 JNZ 0x001cae92 JMP 0x001cae89 LAB_001cae89: MOV RDI,qword ptr [RSP] CALL 0x001eb700 LAB_001cae92: MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0x98 RET
/* WARNING: Removing unreachable block (ram,0x001cae6d) */ /* testing::internal::(anonymous namespace)::SplitEscapedString(std::__cxx11::string const&) */ _anonymous_namespace_ * __thiscall testing::internal::(anonymous_namespace)::SplitEscapedString (_anonymous_namespace_ *this,string *param_1) { char *pcVar1; string local_88 [48]; string local_58 [32]; ulong local_38; byte local_29; ulong local_28; ulong local_20; int1 local_11; string *local_10; _anonymous_namespace_ *local_8; local_11 = 0; local_10 = param_1; local_8 = this; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)this); local_20 = 0; local_28 = std::__cxx11::string::size(local_10); if (((2 < local_28) && (pcVar1 = (char *)std::__cxx11::string::operator[](local_10,0), *pcVar1 == '\"')) && (pcVar1 = (char *)std::__cxx11::string::operator[](local_10,local_28 - 1), *pcVar1 == '\"')) { local_20 = local_20 + 1; local_28 = local_28 - 1; } local_29 = 0; for (local_38 = local_20; local_38 + 1 < local_28; local_38 = local_38 + 1) { if ((local_29 & 1) == 0) { pcVar1 = (char *)std::__cxx11::string::operator[](local_10,local_38); local_29 = *pcVar1 == '\\'; } else { local_29 = 0; pcVar1 = (char *)std::__cxx11::string::operator[](local_10,local_38); if (*pcVar1 == 'n') { /* try { // try from 001cad82 to 001cad8b has its CatchHandler @ 001cadb8 */ std::__cxx11::string::substr((ulong)local_58,(ulong)local_10); /* try { // try from 001cad8e to 001cad9b has its CatchHandler @ 001cadcb */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)this, local_58); std::__cxx11::string::~string(local_58); local_20 = local_38 + 1; } } } /* try { // try from 001cae35 to 001cae3e has its CatchHandler @ 001cadb8 */ std::__cxx11::string::substr((ulong)local_88,(ulong)local_10); /* try { // try from 001cae41 to 001cae4e has its CatchHandler @ 001cae6f */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)this,local_88); std::__cxx11::string::~string(local_88); return this; }
38,912
js_typed_array_at
bluesky950520[P]quickjs/quickjs.c
static JSValue js_typed_array_at(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSObject *p; int64_t idx, len; p = get_typed_array(ctx, this_val); if (!p) return JS_EXCEPTION; if (typed_array_is_oob(p)) return JS_ThrowTypeErrorArrayBufferOOB(ctx); len = p->u.array.count; // note: can change p->u.array.count if (JS_ToInt64Sat(ctx, &idx, argv[0])) return JS_EXCEPTION; if (idx < 0) idx = len + idx; if (idx < 0 || idx >= p->u.array.count) return JS_UNDEFINED; switch (p->class_id) { case JS_CLASS_INT8_ARRAY: return js_int32(p->u.array.u.int8_ptr[idx]); case JS_CLASS_UINT8C_ARRAY: case JS_CLASS_UINT8_ARRAY: return js_int32(p->u.array.u.uint8_ptr[idx]); case JS_CLASS_INT16_ARRAY: return js_int32(p->u.array.u.int16_ptr[idx]); case JS_CLASS_UINT16_ARRAY: return js_int32(p->u.array.u.uint16_ptr[idx]); case JS_CLASS_INT32_ARRAY: return js_int32(p->u.array.u.int32_ptr[idx]); case JS_CLASS_UINT32_ARRAY: return js_uint32(p->u.array.u.uint32_ptr[idx]); case JS_CLASS_FLOAT16_ARRAY: return js_float64(fromfp16(p->u.array.u.fp16_ptr[idx])); case JS_CLASS_FLOAT32_ARRAY: return js_float64(p->u.array.u.float_ptr[idx]); case JS_CLASS_FLOAT64_ARRAY: return js_float64(p->u.array.u.double_ptr[idx]); case JS_CLASS_BIG_INT64_ARRAY: return JS_NewBigInt64(ctx, p->u.array.u.int64_ptr[idx]); case JS_CLASS_BIG_UINT64_ARRAY: return JS_NewBigUint64(ctx, p->u.array.u.uint64_ptr[idx]); } abort(); /* unreachable */ return JS_UNDEFINED; }
O2
c
js_typed_array_at: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %r8, %r12 movq %rdi, %r14 callq 0x363bb pushq $0x6 popq %rbx testq %rax, %rax je 0x6fa57 movq %rax, %r15 movq %rax, %rdi callq 0x363e6 testl %eax, %eax je 0x6f9f0 movq %r14, %rdi callq 0x3644b jmp 0x6fa57 movl 0x40(%r15), %r13d movq (%r12), %rdx movq 0x8(%r12), %rcx leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x24fc6 testl %eax, %eax jne 0x6fa57 movq 0x8(%rsp), %rax pushq $0x3 popq %rbx testq %rax, %rax jns 0x6fa20 addq %r13, %rax js 0x6fa57 movl 0x40(%r15), %ecx cmpq %rcx, %rax jae 0x6fa57 movzwl 0x6(%r15), %ecx addl $-0x15, %ecx cmpl $0xb, %ecx ja 0x6fb47 leaq 0x17f23(%rip), %rdx # 0x87964 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movq 0x38(%r15), %rcx movzbl (%rcx,%rax), %eax jmp 0x6fae4 xorl %eax, %eax xorl %ecx, %ecx movl %eax, %eax orq %rcx, %rax movq %rbx, %rdx addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq 0x38(%r15), %rcx movslq (%rcx,%rax,4), %rcx xorl %edx, %edx testq %rcx, %rcx movl %ecx, %eax cvtsi2sd %rax, %xmm0 movq %xmm0, %rax cmovnsq %rcx, %rax pushq $0x7 popq %rbx cmovnsq %rdx, %rbx movabsq $0x7fffffff00000000, %rcx # imm = 0x7FFFFFFF00000000 jmp 0x6fb3f movq 0x38(%r15), %rcx movq (%rcx,%rax,8), %rax jmp 0x6fb0d movq 0x38(%r15), %rcx movl (%rcx,%rax,4), %eax jmp 0x6fae4 movq 0x38(%r15), %rcx movzwl (%rcx,%rax,2), %edi callq 0x39d27 jmp 0x6fb08 movq 0x38(%r15), %rcx movswq (%rcx,%rax,2), %rax jmp 0x6fae4 movq 0x38(%r15), %rcx movsbq (%rcx,%rax), %rax jmp 0x6fae4 movq 0x38(%r15), %rcx movzwl (%rcx,%rax,2), %eax xorl %ecx, %ecx xorl %ebx, %ebx jmp 0x6fa5b movq 0x38(%r15), %rcx movq (%rcx,%rax,8), %rsi movq %r14, %rdi callq 0x25906 jmp 0x6fb32 movq 0x38(%r15), %rcx cvtss2sd (%rcx,%rax,4), %xmm0 movq %xmm0, %rax movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx pushq $0x7 popq %rbx jmp 0x6fa5b movq 0x38(%r15), %rcx movq (%rcx,%rax,8), %rsi movq %r14, %rdi callq 0x259aa movq %rdx, %rbx movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx jmp 0x6fa5b callq 0xe090
js_typed_array_at: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r12, r8 mov r14, rdi call get_typed_array push 6 pop rbx test rax, rax jz loc_6FA57 mov r15, rax mov rdi, rax call typed_array_is_oob test eax, eax jz short loc_6F9F0 mov rdi, r14 call JS_ThrowTypeErrorArrayBufferOOB jmp short loc_6FA57 loc_6F9F0: mov r13d, [r15+40h] mov rdx, [r12] mov rcx, [r12+8] lea rsi, [rsp+38h+var_30] mov rdi, r14 call JS_ToInt64Sat test eax, eax jnz short loc_6FA57 mov rax, [rsp+38h+var_30] push 3 pop rbx test rax, rax jns short loc_6FA20 add rax, r13 js short loc_6FA57 loc_6FA20: mov ecx, [r15+40h] cmp rax, rcx jnb short loc_6FA57 movzx ecx, word ptr [r15+6] add ecx, 0FFFFFFEBh; switch 12 cases cmp ecx, 0Bh ja def_6FA48; jumptable 000000000006FA48 default case lea rdx, jpt_6FA48 movsxd rcx, ds:(jpt_6FA48 - 87964h)[rdx+rcx*4] add rcx, rdx jmp rcx; switch jump loc_6FA4A: mov rcx, [r15+38h]; jumptable 000000000006FA48 cases 21,23 movzx eax, byte ptr [rcx+rax] jmp loc_6FAE4 loc_6FA57: xor eax, eax xor ecx, ecx loc_6FA5B: mov eax, eax or rax, rcx mov rdx, rbx add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_6FA71: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 27 movsxd rcx, dword ptr [rcx+rax*4] xor edx, edx test rcx, rcx mov eax, ecx cvtsi2sd xmm0, rax movq rax, xmm0 cmovns rax, rcx push 7 pop rbx cmovns rbx, rdx mov rcx, 7FFFFFFF00000000h jmp loc_6FB3F loc_6FAA4: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 32 mov rax, [rcx+rax*8] jmp short loc_6FB0D loc_6FAAE: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 26 mov eax, [rcx+rax*4] jmp short loc_6FAE4 loc_6FAB7: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 30 movzx edi, word ptr [rcx+rax*2] call fromfp16 jmp short loc_6FB08 loc_6FAC6: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 24 movsx rax, word ptr [rcx+rax*2] jmp short loc_6FAE4 loc_6FAD1: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 22 movsx rax, byte ptr [rcx+rax] jmp short loc_6FAE4 loc_6FADC: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 25 movzx eax, word ptr [rcx+rax*2] loc_6FAE4: xor ecx, ecx xor ebx, ebx jmp loc_6FA5B loc_6FAED: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 28 mov rsi, [rcx+rax*8] mov rdi, r14 call JS_NewBigInt64 jmp short loc_6FB32 loc_6FAFF: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 31 cvtss2sd xmm0, dword ptr [rcx+rax*4] loc_6FB08: movq rax, xmm0 loc_6FB0D: mov rcx, 0FFFFFFFF00000000h and rcx, rax push 7 pop rbx jmp loc_6FA5B loc_6FB22: mov rcx, [r15+38h]; jumptable 000000000006FA48 case 29 mov rsi, [rcx+rax*8] mov rdi, r14 call JS_NewBigUint64 loc_6FB32: mov rbx, rdx mov rcx, 0FFFFFFFF00000000h loc_6FB3F: and rcx, rax jmp loc_6FA5B def_6FA48: call _abort; jumptable 000000000006FA48 default case
unsigned long long js_typed_array_at( const char *a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long typed_array; // rax long long v16; // r15 long long v17; // rdx long long v18; // rcx long long v19; // r8 long long v20; // r9 __m128 v21; // xmm4 __m128 v22; // xmm5 long long v23; // r13 double v24; // rax unsigned long long v25; // rcx long long v27; // rcx unsigned long long v28; // rcx char v29; // [rsp+0h] [rbp-38h] double v30[6]; // [rsp+8h] [rbp-30h] BYREF typed_array = get_typed_array((long long)a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); if ( !typed_array ) goto LABEL_10; v16 = typed_array; if ( typed_array_is_oob(typed_array) ) { JS_ThrowTypeErrorArrayBufferOOB((long long)a1, a7, a8, a9, a10, v21, v22, a13, a14, a2, v17, v18, v19, v20, v29); LABEL_10: LODWORD(v24) = 0; v25 = 0LL; return v25 | LODWORD(v24); } v23 = *(unsigned int *)(v16 + 64); if ( (unsigned int)JS_ToInt64Sat((long long)a1, (long long)v30, *(_DWORD **)a5, *(_QWORD *)(a5 + 8)) ) goto LABEL_10; v24 = v30[0]; if ( v30[0] < 0.0 ) { *(_QWORD *)&v24 = v23 + *(_QWORD *)&v30[0]; if ( v23 + *(_QWORD *)&v30[0] < 0 ) goto LABEL_10; } if ( *(_QWORD *)&v24 >= (unsigned long long)*(unsigned int *)(v16 + 64) ) goto LABEL_10; switch ( *(_WORD *)(v16 + 6) ) { case 0x15: case 0x17: LODWORD(v24) = *(unsigned __int8 *)(*(_QWORD *)(v16 + 56) + *(_QWORD *)&v24); goto LABEL_21; case 0x16: LODWORD(v24) = *(char *)(*(_QWORD *)(v16 + 56) + *(_QWORD *)&v24); goto LABEL_21; case 0x18: LODWORD(v24) = *(__int16 *)(*(_QWORD *)(v16 + 56) + 2LL * *(_QWORD *)&v24); goto LABEL_21; case 0x19: LODWORD(v24) = *(unsigned __int16 *)(*(_QWORD *)(v16 + 56) + 2LL * *(_QWORD *)&v24); goto LABEL_21; case 0x1A: LODWORD(v24) = *(_DWORD *)(*(_QWORD *)(v16 + 56) + 4LL * *(_QWORD *)&v24); LABEL_21: v25 = 0LL; return v25 | LODWORD(v24); case 0x1B: v27 = *(int *)(*(_QWORD *)(v16 + 56) + 4LL * *(_QWORD *)&v24); v24 = (double)*(int *)(*(_QWORD *)(v16 + 56) + 4LL * *(_QWORD *)&v24); if ( v27 >= 0 ) v24 = *(double *)&v27; v28 = 0x7FFFFFFF00000000LL; goto LABEL_28; case 0x1C: v24 = COERCE_DOUBLE(JS_NewBigInt64((long long)a1, *(_QWORD *)(*(_QWORD *)(v16 + 56) + 8LL * *(_QWORD *)&v24))); goto LABEL_27; case 0x1D: v24 = COERCE_DOUBLE(JS_NewBigUint64((long long)a1, *(_QWORD *)(*(_QWORD *)(v16 + 56) + 8LL * *(_QWORD *)&v24))); LABEL_27: v28 = 0xFFFFFFFF00000000LL; LABEL_28: v25 = *(_QWORD *)&v24 & v28; return v25 | LODWORD(v24); case 0x1E: fromfp16(*(_WORD *)(*(_QWORD *)(v16 + 56) + 2LL * *(_QWORD *)&v24)); goto LABEL_24; case 0x1F: *(double *)a7.m128_u64 = *(float *)(*(_QWORD *)(v16 + 56) + 4LL * *(_QWORD *)&v24); LABEL_24: v24 = *(double *)a7.m128_u64; break; case 0x20: v24 = *(double *)(*(_QWORD *)(v16 + 56) + 8LL * *(_QWORD *)&v24); break; default: abort(a1); } v25 = *(_QWORD *)&v24 & 0xFFFFFFFF00000000LL; return v25 | LODWORD(v24); }
js_typed_array_at: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R12,R8 MOV R14,RDI CALL 0x001363bb PUSH 0x6 POP RBX TEST RAX,RAX JZ 0x0016fa57 MOV R15,RAX MOV RDI,RAX CALL 0x001363e6 TEST EAX,EAX JZ 0x0016f9f0 MOV RDI,R14 CALL 0x0013644b JMP 0x0016fa57 LAB_0016f9f0: MOV R13D,dword ptr [R15 + 0x40] MOV RDX,qword ptr [R12] MOV RCX,qword ptr [R12 + 0x8] LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x00124fc6 TEST EAX,EAX JNZ 0x0016fa57 MOV RAX,qword ptr [RSP + 0x8] PUSH 0x3 POP RBX TEST RAX,RAX JNS 0x0016fa20 ADD RAX,R13 JS 0x0016fa57 LAB_0016fa20: MOV ECX,dword ptr [R15 + 0x40] CMP RAX,RCX JNC 0x0016fa57 MOVZX ECX,word ptr [R15 + 0x6] ADD ECX,-0x15 CMP ECX,0xb JA 0x0016fb47 LEA RDX,[0x187964] MOVSXD RCX,dword ptr [RDX + RCX*0x4] ADD RCX,RDX switchD: JMP RCX caseD_15: MOV RCX,qword ptr [R15 + 0x38] MOVZX EAX,byte ptr [RCX + RAX*0x1] JMP 0x0016fae4 LAB_0016fa57: XOR EAX,EAX XOR ECX,ECX LAB_0016fa5b: MOV EAX,EAX OR RAX,RCX MOV RDX,RBX ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET caseD_1b: MOV RCX,qword ptr [R15 + 0x38] MOVSXD RCX,dword ptr [RCX + RAX*0x4] XOR EDX,EDX TEST RCX,RCX MOV EAX,ECX CVTSI2SD XMM0,RAX MOVQ RAX,XMM0 CMOVNS RAX,RCX PUSH 0x7 POP RBX CMOVNS RBX,RDX MOV RCX,0x7fffffff00000000 JMP 0x0016fb3f caseD_20: MOV RCX,qword ptr [R15 + 0x38] MOV RAX,qword ptr [RCX + RAX*0x8] JMP 0x0016fb0d caseD_1a: MOV RCX,qword ptr [R15 + 0x38] MOV EAX,dword ptr [RCX + RAX*0x4] JMP 0x0016fae4 caseD_1e: MOV RCX,qword ptr [R15 + 0x38] MOVZX EDI,word ptr [RCX + RAX*0x2] CALL 0x00139d27 JMP 0x0016fb08 caseD_18: MOV RCX,qword ptr [R15 + 0x38] MOVSX RAX,word ptr [RCX + RAX*0x2] JMP 0x0016fae4 caseD_16: MOV RCX,qword ptr [R15 + 0x38] MOVSX RAX,byte ptr [RCX + RAX*0x1] JMP 0x0016fae4 caseD_19: MOV RCX,qword ptr [R15 + 0x38] MOVZX EAX,word ptr [RCX + RAX*0x2] LAB_0016fae4: XOR ECX,ECX XOR EBX,EBX JMP 0x0016fa5b caseD_1c: MOV RCX,qword ptr [R15 + 0x38] MOV RSI,qword ptr [RCX + RAX*0x8] MOV RDI,R14 CALL 0x00125906 JMP 0x0016fb32 caseD_1f: MOV RCX,qword ptr [R15 + 0x38] CVTSS2SD XMM0,dword ptr [RCX + RAX*0x4] LAB_0016fb08: MOVQ RAX,XMM0 LAB_0016fb0d: MOV RCX,-0x100000000 AND RCX,RAX PUSH 0x7 POP RBX JMP 0x0016fa5b caseD_1d: MOV RCX,qword ptr [R15 + 0x38] MOV RSI,qword ptr [RCX + RAX*0x8] MOV RDI,R14 CALL 0x001259aa LAB_0016fb32: MOV RBX,RDX MOV RCX,-0x100000000 LAB_0016fb3f: AND RCX,RAX JMP 0x0016fa5b default: CALL 0x0010e090
int1 [16] js_typed_array_at(int8 param_1) { uint uVar1; int1 auVar2 [16]; int iVar3; long lVar4; ulong uVar5; double dVar6; ulong uVar7; int8 uVar8; int8 *in_R8; double dVar9; int1 auVar10 [16]; int1 auVar11 [16]; ulong local_30; lVar4 = get_typed_array(); uVar7 = 6; if (lVar4 == 0) { LAB_0016fa57: auVar2._8_8_ = 0; auVar2._0_8_ = uVar7; auVar11 = auVar2 << 0x40; uVar7 = 0; goto LAB_0016fa5b; } iVar3 = typed_array_is_oob(lVar4); if (iVar3 != 0) { JS_ThrowTypeErrorArrayBufferOOB(param_1); goto LAB_0016fa57; } uVar1 = *(uint *)(lVar4 + 0x40); iVar3 = JS_ToInt64Sat(param_1,&local_30,*in_R8,in_R8[1]); if ((iVar3 != 0) || (((uVar7 = 3, (long)local_30 < 0 && (local_30 = local_30 + uVar1, (long)local_30 < 0)) || (*(uint *)(lVar4 + 0x40) <= local_30)))) goto LAB_0016fa57; switch(*(int2 *)(lVar4 + 6)) { case 0x15: case 0x17: uVar5 = (ulong)*(byte *)(*(long *)(lVar4 + 0x38) + local_30); break; case 0x16: uVar5 = (ulong)*(char *)(*(long *)(lVar4 + 0x38) + local_30); break; case 0x18: uVar5 = (ulong)*(short *)(*(long *)(lVar4 + 0x38) + local_30 * 2); break; case 0x19: uVar5 = (ulong)*(ushort *)(*(long *)(lVar4 + 0x38) + local_30 * 2); break; case 0x1a: uVar5 = (ulong)*(uint *)(*(long *)(lVar4 + 0x38) + local_30 * 4); break; case 0x1b: uVar1 = *(uint *)(*(long *)(lVar4 + 0x38) + local_30 * 4); dVar6 = (double)(long)(int)uVar1; dVar9 = (double)uVar1; if (-1 < (long)dVar6) { dVar9 = dVar6; } uVar8 = 7; if (-1 < (long)dVar6) { uVar8 = 0; } auVar11._8_8_ = uVar8; auVar11._0_8_ = dVar9; uVar7 = 0x7fffffff00000000; goto LAB_0016fb3f; case 0x1c: auVar11 = JS_NewBigInt64(param_1,*(int8 *)(*(long *)(lVar4 + 0x38) + local_30 * 8)); goto LAB_0016fb32; case 0x1d: auVar11 = JS_NewBigUint64(param_1,*(int8 *)(*(long *)(lVar4 + 0x38) + local_30 * 8)); LAB_0016fb32: uVar7 = 0xffffffff00000000; LAB_0016fb3f: uVar7 = uVar7 & auVar11._0_8_; goto LAB_0016fa5b; case 0x1e: dVar9 = (double)fromfp16(*(int2 *)(*(long *)(lVar4 + 0x38) + local_30 * 2)); goto LAB_0016fb0d; case 0x1f: dVar9 = (double)*(float *)(*(long *)(lVar4 + 0x38) + local_30 * 4); goto LAB_0016fb0d; case 0x20: dVar9 = *(double *)(*(long *)(lVar4 + 0x38) + local_30 * 8); LAB_0016fb0d: uVar7 = (ulong)dVar9 & 0xffffffff00000000; auVar11._8_8_ = 7; auVar11._0_8_ = dVar9; goto LAB_0016fa5b; default: /* WARNING: Subroutine does not return */ abort(); } uVar7 = 0; auVar11._8_8_ = 0; auVar11._0_8_ = uVar5; LAB_0016fa5b: auVar10._0_8_ = auVar11._0_8_ & 0xffffffff | uVar7; auVar10._8_8_ = auVar11._8_8_; return auVar10; }
38,913
testing::internal::AssertHelper::operator=(testing::Message const&) const
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
void AssertHelper::operator=(const Message& message) const { UnitTest::GetInstance()->AddTestPartResult( data_->type, data_->file, data_->line, AppendUserMessage(data_->message, message), ShouldEmitStackTraceForResultType(data_->type) ? UnitTest::GetInstance()->impl()->CurrentOsStackTraceExceptTop(1) : "" // Skips the stack frame for this function itself. ); // NOLINT }
O0
cpp
testing::internal::AssertHelper::operator=(testing::Message const&) const: subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x40(%rsp) callq 0xc4be0 movq %rax, %rcx movq 0x40(%rsp), %rax movq %rcx, 0x20(%rsp) movq (%rax), %rsi movl (%rsi), %eax movl %eax, 0x2c(%rsp) movq 0x8(%rsi), %rax movq %rax, 0x30(%rsp) movl 0x10(%rsi), %eax movl %eax, 0x3c(%rsp) addq $0x18, %rsi movq 0x98(%rsp), %rdx leaq 0x78(%rsp), %rdi callq 0xc5120 movq 0x40(%rsp), %rax movq (%rax), %rax movl (%rax), %edi movb $0x0, 0x4a(%rsp) callq 0xc5240 movb %al, 0x49(%rsp) jmp 0xc12cf movb 0x49(%rsp), %al testb $0x1, %al jne 0xc12d9 jmp 0xc130e callq 0xc4be0 movq %rax, 0x18(%rsp) jmp 0xc12e5 movq 0x18(%rsp), %rdi callq 0xed4f0 movq %rax, 0x10(%rsp) jmp 0xc12f6 movq 0x10(%rsp), %rsi leaq 0x58(%rsp), %rdi movl $0x1, %edx callq 0xc5270 jmp 0xc130c jmp 0xc133c leaq 0x4b(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x16d00 movq 0x8(%rsp), %rdx movb $0x1, 0x4a(%rsp) leaq 0x5c566(%rip), %rsi # 0x11d894 leaq 0x58(%rsp), %rdi callq 0x1dbb0 jmp 0xc133a jmp 0xc133c movl 0x3c(%rsp), %ecx movq 0x30(%rsp), %rdx movl 0x2c(%rsp), %esi movq 0x20(%rsp), %rdi leaq 0x78(%rsp), %r8 leaq 0x58(%rsp), %r9 callq 0xc4c70 jmp 0xc135f leaq 0x58(%rsp), %rdi callq 0x1dfd0 testb $0x1, 0x4a(%rsp) jne 0xc1372 jmp 0xc137c leaq 0x4b(%rsp), %rdi callq 0x16790 leaq 0x78(%rsp), %rdi callq 0x1dfd0 addq $0xa8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) jmp 0xc13db movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) jmp 0xc13c6 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) leaq 0x58(%rsp), %rdi callq 0x1dfd0 testb $0x1, 0x4a(%rsp) jne 0xc13cf jmp 0xc13d9 leaq 0x4b(%rsp), %rdi callq 0x16790 jmp 0xc13db leaq 0x78(%rsp), %rdi callq 0x1dfd0 movq 0x50(%rsp), %rdi callq 0x16cf0 nop
_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE: sub rsp, 0A8h mov qword ptr [rsp+0A8h+var_8], rdi; char mov qword ptr [rsp+0A8h+var_10], rsi; int mov rax, qword ptr [rsp+0A8h+var_8] mov qword ptr [rsp+0A8h+var_68], rax; int call _ZN7testing8UnitTest11GetInstanceEv; testing::UnitTest::GetInstance(void) mov rcx, rax mov rax, qword ptr [rsp+0A8h+var_68] mov qword ptr [rsp+0A8h+var_88], rcx; int mov rsi, [rax] mov eax, [rsi] mov [rsp+0A8h+var_7C], eax mov rax, [rsi+8] mov [rsp+0A8h+var_78], rax; int mov eax, [rsi+10h] mov [rsp+0A8h+var_6C], eax add rsi, 18h mov rdx, qword ptr [rsp+0A8h+var_10] lea rdi, [rsp+0A8h+var_30]; int call _ZN7testing8internal17AppendUserMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7MessageE; testing::internal::AppendUserMessage(std::string const&,testing::Message const&) mov rax, qword ptr [rsp+0A8h+var_68] mov rax, [rax] mov edi, [rax]; this mov [rsp+0A8h+var_5E], 0 call _ZN7testing8internal12_GLOBAL__N_133ShouldEmitStackTraceForResultTypeENS_14TestPartResult4TypeE; testing::internal::`anonymous namespace'::ShouldEmitStackTraceForResultType(testing::TestPartResult::Type) mov [rsp+0A8h+var_5F], al jmp short $+2 loc_C12CF: mov al, [rsp+0A8h+var_5F] test al, 1 jnz short loc_C12D9 jmp short loc_C130E loc_C12D9: call _ZN7testing8UnitTest11GetInstanceEv; testing::UnitTest::GetInstance(void) mov [rsp+0A8h+var_90], rax; int jmp short $+2 loc_C12E5: mov rdi, [rsp+0A8h+var_90]; this call _ZN7testing8UnitTest4implEv; testing::UnitTest::impl(void) mov qword ptr [rsp+0A8h+var_98], rax; int jmp short $+2 loc_C12F6: mov rsi, qword ptr [rsp+0A8h+var_98] lea rdi, [rsp+0A8h+var_50] mov edx, 1 call _ZN7testing8internal12UnitTestImpl28CurrentOsStackTraceExceptTopB5cxx11Ei; testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(int) jmp short $+2 loc_C130C: jmp short loc_C133C loc_C130E: lea rdi, [rsp+0A8h+var_5D] mov [rsp+0A8h+var_A0], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rsp+0A8h+var_A0] mov [rsp+0A8h+var_5E], 1 lea rsi, aSFromSSMsTotal+1Ah; "" lea rdi, [rsp+0A8h+var_50] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_C133A: jmp short $+2 loc_C133C: mov ecx, [rsp+0A8h+var_6C]; int mov rdx, [rsp+0A8h+var_78]; int mov esi, [rsp+0A8h+var_7C]; int mov rdi, qword ptr [rsp+0A8h+var_88]; int lea r8, [rsp+0A8h+var_30]; int lea r9, [rsp+0A8h+var_50]; int call _ZN7testing8UnitTest17AddTestPartResultENS_14TestPartResult4TypeEPKciRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESC_; testing::UnitTest::AddTestPartResult(testing::TestPartResult::Type,char const*,int,std::string const&,std::string const&) jmp short $+2 loc_C135F: lea rdi, [rsp+0A8h+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test [rsp+0A8h+var_5E], 1 jnz short loc_C1372 jmp short loc_C137C loc_C1372: lea rdi, [rsp+0A8h+var_5D] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() loc_C137C: lea rdi, [rsp+0A8h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() add rsp, 0A8h retn mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax jmp short loc_C13DB mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax jmp short loc_C13C6 mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_C13C6: test [rsp+arg_42], 1 jnz short loc_C13CF jmp short loc_C13D9 loc_C13CF: lea rdi, [rsp+arg_43] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() loc_C13D9: jmp short $+2 loc_C13DB: lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rsp+arg_48] call __Unwind_Resume
operator=: SUB RSP,0xa8 MOV qword ptr [RSP + 0xa0],RDI MOV qword ptr [RSP + 0x98],RSI MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x40],RAX CALL 0x001c4be0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x20],RCX MOV RSI,qword ptr [RAX] MOV EAX,dword ptr [RSI] MOV dword ptr [RSP + 0x2c],EAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RSP + 0x30],RAX MOV EAX,dword ptr [RSI + 0x10] MOV dword ptr [RSP + 0x3c],EAX ADD RSI,0x18 MOV RDX,qword ptr [RSP + 0x98] LEA RDI,[RSP + 0x78] CALL 0x001c5120 MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX] MOV EDI,dword ptr [RAX] MOV byte ptr [RSP + 0x4a],0x0 LAB_001c12c4: CALL 0x001c5240 MOV byte ptr [RSP + 0x49],AL JMP 0x001c12cf LAB_001c12cf: MOV AL,byte ptr [RSP + 0x49] TEST AL,0x1 JNZ 0x001c12d9 JMP 0x001c130e LAB_001c12d9: CALL 0x001c4be0 MOV qword ptr [RSP + 0x18],RAX JMP 0x001c12e5 LAB_001c12e5: MOV RDI,qword ptr [RSP + 0x18] CALL 0x001ed4f0 MOV qword ptr [RSP + 0x10],RAX JMP 0x001c12f6 LAB_001c12f6: MOV RSI,qword ptr [RSP + 0x10] LEA RDI,[RSP + 0x58] MOV EDX,0x1 CALL 0x001c5270 JMP 0x001c130c LAB_001c130c: JMP 0x001c133c LAB_001c130e: LEA RDI,[RSP + 0x4b] MOV qword ptr [RSP + 0x8],RDI CALL 0x00116d00 MOV RDX,qword ptr [RSP + 0x8] MOV byte ptr [RSP + 0x4a],0x1 LAB_001c1327: LEA RSI,[0x21d894] LEA RDI,[RSP + 0x58] CALL 0x0011dbb0 JMP 0x001c133a LAB_001c133a: JMP 0x001c133c LAB_001c133c: MOV ECX,dword ptr [RSP + 0x3c] MOV RDX,qword ptr [RSP + 0x30] MOV ESI,dword ptr [RSP + 0x2c] MOV RDI,qword ptr [RSP + 0x20] LEA R8,[RSP + 0x78] LEA R9,[RSP + 0x58] CALL 0x001c4c70 LAB_001c135d: JMP 0x001c135f LAB_001c135f: LEA RDI,[RSP + 0x58] CALL 0x0011dfd0 TEST byte ptr [RSP + 0x4a],0x1 JNZ 0x001c1372 JMP 0x001c137c LAB_001c1372: LEA RDI,[RSP + 0x4b] CALL 0x00116790 LAB_001c137c: LEA RDI,[RSP + 0x78] CALL 0x0011dfd0 ADD RSP,0xa8 RET
/* testing::internal::AssertHelper::TEMPNAMEPLACEHOLDERVALUE(testing::Message const&) const */ void __thiscall testing::internal::AssertHelper::operator=(AssertHelper *this,Message *param_1) { int4 uVar1; int4 uVar2; int4 *puVar3; int8 uVar4; byte bVar5; UnitTest *pUVar6; UnitTest *this_00; bool local_5e; allocator local_5d [13]; string local_50 [32]; internal local_30 [32]; Message *local_10; AssertHelper *local_8; local_10 = param_1; local_8 = this; pUVar6 = (UnitTest *)UnitTest::GetInstance(); puVar3 = *(int4 **)this; uVar1 = *puVar3; uVar4 = *(int8 *)(puVar3 + 2); uVar2 = puVar3[4]; AppendUserMessage(local_30,(string *)(puVar3 + 6),local_10); /* try { // try from 001c12c4 to 001c1309 has its CatchHandler @ 001c138e */ bVar5 = (anonymous_namespace)::ShouldEmitStackTraceForResultType(**(int4 **)this); local_5e = (bVar5 & 1) != 0; if (local_5e) { this_00 = (UnitTest *)UnitTest::GetInstance(); UnitTest::impl(this_00); UnitTestImpl::CurrentOsStackTraceExceptTop_abi_cxx11_((int)local_50); } else { std::allocator<char>::allocator(); /* try { // try from 001c1327 to 001c1337 has its CatchHandler @ 001c139e */ std::__cxx11::string::string<std::allocator<char>>(local_50,"",local_5d); } /* try { // try from 001c133c to 001c135c has its CatchHandler @ 001c13ae */ local_5e = !local_5e; UnitTest::AddTestPartResult(pUVar6,uVar1,uVar4,uVar2,local_30,local_50); std::__cxx11::string::~string(local_50); if (local_5e) { std::allocator<char>::~allocator((allocator<char> *)local_5d); } std::__cxx11::string::~string((string *)local_30); return; }
38,914
safe_lexcstrdup_root
eloqsql/mysys/my_alloc.c
LEX_CSTRING safe_lexcstrdup_root(MEM_ROOT *root, const LEX_CSTRING str) { LEX_CSTRING res; if (str.length) res.str= strmake_root(root, str.str, str.length); else res.str= (const char *)""; res.length= str.length; return res; }
O0
c
safe_lexcstrdup_root: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rsi, -0x20(%rbp) movq %rdx, -0x18(%rbp) movq %rdi, -0x28(%rbp) cmpq $0x0, -0x18(%rbp) je 0x35b82 movq -0x28(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x35aa0 movq %rax, -0x10(%rbp) jmp 0x35b8d leaq 0x491b9(%rip), %rax # 0x7ed42 movq %rax, -0x10(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rdx addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
safe_lexcstrdup_root: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_20], rsi mov [rbp+var_18], rdx mov [rbp+var_28], rdi cmp [rbp+var_18], 0 jz short loc_35B82 mov rdi, [rbp+var_28] mov rsi, [rbp+var_20] mov rdx, [rbp+var_18] call strmake_root mov [rbp+var_10], rax jmp short loc_35B8D loc_35B82: lea rax, asc_7ED3E+4; "" mov [rbp+var_10], rax loc_35B8D: mov rax, [rbp+var_18] mov [rbp+var_8], rax mov rax, [rbp+var_10] mov rdx, [rbp+var_8] add rsp, 30h pop rbp retn
char * safe_lexcstrdup_root(_QWORD **a1, long long a2, long long a3) { if ( a3 ) return strmake_root(a1, a2, a3); else return ""; }
safe_lexcstrdup_root: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x20],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x28],RDI CMP qword ptr [RBP + -0x18],0x0 JZ 0x00135b82 MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x18] CALL 0x00135aa0 MOV qword ptr [RBP + -0x10],RAX JMP 0x00135b8d LAB_00135b82: LEA RAX,[0x17ed42] MOV qword ptr [RBP + -0x10],RAX LAB_00135b8d: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
int1 [16] safe_lexcstrdup_root(int8 param_1,int8 param_2,long param_3) { int1 auVar1 [16]; int *local_18; if (param_3 == 0) { local_18 = &DAT_0017ed42; } else { local_18 = (int *)strmake_root(param_1,param_2,param_3); } auVar1._8_8_ = param_3; auVar1._0_8_ = local_18; return auVar1; }
38,915
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/./json.hpp
iterator insert_iterator(const_iterator pos, Args&& ... args) { iterator result(this); JSON_ASSERT(m_data.m_value.array != nullptr); auto insert_pos = std::distance(m_data.m_value.array->begin(), pos.m_it.array_iterator); m_data.m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...); result.m_it.array_iterator = m_data.m_value.array->begin() + insert_pos; // This could have been written as: // result.m_it.array_iterator = m_data.m_value.array->insert(pos.m_it.array_iterator, cnt, val); // but the return value of insert is missing in GCC 4.8, so it is written this way instead. set_parents(); return result; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): subq $0x88, %rsp movq %rdx, 0x8(%rsp) movq %rdi, 0x20(%rsp) movq %rdi, %rax movq %rax, 0x28(%rsp) movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq %rdx, 0x70(%rsp) movq %rcx, 0x68(%rsp) movq 0x78(%rsp), %rsi movq %rsi, 0x18(%rsp) callq 0x9d250 movq 0x18(%rsp), %rax movq 0x8(%rax), %rdi callq 0x8e150 movq 0x8(%rsp), %rdx movq %rax, 0x58(%rsp) movq 0x10(%rdx), %rax movq %rax, 0x50(%rsp) movq 0x58(%rsp), %rdi movq 0x50(%rsp), %rsi callq 0x9d330 movq 0x8(%rsp), %rsi movq %rax, %rcx movq 0x18(%rsp), %rax movq %rcx, 0x60(%rsp) movq 0x8(%rax), %rax movq %rax, 0x10(%rsp) addq $0x8, %rsi addq $0x8, %rsi leaq 0x48(%rsp), %rdi callq 0x9d590 movq 0x10(%rsp), %rdi movq 0x68(%rsp), %rdx movq 0x48(%rsp), %rsi callq 0x9d370 movq %rax, %rcx movq 0x18(%rsp), %rax movq %rcx, 0x40(%rsp) movq 0x8(%rax), %rdi callq 0x8e150 movq %rax, 0x30(%rsp) movq 0x60(%rsp), %rsi leaq 0x30(%rsp), %rdi callq 0x9d5d0 movq 0x18(%rsp), %rdi movq %rax, %rcx movq 0x20(%rsp), %rax movq %rcx, 0x38(%rsp) movq 0x38(%rsp), %rcx movq %rcx, 0x10(%rax) callq 0x87bb0 movq 0x28(%rsp), %rax addq $0x88, %rsp retq nopw (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE15insert_iteratorIJRKSD_EEENS0_6detail9iter_implISD_EENSI_ISF_EEDpOT_: sub rsp, 88h mov [rsp+88h+var_80], rdx mov [rsp+88h+var_68], rdi mov rax, rdi mov [rsp+88h+var_60], rax mov [rsp+88h+var_8], rdi mov [rsp+88h+var_10], rsi mov [rsp+88h+var_18], rdx mov [rsp+88h+var_20], rcx mov rsi, [rsp+88h+var_10] mov [rsp+88h+var_70], rsi call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2EPSF_; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::iter_impl(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>*) mov rax, [rsp+88h+var_70] mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::begin(void) mov rdx, [rsp+88h+var_80] mov [rsp+88h+var_30], rax mov rax, [rdx+10h] mov [rsp+88h+var_38], rax mov rdi, [rsp+88h+var_30] mov rsi, [rsp+88h+var_38] call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEEENSt15iterator_traitsIT_E15difference_typeESM_SM_; std::distance<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) mov rsi, [rsp+88h+var_80] mov rcx, rax mov rax, [rsp+88h+var_70] mov [rsp+88h+var_28], rcx mov rax, [rax+8] mov [rsp+88h+var_78], rax add rsi, 8 add rsi, 8 lea rdi, [rsp+88h+var_40] call _ZN9__gnu_cxx17__normal_iteratorIPKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEC2IPSF_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISN_SM_EE7__valueESJ_E6__typeEEE mov rdi, [rsp+88h+var_78] mov rdx, [rsp+88h+var_20] mov rsi, [rsp+88h+var_40] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6insertEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EERSI_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::insert(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rcx, rax mov rax, [rsp+88h+var_70] mov [rsp+88h+var_48], rcx mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::begin(void) mov [rsp+88h+var_58], rax mov rsi, [rsp+88h+var_28] lea rdi, [rsp+88h+var_58] call _ZNK9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEplEl; __gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::operator+(long) mov rdi, [rsp+88h+var_70] mov rcx, rax mov rax, [rsp+88h+var_68] mov [rsp+88h+var_50], rcx mov rcx, [rsp+88h+var_50] mov [rax+10h], rcx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; 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>::set_parents(void) mov rax, [rsp+88h+var_60] add rsp, 88h retn
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&>( long long a1, long long a2, long long a3, long long a4) { int v4; // ecx int v5; // r8d int v6; // r9d long long v9; // [rsp+10h] [rbp-78h] long long v10; // [rsp+30h] [rbp-58h] BYREF long long v11; // [rsp+38h] [rbp-50h] long long v12; // [rsp+40h] [rbp-48h] long long v13; // [rsp+48h] [rbp-40h] BYREF long long v14; // [rsp+50h] [rbp-38h] long long v15; // [rsp+58h] [rbp-30h] long long v16; // [rsp+60h] [rbp-28h] long long v17; // [rsp+68h] [rbp-20h] long long v18; // [rsp+70h] [rbp-18h] long long v19; // [rsp+78h] [rbp-10h] long long v20; // [rsp+80h] [rbp-8h] v20 = a1; v19 = a2; v18 = a3; v17 = a4; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::iter_impl( a1, a2); v15 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::begin(*(_QWORD *)(a2 + 8)); v14 = *(_QWORD *)(a3 + 16); v16 = std::distance<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( v15, v14); v9 = *(_QWORD *)(a2 + 8); __gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>*>( &v13, a3 + 16); v12 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::insert( v9, v13, v17, v4, v5, v6); v10 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::begin(*(_QWORD *)(a2 + 8)); v11 = __gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::operator+( &v10, v16); *(_QWORD *)(a1 + 16) = 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>::set_parents(); return a1; }
insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&>: SUB RSP,0x88 MOV qword ptr [RSP + 0x8],RDX MOV qword ptr [RSP + 0x20],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x80],RDI MOV qword ptr [RSP + 0x78],RSI MOV qword ptr [RSP + 0x70],RDX MOV qword ptr [RSP + 0x68],RCX MOV RSI,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x18],RSI CALL 0x0019d250 MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RAX + 0x8] CALL 0x0018e150 MOV RDX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RDX + 0x10] MOV qword ptr [RSP + 0x50],RAX MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x50] CALL 0x0019d330 MOV RSI,qword ptr [RSP + 0x8] MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x60],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RAX ADD RSI,0x8 ADD RSI,0x8 LEA RDI,[RSP + 0x48] CALL 0x0019d590 MOV RDI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x68] MOV RSI,qword ptr [RSP + 0x48] CALL 0x0019d370 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x40],RCX MOV RDI,qword ptr [RAX + 0x8] CALL 0x0018e150 MOV qword ptr [RSP + 0x30],RAX MOV RSI,qword ptr [RSP + 0x60] LEA RDI,[RSP + 0x30] CALL 0x0019d5d0 MOV RDI,qword ptr [RSP + 0x18] MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x38],RCX MOV RCX,qword ptr [RSP + 0x38] MOV qword ptr [RAX + 0x10],RCX CALL 0x00187bb0 MOV RAX,qword ptr [RSP + 0x28] ADD RSP,0x88 RET
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> * nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&> (iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *param_1,basic_json *param_2,long param_3,int8 param_4) { vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *pvVar1; int8 local_58; int8 local_50; int8 local_48; int8 local_40; int8 local_38; int8 local_30; long local_28; int8 local_20; long local_18; basic_json *local_10; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *local_8; local_20 = param_4; local_18 = param_3; local_10 = param_2; local_8 = param_1; detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::iter_impl(param_1,param_2); local_30 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::begin(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(param_2 + 8)); local_38 = *(int8 *)(param_3 + 0x10); local_28 = std:: distance<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> (local_30,local_38); pvVar1 = *(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(param_2 + 8); __gnu_cxx:: __normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> :: __normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*> ((__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)&local_40,(__normal_iterator *)(param_3 + 0x10)); local_48 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::insert(pvVar1,local_40,local_20); local_58 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::begin(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(param_2 + 8)); local_50 = __gnu_cxx:: __normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::operator+((__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)&local_58,local_28); *(int8 *)(param_1 + 0x10) = local_50; set_parents(); return param_1; }
38,916
miller_loop_lines
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/pairing.c
static void miller_loop_lines(vec384fp12 ret, const vec384fp6 Qlines[68], const POINTonE1_affine *P) { POINTonE1_affine Px2[1]; vec384fp6 line; /* it's not actual fp6, but 3 packed fp2, "xy00z0" */ /* Move common expression from line evaluation to line_by_Px2. */ add_fp(Px2->X, P->X, P->X); neg_fp(Px2->X, Px2->X); add_fp(Px2->Y, P->Y, P->Y); /* first step is ret = 1^2*line, which is replaced with ret = line */ post_line_by_Px2(line, Qlines[0], Px2); /* 0x2 */ vec_zero(ret, sizeof(vec384fp12)); vec_copy(ret[0][0], line[0], 2*sizeof(vec384fp2)); vec_copy(ret[1][1], line[2], sizeof(vec384fp2)); post_add_n_dbl(ret, &Qlines[1], Px2, 2); /* ..0xc */ post_add_n_dbl(ret, &Qlines[4], Px2, 3); /* ..0x68 */ post_add_n_dbl(ret, &Qlines[8], Px2, 9); /* ..0xd200 */ post_add_n_dbl(ret, &Qlines[18], Px2, 32); /* ..0xd20100000000 */ post_add_n_dbl(ret, &Qlines[51], Px2, 16); /* ..0xd201000000010000 */ conjugate_fp12(ret); /* account for z being negative */ }
O0
c
miller_loop_lines: pushq %rbp movq %rsp, %rbp subq $0x1a0, %rsp # imm = 0x1A0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq -0x80(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0xae790 leaq -0x80(%rbp), %rdi leaq -0x80(%rbp), %rsi movl $0x1, %edx callq 0xae7d0 leaq -0x80(%rbp), %rdi addq $0x30, %rdi movq -0x18(%rbp), %rsi addq $0x30, %rsi movq -0x18(%rbp), %rdx addq $0x30, %rdx callq 0xae790 leaq -0x1a0(%rbp), %rdi movq -0x10(%rbp), %rsi leaq -0x80(%rbp), %rdx callq 0xbd630 movq -0x8(%rbp), %rdi movl $0x240, %esi # imm = 0x240 callq 0xa7170 movq -0x8(%rbp), %rdi leaq -0x1a0(%rbp), %rsi movl $0xc0, %edx callq 0xa7480 movq -0x8(%rbp), %rdi addq $0x120, %rdi # imm = 0x120 addq $0x60, %rdi leaq -0x1a0(%rbp), %rsi addq $0xc0, %rsi movl $0x60, %edx callq 0xa7480 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x120, %rsi # imm = 0x120 leaq -0x80(%rbp), %rdx movl $0x2, %ecx callq 0xbd6f0 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x480, %rsi # imm = 0x480 leaq -0x80(%rbp), %rdx movl $0x3, %ecx callq 0xbd6f0 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x900, %rsi # imm = 0x900 leaq -0x80(%rbp), %rdx movl $0x9, %ecx callq 0xbd6f0 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x1440, %rsi # imm = 0x1440 leaq -0x80(%rbp), %rdx movl $0x20, %ecx callq 0xbd6f0 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x3960, %rsi # imm = 0x3960 leaq -0x80(%rbp), %rdx movl $0x10, %ecx callq 0xbd6f0 movq -0x8(%rbp), %rdi callq 0xadbf0 addq $0x1a0, %rsp # imm = 0x1A0 popq %rbp retq nopl (%rax,%rax)
miller_loop_lines: push rbp mov rbp, rsp sub rsp, 1A0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rdi, [rbp+var_80] mov rsi, [rbp+var_18] mov rdx, [rbp+var_18] call add_fp lea rdi, [rbp+var_80] lea rsi, [rbp+var_80] mov edx, 1 call cneg_fp lea rdi, [rbp+var_80] add rdi, 30h ; '0' mov rsi, [rbp+var_18] add rsi, 30h ; '0' mov rdx, [rbp+var_18] add rdx, 30h ; '0' call add_fp lea rdi, [rbp+var_1A0] mov rsi, [rbp+var_10] lea rdx, [rbp+var_80] call post_line_by_Px2 mov rdi, [rbp+var_8] mov esi, 240h call vec_zero mov rdi, [rbp+var_8] lea rsi, [rbp+var_1A0] mov edx, 0C0h call vec_copy mov rdi, [rbp+var_8] add rdi, 120h add rdi, 60h ; '`' lea rsi, [rbp+var_1A0] add rsi, 0C0h mov edx, 60h ; '`' call vec_copy mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] add rsi, 120h lea rdx, [rbp+var_80] mov ecx, 2 call post_add_n_dbl mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] add rsi, 480h lea rdx, [rbp+var_80] mov ecx, 3 call post_add_n_dbl mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] add rsi, 900h lea rdx, [rbp+var_80] mov ecx, 9 call post_add_n_dbl mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] add rsi, 1440h lea rdx, [rbp+var_80] mov ecx, 20h ; ' ' call post_add_n_dbl mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] add rsi, 3960h lea rdx, [rbp+var_80] mov ecx, 10h call post_add_n_dbl mov rdi, [rbp+var_8] call conjugate_fp12 add rsp, 1A0h pop rbp retn
long long miller_loop_lines(long long a1, long long a2, long long a3) { _BYTE v4[192]; // [rsp+0h] [rbp-1A0h] BYREF long long v5; // [rsp+C0h] [rbp-E0h] BYREF _BYTE v6[48]; // [rsp+120h] [rbp-80h] BYREF long long v7; // [rsp+150h] [rbp-50h] BYREF long long v8; // [rsp+188h] [rbp-18h] long long v9; // [rsp+190h] [rbp-10h] long long v10; // [rsp+198h] [rbp-8h] v10 = a1; v9 = a2; v8 = a3; add_fp((long long)v6, a3, a3); cneg_fp((long long)v6, (long long)v6, 1LL); add_fp((long long)&v7, v8 + 48, v8 + 48); post_line_by_Px2(v4, v9, v6); vec_zero(v10, 0x240uLL); vec_copy(v10, (long long)v4, 0xC0uLL); vec_copy(v10 + 384, (long long)&v5, 0x60uLL); post_add_n_dbl(v10, v9 + 288, v6, 2LL); post_add_n_dbl(v10, v9 + 1152, v6, 3LL); post_add_n_dbl(v10, v9 + 2304, v6, 9LL); post_add_n_dbl(v10, v9 + 5184, v6, 32LL); post_add_n_dbl(v10, v9 + 14688, v6, 16LL); return conjugate_fp12(v10); }
miller_loop_lines: PUSH RBP MOV RBP,RSP SUB RSP,0x1a0 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RDI,[RBP + -0x80] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x18] CALL 0x001ae790 LEA RDI,[RBP + -0x80] LEA RSI,[RBP + -0x80] MOV EDX,0x1 CALL 0x001ae7d0 LEA RDI,[RBP + -0x80] ADD RDI,0x30 MOV RSI,qword ptr [RBP + -0x18] ADD RSI,0x30 MOV RDX,qword ptr [RBP + -0x18] ADD RDX,0x30 CALL 0x001ae790 LEA RDI,[RBP + -0x1a0] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[RBP + -0x80] CALL 0x001bd630 MOV RDI,qword ptr [RBP + -0x8] MOV ESI,0x240 CALL 0x001a7170 MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[RBP + -0x1a0] MOV EDX,0xc0 CALL 0x001a7480 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x120 ADD RDI,0x60 LEA RSI,[RBP + -0x1a0] ADD RSI,0xc0 MOV EDX,0x60 CALL 0x001a7480 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x120 LEA RDX,[RBP + -0x80] MOV ECX,0x2 CALL 0x001bd6f0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x480 LEA RDX,[RBP + -0x80] MOV ECX,0x3 CALL 0x001bd6f0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x900 LEA RDX,[RBP + -0x80] MOV ECX,0x9 CALL 0x001bd6f0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x1440 LEA RDX,[RBP + -0x80] MOV ECX,0x20 CALL 0x001bd6f0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x3960 LEA RDX,[RBP + -0x80] MOV ECX,0x10 CALL 0x001bd6f0 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001adbf0 ADD RSP,0x1a0 POP RBP RET
void miller_loop_lines(long param_1,long param_2,long param_3) { int1 local_1a8 [192]; int1 auStack_e8 [96]; int1 local_88 [48]; int1 auStack_58 [56]; long local_20; long local_18; long local_10; local_20 = param_3; local_18 = param_2; local_10 = param_1; add_fp(local_88,param_3,param_3); cneg_fp(local_88,local_88,1); add_fp(auStack_58,local_20 + 0x30,local_20 + 0x30); post_line_by_Px2(local_1a8,local_18,local_88); vec_zero(local_10,0x240); vec_copy(local_10,local_1a8,0xc0); vec_copy(local_10 + 0x180,auStack_e8,0x60); post_add_n_dbl(local_10,local_18 + 0x120,local_88,2); post_add_n_dbl(local_10,local_18 + 0x480,local_88,3); post_add_n_dbl(local_10,local_18 + 0x900,local_88,9); post_add_n_dbl(local_10,local_18 + 0x1440,local_88,0x20); post_add_n_dbl(local_10,local_18 + 0x3960,local_88,0x10); conjugate_fp12(local_10); return; }
38,917
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const
hkr04[P]cpp-mcp/common/json.hpp
bool operator==(const IterImpl& other) const { // if objects are not the same, the comparison is undefined if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object)) { JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object)); } JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: return (m_it.object_iterator == other.m_it.object_iterator); case value_t::array: return (m_it.array_iterator == other.m_it.array_iterator); case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: return (m_it.primitive_iterator == other.m_it.primitive_iterator); } }
O1
cpp
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %r14 movq (%rdi), %rax cmpq (%rsi), %rax jne 0x4ce6e movzbl (%rax), %eax cmpl $0x2, %eax je 0x4ce4e cmpl $0x1, %eax jne 0x4ce58 movq 0x8(%r14), %rax cmpq 0x8(%rsi), %rax jmp 0x4ce60 movq 0x10(%r14), %rax cmpq 0x10(%rsi), %rax jmp 0x4ce60 movq 0x18(%r14), %rax cmpq 0x18(%rsi), %rax sete %al addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0xa300 movq %rax, %rbx leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0xeec6(%rip), %rsi # 0x5bd51 leaq 0xeeef(%rip), %rdx # 0x5bd81 leaq 0x8(%rsp), %rdi callq 0xfaac movq (%r14), %rcx movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0xd4, %esi callq 0x4cf04 xorl %ebp, %ebp leaq 0x2fb7b(%rip), %rsi # 0x7ca38 leaq -0x3c28e(%rip), %rdx # 0x10c36 movq %rbx, %rdi callq 0xaa10 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x4ceee movq 0x18(%rsp), %rsi incq %rsi callq 0xa630 jmp 0x4ceee movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x4cefb movq %rbx, %rdi callq 0xa480 movq %r14, %rdi callq 0xaa60 nop
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_: push rbp; char push r15; int push r14; __int64 push rbx; int sub rsp, 28h mov r14, rdi mov rax, [rdi] cmp rax, [rsi] jnz short loc_4CE6E movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_4CE4E cmp eax, 1 jnz short loc_4CE58 mov rax, [r14+8] cmp rax, [rsi+8] jmp short loc_4CE60 loc_4CE4E: mov rax, [r14+10h] cmp rax, [rsi+10h] jmp short loc_4CE60 loc_4CE58: mov rax, [r14+18h] cmp rax, [rsi+18h] loc_4CE60: setz al add rsp, 28h pop rbx pop r14 pop r15 pop rbp retn loc_4CE6E: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r15, [rsp+48h+var_30] mov [r15-10h], r15 lea rsi, aCannotCompareI; "cannot compare iterators of different c"... lea rdx, aCannotCompareI+30h; "" lea rdi, [rsp+48h+var_40] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rcx, [r14] mov bpl, 1 lea rdx, [rsp+48h+var_40] mov rdi, rbx; this mov esi, 0D4h; int call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, [rsp+48h+var_40]; void * cmp rdi, r15 jz short loc_4CEEE mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_4CEEE mov r14, rax mov bpl, 1 loc_4CEEE: test bpl, bpl jz short loc_4CEFB mov rdi, rbx; void * call ___cxa_free_exception loc_4CEFB: mov rdi, r14 call __Unwind_Resume
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV R14,RDI MOV RAX,qword ptr [RDI] CMP RAX,qword ptr [RSI] JNZ 0x0014ce6e MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x0014ce4e CMP EAX,0x1 JNZ 0x0014ce58 MOV RAX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RSI + 0x8] JMP 0x0014ce60 LAB_0014ce4e: MOV RAX,qword ptr [R14 + 0x10] CMP RAX,qword ptr [RSI + 0x10] JMP 0x0014ce60 LAB_0014ce58: MOV RAX,qword ptr [R14 + 0x18] CMP RAX,qword ptr [RSI + 0x18] LAB_0014ce60: SETZ AL ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP RET LAB_0014ce6e: MOV EDI,0x20 CALL 0x0010a300 MOV RBX,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 LAB_0014ce84: LEA RSI,[0x15bd51] LEA RDX,[0x15bd81] LEA RDI,[RSP + 0x8] CALL 0x0010faac MOV RCX,qword ptr [R14] MOV BPL,0x1 LAB_0014cea2: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0xd4 CALL 0x0014cf04 XOR EBP,EBP LEA RSI,[0x17ca38] LEA RDX,[0x110c36] MOV RDI,RBX CALL 0x0010aa10
int8 _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ (int8 *param_1,int8 *param_2) { char cVar1; long lVar2; int8 uVar3; bool bVar4; int1 *local_40 [2]; int1 local_30 [16]; if ((char *)*param_1 == (char *)*param_2) { cVar1 = *(char *)*param_1; if (cVar1 == '\x02') { lVar2 = param_1[2]; bVar4 = lVar2 == param_2[2]; } else if (cVar1 == '\x01') { lVar2 = param_1[1]; bVar4 = lVar2 == param_2[1]; } else { lVar2 = param_1[3]; bVar4 = lVar2 == param_2[3]; } return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4); } uVar3 = __cxa_allocate_exception(0x20); local_40[0] = local_30; /* try { // try from 0014ce84 to 0014ce9b has its CatchHandler @ 0014cee8 */ std::__cxx11::string::_M_construct<char_const*> (local_40,"cannot compare iterators of different containers",""); /* try { // try from 0014cea2 to 0014cecb has its CatchHandler @ 0014cecc */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0xd4,local_40,*param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); }
38,918
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const
hkr04[P]cpp-mcp/common/json.hpp
bool operator==(const IterImpl& other) const { // if objects are not the same, the comparison is undefined if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object)) { JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object)); } JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: return (m_it.object_iterator == other.m_it.object_iterator); case value_t::array: return (m_it.array_iterator == other.m_it.array_iterator); case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: return (m_it.primitive_iterator == other.m_it.primitive_iterator); } }
O2
cpp
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const: pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movq (%rdi), %rax cmpq (%rsi), %rax jne 0x3f960 movzbl (%rax), %eax cmpl $0x2, %eax je 0x3f942 cmpl $0x1, %eax jne 0x3f94c movq 0x8(%r14), %rax cmpq 0x8(%rsi), %rax jmp 0x3f954 movq 0x10(%r14), %rax cmpq 0x10(%rsi), %rax jmp 0x3f954 movq 0x18(%r14), %rax cmpq 0x18(%rsi), %rax sete %al addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq pushq $0x20 popq %rdi callq 0xa340 movq %rax, %rbx leaq 0xe320(%rip), %rsi # 0x4dc92 leaq 0x10(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0xcab2 movq (%r14), %rcx movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0xd4, %esi callq 0x3f9d8 xorl %ebp, %ebp leaq 0x38096(%rip), %rsi # 0x77a38 leaq -0x30a8f(%rip), %rdx # 0xef1a movq %rbx, %rdi callq 0xaa70 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0xac20 testb %bpl, %bpl jne 0x3f9c8 jmp 0x3f9d0 movq %rax, %r14 movq %rbx, %rdi callq 0xa4e0 movq %r14, %rdi callq 0xaac0
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_: push rbp; char push r14; int push rbx; int sub rsp, 30h mov r14, rdi mov rax, [rdi] cmp rax, [rsi] jnz short loc_3F960 movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_3F942 cmp eax, 1 jnz short loc_3F94C mov rax, [r14+8] cmp rax, [rsi+8] jmp short loc_3F954 loc_3F942: mov rax, [r14+10h] cmp rax, [rsi+10h] jmp short loc_3F954 loc_3F94C: mov rax, [r14+18h] cmp rax, [rsi+18h] loc_3F954: setz al add rsp, 30h pop rbx pop r14 pop rbp retn loc_3F960: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aCannotCompareI; "cannot compare iterators of different c"... lea rdi, [rsp+48h+var_38] lea rdx, [rsp+48h+var_39] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rcx, [r14] mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 0D4h; int call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_3F9C8 jmp short loc_3F9D0 mov r14, rax loc_3F9C8: mov rdi, rbx; void * call ___cxa_free_exception loc_3F9D0: mov rdi, r14 call __Unwind_Resume
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI MOV RAX,qword ptr [RDI] CMP RAX,qword ptr [RSI] JNZ 0x0013f960 MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x0013f942 CMP EAX,0x1 JNZ 0x0013f94c MOV RAX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RSI + 0x8] JMP 0x0013f954 LAB_0013f942: MOV RAX,qword ptr [R14 + 0x10] CMP RAX,qword ptr [RSI + 0x10] JMP 0x0013f954 LAB_0013f94c: MOV RAX,qword ptr [R14 + 0x18] CMP RAX,qword ptr [RSI + 0x18] LAB_0013f954: SETZ AL ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0013f960: PUSH 0x20 POP RDI CALL 0x0010a340 MOV RBX,RAX LAB_0013f96b: LEA RSI,[0x14dc92] LEA RDI,[RSP + 0x10] LEA RDX,[RSP + 0xf] CALL 0x0010cab2 MOV RCX,qword ptr [R14] MOV BPL,0x1 LAB_0013f987: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0xd4 CALL 0x0013f9d8 XOR EBP,EBP LEA RSI,[0x177a38] LEA RDX,[0x10ef1a] MOV RDI,RBX CALL 0x0010aa70
int8 _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ (int8 *param_1,int8 *param_2) { char cVar1; long lVar2; int8 uVar3; bool bVar4; allocator local_39; string local_38 [32]; if ((char *)*param_1 == (char *)*param_2) { cVar1 = *(char *)*param_1; if (cVar1 == '\x02') { lVar2 = param_1[2]; bVar4 = lVar2 == param_2[2]; } else if (cVar1 == '\x01') { lVar2 = param_1[1]; bVar4 = lVar2 == param_2[1]; } else { lVar2 = param_1[3]; bVar4 = lVar2 == param_2[3]; } return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4); } uVar3 = __cxa_allocate_exception(0x20); /* try { // try from 0013f96b to 0013f980 has its CatchHandler @ 0013f9c5 */ std::__cxx11::string::string<std::allocator<char>> (local_38,"cannot compare iterators of different containers",&local_39); /* try { // try from 0013f987 to 0013f9b0 has its CatchHandler @ 0013f9b1 */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0xd4,local_38,*param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); }
38,919
mysys_namespace::crc32c::cpuid_ecx()
eloqsql/mysys/crc32/crc32c.cc
static uint32_t cpuid_ecx() { #ifdef __GNUC__ uint32_t reax= 0, rebx= 0, recx= 0, redx= 0; __cpuid(1, reax, rebx, recx, redx); return recx; #elif defined _MSC_VER int regs[4]; __cpuid(regs, 1); return regs[2]; #else # error "unknown compiler" #endif }
O0
cpp
mysys_namespace::crc32c::cpuid_ecx(): pushq %rbp movq %rsp, %rbp movl $0x0, -0x4(%rbp) movl $0x0, -0x8(%rbp) movl $0x0, -0xc(%rbp) movl $0x0, -0x10(%rbp) movl $0x1, %eax xchgq %rbx, %rsi cpuid xchgq %rbx, %rsi movl %esi, -0x14(%rbp) movl %eax, %esi movl -0x14(%rbp), %eax movl %esi, -0x4(%rbp) movl %eax, -0x8(%rbp) movl %ecx, -0xc(%rbp) movl %edx, -0x10(%rbp) movl -0xc(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
_ZN15mysys_namespace6crc32cL9cpuid_ecxEv: push rbp mov rbp, rsp mov [rbp+var_4], 0 mov [rbp+var_8], 0 mov [rbp+var_C], 0 mov [rbp+var_10], 0 mov eax, 1 xchg rsi, rbx cpuid xchg rsi, rbx mov [rbp+var_14], esi mov esi, eax mov eax, [rbp+var_14] mov [rbp+var_4], esi mov [rbp+var_8], eax mov [rbp+var_C], ecx mov [rbp+var_10], edx mov eax, [rbp+var_C] pop rbp retn
long long mysys_namespace::crc32c::cpuid_ecx(mysys_namespace::crc32c *this) { _RAX = 1LL; __asm { cpuid } return (unsigned int)_RCX; }
38,920
mysys_namespace::crc32c::cpuid_ecx()
eloqsql/mysys/crc32/crc32c.cc
static uint32_t cpuid_ecx() { #ifdef __GNUC__ uint32_t reax= 0, rebx= 0, recx= 0, redx= 0; __cpuid(1, reax, rebx, recx, redx); return recx; #elif defined _MSC_VER int regs[4]; __cpuid(regs, 1); return regs[2]; #else # error "unknown compiler" #endif }
O3
cpp
mysys_namespace::crc32c::cpuid_ecx(): movl $0x1, %eax xchgq %rbx, %rsi cpuid xchgq %rbx, %rsi movl $0x100002, %edx # imm = 0x100002 andl %edx, %ecx cmpl $0x100000, %ecx # imm = 0x100000 leaq 0x792e1(%rip), %rsi # 0xa933b leaq 0x793bb(%rip), %rax # 0xa941c cmoveq %rsi, %rax cmpl %edx, %ecx jne 0x30075 pushq %rbp movq %rsp, %rbp leaq 0x795f0(%rip), %rax # 0xa9664 popq %rbp movq %rax, 0xbd8dd4(%rip) # 0xc08e50 retq nopl (%rax)
_GLOBAL__sub_I_crc32c_cc: mov eax, 1 xchg rsi, rbx cpuid xchg rsi, rbx mov edx, 100002h and ecx, edx cmp ecx, offset xmmword_100000 lea rsi, _ZN15mysys_namespace6crc32cL12crc32c_sse42EjPKcm; mysys_namespace::crc32c::crc32c_sse42(uint,char const*,ulong) lea rax, _ZN15mysys_namespace6crc32cL11crc32c_slowEjPKcm; mysys_namespace::crc32c::crc32c_slow(uint,char const*,ulong) cmovz rax, rsi cmp ecx, edx jnz short loc_30075 push rbp mov rbp, rsp lea rax, crc32c_3way pop rbp loc_30075: mov cs:_ZN15mysys_namespace6crc32cL12ChosenExtendE, rax; mysys_namespace::crc32c::ChosenExtend retn
long long ( *GLOBAL__sub_I_crc32c_cc())() { int v5; // ecx long long ( *result)(); // rax _RAX = 1LL; __asm { cpuid } v5 = _RCX & 0x100002; result = (long long ( *)())mysys_namespace::crc32c::crc32c_slow; if ( v5 == (_DWORD)&xmmword_100000 ) result = (long long ( *)())mysys_namespace::crc32c::crc32c_sse42; if ( v5 == 1048578 ) result = crc32c_3way; mysys_namespace::crc32c::ChosenExtend = (long long)result; return result; }
_GLOBAL__sub_I_crc32c.cc: MOV EAX,0x1 XCHG RBX,RSI CPUID XCHG RBX,RSI MOV EDX,0x100002 AND ECX,EDX CMP ECX,0x100000 LEA RSI,[0x1a933b] LEA RAX,[0x1a941c] CMOVZ RAX,RSI CMP ECX,EDX JNZ 0x00130075 PUSH RBP MOV RBP,RSP LEA RAX,[0x1a9664] POP RBP LAB_00130075: MOV qword ptr [0x00d08e50],RAX RET
/* WARNING: Removing unreachable block (ram,0x00130041) */ void _GLOBAL__sub_I_crc32c_cc(void) { long lVar1; uint uVar2; lVar1 = cpuid_Version_info(1); uVar2 = *(uint *)(lVar1 + 0xc) & 0x100002; mysys_namespace::crc32c::ChosenExtend = mysys_namespace::crc32c::crc32c_slow; if (uVar2 == 0x100000) { mysys_namespace::crc32c::ChosenExtend = mysys_namespace::crc32c::crc32c_sse42; } if (uVar2 == 0x100002) { mysys_namespace::crc32c::ChosenExtend = crc32c_3way; } return; }
38,921
google::protobuf::util::converter::ProtoWriter::StartObject(google::protobuf::stringpiece_internal::StringPiece)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/util/internal/proto_writer.cc
ProtoWriter* ProtoWriter::StartObject( StringPiece name) { // Starting the root message. Create the root ProtoElement and return. if (element_ == nullptr) { if (!name.empty()) { InvalidName(name, "Root element should not be named."); } element_.reset(new ProtoElement(typeinfo_, master_type_, this)); return this; } const google::protobuf::Field* field = BeginNamed(name, false); if (field == nullptr) return this; // Check to see if this field is a oneof and that no oneof in that group has // already been set. if (!ValidOneof(*field, name)) { ++invalid_depth_; return this; } const google::protobuf::Type* type = LookupType(field); if (type == nullptr) { ++invalid_depth_; InvalidName(name, StrCat("Missing descriptor for field: ", field->type_url())); return this; } return StartObjectField(*field, *type); }
O0
cpp
google::protobuf::util::converter::ProtoWriter::StartObject(google::protobuf::stringpiece_internal::StringPiece): subq $0x158, %rsp # imm = 0x158 movq %rsi, 0x140(%rsp) movq %rdx, 0x148(%rsp) movq %rdi, 0x138(%rsp) movq 0x138(%rsp), %rdi movq %rdi, 0x28(%rsp) addq $0x28, %rdi xorl %eax, %eax movl %eax, %esi callq 0x5d64f0 testb $0x1, %al jne 0x5d2bc2 jmp 0x5d2cac leaq 0x140(%rsp), %rdi callq 0x400330 testb $0x1, %al jne 0x5d2c31 movq 0x140(%rsp), %rax movq %rax, 0x128(%rsp) movq 0x148(%rsp), %rax movq %rax, 0x130(%rsp) leaq 0x118(%rsp), %rdi leaq 0x2c414(%rip), %rsi # 0x5ff016 callq 0x3ced60 movq 0x28(%rsp), %rdi movq 0x128(%rsp), %rsi movq 0x130(%rsp), %rdx movq 0x118(%rsp), %rcx movq 0x120(%rsp), %r8 callq 0x5d2a60 movq 0x28(%rsp), %rax addq $0x28, %rax movq %rax, 0x18(%rsp) movl $0xb0, %edi callq 0x18da00 movq 0x28(%rsp), %rcx movq %rax, %rdi movq %rdi, %rax movq %rax, 0x20(%rsp) movq 0x10(%rcx), %rdx movq 0x18(%rcx), %rsi callq 0x5d18b0 jmp 0x5d2c68 movq 0x20(%rsp), %rsi movq 0x18(%rsp), %rdi callq 0x5d6a90 movq 0x28(%rsp), %rax movq %rax, 0x150(%rsp) jmp 0x5d2eb0 movq 0x20(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x110(%rsp) movl %eax, 0x10c(%rsp) callq 0x1961a0 jmp 0x5d2ec0 movq 0x28(%rsp), %rdi movq 0x140(%rsp), %rax movq %rax, 0xf0(%rsp) movq 0x148(%rsp), %rax movq %rax, 0xf8(%rsp) movq 0xf0(%rsp), %rsi movq 0xf8(%rsp), %rdx xorl %ecx, %ecx callq 0x5d2ed0 movq %rax, 0x100(%rsp) cmpq $0x0, 0x100(%rsp) jne 0x5d2d0d movq 0x28(%rsp), %rax movq %rax, 0x150(%rsp) jmp 0x5d2eb0 movq 0x28(%rsp), %rdi movq 0x100(%rsp), %rsi movq 0x140(%rsp), %rax movq %rax, 0xe0(%rsp) movq 0x148(%rsp), %rax movq %rax, 0xe8(%rsp) movq 0xe0(%rsp), %rdx movq 0xe8(%rsp), %rcx callq 0x5d3000 testb $0x1, %al jne 0x5d2d74 movq 0x28(%rsp), %rax movl 0xc8(%rax), %ecx addl $0x1, %ecx movl %ecx, 0xc8(%rax) movq %rax, 0x150(%rsp) jmp 0x5d2eb0 movq 0x28(%rsp), %rdi movq 0x100(%rsp), %rsi callq 0x5d3270 movq %rax, 0xd8(%rsp) cmpq $0x0, 0xd8(%rsp) jne 0x5d2e8e movq 0x28(%rsp), %rax movl 0xc8(%rax), %ecx incl %ecx movl %ecx, 0xc8(%rax) movups 0x140(%rsp), %xmm0 movaps %xmm0, 0xc0(%rsp) leaq 0x2da94(%rip), %rsi # 0x60085b leaq 0x60(%rsp), %rdi movq %rdi, (%rsp) callq 0x3ca080 movq 0x100(%rsp), %rdi callq 0x5925d0 movq %rax, %rsi leaq 0x30(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x4003a0 movq (%rsp), %rsi movq 0x8(%rsp), %rdx leaq 0x90(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x3f6df0 movq 0x10(%rsp), %rsi leaq 0xb0(%rsp), %rdi callq 0x3b7cf0 jmp 0x5d2e23 movq 0x28(%rsp), %rdi movq 0xc0(%rsp), %rsi movq 0xc8(%rsp), %rdx movq 0xb0(%rsp), %rcx movq 0xb8(%rsp), %r8 callq 0x5d2a60 jmp 0x5d2e4f leaq 0x90(%rsp), %rdi callq 0x19b990 movq 0x28(%rsp), %rax movq %rax, 0x150(%rsp) jmp 0x5d2eb0 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x110(%rsp) movl %eax, 0x10c(%rsp) leaq 0x90(%rsp), %rdi callq 0x19b990 jmp 0x5d2ec0 movq 0x28(%rsp), %rdi movq 0x100(%rsp), %rsi movq 0xd8(%rsp), %rdx callq 0x5d3310 movq %rax, 0x150(%rsp) movq 0x150(%rsp), %rax addq $0x158, %rsp # imm = 0x158 retq movq 0x110(%rsp), %rdi callq 0x198ce0 nopl (%rax)
_ZN6google8protobuf4util9converter11ProtoWriter11StartObjectENS0_20stringpiece_internal11StringPieceE: sub rsp, 158h mov qword ptr [rsp+158h+var_18], rsi mov qword ptr [rsp+158h+var_18+8], rdx mov [rsp+158h+var_20], rdi mov rdi, [rsp+158h+var_20] mov [rsp+158h+var_130], rdi add rdi, 28h ; '(' xor eax, eax mov esi, eax call _ZSteqIN6google8protobuf4util9converter11ProtoWriter12ProtoElementESt14default_deleteIS5_EEbRKSt10unique_ptrIT_T0_EDn; std::operator==<google::protobuf::util::converter::ProtoWriter::ProtoElement,std::default_delete<google::protobuf::util::converter::ProtoWriter::ProtoElement>>(std::unique_ptr<google::protobuf::util::converter::ProtoWriter::ProtoElement> const&,decltype(nullptr)) test al, 1 jnz short loc_5D2BC2 jmp loc_5D2CAC loc_5D2BC2: lea rdi, [rsp+158h+var_18]; this call _ZNK6google8protobuf20stringpiece_internal11StringPiece5emptyEv; google::protobuf::stringpiece_internal::StringPiece::empty(void) test al, 1 jnz short loc_5D2C31 mov rax, qword ptr [rsp+158h+var_18] mov [rsp+158h+var_30], rax mov rax, qword ptr [rsp+158h+var_18+8] mov [rsp+158h+var_28], rax lea rdi, [rsp+158h+var_40]; this lea rsi, aRootElementSho; "Root element should not be named." call _ZN6google8protobuf20stringpiece_internal11StringPieceC2EPKc; google::protobuf::stringpiece_internal::StringPiece::StringPiece(char const*) mov rdi, [rsp+158h+var_130] mov rsi, [rsp+158h+var_30] mov rdx, [rsp+158h+var_28] mov rcx, [rsp+158h+var_40] mov r8, [rsp+158h+var_38] call _ZN6google8protobuf4util9converter11ProtoWriter11InvalidNameENS0_20stringpiece_internal11StringPieceES5_; google::protobuf::util::converter::ProtoWriter::InvalidName(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece) loc_5D2C31: mov rax, [rsp+158h+var_130] add rax, 28h ; '(' mov [rsp+158h+var_140], rax mov edi, 0B0h; unsigned __int64 call __Znwm; operator new(ulong) mov rcx, [rsp+158h+var_130]; google::protobuf::util::converter::ProtoWriter * mov rdi, rax; this mov rax, rdi mov [rsp+158h+var_138], rax mov rdx, [rcx+10h]; google::protobuf::Type * mov rsi, [rcx+18h]; google::protobuf::util::converter::TypeInfo * call _ZN6google8protobuf4util9converter11ProtoWriter12ProtoElementC2EPKNS2_8TypeInfoERKNS0_4TypeEPS3_; google::protobuf::util::converter::ProtoWriter::ProtoElement::ProtoElement(google::protobuf::util::converter::TypeInfo const*,google::protobuf::Type const&,google::protobuf::util::converter::ProtoWriter*) jmp short $+2 loc_5D2C68: mov rsi, [rsp+158h+var_138] mov rdi, [rsp+158h+var_140] call _ZNSt10unique_ptrIN6google8protobuf4util9converter11ProtoWriter12ProtoElementESt14default_deleteIS5_EE5resetEPS5_; std::unique_ptr<google::protobuf::util::converter::ProtoWriter::ProtoElement>::reset(google::protobuf::util::converter::ProtoWriter::ProtoElement*) mov rax, [rsp+158h+var_130] mov [rsp+158h+var_8], rax jmp loc_5D2EB0 mov rdi, [rsp+arg_18]; void * mov rcx, rax mov eax, edx mov [rsp+arg_108], rcx mov [rsp+arg_104], eax call __ZdlPv; operator delete(void *) jmp loc_5D2EC0 loc_5D2CAC: mov rdi, [rsp+158h+var_130] mov rax, qword ptr [rsp+158h+var_18] mov [rsp+158h+var_68], rax mov rax, qword ptr [rsp+158h+var_18+8] mov [rsp+158h+var_60], rax mov rsi, [rsp+158h+var_68] mov rdx, [rsp+158h+var_60] xor ecx, ecx call _ZN6google8protobuf4util9converter11ProtoWriter10BeginNamedENS0_20stringpiece_internal11StringPieceEb; google::protobuf::util::converter::ProtoWriter::BeginNamed(google::protobuf::stringpiece_internal::StringPiece,bool) mov [rsp+158h+var_58], rax cmp [rsp+158h+var_58], 0 jnz short loc_5D2D0D mov rax, [rsp+158h+var_130] mov [rsp+158h+var_8], rax jmp loc_5D2EB0 loc_5D2D0D: mov rdi, [rsp+158h+var_130] mov rsi, [rsp+158h+var_58] mov rax, qword ptr [rsp+158h+var_18] mov [rsp+158h+var_78], rax mov rax, qword ptr [rsp+158h+var_18+8] mov [rsp+158h+var_70], rax mov rdx, [rsp+158h+var_78] mov rcx, [rsp+158h+var_70] call _ZN6google8protobuf4util9converter11ProtoWriter10ValidOneofERKNS0_5FieldENS0_20stringpiece_internal11StringPieceE; google::protobuf::util::converter::ProtoWriter::ValidOneof(google::protobuf::Field const&,google::protobuf::stringpiece_internal::StringPiece) test al, 1 jnz short loc_5D2D74 mov rax, [rsp+158h+var_130] mov ecx, [rax+0C8h] add ecx, 1 mov [rax+0C8h], ecx mov [rsp+158h+var_8], rax jmp loc_5D2EB0 loc_5D2D74: mov rdi, [rsp+158h+var_130]; this mov rsi, [rsp+158h+var_58]; google::protobuf::Field * call _ZN6google8protobuf4util9converter11ProtoWriter10LookupTypeEPKNS0_5FieldE; google::protobuf::util::converter::ProtoWriter::LookupType(google::protobuf::Field const*) mov [rsp+158h+var_80], rax cmp [rsp+158h+var_80], 0 jnz loc_5D2E8E mov rax, [rsp+158h+var_130] mov ecx, [rax+0C8h] inc ecx mov [rax+0C8h], ecx movups xmm0, [rsp+158h+var_18] movaps [rsp+158h+var_98], xmm0 lea rsi, aMissingDescrip; "Missing descriptor for field: " lea rdi, [rsp+158h+var_F8]; this mov [rsp+158h+var_158], rdi call _ZN6google8protobuf7strings8AlphaNumC2EPKc; google::protobuf::strings::AlphaNum::AlphaNum(char const*) mov rdi, [rsp+158h+var_58] call _ZNK6google8protobuf5Field8type_urlB5cxx11Ev; google::protobuf::Field::type_url(void) mov rsi, rax lea rdi, [rsp+158h+var_128] mov [rsp+158h+var_150], rdi call _ZN6google8protobuf7strings8AlphaNumC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::AlphaNum::AlphaNum(std::string const&) mov rsi, [rsp+158h+var_158] mov rdx, [rsp+158h+var_150] lea rdi, [rsp+158h+var_C8] mov [rsp+158h+var_148], rdi call _ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_; google::protobuf::StrCat(google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&) mov rsi, [rsp+158h+var_148] lea rdi, [rsp+158h+var_A8] call _ZN6google8protobuf20stringpiece_internal11StringPieceC2ISaIcEEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcET_EE; google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(std::string const&) jmp short $+2 loc_5D2E23: mov rdi, [rsp+158h+var_130] mov rsi, qword ptr [rsp+158h+var_98] mov rdx, qword ptr [rsp+158h+var_98+8] mov rcx, [rsp+158h+var_A8] mov r8, [rsp+158h+var_A0] call _ZN6google8protobuf4util9converter11ProtoWriter11InvalidNameENS0_20stringpiece_internal11StringPieceES5_; google::protobuf::util::converter::ProtoWriter::InvalidName(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece) jmp short $+2 loc_5D2E4F: lea rdi, [rsp+158h+var_C8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rax, [rsp+158h+var_130] mov [rsp+158h+var_8], rax jmp short loc_5D2EB0 mov rcx, rax mov eax, edx mov [rsp+arg_108], rcx mov [rsp+arg_104], eax lea rdi, [rsp+arg_88] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_5D2EC0 loc_5D2E8E: mov rdi, [rsp+158h+var_130]; this mov rsi, [rsp+158h+var_58]; google::protobuf::Field * mov rdx, [rsp+158h+var_80]; google::protobuf::Type * call _ZN6google8protobuf4util9converter11ProtoWriter16StartObjectFieldERKNS0_5FieldERKNS0_4TypeE; google::protobuf::util::converter::ProtoWriter::StartObjectField(google::protobuf::Field const&,google::protobuf::Type const&) mov [rsp+158h+var_8], rax loc_5D2EB0: mov rax, [rsp+158h+var_8] add rsp, 158h retn loc_5D2EC0: mov rdi, [rsp+arg_108] call __Unwind_Resume
long long google::protobuf::util::converter::ProtoWriter::StartObject(long long a1, long long a2, long long a3) { unsigned long long v3; // rax const google::protobuf::Type **v5; // [rsp+20h] [rbp-138h] _QWORD v6[6]; // [rsp+30h] [rbp-128h] BYREF _BYTE v7[48]; // [rsp+60h] [rbp-F8h] BYREF _BYTE v8[32]; // [rsp+90h] [rbp-C8h] BYREF long long v9[2]; // [rsp+B0h] [rbp-A8h] BYREF __int128 v10; // [rsp+C0h] [rbp-98h] google::protobuf::Type *v11; // [rsp+D8h] [rbp-80h] __int128 v12; // [rsp+E0h] [rbp-78h] __int128 v13; // [rsp+F0h] [rbp-68h] google::protobuf::Field *v14; // [rsp+100h] [rbp-58h] long long v15[2]; // [rsp+118h] [rbp-40h] BYREF __int128 v16; // [rsp+128h] [rbp-30h] long long v17; // [rsp+138h] [rbp-20h] __int128 v18; // [rsp+140h] [rbp-18h] BYREF *(_QWORD *)&v18 = a2; *((_QWORD *)&v18 + 1) = a3; v17 = a1; if ( (std::operator==<google::protobuf::util::converter::ProtoWriter::ProtoElement,std::default_delete<google::protobuf::util::converter::ProtoWriter::ProtoElement>>( a1 + 40, 0LL) & 1) != 0 ) { if ( !google::protobuf::stringpiece_internal::StringPiece::empty((google::protobuf::stringpiece_internal::StringPiece *)&v18) ) { v16 = v18; google::protobuf::stringpiece_internal::StringPiece::StringPiece( (google::protobuf::stringpiece_internal::StringPiece *)v15, "Root element should not be named."); google::protobuf::util::converter::ProtoWriter::InvalidName( (google::protobuf::util::converter::ProtoWriter *)a1, v16, *((long long *)&v16 + 1), v15[0], v15[1]); } v5 = (const google::protobuf::Type **)operator new(0xB0uLL); google::protobuf::util::converter::ProtoWriter::ProtoElement::ProtoElement( v5, *(const google::protobuf::util::converter::TypeInfo **)(a1 + 24), *(const google::protobuf::Type **)(a1 + 16), (google::protobuf::util::converter::ProtoWriter *)a1); std::unique_ptr<google::protobuf::util::converter::ProtoWriter::ProtoElement>::reset(a1 + 40, v5); return a1; } else { v13 = v18; v14 = (google::protobuf::Field *)google::protobuf::util::converter::ProtoWriter::BeginNamed( a1, v18, *((_QWORD *)&v18 + 1), 0LL); if ( v14 ) { v12 = v18; if ( (google::protobuf::util::converter::ProtoWriter::ValidOneof(a1, v14, v18, *((_QWORD *)&v18 + 1)) & 1) != 0 ) { v11 = (google::protobuf::Type *)google::protobuf::util::converter::ProtoWriter::LookupType( (google::protobuf::util::converter::ProtoWriter *)a1, v14); if ( v11 ) { return google::protobuf::util::converter::ProtoWriter::StartObjectField( (google::protobuf::util::converter::ProtoWriter *)a1, v14, v11); } else { ++*(_DWORD *)(a1 + 200); v10 = v18; google::protobuf::strings::AlphaNum::AlphaNum( (google::protobuf::strings::AlphaNum *)v7, "Missing descriptor for field: "); v3 = google::protobuf::Field::type_url[abi:cxx11]((long long)v14); google::protobuf::strings::AlphaNum::AlphaNum(v6, v3); google::protobuf::StrCat[abi:cxx11]( (long long)v8, (google::protobuf::strings::AlphaNum *)v7, (google::protobuf::strings::AlphaNum *)v6); google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(v9, (long long)v8); google::protobuf::util::converter::ProtoWriter::InvalidName( (google::protobuf::util::converter::ProtoWriter *)a1, v10, *((long long *)&v10 + 1), v9[0], v9[1]); std::string::~string(v8); return a1; } } else { ++*(_DWORD *)(a1 + 200); return a1; } } else { return a1; } } }
AllocateArray<google::protobuf::MethodOptions>: SUB RSP,0xe8 MOV qword ptr [RSP + 0xe0],RDI MOV dword ptr [RSP + 0xdc],ESI MOV RDI,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x28],RDI MOV byte ptr [RSP + 0xdb],0x0 CALL 0x005c65c0 MOV byte ptr [RSP + 0x9f],0x0 TEST AL,0x1 JNZ 0x005d2bbe JMP 0x005d2bc0 LAB_005d2bbe: JMP 0x005d2c19 LAB_005d2bc0: LEA RDX,[0x6f8756] LEA RDI,[RSP + 0xa0] MOV qword ptr [RSP + 0x18],RDI MOV ESI,0x3 MOV ECX,0x187 CALL 0x004ef0b0 MOV RDI,qword ptr [RSP + 0x18] MOV byte ptr [RSP + 0x9f],0x1 LAB_005d2bf0: LEA RSI,[0x6fae02] CALL 0x004ee970 MOV qword ptr [RSP + 0x20],RAX JMP 0x005d2c03 LAB_005d2c03: MOV RSI,qword ptr [RSP + 0x20] LEA RDI,[RSP + 0x8b] CALL 0x004eeb20 LAB_005d2c15: JMP 0x005d2c17 LAB_005d2c17: JMP 0x005d2c19 LAB_005d2c19: TEST byte ptr [RSP + 0x9f],0x1 JNZ 0x005d2c25 JMP 0x005d2c32 LAB_005d2c25: LEA RDI,[RSP + 0xa0] CALL 0x004ef0f0 LAB_005d2c32: MOV RDI,qword ptr [RSP + 0x28] CALL 0x005cec60 MOV RDI,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x80],RAX ADD RDI,0x9c CALL 0x005c8800 MOV RDI,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RSP + 0x78] MOVSXD RCX,dword ptr [RCX] IMUL RCX,RCX,0x50 ADD RAX,RCX MOV qword ptr [RSP + 0x70],RAX MOVSXD RDX,dword ptr [RSP + 0xdc] MOV RAX,qword ptr [RSP + 0x78] MOVSXD RCX,dword ptr [RAX] ADD RCX,RDX MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RSP + 0x78] MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x14],EAX ADD RDI,0x68 CALL 0x005c8800 MOV RCX,RAX MOV EAX,dword ptr [RSP + 0x14] MOV ECX,dword ptr [RCX] MOV byte ptr [RSP + 0x37],0x0 CMP EAX,ECX JG 0x005d2cbb JMP 0x005d2d09 LAB_005d2cbb: LEA RDX,[0x6f8756] LEA RDI,[RSP + 0x38] MOV qword ptr [RSP],RDI MOV ESI,0x3 MOV ECX,0x18d CALL 0x004ef0b0 MOV RDI,qword ptr [RSP] MOV byte ptr [RSP + 0x37],0x1 LAB_005d2ce3: LEA RSI,[0x6fae22] CALL 0x004ee970 MOV qword ptr [RSP + 0x8],RAX JMP 0x005d2cf6 LAB_005d2cf6: MOV RSI,qword ptr [RSP + 0x8] LEA RDI,[RSP + 0x36] CALL 0x004eeb20 LAB_005d2d05: JMP 0x005d2d07 LAB_005d2d07: JMP 0x005d2d09 LAB_005d2d09: TEST byte ptr [RSP + 0x37],0x1 JNZ 0x005d2d12 JMP 0x005d2d1c LAB_005d2d12: LEA RDI,[RSP + 0x38] CALL 0x004ef0f0 LAB_005d2d1c: MOV RAX,qword ptr [RSP + 0x70] ADD RSP,0xe8 RET
/* google::protobuf::MethodOptions* google::protobuf::(anonymous namespace)::FlatAllocatorImpl<char, std::__cxx11::string, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions>::AllocateArray<google::protobuf::MethodOptions>(int) */ MethodOptions * __thiscall google::protobuf::(anonymous_namespace):: FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> ::AllocateArray<google::protobuf::MethodOptions> (FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *this,int param_1) { int iVar1; ulong uVar2; LogMessage *pLVar3; int *piVar4; LogFinisher local_b2; byte local_b1; LogMessage local_b0 [56]; MethodOptions *local_78; int *local_70; MethodOptions **local_68; LogFinisher local_5d [20]; byte local_49; LogMessage local_48 [59]; int1 local_d; int local_c; FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *local_8; local_d = 0; local_c = param_1; local_8 = this; uVar2 = has_allocated(this); local_49 = 0; if ((uVar2 & 1) == 0) { internal::LogMessage::LogMessage (local_48,3, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc" ,0x187); local_49 = 1; /* try { // try from 005d2bf0 to 005d2c14 has its CatchHandler @ 005d2d29 */ pLVar3 = (LogMessage *) internal::LogMessage::operator<<(local_48,"CHECK failed: has_allocated(): "); internal::LogFinisher::operator=(local_5d,pLVar3); } if ((local_49 & 1) != 0) { internal::LogMessage::~LogMessage(local_48); } local_68 = TypeMap<google::protobuf::(anonymous_namespace)::PointerT,char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> ::Get<google::protobuf::MethodOptions> ((TypeMap<google::protobuf::(anonymous_namespace)::PointerT,char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *)this); local_70 = TypeMap<google::protobuf::(anonymous_namespace)::IntT,char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> ::Get<google::protobuf::MethodOptions> ((TypeMap<google::protobuf::(anonymous_namespace)::IntT,char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *)(this + 0x9c)); local_78 = *local_68 + (long)*local_70 * 0x50; *local_70 = *local_70 + local_c; iVar1 = *local_70; piVar4 = TypeMap<google::protobuf::(anonymous_namespace)::IntT,char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> ::Get<google::protobuf::MethodOptions> ((TypeMap<google::protobuf::(anonymous_namespace)::IntT,char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *)(this + 0x68)); local_b1 = 0; if (*piVar4 < iVar1) { internal::LogMessage::LogMessage (local_b0,3, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc" ,0x18d); local_b1 = 1; /* try { // try from 005d2ce3 to 005d2d04 has its CatchHandler @ 005d2d58 */ pLVar3 = (LogMessage *) internal::LogMessage::operator<< (local_b0,"CHECK failed: (used) <= (total_.template Get<TypeToUse>()): "); internal::LogFinisher::operator=(&local_b2,pLVar3); } if ((local_b1 & 1) != 0) { internal::LogMessage::~LogMessage(local_b0); } return local_78; }
38,922
google::protobuf::util::converter::ProtoWriter::StartObject(google::protobuf::stringpiece_internal::StringPiece)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/util/internal/proto_writer.cc
ProtoWriter* ProtoWriter::StartObject( StringPiece name) { // Starting the root message. Create the root ProtoElement and return. if (element_ == nullptr) { if (!name.empty()) { InvalidName(name, "Root element should not be named."); } element_.reset(new ProtoElement(typeinfo_, master_type_, this)); return this; } const google::protobuf::Field* field = BeginNamed(name, false); if (field == nullptr) return this; // Check to see if this field is a oneof and that no oneof in that group has // already been set. if (!ValidOneof(*field, name)) { ++invalid_depth_; return this; } const google::protobuf::Type* type = LookupType(field); if (type == nullptr) { ++invalid_depth_; InvalidName(name, StrCat("Missing descriptor for field: ", field->type_url())); return this; } return StartObjectField(*field, *type); }
O3
cpp
google::protobuf::util::converter::ProtoWriter::StartObject(google::protobuf::stringpiece_internal::StringPiece): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx cmpq $0x0, 0x28(%rdi) je 0x1ebe55 movl 0xc8(%rbx), %eax testl %eax, %eax jle 0x1ebebd incl %eax movl %eax, 0xc8(%rbx) jmp 0x1ebfc7 testq %r14, %r14 je 0x1ebe81 movq 0xc0(%rbx), %rdi movq 0xd0(%rbx), %rsi movq (%rdi), %rax leaq 0x1d73c(%rip), %r8 # 0x2095ae movl $0x21, %r9d movq %r15, %rdx movq %r14, %rcx callq *0x10(%rax) movl $0xb0, %edi callq 0x82120 movq %rax, %r14 movq 0x10(%rbx), %rdx movq 0x18(%rbx), %rsi movq %rax, %rdi movq %rbx, %rcx callq 0x1eb344 movq 0x28(%rbx), %rdi movq %r14, 0x28(%rbx) testq %rdi, %rdi je 0x1ebfc7 movq (%rdi), %rax callq *0x8(%rax) jmp 0x1ebfc7 movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x1ec8a6 testq %rax, %rax je 0x1ebf14 movq %rax, %r12 movq %rbx, %rdi movq %rax, %rsi movq %r15, %rdx movq %r14, %rcx callq 0x1ec092 testb %al, %al je 0x1ebf14 movl 0x48(%r12), %eax andl $-0x2, %eax cmpl $0xa, %eax jne 0x1ebf1f movq 0x18(%rbx), %rdi movq 0x30(%r12), %rax andq $-0x4, %rax movq (%rax), %rsi movq 0x8(%rax), %rdx movq (%rdi), %rax callq *0x18(%rax) movq %rax, %rdx jmp 0x1ebf27 incl 0xc8(%rbx) jmp 0x1ebfc7 movq 0x28(%rbx), %rax movq 0x40(%rax), %rdx testq %rdx, %rdx je 0x1ebf3c movq %rbx, %rdi movq %r12, %rsi callq 0x1ec21a jmp 0x1ebfc7 incl 0xc8(%rbx) leaq 0x1eefe(%rip), %rax # 0x20ae47 leaq 0x58(%rsp), %rsi movq %rax, (%rsi) movq $0x1e, 0x8(%rsi) movq 0x30(%r12), %rax andq $-0x4, %rax movq (%rax), %rcx leaq 0x28(%rsp), %rdx movq %rcx, (%rdx) movq 0x8(%rax), %rax movq %rax, 0x8(%rdx) leaq 0x8(%rsp), %r12 movq %r12, %rdi callq 0x1414b9 movq (%r12), %r8 movq 0x8(%r12), %r9 movq 0x28(%rbx), %rsi movq 0xc0(%rbx), %rdi testq %rsi, %rsi jne 0x1ebfa4 movq 0xd0(%rbx), %rsi jmp 0x1ebfa8 addq $0x18, %rsi movq (%rdi), %rax movq %r15, %rdx movq %r14, %rcx callq *0x10(%rax) leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1ebfc7 callq 0x81f10 movq %rbx, %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi jne 0x1ebff2 jmp 0x1ebff7 movq %rax, %rbx movq %r14, %rdi callq 0x81f10 movq %rbx, %rdi callq 0x83b70 nop
_ZN6google8protobuf4util9converter11ProtoWriter11StartObjectENS0_20stringpiece_internal11StringPieceE: push r15 push r14 push r12 push rbx sub rsp, 88h mov r14, rdx mov r15, rsi mov rbx, rdi cmp qword ptr [rdi+28h], 0 jz short loc_1EBE55 mov eax, [rbx+0C8h] test eax, eax jle short loc_1EBEBD inc eax mov [rbx+0C8h], eax jmp loc_1EBFC7 loc_1EBE55: test r14, r14 jz short loc_1EBE81 mov rdi, [rbx+0C0h] mov rsi, [rbx+0D0h] mov rax, [rdi] lea r8, aRootElementSho; "Root element should not be named." mov r9d, 21h ; '!' mov rdx, r15 mov rcx, r14 call qword ptr [rax+10h] loc_1EBE81: mov edi, 0B0h; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov rdx, [rbx+10h] mov rsi, [rbx+18h] mov rdi, rax mov rcx, rbx call _ZN6google8protobuf4util9converter11ProtoWriter12ProtoElementC2EPKNS2_8TypeInfoERKNS0_4TypeEPS3_; google::protobuf::util::converter::ProtoWriter::ProtoElement::ProtoElement(google::protobuf::util::converter::TypeInfo const*,google::protobuf::Type const&,google::protobuf::util::converter::ProtoWriter*) mov rdi, [rbx+28h] mov [rbx+28h], r14 test rdi, rdi jz loc_1EBFC7 mov rax, [rdi] call qword ptr [rax+8] jmp loc_1EBFC7 loc_1EBEBD: mov rdi, rbx mov rsi, r15 mov rdx, r14 call _ZN6google8protobuf4util9converter11ProtoWriter6LookupENS0_20stringpiece_internal11StringPieceE; google::protobuf::util::converter::ProtoWriter::Lookup(google::protobuf::stringpiece_internal::StringPiece) test rax, rax jz short loc_1EBF14 mov r12, rax mov rdi, rbx mov rsi, rax mov rdx, r15 mov rcx, r14 call _ZN6google8protobuf4util9converter11ProtoWriter10ValidOneofERKNS0_5FieldENS0_20stringpiece_internal11StringPieceE; google::protobuf::util::converter::ProtoWriter::ValidOneof(google::protobuf::Field const&,google::protobuf::stringpiece_internal::StringPiece) test al, al jz short loc_1EBF14 mov eax, [r12+48h] and eax, 0FFFFFFFEh cmp eax, 0Ah jnz short loc_1EBF1F mov rdi, [rbx+18h] mov rax, [r12+30h] and rax, 0FFFFFFFFFFFFFFFCh mov rsi, [rax] mov rdx, [rax+8] mov rax, [rdi] call qword ptr [rax+18h] mov rdx, rax jmp short loc_1EBF27 loc_1EBF14: inc dword ptr [rbx+0C8h] jmp loc_1EBFC7 loc_1EBF1F: mov rax, [rbx+28h] mov rdx, [rax+40h]; google::protobuf::Type * loc_1EBF27: test rdx, rdx jz short loc_1EBF3C mov rdi, rbx; this mov rsi, r12; google::protobuf::Field * call _ZN6google8protobuf4util9converter11ProtoWriter16StartObjectFieldERKNS0_5FieldERKNS0_4TypeE; google::protobuf::util::converter::ProtoWriter::StartObjectField(google::protobuf::Field const&,google::protobuf::Type const&) jmp loc_1EBFC7 loc_1EBF3C: inc dword ptr [rbx+0C8h] lea rax, aMissingDescrip; "Missing descriptor for field: " lea rsi, [rsp+0A8h+var_50] mov [rsi], rax mov qword ptr [rsi+8], 1Eh mov rax, [r12+30h] and rax, 0FFFFFFFFFFFFFFFCh mov rcx, [rax] lea rdx, [rsp+0A8h+var_80] mov [rdx], rcx mov rax, [rax+8] mov [rdx+8], rax lea r12, [rsp+0A8h+var_A0] mov rdi, r12 call _ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_; google::protobuf::StrCat(google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&) mov r8, [r12] mov r9, [r12+8] mov rsi, [rbx+28h] mov rdi, [rbx+0C0h] test rsi, rsi jnz short loc_1EBFA4 mov rsi, [rbx+0D0h] jmp short loc_1EBFA8 loc_1EBFA4: add rsi, 18h loc_1EBFA8: mov rax, [rdi] mov rdx, r15 mov rcx, r14 call qword ptr [rax+10h] lea rax, [rsp+0A8h+var_90] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1EBFC7 call __ZdlPv; operator delete(void *) loc_1EBFC7: mov rax, rbx add rsp, 88h pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h] cmp rdi, rax jnz short loc_1EBFF2 jmp short loc_1EBFF7 mov rbx, rax mov rdi, r14; void * loc_1EBFF2: call __ZdlPv; operator delete(void *) loc_1EBFF7: mov rdi, rbx call __Unwind_Resume
long long google::protobuf::util::converter::ProtoWriter::StartObject(long long a1, long long a2, long long a3) { int v6; // eax long long v7; // r14 long long v8; // rdi long long v9; // rax long long v10; // r12 const google::protobuf::Type *v11; // rdx _QWORD *v12; // rax long long v13; // rsi long long v14; // rsi void *v16[2]; // [rsp+8h] [rbp-A0h] BYREF char v17; // [rsp+18h] [rbp-90h] BYREF _QWORD v18[6]; // [rsp+28h] [rbp-80h] BYREF _QWORD v19[10]; // [rsp+58h] [rbp-50h] BYREF if ( *(_QWORD *)(a1 + 40) ) { v6 = *(_DWORD *)(a1 + 200); if ( v6 <= 0 ) { v9 = google::protobuf::util::converter::ProtoWriter::Lookup(a1, a2, a3); if ( v9 && (v10 = v9, (unsigned __int8)google::protobuf::util::converter::ProtoWriter::ValidOneof(a1, v9, a2, a3)) ) { if ( (*(_DWORD *)(v10 + 72) & 0xFFFFFFFE) == 0xA ) v11 = (const google::protobuf::Type *)(*(long long ( **)(_QWORD, _QWORD, _QWORD))(**(_QWORD **)(a1 + 24) + 24LL))( *(_QWORD *)(a1 + 24), *(_QWORD *)(*(_QWORD *)(v10 + 48) & 0xFFFFFFFFFFFFFFFCLL), *(_QWORD *)((*(_QWORD *)(v10 + 48) & 0xFFFFFFFFFFFFFFFCLL) + 8)); else v11 = *(const google::protobuf::Type **)(*(_QWORD *)(a1 + 40) + 64LL); if ( v11 ) { google::protobuf::util::converter::ProtoWriter::StartObjectField( (google::protobuf::util::converter::ProtoWriter *)a1, (const google::protobuf::Field *)v10, v11); } else { ++*(_DWORD *)(a1 + 200); v19[0] = "Missing descriptor for field: "; v19[1] = 30LL; v12 = (_QWORD *)(*(_QWORD *)(v10 + 48) & 0xFFFFFFFFFFFFFFFCLL); v18[0] = *v12; v18[1] = v12[1]; google::protobuf::StrCat[abi:cxx11]((long long *)v16, (long long)v19, (long long)v18); v13 = *(_QWORD *)(a1 + 40); if ( v13 ) v14 = v13 + 24; else v14 = *(_QWORD *)(a1 + 208); (*(void ( **)(_QWORD, long long, long long, long long, void *, void *))(**(_QWORD **)(a1 + 192) + 16LL))( *(_QWORD *)(a1 + 192), v14, a2, a3, v16[0], v16[1]); if ( v16[0] != &v17 ) operator delete(v16[0]); } } else { ++*(_DWORD *)(a1 + 200); } } else { *(_DWORD *)(a1 + 200) = v6 + 1; } } else { if ( a3 ) (*(void ( **)(_QWORD, _QWORD, long long, long long, const char *, long long))(**(_QWORD **)(a1 + 192) + 16LL))( *(_QWORD *)(a1 + 192), *(_QWORD *)(a1 + 208), a2, a3, "Root element should not be named.", 33LL); v7 = operator new(0xB0uLL); google::protobuf::util::converter::ProtoWriter::ProtoElement::ProtoElement( v7, *(_QWORD *)(a1 + 24), *(_QWORD *)(a1 + 16), a1); v8 = *(_QWORD *)(a1 + 40); *(_QWORD *)(a1 + 40) = v7; if ( v8 ) (*(void ( **)(long long))(*(_QWORD *)v8 + 8LL))(v8); } return a1; }
38,923
ma_log_compact_keypage
eloqsql/storage/maria/ma_page.c
static my_bool _ma_log_compact_keypage(MARIA_PAGE *ma_page, TrID min_read_from) { LSN lsn; uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + 1 + 7 + TRANSID_SIZE]; uchar *log_pos; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 1]; MARIA_HA *info= ma_page->info; MARIA_SHARE *share= info->s; uint translog_parts, extra_length; my_off_t page= ma_page->pos; DBUG_ENTER("_ma_log_compact_keypage"); DBUG_PRINT("enter", ("page: %lu", (ulong) (page / share->block_size))); /* Store address of new root page */ page/= share->block_size; page_store(log_data + FILEID_STORE_SIZE, page); log_pos= log_data + FILEID_STORE_SIZE + PAGE_STORE_SIZE; log_pos[0]= KEY_OP_COMPACT_PAGE; transid_store(log_pos + 1, min_read_from); log_pos+= 1 + TRANSID_SIZE; log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= (uint) (log_pos - log_data); translog_parts= 1; extra_length= 0; _ma_log_key_changes(ma_page, log_array + TRANSLOG_INTERNAL_PARTS + translog_parts, log_pos, &extra_length, &translog_parts); /* Remember new page length for future log entires for same page */ ma_page->org_size= ma_page->size; if (translog_write_record(&lsn, LOGREC_REDO_INDEX, info->trn, info, (translog_size_t)(log_array[TRANSLOG_INTERNAL_PARTS + 0].length + extra_length), TRANSLOG_INTERNAL_PARTS + translog_parts, log_array, log_data, NULL)) DBUG_RETURN(1); DBUG_RETURN(0); }
O0
c
ma_log_compact_keypage: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x30(%rbp) movq %rsi, -0x38(%rbp) movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0x88(%rbp) movq -0x88(%rbp), %rax movq (%rax), %rax movq %rax, -0x90(%rbp) movq -0x30(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0xa0(%rbp) jmp 0x3f260 movq -0x90(%rbp), %rax movl 0x7bc(%rax), %eax movl %eax, %ecx movq -0xa0(%rbp), %rax xorl %edx, %edx divq %rcx movq %rax, -0xa0(%rbp) leaq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0xa8(%rbp) movq -0xa0(%rbp), %rax movl %eax, %ecx movq -0xa8(%rbp), %rax movl %ecx, (%rax) movq -0xa0(%rbp), %rax shrq $0x20, %rax movb %al, %cl movq -0xa8(%rbp), %rax movb %cl, 0x4(%rax) leaq -0x20(%rbp), %rax addq $0x2, %rax addq $0x5, %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movb $0xb, (%rax) movq -0x48(%rbp), %rax addq $0x1, %rax movq %rax, -0xb0(%rbp) movq -0x38(%rbp), %rax movl %eax, %ecx movq -0xb0(%rbp), %rax movl %ecx, (%rax) movq -0x38(%rbp), %rax shrq $0x20, %rax movw %ax, %cx movq -0xb0(%rbp), %rax movw %cx, 0x4(%rax) movq -0x48(%rbp), %rax addq $0x7, %rax movq %rax, -0x48(%rbp) leaq -0x20(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x48(%rbp), %rax leaq -0x20(%rbp), %rcx subq %rcx, %rax movl %eax, %eax movq %rax, -0x58(%rbp) movl $0x1, -0x94(%rbp) movl $0x0, -0x98(%rbp) movq -0x30(%rbp), %rax movl 0x20(%rax), %ecx movq -0x30(%rbp), %rax movl %ecx, 0x24(%rax) movq -0x88(%rbp), %rax movq 0x8(%rax), %rdx movq -0x88(%rbp), %rcx movq -0x58(%rbp), %rax movl -0x98(%rbp), %esi addq %rsi, %rax movl %eax, %r8d movl -0x94(%rbp), %r9d addl $0x2, %r9d leaq -0x80(%rbp), %r10 leaq -0x20(%rbp), %rax leaq -0x40(%rbp), %rdi movl $0xc, %esi xorl %r11d, %r11d movq %r10, (%rsp) movq %rax, 0x8(%rsp) movq $0x0, 0x10(%rsp) callq 0x8d5f0 cmpb $0x0, %al je 0x3f3b0 jmp 0x3f3aa movb $0x1, -0x21(%rbp) jmp 0x3f3b6 jmp 0x3f3b2 movb $0x0, -0x21(%rbp) movb -0x21(%rbp), %al movb %al, -0xb1(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x3f3e0 movb -0xb1(%rbp), %al addq $0xd0, %rsp popq %rbp retq callq 0x29230 nopw %cs:(%rax,%rax) nop
_ma_log_compact_keypage: push rbp mov rbp, rsp sub rsp, 0D0h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_30], rdi mov [rbp+var_38], rsi mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_88], rax mov rax, [rbp+var_88] mov rax, [rax] mov [rbp+var_90], rax mov rax, [rbp+var_30] mov rax, [rax+18h] mov [rbp+var_A0], rax jmp short $+2 loc_3F260: mov rax, [rbp+var_90] mov eax, [rax+7BCh] mov ecx, eax mov rax, [rbp+var_A0] xor edx, edx div rcx mov [rbp+var_A0], rax lea rax, [rbp+var_20] add rax, 2 mov [rbp+var_A8], rax mov rax, [rbp+var_A0] mov ecx, eax mov rax, [rbp+var_A8] mov [rax], ecx mov rax, [rbp+var_A0] shr rax, 20h mov cl, al mov rax, [rbp+var_A8] mov [rax+4], cl lea rax, [rbp+var_20] add rax, 2 add rax, 5 mov [rbp+var_48], rax mov rax, [rbp+var_48] mov byte ptr [rax], 0Bh mov rax, [rbp+var_48] add rax, 1 mov [rbp+var_B0], rax mov rax, [rbp+var_38] mov ecx, eax mov rax, [rbp+var_B0] mov [rax], ecx mov rax, [rbp+var_38] shr rax, 20h mov cx, ax mov rax, [rbp+var_B0] mov [rax+4], cx mov rax, [rbp+var_48] add rax, 7 mov [rbp+var_48], rax lea rax, [rbp+var_20] mov [rbp+var_60], rax mov rax, [rbp+var_48] lea rcx, [rbp+var_20] sub rax, rcx mov eax, eax mov [rbp+var_58], rax mov [rbp+var_94], 1 mov [rbp+var_98], 0 mov rax, [rbp+var_30] mov ecx, [rax+20h] mov rax, [rbp+var_30] mov [rax+24h], ecx mov rax, [rbp+var_88] mov rdx, [rax+8] mov rcx, [rbp+var_88] mov rax, [rbp+var_58] mov esi, [rbp+var_98] add rax, rsi mov r8d, eax mov r9d, [rbp+var_94] add r9d, 2 lea r10, [rbp+var_80] lea rax, [rbp+var_20] lea rdi, [rbp+var_40] mov esi, 0Ch xor r11d, r11d mov [rsp+0D0h+var_D0], r10 mov [rsp+0D0h+var_C8], rax mov [rsp+0D0h+var_C0], 0 call translog_write_record cmp al, 0 jz short loc_3F3B0 jmp short $+2 loc_3F3AA: mov [rbp+var_21], 1 jmp short loc_3F3B6 loc_3F3B0: jmp short $+2 loc_3F3B2: mov [rbp+var_21], 0 loc_3F3B6: mov al, [rbp+var_21] mov [rbp+var_B1], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_3F3E0 mov al, [rbp+var_B1] add rsp, 0D0h pop rbp retn loc_3F3E0: call ___stack_chk_fail
bool ma_log_compact_keypage(long long *a1, long long a2) { unsigned long long v3; // [rsp+30h] [rbp-A0h] long long v4; // [rsp+48h] [rbp-88h] _BYTE v5[32]; // [rsp+50h] [rbp-80h] BYREF _BYTE *v6; // [rsp+70h] [rbp-60h] long long v7; // [rsp+78h] [rbp-58h] _BYTE *v8; // [rsp+88h] [rbp-48h] char v9; // [rsp+90h] [rbp-40h] BYREF long long v10; // [rsp+98h] [rbp-38h] long long *v11; // [rsp+A0h] [rbp-30h] _BYTE v12[2]; // [rsp+B0h] [rbp-20h] BYREF int v13; // [rsp+B2h] [rbp-1Eh] char v14; // [rsp+B6h] [rbp-1Ah] char v15; // [rsp+B7h] [rbp-19h] int v16; // [rsp+B8h] [rbp-18h] __int16 v17; // [rsp+BCh] [rbp-14h] _BYTE v18[18]; // [rsp+BEh] [rbp-12h] BYREF long long savedregs; // [rsp+D0h] [rbp+0h] BYREF *(_QWORD *)&v18[10] = __readfsqword(0x28u); v11 = a1; v10 = a2; v4 = *a1; v3 = a1[3] / (unsigned long long)*(unsigned int *)(*(_QWORD *)*a1 + 1980LL); v13 = v3; v14 = BYTE4(v3); v15 = 11; v16 = a2; v17 = WORD2(a2); v8 = v18; v6 = v12; v7 = (unsigned int)v18 - ((unsigned int)&savedregs - 32); *((_DWORD *)a1 + 9) = *((_DWORD *)a1 + 8); return (unsigned __int8)translog_write_record( (unsigned int)&v9, 12, *(_QWORD *)(v4 + 8), v4, v7, 3, (long long)v5, (long long)v12, 0LL) != 0; }
_ma_log_compact_keypage: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x30],RDI MOV qword ptr [RBP + -0x38],RSI MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x88] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0xa0],RAX JMP 0x0013f260 LAB_0013f260: MOV RAX,qword ptr [RBP + -0x90] MOV EAX,dword ptr [RAX + 0x7bc] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0xa0] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0xa0],RAX LEA RAX,[RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0xa8],RAX MOV RAX,qword ptr [RBP + -0xa0] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0xa8] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0xa0] SHR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0xa8] MOV byte ptr [RAX + 0x4],CL LEA RAX,[RBP + -0x20] ADD RAX,0x2 ADD RAX,0x5 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x48] MOV byte ptr [RAX],0xb MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x1 MOV qword ptr [RBP + -0xb0],RAX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0xb0] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x38] SHR RAX,0x20 MOV CX,AX MOV RAX,qword ptr [RBP + -0xb0] MOV word ptr [RAX + 0x4],CX MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x7 MOV qword ptr [RBP + -0x48],RAX LEA RAX,[RBP + -0x20] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x48] LEA RCX,[RBP + -0x20] SUB RAX,RCX MOV EAX,EAX MOV qword ptr [RBP + -0x58],RAX MOV dword ptr [RBP + -0x94],0x1 MOV dword ptr [RBP + -0x98],0x0 MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX + 0x24],ECX MOV RAX,qword ptr [RBP + -0x88] MOV RDX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x88] MOV RAX,qword ptr [RBP + -0x58] MOV ESI,dword ptr [RBP + -0x98] ADD RAX,RSI MOV R8D,EAX MOV R9D,dword ptr [RBP + -0x94] ADD R9D,0x2 LEA R10,[RBP + -0x80] LEA RAX,[RBP + -0x20] LEA RDI,[RBP + -0x40] MOV ESI,0xc XOR R11D,R11D MOV qword ptr [RSP],R10 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],0x0 CALL 0x0018d5f0 CMP AL,0x0 JZ 0x0013f3b0 JMP 0x0013f3aa LAB_0013f3aa: MOV byte ptr [RBP + -0x21],0x1 JMP 0x0013f3b6 LAB_0013f3b0: JMP 0x0013f3b2 LAB_0013f3b2: MOV byte ptr [RBP + -0x21],0x0 LAB_0013f3b6: MOV AL,byte ptr [RBP + -0x21] MOV byte ptr [RBP + -0xb1],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0013f3e0 MOV AL,byte ptr [RBP + -0xb1] ADD RSP,0xd0 POP RBP RET LAB_0013f3e0: CALL 0x00129230
int8 _ma_log_compact_keypage(long *param_1,int8 param_2) { long *plVar1; char cVar2; uint uVar3; ulong uVar4; long in_FS_OFFSET; int1 local_88 [32]; int1 *local_68; ulong local_60; int1 *local_50; int1 local_48 [8]; int8 local_40; long *local_38; int1 local_29; int1 local_28 [2]; int4 local_26; int1 local_22; int1 local_21; int4 local_20; int2 local_1c; int1 auStack_1a [10]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); plVar1 = (long *)*param_1; uVar4 = (ulong)param_1[3] / (ulong)*(uint *)(*plVar1 + 0x7bc); local_26 = (int4)uVar4; local_22 = (int1)(uVar4 >> 0x20); local_21 = 0xb; local_20 = (int4)param_2; local_1c = (int2)((ulong)param_2 >> 0x20); local_50 = auStack_1a; local_68 = local_28; uVar3 = (int)local_50 - (int)local_28; local_60 = (ulong)uVar3; *(int *)((long)param_1 + 0x24) = (int)param_1[4]; local_40 = param_2; local_38 = param_1; cVar2 = translog_write_record(local_48,0xc,plVar1[1],plVar1,uVar3,3,local_88,local_28,0); local_29 = cVar2 != '\0'; if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_29); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
38,924
mi_get_pack_key
eloqsql/storage/myisam/mi_search.c
uint _mi_get_pack_key(register MI_KEYDEF *keyinfo, uint nod_flag, register uchar **page_pos, register uchar *key) { reg1 HA_KEYSEG *keyseg; uchar *start_key,*page=*page_pos; uint length; start_key=key; for (keyseg=keyinfo->seg ; keyseg->type ;keyseg++) { if (keyseg->flag & HA_PACK_KEY) { /* key with length, packed to previous key */ uchar *start=key; uint packed= *page & 128,tot_length,rest_length; if (keyseg->length >= 127) { length=mi_uint2korr(page) & 32767; page+=2; } else length= *page++ & 127; if (packed) { if (length > (uint) keyseg->length) { mi_print_error(keyinfo->share, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; return 0; /* Error */ } if (length == 0) /* Same key */ { if (keyseg->flag & HA_NULL_PART) *key++=1; /* Can't be NULL */ get_key_length(length,key); key+= length; /* Same diff_key as prev */ if (length > keyseg->length) { DBUG_PRINT("error", ("Found too long null packed key: %u of %u at %p", length, keyseg->length, *page_pos)); DBUG_DUMP("key", *page_pos, 16); mi_print_error(keyinfo->share, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; return 0; } continue; } if (keyseg->flag & HA_NULL_PART) { key++; /* Skip null marker*/ start++; } get_key_length(rest_length,page); tot_length=rest_length+length; /* If the stored length has changed, we must move the key */ if (tot_length >= 255 && *start != 255) { /* length prefix changed from a length of one to a length of 3 */ bmove_upp(key+length+3, key+length+1, length); *key=255; mi_int2store(key+1,tot_length); key+=3+length; } else if (tot_length < 255 && *start == 255) { bmove(key+1,key+3,length); *key=tot_length; key+=1+length; } else { store_key_length_inc(key,tot_length); key+=length; } memcpy(key,page,rest_length); page+=rest_length; key+=rest_length; continue; } else { if (keyseg->flag & HA_NULL_PART) { if (!length--) /* Null part */ { *key++=0; continue; } *key++=1; /* Not null */ } } if (length > (uint) keyseg->length) { DBUG_PRINT("error",("Found too long packed key: %u of %u at %p", length, keyseg->length, *page_pos)); DBUG_DUMP("key", *page_pos, 16); mi_print_error(keyinfo->share, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; return 0; /* Error */ } store_key_length_inc(key,length); } else { if (keyseg->flag & HA_NULL_PART) { if (!(*key++ = *page++)) continue; } if (keyseg->flag & (HA_VAR_LENGTH_PART | HA_BLOB_PART | HA_SPACE_PACK)) { uchar *tmp=page; get_key_length(length,tmp); length+=(uint) (tmp-page); } else length=keyseg->length; } memcpy((uchar*) key,(uchar*) page,(size_t) length); key+=length; page+=length; } length=keyseg->length+nod_flag; bmove((uchar*) key,(uchar*) page,length); *page_pos= page+length; return ((uint) (key-start_key)+keyseg->length); }
O3
c
mi_get_pack_key: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rcx, %rbx movl %esi, -0x44(%rbp) movq %rdx, -0x50(%rbp) movq (%rdx), %r15 movq 0x28(%rdi), %r12 cmpb $0x0, 0x18(%r12) movq %rcx, -0x58(%rbp) je 0x8563e movq %rdi, -0x30(%rbp) movzwl 0x12(%r12), %ecx movzwl %cx, %edx testb $0x2, %dl jne 0x85424 testb $0x10, %dl je 0x85401 movb (%r15), %al incq %r15 movb %al, (%rbx) incq %rbx testb %al, %al je 0x854fa movzwl 0x12(%r12), %ecx testb $0x29, %cl je 0x854b9 movzbl (%r15), %ecx cmpl $0xff, %ecx je 0x854d0 movl $0x1, %eax jmp 0x854e1 movzbl (%r15), %edi movzwl 0x14(%r12), %esi cmpl $0x7f, %esi jb 0x85449 movzbl 0x1(%r15), %r8d movl %edi, %eax andl $0x7f, %eax shll $0x8, %eax orl %r8d, %eax addq $0x2, %r15 jmp 0x85451 incq %r15 movl %edi, %eax andl $0x7f, %eax testb %dil, %dil js 0x8548a testb $0x10, %cl je 0x85471 testl %eax, %eax je 0x85536 decl %eax movb $0x1, (%rbx) incq %rbx movzwl 0x14(%r12), %esi movzwl %si, %ecx cmpl %ecx, %eax ja 0x8566e cmpl $0xfe, %eax ja 0x854c1 movb %al, (%rbx) incq %rbx jmp 0x854e3 cmpl %esi, %eax ja 0x8566e testl %eax, %eax je 0x85513 btl $0x4, %edx adcq $0x0, %rbx movzbl (%r15), %r14d cmpl $0xff, %r14d je 0x8553e movl $0x1, %esi jmp 0x85550 movzwl 0x14(%r12), %eax jmp 0x854e3 movb $-0x1, (%rbx) movb %al, 0x2(%rbx) movb %ah, 0x1(%rbx) addq $0x3, %rbx jmp 0x854e3 movzwl 0x1(%r15), %eax rolw $0x8, %ax movzwl %ax, %ecx movl $0x3, %eax addl %ecx, %eax movl %eax, %r13d movq %rbx, %rdi movq %r15, %rsi movq %r13, %rdx callq 0x29080 addq %r13, %rbx addq %r13, %r15 leaq 0x20(%r12), %r14 cmpb $0x0, 0x38(%r12) movq %r14, %r12 jne 0x853d5 jmp 0x85641 testb $0x10, %cl je 0x8551e movb $0x1, (%rbx) incq %rbx movzbl (%rbx), %eax cmpl $0xff, %eax je 0x855ad movl $0x1, %ecx jmp 0x855bd movb $0x0, (%rbx) incq %rbx jmp 0x854fa movzwl 0x1(%r15), %ecx rolw $0x8, %cx movzwl %cx, %r14d movl $0x3, %esi leal (%r14,%rax), %ecx movb (%rbx), %dl cmpl $0xff, %ecx jb 0x8559b cmpb $-0x1, %dl je 0x855d8 movl %eax, %edx leaq (%rbx,%rdx), %r13 addq $0x3, %r13 movq %rsi, -0x40(%rbp) leaq (%rbx,%rdx), %rsi incq %rsi movq %r13, %rdi movl %ecx, -0x38(%rbp) callq 0xaac70 movq -0x40(%rbp), %rsi movb $-0x1, (%rbx) movl -0x38(%rbp), %eax movb %al, 0x2(%rbx) movb %ah, 0x1(%rbx) movq %r13, %rbx jmp 0x8561f movl %ecx, %r13d movl $0x1, %ecx cmpb $-0x1, %dl je 0x855f7 movq %rbx, %rdx jmp 0x855ea movzwl 0x1(%rbx), %eax rolw $0x8, %ax movzwl %ax, %eax movl $0x3, %ecx movzwl 0x14(%r12), %edx cmpl %edx, %eax ja 0x8566e addq %rcx, %rbx movl %eax, %eax addq %rax, %rbx jmp 0x854fa leaq 0x1(%rbx), %rdx movb %cl, 0x2(%rbx) shrl $0x8, %ecx movl %ecx, %r13d movl $0x3, %ecx movb %r13b, (%rdx) movl %eax, %eax addq %rcx, %rax addq %rax, %rbx jmp 0x8561f leaq 0x1(%rbx), %rdi movq %rsi, -0x40(%rbp) leaq 0x3(%rbx), %rsi movl %eax, %edx movq %rdx, -0x38(%rbp) callq 0x29110 movq -0x40(%rbp), %rsi movb %r13b, (%rbx) movq -0x38(%rbp), %rax addq %rax, %rbx incq %rbx addq %rsi, %r15 movl %r14d, %r13d movq %rbx, %rdi movq %r15, %rsi movq %r13, %rdx callq 0x29080 addq %r13, %r15 addq %r13, %rbx jmp 0x854fa movq %r12, %r14 movzwl 0x14(%r14), %r13d addl -0x44(%rbp), %r13d movq %rbx, %rdi movq %r15, %rsi movq %r13, %rdx callq 0x29110 addq %r13, %r15 movq -0x50(%rbp), %rax movq %r15, (%rax) subl -0x58(%rbp), %ebx movzwl 0x14(%r14), %eax addl %ebx, %eax jmp 0x85693 movq -0x30(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0x7adae callq 0xa1b26 movl $0x7e, (%rax) xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_mi_get_pack_key: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov rbx, rcx mov [rbp+var_44], esi mov [rbp+var_50], rdx mov r15, [rdx] mov r12, [rdi+28h] cmp byte ptr [r12+18h], 0 mov [rbp+var_58], rcx jz loc_8563E mov [rbp+var_30], rdi loc_853D5: movzx ecx, word ptr [r12+12h] movzx edx, cx test dl, 2 jnz short loc_85424 test dl, 10h jz short loc_85401 mov al, [r15] inc r15 mov [rbx], al inc rbx test al, al jz loc_854FA movzx ecx, word ptr [r12+12h] loc_85401: test cl, 29h jz loc_854B9 movzx ecx, byte ptr [r15] cmp ecx, 0FFh jz loc_854D0 mov eax, 1 jmp loc_854E1 loc_85424: movzx edi, byte ptr [r15] movzx esi, word ptr [r12+14h] cmp esi, 7Fh jb short loc_85449 movzx r8d, byte ptr [r15+1] mov eax, edi and eax, 7Fh shl eax, 8 or eax, r8d add r15, 2 jmp short loc_85451 loc_85449: inc r15 mov eax, edi and eax, 7Fh loc_85451: test dil, dil js short loc_8548A test cl, 10h jz short loc_85471 test eax, eax jz loc_85536 dec eax mov byte ptr [rbx], 1 inc rbx movzx esi, word ptr [r12+14h] loc_85471: movzx ecx, si cmp eax, ecx ja loc_8566E cmp eax, 0FEh ja short loc_854C1 mov [rbx], al inc rbx jmp short loc_854E3 loc_8548A: cmp eax, esi ja loc_8566E test eax, eax jz short loc_85513 bt edx, 4 adc rbx, 0 movzx r14d, byte ptr [r15] cmp r14d, 0FFh jz loc_8553E mov esi, 1 jmp loc_85550 loc_854B9: movzx eax, word ptr [r12+14h] jmp short loc_854E3 loc_854C1: mov byte ptr [rbx], 0FFh mov [rbx+2], al mov [rbx+1], ah add rbx, 3 jmp short loc_854E3 loc_854D0: movzx eax, word ptr [r15+1] rol ax, 8 movzx ecx, ax mov eax, 3 loc_854E1: add eax, ecx loc_854E3: mov r13d, eax mov rdi, rbx mov rsi, r15 mov rdx, r13 call _memcpy add rbx, r13 add r15, r13 loc_854FA: lea r14, [r12+20h] cmp byte ptr [r12+38h], 0 mov r12, r14 jnz loc_853D5 jmp loc_85641 loc_85513: test cl, 10h jz short loc_8551E mov byte ptr [rbx], 1 inc rbx loc_8551E: movzx eax, byte ptr [rbx] cmp eax, 0FFh jz loc_855AD mov ecx, 1 jmp loc_855BD loc_85536: mov byte ptr [rbx], 0 inc rbx jmp short loc_854FA loc_8553E: movzx ecx, word ptr [r15+1] rol cx, 8 movzx r14d, cx mov esi, 3 loc_85550: lea ecx, [r14+rax] mov dl, [rbx] cmp ecx, 0FFh jb short loc_8559B cmp dl, 0FFh jz short loc_855D8 mov edx, eax lea r13, [rbx+rdx] add r13, 3 mov [rbp+var_40], rsi lea rsi, [rbx+rdx] inc rsi mov rdi, r13 mov dword ptr [rbp+var_38], ecx call bmove_upp mov rsi, [rbp+var_40] mov byte ptr [rbx], 0FFh mov eax, dword ptr [rbp+var_38] mov [rbx+2], al mov [rbx+1], ah mov rbx, r13 jmp loc_8561F loc_8559B: mov r13d, ecx mov ecx, 1 cmp dl, 0FFh jz short loc_855F7 mov rdx, rbx jmp short loc_855EA loc_855AD: movzx eax, word ptr [rbx+1] rol ax, 8 movzx eax, ax mov ecx, 3 loc_855BD: movzx edx, word ptr [r12+14h] cmp eax, edx ja loc_8566E add rbx, rcx mov eax, eax add rbx, rax jmp loc_854FA loc_855D8: lea rdx, [rbx+1] mov [rbx+2], cl shr ecx, 8 mov r13d, ecx mov ecx, 3 loc_855EA: mov [rdx], r13b mov eax, eax add rax, rcx add rbx, rax jmp short loc_8561F loc_855F7: lea rdi, [rbx+1] mov [rbp+var_40], rsi lea rsi, [rbx+3] mov edx, eax mov [rbp+var_38], rdx call _memmove mov rsi, [rbp+var_40] mov [rbx], r13b mov rax, [rbp+var_38] add rbx, rax inc rbx loc_8561F: add r15, rsi mov r13d, r14d mov rdi, rbx mov rsi, r15 mov rdx, r13 call _memcpy add r15, r13 add rbx, r13 jmp loc_854FA loc_8563E: mov r14, r12 loc_85641: movzx r13d, word ptr [r14+14h] add r13d, [rbp+var_44] mov rdi, rbx mov rsi, r15 mov rdx, r13 call _memmove add r15, r13 mov rax, [rbp+var_50] mov [rax], r15 sub ebx, dword ptr [rbp+var_58] movzx eax, word ptr [r14+14h] add eax, ebx jmp short loc_85693 loc_8566E: mov rax, [rbp+var_30] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' xor eax, eax loc_85693: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mi_get_pack_key(_QWORD *a1, int a2, unsigned __int8 **a3, unsigned __int8 *a4) { unsigned __int8 *v4; // rbx unsigned __int8 *v5; // r15 long long v6; // r12 __int16 v7; // cx unsigned __int8 v8; // al int v9; // ecx int v10; // eax char v11; // di unsigned int v12; // esi unsigned int v13; // eax unsigned __int8 *v14; // rbx unsigned int v15; // r14d long long v16; // rsi long long v17; // r13 long long v18; // r14 bool v19; // zf unsigned int v20; // eax long long v21; // rcx unsigned __int8 v22; // dl long long v23; // r13 long long v24; // rbx unsigned __int8 v25; // r13 long long v26; // rcx unsigned __int8 *v27; // rdx unsigned __int8 *v28; // r15 long long v29; // r13 int v31; // [rsp+8h] [rbp-58h] __int16 v34; // [rsp+28h] [rbp-38h] long long v35; // [rsp+28h] [rbp-38h] v4 = a4; v5 = *a3; v6 = a1[5]; v31 = (int)a4; if ( *(_BYTE *)(v6 + 24) ) { while ( 1 ) { v7 = *(_WORD *)(v6 + 18); if ( (v7 & 2) != 0 ) { v11 = *v5; v12 = *(unsigned __int16 *)(v6 + 20); if ( v12 < 0x7F ) { ++v5; v13 = v11 & 0x7F; } else { v13 = v5[1] | ((v11 & 0x7F) << 8); v5 += 2; } if ( v11 >= 0 ) { if ( (v7 & 0x10) != 0 ) { if ( !v13 ) { *v4++ = 0; goto LABEL_28; } --v13; *v4++ = 1; LOWORD(v12) = *(_WORD *)(v6 + 20); } if ( v13 > (unsigned __int16)v12 ) goto LABEL_50; if ( v13 > 0xFE ) { *v4 = -1; v4[2] = v13; v4[1] = BYTE1(v13); v4 += 3; } else { *v4++ = v13; } goto LABEL_27; } if ( v13 > v12 ) goto LABEL_50; if ( v13 ) { v14 = &v4[(v7 & 0x10) != 0]; v15 = *v5; if ( v15 == 255 ) { v15 = (unsigned __int16)__ROL2__(*(_WORD *)(v5 + 1), 8); v16 = 3LL; } else { v16 = 1LL; } v22 = *v14; if ( v15 + v13 < 0xFF ) { v25 = v15 + v13; v26 = 1LL; if ( v22 == 0xFF ) { v35 = v13; memmove(v14 + 1, v14 + 3, v13); *v14 = v25; v24 = (long long)&v14[v35 + 1]; goto LABEL_47; } v27 = v14; } else { if ( v22 != 0xFF ) { v23 = (long long)&v14[v13 + 3]; v34 = v15 + v13; bmove_upp(v23, &v14[v13 + 1], v13); *v14 = -1; v14[2] = v34; v14[1] = HIBYTE(v34); v24 = v23; LABEL_47: v28 = &v5[v16]; memcpy(v24, v28, v15); v5 = &v28[v15]; v4 = (unsigned __int8 *)(v15 + v24); goto LABEL_28; } v27 = v14 + 1; v14[2] = v15 + v13; v25 = (unsigned __int16)(v15 + v13) >> 8; v26 = 3LL; } *v27 = v25; v24 = (long long)&v14[v26 + v13]; goto LABEL_47; } if ( (v7 & 0x10) != 0 ) *v4++ = 1; v20 = *v4; if ( v20 == 255 ) { v20 = (unsigned __int16)__ROL2__(*(_WORD *)(v4 + 1), 8); v21 = 3LL; } else { v21 = 1LL; } if ( v20 > *(unsigned __int16 *)(v6 + 20) ) { LABEL_50: mi_report_error(126, *(_QWORD *)(*a1 + 616LL)); *(_DWORD *)my_thread_var(126LL) = 126; return 0LL; } v4 += v20 + v21; } else { if ( (v7 & 0x10) == 0 ) goto LABEL_6; v8 = *v5++; *v4++ = v8; if ( v8 ) { v7 = *(_WORD *)(v6 + 18); LABEL_6: if ( (v7 & 0x29) != 0 ) { v9 = *v5; if ( v9 == 255 ) { v9 = (unsigned __int16)__ROL2__(*(_WORD *)(v5 + 1), 8); v10 = 3; } else { v10 = 1; } v13 = v9 + v10; } else { v13 = *(unsigned __int16 *)(v6 + 20); } LABEL_27: v17 = v13; memcpy(v4, v5, v13); v4 += v17; v5 += v17; } } LABEL_28: v18 = v6 + 32; v19 = *(_BYTE *)(v6 + 56) == 0; v6 += 32LL; if ( v19 ) goto LABEL_49; } } v18 = a1[5]; LABEL_49: v29 = a2 + (unsigned int)*(unsigned __int16 *)(v18 + 20); memmove(v4, v5, v29); *a3 = &v5[v29]; return (_DWORD)v4 - v31 + (unsigned int)*(unsigned __int16 *)(v18 + 20); }
_mi_get_pack_key: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV RBX,RCX MOV dword ptr [RBP + -0x44],ESI MOV qword ptr [RBP + -0x50],RDX MOV R15,qword ptr [RDX] MOV R12,qword ptr [RDI + 0x28] CMP byte ptr [R12 + 0x18],0x0 MOV qword ptr [RBP + -0x58],RCX JZ 0x0018563e MOV qword ptr [RBP + -0x30],RDI LAB_001853d5: MOVZX ECX,word ptr [R12 + 0x12] MOVZX EDX,CX TEST DL,0x2 JNZ 0x00185424 TEST DL,0x10 JZ 0x00185401 MOV AL,byte ptr [R15] INC R15 MOV byte ptr [RBX],AL INC RBX TEST AL,AL JZ 0x001854fa MOVZX ECX,word ptr [R12 + 0x12] LAB_00185401: TEST CL,0x29 JZ 0x001854b9 MOVZX ECX,byte ptr [R15] CMP ECX,0xff JZ 0x001854d0 MOV EAX,0x1 JMP 0x001854e1 LAB_00185424: MOVZX EDI,byte ptr [R15] MOVZX ESI,word ptr [R12 + 0x14] CMP ESI,0x7f JC 0x00185449 MOVZX R8D,byte ptr [R15 + 0x1] MOV EAX,EDI AND EAX,0x7f SHL EAX,0x8 OR EAX,R8D ADD R15,0x2 JMP 0x00185451 LAB_00185449: INC R15 MOV EAX,EDI AND EAX,0x7f LAB_00185451: TEST DIL,DIL JS 0x0018548a TEST CL,0x10 JZ 0x00185471 TEST EAX,EAX JZ 0x00185536 DEC EAX MOV byte ptr [RBX],0x1 INC RBX MOVZX ESI,word ptr [R12 + 0x14] LAB_00185471: MOVZX ECX,SI CMP EAX,ECX JA 0x0018566e CMP EAX,0xfe JA 0x001854c1 MOV byte ptr [RBX],AL INC RBX JMP 0x001854e3 LAB_0018548a: CMP EAX,ESI JA 0x0018566e TEST EAX,EAX JZ 0x00185513 BT EDX,0x4 ADC RBX,0x0 MOVZX R14D,byte ptr [R15] CMP R14D,0xff JZ 0x0018553e MOV ESI,0x1 JMP 0x00185550 LAB_001854b9: MOVZX EAX,word ptr [R12 + 0x14] JMP 0x001854e3 LAB_001854c1: MOV byte ptr [RBX],0xff MOV byte ptr [RBX + 0x2],AL MOV byte ptr [RBX + 0x1],AH ADD RBX,0x3 JMP 0x001854e3 LAB_001854d0: MOVZX EAX,word ptr [R15 + 0x1] ROL AX,0x8 MOVZX ECX,AX MOV EAX,0x3 LAB_001854e1: ADD EAX,ECX LAB_001854e3: MOV R13D,EAX MOV RDI,RBX MOV RSI,R15 MOV RDX,R13 CALL 0x00129080 ADD RBX,R13 ADD R15,R13 LAB_001854fa: LEA R14,[R12 + 0x20] CMP byte ptr [R12 + 0x38],0x0 MOV R12,R14 JNZ 0x001853d5 JMP 0x00185641 LAB_00185513: TEST CL,0x10 JZ 0x0018551e MOV byte ptr [RBX],0x1 INC RBX LAB_0018551e: MOVZX EAX,byte ptr [RBX] CMP EAX,0xff JZ 0x001855ad MOV ECX,0x1 JMP 0x001855bd LAB_00185536: MOV byte ptr [RBX],0x0 INC RBX JMP 0x001854fa LAB_0018553e: MOVZX ECX,word ptr [R15 + 0x1] ROL CX,0x8 MOVZX R14D,CX MOV ESI,0x3 LAB_00185550: LEA ECX,[R14 + RAX*0x1] MOV DL,byte ptr [RBX] CMP ECX,0xff JC 0x0018559b CMP DL,0xff JZ 0x001855d8 MOV EDX,EAX LEA R13,[RBX + RDX*0x1] ADD R13,0x3 MOV qword ptr [RBP + -0x40],RSI LEA RSI,[RBX + RDX*0x1] INC RSI MOV RDI,R13 MOV dword ptr [RBP + -0x38],ECX CALL 0x001aac70 MOV RSI,qword ptr [RBP + -0x40] MOV byte ptr [RBX],0xff MOV EAX,dword ptr [RBP + -0x38] MOV byte ptr [RBX + 0x2],AL MOV byte ptr [RBX + 0x1],AH MOV RBX,R13 JMP 0x0018561f LAB_0018559b: MOV R13D,ECX MOV ECX,0x1 CMP DL,0xff JZ 0x001855f7 MOV RDX,RBX JMP 0x001855ea LAB_001855ad: MOVZX EAX,word ptr [RBX + 0x1] ROL AX,0x8 MOVZX EAX,AX MOV ECX,0x3 LAB_001855bd: MOVZX EDX,word ptr [R12 + 0x14] CMP EAX,EDX JA 0x0018566e ADD RBX,RCX MOV EAX,EAX ADD RBX,RAX JMP 0x001854fa LAB_001855d8: LEA RDX,[RBX + 0x1] MOV byte ptr [RBX + 0x2],CL SHR ECX,0x8 MOV R13D,ECX MOV ECX,0x3 LAB_001855ea: MOV byte ptr [RDX],R13B MOV EAX,EAX ADD RAX,RCX ADD RBX,RAX JMP 0x0018561f LAB_001855f7: LEA RDI,[RBX + 0x1] MOV qword ptr [RBP + -0x40],RSI LEA RSI,[RBX + 0x3] MOV EDX,EAX MOV qword ptr [RBP + -0x38],RDX CALL 0x00129110 MOV RSI,qword ptr [RBP + -0x40] MOV byte ptr [RBX],R13B MOV RAX,qword ptr [RBP + -0x38] ADD RBX,RAX INC RBX LAB_0018561f: ADD R15,RSI MOV R13D,R14D MOV RDI,RBX MOV RSI,R15 MOV RDX,R13 CALL 0x00129080 ADD R15,R13 ADD RBX,R13 JMP 0x001854fa LAB_0018563e: MOV R14,R12 LAB_00185641: MOVZX R13D,word ptr [R14 + 0x14] ADD R13D,dword ptr [RBP + -0x44] MOV RDI,RBX MOV RSI,R15 MOV RDX,R13 CALL 0x00129110 ADD R15,R13 MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX],R15 SUB EBX,dword ptr [RBP + -0x58] MOVZX EAX,word ptr [R14 + 0x14] ADD EAX,EBX JMP 0x00185693 LAB_0018566e: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x0017adae CALL 0x001a1b26 MOV dword ptr [RAX],0x7e XOR EAX,EAX LAB_00185693: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int _mi_get_pack_key(long *param_1,int param_2,int8 *param_3,byte *param_4) { uint uVar1; char cVar2; ushort uVar3; ushort uVar4; long lVar5; int iVar6; uint uVar7; int4 *puVar8; long lVar9; byte *pbVar10; long lVar11; byte bVar12; byte bVar13; ulong uVar14; byte *pbVar15; uint uVar16; byte *__src; int local_60; __src = (byte *)*param_3; cVar2 = *(char *)(param_1[5] + 0x18); lVar5 = param_1[5]; pbVar10 = param_4; do { if (cVar2 == '\0') { uVar14 = (ulong)((uint)*(ushort *)(lVar5 + 0x14) + param_2); memmove(pbVar10,__src,uVar14); *param_3 = __src + uVar14; local_60 = (int)param_4; return (uint)*(ushort *)(lVar5 + 0x14) + ((int)pbVar10 - local_60); } uVar3 = *(ushort *)(lVar5 + 0x12); if ((uVar3 & 2) == 0) { if ((uVar3 & 0x10) != 0) { bVar13 = *__src; __src = __src + 1; *pbVar10 = bVar13; pbVar10 = pbVar10 + 1; if (bVar13 == 0) goto LAB_001854fa; uVar3 = *(ushort *)(lVar5 + 0x12); } if ((uVar3 & 0x29) == 0) { uVar7 = (uint)*(ushort *)(lVar5 + 0x14); } else { uVar7 = (uint)*__src; if (*__src == 0xff) { uVar7 = (uint)(ushort)(*(ushort *)(__src + 1) << 8 | *(ushort *)(__src + 1) >> 8); iVar6 = 3; } else { iVar6 = 1; } uVar7 = iVar6 + uVar7; } LAB_001854e3: uVar14 = (ulong)uVar7; memcpy(pbVar10,__src,uVar14); pbVar10 = pbVar10 + uVar14; __src = __src + uVar14; } else { bVar13 = *__src; uVar4 = *(ushort *)(lVar5 + 0x14); if (uVar4 < 0x7f) { __src = __src + 1; uVar7 = bVar13 & 0x7f; } else { uVar7 = (bVar13 & 0x7f) << 8 | (uint)__src[1]; __src = __src + 2; } if (-1 < (char)bVar13) { if ((uVar3 & 0x10) != 0) { if (uVar7 == 0) { *pbVar10 = 0; pbVar10 = pbVar10 + 1; goto LAB_001854fa; } uVar7 = uVar7 - 1; *pbVar10 = 1; pbVar10 = pbVar10 + 1; uVar4 = *(ushort *)(lVar5 + 0x14); } if (uVar4 < uVar7) { LAB_0018566e: mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268)); puVar8 = (int4 *)_my_thread_var(); *puVar8 = 0x7e; return 0; } if (uVar7 < 0xff) { *pbVar10 = (byte)uVar7; pbVar10 = pbVar10 + 1; } else { *pbVar10 = 0xff; pbVar10[2] = (byte)uVar7; pbVar10[1] = (byte)(uVar7 >> 8); pbVar10 = pbVar10 + 3; } goto LAB_001854e3; } if (uVar4 <= uVar7 && uVar7 != uVar4) goto LAB_0018566e; if (uVar7 == 0) { if ((uVar3 & 0x10) != 0) { *pbVar10 = 1; pbVar10 = pbVar10 + 1; } uVar7 = (uint)*pbVar10; if (*pbVar10 == 0xff) { uVar7 = (uint)(ushort)(*(ushort *)(pbVar10 + 1) << 8 | *(ushort *)(pbVar10 + 1) >> 8); lVar11 = 3; } else { lVar11 = 1; } if (*(ushort *)(lVar5 + 0x14) < uVar7) goto LAB_0018566e; pbVar10 = pbVar10 + (ulong)uVar7 + lVar11; goto LAB_001854fa; } pbVar10 = pbVar10 + ((uVar3 >> 4 & 1) != 0); uVar16 = (uint)*__src; if (uVar16 == 0xff) { uVar16 = (uint)(ushort)(*(ushort *)(__src + 1) << 8 | *(ushort *)(__src + 1) >> 8); lVar11 = 3; } else { lVar11 = 1; } uVar1 = uVar16 + uVar7; bVar13 = (byte)uVar1; if (uVar1 < 0xff) { lVar9 = 1; pbVar15 = pbVar10; if (*pbVar10 != 0xff) goto LAB_001855ea; memmove(pbVar10 + 1,pbVar10 + 3,(ulong)uVar7); *pbVar10 = bVar13; pbVar15 = pbVar10 + (ulong)uVar7 + 1; } else { bVar12 = (byte)(uVar1 >> 8); if (*pbVar10 == 0xff) { pbVar10[2] = bVar13; lVar9 = 3; pbVar15 = pbVar10 + 1; bVar13 = bVar12; LAB_001855ea: *pbVar15 = bVar13; pbVar15 = pbVar10 + (ulong)uVar7 + lVar9; } else { pbVar15 = pbVar10 + (ulong)uVar7 + 3; bmove_upp(pbVar15,pbVar10 + (ulong)uVar7 + 1); *pbVar10 = 0xff; pbVar10[2] = bVar13; pbVar10[1] = bVar12; } } uVar14 = (ulong)uVar16; memcpy(pbVar15,__src + lVar11,uVar14); __src = __src + lVar11 + uVar14; pbVar10 = pbVar15 + uVar14; } LAB_001854fa: cVar2 = *(char *)(lVar5 + 0x38); lVar5 = lVar5 + 0x20; } while( true ); }
38,925
my_strnncollsp_simple
eloqsql/strings/ctype-simple.c
int my_strnncollsp_simple(CHARSET_INFO * cs, const uchar *a, size_t a_length, const uchar *b, size_t b_length) { const uchar *map= cs->sort_order, *end; size_t length; int res; end= a + (length= MY_MIN(a_length, b_length)); while (a < end) { if (map[*a++] != map[*b++]) return ((int) map[a[-1]] - (int) map[b[-1]]); } res= 0; if (a_length != b_length) { int swap= 1; /* Check the next not space character of the longer key. If it's < ' ', then it's smaller than the other key. */ if (a_length < b_length) { /* put shorter key in s */ a_length= b_length; a= b; swap= -1; /* swap sign of result */ res= -res; } for (end= a + a_length-length; a < end ; a++) { if (map[*a] != map[' ']) return (map[*a] < map[' ']) ? -swap : swap; } } return res; }
O3
c
my_strnncollsp_simple: pushq %rbp movq %rsp, %rbp movq 0x58(%rdi), %rdi cmpq %r8, %rdx movq %r8, %r9 cmovbq %rdx, %r9 leaq (%rsi,%r9), %r10 cmpq %r10, %rsi jae 0xb4aa1 movzbl (%rsi), %eax incq %rsi movzbl (%rdi,%rax), %eax movzbl (%rcx), %r11d incq %rcx movzbl (%rdi,%r11), %r11d cmpb %r11b, %al je 0xb4a7c subl %r11d, %eax jmp 0xb4af7 cmpq %r8, %rdx jne 0xb4aaa xorl %eax, %eax jmp 0xb4af7 xorl %eax, %eax cmpq %r8, %rdx cmovaq %rdx, %r8 cmovbq %rcx, %rsi movl $0x0, %ecx sbbl %ecx, %ecx leaq (%rsi,%r8), %rdx subq %r9, %rdx cmpq %rdx, %rsi jae 0xb4af7 orl $0x1, %ecx movb 0x20(%rdi), %dl subq %r9, %r8 xorl %eax, %eax movzbl (%rsi,%rax), %r9d movb (%rdi,%r9), %r9b cmpb %dl, %r9b jne 0xb4aed incq %rax cmpq %rax, %r8 jne 0xb4ad5 jmp 0xb4aa6 movl %ecx, %eax negl %eax cmpb %dl, %r9b cmovael %ecx, %eax popq %rbp retq
my_strnncollsp_simple: push rbp mov rbp, rsp mov rdi, [rdi+58h] cmp rdx, r8 mov r9, r8 cmovb r9, rdx lea r10, [rsi+r9] loc_B4A7C: cmp rsi, r10 jnb short loc_B4AA1 movzx eax, byte ptr [rsi] inc rsi movzx eax, byte ptr [rdi+rax] movzx r11d, byte ptr [rcx] inc rcx movzx r11d, byte ptr [rdi+r11] cmp al, r11b jz short loc_B4A7C sub eax, r11d jmp short loc_B4AF7 loc_B4AA1: cmp rdx, r8 jnz short loc_B4AAA loc_B4AA6: xor eax, eax jmp short loc_B4AF7 loc_B4AAA: xor eax, eax cmp rdx, r8 cmova r8, rdx cmovb rsi, rcx mov ecx, 0 sbb ecx, ecx lea rdx, [rsi+r8] sub rdx, r9 cmp rsi, rdx jnb short loc_B4AF7 or ecx, 1 mov dl, [rdi+20h] sub r8, r9 xor eax, eax loc_B4AD5: movzx r9d, byte ptr [rsi+rax] mov r9b, [rdi+r9] cmp r9b, dl jnz short loc_B4AED inc rax cmp r8, rax jnz short loc_B4AD5 jmp short loc_B4AA6 loc_B4AED: mov eax, ecx neg eax cmp r9b, dl cmovnb eax, ecx loc_B4AF7: pop rbp retn
long long my_strnncollsp_simple( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned __int8 *a4, unsigned long long a5) { long long v5; // rdi unsigned long long v6; // r9 unsigned __int8 *v7; // r10 long long v8; // rax int v9; // eax long long v10; // r11 int v11; // r11d long long result; // rax bool v13; // cf unsigned int v14; // ecx unsigned __int8 v15; // dl unsigned long long v16; // r8 long long v17; // rax unsigned __int8 v18; // r9 v5 = *(_QWORD *)(a1 + 88); v6 = a5; if ( a3 < a5 ) v6 = a3; v7 = &a2[v6]; while ( a2 < v7 ) { v8 = *a2++; v9 = *(unsigned __int8 *)(v5 + v8); v10 = *a4++; v11 = *(unsigned __int8 *)(v5 + v10); if ( (_BYTE)v9 != (_BYTE)v11 ) return (unsigned int)(v9 - v11); } if ( a3 == a5 ) return 0LL; result = 0LL; v13 = a3 < a5; if ( a3 > a5 ) a5 = a3; if ( v13 ) a2 = a4; if ( a2 < &a2[a5 - v6] ) { v14 = v13 ? -1 : 1; v15 = *(_BYTE *)(v5 + 32); v16 = a5 - v6; v17 = 0LL; while ( 1 ) { v18 = *(_BYTE *)(v5 + a2[v17]); if ( v18 != v15 ) break; if ( v16 == ++v17 ) return 0LL; } result = -v14; if ( v18 >= v15 ) return v14; } return result; }
my_strnncollsp_simple: PUSH RBP MOV RBP,RSP MOV RDI,qword ptr [RDI + 0x58] CMP RDX,R8 MOV R9,R8 CMOVC R9,RDX LEA R10,[RSI + R9*0x1] LAB_001b4a7c: CMP RSI,R10 JNC 0x001b4aa1 MOVZX EAX,byte ptr [RSI] INC RSI MOVZX EAX,byte ptr [RDI + RAX*0x1] MOVZX R11D,byte ptr [RCX] INC RCX MOVZX R11D,byte ptr [RDI + R11*0x1] CMP AL,R11B JZ 0x001b4a7c SUB EAX,R11D JMP 0x001b4af7 LAB_001b4aa1: CMP RDX,R8 JNZ 0x001b4aaa LAB_001b4aa6: XOR EAX,EAX JMP 0x001b4af7 LAB_001b4aaa: XOR EAX,EAX CMP RDX,R8 CMOVA R8,RDX CMOVC RSI,RCX MOV ECX,0x0 SBB ECX,ECX LEA RDX,[RSI + R8*0x1] SUB RDX,R9 CMP RSI,RDX JNC 0x001b4af7 OR ECX,0x1 MOV DL,byte ptr [RDI + 0x20] SUB R8,R9 XOR EAX,EAX LAB_001b4ad5: MOVZX R9D,byte ptr [RSI + RAX*0x1] MOV R9B,byte ptr [RDI + R9*0x1] CMP R9B,DL JNZ 0x001b4aed INC RAX CMP R8,RAX JNZ 0x001b4ad5 JMP 0x001b4aa6 LAB_001b4aed: MOV EAX,ECX NEG EAX CMP R9B,DL CMOVNC EAX,ECX LAB_001b4af7: POP RBP RET
uint my_strnncollsp_simple(long param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5) { byte *pbVar1; byte bVar2; byte bVar3; long lVar4; long lVar5; uint uVar6; ulong uVar7; ulong uVar8; lVar4 = *(long *)(param_1 + 0x58); uVar8 = param_5; if (param_3 < param_5) { uVar8 = param_3; } pbVar1 = param_2 + uVar8; while (param_2 < pbVar1) { bVar2 = *param_2; param_2 = param_2 + 1; bVar3 = *param_4; param_4 = param_4 + 1; if (*(byte *)(lVar4 + (ulong)bVar2) != *(byte *)(lVar4 + (ulong)bVar3)) { return (uint)*(byte *)(lVar4 + (ulong)bVar2) - (uint)*(byte *)(lVar4 + (ulong)bVar3); } } if (param_3 != param_5) { uVar7 = param_5; if (param_5 < param_3) { uVar7 = param_3; } if (param_3 < param_5) { param_2 = param_4; } if (param_2 + (uVar7 - uVar8) <= param_2) { return 0; } uVar6 = -(uint)(param_3 < param_5) | 1; lVar5 = 0; do { if (*(byte *)(lVar4 + (ulong)param_2[lVar5]) != *(byte *)(lVar4 + 0x20)) { if (*(byte *)(lVar4 + (ulong)param_2[lVar5]) < *(byte *)(lVar4 + 0x20)) { return -uVar6; } return uVar6; } lVar5 = lVar5 + 1; } while (uVar7 - uVar8 != lVar5); } return 0; }
38,926
ma_net_read
eloqsql/libmariadb/libmariadb/ma_net.c
ulong ma_net_read(NET *net) { size_t len,complen; #ifdef HAVE_COMPRESS if (!net->compress) { #endif len = ma_real_read (net,(size_t *)&complen); if (len == MAX_PACKET_LENGTH) { /* multi packet read */ size_t length= 0; ulong last_pos= net->where_b; do { length+= len; net->where_b+= (unsigned long)len; len= ma_real_read(net, &complen); } while (len == MAX_PACKET_LENGTH); net->where_b= last_pos; if (len != packet_error) len+= length; } net->read_pos = net->buff + net->where_b; if (len != packet_error) net->read_pos[len]=0; /* Safeguard for mysql_use_result */ return (ulong)len; #ifdef HAVE_COMPRESS } else { /* compressed protocol: -------------------------------------- packet_length 3 sequence_id 1 uncompressed_length 3 -------------------------------------- compressed data packet_length - 7 -------------------------------------- Another packet will follow if: packet_length == MAX_PACKET_LENGTH Last package will be identified by - packet_length is zero (special case) - packet_length < MAX_PACKET_LENGTH */ size_t packet_length, buffer_length; size_t current= 0, start= 0; my_bool is_multi_packet= 0; /* check if buffer is empty */ if (!net->remain_in_buf) { buffer_length= 0; } else { /* save position and restore \0 character */ buffer_length= net->buf_length; current= net->buf_length - net->remain_in_buf; start= current; net->buff[net->buf_length - net->remain_in_buf]=net->save_char; } for (;;) { if (buffer_length - current >= 4) { uchar *pos= net->buff + current; packet_length= uint3korr(pos); /* check if we have last package (special case: zero length) */ if (!packet_length) { current+= 4; /* length + sequence_id, no more data will follow */ break; } if (packet_length + 4 <= buffer_length - current) { if (!is_multi_packet) { current= current + packet_length + 4; } else { /* remove packet_header */ memmove(net->buff + current, net->buff + current + 4, buffer_length - current); buffer_length-= 4; current+= packet_length; } /* do we have last packet ? */ if (packet_length != MAX_PACKET_LENGTH) { is_multi_packet= 0; break; } else is_multi_packet= 1; if (start) { memmove(net->buff, net->buff + start, buffer_length - start); /* decrease buflen*/ buffer_length-= start; start= 0; } continue; } } if (start) { memmove(net->buff, net->buff + start, buffer_length - start); /* decrease buflen and current */ current -= start; buffer_length-= start; start= 0; } net->where_b=(unsigned long)buffer_length; if ((packet_length = ma_real_read(net,(size_t *)&complen)) == packet_error) return packet_error; if (_mariadb_uncompress(net, (unsigned char*) net->buff + net->where_b, &packet_length, &complen)) { net->error=2; /* caller will close socket */ net->pvio->set_error(net->pvio->mysql, CR_ERR_NET_UNCOMPRESS, SQLSTATE_UNKNOWN, 0); return packet_error; } buffer_length+= complen; } /* set values */ net->buf_length= (unsigned long)buffer_length; net->remain_in_buf= (unsigned long)(buffer_length - current); net->read_pos= net->buff + start + 4; len= current - start - 4; if (is_multi_packet) len-= 4; net->save_char= net->read_pos[len]; /* Must be saved */ net->read_pos[len]=0; /* Safeguard for mysql_use_result */ } #endif return (ulong)len; }
O0
c
ma_net_read: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax cmpb $0x0, 0x84(%rax) jne 0x6b898 movq -0x10(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x6bbe0 movq %rax, -0x18(%rbp) cmpq $0xffffff, -0x18(%rbp) # imm = 0xFFFFFF jne 0x6b858 movq $0x0, -0x28(%rbp) movq -0x10(%rbp), %rax movq 0x48(%rax), %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x48(%rax), %rcx movq %rcx, 0x48(%rax) movq -0x10(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x6bbe0 movq %rax, -0x18(%rbp) cmpq $0xffffff, -0x18(%rbp) # imm = 0xFFFFFF je 0x6b7fc movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x48(%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, -0x18(%rbp) je 0x6b856 movq -0x28(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0x6b858 movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx movq -0x10(%rbp), %rax addq 0x48(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, -0x18(%rbp) je 0x6b88b movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq -0x18(%rbp), %rcx movb $0x0, (%rax,%rcx) movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x6bbc7 movq $0x0, -0x48(%rbp) movq $0x0, -0x50(%rbp) movb $0x0, -0x51(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, 0x30(%rax) jne 0x6b8c1 movq $0x0, -0x40(%rbp) jmp 0x6b90e movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x10(%rbp), %rcx subq 0x30(%rcx), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x10(%rbp), %rax movb 0x81(%rax), %dl movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rcx movq 0x40(%rcx), %rcx movq -0x10(%rbp), %rsi subq 0x30(%rsi), %rcx movb %dl, (%rax,%rcx) jmp 0x6b910 movq -0x40(%rbp), %rax subq -0x48(%rbp), %rax cmpq $0x4, %rax jb 0x6ba40 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax addq -0x48(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movzbl (%rax), %eax movq -0x60(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx addl %ecx, %eax movq -0x60(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx addl %ecx, %eax movl %eax, %eax movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) jne 0x6b971 movq -0x48(%rbp), %rax addq $0x4, %rax movq %rax, -0x48(%rbp) jmp 0x6bb40 movq -0x38(%rbp), %rax addq $0x4, %rax movq -0x40(%rbp), %rcx subq -0x48(%rbp), %rcx cmpq %rcx, %rax ja 0x6ba3e cmpb $0x0, -0x51(%rbp) jne 0x6b9a2 movq -0x48(%rbp), %rax addq -0x38(%rbp), %rax addq $0x4, %rax movq %rax, -0x48(%rbp) jmp 0x6b9e3 movq -0x10(%rbp), %rax movq 0x8(%rax), %rdi addq -0x48(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi addq -0x48(%rbp), %rsi addq $0x4, %rsi movq -0x40(%rbp), %rdx subq -0x48(%rbp), %rdx callq 0x36150 movq -0x40(%rbp), %rax subq $0x4, %rax movq %rax, -0x40(%rbp) movq -0x38(%rbp), %rax addq -0x48(%rbp), %rax movq %rax, -0x48(%rbp) cmpq $0xffffff, -0x38(%rbp) # imm = 0xFFFFFF je 0x6b9f6 movb $0x0, -0x51(%rbp) jmp 0x6bb40 movb $0x1, -0x51(%rbp) cmpq $0x0, -0x50(%rbp) je 0x6ba39 movq -0x10(%rbp), %rax movq 0x8(%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi addq -0x50(%rbp), %rsi movq -0x40(%rbp), %rdx subq -0x50(%rbp), %rdx callq 0x36150 movq -0x50(%rbp), %rcx movq -0x40(%rbp), %rax subq %rcx, %rax movq %rax, -0x40(%rbp) movq $0x0, -0x50(%rbp) jmp 0x6b910 jmp 0x6ba40 cmpq $0x0, -0x50(%rbp) je 0x6ba8e movq -0x10(%rbp), %rax movq 0x8(%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi addq -0x50(%rbp), %rsi movq -0x40(%rbp), %rdx subq -0x50(%rbp), %rdx callq 0x36150 movq -0x50(%rbp), %rcx movq -0x48(%rbp), %rax subq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x50(%rbp), %rcx movq -0x40(%rbp), %rax subq %rcx, %rax movq %rax, -0x40(%rbp) movq $0x0, -0x50(%rbp) movq -0x40(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x10(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x6bbe0 movq %rax, -0x38(%rbp) movl $0xffffffff, %ecx # imm = 0xFFFFFFFF cmpq %rcx, %rax jne 0x6bac3 movl $0xffffffff, %eax # imm = 0xFFFFFFFF movq %rax, -0x8(%rbp) jmp 0x6bbc7 movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi movq -0x10(%rbp), %rax addq 0x48(%rax), %rsi leaq -0x38(%rbp), %rdx leaq -0x20(%rbp), %rcx callq 0x4a5f0 cmpb $0x0, %al je 0x6bb2f movq -0x10(%rbp), %rax movb $0x2, 0x94(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x50(%rax), %r8 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x40(%rax), %rdi leaq 0x1c9570(%rip), %rax # 0x235080 movq (%rax), %rdx movl $0x1397, %esi # imm = 0x1397 xorl %eax, %eax movl %eax, %ecx movb $0x0, %al callq *%r8 movl $0xffffffff, %eax # imm = 0xFFFFFFFF movq %rax, -0x8(%rbp) jmp 0x6bbc7 movq -0x20(%rbp), %rax addq -0x40(%rbp), %rax movq %rax, -0x40(%rbp) jmp 0x6b910 movq -0x40(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x40(%rbp), %rcx subq -0x48(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x30(%rax) movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx addq -0x50(%rbp), %rcx addq $0x4, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x48(%rbp), %rax subq -0x50(%rbp), %rax subq $0x4, %rax movq %rax, -0x18(%rbp) cmpb $0x0, -0x51(%rbp) je 0x6bb96 movq -0x18(%rbp), %rax subq $0x4, %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq -0x18(%rbp), %rcx movb (%rax,%rcx), %cl movq -0x10(%rbp), %rax movb %cl, 0x81(%rax) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq -0x18(%rbp), %rcx movb $0x0, (%rax,%rcx) movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_net_read: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov rax, [rbp+var_10] cmp byte ptr [rax+84h], 0 jnz loc_6B898 mov rdi, [rbp+var_10] lea rsi, [rbp+var_20] call ma_real_read mov [rbp+var_18], rax cmp [rbp+var_18], 0FFFFFFh jnz short loc_6B858 mov [rbp+var_28], 0 mov rax, [rbp+var_10] mov rax, [rax+48h] mov [rbp+var_30], rax loc_6B7FC: mov rax, [rbp+var_18] add rax, [rbp+var_28] mov [rbp+var_28], rax mov rcx, [rbp+var_18] mov rax, [rbp+var_10] add rcx, [rax+48h] mov [rax+48h], rcx mov rdi, [rbp+var_10] lea rsi, [rbp+var_20] call ma_real_read mov [rbp+var_18], rax cmp [rbp+var_18], 0FFFFFFh jz short loc_6B7FC mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax+48h], rcx mov eax, 0FFFFFFFFh cmp [rbp+var_18], rax jz short loc_6B856 mov rax, [rbp+var_28] add rax, [rbp+var_18] mov [rbp+var_18], rax loc_6B856: jmp short $+2 loc_6B858: mov rax, [rbp+var_10] mov rcx, [rax+8] mov rax, [rbp+var_10] add rcx, [rax+48h] mov rax, [rbp+var_10] mov [rax+20h], rcx mov eax, 0FFFFFFFFh cmp [rbp+var_18], rax jz short loc_6B88B mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rbp+var_18] mov byte ptr [rax+rcx], 0 loc_6B88B: mov rax, [rbp+var_18] mov [rbp+var_8], rax jmp loc_6BBC7 loc_6B898: mov [rbp+var_48], 0 mov [rbp+var_50], 0 mov [rbp+var_51], 0 mov rax, [rbp+var_10] cmp qword ptr [rax+30h], 0 jnz short loc_6B8C1 mov [rbp+var_40], 0 jmp short loc_6B90E loc_6B8C1: mov rax, [rbp+var_10] mov rax, [rax+40h] mov [rbp+var_40], rax mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_10] sub rax, [rcx+30h] mov [rbp+var_48], rax mov rax, [rbp+var_48] mov [rbp+var_50], rax mov rax, [rbp+var_10] mov dl, [rax+81h] mov rax, [rbp+var_10] mov rax, [rax+8] mov rcx, [rbp+var_10] mov rcx, [rcx+40h] mov rsi, [rbp+var_10] sub rcx, [rsi+30h] mov [rax+rcx], dl loc_6B90E: jmp short $+2 loc_6B910: mov rax, [rbp+var_40] sub rax, [rbp+var_48] cmp rax, 4 jb loc_6BA40 mov rax, [rbp+var_10] mov rax, [rax+8] add rax, [rbp+var_48] mov [rbp+var_60], rax mov rax, [rbp+var_60] movzx eax, byte ptr [rax] mov rcx, [rbp+var_60] movzx ecx, byte ptr [rcx+1] shl ecx, 8 add eax, ecx mov rcx, [rbp+var_60] movzx ecx, byte ptr [rcx+2] shl ecx, 10h add eax, ecx mov eax, eax mov [rbp+var_38], rax cmp [rbp+var_38], 0 jnz short loc_6B971 mov rax, [rbp+var_48] add rax, 4 mov [rbp+var_48], rax jmp loc_6BB40 loc_6B971: mov rax, [rbp+var_38] add rax, 4 mov rcx, [rbp+var_40] sub rcx, [rbp+var_48] cmp rax, rcx ja loc_6BA3E cmp [rbp+var_51], 0 jnz short loc_6B9A2 mov rax, [rbp+var_48] add rax, [rbp+var_38] add rax, 4 mov [rbp+var_48], rax jmp short loc_6B9E3 loc_6B9A2: mov rax, [rbp+var_10] mov rdi, [rax+8] add rdi, [rbp+var_48] mov rax, [rbp+var_10] mov rsi, [rax+8] add rsi, [rbp+var_48] add rsi, 4 mov rdx, [rbp+var_40] sub rdx, [rbp+var_48] call _memmove mov rax, [rbp+var_40] sub rax, 4 mov [rbp+var_40], rax mov rax, [rbp+var_38] add rax, [rbp+var_48] mov [rbp+var_48], rax loc_6B9E3: cmp [rbp+var_38], 0FFFFFFh jz short loc_6B9F6 mov [rbp+var_51], 0 jmp loc_6BB40 loc_6B9F6: mov [rbp+var_51], 1 cmp [rbp+var_50], 0 jz short loc_6BA39 mov rax, [rbp+var_10] mov rdi, [rax+8] mov rax, [rbp+var_10] mov rsi, [rax+8] add rsi, [rbp+var_50] mov rdx, [rbp+var_40] sub rdx, [rbp+var_50] call _memmove mov rcx, [rbp+var_50] mov rax, [rbp+var_40] sub rax, rcx mov [rbp+var_40], rax mov [rbp+var_50], 0 loc_6BA39: jmp loc_6B910 loc_6BA3E: jmp short $+2 loc_6BA40: cmp [rbp+var_50], 0 jz short loc_6BA8E mov rax, [rbp+var_10] mov rdi, [rax+8] mov rax, [rbp+var_10] mov rsi, [rax+8] add rsi, [rbp+var_50] mov rdx, [rbp+var_40] sub rdx, [rbp+var_50] call _memmove mov rcx, [rbp+var_50] mov rax, [rbp+var_48] sub rax, rcx mov [rbp+var_48], rax mov rcx, [rbp+var_50] mov rax, [rbp+var_40] sub rax, rcx mov [rbp+var_40], rax mov [rbp+var_50], 0 loc_6BA8E: mov rcx, [rbp+var_40] mov rax, [rbp+var_10] mov [rax+48h], rcx mov rdi, [rbp+var_10] lea rsi, [rbp+var_20] call ma_real_read mov [rbp+var_38], rax mov ecx, 0FFFFFFFFh cmp rax, rcx jnz short loc_6BAC3 mov eax, 0FFFFFFFFh mov [rbp+var_8], rax jmp loc_6BBC7 loc_6BAC3: mov rdi, [rbp+var_10] mov rax, [rbp+var_10] mov rsi, [rax+8] mov rax, [rbp+var_10] add rsi, [rax+48h] lea rdx, [rbp+var_38] lea rcx, [rbp+var_20] call _mariadb_uncompress cmp al, 0 jz short loc_6BB2F mov rax, [rbp+var_10] mov byte ptr [rax+94h], 2 mov rax, [rbp+var_10] mov rax, [rax] mov r8, [rax+50h] mov rax, [rbp+var_10] mov rax, [rax] mov rdi, [rax+40h] lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] mov esi, 1397h xor eax, eax mov ecx, eax mov al, 0 call r8 mov eax, 0FFFFFFFFh mov [rbp+var_8], rax jmp loc_6BBC7 loc_6BB2F: mov rax, [rbp+var_20] add rax, [rbp+var_40] mov [rbp+var_40], rax jmp loc_6B910 loc_6BB40: mov rcx, [rbp+var_40] mov rax, [rbp+var_10] mov [rax+40h], rcx mov rcx, [rbp+var_40] sub rcx, [rbp+var_48] mov rax, [rbp+var_10] mov [rax+30h], rcx mov rax, [rbp+var_10] mov rcx, [rax+8] add rcx, [rbp+var_50] add rcx, 4 mov rax, [rbp+var_10] mov [rax+20h], rcx mov rax, [rbp+var_48] sub rax, [rbp+var_50] sub rax, 4 mov [rbp+var_18], rax cmp [rbp+var_51], 0 jz short loc_6BB96 mov rax, [rbp+var_18] sub rax, 4 mov [rbp+var_18], rax loc_6BB96: mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rbp+var_18] mov cl, [rax+rcx] mov rax, [rbp+var_10] mov [rax+81h], cl mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rbp+var_18] mov byte ptr [rax+rcx], 0 mov rax, [rbp+var_18] mov [rbp+var_8], rax loc_6BBC7: mov rax, [rbp+var_8] add rsp, 60h pop rbp retn
long long ma_net_read(long long a1) { char v2; // [rsp+Fh] [rbp-51h] long long v3; // [rsp+10h] [rbp-50h] long long v4; // [rsp+18h] [rbp-48h] long long v5; // [rsp+20h] [rbp-40h] long long v6; // [rsp+28h] [rbp-38h] BYREF long long v7; // [rsp+30h] [rbp-30h] long long v8; // [rsp+38h] [rbp-28h] long long v9; // [rsp+40h] [rbp-20h] BYREF long long v10; // [rsp+48h] [rbp-18h] long long v11; // [rsp+50h] [rbp-10h] v11 = a1; if ( *(_BYTE *)(a1 + 132) ) { v4 = 0LL; v3 = 0LL; v2 = 0; if ( *(_QWORD *)(v11 + 48) ) { v5 = *(_QWORD *)(v11 + 64); v4 = v5 - *(_QWORD *)(v11 + 48); v3 = v4; *(_BYTE *)(*(_QWORD *)(v11 + 8) + v4) = *(_BYTE *)(v11 + 129); } else { v5 = 0LL; } while ( 1 ) { while ( 1 ) { if ( (unsigned long long)(v5 - v4) >= 4 ) { v6 = (*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8) + 2) << 16) + (*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8) + 1) << 8) + (unsigned int)*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8)); if ( !v6 ) { v4 += 4LL; goto LABEL_32; } if ( v6 + 4 <= (unsigned long long)(v5 - v4) ) break; } if ( v3 ) { memmove(*(_QWORD *)(v11 + 8), v3 + *(_QWORD *)(v11 + 8), v5 - v3); v4 -= v3; v5 -= v3; v3 = 0LL; } *(_QWORD *)(v11 + 72) = v5; v6 = ma_real_read(v11, &v9); if ( v6 == 0xFFFFFFFFLL ) return 0xFFFFFFFFLL; if ( mariadb_uncompress(v11, *(_QWORD *)(v11 + 72) + *(_QWORD *)(v11 + 8), &v6, &v9) ) { *(_BYTE *)(v11 + 148) = 2; (*(void ( **)(_QWORD, long long, char *, _QWORD))(*(_QWORD *)v11 + 80LL))( *(_QWORD *)(*(_QWORD *)v11 + 64LL), 5015LL, SQLSTATE_UNKNOWN, 0LL); return 0xFFFFFFFFLL; } v5 += v9; } if ( v2 ) { memmove(v4 + *(_QWORD *)(v11 + 8), v4 + *(_QWORD *)(v11 + 8) + 4, v5 - v4); v5 -= 4LL; v4 += v6; } else { v4 += v6 + 4; } if ( v6 != 0xFFFFFF ) break; v2 = 1; if ( v3 ) { memmove(*(_QWORD *)(v11 + 8), v3 + *(_QWORD *)(v11 + 8), v5 - v3); v5 -= v3; v3 = 0LL; } } v2 = 0; LABEL_32: *(_QWORD *)(v11 + 64) = v5; *(_QWORD *)(v11 + 48) = v5 - v4; *(_QWORD *)(v11 + 32) = v3 + *(_QWORD *)(v11 + 8) + 4; v10 = v4 - v3 - 4; if ( v2 ) v10 -= 4LL; *(_BYTE *)(v11 + 129) = *(_BYTE *)(*(_QWORD *)(v11 + 32) + v10); *(_BYTE *)(*(_QWORD *)(v11 + 32) + v10) = 0; return v10; } else { v10 = ma_real_read(v11, &v9); if ( v10 == 0xFFFFFF ) { v8 = 0LL; v7 = *(_QWORD *)(v11 + 72); do { v8 += v10; *(_QWORD *)(v11 + 72) += v10; v10 = ma_real_read(v11, &v9); } while ( v10 == 0xFFFFFF ); *(_QWORD *)(v11 + 72) = v7; if ( v10 != 0xFFFFFFFFLL ) v10 += v8; } *(_QWORD *)(v11 + 32) = *(_QWORD *)(v11 + 72) + *(_QWORD *)(v11 + 8); if ( v10 != 0xFFFFFFFFLL ) *(_BYTE *)(*(_QWORD *)(v11 + 32) + v10) = 0; return v10; } }
ma_net_read: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x84],0x0 JNZ 0x0016b898 MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x20] CALL 0x0016bbe0 MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0xffffff JNZ 0x0016b858 MOV qword ptr [RBP + -0x28],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x30],RAX LAB_0016b7fc: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x28],RAX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x48] MOV qword ptr [RAX + 0x48],RCX MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x20] CALL 0x0016bbe0 MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0xffffff JZ 0x0016b7fc MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x48],RCX MOV EAX,0xffffffff CMP qword ptr [RBP + -0x18],RAX JZ 0x0016b856 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX LAB_0016b856: JMP 0x0016b858 LAB_0016b858: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x48] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX MOV EAX,0xffffffff CMP qword ptr [RBP + -0x18],RAX JZ 0x0016b88b MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + RCX*0x1],0x0 LAB_0016b88b: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX JMP 0x0016bbc7 LAB_0016b898: MOV qword ptr [RBP + -0x48],0x0 MOV qword ptr [RBP + -0x50],0x0 MOV byte ptr [RBP + -0x51],0x0 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x30],0x0 JNZ 0x0016b8c1 MOV qword ptr [RBP + -0x40],0x0 JMP 0x0016b90e LAB_0016b8c1: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,qword ptr [RCX + 0x30] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x10] MOV DL,byte ptr [RAX + 0x81] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x40] MOV RSI,qword ptr [RBP + -0x10] SUB RCX,qword ptr [RSI + 0x30] MOV byte ptr [RAX + RCX*0x1],DL LAB_0016b90e: JMP 0x0016b910 LAB_0016b910: MOV RAX,qword ptr [RBP + -0x40] SUB RAX,qword ptr [RBP + -0x48] CMP RAX,0x4 JC 0x0016ba40 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] ADD RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x60] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x10 ADD EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 JNZ 0x0016b971 MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x4 MOV qword ptr [RBP + -0x48],RAX JMP 0x0016bb40 LAB_0016b971: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x4 MOV RCX,qword ptr [RBP + -0x40] SUB RCX,qword ptr [RBP + -0x48] CMP RAX,RCX JA 0x0016ba3e CMP byte ptr [RBP + -0x51],0x0 JNZ 0x0016b9a2 MOV RAX,qword ptr [RBP + -0x48] ADD RAX,qword ptr [RBP + -0x38] ADD RAX,0x4 MOV qword ptr [RBP + -0x48],RAX JMP 0x0016b9e3 LAB_0016b9a2: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x8] ADD RDI,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] ADD RSI,qword ptr [RBP + -0x48] ADD RSI,0x4 MOV RDX,qword ptr [RBP + -0x40] SUB RDX,qword ptr [RBP + -0x48] CALL 0x00136150 MOV RAX,qword ptr [RBP + -0x40] SUB RAX,0x4 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x48],RAX LAB_0016b9e3: CMP qword ptr [RBP + -0x38],0xffffff JZ 0x0016b9f6 MOV byte ptr [RBP + -0x51],0x0 JMP 0x0016bb40 LAB_0016b9f6: MOV byte ptr [RBP + -0x51],0x1 CMP qword ptr [RBP + -0x50],0x0 JZ 0x0016ba39 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] ADD RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x40] SUB RDX,qword ptr [RBP + -0x50] CALL 0x00136150 MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x40] SUB RAX,RCX MOV qword ptr [RBP + -0x40],RAX MOV qword ptr [RBP + -0x50],0x0 LAB_0016ba39: JMP 0x0016b910 LAB_0016ba3e: JMP 0x0016ba40 LAB_0016ba40: CMP qword ptr [RBP + -0x50],0x0 JZ 0x0016ba8e MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] ADD RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x40] SUB RDX,qword ptr [RBP + -0x50] CALL 0x00136150 MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x48] SUB RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x40] SUB RAX,RCX MOV qword ptr [RBP + -0x40],RAX MOV qword ptr [RBP + -0x50],0x0 LAB_0016ba8e: MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x48],RCX MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x20] CALL 0x0016bbe0 MOV qword ptr [RBP + -0x38],RAX MOV ECX,0xffffffff CMP RAX,RCX JNZ 0x0016bac3 MOV EAX,0xffffffff MOV qword ptr [RBP + -0x8],RAX JMP 0x0016bbc7 LAB_0016bac3: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] ADD RSI,qword ptr [RAX + 0x48] LEA RDX,[RBP + -0x38] LEA RCX,[RBP + -0x20] CALL 0x0014a5f0 CMP AL,0x0 JZ 0x0016bb2f MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x94],0x2 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV R8,qword ptr [RAX + 0x50] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x40] LEA RAX,[0x335080] MOV RDX,qword ptr [RAX] MOV ESI,0x1397 XOR EAX,EAX MOV ECX,EAX MOV AL,0x0 CALL R8 MOV EAX,0xffffffff MOV qword ptr [RBP + -0x8],RAX JMP 0x0016bbc7 LAB_0016bb2f: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x40],RAX JMP 0x0016b910 LAB_0016bb40: MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x40],RCX MOV RCX,qword ptr [RBP + -0x40] SUB RCX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x30],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] ADD RCX,qword ptr [RBP + -0x50] ADD RCX,0x4 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x48] SUB RAX,qword ptr [RBP + -0x50] SUB RAX,0x4 MOV qword ptr [RBP + -0x18],RAX CMP byte ptr [RBP + -0x51],0x0 JZ 0x0016bb96 MOV RAX,qword ptr [RBP + -0x18] SUB RAX,0x4 MOV qword ptr [RBP + -0x18],RAX LAB_0016bb96: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x18] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x81],CL MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + RCX*0x1],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX LAB_0016bbc7: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x60 POP RBP RET
long ma_net_read(long *param_1) { bool bVar1; char cVar2; byte *pbVar3; long local_58; long local_50; long local_48; ulong local_40; long local_38; long local_30; long local_28; long local_20; long *local_18; local_18 = param_1; if (*(char *)((long)param_1 + 0x84) == '\0') { local_20 = ma_real_read(param_1,&local_28); if (local_20 == 0xffffff) { local_30 = 0; local_38 = local_18[9]; local_20 = 0xffffff; do { local_30 = local_20 + local_30; local_18[9] = local_20 + local_18[9]; local_20 = ma_real_read(local_18,&local_28); } while (local_20 == 0xffffff); local_18[9] = local_38; if (local_20 != 0xffffffff) { local_20 = local_30 + local_20; } } local_18[4] = local_18[1] + local_18[9]; if (local_20 != 0xffffffff) { *(int1 *)(local_18[4] + local_20) = 0; } return local_20; } local_50 = 0; bVar1 = false; if (param_1[6] == 0) { local_48 = 0; local_58 = local_50; } else { local_48 = param_1[8]; local_58 = param_1[8] - param_1[6]; *(int1 *)(param_1[1] + (param_1[8] - param_1[6])) = *(int1 *)((long)param_1 + 0x81); local_50 = local_58; } LAB_0016b910: do { if (3 < (ulong)(local_48 - local_50)) { pbVar3 = (byte *)(local_18[1] + local_50); local_40 = (ulong)((uint)*pbVar3 + (uint)pbVar3[1] * 0x100 + (uint)pbVar3[2] * 0x10000); if (local_40 == 0) { local_50 = local_50 + 4; LAB_0016bb40: local_18[8] = local_48; local_18[6] = local_48 - local_50; local_18[4] = local_18[1] + local_58 + 4; local_20 = (local_50 - local_58) + -4; if (bVar1) { local_20 = (local_50 - local_58) + -8; } *(int1 *)((long)local_18 + 0x81) = *(int1 *)(local_18[4] + local_20); *(int1 *)(local_18[4] + local_20) = 0; return local_20; } if (local_40 + 4 <= (ulong)(local_48 - local_50)) { if (bVar1) { memmove((void *)(local_18[1] + local_50),(void *)(local_18[1] + local_50 + 4), local_48 - local_50); local_48 = local_48 + -4; local_50 = local_40 + local_50; } else { local_50 = local_50 + local_40 + 4; } if (local_40 != 0xffffff) { bVar1 = false; goto LAB_0016bb40; } bVar1 = true; if (local_58 != 0) { memmove((void *)local_18[1],(void *)(local_18[1] + local_58),local_48 - local_58); local_48 = local_48 - local_58; local_58 = 0; } goto LAB_0016b910; } } if (local_58 != 0) { memmove((void *)local_18[1],(void *)(local_18[1] + local_58),local_48 - local_58); local_50 = local_50 - local_58; local_48 = local_48 - local_58; local_58 = 0; } local_18[9] = local_48; local_40 = ma_real_read(local_18,&local_28); if (local_40 == 0xffffffff) { return 0xffffffff; } cVar2 = _mariadb_uncompress(local_18,local_18[1] + local_18[9],&local_40,&local_28); if (cVar2 != '\0') { *(int1 *)((long)local_18 + 0x94) = 2; (**(code **)(*local_18 + 0x50))(*(int8 *)(*local_18 + 0x40),0x1397,SQLSTATE_UNKNOWN,0); return 0xffffffff; } local_48 = local_28 + local_48; } while( true ); }
38,927
queue_insert_safe
eloqsql/mysys/queues.c
int queue_insert_safe(QUEUE *queue, uchar *element) { if (queue->elements == queue->max_elements) { if (!queue->auto_extent) return 2; if (resize_queue(queue, queue->max_elements + queue->auto_extent)) return 1; } queue_insert(queue, element); return 0; }
O0
c
queue_insert_safe: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movl 0x10(%rax), %eax movq -0x10(%rbp), %rcx cmpl 0x14(%rcx), %eax jne 0xf870a movq -0x10(%rbp), %rax cmpl $0x0, 0x20(%rax) jne 0xf86e3 movl $0x2, -0x4(%rbp) jmp 0xf871e movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rax movl 0x14(%rax), %esi movq -0x10(%rbp), %rax addl 0x20(%rax), %esi callq 0xf8490 cmpl $0x0, %eax je 0xf8708 movl $0x1, -0x4(%rbp) jmp 0xf871e jmp 0xf870a movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0xf8570 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
queue_insert_safe: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov eax, [rax+10h] mov rcx, [rbp+var_10] cmp eax, [rcx+14h] jnz short loc_F870A mov rax, [rbp+var_10] cmp dword ptr [rax+20h], 0 jnz short loc_F86E3 mov [rbp+var_4], 2 jmp short loc_F871E loc_F86E3: mov rdi, [rbp+var_10] mov rax, [rbp+var_10] mov esi, [rax+14h] mov rax, [rbp+var_10] add esi, [rax+20h] call resize_queue cmp eax, 0 jz short loc_F8708 mov [rbp+var_4], 1 jmp short loc_F871E loc_F8708: jmp short $+2 loc_F870A: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call queue_insert mov [rbp+var_4], 0 loc_F871E: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long queue_insert_safe(_DWORD *a1, long long a2) { if ( a1[4] != a1[5] ) goto LABEL_6; if ( a1[8] ) { if ( (unsigned int)resize_queue((long long)a1, a1[8] + a1[5]) ) return 1; LABEL_6: queue_insert((long long)a1, a2); return 0; } return 2; }
queue_insert_safe: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x14] JNZ 0x001f870a MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x20],0x0 JNZ 0x001f86e3 MOV dword ptr [RBP + -0x4],0x2 JMP 0x001f871e LAB_001f86e3: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX + 0x14] MOV RAX,qword ptr [RBP + -0x10] ADD ESI,dword ptr [RAX + 0x20] CALL 0x001f8490 CMP EAX,0x0 JZ 0x001f8708 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001f871e LAB_001f8708: JMP 0x001f870a LAB_001f870a: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001f8570 MOV dword ptr [RBP + -0x4],0x0 LAB_001f871e: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 queue_insert_safe(long param_1,int8 param_2) { int iVar1; if (*(int *)(param_1 + 0x10) == *(int *)(param_1 + 0x14)) { if (*(int *)(param_1 + 0x20) == 0) { return 2; } iVar1 = resize_queue(param_1,*(int *)(param_1 + 0x14) + *(int *)(param_1 + 0x20)); if (iVar1 != 0) { return 1; } } queue_insert(param_1,param_2); return 0; }
38,928
queue_insert_safe
eloqsql/mysys/queues.c
int queue_insert_safe(QUEUE *queue, uchar *element) { if (queue->elements == queue->max_elements) { if (!queue->auto_extent) return 2; if (resize_queue(queue, queue->max_elements + queue->auto_extent)) return 1; } queue_insert(queue, element); return 0; }
O3
c
queue_insert_safe: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 movl 0x10(%rdi), %edx cmpl 0x14(%rdi), %edx jne 0xa31af movl 0x20(%r14), %esi testl %esi, %esi je 0xa31c4 addl %edx, %esi movq %r14, %rdi callq 0xa3045 movl %eax, %ecx movl $0x1, %eax testl %ecx, %ecx jne 0xa31c9 movl 0x10(%r14), %edx incl %edx movl %edx, 0x10(%r14) movq %r14, %rdi movq %rbx, %rsi callq 0xa30d2 xorl %eax, %eax jmp 0xa31c9 movl $0x2, %eax popq %rbx popq %r14 popq %rbp retq
queue_insert_safe: push rbp mov rbp, rsp push r14 push rbx mov rbx, rsi mov r14, rdi mov edx, [rdi+10h] cmp edx, [rdi+14h] jnz short loc_A31AF mov esi, [r14+20h] test esi, esi jz short loc_A31C4 add esi, edx mov rdi, r14 call resize_queue mov ecx, eax mov eax, 1 test ecx, ecx jnz short loc_A31C9 mov edx, [r14+10h] loc_A31AF: inc edx mov [r14+10h], edx mov rdi, r14 mov rsi, rbx call insert_at xor eax, eax jmp short loc_A31C9 loc_A31C4: mov eax, 2 loc_A31C9: pop rbx pop r14 pop rbp retn
long long queue_insert_safe(long long a1, long long a2) { int v3; // edx int v4; // esi int v5; // ecx long long result; // rax unsigned int v7; // edx v3 = *(_DWORD *)(a1 + 16); if ( v3 != *(_DWORD *)(a1 + 20) ) { LABEL_5: v7 = v3 + 1; *(_DWORD *)(a1 + 16) = v7; insert_at((long long *)a1, a2, v7); return 0LL; } v4 = *(_DWORD *)(a1 + 32); if ( v4 ) { v5 = resize_queue(a1, v3 + v4); result = 1LL; if ( v5 ) return result; v3 = *(_DWORD *)(a1 + 16); goto LABEL_5; } return 2LL; }
queue_insert_safe: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI MOV EDX,dword ptr [RDI + 0x10] CMP EDX,dword ptr [RDI + 0x14] JNZ 0x001a31af MOV ESI,dword ptr [R14 + 0x20] TEST ESI,ESI JZ 0x001a31c4 ADD ESI,EDX MOV RDI,R14 CALL 0x001a3045 MOV ECX,EAX MOV EAX,0x1 TEST ECX,ECX JNZ 0x001a31c9 MOV EDX,dword ptr [R14 + 0x10] LAB_001a31af: INC EDX MOV dword ptr [R14 + 0x10],EDX MOV RDI,R14 MOV RSI,RBX CALL 0x001a30d2 XOR EAX,EAX JMP 0x001a31c9 LAB_001a31c4: MOV EAX,0x2 LAB_001a31c9: POP RBX POP R14 POP RBP RET
int8 queue_insert_safe(long param_1,int8 param_2) { int iVar1; iVar1 = *(int *)(param_1 + 0x10); if (iVar1 == *(int *)(param_1 + 0x14)) { if (*(int *)(param_1 + 0x20) == 0) { return 2; } iVar1 = resize_queue(param_1,*(int *)(param_1 + 0x20) + iVar1); if (iVar1 != 0) { return 1; } iVar1 = *(int *)(param_1 + 0x10); } *(int *)(param_1 + 0x10) = iVar1 + 1; insert_at(param_1,param_2); return 0; }
38,929
StripWhitespace(std::basic_string_view<char, std::char_traits<char>>)
Dolphin-anty/Source/Core/Common/StringUtil.cpp
std::string_view StripWhitespace(std::string_view str) { return StripEnclosingChars(str, " \t\r\n"); }
O3
cpp
StripWhitespace(std::basic_string_view<char, std::char_traits<char>>): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax leaq 0x2a1c8(%rip), %rbx # 0x3d4c9 testq %rdi, %rdi je 0x13390 movq %rsi, %r13 movq %rdi, %r15 xorl %r14d, %r14d leaq 0x2a1ab(%rip), %rbp # 0x3d4c5 xorl %r12d, %r12d movsbl (%r13,%r12), %esi movl $0x4, %edx movq %rbp, %rdi callq 0x78d0 testq %rax, %rax je 0x1333f incq %r12 cmpq %r12, %r15 jne 0x1331d jmp 0x13393 cmpq $-0x1, %r12 je 0x13390 leaq (%r12,%r13), %rbx leaq -0x1(%r15), %r14 leaq 0x2a171(%rip), %rbp # 0x3d4c5 movsbl (%r13,%r14), %esi movl $0x4, %edx movq %rbp, %rdi callq 0x78d0 testq %rax, %rax je 0x13379 addq $-0x1, %r14 jb 0x13354 movq $-0x1, %r14 movq %r15, %rax subq %r12, %rax jb 0x133a8 subq %r12, %r14 incq %r14 cmpq %r14, %rax cmovbq %rax, %r14 jmp 0x13393 xorl %r14d, %r14d movq %r14, %rax movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2a1b4(%rip), %rdi # 0x3d563 leaq 0x2a193(%rip), %rsi # 0x3d549 movq %r12, %rdx movq %r15, %rcx xorl %eax, %eax callq 0x7af0
_Z15StripWhitespaceSt17basic_string_viewIcSt11char_traitsIcEE: push rbp push r15 push r14 push r13 push r12 push rbx push rax lea rbx, asc_3D4C5+4; "" test rdi, rdi jz loc_13390 mov r13, rsi mov r15, rdi xor r14d, r14d lea rbp, asc_3D4C5; " \t\r\n" xor r12d, r12d loc_1331D: movsx esi, byte ptr [r13+r12+0] mov edx, 4 mov rdi, rbp call _memchr test rax, rax jz short loc_1333F inc r12 cmp r15, r12 jnz short loc_1331D jmp short loc_13393 loc_1333F: cmp r12, 0FFFFFFFFFFFFFFFFh jz short loc_13390 lea rbx, [r12+r13] lea r14, [r15-1] lea rbp, asc_3D4C5; " \t\r\n" loc_13354: movsx esi, byte ptr [r13+r14+0] mov edx, 4 mov rdi, rbp call _memchr test rax, rax jz short loc_13379 add r14, 0FFFFFFFFFFFFFFFFh jb short loc_13354 mov r14, 0FFFFFFFFFFFFFFFFh loc_13379: mov rax, r15 sub rax, r12 jb short loc_133A8 sub r14, r12 inc r14 cmp rax, r14 cmovb r14, rax jmp short loc_13393 loc_13390: xor r14d, r14d loc_13393: mov rax, r14 mov rdx, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_133A8: lea rdi, aSPosWhichIsZuS; "%s: __pos (which is %zu) > __size (whic"... lea rsi, aBasicStringVie; "basic_string_view::substr" mov rdx, r12 mov rcx, r15 xor eax, eax call __ZSt24__throw_out_of_range_fmtPKcz; std::__throw_out_of_range_fmt(char const*,...)
unsigned long long StripWhitespace(unsigned long long a1, long long a2) { unsigned long long v2; // r14 unsigned long long v3; // r12 long long v4; // r14 if ( !a1 ) return 0LL; v2 = 0LL; v3 = 0LL; while ( memchr(" \t\r\n", (unsigned int)*(char *)(a2 + v3)) ) { if ( a1 == ++v3 ) return v2; } if ( v3 == -1LL ) return 0LL; v4 = a1 - 1; while ( memchr(" \t\r\n", (unsigned int)*(char *)(a2 + v4)) ) { if ( v4-- == 0 ) { v4 = -1LL; break; } } if ( a1 < v3 ) std::__throw_out_of_range_fmt( "%s: __pos (which is %zu) > __size (which is %zu)", "basic_string_view::substr", v3, a1); v2 = v4 - v3 + 1; if ( a1 - v3 < v2 ) return a1 - v3; return v2; }
StripWhitespace: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX LEA RBX,[0x13d4c9] TEST RDI,RDI JZ 0x00113390 MOV R13,RSI MOV R15,RDI XOR R14D,R14D LEA RBP,[0x13d4c5] XOR R12D,R12D LAB_0011331d: MOVSX ESI,byte ptr [R13 + R12*0x1] MOV EDX,0x4 MOV RDI,RBP CALL 0x001078d0 TEST RAX,RAX JZ 0x0011333f INC R12 CMP R15,R12 JNZ 0x0011331d JMP 0x00113393 LAB_0011333f: CMP R12,-0x1 JZ 0x00113390 LEA RBX,[R12 + R13*0x1] LEA R14,[R15 + -0x1] LEA RBP,[0x13d4c5] LAB_00113354: MOVSX ESI,byte ptr [R13 + R14*0x1] MOV EDX,0x4 MOV RDI,RBP CALL 0x001078d0 TEST RAX,RAX JZ 0x00113379 ADD R14,-0x1 JC 0x00113354 MOV R14,-0x1 LAB_00113379: MOV RAX,R15 SUB RAX,R12 JC 0x001133a8 SUB R14,R12 INC R14 CMP RAX,R14 CMOVC R14,RAX JMP 0x00113393 LAB_00113390: XOR R14D,R14D LAB_00113393: MOV RAX,R14 MOV RDX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001133a8: LEA RDI,[0x13d563] LEA RSI,[0x13d549] MOV RDX,R12 MOV RCX,R15 XOR EAX,EAX CALL 0x00107af0
/* StripWhitespace(std::basic_string_view<char, std::char_traits<char> >) */ int1 [16] StripWhitespace(ulong param_1,long param_2) { void *pvVar1; int *puVar2; ulong uVar3; long lVar4; ulong uVar5; bool bVar6; int1 auVar7 [16]; puVar2 = &DAT_0013d4c9; if (param_1 == 0) { LAB_00113390: uVar5 = 0; } else { uVar5 = 0; uVar3 = 0; do { pvVar1 = memchr(&DAT_0013d4c5,(int)*(char *)(param_2 + uVar3),4); if (pvVar1 == (void *)0x0) { if (uVar3 == 0xffffffffffffffff) goto LAB_00113390; puVar2 = (int *)(uVar3 + param_2); lVar4 = param_1 - 1; goto LAB_00113354; } uVar3 = uVar3 + 1; } while (param_1 != uVar3); } goto LAB_00113393; while (bVar6 = lVar4 != 0, lVar4 = lVar4 + -1, bVar6) { LAB_00113354: pvVar1 = memchr(&DAT_0013d4c5,(int)*(char *)(param_2 + lVar4),4); if (pvVar1 == (void *)0x0) goto LAB_00113379; } lVar4 = -1; LAB_00113379: if (param_1 < uVar3) { auVar7 = std::__throw_out_of_range_fmt ("%s: __pos (which is %zu) > __size (which is %zu)", "basic_string_view::substr",uVar3,param_1); return auVar7; } uVar5 = (lVar4 - uVar3) + 1; if (param_1 - uVar3 < uVar5) { uVar5 = param_1 - uVar3; } LAB_00113393: auVar7._8_8_ = puVar2; auVar7._0_8_ = uVar5; return auVar7; }
38,930
ankerl::nanobench::detail::fmt::MarkDownColumn::invalid[abi:cxx11]() const
BadAccessGuards/build_O0/_deps/nanobench-src/src/include/nanobench.h
std::string MarkDownColumn::invalid() const { std::string sep(static_cast<size_t>(mWidth), ' '); sep.front() = '|'; sep[sep.size() - 2] = '-'; return sep; }
O0
c
ankerl::nanobench::detail::fmt::MarkDownColumn::invalid[abi:cxx11]() const: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x40(%rbp) movq %rdi, %rax movq %rax, -0x48(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movb $0x0, -0x11(%rbp) movslq (%rax), %rax movq %rax, -0x38(%rbp) leaq -0x12(%rbp), %rdi movq %rdi, -0x30(%rbp) callq 0x47b0 movq -0x40(%rbp), %rdi movq -0x38(%rbp), %rsi movq -0x30(%rbp), %rcx movl $0x20, %edx callq 0x1d910 jmp 0x166af leaq -0x12(%rbp), %rdi callq 0x44d0 movq -0x40(%rbp), %rdi callq 0x4100 movq -0x40(%rbp), %rdi movb $0x7c, (%rax) callq 0x4300 movq -0x40(%rbp), %rdi movq %rax, %rsi addq $-0x2, %rsi callq 0x4860 movq %rax, -0x50(%rbp) jmp 0x166e3 movq -0x50(%rbp), %rax movb $0x2d, (%rax) movb $0x1, -0x11(%rbp) testb $0x1, -0x11(%rbp) jne 0x1672d jmp 0x16724 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x20(%rbp) movl %eax, -0x24(%rbp) leaq -0x12(%rbp), %rdi callq 0x44d0 jmp 0x16737 movq -0x40(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x20(%rbp) movl %eax, -0x24(%rbp) callq 0x4270 jmp 0x16737 movq -0x40(%rbp), %rdi callq 0x4270 movq -0x48(%rbp), %rax addq $0x50, %rsp popq %rbp retq movq -0x20(%rbp), %rdi callq 0x47a0
_ZNK6ankerl9nanobench6detail3fmt14MarkDownColumn7invalidB5cxx11Ev: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_40], rdi mov rax, rdi mov [rbp+var_48], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov [rbp+var_11], 0 movsxd rax, dword ptr [rax] mov [rbp+var_38], rax lea rdi, [rbp+var_12] mov [rbp+var_30], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rbp+var_40] mov rsi, [rbp+var_38] mov rcx, [rbp+var_30] mov edx, 20h ; ' ' call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_; std::string::basic_string<std::allocator<char>>(ulong,char,std::allocator<char> const&) jmp short $+2 loc_166AF: lea rdi, [rbp+var_12] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, [rbp+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5frontEv; std::string::front(void) mov rdi, [rbp+var_40] mov byte ptr [rax], 7Ch ; '|' call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdi, [rbp+var_40] mov rsi, rax add rsi, 0FFFFFFFFFFFFFFFEh call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) mov [rbp+var_50], rax jmp short $+2 loc_166E3: mov rax, [rbp+var_50] mov byte ptr [rax], 2Dh ; '-' mov [rbp+var_11], 1 test [rbp+var_11], 1 jnz short loc_1672D jmp short loc_16724 mov rcx, rax mov eax, edx mov [rbp+var_20], rcx mov [rbp+var_24], eax lea rdi, [rbp+var_12] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_16737 mov rdi, [rbp+var_40] mov rcx, rax mov eax, edx mov [rbp+var_20], rcx mov [rbp+var_24], eax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_16737 loc_16724: mov rdi, [rbp+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1672D: mov rax, [rbp+var_48] add rsp, 50h pop rbp retn loc_16737: mov rdi, [rbp+var_20] call __Unwind_Resume
long long ankerl::nanobench::detail::fmt::MarkDownColumn::invalid[abi:cxx11](long long a1, int *a2) { long long v2; // rax long long v4; // [rsp+18h] [rbp-38h] _BYTE v5[2]; // [rsp+3Eh] [rbp-12h] BYREF int *v6; // [rsp+40h] [rbp-10h] long long v7; // [rsp+48h] [rbp-8h] v7 = a1; v6 = a2; v5[1] = 0; v4 = *a2; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>(a1, v4, 32LL, v5); std::allocator<char>::~allocator(v5); *(_BYTE *)std::string::front(a1) = 124; v2 = std::string::size(a1); *(_BYTE *)std::string::operator[](a1, v2 - 2) = 45; return a1; }
invalid[abi:cxx11]: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x40],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x48],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RBP + -0x11],0x0 MOVSXD RAX,dword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX LEA RDI,[RBP + -0x12] MOV qword ptr [RBP + -0x30],RDI CALL 0x001047b0 MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x30] LAB_001166a3: MOV EDX,0x20 CALL 0x0011d910 JMP 0x001166af LAB_001166af: LEA RDI,[RBP + -0x12] CALL 0x001044d0 MOV RDI,qword ptr [RBP + -0x40] CALL 0x00104100 MOV RDI,qword ptr [RBP + -0x40] MOV byte ptr [RAX],0x7c CALL 0x00104300 MOV RDI,qword ptr [RBP + -0x40] MOV RSI,RAX ADD RSI,-0x2 LAB_001166d8: CALL 0x00104860 LAB_001166dd: MOV qword ptr [RBP + -0x50],RAX JMP 0x001166e3 LAB_001166e3: MOV RAX,qword ptr [RBP + -0x50] MOV byte ptr [RAX],0x2d MOV byte ptr [RBP + -0x11],0x1 TEST byte ptr [RBP + -0x11],0x1 JNZ 0x0011672d JMP 0x00116724 LAB_00116724: MOV RDI,qword ptr [RBP + -0x40] CALL 0x00104270 LAB_0011672d: MOV RAX,qword ptr [RBP + -0x48] ADD RSP,0x50 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x001166f4) */ /* ankerl::nanobench::detail::fmt::MarkDownColumn::invalid[abi:cxx11]() const */ string * ankerl::nanobench::detail::fmt::MarkDownColumn::invalid_abi_cxx11_(void) { int iVar1; int1 *puVar2; int *in_RSI; string *in_RDI; allocator local_1a; int1 local_19; local_19 = 0; iVar1 = *in_RSI; std::allocator<char>::allocator(); /* try { // try from 001166a3 to 001166ac has its CatchHandler @ 001166f6 */ std::__cxx11::string::string<std::allocator<char>>(in_RDI,(long)iVar1,' ',&local_1a); std::allocator<char>::~allocator((allocator<char> *)&local_1a); puVar2 = (int1 *)std::__cxx11::string::front(); *puVar2 = 0x7c; std::__cxx11::string::size(); /* try { // try from 001166d8 to 001166dc has its CatchHandler @ 0011670d */ puVar2 = (int1 *)std::__cxx11::string::operator[]((ulong)in_RDI); *puVar2 = 0x2d; return in_RDI; }
38,931
Catch::RunContext::sectionStarted(Catch::StringRef, Catch::SourceLineInfo const&, Catch::Counts&)
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
bool RunContext::sectionStarted(StringRef sectionName, SourceLineInfo const& sectionLineInfo, Counts & assertions) { ITracker& sectionTracker = SectionTracker::acquire( m_trackerContext, TestCaseTracking::NameAndLocationRef( sectionName, sectionLineInfo ) ); if (!sectionTracker.isOpen()) return false; m_activeSections.push_back(&sectionTracker); SectionInfo sectionInfo( sectionLineInfo, static_cast<std::string>(sectionName) ); m_lastAssertionInfo.lineInfo = sectionInfo.lineInfo; m_reporter->sectionStarting(sectionInfo); assertions = m_totals.assertions; return true; }
O3
cpp
Catch::RunContext::sectionStarted(Catch::StringRef, Catch::SourceLineInfo const&, Catch::Counts&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r8, %rbx movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r13 movq %rdi, %r14 addq $0x1b0, %rdi # imm = 0x1B0 movups (%rcx), %xmm0 leaq 0x28(%rsp), %rsi movq %r13, (%rsi) movq %rdx, 0x8(%rsi) movups %xmm0, 0x10(%rsi) callq 0x5eec6 cmpl $0x0, 0x58(%rax) je 0x5f680 movq %rax, %rbp movq (%rax), %rax movq %rbp, %rdi callq *0x10(%rax) testb %al, %al je 0x5f687 xorl %eax, %eax jmp 0x5f75d leaq 0x198(%r14), %rdi leaq 0x28(%rsp), %rsi movq %rbp, (%rsi) callq 0x87296 leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) addq %r13, %r12 leaq 0x8(%rsp), %rbp movq %rbp, %rdi movq %r13, %rsi movq %r12, %rdx callq 0x37312 leaq 0x18(%rsp), %rcx leaq 0x38(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rbp), %rax cmpq %rcx, %rax je 0x5f6e3 movq %rax, 0x28(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x38(%rsp) jmp 0x5f6eb movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x10(%rsp), %rax leaq 0x28(%rsp), %rsi movq %rax, 0x8(%rsi) movq %rcx, 0x8(%rsp) movq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) movups (%r15), %xmm0 movups %xmm0, 0x20(%rsi) movups (%r15), %xmm0 movups %xmm0, 0x158(%r14) movq 0x110(%r14), %rdi movq (%rdi), %rax callq *0x38(%rax) movups 0xd0(%r14), %xmm0 movups 0xe0(%r14), %xmm1 movups %xmm1, 0x10(%rbx) movups %xmm0, (%rbx) movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x5f75b movq 0x38(%rsp), %rsi incq %rsi callq 0x17150 movb $0x1, %al addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x5f786 movq 0x38(%rsp), %rsi incq %rsi callq 0x17150 movq %rbx, %rdi callq 0x17740
_ZN5Catch10RunContext14sectionStartedENS_9StringRefERKNS_14SourceLineInfoERNS_6CountsE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov rbx, r8 mov r15, rcx mov r12, rdx mov r13, rsi mov r14, rdi add rdi, 1B0h; int movups xmm0, xmmword ptr [rcx] lea rsi, [rsp+88h+var_60]; int mov [rsi], r13 mov [rsi+8], rdx movups xmmword ptr [rsi+10h], xmm0 call _ZN5Catch16TestCaseTracking14SectionTracker7acquireERNS0_14TrackerContextERKNS0_18NameAndLocationRefE; Catch::TestCaseTracking::SectionTracker::acquire(Catch::TestCaseTracking::TrackerContext &,Catch::TestCaseTracking::NameAndLocationRef const&) cmp dword ptr [rax+58h], 0 jz short loc_5F680 mov rbp, rax mov rax, [rax] mov rdi, rbp call qword ptr [rax+10h] test al, al jz short loc_5F687 loc_5F680: xor eax, eax jmp loc_5F75D loc_5F687: lea rdi, [r14+198h] lea rsi, [rsp+88h+var_60] mov [rsi], rbp call _ZNSt6vectorIPN5Catch16TestCaseTracking8ITrackerESaIS3_EE12emplace_backIJS3_EEERS3_DpOT_; std::vector<Catch::TestCaseTracking::ITracker *>::emplace_back<Catch::TestCaseTracking::ITracker *>(Catch::TestCaseTracking::ITracker * &&) lea rax, [rsp+88h+var_70] mov [rax-10h], rax add r12, r13 lea rbp, [rsp+88h+var_80] mov rdi, rbp mov rsi, r13 mov rdx, r12 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 rcx, [rsp+88h+var_70] lea r12, [rsp+88h+var_50] mov [r12-10h], r12 mov rax, [rbp+0] cmp rax, rcx jz short loc_5F6E3 mov [rsp+88h+var_60], rax mov rax, [rsp+88h+var_70] mov [rsp+88h+var_50], rax jmp short loc_5F6EB loc_5F6E3: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 loc_5F6EB: mov rax, [rsp+88h+var_78] lea rsi, [rsp+88h+var_60] mov [rsi+8], rax mov [rsp+88h+var_80], rcx mov [rsp+88h+var_78], 0 mov byte ptr [rsp+88h+var_70], 0 movups xmm0, xmmword ptr [r15] movups xmmword ptr [rsi+20h], xmm0 movups xmm0, xmmword ptr [r15] movups xmmword ptr [r14+158h], xmm0 mov rdi, [r14+110h] mov rax, [rdi] call qword ptr [rax+38h] movups xmm0, xmmword ptr [r14+0D0h] movups xmm1, xmmword ptr [r14+0E0h] movups xmmword ptr [rbx+10h], xmm1 movups xmmword ptr [rbx], xmm0 mov rdi, [rsp+88h+var_60]; void * cmp rdi, r12 jz short loc_5F75B mov rsi, [rsp+88h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5F75B: mov al, 1 loc_5F75D: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_20]; void * cmp rdi, r12 jz short loc_5F786 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5F786: mov rdi, rbx call __Unwind_Resume
char Catch::RunContext::sectionStarted(long long a1, _BYTE *a2, long long a3, __int128 *a4, _OWORD *a5) { __int128 v8; // xmm0 _DWORD *v9; // rax void *v10; // rbp __int128 v12; // xmm0 __int128 *v13; // [rsp+8h] [rbp-80h] BYREF long long v14; // [rsp+10h] [rbp-78h] __int128 v15; // [rsp+18h] [rbp-70h] BYREF void *v16; // [rsp+28h] [rbp-60h] BYREF long long v17; // [rsp+30h] [rbp-58h] _OWORD v18[5]; // [rsp+38h] [rbp-50h] BYREF v8 = *a4; v16 = a2; v17 = a3; v18[0] = v8; v9 = Catch::TestCaseTracking::SectionTracker::acquire(a1 + 432, (long long)&v16); if ( !v9[22] ) return 0; v10 = v9; if ( (*(unsigned __int8 ( **)(_DWORD *))(*(_QWORD *)v9 + 16LL))(v9) ) return 0; v16 = v10; std::vector<Catch::TestCaseTracking::ITracker *>::emplace_back<Catch::TestCaseTracking::ITracker *>(a1 + 408); v13 = &v15; std::string::_M_construct<char const*>(&v13, a2, (long long)&a2[a3]); v16 = v18; if ( v13 == &v15 ) { v18[0] = v15; } else { v16 = v13; *(_QWORD *)&v18[0] = v15; } v17 = v14; v13 = &v15; v14 = 0LL; LOBYTE(v15) = 0; v18[1] = *a4; *(_OWORD *)(a1 + 344) = *a4; (*(void ( **)(_QWORD))(**(_QWORD **)(a1 + 272) + 56LL))(*(_QWORD *)(a1 + 272)); v12 = *(_OWORD *)(a1 + 208); a5[1] = *(_OWORD *)(a1 + 224); *a5 = v12; if ( v16 != v18 ) operator delete(v16, *(_QWORD *)&v18[0] + 1LL); return 1; }
sectionStarted: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV RBX,R8 MOV R15,RCX MOV R12,RDX MOV R13,RSI MOV R14,RDI ADD RDI,0x1b0 MOVUPS XMM0,xmmword ptr [RCX] LEA RSI,[RSP + 0x28] MOV qword ptr [RSI],R13 MOV qword ptr [RSI + 0x8],RDX MOVUPS xmmword ptr [RSI + 0x10],XMM0 CALL 0x0015eec6 CMP dword ptr [RAX + 0x58],0x0 JZ 0x0015f680 MOV RBP,RAX MOV RAX,qword ptr [RAX] MOV RDI,RBP CALL qword ptr [RAX + 0x10] TEST AL,AL JZ 0x0015f687 LAB_0015f680: XOR EAX,EAX JMP 0x0015f75d LAB_0015f687: LEA RDI,[R14 + 0x198] LEA RSI,[RSP + 0x28] MOV qword ptr [RSI],RBP CALL 0x00187296 LEA RAX,[RSP + 0x18] MOV qword ptr [RAX + -0x10],RAX ADD R12,R13 LEA RBP,[RSP + 0x8] MOV RDI,RBP MOV RSI,R13 MOV RDX,R12 CALL 0x00137312 LEA RCX,[RSP + 0x18] LEA R12,[RSP + 0x38] MOV qword ptr [R12 + -0x10],R12 MOV RAX,qword ptr [RBP] CMP RAX,RCX JZ 0x0015f6e3 MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x38],RAX JMP 0x0015f6eb LAB_0015f6e3: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 LAB_0015f6eb: MOV RAX,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x28] MOV qword ptr [RSI + 0x8],RAX MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [RSI + 0x20],XMM0 MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [R14 + 0x158],XMM0 MOV RDI,qword ptr [R14 + 0x110] MOV RAX,qword ptr [RDI] LAB_0015f72a: CALL qword ptr [RAX + 0x38] LAB_0015f72d: MOVUPS XMM0,xmmword ptr [R14 + 0xd0] MOVUPS XMM1,xmmword ptr [R14 + 0xe0] MOVUPS xmmword ptr [RBX + 0x10],XMM1 MOVUPS xmmword ptr [RBX],XMM0 MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R12 JZ 0x0015f75b MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x00117150 LAB_0015f75b: MOV AL,0x1 LAB_0015f75d: ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Catch::RunContext::sectionStarted(Catch::StringRef, Catch::SourceLineInfo const&, Catch::Counts&) */ int8 Catch::RunContext::sectionStarted (long param_1,ITracker *param_2,long param_3,int8 *param_4,int8 *param_5) { int4 uVar1; int4 uVar2; int4 uVar3; int8 uVar4; int8 uVar5; int8 uVar6; char cVar7; ITracker *pIVar8; ITracker *local_80; int8 local_78; ITracker local_70; int7 uStack_6f; int8 uStack_68; ITracker *local_60; long local_58; long local_50; int8 uStack_48; int8 local_40; int8 uStack_38; local_50 = *param_4; uStack_48 = param_4[1]; local_60 = param_2; local_58 = param_3; pIVar8 = (ITracker *) TestCaseTracking::SectionTracker::acquire ((TrackerContext *)(param_1 + 0x1b0),(NameAndLocationRef *)&local_60); if ((*(int *)(pIVar8 + 0x58) != 0) && (cVar7 = (**(code **)(*(long *)pIVar8 + 0x10))(pIVar8), cVar7 == '\0')) { local_60 = pIVar8; std:: vector<Catch::TestCaseTracking::ITracker*,std::allocator<Catch::TestCaseTracking::ITracker*>>:: emplace_back<Catch::TestCaseTracking::ITracker*> ((vector<Catch::TestCaseTracking::ITracker*,std::allocator<Catch::TestCaseTracking::ITracker*>> *)(param_1 + 0x198),&local_60); local_80 = &local_70; std::__cxx11::string::_M_construct<char_const*>(&local_80,param_2,param_2 + param_3); if (local_80 == &local_70) { uStack_48 = uStack_68; local_60 = (ITracker *)&local_50; } else { local_60 = local_80; } local_50 = CONCAT71(uStack_6f,local_70); local_58 = local_78; local_78 = 0; local_70 = (ITracker)0x0; local_40 = *param_4; uStack_38 = param_4[1]; uVar1 = *(int4 *)((long)param_4 + 4); uVar2 = *(int4 *)(param_4 + 1); uVar3 = *(int4 *)((long)param_4 + 0xc); *(int4 *)(param_1 + 0x158) = *(int4 *)param_4; *(int4 *)(param_1 + 0x15c) = uVar1; *(int4 *)(param_1 + 0x160) = uVar2; *(int4 *)(param_1 + 0x164) = uVar3; /* try { // try from 0015f72a to 0015f72c has its CatchHandler @ 0015f76c */ local_80 = &local_70; (**(code **)(**(long **)(param_1 + 0x110) + 0x38))(); uVar4 = *(int8 *)(param_1 + 0xd0); uVar5 = *(int8 *)(param_1 + 0xd8); uVar6 = *(int8 *)(param_1 + 0xe8); param_5[2] = *(int8 *)(param_1 + 0xe0); param_5[3] = uVar6; *param_5 = uVar4; param_5[1] = uVar5; if (local_60 != (ITracker *)&local_50) { operator_delete(local_60,local_50 + 1); } return 1; } return 0; }
38,932
minja::Value::Value(std::shared_ptr<std::vector<minja::Value, std::allocator<minja::Value>>> const&)
monkey531[P]llama/common/minja.hpp
Value(const std::shared_ptr<ArrayType> & array) : array_(array) {}
O2
cpp
minja::Value::Value(std::shared_ptr<std::vector<minja::Value, std::allocator<minja::Value>>> const&): pushq %rbx movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) addq $0x10, %rdi callq 0x692a2 leaq 0x40(%rbx), %rdi xorps %xmm0, %xmm0 movups %xmm0, 0x30(%rbx) movups %xmm0, 0x20(%rbx) xorl %esi, %esi popq %rbx jmp 0x3de46
_ZN5minja5ValueC2ERKSt10shared_ptrISt6vectorIS0_SaIS0_EEE: push rbx mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 add rdi, 10h call _ZNSt12__shared_ptrISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2EEC2ERKS7_; std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2> const&) lea rdi, [rbx+40h] xorps xmm0, xmm0 movups xmmword ptr [rbx+30h], xmm0 movups xmmword ptr [rbx+20h], xmm0 xor esi, esi pop rbx jmp _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
long long minja::Value::Value(long long a1, _QWORD *a2) { *(_OWORD *)a1 = 0LL; std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr((_QWORD *)(a1 + 16), a2); *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(a1 + 64); }
Value: PUSH RBX MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 ADD RDI,0x10 CALL 0x001692a2 LEA RDI,[RBX + 0x40] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 XOR ESI,ESI POP RBX JMP 0x0013de46
/* minja::Value::Value(std::shared_ptr<std::vector<minja::Value, std::allocator<minja::Value> > > const&) */ void __thiscall minja::Value::Value(Value *this,shared_ptr *param_1) { *(int8 *)this = 0; *(int8 *)(this + 8) = 0; std:: __shared_ptr<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2>:: __shared_ptr((__shared_ptr<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2> *)(this + 0x10),(__shared_ptr *)param_1); *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 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> ::basic_json((_func_decltype_nullptr *)(this + 0x40)); return; }
38,933
httplib::detail::SocketStream::write(char const*, unsigned long)
hkr04[P]cpp-mcp/common/httplib.h
inline ssize_t SocketStream::write(const char *ptr, size_t size) { if (!is_writable()) { return -1; } #if defined(_WIN32) && !defined(_WIN64) size = (std::min)(size, static_cast<size_t>((std::numeric_limits<int>::max)())); #endif return send_socket(sock_, ptr, size, CPPHTTPLIB_SEND_FLAGS); }
O0
c
httplib::detail::SocketStream::write(char const*, unsigned long): subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq %rsi, 0x10(%rsp) movq %rdx, 0x8(%rsp) movq 0x18(%rsp), %rdi movq %rdi, (%rsp) callq 0x13b40 testb $0x1, %al jne 0x13e10 movq $-0x1, 0x20(%rsp) jmp 0x13e2d movq (%rsp), %rax movl 0x8(%rax), %edi movq 0x10(%rsp), %rsi movq 0x8(%rsp), %rdx xorl %ecx, %ecx callq 0x18170 movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rax addq $0x28, %rsp retq nopw (%rax,%rax)
_ZN7httplib6detail12SocketStream5writeEPKcm: sub rsp, 28h mov [rsp+28h+var_10], rdi mov qword ptr [rsp+28h+var_18], rsi mov [rsp+28h+var_20], rdx mov rdi, [rsp+28h+var_10]; this mov [rsp+28h+var_28], rdi call _ZNK7httplib6detail12SocketStream11is_writableEv; httplib::detail::SocketStream::is_writable(void) test al, 1 jnz short loc_13E10 mov [rsp+28h+var_8], 0FFFFFFFFFFFFFFFFh jmp short loc_13E2D loc_13E10: mov rax, [rsp+28h+var_28] mov edi, [rax+8]; this mov rsi, qword ptr [rsp+28h+var_18]; int mov rdx, [rsp+28h+var_20]; void * xor ecx, ecx; unsigned __int64 call _ZN7httplib6detail11send_socketEiPKvmi; httplib::detail::send_socket(int,void const*,ulong,int) mov [rsp+28h+var_8], rax loc_13E2D: mov rax, [rsp+28h+var_8] add rsp, 28h retn
long long httplib::detail::SocketStream::write( httplib::detail::SocketStream *this, const char *a2, const void *a3, long long a4) { int v4; // r8d if ( (httplib::detail::SocketStream::is_writable(this, (long long)a2, (long long)a3, a4) & 1) != 0 ) return httplib::detail::send_socket((httplib::detail *)*((unsigned int *)this + 2), (int)a2, a3, 0LL, v4); else return -1LL; }
write: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV qword ptr [RSP + 0x10],RSI MOV qword ptr [RSP + 0x8],RDX MOV RDI,qword ptr [RSP + 0x18] MOV qword ptr [RSP],RDI CALL 0x00113b40 TEST AL,0x1 JNZ 0x00113e10 MOV qword ptr [RSP + 0x20],-0x1 JMP 0x00113e2d LAB_00113e10: MOV RAX,qword ptr [RSP] MOV EDI,dword ptr [RAX + 0x8] MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x8] XOR ECX,ECX CALL 0x00118170 MOV qword ptr [RSP + 0x20],RAX LAB_00113e2d: MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0x28 RET
/* httplib::detail::SocketStream::write(char const*, unsigned long) */ int8 __thiscall httplib::detail::SocketStream::write(SocketStream *this,char *param_1,ulong param_2) { ulong uVar1; int8 local_8; uVar1 = is_writable(this); if ((uVar1 & 1) == 0) { local_8 = 0xffffffffffffffff; } else { local_8 = send_socket(*(int *)(this + 8),param_1,param_2,0); } return local_8; }
38,934
js_bjson_read
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_bjson_read(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { uint8_t *buf; uint64_t pos, len; JSValue obj; size_t size; int flags; if (JS_ToIndex(ctx, &pos, argv[1])) return JS_EXCEPTION; if (JS_ToIndex(ctx, &len, argv[2])) return JS_EXCEPTION; if (JS_ToInt32(ctx, &flags, argv[3])) return JS_EXCEPTION; buf = JS_GetArrayBuffer(ctx, &size, argv[0]); if (!buf) return JS_EXCEPTION; if (pos + len > size) return JS_ThrowRangeError(ctx, "array buffer overflow"); obj = JS_ReadObject(ctx, buf + pos, len, flags); return obj; }
O1
c
js_bjson_read: pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %r8, %r15 movq %rdi, %r14 movq 0x10(%r8), %rdx movq 0x18(%r8), %rcx leaq 0x18(%rsp), %rsi callq 0x26e5b movl $0x6, %ebx testl %eax, %eax jne 0x1a503 movq 0x20(%r15), %rdx movq 0x28(%r15), %rcx leaq 0x10(%rsp), %rsi movq %r14, %rdi callq 0x26e5b testl %eax, %eax jne 0x1a503 movq 0x30(%r15), %rdx movq 0x38(%r15), %rcx leaq 0x4(%rsp), %rsi movq %r14, %rdi callq 0x26d9c testl %eax, %eax je 0x1a51a xorl %eax, %eax xorl %r15d, %r15d movl %eax, %eax orq %r15, %rax movq %rbx, %rdx addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq (%r15), %rdx movq 0x8(%r15), %rcx leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x3836d testq %rax, %rax je 0x1a503 movabsq $-0x100000000, %r15 # imm = 0xFFFFFFFF00000000 movq 0x18(%rsp), %rcx movq 0x10(%rsp), %rdx leaq (%rdx,%rcx), %rsi cmpq 0x8(%rsp), %rsi jbe 0x1a565 leaq 0x7ff31(%rip), %rsi # 0x9a48a movq %r14, %rdi xorl %eax, %eax callq 0x1fec9 jmp 0x1a577 addq %rcx, %rax movl 0x4(%rsp), %ecx movq %r14, %rdi movq %rax, %rsi callq 0x3204b movq %rdx, %rbx andq %rax, %r15 jmp 0x1a508
js_bjson_read: push r15 push r14 push rbx sub rsp, 20h mov r15, r8 mov r14, rdi mov rdx, [r8+10h] mov rcx, [r8+18h] lea rsi, [rsp+38h+var_20] call JS_ToIndex mov ebx, 6 test eax, eax jnz short loc_1A503 mov rdx, [r15+20h] mov rcx, [r15+28h] lea rsi, [rsp+38h+var_28] mov rdi, r14 call JS_ToIndex test eax, eax jnz short loc_1A503 mov rdx, [r15+30h] mov rcx, [r15+38h] lea rsi, [rsp+38h+var_34] mov rdi, r14 call JS_ToInt32 test eax, eax jz short loc_1A51A loc_1A503: xor eax, eax xor r15d, r15d loc_1A508: mov eax, eax or rax, r15 mov rdx, rbx add rsp, 20h pop rbx pop r14 pop r15 retn loc_1A51A: mov rdx, [r15] mov rcx, [r15+8] lea rsi, [rsp+38h+var_30] mov rdi, r14 call JS_GetArrayBuffer test rax, rax jz short loc_1A503 mov r15, 0FFFFFFFF00000000h mov rcx, [rsp+38h+var_20] mov rdx, [rsp+38h+var_28] lea rsi, [rdx+rcx] cmp rsi, [rsp+38h+var_30] jbe short loc_1A565 lea rsi, aReadWriteArray+0Bh; "array buffer overflow" mov rdi, r14 xor eax, eax call JS_ThrowRangeError jmp short loc_1A577 loc_1A565: add rax, rcx mov ecx, [rsp+38h+var_34] mov rdi, r14 mov rsi, rax call JS_ReadObject loc_1A577: mov rbx, rdx and r15, rax jmp short loc_1A508
unsigned long long js_bjson_read(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { long long Object; // rax unsigned long long v7; // r15 long long ArrayBuffer; // rax int v10; // r8d int v11; // r9d unsigned int v12; // [rsp+4h] [rbp-34h] BYREF unsigned long long v13; // [rsp+8h] [rbp-30h] BYREF long long v14; // [rsp+10h] [rbp-28h] BYREF _QWORD v15[4]; // [rsp+18h] [rbp-20h] BYREF if ( (unsigned int)JS_ToIndex(a1, v15, a5[2], a5[3]) || (unsigned int)JS_ToIndex(a1, &v14, a5[4], a5[5]) || (unsigned int)JS_ToInt32(a1, &v12, a5[6], a5[7]) || (ArrayBuffer = JS_GetArrayBuffer(a1, &v13, *a5, a5[1])) == 0 ) { LODWORD(Object) = 0; v7 = 0LL; } else { if ( v14 + v15[0] <= v13 ) Object = JS_ReadObject(a1, v15[0] + ArrayBuffer, v14, v12); else Object = JS_ThrowRangeError(a1, (unsigned int)"array buffer overflow", v14, v15[0], v10, v11); v7 = Object & 0xFFFFFFFF00000000LL; } return v7 | (unsigned int)Object; }
js_bjson_read: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV R15,R8 MOV R14,RDI MOV RDX,qword ptr [R8 + 0x10] MOV RCX,qword ptr [R8 + 0x18] LEA RSI,[RSP + 0x18] CALL 0x00126e5b MOV EBX,0x6 TEST EAX,EAX JNZ 0x0011a503 MOV RDX,qword ptr [R15 + 0x20] MOV RCX,qword ptr [R15 + 0x28] LEA RSI,[RSP + 0x10] MOV RDI,R14 CALL 0x00126e5b TEST EAX,EAX JNZ 0x0011a503 MOV RDX,qword ptr [R15 + 0x30] MOV RCX,qword ptr [R15 + 0x38] LEA RSI,[RSP + 0x4] MOV RDI,R14 CALL 0x00126d9c TEST EAX,EAX JZ 0x0011a51a LAB_0011a503: XOR EAX,EAX XOR R15D,R15D LAB_0011a508: MOV EAX,EAX OR RAX,R15 MOV RDX,RBX ADD RSP,0x20 POP RBX POP R14 POP R15 RET LAB_0011a51a: MOV RDX,qword ptr [R15] MOV RCX,qword ptr [R15 + 0x8] LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x0013836d TEST RAX,RAX JZ 0x0011a503 MOV R15,-0x100000000 MOV RCX,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x10] LEA RSI,[RDX + RCX*0x1] CMP RSI,qword ptr [RSP + 0x8] JBE 0x0011a565 LEA RSI,[0x19a48a] MOV RDI,R14 XOR EAX,EAX CALL 0x0011fec9 JMP 0x0011a577 LAB_0011a565: ADD RAX,RCX MOV ECX,dword ptr [RSP + 0x4] MOV RDI,R14 MOV RSI,RAX CALL 0x0013204b LAB_0011a577: MOV RBX,RDX AND R15,RAX JMP 0x0011a508
int1 [16] js_bjson_read(int8 param_1) { int iVar1; long lVar2; int8 *in_R8; ulong uVar3; int1 auVar4 [16]; int1 auVar5 [16]; int4 local_34; ulong local_30; long local_28; long local_20; iVar1 = JS_ToIndex(param_1,&local_20,in_R8[2],in_R8[3]); if (iVar1 == 0) { iVar1 = JS_ToIndex(param_1,&local_28,in_R8[4],in_R8[5]); if (iVar1 == 0) { iVar1 = JS_ToInt32(param_1,&local_34,in_R8[6],in_R8[7]); if (iVar1 == 0) { lVar2 = JS_GetArrayBuffer(param_1,&local_30,*in_R8,in_R8[1]); if (lVar2 != 0) { if (local_30 < (ulong)(local_28 + local_20)) { auVar5 = JS_ThrowRangeError(param_1,"array buffer overflow"); } else { auVar5 = JS_ReadObject(param_1,lVar2 + local_20,local_28,local_34); } uVar3 = auVar5._0_8_ & 0xffffffff00000000; goto LAB_0011a508; } } } } auVar5 = ZEXT816(6) << 0x40; uVar3 = 0; LAB_0011a508: auVar4._0_8_ = auVar5._0_8_ & 0xffffffff | uVar3; auVar4._8_8_ = auVar5._8_8_; return auVar4; }
38,935
mcp::request::to_json[abi:cxx11]() const
hkr04[P]cpp-mcp/include/mcp_message.h
json to_json() const { json j = { {"jsonrpc", jsonrpc}, {"method", method} }; if (!params.empty()) { j["params"] = params; } if (!is_notification()) { j["id"] = id; } return j; }
O2
c
mcp::request::to_json[abi:cxx11]() const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xb8, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x32847(%rip), %rsi # 0x4b6e6 leaq 0x58(%rsp), %rdi callq 0x18c36 leaq 0x70(%rsp), %rdi movq %r14, %rsi callq 0x26422 leaq 0x88(%rsp), %r15 leaq 0x58(%rsp), %rsi pushq $0x2 popq %rdx movq %r15, %rdi callq 0xcafe leaq 0xa0(%rsp), %r15 leaq 0x327b7(%rip), %rsi # 0x4b694 leaq 0x28(%rsp), %rdi callq 0x2660c leaq 0x40(%rsp), %rdi leaq 0x30(%r14), %rsi callq 0x26422 leaq 0x28(%rsp), %rsi pushq $0x2 popq %rdx movq %r15, %rdi callq 0xcafe leaq 0x88(%rsp), %rsi pushq $0x2 popq %rdx pushq $0x1 popq %rcx pushq $0x2 popq %r8 movq %rbx, %rdi callq 0xcb26 pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0x88, %rdi callq 0xdc84 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x18f23 pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0x28, %rdi callq 0xdc84 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x18f41 pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0x58, %rdi callq 0xdc84 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x18f5c leaq 0x50(%r14), %r15 movq %r15, %rdi callq 0x2658a testb %al, %al jne 0x18fc1 leaq 0x18(%rsp), %rdi movq %r15, %rsi callq 0xcc82 leaq 0x32757(%rip), %rsi # 0x4b6ee movq %rbx, %rdi callq 0xcdcc movb (%rax), %cl leaq 0x18(%rsp), %rdi movb (%rdi), %dl movb %dl, (%rax) movb %cl, (%rdi) movq 0x8(%rax), %rcx movq 0x8(%rdi), %rdx movq %rdx, 0x8(%rax) movq %rcx, 0x8(%rdi) callq 0xdc84 cmpb $0x0, 0x20(%r14) je 0x1900a addq $0x20, %r14 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0xcc82 leaq 0x32a66(%rip), %rsi # 0x4ba46 movq %rbx, %rdi callq 0xcdcc movb (%rax), %cl leaq 0x8(%rsp), %rdi movb (%rdi), %dl movb %dl, (%rax) movb %cl, (%rdi) movq 0x8(%rax), %rcx movq 0x8(%rdi), %rdx movq %rdx, 0x8(%rax) movq %rcx, 0x8(%rdi) callq 0xdc84 movq %rbx, %rax addq $0xb8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %r14 leaq 0x18(%rsp), %rdi jmp 0x1902e movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0xdc84 jmp 0x190e9 movq %rax, %r14 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x88, %rdi callq 0xdc84 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x1903e xorl %ebx, %ebx jmp 0x19061 movq %rax, %r14 movb $0x1, %bl pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x28, %rdi callq 0xdc84 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x19065 jmp 0x19094 movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0xdc84 jmp 0x19092 jmp 0x1908f movq %rax, %r14 movb $0x1, %bl pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x58, %rdi callq 0xdc84 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x19098 leaq 0x88(%rsp), %r12 cmpq %r15, %r12 setne %al andb %al, %bl cmpb $0x1, %bl jne 0x190f1 addq $-0x18, %r15 movq %r15, %rdi callq 0xdc84 cmpq %r12, %r15 jne 0x190c4 jmp 0x190f1 movq %rax, %r14 leaq 0x58(%rsp), %rdi jmp 0x190ec movq %rax, %r14 jmp 0x190f1 movq %rax, %r14 movq %rbx, %rdi callq 0xdc84 movq %r14, %rdi callq 0xaac0 nop
_ZNK3mcp7request7to_jsonB5cxx11Ev: push r15 push r14 push r12 push rbx sub rsp, 0B8h mov r14, rsi mov rbx, rdi lea rsi, aJsonrpc; "jsonrpc" lea rdi, [rsp+0D8h+var_80] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+0D8h+var_68] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ lea r15, [rsp+0D8h+var_50] lea rsi, [rsp+0D8h+var_80] push 2 pop rdx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea r15, [rsp+0D8h+var_38] lea rsi, aMethod; "method" lea rdi, [rsp+0D8h+var_B0] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+0D8h+var_98] lea rsi, [r14+30h] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ lea rsi, [rsp+0D8h+var_B0] push 2 pop rdx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea rsi, [rsp+0D8h+var_50] push 2 pop rdx push 1 pop rcx push 2 pop r8 mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) push 18h pop r15 loc_18F23: lea rdi, [rsp+r15+0D8h+var_D8] add rdi, 88h 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() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_18F23 push 18h pop r15 loc_18F41: lea rdi, [rsp+r15+0D8h+var_D8] add rdi, 28h ; '(' 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() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_18F41 push 18h pop r15 loc_18F5C: lea rdi, [rsp+r15+0D8h+var_D8] add rdi, 58h ; 'X' 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() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_18F5C lea r15, [r14+50h] mov rdi, r15 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5emptyEv; 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>::empty(void) test al, al jnz short loc_18FC1 lea rdi, [rsp+0D8h+var_C0] mov rsi, r15 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 rsi, aParams; "params" mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; 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[]<char const>(char const *) mov cl, [rax] lea rdi, [rsp+0D8h+var_C0] mov dl, [rdi] mov [rax], dl mov [rdi], cl mov rcx, [rax+8] mov rdx, [rdi+8] mov [rax+8], rdx mov [rdi+8], rcx 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_18FC1: cmp byte ptr [r14+20h], 0 jz short loc_1900A add r14, 20h ; ' ' lea rdi, [rsp+0D8h+var_D0] mov rsi, r14 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 rsi, aCannotSendMess+25h; "id" mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; 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[]<char const>(char const *) mov cl, [rax] lea rdi, [rsp+0D8h+var_D0] mov dl, [rdi] mov [rax], dl mov [rdi], cl mov rcx, [rax+8] mov rdx, [rdi+8] mov [rax+8], rdx mov [rdi+8], rcx 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_1900A: mov rax, rbx add rsp, 0B8h pop rbx pop r12 pop r14 pop r15 retn mov r14, rax lea rdi, [rsp+arg_10] jmp short loc_1902E mov r14, rax lea rdi, [rsp+arg_0] loc_1902E: 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 loc_190E9 mov r14, rax push 18h pop rbx loc_1903E: lea rdi, [rsp+rbx+0] add rdi, 88h 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() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_1903E xor ebx, ebx jmp short loc_19061 mov r14, rax mov bl, 1 loc_19061: push 18h pop r12 loc_19065: lea rdi, [rsp+r12+0] add rdi, 28h ; '(' 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() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_19065 jmp short loc_19094 mov r14, rax lea rdi, [rsp+arg_20] 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_19092 jmp short $+2 loc_1908F: mov r14, rax loc_19092: mov bl, 1 loc_19094: push 18h pop r12 loc_19098: lea rdi, [rsp+r12+0] add rdi, 58h ; 'X' 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() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_19098 lea r12, [rsp+arg_80] cmp r12, r15 setnz al and bl, al cmp bl, 1 jnz short loc_190F1 loc_190C4: add r15, 0FFFFFFFFFFFFFFE8h 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() cmp r15, r12 jnz short loc_190C4 jmp short loc_190F1 mov r14, rax lea rdi, [rsp+arg_50] jmp short loc_190EC mov r14, rax jmp short loc_190F1 mov r14, rax loc_190E9: mov rdi, rbx loc_190EC: 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_190F1: mov rdi, r14 call __Unwind_Resume
long long mcp::request::to_json[abi:cxx11](long long a1, long long a2) { long long i; // r15 long long j; // r15 long long k; // r15 int v5; // edx int v6; // ecx int v7; // r8d int v8; // r9d long long v9; // rax char v10; // cl long long v11; // rcx long long v12; // rax char v13; // cl long long v14; // rcx _BYTE v16[8]; // [rsp+8h] [rbp-D0h] BYREF long long v17; // [rsp+10h] [rbp-C8h] _BYTE v18[8]; // [rsp+18h] [rbp-C0h] BYREF long long v19; // [rsp+20h] [rbp-B8h] _BYTE v20[24]; // [rsp+28h] [rbp-B0h] BYREF _BYTE v21[24]; // [rsp+40h] [rbp-98h] BYREF _BYTE v22[24]; // [rsp+58h] [rbp-80h] BYREF _BYTE v23[24]; // [rsp+70h] [rbp-68h] BYREF _BYTE v24[24]; // [rsp+88h] [rbp-50h] BYREF _BYTE v25[56]; // [rsp+A0h] [rbp-38h] BYREF ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v22); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_( v23, a2); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( (long long)v24, (long long)v22, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_( v20, "method"); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_( v21, a2 + 48); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( (long long)v25, (long long)v20, 2LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( a1, v24, 2LL, 1LL, 2LL); for ( i = 24LL; i != -24; i -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v24[i]); for ( j = 24LL; j != -24; j -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v20[j]); for ( k = 24LL; k != -24; k -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v22[k]); if ( !(unsigned __int8)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>::empty(a2 + 80) ) { 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)v18, (unsigned __int8 *)(a2 + 80), v5, v6, v7, v8); v9 = 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[]<char const>( a1, (long long)"params"); v10 = *(_BYTE *)v9; *(_BYTE *)v9 = v18[0]; v18[0] = v10; v11 = *(_QWORD *)(v9 + 8); *(_QWORD *)(v9 + 8) = v19; v19 = 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(v18); } if ( *(_BYTE *)(a2 + 32) ) { 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)v16, (unsigned __int8 *)(a2 + 32), v5, v6, v7, v8); v12 = 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[]<char const>( a1, (long long)"id"); v13 = *(_BYTE *)v12; *(_BYTE *)v12 = v16[0]; v16[0] = v13; v14 = *(_QWORD *)(v12 + 8); *(_QWORD *)(v12 + 8) = v17; v17 = v14; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v16); } return a1; }
to_json[abi:cxx11]: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xb8 MOV R14,RSI MOV RBX,RDI LAB_00118e98: LEA RSI,[0x14b6e6] LEA RDI,[RSP + 0x58] CALL 0x00118c36 LEA RDI,[RSP + 0x70] LAB_00118eae: MOV RSI,R14 CALL 0x00126422 LAB_00118eb6: LEA R15,[RSP + 0x88] LEA RSI,[RSP + 0x58] PUSH 0x2 POP RDX MOV RDI,R15 CALL 0x0010cafe LEA R15,[RSP + 0xa0] LAB_00118ed6: LEA RSI,[0x14b694] LEA RDI,[RSP + 0x28] CALL 0x0012660c LEA RDI,[RSP + 0x40] LEA RSI,[R14 + 0x30] LAB_00118ef0: CALL 0x00126422 LAB_00118ef5: LEA RSI,[RSP + 0x28] PUSH 0x2 POP RDX MOV RDI,R15 CALL 0x0010cafe LAB_00118f05: LEA RSI,[RSP + 0x88] PUSH 0x2 POP RDX PUSH 0x1 POP RCX PUSH 0x2 POP R8 MOV RDI,RBX CALL 0x0010cb26 PUSH 0x18 POP R15 LAB_00118f23: LEA RDI,[RSP + R15*0x1] ADD RDI,0x88 CALL 0x0010dc84 ADD R15,-0x18 CMP R15,-0x18 JNZ 0x00118f23 PUSH 0x18 POP R15 LAB_00118f41: LEA RDI,[RSP + R15*0x1] ADD RDI,0x28 CALL 0x0010dc84 ADD R15,-0x18 CMP R15,-0x18 JNZ 0x00118f41 PUSH 0x18 POP R15 LAB_00118f5c: LEA RDI,[RSP + R15*0x1] ADD RDI,0x58 CALL 0x0010dc84 ADD R15,-0x18 CMP R15,-0x18 JNZ 0x00118f5c LEA R15,[R14 + 0x50] MOV RDI,R15 CALL 0x0012658a TEST AL,AL JNZ 0x00118fc1 LAB_00118f83: LEA RDI,[RSP + 0x18] MOV RSI,R15 CALL 0x0010cc82 LAB_00118f90: LEA RSI,[0x14b6ee] MOV RDI,RBX CALL 0x0010cdcc MOV CL,byte ptr [RAX] LEA RDI,[RSP + 0x18] MOV DL,byte ptr [RDI] MOV byte ptr [RAX],DL MOV byte ptr [RDI],CL MOV RCX,qword ptr [RAX + 0x8] MOV RDX,qword ptr [RDI + 0x8] MOV qword ptr [RAX + 0x8],RDX MOV qword ptr [RDI + 0x8],RCX CALL 0x0010dc84 LAB_00118fc1: CMP byte ptr [R14 + 0x20],0x0 JZ 0x0011900a LAB_00118fc8: ADD R14,0x20 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x0010cc82 LAB_00118fd9: LEA RSI,[0x14ba46] MOV RDI,RBX CALL 0x0010cdcc LAB_00118fe8: MOV CL,byte ptr [RAX] LEA RDI,[RSP + 0x8] MOV DL,byte ptr [RDI] MOV byte ptr [RAX],DL MOV byte ptr [RDI],CL MOV RCX,qword ptr [RAX + 0x8] MOV RDX,qword ptr [RDI + 0x8] MOV qword ptr [RAX + 0x8],RDX MOV qword ptr [RDI + 0x8],RCX CALL 0x0010dc84 LAB_0011900a: MOV RAX,RBX ADD RSP,0xb8 POP RBX POP R12 POP R14 POP R15 RET
/* mcp::request::to_json[abi:cxx11]() const */ void mcp::request::to_json_abi_cxx11_(void) { basic_json bVar1; int8 uVar2; char cVar3; basic_json *pbVar4; long in_RSI; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *in_RDI; long lVar5; basic_json local_d0 [8]; int8 local_c8; basic_json local_c0 [8]; int8 local_b8; data local_b0 [24]; int1 local_98 [24]; data local_80 [24]; int1 local_68 [24]; data local_50 [24]; int1 local_38 [24]; /* try { // try from 00118e98 to 00118ea8 has its CatchHandler @ 001190e1 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_80,"jsonrpc"); /* try { // try from 00118eae to 00118eb5 has its CatchHandler @ 001190d7 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ (local_68); /* try { // try from 00118eb6 to 00118ecd has its CatchHandler @ 0011908f */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_50,local_80,2); /* try { // try from 00118ed6 to 00118ee6 has its CatchHandler @ 0011908d */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_b0,"method"); /* try { // try from 00118ef0 to 00118ef4 has its CatchHandler @ 0011907e */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ (local_98,in_RSI + 0x30); /* try { // try from 00118ef5 to 00118f04 has its CatchHandler @ 0011905c */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_38,local_b0,2); /* try { // try from 00118f05 to 00118f1e has its CatchHandler @ 00119038 */ 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(); lVar5 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_50 + lVar5); lVar5 = lVar5 + -0x18; } while (lVar5 != -0x18); lVar5 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_b0 + lVar5); lVar5 = lVar5 + -0x18; } while (lVar5 != -0x18); lVar5 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_80 + lVar5); lVar5 = lVar5 + -0x18; } while (lVar5 != -0x18); cVar3 = 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> ::empty((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)(in_RSI + 0x50)); if (cVar3 == '\0') { /* try { // try from 00118f83 to 00118f8f has its CatchHandler @ 001190e6 */ 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((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_c0,(basic_json *)(in_RSI + 0x50)); /* try { // try from 00118f90 to 00118f9e has its CatchHandler @ 0011901c */ pbVar4 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(in_RDI,"params"); bVar1 = *pbVar4; *pbVar4 = local_c0[0]; uVar2 = *(int8 *)(pbVar4 + 8); *(int8 *)(pbVar4 + 8) = local_b8; local_c0[0] = bVar1; local_b8 = uVar2; 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_c0); } if (*(char *)(in_RSI + 0x20) != '\0') { /* try { // try from 00118fc8 to 00118fd8 has its CatchHandler @ 001190e6 */ 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((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_d0,(basic_json *)(in_RSI + 0x20)); /* try { // try from 00118fd9 to 00118fe7 has its CatchHandler @ 00119026 */ pbVar4 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(in_RDI,"id"); bVar1 = *pbVar4; *pbVar4 = local_d0[0]; uVar2 = *(int8 *)(pbVar4 + 8); *(int8 *)(pbVar4 + 8) = local_c8; local_d0[0] = bVar1; local_c8 = uVar2; 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_d0); } return; }
38,936
string_strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/common.cpp
std::string string_strip(const std::string & str) { size_t start = 0; size_t end = str.size(); while (start < end && std::isspace(str[start])) { start++; } while (end > start && std::isspace(str[end - 1])) { end--; } return str.substr(start, end - start); }
O1
cpp
string_strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x8(%rsi), %r13 testq %r13, %r13 je 0x762ae movq (%r14), %r12 xorl %r15d, %r15d movsbl (%r12,%r15), %edi callq 0x1b0c0 testl %eax, %eax je 0x762b1 incq %r15 cmpq %r15, %r13 jne 0x76293 movq %r13, %r15 jmp 0x762b1 xorl %r15d, %r15d movq (%r14), %rbp cmpq %r13, %r15 movq %r13, %r12 cmovbq %r15, %r12 cmpq %r15, %r13 jbe 0x762db movsbl -0x1(%rbp,%r13), %edi decq %r13 callq 0x1b0c0 testl %eax, %eax jne 0x762be incq %r13 movq %r13, %r12 subq %r15, %r12 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x1b990 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_Z12string_stripRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rsi mov rbx, rdi mov r13, [rsi+8] test r13, r13 jz short loc_762AE mov r12, [r14] xor r15d, r15d loc_76293: movsx edi, byte ptr [r12+r15] call _isspace test eax, eax jz short loc_762B1 inc r15 cmp r13, r15 jnz short loc_76293 mov r15, r13 jmp short loc_762B1 loc_762AE: xor r15d, r15d loc_762B1: mov rbp, [r14] cmp r15, r13 mov r12, r13 cmovb r12, r15 loc_762BE: cmp r13, r15 jbe short loc_762DB movsx edi, byte ptr [rbp+r13-1] dec r13 call _isspace test eax, eax jnz short loc_762BE inc r13 mov r12, r13 loc_762DB: sub r12, r15 mov rdi, rbx mov rsi, r14 mov rdx, r15 mov rcx, r12 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long string_strip(long long a1, long long *a2) { unsigned long long v3; // r13 long long v4; // r12 unsigned long long v5; // r15 long long v6; // rbp unsigned long long v7; // r12 long long v8; // rdi v3 = a2[1]; if ( v3 ) { v4 = *a2; v5 = 0LL; while ( (unsigned int)isspace((unsigned int)*(char *)(v4 + v5)) ) { if ( v3 == ++v5 ) { v5 = v3; break; } } } else { v5 = 0LL; } v6 = *a2; v7 = v3; if ( v5 < v3 ) v7 = v5; while ( v3 > v5 ) { v8 = (unsigned int)*(char *)(v6 + v3-- - 1); if ( !(unsigned int)isspace(v8) ) { v7 = v3 + 1; break; } } std::string::substr(a1, a2, v5, v7 - v5); return a1; }
string_strip: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV R13,qword ptr [RSI + 0x8] TEST R13,R13 JZ 0x001762ae MOV R12,qword ptr [R14] XOR R15D,R15D LAB_00176293: MOVSX EDI,byte ptr [R12 + R15*0x1] CALL 0x0011b0c0 TEST EAX,EAX JZ 0x001762b1 INC R15 CMP R13,R15 JNZ 0x00176293 MOV R15,R13 JMP 0x001762b1 LAB_001762ae: XOR R15D,R15D LAB_001762b1: MOV RBP,qword ptr [R14] CMP R15,R13 MOV R12,R13 CMOVC R12,R15 LAB_001762be: CMP R13,R15 JBE 0x001762db MOVSX EDI,byte ptr [RBP + R13*0x1 + -0x1] DEC R13 CALL 0x0011b0c0 TEST EAX,EAX JNZ 0x001762be INC R13 MOV R12,R13 LAB_001762db: SUB R12,R15 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV RCX,R12 CALL 0x0011b990 MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* string_strip(std::__cxx11::string const&) */ string * string_strip(string *param_1) { char *pcVar1; long lVar2; int iVar3; long *in_RSI; ulong uVar4; ulong uVar5; ulong uVar6; uVar4 = in_RSI[1]; if (uVar4 == 0) { uVar6 = 0; } else { lVar2 = *in_RSI; uVar5 = 0; do { iVar3 = isspace((int)*(char *)(lVar2 + uVar5)); uVar6 = uVar5; if (iVar3 == 0) break; uVar5 = uVar5 + 1; uVar6 = uVar4; } while (uVar4 != uVar5); } lVar2 = *in_RSI; do { if (uVar4 <= uVar6) break; pcVar1 = (char *)(lVar2 + -1 + uVar4); uVar4 = uVar4 - 1; iVar3 = isspace((int)*pcVar1); } while (iVar3 != 0); std::__cxx11::string::substr((ulong)param_1,(ulong)in_RSI); return param_1; }
38,937
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
msxemulator/build_O3/_deps/picotool-src/lib/nlohmann_json/single_include/nlohmann/json.hpp
static type_error create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %rbx leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x38b66(%rip), %rsi # 0xa6157 leaq 0x38b69(%rip), %rdx # 0xa6161 leaq 0x28(%rsp), %rdi callq 0x5c00c leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x568b2 leaq 0x78(%rsp), %r14 movq %r14, -0x10(%r14) xorl %eax, %eax movq %rax, -0x8(%r14) movb %al, (%r14) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq %rax, -0x8(%r12) movb %al, (%r12) movq 0x8(%r15), %rsi addq 0x50(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0xf6d0 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0xf170 movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0xf170 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0xf170 movq 0x68(%rsp), %rdi cmpq %r14, %rdi je 0x6d69b movq 0x78(%rsp), %rsi incq %rsi callq 0xf470 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x6d6b6 movq 0x58(%rsp), %rsi incq %rsi callq 0xf470 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x6d6cd movq 0x38(%rsp), %rsi incq %rsi callq 0xf470 movq 0x8(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x56aae leaq 0x73355(%rip), %rax # 0xe0a38 movq %rax, (%rbx) movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x6d6fd movq 0x18(%rsp), %rsi incq %rsi callq 0xf470 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x6d78b movq 0x18(%rsp), %rsi jmp 0x6d783 movq %rax, %rbx jmp 0x6d774 movq %rax, %rbx jmp 0x6d78b movq %rdx, %rbx movq %rax, %r15 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x6d74d movq 0x18(%rsp), %rsi incq %rsi callq 0xf470 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x88(%rsp), %r12 movq %r14, %rsi movq %r15, %rcx movl %ebx, %r8d movq %r12, %r9 callq 0x1035a movq (%r12), %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x6d78b movq 0x38(%rsp), %rsi incq %rsi callq 0xf470 movq %rbx, %rdi callq 0xf7d0
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r15, rdx mov ebp, esi mov rbx, rdi lea r13, [rsp+0C8h+var_90] mov [r13-10h], r13 lea rsi, aTypeError; "type_error" lea rdx, aTypeError+0Ah; "" lea rdi, [rsp+0C8h+var_A0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0C8h+var_80]; int lea rsi, [rsp+0C8h+var_A0]; int mov edx, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea r14, [rsp+0C8h+var_50] mov [r14-10h], r14 xor eax, eax mov [r14-8], rax mov [r14], al lea r12, [rsp+0C8h+var_B0] mov [r12-10h], r12 mov [r12-8], rax mov [r12], al mov rsi, [r15+8] add rsi, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rsi, qword ptr [rsp+0C8h+var_80] mov rdx, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [rsp+0C8h+var_60] mov rdx, [rsp+0C8h+var_58] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0C8h+var_60]; void * cmp rdi, r14 jz short loc_6D69B mov rsi, [rsp+0C8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6D69B: lea rax, [rsp+0C8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_6D6B6 mov rsi, [rsp+0C8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6D6B6: mov rdi, [rsp+0C8h+var_A0]; void * cmp rdi, r13 jz short loc_6D6CD mov rsi, [rsp+0C8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6D6CD: mov rdx, [rsp+0C8h+var_C0]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*) lea rax, off_E0A38 mov [rbx], rax mov rdi, [rsp+0C8h+var_C0]; void * cmp rdi, r12 jz short loc_6D6FD mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6D6FD: mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0] cmp rdi, r12 jz short loc_6D78B mov rsi, [rsp+arg_10] jmp short loc_6D783 mov rbx, rax jmp short loc_6D774 mov rbx, rax jmp short loc_6D78B mov rbx, rdx mov r15, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_6D74D mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6D74D: lea rdi, [rsp+arg_60] lea rdx, [rsp+arg_40] lea r12, [rsp+arg_80] mov rsi, r14 mov rcx, r15 mov r8d, ebx mov r9, r12 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5__cold_1 mov rbx, [r12] loc_6D774: mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_6D78B mov rsi, [rsp+arg_30] loc_6D783: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6D78B: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( nlohmann::json_abi_v3_11_3::detail::exception *this, int a2, _QWORD *a3) { char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF _QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF int v9[2]; // [rsp+48h] [rbp-80h] BYREF long long v10; // [rsp+50h] [rbp-78h] long long v11; // [rsp+58h] [rbp-70h] BYREF void *v12; // [rsp+68h] [rbp-60h] long long v13; // [rsp+70h] [rbp-58h] _QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF v7[0] = v8; std::string::_M_construct<char const*>((long long)v7, "type_error", (long long)""); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2); v12 = v14; v13 = 0LL; LOBYTE(v14[0]) = 0; v5[0] = (char *)v6; v5[1] = 0LL; LOBYTE(v6[0]) = 0; std::string::reserve(v5, v10 + a3[1]); std::string::_M_append(v5, *(_QWORD *)v9, v10); std::string::_M_append(v5, v12, v13); std::string::_M_append(v5, *a3, a3[1]); if ( v12 != v14 ) operator delete(v12, v14[0] + 1LL); if ( *(long long **)v9 != &v11 ) operator delete(*(void **)v9, v11 + 1); if ( v7[0] != v8 ) operator delete(v7[0], v8[0] + 1LL); nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]); *(_QWORD *)this = off_E0A38; if ( (_QWORD *)v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R15,RDX MOV EBP,ESI MOV RBX,RDI LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LAB_0016d5ea: LEA RSI,[0x1a6157] LEA RDX,[0x1a6161] LEA RDI,[RSP + 0x28] CALL 0x0015c00c LAB_0016d602: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x001568b2 LEA R14,[RSP + 0x78] MOV qword ptr [R14 + -0x10],R14 XOR EAX,EAX MOV qword ptr [R14 + -0x8],RAX MOV byte ptr [R14],AL LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV qword ptr [R12 + -0x8],RAX MOV byte ptr [R12],AL MOV RSI,qword ptr [R15 + 0x8] ADD RSI,qword ptr [RSP + 0x50] LAB_0016d641: LEA RDI,[RSP + 0x8] CALL 0x0010f6d0 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x8] CALL 0x0010f170 MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] LEA RDI,[RSP + 0x8] CALL 0x0010f170 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x0010f170 MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R14 JZ 0x0016d69b MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0010f470 LAB_0016d69b: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0016d6b6 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0010f470 LAB_0016d6b6: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x0016d6cd MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0010f470 LAB_0016d6cd: MOV RDX,qword ptr [RSP + 0x8] LAB_0016d6d2: MOV RDI,RBX MOV ESI,EBP CALL 0x00156aae LAB_0016d6dc: LEA RAX,[0x1e0a38] MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x0016d6fd MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0010f470 LAB_0016d6fd: MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
exception * _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (exception *param_1,int param_2,ulong *param_3) { char *local_c0; int8 local_b8; char local_b0; int7 uStack_af; long *local_a0 [2]; long local_90 [2]; long *local_80 [2]; long local_70 [2]; int1 *local_60; int8 local_58; int1 local_50; int7 uStack_4f; /* try { // try from 0016d5ea to 0016d601 has its CatchHandler @ 0016d72b */ local_a0[0] = local_90; std::__cxx11::string::_M_construct<char_const*>((string *)local_a0,"type_error",""); /* try { // try from 0016d602 to 0016d612 has its CatchHandler @ 0016d726 */ nlohmann::json_abi_v3_11_3::detail::exception::name ((exception *)local_80,(string *)local_a0,param_2); local_58 = 0; local_50 = 0; local_b8 = 0; local_b0 = '\0'; /* try { // try from 0016d641 to 0016d683 has its CatchHandler @ 0016d730 */ local_c0 = &local_b0; local_60 = &local_50; std::__cxx11::string::reserve((ulong)&local_c0); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60); std::__cxx11::string::_M_append((char *)&local_c0,*param_3); if (local_60 != &local_50) { operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1); } if (local_80[0] != local_70) { operator_delete(local_80[0],local_70[0] + 1); } if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } /* try { // try from 0016d6d2 to 0016d6db has its CatchHandler @ 0016d712 */ nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0); *(int ***)param_1 = &PTR__exception_001e0a38; if (local_c0 != &local_b0) { operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1); } return param_1; }
38,938
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
monkey531[P]llama/common/json.hpp
inline void grisu2(char* buf, int& len, int& decimal_exponent, diyfp m_minus, diyfp v, diyfp m_plus) { JSON_ASSERT(m_plus.e == m_minus.e); JSON_ASSERT(m_plus.e == v.e); // --------(-----------------------+-----------------------)-------- (A) // m- v m+ // // --------------------(-----------+-----------------------)-------- (B) // m- v m+ // // First scale v (and m- and m+) such that the exponent is in the range // [alpha, gamma]. const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e); const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k // The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma] const diyfp w = diyfp::mul(v, c_minus_k); const diyfp w_minus = diyfp::mul(m_minus, c_minus_k); const diyfp w_plus = diyfp::mul(m_plus, c_minus_k); // ----(---+---)---------------(---+---)---------------(---+---)---- // w- w w+ // = c*m- = c*v = c*m+ // // diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and // w+ are now off by a small amount. // In fact: // // w - v * 10^k < 1 ulp // // To account for this inaccuracy, add resp. subtract 1 ulp. // // --------+---[---------------(---+---)---------------]---+-------- // w- M- w M+ w+ // // Now any number in [M-, M+] (bounds included) will round to w when input, // regardless of how the input rounding algorithm breaks ties. // // And digit_gen generates the shortest possible such number in [M-, M+]. // Note that this does not mean that Grisu2 always generates the shortest // possible number in the interval (m-, m+). const diyfp M_minus(w_minus.f + 1, w_minus.e); const diyfp M_plus (w_plus.f - 1, w_plus.e ); decimal_exponent = -cached.k; // = -(-k) = k grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus); }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rcx, 0x58(%rsp) movl %r8d, 0x60(%rsp) cmpl %r8d, 0xc8(%rsp) jne 0x87cc8 movq %rdi, 0x20(%rsp) movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) leaq 0xb0(%rsp), %r13 cmpl %r8d, 0x8(%r13) jne 0x87ce4 movl %r8d, %edi callq 0x87d9d movq %rdx, %r12 leaq 0x68(%rsp), %r14 movq %rax, (%r14) movl %r12d, 0x8(%r14) movq %r13, %rdi movq %r14, %rsi callq 0x87ed2 movq %rax, %r15 movl %edx, %ebx leaq 0x58(%rsp), %rdi movq %r14, %rsi callq 0x87ed2 movq %rax, %r13 movl %edx, %ebp leaq 0xc0(%rsp), %rdi movq %r14, %rsi callq 0x87ed2 incq %r13 decq %rax shrq $0x20, %r12 negl %r12d movq 0x30(%rsp), %rcx movl %r12d, (%rcx) movq %r15, 0x48(%rsp) movl %ebx, 0x50(%rsp) movq %rax, 0x38(%rsp) movl %edx, 0x40(%rsp) movups 0x38(%rsp), %xmm0 movups %xmm0, 0x10(%rsp) movups 0x48(%rsp), %xmm0 movups %xmm0, (%rsp) movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi movq %rcx, %rdx movq %r13, %rcx movl %ebp, %r8d callq 0x87f2e addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x280fd(%rip), %rdi # 0xafdcc leaq 0x22534(%rip), %rdx # 0xaa20a leaq 0x2d908(%rip), %rcx # 0xb55e5 movl $0x454b, %esi # imm = 0x454B jmp 0x87cfe leaq 0x280e1(%rip), %rdi # 0xafdcc leaq 0x22518(%rip), %rdx # 0xaa20a leaq 0x2d902(%rip), %rcx # 0xb55fb movl $0x454c, %esi # imm = 0x454C xorl %eax, %eax callq 0x23ee0 nop
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl6grisu2EPcRiS4_NS2_5diyfpES5_S5_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov [rsp+0A8h+var_50], rcx mov [rsp+0A8h+var_48], r8d cmp [rsp+0A8h+arg_18], r8d jnz loc_87CC8 mov [rsp+0A8h+var_88], rdi mov [rsp+0A8h+var_80], rsi mov [rsp+0A8h+var_78], rdx lea r13, [rsp+0A8h+arg_0] cmp [r13+8], r8d jnz loc_87CE4 mov edi, r8d; this call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int) mov r12, rdx lea r14, [rsp+0A8h+var_40] mov [r14], rax mov [r14+8], r12d mov rdi, r13 mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) mov r15, rax mov ebx, edx lea rdi, [rsp+0A8h+var_50] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) mov r13, rax mov ebp, edx lea rdi, [rsp+0A8h+arg_10] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) inc r13 dec rax shr r12, 20h neg r12d mov rcx, [rsp+0A8h+var_78] mov [rcx], r12d mov qword ptr [rsp+0A8h+var_60], r15 mov dword ptr [rsp+0A8h+var_60+8], ebx mov qword ptr [rsp+0A8h+var_70], rax mov dword ptr [rsp+0A8h+var_70+8], edx movups xmm0, [rsp+0A8h+var_70] movups [rsp+0A8h+var_98], xmm0 movups xmm0, [rsp+0A8h+var_60] movups [rsp+0A8h+var_A8], xmm0 mov rdi, [rsp+0A8h+var_88] mov rsi, [rsp+0A8h+var_80] mov rdx, rcx mov rcx, r13 mov r8d, ebp call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl16grisu2_digit_genEPcRiS4_NS2_5diyfpES5_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(char *,int &,int &,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_87CC8: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMPlusEMMinusE; "m_plus.e == m_minus.e" mov esi, 454Bh jmp short loc_87CFE loc_87CE4: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMPlusEVE; "m_plus.e == v.e" mov esi, 454Ch loc_87CFE: xor eax, eax call _ggml_abort nop
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2( int a1, int a2, _DWORD *a3, long long a4, unsigned int a5, long long a6, char a7, int a8, char a9, int a10) { long long cached_power_for_binary_exponent; // rax int v11; // rdx^4 int v12; // r12^4 int v13; // edx char v14; // r15 int v15; // edx int v16; // ebx int v17; // r13d int v18; // edx int v19; // ebp char v20; // al int v21; // edx int v22; // r9d long long v25; // [rsp+58h] [rbp-50h] BYREF unsigned int v26; // [rsp+60h] [rbp-48h] long long v27; // [rsp+68h] [rbp-40h] BYREF int v28; // [rsp+70h] [rbp-38h] v25 = a4; v26 = a5; if ( a10 == a5 ) { if ( a8 == a5 ) { cached_power_for_binary_exponent = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent( (nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)a5, a2); v12 = v11; v27 = cached_power_for_binary_exponent; v28 = v13; v14 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a7, &v27); v16 = v15; v17 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&v25, &v27); v19 = v18; v20 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a9, &v27); *a3 = -v12; return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen( a1, a2, (_DWORD)a3, v17 + 1, v19, v22, v14, v16, v20 - 1, v21); } ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17740LL, "GGML_ASSERT(%s) failed", "m_plus.e == v.e"); } else { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17739LL, "GGML_ASSERT(%s) failed", "m_plus.e == m_minus.e"); } return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"); }
grisu2: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV qword ptr [RSP + 0x58],RCX MOV dword ptr [RSP + 0x60],R8D CMP dword ptr [RSP + 0xc8],R8D JNZ 0x00187cc8 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x30],RDX LEA R13,[RSP + 0xb0] CMP dword ptr [R13 + 0x8],R8D JNZ 0x00187ce4 MOV EDI,R8D CALL 0x00187d9d MOV R12,RDX LEA R14,[RSP + 0x68] MOV qword ptr [R14],RAX MOV dword ptr [R14 + 0x8],R12D MOV RDI,R13 MOV RSI,R14 CALL 0x00187ed2 MOV R15,RAX MOV EBX,EDX LEA RDI,[RSP + 0x58] MOV RSI,R14 CALL 0x00187ed2 MOV R13,RAX MOV EBP,EDX LEA RDI,[RSP + 0xc0] MOV RSI,R14 CALL 0x00187ed2 INC R13 DEC RAX SHR R12,0x20 NEG R12D MOV RCX,qword ptr [RSP + 0x30] MOV dword ptr [RCX],R12D MOV qword ptr [RSP + 0x48],R15 MOV dword ptr [RSP + 0x50],EBX MOV qword ptr [RSP + 0x38],RAX MOV dword ptr [RSP + 0x40],EDX MOVUPS XMM0,xmmword ptr [RSP + 0x38] MOVUPS xmmword ptr [RSP + 0x10],XMM0 MOVUPS XMM0,xmmword ptr [RSP + 0x48] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,RCX MOV RCX,R13 MOV R8D,EBP CALL 0x00187f2e ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00187cc8: LEA RDI,[0x1afdcc] LEA RDX,[0x1aa20a] LEA RCX,[0x1b55e5] MOV ESI,0x454b JMP 0x00187cfe LAB_00187ce4: LEA RDI,[0x1afdcc] LEA RDX,[0x1aa20a] LEA RCX,[0x1b55fb] MOV ESI,0x454c LAB_00187cfe: XOR EAX,EAX CALL 0x00123ee0
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) */ void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2 (int8 param_1,int8 param_2,int *param_3,int8 param_4,int param_5, int8 param_6,int8 param_7,int param_8,int8 param_9,int param_10) { int4 uVar1; char *pcVar2; int4 extraout_EDX; int8 uVar3; int1 auVar4 [16]; int1 auVar5 [12]; int1 auVar6 [12]; int4 uStack_64; int8 local_50; int local_48; int8 local_40; int4 local_38; local_50 = param_4; local_48 = param_5; if (param_10 == param_5) { if (param_8 == param_5) { auVar4 = get_cached_power_for_binary_exponent(param_5); local_40 = auVar4._0_8_; local_38 = auVar4._8_4_; uVar1 = diyfp::mul((diyfp *)&param_7,(diyfp *)&local_40); auVar5 = diyfp::mul((diyfp *)&local_50,(diyfp *)&local_40); auVar6 = diyfp::mul((diyfp *)&param_9,(diyfp *)&local_40); *param_3 = -auVar4._12_4_; grisu2_digit_gen(param_1,param_2,param_3,auVar5._0_8_ + 1,auVar5._8_4_,param_6,uVar1, extraout_EDX,auVar6._0_8_ + -1,CONCAT44(uStack_64,auVar6._8_4_)); return; } pcVar2 = "m_plus.e == v.e"; uVar3 = 0x454c; } else { pcVar2 = "m_plus.e == m_minus.e"; uVar3 = 0x454b; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); }
38,939
my_get_err_msg
eloqsql/mysys/my_error.c
const char *my_get_err_msg(uint nr) { const char *format; struct my_err_head *meh_p; /* Search for the range this error is in. */ for (meh_p= my_errmsgs_list; meh_p; meh_p= meh_p->meh_next) if (nr <= meh_p->meh_last) break; /* If we found the range this error number is in, get the format string. If the string is empty, or a NULL pointer, or if we're out of return, we return NULL. */ if (!(format= (meh_p && (nr >= meh_p->meh_first)) ? meh_p->get_errmsgs(nr)[nr - meh_p->meh_first] : NULL) || !*format) return NULL; return format; }
O0
c
my_get_err_msg: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0xc(%rbp) movq 0x1cfd76(%rip), %rax # 0x2bf848 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0xefafa movl -0xc(%rbp), %eax movq -0x20(%rbp), %rcx cmpl 0x14(%rcx), %eax ja 0xefaeb jmp 0xefafa jmp 0xefaed movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) jmp 0xefad6 cmpq $0x0, -0x20(%rbp) je 0xefb30 movl -0xc(%rbp), %eax movq -0x20(%rbp), %rcx cmpl 0x10(%rcx), %eax jb 0xefb30 movq -0x20(%rbp), %rax movq 0x8(%rax), %rax movl -0xc(%rbp), %edi callq *%rax movl -0xc(%rbp), %ecx movq -0x20(%rbp), %rdx subl 0x10(%rdx), %ecx movl %ecx, %ecx movq (%rax,%rcx,8), %rax movq %rax, -0x28(%rbp) jmp 0xefb38 xorl %eax, %eax movq %rax, -0x28(%rbp) jmp 0xefb38 movq -0x28(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x0, %rax je 0xefb4f movq -0x18(%rbp), %rax cmpb $0x0, (%rax) jne 0xefb59 movq $0x0, -0x8(%rbp) jmp 0xefb61 movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
my_get_err_msg: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_C], edi mov rax, cs:my_errmsgs_list mov [rbp+var_20], rax loc_EFAD6: cmp [rbp+var_20], 0 jz short loc_EFAFA mov eax, [rbp+var_C] mov rcx, [rbp+var_20] cmp eax, [rcx+14h] ja short loc_EFAEB jmp short loc_EFAFA loc_EFAEB: jmp short $+2 loc_EFAED: mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_20], rax jmp short loc_EFAD6 loc_EFAFA: cmp [rbp+var_20], 0 jz short loc_EFB30 mov eax, [rbp+var_C] mov rcx, [rbp+var_20] cmp eax, [rcx+10h] jb short loc_EFB30 mov rax, [rbp+var_20] mov rax, [rax+8] mov edi, [rbp+var_C] call rax mov ecx, [rbp+var_C] mov rdx, [rbp+var_20] sub ecx, [rdx+10h] mov ecx, ecx mov rax, [rax+rcx*8] mov [rbp+var_28], rax jmp short loc_EFB38 loc_EFB30: xor eax, eax mov [rbp+var_28], rax jmp short $+2 loc_EFB38: mov rax, [rbp+var_28] mov [rbp+var_18], rax cmp rax, 0 jz short loc_EFB4F mov rax, [rbp+var_18] cmp byte ptr [rax], 0 jnz short loc_EFB59 loc_EFB4F: mov [rbp+var_8], 0 jmp short loc_EFB61 loc_EFB59: mov rax, [rbp+var_18] mov [rbp+var_8], rax loc_EFB61: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
_BYTE * my_get_err_msg(unsigned int a1) { _BYTE *v2; // [rsp+8h] [rbp-28h] long long *i; // [rsp+10h] [rbp-20h] for ( i = my_errmsgs_list; i && a1 > *((_DWORD *)i + 5); i = (long long *)*i ) ; if ( i && a1 >= *((_DWORD *)i + 4) ) v2 = *(_BYTE **)(((long long ( *)(_QWORD))i[1])(a1) + 8LL * (a1 - *((_DWORD *)i + 4))); else v2 = 0LL; if ( v2 && *v2 ) return v2; else return 0LL; }
my_get_err_msg: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0xc],EDI MOV RAX,qword ptr [0x003bf848] MOV qword ptr [RBP + -0x20],RAX LAB_001efad6: CMP qword ptr [RBP + -0x20],0x0 JZ 0x001efafa MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x20] CMP EAX,dword ptr [RCX + 0x14] JA 0x001efaeb JMP 0x001efafa LAB_001efaeb: JMP 0x001efaed LAB_001efaed: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX JMP 0x001efad6 LAB_001efafa: CMP qword ptr [RBP + -0x20],0x0 JZ 0x001efb30 MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x20] CMP EAX,dword ptr [RCX + 0x10] JC 0x001efb30 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x8] MOV EDI,dword ptr [RBP + -0xc] CALL RAX MOV ECX,dword ptr [RBP + -0xc] MOV RDX,qword ptr [RBP + -0x20] SUB ECX,dword ptr [RDX + 0x10] MOV ECX,ECX MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x28],RAX JMP 0x001efb38 LAB_001efb30: XOR EAX,EAX MOV qword ptr [RBP + -0x28],RAX JMP 0x001efb38 LAB_001efb38: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JZ 0x001efb4f MOV RAX,qword ptr [RBP + -0x18] CMP byte ptr [RAX],0x0 JNZ 0x001efb59 LAB_001efb4f: MOV qword ptr [RBP + -0x8],0x0 JMP 0x001efb61 LAB_001efb59: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX LAB_001efb61: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
char * my_get_err_msg(uint param_1) { long lVar1; char *local_30; int8 *local_28; char *local_10; for (local_28 = (int8 *)my_errmsgs_list; (local_28 != (int8 *)0x0 && (*(uint *)((long)local_28 + 0x14) < param_1)); local_28 = (int8 *)*local_28) { } if ((local_28 == (int8 *)0x0) || (param_1 < *(uint *)(local_28 + 2))) { local_30 = (char *)0x0; } else { lVar1 = (*(code *)local_28[1])(param_1); local_30 = *(char **)(lVar1 + (ulong)(param_1 - *(int *)(local_28 + 2)) * 8); } if ((local_30 == (char *)0x0) || (*local_30 == '\0')) { local_10 = (char *)0x0; } else { local_10 = local_30; } return local_10; }
38,940
sp_make_key
eloqsql/storage/myisam/sp_key.c
uint sp_make_key(register MI_INFO *info, uint keynr, uchar *key, const uchar *record, my_off_t filepos) { HA_KEYSEG *keyseg; MI_KEYDEF *keyinfo = &info->s->keyinfo[keynr]; uint len = 0; uchar *pos; uint dlen; uchar *dptr; double mbr[SPDIMS * 2]; uint i; keyseg = &keyinfo->seg[-1]; pos = (uchar*)record + keyseg->start; dlen = _mi_calc_blob_length(keyseg->bit_start, pos); memcpy(&dptr, pos + keyseg->bit_start, sizeof(char*)); if (!dptr) { my_errno= HA_ERR_NULL_IN_SPATIAL; return 0; } sp_mbr_from_wkb(dptr + 4, dlen - 4, SPDIMS, mbr); /* SRID */ for (i = 0, keyseg = keyinfo->seg; keyseg->type; keyseg++, i++) { uint length = keyseg->length, start= keyseg->start; double val; DBUG_ASSERT(length == sizeof(double)); DBUG_ASSERT(!(start % sizeof(double))); DBUG_ASSERT(start < sizeof(mbr)); DBUG_ASSERT(keyseg->type == HA_KEYTYPE_DOUBLE); val= mbr[start / sizeof (double)]; if (isnan(val)) { bzero(key, length); key+= length; len+= length; continue; } if (keyseg->flag & HA_SWAP_KEY) { uchar buf[sizeof(double)]; float8store(buf, val); pos= &buf[length]; while (pos > buf) *key++ = *--pos; } else { float8store((uchar *)key, val); key += length; } len+= length; } _mi_dpointer(info, key, filepos); return len; }
O3
c
sp_make_key: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %r8, -0x48(%rbp) movq %rdx, %r14 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq %rdi, -0x40(%rbp) movq (%rdi), %rax movq 0x218(%rax), %r15 movl %esi, %eax imulq $0x70, %rax, %r12 movq 0x28(%r15,%r12), %r13 movl -0x18(%r13), %ebx addq %rcx, %rbx movzbl -0x6(%r13), %edi movq %rbx, %rsi callq 0x78a8d movzbl -0x6(%r13), %ecx movq (%rcx,%rbx), %rcx testq %rcx, %rcx je 0x8ea07 leaq (%r15,%r12), %rbx addq $0x28, %rbx leaq 0x4(%rcx), %rdx addl $-0x4, %eax leaq -0x38(%rbp), %r13 movq %rdx, (%r13) movapd 0x4a799(%rip), %xmm0 # 0xd9100 leaq -0x70(%rbp), %rdx movapd %xmm0, (%rdx) movapd %xmm0, 0x10(%rdx) leaq (%rcx,%rax), %rsi addq $0x4, %rsi movq %r13, %rdi movl $0x1, %ecx callq 0x8ea50 movq (%rbx), %r15 cmpb $0x0, 0x18(%r15) je 0x8ea17 xorl %r12d, %r12d movzwl 0x14(%r15), %ebx movl 0x8(%r15), %eax andl $-0x8, %eax movsd -0x70(%rbp,%rax), %xmm0 ucomisd %xmm0, %xmm0 jp 0x8e9f5 testb $0x40, 0x12(%r15) jne 0x8e9c3 movsd %xmm0, (%r14) addq %rbx, %r14 jmp 0x8e9e5 movsd %xmm0, -0x38(%rbp) testl %ebx, %ebx je 0x8e9e5 leaq (%rbx,%rbp), %rax addq $-0x38, %rax movb -0x1(%rax), %cl decq %rax movb %cl, (%r14) incq %r14 cmpq %r13, %rax ja 0x8e9d4 addl %ebx, %r12d cmpb $0x0, 0x38(%r15) leaq 0x20(%r15), %r15 jne 0x8e99a jmp 0x8ea1a movq %r14, %rdi xorl %esi, %esi movq %rbx, %rdx callq 0x292a0 addq %rbx, %r14 jmp 0x8e9e5 callq 0xa1ac2 movl $0x9e, (%rax) xorl %r12d, %r12d jmp 0x8ea2a xorl %r12d, %r12d movq -0x40(%rbp), %rdi movq %r14, %rsi movq -0x48(%rbp), %rdx callq 0x851f3 movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x8ea4b movl %r12d, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29250
sp_make_key: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov [rbp+var_48], r8 mov r14, rdx mov rax, fs:28h mov [rbp+var_30], rax mov [rbp+var_40], rdi mov rax, [rdi] mov r15, [rax+218h] mov eax, esi imul r12, rax, 70h ; 'p' mov r13, [r15+r12+28h] mov ebx, [r13-18h] add rbx, rcx movzx edi, byte ptr [r13-6] mov rsi, rbx call _mi_calc_blob_length movzx ecx, byte ptr [r13-6] mov rcx, [rcx+rbx] test rcx, rcx jz loc_8EA07 lea rbx, [r15+r12] add rbx, 28h ; '(' lea rdx, [rcx+4] add eax, 0FFFFFFFCh lea r13, [rbp+var_38] mov [r13+0], rdx movapd xmm0, cs:xmmword_D9100 lea rdx, [rbp+var_70] movapd xmmword ptr [rdx], xmm0 movapd xmmword ptr [rdx+10h], xmm0 lea rsi, [rcx+rax] add rsi, 4 mov rdi, r13 mov ecx, 1 call sp_get_geometry_mbr_0 mov r15, [rbx] cmp byte ptr [r15+18h], 0 jz loc_8EA17 xor r12d, r12d loc_8E99A: movzx ebx, word ptr [r15+14h] mov eax, [r15+8] and eax, 0FFFFFFF8h movsd xmm0, [rbp+rax+var_70] ucomisd xmm0, xmm0 jp short loc_8E9F5 test byte ptr [r15+12h], 40h jnz short loc_8E9C3 movsd qword ptr [r14], xmm0 add r14, rbx jmp short loc_8E9E5 loc_8E9C3: movsd [rbp+var_38], xmm0 test ebx, ebx jz short loc_8E9E5 lea rax, [rbx+rbp] add rax, 0FFFFFFFFFFFFFFC8h loc_8E9D4: mov cl, [rax-1] dec rax mov [r14], cl inc r14 cmp rax, r13 ja short loc_8E9D4 loc_8E9E5: add r12d, ebx cmp byte ptr [r15+38h], 0 lea r15, [r15+20h] jnz short loc_8E99A jmp short loc_8EA1A loc_8E9F5: mov rdi, r14 xor esi, esi mov rdx, rbx call _memset add r14, rbx jmp short loc_8E9E5 loc_8EA07: call _my_thread_var mov dword ptr [rax], 9Eh xor r12d, r12d jmp short loc_8EA2A loc_8EA17: xor r12d, r12d loc_8EA1A: mov rdi, [rbp+var_40] mov rsi, r14 mov rdx, [rbp+var_48] call _mi_dpointer loc_8EA2A: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_8EA4B mov eax, r12d add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_8EA4B: call ___stack_chk_fail
long long sp_make_key(long long *a1, unsigned int a2, _QWORD *a3, long long a4, long long a5) { long long v6; // r15 long long v7; // r12 long long v8; // r13 unsigned __int8 *v9; // rbx long long v10; // rdi int v11; // eax long long v12; // rcx long long v13; // rbx long long v14; // r15 unsigned int v15; // r12d long long v16; // rbx char *v17; // rax char v18; // cl bool v19; // zf _OWORD v21[2]; // [rsp+0h] [rbp-70h] BYREF long long v22; // [rsp+28h] [rbp-48h] long long *v23; // [rsp+30h] [rbp-40h] _QWORD v24[7]; // [rsp+38h] [rbp-38h] BYREF v22 = a5; v24[1] = __readfsqword(0x28u); v23 = a1; v6 = *(_QWORD *)(*a1 + 536); v7 = 112LL * a2; v8 = *(_QWORD *)(v6 + v7 + 40); v9 = (unsigned __int8 *)(a4 + *(unsigned int *)(v8 - 24)); v10 = *(unsigned __int8 *)(v8 - 6); v11 = mi_calc_blob_length(v10, v9); v12 = *(_QWORD *)&v9[*(unsigned __int8 *)(v8 - 6)]; if ( v12 ) { v13 = v6 + v7 + 40; v24[0] = v12 + 4; v21[0] = xmmword_D9100; v21[1] = xmmword_D9100; ((void ( *)(_QWORD *, long long, _OWORD *, long long))sp_get_geometry_mbr_0)( v24, v12 + (unsigned int)(v11 - 4) + 4, v21, 1LL); v14 = *(_QWORD *)v13; if ( *(_BYTE *)(*(_QWORD *)v13 + 24LL) ) { v15 = 0; do { v16 = *(unsigned __int16 *)(v14 + 20); if ( (*(_BYTE *)(v14 + 18) & 0x40) != 0 ) { v24[0] = *(_QWORD *)((char *)v21 + (*(_DWORD *)(v14 + 8) & 0xFFFFFFF8)); if ( (_DWORD)v16 ) { v17 = (char *)v24 + v16; do { v18 = *--v17; *(_BYTE *)a3 = v18; a3 = (_QWORD *)((char *)a3 + 1); } while ( v17 > (char *)v24 ); } } else { *a3 = *(_QWORD *)((char *)v21 + (*(_DWORD *)(v14 + 8) & 0xFFFFFFF8)); a3 = (_QWORD *)((char *)a3 + v16); } v15 += v16; v19 = *(_BYTE *)(v14 + 56) == 0; v14 += 32LL; } while ( !v19 ); } else { v15 = 0; } mi_dpointer(v23, (long long)a3, v22); } else { *(_DWORD *)my_thread_var(v10) = 158; return 0; } return v15; }
sp_make_key: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV qword ptr [RBP + -0x48],R8 MOV R14,RDX MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x40],RDI MOV RAX,qword ptr [RDI] MOV R15,qword ptr [RAX + 0x218] MOV EAX,ESI IMUL R12,RAX,0x70 MOV R13,qword ptr [R15 + R12*0x1 + 0x28] MOV EBX,dword ptr [R13 + -0x18] ADD RBX,RCX MOVZX EDI,byte ptr [R13 + -0x6] MOV RSI,RBX CALL 0x00178a8d MOVZX ECX,byte ptr [R13 + -0x6] MOV RCX,qword ptr [RCX + RBX*0x1] TEST RCX,RCX JZ 0x0018ea07 LEA RBX,[R15 + R12*0x1] ADD RBX,0x28 LEA RDX,[RCX + 0x4] ADD EAX,-0x4 LEA R13,[RBP + -0x38] MOV qword ptr [R13],RDX MOVAPD XMM0,xmmword ptr [0x001d9100] LEA RDX,[RBP + -0x70] MOVAPD xmmword ptr [RDX],XMM0 MOVAPD xmmword ptr [RDX + 0x10],XMM0 LEA RSI,[RCX + RAX*0x1] ADD RSI,0x4 MOV RDI,R13 MOV ECX,0x1 CALL 0x0018ea50 MOV R15,qword ptr [RBX] CMP byte ptr [R15 + 0x18],0x0 JZ 0x0018ea17 XOR R12D,R12D LAB_0018e99a: MOVZX EBX,word ptr [R15 + 0x14] MOV EAX,dword ptr [R15 + 0x8] AND EAX,0xfffffff8 MOVSD XMM0,qword ptr [RBP + RAX*0x1 + -0x70] UCOMISD XMM0,XMM0 JP 0x0018e9f5 TEST byte ptr [R15 + 0x12],0x40 JNZ 0x0018e9c3 MOVSD qword ptr [R14],XMM0 ADD R14,RBX JMP 0x0018e9e5 LAB_0018e9c3: MOVSD qword ptr [RBP + -0x38],XMM0 TEST EBX,EBX JZ 0x0018e9e5 LEA RAX,[RBX + RBP*0x1] ADD RAX,-0x38 LAB_0018e9d4: MOV CL,byte ptr [RAX + -0x1] DEC RAX MOV byte ptr [R14],CL INC R14 CMP RAX,R13 JA 0x0018e9d4 LAB_0018e9e5: ADD R12D,EBX CMP byte ptr [R15 + 0x38],0x0 LEA R15,[R15 + 0x20] JNZ 0x0018e99a JMP 0x0018ea1a LAB_0018e9f5: MOV RDI,R14 XOR ESI,ESI MOV RDX,RBX CALL 0x001292a0 ADD R14,RBX JMP 0x0018e9e5 LAB_0018ea07: CALL 0x001a1ac2 MOV dword ptr [RAX],0x9e XOR R12D,R12D JMP 0x0018ea2a LAB_0018ea17: XOR R12D,R12D LAB_0018ea1a: MOV RDI,qword ptr [RBP + -0x40] MOV RSI,R14 MOV RDX,qword ptr [RBP + -0x48] CALL 0x001851f3 LAB_0018ea2a: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0018ea4b MOV EAX,R12D ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0018ea4b: CALL 0x00129250
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int sp_make_key(long *param_1,ulong param_2,double *param_3,long param_4,int8 param_5) { int1 *puVar1; char *pcVar2; double dVar3; ushort uVar4; long lVar5; int iVar6; double *pdVar7; int4 *puVar8; ulong __n; long lVar9; long lVar10; long in_FS_OFFSET; double local_78 [5]; int8 local_50; long *local_48; double local_40; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); lVar10 = *(long *)(*param_1 + 0x218); lVar9 = (param_2 & 0xffffffff) * 0x70; lVar5 = *(long *)(lVar10 + 0x28 + lVar9); param_4 = (ulong)*(uint *)(lVar5 + -0x18) + param_4; local_50 = param_5; local_48 = param_1; iVar6 = _mi_calc_blob_length(*(int1 *)(lVar5 + -6),param_4); lVar5 = *(long *)((ulong)*(byte *)(lVar5 + -6) + param_4); if (lVar5 == 0) { puVar8 = (int4 *)_my_thread_var(); *puVar8 = 0x9e; iVar6 = 0; } else { local_40 = (double)(lVar5 + 4); local_78[0] = _DAT_001d9100; local_78[1] = (double)_UNK_001d9108; local_78[2] = _DAT_001d9100; local_78[3] = (double)_UNK_001d9108; sp_get_geometry_mbr(&local_40,lVar5 + (ulong)(iVar6 - 4) + 4,local_78,1); lVar10 = *(long *)(lVar10 + lVar9 + 0x28); if (*(char *)(lVar10 + 0x18) == '\0') { iVar6 = 0; } else { iVar6 = 0; do { uVar4 = *(ushort *)(lVar10 + 0x14); __n = (ulong)uVar4; dVar3 = *(double *)((long)local_78 + (ulong)(*(uint *)(lVar10 + 8) & 0xfffffff8)); if (NAN(dVar3)) { memset(param_3,0,__n); param_3 = (double *)((long)param_3 + __n); } else if ((*(byte *)(lVar10 + 0x12) & 0x40) == 0) { *param_3 = dVar3; param_3 = (double *)((long)param_3 + __n); } else { local_40 = dVar3; if (uVar4 != 0) { pdVar7 = (double *)((long)&local_40 + __n); do { puVar1 = (int1 *)((long)pdVar7 - 1); pdVar7 = (double *)((long)pdVar7 - 1); *(int1 *)param_3 = *puVar1; param_3 = (double *)((long)param_3 + 1); } while (&local_40 < pdVar7); } } iVar6 = iVar6 + (uint)uVar4; pcVar2 = (char *)(lVar10 + 0x38); lVar10 = lVar10 + 0x20; } while (*pcVar2 != '\0'); } _mi_dpointer(local_48,param_3,local_50); } if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return iVar6; }
38,941
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); }
O0
c
my_caseup_utf8mb4: 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 0x13be6a jmp 0x13be6c movq -0x10(%rbp), %rcx xorl %eax, %eax cmpq -0x40(%rbp), %rcx movb %al, -0x59(%rbp) jae 0x13be9c movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx movq -0x40(%rbp), %rcx leaq -0x30(%rbp), %rsi callq 0x13bad0 movl %eax, -0x34(%rbp) cmpl $0x0, %eax setg %al movb %al, -0x59(%rbp) movb -0x59(%rbp), %al testb $0x1, %al jne 0x13bea5 jmp 0x13bef8 movq -0x58(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x13fd80 movq -0x8(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x48(%rbp), %rcx callq 0x13bb00 movl %eax, -0x38(%rbp) cmpl $0x0, %eax jg 0x13bed1 jmp 0x13bef8 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 0x13be6c movq -0x20(%rbp), %rax movq -0x50(%rbp), %rcx subq %rcx, %rax addq $0x60, %rsp popq %rbp retq nopl (%rax)
my_caseup_utf8mb4: 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_13BE6A: jmp short $+2 loc_13BE6C: mov rcx, [rbp+var_10] xor eax, eax cmp rcx, [rbp+var_40] mov [rbp+var_59], al jnb short loc_13BE9C mov rdi, [rbp+var_8] mov rdx, [rbp+var_10] mov rcx, [rbp+var_40] lea rsi, [rbp+var_30] call my_mb_wc_utf8mb4 mov [rbp+var_34], eax cmp eax, 0 setnle al mov [rbp+var_59], al loc_13BE9C: mov al, [rbp+var_59] test al, 1 jnz short loc_13BEA5 jmp short loc_13BEF8 loc_13BEA5: mov rdi, [rbp+var_58] lea rsi, [rbp+var_30] call my_toupper_utf8mb4 mov rdi, [rbp+var_8] mov rsi, [rbp+var_30] mov rdx, [rbp+var_20] mov rcx, [rbp+var_48] call my_wc_mb_utf8mb4 mov [rbp+var_38], eax cmp eax, 0 jg short loc_13BED1 jmp short loc_13BEF8 loc_13BED1: 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_13BE6C loc_13BEF8: mov rax, [rbp+var_20] mov rcx, [rbp+var_50] sub rax, rcx add rsp, 60h pop rbp retn
_BYTE * my_caseup_utf8mb4(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_mb_wc_utf8mb4(v18, (long long)v14, v17, v11, a5, a6); v7 = v13 > 0; } if ( !v7 ) break; my_toupper_utf8mb4(v8, v14); v12 = my_wc_mb_utf8mb4(v18, v14[0], v15, v10); if ( v12 <= 0 ) break; v17 += v13; v15 += v12; } return (_BYTE *)(v15 - a4); }
38,942
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 0xcbdb5 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 0xcee46 testl %eax, %eax jle 0xcbdb5 movl %eax, %ebx movq -0x40(%rbp), %rsi cmpq (%r14), %rsi ja 0xcbd96 movq 0x8(%r14), %rax movq %rsi, %rcx shrq $0x8, %rcx movq (%rax,%rcx,8), %rax testq %rax, %rax je 0xcbd96 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 0xcbb35 testl %eax, %eax jle 0xcbdb5 movl %ebx, %ecx addq %rcx, %r12 movl %eax, %eax addq %rax, %r13 cmpq %r15, %r12 jb 0xcbd55 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_CBDB5 mov r15, rdx mov r12, rsi add r15, rsi mov r13, [rbp+var_30] add [rbp+var_38], r13 mov r14, [rdi+78h] loc_CBD55: lea rdi, [rbp+var_40] mov rsi, r12 mov rdx, r15 call my_mb_wc_utf8mb4_quick_0 test eax, eax jle short loc_CBDB5 mov ebx, eax mov rsi, [rbp+var_40] cmp rsi, [r14] ja short loc_CBD96 mov rax, [r14+8] mov rcx, rsi shr rcx, 8 mov rax, [rax+rcx*8] test rax, rax jz short loc_CBD96 movzx ecx, sil lea rcx, [rcx+rcx*2] mov esi, [rax+rcx*4] mov [rbp+var_40], rsi loc_CBD96: mov rdx, r13 mov rcx, [rbp+var_38] call my_wc_mb_utf8mb4 test eax, eax jle short loc_CBDB5 mov ecx, ebx add r12, rcx mov eax, eax add r13, rax cmp r12, r15 jb short loc_CBD55 loc_CBDB5: 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 0x001cbdb5 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_001cbd55: LEA RDI,[RBP + -0x40] MOV RSI,R12 MOV RDX,R15 CALL 0x001cee46 TEST EAX,EAX JLE 0x001cbdb5 MOV EBX,EAX MOV RSI,qword ptr [RBP + -0x40] CMP RSI,qword ptr [R14] JA 0x001cbd96 MOV RAX,qword ptr [R14 + 0x8] MOV RCX,RSI SHR RCX,0x8 MOV RAX,qword ptr [RAX + RCX*0x8] TEST RAX,RAX JZ 0x001cbd96 MOVZX ECX,SIL LEA RCX,[RCX + RCX*0x2] MOV ESI,dword ptr [RAX + RCX*0x4] MOV qword ptr [RBP + -0x40],RSI LAB_001cbd96: MOV RDX,R13 MOV RCX,qword ptr [RBP + -0x38] CALL 0x001cbb35 TEST EAX,EAX JLE 0x001cbdb5 MOV ECX,EBX ADD R12,RCX MOV EAX,EAX ADD R13,RAX CMP R12,R15 JC 0x001cbd55 LAB_001cbdb5: 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; }
38,943
u32toa_radix_length
bluesky950520[P]quickjs/tests/test_conv.c
size_t u32toa_radix_length(char buf[minimum_length(33)], uint32_t n, unsigned base) { int shift; #ifdef USE_SPECIAL_RADIX_10 if (likely(base == 10)) return u32toa_length_loop(buf, n); #endif if (n < base) { buf[0] = digits36[n]; buf[1] = '\0'; return 1; } shift = radix_shift[base & 63]; if (shift) { uint32_t mask = (1 << shift) - 1; size_t len = (32 - clz32(n) + shift - 1) / shift; size_t last = n & mask; char *end = buf + len; n >>= shift; *end-- = '\0'; *end-- = digits36[last]; while (n >= base) { size_t quo = n & mask; n >>= shift; *end-- = digits36[quo]; } *end = digits36[n]; return len; } else { size_t len = 2; size_t last = n % base; n /= base; uint32_t nbase = base; while (n >= nbase) { nbase *= base; len++; } char *end = buf + len; *end-- = '\0'; *end-- = digits36[last]; while (n >= base) { size_t quo = n % base; n /= base; *end-- = digits36[quo]; } *end = digits36[n]; return len; } }
O1
c
u32toa_radix_length: cmpl $0xa, %edx je 0x2e85 movl %edx, %r8d cmpl %edx, %esi jae 0x3415 movl %esi, %eax leaq 0x3c4f(%rip), %rcx # 0x7050 movb (%rax,%rcx), %al movb %al, (%rdi) movb $0x0, 0x1(%rdi) movl $0x1, %r9d jmp 0x34d8 movl %r8d, %eax andl $0x3f, %eax leaq 0x3d2e(%rip), %rcx # 0x7150 movzbl (%rax,%rcx), %ecx testl %ecx, %ecx je 0x3484 movl $0xffffffff, %r10d # imm = 0xFFFFFFFF shll %cl, %r10d notl %r10d bsrl %esi, %eax addl %ecx, %eax xorl %edx, %edx divl %ecx movl %eax, %r9d movl %r10d, %r11d andl %esi, %r11d leaq (%rdi,%r9), %rax addq $-0x2, %rax movb $0x0, 0x2(%rax) leaq 0x3bf5(%rip), %rdx # 0x7050 movb (%r11,%rdx), %dil movb %dil, 0x1(%rax) shrl %cl, %esi cmpl %r8d, %esi jb 0x347b movl %esi, %edi andl %r10d, %edi movb (%rdi,%rdx), %dil movb %dil, (%rax) decq %rax jmp 0x3463 movl %esi, %ecx movb (%rcx,%rdx), %cl movb %cl, (%rax) jmp 0x34d8 movl %esi, %eax xorl %edx, %edx divl %r8d movl $0x2, %r9d cmpl %r8d, %eax jb 0x34a4 movl %r8d, %ecx imull %r8d, %ecx incq %r9 cmpl %ecx, %eax jae 0x3499 leaq (%rdi,%r9), %rcx addq $-0x2, %rcx movb $0x0, 0x2(%rcx) leaq 0x3b99(%rip), %rsi # 0x7050 movb (%rdx,%rsi), %dl movb %dl, 0x1(%rcx) cmpl %r8d, %eax jb 0x34d1 xorl %edx, %edx divl %r8d movb (%rdx,%rsi), %dl movb %dl, (%rcx) decq %rcx jmp 0x34bd movl %eax, %eax movb (%rax,%rsi), %al movb %al, (%rcx) movq %r9, %rax retq
u32toa_radix_length: cmp edx, 0Ah jz u32toa_length_loop mov r8d, edx cmp esi, edx jnb short loc_3415 mov eax, esi lea rcx, digits36; "0123456789abcdefghijklmnopqrstuvwxyz" mov al, [rax+rcx] mov [rdi], al mov byte ptr [rdi+1], 0 mov r9d, 1 jmp loc_34D8 loc_3415: mov eax, r8d and eax, 3Fh lea rcx, radix_shift movzx ecx, byte ptr [rax+rcx] test ecx, ecx jz short loc_3484 mov r10d, 0FFFFFFFFh shl r10d, cl not r10d bsr eax, esi add eax, ecx xor edx, edx div ecx mov r9d, eax mov r11d, r10d and r11d, esi lea rax, [rdi+r9] add rax, 0FFFFFFFFFFFFFFFEh mov byte ptr [rax+2], 0 lea rdx, digits36; "0123456789abcdefghijklmnopqrstuvwxyz" mov dil, [r11+rdx] mov [rax+1], dil loc_3463: shr esi, cl cmp esi, r8d jb short loc_347B mov edi, esi and edi, r10d mov dil, [rdi+rdx] mov [rax], dil dec rax jmp short loc_3463 loc_347B: mov ecx, esi mov cl, [rcx+rdx] mov [rax], cl jmp short loc_34D8 loc_3484: mov eax, esi xor edx, edx div r8d mov r9d, 2 cmp eax, r8d jb short loc_34A4 mov ecx, r8d loc_3499: imul ecx, r8d inc r9 cmp eax, ecx jnb short loc_3499 loc_34A4: lea rcx, [rdi+r9] add rcx, 0FFFFFFFFFFFFFFFEh mov byte ptr [rcx+2], 0 lea rsi, digits36; "0123456789abcdefghijklmnopqrstuvwxyz" mov dl, [rdx+rsi] mov [rcx+1], dl loc_34BD: cmp eax, r8d jb short loc_34D1 xor edx, edx div r8d mov dl, [rdx+rsi] mov [rcx], dl dec rcx jmp short loc_34BD loc_34D1: mov eax, eax mov al, [rax+rsi] mov [rcx], al loc_34D8: mov rax, r9 retn
long long u32toa_radix_length(_BYTE *a1, unsigned int a2, unsigned int a3) { long long v4; // r9 long long v5; // rax unsigned int v6; // ecx unsigned int v7; // eax _BYTE *v8; // rax unsigned int v9; // eax unsigned int v10; // ecx _BYTE *v11; // rcx long long v12; // rdx if ( a3 == 10 ) return u32toa_length_loop(a1, a2); if ( a2 >= a3 ) { v5 = a3 & 0x3F; v6 = radix_shift[v5]; if ( radix_shift[v5] ) { _BitScanReverse(&v7, a2); v4 = (v6 + v7) / v6; v8 = &a1[v4 - 2]; v8[2] = 0; v8[1] = digits36[a2 & ~(-1 << v6)]; while ( 1 ) { a2 >>= v6; if ( a2 < a3 ) break; *v8-- = digits36[~(-1 << v6) & a2]; } *v8 = digits36[a2]; } else { v9 = a2 / a3; v4 = 2LL; if ( a2 / a3 >= a3 ) { v10 = a3; do { v10 *= a3; ++v4; } while ( v9 >= v10 ); } v11 = &a1[v4 - 2]; v11[2] = 0; v11[1] = digits36[a2 % a3]; while ( v9 >= a3 ) { v12 = v9 % a3; v9 /= a3; *v11-- = digits36[v12]; } *v11 = digits36[v9]; } } else { *a1 = digits36[a2]; a1[1] = 0; return 1LL; } return v4; }
u32toa_radix_length: CMP EDX,0xa JZ 0x00102e85 MOV R8D,EDX CMP ESI,EDX JNC 0x00103415 MOV EAX,ESI LEA RCX,[0x107050] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RDI],AL MOV byte ptr [RDI + 0x1],0x0 MOV R9D,0x1 JMP 0x001034d8 LAB_00103415: MOV EAX,R8D AND EAX,0x3f LEA RCX,[0x107150] MOVZX ECX,byte ptr [RAX + RCX*0x1] TEST ECX,ECX JZ 0x00103484 MOV R10D,0xffffffff SHL R10D,CL NOT R10D BSR EAX,ESI ADD EAX,ECX XOR EDX,EDX DIV ECX MOV R9D,EAX MOV R11D,R10D AND R11D,ESI LEA RAX,[RDI + R9*0x1] ADD RAX,-0x2 MOV byte ptr [RAX + 0x2],0x0 LEA RDX,[0x107050] MOV DIL,byte ptr [R11 + RDX*0x1] MOV byte ptr [RAX + 0x1],DIL LAB_00103463: SHR ESI,CL CMP ESI,R8D JC 0x0010347b MOV EDI,ESI AND EDI,R10D MOV DIL,byte ptr [RDI + RDX*0x1] MOV byte ptr [RAX],DIL DEC RAX JMP 0x00103463 LAB_0010347b: MOV ECX,ESI MOV CL,byte ptr [RCX + RDX*0x1] MOV byte ptr [RAX],CL JMP 0x001034d8 LAB_00103484: MOV EAX,ESI XOR EDX,EDX DIV R8D MOV R9D,0x2 CMP EAX,R8D JC 0x001034a4 MOV ECX,R8D LAB_00103499: IMUL ECX,R8D INC R9 CMP EAX,ECX JNC 0x00103499 LAB_001034a4: LEA RCX,[RDI + R9*0x1] ADD RCX,-0x2 MOV byte ptr [RCX + 0x2],0x0 LEA RSI,[0x107050] MOV DL,byte ptr [RDX + RSI*0x1] MOV byte ptr [RCX + 0x1],DL LAB_001034bd: CMP EAX,R8D JC 0x001034d1 XOR EDX,EDX DIV R8D MOV DL,byte ptr [RDX + RSI*0x1] MOV byte ptr [RCX],DL DEC RCX JMP 0x001034bd LAB_001034d1: MOV EAX,EAX MOV AL,byte ptr [RAX + RSI*0x1] MOV byte ptr [RCX],AL LAB_001034d8: MOV RAX,R9 RET
ulong u32toa_radix_length(byte *param_1,uint param_2,uint param_3) { byte bVar1; int iVar2; ulong uVar3; byte *pbVar4; ulong uVar5; ulong uVar6; uint uVar7; if (param_3 != 10) { if (param_2 < param_3) { *param_1 = "0123456789abcdefghijklmnopqrstuvwxyz"[param_2]; param_1[1] = 0; uVar6 = 1; } else { bVar1 = radix_shift[param_3 & 0x3f]; if (bVar1 == 0) { uVar3 = (ulong)param_2 / (ulong)param_3; uVar6 = 2; uVar7 = param_3; if (param_3 <= (uint)uVar3) { do { uVar7 = uVar7 * param_3; uVar6 = uVar6 + 1; } while (uVar7 <= (uint)uVar3); } param_1 = param_1 + uVar6; pbVar4 = param_1 + -2; *param_1 = 0; param_1[-1] = "0123456789abcdefghijklmnopqrstuvwxyz"[(ulong)param_2 % (ulong)param_3]; for (; param_3 <= (uint)uVar3; uVar3 = uVar3 / param_3) { *pbVar4 = "0123456789abcdefghijklmnopqrstuvwxyz"[uVar3 % (ulong)param_3]; pbVar4 = pbVar4 + -1; } *pbVar4 = "0123456789abcdefghijklmnopqrstuvwxyz"[uVar3]; } else { uVar7 = ~(-1 << (bVar1 & 0x1f)); iVar2 = 0x1f; if (param_2 != 0) { for (; param_2 >> iVar2 == 0; iVar2 = iVar2 + -1) { } } uVar6 = (ulong)(iVar2 + (uint)bVar1) / (ulong)(uint)bVar1; param_1 = param_1 + uVar6; pbVar4 = param_1 + -2; *param_1 = 0; param_1[-1] = "0123456789abcdefghijklmnopqrstuvwxyz"[uVar7 & param_2]; while (param_2 = param_2 >> (bVar1 & 0x1f), param_3 <= param_2) { *pbVar4 = "0123456789abcdefghijklmnopqrstuvwxyz"[param_2 & uVar7]; pbVar4 = pbVar4 + -1; } *pbVar4 = "0123456789abcdefghijklmnopqrstuvwxyz"[param_2]; } } return uVar6; } if (9 < param_2) { uVar6 = (ulong)param_2 / 10; uVar3 = 2; if (99 < param_2) { uVar7 = 10; do { uVar7 = uVar7 * 10; uVar3 = uVar3 + 1; } while (uVar7 <= param_2 / 10); } param_1 = param_1 + uVar3; pbVar4 = param_1 + -2; *param_1 = 0; param_1[-1] = (byte)param_2 + (char)(param_2 / 10) * -10 | 0x30; if (param_2 < 100) { uVar5 = (ulong)(param_2 / 10); } else { do { uVar7 = (uint)uVar6; uVar5 = uVar6 / 10; *pbVar4 = (char)uVar6 + (char)(uVar6 / 10) * -10 | 0x30; pbVar4 = pbVar4 + -1; uVar6 = uVar5; } while (99 < uVar7); } *pbVar4 = (byte)uVar5 | 0x30; return uVar3; } *param_1 = (byte)param_2 | 0x30; param_1[1] = 0; return 1; }
38,944
inline_mysql_rwlock_destroy
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_rwlock_destroy( mysql_rwlock_t *that) { #ifdef HAVE_PSI_RWLOCK_INTERFACE if (psi_likely(that->m_psi != NULL)) { PSI_RWLOCK_CALL(destroy_rwlock)(that->m_psi); that->m_psi= NULL; } #endif return rwlock_destroy(&that->m_rwlock); }
O0
c
inline_mysql_rwlock_destroy: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x90(%rax) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xfe88d leaq 0x1c19ce(%rip), %rax # 0x2c0238 movq (%rax), %rax movq 0x58(%rax), %rax movq -0x8(%rbp), %rcx movq 0x90(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rax movq $0x0, 0x90(%rax) movq -0x8(%rbp), %rdi callq 0xf9ee0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
inline_mysql_rwlock_destroy_1: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+90h], 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_FE88D lea rax, PSI_server mov rax, [rax] mov rax, [rax+58h] mov rcx, [rbp+var_8] mov rdi, [rcx+90h] call rax mov rax, [rbp+var_8] mov qword ptr [rax+90h], 0 loc_FE88D: mov rdi, [rbp+var_8] call my_rw_destroy add rsp, 10h pop rbp retn
long long inline_mysql_rwlock_destroy_1(long long a1) { if ( *(_QWORD *)(a1 + 144) ) { ((void ( *)(_QWORD))PSI_server[11])(*(_QWORD *)(a1 + 144)); *(_QWORD *)(a1 + 144) = 0LL; } return my_rw_destroy(a1); }
inline_mysql_rwlock_destroy: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x90],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 0x001fe88d LEA RAX,[0x3c0238] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x58] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x90] CALL RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x90],0x0 LAB_001fe88d: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001f9ee0 ADD RSP,0x10 POP RBP RET
void inline_mysql_rwlock_destroy(long param_1) { if (*(long *)(param_1 + 0x90) != 0) { (**(code **)(PSI_server + 0x58))(*(int8 *)(param_1 + 0x90)); *(int8 *)(param_1 + 0x90) = 0; } my_rw_destroy(param_1); return; }
38,945
my_load_path
eloqsql/mysys/mf_loadpath.c
char * my_load_path(char * to, const char *path, const char *own_path_prefix) { char buff[FN_REFLEN+1]; const char *from= buff; int is_cur; DBUG_ENTER("my_load_path"); DBUG_PRINT("enter",("path: %s prefix: %s",path, own_path_prefix ? own_path_prefix : "")); if ((path[0] == FN_HOMELIB && path[1] == FN_LIBCHAR) || test_if_hard_path(path)) from= path; else if ((is_cur=(path[0] == FN_CURLIB && path[1] == FN_LIBCHAR)) || (is_prefix(path,FN_PARENTDIR)) || ! own_path_prefix) { if (is_cur) is_cur=2; /* Remove current dir */ if (! my_getwd(buff,(uint) (FN_REFLEN-strlen(path)+is_cur),MYF(0))) { size_t length= strlen(buff); (void) strmake(buff + length, path+is_cur, FN_REFLEN - length); } else from= path; /* Return org file name */ } else (void) strxnmov(buff, FN_REFLEN, own_path_prefix, path, NullS); strmake(to, from, FN_REFLEN-1); DBUG_PRINT("exit",("to: %s",to)); DBUG_RETURN(to); }
O0
c
my_load_path: pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) movq %rdx, -0x228(%rbp) leaq -0x210(%rbp), %rax movq %rax, -0x230(%rbp) jmp 0x38f2d movq -0x220(%rbp), %rax movsbl (%rax), %eax cmpl $0x7e, %eax jne 0x38f4c movq -0x220(%rbp), %rax movsbl 0x1(%rax), %eax cmpl $0x2f, %eax je 0x38f5d movq -0x220(%rbp), %rdi callq 0x36ed0 cmpl $0x0, %eax je 0x38f70 movq -0x220(%rbp), %rax movq %rax, -0x230(%rbp) jmp 0x390b4 movq -0x220(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl $0x2e, %ecx movb %al, -0x241(%rbp) jne 0x38f9e movq -0x220(%rbp), %rax movsbl 0x1(%rax), %eax cmpl $0x2f, %eax sete %al movb %al, -0x241(%rbp) movb -0x241(%rbp), %al movb %al, %cl andb $0x1, %cl movzbl %cl, %ecx movl %ecx, -0x234(%rbp) testb $0x1, %al jne 0x38fdc movq -0x220(%rbp), %rdi leaq 0x49002(%rip), %rsi # 0x81fc6 callq 0x7a360 cmpl $0x0, %eax jne 0x38fdc cmpq $0x0, -0x228(%rbp) jne 0x3908c cmpl $0x0, -0x234(%rbp) je 0x38fef movl $0x2, -0x234(%rbp) leaq -0x210(%rbp), %rax movq %rax, -0x250(%rbp) movq -0x220(%rbp), %rdi callq 0x24120 movq -0x250(%rbp), %rdi movq %rax, %rcx movl $0x200, %eax # imm = 0x200 subq %rcx, %rax movslq -0x234(%rbp), %rcx addq %rcx, %rax movl %eax, %eax movl %eax, %esi xorl %eax, %eax movl %eax, %edx callq 0x36c80 cmpl $0x0, %eax jne 0x3907c leaq -0x210(%rbp), %rdi callq 0x24120 movq %rax, -0x240(%rbp) leaq -0x210(%rbp), %rdi addq -0x240(%rbp), %rdi movq -0x220(%rbp), %rsi movslq -0x234(%rbp), %rax addq %rax, %rsi movl $0x200, %edx # imm = 0x200 subq -0x240(%rbp), %rdx callq 0x7db70 jmp 0x3908a movq -0x220(%rbp), %rax movq %rax, -0x230(%rbp) jmp 0x390b2 leaq -0x210(%rbp), %rdi movq -0x228(%rbp), %rdx movq -0x220(%rbp), %rcx movl $0x200, %esi # imm = 0x200 xorl %eax, %eax movl %eax, %r8d movb $0x0, %al callq 0x7dd90 jmp 0x390b4 movq -0x218(%rbp), %rdi movq -0x230(%rbp), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x7db70 jmp 0x390ce jmp 0x390d0 movq -0x218(%rbp), %rax movq %rax, -0x258(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x39100 movq -0x258(%rbp), %rax addq $0x260, %rsp # imm = 0x260 popq %rbp retq callq 0x24300 nopw %cs:(%rax,%rax) nop
my_load_path: push rbp mov rbp, rsp sub rsp, 260h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi mov [rbp+var_228], rdx lea rax, [rbp+var_210] mov [rbp+var_230], rax jmp short $+2 loc_38F2D: mov rax, [rbp+var_220] movsx eax, byte ptr [rax] cmp eax, 7Eh ; '~' jnz short loc_38F4C mov rax, [rbp+var_220] movsx eax, byte ptr [rax+1] cmp eax, 2Fh ; '/' jz short loc_38F5D loc_38F4C: mov rdi, [rbp+var_220] call test_if_hard_path cmp eax, 0 jz short loc_38F70 loc_38F5D: mov rax, [rbp+var_220] mov [rbp+var_230], rax jmp loc_390B4 loc_38F70: mov rax, [rbp+var_220] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, 2Eh ; '.' mov [rbp+var_241], al jnz short loc_38F9E mov rax, [rbp+var_220] movsx eax, byte ptr [rax+1] cmp eax, 2Fh ; '/' setz al mov [rbp+var_241], al loc_38F9E: mov al, [rbp+var_241] mov cl, al and cl, 1 movzx ecx, cl mov [rbp+var_234], ecx test al, 1 jnz short loc_38FDC mov rdi, [rbp+var_220] lea rsi, asc_81FC6; ".." call is_prefix cmp eax, 0 jnz short loc_38FDC cmp [rbp+var_228], 0 jnz loc_3908C loc_38FDC: cmp [rbp+var_234], 0 jz short loc_38FEF mov [rbp+var_234], 2 loc_38FEF: lea rax, [rbp+var_210] mov [rbp+var_250], rax mov rdi, [rbp+var_220] call _strlen mov rdi, [rbp+var_250] mov rcx, rax mov eax, 200h sub rax, rcx movsxd rcx, [rbp+var_234] add rax, rcx mov eax, eax mov esi, eax xor eax, eax mov edx, eax call my_getwd cmp eax, 0 jnz short loc_3907C lea rdi, [rbp+var_210] call _strlen mov [rbp+var_240], rax lea rdi, [rbp+var_210] add rdi, [rbp+var_240] mov rsi, [rbp+var_220] movsxd rax, [rbp+var_234] add rsi, rax mov edx, 200h sub rdx, [rbp+var_240] call strmake jmp short loc_3908A loc_3907C: mov rax, [rbp+var_220] mov [rbp+var_230], rax loc_3908A: jmp short loc_390B2 loc_3908C: lea rdi, [rbp+var_210] mov rdx, [rbp+var_228] mov rcx, [rbp+var_220] mov esi, 200h xor eax, eax mov r8d, eax mov al, 0 call strxnmov loc_390B2: jmp short $+2 loc_390B4: mov rdi, [rbp+var_218] mov rsi, [rbp+var_230] mov edx, 1FFh call strmake jmp short $+2 loc_390CE: jmp short $+2 loc_390D0: mov rax, [rbp+var_218] mov [rbp+var_258], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_39100 mov rax, [rbp+var_258] add rsp, 260h pop rbp retn loc_39100: call ___stack_chk_fail
long long my_load_path(long long a1, char *a2, long long a3) { int v3; // r9d int v4; // eax bool v6; // [rsp+1Fh] [rbp-241h] long long v7; // [rsp+20h] [rbp-240h] int v8; // [rsp+2Ch] [rbp-234h] _BYTE v10[520]; // [rsp+50h] [rbp-210h] BYREF unsigned long long v11; // [rsp+258h] [rbp-8h] v11 = __readfsqword(0x28u); if ( (*a2 != 126 || a2[1] != 47) && !test_if_hard_path(a2) ) { v6 = 0; if ( *a2 == 46 ) v6 = a2[1] == 47; v8 = v6; if ( v6 || (unsigned int)is_prefix(a2, "..") || !a3 ) { if ( v6 ) v8 = 2; v4 = strlen(a2); if ( (unsigned int)my_getwd((long long)v10, (unsigned int)(v8 + 512 - v4), 0) ) goto LABEL_4; v7 = strlen(v10); strmake(&v10[v7], &a2[v8], 512 - v7); } else { strxnmov((unsigned int)v10, 512, a3, (_DWORD)a2, 0, v3); } strmake(a1, v10, 511LL); return a1; } LABEL_4: strmake(a1, a2, 511LL); return a1; }
my_load_path: PUSH RBP MOV RBP,RSP SUB RSP,0x260 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI MOV qword ptr [RBP + -0x228],RDX LEA RAX,[RBP + -0x210] MOV qword ptr [RBP + -0x230],RAX JMP 0x00138f2d LAB_00138f2d: MOV RAX,qword ptr [RBP + -0x220] MOVSX EAX,byte ptr [RAX] CMP EAX,0x7e JNZ 0x00138f4c MOV RAX,qword ptr [RBP + -0x220] MOVSX EAX,byte ptr [RAX + 0x1] CMP EAX,0x2f JZ 0x00138f5d LAB_00138f4c: MOV RDI,qword ptr [RBP + -0x220] CALL 0x00136ed0 CMP EAX,0x0 JZ 0x00138f70 LAB_00138f5d: MOV RAX,qword ptr [RBP + -0x220] MOV qword ptr [RBP + -0x230],RAX JMP 0x001390b4 LAB_00138f70: MOV RAX,qword ptr [RBP + -0x220] MOVSX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x2e MOV byte ptr [RBP + -0x241],AL JNZ 0x00138f9e MOV RAX,qword ptr [RBP + -0x220] MOVSX EAX,byte ptr [RAX + 0x1] CMP EAX,0x2f SETZ AL MOV byte ptr [RBP + -0x241],AL LAB_00138f9e: MOV AL,byte ptr [RBP + -0x241] MOV CL,AL AND CL,0x1 MOVZX ECX,CL MOV dword ptr [RBP + -0x234],ECX TEST AL,0x1 JNZ 0x00138fdc MOV RDI,qword ptr [RBP + -0x220] LEA RSI,[0x181fc6] CALL 0x0017a360 CMP EAX,0x0 JNZ 0x00138fdc CMP qword ptr [RBP + -0x228],0x0 JNZ 0x0013908c LAB_00138fdc: CMP dword ptr [RBP + -0x234],0x0 JZ 0x00138fef MOV dword ptr [RBP + -0x234],0x2 LAB_00138fef: LEA RAX,[RBP + -0x210] MOV qword ptr [RBP + -0x250],RAX MOV RDI,qword ptr [RBP + -0x220] CALL 0x00124120 MOV RDI,qword ptr [RBP + -0x250] MOV RCX,RAX MOV EAX,0x200 SUB RAX,RCX MOVSXD RCX,dword ptr [RBP + -0x234] ADD RAX,RCX MOV EAX,EAX MOV ESI,EAX XOR EAX,EAX MOV EDX,EAX CALL 0x00136c80 CMP EAX,0x0 JNZ 0x0013907c LEA RDI,[RBP + -0x210] CALL 0x00124120 MOV qword ptr [RBP + -0x240],RAX LEA RDI,[RBP + -0x210] ADD RDI,qword ptr [RBP + -0x240] MOV RSI,qword ptr [RBP + -0x220] MOVSXD RAX,dword ptr [RBP + -0x234] ADD RSI,RAX MOV EDX,0x200 SUB RDX,qword ptr [RBP + -0x240] CALL 0x0017db70 JMP 0x0013908a LAB_0013907c: MOV RAX,qword ptr [RBP + -0x220] MOV qword ptr [RBP + -0x230],RAX LAB_0013908a: JMP 0x001390b2 LAB_0013908c: LEA RDI,[RBP + -0x210] MOV RDX,qword ptr [RBP + -0x228] MOV RCX,qword ptr [RBP + -0x220] MOV ESI,0x200 XOR EAX,EAX MOV R8D,EAX MOV AL,0x0 CALL 0x0017dd90 LAB_001390b2: JMP 0x001390b4 LAB_001390b4: MOV RDI,qword ptr [RBP + -0x218] MOV RSI,qword ptr [RBP + -0x230] MOV EDX,0x1ff CALL 0x0017db70 JMP 0x001390ce LAB_001390ce: JMP 0x001390d0 LAB_001390d0: MOV RAX,qword ptr [RBP + -0x218] MOV qword ptr [RBP + -0x258],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00139100 MOV RAX,qword ptr [RBP + -0x258] ADD RSP,0x260 POP RBP RET LAB_00139100: CALL 0x00124300
int8 my_load_path(int8 param_1,char *param_2,long param_3) { int iVar1; size_t sVar2; long in_FS_OFFSET; bool local_249; uint local_23c; char *local_238; char local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_238 = param_2; if (((*param_2 != '~') || (param_2[1] != '/')) && (iVar1 = test_if_hard_path(param_2), iVar1 == 0) ) { local_249 = false; if (*param_2 == '.') { local_249 = param_2[1] == '/'; } local_23c = (uint)local_249; if (((local_249 == false) && (iVar1 = is_prefix(param_2,&DAT_00181fc6), iVar1 == 0)) && (param_3 != 0)) { strxnmov(local_218,0x200,param_3,param_2,0); local_238 = local_218; } else { if (local_23c != 0) { local_23c = 2; } sVar2 = strlen(param_2); iVar1 = my_getwd(local_218,(0x200 - (int)sVar2) + local_23c,0); if (iVar1 == 0) { sVar2 = strlen(local_218); strmake(local_218 + sVar2,param_2 + (int)local_23c,0x200 - sVar2); local_238 = local_218; } } } strmake(param_1,local_238,0x1ff); if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return param_1; }
38,946
parse_time
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
static int parse_time(const char *str, size_t length, const char **end_ptr, MYSQL_TIME *tm) { int err= 0; const char *p = str; const char *end = str + length; size_t frac_len; int ret=1; tm->hour = my_strtoui(p, end-p, &p, &err); if (err || tm->hour > 838 || p == end || *p != ':' ) goto end; p++; tm->minute = my_strtoui(p, end-p, &p, &err); if (err || tm->minute > 59 || p == end || *p != ':') goto end; p++; tm->second = my_strtoui(p, end-p, &p, &err); if (err || tm->second > 59) goto end; ret = 0; tm->second_part = 0; if (p == end) goto end; /* Check for fractional part*/ if (*p != '.') goto end; p++; frac_len = MIN(6,end-p); tm->second_part = my_strtoui(p, frac_len, &p, &err); if (err) goto end; if (frac_len < 6) tm->second_part *= frac_mul[frac_len]; ret = 0; /* Consume whole fractional part, even after 6 digits.*/ p += frac_len; while(p < *end_ptr) { if (*p < '0' || *p > '9') break; p++; } end: *end_ptr = p; return ret; }
O3
c
parse_time: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rcx, %r14 movq %rdx, %rbx movl $0x0, -0x24(%rbp) leaq (%rdi,%rsi), %rax testq %rsi, %rsi jle 0x232e4 movabsq $0x1999999999999999, %r8 # imm = 0x1999999999999999 xorl %edx, %edx xorl %esi, %esi xorl %ecx, %ecx movsbq (%rdi,%rsi), %r9 leal -0x3a(%r9), %r10d cmpb $-0xa, %r10b jb 0x232f4 cmpq %r8, %rcx ja 0x232e8 leaq (%rcx,%rcx), %r10 leaq (%r10,%r10,4), %r10 movl $0x2f, %r11d subq %r9, %r11 cmpq %r11, %r10 ja 0x232e8 leaq (%r10,%r9), %rcx addq $-0x30, %rcx leaq (%rdi,%rsi), %r9 incq %r9 incq %rsi cmpq %rax, %r9 jb 0x2329c addq %rsi, %rdi xorl %edx, %edx jmp 0x2330a xorl %ecx, %ecx jmp 0x232fe movl $0x22, -0x24(%rbp) movl $0x22, %edx testq %rsi, %rsi je 0x232fe addq %rsi, %rdi jmp 0x2330a movl $0x22, -0x24(%rbp) movl $0x22, %edx movq %rdi, -0x30(%rbp) movq %rcx, %rsi shrq $0x20, %rsi movl %ecx, 0xc(%r14) movl $0x1, %r15d jne 0x233eb testl %edx, %edx setne %dl cmpl $0x347, %ecx # imm = 0x347 setae %cl orb %dl, %cl cmpq %rax, %rdi sete %dl orb %cl, %dl jne 0x233eb cmpb $0x3a, (%rdi) jne 0x233eb incq %rdi movq %rdi, -0x30(%rbp) movq %rax, %rcx subq %rdi, %rcx testq %rcx, %rcx jle 0x233b6 movabsq $0x1999999999999999, %r8 # imm = 0x1999999999999999 xorl %edx, %edx xorl %esi, %esi xorl %ecx, %ecx movsbq (%rdi,%rsi), %r9 leal -0x3a(%r9), %r10d cmpb $-0xa, %r10b jb 0x233c6 cmpq %r8, %rcx ja 0x233ba leaq (%rcx,%rcx), %r10 leaq (%r10,%r10,4), %r10 movl $0x2f, %r11d subq %r9, %r11 cmpq %r11, %r10 ja 0x233ba leaq (%r10,%r9), %rcx addq $-0x30, %rcx leaq (%rdi,%rsi), %r9 incq %r9 incq %rsi cmpq %rax, %r9 jb 0x2336e addq %rsi, %rdi xorl %edx, %edx jmp 0x233da xorl %ecx, %ecx jmp 0x233ce movl $0x22, -0x24(%rbp) movl $0x22, %edx addq %rsi, %rdi testq %rsi, %rsi jne 0x233da movl $0x22, -0x24(%rbp) movl $0x22, %edx movq %rdi, -0x30(%rbp) movq %rcx, %rsi shrq $0x20, %rsi movl %ecx, 0x10(%r14) je 0x23402 movq -0x30(%rbp), %rax movq %rax, (%rbx) movl %r15d, %eax addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq cmpl $0x3b, %ecx ja 0x233eb testl %edx, %edx jne 0x233eb cmpq %rax, %rdi je 0x233eb cmpb $0x3a, (%rdi) jne 0x233eb incq %rdi movq %rdi, -0x30(%rbp) movq %rax, %rcx subq %rdi, %rcx testq %rcx, %rcx jle 0x2347f movabsq $0x1999999999999999, %r8 # imm = 0x1999999999999999 xorl %edx, %edx xorl %esi, %esi xorl %ecx, %ecx movsbq (%rdi,%rsi), %r9 leal -0x3a(%r9), %r10d cmpb $-0xa, %r10b jb 0x2348f cmpq %r8, %rcx ja 0x23483 leaq (%rcx,%rcx), %r10 leaq (%r10,%r10,4), %r10 movl $0x2f, %r11d subq %r9, %r11 cmpq %r11, %r10 ja 0x23483 leaq (%r10,%r9), %rcx addq $-0x30, %rcx leaq (%rdi,%rsi), %r9 incq %r9 incq %rsi cmpq %rax, %r9 jb 0x23437 addq %rsi, %rdi xorl %edx, %edx jmp 0x234a3 xorl %ecx, %ecx jmp 0x23497 movl $0x22, -0x24(%rbp) movl $0x22, %edx addq %rsi, %rdi testq %rsi, %rsi jne 0x234a3 movl $0x22, -0x24(%rbp) movl $0x22, %edx movq %rdi, -0x30(%rbp) movq %rcx, %rsi shrq $0x20, %rsi movl %ecx, 0x14(%r14) jne 0x233eb testl %edx, %edx setne %dl cmpl $0x3c, %ecx setae %cl orb %dl, %cl jne 0x233eb movq $0x0, 0x18(%r14) xorl %r15d, %r15d cmpq %rax, %rdi je 0x233eb cmpb $0x2e, (%rdi) jne 0x233eb incq %rdi leaq -0x30(%rbp), %rdx movq %rdi, (%rdx) subq %rdi, %rax cmpq $0x6, %rax movl $0x6, %r12d cmovlq %rax, %r12 leaq -0x24(%rbp), %rcx movq %r12, %rsi callq 0x24340 movq %rax, %rcx shrq $0x20, %rcx je 0x23523 movl %eax, %eax movq %rax, 0x18(%r14) jmp 0x233eb cmpl $0x0, -0x24(%rbp) movq %rax, 0x18(%r14) jne 0x233eb cmpq $0x5, %r12 ja 0x2354a leaq 0x14c82(%rip), %rcx # 0x381c0 movl (%rcx,%r12,4), %ecx imulq %rcx, %rax movq %rax, 0x18(%r14) addq -0x30(%rbp), %r12 movq (%rbx), %rax cmpq %rax, %r12 jae 0x2356d movb (%r12), %cl addb $-0x3a, %cl cmpb $-0xa, %cl jb 0x2356d incq %r12 cmpq %rax, %r12 jb 0x23556 movq %rax, %r12 movq %r12, -0x30(%rbp) jmp 0x233eb
parse_time: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 10h mov r14, rcx mov rbx, rdx mov [rbp+var_24], 0 lea rax, [rdi+rsi] test rsi, rsi jle short loc_232E4 mov r8, 1999999999999999h xor edx, edx xor esi, esi xor ecx, ecx loc_2329C: movsx r9, byte ptr [rdi+rsi] lea r10d, [r9-3Ah] cmp r10b, 0F6h jb short loc_232F4 cmp rcx, r8 ja short loc_232E8 lea r10, [rcx+rcx] lea r10, [r10+r10*4] mov r11d, 2Fh ; '/' sub r11, r9 cmp r10, r11 ja short loc_232E8 lea rcx, [r10+r9] add rcx, 0FFFFFFFFFFFFFFD0h lea r9, [rdi+rsi] inc r9 inc rsi cmp r9, rax jb short loc_2329C add rdi, rsi xor edx, edx jmp short loc_2330A loc_232E4: xor ecx, ecx jmp short loc_232FE loc_232E8: mov [rbp+var_24], 22h ; '"' mov edx, 22h ; '"' loc_232F4: test rsi, rsi jz short loc_232FE add rdi, rsi jmp short loc_2330A loc_232FE: mov [rbp+var_24], 22h ; '"' mov edx, 22h ; '"' loc_2330A: mov [rbp+var_30], rdi mov rsi, rcx shr rsi, 20h mov [r14+0Ch], ecx mov r15d, 1 jnz loc_233EB test edx, edx setnz dl cmp ecx, 347h setnb cl or cl, dl cmp rdi, rax setz dl or dl, cl jnz loc_233EB cmp byte ptr [rdi], 3Ah ; ':' jnz loc_233EB inc rdi mov [rbp+var_30], rdi mov rcx, rax sub rcx, rdi test rcx, rcx jle short loc_233B6 mov r8, 1999999999999999h xor edx, edx xor esi, esi xor ecx, ecx loc_2336E: movsx r9, byte ptr [rdi+rsi] lea r10d, [r9-3Ah] cmp r10b, 0F6h jb short loc_233C6 cmp rcx, r8 ja short loc_233BA lea r10, [rcx+rcx] lea r10, [r10+r10*4] mov r11d, 2Fh ; '/' sub r11, r9 cmp r10, r11 ja short loc_233BA lea rcx, [r10+r9] add rcx, 0FFFFFFFFFFFFFFD0h lea r9, [rdi+rsi] inc r9 inc rsi cmp r9, rax jb short loc_2336E add rdi, rsi xor edx, edx jmp short loc_233DA loc_233B6: xor ecx, ecx jmp short loc_233CE loc_233BA: mov [rbp+var_24], 22h ; '"' mov edx, 22h ; '"' loc_233C6: add rdi, rsi test rsi, rsi jnz short loc_233DA loc_233CE: mov [rbp+var_24], 22h ; '"' mov edx, 22h ; '"' loc_233DA: mov [rbp+var_30], rdi mov rsi, rcx shr rsi, 20h mov [r14+10h], ecx jz short loc_23402 loc_233EB: mov rax, [rbp+var_30] mov [rbx], rax mov eax, r15d add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_23402: cmp ecx, 3Bh ; ';' ja short loc_233EB test edx, edx jnz short loc_233EB cmp rdi, rax jz short loc_233EB cmp byte ptr [rdi], 3Ah ; ':' jnz short loc_233EB inc rdi mov [rbp+var_30], rdi mov rcx, rax sub rcx, rdi test rcx, rcx jle short loc_2347F mov r8, 1999999999999999h xor edx, edx xor esi, esi xor ecx, ecx loc_23437: movsx r9, byte ptr [rdi+rsi] lea r10d, [r9-3Ah] cmp r10b, 0F6h jb short loc_2348F cmp rcx, r8 ja short loc_23483 lea r10, [rcx+rcx] lea r10, [r10+r10*4] mov r11d, 2Fh ; '/' sub r11, r9 cmp r10, r11 ja short loc_23483 lea rcx, [r10+r9] add rcx, 0FFFFFFFFFFFFFFD0h lea r9, [rdi+rsi] inc r9 inc rsi cmp r9, rax jb short loc_23437 add rdi, rsi xor edx, edx jmp short loc_234A3 loc_2347F: xor ecx, ecx jmp short loc_23497 loc_23483: mov [rbp+var_24], 22h ; '"' mov edx, 22h ; '"' loc_2348F: add rdi, rsi test rsi, rsi jnz short loc_234A3 loc_23497: mov [rbp+var_24], 22h ; '"' mov edx, 22h ; '"' loc_234A3: mov [rbp+var_30], rdi mov rsi, rcx shr rsi, 20h mov [r14+14h], ecx jnz loc_233EB test edx, edx setnz dl cmp ecx, 3Ch ; '<' setnb cl or cl, dl jnz loc_233EB mov qword ptr [r14+18h], 0 xor r15d, r15d cmp rdi, rax jz loc_233EB cmp byte ptr [rdi], 2Eh ; '.' jnz loc_233EB inc rdi lea rdx, [rbp+var_30] mov [rdx], rdi sub rax, rdi cmp rax, 6 mov r12d, 6 cmovl r12, rax lea rcx, [rbp+var_24] mov rsi, r12 call my_strtoull mov rcx, rax shr rcx, 20h jz short loc_23523 mov eax, eax mov [r14+18h], rax jmp loc_233EB loc_23523: cmp [rbp+var_24], 0 mov [r14+18h], rax jnz loc_233EB cmp r12, 5 ja short loc_2354A lea rcx, frac_mul mov ecx, [rcx+r12*4] imul rax, rcx mov [r14+18h], rax loc_2354A: add r12, [rbp+var_30] mov rax, [rbx] cmp r12, rax jnb short loc_2356D loc_23556: mov cl, [r12] add cl, 0C6h cmp cl, 0F6h jb short loc_2356D inc r12 cmp r12, rax jb short loc_23556 mov r12, rax loc_2356D: mov [rbp+var_30], r12 jmp loc_233EB
long long parse_time(_BYTE *a1, long long a2, _BYTE **a3, long long a4, long long a5) { _BYTE *v7; // rax int v8; // edx long long v9; // rsi unsigned long long v10; // rcx long long v11; // r9 unsigned long long v12; // r9 unsigned int v13; // r15d _BYTE *v14; // rdi int v15; // edx long long v16; // rsi unsigned long long v17; // rcx long long v18; // r9 unsigned long long v19; // r9 _BYTE *v21; // rdi int v22; // edx long long v23; // rsi unsigned long long v24; // rcx long long v25; // r9 unsigned long long v26; // r9 _BYTE *v27; // rdi long long v28; // rax unsigned long long v29; // r12 unsigned long long v30; // rax bool v31; // zf _BYTE *v32; // r12 _BYTE *v33; // [rsp+0h] [rbp-30h] BYREF int v34[9]; // [rsp+Ch] [rbp-24h] BYREF v34[0] = 0; v7 = &a1[a2]; if ( a2 <= 0 ) { v10 = 0LL; LABEL_12: v34[0] = 34; v8 = 34; goto LABEL_13; } a5 = 0x1999999999999999LL; v8 = 0; v9 = 0LL; v10 = 0LL; while ( 1 ) { v11 = (char)a1[v9]; if ( (unsigned __int8)(v11 - 58) < 0xF6u ) break; if ( v10 > 0x1999999999999999LL || 10 * v10 > 47 - v11 ) { v34[0] = 34; v8 = 34; break; } v10 = 10 * v10 + v11 - 48; v12 = (unsigned long long)&a1[++v9]; if ( v12 >= (unsigned long long)v7 ) { a1 += v9; v8 = 0; goto LABEL_13; } } if ( !v9 ) goto LABEL_12; a1 += v9; LABEL_13: v33 = a1; *(_DWORD *)(a4 + 12) = v10; v13 = 1; if ( HIDWORD(v10) || v8 != 0 || (unsigned int)v10 >= 0x347 || a1 == v7 || *a1 != 58 ) goto LABEL_28; v14 = a1 + 1; v33 = v14; if ( v7 - v14 <= 0 ) { v17 = 0LL; LABEL_26: v34[0] = 34; v15 = 34; goto LABEL_27; } a5 = 0x1999999999999999LL; v15 = 0; v16 = 0LL; v17 = 0LL; while ( 1 ) { v18 = (char)v14[v16]; if ( (unsigned __int8)(v18 - 58) < 0xF6u ) break; if ( v17 > 0x1999999999999999LL || 10 * v17 > 47 - v18 ) { v34[0] = 34; v15 = 34; break; } v17 = 10 * v17 + v18 - 48; v19 = (unsigned long long)&v14[++v16]; if ( v19 >= (unsigned long long)v7 ) { v14 += v16; v15 = 0; goto LABEL_27; } } v14 += v16; if ( !v16 ) goto LABEL_26; LABEL_27: v33 = v14; *(_DWORD *)(a4 + 16) = v17; if ( HIDWORD(v17) || (unsigned int)v17 > 0x3B || v15 || v14 == v7 || *v14 != 58 ) goto LABEL_28; v21 = v14 + 1; v33 = v21; if ( v7 - v21 <= 0 ) { v24 = 0LL; } else { a5 = 0x1999999999999999LL; v22 = 0; v23 = 0LL; v24 = 0LL; while ( 1 ) { v25 = (char)v21[v23]; if ( (unsigned __int8)(v25 - 58) < 0xF6u ) break; if ( v24 > 0x1999999999999999LL || 10 * v24 > 47 - v25 ) { v34[0] = 34; v22 = 34; break; } v24 = 10 * v24 + v25 - 48; v26 = (unsigned long long)&v21[++v23]; if ( v26 >= (unsigned long long)v7 ) { v21 += v23; v22 = 0; goto LABEL_44; } } v21 += v23; if ( v23 ) goto LABEL_44; } v34[0] = 34; v22 = 34; LABEL_44: v33 = v21; *(_DWORD *)(a4 + 20) = v24; if ( !HIDWORD(v24) && v22 == 0 && (unsigned int)v24 < 0x3C ) { *(_QWORD *)(a4 + 24) = 0LL; v13 = 0; if ( v21 != v7 && *v21 == 46 ) { v27 = v21 + 1; v33 = v27; v28 = v7 - v27; v29 = 6LL; if ( v28 < 6 ) v29 = v28; v30 = my_strtoull(v27, v29, &v33, v34, a5); if ( HIDWORD(v30) ) { *(_QWORD *)(a4 + 24) = (unsigned int)v30; } else { v31 = v34[0] == 0; *(_QWORD *)(a4 + 24) = v30; if ( v31 ) { if ( v29 <= 5 ) *(_QWORD *)(a4 + 24) = frac_mul[v29] * v30; v32 = &v33[v29]; if ( v32 < *a3 ) { while ( (unsigned __int8)(*v32 - 58) >= 0xF6u ) { if ( ++v32 >= *a3 ) { v32 = *a3; break; } } } v33 = v32; } } } } LABEL_28: *a3 = v33; return v13; }
parse_time: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R14,RCX MOV RBX,RDX MOV dword ptr [RBP + -0x24],0x0 LEA RAX,[RDI + RSI*0x1] TEST RSI,RSI JLE 0x001232e4 MOV R8,0x1999999999999999 XOR EDX,EDX XOR ESI,ESI XOR ECX,ECX LAB_0012329c: MOVSX R9,byte ptr [RDI + RSI*0x1] LEA R10D,[R9 + -0x3a] CMP R10B,0xf6 JC 0x001232f4 CMP RCX,R8 JA 0x001232e8 LEA R10,[RCX + RCX*0x1] LEA R10,[R10 + R10*0x4] MOV R11D,0x2f SUB R11,R9 CMP R10,R11 JA 0x001232e8 LEA RCX,[R10 + R9*0x1] ADD RCX,-0x30 LEA R9,[RDI + RSI*0x1] INC R9 INC RSI CMP R9,RAX JC 0x0012329c ADD RDI,RSI XOR EDX,EDX JMP 0x0012330a LAB_001232e4: XOR ECX,ECX JMP 0x001232fe LAB_001232e8: MOV dword ptr [RBP + -0x24],0x22 MOV EDX,0x22 LAB_001232f4: TEST RSI,RSI JZ 0x001232fe ADD RDI,RSI JMP 0x0012330a LAB_001232fe: MOV dword ptr [RBP + -0x24],0x22 MOV EDX,0x22 LAB_0012330a: MOV qword ptr [RBP + -0x30],RDI MOV RSI,RCX SHR RSI,0x20 MOV dword ptr [R14 + 0xc],ECX MOV R15D,0x1 JNZ 0x001233eb TEST EDX,EDX SETNZ DL CMP ECX,0x347 SETNC CL OR CL,DL CMP RDI,RAX SETZ DL OR DL,CL JNZ 0x001233eb CMP byte ptr [RDI],0x3a JNZ 0x001233eb INC RDI MOV qword ptr [RBP + -0x30],RDI MOV RCX,RAX SUB RCX,RDI TEST RCX,RCX JLE 0x001233b6 MOV R8,0x1999999999999999 XOR EDX,EDX XOR ESI,ESI XOR ECX,ECX LAB_0012336e: MOVSX R9,byte ptr [RDI + RSI*0x1] LEA R10D,[R9 + -0x3a] CMP R10B,0xf6 JC 0x001233c6 CMP RCX,R8 JA 0x001233ba LEA R10,[RCX + RCX*0x1] LEA R10,[R10 + R10*0x4] MOV R11D,0x2f SUB R11,R9 CMP R10,R11 JA 0x001233ba LEA RCX,[R10 + R9*0x1] ADD RCX,-0x30 LEA R9,[RDI + RSI*0x1] INC R9 INC RSI CMP R9,RAX JC 0x0012336e ADD RDI,RSI XOR EDX,EDX JMP 0x001233da LAB_001233b6: XOR ECX,ECX JMP 0x001233ce LAB_001233ba: MOV dword ptr [RBP + -0x24],0x22 MOV EDX,0x22 LAB_001233c6: ADD RDI,RSI TEST RSI,RSI JNZ 0x001233da LAB_001233ce: MOV dword ptr [RBP + -0x24],0x22 MOV EDX,0x22 LAB_001233da: MOV qword ptr [RBP + -0x30],RDI MOV RSI,RCX SHR RSI,0x20 MOV dword ptr [R14 + 0x10],ECX JZ 0x00123402 LAB_001233eb: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBX],RAX MOV EAX,R15D ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00123402: CMP ECX,0x3b JA 0x001233eb TEST EDX,EDX JNZ 0x001233eb CMP RDI,RAX JZ 0x001233eb CMP byte ptr [RDI],0x3a JNZ 0x001233eb INC RDI MOV qword ptr [RBP + -0x30],RDI MOV RCX,RAX SUB RCX,RDI TEST RCX,RCX JLE 0x0012347f MOV R8,0x1999999999999999 XOR EDX,EDX XOR ESI,ESI XOR ECX,ECX LAB_00123437: MOVSX R9,byte ptr [RDI + RSI*0x1] LEA R10D,[R9 + -0x3a] CMP R10B,0xf6 JC 0x0012348f CMP RCX,R8 JA 0x00123483 LEA R10,[RCX + RCX*0x1] LEA R10,[R10 + R10*0x4] MOV R11D,0x2f SUB R11,R9 CMP R10,R11 JA 0x00123483 LEA RCX,[R10 + R9*0x1] ADD RCX,-0x30 LEA R9,[RDI + RSI*0x1] INC R9 INC RSI CMP R9,RAX JC 0x00123437 ADD RDI,RSI XOR EDX,EDX JMP 0x001234a3 LAB_0012347f: XOR ECX,ECX JMP 0x00123497 LAB_00123483: MOV dword ptr [RBP + -0x24],0x22 MOV EDX,0x22 LAB_0012348f: ADD RDI,RSI TEST RSI,RSI JNZ 0x001234a3 LAB_00123497: MOV dword ptr [RBP + -0x24],0x22 MOV EDX,0x22 LAB_001234a3: MOV qword ptr [RBP + -0x30],RDI MOV RSI,RCX SHR RSI,0x20 MOV dword ptr [R14 + 0x14],ECX JNZ 0x001233eb TEST EDX,EDX SETNZ DL CMP ECX,0x3c SETNC CL OR CL,DL JNZ 0x001233eb MOV qword ptr [R14 + 0x18],0x0 XOR R15D,R15D CMP RDI,RAX JZ 0x001233eb CMP byte ptr [RDI],0x2e JNZ 0x001233eb INC RDI LEA RDX,[RBP + -0x30] MOV qword ptr [RDX],RDI SUB RAX,RDI CMP RAX,0x6 MOV R12D,0x6 CMOVL R12,RAX LEA RCX,[RBP + -0x24] MOV RSI,R12 CALL 0x00124340 MOV RCX,RAX SHR RCX,0x20 JZ 0x00123523 MOV EAX,EAX MOV qword ptr [R14 + 0x18],RAX JMP 0x001233eb LAB_00123523: CMP dword ptr [RBP + -0x24],0x0 MOV qword ptr [R14 + 0x18],RAX JNZ 0x001233eb CMP R12,0x5 JA 0x0012354a LEA RCX,[0x1381c0] MOV ECX,dword ptr [RCX + R12*0x4] IMUL RAX,RCX MOV qword ptr [R14 + 0x18],RAX LAB_0012354a: ADD R12,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBX] CMP R12,RAX JNC 0x0012356d LAB_00123556: MOV CL,byte ptr [R12] ADD CL,0xc6 CMP CL,0xf6 JC 0x0012356d INC R12 CMP R12,RAX JC 0x00123556 MOV R12,RAX LAB_0012356d: MOV qword ptr [RBP + -0x30],R12 JMP 0x001233eb
int8 parse_time(char *param_1,long param_2,ulong *param_3,long param_4) { char cVar1; long lVar2; ulong uVar3; ulong uVar4; int iVar5; long lVar6; char *pcVar7; int8 uVar8; int8 uVar9; char *local_38; int local_2c; local_2c = 0; pcVar7 = param_1 + param_2; if (param_2 < 1) { uVar4 = 0; LAB_001232fe: local_2c = 0x22; iVar5 = 0x22; } else { iVar5 = 0; lVar6 = 0; uVar4 = 0; do { cVar1 = param_1[lVar6]; if ((byte)(cVar1 - 0x3aU) < 0xf6) { LAB_001232f4: if (lVar6 == 0) goto LAB_001232fe; param_1 = param_1 + lVar6; goto LAB_0012330a; } if ((0x1999999999999999 < uVar4) || (0x2fU - (long)cVar1 < uVar4 * 10)) { local_2c = 0x22; iVar5 = 0x22; goto LAB_001232f4; } uVar4 = (uVar4 * 10 + (long)cVar1) - 0x30; lVar2 = lVar6 + 1; lVar6 = lVar6 + 1; } while (param_1 + lVar2 < pcVar7); param_1 = param_1 + lVar6; iVar5 = 0; } LAB_0012330a: *(uint *)(param_4 + 0xc) = (uint)uVar4; uVar8 = 1; local_38 = param_1; if (((uVar4 >> 0x20 == 0) && (local_38 = param_1, param_1 != pcVar7 && ((uint)uVar4 < 0x347 && iVar5 == 0))) && (local_38 = param_1, *param_1 == ':')) { local_38 = param_1 + 1; if (pcVar7 == local_38 || (long)pcVar7 - (long)local_38 < 0) { uVar4 = 0; LAB_001233ce: local_2c = 0x22; iVar5 = 0x22; } else { iVar5 = 0; lVar6 = 0; uVar4 = 0; do { cVar1 = local_38[lVar6]; if ((byte)(cVar1 - 0x3aU) < 0xf6) { LAB_001233c6: local_38 = local_38 + lVar6; if (lVar6 == 0) goto LAB_001233ce; goto LAB_001233da; } if ((0x1999999999999999 < uVar4) || (0x2fU - (long)cVar1 < uVar4 * 10)) { local_2c = 0x22; iVar5 = 0x22; goto LAB_001233c6; } uVar4 = (uVar4 * 10 + (long)cVar1) - 0x30; lVar2 = lVar6 + 1; lVar6 = lVar6 + 1; } while (local_38 + lVar2 < pcVar7); local_38 = local_38 + lVar6; iVar5 = 0; } LAB_001233da: *(uint *)(param_4 + 0x10) = (uint)uVar4; if (((uVar4 >> 0x20 == 0) && ((uint)uVar4 < 0x3c)) && ((iVar5 == 0 && ((local_38 != pcVar7 && (*local_38 == ':')))))) { local_38 = local_38 + 1; if (pcVar7 == local_38 || (long)pcVar7 - (long)local_38 < 0) { uVar4 = 0; LAB_00123497: local_2c = 0x22; iVar5 = 0x22; } else { iVar5 = 0; lVar6 = 0; uVar4 = 0; do { cVar1 = local_38[lVar6]; if ((byte)(cVar1 - 0x3aU) < 0xf6) { LAB_0012348f: local_38 = local_38 + lVar6; if (lVar6 == 0) goto LAB_00123497; goto LAB_001234a3; } if ((0x1999999999999999 < uVar4) || (0x2fU - (long)cVar1 < uVar4 * 10)) { local_2c = 0x22; iVar5 = 0x22; goto LAB_0012348f; } uVar4 = (uVar4 * 10 + (long)cVar1) - 0x30; lVar2 = lVar6 + 1; lVar6 = lVar6 + 1; } while (local_38 + lVar2 < pcVar7); local_38 = local_38 + lVar6; iVar5 = 0; } LAB_001234a3: *(uint *)(param_4 + 0x14) = (uint)uVar4; if ((uVar4 >> 0x20 == 0) && ((uint)uVar4 < 0x3c && iVar5 == 0)) { *(int8 *)(param_4 + 0x18) = 0; uVar8 = 0; uVar9 = 0; if ((local_38 != pcVar7) && (*local_38 == '.')) { local_38 = local_38 + 1; uVar4 = 6; if ((long)pcVar7 - (long)local_38 < 6) { uVar4 = (long)pcVar7 - (long)local_38; } uVar3 = my_strtoull(local_38,uVar4,&local_38,&local_2c); if (uVar3 >> 0x20 == 0) { *(ulong *)(param_4 + 0x18) = uVar3; uVar8 = uVar9; if (local_2c == 0) { if (uVar4 < 6) { *(ulong *)(param_4 + 0x18) = uVar3 * *(uint *)(frac_mul + uVar4 * 4); } pcVar7 = local_38 + uVar4; local_38 = pcVar7; for (; (pcVar7 < (char *)*param_3 && (local_38 = pcVar7, 0xf5 < (byte)(*pcVar7 - 0x3aU))); pcVar7 = pcVar7 + 1) { local_38 = (char *)*param_3; } } } else { *(ulong *)(param_4 + 0x18) = uVar3 & 0xffffffff; } } } } } *param_3 = (ulong)local_38; return uVar8; }
38,947
list_free
eloqsql/mysys/list.c
void list_free(LIST *root, uint free_data) { LIST *next; while (root) { next=root->next; if (free_data) my_free(root->data); my_free(root); root=next; } }
O0
c
list_free: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) cmpq $0x0, -0x8(%rbp) je 0xdf478 movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) cmpl $0x0, -0xc(%rbp) je 0xdf465 movq -0x8(%rbp), %rax movq 0x10(%rax), %rdi callq 0xf3bb0 movq -0x8(%rbp), %rdi callq 0xf3bb0 movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xdf43f addq $0x20, %rsp popq %rbp retq nop
list_free: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi loc_DF43F: cmp [rbp+var_8], 0 jz short loc_DF478 mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_18], rax cmp [rbp+var_C], 0 jz short loc_DF465 mov rax, [rbp+var_8] mov rdi, [rax+10h] call my_free loc_DF465: mov rdi, [rbp+var_8] call my_free mov rax, [rbp+var_18] mov [rbp+var_8], rax jmp short loc_DF43F loc_DF478: add rsp, 20h pop rbp retn
long long list_free(long long a1, int a2) { long long result; // rax long long v3; // [rsp+8h] [rbp-18h] while ( a1 ) { v3 = *(_QWORD *)(a1 + 8); if ( a2 ) my_free(*(_QWORD *)(a1 + 16)); my_free(a1); result = v3; a1 = v3; } return result; }
list_free: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI LAB_001df43f: CMP qword ptr [RBP + -0x8],0x0 JZ 0x001df478 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX CMP dword ptr [RBP + -0xc],0x0 JZ 0x001df465 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x10] CALL 0x001f3bb0 LAB_001df465: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001f3bb0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX JMP 0x001df43f LAB_001df478: ADD RSP,0x20 POP RBP RET
void list_free(long param_1,int param_2) { long lVar1; int8 local_10; local_10 = param_1; while (local_10 != 0) { lVar1 = *(long *)(local_10 + 8); if (param_2 != 0) { my_free(*(int8 *)(local_10 + 0x10)); } my_free(local_10); local_10 = lVar1; } return; }
38,948
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*)
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp
static std::string diagnostics(const BasicJsonType* leaf_element) { #if JSON_DIAGNOSTICS std::vector<std::string> tokens; for (const auto* current = leaf_element; current != nullptr && current->m_parent != nullptr; current = current->m_parent) { switch (current->m_parent->type()) { case value_t::array: { for (std::size_t i = 0; i < current->m_parent->m_data.m_value.array->size(); ++i) { if (&current->m_parent->m_data.m_value.array->operator[](i) == current) { tokens.emplace_back(std::to_string(i)); break; } } break; } case value_t::object: { for (const auto& element : *current->m_parent->m_data.m_value.object) { if (&element.second == current) { tokens.emplace_back(element.first.c_str()); break; } } break; } case value_t::null: // LCOV_EXCL_LINE case value_t::string: // LCOV_EXCL_LINE case value_t::boolean: // LCOV_EXCL_LINE case value_t::number_integer: // LCOV_EXCL_LINE case value_t::number_unsigned: // LCOV_EXCL_LINE case value_t::number_float: // LCOV_EXCL_LINE case value_t::binary: // LCOV_EXCL_LINE case value_t::discarded: // LCOV_EXCL_LINE default: // LCOV_EXCL_LINE break; // LCOV_EXCL_LINE } } if (tokens.empty()) { return ""; } auto str = std::accumulate(tokens.rbegin(), tokens.rend(), std::string{}, [](const std::string & a, const std::string & b) { return concat(a, '/', detail::escape(b)); }); return concat('(', str, ") ", get_byte_positions(leaf_element)); #else return get_byte_positions(leaf_element); #endif }
O0
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, %rax movq %rax, -0x18(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rsi callq 0x5ff80 movq -0x18(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_: push rbp mov rbp, rsp sub rsp, 20h mov rax, rdi mov [rbp+var_18], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rsi, [rbp+var_10] call __ZN8nlohmann16json_abi_v3_11_36detail9exception18get_byte_positionsINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::get_byte_positions<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*) mov rax, [rbp+var_18] add rsp, 20h pop rbp retn
long long nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<std::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>>( long long a1, long long a2) { nlohmann::json_abi_v3_11_3::detail::exception::get_byte_positions<nlohmann::json_abi_v3_11_3::basic_json<std::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, a2); return a1; }
diagnostics<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV RAX,RDI MOV qword ptr [RBP + -0x18],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RSI,qword ptr [RBP + -0x10] CALL 0x0015ff80 MOV RAX,qword ptr [RBP + -0x18] ADD RSP,0x20 POP RBP RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const*) */ exception * __thiscall nlohmann::json_abi_v3_11_3::detail::exception:: diagnostics<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (exception *this,basic_json *param_1) { get_byte_positions<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,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,param_1); return this; }
38,949
common_params_get_system_info[abi:cxx11](common_params const&)
monkey531[P]llama/common/common.cpp
std::string common_params_get_system_info(const common_params & params) { std::ostringstream os; os << "system_info: n_threads = " << params.cpuparams.n_threads; if (params.cpuparams_batch.n_threads != -1) { os << " (n_threads_batch = " << params.cpuparams_batch.n_threads << ")"; } #if defined(_WIN32) && (_WIN32_WINNT >= 0x0601) && !defined(__MINGW64__) // windows 7 and later // TODO: windows + arm64 + mingw64 DWORD logicalProcessorCount = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS); os << " / " << logicalProcessorCount << " | " << llama_print_system_info(); #else os << " / " << std::thread::hardware_concurrency() << " | " << llama_print_system_info(); #endif return os.str(); }
O2
cpp
common_params_get_system_info[abi:cxx11](common_params const&): pushq %r15 pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rsi, %r14 movq %rdi, %rbx leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x208f0 leaq 0x693d4(%rip), %rsi # 0x8dec2 movq %r15, %rdi callq 0x206a0 movl 0x274(%r14), %esi movq %rax, %rdi callq 0x20b90 cmpl $-0x1, 0x488(%r14) je 0x24b3e leaq 0x693c6(%rip), %rsi # 0x8dedc leaq 0x8(%rsp), %rdi callq 0x206a0 movl 0x488(%r14), %esi movq %rax, %rdi callq 0x20b90 leaq 0x72f6d(%rip), %rsi # 0x97aa3 movq %rax, %rdi callq 0x206a0 leaq 0x693ac(%rip), %rsi # 0x8def1 leaq 0x8(%rsp), %rdi callq 0x206a0 movq %rax, %r14 callq 0x20930 movl %eax, %esi movq %r14, %rdi callq 0x204c0 leaq 0x7335c(%rip), %rsi # 0x97ec4 movq %rax, %rdi callq 0x206a0 movq %rax, %r14 callq 0x20410 movq %r14, %rdi movq %rax, %rsi callq 0x206a0 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x20aa0 leaq 0x8(%rsp), %rdi callq 0x20170 movq %rbx, %rax addq $0x180, %rsp # imm = 0x180 popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x20170 movq %rbx, %rdi callq 0x20bf0
_Z29common_params_get_system_infoB5cxx11RK13common_params: push r15 push r14 push rbx sub rsp, 180h mov r14, rsi mov rbx, rdi lea r15, [rsp+198h+var_190] mov rdi, r15 call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) lea rsi, aSystemInfoNThr; "system_info: n_threads = " mov rdi, r15 call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov esi, [r14+274h] mov rdi, rax call __ZNSolsEi; std::ostream::operator<<(int) cmp dword ptr [r14+488h], 0FFFFFFFFh jz short loc_24B3E lea rsi, aNThreadsBatch; " (n_threads_batch = " lea rdi, [rsp+198h+var_190] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov esi, [r14+488h] mov rdi, rax call __ZNSolsEi; std::ostream::operator<<(int) lea rsi, a09401910201912+51h; ")" mov rdi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) loc_24B3E: lea rsi, asc_8DEF1; " / " lea rdi, [rsp+198h+var_190]; this call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov r14, rax call __ZNSt6thread20hardware_concurrencyEv; std::thread::hardware_concurrency(void) mov esi, eax mov rdi, r14 call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong) lea rsi, asc_97EC3+1; " | " mov rdi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov r14, rax call _llama_print_system_info mov rdi, r14 mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) lea rsi, [rsp+198h+var_188] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) lea rdi, [rsp+198h+var_190] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() mov rax, rbx add rsp, 180h pop rbx pop r14 pop r15 retn mov rbx, rax lea rdi, [rsp+arg_0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() mov rdi, rbx call __Unwind_Resume
long long common_params_get_system_info[abi:cxx11](long long a1, long long a2) { long long v3; // rax long long v4; // rax long long v5; // rax long long v6; // r14 unsigned int v7; // eax long long v8; // rdi long long v9; // r14 long long v10; // rax _BYTE v12[8]; // [rsp+8h] [rbp-190h] BYREF _BYTE v13[392]; // [rsp+10h] [rbp-188h] BYREF std::ostringstream::basic_ostringstream(v12); v3 = std::operator<<<std::char_traits<char>>(v12, "system_info: n_threads = "); std::ostream::operator<<(v3, *(unsigned int *)(a2 + 628)); if ( *(_DWORD *)(a2 + 1160) != -1 ) { v4 = std::operator<<<std::char_traits<char>>(v12, " (n_threads_batch = "); v5 = std::ostream::operator<<(v4, *(unsigned int *)(a2 + 1160)); std::operator<<<std::char_traits<char>>(v5, ")"); } v6 = std::operator<<<std::char_traits<char>>(v12, " / "); v7 = std::thread::hardware_concurrency((std::thread *)v12); v8 = std::ostream::_M_insert<unsigned long>(v6, v7); v9 = std::operator<<<std::char_traits<char>>(v8, " | "); v10 = llama_print_system_info(); std::operator<<<std::char_traits<char>>(v9, v10); std::stringbuf::str(a1, v13); std::ostringstream::~ostringstream(v12); return a1; }
common_params_get_system_info[abi:cxx11]: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x180 MOV R14,RSI MOV RBX,RDI LEA R15,[RSP + 0x8] MOV RDI,R15 CALL 0x001208f0 LAB_00124ae7: LEA RSI,[0x18dec2] MOV RDI,R15 CALL 0x001206a0 MOV ESI,dword ptr [R14 + 0x274] MOV RDI,RAX CALL 0x00120b90 CMP dword ptr [R14 + 0x488],-0x1 JZ 0x00124b3e LEA RSI,[0x18dedc] LEA RDI,[RSP + 0x8] CALL 0x001206a0 MOV ESI,dword ptr [R14 + 0x488] MOV RDI,RAX CALL 0x00120b90 LEA RSI,[0x197aa3] MOV RDI,RAX CALL 0x001206a0 LAB_00124b3e: LEA RSI,[0x18def1] LEA RDI,[RSP + 0x8] CALL 0x001206a0 MOV R14,RAX CALL 0x00120930 MOV ESI,EAX MOV RDI,R14 CALL 0x001204c0 LEA RSI,[0x197ec4] MOV RDI,RAX CALL 0x001206a0 MOV R14,RAX CALL 0x00120410 MOV RDI,R14 MOV RSI,RAX CALL 0x001206a0 LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x00120aa0 LAB_00124b90: LEA RDI,[RSP + 0x8] CALL 0x00120170 MOV RAX,RBX ADD RSP,0x180 POP RBX POP R14 POP R15 RET
/* common_params_get_system_info[abi:cxx11](common_params const&) */ common_params * common_params_get_system_info_abi_cxx11_(common_params *param_1) { ostream *poVar1; char *pcVar2; long in_RSI; ostringstream local_190 [376]; std::__cxx11::ostringstream::ostringstream(local_190); /* try { // try from 00124ae7 to 00124b8f has its CatchHandler @ 00124baa */ poVar1 = std::operator<<((ostream *)local_190,"system_info: n_threads = "); std::ostream::operator<<(poVar1,*(int *)(in_RSI + 0x274)); if (*(int *)(in_RSI + 0x488) != -1) { poVar1 = std::operator<<((ostream *)local_190," (n_threads_batch = "); poVar1 = (ostream *)std::ostream::operator<<(poVar1,*(int *)(in_RSI + 0x488)); std::operator<<(poVar1,")"); } poVar1 = std::operator<<((ostream *)local_190," / "); std::thread::hardware_concurrency(); poVar1 = std::ostream::_M_insert<unsigned_long>((ulong)poVar1); poVar1 = std::operator<<(poVar1," | "); pcVar2 = (char *)llama_print_system_info(); std::operator<<(poVar1,pcVar2); std::__cxx11::stringbuf::str(); std::__cxx11::ostringstream::~ostringstream(local_190); return param_1; }
38,950
net_field_length
eloqsql/libmariadb/libmariadb/mariadb_lib.c
ulong net_field_length(uchar **packet) { reg1 uchar *pos= *packet; if (*pos < 251) { (*packet)++; return (ulong) *pos; } if (*pos == 251) { (*packet)++; return NULL_LENGTH; } if (*pos == 252) { (*packet)+=3; return (ulong) uint2korr(pos+1); } if (*pos == 253) { (*packet)+=4; return (ulong) uint3korr(pos+1); } (*packet)+=9; /* Must be 254 when here */ return (ulong) uint4korr(pos+1); }
O3
c
net_field_length: pushq %rbp movq %rsp, %rbp movq (%rdi), %rax movzbl (%rax), %ecx cmpl $0xfa, %ecx ja 0x26fe7 leaq 0x1(%rax), %rcx movq %rcx, (%rdi) movzbl (%rax), %eax popq %rbp retq cmpl $0xfd, %ecx je 0x2701b cmpl $0xfc, %ecx je 0x2700e cmpl $0xfb, %ecx jne 0x27032 incq %rax movq %rax, (%rdi) movq $-0x1, %rax jmp 0x26fe5 leaq 0x3(%rax), %rcx movq %rcx, (%rdi) movzwl 0x1(%rax), %eax jmp 0x26fe5 leaq 0x4(%rax), %rcx movq %rcx, (%rdi) movzwl 0x1(%rax), %ecx movzbl 0x3(%rax), %eax shll $0x10, %eax orq %rcx, %rax jmp 0x26fe5 leaq 0x9(%rax), %rcx movq %rcx, (%rdi) movl 0x1(%rax), %eax jmp 0x26fe5
net_field_length: push rbp mov rbp, rsp mov rax, [rdi] movzx ecx, byte ptr [rax] cmp ecx, 0FAh ja short loc_26FE7 lea rcx, [rax+1] mov [rdi], rcx movzx eax, byte ptr [rax] loc_26FE5: pop rbp retn loc_26FE7: cmp ecx, 0FDh jz short loc_2701B cmp ecx, 0FCh jz short loc_2700E cmp ecx, 0FBh jnz short loc_27032 inc rax mov [rdi], rax mov rax, 0FFFFFFFFFFFFFFFFh jmp short loc_26FE5 loc_2700E: lea rcx, [rax+3] mov [rdi], rcx movzx eax, word ptr [rax+1] jmp short loc_26FE5 loc_2701B: lea rcx, [rax+4] mov [rdi], rcx movzx ecx, word ptr [rax+1] movzx eax, byte ptr [rax+3] shl eax, 10h or rax, rcx jmp short loc_26FE5 loc_27032: lea rcx, [rax+9] mov [rdi], rcx mov eax, [rax+1] jmp short loc_26FE5
unsigned long long net_field_length(unsigned __int8 **a1) { unsigned __int8 *v1; // rax unsigned int v2; // ecx v1 = *a1; v2 = **a1; if ( v2 > 0xFA ) { switch ( v2 ) { case 0xFDu: *a1 = v1 + 4; return *(unsigned __int16 *)(v1 + 1) | (unsigned long long)(v1[3] << 16); case 0xFCu: *a1 = v1 + 3; return *(unsigned __int16 *)(v1 + 1); case 0xFBu: *a1 = v1 + 1; return -1LL; default: *a1 = v1 + 9; return *(unsigned int *)(v1 + 1); } } else { *a1 = v1 + 1; return *v1; } }
net_field_length: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI] MOVZX ECX,byte ptr [RAX] CMP ECX,0xfa JA 0x00126fe7 LEA RCX,[RAX + 0x1] MOV qword ptr [RDI],RCX MOVZX EAX,byte ptr [RAX] LAB_00126fe5: POP RBP RET LAB_00126fe7: CMP ECX,0xfd JZ 0x0012701b CMP ECX,0xfc JZ 0x0012700e CMP ECX,0xfb JNZ 0x00127032 INC RAX MOV qword ptr [RDI],RAX MOV RAX,-0x1 JMP 0x00126fe5 LAB_0012700e: LEA RCX,[RAX + 0x3] MOV qword ptr [RDI],RCX MOVZX EAX,word ptr [RAX + 0x1] JMP 0x00126fe5 LAB_0012701b: LEA RCX,[RAX + 0x4] MOV qword ptr [RDI],RCX MOVZX ECX,word ptr [RAX + 0x1] MOVZX EAX,byte ptr [RAX + 0x3] SHL EAX,0x10 OR RAX,RCX JMP 0x00126fe5 LAB_00127032: LEA RCX,[RAX + 0x9] MOV qword ptr [RDI],RCX MOV EAX,dword ptr [RAX + 0x1] JMP 0x00126fe5
ulong net_field_length(long *param_1) { byte bVar1; byte *pbVar2; ulong uVar3; pbVar2 = (byte *)*param_1; bVar1 = *pbVar2; if (bVar1 < 0xfb) { *param_1 = (long)(pbVar2 + 1); uVar3 = (ulong)*pbVar2; } else if (bVar1 == 0xfd) { *param_1 = (long)(pbVar2 + 4); uVar3 = (ulong)*(uint3 *)(pbVar2 + 1); } else if (bVar1 == 0xfc) { *param_1 = (long)(pbVar2 + 3); uVar3 = (ulong)*(ushort *)(pbVar2 + 1); } else if (bVar1 == 0xfb) { *param_1 = (long)(pbVar2 + 1); uVar3 = 0xffffffffffffffff; } else { *param_1 = (long)(pbVar2 + 9); uVar3 = (ulong)*(uint *)(pbVar2 + 1); } return uVar3; }
38,951
ParseReadDeclaration
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/tool/parse.c
int ParseReadDeclaration(struct LexState * Lexer, enum LexToken Token, struct Value* Value) { int res ; struct Value tmp ; enum parserState state = _parser_state ; PARSER_STATEMACHINE_T * statemachine = (PARSER_STATEMACHINE_T *)Lexer->ctx ; switch(Token) { case TokenStatemachine: _parser_state = parseStatemachineDeclare ; break ; case TokenState: _parser_state = parseStateDeclare ; break ; default: PARSER_REPORT(statemachine->logif, "warning: expected statemachine or state declaration!\r\n") ; return 0 ; } Token = LexScanGetToken (Lexer, Value) ; res = parse_is_reserved(Lexer, Token) ; if (res == 1) { _parser_state = state ; res &= LexScanGetToken (Lexer, &tmp) == TokenLeftBrace ; if (res == 0) { char val [8] ; PARSER_REPORT(statemachine->logif, "warning: expected left brace (%s)\r\n", LexGetValue(Value, val, 8)) ; } } return res ; }
O3
c
ParseReadDeclaration: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movq %rdi, %r14 movl 0x34624(%rip), %r13d # 0x3f0b0 movq 0x20(%rdi), %r12 cmpl $0x40, %esi je 0xaaa5 cmpl $0x41, %esi jne 0xab23 movl $0x6, %eax jmp 0xaaaa movl $0x7, %eax movl %eax, 0x34600(%rip) # 0x3f0b0 movq %r14, %rdi movq %rbx, %rsi callq 0x8c51 movq 0x20(%r14), %rdi movl %eax, %esi callq 0xab59 xorl %r15d, %r15d testl %eax, %eax je 0xab47 movl %r13d, 0x345dc(%rip) # 0x3f0b0 leaq -0x48(%rbp), %rsi movq %r14, %rdi callq 0x8c51 movl $0x1, %r15d cmpl $0x34, %eax je 0xab47 movq 0x50(%r12), %rax testq %rax, %rax je 0xab1e movq 0x8(%rax), %r14 testq %r14, %r14 je 0xab1e leaq -0x30(%rbp), %rsi movq %rbx, %rdi movl $0x8, %edx callq 0x92f3 leaq 0x1ab60(%rip), %rdi # 0x25676 movq %rax, %rsi xorl %eax, %eax callq *%r14 xorl %r15d, %r15d jmp 0xab47 movq 0x50(%r12), %rax xorl %r15d, %r15d testq %rax, %rax je 0xab47 movq 0x8(%rax), %rcx testq %rcx, %rcx je 0xab47 leaq 0x1aaff(%rip), %rdi # 0x2563f xorl %r15d, %r15d xorl %eax, %eax callq *%rcx movl %r15d, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ParseReadDeclaration: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdx mov r14, rdi mov r13d, cs:_parser_state mov r12, [rdi+20h] cmp esi, 40h ; '@' jz short loc_AAA5 cmp esi, 41h ; 'A' jnz loc_AB23 mov eax, 6 jmp short loc_AAAA loc_AAA5: mov eax, 7 loc_AAAA: mov cs:_parser_state, eax mov rdi, r14 mov rsi, rbx call LexScanGetToken mov rdi, [r14+20h] mov esi, eax call parse_is_reserved xor r15d, r15d test eax, eax jz short loc_AB47 mov cs:_parser_state, r13d lea rsi, [rbp+var_48] mov rdi, r14 call LexScanGetToken mov r15d, 1 cmp eax, 34h ; '4' jz short loc_AB47 mov rax, [r12+50h] test rax, rax jz short loc_AB1E mov r14, [rax+8] test r14, r14 jz short loc_AB1E lea rsi, [rbp+var_30] mov rdi, rbx mov edx, 8 call LexGetValue lea rdi, aWarningExpecte; "warning: expected left brace (%s)\r\n" mov rsi, rax xor eax, eax call r14 loc_AB1E: xor r15d, r15d jmp short loc_AB47 loc_AB23: mov rax, [r12+50h] xor r15d, r15d test rax, rax jz short loc_AB47 mov rcx, [rax+8] test rcx, rcx jz short loc_AB47 lea rdi, aWarningExpecte_0; "warning: expected statemachine or state"... xor r15d, r15d xor eax, eax call rcx loc_AB47: mov eax, r15d add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ParseReadDeclaration(long long a1, int a2, _DWORD *a3) { int v4; // r13d long long v5; // r12 int v6; // eax unsigned int Token; // eax unsigned int v8; // r15d long long v9; // rax void (*v10)(const char *, ...); // r14 const char *Value; // rax long long v12; // rax void ( *v13)(char *); // rcx _BYTE v15[24]; // [rsp+8h] [rbp-48h] BYREF _BYTE v16[48]; // [rsp+20h] [rbp-30h] BYREF v4 = parser_state; v5 = *(_QWORD *)(a1 + 32); if ( a2 == 64 ) { v6 = 7; goto LABEL_5; } if ( a2 == 65 ) { v6 = 6; LABEL_5: parser_state = v6; Token = LexScanGetToken(a1, (long long)a3); v8 = 0; if ( (unsigned int)parse_is_reserved(*(_QWORD *)(a1 + 32), Token) ) { parser_state = v4; v8 = 1; if ( (unsigned int)LexScanGetToken(a1, (long long)v15) != 52 ) { v9 = *(_QWORD *)(v5 + 80); if ( v9 ) { v10 = *(void (**)(const char *, ...))(v9 + 8); if ( v10 ) { Value = LexGetValue(a3, v16, 8); v10("warning: expected left brace (%s)\r\n", Value); } } return 0; } } return v8; } v12 = *(_QWORD *)(v5 + 80); v8 = 0; if ( v12 ) { v13 = *(void ( **)(char *))(v12 + 8); if ( v13 ) { v8 = 0; v13(aWarningExpecte_0); } } return v8; }
ParseReadDeclaration: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV R14,RDI MOV R13D,dword ptr [0x0013f0b0] MOV R12,qword ptr [RDI + 0x20] CMP ESI,0x40 JZ 0x0010aaa5 CMP ESI,0x41 JNZ 0x0010ab23 MOV EAX,0x6 JMP 0x0010aaaa LAB_0010aaa5: MOV EAX,0x7 LAB_0010aaaa: MOV dword ptr [0x0013f0b0],EAX MOV RDI,R14 MOV RSI,RBX CALL 0x00108c51 MOV RDI,qword ptr [R14 + 0x20] MOV ESI,EAX CALL 0x0010ab59 XOR R15D,R15D TEST EAX,EAX JZ 0x0010ab47 MOV dword ptr [0x0013f0b0],R13D LEA RSI,[RBP + -0x48] MOV RDI,R14 CALL 0x00108c51 MOV R15D,0x1 CMP EAX,0x34 JZ 0x0010ab47 MOV RAX,qword ptr [R12 + 0x50] TEST RAX,RAX JZ 0x0010ab1e MOV R14,qword ptr [RAX + 0x8] TEST R14,R14 JZ 0x0010ab1e LEA RSI,[RBP + -0x30] MOV RDI,RBX MOV EDX,0x8 CALL 0x001092f3 LEA RDI,[0x125676] MOV RSI,RAX XOR EAX,EAX CALL R14 LAB_0010ab1e: XOR R15D,R15D JMP 0x0010ab47 LAB_0010ab23: MOV RAX,qword ptr [R12 + 0x50] XOR R15D,R15D TEST RAX,RAX JZ 0x0010ab47 MOV RCX,qword ptr [RAX + 0x8] TEST RCX,RCX JZ 0x0010ab47 LEA RDI,[0x12563f] XOR R15D,R15D XOR EAX,EAX CALL RCX LAB_0010ab47: MOV EAX,R15D ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 ParseReadDeclaration(long param_1,int param_2,int8 param_3) { long lVar1; code *pcVar2; int4 uVar3; int4 uVar4; int iVar5; int8 uVar6; int1 local_50 [24]; int1 local_38 [8]; uVar3 = _parser_state; lVar1 = *(long *)(param_1 + 0x20); if (param_2 == 0x40) { _parser_state = 7; } else { if (param_2 != 0x41) { lVar1 = *(long *)(lVar1 + 0x50); if (lVar1 == 0) { return 0; } pcVar2 = *(code **)(lVar1 + 8); if (pcVar2 == (code *)0x0) { return 0; } (*pcVar2)(s_warning__expected_statemachine_o_0012563f); return 0; } _parser_state = 6; } uVar4 = LexScanGetToken(param_1,param_3); iVar5 = parse_is_reserved(*(int8 *)(param_1 + 0x20),uVar4); uVar6 = 0; if (iVar5 != 0) { _parser_state = uVar3; iVar5 = LexScanGetToken(param_1,local_50); uVar6 = 1; if (iVar5 != 0x34) { lVar1 = *(long *)(lVar1 + 0x50); if ((lVar1 != 0) && (pcVar2 = *(code **)(lVar1 + 8), pcVar2 != (code *)0x0)) { uVar6 = LexGetValue(param_3,local_38,8); (*pcVar2)(s_warning__expected_left_brace___s_00125676,uVar6); } uVar6 = 0; } } return uVar6; }
38,952
unlink_from_queue
eloqsql/mysys/mf_keycache.c
static void unlink_from_queue(KEYCACHE_WQUEUE *wqueue, struct st_my_thread_var *thread) { KEYCACHE_DBUG_PRINT("unlink_from_queue", ("thread %ld", (ulong) thread->id)); DBUG_ASSERT(thread->next && thread->prev); if (thread->next == thread) { /* The queue contains only one member */ wqueue->last_thread= NULL; } else { /* Remove current element from list */ thread->next->prev= thread->prev; *thread->prev= thread->next; /* If first element, change list pointer to point to previous element */ if (wqueue->last_thread == thread) wqueue->last_thread= STRUCT_PTR(struct st_my_thread_var, next, thread->prev); } thread->next= NULL; #ifdef DBUG_ASSERT_EXISTS /* This makes it easier to see it's not in a chain during debugging. And some DBUG_ASSERT() rely on it. */ thread->prev= NULL; #endif }
O0
c
unlink_from_queue: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0xe566e jmp 0xe5670 jmp 0xe5672 movq -0x10(%rbp), %rax movq 0x88(%rax), %rax cmpq -0x10(%rbp), %rax jne 0xe5690 movq -0x8(%rbp), %rax movq $0x0, (%rax) jmp 0xe56ee movq -0x10(%rbp), %rax movq 0x90(%rax), %rcx movq -0x10(%rbp), %rax movq 0x88(%rax), %rax movq %rcx, 0x90(%rax) movq -0x10(%rbp), %rax movq 0x88(%rax), %rcx movq -0x10(%rbp), %rax movq 0x90(%rax), %rax movq %rcx, (%rax) movq -0x8(%rbp), %rax movq (%rax), %rax cmpq -0x10(%rbp), %rax jne 0xe56ec movq -0x10(%rbp), %rax movq 0x90(%rax), %rcx addq $-0x88, %rcx movq -0x8(%rbp), %rax movq %rcx, (%rax) jmp 0xe56ee movq -0x10(%rbp), %rax movq $0x0, 0x88(%rax) popq %rbp retq nop
unlink_from_queue: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_E566E: jmp short $+2 loc_E5670: jmp short $+2 loc_E5672: mov rax, [rbp+var_10] mov rax, [rax+88h] cmp rax, [rbp+var_10] jnz short loc_E5690 mov rax, [rbp+var_8] mov qword ptr [rax], 0 jmp short loc_E56EE loc_E5690: mov rax, [rbp+var_10] mov rcx, [rax+90h] mov rax, [rbp+var_10] mov rax, [rax+88h] mov [rax+90h], rcx mov rax, [rbp+var_10] mov rcx, [rax+88h] mov rax, [rbp+var_10] mov rax, [rax+90h] mov [rax], rcx mov rax, [rbp+var_8] mov rax, [rax] cmp rax, [rbp+var_10] jnz short loc_E56EC mov rax, [rbp+var_10] mov rcx, [rax+90h] add rcx, 0FFFFFFFFFFFFFF78h mov rax, [rbp+var_8] mov [rax], rcx loc_E56EC: jmp short $+2 loc_E56EE: mov rax, [rbp+var_10] mov qword ptr [rax+88h], 0 pop rbp retn
long long unlink_from_queue(_QWORD *a1, long long a2) { long long result; // rax if ( *(_QWORD *)(a2 + 136) == a2 ) { *a1 = 0LL; } else { *(_QWORD *)(*(_QWORD *)(a2 + 136) + 144LL) = *(_QWORD *)(a2 + 144); **(_QWORD **)(a2 + 144) = *(_QWORD *)(a2 + 136); if ( *a1 == a2 ) *a1 = *(_QWORD *)(a2 + 144) - 136LL; } result = a2; *(_QWORD *)(a2 + 136) = 0LL; return result; }
unlink_from_queue: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x001e566e LAB_001e566e: JMP 0x001e5670 LAB_001e5670: JMP 0x001e5672 LAB_001e5672: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x88] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001e5690 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],0x0 JMP 0x001e56ee LAB_001e5690: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x90] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x88] MOV qword ptr [RAX + 0x90],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x88] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x90] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001e56ec MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x90] ADD RCX,-0x88 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],RCX LAB_001e56ec: JMP 0x001e56ee LAB_001e56ee: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x88],0x0 POP RBP RET
void unlink_from_queue(long *param_1,long param_2) { if (*(long *)(param_2 + 0x88) == param_2) { *param_1 = 0; } else { *(int8 *)(*(long *)(param_2 + 0x88) + 0x90) = *(int8 *)(param_2 + 0x90); **(int8 **)(param_2 + 0x90) = *(int8 *)(param_2 + 0x88); if (*param_1 == param_2) { *param_1 = *(long *)(param_2 + 0x90) + -0x88; } } *(int8 *)(param_2 + 0x88) = 0; return; }
38,953
js_async_from_sync_iterator_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_async_from_sync_iterator_finalizer(JSRuntime *rt, JSValue val) { JSAsyncFromSyncIteratorData *s = JS_GetOpaque(val, JS_CLASS_ASYNC_FROM_SYNC_ITERATOR); if (s) { JS_FreeValueRT(rt, s->sync_iter); JS_FreeValueRT(rt, s->next_method); js_free_rt(rt, s); } }
O0
c
js_async_from_sync_iterator_finalizer: subq $0x28, %rsp movq %rsi, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq %rdi, 0x10(%rsp) movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rsi movl $0x37, %edx callq 0x3e640 movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) je 0x97c90 movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x2a000 movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rax movq 0x10(%rax), %rsi movq 0x18(%rax), %rdx callq 0x2a000 movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x27c50 addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
js_async_from_sync_iterator_finalizer: sub rsp, 28h mov [rsp+28h+var_10], rsi mov [rsp+28h+var_8], rdx mov [rsp+28h+var_18], rdi mov rdi, [rsp+28h+var_10] mov rsi, [rsp+28h+var_8] mov edx, 37h ; '7' call JS_GetOpaque mov [rsp+28h+var_20], rax cmp [rsp+28h+var_20], 0 jz short loc_97C90 mov rdi, [rsp+28h+var_18] mov rax, [rsp+28h+var_20] mov rsi, [rax] mov rdx, [rax+8] call JS_FreeValueRT mov rdi, [rsp+28h+var_18] mov rax, [rsp+28h+var_20] mov rsi, [rax+10h] mov rdx, [rax+18h] call JS_FreeValueRT mov rdi, [rsp+28h+var_18] mov rsi, [rsp+28h+var_20] call js_free_rt loc_97C90: add rsp, 28h retn
void js_async_from_sync_iterator_finalizer(long long a1, long long a2, int a3) { long long Opaque; // [rsp+8h] [rbp-20h] Opaque = JS_GetOpaque(a2, a3, 55); if ( Opaque ) { JS_FreeValueRT(a1, *(_DWORD **)Opaque, *(_QWORD *)(Opaque + 8)); JS_FreeValueRT(a1, *(_DWORD **)(Opaque + 16), *(_QWORD *)(Opaque + 24)); js_free_rt(a1, Opaque); } }
js_async_from_sync_iterator_finalizer: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RSI MOV qword ptr [RSP + 0x20],RDX MOV qword ptr [RSP + 0x10],RDI MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] MOV EDX,0x37 CALL 0x0013e640 MOV qword ptr [RSP + 0x8],RAX CMP qword ptr [RSP + 0x8],0x0 JZ 0x00197c90 MOV RDI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x0012a000 MOV RDI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RAX + 0x10] MOV RDX,qword ptr [RAX + 0x18] CALL 0x0012a000 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] CALL 0x00127c50 LAB_00197c90: ADD RSP,0x28 RET
void js_async_from_sync_iterator_finalizer(int8 param_1,int8 param_2,int8 param_3) { int8 *puVar1; puVar1 = (int8 *)JS_GetOpaque(param_2,param_3,0x37); if (puVar1 != (int8 *)0x0) { JS_FreeValueRT(param_1,*puVar1,puVar1[1]); JS_FreeValueRT(param_1,puVar1[2],puVar1[3]); js_free_rt(param_1,puVar1); } return; }
38,954
js_async_from_sync_iterator_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_async_from_sync_iterator_finalizer(JSRuntime *rt, JSValue val) { JSAsyncFromSyncIteratorData *s = JS_GetOpaque(val, JS_CLASS_ASYNC_FROM_SYNC_ITERATOR); if (s) { JS_FreeValueRT(rt, s->sync_iter); JS_FreeValueRT(rt, s->next_method); js_free_rt(rt, s); } }
O1
c
js_async_from_sync_iterator_finalizer: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq %rsi, (%rsp) cmpl $-0x1, %edx jne 0x56991 movq (%rsp), %rax cmpw $0x37, 0x6(%rax) jne 0x56991 movq 0x30(%rax), %r14 jmp 0x56994 xorl %r14d, %r14d testq %r14, %r14 je 0x569e5 movq (%r14), %rsi movq 0x8(%r14), %rdx movq %rbx, %rdi callq 0x21922 movq 0x10(%r14), %rsi movq 0x18(%r14), %rdx movq %rbx, %rdi callq 0x21922 decq 0x28(%rbx) movq %r14, %rdi callq *0x20(%rbx) movq 0x10(%rbx), %rcx movq 0x30(%rbx), %rdx subq %rax, %rdx addq $-0x8, %rdx movq %rdx, 0x30(%rbx) movq 0x40(%rbx), %rdi movq %r14, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rcx addq $0x8, %rsp popq %rbx popq %r14 retq
js_async_from_sync_iterator_finalizer: push r14 push rbx push rax mov rbx, rdi mov [rsp+18h+var_18], rsi cmp edx, 0FFFFFFFFh jnz short loc_56991 mov rax, [rsp+18h+var_18] cmp word ptr [rax+6], 37h ; '7' jnz short loc_56991 mov r14, [rax+30h] jmp short loc_56994 loc_56991: xor r14d, r14d loc_56994: test r14, r14 jz short loc_569E5 mov rsi, [r14] mov rdx, [r14+8] mov rdi, rbx call JS_FreeValueRT mov rsi, [r14+10h] mov rdx, [r14+18h] mov rdi, rbx call JS_FreeValueRT dec qword ptr [rbx+28h] mov rdi, r14 call qword ptr [rbx+20h] mov rcx, [rbx+10h] mov rdx, [rbx+30h] sub rdx, rax add rdx, 0FFFFFFFFFFFFFFF8h mov [rbx+30h], rdx mov rdi, [rbx+40h] mov rsi, r14 add rsp, 8 pop rbx pop r14 jmp rcx loc_569E5: add rsp, 8 pop rbx pop r14 retn
void js_async_from_sync_iterator_finalizer(long long a1, long long a2, int a3) { long long v3; // r14 long long v4; // rax void ( *v5)(_QWORD, long long); // rcx if ( a3 == -1 && *(_WORD *)(a2 + 6) == 55 ) v3 = *(_QWORD *)(a2 + 48); else v3 = 0LL; if ( v3 ) { JS_FreeValueRT(a1, *(_DWORD **)v3, *(_QWORD *)(v3 + 8)); JS_FreeValueRT(a1, *(_DWORD **)(v3 + 16), *(_QWORD *)(v3 + 24)); --*(_QWORD *)(a1 + 40); v4 = (*(long long ( **)(long long))(a1 + 32))(v3); v5 = *(void ( **)(_QWORD, long long))(a1 + 16); *(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v4 - 8; v5(*(_QWORD *)(a1 + 64), v3); } }
js_async_from_sync_iterator_finalizer: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV qword ptr [RSP],RSI CMP EDX,-0x1 JNZ 0x00156991 MOV RAX,qword ptr [RSP] CMP word ptr [RAX + 0x6],0x37 JNZ 0x00156991 MOV R14,qword ptr [RAX + 0x30] JMP 0x00156994 LAB_00156991: XOR R14D,R14D LAB_00156994: TEST R14,R14 JZ 0x001569e5 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV RDI,RBX CALL 0x00121922 MOV RSI,qword ptr [R14 + 0x10] MOV RDX,qword ptr [R14 + 0x18] MOV RDI,RBX CALL 0x00121922 DEC qword ptr [RBX + 0x28] MOV RDI,R14 CALL qword ptr [RBX + 0x20] MOV RCX,qword ptr [RBX + 0x10] MOV RDX,qword ptr [RBX + 0x30] SUB RDX,RAX ADD RDX,-0x8 MOV qword ptr [RBX + 0x30],RDX MOV RDI,qword ptr [RBX + 0x40] MOV RSI,R14 ADD RSP,0x8 POP RBX POP R14 JMP RCX LAB_001569e5: ADD RSP,0x8 POP RBX POP R14 RET
void js_async_from_sync_iterator_finalizer(long param_1,long param_2,int param_3) { long lVar1; int8 *puVar2; if ((param_3 == -1) && (*(short *)(param_2 + 6) == 0x37)) { puVar2 = *(int8 **)(param_2 + 0x30); } else { puVar2 = (int8 *)0x0; } if (puVar2 != (int8 *)0x0) { JS_FreeValueRT(param_1,*puVar2,puVar2[1]); JS_FreeValueRT(param_1,puVar2[2],puVar2[3]); *(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1; lVar1 = (**(code **)(param_1 + 0x20))(puVar2); lVar1 = (*(long *)(param_1 + 0x30) - lVar1) + -8; *(long *)(param_1 + 0x30) = lVar1; /* WARNING: Could not recover jumptable at 0x001569e3. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(param_1 + 0x10)) (*(int8 *)(param_1 + 0x40),puVar2,lVar1,*(code **)(param_1 + 0x10)); return; } return; }
38,955
js_async_from_sync_iterator_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_async_from_sync_iterator_finalizer(JSRuntime *rt, JSValue val) { JSAsyncFromSyncIteratorData *s = JS_GetOpaque(val, JS_CLASS_ASYNC_FROM_SYNC_ITERATOR); if (s) { JS_FreeValueRT(rt, s->sync_iter); JS_FreeValueRT(rt, s->next_method); js_free_rt(rt, s); } }
O2
c
js_async_from_sync_iterator_finalizer: pushq %r14 pushq %rbx pushq %rax cmpl $-0x1, %edx jne 0x4a99b cmpw $0x37, 0x6(%rsi) jne 0x4a99b movq 0x30(%rsi), %r14 testq %r14, %r14 je 0x4a99b movq %rdi, %rbx movq (%r14), %rsi movq 0x8(%r14), %rdx callq 0x1bbe1 movq 0x10(%r14), %rsi movq 0x18(%r14), %rdx movq %rbx, %rdi callq 0x1bbe1 movq %rbx, %rdi movq %r14, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x1ac7b addq $0x8, %rsp popq %rbx popq %r14 retq
js_async_from_sync_iterator_finalizer: push r14 push rbx push rax cmp edx, 0FFFFFFFFh jnz short loc_4A99B cmp word ptr [rsi+6], 37h ; '7' jnz short loc_4A99B mov r14, [rsi+30h] test r14, r14 jz short loc_4A99B mov rbx, rdi mov rsi, [r14] mov rdx, [r14+8] call JS_FreeValueRT mov rsi, [r14+10h] mov rdx, [r14+18h] mov rdi, rbx call JS_FreeValueRT mov rdi, rbx mov rsi, r14 add rsp, 8 pop rbx pop r14 jmp js_free_rt loc_4A99B: add rsp, 8 pop rbx pop r14 retn
long long js_async_from_sync_iterator_finalizer(long long a1, long long a2, int a3) { long long v3; // r14 long long result; // rax if ( a3 == -1 && *(_WORD *)(a2 + 6) == 55 ) { v3 = *(_QWORD *)(a2 + 48); if ( v3 ) { JS_FreeValueRT(a1, *(unsigned int **)v3, *(_QWORD *)(v3 + 8)); JS_FreeValueRT(a1, *(unsigned int **)(v3 + 16), *(_QWORD *)(v3 + 24)); return js_free_rt(a1, v3); } } return result; }
js_async_from_sync_iterator_finalizer: PUSH R14 PUSH RBX PUSH RAX CMP EDX,-0x1 JNZ 0x0014a99b CMP word ptr [RSI + 0x6],0x37 JNZ 0x0014a99b MOV R14,qword ptr [RSI + 0x30] TEST R14,R14 JZ 0x0014a99b MOV RBX,RDI MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] CALL 0x0011bbe1 MOV RSI,qword ptr [R14 + 0x10] MOV RDX,qword ptr [R14 + 0x18] MOV RDI,RBX CALL 0x0011bbe1 MOV RDI,RBX MOV RSI,R14 ADD RSP,0x8 POP RBX POP R14 JMP 0x0011ac7b LAB_0014a99b: ADD RSP,0x8 POP RBX POP R14 RET
void js_async_from_sync_iterator_finalizer(int8 param_1,long param_2,int param_3) { int8 *puVar1; if (((param_3 == -1) && (*(short *)(param_2 + 6) == 0x37)) && (puVar1 = *(int8 **)(param_2 + 0x30), puVar1 != (int8 *)0x0)) { JS_FreeValueRT(param_1,*puVar1,puVar1[1]); JS_FreeValueRT(param_1,puVar1[2],puVar1[3]); js_free_rt(param_1,puVar1); return; } return; }
38,956
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char*, int)
monkey531[P]llama/common/json.hpp
inline char* append_exponent(char* buf, int e) { JSON_ASSERT(e > -1000); JSON_ASSERT(e < 1000); if (e < 0) { e = -e; *buf++ = '-'; } else { *buf++ = '+'; } auto k = static_cast<std::uint32_t>(e); if (k < 10) { // Always print at least two digits in the exponent. // This is for compatibility with printf("%g"). *buf++ = '0'; *buf++ = static_cast<char>('0' + k); } else if (k < 100) { *buf++ = static_cast<char>('0' + k / 10); k %= 10; *buf++ = static_cast<char>('0' + k); } else { *buf++ = static_cast<char>('0' + k / 100); k %= 100; *buf++ = static_cast<char>('0' + k / 10); k %= 10; *buf++ = static_cast<char>('0' + k); } return buf; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char*, int): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movl %esi, 0xc(%rsp) cmpl $0xfffffc18, 0xc(%rsp) # imm = 0xFFFFFC18 jg 0x18fee8 leaq 0x7c5a1(%rip), %rdi # 0x20c46f movl $0x45ae, %esi # imm = 0x45AE leaq 0x7c5df(%rip), %rdx # 0x20c4b9 leaq 0x823ed(%rip), %rcx # 0x2122ce movb $0x0, %al callq 0x5aec0 cmpl $0x3e8, 0xc(%rsp) # imm = 0x3E8 jl 0x18ff13 leaq 0x7c576(%rip), %rdi # 0x20c46f movl $0x45af, %esi # imm = 0x45AF leaq 0x7c5b4(%rip), %rdx # 0x20c4b9 leaq 0x823cc(%rip), %rcx # 0x2122d8 movb $0x0, %al callq 0x5aec0 cmpl $0x0, 0xc(%rsp) jge 0x18ff3a xorl %eax, %eax subl 0xc(%rsp), %eax movl %eax, 0xc(%rsp) movq 0x10(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x10(%rsp) movb $0x2d, (%rax) jmp 0x18ff4e movq 0x10(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x10(%rsp) movb $0x2b, (%rax) movl 0xc(%rsp), %eax movl %eax, 0x8(%rsp) cmpl $0xa, 0x8(%rsp) jae 0x18ff92 movq 0x10(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x10(%rsp) movb $0x30, (%rax) movl 0x8(%rsp), %eax addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) jmp 0x19007a cmpl $0x64, 0x8(%rsp) jae 0x18fff0 movl 0x8(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) movl 0x8(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx movl %edx, 0x8(%rsp) movl 0x8(%rsp), %eax addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) jmp 0x190078 movl 0x8(%rsp), %eax movl $0x64, %ecx xorl %edx, %edx divl %ecx addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) movl 0x8(%rsp), %eax movl $0x64, %ecx xorl %edx, %edx divl %ecx movl %edx, 0x8(%rsp) movl 0x8(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) movl 0x8(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx movl %edx, 0x8(%rsp) movl 0x8(%rsp), %eax addl $0x30, %eax movb %al, %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) jmp 0x19007a movq 0x10(%rsp), %rax addq $0x18, %rsp retq nopw %cs:(%rax,%rax) nop
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl15append_exponentEPci: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_C], esi cmp [rsp+18h+var_C], 0FFFFFC18h jg short loc_18FEE8 lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 45AEh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aE1000; "e > -1000" mov al, 0 call _ggml_abort loc_18FEE8: cmp [rsp+18h+var_C], 3E8h jl short loc_18FF13 lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 45AFh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aE1000_0; "e < 1000" mov al, 0 call _ggml_abort loc_18FF13: cmp [rsp+18h+var_C], 0 jge short loc_18FF3A xor eax, eax sub eax, [rsp+18h+var_C] mov [rsp+18h+var_C], eax mov rax, [rsp+18h+var_8] mov rcx, rax add rcx, 1 mov [rsp+18h+var_8], rcx mov byte ptr [rax], 2Dh ; '-' jmp short loc_18FF4E loc_18FF3A: mov rax, [rsp+18h+var_8] mov rcx, rax add rcx, 1 mov [rsp+18h+var_8], rcx mov byte ptr [rax], 2Bh ; '+' loc_18FF4E: mov eax, [rsp+18h+var_C] mov [rsp+18h+var_10], eax cmp [rsp+18h+var_10], 0Ah jnb short loc_18FF92 mov rax, [rsp+18h+var_8] mov rcx, rax add rcx, 1 mov [rsp+18h+var_8], rcx mov byte ptr [rax], 30h ; '0' mov eax, [rsp+18h+var_10] add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl jmp loc_19007A loc_18FF92: cmp [rsp+18h+var_10], 64h ; 'd' jnb short loc_18FFF0 mov eax, [rsp+18h+var_10] mov ecx, 0Ah xor edx, edx div ecx add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl mov eax, [rsp+18h+var_10] mov ecx, 0Ah xor edx, edx div ecx mov [rsp+18h+var_10], edx mov eax, [rsp+18h+var_10] add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl jmp loc_190078 loc_18FFF0: mov eax, [rsp+18h+var_10] mov ecx, 64h ; 'd' xor edx, edx div ecx add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl mov eax, [rsp+18h+var_10] mov ecx, 64h ; 'd' xor edx, edx div ecx mov [rsp+18h+var_10], edx mov eax, [rsp+18h+var_10] mov ecx, 0Ah xor edx, edx div ecx add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl mov eax, [rsp+18h+var_10] mov ecx, 0Ah xor edx, edx div ecx mov [rsp+18h+var_10], edx mov eax, [rsp+18h+var_10] add eax, 30h ; '0' mov cl, al mov rax, [rsp+18h+var_8] mov rdx, rax add rdx, 1 mov [rsp+18h+var_8], rdx mov [rax], cl loc_190078: jmp short $+2 loc_19007A: mov rax, [rsp+18h+var_8] add rsp, 18h retn
_BYTE * nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent( nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this, char *a2) { _BYTE *v2; // rax _BYTE *v3; // rax _BYTE *v4; // rax unsigned int v6; // [rsp+8h] [rbp-10h] unsigned int v7; // [rsp+Ch] [rbp-Ch] _BYTE *v8; // [rsp+10h] [rbp-8h] _BYTE *v9; // [rsp+10h] [rbp-8h] v7 = (unsigned int)a2; if ( (int)a2 <= -1000 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17838LL, "GGML_ASSERT(%s) failed", "e > -1000"); if ( (int)a2 >= 1000 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17839LL, "GGML_ASSERT(%s) failed", "e < 1000"); if ( (int)a2 >= 0 ) { v8 = (char *)this + 1; *(_BYTE *)this = 43; } else { v7 = -(int)a2; v8 = (char *)this + 1; *(_BYTE *)this = 45; } v6 = v7; if ( v7 >= 0xA ) { if ( v7 >= 0x64 ) { v4 = v8++; *v4 = v7 / 0x64 + 48; v6 = v7 % 0x64; } *v8 = v6 / 0xA + 48; v3 = v8 + 1; v9 = v8 + 2; *v3 = v6 % 0xA + 48; } else { *v8 = 48; v2 = v8 + 1; v9 = v8 + 2; *v2 = v7 + 48; } return v9; }
begin: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV RSI,qword ptr [RSP + 0x8] LEA RDI,[RSP + 0x10] CALL 0x00190310 MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x18 RET
/* std::vector<common_control_vector_load_info, std::allocator<common_control_vector_load_info> >::begin() const */ int8 __thiscall std::vector<common_control_vector_load_info,std::allocator<common_control_vector_load_info>>::begin (vector<common_control_vector_load_info,std::allocator<common_control_vector_load_info>> *this) { int8 local_8; __gnu_cxx:: __normal_iterator<common_control_vector_load_info_const*,std::vector<common_control_vector_load_info,std::allocator<common_control_vector_load_info>>> ::__normal_iterator((__normal_iterator<common_control_vector_load_info_const*,std::vector<common_control_vector_load_info,std::allocator<common_control_vector_load_info>>> *)&local_8,(common_control_vector_load_info **)this); return local_8; }
38,957
json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, bool)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string json_schema_to_grammar(const json & schema, bool force_gbnf) { #ifdef LLAMA_USE_LLGUIDANCE if (!force_gbnf) { return "%llguidance {}\nstart: %json " + schema.dump(); } #else (void)force_gbnf; #endif // LLAMA_USE_LLGUIDANCE return build_grammar([&](const common_grammar_builder & callbacks) { auto copy = schema; callbacks.resolve_refs(copy); callbacks.add_schema("", copy); }); }
O1
cpp
json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, bool): pushq %rbx subq $0x30, %rsp movq %rdi, %rbx xorps %xmm0, %xmm0 leaq 0x10(%rsp), %rax movaps %xmm0, (%rax) movaps %xmm0, 0x10(%rax) movq %rsi, (%rax) leaq 0x277(%rip), %rcx # 0xa0b10 movq %rcx, 0x18(%rax) leaq 0x366(%rip), %rcx # 0xa0c0a movq %rcx, 0x10(%rax) leaq 0xe(%rsp), %rdx movw $0x0, (%rdx) movq %rax, %rsi callq 0xa090a movq 0x20(%rsp), %rax testq %rax, %rax je 0xa08d3 leaq 0x10(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rax addq $0x30, %rsp popq %rbx retq jmp 0xa0902 movq %rax, %rbx movq 0x20(%rsp), %rax testq %rax, %rax je 0xa08fa leaq 0x10(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rdi callq 0x19e00 movq %rax, %rdi callq 0x2041f
_Z22json_schema_to_grammarRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEb: push rbx sub rsp, 30h mov rbx, rdi xorps xmm0, xmm0 lea rax, [rsp+38h+var_28] movaps xmmword ptr [rax], xmm0 movaps xmmword ptr [rax+10h], xmm0 mov [rax], rsi lea rcx, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZ22json_schema_to_grammarRKN8nlohmann16json_abi_v3_11_310basic_jsonINS5_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS5_14adl_serializerES8_IhSaIhEEvEEbE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(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&,bool)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&) mov [rax+18h], rcx lea rcx, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZ22json_schema_to_grammarRKN8nlohmann16json_abi_v3_11_310basic_jsonINS5_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS5_14adl_serializerES8_IhSaIhEEvEEbE3$_0E10_M_managerERSt9_Any_dataRKSN_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(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&,bool)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rax+10h], rcx lea rdx, [rsp+38h+var_2A] mov word ptr [rdx], 0 mov rsi, rax call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&) mov rax, [rsp+38h+var_18] test rax, rax jz short loc_A08D3 lea rdi, [rsp+38h+var_28] mov rsi, rdi mov edx, 3 call rax loc_A08D3: mov rax, rbx add rsp, 30h pop rbx retn jmp short loc_A0902 mov rbx, rax mov rax, [rsp+38h+var_18] test rax, rax jz short loc_A08FA lea rdi, [rsp+38h+var_28] mov rsi, rdi mov edx, 3 call rax loc_A08FA: mov rdi, rbx call __Unwind_Resume loc_A0902: mov rdi, rax call __clang_call_terminate
long long json_schema_to_grammar(long long a1, long long a2) { __int16 v3; // [rsp+Eh] [rbp-2Ah] BYREF _QWORD v4[2]; // [rsp+10h] [rbp-28h] BYREF long long ( *v5)(); // [rsp+20h] [rbp-18h] long long ( *v6)(); // [rsp+28h] [rbp-10h] v4[1] = 0LL; v4[0] = a2; v6 = std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&,bool)::$_0>::_M_invoke; v5 = std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&,bool)::$_0>::_M_manager; v3 = 0; build_grammar[abi:cxx11](a1, v4, &v3); if ( v5 ) ((void ( *)(_QWORD *, _QWORD *, long long))v5)(v4, v4, 3LL); return a1; }
json_schema_to_grammar: PUSH RBX SUB RSP,0x30 MOV RBX,RDI XORPS XMM0,XMM0 LEA RAX,[RSP + 0x10] MOVAPS xmmword ptr [RAX],XMM0 MOVAPS xmmword ptr [RAX + 0x10],XMM0 MOV qword ptr [RAX],RSI LEA RCX,[0x1a0b10] MOV qword ptr [RAX + 0x18],RCX LEA RCX,[0x1a0c0a] MOV qword ptr [RAX + 0x10],RCX LEA RDX,[RSP + 0xe] MOV word ptr [RDX],0x0 LAB_001a08b2: MOV RSI,RAX CALL 0x001a090a MOV RAX,qword ptr [RSP + 0x20] TEST RAX,RAX JZ 0x001a08d3 LAB_001a08c4: LEA RDI,[RSP + 0x10] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001a08d3: MOV RAX,RBX ADD RSP,0x30 POP RBX RET
/* json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, bool) */ basic_json * json_schema_to_grammar(basic_json *param_1,bool param_2) { int7 in_register_00000031; int8 local_28; int8 uStack_20; code *local_18; code *pcStack_10; local_28 = CONCAT71(in_register_00000031,param_2); uStack_20 = 0; pcStack_10 = std:: _Function_handler<void(common_grammar_builder_const&),json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&,bool)::$_0> ::_M_invoke; local_18 = std:: _Function_handler<void(common_grammar_builder_const&),json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&,bool)::$_0> ::_M_manager; /* try { // try from 001a08b2 to 001a08b9 has its CatchHandler @ 001a08de */ build_grammar_abi_cxx11_(param_1,(common_grammar_options *)&local_28); if (local_18 != (code *)0x0) { /* try { // try from 001a08c4 to 001a08d2 has its CatchHandler @ 001a08dc */ (*local_18)(&local_28,&local_28,3); } return param_1; }
38,958
json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, bool)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string json_schema_to_grammar(const json & schema, bool force_gbnf) { #ifdef LLAMA_USE_LLGUIDANCE if (!force_gbnf) { return "%llguidance {}\nstart: %json " + schema.dump(); } #else (void)force_gbnf; #endif // LLAMA_USE_LLGUIDANCE return build_grammar([&](const common_grammar_builder & callbacks) { auto copy = schema; callbacks.resolve_refs(copy); callbacks.add_schema("", copy); }); }
O3
cpp
json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, bool): pushq %rbx subq $0x30, %rsp movq %rdi, %rbx leaq 0x10(%rsp), %rax movq $0x0, 0x8(%rax) movq %rsi, (%rax) leaq 0x267(%rip), %rcx # 0x9e1b2 movq %rcx, 0x18(%rax) leaq 0x356(%rip), %rcx # 0x9e2ac movq %rcx, 0x10(%rax) leaq 0xe(%rsp), %rdx movw $0x0, (%rdx) movq %rax, %rsi callq 0x9dfbc movq 0x20(%rsp), %rax testq %rax, %rax je 0x9df85 leaq 0x10(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rax addq $0x30, %rsp popq %rbx retq jmp 0x9dfb4 movq %rax, %rbx movq 0x20(%rsp), %rax testq %rax, %rax je 0x9dfac leaq 0x10(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rdi callq 0x19e10 movq %rax, %rdi callq 0x20369
_Z22json_schema_to_grammarRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEb: push rbx sub rsp, 30h mov rbx, rdi lea rax, [rsp+38h+var_28] mov qword ptr [rax+8], 0 mov [rax], rsi lea rcx, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZ22json_schema_to_grammarRKN8nlohmann16json_abi_v3_11_310basic_jsonINS5_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS5_14adl_serializerES8_IhSaIhEEvEEbE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(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&,bool)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&) mov [rax+18h], rcx lea rcx, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZ22json_schema_to_grammarRKN8nlohmann16json_abi_v3_11_310basic_jsonINS5_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS5_14adl_serializerES8_IhSaIhEEvEEbE3$_0E10_M_managerERSt9_Any_dataRKSN_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(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&,bool)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rax+10h], rcx lea rdx, [rsp+38h+var_2A] mov word ptr [rdx], 0 mov rsi, rax call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&) mov rax, [rsp+38h+var_18] test rax, rax jz short loc_9DF85 lea rdi, [rsp+38h+var_28] mov rsi, rdi mov edx, 3 call rax loc_9DF85: mov rax, rbx add rsp, 30h pop rbx retn jmp short loc_9DFB4 mov rbx, rax mov rax, [rsp+38h+var_18] test rax, rax jz short loc_9DFAC lea rdi, [rsp+38h+var_28] mov rsi, rdi mov edx, 3 call rax loc_9DFAC: mov rdi, rbx call __Unwind_Resume loc_9DFB4: mov rdi, rax call __clang_call_terminate
long long json_schema_to_grammar(long long a1, long long a2) { __int16 v3; // [rsp+Eh] [rbp-2Ah] BYREF _QWORD v4[2]; // [rsp+10h] [rbp-28h] BYREF long long ( *v5)(); // [rsp+20h] [rbp-18h] long long ( *v6)(); // [rsp+28h] [rbp-10h] v4[1] = 0LL; v4[0] = a2; v6 = std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&,bool)::$_0>::_M_invoke; v5 = std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&,bool)::$_0>::_M_manager; v3 = 0; build_grammar[abi:cxx11](a1, v4, &v3); if ( v5 ) ((void ( *)(_QWORD *, _QWORD *, long long))v5)(v4, v4, 3LL); return a1; }
json_schema_to_grammar: PUSH RBX SUB RSP,0x30 MOV RBX,RDI LEA RAX,[RSP + 0x10] MOV qword ptr [RAX + 0x8],0x0 MOV qword ptr [RAX],RSI LEA RCX,[0x19e1b2] MOV qword ptr [RAX + 0x18],RCX LEA RCX,[0x19e2ac] MOV qword ptr [RAX + 0x10],RCX LEA RDX,[RSP + 0xe] MOV word ptr [RDX],0x0 LAB_0019df64: MOV RSI,RAX CALL 0x0019dfbc MOV RAX,qword ptr [RSP + 0x20] TEST RAX,RAX JZ 0x0019df85 LAB_0019df76: LEA RDI,[RSP + 0x10] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_0019df85: MOV RAX,RBX ADD RSP,0x30 POP RBX RET
/* json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, bool) */ basic_json * json_schema_to_grammar(basic_json *param_1,bool param_2) { int7 in_register_00000031; int8 local_28; int8 local_20; code *local_18; code *local_10; local_28 = CONCAT71(in_register_00000031,param_2); local_20 = 0; local_10 = std:: _Function_handler<void(common_grammar_builder_const&),json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&,bool)::$_0> ::_M_invoke; local_18 = std:: _Function_handler<void(common_grammar_builder_const&),json_schema_to_grammar(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&,bool)::$_0> ::_M_manager; /* try { // try from 0019df64 to 0019df6b has its CatchHandler @ 0019df90 */ build_grammar_abi_cxx11_(param_1,(common_grammar_options *)&local_28); if (local_18 != (code *)0x0) { /* try { // try from 0019df76 to 0019df84 has its CatchHandler @ 0019df8e */ (*local_18)(&local_28,&local_28,3); } return param_1; }
38,959
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::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>>::start_array(unsigned long)
monkey531[P]llama/common/./json.hpp
bool start_array(std::size_t len) { const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded); keep_stack.push_back(keep); auto val = handle_value(BasicJsonType::value_t::array, true); ref_stack.push_back(val.second); // check array limit if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back())); } return true; }
O0
cpp
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::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>>::start_array(unsigned long): subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq 0xa0(%rsp), %rdi movq %rdi, 0x20(%rsp) movq %rdi, %rax addq $0x80, %rax movq %rax, 0x18(%rsp) addq $0x8, %rdi callq 0xb9280 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rcx movl %eax, %esi addq $0xa8, %rcx movl $0x2, %edx callq 0xb9220 movq 0x20(%rsp), %rdi andb $0x1, %al movb %al, 0x97(%rsp) addq $0x20, %rdi movb 0x97(%rsp), %al andb $0x1, %al movzbl %al, %esi callq 0xb6040 movq 0x20(%rsp), %rdi movb $0x2, 0x7f(%rsp) leaq 0x7f(%rsp), %rsi movl $0x1, %edx callq 0xb92a0 movq 0x20(%rsp), %rdi movb %al, 0x80(%rsp) movq %rdx, 0x88(%rsp) addq $0x8, %rdi leaq 0x80(%rsp), %rsi addq $0x8, %rsi callq 0xb9810 movq 0x20(%rsp), %rdi addq $0x8, %rdi callq 0xb9880 cmpq $0x0, (%rax) je 0xb8a35 xorl %eax, %eax cmpq $-0x1, 0x98(%rsp) movb %al, 0x17(%rsp) je 0xb894b movq 0x20(%rsp), %rdi movq 0x98(%rsp), %rax movq %rax, 0x8(%rsp) addq $0x8, %rdi callq 0xb9880 movq (%rax), %rdi callq 0xb98c0 movq %rax, %rcx movq 0x8(%rsp), %rax cmpq %rcx, %rax seta %al movb %al, 0x17(%rsp) movb 0x17(%rsp), %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xb895c jmp 0xb8a35 movb $0x1, 0x2b(%rsp) movl $0x20, %edi callq 0x50540 movq %rax, (%rsp) movq 0x98(%rsp), %rsi leaq 0x38(%rsp), %rdi callq 0xb9ba0 jmp 0xb8983 leaq 0x116c4c(%rip), %rsi # 0x1cf5d6 leaq 0x58(%rsp), %rdi leaq 0x38(%rsp), %rdx callq 0xbe250 jmp 0xb899b movq 0x20(%rsp), %rdi addq $0x8, %rdi callq 0xb9880 movq (%rsp), %rdi movq (%rax), %rcx movl $0x198, %esi # imm = 0x198 leaq 0x58(%rsp), %rdx callq 0xb9940 jmp 0xb89c1 movq (%rsp), %rdi movb $0x0, 0x2b(%rsp) leaq 0x19980f(%rip), %rsi # 0x2521e0 leaq 0x568(%rip), %rdx # 0xb8f40 callq 0x508f0 jmp 0xb8a4b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xb8a21 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xb8a17 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) leaq 0x58(%rsp), %rdi callq 0x510c0 leaq 0x38(%rsp), %rdi callq 0x510c0 testb $0x1, 0x2b(%rsp) jne 0xb8a2a jmp 0xb8a33 movq (%rsp), %rdi callq 0x50c40 jmp 0xb8a41 movb $0x1, %al andb $0x1, %al addq $0xa8, %rsp retq movq 0x30(%rsp), %rdi callq 0x50940 nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11start_arrayEm: sub rsp, 0A8h mov qword ptr [rsp+0A8h+var_8], rdi mov [rsp+0A8h+var_10], rsi mov rdi, qword ptr [rsp+0A8h+var_8] mov qword ptr [rsp+0A8h+var_88], rdi; int mov rax, rdi add rax, 80h mov qword ptr [rsp+0A8h+var_90], rax; char add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void) mov rdi, qword ptr [rsp+0A8h+var_90] mov rcx, qword ptr [rsp+0A8h+var_88] mov esi, eax add rcx, 0A8h mov edx, 2 call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; 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> &)>::operator()(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> &) mov rdi, qword ptr [rsp+0A8h+var_88] and al, 1 mov [rsp+0A8h+var_11], al add rdi, 20h ; ' ' mov al, [rsp+0A8h+var_11] and al, 1 movzx esi, al call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) mov rdi, qword ptr [rsp+0A8h+var_88] mov [rsp+0A8h+var_29], 2 lea rsi, [rsp+0A8h+var_29] mov edx, 1 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEESt4pairIbPSF_EOT_b; 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>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&,bool) mov rdi, qword ptr [rsp+0A8h+var_88] mov byte ptr [rsp+0A8h+var_28], al; int mov qword ptr [rsp+0A8h+var_20], rdx; int add rdi, 8 lea rsi, [rsp+0A8h+var_28] add rsi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backERKSE_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> * const&) mov rdi, qword ptr [rsp+0A8h+var_88] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) cmp qword ptr [rax], 0 jz loc_B8A35 xor eax, eax cmp [rsp+0A8h+var_10], 0FFFFFFFFFFFFFFFFh mov [rsp+0A8h+var_91], al jz short loc_B894B mov rdi, qword ptr [rsp+0A8h+var_88] mov rax, [rsp+0A8h+var_10] mov qword ptr [rsp+0A8h+var_A0], rax; int add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; 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>::max_size(void) mov rcx, rax mov rax, qword ptr [rsp+0A8h+var_A0] cmp rax, rcx setnbe al mov [rsp+0A8h+var_91], al loc_B894B: mov al, [rsp+0A8h+var_91] xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_B895C jmp loc_B8A35 loc_B895C: mov [rsp+0A8h+var_7D], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+0A8h+var_A8], rax; int mov rsi, [rsp+0A8h+var_10]; unsigned __int64 lea rdi, [rsp+0A8h+var_70]; this call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) jmp short $+2 loc_B8983: lea rsi, aExcessiveArray; "excessive array size: " lea rdi, [rsp+0A8h+var_50] lea rdx, [rsp+0A8h+var_70] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA23_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>(char const(&)[23],std::string &&) jmp short $+2 loc_B899B: mov rdi, qword ptr [rsp+0A8h+var_88] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rsp+0A8h+var_A8]; int mov rcx, [rax] mov esi, 198h lea rdx, [rsp+0A8h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_B89C1: mov rdi, [rsp+0A8h+var_A8]; void * mov [rsp+0A8h+var_7D], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_B8A4B mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_B8A21 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_B8A17 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_B8A17: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_B8A21: test [rsp+arg_23], 1 jnz short loc_B8A2A jmp short loc_B8A33 loc_B8A2A: mov rdi, [rsp+0]; void * call ___cxa_free_exception loc_B8A33: jmp short loc_B8A41 loc_B8A35: mov al, 1 and al, 1 add rsp, 0A8h retn loc_B8A41: mov rdi, [rsp+arg_28] call __Unwind_Resume loc_B8A4B: nop dword ptr [rax+rax+00h]
start_array: SUB RSP,0xa8 MOV qword ptr [RSP + 0xa0],RDI MOV qword ptr [RSP + 0x98],RSI MOV RDI,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x20],RDI MOV RAX,RDI ADD RAX,0x80 MOV qword ptr [RSP + 0x18],RAX ADD RDI,0x8 CALL 0x001b9280 MOV RDI,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x20] MOV ESI,EAX ADD RCX,0xa8 MOV EDX,0x2 CALL 0x001b9220 MOV RDI,qword ptr [RSP + 0x20] AND AL,0x1 MOV byte ptr [RSP + 0x97],AL ADD RDI,0x20 MOV AL,byte ptr [RSP + 0x97] AND AL,0x1 MOVZX ESI,AL CALL 0x001b6040 MOV RDI,qword ptr [RSP + 0x20] MOV byte ptr [RSP + 0x7f],0x2 LEA RSI,[RSP + 0x7f] MOV EDX,0x1 CALL 0x001b92a0 MOV RDI,qword ptr [RSP + 0x20] MOV byte ptr [RSP + 0x80],AL MOV qword ptr [RSP + 0x88],RDX ADD RDI,0x8 LEA RSI,[RSP + 0x80] ADD RSI,0x8 CALL 0x001b9810 MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x8 CALL 0x001b9880 CMP qword ptr [RAX],0x0 JZ 0x001b8a35 XOR EAX,EAX CMP qword ptr [RSP + 0x98],-0x1 MOV byte ptr [RSP + 0x17],AL JZ 0x001b894b MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x8],RAX ADD RDI,0x8 CALL 0x001b9880 MOV RDI,qword ptr [RAX] CALL 0x001b98c0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] CMP RAX,RCX SETA AL MOV byte ptr [RSP + 0x17],AL LAB_001b894b: MOV AL,byte ptr [RSP + 0x17] XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001b895c JMP 0x001b8a35 LAB_001b895c: MOV byte ptr [RSP + 0x2b],0x1 MOV EDI,0x20 CALL 0x00150540 MOV qword ptr [RSP],RAX MOV RSI,qword ptr [RSP + 0x98] LAB_001b8977: LEA RDI,[RSP + 0x38] CALL 0x001b9ba0 JMP 0x001b8983 LAB_001b8983: LEA RSI,[0x2cf5d6] LEA RDI,[RSP + 0x58] LEA RDX,[RSP + 0x38] CALL 0x001be250 JMP 0x001b899b LAB_001b899b: MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x8 CALL 0x001b9880 MOV RDI,qword ptr [RSP] MOV RCX,qword ptr [RAX] LAB_001b89b0: MOV ESI,0x198 LEA RDX,[RSP + 0x58] CALL 0x001b9940 JMP 0x001b89c1 LAB_001b89c1: MOV RDI,qword ptr [RSP] MOV byte ptr [RSP + 0x2b],0x0 LEA RSI,[0x3521e0] LEA RDX,[0x1b8f40] CALL 0x001508f0 LAB_001b8a35: MOV AL,0x1 AND AL,0x1 ADD RSP,0xa8 RET
/* 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> >::start_array(unsigned long) */ int8 __thiscall 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>> ::start_array(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,ulong param_1) { bool bVar1; ulong uVar2; byte bVar3; int4 uVar4; long *plVar5; int8 *puVar6; ulong uVar7; int8 uVar8; basic_json *extraout_RDX; __cxx11 local_70 [32]; detail local_50 [39]; value_t local_29; int1 local_28; basic_json *local_20; int1 local_11; ulong local_10; 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_8; local_10 = param_1; local_8 = this; uVar4 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); bVar3 = 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>&)> ::operator()((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>&)> *)(this + 0x80),uVar4,2,this + 0xa8); local_11 = bVar3 & 1; std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),(bool)local_11); local_29 = 2; local_28 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,&local_29,true); local_20 = extraout_RDX; std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::push_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),&local_20); plVar5 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar2 = local_10; if (*plVar5 != 0) { bVar1 = false; if (local_10 != 0xffffffffffffffff) { puVar6 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar7 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::max_size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar6); bVar1 = uVar7 < uVar2; } if (bVar1) { uVar8 = __cxa_allocate_exception(0x20); /* try { // try from 001b8977 to 001b8980 has its CatchHandler @ 001b89df */ std::__cxx11::to_string(local_70,local_10); /* try { // try from 001b8983 to 001b8998 has its CatchHandler @ 001b89ef */ concat<std::__cxx11::string,char_const(&)[23],std::__cxx11::string> (local_50,"excessive array size: ",(string *)local_70); puVar6 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); /* try { // try from 001b89b0 to 001b89dc has its CatchHandler @ 001b89ff */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar8,0x198,local_50,*puVar6); /* WARNING: Subroutine does not return */ __cxa_throw(uVar8,&out_of_range::typeinfo,out_of_range::~out_of_range); } } return 1; }
38,960
serial_cpp::Serial::SerialImpl::setBreak(bool)
ami-iit[P]serial_cpp/src/impl/unix.cc
void Serial::SerialImpl::setBreak (bool level) { if (is_open_ == false) { throw PortNotOpenedException ("Serial::setBreak"); } if (level) { if (-1 == ioctl (fd_, TIOCSBRK)) { stringstream ss; ss << "setBreak failed on a call to ioctl(TIOCSBRK): " << errno << " " << strerror(errno); throw(SerialException(ss.str().c_str())); } } else { if (-1 == ioctl (fd_, TIOCCBRK)) { stringstream ss; ss << "setBreak failed on a call to ioctl(TIOCCBRK): " << errno << " " << strerror(errno); throw(SerialException(ss.str().c_str())); } } }
O1
cpp
serial_cpp::Serial::SerialImpl::setBreak(bool): pushq %rbp pushq %r14 pushq %rbx subq $0x1b0, %rsp # imm = 0x1B0 cmpb $0x0, 0x2c(%rdi) je 0x6ec4 movl 0x28(%rdi), %edi testb %sil, %sil je 0x6ea7 movl $0x5427, %esi # imm = 0x5427 xorl %eax, %eax callq 0x33c0 cmpl $-0x1, %eax jne 0x6eb8 leaq 0x28(%rsp), %rdi callq 0x31c0 leaq 0x38(%rsp), %r14 leaq 0x4882(%rip), %rsi # 0xb698 movl $0x2e, %edx movq %r14, %rdi callq 0x3330 callq 0x3050 movq %rax, %rbx movl (%rax), %esi movq %r14, %rdi callq 0x34d0 movq %rax, %r14 leaq 0x4987(%rip), %rsi # 0xb7c6 movl $0x1, %edx movq %rax, %rdi callq 0x3330 movl (%rbx), %edi callq 0x30e0 movq %r14, %rdi movq %rax, %rsi callq 0x32a0 movl $0x28, %edi callq 0x3150 movq %rax, %r14 leaq 0x40(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x3460 movb $0x1, %bpl movq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x7ec2 xorl %ebp, %ebp leaq 0x8e3d(%rip), %rsi # 0xfcd0 leaq 0x1182(%rip), %rdx # 0x801c movq %r14, %rdi callq 0x34c0 jmp 0x6f98 movl $0x5428, %esi # imm = 0x5428 xorl %eax, %eax callq 0x33c0 cmpl $-0x1, %eax je 0x6ef6 addq $0x1b0, %rsp # imm = 0x1B0 popq %rbx popq %r14 popq %rbp retq movl $0x28, %edi callq 0x3150 movq %rax, %r14 leaq 0x47af(%rip), %rsi # 0xb687 movq %rax, %rdi callq 0x84a8 leaq 0x8e19(%rip), %rsi # 0xfd00 leaq 0x1714(%rip), %rdx # 0x8602 movq %r14, %rdi callq 0x34c0 leaq 0x28(%rsp), %rdi callq 0x31c0 leaq 0x38(%rsp), %r14 leaq 0x47bb(%rip), %rsi # 0xb6c7 movl $0x2e, %edx movq %r14, %rdi callq 0x3330 callq 0x3050 movq %rax, %rbx movl (%rax), %esi movq %r14, %rdi callq 0x34d0 movq %rax, %r14 leaq 0x4891(%rip), %rsi # 0xb7c6 movl $0x1, %edx movq %rax, %rdi callq 0x3330 movl (%rbx), %edi callq 0x30e0 movq %r14, %rdi movq %rax, %rsi callq 0x32a0 movl $0x28, %edi callq 0x3150 movq %rax, %r14 leaq 0x40(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x3460 movb $0x1, %bpl movq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x7ec2 xorl %ebp, %ebp leaq 0x8d47(%rip), %rsi # 0xfcd0 leaq 0x108c(%rip), %rdx # 0x801c movq %r14, %rdi callq 0x34c0 jmp 0x6f9a movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x6fc2 movq 0x18(%rsp), %rsi incq %rsi callq 0x32c0 jmp 0x6fc2 jmp 0x6fbc movq %rax, %rbx movb $0x1, %bpl testb %bpl, %bpl je 0x6fd6 movq %r14, %rdi callq 0x31e0 jmp 0x6fd6 jmp 0x6fd3 movq %rax, %rbx movq 0x8fc3(%rip), %rsi # 0xffa0 leaq 0x28(%rsp), %rdi callq 0x3200 leaq 0xa8(%rsp), %rdi callq 0x30d0 jmp 0x7001 movq %rax, %rbx movq %r14, %rdi callq 0x31e0 movq %rbx, %rdi callq 0x34f0 nop
_ZN10serial_cpp6Serial10SerialImpl8setBreakEb: push rbp push r14 push rbx sub rsp, 1B0h cmp byte ptr [rdi+2Ch], 0 jz loc_6EC4 mov edi, [rdi+28h] test sil, sil jz loc_6EA7 mov esi, 5427h xor eax, eax call _ioctl cmp eax, 0FFFFFFFFh jnz loc_6EB8 lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea r14, [rsp+1C8h+var_190] lea rsi, aSetbreakFailed; "setBreak failed on a call to ioctl(TIOC"... mov edx, 2Eh ; '.' mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) call ___errno_location mov rbx, rax mov esi, [rax] mov rdi, r14 call __ZNSolsEi; std::ostream::operator<<(int) mov r14, rax lea rsi, aSetdtrFailedOn_0+2Bh; " " mov edx, 1 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov edi, [rbx] call _strerror mov rdi, r14 mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov edi, 28h ; '('; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+1C8h+var_188] lea rdi, [rsp+1C8h+var_1C0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov bpl, 1 mov rsi, [rsp+1C8h+var_1C0]; char * mov rdi, r14; this call _ZN10serial_cpp15SerialExceptionC2EPKc; serial_cpp::SerialException::SerialException(char const*) xor ebp, ebp lea rsi, _ZTIN10serial_cpp15SerialExceptionE; lptinfo lea rdx, _ZN10serial_cpp15SerialExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp loc_6F98 loc_6EA7: mov esi, 5428h xor eax, eax call _ioctl cmp eax, 0FFFFFFFFh jz short loc_6EF6 loc_6EB8: add rsp, 1B0h pop rbx pop r14 pop rbp retn loc_6EC4: mov edi, 28h ; '('; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aSerialSetbreak; "Serial::setBreak" mov rdi, rax; this call _ZN10serial_cpp22PortNotOpenedExceptionC2EPKc; serial_cpp::PortNotOpenedException::PortNotOpenedException(char const*) lea rsi, _ZTIN10serial_cpp22PortNotOpenedExceptionE; lptinfo lea rdx, _ZN10serial_cpp22PortNotOpenedExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_6EF6: lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea r14, [rsp+1C8h+var_190] lea rsi, aSetbreakFailed_0; "setBreak failed on a call to ioctl(TIOC"... mov edx, 2Eh ; '.' mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) call ___errno_location mov rbx, rax mov esi, [rax] mov rdi, r14 call __ZNSolsEi; std::ostream::operator<<(int) mov r14, rax lea rsi, aSetdtrFailedOn_0+2Bh; " " mov edx, 1 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov edi, [rbx] call _strerror mov rdi, r14 mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov edi, 28h ; '('; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+1C8h+var_188] lea rdi, [rsp+1C8h+var_1C0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov bpl, 1 mov rsi, [rsp+1C8h+var_1C0]; char * mov rdi, r14; this call _ZN10serial_cpp15SerialExceptionC2EPKc; serial_cpp::SerialException::SerialException(char const*) xor ebp, ebp lea rsi, _ZTIN10serial_cpp15SerialExceptionE; lptinfo lea rdx, _ZN10serial_cpp15SerialExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_6F98: jmp short $+2 loc_6F9A: mov rbx, rax lea rax, [rsp+1C8h+var_1B0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_6FC2 mov rsi, [rsp+1C8h+var_1B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_6FC2 jmp short $+2 loc_6FBC: mov rbx, rax mov bpl, 1 loc_6FC2: test bpl, bpl jz short loc_6FD6 mov rdi, r14; void * call ___cxa_free_exception jmp short loc_6FD6 jmp short $+2 loc_6FD3: mov rbx, rax loc_6FD6: mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+1C8h+var_120]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() jmp short loc_7001 mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception loc_7001: mov rdi, rbx call __Unwind_Resume
long long serial_cpp::Serial::SerialImpl::setBreak(serial_cpp::Serial::SerialImpl *this, char a2, long long a3) { long long v3; // rdi long long result; // rax unsigned int *v5; // rbx long long v6; // r14 long long v7; // rax serial_cpp::SerialException *v8; // r14 serial_cpp::PortNotOpenedException *exception; // r14 unsigned int *v10; // rbx long long v11; // r14 long long v12; // rax serial_cpp::SerialException *v13; // r14 char *v14[2]; // [rsp+8h] [rbp-1C0h] BYREF _BYTE v15[16]; // [rsp+28h] [rbp-1A0h] BYREF _BYTE v16[8]; // [rsp+38h] [rbp-190h] BYREF _BYTE v17[104]; // [rsp+40h] [rbp-188h] BYREF if ( !*((_BYTE *)this + 44) ) { exception = (serial_cpp::PortNotOpenedException *)__cxa_allocate_exception(0x28uLL); serial_cpp::PortNotOpenedException::PortNotOpenedException(exception, "Serial::setBreak"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'serial_cpp::PortNotOpenedException, serial_cpp::PortNotOpenedException::~PortNotOpenedException); } v3 = *((unsigned int *)this + 10); if ( a2 ) { result = ioctl(v3, 21543LL, a3); if ( (_DWORD)result == -1 ) { std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v15); std::__ostream_insert<char,std::char_traits<char>>(v16, "setBreak failed on a call to ioctl(TIOCSBRK): ", 46LL); v5 = (unsigned int *)__errno_location(); v6 = std::ostream::operator<<(v16, *v5); std::__ostream_insert<char,std::char_traits<char>>(v6, " ", 1LL); v7 = strerror(*v5); std::operator<<<std::char_traits<char>>(v6, v7); v8 = (serial_cpp::SerialException *)__cxa_allocate_exception(0x28uLL); std::stringbuf::str(v14, v17); serial_cpp::SerialException::SerialException(v8, v14[0]); __cxa_throw( v8, (struct type_info *)&`typeinfo for'serial_cpp::SerialException, serial_cpp::SerialException::~SerialException); } } else { result = ioctl(v3, 21544LL, a3); if ( (_DWORD)result == -1 ) { std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v15); std::__ostream_insert<char,std::char_traits<char>>(v16, "setBreak failed on a call to ioctl(TIOCCBRK): ", 46LL); v10 = (unsigned int *)__errno_location(); v11 = std::ostream::operator<<(v16, *v10); std::__ostream_insert<char,std::char_traits<char>>(v11, " ", 1LL); v12 = strerror(*v10); std::operator<<<std::char_traits<char>>(v11, v12); v13 = (serial_cpp::SerialException *)__cxa_allocate_exception(0x28uLL); std::stringbuf::str(v14, v17); serial_cpp::SerialException::SerialException(v13, v14[0]); __cxa_throw( v13, (struct type_info *)&`typeinfo for'serial_cpp::SerialException, serial_cpp::SerialException::~SerialException); } } return result; }
setBreak: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x1b0 CMP byte ptr [RDI + 0x2c],0x0 JZ 0x00106ec4 MOV EDI,dword ptr [RDI + 0x28] TEST SIL,SIL JZ 0x00106ea7 MOV ESI,0x5427 XOR EAX,EAX CALL 0x001033c0 CMP EAX,-0x1 JNZ 0x00106eb8 LEA RDI,[RSP + 0x28] CALL 0x001031c0 LEA R14,[RSP + 0x38] LAB_00106e0f: LEA RSI,[0x10b698] MOV EDX,0x2e MOV RDI,R14 CALL 0x00103330 CALL 0x00103050 MOV RBX,RAX MOV ESI,dword ptr [RAX] MOV RDI,R14 CALL 0x001034d0 MOV R14,RAX LEA RSI,[0x10b7c6] MOV EDX,0x1 MOV RDI,RAX CALL 0x00103330 MOV EDI,dword ptr [RBX] CALL 0x001030e0 MOV RDI,R14 MOV RSI,RAX CALL 0x001032a0 LAB_00106e5e: MOV EDI,0x28 CALL 0x00103150 MOV R14,RAX LEA RSI,[RSP + 0x40] LAB_00106e70: LEA RDI,[RSP + 0x8] CALL 0x00103460 MOV BPL,0x1 MOV RSI,qword ptr [RSP + 0x8] LAB_00106e82: MOV RDI,R14 CALL 0x00107ec2 XOR EBP,EBP LEA RSI,[0x10fcd0] LEA RDX,[0x10801c] MOV RDI,R14 CALL 0x001034c0 LAB_00106ea7: MOV ESI,0x5428 XOR EAX,EAX CALL 0x001033c0 CMP EAX,-0x1 JZ 0x00106ef6 LAB_00106eb8: ADD RSP,0x1b0 POP RBX POP R14 POP RBP RET LAB_00106ec4: MOV EDI,0x28 CALL 0x00103150 MOV R14,RAX LAB_00106ed1: LEA RSI,[0x10b687] MOV RDI,RAX CALL 0x001084a8 LAB_00106ee0: LEA RSI,[0x10fd00] LEA RDX,[0x108602] MOV RDI,R14 CALL 0x001034c0 LAB_00106ef6: LEA RDI,[RSP + 0x28] CALL 0x001031c0 LEA R14,[RSP + 0x38] LAB_00106f05: LEA RSI,[0x10b6c7] MOV EDX,0x2e MOV RDI,R14 CALL 0x00103330 CALL 0x00103050 MOV RBX,RAX MOV ESI,dword ptr [RAX] MOV RDI,R14 CALL 0x001034d0 MOV R14,RAX LEA RSI,[0x10b7c6] MOV EDX,0x1 MOV RDI,RAX CALL 0x00103330 MOV EDI,dword ptr [RBX] CALL 0x001030e0 MOV RDI,R14 MOV RSI,RAX CALL 0x001032a0 LAB_00106f54: MOV EDI,0x28 CALL 0x00103150 MOV R14,RAX LEA RSI,[RSP + 0x40] LAB_00106f66: LEA RDI,[RSP + 0x8] CALL 0x00103460 MOV BPL,0x1 MOV RSI,qword ptr [RSP + 0x8] LAB_00106f78: MOV RDI,R14 CALL 0x00107ec2 XOR EBP,EBP LEA RSI,[0x10fcd0] LEA RDX,[0x10801c] MOV RDI,R14 CALL 0x001034c0
/* serial_cpp::Serial::SerialImpl::setBreak(bool) */ void __thiscall serial_cpp::Serial::SerialImpl::setBreak(SerialImpl *this,bool param_1) { int iVar1; int *piVar2; ostream *poVar3; char *pcVar4; SerialException *pSVar5; PortNotOpenedException *this_00; char *local_1c0; stringstream local_1a0 [16]; ostream local_190 [376]; if (this[0x2c] == (SerialImpl)0x0) { this_00 = (PortNotOpenedException *)__cxa_allocate_exception(0x28); /* try { // try from 00106ed1 to 00106edf has its CatchHandler @ 00106ff6 */ PortNotOpenedException::PortNotOpenedException(this_00,"Serial::setBreak"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,&PortNotOpenedException::typeinfo, PortNotOpenedException::~PortNotOpenedException); } if (param_1) { iVar1 = ioctl(*(int *)(this + 0x28),0x5427); if (iVar1 == -1) { std::__cxx11::stringstream::stringstream(local_1a0); /* try { // try from 00106e0f to 00106e5d has its CatchHandler @ 00106fd3 */ std::__ostream_insert<char,std::char_traits<char>> (local_190,"setBreak failed on a call to ioctl(TIOCSBRK): ",0x2e); piVar2 = __errno_location(); poVar3 = (ostream *)std::ostream::operator<<(local_190,*piVar2); std::__ostream_insert<char,std::char_traits<char>>(poVar3," ",1); pcVar4 = strerror(*piVar2); std::operator<<(poVar3,pcVar4); pSVar5 = (SerialException *)__cxa_allocate_exception(0x28); /* try { // try from 00106e70 to 00106e79 has its CatchHandler @ 00106fbc */ std::__cxx11::stringbuf::str(); /* try { // try from 00106e82 to 00106ea1 has its CatchHandler @ 00106f9a */ SerialException::SerialException(pSVar5,local_1c0); /* WARNING: Subroutine does not return */ __cxa_throw(pSVar5,&SerialException::typeinfo,SerialException::~SerialException); } } else { iVar1 = ioctl(*(int *)(this + 0x28),0x5428); if (iVar1 == -1) { std::__cxx11::stringstream::stringstream(local_1a0); /* try { // try from 00106f05 to 00106f53 has its CatchHandler @ 00106fd1 */ std::__ostream_insert<char,std::char_traits<char>> (local_190,"setBreak failed on a call to ioctl(TIOCCBRK): ",0x2e); piVar2 = __errno_location(); poVar3 = (ostream *)std::ostream::operator<<(local_190,*piVar2); std::__ostream_insert<char,std::char_traits<char>>(poVar3," ",1); pcVar4 = strerror(*piVar2); std::operator<<(poVar3,pcVar4); pSVar5 = (SerialException *)__cxa_allocate_exception(0x28); /* try { // try from 00106f66 to 00106f6f has its CatchHandler @ 00106fba */ std::__cxx11::stringbuf::str(); /* try { // try from 00106f78 to 00106f97 has its CatchHandler @ 00106f98 */ SerialException::SerialException(pSVar5,local_1c0); /* WARNING: Subroutine does not return */ __cxa_throw(pSVar5,&SerialException::typeinfo,SerialException::~SerialException); } } return; }
38,961
serial_cpp::Serial::SerialImpl::setBreak(bool)
ami-iit[P]serial_cpp/src/impl/unix.cc
void Serial::SerialImpl::setBreak (bool level) { if (is_open_ == false) { throw PortNotOpenedException ("Serial::setBreak"); } if (level) { if (-1 == ioctl (fd_, TIOCSBRK)) { stringstream ss; ss << "setBreak failed on a call to ioctl(TIOCSBRK): " << errno << " " << strerror(errno); throw(SerialException(ss.str().c_str())); } } else { if (-1 == ioctl (fd_, TIOCCBRK)) { stringstream ss; ss << "setBreak failed on a call to ioctl(TIOCCBRK): " << errno << " " << strerror(errno); throw(SerialException(ss.str().c_str())); } } }
O2
cpp
serial_cpp::Serial::SerialImpl::setBreak(bool): pushq %rbp pushq %r14 pushq %rbx subq $0x1b0, %rsp # imm = 0x1B0 cmpb $0x0, 0x2c(%rdi) je 0x63dc movl 0x28(%rdi), %edi testb %sil, %sil je 0x63bf movl $0x5427, %esi # imm = 0x5427 xorl %eax, %eax callq 0x33c0 cmpl $-0x1, %eax jne 0x63d0 leaq 0x28(%rsp), %rdi callq 0x31d0 leaq 0x38(%rsp), %rdi leaq 0x336e(%rip), %rsi # 0x96a8 callq 0x32b0 movq %rax, %r14 callq 0x3040 movq %rax, %rbx movl (%rax), %esi movq %r14, %rdi callq 0x34b0 leaq 0x347b(%rip), %rsi # 0x97d6 movq %rax, %rdi callq 0x32b0 movq %rax, %r14 movl (%rbx), %edi callq 0x30d0 movq %r14, %rdi movq %rax, %rsi callq 0x32b0 pushq $0x28 popq %rdi callq 0x3170 movq %rax, %r14 leaq 0x40(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x3440 movb $0x1, %bpl movq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x71a0 xorl %ebp, %ebp leaq 0x7935(%rip), %rsi # 0xdce0 leaq 0xebe(%rip), %rdx # 0x7270 movq %r14, %rdi callq 0x34a0 jmp 0x64a2 movl $0x5428, %esi # imm = 0x5428 xorl %eax, %eax callq 0x33c0 cmpl $-0x1, %eax je 0x640c addq $0x1b0, %rsp # imm = 0x1B0 popq %rbx popq %r14 popq %rbp retq pushq $0x28 popq %rdi callq 0x3170 movq %rax, %r14 leaq 0x32a9(%rip), %rsi # 0x9697 movq %rax, %rdi callq 0x753e leaq 0x7913(%rip), %rsi # 0xdd10 leaq 0x120a(%rip), %rdx # 0x760e movq %r14, %rdi callq 0x34a0 leaq 0x28(%rsp), %rdi callq 0x31d0 leaq 0x38(%rsp), %rdi leaq 0x32b5(%rip), %rsi # 0x96d7 callq 0x32b0 movq %rax, %r14 callq 0x3040 movq %rax, %rbx movl (%rax), %esi movq %r14, %rdi callq 0x34b0 leaq 0x3393(%rip), %rsi # 0x97d6 movq %rax, %rdi callq 0x32b0 movq %rax, %r14 movl (%rbx), %edi callq 0x30d0 movq %r14, %rdi movq %rax, %rsi callq 0x32b0 pushq $0x28 popq %rdi callq 0x3170 movq %rax, %r14 leaq 0x40(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x3440 movb $0x1, %bpl movq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x71a0 xorl %ebp, %ebp leaq 0x784d(%rip), %rsi # 0xdce0 leaq 0xdd6(%rip), %rdx # 0x7270 movq %r14, %rdi callq 0x34a0 jmp 0x64a4 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x3140 testb %bpl, %bpl jne 0x64bd jmp 0x64cc jmp 0x64ba movq %rax, %rbx movq %r14, %rdi callq 0x31f0 jmp 0x64cc jmp 0x64c9 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x3210 jmp 0x64e3 movq %rax, %rbx movq %r14, %rdi callq 0x31f0 movq %rbx, %rdi callq 0x34d0 nop
_ZN10serial_cpp6Serial10SerialImpl8setBreakEb: push rbp push r14 push rbx sub rsp, 1B0h cmp byte ptr [rdi+2Ch], 0 jz loc_63DC mov edi, [rdi+28h] test sil, sil jz loc_63BF mov esi, 5427h xor eax, eax call _ioctl cmp eax, 0FFFFFFFFh jnz loc_63D0 lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea rdi, [rsp+1C8h+var_190] lea rsi, aSetbreakFailed; "setBreak failed on a call to ioctl(TIOC"... call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov r14, rax call ___errno_location mov rbx, rax mov esi, [rax] mov rdi, r14 call __ZNSolsEi; std::ostream::operator<<(int) lea rsi, aSetdtrFailedOn_0+2Bh; " " mov rdi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov r14, rax mov edi, [rbx] call _strerror mov rdi, r14 mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) push 28h ; '(' pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+1C8h+var_188] lea rdi, [rsp+1C8h+var_1C0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov bpl, 1 mov rsi, [rsp+1C8h+var_1C0]; char * mov rdi, r14; this call _ZN10serial_cpp15SerialExceptionC2EPKc; serial_cpp::SerialException::SerialException(char const*) xor ebp, ebp lea rsi, _ZTIN10serial_cpp15SerialExceptionE; lptinfo lea rdx, _ZN10serial_cpp15SerialExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp loc_64A2 loc_63BF: mov esi, 5428h xor eax, eax call _ioctl cmp eax, 0FFFFFFFFh jz short loc_640C loc_63D0: add rsp, 1B0h pop rbx pop r14 pop rbp retn loc_63DC: push 28h ; '(' pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aSerialSetbreak; "Serial::setBreak" mov rdi, rax; this call _ZN10serial_cpp22PortNotOpenedExceptionC2EPKc; serial_cpp::PortNotOpenedException::PortNotOpenedException(char const*) lea rsi, _ZTIN10serial_cpp22PortNotOpenedExceptionE; lptinfo lea rdx, _ZN10serial_cpp22PortNotOpenedExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_640C: lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea rdi, [rsp+1C8h+var_190] lea rsi, aSetbreakFailed_0; "setBreak failed on a call to ioctl(TIOC"... call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov r14, rax call ___errno_location mov rbx, rax mov esi, [rax] mov rdi, r14 call __ZNSolsEi; std::ostream::operator<<(int) lea rsi, aSetdtrFailedOn_0+2Bh; " " mov rdi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov r14, rax mov edi, [rbx] call _strerror mov rdi, r14 mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) push 28h ; '(' pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+1C8h+var_188] lea rdi, [rsp+1C8h+var_1C0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov bpl, 1 mov rsi, [rsp+1C8h+var_1C0]; char * mov rdi, r14; this call _ZN10serial_cpp15SerialExceptionC2EPKc; serial_cpp::SerialException::SerialException(char const*) xor ebp, ebp lea rsi, _ZTIN10serial_cpp15SerialExceptionE; lptinfo lea rdx, _ZN10serial_cpp15SerialExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_64A2: jmp short $+2 loc_64A4: mov rbx, rax lea rdi, [rsp+1C8h+var_1C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_64BD jmp short loc_64CC jmp short $+2 loc_64BA: mov rbx, rax loc_64BD: mov rdi, r14; void * call ___cxa_free_exception jmp short loc_64CC jmp short $+2 loc_64C9: mov rbx, rax loc_64CC: lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() jmp short loc_64E3 mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception loc_64E3: mov rdi, rbx call __Unwind_Resume
long long serial_cpp::Serial::SerialImpl::setBreak(serial_cpp::Serial::SerialImpl *this, char a2, long long a3) { long long v3; // rdi long long result; // rax long long v5; // r14 unsigned int *v6; // rbx long long v7; // rax long long v8; // r14 long long v9; // rax serial_cpp::SerialException *v10; // r14 serial_cpp::PortNotOpenedException *exception; // r14 long long v12; // r14 unsigned int *v13; // rbx long long v14; // rax long long v15; // r14 long long v16; // rax serial_cpp::SerialException *v17; // r14 char *v18[4]; // [rsp+8h] [rbp-1C0h] BYREF _BYTE v19[16]; // [rsp+28h] [rbp-1A0h] BYREF _BYTE v20[8]; // [rsp+38h] [rbp-190h] BYREF _BYTE v21[392]; // [rsp+40h] [rbp-188h] BYREF if ( !*((_BYTE *)this + 44) ) { exception = (serial_cpp::PortNotOpenedException *)__cxa_allocate_exception(0x28uLL); serial_cpp::PortNotOpenedException::PortNotOpenedException(exception, "Serial::setBreak"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'serial_cpp::PortNotOpenedException, serial_cpp::PortNotOpenedException::~PortNotOpenedException); } v3 = *((unsigned int *)this + 10); if ( a2 ) { result = ioctl(v3, 21543LL, a3); if ( (_DWORD)result == -1 ) { std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v19); v5 = std::operator<<<std::char_traits<char>>(v20, "setBreak failed on a call to ioctl(TIOCSBRK): "); v6 = (unsigned int *)__errno_location(); v7 = std::ostream::operator<<(v5, *v6); v8 = std::operator<<<std::char_traits<char>>(v7, " "); v9 = strerror(*v6); std::operator<<<std::char_traits<char>>(v8, v9); v10 = (serial_cpp::SerialException *)__cxa_allocate_exception(0x28uLL); std::stringbuf::str(v18, v21); serial_cpp::SerialException::SerialException(v10, v18[0]); __cxa_throw( v10, (struct type_info *)&`typeinfo for'serial_cpp::SerialException, serial_cpp::SerialException::~SerialException); } } else { result = ioctl(v3, 21544LL, a3); if ( (_DWORD)result == -1 ) { std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v19); v12 = std::operator<<<std::char_traits<char>>(v20, "setBreak failed on a call to ioctl(TIOCCBRK): "); v13 = (unsigned int *)__errno_location(); v14 = std::ostream::operator<<(v12, *v13); v15 = std::operator<<<std::char_traits<char>>(v14, " "); v16 = strerror(*v13); std::operator<<<std::char_traits<char>>(v15, v16); v17 = (serial_cpp::SerialException *)__cxa_allocate_exception(0x28uLL); std::stringbuf::str(v18, v21); serial_cpp::SerialException::SerialException(v17, v18[0]); __cxa_throw( v17, (struct type_info *)&`typeinfo for'serial_cpp::SerialException, serial_cpp::SerialException::~SerialException); } } return result; }
setBreak: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x1b0 CMP byte ptr [RDI + 0x2c],0x0 JZ 0x001063dc MOV EDI,dword ptr [RDI + 0x28] TEST SIL,SIL JZ 0x001063bf MOV ESI,0x5427 XOR EAX,EAX CALL 0x001033c0 CMP EAX,-0x1 JNZ 0x001063d0 LEA RDI,[RSP + 0x28] CALL 0x001031d0 LEA RDI,[RSP + 0x38] LAB_00106333: LEA RSI,[0x1096a8] CALL 0x001032b0 MOV R14,RAX CALL 0x00103040 MOV RBX,RAX MOV ESI,dword ptr [RAX] MOV RDI,R14 CALL 0x001034b0 LEA RSI,[0x1097d6] MOV RDI,RAX CALL 0x001032b0 MOV R14,RAX MOV EDI,dword ptr [RBX] CALL 0x001030d0 MOV RDI,R14 MOV RSI,RAX CALL 0x001032b0 LAB_00106378: PUSH 0x28 POP RDI CALL 0x00103170 MOV R14,RAX LEA RSI,[RSP + 0x40] LAB_00106388: LEA RDI,[RSP + 0x8] CALL 0x00103440 MOV BPL,0x1 MOV RSI,qword ptr [RSP + 0x8] LAB_0010639a: MOV RDI,R14 CALL 0x001071a0 XOR EBP,EBP LEA RSI,[0x10dce0] LEA RDX,[0x107270] MOV RDI,R14 CALL 0x001034a0 LAB_001063bf: MOV ESI,0x5428 XOR EAX,EAX CALL 0x001033c0 CMP EAX,-0x1 JZ 0x0010640c LAB_001063d0: ADD RSP,0x1b0 POP RBX POP R14 POP RBP RET LAB_001063dc: PUSH 0x28 POP RDI CALL 0x00103170 MOV R14,RAX LAB_001063e7: LEA RSI,[0x109697] MOV RDI,RAX CALL 0x0010753e LAB_001063f6: LEA RSI,[0x10dd10] LEA RDX,[0x10760e] MOV RDI,R14 CALL 0x001034a0 LAB_0010640c: LEA RDI,[RSP + 0x28] CALL 0x001031d0 LEA RDI,[RSP + 0x38] LAB_0010641b: LEA RSI,[0x1096d7] CALL 0x001032b0 MOV R14,RAX CALL 0x00103040 MOV RBX,RAX MOV ESI,dword ptr [RAX] MOV RDI,R14 CALL 0x001034b0 LEA RSI,[0x1097d6] MOV RDI,RAX CALL 0x001032b0 MOV R14,RAX MOV EDI,dword ptr [RBX] CALL 0x001030d0 MOV RDI,R14 MOV RSI,RAX CALL 0x001032b0 LAB_00106460: PUSH 0x28 POP RDI CALL 0x00103170 MOV R14,RAX LEA RSI,[RSP + 0x40] LAB_00106470: LEA RDI,[RSP + 0x8] CALL 0x00103440 MOV BPL,0x1 MOV RSI,qword ptr [RSP + 0x8] LAB_00106482: MOV RDI,R14 CALL 0x001071a0 XOR EBP,EBP LEA RSI,[0x10dce0] LEA RDX,[0x107270] MOV RDI,R14 CALL 0x001034a0
/* serial_cpp::Serial::SerialImpl::setBreak(bool) */ void __thiscall serial_cpp::Serial::SerialImpl::setBreak(SerialImpl *this,bool param_1) { int iVar1; ostream *poVar2; int *piVar3; char *pcVar4; SerialException *pSVar5; PortNotOpenedException *this_00; char *local_1c0; stringstream local_1a0 [16]; ostream local_190 [376]; if (this[0x2c] == (SerialImpl)0x0) { this_00 = (PortNotOpenedException *)__cxa_allocate_exception(0x28); /* try { // try from 001063e7 to 001063f5 has its CatchHandler @ 001064d8 */ PortNotOpenedException::PortNotOpenedException(this_00,"Serial::setBreak"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,&PortNotOpenedException::typeinfo, PortNotOpenedException::~PortNotOpenedException); } if (param_1) { iVar1 = ioctl(*(int *)(this + 0x28),0x5427); if (iVar1 == -1) { std::__cxx11::stringstream::stringstream(local_1a0); /* try { // try from 00106333 to 00106377 has its CatchHandler @ 001064c9 */ poVar2 = std::operator<<(local_190,"setBreak failed on a call to ioctl(TIOCSBRK): "); piVar3 = __errno_location(); poVar2 = (ostream *)std::ostream::operator<<(poVar2,*piVar3); poVar2 = std::operator<<(poVar2," "); pcVar4 = strerror(*piVar3); std::operator<<(poVar2,pcVar4); pSVar5 = (SerialException *)__cxa_allocate_exception(0x28); /* try { // try from 00106388 to 00106391 has its CatchHandler @ 001064ba */ std::__cxx11::stringbuf::str(); /* try { // try from 0010639a to 001063b9 has its CatchHandler @ 001064a4 */ SerialException::SerialException(pSVar5,local_1c0); /* WARNING: Subroutine does not return */ __cxa_throw(pSVar5,&SerialException::typeinfo,SerialException::~SerialException); } } else { iVar1 = ioctl(*(int *)(this + 0x28),0x5428); if (iVar1 == -1) { std::__cxx11::stringstream::stringstream(local_1a0); /* try { // try from 0010641b to 0010645f has its CatchHandler @ 001064c7 */ poVar2 = std::operator<<(local_190,"setBreak failed on a call to ioctl(TIOCCBRK): "); piVar3 = __errno_location(); poVar2 = (ostream *)std::ostream::operator<<(poVar2,*piVar3); poVar2 = std::operator<<(poVar2," "); pcVar4 = strerror(*piVar3); std::operator<<(poVar2,pcVar4); pSVar5 = (SerialException *)__cxa_allocate_exception(0x28); /* try { // try from 00106470 to 00106479 has its CatchHandler @ 001064b8 */ std::__cxx11::stringbuf::str(); /* try { // try from 00106482 to 001064a1 has its CatchHandler @ 001064a2 */ SerialException::SerialException(pSVar5,local_1c0); /* WARNING: Subroutine does not return */ __cxa_throw(pSVar5,&SerialException::typeinfo,SerialException::~SerialException); } } return; }
38,962
serial_cpp::Serial::SerialImpl::setBreak(bool)
ami-iit[P]serial_cpp/src/impl/unix.cc
void Serial::SerialImpl::setBreak (bool level) { if (is_open_ == false) { throw PortNotOpenedException ("Serial::setBreak"); } if (level) { if (-1 == ioctl (fd_, TIOCSBRK)) { stringstream ss; ss << "setBreak failed on a call to ioctl(TIOCSBRK): " << errno << " " << strerror(errno); throw(SerialException(ss.str().c_str())); } } else { if (-1 == ioctl (fd_, TIOCCBRK)) { stringstream ss; ss << "setBreak failed on a call to ioctl(TIOCCBRK): " << errno << " " << strerror(errno); throw(SerialException(ss.str().c_str())); } } }
O3
cpp
serial_cpp::Serial::SerialImpl::setBreak(bool): pushq %rbp pushq %r14 pushq %rbx subq $0x1b0, %rsp # imm = 0x1B0 cmpb $0x0, 0x2c(%rdi) je 0x6e9e movl 0x28(%rdi), %edi testb %sil, %sil je 0x6e81 movl $0x5427, %esi # imm = 0x5427 xorl %eax, %eax callq 0x33c0 cmpl $-0x1, %eax jne 0x6e92 leaq 0x28(%rsp), %rdi callq 0x31c0 leaq 0x38(%rsp), %r14 leaq 0x48c8(%rip), %rsi # 0xb6b8 movl $0x2e, %edx movq %r14, %rdi callq 0x3330 callq 0x3050 movq %rax, %rbx movl (%rax), %esi movq %r14, %rdi callq 0x34d0 movq %rax, %r14 leaq 0x49cd(%rip), %rsi # 0xb7e6 movl $0x1, %edx movq %rax, %rdi callq 0x3330 movl (%rbx), %edi callq 0x30e0 movq %r14, %rdi movq %rax, %rsi callq 0x32a0 movl $0x28, %edi callq 0x3150 movq %rax, %r14 leaq 0x40(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x3460 movb $0x1, %bpl movq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x7e74 xorl %ebp, %ebp leaq 0x8e63(%rip), %rsi # 0xfcd0 leaq 0x115a(%rip), %rdx # 0x7fce movq %r14, %rdi callq 0x34c0 jmp 0x6f72 movl $0x5428, %esi # imm = 0x5428 xorl %eax, %eax callq 0x33c0 cmpl $-0x1, %eax je 0x6ed0 addq $0x1b0, %rsp # imm = 0x1B0 popq %rbx popq %r14 popq %rbp retq movl $0x28, %edi callq 0x3150 movq %rax, %r14 leaq 0x47f5(%rip), %rsi # 0xb6a7 movq %rax, %rdi callq 0x845a leaq 0x8e3f(%rip), %rsi # 0xfd00 leaq 0x16ec(%rip), %rdx # 0x85b4 movq %r14, %rdi callq 0x34c0 leaq 0x28(%rsp), %rdi callq 0x31c0 leaq 0x38(%rsp), %r14 leaq 0x4801(%rip), %rsi # 0xb6e7 movl $0x2e, %edx movq %r14, %rdi callq 0x3330 callq 0x3050 movq %rax, %rbx movl (%rax), %esi movq %r14, %rdi callq 0x34d0 movq %rax, %r14 leaq 0x48d7(%rip), %rsi # 0xb7e6 movl $0x1, %edx movq %rax, %rdi callq 0x3330 movl (%rbx), %edi callq 0x30e0 movq %r14, %rdi movq %rax, %rsi callq 0x32a0 movl $0x28, %edi callq 0x3150 movq %rax, %r14 leaq 0x40(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x3460 movb $0x1, %bpl movq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x7e74 xorl %ebp, %ebp leaq 0x8d6d(%rip), %rsi # 0xfcd0 leaq 0x1064(%rip), %rdx # 0x7fce movq %r14, %rdi callq 0x34c0 jmp 0x6f74 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x6f92 movq 0x18(%rsp), %rsi incq %rsi callq 0x32c0 testb %bpl, %bpl jne 0x6f9e jmp 0x6fad jmp 0x6f9b movq %rax, %rbx movq %r14, %rdi callq 0x31e0 jmp 0x6fad jmp 0x6faa movq %rax, %rbx movq 0x8fec(%rip), %rsi # 0xffa0 leaq 0x28(%rsp), %rdi callq 0x3200 leaq 0xa8(%rsp), %rdi callq 0x30d0 jmp 0x6fd8 movq %rax, %rbx movq %r14, %rdi callq 0x31e0 movq %rbx, %rdi callq 0x34f0
_ZN10serial_cpp6Serial10SerialImpl8setBreakEb: push rbp push r14 push rbx sub rsp, 1B0h cmp byte ptr [rdi+2Ch], 0 jz loc_6E9E mov edi, [rdi+28h] test sil, sil jz loc_6E81 mov esi, 5427h xor eax, eax call _ioctl cmp eax, 0FFFFFFFFh jnz loc_6E92 lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea r14, [rsp+1C8h+var_190] lea rsi, aSetbreakFailed; "setBreak failed on a call to ioctl(TIOC"... mov edx, 2Eh ; '.' mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) call ___errno_location mov rbx, rax mov esi, [rax] mov rdi, r14 call __ZNSolsEi; std::ostream::operator<<(int) mov r14, rax lea rsi, aSetdtrFailedOn_0+2Bh; " " mov edx, 1 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov edi, [rbx] call _strerror mov rdi, r14 mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov edi, 28h ; '('; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+1C8h+var_188] lea rdi, [rsp+1C8h+var_1C0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov bpl, 1 mov rsi, [rsp+1C8h+var_1C0]; char * mov rdi, r14; this call _ZN10serial_cpp15SerialExceptionC2EPKc; serial_cpp::SerialException::SerialException(char const*) xor ebp, ebp lea rsi, _ZTIN10serial_cpp15SerialExceptionE; lptinfo lea rdx, _ZN10serial_cpp15SerialExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp loc_6F72 loc_6E81: mov esi, 5428h xor eax, eax call _ioctl cmp eax, 0FFFFFFFFh jz short loc_6ED0 loc_6E92: add rsp, 1B0h pop rbx pop r14 pop rbp retn loc_6E9E: mov edi, 28h ; '('; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aSerialSetbreak; "Serial::setBreak" mov rdi, rax; this call _ZN10serial_cpp22PortNotOpenedExceptionC2EPKc; serial_cpp::PortNotOpenedException::PortNotOpenedException(char const*) lea rsi, _ZTIN10serial_cpp22PortNotOpenedExceptionE; lptinfo lea rdx, _ZN10serial_cpp22PortNotOpenedExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_6ED0: lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea r14, [rsp+1C8h+var_190] lea rsi, aSetbreakFailed_0; "setBreak failed on a call to ioctl(TIOC"... mov edx, 2Eh ; '.' mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) call ___errno_location mov rbx, rax mov esi, [rax] mov rdi, r14 call __ZNSolsEi; std::ostream::operator<<(int) mov r14, rax lea rsi, aSetdtrFailedOn_0+2Bh; " " mov edx, 1 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov edi, [rbx] call _strerror mov rdi, r14 mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov edi, 28h ; '('; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+1C8h+var_188] lea rdi, [rsp+1C8h+var_1C0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov bpl, 1 mov rsi, [rsp+1C8h+var_1C0]; char * mov rdi, r14; this call _ZN10serial_cpp15SerialExceptionC2EPKc; serial_cpp::SerialException::SerialException(char const*) xor ebp, ebp lea rsi, _ZTIN10serial_cpp15SerialExceptionE; lptinfo lea rdx, _ZN10serial_cpp15SerialExceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_6F72: jmp short $+2 loc_6F74: mov rbx, rax lea rax, [rsp+1C8h+var_1B0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_6F92 mov rsi, [rsp+1C8h+var_1B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6F92: test bpl, bpl jnz short loc_6F9E jmp short loc_6FAD jmp short $+2 loc_6F9B: mov rbx, rax loc_6F9E: mov rdi, r14; void * call ___cxa_free_exception jmp short loc_6FAD jmp short $+2 loc_6FAA: mov rbx, rax loc_6FAD: mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1C8h+var_1A0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+1C8h+var_120]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() jmp short loc_6FD8 mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception loc_6FD8: mov rdi, rbx call __Unwind_Resume
long long serial_cpp::Serial::SerialImpl::setBreak(serial_cpp::Serial::SerialImpl *this, char a2, long long a3) { long long v3; // rdi long long result; // rax unsigned int *v5; // rbx long long v6; // r14 long long v7; // rax serial_cpp::SerialException *v8; // r14 serial_cpp::PortNotOpenedException *exception; // r14 unsigned int *v10; // rbx long long v11; // r14 long long v12; // rax serial_cpp::SerialException *v13; // r14 char *v14[2]; // [rsp+8h] [rbp-1C0h] BYREF _BYTE v15[16]; // [rsp+28h] [rbp-1A0h] BYREF _BYTE v16[8]; // [rsp+38h] [rbp-190h] BYREF _BYTE v17[104]; // [rsp+40h] [rbp-188h] BYREF if ( !*((_BYTE *)this + 44) ) { exception = (serial_cpp::PortNotOpenedException *)__cxa_allocate_exception(0x28uLL); serial_cpp::PortNotOpenedException::PortNotOpenedException(exception, "Serial::setBreak"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'serial_cpp::PortNotOpenedException, serial_cpp::PortNotOpenedException::~PortNotOpenedException); } v3 = *((unsigned int *)this + 10); if ( a2 ) { result = ioctl(v3, 21543LL, a3); if ( (_DWORD)result == -1 ) { std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v15); std::__ostream_insert<char,std::char_traits<char>>(v16, "setBreak failed on a call to ioctl(TIOCSBRK): ", 46LL); v5 = (unsigned int *)__errno_location(); v6 = std::ostream::operator<<(v16, *v5); std::__ostream_insert<char,std::char_traits<char>>(v6, " ", 1LL); v7 = strerror(*v5); std::operator<<<std::char_traits<char>>(v6, v7); v8 = (serial_cpp::SerialException *)__cxa_allocate_exception(0x28uLL); std::stringbuf::str(v14, v17); serial_cpp::SerialException::SerialException(v8, v14[0]); __cxa_throw( v8, (struct type_info *)&`typeinfo for'serial_cpp::SerialException, serial_cpp::SerialException::~SerialException); } } else { result = ioctl(v3, 21544LL, a3); if ( (_DWORD)result == -1 ) { std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v15); std::__ostream_insert<char,std::char_traits<char>>(v16, "setBreak failed on a call to ioctl(TIOCCBRK): ", 46LL); v10 = (unsigned int *)__errno_location(); v11 = std::ostream::operator<<(v16, *v10); std::__ostream_insert<char,std::char_traits<char>>(v11, " ", 1LL); v12 = strerror(*v10); std::operator<<<std::char_traits<char>>(v11, v12); v13 = (serial_cpp::SerialException *)__cxa_allocate_exception(0x28uLL); std::stringbuf::str(v14, v17); serial_cpp::SerialException::SerialException(v13, v14[0]); __cxa_throw( v13, (struct type_info *)&`typeinfo for'serial_cpp::SerialException, serial_cpp::SerialException::~SerialException); } } return result; }
setBreak: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x1b0 CMP byte ptr [RDI + 0x2c],0x0 JZ 0x00106e9e MOV EDI,dword ptr [RDI + 0x28] TEST SIL,SIL JZ 0x00106e81 MOV ESI,0x5427 XOR EAX,EAX CALL 0x001033c0 CMP EAX,-0x1 JNZ 0x00106e92 LEA RDI,[RSP + 0x28] CALL 0x001031c0 LEA R14,[RSP + 0x38] LAB_00106de9: LEA RSI,[0x10b6b8] MOV EDX,0x2e MOV RDI,R14 CALL 0x00103330 CALL 0x00103050 MOV RBX,RAX MOV ESI,dword ptr [RAX] MOV RDI,R14 CALL 0x001034d0 MOV R14,RAX LEA RSI,[0x10b7e6] MOV EDX,0x1 MOV RDI,RAX CALL 0x00103330 MOV EDI,dword ptr [RBX] CALL 0x001030e0 MOV RDI,R14 MOV RSI,RAX CALL 0x001032a0 LAB_00106e38: MOV EDI,0x28 CALL 0x00103150 MOV R14,RAX LEA RSI,[RSP + 0x40] LAB_00106e4a: LEA RDI,[RSP + 0x8] CALL 0x00103460 MOV BPL,0x1 MOV RSI,qword ptr [RSP + 0x8] LAB_00106e5c: MOV RDI,R14 CALL 0x00107e74 XOR EBP,EBP LEA RSI,[0x10fcd0] LEA RDX,[0x107fce] MOV RDI,R14 CALL 0x001034c0 LAB_00106e81: MOV ESI,0x5428 XOR EAX,EAX CALL 0x001033c0 CMP EAX,-0x1 JZ 0x00106ed0 LAB_00106e92: ADD RSP,0x1b0 POP RBX POP R14 POP RBP RET LAB_00106e9e: MOV EDI,0x28 CALL 0x00103150 MOV R14,RAX LAB_00106eab: LEA RSI,[0x10b6a7] MOV RDI,RAX CALL 0x0010845a LAB_00106eba: LEA RSI,[0x10fd00] LEA RDX,[0x1085b4] MOV RDI,R14 CALL 0x001034c0 LAB_00106ed0: LEA RDI,[RSP + 0x28] CALL 0x001031c0 LEA R14,[RSP + 0x38] LAB_00106edf: LEA RSI,[0x10b6e7] MOV EDX,0x2e MOV RDI,R14 CALL 0x00103330 CALL 0x00103050 MOV RBX,RAX MOV ESI,dword ptr [RAX] MOV RDI,R14 CALL 0x001034d0 MOV R14,RAX LEA RSI,[0x10b7e6] MOV EDX,0x1 MOV RDI,RAX CALL 0x00103330 MOV EDI,dword ptr [RBX] CALL 0x001030e0 MOV RDI,R14 MOV RSI,RAX CALL 0x001032a0 LAB_00106f2e: MOV EDI,0x28 CALL 0x00103150 MOV R14,RAX LEA RSI,[RSP + 0x40] LAB_00106f40: LEA RDI,[RSP + 0x8] CALL 0x00103460 MOV BPL,0x1 MOV RSI,qword ptr [RSP + 0x8] LAB_00106f52: MOV RDI,R14 CALL 0x00107e74 XOR EBP,EBP LEA RSI,[0x10fcd0] LEA RDX,[0x107fce] MOV RDI,R14 CALL 0x001034c0
/* serial_cpp::Serial::SerialImpl::setBreak(bool) */ void __thiscall serial_cpp::Serial::SerialImpl::setBreak(SerialImpl *this,bool param_1) { int iVar1; int *piVar2; ostream *poVar3; char *pcVar4; SerialException *pSVar5; PortNotOpenedException *this_00; char *local_1c0; stringstream local_1a0 [16]; ostream local_190 [376]; if (this[0x2c] == (SerialImpl)0x0) { this_00 = (PortNotOpenedException *)__cxa_allocate_exception(0x28); /* try { // try from 00106eab to 00106eb9 has its CatchHandler @ 00106fcd */ PortNotOpenedException::PortNotOpenedException(this_00,"Serial::setBreak"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,&PortNotOpenedException::typeinfo, PortNotOpenedException::~PortNotOpenedException); } if (param_1) { iVar1 = ioctl(*(int *)(this + 0x28),0x5427); if (iVar1 == -1) { std::__cxx11::stringstream::stringstream(local_1a0); /* try { // try from 00106de9 to 00106e37 has its CatchHandler @ 00106faa */ std::__ostream_insert<char,std::char_traits<char>> (local_190,"setBreak failed on a call to ioctl(TIOCSBRK): ",0x2e); piVar2 = __errno_location(); poVar3 = (ostream *)std::ostream::operator<<(local_190,*piVar2); std::__ostream_insert<char,std::char_traits<char>>(poVar3," ",1); pcVar4 = strerror(*piVar2); std::operator<<(poVar3,pcVar4); pSVar5 = (SerialException *)__cxa_allocate_exception(0x28); /* try { // try from 00106e4a to 00106e53 has its CatchHandler @ 00106f9b */ std::__cxx11::stringbuf::str(); /* try { // try from 00106e5c to 00106e7b has its CatchHandler @ 00106f74 */ SerialException::SerialException(pSVar5,local_1c0); /* WARNING: Subroutine does not return */ __cxa_throw(pSVar5,&SerialException::typeinfo,SerialException::~SerialException); } } else { iVar1 = ioctl(*(int *)(this + 0x28),0x5428); if (iVar1 == -1) { std::__cxx11::stringstream::stringstream(local_1a0); /* try { // try from 00106edf to 00106f2d has its CatchHandler @ 00106fa8 */ std::__ostream_insert<char,std::char_traits<char>> (local_190,"setBreak failed on a call to ioctl(TIOCCBRK): ",0x2e); piVar2 = __errno_location(); poVar3 = (ostream *)std::ostream::operator<<(local_190,*piVar2); std::__ostream_insert<char,std::char_traits<char>>(poVar3," ",1); pcVar4 = strerror(*piVar2); std::operator<<(poVar3,pcVar4); pSVar5 = (SerialException *)__cxa_allocate_exception(0x28); /* try { // try from 00106f40 to 00106f49 has its CatchHandler @ 00106f99 */ std::__cxx11::stringbuf::str(); /* try { // try from 00106f52 to 00106f71 has its CatchHandler @ 00106f72 */ SerialException::SerialException(pSVar5,local_1c0); /* WARNING: Subroutine does not return */ __cxa_throw(pSVar5,&SerialException::typeinfo,SerialException::~SerialException); } } return; }
38,963
create_key_part
eloqsql/storage/myisam/mi_test1.c
static void create_key_part(uchar *key,uint rownr) { if (!unique_key) rownr&=7; /* Some identical keys */ if (keyinfo[0].seg[0].type == HA_KEYTYPE_NUM) { sprintf((char*) key,"%*d",keyinfo[0].seg[0].length,rownr); } else if (keyinfo[0].seg[0].type == HA_KEYTYPE_VARTEXT1 || keyinfo[0].seg[0].type == HA_KEYTYPE_VARTEXT2) { /* Alpha record */ /* Create a key that may be easily packed */ bfill(key,keyinfo[0].seg[0].length,rownr < 10 ? 'A' : 'B'); sprintf((char*) key+keyinfo[0].seg[0].length-2,"%-2d",rownr); if ((rownr & 7) == 0) { /* Change the key to force a unpack of the next key */ bfill(key+3,keyinfo[0].seg[0].length-4,rownr < 10 ? 'a' : 'b'); } } else { /* Alpha record */ if (keyinfo[0].seg[0].flag & HA_SPACE_PACK) sprintf((char*) key,"%-*d",keyinfo[0].seg[0].length,rownr); else { /* Create a key that may be easily packed */ bfill(key,keyinfo[0].seg[0].length,rownr < 10 ? 'A' : 'B'); sprintf((char*) key+keyinfo[0].seg[0].length-2,"%-2d",rownr); if ((rownr & 7) == 0) { /* Change the key to force a unpack of the next key */ key[1]= (rownr < 10 ? 'a' : 'b'); } } } }
O3
c
create_key_part: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movl %esi, %r15d andl $0x7, %r15d cmpb $0x0, 0x380ec7(%rip) # 0x3ad2c8 cmovnel %r15d, %ebx movq %rdi, %r14 movq 0x380a79(%rip), %rax # 0x3ace88 movzbl 0x18(%rax), %ecx cmpl $0x11, %ecx je 0x2c433 cmpl $0xf, %ecx je 0x2c433 cmpl $0x7, %ecx jne 0x2c48a movzwl 0x14(%rax), %r8d leaq 0x69011(%rip), %rcx # 0x9543f jmp 0x2c529 cmpl $0xa, %ebx movzwl 0x14(%rax), %edx movl $0x42, %esi sbbl $0x0, %esi movq %r14, %rdi callq 0x281d0 movq 0x380a37(%rip), %rax # 0x3ace88 movzwl 0x14(%rax), %eax leaq (%r14,%rax), %rdi addq $-0x2, %rdi leaq 0x68fdf(%rip), %rcx # 0x95443 movl $0x1, %esi movq $-0x1, %rdx movl %ebx, %r8d xorl %eax, %eax callq 0x28220 testl %r15d, %r15d je 0x2c4ed addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq testb $0x1, 0x12(%rax) jne 0x2c51d cmpl $0xa, %ebx movzwl 0x14(%rax), %edx movl $0x42, %esi sbbl $0x0, %esi movq %r14, %rdi callq 0x281d0 movq 0x3809d6(%rip), %rax # 0x3ace88 movzwl 0x14(%rax), %eax leaq (%r14,%rax), %rdi addq $-0x2, %rdi leaq 0x68f7e(%rip), %rcx # 0x95443 movl $0x1, %esi movq $-0x1, %rdx movl %ebx, %r8d xorl %eax, %eax callq 0x28220 testl %r15d, %r15d jne 0x2c47f cmpl $0xa, %ebx movb $0x62, %al sbbb $0x0, %al movb %al, 0x1(%r14) jmp 0x2c47f addq $0x3, %r14 movq 0x380990(%rip), %rax # 0x3ace88 movzwl 0x14(%rax), %edx addq $-0x4, %rdx cmpl $0xa, %ebx movl $0x62, %esi sbbl $0x0, %esi movq %r14, %rdi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x281d0 movzwl 0x14(%rax), %r8d leaq 0x68f1f(%rip), %rcx # 0x95448 movq %r14, %rdi movl $0x1, %esi movq $-0x1, %rdx movl %ebx, %r9d xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x28220
create_key_part: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov ebx, esi mov r15d, esi and r15d, 7 cmp cs:unique_key, 0 cmovnz ebx, r15d mov r14, rdi mov rax, cs:qword_3ACE88 movzx ecx, byte ptr [rax+18h] cmp ecx, 11h jz short loc_2C433 cmp ecx, 0Fh jz short loc_2C433 cmp ecx, 7 jnz short loc_2C48A movzx r8d, word ptr [rax+14h] lea rcx, aD; "%*d" jmp loc_2C529 loc_2C433: cmp ebx, 0Ah movzx edx, word ptr [rax+14h] mov esi, 42h ; 'B' sbb esi, 0 mov rdi, r14 call _memset mov rax, cs:qword_3ACE88 movzx eax, word ptr [rax+14h] lea rdi, [r14+rax] add rdi, 0FFFFFFFFFFFFFFFEh lea rcx, a2d; "%-2d" mov esi, 1 mov rdx, 0FFFFFFFFFFFFFFFFh mov r8d, ebx xor eax, eax call ___sprintf_chk test r15d, r15d jz short loc_2C4ED loc_2C47F: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_2C48A: test byte ptr [rax+12h], 1 jnz loc_2C51D cmp ebx, 0Ah movzx edx, word ptr [rax+14h] mov esi, 42h ; 'B' sbb esi, 0 mov rdi, r14 call _memset mov rax, cs:qword_3ACE88 movzx eax, word ptr [rax+14h] lea rdi, [r14+rax] add rdi, 0FFFFFFFFFFFFFFFEh lea rcx, a2d; "%-2d" mov esi, 1 mov rdx, 0FFFFFFFFFFFFFFFFh mov r8d, ebx xor eax, eax call ___sprintf_chk test r15d, r15d jnz short loc_2C47F cmp ebx, 0Ah mov al, 62h ; 'b' sbb al, 0 mov [r14+1], al jmp short loc_2C47F loc_2C4ED: add r14, 3 mov rax, cs:qword_3ACE88 movzx edx, word ptr [rax+14h] add rdx, 0FFFFFFFFFFFFFFFCh cmp ebx, 0Ah mov esi, 62h ; 'b' sbb esi, 0 mov rdi, r14 add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _memset loc_2C51D: movzx r8d, word ptr [rax+14h] lea rcx, aD_0; "%-*d" loc_2C529: mov rdi, r14 mov esi, 1 mov rdx, 0FFFFFFFFFFFFFFFFh mov r9d, ebx xor eax, eax add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp ___sprintf_chk
char create_key_part(long long a1, unsigned int a2) { unsigned int v2; // ebx int v3; // ecx char result; // al v2 = a2; if ( unique_key ) v2 = a2 & 7; v3 = *(unsigned __int8 *)(qword_3ACE88 + 24); if ( v3 == 17 || v3 == 15 ) { memset(a1, ((v2 | 0x4200000000uLL) - 10) >> 32, *(unsigned __int16 *)(qword_3ACE88 + 20)); result = __sprintf_chk(a1 + *(unsigned __int16 *)(qword_3ACE88 + 20) - 2, 1LL, -1LL, "%-2d", v2); if ( (a2 & 7) == 0 ) return memset(a1 + 3, ((v2 | 0x6200000000uLL) - 10) >> 32, *(unsigned __int16 *)(qword_3ACE88 + 20) - 4LL); } else if ( v3 == 7 ) { return __sprintf_chk(a1, 1LL, -1LL, "%*d", *(unsigned __int16 *)(qword_3ACE88 + 20), v2); } else if ( (*(_BYTE *)(qword_3ACE88 + 18) & 1) != 0 ) { return __sprintf_chk(a1, 1LL, -1LL, "%-*d", *(unsigned __int16 *)(qword_3ACE88 + 20), v2); } else { memset(a1, ((v2 | 0x4200000000uLL) - 10) >> 32, *(unsigned __int16 *)(qword_3ACE88 + 20)); result = __sprintf_chk(a1 + *(unsigned __int16 *)(qword_3ACE88 + 20) - 2, 1LL, -1LL, "%-2d", v2); if ( (a2 & 7) == 0 ) { result = 98 - (v2 < 0xA); *(_BYTE *)(a1 + 1) = result; } } return result; }
create_key_part: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBX,ESI MOV R15D,ESI AND R15D,0x7 CMP byte ptr [0x004ad2c8],0x0 CMOVNZ EBX,R15D MOV R14,RDI MOV RAX,qword ptr [0x004ace88] MOVZX ECX,byte ptr [RAX + 0x18] CMP ECX,0x11 JZ 0x0012c433 CMP ECX,0xf JZ 0x0012c433 CMP ECX,0x7 JNZ 0x0012c48a MOVZX R8D,word ptr [RAX + 0x14] LEA RCX,[0x19543f] JMP 0x0012c529 LAB_0012c433: CMP EBX,0xa MOVZX EDX,word ptr [RAX + 0x14] MOV ESI,0x42 SBB ESI,0x0 MOV RDI,R14 CALL 0x001281d0 MOV RAX,qword ptr [0x004ace88] MOVZX EAX,word ptr [RAX + 0x14] LEA RDI,[R14 + RAX*0x1] ADD RDI,-0x2 LEA RCX,[0x195443] MOV ESI,0x1 MOV RDX,-0x1 MOV R8D,EBX XOR EAX,EAX CALL 0x00128220 TEST R15D,R15D JZ 0x0012c4ed LAB_0012c47f: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_0012c48a: TEST byte ptr [RAX + 0x12],0x1 JNZ 0x0012c51d CMP EBX,0xa MOVZX EDX,word ptr [RAX + 0x14] MOV ESI,0x42 SBB ESI,0x0 MOV RDI,R14 CALL 0x001281d0 MOV RAX,qword ptr [0x004ace88] MOVZX EAX,word ptr [RAX + 0x14] LEA RDI,[R14 + RAX*0x1] ADD RDI,-0x2 LEA RCX,[0x195443] MOV ESI,0x1 MOV RDX,-0x1 MOV R8D,EBX XOR EAX,EAX CALL 0x00128220 TEST R15D,R15D JNZ 0x0012c47f CMP EBX,0xa MOV AL,0x62 SBB AL,0x0 MOV byte ptr [R14 + 0x1],AL JMP 0x0012c47f LAB_0012c4ed: ADD R14,0x3 MOV RAX,qword ptr [0x004ace88] MOVZX EDX,word ptr [RAX + 0x14] ADD RDX,-0x4 CMP EBX,0xa MOV ESI,0x62 SBB ESI,0x0 MOV RDI,R14 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x001281d0 LAB_0012c51d: MOVZX R8D,word ptr [RAX + 0x14] LEA RCX,[0x195448] LAB_0012c529: MOV RDI,R14 MOV ESI,0x1 MOV RDX,-0x1 MOV R9D,EBX XOR EAX,EAX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00128220
void create_key_part(void *param_1,uint param_2) { char cVar1; int2 uVar2; int *puVar3; uint uVar4; uVar4 = param_2 & 7; if (unique_key != '\0') { param_2 = uVar4; } cVar1 = *(char *)(keyinfo._40_8_ + 0x18); if ((cVar1 != '\x11') && (cVar1 != '\x0f')) { if (cVar1 == '\a') { uVar2 = *(int2 *)(keyinfo._40_8_ + 0x14); puVar3 = &DAT_0019543f; } else { if ((*(byte *)(keyinfo._40_8_ + 0x12) & 1) == 0) { memset(param_1,0x42 - (uint)(param_2 < 10),(ulong)*(ushort *)(keyinfo._40_8_ + 0x14)); __sprintf_chk((long)param_1 + ((ulong)*(ushort *)(keyinfo._40_8_ + 0x14) - 2),1, 0xffffffffffffffff,&DAT_00195443,param_2); if (uVar4 != 0) { return; } *(char *)((long)param_1 + 1) = 'b' - (param_2 < 10); return; } uVar2 = *(int2 *)(keyinfo._40_8_ + 0x14); puVar3 = &DAT_00195448; } __sprintf_chk(param_1,1,0xffffffffffffffff,puVar3,uVar2,param_2); return; } memset(param_1,0x42 - (uint)(param_2 < 10),(ulong)*(ushort *)(keyinfo._40_8_ + 0x14)); __sprintf_chk((long)param_1 + ((ulong)*(ushort *)(keyinfo._40_8_ + 0x14) - 2),1,0xffffffffffffffff ,&DAT_00195443,param_2); if (uVar4 != 0) { return; } memset((void *)((long)param_1 + 3),0x62 - (uint)(param_2 < 10), (ulong)*(ushort *)(keyinfo._40_8_ + 0x14) - 4); return; }
38,964
ftxui::ScreenInteractive::Uninstall()
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/screen_interactive.cpp
void ScreenInteractive::Uninstall() { ExitNow(); event_listener_.join(); animation_listener_.join(); OnExit(); }
O1
cpp
ftxui::ScreenInteractive::Uninstall(): pushq %rbx movq %rdi, %rbx movb $0x1, %al xchgb %al, 0xb8(%rdi) addq $0x68, %rdi xorl %esi, %esi callq 0x31b1c leaq 0xc0(%rbx), %rdi callq 0xb730 addq $0xc8, %rbx movq %rbx, %rdi callq 0xb730 popq %rbx jmp 0x2ee95
_ZN5ftxui17ScreenInteractive9UninstallEv: push rbx mov rbx, rdi mov al, 1 xchg al, [rdi+0B8h] add rdi, 68h ; 'h' xor esi, esi call _ZNSt15__uniq_ptr_implIN5ftxui10SenderImplISt7variantIJNS0_5EventESt8functionIFvvEENS0_13AnimationTaskEEEEESt14default_deleteIS9_EE5resetEPS9_; std::__uniq_ptr_impl<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>,std::default_delete<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>>::reset(ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>*) lea rdi, [rbx+0C0h]; this call __ZNSt6thread4joinEv; std::thread::join(void) add rbx, 0C8h mov rdi, rbx; this call __ZNSt6thread4joinEv; std::thread::join(void) pop rbx jmp _ZN5ftxui12_GLOBAL__N_16OnExitEv; ftxui::`anonymous namespace'::OnExit(void)
long long ftxui::ScreenInteractive::Uninstall(ftxui::ScreenInteractive *this) { std::thread *v1; // rdi *((_BYTE *)this + 184) = 1; std::__uniq_ptr_impl<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>,std::default_delete<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>>::reset( (char *)this + 104, 0LL); std::thread::join((ftxui::ScreenInteractive *)((char *)this + 192)); v1 = (ftxui::ScreenInteractive *)((char *)this + 200); std::thread::join(v1); return ftxui::`anonymous namespace'::OnExit(v1); }
Uninstall: PUSH RBX MOV RBX,RDI MOV AL,0x1 XCHG byte ptr [RDI + 0xb8],AL ADD RDI,0x68 XOR ESI,ESI CALL 0x00131b1c LEA RDI,[RBX + 0xc0] CALL 0x0010b730 ADD RBX,0xc8 MOV RDI,RBX CALL 0x0010b730 POP RBX JMP 0x0012ee95
/* ftxui::ScreenInteractive::Uninstall() */ void __thiscall ftxui::ScreenInteractive::Uninstall(ScreenInteractive *this) { LOCK(); this[0xb8] = (ScreenInteractive)0x1; UNLOCK(); std:: __uniq_ptr_impl<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> ::reset((__uniq_ptr_impl<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> *)(this + 0x68),(SenderImpl *)0x0); std::thread::join(); std::thread::join(); (anonymous_namespace)::OnExit(); return; }
38,965
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::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>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>)
llama.cpp/common/json.hpp
iterator erase(iterator first, iterator last) { if (first == last) { return first; } const auto elements_affected = std::distance(first, last); const auto offset = std::distance(Container::begin(), first); // This is the start situation. We need to delete elements_affected // elements (3 in this example: e, f, g), and need to return an // iterator past the last deleted element (h in this example). // Note that offset is the distance from the start of the vector // to first. We will need this later. // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // first last // Since we cannot move const Keys, we re-construct them in place. // We start at first and re-construct (viz. copy) the elements from // the back of the vector. Example for first iteration: // ,--------. // v | destroy e and re-construct with h // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // it it + elements_affected for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it) { it->~value_type(); // destroy but keep allocation new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it } // [ a, b, c, d, h, i, j, h, i, j ] // ^ ^ // first last // remove the unneeded elements at the end of the vector Container::resize(this->size() - static_cast<size_type>(elements_affected)); // [ a, b, c, d, h, i, j ] // ^ ^ // first last // first is now pointing past the last deleted element, but we cannot // use this iterator, because it may have been invalidated by the // resize call. Instead, we can return begin() + offset. return Container::begin() + offset; }
O3
cpp
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::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>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 cmpq %rdx, %rsi je 0xea399 movq %rdx, %r15 movq %rdi, %rbx movq %rdx, %rax subq %r14, %rax sarq $0x5, %rax movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB imulq %rcx, %rax movq %rax, 0x10(%rsp) movq (%rdi), %rax movq %rax, 0x8(%rsp) xorl %ebp, %ebp leaq (%r15,%rbp), %r12 cmpq 0x8(%rbx), %r12 je 0xea358 leaq (%r14,%rbp), %r13 addq $0x50, %r13 movq %r13, %rdi xorl %esi, %esi callq 0x84452 movq %r13, %rdi callq 0x88b6c leaq (%r14,%rbp), %rdi addq $0x48, %rdi callq 0x6fad6 leaq (%r14,%rbp), %rdi addq $0x38, %rdi callq 0x6fad6 leaq (%r14,%rbp), %r13 addq $0x28, %r13 movq %r13, %rdi callq 0x6fad6 movq -0x10(%r13), %rdi testq %rdi, %rdi je 0xea32e movq 0x76c8f(%rip), %rax # 0x160f98 cmpb $0x0, (%rax) je 0xea319 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0xea323 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0xea32e movq (%rdi), %rax callq *0x18(%rax) leaq (%r14,%rbp), %r13 movq %r13, %rdi xorl %esi, %esi callq 0x84452 movq %r13, %rdi callq 0x88b6c movq %r13, %rdi movq %r12, %rsi callq 0xea3ac addq $0x60, %rbp jmp 0xea2a7 movq %r14, %r15 subq 0x8(%rsp), %r15 movq 0x10(%rsp), %rax leaq (%rax,%rax,2), %rsi shlq $0x5, %rsi addq %r14, %rsi subq (%rbx), %rsi addq %rbp, %rsi sarq $0x5, %rsi movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB imulq %rcx, %rsi subq %rax, %rsi movq %rbx, %rdi callq 0xea438 addq (%rbx), %r15 movq %r15, %r14 movq %r14, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14, rsi cmp rsi, rdx jz loc_EA399 mov r15, rdx mov rbx, rdi mov rax, rdx sub rax, r14 sar rax, 5 mov rcx, 0AAAAAAAAAAAAAAABh imul rax, rcx mov [rsp+48h+var_38], rax mov rax, [rdi] mov [rsp+48h+var_40], rax xor ebp, ebp loc_EA2A7: lea r12, [r15+rbp] cmp r12, [rbx+8] jz loc_EA358 lea r13, [r14+rbp] add r13, 50h ; 'P' mov rdi, r13 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, r13 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, [r14+rbp] add rdi, 48h ; 'H' call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [r14+rbp] add rdi, 38h ; '8' call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea r13, [r14+rbp] add r13, 28h ; '(' mov rdi, r13 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, [r13-10h] test rdi, rdi jz short loc_EA32E mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag cmp byte ptr [rax], 0 jz short loc_EA319 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_EA323 loc_EA319: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_EA323: cmp eax, 1 jnz short loc_EA32E mov rax, [rdi] call qword ptr [rax+18h] loc_EA32E: lea r13, [r14+rbp] mov rdi, r13 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, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, r13 mov rsi, r12 call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::pair(std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>&&) add rbp, 60h ; '`' jmp loc_EA2A7 loc_EA358: mov r15, r14 sub r15, [rsp+48h+var_40] mov rax, [rsp+48h+var_38] lea rsi, [rax+rax*2] shl rsi, 5 add rsi, r14 sub rsi, [rbx] add rsi, rbp sar rsi, 5 mov rcx, 0AAAAAAAAAAAAAAABh imul rsi, rcx sub rsi, rax mov rdi, rbx call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::resize(ulong) add r15, [rbx] mov r14, r15 loc_EA399: mov rax, r14 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::erase( long long *a1, long long a2, long long a3) { long long v3; // r14 long long i; // rbp volatile signed __int32 *v7; // rdi signed __int32 v8; // eax long long v10; // [rsp+8h] [rbp-40h] unsigned long long v11; // [rsp+10h] [rbp-38h] v3 = a2; if ( a2 != a3 ) { v11 = 0xAAAAAAAAAAAAAAABLL * ((a3 - a2) >> 5); v10 = *a1; for ( i = 0LL; a3 + i != a1[1]; i += 96LL ) { 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 *)(a2 + i + 80)); 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(a2 + i + 80); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)(a2 + i + 72)); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)(a2 + i + 56)); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)(a2 + i + 40)); v7 = *(volatile signed __int32 **)(a2 + i + 24); if ( v7 ) { if ( _libc_single_threaded ) { v8 = *((_DWORD *)v7 + 3); *((_DWORD *)v7 + 3) = v8 - 1; } else { v8 = _InterlockedExchangeAdd(v7 + 3, 0xFFFFFFFF); } if ( v8 == 1 ) (*(void ( **)(volatile signed __int32 *, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, 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((char *)(a2 + i)); 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(a2 + i); std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::pair( a2 + i, a3 + i); } std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::resize( a1, 0xAAAAAAAAAAAAAAABLL * ((long long)(i + a2 + 96 * v11 - *a1) >> 5) - v11); return *a1 + a2 - v10; } return v3; }
erase: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RSI CMP RSI,RDX JZ 0x001ea399 MOV R15,RDX MOV RBX,RDI MOV RAX,RDX SUB RAX,R14 SAR RAX,0x5 MOV RCX,-0x5555555555555555 IMUL RAX,RCX MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RDI] MOV qword ptr [RSP + 0x8],RAX XOR EBP,EBP LAB_001ea2a7: LEA R12,[R15 + RBP*0x1] CMP R12,qword ptr [RBX + 0x8] JZ 0x001ea358 LEA R13,[R14 + RBP*0x1] ADD R13,0x50 MOV RDI,R13 XOR ESI,ESI CALL 0x00184452 MOV RDI,R13 CALL 0x00188b6c LEA RDI,[R14 + RBP*0x1] ADD RDI,0x48 CALL 0x0016fad6 LEA RDI,[R14 + RBP*0x1] ADD RDI,0x38 CALL 0x0016fad6 LEA R13,[R14 + RBP*0x1] ADD R13,0x28 MOV RDI,R13 CALL 0x0016fad6 MOV RDI,qword ptr [R13 + -0x10] TEST RDI,RDI JZ 0x001ea32e MOV RAX,qword ptr [0x00260f98] CMP byte ptr [RAX],0x0 JZ 0x001ea319 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001ea323 LAB_001ea319: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001ea323: CMP EAX,0x1 JNZ 0x001ea32e MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001ea32e: LEA R13,[R14 + RBP*0x1] MOV RDI,R13 XOR ESI,ESI CALL 0x00184452 MOV RDI,R13 CALL 0x00188b6c MOV RDI,R13 MOV RSI,R12 CALL 0x001ea3ac ADD RBP,0x60 JMP 0x001ea2a7 LAB_001ea358: MOV R15,R14 SUB R15,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x10] LEA RSI,[RAX + RAX*0x2] SHL RSI,0x5 ADD RSI,R14 SUB RSI,qword ptr [RBX] ADD RSI,RBP SAR RSI,0x5 MOV RCX,-0x5555555555555555 IMUL RSI,RCX SUB RSI,RAX MOV RDI,RBX CALL 0x001ea438 ADD R15,qword ptr [RBX] MOV R14,R15 LAB_001ea399: MOV RAX,R14 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > >::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > > >, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > > >) */ long __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::erase(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *this,long param_2,long param_3) { int *piVar1; long lVar2; long *plVar3; int iVar4; long lVar5; long lVar6; data *pdVar7; if (param_2 != param_3) { lVar5 = param_3 - param_2 >> 5; lVar2 = *(long *)this; for (lVar6 = 0; (pair *)(param_3 + lVar6) != *(pair **)(this + 8); lVar6 = lVar6 + 0x60) { pdVar7 = (data *)(param_2 + lVar6 + 0x50); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(pdVar7,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(pdVar7); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(param_2 + lVar6 + 0x48)); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(param_2 + lVar6 + 0x38)); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(param_2 + lVar6 + 0x28)); plVar3 = *(long **)(param_2 + lVar6 + 0x18); if (plVar3 != (long *)0x0) { if (*PTR___libc_single_threaded_00260f98 == '\0') { LOCK(); piVar1 = (int *)((long)plVar3 + 0xc); iVar4 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar4 = *(int *)((long)plVar3 + 0xc); *(int *)((long)plVar3 + 0xc) = iVar4 + -1; } if (iVar4 == 1) { (**(code **)(*plVar3 + 0x18))(); } } pdVar7 = (data *)(param_2 + lVar6); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(pdVar7,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(pdVar7); std:: pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> ::pair((pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> *)pdVar7,(pair *)(param_3 + lVar6)); } std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::resize((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this,(((lVar5 * 0x20 + param_2) - *(long *)this) + lVar6 >> 5) * -0x5555555555555555 + lVar5 * 0x5555555555555555); param_2 = (param_2 - lVar2) + *(long *)this; } return param_2; }
38,966
my_uni_ucs2
eloqsql/strings/ctype-ucs2.c
static int my_uni_ucs2(CHARSET_INFO *cs __attribute__((unused)) , my_wc_t wc, uchar *r, uchar *e) { if ( r+2 > e ) return MY_CS_TOOSMALL2; if (wc > 0xFFFF) /* UCS2 does not support characters outside BMP */ return MY_CS_ILUNI; r[0]= (uchar) (wc >> 8); r[1]= (uchar) (wc & 0xFF); return 2; }
O3
c
my_uni_ucs2: pushq %rbp movq %rsp, %rbp leaq 0x2(%rdx), %rdi movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %rdi ja 0x69438 xorl %eax, %eax cmpq $0xffff, %rsi # imm = 0xFFFF ja 0x69438 rolw $0x8, %si movw %si, (%rdx) movl $0x2, %eax popq %rbp retq
my_uni_ucs2: push rbp mov rbp, rsp lea rdi, [rdx+2] mov eax, 0FFFFFF9Ah cmp rdi, rcx ja short loc_69438 xor eax, eax cmp rsi, 0FFFFh ja short loc_69438 rol si, 8 mov [rdx], si mov eax, 2 loc_69438: pop rbp retn
long long my_uni_ucs2(long long a1, unsigned long long a2, _WORD *a3, unsigned long long a4) { long long result; // rax result = 4294967194LL; if ( (unsigned long long)(a3 + 1) <= a4 ) { result = 0LL; if ( a2 <= 0xFFFF ) { *a3 = __ROL2__(a2, 8); return 2LL; } } return result; }
my_uni_ucs2: PUSH RBP MOV RBP,RSP LEA RDI,[RDX + 0x2] MOV EAX,0xffffff9a CMP RDI,RCX JA 0x00169438 XOR EAX,EAX CMP RSI,0xffff JA 0x00169438 ROL SI,0x8 MOV word ptr [RDX],SI MOV EAX,0x2 LAB_00169438: POP RBP RET
int8 my_uni_ucs2(int8 param_1,ulong param_2,ushort *param_3,ushort *param_4) { int8 uVar1; uVar1 = 0xffffff9a; if ((param_3 + 1 <= param_4) && (uVar1 = 0, param_2 < 0x10000)) { *param_3 = (ushort)param_2 << 8 | (ushort)param_2 >> 8; uVar1 = 2; } return uVar1; }
38,967
my_realpath
eloqsql/mysys/my_symlink.c
int my_realpath(char *to, const char *filename, myf MyFlags) { #if defined(HAVE_REALPATH) && !defined(HAVE_BROKEN_REALPATH) int result=0; char buff[BUFF_LEN]; char *ptr; DBUG_ENTER("my_realpath"); DBUG_PRINT("info",("executing realpath")); if ((ptr=realpath(filename,buff))) strmake(to, ptr, FN_REFLEN-1); else { /* Realpath didn't work; Use my_load_path() which is a poor substitute original name but will at least be able to resolve paths that starts with '.'. */ if (MyFlags) DBUG_PRINT("error",("realpath failed with errno: %d", errno)); my_errno=errno; if (MyFlags & MY_WME) my_error(EE_REALPATH, MYF(0), filename, my_errno); my_load_path(to, filename, NullS); if (my_errno == ENOENT) result= 1; else result= -1; } DBUG_RETURN(result); #elif defined(_WIN32) int ret= GetFullPathName(filename,FN_REFLEN, to, NULL); if (ret == 0 || ret > FN_REFLEN) { my_errno= (ret > FN_REFLEN) ? ENAMETOOLONG : GetLastError(); if (MyFlags & MY_WME) my_error(EE_REALPATH, MYF(0), filename, my_errno); /* GetFullPathName didn't work : use my_load_path() which is a poor substitute original name but will at least be able to resolve paths that starts with '.'. */ my_load_path(to, filename, NullS); return -1; } #else my_load_path(to, filename, NullS); #endif return 0; }
O0
c
my_realpath: pushq %rbp movq %rsp, %rbp subq $0x1060, %rsp # imm = 0x1060 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x1020(%rbp) movq %rsi, -0x1028(%rbp) movq %rdx, -0x1030(%rbp) movl $0x0, -0x1034(%rbp) jmp 0x5bcc9 movq -0x1028(%rbp), %rdi leaq -0x1010(%rbp), %rsi callq 0x26100 movq %rax, -0x1040(%rbp) cmpq $0x0, %rax je 0x5bd06 movq -0x1020(%rbp), %rdi movq -0x1040(%rbp), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0xae060 jmp 0x5bda6 cmpq $0x0, -0x1030(%rbp) je 0x5bd16 jmp 0x5bd12 jmp 0x5bd14 jmp 0x5bd16 callq 0x26050 movl (%rax), %eax movl %eax, -0x1044(%rbp) callq 0x5c640 movl -0x1044(%rbp), %ecx movl %ecx, (%rax) movq -0x1030(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0x5bd6d movq -0x1028(%rbp), %rax movq %rax, -0x1050(%rbp) callq 0x5c640 movq -0x1050(%rbp), %rdx movl (%rax), %ecx movl $0x1a, %edi xorl %eax, %eax movl %eax, %esi movb $0x0, %al callq 0x66b20 movq -0x1020(%rbp), %rdi movq -0x1028(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0x65920 callq 0x5c640 cmpl $0x2, (%rax) jne 0x5bd9a movl $0x1, -0x1034(%rbp) jmp 0x5bda4 movl $0xffffffff, -0x1034(%rbp) # imm = 0xFFFFFFFF jmp 0x5bda6 jmp 0x5bda8 movl -0x1034(%rbp), %eax movl %eax, -0x1014(%rbp) movl -0x1014(%rbp), %eax movl %eax, -0x1054(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x5bde1 movl -0x1054(%rbp), %eax addq $0x1060, %rsp # imm = 0x1060 popq %rbp retq callq 0x26370 nopw %cs:(%rax,%rax)
my_realpath: push rbp mov rbp, rsp sub rsp, 1060h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_1020], rdi mov [rbp+var_1028], rsi mov [rbp+var_1030], rdx mov [rbp+var_1034], 0 jmp short $+2 loc_5BCC9: mov rdi, [rbp+var_1028] lea rsi, [rbp+var_1010] call _realpath mov [rbp+var_1040], rax cmp rax, 0 jz short loc_5BD06 mov rdi, [rbp+var_1020] mov rsi, [rbp+var_1040] mov edx, 1FFh call strmake jmp loc_5BDA6 loc_5BD06: cmp [rbp+var_1030], 0 jz short loc_5BD16 jmp short $+2 loc_5BD12: jmp short $+2 loc_5BD14: jmp short $+2 loc_5BD16: call ___errno_location mov eax, [rax] mov [rbp+var_1044], eax call _my_thread_var mov ecx, [rbp+var_1044] mov [rax], ecx mov rax, [rbp+var_1030] and rax, 10h cmp rax, 0 jz short loc_5BD6D mov rax, [rbp+var_1028] mov [rbp+var_1050], rax call _my_thread_var mov rdx, [rbp+var_1050] mov ecx, [rax] mov edi, 1Ah xor eax, eax mov esi, eax mov al, 0 call my_error loc_5BD6D: mov rdi, [rbp+var_1020] mov rsi, [rbp+var_1028] xor eax, eax mov edx, eax call my_load_path call _my_thread_var cmp dword ptr [rax], 2 jnz short loc_5BD9A mov [rbp+var_1034], 1 jmp short loc_5BDA4 loc_5BD9A: mov [rbp+var_1034], 0FFFFFFFFh loc_5BDA4: jmp short $+2 loc_5BDA6: jmp short $+2 loc_5BDA8: mov eax, [rbp+var_1034] mov [rbp+var_1014], eax mov eax, [rbp+var_1014] mov [rbp+var_1054], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_5BDE1 mov eax, [rbp+var_1054] add rsp, 1060h pop rbp retn loc_5BDE1: call ___stack_chk_fail
long long my_realpath(long long a1, long long a2, char a3) { _DWORD *v3; // rax int v4; // r8d int v5; // r9d long long v7; // [rsp+1Ch] [rbp-1044h] long long v8; // [rsp+20h] [rbp-1040h] unsigned int v9; // [rsp+2Ch] [rbp-1034h] _BYTE v11[4104]; // [rsp+50h] [rbp-1010h] BYREF unsigned long long v12; // [rsp+1058h] [rbp-8h] v12 = __readfsqword(0x28u); v9 = 0; v8 = realpath(a2, v11); if ( v8 ) { strmake(a1, v8, 511LL); } else { v7 = *(unsigned int *)__errno_location(); *(_DWORD *)my_thread_var() = v7; if ( (a3 & 0x10) != 0 ) { v3 = (_DWORD *)my_thread_var(); my_error(26, 0, a2, *v3, v4, v5); } my_load_path(a1, a2, 0LL); if ( *(_DWORD *)my_thread_var() == 2 ) return 1; else return (unsigned int)-1; } return v9; }
my_realpath: PUSH RBP MOV RBP,RSP SUB RSP,0x1060 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x1020],RDI MOV qword ptr [RBP + -0x1028],RSI MOV qword ptr [RBP + -0x1030],RDX MOV dword ptr [RBP + -0x1034],0x0 JMP 0x0015bcc9 LAB_0015bcc9: MOV RDI,qword ptr [RBP + -0x1028] LEA RSI,[RBP + -0x1010] CALL 0x00126100 MOV qword ptr [RBP + -0x1040],RAX CMP RAX,0x0 JZ 0x0015bd06 MOV RDI,qword ptr [RBP + -0x1020] MOV RSI,qword ptr [RBP + -0x1040] MOV EDX,0x1ff CALL 0x001ae060 JMP 0x0015bda6 LAB_0015bd06: CMP qword ptr [RBP + -0x1030],0x0 JZ 0x0015bd16 JMP 0x0015bd12 LAB_0015bd12: JMP 0x0015bd14 LAB_0015bd14: JMP 0x0015bd16 LAB_0015bd16: CALL 0x00126050 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x1044],EAX CALL 0x0015c640 MOV ECX,dword ptr [RBP + -0x1044] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x1030] AND RAX,0x10 CMP RAX,0x0 JZ 0x0015bd6d MOV RAX,qword ptr [RBP + -0x1028] MOV qword ptr [RBP + -0x1050],RAX CALL 0x0015c640 MOV RDX,qword ptr [RBP + -0x1050] MOV ECX,dword ptr [RAX] MOV EDI,0x1a XOR EAX,EAX MOV ESI,EAX MOV AL,0x0 CALL 0x00166b20 LAB_0015bd6d: MOV RDI,qword ptr [RBP + -0x1020] MOV RSI,qword ptr [RBP + -0x1028] XOR EAX,EAX MOV EDX,EAX CALL 0x00165920 CALL 0x0015c640 CMP dword ptr [RAX],0x2 JNZ 0x0015bd9a MOV dword ptr [RBP + -0x1034],0x1 JMP 0x0015bda4 LAB_0015bd9a: MOV dword ptr [RBP + -0x1034],0xffffffff LAB_0015bda4: JMP 0x0015bda6 LAB_0015bda6: JMP 0x0015bda8 LAB_0015bda8: MOV EAX,dword ptr [RBP + -0x1034] MOV dword ptr [RBP + -0x1014],EAX MOV EAX,dword ptr [RBP + -0x1014] MOV dword ptr [RBP + -0x1054],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0015bde1 MOV EAX,dword ptr [RBP + -0x1054] ADD RSP,0x1060 POP RBP RET LAB_0015bde1: CALL 0x00126370
int4 my_realpath(int8 param_1,char *param_2,ulong param_3) { int iVar1; char *pcVar2; int *piVar3; int4 *puVar4; long in_FS_OFFSET; int4 local_103c; char local_1018 [4104]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_103c = 0; pcVar2 = realpath(param_2,local_1018); if (pcVar2 == (char *)0x0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; if ((param_3 & 0x10) != 0) { puVar4 = (int4 *)_my_thread_var(); my_error(0x1a,0,param_2,*puVar4); } my_load_path(param_1,param_2,0); piVar3 = (int *)_my_thread_var(); if (*piVar3 == 2) { local_103c = 1; } else { local_103c = 0xffffffff; } } else { strmake(param_1,pcVar2,0x1ff); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_103c; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
38,968
nglog::(anonymous namespace)::LogFileObject::SetBasename(char const*)
ng-log[P]ng-log/src/logging.cc
void LogFileObject::SetBasename(const char* basename) { std::lock_guard<std::mutex> l{mutex_}; base_filename_selected_ = true; if (base_filename_ != basename) { // Get rid of old log file since we are changing names if (file_ != nullptr) { file_ = nullptr; rollover_attempt_ = kRolloverAttemptFrequency - 1; } base_filename_ = basename; } }
O0
cpp
nglog::(anonymous namespace)::LogFileObject::SetBasename(char const*): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rsi movq %rsi, -0x30(%rbp) addq $0x8, %rsi leaq -0x18(%rbp), %rdi callq 0x2e340 movq -0x30(%rbp), %rdi movb $0x1, 0x30(%rdi) addq $0x38, %rdi movq -0x10(%rbp), %rsi callq 0x27d40 movb %al, -0x25(%rbp) jmp 0x390cf movb -0x25(%rbp), %al testb $0x1, %al jne 0x390d8 jmp 0x39142 movq -0x30(%rbp), %rdi addq $0x98, %rdi xorl %eax, %eax movl %eax, %esi callq 0x28630 testb $0x1, %al jne 0x390f2 jmp 0x3912d movq -0x30(%rbp), %rdi addq $0x98, %rdi xorl %eax, %eax movl %eax, %esi callq 0x3b9b0 movq -0x30(%rbp), %rax movl $0x1f, 0xb0(%rax) jmp 0x3912d movq %rax, %rcx movl %edx, %eax movq %rcx, -0x20(%rbp) movl %eax, -0x24(%rbp) leaq -0x18(%rbp), %rdi callq 0x2e370 jmp 0x39151 movq -0x30(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x38, %rdi callq 0xaba0 jmp 0x39140 jmp 0x39142 leaq -0x18(%rbp), %rdi callq 0x2e370 addq $0x30, %rsp popq %rbp retq movq -0x20(%rbp), %rdi callq 0xaf50 nopw (%rax,%rax)
_ZN5nglog12_GLOBAL__N_113LogFileObject11SetBasenameEPKc: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rsi, [rbp+var_8] mov [rbp+var_30], rsi add rsi, 8 lea rdi, [rbp+var_18] call _ZNSt10lock_guardISt5mutexEC2ERS0_; std::lock_guard<std::mutex>::lock_guard(std::mutex&) mov rdi, [rbp+var_30] mov byte ptr [rdi+30h], 1 add rdi, 38h ; '8' mov rsi, [rbp+var_10] call _ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator!=<char>(std::string const&,char const*) mov [rbp+var_25], al jmp short $+2 loc_390CF: mov al, [rbp+var_25] test al, 1 jnz short loc_390D8 jmp short loc_39142 loc_390D8: mov rdi, [rbp+var_30] add rdi, 98h xor eax, eax mov esi, eax call _ZStneI8_IO_FILESt14default_deleteIS0_EEbRKSt10unique_ptrIT_T0_EDn; std::operator!=<_IO_FILE,std::default_delete<_IO_FILE>>(std::unique_ptr<_IO_FILE> const&,decltype(nullptr)) test al, 1 jnz short loc_390F2 jmp short loc_3912D loc_390F2: mov rdi, [rbp+var_30] add rdi, 98h xor eax, eax mov esi, eax call _ZNSt10unique_ptrI8_IO_FILESt14default_deleteIS0_EEaSEDn; std::unique_ptr<_IO_FILE>::operator=(decltype(nullptr)) mov rax, [rbp+var_30] mov dword ptr [rax+0B0h], 1Fh jmp short loc_3912D mov rcx, rax mov eax, edx mov [rbp+var_20], rcx mov [rbp+var_24], eax lea rdi, [rbp+var_18] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() jmp short loc_39151 loc_3912D: mov rdi, [rbp+var_30] mov rsi, [rbp+var_10] add rdi, 38h ; '8' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*) jmp short $+2 loc_39140: jmp short $+2 loc_39142: lea rdi, [rbp+var_18] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() add rsp, 30h pop rbp retn loc_39151: mov rdi, [rbp+var_20] call __Unwind_Resume
long long nglog::`anonymous namespace'::LogFileObject::SetBasename( nglog::_anonymous_namespace_::LogFileObject *this, const char *a2) { std::mutex *v3; // [rsp+18h] [rbp-18h] BYREF const char *v4; // [rsp+20h] [rbp-10h] nglog::_anonymous_namespace_::LogFileObject *v5; // [rsp+28h] [rbp-8h] v5 = this; v4 = a2; std::lock_guard<std::mutex>::lock_guard(&v3, (nglog::_anonymous_namespace_::LogFileObject *)((char *)this + 8)); *((_BYTE *)this + 48) = 1; if ( std::operator!=<char>((long long)this + 56, (long long)v4) ) { if ( (std::operator!=<_IO_FILE,std::default_delete<_IO_FILE>>((long long)this + 152) & 1) != 0 ) { std::unique_ptr<_IO_FILE>::operator=((char *)this + 152, 0LL); *((_DWORD *)this + 44) = 31; } std::string::operator=((char *)this + 56, v4); } return std::lock_guard<std::mutex>::~lock_guard(&v3); }
SetBasename: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RSI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x30],RSI ADD RSI,0x8 LEA RDI,[RBP + -0x18] CALL 0x0012e340 MOV RDI,qword ptr [RBP + -0x30] MOV byte ptr [RDI + 0x30],0x1 ADD RDI,0x38 MOV RSI,qword ptr [RBP + -0x10] LAB_001390c5: CALL 0x00127d40 MOV byte ptr [RBP + -0x25],AL JMP 0x001390cf LAB_001390cf: MOV AL,byte ptr [RBP + -0x25] TEST AL,0x1 JNZ 0x001390d8 JMP 0x00139142 LAB_001390d8: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x98 XOR EAX,EAX MOV ESI,EAX CALL 0x00128630 TEST AL,0x1 JNZ 0x001390f2 JMP 0x0013912d LAB_001390f2: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x98 XOR EAX,EAX MOV ESI,EAX CALL 0x0013b9b0 MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX + 0xb0],0x1f JMP 0x0013912d LAB_0013912d: MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x10] ADD RDI,0x38 CALL 0x0010aba0 LAB_0013913e: JMP 0x00139140 LAB_00139140: JMP 0x00139142 LAB_00139142: LEA RDI,[RBP + -0x18] CALL 0x0012e370 ADD RSP,0x30 POP RBP RET
/* nglog::(anonymous namespace)::LogFileObject::SetBasename(char const*) */ void __thiscall nglog::(anonymous_namespace)::LogFileObject::SetBasename(LogFileObject *this,char *param_1) { bool bVar1; lock_guard<std::mutex> local_20 [8]; char *local_18; LogFileObject *local_10; local_18 = param_1; local_10 = this; std::lock_guard<std::mutex>::lock_guard(local_20,(mutex *)(this + 8)); this[0x30] = (LogFileObject)0x1; /* try { // try from 001390c5 to 0013913d has its CatchHandler @ 00139116 */ bVar1 = std::operator!=((string *)(this + 0x38),local_18); if (bVar1) { bVar1 = std::operator!=((unique_ptr *)(this + 0x98),(_func_decltype_nullptr *)0x0); if (bVar1) { std::unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>>::operator= ((unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>> *)(this + 0x98), (_func_decltype_nullptr *)0x0); *(int4 *)(this + 0xb0) = 0x1f; } std::__cxx11::string::operator=((string *)(this + 0x38),local_18); } std::lock_guard<std::mutex>::~lock_guard(local_20); return; }
38,969
LefDefParser::defrAddAlias(char const*, char const*, int)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defrReader.cpp
void defrAddAlias(const char *key, const char *value, int marked) { // Since the alias data is stored in the hash table, the hash table // only takes the key and the data, the marked data will be stored // at the end of the value data defrData *defData = defContext.data ; char *k1; char *v1; int len = strlen(key) + 1; k1 = (char*) malloc(len); strcpy(k1, key); len = strlen(value) + 1 + 1; // 1 for the marked v1 = (char*) malloc(len); //strcpy(v1, value); if (marked != 0) marked = 1; // make sure only 1 digit sprintf(v1, "%d%s", marked, value); defData->def_alias_set[k1] = v1; }
O0
cpp
LefDefParser::defrAddAlias(char const*, char const*, int): subq $0x98, %rsp movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movl %edx, 0x64(%rsp) leaq 0x70b44(%rip), %rax # 0x932f0 movq 0x18(%rax), %rax movq %rax, 0x58(%rsp) movq 0x70(%rsp), %rdi callq 0x70e0 addq $0x1, %rax movl %eax, 0x44(%rsp) movslq 0x44(%rsp), %rdi callq 0x72d0 movq %rax, 0x50(%rsp) movq 0x50(%rsp), %rdi movq 0x70(%rsp), %rsi callq 0x7220 movq 0x68(%rsp), %rdi callq 0x70e0 addq $0x1, %rax addq $0x1, %rax movl %eax, 0x44(%rsp) movslq 0x44(%rsp), %rdi callq 0x72d0 movq %rax, 0x48(%rsp) cmpl $0x0, 0x64(%rsp) je 0x22819 movl $0x1, 0x64(%rsp) movq 0x48(%rsp), %rdi movl 0x64(%rsp), %edx movq 0x68(%rsp), %rcx leaq 0x5195b(%rip), %rsi # 0x74189 xorl %eax, %eax callq 0x7060 movq 0x48(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x58(%rsp), %rax addq $0x1e8, %rax # imm = 0x1E8 movq %rax, 0x18(%rsp) movq 0x50(%rsp), %rsi leaq 0x37(%rsp), %rdx movq %rdx, 0x78(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x90(%rsp) leaq 0x38(%rsp), %rdi callq 0x22c40 jmp 0x22877 movq 0x18(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x22b50 movq %rax, 0x8(%rsp) jmp 0x2288d movq 0x10(%rsp), %rsi movq 0x8(%rsp), %rdi callq 0x7310 jmp 0x2289e leaq 0x38(%rsp), %rdi callq 0x7360 leaq 0x37(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x80(%rsp), %rdi callq 0x22f90 addq $0x98, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) jmp 0x228f2 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) leaq 0x38(%rsp), %rdi callq 0x7360 leaq 0x37(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x88(%rsp), %rdi callq 0x22f90 movq 0x28(%rsp), %rdi callq 0x73b0 nopw %cs:(%rax,%rax)
_ZN12LefDefParser12defrAddAliasEPKcS1_i: sub rsp, 98h mov [rsp+98h+var_28], rdi mov [rsp+98h+var_30], rsi mov [rsp+98h+var_34], edx lea rax, _ZN12LefDefParser10defContextE; LefDefParser::defContext mov rax, [rax+18h] mov [rsp+98h+var_40], rax mov rdi, [rsp+98h+var_28] call _strlen add rax, 1 mov [rsp+98h+var_54], eax movsxd rdi, [rsp+98h+var_54] call _malloc mov [rsp+98h+var_48], rax mov rdi, [rsp+98h+var_48] mov rsi, [rsp+98h+var_28] call _strcpy mov rdi, [rsp+98h+var_30] call _strlen add rax, 1 add rax, 1 mov [rsp+98h+var_54], eax movsxd rdi, [rsp+98h+var_54] call _malloc mov [rsp+98h+var_50], rax cmp [rsp+98h+var_34], 0 jz short loc_22819 mov [rsp+98h+var_34], 1 loc_22819: mov rdi, [rsp+98h+var_50] mov edx, [rsp+98h+var_34] mov rcx, [rsp+98h+var_30] lea rsi, aDS; "%d%s" xor eax, eax call _sprintf mov rax, [rsp+98h+var_50] mov [rsp+98h+var_88], rax mov rax, [rsp+98h+var_40] add rax, 1E8h mov [rsp+98h+var_80], rax mov rsi, [rsp+98h+var_48] lea rdx, [rsp+98h+var_61] mov [rsp+98h+var_20], rdx mov rax, [rsp+98h+var_20] mov [rsp+98h+var_8], rax lea rdi, [rsp+98h+var_60] call _ZNSsC2ISaIcEEEPKcRKS0_; std::string::string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_22877: mov rdi, [rsp+98h+var_80] lea rsi, [rsp+98h+var_60] call _ZNSt3mapISsSsN12LefDefParser17defCompareStringsESaISt4pairIKSsSsEEEixEOSs; std::map<std::string,std::string,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string const,std::string>>>::operator[](std::string &&) mov [rsp+98h+var_90], rax jmp short $+2 loc_2288D: mov rsi, [rsp+98h+var_88] mov rdi, [rsp+98h+var_90] call __ZNSsaSEPKc; std::string::operator=(char const*) jmp short $+2 loc_2289E: lea rdi, [rsp+98h+var_60]; this call __ZNSsD1Ev; std::string::~string() lea rax, [rsp+98h+var_61] mov [rsp+98h+var_18], rax mov rdi, [rsp+98h+var_18] call _ZNSt15__new_allocatorIcED2Ev; std::__new_allocator<char>::~__new_allocator() add rsp, 98h retn mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax jmp short loc_228F2 mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax lea rdi, [rsp+arg_30]; this call __ZNSsD1Ev; std::string::~string() loc_228F2: lea rax, [rsp+arg_2F] mov [rsp+arg_80], rax mov rdi, [rsp+arg_80] call _ZNSt15__new_allocatorIcED2Ev; std::__new_allocator<char>::~__new_allocator() mov rdi, [rsp+arg_20] call __Unwind_Resume
long long LefDefParser::defrAddAlias(LefDefParser *this, const char *a2, const char *a3) { int v3; // eax long long v4; // rdx long long v6; // [rsp+8h] [rbp-90h] long long v7; // [rsp+10h] [rbp-88h] long long v8; // [rsp+18h] [rbp-80h] char v9; // [rsp+37h] [rbp-61h] BYREF _BYTE v10[12]; // [rsp+38h] [rbp-60h] BYREF int v11; // [rsp+44h] [rbp-54h] long long v12; // [rsp+48h] [rbp-50h] long long v13; // [rsp+50h] [rbp-48h] long long v14; // [rsp+58h] [rbp-40h] int v15; // [rsp+64h] [rbp-34h] const char *v16; // [rsp+68h] [rbp-30h] LefDefParser *v17; // [rsp+70h] [rbp-28h] char *v18; // [rsp+78h] [rbp-20h] char *v19; // [rsp+80h] [rbp-18h] char *v20; // [rsp+90h] [rbp-8h] v17 = this; v16 = a2; v15 = (int)a3; v14 = LefDefParser::defContext[3]; v3 = strlen(this); v13 = malloc(v3 + 1); strcpy(v13, this, v4); v11 = strlen(a2) + 2; v12 = malloc(v11); v15 = v15 != 0; sprintf(v12, "%d%s", v15, a2); v7 = v12; v8 = v14 + 488; v18 = &v9; v20 = &v9; std::string::string<std::allocator<char>>(v10, v13); v6 = std::map<std::string,std::string,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string const,std::string>>>::operator[]( v8, v10); std::string::operator=(v6, v7); std::string::~string((std::string *)v10); v19 = &v9; return std::__new_allocator<char>::~__new_allocator(&v9); }
defrAddAlias: SUB RSP,0x98 MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV dword ptr [RSP + 0x64],EDX LEA RAX,[0x1932f0] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x70] CALL 0x001070e0 ADD RAX,0x1 MOV dword ptr [RSP + 0x44],EAX MOVSXD RDI,dword ptr [RSP + 0x44] CALL 0x001072d0 MOV qword ptr [RSP + 0x50],RAX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x70] CALL 0x00107220 MOV RDI,qword ptr [RSP + 0x68] CALL 0x001070e0 ADD RAX,0x1 ADD RAX,0x1 MOV dword ptr [RSP + 0x44],EAX MOVSXD RDI,dword ptr [RSP + 0x44] CALL 0x001072d0 MOV qword ptr [RSP + 0x48],RAX CMP dword ptr [RSP + 0x64],0x0 JZ 0x00122819 MOV dword ptr [RSP + 0x64],0x1 LAB_00122819: MOV RDI,qword ptr [RSP + 0x48] MOV EDX,dword ptr [RSP + 0x64] MOV RCX,qword ptr [RSP + 0x68] LEA RSI,[0x174189] XOR EAX,EAX CALL 0x00107060 MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x58] ADD RAX,0x1e8 MOV qword ptr [RSP + 0x18],RAX MOV RSI,qword ptr [RSP + 0x50] LEA RDX,[RSP + 0x37] MOV qword ptr [RSP + 0x78],RDX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x90],RAX LAB_0012286b: LEA RDI,[RSP + 0x38] CALL 0x00122c40 JMP 0x00122877 LAB_00122877: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[RSP + 0x38] CALL 0x00122b50 MOV qword ptr [RSP + 0x8],RAX JMP 0x0012288d LAB_0012288d: MOV RSI,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x8] CALL 0x00107310 LAB_0012289c: JMP 0x0012289e LAB_0012289e: LEA RDI,[RSP + 0x38] CALL 0x00107360 LEA RAX,[RSP + 0x37] MOV qword ptr [RSP + 0x80],RAX MOV RDI,qword ptr [RSP + 0x80] CALL 0x00122f90 ADD RSP,0x98 RET
/* LefDefParser::defrAddAlias(char const*, char const*, int) */ void LefDefParser::defrAddAlias(char *param_1,char *param_2,int param_3) { char *pcVar1; size_t sVar2; map<std::string,std::string,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string_const,std::string>>> *this; string *this_00; allocator local_61; string local_60 [12]; int local_54; char *local_50; char *local_48; long local_40; uint local_34; char *local_30; char *local_28; allocator *local_20; __new_allocator<char> *local_18; allocator *local_8; local_40 = DAT_00193308; local_34 = param_3; local_30 = param_2; local_28 = param_1; sVar2 = strlen(param_1); local_54 = (int)sVar2 + 1; local_48 = (char *)malloc((long)local_54); strcpy(local_48,local_28); sVar2 = strlen(local_30); local_54 = (int)sVar2 + 2; local_50 = (char *)malloc((long)local_54); if (local_34 != 0) { local_34 = 1; } sprintf(local_50,"%d%s",(ulong)local_34,local_30); pcVar1 = local_50; this = (map<std::string,std::string,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string_const,std::string>>> *)(local_40 + 0x1e8); local_20 = &local_61; /* try { // try from 0012286b to 00122874 has its CatchHandler @ 001228ca */ local_8 = local_20; std::string::string<std::allocator<char>>(local_60,local_48,local_20); /* try { // try from 00122877 to 0012289b has its CatchHandler @ 001228da */ this_00 = (string *) std:: map<std::string,std::string,LefDefParser::defCompareStrings,std::allocator<std::pair<std::string_const,std::string>>> ::operator[](this,local_60); std::string::operator=(this_00,pcVar1); std::string::~string(local_60); local_18 = (__new_allocator<char> *)&local_61; std::__new_allocator<char>::~__new_allocator(local_18); return; }
38,970
my_coll_lexem_num_to_str
eloqsql/strings/ctype-uca.c
static const char * my_coll_lexem_num_to_str(my_coll_lexem_num term) { switch (term) { case MY_COLL_LEXEM_EOF: return "EOF"; case MY_COLL_LEXEM_SHIFT: return "Shift"; case MY_COLL_LEXEM_RESET: return "&"; case MY_COLL_LEXEM_CHAR: return "Character"; case MY_COLL_LEXEM_OPTION: return "Bracket option"; case MY_COLL_LEXEM_EXTEND: return "/"; case MY_COLL_LEXEM_CONTEXT:return "|"; case MY_COLL_LEXEM_ERROR: return "ERROR"; } return NULL; }
O0
c
my_coll_lexem_num_to_str: pushq %rbp movq %rsp, %rbp movl %edi, -0xc(%rbp) movl -0xc(%rbp), %eax movq %rax, -0x18(%rbp) subq $0x9, %rax ja 0x50070 movq -0x18(%rbp), %rax leaq 0xf1ed5(%rip), %rcx # 0x141ed4 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x2bdcf(%rip), %rax # 0x7bdde movq %rax, -0x8(%rbp) jmp 0x50078 leaq 0x2bdc6(%rip), %rax # 0x7bde2 movq %rax, -0x8(%rbp) jmp 0x50078 leaq 0x2c143(%rip), %rax # 0x7c16c movq %rax, -0x8(%rbp) jmp 0x50078 leaq 0x2bdb2(%rip), %rax # 0x7bde8 movq %rax, -0x8(%rbp) jmp 0x50078 leaq 0x2bdaf(%rip), %rax # 0x7bdf2 movq %rax, -0x8(%rbp) jmp 0x50078 leaq 0x2a47e(%rip), %rax # 0x7a4ce movq %rax, -0x8(%rbp) jmp 0x50078 leaq 0x2bda4(%rip), %rax # 0x7be01 movq %rax, -0x8(%rbp) jmp 0x50078 leaq 0x2bd99(%rip), %rax # 0x7be03 movq %rax, -0x8(%rbp) jmp 0x50078 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nop
my_coll_lexem_num_to_str: push rbp mov rbp, rsp mov [rbp+var_C], edi mov eax, [rbp+var_C] mov [rbp+var_18], rax sub rax, 9; switch 10 cases ja short def_50006; jumptable 0000000000050006 default case, cases 2,3 mov rax, [rbp+var_18] lea rcx, jpt_50006 movsxd rax, ds:(jpt_50006 - 141ED4h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_50008: lea rax, aEof; jumptable 0000000000050006 case 0 mov [rbp+var_8], rax jmp short loc_50078 loc_50015: lea rax, aShift; jumptable 0000000000050006 case 1 mov [rbp+var_8], rax jmp short loc_50078 loc_50022: lea rax, asc_7C16B+1; jumptable 0000000000050006 case 4 mov [rbp+var_8], rax jmp short loc_50078 loc_5002F: lea rax, aCharacter; jumptable 0000000000050006 case 5 mov [rbp+var_8], rax jmp short loc_50078 loc_5003C: lea rax, aBracketOption; jumptable 0000000000050006 case 7 mov [rbp+var_8], rax jmp short loc_50078 loc_50049: lea rax, unk_7A4CE; jumptable 0000000000050006 case 8 mov [rbp+var_8], rax jmp short loc_50078 loc_50056: lea rax, asc_7BE01; jumptable 0000000000050006 case 9 mov [rbp+var_8], rax jmp short loc_50078 loc_50063: lea rax, aError; jumptable 0000000000050006 case 6 mov [rbp+var_8], rax jmp short loc_50078 def_50006: mov [rbp+var_8], 0; jumptable 0000000000050006 default case, cases 2,3 loc_50078: mov rax, [rbp+var_8] pop rbp retn
char * my_coll_lexem_num_to_str(int a1) { char *v2; // [rsp+10h] [rbp-8h] switch ( a1 ) { case 0: v2 = "EOF"; break; case 1: v2 = "Shift"; break; case 4: v2 = "&"; break; case 5: v2 = "Character"; break; case 6: v2 = "ERROR"; break; case 7: v2 = "Bracket option"; break; case 8: v2 = (char *)&unk_7A4CE; break; case 9: v2 = "|"; break; default: v2 = 0LL; break; } return v2; }
my_coll_lexem_num_to_str: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0xc],EDI MOV EAX,dword ptr [RBP + -0xc] MOV qword ptr [RBP + -0x18],RAX SUB RAX,0x9 JA 0x00150070 MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x241ed4] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RAX,[0x17bdde] MOV qword ptr [RBP + -0x8],RAX JMP 0x00150078 caseD_1: LEA RAX,[0x17bde2] MOV qword ptr [RBP + -0x8],RAX JMP 0x00150078 caseD_4: LEA RAX,[0x17c16c] MOV qword ptr [RBP + -0x8],RAX JMP 0x00150078 caseD_5: LEA RAX,[0x17bde8] MOV qword ptr [RBP + -0x8],RAX JMP 0x00150078 caseD_7: LEA RAX,[0x17bdf2] MOV qword ptr [RBP + -0x8],RAX JMP 0x00150078 caseD_8: LEA RAX,[0x17a4ce] MOV qword ptr [RBP + -0x8],RAX JMP 0x00150078 caseD_9: LEA RAX,[0x17be01] MOV qword ptr [RBP + -0x8],RAX JMP 0x00150078 caseD_6: LEA RAX,[0x17be03] MOV qword ptr [RBP + -0x8],RAX JMP 0x00150078 caseD_2: MOV qword ptr [RBP + -0x8],0x0 LAB_00150078: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
char * my_coll_lexem_num_to_str(int4 param_1) { char *local_10; switch(param_1) { case 0: local_10 = "EOF"; break; case 1: local_10 = "Shift"; break; default: local_10 = (char *)0x0; break; case 4: local_10 = "&"; break; case 5: local_10 = "Character"; break; case 6: local_10 = "ERROR"; break; case 7: local_10 = "Bracket option"; break; case 8: local_10 = "/"; break; case 9: local_10 = "|"; } return local_10; }
38,971
httplib::detail::keep_alive(int, long)
nickolajgrishuk[P]metricz-cpp/build_O0/_deps/httplib-src/httplib.h
inline bool keep_alive(socket_t sock, time_t keep_alive_timeout_sec) { using namespace std::chrono; auto start = steady_clock::now(); while (true) { auto val = select_read(sock, 0, 10000); if (val < 0) { return false; } else if (val == 0) { auto current = steady_clock::now(); auto duration = duration_cast<milliseconds>(current - start); auto timeout = keep_alive_timeout_sec * 1000; if (duration.count() > timeout) { return false; } std::this_thread::sleep_for(std::chrono::milliseconds(1)); } else { return true; } } }
O0
c
httplib::detail::keep_alive(int, long): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) callq 0xab90 movq %rax, -0x18(%rbp) movl -0x8(%rbp), %edi xorl %eax, %eax movl %eax, %esi movl $0x2710, %edx # imm = 0x2710 callq 0x36790 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jge 0x3881a movb $0x0, -0x1(%rbp) jmp 0x38895 cmpq $0x0, -0x20(%rbp) jne 0x38888 callq 0xab90 movq %rax, -0x28(%rbp) leaq -0x28(%rbp), %rdi leaq -0x18(%rbp), %rsi callq 0x38990 movq %rax, -0x38(%rbp) leaq -0x38(%rbp), %rdi callq 0x38960 movq %rax, -0x30(%rbp) imulq $0x3e8, -0x10(%rbp), %rax # imm = 0x3E8 movq %rax, -0x40(%rbp) leaq -0x30(%rbp), %rdi callq 0x37010 cmpq -0x40(%rbp), %rax jle 0x38869 movb $0x0, -0x1(%rbp) jmp 0x38895 movl $0x1, -0x4c(%rbp) leaq -0x48(%rbp), %rdi leaq -0x4c(%rbp), %rsi callq 0x36990 leaq -0x48(%rbp), %rdi callq 0x368e0 jmp 0x3888e movb $0x1, -0x1(%rbp) jmp 0x38895 jmp 0x38890 jmp 0x387f8 movb -0x1(%rbp), %al andb $0x1, %al addq $0x50, %rsp popq %rbp retq
_ZN7httplib6detail10keep_aliveEil: push rbp mov rbp, rsp sub rsp, 50h mov dword ptr [rbp+var_8], edi mov [rbp+var_10], rsi call __ZNSt6chrono3_V212steady_clock3nowEv; std::chrono::_V2::steady_clock::now(void) mov [rbp+var_18], rax loc_387F8: mov edi, dword ptr [rbp+var_8]; this xor eax, eax mov esi, eax; int mov edx, 2710h; __int64 call _ZN7httplib6detail11select_readEill; httplib::detail::select_read(int,long,long) mov [rbp+var_20], rax cmp [rbp+var_20], 0 jge short loc_3881A mov byte ptr [rbp+var_8+7], 0 jmp short loc_38895 loc_3881A: cmp [rbp+var_20], 0 jnz short loc_38888 call __ZNSt6chrono3_V212steady_clock3nowEv; std::chrono::_V2::steady_clock::now(void) mov [rbp+var_28], rax lea rdi, [rbp+var_28] lea rsi, [rbp+var_18] call _ZNSt6chronomiINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE; std::chrono::operator-<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,std::chrono::duration<long,std::ratio<1l,1000000000l>>>(std::chrono::time_point<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,std::chrono::time_point<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&) mov [rbp+var_38], rax lea rdi, [rbp+var_38] call _ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE mov [rbp+var_30], rax imul rax, [rbp+var_10], 3E8h mov [rbp+var_40], rax lea rdi, [rbp+var_30] call _ZNKSt6chrono8durationIlSt5ratioILl1ELl1000EEE5countEv; std::chrono::duration<long,std::ratio<1l,1000l>>::count(void) cmp rax, [rbp+var_40] jle short loc_38869 mov byte ptr [rbp+var_8+7], 0 jmp short loc_38895 loc_38869: mov [rbp+var_4C], 1 lea rdi, [rbp+var_48] lea rsi, [rbp+var_4C] call _ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_; std::chrono::duration<long,std::ratio<1l,1000l>>::duration<int,void>(int const&) lea rdi, [rbp+var_48] call _ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE; std::this_thread::sleep_for<long,std::ratio<1l,1000l>>(std::chrono::duration<long,std::ratio<1l,1000l>> const&) jmp short loc_3888E loc_38888: mov byte ptr [rbp+var_8+7], 1 jmp short loc_38895 loc_3888E: jmp short $+2 loc_38890: jmp loc_387F8 loc_38895: mov al, byte ptr [rbp+var_8+7] and al, 1 add rsp, 50h pop rbp retn
char httplib::detail::keep_alive(httplib::detail *this, long long a2) { long long v2; // rcx int v3; // r8d int v4; // r9d std::chrono::_V2::steady_clock *v5; // rdi long long v6; // rax int v8; // [rsp+4h] [rbp-4Ch] BYREF long long v9; // [rsp+8h] [rbp-48h] BYREF long long v10; // [rsp+10h] [rbp-40h] long long v11; // [rsp+18h] [rbp-38h] BYREF long long v12; // [rsp+20h] [rbp-30h] BYREF long long v13; // [rsp+28h] [rbp-28h] BYREF long long v14; // [rsp+30h] [rbp-20h] long long v15; // [rsp+38h] [rbp-18h] BYREF long long v16; // [rsp+40h] [rbp-10h] unsigned int v17; // [rsp+48h] [rbp-8h] v17 = (unsigned int)this; v16 = a2; v15 = std::chrono::_V2::steady_clock::now(this); while ( 1 ) { v5 = (std::chrono::_V2::steady_clock *)v17; v14 = httplib::detail::select_read((httplib::detail *)v17, 0LL, 10000LL, v2, v3, v4); if ( v14 < 0 ) return 0; if ( v14 ) break; v13 = std::chrono::_V2::steady_clock::now(v5); v11 = std::chrono::operator-<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,std::chrono::duration<long,std::ratio<1l,1000000000l>>>( &v13, &v15); v12 = std::chrono::duration_cast<std::chrono::duration<long,std::ratio<1l,1000l>>,long,std::ratio<1l,1000000000l>>(&v11); v10 = 1000 * v16; v6 = std::chrono::duration<long,std::ratio<1l,1000l>>::count((long long)&v12); if ( v6 > v10 ) return 0; v8 = 1; std::chrono::duration<long,std::ratio<1l,1000l>>::duration<int,void>(&v9, &v8); std::this_thread::sleep_for<long,std::ratio<1l,1000l>>((long long)&v9); } return 1; }
keep_alive: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI CALL 0x0010ab90 MOV qword ptr [RBP + -0x18],RAX LAB_001387f8: MOV EDI,dword ptr [RBP + -0x8] XOR EAX,EAX MOV ESI,EAX MOV EDX,0x2710 CALL 0x00136790 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JGE 0x0013881a MOV byte ptr [RBP + -0x1],0x0 JMP 0x00138895 LAB_0013881a: CMP qword ptr [RBP + -0x20],0x0 JNZ 0x00138888 CALL 0x0010ab90 MOV qword ptr [RBP + -0x28],RAX LEA RDI,[RBP + -0x28] LEA RSI,[RBP + -0x18] CALL 0x00138990 MOV qword ptr [RBP + -0x38],RAX LEA RDI,[RBP + -0x38] CALL 0x00138960 MOV qword ptr [RBP + -0x30],RAX IMUL RAX,qword ptr [RBP + -0x10],0x3e8 MOV qword ptr [RBP + -0x40],RAX LEA RDI,[RBP + -0x30] CALL 0x00137010 CMP RAX,qword ptr [RBP + -0x40] JLE 0x00138869 MOV byte ptr [RBP + -0x1],0x0 JMP 0x00138895 LAB_00138869: MOV dword ptr [RBP + -0x4c],0x1 LEA RDI,[RBP + -0x48] LEA RSI,[RBP + -0x4c] CALL 0x00136990 LEA RDI,[RBP + -0x48] CALL 0x001368e0 JMP 0x0013888e LAB_00138888: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00138895 LAB_0013888e: JMP 0x00138890 LAB_00138890: JMP 0x001387f8 LAB_00138895: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x50 POP RBP RET
/* httplib::detail::keep_alive(int, long) */ int1 httplib::detail::keep_alive(int param_1,long param_2) { long lVar1; int local_54; duration<long,std::ratio<1l,1000l>> local_50 [8]; long local_48; int8 local_40; int8 local_38; int8 local_30; long local_28; int8 local_20; long local_18; int local_10; local_18 = param_2; local_10 = param_1; local_20 = std::chrono::_V2::steady_clock::now(); while( true ) { local_28 = select_read(local_10,0,10000); if (local_28 < 0) { return 0; } if (local_28 != 0) break; local_30 = std::chrono::_V2::steady_clock::now(); local_40 = std::chrono::operator-((time_point *)&local_30,(time_point *)&local_20); local_38 = std::chrono:: duration_cast<std::chrono::duration<long,std::ratio<1l,1000l>>,long,std::ratio<1l,1000000000l>> ((duration *)&local_40); local_48 = local_18 * 1000; lVar1 = std::chrono::duration<long,std::ratio<1l,1000l>>::count ((duration<long,std::ratio<1l,1000l>> *)&local_38); if (local_48 < lVar1) { return 0; } local_54 = 1; std::chrono::duration<long,std::ratio<1l,1000l>>::duration<int,void>(local_50,&local_54); std::this_thread::sleep_for<long,std::ratio<1l,1000l>>((duration *)local_50); } return 1; }
38,972
cs_leave
eloqsql/strings/ctype.c
static int cs_leave(MY_XML_PARSER *st,const char *attr, size_t len) { struct my_cs_file_info *i= (struct my_cs_file_info *)st->user_data; const struct my_cs_file_section_st *s= cs_file_sec(attr,len); int state= s ? s->state : 0; int rc; switch(state){ case _CS_COLLATION: if (i->tailoring_length) i->cs.tailoring= i->tailoring; rc= i->loader->add_collation ? i->loader->add_collation(&i->cs) : MY_XML_OK; break; /* Rules: Logical Reset Positions */ case _CS_RESET_FIRST_NON_IGNORABLE: rc= tailoring_append(st, "[first non-ignorable]", 0, NULL); break; case _CS_RESET_LAST_NON_IGNORABLE: rc= tailoring_append(st, "[last non-ignorable]", 0, NULL); break; case _CS_RESET_FIRST_PRIMARY_IGNORABLE: rc= tailoring_append(st, "[first primary ignorable]", 0, NULL); break; case _CS_RESET_LAST_PRIMARY_IGNORABLE: rc= tailoring_append(st, "[last primary ignorable]", 0, NULL); break; case _CS_RESET_FIRST_SECONDARY_IGNORABLE: rc= tailoring_append(st, "[first secondary ignorable]", 0, NULL); break; case _CS_RESET_LAST_SECONDARY_IGNORABLE: rc= tailoring_append(st, "[last secondary ignorable]", 0, NULL); break; case _CS_RESET_FIRST_TERTIARY_IGNORABLE: rc= tailoring_append(st, "[first tertiary ignorable]", 0, NULL); break; case _CS_RESET_LAST_TERTIARY_IGNORABLE: rc= tailoring_append(st, "[last tertiary ignorable]", 0, NULL); break; case _CS_RESET_FIRST_TRAILING: rc= tailoring_append(st, "[first trailing]", 0, NULL); break; case _CS_RESET_LAST_TRAILING: rc= tailoring_append(st, "[last trailing]", 0, NULL); break; case _CS_RESET_FIRST_VARIABLE: rc= tailoring_append(st, "[first variable]", 0, NULL); break; case _CS_RESET_LAST_VARIABLE: rc= tailoring_append(st, "[last variable]", 0, NULL); break; default: rc=MY_XML_OK; } return rc; }
O0
c
cs_leave: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq 0x140(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x74790 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) je 0x73586 movq -0x28(%rbp), %rax movl (%rax), %eax movl %eax, -0x34(%rbp) jmp 0x7358d xorl %eax, %eax movl %eax, -0x34(%rbp) jmp 0x7358d movl -0x34(%rbp), %eax movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x38(%rbp) subl $0x9, %eax je 0x73667 jmp 0x735a4 movl -0x38(%rbp), %eax subl $0x191, %eax # imm = 0x191 je 0x73714 jmp 0x735b4 movl -0x38(%rbp), %eax subl $0x192, %eax # imm = 0x192 je 0x73733 jmp 0x735c4 movl -0x38(%rbp), %eax subl $0x193, %eax # imm = 0x193 je 0x73752 jmp 0x735d4 movl -0x38(%rbp), %eax subl $0x194, %eax # imm = 0x194 je 0x73771 jmp 0x735e4 movl -0x38(%rbp), %eax subl $0x195, %eax # imm = 0x195 je 0x73790 jmp 0x735f4 movl -0x38(%rbp), %eax subl $0x196, %eax # imm = 0x196 je 0x737af jmp 0x73604 movl -0x38(%rbp), %eax subl $0x197, %eax # imm = 0x197 je 0x737cb jmp 0x73614 movl -0x38(%rbp), %eax subl $0x198, %eax # imm = 0x198 je 0x737e7 jmp 0x73624 movl -0x38(%rbp), %eax subl $0x199, %eax # imm = 0x199 je 0x73803 jmp 0x73634 movl -0x38(%rbp), %eax subl $0x19a, %eax # imm = 0x19A je 0x7381f jmp 0x73644 movl -0x38(%rbp), %eax subl $0x19b, %eax # imm = 0x19B je 0x736d6 jmp 0x73654 movl -0x38(%rbp), %eax subl $0x19c, %eax # imm = 0x19C je 0x736f5 jmp 0x7383b movq -0x20(%rbp), %rax cmpq $0x0, 0x690(%rax) je 0x7368b movq -0x20(%rbp), %rax movq 0x688(%rax), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x718(%rax) movq -0x20(%rbp), %rax movq 0x7a8(%rax), %rax cmpq $0x0, 0xa8(%rax) je 0x736c4 movq -0x20(%rbp), %rax movq 0x7a8(%rax), %rax movq 0xa8(%rax), %rax movq -0x20(%rbp), %rdi addq $0x6e0, %rdi # imm = 0x6E0 callq *%rax movl %eax, -0x3c(%rbp) jmp 0x736cb xorl %eax, %eax movl %eax, -0x3c(%rbp) jmp 0x736cb movl -0x3c(%rbp), %eax movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4e1(%rip), %rsi # 0x82bc2 xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4d8(%rip), %rsi # 0x82bd8 xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4ce(%rip), %rsi # 0x82bed xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4c9(%rip), %rsi # 0x82c07 xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4c3(%rip), %rsi # 0x82c20 xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4c0(%rip), %rsi # 0x82c3c xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4bc(%rip), %rsi # 0x82c57 xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4b8(%rip), %rsi # 0x82c72 xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4b6(%rip), %rsi # 0x82c8c xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf4ab(%rip), %rsi # 0x82c9d xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf49f(%rip), %rsi # 0x82cad xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movq -0x8(%rbp), %rdi leaq 0xf494(%rip), %rsi # 0x82cbe xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0x74820 movl %eax, -0x30(%rbp) jmp 0x73842 movl $0x0, -0x30(%rbp) movl -0x30(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopl (%rax,%rax)
cs_leave: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_8] mov rax, [rax+140h] mov [rbp+var_20], rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call cs_file_sec mov [rbp+var_28], rax cmp [rbp+var_28], 0 jz short loc_73586 mov rax, [rbp+var_28] mov eax, [rax] mov [rbp+var_34], eax jmp short loc_7358D loc_73586: xor eax, eax mov [rbp+var_34], eax jmp short $+2 loc_7358D: mov eax, [rbp+var_34] mov [rbp+var_2C], eax mov eax, [rbp+var_2C] mov [rbp+var_38], eax sub eax, 9 jz loc_73667 jmp short $+2 loc_735A4: mov eax, [rbp+var_38] sub eax, 191h jz loc_73714 jmp short $+2 loc_735B4: mov eax, [rbp+var_38] sub eax, 192h jz loc_73733 jmp short $+2 loc_735C4: mov eax, [rbp+var_38] sub eax, 193h jz loc_73752 jmp short $+2 loc_735D4: mov eax, [rbp+var_38] sub eax, 194h jz loc_73771 jmp short $+2 loc_735E4: mov eax, [rbp+var_38] sub eax, 195h jz loc_73790 jmp short $+2 loc_735F4: mov eax, [rbp+var_38] sub eax, 196h jz loc_737AF jmp short $+2 loc_73604: mov eax, [rbp+var_38] sub eax, 197h jz loc_737CB jmp short $+2 loc_73614: mov eax, [rbp+var_38] sub eax, 198h jz loc_737E7 jmp short $+2 loc_73624: mov eax, [rbp+var_38] sub eax, 199h jz loc_73803 jmp short $+2 loc_73634: mov eax, [rbp+var_38] sub eax, 19Ah jz loc_7381F jmp short $+2 loc_73644: mov eax, [rbp+var_38] sub eax, 19Bh jz loc_736D6 jmp short $+2 loc_73654: mov eax, [rbp+var_38] sub eax, 19Ch jz loc_736F5 jmp loc_7383B loc_73667: mov rax, [rbp+var_20] cmp qword ptr [rax+690h], 0 jz short loc_7368B mov rax, [rbp+var_20] mov rcx, [rax+688h] mov rax, [rbp+var_20] mov [rax+718h], rcx loc_7368B: mov rax, [rbp+var_20] mov rax, [rax+7A8h] cmp qword ptr [rax+0A8h], 0 jz short loc_736C4 mov rax, [rbp+var_20] mov rax, [rax+7A8h] mov rax, [rax+0A8h] mov rdi, [rbp+var_20] add rdi, 6E0h call rax mov [rbp+var_3C], eax jmp short loc_736CB loc_736C4: xor eax, eax mov [rbp+var_3C], eax jmp short $+2 loc_736CB: mov eax, [rbp+var_3C] mov [rbp+var_30], eax jmp loc_73842 loc_736D6: mov rdi, [rbp+var_8] lea rsi, aFirstNonIgnora; "[first non-ignorable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp loc_73842 loc_736F5: mov rdi, [rbp+var_8] lea rsi, aLastNonIgnorab; "[last non-ignorable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp loc_73842 loc_73714: mov rdi, [rbp+var_8] lea rsi, aFirstPrimaryIg; "[first primary ignorable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp loc_73842 loc_73733: mov rdi, [rbp+var_8] lea rsi, aLastPrimaryIgn; "[last primary ignorable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp loc_73842 loc_73752: mov rdi, [rbp+var_8] lea rsi, aFirstSecondary; "[first secondary ignorable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp loc_73842 loc_73771: mov rdi, [rbp+var_8] lea rsi, aLastSecondaryI; "[last secondary ignorable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp loc_73842 loc_73790: mov rdi, [rbp+var_8] lea rsi, aFirstTertiaryI; "[first tertiary ignorable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp loc_73842 loc_737AF: mov rdi, [rbp+var_8] lea rsi, aLastTertiaryIg; "[last tertiary ignorable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp short loc_73842 loc_737CB: mov rdi, [rbp+var_8] lea rsi, aFirstTrailing; "[first trailing]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp short loc_73842 loc_737E7: mov rdi, [rbp+var_8] lea rsi, aLastTrailing; "[last trailing]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp short loc_73842 loc_73803: mov rdi, [rbp+var_8] lea rsi, aFirstVariable; "[first variable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp short loc_73842 loc_7381F: mov rdi, [rbp+var_8] lea rsi, aLastVariable; "[last variable]" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_30], eax jmp short loc_73842 loc_7383B: mov [rbp+var_30], 0 loc_73842: mov eax, [rbp+var_30] add rsp, 40h pop rbp retn
long long cs_leave(long long a1, long long a2, long long a3) { int v5; // [rsp+Ch] [rbp-34h] int *v7; // [rsp+18h] [rbp-28h] _QWORD *v8; // [rsp+20h] [rbp-20h] v8 = *(_QWORD **)(a1 + 320); v7 = (int *)cs_file_sec(a2, a3); if ( v7 ) v5 = *v7; else v5 = 0; switch ( v5 ) { case 9: if ( v8[210] ) v8[227] = v8[209]; if ( *(_QWORD *)(v8[245] + 168LL) ) return (unsigned int)(*(long long ( **)(_QWORD *))(v8[245] + 168LL))(v8 + 220); else return 0; case 401: return (unsigned int)tailoring_append(a1, "[first primary ignorable]", 0LL); case 402: return (unsigned int)tailoring_append(a1, "[last primary ignorable]", 0LL); case 403: return (unsigned int)tailoring_append(a1, "[first secondary ignorable]", 0LL); case 404: return (unsigned int)tailoring_append(a1, "[last secondary ignorable]", 0LL); case 405: return (unsigned int)tailoring_append(a1, "[first tertiary ignorable]", 0LL); case 406: return (unsigned int)tailoring_append(a1, "[last tertiary ignorable]", 0LL); case 407: return (unsigned int)tailoring_append(a1, "[first trailing]", 0LL); case 408: return (unsigned int)tailoring_append(a1, "[last trailing]", 0LL); case 409: return (unsigned int)tailoring_append(a1, "[first variable]", 0LL); case 410: return (unsigned int)tailoring_append(a1, "[last variable]", 0LL); case 411: return (unsigned int)tailoring_append(a1, "[first non-ignorable]", 0LL); case 412: return (unsigned int)tailoring_append(a1, "[last non-ignorable]", 0LL); default: return 0; } }
cs_leave: PUSH RBP MOV RBP,RSP SUB RSP,0x40 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 RAX,qword ptr [RAX + 0x140] MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00174790 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JZ 0x00173586 MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x34],EAX JMP 0x0017358d LAB_00173586: XOR EAX,EAX MOV dword ptr [RBP + -0x34],EAX JMP 0x0017358d LAB_0017358d: MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x38],EAX SUB EAX,0x9 JZ 0x00173667 JMP 0x001735a4 LAB_001735a4: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x191 JZ 0x00173714 JMP 0x001735b4 LAB_001735b4: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x192 JZ 0x00173733 JMP 0x001735c4 LAB_001735c4: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x193 JZ 0x00173752 JMP 0x001735d4 LAB_001735d4: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x194 JZ 0x00173771 JMP 0x001735e4 LAB_001735e4: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x195 JZ 0x00173790 JMP 0x001735f4 LAB_001735f4: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x196 JZ 0x001737af JMP 0x00173604 LAB_00173604: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x197 JZ 0x001737cb JMP 0x00173614 LAB_00173614: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x198 JZ 0x001737e7 JMP 0x00173624 LAB_00173624: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x199 JZ 0x00173803 JMP 0x00173634 LAB_00173634: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x19a JZ 0x0017381f JMP 0x00173644 LAB_00173644: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x19b JZ 0x001736d6 JMP 0x00173654 LAB_00173654: MOV EAX,dword ptr [RBP + -0x38] SUB EAX,0x19c JZ 0x001736f5 JMP 0x0017383b LAB_00173667: MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0x690],0x0 JZ 0x0017368b MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x688] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x718],RCX LAB_0017368b: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x7a8] CMP qword ptr [RAX + 0xa8],0x0 JZ 0x001736c4 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x7a8] MOV RAX,qword ptr [RAX + 0xa8] MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x6e0 CALL RAX MOV dword ptr [RBP + -0x3c],EAX JMP 0x001736cb LAB_001736c4: XOR EAX,EAX MOV dword ptr [RBP + -0x3c],EAX JMP 0x001736cb LAB_001736cb: MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_001736d6: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182bc2] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_001736f5: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182bd8] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_00173714: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182bed] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_00173733: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182c07] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_00173752: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182c20] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_00173771: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182c3c] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_00173790: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182c57] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_001737af: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182c72] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_001737cb: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182c8c] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_001737e7: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182c9d] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_00173803: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182cad] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_0017381f: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x182cbe] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x00174820 MOV dword ptr [RBP + -0x30],EAX JMP 0x00173842 LAB_0017383b: MOV dword ptr [RBP + -0x30],0x0 LAB_00173842: MOV EAX,dword ptr [RBP + -0x30] ADD RSP,0x40 POP RBP RET
int4 cs_leave(long param_1,int8 param_2,int8 param_3) { long lVar1; int *piVar2; int4 local_44; int local_3c; int4 local_38; lVar1 = *(long *)(param_1 + 0x140); piVar2 = (int *)cs_file_sec(param_2,param_3); if (piVar2 == (int *)0x0) { local_3c = 0; } else { local_3c = *piVar2; } if (local_3c == 9) { if (*(long *)(lVar1 + 0x690) != 0) { *(int8 *)(lVar1 + 0x718) = *(int8 *)(lVar1 + 0x688); } if (*(long *)(*(long *)(lVar1 + 0x7a8) + 0xa8) == 0) { local_44 = 0; } else { local_44 = (**(code **)(*(long *)(lVar1 + 0x7a8) + 0xa8))(lVar1 + 0x6e0); } local_38 = local_44; } else if (local_3c == 0x191) { local_38 = tailoring_append(param_1,"[first primary ignorable]",0); } else if (local_3c == 0x192) { local_38 = tailoring_append(param_1,"[last primary ignorable]",0); } else if (local_3c == 0x193) { local_38 = tailoring_append(param_1,"[first secondary ignorable]",0); } else if (local_3c == 0x194) { local_38 = tailoring_append(param_1,"[last secondary ignorable]",0); } else if (local_3c == 0x195) { local_38 = tailoring_append(param_1,"[first tertiary ignorable]",0); } else if (local_3c == 0x196) { local_38 = tailoring_append(param_1,"[last tertiary ignorable]",0); } else if (local_3c == 0x197) { local_38 = tailoring_append(param_1,"[first trailing]",0); } else if (local_3c == 0x198) { local_38 = tailoring_append(param_1,"[last trailing]",0); } else if (local_3c == 0x199) { local_38 = tailoring_append(param_1,"[first variable]",0); } else if (local_3c == 0x19a) { local_38 = tailoring_append(param_1,"[last variable]",0); } else if (local_3c == 0x19b) { local_38 = tailoring_append(param_1,"[first non-ignorable]",0); } else if (local_3c == 0x19c) { local_38 = tailoring_append(param_1,"[last non-ignorable]",0); } else { local_38 = 0; } return local_38; }
38,973
LefDefParser::lefwViaRuleLayer(char const*, char const*, double, double, double, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwViaRuleLayer(const char *layerName, const char *direction, double minWidth, double maxWidth, // optional double overhang, double metalOverhang) { // optional int status; if (!lefwFile) return LEFW_UNINITIALIZED; if (!lefwDidInit) return LEFW_BAD_ORDER; if (lefwState != LEFW_VIARULE_START && lefwState != LEFW_VIARULE) return LEFW_BAD_ORDER; if (lefwNumViaRuleLayers >= 2) return LEFW_BAD_ORDER; if ((status = lefwViaRulePrtLayer(layerName, direction, minWidth, maxWidth, overhang, metalOverhang)) != LEFW_OK) return status; lefwNumViaRuleLayers++; lefwState = LEFW_VIARULE; return LEFW_OK; }
O3
cpp
LefDefParser::lefwViaRuleLayer(char const*, char const*, double, double, double, double): pushq %r14 pushq %rbx pushq %rax leaq 0x15938(%rip), %rax # 0x24e00 cmpq $0x0, (%rax) je 0xf515 leaq 0x15b7f(%rip), %rcx # 0x25054 movl $0x2, %eax cmpl $0x0, (%rcx) je 0xf51a leaq 0x15b6a(%rip), %rbx # 0x25050 movl (%rbx), %ecx cmpl $0x4a, %ecx je 0xf4f2 cmpl $0x10, %ecx jne 0xf51a leaq 0x15bdf(%rip), %r14 # 0x250d8 cmpl $0x1, (%r14) jg 0xf51a callq 0xf16c testl %eax, %eax jne 0xf51a incl (%r14) movl $0x4a, (%rbx) xorl %eax, %eax jmp 0xf51a movl $0x1, %eax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN12LefDefParser16lefwViaRuleLayerEPKcS1_dddd: push r14 push rbx push rax lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jz short loc_F515 lea rcx, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit mov eax, 2 cmp dword ptr [rcx], 0 jz short loc_F51A lea rbx, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov ecx, [rbx] cmp ecx, 4Ah ; 'J' jz short loc_F4F2 cmp ecx, 10h jnz short loc_F51A loc_F4F2: lea r14, _ZN12LefDefParser20lefwNumViaRuleLayersE; LefDefParser::lefwNumViaRuleLayers cmp dword ptr [r14], 1 jg short loc_F51A call _ZN12LefDefParser19lefwViaRulePrtLayerEPKcS1_dddd; LefDefParser::lefwViaRulePrtLayer(char const*,char const*,double,double,double,double) test eax, eax jnz short loc_F51A inc dword ptr [r14] mov dword ptr [rbx], 4Ah ; 'J' xor eax, eax jmp short loc_F51A loc_F515: mov eax, 1 loc_F51A: add rsp, 8 pop rbx pop r14 retn
long long LefDefParser::lefwViaRuleLayer( LefDefParser *this, const char *a2, const char *a3, double a4, double a5, double a6, double a7, long long a8, int a9, int a10) { long long result; // rax if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; result = 2LL; if ( LefDefParser::lefwDidInit && (LefDefParser::lefwState == 74 || LefDefParser::lefwState == 16) && LefDefParser::lefwNumViaRuleLayers <= 1 ) { result = LefDefParser::lefwViaRulePrtLayer(this, a2, a3, a4, a5, a6, a7, LefDefParser::lefwState, a9, a10); if ( !(_DWORD)result ) { ++LefDefParser::lefwNumViaRuleLayers; LefDefParser::lefwState = 74; return 0LL; } } return result; }
lefwViaRuleLayer: PUSH R14 PUSH RBX PUSH RAX LEA RAX,[0x124e00] CMP qword ptr [RAX],0x0 JZ 0x0010f515 LEA RCX,[0x125054] MOV EAX,0x2 CMP dword ptr [RCX],0x0 JZ 0x0010f51a LEA RBX,[0x125050] MOV ECX,dword ptr [RBX] CMP ECX,0x4a JZ 0x0010f4f2 CMP ECX,0x10 JNZ 0x0010f51a LAB_0010f4f2: LEA R14,[0x1250d8] CMP dword ptr [R14],0x1 JG 0x0010f51a CALL 0x0010f16c TEST EAX,EAX JNZ 0x0010f51a INC dword ptr [R14] MOV dword ptr [RBX],0x4a XOR EAX,EAX JMP 0x0010f51a LAB_0010f515: MOV EAX,0x1 LAB_0010f51a: ADD RSP,0x8 POP RBX POP R14 RET
/* LefDefParser::lefwViaRuleLayer(char const*, char const*, double, double, double, double) */ int8 LefDefParser::lefwViaRuleLayer (char *param_1,char *param_2,double param_3,double param_4,double param_5,double param_6) { int8 uVar1; if (lefwFile == 0) { uVar1 = 1; } else { uVar1 = 2; if ((lefwDidInit != 0) && (((lefwState == 0x4a || (lefwState == 0x10)) && (lefwNumViaRuleLayers < 2)))) { uVar1 = lefwViaRulePrtLayer(param_1,param_2,param_3,param_4,param_5,param_6); if ((int)uVar1 == 0) { lefwNumViaRuleLayers = lefwNumViaRuleLayers + 1; lefwState = 0x4a; uVar1 = 0; } } } return uVar1; }
38,974
ggml_compute_forward_count_equal
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
static void ggml_compute_forward_count_equal( const struct ggml_compute_params * params, struct ggml_tensor * dst) { const struct ggml_tensor * src0 = dst->src[0]; switch (src0->type) { case GGML_TYPE_I32: { ggml_compute_forward_count_equal_i32(params, dst); } break; default: { GGML_ABORT("fatal error"); } } }
O0
c
ggml_compute_forward_count_equal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x98(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movl (%rax), %eax subl $0x1a, %eax jne 0x148fb jmp 0x148ec movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x268b0 jmp 0x14915 leaq 0x5f260(%rip), %rdi # 0x73b62 movl $0x16d5, %esi # imm = 0x16D5 leaq 0x5f4af(%rip), %rdx # 0x73dbd movb $0x0, %al callq 0xe270 addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
ggml_compute_forward_count_equal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov rax, [rax+98h] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov eax, [rax] sub eax, 1Ah jnz short loc_148FB jmp short $+2 loc_148EC: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call ggml_compute_forward_count_equal_i32 jmp short loc_14915 loc_148FB: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 16D5h lea rdx, aFatalError; "fatal error" mov al, 0 call _ggml_abort loc_14915: add rsp, 20h pop rbp retn
double ggml_compute_forward_count_equal(long long a1, long long a2) { double result; // xmm0_8 if ( **(_DWORD **)(a2 + 152) != 26 ) return ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 5845LL, "fatal error"); ggml_compute_forward_count_equal_i32(a1, a2); return result; }
ggml_compute_forward_count_equal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x98] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] SUB EAX,0x1a JNZ 0x001148fb JMP 0x001148ec LAB_001148ec: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x001268b0 JMP 0x00114915 LAB_001148fb: LEA RDI,[0x173b62] MOV ESI,0x16d5 LEA RDX,[0x173dbd] MOV AL,0x0 CALL 0x0010e270 LAB_00114915: ADD RSP,0x20 POP RBP RET
void ggml_compute_forward_count_equal(int8 param_1,long param_2) { if (**(int **)(param_2 + 0x98) == 0x1a) { ggml_compute_forward_count_equal_i32(param_1,param_2); } else { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x16d5,"fatal error"); } return; }
38,975
my_uca_generate_page
eloqsql/strings/ctype-uca.c
static my_bool my_uca_generate_page(MY_CHARSET_LOADER *loader, MY_UCA_WEIGHT_LEVEL *dst, const MY_UCA_WEIGHT_LEVEL *src, uint pageno) { DBUG_ASSERT(dst->levelno == src->levelno); return src->lengths[pageno] ? /* A page with explicit weights and some special rules. Copy all weights from the page in "src". */ my_uca_copy_page(loader, src, dst, pageno) : /* A page with implicit weights and some special rules. Generate default weights for all characters on this page algorithmically now, at initialization time. */ my_uca_generate_implicit_page(loader, dst, pageno); }
O0
c
my_uca_generate_page: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) jmp 0xae959 movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movl -0x1c(%rbp), %ecx movzbl (%rax,%rcx), %eax cmpl $0x0, %eax je 0xae98b movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x10(%rbp), %rdx movl -0x1c(%rbp), %eax movl %eax, %ecx callq 0xae9b0 movsbl %al, %eax movl %eax, -0x20(%rbp) jmp 0xae9a1 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x1c(%rbp), %edx callq 0xaeae0 movsbl %al, %eax movl %eax, -0x20(%rbp) movl -0x20(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
my_uca_generate_page: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx jmp short $+2 loc_AE959: mov rax, [rbp+var_18] mov rax, [rax+8] mov ecx, [rbp+var_1C] movzx eax, byte ptr [rax+rcx] cmp eax, 0 jz short loc_AE98B mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] mov rdx, [rbp+var_10] mov eax, [rbp+var_1C] mov ecx, eax call my_uca_copy_page movsx eax, al mov [rbp+var_20], eax jmp short loc_AE9A1 loc_AE98B: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov edx, [rbp+var_1C] call my_uca_generate_implicit_page movsx eax, al mov [rbp+var_20], eax loc_AE9A1: mov eax, [rbp+var_20] add rsp, 20h pop rbp retn
long long my_uca_generate_page(long long a1, long long a2, long long a3, unsigned int a4) { if ( *(_BYTE *)(*(_QWORD *)(a3 + 8) + a4) ) return (unsigned int)(char)my_uca_copy_page(a1, a3, a2, a4); else return (unsigned int)(char)my_uca_generate_implicit_page(a1, a2, a4); }
my_uca_generate_page: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX JMP 0x001ae959 LAB_001ae959: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV ECX,dword ptr [RBP + -0x1c] MOVZX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x0 JZ 0x001ae98b MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x1c] MOV ECX,EAX CALL 0x001ae9b0 MOVSX EAX,AL MOV dword ptr [RBP + -0x20],EAX JMP 0x001ae9a1 LAB_001ae98b: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x1c] CALL 0x001aeae0 MOVSX EAX,AL MOV dword ptr [RBP + -0x20],EAX LAB_001ae9a1: MOV EAX,dword ptr [RBP + -0x20] ADD RSP,0x20 POP RBP RET
int my_uca_generate_page(int8 param_1,int8 param_2,long param_3,uint param_4) { char cVar1; int4 local_28; if (*(char *)(*(long *)(param_3 + 8) + (ulong)param_4) == '\0') { cVar1 = my_uca_generate_implicit_page(param_1,param_2,param_4); } else { cVar1 = my_uca_copy_page(param_1,param_3,param_2,param_4); } local_28 = (int)cVar1; return local_28; }
38,976
init_block
eloqsql/storage/heap/hp_create.c
static void init_block(HP_BLOCK *block, uint reclength, ulong min_records, ulong max_records) { ulong i,recbuffer,records_in_block; /* If not min_records and max_records are given, optimize for 1000 rows */ if (!min_records) min_records= MY_MIN(1000, max_records); if (!max_records) max_records= MY_MAX(min_records, 1000); /* We don't want too few records_in_block as otherwise the overhead of of the HP_PTRS block will be too notable */ records_in_block= MY_MAX(1000, min_records); records_in_block= MY_MIN(records_in_block, max_records); /* If big max_records is given, allocate bigger blocks */ records_in_block= MY_MAX(records_in_block, max_records / 10); /* We don't want too few blocks per row either */ if (records_in_block < 10) records_in_block= 10; recbuffer= (uint) (reclength + sizeof(uchar**) - 1) & ~(sizeof(uchar**) - 1); /* Don't allocate more than my_default_record_cache_size per level. The + 1 is there to ensure that we get at least 1 row per level (for the exceptional case of very long rows) */ if ((ulonglong) records_in_block*recbuffer > (my_default_record_cache_size-sizeof(HP_PTRS)*HP_MAX_LEVELS)) records_in_block= (my_default_record_cache_size - sizeof(HP_PTRS) * HP_MAX_LEVELS) / recbuffer + 1; block->records_in_block= records_in_block; block->recbuffer= recbuffer; block->last_allocated= 0L; for (i= 0; i <= HP_MAX_LEVELS; i++) block->level_info[i].records_under_level= (!i ? 1 : i == 1 ? records_in_block : HP_PTRS_IN_NOD * block->level_info[i - 1].records_under_level); }
O0
c
init_block: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x280b0 movl $0x3e8, %eax # imm = 0x3E8 cmpq -0x20(%rbp), %rax jae 0x280a0 movl $0x3e8, %eax # imm = 0x3E8 movq %rax, -0x40(%rbp) jmp 0x280a8 movq -0x20(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x280de cmpq $0x3e8, -0x18(%rbp) # imm = 0x3E8 jbe 0x280cb movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) jmp 0x280d6 movl $0x3e8, %eax # imm = 0x3E8 movq %rax, -0x48(%rbp) jmp 0x280d6 movq -0x48(%rbp), %rax movq %rax, -0x20(%rbp) movl $0x3e8, %eax # imm = 0x3E8 cmpq -0x18(%rbp), %rax jbe 0x280f4 movl $0x3e8, %eax # imm = 0x3E8 movq %rax, -0x50(%rbp) jmp 0x280fc movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x28118 movq -0x38(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0x28120 movq -0x20(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x20(%rbp), %rax movl $0xa, %ecx xorl %edx, %edx divq %rcx movq %rax, %rcx movq -0x60(%rbp), %rax cmpq %rcx, %rax jbe 0x28154 movq -0x38(%rbp), %rax movq %rax, -0x68(%rbp) jmp 0x28166 movq -0x20(%rbp), %rax movl $0xa, %ecx xorl %edx, %edx divq %rcx movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax movq %rax, -0x38(%rbp) cmpq $0xa, -0x38(%rbp) jae 0x2817d movq $0xa, -0x38(%rbp) movl -0xc(%rbp), %eax addq $0x8, %rax subq $0x1, %rax movl %eax, %eax andq $-0x8, %rax movq %rax, -0x30(%rbp) movq -0x38(%rbp), %rax imulq -0x30(%rbp), %rax leaq 0x1b522e(%rip), %rcx # 0x1dd3d0 movq (%rcx), %rcx subq $0x1000, %rcx # imm = 0x1000 cmpq %rcx, %rax jbe 0x281d1 leaq 0x1b5218(%rip), %rax # 0x1dd3d0 movq (%rax), %rax subq $0x1000, %rax # imm = 0x1000 xorl %ecx, %ecx movl %ecx, %edx divq -0x30(%rbp) addq $0x1, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x88(%rax) movq -0x30(%rbp), %rax movl %eax, %ecx movq -0x8(%rbp), %rax movl %ecx, 0x84(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x90(%rax) movq $0x0, -0x28(%rbp) cmpq $0x4, -0x28(%rbp) ja 0x28282 cmpq $0x0, -0x28(%rbp) jne 0x28220 movl $0x1, %eax movq %rax, -0x70(%rbp) jmp 0x2825c cmpq $0x1, -0x28(%rbp) jne 0x28231 movq -0x38(%rbp), %rax movq %rax, -0x78(%rbp) jmp 0x28254 movq -0x8(%rbp), %rax addq $0x8, %rax movq -0x28(%rbp), %rcx subq $0x1, %rcx imulq $0x18, %rcx, %rcx addq %rcx, %rax movq 0x8(%rax), %rax shlq $0x7, %rax movq %rax, -0x78(%rbp) movq -0x78(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x70(%rbp), %rcx movq -0x8(%rbp), %rax addq $0x8, %rax imulq $0x18, -0x28(%rbp), %rdx addq %rdx, %rax movq %rcx, 0x8(%rax) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x28207 popq %rbp retq nopw %cs:(%rax,%rax)
init_block: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_20], rcx cmp [rbp+var_18], 0 jnz short loc_280B0 mov eax, 3E8h cmp rax, [rbp+var_20] jnb short loc_280A0 mov eax, 3E8h mov [rbp+var_40], rax jmp short loc_280A8 loc_280A0: mov rax, [rbp+var_20] mov [rbp+var_40], rax loc_280A8: mov rax, [rbp+var_40] mov [rbp+var_18], rax loc_280B0: cmp [rbp+var_20], 0 jnz short loc_280DE cmp [rbp+var_18], 3E8h jbe short loc_280CB mov rax, [rbp+var_18] mov [rbp+var_48], rax jmp short loc_280D6 loc_280CB: mov eax, 3E8h mov [rbp+var_48], rax jmp short $+2 loc_280D6: mov rax, [rbp+var_48] mov [rbp+var_20], rax loc_280DE: mov eax, 3E8h cmp rax, [rbp+var_18] jbe short loc_280F4 mov eax, 3E8h mov [rbp+var_50], rax jmp short loc_280FC loc_280F4: mov rax, [rbp+var_18] mov [rbp+var_50], rax loc_280FC: mov rax, [rbp+var_50] mov [rbp+var_38], rax mov rax, [rbp+var_38] cmp rax, [rbp+var_20] jnb short loc_28118 mov rax, [rbp+var_38] mov [rbp+var_58], rax jmp short loc_28120 loc_28118: mov rax, [rbp+var_20] mov [rbp+var_58], rax loc_28120: mov rax, [rbp+var_58] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_60], rax mov rax, [rbp+var_20] mov ecx, 0Ah xor edx, edx div rcx mov rcx, rax mov rax, [rbp+var_60] cmp rax, rcx jbe short loc_28154 mov rax, [rbp+var_38] mov [rbp+var_68], rax jmp short loc_28166 loc_28154: mov rax, [rbp+var_20] mov ecx, 0Ah xor edx, edx div rcx mov [rbp+var_68], rax loc_28166: mov rax, [rbp+var_68] mov [rbp+var_38], rax cmp [rbp+var_38], 0Ah jnb short loc_2817D mov [rbp+var_38], 0Ah loc_2817D: mov eax, [rbp+var_C] add rax, 8 sub rax, 1 mov eax, eax and rax, 0FFFFFFFFFFFFFFF8h mov [rbp+var_30], rax mov rax, [rbp+var_38] imul rax, [rbp+var_30] lea rcx, my_default_record_cache_size mov rcx, [rcx] sub rcx, 1000h cmp rax, rcx jbe short loc_281D1 lea rax, my_default_record_cache_size mov rax, [rax] sub rax, 1000h xor ecx, ecx mov edx, ecx div [rbp+var_30] add rax, 1 mov [rbp+var_38], rax loc_281D1: mov rcx, [rbp+var_38] mov rax, [rbp+var_8] mov [rax+88h], rcx mov rax, [rbp+var_30] mov ecx, eax mov rax, [rbp+var_8] mov [rax+84h], ecx mov rax, [rbp+var_8] mov qword ptr [rax+90h], 0 mov [rbp+var_28], 0 loc_28207: cmp [rbp+var_28], 4 ja short loc_28282 cmp [rbp+var_28], 0 jnz short loc_28220 mov eax, 1 mov [rbp+var_70], rax jmp short loc_2825C loc_28220: cmp [rbp+var_28], 1 jnz short loc_28231 mov rax, [rbp+var_38] mov [rbp+var_78], rax jmp short loc_28254 loc_28231: mov rax, [rbp+var_8] add rax, 8 mov rcx, [rbp+var_28] sub rcx, 1 imul rcx, 18h add rax, rcx mov rax, [rax+8] shl rax, 7 mov [rbp+var_78], rax loc_28254: mov rax, [rbp+var_78] mov [rbp+var_70], rax loc_2825C: mov rcx, [rbp+var_70] mov rax, [rbp+var_8] add rax, 8 imul rdx, [rbp+var_28], 18h add rax, rdx mov [rax+8], rcx mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_28207 loc_28282: pop rbp retn
unsigned long long init_block(unsigned long long a1, int a2, unsigned long long a3, unsigned long long a4) { unsigned long long result; // rax unsigned long long v5; // [rsp+0h] [rbp-78h] long long v6; // [rsp+8h] [rbp-70h] unsigned long long v7; // [rsp+10h] [rbp-68h] unsigned long long v8; // [rsp+20h] [rbp-58h] unsigned long long v9; // [rsp+28h] [rbp-50h] long long v10; // [rsp+30h] [rbp-48h] long long v11; // [rsp+38h] [rbp-40h] unsigned long long v12; // [rsp+40h] [rbp-38h] unsigned long long v13; // [rsp+48h] [rbp-30h] unsigned long long i; // [rsp+50h] [rbp-28h] unsigned long long v15; // [rsp+58h] [rbp-20h] unsigned long long v16; // [rsp+60h] [rbp-18h] v16 = a3; v15 = a4; if ( !a3 ) { if ( a4 <= 0x3E8 ) v11 = a4; else v11 = 1000LL; v16 = v11; } if ( !a4 ) { if ( v16 <= 0x3E8 ) v10 = 1000LL; else v10 = v16; v15 = v10; } if ( v16 >= 0x3E8 ) v9 = v16; else v9 = 1000LL; if ( v9 >= v15 ) v8 = v15; else v8 = v9; if ( v8 <= v15 / 0xA ) v7 = v15 / 0xA; else v7 = v8; v12 = v7; if ( v7 < 0xA ) v12 = 10LL; v13 = (a2 + 7) & 0xFFFFFFF8; if ( v13 * v12 > my_default_record_cache_size - 4096LL ) v12 = (my_default_record_cache_size - 4096LL) / v13 + 1; *(_QWORD *)(a1 + 136) = v12; *(_DWORD *)(a1 + 132) = v13; result = a1; *(_QWORD *)(a1 + 144) = 0LL; for ( i = 0LL; i <= 4; ++i ) { if ( i ) { if ( i == 1 ) v5 = v12; else v5 = *(_QWORD *)(24 * (i - 1) + a1 + 8 + 8) << 7; v6 = v5; } else { v6 = 1LL; } *(_QWORD *)(24 * i + a1 + 8 + 8) = v6; result = i + 1; } return result; }
init_block: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX CMP qword ptr [RBP + -0x18],0x0 JNZ 0x001280b0 MOV EAX,0x3e8 CMP RAX,qword ptr [RBP + -0x20] JNC 0x001280a0 MOV EAX,0x3e8 MOV qword ptr [RBP + -0x40],RAX JMP 0x001280a8 LAB_001280a0: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x40],RAX LAB_001280a8: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x18],RAX LAB_001280b0: CMP qword ptr [RBP + -0x20],0x0 JNZ 0x001280de CMP qword ptr [RBP + -0x18],0x3e8 JBE 0x001280cb MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x48],RAX JMP 0x001280d6 LAB_001280cb: MOV EAX,0x3e8 MOV qword ptr [RBP + -0x48],RAX JMP 0x001280d6 LAB_001280d6: MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x20],RAX LAB_001280de: MOV EAX,0x3e8 CMP RAX,qword ptr [RBP + -0x18] JBE 0x001280f4 MOV EAX,0x3e8 MOV qword ptr [RBP + -0x50],RAX JMP 0x001280fc LAB_001280f4: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX LAB_001280fc: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x20] JNC 0x00128118 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x58],RAX JMP 0x00128120 LAB_00128118: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x58],RAX LAB_00128120: MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x20] MOV ECX,0xa XOR EDX,EDX DIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x60] CMP RAX,RCX JBE 0x00128154 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x68],RAX JMP 0x00128166 LAB_00128154: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,0xa XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x68],RAX LAB_00128166: MOV RAX,qword ptr [RBP + -0x68] MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0xa JNC 0x0012817d MOV qword ptr [RBP + -0x38],0xa LAB_0012817d: MOV EAX,dword ptr [RBP + -0xc] ADD RAX,0x8 SUB RAX,0x1 MOV EAX,EAX AND RAX,-0x8 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x38] IMUL RAX,qword ptr [RBP + -0x30] LEA RCX,[0x2dd3d0] MOV RCX,qword ptr [RCX] SUB RCX,0x1000 CMP RAX,RCX JBE 0x001281d1 LEA RAX,[0x2dd3d0] MOV RAX,qword ptr [RAX] SUB RAX,0x1000 XOR ECX,ECX MOV EDX,ECX DIV qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX LAB_001281d1: MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x88],RCX MOV RAX,qword ptr [RBP + -0x30] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x84],ECX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x90],0x0 MOV qword ptr [RBP + -0x28],0x0 LAB_00128207: CMP qword ptr [RBP + -0x28],0x4 JA 0x00128282 CMP qword ptr [RBP + -0x28],0x0 JNZ 0x00128220 MOV EAX,0x1 MOV qword ptr [RBP + -0x70],RAX JMP 0x0012825c LAB_00128220: CMP qword ptr [RBP + -0x28],0x1 JNZ 0x00128231 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x78],RAX JMP 0x00128254 LAB_00128231: MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x8 MOV RCX,qword ptr [RBP + -0x28] SUB RCX,0x1 IMUL RCX,RCX,0x18 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x8] SHL RAX,0x7 MOV qword ptr [RBP + -0x78],RAX LAB_00128254: MOV RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x70],RAX LAB_0012825c: MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x8 IMUL RDX,qword ptr [RBP + -0x28],0x18 ADD RAX,RDX MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00128207 LAB_00128282: POP RBP RET
void init_block(long param_1,int param_2,ulong param_3,ulong param_4) { ulong uVar1; ulong local_80; ulong local_78; ulong local_70; ulong local_60; ulong local_58; ulong local_50; ulong local_48; ulong local_40; ulong local_30; ulong local_28; ulong local_20; local_20 = param_3; if (param_3 == 0) { local_48 = param_4; if (1000 < param_4) { local_48 = 1000; } local_20 = local_48; } local_28 = param_4; if (param_4 == 0) { if (local_20 < 0x3e9) { local_50 = 1000; } else { local_50 = local_20; } local_28 = local_50; } if (local_20 < 1000) { local_58 = 1000; } else { local_58 = local_20; } if (local_58 < local_28) { local_60 = local_58; } else { local_60 = local_28; } if (local_28 / 10 < local_60) { local_70 = local_60; } else { local_70 = local_28 / 10; } local_40 = local_70; if (local_70 < 10) { local_40 = 10; } uVar1 = (ulong)(param_2 + 7) & 0xfffffffffffffff8; if (my_default_record_cache_size - 0x1000U <= local_40 * uVar1 && local_40 * uVar1 - (my_default_record_cache_size - 0x1000U) != 0) { local_40 = (my_default_record_cache_size - 0x1000U) / uVar1 + 1; } *(ulong *)(param_1 + 0x88) = local_40; *(int *)(param_1 + 0x84) = (int)uVar1; *(int8 *)(param_1 + 0x90) = 0; for (local_30 = 0; local_30 < 5; local_30 = local_30 + 1) { if (local_30 == 0) { local_78 = 1; } else { if (local_30 == 1) { local_80 = local_40; } else { local_80 = *(long *)(param_1 + (local_30 - 1) * 0x18 + 0x10) << 7; } local_78 = local_80; } *(ulong *)(param_1 + local_30 * 0x18 + 0x10) = local_78; } return; }
38,977
init_block
eloqsql/storage/heap/hp_create.c
static void init_block(HP_BLOCK *block, uint reclength, ulong min_records, ulong max_records) { ulong i,recbuffer,records_in_block; /* If not min_records and max_records are given, optimize for 1000 rows */ if (!min_records) min_records= MY_MIN(1000, max_records); if (!max_records) max_records= MY_MAX(min_records, 1000); /* We don't want too few records_in_block as otherwise the overhead of of the HP_PTRS block will be too notable */ records_in_block= MY_MAX(1000, min_records); records_in_block= MY_MIN(records_in_block, max_records); /* If big max_records is given, allocate bigger blocks */ records_in_block= MY_MAX(records_in_block, max_records / 10); /* We don't want too few blocks per row either */ if (records_in_block < 10) records_in_block= 10; recbuffer= (uint) (reclength + sizeof(uchar**) - 1) & ~(sizeof(uchar**) - 1); /* Don't allocate more than my_default_record_cache_size per level. The + 1 is there to ensure that we get at least 1 row per level (for the exceptional case of very long rows) */ if ((ulonglong) records_in_block*recbuffer > (my_default_record_cache_size-sizeof(HP_PTRS)*HP_MAX_LEVELS)) records_in_block= (my_default_record_cache_size - sizeof(HP_PTRS) * HP_MAX_LEVELS) / recbuffer + 1; block->records_in_block= records_in_block; block->recbuffer= recbuffer; block->last_allocated= 0L; for (i= 0; i <= HP_MAX_LEVELS; i++) block->level_info[i].records_under_level= (!i ? 1 : i == 1 ? records_in_block : HP_PTRS_IN_NOD * block->level_info[i - 1].records_under_level); }
O3
c
init_block: movl $0x3e8, %eax # imm = 0x3E8 cmpq %rax, %rcx movl $0x3e8, %r8d # imm = 0x3E8 cmovbq %rcx, %r8 testq %rdx, %rdx cmovneq %rdx, %r8 cmpq $0x3e9, %r8 # imm = 0x3E9 cmovbq %rax, %r8 testq %rcx, %rcx cmoveq %r8, %rcx movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD movq %rcx, %rax mulq %rdx shrq $0x3, %rdx cmpq %rcx, %r8 cmovbq %r8, %rcx cmpq %rdx, %r8 cmovbeq %rdx, %rcx cmpq $0xb, %rcx movl $0xa, %eax cmovaeq %rcx, %rax addl $0x7, %esi andl $-0x8, %esi movq %rax, %rdx imulq %rsi, %rdx leaq 0x2d1d56(%rip), %r8 # 0x2f93d0 movq $-0x1000, %rcx # imm = 0xF000 addq (%r8), %rcx cmpq %rcx, %rdx jbe 0x27694 movq %rcx, %rax xorl %edx, %edx divq %rsi incq %rax pushq %rbp movq %rsp, %rbp movq %rax, 0x88(%rdi) movl %esi, 0x84(%rdi) movq $0x0, 0x90(%rdi) addq $-0x8, %rdi xorl %ecx, %ecx testq %rcx, %rcx je 0x276cd movq %rax, %rdx cmpq $0x1, %rcx je 0x276d2 movq (%rdi), %rdx shlq $0x7, %rdx jmp 0x276d2 movl $0x1, %edx movq %rdx, 0x18(%rdi) addq $0x18, %rdi incq %rcx cmpq $0x5, %rcx jne 0x276b6 popq %rbp retq
init_block: mov eax, 3E8h cmp rcx, rax mov r8d, 3E8h cmovb r8, rcx test rdx, rdx cmovnz r8, rdx cmp r8, 3E9h cmovb r8, rax test rcx, rcx cmovz rcx, r8 mov rdx, 0CCCCCCCCCCCCCCCDh mov rax, rcx mul rdx shr rdx, 3 cmp r8, rcx cmovb rcx, r8 cmp r8, rdx cmovbe rcx, rdx cmp rcx, 0Bh mov eax, 0Ah cmovnb rax, rcx add esi, 7 and esi, 0FFFFFFF8h mov rdx, rax imul rdx, rsi lea r8, my_default_record_cache_size mov rcx, 0FFFFFFFFFFFFF000h add rcx, [r8] cmp rdx, rcx jbe short loc_27694 mov rax, rcx xor edx, edx div rsi inc rax loc_27694: push rbp mov rbp, rsp mov [rdi+88h], rax mov [rdi+84h], esi mov qword ptr [rdi+90h], 0 add rdi, 0FFFFFFFFFFFFFFF8h xor ecx, ecx loc_276B6: test rcx, rcx jz short loc_276CD mov rdx, rax cmp rcx, 1 jz short loc_276D2 mov rdx, [rdi] shl rdx, 7 jmp short loc_276D2 loc_276CD: mov edx, 1 loc_276D2: mov [rdi+18h], rdx add rdi, 18h inc rcx cmp rcx, 5 jnz short loc_276B6 pop rbp retn
unsigned long long init_block(long long a1, int a2, unsigned long long a3, unsigned long long a4) { unsigned long long v4; // r8 unsigned long long v5; // rdx unsigned long long result; // rax unsigned long long v7; // rsi _QWORD *v8; // rdi long long i; // rcx long long v10; // rdx v4 = 1000LL; if ( a4 < 0x3E8 ) v4 = a4; if ( a3 ) v4 = a3; if ( v4 < 0x3E9 ) v4 = 1000LL; if ( !a4 ) a4 = v4; v5 = a4 / 0xA; if ( v4 < a4 ) a4 = v4; if ( v4 <= v5 ) a4 = v5; result = 10LL; if ( a4 >= 0xB ) result = a4; v7 = (a2 + 7) & 0xFFFFFFF8; if ( v7 * result > my_default_record_cache_size - 4096LL ) result = (my_default_record_cache_size - 4096LL) / v7 + 1; *(_QWORD *)(a1 + 136) = result; *(_DWORD *)(a1 + 132) = v7; *(_QWORD *)(a1 + 144) = 0LL; v8 = (_QWORD *)(a1 - 8); for ( i = 0LL; i != 5; ++i ) { if ( i ) { v10 = result; if ( i != 1 ) v10 = *v8 << 7; } else { v10 = 1LL; } v8[3] = v10; v8 += 3; } return result; }
init_block: MOV EAX,0x3e8 CMP RCX,RAX MOV R8D,0x3e8 CMOVC R8,RCX TEST RDX,RDX CMOVNZ R8,RDX CMP R8,0x3e9 CMOVC R8,RAX TEST RCX,RCX CMOVZ RCX,R8 MOV RDX,-0x3333333333333333 MOV RAX,RCX MUL RDX SHR RDX,0x3 CMP R8,RCX CMOVC RCX,R8 CMP R8,RDX CMOVBE RCX,RDX CMP RCX,0xb MOV EAX,0xa CMOVNC RAX,RCX ADD ESI,0x7 AND ESI,0xfffffff8 MOV RDX,RAX IMUL RDX,RSI LEA R8,[0x3f93d0] MOV RCX,-0x1000 ADD RCX,qword ptr [R8] CMP RDX,RCX JBE 0x00127694 MOV RAX,RCX XOR EDX,EDX DIV RSI INC RAX LAB_00127694: PUSH RBP MOV RBP,RSP MOV qword ptr [RDI + 0x88],RAX MOV dword ptr [RDI + 0x84],ESI MOV qword ptr [RDI + 0x90],0x0 ADD RDI,-0x8 XOR ECX,ECX LAB_001276b6: TEST RCX,RCX JZ 0x001276cd MOV RDX,RAX CMP RCX,0x1 JZ 0x001276d2 MOV RDX,qword ptr [RDI] SHL RDX,0x7 JMP 0x001276d2 LAB_001276cd: MOV EDX,0x1 LAB_001276d2: MOV qword ptr [RDI + 0x18],RDX ADD RDI,0x18 INC RCX CMP RCX,0x5 JNZ 0x001276b6 POP RBP RET
void init_block(long param_1,int param_2,ulong param_3,ulong param_4) { ulong uVar1; long lVar2; ulong uVar3; uint uVar4; long *plVar5; ulong uVar6; uVar6 = 1000; if (param_4 < 1000) { uVar6 = param_4; } if (param_3 != 0) { uVar6 = param_3; } if (uVar6 < 0x3e9) { uVar6 = 1000; } if (param_4 == 0) { param_4 = uVar6; } uVar1 = param_4; if (uVar6 < param_4) { uVar1 = uVar6; } if (uVar6 <= param_4 / 10) { uVar1 = param_4 / 10; } uVar6 = 10; if (10 < uVar1) { uVar6 = uVar1; } uVar4 = param_2 + 7U & 0xfffffff8; uVar3 = uVar6 * uVar4; uVar1 = my_default_record_cache_size - 0x1000; if (uVar1 <= uVar3 && uVar3 - uVar1 != 0) { uVar6 = uVar1 / uVar4 + 1; } *(ulong *)(param_1 + 0x88) = uVar6; *(uint *)(param_1 + 0x84) = uVar4; *(int8 *)(param_1 + 0x90) = 0; plVar5 = (long *)(param_1 + -8); lVar2 = 0; do { if (lVar2 == 0) { uVar1 = 1; } else { uVar1 = uVar6; if (lVar2 != 1) { uVar1 = *plVar5 << 7; } } plVar5[3] = uVar1; plVar5 = plVar5 + 3; lVar2 = lVar2 + 1; } while (lVar2 != 5); return; }
38,978
ma_reset_status
eloqsql/storage/maria/ma_delete_all.c
void _ma_reset_status(MARIA_HA *info) { MARIA_SHARE *share= info->s; MARIA_STATE_INFO *state= &share->state; uint i; DBUG_ENTER("_ma_reset_status"); state->split= 0; state->state.records= state->state.del= 0; state->changed= 0; /* File is optimized */ state->dellink= HA_OFFSET_ERROR; state->sortkey= (ushort) ~0; state->state.key_file_length= share->base.keystart; state->state.data_file_length= 0; state->state.empty= state->state.key_empty= 0; state->state.checksum= 0; share->state.open_count= 0; share->global_changed= 0; share->changed= 1; /* We must write state */ *info->state= state->state; /* Drop the delete key chain. */ state->key_del= HA_OFFSET_ERROR; /* Clear all keys */ for (i=0 ; i < share->base.keys ; i++) state->key_root[i]= HA_OFFSET_ERROR; DBUG_VOID_RETURN; }
O3
c
ma_reset_status: pushq %rbp movq %rsp, %rbp movq (%rdi), %rax xorl %ecx, %ecx movq %rcx, 0xc0(%rax) movl %ecx, 0x170(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rax) movq $-0x1, %rdx movq %rdx, 0xc8(%rax) movq $0xffff, 0x168(%rax) # imm = 0xFFFF movq 0x360(%rax), %rsi movq %rsi, 0x38(%rax) movq %rcx, 0x40(%rax) movl %ecx, 0x48(%rax) movups %xmm0, 0x28(%rax) movw $0x1, 0x7de(%rax) movq 0x20(%rdi), %rsi movups %xmm0, 0x10(%rsi) movq 0x48(%rax), %rdi movq %rdi, 0x30(%rsi) movups 0x38(%rax), %xmm1 movups %xmm1, 0x20(%rsi) movups %xmm0, (%rsi) movq %rdx, 0x120(%rax) cmpl %ecx, 0x3e8(%rax) je 0x5f00f xorl %ecx, %ecx movq 0x118(%rax), %rdx movq $-0x1, (%rdx,%rcx,8) incq %rcx movl 0x3e8(%rax), %edx cmpq %rdx, %rcx jb 0x5eff2 popq %rbp retq
_ma_reset_status: push rbp mov rbp, rsp mov rax, [rdi] xor ecx, ecx mov [rax+0C0h], rcx mov [rax+170h], ecx xorps xmm0, xmm0 movups xmmword ptr [rax+18h], xmm0 mov rdx, 0FFFFFFFFFFFFFFFFh mov [rax+0C8h], rdx mov qword ptr [rax+168h], 0FFFFh mov rsi, [rax+360h] mov [rax+38h], rsi mov [rax+40h], rcx mov [rax+48h], ecx movups xmmword ptr [rax+28h], xmm0 mov word ptr [rax+7DEh], 1 mov rsi, [rdi+20h] movups xmmword ptr [rsi+10h], xmm0 mov rdi, [rax+48h] mov [rsi+30h], rdi movups xmm1, xmmword ptr [rax+38h] movups xmmword ptr [rsi+20h], xmm1 movups xmmword ptr [rsi], xmm0 mov [rax+120h], rdx cmp [rax+3E8h], ecx jz short loc_5F00F xor ecx, ecx loc_5EFF2: mov rdx, [rax+118h] mov qword ptr [rdx+rcx*8], 0FFFFFFFFFFFFFFFFh inc rcx mov edx, [rax+3E8h] cmp rcx, rdx jb short loc_5EFF2 loc_5F00F: pop rbp retn
long long ma_reset_status(long long *a1) { long long result; // rax long long v2; // rsi unsigned long long v3; // rcx result = *a1; *(_QWORD *)(result + 192) = 0LL; *(_DWORD *)(result + 368) = 0; *(_OWORD *)(result + 24) = 0LL; *(_QWORD *)(result + 200) = -1LL; *(_QWORD *)(result + 360) = 0xFFFFLL; *(_QWORD *)(result + 56) = *(_QWORD *)(result + 864); *(_QWORD *)(result + 64) = 0LL; *(_DWORD *)(result + 72) = 0; *(_OWORD *)(result + 40) = 0LL; *(_WORD *)(result + 2014) = 1; v2 = a1[4]; *(_OWORD *)(v2 + 16) = 0LL; *(_QWORD *)(v2 + 48) = *(_QWORD *)(result + 72); *(_OWORD *)(v2 + 32) = *(_OWORD *)(result + 56); *(_OWORD *)v2 = 0LL; *(_QWORD *)(result + 288) = -1LL; if ( *(_DWORD *)(result + 1000) ) { v3 = 0LL; do *(_QWORD *)(*(_QWORD *)(result + 280) + 8 * v3++) = -1LL; while ( v3 < *(unsigned int *)(result + 1000) ); } return result; }
_ma_reset_status: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI] XOR ECX,ECX MOV qword ptr [RAX + 0xc0],RCX MOV dword ptr [RAX + 0x170],ECX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x18],XMM0 MOV RDX,-0x1 MOV qword ptr [RAX + 0xc8],RDX MOV qword ptr [RAX + 0x168],0xffff MOV RSI,qword ptr [RAX + 0x360] MOV qword ptr [RAX + 0x38],RSI MOV qword ptr [RAX + 0x40],RCX MOV dword ptr [RAX + 0x48],ECX MOVUPS xmmword ptr [RAX + 0x28],XMM0 MOV word ptr [RAX + 0x7de],0x1 MOV RSI,qword ptr [RDI + 0x20] MOVUPS xmmword ptr [RSI + 0x10],XMM0 MOV RDI,qword ptr [RAX + 0x48] MOV qword ptr [RSI + 0x30],RDI MOVUPS XMM1,xmmword ptr [RAX + 0x38] MOVUPS xmmword ptr [RSI + 0x20],XMM1 MOVUPS xmmword ptr [RSI],XMM0 MOV qword ptr [RAX + 0x120],RDX CMP dword ptr [RAX + 0x3e8],ECX JZ 0x0015f00f XOR ECX,ECX LAB_0015eff2: MOV RDX,qword ptr [RAX + 0x118] MOV qword ptr [RDX + RCX*0x8],-0x1 INC RCX MOV EDX,dword ptr [RAX + 0x3e8] CMP RCX,RDX JC 0x0015eff2 LAB_0015f00f: POP RBP RET
void _ma_reset_status(long *param_1) { long lVar1; int8 *puVar2; int8 uVar3; ulong uVar4; lVar1 = *param_1; *(int8 *)(lVar1 + 0xc0) = 0; *(int4 *)(lVar1 + 0x170) = 0; *(int8 *)(lVar1 + 0x18) = 0; *(int8 *)(lVar1 + 0x20) = 0; *(int8 *)(lVar1 + 200) = 0xffffffffffffffff; *(int8 *)(lVar1 + 0x168) = 0xffff; *(int8 *)(lVar1 + 0x38) = *(int8 *)(lVar1 + 0x360); *(int8 *)(lVar1 + 0x40) = 0; *(int4 *)(lVar1 + 0x48) = 0; *(int8 *)(lVar1 + 0x28) = 0; *(int8 *)(lVar1 + 0x30) = 0; *(int2 *)(lVar1 + 0x7de) = 1; puVar2 = (int8 *)param_1[4]; puVar2[2] = 0; puVar2[3] = 0; puVar2[6] = *(int8 *)(lVar1 + 0x48); uVar3 = *(int8 *)(lVar1 + 0x40); puVar2[4] = *(int8 *)(lVar1 + 0x38); puVar2[5] = uVar3; *puVar2 = 0; puVar2[1] = 0; *(int8 *)(lVar1 + 0x120) = 0xffffffffffffffff; if (*(int *)(lVar1 + 1000) != 0) { uVar4 = 0; do { *(int8 *)(*(long *)(lVar1 + 0x118) + uVar4 * 8) = 0xffffffffffffffff; uVar4 = uVar4 + 1; } while (uVar4 < *(uint *)(lVar1 + 1000)); } return; }
38,979
dns_class2str
xtate/src/proto/proto-dns.c
const char *dns_class2str(dns_class cls) { switch (cls) { case DNS_CLS_IN: return "IN"; case DNS_CLS_CH: return "H"; case DNS_CLS_HS: return "HS"; case DNS_CLS_QCLASS_NONE: return "QNONE"; case DNS_CLS_QCLASS_ANY: return "QANY"; default: return "UNKNOWN"; } }
O3
c
dns_class2str: cmpl $0x3, %edi jle 0x31077 cmpl $0x4, %edi je 0x31089 cmpl $0xfe, %edi je 0x31091 cmpl $0xff, %edi jne 0x310a1 leaq 0x3a4a1(%rip), %rax # 0x6b517 retq cmpl $0x1, %edi je 0x31099 cmpl $0x3, %edi jne 0x310a1 leaq 0x400fa(%rip), %rax # 0x71182 retq leaq 0x3a47e(%rip), %rax # 0x6b50e retq leaq 0x3a479(%rip), %rax # 0x6b511 retq leaq 0x3a4bf(%rip), %rax # 0x6b55f retq leaq 0x3a474(%rip), %rax # 0x6b51c retq
dns_class2str: cmp edi, 3 jle short loc_31077 cmp edi, 4 jz short loc_31089 cmp edi, 0FEh jz short loc_31091 cmp edi, 0FFh jnz short loc_310A1 lea rax, aQany; "QANY" retn loc_31077: cmp edi, 1 jz short loc_31099 cmp edi, 3 jnz short loc_310A1 lea rax, aSearch+5; "H" retn loc_31089: lea rax, aHs; "HS" retn loc_31091: lea rax, aQnone; "QNONE" retn loc_31099: lea rax, aNxdomain_0+6; "IN" retn loc_310A1: lea rax, aUnknown; "UNKNOWN" retn
char * dns_class2str(int a1) { if ( a1 <= 3 ) { if ( a1 == 1 ) return "IN"; if ( a1 == 3 ) return "H"; } else { switch ( a1 ) { case 4: return "HS"; case 254: return "QNONE"; case 255: return "QANY"; } } return "UNKNOWN"; }
dns_class2str: CMP EDI,0x3 JLE 0x00131077 CMP EDI,0x4 JZ 0x00131089 CMP EDI,0xfe JZ 0x00131091 CMP EDI,0xff JNZ 0x001310a1 LEA RAX,[0x16b517] RET LAB_00131077: CMP EDI,0x1 JZ 0x00131099 CMP EDI,0x3 JNZ 0x001310a1 LEA RAX,[0x171182] RET LAB_00131089: LEA RAX,[0x16b50e] RET LAB_00131091: LEA RAX,[0x16b511] RET LAB_00131099: LEA RAX,[0x16b55f] RET LAB_001310a1: LEA RAX,[0x16b51c] RET
char * dns_class2str(int param_1) { if (param_1 < 4) { if (param_1 == 1) { return "IN"; } if (param_1 == 3) { return "H"; } } else { if (param_1 == 4) { return "HS"; } if (param_1 == 0xfe) { return "QNONE"; } if (param_1 == 0xff) { return "QANY"; } } return "UNKNOWN"; }
38,980
minja::Value::array(std::vector<minja::Value, std::allocator<minja::Value>>)
monkey531[P]llama/common/./minja.hpp
static Value array(const std::vector<Value> values = {}) { auto array = std::make_shared<ArrayType>(); for (const auto& item : values) { array->push_back(item); } return Value(array); }
O2
cpp
minja::Value::array(std::vector<minja::Value, std::allocator<minja::Value>>): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %r15 movq %rdi, %rbx movq %rsp, %rdi callq 0x4882b movq (%r15), %r14 movq 0x8(%r15), %r15 cmpq %r15, %r14 je 0x4a03d movq (%rsp), %rdi movq %r14, %rsi callq 0x4a124 addq $0x50, %r14 jmp 0x4a026 movq %rsp, %rsi movq %rbx, %rdi callq 0x4a150 leaq 0x8(%rsp), %rdi callq 0x2eeb2 movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x2eeb2 movq %rbx, %rdi callq 0x20b90
_ZN5minja5Value5arrayESt6vectorIS0_SaIS0_EE: push r15 push r14 push rbx sub rsp, 10h mov r15, rsi mov rbx, rdi mov rdi, rsp call _ZSt11make_sharedISt6vectorIN5minja5ValueESaIS2_EEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<std::vector<minja::Value>>() mov r14, [r15] mov r15, [r15+8] loc_4A026: cmp r14, r15 jz short loc_4A03D mov rdi, [rsp+28h+var_28] mov rsi, r14 call _ZNSt6vectorIN5minja5ValueESaIS1_EE9push_backERKS1_; std::vector<minja::Value>::push_back(minja::Value const&) add r14, 50h ; 'P' jmp short loc_4A026 loc_4A03D: mov rsi, rsp mov rdi, rbx call _ZN5minja5ValueC2ERKSt10shared_ptrISt6vectorIS0_SaIS0_EEE; minja::Value::Value(std::shared_ptr<std::vector<minja::Value>> const&) lea rdi, [rsp+28h+var_20] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rax, rbx add rsp, 10h pop rbx pop r14 pop r15 retn mov rbx, rax lea rdi, [rsp+arg_0] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, rbx call __Unwind_Resume
long long minja::Value::array(long long a1, long long *a2) { long long v2; // r14 long long v3; // r15 long long v5; // [rsp+0h] [rbp-28h] BYREF _QWORD v6[4]; // [rsp+8h] [rbp-20h] BYREF std::make_shared<std::vector<minja::Value>>((long long)&v5); v2 = *a2; v3 = a2[1]; while ( v2 != v3 ) { std::vector<minja::Value>::push_back(v5, v2); v2 += 80LL; } minja::Value::Value(a1, &v5); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v6); return a1; }
38,981
minja::Value::array(std::vector<minja::Value, std::allocator<minja::Value>>)
monkey531[P]llama/common/./minja.hpp
static Value array(const std::vector<Value> values = {}) { auto array = std::make_shared<ArrayType>(); for (const auto& item : values) { array->push_back(item); } return Value(array); }
O3
cpp
minja::Value::array(std::vector<minja::Value, std::allocator<minja::Value>>): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %r13 movq %rdi, %rbx movl $0x28, %edi callq 0x18690 movq %rax, %r14 movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x8(%r14) leaq 0x9eda1(%rip), %rax # 0xee4a8 movq %rax, (%r14) leaq 0x10(%r14), %r15 xorps %xmm0, %xmm0 movups %xmm0, 0x10(%r14) movq $0x0, 0x20(%r14) movq %r14, 0x8(%rsp) movq %r15, (%rsp) movq (%r13), %r12 movq 0x8(%r13), %r13 cmpq %r13, %r12 je 0x4f745 movq %r15, %rdi movq %r12, %rsi callq 0x4f876 addq $0x50, %r12 jmp 0x4f72f movq %rsp, %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x4f8a2 movq 0x8(%r14), %rdi testq %rdi, %rdi je 0x4f761 callq 0x2f80e movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq %r14, %rdi callq 0x2f80e movq %rbx, %rdi callq 0x18b90 nop
_ZN5minja5Value5arrayESt6vectorIS0_SaIS0_EE: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r13, rsi mov rbx, rdi mov edi, 28h ; '('; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov rax, 100000001h mov [r14+8], rax lea rax, off_EE4A8 mov [r14], rax lea r15, [r14+10h] xorps xmm0, xmm0 movups xmmword ptr [r14+10h], xmm0 mov qword ptr [r14+20h], 0 mov [rsp+38h+var_30], r14 mov [rsp+38h+var_38], r15 mov r12, [r13+0] mov r13, [r13+8] loc_4F72F: cmp r12, r13 jz short loc_4F745 mov rdi, r15 mov rsi, r12 call _ZNSt6vectorIN5minja5ValueESaIS1_EE9push_backERKS1_; std::vector<minja::Value>::push_back(minja::Value const&) add r12, 50h ; 'P' jmp short loc_4F72F loc_4F745: mov r14, rsp mov rdi, rbx mov rsi, r14 call _ZN5minja5ValueC2ERKSt10shared_ptrISt6vectorIS0_SaIS0_EEE; minja::Value::Value(std::shared_ptr<std::vector<minja::Value>> const&) mov rdi, [r14+8] test rdi, rdi jz short loc_4F761 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_4F761: mov rax, rbx add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax mov rdi, r14 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) mov rdi, rbx call __Unwind_Resume
long long minja::Value::array(long long a1, long long *a2) { long long v2; // r14 long long v3; // r12 long long v4; // r13 long long v6; // [rsp+0h] [rbp-38h] BYREF volatile signed __int32 *v7; // [rsp+8h] [rbp-30h] v2 = operator new(0x28uLL); *(_QWORD *)(v2 + 8) = 0x100000001LL; *(_QWORD *)v2 = off_EE4A8; *(_OWORD *)(v2 + 16) = 0LL; *(_QWORD *)(v2 + 32) = 0LL; v7 = (volatile signed __int32 *)v2; v6 = v2 + 16; v3 = *a2; v4 = a2[1]; while ( v3 != v4 ) { std::vector<minja::Value>::push_back(v2 + 16, v3); v3 += 80LL; } minja::Value::Value(a1, &v6); if ( v7 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v7); return a1; }
array: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R13,RSI MOV RBX,RDI MOV EDI,0x28 CALL 0x00118690 MOV R14,RAX MOV RAX,0x100000001 MOV qword ptr [R14 + 0x8],RAX LEA RAX,[0x1ee4a8] MOV qword ptr [R14],RAX LEA R15,[R14 + 0x10] XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x10],XMM0 MOV qword ptr [R14 + 0x20],0x0 MOV qword ptr [RSP + 0x8],R14 MOV qword ptr [RSP],R15 MOV R12,qword ptr [R13] MOV R13,qword ptr [R13 + 0x8] LAB_0014f72f: CMP R12,R13 JZ 0x0014f745 LAB_0014f734: MOV RDI,R15 MOV RSI,R12 CALL 0x0014f876 LAB_0014f73f: ADD R12,0x50 JMP 0x0014f72f LAB_0014f745: MOV R14,RSP MOV RDI,RBX MOV RSI,R14 CALL 0x0014f8a2 MOV RDI,qword ptr [R14 + 0x8] TEST RDI,RDI JZ 0x0014f761 CALL 0x0012f80e LAB_0014f761: MOV RAX,RBX ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* minja::Value::array(std::vector<minja::Value, std::allocator<minja::Value> >) */ Value * __thiscall minja::Value::array(Value *this,int8 *param_2) { vector<minja::Value,std::allocator<minja::Value>> *this_00; Value *pVVar1; Value *pVVar2; vector<minja::Value,std::allocator<minja::Value>> *local_38; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30; local_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x28); *(int8 *)(local_30 + 8) = 0x100000001; *(int ***)local_30 = &PTR___Sp_counted_ptr_inplace_001ee4a8; this_00 = (vector<minja::Value,std::allocator<minja::Value>> *)(local_30 + 0x10); *(int8 *)(local_30 + 0x10) = 0; *(int8 *)(local_30 + 0x18) = 0; *(int8 *)(local_30 + 0x20) = 0; pVVar1 = (Value *)param_2[1]; local_38 = this_00; for (pVVar2 = (Value *)*param_2; pVVar2 != pVVar1; pVVar2 = pVVar2 + 0x50) { /* try { // try from 0014f734 to 0014f73e has its CatchHandler @ 0014f772 */ std::vector<minja::Value,std::allocator<minja::Value>>::push_back(this_00,pVVar2); } Value(this,(shared_ptr *)&local_38); if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30); } return this; }
38,982
ma_find_writepos
eloqsql/storage/maria/ma_dynrec.c
static int _ma_find_writepos(MARIA_HA *info, ulong reclength, /* record length */ my_off_t *filepos, /* Return file pos */ ulong *length) /* length of block at filepos */ { MARIA_BLOCK_INFO block_info; ulong tmp; DBUG_ENTER("_ma_find_writepos"); if (info->s->state.dellink != HA_OFFSET_ERROR && !info->append_insert_at_end) { /* Deleted blocks exists; Get last used block */ *filepos=info->s->state.dellink; block_info.second_read=0; info->rec_cache.seek_not_done=1; if (!(_ma_get_block_info(info, &block_info, info->dfile.file, info->s->state.dellink) & BLOCK_DELETED)) { DBUG_PRINT("error",("Delete link crashed")); _ma_set_fatal_error_with_share(info->s, HA_ERR_WRONG_IN_RECORD); DBUG_RETURN(-1); } info->s->state.dellink=block_info.next_filepos; info->state->del--; info->state->empty-= block_info.block_len; *length= block_info.block_len; } else { /* No deleted blocks; Allocate a new block */ *filepos=info->state->data_file_length; if ((tmp= reclength + 3 + MY_TEST(reclength >= (65520 - 3))) < info->s->base.min_block_length) tmp= info->s->base.min_block_length; else tmp= ((tmp+MARIA_DYN_ALIGN_SIZE-1) & (~ (ulong) (MARIA_DYN_ALIGN_SIZE-1))); if (info->state->data_file_length > (info->s->base.max_data_file_length - tmp)) { my_errno=HA_ERR_RECORD_FILE_FULL; DBUG_RETURN(-1); } if (tmp > MARIA_MAX_BLOCK_LENGTH) tmp=MARIA_MAX_BLOCK_LENGTH; *length= tmp; info->state->data_file_length+= tmp; info->s->state.split++; info->update|=HA_STATE_WRITE_AT_END; } DBUG_RETURN(0); }
O0
c
ma_find_writepos: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x70(%rbp) movq %rsi, -0x78(%rbp) movq %rdx, -0x80(%rbp) movq %rcx, -0x88(%rbp) movq -0x70(%rbp), %rax movq (%rax), %rax cmpq $-0x1, 0xc8(%rax) je 0x412e9 movq -0x70(%rbp), %rax cmpb $0x0, 0x681(%rax) jne 0x412e9 movq -0x70(%rbp), %rax movq (%rax), %rax movq 0xc8(%rax), %rcx movq -0x80(%rbp), %rax movq %rcx, (%rax) movl $0x0, -0x10(%rbp) movq -0x70(%rbp), %rax movl $0x1, 0x598(%rax) movq -0x70(%rbp), %rdi movq -0x70(%rbp), %rax movl 0x480(%rax), %edx movq -0x70(%rbp), %rax movq (%rax), %rax movq 0xc8(%rax), %rcx leaq -0x60(%rbp), %rsi callq 0x3e0e0 andl $0x4, %eax cmpl $0x0, %eax jne 0x41299 jmp 0x4127a jmp 0x4127c movq -0x70(%rbp), %rax movq (%rax), %rdi movl $0x7f, %esi callq 0x33940 movl $0xffffffff, -0x64(%rbp) # imm = 0xFFFFFFFF jmp 0x41419 movq -0x20(%rbp), %rcx movq -0x70(%rbp), %rax movq (%rax), %rax movq %rcx, 0xc8(%rax) movq -0x70(%rbp), %rax movq 0x20(%rax), %rax movq 0x8(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x8(%rax) movq -0x38(%rbp), %rdx movq -0x70(%rbp), %rax movq 0x20(%rax), %rax movq 0x10(%rax), %rcx subq %rdx, %rcx movq %rcx, 0x10(%rax) movq -0x38(%rbp), %rcx movq -0x88(%rbp), %rax movq %rcx, (%rax) jmp 0x41410 movq -0x70(%rbp), %rax movq 0x20(%rax), %rax movq 0x28(%rax), %rcx movq -0x80(%rbp), %rax movq %rcx, (%rax) movq -0x78(%rbp), %rax addq $0x3, %rax movq -0x78(%rbp), %rsi xorl %ecx, %ecx movl $0x1, %edx cmpq $0xffed, %rsi # imm = 0xFFED cmovael %edx, %ecx movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x90(%rbp) movq -0x70(%rbp), %rcx movq (%rcx), %rcx cmpq 0x3b8(%rcx), %rax jae 0x4134d movq -0x70(%rbp), %rax movq (%rax), %rax movq 0x3b8(%rax), %rax movq %rax, -0x90(%rbp) jmp 0x41367 movq -0x90(%rbp), %rax addq $0x4, %rax subq $0x1, %rax andq $-0x4, %rax movq %rax, -0x90(%rbp) movq -0x70(%rbp), %rax movq 0x20(%rax), %rax movq 0x28(%rax), %rax movq -0x70(%rbp), %rcx movq (%rcx), %rcx movq 0x368(%rcx), %rcx subq -0x90(%rbp), %rcx cmpq %rcx, %rax jbe 0x413a1 callq 0xf60c0 movl $0x87, (%rax) movl $0xffffffff, -0x64(%rbp) # imm = 0xFFFFFFFF jmp 0x41419 cmpq $0xfffffc, -0x90(%rbp) # imm = 0xFFFFFC jbe 0x413b9 movq $0xfffffc, -0x90(%rbp) # imm = 0xFFFFFC movq -0x90(%rbp), %rcx movq -0x88(%rbp), %rax movq %rcx, (%rax) movq -0x90(%rbp), %rcx movq -0x70(%rbp), %rax movq 0x20(%rax), %rax addq 0x28(%rax), %rcx movq %rcx, 0x28(%rax) movq -0x70(%rbp), %rax movq (%rax), %rax movq 0xc0(%rax), %rcx addq $0x1, %rcx movq %rcx, 0xc0(%rax) movq -0x70(%rbp), %rax movl 0x624(%rax), %ecx orl $0x100, %ecx # imm = 0x100 movl %ecx, 0x624(%rax) jmp 0x41412 movl $0x0, -0x64(%rbp) movl -0x64(%rbp), %eax movl %eax, -0x94(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x41443 movl -0x94(%rbp), %eax addq $0xa0, %rsp popq %rbp retq callq 0x2a270 nopl (%rax,%rax)
_ma_find_writepos: push rbp mov rbp, rsp sub rsp, 0A0h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_70], rdi mov [rbp+var_78], rsi mov [rbp+var_80], rdx mov [rbp+var_88], rcx mov rax, [rbp+var_70] mov rax, [rax] cmp qword ptr [rax+0C8h], 0FFFFFFFFFFFFFFFFh jz loc_412E9 mov rax, [rbp+var_70] cmp byte ptr [rax+681h], 0 jnz loc_412E9 mov rax, [rbp+var_70] mov rax, [rax] mov rcx, [rax+0C8h] mov rax, [rbp+var_80] mov [rax], rcx mov [rbp+var_10], 0 mov rax, [rbp+var_70] mov dword ptr [rax+598h], 1 mov rdi, [rbp+var_70] mov rax, [rbp+var_70] mov edx, [rax+480h] mov rax, [rbp+var_70] mov rax, [rax] mov rcx, [rax+0C8h] lea rsi, [rbp+var_60] call _ma_get_block_info and eax, 4 cmp eax, 0 jnz short loc_41299 jmp short $+2 loc_4127A: jmp short $+2 loc_4127C: mov rax, [rbp+var_70] mov rdi, [rax] mov esi, 7Fh call _ma_set_fatal_error_with_share mov [rbp+var_64], 0FFFFFFFFh jmp loc_41419 loc_41299: mov rcx, [rbp+var_20] mov rax, [rbp+var_70] mov rax, [rax] mov [rax+0C8h], rcx mov rax, [rbp+var_70] mov rax, [rax+20h] mov rcx, [rax+8] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+8], rcx mov rdx, [rbp+var_38] mov rax, [rbp+var_70] mov rax, [rax+20h] mov rcx, [rax+10h] sub rcx, rdx mov [rax+10h], rcx mov rcx, [rbp+var_38] mov rax, [rbp+var_88] mov [rax], rcx jmp loc_41410 loc_412E9: mov rax, [rbp+var_70] mov rax, [rax+20h] mov rcx, [rax+28h] mov rax, [rbp+var_80] mov [rax], rcx mov rax, [rbp+var_78] add rax, 3 mov rsi, [rbp+var_78] xor ecx, ecx mov edx, 1 cmp rsi, 0FFEDh cmovnb ecx, edx movsxd rcx, ecx add rax, rcx mov [rbp+var_90], rax mov rcx, [rbp+var_70] mov rcx, [rcx] cmp rax, [rcx+3B8h] jnb short loc_4134D mov rax, [rbp+var_70] mov rax, [rax] mov rax, [rax+3B8h] mov [rbp+var_90], rax jmp short loc_41367 loc_4134D: mov rax, [rbp+var_90] add rax, 4 sub rax, 1 and rax, 0FFFFFFFFFFFFFFFCh mov [rbp+var_90], rax loc_41367: mov rax, [rbp+var_70] mov rax, [rax+20h] mov rax, [rax+28h] mov rcx, [rbp+var_70] mov rcx, [rcx] mov rcx, [rcx+368h] sub rcx, [rbp+var_90] cmp rax, rcx jbe short loc_413A1 call _my_thread_var mov dword ptr [rax], 87h mov [rbp+var_64], 0FFFFFFFFh jmp short loc_41419 loc_413A1: cmp [rbp+var_90], 0FFFFFCh jbe short loc_413B9 mov [rbp+var_90], 0FFFFFCh loc_413B9: mov rcx, [rbp+var_90] mov rax, [rbp+var_88] mov [rax], rcx mov rcx, [rbp+var_90] mov rax, [rbp+var_70] mov rax, [rax+20h] add rcx, [rax+28h] mov [rax+28h], rcx mov rax, [rbp+var_70] mov rax, [rax] mov rcx, [rax+0C0h] add rcx, 1 mov [rax+0C0h], rcx mov rax, [rbp+var_70] mov ecx, [rax+624h] or ecx, 100h mov [rax+624h], ecx loc_41410: jmp short $+2 loc_41412: mov [rbp+var_64], 0 loc_41419: mov eax, [rbp+var_64] mov [rbp+var_94], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_41443 mov eax, [rbp+var_94] add rsp, 0A0h pop rbp retn loc_41443: call ___stack_chk_fail
long long ma_find_writepos( long long *a1, unsigned long long a2, _QWORD *a3, unsigned long long *a4, long long a5, int a6) { long long v6; // rdx long long v7; // rcx long long v8; // r8 int v9; // r9d unsigned long long v11; // [rsp+10h] [rbp-90h] unsigned long long v12; // [rsp+10h] [rbp-90h] unsigned __int8 v15[40]; // [rsp+40h] [rbp-60h] BYREF unsigned long long v16; // [rsp+68h] [rbp-38h] long long v17; // [rsp+80h] [rbp-20h] int v18; // [rsp+90h] [rbp-10h] unsigned long long v19; // [rsp+98h] [rbp-8h] v19 = __readfsqword(0x28u); if ( *(_QWORD *)(*a1 + 200) == -1LL || *((_BYTE *)a1 + 1665) ) { *a3 = *(_QWORD *)(a1[4] + 40); v11 = (a2 >= 0xFFED) + a2 + 3; if ( v11 >= *(_QWORD *)(*a1 + 952) ) v12 = (v11 + 3) & 0xFFFFFFFFFFFFFFFCLL; else v12 = *(_QWORD *)(*a1 + 952); if ( *(_QWORD *)(a1[4] + 40) > *(_QWORD *)(*a1 + 872) - v12 ) { *(_DWORD *)my_thread_var() = 135; return (unsigned int)-1; } if ( v12 > 0xFFFFFC ) v12 = 16777212LL; *a4 = v12; *(_QWORD *)(a1[4] + 40) += v12; ++*(_QWORD *)(*a1 + 192); *((_DWORD *)a1 + 393) |= 0x100u; return 0; } *a3 = *(_QWORD *)(*a1 + 200); v18 = 0; *((_DWORD *)a1 + 358) = 1; if ( (ma_get_block_info((long long)a1, v15, *((unsigned int *)a1 + 288), *(_QWORD *)(*a1 + 200), a5, a6) & 4) != 0 ) { *(_QWORD *)(*a1 + 200) = v17; --*(_QWORD *)(a1[4] + 8); *(_QWORD *)(a1[4] + 16) -= v16; *a4 = v16; return 0; } ma_set_fatal_error_with_share(*a1, 127, v6, v7, v8, v9); return (unsigned int)-1; }
_ma_find_writepos: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x70],RDI MOV qword ptr [RBP + -0x78],RSI MOV qword ptr [RBP + -0x80],RDX MOV qword ptr [RBP + -0x88],RCX MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX] CMP qword ptr [RAX + 0xc8],-0x1 JZ 0x001412e9 MOV RAX,qword ptr [RBP + -0x70] CMP byte ptr [RAX + 0x681],0x0 JNZ 0x001412e9 MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0xc8] MOV RAX,qword ptr [RBP + -0x80] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x10],0x0 MOV RAX,qword ptr [RBP + -0x70] MOV dword ptr [RAX + 0x598],0x1 MOV RDI,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0x70] MOV EDX,dword ptr [RAX + 0x480] MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0xc8] LEA RSI,[RBP + -0x60] CALL 0x0013e0e0 AND EAX,0x4 CMP EAX,0x0 JNZ 0x00141299 JMP 0x0014127a LAB_0014127a: JMP 0x0014127c LAB_0014127c: MOV RAX,qword ptr [RBP + -0x70] MOV RDI,qword ptr [RAX] MOV ESI,0x7f CALL 0x00133940 MOV dword ptr [RBP + -0x64],0xffffffff JMP 0x00141419 LAB_00141299: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0xc8],RCX MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RAX + 0x8] ADD RCX,-0x1 MOV qword ptr [RAX + 0x8],RCX MOV RDX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RAX + 0x10] SUB RCX,RDX MOV qword ptr [RAX + 0x10],RCX MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x88] MOV qword ptr [RAX],RCX JMP 0x00141410 LAB_001412e9: MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x80] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x78] ADD RAX,0x3 MOV RSI,qword ptr [RBP + -0x78] XOR ECX,ECX MOV EDX,0x1 CMP RSI,0xffed CMOVNC ECX,EDX MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x90],RAX MOV RCX,qword ptr [RBP + -0x70] MOV RCX,qword ptr [RCX] CMP RAX,qword ptr [RCX + 0x3b8] JNC 0x0014134d MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x3b8] MOV qword ptr [RBP + -0x90],RAX JMP 0x00141367 LAB_0014134d: MOV RAX,qword ptr [RBP + -0x90] ADD RAX,0x4 SUB RAX,0x1 AND RAX,-0x4 MOV qword ptr [RBP + -0x90],RAX LAB_00141367: MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x28] MOV RCX,qword ptr [RBP + -0x70] MOV RCX,qword ptr [RCX] MOV RCX,qword ptr [RCX + 0x368] SUB RCX,qword ptr [RBP + -0x90] CMP RAX,RCX JBE 0x001413a1 CALL 0x001f60c0 MOV dword ptr [RAX],0x87 MOV dword ptr [RBP + -0x64],0xffffffff JMP 0x00141419 LAB_001413a1: CMP qword ptr [RBP + -0x90],0xfffffc JBE 0x001413b9 MOV qword ptr [RBP + -0x90],0xfffffc LAB_001413b9: MOV RCX,qword ptr [RBP + -0x90] MOV RAX,qword ptr [RBP + -0x88] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x90] MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX + 0x20] ADD RCX,qword ptr [RAX + 0x28] MOV qword ptr [RAX + 0x28],RCX MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0xc0] ADD RCX,0x1 MOV qword ptr [RAX + 0xc0],RCX MOV RAX,qword ptr [RBP + -0x70] MOV ECX,dword ptr [RAX + 0x624] OR ECX,0x100 MOV dword ptr [RAX + 0x624],ECX LAB_00141410: JMP 0x00141412 LAB_00141412: MOV dword ptr [RBP + -0x64],0x0 LAB_00141419: MOV EAX,dword ptr [RBP + -0x64] MOV dword ptr [RBP + -0x94],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00141443 MOV EAX,dword ptr [RBP + -0x94] ADD RSP,0xa0 POP RBP RET LAB_00141443: CALL 0x0012a270
int4 _ma_find_writepos(long *param_1,ulong param_2,int8 *param_3,ulong *param_4) { uint uVar1; ulong uVar2; int4 *puVar3; long in_FS_OFFSET; ulong local_98; int4 local_6c; int1 local_68 [40]; ulong local_40; int8 local_28; int4 local_18; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if ((*(long *)(*param_1 + 200) == -1) || (*(char *)((long)param_1 + 0x681) != '\0')) { *param_3 = *(int8 *)(param_1[4] + 0x28); uVar2 = param_2 + 3 + (long)(int)(uint)(0xffec < param_2); if (uVar2 < *(ulong *)(*param_1 + 0x3b8)) { local_98 = *(ulong *)(*param_1 + 0x3b8); } else { local_98 = uVar2 + 3 & 0xfffffffffffffffc; } if (*(long *)(*param_1 + 0x368) - local_98 < *(ulong *)(param_1[4] + 0x28)) { puVar3 = (int4 *)_my_thread_var(); *puVar3 = 0x87; local_6c = 0xffffffff; goto LAB_00141419; } if (0xfffffc < local_98) { local_98 = 0xfffffc; } *param_4 = local_98; *(ulong *)(param_1[4] + 0x28) = local_98 + *(long *)(param_1[4] + 0x28); *(long *)(*param_1 + 0xc0) = *(long *)(*param_1 + 0xc0) + 1; *(uint *)((long)param_1 + 0x624) = *(uint *)((long)param_1 + 0x624) | 0x100; } else { *param_3 = *(int8 *)(*param_1 + 200); local_18 = 0; *(int4 *)(param_1 + 0xb3) = 1; uVar1 = _ma_get_block_info(param_1,local_68,(int)param_1[0x90],*(int8 *)(*param_1 + 200)); if ((uVar1 & 4) == 0) { _ma_set_fatal_error_with_share(*param_1,0x7f); local_6c = 0xffffffff; goto LAB_00141419; } *(int8 *)(*param_1 + 200) = local_28; *(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + -1; *(ulong *)(param_1[4] + 0x10) = *(long *)(param_1[4] + 0x10) - local_40; *param_4 = local_40; } local_6c = 0; LAB_00141419: if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_6c; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
38,983
my_sync_dir_by_file
eloqsql/mysys/my_sync.c
int my_sync_dir_by_file(const char *file_name __attribute__((unused)), myf my_flags __attribute__((unused))) { #ifdef NEED_EXPLICIT_SYNC_DIR char dir_name[FN_REFLEN]; size_t dir_name_length; dirname_part(dir_name, file_name, &dir_name_length); return my_sync_dir(dir_name, my_flags & ~MY_NOSYMLINKS); #else return 0; #endif }
O3
c
my_sync_dir_by_file: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x220, %rsp # imm = 0x220 movq %rsi, %rbx movq %rdi, %rsi movq %fs:0x28, %rax movq %rax, -0x18(%rbp) leaq -0x220(%rbp), %r14 leaq -0x228(%rbp), %rdx movq %r14, %rdi callq 0x944f5 andl $0xfffffdff, %ebx # imm = 0xFFFFFDFF movq %r14, %rdi movq %rbx, %rsi callq 0xa11a1 movq %fs:0x28, %rcx cmpq -0x18(%rbp), %rcx jne 0xa1272 addq $0x220, %rsp # imm = 0x220 popq %rbx popq %r14 popq %rbp retq callq 0x29270 nop
my_sync_dir_by_file: push rbp mov rbp, rsp push r14 push rbx sub rsp, 220h mov rbx, rsi mov rsi, rdi mov rax, fs:28h mov [rbp+var_18], rax lea r14, [rbp+var_220] lea rdx, [rbp+var_228] mov rdi, r14 call dirname_part and ebx, 0FFFFFDFFh mov rdi, r14 mov rsi, rbx call my_sync_dir mov rcx, fs:28h cmp rcx, [rbp+var_18] jnz short loc_A1272 add rsp, 220h pop rbx pop r14 pop rbp retn loc_A1272: call ___stack_chk_fail
long long my_sync_dir_by_file(_BYTE *a1, int a2) { long long v3; // [rsp+8h] [rbp-228h] BYREF _BYTE v4[520]; // [rsp+10h] [rbp-220h] BYREF unsigned long long v5; // [rsp+218h] [rbp-18h] v5 = __readfsqword(0x28u); dirname_part((long long)v4, a1, &v3); return my_sync_dir(v4, a2 & 0xFFFFFDFF); }
my_sync_dir_by_file: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x220 MOV RBX,RSI MOV RSI,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x18],RAX LEA R14,[RBP + -0x220] LEA RDX,[RBP + -0x228] MOV RDI,R14 CALL 0x001944f5 AND EBX,0xfffffdff MOV RDI,R14 MOV RSI,RBX CALL 0x001a11a1 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x18] JNZ 0x001a1272 ADD RSP,0x220 POP RBX POP R14 POP RBP RET LAB_001a1272: CALL 0x00129270
void my_sync_dir_by_file(int8 param_1,uint param_2) { long in_FS_OFFSET; int1 local_230 [8]; int1 local_228 [520]; long local_20; local_20 = *(long *)(in_FS_OFFSET + 0x28); dirname_part(local_228,param_1,local_230); my_sync_dir(local_228,param_2 & 0xfffffdff); if (*(long *)(in_FS_OFFSET + 0x28) == local_20) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
38,984
Cache::getBlockId(unsigned int)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
uint32_t Cache::getBlockId(uint32_t addr) { uint32_t tag = this->getTag(addr); uint32_t id = this->getId(addr); // printf("0x%x 0x%x 0x%x\n", addr, tag, id); // iterate over the given set for (uint32_t i = id * policy.associativity; i < (id + 1) * policy.associativity; ++i) { if (this->blocks[i].id != id) { fprintf(stderr, "Inconsistent ID in block %d\n", i); exit(-1); } if (this->blocks[i].valid && this->blocks[i].tag == tag) { return i; } } return -1; }
O0
cpp
Cache::getBlockId(unsigned int): subq $0x28, %rsp movq %rdi, 0x18(%rsp) movl %esi, 0x14(%rsp) movq 0x18(%rsp), %rdi movq %rdi, (%rsp) movl 0x14(%rsp), %esi callq 0x25fc0 movq (%rsp), %rdi movl %eax, 0x10(%rsp) movl 0x14(%rsp), %esi callq 0x26030 movq (%rsp), %rcx movl %eax, 0xc(%rsp) movl 0xc(%rsp), %eax imull 0x3c(%rcx), %eax movl %eax, 0x8(%rsp) movq (%rsp), %rdx movl 0x8(%rsp), %eax movl 0xc(%rsp), %ecx addl $0x1, %ecx imull 0x3c(%rdx), %ecx cmpl %ecx, %eax jae 0x25fa1 movq (%rsp), %rdi addq $0x48, %rdi movl 0x8(%rsp), %eax movl %eax, %esi callq 0x26e50 movl 0x8(%rax), %eax cmpl 0xc(%rsp), %eax je 0x25f51 movq 0xd0a6(%rip), %rax # 0x32fd8 movq (%rax), %rdi movl 0x8(%rsp), %edx leaq 0x44d8(%rip), %rsi # 0x2a418 movb $0x0, %al callq 0x15320 movl $0xffffffff, %edi # imm = 0xFFFFFFFF callq 0x15260 movq (%rsp), %rdi addq $0x48, %rdi movl 0x8(%rsp), %eax movl %eax, %esi callq 0x26e50 testb $0x1, (%rax) je 0x25f8f movq (%rsp), %rdi addq $0x48, %rdi movl 0x8(%rsp), %eax movl %eax, %esi callq 0x26e50 movl 0x4(%rax), %eax cmpl 0x10(%rsp), %eax jne 0x25f8f movl 0x8(%rsp), %eax movl %eax, 0x24(%rsp) jmp 0x25fa9 jmp 0x25f91 movl 0x8(%rsp), %eax addl $0x1, %eax movl %eax, 0x8(%rsp) jmp 0x25ef4 movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF movl 0x24(%rsp), %eax addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
_ZN5Cache10getBlockIdEj: sub rsp, 28h mov [rsp+28h+var_10], rdi mov [rsp+28h+var_14], esi mov rdi, [rsp+28h+var_10]; this mov [rsp+28h+var_28], rdi mov esi, [rsp+28h+var_14]; unsigned int call _ZN5Cache6getTagEj; Cache::getTag(uint) mov rdi, [rsp+28h+var_28]; this mov [rsp+28h+var_18], eax mov esi, [rsp+28h+var_14]; unsigned int call _ZN5Cache5getIdEj; Cache::getId(uint) mov rcx, [rsp+28h+var_28] mov [rsp+28h+var_1C], eax mov eax, [rsp+28h+var_1C] imul eax, [rcx+3Ch] mov [rsp+28h+var_20], eax loc_25EF4: mov rdx, [rsp+28h+var_28] mov eax, [rsp+28h+var_20] mov ecx, [rsp+28h+var_1C] add ecx, 1 imul ecx, [rdx+3Ch] cmp eax, ecx jnb loc_25FA1 mov rdi, [rsp+28h+var_28] add rdi, 48h ; 'H' mov eax, [rsp+28h+var_20] mov esi, eax call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov eax, [rax+8] cmp eax, [rsp+28h+var_1C] jz short loc_25F51 mov rax, cs:stderr_ptr mov rdi, [rax] mov edx, [rsp+28h+var_20] lea rsi, aInconsistentId; "Inconsistent ID in block %d\n" mov al, 0 call _fprintf mov edi, 0FFFFFFFFh call _exit loc_25F51: mov rdi, [rsp+28h+var_28] add rdi, 48h ; 'H' mov eax, [rsp+28h+var_20] mov esi, eax call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) test byte ptr [rax], 1 jz short loc_25F8F mov rdi, [rsp+28h+var_28] add rdi, 48h ; 'H' mov eax, [rsp+28h+var_20] mov esi, eax call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov eax, [rax+4] cmp eax, [rsp+28h+var_18] jnz short loc_25F8F mov eax, [rsp+28h+var_20] mov [rsp+28h+var_4], eax jmp short loc_25FA9 loc_25F8F: jmp short $+2 loc_25F91: mov eax, [rsp+28h+var_20] add eax, 1 mov [rsp+28h+var_20], eax jmp loc_25EF4 loc_25FA1: mov [rsp+28h+var_4], 0FFFFFFFFh loc_25FA9: mov eax, [rsp+28h+var_4] add rsp, 28h retn
long long Cache::getBlockId(Cache *this, unsigned int a2) { unsigned int i; // [rsp+8h] [rbp-20h] int Id; // [rsp+Ch] [rbp-1Ch] int Tag; // [rsp+10h] [rbp-18h] Tag = Cache::getTag(this, a2); Id = Cache::getId(this, a2); for ( i = *((_DWORD *)this + 15) * Id; i < *((_DWORD *)this + 15) * (Id + 1); ++i ) { if ( *(_DWORD *)(std::vector<Cache::Block>::operator[]((char *)this + 72, i) + 8) != Id ) { fprintf(stderr, "Inconsistent ID in block %d\n", i); exit(0xFFFFFFFFLL); } if ( (*(_BYTE *)std::vector<Cache::Block>::operator[]((char *)this + 72, i) & 1) != 0 && *(_DWORD *)(std::vector<Cache::Block>::operator[]((char *)this + 72, i) + 4) == Tag ) { return i; } } return (unsigned int)-1; }
getBlockId: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV dword ptr [RSP + 0x14],ESI MOV RDI,qword ptr [RSP + 0x18] MOV qword ptr [RSP],RDI MOV ESI,dword ptr [RSP + 0x14] CALL 0x00125fc0 MOV RDI,qword ptr [RSP] MOV dword ptr [RSP + 0x10],EAX MOV ESI,dword ptr [RSP + 0x14] CALL 0x00126030 MOV RCX,qword ptr [RSP] MOV dword ptr [RSP + 0xc],EAX MOV EAX,dword ptr [RSP + 0xc] IMUL EAX,dword ptr [RCX + 0x3c] MOV dword ptr [RSP + 0x8],EAX LAB_00125ef4: MOV RDX,qword ptr [RSP] MOV EAX,dword ptr [RSP + 0x8] MOV ECX,dword ptr [RSP + 0xc] ADD ECX,0x1 IMUL ECX,dword ptr [RDX + 0x3c] CMP EAX,ECX JNC 0x00125fa1 MOV RDI,qword ptr [RSP] ADD RDI,0x48 MOV EAX,dword ptr [RSP + 0x8] MOV ESI,EAX CALL 0x00126e50 MOV EAX,dword ptr [RAX + 0x8] CMP EAX,dword ptr [RSP + 0xc] JZ 0x00125f51 MOV RAX,qword ptr [0x00132fd8] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0x8] LEA RSI,[0x12a418] MOV AL,0x0 CALL 0x00115320 MOV EDI,0xffffffff CALL 0x00115260 LAB_00125f51: MOV RDI,qword ptr [RSP] ADD RDI,0x48 MOV EAX,dword ptr [RSP + 0x8] MOV ESI,EAX CALL 0x00126e50 TEST byte ptr [RAX],0x1 JZ 0x00125f8f MOV RDI,qword ptr [RSP] ADD RDI,0x48 MOV EAX,dword ptr [RSP + 0x8] MOV ESI,EAX CALL 0x00126e50 MOV EAX,dword ptr [RAX + 0x4] CMP EAX,dword ptr [RSP + 0x10] JNZ 0x00125f8f MOV EAX,dword ptr [RSP + 0x8] MOV dword ptr [RSP + 0x24],EAX JMP 0x00125fa9 LAB_00125f8f: JMP 0x00125f91 LAB_00125f91: MOV EAX,dword ptr [RSP + 0x8] ADD EAX,0x1 MOV dword ptr [RSP + 0x8],EAX JMP 0x00125ef4 LAB_00125fa1: MOV dword ptr [RSP + 0x24],0xffffffff LAB_00125fa9: MOV EAX,dword ptr [RSP + 0x24] ADD RSP,0x28 RET
/* Cache::getBlockId(unsigned int) */ uint __thiscall Cache::getBlockId(Cache *this,uint param_1) { int iVar1; int iVar2; long lVar3; byte *pbVar4; uint local_20; iVar1 = getTag(this,param_1); iVar2 = getId(this,param_1); local_20 = iVar2 * *(int *)(this + 0x3c); while( true ) { if ((uint)((iVar2 + 1) * *(int *)(this + 0x3c)) <= local_20) { return 0xffffffff; } lVar3 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (ulong)local_20); if (*(int *)(lVar3 + 8) != iVar2) break; pbVar4 = (byte *)std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (ulong)local_20); if (((*pbVar4 & 1) != 0) && (lVar3 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (ulong)local_20), *(int *)(lVar3 + 4) == iVar1)) { return local_20; } local_20 = local_20 + 1; } fprintf(*(FILE **)PTR_stderr_00132fd8,"Inconsistent ID in block %d\n",(ulong)local_20); /* WARNING: Subroutine does not return */ exit(-1); }
38,985
Cache::getBlockId(unsigned int)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
uint32_t Cache::getBlockId(uint32_t addr) { uint32_t tag = this->getTag(addr); uint32_t id = this->getId(addr); // printf("0x%x 0x%x 0x%x\n", addr, tag, id); // iterate over the given set for (uint32_t i = id * policy.associativity; i < (id + 1) * policy.associativity; ++i) { if (this->blocks[i].id != id) { fprintf(stderr, "Inconsistent ID in block %d\n", i); exit(-1); } if (this->blocks[i].valid && this->blocks[i].tag == tag) { return i; } } return -1; }
O3
cpp
Cache::getBlockId(unsigned int): pushq %rbp pushq %r14 pushq %rbx movl %esi, %ebp movq %rdi, %r14 callq 0x13622 movl %eax, %ebx movq %r14, %rdi movl %ebp, %esi callq 0x13686 movl %eax, %ecx movl 0x3c(%r14), %edx movl %edx, %esi imull %eax, %esi leal 0x1(%rcx), %edi imull %edx, %edi movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpl %edi, %esi jae 0x13617 movq 0x48(%r14), %r8 movl %esi, %edi leaq (%rdi,%rdi,2), %rsi shlq $0x4, %rsi addq %r8, %rsi addq $0x8, %rsi cmpl %ecx, (%rsi) jne 0x1361c cmpb $0x1, -0x8(%rsi) jne 0x13608 cmpl %ebx, -0x4(%rsi) je 0x13615 incq %rdi addq $0x30, %rsi decl %edx jne 0x135f9 jmp 0x13617 movl %edi, %eax popq %rbx popq %r14 popq %rbp retq callq 0xb579 nop
_ZN5Cache10getBlockIdEj: push rbp push r14 push rbx mov ebp, esi mov r14, rdi call _ZN5Cache6getTagEj; Cache::getTag(uint) mov ebx, eax mov rdi, r14; this mov esi, ebp; unsigned int call _ZN5Cache5getIdEj; Cache::getId(uint) mov ecx, eax mov edx, [r14+3Ch] mov esi, edx imul esi, eax lea edi, [rcx+1] imul edi, edx mov eax, 0FFFFFFFFh cmp esi, edi jnb short loc_13617 mov r8, [r14+48h] mov edi, esi lea rsi, [rdi+rdi*2] shl rsi, 4 add rsi, r8 add rsi, 8 loc_135F9: cmp [rsi], ecx jnz short loc_1361C cmp byte ptr [rsi-8], 1 jnz short loc_13608 cmp [rsi-4], ebx jz short loc_13615 loc_13608: inc rdi add rsi, 30h ; '0' dec edx jnz short loc_135F9 jmp short loc_13617 loc_13615: mov eax, edi loc_13617: pop rbx pop r14 pop rbp retn loc_1361C: call _ZN5Cache10getBlockIdEj_cold_1; Cache::getBlockId(uint) [clone]
long long Cache::getBlockId(Cache *this, unsigned int a2) { int Tag; // ebx int Id; // ecx int v5; // edx long long result; // rax unsigned int v7; // edi _DWORD *i; // rsi Tag = Cache::getTag(this, a2); Id = Cache::getId(this, a2); v5 = *((_DWORD *)this + 15); result = 0xFFFFFFFFLL; if ( Id * v5 < (unsigned int)(v5 * (Id + 1)) ) { v7 = Id * v5; for ( i = (_DWORD *)(*((_QWORD *)this + 9) + 48LL * (unsigned int)(Id * v5) + 8); ; i += 12 ) { if ( *i != Id ) Cache::getBlockId(v7); if ( *((_BYTE *)i - 8) == 1 && *(i - 1) == Tag ) break; ++v7; if ( !--v5 ) return result; } return v7; } return result; }
getBlockId: PUSH RBP PUSH R14 PUSH RBX MOV EBP,ESI MOV R14,RDI CALL 0x00113622 MOV EBX,EAX MOV RDI,R14 MOV ESI,EBP CALL 0x00113686 MOV ECX,EAX MOV EDX,dword ptr [R14 + 0x3c] MOV ESI,EDX IMUL ESI,EAX LEA EDI,[RCX + 0x1] IMUL EDI,EDX MOV EAX,0xffffffff CMP ESI,EDI JNC 0x00113617 MOV R8,qword ptr [R14 + 0x48] MOV EDI,ESI LEA RSI,[RDI + RDI*0x2] SHL RSI,0x4 ADD RSI,R8 ADD RSI,0x8 LAB_001135f9: CMP dword ptr [RSI],ECX JNZ 0x0011361c CMP byte ptr [RSI + -0x8],0x1 JNZ 0x00113608 CMP dword ptr [RSI + -0x4],EBX JZ 0x00113615 LAB_00113608: INC RDI ADD RSI,0x30 DEC EDX JNZ 0x001135f9 JMP 0x00113617 LAB_00113615: MOV EAX,EDI LAB_00113617: POP RBX POP R14 POP RBP RET LAB_0011361c: CALL 0x0010b579 NOP
/* Cache::getBlockId(unsigned int) */ int1 [16] __thiscall Cache::getBlockId(Cache *this,uint param_1) { bool bVar1; int iVar2; int iVar3; ulong uVar4; char cVar5; uint uVar6; ulong uVar7; int *piVar8; ulong uVar9; char cVar10; char cVar11; int1 auVar12 [16]; int1 auVar13 [16]; iVar2 = getTag(this,param_1); iVar3 = getId(this,param_1); uVar6 = *(uint *)(this + 0x3c); uVar7 = (ulong)uVar6; uVar4 = 0xffffffff; if (uVar6 * iVar3 < (iVar3 + 1) * uVar6) { uVar9 = (ulong)(uVar6 * iVar3); piVar8 = (int *)(uVar9 * 0x30 + *(long *)(this + 0x48) + 8); do { if (*piVar8 != iVar3) { getBlockId((uint)uVar9); uVar6 = *(uint *)(uVar9 + 0x34); cVar10 = -1; cVar5 = -1; if (uVar6 != 0) { cVar5 = '\0'; if (uVar6 != 1) { uVar4 = (ulong)uVar6; cVar5 = '\0'; do { uVar4 = uVar4 >> 1; cVar5 = cVar5 + '\x01'; bVar1 = 3 < uVar6; uVar6 = (uint)uVar4; } while (bVar1); } } uVar4 = (ulong)*(uint *)(uVar9 + 0x38) / (ulong)*(uint *)(uVar9 + 0x3c); uVar7 = (ulong)*(uint *)(uVar9 + 0x38) % (ulong)*(uint *)(uVar9 + 0x3c); if ((int)uVar4 != 0) { cVar11 = '\0'; cVar10 = '\0'; if ((int)uVar4 != 1) { do { uVar7 = uVar4 >> 1; cVar10 = cVar11 + '\x01'; uVar6 = (uint)uVar4; uVar4 = uVar7; cVar11 = cVar10; } while (3 < uVar6); } } auVar13._4_4_ = 0; auVar13._0_4_ = (uint)piVar8 >> (cVar10 + cVar5 & 0x1fU) & ~(-1 << (-(cVar10 + cVar5) & 0x1fU)); auVar13._8_8_ = uVar7; return auVar13; } if (((char)piVar8[-2] == '\x01') && (piVar8[-1] == iVar2)) { uVar4 = uVar9 & 0xffffffff; break; } uVar9 = uVar9 + 1; piVar8 = piVar8 + 0xc; uVar6 = (int)uVar7 - 1; uVar7 = (ulong)uVar6; } while (uVar6 != 0); } auVar12._8_8_ = uVar7; auVar12._0_8_ = uVar4; return auVar12; }
38,986
Generator::gen_term(NodeTerm const*)::TermVisitor::operator()(NodeTermIntLit const*) const
BhuvanGudi[P]LexiParse/src/generation.hpp
void operator()(const NodeTermIntLit* term_int_lit) const { gen.m_output << " mov rax, " << term_int_lit->int_lit.value.value() << "\n"; gen.push("rax"); }
O3
cpp
Generator::gen_term(NodeTerm const*)::TermVisitor::operator()(NodeTermIntLit const*) const: pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rsi, %r15 movq %rdi, %rbx movq (%rdi), %r14 addq $0x28, %r14 leaq 0x23f2(%rip), %rsi # 0x9457 movl $0xd, %edx movq %r14, %rdi callq 0x2230 cmpb $0x0, 0x28(%r15) je 0x70ed movq 0x8(%r15), %rsi movq 0x10(%r15), %rdx movq %r14, %rdi callq 0x2230 leaq 0x2399(%rip), %rsi # 0x9429 movl $0x1, %edx movq %rax, %rdi callq 0x2230 movq (%rbx), %rbx leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x23b5(%rip), %rsi # 0x9465 leaq 0x23b1(%rip), %rdx # 0x9468 movq %rsp, %r14 movq %r14, %rdi callq 0x6d44 movq %rbx, %rdi movq %r14, %rsi callq 0x7124 movq (%rsp), %rdi cmpq %r15, %rdi je 0x70e3 movq 0x10(%rsp), %rsi incq %rsi callq 0x2200 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq callq 0x36ac movq %rax, %rbx movq (%rsp), %rdi cmpq %r15, %rdi je 0x710b movq 0x10(%rsp), %rsi incq %rsi callq 0x2200 movq %rbx, %rdi callq 0x22d0 nop
_ZZN9Generator8gen_termEPK8NodeTermENK11TermVisitorclEPK14NodeTermIntLit: push r15 push r14 push rbx sub rsp, 20h mov r15, rsi mov rbx, rdi mov r14, [rdi] add r14, 28h ; '(' lea rsi, aMovRax; " mov rax, " mov edx, 0Dh mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) cmp byte ptr [r15+28h], 0 jz short loc_70ED mov rsi, [r15+8] mov rdx, [r15+10h] mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aMovRdi0+0Eh; "\n" mov edx, 1 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rbx, [rbx] lea r15, [rsp+38h+var_28] mov [r15-10h], r15 lea rsi, aRax; "rax" lea rdx, aRax+3; "" mov r14, rsp mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rdi, rbx mov rsi, r14 call _ZN9Generator4pushERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Generator::push(std::string const&) mov rdi, [rsp+38h+var_38]; void * cmp rdi, r15 jz short loc_70E3 mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_70E3: add rsp, 20h pop rbx pop r14 pop r15 retn loc_70ED: call _ZSt27__throw_bad_optional_accessv; std::__throw_bad_optional_access(void) mov rbx, rax mov rdi, [rsp+38h+var_38]; void * cmp rdi, r15 jz short loc_710B mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_710B: mov rdi, rbx call __Unwind_Resume
void Generator::gen_term(NodeTerm const*)::TermVisitor::operator()(long long *a1, long long a2) { long long v2; // r14 long long v3; // rax long long v4; // rbx void *v5[2]; // [rsp+0h] [rbp-38h] BYREF _QWORD v6[5]; // [rsp+10h] [rbp-28h] BYREF v2 = *a1 + 40; std::__ostream_insert<char,std::char_traits<char>>(v2, " mov rax, ", 13LL); if ( !*(_BYTE *)(a2 + 40) ) std::__throw_bad_optional_access(); v3 = std::__ostream_insert<char,std::char_traits<char>>(v2, *(_QWORD *)(a2 + 8), *(_QWORD *)(a2 + 16)); std::__ostream_insert<char,std::char_traits<char>>(v3, "\n", 1LL); v4 = *a1; v5[0] = v6; std::string::_M_construct<char const*>(v5, "rax", (long long)""); Generator::push(v4, v5); if ( v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); }
operator(): PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV R15,RSI MOV RBX,RDI MOV R14,qword ptr [RDI] ADD R14,0x28 LEA RSI,[0x109457] MOV EDX,0xd MOV RDI,R14 CALL 0x00102230 CMP byte ptr [R15 + 0x28],0x0 JZ 0x001070ed MOV RSI,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV RDI,R14 CALL 0x00102230 LEA RSI,[0x109429] MOV EDX,0x1 MOV RDI,RAX CALL 0x00102230 MOV RBX,qword ptr [RBX] LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 LEA RSI,[0x109465] LEA RDX,[0x109468] MOV R14,RSP MOV RDI,R14 CALL 0x00106d44 LAB_001070c2: MOV RDI,RBX MOV RSI,R14 CALL 0x00107124 LAB_001070cd: MOV RDI,qword ptr [RSP] CMP RDI,R15 JZ 0x001070e3 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00102200 LAB_001070e3: ADD RSP,0x20 POP RBX POP R14 POP R15 RET LAB_001070ed: CALL 0x001036ac
/* Generator::gen_term(NodeTerm const*)::TermVisitor::TEMPNAMEPLACEHOLDERVALUE(NodeTermIntLit const*) const */ void __thiscall Generator::gen_term(NodeTerm_const*)::TermVisitor::operator() (TermVisitor *this,NodeTermIntLit *param_1) { long lVar1; Generator *this_00; ostream *poVar2; long *local_38 [2]; long local_28 [2]; lVar1 = *(long *)this; std::__ostream_insert<char,std::char_traits<char>>((ostream *)(lVar1 + 0x28)," mov rax, ",0xd); if (param_1[0x28] != (NodeTermIntLit)0x0) { poVar2 = std::__ostream_insert<char,std::char_traits<char>> ((ostream *)(lVar1 + 0x28),*(char **)(param_1 + 8),*(long *)(param_1 + 0x10)) ; std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1); this_00 = *(Generator **)this; local_38[0] = local_28; std::__cxx11::string::_M_construct<char_const*>(local_38,&DAT_00109465,&DAT_00109468); /* try { // try from 001070c2 to 001070cc has its CatchHandler @ 001070f2 */ push(this_00,(string *)local_38); if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } return; } /* WARNING: Subroutine does not return */ std::__throw_bad_optional_access(); }
38,987
psi_prlock_rdlock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_prlock_rdlock(mysql_prlock_t *that, const char *file, uint line) { PSI_rwlock_locker_state state; PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait) (&state, that->m_psi, PSI_RWLOCK_READLOCK, file, line); int result= rw_pr_rdlock(&that->m_prlock); if (locker) PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result); return result; }
O0
c
psi_prlock_rdlock: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) leaq 0x1a7046(%rip), %rax # 0x1d0a60 movq (%rax), %rax movq 0x1a0(%rax), %rax movq -0x8(%rbp), %rcx movq 0x68(%rcx), %rsi movq -0x10(%rbp), %rcx movl -0x14(%rbp), %r8d leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *%rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rdi callq 0x2a110 movl %eax, -0x54(%rbp) cmpq $0x0, -0x50(%rbp) je 0x29a6d leaq 0x1a7006(%rip), %rax # 0x1d0a60 movq (%rax), %rax movq 0x1a8(%rax), %rax movq -0x50(%rbp), %rdi movl -0x54(%rbp), %esi callq *%rax movl -0x54(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
psi_prlock_rdlock: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx lea rax, PSI_server mov rax, [rax] mov rax, [rax+1A0h] mov rcx, [rbp+var_8] mov rsi, [rcx+68h] mov rcx, [rbp+var_10] mov r8d, [rbp+var_14] lea rdi, [rbp+var_48] xor edx, edx call rax mov [rbp+var_50], rax mov rdi, [rbp+var_8] call rw_pr_rdlock mov [rbp+var_54], eax cmp [rbp+var_50], 0 jz short loc_29A6D lea rax, PSI_server mov rax, [rax] mov rax, [rax+1A8h] mov rdi, [rbp+var_50] mov esi, [rbp+var_54] call rax loc_29A6D: mov eax, [rbp+var_54] add rsp, 60h pop rbp retn
long long psi_prlock_rdlock(long long a1, long long a2, unsigned int a3) { unsigned int v4; // [rsp+Ch] [rbp-54h] long long v5; // [rsp+10h] [rbp-50h] _BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF unsigned int v7; // [rsp+4Ch] [rbp-14h] long long v8; // [rsp+50h] [rbp-10h] long long v9; // [rsp+58h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[0] + 52))( v6, *(_QWORD *)(a1 + 104), 0LL, a2, a3); v4 = rw_pr_rdlock(v9); if ( v5 ) (*((void ( **)(long long, _QWORD))PSI_server[0] + 53))(v5, v4); return v4; }
psi_prlock_rdlock: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LEA RAX,[0x2d0a60] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1a0] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x68] MOV RCX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RBP + -0x14] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL RAX MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x0012a110 MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x00129a6d LEA RAX,[0x2d0a60] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1a8] MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x54] CALL RAX LAB_00129a6d: MOV EAX,dword ptr [RBP + -0x54] ADD RSP,0x60 POP RBP RET
int4 psi_prlock_rdlock(long param_1,int8 param_2,int4 param_3) { int4 uVar1; long lVar2; int1 local_50 [52]; int4 local_1c; int8 local_18; long local_10; local_1c = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 0x1a0)) (local_50,*(int8 *)(param_1 + 0x68),0,param_2,param_3); uVar1 = rw_pr_rdlock(local_10); if (lVar2 != 0) { (**(code **)(PSI_server + 0x1a8))(lVar2,uVar1); } return uVar1; }
38,988
add_compiled_collation
eloqsql/mysys/charset.c
void add_compiled_collation(struct charset_info_st *cs) { DBUG_ASSERT(cs->number < array_elements(all_charsets)); all_charsets[cs->number]= cs; cs->state|= MY_CS_AVAILABLE; if ((my_hash_insert(&charset_name_hash, (uchar*) cs))) { #ifndef DBUG_OFF CHARSET_INFO *org= (CHARSET_INFO*) my_hash_search(&charset_name_hash, (uchar*) cs->cs_name.str, cs->cs_name.length); DBUG_ASSERT(org); DBUG_ASSERT(org->cs_name.str == cs->cs_name.str); DBUG_ASSERT(org->cs_name.length == strlen(cs->cs_name.str)); #endif } }
O0
c
add_compiled_collation: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) jmp 0xa83ae movq -0x8(%rbp), %rdx movq -0x8(%rbp), %rax movl (%rax), %eax movl %eax, %ecx leaq 0xb9ad7f(%rip), %rax # 0xc43140 movq %rdx, (%rax,%rcx,8) movq -0x8(%rbp), %rax movl 0xc(%rax), %ecx orl $0x200, %ecx # imm = 0x200 movl %ecx, 0xc(%rax) movq -0x8(%rbp), %rsi leaq 0xb9ed60(%rip), %rdi # 0xc47140 callq 0xad570 cmpb $0x0, %al je 0xa83eb jmp 0xa83eb addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
add_compiled_collation: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi jmp short $+2 loc_A83AE: mov rdx, [rbp+var_8] mov rax, [rbp+var_8] mov eax, [rax] mov ecx, eax lea rax, all_charsets mov [rax+rcx*8], rdx mov rax, [rbp+var_8] mov ecx, [rax+0Ch] or ecx, 200h mov [rax+0Ch], ecx mov rsi, [rbp+var_8] lea rdi, charset_name_hash call my_hash_insert cmp al, 0 jz short loc_A83EB jmp short $+2 loc_A83EB: add rsp, 10h pop rbp retn
long long add_compiled_collation(unsigned int *a1) { all_charsets[*a1] = a1; a1[3] |= 0x200u; return my_hash_insert(&charset_name_hash, a1); }
add_compiled_collation: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI JMP 0x001a83ae LAB_001a83ae: MOV RDX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] MOV ECX,EAX LEA RAX,[0xd43140] MOV qword ptr [RAX + RCX*0x8],RDX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0xc] OR ECX,0x200 MOV dword ptr [RAX + 0xc],ECX MOV RSI,qword ptr [RBP + -0x8] LEA RDI,[0xd47140] CALL 0x001ad570 CMP AL,0x0 JZ 0x001a83eb JMP 0x001a83eb LAB_001a83eb: ADD RSP,0x10 POP RBP RET
void add_compiled_collation(uint *param_1) { (&all_charsets)[*param_1] = param_1; param_1[3] = param_1[3] | 0x200; my_hash_insert(charset_name_hash,param_1); return; }
38,989
mi_checksum
eloqsql/storage/myisam/mi_checksum.c
ha_checksum mi_checksum(MI_INFO *info, const uchar *buf) { ha_checksum crc=0; const uchar *record= buf; MI_COLUMNDEF *column= info->s->rec; MI_COLUMNDEF *column_end= column+ info->s->base.fields; my_bool skip_null_bits= MY_TEST(info->s->options & HA_OPTION_NULL_FIELDS); for ( ; column != column_end ; buf+= column++->length) { const uchar *pos; ulong length; if ((record[column->null_pos] & column->null_bit) && skip_null_bits) continue; /* Null field */ switch (column->type) { case FIELD_BLOB: { length=_mi_calc_blob_length(column->length- portable_sizeof_char_ptr, buf); memcpy((void*) &pos, buf+column->length - portable_sizeof_char_ptr, sizeof(char*)); break; } case FIELD_VARCHAR: { uint pack_length= HA_VARCHAR_PACKLENGTH(column->length-1); if (pack_length == 1) length= (ulong) *(uchar*) buf; else length= uint2korr(buf); pos= buf+pack_length; break; } default: length=column->length; pos=buf; break; } crc=my_checksum(crc, pos ? pos : (uchar*) "", length); } return crc; }
O0
c
mi_checksum: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl $0x0, -0x14(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq 0x230(%rax), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq -0x8(%rbp), %rcx movq (%rcx), %rcx imulq $0x30, 0x168(%rcx), %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq 0x318(%rax), %rdx andq $0x400, %rdx # imm = 0x400 xorl %eax, %eax movl $0x1, %ecx cmpq $0x0, %rdx cmovnel %ecx, %eax movb %al, -0x31(%rbp) movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax je 0xd6e4b movq -0x20(%rbp), %rax movq -0x28(%rbp), %rcx movzwl 0xe(%rcx), %ecx movzbl (%rax,%rcx), %eax movq -0x28(%rbp), %rcx movzbl 0xc(%rcx), %ecx andl %ecx, %eax cmpl $0x0, %eax je 0xd6d3c movsbl -0x31(%rbp), %eax cmpl $0x0, %eax je 0xd6d3c jmp 0xd6e25 movq -0x28(%rbp), %rax movl (%rax), %eax movl %eax, -0x50(%rbp) subl $0x4, %eax je 0xd6d59 jmp 0xd6d4c movl -0x50(%rbp), %eax subl $0x8, %eax je 0xd6d8b jmp 0xd6dda movq -0x28(%rbp), %rax movzwl 0x4(%rax), %edi subl $0x8, %edi movq -0x10(%rbp), %rsi callq 0xaafc0 movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rax movq -0x28(%rbp), %rcx movzwl 0x4(%rcx), %ecx movslq %ecx, %rcx movq -0x8(%rax,%rcx), %rax movq %rax, -0x40(%rbp) jmp 0xd6dee movq -0x28(%rbp), %rax movzwl 0x4(%rax), %edx subl $0x1, %edx movl $0x2, %eax movl $0x1, %ecx cmpl $0x100, %edx # imm = 0x100 cmovll %ecx, %eax movl %eax, -0x4c(%rbp) cmpl $0x1, -0x4c(%rbp) jne 0xd6dbf movq -0x10(%rbp), %rax movzbl (%rax), %eax movq %rax, -0x48(%rbp) jmp 0xd6dca movq -0x10(%rbp), %rax movzwl (%rax), %eax movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rax movl -0x4c(%rbp), %ecx addq %rcx, %rax movq %rax, -0x40(%rbp) jmp 0xd6dee movq -0x28(%rbp), %rax movzwl 0x4(%rax), %eax movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x40(%rbp) movl -0x14(%rbp), %eax movl %eax, -0x54(%rbp) cmpq $0x0, -0x40(%rbp) je 0xd6e05 movq -0x40(%rbp), %rax movq %rax, -0x60(%rbp) jmp 0xd6e12 leaq 0x80cfe(%rip), %rax # 0x157b0a movq %rax, -0x60(%rbp) jmp 0xd6e12 movl -0x54(%rbp), %edi movq -0x60(%rbp), %rsi movq -0x48(%rbp), %rdx callq 0x1022b0 movl %eax, -0x14(%rbp) movq -0x28(%rbp), %rax movq %rax, %rcx addq $0x30, %rcx movq %rcx, -0x28(%rbp) movzwl 0x4(%rax), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) jmp 0xd6d01 movl -0x14(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mi_checksum: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], 0 mov rax, [rbp+var_10] mov [rbp+var_20], rax mov rax, [rbp+var_8] mov rax, [rax] mov rax, [rax+230h] mov [rbp+var_28], rax mov rax, [rbp+var_28] mov rcx, [rbp+var_8] mov rcx, [rcx] imul rcx, [rcx+168h], 30h ; '0' add rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_8] mov rax, [rax] mov rdx, [rax+318h] and rdx, 400h xor eax, eax mov ecx, 1 cmp rdx, 0 cmovnz eax, ecx mov [rbp+var_31], al loc_D6D01: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jz loc_D6E4B mov rax, [rbp+var_20] mov rcx, [rbp+var_28] movzx ecx, word ptr [rcx+0Eh] movzx eax, byte ptr [rax+rcx] mov rcx, [rbp+var_28] movzx ecx, byte ptr [rcx+0Ch] and eax, ecx cmp eax, 0 jz short loc_D6D3C movsx eax, [rbp+var_31] cmp eax, 0 jz short loc_D6D3C jmp loc_D6E25 loc_D6D3C: mov rax, [rbp+var_28] mov eax, [rax] mov [rbp+var_50], eax sub eax, 4 jz short loc_D6D59 jmp short $+2 loc_D6D4C: mov eax, [rbp+var_50] sub eax, 8 jz short loc_D6D8B jmp loc_D6DDA loc_D6D59: mov rax, [rbp+var_28] movzx edi, word ptr [rax+4] sub edi, 8 mov rsi, [rbp+var_10] call _mi_calc_blob_length mov [rbp+var_48], rax mov rax, [rbp+var_10] mov rcx, [rbp+var_28] movzx ecx, word ptr [rcx+4] movsxd rcx, ecx mov rax, [rax+rcx-8] mov [rbp+var_40], rax jmp short loc_D6DEE loc_D6D8B: mov rax, [rbp+var_28] movzx edx, word ptr [rax+4] sub edx, 1 mov eax, 2 mov ecx, 1 cmp edx, 100h cmovl eax, ecx mov [rbp+var_4C], eax cmp [rbp+var_4C], 1 jnz short loc_D6DBF mov rax, [rbp+var_10] movzx eax, byte ptr [rax] mov [rbp+var_48], rax jmp short loc_D6DCA loc_D6DBF: mov rax, [rbp+var_10] movzx eax, word ptr [rax] mov [rbp+var_48], rax loc_D6DCA: mov rax, [rbp+var_10] mov ecx, [rbp+var_4C] add rax, rcx mov [rbp+var_40], rax jmp short loc_D6DEE loc_D6DDA: mov rax, [rbp+var_28] movzx eax, word ptr [rax+4] mov [rbp+var_48], rax mov rax, [rbp+var_10] mov [rbp+var_40], rax loc_D6DEE: mov eax, [rbp+var_14] mov [rbp+var_54], eax cmp [rbp+var_40], 0 jz short loc_D6E05 mov rax, [rbp+var_40] mov [rbp+var_60], rax jmp short loc_D6E12 loc_D6E05: lea rax, asc_157B06+4; "" mov [rbp+var_60], rax jmp short $+2 loc_D6E12: mov edi, [rbp+var_54] mov rsi, [rbp+var_60] mov rdx, [rbp+var_48] call my_checksum mov [rbp+var_14], eax loc_D6E25: mov rax, [rbp+var_28] mov rcx, rax add rcx, 30h ; '0' mov [rbp+var_28], rcx movzx ecx, word ptr [rax+4] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax jmp loc_D6D01 loc_D6E4B: mov eax, [rbp+var_14] add rsp, 60h pop rbp retn
long long mi_checksum(long long a1, unsigned __int8 *a2) { unsigned int v2; // eax unsigned int v3; // eax long long v4; // rax long long v6; // [rsp+18h] [rbp-48h] unsigned __int8 *v7; // [rsp+20h] [rbp-40h] bool v8; // [rsp+2Fh] [rbp-31h] long long v9; // [rsp+30h] [rbp-30h] long long v10; // [rsp+38h] [rbp-28h] unsigned int v11; // [rsp+4Ch] [rbp-14h] unsigned __int8 *v12; // [rsp+50h] [rbp-10h] v12 = a2; v11 = 0; v10 = *(_QWORD *)(*(_QWORD *)a1 + 560LL); v9 = 48LL * *(_QWORD *)(*(_QWORD *)a1 + 360LL) + v10; v8 = (*(_QWORD *)(*(_QWORD *)a1 + 792LL) & 0x400LL) != 0; while ( v10 != v9 ) { if ( (*(_BYTE *)(v10 + 12) & a2[*(unsigned __int16 *)(v10 + 14)]) == 0 || !v8 ) { if ( *(_DWORD *)v10 == 4 ) { v6 = mi_calc_blob_length((unsigned int)*(unsigned __int16 *)(v10 + 4) - 8, v12); v7 = *(unsigned __int8 **)&v12[*(unsigned __int16 *)(v10 + 4) - 8]; } else if ( *(_DWORD *)v10 == 8 ) { v2 = 2; if ( *(unsigned __int16 *)(v10 + 4) - 1 < 256 ) v2 = 1; if ( v2 == 1 ) v6 = *v12; else v6 = *(unsigned __int16 *)v12; v7 = &v12[v2]; } else { v6 = *(unsigned __int16 *)(v10 + 4); v7 = v12; } if ( v7 ) v3 = my_checksum(v11, v7, v6); else v3 = my_checksum(v11, "", v6); v11 = v3; } v4 = v10; v10 += 48LL; v12 += *(unsigned __int16 *)(v4 + 4); } return v11; }
mi_checksum: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x230] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX] IMUL RCX,qword ptr [RCX + 0x168],0x30 ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x318] AND RDX,0x400 XOR EAX,EAX MOV ECX,0x1 CMP RDX,0x0 CMOVNZ EAX,ECX MOV byte ptr [RBP + -0x31],AL LAB_001d6d01: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JZ 0x001d6e4b MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x28] MOVZX ECX,word ptr [RCX + 0xe] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV RCX,qword ptr [RBP + -0x28] MOVZX ECX,byte ptr [RCX + 0xc] AND EAX,ECX CMP EAX,0x0 JZ 0x001d6d3c MOVSX EAX,byte ptr [RBP + -0x31] CMP EAX,0x0 JZ 0x001d6d3c JMP 0x001d6e25 LAB_001d6d3c: MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x50],EAX SUB EAX,0x4 JZ 0x001d6d59 JMP 0x001d6d4c LAB_001d6d4c: MOV EAX,dword ptr [RBP + -0x50] SUB EAX,0x8 JZ 0x001d6d8b JMP 0x001d6dda LAB_001d6d59: MOV RAX,qword ptr [RBP + -0x28] MOVZX EDI,word ptr [RAX + 0x4] SUB EDI,0x8 MOV RSI,qword ptr [RBP + -0x10] CALL 0x001aafc0 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x28] MOVZX ECX,word ptr [RCX + 0x4] MOVSXD RCX,ECX MOV RAX,qword ptr [RAX + RCX*0x1 + -0x8] MOV qword ptr [RBP + -0x40],RAX JMP 0x001d6dee LAB_001d6d8b: MOV RAX,qword ptr [RBP + -0x28] MOVZX EDX,word ptr [RAX + 0x4] SUB EDX,0x1 MOV EAX,0x2 MOV ECX,0x1 CMP EDX,0x100 CMOVL EAX,ECX MOV dword ptr [RBP + -0x4c],EAX CMP dword ptr [RBP + -0x4c],0x1 JNZ 0x001d6dbf MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] MOV qword ptr [RBP + -0x48],RAX JMP 0x001d6dca LAB_001d6dbf: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,word ptr [RAX] MOV qword ptr [RBP + -0x48],RAX LAB_001d6dca: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x4c] ADD RAX,RCX MOV qword ptr [RBP + -0x40],RAX JMP 0x001d6dee LAB_001d6dda: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,word ptr [RAX + 0x4] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x40],RAX LAB_001d6dee: MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x40],0x0 JZ 0x001d6e05 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x60],RAX JMP 0x001d6e12 LAB_001d6e05: LEA RAX,[0x257b0a] MOV qword ptr [RBP + -0x60],RAX JMP 0x001d6e12 LAB_001d6e12: MOV EDI,dword ptr [RBP + -0x54] MOV RSI,qword ptr [RBP + -0x60] MOV RDX,qword ptr [RBP + -0x48] CALL 0x002022b0 MOV dword ptr [RBP + -0x14],EAX LAB_001d6e25: MOV RAX,qword ptr [RBP + -0x28] MOV RCX,RAX ADD RCX,0x30 MOV qword ptr [RBP + -0x28],RCX MOVZX ECX,word ptr [RAX + 0x4] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX JMP 0x001d6d01 LAB_001d6e4b: MOV EAX,dword ptr [RBP + -0x14] ADD RSP,0x60 POP RBP RET
int4 mi_checksum(long *param_1,ushort *param_2) { ulong uVar1; uint uVar2; int *piVar3; ushort *local_68; ulong local_50; ushort *local_48; int *local_30; int4 local_1c; ushort *local_18; local_1c = 0; local_30 = *(int **)(*param_1 + 0x230); piVar3 = local_30 + *(long *)(*param_1 + 0x168) * 0xc; uVar1 = *(ulong *)(*param_1 + 0x318); local_18 = param_2; for (; local_30 != piVar3; local_30 = local_30 + 0xc) { if (((*(byte *)((long)param_2 + (ulong)*(ushort *)((long)local_30 + 0xe)) & *(byte *)(local_30 + 3)) == 0) || ((uVar1 & 0x400) == 0)) { if (*local_30 == 4) { local_50 = _mi_calc_blob_length(*(ushort *)(local_30 + 1) - 8,local_18); local_48 = *(ushort **)((long)local_18 + (long)(int)(uint)*(ushort *)(local_30 + 1) + -8); } else if (*local_30 == 8) { uVar2 = 2; if ((int)(*(ushort *)(local_30 + 1) - 1) < 0x100) { uVar2 = 1; } if (uVar2 == 1) { local_50 = (ulong)(byte)*local_18; } else { local_50 = (ulong)*local_18; } local_48 = (ushort *)((long)local_18 + (ulong)uVar2); } else { local_50 = (ulong)*(ushort *)(local_30 + 1); local_48 = local_18; } if (local_48 == (ushort *)0x0) { local_68 = (ushort *)&DAT_00257b0a; } else { local_68 = local_48; } local_1c = my_checksum(local_1c,local_68,local_50); } local_18 = (ushort *)((long)local_18 + (long)(int)(uint)*(ushort *)(local_30 + 1)); } return local_1c; }
38,990
intern_filename
eloqsql/mysys/mf_pack.c
char *intern_filename(char *to, const char *from) { size_t length, to_length; char buff[FN_REFLEN + 1]; if (from == to) { /* Dirname may destroy from */ (void) strnmov(buff, from, FN_REFLEN); from=buff; } length= dirname_part(to, from, &to_length); /* Copy dirname & fix chars */ (void) strnmov(to + to_length, from + length, FN_REFLEN - to_length); return (to); }
O0
c
intern_filename: pushq %rbp movq %rsp, %rbp subq $0x240, %rsp # imm = 0x240 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) movq -0x220(%rbp), %rax cmpq -0x218(%rbp), %rax jne 0x2f88c leaq -0x210(%rbp), %rdi movq -0x220(%rbp), %rsi movl $0x200, %edx # imm = 0x200 callq 0x78c90 leaq -0x210(%rbp), %rax movq %rax, -0x220(%rbp) movq -0x218(%rbp), %rdi movq -0x220(%rbp), %rsi leaq -0x230(%rbp), %rdx callq 0x2f360 movq %rax, -0x228(%rbp) movq -0x218(%rbp), %rdi movq -0x230(%rbp), %rax addq %rax, %rdi movq -0x220(%rbp), %rsi movq -0x228(%rbp), %rcx addq %rcx, %rsi movl $0x200, %edx # imm = 0x200 subq %rax, %rdx callq 0x78c90 movq -0x218(%rbp), %rax movq %rax, -0x238(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x2f90c movq -0x238(%rbp), %rax addq $0x240, %rsp # imm = 0x240 popq %rbp retq callq 0x242b0 nopw %cs:(%rax,%rax)
intern_filename: push rbp mov rbp, rsp sub rsp, 240h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi mov rax, [rbp+var_220] cmp rax, [rbp+var_218] jnz short loc_2F88C lea rdi, [rbp+var_210] mov rsi, [rbp+var_220] mov edx, 200h call strnmov lea rax, [rbp+var_210] mov [rbp+var_220], rax loc_2F88C: mov rdi, [rbp+var_218] mov rsi, [rbp+var_220] lea rdx, [rbp+var_230] call dirname_part mov [rbp+var_228], rax mov rdi, [rbp+var_218] mov rax, [rbp+var_230] add rdi, rax mov rsi, [rbp+var_220] mov rcx, [rbp+var_228] add rsi, rcx mov edx, 200h sub rdx, rax call strnmov mov rax, [rbp+var_218] mov [rbp+var_238], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_2F90C mov rax, [rbp+var_238] add rsp, 240h pop rbp retn loc_2F90C: call ___stack_chk_fail
long long intern_filename(long long a1, _BYTE *a2) { long long v3; // [rsp+10h] [rbp-230h] BYREF long long v4; // [rsp+18h] [rbp-228h] _BYTE *v5; // [rsp+20h] [rbp-220h] long long v6; // [rsp+28h] [rbp-218h] _BYTE v7[520]; // [rsp+30h] [rbp-210h] BYREF unsigned long long v8; // [rsp+238h] [rbp-8h] v8 = __readfsqword(0x28u); v6 = a1; v5 = a2; if ( a2 == (_BYTE *)a1 ) { strnmov(v7, v5, 512LL); v5 = v7; } v4 = dirname_part(v6, v5, &v3); strnmov(v3 + v6, &v5[v4], 512 - v3); return v6; }
intern_filename: PUSH RBP MOV RBP,RSP SUB RSP,0x240 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI MOV RAX,qword ptr [RBP + -0x220] CMP RAX,qword ptr [RBP + -0x218] JNZ 0x0012f88c LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x220] MOV EDX,0x200 CALL 0x00178c90 LEA RAX,[RBP + -0x210] MOV qword ptr [RBP + -0x220],RAX LAB_0012f88c: MOV RDI,qword ptr [RBP + -0x218] MOV RSI,qword ptr [RBP + -0x220] LEA RDX,[RBP + -0x230] CALL 0x0012f360 MOV qword ptr [RBP + -0x228],RAX MOV RDI,qword ptr [RBP + -0x218] MOV RAX,qword ptr [RBP + -0x230] ADD RDI,RAX MOV RSI,qword ptr [RBP + -0x220] MOV RCX,qword ptr [RBP + -0x228] ADD RSI,RCX MOV EDX,0x200 SUB RDX,RAX CALL 0x00178c90 MOV RAX,qword ptr [RBP + -0x218] MOV qword ptr [RBP + -0x238],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0012f90c MOV RAX,qword ptr [RBP + -0x238] ADD RSP,0x240 POP RBP RET LAB_0012f90c: CALL 0x001242b0
int1 * intern_filename(int1 *param_1,int1 *param_2) { long in_FS_OFFSET; long local_238; long local_230; int1 *local_228; int1 *local_220; int1 local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_228 = param_2; local_220 = param_1; if (param_2 == param_1) { strnmov(local_218,param_2,0x200); local_228 = local_218; } local_230 = dirname_part(local_220,local_228,&local_238); strnmov(local_220 + local_238,local_228 + local_230,0x200 - local_238); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_220; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
38,991
google::protobuf::compiler::cpp::PrimitiveOneofFieldGenerator::GenerateInlineAccessorDefinitions(google::protobuf::io::Printer*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/primitive_field.cc
void PrimitiveOneofFieldGenerator::GenerateInlineAccessorDefinitions( io::Printer* printer) const { Formatter format(printer, variables_); format( "inline $type$ $classname$::_internal_$name$() const {\n" " if (_internal_has_$name$()) {\n" " return $field$;\n" " }\n" " return $default$;\n" "}\n" "inline void $classname$::_internal_set_$name$($type$ value) {\n" " if (!_internal_has_$name$()) {\n" " clear_$oneof_name$();\n" " set_has_$name$();\n" " }\n" " $field$ = value;\n" "}\n" "inline $type$ $classname$::$name$() const {\n" "$annotate_get$" " // @@protoc_insertion_point(field_get:$full_name$)\n" " return _internal_$name$();\n" "}\n" "inline void $classname$::set_$name$($type$ value) {\n" " _internal_set_$name$(value);\n" "$annotate_set$" " // @@protoc_insertion_point(field_set:$full_name$)\n" "}\n"); }
O3
cpp
google::protobuf::compiler::cpp::PrimitiveOneofFieldGenerator::GenerateInlineAccessorDefinitions(google::protobuf::io::Printer*) const: pushq %r14 pushq %rbx subq $0x38, %rsp leaq 0x18(%rdi), %rax leaq 0x8(%rsp), %rbx movq %rsi, -0x8(%rbx) movq %rbx, %rdi movq %rax, %rsi callq 0x7e61e leaq 0x1014a0(%rip), %rsi # 0x1cbf06 movq %rsp, %rdi callq 0x39938 movq %rbx, %rdi callq 0x2e5e0 addq $0x38, %rsp popq %rbx popq %r14 retq movq %rax, %r14 movq %rbx, %rdi callq 0x2e5e0 movq %r14, %rdi callq 0x1f860 nop
_ZNK6google8protobuf8compiler3cpp28PrimitiveOneofFieldGenerator33GenerateInlineAccessorDefinitionsEPNS0_2io7PrinterE: push r14 push rbx sub rsp, 38h lea rax, [rdi+18h] lea rbx, [rsp+48h+var_40] mov [rbx-8], rsi mov rdi, rbx mov rsi, rax call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>> const&) lea rsi, aInlineTypeClas_4; "inline $type$ $classname$::_internal_$n"... mov rdi, rsp call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ mov rdi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() add rsp, 38h pop rbx pop r14 retn mov r14, rax mov rdi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() mov rdi, r14 call __Unwind_Resume
long long google::protobuf::compiler::cpp::PrimitiveOneofFieldGenerator::GenerateInlineAccessorDefinitions( google::protobuf::compiler::cpp::PrimitiveOneofFieldGenerator *this, google::protobuf::io::Printer *a2) { long long result; // rax google::protobuf::io::Printer *v3; // [rsp+0h] [rbp-48h] BYREF _BYTE v4[64]; // [rsp+8h] [rbp-40h] BYREF v3 = a2; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree( (long long)v4, (long long)this + 24); result = google::protobuf::compiler::cpp::Formatter::operator()<>( &v3, "inline $type$ $classname$::_internal_$name$() const {\n" " if (_internal_has_$name$()) {\n" " return $field$;\n" " }\n" " return $default$;\n" "}\n" "inline void $classname$::_internal_set_$name$($type$ value) {\n" " if (!_internal_has_$name$()) {\n" " clear_$oneof_name$();\n" " set_has_$name$();\n" " }\n" " $field$ = value;\n" "}\n" "inline $type$ $classname$::$name$() const {\n" "$annotate_get$ // @@protoc_insertion_point(field_get:$full_name$)\n" " return _internal_$name$();\n" "}\n" "inline void $classname$::set_$name$($type$ value) {\n" " _internal_set_$name$(value);\n" "$annotate_set$ // @@protoc_insertion_point(field_set:$full_name$)\n" "}\n"); std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree((long long)v4); return result; }
GenerateInlineAccessorDefinitions: PUSH R14 PUSH RBX SUB RSP,0x38 LEA RAX,[RDI + 0x18] LEA RBX,[RSP + 0x8] MOV qword ptr [RBX + -0x8],RSI MOV RDI,RBX MOV RSI,RAX CALL 0x0017e61e LAB_001caa5f: LEA RSI,[0x2cbf06] MOV RDI,RSP CALL 0x00139938 LAB_001caa6e: MOV RDI,RBX CALL 0x0012e5e0 ADD RSP,0x38 POP RBX POP R14 RET
/* google::protobuf::compiler::cpp::PrimitiveOneofFieldGenerator::GenerateInlineAccessorDefinitions(google::protobuf::io::Printer*) const */ void __thiscall google::protobuf::compiler::cpp::PrimitiveOneofFieldGenerator::GenerateInlineAccessorDefinitions (PrimitiveOneofFieldGenerator *this,Printer *param_1) { Printer *local_48; _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> local_40 [48]; local_48 = param_1; std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::_Rb_tree(local_40,(_Rb_tree *)(this + 0x18)); /* try { // try from 001caa5f to 001caa6d has its CatchHandler @ 001caa7e */ Formatter::operator()<> ((Formatter *)&local_48, "inline $type$ $classname$::_internal_$name$() const {\n if (_internal_has_$name$()) {\n return $field$;\n }\n return $default$;\n}\ninline void $classname$::_internal_set_$name$($type$ value) {\n if (!_internal_has_$name$()) {\n clear_$oneof_name$();\n set_has_$name$();\n }\n $field$ = value;\n}\ninline $type$ $classname$::$name$() const {\n$annotate_get$ // @@protoc_insertion_point(field_get:$full_name$)\n return _internal_$name$();\n}\ninline void $classname$::set_$name$($type$ value) {\n _internal_set_$name$(value);\n$annotate_set$ // @@protoc_insertion_point(field_set:$full_name$)\n}\n" ); std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::~_Rb_tree(local_40); return; }
38,992
cxxopts::values::abstract_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::abstract_value(cxxopts::values::abstract_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&)
zkingston[P]unknot/build_O1/_deps/cxxopts-src/include/cxxopts.hpp
abstract_value(const abstract_value& rhs) { if (rhs.m_result) { m_result = std::make_shared<T>(); m_store = m_result.get(); } else { m_store = rhs.m_store; } m_default = rhs.m_default; m_implicit = rhs.m_implicit; m_default_value = rhs.m_default_value; m_implicit_value = rhs.m_implicit_value; }
O1
cpp
cxxopts::values::abstract_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::abstract_value(cxxopts::values::abstract_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r12 movq %rdi, %rbx vxorps %xmm0, %xmm0, %xmm0 vmovups %ymm0, 0x8(%rdi) vxorps %xmm0, %xmm0, %xmm0 leaq 0x30325f(%rip), %rax # 0x3339b8 movq %rax, (%rdi) leaq 0x38(%rdi), %r14 vmovups %xmm0, 0x22(%rdi) leaq 0x48(%rdi), %rax movq %rax, (%rsp) movq %rax, 0x38(%rdi) xorl %eax, %eax movq %rax, 0x40(%rdi) movb %al, 0x48(%rdi) leaq 0x58(%rdi), %r15 leaq 0x68(%rdi), %rbp movq %rbp, 0x58(%rdi) movq %rax, 0x60(%rdi) movb %al, 0x68(%rdi) cmpq %rax, 0x18(%rsi) je 0x307ef movl $0x30, %edi vzeroupper callq 0xfa40 leaq 0x18(%rbx), %r13 movabsq $0x100000001, %rcx # imm = 0x100000001 movq %rcx, 0x8(%rax) leaq 0x303287(%rip), %rcx # 0x333a40 movq %rcx, (%rax) leaq 0x10(%rax), %rcx movq %rax, %rdx addq $0x20, %rdx movq %rdx, 0x10(%rax) movq $0x0, 0x18(%rax) movb $0x0, 0x20(%rax) movq %rcx, 0x18(%rbx) movq 0x20(%rbx), %rdi movq %rax, 0x20(%rbx) testq %rdi, %rdi je 0x307f4 callq 0x15120 jmp 0x307f4 leaq 0x28(%r12), %r13 movq (%r13), %rax movq %rax, 0x28(%rbx) movb 0x30(%r12), %al movb %al, 0x30(%rbx) movb 0x31(%r12), %al movb %al, 0x31(%rbx) leaq 0x38(%r12), %rsi movq %r14, %rdi vzeroupper callq 0xf5a0 addq $0x58, %r12 movq %r15, %rdi movq %r12, %rsi callq 0xf5a0 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x3083c movq %rax, %r12 movq (%r15), %rdi cmpq %rbp, %rdi je 0x30853 movq (%rbp), %rsi incq %rsi callq 0xfa70 movq (%r14), %rdi cmpq (%rsp), %rdi je 0x3086b movq (%rsp), %rax movq (%rax), %rsi incq %rsi callq 0xfa70 movq 0x20(%rbx), %rdi testq %rdi, %rdi je 0x30879 callq 0x15120 movq %rbx, %rdi callq 0x2ecae movq %r12, %rdi callq 0x101c0
_ZN7cxxopts6values14abstract_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2ERKS8_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r12, rsi mov rbx, rdi vxorps xmm0, xmm0, xmm0 vmovups ymmword ptr [rdi+8], ymm0 vxorps xmm0, xmm0, xmm0 lea rax, off_3339B8 mov [rdi], rax lea r14, [rdi+38h] vmovups xmmword ptr [rdi+22h], xmm0 lea rax, [rdi+48h] mov [rsp+38h+var_38], rax mov [rdi+38h], rax xor eax, eax mov [rdi+40h], rax mov [rdi+48h], al lea r15, [rdi+58h] lea rbp, [rdi+68h] mov [rdi+58h], rbp mov [rdi+60h], rax mov [rdi+68h], al cmp [rsi+18h], rax jz short loc_307EF mov edi, 30h ; '0'; unsigned __int64 vzeroupper call __Znwm; operator new(ulong) lea r13, [rbx+18h] mov rcx, 100000001h mov [rax+8], rcx lea rcx, off_333A40 mov [rax], rcx lea rcx, [rax+10h] mov rdx, rax add rdx, 20h ; ' ' mov [rax+10h], rdx mov qword ptr [rax+18h], 0 mov byte ptr [rax+20h], 0 mov [rbx+18h], rcx mov rdi, [rbx+20h] mov [rbx+20h], rax test rdi, rdi jz short loc_307F4 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp short loc_307F4 loc_307EF: lea r13, [r12+28h] loc_307F4: mov rax, [r13+0] mov [rbx+28h], rax mov al, [r12+30h] mov [rbx+30h], al mov al, [r12+31h] mov [rbx+31h], al lea rsi, [r12+38h] mov rdi, r14 vzeroupper call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) add r12, 58h ; 'X' mov rdi, r15 mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_3083C: mov r12, rax mov rdi, [r15]; void * cmp rdi, rbp jz short loc_30853 mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_30853: mov rdi, [r14]; void * cmp rdi, [rsp+0] jz short loc_3086B mov rax, [rsp+0] mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3086B: mov rdi, [rbx+20h] test rdi, rdi jz short loc_30879 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_30879: mov rdi, rbx; this call _ZN7cxxopts5ValueD2Ev; cxxopts::Value::~Value() mov rdi, r12 call __Unwind_Resume
long long cxxopts::values::abstract_value<std::string>::abstract_value(long long _RDI, long long a2, __m128 _XMM0) { long long v4; // rbx long long v7; // r14 long long v8; // r15 long long v9; // rax _QWORD *v10; // r13 volatile signed __int32 *v11; // rdi v4 = _RDI; __asm { vxorps xmm0, xmm0, xmm0 vmovups ymmword ptr [rdi+8], ymm0 vxorps xmm0, xmm0, xmm0 } *(_QWORD *)_RDI = &off_3339B8; v7 = _RDI + 56; __asm { vmovups xmmword ptr [rdi+22h], xmm0 } *(_QWORD *)(_RDI + 56) = _RDI + 72; *(_QWORD *)(_RDI + 64) = 0LL; *(_BYTE *)(_RDI + 72) = 0; v8 = _RDI + 88; *(_QWORD *)(_RDI + 88) = _RDI + 104; *(_QWORD *)(_RDI + 96) = 0LL; *(_BYTE *)(_RDI + 104) = 0; if ( *(_QWORD *)(a2 + 24) ) { __asm { vzeroupper } v9 = operator new(0x30uLL); v10 = (_QWORD *)(_RDI + 24); *(_QWORD *)(v9 + 8) = 0x100000001LL; *(_QWORD *)v9 = off_333A40; *(_QWORD *)(v9 + 16) = v9 + 32; *(_QWORD *)(v9 + 24) = 0LL; *(_BYTE *)(v9 + 32) = 0; *(_QWORD *)(_RDI + 24) = v9 + 16; v11 = *(volatile signed __int32 **)(_RDI + 32); *(_QWORD *)(v4 + 32) = v9; if ( v11 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v11); } else { v10 = (_QWORD *)(a2 + 40); } *(_QWORD *)(v4 + 40) = *v10; *(_BYTE *)(v4 + 48) = *(_BYTE *)(a2 + 48); *(_BYTE *)(v4 + 49) = *(_BYTE *)(a2 + 49); __asm { vzeroupper } std::string::_M_assign(v7, a2 + 56); return std::string::_M_assign(v8, a2 + 88); }
abstract_value: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,RSI MOV RBX,RDI VXORPS XMM0,XMM0,XMM0 VMOVUPS ymmword ptr [RDI + 0x8],YMM0 VXORPS XMM0,XMM0,XMM0 LEA RAX,[0x4339b8] MOV qword ptr [RDI],RAX LEA R14,[RDI + 0x38] VMOVUPS xmmword ptr [RDI + 0x22],XMM0 LEA RAX,[RDI + 0x48] MOV qword ptr [RSP],RAX MOV qword ptr [RDI + 0x38],RAX XOR EAX,EAX MOV qword ptr [RDI + 0x40],RAX MOV byte ptr [RDI + 0x48],AL LEA R15,[RDI + 0x58] LEA RBP,[RDI + 0x68] MOV qword ptr [RDI + 0x58],RBP MOV qword ptr [RDI + 0x60],RAX MOV byte ptr [RDI + 0x68],AL CMP qword ptr [RSI + 0x18],RAX JZ 0x001307ef LAB_00130793: MOV EDI,0x30 VZEROUPPER CALL 0x0010fa40 LEA R13,[RBX + 0x18] MOV RCX,0x100000001 MOV qword ptr [RAX + 0x8],RCX LEA RCX,[0x433a40] MOV qword ptr [RAX],RCX LEA RCX,[RAX + 0x10] MOV RDX,RAX ADD RDX,0x20 MOV qword ptr [RAX + 0x10],RDX MOV qword ptr [RAX + 0x18],0x0 MOV byte ptr [RAX + 0x20],0x0 MOV qword ptr [RBX + 0x18],RCX MOV RDI,qword ptr [RBX + 0x20] MOV qword ptr [RBX + 0x20],RAX TEST RDI,RDI JZ 0x001307f4 CALL 0x00115120 JMP 0x001307f4 LAB_001307ef: LEA R13,[R12 + 0x28] LAB_001307f4: MOV RAX,qword ptr [R13] MOV qword ptr [RBX + 0x28],RAX MOV AL,byte ptr [R12 + 0x30] MOV byte ptr [RBX + 0x30],AL MOV AL,byte ptr [R12 + 0x31] MOV byte ptr [RBX + 0x31],AL LEA RSI,[R12 + 0x38] LAB_00130811: MOV RDI,R14 VZEROUPPER CALL 0x0010f5a0 ADD R12,0x58 MOV RDI,R15 MOV RSI,R12 CALL 0x0010f5a0 LAB_0013082b: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* cxxopts::values::abstract_value<std::__cxx11::string >::abstract_value(cxxopts::values::abstract_value<std::__cxx11::string > const&) */ void __thiscall cxxopts::values::abstract_value<std::__cxx11::string>::abstract_value (abstract_value<std::__cxx11::string> *this,abstract_value *param_1) { _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00; int8 *puVar1; abstract_value *paVar2; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int ***)this = &PTR__abstract_value_004339b8; *(int1 (*) [16])(this + 0x22) = ZEXT416(0) << 0x40; *(abstract_value<std::__cxx11::string> **)(this + 0x38) = this + 0x48; *(int8 *)(this + 0x40) = 0; this[0x48] = (abstract_value<std::__cxx11::string>)0x0; *(abstract_value<std::__cxx11::string> **)(this + 0x58) = this + 0x68; *(int8 *)(this + 0x60) = 0; this[0x68] = (abstract_value<std::__cxx11::string>)0x0; if (*(long *)(param_1 + 0x18) == 0) { paVar2 = param_1 + 0x28; } else { /* try { // try from 00130793 to 0013079f has its CatchHandler @ 0013083a */ puVar1 = (int8 *)operator_new(0x30); paVar2 = (abstract_value *)(this + 0x18); puVar1[1] = 0x100000001; *puVar1 = &PTR___Sp_counted_ptr_inplace_00433a40; puVar1[2] = puVar1 + 4; puVar1[3] = 0; *(int1 *)(puVar1 + 4) = 0; *(int8 **)(this + 0x18) = puVar1 + 2; this_00 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x20); *(int8 **)(this + 0x20) = puVar1; if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00); } } *(int8 *)(this + 0x28) = *(int8 *)paVar2; *(abstract_value *)(this + 0x30) = param_1[0x30]; *(abstract_value *)(this + 0x31) = param_1[0x31]; /* try { // try from 00130811 to 0013082a has its CatchHandler @ 0013083c */ std::__cxx11::string::_M_assign((string *)(this + 0x38)); std::__cxx11::string::_M_assign((string *)(this + 0x58)); return; }
38,993
blst_deserialize_p1_affine
corpus-core[P]colibri-stateless/src/util/crypto.c
bytes_t blst_deserialize_p1_affine(uint8_t* compressed_pubkeys, int num_public_keys, uint8_t* out) { blst_p1_affine* pubkeys = out ? (blst_p1_affine*) out : (blst_p1_affine*) safe_malloc(num_public_keys * sizeof(blst_p1_affine)); for (int i = 0; i < num_public_keys; i++) { if (blst_p1_deserialize(pubkeys + i, compressed_pubkeys + i * 48) != BLST_SUCCESS) { safe_free(pubkeys); return NULL_BYTES; } } return bytes((uint8_t*) pubkeys, num_public_keys * sizeof(blst_p1_affine)); }
O0
c
blst_deserialize_p1_affine: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x18(%rbp) movl %esi, -0x1c(%rbp) movq %rdx, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) je 0xa3424 movq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) jmp 0xa3435 movslq -0x1c(%rbp), %rax imulq $0x60, %rax, %rdi callq 0x9c400 movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x30(%rbp) movl $0x0, -0x34(%rbp) movl -0x34(%rbp), %eax cmpl -0x1c(%rbp), %eax jge 0xa3499 movq -0x30(%rbp), %rdi movslq -0x34(%rbp), %rax imulq $0x60, %rax, %rax addq %rax, %rdi movq -0x18(%rbp), %rsi imull $0x30, -0x34(%rbp), %eax cltq addq %rax, %rsi callq 0xa7d90 cmpl $0x0, %eax je 0xa348c movq -0x30(%rbp), %rdi callq 0x9c5a0 movl $0x0, -0x10(%rbp) movq $0x0, -0x8(%rbp) jmp 0xa34ac jmp 0xa348e movl -0x34(%rbp), %eax addl $0x1, %eax movl %eax, -0x34(%rbp) jmp 0xa3444 movslq -0x1c(%rbp), %rax imulq $0x60, %rax, %rax movl %eax, -0x10(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movl -0x10(%rbp), %eax movq -0x8(%rbp), %rdx addq $0x40, %rsp popq %rbp retq nopl (%rax)
blst_deserialize_p1_affine: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_18], rdi mov [rbp+var_1C], esi mov [rbp+var_28], rdx cmp [rbp+var_28], 0 jz short loc_A3424 mov rax, [rbp+var_28] mov [rbp+var_40], rax jmp short loc_A3435 loc_A3424: movsxd rax, [rbp+var_1C] imul rdi, rax, 60h ; '`' call safe_malloc mov [rbp+var_40], rax loc_A3435: mov rax, [rbp+var_40] mov [rbp+var_30], rax mov [rbp+var_34], 0 loc_A3444: mov eax, [rbp+var_34] cmp eax, [rbp+var_1C] jge short loc_A3499 mov rdi, [rbp+var_30] movsxd rax, [rbp+var_34] imul rax, 60h ; '`' add rdi, rax mov rsi, [rbp+var_18] imul eax, [rbp+var_34], 30h ; '0' cdqe add rsi, rax call blst_p1_deserialize cmp eax, 0 jz short loc_A348C mov rdi, [rbp+var_30] call safe_free mov [rbp+var_10], 0 mov [rbp+var_8], 0 jmp short loc_A34AC loc_A348C: jmp short $+2 loc_A348E: mov eax, [rbp+var_34] add eax, 1 mov [rbp+var_34], eax jmp short loc_A3444 loc_A3499: movsxd rax, [rbp+var_1C] imul rax, 60h ; '`' mov [rbp+var_10], eax mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_A34AC: mov eax, [rbp+var_10] mov rdx, [rbp+var_8] add rsp, 40h pop rbp retn
long long blst_deserialize_p1_affine(long long a1, int a2, long long a3) { long long v4; // [rsp+0h] [rbp-40h] int i; // [rsp+Ch] [rbp-34h] if ( a3 ) v4 = a3; else v4 = safe_malloc(96LL * a2); for ( i = 0; i < a2; ++i ) { if ( (unsigned int)blst_p1_deserialize(96LL * i + v4, 48 * i + a1) ) { safe_free(v4); return 0; } } return (unsigned int)(96 * a2); }
blst_deserialize_p1_affine: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x18],RDI MOV dword ptr [RBP + -0x1c],ESI MOV qword ptr [RBP + -0x28],RDX CMP qword ptr [RBP + -0x28],0x0 JZ 0x001a3424 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX JMP 0x001a3435 LAB_001a3424: MOVSXD RAX,dword ptr [RBP + -0x1c] IMUL RDI,RAX,0x60 CALL 0x0019c400 MOV qword ptr [RBP + -0x40],RAX LAB_001a3435: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x30],RAX MOV dword ptr [RBP + -0x34],0x0 LAB_001a3444: MOV EAX,dword ptr [RBP + -0x34] CMP EAX,dword ptr [RBP + -0x1c] JGE 0x001a3499 MOV RDI,qword ptr [RBP + -0x30] MOVSXD RAX,dword ptr [RBP + -0x34] IMUL RAX,RAX,0x60 ADD RDI,RAX MOV RSI,qword ptr [RBP + -0x18] IMUL EAX,dword ptr [RBP + -0x34],0x30 CDQE ADD RSI,RAX CALL 0x001a7d90 CMP EAX,0x0 JZ 0x001a348c MOV RDI,qword ptr [RBP + -0x30] CALL 0x0019c5a0 MOV dword ptr [RBP + -0x10],0x0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001a34ac LAB_001a348c: JMP 0x001a348e LAB_001a348e: MOV EAX,dword ptr [RBP + -0x34] ADD EAX,0x1 MOV dword ptr [RBP + -0x34],EAX JMP 0x001a3444 LAB_001a3499: MOVSXD RAX,dword ptr [RBP + -0x1c] IMUL RAX,RAX,0x60 MOV dword ptr [RBP + -0x10],EAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_001a34ac: MOV EAX,dword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
int1 [16] blst_deserialize_p1_affine(long param_1,int param_2,long param_3) { int iVar1; int1 auVar2 [16]; int8 local_48; int4 local_3c; int4 local_18; int8 local_10; local_48 = param_3; if (param_3 == 0) { local_48 = safe_malloc((long)param_2 * 0x60); } local_3c = 0; do { if (param_2 <= local_3c) { local_18 = param_2 * 0x60; local_10 = local_48; LAB_001a34ac: auVar2._4_4_ = 0; auVar2._0_4_ = local_18; auVar2._8_8_ = local_10; return auVar2; } iVar1 = blst_p1_deserialize(local_48 + (long)local_3c * 0x60,param_1 + local_3c * 0x30); if (iVar1 != 0) { safe_free(local_48); local_18 = 0; local_10 = 0; goto LAB_001a34ac; } local_3c = local_3c + 1; } while( true ); }
38,994
myisam_log_command
eloqsql/storage/myisam/mi_log.c
void _myisam_log_command(enum myisam_log_commands command, MI_INFO *info, const uchar *buffert, uint length, int result) { uchar buff[9]; int error,old_errno; ulong pid=(ulong) GETPID(); old_errno=my_errno; buff[0]=(char) command; mi_int2store(buff+1,info->dfile); mi_int4store(buff+3,pid); mi_int2store(buff+7,result); mysql_mutex_lock(&THR_LOCK_myisam); error=my_lock(myisam_log_file,F_WRLCK,0L,F_TO_EOF,MYF(MY_SEEK_NOT_DONE)); (void) mysql_file_write(myisam_log_file, buff, sizeof(buff), MYF(0)); if (buffert) (void) mysql_file_write(myisam_log_file, buffert, length, MYF(0)); if (!error) error=my_lock(myisam_log_file,F_UNLCK,0L,F_TO_EOF,MYF(MY_SEEK_NOT_DONE)); mysql_mutex_unlock(&THR_LOCK_myisam); my_errno=old_errno; }
O0
c
myisam_log_command: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movl %edi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq %rdx, -0x28(%rbp) movl %ecx, -0x2c(%rbp) movl %r8d, -0x30(%rbp) cmpl $0x1, 0xbc868a(%rip) # 0xc7a2c8 jne 0xb1c4d movq 0xbc8679(%rip), %rax # 0xc7a2c0 movq %rax, -0x60(%rbp) jmp 0xb1c56 callq 0xf6660 movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movq %rax, -0x40(%rbp) callq 0xf6060 movl (%rax), %eax movl %eax, -0x38(%rbp) movl -0x18(%rbp), %eax movb %al, -0x11(%rbp) movq -0x20(%rbp), %rax movl 0x1c0(%rax), %eax movl %eax, -0x44(%rbp) movl -0x44(%rbp), %eax movb %al, -0xf(%rbp) movl -0x44(%rbp), %eax shrl $0x8, %eax movb %al, -0x10(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movb %al, -0xb(%rbp) movq -0x50(%rbp), %rax shrq $0x8, %rax movb %al, -0xc(%rbp) movq -0x50(%rbp), %rax shrq $0x10, %rax movb %al, -0xd(%rbp) movq -0x50(%rbp), %rax shrq $0x18, %rax movb %al, -0xe(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x54(%rbp) movl -0x54(%rbp), %eax movb %al, -0x9(%rbp) movl -0x54(%rbp), %eax shrl $0x8, %eax movb %al, -0xa(%rbp) leaq 0xbd13aa(%rip), %rdi # 0xc83080 leaq 0xa1c79(%rip), %rsi # 0x153956 movl $0x69, %edx callq 0xb19d0 leaq 0x20d642(%rip), %rax # 0x2bf330 movl (%rax), %edi movl $0x1, %esi xorl %eax, %eax movl %eax, %ecx movl $0x20, %r8d movq %rcx, %rdx callq 0xf34d0 movl %eax, -0x34(%rbp) leaq 0x20d61f(%rip), %rax # 0x2bf330 movl (%rax), %edx leaq -0x11(%rbp), %rcx leaq 0xa1c38(%rip), %rdi # 0x153956 movl $0x6b, %esi movl $0x9, %r8d xorl %eax, %eax movl %eax, %r9d callq 0xb1a40 cmpq $0x0, -0x28(%rbp) je 0xb1d63 leaq 0x20d5ef(%rip), %rax # 0x2bf330 movl (%rax), %edx movq -0x28(%rbp), %rcx movl -0x2c(%rbp), %eax movl %eax, %r8d leaq 0xa1c02(%rip), %rdi # 0x153956 movl $0x6d, %esi xorl %eax, %eax movl %eax, %r9d callq 0xb1a40 cmpl $0x0, -0x34(%rbp) jne 0xb1d8c leaq 0x20d5c0(%rip), %rax # 0x2bf330 movl (%rax), %edi movl $0x2, %esi xorl %eax, %eax movl %eax, %ecx movl $0x20, %r8d movq %rcx, %rdx callq 0xf34d0 movl %eax, -0x34(%rbp) leaq 0xbd12ed(%rip), %rdi # 0xc83080 callq 0xb1bb0 movl -0x38(%rbp), %eax movl %eax, -0x64(%rbp) callq 0xf6060 movl -0x64(%rbp), %ecx movl %ecx, (%rax) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xb1dc0 addq $0x70, %rsp popq %rbp retq callq 0x2a250 nopw %cs:(%rax,%rax)
_myisam_log_command: push rbp mov rbp, rsp sub rsp, 70h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_18], edi mov [rbp+var_20], rsi mov [rbp+var_28], rdx mov [rbp+var_2C], ecx mov [rbp+var_30], r8d cmp cs:log_type, 1 jnz short loc_B1C4D mov rax, cs:myisam_pid mov [rbp+var_60], rax jmp short loc_B1C56 loc_B1C4D: call my_thread_dbug_id mov [rbp+var_60], rax loc_B1C56: mov rax, [rbp+var_60] mov [rbp+var_40], rax call _my_thread_var mov eax, [rax] mov [rbp+var_38], eax mov eax, [rbp+var_18] mov [rbp+var_11], al mov rax, [rbp+var_20] mov eax, [rax+1C0h] mov [rbp+var_44], eax mov eax, [rbp+var_44] mov [rbp+var_F], al mov eax, [rbp+var_44] shr eax, 8 mov [rbp+var_10], al mov rax, [rbp+var_40] mov [rbp+var_50], rax mov rax, [rbp+var_50] mov [rbp+var_B], al mov rax, [rbp+var_50] shr rax, 8 mov [rbp+var_C], al mov rax, [rbp+var_50] shr rax, 10h mov [rbp+var_D], al mov rax, [rbp+var_50] shr rax, 18h mov [rbp+var_E], al mov eax, [rbp+var_30] mov [rbp+var_54], eax mov eax, [rbp+var_54] mov [rbp+var_9], al mov eax, [rbp+var_54] shr eax, 8 mov [rbp+var_A], al lea rdi, THR_LOCK_myisam lea rsi, aWorkspaceLlm4b_28; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 69h ; 'i' call inline_mysql_mutex_lock_18 lea rax, myisam_log_file mov edi, [rax] mov esi, 1 xor eax, eax mov ecx, eax mov r8d, 20h ; ' ' mov rdx, rcx call my_lock mov [rbp+var_34], eax lea rax, myisam_log_file mov edx, [rax] lea rcx, [rbp+var_11] lea rdi, aWorkspaceLlm4b_28; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 6Bh ; 'k' mov r8d, 9 xor eax, eax mov r9d, eax call inline_mysql_file_write_1 cmp [rbp+var_28], 0 jz short loc_B1D63 lea rax, myisam_log_file mov edx, [rax] mov rcx, [rbp+var_28] mov eax, [rbp+var_2C] mov r8d, eax lea rdi, aWorkspaceLlm4b_28; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 6Dh ; 'm' xor eax, eax mov r9d, eax call inline_mysql_file_write_1 loc_B1D63: cmp [rbp+var_34], 0 jnz short loc_B1D8C lea rax, myisam_log_file mov edi, [rax] mov esi, 2 xor eax, eax mov ecx, eax mov r8d, 20h ; ' ' mov rdx, rcx call my_lock mov [rbp+var_34], eax loc_B1D8C: lea rdi, THR_LOCK_myisam call inline_mysql_mutex_unlock_19 mov eax, [rbp+var_38] mov [rbp+var_64], eax call _my_thread_var mov ecx, [rbp+var_64] mov [rax], ecx mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_B1DC0 add rsp, 70h pop rbp retn loc_B1DC0: call ___stack_chk_fail
unsigned long long myisam_log_command(long long a1, long long a2, long long a3, unsigned int a4, __int16 a5) { __int16 v5; // kr00_2 const char *v6; // rsi int v8; // [rsp+10h] [rbp-60h] int v9; // [rsp+38h] [rbp-38h] int v10; // [rsp+3Ch] [rbp-34h] _BYTE v14[9]; // [rsp+5Fh] [rbp-11h] BYREF unsigned long long v15; // [rsp+68h] [rbp-8h] v15 = __readfsqword(0x28u); if ( log_type == 1 ) v8 = myisam_pid; else v8 = my_thread_dbug_id(); v9 = *(_DWORD *)my_thread_var(a1, (const char *)a2); v14[0] = a1; v5 = *(_DWORD *)(a2 + 448); v14[1] = HIBYTE(v5); v14[2] = v5; v14[5] = BYTE1(v8); v14[6] = v8; v14[3] = HIBYTE(v8); v14[4] = BYTE2(v8); v14[7] = HIBYTE(a5); v14[8] = a5; inline_mysql_mutex_lock_18( (long long)&THR_LOCK_myisam, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c", 0x69u); v10 = my_lock(myisam_log_file, 1LL, 0LL, 0LL, 32LL); v6 = (_BYTE *)(&qword_68 + 3); inline_mysql_file_write_1( (long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c", 0x6Bu, myisam_log_file, (long long)v14, 9LL, 0LL); if ( a3 ) { v6 = (_BYTE *)(&qword_68 + 5); inline_mysql_file_write_1( (long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c", 0x6Du, myisam_log_file, a3, a4, 0LL); } if ( !v10 ) { v6 = (_BYTE *)(&dword_0 + 2); my_lock(myisam_log_file, 2LL, 0LL, 0LL, 32LL); } inline_mysql_mutex_unlock_19((long long)&THR_LOCK_myisam); *(_DWORD *)my_thread_var(&THR_LOCK_myisam, v6) = v9; return __readfsqword(0x28u); }
_myisam_log_command: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0x18],EDI MOV qword ptr [RBP + -0x20],RSI MOV qword ptr [RBP + -0x28],RDX MOV dword ptr [RBP + -0x2c],ECX MOV dword ptr [RBP + -0x30],R8D CMP dword ptr [0x00d7a2c8],0x1 JNZ 0x001b1c4d MOV RAX,qword ptr [0x00d7a2c0] MOV qword ptr [RBP + -0x60],RAX JMP 0x001b1c56 LAB_001b1c4d: CALL 0x001f6660 MOV qword ptr [RBP + -0x60],RAX LAB_001b1c56: MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RBP + -0x40],RAX CALL 0x001f6060 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x38],EAX MOV EAX,dword ptr [RBP + -0x18] MOV byte ptr [RBP + -0x11],AL MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x1c0] MOV dword ptr [RBP + -0x44],EAX MOV EAX,dword ptr [RBP + -0x44] MOV byte ptr [RBP + -0xf],AL MOV EAX,dword ptr [RBP + -0x44] SHR EAX,0x8 MOV byte ptr [RBP + -0x10],AL MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV byte ptr [RBP + -0xb],AL MOV RAX,qword ptr [RBP + -0x50] SHR RAX,0x8 MOV byte ptr [RBP + -0xc],AL MOV RAX,qword ptr [RBP + -0x50] SHR RAX,0x10 MOV byte ptr [RBP + -0xd],AL MOV RAX,qword ptr [RBP + -0x50] SHR RAX,0x18 MOV byte ptr [RBP + -0xe],AL MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x54],EAX MOV EAX,dword ptr [RBP + -0x54] MOV byte ptr [RBP + -0x9],AL MOV EAX,dword ptr [RBP + -0x54] SHR EAX,0x8 MOV byte ptr [RBP + -0xa],AL LEA RDI,[0xd83080] LEA RSI,[0x253956] MOV EDX,0x69 CALL 0x001b19d0 LEA RAX,[0x3bf330] MOV EDI,dword ptr [RAX] MOV ESI,0x1 XOR EAX,EAX MOV ECX,EAX MOV R8D,0x20 MOV RDX,RCX CALL 0x001f34d0 MOV dword ptr [RBP + -0x34],EAX LEA RAX,[0x3bf330] MOV EDX,dword ptr [RAX] LEA RCX,[RBP + -0x11] LEA RDI,[0x253956] MOV ESI,0x6b MOV R8D,0x9 XOR EAX,EAX MOV R9D,EAX CALL 0x001b1a40 CMP qword ptr [RBP + -0x28],0x0 JZ 0x001b1d63 LEA RAX,[0x3bf330] MOV EDX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RBP + -0x2c] MOV R8D,EAX LEA RDI,[0x253956] MOV ESI,0x6d XOR EAX,EAX MOV R9D,EAX CALL 0x001b1a40 LAB_001b1d63: CMP dword ptr [RBP + -0x34],0x0 JNZ 0x001b1d8c LEA RAX,[0x3bf330] MOV EDI,dword ptr [RAX] MOV ESI,0x2 XOR EAX,EAX MOV ECX,EAX MOV R8D,0x20 MOV RDX,RCX CALL 0x001f34d0 MOV dword ptr [RBP + -0x34],EAX LAB_001b1d8c: LEA RDI,[0xd83080] CALL 0x001b1bb0 MOV EAX,dword ptr [RBP + -0x38] MOV dword ptr [RBP + -0x64],EAX CALL 0x001f6060 MOV ECX,dword ptr [RBP + -0x64] MOV dword ptr [RAX],ECX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001b1dc0 ADD RSP,0x70 POP RBP RET LAB_001b1dc0: CALL 0x0012a250
void _myisam_log_command(int1 param_1,long param_2,long param_3,int4 param_4, int4 param_5) { int4 uVar1; int iVar2; int4 *puVar3; long in_FS_OFFSET; int4 local_68; int1 local_19; int1 local_18; int1 local_17; int1 local_16; int1 local_15; int1 local_14; int1 local_13; int1 local_12; int1 local_11; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (log_type == 1) { local_68 = (int4)myisam_pid; } else { local_68 = my_thread_dbug_id(); } puVar3 = (int4 *)_my_thread_var(); uVar1 = *puVar3; local_17 = (int1)*(int4 *)(param_2 + 0x1c0); local_18 = (int1)((uint)*(int4 *)(param_2 + 0x1c0) >> 8); local_13 = (int1)local_68; local_14 = (int1)((uint)local_68 >> 8); local_15 = (int1)((uint)local_68 >> 0x10); local_16 = (int1)((uint)local_68 >> 0x18); local_11 = (int1)param_5; local_12 = (int1)((uint)param_5 >> 8); local_19 = param_1; inline_mysql_mutex_lock (THR_LOCK_myisam,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",0x69 ); iVar2 = my_lock(myisam_log_file,1,0,0,0x20); inline_mysql_file_write ("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",0x6b,myisam_log_file ,&local_19,9,0); if (param_3 != 0) { inline_mysql_file_write ("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",0x6d, myisam_log_file,param_3,param_4,0); } if (iVar2 == 0) { my_lock(myisam_log_file,2,0,0,0x20); } inline_mysql_mutex_unlock(THR_LOCK_myisam); puVar3 = (int4 *)_my_thread_var(); *puVar3 = uVar1; if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
38,995
tailoring_append_abbreviation
eloqsql/strings/ctype.c
static int tailoring_append_abbreviation(MY_XML_PARSER *st, const char *fmt, size_t len, const char *attr) { size_t clen; const char *attrend= attr + len; my_wc_t wc; for ( ; (clen= scan_one_character(attr, attrend, &wc)) > 0; attr+= clen) { DBUG_ASSERT(attr < attrend); if (tailoring_append(st, fmt, clen, attr) != MY_XML_OK) return MY_XML_ERROR; } return MY_XML_OK; }
O0
c
tailoring_append_abbreviation: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x28(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x28(%rbp), %rdi movq -0x38(%rbp), %rsi leaq -0x40(%rbp), %rdx callq 0x6c800 movq %rax, -0x30(%rbp) cmpq $0x0, %rax jbe 0x6c7e6 jmp 0x6c7b1 jmp 0x6c7b3 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x28(%rbp), %rcx callq 0x6c2a0 cmpl $0x0, %eax je 0x6c7d6 movl $0x1, -0x4(%rbp) jmp 0x6c7ed jmp 0x6c7d8 movq -0x30(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0x6c794 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
tailoring_append_abbreviation: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_28] add rax, [rbp+var_20] mov [rbp+var_38], rax loc_6C794: mov rdi, [rbp+var_28] mov rsi, [rbp+var_38] lea rdx, [rbp+var_40] call scan_one_character mov [rbp+var_30], rax cmp rax, 0 jbe short loc_6C7E6 jmp short $+2 loc_6C7B1: jmp short $+2 loc_6C7B3: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_30] mov rcx, [rbp+var_28] call tailoring_append cmp eax, 0 jz short loc_6C7D6 mov [rbp+var_4], 1 jmp short loc_6C7ED loc_6C7D6: jmp short $+2 loc_6C7D8: mov rax, [rbp+var_30] add rax, [rbp+var_28] mov [rbp+var_28], rax jmp short loc_6C794 loc_6C7E6: mov [rbp+var_4], 0 loc_6C7ED: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long tailoring_append_abbreviation(long long a1, const char *a2, long long a3, long long a4) { _BYTE v5[8]; // [rsp+0h] [rbp-40h] BYREF long long v6; // [rsp+8h] [rbp-38h] long long v7; // [rsp+10h] [rbp-30h] long long v8; // [rsp+18h] [rbp-28h] long long v9; // [rsp+20h] [rbp-20h] const char *v10; // [rsp+28h] [rbp-18h] long long v11; // [rsp+30h] [rbp-10h] v11 = a1; v10 = a2; v9 = a3; v8 = a4; v6 = a3 + a4; while ( 1 ) { v7 = scan_one_character(v8, v6, v5); if ( !v7 ) break; if ( (unsigned int)tailoring_append(v11, v10, v7, v8) ) return 1; v8 += v7; } return 0; }
tailoring_append_abbreviation: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x38],RAX LAB_0016c794: MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x38] LEA RDX,[RBP + -0x40] CALL 0x0016c800 MOV qword ptr [RBP + -0x30],RAX CMP RAX,0x0 JBE 0x0016c7e6 JMP 0x0016c7b1 LAB_0016c7b1: JMP 0x0016c7b3 LAB_0016c7b3: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x28] CALL 0x0016c2a0 CMP EAX,0x0 JZ 0x0016c7d6 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0016c7ed LAB_0016c7d6: JMP 0x0016c7d8 LAB_0016c7d8: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x28],RAX JMP 0x0016c794 LAB_0016c7e6: MOV dword ptr [RBP + -0x4],0x0 LAB_0016c7ed: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int4 tailoring_append_abbreviation(int8 param_1,int8 param_2,long param_3,long param_4) { int iVar1; int1 local_48 [8]; long local_40; long local_38; long local_30; long local_28; int8 local_20; int8 local_18; local_40 = param_4 + param_3; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; while( true ) { local_38 = scan_one_character(local_30,local_40,local_48); if (local_38 == 0) { return 0; } iVar1 = tailoring_append(local_18,local_20,local_38,local_30); if (iVar1 != 0) break; local_30 = local_38 + local_30; } return 1; }
38,996
minja::Parser::parseIdentifier()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<VariableExpr> parseIdentifier() { static std::regex ident_regex(R"((?!(?:not|is|and|or|del)\b)[a-zA-Z_]\w*)"); auto location = get_location(); auto ident = consumeToken(ident_regex); if (ident.empty()) return nullptr; return std::make_shared<VariableExpr>(location, ident); }
O2
cpp
minja::Parser::parseIdentifier(): pushq %r14 pushq %rbx subq $0x38, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x9eecc(%rip), %rax # 0x1033d0 movb (%rax), %al testb %al, %al je 0x6456b movq %rsp, %rdi movq %r14, %rsi callq 0x63958 leaq 0x9ee94(%rip), %rdx # 0x1033b0 leaq 0x18(%rsp), %rdi pushq $0x1 popq %rcx movq %r14, %rsi callq 0x63d7c cmpq $0x0, 0x20(%rsp) je 0x64546 movq %rsp, %rsi leaq 0x18(%rsp), %rdx movq %rbx, %rdi callq 0x74fa9 jmp 0x6454c xorps %xmm0, %xmm0 movups %xmm0, (%rbx) leaq 0x18(%rsp), %rdi callq 0x254d8 leaq 0x8(%rsp), %rdi callq 0x52fe0 movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r14 retq leaq 0x9ee5e(%rip), %rdi # 0x1033d0 callq 0x252e0 testl %eax, %eax je 0x6450a leaq 0x9ee2e(%rip), %rdi # 0x1033b0 leaq 0x53854(%rip), %rsi # 0xb7ddd pushq $0x10 popq %rdx callq 0x49b32 leaq -0x1a840(%rip), %rdi # 0x49d58 leaq 0x9ee11(%rip), %rsi # 0x1033b0 leaq 0x9e4d2(%rip), %rdx # 0x102a78 callq 0x24900 leaq 0x9ee1e(%rip), %rdi # 0x1033d0 callq 0x246d0 jmp 0x6450a movq %rax, %rbx leaq 0x9ee0a(%rip), %rdi # 0x1033d0 callq 0x246c0 jmp 0x645e9 movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0x254d8 jmp 0x645df movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x52fe0 movq %rbx, %rdi callq 0x25250 nop
_ZN5minja6Parser15parseIdentifierEv: push r14 push rbx sub rsp, 38h mov r14, rsi mov rbx, rdi lea rax, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; `guard variable for'minja::Parser::parseIdentifier(void)::ident_regex mov al, [rax] test al, al jz short loc_6456B loc_6450A: mov rdi, rsp; this mov rsi, r14 call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void) lea rdx, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rdi, [rsp+48h+var_30] 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) cmp [rsp+48h+var_28], 0 jz short loc_64546 mov rsi, rsp lea rdx, [rsp+48h+var_30] mov rdi, rbx call _ZSt11make_sharedIN5minja12VariableExprEJRNS0_8LocationERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::VariableExpr,minja::Location &,std::string &>(minja::Location &,std::string &) jmp short loc_6454C loc_64546: xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 loc_6454C: lea rdi, [rsp+48h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+48h+var_40] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rax, rbx add rsp, 38h pop rbx pop r14 retn loc_6456B: lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz short loc_6450A lea rdi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex lea rsi, aNotIsAndOrDelB; "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\"... 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, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_release jmp loc_6450A mov rbx, rax lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_645E9 mov rbx, rax lea rdi, [rsp+arg_10]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_645DF mov rbx, rax loc_645DF: lea rdi, [rsp+arg_0] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_645E9: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::parseIdentifier(minja::Parser *this, _QWORD *a2) { long long v3; // [rsp+0h] [rbp-48h] BYREF long long v4; // [rsp+8h] [rbp-40h] BYREF _QWORD v5[6]; // [rsp+18h] [rbp-30h] BYREF if ( !(_BYTE)`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], (long long)"(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]); } minja::Parser::get_location((minja::Parser *)&v3, a2); minja::Parser::consumeToken( v5, (long long)a2, (long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11], 1u); if ( v5[1] ) std::make_shared<minja::VariableExpr,minja::Location &,std::string &>(this, &v3, v5); else *(_OWORD *)this = 0LL; std::string::~string(v5); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v4); return this; }
parseIdentifier: PUSH R14 PUSH RBX SUB RSP,0x38 MOV R14,RSI MOV RBX,RDI LEA RAX,[0x2033d0] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x0016456b LAB_0016450a: MOV RDI,RSP MOV RSI,R14 CALL 0x00163958 LAB_00164515: LEA RDX,[0x2033b0] LEA RDI,[RSP + 0x18] PUSH 0x1 POP RCX MOV RSI,R14 CALL 0x00163d7c CMP qword ptr [RSP + 0x20],0x0 JZ 0x00164546 LAB_00164534: MOV RSI,RSP LEA RDX,[RSP + 0x18] MOV RDI,RBX CALL 0x00174fa9 JMP 0x0016454c LAB_00164546: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 LAB_0016454c: LEA RDI,[RSP + 0x18] CALL 0x001254d8 LEA RDI,[RSP + 0x8] CALL 0x00152fe0 MOV RAX,RBX ADD RSP,0x38 POP RBX POP R14 RET LAB_0016456b: LEA RDI,[0x2033d0] CALL 0x001252e0 TEST EAX,EAX JZ 0x0016450a LAB_0016457b: LEA RDI,[0x2033b0] LEA RSI,[0x1b7ddd] PUSH 0x10 POP RDX CALL 0x00149b32 LAB_00164591: LEA RDI,[0x149d58] LEA RSI,[0x2033b0] LEA RDX,[0x202a78] CALL 0x00124900 LEA RDI,[0x2033d0] CALL 0x001246d0 JMP 0x0016450a
/* minja::Parser::parseIdentifier() */ void minja::Parser::parseIdentifier(void) { int iVar1; Location *in_RDI; string asStack_48 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_40 [16]; string local_30 [8]; long local_28; if (parseIdentifier()::ident_regex_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseIdentifier()::ident_regex_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 0016457b to 00164590 has its CatchHandler @ 001645bc */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseIdentifier()::ident_regex_abi_cxx11_, "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseIdentifier()::ident_regex_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseIdentifier()::ident_regex_abi_cxx11_); } } get_location(); /* try { // try from 00164515 to 0016452b has its CatchHandler @ 001645dc */ consumeToken(local_30); if (local_28 == 0) { *(int8 *)in_RDI = 0; *(int8 *)(in_RDI + 8) = 0; } else { /* try { // try from 00164534 to 00164543 has its CatchHandler @ 001645cd */ std::make_shared<minja::VariableExpr,minja::Location&,std::__cxx11::string&>(in_RDI,asStack_48); } std::__cxx11::string::~string(local_30); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_40); return; }
38,997
post_add_n_dbl
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/pairing.c
static void post_add_n_dbl(vec384fp12 ret, const vec384fp6 lines[], const POINTonE1_affine *Px2, size_t n) { vec384fp6 line; post_line_by_Px2(line, lines++[0], Px2); mul_by_xy00z0_fp12(ret, ret, line); while (n--) { sqr_fp12(ret, ret); post_line_by_Px2(line, lines++[0], Px2); mul_by_xy00z0_fp12(ret, ret, line); } }
O3
c
post_add_n_dbl: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movq %rcx, %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %r12 leaq -0x150(%rbp), %r13 movq %r13, %rdi callq 0x68ffc movq %r12, %rdi movq %r12, %rsi movq %r13, %rdx callq 0x5fbd8 testq %rbx, %rbx je 0x69120 addq $0x120, %r15 # imm = 0x120 movq %r12, %rdi movq %r12, %rsi callq 0x5f3f6 movq %r13, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x68ffc movq %r12, %rdi movq %r12, %rsi movq %r13, %rdx callq 0x5fbd8 addq $0x120, %r15 # imm = 0x120 decq %rbx jne 0x690ed addq $0x128, %rsp # imm = 0x128 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
post_add_n_dbl: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 128h mov rbx, rcx mov r14, rdx mov r15, rsi mov r12, rdi lea r13, [rbp+var_150] mov rdi, r13 call post_line_by_Px2 mov rdi, r12 mov rsi, r12 mov rdx, r13 call mul_by_xy00z0_fp12 test rbx, rbx jz short loc_69120 add r15, 120h loc_690ED: mov rdi, r12 mov rsi, r12 call sqr_fp12 mov rdi, r13 mov rsi, r15 mov rdx, r14 call post_line_by_Px2 mov rdi, r12 mov rsi, r12 mov rdx, r13 call mul_by_xy00z0_fp12 add r15, 120h dec rbx jnz short loc_690ED loc_69120: add rsp, 128h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long post_add_n_dbl(long long a1, char *a2, long long a3, long long a4) { long long result; // rax char *v7; // r15 char v8[336]; // [rsp+0h] [rbp-150h] BYREF post_line_by_Px2(v8, a2, a3); result = mul_by_xy00z0_fp12(a1, a1, v8); if ( a4 ) { v7 = a2 + 288; do { sqr_fp12(a1, a1); post_line_by_Px2(v8, v7, a3); result = mul_by_xy00z0_fp12(a1, a1, v8); v7 += 288; --a4; } while ( a4 ); } return result; }
post_add_n_dbl: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x128 MOV RBX,RCX MOV R14,RDX MOV R15,RSI MOV R12,RDI LEA R13,[RBP + -0x150] MOV RDI,R13 CALL 0x00168ffc MOV RDI,R12 MOV RSI,R12 MOV RDX,R13 CALL 0x0015fbd8 TEST RBX,RBX JZ 0x00169120 ADD R15,0x120 LAB_001690ed: MOV RDI,R12 MOV RSI,R12 CALL 0x0015f3f6 MOV RDI,R13 MOV RSI,R15 MOV RDX,R14 CALL 0x00168ffc MOV RDI,R12 MOV RSI,R12 MOV RDX,R13 CALL 0x0015fbd8 ADD R15,0x120 DEC RBX JNZ 0x001690ed LAB_00169120: ADD RSP,0x128 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void post_add_n_dbl(int8 param_1,long param_2,int8 param_3,long param_4) { int1 local_158 [296]; post_line_by_Px2(local_158); mul_by_xy00z0_fp12(param_1,param_1,local_158); if (param_4 != 0) { param_2 = param_2 + 0x120; do { sqr_fp12(param_1,param_1); post_line_by_Px2(local_158,param_2,param_3); mul_by_xy00z0_fp12(param_1,param_1,local_158); param_2 = param_2 + 0x120; param_4 = param_4 + -1; } while (param_4 != 0); } return; }
38,998
intx::internal::udivrem_by2(unsigned long*, int, intx::uint<128u>)
corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp
inline uint128 udivrem_by2(uint64_t u[], int len, uint128 d) noexcept { INTX_REQUIRE(len >= 3); const auto reciprocal = reciprocal_3by2(d); auto rem = uint128{u[len - 2], u[len - 1]}; // Set the 2 top words as remainder. u[len - 1] = u[len - 2] = 0; // Reset these words being a part of the result quotient. auto it = &u[len - 3]; do { std::tie(*it, rem) = udivrem_3by2(rem[1], rem[0], *it, d, reciprocal); } while (it-- != &u[0]); return rem; }
O2
cpp
intx::internal::udivrem_by2(unsigned long*, int, intx::uint<128u>): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp cmpl $0x2, %esi jle 0x384a7 movq %rcx, %rbx movq %rdx, %r14 movl %esi, %ebp movq %rdi, %r15 movq %rdx, %rdi movq %rcx, %rsi callq 0x3884b movq %rax, %r12 movl %ebp, %ebp movq -0x10(%r15,%rbp,8), %rdx movq -0x8(%r15,%rbp,8), %rsi xorps %xmm0, %xmm0 movups %xmm0, -0x10(%r15,%rbp,8) shlq $0x3, %rbp leaq 0x10(%rsp), %r13 movq -0x18(%r15,%rbp), %rcx movq %r12, (%rsp) movq %r13, %rdi movq %r14, %r8 movq %rbx, %r9 callq 0x388bd movq 0x10(%rsp), %rax movq %rax, -0x18(%r15,%rbp) movq 0x18(%rsp), %rdx movq 0x20(%rsp), %rsi addq $-0x8, %rbp cmpq $0x10, %rbp jne 0x3845d movq %rdx, %rax movq %rsi, %rdx addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x3d831(%rip), %rdi # 0x75cdf leaq 0x3d6b9(%rip), %rsi # 0x75b6e leaq 0x3d7e4(%rip), %rcx # 0x75ca0 movl $0x65c, %edx # imm = 0x65C callq 0x22130
_ZN4intx8internal11udivrem_by2EPmiNS_4uintILj128EEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h cmp esi, 2 jle loc_384A7 mov rbx, rcx mov r14, rdx mov ebp, esi mov r15, rdi mov rdi, rdx mov rsi, rcx call _ZN4intx15reciprocal_3by2ENS_4uintILj128EEE; intx::reciprocal_3by2(intx::uint<128u>) mov r12, rax mov ebp, ebp mov rdx, [r15+rbp*8-10h] mov rsi, [r15+rbp*8-8] xorps xmm0, xmm0 movups xmmword ptr [r15+rbp*8-10h], xmm0 shl rbp, 3 lea r13, [rsp+58h+var_48] loc_3845D: mov rcx, [r15+rbp-18h] mov [rsp+58h+var_58], r12 mov rdi, r13 mov r8, r14 mov r9, rbx call _ZN4intx12udivrem_3by2EmmmNS_4uintILj128EEEm; intx::udivrem_3by2(ulong,ulong,ulong,intx::uint<128u>,ulong) mov rax, [rsp+58h+var_48] mov [r15+rbp-18h], rax mov rdx, [rsp+58h+var_40] mov rsi, [rsp+58h+var_38] add rbp, 0FFFFFFFFFFFFFFF8h cmp rbp, 10h jnz short loc_3845D mov rax, rdx mov rdx, rsi add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_384A7: lea rdi, aDlen3+1; "len >= 3" lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea rcx, aUint128IntxInt; "uint128 intx::internal::udivrem_by2(uin"... mov edx, 65Ch call ___assert_fail
long long intx::internal::udivrem_by2(long long a1, unsigned int a2, long long a3, long long a4) { int v4; // ebx int v5; // r14d long long v7; // r12 long long v8; // rdx long long v9; // rsi long long v10; // rbp long long v12; // [rsp+10h] [rbp-48h] BYREF long long v13; // [rsp+18h] [rbp-40h] long long v14; // [rsp+20h] [rbp-38h] if ( (int)a2 <= 2 ) __assert_fail( "len >= 3", "/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp", 1628LL, "uint128 intx::internal::udivrem_by2(uint64_t *, int, uint128)"); v4 = a4; v5 = a3; v7 = intx::reciprocal_3by2(a3, a4); v8 = *(_QWORD *)(a1 + 8LL * a2 - 16); v9 = *(_QWORD *)(a1 + 8LL * a2 - 8); *(_OWORD *)(a1 + 8LL * a2 - 16) = 0LL; v10 = 8LL * a2; do { intx::udivrem_3by2((unsigned int)&v12, v9, v8, *(_QWORD *)(a1 + v10 - 24), v5, v4, v7); *(_QWORD *)(a1 + v10 - 24) = v12; LODWORD(v8) = v13; LODWORD(v9) = v14; v10 -= 8LL; } while ( v10 != 16 ); return v13; }
udivrem_by2: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 CMP ESI,0x2 JLE 0x001384a7 MOV RBX,RCX MOV R14,RDX MOV EBP,ESI MOV R15,RDI MOV RDI,RDX MOV RSI,RCX CALL 0x0013884b MOV R12,RAX MOV EBP,EBP MOV RDX,qword ptr [R15 + RBP*0x8 + -0x10] MOV RSI,qword ptr [R15 + RBP*0x8 + -0x8] XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + RBP*0x8 + -0x10],XMM0 SHL RBP,0x3 LEA R13,[RSP + 0x10] LAB_0013845d: MOV RCX,qword ptr [R15 + RBP*0x1 + -0x18] MOV qword ptr [RSP],R12 MOV RDI,R13 MOV R8,R14 MOV R9,RBX CALL 0x001388bd MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [R15 + RBP*0x1 + -0x18],RAX MOV RDX,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] ADD RBP,-0x8 CMP RBP,0x10 JNZ 0x0013845d MOV RAX,RDX MOV RDX,RSI ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001384a7: LEA RDI,[0x175cdf] LEA RSI,[0x175b6e] LEA RCX,[0x175ca0] MOV EDX,0x65c CALL 0x00122130
/* intx::internal::udivrem_by2(unsigned long*, int, intx::uint<128u>) */ int1 [16] __thiscall intx::internal::udivrem_by2(internal *this,uint param_2,intx *param_3,int8 param_4) { int1 auVar1 [16]; int8 uVar2; int8 uVar3; ulong uVar4; long lVar5; int8 uVar6; int8 local_48; int8 local_40; int8 local_38; if (2 < (int)param_2) { uVar2 = reciprocal_3by2(param_3,param_4); uVar4 = (ulong)param_2; uVar3 = *(int8 *)(this + uVar4 * 8 + -0x10); uVar6 = *(int8 *)(this + uVar4 * 8 + -8); *(int8 *)(this + uVar4 * 8 + -0x10) = 0; *(int8 *)(this + uVar4 * 8 + -0x10 + 8) = 0; lVar5 = uVar4 << 3; do { udivrem_3by2(&local_48,uVar6,uVar3,*(int8 *)(this + lVar5 + -0x18),param_3,param_4,uVar2 ); *(int8 *)(this + lVar5 + -0x18) = local_48; auVar1._8_8_ = local_38; auVar1._0_8_ = local_40; lVar5 = lVar5 + -8; uVar3 = local_40; uVar6 = local_38; } while (lVar5 != 0x10); return auVar1; } /* WARNING: Subroutine does not return */ __assert_fail("len >= 3", "/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp" ,0x65c,"uint128 intx::internal::udivrem_by2(uint64_t *, int, uint128)"); }
38,999
Catch::AssertionHandler::handleUnexpectedInflightException()
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
void AssertionHandler::handleUnexpectedInflightException() { m_resultCapture.handleUnexpectedInflightException( m_assertionInfo, Catch::translateActiveException(), m_reaction ); }
O3
cpp
Catch::AssertionHandler::handleUnexpectedInflightException(): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx movq 0x40(%rdi), %r14 callq 0x735c6 movq (%rax), %rcx movq %rax, %rdi callq *0x28(%rcx) movq (%rax), %rcx movq %rsp, %r15 movq %r15, %rdi movq %rax, %rsi callq *0x10(%rcx) leaq 0x38(%rbx), %rcx movq (%r14), %rax movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx callq *0x90(%rax) leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x5912e movq 0x10(%rsp), %rsi incq %rsi callq 0x17150 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x59156 movq 0x10(%rsp), %rsi incq %rsi callq 0x17150 movq %rbx, %rdi callq 0x17740
_ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv: push r15 push r14 push rbx sub rsp, 20h mov rbx, rdi mov r14, [rdi+40h] call _ZN5Catch9SingletonINS_12_GLOBAL__N_111RegistryHubENS_12IRegistryHubENS_19IMutableRegistryHubEE11getInternalEv; Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(void) mov rcx, [rax] mov rdi, rax call qword ptr [rcx+28h] mov rcx, [rax] mov r15, rsp mov rdi, r15 mov rsi, rax call qword ptr [rcx+10h] lea rcx, [rbx+38h] mov rax, [r14] mov rdi, r14 mov rsi, rbx mov rdx, r15 call qword ptr [rax+90h] lea rax, [rsp+38h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_5912E mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5912E: add rsp, 20h pop rbx pop r14 pop r15 retn mov rbx, rax lea rax, [rsp+arg_8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_59156 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_59156: mov rdi, rbx call __Unwind_Resume
void Catch::AssertionHandler::handleUnexpectedInflightException(Catch::AssertionHandler *this) { long long v1; // r14 long long Internal; // rax long long v3; // rax void *v4[2]; // [rsp+0h] [rbp-38h] BYREF long long v5; // [rsp+10h] [rbp-28h] BYREF v1 = *((_QWORD *)this + 8); Internal = Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(this); v3 = (*(long long ( **)(long long))(*(_QWORD *)Internal + 40LL))(Internal); (*(void ( **)(void **, long long))(*(_QWORD *)v3 + 16LL))(v4, v3); (*(void ( **)(long long, Catch::AssertionHandler *, void **, char *))(*(_QWORD *)v1 + 144LL))( v1, this, v4, (char *)this + 56); if ( v4[0] != &v5 ) operator delete(v4[0], v5 + 1); }
handleUnexpectedInflightException: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,RDI MOV R14,qword ptr [RDI + 0x40] CALL 0x001735c6 MOV RCX,qword ptr [RAX] MOV RDI,RAX CALL qword ptr [RCX + 0x28] MOV RCX,qword ptr [RAX] MOV R15,RSP MOV RDI,R15 MOV RSI,RAX CALL qword ptr [RCX + 0x10] LEA RCX,[RBX + 0x38] MOV RAX,qword ptr [R14] LAB_00159104: MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 CALL qword ptr [RAX + 0x90] LAB_00159113: LEA RAX,[RSP + 0x10] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0015912e MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00117150 LAB_0015912e: ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* Catch::AssertionHandler::handleUnexpectedInflightException() */ void __thiscall Catch::AssertionHandler::handleUnexpectedInflightException(AssertionHandler *this) { long *plVar1; long *plVar2; long *local_38 [2]; long local_28 [2]; plVar1 = *(long **)(this + 0x40); plVar2 = (long *)Singleton<Catch::(anonymous_namespace)::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub> ::getInternal(); plVar2 = (long *)(**(code **)(*plVar2 + 0x28))(plVar2); (**(code **)(*plVar2 + 0x10))(local_38,plVar2); /* try { // try from 00159104 to 00159112 has its CatchHandler @ 00159138 */ (**(code **)(*plVar1 + 0x90))(plVar1,this,local_38,this + 0x38); if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } return; }