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
3,800
coro::detail::when_all_task_promise<void>::unhandled_exception()
AlayaLite/build_O3/_deps/libcoro-src/include/coro/when_all.hpp
auto unhandled_exception() noexcept -> void { m_exception_ptr = std::current_exception(); }
O3
cpp
coro::detail::when_all_task_promise<void>::unhandled_exception(): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x2190 movq (%r14), %rax movq $0x0, (%r14) movq 0x8(%rbx), %rcx movq %rcx, 0x10(%rsp) movq %rax, 0x8(%rbx) testq %rcx, %rcx je 0x3df5 leaq 0x10(%rsp), %rdi callq 0x2130 cmpq $0x0, 0x8(%rsp) je 0x3df5 leaq 0x8(%rsp), %rdi callq 0x2130 addq $0x18, %rsp popq %rbx popq %r14 retq nop
_ZN4coro6detail21when_all_task_promiseIvE19unhandled_exceptionEv: push r14 push rbx sub rsp, 18h mov rbx, rdi lea r14, [rsp+28h+var_20] mov rdi, r14 call __ZSt17current_exceptionv; std::current_exception(void) mov rax, [r14] mov qword ptr [r14], 0 mov rcx, [rbx+8] mov [rsp+28h+var_18], rcx mov [rbx+8], rax test rcx, rcx jz short loc_3DF5 lea rdi, [rsp+28h+var_18]; this call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void) cmp [rsp+28h+var_20], 0 jz short loc_3DF5 lea rdi, [rsp+28h+var_20]; this call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void) loc_3DF5: add rsp, 18h pop rbx pop r14 retn
long long coro::detail::when_all_task_promise<void>::unhandled_exception(long long a1) { long long result; // rax long long v2; // rcx long long v3; // [rsp+8h] [rbp-20h] BYREF _QWORD v4[3]; // [rsp+10h] [rbp-18h] BYREF std::current_exception(); result = v3; v3 = 0LL; v4[0] = *(_QWORD *)(a1 + 8); v2 = v4[0]; *(_QWORD *)(a1 + 8) = result; if ( v2 ) { result = std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)v4); if ( v3 ) return std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)&v3); } return result; }
unhandled_exception: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RDI LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x00102190 MOV RAX,qword ptr [R14] MOV qword ptr [R14],0x0 MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RSP + 0x10],RCX MOV qword ptr [RBX + 0x8],RAX TEST RCX,RCX JZ 0x00103df5 LEA RDI,[RSP + 0x10] CALL 0x00102130 CMP qword ptr [RSP + 0x8],0x0 JZ 0x00103df5 LEA RDI,[RSP + 0x8] CALL 0x00102130 LAB_00103df5: ADD RSP,0x18 POP RBX POP R14 RET
/* WARNING: Removing unreachable block (ram,0x00103deb) */ /* coro::detail::when_all_task_promise<void>::unhandled_exception() */ void __thiscall coro::detail::when_all_task_promise<void>::unhandled_exception(when_all_task_promise<void> *this) { long lVar1; int8 local_20; std::current_exception(); lVar1 = *(long *)(this + 8); *(int8 *)(this + 8) = local_20; if (lVar1 != 0) { std::__exception_ptr::exception_ptr::_M_release(); } return; }
3,801
minja::Value::empty() const
monkey531[P]llama/common/minja.hpp
bool empty() const { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (is_string()) return primitive_.empty(); if (is_array()) return array_->empty(); if (is_object()) return object_->empty(); return false; }
O0
cpp
minja::Value::empty() const: subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq 0x28(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x114670 testb $0x1, %al jne 0x11547e jmp 0x1154d6 movl $0x10, %edi callq 0x5a6b0 movq %rax, %rdi movq %rdi, %rax movq %rax, 0x8(%rsp) leaq 0xfc227(%rip), %rsi # 0x2116c1 callq 0x5a480 jmp 0x1154a1 movq 0x8(%rsp), %rdi movq 0x18db03(%rip), %rsi # 0x2a2fb0 movq 0x18dac4(%rip), %rdx # 0x2a2f78 callq 0x5ab30 movq 0x8(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) callq 0x5af90 jmp 0x115568 movq 0x10(%rsp), %rdi callq 0x114c90 testb $0x1, %al jne 0x1154e6 jmp 0x1154fc movq 0x10(%rsp), %rdi addq $0x40, %rdi callq 0x115b60 andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x11555d movq 0x10(%rsp), %rdi callq 0x115440 testb $0x1, %al jne 0x11550c jmp 0x11552a movq 0x10(%rsp), %rdi addq $0x10, %rdi callq 0x114770 movq %rax, %rdi callq 0x115be0 andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x11555d movq 0x10(%rsp), %rdi callq 0x115c30 testb $0x1, %al jne 0x11553a jmp 0x115558 movq 0x10(%rsp), %rdi addq $0x20, %rdi callq 0x114850 movq %rax, %rdi callq 0x115c50 andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x11555d movb $0x0, 0x37(%rsp) movb 0x37(%rsp), %al andb $0x1, %al addq $0x38, %rsp retq movq 0x20(%rsp), %rdi callq 0x5abf0 nopw %cs:(%rax,%rax) nopl (%rax)
_ZNK5minja5Value5emptyEv: sub rsp, 38h mov [rsp+38h+var_10], rdi mov rdi, [rsp+38h+var_10]; this mov [rsp+38h+var_28], rdi call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, 1 jnz short loc_11547E jmp short loc_1154D6 loc_11547E: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+38h+var_30], rax lea rsi, aUndefinedValue; "Undefined value or reference" call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short $+2 loc_1154A1: mov rdi, [rsp+38h+var_30]; void * mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw mov rdi, [rsp+38h+var_30]; void * mov rcx, rax mov eax, edx mov [rsp+38h+var_18], rcx mov [rsp+38h+var_1C], eax call ___cxa_free_exception jmp loc_115568 loc_1154D6: mov rdi, [rsp+38h+var_28]; this call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void) test al, 1 jnz short loc_1154E6 jmp short loc_1154FC loc_1154E6: mov rdi, [rsp+38h+var_28] add rdi, 40h ; '@' 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) and al, 1 mov [rsp+38h+var_1], al jmp short loc_11555D loc_1154FC: mov rdi, [rsp+38h+var_28]; this call _ZNK5minja5Value8is_arrayEv; minja::Value::is_array(void) test al, 1 jnz short loc_11550C jmp short loc_11552A loc_11550C: mov rdi, [rsp+38h+var_28] add rdi, 10h call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax call _ZNKSt6vectorIN5minja5ValueESaIS1_EE5emptyEv; std::vector<minja::Value>::empty(void) and al, 1 mov [rsp+38h+var_1], al jmp short loc_11555D loc_11552A: mov rdi, [rsp+38h+var_28]; this call _ZNK5minja5Value9is_objectEv; minja::Value::is_object(void) test al, 1 jnz short loc_11553A jmp short loc_115558 loc_11553A: mov rdi, [rsp+38h+var_28] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax call _ZNKSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5emptyEv; 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>>::empty(void) and al, 1 mov [rsp+38h+var_1], al jmp short loc_11555D loc_115558: mov [rsp+38h+var_1], 0 loc_11555D: mov al, [rsp+38h+var_1] and al, 1 add rsp, 38h retn loc_115568: mov rdi, [rsp+38h+var_18] call __Unwind_Resume
char minja::Value::empty(minja::Value *this) { long long v1; // rax long long v2; // rax std::runtime_error *exception; // [rsp+8h] [rbp-30h] if ( (minja::Value::is_null(this) & 1) != 0 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Undefined value or reference"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( minja::Value::is_string(this) ) 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>::empty((char *)this + 64) & 1; if ( minja::Value::is_array(this) ) { v1 = std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)this + 16); return std::vector<minja::Value>::empty(v1) & 1; } else if ( (minja::Value::is_object(this) & 1) != 0 ) { v2 = std::__shared_ptr_access<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>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)this + 32); return 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>>::empty(v2) & 1; } else { return 0; } }
3,802
minja::Value::empty() const
monkey531[P]llama/common/minja.hpp
bool empty() const { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (is_string()) return primitive_.empty(); if (is_array()) return array_->empty(); if (is_object()) return object_->empty(); return false; }
O2
cpp
minja::Value::empty() const: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0x63740 testb %al, %al jne 0x63c9f cmpb $0x3, 0x40(%rbx) jne 0x63c77 addq $0x40, %rbx movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x63f0a movq 0x10(%rbx), %rax testq %rax, %rax jne 0x63c89 movq 0x20(%rbx), %rax testq %rax, %rax je 0x63c9b movq (%rax), %rcx cmpq 0x8(%rax), %rcx sete %al addq $0x8, %rsp popq %rbx popq %r14 retq xorl %eax, %eax jmp 0x63c93 pushq $0x10 popq %rdi callq 0x23470 movq %rax, %rbx leaq 0x50039(%rip), %rsi # 0xb3cea movq %rax, %rdi callq 0x23330 movq 0x9a330(%rip), %rsi # 0xfdff0 movq 0x9a291(%rip), %rdx # 0xfdf58 movq %rbx, %rdi callq 0x23f40 movq %rax, %r14 movq %rbx, %rdi callq 0x236a0 movq %r14, %rdi callq 0x23fc0
_ZNK5minja5Value5emptyEv: push r14 push rbx push rax mov rbx, rdi call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, al jnz short loc_63C9F cmp byte ptr [rbx+40h], 3 jnz short loc_63C77 add rbx, 40h ; '@' mov rdi, rbx add rsp, 8 pop rbx pop r14 jmp _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) loc_63C77: mov rax, [rbx+10h] test rax, rax jnz short loc_63C89 mov rax, [rbx+20h] test rax, rax jz short loc_63C9B loc_63C89: mov rcx, [rax] cmp rcx, [rax+8] setz al loc_63C93: add rsp, 8 pop rbx pop r14 retn loc_63C9B: xor eax, eax jmp short loc_63C93 loc_63C9F: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aUndefinedValue; "Undefined value or reference" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception mov rdi, r14 call __Unwind_Resume
char minja::Value::empty(minja::Value *this) { _QWORD *v2; // rax std::runtime_error *exception; // rbx if ( minja::Value::is_null(this) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Undefined value or reference"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( *((_BYTE *)this + 64) == 3 ) 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>::empty((char *)this + 64); v2 = (_QWORD *)*((_QWORD *)this + 2); return (v2 || (v2 = (_QWORD *)*((_QWORD *)this + 4)) != 0LL) && *v2 == v2[1]; }
empty: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x00163740 TEST AL,AL JNZ 0x00163c9f CMP byte ptr [RBX + 0x40],0x3 JNZ 0x00163c77 ADD RBX,0x40 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00163f0a LAB_00163c77: MOV RAX,qword ptr [RBX + 0x10] TEST RAX,RAX JNZ 0x00163c89 MOV RAX,qword ptr [RBX + 0x20] TEST RAX,RAX JZ 0x00163c9b LAB_00163c89: MOV RCX,qword ptr [RAX] CMP RCX,qword ptr [RAX + 0x8] SETZ AL LAB_00163c93: ADD RSP,0x8 POP RBX POP R14 RET LAB_00163c9b: XOR EAX,EAX JMP 0x00163c93 LAB_00163c9f: PUSH 0x10 POP RDI CALL 0x00123470 MOV RBX,RAX LAB_00163caa: LEA RSI,[0x1b3cea] MOV RDI,RAX CALL 0x00123330 LAB_00163cb9: MOV RSI,qword ptr [0x001fdff0] MOV RDX,qword ptr [0x001fdf58] MOV RDI,RBX CALL 0x00123f40
/* minja::Value::empty() const */ int8 __thiscall minja::Value::empty(Value *this) { char cVar1; int8 uVar2; long *plVar3; runtime_error *this_00; cVar1 = is_null(this); if (cVar1 != '\0') { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00163caa to 00163cb8 has its CatchHandler @ 00163ccf */ std::runtime_error::runtime_error(this_00,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58); } if (this[0x40] == (Value)0x3) { 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> ::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> *)(this + 0x40)); return uVar2; } plVar3 = *(long **)(this + 0x10); if ((plVar3 == (long *)0x0) && (plVar3 = *(long **)(this + 0x20), plVar3 == (long *)0x0)) { uVar2 = 0; } else { uVar2 = CONCAT71((int7)((ulong)plVar3 >> 8),*plVar3 == plVar3[1]); } return uVar2; }
3,803
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&)
monkey531[P]llama/common/json.hpp
std::pair<iterator, bool> emplace(const key_type& key, T&& t) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return {it, false}; } } Container::emplace_back(key, std::forward<T>(t)); return {std::prev(this->end()), true}; }
O0
cpp
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&): subq $0x68, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq %rdx, 0x40(%rsp) movq 0x50(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0xbb430 movq %rax, 0x38(%rsp) movq 0x8(%rsp), %rdi callq 0xbb460 movq %rax, 0x30(%rsp) leaq 0x38(%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0xbb490 testb $0x1, %al jne 0xbdfcb jmp 0xbe022 movq 0x8(%rsp), %rax addq $0x18, %rax movq %rax, (%rsp) leaq 0x38(%rsp), %rdi callq 0xbc600 movq (%rsp), %rdi movq %rax, %rsi movq 0x48(%rsp), %rdx callq 0xbe080 testb $0x1, %al jne 0xbdff9 jmp 0xbe014 movb $0x0, 0x2f(%rsp) leaq 0x58(%rsp), %rdi leaq 0x38(%rsp), %rsi leaq 0x2f(%rsp), %rdx callq 0xbe0b0 jmp 0xbe072 jmp 0xbe016 leaq 0x38(%rsp), %rdi callq 0xbb510 jmp 0xbdfa7 movq 0x8(%rsp), %rdi movq 0x48(%rsp), %rsi movq 0x40(%rsp), %rdx callq 0xbe0e0 movq 0x8(%rsp), %rdi callq 0xbb460 movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rdi movl $0x1, %esi callq 0xbe170 movq %rax, 0x20(%rsp) movb $0x1, 0x17(%rsp) leaq 0x58(%rsp), %rdi leaq 0x20(%rsp), %rsi leaq 0x17(%rsp), %rdx callq 0xbe1b0 movq 0x58(%rsp), %rax movb 0x60(%rsp), %dl addq $0x68, %rsp retq
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_: sub rsp, 68h mov [rsp+68h+var_18], rdi mov [rsp+68h+var_20], rsi mov [rsp+68h+var_28], rdx mov rdi, [rsp+68h+var_18] mov [rsp+68h+var_60], rdi call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+68h+var_30], rax loc_BDFA7: mov rdi, [rsp+68h+var_60] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+68h+var_38], rax lea rdi, [rsp+68h+var_30] lea rsi, [rsp+68h+var_38] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_BDFCB jmp short loc_BE022 loc_BDFCB: mov rax, [rsp+68h+var_60] add rax, 18h mov [rsp+68h+var_68], rax lea rdi, [rsp+68h+var_30] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void) mov rdi, [rsp+68h+var_68] mov rsi, rax mov rdx, [rsp+68h+var_20] call _ZNKSt8equal_toIvEclIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_EEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSA_OSB_ test al, 1 jnz short loc_BDFF9 jmp short loc_BE014 loc_BDFF9: mov [rsp+68h+var_39], 0 lea rdi, [rsp+68h+var_10] lea rsi, [rsp+68h+var_30] lea rdx, [rsp+68h+var_39] call _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2IRSM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISR_SS_EEEbE4typeELb1EEEOSR_OSS_ jmp short loc_BE072 loc_BE014: jmp short $+2 loc_BE016: lea rdi, [rsp+68h+var_30] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) jmp short loc_BDFA7 loc_BE022: mov rdi, [rsp+68h+var_60] mov rsi, [rsp+68h+var_20] mov rdx, [rsp+68h+var_28] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE12emplace_backIJRS7_SF_EEERSG_DpOT_; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::emplace_back<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rdi, [rsp+68h+var_60] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+68h+var_50], rax mov rdi, [rsp+68h+var_50] mov esi, 1 call _ZSt4prevIN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSB_11ordered_mapESt6vectorS8_blmdSaNSB_14adl_serializerESE_IhSaIhEEvEEESE_ISJ_SaISJ_EEEEET_SO_NSt15iterator_traitsISO_E15difference_typeE; std::prev<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>,std::iterator_traits<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::difference_type) mov [rsp+68h+var_48], rax mov [rsp+68h+var_51], 1 lea rdi, [rsp+68h+var_10] lea rsi, [rsp+68h+var_48] lea rdx, [rsp+68h+var_51] call _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2ISM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISQ_SR_EEEbE4typeELb1EEEOSQ_OSR_ loc_BE072: mov rax, [rsp+68h+var_10] mov dl, [rsp+68h+var_8] add rsp, 68h retn
long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::emplace( long long a1, long long a2, long long a3) { long long v3; // rax char v5; // [rsp+17h] [rbp-51h] BYREF long long v6; // [rsp+18h] [rbp-50h] long long v7; // [rsp+20h] [rbp-48h] BYREF char v8; // [rsp+2Fh] [rbp-39h] BYREF long long v9; // [rsp+30h] [rbp-38h] BYREF long long i; // [rsp+38h] [rbp-30h] BYREF long long v11; // [rsp+40h] [rbp-28h] long long v12; // [rsp+48h] [rbp-20h] long long v13; // [rsp+50h] [rbp-18h] long long v14; // [rsp+58h] [rbp-10h] BYREF v13 = a1; v12 = a2; v11 = a3; for ( i = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(a1); ; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&i) ) { v9 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1); if ( !__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( (long long)&i, (long long)&v9) ) break; v3 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)&i); if ( (std::equal_to<void>::operator()<std::string const&,std::string const&>(a1 + 24, v3, v12) & 1) != 0 ) { v8 = 0; ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2IRSM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISR_SS_EEEbE4typeELb1EEEOSR_OSS_( &v14, &i, &v8); return v14; } } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::emplace_back<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( a1, v12, v11); v6 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1); v7 = std::prev<__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>( v6, 1LL); v5 = 1; ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2ISM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISQ_SR_EEEbE4typeELb1EEEOSQ_OSR_( &v14, &v7, &v5); return v14; }
emplace: SUB RSP,0x68 MOV qword ptr [RSP + 0x50],RDI MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RSP + 0x40],RDX MOV RDI,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x8],RDI CALL 0x001bb430 MOV qword ptr [RSP + 0x38],RAX LAB_001bdfa7: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001bb460 MOV qword ptr [RSP + 0x30],RAX LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0x30] CALL 0x001bb490 TEST AL,0x1 JNZ 0x001bdfcb JMP 0x001be022 LAB_001bdfcb: MOV RAX,qword ptr [RSP + 0x8] ADD RAX,0x18 MOV qword ptr [RSP],RAX LEA RDI,[RSP + 0x38] CALL 0x001bc600 MOV RDI,qword ptr [RSP] MOV RSI,RAX MOV RDX,qword ptr [RSP + 0x48] CALL 0x001be080 TEST AL,0x1 JNZ 0x001bdff9 JMP 0x001be014 LAB_001bdff9: MOV byte ptr [RSP + 0x2f],0x0 LEA RDI,[RSP + 0x58] LEA RSI,[RSP + 0x38] LEA RDX,[RSP + 0x2f] CALL 0x001be0b0 JMP 0x001be072 LAB_001be014: JMP 0x001be016 LAB_001be016: LEA RDI,[RSP + 0x38] CALL 0x001bb510 JMP 0x001bdfa7 LAB_001be022: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x40] CALL 0x001be0e0 MOV RDI,qword ptr [RSP + 0x8] CALL 0x001bb460 MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0x18] MOV ESI,0x1 CALL 0x001be170 MOV qword ptr [RSP + 0x20],RAX MOV byte ptr [RSP + 0x17],0x1 LEA RDI,[RSP + 0x58] LEA RSI,[RSP + 0x20] LEA RDX,[RSP + 0x17] CALL 0x001be1b0 LAB_001be072: MOV RAX,qword ptr [RSP + 0x58] MOV DL,byte ptr [RSP + 0x60] ADD RSP,0x68 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > > >::emplace(std::__cxx11::string const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&&) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::emplace(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *this,string *param_1,basic_json *param_2) { bool bVar1; string *psVar2; ulong uVar3; int8 extraout_RDX; int8 extraout_RDX_00; int8 uVar4; int1 auVar5 [16]; int1 local_51; int8 local_50; int8 local_48; int1 local_39; int8 local_38; int8 local_30; basic_json *local_28; string *local_20; ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *local_18; int8 local_10; int1 local_8; local_28 = param_2; local_20 = param_1; local_18 = this; local_30 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::begin((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)this); do { local_38 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::end((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)this); bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_30,(__normal_iterator *)&local_38); if (!bVar1) { std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> :: emplace_back<std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)this,local_20,local_28); local_50 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::end((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)this); local_48 = std:: prev<__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>> (local_50,1); local_51 = 1; _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2ISM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISQ_SR_EEEbE4typeELb1EEEOSQ_OSR_ (&local_10,&local_48,&local_51); uVar4 = extraout_RDX_00; LAB_001be072: auVar5._9_7_ = (int7)((ulong)uVar4 >> 8); auVar5[8] = local_8; auVar5._0_8_ = local_10; return auVar5; } psVar2 = (string *) __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator->((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_30); uVar3 = std::equal_to<void>::operator()((equal_to<void> *)(this + 0x18),psVar2,local_20); if ((uVar3 & 1) != 0) { local_39 = 0; _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2IRSM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISR_SS_EEEbE4typeELb1EEEOSR_OSS_ (&local_10,&local_30,&local_39); uVar4 = extraout_RDX; goto LAB_001be072; } __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator++((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_30); } while( true ); }
3,804
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&)
monkey531[P]llama/common/json.hpp
std::pair<iterator, bool> emplace(const key_type& key, T&& t) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return {it, false}; } } Container::emplace_back(key, std::forward<T>(t)); return {std::prev(this->end()), true}; }
O2
cpp
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %r14 movq (%rdi), %rbx cmpq 0x8(%r14), %rbx je 0x44b4b movq %rbx, %rdi movq %r12, %rsi callq 0x3bb14 testb %al, %al jne 0x44b65 addq $0x30, %rbx jmp 0x44b30 movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx callq 0x44b76 movq 0x8(%r14), %rbx addq $-0x30, %rbx movb $0x1, %dl jmp 0x44b67 xorl %edx, %edx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_: push r15 push r14 push r12 push rbx push rax mov r15, rdx mov r12, rsi mov r14, rdi mov rbx, [rdi] loc_44B30: cmp rbx, [r14+8] jz short loc_44B4B mov rdi, rbx mov rsi, r12 call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ test al, al jnz short loc_44B65 add rbx, 30h ; '0' jmp short loc_44B30 loc_44B4B: mov rdi, r14 mov rsi, r12 mov rdx, r15 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE12emplace_backIJRS7_SF_EEERSG_DpOT_; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::emplace_back<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rbx, [r14+8] add rbx, 0FFFFFFFFFFFFFFD0h mov dl, 1 jmp short loc_44B67 loc_44B65: xor edx, edx loc_44B67: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::emplace( _QWORD **a1, _QWORD *a2, long long a3) { _QWORD *i; // rbx for ( i = *a1; i != a1[1]; i += 6 ) { if ( std::operator==<char>(i, a2) ) return (long long)i; } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::emplace_back<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( a1, a2, a3); return (long long)(a1[1] - 6); }
emplace: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R12,RSI MOV R14,RDI MOV RBX,qword ptr [RDI] LAB_00144b30: CMP RBX,qword ptr [R14 + 0x8] JZ 0x00144b4b MOV RDI,RBX MOV RSI,R12 CALL 0x0013bb14 TEST AL,AL JNZ 0x00144b65 ADD RBX,0x30 JMP 0x00144b30 LAB_00144b4b: MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 CALL 0x00144b76 MOV RBX,qword ptr [R14 + 0x8] ADD RBX,-0x30 MOV DL,0x1 JMP 0x00144b67 LAB_00144b65: XOR EDX,EDX LAB_00144b67: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > > >::emplace(std::__cxx11::string const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&&) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::emplace(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *this,string *param_1,basic_json *param_2) { char cVar1; int8 extraout_RDX; int8 uVar2; string *psVar3; int1 auVar4 [16]; psVar3 = *(string **)this; do { if (psVar3 == *(string **)(this + 8)) { std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> :: emplace_back<std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)this,param_1,param_2); psVar3 = (string *)(*(long *)(this + 8) + -0x30); uVar2 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1); LAB_00144b67: auVar4._8_8_ = uVar2; auVar4._0_8_ = psVar3; return auVar4; } cVar1 = std::operator==(psVar3,param_1); if (cVar1 != '\0') { uVar2 = 0; goto LAB_00144b67; } psVar3 = psVar3 + 0x30; } while( true ); }
3,805
stmt_buffered_fetch
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
static int stmt_buffered_fetch(MYSQL_STMT *stmt, uchar **row) { if (!stmt->result_cursor) { *row= NULL; stmt->state= MYSQL_STMT_FETCH_DONE; return MYSQL_NO_DATA; } stmt->state= MYSQL_STMT_USER_FETCHING; *row= (uchar *)stmt->result_cursor->data; stmt->result_cursor= stmt->result_cursor->next; return 0; }
O0
c
stmt_buffered_fetch: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, 0xe0(%rax) jne 0x45ac9 movq -0x18(%rbp), %rax movq $0x0, (%rax) movq -0x10(%rbp), %rax movl $0x6, 0x50(%rax) movl $0x64, -0x4(%rbp) jmp 0x45b0a movq -0x10(%rbp), %rax movl $0x5, 0x50(%rax) movq -0x10(%rbp), %rax movq 0xe0(%rax), %rax movq 0x8(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq 0xe0(%rax), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0xe0(%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nop
stmt_buffered_fetch: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] cmp qword ptr [rax+0E0h], 0 jnz short loc_45AC9 mov rax, [rbp+var_18] mov qword ptr [rax], 0 mov rax, [rbp+var_10] mov dword ptr [rax+50h], 6 mov [rbp+var_4], 64h ; 'd' jmp short loc_45B0A loc_45AC9: mov rax, [rbp+var_10] mov dword ptr [rax+50h], 5 mov rax, [rbp+var_10] mov rax, [rax+0E0h] mov rcx, [rax+8] mov rax, [rbp+var_18] mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax+0E0h] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+0E0h], rcx mov [rbp+var_4], 0 loc_45B0A: mov eax, [rbp+var_4] pop rbp retn
long long stmt_buffered_fetch(long long a1, _QWORD *a2) { if ( *(_QWORD *)(a1 + 224) ) { *(_DWORD *)(a1 + 80) = 5; *a2 = *(_QWORD *)(*(_QWORD *)(a1 + 224) + 8LL); *(_QWORD *)(a1 + 224) = **(_QWORD **)(a1 + 224); return 0; } else { *a2 = 0LL; *(_DWORD *)(a1 + 80) = 6; return 100; } }
stmt_buffered_fetch: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0xe0],0x0 JNZ 0x00145ac9 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x50],0x6 MOV dword ptr [RBP + -0x4],0x64 JMP 0x00145b0a LAB_00145ac9: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x50],0x5 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xe0] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xe0] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xe0],RCX MOV dword ptr [RBP + -0x4],0x0 LAB_00145b0a: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 stmt_buffered_fetch(long param_1,int8 *param_2) { int4 local_c; if (*(long *)(param_1 + 0xe0) == 0) { *param_2 = 0; *(int4 *)(param_1 + 0x50) = 6; local_c = 100; } else { *(int4 *)(param_1 + 0x50) = 5; *param_2 = *(int8 *)(*(long *)(param_1 + 0xe0) + 8); *(int8 *)(param_1 + 0xe0) = **(int8 **)(param_1 + 0xe0); local_c = 0; } return local_c; }
3,806
is_not_initialized
eloqsql/build_O0/libmariadb/libmariadb/ma_client_plugin.c
static int is_not_initialized(MYSQL *mysql, const char *name) { if (initialized) return 0; my_set_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, SQLSTATE_UNKNOWN, ER(CR_AUTH_PLUGIN_CANNOT_LOAD), name, "not initialized"); return 1; }
O0
c
is_not_initialized: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) cmpb $0x0, 0x2bf29(%rip) # 0x61cc0 je 0x35da2 movl $0x0, -0x4(%rbp) jmp 0x35ddc movq -0x10(%rbp), %rdi leaq 0x2a163(%rip), %rax # 0x5ff10 movq (%rax), %rdx leaq 0x2a169(%rip), %rax # 0x5ff20 movq 0x1d8(%rax), %rcx movq -0x18(%rbp), %r8 movl $0x80b, %esi # imm = 0x80B leaq 0x16291(%rip), %r9 # 0x4c05f movb $0x0, %al callq 0x160f0 movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
is_not_initialized: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi cmp cs:initialized, 0 jz short loc_35DA2 mov [rbp+var_4], 0 jmp short loc_35DDC loc_35DA2: mov rdi, [rbp+var_10] lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] lea rax, client_errors mov rcx, [rax+1D8h] mov r8, [rbp+var_18] mov esi, 80Bh lea r9, aNotInitialized; "not initialized" mov al, 0 call my_set_error mov [rbp+var_4], 1 loc_35DDC: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long is_not_initialized(long long a1, long long a2) { if ( initialized ) { return 0; } else { my_set_error(a1, 0x80Bu, (long long)SQLSTATE_UNKNOWN, (long long)client_errors[59], a2, "not initialized"); return 1; } }
is_not_initialized: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI CMP byte ptr [0x00161cc0],0x0 JZ 0x00135da2 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00135ddc LAB_00135da2: MOV RDI,qword ptr [RBP + -0x10] LEA RAX,[0x15ff10] MOV RDX,qword ptr [RAX] LEA RAX,[0x15ff20] MOV RCX,qword ptr [RAX + 0x1d8] MOV R8,qword ptr [RBP + -0x18] MOV ESI,0x80b LEA R9,[0x14c05f] MOV AL,0x0 CALL 0x001160f0 MOV dword ptr [RBP + -0x4],0x1 LAB_00135ddc: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
bool is_not_initialized(int8 param_1,int8 param_2) { bool bVar1; bVar1 = initialized == '\0'; if (bVar1) { my_set_error(param_1,0x80b,SQLSTATE_UNKNOWN,PTR_s_Plugin__s_could_not_be_loaded____001600f8, param_2,"not initialized"); } return bVar1; }
3,807
JS_InstantiateFunctionListItem2
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_InstantiateFunctionListItem2(JSContext *ctx, JSObject *p, JSAtom atom, void *opaque) { const JSCFunctionListEntry *e = opaque; JSValue val; switch(e->def_type) { case JS_DEF_CFUNC: val = JS_NewCFunction2(ctx, e->u.func.cfunc.generic, e->name, e->u.func.length, e->u.func.cproto, e->magic); break; case JS_DEF_PROP_STRING: val = JS_NewAtomString(ctx, e->u.str); break; case JS_DEF_OBJECT: val = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, val, e->u.prop_list.tab, e->u.prop_list.len); break; default: abort(); } return val; }
O0
c
JS_InstantiateFunctionListItem2: subq $0x78, %rsp movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movl %edx, 0x54(%rsp) movq %rcx, 0x48(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax movzbl 0x9(%rax), %eax movl %eax, 0xc(%rsp) testl %eax, %eax je 0x60491 jmp 0x60474 movl 0xc(%rsp), %eax subl $0x3, %eax je 0x604ec jmp 0x6047f movl 0xc(%rsp), %eax subl $0x8, %eax je 0x6051f jmp 0x6056f movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rax movq 0x18(%rax), %rsi movq 0x40(%rsp), %rax movq (%rax), %rdx movq 0x40(%rsp), %rax movzbl 0x10(%rax), %ecx movq 0x40(%rsp), %rax movzbl 0x11(%rax), %r8d movq 0x40(%rsp), %rax movswl 0xa(%rax), %r9d callq 0x292f0 movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x70(%rsp) jmp 0x60574 movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rax movq 0x10(%rax), %rsi callq 0x28520 movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x70(%rsp) jmp 0x60574 movq 0x60(%rsp), %rdi callq 0x292b0 movq %rax, 0x10(%rsp) movq %rdx, 0x18(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rax movq 0x10(%rax), %rcx movq 0x40(%rsp), %rax movl 0x18(%rax), %r8d movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx callq 0x4b840 jmp 0x60574 callq 0xe090 movq 0x68(%rsp), %rax movq 0x70(%rsp), %rdx addq $0x78, %rsp retq nopw %cs:(%rax,%rax)
JS_InstantiateFunctionListItem2: sub rsp, 78h mov [rsp+78h+var_18], rdi mov [rsp+78h+var_20], rsi mov [rsp+78h+var_24], edx mov [rsp+78h+var_30], rcx mov rax, [rsp+78h+var_30] mov [rsp+78h+var_38], rax mov rax, [rsp+78h+var_38] movzx eax, byte ptr [rax+9] mov [rsp+78h+var_6C], eax test eax, eax jz short loc_60491 jmp short $+2 loc_60474: mov eax, [rsp+78h+var_6C] sub eax, 3 jz short loc_604EC jmp short $+2 loc_6047F: mov eax, [rsp+78h+var_6C] sub eax, 8 jz loc_6051F jmp loc_6056F loc_60491: mov rdi, [rsp+78h+var_18] mov rax, [rsp+78h+var_38] mov rsi, [rax+18h] mov rax, [rsp+78h+var_38] mov rdx, [rax] mov rax, [rsp+78h+var_38] movzx ecx, byte ptr [rax+10h] mov rax, [rsp+78h+var_38] movzx r8d, byte ptr [rax+11h] mov rax, [rsp+78h+var_38] movsx r9d, word ptr [rax+0Ah] call JS_NewCFunction2 mov [rsp+78h+var_48], rax mov [rsp+78h+var_40], rdx mov rax, [rsp+78h+var_48] mov [rsp+78h+var_10], rax mov rax, [rsp+78h+var_40] mov [rsp+78h+var_8], rax jmp loc_60574 loc_604EC: mov rdi, [rsp+78h+var_18] mov rax, [rsp+78h+var_38] mov rsi, [rax+10h] call JS_NewAtomString mov [rsp+78h+var_58], rax mov [rsp+78h+var_50], rdx mov rax, [rsp+78h+var_58] mov [rsp+78h+var_10], rax mov rax, [rsp+78h+var_50] mov [rsp+78h+var_8], rax jmp short loc_60574 loc_6051F: mov rdi, [rsp+78h+var_18] call JS_NewObject mov [rsp+78h+var_68], rax mov [rsp+78h+var_60], rdx mov rax, [rsp+78h+var_68] mov [rsp+78h+var_10], rax mov rax, [rsp+78h+var_60] mov [rsp+78h+var_8], rax mov rdi, [rsp+78h+var_18] mov rax, [rsp+78h+var_38] mov rcx, [rax+10h] mov rax, [rsp+78h+var_38] mov r8d, [rax+18h] mov rsi, [rsp+78h+var_10] mov rdx, [rsp+78h+var_8] call JS_SetPropertyFunctionList jmp short loc_60574 loc_6056F: call _abort loc_60574: mov rax, [rsp+78h+var_10] mov rdx, [rsp+78h+var_8] add rsp, 78h retn
long long JS_InstantiateFunctionListItem2(const char *a1, long long a2, long long a3, long long a4) { long long v4; // rdx int v6; // [rsp+Ch] [rbp-6Ch] long long v8; // [rsp+68h] [rbp-10h] v6 = *(unsigned __int8 *)(a4 + 9); if ( !*(_BYTE *)(a4 + 9) ) return JS_NewCFunction2( (long long)a1, *(_QWORD *)(a4 + 24), *(_QWORD *)a4, *(unsigned __int8 *)(a4 + 16), *(unsigned __int8 *)(a4 + 17), *(__int16 *)(a4 + 10)); if ( v6 == 3 ) return JS_NewAtomString((long long)a1, *(unsigned __int8 **)(a4 + 16)); if ( v6 != 8 ) abort(a1); v8 = JS_NewObject((long long)a1); JS_SetPropertyFunctionList((long long)a1, v8, v4, *(_QWORD *)(a4 + 16), *(_DWORD *)(a4 + 24)); return v8; }
JS_InstantiateFunctionListItem2: SUB RSP,0x78 MOV qword ptr [RSP + 0x60],RDI MOV qword ptr [RSP + 0x58],RSI MOV dword ptr [RSP + 0x54],EDX MOV qword ptr [RSP + 0x48],RCX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x40] MOVZX EAX,byte ptr [RAX + 0x9] MOV dword ptr [RSP + 0xc],EAX TEST EAX,EAX JZ 0x00160491 JMP 0x00160474 LAB_00160474: MOV EAX,dword ptr [RSP + 0xc] SUB EAX,0x3 JZ 0x001604ec JMP 0x0016047f LAB_0016047f: MOV EAX,dword ptr [RSP + 0xc] SUB EAX,0x8 JZ 0x0016051f JMP 0x0016056f LAB_00160491: MOV RDI,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x40] MOVZX ECX,byte ptr [RAX + 0x10] MOV RAX,qword ptr [RSP + 0x40] MOVZX R8D,byte ptr [RAX + 0x11] MOV RAX,qword ptr [RSP + 0x40] MOVSX R9D,word ptr [RAX + 0xa] CALL 0x001292f0 MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x70],RAX JMP 0x00160574 LAB_001604ec: MOV RDI,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RAX + 0x10] CALL 0x00128520 MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x70],RAX JMP 0x00160574 LAB_0016051f: MOV RDI,qword ptr [RSP + 0x60] CALL 0x001292b0 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x18],RDX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x70],RAX MOV RDI,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RSP + 0x40] MOV R8D,dword ptr [RAX + 0x18] MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] CALL 0x0014b840 JMP 0x00160574 LAB_0016056f: CALL 0x0010e090 LAB_00160574: MOV RAX,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] ADD RSP,0x78 RET
int1 [16] JS_InstantiateFunctionListItem2 (int8 param_1,int8 param_2,int8 param_3,int8 *param_4) { char cVar1; int1 auVar2 [16]; cVar1 = *(char *)((long)param_4 + 9); if (cVar1 == '\0') { auVar2 = JS_NewCFunction2(param_1,param_4[3],*param_4,*(int1 *)(param_4 + 2), *(int1 *)((long)param_4 + 0x11), (int)*(short *)((long)param_4 + 10)); } else if (cVar1 == '\x03') { auVar2 = JS_NewAtomString(param_1,param_4[2]); } else { if (cVar1 != '\b') { /* WARNING: Subroutine does not return */ abort(); } auVar2 = JS_NewObject(param_1); JS_SetPropertyFunctionList (param_1,auVar2._0_8_,auVar2._8_8_,param_4[2],*(int4 *)(param_4 + 3)); } return auVar2; }
3,808
JS_InstantiateFunctionListItem2
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_InstantiateFunctionListItem2(JSContext *ctx, JSObject *p, JSAtom atom, void *opaque) { const JSCFunctionListEntry *e = opaque; JSValue val; switch(e->def_type) { case JS_DEF_CFUNC: val = JS_NewCFunction2(ctx, e->u.func.cfunc.generic, e->name, e->u.func.length, e->u.func.cproto, e->magic); break; case JS_DEF_PROP_STRING: val = JS_NewAtomString(ctx, e->u.str); break; case JS_DEF_OBJECT: val = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, val, e->u.prop_list.tab, e->u.prop_list.len); break; default: abort(); } return val; }
O3
c
JS_InstantiateFunctionListItem2: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r14 movq %rdi, %rbx movzbl 0x9(%rcx), %eax cmpl $0x8, %eax je 0x3e8f4 cmpl $0x3, %eax je 0x3e8dd testl %eax, %eax jne 0x3e938 movq (%r14), %rdx movq 0x18(%r14), %rsi movzbl 0x10(%r14), %ecx movzbl 0x11(%r14), %r8d movswl 0xa(%r14), %r9d movups 0x48(%rbx), %xmm0 movups %xmm0, (%rsp) movq %rbx, %rdi callq 0x20afb jmp 0x3e92c movq 0x10(%r14), %rsi movq %rbx, %rdi addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x206b3 movq 0x40(%rbx), %rax movq 0x10(%rax), %rsi movq 0x18(%rax), %rdx movq %rbx, %rdi movl $0x1, %ecx callq 0x20a15 movq %rax, %r15 movq %rdx, %r12 movq 0x10(%r14), %rcx movl 0x18(%r14), %r8d movq %rbx, %rdi movq %rax, %rsi callq 0x3302c movq %r15, %rax movq %r12, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq callq 0xe090
JS_InstantiateFunctionListItem2: push r15 push r14 push r12 push rbx sub rsp, 18h mov r14, rcx mov rbx, rdi movzx eax, byte ptr [rcx+9] cmp eax, 8 jz short loc_3E8F4 cmp eax, 3 jz short loc_3E8DD test eax, eax jnz loc_3E938 mov rdx, [r14] mov rsi, [r14+18h] movzx ecx, byte ptr [r14+10h] movzx r8d, byte ptr [r14+11h] movsx r9d, word ptr [r14+0Ah] movups xmm0, xmmword ptr [rbx+48h] movups [rsp+38h+var_38], xmm0 mov rdi, rbx call JS_NewCFunction3 jmp short loc_3E92C loc_3E8DD: mov rsi, [r14+10h] mov rdi, rbx add rsp, 18h pop rbx pop r12 pop r14 pop r15 jmp JS_NewAtomString loc_3E8F4: mov rax, [rbx+40h] mov rsi, [rax+10h] mov rdx, [rax+18h] mov rdi, rbx mov ecx, 1 call JS_NewObjectProtoClass mov r15, rax mov r12, rdx mov rcx, [r14+10h] mov r8d, [r14+18h] mov rdi, rbx mov rsi, rax call JS_SetPropertyFunctionList mov rax, r15 mov rdx, r12 loc_3E92C: add rsp, 18h pop rbx pop r12 pop r14 pop r15 retn loc_3E938: call _abort
long long JS_InstantiateFunctionListItem2( long long a1, double a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12) { int v13; // eax long long v15; // r15 long long v16; // rdx double v17; // xmm4_8 double v18; // xmm5_8 v13 = *(unsigned __int8 *)(a12 + 9); if ( v13 == 8 ) { v15 = JS_NewObjectProtoClass( a1, *(_QWORD *)(*(_QWORD *)(a1 + 64) + 16LL), *(_QWORD *)(*(_QWORD *)(a1 + 64) + 24LL), 1u); JS_SetPropertyFunctionList( a1, v15, v16, *(const char ***)(a12 + 16), *(_DWORD *)(a12 + 24), a2, a3, a4, a5, v17, v18, a8, a9); return v15; } else if ( v13 == 3 ) { return JS_NewAtomString(a1, *(unsigned __int8 **)(a12 + 16)); } else { if ( *(_BYTE *)(a12 + 9) ) abort((const char *)a1); return JS_NewCFunction3( (_DWORD *)a1, *(_QWORD *)(a12 + 24), *(unsigned __int8 **)a12, *(unsigned __int8 *)(a12 + 16), *(unsigned __int8 *)(a12 + 17), *(_WORD *)(a12 + 10), *(_QWORD *)(a1 + 72), *(_QWORD *)(a1 + 80)); } }
JS_InstantiateFunctionListItem2: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RCX MOV RBX,RDI MOVZX EAX,byte ptr [RCX + 0x9] CMP EAX,0x8 JZ 0x0013e8f4 CMP EAX,0x3 JZ 0x0013e8dd TEST EAX,EAX JNZ 0x0013e938 MOV RDX,qword ptr [R14] MOV RSI,qword ptr [R14 + 0x18] MOVZX ECX,byte ptr [R14 + 0x10] MOVZX R8D,byte ptr [R14 + 0x11] MOVSX R9D,word ptr [R14 + 0xa] MOVUPS XMM0,xmmword ptr [RBX + 0x48] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,RBX CALL 0x00120afb JMP 0x0013e92c LAB_0013e8dd: MOV RSI,qword ptr [R14 + 0x10] MOV RDI,RBX ADD RSP,0x18 POP RBX POP R12 POP R14 POP R15 JMP 0x001206b3 LAB_0013e8f4: MOV RAX,qword ptr [RBX + 0x40] MOV RSI,qword ptr [RAX + 0x10] MOV RDX,qword ptr [RAX + 0x18] MOV RDI,RBX MOV ECX,0x1 CALL 0x00120a15 MOV R15,RAX MOV R12,RDX MOV RCX,qword ptr [R14 + 0x10] MOV R8D,dword ptr [R14 + 0x18] MOV RDI,RBX MOV RSI,RAX CALL 0x0013302c MOV RAX,R15 MOV RDX,R12 LAB_0013e92c: ADD RSP,0x18 POP RBX POP R12 POP R14 POP R15 RET LAB_0013e938: CALL 0x0010e090
int8 JS_InstantiateFunctionListItem2 (long param_1,int8 param_2,int8 param_3,int8 *param_4) { char cVar1; int8 uVar2; int1 auVar3 [16]; cVar1 = *(char *)((long)param_4 + 9); if (cVar1 == '\b') { auVar3 = JS_NewObjectProtoClass (param_1,*(int8 *)(*(long *)(param_1 + 0x40) + 0x10), *(int8 *)(*(long *)(param_1 + 0x40) + 0x18),1); uVar2 = auVar3._0_8_; JS_SetPropertyFunctionList(param_1,uVar2,auVar3._8_8_,param_4[2],*(int4 *)(param_4 + 3)); } else { if (cVar1 == '\x03') { uVar2 = JS_NewAtomString(param_1,param_4[2]); return uVar2; } if (cVar1 != '\0') { /* WARNING: Subroutine does not return */ abort(); } uVar2 = JS_NewCFunction3(param_1,param_4[3],*param_4,*(int1 *)(param_4 + 2), *(int1 *)((long)param_4 + 0x11), (int)*(short *)((long)param_4 + 10),*(int4 *)(param_1 + 0x48), *(int4 *)(param_1 + 0x50)); } return uVar2; }
3,809
pagecache_unlock
eloqsql/storage/maria/ma_pagecache.c
void pagecache_unlock(PAGECACHE *pagecache, PAGECACHE_FILE *file, pgcache_page_no_t pageno, enum pagecache_page_lock lock, enum pagecache_page_pin pin, LSN first_REDO_LSN_for_page, LSN lsn, my_bool was_changed) { PAGECACHE_BLOCK_LINK *block; int page_st; DBUG_ENTER("pagecache_unlock"); DBUG_PRINT("enter", ("fd: %u page: %lu %s %s", (uint) file->file, (ulong) pageno, page_cache_page_lock_str[lock], page_cache_page_pin_str[pin])); /* we do not allow any lock/pin increasing here */ DBUG_ASSERT(pin != PAGECACHE_PIN); DBUG_ASSERT(lock != PAGECACHE_LOCK_READ && lock != PAGECACHE_LOCK_WRITE); pagecache_pthread_mutex_lock(&pagecache->cache_lock); /* As soon as we keep lock cache can be used, and we have lock because want to unlock. */ DBUG_ASSERT(pagecache->can_be_used); inc_counter_for_resize_op(pagecache); /* See NOTE for pagecache_unlock about registering requests */ block= find_block(pagecache, file, pageno, 0, 0, 0, pin == PAGECACHE_PIN_LEFT_UNPINNED, FALSE, &page_st); PCBLOCK_INFO(block); DBUG_ASSERT(block != 0 && page_st == PAGE_READ); if (first_REDO_LSN_for_page) { DBUG_ASSERT(lock == PAGECACHE_LOCK_WRITE_UNLOCK); DBUG_ASSERT(pin == PAGECACHE_UNPIN); pagecache_set_block_rec_lsn(block, first_REDO_LSN_for_page); } if (lsn != LSN_IMPOSSIBLE) check_and_set_lsn(pagecache, lsn, block); /* if we lock for write we must link the block to changed blocks */ DBUG_ASSERT((block->status & PCBLOCK_DIRECT_W) == 0 || (lock == PAGECACHE_LOCK_WRITE_UNLOCK || lock == PAGECACHE_LOCK_WRITE_TO_READ || lock == PAGECACHE_LOCK_LEFT_WRITELOCKED)); /* if was_changed then status should be PCBLOCK_DIRECT_W or marked as dirty */ DBUG_ASSERT(!was_changed || (block->status & PCBLOCK_DIRECT_W) || (block->status & PCBLOCK_CHANGED)); if ((block->status & PCBLOCK_DIRECT_W) && (lock == PAGECACHE_LOCK_WRITE_UNLOCK || lock == PAGECACHE_LOCK_WRITE_TO_READ)) { if (!(block->status & PCBLOCK_CHANGED) && was_changed) link_to_changed_list(pagecache, block); block->status&= ~PCBLOCK_DIRECT_W; DBUG_PRINT("info", ("Drop PCBLOCK_DIRECT_W for block: %p", block)); } if (make_lock_and_pin(pagecache, block, lock, pin, FALSE)) { DBUG_ASSERT(0); /* should not happend */ } remove_reader(block); /* Link the block into the LRU chain if it's the last submitted request for the block and block will not be pinned. See NOTE for pagecache_unlock about registering requests. */ if (pin != PAGECACHE_PIN_LEFT_PINNED) unreg_request(pagecache, block, 1); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); DBUG_VOID_RETURN; }
O3
c
pagecache_unlock: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %r9, %r12 movl %r8d, -0x30(%rbp) movl %ecx, -0x34(%rbp) movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %r14 movb 0x18(%rbp), %al movb %al, -0x29(%rbp) movq 0x10(%rbp), %rbx addq $0xc8, %rdi cmpq $0x0, 0x108(%r14) movq %rdi, -0x40(%rbp) jne 0x4ef09 callq 0x2a220 incq 0x68(%r14) xorl %eax, %eax cmpl $0x1, -0x30(%rbp) sete %al subq $0x8, %rsp leaq -0x44(%rbp), %r10 movq %r14, %rdi movq %r15, %rsi movq %r13, %rdx xorl %ecx, %ecx xorl %r8d, %r8d xorl %r9d, %r9d pushq %r10 pushq $0x0 pushq %rax callq 0x4ef58 addq $0x20, %rsp movq %rax, %r13 testq %r12, %r12 je 0x4edbf movabsq $0xffffffffffffff, %rax # imm = 0xFFFFFFFFFFFFFF cmpq %rax, 0x88(%r13) jne 0x4edbf movq %r12, 0x88(%r13) testq %rbx, %rbx je 0x4edd2 movq %r14, %rdi movq %rbx, %rsi movq %r13, %rdx callq 0x4f5a2 movl -0x34(%rbp), %edx movl %edx, %eax andl $-0x2, %eax cmpl $0x6, %eax jne 0x4ee6d movzwl 0x74(%r13), %eax movzwl %ax, %ecx movl %ecx, %esi andl $0x40, %esi je 0x4ee6d cmpb $0x0, -0x29(%rbp) je 0x4ee63 andl $0x20, %ecx jne 0x4ee63 movq %r13, %rax addq $0x10, %rax movq 0x10(%r13), %rsi movq 0x18(%r13), %rcx testq %rsi, %rsi je 0x4ee1a movq %rcx, 0x18(%rsi) movq (%rax), %rsi jmp 0x4ee1c xorl %esi, %esi movq %rsi, (%rcx) movq 0x128(%r14), %rcx movq 0x20(%r13), %rdi movl 0x28(%r14), %esi decl %esi andl 0x28(%rdi), %esi leaq (%rcx,%rsi,8), %rcx movq %rcx, 0x18(%r13) movq (%rcx), %rsi movq %rsi, 0x10(%r13) testq %rsi, %rsi je 0x4ee4b movq %rax, 0x18(%rsi) movq %r13, (%rcx) orb $0x20, 0x74(%r13) incq 0x58(%r14) incq 0x168(%r14) movzwl 0x74(%r13), %eax andl $0xffbf, %eax # imm = 0xFFBF movw %ax, 0x74(%r13) movq %r14, %rdi movq %r13, %rsi movl -0x30(%rbp), %ecx callq 0x4f65f movq 0x20(%r13), %rax decl 0x68(%rax) jne 0x4eea2 movq 0x28(%r13), %rbx testq %rbx, %rbx je 0x4eea2 movq 0x30(%rbx), %rdi testq %rdi, %rdi jne 0x4ef31 movq %rbx, %rdi callq 0x2a600 cmpl $0x0, -0x30(%rbp) je 0x4eeb8 movq %r14, %rdi movq %r13, %rsi movl $0x1, %edx callq 0x4f7cf decq 0x68(%r14) jne 0x4eee6 movq 0x110(%r14), %rax testq %rax, %rax je 0x4eee6 movq 0x88(%rax), %rbx movq 0x38(%rbx), %rdi addq $0x8, %rbx testq %rdi, %rdi jne 0x4ef46 movq %rbx, %rdi callq 0x2a600 movq 0x108(%r14), %rdi testq %rdi, %rdi jne 0x4ef1f movq -0x40(%rbp), %rdi addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2a1e0 leaq 0x92110(%rip), %rsi # 0xe1020 movl $0xc97, %edx # imm = 0xC97 callq 0x2fc0f jmp 0x4ed69 leaq 0x33f2a2(%rip), %rax # 0x38e1c8 movq (%rax), %rax callq *0x160(%rax) jmp 0x4eef2 leaq 0x33f290(%rip), %rax # 0x38e1c8 movq (%rax), %rax callq *0x170(%rax) jmp 0x4ee9a leaq 0x33f27b(%rip), %rax # 0x38e1c8 movq (%rax), %rax callq *0x170(%rax) jmp 0x4eede
pagecache_unlock: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r12, r9 mov [rbp+var_30], r8d mov [rbp+var_34], ecx mov r13, rdx mov r15, rsi mov r14, rdi mov al, [rbp+arg_8] mov [rbp+var_29], al mov rbx, [rbp+arg_0] add rdi, 0C8h cmp qword ptr [r14+108h], 0 mov [rbp+var_40], rdi jnz loc_4EF09 call _pthread_mutex_lock loc_4ED69: inc qword ptr [r14+68h] xor eax, eax cmp [rbp+var_30], 1 setz al sub rsp, 8 lea r10, [rbp+var_44] mov rdi, r14 mov rsi, r15 mov rdx, r13 xor ecx, ecx xor r8d, r8d xor r9d, r9d push r10 push 0 push rax call find_block add rsp, 20h mov r13, rax test r12, r12 jz short loc_4EDBF mov rax, 0FFFFFFFFFFFFFFh cmp [r13+88h], rax jnz short loc_4EDBF mov [r13+88h], r12 loc_4EDBF: test rbx, rbx jz short loc_4EDD2 mov rdi, r14 mov rsi, rbx mov rdx, r13 call check_and_set_lsn loc_4EDD2: mov edx, [rbp+var_34] mov eax, edx and eax, 0FFFFFFFEh cmp eax, 6 jnz loc_4EE6D movzx eax, word ptr [r13+74h] movzx ecx, ax mov esi, ecx and esi, 40h jz short loc_4EE6D cmp [rbp+var_29], 0 jz short loc_4EE63 and ecx, 20h jnz short loc_4EE63 mov rax, r13 add rax, 10h mov rsi, [r13+10h] mov rcx, [r13+18h] test rsi, rsi jz short loc_4EE1A mov [rsi+18h], rcx mov rsi, [rax] jmp short loc_4EE1C loc_4EE1A: xor esi, esi loc_4EE1C: mov [rcx], rsi mov rcx, [r14+128h] mov rdi, [r13+20h] mov esi, [r14+28h] dec esi and esi, [rdi+28h] lea rcx, [rcx+rsi*8] mov [r13+18h], rcx mov rsi, [rcx] mov [r13+10h], rsi test rsi, rsi jz short loc_4EE4B mov [rsi+18h], rax loc_4EE4B: mov [rcx], r13 or byte ptr [r13+74h], 20h inc qword ptr [r14+58h] inc qword ptr [r14+168h] movzx eax, word ptr [r13+74h] loc_4EE63: and eax, 0FFBFh mov [r13+74h], ax loc_4EE6D: mov rdi, r14 mov rsi, r13 mov ecx, [rbp+var_30] call make_lock_and_pin mov rax, [r13+20h] dec dword ptr [rax+68h] jnz short loc_4EEA2 mov rbx, [r13+28h] test rbx, rbx jz short loc_4EEA2 mov rdi, [rbx+30h] test rdi, rdi jnz loc_4EF31 loc_4EE9A: mov rdi, rbx call _pthread_cond_signal loc_4EEA2: cmp [rbp+var_30], 0 jz short loc_4EEB8 mov rdi, r14 mov rsi, r13 mov edx, 1 call unreg_request loc_4EEB8: dec qword ptr [r14+68h] jnz short loc_4EEE6 mov rax, [r14+110h] test rax, rax jz short loc_4EEE6 mov rbx, [rax+88h] mov rdi, [rbx+38h] add rbx, 8 test rdi, rdi jnz short loc_4EF46 loc_4EEDE: mov rdi, rbx call _pthread_cond_signal loc_4EEE6: mov rdi, [r14+108h] test rdi, rdi jnz short loc_4EF1F loc_4EEF2: mov rdi, [rbp+var_40] add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_4EF09: lea rsi, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 0C97h call psi_mutex_lock jmp loc_4ED69 loc_4EF1F: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4EEF2 loc_4EF31: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp loc_4EE9A loc_4EF46: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_4EEDE
long long pagecache_unlock( long long a1, int a2, int a3, unsigned int a4, unsigned int a5, long long a6, long long a7, char a8) { long long v11; // rdi bool v12; // zf long long block; // r13 long long v14; // rdx __int16 v15; // ax long long *v16; // rax long long v17; // rsi _QWORD *v18; // rcx long long v19; // rsi long long *v20; // rcx long long v21; // rsi long long v22; // rax long long v23; // rbx long long v24; // rax long long v25; // rbx long long v26; // rdi long long v27; // rbx char v29[4]; // [rsp+Ch] [rbp-44h] BYREF long long v30; // [rsp+10h] [rbp-40h] unsigned int v31; // [rsp+1Ch] [rbp-34h] unsigned int v32; // [rsp+20h] [rbp-30h] char v33; // [rsp+27h] [rbp-29h] v32 = a5; v31 = a4; v33 = a8; v11 = a1 + 200; v12 = *(_QWORD *)(a1 + 264) == 0LL; v30 = v11; if ( v12 ) pthread_mutex_lock(v11); else psi_mutex_lock(v11, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0xC97u); ++*(_QWORD *)(a1 + 104); block = find_block(a1, a2, a3, 0, 0, 0, v32 == 1, 0, (long long)v29); if ( a6 && *(_QWORD *)(block + 136) == 0xFFFFFFFFFFFFFFLL ) *(_QWORD *)(block + 136) = a6; if ( a7 ) check_and_set_lsn(a1, a7, block); v14 = v31; if ( (v31 & 0xFFFFFFFE) == 6 ) { v15 = *(_WORD *)(block + 116); if ( (v15 & 0x40) != 0 ) { if ( v33 && (*(_WORD *)(block + 116) & 0x20) == 0 ) { v16 = (long long *)(block + 16); v17 = *(_QWORD *)(block + 16); v18 = *(_QWORD **)(block + 24); if ( v17 ) { *(_QWORD *)(v17 + 24) = v18; v19 = *v16; } else { v19 = 0LL; } *v18 = v19; v20 = (long long *)(*(_QWORD *)(a1 + 296) + 8LL * (*(_DWORD *)(*(_QWORD *)(block + 32) + 40LL) & (unsigned int)(*(_DWORD *)(a1 + 40) - 1))); *(_QWORD *)(block + 24) = v20; v21 = *v20; *(_QWORD *)(block + 16) = *v20; if ( v21 ) *(_QWORD *)(v21 + 24) = v16; *v20 = block; *(_BYTE *)(block + 116) |= 0x20u; ++*(_QWORD *)(a1 + 88); ++*(_QWORD *)(a1 + 360); v15 = *(_WORD *)(block + 116); } *(_WORD *)(block + 116) = v15 & 0xFFBF; } } make_lock_and_pin(a1, block, v14, v32); v22 = *(_QWORD *)(block + 32); v12 = (*(_DWORD *)(v22 + 104))-- == 1; if ( v12 ) { v23 = *(_QWORD *)(block + 40); if ( v23 ) { if ( *(_QWORD *)(v23 + 48) ) PSI_server[46](); pthread_cond_signal(v23); } } if ( v32 ) unreg_request(a1, block, 1LL); v12 = (*(_QWORD *)(a1 + 104))-- == 1LL; if ( v12 ) { v24 = *(_QWORD *)(a1 + 272); if ( v24 ) { v25 = *(_QWORD *)(v24 + 136); v26 = *(_QWORD *)(v25 + 56); v27 = v25 + 8; if ( v26 ) PSI_server[46](); pthread_cond_signal(v27); } } if ( *(_QWORD *)(a1 + 264) ) PSI_server[44](); return pthread_mutex_unlock(v30); }
pagecache_unlock: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R12,R9 MOV dword ptr [RBP + -0x30],R8D MOV dword ptr [RBP + -0x34],ECX MOV R13,RDX MOV R15,RSI MOV R14,RDI MOV AL,byte ptr [RBP + 0x18] MOV byte ptr [RBP + -0x29],AL MOV RBX,qword ptr [RBP + 0x10] ADD RDI,0xc8 CMP qword ptr [R14 + 0x108],0x0 MOV qword ptr [RBP + -0x40],RDI JNZ 0x0014ef09 CALL 0x0012a220 LAB_0014ed69: INC qword ptr [R14 + 0x68] XOR EAX,EAX CMP dword ptr [RBP + -0x30],0x1 SETZ AL SUB RSP,0x8 LEA R10,[RBP + -0x44] MOV RDI,R14 MOV RSI,R15 MOV RDX,R13 XOR ECX,ECX XOR R8D,R8D XOR R9D,R9D PUSH R10 PUSH 0x0 PUSH RAX CALL 0x0014ef58 ADD RSP,0x20 MOV R13,RAX TEST R12,R12 JZ 0x0014edbf MOV RAX,0xffffffffffffff CMP qword ptr [R13 + 0x88],RAX JNZ 0x0014edbf MOV qword ptr [R13 + 0x88],R12 LAB_0014edbf: TEST RBX,RBX JZ 0x0014edd2 MOV RDI,R14 MOV RSI,RBX MOV RDX,R13 CALL 0x0014f5a2 LAB_0014edd2: MOV EDX,dword ptr [RBP + -0x34] MOV EAX,EDX AND EAX,0xfffffffe CMP EAX,0x6 JNZ 0x0014ee6d MOVZX EAX,word ptr [R13 + 0x74] MOVZX ECX,AX MOV ESI,ECX AND ESI,0x40 JZ 0x0014ee6d CMP byte ptr [RBP + -0x29],0x0 JZ 0x0014ee63 AND ECX,0x20 JNZ 0x0014ee63 MOV RAX,R13 ADD RAX,0x10 MOV RSI,qword ptr [R13 + 0x10] MOV RCX,qword ptr [R13 + 0x18] TEST RSI,RSI JZ 0x0014ee1a MOV qword ptr [RSI + 0x18],RCX MOV RSI,qword ptr [RAX] JMP 0x0014ee1c LAB_0014ee1a: XOR ESI,ESI LAB_0014ee1c: MOV qword ptr [RCX],RSI MOV RCX,qword ptr [R14 + 0x128] MOV RDI,qword ptr [R13 + 0x20] MOV ESI,dword ptr [R14 + 0x28] DEC ESI AND ESI,dword ptr [RDI + 0x28] LEA RCX,[RCX + RSI*0x8] MOV qword ptr [R13 + 0x18],RCX MOV RSI,qword ptr [RCX] MOV qword ptr [R13 + 0x10],RSI TEST RSI,RSI JZ 0x0014ee4b MOV qword ptr [RSI + 0x18],RAX LAB_0014ee4b: MOV qword ptr [RCX],R13 OR byte ptr [R13 + 0x74],0x20 INC qword ptr [R14 + 0x58] INC qword ptr [R14 + 0x168] MOVZX EAX,word ptr [R13 + 0x74] LAB_0014ee63: AND EAX,0xffbf MOV word ptr [R13 + 0x74],AX LAB_0014ee6d: MOV RDI,R14 MOV RSI,R13 MOV ECX,dword ptr [RBP + -0x30] CALL 0x0014f65f MOV RAX,qword ptr [R13 + 0x20] DEC dword ptr [RAX + 0x68] JNZ 0x0014eea2 MOV RBX,qword ptr [R13 + 0x28] TEST RBX,RBX JZ 0x0014eea2 MOV RDI,qword ptr [RBX + 0x30] TEST RDI,RDI JNZ 0x0014ef31 LAB_0014ee9a: MOV RDI,RBX CALL 0x0012a600 LAB_0014eea2: CMP dword ptr [RBP + -0x30],0x0 JZ 0x0014eeb8 MOV RDI,R14 MOV RSI,R13 MOV EDX,0x1 CALL 0x0014f7cf LAB_0014eeb8: DEC qword ptr [R14 + 0x68] JNZ 0x0014eee6 MOV RAX,qword ptr [R14 + 0x110] TEST RAX,RAX JZ 0x0014eee6 MOV RBX,qword ptr [RAX + 0x88] MOV RDI,qword ptr [RBX + 0x38] ADD RBX,0x8 TEST RDI,RDI JNZ 0x0014ef46 LAB_0014eede: MOV RDI,RBX CALL 0x0012a600 LAB_0014eee6: MOV RDI,qword ptr [R14 + 0x108] TEST RDI,RDI JNZ 0x0014ef1f LAB_0014eef2: MOV RDI,qword ptr [RBP + -0x40] ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0012a1e0 LAB_0014ef09: LEA RSI,[0x1e1020] MOV EDX,0xc97 CALL 0x0012fc0f JMP 0x0014ed69 LAB_0014ef1f: LEA RAX,[0x48e1c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014eef2 LAB_0014ef31: LEA RAX,[0x48e1c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x0014ee9a LAB_0014ef46: LEA RAX,[0x48e1c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x0014eede
void pagecache_unlock(long param_1,int8 param_2,int8 param_3,uint param_4,int param_5, long param_6,long param_7,char param_8) { int *piVar1; long *plVar2; int8 *puVar3; long lVar4; pthread_cond_t *__cond; ushort uVar5; long lVar6; int8 uVar7; int1 local_4c [4]; pthread_mutex_t *local_48; uint local_3c; int local_38; char local_31; local_31 = param_8; local_48 = (pthread_mutex_t *)(param_1 + 200); local_3c = param_4; local_38 = param_5; if (*(long *)(param_1 + 0x108) == 0) { pthread_mutex_lock(local_48); } else { psi_mutex_lock(local_48,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0xc97); } *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1; lVar6 = find_block(param_1,param_2,param_3,0,0,0,local_38 == 1,0,local_4c); if ((param_6 != 0) && (*(long *)(lVar6 + 0x88) == 0xffffffffffffff)) { *(long *)(lVar6 + 0x88) = param_6; } if (param_7 != 0) { check_and_set_lsn(param_1,param_7,lVar6); } if (((local_3c & 0xfffffffe) == 6) && (uVar5 = *(ushort *)(lVar6 + 0x74), (uVar5 & 0x40) != 0)) { if ((local_31 != '\0') && ((uVar5 & 0x20) == 0)) { puVar3 = *(int8 **)(lVar6 + 0x18); if (*(long *)(lVar6 + 0x10) == 0) { uVar7 = 0; } else { *(int8 **)(*(long *)(lVar6 + 0x10) + 0x18) = puVar3; uVar7 = *(int8 *)(lVar6 + 0x10); } *puVar3 = uVar7; plVar2 = (long *)(*(long *)(param_1 + 0x128) + (ulong)(*(int *)(param_1 + 0x28) - 1U & *(uint *)(*(long *)(lVar6 + 0x20) + 0x28)) * 8); *(long **)(lVar6 + 0x18) = plVar2; lVar4 = *plVar2; *(long *)(lVar6 + 0x10) = lVar4; if (lVar4 != 0) { *(int8 **)(lVar4 + 0x18) = (int8 *)(lVar6 + 0x10); } *plVar2 = lVar6; *(byte *)(lVar6 + 0x74) = *(byte *)(lVar6 + 0x74) | 0x20; *(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + 1; *(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + 1; uVar5 = *(ushort *)(lVar6 + 0x74); } *(ushort *)(lVar6 + 0x74) = uVar5 & 0xffbf; } make_lock_and_pin(param_1,lVar6,local_3c,local_38); piVar1 = (int *)(*(long *)(lVar6 + 0x20) + 0x68); *piVar1 = *piVar1 + -1; if ((*piVar1 == 0) && (__cond = *(pthread_cond_t **)(lVar6 + 0x28), __cond != (pthread_cond_t *)0x0)) { if (__cond[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(__cond); } if (local_38 != 0) { unreg_request(param_1,lVar6,1); } plVar2 = (long *)(param_1 + 0x68); *plVar2 = *plVar2 + -1; if ((*plVar2 == 0) && (*(long *)(param_1 + 0x110) != 0)) { lVar6 = *(long *)(*(long *)(param_1 + 0x110) + 0x88); if (*(long *)(lVar6 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar6 + 8)); } if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(local_48); return; }
3,810
my_scan_8bit
eloqsql/strings/ctype-simple.c
size_t my_scan_8bit(CHARSET_INFO *cs, const char *str, const char *end, int sq) { const char *str0= str; switch (sq) { case MY_SEQ_INTTAIL: if (*str == '.') { for(str++ ; str != end && *str == '0' ; str++); return (size_t) (str - str0); } return 0; case MY_SEQ_SPACES: for ( ; str < end ; str++) { if (!my_isspace(cs,*str)) break; } return (size_t) (str - str0); case MY_SEQ_NONSPACES: for ( ; str < end ; str++) { if (my_isspace(cs, *str)) break; } return (size_t) (str - str0); default: return 0; } }
O3
c
my_scan_8bit: pushq %rbp movq %rsp, %rbp movq %rdx, %rax cmpl $0x1, %ecx je 0x3cb8e cmpl $0x2, %ecx je 0x3cb62 cmpl $0x3, %ecx jne 0x3cbb3 movq %rsi, %rcx cmpq %rax, %rsi jae 0x3cb86 movq 0x40(%rdi), %rdx movq %rsi, %rcx movzbl (%rcx), %edi testb $0x8, 0x1(%rdx,%rdi) jne 0x3cb86 incq %rcx cmpq %rax, %rcx jne 0x3cb4e jmp 0x3cb83 movq %rsi, %rcx cmpq %rax, %rsi jae 0x3cb86 movq 0x40(%rdi), %rdx movq %rsi, %rcx movzbl (%rcx), %edi testb $0x8, 0x1(%rdx,%rdi) je 0x3cb86 incq %rcx cmpq %rax, %rcx jne 0x3cb71 movq %rax, %rcx subq %rsi, %rcx movq %rcx, %rax jmp 0x3cbb5 cmpb $0x2e, (%rsi) jne 0x3cbb3 leaq 0x1(%rsi), %rcx cmpq %rax, %rcx je 0x3cbae leaq 0x1(%rcx), %rdx cmpb $0x30, (%rcx) movq %rdx, %rcx je 0x3cb97 decq %rdx movq %rdx, %rax subq %rsi, %rax jmp 0x3cbb5 xorl %eax, %eax popq %rbp retq
my_scan_8bit: push rbp mov rbp, rsp mov rax, rdx cmp ecx, 1 jz short loc_3CB8E cmp ecx, 2 jz short loc_3CB62 cmp ecx, 3 jnz short loc_3CBB3 mov rcx, rsi cmp rsi, rax jnb short loc_3CB86 mov rdx, [rdi+40h] mov rcx, rsi loc_3CB4E: movzx edi, byte ptr [rcx] test byte ptr [rdx+rdi+1], 8 jnz short loc_3CB86 inc rcx cmp rcx, rax jnz short loc_3CB4E jmp short loc_3CB83 loc_3CB62: mov rcx, rsi cmp rsi, rax jnb short loc_3CB86 mov rdx, [rdi+40h] mov rcx, rsi loc_3CB71: movzx edi, byte ptr [rcx] test byte ptr [rdx+rdi+1], 8 jz short loc_3CB86 inc rcx cmp rcx, rax jnz short loc_3CB71 loc_3CB83: mov rcx, rax loc_3CB86: sub rcx, rsi mov rax, rcx jmp short loc_3CBB5 loc_3CB8E: cmp byte ptr [rsi], 2Eh ; '.' jnz short loc_3CBB3 lea rcx, [rsi+1] loc_3CB97: cmp rcx, rax jz short loc_3CBAE lea rdx, [rcx+1] cmp byte ptr [rcx], 30h ; '0' mov rcx, rdx jz short loc_3CB97 dec rdx mov rax, rdx loc_3CBAE: sub rax, rsi jmp short loc_3CBB5 loc_3CBB3: xor eax, eax loc_3CBB5: pop rbp retn
long long my_scan_8bit(long long a1, unsigned __int8 *a2, unsigned __int8 *a3, int a4) { unsigned __int8 *v4; // rax unsigned __int8 *v5; // rcx unsigned __int8 *v7; // rcx _BYTE *v8; // rdx v4 = a3; if ( a4 != 1 ) { if ( a4 == 2 ) { v5 = a2; if ( a2 < a3 ) { v5 = a2; while ( (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v5 + 1LL) & 8) != 0 ) { if ( ++v5 == a3 ) { LABEL_13: v5 = a3; return v5 - a2; } } } return v5 - a2; } if ( a4 == 3 ) { v5 = a2; if ( a2 < a3 ) { v5 = a2; while ( (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v5 + 1LL) & 8) == 0 ) { if ( ++v5 == a3 ) goto LABEL_13; } } return v5 - a2; } return 0LL; } if ( *a2 != 46 ) return 0LL; v7 = a2 + 1; while ( v7 != v4 ) { v8 = v7 + 1; if ( *v7++ != 48 ) { v4 = v8 - 1; return v4 - a2; } } return v4 - a2; }
my_scan_8bit: PUSH RBP MOV RBP,RSP MOV RAX,RDX CMP ECX,0x1 JZ 0x0013cb8e CMP ECX,0x2 JZ 0x0013cb62 CMP ECX,0x3 JNZ 0x0013cbb3 MOV RCX,RSI CMP RSI,RAX JNC 0x0013cb86 MOV RDX,qword ptr [RDI + 0x40] MOV RCX,RSI LAB_0013cb4e: MOVZX EDI,byte ptr [RCX] TEST byte ptr [RDX + RDI*0x1 + 0x1],0x8 JNZ 0x0013cb86 INC RCX CMP RCX,RAX JNZ 0x0013cb4e JMP 0x0013cb83 LAB_0013cb62: MOV RCX,RSI CMP RSI,RAX JNC 0x0013cb86 MOV RDX,qword ptr [RDI + 0x40] MOV RCX,RSI LAB_0013cb71: MOVZX EDI,byte ptr [RCX] TEST byte ptr [RDX + RDI*0x1 + 0x1],0x8 JZ 0x0013cb86 INC RCX CMP RCX,RAX JNZ 0x0013cb71 LAB_0013cb83: MOV RCX,RAX LAB_0013cb86: SUB RCX,RSI MOV RAX,RCX JMP 0x0013cbb5 LAB_0013cb8e: CMP byte ptr [RSI],0x2e JNZ 0x0013cbb3 LEA RCX,[RSI + 0x1] LAB_0013cb97: CMP RCX,RAX JZ 0x0013cbae LEA RDX,[RCX + 0x1] CMP byte ptr [RCX],0x30 MOV RCX,RDX JZ 0x0013cb97 DEC RDX MOV RAX,RDX LAB_0013cbae: SUB RAX,RSI JMP 0x0013cbb5 LAB_0013cbb3: XOR EAX,EAX LAB_0013cbb5: POP RBP RET
long my_scan_8bit(long param_1,byte *param_2,byte *param_3,int param_4) { byte bVar1; byte *pbVar2; long lVar3; byte *pbVar4; if (param_4 == 1) { if (*param_2 == 0x2e) { pbVar4 = param_2 + 1; do { pbVar2 = param_3; if (pbVar4 == param_3) break; bVar1 = *pbVar4; pbVar2 = pbVar4; pbVar4 = pbVar4 + 1; } while (bVar1 == 0x30); return (long)pbVar2 - (long)param_2; } LAB_0013cbb3: lVar3 = 0; } else { pbVar4 = param_2; if (param_4 == 2) { if (param_2 < param_3) { pbVar2 = param_2; do { pbVar4 = pbVar2; if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*pbVar2) & 8) == 0) break; pbVar2 = pbVar2 + 1; pbVar4 = param_3; } while (pbVar2 != param_3); } } else { if (param_4 != 3) goto LAB_0013cbb3; if (param_2 < param_3) { pbVar2 = param_2; do { pbVar4 = pbVar2; if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*pbVar2) & 8) != 0) break; pbVar2 = pbVar2 + 1; pbVar4 = param_3; } while (pbVar2 != param_3); } } lVar3 = (long)pbVar4 - (long)param_2; } return lVar3; }
3,811
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const
monkey531[P]llama/common/./json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0xb0cdf movq %rsi, %r15 movq 0x8(%r14), %r12 movq (%r12), %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx je 0xb0cc9 movq %rbx, %rdi movq %r15, %rsi callq 0x19190 testl %eax, %eax je 0xb0cbe addq $0x30, %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx jne 0xb0c9f jmp 0xb0cc1 movq %rbx, %rax movq 0x8(%r14), %rcx movq 0x8(%rcx), %rbx cmpq %rbx, %rax je 0xb0d3d addq $0x20, %rax addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x19370 movq %rax, %rbx movq %r14, %rdi callq 0x2e9dc movq %rsp, %rdx movq %rax, (%rdx) leaq 0xb3e0(%rip), %rsi # 0xbc0e1 leaq 0x20(%rsp), %rdi callq 0x8d27e movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x4b610 xorl %ebp, %ebp leaq 0x39224(%rip), %rsi # 0xe9f50 leaq -0x860e3(%rip), %rdx # 0x2ac50 movq %rbx, %rdi callq 0x19b70 jmp 0xb0db6 movl $0x20, %edi callq 0x19370 movq %rax, %rbx leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq %r15, %rdi callq 0x19310 leaq (%rax,%r15), %rdx movq %rsp, %rdi movq %r15, %rsi callq 0x320e8 leaq 0xb39f(%rip), %rsi # 0xbc111 leaq 0xb39e(%rip), %rcx # 0xbc117 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x8d748 movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0x8d7ee xorl %ebp, %ebp leaq 0x39129(%rip), %rsi # 0xe9ed0 leaq -0x8615e(%rip), %rdx # 0x2ac50 movq %rbx, %rdi callq 0x19b70 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb0dd4 movq 0x30(%rsp), %rsi incq %rsi callq 0x196b0 movq (%rsp), %rdi cmpq %r12, %rdi je 0xb0e1f movq 0x10(%rsp), %rsi jmp 0xb0e17 movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0xb0e29 movq 0x10(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0xb0e29 jmp 0xb0e26 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb0e1f movq 0x30(%rsp), %rsi incq %rsi callq 0x196b0 testb %bpl, %bpl jne 0xb0e29 jmp 0xb0e31 movq %rax, %r14 movq %rbx, %rdi callq 0x19510 movq %r14, %rdi callq 0x19be0 nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: push rbp; char push r15; int push r14; int push r12; int push rbx; char sub rsp, 40h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_B0CDF mov r15, rsi mov r12, [r14+8] mov rbx, [r12] mov rax, [r12+8] cmp rbx, rax jz short loc_B0CC9 loc_B0C9F: mov rdi, rbx mov rsi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_B0CBE add rbx, 30h ; '0' mov rax, [r12+8] cmp rbx, rax jnz short loc_B0C9F jmp short loc_B0CC1 loc_B0CBE: mov rax, rbx loc_B0CC1: mov rcx, [r14+8] mov rbx, [rcx+8] loc_B0CC9: cmp rax, rbx jz short loc_B0D3D add rax, 20h ; ' ' add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_B0CDF: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov rdx, rsp mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_48] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_B0DB6 loc_B0D3D: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r12, [rsp+68h+var_58] mov [r12-10h], r12 mov rdi, r15 call _strlen lea rdx, [rax+r15] mov rdi, rsp mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_48] mov rdx, rsp call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_B0DB6: mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B0DD4 mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B0DD4: mov rdi, [rsp+68h+var_68] cmp rdi, r12 jz short loc_B0E1F mov rsi, [rsp+68h+var_58] jmp short loc_B0E17 mov r14, rax mov rdi, [rsp+68h+var_68]; void * cmp rdi, r12 jz short loc_B0E29 mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_B0E29 jmp short loc_B0E26 mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B0E1F mov rsi, [rsp+68h+var_38] loc_B0E17: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B0E1F: test bpl, bpl jnz short loc_B0E29 jmp short loc_B0E31 loc_B0E26: mov r14, rax loc_B0E29: mov rdi, rbx; void * call ___cxa_free_exception loc_B0E31: mov rdi, r14 call __Unwind_Resume
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( long long a1, _BYTE *a2) { long long *v2; // r12 long long v3; // rbx long long v4; // rax nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx nlohmann::json_abi_v3_11_3::detail::exception *v7; // rbx long long v8; // rax void *v9[2]; // [rsp+0h] [rbp-68h] BYREF long long v10; // [rsp+10h] [rbp-58h] BYREF _QWORD v11[2]; // [rsp+20h] [rbp-48h] BYREF if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v9[0] = (void *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>( (long long)v11, (long long)"cannot use at() with ", v9); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 304, v11); __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); } v2 = *(long long **)(a1 + 8); v3 = *v2; v4 = v2[1]; if ( *v2 != v4 ) { while ( (unsigned int)std::string::compare(v3, a2) ) { v3 += 48LL; v4 = v2[1]; if ( v3 == v4 ) goto LABEL_7; } v4 = v3; LABEL_7: v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL); } if ( v4 == v3 ) { v7 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v9[0] = &v10; v8 = strlen(a2); std::string::_M_construct<char const*>((long long)v9, a2, (long long)&a2[v8]); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( (long long)v11, (long long)"key '", v9, (long long)"' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v7, 403, v11); __cxa_throw( v7, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return v4 + 32; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x001b0cdf MOV R15,RSI MOV R12,qword ptr [R14 + 0x8] MOV RBX,qword ptr [R12] MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JZ 0x001b0cc9 LAB_001b0c9f: MOV RDI,RBX MOV RSI,R15 CALL 0x00119190 TEST EAX,EAX JZ 0x001b0cbe ADD RBX,0x30 MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JNZ 0x001b0c9f JMP 0x001b0cc1 LAB_001b0cbe: MOV RAX,RBX LAB_001b0cc1: MOV RCX,qword ptr [R14 + 0x8] MOV RBX,qword ptr [RCX + 0x8] LAB_001b0cc9: CMP RAX,RBX JZ 0x001b0d3d ADD RAX,0x20 ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001b0cdf: MOV EDI,0x20 CALL 0x00119370 MOV RBX,RAX MOV RDI,R14 CALL 0x0012e9dc MOV RDX,RSP MOV qword ptr [RDX],RAX LAB_001b0cfa: LEA RSI,[0x1bc0e1] LEA RDI,[RSP + 0x20] CALL 0x0018d27e MOV BPL,0x1 LAB_001b0d0e: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x0014b610 XOR EBP,EBP LEA RSI,[0x1e9f50] LEA RDX,[0x12ac50] MOV RDI,RBX CALL 0x00119b70 LAB_001b0d3d: MOV EDI,0x20 CALL 0x00119370 MOV RBX,RAX LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 MOV RDI,R15 CALL 0x00119310 LEA RDX,[RAX + R15*0x1] LAB_001b0d60: MOV RDI,RSP MOV RSI,R15 CALL 0x001320e8 LAB_001b0d6b: LEA RSI,[0x1bc111] LEA RCX,[0x1bc117] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x0018d748 MOV BPL,0x1 LAB_001b0d89: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x0018d7ee XOR EBP,EBP LEA RSI,[0x1e9ed0] LEA RDX,[0x12ac50] MOV RDI,RBX CALL 0x00119b70
char * _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { long *plVar1; int iVar2; char *pcVar3; int8 uVar4; size_t sVar5; char *pcVar6; char *local_68 [2]; char local_58 [16]; detail local_48 [32]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 001b0cfa to 001b0d0a has its CatchHandler @ 001b0e26 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_48,"cannot use at() with ",local_68); /* try { // try from 001b0d0e to 001b0d3a has its CatchHandler @ 001b0e01 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x130,local_48,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } plVar1 = *(long **)(param_1 + 8); pcVar6 = (char *)*plVar1; pcVar3 = (char *)plVar1[1]; if (pcVar6 != pcVar3) { do { pcVar3 = pcVar6; iVar2 = std::__cxx11::string::compare(pcVar3); if (iVar2 == 0) break; pcVar6 = pcVar3 + 0x30; pcVar3 = (char *)plVar1[1]; } while (pcVar6 != pcVar3); pcVar6 = *(char **)(*(long *)(param_1 + 8) + 8); } if (pcVar3 == pcVar6) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = local_58; sVar5 = strlen(param_2); /* try { // try from 001b0d60 to 001b0d6a has its CatchHandler @ 001b0dff */ std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5); /* try { // try from 001b0d6b to 001b0d85 has its CatchHandler @ 001b0de4 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_48,"key \'",(string *)local_68,"\' not found"); /* try { // try from 001b0d89 to 001b0db5 has its CatchHandler @ 001b0db6 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x193,local_48,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return pcVar3 + 0x20; }
3,812
Cache::getTag(unsigned int)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
uint32_t Cache::getTag(uint32_t addr) { uint32_t offsetBits = log2i(policy.blockSize); uint32_t idBits = log2i(policy.blockNum / policy.associativity); uint32_t mask = (1 << (32 - offsetBits - idBits)) - 1; return (addr >> (offsetBits + idBits)) & mask; }
O1
cpp
Cache::getTag(unsigned int): movl 0x34(%rdi), %eax movl $0xffffffff, %r8d # imm = 0xFFFFFFFF movl $0xffffffff, %ecx # imm = 0xFFFFFFFF testl %eax, %eax je 0x30f5 xorl %ecx, %ecx cmpl $0x1, %eax je 0x30f5 cmpl $0x2, %eax jb 0x30f5 xorl %ecx, %ecx movl %eax, %edx shrl %edx incl %ecx cmpl $0x3, %eax movl %edx, %eax ja 0x30ea movl 0x38(%rdi), %eax xorl %edx, %edx divl 0x3c(%rdi) testl %eax, %eax je 0x311f xorl %r8d, %r8d cmpl $0x1, %eax je 0x311f cmpl $0x2, %eax jb 0x311f xorl %r8d, %r8d movl %eax, %edx shrl %edx incl %r8d cmpl $0x3, %eax movl %edx, %eax ja 0x3113 addl %ecx, %r8d movl %r8d, %ecx negb %cl movl $0xffffffff, %eax # imm = 0xFFFFFFFF shll %cl, %eax movl %r8d, %ecx shrl %cl, %esi notl %eax andl %eax, %esi movl %esi, %eax retq
_ZN5Cache6getTagEj: mov eax, [rdi+34h] mov r8d, 0FFFFFFFFh mov ecx, 0FFFFFFFFh test eax, eax jz short loc_30F5 xor ecx, ecx cmp eax, 1 jz short loc_30F5 cmp eax, 2 jb short loc_30F5 xor ecx, ecx mov edx, eax loc_30EA: shr edx, 1 inc ecx cmp eax, 3 mov eax, edx ja short loc_30EA loc_30F5: mov eax, [rdi+38h] xor edx, edx div dword ptr [rdi+3Ch] test eax, eax jz short loc_311F xor r8d, r8d cmp eax, 1 jz short loc_311F cmp eax, 2 jb short loc_311F xor r8d, r8d mov edx, eax loc_3113: shr edx, 1 inc r8d cmp eax, 3 mov eax, edx ja short loc_3113 loc_311F: add r8d, ecx mov ecx, r8d neg cl mov eax, 0FFFFFFFFh shl eax, cl mov ecx, r8d shr esi, cl not eax and esi, eax mov eax, esi retn
long long Cache::getTag(Cache *this, unsigned int a2) { unsigned int v2; // eax char v3; // r8 char v4; // cl unsigned int v5; // edx bool v6; // cc unsigned int v7; // eax unsigned int v8; // edx v2 = *((_DWORD *)this + 13); v3 = -1; v4 = -1; if ( v2 ) { v4 = 0; if ( v2 != 1 ) { v4 = 0; v5 = *((_DWORD *)this + 13); do { v5 >>= 1; ++v4; v6 = v2 <= 3; v2 = v5; } while ( !v6 ); } } v7 = *((_DWORD *)this + 14) / *((_DWORD *)this + 15); if ( v7 ) { v3 = 0; if ( v7 != 1 ) { v3 = 0; v8 = *((_DWORD *)this + 14) / *((_DWORD *)this + 15); do { v8 >>= 1; ++v3; v6 = v7 <= 3; v7 = v8; } while ( !v6 ); } } return ~(-1 << -(char)(v4 + v3)) & (a2 >> (v4 + v3)); }
getTag: MOV EAX,dword ptr [RDI + 0x34] MOV R8D,0xffffffff MOV ECX,0xffffffff TEST EAX,EAX JZ 0x001030f5 XOR ECX,ECX CMP EAX,0x1 JZ 0x001030f5 CMP EAX,0x2 JC 0x001030f5 XOR ECX,ECX MOV EDX,EAX LAB_001030ea: SHR EDX,0x1 INC ECX CMP EAX,0x3 MOV EAX,EDX JA 0x001030ea LAB_001030f5: MOV EAX,dword ptr [RDI + 0x38] XOR EDX,EDX DIV dword ptr [RDI + 0x3c] TEST EAX,EAX JZ 0x0010311f XOR R8D,R8D CMP EAX,0x1 JZ 0x0010311f CMP EAX,0x2 JC 0x0010311f XOR R8D,R8D MOV EDX,EAX LAB_00103113: SHR EDX,0x1 INC R8D CMP EAX,0x3 MOV EAX,EDX JA 0x00103113 LAB_0010311f: ADD R8D,ECX MOV ECX,R8D NEG CL MOV EAX,0xffffffff SHL EAX,CL MOV ECX,R8D SHR ESI,CL NOT EAX AND ESI,EAX MOV EAX,ESI RET
/* Cache::getTag(unsigned int) */ uint __thiscall Cache::getTag(Cache *this,uint param_1) { bool bVar1; uint uVar2; char cVar3; ulong uVar4; char cVar5; uVar2 = *(uint *)(this + 0x34); cVar3 = -1; if (uVar2 != 0) { cVar3 = '\0'; if ((uVar2 != 1) && (cVar3 = '\0', 1 < uVar2)) { cVar3 = '\0'; do { cVar3 = cVar3 + '\x01'; bVar1 = 3 < uVar2; uVar2 = uVar2 >> 1; } while (bVar1); } } uVar2 = (uint)((ulong)*(uint *)(this + 0x38) / (ulong)*(uint *)(this + 0x3c)); cVar5 = -1; if (uVar2 != 0) { cVar5 = '\0'; if ((uVar2 != 1) && (cVar5 = '\0', 1 < uVar2)) { cVar5 = '\0'; uVar4 = (ulong)*(uint *)(this + 0x38) / (ulong)*(uint *)(this + 0x3c); do { cVar5 = cVar5 + '\x01'; uVar2 = (uint)uVar4; uVar4 = uVar4 >> 1; } while (3 < uVar2); } } return param_1 >> (cVar5 + cVar3 & 0x1fU) & ~(-1 << (-(cVar5 + cVar3) & 0x1fU)); }
3,813
Cache::getTag(unsigned int)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
uint32_t Cache::getTag(uint32_t addr) { uint32_t offsetBits = log2i(policy.blockSize); uint32_t idBits = log2i(policy.blockNum / policy.associativity); uint32_t mask = (1 << (32 - offsetBits - idBits)) - 1; return (addr >> (offsetBits + idBits)) & mask; }
O2
cpp
Cache::getTag(unsigned int): pushq %rbp pushq %r14 pushq %rbx movl %esi, %ebx movq %rdi, %r14 movl 0x34(%rdi), %esi callq 0x4618 movl %eax, %ebp movl 0x38(%r14), %eax xorl %edx, %edx divl 0x3c(%r14) movl %eax, %esi callq 0x4618 addl %eax, %ebp movl %ebp, %ecx negb %cl pushq $-0x1 popq %rax shll %cl, %eax movl %ebp, %ecx shrl %cl, %ebx notl %eax andl %eax, %ebx movl %ebx, %eax popq %rbx popq %r14 popq %rbp retq
_ZN5Cache6getTagEj: push rbp push r14 push rbx mov ebx, esi mov r14, rdi mov esi, [rdi+34h]; unsigned int call _ZN5Cache5log2iEj; Cache::log2i(uint) mov ebp, eax mov eax, [r14+38h] xor edx, edx div dword ptr [r14+3Ch] mov esi, eax; unsigned int call _ZN5Cache5log2iEj; Cache::log2i(uint) add ebp, eax mov ecx, ebp neg cl push 0FFFFFFFFFFFFFFFFh pop rax shl eax, cl mov ecx, ebp shr ebx, cl not eax and ebx, eax mov eax, ebx pop rbx pop r14 pop rbp retn
long long Cache::getTag(Cache *this, unsigned int a2) { char v2; // bp char v3; // al v2 = Cache::log2i(this, *((_DWORD *)this + 13)); v3 = Cache::log2i(this, *((_DWORD *)this + 14) / *((_DWORD *)this + 15)); return ~(-1 << -(char)(v3 + v2)) & (a2 >> (v3 + v2)); }
getTag: PUSH RBP PUSH R14 PUSH RBX MOV EBX,ESI MOV R14,RDI MOV ESI,dword ptr [RDI + 0x34] CALL 0x00104618 MOV EBP,EAX MOV EAX,dword ptr [R14 + 0x38] XOR EDX,EDX DIV dword ptr [R14 + 0x3c] MOV ESI,EAX CALL 0x00104618 ADD EBP,EAX MOV ECX,EBP NEG CL PUSH -0x1 POP RAX SHL EAX,CL MOV ECX,EBP SHR EBX,CL NOT EAX AND EBX,EAX MOV EAX,EBX POP RBX POP R14 POP RBP RET
/* Cache::getTag(unsigned int) */ uint __thiscall Cache::getTag(Cache *this,uint param_1) { char cVar1; char cVar2; Cache *this_00; this_00 = this; cVar1 = log2i(this,*(uint *)(this + 0x34)); cVar2 = log2i(this_00,*(uint *)(this + 0x38) / *(uint *)(this + 0x3c)); return param_1 >> (cVar1 + cVar2 & 0x1fU) & ~(-1 << (-(cVar1 + cVar2) & 0x1fU)); }
3,814
sapphire_plugins::shared::ProcessorShim<sapphire_plugins::gravy::GravyClap>::handleEvent(clap_event_header const*)
sapphire-plugins/src/shared/processor_shim.h
bool handleEvent(const clap_event_header_t *nextEvent) { auto res = true; if (nextEvent->space_id == CLAP_CORE_EVENT_SPACE_ID) { switch (nextEvent->type) { case CLAP_EVENT_PARAM_VALUE: { auto pevt = reinterpret_cast<const clap_event_param_value_t *>(nextEvent); auto par = sst::plugininfra::patch_support::paramFromClapEvent<typename Processor::param_t, clap_event_param_value_t>( pevt, asProcessor()->patch); if (par) { par->value = pevt->value; par->lag.setTarget(pevt->value); shared::AudioToUIMsg au{shared::AudioToUIMsg::UPDATE_PARAM, par->meta.id, par->value}; audioToUi.push(au); } } break; default: res = asProcessor()->handleNonParamEvent(nextEvent); break; } } return res; }
O3
c
sapphire_plugins::shared::ProcessorShim<sapphire_plugins::gravy::GravyClap>::handleEvent(clap_event_header const*): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movb $0x1, %bl cmpw $0x0, 0x8(%rsi) jne 0xfd6e6 movq %rsi, %r15 cmpw $0x5, 0xa(%rsi) jne 0xfd6e4 movq %rdi, %r14 movq 0x18(%r15), %rax testq %rax, %rax je 0xfd6f2 cvtsd2ss 0x30(%r15), %xmm0 movss %xmm0, (%rax) movss %xmm0, 0x1ac(%rax) cmpb $0x1, 0x1b0(%rax) jne 0xfd6a6 movss %xmm0, 0x1a8(%rax) movb $0x0, 0x1b0(%rax) movl 0x50(%rax), %eax shlq $0x20, %rax xorps %xmm1, %xmm1 movss %xmm0, %xmm1 # xmm1 = xmm0[0],xmm1[1,2,3] movq 0x1d8(%r14), %rcx movq %rcx, %rdx shlq $0x4, %rdx movq %rax, 0x1e8(%r14,%rdx) movlps %xmm1, 0x1f0(%r14,%rdx) incl %ecx andl $0x3fff, %ecx # imm = 0x3FFF movq %rcx, 0x1d8(%r14) jmp 0xfd6e6 xorl %ebx, %ebx movl %ebx, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movl 0x10(%r15), %eax leaq 0xc(%rsp), %rsi movl %eax, (%rsi) leaq 0x100278(%r14), %rdi callq 0xdb07c testq %rax, %rax je 0xfd6e6 movq 0x10(%rax), %rax testq %rax, %rax jne 0xfd67c jmp 0xfd6e6 movq %rax, %rdi callq 0xd4dfb nop
_ZN16sapphire_plugins6shared13ProcessorShimINS_6galaxy10GalaxyClapEE11handleEventEPK17clap_event_header: push r15 push r14 push rbx sub rsp, 10h mov bl, 1 cmp word ptr [rsi+8], 0 jnz loc_FD6E6 mov r15, rsi cmp word ptr [rsi+0Ah], 5 jnz short loc_FD6E4 mov r14, rdi mov rax, [r15+18h] test rax, rax jz short loc_FD6F2 loc_FD67C: cvtsd2ss xmm0, qword ptr [r15+30h] movss dword ptr [rax], xmm0 movss dword ptr [rax+1ACh], xmm0 cmp byte ptr [rax+1B0h], 1 jnz short loc_FD6A6 movss dword ptr [rax+1A8h], xmm0 mov byte ptr [rax+1B0h], 0 loc_FD6A6: mov eax, [rax+50h] shl rax, 20h xorps xmm1, xmm1 movss xmm1, xmm0 mov rcx, [r14+1D8h] mov rdx, rcx shl rdx, 4 mov [r14+rdx+1E8h], rax movlps qword ptr [r14+rdx+1F0h], xmm1 inc ecx and ecx, 3FFFh mov [r14+1D8h], rcx jmp short loc_FD6E6 loc_FD6E4: xor ebx, ebx loc_FD6E6: mov eax, ebx add rsp, 10h pop rbx pop r14 pop r15 retn loc_FD6F2: mov eax, [r15+10h] lea rsi, [rsp+28h+var_1C] mov [rsi], eax lea rdi, loc_100278[r14] call _ZNKSt10_HashtableIjSt4pairIKjPN16sapphire_plugins6shared12ParamWithLagEESaIS6_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<uint,std::pair<uint const,sapphire_plugins::shared::ParamWithLag *>,std::allocator<std::pair<uint const,sapphire_plugins::shared::ParamWithLag *>>,std::__detail::_Select1st,std::equal_to<uint>,std::hash<uint>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(uint const&) test rax, rax jz short loc_FD6E6 mov rax, [rax+10h] test rax, rax jnz loc_FD67C jmp short loc_FD6E6 mov rdi, rax call __clang_call_terminate
long long sapphire_plugins::shared::ProcessorShim<sapphire_plugins::galaxy::GalaxyClap>::handleEvent( long long a1, long long a2) { unsigned int v2; // ebx long long v3; // rax float v4; // xmm0_4 __m128 v5; // xmm1 long long v6; // rcx long long *v8; // rax unsigned int v9[7]; // [rsp+Ch] [rbp-1Ch] BYREF LOBYTE(v2) = 1; if ( !*(_WORD *)(a2 + 8) ) { if ( *(_WORD *)(a2 + 10) == 5 ) { v3 = *(_QWORD *)(a2 + 24); if ( v3 || (v9[0] = *(_DWORD *)(a2 + 16), (v8 = std::_Hashtable<unsigned int,std::pair<unsigned int const,sapphire_plugins::shared::ParamWithLag *>,std::allocator<std::pair<unsigned int const,sapphire_plugins::shared::ParamWithLag *>>,std::__detail::_Select1st,std::equal_to<unsigned int>,std::hash<unsigned int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find( (long long *)((char *)&loc_100278 + a1), v9)) != 0LL) && (v3 = v8[2]) != 0 ) { v4 = *(double *)(a2 + 48); *(float *)v3 = v4; *(float *)(v3 + 428) = v4; if ( *(_BYTE *)(v3 + 432) == 1 ) { *(float *)(v3 + 424) = v4; *(_BYTE *)(v3 + 432) = 0; } v5 = 0LL; v5.m128_f32[0] = v4; v6 = *(_QWORD *)(a1 + 472); *(_QWORD *)(a1 + 16 * v6 + 488) = (unsigned long long)*(unsigned int *)(v3 + 80) << 32; _mm_storel_ps((double *)(a1 + 16 * v6 + 496), v5); *(_QWORD *)(a1 + 472) = ((_WORD)v6 + 1) & 0x3FFF; } } else { return 0; } } return v2; }
handleEvent: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV BL,0x1 CMP word ptr [RSI + 0x8],0x0 JNZ 0x001fd6e6 MOV R15,RSI CMP word ptr [RSI + 0xa],0x5 JNZ 0x001fd6e4 MOV R14,RDI MOV RAX,qword ptr [R15 + 0x18] TEST RAX,RAX JZ 0x001fd6f2 LAB_001fd67c: CVTSD2SS XMM0,qword ptr [R15 + 0x30] MOVSS dword ptr [RAX],XMM0 MOVSS dword ptr [RAX + 0x1ac],XMM0 CMP byte ptr [RAX + 0x1b0],0x1 JNZ 0x001fd6a6 MOVSS dword ptr [RAX + 0x1a8],XMM0 MOV byte ptr [RAX + 0x1b0],0x0 LAB_001fd6a6: MOV EAX,dword ptr [RAX + 0x50] SHL RAX,0x20 XORPS XMM1,XMM1 MOVSS XMM1,XMM0 MOV RCX,qword ptr [R14 + 0x1d8] MOV RDX,RCX SHL RDX,0x4 MOV qword ptr [R14 + RDX*0x1 + 0x1e8],RAX MOVLPS qword ptr [R14 + RDX*0x1 + 0x1f0],XMM1 INC ECX AND ECX,0x3fff MOV qword ptr [R14 + 0x1d8],RCX JMP 0x001fd6e6 LAB_001fd6e4: XOR EBX,EBX LAB_001fd6e6: MOV EAX,EBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET LAB_001fd6f2: MOV EAX,dword ptr [R15 + 0x10] LEA RSI,[RSP + 0xc] MOV dword ptr [RSI],EAX LEA RDI,[R14 + 0x100278] LAB_001fd704: CALL 0x001db07c TEST RAX,RAX JZ 0x001fd6e6 MOV RAX,qword ptr [RAX + 0x10] TEST RAX,RAX JNZ 0x001fd67c JMP 0x001fd6e6
/* sapphire_plugins::shared::ProcessorShim<sapphire_plugins::galaxy::GalaxyClap>::handleEvent(clap_event_header const*) */ ulong __thiscall sapphire_plugins::shared::ProcessorShim<sapphire_plugins::galaxy::GalaxyClap>::handleEvent (ProcessorShim<sapphire_plugins::galaxy::GalaxyClap> *this,clap_event_header *param_1) { float *pfVar1; long lVar2; long lVar3; int8 unaff_RBX; ulong uVar4; float fVar5; uint local_1c; uVar4 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1); if (*(short *)(param_1 + 8) == 0) { if (*(short *)(param_1 + 10) == 5) { pfVar1 = *(float **)(param_1 + 0x18); if (pfVar1 == (float *)0x0) { local_1c = *(uint *)(param_1 + 0x10); /* try { // try from 001fd704 to 001fd708 has its CatchHandler @ 001fd71d */ lVar2 = std:: _Hashtable<unsigned_int,std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>,std::allocator<std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::find((_Hashtable<unsigned_int,std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>,std::allocator<std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)(this + 0x100278),&local_1c); if ((lVar2 == 0) || (pfVar1 = *(float **)(lVar2 + 0x10), pfVar1 == (float *)0x0)) goto LAB_001fd6e6; } fVar5 = (float)*(double *)(param_1 + 0x30); *pfVar1 = fVar5; pfVar1[0x6b] = fVar5; if (*(char *)(pfVar1 + 0x6c) == '\x01') { pfVar1[0x6a] = fVar5; *(int1 *)(pfVar1 + 0x6c) = 0; } lVar2 = *(long *)(this + 0x1d8); lVar3 = lVar2 * 0x10; *(ulong *)(this + lVar3 + 0x1e8) = (ulong)(uint)pfVar1[0x14] << 0x20; *(ulong *)(this + lVar3 + 0x1f0) = (ulong)(uint)fVar5; *(ulong *)(this + 0x1d8) = (ulong)((int)lVar2 + 1U & 0x3fff); } else { uVar4 = 0; } } LAB_001fd6e6: return uVar4 & 0xffffffff; }
3,815
void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::Parameters const&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/pointOperations.h
static void apply(Parameters const & args) { typedef struct PointBuilder<REAL,SIZE> Point; int N = args.srcCount; REAL invN = 1.0f / (REAL) N; REAL * facePoint = args.resultData; std::memset(facePoint, 0, args.pointSize * sizeof(REAL)); for (int i = 0; i < N; ++i) { int j = (i < (N - 1)) ? (i + 1) : 0; REAL const * pi = args.pointData + args.pointStride * i; REAL const * pj = args.pointData + args.pointStride * j; Point::Add(facePoint, invN, pi, args.pointSize); REAL * edgePoint = args.resultData + args.pointStride * (1 + i); Point::Set(edgePoint, 0.5f, pi, args.pointSize); Point::Add(edgePoint, 0.5f, pj, args.pointSize); } }
O0
c
void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::Parameters const&): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl 0x10(%rax), %eax movl %eax, -0xc(%rbp) cvtsi2sdl -0xc(%rbp), %xmm1 movsd 0x38355(%rip), %xmm0 # 0x1ec598 divsd %xmm1, %xmm0 movsd %xmm0, -0x18(%rbp) movq -0x8(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi movq -0x8(%rbp), %rax movslq 0x8(%rax), %rdx shlq $0x3, %rdx xorl %esi, %esi callq 0xc8170 movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax cmpl -0xc(%rbp), %eax jge 0x1b436c movl -0x24(%rbp), %eax movl -0xc(%rbp), %ecx subl $0x1, %ecx cmpl %ecx, %eax jge 0x1b429a movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x44(%rbp) jmp 0x1b42a1 xorl %eax, %eax movl %eax, -0x44(%rbp) jmp 0x1b42a1 movl -0x44(%rbp), %eax movl %eax, -0x28(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq -0x8(%rbp), %rcx movl 0xc(%rcx), %ecx imull -0x24(%rbp), %ecx movslq %ecx, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq -0x8(%rbp), %rcx movl 0xc(%rcx), %ecx imull -0x28(%rbp), %ecx movslq %ecx, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rdi movsd -0x18(%rbp), %xmm0 movq -0x30(%rbp), %rsi movq -0x8(%rbp), %rax movl 0x8(%rax), %edx callq 0xd49f0 movq -0x8(%rbp), %rax movq 0x18(%rax), %rax movq -0x8(%rbp), %rcx movl 0xc(%rcx), %ecx movl -0x24(%rbp), %edx addl $0x1, %edx imull %edx, %ecx movslq %ecx, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x8(%rbp), %rax movl 0x8(%rax), %edx movsd 0x3826b(%rip), %xmm0 # 0x1ec5a8 callq 0xd79f0 movq -0x40(%rbp), %rdi movq -0x38(%rbp), %rsi movq -0x8(%rbp), %rax movl 0x8(%rax), %edx movsd 0x3824f(%rip), %xmm0 # 0x1ec5a8 callq 0xd49f0 movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0x1b4276 addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN10OpenSubdiv6v3_6_03Bfr6points9SplitFaceIdE5applyILi0EEEvRKNS4_10ParametersE: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov eax, [rax+10h] mov [rbp+var_C], eax cvtsi2sd xmm1, [rbp+var_C] movsd xmm0, cs:qword_1EC598 divsd xmm0, xmm1 movsd [rbp+var_18], xmm0 mov rax, [rbp+var_8] mov rax, [rax+18h] mov [rbp+var_20], rax mov rdi, [rbp+var_20] mov rax, [rbp+var_8] movsxd rdx, dword ptr [rax+8] shl rdx, 3 xor esi, esi call _memset mov [rbp+var_24], 0 loc_1B4276: mov eax, [rbp+var_24] cmp eax, [rbp+var_C] jge loc_1B436C mov eax, [rbp+var_24] mov ecx, [rbp+var_C] sub ecx, 1 cmp eax, ecx jge short loc_1B429A mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_44], eax jmp short loc_1B42A1 loc_1B429A: xor eax, eax mov [rbp+var_44], eax jmp short $+2 loc_1B42A1: mov eax, [rbp+var_44] mov [rbp+var_28], eax mov rax, [rbp+var_8] mov rax, [rax] mov rcx, [rbp+var_8] mov ecx, [rcx+0Ch] imul ecx, [rbp+var_24] movsxd rcx, ecx shl rcx, 3 add rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_8] mov rax, [rax] mov rcx, [rbp+var_8] mov ecx, [rcx+0Ch] imul ecx, [rbp+var_28] movsxd rcx, ecx shl rcx, 3 add rax, rcx mov [rbp+var_38], rax mov rdi, [rbp+var_20] movsd xmm0, [rbp+var_18] mov rsi, [rbp+var_30] mov rax, [rbp+var_8] mov edx, [rax+8] call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3AddEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(double *,double,double const*,int) mov rax, [rbp+var_8] mov rax, [rax+18h] mov rcx, [rbp+var_8] mov ecx, [rcx+0Ch] mov edx, [rbp+var_24] add edx, 1 imul ecx, edx movsxd rcx, ecx shl rcx, 3 add rax, rcx mov [rbp+var_40], rax mov rdi, [rbp+var_40] mov rsi, [rbp+var_30] mov rax, [rbp+var_8] mov edx, [rax+8] movsd xmm0, cs:qword_1EC5A8 call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3SetEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Set(double *,double,double const*,int) mov rdi, [rbp+var_40] mov rsi, [rbp+var_38] mov rax, [rbp+var_8] mov edx, [rax+8] movsd xmm0, cs:qword_1EC5A8 call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3AddEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(double *,double,double const*,int) mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp loc_1B4276 loc_1B436C: add rsp, 50h pop rbp retn
long long OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<0>(long long a1) { long long result; // rax int v2; // [rsp+Ch] [rbp-44h] long long v3; // [rsp+10h] [rbp-40h] long long v4; // [rsp+18h] [rbp-38h] long long v5; // [rsp+20h] [rbp-30h] int i; // [rsp+2Ch] [rbp-24h] long long v7; // [rsp+30h] [rbp-20h] int v8; // [rsp+44h] [rbp-Ch] v8 = *(_DWORD *)(a1 + 16); v7 = *(_QWORD *)(a1 + 24); memset(v7, 0LL, 8LL * *(int *)(a1 + 8)); for ( i = 0; ; ++i ) { result = (unsigned int)i; if ( i >= v8 ) break; if ( i >= v8 - 1 ) v2 = 0; else v2 = i + 1; v5 = 8LL * i * *(_DWORD *)(a1 + 12) + *(_QWORD *)a1; v4 = 8LL * v2 * *(_DWORD *)(a1 + 12) + *(_QWORD *)a1; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(v7, v5, *(unsigned int *)(a1 + 8), 1.0 / (double)v8); v3 = 8LL * (i + 1) * *(_DWORD *)(a1 + 12) + *(_QWORD *)(a1 + 24); OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Set(v3, v5, *(unsigned int *)(a1 + 8), 0.5); OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(v3, v4, *(unsigned int *)(a1 + 8), 0.5); } return result; }
3,816
void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::Parameters const&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/pointOperations.h
static void apply(Parameters const & args) { typedef struct PointBuilder<REAL,SIZE> Point; int N = args.srcCount; REAL invN = 1.0f / (REAL) N; REAL * facePoint = args.resultData; std::memset(facePoint, 0, args.pointSize * sizeof(REAL)); for (int i = 0; i < N; ++i) { int j = (i < (N - 1)) ? (i + 1) : 0; REAL const * pi = args.pointData + args.pointStride * i; REAL const * pj = args.pointData + args.pointStride * j; Point::Add(facePoint, invN, pi, args.pointSize); REAL * edgePoint = args.resultData + args.pointStride * (1 + i); Point::Set(edgePoint, 0.5f, pi, args.pointSize); Point::Add(edgePoint, 0.5f, pj, args.pointSize); } }
O1
c
void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::Parameters const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r14 movslq 0x10(%rdi), %r15 movq 0x18(%rdi), %rbx movslq 0x8(%rdi), %rdx shlq $0x3, %rdx xorl %r12d, %r12d movq %rbx, %rdi xorl %esi, %esi callq 0x391b0 testq %r15, %r15 jle 0x9bb0d cvtsi2sd %r15d, %xmm1 movsd 0x18b1c(%rip), %xmm0 # 0xb44e8 divsd %xmm1, %xmm0 leaq -0x1(%r15), %rax movq (%r14), %rcx movslq 0xc(%r14), %rdx leaq (,%rdx,8), %rsi movq 0x18(%r14), %rdi addq %rsi, %rdi movl $0x18, %r8d movsd 0x18b18(%rip), %xmm1 # 0xb4510 cmpq %rax, %r12 leaq 0x1(%r12), %r9 movl $0x0, %r10d cmovll %r9d, %r10d movslq %r10d, %r10 movsd -0x18(%rcx,%r8), %xmm2 mulsd %xmm0, %xmm2 addsd (%rbx), %xmm2 imulq %rdx, %r10 movsd %xmm2, (%rbx) movsd -0x10(%rcx,%r8), %xmm2 mulsd %xmm0, %xmm2 addsd 0x8(%rbx), %xmm2 movsd %xmm2, 0x8(%rbx) movsd -0x8(%rcx,%r8), %xmm2 mulsd %xmm0, %xmm2 addsd 0x10(%rbx), %xmm2 movsd %xmm2, 0x10(%rbx) movsd (%rcx,%r8), %xmm2 mulsd %xmm0, %xmm2 addsd 0x18(%rbx), %xmm2 movsd %xmm2, 0x18(%rbx) movsd -0x18(%rcx,%r8), %xmm2 mulsd %xmm1, %xmm2 movsd %xmm2, -0x18(%rdi,%r8) movsd -0x10(%rcx,%r8), %xmm3 mulsd %xmm1, %xmm3 movsd %xmm3, -0x10(%rdi,%r8) movsd -0x8(%rcx,%r8), %xmm4 mulsd %xmm1, %xmm4 movsd %xmm4, -0x8(%rdi,%r8) movsd (%rcx,%r8), %xmm5 mulsd %xmm1, %xmm5 movsd %xmm5, (%rdi,%r8) movsd (%rcx,%r10,8), %xmm6 mulsd %xmm1, %xmm6 addsd %xmm2, %xmm6 movsd %xmm6, -0x18(%rdi,%r8) movsd 0x8(%rcx,%r10,8), %xmm2 mulsd %xmm1, %xmm2 addsd %xmm3, %xmm2 movsd %xmm2, -0x10(%rdi,%r8) movsd 0x10(%rcx,%r10,8), %xmm2 mulsd %xmm1, %xmm2 addsd %xmm4, %xmm2 movsd %xmm2, -0x8(%rdi,%r8) movsd 0x18(%rcx,%r10,8), %xmm2 mulsd %xmm1, %xmm2 addsd %xmm5, %xmm2 movsd %xmm2, (%rdi,%r8) addq %rsi, %r8 movq %r9, %r12 cmpq %r9, %r15 jne 0x9b9f8 addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq nop
_ZN10OpenSubdiv6v3_6_03Bfr6points9SplitFaceIdE5applyILi4EEEvRKNS4_10ParametersE: push r15 push r14 push r12 push rbx push rax mov r14, rdi movsxd r15, dword ptr [rdi+10h] mov rbx, [rdi+18h] movsxd rdx, dword ptr [rdi+8] shl rdx, 3 xor r12d, r12d mov rdi, rbx xor esi, esi call _memset test r15, r15 jle loc_9BB0D cvtsi2sd xmm1, r15d movsd xmm0, cs:qword_B44E8 divsd xmm0, xmm1 lea rax, [r15-1] mov rcx, [r14] movsxd rdx, dword ptr [r14+0Ch] lea rsi, ds:0[rdx*8] mov rdi, [r14+18h] add rdi, rsi mov r8d, 18h movsd xmm1, cs:qword_B4510 loc_9B9F8: cmp r12, rax lea r9, [r12+1] mov r10d, 0 cmovl r10d, r9d movsxd r10, r10d movsd xmm2, qword ptr [rcx+r8-18h] mulsd xmm2, xmm0 addsd xmm2, qword ptr [rbx] imul r10, rdx movsd qword ptr [rbx], xmm2 movsd xmm2, qword ptr [rcx+r8-10h] mulsd xmm2, xmm0 addsd xmm2, qword ptr [rbx+8] movsd qword ptr [rbx+8], xmm2 movsd xmm2, qword ptr [rcx+r8-8] mulsd xmm2, xmm0 addsd xmm2, qword ptr [rbx+10h] movsd qword ptr [rbx+10h], xmm2 movsd xmm2, qword ptr [rcx+r8] mulsd xmm2, xmm0 addsd xmm2, qword ptr [rbx+18h] movsd qword ptr [rbx+18h], xmm2 movsd xmm2, qword ptr [rcx+r8-18h] mulsd xmm2, xmm1 movsd qword ptr [rdi+r8-18h], xmm2 movsd xmm3, qword ptr [rcx+r8-10h] mulsd xmm3, xmm1 movsd qword ptr [rdi+r8-10h], xmm3 movsd xmm4, qword ptr [rcx+r8-8] mulsd xmm4, xmm1 movsd qword ptr [rdi+r8-8], xmm4 movsd xmm5, qword ptr [rcx+r8] mulsd xmm5, xmm1 movsd qword ptr [rdi+r8], xmm5 movsd xmm6, qword ptr [rcx+r10*8] mulsd xmm6, xmm1 addsd xmm6, xmm2 movsd qword ptr [rdi+r8-18h], xmm6 movsd xmm2, qword ptr [rcx+r10*8+8] mulsd xmm2, xmm1 addsd xmm2, xmm3 movsd qword ptr [rdi+r8-10h], xmm2 movsd xmm2, qword ptr [rcx+r10*8+10h] mulsd xmm2, xmm1 addsd xmm2, xmm4 movsd qword ptr [rdi+r8-8], xmm2 movsd xmm2, qword ptr [rcx+r10*8+18h] mulsd xmm2, xmm1 addsd xmm2, xmm5 movsd qword ptr [rdi+r8], xmm2 add r8, rsi mov r12, r9 cmp r15, r9 jnz loc_9B9F8 loc_9BB0D: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<4>(long long *a1) { long long v1; // r15 double *v2; // rbx long long v3; // r12 long long result; // rax double v5; // xmm0_8 long long v6; // rcx long long v7; // rdx long long v8; // rdi long long v9; // r8 long long v10; // r9 int v11; // r10d long long v12; // r10 double v13; // xmm2_8 double v14; // xmm3_8 double v15; // xmm4_8 double v16; // xmm5_8 v1 = *((int *)a1 + 4); v2 = (double *)a1[3]; v3 = 0LL; result = memset(v2, 0LL, 8LL * *((int *)a1 + 2)); if ( v1 > 0 ) { v5 = 1.0 / (double)(int)v1; result = v1 - 1; v6 = *a1; v7 = *((int *)a1 + 3); v8 = 8 * v7 + a1[3]; v9 = 24LL; do { v10 = v3 + 1; v11 = 0; if ( v3 < result ) v11 = v3 + 1; v12 = v7 * v11; *v2 = *(double *)(v6 + v9 - 24) * v5 + *v2; v2[1] = *(double *)(v6 + v9 - 16) * v5 + v2[1]; v2[2] = *(double *)(v6 + v9 - 8) * v5 + v2[2]; v2[3] = *(double *)(v6 + v9) * v5 + v2[3]; v13 = *(double *)(v6 + v9 - 24) * 0.5; *(double *)(v8 + v9 - 24) = v13; v14 = *(double *)(v6 + v9 - 16) * 0.5; *(double *)(v8 + v9 - 16) = v14; v15 = *(double *)(v6 + v9 - 8) * 0.5; *(double *)(v8 + v9 - 8) = v15; v16 = *(double *)(v6 + v9) * 0.5; *(double *)(v8 + v9) = v16; *(double *)(v8 + v9 - 24) = *(double *)(v6 + 8 * v12) * 0.5 + v13; *(double *)(v8 + v9 - 16) = *(double *)(v6 + 8 * v12 + 8) * 0.5 + v14; *(double *)(v8 + v9 - 8) = *(double *)(v6 + 8 * v12 + 16) * 0.5 + v15; *(double *)(v8 + v9) = *(double *)(v6 + 8 * v12 + 24) * 0.5 + v16; v9 += 8 * v7; ++v3; } while ( v1 != v10 ); } return result; }
apply<4>: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDI MOVSXD R15,dword ptr [RDI + 0x10] MOV RBX,qword ptr [RDI + 0x18] MOVSXD RDX,dword ptr [RDI + 0x8] SHL RDX,0x3 XOR R12D,R12D MOV RDI,RBX XOR ESI,ESI CALL 0x001391b0 TEST R15,R15 JLE 0x0019bb0d CVTSI2SD XMM1,R15D MOVSD XMM0,qword ptr [0x001b44e8] DIVSD XMM0,XMM1 LEA RAX,[R15 + -0x1] MOV RCX,qword ptr [R14] MOVSXD RDX,dword ptr [R14 + 0xc] LEA RSI,[RDX*0x8] MOV RDI,qword ptr [R14 + 0x18] ADD RDI,RSI MOV R8D,0x18 MOVSD XMM1,qword ptr [0x001b4510] LAB_0019b9f8: CMP R12,RAX LEA R9,[R12 + 0x1] MOV R10D,0x0 CMOVL R10D,R9D MOVSXD R10,R10D MOVSD XMM2,qword ptr [RCX + R8*0x1 + -0x18] MULSD XMM2,XMM0 ADDSD XMM2,qword ptr [RBX] IMUL R10,RDX MOVSD qword ptr [RBX],XMM2 MOVSD XMM2,qword ptr [RCX + R8*0x1 + -0x10] MULSD XMM2,XMM0 ADDSD XMM2,qword ptr [RBX + 0x8] MOVSD qword ptr [RBX + 0x8],XMM2 MOVSD XMM2,qword ptr [RCX + R8*0x1 + -0x8] MULSD XMM2,XMM0 ADDSD XMM2,qword ptr [RBX + 0x10] MOVSD qword ptr [RBX + 0x10],XMM2 MOVSD XMM2,qword ptr [RCX + R8*0x1] MULSD XMM2,XMM0 ADDSD XMM2,qword ptr [RBX + 0x18] MOVSD qword ptr [RBX + 0x18],XMM2 MOVSD XMM2,qword ptr [RCX + R8*0x1 + -0x18] MULSD XMM2,XMM1 MOVSD qword ptr [RDI + R8*0x1 + -0x18],XMM2 MOVSD XMM3,qword ptr [RCX + R8*0x1 + -0x10] MULSD XMM3,XMM1 MOVSD qword ptr [RDI + R8*0x1 + -0x10],XMM3 MOVSD XMM4,qword ptr [RCX + R8*0x1 + -0x8] MULSD XMM4,XMM1 MOVSD qword ptr [RDI + R8*0x1 + -0x8],XMM4 MOVSD XMM5,qword ptr [RCX + R8*0x1] MULSD XMM5,XMM1 MOVSD qword ptr [RDI + R8*0x1],XMM5 MOVSD XMM6,qword ptr [RCX + R10*0x8] MULSD XMM6,XMM1 ADDSD XMM6,XMM2 MOVSD qword ptr [RDI + R8*0x1 + -0x18],XMM6 MOVSD XMM2,qword ptr [RCX + R10*0x8 + 0x8] MULSD XMM2,XMM1 ADDSD XMM2,XMM3 MOVSD qword ptr [RDI + R8*0x1 + -0x10],XMM2 MOVSD XMM2,qword ptr [RCX + R10*0x8 + 0x10] MULSD XMM2,XMM1 ADDSD XMM2,XMM4 MOVSD qword ptr [RDI + R8*0x1 + -0x8],XMM2 MOVSD XMM2,qword ptr [RCX + R10*0x8 + 0x18] MULSD XMM2,XMM1 ADDSD XMM2,XMM5 MOVSD qword ptr [RDI + R8*0x1],XMM2 ADD R8,RSI MOV R12,R9 CMP R15,R9 JNZ 0x0019b9f8 LAB_0019bb0d: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<4>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::Parameters const&) */ void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<4>(Parameters *param_1) { long lVar1; long lVar2; int iVar3; double *__s; long lVar4; double dVar5; long lVar6; long lVar7; int iVar8; long lVar9; long lVar10; double dVar11; double dVar12; double dVar13; double dVar14; double dVar15; iVar3 = *(int *)(param_1 + 0x10); lVar10 = (long)iVar3; __s = *(double **)(param_1 + 0x18); memset(__s,0,(long)*(int *)(param_1 + 8) << 3); dVar5 = DAT_001b4510; if (0 < lVar10) { dVar11 = DAT_001b44e8 / (double)iVar3; lVar4 = *(long *)param_1; iVar3 = *(int *)(param_1 + 0xc); lVar1 = (long)iVar3 * 8; lVar6 = *(long *)(param_1 + 0x18) + lVar1; lVar7 = 0x18; lVar9 = 0; do { lVar2 = lVar9 + 1; iVar8 = 0; if (lVar9 < lVar10 + -1) { iVar8 = (int)lVar2; } lVar9 = (long)iVar8 * (long)iVar3; *__s = *(double *)(lVar4 + -0x18 + lVar7) * dVar11 + *__s; __s[1] = *(double *)(lVar4 + -0x10 + lVar7) * dVar11 + __s[1]; __s[2] = *(double *)(lVar4 + -8 + lVar7) * dVar11 + __s[2]; __s[3] = *(double *)(lVar4 + lVar7) * dVar11 + __s[3]; dVar12 = *(double *)(lVar4 + -0x18 + lVar7) * dVar5; *(double *)(lVar6 + -0x18 + lVar7) = dVar12; dVar13 = *(double *)(lVar4 + -0x10 + lVar7) * dVar5; *(double *)(lVar6 + -0x10 + lVar7) = dVar13; dVar14 = *(double *)(lVar4 + -8 + lVar7) * dVar5; *(double *)(lVar6 + -8 + lVar7) = dVar14; dVar15 = *(double *)(lVar4 + lVar7) * dVar5; *(double *)(lVar6 + lVar7) = dVar15; *(double *)(lVar6 + -0x18 + lVar7) = *(double *)(lVar4 + lVar9 * 8) * dVar5 + dVar12; *(double *)(lVar6 + -0x10 + lVar7) = *(double *)(lVar4 + 8 + lVar9 * 8) * dVar5 + dVar13; *(double *)(lVar6 + -8 + lVar7) = *(double *)(lVar4 + 0x10 + lVar9 * 8) * dVar5 + dVar14; *(double *)(lVar6 + lVar7) = *(double *)(lVar4 + 0x18 + lVar9 * 8) * dVar5 + dVar15; lVar7 = lVar7 + lVar1; lVar9 = lVar2; } while (lVar10 != lVar2); } return; }
3,817
void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::Parameters const&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/pointOperations.h
static void apply(Parameters const & args) { typedef struct PointBuilder<REAL,SIZE> Point; int N = args.srcCount; REAL invN = 1.0f / (REAL) N; REAL * facePoint = args.resultData; std::memset(facePoint, 0, args.pointSize * sizeof(REAL)); for (int i = 0; i < N; ++i) { int j = (i < (N - 1)) ? (i + 1) : 0; REAL const * pi = args.pointData + args.pointStride * i; REAL const * pj = args.pointData + args.pointStride * j; Point::Add(facePoint, invN, pi, args.pointSize); REAL * edgePoint = args.resultData + args.pointStride * (1 + i); Point::Set(edgePoint, 0.5f, pi, args.pointSize); Point::Add(edgePoint, 0.5f, pj, args.pointSize); } }
O2
c
void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::Parameters const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movl 0x10(%rdi), %r14d cvtsi2sd %r14d, %xmm0 movsd 0x16830(%rip), %xmm1 # 0xbe508 divsd %xmm0, %xmm1 movsd %xmm1, 0x10(%rsp) movq 0x18(%rdi), %rdi movslq 0x8(%rbx), %rdx shlq $0x3, %rdx xorl %r15d, %r15d movq %rdi, 0x8(%rsp) xorl %esi, %esi callq 0x50c10 leal -0x1(%r14), %eax movl %eax, 0x4(%rsp) testl %r14d, %r14d cmovlel %r15d, %r14d cmpl %r15d, %r14d je 0xa7d9d leal 0x1(%r15), %ebp cmpl 0x4(%rsp), %r15d movl $0x0, %eax cmovll %ebp, %eax movq (%rbx), %rcx movl 0xc(%rbx), %edx imull %edx, %r15d movslq %r15d, %rsi leaq (%rcx,%rsi,8), %r15 imull %edx, %eax cltq leaq (%rcx,%rax,8), %r12 movl 0x8(%rbx), %edx movq 0x8(%rsp), %rdi movsd 0x10(%rsp), %xmm0 movq %r15, %rsi callq 0x54de0 movslq 0xc(%rbx), %rax movslq %ebp, %r13 imulq %rax, %r13 shlq $0x3, %r13 addq 0x18(%rbx), %r13 movl 0x8(%rbx), %edx movq %r13, %rdi movsd 0x16779(%rip), %xmm0 # 0xbe4f0 movq %r15, %rsi callq 0x55ec0 movl 0x8(%rbx), %edx movq %r13, %rdi movsd 0x16763(%rip), %xmm0 # 0xbe4f0 movq %r12, %rsi callq 0x54de0 movl %ebp, %r15d jmp 0xa7d0c addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN10OpenSubdiv6v3_6_03Bfr6points9SplitFaceIdE5applyILi0EEEvRKNS4_10ParametersE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdi mov r14d, [rdi+10h] cvtsi2sd xmm0, r14d movsd xmm1, cs:qword_BE508 divsd xmm1, xmm0 movsd [rsp+48h+var_38], xmm1 mov rdi, [rdi+18h] movsxd rdx, dword ptr [rbx+8] shl rdx, 3 xor r15d, r15d mov [rsp+48h+var_40], rdi xor esi, esi call _memset lea eax, [r14-1] mov [rsp+48h+var_44], eax test r14d, r14d cmovle r14d, r15d loc_A7D0C: cmp r14d, r15d jz loc_A7D9D lea ebp, [r15+1] cmp r15d, [rsp+48h+var_44] mov eax, 0 cmovl eax, ebp mov rcx, [rbx] mov edx, [rbx+0Ch] imul r15d, edx movsxd rsi, r15d lea r15, [rcx+rsi*8] imul eax, edx cdqe lea r12, [rcx+rax*8] mov edx, [rbx+8] mov rdi, [rsp+48h+var_40] movsd xmm0, [rsp+48h+var_38] mov rsi, r15 call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3AddEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(double *,double,double const*,int) movsxd rax, dword ptr [rbx+0Ch] movsxd r13, ebp imul r13, rax shl r13, 3 add r13, [rbx+18h] mov edx, [rbx+8] mov rdi, r13 movsd xmm0, cs:qword_BE4F0 mov rsi, r15 call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3SetEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Set(double *,double,double const*,int) mov edx, [rbx+8] mov rdi, r13 movsd xmm0, cs:qword_BE4F0 mov rsi, r12 call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3AddEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(double *,double,double const*,int) mov r15d, ebp jmp loc_A7D0C loc_A7D9D: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<0>(long long a1) { int v1; // r14d int v2; // r15d long long result; // rax int v4; // ebp int v5; // eax int v6; // edx long long v7; // r15 long long v8; // r12 long long v9; // r13 int v10; // [rsp+4h] [rbp-44h] long long v11; // [rsp+8h] [rbp-40h] double v12; // [rsp+10h] [rbp-38h] v1 = *(_DWORD *)(a1 + 16); v12 = 1.0 / (double)v1; v2 = 0; v11 = *(_QWORD *)(a1 + 24); memset(v11, 0LL, 8LL * *(int *)(a1 + 8)); result = (unsigned int)(v1 - 1); v10 = v1 - 1; if ( v1 <= 0 ) v1 = 0; while ( v1 != v2 ) { v4 = v2 + 1; v5 = 0; if ( v2 < v10 ) v5 = v2 + 1; v6 = *(_DWORD *)(a1 + 12); v7 = *(_QWORD *)a1 + 8LL * v6 * v2; v8 = *(_QWORD *)a1 + 8LL * v6 * v5; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(v11, v7, *(unsigned int *)(a1 + 8), v12); v9 = *(_QWORD *)(a1 + 24) + 8 * *(int *)(a1 + 12) * (long long)v4; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Set(v9, v7, 0.5); result = OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(v9, v8, *(unsigned int *)(a1 + 8), 0.5); v2 = v4; } return result; }
apply<0>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDI MOV R14D,dword ptr [RDI + 0x10] CVTSI2SD XMM0,R14D MOVSD XMM1,qword ptr [0x001be508] DIVSD XMM1,XMM0 MOVSD qword ptr [RSP + 0x10],XMM1 MOV RDI,qword ptr [RDI + 0x18] MOVSXD RDX,dword ptr [RBX + 0x8] SHL RDX,0x3 XOR R15D,R15D MOV qword ptr [RSP + 0x8],RDI XOR ESI,ESI CALL 0x00150c10 LEA EAX,[R14 + -0x1] MOV dword ptr [RSP + 0x4],EAX TEST R14D,R14D CMOVLE R14D,R15D LAB_001a7d0c: CMP R14D,R15D JZ 0x001a7d9d LEA EBP,[R15 + 0x1] CMP R15D,dword ptr [RSP + 0x4] MOV EAX,0x0 CMOVL EAX,EBP MOV RCX,qword ptr [RBX] MOV EDX,dword ptr [RBX + 0xc] IMUL R15D,EDX MOVSXD RSI,R15D LEA R15,[RCX + RSI*0x8] IMUL EAX,EDX CDQE LEA R12,[RCX + RAX*0x8] MOV EDX,dword ptr [RBX + 0x8] MOV RDI,qword ptr [RSP + 0x8] MOVSD XMM0,qword ptr [RSP + 0x10] MOV RSI,R15 CALL 0x00154de0 MOVSXD RAX,dword ptr [RBX + 0xc] MOVSXD R13,EBP IMUL R13,RAX SHL R13,0x3 ADD R13,qword ptr [RBX + 0x18] MOV EDX,dword ptr [RBX + 0x8] MOV RDI,R13 MOVSD XMM0,qword ptr [0x001be4f0] MOV RSI,R15 CALL 0x00155ec0 MOV EDX,dword ptr [RBX + 0x8] MOV RDI,R13 MOVSD XMM0,qword ptr [0x001be4f0] MOV RSI,R12 CALL 0x00154de0 MOV R15D,EBP JMP 0x001a7d0c LAB_001a7d9d: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<0>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::Parameters const&) */ void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<0>(Parameters *param_1) { double *pdVar1; int iVar2; int iVar3; double *__s; long lVar4; int iVar5; int iVar6; double *pdVar7; int iVar8; int iVar9; double dVar10; iVar2 = *(int *)(param_1 + 0x10); dVar10 = DAT_001be508 / (double)iVar2; __s = *(double **)(param_1 + 0x18); iVar9 = 0; memset(__s,0,(long)*(int *)(param_1 + 8) << 3); iVar8 = iVar2; if (iVar2 < 1) { iVar8 = iVar9; } while (iVar8 != iVar9) { iVar6 = iVar9 + 1; iVar5 = 0; if (iVar9 < iVar2 + -1) { iVar5 = iVar6; } lVar4 = *(long *)param_1; iVar3 = *(int *)(param_1 + 0xc); pdVar1 = (double *)(lVar4 + (long)(iVar9 * iVar3) * 8); PointBuilder<double,0>::Add(__s,dVar10,pdVar1,*(int *)(param_1 + 8)); pdVar7 = (double *)((long)iVar6 * (long)*(int *)(param_1 + 0xc) * 8 + *(long *)(param_1 + 0x18)) ; PointBuilder<double,0>::Set(pdVar7,DAT_001be4f0,pdVar1,*(int *)(param_1 + 8)); PointBuilder<double,0>::Add (pdVar7,DAT_001be4f0,(double *)(lVar4 + (long)(iVar5 * iVar3) * 8), *(int *)(param_1 + 8)); iVar9 = iVar6; } return; }
3,818
void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::Parameters const&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/pointOperations.h
static void apply(Parameters const & args) { typedef struct PointBuilder<REAL,SIZE> Point; int N = args.srcCount; REAL invN = 1.0f / (REAL) N; REAL * facePoint = args.resultData; std::memset(facePoint, 0, args.pointSize * sizeof(REAL)); for (int i = 0; i < N; ++i) { int j = (i < (N - 1)) ? (i + 1) : 0; REAL const * pi = args.pointData + args.pointStride * i; REAL const * pj = args.pointData + args.pointStride * j; Point::Add(facePoint, invN, pi, args.pointSize); REAL * edgePoint = args.resultData + args.pointStride * (1 + i); Point::Set(edgePoint, 0.5f, pi, args.pointSize); Point::Add(edgePoint, 0.5f, pj, args.pointSize); } }
O3
c
void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<float>::Parameters const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r14 movslq 0x10(%rdi), %r15 movq 0x18(%rdi), %rbx movslq 0x8(%rdi), %rdx shlq $0x3, %rdx xorl %r12d, %r12d movq %rbx, %rdi xorl %esi, %esi callq 0x391a0 testq %r15, %r15 jle 0x9e71f cvtsi2sd %r15d, %xmm1 movsd 0x18f32(%rip), %xmm0 # 0xb7598 divsd %xmm1, %xmm0 leal -0x1(%r15), %eax movq (%r14), %rcx movslq 0xc(%r14), %rdx movl 0x8(%r14), %esi movq %rdx, %rdi shlq $0x3, %rdi movq 0x18(%r14), %r8 addq %rdi, %r8 movsd 0x18f31(%rip), %xmm1 # 0xb75c0 movq %rcx, %r9 cmpq %rax, %r12 leaq 0x1(%r12), %r12 movl $0x0, %r10d cmovbl %r12d, %r10d testl %esi, %esi jle 0x9e710 imull %edx, %r10d movslq %r10d, %r10 leaq (%rcx,%r10,8), %r10 xorl %r11d, %r11d movsd (%r9,%r11,8), %xmm2 mulsd %xmm0, %xmm2 addsd (%rbx,%r11,8), %xmm2 movsd %xmm2, (%rbx,%r11,8) incq %r11 cmpq %r11, %rsi jne 0x9e6b6 xorl %r11d, %r11d movsd (%r9,%r11,8), %xmm2 mulsd %xmm1, %xmm2 movsd %xmm2, (%r8,%r11,8) incq %r11 cmpq %r11, %rsi jne 0x9e6d7 xorl %r11d, %r11d movsd (%r10,%r11,8), %xmm2 mulsd %xmm1, %xmm2 addsd (%r8,%r11,8), %xmm2 movsd %xmm2, (%r8,%r11,8) incq %r11 cmpq %r11, %rsi jne 0x9e6f2 addq %rdi, %r9 addq %rdi, %r8 cmpq %r15, %r12 jne 0x9e692 addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq nop
_ZN10OpenSubdiv6v3_6_03Bfr6points9SplitFaceIdE5applyILi0EEEvRKNS4_10ParametersE: push r15 push r14 push r12 push rbx push rax mov r14, rdi movsxd r15, dword ptr [rdi+10h] mov rbx, [rdi+18h] movsxd rdx, dword ptr [rdi+8] shl rdx, 3 xor r12d, r12d mov rdi, rbx xor esi, esi call _memset test r15, r15 jle loc_9E71F cvtsi2sd xmm1, r15d movsd xmm0, cs:qword_B7598 divsd xmm0, xmm1 lea eax, [r15-1] mov rcx, [r14] movsxd rdx, dword ptr [r14+0Ch] mov esi, [r14+8] mov rdi, rdx shl rdi, 3 mov r8, [r14+18h] add r8, rdi movsd xmm1, cs:qword_B75C0 mov r9, rcx loc_9E692: cmp r12, rax lea r12, [r12+1] mov r10d, 0 cmovb r10d, r12d test esi, esi jle short loc_9E710 imul r10d, edx movsxd r10, r10d lea r10, [rcx+r10*8] xor r11d, r11d loc_9E6B6: movsd xmm2, qword ptr [r9+r11*8] mulsd xmm2, xmm0 addsd xmm2, qword ptr [rbx+r11*8] movsd qword ptr [rbx+r11*8], xmm2 inc r11 cmp rsi, r11 jnz short loc_9E6B6 xor r11d, r11d loc_9E6D7: movsd xmm2, qword ptr [r9+r11*8] mulsd xmm2, xmm1 movsd qword ptr [r8+r11*8], xmm2 inc r11 cmp rsi, r11 jnz short loc_9E6D7 xor r11d, r11d loc_9E6F2: movsd xmm2, qword ptr [r10+r11*8] mulsd xmm2, xmm1 addsd xmm2, qword ptr [r8+r11*8] movsd qword ptr [r8+r11*8], xmm2 inc r11 cmp rsi, r11 jnz short loc_9E6F2 loc_9E710: add r9, rdi add r8, rdi cmp r12, r15 jnz loc_9E692 loc_9E71F: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
unsigned long long OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<0>(long long *a1) { long long v2; // r15 long long v3; // rbx unsigned long long v4; // r12 unsigned long long result; // rax long long v6; // rcx int v7; // edx long long v8; // rsi long long v9; // rdi long long v10; // r8 long long v11; // r9 bool v12; // cf int v13; // r10d long long v14; // r10 long long i; // r11 long long j; // r11 long long k; // r11 v2 = *((int *)a1 + 4); v3 = a1[3]; v4 = 0LL; result = memset(v3, 0LL, 8LL * *((int *)a1 + 2)); if ( v2 > 0 ) { result = (unsigned int)(v2 - 1); v6 = *a1; v7 = *((_DWORD *)a1 + 3); v8 = *((unsigned int *)a1 + 2); v9 = 8LL * v7; v10 = v9 + a1[3]; v11 = *a1; do { v12 = v4++ < result; v13 = 0; if ( v12 ) v13 = v4; if ( (int)v8 > 0 ) { v14 = v6 + 8LL * v7 * v13; for ( i = 0LL; i != v8; ++i ) *(double *)(v3 + 8 * i) = *(double *)(v11 + 8 * i) * (1.0 / (double)(int)v2) + *(double *)(v3 + 8 * i); for ( j = 0LL; j != v8; ++j ) *(double *)(v10 + 8 * j) = *(double *)(v11 + 8 * j) * 0.5; for ( k = 0LL; k != v8; ++k ) *(double *)(v10 + 8 * k) = *(double *)(v14 + 8 * k) * 0.5 + *(double *)(v10 + 8 * k); } v11 += v9; v10 += v9; } while ( v4 != v2 ); } return result; }
apply<0>: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDI MOVSXD R15,dword ptr [RDI + 0x10] MOV RBX,qword ptr [RDI + 0x18] MOVSXD RDX,dword ptr [RDI + 0x8] SHL RDX,0x3 XOR R12D,R12D MOV RDI,RBX XOR ESI,ESI CALL 0x001391a0 TEST R15,R15 JLE 0x0019e71f CVTSI2SD XMM1,R15D MOVSD XMM0,qword ptr [0x001b7598] DIVSD XMM0,XMM1 LEA EAX,[R15 + -0x1] MOV RCX,qword ptr [R14] MOVSXD RDX,dword ptr [R14 + 0xc] MOV ESI,dword ptr [R14 + 0x8] MOV RDI,RDX SHL RDI,0x3 MOV R8,qword ptr [R14 + 0x18] ADD R8,RDI MOVSD XMM1,qword ptr [0x001b75c0] MOV R9,RCX LAB_0019e692: CMP R12,RAX LEA R12,[R12 + 0x1] MOV R10D,0x0 CMOVC R10D,R12D TEST ESI,ESI JLE 0x0019e710 IMUL R10D,EDX MOVSXD R10,R10D LEA R10,[RCX + R10*0x8] XOR R11D,R11D LAB_0019e6b6: MOVSD XMM2,qword ptr [R9 + R11*0x8] MULSD XMM2,XMM0 ADDSD XMM2,qword ptr [RBX + R11*0x8] MOVSD qword ptr [RBX + R11*0x8],XMM2 INC R11 CMP RSI,R11 JNZ 0x0019e6b6 XOR R11D,R11D LAB_0019e6d7: MOVSD XMM2,qword ptr [R9 + R11*0x8] MULSD XMM2,XMM1 MOVSD qword ptr [R8 + R11*0x8],XMM2 INC R11 CMP RSI,R11 JNZ 0x0019e6d7 XOR R11D,R11D LAB_0019e6f2: MOVSD XMM2,qword ptr [R10 + R11*0x8] MULSD XMM2,XMM1 ADDSD XMM2,qword ptr [R8 + R11*0x8] MOVSD qword ptr [R8 + R11*0x8],XMM2 INC R11 CMP RSI,R11 JNZ 0x0019e6f2 LAB_0019e710: ADD R9,RDI ADD R8,RDI CMP R12,R15 JNZ 0x0019e692 LAB_0019e71f: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<0>(OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::Parameters const&) */ void OpenSubdiv::v3_6_0::Bfr::points::SplitFace<double>::apply<0>(Parameters *param_1) { int iVar1; int iVar2; uint uVar3; void *__s; long lVar4; double dVar5; ulong uVar6; long lVar7; long lVar8; long lVar9; int iVar10; ulong uVar11; ulong uVar12; bool bVar13; double dVar14; iVar1 = *(int *)(param_1 + 0x10); __s = *(void **)(param_1 + 0x18); uVar12 = 0; memset(__s,0,(long)*(int *)(param_1 + 8) << 3); dVar5 = DAT_001b75c0; if (0 < (long)iVar1) { dVar14 = DAT_001b7598 / (double)iVar1; lVar4 = *(long *)param_1; iVar2 = *(int *)(param_1 + 0xc); uVar3 = *(uint *)(param_1 + 8); uVar6 = (ulong)uVar3; lVar7 = (long)iVar2 * 8; lVar8 = *(long *)(param_1 + 0x18); lVar9 = lVar4; do { lVar8 = lVar8 + lVar7; bVar13 = uVar12 < iVar1 - 1; uVar12 = uVar12 + 1; iVar10 = 0; if (bVar13) { iVar10 = (int)uVar12; } if (0 < (int)uVar3) { uVar11 = 0; do { *(double *)((long)__s + uVar11 * 8) = *(double *)(lVar9 + uVar11 * 8) * dVar14 + *(double *)((long)__s + uVar11 * 8); uVar11 = uVar11 + 1; } while (uVar6 != uVar11); uVar11 = 0; do { *(double *)(lVar8 + uVar11 * 8) = *(double *)(lVar9 + uVar11 * 8) * dVar5; uVar11 = uVar11 + 1; } while (uVar6 != uVar11); uVar11 = 0; do { *(double *)(lVar8 + uVar11 * 8) = *(double *)(lVar4 + (long)(iVar10 * iVar2) * 8 + uVar11 * 8) * dVar5 + *(double *)(lVar8 + uVar11 * 8); uVar11 = uVar11 + 1; } while (uVar6 != uVar11); } lVar9 = lVar9 + lVar7; } while (uVar12 != (long)iVar1); } return; }
3,819
ggml_compute_forward_scale_f32
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
static void ggml_compute_forward_scale_f32( const struct ggml_compute_params * params, struct ggml_tensor * dst) { const struct ggml_tensor * src0 = dst->src[0]; GGML_ASSERT(ggml_is_contiguous(src0)); GGML_ASSERT(ggml_is_contiguous(dst)); GGML_ASSERT(ggml_are_same_shape(src0, dst)); // scale factor float v; memcpy(&v, dst->op_params, sizeof(float)); const int ith = params->ith; const int nth = params->nth; const int nc = src0->ne[0]; const int nr = ggml_nrows(src0); // rows per thread const int dr = (nr + nth - 1)/nth; // row range for this thread const int ir0 = dr*ith; const int ir1 = MIN(ir0 + dr, nr); const size_t nb01 = src0->nb[1]; const size_t nb1 = dst->nb[1]; for (int i1 = ir0; i1 < ir1; i1++) { if (dst->data != src0->data) { // src0 is same shape as dst => same indices memcpy((char *)dst->data + i1*nb1, (char *)src0->data + i1*nb01, nc * sizeof(float)); } ggml_vec_scale_f32(nc, (float *) ((char *) dst->data + i1*nb1), v); } }
O0
c
ggml_compute_forward_scale_f32: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x98(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdi callq 0xd280 testb $0x1, %al jne 0x2baad leaq 0x480cf(%rip), %rdi # 0x73b62 movl $0x1f3d, %esi # imm = 0x1F3D leaq 0x48122(%rip), %rdx # 0x73bc1 leaq 0x487dc(%rip), %rcx # 0x74282 movb $0x0, %al callq 0xe270 movq -0x10(%rbp), %rdi callq 0xd280 testb $0x1, %al jne 0x2badb leaq 0x480a1(%rip), %rdi # 0x73b62 movl $0x1f3e, %esi # imm = 0x1F3E leaq 0x480f4(%rip), %rdx # 0x73bc1 leaq 0x494c0(%rip), %rcx # 0x74f94 movb $0x0, %al callq 0xe270 movq -0x18(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0xe260 testb $0x1, %al jne 0x2bb0d leaq 0x4806f(%rip), %rdi # 0x73b62 movl $0x1f3f, %esi # imm = 0x1F3F leaq 0x480c2(%rip), %rdx # 0x73bc1 leaq 0x487b4(%rip), %rcx # 0x742ba movb $0x0, %al callq 0xe270 movq -0x10(%rbp), %rax movl 0x54(%rax), %eax movl %eax, -0x1c(%rbp) movq -0x8(%rbp), %rax movl (%rax), %eax movl %eax, -0x20(%rbp) movq -0x8(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0x24(%rbp) movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl %eax, -0x28(%rbp) movq -0x18(%rbp), %rdi callq 0xdc20 movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax addl -0x24(%rbp), %eax subl $0x1, %eax cltd idivl -0x24(%rbp) movl %eax, -0x30(%rbp) movl -0x30(%rbp), %eax imull -0x20(%rbp), %eax movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax addl -0x30(%rbp), %eax cmpl -0x2c(%rbp), %eax jge 0x2bb71 movl -0x34(%rbp), %eax addl -0x30(%rbp), %eax movl %eax, -0x50(%rbp) jmp 0x2bb77 movl -0x2c(%rbp), %eax movl %eax, -0x50(%rbp) movl -0x50(%rbp), %eax movl %eax, -0x38(%rbp) movq -0x18(%rbp), %rax movq 0x38(%rax), %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rax movq 0x38(%rax), %rax movq %rax, -0x48(%rbp) movl -0x34(%rbp), %eax movl %eax, -0x4c(%rbp) movl -0x4c(%rbp), %eax cmpl -0x38(%rbp), %eax jge 0x2bc2c movq -0x10(%rbp), %rax movq 0xf8(%rax), %rax movq -0x18(%rbp), %rcx cmpq 0xf8(%rcx), %rax je 0x2bbfa movq -0x10(%rbp), %rax movq 0xf8(%rax), %rdi movslq -0x4c(%rbp), %rax imulq -0x48(%rbp), %rax addq %rax, %rdi movq -0x18(%rbp), %rax movq 0xf8(%rax), %rsi movslq -0x4c(%rbp), %rax imulq -0x40(%rbp), %rax addq %rax, %rsi movslq -0x28(%rbp), %rdx shlq $0x2, %rdx callq 0xd8a0 movl -0x28(%rbp), %edi movq -0x10(%rbp), %rax movq 0xf8(%rax), %rsi movslq -0x4c(%rbp), %rax imulq -0x48(%rbp), %rax addq %rax, %rsi vmovss -0x1c(%rbp), %xmm0 callq 0x28860 movl -0x4c(%rbp), %eax addl $0x1, %eax movl %eax, -0x4c(%rbp) jmp 0x2bb9b addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ggml_compute_forward_scale_f32: push rbp mov rbp, rsp sub rsp, 50h 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 rdi, [rbp+var_18] call _ggml_is_contiguous test al, 1 jnz short loc_2BAAD lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 1F3Dh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsContiguo_1+1Bh; "ggml_is_contiguous(src0)" mov al, 0 call _ggml_abort loc_2BAAD: mov rdi, [rbp+var_10] call _ggml_is_contiguous test al, 1 jnz short loc_2BADB lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 1F3Eh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsContiguo_5; "ggml_is_contiguous(dst)" mov al, 0 call _ggml_abort loc_2BADB: mov rdi, [rbp+var_18] mov rsi, [rbp+var_10] call _ggml_are_same_shape test al, 1 jnz short loc_2BB0D lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 1F3Fh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlCanRepeatS+1Fh; "ggml_are_same_shape(src0, dst)" mov al, 0 call _ggml_abort loc_2BB0D: mov rax, [rbp+var_10] mov eax, [rax+54h] mov [rbp+var_1C], eax mov rax, [rbp+var_8] mov eax, [rax] mov [rbp+var_20], eax mov rax, [rbp+var_8] mov eax, [rax+4] mov [rbp+var_24], eax mov rax, [rbp+var_18] mov rax, [rax+10h] mov [rbp+var_28], eax mov rdi, [rbp+var_18] call _ggml_nrows mov [rbp+var_2C], eax mov eax, [rbp+var_2C] add eax, [rbp+var_24] sub eax, 1 cdq idiv [rbp+var_24] mov [rbp+var_30], eax mov eax, [rbp+var_30] imul eax, [rbp+var_20] mov [rbp+var_34], eax mov eax, [rbp+var_34] add eax, [rbp+var_30] cmp eax, [rbp+var_2C] jge short loc_2BB71 mov eax, [rbp+var_34] add eax, [rbp+var_30] mov [rbp+var_50], eax jmp short loc_2BB77 loc_2BB71: mov eax, [rbp+var_2C] mov [rbp+var_50], eax loc_2BB77: mov eax, [rbp+var_50] mov [rbp+var_38], eax mov rax, [rbp+var_18] mov rax, [rax+38h] mov [rbp+var_40], rax mov rax, [rbp+var_10] mov rax, [rax+38h] mov [rbp+var_48], rax mov eax, [rbp+var_34] mov [rbp+var_4C], eax loc_2BB9B: mov eax, [rbp+var_4C] cmp eax, [rbp+var_38] jge loc_2BC2C mov rax, [rbp+var_10] mov rax, [rax+0F8h] mov rcx, [rbp+var_18] cmp rax, [rcx+0F8h] jz short loc_2BBFA mov rax, [rbp+var_10] mov rdi, [rax+0F8h] movsxd rax, [rbp+var_4C] imul rax, [rbp+var_48] add rdi, rax mov rax, [rbp+var_18] mov rsi, [rax+0F8h] movsxd rax, [rbp+var_4C] imul rax, [rbp+var_40] add rsi, rax movsxd rdx, [rbp+var_28] shl rdx, 2 call _memcpy loc_2BBFA: mov edi, [rbp+var_28] mov rax, [rbp+var_10] mov rsi, [rax+0F8h] movsxd rax, [rbp+var_4C] imul rax, [rbp+var_48] add rsi, rax vmovss xmm0, [rbp+var_1C] call ggml_vec_scale_f32 mov eax, [rbp+var_4C] add eax, 1 mov [rbp+var_4C], eax jmp loc_2BB9B loc_2BC2C: add rsp, 50h pop rbp retn
long long ggml_compute_forward_scale_f32(int *a1, long long a2) { long long result; // rax int v4; // [rsp+0h] [rbp-50h] int i; // [rsp+4h] [rbp-4Ch] long long v6; // [rsp+8h] [rbp-48h] long long v7; // [rsp+10h] [rbp-40h] int v8; // [rsp+20h] [rbp-30h] int v9; // [rsp+24h] [rbp-2Ch] signed int v10; // [rsp+28h] [rbp-28h] int v11; // [rsp+2Ch] [rbp-24h] int v12; // [rsp+30h] [rbp-20h] int v13; // [rsp+34h] [rbp-1Ch] _QWORD *v14; // [rsp+38h] [rbp-18h] v14 = *(_QWORD **)(a2 + 152); if ( (ggml_is_contiguous(v14) & 1) == 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 7997LL, "GGML_ASSERT(%s) failed", "ggml_is_contiguous(src0)"); if ( (ggml_is_contiguous(a2) & 1) == 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 7998LL, "GGML_ASSERT(%s) failed", "ggml_is_contiguous(dst)"); if ( (ggml_are_same_shape(v14, a2) & 1) == 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 7999LL, "GGML_ASSERT(%s) failed", "ggml_are_same_shape(src0, dst)"); v13 = *(_DWORD *)(a2 + 84); v12 = *a1; v11 = a1[1]; v10 = v14[2]; v9 = ggml_nrows(v14); v8 = (v11 + v9 - 1) / v11; if ( v8 + v12 * v8 >= v9 ) v4 = v9; else v4 = v8 + v12 * v8; v7 = v14[7]; v6 = *(_QWORD *)(a2 + 56); for ( i = v12 * v8; ; ++i ) { result = (unsigned int)i; if ( i >= v4 ) break; if ( *(_QWORD *)(a2 + 248) != v14[31] ) memcpy(v6 * i + *(_QWORD *)(a2 + 248), v7 * i + v14[31], 4LL * v10); __asm { vmovss xmm0, [rbp+var_1C] } ggml_vec_scale_f32(v10, v6 * i + *(_QWORD *)(a2 + 248), _XMM0); } return result; }
ggml_compute_forward_scale_f32: PUSH RBP MOV RBP,RSP SUB RSP,0x50 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 RDI,qword ptr [RBP + -0x18] CALL 0x0010d280 TEST AL,0x1 JNZ 0x0012baad LEA RDI,[0x173b62] MOV ESI,0x1f3d LEA RDX,[0x173bc1] LEA RCX,[0x174282] MOV AL,0x0 CALL 0x0010e270 LAB_0012baad: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0010d280 TEST AL,0x1 JNZ 0x0012badb LEA RDI,[0x173b62] MOV ESI,0x1f3e LEA RDX,[0x173bc1] LEA RCX,[0x174f94] MOV AL,0x0 CALL 0x0010e270 LAB_0012badb: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0010e260 TEST AL,0x1 JNZ 0x0012bb0d LEA RDI,[0x173b62] MOV ESI,0x1f3f LEA RDX,[0x173bc1] LEA RCX,[0x1742ba] MOV AL,0x0 CALL 0x0010e270 LAB_0012bb0d: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x54] MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV dword ptr [RBP + -0x28],EAX MOV RDI,qword ptr [RBP + -0x18] CALL 0x0010dc20 MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,dword ptr [RBP + -0x24] SUB EAX,0x1 CDQ IDIV dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x30],EAX MOV EAX,dword ptr [RBP + -0x30] IMUL EAX,dword ptr [RBP + -0x20] MOV dword ptr [RBP + -0x34],EAX MOV EAX,dword ptr [RBP + -0x34] ADD EAX,dword ptr [RBP + -0x30] CMP EAX,dword ptr [RBP + -0x2c] JGE 0x0012bb71 MOV EAX,dword ptr [RBP + -0x34] ADD EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x50],EAX JMP 0x0012bb77 LAB_0012bb71: MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x50],EAX LAB_0012bb77: MOV EAX,dword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x38],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RBP + -0x48],RAX MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x4c],EAX LAB_0012bb9b: MOV EAX,dword ptr [RBP + -0x4c] CMP EAX,dword ptr [RBP + -0x38] JGE 0x0012bc2c MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xf8] MOV RCX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RCX + 0xf8] JZ 0x0012bbfa MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0xf8] MOVSXD RAX,dword ptr [RBP + -0x4c] IMUL RAX,qword ptr [RBP + -0x48] ADD RDI,RAX MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + 0xf8] MOVSXD RAX,dword ptr [RBP + -0x4c] IMUL RAX,qword ptr [RBP + -0x40] ADD RSI,RAX MOVSXD RDX,dword ptr [RBP + -0x28] SHL RDX,0x2 CALL 0x0010d8a0 LAB_0012bbfa: MOV EDI,dword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0xf8] MOVSXD RAX,dword ptr [RBP + -0x4c] IMUL RAX,qword ptr [RBP + -0x48] ADD RSI,RAX VMOVSS XMM0,dword ptr [RBP + -0x1c] CALL 0x00128860 MOV EAX,dword ptr [RBP + -0x4c] ADD EAX,0x1 MOV dword ptr [RBP + -0x4c],EAX JMP 0x0012bb9b LAB_0012bc2c: ADD RSP,0x50 POP RBP RET
void ggml_compute_forward_scale_f32(int *param_1,long param_2) { int4 uVar1; long lVar2; long lVar3; long lVar4; int iVar5; int iVar6; ulong uVar7; int local_58; int local_54; lVar2 = *(long *)(param_2 + 0x98); uVar7 = ggml_is_contiguous(lVar2); if ((uVar7 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x1f3d,"GGML_ASSERT(%s) failed","ggml_is_contiguous(src0)"); } uVar7 = ggml_is_contiguous(param_2); if ((uVar7 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x1f3e,"GGML_ASSERT(%s) failed","ggml_is_contiguous(dst)"); } uVar7 = ggml_are_same_shape(lVar2,param_2); if ((uVar7 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,7999,"GGML_ASSERT(%s) failed","ggml_are_same_shape(src0, dst)"); } uVar1 = *(int4 *)(param_2 + 0x54); local_54 = *param_1; iVar6 = param_1[1]; iVar5 = (int)*(int8 *)(lVar2 + 0x10); local_58 = ggml_nrows(lVar2); iVar6 = (local_58 + iVar6 + -1) / iVar6; local_54 = iVar6 * local_54; if (local_54 + iVar6 < local_58) { local_58 = local_54 + iVar6; } lVar3 = *(long *)(lVar2 + 0x38); lVar4 = *(long *)(param_2 + 0x38); for (; local_54 < local_58; local_54 = local_54 + 1) { if (*(long *)(param_2 + 0xf8) != *(long *)(lVar2 + 0xf8)) { memcpy((void *)(*(long *)(param_2 + 0xf8) + local_54 * lVar4), (void *)(*(long *)(lVar2 + 0xf8) + local_54 * lVar3),(long)iVar5 << 2); } ggml_vec_scale_f32(uVar1,iVar5,*(long *)(param_2 + 0xf8) + local_54 * lVar4); } return; }
3,820
compile_range_expr
fabiosvm[P]rak/src/compiler.c
static inline void compile_range_expr(RakCompiler *comp, RakError *err) { compile_add_expr(comp, err); if (!rak_is_ok(err)) return; if (!match(comp, RAK_TOKEN_KIND_DOTDOT)) return; next(comp, err); compile_add_expr(comp, err); if (!rak_is_ok(err)) return; emit_instr(comp, rak_new_range_instr(), err); }
O2
c
compile_range_expr: pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 callq 0x4550 cmpb $0x1, (%rbx) jne 0x4548 cmpl $0x15, 0x2810(%r14) jne 0x4548 leaq 0x27f8(%r14), %rdi movq %rbx, %rsi callq 0x5512 cmpb $0x1, (%rbx) jne 0x4548 movq %r14, %rdi movq %rbx, %rsi callq 0x4550 cmpb $0x1, (%rbx) jne 0x4548 pushq $0xa popq %rsi movq %r14, %rdi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r14 jmp 0x3306 addq $0x8, %rsp popq %rbx popq %r14 retq
compile_range_expr: push r14 push rbx push rax mov rbx, rsi mov r14, rdi call compile_add_expr cmp byte ptr [rbx], 1 jnz short loc_4548 cmp dword ptr [r14+2810h], 15h jnz short loc_4548 lea rdi, [r14+27F8h] mov rsi, rbx call rak_lexer_next cmp byte ptr [rbx], 1 jnz short loc_4548 mov rdi, r14 mov rsi, rbx call compile_add_expr cmp byte ptr [rbx], 1 jnz short loc_4548 push 0Ah pop rsi mov rdi, r14 mov rdx, rbx add rsp, 8 pop rbx pop r14 jmp rak_chunk_append_instr loc_4548: add rsp, 8 pop rbx pop r14 retn
long long compile_range_expr(long long a1, char *a2) { long long result; // rax int v3; // ecx int v4; // r8d int v5; // r9d result = compile_add_expr(a1); if ( *a2 == 1 && *(_DWORD *)(a1 + 10256) == 21 ) { result = rak_lexer_next(a1 + 10232, a2); if ( *a2 == 1 ) { result = compile_add_expr(a1); if ( *a2 == 1 ) return rak_chunk_append_instr(a1, 10, a2, v3, v4, v5); } } return result; }
compile_range_expr: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI CALL 0x00104550 CMP byte ptr [RBX],0x1 JNZ 0x00104548 CMP dword ptr [R14 + 0x2810],0x15 JNZ 0x00104548 LEA RDI,[R14 + 0x27f8] MOV RSI,RBX CALL 0x00105512 CMP byte ptr [RBX],0x1 JNZ 0x00104548 MOV RDI,R14 MOV RSI,RBX CALL 0x00104550 CMP byte ptr [RBX],0x1 JNZ 0x00104548 PUSH 0xa POP RSI MOV RDI,R14 MOV RDX,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00103306 LAB_00104548: ADD RSP,0x8 POP RBX POP R14 RET
void compile_range_expr(long param_1,char *param_2) { compile_add_expr(); if ((*param_2 == '\x01') && (*(int *)(param_1 + 0x2810) == 0x15)) { rak_lexer_next(param_1 + 0x27f8,param_2); if (*param_2 == '\x01') { compile_add_expr(param_1,param_2); if (*param_2 == '\x01') { rak_chunk_append_instr(param_1,10,param_2); return; } } } return; }
3,821
Type_handler_mysql_json::make_table_field(st_mem_root*, st_mysql_const_lex_string const*, Record_addr const&, Type_all_attributes const&, TABLE_SHARE*) const
eloqsql/plugin/type_mysql_json/type.cc
Field *Type_handler_mysql_json::make_table_field(MEM_ROOT *root, const LEX_CSTRING *name, const Record_addr &addr, const Type_all_attributes &attr, TABLE_SHARE *share) const { return new (root) Field_mysql_json(addr.ptr(), addr.null_ptr(), addr.null_bit(), Field::NONE, name, share, 2, attr.collation); }
O0
cpp
Type_handler_mysql_json::make_table_field(st_mem_root*, st_mysql_const_lex_string const*, Record_addr const&, Type_all_attributes const&, TABLE_SHARE*) const: pushq %rbp movq %rsp, %rbp subq $0x90, %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 -0x10(%rbp), %rsi movq %rsi, -0x60(%rbp) movl $0x120, %edi # imm = 0x120 callq 0xf200 movq %rax, %rcx movq %rcx, -0x58(%rbp) movb $0x0, -0x31(%rbp) xorl %eax, %eax cmpq $0x0, %rcx movq %rax, -0x50(%rbp) je 0x11653 movb $0x1, -0x31(%rbp) movq -0x20(%rbp), %rdi callq 0xf670 movq %rax, -0x68(%rbp) jmp 0x115ef movq -0x20(%rbp), %rdi callq 0xf280 movq %rax, -0x70(%rbp) jmp 0x115fe movq -0x20(%rbp), %rdi callq 0xf3f0 movb %al, -0x71(%rbp) jmp 0x1160c movq -0x70(%rbp), %rdx movq -0x68(%rbp), %rsi movq -0x58(%rbp), %rdi movb -0x71(%rbp), %al movq -0x18(%rbp), %r9 movq -0x30(%rbp), %r8 movq -0x28(%rbp), %r10 addq $0x10, %r10 movq %rsp, %rcx movq %r10, 0x10(%rcx) movq %r8, (%rcx) movl $0x2, 0x8(%rcx) movzbl %al, %ecx xorl %r8d, %r8d callq 0xf710 jmp 0x11649 movq -0x58(%rbp), %rax movq %rax, -0x50(%rbp) jmp 0x11653 movq -0x50(%rbp), %rax addq $0x90, %rsp popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) testb $0x1, -0x31(%rbp) jne 0x11674 jmp 0x11681 movq -0x60(%rbp), %rsi movq -0x58(%rbp), %rdi callq 0xf410 jmp 0x11683 movq -0x40(%rbp), %rdi callq 0xf7c0 nopl (%rax)
_ZNK23Type_handler_mysql_json16make_table_fieldEP11st_mem_rootPK25st_mysql_const_lex_stringRK11Record_addrRK19Type_all_attributesP11TABLE_SHARE: push rbp mov rbp, rsp sub rsp, 90h 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 rsi, [rbp+var_10] mov [rbp+var_60], rsi mov edi, 120h call __ZN5FieldnwEmP11st_mem_root; Field::operator new(ulong,st_mem_root *) mov rcx, rax mov [rbp+var_58], rcx mov [rbp+var_31], 0 xor eax, eax cmp rcx, 0 mov [rbp+var_50], rax jz short loc_11653 mov [rbp+var_31], 1 mov rdi, [rbp+var_20]; this call __ZNK11Record_addr3ptrEv; Record_addr::ptr(void) mov [rbp+var_68], rax jmp short $+2 loc_115EF: mov rdi, [rbp+var_20]; this call __ZNK11Record_addr8null_ptrEv; Record_addr::null_ptr(void) mov [rbp+var_70], rax jmp short $+2 loc_115FE: mov rdi, [rbp+var_20]; this call __ZNK11Record_addr8null_bitEv; Record_addr::null_bit(void) mov [rbp+var_71], al jmp short $+2 loc_1160C: mov rdx, [rbp+var_70] mov rsi, [rbp+var_68] mov rdi, [rbp+var_58] mov al, [rbp+var_71] mov r9, [rbp+var_18] mov r8, [rbp+var_30] mov r10, [rbp+var_28] add r10, 10h mov rcx, rsp mov [rcx+10h], r10 mov [rcx], r8 mov dword ptr [rcx+8], 2 movzx ecx, al xor r8d, r8d call __ZN16Field_mysql_jsonC2EPhS0_hN5Field5utypeEPK25st_mysql_const_lex_stringP11TABLE_SHAREjRK11DTCollation; Field_mysql_json::Field_mysql_json(uchar *,uchar *,uchar,Field::utype,st_mysql_const_lex_string const*,TABLE_SHARE *,uint,DTCollation const&) jmp short $+2 loc_11649: mov rax, [rbp+var_58] mov [rbp+var_50], rax jmp short $+2 loc_11653: mov rax, [rbp+var_50] add rsp, 90h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax test [rbp+var_31], 1 jnz short loc_11674 jmp short loc_11681 loc_11674: mov rsi, [rbp+var_60] mov rdi, [rbp+var_58] call __ZN5FielddlEPvP11st_mem_root; Field::operator delete(void *,st_mem_root *) loc_11681: jmp short $+2 loc_11683: mov rdi, [rbp+var_40] call __Unwind_Resume
long long Type_handler_mysql_json::make_table_field( long long a1, long long a2, int a3, Record_addr *a4, long long a5, long long a6) { unsigned __int8 v7; // [rsp+1Fh] [rbp-71h] int v8; // [rsp+20h] [rbp-70h] int v9; // [rsp+28h] [rbp-68h] long long v10; // [rsp+38h] [rbp-58h] long long v11; // [rsp+40h] [rbp-50h] v10 = Field::operator new(288LL); v11 = 0LL; if ( v10 ) { v9 = Record_addr::ptr(a4); v8 = Record_addr::null_ptr(a4); v7 = Record_addr::null_bit(a4); Field_mysql_json::Field_mysql_json(v10, v9, v8, v7, 0, a3, a6, 2, a5 + 16); return v10; } return v11; }
make_table_field: PUSH RBP MOV RBP,RSP SUB RSP,0x90 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 RSI,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x60],RSI MOV EDI,0x120 CALL 0x0010f200 MOV RCX,RAX MOV qword ptr [RBP + -0x58],RCX MOV byte ptr [RBP + -0x31],0x0 XOR EAX,EAX CMP RCX,0x0 MOV qword ptr [RBP + -0x50],RAX JZ 0x00111653 MOV byte ptr [RBP + -0x31],0x1 MOV RDI,qword ptr [RBP + -0x20] LAB_001115e4: CALL 0x0010f670 MOV qword ptr [RBP + -0x68],RAX JMP 0x001115ef LAB_001115ef: MOV RDI,qword ptr [RBP + -0x20] CALL 0x0010f280 MOV qword ptr [RBP + -0x70],RAX JMP 0x001115fe LAB_001115fe: MOV RDI,qword ptr [RBP + -0x20] CALL 0x0010f3f0 MOV byte ptr [RBP + -0x71],AL JMP 0x0011160c LAB_0011160c: MOV RDX,qword ptr [RBP + -0x70] MOV RSI,qword ptr [RBP + -0x68] MOV RDI,qword ptr [RBP + -0x58] MOV AL,byte ptr [RBP + -0x71] MOV R9,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x30] MOV R10,qword ptr [RBP + -0x28] ADD R10,0x10 MOV RCX,RSP MOV qword ptr [RCX + 0x10],R10 MOV qword ptr [RCX],R8 MOV dword ptr [RCX + 0x8],0x2 MOVZX ECX,AL XOR R8D,R8D CALL 0x0010f710 LAB_00111647: JMP 0x00111649 LAB_00111649: MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x50],RAX JMP 0x00111653 LAB_00111653: MOV RAX,qword ptr [RBP + -0x50] ADD RSP,0x90 POP RBP RET
/* Type_handler_mysql_json::make_table_field(st_mem_root*, st_mysql_const_lex_string const*, Record_addr const&, Type_all_attributes const&, TABLE_SHARE*) const */ Field_mysql_json * __thiscall Type_handler_mysql_json::make_table_field (Type_handler_mysql_json *this,st_mem_root *param_1,st_mysql_const_lex_string *param_2, Record_addr *param_3,Type_all_attributes *param_4,TABLE_SHARE *param_5) { int1 uVar1; Field_mysql_json *pFVar2; int8 uVar3; int8 uVar4; Field_mysql_json *local_58; pFVar2 = (Field_mysql_json *)Field::operator_new(0x120,param_1); local_58 = (Field_mysql_json *)0x0; if (pFVar2 != (Field_mysql_json *)0x0) { /* try { // try from 001115e4 to 00111646 has its CatchHandler @ 00111660 */ uVar3 = Record_addr::ptr(param_3); uVar4 = Record_addr::null_ptr(param_3); uVar1 = Record_addr::null_bit(param_3); Field_mysql_json::Field_mysql_json(pFVar2,uVar3,uVar4,uVar1,0,param_2,param_5,2,param_4 + 0x10); local_58 = pFVar2; } return local_58; }
3,822
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 0x51dc0 movq -0x18(%rbp), %rax leaq 0xf2115(%rip), %rcx # 0x143e64 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x2bf2d(%rip), %rax # 0x7dc8c movq %rax, -0x8(%rbp) jmp 0x51dc8 leaq 0x2bf24(%rip), %rax # 0x7dc90 movq %rax, -0x8(%rbp) jmp 0x51dc8 leaq 0x2c2a1(%rip), %rax # 0x7e01a movq %rax, -0x8(%rbp) jmp 0x51dc8 leaq 0x2bf10(%rip), %rax # 0x7dc96 movq %rax, -0x8(%rbp) jmp 0x51dc8 leaq 0x2bf0d(%rip), %rax # 0x7dca0 movq %rax, -0x8(%rbp) jmp 0x51dc8 leaq 0x2a5de(%rip), %rax # 0x7c37e movq %rax, -0x8(%rbp) jmp 0x51dc8 leaq 0x2bf02(%rip), %rax # 0x7dcaf movq %rax, -0x8(%rbp) jmp 0x51dc8 leaq 0x2bef7(%rip), %rax # 0x7dcb1 movq %rax, -0x8(%rbp) jmp 0x51dc8 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_51D56; jumptable 0000000000051D56 default case, cases 2,3 mov rax, [rbp+var_18] lea rcx, jpt_51D56 movsxd rax, ds:(jpt_51D56 - 143E64h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_51D58: lea rax, aEof; jumptable 0000000000051D56 case 0 mov [rbp+var_8], rax jmp short loc_51DC8 loc_51D65: lea rax, aShift; jumptable 0000000000051D56 case 1 mov [rbp+var_8], rax jmp short loc_51DC8 loc_51D72: lea rax, asc_7E019+1; jumptable 0000000000051D56 case 4 mov [rbp+var_8], rax jmp short loc_51DC8 loc_51D7F: lea rax, aCharacter; jumptable 0000000000051D56 case 5 mov [rbp+var_8], rax jmp short loc_51DC8 loc_51D8C: lea rax, aBracketOption; jumptable 0000000000051D56 case 7 mov [rbp+var_8], rax jmp short loc_51DC8 loc_51D99: lea rax, unk_7C37E; jumptable 0000000000051D56 case 8 mov [rbp+var_8], rax jmp short loc_51DC8 loc_51DA6: lea rax, asc_7DCAF; jumptable 0000000000051D56 case 9 mov [rbp+var_8], rax jmp short loc_51DC8 loc_51DB3: lea rax, aError; jumptable 0000000000051D56 case 6 mov [rbp+var_8], rax jmp short loc_51DC8 def_51D56: mov [rbp+var_8], 0; jumptable 0000000000051D56 default case, cases 2,3 loc_51DC8: 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_7C37E; 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 0x00151dc0 MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x243e64] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RAX,[0x17dc8c] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151dc8 caseD_1: LEA RAX,[0x17dc90] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151dc8 caseD_4: LEA RAX,[0x17e01a] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151dc8 caseD_5: LEA RAX,[0x17dc96] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151dc8 caseD_7: LEA RAX,[0x17dca0] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151dc8 caseD_8: LEA RAX,[0x17c37e] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151dc8 caseD_9: LEA RAX,[0x17dcaf] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151dc8 caseD_6: LEA RAX,[0x17dcb1] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151dc8 caseD_2: MOV qword ptr [RBP + -0x8],0x0 LAB_00151dc8: 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; }
3,823
clip_image_encode
monkey531[P]llama/examples/llava/clip.cpp
bool clip_image_encode(struct clip_ctx * ctx, const int n_threads, clip_image_f32 * img, float * vec) { if (!ctx->has_vision_encoder) { LOG_ERR("This gguf file seems to have no vision encoder\n"); return false; } clip_image_f32_batch imgs{}; imgs.size = 1; imgs.data = img; return clip_image_batch_encode(ctx, n_threads, &imgs, vec); }
O3
cpp
clip_image_encode: subq $0x18, %rsp cmpb $0x0, 0x1(%rdi) je 0x33ba8 leaq 0x8(%rsp), %rax movq $0x1, 0x8(%rax) movq %rdx, (%rax) movq %rax, %rdx callq 0x33bb1 addq $0x18, %rsp retq callq 0x1ee1f xorl %eax, %eax jmp 0x33ba3
clip_image_encode: sub rsp, 18h cmp byte ptr [rdi+1], 0 jz short loc_33BA8 lea rax, [rsp+18h+var_10] mov qword ptr [rax+8], 1 mov [rax], rdx mov rdx, rax call clip_image_batch_encode loc_33BA3: add rsp, 18h retn loc_33BA8: call clip_image_encode_cold_1 xor eax, eax jmp short loc_33BA3
long long clip_image_encode(long long a1, long long a2, long long a3) { _QWORD v4[2]; // [rsp+8h] [rbp-10h] BYREF if ( *(_BYTE *)(a1 + 1) ) { v4[1] = 1LL; v4[0] = a3; return clip_image_batch_encode(a1, a2, v4); } else { clip_image_encode_cold_1(); return 0LL; } }
clip_image_encode: SUB RSP,0x18 CMP byte ptr [RDI + 0x1],0x0 JZ 0x00133ba8 LEA RAX,[RSP + 0x8] MOV qword ptr [RAX + 0x8],0x1 MOV qword ptr [RAX],RDX MOV RDX,RAX CALL 0x00133bb1 LAB_00133ba3: ADD RSP,0x18 RET LAB_00133ba8: CALL 0x0011ee1f XOR EAX,EAX JMP 0x00133ba3
int8 clip_image_encode(long param_1,int8 param_2,int8 param_3) { int8 uVar1; int8 local_10; int8 local_8; if (*(char *)(param_1 + 1) == '\0') { clip_image_encode_cold_1(); uVar1 = 0; } else { local_8 = 1; local_10 = param_3; uVar1 = clip_image_batch_encode(param_1,param_2,&local_10); } return uVar1; }
3,824
js_os_sleep
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_sleep(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int64_t delay; int ret; if (JS_ToInt64(ctx, &delay, argv[0])) return JS_EXCEPTION; if (delay < 0) delay = 0; #if defined(_WIN32) { if (delay > INT32_MAX) delay = INT32_MAX; Sleep(delay); ret = 0; } #else { struct timespec ts; ts.tv_sec = delay / 1000; ts.tv_nsec = (delay % 1000) * 1000000; ret = js_get_errno(nanosleep(&ts, NULL)); } #endif return JS_NewInt32(ctx, ret); }
O0
c
js_os_sleep: subq $0x88, %rsp movq %rsi, 0x48(%rsp) movq %rdx, 0x50(%rsp) movq %rdi, 0x40(%rsp) movl %ecx, 0x3c(%rsp) movq %r8, 0x30(%rsp) movq 0x40(%rsp), %rdi movq 0x30(%rsp), %rax movq (%rax), %rdx movq 0x8(%rax), %rcx leaq 0x28(%rsp), %rsi callq 0x37930 cmpl $0x0, %eax je 0x1a075 movl $0x0, 0x58(%rsp) movq $0x6, 0x60(%rsp) jmp 0x1a13e cmpq $0x0, 0x28(%rsp) jge 0x1a086 movq $0x0, 0x28(%rsp) movq 0x28(%rsp), %rax movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF imulq %rcx movq %rdx, %rax movq %rax, %rdx shrq $0x3f, %rdx sarq $0x7, %rax addq %rdx, %rax movq %rax, 0x10(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x8(%rsp) imulq %rcx movq 0x8(%rsp), %rax movq %rdx, %rcx movq %rcx, %rdx shrq $0x3f, %rdx sarq $0x7, %rcx addq %rdx, %rcx imulq $0x3e8, %rcx, %rcx # imm = 0x3E8 subq %rcx, %rax imulq $0xf4240, %rax, %rax # imm = 0xF4240 movq %rax, 0x18(%rsp) xorl %eax, %eax movl %eax, %esi leaq 0x10(%rsp), %rdi callq 0xe2f0 movslq %eax, %rdi callq 0x12790 movl %eax, 0x24(%rsp) movq 0x40(%rsp), %rcx movl 0x24(%rsp), %eax movq %rcx, 0x70(%rsp) movl %eax, 0x6c(%rsp) movl 0x6c(%rsp), %eax movl %eax, 0x78(%rsp) movq $0x0, 0x80(%rsp) movq 0x78(%rsp), %rcx movq 0x80(%rsp), %rax movq %rcx, 0x58(%rsp) movq %rax, 0x60(%rsp) movq 0x58(%rsp), %rax movq 0x60(%rsp), %rdx addq $0x88, %rsp retq
js_os_sleep: sub rsp, 88h mov [rsp+88h+var_40], rsi mov [rsp+88h+var_38], rdx mov [rsp+88h+var_48], rdi mov [rsp+88h+var_4C], ecx mov [rsp+88h+var_58], r8 mov rdi, [rsp+88h+var_48] mov rax, [rsp+88h+var_58] mov rdx, [rax] mov rcx, [rax+8] lea rsi, [rsp+88h+var_60] call JS_ToInt64 cmp eax, 0 jz short loc_1A075 mov dword ptr [rsp+88h+var_30], 0 mov [rsp+88h+var_28], 6 jmp loc_1A13E loc_1A075: cmp [rsp+88h+var_60], 0 jge short loc_1A086 mov [rsp+88h+var_60], 0 loc_1A086: mov rax, [rsp+88h+var_60] mov rcx, 20C49BA5E353F7CFh imul rcx mov rax, rdx mov rdx, rax shr rdx, 3Fh sar rax, 7 add rax, rdx mov [rsp+88h+var_78], rax mov rax, [rsp+88h+var_60] mov [rsp+88h+var_80], rax imul rcx mov rax, [rsp+88h+var_80] mov rcx, rdx mov rdx, rcx shr rdx, 3Fh sar rcx, 7 add rcx, rdx imul rcx, 3E8h sub rax, rcx imul rax, 0F4240h mov [rsp+88h+var_70], rax xor eax, eax mov esi, eax lea rdi, [rsp+88h+var_78] call _nanosleep movsxd rdi, eax call js_get_errno mov [rsp+88h+var_64], eax mov rcx, [rsp+88h+var_48] mov eax, [rsp+88h+var_64] mov [rsp+88h+var_18], rcx mov [rsp+88h+var_1C], eax mov eax, [rsp+88h+var_1C] mov dword ptr [rsp+88h+var_10], eax mov [rsp+88h+var_8], 0 mov rcx, [rsp+88h+var_10] mov rax, [rsp+88h+var_8] mov [rsp+88h+var_30], rcx mov [rsp+88h+var_28], rax loc_1A13E: mov rax, [rsp+88h+var_30] mov rdx, [rsp+88h+var_28] add rsp, 88h retn
long long js_os_sleep(long long a1, long long a2, long long a3, int a4, _QWORD *a5) { int v5; // eax _QWORD v7[2]; // [rsp+10h] [rbp-78h] BYREF int errno; // [rsp+24h] [rbp-64h] _QWORD v9[2]; // [rsp+28h] [rbp-60h] BYREF int v10; // [rsp+3Ch] [rbp-4Ch] long long v11; // [rsp+40h] [rbp-48h] long long v12; // [rsp+48h] [rbp-40h] long long v13; // [rsp+50h] [rbp-38h] long long v14; // [rsp+58h] [rbp-30h] long long v15; // [rsp+60h] [rbp-28h] int v16; // [rsp+6Ch] [rbp-1Ch] long long v17; // [rsp+70h] [rbp-18h] long long v18; // [rsp+78h] [rbp-10h] long long v19; // [rsp+80h] [rbp-8h] v12 = a2; v13 = a3; v11 = a1; v10 = a4; v9[1] = a5; if ( (unsigned int)JS_ToInt64(a1, v9, *a5, a5[1]) ) { LODWORD(v14) = 0; v15 = 6LL; } else { if ( v9[0] < 0LL ) v9[0] = 0LL; v7[0] = v9[0] / 1000LL; v7[1] = 1000000 * (v9[0] % 1000LL); v5 = nanosleep(v7, 0LL); errno = js_get_errno(v5); v17 = v11; v16 = errno; LODWORD(v18) = errno; v19 = 0LL; v14 = v18; v15 = 0LL; } return v14; }
js_os_sleep: SUB RSP,0x88 MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RSP + 0x40],RDI MOV dword ptr [RSP + 0x3c],ECX MOV qword ptr [RSP + 0x30],R8 MOV RDI,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x28] CALL 0x00137930 CMP EAX,0x0 JZ 0x0011a075 MOV dword ptr [RSP + 0x58],0x0 MOV qword ptr [RSP + 0x60],0x6 JMP 0x0011a13e LAB_0011a075: CMP qword ptr [RSP + 0x28],0x0 JGE 0x0011a086 MOV qword ptr [RSP + 0x28],0x0 LAB_0011a086: MOV RAX,qword ptr [RSP + 0x28] MOV RCX,0x20c49ba5e353f7cf IMUL RCX MOV RAX,RDX MOV RDX,RAX SHR RDX,0x3f SAR RAX,0x7 ADD RAX,RDX MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x8],RAX IMUL RCX MOV RAX,qword ptr [RSP + 0x8] MOV RCX,RDX MOV RDX,RCX SHR RDX,0x3f SAR RCX,0x7 ADD RCX,RDX IMUL RCX,RCX,0x3e8 SUB RAX,RCX IMUL RAX,RAX,0xf4240 MOV qword ptr [RSP + 0x18],RAX XOR EAX,EAX MOV ESI,EAX LEA RDI,[RSP + 0x10] CALL 0x0010e2f0 MOVSXD RDI,EAX CALL 0x00112790 MOV dword ptr [RSP + 0x24],EAX MOV RCX,qword ptr [RSP + 0x40] MOV EAX,dword ptr [RSP + 0x24] MOV qword ptr [RSP + 0x70],RCX MOV dword ptr [RSP + 0x6c],EAX MOV EAX,dword ptr [RSP + 0x6c] MOV dword ptr [RSP + 0x78],EAX MOV qword ptr [RSP + 0x80],0x0 MOV RCX,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x58],RCX MOV qword ptr [RSP + 0x60],RAX LAB_0011a13e: MOV RAX,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x60] ADD RSP,0x88 RET
int1 [16] js_os_sleep(int8 param_1,int8 param_2,int8 param_3,int4 param_4, int8 *param_5) { int1 auVar1 [16]; int iVar2; timespec local_78; long local_60; int8 *local_58; int4 local_4c; int8 local_48; int8 local_40; int8 local_38; int4 local_30; int4 uStack_2c; int8 local_28; int4 uStack_c; local_58 = param_5; local_4c = param_4; local_48 = param_1; local_40 = param_2; local_38 = param_3; iVar2 = JS_ToInt64(param_1,&local_60,*param_5,param_5[1]); if (iVar2 == 0) { if (local_60 < 0) { local_60 = 0; } local_78.tv_sec = local_60 / 1000; local_78.tv_nsec = (local_60 % 1000) * 1000000; iVar2 = nanosleep(&local_78,(timespec *)0x0); local_30 = js_get_errno((long)iVar2); uStack_2c = uStack_c; local_28 = 0; } else { local_30 = 0; local_28 = 6; } auVar1._4_4_ = uStack_2c; auVar1._0_4_ = local_30; auVar1._8_8_ = local_28; return auVar1; }
3,825
js_os_sleep
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_sleep(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int64_t delay; int ret; if (JS_ToInt64(ctx, &delay, argv[0])) return JS_EXCEPTION; if (delay < 0) delay = 0; #if defined(_WIN32) { if (delay > INT32_MAX) delay = INT32_MAX; Sleep(delay); ret = 0; } #else { struct timespec ts; ts.tv_sec = delay / 1000; ts.tv_nsec = (delay % 1000) * 1000000; ret = js_get_errno(nanosleep(&ts, NULL)); } #endif return JS_NewInt32(ctx, ret); }
O1
c
js_os_sleep: pushq %rbx subq $0x20, %rsp movq (%r8), %rdx movq 0x8(%r8), %rcx leaq 0x8(%rsp), %rsi callq 0x26ca0 testl %eax, %eax je 0x19185 movl $0x6, %edx xorl %eax, %eax jmp 0x191f1 cmpq $0x0, 0x8(%rsp) jns 0x19196 movq $0x0, 0x8(%rsp) movq 0x8(%rsp), %rcx movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF movq %rcx, %rax imulq %rdx movq %rdx, %rax shrq $0x3f, %rax sarq $0x7, %rdx addq %rax, %rdx leaq 0x10(%rsp), %rdi movq %rdx, (%rdi) imulq $0x3e8, %rdx, %rax # imm = 0x3E8 subq %rax, %rcx imulq $0xf4240, %rcx, %rax # imm = 0xF4240 movq %rax, 0x8(%rdi) xorl %ebx, %ebx xorl %esi, %esi callq 0xe2f0 cmpl $-0x1, %eax jne 0x191ed callq 0xe0b0 subl (%rax), %ebx movl %ebx, %eax movl %eax, %eax xorl %edx, %edx addq $0x20, %rsp popq %rbx retq
js_os_sleep: push rbx sub rsp, 20h mov rdx, [r8] mov rcx, [r8+8] lea rsi, [rsp+28h+var_20] call JS_ToInt64 test eax, eax jz short loc_19185 mov edx, 6 xor eax, eax jmp short loc_191F1 loc_19185: cmp [rsp+28h+var_20], 0 jns short loc_19196 mov [rsp+28h+var_20], 0 loc_19196: mov rcx, [rsp+28h+var_20] mov rdx, 20C49BA5E353F7CFh mov rax, rcx imul rdx mov rax, rdx shr rax, 3Fh sar rdx, 7 add rdx, rax lea rdi, [rsp+28h+var_18] mov [rdi], rdx imul rax, rdx, 3E8h sub rcx, rax imul rax, rcx, 0F4240h mov [rdi+8], rax xor ebx, ebx xor esi, esi call _nanosleep cmp eax, 0FFFFFFFFh jnz short loc_191ED call ___errno_location sub ebx, [rax] mov eax, ebx loc_191ED: mov eax, eax xor edx, edx loc_191F1: add rsp, 20h pop rbx retn
long long js_os_sleep(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { long long result; // rax long long v6; // [rsp+8h] [rbp-20h] BYREF _QWORD v7[3]; // [rsp+10h] [rbp-18h] BYREF if ( (unsigned int)JS_ToInt64(a1, &v6, *a5, a5[1]) ) return 0LL; if ( v6 < 0 ) v6 = 0LL; v7[0] = v6 / 1000; v7[1] = 1000000 * (v6 % 1000); LODWORD(result) = nanosleep(v7, 0LL); if ( (_DWORD)result == -1 ) LODWORD(result) = -*(_DWORD *)__errno_location(v7); return (unsigned int)result; }
js_os_sleep: PUSH RBX SUB RSP,0x20 MOV RDX,qword ptr [R8] MOV RCX,qword ptr [R8 + 0x8] LEA RSI,[RSP + 0x8] CALL 0x00126ca0 TEST EAX,EAX JZ 0x00119185 MOV EDX,0x6 XOR EAX,EAX JMP 0x001191f1 LAB_00119185: CMP qword ptr [RSP + 0x8],0x0 JNS 0x00119196 MOV qword ptr [RSP + 0x8],0x0 LAB_00119196: MOV RCX,qword ptr [RSP + 0x8] MOV RDX,0x20c49ba5e353f7cf MOV RAX,RCX IMUL RDX MOV RAX,RDX SHR RAX,0x3f SAR RDX,0x7 ADD RDX,RAX LEA RDI,[RSP + 0x10] MOV qword ptr [RDI],RDX IMUL RAX,RDX,0x3e8 SUB RCX,RAX IMUL RAX,RCX,0xf4240 MOV qword ptr [RDI + 0x8],RAX XOR EBX,EBX XOR ESI,ESI CALL 0x0010e2f0 CMP EAX,-0x1 JNZ 0x001191ed CALL 0x0010e0b0 SUB EBX,dword ptr [RAX] MOV EAX,EBX LAB_001191ed: MOV EAX,EAX XOR EDX,EDX LAB_001191f1: ADD RSP,0x20 POP RBX RET
int js_os_sleep(int8 param_1) { int iVar1; int *piVar2; int8 *in_R8; long local_20; timespec local_18; iVar1 = JS_ToInt64(param_1,&local_20,*in_R8,in_R8[1]); if (iVar1 == 0) { if (local_20 < 0) { local_20 = 0; } local_18.tv_sec = local_20 / 1000; local_18.tv_nsec = (local_20 % 1000) * 1000000; iVar1 = nanosleep(&local_18,(timespec *)0x0); if (iVar1 == -1) { piVar2 = __errno_location(); iVar1 = -*piVar2; } } else { iVar1 = 0; } return iVar1; }
3,826
js_os_sleep
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_sleep(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int64_t delay; int ret; if (JS_ToInt64(ctx, &delay, argv[0])) return JS_EXCEPTION; if (delay < 0) delay = 0; #if defined(_WIN32) { if (delay > INT32_MAX) delay = INT32_MAX; Sleep(delay); ret = 0; } #else { struct timespec ts; ts.tv_sec = delay / 1000; ts.tv_nsec = (delay % 1000) * 1000000; ret = js_get_errno(nanosleep(&ts, NULL)); } #endif return JS_NewInt32(ctx, ret); }
O2
c
js_os_sleep: pushq %rbx subq $0x20, %rsp movq (%r8), %rdx movq 0x8(%r8), %rcx leaq 0x8(%rsp), %rsi callq 0x20982 testl %eax, %eax je 0x13c90 pushq $0x6 popq %rbx xorl %eax, %eax jmp 0x13cd2 movq 0x8(%rsp), %rax testq %rax, %rax jns 0x13ca2 andq $0x0, 0x8(%rsp) xorl %eax, %eax movl $0x3e8, %ecx # imm = 0x3E8 xorl %edx, %edx divq %rcx xorl %ebx, %ebx leaq 0x10(%rsp), %rdi movq %rax, (%rdi) imulq $0xf4240, %rdx, %rax # imm = 0xF4240 movq %rax, 0x8(%rdi) xorl %esi, %esi callq 0xe300 movslq %eax, %rdi callq 0x1082f movl %eax, %eax movq %rbx, %rdx addq $0x20, %rsp popq %rbx retq
js_os_sleep: push rbx sub rsp, 20h mov rdx, [r8] mov rcx, [r8+8] lea rsi, [rsp+28h+var_20] call JS_ToInt64 test eax, eax jz short loc_13C90 push 6 pop rbx xor eax, eax jmp short loc_13CD2 loc_13C90: mov rax, [rsp+28h+var_20] test rax, rax jns short loc_13CA2 and [rsp+28h+var_20], 0 xor eax, eax loc_13CA2: mov ecx, 3E8h xor edx, edx div rcx xor ebx, ebx lea rdi, [rsp+28h+var_18] mov [rdi], rax imul rax, rdx, 0F4240h mov [rdi+8], rax xor esi, esi call _nanosleep movsxd rdi, eax call js_get_errno mov eax, eax loc_13CD2: mov rdx, rbx add rsp, 20h pop rbx retn
long long js_os_sleep(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { unsigned long long v6; // rax int v7; // eax long long v8; // [rsp+8h] [rbp-20h] BYREF _QWORD v9[3]; // [rsp+10h] [rbp-18h] BYREF if ( (unsigned int)JS_ToInt64(a1, &v8, *a5, a5[1]) ) return 0LL; v6 = v8; if ( v8 < 0 ) { v8 = 0LL; v6 = 0LL; } v9[0] = v6 / 0x3E8; v9[1] = 1000000 * (v6 % 0x3E8); v7 = nanosleep(v9, 0LL); return (unsigned int)js_get_errno(v7); }
js_os_sleep: PUSH RBX SUB RSP,0x20 MOV RDX,qword ptr [R8] MOV RCX,qword ptr [R8 + 0x8] LEA RSI,[RSP + 0x8] CALL 0x00120982 TEST EAX,EAX JZ 0x00113c90 PUSH 0x6 POP RBX XOR EAX,EAX JMP 0x00113cd2 LAB_00113c90: MOV RAX,qword ptr [RSP + 0x8] TEST RAX,RAX JNS 0x00113ca2 AND qword ptr [RSP + 0x8],0x0 XOR EAX,EAX LAB_00113ca2: MOV ECX,0x3e8 XOR EDX,EDX DIV RCX XOR EBX,EBX LEA RDI,[RSP + 0x10] MOV qword ptr [RDI],RAX IMUL RAX,RDX,0xf4240 MOV qword ptr [RDI + 0x8],RAX XOR ESI,ESI CALL 0x0010e300 MOVSXD RDI,EAX CALL 0x0011082f MOV EAX,EAX LAB_00113cd2: MOV RDX,RBX ADD RSP,0x20 POP RBX RET
int4 js_os_sleep(int8 param_1) { int iVar1; int4 uVar2; int8 *in_R8; ulong local_20; timespec local_18; iVar1 = JS_ToInt64(param_1,&local_20,*in_R8,in_R8[1]); if (iVar1 == 0) { if ((long)local_20 < 0) { local_20 = 0; } local_18.tv_sec = local_20 / 1000; local_18.tv_nsec = (local_20 % 1000) * 1000000; iVar1 = nanosleep(&local_18,(timespec *)0x0); uVar2 = js_get_errno((long)iVar1); } else { uVar2 = 0; } return uVar2; }
3,827
js_os_sleep
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_sleep(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int64_t delay; int ret; if (JS_ToInt64(ctx, &delay, argv[0])) return JS_EXCEPTION; if (delay < 0) delay = 0; #if defined(_WIN32) { if (delay > INT32_MAX) delay = INT32_MAX; Sleep(delay); ret = 0; } #else { struct timespec ts; ts.tv_sec = delay / 1000; ts.tv_nsec = (delay % 1000) * 1000000; ret = js_get_errno(nanosleep(&ts, NULL)); } #endif return JS_NewInt32(ctx, ret); }
O3
c
js_os_sleep: pushq %rbx subq $0x20, %rsp movq (%r8), %rdx movq 0x8(%r8), %rcx leaq 0x8(%rsp), %rsi callq 0x27321 testl %eax, %eax je 0x19b64 movl $0x6, %edx xorl %eax, %eax jmp 0x19bc9 movq 0x8(%rsp), %rcx testq %rcx, %rcx jns 0x19b79 movq $0x0, 0x8(%rsp) xorl %ecx, %ecx movq %rcx, %rax shrq $0x3, %rax movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF mulq %rdx shrq $0x4, %rdx leaq 0x10(%rsp), %rdi movq %rdx, (%rdi) imulq $0x3e8, %rdx, %rax # imm = 0x3E8 subq %rax, %rcx imulq $0xf4240, %rcx, %rax # imm = 0xF4240 movq %rax, 0x8(%rdi) xorl %ebx, %ebx xorl %esi, %esi callq 0xe2f0 cmpl $-0x1, %eax jne 0x19bc5 callq 0xe0b0 subl (%rax), %ebx movl %ebx, %eax movl %eax, %eax xorl %edx, %edx addq $0x20, %rsp popq %rbx retq
js_os_sleep: push rbx sub rsp, 20h mov rdx, [r8] mov rcx, [r8+8] lea rsi, [rsp+28h+var_20] call JS_ToInt64 test eax, eax jz short loc_19B64 mov edx, 6 xor eax, eax jmp short loc_19BC9 loc_19B64: mov rcx, [rsp+28h+var_20] test rcx, rcx jns short loc_19B79 mov [rsp+28h+var_20], 0 xor ecx, ecx loc_19B79: mov rax, rcx shr rax, 3 mov rdx, 20C49BA5E353F7CFh mul rdx shr rdx, 4 lea rdi, [rsp+28h+var_18] mov [rdi], rdx imul rax, rdx, 3E8h sub rcx, rax imul rax, rcx, 0F4240h mov [rdi+8], rax xor ebx, ebx xor esi, esi call _nanosleep cmp eax, 0FFFFFFFFh jnz short loc_19BC5 call ___errno_location sub ebx, [rax] mov eax, ebx loc_19BC5: mov eax, eax xor edx, edx loc_19BC9: add rsp, 20h pop rbx retn
long long js_os_sleep(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { long long result; // rax unsigned long long v6; // rcx long long v7; // [rsp+8h] [rbp-20h] BYREF _QWORD v8[3]; // [rsp+10h] [rbp-18h] BYREF if ( (unsigned int)JS_ToInt64(a1, &v7, *a5, a5[1]) ) return 0LL; v6 = v7; if ( v7 < 0 ) { v7 = 0LL; v6 = 0LL; } v8[0] = v6 / 0x3E8; v8[1] = 1000000 * (v6 % 0x3E8); LODWORD(result) = nanosleep(v8, 0LL); if ( (_DWORD)result == -1 ) LODWORD(result) = -*(_DWORD *)__errno_location(v8); return (unsigned int)result; }
js_os_sleep: PUSH RBX SUB RSP,0x20 MOV RDX,qword ptr [R8] MOV RCX,qword ptr [R8 + 0x8] LEA RSI,[RSP + 0x8] CALL 0x00127321 TEST EAX,EAX JZ 0x00119b64 MOV EDX,0x6 XOR EAX,EAX JMP 0x00119bc9 LAB_00119b64: MOV RCX,qword ptr [RSP + 0x8] TEST RCX,RCX JNS 0x00119b79 MOV qword ptr [RSP + 0x8],0x0 XOR ECX,ECX LAB_00119b79: MOV RAX,RCX SHR RAX,0x3 MOV RDX,0x20c49ba5e353f7cf MUL RDX SHR RDX,0x4 LEA RDI,[RSP + 0x10] MOV qword ptr [RDI],RDX IMUL RAX,RDX,0x3e8 SUB RCX,RAX IMUL RAX,RCX,0xf4240 MOV qword ptr [RDI + 0x8],RAX XOR EBX,EBX XOR ESI,ESI CALL 0x0010e2f0 CMP EAX,-0x1 JNZ 0x00119bc5 CALL 0x0010e0b0 SUB EBX,dword ptr [RAX] MOV EAX,EBX LAB_00119bc5: MOV EAX,EAX XOR EDX,EDX LAB_00119bc9: ADD RSP,0x20 POP RBX RET
int js_os_sleep(int8 param_1) { int iVar1; int *piVar2; int8 *in_R8; ulong local_20; timespec local_18; iVar1 = JS_ToInt64(param_1,&local_20,*in_R8,in_R8[1]); if (iVar1 == 0) { if ((long)local_20 < 0) { local_20 = 0; } local_18.tv_sec = local_20 / 1000; local_18.tv_nsec = (local_20 % 1000) * 1000000; iVar1 = nanosleep(&local_18,(timespec *)0x0); if (iVar1 == -1) { piVar2 = __errno_location(); iVar1 = -*piVar2; } } else { iVar1 = 0; } return iVar1; }
3,828
js_iterator_from
bluesky950520[P]quickjs/quickjs.c
static JSValue js_iterator_from(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue obj, method, iter; JSIteratorWrapData *it; int ret; obj = argv[0]; if (JS_IsString(obj)) { method = JS_GetProperty(ctx, obj, JS_ATOM_Symbol_iterator); if (JS_IsException(method)) return JS_EXCEPTION; return JS_CallFree(ctx, method, obj, 0, NULL); } if (!JS_IsObject(obj)) return JS_ThrowTypeError(ctx, "Iterator.from called on non-object"); ret = JS_OrdinaryIsInstanceOf(ctx, obj, ctx->iterator_ctor); if (ret < 0) return JS_EXCEPTION; if (ret) return js_dup(obj); method = JS_GetProperty(ctx, obj, JS_ATOM_Symbol_iterator); if (JS_IsException(method)) return JS_EXCEPTION; if (JS_IsNull(method) || JS_IsUndefined(method)) { method = JS_GetProperty(ctx, obj, JS_ATOM_next); if (JS_IsException(method)) return JS_EXCEPTION; iter = JS_NewObjectClass(ctx, JS_CLASS_ITERATOR_WRAP); if (JS_IsException(iter)) goto fail; it = js_malloc(ctx, sizeof(*it)); if (!it) goto fail; it->wrapped_iter = js_dup(obj); it->wrapped_next = method; JS_SetOpaqueInternal(iter, it); } else { iter = JS_GetIterator2(ctx, obj, method); JS_FreeValue(ctx, method); if (JS_IsException(iter)) return JS_EXCEPTION; } return iter; fail: JS_FreeValue(ctx, method); JS_FreeValue(ctx, iter); return JS_EXCEPTION; }
O3
c
js_iterator_from: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r15 movq (%r8), %r14 movq 0x8(%r8), %r12 cmpl $-0x1, %r12d je 0x74ed5 cmpl $-0x7, %r12d jne 0x74f18 movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx movl $0xd4, %ecx movq %r14, %r8 movq %r12, %r9 pushq $0x0 pushq $0x0 callq 0x22c0f addq $0x10, %rsp cmpl $0x6, %edx jne 0x74f36 movl $0x6, %ebx jmp 0x750a7 movq 0x140(%r15), %rcx movq 0x148(%r15), %r8 movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx callq 0x22a1e movl $0x6, %ebx testl %eax, %eax js 0x750a7 je 0x74f6c incl (%r14) movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %r14, %rcx movq %r12, %rbx jmp 0x750ac leaq 0x2e60f(%rip), %rsi # 0xa352e xorl %r14d, %r14d movq %r15, %rdi xorl %eax, %eax callq 0x2214f movl $0x6, %ebx jmp 0x750aa subq $0x8, %rsp movq %r15, %rdi movq %rax, %rsi movq %r14, %rcx movq %r12, %r8 xorl %r9d, %r9d pushq $0x0 callq 0x228ab addq $0x10, %rsp movq %rax, %r14 movq %rdx, %rbx movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx jmp 0x750ac movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx movl $0xd4, %ecx movq %r14, %r8 movq %r12, %r9 pushq $0x0 pushq $0x0 callq 0x22c0f addq $0x10, %rsp movq %rax, %rbp leal -0x2(%rdx), %eax cmpl $0x2, %eax jae 0x75043 movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx movl $0x6b, %ecx movq %r14, %r8 movq %r12, %r9 pushq $0x0 pushq $0x0 callq 0x22c0f addq $0x10, %rsp movq %rdx, %rbp cmpl $0x6, %ebp je 0x750a7 movq %rax, %r13 movq 0x40(%r15), %rax movq 0x290(%rax), %rsi movq 0x298(%rax), %rdx movq %r15, %rdi movl $0x29, %ecx callq 0x20a15 movq %rax, %rsi cmpl $0x6, %edx jne 0x750c4 movq 0x18(%r15), %rdi cmpl $-0x9, %ebp jb 0x7502b movl (%r13), %eax leal -0x1(%rax), %ecx movl %ecx, (%r13) cmpl $0x1, %eax jg 0x7502b movq %rsi, %r12 movq %r13, %rsi movq %rdx, %r14 movq %rbp, %rdx callq 0x20d90 movq %r12, %rsi movq %r14, %rdx movq 0x18(%r15), %rdi cmpl $-0x9, %edx jb 0x750a7 movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x750a7 callq 0x20d90 jmp 0x750a7 movq %rdx, %r13 movl %r13d, %eax cmpl $0x6, %r13d jne 0x75059 xorl %r14d, %r14d xorl %ecx, %ecx movq %rax, %rbx jmp 0x750ac movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx movq %rbp, %rcx movq %r13, %r8 movq %rax, %r14 callq 0x4292f movq %rax, %rsi cmpl $-0x9, %r14d jb 0x750a2 movq 0x18(%r15), %rdi movl (%rbp), %eax leal -0x1(%rax), %ecx movl %ecx, (%rbp) cmpl $0x1, %eax jg 0x750a2 movq %rsi, %r15 movq %rbp, %rsi movq %rdx, %r14 movq %r13, %rdx callq 0x20d90 movq %r15, %rsi movq %r14, %rdx cmpl $0x6, %edx jne 0x7510a xorl %r14d, %r14d xorl %ecx, %ecx movl %r14d, %eax orq %rcx, %rax movq %rbx, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rsi, 0x10(%rsp) movl $0x20, %esi movq %r15, %rdi movq %r13, 0x8(%rsp) movq %rdx, %r13 callq 0xed89 movq 0x10(%rsp), %rsi movq %r13, %rdx movq 0x8(%rsp), %r13 testq %rax, %rax je 0x74ff7 incl (%r14) movq %r14, (%rax) movq %r12, 0x8(%rax) movq %r13, 0x10(%rax) movq %rbp, 0x18(%rax) movq %rax, 0x30(%rsi) movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rsi, %rcx movq %rsi, %r14 movq %rdx, %rbx jmp 0x750ac
js_iterator_from: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15, rdi mov r14, [r8] mov r12, [r8+8] cmp r12d, 0FFFFFFFFh jz short loc_74ED5 cmp r12d, 0FFFFFFF9h jnz short loc_74F18 mov rdi, r15 mov rsi, r14 mov rdx, r12 mov ecx, 0D4h mov r8, r14 mov r9, r12 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h cmp edx, 6 jnz short loc_74F36 mov ebx, 6 jmp loc_750A7 loc_74ED5: mov rcx, [r15+140h] mov r8, [r15+148h] mov rdi, r15 mov rsi, r14 mov rdx, r12 call JS_OrdinaryIsInstanceOf mov ebx, 6 test eax, eax js loc_750A7 jz short loc_74F6C inc dword ptr [r14] mov rcx, 0FFFFFFFF00000000h and rcx, r14 mov rbx, r12 jmp loc_750AC loc_74F18: lea rsi, aIteratorFromCa; "Iterator.from called on non-object" xor r14d, r14d mov rdi, r15 xor eax, eax call JS_ThrowTypeError mov ebx, 6 jmp loc_750AA loc_74F36: sub rsp, 8 mov rdi, r15 mov rsi, rax mov rcx, r14 mov r8, r12 xor r9d, r9d push 0 call JS_CallFree add rsp, 10h mov r14, rax mov rbx, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax jmp loc_750AC loc_74F6C: mov rdi, r15 mov rsi, r14 mov rdx, r12 mov ecx, 0D4h mov r8, r14 mov r9, r12 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov rbp, rax lea eax, [rdx-2] cmp eax, 2 jnb loc_75043 mov rdi, r15 mov rsi, r14 mov rdx, r12 mov ecx, 6Bh ; 'k' mov r8, r14 mov r9, r12 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov rbp, rdx cmp ebp, 6 jz loc_750A7 mov r13, rax mov rax, [r15+40h] mov rsi, [rax+290h] mov rdx, [rax+298h] mov rdi, r15 mov ecx, 29h ; ')' call JS_NewObjectProtoClass mov rsi, rax cmp edx, 6 jnz loc_750C4 loc_74FF7: mov rdi, [r15+18h] cmp ebp, 0FFFFFFF7h jb short loc_7502B mov eax, [r13+0] lea ecx, [rax-1] mov [r13+0], ecx cmp eax, 1 jg short loc_7502B mov r12, rsi mov rsi, r13 mov r14, rdx mov rdx, rbp call js_free_value_rt mov rsi, r12 mov rdx, r14 mov rdi, [r15+18h] loc_7502B: cmp edx, 0FFFFFFF7h jb short loc_750A7 mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg short loc_750A7 call js_free_value_rt jmp short loc_750A7 loc_75043: mov r13, rdx mov eax, r13d cmp r13d, 6 jnz short loc_75059 xor r14d, r14d xor ecx, ecx mov rbx, rax jmp short loc_750AC loc_75059: mov rdi, r15 mov rsi, r14 mov rdx, r12 mov rcx, rbp mov r8, r13 mov r14, rax call JS_GetIterator2 mov rsi, rax cmp r14d, 0FFFFFFF7h jb short loc_750A2 mov rdi, [r15+18h] mov eax, [rbp+0] lea ecx, [rax-1] mov [rbp+0], ecx cmp eax, 1 jg short loc_750A2 mov r15, rsi mov rsi, rbp mov r14, rdx mov rdx, r13 call js_free_value_rt mov rsi, r15 mov rdx, r14 loc_750A2: cmp edx, 6 jnz short loc_7510A loc_750A7: xor r14d, r14d loc_750AA: xor ecx, ecx loc_750AC: mov eax, r14d or rax, rcx mov rdx, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_750C4: mov [rsp+48h+var_38], rsi mov esi, 20h ; ' ' mov rdi, r15 mov [rsp+48h+var_40], r13 mov r13, rdx call js_malloc mov rsi, [rsp+48h+var_38] mov rdx, r13 mov r13, [rsp+48h+var_40] test rax, rax jz loc_74FF7 inc dword ptr [r14] mov [rax], r14 mov [rax+8], r12 mov [rax+10h], r13 mov [rax+18h], rbp mov [rsi+30h], rax loc_7510A: mov rcx, 0FFFFFFFF00000000h and rcx, rsi mov r14, rsi mov rbx, rdx jmp short loc_750AC
unsigned long long js_iterator_from( _QWORD *a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long *a13, long long a14) { long long v15; // r14 long long v16; // r12 _QWORD *v17; // rax long long v18; // rdx int IsInstanceOf; // eax unsigned long long v20; // rcx long long v21; // rax long long v22; // rdx _QWORD *PropertyInternal2; // rbp __m128 v24; // xmm4 __m128 v25; // xmm5 unsigned long long v26; // rax long long v27; // rdx long long v28; // rbp _QWORD *v29; // r13 long long v30; // rax long long v31; // rdx long long v32; // r8 long long v33; // r9 unsigned long long Iterator2; // rsi long long v35; // rdi int v36; // eax long long v37; // rcx long long v38; // r14 int v39; // eax long long v40; // rcx long long v41; // r13 long long v42; // rsi unsigned int v43; // r14d int v44; // edx long long v45; // r8 long long v46; // r9 long long v47; // rdi int v48; // eax long long v49; // rcx int v50; // r14d long long v52; // r13 _QWORD *v53; // rax char v54; // [rsp+0h] [rbp-48h] _QWORD *v55; // [rsp+8h] [rbp-40h] _QWORD *v56; // [rsp+10h] [rbp-38h] v15 = *a13; v16 = a13[1]; if ( (_DWORD)v16 == -1 ) { IsInstanceOf = JS_OrdinaryIsInstanceOf((long long)a1, v15, v16, a1[40], a1[41], a2, a3, a4, a5, a6, a7, a8, a9); if ( IsInstanceOf < 0 ) goto LABEL_25; if ( !IsInstanceOf ) { PropertyInternal2 = (_QWORD *)JS_GetPropertyInternal2((long long)a1, v15, -1, 0xD4u, v15, v16, 0LL, 0); if ( (unsigned int)(v22 - 2) >= 2 ) { v41 = v22; if ( (_DWORD)v22 == 6 ) { LODWORD(v15) = 0; v20 = 0LL; return v20 | (unsigned int)v15; } v42 = v15; v43 = v22; Iterator2 = (unsigned long long)JS_GetIterator2( (long long)a1, v42, v16, (long long)PropertyInternal2, v22, *(double *)a2.m128_u64, a3, a4, a5, v24, v25, a8, a9); if ( v43 >= 0xFFFFFFF7 ) { v47 = a1[3]; v48 = *(_DWORD *)PropertyInternal2; v49 = (unsigned int)(*(_DWORD *)PropertyInternal2 - 1); *(_DWORD *)PropertyInternal2 = v49; if ( v48 <= 1 ) { v50 = v44; js_free_value_rt(v47, PropertyInternal2, v41, v49, v45, v46); v44 = v50; } } if ( v44 == 6 ) goto LABEL_25; } else { v26 = JS_GetPropertyInternal2((long long)a1, v15, -1, 0x6Bu, v15, v16, 0LL, 0); v28 = v27; if ( (_DWORD)v27 == 6 ) goto LABEL_25; v29 = (_QWORD *)v26; v30 = JS_NewObjectProtoClass((long long)a1, *(_QWORD *)(a1[8] + 656LL), *(_QWORD *)(a1[8] + 664LL), 0x29u); Iterator2 = v30; if ( (_DWORD)v31 == 6 || (v56 = (_QWORD *)v30, v55 = v29, v52 = v31, v53 = (_QWORD *)js_malloc((long long)a1, 32LL), Iterator2 = (unsigned long long)v56, v31 = v52, v29 = v55, !v53) ) { v35 = a1[3]; if ( (unsigned int)v28 >= 0xFFFFFFF7 ) { v36 = *(_DWORD *)v29; v37 = (unsigned int)(*(_DWORD *)v29 - 1); *(_DWORD *)v29 = v37; if ( v36 <= 1 ) { v38 = v31; js_free_value_rt(v35, v29, v28, v37, v32, v33); v31 = v38; v35 = a1[3]; } } if ( (unsigned int)v31 >= 0xFFFFFFF7 ) { v39 = *(_DWORD *)Iterator2; v40 = (unsigned int)(*(_DWORD *)Iterator2 - 1); *(_DWORD *)Iterator2 = v40; if ( v39 <= 1 ) js_free_value_rt(v35, (_QWORD *)Iterator2, v31, v40, v32, v33); } goto LABEL_25; } ++*(_DWORD *)v15; *v53 = v15; v53[1] = v16; v53[2] = v55; v53[3] = v28; v56[6] = v53; } v20 = Iterator2 & 0xFFFFFFFF00000000LL; LODWORD(v15) = Iterator2; return v20 | (unsigned int)v15; } ++*(_DWORD *)v15; v20 = v15 & 0xFFFFFFFF00000000LL; } else { if ( (_DWORD)v16 != -7 ) { LODWORD(v15) = 0; JS_ThrowTypeError( (long long)a1, (long long)"Iterator.from called on non-object", a11, a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v54); LABEL_26: v20 = 0LL; return v20 | (unsigned int)v15; } v17 = (_QWORD *)JS_GetPropertyInternal2((long long)a1, *a13, -7, 0xD4u, *a13, v16, 0LL, 0); if ( (_DWORD)v18 == 6 ) { LABEL_25: LODWORD(v15) = 0; goto LABEL_26; } v21 = JS_CallFree((long long)a1, v17, v18, v15, -7, 0, 0LL); LODWORD(v15) = v21; v20 = v21 & 0xFFFFFFFF00000000LL; } return v20 | (unsigned int)v15; }
js_iterator_from: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,RDI MOV R14,qword ptr [R8] MOV R12,qword ptr [R8 + 0x8] CMP R12D,-0x1 JZ 0x00174ed5 CMP R12D,-0x7 JNZ 0x00174f18 MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 MOV ECX,0xd4 MOV R8,R14 MOV R9,R12 PUSH 0x0 PUSH 0x0 CALL 0x00122c0f ADD RSP,0x10 CMP EDX,0x6 JNZ 0x00174f36 MOV EBX,0x6 JMP 0x001750a7 LAB_00174ed5: MOV RCX,qword ptr [R15 + 0x140] MOV R8,qword ptr [R15 + 0x148] MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 CALL 0x00122a1e MOV EBX,0x6 TEST EAX,EAX JS 0x001750a7 JZ 0x00174f6c INC dword ptr [R14] MOV RCX,-0x100000000 AND RCX,R14 MOV RBX,R12 JMP 0x001750ac LAB_00174f18: LEA RSI,[0x1a352e] XOR R14D,R14D MOV RDI,R15 XOR EAX,EAX CALL 0x0012214f MOV EBX,0x6 JMP 0x001750aa LAB_00174f36: SUB RSP,0x8 MOV RDI,R15 MOV RSI,RAX MOV RCX,R14 MOV R8,R12 XOR R9D,R9D PUSH 0x0 CALL 0x001228ab ADD RSP,0x10 MOV R14,RAX MOV RBX,RDX MOV RCX,-0x100000000 AND RCX,RAX JMP 0x001750ac LAB_00174f6c: MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 MOV ECX,0xd4 MOV R8,R14 MOV R9,R12 PUSH 0x0 PUSH 0x0 CALL 0x00122c0f ADD RSP,0x10 MOV RBP,RAX LEA EAX,[RDX + -0x2] CMP EAX,0x2 JNC 0x00175043 MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 MOV ECX,0x6b MOV R8,R14 MOV R9,R12 PUSH 0x0 PUSH 0x0 CALL 0x00122c0f ADD RSP,0x10 MOV RBP,RDX CMP EBP,0x6 JZ 0x001750a7 MOV R13,RAX MOV RAX,qword ptr [R15 + 0x40] MOV RSI,qword ptr [RAX + 0x290] MOV RDX,qword ptr [RAX + 0x298] MOV RDI,R15 MOV ECX,0x29 CALL 0x00120a15 MOV RSI,RAX CMP EDX,0x6 JNZ 0x001750c4 LAB_00174ff7: MOV RDI,qword ptr [R15 + 0x18] CMP EBP,-0x9 JC 0x0017502b MOV EAX,dword ptr [R13] LEA ECX,[RAX + -0x1] MOV dword ptr [R13],ECX CMP EAX,0x1 JG 0x0017502b MOV R12,RSI MOV RSI,R13 MOV R14,RDX MOV RDX,RBP CALL 0x00120d90 MOV RSI,R12 MOV RDX,R14 MOV RDI,qword ptr [R15 + 0x18] LAB_0017502b: CMP EDX,-0x9 JC 0x001750a7 MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x001750a7 CALL 0x00120d90 JMP 0x001750a7 LAB_00175043: MOV R13,RDX MOV EAX,R13D CMP R13D,0x6 JNZ 0x00175059 XOR R14D,R14D XOR ECX,ECX MOV RBX,RAX JMP 0x001750ac LAB_00175059: MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 MOV RCX,RBP MOV R8,R13 MOV R14,RAX CALL 0x0014292f MOV RSI,RAX CMP R14D,-0x9 JC 0x001750a2 MOV RDI,qword ptr [R15 + 0x18] MOV EAX,dword ptr [RBP] LEA ECX,[RAX + -0x1] MOV dword ptr [RBP],ECX CMP EAX,0x1 JG 0x001750a2 MOV R15,RSI MOV RSI,RBP MOV R14,RDX MOV RDX,R13 CALL 0x00120d90 MOV RSI,R15 MOV RDX,R14 LAB_001750a2: CMP EDX,0x6 JNZ 0x0017510a LAB_001750a7: XOR R14D,R14D LAB_001750aa: XOR ECX,ECX LAB_001750ac: MOV EAX,R14D OR RAX,RCX MOV RDX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001750c4: MOV qword ptr [RSP + 0x10],RSI MOV ESI,0x20 MOV RDI,R15 MOV qword ptr [RSP + 0x8],R13 MOV R13,RDX CALL 0x0010ed89 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R13 MOV R13,qword ptr [RSP + 0x8] TEST RAX,RAX JZ 0x00174ff7 INC dword ptr [R14] MOV qword ptr [RAX],R14 MOV qword ptr [RAX + 0x8],R12 MOV qword ptr [RAX + 0x10],R13 MOV qword ptr [RAX + 0x18],RBP MOV qword ptr [RSI + 0x30],RAX LAB_0017510a: MOV RCX,-0x100000000 AND RCX,RSI MOV R14,RSI MOV RBX,RDX JMP 0x001750ac
int1 [16] js_iterator_from(long param_1) { int *piVar1; uint uVar2; int iVar3; int *piVar4; int *piVar5; int8 *puVar6; ulong uVar7; int8 uVar8; int1 (*in_R8) [16]; int1 auVar9 [16]; int1 auVar10 [16]; piVar1 = *(int **)*in_R8; uVar8 = *(int8 *)(*in_R8 + 8); auVar9 = *in_R8; if ((int)uVar8 == -1) { iVar3 = JS_OrdinaryIsInstanceOf (param_1,piVar1,uVar8,*(int8 *)(param_1 + 0x140), *(int8 *)(param_1 + 0x148)); if (-1 < iVar3) { if (iVar3 != 0) { *piVar1 = *piVar1 + 1; uVar7 = (ulong)piVar1 & 0xffffffff00000000; goto LAB_001750ac; } auVar9 = JS_GetPropertyInternal2(param_1,piVar1,uVar8,0xd4,piVar1,uVar8,0,0); uVar7 = auVar9._8_8_; piVar4 = auVar9._0_8_; uVar2 = auVar9._8_4_; if (uVar2 - 2 < 2) { auVar10 = JS_GetPropertyInternal2(param_1,piVar1,uVar8,0x6b,piVar1,uVar8,0,0); piVar4 = auVar10._0_8_; if (auVar10._8_4_ != 6) { auVar9 = JS_NewObjectProtoClass (param_1,*(int8 *)(*(long *)(param_1 + 0x40) + 0x290), *(int8 *)(*(long *)(param_1 + 0x40) + 0x298),0x29); piVar5 = auVar9._0_8_; if ((auVar9._8_4_ != 6) && (puVar6 = (int8 *)js_malloc(param_1,0x20), puVar6 != (int8 *)0x0)) { *piVar1 = *piVar1 + 1; *puVar6 = piVar1; puVar6[1] = uVar8; *(int1 (*) [16])(puVar6 + 2) = auVar10; *(int8 **)(piVar5 + 0xc) = puVar6; LAB_0017510a: uVar7 = auVar9._0_8_ & 0xffffffff00000000; goto LAB_001750ac; } uVar8 = *(int8 *)(param_1 + 0x18); if ((0xfffffff6 < auVar10._8_4_) && (iVar3 = *piVar4, *piVar4 = iVar3 + -1, iVar3 < 2)) { js_free_value_rt(uVar8,piVar4,auVar10._8_8_); uVar8 = *(int8 *)(param_1 + 0x18); } if ((0xfffffff6 < auVar9._8_4_) && (iVar3 = *piVar5, *piVar5 = iVar3 + -1, iVar3 < 2)) { js_free_value_rt(uVar8); } } } else { if (uVar2 == 6) { auVar9._8_8_ = 0; auVar9._0_8_ = uVar7 & 0xffffffff; auVar9 = auVar9 << 0x40; uVar7 = 0; goto LAB_001750ac; } auVar9 = JS_GetIterator2(param_1,piVar1,uVar8,piVar4,uVar7); if (0xfffffff6 < uVar2) { uVar8 = *(int8 *)(param_1 + 0x18); iVar3 = *piVar4; *piVar4 = iVar3 + -1; if (iVar3 < 2) { js_free_value_rt(uVar8,piVar4,uVar7); } } if (auVar9._8_4_ != 6) goto LAB_0017510a; } } } else if ((int)uVar8 == -7) { auVar9 = JS_GetPropertyInternal2(param_1,piVar1,uVar8,0xd4,piVar1,uVar8,0,0); if (auVar9._8_4_ != 6) { auVar9 = JS_CallFree(param_1,auVar9._0_8_,auVar9._8_8_,piVar1,uVar8,0,0); uVar7 = auVar9._0_8_ & 0xffffffff00000000; goto LAB_001750ac; } } else { JS_ThrowTypeError(param_1,"Iterator.from called on non-object"); } auVar9 = ZEXT816(6) << 0x40; uVar7 = 0; LAB_001750ac: auVar10._0_8_ = auVar9._0_8_ & 0xffffffff | uVar7; auVar10._8_8_ = auVar9._8_8_; return auVar10; }
3,829
js_array_toSpliced
bluesky950520[P]quickjs/quickjs.c
static JSValue js_array_toSpliced(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue arr, obj, ret, *arrp, *pval, *last; JSObject *p; int64_t i, j, len, newlen, start, add, del; uint32_t count32; pval = NULL; last = NULL; ret = JS_EXCEPTION; arr = JS_UNDEFINED; obj = JS_ToObject(ctx, this_val); if (js_get_length64(ctx, &len, obj)) goto exception; start = 0; if (argc > 0) if (JS_ToInt64Clamp(ctx, &start, argv[0], 0, len, len)) goto exception; del = 0; if (argc > 0) del = len - start; if (argc > 1) if (JS_ToInt64Clamp(ctx, &del, argv[1], 0, del, 0)) goto exception; add = 0; if (argc > 2) add = argc - 2; newlen = len + add - del; if (newlen > UINT32_MAX) { // Per spec: TypeError if newlen >= 2**53, RangeError below if (newlen > MAX_SAFE_INTEGER) { JS_ThrowTypeError(ctx, "invalid array length"); } else { JS_ThrowRangeError(ctx, "invalid array length"); } goto exception; } arr = JS_NewArray(ctx); if (JS_IsException(arr)) goto exception; if (newlen <= 0) goto done; p = JS_VALUE_GET_OBJ(arr); if (expand_fast_array(ctx, p, newlen) < 0) goto exception; p->u.array.count = newlen; pval = &p->u.array.u.values[0]; last = &p->u.array.u.values[newlen]; if (js_get_fast_array(ctx, obj, &arrp, &count32) && count32 == len) { for (i = 0; i < start; i++, pval++) *pval = js_dup(arrp[i]); for (j = 0; j < add; j++, pval++) *pval = js_dup(argv[2 + j]); for (i += del; i < len; i++, pval++) *pval = js_dup(arrp[i]); } else { for (i = 0; i < start; i++, pval++) if (-1 == JS_TryGetPropertyInt64(ctx, obj, i, pval)) goto exception; for (j = 0; j < add; j++, pval++) *pval = js_dup(argv[2 + j]); for (i += del; i < len; i++, pval++) if (-1 == JS_TryGetPropertyInt64(ctx, obj, i, pval)) goto exception; } assert(pval == last); if (JS_SetProperty(ctx, arr, JS_ATOM_length, js_int64(newlen)) < 0) goto exception; done: ret = arr; arr = JS_UNDEFINED; exception: while (pval != last) *pval++ = JS_UNDEFINED; JS_FreeValue(ctx, arr); JS_FreeValue(ctx, obj); return ret; }
O3
c
js_array_toSpliced: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %r8, %r13 movl %ecx, %r12d movq %rdi, %r15 callq 0x2b520 movq %rax, %rbx movq %rdx, %r14 leaq 0x80(%rsp), %rsi movq %r15, %rdi movq %rax, %rdx movq %r14, %rcx callq 0x27327 testl %eax, %eax je 0x7deba addq $0x18, %r15 movl $0x6, %r12d xorl %ebp, %ebp movq (%r15), %rdi cmpl $-0x9, %r14d jb 0x7dea2 movl (%rbx), %eax leal -0x1(%rax), %ecx movl %ecx, (%rbx) cmpl $0x1, %eax jg 0x7dea2 movq %rbx, %rsi movq %r14, %rdx callq 0x259d8 movq %rbp, %rax movq %r12, %rdx addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq $0x0, 0x78(%rsp) xorl %esi, %esi movq 0x80(%rsp), %rbp testl %r12d, %r12d jle 0x7df46 movq (%r13), %rdx movq 0x8(%r13), %rcx movq %rbp, (%rsp) leaq 0x78(%rsp), %rsi movq %r15, %rdi xorl %r8d, %r8d movq %rbp, %r9 callq 0x2bf22 testl %eax, %eax jne 0x7de76 movq 0x78(%rsp), %rcx movq %rbp, %r9 subq %rcx, %r9 movq %r9, 0x70(%rsp) cmpl $0x1, %r12d je 0x7df42 movq %rcx, 0x28(%rsp) movq 0x10(%r13), %rdx movq 0x18(%r13), %rcx movq $0x0, (%rsp) leaq 0x70(%rsp), %rsi movq %r15, %rdi xorl %r8d, %r8d callq 0x2bf22 testl %eax, %eax jne 0x7de76 movq 0x70(%rsp), %r9 movq 0x28(%rsp), %rcx xorl %esi, %esi jmp 0x7df4b xorl %ecx, %ecx xorl %r9d, %r9d leal -0x2(%r12), %eax cmpl $0x3, %r12d cmovgel %eax, %esi leaq (%rsi,%rbp), %rdx subq %r9, %rdx movabsq $0x100000000, %rax # imm = 0x100000000 cmpq %rax, %rdx jl 0x7df93 leaq 0x28432(%rip), %rsi # 0xa63a6 movq %r15, %rdi xorl %eax, %eax shrq $0x35, %rdx je 0x7df89 callq 0x26d97 jmp 0x7de76 callq 0x25238 jmp 0x7de76 movq %r9, 0x50(%rsp) movq %rsi, 0x60(%rsp) movq %rdx, 0x58(%rsp) movq %rcx, 0x28(%rsp) movq 0x38(%r15), %rsi incl (%rsi) movq %r15, %rdi movl $0x2, %edx callq 0xf7ec movl $0x6, %r12d xorl %esi, %esi cmpl $0x6, %edx jne 0x7dfd0 movl %eax, %esi xorl %ebp, %ebp jmp 0x7e23d movl $0x3, %edi movq 0x58(%rsp), %rcx testq %rcx, %rcx jle 0x7e077 movq %rdx, 0x48(%rsp) movq %r15, %rdi movq %rax, %rsi movl %ecx, %edx movq %rax, 0x30(%rsp) callq 0x43216 testl %eax, %eax js 0x7e0d3 movq 0x30(%rsp), %rcx movq 0x58(%rsp), %rax movl %eax, 0x40(%rcx) movq 0x38(%rcx), %r8 shlq $0x4, %rax addq %r8, %rax movq %rax, 0x40(%rsp) cmpl $-0x1, %r14d jne 0x7e085 cmpw $0x2, 0x6(%rbx) jne 0x7e085 testb $0x8, 0x5(%rbx) je 0x7e085 movl 0x40(%rbx), %eax cmpq %rax, %rbp jne 0x7e085 movq 0x38(%rbx), %rax movq 0x28(%rsp), %rdx testq %rdx, %rdx jle 0x7e292 leaq 0x8(%rax), %rcx movq -0x8(%rcx), %rsi movq (%rcx), %rdi cmpl $-0x9, %edi jb 0x7e05e incl (%rsi) movq %rsi, (%r8) movq %rdi, 0x8(%r8) addq $0x10, %r8 addq $0x10, %rcx decq %rdx jne 0x7e050 jmp 0x7e29b xorl %r8d, %r8d xorl %r13d, %r13d movq %rax, %rbp jmp 0x7e216 cmpq $0x0, 0x28(%rsp) movq %rbp, 0x68(%rsp) jle 0x7e0e6 xorl %ebp, %ebp xorl %r12d, %r12d movq %r8, 0x38(%rsp) movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movq %r12, %rcx callq 0x535d2 cmpl $-0x1, %eax je 0x7e1eb incq %r12 movq 0x38(%rsp), %r8 addq $0x10, %r8 movq 0x28(%rsp), %rcx cmpq %r12, %rcx jne 0x7e097 movq 0x68(%rsp), %rbp jmp 0x7e0e8 xorl %ebp, %ebp movq 0x30(%rsp), %rax movl %eax, %esi movq 0x48(%rsp), %rdx jmp 0x7e23d xorl %ecx, %ecx movq 0x60(%rsp), %rdi testq %rdi, %rdi movq 0x50(%rsp), %r9 je 0x7e123 shlq $0x4, %rdi xorl %eax, %eax movq 0x20(%r13,%rax), %rsi movq 0x28(%r13,%rax), %rdx cmpl $-0x9, %edx jb 0x7e10e incl (%rsi) movq %rsi, (%r8,%rax) movq %rdx, 0x8(%r8,%rax) addq $0x10, %rax cmpq %rax, %rdi jne 0x7e0fd addq %rax, %r8 addq %r9, %rcx cmpq %rbp, %rcx jge 0x7e15e xorl %ebp, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movq %r8, %r13 movq %rcx, %r12 callq 0x535d2 cmpl $-0x1, %eax je 0x7e27a incq %r12 addq $0x10, %r13 cmpq 0x68(%rsp), %r12 movq %r13, %r8 movq %r12, %rcx jl 0x7e12d movq %r8, 0x38(%rsp) movq 0x58(%rsp), %rdx movq %rdx, %rax shrq $0x1f, %rax movl %edx, %ecx cvtsi2sd %rdx, %xmm0 movq %xmm0, %r8 cmoveq %rcx, %r8 movl $0x7, %r9d cmoveq %rax, %r9 movq 0x30(%rsp), %r13 movq %r13, 0x88(%rsp) movq 0x48(%rsp), %r12 movq %r12, 0x90(%rsp) movups 0x88(%rsp), %xmm0 movups %xmm0, (%rsp) movq $0x0, 0x18(%rsp) movl $0x4000, 0x10(%rsp) # imm = 0x4000 movq %r15, %rdi movq %r13, %rsi movq %r12, %rdx movl $0x32, %ecx callq 0x289c7 xorl %ebp, %ebp testl %eax, %eax js 0x7e1fe xorl %esi, %esi movq %r13, %rbp movq %r12, %rdx movq %r13, %rax movl $0x3, %edi jmp 0x7e20c movq 0x30(%rsp), %rax movl %eax, %esi movq 0x48(%rsp), %rdi movl $0x6, %edx jmp 0x7e20c movl %r13d, %esi movq %r12, %rdi movl $0x6, %edx movq %r13, %rax movq 0x40(%rsp), %r8 movq 0x38(%rsp), %r13 cmpq %r8, %r13 je 0x7e237 movl $0x0, (%r13) movq $0x3, 0x8(%r13) leaq 0x10(%r13), %rcx movq %rcx, %r13 cmpq %r8, %rcx jne 0x7e21b movq %rdx, %r12 movq %rdi, %rdx movq 0x18(%r15), %rdi cmpl $-0x9, %edx jb 0x7de85 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rcx, %rax movl %esi, %esi orq %rax, %rsi movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x7de85 addq $0x18, %r15 callq 0x259d8 jmp 0x7de82 movq 0x30(%rsp), %rax movl %eax, %esi movq 0x48(%rsp), %rdi movl $0x6, %edx movq 0x40(%rsp), %r8 jmp 0x7e216 movq $0x0, 0x28(%rsp) movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x7e2d1 shlq $0x4, %rdi xorl %ecx, %ecx movq 0x20(%r13,%rcx), %rdx movq 0x28(%r13,%rcx), %rsi cmpl $-0x9, %esi jb 0x7e2bc incl (%rdx) movq %rdx, (%r8,%rcx) movq %rsi, 0x8(%r8,%rcx) addq $0x10, %rcx cmpq %rcx, %rdi jne 0x7e2ab addq %rcx, %r8 movq 0x28(%rsp), %rdi movq 0x50(%rsp), %rcx addq %rcx, %rdi cmpq %rbp, %rdi jge 0x7e15e movq %rbp, %rsi movq %rdi, %rcx shlq $0x4, %rcx addq %rcx, %rax addq $0x8, %rax movq -0x8(%rax), %rcx movq (%rax), %rdx cmpl $-0x9, %edx jb 0x7e306 incl (%rcx) movq %rcx, (%r8) movq %rdx, 0x8(%r8) incq %rdi addq $0x10, %r8 addq $0x10, %rax cmpq %rsi, %rdi jl 0x7e2f8 jmp 0x7e15e
js_array_toSpliced: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r13, r8 mov r12d, ecx mov r15, rdi call JS_ToObject mov rbx, rax mov r14, rdx lea rsi, [rsp+0C8h+var_48] mov rdi, r15 mov rdx, rax mov rcx, r14 call js_get_length64 test eax, eax jz short loc_7DEBA loc_7DE76: add r15, 18h mov r12d, 6 xor ebp, ebp loc_7DE82: mov rdi, [r15] loc_7DE85: cmp r14d, 0FFFFFFF7h jb short loc_7DEA2 mov eax, [rbx] lea ecx, [rax-1] mov [rbx], ecx cmp eax, 1 jg short loc_7DEA2 mov rsi, rbx mov rdx, r14 call js_free_value_rt loc_7DEA2: mov rax, rbp mov rdx, r12 add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7DEBA: mov [rsp+0C8h+var_50], 0 xor esi, esi mov rbp, [rsp+0C8h+var_48] test r12d, r12d jle short loc_7DF46 mov rdx, [r13+0] mov rcx, [r13+8] mov qword ptr [rsp+0C8h+var_C8], rbp lea rsi, [rsp+0C8h+var_50] mov rdi, r15 xor r8d, r8d mov r9, rbp call JS_ToInt64Clamp test eax, eax jnz short loc_7DE76 mov rcx, [rsp+0C8h+var_50] mov r9, rbp sub r9, rcx mov [rsp+0C8h+var_58], r9 cmp r12d, 1 jz short loc_7DF42 mov [rsp+0C8h+var_A0], rcx mov rdx, [r13+10h] mov rcx, [r13+18h] mov qword ptr [rsp+0C8h+var_C8], 0 lea rsi, [rsp+0C8h+var_58] mov rdi, r15 xor r8d, r8d call JS_ToInt64Clamp test eax, eax jnz loc_7DE76 mov r9, [rsp+0C8h+var_58] mov rcx, [rsp+0C8h+var_A0] loc_7DF42: xor esi, esi jmp short loc_7DF4B loc_7DF46: xor ecx, ecx xor r9d, r9d loc_7DF4B: lea eax, [r12-2] cmp r12d, 3 cmovge esi, eax lea rdx, [rsi+rbp] sub rdx, r9 mov rax, 100000000h cmp rdx, rax jl short loc_7DF93 lea rsi, aInvalidArrayLe; "invalid array length" mov rdi, r15 xor eax, eax shr rdx, 35h jz short loc_7DF89 call JS_ThrowTypeError jmp loc_7DE76 loc_7DF89: call JS_ThrowRangeError jmp loc_7DE76 loc_7DF93: mov [rsp+0C8h+var_78], r9 mov [rsp+0C8h+var_68], rsi mov [rsp+0C8h+var_70], rdx mov [rsp+0C8h+var_A0], rcx mov rsi, [r15+38h] inc dword ptr [rsi] mov rdi, r15 mov edx, 2 call JS_NewObjectFromShape mov r12d, 6 xor esi, esi cmp edx, 6 jnz short loc_7DFD0 mov esi, eax xor ebp, ebp jmp loc_7E23D loc_7DFD0: mov edi, 3 mov rcx, [rsp+0C8h+var_70] test rcx, rcx jle loc_7E077 mov [rsp+0C8h+var_80], rdx mov rdi, r15 mov rsi, rax mov edx, ecx mov [rsp+0C8h+var_98], rax call expand_fast_array test eax, eax js loc_7E0D3 mov rcx, [rsp+0C8h+var_98] mov rax, [rsp+0C8h+var_70] mov [rcx+40h], eax mov r8, [rcx+38h] shl rax, 4 add rax, r8 mov [rsp+0C8h+var_88], rax cmp r14d, 0FFFFFFFFh jnz short loc_7E085 cmp word ptr [rbx+6], 2 jnz short loc_7E085 test byte ptr [rbx+5], 8 jz short loc_7E085 mov eax, [rbx+40h] cmp rbp, rax jnz short loc_7E085 mov rax, [rbx+38h] mov rdx, [rsp+0C8h+var_A0] test rdx, rdx jle loc_7E292 lea rcx, [rax+8] loc_7E050: mov rsi, [rcx-8] mov rdi, [rcx] cmp edi, 0FFFFFFF7h jb short loc_7E05E inc dword ptr [rsi] loc_7E05E: mov [r8], rsi mov [r8+8], rdi add r8, 10h add rcx, 10h dec rdx jnz short loc_7E050 jmp loc_7E29B loc_7E077: xor r8d, r8d xor r13d, r13d mov rbp, rax jmp loc_7E216 loc_7E085: cmp [rsp+0C8h+var_A0], 0 mov [rsp+0C8h+var_60], rbp jle short loc_7E0E6 xor ebp, ebp xor r12d, r12d loc_7E097: mov [rsp+0C8h+var_90], r8 mov rdi, r15 mov rsi, rbx mov rdx, r14 mov rcx, r12 call JS_TryGetPropertyInt64 cmp eax, 0FFFFFFFFh jz loc_7E1EB inc r12 mov r8, [rsp+0C8h+var_90] add r8, 10h mov rcx, [rsp+0C8h+var_A0] cmp rcx, r12 jnz short loc_7E097 mov rbp, [rsp+0C8h+var_60] jmp short loc_7E0E8 loc_7E0D3: xor ebp, ebp mov rax, [rsp+0C8h+var_98] mov esi, eax mov rdx, [rsp+0C8h+var_80] jmp loc_7E23D loc_7E0E6: xor ecx, ecx loc_7E0E8: mov rdi, [rsp+0C8h+var_68] test rdi, rdi mov r9, [rsp+0C8h+var_78] jz short loc_7E123 shl rdi, 4 xor eax, eax loc_7E0FD: mov rsi, [r13+rax+20h] mov rdx, [r13+rax+28h] cmp edx, 0FFFFFFF7h jb short loc_7E10E inc dword ptr [rsi] loc_7E10E: mov [r8+rax], rsi mov [r8+rax+8], rdx add rax, 10h cmp rdi, rax jnz short loc_7E0FD add r8, rax loc_7E123: add rcx, r9 cmp rcx, rbp jge short loc_7E15E xor ebp, ebp loc_7E12D: mov rdi, r15 mov rsi, rbx mov rdx, r14 mov r13, r8 mov r12, rcx call JS_TryGetPropertyInt64 cmp eax, 0FFFFFFFFh jz loc_7E27A inc r12 add r13, 10h cmp r12, [rsp+0C8h+var_60] mov r8, r13 mov rcx, r12 jl short loc_7E12D loc_7E15E: mov [rsp+0C8h+var_90], r8 mov rdx, [rsp+0C8h+var_70] mov rax, rdx shr rax, 1Fh mov ecx, edx cvtsi2sd xmm0, rdx movq r8, xmm0 cmovz r8, rcx mov r9d, 7 cmovz r9, rax mov r13, [rsp+0C8h+var_98] mov qword ptr [rsp+0C8h+var_40], r13 mov r12, [rsp+0C8h+var_80] mov qword ptr [rsp+0C8h+var_40+8], r12 movups xmm0, [rsp+0C8h+var_40] movups [rsp+0C8h+var_C8], xmm0 mov [rsp+0C8h+var_B0], 0 mov [rsp+0C8h+var_B8], 4000h mov rdi, r15 mov rsi, r13 mov rdx, r12 mov ecx, 32h ; '2' call JS_SetPropertyInternal2 xor ebp, ebp test eax, eax js short loc_7E1FE xor esi, esi mov rbp, r13 mov rdx, r12 mov rax, r13 mov edi, 3 jmp short loc_7E20C loc_7E1EB: mov rax, [rsp+0C8h+var_98] mov esi, eax mov rdi, [rsp+0C8h+var_80] mov edx, 6 jmp short loc_7E20C loc_7E1FE: mov esi, r13d mov rdi, r12 mov edx, 6 mov rax, r13 loc_7E20C: mov r8, [rsp+0C8h+var_88] mov r13, [rsp+0C8h+var_90] loc_7E216: cmp r13, r8 jz short loc_7E237 loc_7E21B: mov dword ptr [r13+0], 0 mov qword ptr [r13+8], 3 lea rcx, [r13+10h] mov r13, rcx cmp rcx, r8 jnz short loc_7E21B loc_7E237: mov r12, rdx mov rdx, rdi loc_7E23D: mov rdi, [r15+18h] cmp edx, 0FFFFFFF7h jb loc_7DE85 mov rcx, 0FFFFFFFF00000000h and rax, rcx mov esi, esi or rsi, rax mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg loc_7DE85 add r15, 18h call js_free_value_rt jmp loc_7DE82 loc_7E27A: mov rax, [rsp+0C8h+var_98] mov esi, eax mov rdi, [rsp+0C8h+var_80] mov edx, 6 mov r8, [rsp+0C8h+var_88] jmp short loc_7E216 loc_7E292: mov [rsp+0C8h+var_A0], 0 loc_7E29B: mov rdi, [rsp+0C8h+var_68] test rdi, rdi jz short loc_7E2D1 shl rdi, 4 xor ecx, ecx loc_7E2AB: mov rdx, [r13+rcx+20h] mov rsi, [r13+rcx+28h] cmp esi, 0FFFFFFF7h jb short loc_7E2BC inc dword ptr [rdx] loc_7E2BC: mov [r8+rcx], rdx mov [r8+rcx+8], rsi add rcx, 10h cmp rdi, rcx jnz short loc_7E2AB add r8, rcx loc_7E2D1: mov rdi, [rsp+0C8h+var_A0] mov rcx, [rsp+0C8h+var_78] add rdi, rcx cmp rdi, rbp jge loc_7E15E mov rsi, rbp mov rcx, rdi shl rcx, 4 add rax, rcx add rax, 8 loc_7E2F8: mov rcx, [rax-8] mov rdx, [rax] cmp edx, 0FFFFFFF7h jb short loc_7E306 inc dword ptr [rcx] loc_7E306: mov [r8], rcx mov [r8+8], rdx inc rdi add r8, 10h add rax, 10h cmp rdi, rsi jl short loc_7E2F8 jmp loc_7E15E
long long js_array_toSpliced( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { int v15; // r12d long long v17; // rbx long long v18; // rdx long long v19; // r14 long long v20; // r8 long long v21; // r9 __m128 v22; // xmm4 __m128 v23; // xmm5 long long *v24; // r15 long long v25; // rbp long long v26; // rdi int v27; // eax long long v28; // rcx long long v30; // rsi long long v31; // rbp long long v32; // rcx signed long long v33; // r9 long long v34; // rdx long long v35; // rdx _DWORD *v36; // rsi long long v37; // rax long long v38; // rdx unsigned int v39; // esi long long v40; // rdi double v41; // xmm4_8 double v42; // xmm5_8 _QWORD *v43; // r8 long long v44; // rax long long v45; // rdx long long *v46; // rcx _DWORD *v47; // rsi long long v48; // rdi _QWORD *v49; // r13 unsigned long long v50; // r12 long long v51; // rcx long long v52; // rax _DWORD *v53; // rsi long long v54; // rdx signed long long v55; // rcx signed long long v56; // r12 double v57; // r8 long long v58; // r9 _QWORD *v59; // rsi int v60; // eax long long v61; // rcx long long v62; // rcx _DWORD *v63; // rdx long long v64; // rsi long long v65; // rdi long long *v66; // rax _DWORD *v67; // rcx long long v68; // rdx char v69; // [rsp+0h] [rbp-C8h] unsigned long long v70; // [rsp+28h] [rbp-A0h] long long v71; // [rsp+28h] [rbp-A0h] long long v72; // [rsp+30h] [rbp-98h] _QWORD *v73; // [rsp+38h] [rbp-90h] _QWORD *v74; // [rsp+40h] [rbp-88h] long long v75; // [rsp+48h] [rbp-80h] signed long long v76; // [rsp+50h] [rbp-78h] unsigned long long v77; // [rsp+58h] [rbp-70h] long long v78; // [rsp+60h] [rbp-68h] long long v79; // [rsp+68h] [rbp-60h] signed long long v80; // [rsp+70h] [rbp-58h] BYREF unsigned long long v81; // [rsp+78h] [rbp-50h] BYREF long long v82; // [rsp+80h] [rbp-48h] BYREF __m128 v83; // [rsp+88h] [rbp-40h] v15 = a4; v17 = JS_ToObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v19 = v18; if ( (unsigned int)js_get_length64(a1, &v82, v17, v18) ) goto LABEL_2; v81 = 0LL; v30 = 0LL; v31 = v82; if ( v15 > 0 ) { if ( !(unsigned int)JS_ToInt64Clamp(a1, &v81, *(_DWORD **)a5, *(_QWORD *)(a5 + 8), 0LL, v82, v82) ) { v32 = v81; v33 = v31 - v81; v80 = v31 - v81; if ( v15 == 1 ) { LABEL_13: v30 = 0LL; goto LABEL_15; } v70 = v81; if ( !(unsigned int)JS_ToInt64Clamp( a1, (unsigned long long *)&v80, *(_DWORD **)(a5 + 16), *(_QWORD *)(a5 + 24), 0LL, v33, 0LL) ) { v33 = v80; v32 = v70; goto LABEL_13; } } LABEL_2: v24 = (long long *)(a1 + 24); v25 = 0LL; LABEL_3: v26 = *v24; goto LABEL_4; } v32 = 0LL; v33 = 0LL; LABEL_15: if ( v15 >= 3 ) v30 = (unsigned int)(v15 - 2); v34 = v30 + v31 - v33; if ( v34 >= 0x100000000LL ) { v35 = (unsigned long long)v34 >> 53; if ( v35 ) JS_ThrowTypeError( a1, (long long)"invalid array length", v35, v32, v20, v33, a7, a8, a9, a10, v22, v23, a13, a14, v69); else JS_ThrowRangeError( a1, (long long)"invalid array length", 0LL, v32, v20, v33, a7, a8, a9, a10, v22, v23, a13, a14, v69); goto LABEL_2; } v76 = v33; v78 = v30; v77 = v30 + v31 - v33; v71 = v32; v36 = *(_DWORD **)(a1 + 56); ++*v36; v37 = JS_NewObjectFromShape(a1, v36, 2u); v39 = 0; if ( (_DWORD)v38 == 6 ) { v39 = v37; v25 = 0LL; goto LABEL_65; } v40 = 3LL; if ( (long long)v77 > 0 ) { v75 = v38; v72 = v37; if ( (int)expand_fast_array(a1, v37, v77) < 0 ) { v25 = 0LL; v37 = v72; v39 = v72; v38 = v75; goto LABEL_65; } *(_DWORD *)(v72 + 64) = v77; v43 = *(_QWORD **)(v72 + 56); v74 = &v43[2 * v77]; if ( (_DWORD)v19 == -1 && *(_WORD *)(v17 + 6) == 2 && (*(_BYTE *)(v17 + 5) & 8) != 0 && v31 == *(_DWORD *)(v17 + 64) ) { v44 = *(_QWORD *)(v17 + 56); v45 = v71; if ( v71 <= 0 ) { v71 = 0LL; } else { v46 = (long long *)(v44 + 8); do { v47 = (_DWORD *)*(v46 - 1); v48 = *v46; if ( (unsigned int)*v46 >= 0xFFFFFFF7 ) ++*v47; *v43 = v47; v43[1] = v48; v43 += 2; v46 += 2; --v45; } while ( v45 ); } if ( v78 ) { v62 = 0LL; do { v63 = *(_DWORD **)(a5 + v62 * 8 + 32); v64 = *(_QWORD *)(a5 + v62 * 8 + 40); if ( (unsigned int)v64 >= 0xFFFFFFF7 ) ++*v63; v43[v62] = v63; v43[v62 + 1] = v64; v62 += 2LL; } while ( 2 * v78 != v62 ); v43 = (_QWORD *)((char *)v43 + v62 * 8); } v65 = v76 + v71; if ( v76 + v71 < v31 ) { v66 = (long long *)(16 * v65 + v44 + 8); do { v67 = (_DWORD *)*(v66 - 1); v68 = *v66; if ( (unsigned int)*v66 >= 0xFFFFFFF7 ) ++*v67; *v43 = v67; v43[1] = v68; ++v65; v43 += 2; v66 += 2; } while ( v65 < v31 ); } } else { v79 = v31; if ( v71 > 0 ) { v25 = 0LL; v50 = 0LL; while ( 1 ) { v73 = v43; if ( (unsigned int)JS_TryGetPropertyInt64(a1, v17, v19, v50, (long long)v43) == -1 ) break; ++v50; v43 = v73 + 2; v51 = v71; if ( v71 == v50 ) { v31 = v79; goto LABEL_43; } } v37 = v72; v39 = v72; v40 = v75; goto LABEL_61; } v51 = 0LL; LABEL_43: if ( v78 ) { v52 = 0LL; do { v53 = *(_DWORD **)(a5 + v52 * 8 + 32); v54 = *(_QWORD *)(a5 + v52 * 8 + 40); if ( (unsigned int)v54 >= 0xFFFFFFF7 ) ++*v53; v43[v52] = v53; v43[v52 + 1] = v54; v52 += 2LL; } while ( 2 * v78 != v52 ); v43 = (_QWORD *)((char *)v43 + v52 * 8); } v55 = v76 + v51; if ( v55 < v31 ) { v25 = 0LL; while ( 1 ) { v49 = v43; v56 = v55; if ( (unsigned int)JS_TryGetPropertyInt64(a1, v17, v19, v55, (long long)v43) == -1 ) break; v43 = v49 + 2; v55 = v56 + 1; if ( v56 + 1 >= v79 ) goto LABEL_53; } v37 = v72; v39 = v72; v40 = v75; v20 = (long long)v74; goto LABEL_62; } } LABEL_53: v73 = v43; v57 = (double)(int)v77; if ( !(v77 >> 31) ) *(_QWORD *)&v57 = (unsigned int)v77; v58 = 7LL; if ( !(v77 >> 31) ) v58 = v77 >> 31; v83.m128_u64[0] = v72; v83.m128_u64[1] = v75; v25 = 0LL; if ( (int)JS_SetPropertyInternal2( a1, v72, v75, 0x32u, *(long long *)&v57, v58, v83, a8, a9, a10, v41, v42, a13, a14, v72, v75, 0x4000u, 0LL) < 0 ) { v39 = v72; v40 = v75; v37 = v72; } else { v39 = 0; v25 = v72; v37 = v72; v40 = 3LL; } LABEL_61: v20 = (long long)v74; v49 = v73; goto LABEL_62; } v20 = 0LL; v49 = 0LL; v25 = v37; LABEL_62: while ( v49 != (_QWORD *)v20 ) { *(_DWORD *)v49 = 0; v49[1] = 3LL; v49 += 2; } v38 = v40; LABEL_65: v26 = *(_QWORD *)(a1 + 24); if ( (unsigned int)v38 >= 0xFFFFFFF7 ) { v59 = (_QWORD *)(v37 & 0xFFFFFFFF00000000LL | v39); v60 = *(_DWORD *)v59; v61 = (unsigned int)(*(_DWORD *)v59 - 1); *(_DWORD *)v59 = v61; if ( v60 <= 1 ) { v24 = (long long *)(a1 + 24); js_free_value_rt(v26, v59, v38, v61, v20, v21); goto LABEL_3; } } LABEL_4: if ( (unsigned int)v19 >= 0xFFFFFFF7 ) { v27 = *(_DWORD *)v17; v28 = (unsigned int)(*(_DWORD *)v17 - 1); *(_DWORD *)v17 = v28; if ( v27 <= 1 ) js_free_value_rt(v26, (_QWORD *)v17, v19, v28, v20, v21); } return v25; }
js_array_toSpliced: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R13,R8 MOV R12D,ECX MOV R15,RDI CALL 0x0012b520 MOV RBX,RAX MOV R14,RDX LEA RSI,[RSP + 0x80] MOV RDI,R15 MOV RDX,RAX MOV RCX,R14 CALL 0x00127327 TEST EAX,EAX JZ 0x0017deba LAB_0017de76: ADD R15,0x18 MOV R12D,0x6 XOR EBP,EBP LAB_0017de82: MOV RDI,qword ptr [R15] LAB_0017de85: CMP R14D,-0x9 JC 0x0017dea2 MOV EAX,dword ptr [RBX] LEA ECX,[RAX + -0x1] MOV dword ptr [RBX],ECX CMP EAX,0x1 JG 0x0017dea2 MOV RSI,RBX MOV RDX,R14 CALL 0x001259d8 LAB_0017dea2: MOV RAX,RBP MOV RDX,R12 ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017deba: MOV qword ptr [RSP + 0x78],0x0 XOR ESI,ESI MOV RBP,qword ptr [RSP + 0x80] TEST R12D,R12D JLE 0x0017df46 MOV RDX,qword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] MOV qword ptr [RSP],RBP LEA RSI,[RSP + 0x78] MOV RDI,R15 XOR R8D,R8D MOV R9,RBP CALL 0x0012bf22 TEST EAX,EAX JNZ 0x0017de76 MOV RCX,qword ptr [RSP + 0x78] MOV R9,RBP SUB R9,RCX MOV qword ptr [RSP + 0x70],R9 CMP R12D,0x1 JZ 0x0017df42 MOV qword ptr [RSP + 0x28],RCX MOV RDX,qword ptr [R13 + 0x10] MOV RCX,qword ptr [R13 + 0x18] MOV qword ptr [RSP],0x0 LEA RSI,[RSP + 0x70] MOV RDI,R15 XOR R8D,R8D CALL 0x0012bf22 TEST EAX,EAX JNZ 0x0017de76 MOV R9,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x28] LAB_0017df42: XOR ESI,ESI JMP 0x0017df4b LAB_0017df46: XOR ECX,ECX XOR R9D,R9D LAB_0017df4b: LEA EAX,[R12 + -0x2] CMP R12D,0x3 CMOVGE ESI,EAX LEA RDX,[RSI + RBP*0x1] SUB RDX,R9 MOV RAX,0x100000000 CMP RDX,RAX JL 0x0017df93 LEA RSI,[0x1a63a6] MOV RDI,R15 XOR EAX,EAX SHR RDX,0x35 JZ 0x0017df89 CALL 0x00126d97 JMP 0x0017de76 LAB_0017df89: CALL 0x00125238 JMP 0x0017de76 LAB_0017df93: MOV qword ptr [RSP + 0x50],R9 MOV qword ptr [RSP + 0x60],RSI MOV qword ptr [RSP + 0x58],RDX MOV qword ptr [RSP + 0x28],RCX MOV RSI,qword ptr [R15 + 0x38] INC dword ptr [RSI] MOV RDI,R15 MOV EDX,0x2 CALL 0x0010f7ec MOV R12D,0x6 XOR ESI,ESI CMP EDX,0x6 JNZ 0x0017dfd0 MOV ESI,EAX XOR EBP,EBP JMP 0x0017e23d LAB_0017dfd0: MOV EDI,0x3 MOV RCX,qword ptr [RSP + 0x58] TEST RCX,RCX JLE 0x0017e077 MOV qword ptr [RSP + 0x48],RDX MOV RDI,R15 MOV RSI,RAX MOV EDX,ECX MOV qword ptr [RSP + 0x30],RAX CALL 0x00143216 TEST EAX,EAX JS 0x0017e0d3 MOV RCX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RSP + 0x58] MOV dword ptr [RCX + 0x40],EAX MOV R8,qword ptr [RCX + 0x38] SHL RAX,0x4 ADD RAX,R8 MOV qword ptr [RSP + 0x40],RAX CMP R14D,-0x1 JNZ 0x0017e085 CMP word ptr [RBX + 0x6],0x2 JNZ 0x0017e085 TEST byte ptr [RBX + 0x5],0x8 JZ 0x0017e085 MOV EAX,dword ptr [RBX + 0x40] CMP RBP,RAX JNZ 0x0017e085 MOV RAX,qword ptr [RBX + 0x38] MOV RDX,qword ptr [RSP + 0x28] TEST RDX,RDX JLE 0x0017e292 LEA RCX,[RAX + 0x8] LAB_0017e050: MOV RSI,qword ptr [RCX + -0x8] MOV RDI,qword ptr [RCX] CMP EDI,-0x9 JC 0x0017e05e INC dword ptr [RSI] LAB_0017e05e: MOV qword ptr [R8],RSI MOV qword ptr [R8 + 0x8],RDI ADD R8,0x10 ADD RCX,0x10 DEC RDX JNZ 0x0017e050 JMP 0x0017e29b LAB_0017e077: XOR R8D,R8D XOR R13D,R13D MOV RBP,RAX JMP 0x0017e216 LAB_0017e085: CMP qword ptr [RSP + 0x28],0x0 MOV qword ptr [RSP + 0x68],RBP JLE 0x0017e0e6 XOR EBP,EBP XOR R12D,R12D LAB_0017e097: MOV qword ptr [RSP + 0x38],R8 MOV RDI,R15 MOV RSI,RBX MOV RDX,R14 MOV RCX,R12 CALL 0x001535d2 CMP EAX,-0x1 JZ 0x0017e1eb INC R12 MOV R8,qword ptr [RSP + 0x38] ADD R8,0x10 MOV RCX,qword ptr [RSP + 0x28] CMP RCX,R12 JNZ 0x0017e097 MOV RBP,qword ptr [RSP + 0x68] JMP 0x0017e0e8 LAB_0017e0d3: XOR EBP,EBP MOV RAX,qword ptr [RSP + 0x30] MOV ESI,EAX MOV RDX,qword ptr [RSP + 0x48] JMP 0x0017e23d LAB_0017e0e6: XOR ECX,ECX LAB_0017e0e8: MOV RDI,qword ptr [RSP + 0x60] TEST RDI,RDI MOV R9,qword ptr [RSP + 0x50] JZ 0x0017e123 SHL RDI,0x4 XOR EAX,EAX LAB_0017e0fd: MOV RSI,qword ptr [R13 + RAX*0x1 + 0x20] MOV RDX,qword ptr [R13 + RAX*0x1 + 0x28] CMP EDX,-0x9 JC 0x0017e10e INC dword ptr [RSI] LAB_0017e10e: MOV qword ptr [R8 + RAX*0x1],RSI MOV qword ptr [R8 + RAX*0x1 + 0x8],RDX ADD RAX,0x10 CMP RDI,RAX JNZ 0x0017e0fd ADD R8,RAX LAB_0017e123: ADD RCX,R9 CMP RCX,RBP JGE 0x0017e15e XOR EBP,EBP LAB_0017e12d: MOV RDI,R15 MOV RSI,RBX MOV RDX,R14 MOV R13,R8 MOV R12,RCX CALL 0x001535d2 CMP EAX,-0x1 JZ 0x0017e27a INC R12 ADD R13,0x10 CMP R12,qword ptr [RSP + 0x68] MOV R8,R13 MOV RCX,R12 JL 0x0017e12d LAB_0017e15e: MOV qword ptr [RSP + 0x38],R8 MOV RDX,qword ptr [RSP + 0x58] MOV RAX,RDX SHR RAX,0x1f MOV ECX,EDX CVTSI2SD XMM0,RDX MOVQ R8,XMM0 CMOVZ R8,RCX MOV R9D,0x7 CMOVZ R9,RAX MOV R13,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x88],R13 MOV R12,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x90],R12 MOVUPS XMM0,xmmword ptr [RSP + 0x88] MOVUPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x18],0x0 MOV dword ptr [RSP + 0x10],0x4000 MOV RDI,R15 MOV RSI,R13 MOV RDX,R12 MOV ECX,0x32 CALL 0x001289c7 XOR EBP,EBP TEST EAX,EAX JS 0x0017e1fe XOR ESI,ESI MOV RBP,R13 MOV RDX,R12 MOV RAX,R13 MOV EDI,0x3 JMP 0x0017e20c LAB_0017e1eb: MOV RAX,qword ptr [RSP + 0x30] MOV ESI,EAX MOV RDI,qword ptr [RSP + 0x48] MOV EDX,0x6 JMP 0x0017e20c LAB_0017e1fe: MOV ESI,R13D MOV RDI,R12 MOV EDX,0x6 MOV RAX,R13 LAB_0017e20c: MOV R8,qword ptr [RSP + 0x40] MOV R13,qword ptr [RSP + 0x38] LAB_0017e216: CMP R13,R8 JZ 0x0017e237 LAB_0017e21b: MOV dword ptr [R13],0x0 MOV qword ptr [R13 + 0x8],0x3 LEA RCX,[R13 + 0x10] MOV R13,RCX CMP RCX,R8 JNZ 0x0017e21b LAB_0017e237: MOV R12,RDX MOV RDX,RDI LAB_0017e23d: MOV RDI,qword ptr [R15 + 0x18] CMP EDX,-0x9 JC 0x0017de85 MOV RCX,-0x100000000 AND RAX,RCX MOV ESI,ESI OR RSI,RAX MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x0017de85 ADD R15,0x18 CALL 0x001259d8 JMP 0x0017de82 LAB_0017e27a: MOV RAX,qword ptr [RSP + 0x30] MOV ESI,EAX MOV RDI,qword ptr [RSP + 0x48] MOV EDX,0x6 MOV R8,qword ptr [RSP + 0x40] JMP 0x0017e216 LAB_0017e292: MOV qword ptr [RSP + 0x28],0x0 LAB_0017e29b: MOV RDI,qword ptr [RSP + 0x60] TEST RDI,RDI JZ 0x0017e2d1 SHL RDI,0x4 XOR ECX,ECX LAB_0017e2ab: MOV RDX,qword ptr [R13 + RCX*0x1 + 0x20] MOV RSI,qword ptr [R13 + RCX*0x1 + 0x28] CMP ESI,-0x9 JC 0x0017e2bc INC dword ptr [RDX] LAB_0017e2bc: MOV qword ptr [R8 + RCX*0x1],RDX MOV qword ptr [R8 + RCX*0x1 + 0x8],RSI ADD RCX,0x10 CMP RDI,RCX JNZ 0x0017e2ab ADD R8,RCX LAB_0017e2d1: MOV RDI,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x50] ADD RDI,RCX CMP RDI,RBP JGE 0x0017e15e MOV RSI,RBP MOV RCX,RDI SHL RCX,0x4 ADD RAX,RCX ADD RAX,0x8 LAB_0017e2f8: MOV RCX,qword ptr [RAX + -0x8] MOV RDX,qword ptr [RAX] CMP EDX,-0x9 JC 0x0017e306 INC dword ptr [RCX] LAB_0017e306: MOV qword ptr [R8],RCX MOV qword ptr [R8 + 0x8],RDX INC RDI ADD R8,0x10 ADD RAX,0x10 CMP RDI,RSI JL 0x0017e2f8 JMP 0x0017e15e
int1 [16] js_array_toSpliced(long param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5) { bool bVar1; int iVar2; int *piVar3; ulong uVar4; int8 *puVar5; int8 uVar6; ulong uVar7; long lVar8; uint uVar9; ulong uVar10; int *piVar11; int8 uVar12; int8 *puVar13; double dVar14; int8 *puVar15; long lVar16; int8 uVar17; long lVar18; int1 auVar19 [16]; int1 auVar20 [16]; long local_a0; long local_58; long local_50; ulong local_48; int1 local_40 [16]; auVar19 = JS_ToObject(); uVar6 = auVar19._8_8_; piVar3 = auVar19._0_8_; iVar2 = js_get_length64(param_1,&local_48,piVar3); if (iVar2 == 0) { local_50 = 0; if (param_4 < 1) { local_a0 = 0; lVar16 = 0; } else { iVar2 = JS_ToInt64Clamp(param_1,&local_50,*param_5,param_5[1],0,local_48,local_48); local_a0 = local_50; if ((iVar2 != 0) || ((local_58 = local_48 - local_50, lVar16 = local_58, param_4 != 1 && (iVar2 = JS_ToInt64Clamp(param_1,&local_58,param_5[2],param_5[3],0,local_58,0), lVar16 = local_58, iVar2 != 0)))) goto LAB_0017de76; } uVar10 = 0; if (2 < param_4) { uVar10 = (ulong)(param_4 - 2); } uVar7 = (uVar10 + local_48) - lVar16; if (0xffffffff < (long)uVar7) { if (uVar7 >> 0x35 == 0) { JS_ThrowRangeError(param_1,"invalid array length"); } else { JS_ThrowTypeError(); } goto LAB_0017de76; } piVar11 = *(int **)(param_1 + 0x38); *piVar11 = *piVar11 + 1; auVar20 = JS_NewObjectFromShape(param_1,piVar11,2); uVar12 = auVar20._8_8_; uVar4 = auVar20._0_8_; uVar9 = auVar20._0_4_; if (auVar20._8_4_ == 6) { auVar20 = ZEXT816(6) << 0x40; } else { if ((long)uVar7 < 1) { puVar13 = (int8 *)0x0; puVar15 = (int8 *)0x0; uVar9 = 0; uVar12 = 3; } else { iVar2 = expand_fast_array(param_1,uVar4,uVar7 & 0xffffffff); if (iVar2 < 0) { auVar20 = ZEXT816(6) << 0x40; goto LAB_0017e23d; } *(int *)(uVar4 + 0x40) = (int)uVar7; puVar15 = *(int8 **)(uVar4 + 0x38); puVar13 = puVar15 + uVar7 * 2; if ((((auVar19._8_4_ == 0xffffffff) && (*(short *)((long)piVar3 + 6) == 2)) && ((*(byte *)((long)piVar3 + 5) & 8) != 0)) && (local_48 == (uint)piVar3[0x10])) { lVar18 = *(long *)(piVar3 + 0xe); if (local_a0 < 1) { local_a0 = 0; } else { puVar5 = (int8 *)(lVar18 + 8); lVar8 = local_a0; do { piVar11 = (int *)puVar5[-1]; uVar17 = *puVar5; if (0xfffffff6 < (uint)uVar17) { *piVar11 = *piVar11 + 1; } *puVar15 = piVar11; puVar15[1] = uVar17; puVar15 = puVar15 + 2; puVar5 = puVar5 + 2; lVar8 = lVar8 + -1; } while (lVar8 != 0); } if (uVar10 != 0) { lVar8 = 0; do { piVar11 = *(int **)((long)param_5 + lVar8 + 0x20); uVar17 = *(int8 *)((long)param_5 + lVar8 + 0x28); if (0xfffffff6 < (uint)uVar17) { *piVar11 = *piVar11 + 1; } *(int **)((long)puVar15 + lVar8) = piVar11; *(int8 *)((long)puVar15 + lVar8 + 8) = uVar17; lVar8 = lVar8 + 0x10; } while (uVar10 << 4 != lVar8); puVar15 = (int8 *)((long)puVar15 + lVar8); } local_a0 = local_a0 + lVar16; if (local_a0 < (long)local_48) { puVar5 = (int8 *)(lVar18 + local_a0 * 0x10 + 8); do { piVar11 = (int *)puVar5[-1]; uVar17 = *puVar5; if (0xfffffff6 < (uint)uVar17) { *piVar11 = *piVar11 + 1; } *puVar15 = piVar11; puVar15[1] = uVar17; local_a0 = local_a0 + 1; puVar15 = puVar15 + 2; puVar5 = puVar5 + 2; } while (local_a0 < (long)local_48); } } else { if (local_a0 < 1) { local_a0 = 0; } else { lVar18 = 0; do { iVar2 = JS_TryGetPropertyInt64(param_1,piVar3,uVar6,lVar18); if (iVar2 == -1) { auVar20 = ZEXT816(6) << 0x40; goto joined_r0x0017e219; } lVar18 = lVar18 + 1; puVar15 = puVar15 + 2; } while (local_a0 != lVar18); } if (uVar10 != 0) { lVar18 = 0; do { piVar11 = *(int **)((long)param_5 + lVar18 + 0x20); uVar17 = *(int8 *)((long)param_5 + lVar18 + 0x28); if (0xfffffff6 < (uint)uVar17) { *piVar11 = *piVar11 + 1; } *(int **)((long)puVar15 + lVar18) = piVar11; *(int8 *)((long)puVar15 + lVar18 + 8) = uVar17; lVar18 = lVar18 + 0x10; } while (uVar10 << 4 != lVar18); puVar15 = (int8 *)((long)puVar15 + lVar18); } for (local_a0 = local_a0 + lVar16; local_a0 < (long)local_48; local_a0 = local_a0 + 1) { iVar2 = JS_TryGetPropertyInt64(param_1,piVar3,uVar6); if (iVar2 == -1) { auVar20 = ZEXT816(6) << 0x40; goto joined_r0x0017e219; } puVar15 = puVar15 + 2; } } bVar1 = uVar7 >> 0x1f == 0; dVar14 = (double)(long)uVar7; if (bVar1) { dVar14 = (double)(uVar7 & 0xffffffff); } uVar17 = 7; if (bVar1) { uVar17 = 0; } local_40 = auVar20; iVar2 = JS_SetPropertyInternal2 (param_1,uVar4,uVar12,0x32,dVar14,uVar17,uVar4,auVar20._8_4_,0x4000,0); if (iVar2 < 0) { auVar20 = ZEXT816(6) << 0x40; } else { uVar9 = 0; uVar12 = 3; } } joined_r0x0017e219: for (; puVar15 != puVar13; puVar15 = puVar15 + 2) { *(int4 *)puVar15 = 0; puVar15[1] = 3; } } LAB_0017e23d: uVar17 = *(int8 *)(param_1 + 0x18); if (((uint)uVar12 < 0xfffffff7) || (piVar11 = (int *)((ulong)uVar9 | uVar4 & 0xffffffff00000000), iVar2 = *piVar11, *piVar11 = iVar2 + -1, 1 < iVar2)) goto LAB_0017de85; js_free_value_rt(uVar17); } else { LAB_0017de76: auVar20 = ZEXT816(6) << 0x40; } uVar17 = *(int8 *)(param_1 + 0x18); LAB_0017de85: if ((0xfffffff6 < auVar19._8_4_) && (iVar2 = *piVar3, *piVar3 = iVar2 + -1, iVar2 < 2)) { js_free_value_rt(uVar17,piVar3,uVar6); } return auVar20; }
3,830
ft_free_stopwords
eloqsql/storage/myisam/ft_stopwords.c
void ft_free_stopwords() { DBUG_ENTER("ft_free_stopwords"); if (stopwords3) { delete_tree(stopwords3, 0); /* purecov: inspected */ my_free(stopwords3); stopwords3=0; } ft_stopword_file= 0; DBUG_VOID_RETURN; }
O3
c
ft_free_stopwords: pushq %rbp movq %rsp, %rbp movq 0xb927a0(%rip), %rdi # 0xc05620 testq %rdi, %rdi je 0x72ea3 xorl %esi, %esi callq 0xa9046 movq 0xb9278d(%rip), %rdi # 0xc05620 callq 0xa4926 movq $0x0, 0xb9277d(%rip) # 0xc05620 leaq 0xb9276e(%rip), %rax # 0xc05618 movq $0x0, (%rax) popq %rbp retq nop
ft_free_stopwords: push rbp mov rbp, rsp mov rdi, cs:stopwords3 test rdi, rdi jz short loc_72EA3 xor esi, esi call delete_tree mov rdi, cs:stopwords3 call my_free mov cs:stopwords3, 0 loc_72EA3: lea rax, ft_stopword_file mov qword ptr [rax], 0 pop rbp retn
_BYTE **ft_free_stopwords() { _BYTE **result; // rax if ( stopwords3 ) { delete_tree(stopwords3, 0LL); my_free(stopwords3); stopwords3 = 0LL; } result = &ft_stopword_file; ft_stopword_file = 0LL; return result; }
ft_free_stopwords: PUSH RBP MOV RBP,RSP MOV RDI,qword ptr [0x00d05620] TEST RDI,RDI JZ 0x00172ea3 XOR ESI,ESI CALL 0x001a9046 MOV RDI,qword ptr [0x00d05620] CALL 0x001a4926 MOV qword ptr [0x00d05620],0x0 LAB_00172ea3: LEA RAX,[0xd05618] MOV qword ptr [RAX],0x0 POP RBP RET
void ft_free_stopwords(void) { if (stopwords3 != 0) { delete_tree(stopwords3,0); my_free(stopwords3); stopwords3 = 0; } ft_stopword_file = 0; return; }
3,831
mi_search_first
eloqsql/storage/myisam/mi_search.c
int _mi_search_first(register MI_INFO *info, register MI_KEYDEF *keyinfo, register my_off_t pos) { uint nod_flag; uchar *page; DBUG_ENTER("_mi_search_first"); if (pos == HA_OFFSET_ERROR) { my_errno=HA_ERR_KEY_NOT_FOUND; info->lastpos= HA_OFFSET_ERROR; DBUG_RETURN(-1); } do { if (!_mi_fetch_keypage(info,keyinfo,pos,DFLT_INIT_HITS,info->buff,0)) { info->lastpos= HA_OFFSET_ERROR; DBUG_RETURN(-1); } nod_flag=mi_test_if_nod(info->buff); page=info->buff+2+nod_flag; } while ((pos=_mi_kpos(nod_flag,page)) != HA_OFFSET_ERROR); if (!(info->lastkey_length=(*keyinfo->get_key)(keyinfo,nod_flag,&page, info->lastkey))) DBUG_RETURN(-1); /* Crashed */ info->int_keypos=page; info->int_maxpos=info->buff+mi_getint(info->buff)-1; info->int_nod_flag=nod_flag; info->int_keytree_version=keyinfo->version; info->last_search_keypage=info->last_keypage; info->page_changed=info->buff_used=0; info->lastpos=_mi_dpos(info,0,info->lastkey+info->lastkey_length); DBUG_PRINT("exit",("found key at %lu", (ulong) info->lastpos)); DBUG_RETURN(0); }
O0
c
mi_search_first: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) cmpq $-0x1, -0x20(%rbp) jne 0xc2081 callq 0xf6060 movl $0x78, (%rax) movq -0x10(%rbp), %rax movq $-0x1, 0x170(%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xc2253 jmp 0xc2083 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x10(%rbp), %rax movq 0x100(%rax), %r8 movl $0x3, %ecx xorl %r9d, %r9d callq 0xbdd70 cmpq $0x0, %rax jne 0xc20c8 movq -0x10(%rbp), %rax movq $-0x1, 0x170(%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xc2253 movq -0x10(%rbp), %rax movq 0x100(%rax), %rax movzbl (%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0xc20f2 movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x17c(%rax), %eax movl %eax, -0x34(%rbp) jmp 0xc20f9 xorl %eax, %eax movl %eax, -0x34(%rbp) jmp 0xc20f9 movl -0x34(%rbp), %eax movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rax movq 0x100(%rax), %rax addq $0x2, %rax movl -0x24(%rbp), %ecx addq %rcx, %rax movq %rax, -0x30(%rbp) movl -0x24(%rbp), %edi movq -0x30(%rbp), %rsi callq 0xbece0 movq %rax, -0x20(%rbp) cmpq $-0x1, %rax jne 0xc2083 movq -0x18(%rbp), %rax movq 0x48(%rax), %rax movq -0x18(%rbp), %rdi movl -0x24(%rbp), %esi movq -0x10(%rbp), %rcx movq 0x108(%rcx), %rcx leaq -0x30(%rbp), %rdx callq *%rax movq -0x10(%rbp), %rcx movl %eax, 0x1d8(%rcx) cmpl $0x0, %eax jne 0xc216f jmp 0xc2163 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xc2253 movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x128(%rax) movq -0x10(%rbp), %rax movq 0x100(%rax), %rcx movq -0x10(%rbp), %rax movq 0x100(%rax), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x10(%rbp), %rdx movq 0x100(%rdx), %rdx movzbl (%rdx), %edx movzwl %dx, %edx shll $0x8, %edx orl %edx, %eax movzwl %ax, %eax andl $0x7fff, %eax # imm = 0x7FFF movl %eax, %eax addq %rax, %rcx addq $-0x1, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x130(%rax) movl -0x24(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x138(%rax) movq -0x18(%rbp), %rax movl 0x1c(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x13c(%rax) movq -0x10(%rbp), %rax movq 0x190(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x198(%rax) movq -0x10(%rbp), %rax movb $0x0, 0x33d(%rax) movq -0x10(%rbp), %rax movb $0x0, 0x33c(%rax) movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x108(%rax), %rdx movq -0x10(%rbp), %rax movl 0x1d8(%rax), %eax addq %rax, %rdx xorl %esi, %esi callq 0xbef60 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x170(%rax) jmp 0xc224a jmp 0xc224c movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopl (%rax)
_mi_search_first: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx cmp [rbp+var_20], 0FFFFFFFFFFFFFFFFh jnz short loc_C2081 call _my_thread_var mov dword ptr [rax], 78h ; 'x' mov rax, [rbp+var_10] mov qword ptr [rax+170h], 0FFFFFFFFFFFFFFFFh mov [rbp+var_4], 0FFFFFFFFh jmp loc_C2253 loc_C2081: jmp short $+2 loc_C2083: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] mov rax, [rbp+var_10] mov r8, [rax+100h] mov ecx, 3 xor r9d, r9d call _mi_fetch_keypage cmp rax, 0 jnz short loc_C20C8 mov rax, [rbp+var_10] mov qword ptr [rax+170h], 0FFFFFFFFFFFFFFFFh mov [rbp+var_4], 0FFFFFFFFh jmp loc_C2253 loc_C20C8: mov rax, [rbp+var_10] mov rax, [rax+100h] movzx eax, byte ptr [rax] and eax, 80h cmp eax, 0 jz short loc_C20F2 mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax+17Ch] mov [rbp+var_34], eax jmp short loc_C20F9 loc_C20F2: xor eax, eax mov [rbp+var_34], eax jmp short $+2 loc_C20F9: mov eax, [rbp+var_34] mov [rbp+var_24], eax mov rax, [rbp+var_10] mov rax, [rax+100h] add rax, 2 mov ecx, [rbp+var_24] add rax, rcx mov [rbp+var_30], rax mov edi, [rbp+var_24] mov rsi, [rbp+var_30] call _mi_kpos mov [rbp+var_20], rax cmp rax, 0FFFFFFFFFFFFFFFFh jnz loc_C2083 mov rax, [rbp+var_18] mov rax, [rax+48h] mov rdi, [rbp+var_18] mov esi, [rbp+var_24] mov rcx, [rbp+var_10] mov rcx, [rcx+108h] lea rdx, [rbp+var_30] call rax mov rcx, [rbp+var_10] mov [rcx+1D8h], eax cmp eax, 0 jnz short loc_C216F jmp short $+2 loc_C2163: mov [rbp+var_4], 0FFFFFFFFh jmp loc_C2253 loc_C216F: mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax+128h], rcx mov rax, [rbp+var_10] mov rcx, [rax+100h] mov rax, [rbp+var_10] mov rax, [rax+100h] movzx eax, byte ptr [rax+1] movzx eax, ax mov rdx, [rbp+var_10] mov rdx, [rdx+100h] movzx edx, byte ptr [rdx] movzx edx, dx shl edx, 8 or eax, edx movzx eax, ax and eax, 7FFFh mov eax, eax add rcx, rax add rcx, 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_10] mov [rax+130h], rcx mov ecx, [rbp+var_24] mov rax, [rbp+var_10] mov [rax+138h], ecx mov rax, [rbp+var_18] mov ecx, [rax+1Ch] mov rax, [rbp+var_10] mov [rax+13Ch], ecx mov rax, [rbp+var_10] mov rcx, [rax+190h] mov rax, [rbp+var_10] mov [rax+198h], rcx mov rax, [rbp+var_10] mov byte ptr [rax+33Dh], 0 mov rax, [rbp+var_10] mov byte ptr [rax+33Ch], 0 mov rdi, [rbp+var_10] mov rax, [rbp+var_10] mov rdx, [rax+108h] mov rax, [rbp+var_10] mov eax, [rax+1D8h] add rdx, rax xor esi, esi call _mi_dpos mov rcx, rax mov rax, [rbp+var_10] mov [rax+170h], rcx jmp short $+2 loc_C224A: jmp short $+2 loc_C224C: mov [rbp+var_4], 0 loc_C2253: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long mi_search_first(_QWORD *a1, const char *a2, long long a3) { int v3; // eax long long v4; // rax unsigned int v6; // [rsp+Ch] [rbp-34h] long long v7; // [rsp+10h] [rbp-30h] BYREF unsigned int v8; // [rsp+1Ch] [rbp-24h] long long v9; // [rsp+20h] [rbp-20h] const char *v10; // [rsp+28h] [rbp-18h] _QWORD *v11; // [rsp+30h] [rbp-10h] v11 = a1; v10 = a2; v9 = a3; if ( a3 == -1 ) { *(_DWORD *)my_thread_var(a1, a2) = 120; v11[46] = -1LL; return (unsigned int)-1; } else { do { if ( !mi_fetch_keypage(v11, (long long)v10, v9, 3, v11[32], 0) ) { v11[46] = -1LL; return (unsigned int)-1; } if ( (*(_BYTE *)v11[32] & 0x80) != 0 ) v6 = *(_DWORD *)(*v11 + 380LL); else v6 = 0; v8 = v6; v7 = v6 + v11[32] + 2LL; v9 = mi_kpos(v6, v7); } while ( v9 != -1 ); v3 = (*((long long ( **)(const char *, _QWORD, long long *, _QWORD))v10 + 9))(v10, v8, &v7, v11[33]); *((_DWORD *)v11 + 118) = v3; if ( v3 ) { v11[37] = v7; v11[38] = (_byteswap_ushort(*(_WORD *)v11[32]) & 0x7FFF) + v11[32] - 1LL; *((_DWORD *)v11 + 78) = v8; *((_DWORD *)v11 + 79) = *((_DWORD *)v10 + 7); v11[51] = v11[50]; *((_BYTE *)v11 + 829) = 0; *((_BYTE *)v11 + 828) = 0; v4 = mi_dpos((long long)v11, 0, *((unsigned int *)v11 + 118) + v11[33]); v11[46] = v4; return 0; } else { return (unsigned int)-1; } } }
_mi_search_first: 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 CMP qword ptr [RBP + -0x20],-0x1 JNZ 0x001c2081 CALL 0x001f6060 MOV dword ptr [RAX],0x78 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x170],-0x1 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001c2253 LAB_001c2081: JMP 0x001c2083 LAB_001c2083: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV R8,qword ptr [RAX + 0x100] MOV ECX,0x3 XOR R9D,R9D CALL 0x001bdd70 CMP RAX,0x0 JNZ 0x001c20c8 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x170],-0x1 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001c2253 LAB_001c20c8: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100] MOVZX EAX,byte ptr [RAX] AND EAX,0x80 CMP EAX,0x0 JZ 0x001c20f2 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x17c] MOV dword ptr [RBP + -0x34],EAX JMP 0x001c20f9 LAB_001c20f2: XOR EAX,EAX MOV dword ptr [RBP + -0x34],EAX JMP 0x001c20f9 LAB_001c20f9: MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100] ADD RAX,0x2 MOV ECX,dword ptr [RBP + -0x24] ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV EDI,dword ptr [RBP + -0x24] MOV RSI,qword ptr [RBP + -0x30] CALL 0x001bece0 MOV qword ptr [RBP + -0x20],RAX CMP RAX,-0x1 JNZ 0x001c2083 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x48] MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x108] LEA RDX,[RBP + -0x30] CALL RAX MOV RCX,qword ptr [RBP + -0x10] MOV dword ptr [RCX + 0x1d8],EAX CMP EAX,0x0 JNZ 0x001c216f JMP 0x001c2163 LAB_001c2163: MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001c2253 LAB_001c216f: MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x128],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x100] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RDX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RDX + 0x100] MOVZX EDX,byte ptr [RDX] MOVZX EDX,DX SHL EDX,0x8 OR EAX,EDX MOVZX EAX,AX AND EAX,0x7fff MOV EAX,EAX ADD RCX,RAX ADD RCX,-0x1 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x130],RCX MOV ECX,dword ptr [RBP + -0x24] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x138],ECX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x1c] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x13c],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x190] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x198],RCX MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x33d],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x33c],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x108] MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x1d8] ADD RDX,RAX XOR ESI,ESI CALL 0x001bef60 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x170],RCX JMP 0x001c224a LAB_001c224a: JMP 0x001c224c LAB_001c224c: MOV dword ptr [RBP + -0x4],0x0 LAB_001c2253: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int4 _mi_search_first(long *param_1,long param_2,long param_3) { int iVar1; int4 *puVar2; long lVar3; uint local_3c; long local_38; uint local_2c; long local_28; long local_20; long *local_18; int4 local_c; local_28 = param_3; local_20 = param_2; local_18 = param_1; if (param_3 == -1) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x78; local_18[0x2e] = -1; local_c = 0xffffffff; } else { do { lVar3 = _mi_fetch_keypage(local_18,local_20,local_28,3,local_18[0x20],0); if (lVar3 == 0) { local_18[0x2e] = -1; return 0xffffffff; } if ((*(byte *)local_18[0x20] & 0x80) == 0) { local_3c = 0; } else { local_3c = *(uint *)(*local_18 + 0x17c); } local_2c = local_3c; local_38 = local_18[0x20] + 2 + (ulong)local_3c; local_28 = _mi_kpos(local_3c,local_38); } while (local_28 != -1); iVar1 = (**(code **)(local_20 + 0x48))(local_20,local_2c,&local_38,local_18[0x21]); *(int *)(local_18 + 0x3b) = iVar1; if (iVar1 == 0) { local_c = 0xffffffff; } else { local_18[0x25] = local_38; local_18[0x26] = local_18[0x20] + (ulong)((uint)*(byte *)(local_18[0x20] + 1) | (*(byte *)local_18[0x20] & 0x7f) << 8) + -1 ; *(uint *)(local_18 + 0x27) = local_2c; *(int4 *)((long)local_18 + 0x13c) = *(int4 *)(local_20 + 0x1c); local_18[0x33] = local_18[0x32]; *(int1 *)((long)local_18 + 0x33d) = 0; *(int1 *)((long)local_18 + 0x33c) = 0; lVar3 = _mi_dpos(local_18,0,local_18[0x21] + (ulong)*(uint *)(local_18 + 0x3b)); local_18[0x2e] = lVar3; local_c = 0; } } return local_c; }
3,832
mul_by_xy0_fp6x2
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/fp12_tower.c
static void mul_by_xy0_fp6x2(vec768fp6 ret, const vec384fp6 a, const vec384fp6 b) { vec768x t0, t1; vec384x aa, bb; mul_fp2x2(t0, a[0], b[0]); mul_fp2x2(t1, a[1], b[1]); /* ret[0] = ((a1 + a2)*(b1 + 0) - a1*b1 - a2*0)*(u+1) + a0*b0 = (a1*0 + a2*b1)*(u+1) + a0*b0 */ mul_fp2x2(ret[1], a[2], b[1]); /* borrow ret[1] for a moment */ mul_by_u_plus_1_fp2x2(ret[0], ret[1]); add_fp2x2(ret[0], ret[0], t0); /* ret[1] = (a0 + a1)*(b0 + b1) - a0*b0 - a1*b1 + a2*0*(u+1) = a0*b1 + a1*b0 + a2*0*(u+1) */ add_fp2(aa, a[0], a[1]); add_fp2(bb, b[0], b[1]); mul_fp2x2(ret[1], aa, bb); sub_fp2x2(ret[1], ret[1], t0); sub_fp2x2(ret[1], ret[1], t1); /* ret[2] = (a0 + a2)*(b0 + 0) - a0*b0 - a2*0 + a1*b1 = a0*0 + a2*b0 + a1*b1 */ mul_fp2x2(ret[2], a[2], b[0]); add_fp2x2(ret[2], ret[2], t1); }
O1
c
mul_by_xy0_fp6x2: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x268, %rsp # imm = 0x268 movq %rdx, %r15 movq %rdx, -0x30(%rbp) movq %rsi, %r12 movq %rdi, %r14 leaq 0x17b8a(%rip), %rbx # 0x3fb20 leaq -0x110(%rbp), %rdi movq %rbx, %rcx callq 0x33b60 leaq 0x60(%r12), %rsi movq %rsi, -0x48(%rbp) movq %r12, %r13 movq %r12, -0x38(%rbp) addq $0x60, %r15 movq %r15, -0x40(%rbp) leaq -0x230(%rbp), %rdi movq %r15, %rdx movq %rbx, %rcx callq 0x33b60 movl $0xc0, %esi leaq (%r14,%rsi), %r12 addq %r13, %rsi movq %rsi, -0x50(%rbp) movq %r12, %rdi movq %r15, %rdx movq %rbx, %rcx callq 0x33b60 leaq 0x120(%r14), %r15 movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx movq %rbx, %rcx callq 0x30840 leaq 0x60(%r14), %r13 movq %r13, %rdi movq %r12, %rsi movq %r15, %rdx movq %rbx, %rcx callq 0x30720 movq %r14, %rdi movq %r14, %rsi leaq -0x110(%rbp), %rdx movq %rbx, %rcx callq 0x30720 leaq -0xb0(%rbp), %rdx movq %r13, %rdi movq %r13, %rsi movq %rbx, %rcx callq 0x30720 leaq -0x170(%rbp), %rdi movq -0x38(%rbp), %rsi movq -0x48(%rbp), %rdx movq %rbx, %rcx callq 0x2f460 leaq -0x290(%rbp), %r13 movq %r13, %rdi movq -0x30(%rbp), %rsi movq -0x40(%rbp), %rdx movq %rbx, %rcx callq 0x2f460 movq %r12, %rdi leaq -0x170(%rbp), %rsi movq %r13, %rdx movq %rbx, %rcx callq 0x33b60 movq %r12, %rdi movq %r12, %rsi leaq -0x110(%rbp), %rdx movq %rbx, %rcx callq 0x30840 movq %r15, %rdi movq %r15, %rsi leaq -0xb0(%rbp), %rdx movq %rbx, %rcx callq 0x30840 movq %r12, %rdi movq %r12, %rsi leaq -0x230(%rbp), %r13 movq %r13, %rdx movq %rbx, %rcx callq 0x30840 leaq -0x1d0(%rbp), %r12 movq %r15, %rdi movq %r15, %rsi movq %r12, %rdx movq %rbx, %rcx callq 0x30840 leaq 0x180(%r14), %r15 movq %r15, %rdi movq -0x50(%rbp), %rsi movq -0x30(%rbp), %rdx movq %rbx, %rcx callq 0x33b60 movq %r15, %rdi movq %r15, %rsi movq %r13, %rdx movq %rbx, %rcx callq 0x30720 addq $0x1e0, %r14 # imm = 0x1E0 movq %r14, %rdi movq %r14, %rsi movq %r12, %rdx movq %rbx, %rcx callq 0x30720 addq $0x268, %rsp # imm = 0x268 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
mul_by_xy0_fp6x2: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 268h mov r15, rdx mov [rbp+var_30], rdx mov r12, rsi mov r14, rdi lea rbx, BLS12_381_P lea rdi, [rbp+var_110] mov rcx, rbx call mul_382x lea rsi, [r12+60h] mov [rbp+var_48], rsi mov r13, r12 mov [rbp+var_38], r12 add r15, 60h ; '`' mov [rbp+var_40], r15 lea rdi, [rbp+var_230] mov rdx, r15 mov rcx, rbx call mul_382x mov esi, 0C0h lea r12, [r14+rsi] add rsi, r13 mov [rbp+var_50], rsi mov rdi, r12 mov rdx, r15 mov rcx, rbx call mul_382x lea r15, [r14+120h] mov rdi, r14 mov rsi, r12 mov rdx, r15 mov rcx, rbx call _sub_mod_384x384 lea r13, [r14+60h] mov rdi, r13 mov rsi, r12 mov rdx, r15 mov rcx, rbx call add_mod_384x384 mov rdi, r14 mov rsi, r14 lea rdx, [rbp+var_110] mov rcx, rbx call add_mod_384x384 lea rdx, [rbp+var_B0] mov rdi, r13 mov rsi, r13 mov rcx, rbx call add_mod_384x384 lea rdi, [rbp+var_170] mov rsi, [rbp+var_38] mov rdx, [rbp+var_48] mov rcx, rbx call add_mod_384x lea r13, [rbp+var_290] mov rdi, r13 mov rsi, [rbp+var_30] mov rdx, [rbp+var_40] mov rcx, rbx call add_mod_384x mov rdi, r12 lea rsi, [rbp+var_170] mov rdx, r13 mov rcx, rbx call mul_382x mov rdi, r12 mov rsi, r12 lea rdx, [rbp+var_110] mov rcx, rbx call _sub_mod_384x384 mov rdi, r15 mov rsi, r15 lea rdx, [rbp+var_B0] mov rcx, rbx call _sub_mod_384x384 mov rdi, r12 mov rsi, r12 lea r13, [rbp+var_230] mov rdx, r13 mov rcx, rbx call _sub_mod_384x384 lea r12, [rbp+var_1D0] mov rdi, r15 mov rsi, r15 mov rdx, r12 mov rcx, rbx call _sub_mod_384x384 lea r15, [r14+180h] mov rdi, r15 mov rsi, [rbp+var_50] mov rdx, [rbp+var_30] mov rcx, rbx call mul_382x mov rdi, r15 mov rsi, r15 mov rdx, r13 mov rcx, rbx call add_mod_384x384 add r14, 1E0h mov rdi, r14 mov rsi, r14 mov rdx, r12 mov rcx, rbx call add_mod_384x384 add rsp, 268h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mul_by_xy0_fp6x2(long long a1, long long a2, long long a3) { long long v3; // r15 _BYTE v6[96]; // [rsp+0h] [rbp-290h] BYREF _BYTE v7[96]; // [rsp+60h] [rbp-230h] BYREF _BYTE v8[96]; // [rsp+C0h] [rbp-1D0h] BYREF _BYTE v9[96]; // [rsp+120h] [rbp-170h] BYREF _BYTE v10[96]; // [rsp+180h] [rbp-110h] BYREF _BYTE v11[96]; // [rsp+1E0h] [rbp-B0h] BYREF long long v12; // [rsp+240h] [rbp-50h] long long v13; // [rsp+248h] [rbp-48h] long long v14; // [rsp+250h] [rbp-40h] long long v15; // [rsp+258h] [rbp-38h] long long v16; // [rsp+260h] [rbp-30h] v3 = a3; v16 = a3; mul_382x(v10, a2, a3, &BLS12_381_P); v13 = a2 + 96; v15 = a2; v3 += 96LL; v14 = v3; mul_382x(v7, a2 + 96, v3, &BLS12_381_P); v12 = a2 + 192; mul_382x(a1 + 192, a2 + 192, v3, &BLS12_381_P); sub_mod_384x384(a1, a1 + 192, a1 + 288, &BLS12_381_P); add_mod_384x384(a1 + 96, a1 + 192, a1 + 288, &BLS12_381_P); add_mod_384x384(a1, a1, v10, &BLS12_381_P); add_mod_384x384(a1 + 96, a1 + 96, v11, &BLS12_381_P); add_mod_384x(v9, v15, v13, &BLS12_381_P); add_mod_384x(v6, v16, v14, &BLS12_381_P); mul_382x(a1 + 192, v9, v6, &BLS12_381_P); sub_mod_384x384(a1 + 192, a1 + 192, v10, &BLS12_381_P); sub_mod_384x384(a1 + 288, a1 + 288, v11, &BLS12_381_P); sub_mod_384x384(a1 + 192, a1 + 192, v7, &BLS12_381_P); sub_mod_384x384(a1 + 288, a1 + 288, v8, &BLS12_381_P); mul_382x(a1 + 384, v12, v16, &BLS12_381_P); add_mod_384x384(a1 + 384, a1 + 384, v7, &BLS12_381_P); return add_mod_384x384(a1 + 480, a1 + 480, v8, &BLS12_381_P); }
mul_by_xy0_fp6x2: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x268 MOV R15,RDX MOV qword ptr [RBP + -0x30],RDX MOV R12,RSI MOV R14,RDI LEA RBX,[0x13fb20] LEA RDI,[RBP + -0x110] MOV RCX,RBX CALL 0x00133b60 LEA RSI,[R12 + 0x60] MOV qword ptr [RBP + -0x48],RSI MOV R13,R12 MOV qword ptr [RBP + -0x38],R12 ADD R15,0x60 MOV qword ptr [RBP + -0x40],R15 LEA RDI,[RBP + -0x230] MOV RDX,R15 MOV RCX,RBX CALL 0x00133b60 MOV ESI,0xc0 LEA R12,[R14 + RSI*0x1] ADD RSI,R13 MOV qword ptr [RBP + -0x50],RSI MOV RDI,R12 MOV RDX,R15 MOV RCX,RBX CALL 0x00133b60 LEA R15,[R14 + 0x120] MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 MOV RCX,RBX CALL 0x00130840 LEA R13,[R14 + 0x60] MOV RDI,R13 MOV RSI,R12 MOV RDX,R15 MOV RCX,RBX CALL 0x00130720 MOV RDI,R14 MOV RSI,R14 LEA RDX,[RBP + -0x110] MOV RCX,RBX CALL 0x00130720 LEA RDX,[RBP + -0xb0] MOV RDI,R13 MOV RSI,R13 MOV RCX,RBX CALL 0x00130720 LEA RDI,[RBP + -0x170] MOV RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x48] MOV RCX,RBX CALL 0x0012f460 LEA R13,[RBP + -0x290] MOV RDI,R13 MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x40] MOV RCX,RBX CALL 0x0012f460 MOV RDI,R12 LEA RSI,[RBP + -0x170] MOV RDX,R13 MOV RCX,RBX CALL 0x00133b60 MOV RDI,R12 MOV RSI,R12 LEA RDX,[RBP + -0x110] MOV RCX,RBX CALL 0x00130840 MOV RDI,R15 MOV RSI,R15 LEA RDX,[RBP + -0xb0] MOV RCX,RBX CALL 0x00130840 MOV RDI,R12 MOV RSI,R12 LEA R13,[RBP + -0x230] MOV RDX,R13 MOV RCX,RBX CALL 0x00130840 LEA R12,[RBP + -0x1d0] MOV RDI,R15 MOV RSI,R15 MOV RDX,R12 MOV RCX,RBX CALL 0x00130840 LEA R15,[R14 + 0x180] MOV RDI,R15 MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,RBX CALL 0x00133b60 MOV RDI,R15 MOV RSI,R15 MOV RDX,R13 MOV RCX,RBX CALL 0x00130720 ADD R14,0x1e0 MOV RDI,R14 MOV RSI,R14 MOV RDX,R12 MOV RCX,RBX CALL 0x00130720 ADD RSP,0x268 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void mul_by_xy0_fp6x2(long param_1,long param_2,long param_3) { long lVar1; long lVar2; long lVar3; int1 local_298 [96]; int1 local_238 [96]; int1 local_1d8 [96]; int1 local_178 [96]; int1 local_118 [96]; int1 local_b8 [96]; long local_58; long local_50; long local_48; long local_40; long local_38; local_38 = param_3; mul_382x(local_118,param_2,param_3,BLS12_381_P); local_50 = param_2 + 0x60; param_3 = param_3 + 0x60; local_48 = param_3; local_40 = param_2; mul_382x(local_238,local_50,param_3,BLS12_381_P); lVar3 = param_1 + 0xc0; local_58 = param_2 + 0xc0; mul_382x(lVar3,local_58,param_3,BLS12_381_P); lVar2 = param_1 + 0x120; sub_mod_384x384(param_1,lVar3,lVar2,BLS12_381_P); lVar1 = param_1 + 0x60; add_mod_384x384(lVar1,lVar3,lVar2,BLS12_381_P); add_mod_384x384(param_1,param_1,local_118,BLS12_381_P); add_mod_384x384(lVar1,lVar1,local_b8,BLS12_381_P); add_mod_384x(local_178,local_40,local_50,BLS12_381_P); add_mod_384x(local_298,local_38,local_48,BLS12_381_P); mul_382x(lVar3,local_178,local_298,BLS12_381_P); sub_mod_384x384(lVar3,lVar3,local_118,BLS12_381_P); sub_mod_384x384(lVar2,lVar2,local_b8,BLS12_381_P); sub_mod_384x384(lVar3,lVar3,local_238,BLS12_381_P); sub_mod_384x384(lVar2,lVar2,local_1d8,BLS12_381_P); lVar1 = param_1 + 0x180; mul_382x(lVar1,local_58,local_38,BLS12_381_P); add_mod_384x384(lVar1,lVar1,local_238,BLS12_381_P); add_mod_384x384(param_1 + 0x1e0,param_1 + 0x1e0,local_1d8,BLS12_381_P); return; }
3,833
my_strdup
eloqsql/mysys/my_malloc.c
char *my_strdup(PSI_memory_key key, const char *from, myf my_flags) { char *ptr; size_t length= strlen(from)+1; DBUG_ENTER("my_strdup"); if ((ptr= (char*) my_malloc(key, length, my_flags))) memcpy(ptr, from, length); DBUG_RETURN(ptr); }
O0
c
my_strdup: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x25160 addq $0x1, %rax movq %rax, -0x28(%rbp) movl -0x4(%rbp), %edi movq -0x28(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x36e60 movq %rax, -0x20(%rbp) cmpq $0x0, %rax je 0x3732f movq -0x20(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x25260 jmp 0x37331 movq -0x20(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_strdup: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rdi, [rbp+var_10] call _strlen add rax, 1 mov [rbp+var_28], rax mov edi, [rbp+var_4] mov rsi, [rbp+var_28] mov rdx, [rbp+var_18] call my_malloc mov [rbp+var_20], rax cmp rax, 0 jz short loc_3732F mov rdi, [rbp+var_20] mov rsi, [rbp+var_10] mov rdx, [rbp+var_28] call _memcpy loc_3732F: jmp short $+2 loc_37331: mov rax, [rbp+var_20] mov [rbp+var_30], rax mov rax, [rbp+var_30] add rsp, 30h pop rbp retn
long long my_strdup(unsigned int a1, long long a2, int a3) { unsigned long long v4; // [rsp+8h] [rbp-28h] long long v5; // [rsp+10h] [rbp-20h] v4 = strlen(a2) + 1; v5 = my_malloc(a1, v4, a3); if ( v5 ) memcpy(v5, a2, v4); return v5; }
my_strdup: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00125160 ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x18] CALL 0x00136e60 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JZ 0x0013732f MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x28] CALL 0x00125260 LAB_0013732f: JMP 0x00137331 LAB_00137331: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] ADD RSP,0x30 POP RBP RET
void * my_strdup(int4 param_1,char *param_2,int8 param_3) { size_t sVar1; void *__dest; sVar1 = strlen(param_2); __dest = (void *)my_malloc(param_1,sVar1 + 1,param_3); if (__dest != (void *)0x0) { memcpy(__dest,param_2,sVar1 + 1); } return __dest; }
3,834
my_strdup
eloqsql/mysys/my_malloc.c
char *my_strdup(PSI_memory_key key, const char *from, myf my_flags) { char *ptr; size_t length= strlen(from)+1; DBUG_ENTER("my_strdup"); if ((ptr= (char*) my_malloc(key, length, my_flags))) memcpy(ptr, from, length); DBUG_RETURN(ptr); }
O3
c
my_strdup: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %r15 movq %rsi, %rbx movl %edi, %r12d movq %rsi, %rdi callq 0x24170 movq %rax, %r14 incq %r14 movl %r12d, %edi movq %r14, %rsi movq %r15, %rdx callq 0x300d9 testq %rax, %rax je 0x303e7 movq %rax, %rdi movq %rbx, %rsi movq %r14, %rdx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x24290 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
my_strdup: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r15, rdx mov rbx, rsi mov r12d, edi mov rdi, rsi call _strlen mov r14, rax inc r14 mov edi, r12d mov rsi, r14 mov rdx, r15 call my_malloc test rax, rax jz short loc_303E7 mov rdi, rax mov rsi, rbx mov rdx, r14 pop rbx pop r12 pop r14 pop r15 pop rbp jmp _memcpy loc_303E7: pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long my_strdup(unsigned int a1, long long a2, int a3) { long long v4; // rax long long result; // rax v4 = strlen(a2); result = my_malloc(a1, v4 + 1, a3); if ( result ) return memcpy(result, a2); return result; }
my_strdup: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R15,RDX MOV RBX,RSI MOV R12D,EDI MOV RDI,RSI CALL 0x00124170 MOV R14,RAX INC R14 MOV EDI,R12D MOV RSI,R14 MOV RDX,R15 CALL 0x001300d9 TEST RAX,RAX JZ 0x001303e7 MOV RDI,RAX MOV RSI,RBX MOV RDX,R14 POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x00124290 LAB_001303e7: POP RBX POP R12 POP R14 POP R15 POP RBP RET
void my_strdup(int4 param_1,char *param_2,int8 param_3) { size_t sVar1; void *__dest; sVar1 = strlen(param_2); __dest = (void *)my_malloc(param_1,sVar1 + 1,param_3); if (__dest != (void *)0x0) { memcpy(__dest,param_2,sVar1 + 1); return; } return; }
3,835
js_atom_concat_str
bluesky950520[P]quickjs/quickjs.c
static JSAtom js_atom_concat_str(JSContext *ctx, JSAtom name, const char *str1) { JSValue str; JSAtom atom; const char *cstr; char *cstr2; size_t len, len1; str = JS_AtomToString(ctx, name); if (JS_IsException(str)) return JS_ATOM_NULL; cstr = JS_ToCStringLen(ctx, &len, str); if (!cstr) goto fail; len1 = strlen(str1); cstr2 = js_malloc(ctx, len + len1 + 1); if (!cstr2) goto fail; memcpy(cstr2, cstr, len); memcpy(cstr2 + len, str1, len1); cstr2[len + len1] = '\0'; atom = JS_NewAtomLen(ctx, cstr2, len + len1); js_free(ctx, cstr2); JS_FreeCString(ctx, cstr); JS_FreeValue(ctx, str); return atom; fail: JS_FreeCString(ctx, cstr); JS_FreeValue(ctx, str); return JS_ATOM_NULL; }
O0
c
js_atom_concat_str: subq $0x68, %rsp movq %rdi, 0x58(%rsp) movl %esi, 0x54(%rsp) movq %rdx, 0x48(%rsp) movq 0x58(%rsp), %rdi movl 0x54(%rsp), %esi callq 0x27d40 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movq (%rsp), %rax movq %rax, 0x38(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x38(%rsp), %rdi movq 0x40(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0xad90d movl $0x0, 0x64(%rsp) jmp 0xada35 movq 0x58(%rsp), %rdi movq 0x38(%rsp), %rdx movq 0x40(%rsp), %rcx leaq 0x18(%rsp), %rsi callq 0x61c10 movq %rax, 0x28(%rsp) cmpq $0x0, 0x28(%rsp) jne 0xad938 jmp 0xada0a movq 0x48(%rsp), %rdi callq 0xe240 movq %rax, 0x10(%rsp) movq 0x58(%rsp), %rdi movq 0x18(%rsp), %rsi addq 0x10(%rsp), %rsi addq $0x1, %rsi callq 0x209f0 movq %rax, 0x20(%rsp) cmpq $0x0, 0x20(%rsp) jne 0xad971 jmp 0xada0a movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi movq 0x18(%rsp), %rdx callq 0xe5a0 movq 0x20(%rsp), %rdi addq 0x18(%rsp), %rdi movq 0x48(%rsp), %rsi movq 0x10(%rsp), %rdx callq 0xe5a0 movq 0x20(%rsp), %rax movq 0x18(%rsp), %rcx addq 0x10(%rsp), %rcx movb $0x0, (%rax,%rcx) movq 0x58(%rsp), %rdi movq 0x20(%rsp), %rsi movq 0x18(%rsp), %rdx addq 0x10(%rsp), %rdx callq 0x26d60 movl %eax, 0x34(%rsp) movq 0x58(%rsp), %rdi movq 0x20(%rsp), %rsi callq 0x20af0 movq 0x58(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x28b90 movq 0x58(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx callq 0x229d0 movl 0x34(%rsp), %eax movl %eax, 0x64(%rsp) jmp 0xada35 movq 0x58(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x28b90 movq 0x58(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx callq 0x229d0 movl $0x0, 0x64(%rsp) movl 0x64(%rsp), %eax addq $0x68, %rsp retq nop
js_atom_concat_str: sub rsp, 68h mov [rsp+68h+var_10], rdi mov [rsp+68h+var_14], esi mov [rsp+68h+var_20], rdx mov rdi, [rsp+68h+var_10] mov esi, [rsp+68h+var_14] call JS_AtomToString mov [rsp+68h+var_68], rax mov [rsp+68h+var_60], rdx mov rax, [rsp+68h+var_68] mov [rsp+68h+var_30], rax mov rax, [rsp+68h+var_60] mov [rsp+68h+var_28], rax mov rdi, [rsp+68h+var_30] mov rsi, [rsp+68h+var_28] call JS_IsException_1 cmp eax, 0 jz short loc_AD90D mov [rsp+68h+var_4], 0 jmp loc_ADA35 loc_AD90D: mov rdi, [rsp+68h+var_10] mov rdx, [rsp+68h+var_30] mov rcx, [rsp+68h+var_28] lea rsi, [rsp+68h+var_50] call JS_ToCStringLen_0 mov [rsp+68h+var_40], rax cmp [rsp+68h+var_40], 0 jnz short loc_AD938 jmp loc_ADA0A loc_AD938: mov rdi, [rsp+68h+var_20] call _strlen mov [rsp+68h+var_58], rax mov rdi, [rsp+68h+var_10] mov rsi, [rsp+68h+var_50] add rsi, [rsp+68h+var_58] add rsi, 1 call js_malloc mov [rsp+68h+var_48], rax cmp [rsp+68h+var_48], 0 jnz short loc_AD971 jmp loc_ADA0A loc_AD971: mov rdi, [rsp+68h+var_48] mov rsi, [rsp+68h+var_40] mov rdx, [rsp+68h+var_50] call _memcpy mov rdi, [rsp+68h+var_48] add rdi, [rsp+68h+var_50] mov rsi, [rsp+68h+var_20] mov rdx, [rsp+68h+var_58] call _memcpy mov rax, [rsp+68h+var_48] mov rcx, [rsp+68h+var_50] add rcx, [rsp+68h+var_58] mov byte ptr [rax+rcx], 0 mov rdi, [rsp+68h+var_10] mov rsi, [rsp+68h+var_48] mov rdx, [rsp+68h+var_50] add rdx, [rsp+68h+var_58] call JS_NewAtomLen mov [rsp+68h+var_34], eax mov rdi, [rsp+68h+var_10] mov rsi, [rsp+68h+var_48] call js_free mov rdi, [rsp+68h+var_10] mov rsi, [rsp+68h+var_40] call JS_FreeCString mov rdi, [rsp+68h+var_10] mov rsi, [rsp+68h+var_30] mov rdx, [rsp+68h+var_28] call JS_FreeValue mov eax, [rsp+68h+var_34] mov [rsp+68h+var_4], eax jmp short loc_ADA35 loc_ADA0A: mov rdi, [rsp+68h+var_10] mov rsi, [rsp+68h+var_40] call JS_FreeCString mov rdi, [rsp+68h+var_10] mov rsi, [rsp+68h+var_30] mov rdx, [rsp+68h+var_28] call JS_FreeValue mov [rsp+68h+var_4], 0 loc_ADA35: mov eax, [rsp+68h+var_4] add rsp, 68h retn
long long js_atom_concat_str(long long a1, unsigned int a2, long long a3) { long long v3; // rdx long long v5; // [rsp+10h] [rbp-58h] long long v6; // [rsp+18h] [rbp-50h] BYREF unsigned __int8 *v7; // [rsp+20h] [rbp-48h] _DWORD *v8; // [rsp+28h] [rbp-40h] unsigned int v9; // [rsp+34h] [rbp-34h] long long v10; // [rsp+38h] [rbp-30h] long long v11; // [rsp+40h] [rbp-28h] long long v12; // [rsp+48h] [rbp-20h] unsigned int v13; // [rsp+54h] [rbp-14h] long long v14; // [rsp+58h] [rbp-10h] v14 = a1; v13 = a2; v12 = a3; v10 = JS_AtomToString(a1, a2); v11 = v3; if ( JS_IsException_1(v10, v3) ) { return 0; } else { v8 = JS_ToCStringLen_0(v14, &v6, v10, v11); if ( v8 && (v5 = strlen(v12), (v7 = (unsigned __int8 *)js_malloc(v14, v5 + v6 + 1)) != 0LL) ) { memcpy(v7, v8, v6); memcpy(&v7[v6], v12, v5); v7[v5 + v6] = 0; v9 = JS_NewAtomLen(v14, v7, v5 + v6); js_free(v14, (long long)v7); JS_FreeCString(v14, (long long)v8); JS_FreeValue(v14, v10, v11); return v9; } else { JS_FreeCString(v14, (long long)v8); JS_FreeValue(v14, v10, v11); return 0; } } }
js_atom_concat_str: SUB RSP,0x68 MOV qword ptr [RSP + 0x58],RDI MOV dword ptr [RSP + 0x54],ESI MOV qword ptr [RSP + 0x48],RDX MOV RDI,qword ptr [RSP + 0x58] MOV ESI,dword ptr [RSP + 0x54] CALL 0x00127d40 MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x40] CALL 0x00122a00 CMP EAX,0x0 JZ 0x001ad90d MOV dword ptr [RSP + 0x64],0x0 JMP 0x001ada35 LAB_001ad90d: MOV RDI,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x38] MOV RCX,qword ptr [RSP + 0x40] LEA RSI,[RSP + 0x18] CALL 0x00161c10 MOV qword ptr [RSP + 0x28],RAX CMP qword ptr [RSP + 0x28],0x0 JNZ 0x001ad938 JMP 0x001ada0a LAB_001ad938: MOV RDI,qword ptr [RSP + 0x48] CALL 0x0010e240 MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x18] ADD RSI,qword ptr [RSP + 0x10] ADD RSI,0x1 CALL 0x001209f0 MOV qword ptr [RSP + 0x20],RAX CMP qword ptr [RSP + 0x20],0x0 JNZ 0x001ad971 JMP 0x001ada0a LAB_001ad971: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x18] CALL 0x0010e5a0 MOV RDI,qword ptr [RSP + 0x20] ADD RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x10] CALL 0x0010e5a0 MOV RAX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x18] ADD RCX,qword ptr [RSP + 0x10] MOV byte ptr [RAX + RCX*0x1],0x0 MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x18] ADD RDX,qword ptr [RSP + 0x10] CALL 0x00126d60 MOV dword ptr [RSP + 0x34],EAX MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x20] CALL 0x00120af0 MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x28] CALL 0x00128b90 MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] CALL 0x001229d0 MOV EAX,dword ptr [RSP + 0x34] MOV dword ptr [RSP + 0x64],EAX JMP 0x001ada35 LAB_001ada0a: MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x28] CALL 0x00128b90 MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] CALL 0x001229d0 MOV dword ptr [RSP + 0x64],0x0 LAB_001ada35: MOV EAX,dword ptr [RSP + 0x64] ADD RSP,0x68 RET
int4 js_atom_concat_str(int8 param_1,int4 param_2,char *param_3) { int iVar1; size_t __n; size_t local_50; void *local_48; void *local_40; int4 local_34; int1 local_30 [16]; char *local_20; int4 local_14; int8 local_10; local_20 = param_3; local_14 = param_2; local_10 = param_1; local_30 = JS_AtomToString(param_1,param_2); iVar1 = JS_IsException(local_30._0_8_,local_30._8_8_); if (iVar1 == 0) { local_40 = (void *)JS_ToCStringLen(local_10,&local_50,local_30._0_8_,local_30._8_8_); if (local_40 != (void *)0x0) { __n = strlen(local_20); local_48 = (void *)js_malloc(local_10,local_50 + __n + 1); if (local_48 != (void *)0x0) { memcpy(local_48,local_40,local_50); memcpy((void *)((long)local_48 + local_50),local_20,__n); *(int1 *)((long)local_48 + local_50 + __n) = 0; local_34 = JS_NewAtomLen(local_10,local_48,local_50 + __n); js_free(local_10,local_48); JS_FreeCString(local_10,local_40); JS_FreeValue(local_10,local_30._0_8_,local_30._8_8_); return local_34; } local_48 = (void *)0x0; } JS_FreeCString(local_10,local_40); JS_FreeValue(local_10,local_30._0_8_,local_30._8_8_); } return 0; }
3,836
js_atom_concat_str
bluesky950520[P]quickjs/quickjs.c
static JSAtom js_atom_concat_str(JSContext *ctx, JSAtom name, const char *str1) { JSValue str; JSAtom atom; const char *cstr; char *cstr2; size_t len, len1; str = JS_AtomToString(ctx, name); if (JS_IsException(str)) return JS_ATOM_NULL; cstr = JS_ToCStringLen(ctx, &len, str); if (!cstr) goto fail; len1 = strlen(str1); cstr2 = js_malloc(ctx, len + len1 + 1); if (!cstr2) goto fail; memcpy(cstr2, cstr, len); memcpy(cstr2 + len, str1, len1); cstr2[len + len1] = '\0'; atom = JS_NewAtomLen(ctx, cstr2, len + len1); js_free(ctx, cstr2); JS_FreeCString(ctx, cstr); JS_FreeValue(ctx, str); return atom; fail: JS_FreeCString(ctx, cstr); JS_FreeValue(ctx, str); return JS_ATOM_NULL; }
O3
c
js_atom_concat_str: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r13 movq %rdi, %r15 movl $0x1, %edx callq 0x20277 movq %rdx, %r14 xorl %ebp, %ebp cmpl $0x6, %r14d je 0x6be77 movq %rax, %rbx movq %rsp, %rsi xorl %ebp, %ebp movq %r15, %rdi movq %rax, %rdx movq %r14, %rcx xorl %r8d, %r8d callq 0x20717 testq %rax, %rax jne 0x6be88 cmpl $-0x9, %r14d jb 0x6be77 movq 0x18(%r15), %rdi movl (%rbx), %eax leal -0x1(%rax), %ecx movl %ecx, (%rbx) xorl %ebp, %ebp cmpl $0x1, %eax jg 0x6be77 movq %rbx, %rsi movq %r14, %rdx callq 0x20d90 movl %ebp, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r12 movq %r13, %rdi callq 0xe240 movq (%rsp), %rcx movq %rax, 0x10(%rsp) leaq (%rax,%rcx), %rsi incq %rsi movq %r15, %rdi callq 0xed89 testq %rax, %rax je 0x6bf7c movq (%rsp), %rdx movq %rax, %rbp movq %rax, 0x8(%rsp) movq %rax, %rdi movq %r12, %rsi callq 0xe5a0 movq (%rsp), %rdi addq %rbp, %rdi movq %r13, %rsi movq 0x10(%rsp), %r13 movq %r13, %rdx callq 0xe5a0 movq (%rsp), %rax addq %rbp, %rax movb $0x0, (%r13,%rax) addq (%rsp), %r13 movq %r15, %rdi movq %rbp, %rsi movq %r13, %rdx callq 0x1f8ef movl %eax, %ebp movq 0x18(%r15), %r13 decq 0x28(%r13) movq 0x8(%rsp), %rdi callq *0x20(%r13) movq 0x30(%r13), %rcx movq 0x40(%r13), %rdi subq %rax, %rcx addq $-0x8, %rcx movq %rcx, 0x30(%r13) movq 0x8(%rsp), %rsi callq *0x10(%r13) movq 0x18(%r15), %rdi movl -0x18(%r12), %eax leal -0x1(%rax), %ecx movl %ecx, -0x18(%r12) cmpl $0x1, %eax jg 0x6bf5d addq $-0x18, %r12 movq %r12, %rsi movq $-0x7, %rdx callq 0x20d90 movq 0x18(%r15), %rdi cmpl $-0x9, %r14d jb 0x6be77 movl (%rbx), %eax leal -0x1(%rax), %ecx movl %ecx, (%rbx) cmpl $0x2, %eax jl 0x6be6c jmp 0x6be77 movq 0x18(%r15), %rdi movl -0x18(%r12), %eax leal -0x1(%rax), %ecx movl %ecx, -0x18(%r12) cmpl $0x1, %eax jg 0x6be54 addq $-0x18, %r12 movq %r12, %rsi movq $-0x7, %rdx callq 0x20d90 jmp 0x6be54
js_atom_concat_str: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r13, rdx mov r15, rdi mov edx, 1 call __JS_AtomToValue mov r14, rdx xor ebp, ebp cmp r14d, 6 jz short loc_6BE77 mov rbx, rax mov rsi, rsp xor ebp, ebp mov rdi, r15 mov rdx, rax mov rcx, r14 xor r8d, r8d call JS_ToCStringLen2 test rax, rax jnz short loc_6BE88 loc_6BE54: cmp r14d, 0FFFFFFF7h jb short loc_6BE77 mov rdi, [r15+18h] mov eax, [rbx] lea ecx, [rax-1] mov [rbx], ecx xor ebp, ebp cmp eax, 1 jg short loc_6BE77 loc_6BE6C: mov rsi, rbx mov rdx, r14 call js_free_value_rt loc_6BE77: mov eax, ebp add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_6BE88: mov r12, rax mov rdi, r13 call _strlen mov rcx, [rsp+48h+var_48] mov [rsp+48h+var_38], rax lea rsi, [rax+rcx] inc rsi mov rdi, r15 call js_malloc test rax, rax jz loc_6BF7C mov rdx, [rsp+48h+var_48] mov rbp, rax mov [rsp+48h+var_40], rax mov rdi, rax mov rsi, r12 call _memcpy mov rdi, [rsp+48h+var_48] add rdi, rbp mov rsi, r13 mov r13, [rsp+48h+var_38] mov rdx, r13 call _memcpy mov rax, [rsp+48h+var_48] add rax, rbp mov byte ptr [r13+rax+0], 0 add r13, [rsp+48h+var_48] mov rdi, r15 mov rsi, rbp mov rdx, r13 call JS_NewAtomLen mov ebp, eax mov r13, [r15+18h] dec qword ptr [r13+28h] mov rdi, [rsp+48h+var_40] call qword ptr [r13+20h] mov rcx, [r13+30h] mov rdi, [r13+40h] sub rcx, rax add rcx, 0FFFFFFFFFFFFFFF8h mov [r13+30h], rcx mov rsi, [rsp+48h+var_40] call qword ptr [r13+10h] mov rdi, [r15+18h] mov eax, [r12-18h] lea ecx, [rax-1] mov [r12-18h], ecx cmp eax, 1 jg short loc_6BF5D add r12, 0FFFFFFFFFFFFFFE8h mov rsi, r12 mov rdx, 0FFFFFFFFFFFFFFF9h call js_free_value_rt mov rdi, [r15+18h] loc_6BF5D: cmp r14d, 0FFFFFFF7h jb loc_6BE77 mov eax, [rbx] lea ecx, [rax-1] mov [rbx], ecx cmp eax, 2 jl loc_6BE6C jmp loc_6BE77 loc_6BF7C: mov rdi, [r15+18h] mov eax, [r12-18h] lea ecx, [rax-1] mov [r12-18h], ecx cmp eax, 1 jg loc_6BE54 add r12, 0FFFFFFFFFFFFFFE8h mov rsi, r12 mov rdx, 0FFFFFFFFFFFFFFF9h call js_free_value_rt jmp loc_6BE54
long long js_atom_concat_str(long long a1, int a2, long long a3) { _DWORD *v5; // rax long long v6; // rdx long long v7; // r14 unsigned int v8; // ebp _QWORD *v9; // rbx int *v10; // rax long long v11; // r8 long long v12; // r9 long long v13; // rdi int v14; // eax long long v15; // rcx int *v17; // r12 long long v18; // rax unsigned __int8 *v19; // rbp long long v20; // rsi long long v21; // r13 long long v22; // r13 long long v23; // rax long long v24; // rdi int v25; // eax long long v26; // rcx int v27; // eax long long v28; // rdi int v29; // eax long long v30; // rcx long long v31; // [rsp+0h] [rbp-48h] BYREF long long v32; // [rsp+8h] [rbp-40h] long long v33; // [rsp+10h] [rbp-38h] v5 = (_DWORD *)_JS_AtomToValue(a1, a2, 1); v7 = v6; v8 = 0; if ( (_DWORD)v6 == 6 ) return v8; v9 = v5; v8 = 0; v10 = JS_ToCStringLen2(a1, &v31, v5, v6, 0); if ( v10 ) { v17 = v10; v33 = strlen(a3); v18 = js_malloc(a1, v33 + v31 + 1); if ( v18 ) { v19 = (unsigned __int8 *)v18; v32 = v18; memcpy(v18, v17, v31); v20 = a3; v21 = v33; memcpy(&v19[v31], v20, v33); v19[v31 + v21] = 0; v8 = JS_NewAtomLen(a1, v19, v31 + v21); v22 = *(_QWORD *)(a1 + 24); --*(_QWORD *)(v22 + 40); v23 = (*(long long ( **)(long long))(v22 + 32))(v32); v24 = *(_QWORD *)(v22 + 64); *(_QWORD *)(v22 + 48) = *(_QWORD *)(v22 + 48) - v23 - 8; (*(void ( **)(long long, long long))(v22 + 16))(v24, v32); v13 = *(_QWORD *)(a1 + 24); v25 = *(v17 - 6); v26 = (unsigned int)(v25 - 1); *(v17 - 6) = v26; if ( v25 <= 1 ) { js_free_value_rt(v13, (_QWORD *)v17 - 3, -7LL, v26, v11, v12); v13 = *(_QWORD *)(a1 + 24); } if ( (unsigned int)v7 >= 0xFFFFFFF7 ) { v27 = *(_DWORD *)v9; v15 = (unsigned int)(*(_DWORD *)v9 - 1); *(_DWORD *)v9 = v15; if ( v27 < 2 ) goto LABEL_5; } return v8; } v28 = *(_QWORD *)(a1 + 24); v29 = *(v17 - 6); v30 = (unsigned int)(v29 - 1); *(v17 - 6) = v30; if ( v29 <= 1 ) js_free_value_rt(v28, (_QWORD *)v17 - 3, -7LL, v30, v11, v12); } if ( (unsigned int)v7 >= 0xFFFFFFF7 ) { v13 = *(_QWORD *)(a1 + 24); v14 = *(_DWORD *)v9; v15 = (unsigned int)(*(_DWORD *)v9 - 1); *(_DWORD *)v9 = v15; v8 = 0; if ( v14 <= 1 ) LABEL_5: js_free_value_rt(v13, v9, v7, v15, v11, v12); } return v8; }
js_atom_concat_str: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R13,RDX MOV R15,RDI MOV EDX,0x1 CALL 0x00120277 MOV R14,RDX XOR EBP,EBP CMP R14D,0x6 JZ 0x0016be77 MOV RBX,RAX MOV RSI,RSP XOR EBP,EBP MOV RDI,R15 MOV RDX,RAX MOV RCX,R14 XOR R8D,R8D CALL 0x00120717 TEST RAX,RAX JNZ 0x0016be88 LAB_0016be54: CMP R14D,-0x9 JC 0x0016be77 MOV RDI,qword ptr [R15 + 0x18] MOV EAX,dword ptr [RBX] LEA ECX,[RAX + -0x1] MOV dword ptr [RBX],ECX XOR EBP,EBP CMP EAX,0x1 JG 0x0016be77 LAB_0016be6c: MOV RSI,RBX MOV RDX,R14 CALL 0x00120d90 LAB_0016be77: MOV EAX,EBP ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0016be88: MOV R12,RAX MOV RDI,R13 CALL 0x0010e240 MOV RCX,qword ptr [RSP] MOV qword ptr [RSP + 0x10],RAX LEA RSI,[RAX + RCX*0x1] INC RSI MOV RDI,R15 CALL 0x0010ed89 TEST RAX,RAX JZ 0x0016bf7c MOV RDX,qword ptr [RSP] MOV RBP,RAX MOV qword ptr [RSP + 0x8],RAX MOV RDI,RAX MOV RSI,R12 CALL 0x0010e5a0 MOV RDI,qword ptr [RSP] ADD RDI,RBP MOV RSI,R13 MOV R13,qword ptr [RSP + 0x10] MOV RDX,R13 CALL 0x0010e5a0 MOV RAX,qword ptr [RSP] ADD RAX,RBP MOV byte ptr [R13 + RAX*0x1],0x0 ADD R13,qword ptr [RSP] MOV RDI,R15 MOV RSI,RBP MOV RDX,R13 CALL 0x0011f8ef MOV EBP,EAX MOV R13,qword ptr [R15 + 0x18] DEC qword ptr [R13 + 0x28] MOV RDI,qword ptr [RSP + 0x8] CALL qword ptr [R13 + 0x20] MOV RCX,qword ptr [R13 + 0x30] MOV RDI,qword ptr [R13 + 0x40] SUB RCX,RAX ADD RCX,-0x8 MOV qword ptr [R13 + 0x30],RCX MOV RSI,qword ptr [RSP + 0x8] CALL qword ptr [R13 + 0x10] MOV RDI,qword ptr [R15 + 0x18] MOV EAX,dword ptr [R12 + -0x18] LEA ECX,[RAX + -0x1] MOV dword ptr [R12 + -0x18],ECX CMP EAX,0x1 JG 0x0016bf5d ADD R12,-0x18 MOV RSI,R12 MOV RDX,-0x7 CALL 0x00120d90 MOV RDI,qword ptr [R15 + 0x18] LAB_0016bf5d: CMP R14D,-0x9 JC 0x0016be77 MOV EAX,dword ptr [RBX] LEA ECX,[RAX + -0x1] MOV dword ptr [RBX],ECX CMP EAX,0x2 JL 0x0016be6c JMP 0x0016be77 LAB_0016bf7c: MOV RDI,qword ptr [R15 + 0x18] MOV EAX,dword ptr [R12 + -0x18] LEA ECX,[RAX + -0x1] MOV dword ptr [R12 + -0x18],ECX CMP EAX,0x1 JG 0x0016be54 ADD R12,-0x18 MOV RSI,R12 MOV RDX,-0x7 CALL 0x00120d90 JMP 0x0016be54
int4 js_atom_concat_str(long param_1,int8 param_2,char *param_3) { int iVar1; long lVar2; size_t sVar3; int4 uVar4; int *piVar5; void *__src; void *__dest; long lVar6; int8 uVar7; uint uVar8; int1 auVar9 [16]; size_t local_48; void *local_40; size_t local_38; auVar9 = __JS_AtomToValue(param_1,param_2,1); piVar5 = auVar9._0_8_; uVar8 = auVar9._8_4_; if (uVar8 == 6) { return 0; } __src = (void *)JS_ToCStringLen2(param_1,&local_48,piVar5,auVar9._8_8_,0); if (__src != (void *)0x0) { local_38 = strlen(param_3); __dest = (void *)js_malloc(param_1,local_38 + local_48 + 1); if (__dest != (void *)0x0) { local_40 = __dest; memcpy(__dest,__src,local_48); sVar3 = local_38; memcpy((void *)(local_48 + (long)__dest),param_3,local_38); *(int1 *)((long)__dest + sVar3 + local_48) = 0; uVar4 = JS_NewAtomLen(param_1,__dest,sVar3 + local_48); lVar2 = *(long *)(param_1 + 0x18); *(long *)(lVar2 + 0x28) = *(long *)(lVar2 + 0x28) + -1; lVar6 = (**(code **)(lVar2 + 0x20))(local_40); *(long *)(lVar2 + 0x30) = (*(long *)(lVar2 + 0x30) - lVar6) + -8; (**(code **)(lVar2 + 0x10))(*(int8 *)(lVar2 + 0x40),local_40); uVar7 = *(int8 *)(param_1 + 0x18); iVar1 = *(int *)((long)__src + -0x18); *(int *)((long)__src + -0x18) = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar7,(long)__src + -0x18,0xfffffffffffffff9); uVar7 = *(int8 *)(param_1 + 0x18); } if (uVar8 < 0xfffffff7) { return uVar4; } iVar1 = *piVar5; *piVar5 = iVar1 + -1; goto joined_r0x0016bf71; } uVar7 = *(int8 *)(param_1 + 0x18); iVar1 = *(int *)((long)__src + -0x18); *(int *)((long)__src + -0x18) = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar7,(long)__src + -0x18,0xfffffffffffffff9); } } if (uVar8 < 0xfffffff7) { return 0; } uVar7 = *(int8 *)(param_1 + 0x18); iVar1 = *piVar5; *piVar5 = iVar1 + -1; uVar4 = 0; joined_r0x0016bf71: if (iVar1 < 2) { js_free_value_rt(uVar7,piVar5,auVar9._8_8_); } return uVar4; }
3,837
aimrt::runtime::core::executor::AsioThreadExecutor::Execute(aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)
aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/executor/asio_thread_executor.cc
void AsioThreadExecutor::Execute(aimrt::executor::Task&& task) noexcept { if (state_.load() != State::kInit && state_.load() != State::kStart) [[unlikely]] { fprintf(stderr, "Asio thread executor '%s' can only execute task when state is 'Init' or 'Start'.\n", name_.c_str()); return; } try { asio::post(*io_ptr_, std::move(task)); } catch (const std::exception& e) { fprintf(stderr, "Asio thread executor '%s' execute Task get exception: %s\n", name_.c_str(), e.what()); } }
O3
cpp
aimrt::runtime::core::executor::AsioThreadExecutor::Execute(aimrt::util::Function<aimrt_function_executor_task_ops_t>&&): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movl 0x78(%rdi), %eax cmpl $0x1, %eax je 0xf59b3 movl 0x78(%rbx), %eax cmpl $0x2, %eax jne 0xf59d1 movq 0xa0(%rbx), %rax movq %rsp, %rdi movq %rax, (%rdi) xorl %edx, %edx xorl %ecx, %ecx callq 0xf84bc addq $0x8, %rsp popq %rbx popq %r14 retq movq %rbx, %rdi callq 0x85774 jmp 0xf59c9 cmpl $0x2, %edx jne 0xf5a1d movq %rax, %rdi callq 0x80c90 movq 0x1ab329(%rip), %rcx # 0x2a0d18 movq (%rcx), %r14 movq 0x8(%rbx), %rbx movq (%rax), %rcx movq %rax, %rdi callq *0x10(%rcx) leaq 0x1019df(%rip), %rsi # 0x1f73e5 movq %r14, %rdi movq %rbx, %rdx movq %rax, %rcx xorl %eax, %eax callq 0x82f80 callq 0x83710 jmp 0xf59c9 movq %rax, %rdi callq 0x8b40b nop
_ZN5aimrt7runtime4core8executor18AsioThreadExecutor7ExecuteEONS_4util8FunctionI34aimrt_function_executor_task_ops_tEE: push r14 push rbx push rax mov rbx, rdi mov eax, [rdi+78h] cmp eax, 1 jz short loc_F59B3 mov eax, [rbx+78h] cmp eax, 2 jnz short loc_F59D1 loc_F59B3: mov rax, [rbx+0A0h] mov rdi, rsp mov [rdi], rax xor edx, edx xor ecx, ecx call _ZNK4asio6detail27initiate_post_with_executorINS_10io_context19basic_executor_typeISaIvELm0EEEEclIN5aimrt4util8FunctionI34aimrt_function_executor_task_ops_tEEEEvOT_PNSt9enable_ifIXsr9execution11is_executorINSt11conditionalILb1ES5_SD_E4typeEEE5valueEvE4typeEPNSF_IXntsr6detail27is_work_dispatcher_requiredINSt5decayISD_E4typeES5_EE5valueEvE4typeE loc_F59C9: add rsp, 8 pop rbx pop r14 retn loc_F59D1: mov rdi, rbx call _ZN5aimrt7runtime4core8executor18AsioThreadExecutor7ExecuteEONS_4util8FunctionI34aimrt_function_executor_task_ops_tEE_cold_1; aimrt::runtime::core::executor::AsioThreadExecutor::Execute(aimrt::util::Function<aimrt_function_executor_task_ops_t> &&) [clone] jmp short loc_F59C9 cmp edx, 2 jnz short loc_F5A1D mov rdi, rax; void * call ___cxa_begin_catch mov rcx, cs:stderr_ptr mov r14, [rcx] mov rbx, [rbx+8] mov rcx, [rax] mov rdi, rax call qword ptr [rcx+10h] lea rsi, aAsioThreadExec_0; "Asio thread executor '%s' execute Task "... mov rdi, r14 mov rdx, rbx mov rcx, rax xor eax, eax call _fprintf call ___cxa_end_catch jmp short loc_F59C9 loc_F5A1D: mov rdi, rax call __clang_call_terminate
long long aimrt::runtime::core::executor::AsioThreadExecutor::Execute(long long a1, long long a2) { long long v2; // rax long long v4; // [rsp-8h] [rbp-18h] BYREF v4 = v2; if ( *(_DWORD *)(a1 + 120) != 1 && *(_DWORD *)(a1 + 120) != 2 ) return aimrt::runtime::core::executor::AsioThreadExecutor::Execute(a1); v4 = *(_QWORD *)(a1 + 160); return asio::detail::initiate_post_with_executor<asio::io_context::basic_executor_type<std::allocator<void>,0ul>>::operator()<aimrt::util::Function<aimrt_function_executor_task_ops_t>>( &v4, a2, 0LL, 0LL); }
Execute: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV EAX,dword ptr [RDI + 0x78] CMP EAX,0x1 JZ 0x001f59b3 MOV EAX,dword ptr [RBX + 0x78] CMP EAX,0x2 JNZ 0x001f59d1 LAB_001f59b3: MOV RAX,qword ptr [RBX + 0xa0] MOV RDI,RSP MOV qword ptr [RDI],RAX LAB_001f59c0: XOR EDX,EDX XOR ECX,ECX CALL 0x001f84bc LAB_001f59c9: ADD RSP,0x8 POP RBX POP R14 RET LAB_001f59d1: MOV RDI,RBX CALL 0x00185774 JMP 0x001f59c9
/* aimrt::runtime::core::executor::AsioThreadExecutor::Execute(aimrt::util::Function<aimrt_function_executor_task_ops_t>&&) */ void __thiscall aimrt::runtime::core::executor::AsioThreadExecutor::Execute (AsioThreadExecutor *this,Function *param_1) { int8 local_18; if ((*(int *)(this + 0x78) == 1) || (*(int *)(this + 0x78) == 2)) { local_18 = *(int8 *)(this + 0xa0); /* try { // try from 001f59c0 to 001f59c8 has its CatchHandler @ 001f59db */ asio::detail:: initiate_post_with_executor<asio::io_context::basic_executor_type<std::allocator<void>,0ul>>:: operator()((Function *)&local_18,(type *)param_1,(type *)0x0); } else { Execute((Function *)this); } return; }
3,838
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 0xeddc2 movq -0x28(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0xedce0 movq %rax, -0x10(%rbp) jmp 0xeddcd leaq 0x69edb(%rip), %rax # 0x157ca4 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_EDDC2 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_EDDCD loc_EDDC2: lea rax, asc_157CA0+4; "" mov [rbp+var_10], rax loc_EDDCD: 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 0x001eddc2 MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x18] CALL 0x001edce0 MOV qword ptr [RBP + -0x10],RAX JMP 0x001eddcd LAB_001eddc2: LEA RAX,[0x257ca4] MOV qword ptr [RBP + -0x10],RAX LAB_001eddcd: 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_00257ca4; } else { local_18 = (int *)strmake_root(param_1,param_2,param_3); } auVar1._8_8_ = param_3; auVar1._0_8_ = local_18; return auVar1; }
3,839
testing::Message::operator<<(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> const&)
AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest.cc
Message& Message::operator<<(const ::std::wstring& wstr) { internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this); return *this; }
O3
cpp
testing::Message::operator<<(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq 0x8(%rsi), %r15 testq %r15, %r15 je 0x5e621 movq (%rsi), %r13 leaq 0x18(%rsp), %r12 xorl %ebp, %ebp leaq 0x8(%rsp), %r14 cmpl $0x0, (%r13,%rbp,4) je 0x5e600 leaq (,%rbp,4), %rsi addq %r13, %rsi movl %r15d, %edx subl %ebp, %edx movq %r14, %rdi callq 0x60bac movq (%rbx), %rdi addq $0x10, %rdi movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx callq 0x11b90 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x5e5ee movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 cmpq %rbp, %r15 je 0x5e621 cmpl $0x0, (%r13,%rbp,4) je 0x5e61c incq %rbp jmp 0x5e5ee movq (%rbx), %rdi addq $0x10, %rdi movb $0x0, 0x8(%rsp) movl $0x1, %edx movq %r14, %rsi callq 0x11b90 incq %rbp cmpq %r15, %rbp jne 0x5e5a1 movq %rbx, %rax addq $0x28, %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 0x5e64d movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 movq %rbx, %rdi callq 0x11760
_ZN7testing7MessagelsERKNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE: push rbp; int push r15; int push r14; int push r13; int push r12; int push rbx; char sub rsp, 28h mov rbx, rdi mov r15, [rsi+8] test r15, r15 jz loc_5E621 mov r13, [rsi] lea r12, [rsp+58h+var_40] xor ebp, ebp lea r14, [rsp+58h+var_50] loc_5E5A1: cmp dword ptr [r13+rbp*4+0], 0 jz short loc_5E600 lea rsi, ds:0[rbp*4] add rsi, r13 mov edx, r15d sub edx, ebp mov rdi, r14; int call _ZN7testing8internal16WideStringToUtf8B5cxx11EPKwi; testing::internal::WideStringToUtf8(wchar_t const*,int) mov rdi, [rbx] add rdi, 10h mov rsi, [rsp+58h+var_50] mov rdx, [rsp+58h+var_48] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, [rsp+58h+var_50]; void * cmp rdi, r12 jz short loc_5E5EE mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5E5EE: cmp r15, rbp jz short loc_5E621 cmp dword ptr [r13+rbp*4+0], 0 jz short loc_5E61C inc rbp jmp short loc_5E5EE loc_5E600: mov rdi, [rbx] add rdi, 10h mov byte ptr [rsp+58h+var_50], 0 mov edx, 1 mov rsi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) inc rbp loc_5E61C: cmp rbp, r15 jnz short loc_5E5A1 loc_5E621: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_5E64D mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5E64D: mov rdi, rbx call __Unwind_Resume
operator<<: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV R15,qword ptr [RSI + 0x8] TEST R15,R15 JZ 0x0015e621 MOV R13,qword ptr [RSI] LEA R12,[RSP + 0x18] XOR EBP,EBP LEA R14,[RSP + 0x8] LAB_0015e5a1: CMP dword ptr [R13 + RBP*0x4],0x0 JZ 0x0015e600 LEA RSI,[RBP*0x4] ADD RSI,R13 MOV EDX,R15D SUB EDX,EBP MOV RDI,R14 CALL 0x00160bac MOV RDI,qword ptr [RBX] ADD RDI,0x10 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0015e5d2: CALL 0x00111b90 LAB_0015e5d7: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x0015e5ee MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00111120 LAB_0015e5ee: CMP R15,RBP JZ 0x0015e621 CMP dword ptr [R13 + RBP*0x4],0x0 JZ 0x0015e61c INC RBP JMP 0x0015e5ee LAB_0015e600: MOV RDI,qword ptr [RBX] ADD RDI,0x10 MOV byte ptr [RSP + 0x8],0x0 MOV EDX,0x1 MOV RSI,R14 CALL 0x00111b90 INC RBP LAB_0015e61c: CMP RBP,R15 JNZ 0x0015e5a1 LAB_0015e621: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* testing::Message::TEMPNAMEPLACEHOLDERVALUE(std::__cxx11::wstring const&) */ Message * __thiscall testing::Message::operator<<(Message *this,wstring *param_1) { long lVar1; long lVar2; long lVar3; internal local_50; int7 uStack_4f; long local_48; long local_40 [2]; lVar1 = *(long *)(param_1 + 8); if (lVar1 != 0) { lVar2 = *(long *)param_1; lVar3 = 0; do { if (*(int *)(lVar2 + lVar3 * 4) == 0) { local_50 = (internal)0x0; std::__ostream_insert<char,std::char_traits<char>> ((ostream *)(*(long *)this + 0x10),(char *)&local_50,1); lVar3 = lVar3 + 1; } else { internal::WideStringToUtf8_abi_cxx11_ (&local_50,(wchar_t *)(lVar3 * 4 + lVar2),(int)lVar1 - (int)lVar3); /* try { // try from 0015e5d2 to 0015e5d6 has its CatchHandler @ 0015e633 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)(*(long *)this + 0x10),(char *)CONCAT71(uStack_4f,local_50),local_48); if ((long *)CONCAT71(uStack_4f,local_50) != local_40) { operator_delete((long *)CONCAT71(uStack_4f,local_50),local_40[0] + 1); } while( true ) { if (lVar1 == lVar3) { return this; } if (*(int *)(lVar2 + lVar3 * 4) == 0) break; lVar3 = lVar3 + 1; } } } while (lVar3 != lVar1); } return this; }
3,840
common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int>> const&, bool)
monkey531[P]llama/common/common.cpp
void common_batch_add( struct llama_batch & batch, llama_token id, llama_pos pos, const std::vector<llama_seq_id> & seq_ids, bool logits) { GGML_ASSERT(batch.seq_id[batch.n_tokens] && "llama_batch size exceeded"); batch.token [batch.n_tokens] = id; batch.pos [batch.n_tokens] = pos; batch.n_seq_id[batch.n_tokens] = seq_ids.size(); for (size_t i = 0; i < seq_ids.size(); ++i) { batch.seq_id[batch.n_tokens][i] = seq_ids[i]; } batch.logits [batch.n_tokens] = logits; batch.n_tokens++; }
O3
cpp
common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int>> const&, bool): pushq %rax movq 0x28(%rdi), %rax movslq (%rdi), %r9 cmpq $0x0, (%rax,%r9,8) je 0x8348f movq 0x8(%rdi), %r10 movl %esi, (%r10,%r9,4) movq 0x18(%rdi), %rsi movslq (%rdi), %r9 movl %edx, (%rsi,%r9,4) movq (%rcx), %rdx movq 0x8(%rcx), %rsi movq %rsi, %rcx subq %rdx, %rcx sarq $0x2, %rcx movq 0x20(%rdi), %r9 movslq (%rdi), %r10 movl %ecx, (%r9,%r10,4) cmpq %rdx, %rsi je 0x83480 cmpq $0x1, %rcx adcq $0x0, %rcx xorl %esi, %esi movl (%rdx,%rsi,4), %r9d movslq (%rdi), %r10 movq (%rax,%r10,8), %r10 movl %r9d, (%r10,%rsi,4) incq %rsi cmpq %rsi, %rcx jne 0x83469 movq 0x30(%rdi), %rax movslq (%rdi), %rcx movb %r8b, (%rax,%rcx) incl (%rdi) popq %rax retq leaq 0x798df(%rip), %rdi # 0xfcd75 leaq 0x706a3(%rip), %rdx # 0xf3b40 leaq 0x79f15(%rip), %rcx # 0xfd3b9 movl $0x655, %esi # imm = 0x655 xorl %eax, %eax callq 0x1bf10
_Z16common_batch_addR11llama_batchiiRKSt6vectorIiSaIiEEb: push rax mov rax, [rdi+28h] movsxd r9, dword ptr [rdi] cmp qword ptr [rax+r9*8], 0 jz short loc_8348F mov r10, [rdi+8] mov [r10+r9*4], esi mov rsi, [rdi+18h] movsxd r9, dword ptr [rdi] mov [rsi+r9*4], edx mov rdx, [rcx] mov rsi, [rcx+8] mov rcx, rsi sub rcx, rdx sar rcx, 2 mov r9, [rdi+20h] movsxd r10, dword ptr [rdi] mov [r9+r10*4], ecx cmp rsi, rdx jz short loc_83480 cmp rcx, 1 adc rcx, 0 xor esi, esi loc_83469: mov r9d, [rdx+rsi*4] movsxd r10, dword ptr [rdi] mov r10, [rax+r10*8] mov [r10+rsi*4], r9d inc rsi cmp rcx, rsi jnz short loc_83469 loc_83480: mov rax, [rdi+30h] movsxd rcx, dword ptr [rdi] mov [rax+rcx], r8b inc dword ptr [rdi] pop rax retn loc_8348F: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aBatchSeqIdBatc; "batch.seq_id[batch.n_tokens] && \"llama"... mov esi, 655h xor eax, eax call _ggml_abort
long long common_batch_add(int *a1, int a2, int a3, long long *a4, char a5) { long long v5; // rax long long v6; // rax long long v7; // r9 long long v8; // rdx long long v9; // rsi long long v10; // rcx long long v11; // rcx long long v12; // rsi long long v14; // [rsp-8h] [rbp-8h] v14 = v5; v6 = *((_QWORD *)a1 + 5); v7 = *a1; if ( *(_QWORD *)(v6 + 8 * v7) ) { *(_DWORD *)(*((_QWORD *)a1 + 1) + 4 * v7) = a2; *(_DWORD *)(*((_QWORD *)a1 + 3) + 4LL * *a1) = a3; v8 = *a4; v9 = a4[1]; v10 = (v9 - *a4) >> 2; *(_DWORD *)(*((_QWORD *)a1 + 4) + 4LL * *a1) = v10; if ( v9 != v8 ) { v11 = (v10 == 0) + v10; v12 = 0LL; do { *(_DWORD *)(*(_QWORD *)(v6 + 8LL * *a1) + 4 * v12) = *(_DWORD *)(v8 + 4 * v12); ++v12; } while ( v11 != v12 ); } *(_BYTE *)(*((_QWORD *)a1 + 6) + (*a1)++) = a5; return v14; } else { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp", 1621LL, "GGML_ASSERT(%s) failed", "batch.seq_id[batch.n_tokens] && \"llama_batch size exceeded\""); return common_lcp(); } }
common_batch_add: PUSH RAX MOV RAX,qword ptr [RDI + 0x28] MOVSXD R9,dword ptr [RDI] CMP qword ptr [RAX + R9*0x8],0x0 JZ 0x0018348f MOV R10,qword ptr [RDI + 0x8] MOV dword ptr [R10 + R9*0x4],ESI MOV RSI,qword ptr [RDI + 0x18] MOVSXD R9,dword ptr [RDI] MOV dword ptr [RSI + R9*0x4],EDX MOV RDX,qword ptr [RCX] MOV RSI,qword ptr [RCX + 0x8] MOV RCX,RSI SUB RCX,RDX SAR RCX,0x2 MOV R9,qword ptr [RDI + 0x20] MOVSXD R10,dword ptr [RDI] MOV dword ptr [R9 + R10*0x4],ECX CMP RSI,RDX JZ 0x00183480 CMP RCX,0x1 ADC RCX,0x0 XOR ESI,ESI LAB_00183469: MOV R9D,dword ptr [RDX + RSI*0x4] MOVSXD R10,dword ptr [RDI] MOV R10,qword ptr [RAX + R10*0x8] MOV dword ptr [R10 + RSI*0x4],R9D INC RSI CMP RCX,RSI JNZ 0x00183469 LAB_00183480: MOV RAX,qword ptr [RDI + 0x30] MOVSXD RCX,dword ptr [RDI] MOV byte ptr [RAX + RCX*0x1],R8B INC dword ptr [RDI] POP RAX RET LAB_0018348f: LEA RDI,[0x1fcd75] LEA RDX,[0x1f3b40] LEA RCX,[0x1fd3b9] MOV ESI,0x655 XOR EAX,EAX CALL 0x0011bf10
/* common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int> > const&, bool) */ int8 common_batch_add(llama_batch *param_1,int param_2,int param_3,vector *param_4,bool param_5) { long lVar1; long lVar2; int8 in_RAX; long lVar3; long lVar4; lVar1 = *(long *)(param_1 + 0x28); if (*(long *)(lVar1 + (long)*(int *)param_1 * 8) != 0) { *(int *)(*(long *)(param_1 + 8) + (long)*(int *)param_1 * 4) = param_2; *(int *)(*(long *)(param_1 + 0x18) + (long)*(int *)param_1 * 4) = param_3; lVar2 = *(long *)param_4; lVar4 = *(long *)(param_4 + 8); lVar3 = lVar4 - lVar2 >> 2; *(int *)(*(long *)(param_1 + 0x20) + (long)*(int *)param_1 * 4) = (int)lVar3; if (lVar4 != lVar2) { lVar4 = 0; do { *(int4 *)(*(long *)(lVar1 + (long)*(int *)param_1 * 8) + lVar4 * 4) = *(int4 *)(lVar2 + lVar4 * 4); lVar4 = lVar4 + 1; } while (lVar3 + (ulong)(lVar3 == 0) != lVar4); } *(bool *)(*(long *)(param_1 + 0x30) + (long)*(int *)param_1) = param_5; *(int *)param_1 = *(int *)param_1 + 1; return in_RAX; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x655, "GGML_ASSERT(%s) failed", "batch.seq_id[batch.n_tokens] && \"llama_batch size exceeded\""); }
3,841
unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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> const&)
monkey531[P]llama/common/json.hpp
constexpr value_t type() const noexcept { return m_data.m_type; }
O2
cpp
unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movzbl (%rdi), %r15d cmpq $0x9, %r15 ja 0x830ff movq %rdi, %r14 leaq 0x31a0b(%rip), %rax # 0xb4818 movslq (%rax,%r15,4), %rcx addq %rax, %rcx jmpq *%rcx movl %r15d, %eax shll $0x6, %eax movl %r15d, %ecx shrl $0x2, %ecx orl %eax, %ecx movl $0x9e3779b9, %ebx # imm = 0x9E3779B9 addq %rcx, %rbx jmp 0x830ce movq %r14, %rdi callq 0x8320e leaq 0x18(%rsp), %rdi movq %rax, %rsi callq 0x3a876 jmp 0x830b5 movl $0x9e3779b9, %r12d # imm = 0x9E3779B9 movq %r14, %rdi callq 0x8316e movl %r15d, %ecx shll $0x6, %ecx movl %r15d, %ebx shrl $0x2, %ebx orl %ecx, %ebx addq 0x8(%rax), %rbx addq %r12, %rbx subq (%rax), %rbx xorq %r15, %rbx movq %r14, %rdi callq 0x8316e movzbl 0x20(%rax), %eax movq %rbx, %rcx shlq $0x6, %rcx orq %rax, %rcx movq %rbx, %r15 shrq $0x2, %r15 addq %r12, %r15 addq %rcx, %r15 xorq %rbx, %r15 movq %r14, %rdi callq 0x8316e movq 0x18(%rax), %rcx addq %r12, %rcx leaq -0x1(%r12), %rdx cmpb $0x0, 0x20(%rax) cmovneq %rcx, %rdx movq %r15, %rax shlq $0x6, %rax addq %rdx, %rax movq %r15, %rbx shrq $0x2, %rbx addq %rax, %rbx xorq %r15, %rbx movq %r14, %rdi callq 0x8316e movq (%rax), %rcx movq 0x8(%rax), %rax cmpq %rax, %rcx je 0x830d1 movzbl (%rcx), %edx movq %rbx, %rsi shlq $0x6, %rsi movq %rbx, %rdi shrq $0x2, %rdi addq %r12, %rsi addq %rdi, %rsi addq %rdx, %rsi xorq %rsi, %rbx incq %rcx jmp 0x82edc movl $0x9e3779b9, %ebp # imm = 0x9E3779B9 movq %r14, %rdi callq 0x42134 movq %rax, %rbx movl %r15d, %eax shll $0x6, %eax movl %r15d, %ecx shrl $0x2, %ecx orl %eax, %ecx addq %rbp, %rbx addq %rcx, %rbx xorq %r15, %rbx leaq 0x10(%rsp), %r12 movq %r14, (%r12) leaq 0x18(%rsp), %r14 movq %r14, %rdi movq %r12, %rsi callq 0x7d856 leaq 0x88(%rsp), %r15 movq %r15, %rdi movq %r12, %rsi callq 0x7d888 leaq 0xf(%rsp), %r12 movq %r14, %rdi movq %r15, %rsi callq 0x67b8c testb %al, %al je 0x830e6 movq %r14, %rdi callq 0x7d8ba movq %r12, %rdi movq %rax, %rsi callq 0x3a876 movq %rax, %r13 movq %r14, %rdi callq 0x67d86 movq %rax, %rdi callq 0x82de4 movq %rbx, %rcx shlq $0x6, %rcx movq %rbx, %rdx shrq $0x2, %rdx addq %rbp, %rcx addq %rdx, %rcx addq %r13, %rcx xorq %rbx, %rcx movq %rcx, %rdx shlq $0x6, %rdx movq %rcx, %rbx shrq $0x2, %rbx addq %rbp, %rdx addq %rax, %rbx addq %rdx, %rbx xorq %rcx, %rbx movq %r14, %rdi callq 0x7d928 jmp 0x82f5f movl $0x9e3779b9, %r13d # imm = 0x9E3779B9 movq %r14, %rdi callq 0x42134 movq %rax, %rbx movl %r15d, %eax shll $0x6, %eax movl %r15d, %ecx shrl $0x2, %ecx orl %eax, %ecx addq %r13, %rbx addq %rcx, %rbx xorq %r15, %rbx leaq 0x18(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x680e8 leaq 0x88(%rsp), %r12 movq %r12, %rdi movq %r14, %rsi callq 0x68354 movq %r15, %rdi movq %r12, %rsi callq 0x67b8c testb %al, %al je 0x830d1 movq %r15, %rdi callq 0x67d86 movq %rax, %rdi callq 0x82de4 movq %rbx, %rcx shlq $0x6, %rcx movq %rbx, %rdx shrq $0x2, %rdx addq %r13, %rcx addq %rdx, %rcx addq %rax, %rcx xorq %rcx, %rbx movq %r15, %rdi callq 0x67d1e jmp 0x83021 movq %r14, %rdi callq 0x83332 jmp 0x830b5 movq %r14, %rdi callq 0x63eac movl $0x9e3779b9, %ecx # imm = 0x9E3779B9 leaq 0x1(%rcx), %rdx testb %al, %al cmoveq %rcx, %rdx movl %r15d, %eax shll $0x6, %eax movl %r15d, %ebx shrl $0x2, %ebx orl %eax, %ebx jmp 0x830cb movq %r14, %rdi callq 0x6339a jmp 0x830b5 movq %r14, %rdi callq 0x63b7a leaq 0x18(%rsp), %rdi callq 0x83146 movl %r15d, %ecx shll $0x6, %ecx movl %r15d, %edx shrl $0x2, %edx orl %ecx, %edx movl $0x9e3779b9, %ebx # imm = 0x9E3779B9 addq %rax, %rbx addq %rdx, %rbx xorq %r15, %rbx movq %rbx, %rax addq $0xf8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x88(%rsp), %rdi callq 0x7d93a leaq 0x18(%rsp), %rdi callq 0x7d93a jmp 0x830d1 leaq 0x2eae0(%rip), %rdi # 0xb1be6 leaq 0x29033(%rip), %rdx # 0xac140 leaq 0x2c5af(%rip), %rcx # 0xaf6c3 movl $0x17d9, %esi # imm = 0x17D9 xorl %eax, %eax callq 0x24e90 jmp 0x83124 jmp 0x83124 movq %rax, %rbx leaq 0x88(%rsp), %rdi callq 0x7d93a leaq 0x18(%rsp), %rdi callq 0x7d93a movq %rbx, %rdi callq 0x24f60
_ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0F8h movzx r15d, byte ptr [rdi] cmp r15, 9; switch 10 cases ja def_82E14; jumptable 0000000000082E14 default case mov r14, rdi lea rax, jpt_82E14 movsxd rcx, ds:(jpt_82E14 - 0B4818h)[rax+r15*4] add rcx, rax jmp rcx; switch jump loc_82E16: mov eax, r15d; jumptable 0000000000082E14 cases 0,9 shl eax, 6 mov ecx, r15d shr ecx, 2 or ecx, eax mov ebx, 9E3779B9h add rbx, rcx jmp loc_830CE loc_82E31: mov rdi, r14; jumptable 0000000000082E14 case 3 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRKS9_KSD_EET_RT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_ref_impl<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const &) lea rdi, [rsp+128h+var_110] mov rsi, rax call _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&) jmp loc_830B5 loc_82E4B: mov r12d, 9E3779B9h; jumptable 0000000000082E14 case 8 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_binary(void) mov ecx, r15d shl ecx, 6 mov ebx, r15d shr ebx, 2 or ebx, ecx add rbx, [rax+8] add rbx, r12 sub rbx, [rax] xor rbx, r15 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_binary(void) movzx eax, byte ptr [rax+20h] mov rcx, rbx shl rcx, 6 or rcx, rax mov r15, rbx shr r15, 2 add r15, r12 add r15, rcx xor r15, rbx mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_binary(void) mov rcx, [rax+18h] add rcx, r12 lea rdx, [r12-1] cmp byte ptr [rax+20h], 0 cmovnz rdx, rcx mov rax, r15 shl rax, 6 add rax, rdx mov rbx, r15 shr rbx, 2 add rbx, rax xor rbx, r15 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_binary(void) mov rcx, [rax] mov rax, [rax+8] loc_82EDC: cmp rcx, rax jz loc_830D1 movzx edx, byte ptr [rcx] mov rsi, rbx shl rsi, 6 mov rdi, rbx shr rdi, 2 add rsi, r12 add rsi, rdi add rsi, rdx xor rbx, rsi inc rcx jmp short loc_82EDC loc_82F07: mov ebp, 9E3779B9h; jumptable 0000000000082E14 case 1 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 rbx, rax mov eax, r15d shl eax, 6 mov ecx, r15d shr ecx, 2 or ecx, eax add rbx, rbp add rbx, rcx xor rbx, r15 lea r12, [rsp+128h+var_118] mov [r12], r14 lea r14, [rsp+128h+var_110] mov rdi, r14 mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::begin(void) lea r15, [rsp+128h+var_A0] mov rdi, r15 mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3endEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::end(void) lea r12, [rsp+128h+var_119] loc_82F5F: mov rdi, r14 mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jz loc_830E6 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::key(void) mov rdi, r12 mov rsi, rax call _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&) mov r13, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rdi, rax call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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, rbx shl rcx, 6 mov rdx, rbx shr rdx, 2 add rcx, rbp add rcx, rdx add rcx, r13 xor rcx, rbx mov rdx, rcx shl rdx, 6 mov rbx, rcx shr rbx, 2 add rdx, rbp add rbx, rax add rbx, rdx xor rbx, rcx mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEppEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::operator++(void) jmp short loc_82F5F loc_82FD6: mov r13d, 9E3779B9h; jumptable 0000000000082E14 case 2 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 rbx, rax mov eax, r15d shl eax, 6 mov ecx, r15d shr ecx, 2 or ecx, eax add rbx, r13 add rbx, rcx xor rbx, r15 lea r15, [rsp+128h+var_110] mov rdi, r15 mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void) lea r12, [rsp+128h+var_A0] mov rdi, r12 mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void) loc_83021: mov rdi, r15 mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jz loc_830D1 mov rdi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rdi, rax call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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, rbx shl rcx, 6 mov rdx, rbx shr rdx, 2 add rcx, r13 add rcx, rdx add rcx, rax xor rbx, rcx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void) jmp short loc_83021 loc_83068: mov rdi, r14; jumptable 0000000000082E14 case 6 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implImTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE jmp short loc_830B5 loc_83072: mov rdi, r14; jumptable 0000000000082E14 case 4 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIbTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE mov ecx, 9E3779B9h lea rdx, [rcx+1] test al, al cmovz rdx, rcx mov eax, r15d shl eax, 6 mov ebx, r15d shr ebx, 2 or ebx, eax jmp short loc_830CB loc_83099: mov rdi, r14; jumptable 0000000000082E14 case 5 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIlTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE jmp short loc_830B5 loc_830A3: mov rdi, r14; jumptable 0000000000082E14 case 7 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE lea rdi, [rsp+128h+var_110] call _ZNKSt4hashIdEclEd; std::hash<double>::operator()(double) loc_830B5: mov ecx, r15d shl ecx, 6 mov edx, r15d shr edx, 2 or edx, ecx mov ebx, 9E3779B9h add rbx, rax loc_830CB: add rbx, rdx loc_830CE: xor rbx, r15 loc_830D1: mov rax, rbx add rsp, 0F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_830E6: lea rdi, [rsp+128h+var_A0] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() lea rdi, [rsp+128h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() jmp short loc_830D1 def_82E14: lea rdi, aWorkspaceLlm4b_1; jumptable 0000000000082E14 default case lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAdvancedOption+0ABh; "false" mov esi, 17D9h xor eax, eax call _ggml_abort jmp short loc_83124 jmp short $+2 loc_83124: mov rbx, rax lea rdi, [rsp+128h+var_A0] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() lea rdi, [rsp+128h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() mov rdi, rbx call __Unwind_Resume
unsigned long long nlohmann::json_abi_v3_11_3::detail::hash<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>>( unsigned __int8 *a1) { long long v1; // r15 long long v2; // rbx long long v3; // rax long long v4; // rax _QWORD *binary; // rax unsigned long long v6; // rbx unsigned long long v7; // r15 long long v8; // rax long long v9; // rdx unsigned long long v10; // rbx unsigned __int8 **v11; // rax unsigned __int8 *v12; // rcx unsigned __int8 *v13; // rax long long v14; // rax long long v15; // r13 long long v16; // rax long long v17; // rax char v18; // al long long v19; // rdx long long v20; // rbx double v21; // xmm0_8 long long v23; // rbx char v24; // [rsp+Fh] [rbp-119h] BYREF unsigned __int8 *v25; // [rsp+10h] [rbp-118h] BYREF unsigned __int8 *v26[14]; // [rsp+18h] [rbp-110h] BYREF _BYTE v27[160]; // [rsp+88h] [rbp-A0h] BYREF v1 = *a1; switch ( *a1 ) { case 0u: case 9u: v2 = (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 2654435769LL; goto LABEL_23; case 1u: v10 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 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>::size(a1) + 2654435769LL); v25 = a1; nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::begin( (long long)v26, (long long *)&v25); nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::end( (long long)v27, (long long *)&v25); while ( ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_((long long)v26) ) { v14 = nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::key(v26); v15 = std::hash<std::string>::operator()((long long)&v24, v14); v16 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(v26); v10 ^= (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u) ^ (((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) << 6) + 2654435769u + nlohmann::json_abi_v3_11_3::detail::hash<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>>(v16) + ((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) >> 2)); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::operator++((long long)v26); } nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v27); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v26); return v10; case 2u: v10 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 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>::size(a1) + 2654435769LL); 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>::cbegin( (long long)v26, (long long)a1); 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>::cend( (long long)v27, (long long)a1); while ( ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_((long long)v26) ) { v17 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(v26); v10 ^= nlohmann::json_abi_v3_11_3::detail::hash<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>>(v17) + (v10 >> 2) + (v10 << 6) + 2654435769u; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(v26); } return v10; case 3u: v3 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>(a1); v4 = std::hash<std::string>::operator()((long long)v26, v3); goto LABEL_21; case 4u: v18 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIbTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE((long long)a1); v19 = 2654435770LL; if ( !v18 ) v19 = 2654435769LL; v20 = ((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2); goto LABEL_22; case 5u: v4 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIlTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE((long long)a1); goto LABEL_21; case 6u: v4 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implImTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(a1); goto LABEL_21; case 7u: v21 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE((long long)a1); v4 = std::hash<double>::operator()(v26, v21); LABEL_21: v19 = ((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2); v20 = v4 + 2654435769LL; LABEL_22: v2 = v19 + v20; LABEL_23: v10 = v1 ^ v2; break; case 8u: binary = (_QWORD *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1); v6 = v1 ^ (binary[1] + (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 2654435769LL - *binary); v7 = v6 ^ ((*(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>::get_binary(a1) + 32) | (v6 << 6)) + (v6 >> 2) + 2654435769u); v8 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1); v9 = 2654435768LL; if ( *(_BYTE *)(v8 + 32) ) v9 = *(_QWORD *)(v8 + 24) + 2654435769LL; v10 = v7 ^ (v9 + (v7 << 6) + (v7 >> 2)); v11 = (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>::get_binary(a1); v12 = *v11; v13 = v11[1]; while ( v12 != v13 ) v10 ^= *v12++ + (v10 >> 2) + (v10 << 6) + 2654435769u; break; default: v23 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 6105LL, "GGML_ASSERT(%s) failed", "false"); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v27); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v26); _Unwind_Resume(v23); } return v10; }
hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf8 MOVZX R15D,byte ptr [RDI] CMP R15,0x9 JA 0x001830ff MOV R14,RDI LEA RAX,[0x1b4818] MOVSXD RCX,dword ptr [RAX + R15*0x4] ADD RCX,RAX switchD: JMP RCX caseD_0: MOV EAX,R15D SHL EAX,0x6 MOV ECX,R15D SHR ECX,0x2 OR ECX,EAX MOV EBX,0x9e3779b9 ADD RBX,RCX JMP 0x001830ce caseD_3: MOV RDI,R14 CALL 0x0018320e LEA RDI,[RSP + 0x18] MOV RSI,RAX CALL 0x0013a876 JMP 0x001830b5 caseD_8: MOV R12D,0x9e3779b9 MOV RDI,R14 CALL 0x0018316e MOV ECX,R15D SHL ECX,0x6 MOV EBX,R15D SHR EBX,0x2 OR EBX,ECX ADD RBX,qword ptr [RAX + 0x8] ADD RBX,R12 SUB RBX,qword ptr [RAX] XOR RBX,R15 MOV RDI,R14 CALL 0x0018316e MOVZX EAX,byte ptr [RAX + 0x20] MOV RCX,RBX SHL RCX,0x6 OR RCX,RAX MOV R15,RBX SHR R15,0x2 ADD R15,R12 ADD R15,RCX XOR R15,RBX MOV RDI,R14 CALL 0x0018316e MOV RCX,qword ptr [RAX + 0x18] ADD RCX,R12 LEA RDX,[R12 + -0x1] CMP byte ptr [RAX + 0x20],0x0 CMOVNZ RDX,RCX MOV RAX,R15 SHL RAX,0x6 ADD RAX,RDX MOV RBX,R15 SHR RBX,0x2 ADD RBX,RAX XOR RBX,R15 MOV RDI,R14 CALL 0x0018316e MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x8] LAB_00182edc: CMP RCX,RAX JZ 0x001830d1 MOVZX EDX,byte ptr [RCX] MOV RSI,RBX SHL RSI,0x6 MOV RDI,RBX SHR RDI,0x2 ADD RSI,R12 ADD RSI,RDI ADD RSI,RDX XOR RBX,RSI INC RCX JMP 0x00182edc caseD_1: MOV EBP,0x9e3779b9 MOV RDI,R14 CALL 0x00142134 MOV RBX,RAX MOV EAX,R15D SHL EAX,0x6 MOV ECX,R15D SHR ECX,0x2 OR ECX,EAX ADD RBX,RBP ADD RBX,RCX XOR RBX,R15 LEA R12,[RSP + 0x10] MOV qword ptr [R12],R14 LEA R14,[RSP + 0x18] MOV RDI,R14 MOV RSI,R12 CALL 0x0017d856 LEA R15,[RSP + 0x88] MOV RDI,R15 MOV RSI,R12 CALL 0x0017d888 LEA R12,[RSP + 0xf] LAB_00182f5f: MOV RDI,R14 MOV RSI,R15 CALL 0x00167b8c TEST AL,AL JZ 0x001830e6 LAB_00182f72: MOV RDI,R14 CALL 0x0017d8ba MOV RDI,R12 MOV RSI,RAX CALL 0x0013a876 MOV R13,RAX LAB_00182f88: MOV RDI,R14 CALL 0x00167d86 MOV RDI,RAX CALL 0x00182de4 MOV RCX,RBX SHL RCX,0x6 MOV RDX,RBX SHR RDX,0x2 ADD RCX,RBP ADD RCX,RDX ADD RCX,R13 XOR RCX,RBX MOV RDX,RCX SHL RDX,0x6 MOV RBX,RCX SHR RBX,0x2 ADD RDX,RBP ADD RBX,RAX ADD RBX,RDX XOR RBX,RCX LAB_00182fcc: MOV RDI,R14 CALL 0x0017d928 LAB_00182fd4: JMP 0x00182f5f caseD_2: MOV R13D,0x9e3779b9 MOV RDI,R14 CALL 0x00142134 MOV RBX,RAX MOV EAX,R15D SHL EAX,0x6 MOV ECX,R15D SHR ECX,0x2 OR ECX,EAX ADD RBX,R13 ADD RBX,RCX XOR RBX,R15 LEA R15,[RSP + 0x18] MOV RDI,R15 MOV RSI,R14 CALL 0x001680e8 LEA R12,[RSP + 0x88] MOV RDI,R12 MOV RSI,R14 CALL 0x00168354 LAB_00183021: MOV RDI,R15 MOV RSI,R12 CALL 0x00167b8c TEST AL,AL JZ 0x001830d1 MOV RDI,R15 CALL 0x00167d86 MOV RDI,RAX CALL 0x00182de4 MOV RCX,RBX SHL RCX,0x6 MOV RDX,RBX SHR RDX,0x2 ADD RCX,R13 ADD RCX,RDX ADD RCX,RAX XOR RBX,RCX MOV RDI,R15 CALL 0x00167d1e JMP 0x00183021 caseD_6: MOV RDI,R14 CALL 0x00183332 JMP 0x001830b5 caseD_4: MOV RDI,R14 CALL 0x00163eac MOV ECX,0x9e3779b9 LEA RDX,[RCX + 0x1] TEST AL,AL CMOVZ RDX,RCX MOV EAX,R15D SHL EAX,0x6 MOV EBX,R15D SHR EBX,0x2 OR EBX,EAX JMP 0x001830cb caseD_5: MOV RDI,R14 CALL 0x0016339a JMP 0x001830b5 caseD_7: MOV RDI,R14 CALL 0x00163b7a LEA RDI,[RSP + 0x18] CALL 0x00183146 LAB_001830b5: MOV ECX,R15D SHL ECX,0x6 MOV EDX,R15D SHR EDX,0x2 OR EDX,ECX MOV EBX,0x9e3779b9 ADD RBX,RAX LAB_001830cb: ADD RBX,RDX LAB_001830ce: XOR RBX,R15 LAB_001830d1: MOV RAX,RBX ADD RSP,0xf8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001830e6: LEA RDI,[RSP + 0x88] CALL 0x0017d93a LEA RDI,[RSP + 0x18] CALL 0x0017d93a JMP 0x001830d1 default: LEA RDI,[0x1b1be6] LEA RDX,[0x1ac140] LEA RCX,[0x1af6c3] MOV ESI,0x17d9 XOR EAX,EAX CALL 0x00124e90
/* unsigned long nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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> const&) */ ulong nlohmann::json_abi_v3_11_3::detail:: hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *param_1) { byte bVar1; char cVar2; string *psVar3; long *plVar4; long lVar5; long lVar6; int8 *puVar7; basic_json *pbVar8; byte *pbVar9; ulong uVar10; ulong uVar11; ulong uVar12; double dVar13; hash<std::__cxx11::string> local_119; basic_json *local_118; hash<std::__cxx11::string> local_110 [112]; iteration_proxy<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>> local_a0 [112]; bVar1 = *param_1; uVar12 = (ulong)bVar1; switch(uVar12) { case 0: case 9: uVar11 = (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) + 0x9e3779b9; goto LAB_001830ce; case 1: lVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); uVar12 = lVar5 + 0x9e3779b9 + (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) ^ uVar12; local_118 = param_1; iteration_proxy<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>> ::begin((iteration_proxy<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>> *)local_110); iteration_proxy<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>> ::end(local_a0); /* try { // try from 00182f5f to 00182f69 has its CatchHandler @ 00183124 */ while (cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iteration_proxy<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>> *)local_110,local_a0), cVar2 != '\0') { /* try { // try from 00182f72 to 00182f79 has its CatchHandler @ 00183120 */ psVar3 = (string *) iteration_proxy_value<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>> ::key((iteration_proxy_value<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>> *)local_110); lVar5 = std::hash<std::__cxx11::string>::operator()(&local_119,psVar3); /* try { // try from 00182f88 to 00182f97 has its CatchHandler @ 00183122 */ pbVar8 = (basic_json *) iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)local_110); uVar10 = hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (pbVar8); uVar12 = uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + lVar5 ^ uVar12; uVar12 = (uVar12 >> 2) + uVar10 + uVar12 * 0x40 + 0x9e3779b9 ^ uVar12; /* try { // try from 00182fcc to 00182fd3 has its CatchHandler @ 00183124 */ iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::operator++((iteration_proxy_value<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>> *)local_110); } iteration_proxy_value<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>> ::~iteration_proxy_value ((iteration_proxy_value<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>> *)local_a0); iteration_proxy_value<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>> ::~iteration_proxy_value ((iteration_proxy_value<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>> *)local_110); return uVar12; case 2: lVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); uVar12 = lVar5 + 0x9e3779b9 + (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) ^ uVar12; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::cbegin(); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::cend(); while (cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)local_110,local_a0), cVar2 != '\0') { pbVar8 = (basic_json *) iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)local_110); uVar10 = hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (pbVar8); uVar12 = uVar12 ^ uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + uVar10; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)local_110); } return uVar12; case 3: psVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: get_ref_impl<std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> (param_1); lVar5 = std::hash<std::__cxx11::string>::operator()(local_110,psVar3); break; case 4: cVar2 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIbTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (param_1); uVar10 = 0x9e3779ba; if (cVar2 == '\0') { uVar10 = 0x9e3779b9; } uVar11 = (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6); goto LAB_001830cb; case 5: lVar5 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIlTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (param_1); break; case 6: lVar5 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implImTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (param_1); break; case 7: dVar13 = (double)_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (param_1); lVar5 = std::hash<double>::operator()((hash<double> *)local_110,dVar13); break; case 8: plVar4 = (long *)basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); uVar12 = ((ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) + plVar4[1] + 0x9e3779b9) - *plVar4 ^ uVar12; lVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); uVar12 = (uVar12 >> 2) + 0x9e3779b9 + (uVar12 << 6 | (ulong)*(byte *)(lVar5 + 0x20)) ^ uVar12; 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> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); lVar5 = 0x9e3779b8; if (*(char *)(lVar6 + 0x20) != '\0') { lVar5 = *(long *)(lVar6 + 0x18) + 0x9e3779b9; } uVar12 = (uVar12 >> 2) + uVar12 * 0x40 + lVar5 ^ uVar12; puVar7 = (int8 *) basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); for (pbVar9 = (byte *)*puVar7; pbVar9 != (byte *)puVar7[1]; pbVar9 = pbVar9 + 1) { uVar12 = uVar12 ^ uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + (ulong)*pbVar9; } return uVar12; default: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x17d9, "GGML_ASSERT(%s) failed","false"); } uVar10 = (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6); uVar11 = lVar5 + 0x9e3779b9; LAB_001830cb: uVar11 = uVar11 + uVar10; LAB_001830ce: return uVar11 ^ uVar12; }
3,842
unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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> const&)
monkey531[P]llama/common/json.hpp
constexpr value_t type() const noexcept { return m_data.m_type; }
O3
cpp
unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movzbl (%rdi), %eax movb (%rsi), %cl cmpb %cl, %al jne 0x8d03e cmpl $0x8, %eax ja 0x8d206 movb $0x1, %bl movl %eax, %eax leaq 0x636e8(%rip), %rcx # 0xf0710 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x8(%rdi), %rax cmpq 0x8(%rsi), %rax jmp 0x8d18f movl %eax, %edx xorb $0x5, %dl movl %ecx, %r8d xorb $0x7, %r8b orb %r8b, %dl jne 0x8d060 cvtsi2sdq 0x8(%rdi), %xmm0 cmpeqsd 0x8(%rsi), %xmm0 jmp 0x8d106 movl %eax, %r9d xorb $0x7, %r9b movl %ecx, %edx xorb $0x5, %dl orb %dl, %r9b jne 0x8d07c cvtsi2sdq 0x8(%rsi), %xmm0 jmp 0x8d100 movl %eax, %r9d xorb $0x6, %r9b orb %r8b, %r9b jne 0x8d0b0 movsd 0x8(%rdi), %xmm0 unpcklps 0x635dc(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1] subpd 0x635e4(%rip), %xmm0 # 0xf0680 movapd %xmm0, %xmm1 unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1] addsd %xmm0, %xmm1 cmpeqsd 0x8(%rsi), %xmm1 jmp 0x8d0e9 movl %eax, %r8d xorb $0x7, %r8b xorb $0x6, %cl orb %cl, %r8b jne 0x8d257 movsd 0x8(%rsi), %xmm0 unpcklps 0x635a1(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1] subpd 0x635a9(%rip), %xmm0 # 0xf0680 movapd %xmm0, %xmm1 unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1] addsd %xmm0, %xmm1 cmpeqsd 0x8(%rdi), %xmm1 movq %xmm1, %rbx jmp 0x8d10b movb 0x8(%rdi), %al cmpb 0x8(%rsi), %al jmp 0x8d18f movsd 0x8(%rsi), %xmm0 cmpeqsd 0x8(%rdi), %xmm0 movq %xmm0, %rbx andl $0x1, %ebx jmp 0x8d249 movq 0x8(%rdi), %rax movq 0x8(%rsi), %rcx movq (%rax), %r14 movq 0x8(%rax), %r12 movq %r12, %rax subq %r14, %rax movq (%rcx), %r15 movq 0x8(%rcx), %rcx subq %r15, %rcx cmpq %rcx, %rax jne 0x8d206 cmpq %r12, %r14 je 0x8d249 movq %r14, %rdi movq %r15, %rsi callq 0x8d000 movl %eax, %ebx testb %al, %al je 0x8d249 addq $0x10, %r14 addq $0x10, %r15 jmp 0x8d13b movq 0x8(%rdi), %rax movq 0x8(%rsi), %rcx movq 0x8(%rax), %rdx cmpq 0x8(%rcx), %rdx jne 0x8d206 testq %rdx, %rdx je 0x8d249 movq (%rcx), %rsi movq (%rax), %rdi callq 0x1b8f0 testl %eax, %eax sete %bl jmp 0x8d249 movq 0x8(%rdi), %rax movq 0x8(%rsi), %rcx movq (%rax), %r15 movq 0x8(%rax), %r12 movq %r12, %rax subq %r15, %rax movq (%rcx), %r14 movq 0x8(%rcx), %rcx subq %r14, %rcx cmpq %rcx, %rax jne 0x8d206 cmpq %r12, %r15 je 0x8d249 addq $0x20, %r14 movq 0x8(%r15), %rdx cmpq -0x18(%r14), %rdx jne 0x8d206 testq %rdx, %rdx je 0x8d1e7 movq -0x20(%r14), %rsi movq (%r15), %rdi callq 0x1b8f0 testl %eax, %eax jne 0x8d206 leaq 0x20(%r15), %rdi movq %r14, %rsi callq 0x8d000 testb %al, %al je 0x8d206 addq $0x30, %r15 addq $0x30, %r14 cmpq %r12, %r15 jne 0x8d1c8 jmp 0x8d249 xorl %ebx, %ebx jmp 0x8d249 movq 0x8(%rdi), %rax movq 0x8(%rsi), %rcx leaq 0x18(%rax), %rdx leaq 0x20(%rax), %rsi leaq 0x20(%rsp), %rdi movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rax, 0x10(%rdi) leaq 0x18(%rcx), %rax leaq 0x20(%rcx), %rdx leaq 0x8(%rsp), %rsi movq %rdx, (%rsi) movq %rax, 0x8(%rsi) movq %rcx, 0x10(%rsi) callq 0x8d2e0 movl %eax, %ebx movl %ebx, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movl %eax, %r8d xorb $0x6, %r8b orb %dl, %r8b je 0x8d031 xorb $0x5, %al orb %cl, %al je 0x8d031 xorl %ebx, %ebx xorl %edx, %edx callq 0x8d284 jmp 0x8d249 movq %rax, %rdi callq 0x21ae5
_ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_: push r15 push r14 push r12 push rbx sub rsp, 38h movzx eax, byte ptr [rdi] mov cl, [rsi] cmp al, cl jnz short loc_8D03E cmp eax, 8; switch 9 cases ja def_8D02F; jumptable 000000000008D02F default case mov bl, 1 mov eax, eax lea rcx, jpt_8D02F movsxd rax, ds:(jpt_8D02F - 0F0710h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_8D031: mov rax, [rdi+8]; jumptable 000000000008D02F cases 5,6 cmp rax, [rsi+8] jmp loc_8D18F loc_8D03E: mov edx, eax xor dl, 5 mov r8d, ecx xor r8b, 7 or dl, r8b jnz short loc_8D060 cvtsi2sd xmm0, qword ptr [rdi+8] cmpeqsd xmm0, qword ptr [rsi+8] jmp loc_8D106 loc_8D060: mov r9d, eax xor r9b, 7 mov edx, ecx xor dl, 5 or r9b, dl jnz short loc_8D07C cvtsi2sd xmm0, qword ptr [rsi+8] jmp loc_8D100 loc_8D07C: mov r9d, eax xor r9b, 6 or r9b, r8b jnz short loc_8D0B0 movsd xmm0, qword ptr [rdi+8] unpcklps xmm0, cs:xmmword_F0670 subpd xmm0, cs:xmmword_F0680 movapd xmm1, xmm0 unpckhpd xmm1, xmm0 addsd xmm1, xmm0 cmpeqsd xmm1, qword ptr [rsi+8] jmp short loc_8D0E9 loc_8D0B0: mov r8d, eax xor r8b, 7 xor cl, 6 or r8b, cl jnz loc_8D257 movsd xmm0, qword ptr [rsi+8] unpcklps xmm0, cs:xmmword_F0670 subpd xmm0, cs:xmmword_F0680 movapd xmm1, xmm0 unpckhpd xmm1, xmm0 addsd xmm1, xmm0 cmpeqsd xmm1, qword ptr [rdi+8] loc_8D0E9: movq rbx, xmm1 jmp short loc_8D10B loc_8D0F0: mov al, [rdi+8]; jumptable 000000000008D02F case 4 cmp al, [rsi+8] jmp loc_8D18F loc_8D0FB: movsd xmm0, qword ptr [rsi+8]; jumptable 000000000008D02F case 7 loc_8D100: cmpeqsd xmm0, qword ptr [rdi+8] loc_8D106: movq rbx, xmm0 loc_8D10B: and ebx, 1 jmp loc_8D249; jumptable 000000000008D02F case 0 loc_8D113: mov rax, [rdi+8]; jumptable 000000000008D02F case 2 mov rcx, [rsi+8] mov r14, [rax] mov r12, [rax+8] mov rax, r12 sub rax, r14 mov r15, [rcx] mov rcx, [rcx+8] sub rcx, r15 cmp rax, rcx jnz def_8D02F; jumptable 000000000008D02F default case loc_8D13B: cmp r14, r12 jz loc_8D249; jumptable 000000000008D02F case 0 mov rdi, r14 mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov ebx, eax test al, al jz loc_8D249; jumptable 000000000008D02F case 0 add r14, 10h add r15, 10h jmp short loc_8D13B loc_8D163: mov rax, [rdi+8]; jumptable 000000000008D02F case 3 mov rcx, [rsi+8] mov rdx, [rax+8] cmp rdx, [rcx+8] jnz def_8D02F; jumptable 000000000008D02F default case test rdx, rdx jz loc_8D249; jumptable 000000000008D02F case 0 mov rsi, [rcx] mov rdi, [rax] call _bcmp test eax, eax loc_8D18F: setz bl jmp loc_8D249; jumptable 000000000008D02F case 0 loc_8D197: mov rax, [rdi+8]; jumptable 000000000008D02F case 1 mov rcx, [rsi+8] mov r15, [rax] mov r12, [rax+8] mov rax, r12 sub rax, r15 mov r14, [rcx] mov rcx, [rcx+8] sub rcx, r14 cmp rax, rcx jnz short def_8D02F; jumptable 000000000008D02F default case cmp r15, r12 jz loc_8D249; jumptable 000000000008D02F case 0 add r14, 20h ; ' ' loc_8D1C8: mov rdx, [r15+8] cmp rdx, [r14-18h] jnz short def_8D02F; jumptable 000000000008D02F default case test rdx, rdx jz short loc_8D1E7 mov rsi, [r14-20h] mov rdi, [r15] call _bcmp test eax, eax jnz short def_8D02F; jumptable 000000000008D02F default case loc_8D1E7: lea rdi, [r15+20h] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) test al, al jz short def_8D02F; jumptable 000000000008D02F default case add r15, 30h ; '0' add r14, 30h ; '0' cmp r15, r12 jnz short loc_8D1C8 jmp short loc_8D249; jumptable 000000000008D02F case 0 def_8D02F: xor ebx, ebx; jumptable 000000000008D02F default case jmp short loc_8D249; jumptable 000000000008D02F case 0 loc_8D20A: mov rax, [rdi+8]; jumptable 000000000008D02F case 8 mov rcx, [rsi+8] lea rdx, [rax+18h] lea rsi, [rax+20h] lea rdi, [rsp+58h+var_38] mov [rdi], rsi mov [rdi+8], rdx mov [rdi+10h], rax lea rax, [rcx+18h] lea rdx, [rcx+20h] lea rsi, [rsp+58h+var_50] mov [rsi], rdx mov [rsi+8], rax mov [rsi+10h], rcx call _ZNSt15__tuple_compareISt5tupleIJRKSt6vectorIhSaIhEERKmRKbEESA_Lm0ELm3EE4__eqERKSA_SD_; std::__tuple_compare<std::tuple<std::vector<uchar> const&,ulong const&,bool const&>,std::tuple<std::vector<uchar> const&,ulong const&,bool const&>,0ul,3ul>::__eq(std::tuple<std::vector<uchar> const&,ulong const&,bool const&> const&,std::tuple<std::vector<uchar> const&,ulong const&,bool const&> const&) mov ebx, eax loc_8D249: mov eax, ebx; jumptable 000000000008D02F case 0 add rsp, 38h pop rbx pop r12 pop r14 pop r15 retn loc_8D257: mov r8d, eax xor r8b, 6 or r8b, dl jz loc_8D031; jumptable 000000000008D02F cases 5,6 xor al, 5 or al, cl jz loc_8D031; jumptable 000000000008D02F cases 5,6 xor ebx, ebx xor edx, edx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE18compares_unorderedERKSD_SF_b; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::compares_unordered(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool) jmp short loc_8D249; jumptable 000000000008D02F case 0 mov rdi, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::operator==(unsigned __int8 *a1, unsigned __int8 *a2, __m128d a3) { unsigned int v3; // ebx unsigned __int8 v4; // al unsigned __int8 v5; // cl bool v6; // zf __m128d v7; // rt1 unsigned __int8 v8; // dl __m128d v9; // xmm0 __m128d v10; // xmm1 __m128d v11; // rt1 __int8 v12; // xmm1_1 unsigned __int8 v13; // cl __m128d v14; // xmm0 __m128d v15; // xmm1 __m128d v16; // rt1 __int8 v17; // bl __m128d v18; // rt1 long long *v19; // rax long long *v20; // rcx long long v21; // r14 long long v22; // r12 long long v23; // r15 _QWORD *v24; // rax _QWORD *v25; // rcx long long v26; // rdx _QWORD *v27; // rax _QWORD *v28; // rcx _QWORD *v29; // r15 _QWORD *v30; // r12 long long v31; // r14 long long v32; // rdx v4 = *a1; v5 = *a2; if ( *a1 != *a2 ) { if ( v5 ^ 7 | v4 ^ 5 ) { v8 = v5 ^ 5; if ( v5 ^ 5 | v4 ^ 7 ) { if ( v5 ^ 7 | v4 ^ 6 ) { v13 = v5 ^ 6; if ( v13 | v4 ^ 7 ) { if ( v8 | v4 ^ 6 && v13 | v4 ^ 5 ) { v3 = 0; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::compares_unordered( a1, a2, 0LL); } else { LABEL_3: v6 = *((_QWORD *)a1 + 1) == *((_QWORD *)a2 + 1); LABEL_25: LOBYTE(v3) = v6; } return v3; } v14 = _mm_sub_pd( (__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a2 + 1), (__m128)xmmword_F0670), (__m128d)xmmword_F0680); v15 = _mm_unpackhi_pd(v14, v14); v15.m128d_f64[0] = v15.m128d_f64[0] + v14.m128d_f64[0]; v16.m128d_f64[0] = *((double *)a1 + 1); v12 = *(_OWORD *)&_mm_cmpeq_sd(v15, v16); } else { v9 = _mm_sub_pd( (__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a1 + 1), (__m128)xmmword_F0670), (__m128d)xmmword_F0680); v10 = _mm_unpackhi_pd(v9, v9); v10.m128d_f64[0] = v10.m128d_f64[0] + v9.m128d_f64[0]; v11.m128d_f64[0] = *((double *)a2 + 1); v12 = *(_OWORD *)&_mm_cmpeq_sd(v10, v11); } v17 = v12; return v17 & 1; } a3.m128d_f64[0] = (double)(int)*((_QWORD *)a2 + 1); LABEL_15: v18.m128d_f64[0] = *((double *)a1 + 1); LOBYTE(a3.m128d_f64[0]) = *(_OWORD *)&_mm_cmpeq_sd(a3, v18); } else { a3.m128d_f64[0] = (double)(int)*((_QWORD *)a1 + 1); v7.m128d_f64[0] = *((double *)a2 + 1); LOBYTE(a3.m128d_f64[0]) = *(_OWORD *)&_mm_cmpeq_sd(a3, v7); } v17 = LOBYTE(a3.m128d_f64[0]); return v17 & 1; } LOBYTE(v3) = 1; switch ( *a1 ) { case 0u: return v3; case 1u: v27 = (_QWORD *)*((_QWORD *)a1 + 1); v28 = (_QWORD *)*((_QWORD *)a2 + 1); v29 = (_QWORD *)*v27; v30 = (_QWORD *)v27[1]; if ( (_QWORD *)((char *)v30 - *v27) != (_QWORD *)(v28[1] - *v28) ) return 0; if ( v29 == v30 ) return v3; v31 = *v28 + 32LL; break; case 2u: v19 = (long long *)*((_QWORD *)a1 + 1); v20 = (long long *)*((_QWORD *)a2 + 1); v21 = *v19; v22 = v19[1]; v23 = *v20; if ( v22 - *v19 != v20[1] - *v20 ) return 0; while ( v21 != v22 ) { v3 = nlohmann::json_abi_v3_11_3::operator==(v21, v23); if ( !(_BYTE)v3 ) break; v21 += 16LL; v23 += 16LL; } return v3; case 3u: v24 = (_QWORD *)*((_QWORD *)a1 + 1); v25 = (_QWORD *)*((_QWORD *)a2 + 1); v26 = v24[1]; if ( v26 != v25[1] ) return 0; if ( !v26 ) return v3; v6 = (unsigned int)bcmp(*v24, *v25) == 0; goto LABEL_25; case 4u: v6 = a1[8] == a2[8]; goto LABEL_25; case 5u: case 6u: goto LABEL_3; case 7u: a3 = (__m128d)*((unsigned long long *)a2 + 1); goto LABEL_15; case 8u: return (unsigned int)std::__tuple_compare<std::tuple<std::vector<unsigned char> const&,unsigned long const&,bool const&>,std::tuple<std::vector<unsigned char> const&,unsigned long const&,bool const&>,0ul,3ul>::__eq(); default: return 0; } while ( 1 ) { v32 = v29[1]; if ( v32 != *(_QWORD *)(v31 - 24) || v32 && (unsigned int)bcmp(*v29, *(_QWORD *)(v31 - 32)) ) break; if ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v29 + 4, v31) ) break; v29 += 6; v31 += 48LL; if ( v29 == v30 ) return v3; } return 0; }
operator==: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x38 MOVZX EAX,byte ptr [RDI] MOV CL,byte ptr [RSI] CMP AL,CL JNZ 0x0018d03e CMP EAX,0x8 JA 0x0018d206 MOV BL,0x1 MOV EAX,EAX LEA RCX,[0x1f0710] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_5: MOV RAX,qword ptr [RDI + 0x8] CMP RAX,qword ptr [RSI + 0x8] JMP 0x0018d18f LAB_0018d03e: MOV EDX,EAX XOR DL,0x5 MOV R8D,ECX XOR R8B,0x7 OR DL,R8B JNZ 0x0018d060 CVTSI2SD XMM0,qword ptr [RDI + 0x8] CMPEQSD XMM0,qword ptr [RSI + 0x8] JMP 0x0018d106 LAB_0018d060: MOV R9D,EAX XOR R9B,0x7 MOV EDX,ECX XOR DL,0x5 OR R9B,DL JNZ 0x0018d07c CVTSI2SD XMM0,qword ptr [RSI + 0x8] JMP 0x0018d100 LAB_0018d07c: MOV R9D,EAX XOR R9B,0x6 OR R9B,R8B JNZ 0x0018d0b0 MOVSD XMM0,qword ptr [RDI + 0x8] UNPCKLPS XMM0,xmmword ptr [0x001f0670] SUBPD XMM0,xmmword ptr [0x001f0680] MOVAPD XMM1,XMM0 UNPCKHPD XMM1,XMM0 ADDSD XMM1,XMM0 CMPEQSD XMM1,qword ptr [RSI + 0x8] JMP 0x0018d0e9 LAB_0018d0b0: MOV R8D,EAX XOR R8B,0x7 XOR CL,0x6 OR R8B,CL JNZ 0x0018d257 MOVSD XMM0,qword ptr [RSI + 0x8] UNPCKLPS XMM0,xmmword ptr [0x001f0670] SUBPD XMM0,xmmword ptr [0x001f0680] MOVAPD XMM1,XMM0 UNPCKHPD XMM1,XMM0 ADDSD XMM1,XMM0 CMPEQSD XMM1,qword ptr [RDI + 0x8] LAB_0018d0e9: MOVQ RBX,XMM1 JMP 0x0018d10b caseD_4: MOV AL,byte ptr [RDI + 0x8] CMP AL,byte ptr [RSI + 0x8] JMP 0x0018d18f caseD_7: MOVSD XMM0,qword ptr [RSI + 0x8] LAB_0018d100: CMPEQSD XMM0,qword ptr [RDI + 0x8] LAB_0018d106: MOVQ RBX,XMM0 LAB_0018d10b: AND EBX,0x1 JMP 0x0018d249 caseD_2: MOV RAX,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RSI + 0x8] MOV R14,qword ptr [RAX] MOV R12,qword ptr [RAX + 0x8] MOV RAX,R12 SUB RAX,R14 MOV R15,qword ptr [RCX] MOV RCX,qword ptr [RCX + 0x8] SUB RCX,R15 CMP RAX,RCX JNZ 0x0018d206 LAB_0018d13b: CMP R14,R12 JZ 0x0018d249 MOV RDI,R14 MOV RSI,R15 CALL 0x0018d000 MOV EBX,EAX TEST AL,AL JZ 0x0018d249 ADD R14,0x10 ADD R15,0x10 JMP 0x0018d13b caseD_3: MOV RAX,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RSI + 0x8] MOV RDX,qword ptr [RAX + 0x8] CMP RDX,qword ptr [RCX + 0x8] JNZ 0x0018d206 TEST RDX,RDX JZ 0x0018d249 MOV RSI,qword ptr [RCX] MOV RDI,qword ptr [RAX] CALL 0x0011b8f0 TEST EAX,EAX LAB_0018d18f: SETZ BL JMP 0x0018d249 caseD_1: MOV RAX,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RSI + 0x8] MOV R15,qword ptr [RAX] MOV R12,qword ptr [RAX + 0x8] MOV RAX,R12 SUB RAX,R15 MOV R14,qword ptr [RCX] MOV RCX,qword ptr [RCX + 0x8] SUB RCX,R14 CMP RAX,RCX JNZ 0x0018d206 CMP R15,R12 JZ 0x0018d249 ADD R14,0x20 LAB_0018d1c8: MOV RDX,qword ptr [R15 + 0x8] CMP RDX,qword ptr [R14 + -0x18] JNZ 0x0018d206 TEST RDX,RDX JZ 0x0018d1e7 MOV RSI,qword ptr [R14 + -0x20] MOV RDI,qword ptr [R15] CALL 0x0011b8f0 TEST EAX,EAX JNZ 0x0018d206 LAB_0018d1e7: LEA RDI,[R15 + 0x20] MOV RSI,R14 CALL 0x0018d000 TEST AL,AL JZ 0x0018d206 ADD R15,0x30 ADD R14,0x30 CMP R15,R12 JNZ 0x0018d1c8 JMP 0x0018d249 LAB_0018d206: XOR EBX,EBX JMP 0x0018d249 caseD_8: MOV RAX,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RSI + 0x8] LEA RDX,[RAX + 0x18] LEA RSI,[RAX + 0x20] LEA RDI,[RSP + 0x20] MOV qword ptr [RDI],RSI MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RDI + 0x10],RAX LEA RAX,[RCX + 0x18] LEA RDX,[RCX + 0x20] LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],RDX MOV qword ptr [RSI + 0x8],RAX MOV qword ptr [RSI + 0x10],RCX LAB_0018d242: CALL 0x0018d2e0 MOV EBX,EAX caseD_0: MOV EAX,EBX ADD RSP,0x38 POP RBX POP R12 POP R14 POP R15 RET LAB_0018d257: MOV R8D,EAX XOR R8B,0x6 OR R8B,DL JZ 0x0018d031 XOR AL,0x5 OR AL,CL JZ 0x0018d031 XOR EBX,EBX XOR EDX,EDX CALL 0x0018d284 JMP 0x0018d249
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* nlohmann::json_abi_v3_11_3::TEMPNAMEPLACEHOLDERVALUE(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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&) */ ulong nlohmann::json_abi_v3_11_3::operator==(basic_json *param_1,basic_json *param_2) { basic_json bVar1; basic_json bVar2; basic_json *pbVar3; size_t sVar4; int8 *puVar5; long lVar6; double dVar7; char cVar8; int iVar9; uint uVar10; ulong unaff_RBX; basic_json *pbVar11; basic_json *pbVar12; int8 *puVar13; bool bVar14; long local_50; long local_48; long local_40; long local_38; long local_30; long local_28; bVar2 = *param_1; bVar1 = *param_2; if (bVar2 != bVar1) { if (bVar2 == (basic_json)0x5 && ((byte)bVar1 ^ 7) == 0) { bVar14 = (double)*(long *)(param_1 + 8) == *(double *)(param_2 + 8); } else { if (bVar2 == (basic_json)0x7 && ((byte)bVar1 ^ 5) == 0) { dVar7 = (double)*(long *)(param_2 + 8); goto LAB_0018d100; } if (bVar2 == (basic_json)0x6 && ((byte)bVar1 ^ 7) == 0) { bVar14 = ((double)CONCAT44(_UNK_001f0674,(int)((ulong)*(int8 *)(param_1 + 8) >> 0x20)) - _UNK_001f0688) + ((double)CONCAT44(_DAT_001f0670,(int)*(int8 *)(param_1 + 8)) - _DAT_001f0680) == *(double *)(param_2 + 8); } else { if (bVar2 != (basic_json)0x7 || ((byte)bVar1 ^ 6) != 0) { if ((bVar2 != (basic_json)0x6 || ((byte)bVar1 ^ 5) != 0) && (bVar2 != (basic_json)0x5 || ((byte)bVar1 ^ 6) != 0)) { unaff_RBX = 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> ::compares_unordered(param_1,param_2,false); goto switchD_0018d02f_caseD_0; } goto switchD_0018d02f_caseD_5; } bVar14 = ((double)CONCAT44(_UNK_001f0674,(int)((ulong)*(int8 *)(param_2 + 8) >> 0x20)) - _UNK_001f0688) + ((double)CONCAT44(_DAT_001f0670,(int)*(int8 *)(param_2 + 8)) - _DAT_001f0680) == *(double *)(param_1 + 8); } } LAB_0018d10b: unaff_RBX = (ulong)(-(uint)bVar14 & 1); goto switchD_0018d02f_caseD_0; } if (8 < (byte)bVar2) goto LAB_0018d206; unaff_RBX = CONCAT71((int7)(unaff_RBX >> 8),1); switch(bVar2) { case (basic_json)0x0: goto switchD_0018d02f_caseD_0; case (basic_json)0x1: puVar13 = (int8 *)**(long **)(param_1 + 8); puVar5 = (int8 *)(*(long **)(param_1 + 8))[1]; lVar6 = **(long **)(param_2 + 8); if ((long)puVar5 - (long)puVar13 == (*(long **)(param_2 + 8))[1] - lVar6) { if (puVar13 != puVar5) { pbVar11 = (basic_json *)(lVar6 + 0x20); do { sVar4 = puVar13[1]; if ((sVar4 != *(size_t *)(pbVar11 + -0x18)) || (((sVar4 != 0 && (iVar9 = bcmp((void *)*puVar13,*(void **)(pbVar11 + -0x20),sVar4), iVar9 != 0)) || (cVar8 = operator==((basic_json *)(puVar13 + 4),pbVar11), cVar8 == '\0')))) goto LAB_0018d206; puVar13 = puVar13 + 6; pbVar11 = pbVar11 + 0x30; } while (puVar13 != puVar5); } goto switchD_0018d02f_caseD_0; } break; case (basic_json)0x2: pbVar11 = (basic_json *)**(long **)(param_1 + 8); pbVar3 = (basic_json *)(*(long **)(param_1 + 8))[1]; pbVar12 = (basic_json *)**(long **)(param_2 + 8); if ((long)pbVar3 - (long)pbVar11 == (*(long **)(param_2 + 8))[1] - (long)pbVar12) { for (; pbVar11 != pbVar3; pbVar11 = pbVar11 + 0x10) { uVar10 = operator==(pbVar11,pbVar12); unaff_RBX = (ulong)uVar10; if ((char)uVar10 == '\0') break; pbVar12 = pbVar12 + 0x10; } goto switchD_0018d02f_caseD_0; } break; case (basic_json)0x3: sVar4 = (*(int8 **)(param_1 + 8))[1]; if (sVar4 == (*(int8 **)(param_2 + 8))[1]) { if (sVar4 == 0) goto switchD_0018d02f_caseD_0; iVar9 = bcmp((void *)**(int8 **)(param_1 + 8),(void *)**(int8 **)(param_2 + 8), sVar4); bVar14 = iVar9 == 0; goto LAB_0018d18f; } break; case (basic_json)0x4: bVar14 = param_1[8] == param_2[8]; goto LAB_0018d18f; default: switchD_0018d02f_caseD_5: bVar14 = *(long *)(param_1 + 8) == *(long *)(param_2 + 8); LAB_0018d18f: unaff_RBX = CONCAT71((int7)(unaff_RBX >> 8),bVar14); goto switchD_0018d02f_caseD_0; case (basic_json)0x7: dVar7 = *(double *)(param_2 + 8); LAB_0018d100: bVar14 = dVar7 == *(double *)(param_1 + 8); goto LAB_0018d10b; case (basic_json)0x8: local_28 = *(long *)(param_1 + 8); local_40 = *(long *)(param_2 + 8); local_30 = local_28 + 0x18; local_38 = local_28 + 0x20; local_48 = local_40 + 0x18; local_50 = local_40 + 0x20; /* try { // try from 0018d242 to 0018d246 has its CatchHandler @ 0018d27c */ uVar10 = std:: __tuple_compare<std::tuple<std::vector<unsigned_char,std::allocator<unsigned_char>>const&,unsigned_long_const&,bool_const&>,std::tuple<std::vector<unsigned_char,std::allocator<unsigned_char>>const&,unsigned_long_const&,bool_const&>,0ul,3ul> ::__eq((tuple *)&local_38,(tuple *)&local_50); unaff_RBX = (ulong)uVar10; goto switchD_0018d02f_caseD_0; } LAB_0018d206: unaff_RBX = 0; switchD_0018d02f_caseD_0: return unaff_RBX & 0xffffffff; }
3,843
translog_flush_wait_for_end
eloqsql/storage/maria/ma_loghandler.c
void translog_flush_wait_for_end(LSN lsn) { DBUG_ENTER("translog_flush_wait_for_end"); DBUG_PRINT("enter", ("LSN: " LSN_FMT, LSN_IN_PARTS(lsn))); mysql_mutex_assert_owner(&log_descriptor.log_flush_lock); while (cmp_translog_addr(log_descriptor.flushed, lsn) < 0) mysql_cond_wait(&log_descriptor.log_flush_cond, &log_descriptor.log_flush_lock); DBUG_VOID_RETURN; }
O3
c
translog_flush_wait_for_end: cmpq %rdi, 0xbb40ce(%rip) # 0xc01708 jge 0x4d688 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0xbb4170(%rip), %r14 # 0xc017c0 leaq 0xbb4121(%rip), %r15 # 0xc01778 cmpq $0x0, 0xbb4191(%rip) # 0xc017f0 jne 0x4d677 movq %r14, %rdi movq %r15, %rsi callq 0x29430 cmpq %rbx, 0xbb4095(%rip) # 0xc01708 jl 0x4d657 jmp 0x4d67e callq 0x2ca10 jmp 0x4d66c addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
translog_flush_wait_for_end: cmp cs:qword_C01708, rdi jge short locret_4D688 push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi lea r14, unk_C017C0 lea r15, unk_C01778 loc_4D657: cmp cs:qword_C017F0, 0 jnz short loc_4D677 mov rdi, r14 mov rsi, r15 call _pthread_cond_wait loc_4D66C: cmp cs:qword_C01708, rbx jl short loc_4D657 jmp short loc_4D67E loc_4D677: call translog_flush_wait_for_end_cold_1 jmp short loc_4D66C loc_4D67E: add rsp, 8 pop rbx pop r14 pop r15 pop rbp locret_4D688: retn
long long translog_flush_wait_for_end(void *a1) { long long v1; // rbx long long result; // rax if ( qword_C01708 < (long long)a1 ) { v1 = (long long)a1; do { if ( qword_C017F0 ) { result = translog_flush_wait_for_end_cold_1(a1); } else { a1 = &unk_C017C0; result = pthread_cond_wait(&unk_C017C0, &unk_C01778); } } while ( qword_C01708 < v1 ); } return result; }
translog_flush_wait_for_end: CMP qword ptr [0x00d01708],RDI JGE 0x0014d688 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA R14,[0xd017c0] LEA R15,[0xd01778] LAB_0014d657: CMP qword ptr [0x00d017f0],0x0 JNZ 0x0014d677 MOV RDI,R14 MOV RSI,R15 CALL 0x00129430 LAB_0014d66c: CMP qword ptr [0x00d01708],RBX JL 0x0014d657 JMP 0x0014d67e LAB_0014d677: CALL 0x0012ca10 JMP 0x0014d66c LAB_0014d67e: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP LAB_0014d688: RET
void translog_flush_wait_for_end(long param_1) { if (DAT_00d01708 < param_1) { do { if (DAT_00d017f0 == 0) { pthread_cond_wait((pthread_cond_t *)&DAT_00d017c0,(pthread_mutex_t *)&DAT_00d01778); } else { translog_flush_wait_for_end_cold_1(); } } while (DAT_00d01708 < param_1); } return; }
3,844
mcp::sse_client::list_resource_templates[abi:cxx11]()
hkr04[P]cpp-mcp/src/mcp_sse_client.cpp
json sse_client::list_resource_templates() { return send_request("resources/templates/list").result; }
O0
cpp
mcp::sse_client::list_resource_templates[abi:cxx11](): subq $0xd8, %rsp movq %rdi, (%rsp) movq %rdi, %rax movq %rax, 0x8(%rsp) movq %rdi, 0xd0(%rsp) movq %rsi, 0xc8(%rsp) movq 0xc8(%rsp), %rax movq %rax, 0x10(%rsp) leaq 0x57(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0xbe20 movq 0x18(%rsp), %rdx leaq 0x4fbf4(%rip), %rsi # 0xd319f leaq 0x58(%rsp), %rdi callq 0xf160 jmp 0x835b7 leaq 0x20(%rsp), %rdi callq 0xfa20 movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx leaq 0x30(%rsp), %rdi callq 0xf9d0 jmp 0x835d7 movq 0x10(%rsp), %rsi movq (%rsi), %rax movq 0x28(%rax), %rax leaq 0x78(%rsp), %rdi leaq 0x58(%rsp), %rdx leaq 0x30(%rsp), %rcx callq *%rax jmp 0x835f6 movq (%rsp), %rdi leaq 0x78(%rsp), %rsi addq $0x30, %rsi callq 0x6b720 leaq 0x78(%rsp), %rdi callq 0x86960 leaq 0x30(%rsp), %rdi callq 0xfa40 leaq 0x58(%rsp), %rdi callq 0xbfb0 leaq 0x57(%rsp), %rdi callq 0xb8e0 movq 0x8(%rsp), %rax addq $0xd8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x8367f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x83675 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) leaq 0x30(%rsp), %rdi callq 0xfa40 leaq 0x58(%rsp), %rdi callq 0xbfb0 leaq 0x57(%rsp), %rdi callq 0xb8e0 movq 0x48(%rsp), %rdi callq 0xbe10 nopw %cs:(%rax,%rax)
_ZN3mcp10sse_client23list_resource_templatesB5cxx11Ev: sub rsp, 0D8h mov [rsp+0D8h+var_D8], rdi mov rax, rdi mov [rsp+0D8h+var_D0], rax mov [rsp+0D8h+var_8], rdi mov [rsp+0D8h+var_10], rsi mov rax, [rsp+0D8h+var_10] mov [rsp+0D8h+var_C8], rax lea rdi, [rsp+0D8h+var_81] mov [rsp+0D8h+var_C0], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rsp+0D8h+var_C0] lea rsi, aResourcesTempl; "resources/templates/list" lea rdi, [rsp+0D8h+var_80] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_835B7: lea rdi, [rsp+0D8h+var_B8] call _ZNSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEEC2Ev; 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>>>::initializer_list(void) mov rsi, qword ptr [rsp+0D8h+var_B8]; int mov rdx, qword ptr [rsp+0D8h+var_B0]; int lea rdi, [rsp+0D8h+var_A8]; int call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6objectESt16initializer_listINS0_6detail8json_refISD_EEE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::object(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>>>) jmp short $+2 loc_835D7: mov rsi, [rsp+0D8h+var_C8] mov rax, [rsi] mov rax, [rax+28h] lea rdi, [rsp+0D8h+var_60] lea rdx, [rsp+0D8h+var_80] lea rcx, [rsp+0D8h+var_A8] call rax jmp short $+2 loc_835F6: mov rdi, [rsp+0D8h+var_D8] lea rsi, [rsp+0D8h+var_60] add rsi, 30h ; '0' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>&&) lea rdi, [rsp+0D8h+var_60]; this call _ZN3mcp8responseD2Ev; mcp::response::~response() lea rdi, [rsp+0D8h+var_A8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() lea rdi, [rsp+0D8h+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_81] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rax, [rsp+0D8h+var_D0] add rsp, 0D8h retn mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_8367F mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_83675 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax lea rdi, [rsp+arg_28] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() loc_83675: lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_8367F: lea rdi, [rsp+arg_4F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, [rsp+arg_40] call __Unwind_Resume
_OWORD * mcp::sse_client::list_resource_templates[abi:cxx11](_OWORD *a1, long long a2, long long a3) { int v4[2]; // [rsp+20h] [rbp-B8h] BYREF int v5[2]; // [rsp+28h] [rbp-B0h] int v6[9]; // [rsp+30h] [rbp-A8h] BYREF char v7; // [rsp+57h] [rbp-81h] BYREF _BYTE v8[32]; // [rsp+58h] [rbp-80h] BYREF _BYTE v9[48]; // [rsp+78h] [rbp-60h] BYREF _QWORD v10[6]; // [rsp+A8h] [rbp-30h] BYREF v10[5] = a1; v10[4] = a2; std::allocator<char>::allocator(&v7, a2, a3); std::string::basic_string<std::allocator<char>>((long long)v8, (long long)"resources/templates/list", (long long)&v7); 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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::initializer_list(v4); 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>::object( (long long)v6, *(long long *)v4, *(long long *)v5); (*(void ( **)(_BYTE *, long long, _BYTE *, int *))(*(_QWORD *)a2 + 40LL))(v9, a2, v8, 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>::basic_json( a1, (long long)v10); mcp::response::~response((mcp::response *)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>::~basic_json((long long)v6); std::string::~string(v8); std::allocator<char>::~allocator(&v7); return a1; }
list_resource_templates[abi:cxx11]: SUB RSP,0xd8 MOV qword ptr [RSP],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0xd0],RDI MOV qword ptr [RSP + 0xc8],RSI MOV RAX,qword ptr [RSP + 0xc8] MOV qword ptr [RSP + 0x10],RAX LEA RDI,[RSP + 0x57] MOV qword ptr [RSP + 0x18],RDI CALL 0x0010be20 MOV RDX,qword ptr [RSP + 0x18] LAB_001835a4: LEA RSI,[0x1d319f] LEA RDI,[RSP + 0x58] CALL 0x0010f160 JMP 0x001835b7 LAB_001835b7: LEA RDI,[RSP + 0x20] CALL 0x0010fa20 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] LAB_001835cb: LEA RDI,[RSP + 0x30] CALL 0x0010f9d0 JMP 0x001835d7 LAB_001835d7: MOV RSI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSI] MOV RAX,qword ptr [RAX + 0x28] LAB_001835e3: LEA RDI,[RSP + 0x78] LEA RDX,[RSP + 0x58] LEA RCX,[RSP + 0x30] CALL RAX LAB_001835f4: JMP 0x001835f6 LAB_001835f6: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x78] ADD RSI,0x30 CALL 0x0016b720 LEA RDI,[RSP + 0x78] CALL 0x00186960 LEA RDI,[RSP + 0x30] CALL 0x0010fa40 LEA RDI,[RSP + 0x58] CALL 0x0010bfb0 LEA RDI,[RSP + 0x57] CALL 0x0010b8e0 MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0xd8 RET
/* mcp::sse_client::list_resource_templates[abi:cxx11]() */ basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> * mcp::sse_client::list_resource_templates_abi_cxx11_(void) { 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; int8 local_b8; int8 local_b0; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_a8 [39]; allocator local_81; string local_80 [32]; response local_60 [48]; basic_json abStack_30 [48]; std::allocator<char>::allocator(); /* try { // try from 001835a4 to 001835b4 has its CatchHandler @ 0018363d */ std::__cxx11::string::string<std::allocator<char>>(local_80,"resources/templates/list",&local_81); 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::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::initializer_list((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::__cxx11::string,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_b8); /* try { // try from 001835cb to 001835d4 has its CatchHandler @ 0018364d */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::object(local_a8,local_b8,local_b0); /* try { // try from 001835e3 to 001835f3 has its CatchHandler @ 0018365d */ (**(code **)(*in_RSI + 0x28))(local_60,in_RSI,local_80,local_a8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(in_RDI,abStack_30); response::~response(local_60); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_a8); std::__cxx11::string::~string(local_80); std::allocator<char>::~allocator((allocator<char> *)&local_81); return in_RDI; }
3,845
mcp::sse_client::list_resource_templates[abi:cxx11]()
hkr04[P]cpp-mcp/src/mcp_sse_client.cpp
json sse_client::list_resource_templates() { return send_request("resources/templates/list").result; }
O3
cpp
mcp::sse_client::list_resource_templates[abi:cxx11](): pushq %r15 pushq %r14 pushq %rbx subq $0x80, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x20(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x30746(%rip), %rsi # 0x43bc0 leaq 0x30757(%rip), %rdx # 0x43bd8 leaq 0x10(%rsp), %rdi callq 0xb820 movq %rsp, %rdi xorl %esi, %esi xorl %edx, %edx xorl %ecx, %ecx movl $0x1, %r8d callq 0xac4a movq (%r14), %rax leaq 0x30(%rsp), %rdi leaq 0x10(%rsp), %rdx movq %rsp, %rcx movq %r14, %rsi callq *0x28(%rax) leaq 0x60(%rsp), %r14 movups (%r14), %xmm0 movups %xmm0, (%rbx) movb $0x0, (%r14) movq $0x0, 0x8(%r14) leaq 0x70(%rsp), %rdi callq 0xba56 movq %r14, %rdi callq 0xba56 leaq 0x50(%rsp), %r14 movq %r14, %rdi callq 0xba56 movq -0x20(%r14), %rdi leaq 0x40(%rsp), %rax cmpq %rax, %rdi je 0x13507 movq 0x40(%rsp), %rsi incq %rsi callq 0x8580 movq %rsp, %rdi callq 0xba56 movq 0x10(%rsp), %rdi cmpq %r15, %rdi je 0x13526 movq 0x20(%rsp), %rsi incq %rsi callq 0x8580 movq %rbx, %rax addq $0x80, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %rdi callq 0xba56 jmp 0x13546 movq %rax, %rbx movq 0x10(%rsp), %rdi cmpq %r15, %rdi je 0x1355d movq 0x20(%rsp), %rsi incq %rsi callq 0x8580 movq %rbx, %rdi callq 0x8960 nop
_ZN3mcp10sse_client23list_resource_templatesB5cxx11Ev: push r15 push r14 push rbx sub rsp, 80h mov r14, rsi mov rbx, rdi lea r15, [rsp+98h+var_78] mov [r15-10h], r15 lea rsi, aResourcesTempl; "resources/templates/list" lea rdx, aResourcesTempl+18h; "" lea rdi, [rsp+98h+var_88] 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, rsp xor esi, esi xor edx, edx xor ecx, ecx mov r8d, 1 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) mov rax, [r14] lea rdi, [rsp+98h+var_68] lea rdx, [rsp+98h+var_88] mov rcx, rsp mov rsi, r14 call qword ptr [rax+28h] lea r14, [rsp+98h+var_38] movups xmm0, xmmword ptr [r14] movups xmmword ptr [rbx], xmm0 mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 lea rdi, [rsp+98h+var_28] 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, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() lea r14, [rsp+98h+var_48] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [r14-20h]; void * lea rax, [rsp+98h+var_58] cmp rdi, rax jz short loc_13507 mov rsi, [rsp+98h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_13507: mov rdi, rsp 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, [rsp+98h+var_88]; void * cmp rdi, r15 jz short loc_13526 mov rsi, [rsp+98h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_13526: mov rax, rbx add rsp, 80h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, rsp 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_13546 mov rbx, rax loc_13546: mov rdi, [rsp+arg_8]; void * cmp rdi, r15 jz short loc_1355D mov rsi, [rsp+arg_18] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1355D: mov rdi, rbx call __Unwind_Resume
_OWORD * mcp::sse_client::list_resource_templates[abi:cxx11](_OWORD *a1, long long a2) { _BYTE v3[16]; // [rsp+0h] [rbp-98h] BYREF void *v4[2]; // [rsp+10h] [rbp-88h] BYREF _QWORD v5[2]; // [rsp+20h] [rbp-78h] BYREF long long *v6; // [rsp+30h] [rbp-68h] BYREF long long v7; // [rsp+40h] [rbp-58h] BYREF _BYTE v8[16]; // [rsp+50h] [rbp-48h] BYREF __int128 v9; // [rsp+60h] [rbp-38h] BYREF _BYTE v10[40]; // [rsp+70h] [rbp-28h] BYREF v4[0] = v5; std::string::_M_construct<char const*>((long long)v4, "resources/templates/list", (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>::basic_json( v3, 0LL, 0LL, 0LL, 1LL); (*(void ( **)(long long **, long long, void **, _BYTE *))(*(_QWORD *)a2 + 40LL))(&v6, a2, v4, v3); *a1 = v9; LOBYTE(v9) = 0; *((_QWORD *)&v9 + 1) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v10); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&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>::data::~data(v8); if ( v6 != &v7 ) operator delete(v6, v7 + 1); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v3); if ( v4[0] != v5 ) operator delete(v4[0], v5[0] + 1LL); return a1; }
list_resource_templates[abi:cxx11]: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x80 MOV R14,RSI MOV RBX,RDI LEA R15,[RSP + 0x20] MOV qword ptr [R15 + -0x10],R15 LEA RSI,[0x143bc0] LEA RDX,[0x143bd8] LEA RDI,[RSP + 0x10] CALL 0x0010b820 LAB_0011348b: MOV RDI,RSP XOR ESI,ESI XOR EDX,EDX XOR ECX,ECX MOV R8D,0x1 CALL 0x0010ac4a MOV RAX,qword ptr [R14] LAB_001134a2: LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0x10] MOV RCX,RSP MOV RSI,R14 CALL qword ptr [RAX + 0x28] LAB_001134b5: LEA R14,[RSP + 0x60] MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [RBX],XMM0 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 LEA RDI,[RSP + 0x70] CALL 0x0010ba56 MOV RDI,R14 CALL 0x0010ba56 LEA R14,[RSP + 0x50] MOV RDI,R14 CALL 0x0010ba56 MOV RDI,qword ptr [R14 + -0x20] LEA RAX,[RSP + 0x40] CMP RDI,RAX JZ 0x00113507 MOV RSI,qword ptr [RSP + 0x40] INC RSI CALL 0x00108580 LAB_00113507: MOV RDI,RSP CALL 0x0010ba56 MOV RDI,qword ptr [RSP + 0x10] CMP RDI,R15 JZ 0x00113526 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x00108580 LAB_00113526: MOV RAX,RBX ADD RSP,0x80 POP RBX POP R14 POP R15 RET
/* mcp::sse_client::list_resource_templates[abi:cxx11]() */ void mcp::sse_client::list_resource_templates_abi_cxx11_(void) { long *in_RSI; int8 *in_RDI; data adStack_98 [16]; long *local_88 [2]; long local_78 [2]; long *local_68 [2]; long local_58 [2]; data local_48 [16]; data local_38; int7 uStack_37; int8 uStack_30; data local_28 [16]; local_88[0] = local_78; std::__cxx11::string::_M_construct<char_const*>(local_88,"resources/templates/list",""); /* try { // try from 0011348b to 0011349e has its CatchHandler @ 00113543 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(adStack_98,0,0,0,1); /* try { // try from 001134a2 to 001134b4 has its CatchHandler @ 00113536 */ (**(code **)(*in_RSI + 0x28))(local_68); *in_RDI = CONCAT71(uStack_37,local_38); in_RDI[1] = uStack_30; local_38 = (data)0x0; uStack_30 = 0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_28); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(&local_38); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_48); if (local_68[0] != local_58) { operator_delete(local_68[0],local_58[0] + 1); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(adStack_98); if (local_88[0] != local_78) { operator_delete(local_88[0],local_78[0] + 1); } return; }
3,846
ma_log_del_prefix
eloqsql/storage/maria/ma_write.c
static my_bool _ma_log_del_prefix(MARIA_PAGE *ma_page, uint org_length, uint new_length, const uchar *key_pos, uint key_length, int move_length) { LSN lsn; uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + 2 + 2 + 12 + 7]; uchar *log_pos; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 4]; uint offset= (uint) (key_pos - ma_page->buff); uint diff_length= org_length + move_length - new_length; uint translog_parts, extra_length; MARIA_HA *info= ma_page->info; my_off_t page= ma_page->pos / info->s->block_size; DBUG_ENTER("_ma_log_del_prefix"); DBUG_PRINT("enter", ("page: %lu org_length: %u new_length: %u", (ulong) page, org_length, new_length)); DBUG_ASSERT((int) diff_length > 0); DBUG_ASSERT(ma_page->org_size == org_length); DBUG_ASSERT(ma_page->size == new_length); log_pos= log_data + FILEID_STORE_SIZE; page_store(log_pos, page); log_pos+= PAGE_STORE_SIZE; translog_parts= 1; extra_length= 0; #ifdef EXTRA_DEBUG_KEY_CHANGES *log_pos++= KEY_OP_DEBUG; *log_pos++= KEY_OP_DEBUG_LOG_DEL_PREFIX; #endif /* Store keypage_flag */ *log_pos++= KEY_OP_SET_PAGEFLAG; *log_pos++= _ma_get_keypage_flag(info->s, ma_page->buff); if (offset < diff_length + info->s->keypage_header) { /* Key is not anymore on page. Move data down, but take into account that the original page had grown with 'move_length bytes' */ DBUG_ASSERT(offset + key_length <= diff_length + info->s->keypage_header); log_pos[0]= KEY_OP_DEL_PREFIX; int2store(log_pos+1, diff_length - move_length); log_pos+= 3; } else { /* Correct position to key, as data before key has been delete and key has thus been moved down */ offset-= diff_length; key_pos-= diff_length; /* Move data down */ log_pos[0]= KEY_OP_DEL_PREFIX; int2store(log_pos+1, diff_length); log_pos+= 3; log_pos[0]= KEY_OP_OFFSET; int2store(log_pos+1, offset); log_pos+= 3; if (move_length) { log_pos[0]= KEY_OP_SHIFT; int2store(log_pos+1, move_length); log_pos+= 3; } log_pos[0]= KEY_OP_CHANGE; int2store(log_pos+1, key_length); log_pos+= 3; log_array[TRANSLOG_INTERNAL_PARTS + 1].str= key_pos; log_array[TRANSLOG_INTERNAL_PARTS + 1].length= key_length; translog_parts= 2; extra_length= key_length; } log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= (uint) (log_pos - log_data); _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; DBUG_RETURN(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)); }
O3
c
ma_log_del_prefix: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xa0, %rsp movq %rcx, %r10 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) movq (%rdi), %rcx movq 0x10(%rdi), %r14 movl %r10d, %r11d subl %r14d, %r11d subl %edx, %esi leal (%rsi,%r9), %ebx movq 0x18(%rdi), %rax movq (%rcx), %r15 movl 0x7bc(%r15), %r12d xorl %edx, %edx divq %r12 movl %eax, -0x4e(%rbp) shrq $0x20, %rax movb %al, -0x4a(%rbp) movb $0xa, -0x49(%rbp) movl 0x744(%r15), %eax leal -0x3(%rax), %edx movb (%r14,%rdx), %dl movb %dl, -0x48(%rbp) addl %ebx, %eax cmpl %r11d, %eax jbe 0x6721a leaq -0x44(%rbp), %rax movb $0x5, -0x3(%rax) movw %si, -0x2(%rax) movl $0x3, %r9d xorl %r8d, %r8d jmp 0x6726e subl %ebx, %r11d movl %ebx, %eax subq %rax, %r10 movb $0x5, -0x47(%rbp) movw %bx, -0x46(%rbp) movb $0x1, -0x44(%rbp) movw %r11w, -0x43(%rbp) testl %r9d, %r9d je 0x67247 leaq -0x3e(%rbp), %rax movb $0x2, -0x3(%rax) movw %r9w, -0x2(%rax) jmp 0x6724b leaq -0x41(%rbp), %rax movb $0x3, (%rax) movw %r8w, 0x1(%rax) addq $0x3, %rax movq %r10, -0x90(%rbp) movl %r8d, %edx movq %rdx, -0x88(%rbp) movl $0x4, %r9d leaq -0x50(%rbp), %r10 leaq -0xc0(%rbp), %r11 movq %r10, 0x20(%r11) subq %r10, %rax movl %eax, %edx movq %rdx, 0x28(%r11) movl 0x20(%rdi), %edx movl %edx, 0x24(%rdi) movq 0x8(%rcx), %rdx addl %eax, %r8d subq $0x8, %rsp leaq -0x58(%rbp), %rdi movl $0xc, %esi pushq $0x0 pushq %r10 pushq %r11 callq 0x2a8ac addq $0x20, %rsp movq %fs:0x28, %rcx cmpq -0x28(%rbp), %rcx jne 0x672ce addq $0xa0, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x29270 nop
_ma_log_del_prefix: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 0A0h mov r10, rcx mov rax, fs:28h mov [rbp+var_28], rax mov rcx, [rdi] mov r14, [rdi+10h] mov r11d, r10d sub r11d, r14d sub esi, edx lea ebx, [rsi+r9] mov rax, [rdi+18h] mov r15, [rcx] mov r12d, [r15+7BCh] xor edx, edx div r12 mov [rbp+var_4E], eax shr rax, 20h mov [rbp+var_4A], al mov [rbp+var_49], 0Ah mov eax, [r15+744h] lea edx, [rax-3] mov dl, [r14+rdx] mov [rbp+var_48], dl add eax, ebx cmp eax, r11d jbe short loc_6721A lea rax, [rbp+var_44] mov byte ptr [rax-3], 5 mov [rax-2], si mov r9d, 3 xor r8d, r8d jmp short loc_6726E loc_6721A: sub r11d, ebx mov eax, ebx sub r10, rax mov [rbp+var_47], 5 mov [rbp+var_46], bx mov [rbp+var_44], 1 mov [rbp+var_43], r11w test r9d, r9d jz short loc_67247 lea rax, [rbp+var_3E] mov byte ptr [rax-3], 2 mov [rax-2], r9w jmp short loc_6724B loc_67247: lea rax, [rbp+var_41] loc_6724B: mov byte ptr [rax], 3 mov [rax+1], r8w add rax, 3 mov [rbp+var_90], r10 mov edx, r8d mov [rbp+var_88], rdx mov r9d, 4 loc_6726E: lea r10, [rbp+var_50] lea r11, [rbp+var_C0] mov [r11+20h], r10 sub rax, r10 mov edx, eax mov [r11+28h], rdx mov edx, [rdi+20h] mov [rdi+24h], edx mov rdx, [rcx+8] add r8d, eax sub rsp, 8 lea rdi, [rbp+var_58] mov esi, 0Ch push 0 push r10 push r11 call translog_write_record add rsp, 20h mov rcx, fs:28h cmp rcx, [rbp+var_28] jnz short loc_672CE add rsp, 0A0h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_672CE: call ___stack_chk_fail
long long ma_log_del_prefix(long long **a1, int a2, int a3, long long a4, unsigned int a5, int a6) { long long *v7; // rcx long long *v8; // r14 __int16 v9; // r11 int v10; // esi unsigned int v11; // ebx long long v12; // r15 unsigned long long v13; // rax char *v14; // rax int v15; // r9d long long v16; // r10 char *v17; // rax signed long long v18; // rax __int128 v20; // [rsp+0h] [rbp-C0h] BYREF __int16 *v21; // [rsp+20h] [rbp-A0h] long long v22; // [rsp+28h] [rbp-98h] long long v23; // [rsp+30h] [rbp-90h] long long v24; // [rsp+38h] [rbp-88h] _BYTE v25[8]; // [rsp+68h] [rbp-58h] BYREF __int16 v26; // [rsp+70h] [rbp-50h] BYREF int v27; // [rsp+72h] [rbp-4Eh] char v28; // [rsp+76h] [rbp-4Ah] char v29; // [rsp+77h] [rbp-49h] char v30; // [rsp+78h] [rbp-48h] char v31; // [rsp+79h] [rbp-47h] __int16 v32; // [rsp+7Ah] [rbp-46h] char v33; // [rsp+7Ch] [rbp-44h] BYREF __int16 v34; // [rsp+7Dh] [rbp-43h] char v35; // [rsp+7Fh] [rbp-41h] BYREF __int16 v36; // [rsp+80h] [rbp-40h] char v37; // [rsp+82h] [rbp-3Eh] BYREF unsigned long long v38; // [rsp+98h] [rbp-28h] v38 = __readfsqword(0x28u); v7 = *a1; v8 = a1[2]; v9 = a4 - (_WORD)v8; v10 = a2 - a3; v11 = v10 + a6; v12 = **a1; v13 = (unsigned long long)a1[3] / *(unsigned int *)(v12 + 1980); v27 = v13; v28 = BYTE4(v13); v29 = 10; LODWORD(v13) = *(_DWORD *)(v12 + 1860); v30 = *((_BYTE *)v8 + (unsigned int)(v13 - 3)); if ( v10 + a6 + (int)v13 <= (unsigned int)(a4 - (_DWORD)v8) ) { v16 = a4 - v11; v31 = 5; v32 = v10 + a6; v33 = 1; v34 = v9 - v11; if ( a6 ) { v17 = &v37; v35 = 2; v36 = a6; } else { v17 = &v35; } *v17 = 3; *(_WORD *)(v17 + 1) = a5; v14 = v17 + 3; v23 = v16; v24 = a5; v15 = 4; } else { v14 = &v33; v31 = 5; v32 = v10; v15 = 3; a5 = 0; } v21 = &v26; v18 = v14 - (char *)&v26; v22 = (unsigned int)v18; *((_DWORD *)a1 + 9) = *((_DWORD *)a1 + 8); return translog_write_record( (unsigned long long)v25, &byte_9[3], v7[1], v7, (unsigned int)v18 + a5, v15, &v20, &v26, 0LL); }
_ma_log_del_prefix: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xa0 MOV R10,RCX MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX MOV RCX,qword ptr [RDI] MOV R14,qword ptr [RDI + 0x10] MOV R11D,R10D SUB R11D,R14D SUB ESI,EDX LEA EBX,[RSI + R9*0x1] MOV RAX,qword ptr [RDI + 0x18] MOV R15,qword ptr [RCX] MOV R12D,dword ptr [R15 + 0x7bc] XOR EDX,EDX DIV R12 MOV dword ptr [RBP + -0x4e],EAX SHR RAX,0x20 MOV byte ptr [RBP + -0x4a],AL MOV byte ptr [RBP + -0x49],0xa MOV EAX,dword ptr [R15 + 0x744] LEA EDX,[RAX + -0x3] MOV DL,byte ptr [R14 + RDX*0x1] MOV byte ptr [RBP + -0x48],DL ADD EAX,EBX CMP EAX,R11D JBE 0x0016721a LEA RAX,[RBP + -0x44] MOV byte ptr [RAX + -0x3],0x5 MOV word ptr [RAX + -0x2],SI MOV R9D,0x3 XOR R8D,R8D JMP 0x0016726e LAB_0016721a: SUB R11D,EBX MOV EAX,EBX SUB R10,RAX MOV byte ptr [RBP + -0x47],0x5 MOV word ptr [RBP + -0x46],BX MOV byte ptr [RBP + -0x44],0x1 MOV word ptr [RBP + -0x43],R11W TEST R9D,R9D JZ 0x00167247 LEA RAX,[RBP + -0x3e] MOV byte ptr [RAX + -0x3],0x2 MOV word ptr [RAX + -0x2],R9W JMP 0x0016724b LAB_00167247: LEA RAX,[RBP + -0x41] LAB_0016724b: MOV byte ptr [RAX],0x3 MOV word ptr [RAX + 0x1],R8W ADD RAX,0x3 MOV qword ptr [RBP + -0x90],R10 MOV EDX,R8D MOV qword ptr [RBP + -0x88],RDX MOV R9D,0x4 LAB_0016726e: LEA R10,[RBP + -0x50] LEA R11,[RBP + -0xc0] MOV qword ptr [R11 + 0x20],R10 SUB RAX,R10 MOV EDX,EAX MOV qword ptr [R11 + 0x28],RDX MOV EDX,dword ptr [RDI + 0x20] MOV dword ptr [RDI + 0x24],EDX MOV RDX,qword ptr [RCX + 0x8] ADD R8D,EAX SUB RSP,0x8 LEA RDI,[RBP + -0x58] MOV ESI,0xc PUSH 0x0 PUSH R10 PUSH R11 CALL 0x0012a8ac ADD RSP,0x20 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x28] JNZ 0x001672ce ADD RSP,0xa0 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001672ce: CALL 0x00129270
void _ma_log_del_prefix(long *param_1,int param_2,int param_3,long param_4,uint param_5,int param_6) { long *plVar1; int1 auVar2 [16]; int iVar3; uint uVar4; int1 *puVar5; int8 uVar6; uint uVar7; long in_FS_OFFSET; int1 local_c8 [32]; int1 *local_a8; ulong local_a0; long local_98; ulong local_90; int1 local_60 [8]; int1 local_58 [2]; int4 local_56; int1 local_52; int1 local_51; int1 local_50; int1 local_4f; short local_4e; int1 local_4c; short local_4b; int1 local_49; int2 local_48; int1 local_46 [22]; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); plVar1 = (long *)*param_1; uVar7 = (int)param_4 - (int)param_1[2]; uVar4 = (param_2 - param_3) + param_6; auVar2._8_8_ = 0; auVar2._0_8_ = param_1[3]; auVar2 = auVar2 / ZEXT416(*(uint *)(*plVar1 + 0x7bc)); local_56 = auVar2._0_4_; local_52 = auVar2[4]; local_51 = 10; iVar3 = *(int *)(*plVar1 + 0x744); local_50 = *(int1 *)(param_1[2] + (ulong)(iVar3 - 3)); if (uVar7 < iVar3 + uVar4) { iVar3 = (int)&local_4c; local_4e = (short)(param_2 - param_3); uVar6 = 3; param_5 = 0; } else { local_4e = (short)uVar4; local_4b = (short)uVar7 - local_4e; local_98 = param_4 - (ulong)uVar4; local_4c = 1; if (param_6 == 0) { puVar5 = &local_49; } else { puVar5 = local_46; local_49 = 2; local_48 = (int2)param_6; } *puVar5 = 3; *(short *)(puVar5 + 1) = (short)param_5; iVar3 = (int)puVar5 + 3; local_90 = (ulong)param_5; uVar6 = 4; } local_4f = 5; local_a8 = local_58; uVar4 = iVar3 - (int)local_a8; local_a0 = (ulong)uVar4; *(int *)((long)param_1 + 0x24) = (int)param_1[4]; translog_write_record(local_60,0xc,plVar1[1],plVar1,param_5 + uVar4,uVar6,local_c8,local_a8,0); if (*(long *)(in_FS_OFFSET + 0x28) == local_30) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
3,847
evmone::instr::core::extcodehash(evmone::StackTop, long, evmone::ExecutionState&)
corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/instructions.hpp
inline Result extcodehash(StackTop stack, int64_t gas_left, ExecutionState& state) noexcept { auto& x = stack.top(); const auto addr = intx::be::trunc<evmc::address>(x); if (state.rev >= EVMC_BERLIN && state.host.access_account(addr) == EVMC_ACCESS_COLD) { if ((gas_left -= instr::additional_cold_account_access_cost) < 0) return {EVMC_OUT_OF_GAS, gas_left}; } x = intx::be::load<uint256>(state.host.get_code_hash(addr)); return {EVMC_SUCCESS, gas_left}; }
O2
cpp
evmone::instr::core::extcodehash(evmone::StackTop, long, evmone::ExecutionState&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 leaq 0xc(%rsp), %rdi movq %r14, %rsi callq 0x3b4af cmpl $0x8, 0x40(%r15) jl 0x3bbd7 leaq 0x28(%r15), %rdi leaq 0xc(%rsp), %rsi callq 0x2f5c0 testl %eax, %eax jne 0x3bbd7 leaq -0x9c4(%rbx), %rdx cmpq $0x9c4, %rbx # imm = 0x9C4 jge 0x3bbd4 pushq $0x3 popq %rax jmp 0x3bc1f movq %rdx, %rbx addq $0x28, %r15 leaq 0x20(%rsp), %r12 leaq 0xc(%rsp), %rdx movq %r12, %rdi movq %r15, %rsi callq 0x2f4ba movdqa 0x10(%r12), %xmm0 movdqa 0x3b1a1(%rip), %xmm1 # 0x76da0 pshufb %xmm1, %xmm0 movdqu %xmm0, (%r14) movdqa (%r12), %xmm0 pshufb %xmm1, %xmm0 movdqu %xmm0, 0x10(%r14) xorl %eax, %eax movq %rbx, %rdx addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN6evmone5instr4core11extcodehashENS_8StackTopElRNS_14ExecutionStateE: push r15 push r14 push r12 push rbx sub rsp, 48h mov r15, rdx mov rbx, rsi mov r14, rdi lea rdi, [rsp+68h+var_5C] mov rsi, r14 call _ZN4intx2be5truncIN4evmc7addressELj256EEET_RKNS_4uintIXT0_EEE; intx::be::trunc<evmc::address,256u>(intx::uint<256u> const&) cmp dword ptr [r15+40h], 8 jl short loc_3BBD7 lea rdi, [r15+28h] lea rsi, [rsp+68h+var_5C] call _ZN4evmc11HostContext14access_accountERKNS_7addressE; evmc::HostContext::access_account(evmc::address const&) test eax, eax jnz short loc_3BBD7 lea rdx, [rbx-9C4h] cmp rbx, 9C4h jge short loc_3BBD4 push 3 pop rax jmp short loc_3BC1F loc_3BBD4: mov rbx, rdx loc_3BBD7: add r15, 28h ; '(' lea r12, [rsp+68h+var_48] lea rdx, [rsp+68h+var_5C] mov rdi, r12 mov rsi, r15 call _ZNK4evmc11HostContext13get_code_hashERKNS_7addressE; evmc::HostContext::get_code_hash(evmc::address const&) movdqa xmm0, xmmword ptr [r12+10h] movdqa xmm1, cs:xmmword_76DA0 pshufb xmm0, xmm1 movdqu xmmword ptr [r14], xmm0 movdqa xmm0, xmmword ptr [r12] pshufb xmm0, xmm1 movdqu xmmword ptr [r14+10h], xmm0 xor eax, eax mov rdx, rbx loc_3BC1F: add rsp, 48h pop rbx pop r12 pop r14 pop r15 retn
long long evmone::instr::core::extcodehash(__m128i *a1, long long a2, long long a3) { __m128i si128; // xmm1 _BYTE v6[20]; // [rsp+Ch] [rbp-5Ch] BYREF __m128i v7; // [rsp+20h] [rbp-48h] BYREF __m128i v8[3]; // [rsp+30h] [rbp-38h] BYREF intx::be::trunc<evmc::address,256u>((long long)v6); if ( *(int *)(a3 + 64) >= 8 && !(unsigned int)evmc::HostContext::access_account(a3 + 40) && a2 < 2500 ) return 3LL; evmc::HostContext::get_code_hash(&v7, a3 + 40); si128 = _mm_load_si128((const __m128i *)&xmmword_76DA0); *a1 = _mm_shuffle_epi8(_mm_load_si128(v8), si128); a1[1] = _mm_shuffle_epi8(_mm_load_si128(&v7), si128); return 0LL; }
extcodehash: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R15,RDX MOV RBX,RSI MOV R14,RDI LEA RDI,[RSP + 0xc] MOV RSI,R14 CALL 0x0013b4af CMP dword ptr [R15 + 0x40],0x8 JL 0x0013bbd7 LEA RDI,[R15 + 0x28] LEA RSI,[RSP + 0xc] CALL 0x0012f5c0 TEST EAX,EAX JNZ 0x0013bbd7 LEA RDX,[RBX + -0x9c4] CMP RBX,0x9c4 JGE 0x0013bbd4 PUSH 0x3 POP RAX JMP 0x0013bc1f LAB_0013bbd4: MOV RBX,RDX LAB_0013bbd7: ADD R15,0x28 LEA R12,[RSP + 0x20] LEA RDX,[RSP + 0xc] MOV RDI,R12 MOV RSI,R15 CALL 0x0012f4ba MOVDQA XMM0,xmmword ptr [R12 + 0x10] MOVDQA XMM1,xmmword ptr [0x00176da0] PSHUFB XMM0,XMM1 MOVDQU xmmword ptr [R14],XMM0 MOVDQA XMM0,xmmword ptr [R12] PSHUFB XMM0,XMM1 MOVDQU xmmword ptr [R14 + 0x10],XMM0 XOR EAX,EAX MOV RDX,RBX LAB_0013bc1f: ADD RSP,0x48 POP RBX POP R12 POP R14 POP R15 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* evmone::instr::core::extcodehash(evmone::StackTop, long, evmone::ExecutionState&) */ int1 [16] evmone::instr::core::extcodehash(uint *param_1,long param_2,long param_3) { int iVar1; int8 uVar2; long lVar3; int1 auVar4 [16]; int1 auVar5 [16]; be local_5c [20]; HostContext local_48 [16]; int1 local_38 [16]; intx::be::trunc<evmc::address,256u>(local_5c,param_1); lVar3 = param_2; if (((*(int *)(param_3 + 0x40) < 8) || (iVar1 = evmc::HostContext::access_account((address *)(param_3 + 0x28)), iVar1 != 0)) || (lVar3 = param_2 + -0x9c4, 0x9c3 < param_2)) { evmc::HostContext::get_code_hash(local_48,(address *)(param_3 + 0x28)); auVar5 = _DAT_00176da0; auVar4 = pshufb(local_38,_DAT_00176da0); *(int1 (*) [16])param_1 = auVar4; auVar5 = pshufb((int1 [16])local_48,auVar5); *(int1 (*) [16])(param_1 + 0x10) = auVar5; uVar2 = 0; } else { uVar2 = 3; } auVar5._8_8_ = lVar3; auVar5._0_8_ = uVar2; return auVar5; }
3,848
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>>>::at(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
T& at(const key_type& key) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it->second; } } JSON_THROW(std::out_of_range("key not found")); }
O0
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>>>::at(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 $0x48, %rsp movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movq 0x40(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0xa1ae0 movq %rax, 0x30(%rsp) movq 0x10(%rsp), %rdi callq 0xa1b50 movq %rax, 0x28(%rsp) leaq 0x30(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0xa1b10 testb $0x1, %al jne 0xdd596 jmp 0xdd5e7 movq 0x10(%rsp), %rax addq $0x18, %rax movq %rax, 0x8(%rsp) leaq 0x30(%rsp), %rdi callq 0xa1b80 movq 0x8(%rsp), %rdi movq %rax, %rsi movq 0x38(%rsp), %rdx callq 0xcf9a0 testb $0x1, %al jne 0xdd5c6 jmp 0xdd5d9 leaq 0x30(%rsp), %rdi callq 0xa1b80 addq $0x10, %rax addq $0x48, %rsp retq jmp 0xdd5db leaq 0x30(%rsp), %rdi callq 0xa1ef0 jmp 0xdd572 movl $0x10, %edi callq 0x50540 movq %rax, %rdi movq %rdi, %rax movq %rax, (%rsp) leaq 0xf41fc(%rip), %rsi # 0x1d17fe callq 0x50360 jmp 0xdd609 movq (%rsp), %rdi movq 0x17691c(%rip), %rsi # 0x253f30 movq 0x176965(%rip), %rdx # 0x253f80 callq 0x508f0 movq (%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) callq 0x50c40 movq 0x20(%rsp), %rdi callq 0x50940 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_: sub rsp, 48h mov [rsp+48h+var_8], rdi mov [rsp+48h+var_10], rsi mov rdi, [rsp+48h+var_8] mov [rsp+48h+var_38], rdi call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; 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>>::begin(void) mov [rsp+48h+var_18], rax loc_DD572: mov rdi, [rsp+48h+var_38] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; 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>>::end(void) mov [rsp+48h+var_20], rax lea rdi, [rsp+48h+var_18] lea rsi, [rsp+48h+var_20] call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<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> *,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>>>(__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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&,__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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&) test al, 1 jnz short loc_DD596 jmp short loc_DD5E7 loc_DD596: mov rax, [rsp+48h+var_38] add rax, 18h mov [rsp+48h+var_40], rax lea rdi, [rsp+48h+var_18] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator->(void) mov rdi, [rsp+48h+var_40] mov rsi, rax mov rdx, [rsp+48h+var_10] call _ZNKSt8equal_toIvEclIRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEESI_EEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSJ_OSK_ test al, 1 jnz short loc_DD5C6 jmp short loc_DD5D9 loc_DD5C6: lea rdi, [rsp+48h+var_18] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator->(void) add rax, 10h add rsp, 48h retn loc_DD5D9: jmp short $+2 loc_DD5DB: lea rdi, [rsp+48h+var_18] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator++(void) jmp short loc_DD572 loc_DD5E7: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+48h+var_48], rax lea rsi, aKeyNotFound; "key not found" call __ZNSt12out_of_rangeC1EPKc; std::out_of_range::out_of_range(char const*) jmp short $+2 loc_DD609: mov rdi, [rsp+48h+var_48]; void * mov rsi, cs:_ZTISt12out_of_range_ptr; lptinfo mov rdx, cs:_ZNSt12out_of_rangeD1Ev_ptr; void (*)(void *) call ___cxa_throw mov rdi, [rsp+48h+var_48]; void * mov rcx, rax mov eax, edx mov [rsp+48h+var_28], rcx mov [rsp+48h+var_2C], eax call ___cxa_free_exception mov rdi, [rsp+48h+var_28] call __Unwind_Resume
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>>>::at( long long a1, long long a2) { long long v2; // rax std::out_of_range *exception; // [rsp+0h] [rbp-48h] long long v5; // [rsp+28h] [rbp-20h] BYREF long long i; // [rsp+30h] [rbp-18h] BYREF long long v7; // [rsp+38h] [rbp-10h] long long v8; // [rsp+40h] [rbp-8h] v8 = a1; v7 = a2; for ( 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>>::begin(a1); ; __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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator++(&i) ) { v5 = 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>>::end(a1); if ( !__gnu_cxx::operator!=<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> *,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>>>( (long long)&i, (long long)&v5) ) { exception = (std::out_of_range *)__cxa_allocate_exception(0x10uLL); std::out_of_range::out_of_range(exception, "key not found"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))&std::out_of_range::~out_of_range); } v2 = __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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator->((long long)&i); if ( (std::equal_to<void>::operator()<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&,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&>( a1 + 24, v2, v7) & 1) != 0 ) break; } return __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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator->((long long)&i) + 16; }
at: SUB RSP,0x48 MOV qword ptr [RSP + 0x40],RDI MOV qword ptr [RSP + 0x38],RSI MOV RDI,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x10],RDI CALL 0x001a1ae0 MOV qword ptr [RSP + 0x30],RAX LAB_001dd572: MOV RDI,qword ptr [RSP + 0x10] CALL 0x001a1b50 MOV qword ptr [RSP + 0x28],RAX LEA RDI,[RSP + 0x30] LEA RSI,[RSP + 0x28] CALL 0x001a1b10 TEST AL,0x1 JNZ 0x001dd596 JMP 0x001dd5e7 LAB_001dd596: MOV RAX,qword ptr [RSP + 0x10] ADD RAX,0x18 MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x30] CALL 0x001a1b80 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX MOV RDX,qword ptr [RSP + 0x38] CALL 0x001cf9a0 TEST AL,0x1 JNZ 0x001dd5c6 JMP 0x001dd5d9 LAB_001dd5c6: LEA RDI,[RSP + 0x30] CALL 0x001a1b80 ADD RAX,0x10 ADD RSP,0x48 RET LAB_001dd5d9: JMP 0x001dd5db LAB_001dd5db: LEA RDI,[RSP + 0x30] CALL 0x001a1ef0 JMP 0x001dd572 LAB_001dd5e7: MOV EDI,0x10 CALL 0x00150540 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RSP],RAX LAB_001dd5fb: LEA RSI,[0x2d17fe] CALL 0x00150360 LAB_001dd607: JMP 0x001dd609 LAB_001dd609: MOV RDI,qword ptr [RSP] MOV RSI,qword ptr [0x00353f30] MOV RDX,qword ptr [0x00353f80] CALL 0x001508f0
/* 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> > >::at(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ long __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>>> ::at(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,basic_json *param_1) { bool bVar1; basic_json *pbVar2; ulong uVar3; long lVar4; out_of_range *this_00; int8 local_20; int8 local_18; basic_json *local_10; 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>>> *local_8; local_10 = param_1; local_8 = this; local_18 = 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>>> ::begin((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); while( true ) { local_20 = 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>>> ::end((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); bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_18,(__normal_iterator *)&local_20); if (!bVar1) { this_00 = (out_of_range *)__cxa_allocate_exception(0x10); /* try { // try from 001dd5fb to 001dd606 has its CatchHandler @ 001dd620 */ std::out_of_range::out_of_range(this_00,"key not found"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00353f30,PTR__out_of_range_00353f80); } pbVar2 = (basic_json *) __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>>>> ::operator->((__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>>>> *)&local_18); uVar3 = std::equal_to<void>::operator()((equal_to<void> *)(this + 0x18),pbVar2,local_10); if ((uVar3 & 1) != 0) break; __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>>>> ::operator++((__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>>>> *)&local_18); } lVar4 = __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>>>> ::operator->((__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>>>> *)&local_18); return lVar4 + 0x10; }
3,849
exchange_int32s
bluesky950520[P]quickjs/cutils.c
static void exchange_int32s(void *a, void *b, size_t size) { uint32_t *ap = (uint32_t *)a; uint32_t *bp = (uint32_t *)b; for (size /= sizeof(uint32_t); size-- != 0;) { uint32_t t = *ap; *ap++ = *bp; *bp++ = t; } }
O2
c
exchange_int32s: shrq $0x2, %rdx xorl %eax, %eax cmpq %rax, %rdx je 0x1aaee movl (%rdi,%rax,4), %ecx movl (%rsi,%rax,4), %r8d movl %r8d, (%rdi,%rax,4) movl %ecx, (%rsi,%rax,4) incq %rax jmp 0x1aad6 retq
exchange_int32s: shr rdx, 2 xor eax, eax loc_1AAD6: cmp rdx, rax jz short locret_1AAEE mov ecx, [rdi+rax*4] mov r8d, [rsi+rax*4] mov [rdi+rax*4], r8d mov [rsi+rax*4], ecx inc rax jmp short loc_1AAD6 locret_1AAEE: retn
long long exchange_int32s(long long a1, long long a2, unsigned long long a3) { unsigned long long v3; // rdx long long result; // rax int v5; // ecx v3 = a3 >> 2; for ( result = 0LL; v3 != result; ++result ) { v5 = *(_DWORD *)(a1 + 4 * result); *(_DWORD *)(a1 + 4 * result) = *(_DWORD *)(a2 + 4 * result); *(_DWORD *)(a2 + 4 * result) = v5; } return result; }
exchange_int32s: SHR RDX,0x2 XOR EAX,EAX LAB_0011aad6: CMP RDX,RAX JZ 0x0011aaee MOV ECX,dword ptr [RDI + RAX*0x4] MOV R8D,dword ptr [RSI + RAX*0x4] MOV dword ptr [RDI + RAX*0x4],R8D MOV dword ptr [RSI + RAX*0x4],ECX INC RAX JMP 0x0011aad6 LAB_0011aaee: RET
void exchange_int32s(long param_1,long param_2,ulong param_3) { int4 uVar1; ulong uVar2; for (uVar2 = 0; param_3 >> 2 != uVar2; uVar2 = uVar2 + 1) { uVar1 = *(int4 *)(param_1 + uVar2 * 4); *(int4 *)(param_1 + uVar2 * 4) = *(int4 *)(param_2 + uVar2 * 4); *(int4 *)(param_2 + uVar2 * 4) = uVar1; } return; }
3,850
my_hrtime
eloqsql/mysys/my_getsystime.c
my_hrtime_t my_hrtime() { my_hrtime_t hrtime; #if defined(_WIN32) ulonglong newtime; GetSystemTimePreciseAsFileTime((FILETIME*)&newtime); hrtime.val= (newtime - OFFSET_TO_EPOC)/10; #elif defined(HAVE_CLOCK_GETTIME) struct timespec tp; clock_gettime(CLOCK_REALTIME, &tp); hrtime.val= tp.tv_sec*1000000ULL+tp.tv_nsec/1000ULL; #else struct timeval t; /* The following loop is here because gettimeofday may fail */ while (gettimeofday(&t, NULL) != 0) {} hrtime.val= t.tv_sec*1000000ULL + t.tv_usec; #endif DBUG_EXECUTE_IF("system_time_plus_one_hour", hrtime.val += 3600*1000000ULL;); DBUG_EXECUTE_IF("system_time_minus_one_hour", hrtime.val -= 3600*1000000ULL;); return hrtime; }
O3
c
my_hrtime: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x18, %rsp leaq -0x18(%rbp), %rbx xorl %edi, %edi movq %rbx, %rsi callq 0x292d0 imulq $0xf4240, (%rbx), %rcx # imm = 0xF4240 movq 0x8(%rbx), %rax shrq $0x3, %rax movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF mulq %rdx shrq $0x4, %rdx addq %rdx, %rcx movq %rcx, %rax addq $0x18, %rsp popq %rbx popq %rbp retq
my_hrtime: push rbp mov rbp, rsp push rbx sub rsp, 18h lea rbx, [rbp+var_18] xor edi, edi mov rsi, rbx call _clock_gettime imul rcx, [rbx], 0F4240h mov rax, [rbx+8] shr rax, 3 mov rdx, 20C49BA5E353F7CFh mul rdx shr rdx, 4 add rcx, rdx mov rax, rcx add rsp, 18h pop rbx pop rbp retn
unsigned long long my_hrtime() { long long v1; // [rsp+8h] [rbp-18h] BYREF unsigned long long v2; // [rsp+10h] [rbp-10h] clock_gettime(0LL, &v1); return v2 / 0x3E8 + 1000000 * v1; }
my_hrtime: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x18 LEA RBX,[RBP + -0x18] XOR EDI,EDI MOV RSI,RBX CALL 0x001292d0 IMUL RCX,qword ptr [RBX],0xf4240 MOV RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 MOV RDX,0x20c49ba5e353f7cf MUL RDX SHR RDX,0x4 ADD RCX,RDX MOV RAX,RCX ADD RSP,0x18 POP RBX POP RBP RET
long my_hrtime(void) { timespec local_20; clock_gettime(0,&local_20); return local_20.tv_sec * 1000000 + (ulong)local_20.tv_nsec / 1000; }
3,851
blst_scalar_from_uint64
corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/exports.c
void blst_scalar_from_uint64(pow256 ret, const unsigned long long a[4]) { const union { long one; char little; } is_endian = { 1 }; size_t i; if ((uptr_t)ret==(uptr_t)a && is_endian.little) return; for(i = 0; i < 4; i++) { unsigned long long w = a[i]; *ret++ = (byte)w; *ret++ = (byte)(w >> 8); *ret++ = (byte)(w >> 16); *ret++ = (byte)(w >> 24); *ret++ = (byte)(w >> 32); *ret++ = (byte)(w >> 40); *ret++ = (byte)(w >> 48); *ret++ = (byte)(w >> 56); } }
O2
c
blst_scalar_from_uint64: pushq %rbp movq %rsp, %rbp cmpq %rsi, %rdi je 0x5ae72 xorl %eax, %eax cmpq $0x4, %rax je 0x5ae72 movq (%rsi,%rax,8), %rcx movq %rcx, (%rdi,%rax,8) incq %rax jmp 0x5ae5f popq %rbp retq
blst_scalar_from_uint64: push rbp mov rbp, rsp cmp rdi, rsi jz short loc_5AE72 xor eax, eax loc_5AE5F: cmp rax, 4 jz short loc_5AE72 mov rcx, [rsi+rax*8] mov [rdi+rax*8], rcx inc rax jmp short loc_5AE5F loc_5AE72: pop rbp retn
void blst_scalar_from_uint64(long long a1, long long a2) { long long i; // rax if ( a1 != a2 ) { for ( i = 0LL; i != 4; ++i ) *(_QWORD *)(a1 + 8 * i) = *(_QWORD *)(a2 + 8 * i); } }
blst_scalar_from_uint64: PUSH RBP MOV RBP,RSP CMP RDI,RSI JZ 0x0015ae72 XOR EAX,EAX LAB_0015ae5f: CMP RAX,0x4 JZ 0x0015ae72 MOV RCX,qword ptr [RSI + RAX*0x8] MOV qword ptr [RDI + RAX*0x8],RCX INC RAX JMP 0x0015ae5f LAB_0015ae72: POP RBP RET
void blst_scalar_from_uint64(long param_1,long param_2) { long lVar1; if (param_1 != param_2) { for (lVar1 = 0; lVar1 != 4; lVar1 = lVar1 + 1) { *(int8 *)(param_1 + lVar1 * 8) = *(int8 *)(param_2 + lVar1 * 8); } } return; }
3,852
OpenGL_Init_4_0
SDL3Lite/dependencies/OpenGL.h
void OpenGL_Init_4_0() { glMinSampleShading = (PFNGLMINSAMPLESHADINGPROC)OpenGL_Load("glMinSampleShading"); glBlendEquationi = (PFNGLBLENDEQUATIONIPROC)OpenGL_Load("glBlendEquationi"); glBlendEquationSeparatei = (PFNGLBLENDEQUATIONSEPARATEIPROC)OpenGL_Load("glBlendEquationSeparatei"); glBlendFunci = (PFNGLBLENDFUNCIPROC)OpenGL_Load("glBlendFunci"); glBlendFuncSeparatei = (PFNGLBLENDFUNCSEPARATEIPROC)OpenGL_Load("glBlendFuncSeparatei"); glDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC)OpenGL_Load("glDrawArraysIndirect"); glDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC)OpenGL_Load("glDrawElementsIndirect"); glUniform1d = (PFNGLUNIFORM1DPROC)OpenGL_Load("glUniform1d"); glUniform2d = (PFNGLUNIFORM2DPROC)OpenGL_Load("glUniform2d"); glUniform3d = (PFNGLUNIFORM3DPROC)OpenGL_Load("glUniform3d"); glUniform4d = (PFNGLUNIFORM4DPROC)OpenGL_Load("glUniform4d"); glUniform1dv = (PFNGLUNIFORM1DVPROC)OpenGL_Load("glUniform1dv"); glUniform2dv = (PFNGLUNIFORM2DVPROC)OpenGL_Load("glUniform2dv"); glUniform3dv = (PFNGLUNIFORM3DVPROC)OpenGL_Load("glUniform3dv"); glUniform4dv = (PFNGLUNIFORM4DVPROC)OpenGL_Load("glUniform4dv"); glUniformMatrix2dv = (PFNGLUNIFORMMATRIX2DVPROC)OpenGL_Load("glUniformMatrix2dv"); glUniformMatrix3dv = (PFNGLUNIFORMMATRIX3DVPROC)OpenGL_Load("glUniformMatrix3dv"); glUniformMatrix4dv = (PFNGLUNIFORMMATRIX4DVPROC)OpenGL_Load("glUniformMatrix4dv"); glUniformMatrix2x3dv = (PFNGLUNIFORMMATRIX2X3DVPROC)OpenGL_Load("glUniformMatrix2x3dv"); glUniformMatrix2x4dv = (PFNGLUNIFORMMATRIX2X4DVPROC)OpenGL_Load("glUniformMatrix2x4dv"); glUniformMatrix3x2dv = (PFNGLUNIFORMMATRIX3X2DVPROC)OpenGL_Load("glUniformMatrix3x2dv"); glUniformMatrix3x4dv = (PFNGLUNIFORMMATRIX3X4DVPROC)OpenGL_Load("glUniformMatrix3x4dv"); glUniformMatrix4x2dv = (PFNGLUNIFORMMATRIX4X2DVPROC)OpenGL_Load("glUniformMatrix4x2dv"); glUniformMatrix4x3dv = (PFNGLUNIFORMMATRIX4X3DVPROC)OpenGL_Load("glUniformMatrix4x3dv"); glGetUniformdv = (PFNGLGETUNIFORMDVPROC)OpenGL_Load("glGetUniformdv"); glGetSubroutineUniformLocation = (PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC)OpenGL_Load("glGetSubroutineUniformLocation"); glGetSubroutineIndex = (PFNGLGETSUBROUTINEINDEXPROC)OpenGL_Load("glGetSubroutineIndex"); glGetActiveSubroutineUniformiv = (PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC)OpenGL_Load("glGetActiveSubroutineUniformiv"); glGetActiveSubroutineUniformName = (PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC)OpenGL_Load("glGetActiveSubroutineUniformName"); glGetActiveSubroutineName = (PFNGLGETACTIVESUBROUTINENAMEPROC)OpenGL_Load("glGetActiveSubroutineName"); glUniformSubroutinesuiv = (PFNGLUNIFORMSUBROUTINESUIVPROC)OpenGL_Load("glUniformSubroutinesuiv"); glGetUniformSubroutineuiv = (PFNGLGETUNIFORMSUBROUTINEUIVPROC)OpenGL_Load("glGetUniformSubroutineuiv"); glGetProgramStageiv = (PFNGLGETPROGRAMSTAGEIVPROC)OpenGL_Load("glGetProgramStageiv"); glPatchParameteri = (PFNGLPATCHPARAMETERIPROC)OpenGL_Load("glPatchParameteri"); glPatchParameterfv = (PFNGLPATCHPARAMETERFVPROC)OpenGL_Load("glPatchParameterfv"); glBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC)OpenGL_Load("glBindTransformFeedback"); glDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC)OpenGL_Load("glDeleteTransformFeedbacks"); glGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC)OpenGL_Load("glGenTransformFeedbacks"); glIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC)OpenGL_Load("glIsTransformFeedback"); glPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC)OpenGL_Load("glPauseTransformFeedback"); glResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC)OpenGL_Load("glResumeTransformFeedback"); glDrawTransformFeedback = (PFNGLDRAWTRANSFORMFEEDBACKPROC)OpenGL_Load("glDrawTransformFeedback"); glDrawTransformFeedbackStream = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC)OpenGL_Load("glDrawTransformFeedbackStream"); glBeginQueryIndexed = (PFNGLBEGINQUERYINDEXEDPROC)OpenGL_Load("glBeginQueryIndexed"); glEndQueryIndexed = (PFNGLENDQUERYINDEXEDPROC)OpenGL_Load("glEndQueryIndexed"); glGetQueryIndexediv = (PFNGLGETQUERYINDEXEDIVPROC)OpenGL_Load("glGetQueryIndexediv"); }
O3
c
OpenGL_Init_4_0: pushq %rax leaq 0x532a(%rip), %rdi # 0x17d52 callq 0xf3a0 movq %rax, 0xad14(%rip) # 0x1d748 leaq 0x532a(%rip), %rdi # 0x17d65 callq 0xf3a0 movq %rax, 0xad09(%rip) # 0x1d750 leaq 0x5328(%rip), %rdi # 0x17d76 callq 0xf3a0 movq %rax, 0xacfe(%rip) # 0x1d758 leaq 0x532e(%rip), %rdi # 0x17d8f callq 0xf3a0 movq %rax, 0xacf3(%rip) # 0x1d760 leaq 0x5328(%rip), %rdi # 0x17d9c callq 0xf3a0 movq %rax, 0xace8(%rip) # 0x1d768 leaq 0x532a(%rip), %rdi # 0x17db1 callq 0xf3a0 movq %rax, 0xacdd(%rip) # 0x1d770 leaq 0x532c(%rip), %rdi # 0x17dc6 callq 0xf3a0 movq %rax, 0xacd2(%rip) # 0x1d778 leaq 0x5330(%rip), %rdi # 0x17ddd callq 0xf3a0 movq %rax, 0xacc7(%rip) # 0x1d780 leaq 0x5329(%rip), %rdi # 0x17de9 callq 0xf3a0 movq %rax, 0xacbc(%rip) # 0x1d788 leaq 0x5322(%rip), %rdi # 0x17df5 callq 0xf3a0 movq %rax, 0xacb1(%rip) # 0x1d790 leaq 0x531b(%rip), %rdi # 0x17e01 callq 0xf3a0 movq %rax, 0xaca6(%rip) # 0x1d798 leaq 0x5314(%rip), %rdi # 0x17e0d callq 0xf3a0 movq %rax, 0xac9b(%rip) # 0x1d7a0 leaq 0x530e(%rip), %rdi # 0x17e1a callq 0xf3a0 movq %rax, 0xac90(%rip) # 0x1d7a8 leaq 0x5308(%rip), %rdi # 0x17e27 callq 0xf3a0 movq %rax, 0xac85(%rip) # 0x1d7b0 leaq 0x5302(%rip), %rdi # 0x17e34 callq 0xf3a0 movq %rax, 0xac7a(%rip) # 0x1d7b8 leaq 0x52fc(%rip), %rdi # 0x17e41 callq 0xf3a0 movq %rax, 0xac6f(%rip) # 0x1d7c0 leaq 0x52fc(%rip), %rdi # 0x17e54 callq 0xf3a0 movq %rax, 0xac64(%rip) # 0x1d7c8 leaq 0x52fc(%rip), %rdi # 0x17e67 callq 0xf3a0 movq %rax, 0xac59(%rip) # 0x1d7d0 leaq 0x52fc(%rip), %rdi # 0x17e7a callq 0xf3a0 movq %rax, 0xac4e(%rip) # 0x1d7d8 leaq 0x52fe(%rip), %rdi # 0x17e8f callq 0xf3a0 movq %rax, 0xac43(%rip) # 0x1d7e0 leaq 0x5300(%rip), %rdi # 0x17ea4 callq 0xf3a0 movq %rax, 0xac38(%rip) # 0x1d7e8 leaq 0x5302(%rip), %rdi # 0x17eb9 callq 0xf3a0 movq %rax, 0xac2d(%rip) # 0x1d7f0 leaq 0x5304(%rip), %rdi # 0x17ece callq 0xf3a0 movq %rax, 0xac22(%rip) # 0x1d7f8 leaq 0x5306(%rip), %rdi # 0x17ee3 callq 0xf3a0 movq %rax, 0xac17(%rip) # 0x1d800 leaq 0x5308(%rip), %rdi # 0x17ef8 callq 0xf3a0 movq %rax, 0xac0c(%rip) # 0x1d808 leaq 0x5304(%rip), %rdi # 0x17f07 callq 0xf3a0 movq %rax, 0xac01(%rip) # 0x1d810 leaq 0x5310(%rip), %rdi # 0x17f26 callq 0xf3a0 movq %rax, 0xabf6(%rip) # 0x1d818 leaq 0x5312(%rip), %rdi # 0x17f3b callq 0xf3a0 movq %rax, 0xabeb(%rip) # 0x1d820 leaq 0x531e(%rip), %rdi # 0x17f5a callq 0xf3a0 movq %rax, 0xabe0(%rip) # 0x1d828 leaq 0x532c(%rip), %rdi # 0x17f7b callq 0xf3a0 movq %rax, 0xabd5(%rip) # 0x1d830 leaq 0x5333(%rip), %rdi # 0x17f95 callq 0xf3a0 movq %rax, 0xabca(%rip) # 0x1d838 leaq 0x5338(%rip), %rdi # 0x17fad callq 0xf3a0 movq %rax, 0xabbf(%rip) # 0x1d840 leaq 0x533f(%rip), %rdi # 0x17fc7 callq 0xf3a0 movq %rax, 0xabb4(%rip) # 0x1d848 leaq 0x5340(%rip), %rdi # 0x17fdb callq 0xf3a0 movq %rax, 0xaba9(%rip) # 0x1d850 leaq 0x533f(%rip), %rdi # 0x17fed callq 0xf3a0 movq %rax, 0xab9e(%rip) # 0x1d858 leaq 0x533f(%rip), %rdi # 0x18000 callq 0xf3a0 movq %rax, 0xab93(%rip) # 0x1d860 leaq 0x5344(%rip), %rdi # 0x18018 callq 0xf3a0 movq %rax, 0xab88(%rip) # 0x1d868 leaq 0x534c(%rip), %rdi # 0x18033 callq 0xf3a0 movq %rax, 0xab7d(%rip) # 0x1d870 leaq 0x5351(%rip), %rdi # 0x1804b callq 0xf3a0 movq %rax, 0xab72(%rip) # 0x1d878 leaq 0x5354(%rip), %rdi # 0x18061 callq 0xf3a0 movq %rax, 0xab67(%rip) # 0x1d880 leaq 0x535a(%rip), %rdi # 0x1807a callq 0xf3a0 movq %rax, 0xab5c(%rip) # 0x1d888 leaq 0x5361(%rip), %rdi # 0x18094 callq 0xf3a0 movq %rax, 0xab51(%rip) # 0x1d890 leaq 0x5366(%rip), %rdi # 0x180ac callq 0xf3a0 movq %rax, 0xab46(%rip) # 0x1d898 leaq 0x5371(%rip), %rdi # 0x180ca callq 0xf3a0 movq %rax, 0xab3b(%rip) # 0x1d8a0 leaq 0x5372(%rip), %rdi # 0x180de callq 0xf3a0 movq %rax, 0xab30(%rip) # 0x1d8a8 leaq 0x5371(%rip), %rdi # 0x180f0 callq 0xf3a0 movq %rax, 0xab25(%rip) # 0x1d8b0 popq %rax retq nopl (%rax)
OpenGL_Init_4_0: push rax lea rdi, aGlminsamplesha_0; "glMinSampleShading" call OpenGL_Load mov cs:glMinSampleShading, rax lea rdi, aGlblendequatio_5; "glBlendEquationi" call OpenGL_Load mov cs:glBlendEquationi, rax lea rdi, aGlblendequatio_6; "glBlendEquationSeparatei" call OpenGL_Load mov cs:glBlendEquationSeparatei, rax lea rdi, aGlblendfunci_0; "glBlendFunci" call OpenGL_Load mov cs:glBlendFunci, rax lea rdi, aGlblendfuncsep_2; "glBlendFuncSeparatei" call OpenGL_Load mov cs:glBlendFuncSeparatei, rax lea rdi, aGldrawarraysin_3; "glDrawArraysIndirect" call OpenGL_Load mov cs:glDrawArraysIndirect, rax lea rdi, aGldrawelements_10; "glDrawElementsIndirect" call OpenGL_Load mov cs:glDrawElementsIndirect, rax lea rdi, aGluniform1d_0; "glUniform1d" call OpenGL_Load mov cs:glUniform1d, rax lea rdi, aGluniform2d_0; "glUniform2d" call OpenGL_Load mov cs:glUniform2d, rax lea rdi, aGluniform3d_0; "glUniform3d" call OpenGL_Load mov cs:glUniform3d, rax lea rdi, aGluniform4d_0; "glUniform4d" call OpenGL_Load mov cs:glUniform4d, rax lea rdi, aGluniform1dv_0; "glUniform1dv" call OpenGL_Load mov cs:glUniform1dv, rax lea rdi, aGluniform2dv_0; "glUniform2dv" call OpenGL_Load mov cs:glUniform2dv, rax lea rdi, aGluniform3dv_0; "glUniform3dv" call OpenGL_Load mov cs:glUniform3dv, rax lea rdi, aGluniform4dv_0; "glUniform4dv" call OpenGL_Load mov cs:glUniform4dv, rax lea rdi, aGluniformmatri_26; "glUniformMatrix2dv" call OpenGL_Load mov cs:glUniformMatrix2dv, rax lea rdi, aGluniformmatri_27; "glUniformMatrix3dv" call OpenGL_Load mov cs:glUniformMatrix3dv, rax lea rdi, aGluniformmatri_28; "glUniformMatrix4dv" call OpenGL_Load mov cs:glUniformMatrix4dv, rax lea rdi, aGluniformmatri_29; "glUniformMatrix2x3dv" call OpenGL_Load mov cs:glUniformMatrix2x3dv, rax lea rdi, aGluniformmatri_30; "glUniformMatrix2x4dv" call OpenGL_Load mov cs:glUniformMatrix2x4dv, rax lea rdi, aGluniformmatri_31; "glUniformMatrix3x2dv" call OpenGL_Load mov cs:glUniformMatrix3x2dv, rax lea rdi, aGluniformmatri_32; "glUniformMatrix3x4dv" call OpenGL_Load mov cs:glUniformMatrix3x4dv, rax lea rdi, aGluniformmatri_33; "glUniformMatrix4x2dv" call OpenGL_Load mov cs:glUniformMatrix4x2dv, rax lea rdi, aGluniformmatri_34; "glUniformMatrix4x3dv" call OpenGL_Load mov cs:glUniformMatrix4x3dv, rax lea rdi, aGlgetuniformdv_0; "glGetUniformdv" call OpenGL_Load mov cs:glGetUniformdv, rax lea rdi, aGlgetsubroutin_1; "glGetSubroutineUniformLocation" call OpenGL_Load mov cs:glGetSubroutineUniformLocation, rax lea rdi, aGlgetsubroutin_2; "glGetSubroutineIndex" call OpenGL_Load mov cs:glGetSubroutineIndex, rax lea rdi, aGlgetactivesub_2; "glGetActiveSubroutineUniformiv" call OpenGL_Load mov cs:glGetActiveSubroutineUniformiv, rax lea rdi, aGlgetactivesub_3; "glGetActiveSubroutineUniformName" call OpenGL_Load mov cs:glGetActiveSubroutineUniformName, rax lea rdi, aGlgetactivesub_4; "glGetActiveSubroutineName" call OpenGL_Load mov cs:glGetActiveSubroutineName, rax lea rdi, aGluniformsubro_0; "glUniformSubroutinesuiv" call OpenGL_Load mov cs:glUniformSubroutinesuiv, rax lea rdi, aGlgetuniformsu_0; "glGetUniformSubroutineuiv" call OpenGL_Load mov cs:glGetUniformSubroutineuiv, rax lea rdi, aGlgetprogramst_0; "glGetProgramStageiv" call OpenGL_Load mov cs:glGetProgramStageiv, rax lea rdi, aGlpatchparamet_1; "glPatchParameteri" call OpenGL_Load mov cs:glPatchParameteri, rax lea rdi, aGlpatchparamet_2; "glPatchParameterfv" call OpenGL_Load mov cs:glPatchParameterfv, rax lea rdi, aGlbindtransfor_0; "glBindTransformFeedback" call OpenGL_Load mov cs:glBindTransformFeedback, rax lea rdi, aGldeletetransf_0; "glDeleteTransformFeedbacks" call OpenGL_Load mov cs:glDeleteTransformFeedbacks, rax lea rdi, aGlgentransform_0; "glGenTransformFeedbacks" call OpenGL_Load mov cs:glGenTransformFeedbacks, rax lea rdi, aGlistransformf_0; "glIsTransformFeedback" call OpenGL_Load mov cs:glIsTransformFeedback, rax lea rdi, aGlpausetransfo_0; "glPauseTransformFeedback" call OpenGL_Load mov cs:glPauseTransformFeedback, rax lea rdi, aGlresumetransf_0; "glResumeTransformFeedback" call OpenGL_Load mov cs:glResumeTransformFeedback, rax lea rdi, aGldrawtransfor_3; "glDrawTransformFeedback" call OpenGL_Load mov cs:glDrawTransformFeedback, rax lea rdi, aGldrawtransfor_4; "glDrawTransformFeedbackStream" call OpenGL_Load mov cs:glDrawTransformFeedbackStream, rax lea rdi, aGlbeginqueryin_0; "glBeginQueryIndexed" call OpenGL_Load mov cs:glBeginQueryIndexed, rax lea rdi, aGlendqueryinde_0; "glEndQueryIndexed" call OpenGL_Load mov cs:glEndQueryIndexed, rax lea rdi, aGlgetqueryinde_0; "glGetQueryIndexediv" call OpenGL_Load mov cs:glGetQueryIndexediv, rax pop rax retn
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> OpenGL_Init_4_0() { glMinSampleShading = OpenGL_Load("glMinSampleShading"); glBlendEquationi = OpenGL_Load("glBlendEquationi"); glBlendEquationSeparatei = OpenGL_Load("glBlendEquationSeparatei"); glBlendFunci = OpenGL_Load("glBlendFunci"); glBlendFuncSeparatei = OpenGL_Load("glBlendFuncSeparatei"); glDrawArraysIndirect = OpenGL_Load("glDrawArraysIndirect"); glDrawElementsIndirect = OpenGL_Load("glDrawElementsIndirect"); glUniform1d = OpenGL_Load("glUniform1d"); glUniform2d = OpenGL_Load("glUniform2d"); glUniform3d = OpenGL_Load("glUniform3d"); glUniform4d = OpenGL_Load("glUniform4d"); glUniform1dv = OpenGL_Load("glUniform1dv"); glUniform2dv = OpenGL_Load("glUniform2dv"); glUniform3dv = OpenGL_Load("glUniform3dv"); glUniform4dv = OpenGL_Load("glUniform4dv"); glUniformMatrix2dv = OpenGL_Load("glUniformMatrix2dv"); glUniformMatrix3dv = OpenGL_Load("glUniformMatrix3dv"); glUniformMatrix4dv = OpenGL_Load("glUniformMatrix4dv"); glUniformMatrix2x3dv = OpenGL_Load("glUniformMatrix2x3dv"); glUniformMatrix2x4dv = OpenGL_Load("glUniformMatrix2x4dv"); glUniformMatrix3x2dv = OpenGL_Load("glUniformMatrix3x2dv"); glUniformMatrix3x4dv = OpenGL_Load("glUniformMatrix3x4dv"); glUniformMatrix4x2dv = OpenGL_Load("glUniformMatrix4x2dv"); glUniformMatrix4x3dv = OpenGL_Load("glUniformMatrix4x3dv"); glGetUniformdv = OpenGL_Load("glGetUniformdv"); glGetSubroutineUniformLocation = OpenGL_Load("glGetSubroutineUniformLocation"); glGetSubroutineIndex = OpenGL_Load("glGetSubroutineIndex"); glGetActiveSubroutineUniformiv = OpenGL_Load("glGetActiveSubroutineUniformiv"); glGetActiveSubroutineUniformName = OpenGL_Load("glGetActiveSubroutineUniformName"); glGetActiveSubroutineName = OpenGL_Load("glGetActiveSubroutineName"); glUniformSubroutinesuiv = OpenGL_Load("glUniformSubroutinesuiv"); glGetUniformSubroutineuiv = OpenGL_Load("glGetUniformSubroutineuiv"); glGetProgramStageiv = OpenGL_Load("glGetProgramStageiv"); glPatchParameteri = OpenGL_Load("glPatchParameteri"); glPatchParameterfv = OpenGL_Load("glPatchParameterfv"); glBindTransformFeedback = OpenGL_Load("glBindTransformFeedback"); glDeleteTransformFeedbacks = OpenGL_Load("glDeleteTransformFeedbacks"); glGenTransformFeedbacks = OpenGL_Load("glGenTransformFeedbacks"); glIsTransformFeedback = OpenGL_Load("glIsTransformFeedback"); glPauseTransformFeedback = OpenGL_Load("glPauseTransformFeedback"); glResumeTransformFeedback = OpenGL_Load("glResumeTransformFeedback"); glDrawTransformFeedback = OpenGL_Load("glDrawTransformFeedback"); glDrawTransformFeedbackStream = OpenGL_Load("glDrawTransformFeedbackStream"); glBeginQueryIndexed = OpenGL_Load("glBeginQueryIndexed"); glEndQueryIndexed = OpenGL_Load("glEndQueryIndexed"); glGetQueryIndexediv = OpenGL_Load("glGetQueryIndexediv"); }
OpenGL_Init_4_0: PUSH RAX LEA RDI,[0x117d52] CALL 0x0010f3a0 MOV qword ptr [0x0011d748],RAX LEA RDI,[0x117d65] CALL 0x0010f3a0 MOV qword ptr [0x0011d750],RAX LEA RDI,[0x117d76] CALL 0x0010f3a0 MOV qword ptr [0x0011d758],RAX LEA RDI,[0x117d8f] CALL 0x0010f3a0 MOV qword ptr [0x0011d760],RAX LEA RDI,[0x117d9c] CALL 0x0010f3a0 MOV qword ptr [0x0011d768],RAX LEA RDI,[0x117db1] CALL 0x0010f3a0 MOV qword ptr [0x0011d770],RAX LEA RDI,[0x117dc6] CALL 0x0010f3a0 MOV qword ptr [0x0011d778],RAX LEA RDI,[0x117ddd] CALL 0x0010f3a0 MOV qword ptr [0x0011d780],RAX LEA RDI,[0x117de9] CALL 0x0010f3a0 MOV qword ptr [0x0011d788],RAX LEA RDI,[0x117df5] CALL 0x0010f3a0 MOV qword ptr [0x0011d790],RAX LEA RDI,[0x117e01] CALL 0x0010f3a0 MOV qword ptr [0x0011d798],RAX LEA RDI,[0x117e0d] CALL 0x0010f3a0 MOV qword ptr [0x0011d7a0],RAX LEA RDI,[0x117e1a] CALL 0x0010f3a0 MOV qword ptr [0x0011d7a8],RAX LEA RDI,[0x117e27] CALL 0x0010f3a0 MOV qword ptr [0x0011d7b0],RAX LEA RDI,[0x117e34] CALL 0x0010f3a0 MOV qword ptr [0x0011d7b8],RAX LEA RDI,[0x117e41] CALL 0x0010f3a0 MOV qword ptr [0x0011d7c0],RAX LEA RDI,[0x117e54] CALL 0x0010f3a0 MOV qword ptr [0x0011d7c8],RAX LEA RDI,[0x117e67] CALL 0x0010f3a0 MOV qword ptr [0x0011d7d0],RAX LEA RDI,[0x117e7a] CALL 0x0010f3a0 MOV qword ptr [0x0011d7d8],RAX LEA RDI,[0x117e8f] CALL 0x0010f3a0 MOV qword ptr [0x0011d7e0],RAX LEA RDI,[0x117ea4] CALL 0x0010f3a0 MOV qword ptr [0x0011d7e8],RAX LEA RDI,[0x117eb9] CALL 0x0010f3a0 MOV qword ptr [0x0011d7f0],RAX LEA RDI,[0x117ece] CALL 0x0010f3a0 MOV qword ptr [0x0011d7f8],RAX LEA RDI,[0x117ee3] CALL 0x0010f3a0 MOV qword ptr [0x0011d800],RAX LEA RDI,[0x117ef8] CALL 0x0010f3a0 MOV qword ptr [0x0011d808],RAX LEA RDI,[0x117f07] CALL 0x0010f3a0 MOV qword ptr [0x0011d810],RAX LEA RDI,[0x117f26] CALL 0x0010f3a0 MOV qword ptr [0x0011d818],RAX LEA RDI,[0x117f3b] CALL 0x0010f3a0 MOV qword ptr [0x0011d820],RAX LEA RDI,[0x117f5a] CALL 0x0010f3a0 MOV qword ptr [0x0011d828],RAX LEA RDI,[0x117f7b] CALL 0x0010f3a0 MOV qword ptr [0x0011d830],RAX LEA RDI,[0x117f95] CALL 0x0010f3a0 MOV qword ptr [0x0011d838],RAX LEA RDI,[0x117fad] CALL 0x0010f3a0 MOV qword ptr [0x0011d840],RAX LEA RDI,[0x117fc7] CALL 0x0010f3a0 MOV qword ptr [0x0011d848],RAX LEA RDI,[0x117fdb] CALL 0x0010f3a0 MOV qword ptr [0x0011d850],RAX LEA RDI,[0x117fed] CALL 0x0010f3a0 MOV qword ptr [0x0011d858],RAX LEA RDI,[0x118000] CALL 0x0010f3a0 MOV qword ptr [0x0011d860],RAX LEA RDI,[0x118018] CALL 0x0010f3a0 MOV qword ptr [0x0011d868],RAX LEA RDI,[0x118033] CALL 0x0010f3a0 MOV qword ptr [0x0011d870],RAX LEA RDI,[0x11804b] CALL 0x0010f3a0 MOV qword ptr [0x0011d878],RAX LEA RDI,[0x118061] CALL 0x0010f3a0 MOV qword ptr [0x0011d880],RAX LEA RDI,[0x11807a] CALL 0x0010f3a0 MOV qword ptr [0x0011d888],RAX LEA RDI,[0x118094] CALL 0x0010f3a0 MOV qword ptr [0x0011d890],RAX LEA RDI,[0x1180ac] CALL 0x0010f3a0 MOV qword ptr [0x0011d898],RAX LEA RDI,[0x1180ca] CALL 0x0010f3a0 MOV qword ptr [0x0011d8a0],RAX LEA RDI,[0x1180de] CALL 0x0010f3a0 MOV qword ptr [0x0011d8a8],RAX LEA RDI,[0x1180f0] CALL 0x0010f3a0 MOV qword ptr [0x0011d8b0],RAX POP RAX RET
int8 OpenGL_Init_4_0(void) { int8 in_RAX; glMinSampleShading = OpenGL_Load("glMinSampleShading"); glBlendEquationi = OpenGL_Load("glBlendEquationi"); glBlendEquationSeparatei = OpenGL_Load("glBlendEquationSeparatei"); glBlendFunci = OpenGL_Load("glBlendFunci"); glBlendFuncSeparatei = OpenGL_Load("glBlendFuncSeparatei"); glDrawArraysIndirect = OpenGL_Load("glDrawArraysIndirect"); glDrawElementsIndirect = OpenGL_Load("glDrawElementsIndirect"); glUniform1d = OpenGL_Load("glUniform1d"); glUniform2d = OpenGL_Load("glUniform2d"); glUniform3d = OpenGL_Load("glUniform3d"); glUniform4d = OpenGL_Load("glUniform4d"); glUniform1dv = OpenGL_Load("glUniform1dv"); glUniform2dv = OpenGL_Load("glUniform2dv"); glUniform3dv = OpenGL_Load("glUniform3dv"); glUniform4dv = OpenGL_Load("glUniform4dv"); glUniformMatrix2dv = OpenGL_Load("glUniformMatrix2dv"); glUniformMatrix3dv = OpenGL_Load("glUniformMatrix3dv"); glUniformMatrix4dv = OpenGL_Load("glUniformMatrix4dv"); glUniformMatrix2x3dv = OpenGL_Load("glUniformMatrix2x3dv"); glUniformMatrix2x4dv = OpenGL_Load("glUniformMatrix2x4dv"); glUniformMatrix3x2dv = OpenGL_Load("glUniformMatrix3x2dv"); glUniformMatrix3x4dv = OpenGL_Load("glUniformMatrix3x4dv"); glUniformMatrix4x2dv = OpenGL_Load("glUniformMatrix4x2dv"); glUniformMatrix4x3dv = OpenGL_Load("glUniformMatrix4x3dv"); glGetUniformdv = OpenGL_Load("glGetUniformdv"); glGetSubroutineUniformLocation = OpenGL_Load("glGetSubroutineUniformLocation"); glGetSubroutineIndex = OpenGL_Load("glGetSubroutineIndex"); glGetActiveSubroutineUniformiv = OpenGL_Load("glGetActiveSubroutineUniformiv"); glGetActiveSubroutineUniformName = OpenGL_Load("glGetActiveSubroutineUniformName"); glGetActiveSubroutineName = OpenGL_Load("glGetActiveSubroutineName"); glUniformSubroutinesuiv = OpenGL_Load("glUniformSubroutinesuiv"); glGetUniformSubroutineuiv = OpenGL_Load("glGetUniformSubroutineuiv"); glGetProgramStageiv = OpenGL_Load("glGetProgramStageiv"); glPatchParameteri = OpenGL_Load("glPatchParameteri"); glPatchParameterfv = OpenGL_Load("glPatchParameterfv"); glBindTransformFeedback = OpenGL_Load("glBindTransformFeedback"); glDeleteTransformFeedbacks = OpenGL_Load("glDeleteTransformFeedbacks"); glGenTransformFeedbacks = OpenGL_Load("glGenTransformFeedbacks"); glIsTransformFeedback = OpenGL_Load("glIsTransformFeedback"); glPauseTransformFeedback = OpenGL_Load("glPauseTransformFeedback"); glResumeTransformFeedback = OpenGL_Load("glResumeTransformFeedback"); glDrawTransformFeedback = OpenGL_Load("glDrawTransformFeedback"); glDrawTransformFeedbackStream = OpenGL_Load("glDrawTransformFeedbackStream"); glBeginQueryIndexed = OpenGL_Load("glBeginQueryIndexed"); glEndQueryIndexed = OpenGL_Load("glEndQueryIndexed"); glGetQueryIndexediv = OpenGL_Load("glGetQueryIndexediv"); return in_RAX; }
3,853
unsigned long nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::erase<char const (&) [5], 0>(char const (&) [5])
monkey531[P]llama/common/json.hpp
size_type erase(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { // Since we cannot move const Keys, re-construct them in place for (auto next = it; ++next != this->end(); ++it) { it->~value_type(); // Destroy but keep allocation new (&*it) value_type{std::move(*next)}; } Container::pop_back(); return 1; } } return 0; }
O2
cpp
unsigned long nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::erase<char const (&) [5], 0>(char const (&) [5]): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, %r15 movq %rdi, %r14 movq (%rdi), %rbx movq 0x8(%r14), %r13 cmpq %r13, %rbx je 0x9ae63 movq %rbx, %rdi movq %r15, %rsi callq 0x488e9 testb %al, %al jne 0x9ae36 addq $0x30, %rbx jmp 0x9ae18 movq %rbx, %r15 leaq 0x30(%r15), %r12 cmpq 0x8(%r14), %r12 je 0x9ae5b movq %r15, %rdi callq 0x69d04 movq %r15, %rdi movq %r12, %rsi callq 0x6a8ee movq %r12, %r15 jmp 0x9ae39 movq %r14, %rdi callq 0x9aaec xorl %eax, %eax cmpq %r13, %rbx setne %al popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA5_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_: push r15 push r14 push r13 push r12 push rbx mov r15, rsi mov r14, rdi mov rbx, [rdi] loc_9AE18: mov r13, [r14+8] cmp rbx, r13 jz short loc_9AE63 mov rdi, rbx mov rsi, r15 call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jnz short loc_9AE36 add rbx, 30h ; '0' jmp short loc_9AE18 loc_9AE36: mov r15, rbx loc_9AE39: lea r12, [r15+30h] cmp r12, [r14+8] jz short loc_9AE5B mov rdi, r15; void * call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~pair() mov rdi, r15 mov rsi, r12 call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2EOSG_; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::pair(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&&) mov r15, r12 jmp short loc_9AE39 loc_9AE5B: mov rdi, r14 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE8pop_backEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::pop_back(void) loc_9AE63: xor eax, eax cmp rbx, r13 setnz al pop rbx pop r12 pop r13 pop r14 pop r15 retn
_BOOL8 ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA5_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_( long long *a1) { long long i; // rbx long long v2; // r13 char *j; // r15 for ( i = *a1; ; i += 48LL ) { v2 = a1[1]; if ( i == v2 ) break; if ( std::operator==<char>(i) ) { for ( j = (char *)i; j + 48 != (char *)a1[1]; j += 48 ) { std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~pair(j); std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pair( (long long)j, (long long)(j + 48)); } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::pop_back((long long)a1); return i != v2; } } return i != v2; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA5_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R15,RSI MOV R14,RDI MOV RBX,qword ptr [RDI] LAB_0019ae18: MOV R13,qword ptr [R14 + 0x8] CMP RBX,R13 JZ 0x0019ae63 MOV RDI,RBX MOV RSI,R15 CALL 0x001488e9 TEST AL,AL JNZ 0x0019ae36 ADD RBX,0x30 JMP 0x0019ae18 LAB_0019ae36: MOV R15,RBX LAB_0019ae39: LEA R12,[R15 + 0x30] CMP R12,qword ptr [R14 + 0x8] JZ 0x0019ae5b MOV RDI,R15 CALL 0x00169d04 MOV RDI,R15 MOV RSI,R12 CALL 0x0016a8ee MOV R15,R12 JMP 0x0019ae39 LAB_0019ae5b: MOV RDI,R14 CALL 0x0019aaec LAB_0019ae63: XOR EAX,EAX CMP RBX,R13 SETNZ AL POP RBX POP R12 POP R13 POP R14 POP R15 RET
bool _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA5_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_ (vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *param_1,char *param_2) { pair *ppVar1; string *psVar2; bool bVar3; string *psVar4; pair *this; for (psVar4 = *(string **)param_1; psVar2 = *(string **)(param_1 + 8), psVar4 != psVar2; psVar4 = psVar4 + 0x30) { bVar3 = std::operator==(psVar4,param_2); this = (pair *)psVar4; if (bVar3) goto LAB_0019ae39; } LAB_0019ae63: return psVar4 != psVar2; LAB_0019ae39: while (ppVar1 = (pair *)((pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)this + 0x30), ppVar1 != *(pair **)(param_1 + 8)) { std:: pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::~pair((pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)this); std:: pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::pair((pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)this,ppVar1); this = ppVar1; } std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::pop_back(param_1); goto LAB_0019ae63; }
3,854
add_hostname_impl(char const*, char const*, bool, Host_errors*, unsigned long long)
eloqsql/sql/hostname.cc
static void add_hostname_impl(const char *ip_key, const char *hostname, bool validated, Host_errors *errors, ulonglong now) { Host_entry *entry; bool need_add= false; entry= hostname_cache_search(ip_key); if (likely(entry == NULL)) { entry= (Host_entry *) malloc(sizeof (Host_entry)); if (entry == NULL) return; need_add= true; memcpy(&entry->ip_key, ip_key, HOST_ENTRY_KEY_SIZE); entry->m_errors.reset(); entry->m_hostname_length= 0; entry->m_host_validated= false; entry->m_first_seen= now; entry->m_last_seen= now; entry->m_first_error_seen= 0; entry->m_last_error_seen= 0; } else { entry->m_last_seen= now; } if (validated) { if (hostname != NULL) { size_t len= strlen(hostname); if (len > sizeof(entry->m_hostname) - 1) len= sizeof(entry->m_hostname) - 1; memcpy(entry->m_hostname, hostname, len); entry->m_hostname[len]= '\0'; entry->m_hostname_length= (uint)len; DBUG_PRINT("info", ("Adding/Updating '%s' -> '%s' (validated) to the hostname cache...'", (const char *) ip_key, (const char *) entry->m_hostname)); } else { entry->m_hostname_length= 0; DBUG_PRINT("info", ("Adding/Updating '%s' -> NULL (validated) to the hostname cache...'", (const char *) ip_key)); } entry->m_host_validated= true; /* New errors that are considered 'blocking', that will eventually cause the IP to be black listed and blocked. */ errors->sum_connect_errors(); } else { entry->m_hostname_length= 0; entry->m_host_validated= false; /* Do not count new blocking errors during DNS failures. */ errors->clear_connect_errors(); DBUG_PRINT("info", ("Adding/Updating '%s' -> NULL (not validated) to the hostname cache...'", (const char *) ip_key)); } if (errors->has_error()) entry->set_error_timestamps(now); entry->m_errors.aggregate(errors); if (need_add) hostname_cache->add(entry); return; }
O0
cpp
add_hostname_impl(char const*, char const*, bool, Host_errors*, unsigned long long): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb %dl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) andb $0x1, %al movb %al, -0x11(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movb $0x0, -0x31(%rbp) movq -0x8(%rbp), %rdi callq 0x8eeee0 movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x8efbe1 movl $0x210, %edi # imm = 0x210 callq 0x434780 movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) jne 0x8efb60 jmp 0x8efcec movb $0x1, -0x31(%rbp) movq -0x30(%rbp), %rdi addq $0x10, %rdi movq -0x8(%rbp), %rsi movl $0x2e, %edx callq 0x4331a0 movq -0x30(%rbp), %rdi addq $0x168, %rdi # imm = 0x168 callq 0x8ee7e0 movq -0x30(%rbp), %rax movl $0x0, 0x140(%rax) movq -0x30(%rbp), %rax movb $0x0, 0x144(%rax) movq -0x28(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, 0x148(%rax) movq -0x28(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, 0x150(%rax) movq -0x30(%rbp), %rax movq $0x0, 0x158(%rax) movq -0x30(%rbp), %rax movq $0x0, 0x160(%rax) jmp 0x8efbf0 movq -0x28(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, 0x150(%rax) testb $0x1, -0x11(%rbp) je 0x8efc7e cmpq $0x0, -0x10(%rbp) je 0x8efc56 movq -0x10(%rbp), %rdi callq 0x433950 movq %rax, -0x40(%rbp) cmpq $0xff, -0x40(%rbp) jbe 0x8efc20 movq $0xff, -0x40(%rbp) movq -0x30(%rbp), %rdi addq $0x3e, %rdi movq -0x10(%rbp), %rsi movq -0x40(%rbp), %rdx callq 0x4331a0 movq -0x30(%rbp), %rax movq -0x40(%rbp), %rcx movb $0x0, 0x3e(%rax,%rcx) movq -0x40(%rbp), %rax movl %eax, %ecx movq -0x30(%rbp), %rax movl %ecx, 0x140(%rax) jmp 0x8efc54 jmp 0x8efc68 movq -0x30(%rbp), %rax movl $0x0, 0x140(%rax) jmp 0x8efc66 jmp 0x8efc68 movq -0x30(%rbp), %rax movb $0x1, 0x144(%rax) movq -0x20(%rbp), %rdi callq 0x8efe80 jmp 0x8efca4 movq -0x30(%rbp), %rax movl $0x0, 0x140(%rax) movq -0x30(%rbp), %rax movb $0x0, 0x144(%rax) movq -0x20(%rbp), %rdi callq 0x8efea0 jmp 0x8efca2 jmp 0x8efca4 movq -0x20(%rbp), %rdi callq 0x8eff40 testb $0x1, %al jne 0x8efcb3 jmp 0x8efcc0 movq -0x30(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0x8efec0 movq -0x30(%rbp), %rdi addq $0x168, %rdi # imm = 0x168 movq -0x20(%rbp), %rsi callq 0x8ee8b0 testb $0x1, -0x31(%rbp) je 0x8efcea movq 0xd03aaf(%rip), %rdi # 0x15f3790 movq -0x30(%rbp), %rsi callq 0x517060 jmp 0x8efcec addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZL17add_hostname_implPKcS0_bP11Host_errorsy: push rbp mov rbp, rsp sub rsp, 40h mov al, dl mov [rbp+var_8], rdi mov [rbp+var_10], rsi and al, 1 mov [rbp+var_11], al mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_31], 0 mov rdi, [rbp+var_8]; char * call _ZL21hostname_cache_searchPKc; hostname_cache_search(char const*) mov [rbp+var_30], rax cmp [rbp+var_30], 0 setz al and al, 1 movzx eax, al cmp eax, 0 jz loc_8EFBE1 mov edi, 210h call _malloc mov [rbp+var_30], rax cmp [rbp+var_30], 0 jnz short loc_8EFB60 jmp loc_8EFCEC loc_8EFB60: mov [rbp+var_31], 1 mov rdi, [rbp+var_30] add rdi, 10h mov rsi, [rbp+var_8] mov edx, 2Eh ; '.' call _memcpy mov rdi, [rbp+var_30] add rdi, 168h; this call _ZN11Host_errors5resetEv; Host_errors::reset(void) mov rax, [rbp+var_30] mov dword ptr [rax+140h], 0 mov rax, [rbp+var_30] mov byte ptr [rax+144h], 0 mov rcx, [rbp+var_28] mov rax, [rbp+var_30] mov [rax+148h], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_30] mov [rax+150h], rcx mov rax, [rbp+var_30] mov qword ptr [rax+158h], 0 mov rax, [rbp+var_30] mov qword ptr [rax+160h], 0 jmp short loc_8EFBF0 loc_8EFBE1: mov rcx, [rbp+var_28] mov rax, [rbp+var_30] mov [rax+150h], rcx loc_8EFBF0: test [rbp+var_11], 1 jz loc_8EFC7E cmp [rbp+var_10], 0 jz short loc_8EFC56 mov rdi, [rbp+var_10] call _strlen mov [rbp+var_40], rax cmp [rbp+var_40], 0FFh jbe short loc_8EFC20 mov [rbp+var_40], 0FFh loc_8EFC20: mov rdi, [rbp+var_30] add rdi, 3Eh ; '>' mov rsi, [rbp+var_10] mov rdx, [rbp+var_40] call _memcpy mov rax, [rbp+var_30] mov rcx, [rbp+var_40] mov byte ptr [rax+rcx+3Eh], 0 mov rax, [rbp+var_40] mov ecx, eax mov rax, [rbp+var_30] mov [rax+140h], ecx jmp short $+2 loc_8EFC54: jmp short loc_8EFC68 loc_8EFC56: mov rax, [rbp+var_30] mov dword ptr [rax+140h], 0 jmp short $+2 loc_8EFC66: jmp short $+2 loc_8EFC68: mov rax, [rbp+var_30] mov byte ptr [rax+144h], 1 mov rdi, [rbp+var_20]; this call _ZN11Host_errors18sum_connect_errorsEv; Host_errors::sum_connect_errors(void) jmp short loc_8EFCA4 loc_8EFC7E: mov rax, [rbp+var_30] mov dword ptr [rax+140h], 0 mov rax, [rbp+var_30] mov byte ptr [rax+144h], 0 mov rdi, [rbp+var_20]; this call _ZN11Host_errors20clear_connect_errorsEv; Host_errors::clear_connect_errors(void) jmp short $+2 loc_8EFCA2: jmp short $+2 loc_8EFCA4: mov rdi, [rbp+var_20]; this call _ZNK11Host_errors9has_errorEv; Host_errors::has_error(void) test al, 1 jnz short loc_8EFCB3 jmp short loc_8EFCC0 loc_8EFCB3: mov rdi, [rbp+var_30]; this mov rsi, [rbp+var_28]; unsigned __int64 call _ZN10Host_entry20set_error_timestampsEy; Host_entry::set_error_timestamps(ulong long) loc_8EFCC0: mov rdi, [rbp+var_30] add rdi, 168h; this mov rsi, [rbp+var_20]; Host_errors * call _ZN11Host_errors9aggregateEPKS_; Host_errors::aggregate(Host_errors const*) test [rbp+var_31], 1 jz short loc_8EFCEA mov rdi, cs:_ZL14hostname_cache; this mov rsi, [rbp+var_30]; hash_filo_element * call _ZN9hash_filo3addEP17hash_filo_element; hash_filo::add(hash_filo_element *) loc_8EFCEA: jmp short $+2 loc_8EFCEC: add rsp, 40h pop rbp retn
char add_hostname_impl(const char *a1, const char *a2, char a3, Host_errors *a4, unsigned long long a5) { long long v5; // rax unsigned long long v7; // [rsp+0h] [rbp-40h] char v8; // [rsp+Fh] [rbp-31h] Host_entry *v9; // [rsp+10h] [rbp-30h] char v12; // [rsp+2Fh] [rbp-11h] v12 = a3 & 1; v8 = 0; v9 = (Host_entry *)hostname_cache_search(a1); if ( v9 ) { *((_QWORD *)v9 + 42) = a5; } else { v5 = malloc(528LL); v9 = (Host_entry *)v5; if ( !v5 ) return v5; v8 = 1; memcpy(v5 + 16, a1, 46LL); Host_errors::reset((Host_entry *)((char *)v9 + 360)); *((_DWORD *)v9 + 80) = 0; *((_BYTE *)v9 + 324) = 0; *((_QWORD *)v9 + 41) = a5; *((_QWORD *)v9 + 42) = a5; *((_QWORD *)v9 + 43) = 0LL; *((_QWORD *)v9 + 44) = 0LL; } if ( (v12 & 1) != 0 ) { if ( a2 ) { v7 = strlen(a2); if ( v7 > 0xFF ) v7 = 255LL; memcpy((char *)v9 + 62, a2, v7); *((_BYTE *)v9 + v7 + 62) = 0; *((_DWORD *)v9 + 80) = v7; } else { *((_DWORD *)v9 + 80) = 0; } *((_BYTE *)v9 + 324) = 1; Host_errors::sum_connect_errors(a4); } else { *((_DWORD *)v9 + 80) = 0; *((_BYTE *)v9 + 324) = 0; Host_errors::clear_connect_errors(a4); } if ( (Host_errors::has_error(a4) & 1) != 0 ) Host_entry::set_error_timestamps(v9, a5); LOBYTE(v5) = (unsigned __int8)Host_errors::aggregate((Host_entry *)((char *)v9 + 360), a4); if ( (v8 & 1) != 0 ) LOBYTE(v5) = hash_filo::add(hostname_cache, v9); return v5; }
push_back: 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 RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] CALL 0x005a2500 AND AL,0x1 ADD RSP,0x20 POP RBP RET
/* List<KEY_FIELD>::push_back(KEY_FIELD*, st_mem_root*) */ byte __thiscall List<KEY_FIELD>::push_back(List<KEY_FIELD> *this,KEY_FIELD *param_1,st_mem_root *param_2) { byte bVar1; bVar1 = base_list::push_back((base_list *)this,param_1,param_2); return bVar1 & 1; }
3,855
ma_reset_history
eloqsql/storage/maria/ma_state.c
void _ma_reset_history(MARIA_SHARE *share) { MARIA_STATE_HISTORY *history, *next; DBUG_ENTER("_ma_reset_history"); share->state_history->trid= 0; /* Visibly by all */ share->state_history->state= share->state.state; history= share->state_history->next; share->state_history->next= 0; for (; history; history= next) { next= history->next; my_free(history); } DBUG_VOID_RETURN; }
O3
c
ma_reset_history: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq 0x450(%rdi), %rax xorl %ecx, %ecx movq %rcx, 0x8(%rax) movq 0x450(%rdi), %rax movq 0x48(%rdi), %rdx movq %rdx, 0x40(%rax) movups 0x18(%rdi), %xmm0 movups 0x28(%rdi), %xmm1 movups 0x38(%rdi), %xmm2 movups %xmm2, 0x30(%rax) movups %xmm1, 0x20(%rax) movups %xmm0, 0x10(%rax) movq 0x450(%rdi), %rax movq (%rax), %rdi movq %rcx, (%rax) testq %rdi, %rdi je 0x38657 movq (%rdi), %rbx callq 0x9fb2e movq %rbx, %rdi testq %rbx, %rbx jne 0x38647 addq $0x8, %rsp popq %rbx popq %rbp retq
_ma_reset_history: push rbp mov rbp, rsp push rbx push rax mov rax, [rdi+450h] xor ecx, ecx mov [rax+8], rcx mov rax, [rdi+450h] mov rdx, [rdi+48h] mov [rax+40h], rdx movups xmm0, xmmword ptr [rdi+18h] movups xmm1, xmmword ptr [rdi+28h] movups xmm2, xmmword ptr [rdi+38h] movups xmmword ptr [rax+30h], xmm2 movups xmmword ptr [rax+20h], xmm1 movups xmmword ptr [rax+10h], xmm0 mov rax, [rdi+450h] mov rdi, [rax] mov [rax], rcx test rdi, rdi jz short loc_38657 loc_38647: mov rbx, [rdi] call my_free mov rdi, rbx test rbx, rbx jnz short loc_38647 loc_38657: add rsp, 8 pop rbx pop rbp retn
_QWORD ** ma_reset_history(long long a1) { long long v1; // rax __int128 v2; // xmm0 __int128 v3; // xmm1 _QWORD **result; // rax _QWORD *v5; // rdi _QWORD *v6; // rbx *(_QWORD *)(*(_QWORD *)(a1 + 1104) + 8LL) = 0LL; v1 = *(_QWORD *)(a1 + 1104); *(_QWORD *)(v1 + 64) = *(_QWORD *)(a1 + 72); v2 = *(_OWORD *)(a1 + 24); v3 = *(_OWORD *)(a1 + 40); *(_OWORD *)(v1 + 48) = *(_OWORD *)(a1 + 56); *(_OWORD *)(v1 + 32) = v3; *(_OWORD *)(v1 + 16) = v2; result = *(_QWORD ***)(a1 + 1104); v5 = *result; *result = 0LL; if ( v5 ) { do { v6 = (_QWORD *)*v5; result = (_QWORD **)my_free(v5); v5 = v6; } while ( v6 ); } return result; }
_ma_reset_history: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RAX,qword ptr [RDI + 0x450] XOR ECX,ECX MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RDI + 0x450] MOV RDX,qword ptr [RDI + 0x48] MOV qword ptr [RAX + 0x40],RDX MOVUPS XMM0,xmmword ptr [RDI + 0x18] MOVUPS XMM1,xmmword ptr [RDI + 0x28] MOVUPS XMM2,xmmword ptr [RDI + 0x38] MOVUPS xmmword ptr [RAX + 0x30],XMM2 MOVUPS xmmword ptr [RAX + 0x20],XMM1 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV RAX,qword ptr [RDI + 0x450] MOV RDI,qword ptr [RAX] MOV qword ptr [RAX],RCX TEST RDI,RDI JZ 0x00138657 LAB_00138647: MOV RBX,qword ptr [RDI] CALL 0x0019fb2e MOV RDI,RBX TEST RBX,RBX JNZ 0x00138647 LAB_00138657: ADD RSP,0x8 POP RBX POP RBP RET
void _ma_reset_history(long param_1) { long lVar1; int8 *puVar2; int4 uVar3; int4 uVar4; int4 uVar5; int4 uVar6; int8 uVar7; int8 uVar8; int8 uVar9; *(int8 *)(*(long *)(param_1 + 0x450) + 8) = 0; lVar1 = *(long *)(param_1 + 0x450); *(int8 *)(lVar1 + 0x40) = *(int8 *)(param_1 + 0x48); uVar3 = *(int4 *)(param_1 + 0x18); uVar4 = *(int4 *)(param_1 + 0x1c); uVar5 = *(int4 *)(param_1 + 0x20); uVar6 = *(int4 *)(param_1 + 0x24); uVar7 = *(int8 *)(param_1 + 0x28); uVar8 = *(int8 *)(param_1 + 0x30); uVar9 = *(int8 *)(param_1 + 0x40); *(int8 *)(lVar1 + 0x30) = *(int8 *)(param_1 + 0x38); *(int8 *)(lVar1 + 0x38) = uVar9; *(int8 *)(lVar1 + 0x20) = uVar7; *(int8 *)(lVar1 + 0x28) = uVar8; *(int4 *)(lVar1 + 0x10) = uVar3; *(int4 *)(lVar1 + 0x14) = uVar4; *(int4 *)(lVar1 + 0x18) = uVar5; *(int4 *)(lVar1 + 0x1c) = uVar6; puVar2 = (int8 *)**(int8 **)(param_1 + 0x450); **(int8 **)(param_1 + 0x450) = 0; while (puVar2 != (int8 *)0x0) { puVar2 = (int8 *)*puVar2; my_free(); } return; }
3,856
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
giladroyz[P]FindPeaks/build_O2/_deps/googletest-src/googletest/src/gtest.cc
explicit PositiveAndNegativeUnitTestFilter(const std::string& filter) { std::vector<std::string> positive_and_negative_filters; // NOTE: `SplitString` always returns a non-empty container. SplitString(filter, '-', &positive_and_negative_filters); const auto& positive_filter = positive_and_negative_filters.front(); if (positive_and_negative_filters.size() > 1) { positive_filter_ = UnitTestFilter( positive_filter.empty() ? kUniversalFilter : positive_filter); // TODO(b/214626361): Fail on multiple '-' characters // For the moment to preserve old behavior we concatenate the rest of the // string parts with `-` as separator to generate the negative filter. auto negative_filter_string = positive_and_negative_filters[1]; for (std::size_t i = 2; i < positive_and_negative_filters.size(); i++) negative_filter_string = negative_filter_string + '-' + positive_and_negative_filters[i]; negative_filter_ = UnitTestFilter(negative_filter_string); } else { // In case we don't have a negative filter and positive filter is "" // we do not use kUniversalFilter by design as opposed to when we have a // negative filter. positive_filter_ = UnitTestFilter(positive_filter); } }
O2
cpp
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(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 subq $0xc8, %rsp movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) andq $0x0, 0x10(%rdi) leaq 0x48(%rdi), %rax movq %rax, 0x18(%rdi) pushq $0x1 popq %rax movq %rax, 0x20(%rdi) movups %xmm0, 0x28(%rdi) movl $0x3f800000, %ecx # imm = 0x3F800000 movl %ecx, 0x38(%rdi) leaq 0x50(%rdi), %rdx movq %rdx, 0x30(%rsp) leaq 0x98(%rdi), %rdx andq $0x0, 0x60(%rdi) movups %xmm0, 0x40(%rdi) movups %xmm0, 0x50(%rdi) movq %rdx, 0x68(%rdi) movq %rax, 0x70(%rdi) movups %xmm0, 0x78(%rdi) movl %ecx, 0x88(%rdi) movups %xmm0, 0x90(%rdi) leaq 0x10(%rsp), %rdx movaps %xmm0, (%rdx) andq $0x0, 0x10(%rdx) leaq 0x39a12(%rip), %rdi # 0x4e6c8 pushq $0x2d popq %rsi callq 0x10b2a movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rax subq %rsi, %rax cmpq $0x21, %rax jb 0x14ceb movq 0x8(%rsi), %r12 testq %r12, %r12 movq %rbx, 0x8(%rsp) je 0x14d12 leaq 0x38(%rsp), %rdi callq 0x87a0 jmp 0x14d28 leaq 0x58(%rsp), %rdi callq 0x149da leaq 0x58(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x22dfa movq %r14, %rdi callq 0x14bc4 jmp 0x14e15 leaq 0x1d14b(%rip), %rsi # 0x31e64 leaq 0x38(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x81f0 leaq 0x58(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x149da leaq 0x58(%rsp), %r15 movq %rbx, %rdi movq %r15, %rsi callq 0x22dfa movq %r15, %rdi callq 0x14bc4 leaq 0x38(%rsp), %rdi callq 0x8ad8 testq %r12, %r12 movq 0x10(%rsp), %rsi addq $0x20, %rsi leaq 0x38(%rsp), %rdi callq 0x87a0 pushq $0x2 popq %r14 pushq $0x40 popq %rbx leaq 0xa8(%rsp), %r15 leaq 0x38(%rsp), %r12 pushq $0x2d popq %rbp leaq 0x58(%rsp), %r13 movq 0x18(%rsp), %rax subq 0x10(%rsp), %rax sarq $0x5, %rax cmpq %rax, %r14 jae 0x14de2 movq %r15, %rdi movq %r12, %rsi movl %ebp, %edx callq 0x2498c movq 0x10(%rsp), %rdx addq %rbx, %rdx movq %r13, %rdi movq %r15, %rsi callq 0x2496d movq %r12, %rdi movq %r13, %rsi callq 0x8670 movq %r13, %rdi callq 0x8ad8 movq %r15, %rdi callq 0x8ad8 incq %r14 addq $0x20, %rbx jmp 0x14d8b leaq 0x58(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x149da leaq 0x58(%rsp), %rbx movq 0x30(%rsp), %rdi movq %rbx, %rsi callq 0x22dfa movq %rbx, %rdi callq 0x14bc4 leaq 0x38(%rsp), %rdi callq 0x8ad8 leaq 0x10(%rsp), %rdi callq 0x246f8 addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x14e6a jmp 0x14e53 movq %rax, %r15 leaq 0x38(%rsp), %rdi callq 0x8ad8 jmp 0x14e47 movq %rax, %r15 testq %r12, %r12 jmp 0x14e77 jmp 0x14e4e movq %rbx, 0x8(%rsp) movq %rax, %r15 jmp 0x14e77 movq %rax, %r15 leaq 0xa8(%rsp), %rdi callq 0x8ad8 jmp 0x14e6d movq %rax, %r15 leaq 0x38(%rsp), %rdi callq 0x8ad8 leaq 0x10(%rsp), %rdi callq 0x246f8 movq 0x30(%rsp), %rdi callq 0x14bc4 movq 0x8(%rsp), %rdi callq 0x14bc4 movq %r15, %rdi callq 0x89a0 nop
_ZN7testing8internal12_GLOBAL__N_133PositiveAndNegativeUnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 and qword ptr [rdi+10h], 0 lea rax, [rdi+48h] mov [rdi+18h], rax push 1 pop rax mov [rdi+20h], rax movups xmmword ptr [rdi+28h], xmm0 mov ecx, 3F800000h mov [rdi+38h], ecx lea rdx, [rdi+50h] mov [rsp+0F8h+var_C8], rdx lea rdx, [rdi+98h] and qword ptr [rdi+60h], 0 movups xmmword ptr [rdi+40h], xmm0 movups xmmword ptr [rdi+50h], xmm0 mov [rdi+68h], rdx mov [rdi+70h], rax movups xmmword ptr [rdi+78h], xmm0 mov [rdi+88h], ecx movups xmmword ptr [rdi+90h], xmm0 lea rdx, [rsp+0F8h+var_E8] movaps xmmword ptr [rdx], xmm0 and qword ptr [rdx+10h], 0 lea rdi, _ZN7testing18FLAGS_gtest_filterB5cxx11E; testing::FLAGS_gtest_filter push 2Dh ; '-' pop rsi call _ZN7testing8internal11SplitStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcPSt6vectorIS6_SaIS6_EE; testing::internal::SplitString(std::string const&,char,std::vector<std::string> *) mov rsi, [rsp+0F8h+var_E8] mov rax, [rsp+0F8h+var_E0] sub rax, rsi cmp rax, 21h ; '!' jb short loc_14CEB mov r12, [rsi+8] test r12, r12 mov [rsp+0F8h+var_F0], rbx jz short loc_14D12 lea rdi, [rsp+0F8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) jmp short loc_14D28 loc_14CEB: lea rdi, [rsp+0F8h+var_A0] call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&) lea r14, [rsp+0F8h+var_A0] mov rdi, rbx mov rsi, r14 call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilteraSEOS2_; testing::internal::`anonymous namespace'::UnitTestFilter::operator=(testing::internal::`anonymous namespace'::UnitTestFilter&&) mov rdi, r14; this call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter() jmp loc_14E15 loc_14D12: lea rsi, _ZN7testingL16kUniversalFilterE; "*" lea rdi, [rsp+0F8h+var_C0] lea rdx, [rsp+0F8h+var_F1] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&) loc_14D28: lea rdi, [rsp+0F8h+var_A0] lea rsi, [rsp+0F8h+var_C0] call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&) lea r15, [rsp+0F8h+var_A0] mov rdi, rbx mov rsi, r15 call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilteraSEOS2_; testing::internal::`anonymous namespace'::UnitTestFilter::operator=(testing::internal::`anonymous namespace'::UnitTestFilter&&) mov rdi, r15; this call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter() lea rdi, [rsp+0F8h+var_C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test r12, r12 mov rsi, [rsp+0F8h+var_E8] add rsi, 20h ; ' ' lea rdi, [rsp+0F8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) push 2 pop r14 push 40h ; '@' pop rbx lea r15, [rsp+0F8h+var_50] lea r12, [rsp+0F8h+var_C0] push 2Dh ; '-' pop rbp lea r13, [rsp+0F8h+var_A0] loc_14D8B: mov rax, [rsp+0F8h+var_E0] sub rax, [rsp+0F8h+var_E8] sar rax, 5 cmp r14, rax jnb short loc_14DE2 mov rdi, r15 mov rsi, r12 mov edx, ebp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_; std::operator+<char>(std::string const&,char) mov rdx, [rsp+0F8h+var_E8] add rdx, rbx mov rdi, r13 mov rsi, r15 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&) mov rdi, r12 mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, r13; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() inc r14 add rbx, 20h ; ' ' jmp short loc_14D8B loc_14DE2: lea rdi, [rsp+0F8h+var_A0] lea rsi, [rsp+0F8h+var_C0] call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&) lea rbx, [rsp+0F8h+var_A0] mov rdi, [rsp+0F8h+var_C8] mov rsi, rbx call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilteraSEOS2_; testing::internal::`anonymous namespace'::UnitTestFilter::operator=(testing::internal::`anonymous namespace'::UnitTestFilter&&) mov rdi, rbx; this call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter() lea rdi, [rsp+0F8h+var_C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_14E15: lea rdi, [rsp+0F8h+var_E8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_14E6A jmp short loc_14E53 mov r15, rax lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_14E47 mov r15, rax loc_14E47: test r12, r12 jmp short loc_14E77 jmp short $+2 loc_14E4E: mov [rsp+arg_0], rbx loc_14E53: mov r15, rax jmp short loc_14E77 mov r15, rax lea rdi, [rsp+arg_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_14E6D loc_14E6A: mov r15, rax loc_14E6D: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_14E77: lea rdi, [rsp+arg_8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rsp+arg_28]; this call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter() mov rdi, [rsp+arg_0]; this call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter() mov rdi, r15 call __Unwind_Resume
void testing::internal::`anonymous namespace'::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter( long long a1) { long long v1; // r12 unsigned long long v2; // r14 long long v3; // rbx char v4; // [rsp+7h] [rbp-F1h] BYREF long long v5; // [rsp+8h] [rbp-F0h] __int128 v6; // [rsp+10h] [rbp-E8h] BYREF long long v7; // [rsp+20h] [rbp-D8h] long long v8; // [rsp+30h] [rbp-C8h] _BYTE v9[32]; // [rsp+38h] [rbp-C0h] BYREF _BYTE v10[80]; // [rsp+58h] [rbp-A0h] BYREF _BYTE v11[80]; // [rsp+A8h] [rbp-50h] BYREF *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 16) = 0LL; *(_QWORD *)(a1 + 24) = a1 + 72; *(_QWORD *)(a1 + 32) = 1LL; *(_OWORD *)(a1 + 40) = 0LL; *(_DWORD *)(a1 + 56) = 1065353216; v8 = a1 + 80; *(_QWORD *)(a1 + 96) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; *(_OWORD *)(a1 + 80) = 0LL; *(_QWORD *)(a1 + 104) = a1 + 152; *(_QWORD *)(a1 + 112) = 1LL; *(_OWORD *)(a1 + 120) = 0LL; *(_DWORD *)(a1 + 136) = 1065353216; *(_OWORD *)(a1 + 144) = 0LL; v6 = 0LL; v7 = 0LL; testing::internal::SplitString((long long)&testing::FLAGS_gtest_filter[abi:cxx11], 45, &v6); if ( *((_QWORD *)&v6 + 1) - (_QWORD)v6 < 0x21uLL ) { testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)v10, v6); testing::internal::`anonymous namespace'::UnitTestFilter::operator=(a1, v10); testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter((testing::internal::_anonymous_namespace_::UnitTestFilter *)v10); } else { v1 = *(_QWORD *)(v6 + 8); v5 = a1; if ( v1 ) std::string::basic_string(v9, v6); else std::string::basic_string(v9, "*", &v4); testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)v10, (long long)v9); testing::internal::`anonymous namespace'::UnitTestFilter::operator=(a1, v10); testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter((testing::internal::_anonymous_namespace_::UnitTestFilter *)v10); std::string::~string(v9); std::string::basic_string(v9, v6 + 32); v2 = 2LL; v3 = 64LL; while ( v2 < (long long)(*((_QWORD *)&v6 + 1) - v6) >> 5 ) { std::operator+<char>(v11, v9, 45LL); std::operator+<char>(v10, v11, v3 + v6); std::string::operator=(v9, v10); std::string::~string(v10); std::string::~string(v11); ++v2; v3 += 32LL; } testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)v10, (long long)v9); testing::internal::`anonymous namespace'::UnitTestFilter::operator=(v8, v10); testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter((testing::internal::_anonymous_namespace_::UnitTestFilter *)v10); std::string::~string(v9); } std::vector<std::string>::~vector(&v6); }
PositiveAndNegativeUnitTestFilter: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 AND qword ptr [RDI + 0x10],0x0 LEA RAX,[RDI + 0x48] MOV qword ptr [RDI + 0x18],RAX PUSH 0x1 POP RAX MOV qword ptr [RDI + 0x20],RAX MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOV ECX,0x3f800000 MOV dword ptr [RDI + 0x38],ECX LEA RDX,[RDI + 0x50] MOV qword ptr [RSP + 0x30],RDX LEA RDX,[RDI + 0x98] AND qword ptr [RDI + 0x60],0x0 MOVUPS xmmword ptr [RDI + 0x40],XMM0 MOVUPS xmmword ptr [RDI + 0x50],XMM0 MOV qword ptr [RDI + 0x68],RDX MOV qword ptr [RDI + 0x70],RAX MOVUPS xmmword ptr [RDI + 0x78],XMM0 MOV dword ptr [RDI + 0x88],ECX MOVUPS xmmword ptr [RDI + 0x90],XMM0 LEA RDX,[RSP + 0x10] MOVAPS xmmword ptr [RDX],XMM0 AND qword ptr [RDX + 0x10],0x0 LAB_00114caf: LEA RDI,[0x14e6c8] PUSH 0x2d POP RSI CALL 0x00110b2a MOV RSI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x18] SUB RAX,RSI CMP RAX,0x21 JC 0x00114ceb MOV R12,qword ptr [RSI + 0x8] TEST R12,R12 MOV qword ptr [RSP + 0x8],RBX JZ 0x00114d12 LAB_00114cdf: LEA RDI,[RSP + 0x38] CALL 0x001087a0 JMP 0x00114d28 LAB_00114ceb: LEA RDI,[RSP + 0x58] CALL 0x001149da LEA R14,[RSP + 0x58] MOV RDI,RBX MOV RSI,R14 CALL 0x00122dfa MOV RDI,R14 CALL 0x00114bc4 JMP 0x00114e15 LAB_00114d12: LEA RSI,[0x131e64] LEA RDI,[RSP + 0x38] LEA RDX,[RSP + 0x7] CALL 0x001081f0 LAB_00114d28: LEA RDI,[RSP + 0x58] LEA RSI,[RSP + 0x38] CALL 0x001149da LEA R15,[RSP + 0x58] MOV RDI,RBX MOV RSI,R15 CALL 0x00122dfa MOV RDI,R15 CALL 0x00114bc4 LEA RDI,[RSP + 0x38] CALL 0x00108ad8 TEST R12,R12 MOV RSI,qword ptr [RSP + 0x10] ADD RSI,0x20 LAB_00114d65: LEA RDI,[RSP + 0x38] CALL 0x001087a0 PUSH 0x2 POP R14 PUSH 0x40 POP RBX LEA R15,[RSP + 0xa8] LEA R12,[RSP + 0x38] PUSH 0x2d POP RBP LEA R13,[RSP + 0x58] LAB_00114d8b: MOV RAX,qword ptr [RSP + 0x18] SUB RAX,qword ptr [RSP + 0x10] SAR RAX,0x5 CMP R14,RAX JNC 0x00114de2 LAB_00114d9e: MOV RDI,R15 MOV RSI,R12 MOV EDX,EBP CALL 0x0012498c MOV RDX,qword ptr [RSP + 0x10] ADD RDX,RBX LAB_00114db3: MOV RDI,R13 MOV RSI,R15 CALL 0x0012496d MOV RDI,R12 MOV RSI,R13 CALL 0x00108670 MOV RDI,R13 CALL 0x00108ad8 MOV RDI,R15 CALL 0x00108ad8 INC R14 ADD RBX,0x20 JMP 0x00114d8b LAB_00114de2: LEA RDI,[RSP + 0x58] LEA RSI,[RSP + 0x38] CALL 0x001149da LAB_00114df1: LEA RBX,[RSP + 0x58] MOV RDI,qword ptr [RSP + 0x30] MOV RSI,RBX CALL 0x00122dfa MOV RDI,RBX CALL 0x00114bc4 LEA RDI,[RSP + 0x38] CALL 0x00108ad8 LAB_00114e15: LEA RDI,[RSP + 0x10] CALL 0x001246f8 ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(std::__cxx11::string const&) */ void __thiscall testing::internal::(anonymous_namespace)::PositiveAndNegativeUnitTestFilter:: PositiveAndNegativeUnitTestFilter(PositiveAndNegativeUnitTestFilter *this,string *param_1) { ulong uVar1; allocator local_f1; PositiveAndNegativeUnitTestFilter *local_f0; string *local_e8; long lStack_e0; int8 local_d8; PositiveAndNegativeUnitTestFilter *local_c8; string local_c0 [32]; UnitTestFilter local_a0 [80]; string local_50 [32]; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(PositiveAndNegativeUnitTestFilter **)(this + 0x18) = this + 0x48; *(int8 *)(this + 0x20) = 1; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int4 *)(this + 0x38) = 0x3f800000; local_c8 = this + 0x50; *(int8 *)(this + 0x60) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(PositiveAndNegativeUnitTestFilter **)(this + 0x68) = this + 0x98; *(int8 *)(this + 0x70) = 1; *(int8 *)(this + 0x78) = 0; *(int8 *)(this + 0x80) = 0; *(int4 *)(this + 0x88) = 0x3f800000; *(int8 *)(this + 0x90) = 0; *(int8 *)(this + 0x98) = 0; local_e8 = (string *)0x0; lStack_e0 = 0; local_d8 = 0; /* try { // try from 00114caf to 00114cbd has its CatchHandler @ 00114e4e */ SplitString((string *)FLAGS_gtest_filter_abi_cxx11_,'-',(vector *)&local_e8); if ((ulong)(lStack_e0 - (long)local_e8) < 0x21) { /* try { // try from 00114ceb to 00114cf4 has its CatchHandler @ 00114e4c */ UnitTestFilter::UnitTestFilter(local_a0,local_e8); UnitTestFilter::operator=((UnitTestFilter *)this,local_a0); UnitTestFilter::~UnitTestFilter(local_a0); } else { local_f0 = this; if (*(long *)(local_e8 + 8) == 0) { /* try { // try from 00114d12 to 00114d27 has its CatchHandler @ 00114e44 */ std::__cxx11::string::string(local_c0,"*",&local_f1); } else { /* try { // try from 00114cdf to 00114ce8 has its CatchHandler @ 00114e44 */ std::__cxx11::string::string(local_c0,local_e8); } /* try { // try from 00114d28 to 00114d36 has its CatchHandler @ 00114e35 */ UnitTestFilter::UnitTestFilter(local_a0,local_c0); UnitTestFilter::operator=((UnitTestFilter *)this,local_a0); UnitTestFilter::~UnitTestFilter(local_a0); std::__cxx11::string::~string(local_c0); /* try { // try from 00114d65 to 00114d6e has its CatchHandler @ 00114e33 */ std::__cxx11::string::string(local_c0,local_e8 + 0x20); for (uVar1 = 2; uVar1 < (ulong)(lStack_e0 - (long)local_e8 >> 5); uVar1 = uVar1 + 1) { /* try { // try from 00114d9e to 00114daa has its CatchHandler @ 00114e6a */ std::operator+(local_50,(char)local_c0); /* try { // try from 00114db3 to 00114dbd has its CatchHandler @ 00114e58 */ std::operator+((string *)local_a0,local_50); std::__cxx11::string::operator=(local_c0,(string *)local_a0); std::__cxx11::string::~string((string *)local_a0); std::__cxx11::string::~string(local_50); } /* try { // try from 00114de2 to 00114df0 has its CatchHandler @ 00114e31 */ UnitTestFilter::UnitTestFilter(local_a0,local_c0); UnitTestFilter::operator=((UnitTestFilter *)local_c8,local_a0); UnitTestFilter::~UnitTestFilter(local_a0); std::__cxx11::string::~string(local_c0); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_e8); return; }
3,857
tokenize_input_prompts(llama_vocab 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&, bool, bool)
llama.cpp/examples/server/utils.hpp
static std::vector<llama_tokens> tokenize_input_prompts(const llama_vocab * vocab, const json & json_prompt, bool add_special, bool parse_special) { std::vector<llama_tokens> result; if (json_prompt.is_string() || json_is_array_of_mixed_numbers_strings(json_prompt)) { // string or mixed result.push_back(tokenize_mixed(vocab, json_prompt, add_special, parse_special)); } else if (json_is_array_of_numbers(json_prompt)) { // array of tokens result.push_back(json_prompt.get<llama_tokens>()); } else if (json_prompt.is_array()) { // array of prompts result.reserve(json_prompt.size()); for (const auto & p : json_prompt) { if (p.is_string() || json_is_array_of_mixed_numbers_strings(p)) { result.push_back(tokenize_mixed(vocab, p, add_special, parse_special)); } else if (json_is_array_of_numbers(p)) { // array of tokens result.push_back(p.get<llama_tokens>()); } else { throw std::runtime_error("element of \"prompt\" must be a string, an list of tokens, or a list of mixed strings & tokens"); } } } else { throw std::runtime_error("\"prompt\" must be a string, an list of tokens, a list of mixed strings & tokens, or a list of prompts"); } if (result.empty()) { throw std::runtime_error("\"prompt\" must not be empty"); } return result; }
O3
cpp
tokenize_input_prompts(llama_vocab 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&, bool, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %ecx, %ebp movq %rdx, %r13 movq %rsi, %r14 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) cmpb $0x3, (%rdx) je 0x378ca movq %r13, %rdi callq 0x37deb testb %al, %al je 0x3791f movzbl %bpl, %ecx movq %rsp, %rdi movq %r14, %rsi movq %r13, %rdx movl $0x1, %r8d callq 0x37eba movq %rsp, %rsi movq %rbx, %rdi callq 0x8dda2 movq (%rsp), %rdi testq %rdi, %rdi je 0x37903 movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x251b0 movq (%rbx), %rax cmpq 0x8(%rbx), %rax je 0x37a40 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r13, %rdi callq 0x38191 testb %al, %al je 0x37943 movq %rsp, %rdi movq %r13, %rsi callq 0x8e28e movq %rsp, %rsi movq %rbx, %rdi callq 0x8dda2 jmp 0x378ed cmpb $0x2, (%r13) jne 0x37aa4 movq %r13, %rdi callq 0x65620 movq %rbx, %rdi movq %rax, %rsi callq 0x8dcc4 movq %rsp, %r15 movq %r13, (%r15) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r15) movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000 movq %r12, 0x18(%r15) movq %r15, %rdi callq 0x80fd0 leaq 0x38(%rsp), %rdi movq %r13, (%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) movq %r12, 0x18(%rdi) callq 0x81042 movzbl %bpl, %ebp leaq 0x20(%rsp), %r13 movq %r15, %rdi leaq 0x38(%rsp), %rsi callq 0x810a8 testb %al, %al jne 0x37903 movq %r15, %rdi callq 0x7db04 movq %rax, %r12 cmpb $0x3, (%rax) je 0x379d7 movq %r12, %rdi callq 0x37deb testb %al, %al je 0x379fa movq %r13, %rdi movq %r14, %rsi movq %r12, %rdx movl %ebp, %ecx movl $0x1, %r8d callq 0x37eba movq %rbx, %rdi movq %r13, %rsi callq 0x8dda2 jmp 0x37a1c movq %r12, %rdi callq 0x38191 testb %al, %al je 0x37a72 movq %r13, %rdi movq %r12, %rsi callq 0x8e28e movq %rbx, %rdi movq %r13, %rsi callq 0x8dda2 movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0x37a33 movq 0x30(%rsp), %rsi subq %rdi, %rsi callq 0x251b0 movq %r15, %rdi callq 0x7de8a jmp 0x379a6 movl $0x10, %edi callq 0x25790 movq %rax, %r15 leaq 0x13eced(%rip), %rsi # 0x176741 movq %rax, %rdi callq 0x254f0 movq 0x1a5555(%rip), %rsi # 0x1dcfb8 movq 0x1a5506(%rip), %rdx # 0x1dcf70 movq %r15, %rdi callq 0x25c00 movl $0x10, %edi callq 0x25790 movq %rax, %r15 leaq 0x13ebf9(%rip), %rsi # 0x17667f movq %rax, %rdi callq 0x254f0 movq 0x1a5523(%rip), %rsi # 0x1dcfb8 movq 0x1a54d4(%rip), %rdx # 0x1dcf70 movq %r15, %rdi callq 0x25c00 movl $0x10, %edi callq 0x25790 movq %rax, %r15 leaq 0x13ec24(%rip), %rsi # 0x1766dc movq %rax, %rdi callq 0x254f0 jmp 0x37a5c jmp 0x37acc jmp 0x37ad9 jmp 0x37b14 jmp 0x37b14 jmp 0x37acc movq %rax, %r14 movq %r15, %rdi callq 0x26150 jmp 0x37b17 movq %rax, %r14 movq (%rsp), %rdi testq %rdi, %rdi je 0x37b17 movq 0x10(%rsp), %rsi jmp 0x37b06 jmp 0x37b14 jmp 0x37af4 jmp 0x37b14 jmp 0x37b14 movq %rax, %r14 movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0x37b17 movq 0x30(%rsp), %rsi subq %rdi, %rsi callq 0x251b0 jmp 0x37b17 jmp 0x37b14 jmp 0x37b14 movq %rax, %r14 movq %rbx, %rdi callq 0x8d508 movq %r14, %rdi callq 0x25ca0
_ZL22tokenize_input_promptsPK11llama_vocabRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEbb: push rbp; __int64 push r15; int push r14; int push r13; int push r12; __int64 push rbx; int sub rsp, 58h mov ebp, ecx mov r13, rdx mov r14, rsi mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 cmp byte ptr [rdx], 3 jz short loc_378CA mov rdi, r13 call _ZL38json_is_array_of_mixed_numbers_stringsRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEE; json_is_array_of_mixed_numbers_strings(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) test al, al jz short loc_3791F loc_378CA: movzx ecx, bpl; int mov rdi, rsp; int mov rsi, r14; int mov rdx, r13; int mov r8d, 1; int call _ZL14tokenize_mixedPK11llama_vocabRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEbb; tokenize_mixed(llama_vocab const*,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,bool) mov rsi, rsp mov rdi, rbx call _ZNSt6vectorIS_IiSaIiEESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<std::vector<int>>::emplace_back<std::vector<int>>(std::vector<int> &&) loc_378ED: mov rdi, [rsp+88h+var_88]; void * test rdi, rdi jz short loc_37903 mov rsi, [rsp+88h+var_78] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_37903: mov rax, [rbx] cmp rax, [rbx+8] jz loc_37A40 add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3791F: mov rdi, r13 call _ZL24json_is_array_of_numbersRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEE; json_is_array_of_numbers(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) test al, al jz short loc_37943 mov rdi, rsp mov rsi, r13 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS3_IiSaIiEETnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SI_EE5valueEiE4typeELi0EEESI_NS0_6detail12priority_tagILj0EEE mov rsi, rsp mov rdi, rbx call _ZNSt6vectorIS_IiSaIiEESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<std::vector<int>>::emplace_back<std::vector<int>>(std::vector<int> &&) jmp short loc_378ED loc_37943: cmp byte ptr [r13+0], 2 jnz loc_37AA4 mov rdi, r13 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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, rbx mov rsi, rax call _ZNSt6vectorIS_IiSaIiEESaIS1_EE7reserveEm; std::vector<std::vector<int>>::reserve(ulong) mov r15, rsp mov [r15], r13 xorps xmm0, xmm0 movups xmmword ptr [r15+8], xmm0 mov r12, 8000000000000000h mov [r15+18h], r12 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_begin(void) lea rdi, [rsp+88h+var_50] mov [rdi], r13 xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 mov [rdi+18h], r12 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_end(void) movzx ebp, bpl lea r13, [rsp+88h+var_68] loc_379A6: mov rdi, r15 lea rsi, [rsp+88h+var_50] call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jnz loc_37903 mov rdi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov r12, rax cmp byte ptr [rax], 3 jz short loc_379D7 mov rdi, r12 call _ZL38json_is_array_of_mixed_numbers_stringsRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEE; json_is_array_of_mixed_numbers_strings(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) test al, al jz short loc_379FA loc_379D7: mov rdi, r13; int mov rsi, r14; int mov rdx, r12; int mov ecx, ebp; int mov r8d, 1; int call _ZL14tokenize_mixedPK11llama_vocabRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEbb; tokenize_mixed(llama_vocab const*,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,bool) mov rdi, rbx mov rsi, r13 call _ZNSt6vectorIS_IiSaIiEESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<std::vector<int>>::emplace_back<std::vector<int>>(std::vector<int> &&) jmp short loc_37A1C loc_379FA: mov rdi, r12 call _ZL24json_is_array_of_numbersRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEE; json_is_array_of_numbers(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) test al, al jz short loc_37A72 mov rdi, r13 mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS3_IiSaIiEETnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SI_EE5valueEiE4typeELi0EEESI_NS0_6detail12priority_tagILj0EEE mov rdi, rbx mov rsi, r13 call _ZNSt6vectorIS_IiSaIiEESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<std::vector<int>>::emplace_back<std::vector<int>>(std::vector<int> &&) loc_37A1C: mov rdi, [rsp+88h+var_68]; void * test rdi, rdi jz short loc_37A33 mov rsi, [rsp+88h+var_58] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_37A33: mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void) jmp loc_379A6 loc_37A40: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aPromptMustNotB; "\"prompt\" must not be empty" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_37A5C: mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw loc_37A72: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aElementOfPromp; "element of \"prompt\" must be a string,"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw loc_37AA4: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aPromptMustBeAS; "\"prompt\" must be a string, an list of"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_37A5C jmp short loc_37ACC jmp short loc_37AD9 jmp short loc_37B14 jmp short loc_37B14 jmp short $+2 loc_37ACC: mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_37B17 loc_37AD9: mov r14, rax mov rdi, [rsp+0] test rdi, rdi jz short loc_37B17 mov rsi, [rsp+arg_8] jmp short loc_37B06 jmp short loc_37B14 jmp short loc_37AF4 jmp short loc_37B14 jmp short loc_37B14 loc_37AF4: mov r14, rax mov rdi, [rsp+arg_18]; void * test rdi, rdi jz short loc_37B17 mov rsi, [rsp+arg_28] loc_37B06: sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_37B17 jmp short loc_37B14 jmp short $+2 loc_37B14: mov r14, rax loc_37B17: mov rdi, rbx call _ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev; std::vector<std::vector<int>>::~vector() mov rdi, r14 call __Unwind_Resume
long long tokenize_input_prompts(long long *a1, int a2, _BYTE *a3, unsigned __int8 a4, long long a5, int a6) { long long result; // rax long long v9; // rax _BYTE *v10; // rax int v11; // r9d _BYTE *v12; // r12 std::runtime_error *exception; // r15 std::runtime_error *v14; // r15 void *v15; // [rsp+0h] [rbp-88h] BYREF __int128 v16; // [rsp+8h] [rbp-80h] unsigned long long v17; // [rsp+18h] [rbp-70h] void *v18; // [rsp+20h] [rbp-68h] BYREF int v19; // [rsp+28h] [rbp-60h] long long v20; // [rsp+30h] [rbp-58h] _BYTE *v21; // [rsp+38h] [rbp-50h] BYREF __int128 v22; // [rsp+40h] [rbp-48h] void *v23; // [rsp+50h] [rbp-38h] int v24; // [rsp+58h] [rbp-30h] long long v25; // [rsp+60h] [rbp-28h] int v26; // [rsp+68h] [rbp-20h] int v27; // [rsp+70h] [rbp-18h] int v28; // [rsp+78h] [rbp-10h] long long v29; // [rsp+80h] [rbp-8h] *(_OWORD *)a1 = 0LL; a1[2] = 0LL; if ( *a3 == 3 || (unsigned __int8)json_is_array_of_mixed_numbers_strings(a3) ) { tokenize_mixed( (int)&v15, a2, (int)a3, a4, 1, a6, (int)v15, v16, SDWORD2(v16), v17, (int)v18, v19, v20, (int)v21, v22, SDWORD2(v22), v23, v24, v25, v26, v27, v28, v29); std::vector<std::vector<int>>::emplace_back<std::vector<int>>(a1, &v15); goto LABEL_4; } if ( (unsigned __int8)json_is_array_of_numbers(a3) ) { ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS3_IiSaIiEETnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SI_EE5valueEiE4typeELi0EEESI_NS0_6detail12priority_tagILj0EEE( &v15, a3); std::vector<std::vector<int>>::emplace_back<std::vector<int>>(a1, &v15); LABEL_4: if ( v15 ) operator delete(v15, *((_QWORD *)&v16 + 1) - (_QWORD)v15); goto LABEL_6; } if ( *a3 != 2 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error( exception, "\"prompt\" must be a string, an list of tokens, a list of mixed strings & tokens, or a list of prompts"); LABEL_22: __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } 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>::size(a3); std::vector<std::vector<int>>::reserve(a1, v9); v15 = a3; v16 = 0LL; v17 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_begin(&v15); v21 = a3; v22 = 0LL; v23 = (void *)0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_end(&v21); while ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v15, &v21) ) { v10 = (_BYTE *)nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v15); v12 = v10; if ( *v10 == 3 || (unsigned __int8)json_is_array_of_mixed_numbers_strings(v10) ) { tokenize_mixed( (int)&v18, a2, (int)v12, a4, 1, v11, (int)v15, v16, SDWORD2(v16), v17, (int)v18, v19, v20, (int)v21, v22, SDWORD2(v22), v23, v24, v25, v26, v27, v28, v29); std::vector<std::vector<int>>::emplace_back<std::vector<int>>(a1, &v18); } else { if ( !(unsigned __int8)json_is_array_of_numbers(v12) ) { v14 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error( v14, "element of \"prompt\" must be a string, an list of tokens, or a list of mixed strings & tokens"); __cxa_throw( v14, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS3_IiSaIiEETnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SI_EE5valueEiE4typeELi0EEESI_NS0_6detail12priority_tagILj0EEE( &v18, v12); std::vector<std::vector<int>>::emplace_back<std::vector<int>>(a1, &v18); } if ( v18 ) operator delete(v18, v20 - (_QWORD)v18); nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(&v15); } LABEL_6: result = *a1; if ( *a1 == a1[1] ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "\"prompt\" must not be empty"); goto LABEL_22; } return result; }
tokenize_input_prompts: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV EBP,ECX MOV R13,RDX MOV R14,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 CMP byte ptr [RDX],0x3 JZ 0x001378ca LAB_001378be: MOV RDI,R13 CALL 0x00137deb TEST AL,AL JZ 0x0013791f LAB_001378ca: MOVZX ECX,BPL MOV RDI,RSP MOV RSI,R14 MOV RDX,R13 MOV R8D,0x1 CALL 0x00137eba LAB_001378e2: MOV RSI,RSP MOV RDI,RBX CALL 0x0018dda2 LAB_001378ed: MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x00137903 MOV RSI,qword ptr [RSP + 0x10] SUB RSI,RDI CALL 0x001251b0 LAB_00137903: MOV RAX,qword ptr [RBX] CMP RAX,qword ptr [RBX + 0x8] JZ 0x00137a40 ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013791f: MOV RDI,R13 CALL 0x00138191 TEST AL,AL JZ 0x00137943 LAB_0013792b: MOV RDI,RSP MOV RSI,R13 CALL 0x0018e28e LAB_00137936: MOV RSI,RSP MOV RDI,RBX CALL 0x0018dda2 JMP 0x001378ed LAB_00137943: CMP byte ptr [R13],0x2 JNZ 0x00137aa4 MOV RDI,R13 CALL 0x00165620 LAB_00137956: MOV RDI,RBX MOV RSI,RAX CALL 0x0018dcc4 MOV R15,RSP MOV qword ptr [R15],R13 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + 0x8],XMM0 MOV R12,-0x8000000000000000 MOV qword ptr [R15 + 0x18],R12 MOV RDI,R15 CALL 0x00180fd0 LEA RDI,[RSP + 0x38] MOV qword ptr [RDI],R13 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 MOV qword ptr [RDI + 0x18],R12 CALL 0x00181042 MOVZX EBP,BPL LEA R13,[RSP + 0x20] LAB_001379a6: MOV RDI,R15 LEA RSI,[RSP + 0x38] CALL 0x001810a8 TEST AL,AL JNZ 0x00137903 LAB_001379bb: MOV RDI,R15 CALL 0x0017db04 MOV R12,RAX CMP byte ptr [RAX],0x3 JZ 0x001379d7 MOV RDI,R12 CALL 0x00137deb TEST AL,AL JZ 0x001379fa LAB_001379d7: MOV RDI,R13 MOV RSI,R14 MOV RDX,R12 MOV ECX,EBP MOV R8D,0x1 CALL 0x00137eba LAB_001379ed: MOV RDI,RBX MOV RSI,R13 CALL 0x0018dda2 JMP 0x00137a1c LAB_001379fa: MOV RDI,R12 CALL 0x00138191 TEST AL,AL JZ 0x00137a72 LAB_00137a06: MOV RDI,R13 MOV RSI,R12 CALL 0x0018e28e LAB_00137a11: MOV RDI,RBX MOV RSI,R13 CALL 0x0018dda2 LAB_00137a1c: MOV RDI,qword ptr [RSP + 0x20] TEST RDI,RDI JZ 0x00137a33 MOV RSI,qword ptr [RSP + 0x30] SUB RSI,RDI CALL 0x001251b0 LAB_00137a33: MOV RDI,R15 CALL 0x0017de8a LAB_00137a3b: JMP 0x001379a6 LAB_00137a40: MOV EDI,0x10 CALL 0x00125790 MOV R15,RAX LAB_00137a4d: LEA RSI,[0x276741] MOV RDI,RAX CALL 0x001254f0 LAB_00137a5c: MOV RSI,qword ptr [0x002dcfb8] MOV RDX,qword ptr [0x002dcf70] MOV RDI,R15 CALL 0x00125c00 LAB_00137a72: MOV EDI,0x10 CALL 0x00125790 MOV R15,RAX LAB_00137a7f: LEA RSI,[0x27667f] MOV RDI,RAX CALL 0x001254f0 LAB_00137a8e: MOV RSI,qword ptr [0x002dcfb8] MOV RDX,qword ptr [0x002dcf70] MOV RDI,R15 CALL 0x00125c00 LAB_00137aa4: MOV EDI,0x10 CALL 0x00125790 MOV R15,RAX LAB_00137ab1: LEA RSI,[0x2766dc] MOV RDI,RAX CALL 0x001254f0 LAB_00137ac0: JMP 0x00137a5c
/* tokenize_input_prompts(llama_vocab 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&, bool, bool) */ void tokenize_input_prompts(llama_vocab *param_1,basic_json *param_2,bool param_3,bool param_4) { char cVar1; ulong uVar2; basic_json *pbVar3; runtime_error *prVar4; int7 in_register_00000011; basic_json *local_88; int8 local_80; long lStack_78; int8 local_70; void *local_68 [2]; long local_58; basic_json *local_50; int8 local_48; int8 uStack_40; int8 local_38; pbVar3 = (basic_json *)CONCAT71(in_register_00000011,param_3); *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; if (*pbVar3 == (basic_json)0x3) { LAB_001378ca: /* try { // try from 001378ca to 001378e1 has its CatchHandler @ 00137aec */ tokenize_mixed((llama_vocab *)&local_88,param_2,param_3,param_4); /* try { // try from 001378e2 to 001378ec has its CatchHandler @ 00137ad9 */ std:: vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> ::emplace_back<std::vector<int,std::allocator<int>>> ((vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> *)param_1,(vector *)&local_88); LAB_001378ed: if (local_88 != (basic_json *)0x0) { operator_delete(local_88,lStack_78 - (long)local_88); } } else { /* try { // try from 001378be to 001378c5 has its CatchHandler @ 00137af2 */ cVar1 = json_is_array_of_mixed_numbers_strings(pbVar3); if (cVar1 != '\0') goto LAB_001378ca; /* try { // try from 0013791f to 00137926 has its CatchHandler @ 00137af2 */ cVar1 = json_is_array_of_numbers(pbVar3); if (cVar1 != '\0') { /* try { // try from 0013792b to 00137935 has its CatchHandler @ 00137ac6 */ _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS3_IiSaIiEETnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SI_EE5valueEiE4typeELi0EEESI_NS0_6detail12priority_tagILj0EEE (&local_88,pbVar3); /* try { // try from 00137936 to 00137940 has its CatchHandler @ 00137ac4 */ std:: vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> ::emplace_back<std::vector<int,std::allocator<int>>> ((vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> *)param_1,(vector *)&local_88); goto LAB_001378ed; } if (*pbVar3 != (basic_json)0x2) { prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00137ab1 to 00137abf has its CatchHandler @ 00137ac2 */ std::runtime_error::runtime_error (prVar4, "\"prompt\" must be a string, an list of tokens, a list of mixed strings & tokens, or a list of prompts" ); goto LAB_00137a5c; } 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> ::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> *)pbVar3); /* try { // try from 00137956 to 00137960 has its CatchHandler @ 00137af2 */ std:: vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> ::reserve((vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> *)param_1,uVar2); local_80 = 0; lStack_78 = 0; local_70 = 0x8000000000000000; local_88 = pbVar3; 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> ::set_begin((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_88); local_48 = 0; uStack_40 = 0; local_38 = 0x8000000000000000; local_50 = pbVar3; 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> ::set_end((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50); while( true ) { /* try { // try from 001379a6 to 001379b2 has its CatchHandler @ 00137b14 */ cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ (&local_88,&local_50); if (cVar1 != '\0') break; /* try { // try from 001379bb to 001379d2 has its CatchHandler @ 00137b12 */ pbVar3 = (basic_json *) nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_88); if (*pbVar3 == (basic_json)0x3) { LAB_001379d7: /* try { // try from 001379d7 to 001379ec has its CatchHandler @ 00137b10 */ tokenize_mixed((llama_vocab *)local_68,param_2,SUB81(pbVar3,0),param_4); /* try { // try from 001379ed to 001379f7 has its CatchHandler @ 00137af4 */ std:: vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> ::emplace_back<std::vector<int,std::allocator<int>>> ((vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> *)param_1,(vector *)local_68); } else { cVar1 = json_is_array_of_mixed_numbers_strings(pbVar3); if (cVar1 != '\0') goto LAB_001379d7; /* try { // try from 001379fa to 00137a01 has its CatchHandler @ 00137b12 */ cVar1 = json_is_array_of_numbers(pbVar3); if (cVar1 == '\0') { prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00137a7f to 00137a8d has its CatchHandler @ 00137aca */ std::runtime_error::runtime_error (prVar4, "element of \"prompt\" must be a string, an list of tokens, or a list of mixed strings & tokens" ); /* try { // try from 00137a8e to 00137aa3 has its CatchHandler @ 00137ac8 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_002dcfb8,PTR__runtime_error_002dcf70); } /* try { // try from 00137a06 to 00137a10 has its CatchHandler @ 00137af0 */ _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS3_IiSaIiEETnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SI_EE5valueEiE4typeELi0EEESI_NS0_6detail12priority_tagILj0EEE ((llama_vocab *)local_68,pbVar3); /* try { // try from 00137a11 to 00137a1b has its CatchHandler @ 00137aee */ std:: vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> ::emplace_back<std::vector<int,std::allocator<int>>> ((vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> *)param_1,(vector *)local_68); } if (local_68[0] != (void *)0x0) { operator_delete(local_68[0],local_58 - (long)local_68[0]); } /* try { // try from 00137a33 to 00137a3a has its CatchHandler @ 00137b14 */ nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_88); } } if (*(long *)param_1 != *(long *)(param_1 + 8)) { return; } prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00137a4d to 00137a5b has its CatchHandler @ 00137acc */ std::runtime_error::runtime_error(prVar4,"\"prompt\" must not be empty"); LAB_00137a5c: /* try { // try from 00137a5c to 00137a71 has its CatchHandler @ 00137af2 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_002dcfb8,PTR__runtime_error_002dcf70); }
3,858
minja::Parser::parseString[abi:cxx11]()
monkey531[P]llama/common/minja.hpp
std::unique_ptr<std::string> parseString() { auto doParse = [&](char quote) -> std::unique_ptr<std::string> { if (it == end || *it != quote) return nullptr; std::string result; bool escape = false; for (++it; it != end; ++it) { if (escape) { escape = false; switch (*it) { case 'n': result += '\n'; break; case 'r': result += '\r'; break; case 't': result += '\t'; break; case 'b': result += '\b'; break; case 'f': result += '\f'; break; case '\\': result += '\\'; break; default: if (*it == quote) { result += quote; } else { result += *it; } break; } } else if (*it == '\\') { escape = true; } else if (*it == quote) { ++it; return std::make_unique<std::string>(std::move(result)); } else { result += *it; } } return nullptr; }; consumeSpaces(); if (it == end) return nullptr; if (*it == '"') return doParse('"'); if (*it == '\'') return doParse('\''); return nullptr; }
O0
cpp
minja::Parser::parseString[abi:cxx11](): subq $0x38, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x28(%rsp), %rdi movq %rdi, 0x18(%rsp) movq %rdi, 0x20(%rsp) movl $0x1, %esi callq 0x1230e0 movq 0x18(%rsp), %rsi movq %rsi, %rdi addq $0x20, %rdi addq $0x18, %rsi callq 0x124b20 testb $0x1, %al jne 0x12d76f jmp 0x12d77f movq 0x8(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x12e0f0 jmp 0x12d7e5 movq 0x18(%rsp), %rdi addq $0x20, %rdi callq 0x673b0 movsbl (%rax), %eax cmpl $0x22, %eax jne 0x12d7ab movq 0x8(%rsp), %rdi leaq 0x20(%rsp), %rsi movl $0x22, %edx callq 0x12e130 jmp 0x12d7e5 movq 0x18(%rsp), %rdi addq $0x20, %rdi callq 0x673b0 movsbl (%rax), %eax cmpl $0x27, %eax jne 0x12d7d7 movq 0x8(%rsp), %rdi leaq 0x20(%rsp), %rsi movl $0x27, %edx callq 0x12e130 jmp 0x12d7e5 movq 0x8(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x12e0f0 movq 0x10(%rsp), %rax addq $0x38, %rsp retq nop
_ZN5minja6Parser11parseStringB5cxx11Ev: sub rsp, 38h mov [rsp+38h+var_30], rdi mov rax, rdi mov [rsp+38h+var_28], rax mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov rdi, [rsp+38h+var_10] mov [rsp+38h+var_20], rdi mov [rsp+38h+var_18], rdi mov esi, 1 call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling) mov rsi, [rsp+38h+var_20] mov rdi, rsi add rdi, 20h ; ' ' add rsi, 18h call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator==<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&) test al, 1 jnz short loc_12D76F jmp short loc_12D77F loc_12D76F: mov rdi, [rsp+38h+var_30] xor eax, eax mov esi, eax call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr)) jmp short loc_12D7E5 loc_12D77F: mov rdi, [rsp+38h+var_20] add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] cmp eax, 22h ; '"' jnz short loc_12D7AB mov rdi, [rsp+38h+var_30] lea rsi, [rsp+38h+var_18] mov edx, 22h ; '"' call _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec; minja::Parser::parseString(void)::{lambda(char)#1}::operator()(char) jmp short loc_12D7E5 loc_12D7AB: mov rdi, [rsp+38h+var_20] add rdi, 20h ; ' ' call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void) movsx eax, byte ptr [rax] cmp eax, 27h ; ''' jnz short loc_12D7D7 mov rdi, [rsp+38h+var_30] lea rsi, [rsp+38h+var_18] mov edx, 27h ; ''' call _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec; minja::Parser::parseString(void)::{lambda(char)#1}::operator()(char) jmp short loc_12D7E5 loc_12D7D7: mov rdi, [rsp+38h+var_30] xor eax, eax mov esi, eax call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr)) loc_12D7E5: mov rax, [rsp+38h+var_28] add rsp, 38h retn
3,859
minja::Parser::parseString[abi:cxx11]()
monkey531[P]llama/common/minja.hpp
std::unique_ptr<std::string> parseString() { auto doParse = [&](char quote) -> std::unique_ptr<std::string> { if (it == end || *it != quote) return nullptr; std::string result; bool escape = false; for (++it; it != end; ++it) { if (escape) { escape = false; switch (*it) { case 'n': result += '\n'; break; case 'r': result += '\r'; break; case 't': result += '\t'; break; case 'b': result += '\b'; break; case 'f': result += '\f'; break; case '\\': result += '\\'; break; default: if (*it == quote) { result += quote; } else { result += *it; } break; } } else if (*it == '\\') { escape = true; } else if (*it == quote) { ++it; return std::make_unique<std::string>(std::move(result)); } else { result += *it; } } return nullptr; }; consumeSpaces(); if (it == end) return nullptr; if (*it == '"') return doParse('"'); if (*it == '\'') return doParse('\''); return nullptr; }
O2
cpp
minja::Parser::parseString[abi:cxx11](): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq (%rsi), %r15 movq 0x18(%r15), %rcx movq 0x20(%r15), %rax cmpq %rcx, %rax je 0x643c9 movl %edx, %ebp cmpb %bpl, (%rax) jne 0x643c9 leaq 0x18(%rsp), %rdx movq %rdx, -0x10(%rdx) andq $0x0, -0x8(%rdx) movb $0x0, (%rdx) xorl %edx, %edx movl $0x1a29, %r12d # imm = 0x1A29 leaq 0x3349a(%rip), %r13 # 0x9780c leaq 0x8(%rsp), %r14 leaq 0x1(%rax), %rsi movq %rsi, 0x20(%r15) cmpq %rcx, %rsi je 0x643cf movb (%rsi), %cl testb $0x1, %dl je 0x643a6 movsbl %cl, %eax addl $-0x5c, %eax rorl %eax cmpl $0xc, %eax ja 0x643b2 btl %eax, %r12d jae 0x643b2 movl %eax, %eax movb (%rax,%r13), %cl jmp 0x643b2 movb $0x1, %dl cmpb $0x5c, %cl je 0x643bf cmpb %bpl, %cl je 0x643ef movsbl %cl, %esi movq %r14, %rdi callq 0x21690 xorl %edx, %edx movq 0x18(%r15), %rcx movq 0x20(%r15), %rax jmp 0x64377 andq $0x0, (%rbx) jmp 0x643dd andq $0x0, (%rbx) leaq 0x8(%rsp), %rdi callq 0x22078 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq addq $0x2, %rax movq %rax, 0x20(%r15) leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x6441d jmp 0x643d3 jmp 0x64408 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x22078 movq %rbx, %rdi callq 0x21e50
_ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi mov r15, [rsi] mov rcx, [r15+18h] mov rax, [r15+20h] cmp rax, rcx jz short loc_643C9 mov ebp, edx cmp [rax], bpl jnz short loc_643C9 lea rdx, [rsp+58h+var_40] mov [rdx-10h], rdx and qword ptr [rdx-8], 0 mov byte ptr [rdx], 0 xor edx, edx mov r12d, 1A29h lea r13, unk_9780C lea r14, [rsp+58h+var_50] loc_64377: lea rsi, [rax+1] mov [r15+20h], rsi cmp rsi, rcx jz short loc_643CF mov cl, [rsi] test dl, 1 jz short loc_643A6 movsx eax, cl add eax, 0FFFFFFA4h ror eax, 1 cmp eax, 0Ch ja short loc_643B2 bt r12d, eax jnb short loc_643B2 mov eax, eax mov cl, [rax+r13] jmp short loc_643B2 loc_643A6: mov dl, 1 cmp cl, 5Ch ; '\' jz short loc_643BF cmp cl, bpl jz short loc_643EF loc_643B2: movsx esi, cl mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) xor edx, edx loc_643BF: mov rcx, [r15+18h] mov rax, [r15+20h] jmp short loc_64377 loc_643C9: and qword ptr [rbx], 0 jmp short loc_643DD loc_643CF: and qword ptr [rbx], 0 loc_643D3: lea rdi, [rsp+58h+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_643DD: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_643EF: add rax, 2 mov [r15+20h], rax lea rsi, [rsp+58h+var_50] mov rdi, rbx call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,std::string>(std::string &&) jmp short loc_643D3 jmp short $+2 loc_64408: mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
_QWORD * minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11]( _QWORD *a1, long long *a2, char a3) { long long v3; // r15 _BYTE *v4; // rcx _BYTE *v5; // rax long long v7; // rdx int v8; // r12d char v9; // cl unsigned int v10; // eax _QWORD v12[2]; // [rsp+8h] [rbp-50h] BYREF char v13; // [rsp+18h] [rbp-40h] BYREF v3 = *a2; v4 = *(_BYTE **)(*a2 + 24); v5 = *(_BYTE **)(*a2 + 32); if ( v5 == v4 || *v5 != a3 ) { *a1 = 0LL; return a1; } v12[0] = &v13; v12[1] = 0LL; v13 = 0; v7 = 0LL; v8 = 6697; while ( 1 ) { *(_QWORD *)(v3 + 32) = v5 + 1; if ( v5 + 1 == v4 ) { *a1 = 0LL; goto LABEL_15; } v9 = v5[1]; if ( (v7 & 1) != 0 ) { v10 = __ROR4__(v9 - 92, 1); if ( v10 <= 0xC ) { if ( _bittest(&v8, v10) ) v9 = byte_9780C[v10]; } goto LABEL_11; } LOBYTE(v7) = 1; if ( v9 == 92 ) goto LABEL_12; if ( v9 == a3 ) break; LABEL_11: std::string::push_back(v12, (unsigned int)v9); v7 = 0LL; LABEL_12: v4 = *(_BYTE **)(v3 + 24); v5 = *(_BYTE **)(v3 + 32); } *(_QWORD *)(v3 + 32) = v5 + 2; std::make_unique<std::string,std::string>(a1, v12, v7); LABEL_15: std::string::~string(v12); return a1; }
operator()[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV R15,qword ptr [RSI] MOV RCX,qword ptr [R15 + 0x18] MOV RAX,qword ptr [R15 + 0x20] CMP RAX,RCX JZ 0x001643c9 MOV EBP,EDX CMP byte ptr [RAX],BPL JNZ 0x001643c9 LEA RDX,[RSP + 0x18] MOV qword ptr [RDX + -0x10],RDX AND qword ptr [RDX + -0x8],0x0 MOV byte ptr [RDX],0x0 XOR EDX,EDX MOV R12D,0x1a29 LEA R13,[0x19780c] LEA R14,[RSP + 0x8] LAB_00164377: LEA RSI,[RAX + 0x1] MOV qword ptr [R15 + 0x20],RSI CMP RSI,RCX JZ 0x001643cf MOV CL,byte ptr [RSI] TEST DL,0x1 JZ 0x001643a6 MOVSX EAX,CL ADD EAX,-0x5c ROR EAX,0x1 CMP EAX,0xc JA 0x001643b2 BT R12D,EAX JNC 0x001643b2 MOV EAX,EAX MOV CL,byte ptr [RAX + R13*0x1] JMP 0x001643b2 LAB_001643a6: MOV DL,0x1 CMP CL,0x5c JZ 0x001643bf CMP CL,BPL JZ 0x001643ef LAB_001643b2: MOVSX ESI,CL MOV RDI,R14 CALL 0x00121690 XOR EDX,EDX LAB_001643bf: MOV RCX,qword ptr [R15 + 0x18] MOV RAX,qword ptr [R15 + 0x20] JMP 0x00164377 LAB_001643c9: AND qword ptr [RBX],0x0 JMP 0x001643dd LAB_001643cf: AND qword ptr [RBX],0x0 LAB_001643d3: LEA RDI,[RSP + 0x8] CALL 0x00122078 LAB_001643dd: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001643ef: ADD RAX,0x2 MOV qword ptr [R15 + 0x20],RAX LAB_001643f7: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x0016441d LAB_00164404: JMP 0x001643d3
/* operator()[abi:cxx11](char) const */ string * minja::Parser::parseString[abi:cxx11]()::{lambda(char)#1}::operator()[abi_cxx11_ (char param_1) { char *pcVar1; long lVar2; char *pcVar3; char *pcVar4; char in_DL; bool bVar5; long *in_RSI; int7 in_register_00000039; string *psVar6; int1 *local_50; int8 local_48; int1 local_40 [16]; psVar6 = (string *)CONCAT71(in_register_00000039,param_1); lVar2 = *in_RSI; pcVar4 = *(char **)(lVar2 + 0x18); pcVar3 = *(char **)(lVar2 + 0x20); if ((pcVar3 == pcVar4) || (*pcVar3 != in_DL)) { *(int8 *)psVar6 = 0; } else { local_50 = local_40; local_48 = 0; local_40[0] = 0; bVar5 = false; while( true ) { pcVar1 = pcVar3 + 1; *(char **)(lVar2 + 0x20) = pcVar1; if (pcVar1 == pcVar4) break; if (bVar5) { LAB_001643b2: /* try { // try from 001643b2 to 001643bc has its CatchHandler @ 00164408 */ std::__cxx11::string::push_back((char)&local_50); bVar5 = false; } else { bVar5 = true; if (*pcVar1 != '\\') { if (*pcVar1 != in_DL) goto LAB_001643b2; *(char **)(lVar2 + 0x20) = pcVar3 + 2; /* try { // try from 001643f7 to 00164403 has its CatchHandler @ 00164406 */ std::make_unique<std::__cxx11::string,std::__cxx11::string>(psVar6); goto LAB_001643d3; } } pcVar4 = *(char **)(lVar2 + 0x18); pcVar3 = *(char **)(lVar2 + 0x20); } *(int8 *)psVar6 = 0; LAB_001643d3: std::__cxx11::string::~string((string *)&local_50); } return psVar6; }
3,860
minja::Parser::parseString[abi:cxx11]()
monkey531[P]llama/common/minja.hpp
std::unique_ptr<std::string> parseString() { auto doParse = [&](char quote) -> std::unique_ptr<std::string> { if (it == end || *it != quote) return nullptr; std::string result; bool escape = false; for (++it; it != end; ++it) { if (escape) { escape = false; switch (*it) { case 'n': result += '\n'; break; case 'r': result += '\r'; break; case 't': result += '\t'; break; case 'b': result += '\b'; break; case 'f': result += '\f'; break; case '\\': result += '\\'; break; default: if (*it == quote) { result += quote; } else { result += *it; } break; } } else if (*it == '\\') { escape = true; } else if (*it == quote) { ++it; return std::make_unique<std::string>(std::move(result)); } else { result += *it; } } return nullptr; }; consumeSpaces(); if (it == end) return nullptr; if (*it == '"') return doParse('"'); if (*it == '\'') return doParse('\''); return nullptr; }
O3
cpp
minja::Parser::parseString[abi:cxx11](): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq (%rsi), %r12 movq 0x18(%r12), %rcx movq 0x20(%r12), %rax cmpq %rcx, %rax je 0x70cc9 movl %edx, %ebp cmpb %bpl, (%rax) jne 0x70cc9 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) leaq 0x1(%rax), %rdx movq %rdx, 0x20(%r12) cmpq %rcx, %rdx je 0x70ce2 xorl %edx, %edx movl $0x1a29, %r13d # imm = 0x1A29 leaq 0x8(%rsp), %r14 movb 0x1(%rax), %cl testb $0x1, %dl je 0x70c7b movsbl %cl, %eax addl $-0x5c, %eax rorl %eax cmpl $0xc, %eax ja 0x70c87 btl %eax, %r13d jae 0x70c87 movl %eax, %eax leaq 0x42b56(%rip), %rcx # 0xb37cc movb (%rax,%rcx), %cl jmp 0x70c87 movb $0x1, %dl cmpb $0x5c, %cl je 0x70c94 cmpb %bpl, %cl je 0x70ce6 movsbl %cl, %esi movq %r14, %rdi callq 0x19630 xorl %edx, %edx movq 0x20(%r12), %rax leaq 0x1(%rax), %rcx movq %rcx, 0x20(%r12) cmpq 0x18(%r12), %rcx jne 0x70c52 movq 0x8(%rsp), %rdi movq $0x0, (%rbx) cmpq %r15, %rdi je 0x70cd0 movq 0x18(%rsp), %rsi incq %rsi callq 0x197b0 jmp 0x70cd0 movq $0x0, (%rbx) movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq xorl %eax, %eax jmp 0x70d2b addq $0x2, %rax movq %rax, 0x20(%r12) movl $0x20, %edi callq 0x197a0 movq %rax, %rcx addq $0x10, %rcx movq %rcx, (%rax) movq 0x8(%rsp), %rdx cmpq %r15, %rdx je 0x70d1b movq %rdx, (%rax) movq 0x18(%rsp), %rcx movq %rcx, 0x10(%rax) jmp 0x70d22 movups (%r15), %xmm0 movups %xmm0, (%rcx) movq 0x10(%rsp), %rcx movq %rcx, 0x8(%rax) movq %rax, (%rbx) jmp 0x70cd0 jmp 0x70d32 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x70d4c movq 0x18(%rsp), %rsi incq %rsi callq 0x197b0 movq %rbx, %rdi callq 0x19e10
_ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi mov r12, [rsi] mov rcx, [r12+18h] mov rax, [r12+20h] cmp rax, rcx jz loc_70CC9 mov ebp, edx cmp [rax], bpl jnz loc_70CC9 lea r15, [rsp+58h+var_40] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 lea rdx, [rax+1] mov [r12+20h], rdx cmp rdx, rcx jz loc_70CE2 xor edx, edx mov r13d, 1A29h lea r14, [rsp+58h+var_50] loc_70C52: mov cl, [rax+1] test dl, 1 jz short loc_70C7B movsx eax, cl add eax, 0FFFFFFA4h ror eax, 1 cmp eax, 0Ch ja short loc_70C87 bt r13d, eax jnb short loc_70C87 mov eax, eax lea rcx, unk_B37CC mov cl, [rax+rcx] jmp short loc_70C87 loc_70C7B: mov dl, 1 cmp cl, 5Ch ; '\' jz short loc_70C94 cmp cl, bpl jz short loc_70CE6 loc_70C87: movsx esi, cl mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) xor edx, edx loc_70C94: mov rax, [r12+20h] lea rcx, [rax+1] mov [r12+20h], rcx cmp rcx, [r12+18h] jnz short loc_70C52 mov rdi, [rsp+58h+var_50]; void * mov qword ptr [rbx], 0 cmp rdi, r15 jz short loc_70CD0 mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_70CD0 loc_70CC9: mov qword ptr [rbx], 0 loc_70CD0: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_70CE2: xor eax, eax jmp short loc_70D2B loc_70CE6: add rax, 2 mov [r12+20h], rax mov edi, 20h ; ' '; unsigned __int64 call __Znwm; operator new(ulong) mov rcx, rax add rcx, 10h mov [rax], rcx mov rdx, [rsp+58h+var_50] cmp rdx, r15 jz short loc_70D1B mov [rax], rdx mov rcx, [rsp+58h+var_40] mov [rax+10h], rcx jmp short loc_70D22 loc_70D1B: movups xmm0, xmmword ptr [r15] movups xmmword ptr [rcx], xmm0 loc_70D22: mov rcx, [rsp+58h+var_48] mov [rax+8], rcx loc_70D2B: mov [rbx], rax jmp short loc_70CD0 jmp short $+2 loc_70D32: mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r15 jz short loc_70D4C mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_70D4C: mov rdi, rbx call __Unwind_Resume
_QWORD * minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11]( _QWORD *a1, long long *a2, char a3) { long long v4; // r12 _BYTE *v5; // rcx _BYTE *v6; // rax char v8; // dl int v9; // r13d char v10; // cl unsigned int v11; // eax _OWORD *v12; // rdi long long v14; // rax void *v15; // [rsp+8h] [rbp-50h] BYREF long long v16; // [rsp+10h] [rbp-48h] _OWORD v17[4]; // [rsp+18h] [rbp-40h] BYREF v4 = *a2; v5 = *(_BYTE **)(*a2 + 24); v6 = *(_BYTE **)(*a2 + 32); if ( v6 == v5 || *v6 != a3 ) { *a1 = 0LL; return a1; } v15 = v17; v16 = 0LL; LOBYTE(v17[0]) = 0; *(_QWORD *)(v4 + 32) = v6 + 1; if ( v6 + 1 == v5 ) { v14 = 0LL; goto LABEL_22; } v8 = 0; v9 = 6697; while ( 1 ) { v10 = v6[1]; if ( (v8 & 1) != 0 ) { v11 = __ROR4__(v10 - 92, 1); if ( v11 <= 0xC && _bittest(&v9, v11) ) v10 = byte_B37CC[v11]; goto LABEL_11; } v8 = 1; if ( v10 != 92 ) break; LABEL_12: v6 = *(_BYTE **)(v4 + 32); *(_QWORD *)(v4 + 32) = v6 + 1; if ( v6 + 1 == *(_BYTE **)(v4 + 24) ) { v12 = v15; *a1 = 0LL; if ( v12 != v17 ) operator delete(v12, *(_QWORD *)&v17[0] + 1LL); return a1; } } if ( v10 != a3 ) { LABEL_11: std::string::push_back(&v15, (unsigned int)v10); v8 = 0; goto LABEL_12; } *(_QWORD *)(v4 + 32) = v6 + 2; v14 = operator new(0x20uLL); *(_QWORD *)v14 = v14 + 16; if ( v15 == v17 ) { *(_OWORD *)(v14 + 16) = v17[0]; } else { *(_QWORD *)v14 = v15; *(_QWORD *)(v14 + 16) = *(_QWORD *)&v17[0]; } *(_QWORD *)(v14 + 8) = v16; LABEL_22: *a1 = v14; return a1; }
operator()[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV R12,qword ptr [RSI] MOV RCX,qword ptr [R12 + 0x18] MOV RAX,qword ptr [R12 + 0x20] CMP RAX,RCX JZ 0x00170cc9 MOV EBP,EDX CMP byte ptr [RAX],BPL JNZ 0x00170cc9 LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 LEA RDX,[RAX + 0x1] MOV qword ptr [R12 + 0x20],RDX CMP RDX,RCX JZ 0x00170ce2 XOR EDX,EDX MOV R13D,0x1a29 LEA R14,[RSP + 0x8] LAB_00170c52: MOV CL,byte ptr [RAX + 0x1] TEST DL,0x1 JZ 0x00170c7b MOVSX EAX,CL ADD EAX,-0x5c ROR EAX,0x1 CMP EAX,0xc JA 0x00170c87 BT R13D,EAX JNC 0x00170c87 MOV EAX,EAX LEA RCX,[0x1b37cc] MOV CL,byte ptr [RAX + RCX*0x1] JMP 0x00170c87 LAB_00170c7b: MOV DL,0x1 CMP CL,0x5c JZ 0x00170c94 CMP CL,BPL JZ 0x00170ce6 LAB_00170c87: MOVSX ESI,CL MOV RDI,R14 CALL 0x00119630 XOR EDX,EDX LAB_00170c94: MOV RAX,qword ptr [R12 + 0x20] LEA RCX,[RAX + 0x1] MOV qword ptr [R12 + 0x20],RCX CMP RCX,qword ptr [R12 + 0x18] JNZ 0x00170c52 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RBX],0x0 CMP RDI,R15 JZ 0x00170cd0 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001197b0 JMP 0x00170cd0 LAB_00170cc9: MOV qword ptr [RBX],0x0 LAB_00170cd0: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00170ce2: XOR EAX,EAX JMP 0x00170d2b LAB_00170ce6: ADD RAX,0x2 MOV qword ptr [R12 + 0x20],RAX LAB_00170cef: MOV EDI,0x20 CALL 0x001197a0 LAB_00170cf9: MOV RCX,RAX ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV RDX,qword ptr [RSP + 0x8] CMP RDX,R15 JZ 0x00170d1b MOV qword ptr [RAX],RDX MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x10],RCX JMP 0x00170d22 LAB_00170d1b: MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [RCX],XMM0 LAB_00170d22: MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x8],RCX LAB_00170d2b: MOV qword ptr [RBX],RAX JMP 0x00170cd0
/* operator()[abi:cxx11](char) const */ int8 * minja::Parser::parseString[abi:cxx11]()::{lambda(char)#1}::operator()[abi_cxx11_(char param_1) { long lVar1; char *pcVar2; int8 *puVar3; char in_DL; bool bVar4; long *in_RSI; int7 in_register_00000039; int8 *puVar5; int1 *local_50; int8 local_48; int1 local_40; int7 uStack_3f; int8 uStack_38; puVar5 = (int8 *)CONCAT71(in_register_00000039,param_1); lVar1 = *in_RSI; pcVar2 = *(char **)(lVar1 + 0x20); if ((pcVar2 == *(char **)(lVar1 + 0x18)) || (*pcVar2 != in_DL)) { *puVar5 = 0; } else { local_48 = 0; local_40 = 0; *(char **)(lVar1 + 0x20) = pcVar2 + 1; if (pcVar2 + 1 == *(char **)(lVar1 + 0x18)) { puVar3 = (int8 *)0x0; LAB_00170d2b: *puVar5 = puVar3; } else { bVar4 = false; local_50 = &local_40; do { if (bVar4) { LAB_00170c87: /* try { // try from 00170c87 to 00170c91 has its CatchHandler @ 00170d32 */ std::__cxx11::string::push_back((char)&local_50); bVar4 = false; } else { bVar4 = true; if (pcVar2[1] != '\\') { if (pcVar2[1] != in_DL) goto LAB_00170c87; *(char **)(lVar1 + 0x20) = pcVar2 + 2; /* try { // try from 00170cef to 00170cf8 has its CatchHandler @ 00170d30 */ puVar3 = (int8 *)operator_new(0x20); *puVar3 = puVar3 + 2; if (local_50 == &local_40) { puVar3[2] = CONCAT71(uStack_3f,local_40); puVar3[3] = uStack_38; } else { *puVar3 = local_50; puVar3[2] = CONCAT71(uStack_3f,local_40); } puVar3[1] = local_48; goto LAB_00170d2b; } } pcVar2 = *(char **)(lVar1 + 0x20); *(char **)(lVar1 + 0x20) = pcVar2 + 1; } while (pcVar2 + 1 != *(char **)(lVar1 + 0x18)); *puVar5 = 0; if (local_50 != &local_40) { operator_delete(local_50,CONCAT71(uStack_3f,local_40) + 1); } } } return puVar5; }
3,861
OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask( int eMask) { static int const edgeMaskToCount[16] = { 0, 1, 1, 2, 1, -1, 2, -1, 1, 2, -1, -1, 2, -1, -1, -1 }; static int const edgeMaskToIndex[16] = { -1, 0, 1, 1, 2, -1, 2, -1, 3, 0, -1, -1, 3, -1, -1,-1 }; assert(edgeMaskToCount[eMask] != -1); assert(edgeMaskToIndex[eMask] != -1); _boundaryMask = eMask; _hasBoundaryEdge = (eMask > 0); _boundaryCount = edgeMaskToCount[eMask]; _boundaryIndex = edgeMaskToIndex[eMask]; }
O1
cpp
OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int): pushq %rax movl $0xeca0, %eax # imm = 0xECA0 btq %rsi, %rax jb 0x6e38a movslq %esi, %rax movl $0xeca1, %ecx # imm = 0xECA1 btq %rax, %rcx jb 0x6e3a9 leaq 0x4abef(%rip), %rcx # 0xb8f30 leaq 0x4aba8(%rip), %rdx # 0xb8ef0 movl %esi, %r8d andl $0xf, %r8d movl $0xfffc003f, %r9d # imm = 0xFFFC003F andl (%rdi), %r9d shll $0x6, %r8d xorl %r10d, %r10d testl %esi, %esi setg %r10b shll $0xf, %r10d orl %r8d, %r10d orl %r9d, %r10d movl (%rdx,%rax,4), %edx andl $0x7, %edx shll $0xc, %edx orl %r10d, %edx movl (%rcx,%rax,4), %eax andl $0x3, %eax shll $0xa, %eax orl %edx, %eax movl %eax, (%rdi) popq %rax retq leaq 0x4af73(%rip), %rdi # 0xb9304 leaq 0x4adf0(%rip), %rsi # 0xb9188 leaq 0x4af82(%rip), %rcx # 0xb9321 movl $0x7df, %edx # imm = 0x7DF callq 0x39560 leaq 0x4afda(%rip), %rdi # 0xb938a leaq 0x4add1(%rip), %rsi # 0xb9188 leaq 0x4af63(%rip), %rcx # 0xb9321 movl $0x7e0, %edx # imm = 0x7E0 callq 0x39560
_ZN10OpenSubdiv6v3_6_03Far17PatchTableFactory12PatchFaceTag36assignBoundaryPropertiesFromEdgeMaskEi: push rax mov eax, 0ECA0h bt rax, rsi jb short loc_6E38A movsxd rax, esi mov ecx, 0ECA1h bt rcx, rax jb short loc_6E3A9 lea rcx, _ZZN10OpenSubdiv6v3_6_03Far17PatchTableFactory12PatchFaceTag36assignBoundaryPropertiesFromEdgeMaskEiE15edgeMaskToIndex; OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToIndex lea rdx, _ZZN10OpenSubdiv6v3_6_03Far17PatchTableFactory12PatchFaceTag36assignBoundaryPropertiesFromEdgeMaskEiE15edgeMaskToCount; OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToCount mov r8d, esi and r8d, 0Fh mov r9d, 0FFFC003Fh and r9d, [rdi] shl r8d, 6 xor r10d, r10d test esi, esi setnle r10b shl r10d, 0Fh or r10d, r8d or r10d, r9d mov edx, [rdx+rax*4] and edx, 7 shl edx, 0Ch or edx, r10d mov eax, [rcx+rax*4] and eax, 3 shl eax, 0Ah or eax, edx mov [rdi], eax pop rax retn loc_6E38A: lea rdi, aEdgemasktocoun; "edgeMaskToCount[eMask] != -1" lea rsi, aWorkspaceLlm4b_17; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_66; "void OpenSubdiv::v3_6_0::Far::PatchTabl"... mov edx, 7DFh call ___assert_fail loc_6E3A9: lea rdi, aEdgemasktoinde; "edgeMaskToIndex[eMask] != -1" lea rsi, aWorkspaceLlm4b_17; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_66; "void OpenSubdiv::v3_6_0::Far::PatchTabl"... mov edx, 7E0h call ___assert_fail
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask( OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag *this, unsigned long long a2) { long long v2; // rax long long v3; // rcx v2 = 60576LL; if ( _bittest64(&v2, a2) ) __assert_fail( "edgeMaskToCount[eMask] != -1", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp", 2015LL, "void OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)"); v3 = 60577LL; if ( _bittest64(&v3, (int)a2) ) __assert_fail( "edgeMaskToIndex[eMask] != -1", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp", 2016LL, "void OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)"); *(_DWORD *)this = *(_DWORD *)this & 0xFFFC003F | ((a2 & 0xF) << 6) | (((int)a2 > 0) << 15) | ((OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToCount[(int)a2] & 7) << 12) | ((OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToIndex[(int)a2] & 3) << 10); }
assignBoundaryPropertiesFromEdgeMask: PUSH RAX MOV EAX,0xeca0 BT RAX,RSI JC 0x0016e38a MOVSXD RAX,ESI MOV ECX,0xeca1 BT RCX,RAX JC 0x0016e3a9 LEA RCX,[0x1b8f30] LEA RDX,[0x1b8ef0] MOV R8D,ESI AND R8D,0xf MOV R9D,0xfffc003f AND R9D,dword ptr [RDI] SHL R8D,0x6 XOR R10D,R10D TEST ESI,ESI SETG R10B SHL R10D,0xf OR R10D,R8D OR R10D,R9D MOV EDX,dword ptr [RDX + RAX*0x4] AND EDX,0x7 SHL EDX,0xc OR EDX,R10D MOV EAX,dword ptr [RCX + RAX*0x4] AND EAX,0x3 SHL EAX,0xa OR EAX,EDX MOV dword ptr [RDI],EAX POP RAX RET LAB_0016e38a: LEA RDI,[0x1b9304] LEA RSI,[0x1b9188] LEA RCX,[0x1b9321] MOV EDX,0x7df CALL 0x00139560 LAB_0016e3a9: LEA RDI,[0x1b938a] LEA RSI,[0x1b9188] LEA RCX,[0x1b9321] MOV EDX,0x7e0 CALL 0x00139560
/* OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int) */ int8 __thiscall OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask (PatchFaceTag *this,int param_1) { int8 in_RAX; ulong uVar1; if ((0xeca0UL >> ((ulong)(uint)param_1 & 0x3f) & 1) != 0) { /* WARNING: Subroutine does not return */ __assert_fail("edgeMaskToCount[eMask] != -1", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp" ,0x7df, "void OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)" ); } uVar1 = (ulong)param_1; if ((0xeca1UL >> (uVar1 & 0x3f) & 1) == 0) { *(uint *)this = (*(uint *)(assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToIndex + uVar1 * 4) & 3) << 10 | (*(uint *)(assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToCount + uVar1 * 4) & 7 ) << 0xc | (uint)(0 < param_1) << 0xf | (param_1 & 0xfU) << 6 | *(uint *)this & 0xfffc003f; return in_RAX; } /* WARNING: Subroutine does not return */ __assert_fail("edgeMaskToIndex[eMask] != -1", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp" ,0x7e0, "void OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)" ); }
3,862
OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask( int eMask) { static int const edgeMaskToCount[16] = { 0, 1, 1, 2, 1, -1, 2, -1, 1, 2, -1, -1, 2, -1, -1, -1 }; static int const edgeMaskToIndex[16] = { -1, 0, 1, 1, 2, -1, 2, -1, 3, 0, -1, -1, 3, -1, -1,-1 }; assert(edgeMaskToCount[eMask] != -1); assert(edgeMaskToIndex[eMask] != -1); _boundaryMask = eMask; _hasBoundaryEdge = (eMask > 0); _boundaryCount = edgeMaskToCount[eMask]; _boundaryIndex = edgeMaskToIndex[eMask]; }
O3
cpp
OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int): pushq %rax movl $0xeca0, %eax # imm = 0xECA0 btq %rsi, %rax jb 0x6f9ba movslq %esi, %rax movl $0xeca1, %ecx # imm = 0xECA1 btq %rax, %rcx jb 0x6f9d9 leaq 0x4ccff(%rip), %rcx # 0xbc670 leaq 0x4ccb8(%rip), %rdx # 0xbc630 movl %esi, %r8d andl $0xf, %r8d movl $0xfffc003f, %r9d # imm = 0xFFFC003F andl (%rdi), %r9d shll $0x6, %r8d xorl %r10d, %r10d testl %esi, %esi setg %r10b shll $0xf, %r10d orl %r8d, %r10d orl %r9d, %r10d movl (%rdx,%rax,4), %edx andl $0x7, %edx shll $0xc, %edx orl %r10d, %edx movl (%rcx,%rax,4), %eax andl $0x3, %eax shll $0xa, %eax orl %edx, %eax movl %eax, (%rdi) popq %rax retq leaq 0x4d083(%rip), %rdi # 0xbca44 leaq 0x4cf00(%rip), %rsi # 0xbc8c8 leaq 0x4d092(%rip), %rcx # 0xbca61 movl $0x7df, %edx # imm = 0x7DF callq 0x39540 leaq 0x4d0ea(%rip), %rdi # 0xbcaca leaq 0x4cee1(%rip), %rsi # 0xbc8c8 leaq 0x4d073(%rip), %rcx # 0xbca61 movl $0x7e0, %edx # imm = 0x7E0 callq 0x39540
_ZN10OpenSubdiv6v3_6_03Far17PatchTableFactory12PatchFaceTag36assignBoundaryPropertiesFromEdgeMaskEi: push rax mov eax, 0ECA0h bt rax, rsi jb short loc_6F9BA movsxd rax, esi mov ecx, 0ECA1h bt rcx, rax jb short loc_6F9D9 lea rcx, _ZZN10OpenSubdiv6v3_6_03Far17PatchTableFactory12PatchFaceTag36assignBoundaryPropertiesFromEdgeMaskEiE15edgeMaskToIndex; OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToIndex lea rdx, _ZZN10OpenSubdiv6v3_6_03Far17PatchTableFactory12PatchFaceTag36assignBoundaryPropertiesFromEdgeMaskEiE15edgeMaskToCount; OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToCount mov r8d, esi and r8d, 0Fh mov r9d, 0FFFC003Fh and r9d, [rdi] shl r8d, 6 xor r10d, r10d test esi, esi setnle r10b shl r10d, 0Fh or r10d, r8d or r10d, r9d mov edx, [rdx+rax*4] and edx, 7 shl edx, 0Ch or edx, r10d mov eax, [rcx+rax*4] and eax, 3 shl eax, 0Ah or eax, edx mov [rdi], eax pop rax retn loc_6F9BA: lea rdi, aEdgemasktocoun; "edgeMaskToCount[eMask] != -1" lea rsi, aWorkspaceLlm4b_17; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_66; "void OpenSubdiv::v3_6_0::Far::PatchTabl"... mov edx, 7DFh call ___assert_fail loc_6F9D9: lea rdi, aEdgemasktoinde; "edgeMaskToIndex[eMask] != -1" lea rsi, aWorkspaceLlm4b_17; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_66; "void OpenSubdiv::v3_6_0::Far::PatchTabl"... mov edx, 7E0h call ___assert_fail
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask( OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag *this, unsigned long long a2) { long long v2; // rax long long v3; // rcx v2 = 60576LL; if ( _bittest64(&v2, a2) ) __assert_fail( "edgeMaskToCount[eMask] != -1", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp", 2015LL, "void OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)"); v3 = 60577LL; if ( _bittest64(&v3, (int)a2) ) __assert_fail( "edgeMaskToIndex[eMask] != -1", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp", 2016LL, "void OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)"); *(_DWORD *)this = *(_DWORD *)this & 0xFFFC003F | ((a2 & 0xF) << 6) | (((int)a2 > 0) << 15) | ((OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToCount[(int)a2] & 7) << 12) | ((OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToIndex[(int)a2] & 3) << 10); }
assignBoundaryPropertiesFromEdgeMask: PUSH RAX MOV EAX,0xeca0 BT RAX,RSI JC 0x0016f9ba MOVSXD RAX,ESI MOV ECX,0xeca1 BT RCX,RAX JC 0x0016f9d9 LEA RCX,[0x1bc670] LEA RDX,[0x1bc630] MOV R8D,ESI AND R8D,0xf MOV R9D,0xfffc003f AND R9D,dword ptr [RDI] SHL R8D,0x6 XOR R10D,R10D TEST ESI,ESI SETG R10B SHL R10D,0xf OR R10D,R8D OR R10D,R9D MOV EDX,dword ptr [RDX + RAX*0x4] AND EDX,0x7 SHL EDX,0xc OR EDX,R10D MOV EAX,dword ptr [RCX + RAX*0x4] AND EAX,0x3 SHL EAX,0xa OR EAX,EDX MOV dword ptr [RDI],EAX POP RAX RET LAB_0016f9ba: LEA RDI,[0x1bca44] LEA RSI,[0x1bc8c8] LEA RCX,[0x1bca61] MOV EDX,0x7df CALL 0x00139540 LAB_0016f9d9: LEA RDI,[0x1bcaca] LEA RSI,[0x1bc8c8] LEA RCX,[0x1bca61] MOV EDX,0x7e0 CALL 0x00139540
/* OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int) */ int8 __thiscall OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask (PatchFaceTag *this,int param_1) { int8 in_RAX; ulong uVar1; if ((0xeca0UL >> ((ulong)(uint)param_1 & 0x3f) & 1) != 0) { /* WARNING: Subroutine does not return */ __assert_fail("edgeMaskToCount[eMask] != -1", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp" ,0x7df, "void OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)" ); } uVar1 = (ulong)param_1; if ((0xeca1UL >> (uVar1 & 0x3f) & 1) == 0) { *(uint *)this = (*(uint *)(assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToIndex + uVar1 * 4) & 3) << 10 | (*(uint *)(assignBoundaryPropertiesFromEdgeMask(int)::edgeMaskToCount + uVar1 * 4) & 7 ) << 0xc | (uint)(0 < param_1) << 0xf | (param_1 & 0xfU) << 6 | *(uint *)this & 0xfffc003f; return in_RAX; } /* WARNING: Subroutine does not return */ __assert_fail("edgeMaskToIndex[eMask] != -1", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp" ,0x7e0, "void OpenSubdiv::v3_6_0::Far::PatchTableFactory::PatchFaceTag::assignBoundaryPropertiesFromEdgeMask(int)" ); }
3,863
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; }
O0
c
my_snprintf: pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp testb %al, %al je 0x7646b movaps %xmm0, -0xc0(%rbp) movaps %xmm1, -0xb0(%rbp) movaps %xmm2, -0xa0(%rbp) movaps %xmm3, -0x90(%rbp) movaps %xmm4, -0x80(%rbp) movaps %xmm5, -0x70(%rbp) movaps %xmm6, -0x60(%rbp) movaps %xmm7, -0x50(%rbp) movq %r9, -0xc8(%rbp) movq %r8, -0xd0(%rbp) movq %rcx, -0xd8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq -0xf0(%rbp), %rax movq %rax, -0x30(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x38(%rbp) movl $0x30, -0x3c(%rbp) movl $0x18, -0x40(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx leaq -0x40(%rbp), %rcx callq 0x763f0 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax addq $0xf0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_snprintf: push rbp mov rbp, rsp sub rsp, 0F0h test al, al jz short loc_7646B movaps [rbp+var_C0], xmm0 movaps [rbp+var_B0], xmm1 movaps [rbp+var_A0], xmm2 movaps [rbp+var_90], xmm3 movaps [rbp+var_80], xmm4 movaps [rbp+var_70], xmm5 movaps [rbp+var_60], xmm6 movaps [rbp+var_50], xmm7 loc_7646B: mov [rbp+var_C8], r9 mov [rbp+var_D0], r8 mov [rbp+var_D8], rcx mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rax, [rbp+var_F0] mov [rbp+var_30], rax lea rax, [rbp+arg_0] mov [rbp+var_38], rax mov [rbp+var_3C], 30h ; '0' mov [rbp+var_40], 18h mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] lea rcx, [rbp+var_40] call my_vsnprintf mov [rbp+var_20], rax mov rax, [rbp+var_20] add rsp, 0F0h pop rbp retn
_BYTE * my_snprintf( _BYTE *a1, long long a2, char *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-F0h] BYREF long long v17; // [rsp+18h] [rbp-D8h] long long v18; // [rsp+20h] [rbp-D0h] long long v19; // [rsp+28h] [rbp-C8h] __m128 v20; // [rsp+30h] [rbp-C0h] __m128 v21; // [rsp+40h] [rbp-B0h] __m128 v22; // [rsp+50h] [rbp-A0h] __m128 v23; // [rsp+60h] [rbp-90h] __m128 v24; // [rsp+70h] [rbp-80h] __m128 v25; // [rsp+80h] [rbp-70h] __m128 v26; // [rsp+90h] [rbp-60h] __m128 v27; // [rsp+A0h] [rbp-50h] int v28[2]; // [rsp+B0h] [rbp-40h] BYREF char *v29; // [rsp+B8h] [rbp-38h] char *v30; // [rsp+C0h] [rbp-30h] char *v31; // [rsp+D8h] [rbp-18h] long long v32; // [rsp+E0h] [rbp-10h] _BYTE *v33; // [rsp+E8h] [rbp-8h] v20 = a7; v21 = a8; v22 = a9; v23 = a10; v24 = a11; v25 = a12; v26 = a13; v27 = a14; v19 = a6; v18 = a5; v17 = a4; v33 = a1; v32 = a2; v31 = a3; v30 = &v16; v29 = &a15; v28[1] = 48; v28[0] = 24; return my_vsnprintf(a1, a2, a3, v28); }
my_snprintf: PUSH RBP MOV RBP,RSP SUB RSP,0xf0 TEST AL,AL JZ 0x0017646b MOVAPS xmmword ptr [RBP + -0xc0],XMM0 MOVAPS xmmword ptr [RBP + -0xb0],XMM1 MOVAPS xmmword ptr [RBP + -0xa0],XMM2 MOVAPS xmmword ptr [RBP + -0x90],XMM3 MOVAPS xmmword ptr [RBP + -0x80],XMM4 MOVAPS xmmword ptr [RBP + -0x70],XMM5 MOVAPS xmmword ptr [RBP + -0x60],XMM6 MOVAPS xmmword ptr [RBP + -0x50],XMM7 LAB_0017646b: MOV qword ptr [RBP + -0xc8],R9 MOV qword ptr [RBP + -0xd0],R8 MOV qword ptr [RBP + -0xd8],RCX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RAX,[RBP + -0xf0] MOV qword ptr [RBP + -0x30],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV dword ptr [RBP + -0x3c],0x30 MOV dword ptr [RBP + -0x40],0x18 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] LEA RCX,[RBP + -0x40] CALL 0x001763f0 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0xf0 POP RBP RET
int8 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; int8 uVar1; int1 local_f8 [24]; int8 local_e0; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int4 local_48; int4 local_44; int1 *local_40; int1 *local_38; int8 local_20; int8 local_18; int8 local_10; if (in_AL != '\0') { local_c8 = param_1; local_b8 = param_2; local_a8 = param_3; local_98 = param_4; local_88 = param_5; local_78 = param_6; local_68 = param_7; local_58 = param_8; } local_38 = local_f8; local_40 = &stack0x00000008; local_44 = 0x30; local_48 = 0x18; local_e0 = param_12; local_d8 = param_13; local_d0 = param_14; local_20 = param_11; local_18 = param_10; local_10 = param_9; uVar1 = my_vsnprintf(param_9,param_10,param_11,&local_48); return uVar1; }
3,864
link_to_file_list
eloqsql/storage/maria/ma_pagecache.c
static void link_to_file_list(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block, PAGECACHE_FILE *file, my_bool unlink_flag) { if (unlink_flag) unlink_changed(block); link_changed(block, &pagecache->file_blocks[FILE_HASH(*file, pagecache)]); if (block->status & PCBLOCK_CHANGED) { block->status&= ~(PCBLOCK_CHANGED | PCBLOCK_DEL_WRITE); block->rec_lsn= LSN_MAX; pagecache->blocks_changed--; pagecache->global_blocks_changed--; } }
O0
c
link_to_file_list: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %cl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movb %al, -0x19(%rbp) cmpb $0x0, -0x19(%rbp) je 0x9b168 movq -0x10(%rbp), %rdi callq 0x9b330 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movq 0x130(%rax), %rsi movq -0x18(%rbp), %rax movl 0x10(%rax), %eax movq -0x8(%rbp), %rcx movq 0x28(%rcx), %rcx subq $0x1, %rcx andq %rcx, %rax shlq $0x3, %rax addq %rax, %rsi callq 0x9b430 movq -0x10(%rbp), %rax movzwl 0x74(%rax), %eax andl $0x20, %eax cmpl $0x0, %eax je 0x9b1f6 movq -0x10(%rbp), %rax movzwl 0x74(%rax), %ecx andl $0xffffff5f, %ecx # imm = 0xFFFFFF5F movw %cx, 0x74(%rax) movq -0x10(%rbp), %rax movabsq $0xffffffffffffff, %rcx # imm = 0xFFFFFFFFFFFFFF movq %rcx, 0x88(%rax) movq -0x8(%rbp), %rax movq 0x58(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x58(%rax) movq -0x8(%rbp), %rax movq 0x168(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x168(%rax) addq $0x20, %rsp popq %rbp retq nopl (%rax)
link_to_file_list: push rbp mov rbp, rsp sub rsp, 20h mov al, cl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_19], al cmp [rbp+var_19], 0 jz short loc_9B168 mov rdi, [rbp+var_10] call unlink_changed loc_9B168: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov rsi, [rax+130h] mov rax, [rbp+var_18] mov eax, [rax+10h] mov rcx, [rbp+var_8] mov rcx, [rcx+28h] sub rcx, 1 and rax, rcx shl rax, 3 add rsi, rax call link_changed mov rax, [rbp+var_10] movzx eax, word ptr [rax+74h] and eax, 20h cmp eax, 0 jz short loc_9B1F6 mov rax, [rbp+var_10] movzx ecx, word ptr [rax+74h] and ecx, 0FFFFFF5Fh mov [rax+74h], cx mov rax, [rbp+var_10] mov rcx, 0FFFFFFFFFFFFFFh mov [rax+88h], rcx mov rax, [rbp+var_8] mov rcx, [rax+58h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+58h], rcx mov rax, [rbp+var_8] mov rcx, [rax+168h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+168h], rcx loc_9B1F6: add rsp, 20h pop rbp retn
_QWORD * link_to_file_list(_QWORD *a1, long long a2, long long a3, char a4) { _QWORD *result; // rax if ( a4 ) unlink_changed(a2); link_changed(a2, 8 * ((a1[5] - 1LL) & *(unsigned int *)(a3 + 16)) + a1[38]); result = (_QWORD *)(*(_WORD *)(a2 + 116) & 0x20); if ( (_DWORD)result ) { *(_WORD *)(a2 + 116) &= 0xFF5Fu; *(_QWORD *)(a2 + 136) = 0xFFFFFFFFFFFFFFLL; --a1[11]; result = a1; --a1[45]; } return result; }
link_to_file_list: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,CL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV byte ptr [RBP + -0x19],AL CMP byte ptr [RBP + -0x19],0x0 JZ 0x0019b168 MOV RDI,qword ptr [RBP + -0x10] CALL 0x0019b330 LAB_0019b168: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x130] MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0x28] SUB RCX,0x1 AND RAX,RCX SHL RAX,0x3 ADD RSI,RAX CALL 0x0019b430 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,word ptr [RAX + 0x74] AND EAX,0x20 CMP EAX,0x0 JZ 0x0019b1f6 MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RAX + 0x74] AND ECX,0xffffff5f MOV word ptr [RAX + 0x74],CX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,0xffffffffffffff MOV qword ptr [RAX + 0x88],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x58] ADD RCX,-0x1 MOV qword ptr [RAX + 0x58],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x168] ADD RCX,-0x1 MOV qword ptr [RAX + 0x168],RCX LAB_0019b1f6: ADD RSP,0x20 POP RBP RET
void link_to_file_list(long param_1,long param_2,long param_3,char param_4) { if (param_4 != '\0') { unlink_changed(param_2); } link_changed(param_2,*(long *)(param_1 + 0x130) + ((ulong)*(uint *)(param_3 + 0x10) & *(long *)(param_1 + 0x28) - 1U) * 8); if ((*(ushort *)(param_2 + 0x74) & 0x20) != 0) { *(ushort *)(param_2 + 0x74) = *(ushort *)(param_2 + 0x74) & 0xff5f; *(int8 *)(param_2 + 0x88) = 0xffffffffffffff; *(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + -1; *(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + -1; } return; }
3,865
mysql_close
eloqsql/libmariadb/libmariadb/mariadb_lib.c
void STDCALL mysql_close(MYSQL *mysql) { if (mysql) /* Some simple safety */ { if (mysql->extension && mysql->extension->conn_hdlr) { MA_CONNECTION_HANDLER *p= mysql->extension->conn_hdlr; if (p->plugin->close) p->plugin->close(mysql); free(p); /* Fix for CONC-294: Since we already called plugin->close function we need to prevent that mysql_close_slow_part (which sends COM_QUIT to the server) will be handled by plugin again. */ mysql->extension->conn_hdlr= NULL; } if (mysql->methods) mysql->methods->db_close(mysql); /* reset the connection in all active statements */ ma_invalidate_stmts(mysql, "mysql_close()"); mysql_close_memory(mysql); mysql_close_options(mysql); ma_clear_session_state(mysql); if (mysql->net.extension) { if (compression_plugin(&mysql->net)) compression_plugin(&mysql->net)->free_ctx(compression_ctx(&mysql->net)); free(mysql->net.extension); } mysql->host_info=mysql->user=mysql->passwd=mysql->db=0; /* Clear pointers for better safety */ memset((char*) &mysql->options, 0, sizeof(mysql->options)); if (mysql->extension) free(mysql->extension); /* Clear pointers for better safety */ mysql->net.extension = NULL; mysql->extension = NULL; mysql->net.pvio= 0; if (mysql->free_me) free(mysql); } return; }
O0
c
mysql_close: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0x40706 movq -0x8(%rbp), %rax cmpq $0x0, 0x4f0(%rax) je 0x405b2 movq -0x8(%rbp), %rax movq 0x4f0(%rax), %rax cmpq $0x0, (%rax) je 0x405b2 movq -0x8(%rbp), %rax movq 0x4f0(%rax), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax cmpq $0x0, 0x60(%rax) je 0x40597 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x60(%rax), %rax movq -0x8(%rbp), %rdi callq *%rax movq -0x10(%rbp), %rdi callq 0x361b0 movq -0x8(%rbp), %rax movq 0x4f0(%rax), %rax movq $0x0, (%rax) movq -0x8(%rbp), %rax cmpq $0x0, 0x4d0(%rax) je 0x405d5 movq -0x8(%rbp), %rax movq 0x4d0(%rax), %rax movq 0x8(%rax), %rax movq -0x8(%rbp), %rdi callq *%rax movq -0x8(%rbp), %rdi leaq 0x88e49(%rip), %rsi # 0xc9429 callq 0x40710 movq -0x8(%rbp), %rdi callq 0x3ff20 movq -0x8(%rbp), %rdi callq 0x40020 movq -0x8(%rbp), %rdi callq 0x40d30 movq -0x8(%rbp), %rax cmpq $0x0, 0x2a0(%rax) je 0x40654 movq -0x8(%rbp), %rax movq 0x2a0(%rax), %rax cmpq $0x0, 0x10(%rax) je 0x40644 movq -0x8(%rbp), %rax movq 0x2a0(%rax), %rax movq 0x10(%rax), %rax movq 0x60(%rax), %rax movq -0x8(%rbp), %rcx movq 0x2a0(%rcx), %rcx movq 0x8(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rax movq 0x2a0(%rax), %rdi callq 0x361b0 movq -0x8(%rbp), %rax movq $0x0, 0x2e8(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x2c0(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x2b8(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x2d8(%rax) movq -0x8(%rbp), %rdi addq $0x390, %rdi # imm = 0x390 xorl %esi, %esi movl $0xf8, %edx callq 0x36300 movq -0x8(%rbp), %rax cmpq $0x0, 0x4f0(%rax) je 0x406c5 movq -0x8(%rbp), %rax movq 0x4f0(%rax), %rdi callq 0x361b0 movq -0x8(%rbp), %rax movq $0x0, 0x2a0(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x4f0(%rax) movq -0x8(%rbp), %rax movq $0x0, (%rax) movq -0x8(%rbp), %rax cmpb $0x0, 0x48c(%rax) je 0x40704 movq -0x8(%rbp), %rdi callq 0x361b0 jmp 0x40706 addq $0x10, %rsp popq %rbp retq nopl (%rax)
mysql_close: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi cmp [rbp+var_8], 0 jz loc_40706 mov rax, [rbp+var_8] cmp qword ptr [rax+4F0h], 0 jz short loc_405B2 mov rax, [rbp+var_8] mov rax, [rax+4F0h] cmp qword ptr [rax], 0 jz short loc_405B2 mov rax, [rbp+var_8] mov rax, [rax+4F0h] mov rax, [rax] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] cmp qword ptr [rax+60h], 0 jz short loc_40597 mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+60h] mov rdi, [rbp+var_8] call rax loc_40597: mov rdi, [rbp+var_10] call _free mov rax, [rbp+var_8] mov rax, [rax+4F0h] mov qword ptr [rax], 0 loc_405B2: mov rax, [rbp+var_8] cmp qword ptr [rax+4D0h], 0 jz short loc_405D5 mov rax, [rbp+var_8] mov rax, [rax+4D0h] mov rax, [rax+8] mov rdi, [rbp+var_8] call rax loc_405D5: mov rdi, [rbp+var_8] lea rsi, aMysqlClose; "mysql_close()" call ma_invalidate_stmts mov rdi, [rbp+var_8] call mysql_close_memory mov rdi, [rbp+var_8] call mysql_close_options mov rdi, [rbp+var_8] call ma_clear_session_state mov rax, [rbp+var_8] cmp qword ptr [rax+2A0h], 0 jz short loc_40654 mov rax, [rbp+var_8] mov rax, [rax+2A0h] cmp qword ptr [rax+10h], 0 jz short loc_40644 mov rax, [rbp+var_8] mov rax, [rax+2A0h] mov rax, [rax+10h] mov rax, [rax+60h] mov rcx, [rbp+var_8] mov rcx, [rcx+2A0h] mov rdi, [rcx+8] call rax loc_40644: mov rax, [rbp+var_8] mov rdi, [rax+2A0h] call _free loc_40654: mov rax, [rbp+var_8] mov qword ptr [rax+2E8h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+2C0h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+2B8h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+2D8h], 0 mov rdi, [rbp+var_8] add rdi, 390h xor esi, esi mov edx, 0F8h call _memset mov rax, [rbp+var_8] cmp qword ptr [rax+4F0h], 0 jz short loc_406C5 mov rax, [rbp+var_8] mov rdi, [rax+4F0h] call _free loc_406C5: mov rax, [rbp+var_8] mov qword ptr [rax+2A0h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+4F0h], 0 mov rax, [rbp+var_8] mov qword ptr [rax], 0 mov rax, [rbp+var_8] cmp byte ptr [rax+48Ch], 0 jz short loc_40704 mov rdi, [rbp+var_8] call _free loc_40704: jmp short $+2 loc_40706: add rsp, 10h pop rbp retn
long long mysql_close(long long a1) { long long result; // rax long long v2; // [rsp+0h] [rbp-10h] if ( a1 ) { if ( *(_QWORD *)(a1 + 1264) && **(_QWORD **)(a1 + 1264) ) { v2 = **(_QWORD **)(a1 + 1264); if ( *(_QWORD *)(*(_QWORD *)v2 + 96LL) ) (*(void ( **)(long long))(*(_QWORD *)v2 + 96LL))(a1); free(v2); **(_QWORD **)(a1 + 1264) = 0LL; } if ( *(_QWORD *)(a1 + 1232) ) (*(void ( **)(long long))(*(_QWORD *)(a1 + 1232) + 8LL))(a1); ma_invalidate_stmts(a1, "mysql_close()"); mysql_close_memory((_QWORD *)a1); mysql_close_options(a1); ma_clear_session_state(a1); if ( *(_QWORD *)(a1 + 672) ) { if ( *(_QWORD *)(*(_QWORD *)(a1 + 672) + 16LL) ) (*(void ( **)(_QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 672) + 16LL) + 96LL))(*(_QWORD *)(*(_QWORD *)(a1 + 672) + 8LL)); free(*(_QWORD *)(a1 + 672)); } *(_QWORD *)(a1 + 744) = 0LL; *(_QWORD *)(a1 + 704) = 0LL; *(_QWORD *)(a1 + 696) = 0LL; *(_QWORD *)(a1 + 728) = 0LL; memset(a1 + 912, 0LL, 248LL); if ( *(_QWORD *)(a1 + 1264) ) free(*(_QWORD *)(a1 + 1264)); *(_QWORD *)(a1 + 672) = 0LL; *(_QWORD *)(a1 + 1264) = 0LL; *(_QWORD *)a1 = 0LL; result = a1; if ( *(_BYTE *)(a1 + 1164) ) return free(a1); } return result; }
mysql_close: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI CMP qword ptr [RBP + -0x8],0x0 JZ 0x00140706 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x4f0],0x0 JZ 0x001405b2 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x4f0] CMP qword ptr [RAX],0x0 JZ 0x001405b2 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x4f0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] CMP qword ptr [RAX + 0x60],0x0 JZ 0x00140597 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x60] MOV RDI,qword ptr [RBP + -0x8] CALL RAX LAB_00140597: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001361b0 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x4f0] MOV qword ptr [RAX],0x0 LAB_001405b2: MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x4d0],0x0 JZ 0x001405d5 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x4d0] MOV RAX,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RBP + -0x8] CALL RAX LAB_001405d5: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x1c9429] CALL 0x00140710 MOV RDI,qword ptr [RBP + -0x8] CALL 0x0013ff20 MOV RDI,qword ptr [RBP + -0x8] CALL 0x00140020 MOV RDI,qword ptr [RBP + -0x8] CALL 0x00140d30 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x2a0],0x0 JZ 0x00140654 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x2a0] CMP qword ptr [RAX + 0x10],0x0 JZ 0x00140644 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x2a0] MOV RAX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RAX + 0x60] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0x2a0] MOV RDI,qword ptr [RCX + 0x8] CALL RAX LAB_00140644: MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x2a0] CALL 0x001361b0 LAB_00140654: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x2e8],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x2c0],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x2b8],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x2d8],0x0 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x390 XOR ESI,ESI MOV EDX,0xf8 CALL 0x00136300 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x4f0],0x0 JZ 0x001406c5 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x4f0] CALL 0x001361b0 LAB_001406c5: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x2a0],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x4f0],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x48c],0x0 JZ 0x00140704 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001361b0 LAB_00140704: JMP 0x00140706 LAB_00140706: ADD RSP,0x10 POP RBP RET
void mysql_close(int8 *param_1) { long *__ptr; if (param_1 != (int8 *)0x0) { if ((param_1[0x9e] != 0) && (*(long *)param_1[0x9e] != 0)) { __ptr = *(long **)param_1[0x9e]; if (*(long *)(*__ptr + 0x60) != 0) { (**(code **)(*__ptr + 0x60))(param_1); } free(__ptr); *(int8 *)param_1[0x9e] = 0; } if (param_1[0x9a] != 0) { (**(code **)(param_1[0x9a] + 8))(param_1); } ma_invalidate_stmts(param_1); mysql_close_memory(param_1); mysql_close_options(param_1); ma_clear_session_state(param_1); if (param_1[0x54] != 0) { if (*(long *)(param_1[0x54] + 0x10) != 0) { (**(code **)(*(long *)(param_1[0x54] + 0x10) + 0x60))(*(int8 *)(param_1[0x54] + 8)); } free((void *)param_1[0x54]); } param_1[0x5d] = 0; param_1[0x58] = 0; param_1[0x57] = 0; param_1[0x5b] = 0; memset(param_1 + 0x72,0,0xf8); if (param_1[0x9e] != 0) { free((void *)param_1[0x9e]); } param_1[0x54] = 0; param_1[0x9e] = 0; *param_1 = 0; if (*(char *)((long)param_1 + 0x48c) != '\0') { free(param_1); } } return; }
3,866
mysql_close
eloqsql/libmariadb/libmariadb/mariadb_lib.c
void STDCALL mysql_close(MYSQL *mysql) { if (mysql) /* Some simple safety */ { if (mysql->extension && mysql->extension->conn_hdlr) { MA_CONNECTION_HANDLER *p= mysql->extension->conn_hdlr; if (p->plugin->close) p->plugin->close(mysql); free(p); /* Fix for CONC-294: Since we already called plugin->close function we need to prevent that mysql_close_slow_part (which sends COM_QUIT to the server) will be handled by plugin again. */ mysql->extension->conn_hdlr= NULL; } if (mysql->methods) mysql->methods->db_close(mysql); /* reset the connection in all active statements */ ma_invalidate_stmts(mysql, "mysql_close()"); mysql_close_memory(mysql); mysql_close_options(mysql); ma_clear_session_state(mysql); if (mysql->net.extension) { if (compression_plugin(&mysql->net)) compression_plugin(&mysql->net)->free_ctx(compression_ctx(&mysql->net)); free(mysql->net.extension); } mysql->host_info=mysql->user=mysql->passwd=mysql->db=0; /* Clear pointers for better safety */ memset((char*) &mysql->options, 0, sizeof(mysql->options)); if (mysql->extension) free(mysql->extension); /* Clear pointers for better safety */ mysql->net.extension = NULL; mysql->extension = NULL; mysql->net.pvio= 0; if (mysql->free_me) free(mysql); } return; }
O3
c
mysql_close: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx testq %rdi, %rdi je 0x3dcb9 movq %rdi, %rbx movq 0x4f0(%rdi), %rax testq %rax, %rax je 0x3dbf2 movq (%rax), %r14 testq %r14, %r14 je 0x3dbf2 movq (%r14), %rax movq 0x60(%rax), %rax testq %rax, %rax je 0x3dbdc movq %rbx, %rdi callq *%rax movq %r14, %rdi callq 0x36190 movq 0x4f0(%rbx), %rax movq $0x0, (%rax) movq 0x4d0(%rbx), %rax testq %rax, %rax je 0x3dc04 movq %rbx, %rdi callq *0x8(%rax) leaq 0x55808(%rip), %rsi # 0x93413 movq %rbx, %rdi callq 0x3dcbe movq %rbx, %rdi callq 0x3d75c movq %rbx, %rdi callq 0x3d7e8 movq %rbx, %rdi callq 0x3e0cf movq 0x2a0(%rbx), %rdi testq %rdi, %rdi je 0x3dc53 movq 0x10(%rdi), %rax testq %rax, %rax je 0x3dc4e movq 0x8(%rdi), %rdi callq *0x60(%rax) movq 0x2a0(%rbx), %rdi callq 0x36190 xorl %eax, %eax movq %rax, 0x2e8(%rbx) movq %rax, 0x2d8(%rbx) leaq 0x390(%rbx), %rdi xorps %xmm0, %xmm0 movups %xmm0, 0x2b8(%rbx) movl $0xf8, %edx xorl %esi, %esi callq 0x36300 movq 0x4f0(%rbx), %rdi testq %rdi, %rdi je 0x3dc91 callq 0x36190 xorl %eax, %eax movq %rax, 0x2a0(%rbx) movq %rax, 0x4f0(%rbx) movq %rax, (%rbx) cmpb $0x0, 0x48c(%rbx) je 0x3dcb9 movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0x36190 popq %rbx popq %r14 popq %rbp retq
mysql_close: push rbp mov rbp, rsp push r14 push rbx test rdi, rdi jz loc_3DCB9 mov rbx, rdi mov rax, [rdi+4F0h] test rax, rax jz short loc_3DBF2 mov r14, [rax] test r14, r14 jz short loc_3DBF2 mov rax, [r14] mov rax, [rax+60h] test rax, rax jz short loc_3DBDC mov rdi, rbx call rax loc_3DBDC: mov rdi, r14 call _free mov rax, [rbx+4F0h] mov qword ptr [rax], 0 loc_3DBF2: mov rax, [rbx+4D0h] test rax, rax jz short loc_3DC04 mov rdi, rbx call qword ptr [rax+8] loc_3DC04: lea rsi, aMysqlClose; "mysql_close()" mov rdi, rbx call ma_invalidate_stmts mov rdi, rbx call mysql_close_memory mov rdi, rbx call mysql_close_options mov rdi, rbx call ma_clear_session_state mov rdi, [rbx+2A0h] test rdi, rdi jz short loc_3DC53 mov rax, [rdi+10h] test rax, rax jz short loc_3DC4E mov rdi, [rdi+8] call qword ptr [rax+60h] mov rdi, [rbx+2A0h] loc_3DC4E: call _free loc_3DC53: xor eax, eax mov [rbx+2E8h], rax mov [rbx+2D8h], rax lea rdi, [rbx+390h] xorps xmm0, xmm0 movups xmmword ptr [rbx+2B8h], xmm0 mov edx, 0F8h xor esi, esi call _memset mov rdi, [rbx+4F0h] test rdi, rdi jz short loc_3DC91 call _free loc_3DC91: xor eax, eax mov [rbx+2A0h], rax mov [rbx+4F0h], rax mov [rbx], rax cmp byte ptr [rbx+48Ch], 0 jz short loc_3DCB9 mov rdi, rbx pop rbx pop r14 pop rbp jmp _free loc_3DCB9: pop rbx pop r14 pop rbp retn
void mysql_close(long long a1) { long long *v2; // rax long long v3; // r14 void ( *v4)(long long); // rax long long v5; // rax long long v6; // rdi long long v7; // rax long long v8; // rdi if ( a1 ) { v2 = *(long long **)(a1 + 1264); if ( v2 ) { v3 = *v2; if ( *v2 ) { v4 = *(void ( **)(long long))(*(_QWORD *)v3 + 96LL); if ( v4 ) v4(a1); free(v3); **(_QWORD **)(a1 + 1264) = 0LL; } } v5 = *(_QWORD *)(a1 + 1232); if ( v5 ) (*(void ( **)(long long))(v5 + 8))(a1); ma_invalidate_stmts(a1, "mysql_close()"); mysql_close_memory((_QWORD *)a1); mysql_close_options((_QWORD *)a1); ma_clear_session_state(a1); v6 = *(_QWORD *)(a1 + 672); if ( v6 ) { v7 = *(_QWORD *)(v6 + 16); if ( v7 ) { (*(void ( **)(_QWORD))(v7 + 96))(*(_QWORD *)(v6 + 8)); v6 = *(_QWORD *)(a1 + 672); } free(v6); } *(_QWORD *)(a1 + 744) = 0LL; *(_QWORD *)(a1 + 728) = 0LL; *(_OWORD *)(a1 + 696) = 0LL; memset(a1 + 912, 0LL, 248LL); v8 = *(_QWORD *)(a1 + 1264); if ( v8 ) free(v8); *(_QWORD *)(a1 + 672) = 0LL; *(_QWORD *)(a1 + 1264) = 0LL; *(_QWORD *)a1 = 0LL; if ( *(_BYTE *)(a1 + 1164) ) free(a1); } }
mysql_close: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX TEST RDI,RDI JZ 0x0013dcb9 MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x4f0] TEST RAX,RAX JZ 0x0013dbf2 MOV R14,qword ptr [RAX] TEST R14,R14 JZ 0x0013dbf2 MOV RAX,qword ptr [R14] MOV RAX,qword ptr [RAX + 0x60] TEST RAX,RAX JZ 0x0013dbdc MOV RDI,RBX CALL RAX LAB_0013dbdc: MOV RDI,R14 CALL 0x00136190 MOV RAX,qword ptr [RBX + 0x4f0] MOV qword ptr [RAX],0x0 LAB_0013dbf2: MOV RAX,qword ptr [RBX + 0x4d0] TEST RAX,RAX JZ 0x0013dc04 MOV RDI,RBX CALL qword ptr [RAX + 0x8] LAB_0013dc04: LEA RSI,[0x193413] MOV RDI,RBX CALL 0x0013dcbe MOV RDI,RBX CALL 0x0013d75c MOV RDI,RBX CALL 0x0013d7e8 MOV RDI,RBX CALL 0x0013e0cf MOV RDI,qword ptr [RBX + 0x2a0] TEST RDI,RDI JZ 0x0013dc53 MOV RAX,qword ptr [RDI + 0x10] TEST RAX,RAX JZ 0x0013dc4e MOV RDI,qword ptr [RDI + 0x8] CALL qword ptr [RAX + 0x60] MOV RDI,qword ptr [RBX + 0x2a0] LAB_0013dc4e: CALL 0x00136190 LAB_0013dc53: XOR EAX,EAX MOV qword ptr [RBX + 0x2e8],RAX MOV qword ptr [RBX + 0x2d8],RAX LEA RDI,[RBX + 0x390] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x2b8],XMM0 MOV EDX,0xf8 XOR ESI,ESI CALL 0x00136300 MOV RDI,qword ptr [RBX + 0x4f0] TEST RDI,RDI JZ 0x0013dc91 CALL 0x00136190 LAB_0013dc91: XOR EAX,EAX MOV qword ptr [RBX + 0x2a0],RAX MOV qword ptr [RBX + 0x4f0],RAX MOV qword ptr [RBX],RAX CMP byte ptr [RBX + 0x48c],0x0 JZ 0x0013dcb9 MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x00136190 LAB_0013dcb9: POP RBX POP R14 POP RBP RET
void mysql_close(int8 *param_1) { long *__ptr; void *__ptr_00; if (param_1 != (int8 *)0x0) { if (((int8 *)param_1[0x9e] != (int8 *)0x0) && (__ptr = *(long **)param_1[0x9e], __ptr != (long *)0x0)) { if (*(code **)(*__ptr + 0x60) != (code *)0x0) { (**(code **)(*__ptr + 0x60))(param_1); } free(__ptr); *(int8 *)param_1[0x9e] = 0; } if (param_1[0x9a] != 0) { (**(code **)(param_1[0x9a] + 8))(param_1); } ma_invalidate_stmts(param_1); mysql_close_memory(param_1); mysql_close_options(param_1); ma_clear_session_state(param_1); __ptr_00 = (void *)param_1[0x54]; if (__ptr_00 != (void *)0x0) { if (*(long *)((long)__ptr_00 + 0x10) != 0) { (**(code **)(*(long *)((long)__ptr_00 + 0x10) + 0x60))(*(int8 *)((long)__ptr_00 + 8)); __ptr_00 = (void *)param_1[0x54]; } free(__ptr_00); } param_1[0x5d] = 0; param_1[0x5b] = 0; param_1[0x57] = 0; param_1[0x58] = 0; memset(param_1 + 0x72,0,0xf8); if ((void *)param_1[0x9e] != (void *)0x0) { free((void *)param_1[0x9e]); } param_1[0x54] = 0; param_1[0x9e] = 0; *param_1 = 0; if (*(char *)((long)param_1 + 0x48c) != '\0') { free(param_1); return; } } return; }
3,867
func_uni_gb2312_onechar
eloqsql/strings/ctype-gb2312.c
static int func_uni_gb2312_onechar(int code){ if ((code>=0x00A4)&&(code<=0x01DC)) return(tab_uni_gb23120[code-0x00A4]); if ((code>=0x02C7)&&(code<=0x0451)) return(tab_uni_gb23121[code-0x02C7]); if ((code>=0x2015)&&(code<=0x2312)) return(tab_uni_gb23122[code-0x2015]); if ((code>=0x2460)&&(code<=0x2642)) return(tab_uni_gb23123[code-0x2460]); if ((code>=0x3000)&&(code<=0x3129)) return(tab_uni_gb23124[code-0x3000]); if ((code>=0x3220)&&(code<=0x3229)) return(tab_uni_gb23125[code-0x3220]); if ((code>=0x4E00)&&(code<=0x9B54)) return(tab_uni_gb23126[code-0x4E00]); if ((code>=0x9C7C)&&(code<=0x9CE2)) return(tab_uni_gb23127[code-0x9C7C]); if ((code>=0x9E1F)&&(code<=0x9FA0)) return(tab_uni_gb23128[code-0x9E1F]); if ((code>=0xFF01)&&(code<=0xFFE5)) return(tab_uni_gb23129[code-0xFF01]); return(0); }
O0
c
func_uni_gb2312_onechar: pushq %rbp movq %rsp, %rbp movl %edi, -0x8(%rbp) cmpl $0xa4, -0x8(%rbp) jl 0xf0da7 cmpl $0x1dc, -0x8(%rbp) # imm = 0x1DC jg 0xf0da7 movl -0x8(%rbp), %eax subl $0xa4, %eax movslq %eax, %rcx leaq 0xeb085(%rip), %rax # 0x1dbe20 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 cmpl $0x2c7, -0x8(%rbp) # imm = 0x2C7 jl 0xf0dd7 cmpl $0x451, -0x8(%rbp) # imm = 0x451 jg 0xf0dd7 movl -0x8(%rbp), %eax subl $0x2c7, %eax # imm = 0x2C7 movslq %eax, %rcx leaq 0xeb2d5(%rip), %rax # 0x1dc0a0 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 cmpl $0x2015, -0x8(%rbp) # imm = 0x2015 jl 0xf0e07 cmpl $0x2312, -0x8(%rbp) # imm = 0x2312 jg 0xf0e07 movl -0x8(%rbp), %eax subl $0x2015, %eax # imm = 0x2015 movslq %eax, %rcx leaq 0xeb5c5(%rip), %rax # 0x1dc3c0 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 cmpl $0x2460, -0x8(%rbp) # imm = 0x2460 jl 0xf0e37 cmpl $0x2642, -0x8(%rbp) # imm = 0x2642 jg 0xf0e37 movl -0x8(%rbp), %eax subl $0x2460, %eax # imm = 0x2460 movslq %eax, %rcx leaq 0xebb95(%rip), %rax # 0x1dc9c0 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 cmpl $0x3000, -0x8(%rbp) # imm = 0x3000 jl 0xf0e67 cmpl $0x3129, -0x8(%rbp) # imm = 0x3129 jg 0xf0e67 movl -0x8(%rbp), %eax subl $0x3000, %eax # imm = 0x3000 movslq %eax, %rcx leaq 0xebf35(%rip), %rax # 0x1dcd90 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 cmpl $0x3220, -0x8(%rbp) # imm = 0x3220 jl 0xf0e97 cmpl $0x3229, -0x8(%rbp) # imm = 0x3229 jg 0xf0e97 movl -0x8(%rbp), %eax subl $0x3220, %eax # imm = 0x3220 movslq %eax, %rcx leaq 0xec165(%rip), %rax # 0x1dcff0 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 cmpl $0x4e00, -0x8(%rbp) # imm = 0x4E00 jl 0xf0ec7 cmpl $0x9b54, -0x8(%rbp) # imm = 0x9B54 jg 0xf0ec7 movl -0x8(%rbp), %eax subl $0x4e00, %eax # imm = 0x4E00 movslq %eax, %rcx leaq 0xec155(%rip), %rax # 0x1dd010 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 cmpl $0x9c7c, -0x8(%rbp) # imm = 0x9C7C jl 0xf0ef4 cmpl $0x9ce2, -0x8(%rbp) # imm = 0x9CE2 jg 0xf0ef4 movl -0x8(%rbp), %eax subl $0x9c7c, %eax # imm = 0x9C7C movslq %eax, %rcx leaq 0xf5bd5(%rip), %rax # 0x1e6ac0 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 cmpl $0x9e1f, -0x8(%rbp) # imm = 0x9E1F jl 0xf0f21 cmpl $0x9fa0, -0x8(%rbp) # imm = 0x9FA0 jg 0xf0f21 movl -0x8(%rbp), %eax subl $0x9e1f, %eax # imm = 0x9E1F movslq %eax, %rcx leaq 0xf5c78(%rip), %rax # 0x1e6b90 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 cmpl $0xff01, -0x8(%rbp) # imm = 0xFF01 jl 0xf0f4e cmpl $0xffe5, -0x8(%rbp) # imm = 0xFFE5 jg 0xf0f4e movl -0x8(%rbp), %eax subl $0xff01, %eax # imm = 0xFF01 movslq %eax, %rcx leaq 0xf5f5b(%rip), %rax # 0x1e6ea0 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0xf0f55 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
func_uni_gb2312_onechar: push rbp mov rbp, rsp mov [rbp+var_8], edi cmp [rbp+var_8], 0A4h jl short loc_F0DA7 cmp [rbp+var_8], 1DCh jg short loc_F0DA7 mov eax, [rbp+var_8] sub eax, 0A4h movsxd rcx, eax lea rax, tab_uni_gb23120 movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp loc_F0F55 loc_F0DA7: cmp [rbp+var_8], 2C7h jl short loc_F0DD7 cmp [rbp+var_8], 451h jg short loc_F0DD7 mov eax, [rbp+var_8] sub eax, 2C7h movsxd rcx, eax lea rax, tab_uni_gb23121 movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp loc_F0F55 loc_F0DD7: cmp [rbp+var_8], 2015h jl short loc_F0E07 cmp [rbp+var_8], 2312h jg short loc_F0E07 mov eax, [rbp+var_8] sub eax, 2015h movsxd rcx, eax lea rax, tab_uni_gb23122; "*!,!" movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp loc_F0F55 loc_F0E07: cmp [rbp+var_8], 2460h jl short loc_F0E37 cmp [rbp+var_8], 2642h jg short loc_F0E37 mov eax, [rbp+var_8] sub eax, 2460h movsxd rcx, eax lea rax, tab_uni_gb23123; "Y\"Z\"[\"\\\"]\"^\"_\"`\"a\"b\"" movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp loc_F0F55 loc_F0E37: cmp [rbp+var_8], 3000h jl short loc_F0E67 cmp [rbp+var_8], 3129h jg short loc_F0E67 mov eax, [rbp+var_8] sub eax, 3000h movsxd rcx, eax lea rax, tab_uni_gb23124; "!!\"!#!(!" movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp loc_F0F55 loc_F0E67: cmp [rbp+var_8], 3220h jl short loc_F0E97 cmp [rbp+var_8], 3229h jg short loc_F0E97 mov eax, [rbp+var_8] sub eax, 3220h movsxd rcx, eax lea rax, tab_uni_gb23125; "e\"f\"g\"h\"i\"j\"k\"l\"m\"n\"" movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp loc_F0F55 loc_F0E97: cmp [rbp+var_8], 4E00h jl short loc_F0EC7 cmp [rbp+var_8], 9B54h jg short loc_F0EC7 mov eax, [rbp+var_8] sub eax, 4E00h movsxd rcx, eax lea rax, tab_uni_gb23126; ";R!6" movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp loc_F0F55 loc_F0EC7: cmp [rbp+var_8], 9C7Ch jl short loc_F0EF4 cmp [rbp+var_8], 9CE2h jg short loc_F0EF4 mov eax, [rbp+var_8] sub eax, 9C7Ch movsxd rcx, eax lea rax, tab_uni_gb23127 movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp short loc_F0F55 loc_F0EF4: cmp [rbp+var_8], 9E1Fh jl short loc_F0F21 cmp [rbp+var_8], 9FA0h jg short loc_F0F21 mov eax, [rbp+var_8] sub eax, 9E1Fh movsxd rcx, eax lea rax, tab_uni_gb23128; "qD/p&<0pyC" movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp short loc_F0F55 loc_F0F21: cmp [rbp+var_8], 0FF01h jl short loc_F0F4E cmp [rbp+var_8], 0FFE5h jg short loc_F0F4E mov eax, [rbp+var_8] sub eax, 0FF01h movsxd rcx, eax lea rax, tab_uni_gb23129; "!#\"###g!%#&#'#(#)#*#+#,#-#.#/#0#1#2#3#"... movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp short loc_F0F55 loc_F0F4E: mov [rbp+var_4], 0 loc_F0F55: mov eax, [rbp+var_4] pop rbp retn
long long func_uni_gb2312_onechar(int a1) { if ( a1 < 164 || a1 > 476 ) { if ( a1 < 711 || a1 > 1105 ) { if ( a1 < 8213 || a1 > 8978 ) { if ( a1 < 9312 || a1 > 9794 ) { if ( a1 < 12288 || a1 > 12585 ) { if ( a1 < 12832 || a1 > 12841 ) { if ( a1 < 19968 || a1 > 39764 ) { if ( a1 < 40060 || a1 > 40162 ) { if ( a1 < 40479 || a1 > 40864 ) { if ( a1 < 65281 || a1 > 65509 ) return 0; else return tab_uni_gb23129[a1 - 65281]; } else { return *(unsigned __int16 *)&tab_uni_gb23128[2 * a1 - 80958]; } } else { return tab_uni_gb23127[a1 - 40060]; } } else { return *(unsigned __int16 *)&tab_uni_gb23126[2 * a1 - 39936]; } } else { return *(unsigned __int16 *)&tab_uni_gb23125[2 * a1 - 25664]; } } else { return *(unsigned __int16 *)&tab_uni_gb23124[2 * a1 - 24576]; } } else { return tab_uni_gb23123[a1 - 9312]; } } else { return *(unsigned __int16 *)&tab_uni_gb23122[2 * a1 - 16426]; } } else { return tab_uni_gb23121[a1 - 711]; } } else { return tab_uni_gb23120[a1 - 164]; } }
func_uni_gb2312_onechar: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x8],EDI CMP dword ptr [RBP + -0x8],0xa4 JL 0x001f0da7 CMP dword ptr [RBP + -0x8],0x1dc JG 0x001f0da7 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0xa4 MOVSXD RCX,EAX LEA RAX,[0x2dbe20] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0da7: CMP dword ptr [RBP + -0x8],0x2c7 JL 0x001f0dd7 CMP dword ptr [RBP + -0x8],0x451 JG 0x001f0dd7 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x2c7 MOVSXD RCX,EAX LEA RAX,[0x2dc0a0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0dd7: CMP dword ptr [RBP + -0x8],0x2015 JL 0x001f0e07 CMP dword ptr [RBP + -0x8],0x2312 JG 0x001f0e07 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x2015 MOVSXD RCX,EAX LEA RAX,[0x2dc3c0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0e07: CMP dword ptr [RBP + -0x8],0x2460 JL 0x001f0e37 CMP dword ptr [RBP + -0x8],0x2642 JG 0x001f0e37 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x2460 MOVSXD RCX,EAX LEA RAX,[0x2dc9c0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0e37: CMP dword ptr [RBP + -0x8],0x3000 JL 0x001f0e67 CMP dword ptr [RBP + -0x8],0x3129 JG 0x001f0e67 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x3000 MOVSXD RCX,EAX LEA RAX,[0x2dcd90] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0e67: CMP dword ptr [RBP + -0x8],0x3220 JL 0x001f0e97 CMP dword ptr [RBP + -0x8],0x3229 JG 0x001f0e97 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x3220 MOVSXD RCX,EAX LEA RAX,[0x2dcff0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0e97: CMP dword ptr [RBP + -0x8],0x4e00 JL 0x001f0ec7 CMP dword ptr [RBP + -0x8],0x9b54 JG 0x001f0ec7 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x4e00 MOVSXD RCX,EAX LEA RAX,[0x2dd010] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0ec7: CMP dword ptr [RBP + -0x8],0x9c7c JL 0x001f0ef4 CMP dword ptr [RBP + -0x8],0x9ce2 JG 0x001f0ef4 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x9c7c MOVSXD RCX,EAX LEA RAX,[0x2e6ac0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0ef4: CMP dword ptr [RBP + -0x8],0x9e1f JL 0x001f0f21 CMP dword ptr [RBP + -0x8],0x9fa0 JG 0x001f0f21 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x9e1f MOVSXD RCX,EAX LEA RAX,[0x2e6b90] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0f21: CMP dword ptr [RBP + -0x8],0xff01 JL 0x001f0f4e CMP dword ptr [RBP + -0x8],0xffe5 JG 0x001f0f4e MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0xff01 MOVSXD RCX,EAX LEA RAX,[0x2e6ea0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x001f0f55 LAB_001f0f4e: MOV dword ptr [RBP + -0x4],0x0 LAB_001f0f55: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int2 func_uni_gb2312_onechar(int param_1) { int2 uVar1; if ((param_1 < 0xa4) || (0x1dc < param_1)) { if ((param_1 < 0x2c7) || (0x451 < param_1)) { if ((param_1 < 0x2015) || (0x2312 < param_1)) { if ((param_1 < 0x2460) || (0x2642 < param_1)) { if ((param_1 < 0x3000) || (0x3129 < param_1)) { if ((param_1 < 0x3220) || (0x3229 < param_1)) { if ((param_1 < 0x4e00) || (0x9b54 < param_1)) { if ((param_1 < 0x9c7c) || (0x9ce2 < param_1)) { if ((param_1 < 0x9e1f) || (0x9fa0 < param_1)) { if ((param_1 < 0xff01) || (0xffe5 < param_1)) { uVar1 = 0; } else { uVar1 = *(int2 *)(tab_uni_gb23129 + (long)(param_1 + -0xff01) * 2); } } else { uVar1 = *(int2 *)(tab_uni_gb23128 + (long)(param_1 + -0x9e1f) * 2); } } else { uVar1 = *(int2 *)(tab_uni_gb23127 + (long)(param_1 + -0x9c7c) * 2); } } else { uVar1 = *(int2 *)(&tab_uni_gb23126 + (long)(param_1 + -0x4e00) * 2); } } else { uVar1 = *(int2 *)(tab_uni_gb23125 + (long)(param_1 + -0x3220) * 2); } } else { uVar1 = *(int2 *)(tab_uni_gb23124 + (long)(param_1 + -0x3000) * 2); } } else { uVar1 = *(int2 *)(tab_uni_gb23123 + (long)(param_1 + -0x2460) * 2); } } else { uVar1 = *(int2 *)(tab_uni_gb23122 + (long)(param_1 + -0x2015) * 2); } } else { uVar1 = *(int2 *)(tab_uni_gb23121 + (long)(param_1 + -0x2c7) * 2); } } else { uVar1 = *(int2 *)(tab_uni_gb23120 + (long)(param_1 + -0xa4) * 2); } return uVar1; }
3,868
js_array_cmp_generic
bluesky950520[P]quickjs/quickjs.c
static int js_array_cmp_generic(const void *a, const void *b, void *opaque) { struct array_sort_context *psc = opaque; JSContext *ctx = psc->ctx; JSValue argv[2]; JSValue res; ValueSlot *ap = (ValueSlot *)(void *)a; ValueSlot *bp = (ValueSlot *)(void *)b; int cmp; if (psc->exception) return 0; if (psc->has_method) { /* custom sort function is specified as returning 0 for identical * objects: avoid method call overhead. */ if (!memcmp(&ap->val, &bp->val, sizeof(ap->val))) goto cmp_same; argv[0] = ap->val; argv[1] = bp->val; res = JS_Call(ctx, psc->method, JS_UNDEFINED, 2, argv); if (JS_IsException(res)) goto exception; if (JS_VALUE_GET_TAG(res) == JS_TAG_INT) { int val = JS_VALUE_GET_INT(res); cmp = (val > 0) - (val < 0); } else { double val; if (JS_ToFloat64Free(ctx, &val, res) < 0) goto exception; cmp = (val > 0) - (val < 0); } } else { /* Not supposed to bypass ToString even for identical objects as * tested in test262/test/built-ins/Array/prototype/sort/bug_596_1.js */ if (!ap->str) { JSValue str = JS_ToString(ctx, ap->val); if (JS_IsException(str)) goto exception; ap->str = JS_VALUE_GET_STRING(str); } if (!bp->str) { JSValue str = JS_ToString(ctx, bp->val); if (JS_IsException(str)) goto exception; bp->str = JS_VALUE_GET_STRING(str); } cmp = js_string_compare(ap->str, bp->str); } if (cmp != 0) return cmp; cmp_same: /* make sort stable: compare array offsets */ return (ap->pos > bp->pos) - (ap->pos < bp->pos); exception: psc->exception = 1; return 0; }
O1
c
js_array_cmp_generic: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp xorl %ebp, %ebp cmpl $0x0, 0x8(%rdx) je 0x7824f movl %ebp, %eax addq $0x50, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 movq (%rdx), %r12 cmpl $0x0, 0xc(%rdx) je 0x78302 movdqu (%r14), %xmm0 movdqu (%rbx), %xmm1 pcmpeqb %xmm0, %xmm1 pmovmskb %xmm1, %eax cmpl $0xffff, %eax # imm = 0xFFFF je 0x7832b movups (%r14), %xmm0 leaq 0x30(%rsp), %rax movaps %xmm0, (%rax) movups (%rbx), %xmm0 movaps %xmm0, 0x10(%rax) movq 0x10(%r15), %rsi movq 0x18(%r15), %rdx movl $0x0, 0x20(%rsp) movq $0x3, 0x28(%rsp) movupd 0x20(%rsp), %xmm0 movupd %xmm0, (%rsp) movq %rax, 0x10(%rsp) movl $0x2, 0x18(%rsp) movl $0x3, %r8d movq %r12, %rdi xorl %ecx, %ecx movl $0x2, %r9d callq 0x284ca movq %rax, %rcx movq %rdx, %rax cmpl $0x6, %eax je 0x78427 testl %eax, %eax jne 0x78382 movl %ecx, %edx sarl $0x1f, %edx xorl %eax, %eax testl %ecx, %ecx setne %al orl %edx, %eax jmp 0x78321 cmpq $0x0, 0x10(%r14) je 0x78345 cmpq $0x0, 0x10(%rbx) je 0x78396 movq 0x10(%r14), %rdi movq 0x10(%rbx), %rsi callq 0x42edf movl %eax, %ebp testl %eax, %eax jne 0x78240 movq 0x18(%r14), %rax xorl %ebp, %ebp xorl %ecx, %ecx cmpq 0x18(%rbx), %rax setg %bpl setl %cl subl %ecx, %ebp jmp 0x78240 movq (%r14), %rsi movq 0x8(%r14), %rdx movq %r12, %rdi xorl %ecx, %ecx callq 0x27add movq %rax, 0x30(%rsp) movl $0x3, %eax cmpl $0x6, %edx je 0x78370 movq 0x30(%rsp), %rax movq %rax, 0x10(%r14) xorl %eax, %eax cmpl $0x3, %eax je 0x78427 testl %eax, %eax je 0x78309 jmp 0x78240 cmpl $0x2, %eax ja 0x783d3 xorps %xmm0, %xmm0 cvtsi2sd %ecx, %xmm0 movsd %xmm0, 0x20(%rsp) jmp 0x783f6 movq (%rbx), %rsi movq 0x8(%rbx), %rdx movq %r12, %rdi xorl %ecx, %ecx callq 0x27add movq %rax, 0x30(%rsp) movl $0x3, %eax cmpl $0x6, %edx je 0x783c1 movq 0x30(%rsp), %rax movq %rax, 0x10(%rbx) xorl %eax, %eax cmpl $0x3, %eax je 0x78427 testl %eax, %eax je 0x78314 jmp 0x78240 cmpl $0x7, %eax jne 0x783df movq %rcx, 0x20(%rsp) jmp 0x783f6 leaq 0x20(%rsp), %rsi movq %r12, %rdi movq %rcx, %rdx movq %rax, %rcx callq 0x3df2f testl %eax, %eax js 0x78434 movsd 0x20(%rsp), %xmm0 pxor %xmm1, %xmm1 xorl %eax, %eax ucomisd %xmm1, %xmm0 seta %al xorl %ecx, %ecx ucomisd %xmm0, %xmm1 seta %cl subl %ecx, %eax xorl %ecx, %ecx testl %ecx, %ecx je 0x78321 cmpl $0x3, %ecx jne 0x78240 movl $0x1, 0x8(%r15) jmp 0x78240 movl $0x3, %ecx jmp 0x78416
js_array_cmp_generic: push rbp push r15 push r14 push r12 push rbx sub rsp, 50h xor ebp, ebp cmp dword ptr [rdx+8], 0 jz short loc_7824F loc_78240: mov eax, ebp add rsp, 50h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_7824F: mov r15, rdx mov rbx, rsi mov r14, rdi mov r12, [rdx] cmp dword ptr [rdx+0Ch], 0 jz loc_78302 movdqu xmm0, xmmword ptr [r14] movdqu xmm1, xmmword ptr [rbx] pcmpeqb xmm1, xmm0 pmovmskb eax, xmm1 cmp eax, 0FFFFh jz loc_7832B movups xmm0, xmmword ptr [r14] lea rax, [rsp+78h+var_48] movaps xmmword ptr [rax], xmm0 movups xmm0, xmmword ptr [rbx] movaps xmmword ptr [rax+10h], xmm0 mov rsi, [r15+10h] mov rdx, [r15+18h] mov dword ptr [rsp+78h+var_58], 0 mov qword ptr [rsp+78h+var_58+8], 3 movupd xmm0, [rsp+78h+var_58] movupd [rsp+78h+var_78], xmm0 mov [rsp+78h+var_68], rax mov [rsp+78h+var_60], 2 mov r8d, 3 mov rdi, r12 xor ecx, ecx mov r9d, 2 call JS_CallInternal mov rcx, rax mov rax, rdx cmp eax, 6 jz loc_78427 test eax, eax jnz loc_78382 mov edx, ecx sar edx, 1Fh xor eax, eax test ecx, ecx setnz al or eax, edx jmp short loc_78321 loc_78302: cmp qword ptr [r14+10h], 0 jz short loc_78345 loc_78309: cmp qword ptr [rbx+10h], 0 jz loc_78396 loc_78314: mov rdi, [r14+10h] mov rsi, [rbx+10h] call js_string_compare loc_78321: mov ebp, eax test eax, eax jnz loc_78240 loc_7832B: mov rax, [r14+18h] xor ebp, ebp xor ecx, ecx cmp rax, [rbx+18h] setnle bpl setl cl sub ebp, ecx jmp loc_78240 loc_78345: mov rsi, [r14] mov rdx, [r14+8] mov rdi, r12 xor ecx, ecx call JS_ToStringInternal mov [rsp+78h+var_48], rax mov eax, 3 cmp edx, 6 jz short loc_78370 mov rax, [rsp+78h+var_48] mov [r14+10h], rax xor eax, eax loc_78370: cmp eax, 3 jz loc_78427 test eax, eax jz short loc_78309 jmp loc_78240 loc_78382: cmp eax, 2 ja short loc_783D3 xorps xmm0, xmm0 cvtsi2sd xmm0, ecx movsd qword ptr [rsp+78h+var_58], xmm0 jmp short loc_783F6 loc_78396: mov rsi, [rbx] mov rdx, [rbx+8] mov rdi, r12 xor ecx, ecx call JS_ToStringInternal mov [rsp+78h+var_48], rax mov eax, 3 cmp edx, 6 jz short loc_783C1 mov rax, [rsp+78h+var_48] mov [rbx+10h], rax xor eax, eax loc_783C1: cmp eax, 3 jz short loc_78427 test eax, eax jz loc_78314 jmp loc_78240 loc_783D3: cmp eax, 7 jnz short loc_783DF mov qword ptr [rsp+78h+var_58], rcx jmp short loc_783F6 loc_783DF: lea rsi, [rsp+78h+var_58] mov rdi, r12 mov rdx, rcx mov rcx, rax call __JS_ToFloat64Free test eax, eax js short loc_78434 loc_783F6: movsd xmm0, qword ptr [rsp+78h+var_58] pxor xmm1, xmm1 xor eax, eax ucomisd xmm0, xmm1 setnbe al xor ecx, ecx ucomisd xmm1, xmm0 setnbe cl sub eax, ecx xor ecx, ecx loc_78416: test ecx, ecx jz loc_78321 cmp ecx, 3 jnz loc_78240 loc_78427: mov dword ptr [r15+8], 1 jmp loc_78240 loc_78434: mov ecx, 3 jmp short loc_78416
long long js_array_cmp_generic( const __m128i *a1, const __m128i *a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { unsigned int v14; // ebp long long v18; // r12 __m128 v19; // xmm1 long long v20; // rsi long long v21; // rdx long long v22; // rdx unsigned long long v23; // rcx int v24; // eax int v25; // eax int v26; // edx int v27; // eax int v28; // edx int v29; // ecx __m128 v30; // [rsp+20h] [rbp-58h] BYREF __m128i v31[4]; // [rsp+30h] [rbp-48h] BYREF v14 = 0; if ( !*(_DWORD *)(a3 + 8) ) { v18 = *(_QWORD *)a3; if ( !*(_DWORD *)(a3 + 12) ) { if ( !a1[1].m128i_i64[0] ) { v31[0].m128i_i64[0] = JS_ToStringInternal( v18, a1->m128i_i64[0], a1->m128i_i64[1], 0, a13, a14, a4, a5, a6, a7, a8, a9, a10, a11); v25 = 3; if ( v26 != 6 ) { a1[1].m128i_i64[0] = v31[0].m128i_i64[0]; v25 = 0; } if ( v25 == 3 ) goto LABEL_28; } if ( !a2[1].m128i_i64[0] ) { v31[0].m128i_i64[0] = JS_ToStringInternal( v18, a2->m128i_i64[0], a2->m128i_i64[1], 0, a13, a14, a4, a5, a6, a7, a8, a9, a10, a11); v27 = 3; if ( v28 != 6 ) { a2[1].m128i_i64[0] = v31[0].m128i_i64[0]; v27 = 0; } if ( v27 == 3 ) goto LABEL_28; } v24 = js_string_compare(a1[1].m128i_i64[0], a2[1].m128i_i64[0]); goto LABEL_11; } v19 = (__m128)_mm_cmpeq_epi8(_mm_loadu_si128(a2), _mm_loadu_si128(a1)); if ( _mm_movemask_epi8((__m128i)v19) == 0xFFFF ) return (a1[1].m128i_i64[1] > a2[1].m128i_i64[1]) - (unsigned int)(a1[1].m128i_i64[1] < a2[1].m128i_i64[1]); v31[0] = *a1; v31[1] = *a2; v20 = *(_QWORD *)(a3 + 16); v21 = *(_QWORD *)(a3 + 24); v30.m128_i32[0] = 0; v30.m128_u64[1] = 3LL; v23 = JS_CallInternal(v18, v20, v21, 0LL, 3LL, 2LL, v30, v19, a6, a7, a8, a9, a10, a11, 0, 3, (long long)v31, 2u); if ( (_DWORD)v22 == 6 ) { LABEL_28: *(_DWORD *)(a3 + 8) = 1; return v14; } if ( !(_DWORD)v22 ) { v24 = ((int)v23 >> 31) | ((_DWORD)v23 != 0); goto LABEL_11; } if ( (unsigned int)v22 > 2 ) { if ( (_DWORD)v22 == 7 ) { v30.m128_u64[0] = v23; } else { v24 = _JS_ToFloat64Free(v18, (long long *)&v30, v23, v22); if ( v24 < 0 ) { v29 = 3; LABEL_27: if ( v29 ) goto LABEL_28; LABEL_11: v14 = v24; if ( v24 ) return v14; return (a1[1].m128i_i64[1] > a2[1].m128i_i64[1]) - (unsigned int)(a1[1].m128i_i64[1] < a2[1].m128i_i64[1]); } } } else { *(double *)v30.m128_u64 = (double)(int)v23; } v24 = (*(double *)v30.m128_u64 > 0.0) - (*(double *)v30.m128_u64 < 0.0); v29 = 0; goto LABEL_27; } return v14; }
3,869
js_array_cmp_generic
bluesky950520[P]quickjs/quickjs.c
static int js_array_cmp_generic(const void *a, const void *b, void *opaque) { struct array_sort_context *psc = opaque; JSContext *ctx = psc->ctx; JSValue argv[2]; JSValue res; ValueSlot *ap = (ValueSlot *)(void *)a; ValueSlot *bp = (ValueSlot *)(void *)b; int cmp; if (psc->exception) return 0; if (psc->has_method) { /* custom sort function is specified as returning 0 for identical * objects: avoid method call overhead. */ if (!memcmp(&ap->val, &bp->val, sizeof(ap->val))) goto cmp_same; argv[0] = ap->val; argv[1] = bp->val; res = JS_Call(ctx, psc->method, JS_UNDEFINED, 2, argv); if (JS_IsException(res)) goto exception; if (JS_VALUE_GET_TAG(res) == JS_TAG_INT) { int val = JS_VALUE_GET_INT(res); cmp = (val > 0) - (val < 0); } else { double val; if (JS_ToFloat64Free(ctx, &val, res) < 0) goto exception; cmp = (val > 0) - (val < 0); } } else { /* Not supposed to bypass ToString even for identical objects as * tested in test262/test/built-ins/Array/prototype/sort/bug_596_1.js */ if (!ap->str) { JSValue str = JS_ToString(ctx, ap->val); if (JS_IsException(str)) goto exception; ap->str = JS_VALUE_GET_STRING(str); } if (!bp->str) { JSValue str = JS_ToString(ctx, bp->val); if (JS_IsException(str)) goto exception; bp->str = JS_VALUE_GET_STRING(str); } cmp = js_string_compare(ap->str, bp->str); } if (cmp != 0) return cmp; cmp_same: /* make sort stable: compare array offsets */ return (ap->pos > bp->pos) - (ap->pos < bp->pos); exception: psc->exception = 1; return 0; }
O2
c
js_array_cmp_generic: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp xorl %ebp, %ebp cmpl $0x0, 0x8(%rdx) je 0x65072 movl %ebp, %eax addq $0x30, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 movq (%rdx), %r12 cmpl $0x0, 0xc(%rdx) je 0x650f7 movdqu (%rbx), %xmm0 movdqu (%r14), %xmm1 pcmpeqb %xmm0, %xmm1 pmovmskb %xmm1, %eax cmpl $0xffff, %eax # imm = 0xFFFF je 0x6518b movups (%r14), %xmm0 leaq 0x10(%rsp), %rax movaps %xmm0, (%rax) movupd (%rbx), %xmm0 movapd %xmm0, 0x10(%rax) movq 0x10(%r15), %rsi movq 0x18(%r15), %rdx movq %rax, (%rsp) pushq $0x3 popq %r8 pushq $0x2 popq %r9 movq %r12, %rdi xorl %ecx, %ecx callq 0x21eb6 movq %rdx, %rcx cmpl $0x6, %ecx je 0x651a5 testl %ecx, %ecx jne 0x65150 movl %eax, %ecx sarl $0x1f, %ecx xorl %ebp, %ebp testl %eax, %eax setne %bpl orl %ecx, %ebp jmp 0x65183 movq 0x10(%r14), %rdi testq %rdi, %rdi jne 0x6511f movq (%r14), %rsi movq 0x8(%r14), %rdx movq %r12, %rdi callq 0x1b03c cmpl $0x6, %edx je 0x651a5 movq %rax, %rdi movq %rax, 0x10(%r14) movq 0x10(%rbx), %rsi testq %rsi, %rsi jne 0x65147 movq (%rbx), %rsi movq 0x8(%rbx), %rdx movq %r12, %rdi callq 0x1b03c cmpl $0x6, %edx je 0x651a5 movq %rax, %rsi movq %rax, 0x10(%rbx) movq 0x10(%r14), %rdi callq 0x3aa41 movl %eax, %ebp jmp 0x65183 leaq 0x8(%rsp), %rsi movq %r12, %rdi movq %rax, %rdx callq 0x21288 testl %eax, %eax js 0x651a5 movsd 0x8(%rsp), %xmm0 pxor %xmm1, %xmm1 xorl %ebp, %ebp ucomisd %xmm1, %xmm0 seta %bpl xorl %eax, %eax ucomisd %xmm0, %xmm1 seta %al subl %eax, %ebp testl %ebp, %ebp jne 0x65063 movq 0x18(%r14), %rax xorl %ebp, %ebp xorl %ecx, %ecx cmpq 0x18(%rbx), %rax setg %bpl setl %cl subl %ecx, %ebp jmp 0x65063 movl $0x1, 0x8(%r15) jmp 0x65063
js_array_cmp_generic: push rbp push r15 push r14 push r12 push rbx sub rsp, 30h xor ebp, ebp cmp dword ptr [rdx+8], 0 jz short loc_65072 loc_65063: mov eax, ebp add rsp, 30h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_65072: mov r15, rdx mov rbx, rsi mov r14, rdi mov r12, [rdx] cmp dword ptr [rdx+0Ch], 0 jz short loc_650F7 movdqu xmm0, xmmword ptr [rbx] movdqu xmm1, xmmword ptr [r14] pcmpeqb xmm1, xmm0 pmovmskb eax, xmm1 cmp eax, 0FFFFh jz loc_6518B movups xmm0, xmmword ptr [r14] lea rax, [rsp+58h+var_48] movaps xmmword ptr [rax], xmm0 movupd xmm0, xmmword ptr [rbx] movapd xmmword ptr [rax+10h], xmm0 mov rsi, [r15+10h] mov rdx, [r15+18h] mov [rsp+58h+var_58], rax push 3 pop r8 push 2 pop r9 mov rdi, r12 xor ecx, ecx call JS_Call mov rcx, rdx cmp ecx, 6 jz loc_651A5 test ecx, ecx jnz short loc_65150 mov ecx, eax sar ecx, 1Fh xor ebp, ebp test eax, eax setnz bpl or ebp, ecx jmp loc_65183 loc_650F7: mov rdi, [r14+10h] test rdi, rdi jnz short loc_6511F mov rsi, [r14] mov rdx, [r14+8] mov rdi, r12 call JS_ToString cmp edx, 6 jz loc_651A5 mov rdi, rax mov [r14+10h], rax loc_6511F: mov rsi, [rbx+10h] test rsi, rsi jnz short loc_65147 mov rsi, [rbx] mov rdx, [rbx+8] mov rdi, r12 call JS_ToString cmp edx, 6 jz short loc_651A5 mov rsi, rax mov [rbx+10h], rax mov rdi, [r14+10h] loc_65147: call js_string_compare mov ebp, eax jmp short loc_65183 loc_65150: lea rsi, [rsp+58h+var_50] mov rdi, r12 mov rdx, rax call JS_ToFloat64Free test eax, eax js short loc_651A5 movsd xmm0, [rsp+58h+var_50] pxor xmm1, xmm1 xor ebp, ebp ucomisd xmm0, xmm1 setnbe bpl xor eax, eax ucomisd xmm1, xmm0 setnbe al sub ebp, eax loc_65183: test ebp, ebp jnz loc_65063 loc_6518B: mov rax, [r14+18h] xor ebp, ebp xor ecx, ecx cmp rax, [rbx+18h] setnle bpl setl cl sub ebp, ecx jmp loc_65063 loc_651A5: mov dword ptr [r15+8], 1 jmp loc_65063
long long js_array_cmp_generic(const __m128i *a1, const __m128i *a2, long long a3) { unsigned int v3; // ebp const char *v8; // r12 long long v9; // rax long long v10; // rdx long long v11; // rdi long long v12; // rax int v13; // edx long long v14; // rsi long long v15; // rax int v16; // edx double v17; // [rsp+8h] [rbp-50h] BYREF __m128i v18[4]; // [rsp+10h] [rbp-48h] BYREF v3 = 0; if ( !*(_DWORD *)(a3 + 8) ) { v8 = *(const char **)a3; if ( *(_DWORD *)(a3 + 12) ) { if ( _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_loadu_si128(a1), _mm_loadu_si128(a2))) == 0xFFFF ) return (a1[1].m128i_i64[1] > a2[1].m128i_i64[1]) - (unsigned int)(a1[1].m128i_i64[1] < a2[1].m128i_i64[1]); v18[0] = *a1; v18[1] = *a2; v9 = JS_Call((int)v8, *(_QWORD *)(a3 + 16), *(_QWORD *)(a3 + 24), 0, 3, 2, (long long)v18); if ( (_DWORD)v10 != 6 ) { if ( !(_DWORD)v10 ) { v3 = ((int)v9 >> 31) | ((_DWORD)v9 != 0); goto LABEL_17; } if ( (int)JS_ToFloat64Free(v8, &v17, v9, v10) >= 0 ) { v3 = (v17 > 0.0) - (v17 < 0.0); LABEL_17: if ( v3 ) return v3; return (a1[1].m128i_i64[1] > a2[1].m128i_i64[1]) - (unsigned int)(a1[1].m128i_i64[1] < a2[1].m128i_i64[1]); } } LABEL_19: *(_DWORD *)(a3 + 8) = 1; return v3; } v11 = a1[1].m128i_i64[0]; if ( !v11 ) { v12 = JS_ToString((long long)v8, a1->m128i_i64[0], a1->m128i_i64[1]); if ( v13 == 6 ) goto LABEL_19; v11 = v12; a1[1].m128i_i64[0] = v12; } v14 = a2[1].m128i_i64[0]; if ( !v14 ) { v15 = JS_ToString((long long)v8, a2->m128i_i64[0], a2->m128i_i64[1]); if ( v16 == 6 ) goto LABEL_19; v14 = v15; a2[1].m128i_i64[0] = v15; v11 = a1[1].m128i_i64[0]; } v3 = js_string_compare(v11, v14); goto LABEL_17; } return v3; }
js_array_cmp_generic: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x30 XOR EBP,EBP CMP dword ptr [RDX + 0x8],0x0 JZ 0x00165072 LAB_00165063: MOV EAX,EBP ADD RSP,0x30 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00165072: MOV R15,RDX MOV RBX,RSI MOV R14,RDI MOV R12,qword ptr [RDX] CMP dword ptr [RDX + 0xc],0x0 JZ 0x001650f7 MOVDQU XMM0,xmmword ptr [RBX] MOVDQU XMM1,xmmword ptr [R14] PCMPEQB XMM1,XMM0 PMOVMSKB EAX,XMM1 CMP EAX,0xffff JZ 0x0016518b MOVUPS XMM0,xmmword ptr [R14] LEA RAX,[RSP + 0x10] MOVAPS xmmword ptr [RAX],XMM0 MOVUPD XMM0,xmmword ptr [RBX] MOVAPD xmmword ptr [RAX + 0x10],XMM0 MOV RSI,qword ptr [R15 + 0x10] MOV RDX,qword ptr [R15 + 0x18] MOV qword ptr [RSP],RAX PUSH 0x3 POP R8 PUSH 0x2 POP R9 MOV RDI,R12 XOR ECX,ECX CALL 0x00121eb6 MOV RCX,RDX CMP ECX,0x6 JZ 0x001651a5 TEST ECX,ECX JNZ 0x00165150 MOV ECX,EAX SAR ECX,0x1f XOR EBP,EBP TEST EAX,EAX SETNZ BPL OR EBP,ECX JMP 0x00165183 LAB_001650f7: MOV RDI,qword ptr [R14 + 0x10] TEST RDI,RDI JNZ 0x0016511f MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV RDI,R12 CALL 0x0011b03c CMP EDX,0x6 JZ 0x001651a5 MOV RDI,RAX MOV qword ptr [R14 + 0x10],RAX LAB_0016511f: MOV RSI,qword ptr [RBX + 0x10] TEST RSI,RSI JNZ 0x00165147 MOV RSI,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x8] MOV RDI,R12 CALL 0x0011b03c CMP EDX,0x6 JZ 0x001651a5 MOV RSI,RAX MOV qword ptr [RBX + 0x10],RAX MOV RDI,qword ptr [R14 + 0x10] LAB_00165147: CALL 0x0013aa41 MOV EBP,EAX JMP 0x00165183 LAB_00165150: LEA RSI,[RSP + 0x8] MOV RDI,R12 MOV RDX,RAX CALL 0x00121288 TEST EAX,EAX JS 0x001651a5 MOVSD XMM0,qword ptr [RSP + 0x8] PXOR XMM1,XMM1 XOR EBP,EBP UCOMISD XMM0,XMM1 SETA BPL XOR EAX,EAX UCOMISD XMM1,XMM0 SETA AL SUB EBP,EAX LAB_00165183: TEST EBP,EBP JNZ 0x00165063 LAB_0016518b: MOV RAX,qword ptr [R14 + 0x18] XOR EBP,EBP XOR ECX,ECX CMP RAX,qword ptr [RBX + 0x18] SETG BPL SETL CL SUB EBP,ECX JMP 0x00165063 LAB_001651a5: MOV dword ptr [R15 + 0x8],0x1 JMP 0x00165063
uint js_array_cmp_generic(char *param_1,char *param_2,int8 *param_3) { int8 uVar1; int iVar2; uint uVar3; long lVar4; long lVar5; int1 auVar6 [16]; int1 auVar7 [12]; double local_50; int8 local_48; int8 uStack_40; int8 local_38; int8 uStack_30; if (*(int *)(param_3 + 1) != 0) { return 0; } uVar1 = *param_3; if (*(int *)((long)param_3 + 0xc) == 0) { lVar5 = *(long *)(param_1 + 0x10); if (lVar5 == 0) { auVar7 = JS_ToString(uVar1,*(int8 *)param_1,*(int8 *)(param_1 + 8)); lVar5 = auVar7._0_8_; if (auVar7._8_4_ == 6) goto LAB_001651a5; *(long *)(param_1 + 0x10) = lVar5; } lVar4 = *(long *)(param_2 + 0x10); if (lVar4 == 0) { auVar7 = JS_ToString(uVar1,*(int8 *)param_2,*(int8 *)(param_2 + 8)); lVar4 = auVar7._0_8_; if (auVar7._8_4_ == 6) goto LAB_001651a5; *(long *)(param_2 + 0x10) = lVar4; lVar5 = *(long *)(param_1 + 0x10); } uVar3 = js_string_compare(lVar5,lVar4); } else { auVar6[0] = -(*param_1 == *param_2); auVar6[1] = -(param_1[1] == param_2[1]); auVar6[2] = -(param_1[2] == param_2[2]); auVar6[3] = -(param_1[3] == param_2[3]); auVar6[4] = -(param_1[4] == param_2[4]); auVar6[5] = -(param_1[5] == param_2[5]); auVar6[6] = -(param_1[6] == param_2[6]); auVar6[7] = -(param_1[7] == param_2[7]); auVar6[8] = -(param_1[8] == param_2[8]); auVar6[9] = -(param_1[9] == param_2[9]); auVar6[10] = -(param_1[10] == param_2[10]); auVar6[0xb] = -(param_1[0xb] == param_2[0xb]); auVar6[0xc] = -(param_1[0xc] == param_2[0xc]); auVar6[0xd] = -(param_1[0xd] == param_2[0xd]); auVar6[0xe] = -(param_1[0xe] == param_2[0xe]); auVar6[0xf] = -(param_1[0xf] == param_2[0xf]); if ((ushort)((ushort)(SUB161(auVar6 >> 7,0) & 1) | (ushort)(SUB161(auVar6 >> 0xf,0) & 1) << 1 | (ushort)(SUB161(auVar6 >> 0x17,0) & 1) << 2 | (ushort)(SUB161(auVar6 >> 0x1f,0) & 1) << 3 | (ushort)(SUB161(auVar6 >> 0x27,0) & 1) << 4 | (ushort)(SUB161(auVar6 >> 0x2f,0) & 1) << 5 | (ushort)(SUB161(auVar6 >> 0x37,0) & 1) << 6 | (ushort)(SUB161(auVar6 >> 0x3f,0) & 1) << 7 | (ushort)(SUB161(auVar6 >> 0x47,0) & 1) << 8 | (ushort)(SUB161(auVar6 >> 0x4f,0) & 1) << 9 | (ushort)(SUB161(auVar6 >> 0x57,0) & 1) << 10 | (ushort)(SUB161(auVar6 >> 0x5f,0) & 1) << 0xb | (ushort)(SUB161(auVar6 >> 0x67,0) & 1) << 0xc | (ushort)(SUB161(auVar6 >> 0x6f,0) & 1) << 0xd | (ushort)(SUB161(auVar6 >> 0x77,0) & 1) << 0xe | (ushort)(auVar6[0xf] >> 7) << 0xf) == 0xffff) goto LAB_0016518b; local_48 = *(int8 *)param_1; uStack_40 = *(int8 *)(param_1 + 8); local_38 = *(int8 *)param_2; uStack_30 = *(int8 *)(param_2 + 8); auVar7 = JS_Call(uVar1,param_3[2],param_3[3],0,3,2,&local_48); if (auVar7._8_4_ == 6) { LAB_001651a5: *(int4 *)(param_3 + 1) = 1; return 0; } if (auVar7._8_4_ == 0) { uVar3 = (uint)(auVar7._0_4_ != 0) | auVar7._0_4_ >> 0x1f; } else { iVar2 = JS_ToFloat64Free(uVar1,&local_50,auVar7._0_8_); if (iVar2 < 0) goto LAB_001651a5; uVar3 = (uint)(0.0 < local_50) - (uint)(local_50 < 0.0); } } if (uVar3 != 0) { return uVar3; } LAB_0016518b: return (uint)(*(long *)(param_2 + 0x18) < *(long *)(param_1 + 0x18)) - (uint)(*(long *)(param_1 + 0x18) < *(long *)(param_2 + 0x18)); }
3,870
my_interval_timer
eloqsql/mysys/my_getsystime.c
ulonglong my_interval_timer() { #ifdef HAVE_CLOCK_GETTIME struct timespec tp; clock_gettime(CLOCK_MONOTONIC, &tp); return tp.tv_sec*1000000000ULL+tp.tv_nsec; #elif defined(HAVE_GETHRTIME) return gethrtime(); #elif defined(_WIN32) DBUG_ASSERT(query_performance_frequency); LARGE_INTEGER t_cnt; QueryPerformanceCounter(&t_cnt); return (t_cnt.QuadPart / query_performance_frequency * 1000000000ULL) + ((t_cnt.QuadPart % query_performance_frequency) * 1000000000ULL / query_performance_frequency); #else /* TODO: check for other possibilities for hi-res timestamping */ struct timeval tv; gettimeofday(&tv,NULL); return tv.tv_sec*1000000000ULL+tv.tv_usec*1000ULL; #endif }
O3
c
my_interval_timer: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x18, %rsp leaq -0x18(%rbp), %rbx movl $0x1, %edi movq %rbx, %rsi callq 0x292d0 imulq $0x3b9aca00, (%rbx), %rax # imm = 0x3B9ACA00 addq 0x8(%rbx), %rax addq $0x18, %rsp popq %rbx popq %rbp retq
my_interval_timer: push rbp mov rbp, rsp push rbx sub rsp, 18h lea rbx, [rbp+var_18] mov edi, 1 mov rsi, rbx call _clock_gettime imul rax, [rbx], 3B9ACA00h add rax, [rbx+8] add rsp, 18h pop rbx pop rbp retn
long long my_interval_timer() { _QWORD v1[3]; // [rsp+8h] [rbp-18h] BYREF clock_gettime(1LL, v1); return v1[1] + 1000000000LL * v1[0]; }
my_interval_timer: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x18 LEA RBX,[RBP + -0x18] MOV EDI,0x1 MOV RSI,RBX CALL 0x001292d0 IMUL RAX,qword ptr [RBX],0x3b9aca00 ADD RAX,qword ptr [RBX + 0x8] ADD RSP,0x18 POP RBX POP RBP RET
long my_interval_timer(void) { timespec local_20; clock_gettime(1,&local_20); return local_20.tv_sec * 1000000000 + local_20.tv_nsec; }
3,871
ftxui::animation::easing::ElasticInOut(float)
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/component/animation.cpp
float ElasticInOut(float p) { if (p < 0.5f) { return 0.5f * std::sin(13.f * kPi2 * (2.f * p)) * std::pow(2.f, 10.f * ((2.f * p) - 1.f)); } return 0.5f * (std::sin(-13.f * kPi2 * ((2.f * p - 1.f) + 1.f)) * std::pow(2.f, -10.f * (2.f * p - 1.f)) + 2.f); }
O2
cpp
ftxui::animation::easing::ElasticInOut(float): pushq %rax movaps %xmm0, %xmm1 movss 0x51ba(%rip), %xmm0 # 0x32e90 ucomiss %xmm1, %xmm0 jbe 0x2dd25 addss %xmm1, %xmm1 movss %xmm1, 0x4(%rsp) movss 0x776f(%rip), %xmm0 # 0x3545c mulss %xmm1, %xmm0 callq 0xc3a0 mulss 0x5192(%rip), %xmm0 # 0x32e90 movss %xmm0, (%rsp) movss 0x4(%rsp), %xmm0 addss 0x7713(%rip), %xmm0 # 0x35424 mulss 0x772f(%rip), %xmm0 # 0x35448 callq 0xc890 mulss (%rsp), %xmm0 jmp 0x2dd7d addss %xmm1, %xmm1 addss 0x76f3(%rip), %xmm1 # 0x35424 movss %xmm1, 0x4(%rsp) movss 0x5149(%rip), %xmm0 # 0x32e88 addss %xmm1, %xmm0 mulss 0x7715(%rip), %xmm0 # 0x35460 callq 0xc3a0 movss %xmm0, (%rsp) movss 0x4(%rsp), %xmm0 mulss 0x76e9(%rip), %xmm0 # 0x3544c callq 0xc890 mulss (%rsp), %xmm0 addss 0x76c7(%rip), %xmm0 # 0x3543c mulss 0x5113(%rip), %xmm0 # 0x32e90 popq %rax retq
_ZN5ftxui9animation6easing12ElasticInOutEf: push rax movaps xmm1, xmm0 movss xmm0, cs:dword_32E90 ucomiss xmm0, xmm1 jbe short loc_2DD25 addss xmm1, xmm1 movss [rsp+8+var_4], xmm1 movss xmm0, cs:dword_3545C mulss xmm0, xmm1 call _sinf mulss xmm0, cs:dword_32E90 movss [rsp+8+var_8], xmm0 movss xmm0, [rsp+8+var_4] addss xmm0, cs:dword_35424 mulss xmm0, cs:dword_35448 call _exp2f mulss xmm0, [rsp+8+var_8] jmp short loc_2DD7D loc_2DD25: addss xmm1, xmm1 addss xmm1, cs:dword_35424 movss [rsp+8+var_4], xmm1 movss xmm0, cs:dword_32E88 addss xmm0, xmm1 mulss xmm0, cs:dword_35460 call _sinf movss [rsp+8+var_8], xmm0 movss xmm0, [rsp+8+var_4] mulss xmm0, cs:dword_3544C call _exp2f mulss xmm0, [rsp+8+var_8] addss xmm0, cs:dword_3543C mulss xmm0, cs:dword_32E90 loc_2DD7D: pop rax retn
long long ftxui::animation::easing::ElasticInOut(ftxui::animation::easing *this, float a2) { long long v4; // [rsp+0h] [rbp-8h] if ( a2 >= 0.5 ) { *((float *)&v4 + 1) = (float)(a2 + a2) + -1.0; LODWORD(v4) = sinf(this, (float)(*((float *)&v4 + 1) + 1.0) * -20.420353); exp2f(this, *((float *)&v4 + 1) * -10.0); } else { *((float *)&v4 + 1) = a2 + a2; *(float *)&v4 = sinf(this, 20.420353 * (float)(a2 + a2)) * 0.5; exp2f(this, (float)((float)(a2 + a2) + -1.0) * 10.0); } return v4; }
ElasticInOut: PUSH RAX MOVAPS XMM1,XMM0 MOVSS XMM0,dword ptr [0x00132e90] UCOMISS XMM0,XMM1 JBE 0x0012dd25 ADDSS XMM1,XMM1 MOVSS dword ptr [RSP + 0x4],XMM1 MOVSS XMM0,dword ptr [0x0013545c] MULSS XMM0,XMM1 CALL 0x0010c3a0 MULSS XMM0,dword ptr [0x00132e90] MOVSS dword ptr [RSP],XMM0 MOVSS XMM0,dword ptr [RSP + 0x4] ADDSS XMM0,dword ptr [0x00135424] MULSS XMM0,dword ptr [0x00135448] CALL 0x0010c890 MULSS XMM0,dword ptr [RSP] JMP 0x0012dd7d LAB_0012dd25: ADDSS XMM1,XMM1 ADDSS XMM1,dword ptr [0x00135424] MOVSS dword ptr [RSP + 0x4],XMM1 MOVSS XMM0,dword ptr [0x00132e88] ADDSS XMM0,XMM1 MULSS XMM0,dword ptr [0x00135460] CALL 0x0010c3a0 MOVSS dword ptr [RSP],XMM0 MOVSS XMM0,dword ptr [RSP + 0x4] MULSS XMM0,dword ptr [0x0013544c] CALL 0x0010c890 MULSS XMM0,dword ptr [RSP] ADDSS XMM0,dword ptr [0x0013543c] MULSS XMM0,dword ptr [0x00132e90] LAB_0012dd7d: POP RAX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* ftxui::animation::easing::ElasticInOut(float) */ int8 ftxui::animation::easing::ElasticInOut(float param_1) { float fVar1; float fVar2; int8 local_8; if (DAT_00132e90 <= param_1) { fVar2 = param_1 + param_1 + DAT_00135424; fVar1 = sinf((DAT_00132e88 + fVar2) * _DAT_00135460); local_8 = CONCAT44(fVar2,fVar1); exp2f(fVar2 * _DAT_0013544c); } else { fVar2 = param_1 + param_1; fVar1 = sinf(DAT_0013545c * fVar2); local_8 = CONCAT44(fVar2,fVar1 * DAT_00132e90); exp2f((fVar2 + DAT_00135424) * _DAT_00135448); } return local_8; }
3,872
google::protobuf::compiler::objectivec::BuildFlagsString(google::protobuf::compiler::objectivec::FlagType, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
std::string BuildFlagsString(const FlagType flag_type, const std::vector<std::string>& strings) { if (strings.empty()) { return GetZeroEnumNameForFlagType(flag_type); } else if (strings.size() == 1) { return strings[0]; } std::string string("(" + GetEnumNameForFlagType(flag_type) + ")("); for (size_t i = 0; i != strings.size(); ++i) { if (i > 0) { string.append(" | "); } string.append(strings[i]); } string.append(")"); return string; }
O0
cpp
google::protobuf::compiler::objectivec::BuildFlagsString(google::protobuf::compiler::objectivec::FlagType, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&): subq $0x98, %rsp movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0x90(%rsp) movl %esi, 0x8c(%rsp) movq %rdx, 0x80(%rsp) movq 0x80(%rsp), %rdi callq 0x37650 testb $0x1, %al jne 0x870ce jmp 0x870e4 movq 0x10(%rsp), %rdi movl 0x8c(%rsp), %esi callq 0x87290 jmp 0x87279 movq 0x80(%rsp), %rdi callq 0x28b30 cmpq $0x1, %rax jne 0x8711a movq 0x80(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x8d7c0 movq 0x10(%rsp), %rdi movq %rax, %rsi callq 0x21160 jmp 0x87279 jmp 0x8711c movb $0x0, 0x7f(%rsp) movl 0x8c(%rsp), %esi leaq 0x38(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x874f0 movq 0x8(%rsp), %rdx leaq 0x32905e(%rip), %rsi # 0x3b01a1 leaq 0x58(%rsp), %rdi callq 0x38890 jmp 0x8714f movq 0x10(%rsp), %rdi leaq 0x3299d4(%rip), %rdx # 0x3b0b2f leaq 0x58(%rsp), %rsi callq 0x38840 jmp 0x87167 leaq 0x58(%rsp), %rdi callq 0x21cc8 leaq 0x38(%rsp), %rdi callq 0x21cc8 movq $0x0, 0x20(%rsp) movq 0x20(%rsp), %rax movq %rax, (%rsp) movq 0x80(%rsp), %rdi callq 0x28b30 movq %rax, %rcx movq (%rsp), %rax cmpq %rcx, %rax je 0x8724e cmpq $0x0, 0x20(%rsp) jbe 0x87218 movq 0x10(%rsp), %rdi leaq 0x33c0e5(%rip), %rsi # 0x3c32a3 callq 0x21710 jmp 0x871c5 jmp 0x87218 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0x871ef movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) leaq 0x58(%rsp), %rdi callq 0x21cc8 leaq 0x38(%rsp), %rdi callq 0x21cc8 jmp 0x87286 movq 0x10(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) callq 0x21cc8 jmp 0x87286 movq 0x80(%rsp), %rdi movq 0x20(%rsp), %rsi callq 0x8d7c0 movq 0x10(%rsp), %rdi movq %rax, %rsi callq 0x218d0 jmp 0x87239 jmp 0x8723b movq 0x20(%rsp), %rax addq $0x1, %rax movq %rax, 0x20(%rsp) jmp 0x87184 movq 0x10(%rsp), %rdi leaq 0x324eae(%rip), %rsi # 0x3ac108 callq 0x21710 jmp 0x87261 movb $0x1, 0x7f(%rsp) testb $0x1, 0x7f(%rsp) jne 0x87277 movq 0x10(%rsp), %rdi callq 0x21cc8 jmp 0x87279 movq 0x18(%rsp), %rax addq $0x98, %rsp retq movq 0x30(%rsp), %rdi callq 0x21700
_ZN6google8protobuf8compiler10objectivec16BuildFlagsStringENS2_8FlagTypeERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE: sub rsp, 98h mov [rsp+98h+var_88], rdi mov rax, rdi mov [rsp+98h+var_80], rax mov [rsp+98h+var_8], rdi mov [rsp+98h+var_C], esi mov [rsp+98h+var_18], rdx mov rdi, [rsp+98h+var_18] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv; std::vector<std::string>::empty(void) test al, 1 jnz short loc_870CE jmp short loc_870E4 loc_870CE: mov rdi, [rsp+98h+var_88] mov esi, [rsp+98h+var_C] call _ZN6google8protobuf8compiler10objectivec12_GLOBAL__N_126GetZeroEnumNameForFlagTypeB5cxx11ENS2_8FlagTypeE; google::protobuf::compiler::objectivec::`anonymous namespace'::GetZeroEnumNameForFlagType(google::protobuf::compiler::objectivec::FlagType) jmp loc_87279 loc_870E4: mov rdi, [rsp+98h+var_18] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void) cmp rax, 1 jnz short loc_8711A mov rdi, [rsp+98h+var_18] xor eax, eax mov esi, eax call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm; std::vector<std::string>::operator[](ulong) mov rdi, [rsp+98h+var_88] mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp loc_87279 loc_8711A: jmp short $+2 loc_8711C: mov [rsp+98h+var_19], 0 mov esi, [rsp+98h+var_C] lea rdi, [rsp+98h+var_60] mov [rsp+98h+var_90], rdi call _ZN6google8protobuf8compiler10objectivec12_GLOBAL__N_122GetEnumNameForFlagTypeB5cxx11ENS2_8FlagTypeE; google::protobuf::compiler::objectivec::`anonymous namespace'::GetEnumNameForFlagType(google::protobuf::compiler::objectivec::FlagType) mov rdx, [rsp+98h+var_90] lea rsi, asc_3B019E+3; "(" lea rdi, [rsp+98h+var_40] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) jmp short $+2 loc_8714F: mov rdi, [rsp+98h+var_88] lea rdx, asc_3B0B2F; ")(" lea rsi, [rsp+98h+var_40] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) jmp short $+2 loc_87167: lea rdi, [rsp+98h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+98h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov [rsp+98h+var_78], 0 loc_87184: mov rax, [rsp+98h+var_78] mov [rsp+98h+var_98], rax mov rdi, [rsp+98h+var_18] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void) mov rcx, rax mov rax, [rsp+98h+var_98] cmp rax, rcx jz loc_8724E cmp [rsp+98h+var_78], 0 jbe short loc_87218 mov rdi, [rsp+98h+var_88] lea rsi, asc_3C329C+7; " | " call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) jmp short $+2 loc_871C5: jmp short loc_87218 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_871EF 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_871EF: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_87286 mov rdi, [rsp+arg_8]; void * mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_87286 loc_87218: mov rdi, [rsp+98h+var_18] mov rsi, [rsp+98h+var_78] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm; std::vector<std::string>::operator[](ulong) mov rdi, [rsp+98h+var_88] mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) jmp short $+2 loc_87239: jmp short $+2 loc_8723B: mov rax, [rsp+98h+var_78] add rax, 1 mov [rsp+98h+var_78], rax jmp loc_87184 loc_8724E: mov rdi, [rsp+98h+var_88] lea rsi, a1_1+5; ")" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) jmp short $+2 loc_87261: mov [rsp+98h+var_19], 1 test [rsp+98h+var_19], 1 jnz short loc_87277 mov rdi, [rsp+98h+var_88]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_87277: jmp short $+2 loc_87279: mov rax, [rsp+98h+var_80] add rsp, 98h retn loc_87286: mov rdi, [rsp+arg_28] call __Unwind_Resume
long long google::protobuf::compiler::objectivec::BuildFlagsString(long long a1, int a2, _QWORD *a3) { int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // rax long long v12; // rax long long i; // [rsp+20h] [rbp-78h] _BYTE v15[32]; // [rsp+38h] [rbp-60h] BYREF _BYTE v16[39]; // [rsp+58h] [rbp-40h] BYREF char v17; // [rsp+7Fh] [rbp-19h] _QWORD *v18; // [rsp+80h] [rbp-18h] int v19; // [rsp+8Ch] [rbp-Ch] long long v20; // [rsp+90h] [rbp-8h] v20 = a1; v19 = a2; v18 = a3; if ( (std::vector<std::string>::empty((long long)a3) & 1) != 0 ) { google::protobuf::compiler::objectivec::`anonymous namespace'::GetZeroEnumNameForFlagType[abi:cxx11]( a1, v19, v3, v4, v5, v6); } else if ( std::vector<std::string>::size(v18) == 1 ) { v11 = std::vector<std::string>::operator[](v18, 0LL); std::string::basic_string(a1, v11); } else { v17 = 0; google::protobuf::compiler::objectivec::`anonymous namespace'::GetEnumNameForFlagType[abi:cxx11]( (unsigned int)v15, v19, v7, v8, v9, v10); std::operator+<char>((long long)v16, (long long)"(", (long long)v15); std::operator+<char>(a1, (long long)v16, (long long)")("); std::string::~string(v16); std::string::~string(v15); for ( i = 0LL; i != std::vector<std::string>::size(v18); ++i ) { if ( i ) std::string::append(a1, " | "); v12 = std::vector<std::string>::operator[](v18, i); std::string::append(a1, v12); } std::string::append(a1, ")"); v17 = 1; } return a1; }
BuildFlagsString: SUB RSP,0x98 MOV qword ptr [RSP + 0x10],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x90],RDI MOV dword ptr [RSP + 0x8c],ESI MOV qword ptr [RSP + 0x80],RDX MOV RDI,qword ptr [RSP + 0x80] CALL 0x00137650 TEST AL,0x1 JNZ 0x001870ce JMP 0x001870e4 LAB_001870ce: MOV RDI,qword ptr [RSP + 0x10] MOV ESI,dword ptr [RSP + 0x8c] CALL 0x00187290 JMP 0x00187279 LAB_001870e4: MOV RDI,qword ptr [RSP + 0x80] CALL 0x00128b30 CMP RAX,0x1 JNZ 0x0018711a MOV RDI,qword ptr [RSP + 0x80] XOR EAX,EAX MOV ESI,EAX CALL 0x0018d7c0 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,RAX CALL 0x00121160 JMP 0x00187279 LAB_0018711a: JMP 0x0018711c LAB_0018711c: MOV byte ptr [RSP + 0x7f],0x0 MOV ESI,dword ptr [RSP + 0x8c] LEA RDI,[RSP + 0x38] MOV qword ptr [RSP + 0x8],RDI CALL 0x001874f0 MOV RDX,qword ptr [RSP + 0x8] LAB_0018713c: LEA RSI,[0x4b01a1] LEA RDI,[RSP + 0x58] CALL 0x00138890 JMP 0x0018714f LAB_0018714f: MOV RDI,qword ptr [RSP + 0x10] LEA RDX,[0x4b0b2f] LEA RSI,[RSP + 0x58] CALL 0x00138840 JMP 0x00187167 LAB_00187167: LEA RDI,[RSP + 0x58] CALL 0x00121cc8 LEA RDI,[RSP + 0x38] CALL 0x00121cc8 MOV qword ptr [RSP + 0x20],0x0 LAB_00187184: MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP],RAX MOV RDI,qword ptr [RSP + 0x80] CALL 0x00128b30 MOV RCX,RAX MOV RAX,qword ptr [RSP] CMP RAX,RCX JZ 0x0018724e CMP qword ptr [RSP + 0x20],0x0 JBE 0x00187218 LAB_001871b2: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x4c32a3] CALL 0x00121710 JMP 0x001871c5 LAB_001871c5: JMP 0x00187218 LAB_00187218: MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x20] CALL 0x0018d7c0 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,RAX CALL 0x001218d0 JMP 0x00187239 LAB_00187239: JMP 0x0018723b LAB_0018723b: MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x1 MOV qword ptr [RSP + 0x20],RAX JMP 0x00187184 LAB_0018724e: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x4ac108] CALL 0x00121710 LAB_0018725f: JMP 0x00187261 LAB_00187261: MOV byte ptr [RSP + 0x7f],0x1 TEST byte ptr [RSP + 0x7f],0x1 JNZ 0x00187277 MOV RDI,qword ptr [RSP + 0x10] CALL 0x00121cc8 LAB_00187277: JMP 0x00187279 LAB_00187279: MOV RAX,qword ptr [RSP + 0x18] ADD RSP,0x98 RET
/* WARNING: Removing unreachable block (ram,0x0018726d) */ /* google::protobuf::compiler::objectivec::BuildFlagsString(google::protobuf::compiler::objectivec::FlagType, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&) */ objectivec * __thiscall google::protobuf::compiler::objectivec::BuildFlagsString (objectivec *this,int4 param_2, vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *param_3) { ulong uVar1; long lVar2; string *psVar3; ulong local_78; _anonymous_namespace_ local_60 [32]; string local_40 [39]; int1 local_19; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_18; int4 local_c; objectivec *local_8; local_18 = param_3; local_c = param_2; local_8 = this; uVar1 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::empty(param_3); if ((uVar1 & 1) == 0) { lVar2 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size(local_18); if (lVar2 == 1) { psVar3 = (string *) std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::operator[] (local_18,0); std::__cxx11::string::string((string *)this,psVar3); } else { local_19 = 0; (anonymous_namespace)::GetEnumNameForFlagType_abi_cxx11_(local_60,local_c); /* try { // try from 0018713c to 0018714c has its CatchHandler @ 001871c7 */ std::operator+((char *)local_40,(string *)&DAT_004b01a1); /* try { // try from 0018714f to 00187164 has its CatchHandler @ 001871d7 */ std::operator+((string *)this,(char *)local_40); std::__cxx11::string::~string(local_40); std::__cxx11::string::~string((string *)local_60); for (local_78 = 0; uVar1 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size (local_18), local_78 != uVar1; local_78 = local_78 + 1) { if (local_78 != 0) { /* try { // try from 001871b2 to 0018725e has its CatchHandler @ 001871fe */ std::__cxx11::string::append((char *)this); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::operator[] (local_18,local_78); std::__cxx11::string::append((string *)this); } std::__cxx11::string::append((char *)this); } } else { (anonymous_namespace)::GetZeroEnumNameForFlagType_abi_cxx11_ ((_anonymous_namespace_ *)this,local_c); } return this; }
3,873
ma_get_status
eloqsql/storage/maria/ma_state.c
my_bool _ma_get_status(void* param, my_bool concurrent_insert) { MARIA_HA *info=(MARIA_HA*) param; DBUG_ENTER("_ma_get_status"); DBUG_PRINT("info",("key_file: %ld data_file: %ld concurrent_insert: %d", (long) info->s->state.state.key_file_length, (long) info->s->state.state.data_file_length, concurrent_insert)); #ifndef DBUG_OFF if (info->state->key_file_length > info->s->state.state.key_file_length || info->state->data_file_length > info->s->state.state.data_file_length) DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld", (long) info->state->key_file_length, (long) info->state->data_file_length)); #endif info->state_save= info->s->state.state; info->state= &info->state_save; info->state->changed= 0; info->append_insert_at_end= concurrent_insert; DBUG_RETURN(0); }
O0
c
ma_get_status: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %sil, %al movq %rdi, -0x8(%rbp) movb %al, -0x9(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0x37bfc movq -0x18(%rbp), %rdi addq $0x28, %rdi movq -0x18(%rbp), %rax movq (%rax), %rsi addq $0x18, %rsi movl $0x38, %edx callq 0x2a090 movq -0x18(%rbp), %rcx addq $0x28, %rcx movq -0x18(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x18(%rbp), %rax movq 0x20(%rax), %rax movb 0x34(%rax), %cl andb $-0x2, %cl orb $0x0, %cl movb %cl, 0x34(%rax) movb -0x9(%rbp), %cl movq -0x18(%rbp), %rax movb %cl, 0x681(%rax) jmp 0x37c4c xorl %eax, %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_get_status: push rbp mov rbp, rsp sub rsp, 20h mov al, sil mov [rbp+var_8], rdi mov [rbp+var_9], al mov rax, [rbp+var_8] mov [rbp+var_18], rax jmp short $+2 loc_37BFC: mov rdi, [rbp+var_18] add rdi, 28h ; '(' mov rax, [rbp+var_18] mov rsi, [rax] add rsi, 18h mov edx, 38h ; '8' call _memcpy mov rcx, [rbp+var_18] add rcx, 28h ; '(' mov rax, [rbp+var_18] mov [rax+20h], rcx mov rax, [rbp+var_18] mov rax, [rax+20h] mov cl, [rax+34h] and cl, 0FEh or cl, 0 mov [rax+34h], cl mov cl, [rbp+var_9] mov rax, [rbp+var_18] mov [rax+681h], cl jmp short $+2 loc_37C4C: xor eax, eax add rsp, 20h pop rbp retn
long long ma_get_status(long long a1, char a2) { memcpy(a1 + 40, *(_QWORD *)a1 + 24LL, 56LL); *(_QWORD *)(a1 + 32) = a1 + 40; *(_BYTE *)(*(_QWORD *)(a1 + 32) + 52LL) &= ~1u; *(_BYTE *)(a1 + 1665) = a2; return 0LL; }
_ma_get_status: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,SIL MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],AL MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x00137bfc LAB_00137bfc: MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x28 MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX] ADD RSI,0x18 MOV EDX,0x38 CALL 0x0012a090 MOV RCX,qword ptr [RBP + -0x18] ADD RCX,0x28 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x20] MOV CL,byte ptr [RAX + 0x34] AND CL,0xfe OR CL,0x0 MOV byte ptr [RAX + 0x34],CL MOV CL,byte ptr [RBP + -0x9] MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x681],CL JMP 0x00137c4c LAB_00137c4c: XOR EAX,EAX ADD RSP,0x20 POP RBP RET
int8 _ma_get_status(long *param_1,int1 param_2) { memcpy(param_1 + 5,(void *)(*param_1 + 0x18),0x38); param_1[4] = (long)(param_1 + 5); *(byte *)(param_1[4] + 0x34) = *(byte *)(param_1[4] + 0x34) & 0xfe; *(int1 *)((long)param_1 + 0x681) = param_2; return 0; }
3,874
minja::Value::operator/(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
Value operator/(const Value& rhs) const { if (is_number_integer() && rhs.is_number_integer()) return get<int64_t>() / rhs.get<int64_t>(); else return get<double>() / rhs.get<double>(); }
O1
cpp
minja::Value::operator/(minja::Value const&) const: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rdi, %rbx movb 0x40(%rsi), %al addb $-0x5, %al cmpb $0x1, %al ja 0x9c635 movb 0x40(%r14), %al addb $-0x5, %al cmpb $0x1, %al ja 0x9c635 movq %rsi, %rdi callq 0x8b378 movq %rax, %r15 movq %r14, %rdi callq 0x8b378 movq %rax, %rcx movq %r15, %rax cqto idivq %rcx leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movq %rax, %rsi callq 0x64baa jmp 0x9c681 movq %rsi, %rdi callq 0x8b4aa movsd %xmm0, 0x8(%rsp) movq %r14, %rdi callq 0x8b4aa movsd 0x8(%rsp), %xmm1 divsd %xmm0, %xmm1 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movapd %xmm1, %xmm0 callq 0x6416a movq %r14, %rdi movl $0x1, %esi callq 0x5cc1e movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq nop
_ZNK5minja5ValuedvERKS0_: push r15 push r14 push rbx sub rsp, 10h mov r14, rdx mov rbx, rdi mov al, [rsi+40h] add al, 0FBh cmp al, 1 ja short loc_9C635 mov al, [r14+40h] add al, 0FBh cmp al, 1 ja short loc_9C635 mov rdi, rsi call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r15, rax mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov rcx, rax mov rax, r15 cqo idiv rcx lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) jmp short loc_9C681 loc_9C635: mov rdi, rsi call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+28h+var_20], xmm0 mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd xmm1, [rsp+28h+var_20] divsd xmm1, xmm0 lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 movapd xmm0, xmm1 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) loc_9C681: mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rax, rbx add rsp, 10h pop rbx pop r14 pop r15 retn
long long minja::Value::operator/(long long a1, long long a2, long long a3) { long long v4; // r15 long long v5; // rax char *v6; // r14 double v7; // xmm1_8 double v9; // [rsp+8h] [rbp-20h] if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u || (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) > 1u ) { v9 = minja::Value::get<double>(a2); v7 = v9 / minja::Value::get<double>(a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<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>>( (unsigned __int8 *)(a1 + 64), v7); } else { v4 = minja::Value::get<long>(a2); v5 = minja::Value::get<long>(a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<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>>( (unsigned __int8 *)(a1 + 64), v4 / v5); } 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(v6); return a1; }
operator/: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDX MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0019c635 MOV AL,byte ptr [R14 + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0019c635 MOV RDI,RSI CALL 0x0018b378 MOV R15,RAX MOV RDI,R14 CALL 0x0018b378 MOV RCX,RAX MOV RAX,R15 CQO IDIV RCX LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,RAX CALL 0x00164baa JMP 0x0019c681 LAB_0019c635: MOV RDI,RSI CALL 0x0018b4aa MOVSD qword ptr [RSP + 0x8],XMM0 MOV RDI,R14 CALL 0x0018b4aa MOVSD XMM1,qword ptr [RSP + 0x8] DIVSD XMM1,XMM0 LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOVAPD XMM0,XMM1 CALL 0x0016416a LAB_0019c681: MOV RDI,R14 MOV ESI,0x1 CALL 0x0015cc1e MOV RAX,RBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ Value * __thiscall minja::Value::operator/(Value *this,Value *param_1) { long lVar1; long lVar2; Value *in_RDX; double dVar3; double dVar4; if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) { lVar1 = get<long>(param_1); lVar2 = get<long>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 + 0x40,lVar1 / lVar2,lVar1 % lVar2); } else { dVar3 = get<double>(param_1); dVar4 = get<double>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (dVar3 / dVar4,this + 0x40); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((bool)((char)this + '@')); return this; }
3,875
minja::Value::operator/(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
Value operator/(const Value& rhs) const { if (is_number_integer() && rhs.is_number_integer()) return get<int64_t>() / rhs.get<int64_t>(); else return get<double>() / rhs.get<double>(); }
O3
cpp
minja::Value::operator/(minja::Value const&) const: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rdi, %rbx movb 0x40(%rsi), %al addb $-0x5, %al cmpb $0x1, %al ja 0x9c065 movb 0x40(%r14), %al addb $-0x5, %al cmpb $0x1, %al ja 0x9c065 movq %rsi, %rdi callq 0x8b01e movq %rax, %r15 movq %r14, %rdi callq 0x8b01e movq %rax, %rcx movq %r15, %rax cqto idivq %rcx leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movq %rax, %rsi callq 0x65424 jmp 0x9c0b1 movq %rsi, %rdi callq 0x8b168 movsd %xmm0, 0x8(%rsp) movq %r14, %rdi callq 0x8b168 movsd 0x8(%rsp), %xmm1 divsd %xmm0, %xmm1 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movapd %xmm1, %xmm0 callq 0x649ec movq %r14, %rdi movl $0x1, %esi callq 0x5d774 movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq nop
_ZNK5minja5ValuedvERKS0_: push r15 push r14 push rbx sub rsp, 10h mov r14, rdx mov rbx, rdi mov al, [rsi+40h] add al, 0FBh cmp al, 1 ja short loc_9C065 mov al, [r14+40h] add al, 0FBh cmp al, 1 ja short loc_9C065 mov rdi, rsi call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r15, rax mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov rcx, rax mov rax, r15 cqo idiv rcx lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) jmp short loc_9C0B1 loc_9C065: mov rdi, rsi call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+28h+var_20], xmm0 mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd xmm1, [rsp+28h+var_20] divsd xmm1, xmm0 lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 movapd xmm0, xmm1 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) loc_9C0B1: mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rax, rbx add rsp, 10h pop rbx pop r14 pop r15 retn
long long minja::Value::operator/(long long a1, long long a2, long long a3) { long long v4; // r15 long long v5; // rax char *v6; // r14 double v7; // xmm1_8 double v9; // [rsp+8h] [rbp-20h] if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u || (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) > 1u ) { v9 = minja::Value::get<double>(a2); v7 = v9 / minja::Value::get<double>(a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<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>>( (unsigned __int8 *)(a1 + 64), v7); } else { v4 = minja::Value::get<long>(a2); v5 = minja::Value::get<long>(a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<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>>( (unsigned __int8 *)(a1 + 64), v4 / v5); } 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(v6); return a1; }
operator/: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDX MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0019c065 MOV AL,byte ptr [R14 + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0019c065 MOV RDI,RSI CALL 0x0018b01e MOV R15,RAX MOV RDI,R14 CALL 0x0018b01e MOV RCX,RAX MOV RAX,R15 CQO IDIV RCX LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,RAX CALL 0x00165424 JMP 0x0019c0b1 LAB_0019c065: MOV RDI,RSI CALL 0x0018b168 MOVSD qword ptr [RSP + 0x8],XMM0 MOV RDI,R14 CALL 0x0018b168 MOVSD XMM1,qword ptr [RSP + 0x8] DIVSD XMM1,XMM0 LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOVAPD XMM0,XMM1 CALL 0x001649ec LAB_0019c0b1: MOV RDI,R14 MOV ESI,0x1 CALL 0x0015d774 MOV RAX,RBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ Value * __thiscall minja::Value::operator/(Value *this,Value *param_1) { long lVar1; long lVar2; Value *in_RDX; double dVar3; double dVar4; if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) { lVar1 = get<long>(param_1); lVar2 = get<long>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 + 0x40,lVar1 / lVar2,lVar1 % lVar2); } else { dVar3 = get<double>(param_1); dVar4 = get<double>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (dVar3 / dVar4,this + 0x40); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((bool)((char)this + '@')); return this; }
3,876
nglog::DoRawLog(char**, unsigned long*, char const*, ...)
ng-log[P]ng-log/src/raw_logging.cc
static bool DoRawLog(char** buf, size_t* size, const char* format, ...) { va_list ap; va_start(ap, format); int n = std::vsnprintf(*buf, *size, format, ap); va_end(ap); if (n < 0 || static_cast<size_t>(n) > *size) return false; *size -= static_cast<size_t>(n); *buf += n; return true; }
O3
cpp
nglog::DoRawLog(char**, unsigned long*, char const*, ...): pushq %r14 pushq %rbx subq $0xd8, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x20(%rsp), %rsi movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x1f7ef movaps %xmm0, 0x50(%rsp) movaps %xmm1, 0x60(%rsp) movaps %xmm2, 0x70(%rsp) movaps %xmm3, 0x80(%rsp) movaps %xmm4, 0x90(%rsp) movaps %xmm5, 0xa0(%rsp) movaps %xmm6, 0xb0(%rsp) movaps %xmm7, 0xc0(%rsp) movq %rsp, %rcx movq %rsi, 0x10(%rcx) leaq 0xf0(%rsp), %rax movq %rax, 0x8(%rcx) movabsq $0x3000000018, %rax # imm = 0x3000000018 movq %rax, (%rcx) movq (%rdi), %rdi movq (%r14), %rsi callq 0x72f0 testl %eax, %eax js 0x1f82e movl %eax, %eax movq (%r14), %rcx subq %rax, %rcx jb 0x1f82e movq %rcx, (%r14) addq %rax, (%rbx) addq $0xd8, %rsp popq %rbx popq %r14 retq
_ZN5nglogL8DoRawLogEPPcPmPKcz: push r14 push rbx sub rsp, 0D8h mov r14, rsi mov rbx, rdi lea rsi, [rsp+0E8h+var_C8] mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_1F7EF movaps [rsp+0E8h+var_98], xmm0 movaps [rsp+0E8h+var_88], xmm1 movaps [rsp+0E8h+var_78], xmm2 movaps [rsp+0E8h+var_68], xmm3 movaps [rsp+0E8h+var_58], xmm4 movaps [rsp+0E8h+var_48], xmm5 movaps [rsp+0E8h+var_38], xmm6 movaps [rsp+0E8h+var_28], xmm7 loc_1F7EF: mov rcx, rsp mov [rcx+10h], rsi lea rax, [rsp+0E8h+arg_0] mov [rcx+8], rax mov rax, 3000000018h mov [rcx], rax mov rdi, [rdi] mov rsi, [r14] call _vsnprintf test eax, eax js short loc_1F82E mov eax, eax mov rcx, [r14] sub rcx, rax jb short loc_1F82E mov [r14], rcx add [rbx], rax loc_1F82E: add rsp, 0D8h pop rbx pop r14 retn
long long nglog::DoRawLog( nglog *this, char **a2, unsigned long long *a3, const char *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) { long long result; // rax _QWORD v16[4]; // [rsp+0h] [rbp-E8h] BYREF char v17; // [rsp+20h] [rbp-C8h] BYREF const char *v18; // [rsp+38h] [rbp-B0h] long long v19; // [rsp+40h] [rbp-A8h] long long v20; // [rsp+48h] [rbp-A0h] __m128 v21; // [rsp+50h] [rbp-98h] __m128 v22; // [rsp+60h] [rbp-88h] __m128 v23; // [rsp+70h] [rbp-78h] __m128 v24; // [rsp+80h] [rbp-68h] __m128 v25; // [rsp+90h] [rbp-58h] __m128 v26; // [rsp+A0h] [rbp-48h] __m128 v27; // [rsp+B0h] [rbp-38h] __m128 v28; // [rsp+C0h] [rbp-28h] v21 = a7; v22 = a8; v23 = a9; v24 = a10; v25 = a11; v26 = a12; v27 = a13; v28 = a14; v18 = a4; v19 = a5; v20 = a6; v16[2] = &v17; v16[1] = &a15; v16[0] = 0x3000000018LL; result = vsnprintf(*(_QWORD *)this, *a2, a3, v16); if ( (int)result >= 0 ) { result = (unsigned int)result; if ( (unsigned long long)*a2 >= (unsigned int)result ) { *a2 -= (unsigned int)result; *(_QWORD *)this += (unsigned int)result; } } return result; }
DoRawLog: PUSH R14 PUSH RBX SUB RSP,0xd8 MOV R14,RSI MOV RBX,RDI LEA RSI,[RSP + 0x20] MOV qword ptr [RSI + 0x18],RCX MOV qword ptr [RSI + 0x20],R8 MOV qword ptr [RSI + 0x28],R9 TEST AL,AL JZ 0x0011f7ef MOVAPS xmmword ptr [RSP + 0x50],XMM0 MOVAPS xmmword ptr [RSP + 0x60],XMM1 MOVAPS xmmword ptr [RSP + 0x70],XMM2 MOVAPS xmmword ptr [RSP + 0x80],XMM3 MOVAPS xmmword ptr [RSP + 0x90],XMM4 MOVAPS xmmword ptr [RSP + 0xa0],XMM5 MOVAPS xmmword ptr [RSP + 0xb0],XMM6 MOVAPS xmmword ptr [RSP + 0xc0],XMM7 LAB_0011f7ef: MOV RCX,RSP MOV qword ptr [RCX + 0x10],RSI LEA RAX,[RSP + 0xf0] MOV qword ptr [RCX + 0x8],RAX MOV RAX,0x3000000018 MOV qword ptr [RCX],RAX MOV RDI,qword ptr [RDI] MOV RSI,qword ptr [R14] CALL 0x001072f0 TEST EAX,EAX JS 0x0011f82e MOV EAX,EAX MOV RCX,qword ptr [R14] SUB RCX,RAX JC 0x0011f82e MOV qword ptr [R14],RCX ADD qword ptr [RBX],RAX LAB_0011f82e: ADD RSP,0xd8 POP RBX POP R14 RET
/* nglog::DoRawLog(char**, unsigned long*, char const*, ...) */ void nglog::DoRawLog(char **param_1,ulong *param_2,char *param_3,...) { char in_AL; uint uVar1; ulong uVar2; int8 in_RCX; int8 in_R8; int8 in_R9; int8 in_XMM0_Qa; int8 in_XMM1_Qa; int8 in_XMM2_Qa; int8 in_XMM3_Qa; int8 in_XMM4_Qa; int8 in_XMM5_Qa; int8 in_XMM6_Qa; int8 in_XMM7_Qa; int8 local_e8; int1 *local_e0; int1 *local_d8; int1 local_c8 [24]; int8 local_b0; int8 local_a8; int8 local_a0; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int8 local_28; local_d8 = local_c8; if (in_AL != '\0') { local_98 = in_XMM0_Qa; local_88 = in_XMM1_Qa; local_78 = in_XMM2_Qa; local_68 = in_XMM3_Qa; local_58 = in_XMM4_Qa; local_48 = in_XMM5_Qa; local_38 = in_XMM6_Qa; local_28 = in_XMM7_Qa; } local_e0 = &stack0x00000008; local_e8 = 0x3000000018; local_b0 = in_RCX; local_a8 = in_R8; local_a0 = in_R9; uVar1 = vsnprintf(*param_1,*param_2,param_3,&local_e8); if (-1 < (int)uVar1) { uVar2 = (ulong)uVar1; if (uVar2 <= *param_2) { *param_2 = *param_2 - uVar2; *param_1 = *param_1 + uVar2; } } return; }
3,877
flush_simple_key_cache_blocks
eloqsql/mysys/mf_keycache.c
static int flush_simple_key_cache_blocks(SIMPLE_KEY_CACHE_CB *keycache, File file, void *file_extra __attribute__((unused)), enum flush_type type) { int res= 0; DBUG_ENTER("flush_key_blocks"); DBUG_PRINT("enter", ("keycache: %p", keycache)); if (!keycache->key_cache_inited) DBUG_RETURN(0); keycache_pthread_mutex_lock(&keycache->cache_lock); /* While waiting for lock, keycache could have been ended. */ if (keycache->disk_blocks > 0) { inc_counter_for_resize_op(keycache); res= flush_key_blocks_int(keycache, file, type); dec_counter_for_resize_op(keycache); } keycache_pthread_mutex_unlock(&keycache->cache_lock); DBUG_RETURN(res); }
O0
c
flush_simple_key_cache_blocks: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movl $0x0, -0x28(%rbp) jmp 0xe7d9f movq -0x10(%rbp), %rax cmpb $0x0, (%rax) jne 0xe7db3 jmp 0xe7daa movl $0x0, -0x4(%rbp) jmp 0xe7e13 movq -0x10(%rbp), %rdi addq $0xc0, %rdi leaq 0x6d70c(%rip), %rsi # 0x1554d1 movl $0x111a, %edx # imm = 0x111A callq 0xe49a0 movq -0x10(%rbp), %rax cmpl $0x0, 0x48(%rax) jle 0xe7dfd movq -0x10(%rbp), %rdi callq 0xe4ac0 movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movl -0x24(%rbp), %edx callq 0xe8400 movl %eax, -0x28(%rbp) movq -0x10(%rbp), %rdi callq 0xe58c0 movq -0x10(%rbp), %rdi addq $0xc0, %rdi callq 0xe53c0 movl -0x28(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
flush_simple_key_cache_blocks: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_28], 0 jmp short $+2 loc_E7D9F: mov rax, [rbp+var_10] cmp byte ptr [rax], 0 jnz short loc_E7DB3 jmp short $+2 loc_E7DAA: mov [rbp+var_4], 0 jmp short loc_E7E13 loc_E7DB3: mov rdi, [rbp+var_10] add rdi, 0C0h lea rsi, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 111Ah call inline_mysql_mutex_lock_24 mov rax, [rbp+var_10] cmp dword ptr [rax+48h], 0 jle short loc_E7DFD mov rdi, [rbp+var_10] call inc_counter_for_resize_op_0 mov rdi, [rbp+var_10] mov esi, [rbp+var_14] mov edx, [rbp+var_24] call flush_key_blocks_int mov [rbp+var_28], eax mov rdi, [rbp+var_10] call dec_counter_for_resize_op_0 loc_E7DFD: mov rdi, [rbp+var_10] add rdi, 0C0h call inline_mysql_mutex_unlock_25 mov eax, [rbp+var_28] mov [rbp+var_4], eax loc_E7E13: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long flush_simple_key_cache_blocks(long long a1, unsigned int a2, long long a3, unsigned int a4) { unsigned int v5; // [rsp+8h] [rbp-28h] v5 = 0; if ( *(_BYTE *)a1 ) { inline_mysql_mutex_lock_24( a1 + 192, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0x111Au); if ( *(int *)(a1 + 72) > 0 ) { inc_counter_for_resize_op_0(a1); v5 = flush_key_blocks_int(a1, a2, a4); dec_counter_for_resize_op_0(a1); } inline_mysql_mutex_unlock_25(a1 + 192); return v5; } else { return 0; } }
flush_simple_key_cache_blocks: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV dword ptr [RBP + -0x28],0x0 JMP 0x001e7d9f LAB_001e7d9f: MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX],0x0 JNZ 0x001e7db3 JMP 0x001e7daa LAB_001e7daa: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001e7e13 LAB_001e7db3: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc0 LEA RSI,[0x2554d1] MOV EDX,0x111a CALL 0x001e49a0 MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x48],0x0 JLE 0x001e7dfd MOV RDI,qword ptr [RBP + -0x10] CALL 0x001e4ac0 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV EDX,dword ptr [RBP + -0x24] CALL 0x001e8400 MOV dword ptr [RBP + -0x28],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x001e58c0 LAB_001e7dfd: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc0 CALL 0x001e53c0 MOV EAX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x4],EAX LAB_001e7e13: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 flush_simple_key_cache_blocks (char *param_1,int4 param_2,int8 param_3,int4 param_4) { int4 local_30; int4 local_c; local_30 = 0; if (*param_1 == '\0') { local_c = 0; } else { inline_mysql_mutex_lock (param_1 + 0xc0,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0x111a) ; if (0 < *(int *)(param_1 + 0x48)) { inc_counter_for_resize_op(param_1); local_30 = flush_key_blocks_int(param_1,param_2,param_4); dec_counter_for_resize_op(param_1); } inline_mysql_mutex_unlock(param_1 + 0xc0); local_c = local_30; } return local_c; }
3,878
google::protobuf::io::ArrayInputStream::Skip(int)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
bool ArrayInputStream::Skip(int count) { GOOGLE_CHECK_GE(count, 0); last_returned_size_ = 0; // Don't let caller back up. if (count > size_ - position_) { position_ = size_; return false; } else { position_ += count; return true; } }
O3
cpp
google::protobuf::io::ArrayInputStream::Skip(int): pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movl %esi, %ebp movq %rdi, %rbx testl %esi, %esi jns 0x9cddd leaq 0x20ce0(%rip), %rdx # 0xbda80 leaq 0x8(%rsp), %r14 movq %r14, %rdi movl $0x3, %esi movl $0x59, %ecx callq 0x169ca leaq 0x20dd0(%rip), %rsi # 0xbdb8e movq %r14, %rdi callq 0x164c8 leaq 0x7(%rsp), %rdi movq %rax, %rsi callq 0x165a2 leaq 0x8(%rsp), %rdi callq 0x169e8 movl $0x0, 0x1c(%rbx) movl 0x10(%rbx), %ecx movl 0x18(%rbx), %edx movl %ecx, %eax subl %edx, %eax addl %ebp, %edx cmpl %ebp, %eax setge %al cmovll %ecx, %edx movl %edx, 0x18(%rbx) addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq jmp 0x9ce06 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x169e8 movq %rbx, %rdi callq 0xf570 nop
_ZN6google8protobuf2io16ArrayInputStream4SkipEi: push rbp push r14 push rbx sub rsp, 40h mov ebp, esi mov rbx, rdi test esi, esi jns short loc_9CDDD lea rdx, aWorkspaceLlm4b_24; "/workspace/llm4binary/github2025/aimrt_"... lea r14, [rsp+58h+var_50] mov rdi, r14 mov esi, 3 mov ecx, 59h ; 'Y' call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) lea rsi, aCheckFailedCou_0; "CHECK failed: (count) >= (0): " mov rdi, r14 call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rdi, [rsp+58h+var_51] mov rsi, rax call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) lea rdi, [rsp+58h+var_50]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_9CDDD: mov dword ptr [rbx+1Ch], 0 mov ecx, [rbx+10h] mov edx, [rbx+18h] mov eax, ecx sub eax, edx add edx, ebp cmp eax, ebp setnl al cmovl edx, ecx mov [rbx+18h], edx add rsp, 40h pop rbx pop r14 pop rbp retn jmp short $+2 loc_9CE06: mov rbx, rax lea rdi, [rsp+arg_0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() mov rdi, rbx call __Unwind_Resume
bool google::protobuf::io::ArrayInputStream::Skip(google::protobuf::io::ArrayInputStream *this, int a2) { google::protobuf::internal::LogMessage *v2; // rax int v3; // edx int v4; // eax int v5; // edx bool result; // al char v7; // [rsp+7h] [rbp-51h] BYREF _BYTE v8[80]; // [rsp+8h] [rbp-50h] BYREF if ( a2 < 0 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v8, 3, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_str" "eam_impl_lite.cc", 89); v2 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( (long long)v8, (long long)"CHECK failed: (count) >= (0): "); google::protobuf::internal::LogFinisher::operator=((long long)&v7, v2); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v8); } *((_DWORD *)this + 7) = 0; v3 = *((_DWORD *)this + 6); v4 = *((_DWORD *)this + 4) - v3; v5 = a2 + v3; result = v4 >= a2; if ( !result ) v5 = *((_DWORD *)this + 4); *((_DWORD *)this + 6) = v5; return result; }
Skip: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV EBP,ESI MOV RBX,RDI TEST ESI,ESI JNS 0x0019cddd LEA RDX,[0x1bda80] LEA R14,[RSP + 0x8] MOV RDI,R14 MOV ESI,0x3 MOV ECX,0x59 CALL 0x001169ca LAB_0019cdb7: LEA RSI,[0x1bdb8e] MOV RDI,R14 CALL 0x001164c8 LAB_0019cdc6: LEA RDI,[RSP + 0x7] MOV RSI,RAX CALL 0x001165a2 LAB_0019cdd3: LEA RDI,[RSP + 0x8] CALL 0x001169e8 LAB_0019cddd: MOV dword ptr [RBX + 0x1c],0x0 MOV ECX,dword ptr [RBX + 0x10] MOV EDX,dword ptr [RBX + 0x18] MOV EAX,ECX SUB EAX,EDX ADD EDX,EBP CMP EAX,EBP SETGE AL CMOVL EDX,ECX MOV dword ptr [RBX + 0x18],EDX ADD RSP,0x40 POP RBX POP R14 POP RBP RET
/* google::protobuf::io::ArrayInputStream::Skip(int) */ int4 __thiscall google::protobuf::io::ArrayInputStream::Skip(ArrayInputStream *this,int param_1) { int iVar1; LogMessage *pLVar2; int iVar3; LogFinisher local_51; LogMessage local_50 [56]; if (param_1 < 0) { internal::LogMessage::LogMessage (local_50,3, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl_lite.cc" ,0x59); /* try { // try from 0019cdb7 to 0019cdc5 has its CatchHandler @ 0019ce06 */ pLVar2 = (LogMessage *) internal::LogMessage::operator<<(local_50,"CHECK failed: (count) >= (0): "); /* try { // try from 0019cdc6 to 0019cdd2 has its CatchHandler @ 0019ce04 */ internal::LogFinisher::operator=(&local_51,pLVar2); internal::LogMessage::~LogMessage(local_50); } *(int4 *)(this + 0x1c) = 0; iVar1 = *(int *)(this + 0x10) - *(int *)(this + 0x18); iVar3 = *(int *)(this + 0x18) + param_1; if (iVar1 < param_1) { iVar3 = *(int *)(this + 0x10); } *(int *)(this + 0x18) = iVar3; return CONCAT31((int3)((uint)iVar1 >> 8),param_1 <= iVar1); }
3,879
string_parse_kv_override(char const*, std::vector<llama_model_kv_override, std::allocator<llama_model_kv_override>>&)
monkey531[P]llama/common/common.cpp
bool string_parse_kv_override(const char * data, std::vector<llama_model_kv_override> & overrides) { const char * sep = strchr(data, '='); if (sep == nullptr || sep - data >= 128) { LOG_ERR("%s: malformed KV override '%s'\n", __func__, data); return false; } llama_model_kv_override kvo; std::strncpy(kvo.key, data, sep - data); kvo.key[sep - data] = 0; sep++; if (strncmp(sep, "int:", 4) == 0) { sep += 4; kvo.tag = LLAMA_KV_OVERRIDE_TYPE_INT; kvo.val_i64 = std::atol(sep); } else if (strncmp(sep, "float:", 6) == 0) { sep += 6; kvo.tag = LLAMA_KV_OVERRIDE_TYPE_FLOAT; kvo.val_f64 = std::atof(sep); } else if (strncmp(sep, "bool:", 5) == 0) { sep += 5; kvo.tag = LLAMA_KV_OVERRIDE_TYPE_BOOL; if (std::strcmp(sep, "true") == 0) { kvo.val_bool = true; } else if (std::strcmp(sep, "false") == 0) { kvo.val_bool = false; } else { LOG_ERR("%s: invalid boolean value for KV override '%s'\n", __func__, data); return false; } } else if (strncmp(sep, "str:", 4) == 0) { sep += 4; kvo.tag = LLAMA_KV_OVERRIDE_TYPE_STR; if (strlen(sep) > 127) { LOG_ERR("%s: malformed KV override '%s', value cannot exceed 127 chars\n", __func__, data); return false; } strncpy(kvo.val_str, sep, 127); kvo.val_str[127] = '\0'; } else { LOG_ERR("%s: invalid type for KV override '%s'\n", __func__, data); return false; } overrides.emplace_back(std::move(kvo)); return true; }
O3
cpp
string_parse_kv_override(char const*, std::vector<llama_model_kv_override, std::allocator<llama_model_kv_override>>&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x110, %rsp # imm = 0x110 movq %rsi, %r14 movq %rdi, %rbx movl $0x3d, %esi callq 0x19240 testq %rax, %rax je 0x58004 movq %rax, %r15 movq %rax, %r12 subq %rbx, %r12 cmpq $0x80, %r12 jl 0x58040 leaq 0x951e5(%rip), %rax # 0xed1f0 cmpl $0x0, (%rax) js 0x581ec callq 0x9ac47 leaq 0x61f46(%rip), %rdx # 0xb9f66 leaq 0x61f5f(%rip), %rcx # 0xb9f86 xorl %ebp, %ebp movq %rax, %rdi movl $0x4, %esi movq %rbx, %r8 xorl %eax, %eax callq 0x9ace4 jmp 0x581ee leaq 0xc(%rsp), %rdi movq %rbx, %rsi movq %r12, %rdx callq 0x19390 movb $0x0, 0xc(%rsp,%r12) leaq 0x1(%r15), %r12 leaq 0x61f3e(%rip), %rsi # 0xb9f9f movl $0x4, %edx movq %r12, %rdi callq 0x19350 testl %eax, %eax je 0x580e3 leaq 0x61f2b(%rip), %rsi # 0xb9fa4 movl $0x6, %edx movq %r12, %rdi callq 0x19350 testl %eax, %eax je 0x58101 leaq 0x61f1a(%rip), %rsi # 0xb9fab movl $0x5, %edx movq %r12, %rdi callq 0x19350 testl %eax, %eax je 0x5815c leaq 0x61f34(%rip), %rsi # 0xb9fe1 movl $0x4, %edx movq %r12, %rdi callq 0x19350 testl %eax, %eax je 0x581b3 leaq 0x95127(%rip), %rax # 0xed1f0 cmpl $0x0, (%rax) js 0x581ec callq 0x9ac47 leaq 0x61f47(%rip), %rdx # 0xba025 jmp 0x58020 addq $0x5, %r15 movl $0x0, 0x8(%rsp) movq %r15, %rdi callq 0x197f0 movq %rax, 0x90(%rsp) jmp 0x5811e addq $0x7, %r15 movl $0x1, 0x8(%rsp) movq %r15, %rdi callq 0x19830 movsd %xmm0, 0x90(%rsp) movq 0x8(%r14), %rax cmpq 0x10(%r14), %rax je 0x58144 leaq 0x8(%rsp), %rsi movl $0x108, %edx # imm = 0x108 movq %rax, %rdi callq 0x195a0 addq $0x108, 0x8(%r14) # imm = 0x108 jmp 0x58154 leaq 0x8(%rsp), %rdx movq %r14, %rdi movq %rax, %rsi callq 0x9875e movb $0x1, %bpl jmp 0x581ee addq $0x6, %r15 movl $0x2, 0x8(%rsp) leaq 0x5d6cd(%rip), %rsi # 0xb583c movq %r15, %rdi callq 0x19960 testl %eax, %eax je 0x58200 leaq 0x5b9cc(%rip), %rsi # 0xb3b52 movq %r15, %rdi callq 0x19960 testl %eax, %eax je 0x5822e leaq 0x95053(%rip), %rax # 0xed1f0 cmpl $0x0, (%rax) js 0x581ec callq 0x9ac47 leaq 0x61e03(%rip), %rdx # 0xb9fb1 jmp 0x58020 addq $0x5, %r15 movl $0x3, 0x8(%rsp) movq %r15, %rdi callq 0x19310 cmpq $0x80, %rax jb 0x5820d leaq 0x9501a(%rip), %rax # 0xed1f0 cmpl $0x0, (%rax) js 0x581ec callq 0x9ac47 leaq 0x61dff(%rip), %rdx # 0xb9fe6 jmp 0x58020 xorl %ebp, %ebp movl %ebp, %eax addq $0x110, %rsp # imm = 0x110 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movb $0x1, 0x90(%rsp) jmp 0x5811e leaq 0x90(%rsp), %rbx movl $0x7f, %edx movq %rbx, %rdi movq %r15, %rsi callq 0x19390 movb $0x0, 0x7f(%rbx) jmp 0x5811e movb $0x0, 0x90(%rsp) jmp 0x5811e
_Z24string_parse_kv_overridePKcRSt6vectorI23llama_model_kv_overrideSaIS2_EE: push rbp push r15 push r14 push r12 push rbx sub rsp, 110h mov r14, rsi mov rbx, rdi mov esi, 3Dh ; '=' call _strchr test rax, rax jz short loc_58004 mov r15, rax mov r12, rax sub r12, rbx cmp r12, 80h jl short loc_58040 loc_58004: lea rax, common_log_verbosity_thold cmp dword ptr [rax], 0 js loc_581EC call _Z15common_log_mainv; common_log_main(void) lea rdx, aSMalformedKvOv; "%s: malformed KV override '%s'\n" loc_58020: lea rcx, aStringParseKvO; "string_parse_kv_override" xor ebp, ebp mov rdi, rax mov esi, 4 mov r8, rbx xor eax, eax call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...) jmp loc_581EE loc_58040: lea rdi, [rsp+138h+var_12C] mov rsi, rbx mov rdx, r12 call _strncpy mov [rsp+r12+138h+var_12C], 0 lea r12, [r15+1] lea rsi, aInt; "int:" mov edx, 4 mov rdi, r12 call _strncmp test eax, eax jz short loc_580E3 lea rsi, aFloat; "float:" mov edx, 6 mov rdi, r12 call _strncmp test eax, eax jz short loc_58101 lea rsi, aBool; "bool:" mov edx, 5 mov rdi, r12 call _strncmp test eax, eax jz loc_5815C lea rsi, aStr; "str:" mov edx, 4 mov rdi, r12 call _strncmp test eax, eax jz loc_581B3 lea rax, common_log_verbosity_thold cmp dword ptr [rax], 0 js loc_581EC call _Z15common_log_mainv; common_log_main(void) lea rdx, aSInvalidTypeFo; "%s: invalid type for KV override '%s'\n" jmp loc_58020 loc_580E3: add r15, 5 mov [rsp+138h+var_130], 0 mov rdi, r15 call _atol mov [rsp+138h+var_A8], rax jmp short loc_5811E loc_58101: add r15, 7 mov [rsp+138h+var_130], 1 mov rdi, r15 call _atof movsd [rsp+138h+var_A8], xmm0 loc_5811E: mov rax, [r14+8] cmp rax, [r14+10h] jz short loc_58144 lea rsi, [rsp+138h+var_130] mov edx, 108h mov rdi, rax call _memcpy add qword ptr [r14+8], 108h jmp short loc_58154 loc_58144: lea rdx, [rsp+138h+var_130] mov rdi, r14 mov rsi, rax call _ZNSt6vectorI23llama_model_kv_overrideSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_; std::vector<llama_model_kv_override>::_M_realloc_insert<llama_model_kv_override>(__gnu_cxx::__normal_iterator<llama_model_kv_override*,std::vector<llama_model_kv_override>>,llama_model_kv_override &&) loc_58154: mov bpl, 1 jmp loc_581EE loc_5815C: add r15, 6 mov [rsp+138h+var_130], 2 lea rsi, aObjectProperti_0+29h; "true" mov rdi, r15 call _strcmp test eax, eax jz loc_58200 lea rsi, aFalse; "false" mov rdi, r15 call _strcmp test eax, eax jz loc_5822E lea rax, common_log_verbosity_thold cmp dword ptr [rax], 0 js short loc_581EC call _Z15common_log_mainv; common_log_main(void) lea rdx, aSInvalidBoolea; "%s: invalid boolean value for KV overri"... jmp loc_58020 loc_581B3: add r15, 5 mov [rsp+138h+var_130], 3 mov rdi, r15 call _strlen cmp rax, 80h jb short loc_5820D lea rax, common_log_verbosity_thold cmp dword ptr [rax], 0 js short loc_581EC call _Z15common_log_mainv; common_log_main(void) lea rdx, aSMalformedKvOv_0; "%s: malformed KV override '%s', value c"... jmp loc_58020 loc_581EC: xor ebp, ebp loc_581EE: mov eax, ebp add rsp, 110h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_58200: mov byte ptr [rsp+138h+var_A8], 1 jmp loc_5811E loc_5820D: lea rbx, [rsp+138h+var_A8] mov edx, 7Fh mov rdi, rbx mov rsi, r15 call _strncpy mov byte ptr [rbx+7Fh], 0 jmp loc_5811E loc_5822E: mov byte ptr [rsp+138h+var_A8], 0 jmp loc_5811E
long long string_parse_kv_override(long long a1, long long a2) { unsigned int v2; // ebp long long v3; // rax long long v4; // r15 long long v5; // r12 int v6; // eax int v7; // r9d const char *v8; // rdx long long v9; // r15 long long v10; // r15 int v12; // [rsp+8h] [rbp-130h] BYREF _BYTE v13[132]; // [rsp+Ch] [rbp-12Ch] BYREF long long v14[15]; // [rsp+90h] [rbp-A8h] BYREF char v15; // [rsp+10Fh] [rbp-29h] v3 = strchr(a1, 61LL); if ( !v3 || (v4 = v3, v5 = v3 - a1, v3 - a1 >= 128) ) { if ( common_log_verbosity_thold >= 0 ) { v6 = common_log_main(); v8 = "%s: malformed KV override '%s'\n"; LABEL_5: v2 = 0; common_log_add(v6, 4, (_DWORD)v8, (unsigned int)"string_parse_kv_override", a1, v7); return v2; } return 0; } strncpy(v13, a1, v3 - a1); v13[v5] = 0; if ( !(unsigned int)strncmp(v4 + 1, "int:", 4LL) ) { v12 = 0; v14[0] = atol(v4 + 5); } else if ( !(unsigned int)strncmp(v4 + 1, "float:", 6LL) ) { v12 = 1; v14[0] = atof(v4 + 7); } else if ( !(unsigned int)strncmp(v4 + 1, "bool:", 5LL) ) { v9 = v4 + 6; v12 = 2; if ( !(unsigned int)strcmp(v9, "true") ) { LOBYTE(v14[0]) = 1; } else { if ( (unsigned int)strcmp(v9, "false") ) { if ( common_log_verbosity_thold >= 0 ) { v6 = common_log_main(); v8 = "%s: invalid boolean value for KV override '%s'\n"; goto LABEL_5; } return 0; } LOBYTE(v14[0]) = 0; } } else { if ( (unsigned int)strncmp(v4 + 1, "str:", 4LL) ) { if ( common_log_verbosity_thold >= 0 ) { v6 = common_log_main(); v8 = "%s: invalid type for KV override '%s'\n"; goto LABEL_5; } return 0; } v10 = v4 + 5; v12 = 3; if ( (unsigned long long)strlen(v10) >= 0x80 ) { if ( common_log_verbosity_thold >= 0 ) { v6 = common_log_main(); v8 = "%s: malformed KV override '%s', value cannot exceed 127 chars\n"; goto LABEL_5; } return 0; } strncpy(v14, v10, 127LL); v15 = 0; } if ( *(_QWORD *)(a2 + 8) == *(_QWORD *)(a2 + 16) ) { std::vector<llama_model_kv_override>::_M_realloc_insert<llama_model_kv_override>(a2, *(_QWORD *)(a2 + 8), &v12); } else { memcpy(*(_QWORD *)(a2 + 8), &v12, 264LL); *(_QWORD *)(a2 + 8) += 264LL; } LOBYTE(v2) = 1; return v2; }
string_parse_kv_override: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x110 MOV R14,RSI MOV RBX,RDI MOV ESI,0x3d CALL 0x00119240 TEST RAX,RAX JZ 0x00158004 MOV R15,RAX MOV R12,RAX SUB R12,RBX CMP R12,0x80 JL 0x00158040 LAB_00158004: LEA RAX,[0x1ed1f0] CMP dword ptr [RAX],0x0 JS 0x001581ec CALL 0x0019ac47 LEA RDX,[0x1b9f66] LAB_00158020: LEA RCX,[0x1b9f86] XOR EBP,EBP MOV RDI,RAX MOV ESI,0x4 MOV R8,RBX XOR EAX,EAX CALL 0x0019ace4 JMP 0x001581ee LAB_00158040: LEA RDI,[RSP + 0xc] MOV RSI,RBX MOV RDX,R12 CALL 0x00119390 MOV byte ptr [RSP + R12*0x1 + 0xc],0x0 LEA R12,[R15 + 0x1] LEA RSI,[0x1b9f9f] MOV EDX,0x4 MOV RDI,R12 CALL 0x00119350 TEST EAX,EAX JZ 0x001580e3 LEA RSI,[0x1b9fa4] MOV EDX,0x6 MOV RDI,R12 CALL 0x00119350 TEST EAX,EAX JZ 0x00158101 LEA RSI,[0x1b9fab] MOV EDX,0x5 MOV RDI,R12 CALL 0x00119350 TEST EAX,EAX JZ 0x0015815c LEA RSI,[0x1b9fe1] MOV EDX,0x4 MOV RDI,R12 CALL 0x00119350 TEST EAX,EAX JZ 0x001581b3 LEA RAX,[0x1ed1f0] CMP dword ptr [RAX],0x0 JS 0x001581ec CALL 0x0019ac47 LEA RDX,[0x1ba025] JMP 0x00158020 LAB_001580e3: ADD R15,0x5 MOV dword ptr [RSP + 0x8],0x0 MOV RDI,R15 CALL 0x001197f0 MOV qword ptr [RSP + 0x90],RAX JMP 0x0015811e LAB_00158101: ADD R15,0x7 MOV dword ptr [RSP + 0x8],0x1 MOV RDI,R15 CALL 0x00119830 MOVSD qword ptr [RSP + 0x90],XMM0 LAB_0015811e: MOV RAX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [R14 + 0x10] JZ 0x00158144 LEA RSI,[RSP + 0x8] MOV EDX,0x108 MOV RDI,RAX CALL 0x001195a0 ADD qword ptr [R14 + 0x8],0x108 JMP 0x00158154 LAB_00158144: LEA RDX,[RSP + 0x8] MOV RDI,R14 MOV RSI,RAX CALL 0x0019875e LAB_00158154: MOV BPL,0x1 JMP 0x001581ee LAB_0015815c: ADD R15,0x6 MOV dword ptr [RSP + 0x8],0x2 LEA RSI,[0x1b583c] MOV RDI,R15 CALL 0x00119960 TEST EAX,EAX JZ 0x00158200 LEA RSI,[0x1b3b52] MOV RDI,R15 CALL 0x00119960 TEST EAX,EAX JZ 0x0015822e LEA RAX,[0x1ed1f0] CMP dword ptr [RAX],0x0 JS 0x001581ec CALL 0x0019ac47 LEA RDX,[0x1b9fb1] JMP 0x00158020 LAB_001581b3: ADD R15,0x5 MOV dword ptr [RSP + 0x8],0x3 MOV RDI,R15 CALL 0x00119310 CMP RAX,0x80 JC 0x0015820d LEA RAX,[0x1ed1f0] CMP dword ptr [RAX],0x0 JS 0x001581ec CALL 0x0019ac47 LEA RDX,[0x1b9fe6] JMP 0x00158020 LAB_001581ec: XOR EBP,EBP LAB_001581ee: MOV EAX,EBP ADD RSP,0x110 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00158200: MOV byte ptr [RSP + 0x90],0x1 JMP 0x0015811e LAB_0015820d: LEA RBX,[RSP + 0x90] MOV EDX,0x7f MOV RDI,RBX MOV RSI,R15 CALL 0x00119390 MOV byte ptr [RBX + 0x7f],0x0 JMP 0x0015811e LAB_0015822e: MOV byte ptr [RSP + 0x90],0x0 JMP 0x0015811e
/* string_parse_kv_override(char const*, std::vector<llama_model_kv_override, std::allocator<llama_model_kv_override> >&) */ ulong string_parse_kv_override(char *param_1,vector *param_2) { char *__s1; void *__dest; int iVar1; char *pcVar2; int8 uVar3; int8 unaff_RBP; ulong uVar4; size_t sVar5; int4 local_130; char local_12c [132]; double local_a8 [15]; int1 local_29; pcVar2 = strchr(param_1,0x3d); if ((pcVar2 == (char *)0x0) || (sVar5 = (long)pcVar2 - (long)param_1, 0x7f < (long)sVar5)) { if (common_log_verbosity_thold < 0) goto LAB_001581ec; uVar3 = common_log_main(); pcVar2 = "%s: malformed KV override \'%s\'\n"; goto LAB_00158020; } strncpy(local_12c,param_1,sVar5); local_12c[sVar5] = '\0'; __s1 = pcVar2 + 1; iVar1 = strncmp(__s1,"int:",4); if (iVar1 == 0) { local_130 = 0; local_a8[0] = (double)atol(pcVar2 + 5); } else { iVar1 = strncmp(__s1,"float:",6); if (iVar1 == 0) { local_130 = 1; local_a8[0] = atof(pcVar2 + 7); } else { iVar1 = strncmp(__s1,"bool:",5); if (iVar1 != 0) { iVar1 = strncmp(__s1,"str:",4); if (iVar1 == 0) { local_130 = 3; sVar5 = strlen(pcVar2 + 5); if (sVar5 < 0x80) { strncpy((char *)local_a8,pcVar2 + 5,0x7f); local_29 = 0; goto LAB_0015811e; } if (common_log_verbosity_thold < 0) goto LAB_001581ec; uVar3 = common_log_main(); pcVar2 = "%s: malformed KV override \'%s\', value cannot exceed 127 chars\n"; } else { if (common_log_verbosity_thold < 0) { LAB_001581ec: uVar4 = 0; goto LAB_001581ee; } uVar3 = common_log_main(); pcVar2 = "%s: invalid type for KV override \'%s\'\n"; } LAB_00158020: uVar4 = 0; common_log_add(uVar3,4,pcVar2,"string_parse_kv_override",param_1); goto LAB_001581ee; } local_130 = 2; iVar1 = strcmp(pcVar2 + 6,"true"); if (iVar1 == 0) { local_a8[0] = (double)CONCAT71(local_a8[0]._1_7_,1); } else { iVar1 = strcmp(pcVar2 + 6,"false"); if (iVar1 != 0) { if (common_log_verbosity_thold < 0) goto LAB_001581ec; uVar3 = common_log_main(); pcVar2 = "%s: invalid boolean value for KV override \'%s\'\n"; goto LAB_00158020; } local_a8[0] = (double)((ulong)local_a8[0] & 0xffffffffffffff00); } } } LAB_0015811e: __dest = *(void **)(param_2 + 8); if (__dest == *(void **)(param_2 + 0x10)) { std::vector<llama_model_kv_override,std::allocator<llama_model_kv_override>>:: _M_realloc_insert<llama_model_kv_override> ((vector<llama_model_kv_override,std::allocator<llama_model_kv_override>> *)param_2, __dest,&local_130); } else { memcpy(__dest,&local_130,0x108); *(long *)(param_2 + 8) = *(long *)(param_2 + 8) + 0x108; } uVar4 = CONCAT71((int7)((ulong)unaff_RBP >> 8),1); LAB_001581ee: return uVar4 & 0xffffffff; }
3,880
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 0x7de55 jmp 0x7de57 jmp 0x7de59 movq -0x20(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax jne 0x7de79 leaq 0x3c7daa(%rip), %rax # 0x445c18 movq (%rax), %rax orq -0x20(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x7de88 movq $0x1, -0x18(%rbp) cmpq $-0x1000001, -0x18(%rbp) # imm = 0xFEFFFFFF jbe 0x7dea1 jmp 0x7de94 movq $0x0, -0x8(%rbp) jmp 0x7dff8 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 0x368f0 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x7df46 callq 0x369b0 movl (%rax), %eax movl %eax, -0x38(%rbp) callq 0x7f960 movl -0x38(%rbp), %ecx movl %ecx, (%rax) movq -0x20(%rbp), %rax andq $0x8, %rax cmpq $0x0, %rax je 0x7df03 leaq 0x1b78d2(%rip), %rax # 0x2357c8 movq (%rax), %rcx leaq 0x1b78c0(%rip), %rax # 0x2357c0 movq %rcx, (%rax) movq -0x20(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0x7df26 movq -0x18(%rbp), %rdx movl $0x5, %edi movl $0x1044, %esi # imm = 0x1044 movb $0x0, %al callq 0x78650 movq -0x20(%rbp), %rax andq $0x8, %rax cmpq $0x0, %rax je 0x7df39 callq 0x36770 movq $0x0, -0x30(%rbp) jmp 0x7dfea 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 0x1b7d2c(%rip), %rax # 0x235ca8 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 0x1b77cd(%rip), %rax # 0x235770 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 0x7dfde movq -0x30(%rbp), %rdi movq -0x18(%rbp), %rdx xorl %esi, %esi callq 0x362e0 jmp 0x7dfe8 jmp 0x7dfe0 jmp 0x7dfe2 jmp 0x7dfe4 jmp 0x7dfe6 jmp 0x7dfe8 jmp 0x7dfea jmp 0x7dfec jmp 0x7dfee jmp 0x7dff0 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_7DE55: jmp short $+2 loc_7DE57: jmp short $+2 loc_7DE59: mov rax, [rbp+var_20] and rax, 18h cmp rax, 0 jnz short loc_7DE79 lea rax, my_global_flags mov rax, [rax] or rax, [rbp+var_20] mov [rbp+var_20], rax loc_7DE79: cmp [rbp+var_18], 0 jnz short loc_7DE88 mov [rbp+var_18], 1 loc_7DE88: cmp [rbp+var_18], 0FFFFFFFFFEFFFFFFh jbe short loc_7DEA1 jmp short $+2 loc_7DE94: mov [rbp+var_8], 0 jmp loc_7DFF8 loc_7DEA1: 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_7DF46 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_7DF03 lea rax, fatal_error_handler_hook mov rcx, [rax] lea rax, error_handler_hook mov [rax], rcx loc_7DF03: mov rax, [rbp+var_20] and rax, 18h cmp rax, 0 jz short loc_7DF26 mov rdx, [rbp+var_18] mov edi, 5 mov esi, 1044h mov al, 0 call my_error loc_7DF26: mov rax, [rbp+var_20] and rax, 8 cmp rax, 0 jz short loc_7DF39 call _abort loc_7DF39: mov [rbp+var_30], 0 jmp loc_7DFEA loc_7DF46: 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_7DFDE mov rdi, [rbp+var_30] mov rdx, [rbp+var_18] xor esi, esi call _memset jmp short loc_7DFE8 loc_7DFDE: jmp short $+2 loc_7DFE0: jmp short $+2 loc_7DFE2: jmp short $+2 loc_7DFE4: jmp short $+2 loc_7DFE6: jmp short $+2 loc_7DFE8: jmp short $+2 loc_7DFEA: jmp short $+2 loc_7DFEC: jmp short $+2 loc_7DFEE: jmp short $+2 loc_7DFF0: mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_7DFF8: 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 0x0017de55 LAB_0017de55: JMP 0x0017de57 LAB_0017de57: JMP 0x0017de59 LAB_0017de59: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x18 CMP RAX,0x0 JNZ 0x0017de79 LEA RAX,[0x545c18] MOV RAX,qword ptr [RAX] OR RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x20],RAX LAB_0017de79: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x0017de88 MOV qword ptr [RBP + -0x18],0x1 LAB_0017de88: CMP qword ptr [RBP + -0x18],-0x1000001 JBE 0x0017dea1 JMP 0x0017de94 LAB_0017de94: MOV qword ptr [RBP + -0x8],0x0 JMP 0x0017dff8 LAB_0017dea1: 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 0x001368f0 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0017df46 CALL 0x001369b0 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x38],EAX CALL 0x0017f960 MOV ECX,dword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x8 CMP RAX,0x0 JZ 0x0017df03 LEA RAX,[0x3357c8] MOV RCX,qword ptr [RAX] LEA RAX,[0x3357c0] MOV qword ptr [RAX],RCX LAB_0017df03: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x18 CMP RAX,0x0 JZ 0x0017df26 MOV RDX,qword ptr [RBP + -0x18] MOV EDI,0x5 MOV ESI,0x1044 MOV AL,0x0 CALL 0x00178650 LAB_0017df26: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x8 CMP RAX,0x0 JZ 0x0017df39 CALL 0x00136770 LAB_0017df39: MOV qword ptr [RBP + -0x30],0x0 JMP 0x0017dfea LAB_0017df46: 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,[0x335ca8] 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 [0x00335770] 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 0x0017dfde MOV RDI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x18] XOR ESI,ESI CALL 0x001362e0 JMP 0x0017dfe8 LAB_0017dfde: JMP 0x0017dfe0 LAB_0017dfe0: JMP 0x0017dfe2 LAB_0017dfe2: JMP 0x0017dfe4 LAB_0017dfe4: JMP 0x0017dfe6 LAB_0017dfe6: JMP 0x0017dfe8 LAB_0017dfe8: JMP 0x0017dfea LAB_0017dfea: JMP 0x0017dfec LAB_0017dfec: JMP 0x0017dfee LAB_0017dfee: JMP 0x0017dff0 LAB_0017dff0: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_0017dff8: 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; }
3,881
OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArrayVertices(int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp
IndexArray PatchTable::getPatchArrayVertices(int arrayIndex) { PatchArray const & pa = getPatchArray(arrayIndex); int size = getPatchSize(pa.desc); assert(pa.vertIndex<(Index)_patchVerts.size()); return IndexArray(&_patchVerts[pa.vertIndex], pa.numPatches * size); }
O3
cpp
OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArrayVertices(int): pushq %rax movq 0x8(%rdi), %rax movq 0x10(%rdi), %rcx subq %rax, %rcx shrq $0x2, %rcx imull $0xcccccccd, %ecx, %ecx # imm = 0xCCCCCCCD cmpl %esi, %ecx jle 0x6ae34 movslq %esi, %rcx leaq (%rcx,%rcx,4), %rcx leaq (%rax,%rcx,4), %rcx movl (%rcx), %eax decl %eax movl $0xffffffff, %edx # imm = 0xFFFFFFFF cmpl $0x9, %eax ja 0x6ae13 movl %eax, %eax leaq 0x51080(%rip), %rdx # 0xbbe90 movl (%rdx,%rax,4), %edx movslq 0x8(%rcx), %rax movq 0x20(%rdi), %rsi movq 0x28(%rdi), %rdi subq %rsi, %rdi shrq $0x2, %rdi cmpl %edi, %eax jge 0x6ae53 leaq (%rsi,%rax,4), %rax imull 0x4(%rcx), %edx popq %rcx retq leaq 0x51602(%rip), %rdi # 0xbc43d leaq 0x510d0(%rip), %rsi # 0xbbf12 leaq 0x51678(%rip), %rcx # 0xbc4c1 movl $0x8b, %edx callq 0x39540 leaq 0x5115b(%rip), %rdi # 0xbbfb5 leaq 0x510b1(%rip), %rsi # 0xbbf12 leaq 0x51174(%rip), %rcx # 0xbbfdc movl $0x115, %edx # imm = 0x115 callq 0x39540
_ZN10OpenSubdiv6v3_6_03Far10PatchTable21getPatchArrayVerticesEi: push rax mov rax, [rdi+8] mov rcx, [rdi+10h] sub rcx, rax shr rcx, 2 imul ecx, 0CCCCCCCDh cmp ecx, esi jle short loc_6AE34 movsxd rcx, esi lea rcx, [rcx+rcx*4] lea rcx, [rax+rcx*4] mov eax, [rcx] dec eax mov edx, 0FFFFFFFFh cmp eax, 9 ja short loc_6AE13 mov eax, eax lea rdx, dword_BBE90 mov edx, [rdx+rax*4] loc_6AE13: movsxd rax, dword ptr [rcx+8] mov rsi, [rdi+20h] mov rdi, [rdi+28h] sub rdi, rsi shr rdi, 2 cmp eax, edi jge short loc_6AE53 lea rax, [rsi+rax*4] imul edx, [rcx+4] pop rcx retn loc_6AE34: lea rdi, aArrayindexInde; "arrayIndex<(Index)GetNumPatchArrays()" lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"... lea rcx, aPatchtablePatc; "PatchTable::PatchArray &OpenSubdiv::v3_"... mov edx, 8Bh call ___assert_fail loc_6AE53: lea rdi, aPaVertindexInd; "pa.vertIndex<(Index)_patchVerts.size()" lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIndexarrayOpen; "IndexArray OpenSubdiv::v3_6_0::Far::Pat"... mov edx, 115h call ___assert_fail
long long OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArrayVertices( OpenSubdiv::v3_6_0::Far::PatchTable *this, signed int a2) { long long v2; // rax long long v3; // rax long long v4; // rsi v2 = *((_QWORD *)this + 1); if ( (int)(-858993459 * ((unsigned long long)(*((_QWORD *)this + 2) - v2) >> 2)) <= a2 ) __assert_fail( "arrayIndex<(Index)GetNumPatchArrays()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 139LL, "PatchTable::PatchArray &OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArray(Index)"); v3 = *(int *)(v2 + 20LL * a2 + 8); v4 = *((_QWORD *)this + 4); if ( (int)v3 >= (int)((unsigned long long)(*((_QWORD *)this + 5) - v4) >> 2) ) __assert_fail( "pa.vertIndex<(Index)_patchVerts.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 277LL, "IndexArray OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArrayVertices(int)"); return v4 + 4 * v3; }
getPatchArrayVertices: PUSH RAX MOV RAX,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RDI + 0x10] SUB RCX,RAX SHR RCX,0x2 IMUL ECX,ECX,-0x33333333 CMP ECX,ESI JLE 0x0016ae34 MOVSXD RCX,ESI LEA RCX,[RCX + RCX*0x4] LEA RCX,[RAX + RCX*0x4] MOV EAX,dword ptr [RCX] DEC EAX MOV EDX,0xffffffff CMP EAX,0x9 JA 0x0016ae13 MOV EAX,EAX LEA RDX,[0x1bbe90] MOV EDX,dword ptr [RDX + RAX*0x4] LAB_0016ae13: MOVSXD RAX,dword ptr [RCX + 0x8] MOV RSI,qword ptr [RDI + 0x20] MOV RDI,qword ptr [RDI + 0x28] SUB RDI,RSI SHR RDI,0x2 CMP EAX,EDI JGE 0x0016ae53 LEA RAX,[RSI + RAX*0x4] IMUL EDX,dword ptr [RCX + 0x4] POP RCX RET LAB_0016ae34: LEA RDI,[0x1bc43d] LEA RSI,[0x1bbf12] LEA RCX,[0x1bc4c1] MOV EDX,0x8b CALL 0x00139540 LAB_0016ae53: LEA RDI,[0x1bbfb5] LEA RSI,[0x1bbf12] LEA RCX,[0x1bbfdc] MOV EDX,0x115 CALL 0x00139540
/* OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArrayVertices(int) */ int1 [16] __thiscall OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArrayVertices(PatchTable *this,int param_1) { int *piVar1; int iVar2; int1 auVar3 [16]; if ((int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 2) * -0x33333333 <= param_1) { /* WARNING: Subroutine does not return */ __assert_fail("arrayIndex<(Index)GetNumPatchArrays()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp" ,0x8b, "PatchTable::PatchArray &OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArray(Index)" ); } piVar1 = (int *)(*(long *)(this + 8) + (long)param_1 * 0x14); iVar2 = -1; if (*piVar1 - 1U < 10) { iVar2 = *(int *)(&DAT_001bbe90 + (ulong)(*piVar1 - 1U) * 4); } if (piVar1[2] < (int)((ulong)(*(long *)(this + 0x28) - *(long *)(this + 0x20)) >> 2)) { auVar3._8_4_ = iVar2 * piVar1[1]; auVar3._0_8_ = *(long *)(this + 0x20) + (long)piVar1[2] * 4; auVar3._12_4_ = 0; return auVar3; } /* WARNING: Subroutine does not return */ __assert_fail("pa.vertIndex<(Index)_patchVerts.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp" ,0x115,"IndexArray OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArrayVertices(int)") ; }
3,882
my_hash_sort_utf8mb3_nopad
eloqsql/strings/ctype-utf8.c
static void my_hash_sort_utf8mb3_nopad(CHARSET_INFO *cs, const uchar *s, size_t slen, ulong *nr1, ulong *nr2) { my_wc_t wc; int res; const uchar *e= s+slen; MY_UNICASE_INFO *uni_plane= cs->caseinfo; register ulong m1= *nr1, m2= *nr2; while ((s < e) && (res=my_utf8mb3_uni(cs,&wc, (uchar *)s, (uchar*)e))>0 ) { my_tosort_unicode(uni_plane, &wc, cs->state); MY_HASH_ADD_16(m1, m2, wc); s+= res; } *nr1= m1; *nr2= m2; }
O0
c
my_hash_sort_utf8mb3_nopad: 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 -0x8(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x48(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x10(%rbp), %rcx xorl %eax, %eax cmpq -0x40(%rbp), %rcx movb %al, -0x59(%rbp) jae 0x67b2a movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx movq -0x40(%rbp), %rcx leaq -0x30(%rbp), %rsi callq 0x65980 movl %eax, -0x34(%rbp) cmpl $0x0, %eax setg %al movb %al, -0x59(%rbp) movb -0x59(%rbp), %al testb $0x1, %al jne 0x67b36 jmp 0x67bd7 movq -0x48(%rbp), %rdi movq -0x8(%rbp), %rax movl 0xc(%rax), %edx leaq -0x30(%rbp), %rsi callq 0x66730 jmp 0x67b4c movq -0x50(%rbp), %rax andq $0x3f, %rax addq -0x58(%rbp), %rax movq -0x30(%rbp), %rcx andq $0xff, %rcx imulq %rcx, %rax movq -0x50(%rbp), %rcx shlq $0x8, %rcx addq %rcx, %rax xorq -0x50(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x58(%rbp), %rax addq $0x3, %rax movq %rax, -0x58(%rbp) jmp 0x67b88 movq -0x50(%rbp), %rax andq $0x3f, %rax addq -0x58(%rbp), %rax movq -0x30(%rbp), %rcx shrq $0x8, %rcx imulq %rcx, %rax movq -0x50(%rbp), %rcx shlq $0x8, %rcx addq %rcx, %rax xorq -0x50(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x58(%rbp), %rax addq $0x3, %rax movq %rax, -0x58(%rbp) jmp 0x67bc1 movl -0x34(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) jmp 0x67afa movq -0x50(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x58(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_hash_sort_utf8mb3_nopad: 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_8] mov rax, [rax+78h] mov [rbp+var_48], rax mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_50], rax mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_58], rax loc_67AFA: mov rcx, [rbp+var_10] xor eax, eax cmp rcx, [rbp+var_40] mov [rbp+var_59], al jnb short loc_67B2A mov rdi, [rbp+var_8] mov rdx, [rbp+var_10] mov rcx, [rbp+var_40] lea rsi, [rbp+var_30] call my_utf8mb3_uni mov [rbp+var_34], eax cmp eax, 0 setnle al mov [rbp+var_59], al loc_67B2A: mov al, [rbp+var_59] test al, 1 jnz short loc_67B36 jmp loc_67BD7 loc_67B36: mov rdi, [rbp+var_48] mov rax, [rbp+var_8] mov edx, [rax+0Ch] lea rsi, [rbp+var_30] call my_tosort_unicode jmp short $+2 loc_67B4C: mov rax, [rbp+var_50] and rax, 3Fh add rax, [rbp+var_58] mov rcx, [rbp+var_30] and rcx, 0FFh imul rax, rcx mov rcx, [rbp+var_50] shl rcx, 8 add rax, rcx xor rax, [rbp+var_50] mov [rbp+var_50], rax mov rax, [rbp+var_58] add rax, 3 mov [rbp+var_58], rax jmp short $+2 loc_67B88: mov rax, [rbp+var_50] and rax, 3Fh add rax, [rbp+var_58] mov rcx, [rbp+var_30] shr rcx, 8 imul rax, rcx mov rcx, [rbp+var_50] shl rcx, 8 add rax, rcx xor rax, [rbp+var_50] mov [rbp+var_50], rax mov rax, [rbp+var_58] add rax, 3 mov [rbp+var_58], rax jmp short $+2 loc_67BC1: mov ecx, [rbp+var_34] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax jmp loc_67AFA loc_67BD7: mov rcx, [rbp+var_50] mov rax, [rbp+var_20] mov [rax], rcx mov rcx, [rbp+var_58] mov rax, [rbp+var_28] mov [rax], rcx add rsp, 60h pop rbp retn
_QWORD * my_hash_sort_utf8mb3_nopad( long long a1, unsigned long long a2, long long a3, unsigned long long *a4, _QWORD *a5, long long a6) { _QWORD *result; // rax bool v7; // [rsp+7h] [rbp-59h] long long v8; // [rsp+8h] [rbp-58h] long long v9; // [rsp+8h] [rbp-58h] unsigned long long v10; // [rsp+10h] [rbp-50h] long long v11; // [rsp+10h] [rbp-50h] _QWORD *v12; // [rsp+18h] [rbp-48h] unsigned long long v13; // [rsp+20h] [rbp-40h] int v14; // [rsp+2Ch] [rbp-34h] unsigned long long v15; // [rsp+30h] [rbp-30h] BYREF _QWORD *v16; // [rsp+38h] [rbp-28h] unsigned long long *v17; // [rsp+40h] [rbp-20h] long long v18; // [rsp+48h] [rbp-18h] unsigned long long v19; // [rsp+50h] [rbp-10h] long long v20; // [rsp+58h] [rbp-8h] v20 = a1; v19 = a2; v18 = a3; v17 = a4; v16 = a5; v13 = a3 + a2; v12 = *(_QWORD **)(a1 + 120); v10 = *a4; v8 = *a5; while ( 1 ) { v7 = 0; if ( v19 < v13 ) { v14 = my_utf8mb3_uni(v20, (long long)&v15, v19, v13, (long long)a5, a6); v7 = v14 > 0; } if ( !v7 ) break; my_tosort_unicode(v12, &v15, *(_DWORD *)(v20 + 12)); v11 = v10 ^ ((v10 << 8) + (unsigned __int8)v15 * (v8 + (v10 & 0x3F))); v9 = v8 + 3; v10 = v11 ^ ((v11 << 8) + (v15 >> 8) * (v9 + (v11 & 0x3F))); v8 = v9 + 3; v19 += v14; } *v17 = v10; result = v16; *v16 = v8; return result; }
my_hash_sort_utf8mb3_nopad: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x78] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX LAB_00167afa: MOV RCX,qword ptr [RBP + -0x10] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x40] MOV byte ptr [RBP + -0x59],AL JNC 0x00167b2a MOV RDI,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x40] LEA RSI,[RBP + -0x30] CALL 0x00165980 MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 SETG AL MOV byte ptr [RBP + -0x59],AL LAB_00167b2a: MOV AL,byte ptr [RBP + -0x59] TEST AL,0x1 JNZ 0x00167b36 JMP 0x00167bd7 LAB_00167b36: MOV RDI,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x8] MOV EDX,dword ptr [RAX + 0xc] LEA RSI,[RBP + -0x30] CALL 0x00166730 JMP 0x00167b4c LAB_00167b4c: MOV RAX,qword ptr [RBP + -0x50] AND RAX,0x3f ADD RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x30] AND RCX,0xff IMUL RAX,RCX MOV RCX,qword ptr [RBP + -0x50] SHL RCX,0x8 ADD RAX,RCX XOR RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x3 MOV qword ptr [RBP + -0x58],RAX JMP 0x00167b88 LAB_00167b88: MOV RAX,qword ptr [RBP + -0x50] AND RAX,0x3f ADD RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x30] SHR RCX,0x8 IMUL RAX,RCX MOV RCX,qword ptr [RBP + -0x50] SHL RCX,0x8 ADD RAX,RCX XOR RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x3 MOV qword ptr [RBP + -0x58],RAX JMP 0x00167bc1 LAB_00167bc1: MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX JMP 0x00167afa LAB_00167bd7: MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX ADD RSP,0x60 POP RBP RET
void my_hash_sort_utf8mb3_nopad (long param_1,ulong param_2,long param_3,ulong *param_4,long *param_5) { int8 uVar1; bool bVar2; long local_60; ulong local_58; int local_3c; ulong local_38; long *local_30; ulong *local_28; long local_20; ulong local_18; long local_10; uVar1 = *(int8 *)(param_1 + 0x78); local_58 = *param_4; local_60 = *param_5; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; while( true ) { bVar2 = false; if (local_18 < param_2 + param_3) { local_3c = my_utf8mb3_uni(local_10,&local_38,local_18,param_2 + param_3); bVar2 = 0 < local_3c; } if (!bVar2) break; my_tosort_unicode(uVar1,&local_38,*(int4 *)(local_10 + 0xc)); local_58 = ((local_58 & 0x3f) + local_60) * (local_38 & 0xff) + local_58 * 0x100 ^ local_58; local_58 = ((local_58 & 0x3f) + local_60 + 3) * (local_38 >> 8) + local_58 * 0x100 ^ local_58; local_60 = local_60 + 6; local_18 = local_18 + (long)local_3c; } *local_28 = local_58; *local_30 = local_60; return; }
3,883
testing::AssertionResult testing::(anonymous namespace)::IsSubstringImpl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(bool, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
AssertionResult IsSubstringImpl(bool expected_to_be_substring, const char* needle_expr, const char* haystack_expr, const StringType& needle, const StringType& haystack) { if (IsSubstringPred(needle, haystack) == expected_to_be_substring) return AssertionSuccess(); const bool is_wide_string = sizeof(needle[0]) > 1; const char* const begin_string_quote = is_wide_string ? "L\"" : "\""; return AssertionFailure() << "Value of: " << needle_expr << "\n" << " Actual: " << begin_string_quote << needle << "\"\n" << "Expected: " << (expected_to_be_substring ? "" : "not ") << "a substring of " << haystack_expr << "\n" << "Which is: " << begin_string_quote << haystack << "\""; }
O0
cpp
testing::AssertionResult testing::(anonymous namespace)::IsSubstringImpl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(bool, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): subq $0x108, %rsp # imm = 0x108 movq %rdi, 0x90(%rsp) movb %sil, %al movq %rdi, %rsi movq %rsi, 0x98(%rsp) movq %rdi, 0x100(%rsp) andb $0x1, %al movb %al, 0xff(%rsp) movq %rdx, 0xf0(%rsp) movq %rcx, 0xe8(%rsp) movq %r8, 0xe0(%rsp) movq %r9, 0xd8(%rsp) movq 0xe0(%rsp), %rdi movq 0xd8(%rsp), %rsi callq 0xe7dc0 andb $0x1, %al movzbl %al, %eax movb 0xff(%rsp), %cl andb $0x1, %cl movzbl %cl, %ecx cmpl %ecx, %eax jne 0xcc43b movq 0x90(%rsp), %rdi callq 0xb9120 jmp 0xcc661 movb $0x0, 0xd7(%rsp) leaq 0x51881(%rip), %rax # 0x11dccb movq %rax, 0xc8(%rsp) leaq 0xb8(%rsp), %rdi movq %rdi, 0x80(%rsp) callq 0xb9150 movq 0x80(%rsp), %rdi leaq 0x50cbb(%rip), %rsi # 0x11d131 callq 0xfad90 movq %rax, 0x88(%rsp) jmp 0xcc485 movq 0x88(%rsp), %rdi leaq 0xf0(%rsp), %rsi callq 0x321c0 movq %rax, 0x78(%rsp) jmp 0xcc4a1 movq 0x78(%rsp), %rdi leaq 0x513e6(%rip), %rsi # 0x11d893 callq 0xeebb0 movq %rax, 0x70(%rsp) jmp 0xcc4b9 movq 0x70(%rsp), %rdi leaq 0x50c78(%rip), %rsi # 0x11d13d callq 0xfad90 movq %rax, 0x68(%rsp) jmp 0xcc4d1 movq 0x68(%rsp), %rdi leaq 0xc8(%rsp), %rsi callq 0x321c0 movq %rax, 0x60(%rsp) jmp 0xcc4ea movq 0x60(%rsp), %rdi movq 0xe0(%rsp), %rsi callq 0x322e0 movq %rax, 0x58(%rsp) jmp 0xcc503 movq 0x58(%rsp), %rdi leaq 0x517a6(%rip), %rsi # 0x11dcb5 callq 0x32250 movq %rax, 0x50(%rsp) jmp 0xcc51b movq 0x50(%rsp), %rdi leaq 0x50c22(%rip), %rsi # 0x11d149 callq 0xfad90 movq %rax, 0x48(%rsp) jmp 0xcc533 movq 0x48(%rsp), %rdi movb 0xff(%rsp), %dl leaq 0x5134e(%rip), %rcx # 0x11d894 leaq 0x52738(%rip), %rax # 0x11ec85 testb $0x1, %dl cmovneq %rcx, %rax movq %rax, 0xa0(%rsp) leaq 0xa0(%rsp), %rsi callq 0x321c0 movq %rax, 0x40(%rsp) jmp 0xcc570 movq 0x40(%rsp), %rdi leaq 0x5270e(%rip), %rsi # 0x11ec8a callq 0x10aba0 movq %rax, 0x38(%rsp) jmp 0xcc588 movq 0x38(%rsp), %rdi leaq 0xe8(%rsp), %rsi callq 0x321c0 movq %rax, 0x30(%rsp) jmp 0xcc5a1 movq 0x30(%rsp), %rdi leaq 0x512e6(%rip), %rsi # 0x11d893 callq 0xeebb0 movq %rax, 0x28(%rsp) jmp 0xcc5b9 movq 0x28(%rsp), %rdi leaq 0x50b45(%rip), %rsi # 0x11d10a callq 0xfad90 movq %rax, 0x20(%rsp) jmp 0xcc5d1 movq 0x20(%rsp), %rdi leaq 0xc8(%rsp), %rsi callq 0x321c0 movq %rax, 0x18(%rsp) jmp 0xcc5ea movq 0x18(%rsp), %rdi movq 0xd8(%rsp), %rsi callq 0x322e0 movq %rax, 0x10(%rsp) jmp 0xcc603 movq 0x10(%rsp), %rdi leaq 0x516bc(%rip), %rsi # 0x11dccb callq 0xeebb0 movq %rax, 0x8(%rsp) jmp 0xcc61b movq 0x8(%rsp), %rsi movq 0x90(%rsp), %rdi callq 0xb8f20 jmp 0xcc62f leaq 0xb8(%rsp), %rdi callq 0x1e090 jmp 0xcc661 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xb0(%rsp) movl %eax, 0xac(%rsp) leaq 0xb8(%rsp), %rdi callq 0x1e090 jmp 0xcc671 movq 0x98(%rsp), %rax addq $0x108, %rsp # imm = 0x108 retq movq 0xb0(%rsp), %rdi callq 0x16cf0 nop
_ZN7testing12_GLOBAL__N_115IsSubstringImplINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_15AssertionResultEbPKcSA_RKT_SD_: sub rsp, 108h mov [rsp+108h+var_78], rdi mov al, sil mov rsi, rdi mov [rsp+108h+var_70], rsi mov [rsp+108h+var_8], rdi and al, 1 mov [rsp+108h+var_9], al mov [rsp+108h+var_18], rdx mov [rsp+108h+var_20], rcx mov [rsp+108h+var_28], r8 mov [rsp+108h+var_30], r9 mov rdi, [rsp+108h+var_28] mov rsi, [rsp+108h+var_30] call _ZN7testing12_GLOBAL__N_115IsSubstringPredINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKT_SA_; testing::`anonymous namespace'::IsSubstringPred<std::string>(std::string const&,std::string const&) and al, 1 movzx eax, al mov cl, [rsp+108h+var_9] and cl, 1 movzx ecx, cl cmp eax, ecx jnz short loc_CC43B mov rdi, [rsp+108h+var_78]; this call _ZN7testing16AssertionSuccessEv; testing::AssertionSuccess(void) jmp loc_CC661 loc_CC43B: mov [rsp+108h+var_31], 0 lea rax, aMessage+0Fh; "\"" mov [rsp+108h+var_40], rax lea rdi, [rsp+108h+var_50]; this mov [rsp+108h+var_88], rdi call _ZN7testing16AssertionFailureEv; testing::AssertionFailure(void) mov rdi, [rsp+108h+var_88] lea rsi, aValueOf; "Value of: " call _ZN7testing15AssertionResultlsIA11_cEERS0_RKT_; testing::AssertionResult::operator<<<char [11]>(char [11] const&) mov [rsp+108h+var_80], rax jmp short $+2 loc_CC485: mov rdi, [rsp+108h+var_80] lea rsi, [rsp+108h+var_18] call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) mov [rsp+108h+var_90], rax jmp short $+2 loc_CC4A1: mov rdi, [rsp+108h+var_90] lea rsi, aSFromSSMsTotal+19h; "\n" call _ZN7testing15AssertionResultlsIA2_cEERS0_RKT_; testing::AssertionResult::operator<<<char [2]>(char [2] const&) mov [rsp+108h+var_98], rax jmp short $+2 loc_CC4B9: mov rdi, [rsp+108h+var_98] lea rsi, aActual_0+1; " Actual: " call _ZN7testing15AssertionResultlsIA11_cEERS0_RKT_; testing::AssertionResult::operator<<<char [11]>(char [11] const&) mov [rsp+108h+var_A0], rax jmp short $+2 loc_CC4D1: mov rdi, [rsp+108h+var_A0] lea rsi, [rsp+108h+var_40] call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) mov [rsp+108h+var_A8], rax jmp short $+2 loc_CC4EA: mov rdi, [rsp+108h+var_A8] mov rsi, [rsp+108h+var_28] call _ZN7testing15AssertionResultlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_; testing::AssertionResult::operator<<<std::string>(std::string const&) mov [rsp+108h+var_B0], rax jmp short $+2 loc_CC503: mov rdi, [rsp+108h+var_B0] lea rsi, aType_1+0Dh; "\"\n" call _ZN7testing15AssertionResultlsIA3_cEERS0_RKT_; testing::AssertionResult::operator<<<char [3]>(char [3] const&) mov [rsp+108h+var_B8], rax jmp short $+2 loc_CC51B: mov rdi, [rsp+108h+var_B8] lea rsi, aExpected_1+1; "Expected: " call _ZN7testing15AssertionResultlsIA11_cEERS0_RKT_; testing::AssertionResult::operator<<<char [11]>(char [11] const&) mov [rsp+108h+var_C0], rax jmp short $+2 loc_CC533: mov rdi, [rsp+108h+var_C0] mov dl, [rsp+108h+var_9] lea rcx, aSFromSSMsTotal+1Ah; "" lea rax, aNot; "not " test dl, 1 cmovnz rax, rcx mov [rsp+108h+var_68], rax lea rsi, [rsp+108h+var_68] call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) mov [rsp+108h+var_C8], rax jmp short $+2 loc_CC570: mov rdi, [rsp+108h+var_C8] lea rsi, aASubstringOf; "a substring of " call _ZN7testing15AssertionResultlsIA16_cEERS0_RKT_; testing::AssertionResult::operator<<<char [16]>(char [16] const&) mov [rsp+108h+var_D0], rax jmp short $+2 loc_CC588: mov rdi, [rsp+108h+var_D0] lea rsi, [rsp+108h+var_20] call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) mov [rsp+108h+var_D8], rax jmp short $+2 loc_CC5A1: mov rdi, [rsp+108h+var_D8] lea rsi, aSFromSSMsTotal+19h; "\n" call _ZN7testing15AssertionResultlsIA2_cEERS0_RKT_; testing::AssertionResult::operator<<<char [2]>(char [2] const&) mov [rsp+108h+var_E0], rax jmp short $+2 loc_CC5B9: mov rdi, [rsp+108h+var_E0] lea rsi, aWhichIs+5; "Which is: " call _ZN7testing15AssertionResultlsIA11_cEERS0_RKT_; testing::AssertionResult::operator<<<char [11]>(char [11] const&) mov [rsp+108h+var_E8], rax jmp short $+2 loc_CC5D1: mov rdi, [rsp+108h+var_E8] lea rsi, [rsp+108h+var_40] call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) mov [rsp+108h+var_F0], rax jmp short $+2 loc_CC5EA: mov rdi, [rsp+108h+var_F0] mov rsi, [rsp+108h+var_30] call _ZN7testing15AssertionResultlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_; testing::AssertionResult::operator<<<std::string>(std::string const&) mov [rsp+108h+var_F8], rax jmp short $+2 loc_CC603: mov rdi, [rsp+108h+var_F8] lea rsi, aMessage+0Fh; "\"" call _ZN7testing15AssertionResultlsIA2_cEERS0_RKT_; testing::AssertionResult::operator<<<char [2]>(char [2] const&) mov [rsp+108h+var_100], rax jmp short $+2 loc_CC61B: mov rsi, [rsp+108h+var_100]; testing::AssertionResult * mov rdi, [rsp+108h+var_78]; this call _ZN7testing15AssertionResultC2ERKS0_; testing::AssertionResult::AssertionResult(testing::AssertionResult const&) jmp short $+2 loc_CC62F: lea rdi, [rsp+108h+var_50]; this call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult() jmp short loc_CC661 mov rcx, rax mov eax, edx mov [rsp+arg_A8], rcx mov [rsp+arg_A4], eax lea rdi, [rsp+arg_B0]; this call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult() jmp short loc_CC671 loc_CC661: mov rax, [rsp+108h+var_70] add rsp, 108h retn loc_CC671: mov rdi, [rsp+arg_A8] call __Unwind_Resume
testing * testing::`anonymous namespace'::IsSubstringImpl<std::string>( testing *a1, char a2, long long a3, long long a4, long long a5, long long a6) { int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d int v10; // edx int v11; // ecx int v12; // r8d int v13; // r9d int v14; // edx int v15; // ecx int v16; // r8d int v17; // r9d int v18; // edx int v19; // ecx int v20; // r8d int v21; // r9d testing::AssertionResult *v22; // rdi char *v23; // rax int v24; // edx int v25; // ecx int v26; // r8d int v27; // r9d int v28; // edx int v29; // ecx int v30; // r8d int v31; // r9d int v32; // edx int v33; // ecx int v34; // r8d int v35; // r9d int v36; // edx int v37; // ecx int v38; // r8d int v39; // r9d testing::AssertionResult *v41; // [rsp+8h] [rbp-100h] unsigned int v42; // [rsp+10h] [rbp-F8h] testing::AssertionResult *v43; // [rsp+18h] [rbp-F0h] testing::AssertionResult *v44; // [rsp+20h] [rbp-E8h] int v45; // [rsp+28h] [rbp-E0h] unsigned int v46; // [rsp+30h] [rbp-D8h] testing::AssertionResult *v47; // [rsp+38h] [rbp-D0h] unsigned int v48; // [rsp+40h] [rbp-C8h] unsigned int v49; // [rsp+50h] [rbp-B8h] testing::AssertionResult *v50; // [rsp+58h] [rbp-B0h] testing::AssertionResult *v51; // [rsp+60h] [rbp-A8h] testing::AssertionResult *v52; // [rsp+68h] [rbp-A0h] int v53; // [rsp+70h] [rbp-98h] unsigned int v54; // [rsp+78h] [rbp-90h] testing::AssertionResult *v55; // [rsp+88h] [rbp-80h] char *v58; // [rsp+A0h] [rbp-68h] BYREF _BYTE v59[16]; // [rsp+B8h] [rbp-50h] BYREF char *v60; // [rsp+C8h] [rbp-40h] BYREF char v61; // [rsp+D7h] [rbp-31h] long long v62; // [rsp+D8h] [rbp-30h] long long v63; // [rsp+E0h] [rbp-28h] long long v64; // [rsp+E8h] [rbp-20h] BYREF long long v65; // [rsp+F0h] [rbp-18h] BYREF char v66; // [rsp+FFh] [rbp-9h] testing *v67; // [rsp+100h] [rbp-8h] v67 = a1; v66 = a2 & 1; v65 = a3; v64 = a4; v63 = a5; v62 = a6; if ( (testing::`anonymous namespace'::IsSubstringPred<std::string>(a5, a6) & 1) == (a2 & 1) ) { testing::AssertionSuccess(a1); } else { v61 = 0; v60 = "\""; testing::AssertionFailure((testing *)v59); v55 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [11]>( (unsigned int)v59, (unsigned int)"Value of: ", v6, v7, v8, v9); v54 = (unsigned int)testing::AssertionResult::operator<<<char const*>(v55, (long long)&v65); v53 = testing::AssertionResult::operator<<<char [2]>(v54, (unsigned int)"\n", v10, v11, v12, v13); v52 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [11]>( v53, (unsigned int)" Actual: ", v14, v15, v16, v17); v51 = testing::AssertionResult::operator<<<char const*>(v52, (long long)&v60); v50 = testing::AssertionResult::operator<<<std::string>(v51, v63); v49 = (unsigned int)testing::AssertionResult::operator<<<char [3]>(v50, (long long)"\"\n"); v22 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [11]>( v49, (unsigned int)"Expected: ", v18, v19, v20, v21); v23 = "not "; if ( (v66 & 1) != 0 ) v23 = ""; v58 = v23; v48 = (unsigned int)testing::AssertionResult::operator<<<char const*>(v22, (long long)&v58); v47 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [16]>( v48, (unsigned int)"a substring of ", v24, v25, v26, v27); v46 = (unsigned int)testing::AssertionResult::operator<<<char const*>(v47, (long long)&v64); v45 = testing::AssertionResult::operator<<<char [2]>(v46, (unsigned int)"\n", v28, v29, v30, v31); v44 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [11]>( v45, (unsigned int)"Which is: ", v32, v33, v34, v35); v43 = testing::AssertionResult::operator<<<char const*>(v44, (long long)&v60); v42 = (unsigned int)testing::AssertionResult::operator<<<std::string>(v43, v62); v41 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [2]>( v42, (unsigned int)"\"", v36, v37, v38, v39); testing::AssertionResult::AssertionResult(a1, v41); testing::AssertionResult::~AssertionResult((testing::AssertionResult *)v59); } return a1; }
IsSubstringImpl<std::__cxx11::string>: SUB RSP,0x108 MOV qword ptr [RSP + 0x90],RDI MOV AL,SIL MOV RSI,RDI MOV qword ptr [RSP + 0x98],RSI MOV qword ptr [RSP + 0x100],RDI AND AL,0x1 MOV byte ptr [RSP + 0xff],AL MOV qword ptr [RSP + 0xf0],RDX MOV qword ptr [RSP + 0xe8],RCX MOV qword ptr [RSP + 0xe0],R8 MOV qword ptr [RSP + 0xd8],R9 MOV RDI,qword ptr [RSP + 0xe0] MOV RSI,qword ptr [RSP + 0xd8] CALL 0x001e7dc0 AND AL,0x1 MOVZX EAX,AL MOV CL,byte ptr [RSP + 0xff] AND CL,0x1 MOVZX ECX,CL CMP EAX,ECX JNZ 0x001cc43b MOV RDI,qword ptr [RSP + 0x90] CALL 0x001b9120 JMP 0x001cc661 LAB_001cc43b: MOV byte ptr [RSP + 0xd7],0x0 LEA RAX,[0x21dccb] MOV qword ptr [RSP + 0xc8],RAX LEA RDI,[RSP + 0xb8] MOV qword ptr [RSP + 0x80],RDI CALL 0x001b9150 MOV RDI,qword ptr [RSP + 0x80] LAB_001cc46f: LEA RSI,[0x21d131] CALL 0x001fad90 MOV qword ptr [RSP + 0x88],RAX JMP 0x001cc485 LAB_001cc485: MOV RDI,qword ptr [RSP + 0x88] LEA RSI,[RSP + 0xf0] CALL 0x001321c0 MOV qword ptr [RSP + 0x78],RAX JMP 0x001cc4a1 LAB_001cc4a1: MOV RDI,qword ptr [RSP + 0x78] LEA RSI,[0x21d893] CALL 0x001eebb0 MOV qword ptr [RSP + 0x70],RAX JMP 0x001cc4b9 LAB_001cc4b9: MOV RDI,qword ptr [RSP + 0x70] LEA RSI,[0x21d13d] CALL 0x001fad90 MOV qword ptr [RSP + 0x68],RAX JMP 0x001cc4d1 LAB_001cc4d1: MOV RDI,qword ptr [RSP + 0x68] LEA RSI,[RSP + 0xc8] CALL 0x001321c0 MOV qword ptr [RSP + 0x60],RAX JMP 0x001cc4ea LAB_001cc4ea: MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0xe0] CALL 0x001322e0 MOV qword ptr [RSP + 0x58],RAX JMP 0x001cc503 LAB_001cc503: MOV RDI,qword ptr [RSP + 0x58] LEA RSI,[0x21dcb5] CALL 0x00132250 MOV qword ptr [RSP + 0x50],RAX JMP 0x001cc51b LAB_001cc51b: MOV RDI,qword ptr [RSP + 0x50] LEA RSI,[0x21d149] CALL 0x001fad90 MOV qword ptr [RSP + 0x48],RAX JMP 0x001cc533 LAB_001cc533: MOV RDI,qword ptr [RSP + 0x48] MOV DL,byte ptr [RSP + 0xff] LEA RCX,[0x21d894] LEA RAX,[0x21ec85] TEST DL,0x1 CMOVNZ RAX,RCX MOV qword ptr [RSP + 0xa0],RAX LEA RSI,[RSP + 0xa0] CALL 0x001321c0 MOV qword ptr [RSP + 0x40],RAX JMP 0x001cc570 LAB_001cc570: MOV RDI,qword ptr [RSP + 0x40] LEA RSI,[0x21ec8a] CALL 0x0020aba0 MOV qword ptr [RSP + 0x38],RAX JMP 0x001cc588 LAB_001cc588: MOV RDI,qword ptr [RSP + 0x38] LEA RSI,[RSP + 0xe8] CALL 0x001321c0 MOV qword ptr [RSP + 0x30],RAX JMP 0x001cc5a1 LAB_001cc5a1: MOV RDI,qword ptr [RSP + 0x30] LEA RSI,[0x21d893] CALL 0x001eebb0 MOV qword ptr [RSP + 0x28],RAX JMP 0x001cc5b9 LAB_001cc5b9: MOV RDI,qword ptr [RSP + 0x28] LEA RSI,[0x21d10a] CALL 0x001fad90 MOV qword ptr [RSP + 0x20],RAX JMP 0x001cc5d1 LAB_001cc5d1: MOV RDI,qword ptr [RSP + 0x20] LEA RSI,[RSP + 0xc8] CALL 0x001321c0 MOV qword ptr [RSP + 0x18],RAX JMP 0x001cc5ea LAB_001cc5ea: MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0xd8] CALL 0x001322e0 MOV qword ptr [RSP + 0x10],RAX JMP 0x001cc603 LAB_001cc603: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x21dccb] CALL 0x001eebb0 MOV qword ptr [RSP + 0x8],RAX JMP 0x001cc61b LAB_001cc61b: MOV RSI,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RSP + 0x90] CALL 0x001b8f20 LAB_001cc62d: JMP 0x001cc62f LAB_001cc62f: LEA RDI,[RSP + 0xb8] CALL 0x0011e090 JMP 0x001cc661 LAB_001cc661: MOV RAX,qword ptr [RSP + 0x98] ADD RSP,0x108 RET
/* testing::AssertionResult testing::(anonymous namespace)::IsSubstringImpl<std::__cxx11::string >(bool, char const*, char const*, std::__cxx11::string const&, std::__cxx11::string const&) */ _anonymous_namespace_ * __thiscall testing::(anonymous_namespace)::IsSubstringImpl<std::__cxx11::string> (_anonymous_namespace_ *this,bool param_1,char *param_2,char *param_3,string *param_4, string *param_5) { bool bVar1; AssertionResult *pAVar2; char *local_68 [3]; testing local_50 [16]; char *local_40; int1 local_31; string *local_30; string *local_28; char *local_20; char *local_18; byte local_9; _anonymous_namespace_ *local_8; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_9 = param_1; local_8 = this; bVar1 = IsSubstringPred<std::__cxx11::string>(param_4,param_5); if (bVar1 == (bool)(local_9 & 1)) { AssertionSuccess((testing *)this); } else { local_31 = 0; local_40 = "\""; AssertionFailure(local_50); /* try { // try from 001cc46f to 001cc62c has its CatchHandler @ 001cc63e */ pAVar2 = AssertionResult::operator<<((AssertionResult *)local_50,"Value of: "); pAVar2 = AssertionResult::operator<<(pAVar2,&local_18); pAVar2 = AssertionResult::operator<<(pAVar2,"\n"); pAVar2 = AssertionResult::operator<<(pAVar2," Actual: "); pAVar2 = AssertionResult::operator<<(pAVar2,&local_40); pAVar2 = AssertionResult::operator<<(pAVar2,local_28); pAVar2 = AssertionResult::operator<<(pAVar2,"\"\n"); pAVar2 = AssertionResult::operator<<(pAVar2,"Expected: "); local_68[0] = "not "; if ((local_9 & 1) != 0) { local_68[0] = ""; } pAVar2 = AssertionResult::operator<<(pAVar2,local_68); pAVar2 = AssertionResult::operator<<(pAVar2,"a substring of "); pAVar2 = AssertionResult::operator<<(pAVar2,&local_20); pAVar2 = AssertionResult::operator<<(pAVar2,"\n"); pAVar2 = AssertionResult::operator<<(pAVar2,"Which is: "); pAVar2 = AssertionResult::operator<<(pAVar2,&local_40); pAVar2 = AssertionResult::operator<<(pAVar2,local_30); pAVar2 = AssertionResult::operator<<(pAVar2,"\""); AssertionResult::AssertionResult((AssertionResult *)this,pAVar2); AssertionResult::~AssertionResult((AssertionResult *)local_50); } return this; }
3,884
YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test::~YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test()
yoga-mod/tests/YGHadOverflowTest.cpp
TEST_F( YogaTest_HadOverflowTests, children_overflow_no_wrap_and_no_flex_children) { YGNodeRef child0 = YGNodeNewWithConfig(config); YGNodeStyleSetWidth(child0, 80); YGNodeStyleSetHeight(child0, 40); YGNodeStyleSetMargin(child0, YGEdgeTop, 10); YGNodeStyleSetMargin(child0, YGEdgeBottom, 15); YGNodeInsertChild(root, child0, 0); YGNodeRef child1 = YGNodeNewWithConfig(config); YGNodeStyleSetWidth(child1, 80); YGNodeStyleSetHeight(child1, 40); YGNodeStyleSetMargin(child1, YGEdgeBottom, 5); YGNodeInsertChild(root, child1, 1); YGNodeCalculateLayout(root, 200, 100, YGDirectionLTR); ASSERT_TRUE(YGNodeLayoutGetHadOverflow(root)); }
O0
cpp
YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test::~YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xfde10 movq -0x10(%rbp), %rdi movl $0x20, %esi callq 0x354d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
_ZN77YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_TestD0Ev: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8]; this mov [rbp+var_10], rdi call _ZN77YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_TestD2Ev; YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test::~YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test() mov rdi, [rbp+var_10]; void * mov esi, 20h ; ' '; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) add rsp, 10h pop rbp retn
void YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test::~YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test( YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test *this) { YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test::~YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test(this); operator delete(this, 0x20uLL); }
~YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RDI CALL 0x001fde10 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x20 CALL 0x001354d0 ADD RSP,0x10 POP RBP RET
/* YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test::~YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test() */ void __thiscall YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test:: ~YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test (YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test *this) { ~YogaTest_HadOverflowTests_children_overflow_no_wrap_and_no_flex_children_Test(this); operator_delete(this,0x20); return; }
3,885
mj_updateDynamicBVH
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_core_smooth.c
void mj_updateDynamicBVH(const mjModel* m, mjData* d, int bvhadr, int bvhnum) { mj_markStack(d); int* modified = mj_stackAllocInt(d, bvhnum); mju_zeroInt(modified, bvhnum); // mark leafs as modified for (int i=0; i < bvhnum; i++) { if (m->bvh_nodeid[bvhadr+i] >= 0) { modified[i] = 1; } } // update non-leafs in backward pass (parents come before children) for (int i=bvhnum-1; i >= 0; i--) { if (m->bvh_nodeid[bvhadr+i] < 0) { int child1 = m->bvh_child[2*(bvhadr+i)]; int child2 = m->bvh_child[2*(bvhadr+i)+1]; // update if either child is modified if (modified[child1] || modified[child2]) { mjtNum* aabb = d->bvh_aabb_dyn + 6*(bvhadr - m->nbvhstatic + i); const mjtNum* aabb1 = d->bvh_aabb_dyn + 6*(bvhadr - m->nbvhstatic + child1); const mjtNum* aabb2 = d->bvh_aabb_dyn + 6*(bvhadr - m->nbvhstatic + child2); // compute new (min, max) mjtNum xmin[3], xmax[3]; for (int k=0; k < 3; k++) { xmin[k] = mju_min(aabb1[k] - aabb1[k+3], aabb2[k] - aabb2[k+3]); xmax[k] = mju_max(aabb1[k] + aabb1[k+3], aabb2[k] + aabb2[k+3]); } // convert to (center, size) for (int k=0; k < 3; k++) { aabb[k] = 0.5*(xmax[k]+xmin[k]); aabb[k+3] = 0.5*(xmax[k]-xmin[k]); } modified[i] = 1; } } } mj_freeStack(d); }
O3
c
mj_updateDynamicBVH: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %ecx, %ebp movl %edx, %r13d movq %rsi, %rbx movq %rdi, %r14 movq %rsi, %rdi callq 0x2d310 movslq %ebp, %r15 movq %rbx, 0x8(%rsp) movq %rbx, %rdi movq %r15, %rsi callq 0x2d320 movq %rax, %rbx movq %rax, %rdi movl %r15d, %esi callq 0x2d790 testl %r15d, %r15d jle 0x484fd movslq %r13d, %rsi movl %ebp, %eax leaq (,%rsi,4), %rcx addq 0x628(%r14), %rcx xorl %edx, %edx cmpl $0x0, (%rcx,%rdx,4) js 0x483a2 movl $0x1, (%rbx,%rdx,4) incq %rdx cmpq %rdx, %rax jne 0x48395 testl %ebp, %ebp jle 0x484fd movq %r14, 0x20(%rsp) movq %rbx, 0x18(%rsp) movq %rsi, 0x10(%rsp) movq %r15, %rbp decq %r15 movq 0x628(%r14), %rcx leaq (%rsi,%rbp), %rax decq %rax cmpl $0x0, (%rcx,%rax,4) jns 0x484f3 movq 0x620(%r14), %rdx movslq (%rdx,%rax,8), %rcx movslq 0x4(%rdx,%rax,8), %rax cmpl $0x0, (%rbx,%rcx,4) jne 0x483ff cmpl $0x0, (%rbx,%rax,4) je 0x484f3 movq 0x8(%rsp), %rdx movq 0x27948(%rdx), %rbx movslq 0x18(%r14), %rdx subq %rdx, %rsi leal (%r15,%rsi), %edx addl %edx, %edx leal (%rdx,%rdx,2), %edx movslq %edx, %rdx movq %rdx, 0x28(%rsp) addl %esi, %eax addq %rcx, %rsi leaq (%rsi,%rsi,2), %r14 shlq $0x4, %r14 addq %rbx, %r14 addl %eax, %eax leal (%rax,%rax,2), %eax cltq leaq (%rbx,%rax,8), %r13 xorl %r12d, %r12d vmovsd (%r14,%r12,8), %xmm0 vsubsd 0x18(%r14,%r12,8), %xmm0, %xmm0 vmovsd (%r13,%r12,8), %xmm1 vsubsd 0x18(%r13,%r12,8), %xmm1, %xmm1 vzeroupper callq 0x2d280 vmovsd %xmm0, 0x50(%rsp,%r12,8) vmovsd (%r14,%r12,8), %xmm0 vaddsd 0x18(%r14,%r12,8), %xmm0, %xmm0 vmovsd (%r13,%r12,8), %xmm1 vaddsd 0x18(%r13,%r12,8), %xmm1, %xmm1 callq 0x2d2f0 vmovsd %xmm0, 0x30(%rsp,%r12,8) incq %r12 cmpq $0x3, %r12 jne 0x48441 vmovapd 0x17527d(%rip), %ymm3 # 0x1bd720 vmaskmovpd 0x30(%rsp), %ymm3, %ymm0 vmaskmovpd 0x50(%rsp), %ymm3, %ymm1 vaddpd %ymm1, %ymm0, %ymm2 vbroadcastsd 0x1746fa(%rip), %ymm4 # 0x1bcbb8 vmulpd %ymm4, %ymm2, %ymm2 movq 0x28(%rsp), %rax vmaskmovpd %ymm2, %ymm3, (%rbx,%rax,8) vsubpd %ymm1, %ymm0, %ymm0 vmulpd %ymm4, %ymm0, %ymm0 vmaskmovpd %ymm0, %ymm3, 0x18(%rbx,%rax,8) movq 0x18(%rsp), %rbx movl $0x1, (%rbx,%r15,4) movq 0x20(%rsp), %r14 movq 0x10(%rsp), %rsi cmpq $0x1, %rbp jg 0x483c1 movq 0x8(%rsp), %rdi addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp vzeroupper jmp 0x2d340
mj_updateDynamicBVH: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov ebp, ecx mov r13d, edx mov rbx, rsi mov r14, rdi mov rdi, rsi call _mj_markStack movsxd r15, ebp mov [rsp+98h+var_90], rbx mov rdi, rbx mov rsi, r15 call _mj_stackAllocInt mov rbx, rax mov rdi, rax mov esi, r15d call _mju_zeroInt test r15d, r15d jle loc_484FD movsxd rsi, r13d mov eax, ebp lea rcx, ds:0[rsi*4] add rcx, [r14+628h] xor edx, edx loc_48395: cmp dword ptr [rcx+rdx*4], 0 js short loc_483A2 mov dword ptr [rbx+rdx*4], 1 loc_483A2: inc rdx cmp rax, rdx jnz short loc_48395 test ebp, ebp jle loc_484FD mov [rsp+98h+var_78], r14 mov [rsp+98h+var_80], rbx mov [rsp+98h+var_88], rsi loc_483C1: mov rbp, r15 dec r15 mov rcx, [r14+628h] lea rax, [rsi+rbp] dec rax cmp dword ptr [rcx+rax*4], 0 jns loc_484F3 mov rdx, [r14+620h] movsxd rcx, dword ptr [rdx+rax*8] movsxd rax, dword ptr [rdx+rax*8+4] cmp dword ptr [rbx+rcx*4], 0 jnz short loc_483FF cmp dword ptr [rbx+rax*4], 0 jz loc_484F3 loc_483FF: mov rdx, [rsp+98h+var_90] mov rbx, qword ptr ds:stru_27948.r_offset[rdx] movsxd rdx, dword ptr [r14+18h] sub rsi, rdx lea edx, [r15+rsi] add edx, edx lea edx, [rdx+rdx*2] movsxd rdx, edx mov [rsp+98h+var_70], rdx add eax, esi add rsi, rcx lea r14, [rsi+rsi*2] shl r14, 4 add r14, rbx add eax, eax lea eax, [rax+rax*2] cdqe lea r13, [rbx+rax*8] xor r12d, r12d loc_48441: vmovsd xmm0, qword ptr [r14+r12*8] vsubsd xmm0, xmm0, qword ptr [r14+r12*8+18h] vmovsd xmm1, qword ptr [r13+r12*8+0] vsubsd xmm1, xmm1, qword ptr [r13+r12*8+18h] vzeroupper call _mju_min vmovsd qword ptr [rsp+r12*8+98h+var_48], xmm0 vmovsd xmm0, qword ptr [r14+r12*8] vaddsd xmm0, xmm0, qword ptr [r14+r12*8+18h] vmovsd xmm1, qword ptr [r13+r12*8+0] vaddsd xmm1, xmm1, qword ptr [r13+r12*8+18h] call _mju_max vmovsd qword ptr [rsp+r12*8+98h+var_68], xmm0 inc r12 cmp r12, 3 jnz short loc_48441 vmovapd ymm3, cs:ymmword_1BD720 vmaskmovpd ymm0, ymm3, [rsp+98h+var_68] vmaskmovpd ymm1, ymm3, [rsp+98h+var_48] vaddpd ymm2, ymm0, ymm1 vbroadcastsd ymm4, cs:qword_1BCBB8 vmulpd ymm2, ymm2, ymm4 mov rax, [rsp+98h+var_70] vmaskmovpd ymmword ptr [rbx+rax*8], ymm3, ymm2 vsubpd ymm0, ymm0, ymm1 vmulpd ymm0, ymm0, ymm4 vmaskmovpd ymmword ptr [rbx+rax*8+18h], ymm3, ymm0 mov rbx, [rsp+98h+var_80] mov dword ptr [rbx+r15*4], 1 mov r14, [rsp+98h+var_78] mov rsi, [rsp+98h+var_88] loc_484F3: cmp rbp, 1 jg loc_483C1 loc_484FD: mov rdi, [rsp+98h+var_90] add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp vzeroupper jmp _mj_freeStack
long long mj_updateDynamicBVH(long long a1, _QWORD *a2, int a3, int a4, double a5) { long long v7; // r14 double v8; // xmm0_8 long long v9; // r15 long long v10; // rbx long long v11; // rsi long long v12; // rcx long long v13; // rdx long long v14; // rbp long long v15; // rax long long v16; // rdx long long v17; // rcx long long v18; // rax long long v20; // rsi long long v43; // [rsp+10h] [rbp-88h] long long v44; // [rsp+18h] [rbp-80h] v7 = a1; v8 = mj_markStack(a2, a5); v9 = a4; v10 = mj_stackAllocInt((long long)a2, a4); mju_zeroInt(v10, (unsigned int)a4, v8); if ( a4 > 0 ) { v11 = a3; v12 = *(_QWORD *)(a1 + 1576) + 4LL * a3; v13 = 0LL; do { if ( *(int *)(v12 + 4 * v13) >= 0 ) *(_DWORD *)(v10 + 4 * v13) = 1; ++v13; } while ( a4 != v13 ); v44 = v10; v43 = a3; do { v14 = v9--; v15 = v11 + v14 - 1; if ( *(int *)(*(_QWORD *)(v7 + 1576) + 4 * v15) < 0 ) { v16 = *(_QWORD *)(v7 + 1568); v17 = *(int *)(v16 + 8 * v15); v18 = *(int *)(v16 + 8 * v15 + 4); if ( *(_DWORD *)(v10 + 4 * v17) || *(_DWORD *)(v10 + 4 * v18) ) { _RBX = *(unsigned long long *)((char *)&stru_27948.r_offset + (_QWORD)a2); v20 = v11 - *(int *)(v7 + 24); _R14 = _RBX + 48 * (v17 + v20); _R13 = _RBX + 48LL * ((int)v20 + (int)v18); for ( _R12 = 0LL; _R12 != 3; ++_R12 ) { __asm { vmovsd xmm0, qword ptr [r14+r12*8] vsubsd xmm0, xmm0, qword ptr [r14+r12*8+18h] vmovsd xmm1, qword ptr [r13+r12*8+0] vsubsd xmm1, xmm1, qword ptr [r13+r12*8+18h] vzeroupper } *(double *)&_XMM0 = mju_min(*(double *)&_XMM0, *(double *)&_XMM1); __asm { vmovsd qword ptr [rsp+r12*8+98h+var_48], xmm0 vmovsd xmm0, qword ptr [r14+r12*8] vaddsd xmm0, xmm0, qword ptr [r14+r12*8+18h] vmovsd xmm1, qword ptr [r13+r12*8+0] vaddsd xmm1, xmm1, qword ptr [r13+r12*8+18h] } *(double *)&_XMM0 = mju_max(*(double *)&_XMM0, *(double *)&_XMM1); __asm { vmovsd qword ptr [rsp+r12*8+98h+var_68], xmm0 } } __asm { vmovapd ymm3, cs:ymmword_1BD720 vmaskmovpd ymm0, ymm3, [rsp+98h+var_68] vmaskmovpd ymm1, ymm3, [rsp+98h+var_48] vaddpd ymm2, ymm0, ymm1 vbroadcastsd ymm4, cs:qword_1BCBB8 vmulpd ymm2, ymm2, ymm4 } _RAX = 6 * ((int)v9 + (int)v20); __asm { vmaskmovpd ymmword ptr [rbx+rax*8], ymm3, ymm2 vsubpd ymm0, ymm0, ymm1 vmulpd ymm0, ymm0, ymm4 vmaskmovpd ymmword ptr [rbx+rax*8+18h], ymm3, ymm0 } v10 = v44; *(_DWORD *)(v44 + 4 * v9) = 1; v7 = a1; v11 = v43; } } } while ( v14 > 1 ); } __asm { vzeroupper } return mj_freeStack(a2); }
mj_updateDynamicBVH: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV EBP,ECX MOV R13D,EDX MOV RBX,RSI MOV R14,RDI MOV RDI,RSI CALL 0x0012d310 MOVSXD R15,EBP MOV qword ptr [RSP + 0x8],RBX MOV RDI,RBX MOV RSI,R15 CALL 0x0012d320 MOV RBX,RAX MOV RDI,RAX MOV ESI,R15D CALL 0x0012d790 TEST R15D,R15D JLE 0x001484fd MOVSXD RSI,R13D MOV EAX,EBP LEA RCX,[RSI*0x4] ADD RCX,qword ptr [R14 + 0x628] XOR EDX,EDX LAB_00148395: CMP dword ptr [RCX + RDX*0x4],0x0 JS 0x001483a2 MOV dword ptr [RBX + RDX*0x4],0x1 LAB_001483a2: INC RDX CMP RAX,RDX JNZ 0x00148395 TEST EBP,EBP JLE 0x001484fd MOV qword ptr [RSP + 0x20],R14 MOV qword ptr [RSP + 0x18],RBX MOV qword ptr [RSP + 0x10],RSI LAB_001483c1: MOV RBP,R15 DEC R15 MOV RCX,qword ptr [R14 + 0x628] LEA RAX,[RSI + RBP*0x1] DEC RAX CMP dword ptr [RCX + RAX*0x4],0x0 JNS 0x001484f3 MOV RDX,qword ptr [R14 + 0x620] MOVSXD RCX,dword ptr [RDX + RAX*0x8] MOVSXD RAX,dword ptr [RDX + RAX*0x8 + 0x4] CMP dword ptr [RBX + RCX*0x4],0x0 JNZ 0x001483ff CMP dword ptr [RBX + RAX*0x4],0x0 JZ 0x001484f3 LAB_001483ff: MOV RDX,qword ptr [RSP + 0x8] MOV RBX,qword ptr [RDX + 0x27948] MOVSXD RDX,dword ptr [R14 + 0x18] SUB RSI,RDX LEA EDX,[R15 + RSI*0x1] ADD EDX,EDX LEA EDX,[RDX + RDX*0x2] MOVSXD RDX,EDX MOV qword ptr [RSP + 0x28],RDX ADD EAX,ESI ADD RSI,RCX LEA R14,[RSI + RSI*0x2] SHL R14,0x4 ADD R14,RBX ADD EAX,EAX LEA EAX,[RAX + RAX*0x2] CDQE LEA R13,[RBX + RAX*0x8] XOR R12D,R12D LAB_00148441: VMOVSD XMM0,qword ptr [R14 + R12*0x8] VSUBSD XMM0,XMM0,qword ptr [R14 + R12*0x8 + 0x18] VMOVSD XMM1,qword ptr [R13 + R12*0x8] VSUBSD XMM1,XMM1,qword ptr [R13 + R12*0x8 + 0x18] VZEROUPPER CALL 0x0012d280 VMOVSD qword ptr [RSP + R12*0x8 + 0x50],XMM0 VMOVSD XMM0,qword ptr [R14 + R12*0x8] VADDSD XMM0,XMM0,qword ptr [R14 + R12*0x8 + 0x18] VMOVSD XMM1,qword ptr [R13 + R12*0x8] VADDSD XMM1,XMM1,qword ptr [R13 + R12*0x8 + 0x18] CALL 0x0012d2f0 VMOVSD qword ptr [RSP + R12*0x8 + 0x30],XMM0 INC R12 CMP R12,0x3 JNZ 0x00148441 VMOVAPD YMM3,ymmword ptr [0x002bd720] VMASKMOVPD YMM0,YMM3,ymmword ptr [RSP + 0x30] VMASKMOVPD YMM1,YMM3,ymmword ptr [RSP + 0x50] VADDPD YMM2,YMM0,YMM1 VBROADCASTSD YMM4,qword ptr [0x002bcbb8] VMULPD YMM2,YMM2,YMM4 MOV RAX,qword ptr [RSP + 0x28] VMASKMOVPD ymmword ptr [RBX + RAX*0x8],YMM3,YMM2 VSUBPD YMM0,YMM0,YMM1 VMULPD YMM0,YMM0,YMM4 VMASKMOVPD ymmword ptr [RBX + RAX*0x8 + 0x18],YMM3,YMM0 MOV RBX,qword ptr [RSP + 0x18] MOV dword ptr [RBX + R15*0x4],0x1 MOV R14,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x10] LAB_001484f3: CMP RBP,0x1 JG 0x001483c1 LAB_001484fd: MOV RDI,qword ptr [RSP + 0x8] ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP VZEROUPPER JMP 0x0012d340
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void mj_updateDynamicBVH(long param_1,long param_2,int param_3,uint param_4) { int1 auVar1 [32]; int1 auVar2 [32]; int iVar3; long lVar4; bool bVar5; int1 auVar6 [32]; int iVar7; double dVar8; long lVar9; long lVar10; long lVar11; ulong uVar12; long lVar13; int8 unaff_RBX; long lVar14; long lVar15; long lVar16; long lVar17; int8 uVar18; int1 auVar19 [32]; int1 auVar20 [32]; int1 local_68 [32]; int1 local_48 [24]; mj_markStack(param_2); lVar16 = (long)(int)param_4; lVar9 = mj_stackAllocInt(param_2,lVar16); mju_zeroInt(lVar9,param_4); if (0 < (int)param_4) { lVar14 = (long)param_3; lVar10 = *(long *)(param_1 + 0x628); uVar12 = 0; do { if (-1 < *(int *)(lVar14 * 4 + lVar10 + uVar12 * 4)) { *(int4 *)(lVar9 + uVar12 * 4) = 1; } uVar12 = uVar12 + 1; } while (param_4 != uVar12); if (0 < (int)param_4) { do { lVar17 = lVar16 + -1; lVar10 = lVar14 + lVar16 + -1; if (*(int *)(*(long *)(param_1 + 0x628) + lVar10 * 4) < 0) { lVar11 = (long)*(int *)(*(long *)(param_1 + 0x620) + lVar10 * 8); iVar3 = *(int *)(*(long *)(param_1 + 0x620) + 4 + lVar10 * 8); if ((*(int *)(lVar9 + lVar11 * 4) != 0) || (*(int *)(lVar9 + (long)iVar3 * 4) != 0)) { lVar4 = *(long *)(param_2 + 0x27948); lVar10 = lVar14 - *(int *)(param_1 + 0x18); iVar7 = (int)lVar10; lVar13 = (long)(((int)lVar17 + iVar7) * 6); lVar15 = (lVar10 + lVar11) * 0x30 + lVar4; lVar10 = lVar4 + (long)((iVar3 + iVar7) * 6) * 8; lVar11 = 0; do { uVar18 = mju_min(); *(int8 *)(local_48 + lVar11 * 8) = uVar18; uVar18 = mju_max(*(double *)(lVar15 + lVar11 * 8) + *(double *)(lVar15 + 0x18 + lVar11 * 8), *(double *)(lVar10 + lVar11 * 8) + *(double *)(lVar10 + 0x18 + lVar11 * 8)); auVar2 = _DAT_002bd720; dVar8 = DAT_002bcbb8; *(int8 *)(local_68 + lVar11 * 8) = uVar18; lVar11 = lVar11 + 1; } while (lVar11 != 3); auVar19 = vmaskmovpd_avx(_DAT_002bd720,local_68); auVar1._24_8_ = unaff_RBX; auVar1._0_24_ = local_48; auVar6 = vmaskmovpd_avx(_DAT_002bd720,auVar1); auVar20._0_8_ = (auVar19._0_8_ + auVar6._0_8_) * DAT_002bcbb8; auVar20._8_8_ = (auVar19._8_8_ + auVar6._8_8_) * DAT_002bcbb8; auVar20._16_8_ = (auVar19._16_8_ + auVar6._16_8_) * DAT_002bcbb8; auVar20._24_8_ = (auVar19._24_8_ + auVar6._24_8_) * DAT_002bcbb8; auVar1 = vmaskmovpd_avx(_DAT_002bd720,auVar20); *(int1 (*) [32])(lVar4 + lVar13 * 8) = auVar1; auVar1 = vsubpd_avx(auVar19,auVar6); auVar19._0_8_ = auVar1._0_8_ * dVar8; auVar19._8_8_ = auVar1._8_8_ * dVar8; auVar19._16_8_ = auVar1._16_8_ * dVar8; auVar19._24_8_ = auVar1._24_8_ * dVar8; auVar2 = vmaskmovpd_avx(auVar2,auVar19); *(int1 (*) [32])(lVar4 + 0x18 + lVar13 * 8) = auVar2; *(int4 *)(lVar9 + lVar17 * 4) = 1; } } bVar5 = 1 < lVar16; lVar16 = lVar17; } while (bVar5); } } mj_freeStack(param_2); return; }
3,886
nglog::LogDestination::DeleteLogDestinations()
ng-log[P]ng-log/src/logging.cc
void LogDestination::DeleteLogDestinations() { for (auto& log_destination : log_destinations_) { log_destination.reset(); } SinkLock l{sink_mutex_}; sinks_.reset(); }
O2
cpp
nglog::LogDestination::DeleteLogDestinations(): pushq %r14 pushq %rbx pushq %rax xorl %ebx, %ebx leaq 0x26871(%rip), %r14 # 0x31d00 cmpq $0x20, %rbx je 0xb4a6 leaq (%r14,%rbx), %rdi xorl %esi, %esi callq 0x1123a addq $0x8, %rbx jmp 0xb48f leaq 0x2680b(%rip), %rbx # 0x31cb8 movq %rbx, %rdi callq 0x1cc7e leaq 0x267f4(%rip), %rdi # 0x31cb0 xorl %esi, %esi callq 0x113ba movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x87a0
_ZN5nglog14LogDestination21DeleteLogDestinationsEv: push r14 push rbx push rax xor ebx, ebx lea r14, _ZN5nglog14LogDestination17log_destinations_E; nglog::LogDestination::log_destinations_ loc_B48F: cmp rbx, 20h ; ' ' jz short loc_B4A6 lea rdi, [r14+rbx] xor esi, esi call _ZNSt15__uniq_ptr_implIN5nglog14LogDestinationESt14default_deleteIS1_EE5resetEPS1_; std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(nglog::LogDestination*) add rbx, 8 jmp short loc_B48F loc_B4A6: lea rbx, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ mov rdi, rbx; this call _ZNSt22__shared_mutex_pthread4lockEv; std::__shared_mutex_pthread::lock(void) lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ xor esi, esi call _ZNSt15__uniq_ptr_implISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EE5resetEPS5_; std::__uniq_ptr_impl<std::vector<nglog::LogSink *>,std::default_delete<std::vector<nglog::LogSink *>>>::reset(std::vector<nglog::LogSink *>*) mov rdi, rbx add rsp, 8 pop rbx pop r14 jmp _pthread_rwlock_unlock
long long nglog::LogDestination::DeleteLogDestinations(nglog::LogDestination *this) { long long i; // rbx for ( i = 0LL; i != 32; i += 8LL ) std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset( (char *)&nglog::LogDestination::log_destinations_ + i, 0LL); std::__shared_mutex_pthread::lock((std::__shared_mutex_pthread *)&nglog::LogDestination::sink_mutex_); std::__uniq_ptr_impl<std::vector<nglog::LogSink *>,std::default_delete<std::vector<nglog::LogSink *>>>::reset( &nglog::LogDestination::sinks_, 0LL); return pthread_rwlock_unlock(&nglog::LogDestination::sink_mutex_); }
DeleteLogDestinations: PUSH R14 PUSH RBX PUSH RAX XOR EBX,EBX LEA R14,[0x131d00] LAB_0010b48f: CMP RBX,0x20 JZ 0x0010b4a6 LEA RDI,[R14 + RBX*0x1] XOR ESI,ESI CALL 0x0011123a ADD RBX,0x8 JMP 0x0010b48f LAB_0010b4a6: LEA RBX,[0x131cb8] MOV RDI,RBX CALL 0x0011cc7e LEA RDI,[0x131cb0] XOR ESI,ESI CALL 0x001113ba MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001087a0
/* nglog::LogDestination::DeleteLogDestinations() */ void nglog::LogDestination::DeleteLogDestinations(void) { long lVar1; for (lVar1 = 0; lVar1 != 0x20; lVar1 = lVar1 + 8) { std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset ((__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *) ((long)&log_destinations_ + lVar1),(LogDestination *)0x0); } std::__shared_mutex_pthread::lock((__shared_mutex_pthread *)sink_mutex_); std:: __uniq_ptr_impl<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> ::reset((__uniq_ptr_impl<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> *)&sinks_,(vector *)0x0); pthread_rwlock_unlock((pthread_rwlock_t *)sink_mutex_); return; }
3,887
mi_end_bulk_insert
eloqsql/storage/myisam/mi_write.c
int mi_end_bulk_insert(MI_INFO *info, my_bool abort) { int first_error= 0; if (info->bulk_insert) { uint i; for (i=0 ; i < info->s->base.keys ; i++) { if (is_tree_inited(& info->bulk_insert[i])) { int error; if ((error= delete_tree(& info->bulk_insert[i], abort))) { first_error= first_error ? first_error : error; abort= 1; } } } my_free(info->bulk_insert); info->bulk_insert=0; } return first_error; }
O0
c
mi_end_bulk_insert: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %sil, %al movq %rdi, -0x8(%rbp) movb %al, -0x9(%rbp) movl $0x0, -0x10(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x80(%rax) je 0xca00a movl $0x0, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x8(%rbp), %rcx movq (%rcx), %rcx cmpl 0x180(%rcx), %eax jae 0xc9feb movq -0x8(%rbp), %rax movq 0x80(%rax), %rax movl -0x14(%rbp), %ecx imulq $0x298, %rcx, %rcx # imm = 0x298 addq %rcx, %rax cmpq $0x0, (%rax) je 0xc9fdb movq -0x8(%rbp), %rax movq 0x80(%rax), %rdi movl -0x14(%rbp), %eax imulq $0x298, %rax, %rax # imm = 0x298 addq %rax, %rdi movsbl -0x9(%rbp), %esi callq 0xfc030 movl %eax, -0x18(%rbp) cmpl $0x0, %eax je 0xc9fd9 cmpl $0x0, -0x10(%rbp) je 0xc9fc9 movl -0x10(%rbp), %eax movl %eax, -0x1c(%rbp) jmp 0xc9fcf movl -0x18(%rbp), %eax movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax movl %eax, -0x10(%rbp) movb $0x1, -0x9(%rbp) jmp 0xc9fdb jmp 0xc9fdd movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) jmp 0xc9f62 movq -0x8(%rbp), %rax movq 0x80(%rax), %rdi callq 0xf5510 movq -0x8(%rbp), %rax movq $0x0, 0x80(%rax) movl -0x10(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
mi_end_bulk_insert: push rbp mov rbp, rsp sub rsp, 20h mov al, sil mov [rbp+var_8], rdi mov [rbp+var_9], al mov [rbp+var_10], 0 mov rax, [rbp+var_8] cmp qword ptr [rax+80h], 0 jz loc_CA00A mov [rbp+var_14], 0 loc_C9F62: mov eax, [rbp+var_14] mov rcx, [rbp+var_8] mov rcx, [rcx] cmp eax, [rcx+180h] jnb short loc_C9FEB mov rax, [rbp+var_8] mov rax, [rax+80h] mov ecx, [rbp+var_14] imul rcx, 298h add rax, rcx cmp qword ptr [rax], 0 jz short loc_C9FDB mov rax, [rbp+var_8] mov rdi, [rax+80h] mov eax, [rbp+var_14] imul rax, 298h add rdi, rax movsx esi, [rbp+var_9] call delete_tree mov [rbp+var_18], eax cmp eax, 0 jz short loc_C9FD9 cmp [rbp+var_10], 0 jz short loc_C9FC9 mov eax, [rbp+var_10] mov [rbp+var_1C], eax jmp short loc_C9FCF loc_C9FC9: mov eax, [rbp+var_18] mov [rbp+var_1C], eax loc_C9FCF: mov eax, [rbp+var_1C] mov [rbp+var_10], eax mov [rbp+var_9], 1 loc_C9FD9: jmp short $+2 loc_C9FDB: jmp short $+2 loc_C9FDD: mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_14], eax jmp loc_C9F62 loc_C9FEB: mov rax, [rbp+var_8] mov rdi, [rax+80h] call my_free mov rax, [rbp+var_8] mov qword ptr [rax+80h], 0 loc_CA00A: mov eax, [rbp+var_10] add rsp, 20h pop rbp retn
long long mi_end_bulk_insert(_QWORD *a1, char a2) { int v3; // [rsp+4h] [rbp-1Ch] int v4; // [rsp+8h] [rbp-18h] unsigned int i; // [rsp+Ch] [rbp-14h] unsigned int v6; // [rsp+10h] [rbp-10h] v6 = 0; if ( a1[16] ) { for ( i = 0; i < *(_DWORD *)(*a1 + 384LL); ++i ) { if ( *(_QWORD *)(664LL * i + a1[16]) ) { v4 = delete_tree(664LL * i + a1[16], (unsigned int)a2); if ( v4 ) { if ( v6 ) v3 = v6; else v3 = v4; v6 = v3; a2 = 1; } } } my_free(a1[16]); a1[16] = 0LL; } return v6; }
mi_end_bulk_insert: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,SIL MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],AL MOV dword ptr [RBP + -0x10],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x80],0x0 JZ 0x001ca00a MOV dword ptr [RBP + -0x14],0x0 LAB_001c9f62: MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX] CMP EAX,dword ptr [RCX + 0x180] JNC 0x001c9feb MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x80] MOV ECX,dword ptr [RBP + -0x14] IMUL RCX,RCX,0x298 ADD RAX,RCX CMP qword ptr [RAX],0x0 JZ 0x001c9fdb MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x80] MOV EAX,dword ptr [RBP + -0x14] IMUL RAX,RAX,0x298 ADD RDI,RAX MOVSX ESI,byte ptr [RBP + -0x9] CALL 0x001fc030 MOV dword ptr [RBP + -0x18],EAX CMP EAX,0x0 JZ 0x001c9fd9 CMP dword ptr [RBP + -0x10],0x0 JZ 0x001c9fc9 MOV EAX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x1c],EAX JMP 0x001c9fcf LAB_001c9fc9: MOV EAX,dword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x1c],EAX LAB_001c9fcf: MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x10],EAX MOV byte ptr [RBP + -0x9],0x1 LAB_001c9fd9: JMP 0x001c9fdb LAB_001c9fdb: JMP 0x001c9fdd LAB_001c9fdd: MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX JMP 0x001c9f62 LAB_001c9feb: MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x80] CALL 0x001f5510 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x80],0x0 LAB_001ca00a: MOV EAX,dword ptr [RBP + -0x10] ADD RSP,0x20 POP RBP RET
int mi_end_bulk_insert(long *param_1,char param_2) { int local_24; uint local_1c; int local_18; char local_11; local_18 = 0; if (param_1[0x10] != 0) { local_11 = param_2; for (local_1c = 0; local_1c < *(uint *)(*param_1 + 0x180); local_1c = local_1c + 1) { if ((*(long *)(param_1[0x10] + (ulong)local_1c * 0x298) != 0) && (local_24 = delete_tree(param_1[0x10] + (ulong)local_1c * 0x298,(int)local_11), local_24 != 0)) { if (local_18 != 0) { local_24 = local_18; } local_18 = local_24; local_11 = '\x01'; } } my_free(param_1[0x10]); param_1[0x10] = 0; } return local_18; }
3,888
parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
monkey531[P]llama/common/chat.cpp
static common_chat_msg parse_prefixed_json_tool_call_array(const std::string& input, const std::string & prefix, size_t rstrip_prefix = 0) { auto content_end = input.find(prefix); size_t tc_start = std::string::npos; common_chat_msg result; result.role = "assistant"; const auto process_tool_calls = [&](const json & tool_calls) { for (const auto & tool_call : tool_calls) { const auto & arguments = tool_call["arguments"]; result.tool_calls.push_back({ tool_call["name"], arguments.is_string() ? arguments.get<std::string>() : arguments.dump(), tool_call.contains("id") ? tool_call["id"] : "", }); } }; if (content_end == std::string::npos) { result.content = input; } else { tc_start = content_end + prefix.size() - rstrip_prefix; result.content = input.substr(0, content_end); auto tool_calls = json::parse(input.substr(tc_start)); process_tool_calls(tool_calls); } return result; }
O3
cpp
parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movq %rcx, %rbx movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbp movq (%rdx), %rsi movq 0x8(%rdx), %rcx xorl %r13d, %r13d movq %r14, %rdi xorl %edx, %edx callq 0x1af50 movq %rax, %r15 leaq 0x10(%rbp), %rax movq %rax, (%rbp) movq %r13, 0x8(%rbp) movb %r13b, 0x10(%rbp) leaq 0x30(%rbp), %rax movq %rax, 0x20(%rbp) movq %r13, 0x28(%rbp) movb %r13b, 0x30(%rbp) xorps %xmm0, %xmm0 movups %xmm0, 0x40(%rbp) movq %r13, 0x50(%rbp) leaq 0x68(%rbp), %rax movq %rax, 0x58(%rbp) movq %r13, 0x60(%rbp) movb %r13b, 0x68(%rbp) leaq 0xcce4(%rip), %rcx # 0xef253 movl $0x9, %r8d movq %rbp, %rdi xorl %esi, %esi xorl %edx, %edx movq %rbp, 0x48(%rsp) callq 0x1ad70 leaq 0x20(%rbp), %r13 cmpq $-0x1, %r15 je 0xe26b3 movq 0x8(%r12), %r12 leaq 0x60(%rsp), %rdi movq %r14, %rsi xorl %edx, %edx movq %r15, %rcx callq 0x1a930 subq %rbx, %r15 addq %r12, %r15 leaq 0x60(%rsp), %rbx movq %r13, %rdi movq %rbx, %rsi callq 0x1aab0 movq (%rbx), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0xe25db movq 0x70(%rsp), %rsi incq %rsi callq 0x1a8e0 leaq 0x60(%rsp), %rdi movq %r14, %rsi movq %r15, %rdx movq $-0x1, %rcx callq 0x1a930 xorps %xmm0, %xmm0 leaq 0xd0(%rsp), %rdx movaps %xmm0, 0x10(%rdx) movaps %xmm0, (%rdx) leaq 0x50(%rsp), %rbx leaq 0x60(%rsp), %rsi movq %rbx, %rdi movl $0x1, %ecx xorl %r8d, %r8d callq 0xa55c0 movq 0xe0(%rsp), %rax testq %rax, %rax je 0xe263d leaq 0xd0(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0xe2659 movq 0x70(%rsp), %rsi incq %rsi callq 0x1a8e0 movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rbx, 0x28(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x30(%rsp) movq %rax, 0x40(%rsp) movzbl 0x50(%rsp), %ecx testl %ecx, %ecx je 0xe26ee cmpl $0x2, %ecx je 0xe26c3 cmpl $0x1, %ecx jne 0xe26f9 movq 0x58(%rsp), %rcx movq (%rcx), %rdx movq %rdx, 0x30(%rsp) movq %rbx, 0x8(%rsp) movq $0x0, 0x18(%rsp) movq %rax, 0x20(%rsp) movq 0x8(%rcx), %rax movq %rax, 0x10(%rsp) jmp 0xe2715 movq %r13, %rdi movq %r14, %rsi callq 0x1a4b0 jmp 0xe28c3 movq 0x58(%rsp), %rcx movq (%rcx), %rdx movq %rdx, 0x38(%rsp) movq %rbx, 0x8(%rsp) movq $0x0, 0x10(%rsp) movq %rax, 0x20(%rsp) movq 0x8(%rcx), %rax movq %rax, 0x18(%rsp) jmp 0xe2715 movq $0x1, 0x40(%rsp) jmp 0xe2702 movq $0x0, 0x40(%rsp) movq %rbx, 0x8(%rsp) movups %xmm0, 0x10(%rsp) movq $0x1, 0x20(%rsp) leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rsi callq 0x8d5c6 testb %al, %al jne 0xe28b9 movq 0x48(%rsp), %rax leaq 0x40(%rax), %r14 leaq 0x28(%rsp), %r13 leaq 0x60(%rsp), %r12 leaq 0xc0(%rsp), %r15 movq %r13, %rdi callq 0x8d25a movq %rax, %rbx movq %rax, %rdi leaq 0xdeac(%rip), %rsi # 0xf0608 callq 0xa5eae movq %rax, %rbp movq %rbx, %rdi leaq 0xe436(%rip), %rsi # 0xf0ba4 callq 0xa5eae movq %r12, %rdi movq %rax, %rsi callq 0x87e52 cmpb $0x3, (%rbp) jne 0xe2796 leaq 0x80(%rsp), %rdi movq %rbp, %rsi callq 0x87e52 jmp 0xe27b6 leaq 0x80(%rsp), %rdi movq %rbp, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x80148 movq %rbx, %rdi leaq 0xcef2(%rip), %rsi # 0xef6b2 callq 0xa5e4c testb %al, %al je 0xe27e5 movq %rbx, %rdi leaq 0xcedf(%rip), %rsi # 0xef6b2 callq 0xa5eae movq %r15, %rdi movq %rax, %rsi callq 0x5e1a6 jmp 0xe27f4 movq %r15, %rdi leaq 0x91ad(%rip), %rsi # 0xeb99c callq 0xb8c48 leaq 0xa0(%rsp), %rdi movq %r15, %rsi callq 0x87e52 movq %r14, %rdi movq %r12, %rsi callq 0xe541e movq 0xa0(%rsp), %rdi leaq 0xb0(%rsp), %rax cmpq %rax, %rdi je 0xe2834 movq 0xb0(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x80(%rsp), %rdi leaq 0x90(%rsp), %rax cmpq %rax, %rdi je 0xe2859 movq 0x90(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0xe2875 movq 0x70(%rsp), %rsi incq %rsi callq 0x1a8e0 movq %r15, %rdi callq 0x5e672 movq 0x28(%rsp), %rax movzbl (%rax), %eax cmpl $0x2, %eax je 0xe2897 cmpl $0x1, %eax jne 0xe289f addq $0x30, 0x30(%rsp) jmp 0xe28a4 addq $0x10, 0x38(%rsp) jmp 0xe28a4 incq 0x40(%rsp) movq %r13, %rdi leaq 0x8(%rsp), %rsi callq 0x8d5c6 testb %al, %al je 0xe2747 leaq 0x50(%rsp), %rdi callq 0x5e672 addq $0xf8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xe2931 jmp 0xe2925 jmp 0xe29b2 movq %rax, %r14 movq 0xe0(%rsp), %rax testq %rax, %rax je 0xe2900 leaq 0xd0(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0xe29bf movq 0x70(%rsp), %rsi incq %rsi callq 0x1a8e0 jmp 0xe29bf movq %rax, %rdi callq 0x222a5 jmp 0xe2931 jmp 0xe2931 movq %rax, %r14 jmp 0xe29bf movq %rax, %r14 jmp 0xe2994 movq %rax, %r14 leaq 0xc0(%rsp), %rdi callq 0x5e672 jmp 0xe296f movq %rax, %r14 leaq 0x60(%rsp), %rdi callq 0xe533e leaq 0xc0(%rsp), %rdi callq 0x5e672 jmp 0xe29b5 movq %rax, %r14 movq 0x80(%rsp), %rdi leaq 0x90(%rsp), %rax cmpq %rax, %rdi je 0xe2994 movq 0x90(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0xe29b5 movq 0x70(%rsp), %rsi incq %rsi callq 0x1a8e0 jmp 0xe29b5 movq %rax, %r14 leaq 0x50(%rsp), %rdi callq 0x5e672 movq 0x48(%rsp), %rdi callq 0x7f296 movq %r14, %rdi callq 0x1afb0
_ZL35parse_prefixed_json_tool_call_arrayRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_m: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0F8h mov rbx, rcx mov r12, rdx mov r14, rsi mov rbp, rdi mov rsi, [rdx] mov rcx, [rdx+8] xor r13d, r13d mov rdi, r14 xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong) mov r15, rax lea rax, [rbp+10h] mov [rbp+0], rax mov [rbp+8], r13 mov [rbp+10h], r13b lea rax, [rbp+30h] mov [rbp+20h], rax mov [rbp+28h], r13 mov [rbp+30h], r13b xorps xmm0, xmm0 movups xmmword ptr [rbp+40h], xmm0 mov [rbp+50h], r13 lea rax, [rbp+68h] mov [rbp+58h], rax mov [rbp+60h], r13 mov [rbp+68h], r13b lea rcx, aYouAreAHelpful+12h; "assistant" mov r8d, 9 mov rdi, rbp xor esi, esi xor edx, edx mov [rsp+128h+var_E0], rbp call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) lea r13, [rbp+20h] cmp r15, 0FFFFFFFFFFFFFFFFh jz loc_E26B3 mov r12, [r12+8] lea rdi, [rsp+128h+var_C8] mov rsi, r14 xor edx, edx mov rcx, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) sub r15, rbx add r15, r12 lea rbx, [rsp+128h+var_C8] mov rdi, r13 mov rsi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [rbx]; void * lea rax, [rsp+128h+var_B8] cmp rdi, rax jz short loc_E25DB mov rsi, [rsp+128h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E25DB: lea rdi, [rsp+128h+var_C8] mov rsi, r14 mov rdx, r15 mov rcx, 0FFFFFFFFFFFFFFFFh call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) xorps xmm0, xmm0 lea rdx, [rsp+128h+var_58] movaps xmmword ptr [rdx+10h], xmm0 movaps xmmword ptr [rdx], xmm0 lea rbx, [rsp+128h+var_D8] lea rsi, [rsp+128h+var_C8] mov rdi, rbx mov ecx, 1 xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parse<std::string>(std::string &&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool) mov rax, [rsp+128h+var_48] test rax, rax jz short loc_E263D lea rdi, [rsp+128h+var_58] mov rsi, rdi mov edx, 3 call rax loc_E263D: mov rdi, [rsp+128h+var_C8]; void * lea rax, [rsp+128h+var_B8] cmp rdi, rax jz short loc_E2659 mov rsi, [rsp+128h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E2659: mov rax, 8000000000000000h mov [rsp+128h+var_100], rbx xorps xmm0, xmm0 movups [rsp+128h+var_F8], xmm0 mov [rsp+128h+var_E8], rax movzx ecx, [rsp+128h+var_D8] test ecx, ecx jz short loc_E26EE cmp ecx, 2 jz short loc_E26C3 cmp ecx, 1 jnz short loc_E26F9 mov rcx, [rsp+128h+var_D0] mov rdx, [rcx] mov qword ptr [rsp+128h+var_F8], rdx mov [rsp+128h+var_120], rbx mov qword ptr [rsp+128h+var_118+8], 0 mov [rsp+128h+var_108], rax mov rax, [rcx+8] mov qword ptr [rsp+128h+var_118], rax jmp short loc_E2715 loc_E26B3: mov rdi, r13 mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) jmp loc_E28C3 loc_E26C3: mov rcx, [rsp+128h+var_D0] mov rdx, [rcx] mov qword ptr [rsp+128h+var_F8+8], rdx mov [rsp+128h+var_120], rbx mov qword ptr [rsp+128h+var_118], 0 mov [rsp+128h+var_108], rax mov rax, [rcx+8] mov qword ptr [rsp+128h+var_118+8], rax jmp short loc_E2715 loc_E26EE: mov [rsp+128h+var_E8], 1 jmp short loc_E2702 loc_E26F9: mov [rsp+128h+var_E8], 0 loc_E2702: mov [rsp+128h+var_120], rbx movups [rsp+128h+var_118], xmm0 mov [rsp+128h+var_108], 1 loc_E2715: lea rdi, [rsp+128h+var_100] lea rsi, [rsp+128h+var_120] call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jnz loc_E28B9 mov rax, [rsp+128h+var_E0] lea r14, [rax+40h] lea r13, [rsp+128h+var_100] lea r12, [rsp+128h+var_C8] lea r15, [rsp+128h+var_68] loc_E2747: mov rdi, r13 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rbx, rax mov rdi, rax lea rsi, aKeywordArgumen+9; "arguments" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_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 rbp, rax mov rdi, rbx lea rsi, aNamespacedSetO+2Fh; "name" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_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 rdi, r12 mov rsi, rax call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE cmp byte ptr [rbp+0], 3 jnz short loc_E2796 lea rdi, [rsp+128h+var_A8] mov rsi, rbp call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE jmp short loc_E27B6 loc_E2796: lea rdi, [rsp+128h+var_A8] mov rsi, rbp mov edx, 0FFFFFFFFh mov ecx, 20h ; ' ' xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_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>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) loc_E27B6: mov rdi, rbx lea rsi, aToolCallId+0Ah; "id" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ test al, al jz short loc_E27E5 mov rdi, rbx lea rsi, aToolCallId+0Ah; "id" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_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 rdi, r15 mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp short loc_E27F4 loc_E27E5: mov rdi, r15 lea rsi, aErrorWhileHand_0+34h; "" call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ loc_E27F4: lea rdi, [rsp+128h+var_88] mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE mov rdi, r14 mov rsi, r12 call _ZNSt6vectorI16common_tool_callSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_tool_call>::emplace_back<common_tool_call>(common_tool_call &&) mov rdi, [rsp+128h+var_88]; void * lea rax, [rsp+128h+var_78] cmp rdi, rax jz short loc_E2834 mov rsi, [rsp+128h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E2834: mov rdi, [rsp+128h+var_A8]; void * lea rax, [rsp+128h+var_98] cmp rdi, rax jz short loc_E2859 mov rsi, [rsp+128h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E2859: mov rdi, [rsp+128h+var_C8]; void * lea rax, [rsp+128h+var_B8] cmp rdi, rax jz short loc_E2875 mov rsi, [rsp+128h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E2875: 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() mov rax, [rsp+128h+var_100] movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_E2897 cmp eax, 1 jnz short loc_E289F add qword ptr [rsp+128h+var_F8], 30h ; '0' jmp short loc_E28A4 loc_E2897: add qword ptr [rsp+128h+var_F8+8], 10h jmp short loc_E28A4 loc_E289F: inc [rsp+128h+var_E8] loc_E28A4: mov rdi, r13 lea rsi, [rsp+128h+var_120] call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jz loc_E2747 loc_E28B9: lea rdi, [rsp+128h+var_D8] 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_E28C3: add rsp, 0F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_E2931 jmp short loc_E2925 jmp loc_E29B2 mov r14, rax mov rax, [rsp+128h+var_48] test rax, rax jz short loc_E2900 lea rdi, [rsp+128h+var_58] mov rsi, rdi mov edx, 3 call rax loc_E2900: mov rdi, [rsp+128h+var_C8]; void * lea rax, [rsp+128h+var_B8] cmp rdi, rax jz loc_E29BF mov rsi, [rsp+128h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_E29BF loc_E2925: mov rdi, rax call __clang_call_terminate jmp short loc_E2931 jmp short $+2 loc_E2931: mov r14, rax jmp loc_E29BF mov r14, rax jmp short loc_E2994 mov r14, rax lea rdi, [rsp+128h+var_68] 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_E296F mov r14, rax lea rdi, [rsp+128h+var_C8]; this call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call() lea rdi, [rsp+128h+var_68] 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_E29B5 mov r14, rax loc_E296F: mov rdi, [rsp+128h+var_A8]; void * lea rax, [rsp+128h+var_98] cmp rdi, rax jz short loc_E2994 mov rsi, [rsp+128h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E2994: mov rdi, [rsp+128h+var_C8]; void * lea rax, [rsp+128h+var_B8] cmp rdi, rax jz short loc_E29B5 mov rsi, [rsp+128h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_E29B5 loc_E29B2: mov r14, rax loc_E29B5: lea rdi, [rsp+128h+var_D8] 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_E29BF: mov rdi, [rsp+128h+var_E0]; this call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg() mov rdi, r14 call __Unwind_Resume
long long parse_prefixed_json_tool_call_array(long long a1, long long a2, _QWORD *a3, long long a4) { long long v6; // r15 long long v7; // r12 long long v8; // r15 char *v10; // r14 long long v11; // rbx _BYTE *v12; // rbp long long v13; // rax unsigned __int8 *v14; // rax int v15; // eax _BYTE *v16; // [rsp+8h] [rbp-120h] BYREF __int128 v17; // [rsp+10h] [rbp-118h] long long v18; // [rsp+20h] [rbp-108h] unsigned __int8 *v19; // [rsp+28h] [rbp-100h] BYREF __int128 v20; // [rsp+30h] [rbp-F8h] long long v21; // [rsp+40h] [rbp-E8h] common_chat_msg *v22; // [rsp+48h] [rbp-E0h] _BYTE v23[8]; // [rsp+50h] [rbp-D8h] BYREF _QWORD *v24; // [rsp+58h] [rbp-D0h] void *v25[2]; // [rsp+60h] [rbp-C8h] BYREF _QWORD v26[2]; // [rsp+70h] [rbp-B8h] BYREF void *v27[2]; // [rsp+80h] [rbp-A8h] BYREF long long v28; // [rsp+90h] [rbp-98h] BYREF void *v29; // [rsp+A0h] [rbp-88h] BYREF long long v30; // [rsp+B0h] [rbp-78h] BYREF unsigned __int8 v31[16]; // [rsp+C0h] [rbp-68h] BYREF __int128 v32; // [rsp+D0h] [rbp-58h] BYREF __int128 v33; // [rsp+E0h] [rbp-48h] v6 = std::string::find(a2, *a3, 0LL, a3[1]); *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; *(_QWORD *)(a1 + 32) = a1 + 48; *(_QWORD *)(a1 + 40) = 0LL; *(_BYTE *)(a1 + 48) = 0; *(_OWORD *)(a1 + 64) = 0LL; *(_QWORD *)(a1 + 80) = 0LL; *(_QWORD *)(a1 + 88) = a1 + 104; *(_QWORD *)(a1 + 96) = 0LL; *(_BYTE *)(a1 + 104) = 0; v22 = (common_chat_msg *)a1; std::string::_M_replace(a1, 0LL, 0LL, "assistant", 9LL); if ( v6 == -1 ) return std::string::_M_assign(a1 + 32, a2); v7 = a3[1]; std::string::substr(v25, a2, 0LL, v6); v8 = v7 + v6 - a4; std::string::operator=(a1 + 32, v25); if ( v25[0] != v26 ) operator delete(v25[0], v26[0] + 1LL); std::string::substr(v25, a2, v8, -1LL); v33 = 0LL; v32 = 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>::parse<std::string>( (long long)v23, (long long *)v25, (long long)&v32, 1u, 0); if ( (_QWORD)v33 ) ((void ( *)(__int128 *, __int128 *, long long))v33)(&v32, &v32, 3LL); if ( v25[0] != v26 ) operator delete(v25[0], v26[0] + 1LL); v19 = v23; v20 = 0LL; v21 = 0x8000000000000000LL; if ( !v23[0] ) { v21 = 1LL; LABEL_16: v16 = v23; v17 = 0LL; v18 = 1LL; goto LABEL_17; } if ( v23[0] == 2 ) { *((_QWORD *)&v20 + 1) = *v24; v16 = v23; *(_QWORD *)&v17 = 0LL; v18 = 0x8000000000000000LL; *((_QWORD *)&v17 + 1) = v24[1]; goto LABEL_17; } if ( v23[0] != 1 ) { v21 = 0LL; goto LABEL_16; } *(_QWORD *)&v20 = *v24; v16 = v23; *((_QWORD *)&v17 + 1) = 0LL; v18 = 0x8000000000000000LL; *(_QWORD *)&v17 = v24[1]; LABEL_17: if ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v19, &v16) ) { v10 = (char *)v22 + 64; do { v11 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v19); v12 = (_BYTE *)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>( v11, "arguments"); v13 = 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>( v11, "name"); ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( (long long)v25, v13); if ( *v12 == 3 ) ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( (long long)v27, (long long)v12); else nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( (long long)v27, (long long)v12, -1, 32, 0, 0); if ( ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_( v11, (long long)"id") ) { v14 = (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>::operator[]<char const>( v11, "id"); 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( v31, v14); } else { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_((char *)v31); } ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( (long long)&v29, (long long)v31); std::vector<common_tool_call>::emplace_back<common_tool_call>(v10, v25); if ( v29 != &v30 ) operator delete(v29, v30 + 1); if ( v27[0] != &v28 ) operator delete(v27[0], v28 + 1); if ( v25[0] != v26 ) operator delete(v25[0], v26[0] + 1LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v31); v15 = *v19; if ( v15 == 2 ) { *((_QWORD *)&v20 + 1) += 16LL; } else if ( v15 == 1 ) { *(_QWORD *)&v20 = v20 + 48; } else { ++v21; } } while ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v19, &v16) ); } 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>::data::~data(v23); }
parse_prefixed_json_tool_call_array: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf8 MOV RBX,RCX MOV R12,RDX MOV R14,RSI MOV RBP,RDI MOV RSI,qword ptr [RDX] MOV RCX,qword ptr [RDX + 0x8] XOR R13D,R13D MOV RDI,R14 XOR EDX,EDX CALL 0x0011af50 MOV R15,RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP],RAX MOV qword ptr [RBP + 0x8],R13 MOV byte ptr [RBP + 0x10],R13B LEA RAX,[RBP + 0x30] MOV qword ptr [RBP + 0x20],RAX MOV qword ptr [RBP + 0x28],R13 MOV byte ptr [RBP + 0x30],R13B XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBP + 0x40],XMM0 MOV qword ptr [RBP + 0x50],R13 LEA RAX,[RBP + 0x68] MOV qword ptr [RBP + 0x58],RAX MOV qword ptr [RBP + 0x60],R13 MOV byte ptr [RBP + 0x68],R13B LAB_001e2568: LEA RCX,[0x1ef253] MOV R8D,0x9 MOV RDI,RBP XOR ESI,ESI XOR EDX,EDX MOV qword ptr [RSP + 0x48],RBP CALL 0x0011ad70 LEA R13,[RBP + 0x20] CMP R15,-0x1 JZ 0x001e26b3 MOV R12,qword ptr [R12 + 0x8] LAB_001e2599: LEA RDI,[RSP + 0x60] MOV RSI,R14 XOR EDX,EDX MOV RCX,R15 CALL 0x0011a930 SUB R15,RBX ADD R15,R12 LEA RBX,[RSP + 0x60] MOV RDI,R13 MOV RSI,RBX CALL 0x0011aab0 MOV RDI,qword ptr [RBX] LEA RAX,[RSP + 0x70] CMP RDI,RAX JZ 0x001e25db MOV RSI,qword ptr [RSP + 0x70] INC RSI CALL 0x0011a8e0 LAB_001e25db: LEA RDI,[RSP + 0x60] MOV RSI,R14 MOV RDX,R15 MOV RCX,-0x1 CALL 0x0011a930 XORPS XMM0,XMM0 LEA RDX,[RSP + 0xd0] MOVAPS xmmword ptr [RDX + 0x10],XMM0 MOVAPS xmmword ptr [RDX],XMM0 LAB_001e2604: LEA RBX,[RSP + 0x50] LEA RSI,[RSP + 0x60] MOV RDI,RBX MOV ECX,0x1 XOR R8D,R8D CALL 0x001a55c0 MOV RAX,qword ptr [RSP + 0xe0] TEST RAX,RAX JZ 0x001e263d LAB_001e262b: LEA RDI,[RSP + 0xd0] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001e263d: MOV RDI,qword ptr [RSP + 0x60] LEA RAX,[RSP + 0x70] CMP RDI,RAX JZ 0x001e2659 MOV RSI,qword ptr [RSP + 0x70] INC RSI CALL 0x0011a8e0 LAB_001e2659: MOV RAX,-0x8000000000000000 MOV qword ptr [RSP + 0x28],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x30],XMM0 MOV qword ptr [RSP + 0x40],RAX MOVZX ECX,byte ptr [RSP + 0x50] TEST ECX,ECX JZ 0x001e26ee CMP ECX,0x2 JZ 0x001e26c3 CMP ECX,0x1 JNZ 0x001e26f9 MOV RCX,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x8],RBX MOV qword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RCX + 0x8] MOV qword ptr [RSP + 0x10],RAX JMP 0x001e2715 LAB_001e26b3: MOV RDI,R13 MOV RSI,R14 CALL 0x0011a4b0 JMP 0x001e28c3 LAB_001e26c3: MOV RCX,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x38],RDX MOV qword ptr [RSP + 0x8],RBX MOV qword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RCX + 0x8] MOV qword ptr [RSP + 0x18],RAX JMP 0x001e2715 LAB_001e26ee: MOV qword ptr [RSP + 0x40],0x1 JMP 0x001e2702 LAB_001e26f9: MOV qword ptr [RSP + 0x40],0x0 LAB_001e2702: MOV qword ptr [RSP + 0x8],RBX MOVUPS xmmword ptr [RSP + 0x10],XMM0 MOV qword ptr [RSP + 0x20],0x1 LAB_001e2715: LEA RDI,[RSP + 0x28] LEA RSI,[RSP + 0x8] CALL 0x0018d5c6 TEST AL,AL JNZ 0x001e28b9 MOV RAX,qword ptr [RSP + 0x48] LEA R14,[RAX + 0x40] LEA R13,[RSP + 0x28] LEA R12,[RSP + 0x60] LEA R15,[RSP + 0xc0] LAB_001e2747: MOV RDI,R13 CALL 0x0018d25a MOV RBX,RAX MOV RDI,RAX LEA RSI,[0x1f0608] CALL 0x001a5eae MOV RBP,RAX MOV RDI,RBX LEA RSI,[0x1f0ba4] CALL 0x001a5eae MOV RDI,R12 MOV RSI,RAX CALL 0x00187e52 CMP byte ptr [RBP],0x3 JNZ 0x001e2796 LAB_001e2784: LEA RDI,[RSP + 0x80] MOV RSI,RBP CALL 0x00187e52 JMP 0x001e27b6 LAB_001e2796: LEA RDI,[RSP + 0x80] MOV RSI,RBP MOV EDX,0xffffffff MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x00180148 LAB_001e27b6: MOV RDI,RBX LEA RSI,[0x1ef6b2] CALL 0x001a5e4c TEST AL,AL JZ 0x001e27e5 MOV RDI,RBX LEA RSI,[0x1ef6b2] CALL 0x001a5eae MOV RDI,R15 MOV RSI,RAX CALL 0x0015e1a6 JMP 0x001e27f4 LAB_001e27e5: MOV RDI,R15 LEA RSI,[0x1eb99c] CALL 0x001b8c48 LAB_001e27f4: LEA RDI,[RSP + 0xa0] MOV RSI,R15 CALL 0x00187e52 LAB_001e2804: MOV RDI,R14 MOV RSI,R12 CALL 0x001e541e MOV RDI,qword ptr [RSP + 0xa0] LEA RAX,[RSP + 0xb0] CMP RDI,RAX JZ 0x001e2834 MOV RSI,qword ptr [RSP + 0xb0] INC RSI CALL 0x0011a8e0 LAB_001e2834: MOV RDI,qword ptr [RSP + 0x80] LEA RAX,[RSP + 0x90] CMP RDI,RAX JZ 0x001e2859 MOV RSI,qword ptr [RSP + 0x90] INC RSI CALL 0x0011a8e0 LAB_001e2859: MOV RDI,qword ptr [RSP + 0x60] LEA RAX,[RSP + 0x70] CMP RDI,RAX JZ 0x001e2875 MOV RSI,qword ptr [RSP + 0x70] INC RSI CALL 0x0011a8e0 LAB_001e2875: MOV RDI,R15 CALL 0x0015e672 MOV RAX,qword ptr [RSP + 0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x001e2897 CMP EAX,0x1 JNZ 0x001e289f ADD qword ptr [RSP + 0x30],0x30 JMP 0x001e28a4 LAB_001e2897: ADD qword ptr [RSP + 0x38],0x10 JMP 0x001e28a4 LAB_001e289f: INC qword ptr [RSP + 0x40] LAB_001e28a4: MOV RDI,R13 LEA RSI,[RSP + 0x8] CALL 0x0018d5c6 TEST AL,AL JZ 0x001e2747 LAB_001e28b9: LEA RDI,[RSP + 0x50] CALL 0x0015e672 LAB_001e28c3: ADD RSP,0xf8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* parse_prefixed_json_tool_call_array(std::__cxx11::string const&, std::__cxx11::string const&, unsigned long) */ void parse_prefixed_json_tool_call_array(string *param_1,string *param_2,ulong param_3) { vector<common_tool_call,std::allocator<common_tool_call>> *this; char cVar1; long lVar2; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this_00; basic_json *pbVar3; basic_json *pbVar4; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *local_120; long local_118; long lStack_110; int8 local_108; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *local_100; long local_f8; long lStack_f0; long local_e8; string *local_e0; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_d8 [8]; long *local_d0; long *local_c8 [2]; long local_b8 [2]; long *local_a8 [2]; long local_98 [2]; long *local_88 [2]; long local_78 [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> local_68 [16]; int8 local_58; int8 uStack_50; code *local_48; int8 uStack_40; lVar2 = std::__cxx11::string::find((char *)param_2,*(ulong *)param_3,0); *(string **)param_1 = param_1 + 0x10; *(int8 *)(param_1 + 8) = 0; param_1[0x10] = (string)0x0; *(string **)(param_1 + 0x20) = param_1 + 0x30; *(int8 *)(param_1 + 0x28) = 0; param_1[0x30] = (string)0x0; *(int8 *)(param_1 + 0x40) = 0; *(int8 *)(param_1 + 0x48) = 0; *(int8 *)(param_1 + 0x50) = 0; *(string **)(param_1 + 0x58) = param_1 + 0x68; *(int8 *)(param_1 + 0x60) = 0; param_1[0x68] = (string)0x0; local_e0 = param_1; /* try { // try from 001e2568 to 001e2585 has its CatchHandler @ 001e2931 */ std::__cxx11::string::_M_replace((ulong)param_1,0,(char *)0x0,0x1ef253); if (lVar2 == -1) { /* try { // try from 001e26b3 to 001e26bd has its CatchHandler @ 001e28d5 */ std::__cxx11::string::_M_assign(param_1 + 0x20); return; } /* try { // try from 001e2599 to 001e25aa has its CatchHandler @ 001e292f */ std::__cxx11::string::substr((ulong)local_c8,(ulong)param_2); std::__cxx11::string::operator=(param_1 + 0x20,(string *)local_c8); if (local_c8[0] != local_b8) { operator_delete(local_c8[0],local_b8[0] + 1); } /* try { // try from 001e25db to 001e25f1 has its CatchHandler @ 001e292d */ std::__cxx11::string::substr((ulong)local_c8,(ulong)param_2); local_48 = (code *)0x0; uStack_40 = 0; local_58 = 0; uStack_50 = 0; /* try { // try from 001e2604 to 001e261d has its CatchHandler @ 001e28de */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::parse<std::__cxx11::string>(local_d8,local_c8,&local_58,1,0); if (local_48 != (code *)0x0) { /* try { // try from 001e262b to 001e263c has its CatchHandler @ 001e28d7 */ (*local_48)(&local_58,&local_58,3); } if (local_c8[0] != local_b8) { operator_delete(local_c8[0],local_b8[0] + 1); } local_f8 = 0; lStack_f0 = 0; local_e8 = -0x8000000000000000; if (local_d8[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> )0x0) { local_e8 = 1; } else { if (local_d8[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> )0x2) { lStack_f0 = *local_d0; local_118 = 0; local_108 = 0x8000000000000000; lStack_110 = local_d0[1]; goto LAB_001e2715; } if (local_d8[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> )0x1) { local_f8 = *local_d0; lStack_110 = 0; local_108 = 0x8000000000000000; local_118 = local_d0[1]; goto LAB_001e2715; } local_e8 = 0; } local_118 = 0; lStack_110 = 0; local_108 = 1; LAB_001e2715: /* try { // try from 001e2715 to 001e2723 has its CatchHandler @ 001e28d9 */ local_120 = local_d8; local_100 = local_d8; cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ (&local_100,&local_120); if (cVar1 == '\0') { this = (vector<common_tool_call,std::allocator<common_tool_call>> *)(local_e0 + 0x40); do { /* try { // try from 001e2747 to 001e277d has its CatchHandler @ 001e29b2 */ this_00 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_100); pbVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>(this_00,"arguments"); 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>(this_00,"name"); _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE ((common_tool_call *)local_c8,pbVar4); if (*pbVar3 == (basic_json)0x3) { /* try { // try from 001e2784 to 001e27b5 has its CatchHandler @ 001e2939 */ _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (local_a8,pbVar3); } else { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::dump(local_a8,pbVar3,0xffffffff,0x20,0,0); } /* try { // try from 001e27b6 to 001e27f3 has its CatchHandler @ 001e296c */ cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ (this_00,"id"); if (cVar1 == '\0') { _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ (local_68,""); } else { pbVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>(this_00,"id"); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_68,pbVar3); } /* try { // try from 001e27f4 to 001e2803 has its CatchHandler @ 001e293e */ _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (local_88,local_68); /* try { // try from 001e2804 to 001e280e has its CatchHandler @ 001e2950 */ std::vector<common_tool_call,std::allocator<common_tool_call>>::emplace_back<common_tool_call> (this,(common_tool_call *)local_c8); if (local_88[0] != local_78) { operator_delete(local_88[0],local_78[0] + 1); } if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (local_c8[0] != local_b8) { operator_delete(local_c8[0],local_b8[0] + 1); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_68); if (*local_100 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { lStack_f0 = lStack_f0 + 0x10; } else if (*local_100 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { local_f8 = local_f8 + 0x30; } else { local_e8 = local_e8 + 1; } /* try { // try from 001e28a4 to 001e28b0 has its CatchHandler @ 001e29b2 */ cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_100,&local_120); } while (cVar1 == '\0'); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_d8); return; }
3,889
std::system_error fmt::v11::system_error<>(int, fmt::v11::fstring<>::t)
zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format.h
auto system_error(int error_code, format_string<T...> fmt, T&&... args) -> std::system_error { return vsystem_error(error_code, fmt.str, vargs<T...>{{args...}}); }
O0
c
std::system_error fmt::v11::system_error<>(int, fmt::v11::fstring<>::t): subq $0x98, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x78(%rsp) movq %rdx, 0x68(%rsp) movq %rcx, 0x70(%rsp) movl %esi, 0x64(%rsp) movl 0x64(%rsp), %eax movl %eax, 0x1c(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x70(%rsp), %rax movq %rax, 0x58(%rsp) leaq 0x30(%rsp), %rax movq %rax, %rcx addq $0x10, %rcx movq %rcx, 0x20(%rsp) movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movq %rax, (%rsp) movq %rax, 0x80(%rsp) movq 0x80(%rsp), %rdi callq 0xac1e0 movq (%rsp), %rax movq 0x20(%rsp), %rcx addq $0x10, %rax cmpq %rcx, %rax movq %rax, 0x28(%rsp) jne 0xc55d9 movl 0x1c(%rsp), %esi movq 0x8(%rsp), %rdi leaq 0x40(%rsp), %rax movq %rax, 0x90(%rsp) leaq 0x30(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x90(%rsp), %rax movq $0x0, (%rax) movq 0x88(%rsp), %rcx movq %rcx, 0x8(%rax) movq 0x50(%rsp), %rdx movq 0x58(%rsp), %rcx movq 0x40(%rsp), %r8 movq 0x48(%rsp), %r9 callq 0xa5690 movq 0x10(%rsp), %rax addq $0x98, %rsp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN3fmt3v1112system_errorIJEEESt12system_erroriNS0_7fstringIJDpT_EE1tEDpOS4_: sub rsp, 98h mov [rsp+98h+var_90], rdi mov rax, rdi mov [rsp+98h+var_88], rax mov [rsp+98h+var_20], rdi mov [rsp+98h+var_30], rdx mov [rsp+98h+var_28], rcx mov [rsp+98h+var_34], esi mov eax, [rsp+98h+var_34] mov [rsp+98h+var_7C], eax mov rax, [rsp+98h+var_30] mov [rsp+98h+var_48], rax mov rax, [rsp+98h+var_28] mov [rsp+98h+var_40], rax lea rax, [rsp+98h+var_68] mov rcx, rax add rcx, 10h mov [rsp+98h+var_78], rcx mov [rsp+98h+var_70], rax loc_C55D9: mov rax, [rsp+98h+var_70] mov [rsp+98h+var_98], rax mov [rsp+98h+var_18], rax mov rdi, [rsp+98h+var_18]; this call _ZN3fmt3v119monostateC2Ev; fmt::v11::monostate::monostate(void) mov rax, [rsp+98h+var_98] mov rcx, [rsp+98h+var_78] add rax, 10h cmp rax, rcx mov [rsp+98h+var_70], rax jnz short loc_C55D9 mov esi, [rsp+98h+var_7C] mov rdi, [rsp+98h+var_90] lea rax, [rsp+98h+var_58] mov [rsp+98h+var_8], rax lea rax, [rsp+98h+var_68] mov [rsp+98h+var_10], rax mov rax, [rsp+98h+var_8] mov qword ptr [rax], 0 mov rcx, [rsp+98h+var_10] mov [rax+8], rcx mov rdx, [rsp+98h+var_48] mov rcx, [rsp+98h+var_40] mov r8, [rsp+98h+var_58] mov r9, [rsp+98h+var_50] call _ZN3fmt3v1113vsystem_errorEiNS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_7contextEEE; fmt::v11::vsystem_error(int,fmt::v11::basic_string_view<char>,fmt::v11::basic_format_args<fmt::v11::context>) mov rax, [rsp+98h+var_88] add rsp, 98h retn
std::_V2 * fmt::v11::system_error<>(std::_V2 *a1, unsigned int a2, unsigned long long a3, unsigned long long a4) { fmt::v11::monostate *v5; // [rsp+28h] [rbp-70h] _BYTE v6[16]; // [rsp+30h] [rbp-68h] BYREF _QWORD v7[2]; // [rsp+40h] [rbp-58h] BYREF unsigned long long v8; // [rsp+50h] [rbp-48h] unsigned long long v9; // [rsp+58h] [rbp-40h] unsigned int v10; // [rsp+64h] [rbp-34h] unsigned long long v11; // [rsp+68h] [rbp-30h] unsigned long long v12; // [rsp+70h] [rbp-28h] std::_V2 *v13; // [rsp+78h] [rbp-20h] fmt::v11::monostate *v14; // [rsp+80h] [rbp-18h] _BYTE *v15; // [rsp+88h] [rbp-10h] _QWORD *v16; // [rsp+90h] [rbp-8h] v13 = a1; v11 = a3; v12 = a4; v10 = a2; v8 = a3; v9 = a4; v5 = (fmt::v11::monostate *)v6; do { v14 = v5; fmt::v11::monostate::monostate(v5); v5 = (fmt::v11::monostate *)((char *)v5 + 16); } while ( v5 != (fmt::v11::monostate *)v7 ); v16 = v7; v15 = v6; v7[0] = 0LL; v7[1] = v6; fmt::v11::vsystem_error(a1, a2, v8, v9, 0LL, (long long)v6); return a1; }
system_error<>: SUB RSP,0x98 MOV qword ptr [RSP + 0x8],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x78],RDI MOV qword ptr [RSP + 0x68],RDX MOV qword ptr [RSP + 0x70],RCX MOV dword ptr [RSP + 0x64],ESI MOV EAX,dword ptr [RSP + 0x64] MOV dword ptr [RSP + 0x1c],EAX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x58],RAX LEA RAX,[RSP + 0x30] MOV RCX,RAX ADD RCX,0x10 MOV qword ptr [RSP + 0x20],RCX MOV qword ptr [RSP + 0x28],RAX LAB_001c55d9: MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x80],RAX MOV RDI,qword ptr [RSP + 0x80] CALL 0x001ac1e0 MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x20] ADD RAX,0x10 CMP RAX,RCX MOV qword ptr [RSP + 0x28],RAX JNZ 0x001c55d9 MOV ESI,dword ptr [RSP + 0x1c] MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x40] MOV qword ptr [RSP + 0x90],RAX LEA RAX,[RSP + 0x30] MOV qword ptr [RSP + 0x88],RAX MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RAX],0x0 MOV RCX,qword ptr [RSP + 0x88] MOV qword ptr [RAX + 0x8],RCX MOV RDX,qword ptr [RSP + 0x50] MOV RCX,qword ptr [RSP + 0x58] MOV R8,qword ptr [RSP + 0x40] MOV R9,qword ptr [RSP + 0x48] CALL 0x001a5690 MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x98 RET
/* std::system_error fmt::v11::system_error<>(int, fmt::v11::fstring<>::t) */ int8 fmt::v11::system_error<> (int8 param_1,int4 param_2,int8 param_3,int8 param_4) { monostate *local_70; monostate local_68 [16]; monostate local_58 [16]; int8 local_48; int8 local_40; int4 local_34; int8 local_30; int8 local_28; int8 local_20; monostate *local_18; monostate *local_10; monostate *local_8; local_70 = local_68; local_48 = param_3; local_40 = param_4; local_34 = param_2; local_30 = param_3; local_28 = param_4; local_20 = param_1; do { local_18 = local_70; monostate::monostate(local_70); local_70 = local_70 + 0x10; } while (local_70 != local_58); local_8 = local_58; local_10 = local_68; vsystem_error(param_1,param_2,local_48,local_40,0,local_10); return param_1; }
3,890
my_mb_wc_sjis
eloqsql/strings/ctype-sjis.c
static int my_mb_wc_sjis(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e){ int hi; if (s >= e) return MY_CS_TOOSMALL; if ((hi= s[0]) < 0x80) /* ASCII: [00..7F] -> [U+0000..U+007F] */ { *pwc= hi; return 1; } /* JIS-X-0201 Half width Katakana: [A1..DF] -> [U+FF61..U+FF9F] */ if (hi >= 0xA1 && hi <= 0xDF) { *pwc= sjis_to_unicode[hi]; return 1; } if (s + 2 > e) return MY_CS_TOOSMALL2; /* JIS-X-0208 [81..9F,E0..FC][40..7E,80..FC] */ if (!(pwc[0]= sjis_to_unicode[(hi << 8) + s[1]])) return (issjishead(hi) && issjistail(s[1])) ? -2 : MY_CS_ILSEQ; return 2; }
O3
c
my_mb_wc_sjis: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x41453 movzbl (%rdx), %edi testb %dil, %dil js 0x41439 movq %rdi, (%rsi) jmp 0x4144e leal 0x5f(%rdi), %eax cmpb $0x3e, %al ja 0x41455 leaq 0x16bfc9(%rip), %rax # 0x1ad410 movzwl (%rax,%rdi,2), %eax movq %rax, (%rsi) movl $0x1, %eax popq %rbp retq leaq 0x2(%rdx), %r8 movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %r8 ja 0x41453 movzbl 0x1(%rdx), %eax movl %edi, %ecx shll $0x9, %ecx leal (%rcx,%rax,2), %eax leaq 0x16bf9a(%rip), %rcx # 0x1ad410 movzwl (%rax,%rcx), %ecx movq %rcx, (%rsi) movl $0x2, %eax testq %rcx, %rcx jne 0x41453 cmpb $-0x80, %dil setne %al cmpb $-0x60, %dil setb %cl andb %al, %cl addb $0x20, %dil cmpb $0x1d, %dil setb %sil orb %cl, %sil xorl %eax, %eax cmpb $0x1, %sil jne 0x41453 movb 0x1(%rdx), %cl leal -0x40(%rcx), %edx movl $0xfffffffe, %eax # imm = 0xFFFFFFFE cmpb $0x3f, %dl jb 0x41453 movl $0x0, %eax testb %cl, %cl jns 0x41453 xorl %eax, %eax cmpb $-0x3, %cl setae %al leal -0x2(,%rax,2), %eax jmp 0x41453
my_mb_wc_sjis: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short loc_41453 movzx edi, byte ptr [rdx] test dil, dil js short loc_41439 mov [rsi], rdi jmp short loc_4144E loc_41439: lea eax, [rdi+5Fh] cmp al, 3Eh ; '>' ja short loc_41455 lea rax, sjis_to_unicode movzx eax, word ptr [rax+rdi*2] mov [rsi], rax loc_4144E: mov eax, 1 loc_41453: pop rbp retn loc_41455: lea r8, [rdx+2] mov eax, 0FFFFFF9Ah cmp r8, rcx ja short loc_41453 movzx eax, byte ptr [rdx+1] mov ecx, edi shl ecx, 9 lea eax, [rcx+rax*2] lea rcx, sjis_to_unicode movzx ecx, word ptr [rax+rcx] mov [rsi], rcx mov eax, 2 test rcx, rcx jnz short loc_41453 cmp dil, 80h setnz al cmp dil, 0A0h setb cl and cl, al add dil, 20h ; ' ' cmp dil, 1Dh setb sil or sil, cl xor eax, eax cmp sil, 1 jnz short loc_41453 mov cl, [rdx+1] lea edx, [rcx-40h] mov eax, 0FFFFFFFEh cmp dl, 3Fh ; '?' jb short loc_41453 mov eax, 0 test cl, cl jns short loc_41453 xor eax, eax cmp cl, 0FDh setnb al lea eax, ds:0FFFFFFFFFFFFFFFEh[rax*2] jmp loc_41453
long long my_mb_wc_sjis(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4) { long long result; // rax long long v5; // rdi long long v6; // rcx char v7; // cl result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = *a3; if ( (v5 & 0x80u) == 0LL ) { *a2 = v5; return 1LL; } if ( (unsigned __int8)(v5 + 95) <= 0x3Eu ) { *a2 = sjis_to_unicode[v5]; return 1LL; } result = 4294967194LL; if ( (unsigned long long)(a3 + 2) <= a4 ) { v6 = sjis_to_unicode[256 * (_DWORD)v5 + a3[1]]; *a2 = v6; result = 2LL; if ( !v6 ) { result = 0LL; if ( (_BYTE)v5 != 0x80 && (unsigned __int8)v5 < 0xA0u || (unsigned __int8)(v5 + 32) < 0x1Du ) { v7 = a3[1]; result = 4294967294LL; if ( (unsigned __int8)(v7 - 64) >= 0x3Fu ) { result = 0LL; if ( v7 < 0 ) return 2 * (unsigned int)((unsigned __int8)v7 >= 0xFDu) - 2; } } } } } return result; }
my_mb_wc_sjis: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x00141453 MOVZX EDI,byte ptr [RDX] TEST DIL,DIL JS 0x00141439 MOV qword ptr [RSI],RDI JMP 0x0014144e LAB_00141439: LEA EAX,[RDI + 0x5f] CMP AL,0x3e JA 0x00141455 LEA RAX,[0x2ad410] MOVZX EAX,word ptr [RAX + RDI*0x2] MOV qword ptr [RSI],RAX LAB_0014144e: MOV EAX,0x1 LAB_00141453: POP RBP RET LAB_00141455: LEA R8,[RDX + 0x2] MOV EAX,0xffffff9a CMP R8,RCX JA 0x00141453 MOVZX EAX,byte ptr [RDX + 0x1] MOV ECX,EDI SHL ECX,0x9 LEA EAX,[RCX + RAX*0x2] LEA RCX,[0x2ad410] MOVZX ECX,word ptr [RAX + RCX*0x1] MOV qword ptr [RSI],RCX MOV EAX,0x2 TEST RCX,RCX JNZ 0x00141453 CMP DIL,0x80 SETNZ AL CMP DIL,0xa0 SETC CL AND CL,AL ADD DIL,0x20 CMP DIL,0x1d SETC SIL OR SIL,CL XOR EAX,EAX CMP SIL,0x1 JNZ 0x00141453 MOV CL,byte ptr [RDX + 0x1] LEA EDX,[RCX + -0x40] MOV EAX,0xfffffffe CMP DL,0x3f JC 0x00141453 MOV EAX,0x0 TEST CL,CL JNS 0x00141453 XOR EAX,EAX CMP CL,0xfd SETNC AL LEA EAX,[-0x2 + RAX*0x2] JMP 0x00141453
int my_mb_wc_sjis(int8 param_1,ulong *param_2,byte *param_3,byte *param_4) { byte bVar1; ushort uVar2; int iVar3; iVar3 = -0x65; if (param_3 < param_4) { bVar1 = *param_3; if ((char)bVar1 < '\0') { if (0x3e < (byte)(bVar1 + 0x5f)) { if (param_4 < param_3 + 2) { return -0x66; } uVar2 = *(ushort *)(sjis_to_unicode + ((uint)bVar1 * 0x200 + (uint)param_3[1] * 2)); *param_2 = (ulong)uVar2; if ((ulong)uVar2 != 0) { return 2; } if (0x1c < (byte)(bVar1 + 0x20) && (0x9f < bVar1 || bVar1 == 0x80)) { return 0; } bVar1 = param_3[1]; if ((byte)(bVar1 - 0x40) < 0x3f) { return -2; } if (-1 < (char)bVar1) { return 0; } return (uint)(0xfc < bVar1) * 2 + -2; } *param_2 = (ulong)*(ushort *)(sjis_to_unicode + (ulong)bVar1 * 2); } else { *param_2 = (ulong)bVar1; } iVar3 = 1; } return iVar3; }
3,891
mi_keyseg_read
eloqsql/storage/myisam/mi_open.c
uchar *mi_keyseg_read(uchar *ptr, HA_KEYSEG *keyseg) { keyseg->type = *ptr++; keyseg->language = *ptr++; keyseg->null_bit = *ptr++; keyseg->bit_start = *ptr++; keyseg->language += ((uint16) (*ptr++)) << 8; keyseg->bit_length = *ptr++; keyseg->flag = mi_uint2korr(ptr); ptr +=2; keyseg->length = mi_uint2korr(ptr); ptr +=2; keyseg->start = mi_uint4korr(ptr); ptr +=4; keyseg->null_pos = mi_uint4korr(ptr); ptr +=4; keyseg->charset=0; /* Will be filled in later */ if (keyseg->null_bit) /* We adjust bit_pos if null_bit is last in the byte */ keyseg->bit_pos= (uint16)(keyseg->null_pos + (keyseg->null_bit == (1 << 7))); else { keyseg->bit_pos= (uint16)keyseg->null_pos; keyseg->null_pos= 0; } return ptr; }
O0
c
mi_keyseg_read: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb (%rax), %cl movq -0x10(%rbp), %rax movb %cl, 0x18(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movzbl (%rax), %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x16(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb (%rax), %cl movq -0x10(%rbp), %rax movb %cl, 0x19(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb (%rax), %cl movq -0x10(%rbp), %rax movb %cl, 0x1a(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movzbl (%rax), %eax movzwl %ax, %edx shll $0x8, %edx movq -0x10(%rbp), %rax movzwl 0x16(%rax), %ecx addl %edx, %ecx movw %cx, 0x16(%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb (%rax), %cl movq -0x10(%rbp), %rax movb %cl, 0x1b(%rax) movq -0x8(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x8(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x12(%rax) movq -0x8(%rbp), %rax addq $0x2, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x8(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x14(%rax) movq -0x8(%rbp), %rax addq $0x2, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax movzbl 0x3(%rax), %ecx movq -0x8(%rbp), %rax movzbl 0x2(%rax), %eax shll $0x8, %eax orl %eax, %ecx movq -0x8(%rbp), %rax movzbl 0x1(%rax), %eax shll $0x10, %eax orl %eax, %ecx movq -0x8(%rbp), %rax movzbl (%rax), %eax shll $0x18, %eax orl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x8(%rbp), %rax addq $0x4, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax movzbl 0x3(%rax), %ecx movq -0x8(%rbp), %rax movzbl 0x2(%rax), %eax shll $0x8, %eax orl %eax, %ecx movq -0x8(%rbp), %rax movzbl 0x1(%rax), %eax shll $0x10, %eax orl %eax, %ecx movq -0x8(%rbp), %rax movzbl (%rax), %eax shll $0x18, %eax orl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, 0xc(%rax) movq -0x8(%rbp), %rax addq $0x4, %rax movq %rax, -0x8(%rbp) movq -0x10(%rbp), %rax movq $0x0, (%rax) movq -0x10(%rbp), %rax cmpb $0x0, 0x19(%rax) je 0xd9b05 movq -0x10(%rbp), %rax movl 0xc(%rax), %eax movq -0x10(%rbp), %rcx movzbl 0x19(%rcx), %ecx cmpl $0x80, %ecx sete %cl andb $0x1, %cl movzbl %cl, %ecx addl %ecx, %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x10(%rax) jmp 0xd9b22 movq -0x10(%rbp), %rax movl 0xc(%rax), %eax movw %ax, %cx movq -0x10(%rbp), %rax movw %cx, 0x10(%rax) movq -0x10(%rbp), %rax movl $0x0, 0xc(%rax) movq -0x8(%rbp), %rax popq %rbp retq nopl (%rax,%rax)
mi_keyseg_read: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov cl, [rax] mov rax, [rbp+var_10] mov [rax+18h], cl mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx movzx eax, byte ptr [rax] mov cx, ax mov rax, [rbp+var_10] mov [rax+16h], cx mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov cl, [rax] mov rax, [rbp+var_10] mov [rax+19h], cl mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov cl, [rax] mov rax, [rbp+var_10] mov [rax+1Ah], cl mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx movzx eax, byte ptr [rax] movzx edx, ax shl edx, 8 mov rax, [rbp+var_10] movzx ecx, word ptr [rax+16h] add ecx, edx mov [rax+16h], cx mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov cl, [rax] mov rax, [rbp+var_10] mov [rax+1Bh], cl mov rax, [rbp+var_8] movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx mov cx, ax mov rax, [rbp+var_10] mov [rax+12h], cx mov rax, [rbp+var_8] add rax, 2 mov [rbp+var_8], rax mov rax, [rbp+var_8] movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx mov cx, ax mov rax, [rbp+var_10] mov [rax+14h], cx mov rax, [rbp+var_8] add rax, 2 mov [rbp+var_8], rax mov rax, [rbp+var_8] movzx ecx, byte ptr [rax+3] mov rax, [rbp+var_8] movzx eax, byte ptr [rax+2] shl eax, 8 or ecx, eax mov rax, [rbp+var_8] movzx eax, byte ptr [rax+1] shl eax, 10h or ecx, eax mov rax, [rbp+var_8] movzx eax, byte ptr [rax] shl eax, 18h or ecx, eax mov rax, [rbp+var_10] mov [rax+8], ecx mov rax, [rbp+var_8] add rax, 4 mov [rbp+var_8], rax mov rax, [rbp+var_8] movzx ecx, byte ptr [rax+3] mov rax, [rbp+var_8] movzx eax, byte ptr [rax+2] shl eax, 8 or ecx, eax mov rax, [rbp+var_8] movzx eax, byte ptr [rax+1] shl eax, 10h or ecx, eax mov rax, [rbp+var_8] movzx eax, byte ptr [rax] shl eax, 18h or ecx, eax mov rax, [rbp+var_10] mov [rax+0Ch], ecx mov rax, [rbp+var_8] add rax, 4 mov [rbp+var_8], rax mov rax, [rbp+var_10] mov qword ptr [rax], 0 mov rax, [rbp+var_10] cmp byte ptr [rax+19h], 0 jz short loc_D9B05 mov rax, [rbp+var_10] mov eax, [rax+0Ch] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+19h] cmp ecx, 80h setz cl and cl, 1 movzx ecx, cl add eax, ecx mov cx, ax mov rax, [rbp+var_10] mov [rax+10h], cx jmp short loc_D9B22 loc_D9B05: mov rax, [rbp+var_10] mov eax, [rax+0Ch] mov cx, ax mov rax, [rbp+var_10] mov [rax+10h], cx mov rax, [rbp+var_10] mov dword ptr [rax+0Ch], 0 loc_D9B22: mov rax, [rbp+var_8] pop rbp retn
long long mi_keyseg_read(long long a1, long long a2) { *(_BYTE *)(a2 + 24) = *(_BYTE *)a1; *(_WORD *)(a2 + 22) = *(unsigned __int8 *)(a1 + 1); *(_BYTE *)(a2 + 25) = *(_BYTE *)(a1 + 2); *(_BYTE *)(a2 + 26) = *(_BYTE *)(a1 + 3); *(_WORD *)(a2 + 22) += *(unsigned __int8 *)(a1 + 4) << 8; *(_BYTE *)(a2 + 27) = *(_BYTE *)(a1 + 5); *(_WORD *)(a2 + 18) = _byteswap_ushort(*(_WORD *)(a1 + 6)); *(_WORD *)(a2 + 20) = _byteswap_ushort(*(_WORD *)(a1 + 8)); *(_DWORD *)(a2 + 8) = _byteswap_ulong(*(_DWORD *)(a1 + 10)); *(_DWORD *)(a2 + 12) = _byteswap_ulong(*(_DWORD *)(a1 + 14)); *(_QWORD *)a2 = 0LL; if ( *(_BYTE *)(a2 + 25) ) { *(_WORD *)(a2 + 16) = (*(unsigned __int8 *)(a2 + 25) == 128) + (unsigned __int16)*(_DWORD *)(a2 + 12); } else { *(_WORD *)(a2 + 16) = *(_DWORD *)(a2 + 12); *(_DWORD *)(a2 + 12) = 0; } return a1 + 18; }
mi_keyseg_read: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x18],CL MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOVZX EAX,byte ptr [RAX] MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x16],CX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x19],CL MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1a],CL MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOVZX EAX,byte ptr [RAX] MOVZX EDX,AX SHL EDX,0x8 MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RAX + 0x16] ADD ECX,EDX MOV word ptr [RAX + 0x16],CX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1b],CL MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x12],CX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x2 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x14],CX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x2 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RAX + 0x3] MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x2] SHL EAX,0x8 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x1] SHL EAX,0x10 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX] SHL EAX,0x18 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x4 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RAX + 0x3] MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x2] SHL EAX,0x8 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x1] SHL EAX,0x10 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX] SHL EAX,0x18 OR ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xc],ECX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x4 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x19],0x0 JZ 0x001d9b05 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x19] CMP ECX,0x80 SETZ CL AND CL,0x1 MOVZX ECX,CL ADD EAX,ECX MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x10],CX JMP 0x001d9b22 LAB_001d9b05: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc] MOV CX,AX MOV RAX,qword ptr [RBP + -0x10] MOV word ptr [RAX + 0x10],CX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xc],0x0 LAB_001d9b22: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
int1 * mi_keyseg_read(int1 *param_1,int8 *param_2) { *(int1 *)(param_2 + 3) = *param_1; *(ushort *)((long)param_2 + 0x16) = (ushort)(byte)param_1[1]; *(int1 *)((long)param_2 + 0x19) = param_1[2]; *(int1 *)((long)param_2 + 0x1a) = param_1[3]; *(ushort *)((long)param_2 + 0x16) = *(short *)((long)param_2 + 0x16) + (ushort)(byte)param_1[4] * 0x100; *(int1 *)((long)param_2 + 0x1b) = param_1[5]; *(ushort *)((long)param_2 + 0x12) = CONCAT11(param_1[6],param_1[7]); *(ushort *)((long)param_2 + 0x14) = CONCAT11(param_1[8],param_1[9]); *(uint *)(param_2 + 1) = CONCAT13(param_1[10],CONCAT12(param_1[0xb],CONCAT11(param_1[0xc],param_1[0xd]))); *(uint *)((long)param_2 + 0xc) = CONCAT13(param_1[0xe],CONCAT12(param_1[0xf],CONCAT11(param_1[0x10],param_1[0x11]))); *param_2 = 0; if (*(char *)((long)param_2 + 0x19) == '\0') { *(short *)(param_2 + 2) = (short)*(int4 *)((long)param_2 + 0xc); *(int4 *)((long)param_2 + 0xc) = 0; } else { *(ushort *)(param_2 + 2) = (short)*(int4 *)((long)param_2 + 0xc) + (ushort)(*(char *)((long)param_2 + 0x19) == -0x80); } return param_1 + 0x12; }
3,892
mi_dynmap_file
eloqsql/storage/myisam/mi_dynrec.c
my_bool mi_dynmap_file(MI_INFO *info, my_off_t size) { DBUG_ENTER("mi_dynmap_file"); if (size == 0 || size > (my_off_t) (~((size_t) 0))) { if (size) DBUG_PRINT("warning", ("File is too large for mmap")); else DBUG_PRINT("warning", ("Do not mmap zero-length")); DBUG_RETURN(1); } /* I wonder if it is good to use MAP_NORESERVE. From the Linux man page: MAP_NORESERVE Do not reserve swap space for this mapping. When swap space is reserved, one has the guarantee that it is possible to modify the mapping. When swap space is not reserved one might get SIGSEGV upon a write if no physical memory is available. */ info->s->file_map= (uchar*) my_mmap(0, (size_t) size, info->s->mode==O_RDONLY ? PROT_READ : PROT_READ | PROT_WRITE, MAP_SHARED | MAP_NORESERVE, info->dfile, 0L); if (info->s->file_map == (uchar*) MAP_FAILED) { info->s->file_map= NULL; DBUG_RETURN(1); } #if defined(HAVE_MADVISE) madvise((char*) info->s->file_map, size, MADV_RANDOM); #endif info->s->mmaped_length= (size_t) size; info->s->file_read= mi_mmap_pread; info->s->file_write= mi_mmap_pwrite; DBUG_RETURN(0); }
O3
c
mi_dynmap_file: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movb $0x1, %r14b testq %rsi, %rsi je 0x76a93 movq %rsi, %r15 movq %rdi, %rbx movq (%rdi), %rax xorl %ecx, %ecx cmpl $0x0, 0x358(%rax) setne %cl leal 0x1(,%rcx,2), %edx movl 0x1c0(%rdi), %r8d xorl %edi, %edi movl $0x4001, %ecx # imm = 0x4001 xorl %r9d, %r9d callq 0x295f0 movq (%rbx), %rcx movq %rax, 0x270(%rcx) movq (%rbx), %rax movq 0x270(%rax), %rdi cmpq $-0x1, %rdi je 0x76a88 movq %r15, %rsi movl $0x1, %edx callq 0x29490 movq (%rbx), %rax movq %r15, 0x4d0(%rax) movq (%rbx), %rax leaq 0x36(%rip), %rcx # 0x76aa1 movq %rcx, 0x2e0(%rax) movq (%rbx), %rax leaq 0x1f3(%rip), %rcx # 0x76c6f movq %rcx, 0x2e8(%rax) xorl %r14d, %r14d jmp 0x76a93 movq $0x0, 0x270(%rax) movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
mi_dynmap_file: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14b, 1 test rsi, rsi jz loc_76A93 mov r15, rsi mov rbx, rdi mov rax, [rdi] xor ecx, ecx cmp dword ptr [rax+358h], 0 setnz cl lea edx, ds:1[rcx*2] mov r8d, [rdi+1C0h] xor edi, edi mov ecx, 4001h xor r9d, r9d call _mmap64 mov rcx, [rbx] mov [rcx+270h], rax mov rax, [rbx] mov rdi, [rax+270h] cmp rdi, 0FFFFFFFFFFFFFFFFh jz short loc_76A88 mov rsi, r15 mov edx, 1 call _madvise mov rax, [rbx] mov [rax+4D0h], r15 mov rax, [rbx] lea rcx, mi_mmap_pread mov [rax+2E0h], rcx mov rax, [rbx] lea rcx, mi_mmap_pwrite mov [rax+2E8h], rcx xor r14d, r14d jmp short loc_76A93 loc_76A88: mov qword ptr [rax+270h], 0 loc_76A93: mov eax, r14d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long mi_dynmap_file(unsigned int *a1, long long a2) { long long v2; // rax unsigned int v3; // r14d long long v5; // rax long long v6; // rdi LOBYTE(v3) = 1; if ( a2 ) { *(_QWORD *)(*(_QWORD *)a1 + 624LL) = mmap64( 0LL, a2, 2 * (unsigned int)(*(_DWORD *)(*(_QWORD *)a1 + 856LL) != 0) + 1, 16385LL, a1[112], 0LL, v2); v5 = *(_QWORD *)a1; v6 = *(_QWORD *)(*(_QWORD *)a1 + 624LL); if ( v6 == -1 ) { *(_QWORD *)(v5 + 624) = 0LL; } else { madvise(v6, a2, 1LL); *(_QWORD *)(*(_QWORD *)a1 + 1232LL) = a2; *(_QWORD *)(*(_QWORD *)a1 + 736LL) = mi_mmap_pread; *(_QWORD *)(*(_QWORD *)a1 + 744LL) = mi_mmap_pwrite; return 0; } } return v3; }
mi_dynmap_file: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14B,0x1 TEST RSI,RSI JZ 0x00176a93 MOV R15,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI] XOR ECX,ECX CMP dword ptr [RAX + 0x358],0x0 SETNZ CL LEA EDX,[0x1 + RCX*0x2] MOV R8D,dword ptr [RDI + 0x1c0] XOR EDI,EDI MOV ECX,0x4001 XOR R9D,R9D CALL 0x001295f0 MOV RCX,qword ptr [RBX] MOV qword ptr [RCX + 0x270],RAX MOV RAX,qword ptr [RBX] MOV RDI,qword ptr [RAX + 0x270] CMP RDI,-0x1 JZ 0x00176a88 MOV RSI,R15 MOV EDX,0x1 CALL 0x00129490 MOV RAX,qword ptr [RBX] MOV qword ptr [RAX + 0x4d0],R15 MOV RAX,qword ptr [RBX] LEA RCX,[0x176aa1] MOV qword ptr [RAX + 0x2e0],RCX MOV RAX,qword ptr [RBX] LEA RCX,[0x176c6f] MOV qword ptr [RAX + 0x2e8],RCX XOR R14D,R14D JMP 0x00176a93 LAB_00176a88: MOV qword ptr [RAX + 0x270],0x0 LAB_00176a93: MOV EAX,R14D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
ulong mi_dynmap_file(long *param_1,size_t param_2) { void *pvVar1; int8 unaff_R14; ulong uVar2; uVar2 = CONCAT71((int7)((ulong)unaff_R14 >> 8),1); if (param_2 != 0) { pvVar1 = mmap64((void *)0x0,param_2,(uint)(*(int *)(*param_1 + 0x358) != 0) * 2 + 1,0x4001, (int)param_1[0x38],0); *(void **)(*param_1 + 0x270) = pvVar1; pvVar1 = *(void **)(*param_1 + 0x270); if (pvVar1 == (void *)0xffffffffffffffff) { *(int8 *)(*param_1 + 0x270) = 0; } else { madvise(pvVar1,param_2,1); *(size_t *)(*param_1 + 0x4d0) = param_2; *(code **)(*param_1 + 0x2e0) = mi_mmap_pread; *(code **)(*param_1 + 0x2e8) = mi_mmap_pwrite; uVar2 = 0; } } return uVar2 & 0xffffffff; }
3,893
my_strnncollsp_8bit_bin
eloqsql/strings/ctype-bin.c
static int my_strnncollsp_8bit_bin(CHARSET_INFO * cs __attribute__((unused)), const uchar *a, size_t a_length, const uchar *b, size_t b_length) { const uchar *end; size_t length; end= a + (length= MY_MIN(a_length, b_length)); while (a < end) { if (*a++ != *b++) return ((int) a[-1] - (int) b[-1]); } return a_length == b_length ? 0 : a_length < b_length ? -my_strnncollsp_padspace_bin(b, b_length - length) : my_strnncollsp_padspace_bin(a, a_length - length); }
O3
c
my_strnncollsp_8bit_bin: pushq %rbp movq %rsp, %rbp cmpq %r8, %rdx movq %r8, %rdi cmovbq %rdx, %rdi leaq (%rsi,%rdi), %r9 cmpq %r9, %rsi jae 0x30465 movzbl (%rsi), %eax incq %rsi movzbl (%rcx), %r10d incq %rcx cmpb %r10b, %al je 0x30449 subl %r10d, %eax jmp 0x3046c xorl %eax, %eax cmpq %r8, %rdx jne 0x3046e popq %rbp retq jae 0x3048b subq %rdi, %r8 je 0x3046c xorl %edx, %edx xorl %eax, %eax cmpb $0x20, (%rcx,%rdx) jb 0x304a6 jne 0x304ad incq %rdx cmpq %rdx, %r8 jne 0x30479 jmp 0x3046c subq %rdi, %rdx je 0x3046c xorl %ecx, %ecx xorl %eax, %eax cmpb $0x20, (%rsi,%rcx) jb 0x304ad jne 0x304a6 incq %rcx cmpq %rcx, %rdx jne 0x30494 jmp 0x3046c movl $0x1, %eax jmp 0x3046c movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x3046c
my_strnncollsp_8bit_bin: push rbp mov rbp, rsp cmp rdx, r8 mov rdi, r8 cmovb rdi, rdx lea r9, [rsi+rdi] loc_30449: cmp rsi, r9 jnb short loc_30465 movzx eax, byte ptr [rsi] inc rsi movzx r10d, byte ptr [rcx] inc rcx cmp al, r10b jz short loc_30449 sub eax, r10d jmp short loc_3046C loc_30465: xor eax, eax cmp rdx, r8 jnz short loc_3046E loc_3046C: pop rbp retn loc_3046E: jnb short loc_3048B sub r8, rdi jz short loc_3046C xor edx, edx xor eax, eax loc_30479: cmp byte ptr [rcx+rdx], 20h ; ' ' jb short loc_304A6 jnz short loc_304AD inc rdx cmp r8, rdx jnz short loc_30479 jmp short loc_3046C loc_3048B: sub rdx, rdi jz short loc_3046C xor ecx, ecx xor eax, eax loc_30494: cmp byte ptr [rsi+rcx], 20h ; ' ' jb short loc_304AD jnz short loc_304A6 inc rcx cmp rdx, rcx jnz short loc_30494 jmp short loc_3046C loc_304A6: mov eax, 1 jmp short loc_3046C loc_304AD: mov eax, 0FFFFFFFFh jmp short loc_3046C
long long my_strnncollsp_8bit_bin( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned __int8 *a4, unsigned long long a5) { unsigned long long v5; // rdi unsigned __int8 *v6; // r9 int v7; // eax int v8; // r10d long long result; // rax unsigned long long v10; // r8 long long v11; // rdx unsigned long long v12; // rdx long long v13; // rcx v5 = a5; if ( a3 < a5 ) v5 = a3; v6 = &a2[v5]; while ( a2 < v6 ) { v7 = *a2++; v8 = *a4++; if ( (_BYTE)v7 != (_BYTE)v8 ) return (unsigned int)(v7 - v8); } result = 0LL; if ( a3 != a5 ) { if ( a3 >= a5 ) { v12 = a3 - v5; if ( v12 ) { v13 = 0LL; result = 0LL; while ( a2[v13] >= 0x20u ) { if ( a2[v13] != 32 ) return 1LL; if ( v12 == ++v13 ) return result; } return 0xFFFFFFFFLL; } } else { v10 = a5 - v5; if ( v10 ) { v11 = 0LL; result = 0LL; while ( a4[v11] >= 0x20u ) { if ( a4[v11] != 32 ) return 0xFFFFFFFFLL; if ( v10 == ++v11 ) return result; } return 1LL; } } } return result; }
my_strnncollsp_8bit_bin: PUSH RBP MOV RBP,RSP CMP RDX,R8 MOV RDI,R8 CMOVC RDI,RDX LEA R9,[RSI + RDI*0x1] LAB_00130449: CMP RSI,R9 JNC 0x00130465 MOVZX EAX,byte ptr [RSI] INC RSI MOVZX R10D,byte ptr [RCX] INC RCX CMP AL,R10B JZ 0x00130449 SUB EAX,R10D JMP 0x0013046c LAB_00130465: XOR EAX,EAX CMP RDX,R8 JNZ 0x0013046e LAB_0013046c: POP RBP RET LAB_0013046e: JNC 0x0013048b SUB R8,RDI JZ 0x0013046c XOR EDX,EDX XOR EAX,EAX LAB_00130479: CMP byte ptr [RCX + RDX*0x1],0x20 JC 0x001304a6 JNZ 0x001304ad INC RDX CMP R8,RDX JNZ 0x00130479 JMP 0x0013046c LAB_0013048b: SUB RDX,RDI JZ 0x0013046c XOR ECX,ECX XOR EAX,EAX LAB_00130494: CMP byte ptr [RSI + RCX*0x1],0x20 JC 0x001304ad JNZ 0x001304a6 INC RCX CMP RDX,RCX JNZ 0x00130494 JMP 0x0013046c LAB_001304a6: MOV EAX,0x1 JMP 0x0013046c LAB_001304ad: MOV EAX,0xffffffff JMP 0x0013046c
int my_strnncollsp_8bit_bin (int8 param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5) { byte *pbVar1; byte bVar2; byte bVar3; long lVar4; ulong uVar5; uVar5 = param_5; if (param_3 < param_5) { uVar5 = param_3; } pbVar1 = param_2 + uVar5; while (param_2 < pbVar1) { bVar2 = *param_2; param_2 = param_2 + 1; bVar3 = *param_4; param_4 = param_4 + 1; if (bVar2 != bVar3) { return (uint)bVar2 - (uint)bVar3; } } if (param_3 == param_5) { return 0; } if (param_3 < param_5) { if (param_5 == uVar5) { return 0; } lVar4 = 0; while( true ) { if (param_4[lVar4] < 0x20) { return 1; } if (param_4[lVar4] != 0x20) break; lVar4 = lVar4 + 1; if (param_5 - uVar5 == lVar4) { return 0; } } return -1; } if (param_3 != uVar5) { lVar4 = 0; while( true ) { if (param_2[lVar4] < 0x20) { return -1; } if (param_2[lVar4] != 0x20) break; lVar4 = lVar4 + 1; if (param_3 - uVar5 == lVar4) { return 0; } } return 1; } return 0; }
3,894
my_strxfrm_flag_normalize
eloqsql/strings/ctype-simple.c
uint my_strxfrm_flag_normalize(uint flags, uint maximum) { DBUG_ASSERT(maximum >= 1 && maximum <= MY_STRXFRM_NLEVELS); /* If levels are omitted, then 1-maximum is assumed*/ if (!(flags & MY_STRXFRM_LEVEL_ALL)) { static uint def_level_flags[]= {0, 0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3F }; uint flag_pad= flags & (MY_STRXFRM_PAD_WITH_SPACE | MY_STRXFRM_PAD_TO_MAXLEN); flags= def_level_flags[maximum] | flag_pad; } else { uint i; uint flag_lev= flags & MY_STRXFRM_LEVEL_ALL; uint flag_dsc= (flags >> MY_STRXFRM_DESC_SHIFT) & MY_STRXFRM_LEVEL_ALL; uint flag_rev= (flags >> MY_STRXFRM_REVERSE_SHIFT) & MY_STRXFRM_LEVEL_ALL; uint flag_pad= flags & (MY_STRXFRM_PAD_WITH_SPACE | MY_STRXFRM_PAD_TO_MAXLEN); /* If any level number is greater than the maximum, it is treated as the maximum. */ for (maximum--, flags= 0, i= 0; i < MY_STRXFRM_NLEVELS; i++) { uint src_bit= 1 << i; if (flag_lev & src_bit) { uint dst_bit= 1 << MY_MIN(i, maximum); flags|= dst_bit; flags|= (flag_dsc & dst_bit) << MY_STRXFRM_DESC_SHIFT; flags|= (flag_rev & dst_bit) << MY_STRXFRM_REVERSE_SHIFT; } } flags|= flag_pad; } return flags; }
O0
c
my_strxfrm_flag_normalize: pushq %rbp movq %rsp, %rbp movl %edi, -0x4(%rbp) movl %esi, -0x8(%rbp) jmp 0x448ac movl -0x4(%rbp), %eax andl $0x3f, %eax cmpl $0x0, %eax jne 0x448dc movl -0x4(%rbp), %eax andl $0xc0, %eax movl %eax, -0xc(%rbp) movl -0x8(%rbp), %eax movl %eax, %ecx leaq 0x22e322(%rip), %rax # 0x272bf0 movl (%rax,%rcx,4), %eax orl -0xc(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x4499d movl -0x4(%rbp), %eax andl $0x3f, %eax movl %eax, -0x14(%rbp) movl -0x4(%rbp), %eax shrl $0x8, %eax andl $0x3f, %eax movl %eax, -0x18(%rbp) movl -0x4(%rbp), %eax shrl $0x10, %eax andl $0x3f, %eax movl %eax, -0x1c(%rbp) movl -0x4(%rbp), %eax andl $0xc0, %eax movl %eax, -0x20(%rbp) movl -0x8(%rbp), %eax addl $-0x1, %eax movl %eax, -0x8(%rbp) movl $0x0, -0x4(%rbp) movl $0x0, -0x10(%rbp) cmpl $0x6, -0x10(%rbp) jae 0x44994 movl -0x10(%rbp), %ecx movl $0x1, %eax shll %cl, %eax movl %eax, -0x24(%rbp) movl -0x14(%rbp), %eax andl -0x24(%rbp), %eax cmpl $0x0, %eax je 0x44987 movl -0x10(%rbp), %eax cmpl -0x8(%rbp), %eax jae 0x4494d movl -0x10(%rbp), %eax movl %eax, -0x2c(%rbp) jmp 0x44953 movl -0x8(%rbp), %eax movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %ecx movl $0x1, %eax shll %cl, %eax movl %eax, -0x28(%rbp) movl -0x28(%rbp), %eax orl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x18(%rbp), %eax andl -0x28(%rbp), %eax shll $0x8, %eax orl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x1c(%rbp), %eax andl -0x28(%rbp), %eax shll $0x10, %eax orl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x44989 movl -0x10(%rbp), %eax addl $0x1, %eax movl %eax, -0x10(%rbp) jmp 0x4491f movl -0x20(%rbp), %eax orl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
my_strxfrm_flag_normalize: push rbp mov rbp, rsp mov [rbp+var_4], edi mov [rbp+var_8], esi jmp short $+2 loc_448AC: mov eax, [rbp+var_4] and eax, 3Fh cmp eax, 0 jnz short loc_448DC mov eax, [rbp+var_4] and eax, 0C0h mov [rbp+var_C], eax mov eax, [rbp+var_8] mov ecx, eax lea rax, my_strxfrm_flag_normalize_def_level_flags mov eax, [rax+rcx*4] or eax, [rbp+var_C] mov [rbp+var_4], eax jmp loc_4499D loc_448DC: mov eax, [rbp+var_4] and eax, 3Fh mov [rbp+var_14], eax mov eax, [rbp+var_4] shr eax, 8 and eax, 3Fh mov [rbp+var_18], eax mov eax, [rbp+var_4] shr eax, 10h and eax, 3Fh mov [rbp+var_1C], eax mov eax, [rbp+var_4] and eax, 0C0h mov [rbp+var_20], eax mov eax, [rbp+var_8] add eax, 0FFFFFFFFh mov [rbp+var_8], eax mov [rbp+var_4], 0 mov [rbp+var_10], 0 loc_4491F: cmp [rbp+var_10], 6 jnb short loc_44994 mov ecx, [rbp+var_10] mov eax, 1 shl eax, cl mov [rbp+var_24], eax mov eax, [rbp+var_14] and eax, [rbp+var_24] cmp eax, 0 jz short loc_44987 mov eax, [rbp+var_10] cmp eax, [rbp+var_8] jnb short loc_4494D mov eax, [rbp+var_10] mov [rbp+var_2C], eax jmp short loc_44953 loc_4494D: mov eax, [rbp+var_8] mov [rbp+var_2C], eax loc_44953: mov ecx, [rbp+var_2C] mov eax, 1 shl eax, cl mov [rbp+var_28], eax mov eax, [rbp+var_28] or eax, [rbp+var_4] mov [rbp+var_4], eax mov eax, [rbp+var_18] and eax, [rbp+var_28] shl eax, 8 or eax, [rbp+var_4] mov [rbp+var_4], eax mov eax, [rbp+var_1C] and eax, [rbp+var_28] shl eax, 10h or eax, [rbp+var_4] mov [rbp+var_4], eax loc_44987: jmp short $+2 loc_44989: mov eax, [rbp+var_10] add eax, 1 mov [rbp+var_10], eax jmp short loc_4491F loc_44994: mov eax, [rbp+var_20] or eax, [rbp+var_4] mov [rbp+var_4], eax loc_4499D: mov eax, [rbp+var_4] pop rbp retn
long long my_strxfrm_flag_normalize(unsigned int a1, int a2) { char v3; // [rsp+0h] [rbp-2Ch] unsigned int i; // [rsp+1Ch] [rbp-10h] int v6; // [rsp+28h] [rbp-4h] if ( (a1 & 0x3F) != 0 ) { v6 = 0; for ( i = 0; i < 6; ++i ) { if ( ((1 << i) & a1 & 0x3F) != 0 ) { if ( i >= a2 - 1 ) v3 = a2 - 1; else v3 = i; v6 |= (1 << v3) | (((1 << v3) & (a1 >> 8) & 0x3F) << 8) | (((1 << v3) & HIWORD(a1) & 0x3F) << 16); } } return v6 | a1 & 0xC0; } else { return a1 & 0xC0 | my_strxfrm_flag_normalize_def_level_flags[a2]; } }
my_strxfrm_flag_normalize: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x4],EDI MOV dword ptr [RBP + -0x8],ESI JMP 0x001448ac LAB_001448ac: MOV EAX,dword ptr [RBP + -0x4] AND EAX,0x3f CMP EAX,0x0 JNZ 0x001448dc MOV EAX,dword ptr [RBP + -0x4] AND EAX,0xc0 MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0x8] MOV ECX,EAX LEA RAX,[0x372bf0] MOV EAX,dword ptr [RAX + RCX*0x4] OR EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x4],EAX JMP 0x0014499d LAB_001448dc: MOV EAX,dword ptr [RBP + -0x4] AND EAX,0x3f MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RBP + -0x4] SHR EAX,0x8 AND EAX,0x3f MOV dword ptr [RBP + -0x18],EAX MOV EAX,dword ptr [RBP + -0x4] SHR EAX,0x10 AND EAX,0x3f MOV dword ptr [RBP + -0x1c],EAX MOV EAX,dword ptr [RBP + -0x4] AND EAX,0xc0 MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x8] ADD EAX,-0x1 MOV dword ptr [RBP + -0x8],EAX MOV dword ptr [RBP + -0x4],0x0 MOV dword ptr [RBP + -0x10],0x0 LAB_0014491f: CMP dword ptr [RBP + -0x10],0x6 JNC 0x00144994 MOV ECX,dword ptr [RBP + -0x10] MOV EAX,0x1 SHL EAX,CL MOV dword ptr [RBP + -0x24],EAX MOV EAX,dword ptr [RBP + -0x14] AND EAX,dword ptr [RBP + -0x24] CMP EAX,0x0 JZ 0x00144987 MOV EAX,dword ptr [RBP + -0x10] CMP EAX,dword ptr [RBP + -0x8] JNC 0x0014494d MOV EAX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x2c],EAX JMP 0x00144953 LAB_0014494d: MOV EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x2c],EAX LAB_00144953: MOV ECX,dword ptr [RBP + -0x2c] MOV EAX,0x1 SHL EAX,CL MOV dword ptr [RBP + -0x28],EAX MOV EAX,dword ptr [RBP + -0x28] OR EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX MOV EAX,dword ptr [RBP + -0x18] AND EAX,dword ptr [RBP + -0x28] SHL EAX,0x8 OR EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX MOV EAX,dword ptr [RBP + -0x1c] AND EAX,dword ptr [RBP + -0x28] SHL EAX,0x10 OR EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX LAB_00144987: JMP 0x00144989 LAB_00144989: MOV EAX,dword ptr [RBP + -0x10] ADD EAX,0x1 MOV dword ptr [RBP + -0x10],EAX JMP 0x0014491f LAB_00144994: MOV EAX,dword ptr [RBP + -0x20] OR EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX LAB_0014499d: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
uint my_strxfrm_flag_normalize(uint param_1,uint param_2) { uint uVar1; uint local_34; uint local_18; uint local_c; if ((param_1 & 0x3f) == 0) { local_c = *(uint *)(my_strxfrm_flag_normalize_def_level_flags + (ulong)param_2 * 4) | param_1 & 0xc0; } else { local_c = 0; for (local_18 = 0; local_18 < 6; local_18 = local_18 + 1) { if ((param_1 & 0x3f & 1 << ((byte)local_18 & 0x1f)) != 0) { local_34 = param_2 - 1; if (local_18 < param_2 - 1) { local_34 = local_18; } uVar1 = 1 << ((byte)local_34 & 0x1f); local_c = (param_1 >> 0x10 & 0x3f & uVar1) << 0x10 | (param_1 >> 8 & 0x3f & uVar1) << 8 | uVar1 | local_c; } } local_c = param_1 & 0xc0 | local_c; } return local_c; }
3,895
test_case::op_size(ggml_tensor*)
llama.cpp/tests/test-backend-ops.cpp
virtual size_t op_size(ggml_tensor * t) { size_t size = ggml_nbytes(t); // add source tensors for (int i = 0; i < GGML_MAX_SRC; i++) { if (t->src[i] != NULL) { size += ggml_nbytes(t->src[i]); } } return size; }
O3
cpp
test_case::op_size(ggml_tensor*): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rsi, %rdi callq 0x1cbb0 movq %rax, %r14 xorl %r15d, %r15d movq 0x98(%rbx,%r15,8), %rdi testq %rdi, %rdi je 0x2b7e5 callq 0x1cbb0 addq %rax, %r14 incq %r15 cmpq $0xa, %r15 jne 0x2b7d0 movq %r14, %rax popq %rbx popq %r14 popq %r15 retq nop
_ZN9test_case7op_sizeEP11ggml_tensor: push r15 push r14 push rbx mov rbx, rsi mov rdi, rsi call _ggml_nbytes mov r14, rax xor r15d, r15d loc_2B7D0: mov rdi, [rbx+r15*8+98h] test rdi, rdi jz short loc_2B7E5 call _ggml_nbytes add r14, rax loc_2B7E5: inc r15 cmp r15, 0Ah jnz short loc_2B7D0 mov rax, r14 pop rbx pop r14 pop r15 retn
long long test_case::op_size(long long a1, long long a2) { long long v2; // r14 long long i; // r15 long long v4; // rdi v2 = ggml_nbytes(a2); for ( i = 0LL; i != 10; ++i ) { v4 = *(_QWORD *)(a2 + 8 * i + 152); if ( v4 ) v2 += ggml_nbytes(v4); } return v2; }
op_size: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV RDI,RSI CALL 0x0011cbb0 MOV R14,RAX XOR R15D,R15D LAB_0012b7d0: MOV RDI,qword ptr [RBX + R15*0x8 + 0x98] TEST RDI,RDI JZ 0x0012b7e5 CALL 0x0011cbb0 ADD R14,RAX LAB_0012b7e5: INC R15 CMP R15,0xa JNZ 0x0012b7d0 MOV RAX,R14 POP RBX POP R14 POP R15 RET
/* test_case::op_size(ggml_tensor*) */ long __thiscall test_case::op_size(test_case *this,ggml_tensor *param_1) { long lVar1; long lVar2; long lVar3; lVar1 = ggml_nbytes(param_1); lVar3 = 0; do { if (*(long *)(param_1 + lVar3 * 8 + 0x98) != 0) { lVar2 = ggml_nbytes(); lVar1 = lVar1 + lVar2; } lVar3 = lVar3 + 1; } while (lVar3 != 10); return lVar1; }
3,896
cxxopts::values::abstract_value<bool>::parse() const
shubhamoy[P]dir2txt/include/cxxopts.hpp
void parse() const override { parse_value(m_default_value, *m_store); }
O3
cpp
cxxopts::values::abstract_value<bool>::parse() const: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x28(%rdi), %r14 addq $0x38, %rbx movq %rbx, %rdi callq 0x24f90 testb %al, %al je 0x24beb movb $0x1, (%r14) jmp 0x24bfb movq %rbx, %rdi callq 0x25091 testb %al, %al je 0x24c03 movb $0x0, (%r14) addq $0x8, %rsp popq %rbx popq %r14 retq movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x25192
_ZNK7cxxopts6values14abstract_valueIbE5parseEv: push r14 push rbx push rax mov rbx, rdi mov r14, [rdi+28h] add rbx, 38h ; '8' mov rdi, rbx call _ZN7cxxopts6values11parser_tool10IsTrueTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; cxxopts::values::parser_tool::IsTrueText(std::string const&) test al, al jz short loc_24BEB mov byte ptr [r14], 1 jmp short loc_24BFB loc_24BEB: mov rdi, rbx call _ZN7cxxopts6values11parser_tool11IsFalseTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; cxxopts::values::parser_tool::IsFalseText(std::string const&) test al, al jz short loc_24C03 mov byte ptr [r14], 0 loc_24BFB: add rsp, 8 pop rbx pop r14 retn loc_24C03: mov rdi, rbx; int add rsp, 8 pop rbx pop r14 jmp _ZN7cxxopts14throw_or_mimicINS_10exceptions23incorrect_argument_typeEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; cxxopts::throw_or_mimic<cxxopts::exceptions::incorrect_argument_type>(std::string const&)
long long cxxopts::values::abstract_value<bool>::parse(long long a1, int a2, int a3, int a4, int a5, int a6) { int v6; // eax _BYTE *v7; // r14 int v8; // ebx long long result; // rax int v10; // edx int v11; // ecx int v12; // r8d int v13; // r9d int v14; // [rsp-8h] [rbp-18h] v7 = *(_BYTE **)(a1 + 40); v8 = a1 + 56; result = cxxopts::values::parser_tool::IsTrueText((int)a1 + 56, a2, a3, a4, a5, a6, v6); if ( (_BYTE)result ) { *v7 = 1; } else { result = cxxopts::values::parser_tool::IsFalseText(v8, a2, v10, v11, v12, v13, v14); if ( !(_BYTE)result ) cxxopts::throw_or_mimic<cxxopts::exceptions::incorrect_argument_type>(v8); *v7 = 0; } return result; }
parse: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV R14,qword ptr [RDI + 0x28] ADD RBX,0x38 MOV RDI,RBX CALL 0x00124f90 TEST AL,AL JZ 0x00124beb MOV byte ptr [R14],0x1 JMP 0x00124bfb LAB_00124beb: MOV RDI,RBX CALL 0x00125091 TEST AL,AL JZ 0x00124c03 MOV byte ptr [R14],0x0 LAB_00124bfb: ADD RSP,0x8 POP RBX POP R14 RET LAB_00124c03: MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00125192
/* cxxopts::values::abstract_value<bool>::parse() const */ void __thiscall cxxopts::values::abstract_value<bool>::parse(abstract_value<bool> *this) { int1 *puVar1; char cVar2; string *psVar3; puVar1 = *(int1 **)(this + 0x28); psVar3 = (string *)(this + 0x38); cVar2 = parser_tool::IsTrueText(psVar3); if (cVar2 == '\0') { cVar2 = parser_tool::IsFalseText(psVar3); if (cVar2 == '\0') { throw_or_mimic<cxxopts::exceptions::incorrect_argument_type>(psVar3); return; } *puVar1 = 0; } else { *puVar1 = 1; } return; }
3,897
mysql_stmt_reset_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_stmt_reset_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_stmt_reset, (parms->stmt), parms->stmt->mysql, my_bool, r_my_bool) }
O0
c
mysql_stmt_reset_start_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x38(%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rdi callq 0x87090 movb %al, -0x11(%rbp) movb -0x11(%rbp), %cl movq -0x20(%rbp), %rax movb %cl, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
mysql_stmt_reset_start_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+38h] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rdi, [rax] call mysql_stmt_reset mov [rbp+var_11], al mov cl, [rbp+var_11] mov rax, [rbp+var_20] mov [rax+8], cl mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
long long mysql_stmt_reset_start_internal(long long *a1) { long long result; // rax long long v2; // [rsp+0h] [rbp-20h] v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*a1 + 56) + 1152LL) + 40LL); *(_BYTE *)(v2 + 8) = mysql_stmt_reset(*a1); result = v2; *(_DWORD *)v2 = 0; return result; }
mysql_stmt_reset_start_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] CALL 0x00187090 MOV byte ptr [RBP + -0x11],AL MOV CL,byte ptr [RBP + -0x11] MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x8],CL MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_stmt_reset_start_internal(long *param_1) { int4 *puVar1; int1 uVar2; puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28); uVar2 = mysql_stmt_reset(*param_1); *(int1 *)(puVar1 + 2) = uVar2; *puVar1 = 0; return; }
3,898
create_logfile_by_number_no_cache
eloqsql/storage/maria/ma_loghandler.c
static File create_logfile_by_number_no_cache(uint32 file_no) { File file; char path[FN_REFLEN]; DBUG_ENTER("create_logfile_by_number_no_cache"); if (translog_status != TRANSLOG_OK) DBUG_RETURN(-1); /* TODO: add O_DIRECT to open flags (when buffer is aligned) */ if ((file= mysql_file_create(key_file_translog, translog_filename_by_fileno(file_no, path), 0, O_BINARY | O_RDWR | O_CLOEXEC, MYF(MY_WME))) < 0) { DBUG_PRINT("error", ("Error %d during creating file '%s'", errno, path)); translog_stop_writing(); DBUG_RETURN(-1); } if (sync_log_dir >= TRANSLOG_SYNC_DIR_NEWFILE && sync_dir(log_descriptor.directory_fd, MYF(MY_WME | MY_IGNORE_BADFD))) { DBUG_PRINT("error", ("Error %d during syncing directory '%s'", errno, log_descriptor.directory)); mysql_file_close(file, MYF(0)); translog_stop_writing(); DBUG_RETURN(-1); } DBUG_PRINT("info", ("File: '%s' handler: %d", path, file)); DBUG_RETURN(file); }
O3
c
create_logfile_by_number_no_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x268, %rsp # imm = 0x268 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movl $0xffffffff, %ebx # imm = 0xFFFFFFFF cmpl $0x1, 0x3b2b4b(%rip) # 0x3fd5b0 jne 0x4ab79 leaq 0x3b26a2(%rip), %rax # 0x3fd114 movl (%rax), %r14d leaq -0x230(%rbp), %r15 movq %r15, %rsi callq 0x48ae5 leaq 0x33b585(%rip), %r13 # 0x386010 movq (%r13), %rax leaq -0x288(%rbp), %rdi leaq -0x238(%rbp), %r12 movl %r14d, %esi xorl %edx, %edx movq %r15, %rcx movq %r12, %r8 callq *0x148(%rax) movq %rax, (%r12) testq %rax, %rax jne 0x4ab9c leaq -0x230(%rbp), %rdi movl $0x10, %ecx xorl %esi, %esi movl $0x80002, %edx # imm = 0x80002 callq 0x9ded8 movl %eax, %r14d testl %r14d, %r14d js 0x4ab4f cmpq $0x0, 0x3396bd(%rip) # 0x3841a0 je 0x4ab76 movl 0x3b3fc0(%rip), %r15d # 0x3feab0 movq (%r13), %rax leaq -0x288(%rbp), %rdi movl %r15d, %esi movl $0x10, %edx callq *0x158(%rax) testq %rax, %rax jne 0x4abc4 movl $0x30, %esi movl %r15d, %edi callq 0xa14a4 testl %eax, %eax je 0x4ab76 movq (%r13), %rax leaq -0x288(%rbp), %rdi movl %r14d, %esi movl $0x4, %edx callq *0x158(%rax) testq %rax, %rax jne 0x4abdb movl %r14d, %edi xorl %esi, %esi callq 0xa0585 xorl %eax, %eax cmpl $0x3, 0x3b2a58(%rip) # 0x3fd5b0 setne %al addl %eax, %eax movl %eax, 0x3b2a4d(%rip) # 0x3fd5b0 movb $0x1, 0xbb4b26(%rip) # 0xbff690 movl $0x0, 0x3b3c58(%rip) # 0x3fe7cc jmp 0x4ab79 movl %r14d, %ebx movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x4abeb movl %ebx, %eax addq $0x268, %rsp # imm = 0x268 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq -0x230(%rbp), %rsi leaq -0x238(%rbp), %rdx leaq -0x23c(%rbp), %r14 movq %rax, %rdi movq %r14, %rcx callq 0x2c5fb movl (%r14), %r14d jmp 0x4aad6 movq %rax, %rdi movl %r15d, %esi movq %r12, %rdx callq 0x2c659 movl (%r12), %eax jmp 0x4ab1f movq %rax, %rdi movl %r14d, %esi callq 0x2c6b2 jmp 0x4ab4f callq 0x29270
create_logfile_by_number_no_cache: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 268h mov rax, fs:28h mov [rbp+var_30], rax mov ebx, 0FFFFFFFFh cmp cs:translog_status, 1 jnz loc_4AB79 lea rax, key_file_translog mov r14d, [rax] lea r15, [rbp+var_230] mov rsi, r15 call translog_filename_by_fileno lea r13, PSI_server mov rax, [r13+0] lea rdi, [rbp+var_288] lea r12, [rbp+var_238] mov esi, r14d xor edx, edx mov rcx, r15 mov r8, r12 call qword ptr [rax+148h] mov [r12], rax test rax, rax jnz loc_4AB9C lea rdi, [rbp+var_230] mov ecx, 10h xor esi, esi mov edx, 80002h call my_create mov r14d, eax loc_4AAD6: test r14d, r14d js short loc_4AB4F cmp cs:sync_log_dir, 0 jz loc_4AB76 mov r15d, cs:dword_3FEAB0 mov rax, [r13+0] lea rdi, [rbp+var_288] mov esi, r15d mov edx, 10h call qword ptr [rax+158h] test rax, rax jnz loc_4ABC4 mov esi, 30h ; '0' mov edi, r15d call my_sync loc_4AB1F: test eax, eax jz short loc_4AB76 mov rax, [r13+0] lea rdi, [rbp+var_288] mov esi, r14d mov edx, 4 call qword ptr [rax+158h] test rax, rax jnz loc_4ABDB mov edi, r14d xor esi, esi call my_close loc_4AB4F: xor eax, eax cmp cs:translog_status, 3 setnz al add eax, eax mov cs:translog_status, eax mov byte ptr cs:word_BFF690, 1 mov cs:dword_3FE7CC, 0 jmp short loc_4AB79 loc_4AB76: mov ebx, r14d loc_4AB79: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_4ABEB mov eax, ebx add rsp, 268h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4AB9C: lea rsi, [rbp+var_230] lea rdx, [rbp+var_238] lea r14, [rbp+var_23C] mov rdi, rax mov rcx, r14 call create_logfile_by_number_no_cache_cold_1 mov r14d, [r14] jmp loc_4AAD6 loc_4ABC4: mov rdi, rax mov esi, r15d mov rdx, r12 call create_logfile_by_number_no_cache_cold_2 mov eax, [r12] jmp loc_4AB1F loc_4ABDB: mov rdi, rax mov esi, r14d call create_logfile_by_number_no_cache_cold_3 jmp loc_4AB4F loc_4ABEB: call ___stack_chk_fail
long long create_logfile_by_number_no_cache( unsigned int a1, long long a2, long long a3, long long a4, int a5, int a6) { unsigned int v6; // ebx unsigned int v7; // r14d long long v8; // rax unsigned int v9; // r14d unsigned int v10; // r15d long long v11; // rax int v12; // eax long long v13; // rax _BYTE v15[76]; // [rsp+8h] [rbp-288h] BYREF unsigned int v16; // [rsp+54h] [rbp-23Ch] BYREF long long v17; // [rsp+58h] [rbp-238h] BYREF _BYTE v18[512]; // [rsp+60h] [rbp-230h] BYREF unsigned long long v19; // [rsp+260h] [rbp-30h] v19 = __readfsqword(0x28u); v6 = -1; if ( translog_status == 1 ) { v7 = key_file_translog; translog_filename_by_fileno(a1, (long long)v18, a3, a4, a5, a6); v8 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, _BYTE *, long long *))PSI_server[41])(v15, v7, 0LL, v18, &v17); v17 = v8; if ( v8 ) { create_logfile_by_number_no_cache_cold_1(v8, (long long)v18, &v17, &v16); v9 = v16; } else { v9 = my_create(v18, 0LL, 524290LL, 16LL); } if ( (v9 & 0x80000000) == 0 ) { if ( !sync_log_dir ) return v9; v10 = dword_3FEAB0; v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v15, (unsigned int)dword_3FEAB0, 16LL); if ( v11 ) { create_logfile_by_number_no_cache_cold_2(v11, v10, &v17); v12 = v17; } else { v12 = my_sync(v10, 48LL); } if ( !v12 ) return v9; v13 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v15, v9, 4LL); if ( v13 ) create_logfile_by_number_no_cache_cold_3(v13, v9); else my_close(v9, 0LL); } translog_status = 2 * (translog_status != 3); LOBYTE(word_BFF690) = 1; dword_3FE7CC = 0; } return v6; }
create_logfile_by_number_no_cache: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x268 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV EBX,0xffffffff CMP dword ptr [0x004fd5b0],0x1 JNZ 0x0014ab79 LEA RAX,[0x4fd114] MOV R14D,dword ptr [RAX] LEA R15,[RBP + -0x230] MOV RSI,R15 CALL 0x00148ae5 LEA R13,[0x486010] MOV RAX,qword ptr [R13] LEA RDI,[RBP + -0x288] LEA R12,[RBP + -0x238] MOV ESI,R14D XOR EDX,EDX MOV RCX,R15 MOV R8,R12 CALL qword ptr [RAX + 0x148] MOV qword ptr [R12],RAX TEST RAX,RAX JNZ 0x0014ab9c LEA RDI,[RBP + -0x230] MOV ECX,0x10 XOR ESI,ESI MOV EDX,0x80002 CALL 0x0019ded8 MOV R14D,EAX LAB_0014aad6: TEST R14D,R14D JS 0x0014ab4f CMP qword ptr [0x004841a0],0x0 JZ 0x0014ab76 MOV R15D,dword ptr [0x004feab0] MOV RAX,qword ptr [R13] LEA RDI,[RBP + -0x288] MOV ESI,R15D MOV EDX,0x10 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0014abc4 MOV ESI,0x30 MOV EDI,R15D CALL 0x001a14a4 LAB_0014ab1f: TEST EAX,EAX JZ 0x0014ab76 MOV RAX,qword ptr [R13] LEA RDI,[RBP + -0x288] MOV ESI,R14D MOV EDX,0x4 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0014abdb MOV EDI,R14D XOR ESI,ESI CALL 0x001a0585 LAB_0014ab4f: XOR EAX,EAX CMP dword ptr [0x004fd5b0],0x3 SETNZ AL ADD EAX,EAX MOV dword ptr [0x004fd5b0],EAX MOV byte ptr [0x00cff690],0x1 MOV dword ptr [0x004fe7cc],0x0 JMP 0x0014ab79 LAB_0014ab76: MOV EBX,R14D LAB_0014ab79: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0014abeb MOV EAX,EBX ADD RSP,0x268 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014ab9c: LEA RSI,[RBP + -0x230] LEA RDX,[RBP + -0x238] LEA R14,[RBP + -0x23c] MOV RDI,RAX MOV RCX,R14 CALL 0x0012c5fb MOV R14D,dword ptr [R14] JMP 0x0014aad6 LAB_0014abc4: MOV RDI,RAX MOV ESI,R15D MOV RDX,R12 CALL 0x0012c659 MOV EAX,dword ptr [R12] JMP 0x0014ab1f LAB_0014abdb: MOV RDI,RAX MOV ESI,R14D CALL 0x0012c6b2 JMP 0x0014ab4f LAB_0014abeb: CALL 0x00129270
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int create_logfile_by_number_no_cache(int8 param_1) { int4 uVar1; int iVar2; int iVar3; long lVar4; long in_FS_OFFSET; int1 local_290 [76]; int local_244; long local_240; int1 local_238 [512]; long local_38; uVar1 = key_file_translog; local_38 = *(long *)(in_FS_OFFSET + 0x28); iVar2 = -1; if (translog_status != 1) goto LAB_0014ab79; translog_filename_by_fileno(param_1,local_238); local_240 = (**(code **)(PSI_server + 0x148))(local_290,uVar1,0,local_238,&local_240); if (local_240 == 0) { iVar2 = my_create(local_238,0,0x80002,0x10); } else { create_logfile_by_number_no_cache_cold_1(local_240,local_238,&local_240,&local_244); iVar2 = local_244; } uVar1 = DAT_004feab0; if (-1 < iVar2) { if (sync_log_dir == 0) goto LAB_0014ab79; lVar4 = (**(code **)(PSI_server + 0x158))(local_290,DAT_004feab0,0x10); if (lVar4 == 0) { iVar3 = my_sync(uVar1,0x30); } else { create_logfile_by_number_no_cache_cold_2(lVar4,uVar1,&local_240); iVar3 = (int)local_240; } if (iVar3 == 0) goto LAB_0014ab79; lVar4 = (**(code **)(PSI_server + 0x158))(local_290,iVar2,4); if (lVar4 == 0) { my_close(iVar2,0); } else { create_logfile_by_number_no_cache_cold_3(lVar4,iVar2); } } translog_status = (uint)(translog_status != 3) * 2; DAT_00cff690 = 1; _DAT_004fe7cc = 0; iVar2 = -1; LAB_0014ab79: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return iVar2; }
3,899
nlohmann::json_abi_v3_11_3::detail::parser<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::detail::input_stream_adapter>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
llama.cpp/common/json.hpp
std::string exception_message(const token_type expected, const std::string& context) { std::string error_msg = "syntax error "; if (!context.empty()) { error_msg += concat("while parsing ", context, ' '); } error_msg += "- "; if (last_token == token_type::parse_error) { error_msg += concat(m_lexer.get_error_message(), "; last read: '", m_lexer.get_token_string(), '\''); } else { error_msg += concat("unexpected ", lexer_t::token_type_name(last_token)); } if (expected != token_type::uninitialized) { error_msg += concat("; expected ", lexer_t::token_type_name(expected)); } return error_msg; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::parser<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::detail::input_stream_adapter>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type, 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 subq $0x58, %rsp movq %rcx, %r15 movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rdi), %r12 movq %r12, (%rdi) leaq 0xa4e3f(%rip), %rsi # 0x11a880 leaq 0xa4e45(%rip), %rdx # 0x11a88d callq 0x2801a movq 0x8(%r15), %rsi testq %rsi, %rsi je 0x75ad4 leaq 0x18(%rsp), %r13 movq %r13, -0x10(%r13) movq $0x0, -0x8(%r13) movb $0x0, (%r13) addq $0xf, %rsi leaq 0x8(%rsp), %rdi callq 0x20e10 leaq 0xa4e0d(%rip), %rsi # 0x11a88e leaq 0x8(%rsp), %rdi callq 0x20b30 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x20550 leaq 0x8(%rsp), %rdi movl $0x20, %esi callq 0x213c0 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x20550 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x75ad4 movq 0x18(%rsp), %rsi incq %rsi callq 0x20170 leaq 0xa4dc2(%rip), %rsi # 0x11a89d movq %rbx, %rdi callq 0x20b30 movl 0x20(%r14), %edi cmpl $0xe, %edi jne 0x75b77 movq 0x98(%r14), %rax addq $0x28, %r14 movq %rax, 0x30(%rsp) leaq 0x38(%rsp), %rdi movq %r14, %rsi callq 0x7575e leaq 0x2f(%rsp), %r8 movb $0x27, (%r8) leaq 0xa4d83(%rip), %rdx # 0x11a8a0 leaq 0x8(%rsp), %rdi leaq 0x30(%rsp), %rsi leaq 0x38(%rsp), %rcx callq 0x7ba5a movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x20550 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x75b5e movq 0x18(%rsp), %rsi incq %rsi callq 0x20170 leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x75bf1 movq 0x48(%rsp), %rsi jmp 0x75be9 callq 0x7bb1c movq %rax, %r14 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) movq %rax, %rdi callq 0x20670 leaq 0xb(%rax), %rsi leaq 0x8(%rsp), %rdi callq 0x20e10 leaq 0xa4cfe(%rip), %rsi # 0x11a8af leaq 0x8(%rsp), %rdi callq 0x20b30 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x20b30 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x20550 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x75bf1 movq 0x18(%rsp), %rsi incq %rsi callq 0x20170 testl %ebp, %ebp je 0x75c71 movl %ebp, %edi callq 0x7bb1c movq %rax, %r14 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) movq %rax, %rdi callq 0x20670 leaq 0xb(%rax), %rsi leaq 0x8(%rsp), %rdi callq 0x20e10 leaq 0xa4c8a(%rip), %rsi # 0x11a8bb leaq 0x8(%rsp), %rdi callq 0x20b30 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x20b30 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x20550 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x75c71 movq 0x18(%rsp), %rsi incq %rsi callq 0x20170 movq %rbx, %rax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x75cca movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x75ca8 movq 0x18(%rsp), %rsi incq %rsi callq 0x20170 jmp 0x75ca8 movq %rax, %r14 leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x75cf3 movq 0x48(%rsp), %rsi jmp 0x75ceb jmp 0x75cc3 jmp 0x75cca jmp 0x75cd9 movq %rax, %r14 jmp 0x75cf3 jmp 0x75cca movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi jne 0x75ce6 jmp 0x75cf3 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x75cf3 movq 0x18(%rsp), %rsi incq %rsi callq 0x20170 movq (%rbx), %rdi cmpq %r12, %rdi je 0x75d07 movq (%r12), %rsi incq %rsi callq 0x20170 movq %r14, %rdi callq 0x20ae0 nop
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r15, rcx mov ebp, edx mov r14, rsi mov rbx, rdi lea r12, [rdi+10h] mov [rdi], r12 lea rsi, aSyntaxError; "syntax error " lea rdx, aSyntaxError+0Dh; "" 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 rsi, [r15+8] test rsi, rsi jz short loc_75AD4 lea r13, [rsp+88h+var_70] mov [r13-10h], r13 mov qword ptr [r13-8], 0 mov byte ptr [r13+0], 0 add rsi, 0Fh lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) lea rsi, aWhileParsing; "while parsing " lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong) lea rdi, [rsp+88h+var_80] mov esi, 20h ; ' ' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong) mov rdi, [rsp+88h+var_80]; void * cmp rdi, r13 jz short loc_75AD4 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75AD4: lea rsi, asc_11A89D; "- " mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov edi, [r14+20h] cmp edi, 0Eh jnz loc_75B77 mov rax, [r14+98h] add r14, 28h ; '(' mov [rsp+88h+var_58], rax lea rdi, [rsp+88h+var_50] mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<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::detail::input_stream_adapter>::get_token_string(void) lea r8, [rsp+88h+var_59] mov byte ptr [r8], 27h ; ''' lea rdx, aLastRead; "; last read: '" lea rdi, [rsp+88h+var_80] lea rsi, [rsp+88h+var_58] lea rcx, [rsp+88h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong) lea rax, [rsp+88h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_75B5E mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75B5E: lea rax, [rsp+88h+var_40] mov rdi, [rax-10h] cmp rdi, rax jz loc_75BF1 mov rsi, [rsp+88h+var_40] jmp short loc_75BE9 loc_75B77: call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) mov r14, rax lea r15, [rsp+88h+var_70] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 mov rdi, rax call _strlen lea rsi, [rax+0Bh] lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) lea rsi, aUnexpected; "unexpected " lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rdi, [rsp+88h+var_80] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong) mov rdi, [rsp+88h+var_80]; void * cmp rdi, r15 jz short loc_75BF1 mov rsi, [rsp+88h+var_70] loc_75BE9: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75BF1: test ebp, ebp jz short loc_75C71 mov edi, ebp call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) mov r14, rax lea r15, [rsp+88h+var_70] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 mov rdi, rax call _strlen lea rsi, [rax+0Bh] lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) lea rsi, aExpected; "; expected " lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rdi, [rsp+88h+var_80] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong) mov rdi, [rsp+88h+var_80]; void * cmp rdi, r15 jz short loc_75C71 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75C71: mov rax, rbx add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_75CCA mov r14, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_75CA8 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_75CA8 mov r14, rax loc_75CA8: lea rax, [rsp+arg_40] mov rdi, [rax-10h] cmp rdi, rax jz short loc_75CF3 mov rsi, [rsp+arg_40] jmp short loc_75CEB jmp short loc_75CC3 jmp short loc_75CCA jmp short loc_75CD9 loc_75CC3: mov r14, rax jmp short loc_75CF3 jmp short $+2 loc_75CCA: mov r14, rax mov rdi, [rsp+arg_0] cmp rdi, r15 jnz short loc_75CE6 jmp short loc_75CF3 loc_75CD9: mov r14, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r13 jz short loc_75CF3 loc_75CE6: mov rsi, [rsp+arg_10] loc_75CEB: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75CF3: mov rdi, [rbx]; void * cmp rdi, r12 jz short loc_75D07 mov rsi, [r12] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75D07: mov rdi, r14 call __Unwind_Resume
_QWORD * nlohmann::json_abi_v3_11_3::detail::parser<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::exception_message( _QWORD *a1, long long a2, unsigned int a3, _QWORD *a4) { long long v8; // rsi void *v9; // rdi long long v10; // rsi long long v11; // r14 long long v12; // rax long long v13; // r14 long long v14; // rax void *v16; // [rsp+8h] [rbp-80h] BYREF long long v17; // [rsp+10h] [rbp-78h] _QWORD v18[2]; // [rsp+18h] [rbp-70h] BYREF char v19; // [rsp+2Fh] [rbp-59h] BYREF long long v20; // [rsp+30h] [rbp-58h] BYREF _QWORD v21[2]; // [rsp+38h] [rbp-50h] BYREF long long v22; // [rsp+48h] [rbp-40h] BYREF *a1 = a1 + 2; std::string::_M_construct<char const*>((long long)a1, "syntax error ", (long long)""); v8 = a4[1]; if ( v8 ) { v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; std::string::reserve(&v16, v8 + 15); std::string::append(&v16, "while parsing "); std::string::append(&v16, *a4, a4[1]); std::string::push_back(&v16, 32LL); std::string::append(a1, v16, v17); if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); } std::string::append(a1, "- "); if ( *(_DWORD *)(a2 + 32) == 14 ) { v20 = *(_QWORD *)(a2 + 152); nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_token_string( (long long)v21, a2 + 40); v19 = 39; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>( &v16, &v20, "; last read: '", v21, &v19); std::string::append(a1, v16, v17); if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); v9 = (void *)v21[0]; if ( (long long *)v21[0] != &v22 ) { v10 = v22; LABEL_11: operator delete(v9, v10 + 1); } } else { v11 = ((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name)(); v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; v12 = strlen(v11); std::string::reserve(&v16, v12 + 11); std::string::append(&v16, "unexpected "); std::string::append(&v16, v11); std::string::append(a1, v16, v17); v9 = v16; if ( v16 != v18 ) { v10 = v18[0]; goto LABEL_11; } } if ( a3 ) { v13 = nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name(a3); v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; v14 = strlen(v13); std::string::reserve(&v16, v14 + 11); std::string::append(&v16, "; expected "); std::string::append(&v16, v13); std::string::append(a1, v16, v17); if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); } return a1; }
exception_message: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R15,RCX MOV EBP,EDX MOV R14,RSI MOV RBX,RDI LEA R12,[RDI + 0x10] MOV qword ptr [RDI],R12 LEA RSI,[0x21a880] LEA RDX,[0x21a88d] CALL 0x0012801a MOV RSI,qword ptr [R15 + 0x8] TEST RSI,RSI JZ 0x00175ad4 LEA R13,[RSP + 0x18] MOV qword ptr [R13 + -0x10],R13 MOV qword ptr [R13 + -0x8],0x0 MOV byte ptr [R13],0x0 ADD RSI,0xf LAB_00175a70: LEA RDI,[RSP + 0x8] CALL 0x00120e10 LEA RSI,[0x21a88e] LEA RDI,[RSP + 0x8] CALL 0x00120b30 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x00120550 LEA RDI,[RSP + 0x8] MOV ESI,0x20 CALL 0x001213c0 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_00175ab5: MOV RDI,RBX CALL 0x00120550 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x00175ad4 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00120170 LAB_00175ad4: LEA RSI,[0x21a89d] MOV RDI,RBX CALL 0x00120b30 MOV EDI,dword ptr [R14 + 0x20] CMP EDI,0xe JNZ 0x00175b77 MOV RAX,qword ptr [R14 + 0x98] ADD R14,0x28 MOV qword ptr [RSP + 0x30],RAX LAB_00175b00: LEA RDI,[RSP + 0x38] MOV RSI,R14 CALL 0x0017575e LEA R8,[RSP + 0x2f] MOV byte ptr [R8],0x27 LAB_00175b16: LEA RDX,[0x21a8a0] LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x30] LEA RCX,[RSP + 0x38] CALL 0x0017ba5a MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_00175b3b: MOV RDI,RBX CALL 0x00120550 LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00175b5e MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00120170 LAB_00175b5e: LEA RAX,[RSP + 0x48] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00175bf1 MOV RSI,qword ptr [RSP + 0x48] JMP 0x00175be9 LAB_00175b77: CALL 0x0017bb1c MOV R14,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 MOV RDI,RAX CALL 0x00120670 LEA RSI,[RAX + 0xb] LAB_00175ba0: LEA RDI,[RSP + 0x8] CALL 0x00120e10 LEA RSI,[0x21a8af] LEA RDI,[RSP + 0x8] CALL 0x00120b30 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x00120b30 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_00175bd2: MOV RDI,RBX CALL 0x00120550 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x00175bf1 MOV RSI,qword ptr [RSP + 0x18] LAB_00175be9: INC RSI CALL 0x00120170 LAB_00175bf1: TEST EBP,EBP JZ 0x00175c71 MOV EDI,EBP CALL 0x0017bb1c MOV R14,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 MOV RDI,RAX CALL 0x00120670 LEA RSI,[RAX + 0xb] LAB_00175c20: LEA RDI,[RSP + 0x8] CALL 0x00120e10 LEA RSI,[0x21a8bb] LEA RDI,[RSP + 0x8] CALL 0x00120b30 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x00120b30 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_00175c52: MOV RDI,RBX CALL 0x00120550 LAB_00175c5a: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x00175c71 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00120170 LAB_00175c71: MOV RAX,RBX ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parser<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::detail::input_stream_adapter>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<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> >::token_type, std::__cxx11::string const&) */ long * nlohmann::json_abi_v3_11_3::detail:: parser<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::detail::input_stream_adapter> ::exception_message(long *param_1,long param_2,int param_3,ulong *param_4) { char *pcVar1; long *local_80; int8 local_78; int1 local_70; int7 uStack_6f; int1 local_59; int8 local_58; long *local_50 [2]; long local_40 [2]; *param_1 = (long)(param_1 + 2); std::__cxx11::string::_M_construct<char_const*>(param_1,"syntax error ",""); if (param_4[1] != 0) { local_78 = 0; local_70 = 0; /* try { // try from 00175a70 to 00175aaa has its CatchHandler @ 00175cd9 */ local_80 = (long *)&local_70; std::__cxx11::string::reserve((ulong)&local_80); std::__cxx11::string::append((char *)&local_80); std::__cxx11::string::append((char *)&local_80,*param_4); std::__cxx11::string::push_back((char)&local_80); /* try { // try from 00175ab5 to 00175abc has its CatchHandler @ 00175cc1 */ std::__cxx11::string::append((char *)param_1,(ulong)local_80); if (local_80 != (long *)&local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } } /* try { // try from 00175ad4 to 00175ae2 has its CatchHandler @ 00175cc3 */ std::__cxx11::string::append((char *)param_1); if (*(int *)(param_2 + 0x20) == 0xe) { local_58 = *(int8 *)(param_2 + 0x98); /* try { // try from 00175b00 to 00175b0c has its CatchHandler @ 00175cbd */ lexer<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::detail::input_stream_adapter> ::get_token_string(); local_59 = 0x27; /* try { // try from 00175b16 to 00175b30 has its CatchHandler @ 00175ca5 */ concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char> ((char **)&local_80,(char *)&local_58,(string *)"; last read: \'",(char *)local_50); /* try { // try from 00175b3b to 00175b42 has its CatchHandler @ 00175c85 */ std::__cxx11::string::append((char *)param_1,(ulong)local_80); if (local_80 != (long *)&local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } if (local_50[0] == local_40) goto LAB_00175bf1; } else { pcVar1 = (char *)lexer_base<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>> ::token_type_name(); local_78 = 0; local_70 = 0; local_80 = (long *)&local_70; strlen(pcVar1); /* try { // try from 00175ba0 to 00175bc7 has its CatchHandler @ 00175cc8 */ std::__cxx11::string::reserve((ulong)&local_80); std::__cxx11::string::append((char *)&local_80); std::__cxx11::string::append((char *)&local_80); /* try { // try from 00175bd2 to 00175bd9 has its CatchHandler @ 00175c83 */ std::__cxx11::string::append((char *)param_1,(ulong)local_80); if (local_80 == (long *)&local_70) goto LAB_00175bf1; local_40[0] = CONCAT71(uStack_6f,local_70); local_50[0] = local_80; } operator_delete(local_50[0],local_40[0] + 1); LAB_00175bf1: if (param_3 != 0) { pcVar1 = (char *)lexer_base<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>> ::token_type_name(param_3); local_78 = 0; local_70 = 0; local_80 = (long *)&local_70; strlen(pcVar1); /* try { // try from 00175c20 to 00175c47 has its CatchHandler @ 00175cca */ std::__cxx11::string::reserve((ulong)&local_80); std::__cxx11::string::append((char *)&local_80); std::__cxx11::string::append((char *)&local_80); /* try { // try from 00175c52 to 00175c59 has its CatchHandler @ 00175cbf */ std::__cxx11::string::append((char *)param_1,(ulong)local_80); if (local_80 != (long *)&local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } } return param_1; }