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,100
trnman_free_trn
eloqsql/storage/maria/trnman.c
static void trnman_free_trn(TRN *trn) { /* union is to solve strict aliasing issue. without it gcc 3.4.3 doesn't notice that updating *(void **)&tmp modifies the value of tmp. */ union { TRN *trn; void *v; } tmp; DBUG_ASSERT(trn != &dummy_transaction_object); mysql_mutex_lock(&trn->state_lock); trn->short_id= 0; mysql_mutex_unlock(&trn->state_lock); tmp.trn= pool; do { /* without this volatile cast gcc-3.4.4 moves the assignment down after the loop at -O2 */ *(TRN * volatile *)&(trn->next)= tmp.trn; } while (!my_atomic_casptr((void **)(char*)&pool, &tmp.v, trn)); }
O3
c
trnman_free_trn: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %r14 cmpq $0x0, 0x50(%rdi) jne 0x608ee movq %r14, %rdi callq 0x29200 movw $0x0, 0xac(%rbx) movq 0x50(%rbx), %rdi testq %rdi, %rdi jne 0x60904 movq %r14, %rdi callq 0x291c0 movq 0xb9e95e(%rip), %rax # 0xbff238 movq %rax, 0x68(%rbx) lock cmpxchgq %rbx, 0xb9e951(%rip) # 0xbff238 jne 0x608da popq %rbx popq %r14 popq %rbp retq leaq 0x79dd0(%rip), %rsi # 0xda6c5 movq %r14, %rdi movl $0x22d, %edx # imm = 0x22D callq 0x2eb6f jmp 0x608b9 leaq 0x325705(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x608cb
trnman_free_trn: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdi lea r14, [rdi+10h] cmp qword ptr [rdi+50h], 0 jnz short loc_608EE mov rdi, r14 call _pthread_mutex_lock loc_608B9: mov word ptr [rbx+0ACh], 0 mov rdi, [rbx+50h] test rdi, rdi jnz short loc_60904 loc_608CB: mov rdi, r14 call _pthread_mutex_unlock mov rax, cs:pool loc_608DA: mov [rbx+68h], rax lock cmpxchg cs:pool, rbx jnz short loc_608DA pop rbx pop r14 pop rbp retn loc_608EE: lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r14 mov edx, 22Dh call psi_mutex_lock jmp short loc_608B9 loc_60904: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_608CB
signed long long trnman_free_trn(signed long long a1) { signed long long result; // rax signed long long v2; // rtt if ( *(_QWORD *)(a1 + 80) ) psi_mutex_lock(a1 + 16, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c", 0x22Du); else pthread_mutex_lock(a1 + 16); *(_WORD *)(a1 + 172) = 0; if ( *(_QWORD *)(a1 + 80) ) PSI_server[44](); pthread_mutex_unlock(a1 + 16); result = pool; do { *(_QWORD *)(a1 + 104) = result; v2 = result; result = _InterlockedCompareExchange64(&pool, a1, result); } while ( v2 != result ); return result; }
trnman_free_trn: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDI LEA R14,[RDI + 0x10] CMP qword ptr [RDI + 0x50],0x0 JNZ 0x001608ee MOV RDI,R14 CALL 0x00129200 LAB_001608b9: MOV word ptr [RBX + 0xac],0x0 MOV RDI,qword ptr [RBX + 0x50] TEST RDI,RDI JNZ 0x00160904 LAB_001608cb: MOV RDI,R14 CALL 0x001291c0 MOV RAX,qword ptr [0x00cff238] LAB_001608da: MOV qword ptr [RBX + 0x68],RAX CMPXCHG.LOCK qword ptr [0x00cff238],RBX JNZ 0x001608da POP RBX POP R14 POP RBP RET LAB_001608ee: LEA RSI,[0x1da6c5] MOV RDI,R14 MOV EDX,0x22d CALL 0x0012eb6f JMP 0x001608b9 LAB_00160904: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001608cb
void trnman_free_trn(long param_1) { pthread_mutex_t *__mutex; long lVar1; long lVar2; bool bVar3; __mutex = (pthread_mutex_t *)(param_1 + 0x10); if (*(long *)(param_1 + 0x50) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x22d); } *(int2 *)(param_1 + 0xac) = 0; if (*(long *)(param_1 + 0x50) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); lVar2 = pool; do { *(long *)(param_1 + 0x68) = lVar2; LOCK(); bVar3 = lVar2 != pool; lVar1 = param_1; if (bVar3) { lVar2 = pool; lVar1 = pool; } pool = lVar1; UNLOCK(); } while (bVar3); return; }
3,101
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/json.hpp
iterator insert(const_iterator pos, const basic_json& val) { // insert only works for arrays if (JSON_HEDLEY_LIKELY(is_array())) { // check if iterator pos fits to this JSON value if (JSON_HEDLEY_UNLIKELY(pos.m_object != this)) { JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this)); } // insert to array and return iterator return insert_iterator(pos, val); } JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this)); }
O1
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 cmpb $0x2, (%rsi) jne 0x7440c movq (%rdx), %rsi cmpq %r14, %rsi jne 0x74468 movq %rdi, %rbx leaq 0x28(%rsp), %rax movq %rsi, (%rax) movups 0x8(%rdx), %xmm0 movups %xmm0, 0x8(%rax) movq 0x18(%rdx), %rdx movq %rdx, 0x18(%rax) movq %r14, %rsi movq %rax, %rdx callq 0x7450e movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x19380 movq %rax, %rbx movq %r14, %rdi callq 0x43512 leaq 0x20(%rsp), %rdx movq %rax, (%rdx) leaq 0x3f638(%rip), %rsi # 0xb3a68 movq %rsp, %rdi callq 0x745a9 movb $0x1, %bpl movq %rsp, %rdx movq %rbx, %rdi movl $0x135, %esi # imm = 0x135 movq %r14, %rcx callq 0x4f4f8 xorl %ebp, %ebp leaq 0x6ee71(%rip), %rsi # 0xe32c8 leaq -0x228e4(%rip), %rdx # 0x51b7a movq %rbx, %rdi callq 0x19bb0 jmp 0x744c2 movl $0x20, %edi callq 0x19380 movq %rax, %rbx leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x3e5fd(%rip), %rsi # 0xb2a82 leaq 0x3e619(%rip), %rdx # 0xb2aa5 movq %rsp, %rdi callq 0x2175a movb $0x1, %bpl movq %rsp, %rdx movq %rbx, %rdi movl $0xca, %esi movq %r14, %rcx callq 0x4f290 xorl %ebp, %ebp leaq 0x6ef3d(%rip), %rsi # 0xe33f0 leaq -0x22940(%rip), %rdx # 0x51b7a movq %rbx, %rdi callq 0x19bb0 movq %rax, %r14 movq (%rsp), %rdi cmpq %r15, %rdi jne 0x744e3 jmp 0x744f8 jmp 0x744f2 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x744f8 movq 0x10(%rsp), %rsi incq %rsi callq 0x196e0 jmp 0x744f8 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x74505 movq %rbx, %rdi callq 0x19520 movq %r14, %rdi callq 0x19c10 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6insertENS0_6detail9iter_implIKSD_EERSG_: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 48h mov r14, rsi cmp byte ptr [rsi], 2 jnz short loc_7440C mov rsi, [rdx] cmp rsi, r14 jnz loc_74468 mov rbx, rdi lea rax, [rsp+68h+var_40] mov [rax], rsi movups xmm0, xmmword ptr [rdx+8] movups xmmword ptr [rax+8], xmm0 mov rdx, [rdx+18h] mov [rax+18h], rdx mov rsi, r14 mov rdx, rax call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE15insert_iteratorIJRKSD_EEENS0_6detail9iter_implISD_EENSI_ISF_EEDpOT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&>(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>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 rax, rbx add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_7440C: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+68h+var_48] mov [rdx], rax lea rsi, aCannotUseInser; "cannot use insert() with " mov rdi, rsp call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA26_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>(char const(&)[26],char const* &&) mov bpl, 1 mov rdx, rsp mov rdi, rbx; this mov esi, 135h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_744C2 loc_74468: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r15, [rsp+68h+var_58] mov [r15-10h], r15 lea rsi, aIteratorDoesNo; "iterator does not fit current value" lea rdx, aIteratorDoesNo+23h; "" mov rdi, rsp 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 bpl, 1 mov rdx, rsp mov rdi, rbx; this mov esi, 0CAh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_744C2: mov r14, rax mov rdi, [rsp+68h+var_68] cmp rdi, r15 jnz short loc_744E3 jmp short loc_744F8 jmp short loc_744F2 mov r14, rax lea rax, [rsp+68h+var_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_744F8 loc_744E3: mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_744F8 loc_744F2: mov r14, rax mov bpl, 1 loc_744F8: test bpl, bpl jz short loc_74505 mov rdi, rbx; void * call ___cxa_free_exception loc_74505: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::insert( long long a1, unsigned __int8 *a2, long long a3) { nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx nlohmann::json_abi_v3_11_3::detail::exception *v5; // rbx _QWORD v6[2]; // [rsp+0h] [rbp-68h] BYREF _QWORD v7[3]; // [rsp+10h] [rbp-58h] BYREF unsigned __int8 *v8; // [rsp+28h] [rbp-40h] BYREF __int128 v9; // [rsp+30h] [rbp-38h] long long v10; // [rsp+40h] [rbp-28h] if ( *a2 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v7[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>::type_name(a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>( v6, "cannot use insert() with "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 309, v6); __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); } if ( *(unsigned __int8 **)a3 != a2 ) { v5 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v6[0] = v7; std::string::_M_construct<char const*>(v6, "iterator does not fit current value", (long long)""); ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( v5, 202, v6); __cxa_throw( v5, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v8 = *(unsigned __int8 **)a3; v9 = *(_OWORD *)(a3 + 8); v10 = *(_QWORD *)(a3 + 24); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&>( a1, a2, &v8); return a1; }
insert: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RSI CMP byte ptr [RSI],0x2 JNZ 0x0017440c MOV RSI,qword ptr [RDX] CMP RSI,R14 JNZ 0x00174468 MOV RBX,RDI LEA RAX,[RSP + 0x28] MOV qword ptr [RAX],RSI MOVUPS XMM0,xmmword ptr [RDX + 0x8] MOVUPS xmmword ptr [RAX + 0x8],XMM0 MOV RDX,qword ptr [RDX + 0x18] MOV qword ptr [RAX + 0x18],RDX MOV RSI,R14 MOV RDX,RAX CALL 0x0017450e MOV RAX,RBX ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_0017440c: MOV EDI,0x20 CALL 0x00119380 MOV RBX,RAX MOV RDI,R14 CALL 0x00143512 LEA RDX,[RSP + 0x20] MOV qword ptr [RDX],RAX LAB_00174429: LEA RSI,[0x1b3a68] MOV RDI,RSP CALL 0x001745a9 MOV BPL,0x1 LAB_0017443b: MOV RDX,RSP MOV RDI,RBX MOV ESI,0x135 MOV RCX,R14 CALL 0x0014f4f8 XOR EBP,EBP LEA RSI,[0x1e32c8] LEA RDX,[0x151b7a] MOV RDI,RBX CALL 0x00119bb0 LAB_00174468: MOV EDI,0x20 CALL 0x00119380 MOV RBX,RAX LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 LAB_0017447e: LEA RSI,[0x1b2a82] LEA RDX,[0x1b2aa5] MOV RDI,RSP CALL 0x0012175a MOV BPL,0x1 LAB_00174497: MOV RDX,RSP MOV RDI,RBX MOV ESI,0xca MOV RCX,R14 CALL 0x0014f290 XOR EBP,EBP LEA RSI,[0x1e33f0] LEA RDX,[0x151b7a] MOV RDI,RBX CALL 0x00119bb0
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> * __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::insert(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_2,long *param_3) { int8 uVar1; int1 *local_68 [2]; int1 local_58 [16]; char *local_48; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *local_40; int4 local_38; int4 uStack_34; int4 uStack_30; int4 uStack_2c; long local_28; if (*param_2 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { uVar1 = __cxa_allocate_exception(0x20); local_48 = (char *)type_name(param_2); /* try { // try from 00174429 to 00174437 has its CatchHandler @ 001744f2 */ detail::concat<std::__cxx11::string,char_const(&)[26],char_const*> ((detail *)local_68,"cannot use insert() with ",&local_48); /* try { // try from 0017443b to 00174465 has its CatchHandler @ 001744d2 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar1,0x135,local_68,param_2); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception); } local_40 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*param_3; if (local_40 == param_2) { local_38 = (int4)param_3[1]; uStack_34 = *(int4 *)((long)param_3 + 0xc); uStack_30 = (int4)param_3[2]; uStack_2c = *(int4 *)((long)param_3 + 0x14); local_28 = param_3[3]; insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&> (this,param_2,&local_40); return this; } uVar1 = __cxa_allocate_exception(0x20); local_68[0] = local_58; /* try { // try from 0017447e to 00174493 has its CatchHandler @ 001744d0 */ std::__cxx11::string::_M_construct<char_const*>(local_68,"iterator does not fit current value","") ; /* try { // try from 00174497 to 001744c1 has its CatchHandler @ 001744c2 */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar1,0xca,local_68,param_2); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&detail::invalid_iterator::typeinfo,detail::exception::~exception); }
3,102
main
eloqsql/storage/innobase/unittest/innodb_sync-t.cc
int main(int argc __attribute__((unused)), char **argv) { std::thread t[N_THREADS]; MY_INIT(argv[0]); plan(4); m.init(); for (auto i= N_THREADS; i--; ) t[i]= std::thread(test_srw_mutex); for (auto i= N_THREADS; i--; ) t[i].join(); m.destroy(); ok(true, "srw_mutex"); l.init(); for (auto i= N_THREADS; i--; ) t[i]= std::thread(test_srw_lock); for (auto i= N_THREADS; i--; ) t[i].join(); ok(true, "srw_lock"); l.destroy(); ssux.init(); for (auto i= N_THREADS; i--; ) t[i]= std::thread(test_ssux_lock); for (auto i= N_THREADS; i--; ) t[i].join(); ok(true, "ssux_lock"); ssux.destroy(); sux.init(); for (auto i= N_THREADS; i--; ) t[i]= std::thread(test_sux_lock); for (auto i= N_THREADS; i--; ) t[i].join(); ok(true, "sux_lock"); sux.free(); }
O3
cpp
main: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xf8, %rsp movq %rsi, %rbx leaq -0x110(%rbp), %rdi movl $0xf0, %edx xorl %esi, %esi callq 0x241b0 movq (%rbx), %rax leaq 0x341034(%rip), %rcx # 0x365cc0 movq %rax, (%rcx) callq 0x25e5c movl $0x4, %edi callq 0x2df2f movl $0x1d, %r15d leaq 0x220(%rip), %rbx # 0x24ecb leaq -0x20(%rbp), %r14 movq %r14, %rdi movq %rbx, %rsi callq 0x25350 movl %r15d, %eax cmpq $0x0, -0x110(%rbp,%rax,8) jne 0x24ec6 movq -0x20(%rbp), %rcx movq %rcx, -0x110(%rbp,%rax,8) addl $-0x1, %r15d jb 0x24caf movl $0x1d, %ebx cmpq $-0x1, %rbx je 0x24d00 movl %ebx, %eax leaq -0x110(,%rax,8), %rdi addq %rbp, %rdi decq %rbx callq 0x245b0 jmp 0x24ce3 leaq 0x372fd(%rip), %rsi # 0x5c004 movl $0x1, %edi xorl %eax, %eax callq 0x2e0bb movl $0x1d, %r15d leaq 0x202(%rip), %rbx # 0x24f22 leaq -0x20(%rbp), %r14 movq %r14, %rdi movq %rbx, %rsi callq 0x25350 movl %r15d, %eax cmpq $0x0, -0x110(%rbp,%rax,8) jne 0x24ec6 movq -0x20(%rbp), %rcx movq %rcx, -0x110(%rbp,%rax,8) addl $-0x1, %r15d jb 0x24d24 movl $0x1d, %ebx cmpq $-0x1, %rbx je 0x24d75 movl %ebx, %eax leaq -0x110(,%rax,8), %rdi addq %rbp, %rdi decq %rbx callq 0x245b0 jmp 0x24d58 leaq 0x37292(%rip), %rsi # 0x5c00e movl $0x1, %edi xorl %eax, %eax callq 0x2e0bb movl $0x1d, %r15d leaq 0x225(%rip), %rbx # 0x24fba leaq -0x20(%rbp), %r14 movq %r14, %rdi movq %rbx, %rsi callq 0x25350 movl %r15d, %eax cmpq $0x0, -0x110(%rbp,%rax,8) jne 0x24ec6 movq -0x20(%rbp), %rcx movq %rcx, -0x110(%rbp,%rax,8) addl $-0x1, %r15d jb 0x24d99 movl $0x1d, %ebx cmpq $-0x1, %rbx je 0x24dea movl %ebx, %eax leaq -0x110(,%rax,8), %rdi addq %rbp, %rdi decq %rbx callq 0x245b0 jmp 0x24dcd leaq 0x37226(%rip), %rsi # 0x5c017 movl $0x1, %edi xorl %eax, %eax callq 0x2e0bb movl $0x1d, %r15d leaq 0x2ba(%rip), %rbx # 0x250c4 leaq -0x20(%rbp), %r14 movq %r14, %rdi movq %rbx, %rsi callq 0x25350 movl %r15d, %eax cmpq $0x0, -0x110(%rbp,%rax,8) jne 0x24ec6 movq -0x20(%rbp), %rcx movq %rcx, -0x110(%rbp,%rax,8) addl $-0x1, %r15d jb 0x24e0e movl $0x1d, %ebx cmpq $-0x1, %rbx je 0x24e5f movl %ebx, %eax leaq -0x110(,%rax,8), %rdi addq %rbp, %rdi decq %rbx callq 0x245b0 jmp 0x24e42 leaq 0x371b2(%rip), %rsi # 0x5c018 movl $0x1, %edi xorl %eax, %eax callq 0x2e0bb movl $0xf0, %eax cmpq $0x0, -0x118(%rbp,%rax) jne 0x24ec6 addq $-0x8, %rax jne 0x24e77 xorl %eax, %eax addq $0xf8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq jmp 0x24ea8 jmp 0x24ea8 jmp 0x24ea8 jmp 0x24ea8 jmp 0x24ea8 jmp 0x24ea8 jmp 0x24ea8 jmp 0x24ea8 movl $0xf0, %ecx cmpq $0x0, -0x118(%rbp,%rcx) jne 0x24ec6 addq $-0x8, %rcx jne 0x24ead movq %rax, %rdi callq 0x245e0 callq 0x240f0
main: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 0F8h mov rbx, rsi lea rdi, [rbp+var_110] mov edx, 0F0h xor esi, esi call _memset mov rax, [rbx] lea rcx, my_progname mov [rcx], rax call my_init mov edi, 4 call plan mov r15d, 1Dh lea rbx, _ZL14test_srw_mutexv; test_srw_mutex(void) lea r14, [rbp+var_20] loc_24CAF: mov rdi, r14 mov rsi, rbx call _ZNSt6threadC2IRFvvEJEvEEOT_DpOT0_ mov eax, r15d cmp [rbp+rax*8+var_110], 0 jnz loc_24EC6 mov rcx, [rbp+var_20] mov [rbp+rax*8+var_110], rcx add r15d, 0FFFFFFFFh jb short loc_24CAF mov ebx, 1Dh loc_24CE3: cmp rbx, 0FFFFFFFFFFFFFFFFh jz short loc_24D00 mov eax, ebx lea rdi, ds:0FFFFFFFFFFFFFEF0h[rax*8] add rdi, rbp; this dec rbx call __ZNSt6thread4joinEv; std::thread::join(void) jmp short loc_24CE3 loc_24D00: lea rsi, aSrwMutex; "srw_mutex" mov edi, 1 xor eax, eax call ok mov r15d, 1Dh lea rbx, _ZL13test_srw_lockv; test_srw_lock(void) lea r14, [rbp+var_20] loc_24D24: mov rdi, r14 mov rsi, rbx call _ZNSt6threadC2IRFvvEJEvEEOT_DpOT0_ mov eax, r15d cmp [rbp+rax*8+var_110], 0 jnz loc_24EC6 mov rcx, [rbp+var_20] mov [rbp+rax*8+var_110], rcx add r15d, 0FFFFFFFFh jb short loc_24D24 mov ebx, 1Dh loc_24D58: cmp rbx, 0FFFFFFFFFFFFFFFFh jz short loc_24D75 mov eax, ebx lea rdi, ds:0FFFFFFFFFFFFFEF0h[rax*8] add rdi, rbp; this dec rbx call __ZNSt6thread4joinEv; std::thread::join(void) jmp short loc_24D58 loc_24D75: lea rsi, aSrwLock; "srw_lock" mov edi, 1 xor eax, eax call ok mov r15d, 1Dh lea rbx, _ZL14test_ssux_lockv; test_ssux_lock(void) lea r14, [rbp+var_20] loc_24D99: mov rdi, r14 mov rsi, rbx call _ZNSt6threadC2IRFvvEJEvEEOT_DpOT0_ mov eax, r15d cmp [rbp+rax*8+var_110], 0 jnz loc_24EC6 mov rcx, [rbp+var_20] mov [rbp+rax*8+var_110], rcx add r15d, 0FFFFFFFFh jb short loc_24D99 mov ebx, 1Dh loc_24DCD: cmp rbx, 0FFFFFFFFFFFFFFFFh jz short loc_24DEA mov eax, ebx lea rdi, ds:0FFFFFFFFFFFFFEF0h[rax*8] add rdi, rbp; this dec rbx call __ZNSt6thread4joinEv; std::thread::join(void) jmp short loc_24DCD loc_24DEA: lea rsi, aSsuxLock; "ssux_lock" mov edi, 1 xor eax, eax call ok mov r15d, 1Dh lea rbx, _ZL13test_sux_lockv; test_sux_lock(void) lea r14, [rbp+var_20] loc_24E0E: mov rdi, r14 mov rsi, rbx call _ZNSt6threadC2IRFvvEJEvEEOT_DpOT0_ mov eax, r15d cmp [rbp+rax*8+var_110], 0 jnz loc_24EC6 mov rcx, [rbp+var_20] mov [rbp+rax*8+var_110], rcx add r15d, 0FFFFFFFFh jb short loc_24E0E mov ebx, 1Dh loc_24E42: cmp rbx, 0FFFFFFFFFFFFFFFFh jz short loc_24E5F mov eax, ebx lea rdi, ds:0FFFFFFFFFFFFFEF0h[rax*8] add rdi, rbp; this dec rbx call __ZNSt6thread4joinEv; std::thread::join(void) jmp short loc_24E42 loc_24E5F: lea rsi, aSsuxLock+1; "sux_lock" mov edi, 1 xor eax, eax call ok mov eax, 0F0h loc_24E77: cmp [rbp+rax+var_118], 0 jnz short loc_24EC6 add rax, 0FFFFFFFFFFFFFFF8h jnz short loc_24E77 xor eax, eax add rsp, 0F8h pop rbx pop r14 pop r15 pop rbp retn jmp short loc_24EA8 jmp short loc_24EA8 jmp short loc_24EA8 jmp short loc_24EA8 jmp short loc_24EA8 jmp short loc_24EA8 jmp short loc_24EA8 jmp short $+2 loc_24EA8: mov ecx, 0F0h loc_24EAD: cmp [rbp+rcx+var_118], 0 jnz short loc_24EC6 add rcx, 0FFFFFFFFFFFFFFF8h jnz short loc_24EAD mov rdi, rax call __Unwind_Resume loc_24EC6: call __ZSt9terminatev; std::terminate(void)
int main(int argc, const char **argv, const char **envp) { int v3; // r15d int v4; // edx int v5; // r8d int v6; // r9d int v7; // ecx bool v8; // cf long long i; // rbx std::thread *v10; // rdi int v11; // r15d int v12; // edx int v13; // r8d int v14; // r9d int v15; // ecx long long j; // rbx std::thread *v17; // rdi int v18; // r15d int v19; // edx int v20; // r8d int v21; // r9d int v22; // ecx long long k; // rbx std::thread *v24; // rdi int v25; // r15d int v26; // edx int v27; // r8d int v28; // r9d int v29; // ecx long long m; // rbx std::thread *v31; // rdi long long v32; // rax _QWORD v35[30]; // [rsp+8h] [rbp-110h] BYREF _QWORD v36[4]; // [rsp+F8h] [rbp-20h] BYREF long long savedregs; // [rsp+118h] [rbp+0h] BYREF memset(v35, 0LL, sizeof(v35)); my_progname = *argv; my_init(); plan(4LL); v3 = 29; do { ZNSt6threadC2IRFvvEJEvEEOT_DpOT0_(v36, test_srw_mutex); if ( v35[v3] ) LABEL_29: std::terminate(); v7 = v36[0]; v35[v3] = v36[0]; v8 = v3-- != 0; } while ( v8 ); for ( i = 29LL; i != -1; --i ) { v10 = (std::thread *)(&savedregs + (unsigned int)i - 34); std::thread::join(v10); } ok(1, (unsigned int)"srw_mutex", v4, v7, v5, v6, v35[0]); v11 = 29; do { ZNSt6threadC2IRFvvEJEvEEOT_DpOT0_(v36, test_srw_lock); if ( v35[v11] ) goto LABEL_29; v15 = v36[0]; v35[v11] = v36[0]; v8 = v11-- != 0; } while ( v8 ); for ( j = 29LL; j != -1; --j ) { v17 = (std::thread *)(&savedregs + (unsigned int)j - 34); std::thread::join(v17); } ok(1, (unsigned int)"srw_lock", v12, v15, v13, v14, v35[0]); v18 = 29; do { ZNSt6threadC2IRFvvEJEvEEOT_DpOT0_(v36, test_ssux_lock); if ( v35[v18] ) goto LABEL_29; v22 = v36[0]; v35[v18] = v36[0]; v8 = v18-- != 0; } while ( v8 ); for ( k = 29LL; k != -1; --k ) { v24 = (std::thread *)(&savedregs + (unsigned int)k - 34); std::thread::join(v24); } ok(1, (unsigned int)"ssux_lock", v19, v22, v20, v21, v35[0]); v25 = 29; do { ZNSt6threadC2IRFvvEJEvEEOT_DpOT0_(v36, test_sux_lock); if ( v35[v25] ) goto LABEL_29; v29 = v36[0]; v35[v25] = v36[0]; v8 = v25-- != 0; } while ( v8 ); for ( m = 29LL; m != -1; --m ) { v31 = (std::thread *)(&savedregs + (unsigned int)m - 34); std::thread::join(v31); } ok(1, (unsigned int)"sux_lock", v26, v29, v27, v28, v35[0]); v32 = 30LL; do { if ( v35[v32 - 1] ) goto LABEL_29; --v32; } while ( v32 * 8 ); return 0; }
main: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xf8 MOV RBX,RSI LEA RDI,[RBP + -0x110] MOV EDX,0xf0 XOR ESI,ESI CALL 0x001241b0 MOV RAX,qword ptr [RBX] LEA RCX,[0x465cc0] MOV qword ptr [RCX],RAX LAB_00124c8f: CALL 0x00125e5c MOV EDI,0x4 CALL 0x0012df2f MOV R15D,0x1d LEA RBX,[0x124ecb] LEA R14,[RBP + -0x20] LAB_00124caf: MOV RDI,R14 MOV RSI,RBX CALL 0x00125350 MOV EAX,R15D CMP qword ptr [RBP + RAX*0x8 + -0x110],0x0 JNZ 0x00124ec6 MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + RAX*0x8 + -0x110],RCX ADD R15D,-0x1 JC 0x00124caf MOV EBX,0x1d LAB_00124ce3: CMP RBX,-0x1 JZ 0x00124d00 MOV EAX,EBX LEA RDI,[-0x110 + RAX*0x8] ADD RDI,RBP DEC RBX LAB_00124cf9: CALL 0x001245b0 JMP 0x00124ce3 LAB_00124d00: LEA RSI,[0x15c004] MOV EDI,0x1 XOR EAX,EAX CALL 0x0012e0bb MOV R15D,0x1d LEA RBX,[0x124f22] LEA R14,[RBP + -0x20] LAB_00124d24: MOV RDI,R14 MOV RSI,RBX CALL 0x00125350 MOV EAX,R15D CMP qword ptr [RBP + RAX*0x8 + -0x110],0x0 JNZ 0x00124ec6 MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + RAX*0x8 + -0x110],RCX ADD R15D,-0x1 JC 0x00124d24 MOV EBX,0x1d LAB_00124d58: CMP RBX,-0x1 JZ 0x00124d75 MOV EAX,EBX LEA RDI,[-0x110 + RAX*0x8] ADD RDI,RBP DEC RBX LAB_00124d6e: CALL 0x001245b0 JMP 0x00124d58 LAB_00124d75: LEA RSI,[0x15c00e] MOV EDI,0x1 XOR EAX,EAX CALL 0x0012e0bb MOV R15D,0x1d LEA RBX,[0x124fba] LEA R14,[RBP + -0x20] LAB_00124d99: MOV RDI,R14 MOV RSI,RBX CALL 0x00125350 MOV EAX,R15D CMP qword ptr [RBP + RAX*0x8 + -0x110],0x0 JNZ 0x00124ec6 MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + RAX*0x8 + -0x110],RCX ADD R15D,-0x1 JC 0x00124d99 MOV EBX,0x1d LAB_00124dcd: CMP RBX,-0x1 JZ 0x00124dea MOV EAX,EBX LEA RDI,[-0x110 + RAX*0x8] ADD RDI,RBP DEC RBX LAB_00124de3: CALL 0x001245b0 JMP 0x00124dcd LAB_00124dea: LEA RSI,[0x15c017] MOV EDI,0x1 XOR EAX,EAX CALL 0x0012e0bb MOV R15D,0x1d LEA RBX,[0x1250c4] LEA R14,[RBP + -0x20] LAB_00124e0e: MOV RDI,R14 MOV RSI,RBX CALL 0x00125350 MOV EAX,R15D CMP qword ptr [RBP + RAX*0x8 + -0x110],0x0 JNZ 0x00124ec6 MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + RAX*0x8 + -0x110],RCX ADD R15D,-0x1 JC 0x00124e0e MOV EBX,0x1d LAB_00124e42: CMP RBX,-0x1 JZ 0x00124e5f MOV EAX,EBX LEA RDI,[-0x110 + RAX*0x8] ADD RDI,RBP DEC RBX LAB_00124e58: CALL 0x001245b0 JMP 0x00124e42 LAB_00124e5f: LEA RSI,[0x15c018] MOV EDI,0x1 XOR EAX,EAX CALL 0x0012e0bb LAB_00124e72: MOV EAX,0xf0 LAB_00124e77: CMP qword ptr [RBP + RAX*0x1 + -0x118],0x0 JNZ 0x00124ec6 ADD RAX,-0x8 JNZ 0x00124e77 XOR EAX,EAX ADD RSP,0xf8 POP RBX POP R14 POP R15 POP RBP RET LAB_00124ec6: CALL 0x001240f0
int8 main(int8 param_1,int8 *param_2) { long lVar1; int iVar2; ulong uVar3; code *pcStack_120; long local_118 [30]; long local_28; pcStack_120 = (code *)0x124c82; memset(local_118,0,0xf0); my_progname = *param_2; /* try { // try from 00124c8f to 00124c9d has its CatchHandler @ 00124e98 */ pcStack_120 = (code *)0x124c94; my_init(); pcStack_120 = (code *)0x124c9e; plan(4); uVar3 = 0x1d; do { /* try { // try from 00124caf to 00124cb9 has its CatchHandler @ 00124ea8 */ pcStack_120 = (code *)0x124cba; std::thread::thread<void(&)(),,void>((thread *)&local_28,test_srw_mutex); iVar2 = (int)uVar3; if (local_118[uVar3] != 0) goto LAB_00124ec6; local_118[uVar3] = local_28; uVar3 = (ulong)(iVar2 - 1); } while (iVar2 != 0); for (lVar1 = 0x1d; lVar1 != -1; lVar1 = lVar1 + -1) { /* try { // try from 00124cf9 to 00124cfd has its CatchHandler @ 00124ea0 */ pcStack_120 = (code *)0x124cfe; std::thread::join(); } /* try { // try from 00124d00 to 00124d12 has its CatchHandler @ 00124e98 */ pcStack_120 = (code *)0x124d13; ok(1,"srw_mutex"); uVar3 = 0x1d; do { /* try { // try from 00124d24 to 00124d2e has its CatchHandler @ 00124ea6 */ pcStack_120 = (code *)0x124d2f; std::thread::thread<void(&)(),,void>((thread *)&local_28,test_srw_lock); iVar2 = (int)uVar3; if (local_118[uVar3] != 0) goto LAB_00124ec6; local_118[uVar3] = local_28; uVar3 = (ulong)(iVar2 - 1); } while (iVar2 != 0); for (lVar1 = 0x1d; lVar1 != -1; lVar1 = lVar1 + -1) { /* try { // try from 00124d6e to 00124d72 has its CatchHandler @ 00124e9e */ pcStack_120 = (code *)0x124d73; std::thread::join(); } /* try { // try from 00124d75 to 00124d87 has its CatchHandler @ 00124e98 */ pcStack_120 = (code *)0x124d88; ok(1,"srw_lock"); uVar3 = 0x1d; do { /* try { // try from 00124d99 to 00124da3 has its CatchHandler @ 00124ea4 */ pcStack_120 = (code *)0x124da4; std::thread::thread<void(&)(),,void>((thread *)&local_28,test_ssux_lock); iVar2 = (int)uVar3; if (local_118[uVar3] != 0) goto LAB_00124ec6; local_118[uVar3] = local_28; uVar3 = (ulong)(iVar2 - 1); } while (iVar2 != 0); for (lVar1 = 0x1d; lVar1 != -1; lVar1 = lVar1 + -1) { /* try { // try from 00124de3 to 00124de7 has its CatchHandler @ 00124e9c */ pcStack_120 = (code *)0x124de8; std::thread::join(); } /* try { // try from 00124dea to 00124dfc has its CatchHandler @ 00124e98 */ pcStack_120 = (code *)0x124dfd; ok(1,"ssux_lock"); uVar3 = 0x1d; do { /* try { // try from 00124e0e to 00124e18 has its CatchHandler @ 00124ea2 */ pcStack_120 = (code *)0x124e19; std::thread::thread<void(&)(),,void>((thread *)&local_28,test_sux_lock); iVar2 = (int)uVar3; if (local_118[uVar3] != 0) goto LAB_00124ec6; local_118[uVar3] = local_28; uVar3 = (ulong)(iVar2 - 1); } while (iVar2 != 0); for (lVar1 = 0x1d; lVar1 != -1; lVar1 = lVar1 + -1) { /* try { // try from 00124e58 to 00124e5c has its CatchHandler @ 00124e9a */ pcStack_120 = (code *)0x124e5d; std::thread::join(); } /* try { // try from 00124e5f to 00124e71 has its CatchHandler @ 00124e98 */ pcStack_120 = (code *)0x124e72; ok(1,"sux_lock"); lVar1 = 0xf0; while (*(long *)((long)local_118 + lVar1 + -8) == 0) { lVar1 = lVar1 + -8; if (lVar1 == 0) { return 0; } } LAB_00124ec6: /* WARNING: Subroutine does not return */ pcStack_120 = test_srw_mutex; std::terminate(); }
3,103
mysql_stmt_fetch_column
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
int STDCALL mysql_stmt_fetch_column(MYSQL_STMT *stmt, MYSQL_BIND *bind, unsigned int column, unsigned long offset) { if (stmt->state < MYSQL_STMT_USER_FETCHING || column >= stmt->field_count || stmt->state == MYSQL_STMT_FETCH_DONE) { SET_CLIENT_STMT_ERROR(stmt, CR_NO_DATA, SQLSTATE_UNKNOWN, 0); return(1); } if (!stmt->bind[column].u.row_ptr) { /* we set row_ptr only for columns which contain data, so this must be a NULL column */ if (bind[0].is_null) *bind[0].is_null= 1; } else { unsigned char *save_ptr; if (bind[0].length) *bind[0].length= *stmt->bind[column].length; else bind[0].length= &stmt->bind[column].length_value; if (bind[0].is_null) *bind[0].is_null= 0; else bind[0].is_null= &bind[0].is_null_value; if (!bind[0].error) bind[0].error= &bind[0].error_value; *bind[0].error= 0; bind[0].offset= offset; save_ptr= stmt->bind[column].u.row_ptr; mysql_ps_fetch_functions[stmt->fields[column].type].func(&bind[0], &stmt->fields[column], &stmt->bind[column].u.row_ptr); stmt->bind[column].u.row_ptr= save_ptr; } return(0); }
O3
c
mysql_stmt_fetch_column: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movl 0x50(%rdi), %eax cmpl $0x5, %eax jae 0x20a40 movl $0x803, 0x108(%rbx) # imm = 0x803 leaq 0x30d(%rbx), %rdi leaq 0x280cd(%rip), %rax # 0x48ac0 movq (%rax), %rsi movl $0x5, %edx callq 0x13220 xorl %r14d, %r14d movb %r14b, 0x312(%rbx) leaq 0x10c(%rbx), %rdi leaq 0x280b8(%rip), %rax # 0x48ad0 movq 0x198(%rax), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13220 movb %r14b, 0x30b(%rbx) movl $0x1, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq cmpl $0x6, %eax je 0x209db cmpl %edx, 0x60(%rbx) jbe 0x209db movq 0x78(%rbx), %rax movl %edx, %edi imulq $0x70, %rdi, %r14 cmpq $0x0, 0x20(%rax,%r14) je 0x20a72 addq %r14, %rax movq (%rsi), %rdx testq %rdx, %rdx je 0x20a82 movq (%rax), %rax movq (%rax), %rax movq %rax, (%rdx) jmp 0x20a89 movq 0x8(%rsi), %rcx xorl %eax, %eax testq %rcx, %rcx je 0x20a35 movb $0x1, (%rcx) jmp 0x20a35 addq $0x50, %rax movq %rax, (%rsi) movq 0x8(%rsi), %rax testq %rax, %rax je 0x20a97 movb $0x0, (%rax) jmp 0x20a9f leaq 0x67(%rsi), %rax movq %rax, 0x8(%rsi) movq 0x18(%rsi), %rax testq %rax, %rax jne 0x20ab0 leaq 0x64(%rsi), %rax movq %rax, 0x18(%rsi) movb $0x0, (%rax) movq %rcx, 0x48(%rsi) movq 0x58(%rbx), %rcx movq 0x78(%rbx), %rax leaq (%rax,%r14), %rdx addq $0x20, %rdx movq (%rdx), %r15 shlq $0x7, %rdi leaq (%rcx,%rdi), %rax movl 0x70(%rcx,%rdi), %ecx leaq (%rcx,%rcx,2), %rcx leaq 0x2851f(%rip), %r8 # 0x49000 movq %rsi, %rdi movq %rax, %rsi callq *(%r8,%rcx,8) movq 0x78(%rbx), %rax movq %r15, 0x20(%rax,%r14) xorl %eax, %eax jmp 0x20a35
mysql_stmt_fetch_column: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi mov eax, [rdi+50h] cmp eax, 5 jnb short loc_20A40 loc_209DB: mov dword ptr [rbx+108h], 803h lea rdi, [rbx+30Dh] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy xor r14d, r14d mov [rbx+312h], r14b lea rdi, [rbx+10Ch] lea rax, client_errors mov rsi, [rax+198h] mov edx, 200h call _strncpy mov [rbx+30Bh], r14b mov eax, 1 loc_20A35: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_20A40: cmp eax, 6 jz short loc_209DB cmp [rbx+60h], edx jbe short loc_209DB mov rax, [rbx+78h] mov edi, edx imul r14, rdi, 70h ; 'p' cmp qword ptr [rax+r14+20h], 0 jz short loc_20A72 add rax, r14 mov rdx, [rsi] test rdx, rdx jz short loc_20A82 mov rax, [rax] mov rax, [rax] mov [rdx], rax jmp short loc_20A89 loc_20A72: mov rcx, [rsi+8] xor eax, eax test rcx, rcx jz short loc_20A35 mov byte ptr [rcx], 1 jmp short loc_20A35 loc_20A82: add rax, 50h ; 'P' mov [rsi], rax loc_20A89: mov rax, [rsi+8] test rax, rax jz short loc_20A97 mov byte ptr [rax], 0 jmp short loc_20A9F loc_20A97: lea rax, [rsi+67h] mov [rsi+8], rax loc_20A9F: mov rax, [rsi+18h] test rax, rax jnz short loc_20AB0 lea rax, [rsi+64h] mov [rsi+18h], rax loc_20AB0: mov byte ptr [rax], 0 mov [rsi+48h], rcx mov rcx, [rbx+58h] mov rax, [rbx+78h] lea rdx, [rax+r14] add rdx, 20h ; ' ' mov r15, [rdx] shl rdi, 7 lea rax, [rcx+rdi] mov ecx, [rcx+rdi+70h] lea rcx, [rcx+rcx*2] lea r8, mysql_ps_fetch_functions mov rdi, rsi mov rsi, rax call qword ptr [r8+rcx*8] mov rax, [rbx+78h] mov [rax+r14+20h], r15 xor eax, eax jmp loc_20A35
long long mysql_stmt_fetch_column(long long a1, long long a2, unsigned int a3, long long a4) { unsigned int v4; // eax long long result; // rax long long v6; // rax long long v7; // r14 _QWORD **v8; // rax _BYTE *v9; // rcx _BYTE *v10; // rax _BYTE *v11; // rax long long v12; // r15 v4 = *(_DWORD *)(a1 + 80); if ( v4 < 5 || v4 == 6 || *(_DWORD *)(a1 + 96) <= a3 ) { *(_DWORD *)(a1 + 264) = 2051; strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 786) = 0; strncpy(a1 + 268, client_errors[51], 512LL); *(_BYTE *)(a1 + 779) = 0; return 1LL; } else { v6 = *(_QWORD *)(a1 + 120); v7 = 112LL * a3; if ( *(_QWORD *)(v6 + v7 + 32) ) { v8 = (_QWORD **)(v7 + v6); if ( *(_QWORD *)a2 ) **(_QWORD **)a2 = **v8; else *(_QWORD *)a2 = v8 + 10; v10 = *(_BYTE **)(a2 + 8); if ( v10 ) *v10 = 0; else *(_QWORD *)(a2 + 8) = a2 + 103; v11 = *(_BYTE **)(a2 + 24); if ( !v11 ) { v11 = (_BYTE *)(a2 + 100); *(_QWORD *)(a2 + 24) = a2 + 100; } *v11 = 0; *(_QWORD *)(a2 + 72) = a4; v12 = *(_QWORD *)(*(_QWORD *)(a1 + 120) + v7 + 32); (*(void ( **)(long long, unsigned long long))&mysql_ps_fetch_functions[6 * *(unsigned int *)(*(_QWORD *)(a1 + 88) + ((unsigned long long)a3 << 7) + 112)])( a2, *(_QWORD *)(a1 + 88) + ((unsigned long long)a3 << 7)); *(_QWORD *)(*(_QWORD *)(a1 + 120) + v7 + 32) = v12; return 0LL; } else { v9 = *(_BYTE **)(a2 + 8); result = 0LL; if ( v9 ) *v9 = 1; } } return result; }
mysql_stmt_fetch_column: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV EAX,dword ptr [RDI + 0x50] CMP EAX,0x5 JNC 0x00120a40 LAB_001209db: MOV dword ptr [RBX + 0x108],0x803 LEA RDI,[RBX + 0x30d] LEA RAX,[0x148ac0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113220 XOR R14D,R14D MOV byte ptr [RBX + 0x312],R14B LEA RDI,[RBX + 0x10c] LEA RAX,[0x148ad0] MOV RSI,qword ptr [RAX + 0x198] MOV EDX,0x200 CALL 0x00113220 MOV byte ptr [RBX + 0x30b],R14B MOV EAX,0x1 LAB_00120a35: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_00120a40: CMP EAX,0x6 JZ 0x001209db CMP dword ptr [RBX + 0x60],EDX JBE 0x001209db MOV RAX,qword ptr [RBX + 0x78] MOV EDI,EDX IMUL R14,RDI,0x70 CMP qword ptr [RAX + R14*0x1 + 0x20],0x0 JZ 0x00120a72 ADD RAX,R14 MOV RDX,qword ptr [RSI] TEST RDX,RDX JZ 0x00120a82 MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX] MOV qword ptr [RDX],RAX JMP 0x00120a89 LAB_00120a72: MOV RCX,qword ptr [RSI + 0x8] XOR EAX,EAX TEST RCX,RCX JZ 0x00120a35 MOV byte ptr [RCX],0x1 JMP 0x00120a35 LAB_00120a82: ADD RAX,0x50 MOV qword ptr [RSI],RAX LAB_00120a89: MOV RAX,qword ptr [RSI + 0x8] TEST RAX,RAX JZ 0x00120a97 MOV byte ptr [RAX],0x0 JMP 0x00120a9f LAB_00120a97: LEA RAX,[RSI + 0x67] MOV qword ptr [RSI + 0x8],RAX LAB_00120a9f: MOV RAX,qword ptr [RSI + 0x18] TEST RAX,RAX JNZ 0x00120ab0 LEA RAX,[RSI + 0x64] MOV qword ptr [RSI + 0x18],RAX LAB_00120ab0: MOV byte ptr [RAX],0x0 MOV qword ptr [RSI + 0x48],RCX MOV RCX,qword ptr [RBX + 0x58] MOV RAX,qword ptr [RBX + 0x78] LEA RDX,[RAX + R14*0x1] ADD RDX,0x20 MOV R15,qword ptr [RDX] SHL RDI,0x7 LEA RAX,[RCX + RDI*0x1] MOV ECX,dword ptr [RCX + RDI*0x1 + 0x70] LEA RCX,[RCX + RCX*0x2] LEA R8,[0x149000] MOV RDI,RSI MOV RSI,RAX CALL qword ptr [R8 + RCX*0x8] MOV RAX,qword ptr [RBX + 0x78] MOV qword ptr [RAX + R14*0x1 + 0x20],R15 XOR EAX,EAX JMP 0x00120a35
int8 mysql_stmt_fetch_column(long param_1,long *param_2,uint param_3,long param_4) { int8 uVar1; int8 *puVar2; int1 *puVar3; long lVar4; long lVar5; if (((*(uint *)(param_1 + 0x50) < 5) || (*(uint *)(param_1 + 0x50) == 6)) || (*(uint *)(param_1 + 0x60) <= param_3)) { *(int4 *)(param_1 + 0x108) = 0x803; strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; strncpy((char *)(param_1 + 0x10c),PTR_s__00148c68,0x200); *(int1 *)(param_1 + 0x30b) = 0; uVar1 = 1; } else { lVar5 = (ulong)param_3 * 0x70; if (*(long *)(*(long *)(param_1 + 0x78) + 0x20 + lVar5) == 0) { uVar1 = 0; if ((int1 *)param_2[1] != (int1 *)0x0) { *(int1 *)param_2[1] = 1; } } else { puVar2 = (int8 *)(*(long *)(param_1 + 0x78) + lVar5); if ((int8 *)*param_2 == (int8 *)0x0) { *param_2 = (long)(puVar2 + 10); } else { *(int8 *)*param_2 = *(int8 *)*puVar2; } if ((int1 *)param_2[1] == (int1 *)0x0) { param_2[1] = (long)param_2 + 0x67; } else { *(int1 *)param_2[1] = 0; } puVar3 = (int1 *)param_2[3]; if (puVar3 == (int1 *)0x0) { puVar3 = (int1 *)((long)param_2 + 100); param_2[3] = (long)puVar3; } *puVar3 = 0; param_2[9] = param_4; uVar1 = *(int8 *)(*(long *)(param_1 + 0x78) + lVar5 + 0x20); lVar4 = (ulong)param_3 * 0x80; (*(code *)(&mysql_ps_fetch_functions) [(ulong)*(uint *)(*(long *)(param_1 + 0x58) + 0x70 + lVar4) * 3]) (param_2,*(long *)(param_1 + 0x58) + lVar4); *(int8 *)(*(long *)(param_1 + 0x78) + 0x20 + lVar5) = uVar1; uVar1 = 0; } } return uVar1; }
3,104
ftxui::(anonymous namespace)::Frame::SetBox(ftxui::Box)
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/dom/frame.cpp
void SetBox(Box box) override { Node::SetBox(box); auto& selected_box = requirement_.selected_box; Box children_box = box; if (x_frame_) { const int external_dimx = box.x_max - box.x_min; const int internal_dimx = std::max(requirement_.min_x, external_dimx); const int focused_dimx = selected_box.x_max - selected_box.x_min; int dx = selected_box.x_min - external_dimx / 2 + focused_dimx / 2; dx = std::max(0, std::min(internal_dimx - external_dimx - 1, dx)); children_box.x_min = box.x_min - dx; children_box.x_max = box.x_min + internal_dimx - dx; } if (y_frame_) { const int external_dimy = box.y_max - box.y_min; const int internal_dimy = std::max(requirement_.min_y, external_dimy); const int focused_dimy = selected_box.y_max - selected_box.y_min; int dy = selected_box.y_min - external_dimy / 2 + focused_dimy / 2; dy = std::max(0, std::min(internal_dimy - external_dimy - 1, dy)); children_box.y_min = box.y_min - dy; children_box.y_max = box.y_min + internal_dimy - dy; } children_[0]->SetBox(children_box); }
O0
cpp
ftxui::(anonymous namespace)::Frame::SetBox(ftxui::Box): pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rsi, -0x10(%rbp) movq %rdx, -0x8(%rbp) movq %rdi, -0x18(%rbp) movq -0x18(%rbp), %rdi movq %rdi, -0x88(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x44670 movq -0x88(%rbp), %rax movq %rax, %rcx addq $0x20, %rcx addq $0x1c, %rcx movq %rcx, -0x30(%rbp) movq -0x10(%rbp), %rcx movq %rcx, -0x40(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x38(%rbp) testb $0x1, 0x5c(%rax) je 0x84206 movq -0x88(%rbp), %rdi movl -0xc(%rbp), %eax subl -0x10(%rbp), %eax movl %eax, -0x44(%rbp) addq $0x20, %rdi leaq -0x44(%rbp), %rsi callq 0x3e710 movl (%rax), %eax movl %eax, -0x48(%rbp) movq -0x30(%rbp), %rax movl 0x4(%rax), %eax movq -0x30(%rbp), %rcx subl (%rcx), %eax movl %eax, -0x4c(%rbp) movq -0x30(%rbp), %rax movl (%rax), %eax movl %eax, -0x90(%rbp) movl -0x44(%rbp), %eax movl $0x2, %ecx cltd idivl %ecx movl %eax, %ecx movl -0x90(%rbp), %eax subl %ecx, %eax movl %eax, -0x8c(%rbp) movl -0x4c(%rbp), %eax movl $0x2, %ecx cltd idivl %ecx movl %eax, %ecx movl -0x8c(%rbp), %eax addl %ecx, %eax movl %eax, -0x50(%rbp) movl $0x0, -0x54(%rbp) movl -0x48(%rbp), %eax subl -0x44(%rbp), %eax subl $0x1, %eax movl %eax, -0x58(%rbp) leaq -0x58(%rbp), %rdi leaq -0x50(%rbp), %rsi callq 0x4b0c0 movq %rax, %rsi leaq -0x54(%rbp), %rdi callq 0x3e710 movl (%rax), %eax movl %eax, -0x50(%rbp) movl -0x10(%rbp), %eax subl -0x50(%rbp), %eax movl %eax, -0x40(%rbp) movl -0x10(%rbp), %eax addl -0x48(%rbp), %eax subl -0x50(%rbp), %eax movl %eax, -0x3c(%rbp) movq -0x88(%rbp), %rax testb $0x1, 0x5d(%rax) je 0x842d4 movq -0x88(%rbp), %rdi movl -0x4(%rbp), %eax subl -0x8(%rbp), %eax movl %eax, -0x5c(%rbp) addq $0x20, %rdi addq $0x4, %rdi leaq -0x5c(%rbp), %rsi callq 0x3e710 movl (%rax), %eax movl %eax, -0x60(%rbp) movq -0x30(%rbp), %rax movl 0xc(%rax), %eax movq -0x30(%rbp), %rcx subl 0x8(%rcx), %eax movl %eax, -0x64(%rbp) movq -0x30(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x98(%rbp) movl -0x5c(%rbp), %eax movl $0x2, %ecx cltd idivl %ecx movl %eax, %ecx movl -0x98(%rbp), %eax subl %ecx, %eax movl %eax, -0x94(%rbp) movl -0x64(%rbp), %eax movl $0x2, %ecx cltd idivl %ecx movl %eax, %ecx movl -0x94(%rbp), %eax addl %ecx, %eax movl %eax, -0x68(%rbp) movl $0x0, -0x6c(%rbp) movl -0x60(%rbp), %eax subl -0x5c(%rbp), %eax subl $0x1, %eax movl %eax, -0x70(%rbp) leaq -0x70(%rbp), %rdi leaq -0x68(%rbp), %rsi callq 0x4b0c0 movq %rax, %rsi leaq -0x6c(%rbp), %rdi callq 0x3e710 movl (%rax), %eax movl %eax, -0x68(%rbp) movl -0x8(%rbp), %eax subl -0x68(%rbp), %eax movl %eax, -0x38(%rbp) movl -0x8(%rbp), %eax addl -0x60(%rbp), %eax subl -0x68(%rbp), %eax movl %eax, -0x34(%rbp) movq -0x88(%rbp), %rdi addq $0x8, %rdi xorl %eax, %eax movl %eax, %esi callq 0x3e6a0 movq %rax, %rdi callq 0x3e6c0 movq %rax, %rdi movq -0x40(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x78(%rbp) movq -0x80(%rbp), %rsi movq -0x78(%rbp), %rdx movq (%rdi), %rax callq *0x18(%rax) addq $0xa0, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN5ftxui12_GLOBAL__N_15Frame6SetBoxENS_3BoxE: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_10], rsi mov [rbp+var_8], rdx mov [rbp+var_18], rdi mov rdi, [rbp+var_18] mov [rbp+var_88], rdi mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_8] mov [rbp+var_20], rax mov rsi, [rbp+var_28] mov rdx, [rbp+var_20] call _ZN5ftxui4Node6SetBoxENS_3BoxE; ftxui::Node::SetBox(ftxui::Box) mov rax, [rbp+var_88] mov rcx, rax add rcx, 20h ; ' ' add rcx, 1Ch mov [rbp+var_30], rcx mov rcx, [rbp+var_10] mov [rbp+var_40], rcx mov rcx, [rbp+var_8] mov [rbp+var_38], rcx test byte ptr [rax+5Ch], 1 jz loc_84206 mov rdi, [rbp+var_88] mov eax, dword ptr [rbp+var_10+4] sub eax, dword ptr [rbp+var_10] mov [rbp+var_44], eax add rdi, 20h ; ' ' lea rsi, [rbp+var_44] call _ZSt3maxIiERKT_S2_S2_; std::max<int>(int const&,int const&) mov eax, [rax] mov [rbp+var_48], eax mov rax, [rbp+var_30] mov eax, [rax+4] mov rcx, [rbp+var_30] sub eax, [rcx] mov [rbp+var_4C], eax mov rax, [rbp+var_30] mov eax, [rax] mov [rbp+var_90], eax mov eax, [rbp+var_44] mov ecx, 2 cdq idiv ecx mov ecx, eax mov eax, [rbp+var_90] sub eax, ecx mov [rbp+var_8C], eax mov eax, [rbp+var_4C] mov ecx, 2 cdq idiv ecx mov ecx, eax mov eax, [rbp+var_8C] add eax, ecx mov [rbp+var_50], eax mov [rbp+var_54], 0 mov eax, [rbp+var_48] sub eax, [rbp+var_44] sub eax, 1 mov [rbp+var_58], eax lea rdi, [rbp+var_58] lea rsi, [rbp+var_50] call _ZSt3minIiERKT_S2_S2_; std::min<int>(int const&,int const&) mov rsi, rax lea rdi, [rbp+var_54] call _ZSt3maxIiERKT_S2_S2_; std::max<int>(int const&,int const&) mov eax, [rax] mov [rbp+var_50], eax mov eax, dword ptr [rbp+var_10] sub eax, [rbp+var_50] mov dword ptr [rbp+var_40], eax mov eax, dword ptr [rbp+var_10] add eax, [rbp+var_48] sub eax, [rbp+var_50] mov dword ptr [rbp+var_40+4], eax loc_84206: mov rax, [rbp+var_88] test byte ptr [rax+5Dh], 1 jz loc_842D4 mov rdi, [rbp+var_88] mov eax, dword ptr [rbp+var_8+4] sub eax, dword ptr [rbp+var_8] mov [rbp+var_5C], eax add rdi, 20h ; ' ' add rdi, 4 lea rsi, [rbp+var_5C] call _ZSt3maxIiERKT_S2_S2_; std::max<int>(int const&,int const&) mov eax, [rax] mov [rbp+var_60], eax mov rax, [rbp+var_30] mov eax, [rax+0Ch] mov rcx, [rbp+var_30] sub eax, [rcx+8] mov [rbp+var_64], eax mov rax, [rbp+var_30] mov eax, [rax+8] mov [rbp+var_98], eax mov eax, [rbp+var_5C] mov ecx, 2 cdq idiv ecx mov ecx, eax mov eax, [rbp+var_98] sub eax, ecx mov [rbp+var_94], eax mov eax, [rbp+var_64] mov ecx, 2 cdq idiv ecx mov ecx, eax mov eax, [rbp+var_94] add eax, ecx mov [rbp+var_68], eax mov [rbp+var_6C], 0 mov eax, [rbp+var_60] sub eax, [rbp+var_5C] sub eax, 1 mov [rbp+var_70], eax lea rdi, [rbp+var_70] lea rsi, [rbp+var_68] call _ZSt3minIiERKT_S2_S2_; std::min<int>(int const&,int const&) mov rsi, rax lea rdi, [rbp+var_6C] call _ZSt3maxIiERKT_S2_S2_; std::max<int>(int const&,int const&) mov eax, [rax] mov [rbp+var_68], eax mov eax, dword ptr [rbp+var_8] sub eax, [rbp+var_68] mov dword ptr [rbp+var_38], eax mov eax, dword ptr [rbp+var_8] add eax, [rbp+var_60] sub eax, [rbp+var_68] mov dword ptr [rbp+var_38+4], eax loc_842D4: mov rdi, [rbp+var_88] add rdi, 8 xor eax, eax mov esi, eax call _ZNSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EEixEm; std::vector<std::shared_ptr<ftxui::Node>>::operator[](ulong) mov rdi, rax call _ZNKSt19__shared_ptr_accessIN5ftxui4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax mov rax, [rbp+var_40] mov [rbp+var_80], rax mov rax, [rbp+var_38] mov [rbp+var_78], rax mov rsi, [rbp+var_80] mov rdx, [rbp+var_78] mov rax, [rdi] call qword ptr [rax+18h] add rsp, 0A0h pop rbp retn
long long ftxui::`anonymous namespace'::Frame::SetBox(long long a1, long long a2, long long a3) { _DWORD *v3; // rax _DWORD *v4; // rax long long v5; // rax long long v6; // rax int v8; // [rsp+30h] [rbp-70h] BYREF int v9; // [rsp+34h] [rbp-6Ch] BYREF int v10; // [rsp+38h] [rbp-68h] BYREF int v11; // [rsp+3Ch] [rbp-64h] int v12; // [rsp+40h] [rbp-60h] int v13; // [rsp+44h] [rbp-5Ch] BYREF int v14; // [rsp+48h] [rbp-58h] BYREF int v15; // [rsp+4Ch] [rbp-54h] BYREF int v16; // [rsp+50h] [rbp-50h] BYREF int v17; // [rsp+54h] [rbp-4Ch] int v18; // [rsp+58h] [rbp-48h] int v19; // [rsp+5Ch] [rbp-44h] BYREF long long v20; // [rsp+60h] [rbp-40h] long long v21; // [rsp+68h] [rbp-38h] _DWORD *v22; // [rsp+70h] [rbp-30h] long long v23; // [rsp+78h] [rbp-28h] long long v24; // [rsp+80h] [rbp-20h] long long v25; // [rsp+88h] [rbp-18h] long long v26; // [rsp+90h] [rbp-10h] long long v27; // [rsp+98h] [rbp-8h] v26 = a2; v27 = a3; v25 = a1; v23 = a2; v24 = a3; ftxui::Node::SetBox(a1, a2, a3); v22 = (_DWORD *)(a1 + 60); v20 = a2; v21 = v27; if ( (*(_BYTE *)(a1 + 92) & 1) != 0 ) { v19 = HIDWORD(v26) - v26; v18 = *std::max<int>((_DWORD *)(a1 + 32), &v19); v17 = v22[1] - *v22; v16 = v17 / 2 + *v22 - v19 / 2; v15 = 0; v14 = v18 - v19 - 1; v3 = std::min<int>(&v14, &v16); v16 = *std::max<int>(&v15, v3); LODWORD(v20) = v26 - v16; HIDWORD(v20) = v18 + v26 - v16; } if ( (*(_BYTE *)(a1 + 93) & 1) != 0 ) { v13 = HIDWORD(v27) - v27; v12 = *std::max<int>((_DWORD *)(a1 + 36), &v13); v11 = v22[3] - v22[2]; v10 = v11 / 2 + v22[2] - v13 / 2; v9 = 0; v8 = v12 - v13 - 1; v4 = std::min<int>(&v8, &v10); v10 = *std::max<int>(&v9, v4); LODWORD(v21) = v27 - v10; HIDWORD(v21) = v12 + v27 - v10; } v5 = std::vector<std::shared_ptr<ftxui::Node>>::operator[]((_QWORD *)(a1 + 8), 0LL); v6 = std::__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v5); return (*(long long ( **)(long long, long long, long long))(*(_QWORD *)v6 + 24LL))(v6, v20, v21); }
SetBox: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x8],RDX MOV qword ptr [RBP + -0x18],RDI MOV RDI,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x88],RDI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x20],RAX MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x20] CALL 0x00144670 MOV RAX,qword ptr [RBP + -0x88] MOV RCX,RAX ADD RCX,0x20 ADD RCX,0x1c MOV qword ptr [RBP + -0x30],RCX MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x40],RCX MOV RCX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x38],RCX TEST byte ptr [RAX + 0x5c],0x1 JZ 0x00184206 MOV RDI,qword ptr [RBP + -0x88] MOV EAX,dword ptr [RBP + -0xc] SUB EAX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x44],EAX ADD RDI,0x20 LEA RSI,[RBP + -0x44] CALL 0x0013e710 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x48],EAX MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RBP + -0x30] SUB EAX,dword ptr [RCX] MOV dword ptr [RBP + -0x4c],EAX MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x90],EAX MOV EAX,dword ptr [RBP + -0x44] MOV ECX,0x2 CDQ IDIV ECX MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x90] SUB EAX,ECX MOV dword ptr [RBP + -0x8c],EAX MOV EAX,dword ptr [RBP + -0x4c] MOV ECX,0x2 CDQ IDIV ECX MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x8c] ADD EAX,ECX MOV dword ptr [RBP + -0x50],EAX MOV dword ptr [RBP + -0x54],0x0 MOV EAX,dword ptr [RBP + -0x48] SUB EAX,dword ptr [RBP + -0x44] SUB EAX,0x1 MOV dword ptr [RBP + -0x58],EAX LEA RDI,[RBP + -0x58] LEA RSI,[RBP + -0x50] CALL 0x0014b0c0 MOV RSI,RAX LEA RDI,[RBP + -0x54] CALL 0x0013e710 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x50],EAX MOV EAX,dword ptr [RBP + -0x10] SUB EAX,dword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x40],EAX MOV EAX,dword ptr [RBP + -0x10] ADD EAX,dword ptr [RBP + -0x48] SUB EAX,dword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x3c],EAX LAB_00184206: MOV RAX,qword ptr [RBP + -0x88] TEST byte ptr [RAX + 0x5d],0x1 JZ 0x001842d4 MOV RDI,qword ptr [RBP + -0x88] MOV EAX,dword ptr [RBP + -0x4] SUB EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x5c],EAX ADD RDI,0x20 ADD RDI,0x4 LEA RSI,[RBP + -0x5c] CALL 0x0013e710 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x60],EAX MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX + 0xc] MOV RCX,qword ptr [RBP + -0x30] SUB EAX,dword ptr [RCX + 0x8] MOV dword ptr [RBP + -0x64],EAX MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x98],EAX MOV EAX,dword ptr [RBP + -0x5c] MOV ECX,0x2 CDQ IDIV ECX MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x98] SUB EAX,ECX MOV dword ptr [RBP + -0x94],EAX MOV EAX,dword ptr [RBP + -0x64] MOV ECX,0x2 CDQ IDIV ECX MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x94] ADD EAX,ECX MOV dword ptr [RBP + -0x68],EAX MOV dword ptr [RBP + -0x6c],0x0 MOV EAX,dword ptr [RBP + -0x60] SUB EAX,dword ptr [RBP + -0x5c] SUB EAX,0x1 MOV dword ptr [RBP + -0x70],EAX LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x68] CALL 0x0014b0c0 MOV RSI,RAX LEA RDI,[RBP + -0x6c] CALL 0x0013e710 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x68],EAX MOV EAX,dword ptr [RBP + -0x8] SUB EAX,dword ptr [RBP + -0x68] MOV dword ptr [RBP + -0x38],EAX MOV EAX,dword ptr [RBP + -0x8] ADD EAX,dword ptr [RBP + -0x60] SUB EAX,dword ptr [RBP + -0x68] MOV dword ptr [RBP + -0x34],EAX LAB_001842d4: MOV RDI,qword ptr [RBP + -0x88] ADD RDI,0x8 XOR EAX,EAX MOV ESI,EAX CALL 0x0013e6a0 MOV RDI,RAX CALL 0x0013e6c0 MOV RDI,RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x78],RAX MOV RSI,qword ptr [RBP + -0x80] MOV RDX,qword ptr [RBP + -0x78] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] ADD RSP,0xa0 POP RBP RET
/* ftxui::(anonymous namespace)::Frame::SetBox(ftxui::Box) */ void ftxui::(anonymous_namespace)::Frame::SetBox(long param_1,int8 param_2,int8 param_3) { int *piVar1; __shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false> *this; long *plVar2; int local_78 [3]; int local_6c; int local_68; int local_64; int local_60 [3]; int local_54; int local_50; int local_4c; int8 local_48; int8 local_40; int *local_38; int8 local_30; int8 local_28; long local_20; int8 local_18; int8 local_10; local_30 = param_2; local_28 = param_3; local_20 = param_1; local_18 = param_2; local_10 = param_3; Node::SetBox(param_1,param_2,param_3); local_38 = (int *)(param_1 + 0x3c); local_48 = local_18; local_40 = local_10; if ((*(byte *)(param_1 + 0x5c) & 1) != 0) { local_4c = local_18._4_4_ - (int)local_18; piVar1 = std::max<int>((int *)(param_1 + 0x20),&local_4c); local_50 = *piVar1; local_54 = local_38[1] - *local_38; local_60[2] = (*local_38 - local_4c / 2) + local_54 / 2; local_60[1] = 0; local_60[0] = (local_50 - local_4c) + -1; piVar1 = std::min<int>(local_60,local_60 + 2); piVar1 = std::max<int>(local_60 + 1,piVar1); local_60[2] = *piVar1; local_48 = CONCAT44(((int)local_18 + local_50) - local_60[2],(int)local_18 - local_60[2]); } if ((*(byte *)(param_1 + 0x5d) & 1) != 0) { local_64 = local_10._4_4_ - (int)local_10; piVar1 = std::max<int>((int *)(param_1 + 0x24),&local_64); local_68 = *piVar1; local_6c = local_38[3] - local_38[2]; local_78[2] = (local_38[2] - local_64 / 2) + local_6c / 2; local_78[1] = 0; local_78[0] = (local_68 - local_64) + -1; piVar1 = std::min<int>(local_78,local_78 + 2); piVar1 = std::max<int>(local_78 + 1,piVar1); local_78[2] = *piVar1; local_40 = CONCAT44(((int)local_10 + local_68) - local_78[2],(int)local_10 - local_78[2]); } this = (__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false> *) std::vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>:: operator[]((vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>> *)(param_1 + 8),0); plVar2 = (long *)std::__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false>:: operator->(this); (**(code **)(*plVar2 + 0x18))(plVar2,local_48,local_40); return; }
3,105
ma_memmap_file
eloqsql/storage/maria/ma_packrec.c
my_bool _ma_memmap_file(MARIA_HA *info) { MARIA_SHARE *share= info->s; DBUG_ENTER("maria_memmap_file"); if (!info->s->file_map) { if (mysql_file_seek(info->dfile.file, 0L, MY_SEEK_END, MYF(0)) < share->state.state.data_file_length+MEMMAP_EXTRA_MARGIN) { DBUG_PRINT("warning",("File isn't extended for memmap")); DBUG_RETURN(0); } if (_ma_dynmap_file(info, share->state.state.data_file_length)) DBUG_RETURN(0); } info->opt_flag|= MEMMAP_USED; info->read_record= share->read_record= _ma_read_mempack_record; share->scan= _ma_read_rnd_mempack_record; DBUG_RETURN(1); }
O3
c
ma_memmap_file: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rdi, %rbx movq (%rdi), %r12 cmpq $0x0, 0x5f0(%r12) je 0x44e3f orb $0x20, 0x61c(%rbx) leaq 0x9f(%rip), %rax # 0x44ebc movq %rax, 0x648(%r12) movq %rax, 0x3d8(%rbx) leaq 0x136(%rip), %rax # 0x44f69 movq %rax, 0x658(%r12) movb $0x1, %al jmp 0x44e98 movl 0x480(%rbx), %r14d leaq 0x3411c3(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0x70(%rbp), %rdi movl %r14d, %esi movl $0x8, %edx callq *0x158(%rax) testq %rax, %rax jne 0x44ea5 movl %r14d, %edi xorl %esi, %esi movl $0x2, %edx xorl %ecx, %ecx callq 0xa0b40 movq 0x40(%r12), %rsi leaq 0x7(%rsi), %rcx cmpq %rcx, %rax jb 0x44e96 movq %rbx, %rdi callq 0x46a60 testb %al, %al je 0x44e0f xorl %eax, %eax addq $0x50, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq -0x28(%rbp), %r15 movq %rax, %rdi movl %r14d, %esi movq %r15, %rdx callq 0x2c49f movq (%r15), %rax jmp 0x44e78
_ma_memmap_file: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 50h mov rbx, rdi mov r12, [rdi] cmp qword ptr [r12+5F0h], 0 jz short loc_44E3F loc_44E0F: or byte ptr [rbx+61Ch], 20h lea rax, _ma_read_mempack_record mov [r12+648h], rax mov [rbx+3D8h], rax lea rax, _ma_read_rnd_mempack_record mov [r12+658h], rax mov al, 1 jmp short loc_44E98 loc_44E3F: mov r14d, [rbx+480h] lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_70] mov esi, r14d mov edx, 8 call qword ptr [rax+158h] test rax, rax jnz short loc_44EA5 mov edi, r14d xor esi, esi mov edx, 2 xor ecx, ecx call my_seek loc_44E78: mov rsi, [r12+40h] lea rcx, [rsi+7] cmp rax, rcx jb short loc_44E96 mov rdi, rbx call _ma_dynmap_file test al, al jz loc_44E0F loc_44E96: xor eax, eax loc_44E98: add rsp, 50h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_44EA5: lea r15, [rbp+var_28] mov rdi, rax mov esi, r14d mov rdx, r15 call _ma_memmap_file_cold_1 mov rax, [r15] jmp short loc_44E78
char ma_memmap_file(long long a1) { _QWORD *v1; // r12 unsigned int v3; // r14d long long v4; // rax unsigned long long v5; // rax long long v6; // rsi _BYTE v7[72]; // [rsp+0h] [rbp-70h] BYREF unsigned long long v8[5]; // [rsp+48h] [rbp-28h] BYREF v1 = *(_QWORD **)a1; if ( !*(_QWORD *)(*(_QWORD *)a1 + 1520LL) ) { v3 = *(_DWORD *)(a1 + 1152); v4 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, v3, 8LL); if ( v4 ) { ma_memmap_file_cold_1(v4, v3, v8); v5 = v8[0]; } else { v5 = my_seek(v3, 0LL, 2LL, 0LL); } v6 = v1[8]; if ( v5 < v6 + 7 || (unsigned __int8)ma_dynmap_file(a1, v6) ) return 0; } *(_BYTE *)(a1 + 1564) |= 0x20u; v1[201] = ma_read_mempack_record; *(_QWORD *)(a1 + 984) = ma_read_mempack_record; v1[203] = ma_read_rnd_mempack_record; return 1; }
_ma_memmap_file: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x50 MOV RBX,RDI MOV R12,qword ptr [RDI] CMP qword ptr [R12 + 0x5f0],0x0 JZ 0x00144e3f LAB_00144e0f: OR byte ptr [RBX + 0x61c],0x20 LEA RAX,[0x144ebc] MOV qword ptr [R12 + 0x648],RAX MOV qword ptr [RBX + 0x3d8],RAX LEA RAX,[0x144f69] MOV qword ptr [R12 + 0x658],RAX MOV AL,0x1 JMP 0x00144e98 LAB_00144e3f: MOV R14D,dword ptr [RBX + 0x480] LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x70] MOV ESI,R14D MOV EDX,0x8 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00144ea5 MOV EDI,R14D XOR ESI,ESI MOV EDX,0x2 XOR ECX,ECX CALL 0x001a0b40 LAB_00144e78: MOV RSI,qword ptr [R12 + 0x40] LEA RCX,[RSI + 0x7] CMP RAX,RCX JC 0x00144e96 MOV RDI,RBX CALL 0x00146a60 TEST AL,AL JZ 0x00144e0f LAB_00144e96: XOR EAX,EAX LAB_00144e98: ADD RSP,0x50 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00144ea5: LEA R15,[RBP + -0x28] MOV RDI,RAX MOV ESI,R14D MOV RDX,R15 CALL 0x0012c49f MOV RAX,qword ptr [R15] JMP 0x00144e78
int8 _ma_memmap_file(long *param_1) { int4 uVar1; long lVar2; char cVar3; int8 uVar4; long lVar5; int1 local_78 [72]; ulong local_30; lVar2 = *param_1; if (*(long *)(lVar2 + 0x5f0) == 0) { uVar1 = (int4)param_1[0x90]; lVar5 = (**(code **)(PSI_server + 0x158))(local_78,uVar1,8); if (lVar5 == 0) { local_30 = my_seek(uVar1,0,2,0); } else { _ma_memmap_file_cold_1(lVar5,uVar1,&local_30); } if (*(long *)(lVar2 + 0x40) + 7U <= local_30) { cVar3 = _ma_dynmap_file(param_1); if (cVar3 == '\0') goto LAB_00144e0f; } uVar4 = 0; } else { LAB_00144e0f: *(byte *)((long)param_1 + 0x61c) = *(byte *)((long)param_1 + 0x61c) | 0x20; *(code **)(lVar2 + 0x648) = _ma_read_mempack_record; param_1[0x7b] = (long)_ma_read_mempack_record; *(code **)(lVar2 + 0x658) = _ma_read_rnd_mempack_record; uVar4 = 0x144f01; } return uVar4; }
3,106
simple_key_cache_insert
eloqsql/mysys/mf_keycache.c
static int simple_key_cache_insert(SIMPLE_KEY_CACHE_CB *keycache, File file, my_off_t filepos, int level, uchar *buff, uint length) { int error= 0; DBUG_ENTER("key_cache_insert"); DBUG_PRINT("enter", ("fd: %u pos: %lu length: %u", (uint) file,(ulong) filepos, length)); if (keycache->key_cache_inited) { /* Key cache is used */ reg1 BLOCK_LINK *block; uint read_length; uint offset; int page_st; my_bool locked_and_incremented= FALSE; /* When the keycache is once initialized, we use the cache_lock to reliably distinguish the cases of normal operation, resizing, and disabled cache. We always increment and decrement 'cnt_for_resize_op' so that a resizer can wait for pending I/O. */ keycache_pthread_mutex_lock(&keycache->cache_lock); /* We do not load index data into a disabled cache nor into an ongoing resize. */ if (!keycache->can_be_used || keycache->in_resize) goto no_key_cache; /* Register the pseudo I/O for the next resize. */ inc_counter_for_resize_op(keycache); locked_and_incremented= TRUE; /* Loaded data may not always be aligned to cache blocks. */ offset= (uint) (filepos % keycache->key_cache_block_size); /* Load data in key_cache_block_size increments. */ do { /* Cache could be disabled or resizing in a later iteration. */ if (!keycache->can_be_used || keycache->in_resize) goto no_key_cache; /* Start loading at the beginning of the cache block. */ filepos-= offset; /* Do not load beyond the end of the cache block. */ read_length= length; set_if_smaller(read_length, keycache->key_cache_block_size-offset); KEYCACHE_DBUG_ASSERT(read_length > 0); /* The block has been read by the caller already. */ keycache->global_cache_read++; /* Request the cache block that matches file/pos. */ keycache->global_cache_r_requests++; block= find_key_block(keycache, file, filepos, level, 0, &page_st); if (!block) { /* This happens only for requests submitted during key cache resize. The block is not in the cache and shall not go in. Stop loading index data. */ goto no_key_cache; } if (!(block->status & BLOCK_ERROR)) { if (page_st == PAGE_WAIT_TO_BE_READ) { /* this is a secondary request for a block to be read into the cache. The block is in eviction. It is not yet assigned to the requested file block (It does not point to the right hash_link). So we cannot call remove_reader() on the block. And we cannot access the hash_link directly here. We need to wait until the assignment is complete. read_block_secondary() executes the correct wait. */ read_block_secondary(keycache, block); /* A secondary request must now have the block assigned to the requested file block. */ DBUG_ASSERT(block->hash_link->file == file); DBUG_ASSERT(block->hash_link->diskpos == filepos); } else if (page_st == PAGE_TO_BE_READ && (offset || (read_length < keycache->key_cache_block_size))) { /* this is a primary request for a block to be read into the cache and the supplied data does not fill the whole block. This function is called on behalf of a LOAD INDEX INTO CACHE statement, which is a read-only task and allows other readers. It is possible that a parallel running reader tries to access this block. If it needs more data than has been supplied here, it would report an error. To be sure that we have all data in the block that is available in the file, we read the block ourselves. Though reading again what the caller did read already is an expensive operation, we need to do this for correctness. */ read_block_primary(keycache, block, keycache->key_cache_block_size, read_length + offset); } else if (page_st == PAGE_TO_BE_READ) { /* This is a new block in the cache. If we come here, we have data for the whole block. */ DBUG_ASSERT(block->hash_link->requests); DBUG_ASSERT(block->status & BLOCK_IN_USE); DBUG_ASSERT((page_st == PAGE_TO_BE_READ) || (block->status & BLOCK_READ)); #if !defined(SERIALIZED_READ_FROM_CACHE) keycache_pthread_mutex_unlock(&keycache->cache_lock); /* Here other threads may step in and register as secondary readers. They will register in block->wqueue[COND_FOR_REQUESTED]. */ #endif /* Copy data from buff */ memcpy(block->buffer+offset, buff, (size_t) read_length); #if !defined(SERIALIZED_READ_FROM_CACHE) keycache_pthread_mutex_lock(&keycache->cache_lock); DBUG_ASSERT(block->status & BLOCK_IN_USE); DBUG_ASSERT((page_st == PAGE_TO_BE_READ) || (block->status & BLOCK_READ)); #endif /* After the data is in the buffer, we can declare the block valid. Now other threads do not need to register as secondary readers any more. They can immediately access the block. */ block->status|= BLOCK_READ; block->length= read_length+offset; /* Do not set block->offset here. If this block is marked BLOCK_CHANGED later, we want to flush only the modified part. So only a writer may set block->offset down from keycache->key_cache_block_size. */ KEYCACHE_DBUG_PRINT("key_cache_insert", ("primary request: new page in cache")); /* Signal all pending requests. */ release_whole_queue(&block->wqueue[COND_FOR_REQUESTED]); } else { /* page_st == PAGE_READ. The block is in the buffer. All data must already be present. Blocks are always read with all data available on file. Assert that the block does not have less contents than the preloader supplies. If the caller has data beyond block->length, it means that a file write has been done while this block was in cache and not extended with the new data. If the condition is met, we can simply ignore the block. */ DBUG_ASSERT((page_st == PAGE_READ) && (read_length + offset <= block->length)); } /* A secondary request must now have the block assigned to the requested file block. It does not hurt to check it for primary requests too. */ DBUG_ASSERT(block->hash_link->file == file); DBUG_ASSERT(block->hash_link->diskpos == filepos); DBUG_ASSERT(block->status & (BLOCK_READ | BLOCK_IN_USE)); } /* end of if (!(block->status & BLOCK_ERROR)) */ remove_reader(block); /* Error injection for coverage testing. */ DBUG_EXECUTE_IF("key_cache_insert_block_error", block->status|= BLOCK_ERROR; errno=EIO;); /* Do not link erroneous blocks into the LRU ring, but free them. */ if (!(block->status & BLOCK_ERROR)) { /* Link the block into the LRU ring if it's the last submitted request for the block. This enables eviction for the block. */ unreg_request(keycache, block, 1); } else { free_block(keycache, block); error= 1; break; } buff+= read_length; filepos+= read_length+offset; offset= 0; } while ((length-= read_length)); no_key_cache: if (locked_and_incremented) dec_counter_for_resize_op(keycache); keycache_pthread_mutex_unlock(&keycache->cache_lock); } DBUG_RETURN(error); }
O3
c
simple_key_cache_insert: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movl %r9d, -0x2c(%rbp) movl %ecx, -0x48(%rbp) movl %esi, -0x44(%rbp) cmpb $0x0, (%rdi) je 0xb5a9b movq %r8, %r15 movq %rdx, %r13 movq %rdi, %r12 leaq 0xc0(%rdi), %r14 cmpq $0x0, 0x100(%rdi) jne 0xb5af3 movq %r14, %rdi callq 0x2a230 xorl %ebx, %ebx cmpb $0x0, 0x3(%r12) je 0xb5acd cmpb $0x0, 0x1(%r12) jne 0xb5acd movq %r15, -0x60(%rbp) movq %r14, -0x38(%rbp) incq 0x70(%r12) movl 0x18(%r12), %ecx movq %r13, -0x40(%rbp) movq %r13, %rax xorl %edx, %edx divq %rcx movq %rdx, %r13 movq %r12, %r15 cmpb $0x0, 0x3(%r15) je 0xb5a9f cmpb $0x0, 0x1(%r15) jne 0xb5a9f movl %r13d, %eax movq -0x40(%rbp), %rdx movq %rax, -0x70(%rbp) subq %rax, %rdx movl 0x18(%r15), %r14d subl %r13d, %r14d movl -0x2c(%rbp), %eax cmpl %r14d, %eax cmovbl %eax, %r14d movdqu 0x150(%r15), %xmm0 psubq 0x4f653(%rip), %xmm0 # 0x104f90 movdqu %xmm0, 0x150(%r15) xorl %ebx, %ebx movq %r15, %rdi movl -0x44(%rbp), %esi movq %rdx, -0x40(%rbp) movl -0x48(%rbp), %ecx xorl %r8d, %r8d leaq -0x4c(%rbp), %r9 callq 0xb3de1 testq %rax, %rax je 0xb5ab3 movq %rax, %r12 testb $0x1, 0x50(%rax) movl %r14d, %ebx jne 0xb5a2e movl -0x4c(%rbp), %eax cmpl $0x1, %eax je 0xb59a0 cmpl $0x2, %eax jne 0xb5a2e movq %r12, %rdi addq $0x28, %rdi movq -0x38(%rbp), %rsi callq 0xb3d50 jmp 0xb5a2e movl 0x18(%r15), %edx testl %r13d, %r13d jne 0xb5a1f cmpl %edx, %r14d jb 0xb5a1f movq %rbx, -0x58(%rbp) movq %r15, -0x68(%rbp) movq 0x100(%r15), %rdi testq %rdi, %rdi jne 0xb5a6d movq -0x38(%rbp), %rbx movq %rbx, %rdi callq 0x2a1f0 movq -0x70(%rbp), %rdi addq 0x40(%r12), %rdi movq -0x60(%rbp), %rsi movq -0x58(%rbp), %rdx callq 0x2a0b0 movq -0x68(%rbp), %rax cmpq $0x0, 0x100(%rax) jne 0xb5a82 movq %rbx, %rdi callq 0x2a230 orb $0x2, 0x50(%r12) movl %r14d, 0x4c(%r12) movq %r12, %rdi addq $0x28, %rdi callq 0xb5005 movq -0x58(%rbp), %rbx jmp 0xb5a2e leal (%r14,%r13), %ecx movq %r15, %rdi movq %r12, %rsi callq 0xb45e2 movq %r12, %rdi callq 0xb46b0 testb $0x1, 0x50(%r12) jne 0xb5aa3 movq %r15, %rdi movq %r12, %rsi movl $0x1, %edx callq 0xb46f8 addq %rbx, -0x60(%rbp) addl %r14d, %r13d addq %r13, -0x40(%rbp) xorl %r13d, %r13d movl $0x0, %ebx subl %r14d, -0x2c(%rbp) jne 0xb58f7 jmp 0xb5ab3 leaq 0x2f8fa4(%rip), %rax # 0x3aea18 movq (%rax), %rax callq *0x160(%rax) jmp 0xb59c6 movq %rbx, %rdi leaq 0x4a1e7(%rip), %rsi # 0xffc73 movl $0xc4b, %edx # imm = 0xC4B callq 0x312ea jmp 0xb5a02 xorl %ebx, %ebx jmp 0xb5ae2 xorl %ebx, %ebx jmp 0xb5ab3 movq %r15, %rdi movq %r12, %rsi callq 0xb4800 movl $0x1, %ebx decq 0x70(%r15) movq %r15, %r12 jne 0xb5ac9 leaq 0x110(%r12), %rdi callq 0xb5005 movq -0x38(%rbp), %r14 movq 0x100(%r12), %rdi testq %rdi, %rdi jne 0xb5b0c movq %r14, %rdi callq 0x2a1f0 movl %ebx, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x4a179(%rip), %rsi # 0xffc73 movq %r14, %rdi movl $0xbe2, %edx # imm = 0xBE2 callq 0x312ea jmp 0xb58b9 leaq 0x2f8f05(%rip), %rax # 0x3aea18 movq (%rax), %rax callq *0x160(%rax) jmp 0xb5ada
simple_key_cache_insert: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov [rbp+var_2C], r9d mov [rbp+var_48], ecx mov [rbp+var_44], esi cmp byte ptr [rdi], 0 jz loc_B5A9B mov r15, r8 mov r13, rdx mov r12, rdi lea r14, [rdi+0C0h] cmp qword ptr [rdi+100h], 0 jnz loc_B5AF3 mov rdi, r14 call _pthread_mutex_lock loc_B58B9: xor ebx, ebx cmp byte ptr [r12+3], 0 jz loc_B5ACD cmp byte ptr [r12+1], 0 jnz loc_B5ACD mov [rbp+var_60], r15 mov [rbp+var_38], r14 inc qword ptr [r12+70h] mov ecx, [r12+18h] mov [rbp+var_40], r13 mov rax, r13 xor edx, edx div rcx mov r13, rdx mov r15, r12 loc_B58F7: cmp byte ptr [r15+3], 0 jz loc_B5A9F cmp byte ptr [r15+1], 0 jnz loc_B5A9F mov eax, r13d mov rdx, [rbp+var_40] mov [rbp+var_70], rax sub rdx, rax mov r14d, [r15+18h] sub r14d, r13d mov eax, [rbp+var_2C] cmp eax, r14d cmovb r14d, eax movdqu xmm0, xmmword ptr [r15+150h] psubq xmm0, cs:xmmword_104F90 movdqu xmmword ptr [r15+150h], xmm0 xor ebx, ebx mov rdi, r15 mov esi, [rbp+var_44] mov [rbp+var_40], rdx mov ecx, [rbp+var_48] xor r8d, r8d lea r9, [rbp+var_4C] call find_key_block test rax, rax jz loc_B5AB3 mov r12, rax test byte ptr [rax+50h], 1 mov ebx, r14d jnz loc_B5A2E mov eax, [rbp+var_4C] cmp eax, 1 jz short loc_B59A0 cmp eax, 2 jnz loc_B5A2E mov rdi, r12 add rdi, 28h ; '(' mov rsi, [rbp+var_38] call wait_on_queue jmp loc_B5A2E loc_B59A0: mov edx, [r15+18h] test r13d, r13d jnz short loc_B5A1F cmp r14d, edx jb short loc_B5A1F mov [rbp+var_58], rbx mov [rbp+var_68], r15 mov rdi, [r15+100h] test rdi, rdi jnz loc_B5A6D loc_B59C6: mov rbx, [rbp+var_38] mov rdi, rbx call _pthread_mutex_unlock mov rdi, [rbp+var_70] add rdi, [r12+40h] mov rsi, [rbp+var_60] mov rdx, [rbp+var_58] call _memcpy mov rax, [rbp+var_68] cmp qword ptr [rax+100h], 0 jnz loc_B5A82 mov rdi, rbx call _pthread_mutex_lock loc_B5A02: or byte ptr [r12+50h], 2 mov [r12+4Ch], r14d mov rdi, r12 add rdi, 28h ; '(' call release_whole_queue mov rbx, [rbp+var_58] jmp short loc_B5A2E loc_B5A1F: lea ecx, [r14+r13] mov rdi, r15 mov rsi, r12 call read_block_primary loc_B5A2E: mov rdi, r12 call remove_reader test byte ptr [r12+50h], 1 jnz short loc_B5AA3 mov rdi, r15 mov rsi, r12 mov edx, 1 call unreg_request_0 add [rbp+var_60], rbx add r13d, r14d add [rbp+var_40], r13 xor r13d, r13d mov ebx, 0 sub [rbp+var_2C], r14d jnz loc_B58F7 jmp short loc_B5AB3 loc_B5A6D: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_B59C6 loc_B5A82: mov rdi, rbx lea rsi, aWorkspaceLlm4b_50; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 0C4Bh call psi_mutex_lock jmp loc_B5A02 loc_B5A9B: xor ebx, ebx jmp short loc_B5AE2 loc_B5A9F: xor ebx, ebx jmp short loc_B5AB3 loc_B5AA3: mov rdi, r15 mov rsi, r12 call free_block_0 mov ebx, 1 loc_B5AB3: dec qword ptr [r15+70h] mov r12, r15 jnz short loc_B5AC9 lea rdi, [r12+110h] call release_whole_queue loc_B5AC9: mov r14, [rbp+var_38] loc_B5ACD: mov rdi, [r12+100h] test rdi, rdi jnz short loc_B5B0C loc_B5ADA: mov rdi, r14 call _pthread_mutex_unlock loc_B5AE2: mov eax, ebx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_B5AF3: lea rsi, aWorkspaceLlm4b_50; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r14 mov edx, 0BE2h call psi_mutex_lock jmp loc_B58B9 loc_B5B0C: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_B5ADA
long long simple_key_cache_insert( __m128i *a1, unsigned int a2, unsigned long long a3, int a4, long long a5, unsigned int a6) { __m128i *v8; // r12 long long m128i_i64; // r14 unsigned int v10; // ebx unsigned long long v11; // rcx unsigned long long v12; // r13 unsigned long long v14; // rdx unsigned int v15; // r14d long long key_block; // rax long long v17; // r12 long long v18; // rbx unsigned int v19; // edx long long v20; // rdi long long v21; // rbx bool v22; // zf long long v24; // [rsp+10h] [rbp-60h] int v25; // [rsp+24h] [rbp-4Ch] BYREF int v26; // [rsp+28h] [rbp-48h] unsigned int v27; // [rsp+2Ch] [rbp-44h] unsigned long long v28; // [rsp+30h] [rbp-40h] __m128i *v29; // [rsp+38h] [rbp-38h] unsigned int v30; // [rsp+44h] [rbp-2Ch] v30 = a6; v26 = a4; v27 = a2; if ( a1->m128i_i8[0] ) { v8 = a1; m128i_i64 = (long long)a1[12].m128i_i64; if ( a1[16].m128i_i64[0] ) psi_mutex_lock( (long long)a1[12].m128i_i64, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0xBE2u); else pthread_mutex_lock(&a1[12]); v10 = 0; if ( a1->m128i_i8[3] && !a1->m128i_i8[1] ) { v24 = a5; v29 = a1 + 12; ++a1[7].m128i_i64[0]; v11 = a1[1].m128i_u32[2]; v28 = a3; v12 = a3 % v11; while ( 1 ) { if ( !a1->m128i_i8[3] || a1->m128i_i8[1] ) { v10 = 0; goto LABEL_31; } v14 = v28 - (unsigned int)v12; v15 = a1[1].m128i_i32[2] - v12; if ( v30 < v15 ) v15 = v30; a1[21] = _mm_sub_epi64(_mm_loadu_si128(a1 + 21), (__m128i)xmmword_104F90); v10 = 0; v28 = v14; key_block = find_key_block((unsigned long long)a1, v27, v14, v26, 0, &v25); if ( !key_block ) goto LABEL_31; v17 = key_block; v18 = v15; if ( (*(_BYTE *)(key_block + 80) & 1) == 0 ) { if ( v25 == 1 ) { v19 = a1[1].m128i_u32[2]; if ( (_DWORD)v12 || v15 < v19 ) { read_block_primary((long long)a1, key_block, v19, v15 + v12); } else { v20 = a1[16].m128i_i64[0]; if ( v20 ) ((void ( *)(long long))PSI_server[44])(v20); v21 = (long long)v29; pthread_mutex_unlock(v29); memcpy(*(_QWORD *)(v17 + 64) + (unsigned int)v12, v24, v15); if ( a1[16].m128i_i64[0] ) psi_mutex_lock(v21, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0xC4Bu); else pthread_mutex_lock(v21); *(_BYTE *)(v17 + 80) |= 2u; *(_DWORD *)(v17 + 76) = v15; release_whole_queue((long long *)(v17 + 40)); v18 = v15; } } else if ( v25 == 2 ) { wait_on_queue((long long *)(key_block + 40), (long long)v29); } } remove_reader(v17); if ( (*(_BYTE *)(v17 + 80) & 1) != 0 ) break; unreg_request_0(a1, v17, 1LL); v24 += v18; v28 += v15 + (unsigned int)v12; LODWORD(v12) = 0; v10 = 0; v30 -= v15; if ( !v30 ) goto LABEL_31; } free_block_0((long long)a1, v17); v10 = 1; LABEL_31: v22 = a1[7].m128i_i64[0]-- == 1; v8 = a1; if ( v22 ) release_whole_queue(a1[17].m128i_i64); m128i_i64 = (long long)v29; } if ( v8[16].m128i_i64[0] ) PSI_server[44](); pthread_mutex_unlock(m128i_i64); } else { return 0; } return v10; }
simple_key_cache_insert: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV dword ptr [RBP + -0x2c],R9D MOV dword ptr [RBP + -0x48],ECX MOV dword ptr [RBP + -0x44],ESI CMP byte ptr [RDI],0x0 JZ 0x001b5a9b MOV R15,R8 MOV R13,RDX MOV R12,RDI LEA R14,[RDI + 0xc0] CMP qword ptr [RDI + 0x100],0x0 JNZ 0x001b5af3 MOV RDI,R14 CALL 0x0012a230 LAB_001b58b9: XOR EBX,EBX CMP byte ptr [R12 + 0x3],0x0 JZ 0x001b5acd CMP byte ptr [R12 + 0x1],0x0 JNZ 0x001b5acd MOV qword ptr [RBP + -0x60],R15 MOV qword ptr [RBP + -0x38],R14 INC qword ptr [R12 + 0x70] MOV ECX,dword ptr [R12 + 0x18] MOV qword ptr [RBP + -0x40],R13 MOV RAX,R13 XOR EDX,EDX DIV RCX MOV R13,RDX MOV R15,R12 LAB_001b58f7: CMP byte ptr [R15 + 0x3],0x0 JZ 0x001b5a9f CMP byte ptr [R15 + 0x1],0x0 JNZ 0x001b5a9f MOV EAX,R13D MOV RDX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x70],RAX SUB RDX,RAX MOV R14D,dword ptr [R15 + 0x18] SUB R14D,R13D MOV EAX,dword ptr [RBP + -0x2c] CMP EAX,R14D CMOVC R14D,EAX MOVDQU XMM0,xmmword ptr [R15 + 0x150] PSUBQ XMM0,xmmword ptr [0x00204f90] MOVDQU xmmword ptr [R15 + 0x150],XMM0 XOR EBX,EBX MOV RDI,R15 MOV ESI,dword ptr [RBP + -0x44] MOV qword ptr [RBP + -0x40],RDX MOV ECX,dword ptr [RBP + -0x48] XOR R8D,R8D LEA R9,[RBP + -0x4c] CALL 0x001b3de1 TEST RAX,RAX JZ 0x001b5ab3 MOV R12,RAX TEST byte ptr [RAX + 0x50],0x1 MOV EBX,R14D JNZ 0x001b5a2e MOV EAX,dword ptr [RBP + -0x4c] CMP EAX,0x1 JZ 0x001b59a0 CMP EAX,0x2 JNZ 0x001b5a2e MOV RDI,R12 ADD RDI,0x28 MOV RSI,qword ptr [RBP + -0x38] CALL 0x001b3d50 JMP 0x001b5a2e LAB_001b59a0: MOV EDX,dword ptr [R15 + 0x18] TEST R13D,R13D JNZ 0x001b5a1f CMP R14D,EDX JC 0x001b5a1f MOV qword ptr [RBP + -0x58],RBX MOV qword ptr [RBP + -0x68],R15 MOV RDI,qword ptr [R15 + 0x100] TEST RDI,RDI JNZ 0x001b5a6d LAB_001b59c6: MOV RBX,qword ptr [RBP + -0x38] MOV RDI,RBX CALL 0x0012a1f0 MOV RDI,qword ptr [RBP + -0x70] ADD RDI,qword ptr [R12 + 0x40] MOV RSI,qword ptr [RBP + -0x60] MOV RDX,qword ptr [RBP + -0x58] CALL 0x0012a0b0 MOV RAX,qword ptr [RBP + -0x68] CMP qword ptr [RAX + 0x100],0x0 JNZ 0x001b5a82 MOV RDI,RBX CALL 0x0012a230 LAB_001b5a02: OR byte ptr [R12 + 0x50],0x2 MOV dword ptr [R12 + 0x4c],R14D MOV RDI,R12 ADD RDI,0x28 CALL 0x001b5005 MOV RBX,qword ptr [RBP + -0x58] JMP 0x001b5a2e LAB_001b5a1f: LEA ECX,[R14 + R13*0x1] MOV RDI,R15 MOV RSI,R12 CALL 0x001b45e2 LAB_001b5a2e: MOV RDI,R12 CALL 0x001b46b0 TEST byte ptr [R12 + 0x50],0x1 JNZ 0x001b5aa3 MOV RDI,R15 MOV RSI,R12 MOV EDX,0x1 CALL 0x001b46f8 ADD qword ptr [RBP + -0x60],RBX ADD R13D,R14D ADD qword ptr [RBP + -0x40],R13 XOR R13D,R13D MOV EBX,0x0 SUB dword ptr [RBP + -0x2c],R14D JNZ 0x001b58f7 JMP 0x001b5ab3 LAB_001b5a6d: LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001b59c6 LAB_001b5a82: MOV RDI,RBX LEA RSI,[0x1ffc73] MOV EDX,0xc4b CALL 0x001312ea JMP 0x001b5a02 LAB_001b5a9b: XOR EBX,EBX JMP 0x001b5ae2 LAB_001b5a9f: XOR EBX,EBX JMP 0x001b5ab3 LAB_001b5aa3: MOV RDI,R15 MOV RSI,R12 CALL 0x001b4800 MOV EBX,0x1 LAB_001b5ab3: DEC qword ptr [R15 + 0x70] MOV R12,R15 JNZ 0x001b5ac9 LEA RDI,[R12 + 0x110] CALL 0x001b5005 LAB_001b5ac9: MOV R14,qword ptr [RBP + -0x38] LAB_001b5acd: MOV RDI,qword ptr [R12 + 0x100] TEST RDI,RDI JNZ 0x001b5b0c LAB_001b5ada: MOV RDI,R14 CALL 0x0012a1f0 LAB_001b5ae2: MOV EAX,EBX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001b5af3: LEA RSI,[0x1ffc73] MOV RDI,R14 MOV EDX,0xbe2 CALL 0x001312ea JMP 0x001b58b9 LAB_001b5b0c: LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001b5ada
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int8 simple_key_cache_insert (char *param_1,int4 param_2,ulong param_3,int4 param_4,void *param_5, uint param_6) { long *plVar1; uint uVar2; ulong uVar3; int8 uVar4; int iVar5; pthread_mutex_t *ppVar6; long lVar7; void *local_68; int local_54; int4 local_50; int4 local_4c; ulong local_48; pthread_mutex_t *local_40; uint local_34; if (*param_1 == '\0') { uVar4 = 0; } else { ppVar6 = (pthread_mutex_t *)(param_1 + 0xc0); local_50 = param_4; local_4c = param_2; local_34 = param_6; if (*(long *)(param_1 + 0x100) == 0) { pthread_mutex_lock(ppVar6); } else { psi_mutex_lock(ppVar6,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0xbe2); } uVar4 = 0; if ((param_1[3] != '\0') && (param_1[1] == '\0')) { *(long *)(param_1 + 0x70) = *(long *)(param_1 + 0x70) + 1; uVar3 = param_3 % (ulong)*(uint *)(param_1 + 0x18); local_68 = param_5; local_48 = param_3; local_40 = ppVar6; do { if ((param_1[3] == '\0') || (param_1[1] != '\0')) { uVar4 = 0; break; } iVar5 = (int)uVar3; local_48 = local_48 - uVar3; uVar2 = *(int *)(param_1 + 0x18) - iVar5; if (local_34 < (uint)(*(int *)(param_1 + 0x18) - iVar5)) { uVar2 = local_34; } lVar7 = *(long *)(param_1 + 0x158) - _UNK_00204f98; *(long *)(param_1 + 0x150) = *(long *)(param_1 + 0x150) - _DAT_00204f90; *(long *)(param_1 + 0x158) = lVar7; uVar4 = 0; lVar7 = find_key_block(param_1,local_4c,local_48,local_50,0,&local_54); if (lVar7 == 0) break; if ((*(byte *)(lVar7 + 0x50) & 1) == 0) { if (local_54 == 1) { if ((iVar5 == 0) && (*(uint *)(param_1 + 0x18) <= uVar2)) { if (*(long *)(param_1 + 0x100) != 0) { (**(code **)(PSI_server + 0x160))(); } ppVar6 = local_40; pthread_mutex_unlock(local_40); memcpy((void *)(uVar3 + *(long *)(lVar7 + 0x40)),local_68,(ulong)uVar2); if (*(long *)(param_1 + 0x100) == 0) { pthread_mutex_lock(ppVar6); } else { psi_mutex_lock(ppVar6,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c" ,0xc4b); } *(byte *)(lVar7 + 0x50) = *(byte *)(lVar7 + 0x50) | 2; *(uint *)(lVar7 + 0x4c) = uVar2; release_whole_queue(lVar7 + 0x28); } else { read_block_primary(param_1,lVar7,*(uint *)(param_1 + 0x18),uVar2 + iVar5); } } else if (local_54 == 2) { wait_on_queue(lVar7 + 0x28,local_40); } } remove_reader(lVar7); if ((*(byte *)(lVar7 + 0x50) & 1) != 0) { free_block(param_1,lVar7); uVar4 = 1; break; } unreg_request(param_1,lVar7,1); local_68 = (void *)((long)local_68 + (ulong)uVar2); local_48 = local_48 + (iVar5 + uVar2); uVar3 = 0; uVar4 = 0; local_34 = local_34 - uVar2; } while (local_34 != 0); plVar1 = (long *)(param_1 + 0x70); *plVar1 = *plVar1 + -1; ppVar6 = local_40; if (*plVar1 == 0) { release_whole_queue(param_1 + 0x110); ppVar6 = local_40; } } if (*(long *)(param_1 + 0x100) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(ppVar6); } return uVar4; }
3,107
npc_batrider::npc_batrider(Creature*)
SylCore-WoTLK/src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp
npc_batrider(Creature* creature) : CreatureAI(creature) { // if this is a summon of Jeklik, it is in boss mode if ( me->GetEntry() == NPC_BATRIDER && me->IsSummon() && me->ToTempSummon() && me->ToTempSummon()->GetSummoner() && me->ToTempSummon()->GetSummoner()->GetEntry() == NPC_PRIESTESS_JEKLIK ) { _mode = BATRIDER_MODE_BOSS; me->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE); me->SetUnitFlag(UNIT_FLAG_IMMUNE_TO_PC); me->SetUnitFlag(UNIT_FLAG_IMMUNE_TO_NPC); me->SetReactState(REACT_PASSIVE); me->SetSpeed(MOVE_WALK, 5.0f, true); me->SetCanFly(true); me->GetMotionMaster()->MoveSplinePath(PATH_BATRIDER_LOOP); } else { _mode = BATRIDER_MODE_TRASH; me->SetReactState(REACT_DEFENSIVE); // don't interrupt casting _scheduler.SetValidator([this] { return !me->HasUnitState(UNIT_STATE_CASTING); }); } }
O3
cpp
npc_batrider::npc_batrider(Creature*): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx callq 0x4ddcc4 leaq 0x11e072c(%rip), %rax # 0x1748ce8 movq %rax, (%rbx) leaq 0x120(%rbx), %r14 movq %r14, %rdi callq 0x4c811c movq 0x10(%rbx), %rdi movl $0x3, %esi callq 0xa96762 movq 0x10(%rbx), %rdi cmpl $0x399e, %eax # imm = 0x399E jne 0x5686c4 testb $0x1, 0x2768(%rdi) je 0x5686c4 callq 0xa7da2a movq 0x10(%rbx), %rdi testq %rax, %rax je 0x5686c4 xorl %eax, %eax testb $0x1, 0x2768(%rdi) cmovneq %rdi, %rax movq %rax, %rdi callq 0xa7da2a movq %rax, %rdi movl $0x3, %esi callq 0xa96762 movq 0x10(%rbx), %rdi cmpl $0x38b5, %eax # imm = 0x38B5 jne 0x5686c4 movl $0x2, 0x11c(%rbx) movl $0x3b, %esi movl $0x2000000, %edx # imm = 0x2000000 callq 0xa995d6 movq 0x10(%rbx), %rdi movl $0x3b, %esi movl $0x100, %edx # imm = 0x100 callq 0xa995d6 movq 0x10(%rbx), %rdi movl $0x3b, %esi movl $0x200, %edx # imm = 0x200 callq 0xa995d6 movq 0x10(%rbx), %rdi movb $0x0, 0x2b80(%rdi) movss 0xbb2b27(%rip), %xmm0 # 0x111b1b4 xorl %esi, %esi movl $0x1, %edx callq 0xb7c0a0 movq 0x10(%rbx), %rdi movq (%rdi), %rax movl $0x1, %esi xorl %edx, %edx callq *0x290(%rax) movq 0x10(%rbx), %rax movq 0x26b0(%rax), %rdi movl $0x2402c, %esi # imm = 0x2402C callq 0xd270e0 jmp 0x5686ec movl $0x1, 0x11c(%rbx) movb $0x1, 0x2b80(%rdi) leaq 0x8(%rsp), %rsi movq %rbx, (%rsi) addq $0x1b8, %rbx # imm = 0x1B8 movq %rbx, %rdi callq 0x568c0e addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %r15 jmp 0x568706 movq %rax, %r15 movq %r14, %rdi callq 0x517a32 movq %rbx, %rdi callq 0x4c76da movq %r15, %rdi callq 0x45c850
_ZN12npc_batriderC2EP8Creature: push r15 push r14 push rbx sub rsp, 10h mov rbx, rdi call _ZN10CreatureAIC2EP8Creature; CreatureAI::CreatureAI(Creature *) lea rax, off_1748CE8 mov [rbx], rax lea r14, [rbx+120h] mov rdi, r14; this call _ZN13TaskSchedulerC2Ev; TaskScheduler::TaskScheduler(void) mov rdi, [rbx+10h]; this mov esi, 3; unsigned __int16 call _ZNK6Object14GetUInt32ValueEt; Object::GetUInt32Value(ushort) mov rdi, [rbx+10h]; this cmp eax, 399Eh jnz loc_5686C4 test byte ptr [rdi+2768h], 1 jz loc_5686C4 call _ZNK10TempSummon11GetSummonerEv; TempSummon::GetSummoner(void) mov rdi, [rbx+10h] test rax, rax jz loc_5686C4 xor eax, eax test byte ptr [rdi+2768h], 1 cmovnz rax, rdi mov rdi, rax; this call _ZNK10TempSummon11GetSummonerEv; TempSummon::GetSummoner(void) mov rdi, rax; this mov esi, 3; unsigned __int16 call _ZNK6Object14GetUInt32ValueEt; Object::GetUInt32Value(ushort) mov rdi, [rbx+10h]; this cmp eax, 38B5h jnz loc_5686C4 mov dword ptr [rbx+11Ch], 2 mov esi, 3Bh ; ';'; unsigned __int16 mov edx, 2000000h; unsigned int call _ZN6Object7SetFlagEtj; Object::SetFlag(ushort,uint) mov rdi, [rbx+10h]; this mov esi, 3Bh ; ';'; unsigned __int16 mov edx, 100h; unsigned int call _ZN6Object7SetFlagEtj; Object::SetFlag(ushort,uint) mov rdi, [rbx+10h]; this mov esi, 3Bh ; ';'; unsigned __int16 mov edx, 200h; unsigned int call _ZN6Object7SetFlagEtj; Object::SetFlag(ushort,uint) mov rdi, [rbx+10h]; this mov byte ptr [rdi+2B80h], 0 movss xmm0, cs:flt_111B1B4 xor esi, esi mov edx, 1 call _ZN4Unit8SetSpeedE12UnitMoveTypefb; Unit::SetSpeed(UnitMoveType,float,bool) mov rdi, [rbx+10h] mov rax, [rdi] mov esi, 1 xor edx, edx call qword ptr [rax+290h] mov rax, [rbx+10h] mov rdi, [rax+26B0h]; this mov esi, 2402Ch; unsigned int call _ZN12MotionMaster14MoveSplinePathEj; MotionMaster::MoveSplinePath(uint) jmp short loc_5686EC loc_5686C4: mov dword ptr [rbx+11Ch], 1 mov byte ptr [rdi+2B80h], 1 lea rsi, [rsp+28h+var_20] mov [rsi], rbx add rbx, 1B8h mov rdi, rbx call _ZNSt8functionIFbvEEaSIZN12npc_batriderC1EP8CreatureEUlvE_EENSt9enable_ifIXsrNS1_9_CallableIT_NS7_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceIS9_E4typeEE4typeES1_EE5valueESt5decayIS9_EE4type4typeESt15__invoke_resultIRSK_JEEEE5valueERS1_E4typeEOS9_ loc_5686EC: add rsp, 10h pop rbx pop r14 pop r15 retn mov r15, rax jmp short loc_568706 mov r15, rax mov rdi, r14; this call _ZN13TaskSchedulerD2Ev; TaskScheduler::~TaskScheduler() loc_568706: mov rdi, rbx; this call _ZN10CreatureAID2Ev; CreatureAI::~CreatureAI() mov rdi, r15 call __Unwind_Resume
void npc_batrider::npc_batrider(npc_batrider *this, Creature *a2) { int UInt32Value; // eax TempSummon *v4; // rdi long long Summoner; // rax TempSummon *v6; // rax Object *v7; // rax int v8; // eax Unit *v9; // rdi CreatureAI::CreatureAI(this, a2); *(_QWORD *)this = off_1748CE8; TaskScheduler::TaskScheduler((npc_batrider *)((char *)this + 288)); UInt32Value = Object::GetUInt32Value(*((Object **)this + 2), 3u); v4 = (TempSummon *)*((_QWORD *)this + 2); if ( UInt32Value != 14750 ) goto LABEL_8; if ( (*((_BYTE *)v4 + 10088) & 1) == 0 ) goto LABEL_8; Summoner = TempSummon::GetSummoner(v4); v4 = (TempSummon *)*((_QWORD *)this + 2); if ( !Summoner ) goto LABEL_8; v6 = 0LL; if ( (*((_BYTE *)v4 + 10088) & 1) != 0 ) v6 = (TempSummon *)*((_QWORD *)this + 2); v7 = (Object *)TempSummon::GetSummoner(v6); v8 = Object::GetUInt32Value(v7, 3u); v4 = (TempSummon *)*((_QWORD *)this + 2); if ( v8 == 14517 ) { *((_DWORD *)this + 71) = 2; Object::SetFlag(v4, 0x3Bu, 0x2000000u); Object::SetFlag(*((Object **)this + 2), 0x3Bu, 0x100u); Object::SetFlag(*((Object **)this + 2), 0x3Bu, 0x200u); v9 = (Unit *)*((_QWORD *)this + 2); *((_BYTE *)v9 + 11136) = 0; Unit::SetSpeed(v9); (*(void ( **)(_QWORD, long long, _QWORD, float))(**((_QWORD **)this + 2) + 656LL))( *((_QWORD *)this + 2), 1LL, 0LL, 5.0); MotionMaster::MoveSplinePath(*(MotionMaster **)(*((_QWORD *)this + 2) + 9904LL), 0x2402Cu); } else { LABEL_8: *((_DWORD *)this + 71) = 1; *((_BYTE *)v4 + 11136) = 1; std::function<bool ()(void)>::operator=<npc_batrider::npc_batrider(Creature *)::{lambda(void)#1}>((char *)this + 440); } }
_M_create: PUSH RAX LEA RDI,[0x12239d7] CALL 0x0055c7f0
/* std::__cxx11::string::_M_create(unsigned long&, unsigned long) [clone .cold.1] */ void std::__cxx11::string::_M_create(ulong *param_1,ulong param_2) { /* WARNING: Subroutine does not return */ std::__throw_length_error("basic_string::_M_create"); }
3,108
nglog::SetEmailLogging(nglog::LogSeverity, char const*)
ng-log[P]ng-log/src/logging.cc
void SetEmailLogging(LogSeverity min_severity, const char* addresses) { LogDestination::SetEmailLogging(min_severity, addresses); }
O3
cpp
nglog::SetEmailLogging(nglog::LogSeverity, char const*): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movl %edi, %ebp leaq 0x34430(%rip), %rdi # 0x40d48 callq 0x7840 testl %eax, %eax jne 0xc966 movl %ebp, 0x24c59(%rip) # 0x31580 movq 0x252da(%rip), %r14 # 0x31c08 leaq 0x252cb(%rip), %r15 # 0x31c00 movq %rbx, %rdi callq 0x71f0 movq %r15, %rdi xorl %esi, %esi movq %r14, %rdx movq %rbx, %rcx movq %rax, %r8 callq 0x78b0 leaq 0x343f1(%rip), %rdi # 0x40d48 addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x73e0 movl %eax, %edi callq 0x7350 movq %rax, %rbx leaq 0x343d1(%rip), %rdi # 0x40d48 callq 0x73e0 movq %rbx, %rdi callq 0x79b0
_ZN5nglog15SetEmailLoggingENS_11LogSeverityEPKc: push rbp push r15 push r14 push rbx push rax mov rbx, rsi mov ebp, edi lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex call _pthread_mutex_lock test eax, eax jnz short loc_C966 mov cs:_ZN5nglog14LogDestination23email_logging_severity_E, ebp; nglog::LogDestination::email_logging_severity_ mov r14, cs:qword_31C08 lea r15, _ZN5nglog14LogDestination10addresses_B5cxx11E; nglog::LogDestination::addresses_ mov rdi, rbx call _strlen mov rdi, r15 xor esi, esi mov rdx, r14 mov rcx, rbx mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_C966: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) mov rbx, rax lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex call _pthread_mutex_unlock mov rdi, rbx call __Unwind_Resume
long long nglog::SetEmailLogging(int a1, long long a2) { int v2; // eax long long v3; // r14 long long v4; // rax v2 = pthread_mutex_lock(&nglog::log_mutex); if ( v2 ) std::__throw_system_error(v2); nglog::LogDestination::email_logging_severity_ = a1; v3 = qword_31C08; v4 = strlen(a2); std::string::_M_replace(&nglog::LogDestination::addresses_[abi:cxx11], 0LL, v3, a2, v4); return pthread_mutex_unlock(&nglog::log_mutex); }
SetEmailLogging: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV EBP,EDI LEA RDI,[0x140d48] CALL 0x00107840 TEST EAX,EAX JNZ 0x0010c966 MOV dword ptr [0x00131580],EBP MOV R14,qword ptr [0x00131c08] LEA R15,[0x131c00] MOV RDI,RBX CALL 0x001071f0 LAB_0010c93d: MOV RDI,R15 XOR ESI,ESI MOV RDX,R14 MOV RCX,RBX MOV R8,RAX CALL 0x001078b0 LAB_0010c950: LEA RDI,[0x140d48] ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x001073e0 LAB_0010c966: MOV EDI,EAX CALL 0x00107350
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* nglog::SetEmailLogging(nglog::LogSeverity, char const*) */ void nglog::SetEmailLogging(int4 param_1,char *param_2) { char *pcVar1; int iVar2; iVar2 = pthread_mutex_lock((pthread_mutex_t *)log_mutex); pcVar1 = _DAT_00131c08; if (iVar2 == 0) { LogDestination::email_logging_severity_ = param_1; strlen(param_2); /* try { // try from 0010c93d to 0010c94f has its CatchHandler @ 0010c96d */ std::__cxx11::string::_M_replace(0x131c00,0,pcVar1,(ulong)param_2); pthread_mutex_unlock((pthread_mutex_t *)log_mutex); return; } /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar2); }
3,109
ggml_get_next_tensor
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
struct ggml_tensor * ggml_get_next_tensor(const struct ggml_context * ctx, struct ggml_tensor * tensor) { struct ggml_object * obj = (struct ggml_object *) ((char *)tensor - GGML_OBJECT_SIZE); obj = obj->next; char * const mem_buffer = ctx->mem_buffer; while (obj != NULL) { if (obj->type == GGML_OBJECT_TENSOR) { return (struct ggml_tensor *)(mem_buffer + obj->offs); } obj = obj->next; } return NULL; }
O1
c
ggml_get_next_tensor: movq -0x10(%rsi), %rcx testq %rcx, %rcx je 0x8e8a8 movq 0x8(%rdi), %rax cmpl $0x0, 0x18(%rcx) je 0x8e8ab movq 0x10(%rcx), %rcx testq %rcx, %rcx jne 0x8e899 xorl %eax, %eax retq addq (%rcx), %rax retq
ggml_get_next_tensor: mov rcx, [rsi-10h] test rcx, rcx jz short loc_8E8A8 mov rax, [rdi+8] loc_8E899: cmp dword ptr [rcx+18h], 0 jz short loc_8E8AB mov rcx, [rcx+10h] test rcx, rcx jnz short loc_8E899 loc_8E8A8: xor eax, eax retn loc_8E8AB: add rax, [rcx] retn
long long ggml_get_next_tensor(long long a1, long long a2) { long long v2; // rcx v2 = *(_QWORD *)(a2 - 16); if ( !v2 ) return 0LL; while ( *(_DWORD *)(v2 + 24) ) { v2 = *(_QWORD *)(v2 + 16); if ( !v2 ) return 0LL; } return *(_QWORD *)v2 + *(_QWORD *)(a1 + 8); }
3,110
ggml_get_next_tensor
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
struct ggml_tensor * ggml_get_next_tensor(const struct ggml_context * ctx, struct ggml_tensor * tensor) { struct ggml_object * obj = (struct ggml_object *) ((char *)tensor - GGML_OBJECT_SIZE); obj = obj->next; char * const mem_buffer = ctx->mem_buffer; while (obj != NULL) { if (obj->type == GGML_OBJECT_TENSOR) { return (struct ggml_tensor *)(mem_buffer + obj->offs); } obj = obj->next; } return NULL; }
O2
c
ggml_get_next_tensor: addq $-0x10, %rsi movq 0x8(%rdi), %rcx xorl %eax, %eax movq (%rsi), %rsi testq %rsi, %rsi je 0x6835a cmpl $0x0, 0x18(%rsi) je 0x68354 addq $0x10, %rsi jmp 0x68340 addq (%rsi), %rcx movq %rcx, %rax retq
ggml_get_next_tensor: add rsi, 0FFFFFFFFFFFFFFF0h mov rcx, [rdi+8] xor eax, eax loc_68340: mov rsi, [rsi] test rsi, rsi jz short locret_6835A cmp dword ptr [rsi+18h], 0 jz short loc_68354 add rsi, 10h jmp short loc_68340 loc_68354: add rcx, [rsi] mov rax, rcx locret_6835A: retn
long long ggml_get_next_tensor(long long a1, long long a2) { long long *v2; // rsi long long result; // rax long long v4; // rsi v2 = (long long *)(a2 - 16); result = 0LL; while ( 1 ) { v4 = *v2; if ( !v4 ) break; if ( !*(_DWORD *)(v4 + 24) ) return *(_QWORD *)v4 + *(_QWORD *)(a1 + 8); v2 = (long long *)(v4 + 16); } return result; }
ggml_get_next_tensor: ADD RSI,-0x10 MOV RCX,qword ptr [RDI + 0x8] XOR EAX,EAX LAB_00168340: MOV RSI,qword ptr [RSI] TEST RSI,RSI JZ 0x0016835a CMP dword ptr [RSI + 0x18],0x0 JZ 0x00168354 ADD RSI,0x10 JMP 0x00168340 LAB_00168354: ADD RCX,qword ptr [RSI] MOV RAX,RCX LAB_0016835a: RET
long ggml_get_next_tensor(long param_1,long param_2) { long *plVar1; plVar1 = (long *)(param_2 + -0x10); while( true ) { plVar1 = (long *)*plVar1; if (plVar1 == (long *)0x0) { return 0; } if ((int)plVar1[3] == 0) break; plVar1 = plVar1 + 2; } return *(long *)(param_1 + 8) + *plVar1; }
3,111
ggml_get_next_tensor
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
struct ggml_tensor * ggml_get_next_tensor(const struct ggml_context * ctx, struct ggml_tensor * tensor) { struct ggml_object * obj = (struct ggml_object *) ((char *)tensor - GGML_OBJECT_SIZE); obj = obj->next; char * const mem_buffer = ctx->mem_buffer; while (obj != NULL) { if (obj->type == GGML_OBJECT_TENSOR) { return (struct ggml_tensor *)(mem_buffer + obj->offs); } obj = obj->next; } return NULL; }
O3
c
ggml_get_next_tensor: movq -0x10(%rsi), %rcx testq %rcx, %rcx je 0x8d640 movq 0x8(%rdi), %rax cmpl $0x0, 0x18(%rcx) je 0x8d643 movq 0x10(%rcx), %rcx testq %rcx, %rcx jne 0x8d631 xorl %eax, %eax retq addq (%rcx), %rax retq
ggml_get_next_tensor: mov rcx, [rsi-10h] test rcx, rcx jz short loc_8D640 mov rax, [rdi+8] loc_8D631: cmp dword ptr [rcx+18h], 0 jz short loc_8D643 mov rcx, [rcx+10h] test rcx, rcx jnz short loc_8D631 loc_8D640: xor eax, eax retn loc_8D643: add rax, [rcx] retn
long long ggml_get_next_tensor(long long a1, long long a2) { long long v2; // rcx v2 = *(_QWORD *)(a2 - 16); if ( !v2 ) return 0LL; while ( *(_DWORD *)(v2 + 24) ) { v2 = *(_QWORD *)(v2 + 16); if ( !v2 ) return 0LL; } return *(_QWORD *)v2 + *(_QWORD *)(a1 + 8); }
3,112
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::get<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
llama.cpp/common/minja/minja.hpp
inline json Value::get<json>() const { if (is_primitive()) return primitive_; if (is_null()) return json(); if (array_) { std::vector<json> res; for (const auto& item : *array_) { res.push_back(item.get<json>()); } return res; } if (object_) { json res = json::object(); for (const auto& [key, value] : *object_) { if (key.is_string()) { res[key.get<std::string>()] = value.get<json>(); } else if (key.is_primitive()) { res[key.dump()] = value.get<json>(); } else { throw std::runtime_error("Invalid key type for conversion to JSON: " + key.dump()); } } if (is_callable()) { res["__callable__"] = true; } return res; } throw std::runtime_error("get<json> not defined for this value type: " + dump()); }
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> minja::Value::get<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 $0xb8, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0x10(%rsi), %rax movq 0x20(%rsi), %rcx movq %rax, %rsi orq %rcx, %rsi movq 0x30(%r14), %rdx orq %rdx, %rsi jne 0xcaa94 addq $0x40, %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x8b7fc jmp 0xcacf4 testq %rdx, %rdx sete %dl movq %rax, %rsi orq %rcx, %rsi sete %sil cmpb $0x0, 0x40(%r14) sete %dil andb %sil, %dil andb %dl, %dil cmpb $0x1, %dil jne 0xcaae3 movb $0x0, (%rbx) movq $0x0, 0x8(%rbx) movq %rbx, %rdi movl $0x1, %esi callq 0x875ae movq %rbx, %rdi movl $0x1, %esi callq 0x875ae jmp 0xcacf4 testq %rax, %rax je 0xcab55 xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq (%rax), %r14 movq 0x8(%rax), %r13 cmpq %r13, %r14 je 0xcab3d leaq 0x20(%rsp), %r15 movq %rsp, %r12 movq %r15, %rdi movq %r14, %rsi callq 0xcaa52 movq %r12, %rdi movq %r15, %rsi callq 0x8b3c4 movq %r15, %rdi xorl %esi, %esi callq 0x875ae movq %r15, %rdi callq 0x8bcc8 addq $0x50, %r14 cmpq %r13, %r14 jne 0xcab0c movq %rsp, %rsi movq %rbx, %rdi callq 0xcb6b8 movq %rsp, %rdi callq 0x8c4fa jmp 0xcacf4 testq %rcx, %rcx je 0xcad6f movq %rbx, %rdi xorl %esi, %esi xorl %edx, %edx xorl %ecx, %ecx movl $0x1, %r8d callq 0xb3650 movq 0x20(%r14), %rax movq (%rax), %r15 movq 0x8(%rax), %r13 cmpq %r13, %r15 je 0xcac90 leaq 0xa8(%rsp), %rbp leaq 0x40(%rsp), %r12 leaq 0x10(%r15), %rsi movzbl (%r15), %eax testl %eax, %eax je 0xcac11 cmpl $0x4, %eax je 0xcac11 cmpl $0x3, %eax jne 0xcac07 leaq 0x60(%rsp), %rdi callq 0xcaa52 leaq 0x70(%rsp), %r12 movq %r12, %rdi movq %r15, %rsi callq 0xc18c2 movq %rbx, %rdi movq %r12, %rsi callq 0xcb6f2 movq %rax, %rdi leaq 0x60(%rsp), %r12 movq %r12, %rsi callq 0x8971a movq 0x70(%rsp), %rdi leaq 0x80(%rsp), %rax cmpq %rax, %rdi je 0xcac6c movq 0x80(%rsp), %rsi incq %rsi callq 0x21190 leaq 0x60(%rsp), %r12 jmp 0xcac6c addb $-0x5, %al cmpb $0x3, %al ja 0xcad09 movq %rbp, %rdi callq 0xcaa52 movq %r12, %rdi movq %r15, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0xb1e7e movq %rbx, %rdi movq %r12, %rsi callq 0xcb6f2 movq %rax, %rdi movq %rbp, %rsi callq 0x8971a movq 0x40(%rsp), %rdi movq %rbp, %r12 leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xcac6c movq 0x50(%rsp), %rsi incq %rsi callq 0x21190 movq %rbp, %r12 movq %r12, %rdi xorl %esi, %esi callq 0x875ae movq %r12, %rdi callq 0x8bcc8 addq $0x60, %r15 cmpq %r13, %r15 leaq 0x40(%rsp), %r12 jne 0xcab93 cmpq $0x0, 0x30(%r14) je 0xcacf4 xorps %xmm0, %xmm0 leaq 0x90(%rsp), %r14 movaps %xmm0, (%r14) movq %r14, %rdi movl $0x1, %esi callq 0x8dc9e movq %r14, %rdi movl $0x1, %esi callq 0x875ae leaq 0x571b9(%rip), %rsi # 0x121e80 movq %rbx, %rdi callq 0xb384e leaq 0x90(%rsp), %r14 movq %rax, %rdi movq %r14, %rsi callq 0x8971a movq %r14, %rdi xorl %esi, %esi callq 0x875ae movq %r14, %rdi callq 0x8bcc8 movq %rbx, %rax addq $0xb8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x216d0 movq %rax, %r12 leaq 0x20(%rsp), %rdi movq %r15, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0xb1e7e leaq 0x5711c(%rip), %rsi # 0x121e56 movq %rsp, %rdi leaq 0x20(%rsp), %rdx callq 0xb1df4 movb $0x1, %bpl movq %rsp, %rsi movq %r12, %rdi callq 0x21480 xorl %ebp, %ebp movq 0x9a262(%rip), %rsi # 0x164fc0 movq 0x9a21b(%rip), %rdx # 0x164f80 movq %r12, %rdi callq 0x21b60 jmp 0xcadca movl $0x10, %edi callq 0x216d0 movq %rax, %rbx leaq 0x20(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb84e0 leaq 0x570f6(%rip), %rsi # 0x121e8d movq %rsp, %rdi leaq 0x20(%rsp), %rdx callq 0xb1df4 movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0x21480 xorl %ebp, %ebp movq 0x9a205(%rip), %rsi # 0x164fc0 movq 0x9a1be(%rip), %rdx # 0x164f80 movq %rbx, %rdi callq 0x21b60 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xcade8 movq 0x10(%rsp), %rsi incq %rsi callq 0x21190 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xcae03 movq 0x30(%rsp), %rsi incq %rsi callq 0x21190 testb %bpl, %bpl jne 0xcae30 jmp 0xcaf71 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xcae30 movq 0x30(%rsp), %rsi incq %rsi callq 0x21190 jmp 0xcae30 movq %rax, %r14 movq %rbx, %rdi callq 0x22080 jmp 0xcaf71 movq %rax, %r14 leaq 0x90(%rsp), %r15 jmp 0xcaf1f movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xcae6b movq 0x10(%rsp), %rsi incq %rsi callq 0x21190 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xcae86 movq 0x30(%rsp), %rsi incq %rsi callq 0x21190 testb %bpl, %bpl jne 0xcaeb8 jmp 0xcaf36 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xcaeb8 movq 0x30(%rsp), %rsi incq %rsi callq 0x21190 jmp 0xcaeb8 jmp 0xcaf4a movq %rax, %r14 movq %r12, %rdi callq 0x22080 jmp 0xcaf36 movq %rax, %r14 movq 0x70(%rsp), %rdi leaq 0x80(%rsp), %rax cmpq %rax, %rdi je 0xcaeec movq 0x80(%rsp), %rsi incq %rsi callq 0x21190 jmp 0xcaeec movq %rax, %r14 leaq 0x60(%rsp), %r15 jmp 0xcaf1f movq %rax, %r14 movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xcaf17 movq 0x50(%rsp), %rsi incq %rsi callq 0x21190 jmp 0xcaf17 movq %rax, %r14 leaq 0xa8(%rsp), %r15 movq %r15, %rdi xorl %esi, %esi callq 0x875ae movq %r15, %rdi callq 0x8bcc8 jmp 0xcaf36 movq %rax, %r14 movq %rbx, %rdi xorl %esi, %esi callq 0x875ae movq %rbx, %rdi callq 0x8bcc8 jmp 0xcaf71 movq %rax, %r14 jmp 0xcaf69 movq %rax, %r14 leaq 0x20(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x875ae movq %rbx, %rdi callq 0x8bcc8 movq %rsp, %rdi callq 0x8c4fa movq %r14, %rdi callq 0x21c20
_ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0B8h mov r14, rsi mov rbx, rdi mov rax, [rsi+10h] mov rcx, [rsi+20h] mov rsi, rax or rsi, rcx mov rdx, [r14+30h] or rsi, rdx jnz short loc_CAA94 add r14, 40h ; '@' mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp loc_CACF4 loc_CAA94: test rdx, rdx setz dl mov rsi, rax or rsi, rcx setz sil cmp byte ptr [r14+40h], 0 setz dil and dil, sil and dil, dl cmp dil, 1 jnz short loc_CAAE3 mov byte ptr [rbx], 0 mov qword ptr [rbx+8], 0 mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) jmp loc_CACF4 loc_CAAE3: test rax, rax jz short loc_CAB55 xorps xmm0, xmm0 movaps [rsp+0E8h+var_E8], xmm0 mov [rsp+0E8h+var_D8], 0 mov r14, [rax] mov r13, [rax+8] cmp r14, r13 jz short loc_CAB3D lea r15, [rsp+0E8h+var_C8] mov r12, rsp loc_CAB0C: mov rdi, r15 mov rsi, r14 call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void) mov rdi, r12 mov rsi, r15 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r14, 50h ; 'P' cmp r14, r13 jnz short loc_CAB0C loc_CAB3D: mov rsi, rsp mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_ mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector() jmp loc_CACF4 loc_CAB55: test rcx, rcx jz loc_CAD6F mov rdi, rbx 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+20h] mov r15, [rax] mov r13, [rax+8] cmp r15, r13 jz loc_CAC90 lea rbp, [rsp+0E8h+var_40] lea r12, [rsp+0E8h+var_A8] loc_CAB93: lea rsi, [r15+10h] movzx eax, byte ptr [r15] test eax, eax jz short loc_CAC11 cmp eax, 4 jz short loc_CAC11 cmp eax, 3 jnz short loc_CAC07 lea rdi, [rsp+0E8h+var_88] call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void) lea r12, [rsp+0E8h+var_78] mov rdi, r12 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, rbx mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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[](std::string) mov rdi, rax lea r12, [rsp+0E8h+var_88] mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, [rsp+0E8h+var_78]; void * lea rax, [rsp+0E8h+var_68] cmp rdi, rax jz short loc_CAC6C mov rsi, [rsp+0E8h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) lea r12, [rsp+0E8h+var_88] jmp short loc_CAC6C loc_CAC07: add al, 0FBh cmp al, 3 ja loc_CAD09 loc_CAC11: mov rdi, rbp call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void) mov rdi, r12 mov rsi, r15 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) mov rdi, rbx mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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[](std::string) mov rdi, rax mov rsi, rbp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, [rsp+0E8h+var_A8]; void * mov r12, rbp lea rax, [rsp+0E8h+var_98] cmp rdi, rax jz short loc_CAC6C mov rsi, [rsp+0E8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) mov r12, rbp loc_CAC6C: mov rdi, r12 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r15, 60h ; '`' cmp r15, r13 lea r12, [rsp+0E8h+var_A8] jnz loc_CAB93 loc_CAC90: cmp qword ptr [r14+30h], 0 jz short loc_CACF4 xorps xmm0, xmm0 lea r14, [rsp+0E8h+var_58] movaps xmmword ptr [r14], xmm0 mov rdi, r14 mov esi, 1 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::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>::boolean_t) 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) lea rsi, aCallable; "__callable__" mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) lea r14, [rsp+0E8h+var_58] mov rdi, rax mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_CACF4: mov rax, rbx add rsp, 0B8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_CAD09: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r12, rax lea rdi, [rsp+0E8h+var_C8] mov rsi, r15 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) lea rsi, aInvalidKeyType; "Invalid key type for conversion to JSON"... mov rdi, rsp lea rdx, [rsp+0E8h+var_C8] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 mov rsi, rsp mov rdi, r12 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r12; void * call ___cxa_throw jmp short loc_CADCA loc_CAD6F: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+0E8h+var_C8] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aGetJsonNotDefi; "get<json> not defined for this value ty"... mov rdi, rsp lea rdx, [rsp+0E8h+var_C8] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 mov rsi, rsp mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_CADCA: mov r14, rax lea rax, [rsp+0E8h+var_D8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_CADE8 mov rsi, [rsp+0E8h+var_D8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CADE8: lea rax, [rsp+0E8h+var_B8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_CAE03 mov rsi, [rsp+0E8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CAE03: test bpl, bpl jnz short loc_CAE30 jmp loc_CAF71 mov r14, rax lea rax, [rsp+0E8h+var_B8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_CAE30 mov rsi, [rsp+0E8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_CAE30 mov r14, rax loc_CAE30: mov rdi, rbx; void * call ___cxa_free_exception jmp loc_CAF71 mov r14, rax lea r15, [rsp+0E8h+var_58] jmp loc_CAF1F mov r14, rax lea rax, [rsp+0E8h+var_D8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_CAE6B mov rsi, [rsp+0E8h+var_D8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CAE6B: lea rax, [rsp+0E8h+var_B8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_CAE86 mov rsi, [rsp+0E8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CAE86: test bpl, bpl jnz short loc_CAEB8 jmp loc_CAF36 mov r14, rax lea rax, [rsp+0E8h+var_B8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_CAEB8 mov rsi, [rsp+0E8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_CAEB8 jmp loc_CAF4A mov r14, rax loc_CAEB8: mov rdi, r12; void * call ___cxa_free_exception jmp short loc_CAF36 mov r14, rax mov rdi, [rsp+0E8h+var_78]; void * lea rax, [rsp+0E8h+var_68] cmp rdi, rax jz short loc_CAEEC mov rsi, [rsp+0E8h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_CAEEC mov r14, rax loc_CAEEC: lea r15, [rsp+0E8h+var_88] jmp short loc_CAF1F mov r14, rax mov rdi, [rsp+0E8h+var_A8]; void * lea rax, [rsp+0E8h+var_98] cmp rdi, rax jz short loc_CAF17 mov rsi, [rsp+0E8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_CAF17 mov r14, rax loc_CAF17: lea r15, [rsp+0E8h+var_40] loc_CAF1F: mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_CAF36 mov r14, rax loc_CAF36: mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx 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_CAF71 loc_CAF4A: mov r14, rax jmp short loc_CAF69 mov r14, rax lea rbx, [rsp+0E8h+var_C8] mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx 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_CAF69: mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector() loc_CAF71: mov rdi, r14 call __Unwind_Resume
long long minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( long long a1, long long a2) { unsigned long long v3; // rax long long v4; // rcx long long v5; // rdx long long v6; // r14 long long v7; // r13 long long v8; // rax _BYTE *v9; // r15 _BYTE *v10; // r13 _BYTE *v11; // rsi int v12; // eax long long v13; // rax char *v14; // r12 long long v15; // rax long long v16; // rax void *v18; // r12 void *exception; // rbx __int128 v20; // [rsp+0h] [rbp-E8h] BYREF long long v21; // [rsp+10h] [rbp-D8h] char v22[16]; // [rsp+20h] [rbp-C8h] BYREF void *v23[2]; // [rsp+40h] [rbp-A8h] BYREF long long v24; // [rsp+50h] [rbp-98h] BYREF _BYTE v25[16]; // [rsp+60h] [rbp-88h] BYREF void *v26[2]; // [rsp+70h] [rbp-78h] BYREF long long v27; // [rsp+80h] [rbp-68h] BYREF char v28[24]; // [rsp+90h] [rbp-58h] BYREF _BYTE v29[64]; // [rsp+A8h] [rbp-40h] BYREF v3 = *(_QWORD *)(a2 + 16); v4 = *(_QWORD *)(a2 + 32); v5 = *(_QWORD *)(a2 + 48); if ( !(v5 | v4 | 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>::basic_json( (unsigned __int8 *)a1, (unsigned __int8 *)(a2 + 64)); return a1; } if ( v5 == 0 && (v4 | v3) == 0 && *(_BYTE *)(a2 + 64) == 0 ) { *(_BYTE *)a1 = 0; *(_QWORD *)(a1 + 8) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)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>::assert_invariant((char *)a1); return a1; } if ( v3 ) { v20 = 0LL; v21 = 0LL; v6 = *(_QWORD *)v3; v7 = *(_QWORD *)(v3 + 8); if ( *(_QWORD *)v3 != v7 ) { do { minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( v22, v6); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v20, (long long)v22); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v22); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v22); v6 += 80LL; } while ( v6 != v7 ); } ((void ( *)(long long, __int128 *))ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_)( a1, &v20); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector((long long)&v20); return a1; } if ( !v4 ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v22, a2, 0xFFFFFFFF, 0); std::operator+<char>(&v20, (long long)"get<json> not defined for this value type: ", (long long)v22); std::runtime_error::runtime_error(exception, &v20); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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, 0LL, 0LL, 0, 1); v8 = *(_QWORD *)(a2 + 32); v9 = *(_BYTE **)v8; v10 = *(_BYTE **)(v8 + 8); if ( *(_BYTE **)v8 != v10 ) { while ( 1 ) { v11 = v9 + 16; v12 = (unsigned __int8)*v9; if ( !*v9 || v12 == 4 ) goto LABEL_17; if ( v12 != 3 ) break; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( v25, v11); 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)v26, (long long)v9); 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[]( a1, v26); v14 = v25; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( v13, (long long)v25); if ( v26[0] != &v27 ) { operator delete(v26[0], v27 + 1); v14 = v25; } LABEL_19: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v14); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v14); v9 += 96; if ( v9 == v10 ) goto LABEL_20; } if ( (unsigned __int8)(v12 - 5) > 3u ) { v18 = __cxa_allocate_exception(0x10uLL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v22, (long long)v9, -1, 32, 0, 0); std::operator+<char>(&v20, (long long)"Invalid key type for conversion to JSON: ", (long long)v22); std::runtime_error::runtime_error(v18, &v20); __cxa_throw( v18, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } LABEL_17: minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( v29, v11); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( (long long)v23, (long long)v9, -1, 32, 0, 0); v15 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]( a1, v23); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( v15, (long long)v29); v14 = v29; if ( v23[0] != &v24 ) { operator delete(v23[0], v24 + 1); v14 = v29; } goto LABEL_19; } LABEL_20: if ( *(_QWORD *)(a2 + 48) ) { *(_OWORD *)v28 = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::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 *)v28, 1u); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v28); v16 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( a1, (long long)"__callable__"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( v16, (long long)v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v28); } return a1; }
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,0xb8 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI + 0x10] MOV RCX,qword ptr [RSI + 0x20] MOV RSI,RAX OR RSI,RCX MOV RDX,qword ptr [R14 + 0x30] OR RSI,RDX JNZ 0x001caa94 ADD R14,0x40 MOV RDI,RBX MOV RSI,R14 CALL 0x0018b7fc JMP 0x001cacf4 LAB_001caa94: TEST RDX,RDX SETZ DL MOV RSI,RAX OR RSI,RCX SETZ SIL CMP byte ptr [R14 + 0x40],0x0 SETZ DIL AND DIL,SIL AND DIL,DL CMP DIL,0x1 JNZ 0x001caae3 MOV byte ptr [RBX],0x0 MOV qword ptr [RBX + 0x8],0x0 MOV RDI,RBX MOV ESI,0x1 CALL 0x001875ae MOV RDI,RBX MOV ESI,0x1 CALL 0x001875ae JMP 0x001cacf4 LAB_001caae3: TEST RAX,RAX JZ 0x001cab55 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],0x0 MOV R14,qword ptr [RAX] MOV R13,qword ptr [RAX + 0x8] CMP R14,R13 JZ 0x001cab3d LEA R15,[RSP + 0x20] MOV R12,RSP LAB_001cab0c: MOV RDI,R15 MOV RSI,R14 CALL 0x001caa52 LAB_001cab17: MOV RDI,R12 MOV RSI,R15 CALL 0x0018b3c4 MOV RDI,R15 XOR ESI,ESI CALL 0x001875ae MOV RDI,R15 CALL 0x0018bcc8 ADD R14,0x50 CMP R14,R13 JNZ 0x001cab0c LAB_001cab3d: MOV RSI,RSP MOV RDI,RBX CALL 0x001cb6b8 LAB_001cab48: MOV RDI,RSP CALL 0x0018c4fa JMP 0x001cacf4 LAB_001cab55: TEST RCX,RCX JZ 0x001cad6f MOV RDI,RBX XOR ESI,ESI XOR EDX,EDX XOR ECX,ECX MOV R8D,0x1 CALL 0x001b3650 MOV RAX,qword ptr [R14 + 0x20] MOV R15,qword ptr [RAX] MOV R13,qword ptr [RAX + 0x8] CMP R15,R13 JZ 0x001cac90 LEA RBP,[RSP + 0xa8] LEA R12,[RSP + 0x40] LAB_001cab93: LEA RSI,[R15 + 0x10] MOVZX EAX,byte ptr [R15] TEST EAX,EAX JZ 0x001cac11 CMP EAX,0x4 JZ 0x001cac11 CMP EAX,0x3 JNZ 0x001cac07 LAB_001caba9: LEA RDI,[RSP + 0x60] CALL 0x001caa52 LAB_001cabb3: LEA R12,[RSP + 0x70] MOV RDI,R12 MOV RSI,R15 CALL 0x001c18c2 LAB_001cabc3: MOV RDI,RBX MOV RSI,R12 CALL 0x001cb6f2 MOV RDI,RAX LEA R12,[RSP + 0x60] MOV RSI,R12 CALL 0x0018971a MOV RDI,qword ptr [RSP + 0x70] LEA RAX,[RSP + 0x80] CMP RDI,RAX JZ 0x001cac6c MOV RSI,qword ptr [RSP + 0x80] INC RSI CALL 0x00121190 LEA R12,[RSP + 0x60] JMP 0x001cac6c LAB_001cac07: ADD AL,0xfb CMP AL,0x3 JA 0x001cad09 LAB_001cac11: MOV RDI,RBP CALL 0x001caa52 LAB_001cac19: MOV RDI,R12 MOV RSI,R15 MOV EDX,0xffffffff MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x001b1e7e LAB_001cac34: MOV RDI,RBX MOV RSI,R12 CALL 0x001cb6f2 MOV RDI,RAX MOV RSI,RBP CALL 0x0018971a MOV RDI,qword ptr [RSP + 0x40] MOV R12,RBP LEA RAX,[RSP + 0x50] CMP RDI,RAX JZ 0x001cac6c MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x00121190 MOV R12,RBP LAB_001cac6c: MOV RDI,R12 XOR ESI,ESI CALL 0x001875ae MOV RDI,R12 CALL 0x0018bcc8 ADD R15,0x60 CMP R15,R13 LEA R12,[RSP + 0x40] JNZ 0x001cab93 LAB_001cac90: CMP qword ptr [R14 + 0x30],0x0 JZ 0x001cacf4 XORPS XMM0,XMM0 LEA R14,[RSP + 0x90] MOVAPS xmmword ptr [R14],XMM0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0018dc9e MOV RDI,R14 MOV ESI,0x1 CALL 0x001875ae LAB_001cacc0: LEA RSI,[0x221e80] MOV RDI,RBX CALL 0x001b384e LAB_001caccf: LEA R14,[RSP + 0x90] MOV RDI,RAX MOV RSI,R14 CALL 0x0018971a MOV RDI,R14 XOR ESI,ESI CALL 0x001875ae MOV RDI,R14 CALL 0x0018bcc8 LAB_001cacf4: MOV RAX,RBX ADD RSP,0xb8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001cad09: MOV EDI,0x10 CALL 0x001216d0 MOV R12,RAX LAB_001cad16: LEA RDI,[RSP + 0x20] MOV RSI,R15 MOV EDX,0xffffffff MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x001b1e7e LAB_001cad33: LEA RSI,[0x221e56] MOV RDI,RSP LEA RDX,[RSP + 0x20] CALL 0x001b1df4 MOV BPL,0x1 LAB_001cad4a: MOV RSI,RSP MOV RDI,R12 CALL 0x00121480 XOR EBP,EBP MOV RSI,qword ptr [0x00264fc0] MOV RDX,qword ptr [0x00264f80] MOV RDI,R12 CALL 0x00121b60 LAB_001cad6f: MOV EDI,0x10 CALL 0x001216d0 MOV RBX,RAX LAB_001cad7c: LEA RDI,[RSP + 0x20] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001b84e0 LAB_001cad90: LEA RSI,[0x221e8d] MOV RDI,RSP LEA RDX,[RSP + 0x20] CALL 0x001b1df4 MOV BPL,0x1 LAB_001cada7: MOV RSI,RSP MOV RDI,RBX CALL 0x00121480 XOR EBP,EBP MOV RSI,qword ptr [0x00264fc0] MOV RDX,qword ptr [0x00264f80] MOV RDI,RBX CALL 0x00121b60
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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 */ void minja::Value:: get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (void) { char cVar1; long *plVar2; long lVar3; char *pcVar4; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *pbVar5; basic_json *pbVar6; runtime_error *prVar7; 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; data *this; long lVar8; char *pcVar9; int8 local_e8; int8 uStack_e0; int8 local_d8; data local_c8 [32]; long *local_a8 [2]; long local_98 [2]; data local_88 [16]; long *local_78 [2]; long local_68 [2]; int8 local_58; int8 uStack_50; data local_40 [16]; plVar2 = *(long **)(in_RSI + 0x10); lVar8 = *(long *)(in_RSI + 0x20); if ((plVar2 == (long *)0x0 && lVar8 == 0) && *(long *)(in_RSI + 0x30) == 0) { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(in_RDI,(basic_json *)(in_RSI + 0x40)); } else if ((*(char *)(in_RSI + 0x40) == '\0' && (plVar2 == (long *)0x0 && lVar8 == 0)) && *(long *)(in_RSI + 0x30) == 0) { *in_RDI = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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; *(int8 *)(in_RDI + 8) = 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> ::assert_invariant(SUB81(in_RDI,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> ::assert_invariant(SUB81(in_RDI,0)); } else if (plVar2 == (long *)0x0) { if (lVar8 == 0) { prVar7 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001cad7c to 001cad8f has its CatchHandler @ 001cae2d */ dump_abi_cxx11_((int)local_c8,SUB81(in_RSI,0)); /* try { // try from 001cad90 to 001cada3 has its CatchHandler @ 001cae0d */ std::operator+((char *)&local_e8,(string *)"get<json> not defined for this value type: "); /* try { // try from 001cada7 to 001cadc9 has its CatchHandler @ 001cadca */ std::runtime_error::runtime_error(prVar7,(string *)&local_e8); /* WARNING: Subroutine does not return */ __cxa_throw(prVar7,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f80); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(); pcVar9 = (char *)**(int8 **)(in_RSI + 0x20); pcVar4 = (char *)(*(int8 **)(in_RSI + 0x20))[1]; if (pcVar9 != pcVar4) { do { cVar1 = *pcVar9; if ((cVar1 == '\0') || (cVar1 == '\x04')) { LAB_001cac11: /* try { // try from 001cac11 to 001cac18 has its CatchHandler @ 001caf33 */ get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (); /* try { // try from 001cac19 to 001cac33 has its CatchHandler @ 001caf14 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,pcVar9,0xffffffff,0x20,0,0); /* try { // try from 001cac34 to 001cac3e has its CatchHandler @ 001caef3 */ pbVar5 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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> ::operator[](); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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=(pbVar5,local_40); this = local_40; if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } } else { if (cVar1 != '\x03') { if (3 < (byte)(cVar1 - 5U)) { prVar7 = (runtime_error *)__cxa_allocate_exception(0x10,pcVar9 + 0x10); /* try { // try from 001cad16 to 001cad32 has its CatchHandler @ 001caeb5 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_c8,pcVar9,0xffffffff,0x20,0,0); /* try { // try from 001cad33 to 001cad46 has its CatchHandler @ 001cae90 */ std::operator+((char *)&local_e8,(string *)"Invalid key type for conversion to JSON: " ); /* try { // try from 001cad4a to 001cad6c has its CatchHandler @ 001cae4d */ std::runtime_error::runtime_error(prVar7,(string *)&local_e8); /* WARNING: Subroutine does not return */ __cxa_throw(prVar7,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f80); } goto LAB_001cac11; } /* try { // try from 001caba9 to 001cabb2 has its CatchHandler @ 001caf33 */ get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (); /* try { // try from 001cabb3 to 001cabc2 has its CatchHandler @ 001caee9 */ _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_78,pcVar9); /* try { // try from 001cabc3 to 001cabcd has its CatchHandler @ 001caec2 */ pbVar5 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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> ::operator[](); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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=(pbVar5,local_88); this = local_88; if (local_78[0] != local_68) { operator_delete(local_78[0],local_68[0] + 1); this = local_88; } } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(this,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(this); pcVar9 = pcVar9 + 0x60; } while (pcVar9 != pcVar4); } if (*(long *)(in_RSI + 0x30) != 0) { local_58 = 0; uStack_50 = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>:: 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>> (&local_58,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> ::assert_invariant(SUB81(&local_58,0)); /* try { // try from 001cacc0 to 001cacce has its CatchHandler @ 001cae3d */ pbVar6 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(in_RDI,"__callable__"); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)pbVar6,(data *)&local_58); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)&local_58,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_58); } } else { local_e8 = 0; uStack_e0 = 0; local_d8 = 0; lVar8 = *plVar2; lVar3 = plVar2[1]; if (lVar8 != lVar3) { do { /* try { // try from 001cab0c to 001cab16 has its CatchHandler @ 001caf4a */ get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (); /* try { // try from 001cab17 to 001cab21 has its CatchHandler @ 001caf4f */ std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_e8,(basic_json *)local_c8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_c8,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_c8); lVar8 = lVar8 + 0x50; } while (lVar8 != lVar3); } /* try { // try from 001cab3d to 001cab47 has its CatchHandler @ 001caeb0 */ _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_ (); std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_e8); } return; }
3,113
my_casedn_ucs2
eloqsql/strings/ctype-ucs2.c
static size_t my_casedn_ucs2(CHARSET_INFO *cs, const char *src, size_t srclen, char *dst, size_t dstlen) { my_wc_t wc; int res; const char *srcend= src + srclen; char *dstend= dst + dstlen; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(srclen <= dstlen); while ((src < srcend) && (res= my_ucs2_uni(cs, &wc, (uchar*) src, (uchar*) srcend)) > 0) { my_tolower_ucs2(uni_plane, &wc); if (res != my_uni_ucs2(cs, wc, (uchar*) dst, (uchar*) dstend)) break; src+= res; dst+= res; } return srclen; }
O3
c
my_casedn_ucs2: movq %rdx, %rax cmpq $0x2, %rdx jl 0x4c0e6 pushq %rbp movq %rsp, %rbp leaq (%rsi,%rax), %rdx addq %rcx, %r8 movq 0x78(%rdi), %rdi addq $0x2, %rcx movzbl (%rsi), %r9d movzbl 0x1(%rsi), %r10d movq 0x8(%rdi), %r11 movq (%r11,%r9,8), %r11 testq %r11, %r11 je 0x4c0ad leaq (%r10,%r10,2), %r9 movl 0x4(%r11,%r9,4), %r9d jmp 0x4c0b4 shll $0x8, %r9d orq %r10, %r9 cmpq %r8, %rcx ja 0x4c0e5 cmpl $0xffff, %r9d # imm = 0xFFFF ja 0x4c0e5 rolw $0x8, %r9w movw %r9w, -0x2(%rcx) leaq 0x2(%rsi), %r9 cmpq %rdx, %r9 jae 0x4c0e5 addq $0x4, %rsi addq $0x2, %rcx cmpq %rdx, %rsi movq %r9, %rsi jbe 0x4c08c popq %rbp retq
my_casedn_ucs2: mov rax, rdx cmp rdx, 2 jl short locret_4C0E6 push rbp mov rbp, rsp lea rdx, [rsi+rax] add r8, rcx mov rdi, [rdi+78h] add rcx, 2 loc_4C08C: movzx r9d, byte ptr [rsi] movzx r10d, byte ptr [rsi+1] mov r11, [rdi+8] mov r11, [r11+r9*8] test r11, r11 jz short loc_4C0AD lea r9, [r10+r10*2] mov r9d, [r11+r9*4+4] jmp short loc_4C0B4 loc_4C0AD: shl r9d, 8 or r9, r10 loc_4C0B4: cmp rcx, r8 ja short loc_4C0E5 cmp r9d, 0FFFFh ja short loc_4C0E5 rol r9w, 8 mov [rcx-2], r9w lea r9, [rsi+2] cmp r9, rdx jnb short loc_4C0E5 add rsi, 4 add rcx, 2 cmp rsi, rdx mov rsi, r9 jbe short loc_4C08C loc_4C0E5: pop rbp locret_4C0E6: retn
long long my_casedn_ucs2(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5) { long long result; // rax unsigned long long v6; // rdx unsigned long long v7; // r8 long long v8; // rdi unsigned long long v9; // rcx long long v10; // r9 long long v11; // r10 long long v12; // r11 unsigned int v13; // r9d bool v14; // cc result = a3; if ( a3 >= 2 ) { v6 = (unsigned long long)&a2[a3]; v7 = a4 + a5; v8 = *(_QWORD *)(a1 + 120); v9 = a4 + 2; do { v10 = *a2; v11 = a2[1]; v12 = *(_QWORD *)(*(_QWORD *)(v8 + 8) + 8 * v10); if ( v12 ) v13 = *(_DWORD *)(v12 + 12 * v11 + 4); else v13 = v11 | ((_DWORD)v10 << 8); if ( v9 > v7 ) break; if ( v13 > 0xFFFF ) break; *(_WORD *)(v9 - 2) = __ROL2__(v13, 8); if ( (unsigned long long)(a2 + 2) >= v6 ) break; v9 += 2LL; v14 = (unsigned long long)(a2 + 4) <= v6; a2 += 2; } while ( v14 ); } return result; }
my_casedn_ucs2: MOV RAX,RDX CMP RDX,0x2 JL 0x0014c0e6 PUSH RBP MOV RBP,RSP LEA RDX,[RSI + RAX*0x1] ADD R8,RCX MOV RDI,qword ptr [RDI + 0x78] ADD RCX,0x2 LAB_0014c08c: MOVZX R9D,byte ptr [RSI] MOVZX R10D,byte ptr [RSI + 0x1] MOV R11,qword ptr [RDI + 0x8] MOV R11,qword ptr [R11 + R9*0x8] TEST R11,R11 JZ 0x0014c0ad LEA R9,[R10 + R10*0x2] MOV R9D,dword ptr [R11 + R9*0x4 + 0x4] JMP 0x0014c0b4 LAB_0014c0ad: SHL R9D,0x8 OR R9,R10 LAB_0014c0b4: CMP RCX,R8 JA 0x0014c0e5 CMP R9D,0xffff JA 0x0014c0e5 ROL R9W,0x8 MOV word ptr [RCX + -0x2],R9W LEA R9,[RSI + 0x2] CMP R9,RDX JNC 0x0014c0e5 ADD RSI,0x4 ADD RCX,0x2 CMP RSI,RDX MOV RSI,R9 JBE 0x0014c08c LAB_0014c0e5: POP RBP LAB_0014c0e6: RET
void my_casedn_ucs2(long param_1,byte *param_2,long param_3,long param_4,long param_5) { long lVar1; long lVar2; ulong uVar3; byte *pbVar4; byte *pbVar5; uint uVar6; if (1 < param_3) { lVar1 = *(long *)(param_1 + 0x78); uVar3 = param_4 + 2; pbVar4 = param_2; while( true ) { lVar2 = *(long *)(*(long *)(lVar1 + 8) + (ulong)*pbVar4 * 8); if (lVar2 == 0) { uVar6 = (uint)CONCAT11(*pbVar4,pbVar4[1]); } else { uVar6 = *(uint *)(lVar2 + 4 + (ulong)pbVar4[1] * 0xc); } if (((ulong)(param_5 + param_4) < uVar3) || (0xffff < uVar6)) break; *(ushort *)(uVar3 - 2) = (ushort)uVar6 << 8 | (ushort)uVar6 >> 8; if (param_2 + param_3 <= pbVar4 + 2) { return; } pbVar5 = pbVar4 + 4; uVar3 = uVar3 + 2; pbVar4 = pbVar4 + 2; if (param_2 + param_3 < pbVar5) { return; } } } return; }
3,114
mi_writeinfo
eloqsql/storage/myisam/mi_locking.c
int _mi_writeinfo(register MI_INFO *info, uint operation) { int error,olderror; MYISAM_SHARE *share=info->s; DBUG_ENTER("_mi_writeinfo"); DBUG_PRINT("info",("operation: %u tot_locks: %u", operation, share->tot_locks)); error=0; if (share->tot_locks == 0) { olderror=my_errno; /* Remember last error */ if (operation) { /* Two threads can't be here */ share->state.process= share->last_process= share->this_process; share->state.unique= info->last_unique= info->this_unique; share->state.update_count= info->last_loop= ++info->this_loop; if ((error=mi_state_info_write(share->kfile, &share->state, 1))) olderror=my_errno; #ifdef _WIN32 if (myisam_flush) { if (share->file_map) my_msync(info->dfile, share->file_map, share->mmaped_length, MS_SYNC); mysql_file_sync(share->kfile, 0); mysql_file_sync(info->dfile, 0); } #endif } if (!(operation & WRITEINFO_NO_UNLOCK) && my_lock(share->kfile,F_UNLCK,0L,F_TO_EOF, MYF(MY_WME | MY_SEEK_NOT_DONE)) && !error) DBUG_RETURN(1); my_errno=olderror; } else if (operation) share->changed= 1; /* Mark keyfile changed */ DBUG_RETURN(error); }
O3
c
mi_writeinfo: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %r15d movq (%rdi), %rbx cmpl $0x0, 0x368(%rbx) je 0x7c947 xorl %eax, %eax testl %r15d, %r15d je 0x7c9f9 movb $0x1, 0x37f(%rbx) jmp 0x7c9f9 movq %rdi, %r14 callq 0xa1b22 movl (%rax), %r12d testl %r15d, %r15d je 0x7c9c1 movq 0x300(%rbx), %rax movq %rax, 0x308(%rbx) movq %rax, 0x68(%rbx) movq 0x150(%r14), %rax movq %rax, 0x158(%r14) movq %rax, 0x70(%rbx) movq 0x160(%r14), %rax incq %rax movq %rax, 0x160(%r14) movq %rax, 0x168(%r14) movq %rax, 0x78(%rbx) movl 0x350(%rbx), %edi movq %rbx, %rsi movl $0x1, %edx callq 0x7fdf4 movl %eax, %r14d testl %eax, %eax je 0x7c9b9 callq 0xa1b22 movl (%rax), %r12d testb $0x2, %r15b je 0x7c9c4 jmp 0x7c9ee xorl %r14d, %r14d movl 0x350(%rbx), %edi movl $0x30, %r8d movl $0x2, %esi xorl %edx, %edx xorl %ecx, %ecx callq 0x9fb54 testl %r14d, %r14d jne 0x7c9ee movl %eax, %ecx movl $0x1, %eax testl %ecx, %ecx jne 0x7c9f9 callq 0xa1b22 movl %r12d, (%rax) movl %r14d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_mi_writeinfo: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r15d, esi mov rbx, [rdi] cmp dword ptr [rbx+368h], 0 jz short loc_7C947 xor eax, eax test r15d, r15d jz loc_7C9F9 mov byte ptr [rbx+37Fh], 1 jmp loc_7C9F9 loc_7C947: mov r14, rdi call _my_thread_var mov r12d, [rax] test r15d, r15d jz short loc_7C9C1 mov rax, [rbx+300h] mov [rbx+308h], rax mov [rbx+68h], rax mov rax, [r14+150h] mov [r14+158h], rax mov [rbx+70h], rax mov rax, [r14+160h] inc rax mov [r14+160h], rax mov [r14+168h], rax mov [rbx+78h], rax mov edi, [rbx+350h] mov rsi, rbx mov edx, 1 call mi_state_info_write mov r14d, eax test eax, eax jz short loc_7C9B9 call _my_thread_var mov r12d, [rax] loc_7C9B9: test r15b, 2 jz short loc_7C9C4 jmp short loc_7C9EE loc_7C9C1: xor r14d, r14d loc_7C9C4: mov edi, [rbx+350h] mov r8d, 30h ; '0' mov esi, 2 xor edx, edx xor ecx, ecx call my_lock test r14d, r14d jnz short loc_7C9EE mov ecx, eax mov eax, 1 test ecx, ecx jnz short loc_7C9F9 loc_7C9EE: call _my_thread_var mov [rax], r12d mov eax, r14d loc_7C9F9: pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long mi_writeinfo(_QWORD *a1, const char *a2) { char v2; // r15 long long v3; // rbx long long result; // rax int v5; // r12d long long v6; // rax long long v7; // rax long long v8; // rax long long v9; // rdi const char *v10; // rsi unsigned int v11; // r14d int v12; // eax int v13; // ecx v2 = (char)a2; v3 = *a1; if ( *(_DWORD *)(*a1 + 872LL) ) { result = 0LL; if ( (_DWORD)a2 ) *(_BYTE *)(v3 + 895) = 1; return result; } v5 = *(_DWORD *)my_thread_var(a1, a2); if ( (_DWORD)a2 ) { v6 = *(_QWORD *)(v3 + 768); *(_QWORD *)(v3 + 776) = v6; *(_QWORD *)(v3 + 104) = v6; v7 = a1[42]; a1[43] = v7; *(_QWORD *)(v3 + 112) = v7; v8 = a1[44] + 1LL; a1[44] = v8; a1[45] = v8; *(_QWORD *)(v3 + 120) = v8; v9 = *(unsigned int *)(v3 + 848); v10 = (const char *)v3; v11 = mi_state_info_write(v9, v3, 1LL); if ( v11 ) v5 = *(_DWORD *)my_thread_var(v9, (const char *)v3); if ( (v2 & 2) != 0 ) goto LABEL_12; } else { v11 = 0; } v9 = *(unsigned int *)(v3 + 848); v10 = (_BYTE *)(&dword_0 + 2); v12 = my_lock(v9, 2LL, 0LL, 0LL, 48LL); if ( v11 || (v13 = v12, result = 1LL, !v13) ) { LABEL_12: *(_DWORD *)my_thread_var(v9, v10) = v5; return v11; } return result; }
_mi_writeinfo: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R15D,ESI MOV RBX,qword ptr [RDI] CMP dword ptr [RBX + 0x368],0x0 JZ 0x0017c947 XOR EAX,EAX TEST R15D,R15D JZ 0x0017c9f9 MOV byte ptr [RBX + 0x37f],0x1 JMP 0x0017c9f9 LAB_0017c947: MOV R14,RDI CALL 0x001a1b22 MOV R12D,dword ptr [RAX] TEST R15D,R15D JZ 0x0017c9c1 MOV RAX,qword ptr [RBX + 0x300] MOV qword ptr [RBX + 0x308],RAX MOV qword ptr [RBX + 0x68],RAX MOV RAX,qword ptr [R14 + 0x150] MOV qword ptr [R14 + 0x158],RAX MOV qword ptr [RBX + 0x70],RAX MOV RAX,qword ptr [R14 + 0x160] INC RAX MOV qword ptr [R14 + 0x160],RAX MOV qword ptr [R14 + 0x168],RAX MOV qword ptr [RBX + 0x78],RAX MOV EDI,dword ptr [RBX + 0x350] MOV RSI,RBX MOV EDX,0x1 CALL 0x0017fdf4 MOV R14D,EAX TEST EAX,EAX JZ 0x0017c9b9 CALL 0x001a1b22 MOV R12D,dword ptr [RAX] LAB_0017c9b9: TEST R15B,0x2 JZ 0x0017c9c4 JMP 0x0017c9ee LAB_0017c9c1: XOR R14D,R14D LAB_0017c9c4: MOV EDI,dword ptr [RBX + 0x350] MOV R8D,0x30 MOV ESI,0x2 XOR EDX,EDX XOR ECX,ECX CALL 0x0019fb54 TEST R14D,R14D JNZ 0x0017c9ee MOV ECX,EAX MOV EAX,0x1 TEST ECX,ECX JNZ 0x0017c9f9 LAB_0017c9ee: CALL 0x001a1b22 MOV dword ptr [RAX],R12D MOV EAX,R14D LAB_0017c9f9: POP RBX POP R12 POP R14 POP R15 POP RBP RET
int _mi_writeinfo(long *param_1,uint param_2) { long lVar1; int iVar2; int iVar3; int4 *puVar4; long lVar5; int4 uVar6; lVar1 = *param_1; if (*(int *)(lVar1 + 0x368) != 0) { if (param_2 == 0) { return 0; } *(int1 *)(lVar1 + 0x37f) = 1; return 0; } puVar4 = (int4 *)_my_thread_var(); uVar6 = *puVar4; if (param_2 == 0) { iVar2 = 0; } else { *(int8 *)(lVar1 + 0x308) = *(int8 *)(lVar1 + 0x300); *(int8 *)(lVar1 + 0x68) = *(int8 *)(lVar1 + 0x300); param_1[0x2b] = param_1[0x2a]; *(long *)(lVar1 + 0x70) = param_1[0x2a]; lVar5 = param_1[0x2c] + 1; param_1[0x2c] = lVar5; param_1[0x2d] = lVar5; *(long *)(lVar1 + 0x78) = lVar5; iVar2 = mi_state_info_write(*(int4 *)(lVar1 + 0x350),lVar1,1); if (iVar2 != 0) { puVar4 = (int4 *)_my_thread_var(); uVar6 = *puVar4; } if ((param_2 & 2) != 0) goto LAB_0017c9ee; } iVar3 = my_lock(*(int4 *)(lVar1 + 0x350),2,0,0,0x30); if ((iVar2 == 0) && (iVar3 != 0)) { return 1; } LAB_0017c9ee: puVar4 = (int4 *)_my_thread_var(); *puVar4 = uVar6; return iVar2; }
3,115
client_mpvio_write_packet
eloqsql/libmariadb/plugins/auth/my_auth.c
static int client_mpvio_write_packet(struct st_plugin_vio *mpv, const uchar *pkt, size_t pkt_len) { int res; MCPVIO_EXT *mpvio= (MCPVIO_EXT*)mpv; if (mpvio->packets_written == 0) { if (mpvio->mysql_change_user) res= send_change_user_packet(mpvio, pkt, (int)pkt_len); else res= send_client_reply_packet(mpvio, pkt, (int)pkt_len); } else { NET *net= &mpvio->mysql->net; if (mpvio->mysql->thd) res= 1; /* no chit-chat in embedded */ else res= ma_net_write(net, (unsigned char *)pkt, pkt_len) || ma_net_flush(net); } if (res) { /* don't overwrite errors */ if (!mysql_errno(mpvio->mysql)) my_set_error(mpvio->mysql, CR_SERVER_LOST, SQLSTATE_UNKNOWN, ER(CR_SERVER_LOST_EXTENDED), "sending authentication information", errno); } mpvio->packets_written++; return res; }
O0
c
client_mpvio_write_packet: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpl $0x0, 0x44(%rax) jne 0x44b40 movq -0x28(%rbp), %rax cmpb $0x0, 0x48(%rax) je 0x44b28 movq -0x28(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rax movl %eax, %edx callq 0x44c70 movl %eax, -0x1c(%rbp) jmp 0x44b3e movq -0x28(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rax movl %eax, %edx callq 0x44ee0 movl %eax, -0x1c(%rbp) jmp 0x44ba3 movq -0x28(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movq 0x18(%rax), %rax cmpq $0x0, 0x4d8(%rax) je 0x44b67 movl $0x1, -0x1c(%rbp) jmp 0x44ba1 movq -0x30(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x492b0 movl %eax, %ecx movb $0x1, %al cmpl $0x0, %ecx movb %al, -0x31(%rbp) jne 0x44b96 movq -0x30(%rbp), %rdi callq 0x48e90 cmpl $0x0, %eax setne %al movb %al, -0x31(%rbp) movb -0x31(%rbp), %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x1c(%rbp) jmp 0x44ba3 cmpl $0x0, -0x1c(%rbp) je 0x44c10 movq -0x28(%rbp), %rax movq 0x18(%rax), %rdi callq 0x26870 cmpl $0x0, %eax jne 0x44c0e movq -0x28(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x50(%rbp) leaq 0x1f572(%rip), %rax # 0x64140 movq (%rax), %rax movq %rax, -0x48(%rbp) leaq 0x1f574(%rip), %rax # 0x64150 movq 0x1b8(%rax), %rax movq %rax, -0x40(%rbp) callq 0x13050 movq -0x50(%rbp), %rdi movq -0x48(%rbp), %rdx movq -0x40(%rbp), %rcx movl (%rax), %r9d movl $0x7dd, %esi # imm = 0x7DD leaq 0xcfc0(%rip), %r8 # 0x51bc7 movb $0x0, %al callq 0x1ac80 jmp 0x44c10 movq -0x28(%rbp), %rax movl 0x44(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x44(%rax) movl -0x1c(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
client_mpvio_write_packet: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_8] mov [rbp+var_28], rax mov rax, [rbp+var_28] cmp dword ptr [rax+44h], 0 jnz short loc_44B40 mov rax, [rbp+var_28] cmp byte ptr [rax+48h], 0 jz short loc_44B28 mov rdi, [rbp+var_28] mov rsi, [rbp+var_10] mov rax, [rbp+var_18] mov edx, eax call send_change_user_packet mov [rbp+var_1C], eax jmp short loc_44B3E loc_44B28: mov rdi, [rbp+var_28] mov rsi, [rbp+var_10] mov rax, [rbp+var_18] mov edx, eax call send_client_reply_packet mov [rbp+var_1C], eax loc_44B3E: jmp short loc_44BA3 loc_44B40: mov rax, [rbp+var_28] mov rax, [rax+18h] mov [rbp+var_30], rax mov rax, [rbp+var_28] mov rax, [rax+18h] cmp qword ptr [rax+4D8h], 0 jz short loc_44B67 mov [rbp+var_1C], 1 jmp short loc_44BA1 loc_44B67: mov rdi, [rbp+var_30] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] call ma_net_write mov ecx, eax mov al, 1 cmp ecx, 0 mov [rbp+var_31], al jnz short loc_44B96 mov rdi, [rbp+var_30] call ma_net_flush cmp eax, 0 setnz al mov [rbp+var_31], al loc_44B96: mov al, [rbp+var_31] and al, 1 movzx eax, al mov [rbp+var_1C], eax loc_44BA1: jmp short $+2 loc_44BA3: cmp [rbp+var_1C], 0 jz short loc_44C10 mov rax, [rbp+var_28] mov rdi, [rax+18h] call mysql_errno cmp eax, 0 jnz short loc_44C0E mov rax, [rbp+var_28] mov rax, [rax+18h] mov [rbp+var_50], rax lea rax, SQLSTATE_UNKNOWN mov rax, [rax] mov [rbp+var_48], rax lea rax, client_errors mov rax, [rax+1B8h] mov [rbp+var_40], rax call ___errno_location mov rdi, [rbp+var_50] mov rdx, [rbp+var_48] mov rcx, [rbp+var_40] mov r9d, [rax] mov esi, 7DDh lea r8, aSendingAuthent; "sending authentication information" mov al, 0 call my_set_error loc_44C0E: jmp short $+2 loc_44C10: mov rax, [rbp+var_28] mov ecx, [rax+44h] add ecx, 1 mov [rax+44h], ecx mov eax, [rbp+var_1C] add rsp, 50h pop rbp retn
long long client_mpvio_write_packet(long long a1, long long a2, long long a3) { unsigned int *v3; // rax long long v5; // [rsp+0h] [rbp-50h] char *v6; // [rsp+8h] [rbp-48h] char *v7; // [rsp+10h] [rbp-40h] bool v8; // [rsp+1Fh] [rbp-31h] long long v9; // [rsp+20h] [rbp-30h] unsigned int v10; // [rsp+34h] [rbp-1Ch] if ( *(_DWORD *)(a1 + 68) ) { v9 = *(_QWORD *)(a1 + 24); if ( *(_QWORD *)(v9 + 1240) ) { v10 = 1; } else { v8 = 1; if ( !(unsigned int)ma_net_write(v9, a2, a3) ) v8 = (unsigned int)ma_net_flush(v9) != 0; v10 = v8; } } else if ( *(_BYTE *)(a1 + 72) ) { v10 = send_change_user_packet(a1, a2, (unsigned int)a3); } else { v10 = send_client_reply_packet(a1, a2, (unsigned int)a3); } if ( v10 && !(unsigned int)mysql_errno(*(_QWORD *)(a1 + 24)) ) { v5 = *(_QWORD *)(a1 + 24); v6 = SQLSTATE_UNKNOWN; v7 = client_errors[55]; v3 = (unsigned int *)__errno_location(); my_set_error(v5, 0x7DDu, (long long)v6, (long long)v7, "sending authentication information", *v3); } ++*(_DWORD *)(a1 + 68); return v10; }
client_mpvio_write_packet: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] CMP dword ptr [RAX + 0x44],0x0 JNZ 0x00144b40 MOV RAX,qword ptr [RBP + -0x28] CMP byte ptr [RAX + 0x48],0x0 JZ 0x00144b28 MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV EDX,EAX CALL 0x00144c70 MOV dword ptr [RBP + -0x1c],EAX JMP 0x00144b3e LAB_00144b28: MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV EDX,EAX CALL 0x00144ee0 MOV dword ptr [RBP + -0x1c],EAX LAB_00144b3e: JMP 0x00144ba3 LAB_00144b40: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x18] CMP qword ptr [RAX + 0x4d8],0x0 JZ 0x00144b67 MOV dword ptr [RBP + -0x1c],0x1 JMP 0x00144ba1 LAB_00144b67: MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] CALL 0x001492b0 MOV ECX,EAX MOV AL,0x1 CMP ECX,0x0 MOV byte ptr [RBP + -0x31],AL JNZ 0x00144b96 MOV RDI,qword ptr [RBP + -0x30] CALL 0x00148e90 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x31],AL LAB_00144b96: MOV AL,byte ptr [RBP + -0x31] AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x1c],EAX LAB_00144ba1: JMP 0x00144ba3 LAB_00144ba3: CMP dword ptr [RBP + -0x1c],0x0 JZ 0x00144c10 MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX + 0x18] CALL 0x00126870 CMP EAX,0x0 JNZ 0x00144c0e MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x50],RAX LEA RAX,[0x164140] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x48],RAX LEA RAX,[0x164150] MOV RAX,qword ptr [RAX + 0x1b8] MOV qword ptr [RBP + -0x40],RAX CALL 0x00113050 MOV RDI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x40] MOV R9D,dword ptr [RAX] MOV ESI,0x7dd LEA R8,[0x151bc7] MOV AL,0x0 CALL 0x0011ac80 LAB_00144c0e: JMP 0x00144c10 LAB_00144c10: MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RAX + 0x44] ADD ECX,0x1 MOV dword ptr [RAX + 0x44],ECX MOV EAX,dword ptr [RBP + -0x1c] ADD RSP,0x50 POP RBP RET
uint client_mpvio_write_packet(long param_1,int8 param_2,ulong param_3) { int8 uVar1; int *puVar2; int *puVar3; int iVar4; int *piVar5; bool local_39; uint local_24; if (*(int *)(param_1 + 0x44) == 0) { if (*(char *)(param_1 + 0x48) == '\0') { local_24 = send_client_reply_packet(param_1,param_2,param_3 & 0xffffffff); } else { local_24 = send_change_user_packet(param_1,param_2,param_3 & 0xffffffff); } } else { uVar1 = *(int8 *)(param_1 + 0x18); if (*(long *)(*(long *)(param_1 + 0x18) + 0x4d8) == 0) { iVar4 = ma_net_write(uVar1,param_2,param_3); local_39 = true; if (iVar4 == 0) { iVar4 = ma_net_flush(uVar1); local_39 = iVar4 != 0; } local_24 = (uint)local_39; } else { local_24 = 1; } } if ((local_24 != 0) && (iVar4 = mysql_errno(*(int8 *)(param_1 + 0x18)), puVar3 = PTR_s_Lost_connection_to_server_at___s_00164308, puVar2 = SQLSTATE_UNKNOWN, iVar4 == 0 )) { uVar1 = *(int8 *)(param_1 + 0x18); piVar5 = __errno_location(); my_set_error(uVar1,0x7dd,puVar2,puVar3,"sending authentication information",*piVar5); } *(int *)(param_1 + 0x44) = *(int *)(param_1 + 0x44) + 1; return local_24; }
3,116
LefDefParser::lefwLayerRoutingStartSpacingtableParallel(int, double*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwLayerRoutingStartSpacingtableParallel(int numLength, double *length) { int i; if (!lefwFile) return LEFW_UNINITIALIZED; if (lefwState != LEFW_LAYERROUTING_START && lefwState != LEFW_LAYERROUTING) return LEFW_BAD_ORDER; if (!lefwIsRoutingReqData) { return LEFW_BAD_ORDER; } if (prtSemiColon) { // the previous statement hasn't written the ; yet if (lefwWriteEncrypt) encPrint(lefwFile, (char*) ";\n"); else fprintf(lefwFile, ";\n"); prtSemiColon = 0; } if (lefwWriteEncrypt) { encPrint(lefwFile, (char*) " SPACINGTABLE\n"); encPrint(lefwFile, (char*) " PARALLELRUNLENGTH"); for (i = 0; i < numLength; i++) encPrint(lefwFile, (char*) " %.11g", length[i]); } else { fprintf(lefwFile, " SPACINGTABLE\n"); fprintf(lefwFile, " PARALLELRUNLENGTH"); for (i = 0; i < numLength; i++) fprintf(lefwFile, " %.11g", length[i]); } lefwState = LEFW_LAYERROUTING_SP_START; lefwLines += 2; return LEFW_OK; }
O3
cpp
LefDefParser::lefwLayerRoutingStartSpacingtableParallel(int, double*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax leaq 0x19bdf(%rip), %r15 # 0x24e00 movq (%r15), %rcx testq %rcx, %rcx je 0xb281 movq %rsi, %rbx movl %edi, %ebp leaq 0x19e1b(%rip), %r12 # 0x25050 movl (%r12), %edx movl $0x2, %eax cmpl $0x1f, %edx je 0xb24c cmpl $0x7, %edx jne 0xb373 leaq 0x19e81(%rip), %rdx # 0x250d4 cmpl $0x0, (%rdx) je 0xb373 cmpb $0x1, 0x19e91(%rip) # 0x250f4 jne 0xb2a8 cmpb $0x1, 0x19e80(%rip) # 0x250ec jne 0xb28b leaq 0xef9b(%rip), %rsi # 0x1a210 movq %rcx, %rdi xorl %eax, %eax callq 0x18c35 jmp 0xb2a1 movl $0x1, %eax jmp 0xb373 leaq 0xef7e(%rip), %rdi # 0x1a210 movl $0x2, %esi movl $0x1, %edx callq 0x1110 movb $0x0, 0x19e4c(%rip) # 0x250f4 movq (%r15), %rcx cmpb $0x1, 0x19e3a(%rip) # 0x250ec jne 0xb306 leaq 0xf93f(%rip), %rsi # 0x1abfa movq %rcx, %rdi xorl %eax, %eax callq 0x18c35 movq (%r15), %rdi leaq 0xf93c(%rip), %rsi # 0x1ac0b xorl %eax, %eax callq 0x18c35 testl %ebp, %ebp jle 0xb35f movl %ebp, %r13d xorl %ebp, %ebp leaq 0xf122(%rip), %r14 # 0x1a40c movq (%r15), %rdi movsd (%rbx,%rbp,8), %xmm0 movq %r14, %rsi movb $0x1, %al callq 0x18c35 incq %rbp cmpq %rbp, %r13 jne 0xb2ea jmp 0xb35f leaq 0xf8ed(%rip), %rdi # 0x1abfa movl $0x10, %esi movl $0x1, %edx callq 0x1110 movq (%r15), %rcx leaq 0xf8e5(%rip), %rdi # 0x1ac0b movl $0x16, %esi movl $0x1, %edx callq 0x1110 testl %ebp, %ebp jle 0xb35f movl %ebp, %r13d xorl %ebp, %ebp leaq 0xf0c7(%rip), %r14 # 0x1a40c movq (%r15), %rdi movsd (%rbx,%rbp,8), %xmm0 movq %r14, %rsi movb $0x1, %al callq 0x10f0 incq %rbp cmpq %rbp, %r13 jne 0xb345 movl $0x8, (%r12) leaq 0x19cde(%rip), %rax # 0x2504c addl $0x2, (%rax) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN12LefDefParser41lefwLayerRoutingStartSpacingtableParallelEiPd: push rbp push r15 push r14 push r13 push r12 push rbx push rax lea r15, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rcx, [r15] test rcx, rcx jz short loc_B281 mov rbx, rsi mov ebp, edi lea r12, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov edx, [r12] mov eax, 2 cmp edx, 1Fh jz short loc_B24C cmp edx, 7 jnz loc_B373 loc_B24C: lea rdx, _ZN12LefDefParser20lefwIsRoutingReqDataE; LefDefParser::lefwIsRoutingReqData cmp dword ptr [rdx], 0 jz loc_B373 cmp cs:_ZN12LefDefParserL12prtSemiColonE, 1; LefDefParser::prtSemiColon jnz short loc_B2A8 cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz short loc_B28B lea rsi, aDividercharS+11h; ";\n" mov rdi, rcx xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_B2A1 loc_B281: mov eax, 1 jmp loc_B373 loc_B28B: lea rdi, aDividercharS+11h; ";\n" mov esi, 2 mov edx, 1 call _fwrite loc_B2A1: mov cs:_ZN12LefDefParserL12prtSemiColonE, 0; LefDefParser::prtSemiColon loc_B2A8: mov rcx, [r15] cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz short loc_B306 lea rsi, aSpacingtable; " SPACINGTABLE\n" mov rdi, rcx xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) mov rdi, [r15] lea rsi, aParallelrunlen; " PARALLELRUNLENGTH" xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) test ebp, ebp jle loc_B35F mov r13d, ebp xor ebp, ebp lea r14, aArea11g+0Ah; " %.11g" loc_B2EA: mov rdi, [r15] movsd xmm0, qword ptr [rbx+rbp*8] mov rsi, r14 mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) inc rbp cmp r13, rbp jnz short loc_B2EA jmp short loc_B35F loc_B306: lea rdi, aSpacingtable; " SPACINGTABLE\n" mov esi, 10h mov edx, 1 call _fwrite mov rcx, [r15] lea rdi, aParallelrunlen; " PARALLELRUNLENGTH" mov esi, 16h mov edx, 1 call _fwrite test ebp, ebp jle short loc_B35F mov r13d, ebp xor ebp, ebp lea r14, aArea11g+0Ah; " %.11g" loc_B345: mov rdi, [r15] movsd xmm0, qword ptr [rbx+rbp*8] mov rsi, r14 mov al, 1 call _fprintf inc rbp cmp r13, rbp jnz short loc_B345 loc_B35F: mov dword ptr [r12], 8 lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines add dword ptr [rax], 2 xor eax, eax loc_B373: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long LefDefParser::lefwLayerRoutingStartSpacingtableParallel( LefDefParser *this, long long a2, double *a3, long long a4, int a5, int a6) { long long result; // rax _DWORD *v7; // rdx int v8; // edx int v9; // ecx int v10; // r8d int v11; // r9d int v12; // edx int v13; // ecx int v14; // r8d int v15; // r9d long long v16; // rbp long long v17; // rbp if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; result = 2LL; if ( LefDefParser::lefwState == 31 || LefDefParser::lefwState == 7 ) { v7 = &LefDefParser::lefwIsRoutingReqData; if ( LefDefParser::lefwIsRoutingReqData ) { if ( LefDefParser::prtSemiColon == 1 ) { if ( LefDefParser::lefwWriteEncrypt == 1 ) LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)";\n", (unsigned int)&LefDefParser::lefwIsRoutingReqData, LefDefParser::lefwFile, a5, a6); else fwrite(";\n", 2LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); LefDefParser::prtSemiColon = 0; } if ( LefDefParser::lefwWriteEncrypt == 1 ) { LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" SPACINGTABLE\n", (_DWORD)v7, LefDefParser::lefwFile, a5, a6); LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" PARALLELRUNLENGTH", v8, v9, v10, v11); if ( (int)this > 0 ) { v16 = 0LL; do { LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" %.11g", v12, v13, v14, v15); ++v16; } while ( (unsigned int)this != v16 ); } } else { fwrite(" SPACINGTABLE\n", 16LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); fwrite(" PARALLELRUNLENGTH", 22LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); if ( (int)this > 0 ) { v17 = 0LL; do fprintf(*(_QWORD *)&LefDefParser::lefwFile, " %.11g", *(double *)(a2 + 8 * v17++)); while ( (unsigned int)this != v17 ); } } LefDefParser::lefwState = 8; LefDefParser::lefwLines += 2; return 0LL; } } return result; }
lefwLayerRoutingStartSpacingtableParallel: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX LEA R15,[0x124e00] MOV RCX,qword ptr [R15] TEST RCX,RCX JZ 0x0010b281 MOV RBX,RSI MOV EBP,EDI LEA R12,[0x125050] MOV EDX,dword ptr [R12] MOV EAX,0x2 CMP EDX,0x1f JZ 0x0010b24c CMP EDX,0x7 JNZ 0x0010b373 LAB_0010b24c: LEA RDX,[0x1250d4] CMP dword ptr [RDX],0x0 JZ 0x0010b373 CMP byte ptr [0x001250f4],0x1 JNZ 0x0010b2a8 CMP byte ptr [0x001250ec],0x1 JNZ 0x0010b28b LEA RSI,[0x11a210] MOV RDI,RCX XOR EAX,EAX CALL 0x00118c35 JMP 0x0010b2a1 LAB_0010b281: MOV EAX,0x1 JMP 0x0010b373 LAB_0010b28b: LEA RDI,[0x11a210] MOV ESI,0x2 MOV EDX,0x1 CALL 0x00101110 LAB_0010b2a1: MOV byte ptr [0x001250f4],0x0 LAB_0010b2a8: MOV RCX,qword ptr [R15] CMP byte ptr [0x001250ec],0x1 JNZ 0x0010b306 LEA RSI,[0x11abfa] MOV RDI,RCX XOR EAX,EAX CALL 0x00118c35 MOV RDI,qword ptr [R15] LEA RSI,[0x11ac0b] XOR EAX,EAX CALL 0x00118c35 TEST EBP,EBP JLE 0x0010b35f MOV R13D,EBP XOR EBP,EBP LEA R14,[0x11a40c] LAB_0010b2ea: MOV RDI,qword ptr [R15] MOVSD XMM0,qword ptr [RBX + RBP*0x8] MOV RSI,R14 MOV AL,0x1 CALL 0x00118c35 INC RBP CMP R13,RBP JNZ 0x0010b2ea JMP 0x0010b35f LAB_0010b306: LEA RDI,[0x11abfa] MOV ESI,0x10 MOV EDX,0x1 CALL 0x00101110 MOV RCX,qword ptr [R15] LEA RDI,[0x11ac0b] MOV ESI,0x16 MOV EDX,0x1 CALL 0x00101110 TEST EBP,EBP JLE 0x0010b35f MOV R13D,EBP XOR EBP,EBP LEA R14,[0x11a40c] LAB_0010b345: MOV RDI,qword ptr [R15] MOVSD XMM0,qword ptr [RBX + RBP*0x8] MOV RSI,R14 MOV AL,0x1 CALL 0x001010f0 INC RBP CMP R13,RBP JNZ 0x0010b345 LAB_0010b35f: MOV dword ptr [R12],0x8 LEA RAX,[0x12504c] ADD dword ptr [RAX],0x2 XOR EAX,EAX LAB_0010b373: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* LefDefParser::lefwLayerRoutingStartSpacingtableParallel(int, double*) */ int8 LefDefParser::lefwLayerRoutingStartSpacingtableParallel(int param_1,double *param_2) { int8 uVar1; ulong uVar2; if (lefwFile == (_IO_FILE *)0x0) { uVar1 = 1; } else { uVar1 = 2; if (((lefwState == 0x1f) || (lefwState == 7)) && (lefwIsRoutingReqData != 0)) { if (prtSemiColon == '\x01') { if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile,";\n"); } else { fwrite(";\n",2,1,lefwFile); } prtSemiColon = '\0'; } if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile," SPACINGTABLE\n"); encPrint(lefwFile," PARALLELRUNLENGTH"); if (0 < param_1) { uVar2 = 0; do { encPrint(lefwFile," %.11g",param_2[uVar2]); uVar2 = uVar2 + 1; } while ((uint)param_1 != uVar2); } } else { fwrite(" SPACINGTABLE\n",0x10,1,lefwFile); fwrite(" PARALLELRUNLENGTH",0x16,1,lefwFile); if (0 < param_1) { uVar2 = 0; do { fprintf(lefwFile," %.11g",param_2[uVar2]); uVar2 = uVar2 + 1; } while ((uint)param_1 != uVar2); } } lefwState = 8; lefwLines = lefwLines + 2; uVar1 = 0; } } return uVar1; }
3,117
patricia_set_value
corpus-core[P]colibri-stateless/src/chains/eth/verifier/patricia_trie.c
INTERNAL void patricia_set_value(node_t** root, bytes_t path, bytes_t value) { nibbles_t nibbles = path_to_nibbles(path, false); if (*root == NULL) { *root = safe_calloc(1, sizeof(node_t)); (*root)->type = NODE_TYPE_LEAF; (*root)->values.leaf.path = nibbles_to_path(nibbles, true); (*root)->values.leaf.value = bytes_dup(value); node_update_hash(*root, false, NULL); } else set_value(*root, nibbles, value); safe_free(nibbles.data); }
O0
c
patricia_set_value: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movl %esi, -0x10(%rbp) movq %rdx, -0x8(%rbp) movl %ecx, -0x20(%rbp) movq %r8, -0x18(%rbp) movq %rdi, -0x28(%rbp) movl -0x10(%rbp), %edi movq -0x8(%rbp), %rsi xorl %edx, %edx callq 0x14300 movl %eax, -0x38(%rbp) movq %rdx, -0x30(%rbp) movq -0x28(%rbp), %rax cmpq $0x0, (%rax) jne 0x142d5 movl $0x1, %edi movl $0xc8, %esi callq 0x18620 movq %rax, %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movq -0x28(%rbp), %rax movq (%rax), %rax movl $0x0, 0x30(%rax) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x68(%rbp) movl -0x38(%rbp), %edi movq -0x30(%rbp), %rsi movl $0x1, %edx callq 0x14410 movl %eax, %ecx movq -0x68(%rbp), %rax movl %ecx, -0x48(%rbp) movq %rdx, -0x40(%rbp) movq -0x48(%rbp), %rcx movq %rcx, 0x38(%rax) movq -0x40(%rbp), %rcx movq %rcx, 0x40(%rax) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x60(%rbp) movl -0x20(%rbp), %edi movq -0x18(%rbp), %rsi callq 0x19260 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, -0x58(%rbp) movq %rdx, -0x50(%rbp) movq -0x58(%rbp), %rcx movq %rcx, 0x48(%rax) movq -0x50(%rbp), %rcx movq %rcx, 0x50(%rax) movq -0x28(%rbp), %rax movq (%rax), %rdi xorl %esi, %esi xorl %eax, %eax movl %eax, %edx callq 0x14510 jmp 0x142ef movq -0x28(%rbp), %rax movq (%rax), %rdi movl -0x38(%rbp), %esi movq -0x30(%rbp), %rdx movl -0x20(%rbp), %ecx movq -0x18(%rbp), %r8 callq 0x145f0 movq -0x30(%rbp), %rdi callq 0x18740 addq $0x70, %rsp popq %rbp retq nop
patricia_set_value: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], esi mov [rbp+var_8], rdx mov [rbp+var_20], ecx mov [rbp+var_18], r8 mov [rbp+var_28], rdi mov edi, [rbp+var_10] mov rsi, [rbp+var_8] xor edx, edx call path_to_nibbles mov [rbp+var_38], eax mov [rbp+var_30], rdx mov rax, [rbp+var_28] cmp qword ptr [rax], 0 jnz loc_142D5 mov edi, 1 mov esi, 0C8h call safe_calloc mov rcx, rax mov rax, [rbp+var_28] mov [rax], rcx mov rax, [rbp+var_28] mov rax, [rax] mov dword ptr [rax+30h], 0 mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_68], rax mov edi, [rbp+var_38] mov rsi, [rbp+var_30] mov edx, 1 call nibbles_to_path mov ecx, eax mov rax, [rbp+var_68] mov dword ptr [rbp+var_48], ecx mov [rbp+var_40], rdx mov rcx, [rbp+var_48] mov [rax+38h], rcx mov rcx, [rbp+var_40] mov [rax+40h], rcx mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_60], rax mov edi, [rbp+var_20] mov rsi, [rbp+var_18] call bytes_dup mov ecx, eax mov rax, [rbp+var_60] mov dword ptr [rbp+var_58], ecx mov [rbp+var_50], rdx mov rcx, [rbp+var_58] mov [rax+48h], rcx mov rcx, [rbp+var_50] mov [rax+50h], rcx mov rax, [rbp+var_28] mov rdi, [rax] xor esi, esi xor eax, eax mov edx, eax call node_update_hash jmp short loc_142EF loc_142D5: mov rax, [rbp+var_28] mov rdi, [rax] mov esi, [rbp+var_38] mov rdx, [rbp+var_30] mov ecx, [rbp+var_20] mov r8, [rbp+var_18] call set_value loc_142EF: mov rdi, [rbp+var_30] call safe_free add rsp, 70h pop rbp retn
long long patricia_set_value(_QWORD *a1, unsigned int a2, long long a3, unsigned int a4, long long a5) { long long v5; // rdx long long v6; // rdx long long v7; // rdx long long v9; // [rsp+8h] [rbp-68h] long long v10; // [rsp+10h] [rbp-60h] long long v11; // [rsp+18h] [rbp-58h] long long v12; // [rsp+28h] [rbp-48h] unsigned int v13; // [rsp+38h] [rbp-38h] long long v14; // [rsp+40h] [rbp-30h] v13 = path_to_nibbles(a2, a3, 0LL); v14 = v5; if ( *a1 ) { set_value(*a1, v13, v5, a4, a5); } else { *a1 = safe_calloc(1LL, 200LL); *(_DWORD *)(*a1 + 48LL) = 0; v9 = *a1; LODWORD(v12) = nibbles_to_path(v13, v14, 1LL); *(_QWORD *)(v9 + 56) = v12; *(_QWORD *)(v9 + 64) = v6; v10 = *a1; LODWORD(v11) = bytes_dup(a4, a5); *(_QWORD *)(v10 + 72) = v11; *(_QWORD *)(v10 + 80) = v7; node_update_hash(*a1, 0LL, 0LL); } return safe_free(v14); }
patricia_set_value: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV dword ptr [RBP + -0x10],ESI MOV qword ptr [RBP + -0x8],RDX MOV dword ptr [RBP + -0x20],ECX MOV qword ptr [RBP + -0x18],R8 MOV qword ptr [RBP + -0x28],RDI MOV EDI,dword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x8] XOR EDX,EDX CALL 0x00114300 MOV dword ptr [RBP + -0x38],EAX MOV qword ptr [RBP + -0x30],RDX MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX],0x0 JNZ 0x001142d5 MOV EDI,0x1 MOV ESI,0xc8 CALL 0x00118620 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV dword ptr [RAX + 0x30],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x68],RAX MOV EDI,dword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x30] MOV EDX,0x1 CALL 0x00114410 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x68] MOV dword ptr [RBP + -0x48],ECX MOV qword ptr [RBP + -0x40],RDX MOV RCX,qword ptr [RBP + -0x48] MOV qword ptr [RAX + 0x38],RCX MOV RCX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x40],RCX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX MOV EDI,dword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00119260 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RBP + -0x58],ECX MOV qword ptr [RBP + -0x50],RDX MOV RCX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + 0x48],RCX MOV RCX,qword ptr [RBP + -0x50] MOV qword ptr [RAX + 0x50],RCX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] XOR ESI,ESI XOR EAX,EAX MOV EDX,EAX CALL 0x00114510 JMP 0x001142ef LAB_001142d5: MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] MOV ESI,dword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x18] CALL 0x001145f0 LAB_001142ef: MOV RDI,qword ptr [RBP + -0x30] CALL 0x00118740 ADD RSP,0x70 POP RBP RET
void patricia_set_value(long *param_1,int4 param_2,int8 param_3,int4 param_4, int8 param_5) { int4 uVar1; long lVar2; int8 extraout_RDX; int8 extraout_RDX_00; int8 extraout_RDX_01; int4 uStack_5c; int4 uStack_4c; uVar1 = path_to_nibbles(param_2,param_3,0); if (*param_1 == 0) { lVar2 = safe_calloc(1,200); *param_1 = lVar2; *(int4 *)(*param_1 + 0x30) = 0; lVar2 = *param_1; uVar1 = nibbles_to_path(uVar1,extraout_RDX,1); *(ulong *)(lVar2 + 0x38) = CONCAT44(uStack_4c,uVar1); *(int8 *)(lVar2 + 0x40) = extraout_RDX_00; lVar2 = *param_1; uVar1 = bytes_dup(param_4,param_5); *(ulong *)(lVar2 + 0x48) = CONCAT44(uStack_5c,uVar1); *(int8 *)(lVar2 + 0x50) = extraout_RDX_01; node_update_hash(*param_1,0,0); } else { set_value(*param_1,uVar1,extraout_RDX,param_4,param_5); } safe_free(extraout_RDX); return; }
3,118
inline_mysql_file_open
eloqsql/include/mysql/psi/mysql_file.h
static inline File inline_mysql_file_open( #ifdef HAVE_PSI_FILE_INTERFACE PSI_file_key key, const char *src_file, uint src_line, #endif const char *filename, int flags, myf myFlags) { File file; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_OPEN, filename, &locker); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line); file= my_open(filename, flags, myFlags); PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file); return file; } #endif file= my_open(filename, flags, myFlags); return file; }
O0
c
inline_mysql_file_open: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq %r9, -0x30(%rbp) leaq 0x1a2830(%rip), %rax # 0x1cda28 movq (%rax), %rax movq 0x148(%rax), %rax movl -0x8(%rbp), %esi movq -0x20(%rbp), %rcx leaq -0x88(%rbp), %rdi movl $0x2, %edx leaq -0x40(%rbp), %r8 callq *%rax movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x2b292 leaq 0x1a27e2(%rip), %rax # 0x1cda28 movq (%rax), %rax movq 0x1f0(%rax), %rax movq -0x40(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx callq *%rax movq -0x20(%rbp), %rdi movl -0x24(%rbp), %esi movq -0x30(%rbp), %rdx callq 0x2f530 movl %eax, -0x34(%rbp) leaq 0x1a27b1(%rip), %rax # 0x1cda28 movq (%rax), %rax movq 0x200(%rax), %rax movq -0x40(%rbp), %rdi movl -0x34(%rbp), %esi callq *%rax movl -0x34(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x2b2ab movq -0x20(%rbp), %rdi movl -0x24(%rbp), %esi movq -0x30(%rbp), %rdx callq 0x2f530 movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x90, %rsp popq %rbp retq nopw (%rax,%rax)
inline_mysql_file_open: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_8], edi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov [rbp+var_30], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+148h] mov esi, [rbp+var_8] mov rcx, [rbp+var_20] lea rdi, [rbp+var_88] mov edx, 2 lea r8, [rbp+var_40] call rax mov [rbp+var_40], rax cmp [rbp+var_40], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_2B292 lea rax, PSI_server mov rax, [rax] mov rax, [rax+1F0h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_10] mov edx, [rbp+var_14] call rax mov rdi, [rbp+var_20] mov esi, [rbp+var_24] mov rdx, [rbp+var_30] call my_open mov [rbp+var_34], eax lea rax, PSI_server mov rax, [rax] mov rax, [rax+200h] mov rdi, [rbp+var_40] mov esi, [rbp+var_34] call rax mov eax, [rbp+var_34] mov [rbp+var_4], eax jmp short loc_2B2AB loc_2B292: mov rdi, [rbp+var_20] mov esi, [rbp+var_24] mov rdx, [rbp+var_30] call my_open mov [rbp+var_34], eax mov eax, [rbp+var_34] mov [rbp+var_4], eax loc_2B2AB: mov eax, [rbp+var_4] add rsp, 90h pop rbp retn
long long inline_mysql_file_open( unsigned int a1, long long a2, unsigned int a3, long long a4, unsigned int a5, long long a6) { _BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF long long v8; // [rsp+50h] [rbp-40h] BYREF unsigned int v9; // [rsp+5Ch] [rbp-34h] long long v10; // [rsp+60h] [rbp-30h] unsigned int v11; // [rsp+6Ch] [rbp-24h] long long v12; // [rsp+70h] [rbp-20h] unsigned int v13; // [rsp+7Ch] [rbp-14h] long long v14; // [rsp+80h] [rbp-10h] unsigned int v15; // [rsp+88h] [rbp-8h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v10 = a6; v8 = (*((long long ( **)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[0] + 41))( v7, a1, 2LL, a4, &v8); if ( v8 ) { (*((void ( **)(long long, long long, _QWORD))PSI_server[0] + 62))(v8, v14, v13); v9 = my_open(v12, v11, v10); (*((void ( **)(long long, _QWORD))PSI_server[0] + 64))(v8, v9); } else { return (unsigned int)my_open(v12, v11, v10); } return v9; }
inline_mysql_file_open: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV qword ptr [RBP + -0x20],RCX MOV dword ptr [RBP + -0x24],R8D MOV qword ptr [RBP + -0x30],R9 LEA RAX,[0x2cda28] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x148] MOV ESI,dword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x20] LEA RDI,[RBP + -0x88] MOV EDX,0x2 LEA R8,[RBP + -0x40] CALL RAX MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0012b292 LEA RAX,[0x2cda28] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1f0] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] CALL RAX MOV RDI,qword ptr [RBP + -0x20] MOV ESI,dword ptr [RBP + -0x24] MOV RDX,qword ptr [RBP + -0x30] CALL 0x0012f530 MOV dword ptr [RBP + -0x34],EAX LEA RAX,[0x2cda28] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x200] MOV RDI,qword ptr [RBP + -0x40] MOV ESI,dword ptr [RBP + -0x34] CALL RAX MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x4],EAX JMP 0x0012b2ab LAB_0012b292: MOV RDI,qword ptr [RBP + -0x20] MOV ESI,dword ptr [RBP + -0x24] MOV RDX,qword ptr [RBP + -0x30] CALL 0x0012f530 MOV dword ptr [RBP + -0x34],EAX MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x4],EAX LAB_0012b2ab: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x90 POP RBP RET
int4 inline_mysql_file_open (int4 param_1,int8 param_2,int4 param_3,int8 param_4, int4 param_5,int8 param_6) { int1 local_90 [72]; long local_48; int4 local_3c; int8 local_38; int4 local_2c; int8 local_28; int4 local_1c; int8 local_18; int4 local_10; int4 local_c; local_38 = param_6; local_2c = param_5; local_28 = param_4; local_1c = param_3; local_18 = param_2; local_10 = param_1; local_48 = (**(code **)(PSI_server + 0x148))(local_90,param_1,2,param_4,&local_48); if (local_48 == 0) { local_c = my_open(local_28,local_2c,local_38); } else { (**(code **)(PSI_server + 0x1f0))(local_48,local_18,local_1c); local_3c = my_open(local_28,local_2c,local_38); (**(code **)(PSI_server + 0x200))(local_48,local_3c); local_c = local_3c; } return local_c; }
3,119
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::nullptr_t>(std::nullptr_t&&, bool)
monkey531[P]llama/common/json.hpp
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false) { JSON_ASSERT(!keep_stack.empty()); // do not handle this value if we know it would be added to a discarded // container if (!keep_stack.back()) { return {false, nullptr}; } // create value auto value = BasicJsonType(std::forward<Value>(v)); // check callback const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value); // do not handle this value if we just learnt it shall be discarded if (!keep) { return {false, nullptr}; } if (ref_stack.empty()) { root = std::move(value); return {true, & root}; } // skip this value if we already decided to skip the parent // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360) if (!ref_stack.back()) { return {false, nullptr}; } // we now only expect arrays and objects JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); // array if (ref_stack.back()->is_array()) { ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value)); return {true, & (ref_stack.back()->m_data.m_value.array->back())}; } // object JSON_ASSERT(ref_stack.back()->is_object()); // check if we should store an element for the current key JSON_ASSERT(!key_keep_stack.empty()); const bool store_element = key_keep_stack.back(); key_keep_stack.pop_back(); if (!store_element) { return {false, nullptr}; } JSON_ASSERT(object_element); *object_element = std::move(value); return {true, object_element}; }
O0
cpp
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::nullptr_t>(std::nullptr_t&&, bool): subq $0x148, %rsp # imm = 0x148 movb %dl, %al movq %rdi, 0x130(%rsp) movq %rsi, 0x128(%rsp) andb $0x1, %al movb %al, 0x127(%rsp) movq 0x130(%rsp), %rdi movq %rdi, 0x40(%rsp) addq $0x20, %rdi callq 0xb6e00 testb $0x1, %al jne 0xc162e jmp 0xc164f leaq 0x152b17(%rip), %rdi # 0x21414c movl $0x1c28, %esi # imm = 0x1C28 leaq 0x14bef8(%rip), %rdx # 0x20d539 leaq 0x153a84(%rip), %rcx # 0x2150cc movb $0x0, %al callq 0x5b030 movq 0x40(%rsp), %rdi addq $0x20, %rdi callq 0xb6e80 movq %rax, 0x110(%rsp) movq %rdx, 0x118(%rsp) leaq 0x110(%rsp), %rdi callq 0xb4e70 xorb $-0x1, %al testb $0x1, %al jne 0xc1682 jmp 0xc16b8 movb $0x0, 0x10f(%rsp) movq $0x0, 0x100(%rsp) leaq 0x138(%rsp), %rdi leaq 0x10f(%rsp), %rsi leaq 0x100(%rsp), %rdx callq 0xb7990 jmp 0xc1b1d leaq 0xf0(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0xa87a0 movb $0x1, %al testb $0x1, 0x127(%rsp) movb %al, 0x3f(%rsp) jne 0xc171c movq 0x40(%rsp), %rdi movq %rdi, %rax subq $-0x80, %rax movq %rax, 0x30(%rsp) addq $0x8, %rdi callq 0xb6f80 movq 0x30(%rsp), %rdi movl %eax, %esi movl $0x5, %edx leaq 0xf0(%rsp), %rcx callq 0xb6f20 movb %al, 0x3e(%rsp) jmp 0xc1712 movb 0x3e(%rsp), %al movb %al, 0x3f(%rsp) jmp 0xc171c movb 0x3f(%rsp), %al andb $0x1, %al movb %al, 0xef(%rsp) testb $0x1, 0xef(%rsp) jne 0xc179c movb $0x0, 0xdb(%rsp) movq $0x0, 0xd0(%rsp) leaq 0x138(%rsp), %rdi leaq 0xdb(%rsp), %rsi leaq 0xd0(%rsp), %rdx callq 0xb7990 jmp 0xc1766 movl $0x1, 0xcc(%rsp) jmp 0xc1b10 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xe0(%rsp) movl %eax, 0xdc(%rsp) leaq 0xf0(%rsp), %rdi callq 0xa8760 jmp 0xc1b34 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb79c0 testb $0x1, %al jne 0xc17b0 jmp 0xc182d leaq 0xb8(%rsp), %rdi movq %rdi, 0x28(%rsp) leaq 0xf0(%rsp), %rsi callq 0xb7a10 movq 0x28(%rsp), %rsi movq 0x40(%rsp), %rax movq (%rax), %rdi callq 0xb19a0 movq 0x28(%rsp), %rdi callq 0xa8760 movq 0x40(%rsp), %rax movb $0x1, 0xb7(%rsp) movq (%rax), %rax movq %rax, 0xa8(%rsp) leaq 0x138(%rsp), %rdi leaq 0xb7(%rsp), %rsi leaq 0xa8(%rsp), %rdx callq 0xb7a90 jmp 0xc181d movl $0x1, 0xcc(%rsp) jmp 0xc1b10 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb7570 cmpq $0x0, (%rax) jne 0xc1884 movb $0x0, 0xa7(%rsp) movq $0x0, 0x98(%rsp) leaq 0x138(%rsp), %rdi leaq 0xa7(%rsp), %rsi leaq 0x98(%rsp), %rdx callq 0xb7990 jmp 0xc1874 movl $0x1, 0xcc(%rsp) jmp 0xc1b10 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb7570 movq (%rax), %rdi callq 0xb7ac0 testb $0x1, %al jne 0xc18db movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb7570 movq (%rax), %rdi callq 0xb7ae0 testb $0x1, %al jne 0xc18db leaq 0x15288d(%rip), %rdi # 0x21414c leaq 0x14bc73(%rip), %rdx # 0x20d539 leaq 0x153813(%rip), %rcx # 0x2150e0 xorl %eax, %eax movl $0x1c4b, %esi # imm = 0x1C4B callq 0x5b030 jmp 0xc18db movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb7570 movq (%rax), %rdi callq 0xb7ac0 testb $0x1, %al jne 0xc18f7 jmp 0xc1974 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb7570 movq (%rax), %rax movq 0x8(%rax), %rdi leaq 0xf0(%rsp), %rsi callq 0xb7b00 jmp 0xc191b movq 0x40(%rsp), %rdi movb $0x1, 0x97(%rsp) addq $0x8, %rdi callq 0xb7570 movq (%rax), %rax movq 0x8(%rax), %rdi callq 0xb7b80 movq %rax, 0x88(%rsp) leaq 0x138(%rsp), %rdi leaq 0x97(%rsp), %rsi leaq 0x88(%rsp), %rdx callq 0xb7a90 jmp 0xc1964 movl $0x1, 0xcc(%rsp) jmp 0xc1b10 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0xb7570 movq (%rax), %rdi callq 0xb7ae0 testb $0x1, %al jne 0xc19b1 leaq 0x1527b7(%rip), %rdi # 0x21414c leaq 0x14bb9d(%rip), %rdx # 0x20d539 leaq 0x15375d(%rip), %rcx # 0x215100 xorl %eax, %eax movl $0x1c55, %esi # imm = 0x1C55 callq 0x5b030 jmp 0xc19b1 movq 0x40(%rsp), %rdi addq $0x48, %rdi callq 0xb6e00 testb $0x1, %al jne 0xc19c5 jmp 0xc19e8 leaq 0x152780(%rip), %rdi # 0x21414c leaq 0x14bb66(%rip), %rdx # 0x20d539 leaq 0x153744(%rip), %rcx # 0x21511e xorl %eax, %eax movl $0x1c57, %esi # imm = 0x1C57 callq 0x5b030 jmp 0xc19e8 movq 0x40(%rsp), %rdi addq $0x48, %rdi callq 0xb6e80 movq %rdx, 0x18(%rsp) movq %rax, 0x20(%rsp) jmp 0xc1a02 movq 0x18(%rsp), %rax movq 0x20(%rsp), %rcx movq %rcx, 0x70(%rsp) movq %rax, 0x78(%rsp) leaq 0x70(%rsp), %rdi callq 0xb4e70 movq 0x40(%rsp), %rdi movb %al, 0x87(%rsp) addq $0x48, %rdi callq 0xb6f00 jmp 0xc1a37 testb $0x1, 0x87(%rsp) jne 0xc1a78 movb $0x0, 0x6f(%rsp) movq $0x0, 0x60(%rsp) leaq 0x138(%rsp), %rdi leaq 0x6f(%rsp), %rsi leaq 0x60(%rsp), %rdx callq 0xb7990 jmp 0xc1a68 movl $0x1, 0xcc(%rsp) jmp 0xc1b10 movq 0x40(%rsp), %rax cmpq $0x0, 0x70(%rax) jne 0xc1aa7 leaq 0x1526c1(%rip), %rdi # 0x21414c leaq 0x14baa7(%rip), %rdx # 0x20d539 leaq 0x15369d(%rip), %rcx # 0x215136 xorl %eax, %eax movl $0x1c60, %esi # imm = 0x1C60 callq 0x5b030 jmp 0xc1aa7 leaq 0x50(%rsp), %rdi movq %rdi, 0x8(%rsp) leaq 0xf0(%rsp), %rsi callq 0xb7a10 movq 0x40(%rsp), %rax movq 0x8(%rsp), %rsi movq %rax, %rcx addq $0x70, %rcx movq %rcx, 0x10(%rsp) movq 0x70(%rax), %rdi callq 0xb19a0 movq 0x8(%rsp), %rdi callq 0xa8760 movq 0x10(%rsp), %rdx movb $0x1, 0x4f(%rsp) leaq 0x138(%rsp), %rdi leaq 0x4f(%rsp), %rsi callq 0xb7bc0 jmp 0xc1b05 movl $0x1, 0xcc(%rsp) leaq 0xf0(%rsp), %rdi callq 0xa8760 movb 0x138(%rsp), %al movq 0x140(%rsp), %rdx addq $0x148, %rsp # imm = 0x148 retq movq 0xe0(%rsp), %rdi callq 0x5ac70 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIDnEESt4pairIbPSF_EOT_b: sub rsp, 148h mov al, dl mov [rsp+148h+var_18], rdi mov [rsp+148h+var_20], rsi and al, 1 mov [rsp+148h+var_21], al mov rdi, [rsp+148h+var_18] mov [rsp+148h+var_108], rdi add rdi, 20h ; ' ' call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void) test al, 1 jnz short loc_C162E jmp short loc_C164F loc_C162E: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov esi, 1C28h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov al, 0 call _ggml_abort loc_C164F: mov rdi, [rsp+148h+var_108] add rdi, 20h ; ' ' call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) mov [rsp+148h+var_38], rax mov [rsp+148h+var_30], rdx lea rdi, [rsp+148h+var_38] call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void) xor al, 0FFh test al, 1 jnz short loc_C1682 jmp short loc_C16B8 loc_C1682: mov [rsp+148h+var_39], 0 mov [rsp+148h+var_48], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_39] lea rdx, [rsp+148h+var_48] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp loc_C1B1D loc_C16B8: lea rdi, [rsp+148h+var_58] xor eax, eax mov esi, eax call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr)) mov al, 1 test [rsp+148h+var_21], 1 mov [rsp+148h+var_109], al jnz short loc_C171C mov rdi, [rsp+148h+var_108] mov rax, rdi sub rax, 0FFFFFFFFFFFFFF80h mov [rsp+148h+var_118], rax add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void) mov rdi, [rsp+148h+var_118] mov esi, eax mov edx, 5 lea rcx, [rsp+148h+var_58] call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) mov [rsp+148h+var_10A], al jmp short $+2 loc_C1712: mov al, [rsp+148h+var_10A] mov [rsp+148h+var_109], al jmp short $+2 loc_C171C: mov al, [rsp+148h+var_109] and al, 1 mov [rsp+148h+var_59], al test [rsp+148h+var_59], 1 jnz short loc_C179C mov [rsp+148h+var_6D], 0 mov [rsp+148h+var_78], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_6D] lea rdx, [rsp+148h+var_78] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_C1766: mov [rsp+148h+var_7C], 1 jmp loc_C1B10 mov rcx, rax mov eax, edx mov [rsp+arg_D8], rcx mov [rsp+arg_D4], eax lea rdi, [rsp+arg_E8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp loc_C1B34 loc_C179C: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void) test al, 1 jnz short loc_C17B0 jmp short loc_C182D loc_C17B0: lea rdi, [rsp+148h+var_90] mov [rsp+148h+var_120], rdi lea rsi, [rsp+148h+var_58] 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>&&) mov rsi, [rsp+148h+var_120] mov rax, [rsp+148h+var_108] mov rdi, [rax] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, [rsp+148h+var_120] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rax, [rsp+148h+var_108] mov [rsp+148h+var_91], 1 mov rax, [rax] mov [rsp+148h+var_A0], rax lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_91] lea rdx, [rsp+148h+var_A0] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_C181D: mov [rsp+148h+var_7C], 1 jmp loc_C1B10 loc_C182D: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) cmp qword ptr [rax], 0 jnz short loc_C1884 mov [rsp+148h+var_A1], 0 mov [rsp+148h+var_B0], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_A1] lea rdx, [rsp+148h+var_B0] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_C1874: mov [rsp+148h+var_7C], 1 jmp loc_C1B10 loc_C1884: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void) test al, 1 jnz short loc_C18DB mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void) test al, 1 jnz short loc_C18DB lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... xor eax, eax mov esi, 1C4Bh call _ggml_abort jmp short $+2 loc_C18DB: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void) test al, 1 jnz short loc_C18F7 jmp short loc_C1974 loc_C18F7: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rax, [rax] mov rdi, [rax+8] lea rsi, [rsp+148h+var_58] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_C191B: mov rdi, [rsp+148h+var_108] mov [rsp+148h+var_B1], 1 add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rax, [rax] mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void) mov [rsp+148h+var_C0], rax lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_B1] lea rdx, [rsp+148h+var_C0] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_C1964: mov [rsp+148h+var_7C], 1 jmp loc_C1B10 loc_C1974: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void) test al, 1 jnz short loc_C19B1 lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()" xor eax, eax mov esi, 1C55h call _ggml_abort jmp short $+2 loc_C19B1: mov rdi, [rsp+148h+var_108] add rdi, 48h ; 'H' call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void) test al, 1 jnz short loc_C19C5 jmp short loc_C19E8 loc_C19C5: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" xor eax, eax mov esi, 1C57h call _ggml_abort jmp short $+2 loc_C19E8: mov rdi, [rsp+148h+var_108] add rdi, 48h ; 'H' call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) mov [rsp+148h+var_130], rdx mov [rsp+148h+var_128], rax jmp short $+2 loc_C1A02: mov rax, [rsp+148h+var_130] mov rcx, [rsp+148h+var_128] mov [rsp+148h+var_D8], rcx mov [rsp+148h+var_D0], rax lea rdi, [rsp+148h+var_D8] call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void) mov rdi, [rsp+148h+var_108] mov [rsp+148h+var_C1], al add rdi, 48h ; 'H' call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void) jmp short $+2 loc_C1A37: test [rsp+148h+var_C1], 1 jnz short loc_C1A78 mov [rsp+148h+var_D9], 0 mov [rsp+148h+var_E8], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_D9] lea rdx, [rsp+148h+var_E8] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_C1A68: mov [rsp+148h+var_7C], 1 jmp loc_C1B10 loc_C1A78: mov rax, [rsp+148h+var_108] cmp qword ptr [rax+70h], 0 jnz short loc_C1AA7 lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" xor eax, eax mov esi, 1C60h call _ggml_abort jmp short $+2 loc_C1AA7: lea rdi, [rsp+148h+var_F8] mov [rsp+148h+var_140], rdi lea rsi, [rsp+148h+var_58] 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>&&) mov rax, [rsp+148h+var_108] mov rsi, [rsp+148h+var_140] mov rcx, rax add rcx, 70h ; 'p' mov [rsp+148h+var_138], rcx mov rdi, [rax+70h] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, [rsp+148h+var_140] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rdx, [rsp+148h+var_138] mov [rsp+148h+var_F9], 1 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_F9] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_ jmp short $+2 loc_C1B05: mov [rsp+148h+var_7C], 1 loc_C1B10: lea rdi, [rsp+148h+var_58] 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_C1B1D: mov al, [rsp+148h+var_10] mov rdx, [rsp+148h+var_8] add rsp, 148h retn loc_C1B34: mov rdi, [rsp+arg_D8] call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<decltype(nullptr)>( long long a1, long long a2, char a3) { long long v3; // rdx int v4; // eax _BYTE **v5; // rax _BYTE **v6; // rax _BYTE **v7; // rax long long v8; // rax long long v9; // rax _BYTE **v10; // rax long long v11; // rdx char v13; // [rsp+3Fh] [rbp-109h] char v14; // [rsp+4Fh] [rbp-F9h] BYREF __int128 v15; // [rsp+50h] [rbp-F8h] BYREF long long v16; // [rsp+60h] [rbp-E8h] char v17; // [rsp+6Fh] [rbp-D9h] BYREF _QWORD v18[2]; // [rsp+70h] [rbp-D8h] BYREF bool v19; // [rsp+87h] [rbp-C1h] long long v20; // [rsp+88h] [rbp-C0h] BYREF char v21; // [rsp+97h] [rbp-B1h] BYREF long long v22; // [rsp+98h] [rbp-B0h] char v23; // [rsp+A7h] [rbp-A1h] BYREF long long v24; // [rsp+A8h] [rbp-A0h] BYREF char v25; // [rsp+B7h] [rbp-91h] BYREF __int128 v26; // [rsp+B8h] [rbp-90h] BYREF int v27; // [rsp+CCh] [rbp-7Ch] long long v28; // [rsp+D0h] [rbp-78h] _BYTE v29[21]; // [rsp+DBh] [rbp-6Dh] BYREF _BYTE v30[16]; // [rsp+F0h] [rbp-58h] BYREF long long v31; // [rsp+100h] [rbp-48h] char v32; // [rsp+10Fh] [rbp-39h] BYREF _QWORD v33[2]; // [rsp+110h] [rbp-38h] BYREF char v34; // [rsp+127h] [rbp-21h] long long v35; // [rsp+128h] [rbp-20h] long long v36; // [rsp+130h] [rbp-18h] _BYTE v37[8]; // [rsp+138h] [rbp-10h] BYREF v36 = a1; v35 = a2; v34 = a3 & 1; if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 32)) & 1) != 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); v33[0] = std::vector<bool>::back(a1 + 32); v33[1] = v3; if ( std::_Bit_reference::operator bool((long long)v33) ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v30); v13 = 1; if ( (v34 & 1) == 0 ) { v4 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size((_QWORD *)(a1 + 8)); v13 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()( (std::_Function_base *)(a1 + 128), v4, 5, (long long)v30); } v29[20] = v13 & 1; if ( (v13 & 1) != 0 ) { if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) != 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>::basic_json( &v26, (long long)v30); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( *(_QWORD *)a1, (long long)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v26); v25 = 1; v24 = *(_QWORD *)a1; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v25, &v24); v27 = 1; } else if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) ) { v5 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v5) ) { v6 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v6) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7243LL, "GGML_ASSERT(%s) failed", "ref_stack.back()->is_array() || ref_stack.back()->is_object()"); } v7 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v7) ) { v8 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( *(_QWORD *)(*(_QWORD *)v8 + 8LL), (long long)v30); v21 = 1; v9 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); v20 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v9 + 8LL)); ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v21, &v20); v27 = 1; } else { v10 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v10) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7253LL, "GGML_ASSERT(%s) failed", "ref_stack.back()->is_object()"); if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 72)) & 1) != 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7255LL, "GGML_ASSERT(%s) failed", "!key_keep_stack.empty()"); v18[0] = std::vector<bool>::back(a1 + 72); v18[1] = v11; v19 = std::_Bit_reference::operator bool((long long)v18); std::vector<bool>::pop_back(a1 + 72); if ( v19 ) { if ( !*(_QWORD *)(a1 + 112) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( &v15, (long long)v30); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( *(_QWORD *)(a1 + 112), (long long)&v15); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v15); v14 = 1; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_( (long long)v37, &v14, (_QWORD *)(a1 + 112)); v27 = 1; } else { v17 = 0; v16 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v17); v27 = 1; } } } else { v23 = 0; v22 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v23); v27 = 1; } } else { v29[0] = 0; v28 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, v29); v27 = 1; } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v30); } else { v32 = 0; v31 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v32); } return v37[0]; }
handle_value<decltype(nullptr)>: SUB RSP,0x148 MOV AL,DL MOV qword ptr [RSP + 0x130],RDI MOV qword ptr [RSP + 0x128],RSI AND AL,0x1 MOV byte ptr [RSP + 0x127],AL MOV RDI,qword ptr [RSP + 0x130] MOV qword ptr [RSP + 0x40],RDI ADD RDI,0x20 CALL 0x001b6e00 TEST AL,0x1 JNZ 0x001c162e JMP 0x001c164f LAB_001c162e: LEA RDI,[0x31414c] MOV ESI,0x1c28 LEA RDX,[0x30d539] LEA RCX,[0x3150cc] MOV AL,0x0 CALL 0x0015b030 LAB_001c164f: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x20 CALL 0x001b6e80 MOV qword ptr [RSP + 0x110],RAX MOV qword ptr [RSP + 0x118],RDX LEA RDI,[RSP + 0x110] CALL 0x001b4e70 XOR AL,0xff TEST AL,0x1 JNZ 0x001c1682 JMP 0x001c16b8 LAB_001c1682: MOV byte ptr [RSP + 0x10f],0x0 MOV qword ptr [RSP + 0x100],0x0 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0x10f] LEA RDX,[RSP + 0x100] CALL 0x001b7990 JMP 0x001c1b1d LAB_001c16b8: LEA RDI,[RSP + 0xf0] XOR EAX,EAX MOV ESI,EAX CALL 0x001a87a0 MOV AL,0x1 TEST byte ptr [RSP + 0x127],0x1 MOV byte ptr [RSP + 0x3f],AL JNZ 0x001c171c MOV RDI,qword ptr [RSP + 0x40] MOV RAX,RDI SUB RAX,-0x80 MOV qword ptr [RSP + 0x30],RAX ADD RDI,0x8 CALL 0x001b6f80 MOV RDI,qword ptr [RSP + 0x30] MOV ESI,EAX LAB_001c16fa: MOV EDX,0x5 LEA RCX,[RSP + 0xf0] CALL 0x001b6f20 MOV byte ptr [RSP + 0x3e],AL JMP 0x001c1712 LAB_001c1712: MOV AL,byte ptr [RSP + 0x3e] MOV byte ptr [RSP + 0x3f],AL JMP 0x001c171c LAB_001c171c: MOV AL,byte ptr [RSP + 0x3f] AND AL,0x1 MOV byte ptr [RSP + 0xef],AL TEST byte ptr [RSP + 0xef],0x1 JNZ 0x001c179c MOV byte ptr [RSP + 0xdb],0x0 MOV qword ptr [RSP + 0xd0],0x0 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0xdb] LEA RDX,[RSP + 0xd0] CALL 0x001b7990 JMP 0x001c1766 LAB_001c1766: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001c1b10 LAB_001c179c: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b79c0 TEST AL,0x1 JNZ 0x001c17b0 JMP 0x001c182d LAB_001c17b0: LEA RDI,[RSP + 0xb8] MOV qword ptr [RSP + 0x28],RDI LEA RSI,[RSP + 0xf0] CALL 0x001b7a10 MOV RSI,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP + 0x40] MOV RDI,qword ptr [RAX] CALL 0x001b19a0 MOV RDI,qword ptr [RSP + 0x28] CALL 0x001a8760 MOV RAX,qword ptr [RSP + 0x40] MOV byte ptr [RSP + 0xb7],0x1 MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0xa8],RAX LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0xb7] LEA RDX,[RSP + 0xa8] CALL 0x001b7a90 JMP 0x001c181d LAB_001c181d: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001c1b10 LAB_001c182d: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b7570 CMP qword ptr [RAX],0x0 JNZ 0x001c1884 MOV byte ptr [RSP + 0xa7],0x0 MOV qword ptr [RSP + 0x98],0x0 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0xa7] LEA RDX,[RSP + 0x98] CALL 0x001b7990 JMP 0x001c1874 LAB_001c1874: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001c1b10 LAB_001c1884: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b7570 MOV RDI,qword ptr [RAX] CALL 0x001b7ac0 TEST AL,0x1 JNZ 0x001c18db MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b7570 MOV RDI,qword ptr [RAX] CALL 0x001b7ae0 TEST AL,0x1 JNZ 0x001c18db LEA RDI,[0x31414c] LEA RDX,[0x30d539] LEA RCX,[0x3150e0] XOR EAX,EAX MOV ESI,0x1c4b CALL 0x0015b030 JMP 0x001c18db LAB_001c18db: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b7570 MOV RDI,qword ptr [RAX] CALL 0x001b7ac0 TEST AL,0x1 JNZ 0x001c18f7 JMP 0x001c1974 LAB_001c18f7: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b7570 MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0xf0] CALL 0x001b7b00 JMP 0x001c191b LAB_001c191b: MOV RDI,qword ptr [RSP + 0x40] MOV byte ptr [RSP + 0x97],0x1 ADD RDI,0x8 CALL 0x001b7570 MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001b7b80 MOV qword ptr [RSP + 0x88],RAX LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0x97] LEA RDX,[RSP + 0x88] CALL 0x001b7a90 JMP 0x001c1964 LAB_001c1964: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001c1b10 LAB_001c1974: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x8 CALL 0x001b7570 MOV RDI,qword ptr [RAX] CALL 0x001b7ae0 TEST AL,0x1 JNZ 0x001c19b1 LEA RDI,[0x31414c] LEA RDX,[0x30d539] LEA RCX,[0x315100] XOR EAX,EAX MOV ESI,0x1c55 CALL 0x0015b030 JMP 0x001c19b1 LAB_001c19b1: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x48 CALL 0x001b6e00 TEST AL,0x1 JNZ 0x001c19c5 JMP 0x001c19e8 LAB_001c19c5: LEA RDI,[0x31414c] LEA RDX,[0x30d539] LEA RCX,[0x31511e] XOR EAX,EAX MOV ESI,0x1c57 CALL 0x0015b030 JMP 0x001c19e8 LAB_001c19e8: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x48 CALL 0x001b6e80 MOV qword ptr [RSP + 0x18],RDX MOV qword ptr [RSP + 0x20],RAX JMP 0x001c1a02 LAB_001c1a02: MOV RAX,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x70],RCX MOV qword ptr [RSP + 0x78],RAX LEA RDI,[RSP + 0x70] CALL 0x001b4e70 MOV RDI,qword ptr [RSP + 0x40] MOV byte ptr [RSP + 0x87],AL ADD RDI,0x48 CALL 0x001b6f00 JMP 0x001c1a37 LAB_001c1a37: TEST byte ptr [RSP + 0x87],0x1 JNZ 0x001c1a78 MOV byte ptr [RSP + 0x6f],0x0 MOV qword ptr [RSP + 0x60],0x0 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0x6f] LEA RDX,[RSP + 0x60] CALL 0x001b7990 JMP 0x001c1a68 LAB_001c1a68: MOV dword ptr [RSP + 0xcc],0x1 JMP 0x001c1b10 LAB_001c1a78: MOV RAX,qword ptr [RSP + 0x40] CMP qword ptr [RAX + 0x70],0x0 JNZ 0x001c1aa7 LEA RDI,[0x31414c] LEA RDX,[0x30d539] LEA RCX,[0x315136] XOR EAX,EAX MOV ESI,0x1c60 CALL 0x0015b030 JMP 0x001c1aa7 LAB_001c1aa7: LEA RDI,[RSP + 0x50] MOV qword ptr [RSP + 0x8],RDI LEA RSI,[RSP + 0xf0] CALL 0x001b7a10 MOV RAX,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x8] MOV RCX,RAX ADD RCX,0x70 MOV qword ptr [RSP + 0x10],RCX MOV RDI,qword ptr [RAX + 0x70] CALL 0x001b19a0 MOV RDI,qword ptr [RSP + 0x8] CALL 0x001a8760 MOV RDX,qword ptr [RSP + 0x10] MOV byte ptr [RSP + 0x4f],0x1 LEA RDI,[RSP + 0x138] LEA RSI,[RSP + 0x4f] CALL 0x001b7bc0 LAB_001c1b03: JMP 0x001c1b05 LAB_001c1b05: MOV dword ptr [RSP + 0xcc],0x1 LAB_001c1b10: LEA RDI,[RSP + 0xf0] CALL 0x001a8760 LAB_001c1b1d: MOV AL,byte ptr [RSP + 0x138] MOV RDX,qword ptr [RSP + 0x140] ADD RSP,0x148 RET
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::handle_value<decltype(nullptr)>(decltype(nullptr)&&, bool) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::handle_value<decltype(nullptr)> (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,_func_decltype_nullptr **param_1,bool param_2) { bool bVar1; int4 uVar2; ulong uVar3; long *plVar4; int8 *puVar5; int8 uVar6; int1 auVar7 [16]; byte local_109; int1 local_f9; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_f8 [16]; int8 local_e8; int1 local_d9; int1 local_d8 [16]; byte local_c1; int8 local_c0; int1 local_b1; int8 local_b0; int1 local_a1; int8 local_a0; int1 local_91; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_90 [20]; int4 local_7c; int8 local_78; int1 local_6d [20]; byte local_59; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_58 [16]; int8 local_48; int1 local_39; _Bit_reference local_38 [23]; byte local_21; _func_decltype_nullptr **local_20; json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *local_18; int1 local_10 [8]; int8 local_8; local_21 = param_2; local_20 = param_1; local_18 = this; uVar3 = std::vector<bool,std::allocator<bool>>::empty ((vector<bool,std::allocator<bool>> *)(this + 0x20)); if ((uVar3 & 1) != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28, "GGML_ASSERT(%s) failed","!keep_stack.empty()"); } local_38._0_16_ = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x20)); bVar1 = std::_Bit_reference::operator_cast_to_bool(local_38); if (((bVar1 ^ 0xffU) & 1) == 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> ::basic_json((_func_decltype_nullptr *)local_58); local_109 = 1; if ((local_21 & 1) == 0) { uVar2 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); /* try { // try from 001c16fa to 001c1b02 has its CatchHandler @ 001c1776 */ local_109 = std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> *)(this + 0x80),uVar2,5,local_58); } local_59 = local_109 & 1; if (local_59 == 0) { local_6d[0] = 0; local_78 = 0; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,local_6d,&local_78); } else { uVar3 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); if ((uVar3 & 1) == 0) { plVar4 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); if (*plVar4 == 0) { local_a1 = 0; local_b0 = 0; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_a1,&local_b0); } else { puVar5 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar5); if ((uVar3 & 1) == 0) { puVar5 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar5); if ((uVar3 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp" ,0x1c4b,"GGML_ASSERT(%s) failed", "ref_stack.back()->is_array() || ref_stack.back()->is_object()"); } } puVar5 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar5); if ((uVar3 & 1) == 0) { puVar5 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar5); if ((uVar3 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp" ,0x1c55,"GGML_ASSERT(%s) failed","ref_stack.back()->is_object()"); } uVar3 = std::vector<bool,std::allocator<bool>>::empty ((vector<bool,std::allocator<bool>> *)(this + 0x48)); if ((uVar3 & 1) != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp" ,0x1c57,"GGML_ASSERT(%s) failed","!key_keep_stack.empty()"); } local_d8 = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x48)); local_c1 = std::_Bit_reference::operator_cast_to_bool((_Bit_reference *)local_d8); std::vector<bool,std::allocator<bool>>::pop_back ((vector<bool,std::allocator<bool>> *)(this + 0x48)); if ((local_c1 & 1) == 0) { local_d9 = 0; local_e8 = 0; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_d9,&local_e8); } else { if (*(long *)(this + 0x70) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp" ,0x1c60,"GGML_ASSERT(%s) failed","object_element"); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_f8,local_58); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(this + 0x70),local_f8); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_f8); local_f9 = 1; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_ (local_10,&local_f9,this + 0x70); } } else { plVar4 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(*plVar4 + 8),local_58); local_b1 = 1; plVar4 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); local_c0 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(*plVar4 + 8)); _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_b1,&local_c0); } } } else { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_90,local_58); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)this,local_90); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_90); local_91 = 1; local_a0 = *(int8 *)this; _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_91,&local_a0); } } local_7c = 1; uVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_58); } else { local_39 = 0; local_48 = 0; uVar6 = _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_10,&local_39,&local_48); } auVar7._1_7_ = (int7)((ulong)uVar6 >> 8); auVar7[0] = local_10[0]; auVar7._8_8_ = local_8; return auVar7; }
3,120
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::nullptr_t>(std::nullptr_t&&, bool)
monkey531[P]llama/common/json.hpp
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false) { JSON_ASSERT(!keep_stack.empty()); // do not handle this value if we know it would be added to a discarded // container if (!keep_stack.back()) { return {false, nullptr}; } // create value auto value = BasicJsonType(std::forward<Value>(v)); // check callback const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value); // do not handle this value if we just learnt it shall be discarded if (!keep) { return {false, nullptr}; } if (ref_stack.empty()) { root = std::move(value); return {true, & root}; } // skip this value if we already decided to skip the parent // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360) if (!ref_stack.back()) { return {false, nullptr}; } // we now only expect arrays and objects JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); // array if (ref_stack.back()->is_array()) { ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value)); return {true, & (ref_stack.back()->m_data.m_value.array->back())}; } // object JSON_ASSERT(ref_stack.back()->is_object()); // check if we should store an element for the current key JSON_ASSERT(!key_keep_stack.empty()); const bool store_element = key_keep_stack.back(); key_keep_stack.pop_back(); if (!store_element) { return {false, nullptr}; } JSON_ASSERT(object_element); *object_element = std::move(value); return {true, object_element}; }
O2
cpp
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::nullptr_t>(std::nullptr_t&&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movq 0x20(%rdi), %rax cmpq 0x30(%rdi), %rax jne 0x47b6e cmpl $0x0, 0x38(%rbx) je 0x47cc6 leaq 0x20(%rbx), %rdi callq 0x44e86 testq %rdx, (%rax) je 0x47c09 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x46e30 testb %bpl, %bpl jne 0x47bba leaq 0x80(%rbx), %rdi movq 0x10(%rbx), %rsi subq 0x8(%rbx), %rsi shrq $0x3, %rsi pushq $0x5 popq %rdx leaq 0x8(%rsp), %rcx callq 0x44eb4 testb %al, %al je 0x47ca7 movq 0x10(%rbx), %rax cmpq %rax, 0x8(%rbx) je 0x47c13 movq -0x8(%rax), %rax testq %rax, %rax je 0x47ca7 movzbl (%rax), %ecx cmpl $0x1, %ecx je 0x47c3d cmpl $0x2, %ecx jne 0x47ce7 movq 0x8(%rax), %rdi leaq 0x8(%rsp), %rsi callq 0x452ea movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rax movq 0x8(%rax), %r14 addq $-0x10, %r14 jmp 0x47ca3 xorl %ebx, %ebx xorl %r14d, %r14d jmp 0x47cb6 leaq 0x28(%rsp), %r14 leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x452b6 movq (%rbx), %rdi movq %r14, %rsi callq 0x43592 movq %r14, %rdi callq 0x40a0c movq (%rbx), %r14 jmp 0x47ca3 movq 0x48(%rbx), %rax cmpq 0x58(%rbx), %rax jne 0x47c51 cmpl $0x0, 0x60(%rbx) je 0x47cf5 leaq 0x48(%rbx), %rdi callq 0x44e86 movq %rdx, %r14 leaq 0x58(%rbx), %rdi movq (%rax), %r15 callq 0x444ec testq %r14, %r15 je 0x47ca7 cmpq $0x0, 0x70(%rbx) je 0x47d16 leaq 0x18(%rsp), %r14 leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x452b6 movq 0x70(%rbx), %rdi movq %r14, %rsi callq 0x43592 movq %r14, %rdi callq 0x40a0c movq 0x70(%rbx), %r14 movb $0x1, %bl jmp 0x47cac xorl %ebx, %ebx xorl %r14d, %r14d leaq 0x8(%rsp), %rdi callq 0x40a0c movl %ebx, %eax movq %r14, %rdx addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x6becf(%rip), %rdi # 0xb3b9c leaq 0x65921(%rip), %rdx # 0xad5f5 leaq 0x6ce35(%rip), %rcx # 0xb4b10 movl $0x1c28, %esi # imm = 0x1C28 xorl %eax, %eax callq 0x23fe0 leaq 0x6ce36(%rip), %rcx # 0xb4b24 movl $0x1c4b, %esi # imm = 0x1C4B jmp 0x47d01 leaq 0x6ce66(%rip), %rcx # 0xb4b62 movl $0x1c57, %esi # imm = 0x1C57 leaq 0x6be94(%rip), %rdi # 0xb3b9c leaq 0x658e6(%rip), %rdx # 0xad5f5 xorl %eax, %eax callq 0x23fe0 leaq 0x6be7f(%rip), %rdi # 0xb3b9c leaq 0x658d1(%rip), %rdx # 0xad5f5 leaq 0x6ce4f(%rip), %rcx # 0xb4b7a movl $0x1c60, %esi # imm = 0x1C60 xorl %eax, %eax callq 0x23fe0 jmp 0x47d3b jmp 0x47d3b movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x40a0c movq %rbx, %rdi callq 0x240e0
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRSB_EESt4pairIbPSF_EOT_b: push rbp push r15 push r14 push rbx sub rsp, 38h mov ebp, edx mov r14, rsi mov rbx, rdi mov rax, [rdi+20h] cmp rax, [rdi+30h] jnz short loc_47B6E cmp dword ptr [rbx+38h], 0 jz loc_47CC6 loc_47B6E: lea rdi, [rbx+20h] call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) test [rax], rdx jz loc_47C09 lea rdi, [rsp+58h+var_50] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ test bpl, bpl jnz short loc_47BBA lea rdi, [rbx+80h] mov rsi, [rbx+10h] sub rsi, [rbx+8] shr rsi, 3 push 5 pop rdx lea rcx, [rsp+58h+var_50] call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) test al, al jz loc_47CA7 loc_47BBA: mov rax, [rbx+10h] cmp [rbx+8], rax jz short loc_47C13 mov rax, [rax-8] test rax, rax jz loc_47CA7 movzx ecx, byte ptr [rax] cmp ecx, 1 jz short loc_47C3D cmp ecx, 2 jnz loc_47CE7 mov rdi, [rax+8] lea rsi, [rsp+58h+var_50] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rax, [rbx+10h] mov rax, [rax-8] mov rax, [rax+8] mov r14, [rax+8] add r14, 0FFFFFFFFFFFFFFF0h jmp loc_47CA3 loc_47C09: xor ebx, ebx xor r14d, r14d jmp loc_47CB6 loc_47C13: lea r14, [rsp+58h+var_30] lea rsi, [rsp+58h+var_50] mov rdi, r14 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>&&) mov rdi, [rbx] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov r14, [rbx] jmp short loc_47CA3 loc_47C3D: mov rax, [rbx+48h] cmp rax, [rbx+58h] jnz short loc_47C51 cmp dword ptr [rbx+60h], 0 jz loc_47CF5 loc_47C51: lea rdi, [rbx+48h] call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) mov r14, rdx lea rdi, [rbx+58h]; this mov r15, [rax] call _ZNSt18_Bit_iterator_base12_M_bump_downEv; std::_Bit_iterator_base::_M_bump_down(void) test r15, r14 jz short loc_47CA7 cmp qword ptr [rbx+70h], 0 jz loc_47D16 lea r14, [rsp+58h+var_40] lea rsi, [rsp+58h+var_50] mov rdi, r14 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>&&) mov rdi, [rbx+70h] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov r14, [rbx+70h] loc_47CA3: mov bl, 1 jmp short loc_47CAC loc_47CA7: xor ebx, ebx xor r14d, r14d loc_47CAC: lea rdi, [rsp+58h+var_50] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() loc_47CB6: mov eax, ebx mov rdx, r14 add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn loc_47CC6: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1C28h xor eax, eax call _ggml_abort loc_47CE7: lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... mov esi, 1C4Bh jmp short loc_47D01 loc_47CF5: lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" mov esi, 1C57h loc_47D01: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" xor eax, eax call _ggml_abort loc_47D16: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" mov esi, 1C60h xor eax, eax call _ggml_abort jmp short loc_47D3B jmp short $+2 loc_47D3B: mov rbx, rax lea rdi, [rsp+58h+var_50] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<std::string&>( long long a1, long long a2, char a3) { unsigned int v4; // ebx _QWORD *v5; // rax long long v6; // rdx long long v7; // rax unsigned __int8 *v8; // rax int v9; // ecx long long *v10; // rax long long v11; // rdx long long v12; // r14 long long v13; // r15 const char *v15; // rcx long long v16; // rsi long long v17; // rbx char v18[16]; // [rsp+8h] [rbp-50h] BYREF char v19[16]; // [rsp+18h] [rbp-40h] BYREF char v20[48]; // [rsp+28h] [rbp-30h] BYREF v4 = a1; if ( *(_QWORD *)(a1 + 32) == *(_QWORD *)(a1 + 48) && !*(_DWORD *)(a1 + 56) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); LABEL_23: v15 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; v16 = 7243LL; LABEL_25: ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v16, "GGML_ASSERT(%s) failed", v15); goto LABEL_26; } v5 = (_QWORD *)std::vector<bool>::back(a1 + 32); if ( (v6 & *v5) != 0 ) { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(v18); if ( a3 || (unsigned __int8)std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()( a1 + 128, (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3, 5) ) { v7 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v7 ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v20, (long long)v18); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( *(_QWORD *)a1, (long long)v20); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v20); goto LABEL_18; } v8 = *(unsigned __int8 **)(v7 - 8); if ( v8 ) { v9 = *v8; if ( v9 != 1 ) { if ( v9 == 2 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( *((_QWORD *)v8 + 1), (long long)v18); LABEL_18: LOBYTE(v4) = 1; LABEL_20: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v18); return v4; } goto LABEL_23; } if ( *(_QWORD *)(a1 + 72) == *(_QWORD *)(a1 + 88) && !*(_DWORD *)(a1 + 96) ) { v15 = "!key_keep_stack.empty()"; v16 = 7255LL; goto LABEL_25; } v10 = (long long *)std::vector<bool>::back(a1 + 72); v12 = v11; v13 = *v10; std::_Bit_iterator_base::_M_bump_down((std::_Bit_iterator_base *)(a1 + 88)); if ( (v12 & v13) != 0 ) { if ( *(_QWORD *)(a1 + 112) ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v19, (long long)v18); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( *(_QWORD *)(a1 + 112), (long long)v19); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v19); goto LABEL_18; } LABEL_26: v17 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v18); _Unwind_Resume(v17); } } } v4 = 0; goto LABEL_20; } return 0; }
handle_value<std::__cxx11::string&>: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV EBP,EDX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x20] CMP RAX,qword ptr [RDI + 0x30] JNZ 0x00147b6e CMP dword ptr [RBX + 0x38],0x0 JZ 0x00147cc6 LAB_00147b6e: LEA RDI,[RBX + 0x20] CALL 0x00144e86 TEST qword ptr [RAX],RDX JZ 0x00147c09 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x00146e30 TEST BPL,BPL JNZ 0x00147bba LEA RDI,[RBX + 0x80] MOV RSI,qword ptr [RBX + 0x10] SUB RSI,qword ptr [RBX + 0x8] SHR RSI,0x3 LAB_00147ba5: PUSH 0x5 POP RDX LEA RCX,[RSP + 0x8] CALL 0x00144eb4 TEST AL,AL JZ 0x00147ca7 LAB_00147bba: MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RBX + 0x8],RAX JZ 0x00147c13 MOV RAX,qword ptr [RAX + -0x8] TEST RAX,RAX JZ 0x00147ca7 MOVZX ECX,byte ptr [RAX] CMP ECX,0x1 JZ 0x00147c3d CMP ECX,0x2 JNZ 0x00147ce7 MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x8] CALL 0x001452ea MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x8] ADD R14,-0x10 JMP 0x00147ca3 LAB_00147c09: XOR EBX,EBX XOR R14D,R14D JMP 0x00147cb6 LAB_00147c13: LEA R14,[RSP + 0x28] LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x001452b6 MOV RDI,qword ptr [RBX] MOV RSI,R14 CALL 0x00143592 MOV RDI,R14 CALL 0x00140a0c MOV R14,qword ptr [RBX] JMP 0x00147ca3 LAB_00147c3d: MOV RAX,qword ptr [RBX + 0x48] CMP RAX,qword ptr [RBX + 0x58] JNZ 0x00147c51 CMP dword ptr [RBX + 0x60],0x0 JZ 0x00147cf5 LAB_00147c51: LEA RDI,[RBX + 0x48] CALL 0x00144e86 LAB_00147c5a: MOV R14,RDX LEA RDI,[RBX + 0x58] MOV R15,qword ptr [RAX] CALL 0x001444ec TEST R15,R14 JZ 0x00147ca7 CMP qword ptr [RBX + 0x70],0x0 JZ 0x00147d16 LEA R14,[RSP + 0x18] LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x001452b6 MOV RDI,qword ptr [RBX + 0x70] MOV RSI,R14 CALL 0x00143592 MOV RDI,R14 CALL 0x00140a0c MOV R14,qword ptr [RBX + 0x70] LAB_00147ca3: MOV BL,0x1 JMP 0x00147cac LAB_00147ca7: XOR EBX,EBX XOR R14D,R14D LAB_00147cac: LEA RDI,[RSP + 0x8] CALL 0x00140a0c LAB_00147cb6: MOV EAX,EBX MOV RDX,R14 ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET LAB_00147cc6: LEA RDI,[0x1b3b9c] LEA RDX,[0x1ad5f5] LEA RCX,[0x1b4b10] MOV ESI,0x1c28 XOR EAX,EAX CALL 0x00123fe0 LAB_00147ce7: LEA RCX,[0x1b4b24] MOV ESI,0x1c4b JMP 0x00147d01 LAB_00147cf5: LEA RCX,[0x1b4b62] MOV ESI,0x1c57 LAB_00147d01: LEA RDI,[0x1b3b9c] LEA RDX,[0x1ad5f5] XOR EAX,EAX CALL 0x00123fe0 LAB_00147d16: LEA RDI,[0x1b3b9c] LEA RDX,[0x1ad5f5] LEA RCX,[0x1b4b7a] MOV ESI,0x1c60 XOR EAX,EAX CALL 0x00123fe0
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::handle_value<std::__cxx11::string&>(std::__cxx11::string&, bool) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::handle_value<std::__cxx11::string&> (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,string *param_1,bool param_2) { char cVar1; char *pcVar2; ulong uVar3; int8 uVar4; long lVar5; int1 auVar6 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_50 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_40 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_30 [16]; if ((*(long *)(this + 0x20) == *(long *)(this + 0x30)) && (*(int *)(this + 0x38) == 0)) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28, "GGML_ASSERT(%s) failed","!keep_stack.empty()"); } auVar6 = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x20)); if ((*auVar6._0_8_ & auVar6._8_8_) == 0) { uVar3 = 0; lVar5 = 0; goto LAB_00147cb6; } _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ (local_50,param_1); if (param_2) { LAB_00147bba: if (*(long *)(this + 8) == *(long *)(this + 0x10)) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_30,local_50); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)this,local_30); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_30); lVar5 = *(long *)this; } else { pcVar2 = *(char **)(*(long *)(this + 0x10) + -8); if (pcVar2 == (char *)0x0) goto LAB_00147ca7; if (*pcVar2 == '\x01') { if ((*(long *)(this + 0x48) == *(long *)(this + 0x58)) && (*(int *)(this + 0x60) == 0)) { pcVar2 = "!key_keep_stack.empty()"; uVar4 = 0x1c57; goto LAB_00147d01; } /* try { // try from 00147c51 to 00147c59 has its CatchHandler @ 00147d39 */ auVar6 = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x48)); uVar3 = *auVar6._0_8_; std::_Bit_iterator_base::_M_bump_down((_Bit_iterator_base *)(this + 0x58)); if ((uVar3 & auVar6._8_8_) == 0) goto LAB_00147ca7; if (*(long *)(this + 0x70) == 0) { /* try { // try from 00147d16 to 00147d36 has its CatchHandler @ 00147d37 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 0x1c60,"GGML_ASSERT(%s) failed","object_element"); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_40,local_50); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(this + 0x70),local_40); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_40); lVar5 = *(long *)(this + 0x70); } else { if (*pcVar2 != '\x02') { pcVar2 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; uVar4 = 0x1c4b; LAB_00147d01: /* try { // try from 00147d01 to 00147d15 has its CatchHandler @ 00147d3b */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", uVar4,"GGML_ASSERT(%s) failed",pcVar2); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(pcVar2 + 8),local_50); lVar5 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10; } } uVar3 = CONCAT71((int7)((ulong)this >> 8),1); } else { /* try { // try from 00147ba5 to 00147bef has its CatchHandler @ 00147d3b */ cVar1 = std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3,5, local_50); if (cVar1 != '\0') goto LAB_00147bba; LAB_00147ca7: uVar3 = 0; lVar5 = 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> ::~basic_json(local_50); LAB_00147cb6: auVar6._0_8_ = uVar3 & 0xffffffff; auVar6._8_8_ = lVar5; return auVar6; }
3,121
common_params_sampling::print[abi:cxx11]() const
monkey531[P]llama/common/sampling.cpp
std::string common_params_sampling::print() const { char result[1024]; snprintf(result, sizeof(result), "\trepeat_last_n = %d, repeat_penalty = %.3f, frequency_penalty = %.3f, presence_penalty = %.3f\n" "\tdry_multiplier = %.3f, dry_base = %.3f, dry_allowed_length = %d, dry_penalty_last_n = %d\n" "\ttop_k = %d, top_p = %.3f, min_p = %.3f, xtc_probability = %.3f, xtc_threshold = %.3f, typical_p = %.3f, temp = %.3f\n" "\tmirostat = %d, mirostat_lr = %.3f, mirostat_ent = %.3f", penalty_last_n, penalty_repeat, penalty_freq, penalty_present, dry_multiplier, dry_base, dry_allowed_length, dry_penalty_last_n, top_k, top_p, min_p, xtc_probability, xtc_threshold, typ_p, temp, mirostat, mirostat_eta, mirostat_tau); return std::string(result); }
O3
cpp
common_params_sampling::print[abi:cxx11]() const: pushq %r14 pushq %rbx subq $0x448, %rsp # imm = 0x448 movq %rdi, %rbx movl 0x10(%rsi), %eax cvtss2sd 0x38(%rsi), %xmm0 cvtss2sd 0x3c(%rsi), %xmm1 cvtss2sd 0x40(%rsi), %xmm2 cvtss2sd 0x44(%rsi), %xmm3 cvtss2sd 0x48(%rsi), %xmm4 movl 0x34(%rsi), %ecx movl 0x4c(%rsi), %r8d cvtss2sd 0x14(%rsi), %xmm5 cvtss2sd 0x18(%rsi), %xmm6 cvtss2sd 0x1c(%rsi), %xmm7 cvtss2sd 0x20(%rsi), %xmm8 cvtss2sd 0x24(%rsi), %xmm9 movl 0x50(%rsi), %r9d cvtss2sd 0x28(%rsi), %xmm10 movl 0x54(%rsi), %edx cvtss2sd 0x5c(%rsi), %xmm11 cvtss2sd 0x58(%rsi), %xmm12 movsd %xmm12, 0x30(%rsp) movsd %xmm11, 0x28(%rsp) movl %edx, 0x20(%rsp) movsd %xmm10, 0x18(%rsp) movsd %xmm9, 0x10(%rsp) movsd %xmm8, 0x8(%rsp) movl %eax, (%rsp) leaq 0x27a27(%rip), %rdx # 0xf4fb4 leaq 0x40(%rsp), %r14 movl $0x400, %esi # imm = 0x400 movq %r14, %rdi movb $0x8, %al callq 0x1adf0 leaq 0x10(%rbx), %rax movq %rax, (%rbx) movq %r14, %rdi callq 0x1a3d0 leaq (%rsp,%rax), %rdx addq $0x40, %rdx movq %rbx, %rdi movq %r14, %rsi callq 0x224a4 movq %rbx, %rax addq $0x448, %rsp # imm = 0x448 popq %rbx popq %r14 retq
_ZNK22common_params_sampling5printB5cxx11Ev: push r14 push rbx sub rsp, 448h mov rbx, rdi mov eax, [rsi+10h] cvtss2sd xmm0, dword ptr [rsi+38h] cvtss2sd xmm1, dword ptr [rsi+3Ch] cvtss2sd xmm2, dword ptr [rsi+40h] cvtss2sd xmm3, dword ptr [rsi+44h] cvtss2sd xmm4, dword ptr [rsi+48h] mov ecx, [rsi+34h] mov r8d, [rsi+4Ch] cvtss2sd xmm5, dword ptr [rsi+14h] cvtss2sd xmm6, dword ptr [rsi+18h] cvtss2sd xmm7, dword ptr [rsi+1Ch] cvtss2sd xmm8, dword ptr [rsi+20h] cvtss2sd xmm9, dword ptr [rsi+24h] mov r9d, [rsi+50h] cvtss2sd xmm10, dword ptr [rsi+28h] mov edx, [rsi+54h] cvtss2sd xmm11, dword ptr [rsi+5Ch] cvtss2sd xmm12, dword ptr [rsi+58h] movsd [rsp+458h+var_428], xmm12 movsd [rsp+458h+var_430], xmm11 mov [rsp+458h+var_438], edx movsd [rsp+458h+var_440], xmm10 movsd [rsp+458h+var_448], xmm9 movsd [rsp+458h+var_450], xmm8 mov [rsp+458h+var_458], eax lea rdx, aRepeatLastNDRe; "\trepeat_last_n = %d, repeat_penalty = "... lea r14, [rsp+458h+var_418] mov esi, 400h mov rdi, r14 mov al, 8 call _snprintf lea rax, [rbx+10h] mov [rbx], rax mov rdi, r14 call _strlen lea rdx, [rsp+rax+458h+var_458] add rdx, 40h ; '@' mov rdi, rbx mov rsi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, rbx add rsp, 448h pop rbx pop r14 retn
_QWORD * common_params_sampling::print[abi:cxx11](_QWORD *a1, long long a2) { long long v2; // rax _BYTE v4[1048]; // [rsp+40h] [rbp-418h] BYREF snprintf( v4, 1024LL, "\trepeat_last_n = %d, repeat_penalty = %.3f, frequency_penalty = %.3f, presence_penalty = %.3f\n" "\tdry_multiplier = %.3f, dry_base = %.3f, dry_allowed_length = %d, dry_penalty_last_n = %d\n" "\ttop_k = %d, top_p = %.3f, min_p = %.3f, xtc_probability = %.3f, xtc_threshold = %.3f, typical_p = %.3f, temp = %.3" "f\n" "\tmirostat = %d, mirostat_lr = %.3f, mirostat_ent = %.3f", *(_DWORD *)(a2 + 52), *(float *)(a2 + 56), *(float *)(a2 + 60), *(float *)(a2 + 64), *(float *)(a2 + 68), *(float *)(a2 + 72), *(_DWORD *)(a2 + 76), *(_DWORD *)(a2 + 80), *(_DWORD *)(a2 + 16), *(float *)(a2 + 20), *(float *)(a2 + 24), *(float *)(a2 + 28), *(float *)(a2 + 32), *(float *)(a2 + 36), *(float *)(a2 + 40), *(_DWORD *)(a2 + 84), *(float *)(a2 + 92), *(float *)(a2 + 88)); *a1 = a1 + 2; v2 = strlen(v4); std::string::_M_construct<char const*>((long long)a1, v4, (long long)&v4[v2]); return a1; }
print[abi:cxx11]: PUSH R14 PUSH RBX SUB RSP,0x448 MOV RBX,RDI MOV EAX,dword ptr [RSI + 0x10] CVTSS2SD XMM0,dword ptr [RSI + 0x38] CVTSS2SD XMM1,dword ptr [RSI + 0x3c] CVTSS2SD XMM2,dword ptr [RSI + 0x40] CVTSS2SD XMM3,dword ptr [RSI + 0x44] CVTSS2SD XMM4,dword ptr [RSI + 0x48] MOV ECX,dword ptr [RSI + 0x34] MOV R8D,dword ptr [RSI + 0x4c] CVTSS2SD XMM5,dword ptr [RSI + 0x14] CVTSS2SD XMM6,dword ptr [RSI + 0x18] CVTSS2SD XMM7,dword ptr [RSI + 0x1c] CVTSS2SD XMM8,dword ptr [RSI + 0x20] CVTSS2SD XMM9,dword ptr [RSI + 0x24] MOV R9D,dword ptr [RSI + 0x50] CVTSS2SD XMM10,dword ptr [RSI + 0x28] MOV EDX,dword ptr [RSI + 0x54] CVTSS2SD XMM11,dword ptr [RSI + 0x5c] CVTSS2SD XMM12,dword ptr [RSI + 0x58] MOVSD qword ptr [RSP + 0x30],XMM12 MOVSD qword ptr [RSP + 0x28],XMM11 MOV dword ptr [RSP + 0x20],EDX MOVSD qword ptr [RSP + 0x18],XMM10 MOVSD qword ptr [RSP + 0x10],XMM9 MOVSD qword ptr [RSP + 0x8],XMM8 MOV dword ptr [RSP],EAX LEA RDX,[0x1f4fb4] LEA R14,[RSP + 0x40] MOV ESI,0x400 MOV RDI,R14 MOV AL,0x8 CALL 0x0011adf0 LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX MOV RDI,R14 CALL 0x0011a3d0 LEA RDX,[RSP + RAX*0x1] ADD RDX,0x40 MOV RDI,RBX MOV RSI,R14 CALL 0x001224a4 MOV RAX,RBX ADD RSP,0x448 POP RBX POP R14 RET
/* common_params_sampling::print[abi:cxx11]() const */ void common_params_sampling::print_abi_cxx11_(void) { long in_RSI; long *in_RDI; char local_418 [1032]; snprintf(local_418,0x400, "\trepeat_last_n = %d, repeat_penalty = %.3f, frequency_penalty = %.3f, presence_penalty = %.3f\n\tdry_multiplier = %.3f, dry_base = %.3f, dry_allowed_length = %d, dry_penalty_last_n = %d\n\ttop_k = %d, top_p = %.3f, min_p = %.3f, xtc_probability = %.3f, xtc_threshold = %.3f, typical_p = %.3f, temp = %.3f\n\tmirostat = %d, mirostat_lr = %.3f, mirostat_ent = %.3f" ,(double)*(float *)(in_RSI + 0x38),(double)*(float *)(in_RSI + 0x3c), (double)*(float *)(in_RSI + 0x40),(double)*(float *)(in_RSI + 0x44), (double)*(float *)(in_RSI + 0x48),(double)*(float *)(in_RSI + 0x14), (double)*(float *)(in_RSI + 0x18),(double)*(float *)(in_RSI + 0x1c), (ulong)*(uint *)(in_RSI + 0x34),(ulong)*(uint *)(in_RSI + 0x4c), (ulong)*(uint *)(in_RSI + 0x50),*(int4 *)(in_RSI + 0x10), (double)*(float *)(in_RSI + 0x20),(double)*(float *)(in_RSI + 0x24), (double)*(float *)(in_RSI + 0x28),*(int4 *)(in_RSI + 0x54), (double)*(float *)(in_RSI + 0x5c),(double)*(float *)(in_RSI + 0x58)); *in_RDI = (long)(in_RDI + 2); strlen(local_418); std::__cxx11::string::_M_construct<char_const*>(); return; }
3,122
ma_scan_remember_block_record
eloqsql/storage/maria/ma_blockrec.c
int _ma_scan_remember_block_record(MARIA_HA *info, MARIA_RECORD_POS *lastpos) { uchar *bitmap_buff; DBUG_ENTER("_ma_scan_remember_block_record"); if (!(info->scan_save)) { if (!(info->scan_save= my_malloc(PSI_INSTRUMENT_ME, ALIGN_SIZE(sizeof(*info->scan_save)) + info->s->block_size * 2, MYF(MY_WME)))) DBUG_RETURN(HA_ERR_OUT_OF_MEM); info->scan_save->bitmap_buff= ((uchar*) info->scan_save + ALIGN_SIZE(sizeof(*info->scan_save))); } /* For checking if pages have changed since we last read it */ info->scan.row_changes= info->row_changes; /* Remember used bitmap and used head page */ bitmap_buff= info->scan_save->bitmap_buff; memcpy(info->scan_save, &info->scan, sizeof(*info->scan_save)); info->scan_save->bitmap_buff= bitmap_buff; memcpy(bitmap_buff, info->scan.bitmap_buff, info->s->block_size * 2); /* Point to the last read row */ *lastpos= info->cur_row.nextpos - 1; info->scan_save->dir+= DIR_ENTRY_SIZE; DBUG_RETURN(0); }
O3
c
ma_scan_remember_block_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x280(%rdi), %rdi testq %rdi, %rdi jne 0x4cf56 movq (%rbx), %rax movl 0x7bc(%rax), %esi addl %esi, %esi addq $0x60, %rsi movl $0x10, %edx xorl %edi, %edi callq 0x9ff21 movq %rax, 0x280(%rbx) testq %rax, %rax je 0x4cfc2 movq %rax, %rcx addq $0x60, %rcx movq %rcx, (%rax) movq 0x280(%rbx), %rdi movq 0x3f0(%rbx), %rax leaq 0x220(%rbx), %rsi movq %rax, 0x278(%rbx) movq (%rdi), %r15 movl $0x60, %edx callq 0x29080 movq 0x280(%rbx), %rax movq %r15, (%rax) movq 0x220(%rbx), %rsi movq (%rbx), %rax movl 0x7bc(%rax), %edx addl %edx, %edx movq %r15, %rdi callq 0x29080 movq 0xa0(%rbx), %rax decq %rax movq %rax, (%r14) movq 0x280(%rbx), %rax addq $0x4, 0x20(%rax) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x80, %eax jmp 0x4cfb7
_ma_scan_remember_block_record: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rdi, [rdi+280h] test rdi, rdi jnz short loc_4CF56 mov rax, [rbx] mov esi, [rax+7BCh] add esi, esi add rsi, 60h ; '`' mov edx, 10h xor edi, edi call my_malloc mov [rbx+280h], rax test rax, rax jz short loc_4CFC2 mov rcx, rax add rcx, 60h ; '`' mov [rax], rcx mov rdi, [rbx+280h] loc_4CF56: mov rax, [rbx+3F0h] lea rsi, [rbx+220h] mov [rbx+278h], rax mov r15, [rdi] mov edx, 60h ; '`' call _memcpy mov rax, [rbx+280h] mov [rax], r15 mov rsi, [rbx+220h] mov rax, [rbx] mov edx, [rax+7BCh] add edx, edx mov rdi, r15 call _memcpy mov rax, [rbx+0A0h] dec rax mov [r14], rax mov rax, [rbx+280h] add qword ptr [rax+20h], 4 xor eax, eax loc_4CFB7: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_4CFC2: mov eax, 80h jmp short loc_4CFB7
long long ma_scan_remember_block_record(_QWORD *a1, _QWORD *a2) { long long *v3; // rdi _QWORD *v4; // rax long long v5; // r15 v3 = (long long *)a1[80]; if ( !v3 ) { v4 = (_QWORD *)my_malloc(0LL, (unsigned int)(2 * *(_DWORD *)(*a1 + 1980LL)) + 96LL, 16LL); a1[80] = v4; if ( !v4 ) return 128LL; *v4 = v4 + 12; v3 = (long long *)a1[80]; } a1[79] = a1[126]; v5 = *v3; memcpy(v3, a1 + 68, 96LL); *(_QWORD *)a1[80] = v5; memcpy(v5, a1[68], (unsigned int)(2 * *(_DWORD *)(*a1 + 1980LL))); *a2 = a1[20] - 1LL; *(_QWORD *)(a1[80] + 32LL) += 4LL; return 0LL; }
_ma_scan_remember_block_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x280] TEST RDI,RDI JNZ 0x0014cf56 MOV RAX,qword ptr [RBX] MOV ESI,dword ptr [RAX + 0x7bc] ADD ESI,ESI ADD RSI,0x60 MOV EDX,0x10 XOR EDI,EDI CALL 0x0019ff21 MOV qword ptr [RBX + 0x280],RAX TEST RAX,RAX JZ 0x0014cfc2 MOV RCX,RAX ADD RCX,0x60 MOV qword ptr [RAX],RCX MOV RDI,qword ptr [RBX + 0x280] LAB_0014cf56: MOV RAX,qword ptr [RBX + 0x3f0] LEA RSI,[RBX + 0x220] MOV qword ptr [RBX + 0x278],RAX MOV R15,qword ptr [RDI] MOV EDX,0x60 CALL 0x00129080 MOV RAX,qword ptr [RBX + 0x280] MOV qword ptr [RAX],R15 MOV RSI,qword ptr [RBX + 0x220] MOV RAX,qword ptr [RBX] MOV EDX,dword ptr [RAX + 0x7bc] ADD EDX,EDX MOV RDI,R15 CALL 0x00129080 MOV RAX,qword ptr [RBX + 0xa0] DEC RAX MOV qword ptr [R14],RAX MOV RAX,qword ptr [RBX + 0x280] ADD qword ptr [RAX + 0x20],0x4 XOR EAX,EAX LAB_0014cfb7: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_0014cfc2: MOV EAX,0x80 JMP 0x0014cfb7
int8 _ma_scan_remember_block_record(long *param_1,long *param_2) { void *__dest; long *plVar1; int8 *__dest_00; __dest_00 = (int8 *)param_1[0x50]; if (__dest_00 == (int8 *)0x0) { plVar1 = (long *)my_malloc(0,(ulong)(uint)(*(int *)(*param_1 + 0x7bc) * 2) + 0x60,0x10); param_1[0x50] = (long)plVar1; if (plVar1 == (long *)0x0) { return 0x80; } *plVar1 = (long)(plVar1 + 0xc); __dest_00 = (int8 *)param_1[0x50]; } param_1[0x4f] = param_1[0x7e]; __dest = (void *)*__dest_00; memcpy(__dest_00,param_1 + 0x44,0x60); *(void **)param_1[0x50] = __dest; memcpy(__dest,(void *)param_1[0x44],(ulong)(uint)(*(int *)(*param_1 + 0x7bc) * 2)); *param_2 = param_1[0x14] + -1; *(long *)(param_1[0x50] + 0x20) = *(long *)(param_1[0x50] + 0x20) + 4; return 0; }
3,123
my_hash_sort_simple
eloqsql/strings/ctype-simple.c
void my_hash_sort_simple(CHARSET_INFO *cs, const uchar *key, size_t len, ulong *nr1, ulong *nr2) { register const uchar *sort_order=cs->sort_order; const uchar *end; uint16 space_weight= sort_order[' ']; /* Remove all trailing characters that are equal to space. We have to do this to be able to compare 'A ' and 'A' as identical. If the key is long enough, cut the trailing spaces (0x20) using an optimized function implemented in skip_trailing_spaces(). "len > 16" is just some heuristic here. Calling skip_triling_space() for short values is not desirable, because its initialization block may be more expensive than the performance gained. */ end= len > 16 ? skip_trailing_space(key, len) : key + len; /* We removed all trailing characters that are binary equal to space 0x20. Now remove all trailing characters that have weights equal to space. Some 8bit simple collations may have such characters: - cp1250_general_ci 0xA0 NO-BREAK SPACE == 0x20 SPACE - cp1251_ukrainian_ci 0x60 GRAVE ACCENT == 0x20 SPACE - koi8u_general_ci 0x60 GRAVE ACCENT == 0x20 SPACE */ for ( ; key < end ; ) { if (sort_order[*--end] != space_weight) { end++; break; } } my_hash_sort_simple_nopad(cs, key, end - key, nr1, nr2); }
O0
c
my_hash_sort_simple: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movzbl 0x20(%rax), %eax movw %ax, -0x3a(%rbp) cmpq $0x10, -0x18(%rbp) jbe 0x135b4ee movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x135b570 movq %rax, -0x48(%rbp) jmp 0x135b4fa movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax cmpq -0x38(%rbp), %rax jae 0x135b53f movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx movq %rcx, %rdx addq $-0x1, %rdx movq %rdx, -0x38(%rbp) movzbl -0x1(%rcx), %ecx movzbl (%rax,%rcx), %eax movzwl -0x3a(%rbp), %ecx cmpl %ecx, %eax je 0x135b53d movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) jmp 0x135b53f jmp 0x135b502 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x38(%rbp), %rdx movq -0x10(%rbp), %rax subq %rax, %rdx movq -0x20(%rbp), %rcx movq -0x28(%rbp), %r8 callq 0x135b3e0 addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_hash_sort_simple: push rbp mov rbp, rsp sub rsp, 50h 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_8] mov rax, [rax+58h] mov [rbp+var_30], rax mov rax, [rbp+var_30] movzx eax, byte ptr [rax+20h] mov [rbp+var_3A], ax cmp [rbp+var_18], 10h jbe short loc_135B4EE mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call skip_trailing_space_2 mov [rbp+var_48], rax jmp short loc_135B4FA loc_135B4EE: mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_48], rax loc_135B4FA: mov rax, [rbp+var_48] mov [rbp+var_38], rax loc_135B502: mov rax, [rbp+var_10] cmp rax, [rbp+var_38] jnb short loc_135B53F mov rax, [rbp+var_30] mov rcx, [rbp+var_38] mov rdx, rcx add rdx, 0FFFFFFFFFFFFFFFFh mov [rbp+var_38], rdx movzx ecx, byte ptr [rcx-1] movzx eax, byte ptr [rax+rcx] movzx ecx, [rbp+var_3A] cmp eax, ecx jz short loc_135B53D mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax jmp short loc_135B53F loc_135B53D: jmp short loc_135B502 loc_135B53F: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_38] mov rax, [rbp+var_10] sub rdx, rax mov rcx, [rbp+var_20] mov r8, [rbp+var_28] call my_hash_sort_simple_nopad add rsp, 50h pop rbp retn
_QWORD * my_hash_sort_simple(long long a1, unsigned __int8 *a2, unsigned long long a3, long long *a4, _QWORD *a5) { unsigned long long v5; // rcx long long v7; // [rsp+8h] [rbp-48h] __int16 v8; // [rsp+16h] [rbp-3Ah] unsigned long long v9; // [rsp+18h] [rbp-38h] long long v10; // [rsp+20h] [rbp-30h] v10 = *(_QWORD *)(a1 + 88); v8 = *(unsigned __int8 *)(v10 + 32); if ( a3 <= 0x10 ) v7 = (long long)&a2[a3]; else v7 = skip_trailing_space_2(a2, a3); v9 = v7; while ( (unsigned long long)a2 < v9 ) { v5 = v9--; if ( *(unsigned __int8 *)(v10 + *(unsigned __int8 *)(v5 - 1)) != v8 ) return my_hash_sort_simple_nopad(a1, a2, ++v9 - (_QWORD)a2, a4, a5); } return my_hash_sort_simple_nopad(a1, a2, v9 - (_QWORD)a2, a4, a5); }
3,124
my_hash_sort_simple
eloqsql/strings/ctype-simple.c
void my_hash_sort_simple(CHARSET_INFO *cs, const uchar *key, size_t len, ulong *nr1, ulong *nr2) { register const uchar *sort_order=cs->sort_order; const uchar *end; uint16 space_weight= sort_order[' ']; /* Remove all trailing characters that are equal to space. We have to do this to be able to compare 'A ' and 'A' as identical. If the key is long enough, cut the trailing spaces (0x20) using an optimized function implemented in skip_trailing_spaces(). "len > 16" is just some heuristic here. Calling skip_triling_space() for short values is not desirable, because its initialization block may be more expensive than the performance gained. */ end= len > 16 ? skip_trailing_space(key, len) : key + len; /* We removed all trailing characters that are binary equal to space 0x20. Now remove all trailing characters that have weights equal to space. Some 8bit simple collations may have such characters: - cp1250_general_ci 0xA0 NO-BREAK SPACE == 0x20 SPACE - cp1251_ukrainian_ci 0x60 GRAVE ACCENT == 0x20 SPACE - koi8u_general_ci 0x60 GRAVE ACCENT == 0x20 SPACE */ for ( ; key < end ; ) { if (sort_order[*--end] != space_weight) { end++; break; } } my_hash_sort_simple_nopad(cs, key, end - key, nr1, nr2); }
O3
c
my_hash_sort_simple: pushq %rbp movq %rsp, %rbp pushq %rbx movq 0x58(%rdi), %rax leaq (%rsi,%rdx), %rdi cmpq $0x11, %rdx jb 0xd16361 cmpq $0x15, %rdx jb 0xd1634c movq %rdi, %r10 andq $-0x4, %r10 cmpq %rsi, %r10 jbe 0xd1634c leaq 0x3(%rsi), %r9 andq $-0x4, %r9 movq %rdi, %rdx movb -0x1(%rdi), %r11b cmpq %r10, %rdi jbe 0xd163cc leaq -0x1(%rdx), %rdi cmpb $0x20, %r11b je 0xd16330 jmp 0xd1634f movq %rdi, %rdx movq %rdx, %rdi cmpq %rsi, %rdx jbe 0xd16361 leaq -0x1(%rdi), %rdx cmpb $0x20, -0x1(%rdi) je 0xd1634f movb 0x20(%rax), %r9b movq %rdi, %r11 subq %rsi, %r11 movq %rdi, %rdx movq %r11, %r10 cmpq %rsi, %rdi jbe 0xd16388 leaq -0x1(%rdx), %rdi movzbl -0x1(%rdx), %ebx leaq -0x1(%r10), %r11 cmpb %r9b, (%rax,%rbx) je 0xd1636b movq (%rcx), %rdi movq (%r8), %r9 testq %r10, %r10 jle 0xd163c3 movl %edi, %r10d andl $0x3f, %r10d addq %r9, %r10 movzbl (%rsi), %r11d movzbl (%rax,%r11), %r11d imulq %r10, %r11 movq %rdi, %r10 shlq $0x8, %r10 addq %r11, %r10 xorq %r10, %rdi addq $0x3, %r9 incq %rsi cmpq %rdx, %rsi jb 0xd16393 movq %rdi, (%rcx) movq %r9, (%r8) popq %rbx popq %rbp retq cmpb $0x20, %r11b setne %dil cmpq %r10, %r9 setae %r10b orb %dil, %r10b jne 0xd1634f movq %rdx, %rdi movq %rdi, %rdx cmpq %r9, %rdi jbe 0xd1634f leaq -0x4(%rdx), %rdi cmpl $0x20202020, -0x4(%rdx) # imm = 0x20202020 je 0xd163e7 jmp 0xd1634f
my_hash_sort_simple: push rbp mov rbp, rsp push rbx mov rax, [rdi+58h] lea rdi, [rsi+rdx] cmp rdx, 11h jb short loc_D16361 cmp rdx, 15h jb short loc_D1634C mov r10, rdi and r10, 0FFFFFFFFFFFFFFFCh cmp r10, rsi jbe short loc_D1634C lea r9, [rsi+3] and r9, 0FFFFFFFFFFFFFFFCh loc_D16330: mov rdx, rdi mov r11b, [rdi-1] cmp rdi, r10 jbe loc_D163CC lea rdi, [rdx-1] cmp r11b, 20h ; ' ' jz short loc_D16330 jmp short loc_D1634F loc_D1634C: mov rdx, rdi loc_D1634F: mov rdi, rdx cmp rdx, rsi jbe short loc_D16361 lea rdx, [rdi-1] cmp byte ptr [rdi-1], 20h ; ' ' jz short loc_D1634F loc_D16361: mov r9b, [rax+20h] mov r11, rdi sub r11, rsi loc_D1636B: mov rdx, rdi mov r10, r11 cmp rdi, rsi jbe short loc_D16388 lea rdi, [rdx-1] movzx ebx, byte ptr [rdx-1] lea r11, [r10-1] cmp [rax+rbx], r9b jz short loc_D1636B loc_D16388: mov rdi, [rcx] mov r9, [r8] test r10, r10 jle short loc_D163C3 loc_D16393: mov r10d, edi and r10d, 3Fh add r10, r9 movzx r11d, byte ptr [rsi] movzx r11d, byte ptr [rax+r11] imul r11, r10 mov r10, rdi shl r10, 8 add r10, r11 xor rdi, r10 add r9, 3 inc rsi cmp rsi, rdx jb short loc_D16393 loc_D163C3: mov [rcx], rdi mov [r8], r9 pop rbx pop rbp retn loc_D163CC: cmp r11b, 20h ; ' ' setnz dil cmp r9, r10 setnb r10b or r10b, dil jnz loc_D1634F mov rdi, rdx loc_D163E7: mov rdx, rdi cmp rdi, r9 jbe loc_D1634F lea rdi, [rdx-4] cmp dword ptr [rdx-4], 20202020h jz short loc_D163E7 jmp loc_D1634F
long long my_hash_sort_simple(long long a1, unsigned __int8 *a2, unsigned long long a3, long long *a4, long long *a5) { long long result; // rax unsigned long long v6; // rdi unsigned long long v7; // r10 unsigned long long v8; // r9 unsigned __int8 *v9; // rdx char v10; // r11 long long v11; // r11 unsigned long long v12; // rdx long long v13; // r10 long long v14; // rdi long long v15; // r9 result = *(_QWORD *)(a1 + 88); v6 = (unsigned long long)&a2[a3]; if ( a3 >= 0x11 ) { if ( a3 < 0x15 || (v7 = v6 & 0xFFFFFFFFFFFFFFFCLL, (v6 & 0xFFFFFFFFFFFFFFFCLL) <= (unsigned long long)a2) ) { v9 = &a2[a3]; } else { v8 = (unsigned long long)(a2 + 3) & 0xFFFFFFFFFFFFFFFCLL; while ( 1 ) { v9 = (unsigned __int8 *)v6; v10 = *(_BYTE *)(v6 - 1); if ( v6 <= v7 ) break; --v6; if ( v10 != 32 ) goto LABEL_9; } if ( v10 == 32 && v8 < v7 ) { do { v9 = (unsigned __int8 *)v6; if ( v6 <= v8 ) break; v6 -= 4LL; } while ( *((_DWORD *)v9 - 1) == 538976288 ); } } do { LABEL_9: v6 = (unsigned long long)v9; if ( v9 <= a2 ) break; --v9; } while ( *(_BYTE *)(v6 - 1) == 32 ); } v11 = v6 - (_QWORD)a2; do { v12 = v6; v13 = v11; if ( v6 <= (unsigned long long)a2 ) break; --v6; --v11; } while ( *(_BYTE *)(result + *(unsigned __int8 *)(v12 - 1)) == *(_BYTE *)(result + 32) ); v14 = *a4; v15 = *a5; if ( v13 > 0 ) { do { v14 ^= (v15 + (v14 & 0x3F)) * *(unsigned __int8 *)(result + *a2) + (v14 << 8); v15 += 3LL; ++a2; } while ( (unsigned long long)a2 < v12 ); } *a4 = v14; *a5 = v15; return result; }
fil_tablespace_iterate: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1c8 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX TEST RSI,RSI JZ 0x00d16a0b MOV R13,RDX MOV R15,RSI MOV RBX,RDI CALL 0x00c683e3 TEST byte ptr [RBX + 0x40],0x40 JNZ 0x00d16346 XOR R14D,R14D JMP 0x00d1634a LAB_00d16346: MOV R14,qword ptr [RBX + 0x28] LAB_00d1634a: MOV RBX,qword ptr [RBX + 0x10] MOV RDI,RBX CALL 0x00728a40 LEA RSI,[RBP + -0x1a8] MOV qword ptr [RSI],RBX MOV qword ptr [RSI + 0x8],RAX XOR ECX,ECX TEST R14,R14 SETNZ CL MOV RDI,R14 MOV EDX,0x1 CALL 0x00c7452c MOV qword ptr [RBP + -0x1c0],RAX TEST RAX,RAX JZ 0x00d16434 MOV RBX,RAX MOV qword ptr [RBP + -0x1e8],R15 LEA RAX,[0x1f2af54] MOV ESI,dword ptr [RAX] LEA R14,[RBP + -0x1b8] MOV qword ptr [R14],0x0 LEA R15,[0x1626f08] MOV RAX,qword ptr [R15] LEA RDI,[RBP + -0x1a8] MOV EDX,0x2 MOV RCX,RBX MOV R8,R14 CALL qword ptr [RAX + 0x148] MOV qword ptr [R14],RAX TEST RAX,RAX JZ 0x00d163ec MOV RCX,qword ptr [R15] LEA RSI,[0xf102d9] MOV RDI,RAX MOV EDX,0x1021 CALL qword ptr [RCX + 0x1f0] LAB_00d163ec: LEA R14,[RBP + -0x1a9] MOV ESI,0x33 MOV EDX,0x1bc MOV RDI,RBX XOR ECX,ECX MOV R8,R14 CALL 0x00cf2a66 MOV R12D,EAX MOV RDI,qword ptr [RBP + -0x1b8] TEST RDI,RDI JZ 0x00d1643f MOV RAX,qword ptr [R15] XOR ESI,ESI CMP byte ptr [RBP + -0x1a9],0x0 CMOVNZ RSI,R14 CALL qword ptr [RAX + 0x1f8] MOV R14,RAX JMP 0x00d16442 LAB_00d16434: MOV R12D,0xd JMP 0x00d16887 LAB_00d1643f: MOV R14,RDX LAB_00d16442: CMP byte ptr [RBP + -0x1a9],0x0 JZ 0x00d16629 MOV dword ptr [R13 + 0x10],R12D MOV qword ptr [R13 + 0x18],R14 MOV qword ptr [R13 + 0x20],RBX MOV EDI,R12D CALL 0x00cf2f26 CMP RAX,-0x1 JZ 0x00d16a1f MOV qword ptr [RBP + -0x1d8],RAX MOV qword ptr [RBP + -0x1c8],R13 LEA R15,[0x1f30990] MOV RDI,qword ptr [R15] LEA RSI,[RDI + RDI*0x1] CALL 0x00729330 MOV R13,RAX XOR EBX,EBX LEA RDI,[RBP + -0x1a8] MOV dword ptr [RDI],EBX MOV ESI,0xa0 XOR EDX,EDX MOV ECX,0x28 MOV R8D,0x1 XOR R9D,R9D CALL 0x007da9a4 MOV qword ptr [RAX + 0x30],R13 MOV qword ptr [RAX],-0x1 MOV dword ptr [RAX + 0x44],0x20000001 MOV qword ptr [RAX + 0x10],0x0 MOV dword ptr [RAX + 0x68],EBX MOV qword ptr [RBP + -0x1f0],RAX MOV dword ptr [RAX + 0x6c],0x0 MOV RBX,qword ptr [R15] LEA RAX,[0x1626f08] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x1a8] MOV qword ptr [RBP + -0x1d0],R14 MOV RSI,R14 MOV EDX,0x6 CALL qword ptr [RAX + 0x150] LEA R14,[0x1626f08] TEST RAX,RAX MOV dword ptr [RBP + -0x1b0],R12D MOV qword ptr [RBP + -0x1e0],R13 JZ 0x00d16573 MOV R15,RAX MOV RAX,qword ptr [R14] LEA RDX,[0xf102d9] MOV RDI,R15 MOV RSI,RBX MOV ECX,0x1044 CALL qword ptr [RAX + 0x210] LEA RDI,[0x1064718] MOV ESI,R12D MOV RDX,R13 XOR ECX,ECX MOV R8,RBX XOR R9D,R9D CALL 0x00cf3f09 MOV R12D,EAX MOV R13,R14 MOV RAX,qword ptr [R14] MOV RDI,R15 MOV RSI,RBX CALL qword ptr [RAX + 0x218] JMP 0x00d16593 LAB_00d16573: MOV RDX,R13 MOV R13,R14 LEA RDI,[0x1064718] MOV ESI,R12D XOR ECX,ECX MOV R8,RBX XOR R9D,R9D CALL 0x00cf3f09 MOV R12D,EAX LAB_00d16593: TEST R12D,R12D MOV R15,R13 MOV R13,qword ptr [RBP + -0x1f0] MOV R14,qword ptr [RBP + -0x1d0] JNZ 0x00d167cb MOV RBX,qword ptr [RBP + -0x1c8] MOV RAX,qword ptr [RBX] MOV RDI,RBX MOV RSI,qword ptr [RBP + -0x1d8] MOV RDX,R13 CALL qword ptr [RAX + 0x10] TEST EAX,EAX JZ 0x00d165d3 MOV R12D,EAX JMP 0x00d167cb LAB_00d165d3: MOV RAX,qword ptr [RBX + 0x30] SHL RAX,0x20 MOV qword ptr [R13],RAX MOV RAX,qword ptr [RBX + 0x8] XOR EDI,EDI TEST RAX,RAX JZ 0x00d1669e MOV ECX,0x1 LAB_00d165f3: MOV EDX,0x200 SHL EDX,CL INC ECX ADD EDI,0x20000000 CMP RAX,RDX JA 0x00d165f3 MOV EAX,0x1fffffff AND EAX,dword ptr [R13 + 0x40] ADD EAX,EDI MOV dword ptr [R13 + 0x40],EAX MOV RAX,qword ptr [RBP + -0x1c8] MOV RDI,qword ptr [RAX + 0x8] MOV R15D,0x1 JMP 0x00d166a5 LAB_00d16629: MOV EDI,0x1 CALL 0x00cf330a LEA RBX,[RBP + -0x1a8] MOV EDX,0x178 MOV RDI,RBX XOR ESI,ESI CALL 0x007287a0 MOV RDI,RBX CALL 0x0072ac82 LEA RAX,[0xf11234] LEA RSI,[RBP + -0x1b8] MOV qword ptr [RSI],RAX LAB_00d16662: MOV RDI,RBX CALL 0x0072ac38 LEA RSI,[RBP + -0x1c0] MOV RDI,RAX CALL 0x0072aca8 LAB_00d16679: LEA RDI,[RBP + -0x1a8] LEA RSI,[RBP + -0x1c0] LEA RDX,[RBP + -0x1a9] CALL 0x00788174 MOV R12D,0x2a JMP 0x00d16887 LAB_00d1669e: MOV R15,qword ptr [RBP + -0x1e8] LAB_00d166a5: MOV RSI,qword ptr [RBP + -0x1e0] CALL 0x00c78c04 MOV R12,RAX MOV qword ptr [RBP + -0x168],RAX TEST RAX,RAX SETNZ AL CMP R15,0x2 SETNC CL AND CL,AL SHR R15,CL MOV EAX,dword ptr [RBP + -0x1b0] MOV dword ptr [RBP + -0x1a8],EAX MOV qword ptr [RBP + -0x1a0],R14 MOV qword ptr [RBP + -0x190],0x0 MOV RCX,qword ptr [RBP + -0x1d8] MOV qword ptr [RBP + -0x188],RCX MOV RAX,qword ptr [RBP + -0x1c0] MOV qword ptr [RBP + -0x198],RAX MOV qword ptr [RBP + -0x180],RCX MOV qword ptr [RBP + -0x178],R15 INC R15 LEA RAX,[0x1f30998] MOV CL,byte ptr [RAX] SHL R15,CL LEA RAX,[0x1f30990] MOV RBX,qword ptr [RAX] MOV RDI,RBX MOV RSI,R15 CALL 0x00729330 MOV RSI,R15 MOV R15,RAX MOV qword ptr [RBP + -0x170],RAX TEST R12,R12 JZ 0x00d16755 MOV RDI,RBX CALL 0x00729330 JMP 0x00d16757 LAB_00d16755: XOR EAX,EAX LAB_00d16757: MOV qword ptr [RBP + -0x160],RAX CMP dword ptr [R13 + 0x40],0x20000000 JC 0x00d16773 MOV qword ptr [R13 + 0x30],R15 ADD RBX,R15 MOV qword ptr [R13 + 0x38],RBX LAB_00d16773: MOV RDI,qword ptr [RBP + -0x1c8] MOV RAX,qword ptr [RDI] LEA RBX,[RBP + -0x1a8] MOV RSI,RBX MOV RDX,R13 CALL qword ptr [RAX + 0x20] MOV R12D,EAX CMP qword ptr [RBX + 0x40],0x0 JZ 0x00d167a3 LEA RDI,[RBP + -0x168] CALL 0x00c78dde LAB_00d167a3: MOV RDI,qword ptr [RBP + -0x160] CALL 0x0072a4d8 MOV RDI,qword ptr [RBP + -0x170] CALL 0x0072a4d8 TEST R12D,R12D LEA R15,[0x1626f08] JZ 0x00d168af LAB_00d167cb: MOV RAX,qword ptr [R15] LEA RDI,[RBP + -0x1a8] MOV RSI,R14 MOV EDX,0x4 CALL qword ptr [RAX + 0x150] TEST RAX,RAX JZ 0x00d16820 MOV RBX,RAX MOV RAX,qword ptr [R15] LEA RDX,[0xf102d9] MOV RDI,RBX XOR ESI,ESI MOV ECX,0x108f CALL qword ptr [RAX + 0x210] MOV EDI,dword ptr [RBP + -0x1b0] CALL 0x00cf2ef4 MOV RAX,qword ptr [R15] MOV RDI,RBX XOR ESI,ESI CALL qword ptr [RAX + 0x218] JMP 0x00d1682b LAB_00d16820: MOV EDI,dword ptr [RBP + -0x1b0] CALL 0x00cf2ef4 LAB_00d1682b: MOV RDI,qword ptr [RBP + -0x1e0] CALL 0x0072a4d8 MOV RAX,qword ptr [RBP + -0x1c0] TEST RAX,RAX JZ 0x00d16863 LEA RBX,[RAX + -0x18] MOV RCX,qword ptr [R15] MOV EDI,dword ptr [RAX + -0x18] MOV RSI,qword ptr [RAX + -0x8] MOV RDX,qword ptr [RAX + -0x10] CALL qword ptr [RCX + 0x3f8] MOV RDI,RBX CALL 0x0072a4d8 LAB_00d16863: MOV RBX,R13 ADD RBX,-0x18 MOV RAX,qword ptr [R15] MOV EDI,dword ptr [R13 + -0x18] MOV RSI,qword ptr [R13 + -0x8] MOV RDX,qword ptr [R13 + -0x10] CALL qword ptr [RAX + 0x3f8] MOV RDI,RBX CALL 0x0072a4d8 LAB_00d16887: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00d16a6e MOV EAX,R12D ADD RSP,0x1c8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00d168af: MOV EDX,0x178 MOV RDI,RBX XOR ESI,ESI CALL 0x007287a0 MOV RDI,RBX CALL 0x0072ac82 LEA RAX,[0xf11299] LEA RSI,[RBP + -0x1b8] MOV qword ptr [RSI],RAX LAB_00d168d7: MOV RDI,RBX CALL 0x0072ac38 LAB_00d168df: LEA RDI,[RBP + -0x1a8] CALL 0x0078d508 MOV RAX,qword ptr [R15] LEA RDI,[RBP + -0x1a8] MOV RSI,R14 MOV EDX,0x10 CALL qword ptr [RAX + 0x150] TEST RAX,RAX MOV R14D,dword ptr [RBP + -0x1b0] JNZ 0x00d16974 MOV EDI,R14D CALL 0x00cf1e89 TEST AL,AL JNZ 0x00d169b9 LAB_00d1691f: LEA RBX,[RBP + -0x1a8] MOV EDX,0x178 MOV RDI,RBX XOR ESI,ESI CALL 0x007287a0 MOV RDI,RBX CALL 0x0072ac82 LEA RAX,[0xf112a6] LEA RSI,[RBP + -0x1b8] MOV qword ptr [RSI],RAX LAB_00d1694e: MOV RDI,RBX CALL 0x0072ac38 LAB_00d16956: MOV R14,qword ptr [RBP + -0x1d0] LEA RDI,[RBP + -0x1a8] CALL 0x0078d508 MOV R12D,0x64 JMP 0x00d167cb LAB_00d16974: MOV RBX,RAX MOV RAX,qword ptr [R15] LEA RDX,[0xf102d9] MOV RDI,RBX XOR ESI,ESI MOV ECX,0x1087 CALL qword ptr [RAX + 0x210] MOV EDI,R14D CALL 0x00cf1e89 MOV R14,R15 MOV R15D,EAX MOV RAX,qword ptr [R14] MOV RDI,RBX XOR ESI,ESI CALL qword ptr [RAX + 0x218] TEST R15B,R15B MOV R15,R14 JZ 0x00d1691f LAB_00d169b9: LEA RBX,[RBP + -0x1a8] XOR R12D,R12D MOV EDX,0x178 MOV RDI,RBX XOR ESI,ESI CALL 0x007287a0 MOV RDI,RBX CALL 0x0072ac82 LEA RAX,[0xf112be] LEA RSI,[RBP + -0x1b8] MOV qword ptr [RSI],RAX LAB_00d169eb: MOV RDI,RBX CALL 0x0072ac38 LAB_00d169f3: MOV R14,qword ptr [RBP + -0x1d0] LEA RDI,[RBP + -0x1a8] CALL 0x0078d508 JMP 0x00d167cb LAB_00d16a0b: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00d16a6e CALL 0x007881d4 LAB_00d16a1f: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00d16a6e CALL 0x007881b8 LAB_00d16a33: JMP 0x00d16a37 LAB_00d16a37: MOV RBX,RAX LEA RDI,[RBP + -0x1a8] CALL 0x0078d508 JMP 0x00d16a57 LAB_00d16a57: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00d16a6e MOV RDI,RBX CALL 0x00729200 LAB_00d16a6e: CALL 0x007286b0
/* fil_tablespace_iterate(dict_table_t*, unsigned long, AbstractCallback&) */ int fil_tablespace_iterate(dict_table_t *param_1,ulong param_2,AbstractCallback *param_3) { byte bVar1; char cVar2; uint uVar3; int iVar4; char *pcVar5; size_t sVar6; uchar *__ptr; long *plVar7; long lVar8; logger *this; fil_space_crypt_t *pfVar9; void *pvVar10; long lVar11; int8 uVar12; byte bVar13; size_t extraout_RDX; AbstractCallback *extraout_RDX_00; AbstractCallback *pAVar14; AbstractCallback *pAVar15; ulong uVar16; long in_FS_OFFSET; int1 auVar17 [16]; char *local_1c8; char *local_1c0; uint local_1b8; AbstractCallback local_1b1; char *local_1b0; size_t local_1a8; char *local_1a0; int8 local_198; long local_190; long local_188; ulong local_180; void *local_178; fil_space_crypt_t *local_170; void *local_168; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 == 0) { if (*(long *)(in_FS_OFFSET + 0x28) != local_38) goto LAB_00d16a6e; fil_tablespace_iterate(param_1,0,param_3); pAVar14 = extraout_RDX_00; pAVar15 = (AbstractCallback *)param_2; LAB_00d16a1f: if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { uVar12 = fil_tablespace_iterate(param_1,(ulong)pAVar15,pAVar14); /* catch() { ... } // from try @ 00d169eb with catch @ 00d16a33 */ /* catch() { ... } // from try @ 00d168d7 with catch @ 00d16a37 */ ib::info::~info((info *)&local_1b0); if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { /* WARNING: Subroutine does not return */ _Unwind_Resume(uVar12); } } } else { dict_get_and_save_data_dir_path(param_1); if (((byte)param_1[0x40] & 0x40) == 0) { lVar11 = 0; } else { lVar11 = *(long *)(param_1 + 0x28); } pcVar5 = *(char **)(param_1 + 0x10); local_1a8 = strlen(pcVar5); local_1b0 = pcVar5; pcVar5 = (char *)fil_make_filepath(lVar11,&local_1b0,1,lVar11 != 0); local_1c8 = pcVar5; if (pcVar5 == (char *)0x0) { iVar4 = 0xd; } else { local_1c0 = (char *)0x0; local_1c0 = (char *)(**(code **)(PSI_server + 0x148)) (&local_1b0,innodb_data_file_key,2,pcVar5,&local_1c0); if (local_1c0 != (char *)0x0) { (**(code **)(PSI_server + 0x1f0)) (local_1c0, "/workspace/llm4binary/github2025/eloqsql/storage/innobase/row/row0import.cc", 0x1021); } pAVar15 = (AbstractCallback *)0x33; uVar3 = os_file_create_simple_no_error_handling_func (pcVar5,0x33,0x1bc,false,(bool *)&local_1b1); sVar6 = extraout_RDX; if (local_1c0 != (char *)0x0) { pAVar15 = (AbstractCallback *)0x0; if (local_1b1 != (AbstractCallback)0x0) { pAVar15 = &local_1b1; } sVar6 = (**(code **)(PSI_server + 0x1f8))(); } if (local_1b1 == (AbstractCallback)0x0) { os_file_get_last_error(true); memset((logger *)&local_1b0,0,0x178); ib::logger::logger((logger *)&local_1b0); local_1c0 = "Trying to import a tablespace, but could not open the tablespace file "; /* try { // try from 00d16662 to 00d16678 has its CatchHandler @ 00d16a48 */ this = ib::logger::operator<<((logger *)&local_1b0,&local_1c0); ib::logger::operator<<(this,&local_1c8); fil_tablespace_iterate((dict_table_t *)&local_1b0,(ulong)&local_1c8,&local_1b1); iVar4 = 0x2a; } else { *(uint *)(param_3 + 0x10) = uVar3; *(size_t *)(param_3 + 0x18) = sVar6; *(char **)(param_3 + 0x20) = pcVar5; param_1 = (dict_table_t *)(ulong)uVar3; auVar17 = os_file_get_size(uVar3); pAVar14 = auVar17._8_8_; lVar11 = auVar17._0_8_; if (lVar11 == -1) goto LAB_00d16a1f; __ptr = (uchar *)memalign(srv_page_size,srv_page_size * 2); local_1b0 = (char *)((ulong)local_1b0 & 0xffffffff00000000); plVar7 = (long *)ut_allocator<unsigned_char,true>::allocate ((ut_allocator<unsigned_char,true> *)&local_1b0,0xa0,(uchar *)0x0 ,0x28,true,false); plVar7[6] = (long)__ptr; *plVar7 = -1; *(int4 *)((long)plVar7 + 0x44) = 0x20000001; plVar7[2] = 0; *(int4 *)(plVar7 + 0xd) = 0; *(int4 *)((long)plVar7 + 0x6c) = 0; uVar16 = srv_page_size; lVar8 = (**(code **)(PSI_server + 0x150))(&local_1b0,sVar6,6); local_1b8 = uVar3; if (lVar8 == 0) { iVar4 = os_file_read_no_error_handling_func ((IORequest *)IORequestReadPartial,uVar3,__ptr,0,uVar16,(ulong *)0x0); } else { (**(code **)(PSI_server + 0x210)) (lVar8,uVar16, "/workspace/llm4binary/github2025/eloqsql/storage/innobase/row/row0import.cc"); iVar4 = os_file_read_no_error_handling_func ((IORequest *)IORequestReadPartial,uVar3,__ptr,0,uVar16,(ulong *)0x0); (**(code **)(PSI_server + 0x218))(lVar8,uVar16); } if ((iVar4 == 0) && (iVar4 = (**(code **)(*(long *)param_3 + 0x10))(param_3,lVar11,plVar7), iVar4 == 0)) { *plVar7 = *(long *)(param_3 + 0x30) << 0x20; uVar16 = 0; if (*(ulong *)(param_3 + 8) != 0) { bVar13 = 1; do { bVar1 = bVar13 & 0x1f; bVar13 = bVar13 + 1; uVar3 = (int)uVar16 + 0x20000000; uVar16 = (ulong)uVar3; } while ((ulong)(uint)(0x200 << bVar1) < *(ulong *)(param_3 + 8)); *(uint *)(plVar7 + 8) = (*(uint *)(plVar7 + 8) & 0x1fffffff) + uVar3; uVar16 = *(ulong *)(param_3 + 8); param_2 = 1; } pfVar9 = (fil_space_crypt_t *)fil_space_read_crypt_data(uVar16,__ptr); uVar16 = srv_page_size; local_180 = param_2 >> (1 < param_2 && pfVar9 != (fil_space_crypt_t *)0x0); local_1b0 = (char *)CONCAT44(local_1b0._4_4_,local_1b8); local_198 = 0; local_1a0 = local_1c8; lVar8 = local_180 + 1 << ((byte)srv_page_size_shift & 0x3f); local_1a8 = sVar6; local_190 = lVar11; local_188 = lVar11; local_170 = pfVar9; pvVar10 = (void *)memalign(srv_page_size,lVar8); local_178 = pvVar10; if (pfVar9 == (fil_space_crypt_t *)0x0) { local_168 = (void *)0x0; } else { local_168 = (void *)memalign(uVar16,lVar8); } if (0x1fffffff < *(uint *)(plVar7 + 8)) { plVar7[6] = (long)pvVar10; plVar7[7] = uVar16 + (long)pvVar10; } iVar4 = (**(code **)(*(long *)param_3 + 0x20))(param_3,(logger *)&local_1b0,plVar7); if (local_170 != (fil_space_crypt_t *)0x0) { fil_space_destroy_crypt_data(&local_170); } free(local_168); free(local_178); if (iVar4 == 0) { memset((logger *)&local_1b0,0,0x178); ib::logger::logger((logger *)&local_1b0); local_1c0 = "Sync to disk"; /* try { // try from 00d168d7 to 00d168de has its CatchHandler @ 00d16a37 */ ib::logger::operator<<((logger *)&local_1b0,&local_1c0); ib::info::~info((info *)&local_1b0); lVar11 = (**(code **)(PSI_server + 0x150))(&local_1b0,sVar6,0x10); uVar3 = local_1b8; if (lVar11 == 0) { cVar2 = os_file_flush_func(local_1b8); } else { (**(code **)(PSI_server + 0x210)) (lVar11,0, "/workspace/llm4binary/github2025/eloqsql/storage/innobase/row/row0import.cc" ,0x1087); cVar2 = os_file_flush_func(uVar3); (**(code **)(PSI_server + 0x218))(lVar11); } if (cVar2 == '\0') { memset((logger *)&local_1b0,0,0x178); ib::logger::logger((logger *)&local_1b0); local_1c0 = "os_file_flush() failed!"; /* try { // try from 00d1694e to 00d16955 has its CatchHandler @ 00d16a35 */ ib::logger::operator<<((logger *)&local_1b0,&local_1c0); ib::info::~info((info *)&local_1b0); iVar4 = 100; } else { iVar4 = 0; memset((logger *)&local_1b0,0,0x178); ib::logger::logger((logger *)&local_1b0); local_1c0 = "Sync to disk - done!"; /* try { // try from 00d169eb to 00d169f2 has its CatchHandler @ 00d16a33 */ ib::logger::operator<<((logger *)&local_1b0,&local_1c0); ib::info::~info((info *)&local_1b0); } } } lVar11 = (**(code **)(PSI_server + 0x150))(&local_1b0,sVar6,4); if (lVar11 == 0) { os_file_close_func(local_1b8); } else { (**(code **)(PSI_server + 0x210)) (lVar11,0, "/workspace/llm4binary/github2025/eloqsql/storage/innobase/row/row0import.cc", 0x108f); os_file_close_func(local_1b8); (**(code **)(PSI_server + 0x218))(lVar11,0); } free(__ptr); if (local_1c8 != (char *)0x0) { pcVar5 = local_1c8 + -0x18; (**(code **)(PSI_server + 0x3f8)) (*(int4 *)(local_1c8 + -0x18),*(int8 *)(local_1c8 + -8), *(int8 *)(local_1c8 + -0x10)); free(pcVar5); } (**(code **)(PSI_server + 0x3f8))((int)plVar7[-3],plVar7[-1],plVar7[-2]); free(plVar7 + -3); } } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return iVar4; } } LAB_00d16a6e: /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
3,125
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 (&) [11], 0>(char const (&) [11])
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 (&) [11], 0>(char const (&) [11]): 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 0x7f2a3 movq %rbx, %rdi movq %r15, %rsi callq 0x27404 testb %al, %al jne 0x7f276 addq $0x30, %rbx jmp 0x7f258 movq %rbx, %r15 leaq 0x30(%r15), %r12 cmpq 0x8(%r14), %r12 je 0x7f29b movq %r15, %rdi callq 0x43008 movq %r15, %rdi movq %r12, %rsi callq 0x43c6c movq %r12, %r15 jmp 0x7f279 movq %r14, %rdi callq 0x7f2b6 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_EEE5eraseIRA11_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_7F258: mov r13, [r14+8] cmp rbx, r13 jz short loc_7F2A3 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_7F276 add rbx, 30h ; '0' jmp short loc_7F258 loc_7F276: mov r15, rbx loc_7F279: lea r12, [r15+30h] cmp r12, [r14+8] jz short loc_7F29B 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_7F279 loc_7F29B: 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_7F2A3: 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_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_( long long *a1, char *a2) { long long i; // rbx long long v4; // r13 char *v5; // rsi char *j; // r15 for ( i = *a1; ; i += 48LL ) { v4 = a1[1]; if ( i == v4 ) break; v5 = a2; 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); v5 = 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( (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( a1, v5); return i != v4; } } return i != v4; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_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_0017f258: MOV R13,qword ptr [R14 + 0x8] CMP RBX,R13 JZ 0x0017f2a3 MOV RDI,RBX MOV RSI,R15 CALL 0x00127404 TEST AL,AL JNZ 0x0017f276 ADD RBX,0x30 JMP 0x0017f258 LAB_0017f276: MOV R15,RBX LAB_0017f279: LEA R12,[R15 + 0x30] CMP R12,qword ptr [R14 + 0x8] JZ 0x0017f29b MOV RDI,R15 CALL 0x00143008 MOV RDI,R15 MOV RSI,R12 CALL 0x00143c6c MOV R15,R12 JMP 0x0017f279 LAB_0017f29b: MOV RDI,R14 CALL 0x0017f2b6 LAB_0017f2a3: 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_EEE5eraseIRA11_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<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>> *ppVar1; string *psVar2; bool bVar3; string *psVar4; 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; for (psVar4 = *(string **)param_1; psVar2 = *(string **)(param_1 + 8), psVar4 != psVar2; psVar4 = psVar4 + 0x30) { bVar3 = std::operator==(psVar4,param_2); this = (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>> *)psVar4; if (bVar3) goto LAB_0017f279; } LAB_0017f2a3: return psVar4 != psVar2; LAB_0017f279: while (ppVar1 = this + 0x30, ppVar1 != *(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 + 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(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(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_0017f2a3; }
3,126
coro::io_scheduler::process_event_execute(coro::detail::poll_info*, coro::poll_status)
AlayaLite/build_O3/_deps/libcoro-src/src/io_scheduler.cpp
auto io_scheduler::process_event_execute(detail::poll_info* pi, poll_status status) -> void { if (!pi->m_processed) { std::atomic_thread_fence(std::memory_order::acquire); // Its possible the event and the timeout occurred in the same epoll, make sure only one // is ever processed, the other is discarded. pi->m_processed = true; // Given a valid fd always remove it from epoll so the next poll can blindly EPOLL_CTL_ADD. if (pi->m_fd != -1) { epoll_ctl(m_epoll_fd, EPOLL_CTL_DEL, pi->m_fd, nullptr); } // Since this event triggered, remove its corresponding timeout if it has one. if (pi->m_timer_pos.has_value()) { remove_timer_token(pi->m_timer_pos.value()); } pi->m_poll_status = status; while (pi->m_awaiting_coroutine == nullptr) { std::atomic_thread_fence(std::memory_order::acquire); } m_handles_to_resume.emplace_back(pi->m_awaiting_coroutine); } }
O3
cpp
coro::io_scheduler::process_event_execute(coro::detail::poll_info*, coro::poll_status): cmpb $0x0, 0x24(%rsi) je 0x76d3 retq pushq %rbp pushq %r14 pushq %rbx movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movb $0x1, 0x24(%rsi) movl (%rsi), %edx cmpl $-0x1, %edx je 0x76fc movl 0xa8(%rbx), %edi movl $0x2, %esi xorl %ecx, %ecx callq 0x3360 cmpb $0x1, 0x10(%r14) jne 0x770f movq 0x8(%r14), %rsi movq %rbx, %rdi callq 0x77aa movl %ebp, 0x20(%r14) leaq 0x18(%r14), %rsi cmpq $0x0, 0x18(%r14) jne 0x7724 cmpq $0x0, (%rsi) je 0x771e addq $0x238, %rbx # imm = 0x238 movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0x51a6 nop
_ZN4coro12io_scheduler21process_event_executeEPNS_6detail9poll_infoENS_11poll_statusE: cmp byte ptr [rsi+24h], 0 jz short loc_76D3 retn loc_76D3: push rbp push r14 push rbx mov ebp, edx mov r14, rsi mov rbx, rdi mov byte ptr [rsi+24h], 1 mov edx, [rsi] cmp edx, 0FFFFFFFFh jz short loc_76FC mov edi, [rbx+0A8h] mov esi, 2 xor ecx, ecx call _epoll_ctl loc_76FC: cmp byte ptr [r14+10h], 1 jnz short loc_770F mov rsi, [r14+8] mov rdi, rbx call _ZN4coro12io_scheduler18remove_timer_tokenESt17_Rb_tree_iteratorISt4pairIKNSt6chrono10time_pointINS3_3_V212steady_clockENS3_8durationIlSt5ratioILl1ELl1000000000EEEEEEPNS_6detail9poll_infoEEE; coro::io_scheduler::remove_timer_token(std::_Rb_tree_iterator<std::pair<std::chrono::time_point<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const,coro::detail::poll_info *>>) loc_770F: mov [r14+20h], ebp lea rsi, [r14+18h] cmp qword ptr [r14+18h], 0 jnz short loc_7724 loc_771E: cmp qword ptr [rsi], 0 jz short loc_771E loc_7724: add rbx, 238h mov rdi, rbx pop rbx pop r14 pop rbp jmp _ZNSt6vectorINSt7__n486116coroutine_handleIvEESaIS2_EE12emplace_backIJRS2_EEES6_DpOT_; std::vector<std::__n4861::coroutine_handle<void>>::emplace_back<std::__n4861::coroutine_handle<void>&>(std::__n4861::coroutine_handle<void>&)
long long coro::io_scheduler::process_event_execute(long long a1, unsigned int *a2, unsigned int a3) { long long v5; // rdx _QWORD *v6; // rsi long long result; // rax if ( !*((_BYTE *)a2 + 36) ) { *((_BYTE *)a2 + 36) = 1; v5 = *a2; if ( (_DWORD)v5 != -1 ) epoll_ctl(*(unsigned int *)(a1 + 168), 2LL, v5, 0LL); if ( *((_BYTE *)a2 + 16) == 1 ) coro::io_scheduler::remove_timer_token(a1, *((_QWORD *)a2 + 1)); a2[8] = a3; v6 = a2 + 6; while ( !*v6 ) ; return std::vector<std::__n4861::coroutine_handle<void>>::emplace_back<std::__n4861::coroutine_handle<void>&>( a1 + 568, v6); } return result; }
process_event_execute: CMP byte ptr [RSI + 0x24],0x0 JZ 0x001076d3 RET LAB_001076d3: PUSH RBP PUSH R14 PUSH RBX MOV EBP,EDX MOV R14,RSI MOV RBX,RDI MOV byte ptr [RSI + 0x24],0x1 MOV EDX,dword ptr [RSI] CMP EDX,-0x1 JZ 0x001076fc MOV EDI,dword ptr [RBX + 0xa8] MOV ESI,0x2 XOR ECX,ECX CALL 0x00103360 LAB_001076fc: CMP byte ptr [R14 + 0x10],0x1 JNZ 0x0010770f MOV RSI,qword ptr [R14 + 0x8] MOV RDI,RBX CALL 0x001077aa LAB_0010770f: MOV dword ptr [R14 + 0x20],EBP LEA RSI,[R14 + 0x18] CMP qword ptr [R14 + 0x18],0x0 JNZ 0x00107724 LAB_0010771e: CMP qword ptr [RSI],0x0 JZ 0x0010771e LAB_00107724: ADD RBX,0x238 MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x001051a6
/* coro::io_scheduler::process_event_execute(coro::detail::poll_info*, coro::poll_status) */ void __thiscall coro::io_scheduler::process_event_execute(io_scheduler *this,int *param_1,int param_3) { long lVar1; if ((char)param_1[9] == '\0') { *(int1 *)(param_1 + 9) = 1; if (*param_1 != -1) { epoll_ctl(*(int *)(this + 0xa8),2,*param_1,(epoll_event *)0x0); } if ((char)param_1[4] == '\x01') { remove_timer_token(this,*(int8 *)(param_1 + 2)); } param_1[8] = param_3; lVar1 = *(long *)(param_1 + 6); while (lVar1 == 0) { lVar1 = *(long *)(param_1 + 6); } std:: vector<std::__n4861::coroutine_handle<void>,std::allocator<std::__n4861::coroutine_handle<void>>> ::emplace_back<std::__n4861::coroutine_handle<void>&> ((vector<std::__n4861::coroutine_handle<void>,std::allocator<std::__n4861::coroutine_handle<void>>> *)(this + 0x238),(coroutine_handle *)(param_1 + 6)); return; } return; }
3,127
ma_tls_read
eloqsql/libmariadb/libmariadb/secure/openssl.c
ssize_t ma_tls_read(MARIADB_TLS *ctls, const uchar* buffer, size_t length) { int rc; MARIADB_PVIO *pvio= ctls->pvio; while ((rc= SSL_read((SSL *)ctls->ssl, (void *)buffer, (int)length)) <= 0) { int error= SSL_get_error((SSL *)ctls->ssl, rc); if (error != SSL_ERROR_WANT_READ) break; if (pvio->methods->wait_io_or_timeout(pvio, TRUE, pvio->mysql->options.read_timeout) < 1) break; } if (rc <= 0) { MYSQL *mysql= SSL_get_app_data(ctls->ssl); ma_tls_set_error(mysql); } return rc; }
O3
c
ma_tls_read: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r12 movq %rdi, %r15 movq 0x8(%rdi), %r13 movq 0x10(%r15), %rdi movq %r12, %rsi movl %ebx, %edx callq 0x3ad80 movl %eax, %r14d testl %eax, %eax jg 0x6c728 movq 0x10(%r15), %rdi movl %r14d, %esi callq 0x3adc0 cmpl $0x2, %eax jne 0x6c715 movq 0x40(%r13), %rax movq 0x48(%r13), %rcx movl 0x394(%rax), %edx movq %r13, %rdi movl $0x1, %esi callq *0x30(%rcx) testl %eax, %eax jg 0x6c6d2 movq 0x10(%r15), %rdi xorl %esi, %esi callq 0x3a3b0 movq %rax, %rdi callq 0x6c4a8 movslq %r14d, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ma_tls_read: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdx mov r12, rsi mov r15, rdi mov r13, [rdi+8] loc_6C6D2: mov rdi, [r15+10h] mov rsi, r12 mov edx, ebx call _SSL_read mov r14d, eax test eax, eax jg short loc_6C728 mov rdi, [r15+10h] mov esi, r14d call _SSL_get_error cmp eax, 2 jnz short loc_6C715 mov rax, [r13+40h] mov rcx, [r13+48h] mov edx, [rax+394h] mov rdi, r13 mov esi, 1 call qword ptr [rcx+30h] test eax, eax jg short loc_6C6D2 loc_6C715: mov rdi, [r15+10h] xor esi, esi call _SSL_get_ex_data mov rdi, rax call ma_tls_set_error loc_6C728: movsxd rax, r14d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ma_tls_read(long long a1, long long a2, unsigned int a3) { long long v4; // r13 int v5; // eax int v6; // r14d long long *v7; // rax v4 = *(_QWORD *)(a1 + 8); while ( 1 ) { v5 = SSL_read(*(_QWORD *)(a1 + 16), a2, a3); v6 = v5; if ( v5 > 0 ) break; if ( (unsigned int)SSL_get_error(*(_QWORD *)(a1 + 16), (unsigned int)v5) != 2 || (*(int ( **)(long long, long long, _QWORD))(*(_QWORD *)(v4 + 72) + 48LL))( v4, 1LL, *(unsigned int *)(*(_QWORD *)(v4 + 64) + 916LL)) <= 0 ) { v7 = (long long *)SSL_get_ex_data(*(_QWORD *)(a1 + 16), 0LL); ma_tls_set_error(v7); return v6; } } return v6; }
ma_tls_read: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDX MOV R12,RSI MOV R15,RDI MOV R13,qword ptr [RDI + 0x8] LAB_0016c6d2: MOV RDI,qword ptr [R15 + 0x10] MOV RSI,R12 MOV EDX,EBX CALL 0x0013ad80 MOV R14D,EAX TEST EAX,EAX JG 0x0016c728 MOV RDI,qword ptr [R15 + 0x10] MOV ESI,R14D CALL 0x0013adc0 CMP EAX,0x2 JNZ 0x0016c715 MOV RAX,qword ptr [R13 + 0x40] MOV RCX,qword ptr [R13 + 0x48] MOV EDX,dword ptr [RAX + 0x394] MOV RDI,R13 MOV ESI,0x1 CALL qword ptr [RCX + 0x30] TEST EAX,EAX JG 0x0016c6d2 LAB_0016c715: MOV RDI,qword ptr [R15 + 0x10] XOR ESI,ESI CALL 0x0013a3b0 MOV RDI,RAX CALL 0x0016c4a8 LAB_0016c728: MOVSXD RAX,R14D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long ma_tls_read(long param_1,void *param_2,int param_3) { long lVar1; int ret_code; int iVar2; void *pvVar3; lVar1 = *(long *)(param_1 + 8); do { ret_code = SSL_read(*(SSL **)(param_1 + 0x10),param_2,param_3); if (0 < ret_code) goto LAB_0016c728; iVar2 = SSL_get_error(*(SSL **)(param_1 + 0x10),ret_code); if (iVar2 != 2) break; iVar2 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x30)) (lVar1,1,*(int4 *)(*(long *)(lVar1 + 0x40) + 0x394)); } while (0 < iVar2); pvVar3 = SSL_get_ex_data(*(SSL **)(param_1 + 0x10),0); ma_tls_set_error(pvVar3); LAB_0016c728: return (long)ret_code; }
3,128
flush_cached_blocks
eloqsql/storage/maria/ma_pagecache.c
static int flush_cached_blocks(PAGECACHE *pagecache, PAGECACHE_FILE *file, PAGECACHE_BLOCK_LINK **cache, PAGECACHE_BLOCK_LINK **end, enum flush_type type, int *first_errno) { int rc= PCFLUSH_OK; my_bool error; uint count= (uint) (end-cache); DBUG_ENTER("flush_cached_blocks"); *first_errno= 0; /* Don't lock the cache during the flush */ pagecache_pthread_mutex_unlock(&pagecache->cache_lock); /* As all blocks referred in 'cache' are marked by PCBLOCK_IN_FLUSH we are guaranteed that no thread will change them */ qsort((uchar*) cache, count, sizeof(*cache), (qsort_cmp) cmp_sec_link); pagecache_pthread_mutex_lock(&pagecache->cache_lock); for (; cache != end; cache++) { PAGECACHE_BLOCK_LINK *block= *cache; /* In the case of non_transactional tables we want to flush also block pinned with reads. This is becasue we may have other threads reading the block during flush, as non transactional tables can have many readers while the one writer is doing the flush. We don't want to do flush pinned blocks during checkpoint. We detect the checkpoint case by checking if type is LAZY. */ if ((type == FLUSH_KEEP_LAZY && block->pins) || block->wlocks) { KEYCACHE_DBUG_PRINT("flush_cached_blocks", ("block: %u (%p) pinned", PCBLOCK_NUMBER(pagecache, block), block)); DBUG_PRINT("info", ("block: %u (%p) pinned", PCBLOCK_NUMBER(pagecache, block), block)); PCBLOCK_INFO(block); /* undo the mark put by flush_pagecache_blocks_int(): */ block->status&= ~PCBLOCK_IN_FLUSH; rc|= PCFLUSH_PINNED; DBUG_PRINT("warning", ("Page pinned")); unreg_request(pagecache, block, 1); if (!*first_errno) *first_errno= HA_ERR_INTERNAL_ERROR; continue; } if (make_lock_and_pin(pagecache, block, PAGECACHE_LOCK_READ, PAGECACHE_PIN, FALSE)) DBUG_ASSERT(0); KEYCACHE_PRINT("flush_cached_blocks", ("block: %u (%p) to be flushed", PCBLOCK_NUMBER(pagecache, block), block)); DBUG_PRINT("info", ("block: %u (%p) to be flushed", PCBLOCK_NUMBER(pagecache, block), block)); PCBLOCK_INFO(block); /** @todo IO If page is contiguous with next page to flush, group flushes in one single my_pwrite(). */ /** It is important to use block->hash_link->file below and not 'file', as the first one is right and the second may have different out-of-date content (see StaleFilePointersInFlush in ma_checkpoint.c). @todo change argument of functions to be File. */ pagecache_pthread_mutex_unlock(&pagecache->cache_lock); error= pagecache_fwrite(pagecache, &block->hash_link->file, block->buffer, block->hash_link->pageno, block->type, pagecache->readwrite_flags); pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (make_lock_and_pin(pagecache, block, PAGECACHE_LOCK_READ_UNLOCK, PAGECACHE_UNPIN, FALSE)) DBUG_ASSERT(0); pagecache->global_cache_write++; if (error) { block->status|= PCBLOCK_ERROR; block->error= (int16) my_errno; my_debug_put_break_here(); if (!*first_errno) *first_errno= my_errno ? my_errno : -1; rc|= PCFLUSH_ERROR; } /* Let to proceed for possible waiting requests to write to the block page. It might happen only during an operation to resize the key cache. */ if (block->wqueue[COND_FOR_SAVED].last_thread) wqueue_release_queue(&block->wqueue[COND_FOR_SAVED]); /* type will never be FLUSH_IGNORE_CHANGED here */ if (! (type == FLUSH_KEEP || type == FLUSH_KEEP_LAZY || type == FLUSH_FORCE_WRITE)) { if (!free_block(pagecache, block, 1)) { pagecache->blocks_changed--; pagecache->global_blocks_changed--; } else { block->status&= ~PCBLOCK_IN_FLUSH; link_to_file_list(pagecache, block, file, 1); } } else { block->status&= ~PCBLOCK_IN_FLUSH; link_to_file_list(pagecache, block, file, 1); unreg_request(pagecache, block, 1); } } DBUG_RETURN(rc); }
O0
c
flush_cached_blocks: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq %r9, -0x30(%rbp) movl $0x0, -0x34(%rbp) movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax sarq $0x3, %rax movl %eax, -0x3c(%rbp) movq -0x30(%rbp), %rax movl $0x0, (%rax) movq -0x8(%rbp), %rdi addq $0xc8, %rdi callq 0x2c510 movq -0x18(%rbp), %rdi movl -0x3c(%rbp), %eax movl %eax, %esi movl $0x8, %edx leaq 0x2c8(%rip), %rcx # 0x31960 callq 0x2a590 movq -0x8(%rbp), %rdi addq $0xc8, %rdi leaq 0x11fd72(%rip), %rsi # 0x151421 movl $0x12a3, %edx # imm = 0x12A3 callq 0x2c4a0 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax je 0x3194e movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x48(%rbp) cmpl $0x4, -0x24(%rbp) jne 0x316e2 movq -0x48(%rbp), %rax cmpl $0x0, 0x64(%rax) jne 0x316ec movq -0x48(%rbp), %rax cmpl $0x0, 0x68(%rax) je 0x3173c jmp 0x316ee jmp 0x316f0 jmp 0x316f2 jmp 0x316f4 jmp 0x316f6 jmp 0x316f8 movq -0x48(%rbp), %rax movzwl 0x74(%rax), %ecx andl $-0x11, %ecx movw %cx, 0x74(%rax) movl -0x34(%rbp), %eax orl $0x2, %eax movl %eax, -0x34(%rbp) jmp 0x31712 movq -0x8(%rbp), %rdi movq -0x48(%rbp), %rsi movl $0x1, %edx callq 0x2d400 movq -0x30(%rbp), %rax cmpl $0x0, (%rax) jne 0x31737 movq -0x30(%rbp), %rax movl $0x7a, (%rax) jmp 0x3193d movq -0x8(%rbp), %rdi movq -0x48(%rbp), %rsi movl $0x3, %edx movl $0x2, %ecx xorl %r8d, %r8d callq 0x2d260 cmpb $0x0, %al je 0x31760 jmp 0x3175c jmp 0x3175e jmp 0x31760 jmp 0x31762 jmp 0x31764 jmp 0x31766 jmp 0x31768 movq -0x8(%rbp), %rdi addq $0xc8, %rdi callq 0x2c510 movq -0x8(%rbp), %rdi movq -0x48(%rbp), %rax movq 0x20(%rax), %rsi addq $0x18, %rsi movq -0x48(%rbp), %rax movq 0x30(%rax), %rdx movq -0x48(%rbp), %rax movq 0x20(%rax), %rax movq 0x60(%rax), %rcx movq -0x48(%rbp), %rax movl 0x7c(%rax), %r8d movq -0x8(%rbp), %rax movq 0x198(%rax), %r9 callq 0x2f6b0 movb %al, -0x35(%rbp) movq -0x8(%rbp), %rdi addq $0xc8, %rdi leaq 0x11fc58(%rip), %rsi # 0x151421 movl $0x12dd, %edx # imm = 0x12DD callq 0x2c4a0 movq -0x8(%rbp), %rdi movq -0x48(%rbp), %rsi movl $0x5, %edx movl $0x3, %ecx xorl %r8d, %r8d callq 0x2d260 cmpb $0x0, %al je 0x317f7 jmp 0x317f3 jmp 0x317f5 jmp 0x317f7 movq -0x8(%rbp), %rax movq 0x178(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x178(%rax) cmpb $0x0, -0x35(%rbp) je 0x31871 movq -0x48(%rbp), %rax movzwl 0x74(%rax), %ecx orl $0x1, %ecx movw %cx, 0x74(%rax) callq 0xf6090 movl (%rax), %eax movw %ax, %cx movq -0x48(%rbp), %rax movw %cx, 0x76(%rax) jmp 0x31836 movq -0x30(%rbp), %rax cmpl $0x0, (%rax) jne 0x31868 callq 0xf6090 cmpl $0x0, (%rax) je 0x31855 callq 0xf6090 movl (%rax), %eax movl %eax, -0x4c(%rbp) jmp 0x3185f movl $0xffffffff, %eax # imm = 0xFFFFFFFF movl %eax, -0x4c(%rbp) jmp 0x3185f movl -0x4c(%rbp), %ecx movq -0x30(%rbp), %rax movl %ecx, (%rax) movl -0x34(%rbp), %eax orl $0x1, %eax movl %eax, -0x34(%rbp) movq -0x48(%rbp), %rax cmpq $0x0, 0x50(%rax) je 0x3188d movq -0x48(%rbp), %rdi addq $0x48, %rdi addq $0x8, %rdi callq 0xff6f0 cmpl $0x0, -0x24(%rbp) je 0x31904 cmpl $0x4, -0x24(%rbp) je 0x31904 cmpl $0x3, -0x24(%rbp) je 0x31904 movq -0x8(%rbp), %rdi movq -0x48(%rbp), %rsi movl $0x1, %edx callq 0x30a10 cmpb $0x0, %al jne 0x318dd 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) jmp 0x31902 movq -0x48(%rbp), %rax movzwl 0x74(%rax), %ecx andl $-0x11, %ecx movw %cx, 0x74(%rax) movq -0x8(%rbp), %rdi movq -0x48(%rbp), %rsi movq -0x10(%rbp), %rdx movl $0x1, %ecx callq 0x30c70 jmp 0x3193b movq -0x48(%rbp), %rax movzwl 0x74(%rax), %ecx andl $-0x11, %ecx movw %cx, 0x74(%rax) movq -0x8(%rbp), %rdi movq -0x48(%rbp), %rsi movq -0x10(%rbp), %rdx movl $0x1, %ecx callq 0x30c70 movq -0x8(%rbp), %rdi movq -0x48(%rbp), %rsi movl $0x1, %edx callq 0x2d400 jmp 0x3193d movq -0x18(%rbp), %rax addq $0x8, %rax movq %rax, -0x18(%rbp) jmp 0x316b9 jmp 0x31950 movl -0x34(%rbp), %eax movl %eax, -0x50(%rbp) movl -0x50(%rbp), %eax addq $0x50, %rsp popq %rbp retq nop
flush_cached_blocks: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov [rbp+var_30], r9 mov [rbp+var_34], 0 mov rax, [rbp+var_20] mov rcx, [rbp+var_18] sub rax, rcx sar rax, 3 mov [rbp+var_3C], eax mov rax, [rbp+var_30] mov dword ptr [rax], 0 mov rdi, [rbp+var_8] add rdi, 0C8h call inline_mysql_mutex_unlock mov rdi, [rbp+var_18] mov eax, [rbp+var_3C] mov esi, eax mov edx, 8 lea rcx, cmp_sec_link call _qsort mov rdi, [rbp+var_8] add rdi, 0C8h lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 12A3h call inline_mysql_mutex_lock loc_316B9: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jz loc_3194E mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_48], rax cmp [rbp+var_24], 4 jnz short loc_316E2 mov rax, [rbp+var_48] cmp dword ptr [rax+64h], 0 jnz short loc_316EC loc_316E2: mov rax, [rbp+var_48] cmp dword ptr [rax+68h], 0 jz short loc_3173C loc_316EC: jmp short $+2 loc_316EE: jmp short $+2 loc_316F0: jmp short $+2 loc_316F2: jmp short $+2 loc_316F4: jmp short $+2 loc_316F6: jmp short $+2 loc_316F8: mov rax, [rbp+var_48] movzx ecx, word ptr [rax+74h] and ecx, 0FFFFFFEFh mov [rax+74h], cx mov eax, [rbp+var_34] or eax, 2 mov [rbp+var_34], eax jmp short $+2 loc_31712: mov rdi, [rbp+var_8] mov rsi, [rbp+var_48] mov edx, 1 call unreg_request mov rax, [rbp+var_30] cmp dword ptr [rax], 0 jnz short loc_31737 mov rax, [rbp+var_30] mov dword ptr [rax], 7Ah ; 'z' loc_31737: jmp loc_3193D loc_3173C: mov rdi, [rbp+var_8] mov rsi, [rbp+var_48] mov edx, 3 mov ecx, 2 xor r8d, r8d call make_lock_and_pin cmp al, 0 jz short loc_31760 jmp short $+2 loc_3175C: jmp short $+2 loc_3175E: jmp short $+2 loc_31760: jmp short $+2 loc_31762: jmp short $+2 loc_31764: jmp short $+2 loc_31766: jmp short $+2 loc_31768: mov rdi, [rbp+var_8] add rdi, 0C8h call inline_mysql_mutex_unlock mov rdi, [rbp+var_8] mov rax, [rbp+var_48] mov rsi, [rax+20h] add rsi, 18h mov rax, [rbp+var_48] mov rdx, [rax+30h] mov rax, [rbp+var_48] mov rax, [rax+20h] mov rcx, [rax+60h] mov rax, [rbp+var_48] mov r8d, [rax+7Ch] mov rax, [rbp+var_8] mov r9, [rax+198h] call pagecache_fwrite mov [rbp+var_35], al mov rdi, [rbp+var_8] add rdi, 0C8h lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 12DDh call inline_mysql_mutex_lock mov rdi, [rbp+var_8] mov rsi, [rbp+var_48] mov edx, 5 mov ecx, 3 xor r8d, r8d call make_lock_and_pin cmp al, 0 jz short loc_317F7 jmp short $+2 loc_317F3: jmp short $+2 loc_317F5: jmp short $+2 loc_317F7: mov rax, [rbp+var_8] mov rcx, [rax+178h] add rcx, 1 mov [rax+178h], rcx cmp [rbp+var_35], 0 jz short loc_31871 mov rax, [rbp+var_48] movzx ecx, word ptr [rax+74h] or ecx, 1 mov [rax+74h], cx call _my_thread_var mov eax, [rax] mov cx, ax mov rax, [rbp+var_48] mov [rax+76h], cx jmp short $+2 loc_31836: mov rax, [rbp+var_30] cmp dword ptr [rax], 0 jnz short loc_31868 call _my_thread_var cmp dword ptr [rax], 0 jz short loc_31855 call _my_thread_var mov eax, [rax] mov [rbp+var_4C], eax jmp short loc_3185F loc_31855: mov eax, 0FFFFFFFFh mov [rbp+var_4C], eax jmp short $+2 loc_3185F: mov ecx, [rbp+var_4C] mov rax, [rbp+var_30] mov [rax], ecx loc_31868: mov eax, [rbp+var_34] or eax, 1 mov [rbp+var_34], eax loc_31871: mov rax, [rbp+var_48] cmp qword ptr [rax+50h], 0 jz short loc_3188D mov rdi, [rbp+var_48] add rdi, 48h ; 'H' add rdi, 8 call wqueue_release_queue loc_3188D: cmp [rbp+var_24], 0 jz short loc_31904 cmp [rbp+var_24], 4 jz short loc_31904 cmp [rbp+var_24], 3 jz short loc_31904 mov rdi, [rbp+var_8] mov rsi, [rbp+var_48] mov edx, 1 call free_block cmp al, 0 jnz short loc_318DD 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 jmp short loc_31902 loc_318DD: mov rax, [rbp+var_48] movzx ecx, word ptr [rax+74h] and ecx, 0FFFFFFEFh mov [rax+74h], cx mov rdi, [rbp+var_8] mov rsi, [rbp+var_48] mov rdx, [rbp+var_10] mov ecx, 1 call link_to_file_list loc_31902: jmp short loc_3193B loc_31904: mov rax, [rbp+var_48] movzx ecx, word ptr [rax+74h] and ecx, 0FFFFFFEFh mov [rax+74h], cx mov rdi, [rbp+var_8] mov rsi, [rbp+var_48] mov rdx, [rbp+var_10] mov ecx, 1 call link_to_file_list mov rdi, [rbp+var_8] mov rsi, [rbp+var_48] mov edx, 1 call unreg_request loc_3193B: jmp short $+2 loc_3193D: mov rax, [rbp+var_18] add rax, 8 mov [rbp+var_18], rax jmp loc_316B9 loc_3194E: jmp short $+2 loc_31950: mov eax, [rbp+var_34] mov [rbp+var_50], eax mov eax, [rbp+var_50] add rsp, 50h pop rbp retn
long long flush_cached_blocks(_QWORD *a1, long long a2, long long *a3, long long *a4, int a5, int *a6) { int v7; // [rsp+4h] [rbp-4Ch] long long v8; // [rsp+8h] [rbp-48h] unsigned int v9; // [rsp+14h] [rbp-3Ch] char v10; // [rsp+1Bh] [rbp-35h] unsigned int v11; // [rsp+1Ch] [rbp-34h] long long *v15; // [rsp+38h] [rbp-18h] v15 = a3; v11 = 0; v9 = a4 - a3; *a6 = 0; inline_mysql_mutex_unlock((long long)(a1 + 25)); qsort(v15, v9, 8LL, cmp_sec_link); inline_mysql_mutex_lock( (long long)(a1 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x12A3u); while ( v15 != a4 ) { v8 = *v15; if ( a5 == 4 && *(_DWORD *)(v8 + 100) || *(_DWORD *)(v8 + 104) ) { *(_WORD *)(v8 + 116) &= ~0x10u; v11 |= 2u; unreg_request(a1, v8, 1); if ( !*a6 ) *a6 = 122; } else { make_lock_and_pin((long long)a1, v8, 3, 2, 0); inline_mysql_mutex_unlock((long long)(a1 + 25)); v10 = pagecache_fwrite( (long long)a1, *(_QWORD *)(v8 + 32) + 24LL, *(_QWORD *)(v8 + 48), *(_QWORD *)(*(_QWORD *)(v8 + 32) + 96LL), *(_DWORD *)(v8 + 124), a1[51]); inline_mysql_mutex_lock( (long long)(a1 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x12DDu); make_lock_and_pin((long long)a1, v8, 5, 3, 0); ++a1[47]; if ( v10 ) { *(_WORD *)(v8 + 116) |= 1u; *(_WORD *)(v8 + 118) = *(_DWORD *)my_thread_var(); if ( !*a6 ) { if ( *(_DWORD *)my_thread_var() ) v7 = *(_DWORD *)my_thread_var(); else v7 = -1; *a6 = v7; } v11 |= 1u; } if ( *(_QWORD *)(v8 + 80) ) wqueue_release_queue(v8 + 80); if ( !a5 || a5 == 4 || a5 == 3 ) { *(_WORD *)(v8 + 116) &= ~0x10u; link_to_file_list(a1, v8, a2, 1); unreg_request(a1, v8, 1); } else if ( free_block(a1, v8, 1) ) { *(_WORD *)(v8 + 116) &= ~0x10u; link_to_file_list(a1, v8, a2, 1); } else { --a1[11]; --a1[45]; } } ++v15; } return v11; }
flush_cached_blocks: PUSH RBP MOV RBP,RSP SUB RSP,0x50 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 dword ptr [RBP + -0x24],R8D MOV qword ptr [RBP + -0x30],R9 MOV dword ptr [RBP + -0x34],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX SAR RAX,0x3 MOV dword ptr [RBP + -0x3c],EAX MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX],0x0 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 CALL 0x0012c510 MOV RDI,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x3c] MOV ESI,EAX MOV EDX,0x8 LEA RCX,[0x131960] CALL 0x0012a590 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 LEA RSI,[0x251421] MOV EDX,0x12a3 CALL 0x0012c4a0 LAB_001316b9: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JZ 0x0013194e MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x48],RAX CMP dword ptr [RBP + -0x24],0x4 JNZ 0x001316e2 MOV RAX,qword ptr [RBP + -0x48] CMP dword ptr [RAX + 0x64],0x0 JNZ 0x001316ec LAB_001316e2: MOV RAX,qword ptr [RBP + -0x48] CMP dword ptr [RAX + 0x68],0x0 JZ 0x0013173c LAB_001316ec: JMP 0x001316ee LAB_001316ee: JMP 0x001316f0 LAB_001316f0: JMP 0x001316f2 LAB_001316f2: JMP 0x001316f4 LAB_001316f4: JMP 0x001316f6 LAB_001316f6: JMP 0x001316f8 LAB_001316f8: MOV RAX,qword ptr [RBP + -0x48] MOVZX ECX,word ptr [RAX + 0x74] AND ECX,0xffffffef MOV word ptr [RAX + 0x74],CX MOV EAX,dword ptr [RBP + -0x34] OR EAX,0x2 MOV dword ptr [RBP + -0x34],EAX JMP 0x00131712 LAB_00131712: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x48] MOV EDX,0x1 CALL 0x0012d400 MOV RAX,qword ptr [RBP + -0x30] CMP dword ptr [RAX],0x0 JNZ 0x00131737 MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX],0x7a LAB_00131737: JMP 0x0013193d LAB_0013173c: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x48] MOV EDX,0x3 MOV ECX,0x2 XOR R8D,R8D CALL 0x0012d260 CMP AL,0x0 JZ 0x00131760 JMP 0x0013175c LAB_0013175c: JMP 0x0013175e LAB_0013175e: JMP 0x00131760 LAB_00131760: JMP 0x00131762 LAB_00131762: JMP 0x00131764 LAB_00131764: JMP 0x00131766 LAB_00131766: JMP 0x00131768 LAB_00131768: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 CALL 0x0012c510 MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RAX + 0x20] ADD RSI,0x18 MOV RAX,qword ptr [RBP + -0x48] MOV RDX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RAX + 0x60] MOV RAX,qword ptr [RBP + -0x48] MOV R8D,dword ptr [RAX + 0x7c] MOV RAX,qword ptr [RBP + -0x8] MOV R9,qword ptr [RAX + 0x198] CALL 0x0012f6b0 MOV byte ptr [RBP + -0x35],AL MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 LEA RSI,[0x251421] MOV EDX,0x12dd CALL 0x0012c4a0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x48] MOV EDX,0x5 MOV ECX,0x3 XOR R8D,R8D CALL 0x0012d260 CMP AL,0x0 JZ 0x001317f7 JMP 0x001317f3 LAB_001317f3: JMP 0x001317f5 LAB_001317f5: JMP 0x001317f7 LAB_001317f7: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x178] ADD RCX,0x1 MOV qword ptr [RAX + 0x178],RCX CMP byte ptr [RBP + -0x35],0x0 JZ 0x00131871 MOV RAX,qword ptr [RBP + -0x48] MOVZX ECX,word ptr [RAX + 0x74] OR ECX,0x1 MOV word ptr [RAX + 0x74],CX CALL 0x001f6090 MOV EAX,dword ptr [RAX] MOV CX,AX MOV RAX,qword ptr [RBP + -0x48] MOV word ptr [RAX + 0x76],CX JMP 0x00131836 LAB_00131836: MOV RAX,qword ptr [RBP + -0x30] CMP dword ptr [RAX],0x0 JNZ 0x00131868 CALL 0x001f6090 CMP dword ptr [RAX],0x0 JZ 0x00131855 CALL 0x001f6090 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4c],EAX JMP 0x0013185f LAB_00131855: MOV EAX,0xffffffff MOV dword ptr [RBP + -0x4c],EAX JMP 0x0013185f LAB_0013185f: MOV ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX],ECX LAB_00131868: MOV EAX,dword ptr [RBP + -0x34] OR EAX,0x1 MOV dword ptr [RBP + -0x34],EAX LAB_00131871: MOV RAX,qword ptr [RBP + -0x48] CMP qword ptr [RAX + 0x50],0x0 JZ 0x0013188d MOV RDI,qword ptr [RBP + -0x48] ADD RDI,0x48 ADD RDI,0x8 CALL 0x001ff6f0 LAB_0013188d: CMP dword ptr [RBP + -0x24],0x0 JZ 0x00131904 CMP dword ptr [RBP + -0x24],0x4 JZ 0x00131904 CMP dword ptr [RBP + -0x24],0x3 JZ 0x00131904 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x48] MOV EDX,0x1 CALL 0x00130a10 CMP AL,0x0 JNZ 0x001318dd 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 JMP 0x00131902 LAB_001318dd: MOV RAX,qword ptr [RBP + -0x48] MOVZX ECX,word ptr [RAX + 0x74] AND ECX,0xffffffef MOV word ptr [RAX + 0x74],CX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x48] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,0x1 CALL 0x00130c70 LAB_00131902: JMP 0x0013193b LAB_00131904: MOV RAX,qword ptr [RBP + -0x48] MOVZX ECX,word ptr [RAX + 0x74] AND ECX,0xffffffef MOV word ptr [RAX + 0x74],CX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x48] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,0x1 CALL 0x00130c70 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x48] MOV EDX,0x1 CALL 0x0012d400 LAB_0013193b: JMP 0x0013193d LAB_0013193d: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x8 MOV qword ptr [RBP + -0x18],RAX JMP 0x001316b9 LAB_0013194e: JMP 0x00131950 LAB_00131950: MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x50],EAX MOV EAX,dword ptr [RBP + -0x50] ADD RSP,0x50 POP RBP RET
uint flush_cached_blocks(long param_1,int8 param_2,long *param_3,long *param_4,int param_5, int *param_6) { long lVar1; char cVar2; int4 *puVar3; int *piVar4; int local_54; uint local_3c; long *local_20; local_3c = 0; *param_6 = 0; inline_mysql_mutex_unlock(param_1 + 200); qsort(param_3,(long)param_4 - (long)param_3 >> 3 & 0xffffffff,8,cmp_sec_link); inline_mysql_mutex_lock (param_1 + 200,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x12a3); for (local_20 = param_3; local_20 != param_4; local_20 = local_20 + 1) { lVar1 = *local_20; if (((param_5 == 4) && (*(int *)(lVar1 + 100) != 0)) || (*(int *)(lVar1 + 0x68) != 0)) { *(ushort *)(lVar1 + 0x74) = *(ushort *)(lVar1 + 0x74) & 0xffef; local_3c = local_3c | 2; unreg_request(param_1,lVar1,1); if (*param_6 == 0) { *param_6 = 0x7a; } } else { make_lock_and_pin(param_1,lVar1,3,2,0); inline_mysql_mutex_unlock(param_1 + 200); cVar2 = pagecache_fwrite(param_1,*(long *)(lVar1 + 0x20) + 0x18,*(int8 *)(lVar1 + 0x30), *(int8 *)(*(long *)(lVar1 + 0x20) + 0x60), *(int4 *)(lVar1 + 0x7c),*(int8 *)(param_1 + 0x198)); inline_mysql_mutex_lock (param_1 + 200, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x12dd); make_lock_and_pin(param_1,lVar1,5,3,0); *(long *)(param_1 + 0x178) = *(long *)(param_1 + 0x178) + 1; if (cVar2 != '\0') { *(ushort *)(lVar1 + 0x74) = *(ushort *)(lVar1 + 0x74) | 1; puVar3 = (int4 *)_my_thread_var(); *(short *)(lVar1 + 0x76) = (short)*puVar3; if (*param_6 == 0) { piVar4 = (int *)_my_thread_var(); if (*piVar4 == 0) { local_54 = -1; } else { piVar4 = (int *)_my_thread_var(); local_54 = *piVar4; } *param_6 = local_54; } local_3c = local_3c | 1; } if (*(long *)(lVar1 + 0x50) != 0) { wqueue_release_queue(lVar1 + 0x50); } if (((param_5 == 0) || (param_5 == 4)) || (param_5 == 3)) { *(ushort *)(lVar1 + 0x74) = *(ushort *)(lVar1 + 0x74) & 0xffef; link_to_file_list(param_1,lVar1,param_2,1); unreg_request(param_1,lVar1,1); } else { cVar2 = free_block(param_1,lVar1,1); if (cVar2 == '\0') { *(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + -1; *(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + -1; } else { *(ushort *)(lVar1 + 0x74) = *(ushort *)(lVar1 + 0x74) & 0xffef; link_to_file_list(param_1,lVar1,param_2,1); } } } } return local_3c; }
3,129
minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/minja.hpp
Value(const json & v) { if (v.is_object()) { auto object = std::make_shared<ObjectType>(); for (auto it = v.begin(); it != v.end(); ++it) { (*object)[it.key()] = it.value(); } object_ = std::move(object); } else if (v.is_array()) { auto array = std::make_shared<ArrayType>(); for (const auto& item : v) { array->push_back(Value(item)); } array_ = array; } else { primitive_ = v; } }
O3
cpp
minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %rsi, %r15 leaq 0x40(%rdi), %r14 movq $0x0, 0x48(%rdi) xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movups %xmm0, 0x10(%rdi) movups %xmm0, 0x20(%rdi) movups %xmm0, 0x30(%rdi) movq %rdi, (%rsp) movb $0x0, 0x40(%rdi) movq %r14, %rdi movl $0x1, %esi callq 0x6b800 movq %r14, %rdi movl $0x1, %esi callq 0x6b800 movzbl (%r15), %eax cmpl $0x2, %eax je 0x9206d cmpl $0x1, %eax jne 0x921c2 movq %r14, 0x8(%rsp) movl $0x30, %edi callq 0x1b8f0 movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000 movabsq $0x100000001, %rcx # imm = 0x100000001 movq %rcx, 0x8(%rax) leaq 0x9d500(%rip), %rcx # 0x12f438 addq $0x10, %rcx movq %rcx, (%rax) movq %rax, %r13 addq $0x10, %r13 xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movq %rax, 0x10(%rsp) movq $0x0, 0x20(%rax) leaq 0x88(%rsp), %rbp movq %r15, (%rbp) movups %xmm0, 0x8(%rbp) movq %rdx, 0x18(%rbp) movq %rbp, %rdi callq 0x928e2 leaq 0x30(%rsp), %rbx leaq 0x68(%rsp), %r14 leaq 0x28(%rsp), %r12 movq %r15, 0x28(%rsp) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x40(%rsp) movq %r12, %rdi callq 0x92c2c movq %rbp, %rdi movq %r12, %rsi callq 0x92954 testb %al, %al jne 0x92215 movq %rbp, %rdi callq 0x925e8 movq %r12, %rdi movq %rax, %rsi callq 0x91ea0 movq %rbp, %rdi callq 0x923f0 movq %r13, %rdi movq %rax, %rsi callq 0x922f4 movq %rax, %rdi movq %r12, %rsi callq 0x924cc movq %r14, %rdi xorl %esi, %esi callq 0x6b800 movq %r14, %rdi callq 0x70bac movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x9200c callq 0x33c02 movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x9201b callq 0x33c02 movq 0x40(%rsp), %rdi testq %rdi, %rdi je 0x9202a callq 0x33c02 movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x92060 movq 0x9ef45(%rip), %rax # 0x130f80 cmpb $0x0, (%rax) je 0x9204b movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x92055 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x92060 movq (%rdi), %rax callq *0x18(%rax) movq %rbp, %rdi callq 0x9259a jmp 0x91f85 movq %r14, 0x8(%rsp) movl $0x28, %edi callq 0x1b8f0 leaq 0x20(%rsp), %rdx movabsq $0x100000001, %rcx # imm = 0x100000001 movq %rcx, 0x8(%rax) leaq 0x9d3f2(%rip), %rcx # 0x12f488 addq $0x10, %rcx movq %rcx, (%rax) movq %rax, %rcx addq $0x10, %rcx xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movq $0x0, 0x20(%rax) movq %rax, (%rdx) movq %rcx, -0x8(%rdx) leaq 0x88(%rsp), %r14 movq %r15, (%r14) movups %xmm0, 0x8(%r14) movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000 movq %rbx, 0x18(%r14) movq %r14, %rdi callq 0x928e2 leaq 0xa8(%rsp), %r13 movq %r15, (%r13) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r13) movq %rbx, 0x18(%r13) movq %r13, %rdi callq 0x92c2c leaq 0x68(%rsp), %r15 leaq 0x28(%rsp), %rbp movq 0x9ee6f(%rip), %rbx # 0x130f80 movq %r14, %rdi movq %r13, %rsi callq 0x92954 testb %al, %al jne 0x921f3 movq %r14, %rdi callq 0x925e8 movq 0x18(%rsp), %r12 movq %rbp, %rdi movq %rax, %rsi callq 0x91ea0 movq %r12, %rdi movq %rbp, %rsi callq 0x93640 movq %r15, %rdi xorl %esi, %esi callq 0x6b800 movq %r15, %rdi callq 0x70bac movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x92168 callq 0x33c02 movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x92177 callq 0x33c02 movq 0x40(%rsp), %rdi testq %rdi, %rdi je 0x92186 callq 0x33c02 movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x921b5 cmpb $0x0, (%rbx) je 0x921a0 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x921aa movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x921b5 movq (%rdi), %rax callq *0x18(%rax) movq %r14, %rdi callq 0x9259a jmp 0x92111 leaq 0x78(%rsp), %rdi movq %r15, %rsi callq 0x706e0 leaq 0x78(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x6de7c movq %rbx, %rdi xorl %esi, %esi callq 0x6b800 movq %rbx, %rdi callq 0x70bac jmp 0x92234 movq 0x18(%rsp), %rax movq (%rsp), %rdi movq %rax, 0x10(%rdi) addq $0x18, %rdi leaq 0x20(%rsp), %rsi callq 0x938aa movq 0x20(%rsp), %rdi jmp 0x9222a movq (%rsp), %rax movq %r13, 0x20(%rax) movq 0x28(%rax), %rdi movq 0x10(%rsp), %rcx movq %rcx, 0x28(%rax) testq %rdi, %rdi je 0x92234 callq 0x33c02 addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r14, 0x8(%rsp) jmp 0x9224f jmp 0x9224f movq %rax, %r14 jmp 0x92296 jmp 0x9226b jmp 0x92284 movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0x8bd8e jmp 0x92287 jmp 0x92284 jmp 0x9226b movq %rax, %r14 jmp 0x9227d movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0x8bd8e movq 0x10(%rsp), %rdi jmp 0x92291 movq %rax, %r14 movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0x92296 callq 0x33c02 movq 0x8(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x6b800 movq %rbx, %rdi callq 0x70bac movq (%rsp), %rax movq 0x38(%rax), %rdi testq %rdi, %rdi je 0x922bf callq 0x33c02 movq (%rsp), %rax movq 0x28(%rax), %rdi testq %rdi, %rdi je 0x922d1 callq 0x33c02 movq (%rsp), %rax movq 0x18(%rax), %rdi testq %rdi, %rdi je 0x922e3 callq 0x33c02 movq (%rsp), %rdi callq 0x8d2ea movq %r14, %rdi callq 0x1bff0
_ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov r15, rsi lea r14, [rdi+40h] mov qword ptr [rdi+48h], 0 xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi+20h], xmm0 movups xmmword ptr [rdi+30h], xmm0 mov [rsp+0F8h+var_F8], rdi mov byte ptr [rdi+40h], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) movzx eax, byte ptr [r15] cmp eax, 2 jz loc_9206D cmp eax, 1 jnz loc_921C2 mov [rsp+0F8h+var_F0], r14 mov edi, 30h ; '0'; unsigned __int64 call __Znwm; operator new(ulong) mov rdx, 8000000000000000h mov rcx, 100000001h mov [rax+8], rcx lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEESaISN_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<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>>>,std::allocator<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> add rcx, 10h mov [rax], rcx mov r13, rax add r13, 10h xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 mov [rsp+0F8h+var_E8], rax mov qword ptr [rax+20h], 0 lea rbp, [rsp+0F8h+var_70] mov [rbp+0], r15 movups xmmword ptr [rbp+8], xmm0 mov [rbp+18h], rdx mov rdi, rbp 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 rbx, [rsp+0F8h+var_C8] lea r14, [rsp+0F8h+var_90] lea r12, [rsp+0F8h+var_D0] loc_91F85: mov [rsp+0F8h+var_D0], r15 xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 mov rax, 8000000000000000h mov [rsp+0F8h+var_B8], rax mov rdi, 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) mov rdi, rbp mov rsi, r12 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_92215 mov rdi, rbp 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, r12 mov rsi, rax call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rdi, rbp call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyEv; 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, r13 mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_ mov rdi, rax mov rsi, r12 call _ZN5minja5ValueaSEOS0_; minja::Value::operator=(minja::Value&&) mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [rsp+0F8h+var_98] test rdi, rdi jz short loc_9200C call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9200C: mov rdi, [rsp+0F8h+var_A8] test rdi, rdi jz short loc_9201B call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9201B: mov rdi, [rsp+0F8h+var_B8] test rdi, rdi jz short loc_9202A call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9202A: mov rdi, [rsp+0F8h+var_C8] test rdi, rdi jz short loc_92060 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_9204B mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_92055 loc_9204B: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_92055: cmp eax, 1 jnz short loc_92060 mov rax, [rdi] call qword ptr [rax+18h] loc_92060: mov rdi, rbp 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_91F85 loc_9206D: mov [rsp+0F8h+var_F0], r14 mov edi, 28h ; '('; unsigned __int64 call __Znwm; operator new(ulong) lea rdx, [rsp+0F8h+var_D8] mov rcx, 100000001h mov [rax+8], rcx lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceISt6vectorIN5minja5ValueESaIS2_EESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<std::vector<minja::Value>,std::allocator<std::vector<minja::Value>>,(__gnu_cxx::_Lock_policy)2> add rcx, 10h mov [rax], rcx mov rcx, rax add rcx, 10h xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 mov qword ptr [rax+20h], 0 mov [rdx], rax mov [rdx-8], rcx lea r14, [rsp+0F8h+var_70] mov [r14], r15 movups xmmword ptr [r14+8], xmm0 mov rbx, 8000000000000000h mov [r14+18h], rbx mov rdi, r14 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 r13, [rsp+0F8h+var_50] mov [r13+0], r15 xorps xmm0, xmm0 movups xmmword ptr [r13+8], xmm0 mov [r13+18h], rbx mov rdi, r13 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) lea r15, [rsp+0F8h+var_90] lea rbp, [rsp+0F8h+var_D0] mov rbx, cs:__libc_single_threaded_ptr loc_92111: mov rdi, r14 mov rsi, r13 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_921F3 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 r12, [rsp+0F8h+var_E0] mov rdi, rbp mov rsi, rax call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rdi, r12 mov rsi, rbp call _ZNSt6vectorIN5minja5ValueESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<minja::Value>::emplace_back<minja::Value>(minja::Value &&) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [rsp+0F8h+var_98] test rdi, rdi jz short loc_92168 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_92168: mov rdi, [rsp+0F8h+var_A8] test rdi, rdi jz short loc_92177 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_92177: mov rdi, [rsp+0F8h+var_B8] test rdi, rdi jz short loc_92186 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_92186: mov rdi, [rsp+0F8h+var_C8] test rdi, rdi jz short loc_921B5 cmp byte ptr [rbx], 0 jz short loc_921A0 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_921AA loc_921A0: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_921AA: cmp eax, 1 jnz short loc_921B5 mov rax, [rdi] call qword ptr [rax+18h] loc_921B5: mov rdi, r14 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_92111 loc_921C2: lea rdi, [rsp+0F8h+var_80] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) lea rbx, [rsp+0F8h+var_80] mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx 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_92234 loc_921F3: mov rax, [rsp+0F8h+var_E0] mov rdi, [rsp+0F8h+var_F8] mov [rdi+10h], rax add rdi, 18h lea rsi, [rsp+0F8h+var_D8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) mov rdi, [rsp+0F8h+var_D8] jmp short loc_9222A loc_92215: mov rax, [rsp+0F8h+var_F8] mov [rax+20h], r13 mov rdi, [rax+28h] mov rcx, [rsp+0F8h+var_E8] mov [rax+28h], rcx loc_9222A: test rdi, rdi jz short loc_92234 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_92234: add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov [rsp+arg_0], r14 jmp short loc_9224F jmp short $+2 loc_9224F: mov r14, rax jmp short loc_92296 jmp short loc_9226B jmp short loc_92284 mov r14, rax lea rdi, [rsp+arg_20]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_92287 jmp short loc_92284 jmp short $+2 loc_9226B: mov r14, rax jmp short loc_9227D mov r14, rax lea rdi, [rsp+arg_20]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_9227D: mov rdi, [rsp+arg_8] jmp short loc_92291 loc_92284: mov r14, rax loc_92287: mov rdi, [rsp+arg_18] test rdi, rdi jz short loc_92296 loc_92291: call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_92296: mov rbx, [rsp+arg_0] mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx 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+0] mov rdi, [rax+38h] test rdi, rdi jz short loc_922BF call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_922BF: mov rax, [rsp+0] mov rdi, [rax+28h] test rdi, rdi jz short loc_922D1 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_922D1: mov rax, [rsp+0] mov rdi, [rax+18h] test rdi, rdi jz short loc_922E3 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_922E3: mov rdi, [rsp+0] call _ZNSt23enable_shared_from_thisIN5minja5ValueEED2Ev; std::enable_shared_from_this<minja::Value>::~enable_shared_from_this() mov rdi, r14 call __Unwind_Resume
long long minja::Value::Value(long long a1, unsigned __int8 *a2) { int v2; // eax long long v3; // rax long long v4; // r13 int v5; // eax int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d long long v10; // rax long long v11; // rax long long v12; // rdi signed __int32 v13; // eax long long v14; // rax int v15; // eax int v16; // edx int v17; // ecx int v18; // r8d int v19; // r9d long long v20; // rdi signed __int32 v21; // eax long long result; // rax volatile signed __int32 *v23; // rdi long long v25; // [rsp+10h] [rbp-E8h] long long v26; // [rsp+18h] [rbp-E0h] volatile signed __int32 *v27; // [rsp+20h] [rbp-D8h] BYREF unsigned __int8 *v28; // [rsp+28h] [rbp-D0h] BYREF __int128 v29; // [rsp+30h] [rbp-C8h] volatile signed __int32 *v30; // [rsp+40h] [rbp-B8h] volatile signed __int32 *v31; // [rsp+50h] [rbp-A8h] volatile signed __int32 *v32; // [rsp+60h] [rbp-98h] char v33[16]; // [rsp+68h] [rbp-90h] BYREF unsigned __int8 v34[16]; // [rsp+78h] [rbp-80h] BYREF unsigned __int8 *v35; // [rsp+88h] [rbp-70h] BYREF __int128 v36; // [rsp+90h] [rbp-68h] unsigned long long v37; // [rsp+A0h] [rbp-58h] unsigned __int8 *v38; // [rsp+A8h] [rbp-50h] BYREF __int128 v39; // [rsp+B0h] [rbp-48h] unsigned long long v40; // [rsp+C0h] [rbp-38h] *(_QWORD *)(a1 + 72) = 0LL; *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_BYTE *)(a1 + 64) = 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>::assert_invariant((char *)(a1 + 64)); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); v2 = *a2; if ( v2 == 2 ) { v14 = operator new(0x28uLL); *(_QWORD *)(v14 + 8) = 0x100000001LL; *(_QWORD *)v14 = &`vtable for'std::_Sp_counted_ptr_inplace<std::vector<minja::Value>,std::allocator<std::vector<minja::Value>>,(__gnu_cxx::_Lock_policy)2> + 2; *(_OWORD *)(v14 + 16) = 0LL; *(_QWORD *)(v14 + 32) = 0LL; v27 = (volatile signed __int32 *)v14; v26 = v14 + 16; v35 = a2; v36 = 0LL; v37 = 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( &v35, 1LL); v38 = a2; v39 = 0LL; v40 = 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(&v38); 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_( &v35, &v38) ) { v15 = 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*(&v35); minja::Value::Value((unsigned int)&v28, v15, v16, v17, v18, v19); std::vector<minja::Value>::emplace_back<minja::Value>(v26, &v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v33); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v33); if ( v32 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v32); if ( v31 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v31); if ( v30 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v30); v20 = v29; if ( (_QWORD)v29 ) { if ( _libc_single_threaded ) { v21 = *(_DWORD *)(v29 + 12); *(_DWORD *)(v29 + 12) = v21 - 1; } else { v21 = _InterlockedExchangeAdd((volatile signed __int32 *)(v29 + 12), 0xFFFFFFFF); } if ( v21 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v20 + 24LL))(v20, 0LL); } 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++( &v35, 0LL); } *(_QWORD *)(a1 + 16) = v26; result = std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(a1 + 24, &v27); v23 = v27; } else { if ( v2 != 1 ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v34, a2); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( a1 + 64, (long long)v34); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v34); 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(v34); } v3 = operator new(0x30uLL); *(_QWORD *)(v3 + 8) = 0x100000001LL; *(_QWORD *)v3 = &`vtable for'std::_Sp_counted_ptr_inplace<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>>>,std::allocator<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> + 2; v4 = v3 + 16; *(_OWORD *)(v3 + 16) = 0LL; v25 = v3; *(_QWORD *)(v3 + 32) = 0LL; v35 = a2; v36 = 0LL; v37 = 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( &v35, 1LL); while ( 1 ) { v28 = a2; v29 = 0LL; v30 = (volatile signed __int32 *)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(&v28); 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_( &v35, &v28) ) break; v5 = 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*(&v35); minja::Value::Value((unsigned int)&v28, v5, v6, v7, v8, v9); v10 = 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(&v35); v11 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_( v4, v10); minja::Value::operator=(v11, &v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v33); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v33); if ( v32 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v32); if ( v31 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v31); if ( v30 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v30); v12 = v29; if ( (_QWORD)v29 ) { if ( _libc_single_threaded ) { v13 = *(_DWORD *)(v29 + 12); *(_DWORD *)(v29 + 12) = v13 - 1; } else { v13 = _InterlockedExchangeAdd((volatile signed __int32 *)(v29 + 12), 0xFFFFFFFF); } if ( v13 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v12 + 24LL))(v12, 0LL); } 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++( &v35, 0LL); } result = a1; *(_QWORD *)(a1 + 32) = v4; v23 = *(volatile signed __int32 **)(a1 + 40); *(_QWORD *)(a1 + 40) = v25; } if ( v23 ) return std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v23); return result; }
Value: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV R15,RSI LEA R14,[RDI + 0x40] MOV qword ptr [RDI + 0x48],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV qword ptr [RSP],RDI MOV byte ptr [RDI + 0x40],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0016b800 MOV RDI,R14 MOV ESI,0x1 CALL 0x0016b800 MOVZX EAX,byte ptr [R15] CMP EAX,0x2 JZ 0x0019206d CMP EAX,0x1 JNZ 0x001921c2 LAB_00191f0a: MOV qword ptr [RSP + 0x8],R14 MOV EDI,0x30 CALL 0x0011b8f0 MOV RDX,-0x8000000000000000 MOV RCX,0x100000001 MOV qword ptr [RAX + 0x8],RCX LEA RCX,[0x22f438] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV R13,RAX ADD R13,0x10 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RAX + 0x20],0x0 LEA RBP,[RSP + 0x88] MOV qword ptr [RBP],R15 MOVUPS xmmword ptr [RBP + 0x8],XMM0 MOV qword ptr [RBP + 0x18],RDX MOV RDI,RBP CALL 0x001928e2 LEA RBX,[RSP + 0x30] LEA R14,[RSP + 0x68] LEA R12,[RSP + 0x28] LAB_00191f85: MOV qword ptr [RSP + 0x28],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOV RAX,-0x8000000000000000 MOV qword ptr [RSP + 0x40],RAX MOV RDI,R12 CALL 0x00192c2c LAB_00191fa7: MOV RDI,RBP MOV RSI,R12 CALL 0x00192954 TEST AL,AL JNZ 0x00192215 LAB_00191fba: MOV RDI,RBP CALL 0x001925e8 MOV RDI,R12 MOV RSI,RAX CALL 0x00191ea0 LAB_00191fcd: MOV RDI,RBP CALL 0x001923f0 MOV RDI,R13 MOV RSI,RAX CALL 0x001922f4 LAB_00191fe0: MOV RDI,RAX MOV RSI,R12 CALL 0x001924cc MOV RDI,R14 XOR ESI,ESI CALL 0x0016b800 MOV RDI,R14 CALL 0x00170bac MOV RDI,qword ptr [RSP + 0x60] TEST RDI,RDI JZ 0x0019200c CALL 0x00133c02 LAB_0019200c: MOV RDI,qword ptr [RSP + 0x50] TEST RDI,RDI JZ 0x0019201b CALL 0x00133c02 LAB_0019201b: MOV RDI,qword ptr [RSP + 0x40] TEST RDI,RDI JZ 0x0019202a CALL 0x00133c02 LAB_0019202a: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x00192060 MOV RAX,qword ptr [0x00230f80] CMP byte ptr [RAX],0x0 JZ 0x0019204b MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x00192055 LAB_0019204b: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_00192055: CMP EAX,0x1 JNZ 0x00192060 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_00192060: MOV RDI,RBP CALL 0x0019259a JMP 0x00191f85 LAB_0019206d: MOV qword ptr [RSP + 0x8],R14 MOV EDI,0x28 CALL 0x0011b8f0 LEA RDX,[RSP + 0x20] MOV RCX,0x100000001 MOV qword ptr [RAX + 0x8],RCX LEA RCX,[0x22f488] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV RCX,RAX ADD RCX,0x10 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV qword ptr [RAX + 0x20],0x0 MOV qword ptr [RDX],RAX MOV qword ptr [RDX + -0x8],RCX LEA R14,[RSP + 0x88] MOV qword ptr [R14],R15 MOVUPS xmmword ptr [R14 + 0x8],XMM0 MOV RBX,-0x8000000000000000 MOV qword ptr [R14 + 0x18],RBX MOV RDI,R14 CALL 0x001928e2 LEA R13,[RSP + 0xa8] MOV qword ptr [R13],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R13 + 0x8],XMM0 MOV qword ptr [R13 + 0x18],RBX MOV RDI,R13 CALL 0x00192c2c LEA R15,[RSP + 0x68] LEA RBP,[RSP + 0x28] MOV RBX,qword ptr [0x00230f80] LAB_00192111: MOV RDI,R14 MOV RSI,R13 CALL 0x00192954 TEST AL,AL JNZ 0x001921f3 LAB_00192124: MOV RDI,R14 CALL 0x001925e8 MOV R12,qword ptr [RSP + 0x18] LAB_00192131: MOV RDI,RBP MOV RSI,RAX CALL 0x00191ea0 LAB_0019213c: MOV RDI,R12 MOV RSI,RBP CALL 0x00193640 LAB_00192147: MOV RDI,R15 XOR ESI,ESI CALL 0x0016b800 MOV RDI,R15 CALL 0x00170bac MOV RDI,qword ptr [RSP + 0x60] TEST RDI,RDI JZ 0x00192168 CALL 0x00133c02 LAB_00192168: MOV RDI,qword ptr [RSP + 0x50] TEST RDI,RDI JZ 0x00192177 CALL 0x00133c02 LAB_00192177: MOV RDI,qword ptr [RSP + 0x40] TEST RDI,RDI JZ 0x00192186 CALL 0x00133c02 LAB_00192186: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x001921b5 CMP byte ptr [RBX],0x0 JZ 0x001921a0 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001921aa LAB_001921a0: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001921aa: CMP EAX,0x1 JNZ 0x001921b5 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001921b5: MOV RDI,R14 CALL 0x0019259a JMP 0x00192111 LAB_001921c2: LEA RDI,[RSP + 0x78] MOV RSI,R15 CALL 0x001706e0 LAB_001921cf: LEA RBX,[RSP + 0x78] MOV RDI,R14 MOV RSI,RBX CALL 0x0016de7c MOV RDI,RBX XOR ESI,ESI CALL 0x0016b800 MOV RDI,RBX CALL 0x00170bac JMP 0x00192234 LAB_001921f3: MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RSP] MOV qword ptr [RDI + 0x10],RAX ADD RDI,0x18 LEA RSI,[RSP + 0x20] CALL 0x001938aa MOV RDI,qword ptr [RSP + 0x20] JMP 0x0019222a LAB_00192215: MOV RAX,qword ptr [RSP] MOV qword ptr [RAX + 0x20],R13 MOV RDI,qword ptr [RAX + 0x28] MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x28],RCX LAB_0019222a: TEST RDI,RDI JZ 0x00192234 CALL 0x00133c02 LAB_00192234: ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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&) */ void __thiscall minja::Value::Value(Value *this,basic_json *param_1) { int *piVar1; int *puVar2; char cVar3; int iVar4; int8 *puVar5; basic_json *pbVar6; int8 uVar7; Value *this_00; vector<minja::Value,std::allocator<minja::Value>> *this_01; bool bVar8; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_02; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_d8; basic_json *local_d0; long *local_c8; int8 uStack_c0; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_b8; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_a8; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_98; data local_90 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_80 [16]; basic_json *local_70; int8 local_68; int8 uStack_60; int8 local_58; basic_json *local_50; int8 local_48; int8 uStack_40; int8 local_38; *(int8 *)(this + 0x48) = 0; *(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; this[0x40] = (Value)0x0; bVar8 = SUB81((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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),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> ::assert_invariant(bVar8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar8); local_70 = param_1; if (*param_1 == (basic_json)0x2) { /* try { // try from 0019206d to 0019207b has its CatchHandler @ 0019224d */ local_d8 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x28); *(int8 *)(local_d8 + 8) = 0x100000001; *(int ***)local_d8 = &PTR___Sp_counted_ptr_inplace_0022f498; this_01 = (vector<minja::Value,std::allocator<minja::Value>> *)(local_d8 + 0x10); *(int8 *)(local_d8 + 0x10) = 0; *(int8 *)(local_d8 + 0x18) = 0; *(int8 *)(local_d8 + 0x20) = 0; local_68 = 0; uStack_60 = 0; local_58 = 0x8000000000000000; 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_70); local_48 = 0; uStack_40 = 0; local_38 = 0x8000000000000000; local_50 = param_1; 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); puVar2 = PTR___libc_single_threaded_00230f80; /* try { // try from 00192111 to 0019211b has its CatchHandler @ 00192284 */ while (cVar3 = _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_70, (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), cVar3 == '\0') { /* try { // try from 00192124 to 0019212b has its CatchHandler @ 00192267 */ pbVar6 = (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_70); /* try { // try from 00192131 to 0019213b has its CatchHandler @ 00192256 */ Value((Value *)&local_d0,pbVar6); /* try { // try from 0019213c to 00192146 has its CatchHandler @ 00192258 */ std::vector<minja::Value,std::allocator<minja::Value>>::emplace_back<minja::Value> (this_01,(Value *)&local_d0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_90,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_90); if (local_98 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_98); } if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8); } if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8); } if (local_c8 != (long *)0x0) { if (*puVar2 == '\0') { LOCK(); piVar1 = (int *)((long)local_c8 + 0xc); iVar4 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar4 = *(int *)((long)local_c8 + 0xc); *(int *)((long)local_c8 + 0xc) = iVar4 + -1; } if (iVar4 == 1) { (**(code **)(*local_c8 + 0x18))(); } } /* try { // try from 001921b5 to 001921bc has its CatchHandler @ 00192284 */ 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_70); } *(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10) = this_01; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(this + 0x18), (__shared_count *)&local_d8); this_02 = local_d8; } else { if (*param_1 != (basic_json)0x1) { /* try { // try from 001921c2 to 001921ce has its CatchHandler @ 00192246 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_80,param_1); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)(this + 0x40),(data *)local_80); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_80,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_80); return; } /* try { // try from 00191f0a to 00191f18 has its CatchHandler @ 0019224f */ puVar5 = (int8 *)operator_new(0x30); puVar5[1] = 0x100000001; *puVar5 = &PTR___Sp_counted_ptr_inplace_0022f448; puVar5[2] = 0; puVar5[3] = 0; puVar5[4] = 0; local_68 = 0; uStack_60 = 0; local_58 = 0x8000000000000000; 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_70); while( true ) { local_c8 = (long *)0x0; uStack_c0 = 0; local_b8 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x8000000000000000; local_d0 = param_1; 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_d0); /* try { // try from 00191fa7 to 00191fb1 has its CatchHandler @ 00192269 */ cVar3 = _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_70, (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_d0); if (cVar3 != '\0') break; /* try { // try from 00191fba to 00191fcc has its CatchHandler @ 0019226b */ pbVar6 = (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_70); Value((Value *)&local_d0,pbVar6); /* try { // try from 00191fcd to 00191fdf has its CatchHandler @ 00192270 */ uVar7 = 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((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_70); this_00 = (Value *)_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_ (puVar5 + 2,uVar7); operator=(this_00,(Value *)&local_d0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_90,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_90); if (local_98 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_98); } if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8); } if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8); } if (local_c8 != (long *)0x0) { if (*PTR___libc_single_threaded_00230f80 == '\0') { LOCK(); piVar1 = (int *)((long)local_c8 + 0xc); iVar4 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar4 = *(int *)((long)local_c8 + 0xc); *(int *)((long)local_c8 + 0xc) = iVar4 + -1; } if (iVar4 == 1) { (**(code **)(*local_c8 + 0x18))(); } } /* try { // try from 00192060 to 00192067 has its CatchHandler @ 00192254 */ 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_70); } *(int8 **)(this + 0x20) = puVar5 + 2; this_02 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28); *(int8 **)(this + 0x28) = puVar5; } if (this_02 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_02); } return; }
3,130
char* fmt::v10::format_int::format_signed<int>(int)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
auto format_signed(Int value) -> char* { auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value); bool negative = value < 0; if (negative) abs_value = 0 - abs_value; auto begin = format_unsigned(abs_value); if (negative) *--begin = '-'; return begin; }
O0
c
char* fmt::v10::format_int::format_signed<int>(int): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x20(%rsp) cmpq $0x0, 0x28(%rsp) setl %al andb $0x1, %al movb %al, 0x1f(%rsp) testb $0x1, 0x1f(%rsp) je 0x63724 xorl %eax, %eax subq 0x20(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x8(%rsp), %rdi movq 0x20(%rsp), %rsi callq 0x5cb10 movq %rax, 0x10(%rsp) testb $0x1, 0x1f(%rsp) je 0x63754 movq 0x10(%rsp), %rax movq %rax, %rcx addq $-0x1, %rcx movq %rcx, 0x10(%rsp) movb $0x2d, -0x1(%rax) movq 0x10(%rsp), %rax addq $0x38, %rsp retq nop
_ZN3fmt3v1010format_int13format_signedIlEEPcT_: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov rax, [rsp+38h+var_8] mov [rsp+38h+var_30], rax mov rax, [rsp+38h+var_10] mov [rsp+38h+var_18], rax cmp [rsp+38h+var_10], 0 setl al and al, 1 mov [rsp+38h+var_19], al test [rsp+38h+var_19], 1 jz short loc_63724 xor eax, eax sub rax, [rsp+38h+var_18] mov [rsp+38h+var_18], rax loc_63724: mov rdi, [rsp+38h+var_30] mov rsi, [rsp+38h+var_18] call _ZN3fmt3v1010format_int15format_unsignedImEEPcT_; fmt::v10::format_int::format_unsigned<ulong>(ulong) mov [rsp+38h+var_28], rax test [rsp+38h+var_19], 1 jz short loc_63754 mov rax, [rsp+38h+var_28] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFFh mov [rsp+38h+var_28], rcx mov byte ptr [rax-1], 2Dh ; '-' loc_63754: mov rax, [rsp+38h+var_28] add rsp, 38h retn
long long fmt::v10::format_int::format_signed<long>(long long a1, long long a2) { long long v2; // rax long long v4; // [rsp+10h] [rbp-28h] long long v5; // [rsp+20h] [rbp-18h] v5 = a2; if ( a2 < 0 ) v5 = -a2; v4 = fmt::v10::format_int::format_unsigned<unsigned long>(a1, v5); if ( a2 < 0 ) { v2 = v4--; *(_BYTE *)(v2 - 1) = 45; } return v4; }
format_signed<long>: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x20],RAX CMP qword ptr [RSP + 0x28],0x0 SETL AL AND AL,0x1 MOV byte ptr [RSP + 0x1f],AL TEST byte ptr [RSP + 0x1f],0x1 JZ 0x00163724 XOR EAX,EAX SUB RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x20],RAX LAB_00163724: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x20] CALL 0x0015cb10 MOV qword ptr [RSP + 0x10],RAX TEST byte ptr [RSP + 0x1f],0x1 JZ 0x00163754 MOV RAX,qword ptr [RSP + 0x10] MOV RCX,RAX ADD RCX,-0x1 MOV qword ptr [RSP + 0x10],RCX MOV byte ptr [RAX + -0x1],0x2d LAB_00163754: MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x38 RET
/* char* fmt::v10::format_int::format_signed<long>(long) */ char * __thiscall fmt::v10::format_int::format_signed<long>(format_int *this,long param_1) { char *pcVar1; char *local_28; ulong local_18; local_18 = param_1; if (param_1 < 0) { local_18 = -param_1; } pcVar1 = format_unsigned<unsigned_long>(this,local_18); local_28 = pcVar1; if (param_1 < 0) { local_28 = pcVar1 + -1; pcVar1[-1] = '-'; } return local_28; }
3,131
bfdec_pow_ui
bluesky950520[P]quickjs/libbf.c
int bfdec_pow_ui(bfdec_t *r, const bfdec_t *a, limb_t b) { int ret, n_bits, i; assert(r != a); if (b == 0) return bfdec_set_ui(r, 1); ret = bfdec_set(r, a); n_bits = LIMB_BITS - clz(b); for(i = n_bits - 2; i >= 0; i--) { ret |= bfdec_mul(r, r, r, BF_PREC_INF, BF_RNDZ); if ((b >> i) & 1) ret |= bfdec_mul(r, r, a, BF_PREC_INF, BF_RNDZ); } return ret; }
O2
c
bfdec_pow_ui: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx testq %rdx, %rdx je 0x782ac movq %rdx, %r14 movabsq $0x3fffffffffffffff, %r13 # imm = 0x3FFFFFFFFFFFFFFF movq %rbx, %rdi movq %rsi, (%rsp) callq 0x6f666 movl %eax, %r15d bsrq %r14, %r12 xorl $-0x40, %r12d addl $0x3f, %r12d pushq $0x1 popq %rbp testl %r12d, %r12d js 0x7829a movq %rbx, %rdi movq %rbx, %rsi movq %rbx, %rdx movq %r13, %rcx movl %ebp, %r8d callq 0x774a4 movq %r13, %rcx movl %eax, %r13d orl %r15d, %r13d btq %r12, %r14 jae 0x78288 movq %rbx, %rdi movq %rbx, %rsi movq (%rsp), %rdx movl %ebp, %r8d callq 0x774a4 orl %eax, %r13d decl %r12d movl %r13d, %r15d movabsq $0x3fffffffffffffff, %r13 # imm = 0x3FFFFFFFFFFFFFFF jmp 0x7824b movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq pushq $0x1 popq %rsi movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x773be
bfdec_pow_ui: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi test rdx, rdx jz loc_782AC mov r14, rdx mov r13, 3FFFFFFFFFFFFFFFh mov rdi, rbx mov [rsp+38h+var_38], rsi call bf_set mov r15d, eax bsr r12, r14 xor r12d, 0FFFFFFC0h add r12d, 3Fh ; '?' push 1 pop rbp loc_7824B: test r12d, r12d js short loc_7829A mov rdi, rbx mov rsi, rbx mov rdx, rbx mov rcx, r13 mov r8d, ebp call bfdec_mul mov rcx, r13 mov r13d, eax or r13d, r15d bt r14, r12 jnb short loc_78288 mov rdi, rbx mov rsi, rbx mov rdx, [rsp+38h+var_38] mov r8d, ebp call bfdec_mul or r13d, eax loc_78288: dec r12d mov r15d, r13d mov r13, 3FFFFFFFFFFFFFFFh jmp short loc_7824B loc_7829A: mov eax, r15d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_782AC: push 1 pop rsi mov rdi, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp bfdec_set_ui
long long bfdec_pow_ui(__int128 *a1, long long a2, unsigned long long a3) { unsigned int v4; // r15d unsigned long long v5; // r12 unsigned long long v6; // r12 unsigned int v7; // r13d if ( !a3 ) return bfdec_set_ui((long long)a1, 1uLL); v4 = bf_set((long long)a1, a2); _BitScanReverse64(&v5, a3); v6 = ((unsigned int)v5 ^ 0xFFFFFFC0) + 63; while ( (v6 & 0x80000000) == 0LL ) { v7 = v4 | bfdec_mul(a1, (long long)a1, (long long)a1, 0x3FFFFFFFFFFFFFFFLL, 1u); if ( _bittest64((const long long *)&a3, v6) ) v7 |= bfdec_mul(a1, (long long)a1, a2, 0x3FFFFFFFFFFFFFFFLL, 1u); v6 = (unsigned int)(v6 - 1); v4 = v7; } return v4; }
bfdec_pow_ui: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI TEST RDX,RDX JZ 0x001782ac MOV R14,RDX MOV R13,0x3fffffffffffffff MOV RDI,RBX MOV qword ptr [RSP],RSI CALL 0x0016f666 MOV R15D,EAX BSR R12,R14 XOR R12D,0xffffffc0 ADD R12D,0x3f PUSH 0x1 POP RBP LAB_0017824b: TEST R12D,R12D JS 0x0017829a MOV RDI,RBX MOV RSI,RBX MOV RDX,RBX MOV RCX,R13 MOV R8D,EBP CALL 0x001774a4 MOV RCX,R13 MOV R13D,EAX OR R13D,R15D BT R14,R12 JNC 0x00178288 MOV RDI,RBX MOV RSI,RBX MOV RDX,qword ptr [RSP] MOV R8D,EBP CALL 0x001774a4 OR R13D,EAX LAB_00178288: DEC R12D MOV R15D,R13D MOV R13,0x3fffffffffffffff JMP 0x0017824b LAB_0017829a: MOV EAX,R15D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001782ac: PUSH 0x1 POP RSI MOV RDI,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001773be
ulong bfdec_pow_ui(int8 param_1,int8 param_2,ulong param_3) { long lVar1; uint uVar2; uint uVar3; ulong uVar4; uint uVar5; if (param_3 != 0) { uVar2 = bf_set(param_1); lVar1 = 0x3f; if (param_3 != 0) { for (; param_3 >> lVar1 == 0; lVar1 = lVar1 + -1) { } } uVar5 = ((uint)lVar1 ^ 0xffffffc0) + 0x3f; while( true ) { if ((int)uVar5 < 0) break; uVar3 = bfdec_mul(param_1,param_1,param_1,0x3fffffffffffffff,1); uVar2 = uVar3 | uVar2; if ((param_3 >> ((ulong)uVar5 & 0x3f) & 1) != 0) { uVar3 = bfdec_mul(param_1,param_1,param_2,0x3fffffffffffffff,1); uVar2 = uVar2 | uVar3; } uVar5 = uVar5 - 1; } return (ulong)uVar2; } uVar4 = bfdec_set_ui(param_1,1); return uVar4; }
3,132
apply_shift
eloqsql/strings/ctype-uca.c
static my_bool apply_shift(MY_CHARSET_LOADER *loader, MY_COLL_RULES *rules, MY_COLL_RULE *r, int level, uint16 *to, size_t nweights) { /* Apply level difference. */ if (nweights) { to[nweights - 1]+= r->diff[level]; if (r->before_level == 1) /* Apply "&[before primary]" */ { if (nweights >= 2) { to[nweights - 2]--; /* Reset before */ if (rules->shift_after_method == my_shift_method_expand) { /* Special case. Don't let characters shifted after X and before next(X) intermix to each other. For example: "[shift-after-method expand] &0 < a &[before primary]1 < A". I.e. we reorder 'a' after '0', and then 'A' before '1'. 'a' must be sorted before 'A'. Note, there are no real collations in CLDR which shift after and before two neighbourgh characters. We need this just in case. Reserving 4096 (0x1000) weights for such cases is perfectly enough. */ to[nweights - 1]+= 0x1000; /* W3-TODO: const may vary on levels 2,3*/ } } else { my_snprintf(loader->error, sizeof(loader->error), "Can't reset before " "a primary ignorable character U+%04lX", r->base[0]); return TRUE; } } } else { /* Shift to an ignorable character, e.g.: & \u0000 < \u0001 */ DBUG_ASSERT(to[0] == 0); to[0]= r->diff[level]; } return FALSE; }
O0
c
apply_shift: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) je 0x56d9a movq -0x20(%rbp), %rax movslq -0x24(%rbp), %rcx movl 0x80(%rax,%rcx,4), %esi movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subq $0x1, %rcx movzwl (%rax,%rcx,2), %edx addl %esi, %edx movw %dx, (%rax,%rcx,2) movq -0x20(%rbp), %rax cmpq $0x1, 0x90(%rax) jne 0x56d98 cmpq $0x2, -0x38(%rbp) jb 0x56d72 movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subq $0x2, %rcx movw (%rax,%rcx,2), %dx addw $-0x1, %dx movw %dx, (%rax,%rcx,2) movq -0x18(%rbp), %rax cmpl $0x1, 0x30(%rax) jne 0x56d70 movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subq $0x1, %rcx movzwl (%rax,%rcx,2), %edx addl $0x1000, %edx # imm = 0x1000 movw %dx, (%rax,%rcx,2) jmp 0x56d96 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rax movq (%rax), %rcx movl $0x80, %esi leaq 0x2be57(%rip), %rdx # 0x82be0 movb $0x0, %al callq 0x7c980 movb $0x1, -0x1(%rbp) jmp 0x56dbb jmp 0x56d98 jmp 0x56db7 jmp 0x56d9c jmp 0x56d9e movq -0x20(%rbp), %rax movslq -0x24(%rbp), %rcx movl 0x80(%rax,%rcx,4), %eax movw %ax, %cx movq -0x30(%rbp), %rax movw %cx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
apply_shift: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_38], r9 cmp [rbp+var_38], 0 jz loc_56D9A mov rax, [rbp+var_20] movsxd rcx, [rbp+var_24] mov esi, [rax+rcx*4+80h] mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub rcx, 1 movzx edx, word ptr [rax+rcx*2] add edx, esi mov [rax+rcx*2], dx mov rax, [rbp+var_20] cmp qword ptr [rax+90h], 1 jnz short loc_56D98 cmp [rbp+var_38], 2 jb short loc_56D72 mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub rcx, 2 mov dx, [rax+rcx*2] add dx, 0FFFFh mov [rax+rcx*2], dx mov rax, [rbp+var_18] cmp dword ptr [rax+30h], 1 jnz short loc_56D70 mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub rcx, 1 movzx edx, word ptr [rax+rcx*2] add edx, 1000h mov [rax+rcx*2], dx loc_56D70: jmp short loc_56D96 loc_56D72: mov rdi, [rbp+var_10] mov rax, [rbp+var_20] mov rcx, [rax] mov esi, 80h lea rdx, aCanTResetBefor; "Can't reset before a primary ignorable "... mov al, 0 call my_snprintf mov [rbp+var_1], 1 jmp short loc_56DBB loc_56D96: jmp short $+2 loc_56D98: jmp short loc_56DB7 loc_56D9A: jmp short $+2 loc_56D9C: jmp short $+2 loc_56D9E: mov rax, [rbp+var_20] movsxd rcx, [rbp+var_24] mov eax, [rax+rcx*4+80h] mov cx, ax mov rax, [rbp+var_30] mov [rax], cx loc_56DB7: mov [rbp+var_1], 0 loc_56DBB: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char apply_shift(int a1, long long a2, _QWORD *a3, int a4, _WORD *a5, unsigned long long a6) { if ( !a6 ) { *a5 = *((_DWORD *)a3 + a4 + 32); return 0; } a5[a6 - 1] += *((_DWORD *)a3 + a4 + 32); if ( a3[18] != 1LL ) return 0; if ( a6 >= 2 ) { --a5[a6 - 2]; if ( *(_DWORD *)(a2 + 48) == 1 ) a5[a6 - 1] += 4096; return 0; } my_snprintf(a1, 128, (unsigned int)"Can't reset before a primary ignorable character U+%04lX", *a3, (_DWORD)a5, a6); return 1; }
apply_shift: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 CMP qword ptr [RBP + -0x38],0x0 JZ 0x00156d9a MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x24] MOV ESI,dword ptr [RAX + RCX*0x4 + 0x80] MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB RCX,0x1 MOVZX EDX,word ptr [RAX + RCX*0x2] ADD EDX,ESI MOV word ptr [RAX + RCX*0x2],DX MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0x90],0x1 JNZ 0x00156d98 CMP qword ptr [RBP + -0x38],0x2 JC 0x00156d72 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB RCX,0x2 MOV DX,word ptr [RAX + RCX*0x2] ADD DX,-0x1 MOV word ptr [RAX + RCX*0x2],DX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x30],0x1 JNZ 0x00156d70 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB RCX,0x1 MOVZX EDX,word ptr [RAX + RCX*0x2] ADD EDX,0x1000 MOV word ptr [RAX + RCX*0x2],DX LAB_00156d70: JMP 0x00156d96 LAB_00156d72: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV ESI,0x80 LEA RDX,[0x182be0] MOV AL,0x0 CALL 0x0017c980 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00156dbb LAB_00156d96: JMP 0x00156d98 LAB_00156d98: JMP 0x00156db7 LAB_00156d9a: JMP 0x00156d9c LAB_00156d9c: JMP 0x00156d9e LAB_00156d9e: MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x24] MOV EAX,dword ptr [RAX + RCX*0x4 + 0x80] MOV CX,AX MOV RAX,qword ptr [RBP + -0x30] MOV word ptr [RAX],CX LAB_00156db7: MOV byte ptr [RBP + -0x1],0x0 LAB_00156dbb: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 apply_shift(int8 param_1,long param_2,int8 *param_3,int param_4,int2 *param_5, ulong param_6) { if (param_6 == 0) { *param_5 = (short)*(int4 *)((long)param_3 + (long)param_4 * 4 + 0x80); } else { param_5[param_6 - 1] = param_5[param_6 - 1] + (short)*(int4 *)((long)param_3 + (long)param_4 * 4 + 0x80); if (param_3[0x12] == 1) { if (param_6 < 2) { my_snprintf(param_1,0x80,"Can\'t reset before a primary ignorable character U+%04lX", *param_3); return 1; } param_5[param_6 - 2] = param_5[param_6 - 2] + -1; if (*(int *)(param_2 + 0x30) == 1) { param_5[param_6 - 1] = param_5[param_6 - 1] + 0x1000; } } } return 0; }
3,133
matches_blocknumber
corpus-core[P]colibri-stateless/src/chains/eth/verifier/verify_block.c
static bool matches_blocknumber(verify_ctx_t* ctx, ssz_ob_t block, json_t req_block) { if (req_block.type != JSON_TYPE_STRING || req_block.len < 6) RETURN_VERIFY_ERROR(ctx, "invalid blocknumber"); if (req_block.start[1] != '0' || req_block.start[2] != 'x') return true; if (req_block.len == 68) { // hash bytes32_t hash = {0}; buffer_t buf = stack_buffer(hash); json_as_bytes(req_block, &buf); if (memcmp(hash, ssz_get(&block, "blockHash").bytes.data, 32) != 0) RETURN_VERIFY_ERROR(ctx, "blockhash mismatch"); return true; } else if (ssz_get_uint64(&block, "blockNumber") != json_as_uint64(req_block)) RETURN_VERIFY_ERROR(ctx, "blocknumber mismatch"); return true; }
O0
c
matches_blocknumber: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp leaq 0x28(%rbp), %rax movq %rax, -0x80(%rbp) leaq 0x10(%rbp), %rcx movq %rcx, -0x78(%rbp) movq %rdi, -0x10(%rbp) cmpl $0x1, 0x10(%rax) jne 0x2aa10 movq -0x80(%rbp), %rax cmpq $0x6, 0x8(%rax) jae 0x2aa37 jmp 0x2aa12 movq -0x10(%rbp), %rdi addq $0x70, %rdi leaq 0xb2a46(%rip), %rsi # 0xdd467 callq 0xa79c0 movq -0x10(%rbp), %rax movb $0x0, 0x68(%rax) movb $0x0, -0x1(%rbp) jmp 0x2ab9a movq -0x80(%rbp), %rax movq (%rax), %rax movsbl 0x1(%rax), %eax cmpl $0x30, %eax jne 0x2aa57 movq -0x80(%rbp), %rax movq (%rax), %rax movsbl 0x2(%rax), %eax cmpl $0x78, %eax je 0x2aa60 movb $0x1, -0x1(%rbp) jmp 0x2ab9a movq -0x80(%rbp), %rax cmpq $0x44, 0x8(%rax) jne 0x2ab25 leaq -0x30(%rbp), %rdi xorl %esi, %esi movl $0x20, %edx callq 0x231c0 movq -0x80(%rbp), %rax movl $0x0, -0x48(%rbp) leaq -0x30(%rbp), %rcx movq %rcx, -0x40(%rbp) movl $0xffffffe0, -0x38(%rbp) # imm = 0xFFFFFFE0 leaq -0x48(%rbp), %rdi movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0xa5f10 movq -0x78(%rbp), %rsi movl %eax, -0x58(%rbp) movq %rdx, -0x50(%rbp) leaq -0x30(%rbp), %rax movq %rax, -0x88(%rbp) leaq -0x70(%rbp), %rdi leaq 0xb215d(%rip), %rdx # 0xdcc39 callq 0xa1c10 movq -0x88(%rbp), %rdi movq -0x68(%rbp), %rsi movl $0x20, %edx callq 0x23540 cmpl $0x0, %eax je 0x2ab1f jmp 0x2aafd movq -0x10(%rbp), %rdi addq $0x70, %rdi leaq 0xb296f(%rip), %rsi # 0xdd47b callq 0xa79c0 movq -0x10(%rbp), %rax movb $0x0, 0x68(%rax) movb $0x0, -0x1(%rbp) jmp 0x2ab9a movb $0x1, -0x1(%rbp) jmp 0x2ab9a movq -0x78(%rbp), %rdi leaq 0xb1e22(%rip), %rsi # 0xdc952 callq 0x2aee0 movq %rax, %rcx movq -0x80(%rbp), %rax movq %rcx, -0x90(%rbp) movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0xa5dd0 movq %rax, %rcx movq -0x90(%rbp), %rax cmpq %rcx, %rax je 0x2ab94 jmp 0x2ab72 movq -0x10(%rbp), %rdi addq $0x70, %rdi leaq 0xb290d(%rip), %rsi # 0xdd48e callq 0xa79c0 movq -0x10(%rbp), %rax movb $0x0, 0x68(%rax) movb $0x0, -0x1(%rbp) jmp 0x2ab9a jmp 0x2ab96 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0xb0, %rsp popq %rbp retq nopl (%rax,%rax)
matches_blocknumber: push rbp mov rbp, rsp sub rsp, 0B0h lea rax, [rbp+arg_18] mov [rbp+var_80], rax lea rcx, [rbp+arg_0] mov [rbp+var_78], rcx mov [rbp+var_10], rdi cmp dword ptr [rax+10h], 1 jnz short loc_2AA10 mov rax, [rbp+var_80] cmp qword ptr [rax+8], 6 jnb short loc_2AA37 loc_2AA10: jmp short $+2 loc_2AA12: mov rdi, [rbp+var_10] add rdi, 70h ; 'p' lea rsi, aInvalidBlocknu; "invalid blocknumber" call c4_state_add_error mov rax, [rbp+var_10] mov byte ptr [rax+68h], 0 mov [rbp+var_1], 0 jmp loc_2AB9A loc_2AA37: mov rax, [rbp+var_80] mov rax, [rax] movsx eax, byte ptr [rax+1] cmp eax, 30h ; '0' jnz short loc_2AA57 mov rax, [rbp+var_80] mov rax, [rax] movsx eax, byte ptr [rax+2] cmp eax, 78h ; 'x' jz short loc_2AA60 loc_2AA57: mov [rbp+var_1], 1 jmp loc_2AB9A loc_2AA60: mov rax, [rbp+var_80] cmp qword ptr [rax+8], 44h ; 'D' jnz loc_2AB25 lea rdi, [rbp+var_30] xor esi, esi mov edx, 20h ; ' ' call _memset mov rax, [rbp+var_80] mov [rbp+var_48], 0 lea rcx, [rbp+var_30] mov [rbp+var_40], rcx mov [rbp+var_38], 0FFFFFFE0h lea rdi, [rbp+var_48] mov rcx, [rax] mov [rsp+0B0h+var_B0], rcx mov rcx, [rax+8] mov [rsp+0B0h+var_A8], rcx mov rax, [rax+10h] mov [rsp+0B0h+var_A0], rax call json_as_bytes mov rsi, [rbp+var_78] mov [rbp+var_58], eax mov [rbp+var_50], rdx lea rax, [rbp+var_30] mov [rbp+var_88], rax lea rdi, [rbp+var_70] lea rdx, aBlockhash; "blockHash" call ssz_get mov rdi, [rbp+var_88] mov rsi, [rbp+var_68] mov edx, 20h ; ' ' call _memcmp cmp eax, 0 jz short loc_2AB1F jmp short $+2 loc_2AAFD: mov rdi, [rbp+var_10] add rdi, 70h ; 'p' lea rsi, aBlockhashMisma; "blockhash mismatch" call c4_state_add_error mov rax, [rbp+var_10] mov byte ptr [rax+68h], 0 mov [rbp+var_1], 0 jmp short loc_2AB9A loc_2AB1F: mov [rbp+var_1], 1 jmp short loc_2AB9A loc_2AB25: mov rdi, [rbp+var_78] lea rsi, aEthBlocknumber+4; "blockNumber" call ssz_get_uint64_0 mov rcx, rax mov rax, [rbp+var_80] mov [rbp+var_90], rcx mov rcx, [rax] mov [rsp+0B0h+var_B0], rcx mov rcx, [rax+8] mov [rsp+0B0h+var_A8], rcx mov rax, [rax+10h] mov [rsp+0B0h+var_A0], rax call json_as_uint64 mov rcx, rax mov rax, [rbp+var_90] cmp rax, rcx jz short loc_2AB94 jmp short $+2 loc_2AB72: mov rdi, [rbp+var_10] add rdi, 70h ; 'p' lea rsi, aBlocknumberMis; "blocknumber mismatch" call c4_state_add_error mov rax, [rbp+var_10] mov byte ptr [rax+68h], 0 mov [rbp+var_1], 0 jmp short loc_2AB9A loc_2AB94: jmp short $+2 loc_2AB96: mov [rbp+var_1], 1 loc_2AB9A: mov al, [rbp+var_1] and al, 1 add rsp, 0B0h pop rbp retn
char matches_blocknumber( long long a1, _DWORD a2, _DWORD a3, _DWORD a4, _DWORD a5, _DWORD a6, char a7, int a8, int a9, long long a10, unsigned long long a11, long long a12) { int v12; // edx int v13; // r8d int v14; // r9d long long v15; // rdx int v16; // edx int v17; // r8d int v18; // r9d long long uint64_0; // [rsp+20h] [rbp-90h] _BYTE v21[8]; // [rsp+40h] [rbp-70h] BYREF long long v22; // [rsp+48h] [rbp-68h] int v23; // [rsp+58h] [rbp-58h] long long v24; // [rsp+60h] [rbp-50h] int v25; // [rsp+68h] [rbp-48h] BYREF _BYTE *v26; // [rsp+70h] [rbp-40h] int v27; // [rsp+78h] [rbp-38h] _BYTE v28[32]; // [rsp+80h] [rbp-30h] BYREF long long v29; // [rsp+A0h] [rbp-10h] v29 = a1; if ( (_DWORD)a12 == 1 && a11 >= 6 ) { if ( *(_BYTE *)(a10 + 1) == 48 && *(_BYTE *)(a10 + 2) == 120 ) { if ( a11 == 68 ) { memset(v28, 0LL, sizeof(v28)); v25 = 0; v26 = v28; v27 = -32; v23 = json_as_bytes((unsigned int)&v25, 0, v12, a11, v13, v14, a10, a11, a12); v24 = v15; ssz_get(v21, &a7, "blockHash"); if ( !(unsigned int)memcmp(v28, v22, 32LL) ) { return 1; } else { c4_state_add_error(v29 + 112, "blockhash mismatch"); *(_BYTE *)(v29 + 104) = 0; return 0; } } else { uint64_0 = ssz_get_uint64_0(&a7, "blockNumber"); if ( uint64_0 == json_as_uint64( (unsigned int)&a7, (unsigned int)"blockNumber", v16, a11, v17, v18, a10, a11, a12) ) { return 1; } else { c4_state_add_error(v29 + 112, "blocknumber mismatch"); *(_BYTE *)(v29 + 104) = 0; return 0; } } } else { return 1; } } else { c4_state_add_error(v29 + 112, "invalid blocknumber"); *(_BYTE *)(v29 + 104) = 0; return 0; } }
matches_blocknumber: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 LEA RAX,[RBP + 0x28] MOV qword ptr [RBP + -0x80],RAX LEA RCX,[RBP + 0x10] MOV qword ptr [RBP + -0x78],RCX MOV qword ptr [RBP + -0x10],RDI CMP dword ptr [RAX + 0x10],0x1 JNZ 0x0012aa10 MOV RAX,qword ptr [RBP + -0x80] CMP qword ptr [RAX + 0x8],0x6 JNC 0x0012aa37 LAB_0012aa10: JMP 0x0012aa12 LAB_0012aa12: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x70 LEA RSI,[0x1dd467] CALL 0x001a79c0 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x68],0x0 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0012ab9a LAB_0012aa37: MOV RAX,qword ptr [RBP + -0x80] MOV RAX,qword ptr [RAX] MOVSX EAX,byte ptr [RAX + 0x1] CMP EAX,0x30 JNZ 0x0012aa57 MOV RAX,qword ptr [RBP + -0x80] MOV RAX,qword ptr [RAX] MOVSX EAX,byte ptr [RAX + 0x2] CMP EAX,0x78 JZ 0x0012aa60 LAB_0012aa57: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0012ab9a LAB_0012aa60: MOV RAX,qword ptr [RBP + -0x80] CMP qword ptr [RAX + 0x8],0x44 JNZ 0x0012ab25 LEA RDI,[RBP + -0x30] XOR ESI,ESI MOV EDX,0x20 CALL 0x001231c0 MOV RAX,qword ptr [RBP + -0x80] MOV dword ptr [RBP + -0x48],0x0 LEA RCX,[RBP + -0x30] MOV qword ptr [RBP + -0x40],RCX MOV dword ptr [RBP + -0x38],0xffffffe0 LEA RDI,[RBP + -0x48] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x001a5f10 MOV RSI,qword ptr [RBP + -0x78] MOV dword ptr [RBP + -0x58],EAX MOV qword ptr [RBP + -0x50],RDX LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x88],RAX LEA RDI,[RBP + -0x70] LEA RDX,[0x1dcc39] CALL 0x001a1c10 MOV RDI,qword ptr [RBP + -0x88] MOV RSI,qword ptr [RBP + -0x68] MOV EDX,0x20 CALL 0x00123540 CMP EAX,0x0 JZ 0x0012ab1f JMP 0x0012aafd LAB_0012aafd: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x70 LEA RSI,[0x1dd47b] CALL 0x001a79c0 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x68],0x0 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0012ab9a LAB_0012ab1f: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0012ab9a LAB_0012ab25: MOV RDI,qword ptr [RBP + -0x78] LEA RSI,[0x1dc952] CALL 0x0012aee0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x80] MOV qword ptr [RBP + -0x90],RCX MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x001a5dd0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x90] CMP RAX,RCX JZ 0x0012ab94 JMP 0x0012ab72 LAB_0012ab72: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x70 LEA RSI,[0x1dd48e] CALL 0x001a79c0 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x68],0x0 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0012ab9a LAB_0012ab94: JMP 0x0012ab96 LAB_0012ab96: MOV byte ptr [RBP + -0x1],0x1 LAB_0012ab9a: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0xb0 POP RBP RET
int1 matches_blocknumber(long param_1) { int iVar1; long lVar2; long lVar3; int8 extraout_RDX; long in_stack_00000020; ulong in_stack_00000028; int in_stack_00000030; int1 local_78 [8]; void *local_70; int4 local_60; int8 local_58; int4 local_50 [2]; int1 *local_48; int4 local_40; int1 local_38 [32]; long local_18; int1 local_9; local_18 = param_1; if ((in_stack_00000030 == 1) && (5 < in_stack_00000028)) { if ((*(char *)(in_stack_00000020 + 1) == '0') && (*(char *)(in_stack_00000020 + 2) == 'x')) { if (in_stack_00000028 == 0x44) { memset(local_38,0,0x20); local_50[0] = 0; local_48 = local_38; local_40 = 0xffffffe0; local_60 = json_as_bytes(local_50); local_58 = extraout_RDX; ssz_get(local_78,&stack0x00000008,"blockHash"); iVar1 = memcmp(local_38,local_70,0x20); if (iVar1 == 0) { local_9 = 1; } else { c4_state_add_error(local_18 + 0x70,"blockhash mismatch"); *(int1 *)(local_18 + 0x68) = 0; local_9 = 0; } } else { lVar2 = ssz_get_uint64(&stack0x00000008,"blockNumber"); lVar3 = json_as_uint64(); if (lVar2 == lVar3) { local_9 = 1; } else { c4_state_add_error(local_18 + 0x70,"blocknumber mismatch"); *(int1 *)(local_18 + 0x68) = 0; local_9 = 0; } } } else { local_9 = 1; } } else { c4_state_add_error(param_1 + 0x70,"invalid blocknumber"); *(int1 *)(local_18 + 0x68) = 0; local_9 = 0; } return local_9; }
3,134
pack_dirname
eloqsql/mysys/mf_pack.c
void pack_dirname(char * to, const char *from) { int cwd_err; size_t d_length,length,UNINIT_VAR(buff_length); char * start; char buff[FN_REFLEN + 1]; DBUG_ENTER("pack_dirname"); (void) intern_filename(to,from); /* Change to intern name */ #ifdef FN_DEVCHAR if ((start=strrchr(to,FN_DEVCHAR)) != 0) /* Skip device part */ start++; else #endif start=to; if (!(cwd_err= my_getwd(buff,FN_REFLEN,MYF(0)))) { buff_length= strlen(buff); d_length= (size_t) (start-to); if ((start == to || (buff_length == d_length && !memcmp(buff,start,d_length))) && *start != FN_LIBCHAR && *start) { /* Put current dir before */ bchange((uchar*) to, d_length, (uchar*) buff, buff_length, strlen(to)+1); } } if ((d_length= cleanup_dirname(to,to)) != 0) { length=0; if (home_dir) { length= strlen(home_dir); if (home_dir[length-1] == FN_LIBCHAR) length--; /* Don't test last '/' */ } if (length > 1 && length < d_length) { /* test if /xx/yy -> ~/yy */ if (memcmp(to,home_dir,length) == 0 && to[length] == FN_LIBCHAR) { to[0]=FN_HOMELIB; /* Filename begins with ~ */ (void) strmov_overlapp(to+1,to+length); } } if (! cwd_err) { /* Test if cwd is ~/... */ if (length > 1 && length < buff_length) { if (memcmp(buff,home_dir,length) == 0 && buff[length] == FN_LIBCHAR) { buff[0]=FN_HOMELIB; (void) strmov_overlapp(buff+1,buff+length); } } if (is_prefix(to,buff)) { length= strlen(buff); if (to[length]) (void) strmov_overlapp(to,to+length); /* Remove everything before */ else { to[0]= FN_CURLIB; /* Put ./ instead of cwd */ to[1]= FN_LIBCHAR; to[2]= '\0'; } } } } DBUG_PRINT("exit",("to: '%s'",to)); DBUG_VOID_RETURN; }
O0
c
pack_dirname: pushq %rbp movq %rsp, %rbp subq $0x270, %rsp # imm = 0x270 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) movq -0x240(%rbp), %rax movq %rax, -0x240(%rbp) movq -0x218(%rbp), %rdi movq -0x220(%rbp), %rsi callq 0x76d80 movq -0x218(%rbp), %rax movq %rax, -0x248(%rbp) leaq -0x210(%rbp), %rdi movl $0x200, %esi # imm = 0x200 xorl %eax, %eax movl %eax, %edx callq 0x7cce0 movl %eax, -0x224(%rbp) cmpl $0x0, %eax jne 0x76b47 leaq -0x210(%rbp), %rdi callq 0x36400 movq %rax, -0x240(%rbp) movq -0x248(%rbp), %rax movq -0x218(%rbp), %rcx subq %rcx, %rax movq %rax, -0x230(%rbp) movq -0x248(%rbp), %rax cmpq -0x218(%rbp), %rax je 0x76abb movq -0x240(%rbp), %rax cmpq -0x230(%rbp), %rax jne 0x76b45 leaq -0x210(%rbp), %rdi movq -0x248(%rbp), %rsi movq -0x230(%rbp), %rdx callq 0x36ae0 cmpl $0x0, %eax jne 0x76b45 movq -0x248(%rbp), %rax movsbl (%rax), %eax cmpl $0x2f, %eax je 0x76b45 movq -0x248(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax je 0x76b45 movq -0x218(%rbp), %rax movq %rax, -0x268(%rbp) movq -0x230(%rbp), %rax movq %rax, -0x260(%rbp) leaq -0x210(%rbp), %rax movq %rax, -0x258(%rbp) movq -0x240(%rbp), %rax movq %rax, -0x250(%rbp) movq -0x218(%rbp), %rdi callq 0x36400 movq -0x268(%rbp), %rdi movq -0x260(%rbp), %rsi movq -0x258(%rbp), %rdx movq -0x250(%rbp), %rcx movq %rax, %r8 addq $0x1, %r8 callq 0x85680 jmp 0x76b47 movq -0x218(%rbp), %rdi movq -0x218(%rbp), %rsi callq 0x76e70 movq %rax, -0x230(%rbp) cmpq $0x0, %rax je 0x76d4d movq $0x0, -0x238(%rbp) leaq 0x3cec6b(%rip), %rax # 0x4457e8 cmpq $0x0, (%rax) je 0x76bcb leaq 0x3cec5e(%rip), %rax # 0x4457e8 movq (%rax), %rdi callq 0x36400 movq %rax, -0x238(%rbp) leaq 0x3cec48(%rip), %rax # 0x4457e8 movq (%rax), %rax movq -0x238(%rbp), %rcx subq $0x1, %rcx movsbl (%rax,%rcx), %eax cmpl $0x2f, %eax jne 0x76bc9 movq -0x238(%rbp), %rax addq $-0x1, %rax movq %rax, -0x238(%rbp) jmp 0x76bcb cmpq $0x1, -0x238(%rbp) jbe 0x76c48 movq -0x238(%rbp), %rax cmpq -0x230(%rbp), %rax jae 0x76c48 movq -0x218(%rbp), %rdi leaq 0x3cebf5(%rip), %rax # 0x4457e8 movq (%rax), %rsi movq -0x238(%rbp), %rdx callq 0x36ae0 cmpl $0x0, %eax jne 0x76c46 movq -0x218(%rbp), %rax movq -0x238(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0x2f, %eax jne 0x76c46 movq -0x218(%rbp), %rax movb $0x7e, (%rax) movq -0x218(%rbp), %rdi addq $0x1, %rdi movq -0x218(%rbp), %rsi addq -0x238(%rbp), %rsi callq 0xca040 jmp 0x76c48 cmpl $0x0, -0x224(%rbp) jne 0x76d4b cmpq $0x1, -0x238(%rbp) jbe 0x76ccc movq -0x238(%rbp), %rax cmpq -0x240(%rbp), %rax jae 0x76ccc leaq -0x210(%rbp), %rdi leaq 0x3ceb6b(%rip), %rax # 0x4457e8 movq (%rax), %rsi movq -0x238(%rbp), %rdx callq 0x36ae0 cmpl $0x0, %eax jne 0x76cca movq -0x238(%rbp), %rax movsbl -0x210(%rbp,%rax), %eax cmpl $0x2f, %eax jne 0x76cca movb $0x7e, -0x210(%rbp) leaq -0x210(%rbp), %rdi addq $0x1, %rdi leaq -0x210(%rbp), %rsi addq -0x238(%rbp), %rsi callq 0xca040 jmp 0x76ccc movq -0x218(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0xc4f00 cmpl $0x0, %eax je 0x76d49 leaq -0x210(%rbp), %rdi callq 0x36400 movq %rax, -0x238(%rbp) movq -0x218(%rbp), %rax movq -0x238(%rbp), %rcx cmpb $0x0, (%rax,%rcx) je 0x76d27 movq -0x218(%rbp), %rdi movq -0x218(%rbp), %rsi addq -0x238(%rbp), %rsi callq 0xca040 jmp 0x76d47 movq -0x218(%rbp), %rax movb $0x2e, (%rax) movq -0x218(%rbp), %rax movb $0x2f, 0x1(%rax) movq -0x218(%rbp), %rax movb $0x0, 0x2(%rax) jmp 0x76d49 jmp 0x76d4b jmp 0x76d4d jmp 0x76d4f jmp 0x76d51 jmp 0x76d53 jmp 0x76d55 movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x76d70 addq $0x270, %rsp # imm = 0x270 popq %rbp retq callq 0x362a0 nopw %cs:(%rax,%rax)
pack_dirname: push rbp mov rbp, rsp sub rsp, 270h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi mov rax, [rbp+var_240] mov [rbp+var_240], rax mov rdi, [rbp+var_218] mov rsi, [rbp+var_220] call intern_filename mov rax, [rbp+var_218] mov [rbp+var_248], rax lea rdi, [rbp+var_210] mov esi, 200h xor eax, eax mov edx, eax call my_getwd mov [rbp+var_224], eax cmp eax, 0 jnz loc_76B47 lea rdi, [rbp+var_210] call _strlen mov [rbp+var_240], rax mov rax, [rbp+var_248] mov rcx, [rbp+var_218] sub rax, rcx mov [rbp+var_230], rax mov rax, [rbp+var_248] cmp rax, [rbp+var_218] jz short loc_76ABB mov rax, [rbp+var_240] cmp rax, [rbp+var_230] jnz loc_76B45 lea rdi, [rbp+var_210] mov rsi, [rbp+var_248] mov rdx, [rbp+var_230] call _memcmp cmp eax, 0 jnz loc_76B45 loc_76ABB: mov rax, [rbp+var_248] movsx eax, byte ptr [rax] cmp eax, 2Fh ; '/' jz short loc_76B45 mov rax, [rbp+var_248] movsx eax, byte ptr [rax] cmp eax, 0 jz short loc_76B45 mov rax, [rbp+var_218] mov [rbp+var_268], rax mov rax, [rbp+var_230] mov [rbp+var_260], rax lea rax, [rbp+var_210] mov [rbp+var_258], rax mov rax, [rbp+var_240] mov [rbp+var_250], rax mov rdi, [rbp+var_218] call _strlen mov rdi, [rbp+var_268] mov rsi, [rbp+var_260] mov rdx, [rbp+var_258] mov rcx, [rbp+var_250] mov r8, rax add r8, 1 call bchange loc_76B45: jmp short $+2 loc_76B47: mov rdi, [rbp+var_218] mov rsi, [rbp+var_218] call cleanup_dirname mov [rbp+var_230], rax cmp rax, 0 jz loc_76D4D mov [rbp+var_238], 0 lea rax, home_dir cmp qword ptr [rax], 0 jz short loc_76BCB lea rax, home_dir mov rdi, [rax] call _strlen mov [rbp+var_238], rax lea rax, home_dir mov rax, [rax] mov rcx, [rbp+var_238] sub rcx, 1 movsx eax, byte ptr [rax+rcx] cmp eax, 2Fh ; '/' jnz short loc_76BC9 mov rax, [rbp+var_238] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_238], rax loc_76BC9: jmp short $+2 loc_76BCB: cmp [rbp+var_238], 1 jbe short loc_76C48 mov rax, [rbp+var_238] cmp rax, [rbp+var_230] jnb short loc_76C48 mov rdi, [rbp+var_218] lea rax, home_dir mov rsi, [rax] mov rdx, [rbp+var_238] call _memcmp cmp eax, 0 jnz short loc_76C46 mov rax, [rbp+var_218] mov rcx, [rbp+var_238] movsx eax, byte ptr [rax+rcx] cmp eax, 2Fh ; '/' jnz short loc_76C46 mov rax, [rbp+var_218] mov byte ptr [rax], 7Eh ; '~' mov rdi, [rbp+var_218] add rdi, 1 mov rsi, [rbp+var_218] add rsi, [rbp+var_238] call strmov_overlapp loc_76C46: jmp short $+2 loc_76C48: cmp [rbp+var_224], 0 jnz loc_76D4B cmp [rbp+var_238], 1 jbe short loc_76CCC mov rax, [rbp+var_238] cmp rax, [rbp+var_240] jnb short loc_76CCC lea rdi, [rbp+var_210] lea rax, home_dir mov rsi, [rax] mov rdx, [rbp+var_238] call _memcmp cmp eax, 0 jnz short loc_76CCA mov rax, [rbp+var_238] movsx eax, [rbp+rax+var_210] cmp eax, 2Fh ; '/' jnz short loc_76CCA mov [rbp+var_210], 7Eh ; '~' lea rdi, [rbp+var_210] add rdi, 1 lea rsi, [rbp+var_210] add rsi, [rbp+var_238] call strmov_overlapp loc_76CCA: jmp short $+2 loc_76CCC: mov rdi, [rbp+var_218] lea rsi, [rbp+var_210] call is_prefix cmp eax, 0 jz short loc_76D49 lea rdi, [rbp+var_210] call _strlen mov [rbp+var_238], rax mov rax, [rbp+var_218] mov rcx, [rbp+var_238] cmp byte ptr [rax+rcx], 0 jz short loc_76D27 mov rdi, [rbp+var_218] mov rsi, [rbp+var_218] add rsi, [rbp+var_238] call strmov_overlapp jmp short loc_76D47 loc_76D27: mov rax, [rbp+var_218] mov byte ptr [rax], 2Eh ; '.' mov rax, [rbp+var_218] mov byte ptr [rax+1], 2Fh ; '/' mov rax, [rbp+var_218] mov byte ptr [rax+2], 0 loc_76D47: jmp short $+2 loc_76D49: jmp short $+2 loc_76D4B: jmp short $+2 loc_76D4D: jmp short $+2 loc_76D4F: jmp short $+2 loc_76D51: jmp short $+2 loc_76D53: jmp short $+2 loc_76D55: mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_76D70 add rsp, 270h pop rbp retn loc_76D70: call ___stack_chk_fail
unsigned long long pack_dirname(_BYTE *a1, long long a2) { long long v2; // rax unsigned long long v4; // [rsp+30h] [rbp-240h] unsigned long long v5; // [rsp+38h] [rbp-238h] long long v6; // [rsp+38h] [rbp-238h] long long v7; // [rsp+40h] [rbp-230h] unsigned long long v8; // [rsp+40h] [rbp-230h] int v9; // [rsp+4Ch] [rbp-224h] _BYTE *v10; // [rsp+58h] [rbp-218h] char v11; // [rsp+60h] [rbp-210h] BYREF _BYTE v12[527]; // [rsp+61h] [rbp-20Fh] BYREF *(_QWORD *)&v12[519] = __readfsqword(0x28u); v10 = a1; intern_filename(a1, a2); v9 = my_getwd(&v11, 512LL, 0LL); if ( !v9 ) { v4 = strlen(&v11); v7 = a1 - v10; if ( (a1 == v10 || v4 == v7 && !(unsigned int)memcmp(&v11, a1, v7)) && *a1 != 47 && *a1 ) { v2 = strlen(v10); bchange(v10, v7, &v11, v4, v2 + 1); } } v8 = cleanup_dirname(v10, v10); if ( v8 ) { v5 = 0LL; if ( home_dir ) { v5 = strlen(home_dir); if ( *(_BYTE *)(home_dir + v5 - 1) == 47 ) --v5; } if ( v5 > 1 && v5 < v8 && !(unsigned int)memcmp(v10, home_dir, v5) && v10[v5] == 47 ) { *v10 = 126; strmov_overlapp(v10 + 1, &v10[v5]); } if ( !v9 ) { if ( v5 > 1 && v5 < v4 && !(unsigned int)memcmp(&v11, home_dir, v5) && v12[v5 - 1] == 47 ) { v11 = 126; strmov_overlapp(v12, &v12[v5 - 1]); } if ( (unsigned int)is_prefix(v10, &v11) ) { v6 = strlen(&v11); if ( v10[v6] ) { strmov_overlapp(v10, &v10[v6]); } else { *v10 = 46; v10[1] = 47; v10[2] = 0; } } } } return __readfsqword(0x28u); }
pack_dirname: PUSH RBP MOV RBP,RSP SUB RSP,0x270 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI MOV RAX,qword ptr [RBP + -0x240] MOV qword ptr [RBP + -0x240],RAX MOV RDI,qword ptr [RBP + -0x218] MOV RSI,qword ptr [RBP + -0x220] CALL 0x00176d80 MOV RAX,qword ptr [RBP + -0x218] MOV qword ptr [RBP + -0x248],RAX LEA RDI,[RBP + -0x210] MOV ESI,0x200 XOR EAX,EAX MOV EDX,EAX CALL 0x0017cce0 MOV dword ptr [RBP + -0x224],EAX CMP EAX,0x0 JNZ 0x00176b47 LEA RDI,[RBP + -0x210] CALL 0x00136400 MOV qword ptr [RBP + -0x240],RAX MOV RAX,qword ptr [RBP + -0x248] MOV RCX,qword ptr [RBP + -0x218] SUB RAX,RCX MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x248] CMP RAX,qword ptr [RBP + -0x218] JZ 0x00176abb MOV RAX,qword ptr [RBP + -0x240] CMP RAX,qword ptr [RBP + -0x230] JNZ 0x00176b45 LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x248] MOV RDX,qword ptr [RBP + -0x230] CALL 0x00136ae0 CMP EAX,0x0 JNZ 0x00176b45 LAB_00176abb: MOV RAX,qword ptr [RBP + -0x248] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2f JZ 0x00176b45 MOV RAX,qword ptr [RBP + -0x248] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JZ 0x00176b45 MOV RAX,qword ptr [RBP + -0x218] MOV qword ptr [RBP + -0x268],RAX MOV RAX,qword ptr [RBP + -0x230] MOV qword ptr [RBP + -0x260],RAX LEA RAX,[RBP + -0x210] MOV qword ptr [RBP + -0x258],RAX MOV RAX,qword ptr [RBP + -0x240] MOV qword ptr [RBP + -0x250],RAX MOV RDI,qword ptr [RBP + -0x218] CALL 0x00136400 MOV RDI,qword ptr [RBP + -0x268] MOV RSI,qword ptr [RBP + -0x260] MOV RDX,qword ptr [RBP + -0x258] MOV RCX,qword ptr [RBP + -0x250] MOV R8,RAX ADD R8,0x1 CALL 0x00185680 LAB_00176b45: JMP 0x00176b47 LAB_00176b47: MOV RDI,qword ptr [RBP + -0x218] MOV RSI,qword ptr [RBP + -0x218] CALL 0x00176e70 MOV qword ptr [RBP + -0x230],RAX CMP RAX,0x0 JZ 0x00176d4d MOV qword ptr [RBP + -0x238],0x0 LEA RAX,[0x5457e8] CMP qword ptr [RAX],0x0 JZ 0x00176bcb LEA RAX,[0x5457e8] MOV RDI,qword ptr [RAX] CALL 0x00136400 MOV qword ptr [RBP + -0x238],RAX LEA RAX,[0x5457e8] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x238] SUB RCX,0x1 MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x2f JNZ 0x00176bc9 MOV RAX,qword ptr [RBP + -0x238] ADD RAX,-0x1 MOV qword ptr [RBP + -0x238],RAX LAB_00176bc9: JMP 0x00176bcb LAB_00176bcb: CMP qword ptr [RBP + -0x238],0x1 JBE 0x00176c48 MOV RAX,qword ptr [RBP + -0x238] CMP RAX,qword ptr [RBP + -0x230] JNC 0x00176c48 MOV RDI,qword ptr [RBP + -0x218] LEA RAX,[0x5457e8] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RBP + -0x238] CALL 0x00136ae0 CMP EAX,0x0 JNZ 0x00176c46 MOV RAX,qword ptr [RBP + -0x218] MOV RCX,qword ptr [RBP + -0x238] MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x2f JNZ 0x00176c46 MOV RAX,qword ptr [RBP + -0x218] MOV byte ptr [RAX],0x7e MOV RDI,qword ptr [RBP + -0x218] ADD RDI,0x1 MOV RSI,qword ptr [RBP + -0x218] ADD RSI,qword ptr [RBP + -0x238] CALL 0x001ca040 LAB_00176c46: JMP 0x00176c48 LAB_00176c48: CMP dword ptr [RBP + -0x224],0x0 JNZ 0x00176d4b CMP qword ptr [RBP + -0x238],0x1 JBE 0x00176ccc MOV RAX,qword ptr [RBP + -0x238] CMP RAX,qword ptr [RBP + -0x240] JNC 0x00176ccc LEA RDI,[RBP + -0x210] LEA RAX,[0x5457e8] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RBP + -0x238] CALL 0x00136ae0 CMP EAX,0x0 JNZ 0x00176cca MOV RAX,qword ptr [RBP + -0x238] MOVSX EAX,byte ptr [RBP + RAX*0x1 + -0x210] CMP EAX,0x2f JNZ 0x00176cca MOV byte ptr [RBP + -0x210],0x7e LEA RDI,[RBP + -0x210] ADD RDI,0x1 LEA RSI,[RBP + -0x210] ADD RSI,qword ptr [RBP + -0x238] CALL 0x001ca040 LAB_00176cca: JMP 0x00176ccc LAB_00176ccc: MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0x210] CALL 0x001c4f00 CMP EAX,0x0 JZ 0x00176d49 LEA RDI,[RBP + -0x210] CALL 0x00136400 MOV qword ptr [RBP + -0x238],RAX MOV RAX,qword ptr [RBP + -0x218] MOV RCX,qword ptr [RBP + -0x238] CMP byte ptr [RAX + RCX*0x1],0x0 JZ 0x00176d27 MOV RDI,qword ptr [RBP + -0x218] MOV RSI,qword ptr [RBP + -0x218] ADD RSI,qword ptr [RBP + -0x238] CALL 0x001ca040 JMP 0x00176d47 LAB_00176d27: MOV RAX,qword ptr [RBP + -0x218] MOV byte ptr [RAX],0x2e MOV RAX,qword ptr [RBP + -0x218] MOV byte ptr [RAX + 0x1],0x2f MOV RAX,qword ptr [RBP + -0x218] MOV byte ptr [RAX + 0x2],0x0 LAB_00176d47: JMP 0x00176d49 LAB_00176d49: JMP 0x00176d4b LAB_00176d4b: JMP 0x00176d4d LAB_00176d4d: JMP 0x00176d4f LAB_00176d4f: JMP 0x00176d51 LAB_00176d51: JMP 0x00176d53 LAB_00176d53: JMP 0x00176d55 LAB_00176d55: MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00176d70 ADD RSP,0x270 POP RBP RET LAB_00176d70: CALL 0x001362a0
/* WARNING: Removing unreachable block (ram,0x00176a84) */ /* WARNING: Removing unreachable block (ram,0x00176a98) */ void pack_dirname(char *param_1,int8 param_2) { int iVar1; int iVar2; size_t sVar3; ulong uVar4; long in_FS_OFFSET; ulong local_248; ulong local_240; char local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); intern_filename(param_1,param_2); iVar1 = my_getwd(local_218,0x200,0); if (((iVar1 == 0) && (local_248 = strlen(local_218), *param_1 != '/')) && (*param_1 != '\0')) { sVar3 = strlen(param_1); bchange(param_1,0,local_218,local_248,sVar3 + 1); } uVar4 = cleanup_dirname(param_1,param_1); if (uVar4 != 0) { local_240 = 0; if ((home_dir != (char *)0x0) && (local_240 = strlen(home_dir), home_dir[local_240 - 1] == '/')) { local_240 = local_240 - 1; } if (((1 < local_240) && (local_240 < uVar4)) && ((iVar2 = memcmp(param_1,home_dir,local_240), iVar2 == 0 && (param_1[local_240] == '/')))) { *param_1 = '~'; strmov_overlapp(param_1 + 1,param_1 + local_240); } if (iVar1 == 0) { if ((((1 < local_240) && (local_240 < local_248)) && (iVar1 = memcmp(local_218,home_dir,local_240), iVar1 == 0)) && (local_218[local_240] == '/')) { local_218[0] = '~'; strmov_overlapp(local_218 + 1,local_218 + local_240); } iVar1 = is_prefix(param_1,local_218); if (iVar1 != 0) { sVar3 = strlen(local_218); if (param_1[sVar3] == '\0') { *param_1 = '.'; param_1[1] = '/'; param_1[2] = '\0'; } else { strmov_overlapp(param_1,param_1 + sVar3); } } } } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
3,135
gguf_writer::pad(unsigned long) const
monkey531[P]llama/ggml/src/gguf.cpp
void pad(const size_t alignment) const { while (buf.size() % alignment != 0) { const int8_t zero = 0; write(zero); } }
O1
cpp
gguf_writer::pad(unsigned long) const: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq (%rdi), %rcx movq 0x8(%rcx), %rax subq (%rcx), %rax xorl %edx, %edx divq %rsi testq %rdx, %rdx je 0x4136c movq %rsi, %rbx movq %rdi, %r14 leaq 0xf(%rsp), %r15 movb $0x0, 0xf(%rsp) movq %r14, %rdi movq %r15, %rsi callq 0x169d0 movq (%r14), %rcx movq 0x8(%rcx), %rax subq (%rcx), %rax xorl %edx, %edx divq %rbx testq %rdx, %rdx jne 0x41348 addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq
_ZNK11gguf_writer3padEm: push r15 push r14 push rbx sub rsp, 10h mov rcx, [rdi] mov rax, [rcx+8] sub rax, [rcx] xor edx, edx div rsi test rdx, rdx jz short loc_4136C mov rbx, rsi mov r14, rdi lea r15, [rsp+28h+var_19] loc_41348: mov [rsp+28h+var_19], 0 mov rdi, r14 mov rsi, r15 call __ZNK11gguf_writer5writeIaEEvRKT_; gguf_writer::write<signed char>(signed char const&) mov rcx, [r14] mov rax, [rcx+8] sub rax, [rcx] xor edx, edx div rbx test rdx, rdx jnz short loc_41348 loc_4136C: add rsp, 10h pop rbx pop r14 pop r15 retn
unsigned long long gguf_writer::pad(gguf_writer *this, unsigned long long a2) { unsigned long long result; // rax _BYTE v3[25]; // [rsp+Fh] [rbp-19h] BYREF for ( result = (*(_QWORD *)(*(_QWORD *)this + 8LL) - **(_QWORD **)this) / a2; (*(_QWORD *)(*(_QWORD *)this + 8LL) - **(_QWORD **)this) % a2; result = (*(_QWORD *)(*(_QWORD *)this + 8LL) - **(_QWORD **)this) / a2 ) { v3[0] = 0; gguf_writer::write<signed char>(this, v3); } return result; }
pad: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RCX,qword ptr [RDI] MOV RAX,qword ptr [RCX + 0x8] SUB RAX,qword ptr [RCX] XOR EDX,EDX DIV RSI TEST RDX,RDX JZ 0x0014136c MOV RBX,RSI MOV R14,RDI LEA R15,[RSP + 0xf] LAB_00141348: MOV byte ptr [RSP + 0xf],0x0 MOV RDI,R14 MOV RSI,R15 CALL 0x001169d0 MOV RCX,qword ptr [R14] MOV RAX,qword ptr [RCX + 0x8] SUB RAX,qword ptr [RCX] XOR EDX,EDX DIV RBX TEST RDX,RDX JNZ 0x00141348 LAB_0014136c: ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* gguf_writer::pad(unsigned long) const */ ulong __thiscall gguf_writer::pad(gguf_writer *this,ulong param_1) { ulong uVar1; signed local_19; uVar1 = (*(long **)this)[1] - **(long **)this; if (uVar1 % param_1 != 0) { do { local_19 = 0; write<signed_char>(this,&local_19); uVar1 = (*(long **)this)[1] - **(long **)this; } while (uVar1 % param_1 != 0); } return uVar1 / param_1; }
3,136
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_float(double)
monkey531[P]llama/common/json.hpp
void dump_float(number_float_t x) { // NaN / inf if (!std::isfinite(x)) { o->write_characters("null", 4); return; } // If number_float_t is an IEEE-754 single or double precision number, // use the Grisu2 algorithm to produce short numbers which are // guaranteed to round-trip, using strtof and strtod, resp. // // NB: The test below works if <long double> == <double>. static constexpr bool is_ieee_single_or_double = (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) || (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024); dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>()); }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_float(double): movq %xmm0, %rax btrq $0x3f, %rax movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000 cmpq %rcx, %rax jl 0x88b40 movq (%rdi), %rdi movq (%rdi), %rax movq 0x8(%rax), %rax leaq 0x2ce79(%rip), %rsi # 0xb56b7 pushq $0x4 popq %rdx jmpq *%rax nop
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEd: movq rax, xmm0 btr rax, 3Fh ; '?' mov rcx, 7FF0000000000000h cmp rax, rcx jl _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEdSt17integral_constantIbLb1EE; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_float(double,std::integral_constant<bool,true>) mov rdi, [rdi] mov rax, [rdi] mov rax, [rax+8] lea rsi, aOnNull_0+5; "null" push 4 pop rdx jmp rax
long long nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_float( _QWORD *a1, double a2) { if ( (*(_QWORD *)&a2 & 0x7FFFFFFFFFFFFFFFuLL) < 0x7FF0000000000000LL ) return nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_float(); else return (*(long long ( **)(_QWORD, char *, long long))(*(_QWORD *)*a1 + 8LL))(*a1, "null", 4LL); }
dump_float: MOVQ RAX,XMM0 BTR RAX,0x3f MOV RCX,0x7ff0000000000000 CMP RAX,RCX JL 0x00188b40 MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x8] LEA RSI,[0x1b56b7] PUSH 0x4 POP RDX JMP RAX
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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_float(double) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_float(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,double param_1) { serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *psVar1; code *UNRECOVERED_JUMPTABLE; char *pcVar2; if (0x7fefffffffffffff < (ulong)ABS(param_1)) { /* WARNING: Could not recover jumptable at 0x00188841. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(**(long **)this + 8))(*(long **)this,"null",4); return; } psVar1 = this + 0x10; pcVar2 = to_chars<double>((char *)psVar1,(char *)(this + 0x50),param_1); UNRECOVERED_JUMPTABLE = *(code **)(**(long **)this + 8); /* WARNING: Could not recover jumptable at 0x00188b71. Too many branches */ /* WARNING: Treating indirect jump as call */ (*UNRECOVERED_JUMPTABLE)(*(long **)this,psVar1,(long)pcVar2 - (long)psVar1,UNRECOVERED_JUMPTABLE); return; }
3,137
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_float(double)
monkey531[P]llama/common/json.hpp
void dump_float(number_float_t x) { // NaN / inf if (!std::isfinite(x)) { o->write_characters("null", 4); return; } // If number_float_t is an IEEE-754 single or double precision number, // use the Grisu2 algorithm to produce short numbers which are // guaranteed to round-trip, using strtof and strtod, resp. // // NB: The test below works if <long double> == <double>. static constexpr bool is_ieee_single_or_double = (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) || (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024); dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>()); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_float(double): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq %xmm0, %rax btrq $0x3f, %rax movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000 cmpq %rcx, %rax jl 0xb8a11 movq (%rbx), %rdi movq (%rdi), %rax movq 0x8(%rax), %rax leaq 0x38cc4(%rip), %rsi # 0xf16c7 movl $0x4, %edx addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rax leaq 0x10(%rbx), %r14 leaq 0x50(%rbx), %rsi movq %r14, %rdi callq 0xb8c55 movq (%rbx), %rdi subq %r14, %rax movq (%rdi), %rcx movq 0x8(%rcx), %rcx movq %r14, %rsi movq %rax, %rdx addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rcx nop
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEd: push r14 push rbx push rax mov rbx, rdi movq rax, xmm0 btr rax, 3Fh ; '?' mov rcx, 7FF0000000000000h cmp rax, rcx jl short loc_B8A11 mov rdi, [rbx] mov rax, [rdi] mov rax, [rax+8] lea rsi, aOnNull_0+5; "null" mov edx, 4 add rsp, 8 pop rbx pop r14 jmp rax loc_B8A11: lea r14, [rbx+10h] lea rsi, [rbx+50h] mov rdi, r14; this call _ZN8nlohmann16json_abi_v3_11_36detail8to_charsIdEEPcS3_PKcT_; nlohmann::json_abi_v3_11_3::detail::to_chars<double>(char *,char const*,double) mov rdi, [rbx] sub rax, r14 mov rcx, [rdi] mov rcx, [rcx+8] mov rsi, r14 mov rdx, rax add rsp, 8 pop rbx pop r14 jmp rcx
long long nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_float( _QWORD *a1, double a2) { long long v3; // rax if ( (*(_QWORD *)&a2 & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL ) return (*(long long ( **)(_QWORD, char *, long long))(*(_QWORD *)*a1 + 8LL))(*a1, "null", 4LL); v3 = nlohmann::json_abi_v3_11_3::detail::to_chars<double>((nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)(a1 + 2)); return (*(long long ( **)(_QWORD, _QWORD *, long long))(*(_QWORD *)*a1 + 8LL))( *a1, a1 + 2, v3 - (_QWORD)(a1 + 2)); }
dump_float: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOVQ RAX,XMM0 BTR RAX,0x3f MOV RCX,0x7ff0000000000000 CMP RAX,RCX JL 0x001b8a11 MOV RDI,qword ptr [RBX] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x8] LEA RSI,[0x1f16c7] MOV EDX,0x4 ADD RSP,0x8 POP RBX POP R14 JMP RAX LAB_001b8a11: LEA R14,[RBX + 0x10] LEA RSI,[RBX + 0x50] MOV RDI,R14 CALL 0x001b8c55 MOV RDI,qword ptr [RBX] SUB RAX,R14 MOV RCX,qword ptr [RDI] MOV RCX,qword ptr [RCX + 0x8] MOV RSI,R14 MOV RDX,RAX ADD RSP,0x8 POP RBX POP R14 JMP RCX
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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_float(double) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_float(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,double param_1) { serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *psVar1; code *UNRECOVERED_JUMPTABLE; char *pcVar2; if (0x7fefffffffffffff < (ulong)ABS(param_1)) { /* WARNING: Could not recover jumptable at 0x001b8a0f. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(**(long **)this + 8))(*(long **)this,"null",4); return; } psVar1 = this + 0x10; pcVar2 = to_chars<double>((char *)psVar1,(char *)(this + 0x50),param_1); UNRECOVERED_JUMPTABLE = *(code **)(**(long **)this + 8); /* WARNING: Could not recover jumptable at 0x001b8a3b. Too many branches */ /* WARNING: Treating indirect jump as call */ (*UNRECOVERED_JUMPTABLE)(*(long **)this,psVar1,(long)pcVar2 - (long)psVar1,UNRECOVERED_JUMPTABLE); return; }
3,138
ssz_len
corpus-core[P]colibri-stateless/src/util/ssz.c
uint32_t ssz_len(ssz_ob_t ob) { switch (ob.def->type) { case SSZ_TYPE_VECTOR: return ob.def->def.vector.len; case SSZ_TYPE_LIST: { int fixed_length = ssz_fixed_length(ob.def->def.vector.type); if (fixed_length == 0) return 0; return ob.bytes.len > 4 && ssz_is_dynamic(ob.def->def.vector.type) ? uint32_from_le(ob.bytes.data) / 4 : ob.bytes.len / fixed_length; } case SSZ_TYPE_BIT_VECTOR: return ob.bytes.len * 8; case SSZ_TYPE_BIT_LIST: { uint8_t last_bit = ob.bytes.data[ob.bytes.len - 1]; if (last_bit == 1) return ob.bytes.len * 8 - 8; for (int i = 7; i >= 0; i--) { if (last_bit & (1 << i)) return ((ob.bytes.len - 1) * 8) + i; } return ob.bytes.len * 8; // this should never happen, since the spec requires to set a bit in the last byte } default: return 0; } }
O0
c
ssz_len: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq 0x10(%rax), %rax movl 0x8(%rax), %eax addl $-0x3, %eax movl %eax, %ecx movq %rcx, -0x18(%rbp) subl $0x3, %eax ja 0x9f337 movq -0x18(%rbp), %rax leaq 0x461b0(%rip), %rcx # 0xe53c4 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x20(%rbp), %rax movq 0x10(%rax), %rax movl 0x18(%rax), %eax movl %eax, -0x4(%rbp) jmp 0x9f33e movq -0x20(%rbp), %rax movq 0x10(%rax), %rax movq 0x10(%rax), %rdi callq 0x9e070 movl %eax, -0x8(%rbp) cmpl $0x0, -0x8(%rbp) jne 0x9f256 movl $0x0, -0x4(%rbp) jmp 0x9f33e movq -0x20(%rbp), %rax cmpl $0x4, (%rax) jbe 0x9f28b movq -0x20(%rbp), %rax movq 0x10(%rax), %rax movq 0x10(%rax), %rdi callq 0x9dfd0 testb $0x1, %al jne 0x9f276 jmp 0x9f28b movq -0x20(%rbp), %rax movq 0x8(%rax), %rdi callq 0x9c5c0 shrl $0x2, %eax movl %eax, -0x24(%rbp) jmp 0x9f299 movq -0x20(%rbp), %rax movl (%rax), %eax xorl %edx, %edx divl -0x8(%rbp) movl %eax, -0x24(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x9f33e movq -0x20(%rbp), %rax movl (%rax), %eax shll $0x3, %eax movl %eax, -0x4(%rbp) jmp 0x9f33e movq -0x20(%rbp), %rcx movq 0x8(%rcx), %rax movl (%rcx), %ecx subl $0x1, %ecx movl %ecx, %ecx movb (%rax,%rcx), %al movb %al, -0x9(%rbp) movzbl -0x9(%rbp), %eax cmpl $0x1, %eax jne 0x9f2e4 movq -0x20(%rbp), %rax movl (%rax), %eax shll $0x3, %eax subl $0x8, %eax movl %eax, -0x4(%rbp) jmp 0x9f33e movl $0x7, -0x10(%rbp) cmpl $0x0, -0x10(%rbp) jl 0x9f329 movzbl -0x9(%rbp), %eax movl -0x10(%rbp), %ecx movl $0x1, %edx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax je 0x9f31c movq -0x20(%rbp), %rax movl (%rax), %eax subl $0x1, %eax shll $0x3, %eax addl -0x10(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x9f33e jmp 0x9f31e movl -0x10(%rbp), %eax addl $-0x1, %eax movl %eax, -0x10(%rbp) jmp 0x9f2eb movq -0x20(%rbp), %rax movl (%rax), %eax shll $0x3, %eax movl %eax, -0x4(%rbp) jmp 0x9f33e movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
ssz_len: push rbp mov rbp, rsp sub rsp, 30h lea rax, [rbp+arg_0] mov [rbp+var_20], rax mov rax, [rax+10h] mov eax, [rax+8] add eax, 0FFFFFFFDh; switch 4 cases mov ecx, eax mov [rbp+var_18], rcx sub eax, 3 ja def_9F21B; jumptable 000000000009F21B default case mov rax, [rbp+var_18] lea rcx, jpt_9F21B movsxd rax, ds:(jpt_9F21B - 0E53C4h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_9F21D: mov rax, [rbp+var_20]; jumptable 000000000009F21B case 3 mov rax, [rax+10h] mov eax, [rax+18h] mov [rbp+var_4], eax jmp loc_9F33E loc_9F230: mov rax, [rbp+var_20]; jumptable 000000000009F21B case 4 mov rax, [rax+10h] mov rdi, [rax+10h] call ssz_fixed_length mov [rbp+var_8], eax cmp [rbp+var_8], 0 jnz short loc_9F256 mov [rbp+var_4], 0 jmp loc_9F33E loc_9F256: mov rax, [rbp+var_20] cmp dword ptr [rax], 4 jbe short loc_9F28B mov rax, [rbp+var_20] mov rax, [rax+10h] mov rdi, [rax+10h] call ssz_is_dynamic test al, 1 jnz short loc_9F276 jmp short loc_9F28B loc_9F276: mov rax, [rbp+var_20] mov rdi, [rax+8] call uint32_from_le shr eax, 2 mov [rbp+var_24], eax jmp short loc_9F299 loc_9F28B: mov rax, [rbp+var_20] mov eax, [rax] xor edx, edx div [rbp+var_8] mov [rbp+var_24], eax loc_9F299: mov eax, [rbp+var_24] mov [rbp+var_4], eax jmp loc_9F33E loc_9F2A4: mov rax, [rbp+var_20]; jumptable 000000000009F21B case 5 mov eax, [rax] shl eax, 3 mov [rbp+var_4], eax jmp loc_9F33E loc_9F2B5: mov rcx, [rbp+var_20]; jumptable 000000000009F21B case 6 mov rax, [rcx+8] mov ecx, [rcx] sub ecx, 1 mov ecx, ecx mov al, [rax+rcx] mov [rbp+var_9], al movzx eax, [rbp+var_9] cmp eax, 1 jnz short loc_9F2E4 mov rax, [rbp+var_20] mov eax, [rax] shl eax, 3 sub eax, 8 mov [rbp+var_4], eax jmp short loc_9F33E loc_9F2E4: mov [rbp+var_10], 7 loc_9F2EB: cmp [rbp+var_10], 0 jl short loc_9F329 movzx eax, [rbp+var_9] mov ecx, [rbp+var_10] mov edx, 1 shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jz short loc_9F31C mov rax, [rbp+var_20] mov eax, [rax] sub eax, 1 shl eax, 3 add eax, [rbp+var_10] mov [rbp+var_4], eax jmp short loc_9F33E loc_9F31C: jmp short $+2 loc_9F31E: mov eax, [rbp+var_10] add eax, 0FFFFFFFFh mov [rbp+var_10], eax jmp short loc_9F2EB loc_9F329: mov rax, [rbp+var_20] mov eax, [rax] shl eax, 3 mov [rbp+var_4], eax jmp short loc_9F33E def_9F21B: mov [rbp+var_4], 0; jumptable 000000000009F21B default case loc_9F33E: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long ssz_len( _DWORD a1, _DWORD a2, _DWORD a3, _DWORD a4, _DWORD a5, _DWORD a6, unsigned int a7, unsigned __int8 *a8, long long a9) { unsigned int v10; // [rsp+Ch] [rbp-24h] int i; // [rsp+20h] [rbp-10h] unsigned __int8 v12; // [rsp+27h] [rbp-9h] unsigned int v13; // [rsp+28h] [rbp-8h] unsigned int v14; // [rsp+2Ch] [rbp-4h] switch ( *(_DWORD *)(a9 + 8) ) { case 3: v14 = *(_DWORD *)(a9 + 24); break; case 4: v13 = ssz_fixed_length(*(_DWORD **)(a9 + 16)); if ( v13 ) { if ( a7 > 4 && (ssz_is_dynamic(*(_QWORD *)(a9 + 16)) & 1) != 0 ) v10 = (unsigned int)uint32_from_le(a8) >> 2; else v10 = a7 / v13; v14 = v10; } else { v14 = 0; } break; case 5: v14 = 8 * a7; break; case 6: v12 = a8[a7 - 1]; if ( v12 == 1 ) { v14 = 8 * a7 - 8; } else { for ( i = 7; i >= 0; --i ) { if ( ((1 << i) & v12) != 0 ) return i + 8 * (a7 - 1); } v14 = 8 * a7; } break; default: v14 = 0; break; } return v14; }
ssz_len: PUSH RBP MOV RBP,RSP SUB RSP,0x30 LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RAX + 0x10] MOV EAX,dword ptr [RAX + 0x8] ADD EAX,-0x3 MOV ECX,EAX MOV qword ptr [RBP + -0x18],RCX SUB EAX,0x3 JA 0x0019f337 MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x1e53c4] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_3: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x10] MOV EAX,dword ptr [RAX + 0x18] MOV dword ptr [RBP + -0x4],EAX JMP 0x0019f33e caseD_4: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x10] MOV RDI,qword ptr [RAX + 0x10] CALL 0x0019e070 MOV dword ptr [RBP + -0x8],EAX CMP dword ptr [RBP + -0x8],0x0 JNZ 0x0019f256 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0019f33e LAB_0019f256: MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX],0x4 JBE 0x0019f28b MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x10] MOV RDI,qword ptr [RAX + 0x10] CALL 0x0019dfd0 TEST AL,0x1 JNZ 0x0019f276 JMP 0x0019f28b LAB_0019f276: MOV RAX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RAX + 0x8] CALL 0x0019c5c0 SHR EAX,0x2 MOV dword ptr [RBP + -0x24],EAX JMP 0x0019f299 LAB_0019f28b: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] XOR EDX,EDX DIV dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x24],EAX LAB_0019f299: MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX JMP 0x0019f33e caseD_5: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] SHL EAX,0x3 MOV dword ptr [RBP + -0x4],EAX JMP 0x0019f33e caseD_6: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RCX + 0x8] MOV ECX,dword ptr [RCX] SUB ECX,0x1 MOV ECX,ECX MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x9],AL MOVZX EAX,byte ptr [RBP + -0x9] CMP EAX,0x1 JNZ 0x0019f2e4 MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] SHL EAX,0x3 SUB EAX,0x8 MOV dword ptr [RBP + -0x4],EAX JMP 0x0019f33e LAB_0019f2e4: MOV dword ptr [RBP + -0x10],0x7 LAB_0019f2eb: CMP dword ptr [RBP + -0x10],0x0 JL 0x0019f329 MOVZX EAX,byte ptr [RBP + -0x9] MOV ECX,dword ptr [RBP + -0x10] MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JZ 0x0019f31c MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] SUB EAX,0x1 SHL EAX,0x3 ADD EAX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x4],EAX JMP 0x0019f33e LAB_0019f31c: JMP 0x0019f31e LAB_0019f31e: MOV EAX,dword ptr [RBP + -0x10] ADD EAX,-0x1 MOV dword ptr [RBP + -0x10],EAX JMP 0x0019f2eb LAB_0019f329: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] SHL EAX,0x3 MOV dword ptr [RBP + -0x4],EAX JMP 0x0019f33e default: MOV dword ptr [RBP + -0x4],0x0 LAB_0019f33e: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
/* WARNING: Restarted to delay deadcode elimination for space: stack */ uint ssz_len(void) { byte bVar1; ulong uVar2; uint in_stack_00000008; long in_stack_00000010; long in_stack_00000018; uint local_2c; int local_18; uint local_c; switch(*(int4 *)(in_stack_00000018 + 8)) { case 3: local_c = *(uint *)(in_stack_00000018 + 0x18); break; case 4: local_2c = ssz_fixed_length(*(int8 *)(in_stack_00000018 + 0x10)); if (local_2c == 0) { local_c = 0; } else { if ((in_stack_00000008 < 5) || (uVar2 = ssz_is_dynamic(*(int8 *)(in_stack_00000018 + 0x10)), (uVar2 & 1) == 0)) { local_2c = in_stack_00000008 / local_2c; } else { local_2c = uint32_from_le(in_stack_00000010); local_2c = local_2c >> 2; } local_c = local_2c; } break; case 5: local_c = in_stack_00000008 << 3; break; case 6: bVar1 = *(byte *)(in_stack_00000010 + (ulong)(in_stack_00000008 - 1)); if (bVar1 == 1) { local_c = in_stack_00000008 * 8 - 8; } else { for (local_18 = 7; -1 < local_18; local_18 = local_18 + -1) { if (((uint)bVar1 & 1 << ((byte)local_18 & 0x1f)) != 0) { return (in_stack_00000008 - 1) * 8 + local_18; } } local_c = in_stack_00000008 << 3; } break; default: local_c = 0; } return local_c; }
3,139
ssz_len
corpus-core[P]colibri-stateless/src/util/ssz.c
uint32_t ssz_len(ssz_ob_t ob) { switch (ob.def->type) { case SSZ_TYPE_VECTOR: return ob.def->def.vector.len; case SSZ_TYPE_LIST: { int fixed_length = ssz_fixed_length(ob.def->def.vector.type); if (fixed_length == 0) return 0; return ob.bytes.len > 4 && ssz_is_dynamic(ob.def->def.vector.type) ? uint32_from_le(ob.bytes.data) / 4 : ob.bytes.len / fixed_length; } case SSZ_TYPE_BIT_VECTOR: return ob.bytes.len * 8; case SSZ_TYPE_BIT_LIST: { uint8_t last_bit = ob.bytes.data[ob.bytes.len - 1]; if (last_bit == 1) return ob.bytes.len * 8 - 8; for (int i = 7; i >= 0; i--) { if (last_bit & (1 << i)) return ((ob.bytes.len - 1) * 8) + i; } return ob.bytes.len * 8; // this should never happen, since the spec requires to set a bit in the last byte } default: return 0; } }
O3
c
ssz_len: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq 0x40(%rsp), %rax movl 0x8(%rax), %ecx xorl %ebx, %ebx addl $-0x3, %ecx cmpl $0x3, %ecx ja 0x52833 leaq 0x30(%rsp), %r12 leaq 0x3766a(%rip), %rdx # 0x89e00 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movl 0x18(%rax), %ebx jmp 0x52833 movl (%r12), %ebx shll $0x3, %ebx jmp 0x52833 movq 0x8(%r12), %rcx movl (%r12), %eax leal -0x1(%rax), %edx movzbl (%rcx,%rdx), %ecx cmpl $0x1, %ecx jne 0x5280b leal -0x8(,%rax,8), %ebx jmp 0x52833 movq 0x10(%rax), %r15 movq %r15, %rdi callq 0x51cbc movq %rax, %r14 testl %r14d, %r14d je 0x52833 movl (%r12), %ebx cmpl $0x5, %ebx jb 0x5282a movq %r15, %rdi callq 0x51c74 testb %al, %al je 0x5282a movq 0x8(%r12), %rdi callq 0x50f51 movl %eax, %ebx shrl $0x2, %ebx jmp 0x52833 leal -0x1(,%rax,8), %ebx movl $0x7, %edx btl %edx, %ecx jb 0x52833 decl %ebx addl $-0x1, %edx jb 0x52817 shll $0x3, %eax movl %eax, %ebx jmp 0x52833 movl %ebx, %eax xorl %edx, %edx divl %r14d movl %eax, %ebx movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
ssz_len: push r15 push r14 push r12 push rbx push rax mov rax, [rsp+28h+arg_10] mov ecx, [rax+8] xor ebx, ebx add ecx, 0FFFFFFFDh; switch 4 cases cmp ecx, 3 ja def_5279D; jumptable 000000000005279D default case lea r12, [rsp+28h+arg_0] lea rdx, jpt_5279D movsxd rcx, ds:(jpt_5279D - 89E00h)[rdx+rcx*4] add rcx, rdx jmp rcx; switch jump loc_5279F: mov ebx, [rax+18h]; jumptable 000000000005279D case 3 jmp def_5279D; jumptable 000000000005279D default case loc_527A7: mov ebx, [r12]; jumptable 000000000005279D case 5 shl ebx, 3 jmp def_5279D; jumptable 000000000005279D default case loc_527B3: mov rcx, [r12+8]; jumptable 000000000005279D case 6 mov eax, [r12] lea edx, [rax-1] movzx ecx, byte ptr [rcx+rdx] cmp ecx, 1 jnz short loc_5280B lea ebx, ds:0FFFFFFFFFFFFFFF8h[rax*8] jmp short def_5279D; jumptable 000000000005279D default case loc_527D1: mov r15, [rax+10h]; jumptable 000000000005279D case 4 mov rdi, r15 call ssz_fixed_length mov r14, rax test r14d, r14d jz short def_5279D; jumptable 000000000005279D default case mov ebx, [r12] cmp ebx, 5 jb short loc_5282A mov rdi, r15 call ssz_is_dynamic test al, al jz short loc_5282A mov rdi, [r12+8] call uint32_from_le mov ebx, eax shr ebx, 2 jmp short def_5279D; jumptable 000000000005279D default case loc_5280B: lea ebx, ds:0FFFFFFFFFFFFFFFFh[rax*8] mov edx, 7 loc_52817: bt ecx, edx jb short def_5279D; jumptable 000000000005279D default case dec ebx add edx, 0FFFFFFFFh jb short loc_52817 shl eax, 3 mov ebx, eax jmp short def_5279D; jumptable 000000000005279D default case loc_5282A: mov eax, ebx xor edx, edx div r14d mov ebx, eax def_5279D: mov eax, ebx; jumptable 000000000005279D default case add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long ssz_len( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, unsigned int a7, unsigned int *a8, long long a9) { unsigned int v9; // ebx int v10; // ecx long long v11; // r15 unsigned int v12; // r14d unsigned int v13; // edx v9 = 0; switch ( *(_DWORD *)(a9 + 8) ) { case 3: v9 = *(_DWORD *)(a9 + 24); break; case 4: v11 = *(_QWORD *)(a9 + 16); v12 = ssz_fixed_length(v11); if ( v12 ) { if ( a7 >= 5 && (unsigned __int8)ssz_is_dynamic(v11) ) v9 = (unsigned int)uint32_from_le(a8) >> 2; else v9 = a7 / v12; } break; case 5: v9 = 8 * a7; break; case 6: v10 = *((unsigned __int8 *)a8 + a7 - 1); if ( v10 == 1 ) { v9 = 8 * a7 - 8; } else { v9 = 8 * a7 - 1; v13 = 7; while ( !_bittest(&v10, v13) ) { --v9; if ( v13-- == 0 ) return 8 * a7; } } break; default: return v9; } return v9; }
ssz_len: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RAX,qword ptr [RSP + 0x40] MOV ECX,dword ptr [RAX + 0x8] XOR EBX,EBX ADD ECX,-0x3 CMP ECX,0x3 JA 0x00152833 LEA R12,[RSP + 0x30] LEA RDX,[0x189e00] MOVSXD RCX,dword ptr [RDX + RCX*0x4] ADD RCX,RDX switchD: JMP RCX caseD_3: MOV EBX,dword ptr [RAX + 0x18] JMP 0x00152833 caseD_5: MOV EBX,dword ptr [R12] SHL EBX,0x3 JMP 0x00152833 caseD_6: MOV RCX,qword ptr [R12 + 0x8] MOV EAX,dword ptr [R12] LEA EDX,[RAX + -0x1] MOVZX ECX,byte ptr [RCX + RDX*0x1] CMP ECX,0x1 JNZ 0x0015280b LEA EBX,[-0x8 + RAX*0x8] JMP 0x00152833 caseD_4: MOV R15,qword ptr [RAX + 0x10] MOV RDI,R15 CALL 0x00151cbc MOV R14,RAX TEST R14D,R14D JZ 0x00152833 MOV EBX,dword ptr [R12] CMP EBX,0x5 JC 0x0015282a MOV RDI,R15 CALL 0x00151c74 TEST AL,AL JZ 0x0015282a MOV RDI,qword ptr [R12 + 0x8] CALL 0x00150f51 MOV EBX,EAX SHR EBX,0x2 JMP 0x00152833 LAB_0015280b: LEA EBX,[-0x1 + RAX*0x8] MOV EDX,0x7 LAB_00152817: BT ECX,EDX JC 0x00152833 DEC EBX ADD EDX,-0x1 JC 0x00152817 SHL EAX,0x3 MOV EBX,EAX JMP 0x00152833 LAB_0015282a: MOV EAX,EBX XOR EDX,EDX DIV R14D MOV EBX,EAX default: MOV EAX,EBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
uint ssz_len(void) { byte bVar1; int8 uVar2; char cVar3; uint uVar4; uint uVar5; bool bVar6; uint in_stack_00000008; long in_stack_00000010; long in_stack_00000018; uVar4 = 0; switch(*(int4 *)(in_stack_00000018 + 8)) { case 3: uVar4 = *(uint *)(in_stack_00000018 + 0x18); break; case 4: uVar2 = *(int8 *)(in_stack_00000018 + 0x10); uVar5 = ssz_fixed_length(uVar2); uVar4 = 0; if (uVar5 != 0) { if ((in_stack_00000008 < 5) || (cVar3 = ssz_is_dynamic(uVar2), cVar3 == '\0')) { uVar4 = in_stack_00000008 / uVar5; } else { uVar4 = uint32_from_le(in_stack_00000010); uVar4 = uVar4 >> 2; } } break; case 5: uVar4 = in_stack_00000008 << 3; break; case 6: bVar1 = *(byte *)(in_stack_00000010 + (ulong)(in_stack_00000008 - 1)); if (bVar1 == 1) { uVar4 = in_stack_00000008 * 8 - 8; } else { uVar4 = in_stack_00000008 * 8; uVar5 = 7; do { uVar4 = uVar4 - 1; if ((bVar1 >> (uVar5 & 0x1f) & 1) != 0) { return uVar4; } bVar6 = uVar5 != 0; uVar5 = uVar5 - 1; } while (bVar6); uVar4 = in_stack_00000008 << 3; } } return uVar4; }
3,140
get_rowpos_in_head_or_tail_page
eloqsql/storage/maria/ma_blockrec.c
static my_bool get_rowpos_in_head_or_tail_page(MARIA_HA *info, const MARIA_BITMAP_BLOCK *block, uchar *buff, uint length, uint page_type, enum pagecache_page_lock lock, uint rownr, struct st_row_pos_info *res) { MARIA_PINNED_PAGE page_link; MARIA_SHARE *share= info->s; uchar *dir; uint block_size= share->block_size; uint max_entry, max_length, rec_offset; DBUG_ENTER("get_rowpos_in_head_or_tail_page"); if (block->org_bitmap_value == 0) /* Empty block */ { /* New page */ make_empty_page(info, buff, page_type, 0); res->empty_space= block_size - PAGE_HEADER_SIZE(share) - PAGE_SUFFIX_SIZE; } else { page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; buff= pagecache_read(share->pagecache, &info->dfile, block->page, 0, 0, share->page_type, lock, &page_link.link); page_link.changed= buff != 0; push_dynamic(&info->pinned_pages, (void*) &page_link); if (!page_link.changed) /* Read error */ { _ma_set_fatal_error(info, my_errno); DBUG_RETURN(1); } DBUG_ASSERT((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == (uchar) page_type); if ((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) != (uchar) page_type) goto err; res->empty_space= uint2korr(buff + EMPTY_SPACE_OFFSET); } max_entry= (uint) buff[DIR_COUNT_OFFSET]; if (max_entry <= rownr) { if (extend_directory(info, buff, block_size, max_entry, rownr, &res->empty_space, page_type == HEAD_PAGE)) goto err; } /* The following dir entry is unused in case of insert / update but not in case of undo_update / undo_delete */ dir= dir_entry_pos(buff, block_size, rownr); if (extend_area_on_page(info, buff, dir, rownr, length, &res->empty_space, &rec_offset, &max_length, page_type == HEAD_PAGE)) goto err; res->buff= buff; res->rownr= rownr; res->dir= dir; res->data= buff + rec_offset; res->length= length; DBUG_RETURN(0); err: DBUG_ASSERT(!maria_assert_if_crashed_table); _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); /* File crashed */ DBUG_RETURN(1); }
O3
c
get_rowpos_in_head_or_tail_page: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r9, -0x40(%rbp) movl %ecx, -0x2c(%rbp) movq %rdi, %r14 movq (%rdi), %rbx movl 0x7bc(%rbx), %r12d cmpb $0x0, 0x15(%rsi) je 0x51978 movl %r8d, -0x30(%rbp) leaq -0x60(%rbp), %r15 movl $0x6, 0x8(%r15) movq 0x600(%rbx), %rdi leaq 0x470(%r14), %rax movq (%rsi), %rdx movl 0x7d4(%rbx), %r9d movq %rax, %rsi xorl %ecx, %ecx xorl %r8d, %r8d pushq %r15 pushq $0x4 callq 0x83f42 addq $0x10, %rsp movq %rax, %r13 testq %rax, %rax setne 0x10(%r15) leaq 0x2e8(%r14), %rdi movq %r15, %rsi callq 0xb0cee cmpb $0x0, 0x10(%r15) je 0x51a3e movb 0x7(%r13), %al andb $0x7, %al movl -0x30(%rbp), %r8d cmpb %r8b, %al movq -0x40(%rbp), %rbx jne 0x51a34 movzwl 0xa(%r13), %eax jmp 0x519a3 movq %rdx, %r13 movq %r14, %rdi movq %rdx, %rsi movl %r8d, %edx xorl %ecx, %ecx movl %r8d, %r15d callq 0x4fc62 movl %r15d, %r8d movl 0xc18(%rbx), %ecx movl %r12d, %eax subl %ecx, %eax addl $-0x10, %eax movq -0x40(%rbp), %rbx movq 0x10(%rbp), %r15 movl %eax, 0x20(%r15) movzbl 0x8(%r13), %ecx cmpl %ebx, %ecx ja 0x519e9 leaq 0x20(%r15), %r9 xorl %eax, %eax cmpl $0x1, %r8d sete %al subq $0x8, %rsp movq %r14, %rdi movq %r13, %rsi movl %r12d, %edx movl %r8d, %r15d movl %ebx, %r8d pushq %rax callq 0x4fcf8 movl %r15d, %r8d movq 0x10(%rbp), %r15 addq $0x10, %rsp testb %al, %al jne 0x51a34 addq %r13, %r12 leal (,%rbx,4), %eax subq %rax, %r12 addq $-0x8, %r12 leaq 0x20(%r15), %r9 xorl %eax, %eax cmpl $0x1, %r8d sete %al subq $0x8, %rsp leaq -0x44(%rbp), %r10 leaq -0x34(%rbp), %r11 movq %r14, %rdi movq %r13, %rsi movq %r12, %rdx movl %ebx, %ecx movl -0x2c(%rbp), %r8d pushq %rax pushq %r10 pushq %r11 callq 0x4fe6e addq $0x20, %rsp testb %al, %al je 0x51a5e movq %r14, %rdi movl $0x7f, %esi jmp 0x51a48 callq 0xc5c9a movl (%rax), %esi movq %r14, %rdi callq 0x3dca8 movb $0x1, %al addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r13, (%r15) movl %ebx, 0x1c(%r15) movq %r12, 0x10(%r15) movl -0x34(%rbp), %eax addq %r13, %rax movq %rax, 0x8(%r15) movl -0x2c(%rbp), %eax movl %eax, 0x18(%r15) xorl %eax, %eax jmp 0x51a4f
get_rowpos_in_head_or_tail_page: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_40], r9 mov [rbp+var_2C], ecx mov r14, rdi mov rbx, [rdi] mov r12d, [rbx+7BCh] cmp byte ptr [rsi+15h], 0 jz loc_51978 mov [rbp+var_30], r8d lea r15, [rbp+var_60] mov dword ptr [r15+8], 6 mov rdi, [rbx+600h] lea rax, [r14+470h] mov rdx, [rsi] mov r9d, [rbx+7D4h] mov rsi, rax xor ecx, ecx xor r8d, r8d push r15 push 4 call pagecache_read add rsp, 10h mov r13, rax test rax, rax setnz byte ptr [r15+10h] lea rdi, [r14+2E8h] mov rsi, r15 call insert_dynamic cmp byte ptr [r15+10h], 0 jz loc_51A3E mov al, [r13+7] and al, 7 mov r8d, [rbp+var_30] cmp al, r8b mov rbx, [rbp+var_40] jnz loc_51A34 movzx eax, word ptr [r13+0Ah] jmp short loc_519A3 loc_51978: mov r13, rdx mov rdi, r14 mov rsi, rdx mov edx, r8d xor ecx, ecx mov r15d, r8d call make_empty_page mov r8d, r15d mov ecx, [rbx+0C18h] mov eax, r12d sub eax, ecx add eax, 0FFFFFFF0h mov rbx, [rbp+var_40] loc_519A3: mov r15, [rbp+arg_0] mov [r15+20h], eax movzx ecx, byte ptr [r13+8] cmp ecx, ebx ja short loc_519E9 lea r9, [r15+20h] xor eax, eax cmp r8d, 1 setz al sub rsp, 8 mov rdi, r14 mov rsi, r13 mov edx, r12d mov r15d, r8d mov r8d, ebx push rax call extend_directory mov r8d, r15d mov r15, [rbp+arg_0] add rsp, 10h test al, al jnz short loc_51A34 loc_519E9: add r12, r13 lea eax, ds:0[rbx*4] sub r12, rax add r12, 0FFFFFFFFFFFFFFF8h lea r9, [r15+20h] xor eax, eax cmp r8d, 1 setz al sub rsp, 8 lea r10, [rbp+var_44] lea r11, [rbp+var_34] mov rdi, r14 mov rsi, r13 mov rdx, r12 mov ecx, ebx mov r8d, [rbp+var_2C] push rax push r10 push r11 call extend_area_on_page add rsp, 20h test al, al jz short loc_51A5E loc_51A34: mov rdi, r14 mov esi, 7Fh jmp short loc_51A48 loc_51A3E: call _my_thread_var mov esi, [rax] mov rdi, r14 loc_51A48: call _ma_set_fatal_error mov al, 1 loc_51A4F: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_51A5E: mov [r15], r13 mov [r15+1Ch], ebx mov [r15+10h], r12 mov eax, [rbp+var_34] add rax, r13 mov [r15+8], rax mov eax, [rbp+var_2C] mov [r15+18h], eax xor eax, eax jmp short loc_51A4F
char get_rowpos_in_head_or_tail_page( long long *a1, long long a2, _BYTE *a3, unsigned int a4, int a5, long long a6, long long a7) { long long v8; // rbx long long v9; // r12 long long v10; // r13 long long *v11; // rdi long long v12; // rdx long long v13; // rcx int v14; // r9d long long v15; // r8 unsigned int v16; // ebx int v17; // eax long long v19; // r15 unsigned int v20; // ecx unsigned int v21; // r15d char v22; // al unsigned __int16 *v23; // r12 long long *v24; // rdi int v25; // esi _BYTE v27[8]; // [rsp+0h] [rbp-60h] BYREF int v28; // [rsp+8h] [rbp-58h] bool v29; // [rsp+10h] [rbp-50h] int v30; // [rsp+1Ch] [rbp-44h] BYREF long long v31; // [rsp+20h] [rbp-40h] unsigned int v32; // [rsp+2Ch] [rbp-34h] BYREF unsigned int v33; // [rsp+30h] [rbp-30h] unsigned int v34; // [rsp+34h] [rbp-2Ch] v31 = a6; v34 = a4; v8 = *a1; v9 = *(unsigned int *)(*a1 + 1980); if ( *(_BYTE *)(a2 + 21) ) { v33 = a5; v28 = 6; v10 = pagecache_read( *(_QWORD *)(v8 + 1536), (int)a1 + 1136, *(_QWORD *)a2, 0, 0, *(_DWORD *)(v8 + 2004), 4, (long long)v27); v29 = v10 != 0; v11 = a1 + 93; insert_dynamic(a1 + 93, v27); if ( !v29 ) { v25 = *(_DWORD *)my_thread_var(v11); v24 = a1; goto LABEL_11; } v15 = v33; v16 = v31; if ( (*(_BYTE *)(v10 + 7) & 7) != (_BYTE)v33 ) { LABEL_9: v24 = a1; v25 = 127; LABEL_11: ma_set_fatal_error(v24, v25, v12, v13, v15, v14); return 1; } v17 = *(unsigned __int16 *)(v10 + 10); } else { v10 = (long long)a3; make_empty_page((long long)a1, a3, a5, 0); LODWORD(v15) = a5; v17 = v9 - *(_DWORD *)(v8 + 3096) - 16; v16 = v31; } v19 = a7; *(_DWORD *)(a7 + 32) = v17; v20 = *(unsigned __int8 *)(v10 + 8); if ( v20 <= v16 ) { v21 = v15; v22 = extend_directory(a1, v10, v9, v20, v16, (unsigned int *)(a7 + 32), (_DWORD)v15 == 1); v15 = v21; v19 = a7; if ( v22 ) goto LABEL_9; } v23 = (unsigned __int16 *)(v10 + v9 - 4 * v16 - 8); if ( extend_area_on_page((long long)a1, v10, v23, v16, v34, (_DWORD *)(v19 + 32), &v32, &v30, (_DWORD)v15 == 1) ) goto LABEL_9; *(_QWORD *)v19 = v10; *(_DWORD *)(v19 + 28) = v16; *(_QWORD *)(v19 + 16) = v23; *(_QWORD *)(v19 + 8) = v10 + v32; *(_DWORD *)(v19 + 24) = v34; return 0; }
get_rowpos_in_head_or_tail_page: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV qword ptr [RBP + -0x40],R9 MOV dword ptr [RBP + -0x2c],ECX MOV R14,RDI MOV RBX,qword ptr [RDI] MOV R12D,dword ptr [RBX + 0x7bc] CMP byte ptr [RSI + 0x15],0x0 JZ 0x00151978 MOV dword ptr [RBP + -0x30],R8D LEA R15,[RBP + -0x60] MOV dword ptr [R15 + 0x8],0x6 MOV RDI,qword ptr [RBX + 0x600] LEA RAX,[R14 + 0x470] MOV RDX,qword ptr [RSI] MOV R9D,dword ptr [RBX + 0x7d4] MOV RSI,RAX XOR ECX,ECX XOR R8D,R8D PUSH R15 PUSH 0x4 CALL 0x00183f42 ADD RSP,0x10 MOV R13,RAX TEST RAX,RAX SETNZ byte ptr [R15 + 0x10] LEA RDI,[R14 + 0x2e8] MOV RSI,R15 CALL 0x001b0cee CMP byte ptr [R15 + 0x10],0x0 JZ 0x00151a3e MOV AL,byte ptr [R13 + 0x7] AND AL,0x7 MOV R8D,dword ptr [RBP + -0x30] CMP AL,R8B MOV RBX,qword ptr [RBP + -0x40] JNZ 0x00151a34 MOVZX EAX,word ptr [R13 + 0xa] JMP 0x001519a3 LAB_00151978: MOV R13,RDX MOV RDI,R14 MOV RSI,RDX MOV EDX,R8D XOR ECX,ECX MOV R15D,R8D CALL 0x0014fc62 MOV R8D,R15D MOV ECX,dword ptr [RBX + 0xc18] MOV EAX,R12D SUB EAX,ECX ADD EAX,-0x10 MOV RBX,qword ptr [RBP + -0x40] LAB_001519a3: MOV R15,qword ptr [RBP + 0x10] MOV dword ptr [R15 + 0x20],EAX MOVZX ECX,byte ptr [R13 + 0x8] CMP ECX,EBX JA 0x001519e9 LEA R9,[R15 + 0x20] XOR EAX,EAX CMP R8D,0x1 SETZ AL SUB RSP,0x8 MOV RDI,R14 MOV RSI,R13 MOV EDX,R12D MOV R15D,R8D MOV R8D,EBX PUSH RAX CALL 0x0014fcf8 MOV R8D,R15D MOV R15,qword ptr [RBP + 0x10] ADD RSP,0x10 TEST AL,AL JNZ 0x00151a34 LAB_001519e9: ADD R12,R13 LEA EAX,[RBX*0x4] SUB R12,RAX ADD R12,-0x8 LEA R9,[R15 + 0x20] XOR EAX,EAX CMP R8D,0x1 SETZ AL SUB RSP,0x8 LEA R10,[RBP + -0x44] LEA R11,[RBP + -0x34] MOV RDI,R14 MOV RSI,R13 MOV RDX,R12 MOV ECX,EBX MOV R8D,dword ptr [RBP + -0x2c] PUSH RAX PUSH R10 PUSH R11 CALL 0x0014fe6e ADD RSP,0x20 TEST AL,AL JZ 0x00151a5e LAB_00151a34: MOV RDI,R14 MOV ESI,0x7f JMP 0x00151a48 LAB_00151a3e: CALL 0x001c5c9a MOV ESI,dword ptr [RAX] MOV RDI,R14 LAB_00151a48: CALL 0x0013dca8 MOV AL,0x1 LAB_00151a4f: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00151a5e: MOV qword ptr [R15],R13 MOV dword ptr [R15 + 0x1c],EBX MOV qword ptr [R15 + 0x10],R12 MOV EAX,dword ptr [RBP + -0x34] ADD RAX,R13 MOV qword ptr [R15 + 0x8],RAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [R15 + 0x18],EAX XOR EAX,EAX JMP 0x00151a4f
int8 get_rowpos_in_head_or_tail_page (long *param_1,int8 *param_2,long param_3,int4 param_4,int param_5, ulong param_6,long *param_7) { uint uVar1; ulong uVar2; char cVar3; uint uVar4; int4 *puVar5; int4 uVar6; long lVar7; int1 local_68 [8]; int4 local_60; char local_58; int1 local_4c [4]; ulong local_48; uint local_3c; int local_38; int4 local_34; lVar7 = *param_1; uVar1 = *(uint *)(lVar7 + 0x7bc); local_48 = param_6; local_34 = param_4; if (*(char *)((long)param_2 + 0x15) == '\0') { make_empty_page(param_1,param_3,param_5,0); uVar4 = (uVar1 - *(int *)(lVar7 + 0xc18)) - 0x10; LAB_001519a3: uVar2 = local_48; *(uint *)(param_7 + 4) = uVar4; uVar4 = (uint)local_48; if ((uVar4 < *(byte *)(param_3 + 8)) || (cVar3 = extend_directory(param_1,param_3,(ulong)uVar1,*(byte *)(param_3 + 8), local_48 & 0xffffffff,param_7 + 4,param_5 == 1), cVar3 == '\0')) { lVar7 = (((ulong)uVar1 + param_3) - (ulong)(uVar4 * 4)) + -8; cVar3 = extend_area_on_page(param_1,param_3,lVar7,uVar2 & 0xffffffff,local_34,param_7 + 4, &local_3c,local_4c,param_5 == 1); if (cVar3 == '\0') { *param_7 = param_3; *(uint *)((long)param_7 + 0x1c) = uVar4; param_7[2] = lVar7; param_7[1] = (ulong)local_3c + param_3; *(int4 *)(param_7 + 3) = local_34; return 0; } } } else { local_60 = 6; local_38 = param_5; param_3 = pagecache_read(*(int8 *)(lVar7 + 0x600),param_1 + 0x8e,*param_2,0,0, *(int4 *)(lVar7 + 0x7d4),4,local_68); local_58 = param_3 != 0; insert_dynamic(param_1 + 0x5d,local_68); if (local_58 == '\0') { puVar5 = (int4 *)_my_thread_var(); uVar6 = *puVar5; goto LAB_00151a48; } if ((*(byte *)(param_3 + 7) & 7) == (byte)local_38) { uVar4 = (uint)*(ushort *)(param_3 + 10); param_5 = local_38; goto LAB_001519a3; } } uVar6 = 0x7f; LAB_00151a48: _ma_set_fatal_error(param_1,uVar6); return 1; }
3,141
my_strnxfrm_tis620_nopad
eloqsql/strings/ctype-tis620.c
static size_t my_strnxfrm_tis620_nopad(CHARSET_INFO *cs, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { size_t len, dstlen0= dstlen; len= MY_MIN(dstlen, srclen); memcpy(dst, src, len); len= thai2sortable(dst, len); set_if_smaller(dstlen, nweights); set_if_smaller(len, dstlen); len= my_strxfrm_pad_desc_and_reverse_nopad(cs, dst, dst + len, dst + dstlen, (uint)(dstlen - len), flags, 0); if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len < dstlen0) { size_t fill_length= dstlen0 - len; memset(dst + len, 0x00, fill_length); len= dstlen0; } return len; }
O0
c
my_strnxfrm_tis620_nopad: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x18(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0x9bd7e movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) jmp 0x9bd86 movq -0x30(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x38(%rbp), %rdx callq 0x370c0 movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi callq 0x9bb20 movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rax movl -0x1c(%rbp), %ecx cmpq %rcx, %rax jbe 0x9bdc3 movl -0x1c(%rbp), %eax movq %rax, -0x18(%rbp) jmp 0x9bdc5 jmp 0x9bdc7 movq -0x38(%rbp), %rax cmpq -0x18(%rbp), %rax jbe 0x9bdd9 movq -0x18(%rbp), %rax movq %rax, -0x38(%rbp) jmp 0x9bddb movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rdx addq -0x38(%rbp), %rdx movq -0x10(%rbp), %rcx addq -0x18(%rbp), %rcx movq -0x18(%rbp), %rax subq -0x38(%rbp), %rax movl %eax, %r8d movl 0x10(%rbp), %r9d xorl %eax, %eax movl $0x0, (%rsp) callq 0x962a0 movq %rax, -0x38(%rbp) movl 0x10(%rbp), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x9be52 movq -0x38(%rbp), %rax cmpq -0x40(%rbp), %rax jae 0x9be52 movq -0x40(%rbp), %rax subq -0x38(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rdi addq -0x38(%rbp), %rdi movq -0x48(%rbp), %rdx xorl %esi, %esi callq 0x37300 movq -0x40(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopl (%rax)
my_strnxfrm_tis620_nopad: push rbp mov rbp, rsp sub rsp, 60h mov eax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_18] cmp rax, [rbp+var_30] jnb short loc_9BD7E mov rax, [rbp+var_18] mov [rbp+var_50], rax jmp short loc_9BD86 loc_9BD7E: mov rax, [rbp+var_30] mov [rbp+var_50], rax loc_9BD86: mov rax, [rbp+var_50] mov [rbp+var_38], rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] mov rdx, [rbp+var_38] call _memcpy mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] call thai2sortable mov [rbp+var_38], rax mov rax, [rbp+var_18] mov ecx, [rbp+var_1C] cmp rax, rcx jbe short loc_9BDC3 mov eax, [rbp+var_1C] mov [rbp+var_18], rax loc_9BDC3: jmp short $+2 loc_9BDC5: jmp short $+2 loc_9BDC7: mov rax, [rbp+var_38] cmp rax, [rbp+var_18] jbe short loc_9BDD9 mov rax, [rbp+var_18] mov [rbp+var_38], rax loc_9BDD9: jmp short $+2 loc_9BDDB: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_10] add rdx, [rbp+var_38] mov rcx, [rbp+var_10] add rcx, [rbp+var_18] mov rax, [rbp+var_18] sub rax, [rbp+var_38] mov r8d, eax mov r9d, [rbp+arg_0] xor eax, eax mov [rsp+60h+var_60], 0 call my_strxfrm_pad_desc_and_reverse_nopad mov [rbp+var_38], rax mov eax, [rbp+arg_0] and eax, 80h cmp eax, 0 jz short loc_9BE52 mov rax, [rbp+var_38] cmp rax, [rbp+var_40] jnb short loc_9BE52 mov rax, [rbp+var_40] sub rax, [rbp+var_38] mov [rbp+var_48], rax mov rdi, [rbp+var_10] add rdi, [rbp+var_38] mov rdx, [rbp+var_48] xor esi, esi call _memset mov rax, [rbp+var_40] mov [rbp+var_38], rax loc_9BE52: mov rax, [rbp+var_38] add rsp, 60h pop rbp retn
unsigned long long my_strnxfrm_tis620_nopad( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned int a4, long long a5, unsigned long long a6, unsigned int a7) { long long v8; // [rsp+10h] [rbp-50h] unsigned long long v10; // [rsp+28h] [rbp-38h] unsigned long long v11; // [rsp+28h] [rbp-38h] unsigned long long v13; // [rsp+48h] [rbp-18h] v13 = a3; if ( a3 >= a6 ) v8 = a6; else v8 = a3; memcpy(a2, a5, v8); v10 = thai2sortable(a2, v8); if ( v13 > a4 ) v13 = a4; if ( v10 > v13 ) v10 = v13; v11 = my_strxfrm_pad_desc_and_reverse_nopad( a1, (long long)a2, (unsigned long long)&a2[v10], (unsigned long long)&a2[v13], (int)v13 - (int)v10, a7, 0); if ( (a7 & 0x80) != 0 && v11 < a3 ) { memset(&a2[v11], 0LL, a3 - v11); return a3; } return v11; }
my_strnxfrm_tis620_nopad: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x30] JNC 0x0019bd7e MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX JMP 0x0019bd86 LAB_0019bd7e: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x50],RAX LAB_0019bd86: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x38] CALL 0x001370c0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] CALL 0x0019bb20 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x1c] CMP RAX,RCX JBE 0x0019bdc3 MOV EAX,dword ptr [RBP + -0x1c] MOV qword ptr [RBP + -0x18],RAX LAB_0019bdc3: JMP 0x0019bdc5 LAB_0019bdc5: JMP 0x0019bdc7 LAB_0019bdc7: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x18] JBE 0x0019bdd9 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x38],RAX LAB_0019bdd9: JMP 0x0019bddb LAB_0019bddb: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x18] SUB RAX,qword ptr [RBP + -0x38] MOV R8D,EAX MOV R9D,dword ptr [RBP + 0x10] XOR EAX,EAX MOV dword ptr [RSP],0x0 CALL 0x001962a0 MOV qword ptr [RBP + -0x38],RAX MOV EAX,dword ptr [RBP + 0x10] AND EAX,0x80 CMP EAX,0x0 JZ 0x0019be52 MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x40] JNC 0x0019be52 MOV RAX,qword ptr [RBP + -0x40] SUB RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x48] XOR ESI,ESI CALL 0x00137300 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x38],RAX LAB_0019be52: MOV RAX,qword ptr [RBP + -0x38] ADD RSP,0x60 POP RBP RET
ulong my_strnxfrm_tis620_nopad (int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5, ulong param_6,uint param_7) { size_t local_58; ulong local_40; ulong local_20; local_58 = param_6; if (param_3 < param_6) { local_58 = param_3; } memcpy(param_2,param_5,local_58); local_40 = thai2sortable(param_2,local_58); local_20 = param_3; if (param_4 < param_3) { local_20 = (ulong)param_4; } if (local_20 < local_40) { local_40 = local_20; } local_40 = my_strxfrm_pad_desc_and_reverse_nopad (param_1,param_2,(long)param_2 + local_40,(long)param_2 + local_20, (int)local_20 - (int)local_40,param_7,0); if (((param_7 & 0x80) != 0) && (local_40 < param_3)) { memset((void *)((long)param_2 + local_40),0,param_3 - local_40); local_40 = param_3; } return local_40; }
3,142
my_symlink
eloqsql/mysys/my_symlink.c
int my_symlink(const char *content, const char *linkname, myf MyFlags) { #ifndef HAVE_READLINK return 0; #else int result; DBUG_ENTER("my_symlink"); DBUG_PRINT("enter",("content: %s linkname: %s", content, linkname)); result= 0; if (symlink(content, linkname)) { result= -1; my_errno=errno; if (MyFlags & MY_WME) my_error(EE_CANT_SYMLINK, MYF(0), linkname, content, errno); } else if ((MyFlags & MY_SYNC_DIR) && my_sync_dir_by_file(linkname, MyFlags)) result= -1; DBUG_RETURN(result); #endif /* HAVE_READLINK */ }
O3
c
my_symlink: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r12 callq 0x26080 testl %eax, %eax je 0x4596e callq 0x26060 movq %rax, %r13 movl (%rax), %r14d callq 0x4629e movl %r14d, (%rax) movl $0xffffffff, %r14d # imm = 0xFFFFFFFF testb $0x10, %r15b je 0x4598a movl (%r13), %r8d movl $0x19, %edi xorl %esi, %esi movq %rbx, %rdx movq %r12, %rcx xorl %eax, %eax callq 0x4b447 jmp 0x4598a xorl %r14d, %r14d testw %r15w, %r15w jns 0x4598a movq %rbx, %rdi movq %r15, %rsi callq 0x45dbf xorl %r14d, %r14d negl %eax sbbl %r14d, %r14d movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_symlink: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdx mov rbx, rsi mov r12, rdi call _symlink test eax, eax jz short loc_4596E call ___errno_location mov r13, rax mov r14d, [rax] call _my_thread_var mov [rax], r14d mov r14d, 0FFFFFFFFh test r15b, 10h jz short loc_4598A mov r8d, [r13+0] mov edi, 19h xor esi, esi mov rdx, rbx mov rcx, r12 xor eax, eax call my_error jmp short loc_4598A loc_4596E: xor r14d, r14d test r15w, r15w jns short loc_4598A mov rdi, rbx mov rsi, r15 call my_sync_dir_by_file xor r14d, r14d neg eax sbb r14d, r14d loc_4598A: mov eax, r14d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_symlink(long long a1, long long a2, long long a3) { _DWORD *v4; // r13 int v5; // r14d int v6; // r9d unsigned int v7; // r14d if ( (unsigned int)symlink(a1) ) { v4 = (_DWORD *)__errno_location(a1); v5 = *v4; *(_DWORD *)my_thread_var(a1) = v5; v7 = -1; if ( (a3 & 0x10) != 0 ) my_error(25, 0, a2, a1, *v4, v6); } else { v7 = 0; if ( (a3 & 0x8000u) != 0LL ) return (unsigned int)-((unsigned int)my_sync_dir_by_file(a2, a3) != 0); } return v7; }
my_symlink: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV RBX,RSI MOV R12,RDI CALL 0x00126080 TEST EAX,EAX JZ 0x0014596e CALL 0x00126060 MOV R13,RAX MOV R14D,dword ptr [RAX] CALL 0x0014629e MOV dword ptr [RAX],R14D MOV R14D,0xffffffff TEST R15B,0x10 JZ 0x0014598a MOV R8D,dword ptr [R13] MOV EDI,0x19 XOR ESI,ESI MOV RDX,RBX MOV RCX,R12 XOR EAX,EAX CALL 0x0014b447 JMP 0x0014598a LAB_0014596e: XOR R14D,R14D TEST R15W,R15W JNS 0x0014598a MOV RDI,RBX MOV RSI,R15 CALL 0x00145dbf XOR R14D,R14D NEG EAX SBB R14D,R14D LAB_0014598a: MOV EAX,R14D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int my_symlink(char *param_1,char *param_2,ulong param_3) { int iVar1; int *piVar2; int *piVar3; iVar1 = symlink(param_1,param_2); if (iVar1 == 0) { iVar1 = 0; if ((short)param_3 < 0) { iVar1 = my_sync_dir_by_file(param_2,param_3); iVar1 = -(uint)(iVar1 != 0); } } else { piVar2 = __errno_location(); iVar1 = *piVar2; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; iVar1 = -1; if ((param_3 & 0x10) != 0) { my_error(0x19,0,param_2,param_1,*piVar2); } } return iVar1; }
3,143
my_instr_bin
eloqsql/strings/ctype-bin.c
static uint my_instr_bin(CHARSET_INFO *cs __attribute__((unused)), const char *b, size_t b_length, const char *s, size_t s_length, my_match_t *match, uint nmatch) { register const uchar *str, *search, *end, *search_end; if (s_length <= b_length) { if (!s_length) { if (nmatch) { match->beg= 0; match->end= 0; match->mb_len= 0; } return 1; /* Empty string is always found */ } str= (const uchar*) b; search= (const uchar*) s; end= (const uchar*) b+b_length-s_length+1; search_end= (const uchar*) s + s_length; skip: while (str != end) { if ( (*str++) == (*search)) { register const uchar *i,*j; i= str; j= search+1; while (j != search_end) if ((*i++) != (*j++)) goto skip; if (nmatch > 0) { match[0].beg= 0; match[0].end= (uint) (str- (const uchar*)b-1); match[0].mb_len= match[0].end; if (nmatch > 1) { match[1].beg= match[0].end; match[1].end= (uint)(match[0].end+s_length); match[1].mb_len= match[1].end-match[1].beg; } } return 2; } } } return 0; }
O0
c
my_instr_bin: pushq %rbp movq %rsp, %rbp movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq -0x20(%rbp), %rax ja 0x3919b cmpq $0x0, -0x30(%rbp) jne 0x39066 cmpl $0x0, 0x10(%rbp) je 0x3905a movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x38(%rbp), %rax movl $0x0, 0x4(%rax) movq -0x38(%rbp), %rax movl $0x0, 0x8(%rax) movl $0x1, -0x4(%rbp) jmp 0x391a2 movq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax xorl %ecx, %ecx subq -0x30(%rbp), %rcx addq %rcx, %rax addq $0x1, %rax movq %rax, -0x50(%rbp) movq -0x28(%rbp), %rax addq -0x30(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0x3909d movq -0x40(%rbp), %rax cmpq -0x50(%rbp), %rax je 0x39199 movq -0x40(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x40(%rbp) movzbl (%rax), %eax movq -0x48(%rbp), %rcx movzbl (%rcx), %ecx cmpl %ecx, %eax jne 0x39194 movq -0x40(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x48(%rbp), %rax addq $0x1, %rax movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax cmpq -0x58(%rbp), %rax je 0x39116 movq -0x60(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x60(%rbp) movzbl (%rax), %eax movq -0x68(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x68(%rbp) movzbl (%rcx), %ecx cmpl %ecx, %eax je 0x39114 jmp 0x3909b jmp 0x390e0 cmpl $0x0, 0x10(%rbp) jbe 0x3918b movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x40(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax subq $0x1, %rax movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, 0x4(%rax) movq -0x38(%rbp), %rax movl 0x4(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x8(%rax) cmpl $0x1, 0x10(%rbp) jbe 0x39189 movq -0x38(%rbp), %rax movl 0x4(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0xc(%rax) movq -0x38(%rbp), %rax movl 0x4(%rax), %eax addq -0x30(%rbp), %rax movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, 0x10(%rax) movq -0x38(%rbp), %rax movl 0x10(%rax), %ecx movq -0x38(%rbp), %rax subl 0xc(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x14(%rax) jmp 0x3918b movl $0x2, -0x4(%rbp) jmp 0x391a2 jmp 0x3909d jmp 0x3919b movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
my_instr_bin: push rbp mov rbp, rsp mov eax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_30] cmp rax, [rbp+var_20] ja loc_3919B cmp [rbp+var_30], 0 jnz short loc_39066 cmp [rbp+arg_0], 0 jz short loc_3905A mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_38] mov dword ptr [rax+4], 0 mov rax, [rbp+var_38] mov dword ptr [rax+8], 0 loc_3905A: mov [rbp+var_4], 1 jmp loc_391A2 loc_39066: mov rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_28] mov [rbp+var_48], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] xor ecx, ecx sub rcx, [rbp+var_30] add rax, rcx add rax, 1 mov [rbp+var_50], rax mov rax, [rbp+var_28] add rax, [rbp+var_30] mov [rbp+var_58], rax loc_3909B: jmp short $+2 loc_3909D: mov rax, [rbp+var_40] cmp rax, [rbp+var_50] jz loc_39199 mov rax, [rbp+var_40] mov rcx, rax add rcx, 1 mov [rbp+var_40], rcx movzx eax, byte ptr [rax] mov rcx, [rbp+var_48] movzx ecx, byte ptr [rcx] cmp eax, ecx jnz loc_39194 mov rax, [rbp+var_40] mov [rbp+var_60], rax mov rax, [rbp+var_48] add rax, 1 mov [rbp+var_68], rax loc_390E0: mov rax, [rbp+var_68] cmp rax, [rbp+var_58] jz short loc_39116 mov rax, [rbp+var_60] mov rcx, rax add rcx, 1 mov [rbp+var_60], rcx movzx eax, byte ptr [rax] mov rcx, [rbp+var_68] mov rdx, rcx add rdx, 1 mov [rbp+var_68], rdx movzx ecx, byte ptr [rcx] cmp eax, ecx jz short loc_39114 jmp short loc_3909B loc_39114: jmp short loc_390E0 loc_39116: cmp [rbp+arg_0], 0 jbe short loc_3918B mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_40] mov rcx, [rbp+var_18] sub rax, rcx sub rax, 1 mov ecx, eax mov rax, [rbp+var_38] mov [rax+4], ecx mov rax, [rbp+var_38] mov ecx, [rax+4] mov rax, [rbp+var_38] mov [rax+8], ecx cmp [rbp+arg_0], 1 jbe short loc_39189 mov rax, [rbp+var_38] mov ecx, [rax+4] mov rax, [rbp+var_38] mov [rax+0Ch], ecx mov rax, [rbp+var_38] mov eax, [rax+4] add rax, [rbp+var_30] mov ecx, eax mov rax, [rbp+var_38] mov [rax+10h], ecx mov rax, [rbp+var_38] mov ecx, [rax+10h] mov rax, [rbp+var_38] sub ecx, [rax+0Ch] mov rax, [rbp+var_38] mov [rax+14h], ecx loc_39189: jmp short $+2 loc_3918B: mov [rbp+var_4], 2 jmp short loc_391A2 loc_39194: jmp loc_3909D loc_39199: jmp short $+2 loc_3919B: mov [rbp+var_4], 0 loc_391A2: mov eax, [rbp+var_4] pop rbp retn
long long my_instr_bin( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned __int8 *a4, unsigned long long a5, _DWORD *a6, unsigned int a7) { unsigned __int8 *v7; // rax unsigned __int8 *v8; // rax unsigned __int8 *v9; // rcx unsigned __int8 *v11; // [rsp+0h] [rbp-68h] unsigned __int8 *v12; // [rsp+8h] [rbp-60h] unsigned __int8 *v13; // [rsp+10h] [rbp-58h] unsigned __int8 *v14; // [rsp+28h] [rbp-40h] if ( a5 > a3 ) return 0; if ( a5 ) { v14 = a2; v13 = &a4[a5]; LABEL_7: while ( v14 != &a2[a3 - a5 + 1] ) { v7 = v14++; if ( *v7 == *a4 ) { v12 = v14; v11 = a4 + 1; while ( v11 != v13 ) { v8 = v12++; v9 = v11++; if ( *v8 != *v9 ) goto LABEL_7; } if ( a7 ) { *a6 = 0; a6[1] = (_DWORD)v14 - (_DWORD)a2 - 1; a6[2] = a6[1]; if ( a7 > 1 ) { a6[3] = a6[1]; a6[4] = a5 + a6[1]; a6[5] = a6[4] - a6[3]; } } return 2; } } return 0; } if ( a7 ) { *a6 = 0; a6[1] = 0; a6[2] = 0; } return 1; }
my_instr_bin: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x20] JA 0x0013919b CMP qword ptr [RBP + -0x30],0x0 JNZ 0x00139066 CMP dword ptr [RBP + 0x10],0x0 JZ 0x0013905a MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],0x0 LAB_0013905a: MOV dword ptr [RBP + -0x4],0x1 JMP 0x001391a2 LAB_00139066: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] XOR ECX,ECX SUB RCX,qword ptr [RBP + -0x30] ADD RAX,RCX ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x58],RAX LAB_0013909b: JMP 0x0013909d LAB_0013909d: MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x50] JZ 0x00139199 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x40],RCX MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x48] MOVZX ECX,byte ptr [RCX] CMP EAX,ECX JNZ 0x00139194 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x1 MOV qword ptr [RBP + -0x68],RAX LAB_001390e0: MOV RAX,qword ptr [RBP + -0x68] CMP RAX,qword ptr [RBP + -0x58] JZ 0x00139116 MOV RAX,qword ptr [RBP + -0x60] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x60],RCX MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x68] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x68],RDX MOVZX ECX,byte ptr [RCX] CMP EAX,ECX JZ 0x00139114 JMP 0x0013909b LAB_00139114: JMP 0x001390e0 LAB_00139116: CMP dword ptr [RBP + 0x10],0x0 JBE 0x0013918b MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX SUB RAX,0x1 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4],ECX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],ECX CMP dword ptr [RBP + 0x10],0x1 JBE 0x00139189 MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0xc],ECX MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0x4] ADD RAX,qword ptr [RBP + -0x30] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x38] SUB ECX,dword ptr [RAX + 0xc] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x14],ECX LAB_00139189: JMP 0x0013918b LAB_0013918b: MOV dword ptr [RBP + -0x4],0x2 JMP 0x001391a2 LAB_00139194: JMP 0x0013909d LAB_00139199: JMP 0x0013919b LAB_0013919b: MOV dword ptr [RBP + -0x4],0x0 LAB_001391a2: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_instr_bin(int8 param_1,char *param_2,ulong param_3,char *param_4,ulong param_5, int4 *param_6,uint param_7) { char cVar1; char cVar2; char *pcVar3; char *local_70; char *local_68; char *local_48; if (param_5 <= param_3) { if (param_5 == 0) { if (param_7 != 0) { *param_6 = 0; param_6[1] = 0; param_6[2] = 0; } return 1; } local_48 = param_2; while (local_48 != param_2 + (param_3 - param_5) + 1) { pcVar3 = local_48 + 1; cVar1 = *local_48; local_48 = pcVar3; if (cVar1 == *param_4) { local_70 = param_4 + 1; local_68 = pcVar3; do { if (local_70 == param_4 + param_5) { if (param_7 != 0) { *param_6 = 0; param_6[1] = ((int)pcVar3 - (int)param_2) + -1; param_6[2] = param_6[1]; if (1 < param_7) { param_6[3] = param_6[1]; param_6[4] = param_6[1] + (int)param_5; param_6[5] = param_6[4] - param_6[3]; } } return 2; } cVar1 = *local_68; cVar2 = *local_70; local_70 = local_70 + 1; local_68 = local_68 + 1; } while (cVar1 == cVar2); } } } return 0; }
3,144
JS_SpeciesConstructor
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_SpeciesConstructor(JSContext *ctx, JSValue obj, JSValue defaultConstructor) { JSValue ctor, species; if (!JS_IsObject(obj)) return JS_ThrowTypeErrorNotAnObject(ctx); ctor = JS_GetProperty(ctx, obj, JS_ATOM_constructor); if (JS_IsException(ctor)) return ctor; if (JS_IsUndefined(ctor)) return js_dup(defaultConstructor); if (!JS_IsObject(ctor)) { JS_FreeValue(ctx, ctor); return JS_ThrowTypeErrorNotAnObject(ctx); } species = JS_GetProperty(ctx, ctor, JS_ATOM_Symbol_species); JS_FreeValue(ctx, ctor); if (JS_IsException(species)) return species; if (JS_IsUndefined(species) || JS_IsNull(species)) return js_dup(defaultConstructor); if (!JS_IsConstructor(ctx, species)) { JS_FreeValue(ctx, species); return JS_ThrowTypeError(ctx, "not a constructor"); } return species; }
O1
c
JS_SpeciesConstructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r15 cmpl $-0x1, %edx jne 0x43505 movq %r8, %r14 movq %rcx, %rbx movq %r15, %rdi movl $0x3d, %ecx movq %rsi, %r8 movq %rdx, %r9 pushq $0x0 pushq $0x0 callq 0x2238f addq $0x10, %rsp movq %rax, %r13 movq %rdx, %r12 cmpl $-0x1, %r12d je 0x4353b cmpl $0x6, %r12d je 0x43533 cmpl $0x3, %r12d je 0x4357b movq 0x18(%r15), %rdi movq %r13, %rsi movq %r12, %rdx callq 0x1ccb2 leaq 0x5a411(%rip), %rsi # 0x9d91d xorl %ebx, %ebx movq %r15, %rdi xorl %eax, %eax callq 0x21953 movl $0x6, %r14d movq %rbx, %rax movq %r14, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r13, %rbx movq %r12, %r14 jmp 0x4351e movq %r15, %rdi movq %r13, %rsi movq %r12, %rdx movl $0xdd, %ecx movq %r13, %r8 movq %r12, %r9 pushq $0x0 pushq $0x0 callq 0x2238f addq $0x10, %rsp movq %rax, 0x10(%rsp) movq %rdx, %rbp movq 0x18(%r15), %rdi movq %r13, %rsi movq %r12, %rdx callq 0x1ccb2 leal -0x2(%rbp), %eax cmpl $0x2, %eax jae 0x4358f movq %rbx, 0x8(%rsp) cmpl $-0x9, %r14d jb 0x4351e movq 0x8(%rsp), %rax incl (%rax) jmp 0x4351e cmpl $0x6, %ebp jne 0x4359e movq 0x10(%rsp), %rbx movq %rbp, %r14 jmp 0x4351e movq 0x10(%rsp), %rsi movq %rsi, 0x8(%rsp) cmpl $-0x1, %ebp jne 0x435b8 movq 0x8(%rsp), %rax testb $0x10, 0x5(%rax) jne 0x435d0 movq 0x18(%r15), %rdi movq %rbp, %rdx callq 0x1ccb2 leaq 0x5aa0d(%rip), %rsi # 0x9dfd8 jmp 0x4350c movq %rsi, %rbx jmp 0x43599
JS_SpeciesConstructor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15, rdi cmp edx, 0FFFFFFFFh jnz short loc_43505 mov r14, r8 mov rbx, rcx mov rdi, r15 mov ecx, 3Dh ; '=' mov r8, rsi mov r9, rdx push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov r13, rax mov r12, rdx cmp r12d, 0FFFFFFFFh jz short loc_4353B cmp r12d, 6 jz short loc_43533 cmp r12d, 3 jz loc_4357B mov rdi, [r15+18h] mov rsi, r13 mov rdx, r12 call JS_FreeValueRT loc_43505: lea rsi, aOperandPrototy+20h; "not an object" loc_4350C: xor ebx, ebx mov rdi, r15 xor eax, eax call JS_ThrowTypeError mov r14d, 6 loc_4351E: mov rax, rbx mov rdx, r14 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_43533: mov rbx, r13 mov r14, r12 jmp short loc_4351E loc_4353B: mov rdi, r15 mov rsi, r13 mov rdx, r12 mov ecx, 0DDh mov r8, r13 mov r9, r12 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov [rsp+48h+var_38], rax mov rbp, rdx mov rdi, [r15+18h] mov rsi, r13 mov rdx, r12 call JS_FreeValueRT lea eax, [rbp-2] cmp eax, 2 jnb short loc_4358F loc_4357B: mov [rsp+48h+var_40], rbx cmp r14d, 0FFFFFFF7h jb short loc_4351E mov rax, [rsp+48h+var_40] inc dword ptr [rax] jmp short loc_4351E loc_4358F: cmp ebp, 6 jnz short loc_4359E mov rbx, [rsp+48h+var_38] loc_43599: mov r14, rbp jmp short loc_4351E loc_4359E: mov rsi, [rsp+48h+var_38] mov [rsp+48h+var_40], rsi cmp ebp, 0FFFFFFFFh jnz short loc_435B8 mov rax, [rsp+48h+var_40] test byte ptr [rax+5], 10h jnz short loc_435D0 loc_435B8: mov rdi, [r15+18h] mov rdx, rbp call JS_FreeValueRT lea rsi, aNotAConstructo; "not a constructor" jmp loc_4350C loc_435D0: mov rbx, rsi jmp short loc_43599
_DWORD * JS_SpeciesConstructor( 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) { unsigned int v14; // r14d _DWORD *v15; // rbx _DWORD *PropertyInternal2; // rax long long v17; // rdx _DWORD *v18; // r13 long long v19; // r12 char *v20; // rsi long long v22; // rdx long long v23; // rbp char v24; // [rsp+0h] [rbp-48h] unsigned long long v25; // [rsp+10h] [rbp-38h] if ( (_DWORD)a3 != -1 ) goto LABEL_6; v14 = a5; v15 = (_DWORD *)a4; PropertyInternal2 = (_DWORD *)JS_GetPropertyInternal2(a1, a2, a3, 0x3Du, a2, a3, 0LL, 0); v18 = PropertyInternal2; v19 = v17; switch ( (_DWORD)v17 ) { case 0xFFFFFFFF: v25 = JS_GetPropertyInternal2(a1, (long long)PropertyInternal2, v17, 0xDDu, (long long)PropertyInternal2, v17, 0LL, 0); v23 = v22; JS_FreeValueRT(*(_QWORD *)(a1 + 24), v18, v19); if ( (unsigned int)(v23 - 2) >= 2 ) { if ( (_DWORD)v23 == 6 ) return (_DWORD *)v25; if ( (_DWORD)v23 == -1 && (*(_BYTE *)(v25 + 5) & 0x10) != 0 ) return (_DWORD *)v25; JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v25, v23); v20 = "not a constructor"; goto LABEL_7; } break; case 6: return PropertyInternal2; case 3: break; default: JS_FreeValueRT(*(_QWORD *)(a1 + 24), PropertyInternal2, v17); LABEL_6: v20 = "not an object"; LABEL_7: v15 = 0LL; JS_ThrowTypeError(a1, (long long)v20, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v24); return v15; } if ( v14 >= 0xFFFFFFF7 ) ++*v15; return v15; }
JS_SpeciesConstructor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,RDI CMP EDX,-0x1 JNZ 0x00143505 MOV R14,R8 MOV RBX,RCX MOV RDI,R15 MOV ECX,0x3d MOV R8,RSI MOV R9,RDX PUSH 0x0 PUSH 0x0 CALL 0x0012238f ADD RSP,0x10 MOV R13,RAX MOV R12,RDX CMP R12D,-0x1 JZ 0x0014353b CMP R12D,0x6 JZ 0x00143533 CMP R12D,0x3 JZ 0x0014357b MOV RDI,qword ptr [R15 + 0x18] MOV RSI,R13 MOV RDX,R12 CALL 0x0011ccb2 LAB_00143505: LEA RSI,[0x19d91d] LAB_0014350c: XOR EBX,EBX MOV RDI,R15 XOR EAX,EAX CALL 0x00121953 MOV R14D,0x6 LAB_0014351e: MOV RAX,RBX MOV RDX,R14 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00143533: MOV RBX,R13 MOV R14,R12 JMP 0x0014351e LAB_0014353b: MOV RDI,R15 MOV RSI,R13 MOV RDX,R12 MOV ECX,0xdd MOV R8,R13 MOV R9,R12 PUSH 0x0 PUSH 0x0 CALL 0x0012238f ADD RSP,0x10 MOV qword ptr [RSP + 0x10],RAX MOV RBP,RDX MOV RDI,qword ptr [R15 + 0x18] MOV RSI,R13 MOV RDX,R12 CALL 0x0011ccb2 LEA EAX,[RBP + -0x2] CMP EAX,0x2 JNC 0x0014358f LAB_0014357b: MOV qword ptr [RSP + 0x8],RBX CMP R14D,-0x9 JC 0x0014351e MOV RAX,qword ptr [RSP + 0x8] INC dword ptr [RAX] JMP 0x0014351e LAB_0014358f: CMP EBP,0x6 JNZ 0x0014359e MOV RBX,qword ptr [RSP + 0x10] LAB_00143599: MOV R14,RBP JMP 0x0014351e LAB_0014359e: MOV RSI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RSI CMP EBP,-0x1 JNZ 0x001435b8 MOV RAX,qword ptr [RSP + 0x8] TEST byte ptr [RAX + 0x5],0x10 JNZ 0x001435d0 LAB_001435b8: MOV RDI,qword ptr [R15 + 0x18] MOV RDX,RBP CALL 0x0011ccb2 LEA RSI,[0x19dfd8] JMP 0x0014350c LAB_001435d0: MOV RBX,RSI JMP 0x00143599
int1 [16] JS_SpeciesConstructor (long param_1,int8 param_2,int8 param_3,int *param_4,int8 param_5) { int1 auVar1 [16]; int1 auVar2 [16]; int8 uVar3; int8 uVar4; char *pcVar5; int iVar6; int1 auVar7 [16]; auVar2._8_8_ = param_5; auVar2._0_8_ = param_4; auVar1._8_8_ = param_5; auVar1._0_8_ = param_4; if ((int)param_3 == -1) { auVar7 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x3d,param_2,param_3,0,0); uVar4 = auVar7._8_8_; uVar3 = auVar7._0_8_; iVar6 = auVar7._8_4_; if (iVar6 == -1) { auVar7 = JS_GetPropertyInternal2(param_1,uVar3,uVar4,0xdd,uVar3,uVar4,0,0); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar3,uVar4); iVar6 = auVar7._8_4_; if (1 < iVar6 - 2U) { if (iVar6 == 6) { return auVar7; } if ((iVar6 == -1) && ((*(byte *)(auVar7._0_8_ + 5) & 0x10) != 0)) { return auVar7; } JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar7._0_8_,auVar7._8_8_); pcVar5 = "not a constructor"; goto LAB_0014350c; } } else { if (iVar6 == 6) { return auVar7; } if (iVar6 != 3) { JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar3,uVar4); goto LAB_00143505; } } if (0xfffffff6 < (uint)param_5) { *param_4 = *param_4 + 1; auVar1 = auVar2; } } else { LAB_00143505: pcVar5 = "not an object"; LAB_0014350c: JS_ThrowTypeError(param_1,pcVar5); auVar1 = ZEXT816(6) << 0x40; } return auVar1; }
3,145
JS_SpeciesConstructor
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_SpeciesConstructor(JSContext *ctx, JSValue obj, JSValue defaultConstructor) { JSValue ctor, species; if (!JS_IsObject(obj)) return JS_ThrowTypeErrorNotAnObject(ctx); ctor = JS_GetProperty(ctx, obj, JS_ATOM_constructor); if (JS_IsException(ctor)) return ctor; if (JS_IsUndefined(ctor)) return js_dup(defaultConstructor); if (!JS_IsObject(ctor)) { JS_FreeValue(ctx, ctor); return JS_ThrowTypeErrorNotAnObject(ctx); } species = JS_GetProperty(ctx, ctor, JS_ATOM_Symbol_species); JS_FreeValue(ctx, ctor); if (JS_IsException(species)) return species; if (JS_IsUndefined(species) || JS_IsNull(species)) return js_dup(defaultConstructor); if (!JS_IsConstructor(ctx, species)) { JS_FreeValue(ctx, species); return JS_ThrowTypeError(ctx, "not a constructor"); } return species; }
O3
c
JS_SpeciesConstructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r14 cmpl $-0x1, %edx jne 0x45052 movq %r8, %r15 movq %rcx, %rbx movq %r14, %rdi movl $0x3d, %ecx movq %rsi, %r8 movq %rdx, %r9 pushq $0x0 pushq $0x0 callq 0x22c0f addq $0x10, %rsp movq %rax, %r13 movq %rdx, %r12 cmpl $-0x1, %r12d je 0x45088 cmpl $0x6, %r12d je 0x45080 cmpl $0x3, %r12d je 0x450ef cmpl $-0x9, %r12d jb 0x45052 movq 0x18(%r14), %rdi movl (%r13), %eax leal -0x1(%rax), %ecx movl %ecx, (%r13) cmpl $0x1, %eax jg 0x45052 movq %r13, %rsi movq %r12, %rdx callq 0x20d90 leaq 0x5b894(%rip), %rsi # 0xa08ed xorl %ebx, %ebx movq %r14, %rdi xorl %eax, %eax callq 0x2214f movl $0x6, %r15d movq %rbx, %rax movq %r15, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r13, %rbx movq %r12, %r15 jmp 0x4506b movq %r14, %rdi movq %r13, %rsi movq %r12, %rdx movl $0xdd, %ecx movq %r13, %r8 movq %r12, %r9 pushq $0x0 pushq $0x0 callq 0x22c0f addq $0x10, %rsp movq %rax, %rsi movq %rdx, %rbp movq 0x18(%r14), %rdi movl (%r13), %eax leal -0x1(%rax), %ecx movl %ecx, (%r13) cmpl $0x1, %eax jg 0x450d6 movq %rsi, (%rsp) movq %r13, %rsi movq %r12, %rdx callq 0x20d90 movq (%rsp), %rsi leal -0x2(%rbp), %eax cmpl $0x2, %eax jb 0x450ef cmpl $-0x1, %ebp je 0x45100 cmpl $0x6, %ebp je 0x4512a cmpl $-0x9, %ebp jae 0x45106 jmp 0x4511e cmpl $-0x9, %r15d jb 0x4506b incl (%rbx) jmp 0x4506b testb $0x10, 0x5(%rsi) jne 0x4512a movq 0x18(%r14), %rdi movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x4511e movq %rbp, %rdx callq 0x20d90 leaq 0x5be83(%rip), %rsi # 0xa0fa8 jmp 0x45059 movq %rsi, %rbx movq %rbp, %r15 jmp 0x4506b
JS_SpeciesConstructor: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdi cmp edx, 0FFFFFFFFh jnz short loc_45052 mov r15, r8 mov rbx, rcx mov rdi, r14 mov ecx, 3Dh ; '=' mov r8, rsi mov r9, rdx push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov r13, rax mov r12, rdx cmp r12d, 0FFFFFFFFh jz short loc_45088 cmp r12d, 6 jz short loc_45080 cmp r12d, 3 jz loc_450EF cmp r12d, 0FFFFFFF7h jb short loc_45052 mov rdi, [r14+18h] mov eax, [r13+0] lea ecx, [rax-1] mov [r13+0], ecx cmp eax, 1 jg short loc_45052 mov rsi, r13 mov rdx, r12 call js_free_value_rt loc_45052: lea rsi, aOperandPrototy+20h; "not an object" loc_45059: xor ebx, ebx mov rdi, r14 xor eax, eax call JS_ThrowTypeError mov r15d, 6 loc_4506B: mov rax, rbx mov rdx, r15 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_45080: mov rbx, r13 mov r15, r12 jmp short loc_4506B loc_45088: mov rdi, r14 mov rsi, r13 mov rdx, r12 mov ecx, 0DDh mov r8, r13 mov r9, r12 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov rsi, rax mov rbp, rdx mov rdi, [r14+18h] mov eax, [r13+0] lea ecx, [rax-1] mov [r13+0], ecx cmp eax, 1 jg short loc_450D6 mov [rsp+38h+var_38], rsi mov rsi, r13 mov rdx, r12 call js_free_value_rt mov rsi, [rsp+38h+var_38] loc_450D6: lea eax, [rbp-2] cmp eax, 2 jb short loc_450EF cmp ebp, 0FFFFFFFFh jz short loc_45100 cmp ebp, 6 jz short loc_4512A cmp ebp, 0FFFFFFF7h jnb short loc_45106 jmp short loc_4511E loc_450EF: cmp r15d, 0FFFFFFF7h jb loc_4506B inc dword ptr [rbx] jmp loc_4506B loc_45100: test byte ptr [rsi+5], 10h jnz short loc_4512A loc_45106: mov rdi, [r14+18h] mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg short loc_4511E mov rdx, rbp call js_free_value_rt loc_4511E: lea rsi, aNotAConstructo; "not a constructor" jmp loc_45059 loc_4512A: mov rbx, rsi mov r15, rbp jmp loc_4506B
_DWORD * JS_SpeciesConstructor( 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) { char v14; // al unsigned int v16; // r15d _DWORD *v17; // rbx _DWORD *PropertyInternal2; // rax _QWORD *v19; // r13 long long v20; // r12 long long v21; // rdi int v22; // eax char *v23; // rsi unsigned long long v25; // rsi long long v26; // rbp long long v27; // rdi int v28; // eax long long v29; // rdi int v30; // eax char v31; // [rsp+0h] [rbp-38h] v31 = v14; if ( (_DWORD)a3 != -1 ) { LABEL_8: v23 = "not an object"; LABEL_9: v17 = 0LL; JS_ThrowTypeError(a1, (long long)v23, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v31); return v17; } v16 = a5; v17 = (_DWORD *)a4; PropertyInternal2 = (_DWORD *)JS_GetPropertyInternal2(a1, a2, -1, 0x3Du, a2, a3, 0LL, 0); v19 = PropertyInternal2; v20 = a3; if ( (_DWORD)a3 == -1 ) { v25 = JS_GetPropertyInternal2(a1, (long long)PropertyInternal2, -1, 0xDDu, (long long)PropertyInternal2, a3, 0LL, 0); v26 = a3; v27 = *(_QWORD *)(a1 + 24); v28 = *(_DWORD *)v19; a4 = (unsigned int)(*(_DWORD *)v19 - 1); *(_DWORD *)v19 = a4; if ( v28 <= 1 ) { v31 = v25; js_free_value_rt(v27, v19, v20, a4, a5, a6); } if ( (unsigned int)(v26 - 2) < 2 ) goto LABEL_19; if ( (_DWORD)v26 == -1 ) { if ( (*(_BYTE *)(v25 + 5) & 0x10) == 0 ) goto LABEL_22; } else if ( (_DWORD)v26 != 6 ) { if ( (unsigned int)v26 < 0xFFFFFFF7 ) { LABEL_24: v23 = "not a constructor"; goto LABEL_9; } LABEL_22: v29 = *(_QWORD *)(a1 + 24); v30 = *(_DWORD *)v25; a4 = (unsigned int)(*(_DWORD *)v25 - 1); *(_DWORD *)v25 = a4; if ( v30 <= 1 ) js_free_value_rt(v29, (_QWORD *)v25, v26, a4, a5, a6); goto LABEL_24; } return (_DWORD *)v25; } if ( (_DWORD)a3 == 6 ) return PropertyInternal2; if ( (_DWORD)a3 != 3 ) { if ( (unsigned int)a3 >= 0xFFFFFFF7 ) { v21 = *(_QWORD *)(a1 + 24); v22 = *PropertyInternal2; a4 = (unsigned int)(v22 - 1); *(_DWORD *)v19 = a4; if ( v22 <= 1 ) js_free_value_rt(v21, v19, a3, a4, a5, a6); } goto LABEL_8; } LABEL_19: if ( v16 >= 0xFFFFFFF7 ) ++*v17; return v17; }
JS_SpeciesConstructor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDI CMP EDX,-0x1 JNZ 0x00145052 MOV R15,R8 MOV RBX,RCX MOV RDI,R14 MOV ECX,0x3d MOV R8,RSI MOV R9,RDX PUSH 0x0 PUSH 0x0 CALL 0x00122c0f ADD RSP,0x10 MOV R13,RAX MOV R12,RDX CMP R12D,-0x1 JZ 0x00145088 CMP R12D,0x6 JZ 0x00145080 CMP R12D,0x3 JZ 0x001450ef CMP R12D,-0x9 JC 0x00145052 MOV RDI,qword ptr [R14 + 0x18] MOV EAX,dword ptr [R13] LEA ECX,[RAX + -0x1] MOV dword ptr [R13],ECX CMP EAX,0x1 JG 0x00145052 MOV RSI,R13 MOV RDX,R12 CALL 0x00120d90 LAB_00145052: LEA RSI,[0x1a08ed] LAB_00145059: XOR EBX,EBX MOV RDI,R14 XOR EAX,EAX CALL 0x0012214f MOV R15D,0x6 LAB_0014506b: MOV RAX,RBX MOV RDX,R15 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00145080: MOV RBX,R13 MOV R15,R12 JMP 0x0014506b LAB_00145088: MOV RDI,R14 MOV RSI,R13 MOV RDX,R12 MOV ECX,0xdd MOV R8,R13 MOV R9,R12 PUSH 0x0 PUSH 0x0 CALL 0x00122c0f ADD RSP,0x10 MOV RSI,RAX MOV RBP,RDX MOV RDI,qword ptr [R14 + 0x18] MOV EAX,dword ptr [R13] LEA ECX,[RAX + -0x1] MOV dword ptr [R13],ECX CMP EAX,0x1 JG 0x001450d6 MOV qword ptr [RSP],RSI MOV RSI,R13 MOV RDX,R12 CALL 0x00120d90 MOV RSI,qword ptr [RSP] LAB_001450d6: LEA EAX,[RBP + -0x2] CMP EAX,0x2 JC 0x001450ef CMP EBP,-0x1 JZ 0x00145100 CMP EBP,0x6 JZ 0x0014512a CMP EBP,-0x9 JNC 0x00145106 JMP 0x0014511e LAB_001450ef: CMP R15D,-0x9 JC 0x0014506b INC dword ptr [RBX] JMP 0x0014506b LAB_00145100: TEST byte ptr [RSI + 0x5],0x10 JNZ 0x0014512a LAB_00145106: MOV RDI,qword ptr [R14 + 0x18] MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x0014511e MOV RDX,RBP CALL 0x00120d90 LAB_0014511e: LEA RSI,[0x1a0fa8] JMP 0x00145059 LAB_0014512a: MOV RBX,RSI MOV R15,RBP JMP 0x0014506b
int1 [16] JS_SpeciesConstructor (long param_1,int8 param_2,int8 param_3,int *param_4,int8 param_5) { int iVar1; int8 uVar2; int1 auVar3 [16]; int1 auVar4 [16]; int *piVar5; int *piVar6; int8 uVar7; char *pcVar8; uint uVar9; int1 auVar10 [16]; auVar4._8_8_ = param_5; auVar4._0_8_ = param_4; auVar3._8_8_ = param_5; auVar3._0_8_ = param_4; if ((int)param_3 == -1) { auVar10 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x3d,param_2,param_3,0,0); uVar7 = auVar10._8_8_; piVar5 = auVar10._0_8_; uVar9 = auVar10._8_4_; if (uVar9 == 0xffffffff) { auVar10 = JS_GetPropertyInternal2(param_1,piVar5,uVar7,0xdd,piVar5,uVar7,0,0); piVar6 = auVar10._0_8_; uVar2 = *(int8 *)(param_1 + 0x18); iVar1 = *piVar5; *piVar5 = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar2,piVar5,uVar7); } uVar9 = auVar10._8_4_; if (1 < uVar9 - 2) { if (uVar9 == 0xffffffff) { if ((*(byte *)((long)piVar6 + 5) & 0x10) != 0) { return auVar10; } LAB_00145106: uVar7 = *(int8 *)(param_1 + 0x18); iVar1 = *piVar6; *piVar6 = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar7,piVar6,auVar10._8_8_); } } else { if (uVar9 == 6) { return auVar10; } if (0xfffffff6 < uVar9) goto LAB_00145106; } pcVar8 = "not a constructor"; goto LAB_00145059; } } else { if (uVar9 == 6) { return auVar10; } if (uVar9 != 3) { if (0xfffffff6 < uVar9) { uVar2 = *(int8 *)(param_1 + 0x18); iVar1 = *piVar5; *piVar5 = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar2,piVar5,uVar7); } } goto LAB_00145052; } } if (0xfffffff6 < (uint)param_5) { *param_4 = *param_4 + 1; auVar3 = auVar4; } } else { LAB_00145052: pcVar8 = "not an object"; LAB_00145059: JS_ThrowTypeError(param_1,pcVar8); auVar3 = ZEXT816(6) << 0x40; } return auVar3; }
3,146
my_strxfrm_pad_desc_and_reverse
eloqsql/strings/ctype-simple.c
size_t my_strxfrm_pad_desc_and_reverse(CHARSET_INFO *cs, uchar *str, uchar *frmend, uchar *strend, uint nweights, uint flags, uint level) { if (nweights && frmend < strend && (flags & MY_STRXFRM_PAD_WITH_SPACE)) { uint fill_length= MY_MIN((uint) (strend - frmend), nweights * cs->mbminlen); my_ci_fill(cs, (char*) frmend, fill_length, cs->pad_char); frmend+= fill_length; } my_strxfrm_desc_and_reverse(str, frmend, flags, level); if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && frmend < strend) { size_t fill_length= strend - frmend; my_ci_fill(cs, (char*) frmend, fill_length, cs->pad_char); frmend= strend; } return frmend - str; }
O3
c
my_strxfrm_pad_desc_and_reverse: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r9d, %r13d movq %rcx, %r15 movq %rdx, %r14 movq %rsi, -0x30(%rbp) movq %rdi, %r12 movl 0x10(%rbp), %ecx testl %r8d, %r8d sete %al cmpq %r15, %rdx setae %sil testb $0x40, %r13b sete %dl orb %al, %dl orb %sil, %dl jne 0x40006 movl %r8d, %ebx movl %r15d, %eax subl %r14d, %eax imull 0x98(%r12), %ebx cmpl %eax, %ebx cmovael %eax, %ebx movzbl 0xb0(%r12), %ecx movq 0xb8(%r12), %rax movq %r12, %rdi movq %r14, %rsi movq %rbx, %rdx callq *0x78(%rax) movl 0x10(%rbp), %ecx addq %rbx, %r14 movq -0x30(%rbp), %rbx movq %rbx, %rdi movq %r14, %rsi movl %r13d, %edx callq 0x4195e testb %r13b, %r13b jns 0x40045 cmpq %r15, %r14 jae 0x40045 movq %r15, %rdx subq %r14, %rdx movzbl 0xb0(%r12), %ecx movq 0xb8(%r12), %rax movq %r12, %rdi movq %r14, %rsi callq *0x78(%rax) movq %r15, %r14 subq %rbx, %r14 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_strxfrm_pad_desc_and_reverse: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r13d, r9d mov r15, rcx mov r14, rdx mov [rbp+var_30], rsi mov r12, rdi mov ecx, [rbp+arg_0] test r8d, r8d setz al cmp rdx, r15 setnb sil test r13b, 40h setz dl or dl, al or dl, sil jnz short loc_40006 mov ebx, r8d mov eax, r15d sub eax, r14d imul ebx, [r12+98h] cmp ebx, eax cmovnb ebx, eax movzx ecx, byte ptr [r12+0B0h] mov rax, [r12+0B8h] mov rdi, r12 mov rsi, r14 mov rdx, rbx call qword ptr [rax+78h] mov ecx, [rbp+arg_0] add r14, rbx loc_40006: mov rbx, [rbp+var_30] mov rdi, rbx mov rsi, r14 mov edx, r13d call my_strxfrm_desc_and_reverse test r13b, r13b jns short loc_40045 cmp r14, r15 jnb short loc_40045 mov rdx, r15 sub rdx, r14 movzx ecx, byte ptr [r12+0B0h] mov rax, [r12+0B8h] mov rdi, r12 mov rsi, r14 call qword ptr [rax+78h] mov r14, r15 loc_40045: sub r14, rbx mov rax, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_strxfrm_pad_desc_and_reverse( long long a1, long long a2, unsigned long long a3, unsigned long long a4, int a5, unsigned int a6, unsigned int a7) { unsigned long long v9; // r14 long long v10; // rcx long long v11; // rbx v9 = a3; v10 = a7; if ( a3 < a4 && a5 != 0 && (a6 & 0x40) != 0 ) { v11 = (unsigned int)(*(_DWORD *)(a1 + 152) * a5); if ( (unsigned int)v11 >= (int)a4 - (int)a3 ) v11 = (unsigned int)(a4 - a3); (*(void ( **)(long long, unsigned long long, long long, _QWORD))(*(_QWORD *)(a1 + 184) + 120LL))( a1, a3, v11, *(unsigned __int8 *)(a1 + 176)); v10 = a7; v9 += v11; } my_strxfrm_desc_and_reverse(a2, v9, a6, v10); if ( (a6 & 0x80u) != 0 && v9 < a4 ) { (*(void ( **)(long long, unsigned long long, unsigned long long, _QWORD))(*(_QWORD *)(a1 + 184) + 120LL))( a1, v9, a4 - v9, *(unsigned __int8 *)(a1 + 176)); v9 = a4; } return v9 - a2; }
my_strxfrm_pad_desc_and_reverse: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R13D,R9D MOV R15,RCX MOV R14,RDX MOV qword ptr [RBP + -0x30],RSI MOV R12,RDI MOV ECX,dword ptr [RBP + 0x10] TEST R8D,R8D SETZ AL CMP RDX,R15 SETNC SIL TEST R13B,0x40 SETZ DL OR DL,AL OR DL,SIL JNZ 0x00140006 MOV EBX,R8D MOV EAX,R15D SUB EAX,R14D IMUL EBX,dword ptr [R12 + 0x98] CMP EBX,EAX CMOVNC EBX,EAX MOVZX ECX,byte ptr [R12 + 0xb0] MOV RAX,qword ptr [R12 + 0xb8] MOV RDI,R12 MOV RSI,R14 MOV RDX,RBX CALL qword ptr [RAX + 0x78] MOV ECX,dword ptr [RBP + 0x10] ADD R14,RBX LAB_00140006: MOV RBX,qword ptr [RBP + -0x30] MOV RDI,RBX MOV RSI,R14 MOV EDX,R13D CALL 0x0014195e TEST R13B,R13B JNS 0x00140045 CMP R14,R15 JNC 0x00140045 MOV RDX,R15 SUB RDX,R14 MOVZX ECX,byte ptr [R12 + 0xb0] MOV RAX,qword ptr [R12 + 0xb8] MOV RDI,R12 MOV RSI,R14 CALL qword ptr [RAX + 0x78] MOV R14,R15 LAB_00140045: SUB R14,RBX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_strxfrm_pad_desc_and_reverse (long param_1,long param_2,ulong param_3,ulong param_4,int param_5,uint param_6, int4 param_7) { uint uVar1; uint uVar2; if (((param_6 & 0x40) != 0 && param_5 != 0) && param_3 < param_4) { uVar1 = (int)param_4 - (int)param_3; uVar2 = param_5 * *(int *)(param_1 + 0x98); if (uVar1 <= uVar2) { uVar2 = uVar1; } (**(code **)(*(long *)(param_1 + 0xb8) + 0x78)) (param_1,param_3,(ulong)uVar2,*(int1 *)(param_1 + 0xb0)); param_3 = param_3 + uVar2; } my_strxfrm_desc_and_reverse(param_2,param_3,param_6,param_7); if (((char)param_6 < '\0') && (param_3 < param_4)) { (**(code **)(*(long *)(param_1 + 0xb8) + 0x78)) (param_1,param_3,param_4 - param_3,*(int1 *)(param_1 + 0xb0)); param_3 = param_4; } return param_3 - param_2; }
3,147
emit_push_const
bluesky950520[P]quickjs/quickjs.c
static __exception int emit_push_const(JSParseState *s, JSValue val, BOOL as_atom) { int idx; if (JS_VALUE_GET_TAG(val) == JS_TAG_STRING && as_atom) { JSAtom atom; /* warning: JS_NewAtomStr frees the string value */ JS_DupValue(s->ctx, val); atom = JS_NewAtomStr(s->ctx, JS_VALUE_GET_STRING(val)); if (atom != JS_ATOM_NULL && !__JS_AtomIsTaggedInt(atom)) { emit_op(s, OP_push_atom_value); emit_u32(s, atom); return 0; } } idx = cpool_add(s, JS_DupValue(s->ctx, val)); if (idx < 0) return -1; emit_op(s, OP_push_const); emit_u32(s, idx); return 0; }
O1
c
emit_push_const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq %rsi, 0x10(%rsp) cmpl $-0x7, %r14d setne %al testl %ecx, %ecx sete %cl orb %al, %cl jne 0x6794c incl (%r15) movq (%rbx), %rdi movq 0x10(%rsp), %rsi callq 0x1f424 testl %eax, %eax jle 0x6794c movl %eax, %ebp movq 0x90(%rbx), %rax movl $0x138, %r14d # imm = 0x138 leaq (%rax,%r14), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0x4, %esi jmp 0x67994 movq %r15, 0x8(%rsp) cmpl $-0x9, %r14d jb 0x6795e movq 0x8(%rsp), %rax incl (%rax) movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x64527 testl %eax, %eax js 0x679b8 movl %eax, %ebp movq 0x90(%rbx), %rax movl $0x138, %r14d # imm = 0x138 leaq (%rax,%r14), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0x2, %esi callq 0x1a8bc addq 0x90(%rbx), %r14 leaq 0x8(%rsp), %rsi movl %ebp, (%rsi) movl $0x4, %edx movq %r14, %rdi callq 0x1a80e xorl %eax, %eax jmp 0x679bd movl $0xffffffff, %eax # imm = 0xFFFFFFFF addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
emit_push_const: push rbp push r15 push r14 push rbx sub rsp, 18h mov r14, rdx mov r15, rsi mov rbx, rdi mov [rsp+38h+var_28], rsi cmp r14d, 0FFFFFFF9h setnz al test ecx, ecx setz cl or cl, al jnz short loc_6794C inc dword ptr [r15] mov rdi, [rbx] mov rsi, [rsp+38h+var_28] call JS_NewAtomStr test eax, eax jle short loc_6794C mov ebp, eax mov rax, [rbx+90h] mov r14d, 138h lea rdi, [rax+r14] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 4 jmp short loc_67994 loc_6794C: mov [rsp+38h+var_30], r15 cmp r14d, 0FFFFFFF7h jb short loc_6795E mov rax, [rsp+38h+var_30] inc dword ptr [rax] loc_6795E: mov rdi, rbx mov rsi, r15 mov rdx, r14 call cpool_add test eax, eax js short loc_679B8 mov ebp, eax mov rax, [rbx+90h] mov r14d, 138h lea rdi, [rax+r14] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 2 loc_67994: call dbuf_putc add r14, [rbx+90h] lea rsi, [rsp+38h+var_30] mov [rsi], ebp mov edx, 4 mov rdi, r14 call dbuf_put xor eax, eax jmp short loc_679BD loc_679B8: mov eax, 0FFFFFFFFh loc_679BD: add rsp, 18h pop rbx pop r14 pop r15 pop rbp retn
long long emit_push_const(long long *a1, _DWORD *a2, long long a3, int a4) { int v6; // eax int v7; // ebp long long v8; // rax _QWORD *v9; // rdi char v10; // si int v11; // eax long long v12; // rax _QWORD *v13; // r14 _DWORD *v15; // [rsp+8h] [rbp-30h] BYREF _DWORD *v16; // [rsp+10h] [rbp-28h] v16 = a2; if ( (_DWORD)a3 == -7 && a4 != 0 ) { ++*a2; v6 = JS_NewAtomStr(*a1, (long long)v16); if ( v6 > 0 ) { v7 = v6; v8 = a1[18]; v9 = (_QWORD *)(v8 + 312); *(_DWORD *)(v8 + 360) = *(_DWORD *)(v8 + 320); v10 = 4; LABEL_8: dbuf_putc(v9, v10); v13 = (_QWORD *)(a1[18] + 312); LODWORD(v15) = v7; dbuf_put(v13, (long long)&v15, 4LL); return 0LL; } } v15 = a2; if ( (unsigned int)a3 >= 0xFFFFFFF7 ) ++*v15; v11 = cpool_add(a1, (long long)a2, a3); if ( v11 >= 0 ) { v7 = v11; v12 = a1[18]; v9 = (_QWORD *)(v12 + 312); *(_DWORD *)(v12 + 360) = *(_DWORD *)(v12 + 320); v10 = 2; goto LABEL_8; } return 0xFFFFFFFFLL; }
emit_push_const: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV qword ptr [RSP + 0x10],RSI CMP R14D,-0x7 SETNZ AL TEST ECX,ECX SETZ CL OR CL,AL JNZ 0x0016794c INC dword ptr [R15] MOV RDI,qword ptr [RBX] MOV RSI,qword ptr [RSP + 0x10] CALL 0x0011f424 TEST EAX,EAX JLE 0x0016794c MOV EBP,EAX MOV RAX,qword ptr [RBX + 0x90] MOV R14D,0x138 LEA RDI,[RAX + R14*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0x4 JMP 0x00167994 LAB_0016794c: MOV qword ptr [RSP + 0x8],R15 CMP R14D,-0x9 JC 0x0016795e MOV RAX,qword ptr [RSP + 0x8] INC dword ptr [RAX] LAB_0016795e: MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x00164527 TEST EAX,EAX JS 0x001679b8 MOV EBP,EAX MOV RAX,qword ptr [RBX + 0x90] MOV R14D,0x138 LEA RDI,[RAX + R14*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0x2 LAB_00167994: CALL 0x0011a8bc ADD R14,qword ptr [RBX + 0x90] LEA RSI,[RSP + 0x8] MOV dword ptr [RSI],EBP MOV EDX,0x4 MOV RDI,R14 CALL 0x0011a80e XOR EAX,EAX JMP 0x001679bd LAB_001679b8: MOV EAX,0xffffffff LAB_001679bd: ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP RET
int8 emit_push_const(int8 *param_1,int *param_2,int8 param_3,int param_4) { long lVar1; int iVar2; int8 uVar3; int *local_30; int *local_28; local_28 = param_2; if (param_4 != 0 && (uint)param_3 == 0xfffffff9) { *param_2 = *param_2 + 1; iVar2 = JS_NewAtomStr(*param_1,param_2); if (0 < iVar2) { lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); uVar3 = 4; goto LAB_00167994; } } if (0xfffffff6 < (uint)param_3) { *param_2 = *param_2 + 1; } local_30 = param_2; iVar2 = cpool_add(param_1,param_2,param_3); if (iVar2 < 0) { return 0xffffffff; } lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); uVar3 = 2; LAB_00167994: dbuf_putc(lVar1 + 0x138,uVar3); local_30 = (int *)CONCAT44(local_30._4_4_,iVar2); dbuf_put(param_1[0x12] + 0x138,&local_30,4); return 0; }
3,148
emit_push_const
bluesky950520[P]quickjs/quickjs.c
static __exception int emit_push_const(JSParseState *s, JSValue val, BOOL as_atom) { int idx; if (JS_VALUE_GET_TAG(val) == JS_TAG_STRING && as_atom) { JSAtom atom; /* warning: JS_NewAtomStr frees the string value */ JS_DupValue(s->ctx, val); atom = JS_NewAtomStr(s->ctx, JS_VALUE_GET_STRING(val)); if (atom != JS_ATOM_NULL && !__JS_AtomIsTaggedInt(atom)) { emit_op(s, OP_push_atom_value); emit_u32(s, atom); return 0; } } idx = cpool_add(s, JS_DupValue(s->ctx, val)); if (idx < 0) return -1; emit_op(s, OP_push_const); emit_u32(s, idx); return 0; }
O3
c
emit_push_const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx cmpl $-0x7, %r14d setne %al testl %ecx, %ecx sete %cl orb %al, %cl jne 0x69c83 incl (%r15) movq (%rbx), %rdi movq %r15, %rsi callq 0x1fb63 testl %eax, %eax jle 0x69c83 movl %eax, %ebp movq 0x90(%rbx), %rax movl $0x138, %r14d # imm = 0x138 leaq (%rax,%r14), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0x4, %esi callq 0x1b1c5 addq 0x90(%rbx), %r14 movq %rsp, %rsi jmp 0x69cda cmpl $-0x9, %r14d jb 0x69c8c incl (%r15) movq (%rbx), %rdi movq 0x90(%rbx), %rsi movq %r15, %rdx movq %r14, %rcx callq 0x66d7a testl %eax, %eax js 0x69ced movl %eax, %ebp movq 0x90(%rbx), %rax movl $0x138, %r14d # imm = 0x138 leaq (%rax,%r14), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0x2, %esi callq 0x1b1c5 addq 0x90(%rbx), %r14 leaq 0x4(%rsp), %rsi movl %ebp, (%rsi) movl $0x4, %edx movq %r14, %rdi callq 0x1b116 xorl %eax, %eax jmp 0x69cf2 movl $0xffffffff, %eax # imm = 0xFFFFFFFF addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
emit_push_const: push rbp push r15 push r14 push rbx push rax mov r14, rdx mov r15, rsi mov rbx, rdi cmp r14d, 0FFFFFFF9h setnz al test ecx, ecx setz cl or cl, al jnz short loc_69C83 inc dword ptr [r15] mov rdi, [rbx] mov rsi, r15 call JS_NewAtomStr test eax, eax jle short loc_69C83 mov ebp, eax mov rax, [rbx+90h] mov r14d, 138h lea rdi, [rax+r14] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 4 call dbuf_putc add r14, [rbx+90h] mov rsi, rsp jmp short loc_69CDA loc_69C83: cmp r14d, 0FFFFFFF7h jb short loc_69C8C inc dword ptr [r15] loc_69C8C: mov rdi, [rbx] mov rsi, [rbx+90h] mov rdx, r15 mov rcx, r14 call cpool_add test eax, eax js short loc_69CED mov ebp, eax mov rax, [rbx+90h] mov r14d, 138h lea rdi, [rax+r14] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 2 call dbuf_putc add r14, [rbx+90h] lea rsi, [rsp+28h+var_24] loc_69CDA: mov [rsi], ebp mov edx, 4 mov rdi, r14 call dbuf_put xor eax, eax jmp short loc_69CF2 loc_69CED: mov eax, 0FFFFFFFFh loc_69CF2: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long emit_push_const(long long *a1, _DWORD *a2, long long a3, int a4) { long long v4; // rax int v6; // eax int v7; // ebp long long v8; // rax _QWORD *v9; // r14 int *v10; // rsi int v11; // eax long long v12; // rax _QWORD v14[5]; // [rsp-4h] [rbp-28h] BYREF v14[0] = v4; if ( (_DWORD)a3 == -7 && a4 != 0 ) { ++*a2; v6 = JS_NewAtomStr(*a1, (long long)a2); if ( v6 > 0 ) { v7 = v6; v8 = a1[18]; *(_DWORD *)(v8 + 360) = *(_DWORD *)(v8 + 320); dbuf_putc((_QWORD *)(v8 + 312), 4); v9 = (_QWORD *)(a1[18] + 312); v10 = (int *)v14; LABEL_8: *v10 = v7; dbuf_put(v9, (long long)v10, 4LL); return 0LL; } } if ( (unsigned int)a3 >= 0xFFFFFFF7 ) ++*a2; v11 = cpool_add(*a1, a1[18], (long long)a2, a3); if ( v11 >= 0 ) { v7 = v11; v12 = a1[18]; *(_DWORD *)(v12 + 360) = *(_DWORD *)(v12 + 320); dbuf_putc((_QWORD *)(v12 + 312), 2); v9 = (_QWORD *)(a1[18] + 312); v10 = (int *)v14 + 1; goto LABEL_8; } return 0xFFFFFFFFLL; }
emit_push_const: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RDX MOV R15,RSI MOV RBX,RDI CMP R14D,-0x7 SETNZ AL TEST ECX,ECX SETZ CL OR CL,AL JNZ 0x00169c83 INC dword ptr [R15] MOV RDI,qword ptr [RBX] MOV RSI,R15 CALL 0x0011fb63 TEST EAX,EAX JLE 0x00169c83 MOV EBP,EAX MOV RAX,qword ptr [RBX + 0x90] MOV R14D,0x138 LEA RDI,[RAX + R14*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0x4 CALL 0x0011b1c5 ADD R14,qword ptr [RBX + 0x90] MOV RSI,RSP JMP 0x00169cda LAB_00169c83: CMP R14D,-0x9 JC 0x00169c8c INC dword ptr [R15] LAB_00169c8c: MOV RDI,qword ptr [RBX] MOV RSI,qword ptr [RBX + 0x90] MOV RDX,R15 MOV RCX,R14 CALL 0x00166d7a TEST EAX,EAX JS 0x00169ced MOV EBP,EAX MOV RAX,qword ptr [RBX + 0x90] MOV R14D,0x138 LEA RDI,[RAX + R14*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0x2 CALL 0x0011b1c5 ADD R14,qword ptr [RBX + 0x90] LEA RSI,[RSP + 0x4] LAB_00169cda: MOV dword ptr [RSI],EBP MOV EDX,0x4 MOV RDI,R14 CALL 0x0011b116 XOR EAX,EAX JMP 0x00169cf2 LAB_00169ced: MOV EAX,0xffffffff LAB_00169cf2: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int8 emit_push_const(int8 *param_1,int *param_2,int8 param_3,int param_4) { long lVar1; int iVar2; int *piVar3; int local_28; int local_24; piVar3 = &local_28; if (param_4 != 0 && (uint)param_3 == 0xfffffff9) { *param_2 = *param_2 + 1; iVar2 = JS_NewAtomStr(*param_1,param_2); if (0 < iVar2) { lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,4); lVar1 = param_1[0x12]; goto LAB_00169cda; } } if (0xfffffff6 < (uint)param_3) { *param_2 = *param_2 + 1; } iVar2 = cpool_add(*param_1,param_1[0x12],param_2,param_3); if (iVar2 < 0) { return 0xffffffff; } lVar1 = param_1[0x12]; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,2); lVar1 = param_1[0x12]; piVar3 = &local_24; LAB_00169cda: *piVar3 = iVar2; dbuf_put(lVar1 + 0x138,piVar3,4); return 0; }
3,149
unpack_filename
eloqsql/mysys/mf_pack.c
size_t unpack_filename(char * to, const char *from) { size_t length, n_length, buff_length; char buff[FN_REFLEN + 1]; DBUG_ENTER("unpack_filename"); length=dirname_part(buff, from, &buff_length);/* copy & convert dirname */ n_length=unpack_dirname(buff,buff); if (n_length+strlen(from+length) < FN_REFLEN) { (void) strmov(buff+n_length,from+length); length= system_filename(to,buff); /* Fix to usably filename */ } else length= system_filename(to,from); /* Fix to usably filename */ DBUG_RETURN(length); }
O0
c
unpack_filename: pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) leaq -0x210(%rbp), %rdi movq -0x220(%rbp), %rsi leaq -0x238(%rbp), %rdx callq 0x2cd00 movq %rax, -0x228(%rbp) leaq -0x210(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0x2d8a0 movq %rax, -0x230(%rbp) movq -0x230(%rbp), %rax movq %rax, -0x240(%rbp) movq -0x220(%rbp), %rdi addq -0x228(%rbp), %rdi callq 0x24130 movq %rax, %rcx movq -0x240(%rbp), %rax addq %rcx, %rax cmpq $0x200, %rax # imm = 0x200 jae 0x2dc54 leaq -0x210(%rbp), %rdi addq -0x230(%rbp), %rdi movq -0x220(%rbp), %rsi addq -0x228(%rbp), %rsi callq 0x242c0 movq -0x218(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0x2db50 movq %rax, -0x228(%rbp) jmp 0x2dc6e movq -0x218(%rbp), %rdi movq -0x220(%rbp), %rsi callq 0x2db50 movq %rax, -0x228(%rbp) jmp 0x2dc70 movq -0x228(%rbp), %rax movq %rax, -0x248(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x2dca0 movq -0x248(%rbp), %rax addq $0x250, %rsp # imm = 0x250 popq %rbp retq callq 0x242f0 nopw %cs:(%rax,%rax) nop
unpack_filename: push rbp mov rbp, rsp sub rsp, 250h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi lea rdi, [rbp+var_210] mov rsi, [rbp+var_220] lea rdx, [rbp+var_238] call dirname_part mov [rbp+var_228], rax lea rdi, [rbp+var_210] lea rsi, [rbp+var_210] call unpack_dirname mov [rbp+var_230], rax mov rax, [rbp+var_230] mov [rbp+var_240], rax mov rdi, [rbp+var_220] add rdi, [rbp+var_228] call _strlen mov rcx, rax mov rax, [rbp+var_240] add rax, rcx cmp rax, 200h jnb short loc_2DC54 lea rdi, [rbp+var_210] add rdi, [rbp+var_230] mov rsi, [rbp+var_220] add rsi, [rbp+var_228] call _stpcpy mov rdi, [rbp+var_218] lea rsi, [rbp+var_210] call system_filename mov [rbp+var_228], rax jmp short loc_2DC6E loc_2DC54: mov rdi, [rbp+var_218] mov rsi, [rbp+var_220] call system_filename mov [rbp+var_228], rax loc_2DC6E: jmp short $+2 loc_2DC70: mov rax, [rbp+var_228] mov [rbp+var_248], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_2DCA0 mov rax, [rbp+var_248] add rsp, 250h pop rbp retn loc_2DCA0: call ___stack_chk_fail
long long unpack_filename(long long a1, _BYTE *a2) { long long v3; // [rsp+10h] [rbp-240h] long long v4; // [rsp+18h] [rbp-238h] BYREF long long v5; // [rsp+20h] [rbp-230h] long long v6; // [rsp+28h] [rbp-228h] _BYTE *v7; // [rsp+30h] [rbp-220h] long long v8; // [rsp+38h] [rbp-218h] _BYTE v9[520]; // [rsp+40h] [rbp-210h] BYREF unsigned long long v10; // [rsp+248h] [rbp-8h] v10 = __readfsqword(0x28u); v8 = a1; v7 = a2; v6 = dirname_part((long long)v9, a2, &v4); v5 = unpack_dirname((long long)v9, v9); v3 = v5; if ( (unsigned long long)(strlen(&v7[v6]) + v3) >= 0x200 ) return system_filename(v8, (long long)v7); stpcpy(&v9[v5], &v7[v6]); return system_filename(v8, (long long)v9); }
unpack_filename: PUSH RBP MOV RBP,RSP SUB RSP,0x250 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x220] LEA RDX,[RBP + -0x238] CALL 0x0012cd00 MOV qword ptr [RBP + -0x228],RAX LEA RDI,[RBP + -0x210] LEA RSI,[RBP + -0x210] CALL 0x0012d8a0 MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x230] MOV qword ptr [RBP + -0x240],RAX MOV RDI,qword ptr [RBP + -0x220] ADD RDI,qword ptr [RBP + -0x228] CALL 0x00124130 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x240] ADD RAX,RCX CMP RAX,0x200 JNC 0x0012dc54 LEA RDI,[RBP + -0x210] ADD RDI,qword ptr [RBP + -0x230] MOV RSI,qword ptr [RBP + -0x220] ADD RSI,qword ptr [RBP + -0x228] CALL 0x001242c0 MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0x210] CALL 0x0012db50 MOV qword ptr [RBP + -0x228],RAX JMP 0x0012dc6e LAB_0012dc54: MOV RDI,qword ptr [RBP + -0x218] MOV RSI,qword ptr [RBP + -0x220] CALL 0x0012db50 MOV qword ptr [RBP + -0x228],RAX LAB_0012dc6e: JMP 0x0012dc70 LAB_0012dc70: MOV RAX,qword ptr [RBP + -0x228] MOV qword ptr [RBP + -0x248],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0012dca0 MOV RAX,qword ptr [RBP + -0x248] ADD RSP,0x250 POP RBP RET LAB_0012dca0: CALL 0x001242f0
int8 unpack_filename(int8 param_1,long param_2) { long lVar1; size_t sVar2; long in_FS_OFFSET; int1 local_240 [8]; long local_238; long local_230; long local_228; int8 local_220; char local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_228 = param_2; local_220 = param_1; local_230 = dirname_part(local_218,param_2,local_240); lVar1 = unpack_dirname(local_218,local_218); local_238 = lVar1; sVar2 = strlen((char *)(local_228 + local_230)); if (lVar1 + sVar2 < 0x200) { stpcpy(local_218 + local_238,(char *)(local_228 + local_230)); local_230 = system_filename(local_220,local_218); } else { local_230 = system_filename(local_220,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_230; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
3,150
void nlohmann::json_abi_v3_11_3::detail::from_json<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>, int, 0>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, int&)
llama.cpp/common/json.hpp
inline void from_json(const BasicJsonType& j, ArithmeticType& val) { switch (static_cast<value_t>(j)) { case value_t::number_unsigned: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>()); break; } case value_t::number_integer: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); break; } case value_t::number_float: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>()); break; } case value_t::boolean: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>()); break; } case value_t::null: case value_t::object: case value_t::array: case value_t::string: case value_t::binary: case value_t::discarded: default: JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j)); } }
O3
cpp
void nlohmann::json_abi_v3_11_3::detail::from_json<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>, int, 0>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, int&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movzbl (%rdi), %eax addl $-0x4, %eax cmpl $0x3, %eax ja 0xc0839 leaq 0x5fe8a(%rip), %rcx # 0x12069c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl 0x8(%r14), %eax jmp 0xc082e movzbl 0x8(%r14), %eax jmp 0xc082e cvttsd2si 0x8(%r14), %eax movl %eax, (%rsi) addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x20, %edi callq 0x21630 movq %rax, %rbx movq %r14, %rdi callq 0x8a8b0 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x60e94(%rip), %rsi # 0x1216f1 leaq 0x10(%rsp), %rdi callq 0x8023c movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0xbc1b8 xorl %ebp, %ebp leaq 0xa27a8(%rip), %rsi # 0x163030 leaq -0x4a10f(%rip), %rdx # 0x76780 movq %rbx, %rdi callq 0x21a50 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xc08b5 movq 0x20(%rsp), %rsi incq %rsi callq 0x21170 testb %bpl, %bpl jne 0xc08bf jmp 0xc08c7 movq %rax, %r14 movq %rbx, %rdi callq 0x21f00 movq %r14, %rdi callq 0x21af0 nop
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: push rbp; void * push r14; int push rbx; __int64 sub rsp, 30h mov r14, rdi movzx eax, byte ptr [rdi] add eax, 0FFFFFFFCh; switch 4 cases cmp eax, 3 ja short def_C0819; jumptable 00000000000C0819 default case lea rcx, jpt_C0819 movsxd rax, ds:(jpt_C0819 - 12069Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_C081B: mov eax, [r14+8]; jumptable 00000000000C0819 cases 5,6 jmp short loc_C082E loc_C0821: movzx eax, byte ptr [r14+8]; jumptable 00000000000C0819 case 4 jmp short loc_C082E loc_C0828: cvttsd2si eax, qword ptr [r14+8]; jumptable 00000000000C0819 case 7 loc_C082E: mov [rsi], eax add rsp, 30h pop rbx pop r14 pop rbp retn def_C0819: mov edi, 20h ; ' '; jumptable 00000000000C0819 default case call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeNumb; "type must be number, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_C08B5 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C08B5: test bpl, bpl jnz short loc_C08BF jmp short loc_C08C7 mov r14, rax loc_C08BF: mov rdi, rbx; void * call ___cxa_free_exception loc_C08C7: mov rdi, r14 call __Unwind_Resume
long long ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_( unsigned __int8 *a1, _DWORD *a2) { long long result; // rax nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx const char *v4; // [rsp+8h] [rbp-40h] BYREF _QWORD v5[2]; // [rsp+10h] [rbp-38h] BYREF switch ( *a1 ) { case 4u: result = a1[8]; break; case 5u: case 6u: result = *((unsigned int *)a1 + 2); break; case 7u: result = (unsigned int)(int)*((double *)a1 + 1); break; default: exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); 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>::type_name(a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v5, (long long)"type must be number, but is ", &v4); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, v5); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } *a2 = result; return result; }
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI MOVZX EAX,byte ptr [RDI] ADD EAX,-0x4 CMP EAX,0x3 JA 0x001c0839 LEA RCX,[0x22069c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_5: MOV EAX,dword ptr [R14 + 0x8] JMP 0x001c082e caseD_4: MOVZX EAX,byte ptr [R14 + 0x8] JMP 0x001c082e caseD_7: CVTTSD2SI EAX,qword ptr [R14 + 0x8] LAB_001c082e: MOV dword ptr [RSI],EAX ADD RSP,0x30 POP RBX POP R14 POP RBP RET default: MOV EDI,0x20 CALL 0x00121630 MOV RBX,RAX MOV RDI,R14 CALL 0x0018a8b0 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_001c0856: LEA RSI,[0x2216f1] LEA RDI,[RSP + 0x10] CALL 0x0018023c MOV BPL,0x1 LAB_001c086a: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x001bc1b8 XOR EBP,EBP LEA RSI,[0x263030] LEA RDX,[0x176780] MOV RDI,RBX CALL 0x00121a50
void _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,uint *param_2) { uint uVar1; int8 uVar2; char *local_40; detail local_38 [32]; switch(*param_1) { case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x4: uVar1 = (uint)(byte)param_1[8]; break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x5: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x6: uVar1 = *(uint *)(param_1 + 8); break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x7: uVar1 = (uint)*(double *)(param_1 + 8); break; default: uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 001c0856 to 001c0866 has its CatchHandler @ 001c08bc */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"type must be number, but is ",&local_40); /* try { // try from 001c086a to 001c0896 has its CatchHandler @ 001c0897 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x12e,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } *param_2 = uVar1; return; }
3,151
gz_init
3fs/build_O3/src/apache-arrow-cpp/cpp/zlib_ep-prefix/src/zlib_ep/gzwrite.c
local int gz_init(state) gz_statep state; { int ret; z_streamp strm = &(state->strm); /* allocate input buffer (double size for gzprintf) */ state->in = (unsigned char *)malloc(state->want << 1); if (state->in == NULL) { gz_error(state, Z_MEM_ERROR, "out of memory"); return -1; } /* only need output buffer and deflate state if compressing */ if (!state->direct) { /* allocate output buffer */ state->out = (unsigned char *)malloc(state->want); if (state->out == NULL) { free(state->in); gz_error(state, Z_MEM_ERROR, "out of memory"); return -1; } /* allocate deflate memory, set up for gzip compression */ strm->zalloc = Z_NULL; strm->zfree = Z_NULL; strm->opaque = Z_NULL; ret = deflateInit2(strm, state->level, Z_DEFLATED, MAX_WBITS + 16, DEF_MEM_LEVEL, state->strategy); if (ret != Z_OK) { free(state->out); free(state->in); gz_error(state, Z_MEM_ERROR, "out of memory"); return -1; } strm->next_in = NULL; } /* mark state as initialized */ state->size = state->want; /* initialize write buffer if compressing */ if (!state->direct) { strm->avail_out = state->size; strm->next_out = state->out; state->x.next = strm->next_out; } return 0; }
O3
c
gz_init: pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movl 0x2c(%rdi), %r15d leal (%r15,%r15), %edi callq 0x31f0 movq %rax, 0x30(%rbx) testq %rax, %rax je 0x8772 cmpl $0x0, 0x40(%rbx) je 0x86fd movl %r15d, 0x28(%rbx) xorl %eax, %eax jmp 0x878b movq %rax, %r14 movq %r15, %rdi callq 0x31f0 movq %rax, 0x38(%rbx) testq %rax, %rax je 0x876a leaq 0x80(%rbx), %rdi xorps %xmm0, %xmm0 movups %xmm0, 0xc0(%rbx) movq $0x0, 0xd0(%rbx) movl 0x58(%rbx), %esi movl 0x5c(%rbx), %r9d leaq 0x68c5(%rip), %rax # 0xf000 movl $0x8, %edx movl $0x1f, %ecx movl $0x8, %r8d pushq $0x70 pushq %rax callq 0x3160 addq $0x10, %rsp testl %eax, %eax je 0x8791 movq 0x38(%rbx), %rdi callq 0x3060 movq 0x30(%rbx), %rdi jmp 0x876d movq %r14, %rdi callq 0x3060 leaq 0x8d87(%rip), %rdx # 0x11500 movq %rbx, %rdi movl $0xfffffffc, %esi # imm = 0xFFFFFFFC callq 0x757b movl $0xffffffff, %eax # imm = 0xFFFFFFFF popq %rbx popq %r14 popq %r15 retq movq $0x0, 0x80(%rbx) movl 0x2c(%rbx), %ecx movl %ecx, 0x28(%rbx) xorl %eax, %eax cmpl $0x0, 0x40(%rbx) jne 0x878b movl %ecx, 0xa0(%rbx) movq 0x38(%rbx), %rcx movq %rcx, 0x98(%rbx) movq %rcx, 0x8(%rbx) jmp 0x878b
gz_init: push r15 push r14 push rbx mov rbx, rdi mov r15d, [rdi+2Ch] lea edi, [r15+r15] call _malloc mov [rbx+30h], rax test rax, rax jz loc_8772 cmp dword ptr [rbx+40h], 0 jz short loc_86FD mov [rbx+28h], r15d xor eax, eax jmp loc_878B loc_86FD: mov r14, rax mov rdi, r15 call _malloc mov [rbx+38h], rax test rax, rax jz short loc_876A lea rdi, [rbx+80h] xorps xmm0, xmm0 movups xmmword ptr [rbx+0C0h], xmm0 mov qword ptr [rbx+0D0h], 0 mov esi, [rbx+58h] mov r9d, [rbx+5Ch] lea rax, a1213; "1.2.13" mov edx, 8 mov ecx, 1Fh mov r8d, 8 push 70h ; 'p' push rax call _deflateInit2_ add rsp, 10h test eax, eax jz short loc_8791 mov rdi, [rbx+38h] call _free mov rdi, [rbx+30h] jmp short loc_876D loc_876A: mov rdi, r14 loc_876D: call _free loc_8772: lea rdx, aOutOfMemory; "out of memory" mov rdi, rbx mov esi, 0FFFFFFFCh call gz_error mov eax, 0FFFFFFFFh loc_878B: pop rbx pop r14 pop r15 retn loc_8791: mov qword ptr [rbx+80h], 0 mov ecx, [rbx+2Ch] mov [rbx+28h], ecx xor eax, eax cmp dword ptr [rbx+40h], 0 jnz short loc_878B mov [rbx+0A0h], ecx mov rcx, [rbx+38h] mov [rbx+98h], rcx mov [rbx+8], rcx jmp short loc_878B
long long gz_init(long long a1) { long long v2; // r15 long long v3; // rax long long result; // rax long long v5; // r14 long long v6; // rax long long v7; // rdi int v8; // ecx long long v9; // rcx v2 = *(unsigned int *)(a1 + 44); v3 = malloc((unsigned int)(2 * v2)); *(_QWORD *)(a1 + 48) = v3; if ( !v3 ) goto LABEL_9; if ( *(_DWORD *)(a1 + 64) ) { *(_DWORD *)(a1 + 40) = v2; return 0LL; } v5 = v3; v6 = malloc(v2); *(_QWORD *)(a1 + 56) = v6; if ( !v6 ) { v7 = v5; goto LABEL_8; } *(_OWORD *)(a1 + 192) = 0LL; *(_QWORD *)(a1 + 208) = 0LL; if ( (unsigned int)deflateInit2_( (int)a1 + 128, *(_DWORD *)(a1 + 88), 8, 31, 8, *(_DWORD *)(a1 + 92), (long long)"1.2.13", 112) ) { free(*(_QWORD *)(a1 + 56)); v7 = *(_QWORD *)(a1 + 48); LABEL_8: free(v7); LABEL_9: gz_error(a1, -4, "out of memory"); return 0xFFFFFFFFLL; } *(_QWORD *)(a1 + 128) = 0LL; v8 = *(_DWORD *)(a1 + 44); *(_DWORD *)(a1 + 40) = v8; result = 0LL; if ( !*(_DWORD *)(a1 + 64) ) { *(_DWORD *)(a1 + 160) = v8; v9 = *(_QWORD *)(a1 + 56); *(_QWORD *)(a1 + 152) = v9; *(_QWORD *)(a1 + 8) = v9; } return result; }
gz_init: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI MOV R15D,dword ptr [RDI + 0x2c] LEA EDI,[R15 + R15*0x1] CALL 0x001031f0 MOV qword ptr [RBX + 0x30],RAX TEST RAX,RAX JZ 0x00108772 CMP dword ptr [RBX + 0x40],0x0 JZ 0x001086fd MOV dword ptr [RBX + 0x28],R15D XOR EAX,EAX JMP 0x0010878b LAB_001086fd: MOV R14,RAX MOV RDI,R15 CALL 0x001031f0 MOV qword ptr [RBX + 0x38],RAX TEST RAX,RAX JZ 0x0010876a LEA RDI,[RBX + 0x80] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0xc0],XMM0 MOV qword ptr [RBX + 0xd0],0x0 MOV ESI,dword ptr [RBX + 0x58] MOV R9D,dword ptr [RBX + 0x5c] LEA RAX,[0x10f000] MOV EDX,0x8 MOV ECX,0x1f MOV R8D,0x8 PUSH 0x70 PUSH RAX CALL 0x00103160 ADD RSP,0x10 TEST EAX,EAX JZ 0x00108791 MOV RDI,qword ptr [RBX + 0x38] CALL 0x00103060 MOV RDI,qword ptr [RBX + 0x30] JMP 0x0010876d LAB_0010876a: MOV RDI,R14 LAB_0010876d: CALL 0x00103060 LAB_00108772: LEA RDX,[0x111500] MOV RDI,RBX MOV ESI,0xfffffffc CALL 0x0010757b MOV EAX,0xffffffff LAB_0010878b: POP RBX POP R14 POP R15 RET LAB_00108791: MOV qword ptr [RBX + 0x80],0x0 MOV ECX,dword ptr [RBX + 0x2c] MOV dword ptr [RBX + 0x28],ECX XOR EAX,EAX CMP dword ptr [RBX + 0x40],0x0 JNZ 0x0010878b MOV dword ptr [RBX + 0xa0],ECX MOV RCX,qword ptr [RBX + 0x38] MOV qword ptr [RBX + 0x98],RCX MOV qword ptr [RBX + 0x8],RCX JMP 0x0010878b
int8 gz_init(long param_1) { uint uVar1; int iVar2; void *__ptr; void *pvVar3; uVar1 = *(uint *)(param_1 + 0x2c); __ptr = malloc((ulong)(uVar1 * 2)); *(void **)(param_1 + 0x30) = __ptr; if (__ptr != (void *)0x0) { if (*(int *)(param_1 + 0x40) != 0) { *(uint *)(param_1 + 0x28) = uVar1; return 0; } pvVar3 = malloc((ulong)uVar1); *(void **)(param_1 + 0x38) = pvVar3; if (pvVar3 != (void *)0x0) { *(int8 *)(param_1 + 0xc0) = 0; *(int8 *)(param_1 + 200) = 0; *(int8 *)(param_1 + 0xd0) = 0; iVar2 = deflateInit2_(param_1 + 0x80,*(int4 *)(param_1 + 0x58),8,0x1f,8, *(int4 *)(param_1 + 0x5c),"1.2.13",0x70); if (iVar2 == 0) { *(int8 *)(param_1 + 0x80) = 0; *(int4 *)(param_1 + 0x28) = *(int4 *)(param_1 + 0x2c); if (*(int *)(param_1 + 0x40) != 0) { return 0; } *(int4 *)(param_1 + 0xa0) = *(int4 *)(param_1 + 0x2c); *(int8 *)(param_1 + 0x98) = *(int8 *)(param_1 + 0x38); *(int8 *)(param_1 + 8) = *(int8 *)(param_1 + 0x38); return 0; } free(*(void **)(param_1 + 0x38)); __ptr = *(void **)(param_1 + 0x30); } free(__ptr); } gz_error(param_1,0xfffffffc,"out of memory"); return 0xffffffff; }
3,152
my_utf8mb3_uni_no_range
eloqsql/strings/ctype-utf8.c
static int my_utf8mb3_uni_no_range(CHARSET_INFO *cs __attribute__((unused)), my_wc_t * pwc, const uchar *s) { uchar c; c= s[0]; if (c < 0x80) { *pwc = c; return 1; } if (c < 0xc2) return MY_CS_ILSEQ; if (c < 0xe0) { if (!((s[1] ^ 0x80) < 0x40)) return MY_CS_ILSEQ; *pwc= UTF8MB2_CODE(c, s[1]); return 2; } if (c < 0xf0) { if (!IS_UTF8MB3_STEP2(c, s[1], s[2])) return MY_CS_ILSEQ; *pwc= UTF8MB3_CODE(c, s[1], s[2]); return 3; } return MY_CS_ILSEQ; }
O3
c
my_utf8mb3_uni_no_range: pushq %rbp movq %rsp, %rbp movzbl (%rsi), %ecx testb %cl, %cl js 0x4e58d movl $0x1, %eax movq %rcx, (%rdi) jmp 0x4e594 xorl %eax, %eax cmpb $-0x3e, %cl jae 0x4e596 popq %rbp retq cmpb $-0x21, %cl ja 0x4e5b9 movzbl 0x1(%rsi), %edx xorl $0x80, %edx cmpb $0x3f, %dl ja 0x4e594 andl $0x1f, %ecx shll $0x6, %ecx orl %edx, %ecx movl $0x2, %eax jmp 0x4e588 cmpb $-0x11, %cl ja 0x4e594 movzbl 0x1(%rsi), %edx cmpb $-0x41, %dl jg 0x4e594 movzbl 0x2(%rsi), %esi cmpb $-0x41, %sil jg 0x4e594 cmpl $0xe0, %ecx sete %r8b cmpb $-0x60, %dl setb %r9b testb %r9b, %r8b jne 0x4e594 shll $0xc, %ecx movzwl %cx, %eax andl $0x3f, %edx shll $0x6, %edx orl %eax, %edx andl $0x3f, %esi orq %rdx, %rsi movl $0x3, %eax movq %rsi, %rcx jmp 0x4e588
my_utf8mb3_uni_no_range: push rbp mov rbp, rsp movzx ecx, byte ptr [rsi] test cl, cl js short loc_4E58D mov eax, 1 loc_4E588: mov [rdi], rcx jmp short loc_4E594 loc_4E58D: xor eax, eax cmp cl, 0C2h jnb short loc_4E596 loc_4E594: pop rbp retn loc_4E596: cmp cl, 0DFh ja short loc_4E5B9 movzx edx, byte ptr [rsi+1] xor edx, 80h cmp dl, 3Fh ; '?' ja short loc_4E594 and ecx, 1Fh shl ecx, 6 or ecx, edx mov eax, 2 jmp short loc_4E588 loc_4E5B9: cmp cl, 0EFh ja short loc_4E594 movzx edx, byte ptr [rsi+1] cmp dl, 0BFh jg short loc_4E594 movzx esi, byte ptr [rsi+2] cmp sil, 0BFh jg short loc_4E594 cmp ecx, 0E0h setz r8b cmp dl, 0A0h setb r9b test r8b, r9b jnz short loc_4E594 shl ecx, 0Ch movzx eax, cx and edx, 3Fh shl edx, 6 or edx, eax and esi, 3Fh or rsi, rdx mov eax, 3 mov rcx, rsi jmp short loc_4E588
long long my_utf8mb3_uni_no_range(unsigned long long *a1, unsigned __int8 *a2) { unsigned long long v2; // rcx long long result; // rax char v4; // dl char v5; // si v2 = *a2; if ( (v2 & 0x80u) == 0LL ) { result = 1LL; LABEL_3: *a1 = v2; return result; } result = 0LL; if ( (unsigned __int8)v2 >= 0xC2u ) { if ( (unsigned __int8)v2 > 0xDFu ) { if ( (unsigned __int8)v2 <= 0xEFu ) { v4 = a2[1]; if ( v4 <= -65 ) { v5 = a2[2]; if ( v5 <= -65 && ((unsigned __int8)v4 >= 0xA0u || (_DWORD)v2 != 224) ) { result = 3LL; v2 = (unsigned __int16)((_WORD)v2 << 12) | ((unsigned __int8)(v4 & 0x3F) << 6) | (unsigned long long)(v5 & 0x3F); goto LABEL_3; } } } } else if ( (a2[1] ^ 0x80u) <= 0x3F ) { v2 = a2[1] ^ 0x80 | ((unsigned __int8)(v2 & 0x1F) << 6); result = 2LL; goto LABEL_3; } } return result; }
my_utf8mb3_uni_no_range: PUSH RBP MOV RBP,RSP MOVZX ECX,byte ptr [RSI] TEST CL,CL JS 0x0014e58d MOV EAX,0x1 LAB_0014e588: MOV qword ptr [RDI],RCX JMP 0x0014e594 LAB_0014e58d: XOR EAX,EAX CMP CL,0xc2 JNC 0x0014e596 LAB_0014e594: POP RBP RET LAB_0014e596: CMP CL,0xdf JA 0x0014e5b9 MOVZX EDX,byte ptr [RSI + 0x1] XOR EDX,0x80 CMP DL,0x3f JA 0x0014e594 AND ECX,0x1f SHL ECX,0x6 OR ECX,EDX MOV EAX,0x2 JMP 0x0014e588 LAB_0014e5b9: CMP CL,0xef JA 0x0014e594 MOVZX EDX,byte ptr [RSI + 0x1] CMP DL,0xbf JG 0x0014e594 MOVZX ESI,byte ptr [RSI + 0x2] CMP SIL,0xbf JG 0x0014e594 CMP ECX,0xe0 SETZ R8B CMP DL,0xa0 SETC R9B TEST R8B,R9B JNZ 0x0014e594 SHL ECX,0xc MOVZX EAX,CX AND EDX,0x3f SHL EDX,0x6 OR EDX,EAX AND ESI,0x3f OR RSI,RDX MOV EAX,0x3 MOV RCX,RSI JMP 0x0014e588
int8 my_utf8mb3_uni_no_range(ulong *param_1,byte *param_2) { byte bVar1; byte bVar2; int8 uVar3; ulong uVar4; bVar1 = *param_2; uVar4 = (ulong)bVar1; if ((char)bVar1 < '\0') { if (bVar1 < 0xc2) { return 0; } if (bVar1 < 0xe0) { if (0x3f < (byte)(param_2[1] ^ 0x80)) { return 0; } uVar4 = (ulong)((bVar1 & 0x1f) << 6 | param_2[1] ^ 0x80); uVar3 = 2; } else { if (0xef < bVar1) { return 0; } bVar2 = param_2[1]; if (-0x41 < (char)bVar2) { return 0; } if (-0x41 < (char)param_2[2]) { return 0; } if (bVar1 == 0xe0 && bVar2 < 0xa0) { return 0; } uVar4 = (ulong)(param_2[2] & 0x3f | (bVar2 & 0x3f) << 6 | (bVar1 & 0xf) << 0xc); uVar3 = 3; } } else { uVar3 = 1; } *param_1 = uVar4; return uVar3; }
3,153
ps_fetch_int32
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
static void ps_fetch_int32(MYSQL_BIND *r_param, const MYSQL_FIELD * const field, unsigned char **row) { switch (r_param->buffer_type) { /* case MYSQL_TYPE_TINY: ps_fetch_from_1_to_8_bytes(r_param, field, row, 1); break; case MYSQL_TYPE_YEAR: case MYSQL_TYPE_SHORT: ps_fetch_from_1_to_8_bytes(r_param, field, row, 2); break; */ case MYSQL_TYPE_INT24: case MYSQL_TYPE_LONG: ps_fetch_from_1_to_8_bytes(r_param, field, row, 4); break; default: { int32 sval= sint4korr(*row); longlong lval= field->flags & UNSIGNED_FLAG ? (longlong)(uint32) sval : (longlong)sval; convert_from_long(r_param, field, lval, field->flags & UNSIGNED_FLAG); (*row) += 4; } break; } }
O3
c
ps_fetch_int32: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdx, %rbx movl 0x60(%rdi), %eax cmpl $0x9, %eax je 0x44871 cmpl $0x3, %eax jne 0x44884 movq %rbx, %rdx movl $0x4, %ecx addq $0x8, %rsp popq %rbx popq %rbp jmp 0x43c54 movq (%rbx), %rax movslq (%rax), %rax movl 0x64(%rsi), %ecx andl $0x20, %ecx movl %eax, %edx cmoveq %rax, %rdx callq 0x4532f addq $0x4, (%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
ps_fetch_int32: push rbp mov rbp, rsp push rbx push rax mov rbx, rdx mov eax, [rdi+60h] cmp eax, 9 jz short loc_44871 cmp eax, 3 jnz short loc_44884 loc_44871: mov rdx, rbx mov ecx, 4 add rsp, 8 pop rbx pop rbp jmp ps_fetch_from_1_to_8_bytes loc_44884: mov rax, [rbx] movsxd rax, dword ptr [rax] mov ecx, [rsi+64h] and ecx, 20h mov edx, eax cmovz rdx, rax call convert_from_long add qword ptr [rbx], 4 add rsp, 8 pop rbx pop rbp retn
long long ps_fetch_int32(long long a1, long long a2, _BYTE **a3) { int v4; // eax long long result; // rax long long v6; // rdx v4 = *(_DWORD *)(a1 + 96); if ( v4 == 9 || v4 == 3 ) return ps_fetch_from_1_to_8_bytes(a1, a2, a3, 4u); v6 = *(unsigned int *)*a3; if ( (*(_DWORD *)(a2 + 100) & 0x20) == 0 ) v6 = *(int *)*a3; result = convert_from_long(a1, a2, v6, *(_DWORD *)(a2 + 100) & 0x20); *a3 += 4; return result; }
ps_fetch_int32: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDX MOV EAX,dword ptr [RDI + 0x60] CMP EAX,0x9 JZ 0x00144871 CMP EAX,0x3 JNZ 0x00144884 LAB_00144871: MOV RDX,RBX MOV ECX,0x4 ADD RSP,0x8 POP RBX POP RBP JMP 0x00143c54 LAB_00144884: MOV RAX,qword ptr [RBX] MOVSXD RAX,dword ptr [RAX] MOV ECX,dword ptr [RSI + 0x64] AND ECX,0x20 MOV EDX,EAX CMOVZ RDX,RAX CALL 0x0014532f ADD qword ptr [RBX],0x4 ADD RSP,0x8 POP RBX POP RBP RET
void ps_fetch_int32(long param_1,long param_2,long *param_3) { ulong uVar1; if ((*(int *)(param_1 + 0x60) != 9) && (*(int *)(param_1 + 0x60) != 3)) { uVar1 = (ulong)*(uint *)*param_3; if ((*(uint *)(param_2 + 100) & 0x20) == 0) { uVar1 = (long)(int)*(uint *)*param_3; } convert_from_long(param_1,param_2,uVar1); *param_3 = *param_3 + 4; return; } ps_fetch_from_1_to_8_bytes(param_1,param_2,param_3,4); return; }
3,154
my_caseup_str_mb
eloqsql/strings/ctype-mb.c
size_t my_caseup_str_mb(CHARSET_INFO * cs, char *str) { register uint32 l; register const uchar *map= cs->to_upper; char *str_orig= str; while (*str) { /* Pointing after the '\0' is safe here. */ if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen))) str+= l; else { *str= (char) map[(uchar)*str]; str++; } } return (size_t) (str - str_orig); }
O3
c
my_caseup_str_mb: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %rbx cmpb $0x0, (%rsi) movq %rsi, %rax je 0x35efc movq %rdi, %r14 movq 0x50(%rdi), %r12 movq %rbx, %r15 movl 0x9c(%r14), %edx addq %r15, %rdx movq 0xb8(%r14), %rax movq %r14, %rdi movq %r15, %rsi callq *0xc0(%rax) cmpl $0x2, %eax jge 0x35eec movzbl (%r15), %eax movb (%r12,%rax), %al movb %al, (%r15) movl $0x1, %ecx jmp 0x35eee movl %eax, %ecx leaq (%r15,%rcx), %rax cmpb $0x0, (%r15,%rcx) movq %rax, %r15 jne 0x35eb8 subq %rbx, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
my_caseup_str_mb: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rsi cmp byte ptr [rsi], 0 mov rax, rsi jz short loc_35EFC mov r14, rdi mov r12, [rdi+50h] mov r15, rbx loc_35EB8: mov edx, [r14+9Ch] add rdx, r15 mov rax, [r14+0B8h] mov rdi, r14 mov rsi, r15 call qword ptr [rax+0C0h] cmp eax, 2 jge short loc_35EEC movzx eax, byte ptr [r15] mov al, [r12+rax] mov [r15], al mov ecx, 1 jmp short loc_35EEE loc_35EEC: mov ecx, eax loc_35EEE: lea rax, [r15+rcx] cmp byte ptr [r15+rcx], 0 mov r15, rax jnz short loc_35EB8 loc_35EFC: sub rax, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long my_caseup_str_mb(long long a1, _BYTE *a2) { _BYTE *v2; // rax long long v3; // r12 _BYTE *v4; // r15 int v5; // eax long long v6; // rcx bool v7; // zf v2 = a2; if ( *a2 ) { v3 = *(_QWORD *)(a1 + 80); v4 = a2; do { v5 = (*(long long ( **)(long long, _BYTE *, _BYTE *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v4, &v4[*(unsigned int *)(a1 + 156)]); if ( v5 >= 2 ) { v6 = (unsigned int)v5; } else { *v4 = *(_BYTE *)(v3 + (unsigned __int8)*v4); v6 = 1LL; } v2 = &v4[v6]; v7 = v4[v6] == 0; v4 += v6; } while ( !v7 ); } return v2 - a2; }
my_caseup_str_mb: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RSI CMP byte ptr [RSI],0x0 MOV RAX,RSI JZ 0x00135efc MOV R14,RDI MOV R12,qword ptr [RDI + 0x50] MOV R15,RBX LAB_00135eb8: MOV EDX,dword ptr [R14 + 0x9c] ADD RDX,R15 MOV RAX,qword ptr [R14 + 0xb8] MOV RDI,R14 MOV RSI,R15 CALL qword ptr [RAX + 0xc0] CMP EAX,0x2 JGE 0x00135eec MOVZX EAX,byte ptr [R15] MOV AL,byte ptr [R12 + RAX*0x1] MOV byte ptr [R15],AL MOV ECX,0x1 JMP 0x00135eee LAB_00135eec: MOV ECX,EAX LAB_00135eee: LEA RAX,[R15 + RCX*0x1] CMP byte ptr [R15 + RCX*0x1],0x0 MOV R15,RAX JNZ 0x00135eb8 LAB_00135efc: SUB RAX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
long my_caseup_str_mb(long param_1,byte *param_2) { byte *pbVar1; long lVar2; uint uVar3; byte *pbVar4; ulong uVar5; byte *pbVar6; pbVar4 = param_2; if (*param_2 != 0) { lVar2 = *(long *)(param_1 + 0x50); pbVar6 = param_2; do { uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0)) (param_1,pbVar6,pbVar6 + *(uint *)(param_1 + 0x9c)); if ((int)uVar3 < 2) { *pbVar6 = *(byte *)(lVar2 + (ulong)*pbVar6); uVar5 = 1; } else { uVar5 = (ulong)uVar3; } pbVar4 = pbVar6 + uVar5; pbVar1 = pbVar6 + uVar5; pbVar6 = pbVar4; } while (*pbVar1 != 0); } return (long)pbVar4 - (long)param_2; }
3,155
my_uca_generate_implicit_page
eloqsql/strings/ctype-uca.c
static my_bool my_uca_generate_implicit_page(MY_CHARSET_LOADER *loader, MY_UCA_WEIGHT_LEVEL *dst, uint page) { uint chc, size= 256 * dst->lengths[page] * sizeof(uint16); if (!(dst->weights[page]= (uint16 *) (loader->once_alloc)(size))) return TRUE; memset(dst->weights[page], 0, size); for (chc= 0 ; chc < 256; chc++) { uint16 *w= dst->weights[page] + chc * dst->lengths[page]; my_uca_implicit_weight_put(w, (page << 8) + chc, dst->levelno); } return FALSE; }
O0
c
my_uca_generate_implicit_page: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movl -0x1c(%rbp), %ecx movzbl (%rax,%rcx), %eax shll $0x8, %eax cltq shlq %rax movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rax movq 0x80(%rax), %rax movl -0x24(%rbp), %ecx movl %ecx, %edi callq *%rax movq -0x18(%rbp), %rcx movq 0x10(%rcx), %rcx movl -0x1c(%rbp), %edx movq %rax, (%rcx,%rdx,8) cmpq $0x0, %rax jne 0xaf49d movb $0x1, -0x1(%rbp) jmp 0xaf524 movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl -0x1c(%rbp), %ecx movq (%rax,%rcx,8), %rdi movl -0x24(%rbp), %eax movl %eax, %edx xorl %esi, %esi callq 0x281c0 movl $0x0, -0x20(%rbp) cmpl $0x100, -0x20(%rbp) # imm = 0x100 jae 0xaf520 movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl -0x1c(%rbp), %ecx movq (%rax,%rcx,8), %rax movl -0x20(%rbp), %ecx movq -0x18(%rbp), %rdx movq 0x8(%rdx), %rdx movl -0x1c(%rbp), %esi movzbl (%rdx,%rsi), %edx imull %edx, %ecx movl %ecx, %ecx shlq %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rdi movl -0x1c(%rbp), %eax shll $0x8, %eax addl -0x20(%rbp), %eax movl %eax, %eax movl %eax, %esi movq -0x18(%rbp), %rax movl 0x30(%rax), %edx callq 0xaf530 movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) jmp 0xaf4bf movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_uca_generate_implicit_page: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov rax, [rbp+var_18] mov rax, [rax+8] mov ecx, [rbp+var_1C] movzx eax, byte ptr [rax+rcx] shl eax, 8 cdqe shl rax, 1 mov [rbp+var_24], eax mov rax, [rbp+var_10] mov rax, [rax+80h] mov ecx, [rbp+var_24] mov edi, ecx call rax mov rcx, [rbp+var_18] mov rcx, [rcx+10h] mov edx, [rbp+var_1C] mov [rcx+rdx*8], rax cmp rax, 0 jnz short loc_AF49D mov [rbp+var_1], 1 jmp loc_AF524 loc_AF49D: mov rax, [rbp+var_18] mov rax, [rax+10h] mov ecx, [rbp+var_1C] mov rdi, [rax+rcx*8] mov eax, [rbp+var_24] mov edx, eax xor esi, esi call _memset mov [rbp+var_20], 0 loc_AF4BF: cmp [rbp+var_20], 100h jnb short loc_AF520 mov rax, [rbp+var_18] mov rax, [rax+10h] mov ecx, [rbp+var_1C] mov rax, [rax+rcx*8] mov ecx, [rbp+var_20] mov rdx, [rbp+var_18] mov rdx, [rdx+8] mov esi, [rbp+var_1C] movzx edx, byte ptr [rdx+rsi] imul ecx, edx mov ecx, ecx shl rcx, 1 add rax, rcx mov [rbp+var_30], rax mov rdi, [rbp+var_30] mov eax, [rbp+var_1C] shl eax, 8 add eax, [rbp+var_20] mov eax, eax mov esi, eax mov rax, [rbp+var_18] mov edx, [rax+30h] call my_uca_implicit_weight_put mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax jmp short loc_AF4BF loc_AF520: mov [rbp+var_1], 0 loc_AF524: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char my_uca_generate_implicit_page(long long a1, long long a2, unsigned int a3) { long long v3; // rax unsigned int v5; // [rsp+Ch] [rbp-24h] unsigned int i; // [rsp+10h] [rbp-20h] v5 = *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a3) << 9; v3 = (*(long long ( **)(_QWORD))(a1 + 128))(v5); *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3) = v3; if ( !v3 ) return 1; memset(*(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3), 0LL, v5); for ( i = 0; i < 0x100; ++i ) my_uca_implicit_weight_put( 2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a3) * i + *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3), i + (a3 << 8), *(unsigned int *)(a2 + 48)); return 0; }
my_uca_generate_implicit_page: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV ECX,dword ptr [RBP + -0x1c] MOVZX EAX,byte ptr [RAX + RCX*0x1] SHL EAX,0x8 CDQE SHL RAX,0x1 MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x80] MOV ECX,dword ptr [RBP + -0x24] MOV EDI,ECX CALL RAX MOV RCX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RCX + 0x10] MOV EDX,dword ptr [RBP + -0x1c] MOV qword ptr [RCX + RDX*0x8],RAX CMP RAX,0x0 JNZ 0x001af49d MOV byte ptr [RBP + -0x1],0x1 JMP 0x001af524 LAB_001af49d: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RBP + -0x1c] MOV RDI,qword ptr [RAX + RCX*0x8] MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX XOR ESI,ESI CALL 0x001281c0 MOV dword ptr [RBP + -0x20],0x0 LAB_001af4bf: CMP dword ptr [RBP + -0x20],0x100 JNC 0x001af520 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RAX + RCX*0x8] MOV ECX,dword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RDX + 0x8] MOV ESI,dword ptr [RBP + -0x1c] MOVZX EDX,byte ptr [RDX + RSI*0x1] IMUL ECX,EDX MOV ECX,ECX SHL RCX,0x1 ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x1c] SHL EAX,0x8 ADD EAX,dword ptr [RBP + -0x20] MOV EAX,EAX MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RAX + 0x30] CALL 0x001af530 MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX JMP 0x001af4bf LAB_001af520: MOV byte ptr [RBP + -0x1],0x0 LAB_001af524: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 my_uca_generate_implicit_page(long param_1,long param_2,uint param_3) { size_t __n; long lVar1; int4 local_28; int1 local_9; __n = (long)(int)((uint)*(byte *)(*(long *)(param_2 + 8) + (ulong)param_3) << 8) << 1; lVar1 = (**(code **)(param_1 + 0x80))(__n); *(long *)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8) = lVar1; if (lVar1 == 0) { local_9 = 1; } else { memset(*(void **)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8),0,__n); for (local_28 = 0; local_28 < 0x100; local_28 = local_28 + 1) { my_uca_implicit_weight_put (*(long *)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8) + (ulong)(local_28 * *(byte *)(*(long *)(param_2 + 8) + (ulong)param_3)) * 2, param_3 * 0x100 + local_28,*(int4 *)(param_2 + 0x30)); } local_9 = 0; } return local_9; }
3,156
SchemaConverter::_add_primitive(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, BuiltinRule const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string _add_primitive(const std::string & name, const BuiltinRule & rule) { auto n = _add_rule(name, rule.content); for (const auto & dep : rule.deps) { BuiltinRule dep_rule; auto it = PRIMITIVE_RULES.find(dep); if (it == PRIMITIVE_RULES.end()) { it = STRING_FORMAT_RULES.find(dep); if (it == STRING_FORMAT_RULES.end()) { _errors.push_back("Rule " + dep + " not known"); continue; } } if (_rules.find(dep) == _rules.end()) { _add_primitive(dep, it->second); } } return n; }
O2
cpp
SchemaConverter::_add_primitive(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, BuiltinRule const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %rcx, %r14 movq %rsi, %rbx movq %rdi, (%rsp) callq 0x8f56c movq 0x20(%r14), %r15 movq 0x28(%r14), %rax movq %rax, 0x28(%rsp) leaq 0x40(%rsp), %rbp leaq 0x28(%rbx), %rax movq %rax, 0x20(%rsp) leaq 0x30(%rbx), %rax movq %rax, 0x18(%rsp) movq %rbx, 0x10(%rsp) leaq 0xc8(%rbx), %rax movq %rax, 0x8(%rsp) leaq 0x88(%rsp), %r13 leaq 0xa8(%rsp), %r12 cmpq 0x28(%rsp), %r15 je 0x929f6 movq %rbp, 0x30(%rsp) andq $0x0, 0x38(%rsp) movb $0x0, 0x40(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbp) andq $0x0, 0x20(%rbp) leaq 0x6d93f(%rip), %rdi # 0x100280 movq %r15, %rsi callq 0x96baa movq %rax, %rbx testq %rax, %rax jne 0x92968 leaq 0x6d960(%rip), %rdi # 0x1002b8 movq %r15, %rsi callq 0x96baa movq %rax, %rbx testq %rax, %rax je 0x9299c movq 0x20(%rsp), %rdi movq %r15, %rsi callq 0x8f852 cmpq 0x18(%rsp), %rax jne 0x929e3 addq $0x28, %rbx leaq 0x68(%rsp), %rdi movq 0x10(%rsp), %rsi movq %r15, %rdx movq %rbx, %rcx callq 0x928ae leaq 0x68(%rsp), %rdi jmp 0x929de movq %r13, %rbx movq %r13, %rdi leaq 0x27289(%rip), %rsi # 0xb9c32 movq %r15, %rdx callq 0x3aa98 movq %r12, %r14 movq %r12, %rdi movq %rbx, %rsi leaq 0x27277(%rip), %rdx # 0xb9c38 callq 0x3983c movq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x3c070 movq %r14, %rdi callq 0x241c8 movq %rbx, %rdi callq 0x241c8 leaq 0x30(%rsp), %rdi callq 0x8dab6 addq $0x20, %r15 jmp 0x92913 movq (%rsp), %rax addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0xa8(%rsp), %rdi callq 0x241c8 jmp 0x92a21 movq %rax, %rbx leaq 0x88(%rsp), %rdi callq 0x241c8 jmp 0x92a39 jmp 0x92a36 jmp 0x92a36 jmp 0x92a36 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x8dab6 movq (%rsp), %rdi callq 0x241c8 movq %rbx, %rdi callq 0x23f80
_ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov r14, rcx mov rbx, rsi mov [rsp+0F8h+var_F8], rdi call _ZN15SchemaConverter9_add_ruleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_; SchemaConverter::_add_rule(std::string const&,std::string const&) mov r15, [r14+20h] mov rax, [r14+28h] mov [rsp+0F8h+var_D0], rax lea rbp, [rsp+0F8h+var_B8] lea rax, [rbx+28h] mov [rsp+0F8h+var_D8], rax lea rax, [rbx+30h] mov [rsp+0F8h+var_E0], rax mov [rsp+0F8h+var_E8], rbx lea rax, [rbx+0C8h] mov [rsp+0F8h+var_F0], rax lea r13, [rsp+0F8h+var_70] lea r12, [rsp+0F8h+var_50] loc_92913: cmp r15, [rsp+0F8h+var_D0] jz loc_929F6 mov [rsp+0F8h+var_C8], rbp and [rsp+0F8h+var_C0], 0 mov [rsp+0F8h+var_B8], 0 xorps xmm0, xmm0 movups xmmword ptr [rbp+10h], xmm0 and qword ptr [rbp+20h], 0 lea rdi, _Z15PRIMITIVE_RULESB5cxx11; PRIMITIVE_RULES mov rsi, r15 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_11BuiltinRuleESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) mov rbx, rax test rax, rax jnz short loc_92968 lea rdi, _Z19STRING_FORMAT_RULESB5cxx11; STRING_FORMAT_RULES mov rsi, r15 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_11BuiltinRuleESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) mov rbx, rax test rax, rax jz short loc_9299C loc_92968: mov rdi, [rsp+0F8h+var_D8] mov rsi, r15 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE4findERS7_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find(std::string const&) cmp rax, [rsp+0F8h+var_E0] jnz short loc_929E3 add rbx, 28h ; '(' lea rdi, [rsp+0F8h+var_90] mov rsi, [rsp+0F8h+var_E8] mov rdx, r15 mov rcx, rbx call _ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule; SchemaConverter::_add_primitive(std::string const&,BuiltinRule const&) lea rdi, [rsp+0F8h+var_90] jmp short loc_929DE loc_9299C: mov rbx, r13 mov rdi, r13 lea rsi, aRule; "Rule " mov rdx, r15 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) mov r14, r12 mov rdi, r12 mov rsi, rbx lea rdx, aNotKnown; " not known" call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) mov rdi, [rsp+0F8h+var_F0] mov rsi, r14 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, r14; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx; void * loc_929DE: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_929E3: lea rdi, [rsp+0F8h+var_C8]; this call _ZN11BuiltinRuleD2Ev; BuiltinRule::~BuiltinRule() add r15, 20h ; ' ' jmp loc_92913 loc_929F6: mov rax, [rsp+0F8h+var_F8] add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_92A21 mov rbx, rax loc_92A21: lea rdi, [rsp+arg_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_92A39 jmp short loc_92A36 jmp short loc_92A36 jmp short $+2 loc_92A36: mov rbx, rax loc_92A39: lea rdi, [rsp+arg_28]; this call _ZN11BuiltinRuleD2Ev; BuiltinRule::~BuiltinRule() mov rdi, [rsp+0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
long long SchemaConverter::_add_primitive(long long a1, long long a2, _QWORD *a3, _QWORD *a4) { long long v5; // r15 long long v6; // rax int v7; // ebx long long v8; // rax int v9; // r8d int v10; // r9d _DWORD *v11; // rdi long long v13; // [rsp+0h] [rbp-F8h] long long v14; // [rsp+8h] [rbp-F0h] int v15; // [rsp+10h] [rbp-E8h] long long v16; // [rsp+18h] [rbp-E0h] long long v17; // [rsp+20h] [rbp-D8h] long long v18; // [rsp+28h] [rbp-D0h] _DWORD *v19; // [rsp+30h] [rbp-C8h] BYREF long long v20; // [rsp+38h] [rbp-C0h] _DWORD v21[4]; // [rsp+40h] [rbp-B8h] BYREF __int128 v22; // [rsp+50h] [rbp-A8h] long long v23; // [rsp+60h] [rbp-98h] _DWORD v24[6]; // [rsp+68h] [rbp-90h] BYREF char v25; // [rsp+80h] [rbp-78h] _DWORD v26[6]; // [rsp+88h] [rbp-70h] BYREF char v27; // [rsp+A0h] [rbp-58h] _BYTE v28[80]; // [rsp+A8h] [rbp-50h] BYREF v13 = a1; SchemaConverter::_add_rule(a1, a2, a3, a4); v5 = a4[4]; v18 = a4[5]; v17 = a2 + 40; v16 = a2 + 48; v15 = a2; v14 = a2 + 200; while ( v5 != v18 ) { v19 = v21; v20 = 0LL; LOBYTE(v21[0]) = 0; v22 = 0LL; v23 = 0LL; v6 = std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find( &PRIMITIVE_RULES[abi:cxx11], v5); v7 = v6; if ( v6 || (v8 = std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find( &STRING_FORMAT_RULES[abi:cxx11], v5), v7 = v8, v8) ) { if ( std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find( v17, v5) != v16 ) goto LABEL_9; SchemaConverter::_add_primitive( (unsigned int)v24, v15, v5, v7 + 40, v9, v10, v13, v14, v15, v16, v17, v18, (_DWORD)v19, v20, v21[0], v21[2], v22, DWORD2(v22), v23, v24[0], v24[2], v24[4], v25, v26[0], v26[2], v26[4], v27); v11 = v24; } else { std::operator+<char>((long long)v26, (long long)"Rule ", v5); std::operator+<char>((long long)v28, (long long)v26, (long long)" not known"); std::vector<std::string>::emplace_back<std::string>(v14, (long long)v28); std::string::~string(v28); v11 = v26; } std::string::~string(v11); LABEL_9: BuiltinRule::~BuiltinRule((BuiltinRule *)&v19); v5 += 32LL; } return v13; }
_add_primitive: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV R14,RCX MOV RBX,RSI MOV qword ptr [RSP],RDI CALL 0x0018f56c MOV R15,qword ptr [R14 + 0x20] MOV RAX,qword ptr [R14 + 0x28] MOV qword ptr [RSP + 0x28],RAX LEA RBP,[RSP + 0x40] LEA RAX,[RBX + 0x28] MOV qword ptr [RSP + 0x20],RAX LEA RAX,[RBX + 0x30] MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x10],RBX LEA RAX,[RBX + 0xc8] MOV qword ptr [RSP + 0x8],RAX LEA R13,[RSP + 0x88] LEA R12,[RSP + 0xa8] LAB_00192913: CMP R15,qword ptr [RSP + 0x28] JZ 0x001929f6 MOV qword ptr [RSP + 0x30],RBP AND qword ptr [RSP + 0x38],0x0 MOV byte ptr [RSP + 0x40],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBP + 0x10],XMM0 AND qword ptr [RBP + 0x20],0x0 LAB_0019293a: LEA RDI,[0x200280] MOV RSI,R15 CALL 0x00196baa MOV RBX,RAX TEST RAX,RAX JNZ 0x00192968 LAB_00192951: LEA RDI,[0x2002b8] MOV RSI,R15 CALL 0x00196baa MOV RBX,RAX TEST RAX,RAX JZ 0x0019299c LAB_00192968: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,R15 CALL 0x0018f852 CMP RAX,qword ptr [RSP + 0x18] JNZ 0x001929e3 ADD RBX,0x28 LAB_00192980: LEA RDI,[RSP + 0x68] MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R15 MOV RCX,RBX CALL 0x001928ae LEA RDI,[RSP + 0x68] JMP 0x001929de LAB_0019299c: MOV RBX,R13 MOV RDI,R13 LEA RSI,[0x1b9c32] MOV RDX,R15 CALL 0x0013aa98 LAB_001929b1: MOV R14,R12 MOV RDI,R12 MOV RSI,RBX LEA RDX,[0x1b9c38] CALL 0x0013983c LAB_001929c6: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,R14 CALL 0x0013c070 LAB_001929d3: MOV RDI,R14 CALL 0x001241c8 MOV RDI,RBX LAB_001929de: CALL 0x001241c8 LAB_001929e3: LEA RDI,[RSP + 0x30] CALL 0x0018dab6 ADD R15,0x20 JMP 0x00192913 LAB_001929f6: MOV RAX,qword ptr [RSP] ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* SchemaConverter::_add_primitive(std::__cxx11::string const&, BuiltinRule const&) */ string * SchemaConverter::_add_primitive(string *param_1,BuiltinRule *param_2) { string *psVar1; long lVar2; BuiltinRule *pBVar3; long in_RCX; string *this; string *psVar4; int1 *local_c8; int8 local_c0; int1 local_b8 [16]; int8 local_a8; int8 uStack_a0; int8 local_98; string local_90 [32]; string local_70 [32]; string local_50 [32]; _add_rule(param_1,(string *)param_2); psVar4 = *(string **)(in_RCX + 0x20); psVar1 = *(string **)(in_RCX + 0x28); do { if (psVar4 == psVar1) { return param_1; } local_c0 = 0; local_b8[0] = 0; local_a8 = 0; uStack_a0 = 0; local_98 = 0; local_c8 = local_b8; /* try { // try from 0019293a to 00192948 has its CatchHandler @ 00192a36 */ lVar2 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)PRIMITIVE_RULES_abi_cxx11_,psVar4); if (lVar2 == 0) { /* try { // try from 00192951 to 0019295f has its CatchHandler @ 00192a32 */ lVar2 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)STRING_FORMAT_RULES_abi_cxx11_,psVar4); if (lVar2 != 0) goto LAB_00192968; /* try { // try from 0019299c to 001929b0 has its CatchHandler @ 00192a30 */ std::operator+((char *)local_70,(string *)"Rule "); /* try { // try from 001929b1 to 001929c5 has its CatchHandler @ 00192a1e */ std::operator+(local_50,(char *)local_70); /* try { // try from 001929c6 to 001929d2 has its CatchHandler @ 00192a0c */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) (param_2 + 200),local_50); std::__cxx11::string::~string(local_50); this = local_70; LAB_001929de: std::__cxx11::string::~string(this); } else { LAB_00192968: /* try { // try from 00192968 to 00192974 has its CatchHandler @ 00192a34 */ pBVar3 = (BuiltinRule *) std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::find((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> *)(param_2 + 0x28),psVar4); if (pBVar3 == param_2 + 0x30) { /* try { // try from 00192980 to 00192994 has its CatchHandler @ 00192a36 */ _add_primitive(local_90,param_2); this = local_90; goto LAB_001929de; } } BuiltinRule::~BuiltinRule((BuiltinRule *)&local_c8); psVar4 = psVar4 + 0x20; } while( true ); }
3,157
parse_device_list(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
llama.cpp/common/arg.cpp
static std::vector<ggml_backend_dev_t> parse_device_list(const std::string & value) { std::vector<ggml_backend_dev_t> devices; auto dev_names = string_split<std::string>(value, ','); if (dev_names.empty()) { throw std::invalid_argument("no devices specified"); } if (dev_names.size() == 1 && dev_names[0] == "none") { devices.push_back(nullptr); } else { for (const auto & device : dev_names) { auto * dev = ggml_backend_dev_by_name(device.c_str()); if (!dev || ggml_backend_dev_type(dev) != GGML_BACKEND_DEVICE_TYPE_GPU) { throw std::invalid_argument(string_format("invalid device: %s", device.c_str())); } devices.push_back(dev); } devices.push_back(nullptr); } return devices; }
O3
cpp
parse_device_list(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) leaq 0x8(%rsp), %r15 movq %r15, %rdi movl $0x2c, %edx callq 0x5ea3a movq (%r15), %r14 movq 0x8(%r15), %r12 cmpq %r12, %r14 je 0x632d7 movq %r12, %rax subq %r14, %rax cmpq $0x20, %rax jne 0x631f7 leaq 0xb39a6(%rip), %rsi # 0x116b83 movq %r14, %rdi callq 0x220f0 testl %eax, %eax je 0x63274 movq 0x8(%rsp), %r14 movq 0x10(%rsp), %r12 cmpq %r12, %r14 je 0x63249 movq %rsp, %r15 movq (%r14), %rdi callq 0x213a0 movq %rax, (%rsp) testq %rax, %rax je 0x6328a movq %rax, %rdi callq 0x21a80 cmpl $0x1, %eax jne 0x6328a movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0x63235 movq (%rsp), %rax movq %rax, (%rsi) addq $0x8, 0x8(%rbx) jmp 0x63240 movq %rbx, %rdi movq %r15, %rdx callq 0x8ff26 addq $0x20, %r14 cmpq %r12, %r14 jne 0x631ff leaq 0x20(%rsp), %rsi movq $0x0, (%rsi) movq %rbx, %rdi callq 0x8fdce leaq 0x8(%rsp), %rdi callq 0x28914 addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq 0x20(%rsp), %rsi movq $0x0, (%rsi) movq %rbx, %rdi callq 0x8fdce jmp 0x6325d movl $0x10, %edi callq 0x216d0 movq %rax, %r15 movq (%r14), %rdx leaq 0xba5a1(%rip), %rsi # 0x11d842 leaq 0x20(%rsp), %rdi xorl %eax, %eax callq 0xf8e23 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r15, %rdi callq 0x21aa0 xorl %ebp, %ebp movq 0x101c52(%rip), %rsi # 0x164f18 movq 0x101c3b(%rip), %rdx # 0x164f08 movq %r15, %rdi callq 0x21b60 jmp 0x63309 movl $0x10, %edi callq 0x216d0 movq %rax, %r15 leaq 0xba542(%rip), %rsi # 0x11d82d movq %rax, %rdi callq 0x212b0 movq 0x101c1e(%rip), %rsi # 0x164f18 movq 0x101c07(%rip), %rdx # 0x164f08 movq %r15, %rdi callq 0x21b60 jmp 0x63343 jmp 0x63343 jmp 0x63336 jmp 0x63343 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x6332f movq 0x30(%rsp), %rsi incq %rsi callq 0x21190 testb %bpl, %bpl jne 0x63339 jmp 0x63346 movq %rax, %r14 movq %r15, %rdi callq 0x22080 jmp 0x63346 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x28914 movq (%rbx), %rdi testq %rdi, %rdi je 0x63364 movq 0x10(%rbx), %rsi subq %rdi, %rsi callq 0x21190 movq %r14, %rdi callq 0x21c20
_ZL17parse_device_listRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r12 push rbx sub rsp, 40h mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 lea r15, [rsp+68h+var_60] mov rdi, r15; int mov edx, 2Ch ; ','; int call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char) mov r14, [r15] mov r12, [r15+8] cmp r14, r12 jz loc_632D7 mov rax, r12 sub rax, r14 cmp rax, 20h ; ' ' jnz short loc_631F7 lea rsi, aNone; "none" mov rdi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_63274 mov r14, qword ptr [rsp+68h+var_60] mov r12, [rsp+68h+var_58] loc_631F7: cmp r14, r12 jz short loc_63249 mov r15, rsp loc_631FF: mov rdi, [r14] call _ggml_backend_dev_by_name mov [rsp+68h+var_68], rax test rax, rax jz short loc_6328A mov rdi, rax call _ggml_backend_dev_type cmp eax, 1 jnz short loc_6328A mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_63235 mov rax, [rsp+68h+var_68] mov [rsi], rax add qword ptr [rbx+8], 8 jmp short loc_63240 loc_63235: mov rdi, rbx mov rdx, r15 call _ZNSt6vectorIP19ggml_backend_deviceSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<ggml_backend_device *>::_M_realloc_insert<ggml_backend_device * const&>(__gnu_cxx::__normal_iterator<ggml_backend_device **,std::vector<ggml_backend_device *>>,ggml_backend_device * const&) loc_63240: add r14, 20h ; ' ' cmp r14, r12 jnz short loc_631FF loc_63249: lea rsi, [rsp+68h+var_48] mov qword ptr [rsi], 0 mov rdi, rbx call _ZNSt6vectorIP19ggml_backend_deviceSaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<ggml_backend_device *>::emplace_back<ggml_backend_device *>(ggml_backend_device * &&) loc_6325D: lea rdi, [rsp+68h+var_60] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_63274: lea rsi, [rsp+68h+var_48] mov qword ptr [rsi], 0 mov rdi, rbx call _ZNSt6vectorIP19ggml_backend_deviceSaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<ggml_backend_device *>::emplace_back<ggml_backend_device *>(ggml_backend_device * &&) jmp short loc_6325D loc_6328A: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax mov rdx, [r14] lea rsi, aInvalidDeviceS; "invalid device: %s" lea rdi, [rsp+68h+var_48] xor eax, eax call _Z13string_formatB5cxx11PKcz; string_format(char const*,...) mov bpl, 1 lea rsi, [rsp+68h+var_48] mov rdi, r15 call __ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::invalid_argument::invalid_argument(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt16invalid_argument_ptr; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp short loc_63309 loc_632D7: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aNoDevicesSpeci; "no devices specified" mov rdi, rax; this call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*) mov rsi, cs:_ZTISt16invalid_argument_ptr; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw loc_63309: jmp short loc_63343 jmp short loc_63343 jmp short loc_63336 jmp short loc_63343 mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_6332F mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6332F: test bpl, bpl jnz short loc_63339 jmp short loc_63346 loc_63336: mov r14, rax loc_63339: mov rdi, r15; void * call ___cxa_free_exception jmp short loc_63346 loc_63343: mov r14, rax loc_63346: lea rdi, [rsp+68h+var_60] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbx]; void * test rdi, rdi jz short loc_63364 mov rsi, [rbx+10h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_63364: mov rdi, r14 call __Unwind_Resume
void parse_device_list(long long a1, long long a2) { _QWORD *v2; // r14 _QWORD *v3; // r12 long long v4; // rax long long *v5; // rsi void *v6; // r15 int v7; // ecx int v8; // r8d int v9; // r9d std::invalid_argument *exception; // r15 long long v11; // [rsp+0h] [rbp-68h] BYREF int v12[2]; // [rsp+8h] [rbp-60h] BYREF _QWORD *v13; // [rsp+10h] [rbp-58h] _QWORD v14[2]; // [rsp+20h] [rbp-48h] BYREF *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 16) = 0LL; string_split<std::string>((long long)v12, a2, 0x2Cu); v2 = *(_QWORD **)v12; v3 = v13; if ( *(_QWORD **)v12 == v13 ) { exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(exception, "no devices specified"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } if ( (_QWORD *)((char *)v13 - *(_QWORD *)v12) == &qword_20 ) { if ( !(unsigned int)std::string::compare(*(_QWORD *)v12, "none") ) { v14[0] = 0LL; std::vector<ggml_backend_device *>::emplace_back<ggml_backend_device *>(a1, v14); goto LABEL_13; } v2 = *(_QWORD **)v12; v3 = v13; } for ( ; v2 != v3; v2 += 4 ) { v4 = ggml_backend_dev_by_name(*v2); v11 = v4; if ( !v4 || (unsigned int)ggml_backend_dev_type(v4) != 1 ) { v6 = __cxa_allocate_exception(0x10uLL); string_format[abi:cxx11]((unsigned int)v14, (unsigned int)"invalid device: %s", *v2, v7, v8, v9); std::invalid_argument::invalid_argument(v6, v14); __cxa_throw( v6, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } v5 = *(long long **)(a1 + 8); if ( v5 == *(long long **)(a1 + 16) ) { std::vector<ggml_backend_device *>::_M_realloc_insert<ggml_backend_device * const&>(a1, v5, &v11); } else { *v5 = v11; *(_QWORD *)(a1 + 8) += 8LL; } } v14[0] = 0LL; std::vector<ggml_backend_device *>::emplace_back<ggml_backend_device *>(a1, v14); LABEL_13: std::vector<std::string>::~vector((long long)v12); }
parse_device_list: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 LEA R15,[RSP + 0x8] MOV RDI,R15 MOV EDX,0x2c CALL 0x0015ea3a MOV R14,qword ptr [R15] MOV R12,qword ptr [R15 + 0x8] CMP R14,R12 JZ 0x001632d7 MOV RAX,R12 SUB RAX,R14 CMP RAX,0x20 JNZ 0x001631f7 LEA RSI,[0x216b83] MOV RDI,R14 CALL 0x001220f0 TEST EAX,EAX JZ 0x00163274 MOV R14,qword ptr [RSP + 0x8] MOV R12,qword ptr [RSP + 0x10] LAB_001631f7: CMP R14,R12 JZ 0x00163249 MOV R15,RSP LAB_001631ff: MOV RDI,qword ptr [R14] LAB_00163202: CALL 0x001213a0 MOV qword ptr [RSP],RAX TEST RAX,RAX JZ 0x0016328a MOV RDI,RAX CALL 0x00121a80 CMP EAX,0x1 JNZ 0x0016328a MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x00163235 MOV RAX,qword ptr [RSP] MOV qword ptr [RSI],RAX ADD qword ptr [RBX + 0x8],0x8 JMP 0x00163240 LAB_00163235: MOV RDI,RBX MOV RDX,R15 CALL 0x0018ff26 LAB_00163240: ADD R14,0x20 CMP R14,R12 JNZ 0x001631ff LAB_00163249: LEA RSI,[RSP + 0x20] MOV qword ptr [RSI],0x0 LAB_00163255: MOV RDI,RBX CALL 0x0018fdce LAB_0016325d: LEA RDI,[RSP + 0x8] CALL 0x00128914 ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00163274: LEA RSI,[RSP + 0x20] MOV qword ptr [RSI],0x0 LAB_00163280: MOV RDI,RBX CALL 0x0018fdce LAB_00163288: JMP 0x0016325d LAB_0016328a: MOV EDI,0x10 CALL 0x001216d0 MOV R15,RAX MOV RDX,qword ptr [R14] LAB_0016329a: LEA RSI,[0x21d842] LEA RDI,[RSP + 0x20] XOR EAX,EAX CALL 0x001f8e23 MOV BPL,0x1 LAB_001632b0: LEA RSI,[RSP + 0x20] MOV RDI,R15 CALL 0x00121aa0 XOR EBP,EBP MOV RSI,qword ptr [0x00264f18] MOV RDX,qword ptr [0x00264f08] MOV RDI,R15 CALL 0x00121b60 LAB_001632d7: MOV EDI,0x10 CALL 0x001216d0 MOV R15,RAX LAB_001632e4: LEA RSI,[0x21d82d] MOV RDI,RAX CALL 0x001212b0 LAB_001632f3: MOV RSI,qword ptr [0x00264f18] MOV RDX,qword ptr [0x00264f08] MOV RDI,R15 CALL 0x00121b60
/* parse_device_list(std::__cxx11::string const&) */ void parse_device_list(string *param_1) { long *plVar1; char *pcVar2; int iVar3; invalid_argument *piVar4; char in_SIL; char *pcVar5; long local_68; char *local_60; char *local_58; ggml_backend_device *local_48 [4]; *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; string_split<std::__cxx11::string>((string *)&local_60,in_SIL); if (local_60 == local_58) { piVar4 = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 001632e4 to 001632f2 has its CatchHandler @ 0016330d */ std::invalid_argument::invalid_argument(piVar4,"no devices specified"); /* try { // try from 001632f3 to 00163308 has its CatchHandler @ 0016330b */ /* WARNING: Subroutine does not return */ __cxa_throw(piVar4,PTR_typeinfo_00264f18,PTR__invalid_argument_00264f08); } pcVar2 = local_60; pcVar5 = local_58; if (((long)local_58 - (long)local_60 == 0x20) && (iVar3 = std::__cxx11::string::compare(local_60), pcVar2 = local_60, pcVar5 = local_58, iVar3 == 0)) { local_48[0] = (ggml_backend_device *)0x0; /* try { // try from 00163280 to 00163287 has its CatchHandler @ 00163309 */ std::vector<ggml_backend_device*,std::allocator<ggml_backend_device*>>:: emplace_back<ggml_backend_device*> ((vector<ggml_backend_device*,std::allocator<ggml_backend_device*>> *)param_1,local_48 ); } else { for (; pcVar2 != pcVar5; pcVar2 = pcVar2 + 0x20) { /* try { // try from 00163202 to 0016323f has its CatchHandler @ 00163343 */ local_68 = ggml_backend_dev_by_name(*(int8 *)pcVar2); if ((local_68 == 0) || (iVar3 = ggml_backend_dev_type(local_68), iVar3 != 1)) { piVar4 = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 0016329a to 001632ac has its CatchHandler @ 00163336 */ string_format_abi_cxx11_((char *)local_48,"invalid device: %s",*(int8 *)pcVar2); /* try { // try from 001632b0 to 001632d4 has its CatchHandler @ 00163311 */ std::invalid_argument::invalid_argument(piVar4,(string *)local_48); /* WARNING: Subroutine does not return */ __cxa_throw(piVar4,PTR_typeinfo_00264f18,PTR__invalid_argument_00264f08); } plVar1 = *(long **)(param_1 + 8); if (plVar1 == *(long **)(param_1 + 0x10)) { std::vector<ggml_backend_device*,std::allocator<ggml_backend_device*>>:: _M_realloc_insert<ggml_backend_device*const&> ((vector<ggml_backend_device*,std::allocator<ggml_backend_device*>> *)param_1, plVar1,&local_68); } else { *plVar1 = local_68; *(long *)(param_1 + 8) = *(long *)(param_1 + 8) + 8; } } local_48[0] = (ggml_backend_device *)0x0; /* try { // try from 00163255 to 0016325c has its CatchHandler @ 0016330f */ std::vector<ggml_backend_device*,std::allocator<ggml_backend_device*>>:: emplace_back<ggml_backend_device*> ((vector<ggml_backend_device*,std::allocator<ggml_backend_device*>> *)param_1,local_48 ); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_60); return; }
3,158
minja::Value::Value(char const*)
monkey531[P]llama/common/minja.hpp
Value(const char * v) : primitive_(std::string(v)) {}
O2
cpp
minja::Value::Value(char const*): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x30(%rdi) movups %xmm0, 0x20(%rdi) movups %xmm0, 0x10(%rdi) movups %xmm0, (%rdi) leaq 0x8(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x27fde leaq 0x40(%rbx), %rdi leaq 0x8(%rsp), %rsi callq 0x5de76 leaq 0x8(%rsp), %rdi callq 0x251d8 addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x251d8 jmp 0x74d23 movq %rax, %r14 leaq 0x38(%rbx), %rdi callq 0x50496 leaq 0x28(%rbx), %rdi callq 0x50496 leaq 0x18(%rbx), %rdi callq 0x50496 addq $0x8, %rbx movq %rbx, %rdi callq 0x64996 movq %r14, %rdi callq 0x24f80
_ZN5minja5ValueC2EPKc: push r14 push rbx sub rsp, 28h mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+30h], xmm0 movups xmmword ptr [rdi+20h], xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi], xmm0 lea rdi, [rsp+38h+var_30] lea rdx, [rsp+38h+var_31] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rbx+40h] lea rsi, [rsp+38h+var_30] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_ lea rdi, [rsp+38h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() add rsp, 28h pop rbx pop r14 retn mov r14, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_74D23 mov r14, rax loc_74D23: lea rdi, [rbx+38h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rbx+28h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rbx+18h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() add rbx, 8 mov rdi, rbx call _ZNSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__weak_count<(__gnu_cxx::_Lock_policy)2>::~__weak_count() mov rdi, r14 call __Unwind_Resume
void minja::Value::Value(minja::Value *this, const char *a2) { _QWORD v2[6]; // [rsp+8h] [rbp-30h] BYREF *((_OWORD *)this + 3) = 0LL; *((_OWORD *)this + 2) = 0LL; *((_OWORD *)this + 1) = 0LL; *(_OWORD *)this = 0LL; std::string::basic_string<std::allocator<char>>(v2, (long long)a2); ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_((char *)this + 64); std::string::~string(v2); }
Value: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI],XMM0 LAB_00174ce2: LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x7] CALL 0x00127fde LEA RDI,[RBX + 0x40] LAB_00174cf5: LEA RSI,[RSP + 0x8] CALL 0x0015de76 LAB_00174cff: LEA RDI,[RSP + 0x8] CALL 0x001251d8 ADD RSP,0x28 POP RBX POP R14 RET
/* minja::Value::Value(char const*) */ void __thiscall minja::Value::Value(Value *this,char *param_1) { allocator local_31; string local_30 [32]; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; /* try { // try from 00174ce2 to 00174cf0 has its CatchHandler @ 00174d20 */ std::__cxx11::string::string<std::allocator<char>>(local_30,param_1,&local_31); /* try { // try from 00174cf5 to 00174cfe has its CatchHandler @ 00174d11 */ _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_ (this + 0x40,local_30); std::__cxx11::string::~string(local_30); return; }
3,159
minja::Value::Value(char const*)
monkey531[P]llama/common/minja.hpp
Value(const char * v) : primitive_(std::string(v)) {}
O3
cpp
minja::Value::Value(char const*): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x30(%rdi) movups %xmm0, 0x20(%rdi) movups %xmm0, 0x10(%rdi) movups %xmm0, (%rdi) leaq 0x8(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x5318a leaq 0x40(%rbx), %rdi leaq 0x8(%rsp), %rsi callq 0x80212 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9c9cc movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8c0 addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9c9f7 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8c0 jmp 0x9c9f7 movq %rax, %r14 movq 0x38(%rbx), %rdi testq %rdi, %rdi je 0x9ca05 callq 0x6dfc6 movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0x9ca13 callq 0x6dfc6 movq 0x18(%rbx), %rdi testq %rdi, %rdi je 0x9ca21 callq 0x6dfc6 movq %rbx, %rdi callq 0x87ebe movq %r14, %rdi callq 0x1bf90 nop
_ZN5minja5ValueC2EPKc: push r14 push rbx sub rsp, 28h mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+30h], xmm0 movups xmmword ptr [rdi+20h], xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi], xmm0 lea rdi, [rsp+38h+var_30] lea rdx, [rsp+38h+var_31] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rbx+40h] lea rsi, [rsp+38h+var_30] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_ lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9C9CC mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9C9CC: add rsp, 28h pop rbx pop r14 retn mov r14, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9C9F7 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9C9F7 mov r14, rax loc_9C9F7: mov rdi, [rbx+38h] test rdi, rdi jz short loc_9CA05 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9CA05: mov rdi, [rbx+28h] test rdi, rdi jz short loc_9CA13 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9CA13: mov rdi, [rbx+18h] test rdi, rdi jz short loc_9CA21 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9CA21: mov rdi, rbx call _ZNSt23enable_shared_from_thisIN5minja5ValueEED2Ev; std::enable_shared_from_this<minja::Value>::~enable_shared_from_this() mov rdi, r14 call __Unwind_Resume
void minja::Value::Value(minja::Value *this, char *a2) { long long *v2; // [rsp+8h] [rbp-30h] BYREF long long v3; // [rsp+18h] [rbp-20h] BYREF *((_OWORD *)this + 3) = 0LL; *((_OWORD *)this + 2) = 0LL; *((_OWORD *)this + 1) = 0LL; *(_OWORD *)this = 0LL; std::string::basic_string<std::allocator<char>>(&v2, a2); ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_((char *)this + 64); if ( v2 != &v3 ) operator delete(v2, v3 + 1); }
Value: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI],XMM0 LAB_0019c994: LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x7] CALL 0x0015318a LEA RDI,[RBX + 0x40] LAB_0019c9a7: LEA RSI,[RSP + 0x8] CALL 0x00180212 LAB_0019c9b1: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0019c9cc MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011b8c0 LAB_0019c9cc: ADD RSP,0x28 POP RBX POP R14 RET
/* minja::Value::Value(char const*) */ void __thiscall minja::Value::Value(Value *this,char *param_1) { allocator local_31; long *local_30 [2]; long local_20 [2]; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; /* try { // try from 0019c994 to 0019c9a2 has its CatchHandler @ 0019c9f4 */ std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31); /* try { // try from 0019c9a7 to 0019c9b0 has its CatchHandler @ 0019c9d4 */ _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_ (this + 0x40,local_30); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return; }
3,160
my_xml_leave
eloqsql/strings/xml.c
static int my_xml_leave(MY_XML_PARSER *p, const char *str, size_t slen) { char *e, *tag; size_t glen; char s[32]; char g[32]; int rc; /* Find previous '/' or beginning */ for (e= p->attr.end; (e > p->attr.start) && (e[0] != '/') ; e--); glen= (size_t) ((e[0] == '/') ? (p->attr.end - e - 1) : p->attr.end - e); tag= e[0] == '/' ? e + 1 : e; if (str && (slen != glen || memcmp(str, tag, slen))) { mstr(s,str,sizeof(s)-1,slen); if (glen) { mstr(g, tag, sizeof(g)-1, glen); sprintf(p->errstr,"'</%s>' unexpected ('</%s>' wanted)",s,g); } else sprintf(p->errstr,"'</%s>' unexpected (END-OF-INPUT wanted)", s); return MY_XML_ERROR; } if (p->flags & MY_XML_FLAG_RELATIVE_NAMES) rc= p->leave_xml ? p->leave_xml(p, str, slen) : MY_XML_OK; else rc= (p->leave_xml ? p->leave_xml(p, p->attr.start, p->attr.end - p->attr.start) : MY_XML_OK); *e='\0'; p->attr.end= e; return rc; }
O3
c
my_xml_leave: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rdx, %r14 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq 0x118(%rdi), %r13 movq 0x120(%rdi), %rax movq %rax, %rdx movq %rax, %r12 subq %r13, %rdx movq %rdi, -0x78(%rbp) jbe 0x5f6b0 movq %rax, %r12 cmpb $0x2f, (%r12) je 0x5f6b7 decq %r12 cmpq %r13, %r12 ja 0x5f69e movq %r13, %r12 cmpb $0x2f, (%r12) jne 0x5f6c8 movq %r12, %rbx notq %rbx addq %rax, %rbx movl $0x1, %r15d jmp 0x5f6d1 subq %r12, %rax xorl %r15d, %r15d movq %rax, %rbx testq %rsi, %rsi je 0x5f790 addq %r12, %r15 cmpq %r14, %rbx jne 0x5f70e movq %rsi, %rdi movq %rsi, -0x88(%rbp) movq %r15, %rsi movq %rdx, -0x80(%rbp) movq %r14, %rdx callq 0x242e0 movq -0x80(%rbp), %rdx movq -0x88(%rbp), %rsi testl %eax, %eax je 0x5f790 cmpq $0x1f, %r14 movl $0x1f, %r12d cmovaeq %r12, %r14 leaq -0x50(%rbp), %rdi movl $0x20, %ecx movq %r14, %rdx callq 0x245e0 movb $0x0, -0x50(%rbp,%r14) testq %rbx, %rbx je 0x5f7bf cmpq $0x1f, %rbx cmovbq %rbx, %r12 leaq -0x70(%rbp), %r13 movl $0x20, %ecx movq %r13, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x245e0 movb $0x0, -0x70(%rbp,%r12) movq -0x78(%rbp), %rdi addq $0x8, %rdi leaq 0x74b0(%rip), %rcx # 0x66c20 movl $0x1, %r14d leaq -0x50(%rbp), %r8 movl $0x80, %edx movl $0x1, %esi movq %r13, %r9 xorl %eax, %eax callq 0x241d0 jmp 0x5f7fa movq -0x78(%rbp), %rbx testb $0x1, (%rbx) movq 0x158(%rbx), %rax jne 0x5f7ad testq %rax, %rax je 0x5f7eb movq %rbx, %rdi movq %r13, %rsi jmp 0x5f7b8 testq %rax, %rax je 0x5f7eb movq %rbx, %rdi movq %r14, %rdx callq *%rax movl %eax, %r14d jmp 0x5f7ee movq -0x78(%rbp), %rdi addq $0x8, %rdi leaq 0x7476(%rip), %rcx # 0x66c44 movl $0x1, %r14d leaq -0x50(%rbp), %r8 movl $0x80, %edx movl $0x1, %esi xorl %eax, %eax callq 0x241d0 jmp 0x5f7fa xorl %r14d, %r14d movb $0x0, (%r12) movq %r12, 0x120(%rbx) movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x5f81b movl %r14d, %eax addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x24360
my_xml_leave: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r14, rdx mov rax, fs:28h mov [rbp+var_30], rax mov r13, [rdi+118h] mov rax, [rdi+120h] mov rdx, rax mov r12, rax sub rdx, r13 mov [rbp+var_78], rdi jbe short loc_5F6B0 mov r12, rax loc_5F69E: cmp byte ptr [r12], 2Fh ; '/' jz short loc_5F6B7 dec r12 cmp r12, r13 ja short loc_5F69E mov r12, r13 loc_5F6B0: cmp byte ptr [r12], 2Fh ; '/' jnz short loc_5F6C8 loc_5F6B7: mov rbx, r12 not rbx add rbx, rax mov r15d, 1 jmp short loc_5F6D1 loc_5F6C8: sub rax, r12 xor r15d, r15d mov rbx, rax loc_5F6D1: test rsi, rsi jz loc_5F790 add r15, r12 cmp rbx, r14 jnz short loc_5F70E mov rdi, rsi mov [rbp+var_88], rsi mov rsi, r15 mov [rbp+var_80], rdx mov rdx, r14 call _bcmp mov rdx, [rbp+var_80] mov rsi, [rbp+var_88] test eax, eax jz loc_5F790 loc_5F70E: cmp r14, 1Fh mov r12d, 1Fh cmovnb r14, r12 lea rdi, [rbp+var_50] mov ecx, 20h ; ' ' mov rdx, r14 call ___memcpy_chk mov [rbp+r14+var_50], 0 test rbx, rbx jz loc_5F7BF cmp rbx, 1Fh cmovb r12, rbx lea r13, [rbp+var_70] mov ecx, 20h ; ' ' mov rdi, r13 mov rsi, r15 mov rdx, r12 call ___memcpy_chk mov [rbp+r12+var_70], 0 mov rdi, [rbp+var_78] add rdi, 8 lea rcx, aSUnexpectedSWa; "'</%s>' unexpected ('</%s>' wanted)" mov r14d, 1 lea r8, [rbp+var_50] mov edx, 80h mov esi, 1 mov r9, r13 xor eax, eax call ___sprintf_chk jmp short loc_5F7FA loc_5F790: mov rbx, [rbp+var_78] test byte ptr [rbx], 1 mov rax, [rbx+158h] jnz short loc_5F7AD test rax, rax jz short loc_5F7EB mov rdi, rbx mov rsi, r13 jmp short loc_5F7B8 loc_5F7AD: test rax, rax jz short loc_5F7EB mov rdi, rbx mov rdx, r14 loc_5F7B8: call rax mov r14d, eax jmp short loc_5F7EE loc_5F7BF: mov rdi, [rbp+var_78] add rdi, 8 lea rcx, aSUnexpectedEnd; "'</%s>' unexpected (END-OF-INPUT wanted"... mov r14d, 1 lea r8, [rbp+var_50] mov edx, 80h mov esi, 1 xor eax, eax call ___sprintf_chk jmp short loc_5F7FA loc_5F7EB: xor r14d, r14d loc_5F7EE: mov byte ptr [r12], 0 mov [rbx+120h], r12 loc_5F7FA: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_5F81B mov eax, r14d add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5F81B: call ___stack_chk_fail
long long my_xml_leave(long long a1, unsigned long long a2, unsigned long long a3) { unsigned long long v4; // r13 _BYTE *v5; // rax unsigned long long v6; // r12 unsigned long long v7; // rdx unsigned long long v8; // rbx long long v9; // r15 _BYTE *v10; // r15 int v11; // eax long long v12; // r12 unsigned int v13; // r14d long long ( *v14)(long long, unsigned long long, unsigned long long); // rax _BYTE *v16; // [rsp+10h] [rbp-80h] char v17[32]; // [rsp+20h] [rbp-70h] BYREF char v18[32]; // [rsp+40h] [rbp-50h] BYREF unsigned long long v19; // [rsp+60h] [rbp-30h] v19 = __readfsqword(0x28u); v4 = *(_QWORD *)(a1 + 280); v5 = *(_BYTE **)(a1 + 288); v6 = (unsigned long long)v5; v7 = (unsigned long long)&v5[-v4]; if ( (unsigned long long)v5 <= v4 ) { LABEL_6: if ( *(_BYTE *)v6 != 47 ) { v9 = 0LL; v8 = (unsigned long long)&v5[-v6]; goto LABEL_9; } } else { v6 = *(_QWORD *)(a1 + 288); while ( *(_BYTE *)v6 != 47 ) { if ( --v6 <= v4 ) { v6 = *(_QWORD *)(a1 + 280); goto LABEL_6; } } } v8 = (unsigned long long)&v5[~v6]; v9 = 1LL; LABEL_9: if ( !a2 || (v10 = (_BYTE *)(v6 + v9), v8 == a3) && (v16 = &v5[-v4], v11 = bcmp(a2, v10, a3), v7 = (unsigned long long)v16, !v11) ) { v14 = *(long long ( **)(long long, unsigned long long, unsigned long long))(a1 + 344); if ( (*(_BYTE *)a1 & 1) != 0 ) { if ( v14 ) { v7 = a3; goto LABEL_23; } } else if ( v14 ) { a2 = v4; LABEL_23: v13 = v14(a1, a2, v7); LABEL_26: *(_BYTE *)v6 = 0; *(_QWORD *)(a1 + 288) = v6; return v13; } v13 = 0; goto LABEL_26; } v12 = 31LL; if ( a3 >= 0x1F ) a3 = 31LL; __memcpy_chk(v18, a2, a3, 32LL); v18[a3] = 0; if ( v8 ) { if ( v8 < 0x1F ) v12 = v8; __memcpy_chk(v17, v10, v12, 32LL); v17[v12] = 0; v13 = 1; __sprintf_chk(a1 + 8, 1LL, 128LL, "'</%s>' unexpected ('</%s>' wanted)", v18, v17); } else { v13 = 1; __sprintf_chk(a1 + 8, 1LL, 128LL, "'</%s>' unexpected (END-OF-INPUT wanted)", v18); } return v13; }
my_xml_leave: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R14,RDX MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV R13,qword ptr [RDI + 0x118] MOV RAX,qword ptr [RDI + 0x120] MOV RDX,RAX MOV R12,RAX SUB RDX,R13 MOV qword ptr [RBP + -0x78],RDI JBE 0x0015f6b0 MOV R12,RAX LAB_0015f69e: CMP byte ptr [R12],0x2f JZ 0x0015f6b7 DEC R12 CMP R12,R13 JA 0x0015f69e MOV R12,R13 LAB_0015f6b0: CMP byte ptr [R12],0x2f JNZ 0x0015f6c8 LAB_0015f6b7: MOV RBX,R12 NOT RBX ADD RBX,RAX MOV R15D,0x1 JMP 0x0015f6d1 LAB_0015f6c8: SUB RAX,R12 XOR R15D,R15D MOV RBX,RAX LAB_0015f6d1: TEST RSI,RSI JZ 0x0015f790 ADD R15,R12 CMP RBX,R14 JNZ 0x0015f70e MOV RDI,RSI MOV qword ptr [RBP + -0x88],RSI MOV RSI,R15 MOV qword ptr [RBP + -0x80],RDX MOV RDX,R14 CALL 0x001242e0 MOV RDX,qword ptr [RBP + -0x80] MOV RSI,qword ptr [RBP + -0x88] TEST EAX,EAX JZ 0x0015f790 LAB_0015f70e: CMP R14,0x1f MOV R12D,0x1f CMOVNC R14,R12 LEA RDI,[RBP + -0x50] MOV ECX,0x20 MOV RDX,R14 CALL 0x001245e0 MOV byte ptr [RBP + R14*0x1 + -0x50],0x0 TEST RBX,RBX JZ 0x0015f7bf CMP RBX,0x1f CMOVC R12,RBX LEA R13,[RBP + -0x70] MOV ECX,0x20 MOV RDI,R13 MOV RSI,R15 MOV RDX,R12 CALL 0x001245e0 MOV byte ptr [RBP + R12*0x1 + -0x70],0x0 MOV RDI,qword ptr [RBP + -0x78] ADD RDI,0x8 LEA RCX,[0x166c20] MOV R14D,0x1 LEA R8,[RBP + -0x50] MOV EDX,0x80 MOV ESI,0x1 MOV R9,R13 XOR EAX,EAX CALL 0x001241d0 JMP 0x0015f7fa LAB_0015f790: MOV RBX,qword ptr [RBP + -0x78] TEST byte ptr [RBX],0x1 MOV RAX,qword ptr [RBX + 0x158] JNZ 0x0015f7ad TEST RAX,RAX JZ 0x0015f7eb MOV RDI,RBX MOV RSI,R13 JMP 0x0015f7b8 LAB_0015f7ad: TEST RAX,RAX JZ 0x0015f7eb MOV RDI,RBX MOV RDX,R14 LAB_0015f7b8: CALL RAX MOV R14D,EAX JMP 0x0015f7ee LAB_0015f7bf: MOV RDI,qword ptr [RBP + -0x78] ADD RDI,0x8 LEA RCX,[0x166c44] MOV R14D,0x1 LEA R8,[RBP + -0x50] MOV EDX,0x80 MOV ESI,0x1 XOR EAX,EAX CALL 0x001241d0 JMP 0x0015f7fa LAB_0015f7eb: XOR R14D,R14D LAB_0015f7ee: MOV byte ptr [R12],0x0 MOV qword ptr [RBX + 0x120],R12 LAB_0015f7fa: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0015f81b MOV EAX,R14D ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015f81b: CALL 0x00124360
int4 my_xml_leave(byte *param_1,char *param_2,char *param_3) { code *pcVar1; int iVar2; int4 uVar3; char *pcVar4; ulong uVar5; char *pcVar6; char *pcVar7; char *pcVar8; char *pcVar9; long lVar10; long in_FS_OFFSET; char local_78 [32]; char local_58 [32]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); pcVar7 = *(char **)(param_1 + 0x118); pcVar6 = *(char **)(param_1 + 0x120); pcVar4 = pcVar6 + -(long)pcVar7; pcVar9 = pcVar6; pcVar8 = pcVar6; if (pcVar7 <= pcVar6 && pcVar4 != (char *)0x0) { do { pcVar9 = pcVar8; if (*pcVar8 == '/') goto LAB_0015f6b7; pcVar8 = pcVar8 + -1; pcVar9 = pcVar7; } while (pcVar7 < pcVar8); } if (*pcVar9 == '/') { LAB_0015f6b7: uVar5 = ~(ulong)pcVar9; lVar10 = 1; } else { uVar5 = -(long)pcVar9; lVar10 = 0; } pcVar6 = pcVar6 + uVar5; if ((param_2 != (char *)0x0) && ((pcVar6 != param_3 || (iVar2 = bcmp(param_2,pcVar9 + lVar10,(size_t)param_3), iVar2 != 0)))) { if ((char *)0x1e < param_3) { param_3 = (char *)0x1f; } __memcpy_chk(local_58,param_2,param_3,0x20); local_58[(long)param_3] = '\0'; if (pcVar6 == (char *)0x0) { uVar3 = 1; __sprintf_chk(param_1 + 8,1,0x80,"\'</%s>\' unexpected (END-OF-INPUT wanted)",local_58); } else { pcVar7 = (char *)0x1f; if (pcVar6 < (char *)0x1f) { pcVar7 = pcVar6; } __memcpy_chk(local_78,pcVar9 + lVar10,pcVar7,0x20); local_78[(long)pcVar7] = '\0'; uVar3 = 1; __sprintf_chk(param_1 + 8,1,0x80,"\'</%s>\' unexpected (\'</%s>\' wanted)",local_58,local_78); } goto LAB_0015f7fa; } pcVar1 = *(code **)(param_1 + 0x158); if ((*param_1 & 1) == 0) { if (pcVar1 == (code *)0x0) goto LAB_0015f7eb; LAB_0015f7b8: uVar3 = (*pcVar1)(param_1,pcVar7,pcVar4); } else { pcVar4 = param_3; pcVar7 = param_2; if (pcVar1 != (code *)0x0) goto LAB_0015f7b8; LAB_0015f7eb: uVar3 = 0; } *pcVar9 = '\0'; *(char **)(param_1 + 0x120) = pcVar9; LAB_0015f7fa: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar3; }
3,161
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool)
monkey531[P]llama/common/json.hpp
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false) { JSON_ASSERT(!keep_stack.empty()); // do not handle this value if we know it would be added to a discarded // container if (!keep_stack.back()) { return {false, nullptr}; } // create value auto value = BasicJsonType(std::forward<Value>(v)); // check callback const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value); // do not handle this value if we just learnt it shall be discarded if (!keep) { return {false, nullptr}; } if (ref_stack.empty()) { root = std::move(value); return {true, & root}; } // skip this value if we already decided to skip the parent // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360) if (!ref_stack.back()) { return {false, nullptr}; } // we now only expect arrays and objects JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); // array if (ref_stack.back()->is_array()) { ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value)); return {true, & (ref_stack.back()->m_data.m_value.array->back())}; } // object JSON_ASSERT(ref_stack.back()->is_object()); // check if we should store an element for the current key JSON_ASSERT(!key_keep_stack.empty()); const bool store_element = key_keep_stack.back(); key_keep_stack.pop_back(); if (!store_element) { return {false, nullptr}; } JSON_ASSERT(object_element); *object_element = std::move(value); return {true, object_element}; }
O0
cpp
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool): subq $0x148, %rsp # imm = 0x148 movb %dl, %al movq %rdi, 0x130(%rsp) movq %rsi, 0x128(%rsp) andb $0x1, %al movb %al, 0x127(%rsp) movq 0x130(%rsp), %rdi movq %rdi, 0x40(%rsp) addq $0x20, %rdi callq 0x11e660 testb $0x1, %al jne 0x128cde jmp 0x128cff leaq 0x12e94e(%rip), %rdi # 0x257633 movl $0x1c28, %esi # imm = 0x1C28 leaq 0x126a3a(%rip), %rdx # 0x24f72b leaq 0x12f8bb(%rip), %rcx # 0x2585b3 movb $0x0, %al callq 0x62410 movq 0x40(%rsp), %rdi addq $0x20, %rdi callq 0x11e6e0 movq %rax, 0x110(%rsp) movq %rdx, 0x118(%rsp) leaq 0x110(%rsp), %rdi callq 0x11c830 xorb $-0x1, %al testb $0x1, %al jne 0x128d32 jmp 0x128d68 movb $0x0, 0x10f(%rsp) movq $0x0, 0x100(%rsp) leaq 0x138(%rsp), %rdi leaq 0x10f(%rsp), %rsi leaq 0x100(%rsp), %rdx callq 0x11f0f0 jmp 0x1291d1 movq 0x128(%rsp), %rsi leaq 0xf0(%rsp), %rdi callq 0x129200 movb $0x1, %al testb $0x1, 0x127(%rsp) movb %al, 0x3f(%rsp) jne 0x128dd0 movq 0x40(%rsp), %rdi movq %rdi, %rax subq $-0x80, %rax movq %rax, 0x30(%rsp) addq $0x8, %rdi callq 0x11e7e0 movq 0x30(%rsp), %rdi movl %eax, %esi movl $0x5, %edx leaq 0xf0(%rsp), %rcx callq 0x11e780 movb %al, 0x3e(%rsp) jmp 0x128dc6 movb 0x3e(%rsp), %al movb %al, 0x3f(%rsp) jmp 0x128dd0 movb 0x3f(%rsp), %al andb $0x1, %al movb %al, 0xef(%rsp) testb $0x1, 0xef(%rsp) jne 0x128e50 movb $0x0, 0xdb(%rsp) movq $0x0, 0xd0(%rsp) leaq 0x138(%rsp), %rdi leaq 0xdb(%rsp), %rsi leaq 0xd0(%rsp), %rdx callq 0x11f0f0 jmp 0x128e1a movl $0x1, 0xcc(%rsp) jmp 0x1291c4 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xe0(%rsp) movl %eax, 0xdc(%rsp) leaq 0xf0(%rsp), %rdi callq 0x111200 jmp 0x1291e8 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0x11f120 testb $0x1, %al jne 0x128e64 jmp 0x128ee1 leaq 0xb8(%rsp), %rdi movq %rdi, 0x28(%rsp) leaq 0xf0(%rsp), %rsi callq 0x11f170 movq 0x28(%rsp), %rsi movq 0x40(%rsp), %rax movq (%rax), %rdi callq 0x119380 movq 0x28(%rsp), %rdi callq 0x111200 movq 0x40(%rsp), %rax movb $0x1, 0xb7(%rsp) movq (%rax), %rax movq %rax, 0xa8(%rsp) leaq 0x138(%rsp), %rdi leaq 0xb7(%rsp), %rsi leaq 0xa8(%rsp), %rdx callq 0x11f1f0 jmp 0x128ed1 movl $0x1, 0xcc(%rsp) jmp 0x1291c4 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0x11edd0 cmpq $0x0, (%rax) jne 0x128f38 movb $0x0, 0xa7(%rsp) movq $0x0, 0x98(%rsp) leaq 0x138(%rsp), %rdi leaq 0xa7(%rsp), %rsi leaq 0x98(%rsp), %rdx callq 0x11f0f0 jmp 0x128f28 movl $0x1, 0xcc(%rsp) jmp 0x1291c4 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0x11edd0 movq (%rax), %rdi callq 0x11f220 testb $0x1, %al jne 0x128f8f movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0x11edd0 movq (%rax), %rdi callq 0x11f240 testb $0x1, %al jne 0x128f8f leaq 0x12e6c0(%rip), %rdi # 0x257633 leaq 0x1267b1(%rip), %rdx # 0x24f72b leaq 0x12f646(%rip), %rcx # 0x2585c7 xorl %eax, %eax movl $0x1c4b, %esi # imm = 0x1C4B callq 0x62410 jmp 0x128f8f movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0x11edd0 movq (%rax), %rdi callq 0x11f220 testb $0x1, %al jne 0x128fab jmp 0x129028 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0x11edd0 movq (%rax), %rax movq 0x8(%rax), %rdi leaq 0xf0(%rsp), %rsi callq 0x11f260 jmp 0x128fcf movq 0x40(%rsp), %rdi movb $0x1, 0x97(%rsp) addq $0x8, %rdi callq 0x11edd0 movq (%rax), %rax movq 0x8(%rax), %rdi callq 0x11f2e0 movq %rax, 0x88(%rsp) leaq 0x138(%rsp), %rdi leaq 0x97(%rsp), %rsi leaq 0x88(%rsp), %rdx callq 0x11f1f0 jmp 0x129018 movl $0x1, 0xcc(%rsp) jmp 0x1291c4 movq 0x40(%rsp), %rdi addq $0x8, %rdi callq 0x11edd0 movq (%rax), %rdi callq 0x11f240 testb $0x1, %al jne 0x129065 leaq 0x12e5ea(%rip), %rdi # 0x257633 leaq 0x1266db(%rip), %rdx # 0x24f72b leaq 0x12f590(%rip), %rcx # 0x2585e7 xorl %eax, %eax movl $0x1c55, %esi # imm = 0x1C55 callq 0x62410 jmp 0x129065 movq 0x40(%rsp), %rdi addq $0x48, %rdi callq 0x11e660 testb $0x1, %al jne 0x129079 jmp 0x12909c leaq 0x12e5b3(%rip), %rdi # 0x257633 leaq 0x1266a4(%rip), %rdx # 0x24f72b leaq 0x12f577(%rip), %rcx # 0x258605 xorl %eax, %eax movl $0x1c57, %esi # imm = 0x1C57 callq 0x62410 jmp 0x12909c movq 0x40(%rsp), %rdi addq $0x48, %rdi callq 0x11e6e0 movq %rdx, 0x18(%rsp) movq %rax, 0x20(%rsp) jmp 0x1290b6 movq 0x18(%rsp), %rax movq 0x20(%rsp), %rcx movq %rcx, 0x70(%rsp) movq %rax, 0x78(%rsp) leaq 0x70(%rsp), %rdi callq 0x11c830 movq 0x40(%rsp), %rdi movb %al, 0x87(%rsp) addq $0x48, %rdi callq 0x11e760 jmp 0x1290eb testb $0x1, 0x87(%rsp) jne 0x12912c movb $0x0, 0x6f(%rsp) movq $0x0, 0x60(%rsp) leaq 0x138(%rsp), %rdi leaq 0x6f(%rsp), %rsi leaq 0x60(%rsp), %rdx callq 0x11f0f0 jmp 0x12911c movl $0x1, 0xcc(%rsp) jmp 0x1291c4 movq 0x40(%rsp), %rax cmpq $0x0, 0x70(%rax) jne 0x12915b leaq 0x12e4f4(%rip), %rdi # 0x257633 leaq 0x1265e5(%rip), %rdx # 0x24f72b leaq 0x12f4d0(%rip), %rcx # 0x25861d xorl %eax, %eax movl $0x1c60, %esi # imm = 0x1C60 callq 0x62410 jmp 0x12915b leaq 0x50(%rsp), %rdi movq %rdi, 0x8(%rsp) leaq 0xf0(%rsp), %rsi callq 0x11f170 movq 0x40(%rsp), %rax movq 0x8(%rsp), %rsi movq %rax, %rcx addq $0x70, %rcx movq %rcx, 0x10(%rsp) movq 0x70(%rax), %rdi callq 0x119380 movq 0x8(%rsp), %rdi callq 0x111200 movq 0x10(%rsp), %rdx movb $0x1, 0x4f(%rsp) leaq 0x138(%rsp), %rdi leaq 0x4f(%rsp), %rsi callq 0x11f320 jmp 0x1291b9 movl $0x1, 0xcc(%rsp) leaq 0xf0(%rsp), %rdi callq 0x111200 movb 0x138(%rsp), %al movq 0x140(%rsp), %rdx addq $0x148, %rsp # imm = 0x148 retq movq 0xe0(%rsp), %rdi callq 0x61ff0 nopw %cs:(%rax,%rax) nop
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRlEESt4pairIbPSF_EOT_b: sub rsp, 148h mov al, dl mov [rsp+148h+var_18], rdi mov [rsp+148h+var_20], rsi and al, 1 mov [rsp+148h+var_21], al mov rdi, [rsp+148h+var_18] mov [rsp+148h+var_108], rdi add rdi, 20h ; ' ' call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void) test al, 1 jnz short loc_128CDE jmp short loc_128CFF loc_128CDE: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov esi, 1C28h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov al, 0 call _ggml_abort loc_128CFF: mov rdi, [rsp+148h+var_108] add rdi, 20h ; ' ' call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) mov [rsp+148h+var_38], rax mov [rsp+148h+var_30], rdx lea rdi, [rsp+148h+var_38] call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void) xor al, 0FFh test al, 1 jnz short loc_128D32 jmp short loc_128D68 loc_128D32: mov [rsp+148h+var_39], 0 mov [rsp+148h+var_48], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_39] lea rdx, [rsp+148h+var_48] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp loc_1291D1 loc_128D68: mov rsi, [rsp+148h+var_20] lea rdi, [rsp+148h+var_58] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRllTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ mov al, 1 test [rsp+148h+var_21], 1 mov [rsp+148h+var_109], al jnz short loc_128DD0 mov rdi, [rsp+148h+var_108] mov rax, rdi sub rax, 0FFFFFFFFFFFFFF80h mov [rsp+148h+var_118], rax add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void) mov rdi, [rsp+148h+var_118] mov esi, eax mov edx, 5 lea rcx, [rsp+148h+var_58] call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) mov [rsp+148h+var_10A], al jmp short $+2 loc_128DC6: mov al, [rsp+148h+var_10A] mov [rsp+148h+var_109], al jmp short $+2 loc_128DD0: mov al, [rsp+148h+var_109] and al, 1 mov [rsp+148h+var_59], al test [rsp+148h+var_59], 1 jnz short loc_128E50 mov [rsp+148h+var_6D], 0 mov [rsp+148h+var_78], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_6D] lea rdx, [rsp+148h+var_78] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_128E1A: mov [rsp+148h+var_7C], 1 jmp loc_1291C4 mov rcx, rax mov eax, edx mov [rsp+arg_D8], rcx mov [rsp+arg_D4], eax lea rdi, [rsp+arg_E8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp loc_1291E8 loc_128E50: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void) test al, 1 jnz short loc_128E64 jmp short loc_128EE1 loc_128E64: lea rdi, [rsp+148h+var_90] mov [rsp+148h+var_120], rdi lea rsi, [rsp+148h+var_58] 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>&&) mov rsi, [rsp+148h+var_120] mov rax, [rsp+148h+var_108] mov rdi, [rax] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, [rsp+148h+var_120] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rax, [rsp+148h+var_108] mov [rsp+148h+var_91], 1 mov rax, [rax] mov [rsp+148h+var_A0], rax lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_91] lea rdx, [rsp+148h+var_A0] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_128ED1: mov [rsp+148h+var_7C], 1 jmp loc_1291C4 loc_128EE1: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) cmp qword ptr [rax], 0 jnz short loc_128F38 mov [rsp+148h+var_A1], 0 mov [rsp+148h+var_B0], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_A1] lea rdx, [rsp+148h+var_B0] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_128F28: mov [rsp+148h+var_7C], 1 jmp loc_1291C4 loc_128F38: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void) test al, 1 jnz short loc_128F8F mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void) test al, 1 jnz short loc_128F8F lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... xor eax, eax mov esi, 1C4Bh call _ggml_abort jmp short $+2 loc_128F8F: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void) test al, 1 jnz short loc_128FAB jmp short loc_129028 loc_128FAB: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rax, [rax] mov rdi, [rax+8] lea rsi, [rsp+148h+var_58] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_128FCF: mov rdi, [rsp+148h+var_108] mov [rsp+148h+var_B1], 1 add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rax, [rax] mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void) mov [rsp+148h+var_C0], rax lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_B1] lea rdx, [rsp+148h+var_C0] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_129018: mov [rsp+148h+var_7C], 1 jmp loc_1291C4 loc_129028: mov rdi, [rsp+148h+var_108] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void) test al, 1 jnz short loc_129065 lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()" xor eax, eax mov esi, 1C55h call _ggml_abort jmp short $+2 loc_129065: mov rdi, [rsp+148h+var_108] add rdi, 48h ; 'H' call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void) test al, 1 jnz short loc_129079 jmp short loc_12909C loc_129079: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" xor eax, eax mov esi, 1C57h call _ggml_abort jmp short $+2 loc_12909C: mov rdi, [rsp+148h+var_108] add rdi, 48h ; 'H' call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) mov [rsp+148h+var_130], rdx mov [rsp+148h+var_128], rax jmp short $+2 loc_1290B6: mov rax, [rsp+148h+var_130] mov rcx, [rsp+148h+var_128] mov [rsp+148h+var_D8], rcx mov [rsp+148h+var_D0], rax lea rdi, [rsp+148h+var_D8] call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void) mov rdi, [rsp+148h+var_108] mov [rsp+148h+var_C1], al add rdi, 48h ; 'H' call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void) jmp short $+2 loc_1290EB: test [rsp+148h+var_C1], 1 jnz short loc_12912C mov [rsp+148h+var_D9], 0 mov [rsp+148h+var_E8], 0 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_D9] lea rdx, [rsp+148h+var_E8] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_12911C: mov [rsp+148h+var_7C], 1 jmp loc_1291C4 loc_12912C: mov rax, [rsp+148h+var_108] cmp qword ptr [rax+70h], 0 jnz short loc_12915B lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" xor eax, eax mov esi, 1C60h call _ggml_abort jmp short $+2 loc_12915B: lea rdi, [rsp+148h+var_F8] mov [rsp+148h+var_140], rdi lea rsi, [rsp+148h+var_58] 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>&&) mov rax, [rsp+148h+var_108] mov rsi, [rsp+148h+var_140] mov rcx, rax add rcx, 70h ; 'p' mov [rsp+148h+var_138], rcx mov rdi, [rax+70h] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, [rsp+148h+var_140] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rdx, [rsp+148h+var_138] mov [rsp+148h+var_F9], 1 lea rdi, [rsp+148h+var_10] lea rsi, [rsp+148h+var_F9] call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_ jmp short $+2 loc_1291B9: mov [rsp+148h+var_7C], 1 loc_1291C4: lea rdi, [rsp+148h+var_58] 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_1291D1: mov al, [rsp+148h+var_10] mov rdx, [rsp+148h+var_8] add rsp, 148h retn loc_1291E8: mov rdi, [rsp+arg_D8] call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<long &>( long long a1, long long a2, char a3) { long long v3; // rdx int v4; // eax _BYTE **v5; // rax _BYTE **v6; // rax _BYTE **v7; // rax long long v8; // rax long long v9; // rax _BYTE **v10; // rax long long v11; // rdx char v13; // [rsp+3Fh] [rbp-109h] char v14; // [rsp+4Fh] [rbp-F9h] BYREF __int128 v15; // [rsp+50h] [rbp-F8h] BYREF long long v16; // [rsp+60h] [rbp-E8h] char v17; // [rsp+6Fh] [rbp-D9h] BYREF _QWORD v18[2]; // [rsp+70h] [rbp-D8h] BYREF bool v19; // [rsp+87h] [rbp-C1h] long long v20; // [rsp+88h] [rbp-C0h] BYREF char v21; // [rsp+97h] [rbp-B1h] BYREF long long v22; // [rsp+98h] [rbp-B0h] char v23; // [rsp+A7h] [rbp-A1h] BYREF long long v24; // [rsp+A8h] [rbp-A0h] BYREF char v25; // [rsp+B7h] [rbp-91h] BYREF __int128 v26; // [rsp+B8h] [rbp-90h] BYREF int v27; // [rsp+CCh] [rbp-7Ch] long long v28; // [rsp+D0h] [rbp-78h] _BYTE v29[21]; // [rsp+DBh] [rbp-6Dh] BYREF _BYTE v30[16]; // [rsp+F0h] [rbp-58h] BYREF long long v31; // [rsp+100h] [rbp-48h] char v32; // [rsp+10Fh] [rbp-39h] BYREF _QWORD v33[2]; // [rsp+110h] [rbp-38h] BYREF char v34; // [rsp+127h] [rbp-21h] long long v35; // [rsp+128h] [rbp-20h] long long v36; // [rsp+130h] [rbp-18h] _BYTE v37[8]; // [rsp+138h] [rbp-10h] BYREF v36 = a1; v35 = a2; v34 = a3 & 1; if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 32)) & 1) != 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); v33[0] = std::vector<bool>::back(a1 + 32); v33[1] = v3; if ( std::_Bit_reference::operator bool((long long)v33) ) { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRllTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_( v30, v35); v13 = 1; if ( (v34 & 1) == 0 ) { v4 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size((_QWORD *)(a1 + 8)); v13 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()( (std::_Function_base *)(a1 + 128), v4, 5, (long long)v30); } v29[20] = v13 & 1; if ( (v13 & 1) != 0 ) { if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) != 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>::basic_json( &v26, (long long)v30); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( *(_QWORD *)a1, (long long)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v26); v25 = 1; v24 = *(_QWORD *)a1; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v25, &v24); v27 = 1; } else if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) ) { v5 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v5) ) { v6 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v6) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7243LL, "GGML_ASSERT(%s) failed", "ref_stack.back()->is_array() || ref_stack.back()->is_object()"); } v7 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v7) ) { v8 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( *(_QWORD *)(*(_QWORD *)v8 + 8LL), (long long)v30); v21 = 1; v9 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); v20 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v9 + 8LL)); ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v21, &v20); v27 = 1; } else { v10 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v10) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7253LL, "GGML_ASSERT(%s) failed", "ref_stack.back()->is_object()"); if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 72)) & 1) != 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7255LL, "GGML_ASSERT(%s) failed", "!key_keep_stack.empty()"); v18[0] = std::vector<bool>::back(a1 + 72); v18[1] = v11; v19 = std::_Bit_reference::operator bool((long long)v18); std::vector<bool>::pop_back(a1 + 72); if ( v19 ) { if ( !*(_QWORD *)(a1 + 112) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( &v15, (long long)v30); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( *(_QWORD *)(a1 + 112), (long long)&v15); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v15); v14 = 1; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_( (long long)v37, &v14, (_QWORD *)(a1 + 112)); v27 = 1; } else { v17 = 0; v16 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v17); v27 = 1; } } } else { v23 = 0; v22 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v23); v27 = 1; } } else { v29[0] = 0; v28 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, v29); v27 = 1; } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v30); } else { v32 = 0; v31 = 0LL; ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_( (long long)v37, &v32); } return v37[0]; }
3,162
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool)
monkey531[P]llama/common/json.hpp
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false) { JSON_ASSERT(!keep_stack.empty()); // do not handle this value if we know it would be added to a discarded // container if (!keep_stack.back()) { return {false, nullptr}; } // create value auto value = BasicJsonType(std::forward<Value>(v)); // check callback const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value); // do not handle this value if we just learnt it shall be discarded if (!keep) { return {false, nullptr}; } if (ref_stack.empty()) { root = std::move(value); return {true, & root}; } // skip this value if we already decided to skip the parent // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360) if (!ref_stack.back()) { return {false, nullptr}; } // we now only expect arrays and objects JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); // array if (ref_stack.back()->is_array()) { ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value)); return {true, & (ref_stack.back()->m_data.m_value.array->back())}; } // object JSON_ASSERT(ref_stack.back()->is_object()); // check if we should store an element for the current key JSON_ASSERT(!key_keep_stack.empty()); const bool store_element = key_keep_stack.back(); key_keep_stack.pop_back(); if (!store_element) { return {false, nullptr}; } JSON_ASSERT(object_element); *object_element = std::move(value); return {true, object_element}; }
O3
cpp
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movl %edx, %ebp movq %rdi, %rbx movq 0x30(%rdi), %rax movl 0x38(%rdi), %ecx cmpq %rax, 0x20(%rdi) sete %dl testl %ecx, %ecx sete %dil andb %dl, %dil cmpb $0x1, %dil je 0x90c22 movl %ecx, %ecx movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000 leaq -0x1(%rcx), %rdx addq $0x3e, %rcx testq %rdx, %rdx cmovnsq %rdx, %rcx sarq $0x6, %rcx leaq (%rax,%rcx,8), %rax leaq 0x3f(%r15), %rcx andq %rdx, %rcx xorl %edi, %edi cmpq %r15, %rcx setbe %dil movq -0x8(%rax,%rdi,8), %rax btq %rdx, %rax jae 0x90ab5 xorps %xmm0, %xmm0 leaq 0x10(%rsp), %r14 movaps %xmm0, (%r14) movq (%rsi), %rsi movq %r14, %rdi callq 0x90cbc movq %r14, %rdi movl $0x1, %esi callq 0x89206 testb %bpl, %bpl jne 0x90a62 movq 0x10(%rbx), %rax subq 0x8(%rbx), %rax shrq $0x3, %rax movl %eax, 0xc(%rsp) movb $0x5, 0xb(%rsp) cmpq $0x0, 0x90(%rbx) je 0x90c43 leaq 0x80(%rbx), %rdi leaq 0xc(%rsp), %rsi leaq 0xb(%rsp), %rdx leaq 0x10(%rsp), %rcx callq *0x98(%rbx) testb %al, %al je 0x90bf6 movq 0x10(%rbx), %rax cmpq %rax, 0x8(%rbx) je 0x90abf movq -0x8(%rax), %rax testq %rax, %rax je 0x90bf6 movzbl (%rax), %ecx cmpl $0x1, %ecx je 0x90b19 cmpl $0x2, %ecx jne 0x90c48 movq 0x8(%rax), %rdi leaq 0x10(%rsp), %rsi callq 0x8dc14 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rax movq 0x8(%rax), %r14 addq $-0x10, %r14 jmp 0x90bf2 xorl %ebx, %ebx xorl %r14d, %r14d jmp 0x90c12 leaq 0x10(%rsp), %r14 movaps (%r14), %xmm0 leaq 0x30(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x89206 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x89206 movq (%rbx), %rdi movq %r15, %rsi callq 0x8b810 movq %r15, %rdi xorl %esi, %esi callq 0x89206 movq %r15, %rdi callq 0x8e4c0 movq (%rbx), %r14 jmp 0x90bf2 movq 0x58(%rbx), %rax movl 0x60(%rbx), %ecx cmpq %rax, 0x48(%rbx) sete %dl testl %ecx, %ecx sete %sil andb %dl, %sil cmpb $0x1, %sil je 0x90c56 movl %ecx, %esi leaq -0x1(%rsi), %rcx movq %rsi, %rdx addq $0x3e, %rdx testq %rcx, %rcx cmovnsq %rcx, %rdx sarq $0x6, %rdx leaq (%rax,%rdx,8), %rdi leaq 0x3f(%r15), %rdx andq %rcx, %rdx xorl %r8d, %r8d cmpq %r15, %rdx setbe %r8b movl $0x1, %edx shlq %cl, %rdx andq -0x8(%rdi,%r8,8), %rdx subl $0x1, %esi movl %esi, 0x60(%rbx) jae 0x90b8b movl $0x3f, 0x60(%rbx) addq $-0x8, %rax movq %rax, 0x58(%rbx) testq %rdx, %rdx je 0x90bf6 cmpq $0x0, 0x70(%rbx) je 0x90c77 leaq 0x10(%rsp), %r14 movaps (%r14), %xmm0 leaq 0x20(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x89206 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x89206 movq 0x70(%rbx), %rdi movq %r15, %rsi callq 0x8b810 movq %r15, %rdi xorl %esi, %esi callq 0x89206 movq %r15, %rdi callq 0x8e4c0 movq 0x70(%rbx), %r14 movb $0x1, %bl jmp 0x90bfb xorl %ebx, %ebx xorl %r14d, %r14d leaq 0x10(%rsp), %r15 movq %r15, %rdi xorl %esi, %esi callq 0x89206 movq %r15, %rdi callq 0x8e4c0 movl %ebx, %eax movq %r14, %rdx addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x81773(%rip), %rdi # 0x11239c leaq 0x79e43(%rip), %rdx # 0x10aa73 leaq 0x826ca(%rip), %rcx # 0x113301 movl $0x1c28, %esi # imm = 0x1C28 xorl %eax, %eax callq 0x1e500 callq 0x1d3e0 leaq 0x826c6(%rip), %rcx # 0x113315 movl $0x1c4b, %esi # imm = 0x1C4B jmp 0x90c62 leaq 0x826f6(%rip), %rcx # 0x113353 movl $0x1c57, %esi # imm = 0x1C57 leaq 0x81733(%rip), %rdi # 0x11239c leaq 0x79e03(%rip), %rdx # 0x10aa73 xorl %eax, %eax callq 0x1e500 leaq 0x8171e(%rip), %rdi # 0x11239c leaq 0x79dee(%rip), %rdx # 0x10aa73 leaq 0x826df(%rip), %rcx # 0x11336b movl $0x1c60, %esi # imm = 0x1C60 xorl %eax, %eax callq 0x1e500 jmp 0x90c9a movq %rax, %rbx leaq 0x10(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x89206 movq %r14, %rdi callq 0x8e4c0 movq %rbx, %rdi callq 0x1e660
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRlEESt4pairIbPSF_EOT_b: push rbp push r15 push r14 push rbx sub rsp, 48h mov ebp, edx mov rbx, rdi mov rax, [rdi+30h] mov ecx, [rdi+38h] cmp [rdi+20h], rax setz dl test ecx, ecx setz dil and dil, dl cmp dil, 1 jz loc_90C22 mov ecx, ecx mov r15, 8000000000000000h lea rdx, [rcx-1] add rcx, 3Eh ; '>' test rdx, rdx cmovns rcx, rdx sar rcx, 6 lea rax, [rax+rcx*8] lea rcx, [r15+3Fh] and rcx, rdx xor edi, edi cmp rcx, r15 setbe dil mov rax, [rax+rdi*8-8] bt rax, rdx jnb loc_90AB5 xorps xmm0, xmm0 lea r14, [rsp+68h+var_58] movaps xmmword ptr [r14], xmm0 mov rsi, [rsi] mov rdi, r14 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) 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) test bpl, bpl jnz short loc_90A62 mov rax, [rbx+10h] sub rax, [rbx+8] shr rax, 3 mov [rsp+68h+var_5C], eax mov [rsp+68h+var_5D], 5 cmp qword ptr [rbx+90h], 0 jz loc_90C43 lea rdi, [rbx+80h] lea rsi, [rsp+68h+var_5C] lea rdx, [rsp+68h+var_5D] lea rcx, [rsp+68h+var_58] call qword ptr [rbx+98h] test al, al jz loc_90BF6 loc_90A62: mov rax, [rbx+10h] cmp [rbx+8], rax jz short loc_90ABF mov rax, [rax-8] test rax, rax jz loc_90BF6 movzx ecx, byte ptr [rax] cmp ecx, 1 jz loc_90B19 cmp ecx, 2 jnz loc_90C48 mov rdi, [rax+8] lea rsi, [rsp+68h+var_58] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rax, [rbx+10h] mov rax, [rax-8] mov rax, [rax+8] mov r14, [rax+8] add r14, 0FFFFFFFFFFFFFFF0h jmp loc_90BF2 loc_90AB5: xor ebx, ebx xor r14d, r14d jmp loc_90C12 loc_90ABF: lea r14, [rsp+68h+var_58] movaps xmm0, xmmword ptr [r14] lea r15, [rsp+68h+var_38] movaps xmmword ptr [r15], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rbx] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov r14, [rbx] jmp loc_90BF2 loc_90B19: mov rax, [rbx+58h] mov ecx, [rbx+60h] cmp [rbx+48h], rax setz dl test ecx, ecx setz sil and sil, dl cmp sil, 1 jz loc_90C56 mov esi, ecx lea rcx, [rsi-1] mov rdx, rsi add rdx, 3Eh ; '>' test rcx, rcx cmovns rdx, rcx sar rdx, 6 lea rdi, [rax+rdx*8] lea rdx, [r15+3Fh] and rdx, rcx xor r8d, r8d cmp rdx, r15 setbe r8b mov edx, 1 shl rdx, cl and rdx, [rdi+r8*8-8] sub esi, 1 mov [rbx+60h], esi jnb short loc_90B8B mov dword ptr [rbx+60h], 3Fh ; '?' add rax, 0FFFFFFFFFFFFFFF8h mov [rbx+58h], rax loc_90B8B: test rdx, rdx jz short loc_90BF6 cmp qword ptr [rbx+70h], 0 jz loc_90C77 lea r14, [rsp+68h+var_58] movaps xmm0, xmmword ptr [r14] lea r15, [rsp+68h+var_48] movaps xmmword ptr [r15], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rbx+70h] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov r14, [rbx+70h] loc_90BF2: mov bl, 1 jmp short loc_90BFB loc_90BF6: xor ebx, ebx xor r14d, r14d loc_90BFB: lea r15, [rsp+68h+var_58] mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_90C12: mov eax, ebx mov rdx, r14 add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_90C22: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1C28h xor eax, eax call _ggml_abort loc_90C43: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) loc_90C48: lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... mov esi, 1C4Bh jmp short loc_90C62 loc_90C56: lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" mov esi, 1C57h loc_90C62: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" xor eax, eax call _ggml_abort loc_90C77: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" mov esi, 1C60h xor eax, eax call _ggml_abort jmp short $+2 loc_90C9A: mov rbx, rax lea r14, [rsp+68h+var_58] mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<long &>( long long a1, _QWORD *a2, char a3) { unsigned int v4; // ebx long long v5; // rax unsigned int v6; // ecx signed long long v7; // rdx long long v8; // rcx long long v9; // rax long long v10; // rax unsigned __int8 *v11; // rax int v12; // ecx long long v13; // rax unsigned int v14; // ecx long long v15; // rsi long long v16; // rcx long long v17; // rdx long long v18; // rdx const char *v20; // rcx long long v21; // rsi long long v22; // rbx char v23; // [rsp+Bh] [rbp-5Dh] BYREF int v24; // [rsp+Ch] [rbp-5Ch] BYREF __int128 v25; // [rsp+10h] [rbp-58h] BYREF __int128 v26; // [rsp+20h] [rbp-48h] BYREF _OWORD v27[3]; // [rsp+30h] [rbp-38h] BYREF v4 = a1; v5 = *(_QWORD *)(a1 + 48); v6 = *(_DWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 32) == v5 && v6 == 0 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); goto LABEL_28; } v7 = v6 - 1LL; v8 = v6 + 62LL; if ( v7 >= 0 ) v8 = v7; v9 = *(_QWORD *)(v5 + 8 * (v8 >> 6) + 8LL * ((v7 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8); if ( _bittest64(&v9, v7) ) { v25 = 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>>( &v25, *a2); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); if ( a3 ) { LABEL_8: v10 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v10 ) { v27[0] = v25; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); LOBYTE(v25) = 0; *((_QWORD *)&v25 + 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>::assert_invariant((char *)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( *(_QWORD *)a1, (long long)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v27); goto LABEL_23; } v11 = *(unsigned __int8 **)(v10 - 8); if ( v11 ) { v12 = *v11; if ( v12 != 1 ) { if ( v12 == 2 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( *((_QWORD *)v11 + 1), (long long)&v25); LABEL_23: LOBYTE(v4) = 1; LABEL_25: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(&v25); return v4; } v20 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; v21 = 7243LL; goto LABEL_31; } v13 = *(_QWORD *)(a1 + 88); v14 = *(_DWORD *)(a1 + 96); if ( *(_QWORD *)(a1 + 72) == v13 && v14 == 0 ) { v20 = "!key_keep_stack.empty()"; v21 = 7255LL; LABEL_31: ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v21, "GGML_ASSERT(%s) failed", v20); goto LABEL_32; } v15 = v14; v16 = v14 - 1LL; v17 = v15 + 62; if ( v16 >= 0 ) v17 = v16; v18 = *(_QWORD *)(v13 + 8 * (v17 >> 6) + 8LL * ((v16 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8) & (1LL << v16); *(_DWORD *)(a1 + 96) = v15 - 1; if ( !(_DWORD)v15 ) { *(_DWORD *)(a1 + 96) = 63; *(_QWORD *)(a1 + 88) = v13 - 8; } if ( v18 ) { if ( *(_QWORD *)(a1 + 112) ) { v26 = v25; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); LOBYTE(v25) = 0; *((_QWORD *)&v25 + 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>::assert_invariant((char *)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( *(_QWORD *)(a1 + 112), (long long)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(&v26); goto LABEL_23; } LABEL_32: v22 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(&v25); _Unwind_Resume(v22); } } LABEL_24: v4 = 0; goto LABEL_25; } v24 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3; v23 = 5; if ( *(_QWORD *)(a1 + 144) ) { if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))( a1 + 128, &v24, &v23, &v25) ) goto LABEL_24; goto LABEL_8; } LABEL_28: std::__throw_bad_function_call(); } return 0; }
handle_value<long&>: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV EBP,EDX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x30] MOV ECX,dword ptr [RDI + 0x38] CMP qword ptr [RDI + 0x20],RAX SETZ DL TEST ECX,ECX SETZ DIL AND DIL,DL CMP DIL,0x1 JZ 0x00190c22 MOV ECX,ECX MOV R15,-0x8000000000000000 LEA RDX,[RCX + -0x1] ADD RCX,0x3e TEST RDX,RDX CMOVNS RCX,RDX SAR RCX,0x6 LEA RAX,[RAX + RCX*0x8] LEA RCX,[R15 + 0x3f] AND RCX,RDX XOR EDI,EDI CMP RCX,R15 SETBE DIL MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8] BT RAX,RDX JNC 0x00190ab5 XORPS XMM0,XMM0 LEA R14,[RSP + 0x10] MOVAPS xmmword ptr [R14],XMM0 MOV RSI,qword ptr [RSI] MOV RDI,R14 CALL 0x00190cbc MOV RDI,R14 MOV ESI,0x1 CALL 0x00189206 TEST BPL,BPL JNZ 0x00190a62 MOV RAX,qword ptr [RBX + 0x10] SUB RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 MOV dword ptr [RSP + 0xc],EAX MOV byte ptr [RSP + 0xb],0x5 CMP qword ptr [RBX + 0x90],0x0 JZ 0x00190c43 LEA RDI,[RBX + 0x80] LAB_00190a45: LEA RSI,[RSP + 0xc] LEA RDX,[RSP + 0xb] LEA RCX,[RSP + 0x10] CALL qword ptr [RBX + 0x98] TEST AL,AL JZ 0x00190bf6 LAB_00190a62: MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RBX + 0x8],RAX JZ 0x00190abf MOV RAX,qword ptr [RAX + -0x8] TEST RAX,RAX JZ 0x00190bf6 MOVZX ECX,byte ptr [RAX] CMP ECX,0x1 JZ 0x00190b19 CMP ECX,0x2 JNZ 0x00190c48 MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x10] CALL 0x0018dc14 LAB_00190a9c: MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x8] ADD R14,-0x10 JMP 0x00190bf2 LAB_00190ab5: XOR EBX,EBX XOR R14D,R14D JMP 0x00190c12 LAB_00190abf: LEA R14,[RSP + 0x10] MOVAPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x30] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x00189206 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x00189206 MOV RDI,qword ptr [RBX] MOV RSI,R15 CALL 0x0018b810 MOV RDI,R15 XOR ESI,ESI CALL 0x00189206 MOV RDI,R15 CALL 0x0018e4c0 MOV R14,qword ptr [RBX] JMP 0x00190bf2 LAB_00190b19: MOV RAX,qword ptr [RBX + 0x58] MOV ECX,dword ptr [RBX + 0x60] CMP qword ptr [RBX + 0x48],RAX SETZ DL TEST ECX,ECX SETZ SIL AND SIL,DL CMP SIL,0x1 JZ 0x00190c56 MOV ESI,ECX LEA RCX,[RSI + -0x1] MOV RDX,RSI ADD RDX,0x3e TEST RCX,RCX CMOVNS RDX,RCX SAR RDX,0x6 LEA RDI,[RAX + RDX*0x8] LEA RDX,[R15 + 0x3f] AND RDX,RCX XOR R8D,R8D CMP RDX,R15 SETBE R8B MOV EDX,0x1 SHL RDX,CL AND RDX,qword ptr [RDI + R8*0x8 + -0x8] SUB ESI,0x1 MOV dword ptr [RBX + 0x60],ESI JNC 0x00190b8b MOV dword ptr [RBX + 0x60],0x3f ADD RAX,-0x8 MOV qword ptr [RBX + 0x58],RAX LAB_00190b8b: TEST RDX,RDX JZ 0x00190bf6 CMP qword ptr [RBX + 0x70],0x0 JZ 0x00190c77 LEA R14,[RSP + 0x10] MOVAPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x20] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x00189206 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x00189206 MOV RDI,qword ptr [RBX + 0x70] MOV RSI,R15 CALL 0x0018b810 MOV RDI,R15 XOR ESI,ESI CALL 0x00189206 MOV RDI,R15 CALL 0x0018e4c0 MOV R14,qword ptr [RBX + 0x70] LAB_00190bf2: MOV BL,0x1 JMP 0x00190bfb LAB_00190bf6: XOR EBX,EBX XOR R14D,R14D LAB_00190bfb: LEA R15,[RSP + 0x10] MOV RDI,R15 XOR ESI,ESI CALL 0x00189206 MOV RDI,R15 CALL 0x0018e4c0 LAB_00190c12: MOV EAX,EBX MOV RDX,R14 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_00190c22: LEA RDI,[0x21239c] LEA RDX,[0x20aa73] LEA RCX,[0x213301] MOV ESI,0x1c28 XOR EAX,EAX CALL 0x0011e500 LAB_00190c43: CALL 0x0011d3e0 LAB_00190c48: LEA RCX,[0x213315] MOV ESI,0x1c4b JMP 0x00190c62 LAB_00190c56: LEA RCX,[0x213353] MOV ESI,0x1c57 LAB_00190c62: LEA RDI,[0x21239c] LEA RDX,[0x20aa73] XOR EAX,EAX CALL 0x0011e500 LAB_00190c77: LEA RDI,[0x21239c] LEA RDX,[0x20aa73] LEA RCX,[0x21336b] MOV ESI,0x1c60 XOR EAX,EAX CALL 0x0011e500
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::handle_value<long&>(long&, bool) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::handle_value<long&> (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,long *param_1,bool param_2) { uint uVar1; char cVar2; ulong uVar3; char *pcVar4; ulong uVar5; int8 uVar6; bool bVar7; long lVar8; int1 auVar9 [16]; int1 local_5d; int4 local_5c; ulong local_58; int8 uStack_50; ulong local_48; int8 uStack_40; ulong local_38; int8 uStack_30; uVar1 = *(uint *)(this + 0x38); if (uVar1 == 0 && *(long *)(this + 0x20) == *(long *)(this + 0x30)) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28, "GGML_ASSERT(%s) failed","!keep_stack.empty()"); } uVar5 = (ulong)uVar1 - 1; uVar3 = (ulong)uVar1 + 0x3e; if (-1 < (long)uVar5) { uVar3 = uVar5; } if ((*(ulong *)(*(long *)(this + 0x30) + ((long)uVar3 >> 6) * 8 + -8 + (ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar5 & 0x3f) & 1) == 0) { uVar5 = 0; lVar8 = 0; goto LAB_00190c12; } local_58 = 0; uStack_50 = 0; 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>> (&local_58,*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> ::assert_invariant(SUB81(&local_58,0)); if (param_2) { LAB_00190a62: if (*(long *)(this + 8) == *(long *)(this + 0x10)) { local_38 = local_58; uStack_30 = uStack_50; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); local_58 = local_58 & 0xffffffffffffff00; uStack_50 = 0; bVar7 = SUB81((data *)&local_38,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)this,(data *)&local_38); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_38); lVar8 = *(long *)this; } else { pcVar4 = *(char **)(*(long *)(this + 0x10) + -8); if (pcVar4 == (char *)0x0) goto LAB_00190bf6; if (*pcVar4 == '\x01') { lVar8 = *(long *)(this + 0x58); uVar1 = *(uint *)(this + 0x60); if (uVar1 == 0 && *(long *)(this + 0x48) == lVar8) { pcVar4 = "!key_keep_stack.empty()"; uVar6 = 0x1c57; goto LAB_00190c62; } uVar5 = (ulong)uVar1 - 1; uVar3 = (ulong)uVar1 + 0x3e; if (-1 < (long)uVar5) { uVar3 = uVar5; } uVar3 = *(ulong *)(lVar8 + ((long)uVar3 >> 6) * 8 + -8 + (ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8); *(uint *)(this + 0x60) = uVar1 - 1; if (uVar1 == 0) { *(int4 *)(this + 0x60) = 0x3f; *(long *)(this + 0x58) = lVar8 + -8; } if ((1L << ((byte)uVar5 & 0x3f) & uVar3) == 0) goto LAB_00190bf6; if (*(long *)(this + 0x70) == 0) { /* try { // try from 00190c77 to 00190c97 has its CatchHandler @ 00190c98 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 0x1c60,"GGML_ASSERT(%s) failed","object_element"); } local_48 = local_58; uStack_40 = uStack_50; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); local_58 = local_58 & 0xffffffffffffff00; uStack_50 = 0; bVar7 = SUB81((data *)&local_48,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(this + 0x70),(data *)&local_48); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_48); lVar8 = *(long *)(this + 0x70); } else { if (*pcVar4 != '\x02') { pcVar4 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; uVar6 = 0x1c4b; LAB_00190c62: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", uVar6,"GGML_ASSERT(%s) failed",pcVar4); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(pcVar4 + 8),(basic_json *)&local_58); lVar8 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10; } } uVar5 = CONCAT71((int7)((ulong)this >> 8),1); } else { local_5c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3); local_5d = 5; if (*(long *)(this + 0x90) == 0) { /* WARNING: Subroutine does not return */ /* try { // try from 00190c43 to 00190c76 has its CatchHandler @ 00190c9a */ std::__throw_bad_function_call(); } /* try { // try from 00190a45 to 00190a9b has its CatchHandler @ 00190c9a */ cVar2 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,&local_58); if (cVar2 != '\0') goto LAB_00190a62; LAB_00190bf6: uVar5 = 0; lVar8 = 0; } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)&local_58,0)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_58); LAB_00190c12: auVar9._0_8_ = uVar5 & 0xffffffff; auVar9._8_8_ = lVar8; return auVar9; }
3,163
js_dynamic_import_job
bluesky950520[P]quickjs/quickjs.c
static JSValue js_dynamic_import_job(JSContext *ctx, int argc, JSValue *argv) { JSValue *resolving_funcs = argv; JSValue basename_val = argv[2]; JSValue specifier = argv[3]; const char *basename = NULL, *filename; JSValue ret, err; if (!JS_IsString(basename_val)) { JS_ThrowTypeError(ctx, "no function filename for import()"); goto exception; } basename = JS_ToCString(ctx, basename_val); if (!basename) goto exception; filename = JS_ToCString(ctx, specifier); if (!filename) goto exception; JS_LoadModuleInternal(ctx, basename, filename, resolving_funcs); JS_FreeCString(ctx, filename); JS_FreeCString(ctx, basename); return JS_UNDEFINED; exception: err = JS_GetException(ctx); ret = JS_Call(ctx, resolving_funcs[1], JS_UNDEFINED, 1, &err); JS_FreeValue(ctx, ret); /* XXX: what to do if exception ? */ JS_FreeValue(ctx, err); JS_FreeCString(ctx, basename); return JS_UNDEFINED; }
O1
c
js_dynamic_import_job: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r14 movq %rdi, %rbx movq 0x28(%rdx), %rcx cmpl $-0x7, %ecx jne 0x45785 movq 0x20(%r14), %rdx movq 0x30(%r14), %r12 movq 0x38(%r14), %r13 xorl %ebp, %ebp movq %rbx, %rdi xorl %esi, %esi xorl %r8d, %r8d callq 0x24c53 testq %rax, %rax je 0x45798 movq %rax, %r15 movq %rbx, %rdi xorl %esi, %esi movq %r12, %rdx movq %r13, %rcx xorl %r8d, %r8d callq 0x24c53 testq %rax, %rax je 0x4585f movq %rax, %r12 movq %rbx, %rdi movq %r15, %rsi movq %rax, %rdx movq %r14, %rcx callq 0x35030 movq 0x18(%rbx), %rdi movl -0x18(%r12), %eax leal -0x1(%rax), %ecx movl %ecx, -0x18(%r12) cmpl $0x1, %eax jg 0x45764 addq $-0x18, %r12 movq %r12, %rsi movq $-0x7, %rdx callq 0x252c2 movq 0x18(%rbx), %rdi movl -0x18(%r15), %eax leal -0x1(%rax), %ecx movl %ecx, -0x18(%r15) cmpl $0x2, %eax jge 0x45849 addq $-0x18, %r15 jmp 0x4583a leaq 0x5df62(%rip), %rsi # 0xa36ee xorl %ebp, %ebp movq %rbx, %rdi xorl %eax, %eax callq 0x265c3 movq 0x18(%rbx), %rax movups 0xf0(%rax), %xmm0 xorl %ecx, %ecx movl %ecx, 0xf0(%rax) movq $0x4, 0xf8(%rax) leaq 0x30(%rsp), %r15 movaps %xmm0, (%r15) movq 0x10(%r14), %rsi movq 0x18(%r14), %rdx movl %ecx, 0x20(%rsp) movq $0x3, 0x28(%rsp) movups 0x20(%rsp), %xmm0 movups %xmm0, (%rsp) movq %r15, 0x10(%rsp) movl $0x2, 0x18(%rsp) movl $0x3, %r8d movq %rbx, %rdi xorl %ecx, %ecx movl $0x1, %r9d callq 0x2c526 movq 0x18(%rbx), %rdi movq %rax, %rsi callq 0x21922 movq (%r15), %rsi movq 0x8(%r15), %rdx movq 0x18(%rbx), %rdi callq 0x21922 testq %rbp, %rbp je 0x45849 movq 0x18(%rbx), %rdi movl -0x18(%rbp), %eax leal -0x1(%rax), %ecx movl %ecx, -0x18(%rbp) cmpl $0x1, %eax jg 0x45849 addq $-0x18, %rbp movq %rbp, %r15 movq %r15, %rsi movq $-0x7, %rdx callq 0x252c2 movl $0x3, %edx xorl %eax, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r15, %rbp jmp 0x45798
js_dynamic_import_job: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r14, rdx mov rbx, rdi mov rcx, [rdx+28h] cmp ecx, 0FFFFFFF9h jnz loc_45785 mov rdx, [r14+20h] mov r12, [r14+30h] mov r13, [r14+38h] xor ebp, ebp mov rdi, rbx xor esi, esi xor r8d, r8d call JS_ToCStringLen2 test rax, rax jz loc_45798 mov r15, rax mov rdi, rbx xor esi, esi mov rdx, r12 mov rcx, r13 xor r8d, r8d call JS_ToCStringLen2 test rax, rax jz loc_4585F mov r12, rax mov rdi, rbx mov rsi, r15 mov rdx, rax mov rcx, r14 call JS_LoadModuleInternal mov rdi, [rbx+18h] mov eax, [r12-18h] lea ecx, [rax-1] mov [r12-18h], ecx cmp eax, 1 jg short loc_45764 add r12, 0FFFFFFFFFFFFFFE8h mov rsi, r12 mov rdx, 0FFFFFFFFFFFFFFF9h call js_free_value_rt loc_45764: mov rdi, [rbx+18h] mov eax, [r15-18h] lea ecx, [rax-1] mov [r15-18h], ecx cmp eax, 2 jge loc_45849 add r15, 0FFFFFFFFFFFFFFE8h jmp loc_4583A loc_45785: lea rsi, aNoFunctionFile; "no function filename for import()" xor ebp, ebp mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_45798: mov rax, [rbx+18h] movups xmm0, xmmword ptr [rax+0F0h] xor ecx, ecx mov [rax+0F0h], ecx mov qword ptr [rax+0F8h], 4 lea r15, [rsp+78h+var_48] movaps xmmword ptr [r15], xmm0 mov rsi, [r14+10h] mov rdx, [r14+18h] mov dword ptr [rsp+78h+var_58], ecx mov qword ptr [rsp+78h+var_58+8], 3 movups xmm0, [rsp+78h+var_58] movups [rsp+78h+var_78], xmm0 mov [rsp+78h+var_68], r15 mov [rsp+78h+var_60], 2 mov r8d, 3 mov rdi, rbx xor ecx, ecx mov r9d, 1 call JS_CallInternal mov rdi, [rbx+18h] mov rsi, rax call JS_FreeValueRT mov rsi, [r15] mov rdx, [r15+8] mov rdi, [rbx+18h] call JS_FreeValueRT test rbp, rbp jz short loc_45849 mov rdi, [rbx+18h] mov eax, [rbp-18h] lea ecx, [rax-1] mov [rbp-18h], ecx cmp eax, 1 jg short loc_45849 add rbp, 0FFFFFFFFFFFFFFE8h mov r15, rbp loc_4583A: mov rsi, r15 mov rdx, 0FFFFFFFFFFFFFFF9h call js_free_value_rt loc_45849: mov edx, 3 xor eax, eax add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4585F: mov rbp, r15 jmp loc_45798
long long js_dynamic_import_job( long long *a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, __m128 *a11, long long a12, long long a13, long long a14) { long long v16; // rcx long long v17; // r12 long long v18; // r13 long long v19; // rbp long long v20; // rax __m128 v21; // xmm4 __m128 v22; // xmm5 long long v23; // r15 long long v24; // rax long long v25; // r12 long long v26; // r8 long long v27; // r9 long long v28; // rdi int v29; // eax long long v30; // rcx long long v31; // rdi int v32; // eax long long v33; // rcx _QWORD *v34; // r15 long long v35; // rax __int128 v36; // xmm0 _DWORD *v37; // rax long long v38; // rdx int v39; // eax char v41; // [rsp+0h] [rbp-78h] __m128 v42; // [rsp+20h] [rbp-58h] __int128 v43; // [rsp+30h] [rbp-48h] BYREF v16 = a11[2].m128_i64[1]; if ( (_DWORD)v16 == -7 ) { v17 = a11[3].m128_i64[0]; v18 = a11[3].m128_i64[1]; v19 = 0LL; v20 = JS_ToCStringLen2((long long)a1, 0LL, a11[2].m128_i64[0], v16, 0); if ( v20 ) { v23 = v20; v24 = JS_ToCStringLen2((long long)a1, 0LL, v17, v18, 0); if ( v24 ) { v25 = v24; JS_LoadModuleInternal( a1, *(double *)a2.m128_u64, a3, a4, a5, *(double *)v21.m128_u64, *(double *)v22.m128_u64, a8, a9, v23, v24, a11); v28 = a1[3]; v29 = *(_DWORD *)(v25 - 24); v30 = (unsigned int)(v29 - 1); *(_DWORD *)(v25 - 24) = v30; if ( v29 <= 1 ) js_free_value_rt(v28, (_QWORD *)(v25 - 24), -7LL, v30, v26, v27); v31 = a1[3]; v32 = *(_DWORD *)(v23 - 24); v33 = (unsigned int)(v32 - 1); *(_DWORD *)(v23 - 24) = v33; if ( v32 < 2 ) { v34 = (_QWORD *)(v23 - 24); LABEL_12: js_free_value_rt(v31, v34, -7LL, v33, v26, v27); return 0LL; } return 0LL; } v19 = v23; } } else { v19 = 0LL; JS_ThrowTypeError( (long long)a1, (long long)"no function filename for import()", (long long)a11, v16, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v41); } v35 = a1[3]; v36 = *(_OWORD *)(v35 + 240); *(_DWORD *)(v35 + 240) = 0; *(_QWORD *)(v35 + 248) = 4LL; v43 = v36; v42.m128_i32[0] = 0; v42.m128_u64[1] = 3LL; v37 = (_DWORD *)JS_CallInternal( (long long)a1, a11[1].m128_i64[0], a11[1].m128_i64[1], 0LL, 3LL, 1LL, v42, a3, a4, a5, v21, v22, a8, a9, v42.m128_i8[0], 3, (long long)&v43, 2u); JS_FreeValueRT(a1[3], v37, v38); JS_FreeValueRT(a1[3], (_DWORD *)v43, *((long long *)&v43 + 1)); if ( v19 ) { v31 = a1[3]; v39 = *(_DWORD *)(v19 - 24); v33 = (unsigned int)(v39 - 1); *(_DWORD *)(v19 - 24) = v33; if ( v39 <= 1 ) { v34 = (_QWORD *)(v19 - 24); goto LABEL_12; } } return 0LL; }
js_dynamic_import_job: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R14,RDX MOV RBX,RDI MOV RCX,qword ptr [RDX + 0x28] CMP ECX,-0x7 JNZ 0x00145785 MOV RDX,qword ptr [R14 + 0x20] MOV R12,qword ptr [R14 + 0x30] MOV R13,qword ptr [R14 + 0x38] XOR EBP,EBP MOV RDI,RBX XOR ESI,ESI XOR R8D,R8D CALL 0x00124c53 TEST RAX,RAX JZ 0x00145798 MOV R15,RAX MOV RDI,RBX XOR ESI,ESI MOV RDX,R12 MOV RCX,R13 XOR R8D,R8D CALL 0x00124c53 TEST RAX,RAX JZ 0x0014585f MOV R12,RAX MOV RDI,RBX MOV RSI,R15 MOV RDX,RAX MOV RCX,R14 CALL 0x00135030 MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [R12 + -0x18] LEA ECX,[RAX + -0x1] MOV dword ptr [R12 + -0x18],ECX CMP EAX,0x1 JG 0x00145764 ADD R12,-0x18 MOV RSI,R12 MOV RDX,-0x7 CALL 0x001252c2 LAB_00145764: MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [R15 + -0x18] LEA ECX,[RAX + -0x1] MOV dword ptr [R15 + -0x18],ECX CMP EAX,0x2 JGE 0x00145849 ADD R15,-0x18 JMP 0x0014583a LAB_00145785: LEA RSI,[0x1a36ee] XOR EBP,EBP MOV RDI,RBX XOR EAX,EAX CALL 0x001265c3 LAB_00145798: MOV RAX,qword ptr [RBX + 0x18] MOVUPS XMM0,xmmword ptr [RAX + 0xf0] XOR ECX,ECX MOV dword ptr [RAX + 0xf0],ECX MOV qword ptr [RAX + 0xf8],0x4 LEA R15,[RSP + 0x30] MOVAPS xmmword ptr [R15],XMM0 MOV RSI,qword ptr [R14 + 0x10] MOV RDX,qword ptr [R14 + 0x18] MOV dword ptr [RSP + 0x20],ECX MOV qword ptr [RSP + 0x28],0x3 MOVUPS XMM0,xmmword ptr [RSP + 0x20] MOVUPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],R15 MOV dword ptr [RSP + 0x18],0x2 MOV R8D,0x3 MOV RDI,RBX XOR ECX,ECX MOV R9D,0x1 CALL 0x0012c526 MOV RDI,qword ptr [RBX + 0x18] MOV RSI,RAX CALL 0x00121922 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,qword ptr [RBX + 0x18] CALL 0x00121922 TEST RBP,RBP JZ 0x00145849 MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [RBP + -0x18] LEA ECX,[RAX + -0x1] MOV dword ptr [RBP + -0x18],ECX CMP EAX,0x1 JG 0x00145849 ADD RBP,-0x18 MOV R15,RBP LAB_0014583a: MOV RSI,R15 MOV RDX,-0x7 CALL 0x001252c2 LAB_00145849: MOV EDX,0x3 XOR EAX,EAX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014585f: MOV RBP,R15 JMP 0x00145798
int1 [16] js_dynamic_import_job(long param_1,int8 param_2,long param_3) { int iVar1; int8 uVar2; long lVar3; long lVar4; int8 uVar5; long lVar6; int8 local_48; int8 uStack_40; if ((int)*(int8 *)(param_3 + 0x28) == -7) { uVar5 = *(int8 *)(param_3 + 0x30); uVar2 = *(int8 *)(param_3 + 0x38); lVar3 = JS_ToCStringLen2(param_1,0,*(int8 *)(param_3 + 0x20), *(int8 *)(param_3 + 0x28),0); lVar6 = 0; if ((lVar3 == 0) || (lVar4 = JS_ToCStringLen2(param_1,0,uVar5,uVar2,0), lVar6 = lVar3, lVar4 == 0)) goto LAB_00145798; JS_LoadModuleInternal(param_1,lVar3,lVar4,param_3); uVar5 = *(int8 *)(param_1 + 0x18); iVar1 = *(int *)(lVar4 + -0x18); *(int *)(lVar4 + -0x18) = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar5,lVar4 + -0x18,0xfffffffffffffff9); } uVar5 = *(int8 *)(param_1 + 0x18); iVar1 = *(int *)(lVar3 + -0x18); *(int *)(lVar3 + -0x18) = iVar1 + -1; } else { JS_ThrowTypeError(param_1,"no function filename for import()"); lVar6 = 0; LAB_00145798: lVar3 = *(long *)(param_1 + 0x18); local_48 = *(int8 *)(lVar3 + 0xf0); uStack_40 = *(int8 *)(lVar3 + 0xf8); *(int4 *)(lVar3 + 0xf0) = 0; *(int8 *)(lVar3 + 0xf8) = 4; uVar5 = JS_CallInternal(param_1,*(int8 *)(param_3 + 0x10),*(int8 *)(param_3 + 0x18), 0,3,1,0,3,&local_48,2); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar5); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_48,uStack_40); if (lVar6 == 0) goto LAB_00145849; uVar5 = *(int8 *)(param_1 + 0x18); iVar1 = *(int *)(lVar6 + -0x18); *(int *)(lVar6 + -0x18) = iVar1 + -1; lVar3 = lVar6; } if (iVar1 < 2) { js_free_value_rt(uVar5,lVar3 + -0x18,0xfffffffffffffff9); } LAB_00145849: return ZEXT816(3) << 0x40; }
3,164
js_array_buffer_isView
bluesky950520[P]quickjs/quickjs.c
static JSValue js_array_buffer_isView(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSObject *p; BOOL res; res = FALSE; if (JS_VALUE_GET_TAG(argv[0]) == JS_TAG_OBJECT) { p = JS_VALUE_GET_OBJ(argv[0]); if (p->class_id >= JS_CLASS_UINT8C_ARRAY && p->class_id <= JS_CLASS_DATAVIEW) { res = TRUE; } } return js_bool(res); }
O1
c
js_array_buffer_isView: cmpl $-0x1, 0x8(%r8) jne 0x80411 movq (%r8), %rax movzwl 0x6(%rax), %ecx addl $-0x15, %ecx xorl %eax, %eax cmpw $0xd, %cx setb %al jmp 0x80413 xorl %eax, %eax movl $0x1, %edx retq
js_array_buffer_isView: cmp dword ptr [r8+8], 0FFFFFFFFh jnz short loc_80411 mov rax, [r8] movzx ecx, word ptr [rax+6] add ecx, 0FFFFFFEBh xor eax, eax cmp cx, 0Dh setb al jmp short loc_80413 loc_80411: xor eax, eax loc_80413: mov edx, 1 retn
_BOOL8 js_array_buffer_isView(long long a1, long long a2, long long a3, long long a4, _DWORD *a5) { return a5[2] == -1 && (unsigned __int16)(*(_WORD *)(*(_QWORD *)a5 + 6LL) - 21) < 0xDu; }
js_array_buffer_isView: CMP dword ptr [R8 + 0x8],-0x1 JNZ 0x00180411 MOV RAX,qword ptr [R8] MOVZX ECX,word ptr [RAX + 0x6] ADD ECX,-0x15 XOR EAX,EAX CMP CX,0xd SETC AL JMP 0x00180413 LAB_00180411: XOR EAX,EAX LAB_00180413: MOV EDX,0x1 RET
bool js_array_buffer_isView(void) { long *in_R8; bool bVar1; if ((int)in_R8[1] == -1) { bVar1 = (ushort)(*(short *)(*in_R8 + 6) - 0x15U) < 0xd; } else { bVar1 = false; } return bVar1; }
3,165
JS_GetPrototype
bluesky950520[P]quickjs/quickjs.c
JSValue JS_GetPrototype(JSContext *ctx, JSValue obj) { JSValue val; if (JS_VALUE_GET_TAG(obj) == JS_TAG_OBJECT) { JSObject *p; p = JS_VALUE_GET_OBJ(obj); if (unlikely(p->class_id == JS_CLASS_PROXY)) { val = js_proxy_getPrototypeOf(ctx, obj); } else { p = p->shape->proto; if (!p) val = JS_NULL; else val = js_dup(JS_MKPTR(JS_TAG_OBJECT, p)); } } else { val = js_dup(JS_GetPrototypePrimitive(ctx, obj)); } return val; }
O1
c
JS_GetPrototype: subq $0x18, %rsp movq %rsi, 0x8(%rsp) cmpl $-0x1, %edx jne 0x228de movq 0x8(%rsp), %rax cmpw $0x30, 0x6(%rax) je 0x22919 movq 0x18(%rax), %rax movq 0x38(%rax), %rax testq %rax, %rax je 0x22906 incl (%rax) movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movq $-0x1, %rdx jmp 0x2290f movq %rdx, %rsi callq 0x22a63 movq %rax, 0x10(%rsp) cmpl $-0x9, %edx jb 0x228f7 movq 0x10(%rsp), %rcx incl (%rcx) movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx jmp 0x2290f movl $0x2, %edx xorl %eax, %eax xorl %ecx, %ecx movl %eax, %eax orq %rcx, %rax addq $0x18, %rsp retq movq 0x8(%rsp), %rsi callq 0x22925 jmp 0x228f7
JS_GetPrototype: sub rsp, 18h mov [rsp+18h+var_10], rsi cmp edx, 0FFFFFFFFh jnz short loc_228DE mov rax, [rsp+18h+var_10] cmp word ptr [rax+6], 30h ; '0' jz short loc_22919 mov rax, [rax+18h] mov rax, [rax+38h] test rax, rax jz short loc_22906 inc dword ptr [rax] mov rcx, 0FFFFFFFF00000000h and rcx, rax mov rdx, 0FFFFFFFFFFFFFFFFh jmp short loc_2290F loc_228DE: mov rsi, rdx call JS_GetPrototypePrimitive mov [rsp+18h+var_8], rax cmp edx, 0FFFFFFF7h jb short loc_228F7 mov rcx, [rsp+18h+var_8] inc dword ptr [rcx] loc_228F7: mov rcx, 0FFFFFFFF00000000h and rcx, rax jmp short loc_2290F loc_22906: mov edx, 2 xor eax, eax xor ecx, ecx loc_2290F: mov eax, eax or rax, rcx add rsp, 18h retn loc_22919: mov rsi, [rsp+18h+var_10] call js_proxy_getPrototypeOf jmp short loc_228F7
unsigned long long JS_GetPrototype(long long a1, long long a2, long long a3) { long long PrototypePrimitive; // rax unsigned long long v4; // rcx unsigned int v5; // edx if ( (_DWORD)a3 != -1 ) { PrototypePrimitive = JS_GetPrototypePrimitive(a1, a3); if ( v5 >= 0xFFFFFFF7 ) ++*(_DWORD *)PrototypePrimitive; goto LABEL_7; } if ( *(_WORD *)(a2 + 6) == 48 ) { PrototypePrimitive = js_proxy_getPrototypeOf(a1, a2); LABEL_7: v4 = PrototypePrimitive & 0xFFFFFFFF00000000LL; return v4 | (unsigned int)PrototypePrimitive; } PrototypePrimitive = *(_QWORD *)(*(_QWORD *)(a2 + 24) + 56LL); if ( PrototypePrimitive ) { ++*(_DWORD *)PrototypePrimitive; v4 = PrototypePrimitive & 0xFFFFFFFF00000000LL; } else { LODWORD(PrototypePrimitive) = 0; v4 = 0LL; } return v4 | (unsigned int)PrototypePrimitive; }
JS_GetPrototype: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RSI CMP EDX,-0x1 JNZ 0x001228de MOV RAX,qword ptr [RSP + 0x8] CMP word ptr [RAX + 0x6],0x30 JZ 0x00122919 MOV RAX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RAX + 0x38] TEST RAX,RAX JZ 0x00122906 INC dword ptr [RAX] MOV RCX,-0x100000000 AND RCX,RAX MOV RDX,-0x1 JMP 0x0012290f LAB_001228de: MOV RSI,RDX CALL 0x00122a63 MOV qword ptr [RSP + 0x10],RAX CMP EDX,-0x9 JC 0x001228f7 MOV RCX,qword ptr [RSP + 0x10] INC dword ptr [RCX] LAB_001228f7: MOV RCX,-0x100000000 AND RCX,RAX JMP 0x0012290f LAB_00122906: MOV EDX,0x2 XOR EAX,EAX XOR ECX,ECX LAB_0012290f: MOV EAX,EAX OR RAX,RCX ADD RSP,0x18 RET LAB_00122919: MOV RSI,qword ptr [RSP + 0x8] CALL 0x00122925 JMP 0x001228f7
ulong JS_GetPrototype(int8 param_1,long param_2,int8 param_3) { int *piVar1; ulong uVar2; int1 auVar3 [12]; if ((int)param_3 == -1) { if (*(short *)(param_2 + 6) != 0x30) { piVar1 = *(int **)(*(long *)(param_2 + 0x18) + 0x38); if (piVar1 == (int *)0x0) { piVar1 = (int *)0x0; uVar2 = 0; } else { *piVar1 = *piVar1 + 1; uVar2 = (ulong)piVar1 & 0xffffffff00000000; } goto LAB_0012290f; } piVar1 = (int *)js_proxy_getPrototypeOf(param_1,param_2); } else { auVar3 = JS_GetPrototypePrimitive(param_1,param_3); piVar1 = auVar3._0_8_; if (0xfffffff6 < auVar3._8_4_) { *piVar1 = *piVar1 + 1; } } uVar2 = (ulong)piVar1 & 0xffffffff00000000; LAB_0012290f: return (ulong)piVar1 & 0xffffffff | uVar2; }
3,166
stbi__hdr_test_core
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h
static int stbi__hdr_test_core(stbi__context *s, const char *signature) { int i; for (i=0; signature[i]; ++i) if (stbi__get8(s) != signature[i]) return 0; stbi__rewind(s); return 1; }
O0
c
stbi__hdr_test_core: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl $0x0, -0x1c(%rbp) movq -0x18(%rbp), %rax movslq -0x1c(%rbp), %rcx cmpb $0x0, (%rax,%rcx) je 0x2b4f7 movq -0x10(%rbp), %rdi callq 0x19410 movzbl %al, %eax movq -0x18(%rbp), %rcx movslq -0x1c(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je 0x2b4ea movl $0x0, -0x4(%rbp) jmp 0x2b507 jmp 0x2b4ec movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) jmp 0x2b4b7 movq -0x10(%rbp), %rdi callq 0x193d0 movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq
stbi__hdr_test_core: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], 0 loc_2B4B7: mov rax, [rbp+var_18] movsxd rcx, [rbp+var_1C] cmp byte ptr [rax+rcx], 0 jz short loc_2B4F7 mov rdi, [rbp+var_10] call stbi__get8 movzx eax, al mov rcx, [rbp+var_18] movsxd rdx, [rbp+var_1C] movsx ecx, byte ptr [rcx+rdx] cmp eax, ecx jz short loc_2B4EA mov [rbp+var_4], 0 jmp short loc_2B507 loc_2B4EA: jmp short $+2 loc_2B4EC: mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_1C], eax jmp short loc_2B4B7 loc_2B4F7: mov rdi, [rbp+var_10] call stbi__rewind mov [rbp+var_4], 1 loc_2B507: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long stbi__hdr_test_core(_QWORD *a1, long long a2) { int i; // [rsp+4h] [rbp-1Ch] for ( i = 0; *(_BYTE *)(a2 + i); ++i ) { if ( (unsigned __int8)stbi__get8((long long)a1) != *(char *)(a2 + i) ) return 0; } stbi__rewind(a1); return 1; }
stbi__hdr_test_core: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],0x0 LAB_0012b4b7: MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,dword ptr [RBP + -0x1c] CMP byte ptr [RAX + RCX*0x1],0x0 JZ 0x0012b4f7 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00119410 MOVZX EAX,AL MOV RCX,qword ptr [RBP + -0x18] MOVSXD RDX,dword ptr [RBP + -0x1c] MOVSX ECX,byte ptr [RCX + RDX*0x1] CMP EAX,ECX JZ 0x0012b4ea MOV dword ptr [RBP + -0x4],0x0 JMP 0x0012b507 LAB_0012b4ea: JMP 0x0012b4ec LAB_0012b4ec: MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX JMP 0x0012b4b7 LAB_0012b4f7: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001193d0 MOV dword ptr [RBP + -0x4],0x1 LAB_0012b507: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 stbi__hdr_test_core(int8 param_1,long param_2) { byte bVar1; int local_24; local_24 = 0; while( true ) { if (*(char *)(param_2 + local_24) == '\0') { stbi__rewind(param_1); return 1; } bVar1 = stbi__get8(param_1); if ((uint)bVar1 != (int)*(char *)(param_2 + local_24)) break; local_24 = local_24 + 1; } return 0; }
3,167
mysql_list_fields_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_list_fields_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_list_fields, (parms->mysql, parms->table, parms->wild), parms->mysql, MYSQL_RES *, r_ptr) }
O0
c
mysql_list_fields_start_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi movq -0x10(%rbp), %rax movq 0x10(%rax), %rdx callq 0x21500 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mysql_list_fields_start_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rdi, [rax] mov rax, [rbp+var_10] mov rsi, [rax+8] mov rax, [rbp+var_10] mov rdx, [rax+10h] call mysql_list_fields mov [rbp+var_18], rax mov rcx, [rbp+var_18] mov rax, [rbp+var_20] mov [rax+8], rcx mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
long long mysql_list_fields_start_internal(long long a1) { long long result; // rax long long v2; // [rsp+0h] [rbp-20h] v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL); *(_QWORD *)(v2 + 8) = mysql_list_fields(*(_QWORD *)a1, *(const char **)(a1 + 8), *(const char **)(a1 + 16)); result = v2; *(_DWORD *)v2 = 0; return result; }
mysql_list_fields_start_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x10] CALL 0x00121500 MOV qword ptr [RBP + -0x18],RAX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_list_fields_start_internal(long *param_1) { int4 *puVar1; int8 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_list_fields(*param_1,param_1[1],param_1[2]); *(int8 *)(puVar1 + 2) = uVar2; *puVar1 = 0; return; }
3,168
my_strntoll_mb2_or_mb4
eloqsql/strings/ctype-ucs2.c
static longlong my_strntoll_mb2_or_mb4(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative=0; int overflow; int cnv; my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; register ulonglong cutoff; register unsigned int cutlim; register ulonglong res; register const uchar *s= (const uchar*) nptr; register const uchar *e= (const uchar*) nptr+l; const uchar *save; *err= 0; do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { switch (wc) { case ' ' : break; case '\t': break; case '-' : negative= !negative; break; case '+' : break; default : goto bs; } } else /* No more characters or bad multibyte sequence */ { if (endptr !=NULL ) *endptr = (char*)s; err[0] = (cnv==MY_CS_ILSEQ) ? EILSEQ : EDOM; return 0; } s+=cnv; } while (1); bs: overflow = 0; res = 0; save = s; cutoff = (~(ulonglong) 0) / (unsigned long int) base; cutlim = (uint) ((~(ulonglong) 0) % (unsigned long int) base); do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { s+=cnv; if ( wc>='0' && wc<='9') wc -= '0'; else if ( wc>='A' && wc<='Z') wc = wc - 'A' + 10; else if ( wc>='a' && wc<='z') wc = wc - 'a' + 10; else break; if ((int)wc >= base) break; if (res > cutoff || (res == cutoff && wc > cutlim)) overflow = 1; else { res *= (ulonglong) base; res += wc; } } else if (cnv==MY_CS_ILSEQ) { if (endptr !=NULL ) *endptr = (char*)s; err[0]=EILSEQ; return 0; } else { /* No more characters */ break; } } while(1); if (endptr != NULL) *endptr = (char *) s; if (s == save) { err[0]=EDOM; return 0L; } if (negative) { if (res > (ulonglong) LONGLONG_MIN) overflow = 1; } else if (res > (ulonglong) LONGLONG_MAX) overflow = 1; if (overflow) { err[0]=ERANGE; return negative ? LONGLONG_MIN : LONGLONG_MAX; } return (negative ? -((longlong)res) : (longlong)res); }
O3
c
my_strntoll_mb2_or_mb4: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r8, -0x40(%rbp) movl %ecx, -0x44(%rbp) movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %r14 movq 0xb8(%rdi), %rax movq 0x28(%rax), %r12 addq %rsi, %r13 movq %r9, -0x50(%rbp) movl $0x0, (%r9) leaq -0x30(%rbp), %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0x4e50a movl $0x0, -0x34(%rbp) leaq -0x30(%rbp), %rbx movq -0x30(%rbp), %rcx cmpq $0x2a, %rcx jg 0x4e4da cmpq $0x9, %rcx je 0x4e4f2 cmpq $0x20, %rcx je 0x4e4f2 jmp 0x4e53c cmpq $0x2b, %rcx je 0x4e4f2 cmpq $0x2d, %rcx jne 0x4e53c xorl %ecx, %ecx cmpl $0x0, -0x34(%rbp) sete %cl movl %ecx, -0x34(%rbp) movl %eax, %eax addq %rax, %r15 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jg 0x4e4c2 movq -0x40(%rbp), %rcx testq %rcx, %rcx je 0x4e516 movq %r15, (%rcx) testl %eax, %eax movl $0x54, %eax movl $0x21, %ecx cmovel %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, (%rax) xorl %eax, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movslq -0x44(%rbp), %rcx movq $-0x1, %rax xorl %edx, %edx movq %rcx, -0x60(%rbp) divq %rcx movq %rdx, %rbx movq %rax, -0x58(%rbp) leaq -0x30(%rbp), %rsi movq %r14, %rdi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0x4e61d movl %ebx, %ecx movq %rcx, -0x68(%rbp) xorl %ecx, %ecx movq %r15, %rbx xorl %r9d, %r9d movq %rbx, %rsi movl %eax, %ebx addq %rsi, %rbx movq -0x30(%rbp), %rsi leaq -0x30(%rsi), %rax cmpq $0x9, %rax ja 0x4e599 movq %rax, -0x30(%rbp) jmp 0x4e5be leaq -0x41(%rsi), %rax cmpq $0x19, %rax ja 0x4e5a9 addq $-0x37, %rsi jmp 0x4e5b7 leaq -0x61(%rsi), %rax cmpq $0x19, %rax ja 0x4e62e addq $-0x57, %rsi movq %rsi, -0x30(%rbp) movq %rsi, %rax cmpl -0x44(%rbp), %eax jge 0x4e62e movl $0x1, %esi cmpq -0x58(%rbp), %rcx jbe 0x4e5d3 movq %rcx, %rdi jmp 0x4e5ed jne 0x4e5df movq -0x58(%rbp), %rdi cmpq -0x68(%rbp), %rax ja 0x4e5ed imulq -0x60(%rbp), %rcx addq %rcx, %rax movl %r9d, %esi movq %rax, %rdi movq %rdi, -0x70(%rbp) movq %rsi, -0x78(%rbp) movq %r14, %rdi leaq -0x30(%rbp), %rsi movq %rbx, %rdx movq %r13, %rcx callq *%r12 movq -0x70(%rbp), %rdi movq -0x78(%rbp), %rsi movq %rdi, %rcx movl %esi, %r9d testl %eax, %eax jg 0x4e57d jmp 0x4e624 xorl %edi, %edi movq %r15, %rbx xorl %esi, %esi testl %eax, %eax je 0x4e697 movl %esi, %r9d movq %rdi, %rcx movq -0x40(%rbp), %rax testq %rax, %rax je 0x4e63a movq %rbx, (%rax) cmpq %r15, %rbx je 0x4e688 movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000 cmpq %rsi, %rcx movl $0x1, %eax movl %r9d, %edi cmoval %eax, %edi testq %rcx, %rcx cmovsl %eax, %r9d movl -0x34(%rbp), %r8d testl %r8d, %r8d cmovnel %edi, %r9d testl %r9d, %r9d je 0x4e6b2 leaq -0x1(%rsi), %rax testl %r8d, %r8d movq -0x50(%rbp), %rcx movl $0x22, (%rcx) cmovneq %rsi, %rax jmp 0x4e52d movq -0x50(%rbp), %rax movl $0x21, (%rax) jmp 0x4e52b movq -0x40(%rbp), %rax testq %rax, %rax je 0x4e6a3 movq %rbx, (%rax) movq -0x50(%rbp), %rax movl $0x54, (%rax) jmp 0x4e52b movq %rcx, %rax negq %rax testl %r8d, %r8d cmoveq %rcx, %rax jmp 0x4e52d
my_strntoll_mb2_or_mb4: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov [rbp+var_40], r8 mov [rbp+var_44], ecx mov r13, rdx mov r15, rsi mov r14, rdi mov rax, [rdi+0B8h] mov r12, [rax+28h] add r13, rsi mov [rbp+var_50], r9 mov dword ptr [r9], 0 lea rsi, [rbp+var_30] mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle short loc_4E50A mov [rbp+var_34], 0 lea rbx, [rbp+var_30] loc_4E4C2: mov rcx, [rbp+var_30] cmp rcx, 2Ah ; '*' jg short loc_4E4DA cmp rcx, 9 jz short loc_4E4F2 cmp rcx, 20h ; ' ' jz short loc_4E4F2 jmp short loc_4E53C loc_4E4DA: cmp rcx, 2Bh ; '+' jz short loc_4E4F2 cmp rcx, 2Dh ; '-' jnz short loc_4E53C xor ecx, ecx cmp [rbp+var_34], 0 setz cl mov [rbp+var_34], ecx loc_4E4F2: mov eax, eax add r15, rax mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r13 call r12 test eax, eax jg short loc_4E4C2 loc_4E50A: mov rcx, [rbp+var_40] test rcx, rcx jz short loc_4E516 mov [rcx], r15 loc_4E516: test eax, eax mov eax, 54h ; 'T' mov ecx, 21h ; '!' cmovz ecx, eax mov rax, [rbp+var_50] mov [rax], ecx loc_4E52B: xor eax, eax loc_4E52D: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4E53C: movsxd rcx, [rbp+var_44] mov rax, 0FFFFFFFFFFFFFFFFh xor edx, edx mov [rbp+var_60], rcx div rcx mov rbx, rdx mov [rbp+var_58], rax lea rsi, [rbp+var_30] mov rdi, r14 mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle loc_4E61D mov ecx, ebx mov [rbp+var_68], rcx xor ecx, ecx mov rbx, r15 xor r9d, r9d loc_4E57D: mov rsi, rbx mov ebx, eax add rbx, rsi mov rsi, [rbp+var_30] lea rax, [rsi-30h] cmp rax, 9 ja short loc_4E599 mov [rbp+var_30], rax jmp short loc_4E5BE loc_4E599: lea rax, [rsi-41h] cmp rax, 19h ja short loc_4E5A9 add rsi, 0FFFFFFFFFFFFFFC9h jmp short loc_4E5B7 loc_4E5A9: lea rax, [rsi-61h] cmp rax, 19h ja short loc_4E62E add rsi, 0FFFFFFFFFFFFFFA9h loc_4E5B7: mov [rbp+var_30], rsi mov rax, rsi loc_4E5BE: cmp eax, [rbp+var_44] jge short loc_4E62E mov esi, 1 cmp rcx, [rbp+var_58] jbe short loc_4E5D3 mov rdi, rcx jmp short loc_4E5ED loc_4E5D3: jnz short loc_4E5DF mov rdi, [rbp+var_58] cmp rax, [rbp+var_68] ja short loc_4E5ED loc_4E5DF: imul rcx, [rbp+var_60] add rax, rcx mov esi, r9d mov rdi, rax loc_4E5ED: mov [rbp+var_70], rdi mov [rbp+var_78], rsi mov rdi, r14 lea rsi, [rbp+var_30] mov rdx, rbx mov rcx, r13 call r12 mov rdi, [rbp+var_70] mov rsi, [rbp+var_78] mov rcx, rdi mov r9d, esi test eax, eax jg loc_4E57D jmp short loc_4E624 loc_4E61D: xor edi, edi mov rbx, r15 xor esi, esi loc_4E624: test eax, eax jz short loc_4E697 mov r9d, esi mov rcx, rdi loc_4E62E: mov rax, [rbp+var_40] test rax, rax jz short loc_4E63A mov [rax], rbx loc_4E63A: cmp rbx, r15 jz short loc_4E688 mov rsi, 8000000000000000h cmp rcx, rsi mov eax, 1 mov edi, r9d cmova edi, eax test rcx, rcx cmovs r9d, eax mov r8d, [rbp+var_34] test r8d, r8d cmovnz r9d, edi test r9d, r9d jz short loc_4E6B2 lea rax, [rsi-1] test r8d, r8d mov rcx, [rbp+var_50] mov dword ptr [rcx], 22h ; '"' cmovnz rax, rsi jmp loc_4E52D loc_4E688: mov rax, [rbp+var_50] mov dword ptr [rax], 21h ; '!' jmp loc_4E52B loc_4E697: mov rax, [rbp+var_40] test rax, rax jz short loc_4E6A3 mov [rax], rbx loc_4E6A3: mov rax, [rbp+var_50] mov dword ptr [rax], 54h ; 'T' jmp loc_4E52B loc_4E6B2: mov rax, rcx neg rax test r8d, r8d cmovz rax, rcx jmp loc_4E52D
unsigned long long my_strntoll_mb2_or_mb4(long long a1, long long a2, long long a3, int a4, _QWORD *a5, int *a6) { long long v6; // r15 long long ( *v8)(long long, _QWORD *, long long, long long); // r12 long long v9; // r13 int v10; // eax int v11; // ecx unsigned long long result; // rax int v13; // eax long long v14; // r8 long long v15; // rcx long long v16; // rbx long long v17; // r9 unsigned long long v18; // rax long long v19; // rsi unsigned int v20; // esi unsigned long long v21; // rdi int v22; // edi unsigned long long v23; // [rsp+28h] [rbp-58h] BOOL v27; // [rsp+4Ch] [rbp-34h] _QWORD v28[6]; // [rsp+50h] [rbp-30h] BYREF v6 = a2; v8 = *(long long ( **)(long long, _QWORD *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); v9 = a2 + a3; *a6 = 0; v10 = v8(a1, v28, a2, a2 + a3); if ( v10 <= 0 ) { LABEL_11: if ( a5 ) *a5 = v6; v11 = 33; if ( !v10 ) v11 = 84; *a6 = v11; return 0LL; } v27 = 0; while ( v28[0] > 42LL ) { if ( v28[0] != 43LL ) { if ( v28[0] != 45LL ) goto LABEL_17; v27 = !v27; } LABEL_10: v6 += (unsigned int)v10; v10 = v8(a1, v28, v6, v9); if ( v10 <= 0 ) goto LABEL_11; } if ( v28[0] == 9LL || v28[0] == 32LL ) goto LABEL_10; LABEL_17: v23 = 0xFFFFFFFFFFFFFFFFLL / a4; v13 = v8(a1, v28, v6, v9); if ( v13 <= 0 ) { v21 = 0LL; v16 = v6; v20 = 0; LABEL_35: if ( v13 ) { LODWORD(v17) = v20; v15 = v21; goto LABEL_37; } if ( a5 ) *a5 = v16; *a6 = 84; return 0LL; } v15 = 0LL; v16 = v6; v17 = 0LL; while ( 1 ) { v16 += (unsigned int)v13; v18 = v28[0] - 48LL; if ( (unsigned long long)(v28[0] - 48LL) > 9 ) { if ( (unsigned long long)(v28[0] - 65LL) > 0x19 ) { if ( (unsigned long long)(v28[0] - 97LL) > 0x19 ) break; v19 = v28[0] - 87LL; } else { v19 = v28[0] - 55LL; } v28[0] = v19; v18 = v19; } else { v28[0] -= 48LL; } if ( (int)v18 >= a4 ) break; v20 = 1; if ( v15 <= v23 ) { if ( v15 != v23 || (v21 = 0xFFFFFFFFFFFFFFFFLL / a4, v18 <= (unsigned int)(0xFFFFFFFFFFFFFFFFLL % a4)) ) { v20 = v17; v21 = a4 * v15 + v18; } } else { v21 = v15; } v13 = ((long long ( *)(long long, _QWORD *, long long, long long, long long, long long))v8)( a1, v28, v16, v9, v14, v17); v15 = v21; v17 = v20; if ( v13 <= 0 ) goto LABEL_35; } LABEL_37: if ( a5 ) *a5 = v16; if ( v16 == v6 ) { *a6 = 33; return 0LL; } v22 = v17; if ( (unsigned long long)v15 > 0x8000000000000000LL ) v22 = 1; if ( v15 < 0 ) LODWORD(v17) = 1; if ( v27 ) LODWORD(v17) = v22; if ( (_DWORD)v17 ) { result = 0x7FFFFFFFFFFFFFFFLL; *a6 = 34; if ( v27 ) return 0x8000000000000000LL; } else { result = -v15; if ( !v27 ) return v15; } return result; }
my_strntoll_mb2_or_mb4: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV qword ptr [RBP + -0x40],R8 MOV dword ptr [RBP + -0x44],ECX MOV R13,RDX MOV R15,RSI MOV R14,RDI MOV RAX,qword ptr [RDI + 0xb8] MOV R12,qword ptr [RAX + 0x28] ADD R13,RSI MOV qword ptr [RBP + -0x50],R9 MOV dword ptr [R9],0x0 LEA RSI,[RBP + -0x30] MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x0014e50a MOV dword ptr [RBP + -0x34],0x0 LEA RBX,[RBP + -0x30] LAB_0014e4c2: MOV RCX,qword ptr [RBP + -0x30] CMP RCX,0x2a JG 0x0014e4da CMP RCX,0x9 JZ 0x0014e4f2 CMP RCX,0x20 JZ 0x0014e4f2 JMP 0x0014e53c LAB_0014e4da: CMP RCX,0x2b JZ 0x0014e4f2 CMP RCX,0x2d JNZ 0x0014e53c XOR ECX,ECX CMP dword ptr [RBP + -0x34],0x0 SETZ CL MOV dword ptr [RBP + -0x34],ECX LAB_0014e4f2: MOV EAX,EAX ADD R15,RAX MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JG 0x0014e4c2 LAB_0014e50a: MOV RCX,qword ptr [RBP + -0x40] TEST RCX,RCX JZ 0x0014e516 MOV qword ptr [RCX],R15 LAB_0014e516: TEST EAX,EAX MOV EAX,0x54 MOV ECX,0x21 CMOVZ ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],ECX LAB_0014e52b: XOR EAX,EAX LAB_0014e52d: ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014e53c: MOVSXD RCX,dword ptr [RBP + -0x44] MOV RAX,-0x1 XOR EDX,EDX MOV qword ptr [RBP + -0x60],RCX DIV RCX MOV RBX,RDX MOV qword ptr [RBP + -0x58],RAX LEA RSI,[RBP + -0x30] MOV RDI,R14 MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x0014e61d MOV ECX,EBX MOV qword ptr [RBP + -0x68],RCX XOR ECX,ECX MOV RBX,R15 XOR R9D,R9D LAB_0014e57d: MOV RSI,RBX MOV EBX,EAX ADD RBX,RSI MOV RSI,qword ptr [RBP + -0x30] LEA RAX,[RSI + -0x30] CMP RAX,0x9 JA 0x0014e599 MOV qword ptr [RBP + -0x30],RAX JMP 0x0014e5be LAB_0014e599: LEA RAX,[RSI + -0x41] CMP RAX,0x19 JA 0x0014e5a9 ADD RSI,-0x37 JMP 0x0014e5b7 LAB_0014e5a9: LEA RAX,[RSI + -0x61] CMP RAX,0x19 JA 0x0014e62e ADD RSI,-0x57 LAB_0014e5b7: MOV qword ptr [RBP + -0x30],RSI MOV RAX,RSI LAB_0014e5be: CMP EAX,dword ptr [RBP + -0x44] JGE 0x0014e62e MOV ESI,0x1 CMP RCX,qword ptr [RBP + -0x58] JBE 0x0014e5d3 MOV RDI,RCX JMP 0x0014e5ed LAB_0014e5d3: JNZ 0x0014e5df MOV RDI,qword ptr [RBP + -0x58] CMP RAX,qword ptr [RBP + -0x68] JA 0x0014e5ed LAB_0014e5df: IMUL RCX,qword ptr [RBP + -0x60] ADD RAX,RCX MOV ESI,R9D MOV RDI,RAX LAB_0014e5ed: MOV qword ptr [RBP + -0x70],RDI MOV qword ptr [RBP + -0x78],RSI MOV RDI,R14 LEA RSI,[RBP + -0x30] MOV RDX,RBX MOV RCX,R13 CALL R12 MOV RDI,qword ptr [RBP + -0x70] MOV RSI,qword ptr [RBP + -0x78] MOV RCX,RDI MOV R9D,ESI TEST EAX,EAX JG 0x0014e57d JMP 0x0014e624 LAB_0014e61d: XOR EDI,EDI MOV RBX,R15 XOR ESI,ESI LAB_0014e624: TEST EAX,EAX JZ 0x0014e697 MOV R9D,ESI MOV RCX,RDI LAB_0014e62e: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x0014e63a MOV qword ptr [RAX],RBX LAB_0014e63a: CMP RBX,R15 JZ 0x0014e688 MOV RSI,-0x8000000000000000 CMP RCX,RSI MOV EAX,0x1 MOV EDI,R9D CMOVA EDI,EAX TEST RCX,RCX CMOVS R9D,EAX MOV R8D,dword ptr [RBP + -0x34] TEST R8D,R8D CMOVNZ R9D,EDI TEST R9D,R9D JZ 0x0014e6b2 LEA RAX,[RSI + -0x1] TEST R8D,R8D MOV RCX,qword ptr [RBP + -0x50] MOV dword ptr [RCX],0x22 CMOVNZ RAX,RSI JMP 0x0014e52d LAB_0014e688: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x21 JMP 0x0014e52b LAB_0014e697: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x0014e6a3 MOV qword ptr [RAX],RBX LAB_0014e6a3: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x54 JMP 0x0014e52b LAB_0014e6b2: MOV RAX,RCX NEG RAX TEST R8D,R8D CMOVZ RAX,RCX JMP 0x0014e52d
ulong my_strntoll_mb2_or_mb4 (long param_1,long param_2,long param_3,int param_4,long *param_5, int4 *param_6) { code *pcVar1; int1 auVar2 [16]; int1 auVar3 [16]; bool bVar4; bool bVar5; bool bVar6; ulong uVar7; uint uVar8; ulong uVar9; int4 uVar10; ulong uVar11; long lVar12; ulong uVar13; ulong local_38; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); param_3 = param_3 + param_2; *param_6 = 0; uVar8 = (*pcVar1)(param_1,&local_38,param_2,param_3); if (0 < (int)uVar8) { bVar4 = false; do { if ((long)local_38 < 0x2b) { if ((local_38 != 9) && (local_38 != 0x20)) { LAB_0014e53c: auVar2._8_8_ = 0; auVar2._0_8_ = (long)param_4; auVar3 = ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff); uVar9 = SUB168(auVar3 / auVar2,0); uVar8 = (*pcVar1)(param_1,&local_38,param_2,param_3); lVar12 = param_2; if ((int)uVar8 < 1) { uVar11 = 0; bVar5 = false; goto LAB_0014e624; } uVar11 = 0; bVar5 = false; goto LAB_0014e57d; } } else if (local_38 != 0x2b) { if (local_38 != 0x2d) goto LAB_0014e53c; bVar4 = !bVar4; } param_2 = param_2 + (ulong)uVar8; uVar8 = (*pcVar1)(param_1,&local_38,param_2,param_3); } while (0 < (int)uVar8); } if (param_5 != (long *)0x0) { *param_5 = param_2; } uVar10 = 0x21; if (uVar8 == 0) { uVar10 = 0x54; } *param_6 = uVar10; return 0; while( true ) { if (param_4 <= (int)uVar13) goto LAB_0014e62e; uVar7 = uVar11; bVar6 = true; if ((uVar11 <= uVar9) && ((uVar11 != uVar9 || (uVar7 = uVar9, uVar13 <= (SUB168(auVar3 % auVar2,0) & 0xffffffff))))) { uVar7 = uVar13 + uVar11 * (long)param_4; bVar6 = bVar5; } bVar5 = bVar6; uVar11 = uVar7; local_38 = uVar13; uVar8 = (*pcVar1)(param_1,&local_38,lVar12,param_3); if ((int)uVar8 < 1) break; LAB_0014e57d: lVar12 = (ulong)uVar8 + lVar12; uVar13 = local_38 - 0x30; if (9 < uVar13) { if (local_38 - 0x41 < 0x1a) { uVar13 = local_38 - 0x37; } else { if (0x19 < local_38 - 0x61) goto LAB_0014e62e; uVar13 = local_38 - 0x57; } } } LAB_0014e624: if (uVar8 == 0) { if (param_5 != (long *)0x0) { *param_5 = lVar12; } *param_6 = 0x54; } else { LAB_0014e62e: if (param_5 != (long *)0x0) { *param_5 = lVar12; } if (lVar12 != param_2) { bVar6 = bVar5; if (0x8000000000000000 < uVar11) { bVar6 = true; } if ((long)uVar11 < 0) { bVar5 = true; } if (bVar4) { bVar5 = bVar6; } if (!bVar5) { if (!bVar4) { return uVar11; } return -uVar11; } *param_6 = 0x22; if (bVar4) { return 0x8000000000000000; } return 0x7fffffffffffffff; } *param_6 = 0x21; } return 0; }
3,169
Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
void Cache::loadBlockFromLowerLevel(uint32_t addr, uint32_t *cycles) { uint32_t blockSize = this->policy.blockSize; // Initialize new block from memory Block b; b.valid = true; b.modified = false; b.tag = this->getTag(addr); b.id = this->getId(addr); b.size = blockSize; b.data = std::vector<uint8_t>(b.size); uint32_t bits = this->log2i(blockSize); uint32_t mask = ~((1 << bits) - 1); uint32_t blockAddrBegin = addr & mask; for (uint32_t i = blockAddrBegin; i < blockAddrBegin + blockSize; ++i) { if (this->lowerCache == nullptr) { b.data[i - blockAddrBegin] = this->memory->getByteNoCache(i); if (cycles) *cycles = 100; } else b.data[i - blockAddrBegin] = this->lowerCache->getByte(i, cycles); } // Find replace block uint32_t id = this->getId(addr); uint32_t blockIdBegin = id * this->policy.associativity; uint32_t blockIdEnd = (id + 1) * this->policy.associativity; uint32_t replaceId = this->getReplacementBlockId(blockIdBegin, blockIdEnd); Block replaceBlock = this->blocks[replaceId]; if (this->writeBack && replaceBlock.valid && replaceBlock.modified) { // write back to memory this->writeBlockToLowerLevel(replaceBlock); this->statistics.totalCycles += this->policy.missLatency; } this->blocks[replaceId] = b; }
O0
cpp
Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*): subq $0x118, %rsp # imm = 0x118 movq %rdi, 0x110(%rsp) movl %esi, 0x10c(%rsp) movq %rdx, 0x100(%rsp) movq 0x110(%rsp), %rax movq %rax, 0x38(%rsp) movl 0x34(%rax), %eax movl %eax, 0xfc(%rsp) leaq 0xc8(%rsp), %rdi callq 0x27050 movq 0x38(%rsp), %rdi movb $0x1, 0xc8(%rsp) movb $0x0, 0xc9(%rsp) movl 0x10c(%rsp), %esi callq 0x25fc0 movl %eax, 0x44(%rsp) jmp 0x262d9 movq 0x38(%rsp), %rdi movl 0x44(%rsp), %eax movl %eax, 0xcc(%rsp) movl 0x10c(%rsp), %esi callq 0x26030 movl %eax, 0x34(%rsp) jmp 0x262fb movl 0x34(%rsp), %eax movl %eax, 0xd0(%rsp) movl 0xfc(%rsp), %eax movl %eax, 0xd4(%rsp) movl 0xd4(%rsp), %eax movq %rax, 0x20(%rsp) leaq 0x9f(%rsp), %rdi movq %rdi, 0x28(%rsp) callq 0x26f80 movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx leaq 0xa0(%rsp), %rdi callq 0x26f90 jmp 0x2634b leaq 0xe0(%rsp), %rdi leaq 0xa0(%rsp), %rsi movq %rsi, 0x10(%rsp) callq 0x27010 movq 0x10(%rsp), %rdi callq 0x1e3c0 leaq 0x9f(%rsp), %rdi callq 0x1e590 movq 0x38(%rsp), %rdi movl 0xfc(%rsp), %esi callq 0x26c70 movl %eax, 0x1c(%rsp) jmp 0x26393 movl 0x1c(%rsp), %eax movl %eax, 0x98(%rsp) movl 0x98(%rsp), %ecx movl $0x1, %eax shll %cl, %eax subl $0x1, %eax xorl $-0x1, %eax movl %eax, 0x94(%rsp) movl 0x10c(%rsp), %eax andl 0x94(%rsp), %eax movl %eax, 0x90(%rsp) movl 0x90(%rsp), %eax movl %eax, 0x8c(%rsp) movl 0x8c(%rsp), %eax movl 0x90(%rsp), %ecx addl 0xfc(%rsp), %ecx cmpl %ecx, %eax jae 0x2650d movq 0x38(%rsp), %rax cmpq $0x0, 0x28(%rax) jne 0x264a9 movq 0x38(%rsp), %rax movq 0x20(%rax), %rdi movl 0x8c(%rsp), %esi callq 0x1e9f0 movb %al, 0xf(%rsp) jmp 0x26424 leaq 0xc8(%rsp), %rdi addq $0x18, %rdi movl 0x8c(%rsp), %eax subl 0x90(%rsp), %eax movl %eax, %eax movl %eax, %esi callq 0x26e70 movb 0xf(%rsp), %cl movb %cl, (%rax) cmpq $0x0, 0x100(%rsp) je 0x264a7 movq 0x100(%rsp), %rax movl $0x64, (%rax) jmp 0x264a7 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0x26643 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) leaq 0x9f(%rsp), %rdi callq 0x1e590 jmp 0x26643 jmp 0x264f5 movq 0x38(%rsp), %rax movq 0x28(%rax), %rdi movl 0x8c(%rsp), %esi movq 0x100(%rsp), %rdx callq 0x26090 movb %al, 0xe(%rsp) jmp 0x264cc leaq 0xc8(%rsp), %rdi addq $0x18, %rdi movl 0x8c(%rsp), %eax subl 0x90(%rsp), %eax movl %eax, %eax movl %eax, %esi callq 0x26e70 movb 0xe(%rsp), %cl movb %cl, (%rax) jmp 0x264f7 movl 0x8c(%rsp), %eax addl $0x1, %eax movl %eax, 0x8c(%rsp) jmp 0x263dc movq 0x38(%rsp), %rdi movl 0x10c(%rsp), %esi callq 0x26030 movl %eax, 0x8(%rsp) jmp 0x26524 movq 0x38(%rsp), %rdi movl 0x8(%rsp), %eax movl %eax, 0x88(%rsp) movl 0x88(%rsp), %eax movl 0x3c(%rdi), %ecx imull %ecx, %eax movl %eax, 0x84(%rsp) movl 0x88(%rsp), %eax incl %eax movl 0x3c(%rdi), %ecx imull %ecx, %eax movl %eax, 0x80(%rsp) movl 0x84(%rsp), %esi movl 0x80(%rsp), %edx callq 0x26cd0 movl %eax, 0x4(%rsp) jmp 0x26577 movq 0x38(%rsp), %rdi movl 0x4(%rsp), %eax movl %eax, 0x7c(%rsp) addq $0x48, %rdi movl 0x7c(%rsp), %eax movl %eax, %esi callq 0x26e50 movq %rax, %rsi leaq 0x48(%rsp), %rdi callq 0x27070 jmp 0x265a2 movq 0x38(%rsp), %rax testb $0x1, 0x1c(%rax) je 0x265fe testb $0x1, 0x48(%rsp) je 0x265fe testb $0x1, 0x49(%rsp) je 0x265fe movq 0x38(%rsp), %rdi leaq 0x48(%rsp), %rsi callq 0x268d0 jmp 0x265cc movq 0x38(%rsp), %rax movl 0x44(%rax), %ecx addq 0x10(%rax), %rcx movq %rcx, 0x10(%rax) jmp 0x265fe movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) leaq 0x48(%rsp), %rdi callq 0x1e3a0 jmp 0x26643 movq 0x38(%rsp), %rdi addq $0x48, %rdi movl 0x7c(%rsp), %eax movl %eax, %esi callq 0x26e50 movq %rax, %rdi leaq 0xc8(%rsp), %rsi callq 0x27110 jmp 0x26624 leaq 0x48(%rsp), %rdi callq 0x1e3a0 leaq 0xc8(%rsp), %rdi callq 0x1e3a0 addq $0x118, %rsp # imm = 0x118 retq leaq 0xc8(%rsp), %rdi callq 0x1e3a0 movq 0xc0(%rsp), %rdi callq 0x153a0 nopl (%rax)
_ZN5Cache23loadBlockFromLowerLevelEjPj: sub rsp, 118h mov [rsp+118h+var_8], rdi mov [rsp+118h+var_C], esi mov [rsp+118h+var_18], rdx mov rax, [rsp+118h+var_8] mov [rsp+118h+var_E0], rax mov eax, [rax+34h] mov [rsp+118h+var_1C], eax lea rdi, [rsp+118h+var_50]; this call _ZN5Cache5BlockC2Ev; Cache::Block::Block(void) mov rdi, [rsp+118h+var_E0]; this mov [rsp+118h+var_50], 1 mov [rsp+118h+var_4F], 0 mov esi, [rsp+118h+var_C]; unsigned int call _ZN5Cache6getTagEj; Cache::getTag(uint) mov [rsp+118h+var_D4], eax jmp short $+2 loc_262D9: mov rdi, [rsp+118h+var_E0]; this mov eax, [rsp+118h+var_D4] mov [rsp+118h+var_4C], eax mov esi, [rsp+118h+var_C]; unsigned int call _ZN5Cache5getIdEj; Cache::getId(uint) mov [rsp+118h+var_E4], eax jmp short $+2 loc_262FB: mov eax, [rsp+118h+var_E4] mov [rsp+118h+var_48], eax mov eax, [rsp+118h+var_1C] mov [rsp+118h+var_44], eax mov eax, [rsp+118h+var_44] mov [rsp+118h+var_F8], rax lea rdi, [rsp+118h+var_79] mov [rsp+118h+var_F0], rdi call _ZNSaIhEC2Ev; std::allocator<uchar>::allocator(void) mov rsi, [rsp+118h+var_F8] mov rdx, [rsp+118h+var_F0] lea rdi, [rsp+118h+var_78] call _ZNSt6vectorIhSaIhEEC2EmRKS0_; std::vector<uchar>::vector(ulong,std::allocator<uchar> const&) jmp short $+2 loc_2634B: lea rdi, [rsp+118h+var_38] lea rsi, [rsp+118h+var_78] mov [rsp+118h+var_108], rsi call _ZNSt6vectorIhSaIhEEaSEOS1_; std::vector<uchar>::operator=(std::vector<uchar>&&) mov rdi, [rsp+118h+var_108] call _ZNSt6vectorIhSaIhEED2Ev; std::vector<uchar>::~vector() lea rdi, [rsp+118h+var_79] call _ZNSaIhED2Ev; std::allocator<uchar>::~allocator() mov rdi, [rsp+118h+var_E0]; this mov esi, [rsp+118h+var_1C]; unsigned int call _ZN5Cache5log2iEj; Cache::log2i(uint) mov [rsp+118h+var_FC], eax jmp short $+2 loc_26393: mov eax, [rsp+118h+var_FC] mov [rsp+118h+var_80], eax mov ecx, [rsp+118h+var_80] mov eax, 1 shl eax, cl sub eax, 1 xor eax, 0FFFFFFFFh mov [rsp+118h+var_84], eax mov eax, [rsp+118h+var_C] and eax, [rsp+118h+var_84] mov [rsp+118h+var_88], eax mov eax, [rsp+118h+var_88] mov [rsp+118h+var_8C], eax loc_263DC: mov eax, [rsp+118h+var_8C] mov ecx, [rsp+118h+var_88] add ecx, [rsp+118h+var_1C] cmp eax, ecx jnb loc_2650D mov rax, [rsp+118h+var_E0] cmp qword ptr [rax+28h], 0 jnz loc_264A9 mov rax, [rsp+118h+var_E0] mov rdi, [rax+20h]; this mov esi, [rsp+118h+var_8C]; unsigned int call _ZN13MemoryManager14getByteNoCacheEj; MemoryManager::getByteNoCache(uint) mov [rsp+118h+var_109], al jmp short $+2 loc_26424: lea rdi, [rsp+118h+var_50] add rdi, 18h mov eax, [rsp+118h+var_8C] sub eax, [rsp+118h+var_88] mov eax, eax mov esi, eax call _ZNSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong) mov cl, [rsp+118h+var_109] mov [rax], cl cmp [rsp+118h+var_18], 0 jz short loc_264A7 mov rax, [rsp+118h+var_18] mov dword ptr [rax], 64h ; 'd' jmp short loc_264A7 mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp loc_26643 mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax lea rdi, [rsp+arg_97] call _ZNSaIhED2Ev; std::allocator<uchar>::~allocator() jmp loc_26643 loc_264A7: jmp short loc_264F5 loc_264A9: mov rax, [rsp+118h+var_E0] mov rdi, [rax+28h]; this mov esi, [rsp+118h+var_8C]; unsigned int mov rdx, [rsp+118h+var_18]; unsigned int * call _ZN5Cache7getByteEjPj; Cache::getByte(uint,uint *) mov [rsp+118h+var_10A], al jmp short $+2 loc_264CC: lea rdi, [rsp+118h+var_50] add rdi, 18h mov eax, [rsp+118h+var_8C] sub eax, [rsp+118h+var_88] mov eax, eax mov esi, eax call _ZNSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong) mov cl, [rsp+118h+var_10A] mov [rax], cl loc_264F5: jmp short $+2 loc_264F7: mov eax, [rsp+118h+var_8C] add eax, 1 mov [rsp+118h+var_8C], eax jmp loc_263DC loc_2650D: mov rdi, [rsp+118h+var_E0]; this mov esi, [rsp+118h+var_C]; unsigned int call _ZN5Cache5getIdEj; Cache::getId(uint) mov [rsp+118h+var_110], eax jmp short $+2 loc_26524: mov rdi, [rsp+118h+var_E0]; this mov eax, [rsp+118h+var_110] mov [rsp+118h+var_90], eax mov eax, [rsp+118h+var_90] mov ecx, [rdi+3Ch] imul eax, ecx mov [rsp+118h+var_94], eax mov eax, [rsp+118h+var_90] inc eax mov ecx, [rdi+3Ch] imul eax, ecx mov [rsp+118h+var_98], eax mov esi, [rsp+118h+var_94]; unsigned int mov edx, [rsp+118h+var_98]; unsigned int call _ZN5Cache21getReplacementBlockIdEjj; Cache::getReplacementBlockId(uint,uint) mov [rsp+118h+var_114], eax jmp short $+2 loc_26577: mov rdi, [rsp+118h+var_E0] mov eax, [rsp+118h+var_114] mov [rsp+118h+var_9C], eax add rdi, 48h ; 'H' mov eax, [rsp+118h+var_9C] mov esi, eax call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov rsi, rax; Cache::Block * lea rdi, [rsp+118h+var_D0]; this call _ZN5Cache5BlockC2ERKS0_; Cache::Block::Block(Cache::Block const&) jmp short $+2 loc_265A2: mov rax, [rsp+118h+var_E0] test byte ptr [rax+1Ch], 1 jz short loc_265FE test [rsp+118h+var_D0], 1 jz short loc_265FE test [rsp+118h+var_CF], 1 jz short loc_265FE mov rdi, [rsp+118h+var_E0]; this lea rsi, [rsp+118h+var_D0]; Cache::Block * call _ZN5Cache22writeBlockToLowerLevelERNS_5BlockE; Cache::writeBlockToLowerLevel(Cache::Block &) jmp short $+2 loc_265CC: mov rax, [rsp+118h+var_E0] mov ecx, [rax+44h] add rcx, [rax+10h] mov [rax+10h], rcx jmp short loc_265FE mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax lea rdi, [rsp+arg_40]; this call _ZN5Cache5BlockD2Ev; Cache::Block::~Block() jmp short loc_26643 loc_265FE: mov rdi, [rsp+118h+var_E0] add rdi, 48h ; 'H' mov eax, [rsp+118h+var_9C] mov esi, eax call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov rdi, rax lea rsi, [rsp+118h+var_50] call _ZN5Cache5BlockaSERKS0_; Cache::Block::operator=(Cache::Block const&) jmp short $+2 loc_26624: lea rdi, [rsp+118h+var_D0]; this call _ZN5Cache5BlockD2Ev; Cache::Block::~Block() lea rdi, [rsp+118h+var_50]; this call _ZN5Cache5BlockD2Ev; Cache::Block::~Block() add rsp, 118h retn loc_26643: lea rdi, [rsp+arg_C0]; this call _ZN5Cache5BlockD2Ev; Cache::Block::~Block() mov rdi, [rsp+arg_B8] call __Unwind_Resume
void Cache::loadBlockFromLowerLevel( Cache *this, unsigned int a2, unsigned int *a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v11; // rsi long long v12; // rdx int v13; // ecx int v14; // r8d int v15; // r9d double v16; // xmm4_8 double v17; // xmm5_8 const Cache::Block *v18; // rax long long v19; // rax char Byte; // [rsp+Eh] [rbp-10Ah] char ByteNoCache; // [rsp+Fh] [rbp-109h] unsigned int v22; // [rsp+20h] [rbp-F8h] _BYTE v23[52]; // [rsp+48h] [rbp-D0h] BYREF unsigned int ReplacementBlockId; // [rsp+7Ch] [rbp-9Ch] unsigned int v25; // [rsp+80h] [rbp-98h] unsigned int v26; // [rsp+84h] [rbp-94h] int v27; // [rsp+88h] [rbp-90h] unsigned int i; // [rsp+8Ch] [rbp-8Ch] unsigned int v29; // [rsp+90h] [rbp-88h] int v30; // [rsp+94h] [rbp-84h] int v31; // [rsp+98h] [rbp-80h] char v32; // [rsp+9Fh] [rbp-79h] BYREF long long v33[5]; // [rsp+A0h] [rbp-78h] BYREF _BYTE v34[4]; // [rsp+C8h] [rbp-50h] BYREF int Tag; // [rsp+CCh] [rbp-4Ch] int Id; // [rsp+D0h] [rbp-48h] unsigned int v37; // [rsp+D4h] [rbp-44h] _BYTE v38[28]; // [rsp+E0h] [rbp-38h] BYREF unsigned int v39; // [rsp+FCh] [rbp-1Ch] unsigned int *v40; // [rsp+100h] [rbp-18h] unsigned int v41; // [rsp+10Ch] [rbp-Ch] Cache *v42; // [rsp+110h] [rbp-8h] v42 = this; v41 = a2; v40 = a3; v39 = *((_DWORD *)this + 13); Cache::Block::Block((Cache::Block *)v34); v34[0] = 1; v34[1] = 0; Tag = Cache::getTag(this, v41); v11 = v41; Id = Cache::getId(this, v41); v37 = v39; v22 = v39; std::allocator<unsigned char>::allocator(&v32, v11, v12); std::vector<unsigned char>::vector((unsigned int)v33, v22, (unsigned int)&v32, v13, v14, v15); std::vector<unsigned char>::operator=(v38, v33); std::vector<unsigned char>::~vector(v33); std::allocator<unsigned char>::~allocator((long long)&v32); v31 = Cache::log2i(this, v39); v30 = ~((1 << v31) - 1); v29 = v30 & v41; for ( i = v30 & v41; i < v39 + v29; ++i ) { if ( *((_QWORD *)this + 5) ) { Byte = Cache::getByte(*((Cache **)this + 5), i, v40); *(_BYTE *)std::vector<unsigned char>::operator[](v38, i - v29) = Byte; } else { ByteNoCache = MemoryManager::getByteNoCache(*((MemoryManager **)this + 4), i, a4, a5, a6, a7, v16, v17, a10, a11); *(_BYTE *)std::vector<unsigned char>::operator[](v38, i - v29) = ByteNoCache; if ( v40 ) *v40 = 100; } } v27 = Cache::getId(this, v41); v26 = *((_DWORD *)this + 15) * v27; v25 = *((_DWORD *)this + 15) * (v27 + 1); ReplacementBlockId = Cache::getReplacementBlockId(this, v26, v25); v18 = (const Cache::Block *)std::vector<Cache::Block>::operator[]((char *)this + 72, ReplacementBlockId); Cache::Block::Block((Cache::Block *)v23, v18); if ( (*((_BYTE *)this + 28) & 1) != 0 && (v23[0] & 1) != 0 && (v23[1] & 1) != 0 ) { Cache::writeBlockToLowerLevel(this, (Cache::Block *)v23); *((_QWORD *)this + 2) += *((unsigned int *)this + 17); } v19 = std::vector<Cache::Block>::operator[]((char *)this + 72, ReplacementBlockId); Cache::Block::operator=(v19, v34); Cache::Block::~Block((Cache::Block *)v23); Cache::Block::~Block((Cache::Block *)v34); }
loadBlockFromLowerLevel: SUB RSP,0x118 MOV qword ptr [RSP + 0x110],RDI MOV dword ptr [RSP + 0x10c],ESI MOV qword ptr [RSP + 0x100],RDX MOV RAX,qword ptr [RSP + 0x110] MOV qword ptr [RSP + 0x38],RAX MOV EAX,dword ptr [RAX + 0x34] MOV dword ptr [RSP + 0xfc],EAX LEA RDI,[RSP + 0xc8] CALL 0x00127050 MOV RDI,qword ptr [RSP + 0x38] MOV byte ptr [RSP + 0xc8],0x1 MOV byte ptr [RSP + 0xc9],0x0 MOV ESI,dword ptr [RSP + 0x10c] LAB_001262ce: CALL 0x00125fc0 MOV dword ptr [RSP + 0x44],EAX JMP 0x001262d9 LAB_001262d9: MOV RDI,qword ptr [RSP + 0x38] MOV EAX,dword ptr [RSP + 0x44] MOV dword ptr [RSP + 0xcc],EAX MOV ESI,dword ptr [RSP + 0x10c] CALL 0x00126030 MOV dword ptr [RSP + 0x34],EAX JMP 0x001262fb LAB_001262fb: MOV EAX,dword ptr [RSP + 0x34] MOV dword ptr [RSP + 0xd0],EAX MOV EAX,dword ptr [RSP + 0xfc] MOV dword ptr [RSP + 0xd4],EAX MOV EAX,dword ptr [RSP + 0xd4] MOV qword ptr [RSP + 0x20],RAX LEA RDI,[RSP + 0x9f] MOV qword ptr [RSP + 0x28],RDI CALL 0x00126f80 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] LAB_0012633c: LEA RDI,[RSP + 0xa0] CALL 0x00126f90 JMP 0x0012634b LAB_0012634b: LEA RDI,[RSP + 0xe0] LEA RSI,[RSP + 0xa0] MOV qword ptr [RSP + 0x10],RSI CALL 0x00127010 MOV RDI,qword ptr [RSP + 0x10] CALL 0x0011e3c0 LEA RDI,[RSP + 0x9f] CALL 0x0011e590 MOV RDI,qword ptr [RSP + 0x38] MOV ESI,dword ptr [RSP + 0xfc] LAB_00126388: CALL 0x00126c70 MOV dword ptr [RSP + 0x1c],EAX JMP 0x00126393 LAB_00126393: MOV EAX,dword ptr [RSP + 0x1c] MOV dword ptr [RSP + 0x98],EAX MOV ECX,dword ptr [RSP + 0x98] MOV EAX,0x1 SHL EAX,CL SUB EAX,0x1 XOR EAX,0xffffffff MOV dword ptr [RSP + 0x94],EAX MOV EAX,dword ptr [RSP + 0x10c] AND EAX,dword ptr [RSP + 0x94] MOV dword ptr [RSP + 0x90],EAX MOV EAX,dword ptr [RSP + 0x90] MOV dword ptr [RSP + 0x8c],EAX LAB_001263dc: MOV EAX,dword ptr [RSP + 0x8c] MOV ECX,dword ptr [RSP + 0x90] ADD ECX,dword ptr [RSP + 0xfc] CMP EAX,ECX JNC 0x0012650d MOV RAX,qword ptr [RSP + 0x38] CMP qword ptr [RAX + 0x28],0x0 JNZ 0x001264a9 MOV RAX,qword ptr [RSP + 0x38] MOV RDI,qword ptr [RAX + 0x20] MOV ESI,dword ptr [RSP + 0x8c] CALL 0x0011e9f0 MOV byte ptr [RSP + 0xf],AL JMP 0x00126424 LAB_00126424: LEA RDI,[RSP + 0xc8] ADD RDI,0x18 MOV EAX,dword ptr [RSP + 0x8c] SUB EAX,dword ptr [RSP + 0x90] MOV EAX,EAX MOV ESI,EAX CALL 0x00126e70 MOV CL,byte ptr [RSP + 0xf] MOV byte ptr [RAX],CL CMP qword ptr [RSP + 0x100],0x0 JZ 0x001264a7 MOV RAX,qword ptr [RSP + 0x100] MOV dword ptr [RAX],0x64 JMP 0x001264a7 LAB_001264a7: JMP 0x001264f5 LAB_001264a9: MOV RAX,qword ptr [RSP + 0x38] MOV RDI,qword ptr [RAX + 0x28] MOV ESI,dword ptr [RSP + 0x8c] MOV RDX,qword ptr [RSP + 0x100] CALL 0x00126090 MOV byte ptr [RSP + 0xe],AL JMP 0x001264cc LAB_001264cc: LEA RDI,[RSP + 0xc8] ADD RDI,0x18 MOV EAX,dword ptr [RSP + 0x8c] SUB EAX,dword ptr [RSP + 0x90] MOV EAX,EAX MOV ESI,EAX CALL 0x00126e70 MOV CL,byte ptr [RSP + 0xe] MOV byte ptr [RAX],CL LAB_001264f5: JMP 0x001264f7 LAB_001264f7: MOV EAX,dword ptr [RSP + 0x8c] ADD EAX,0x1 MOV dword ptr [RSP + 0x8c],EAX JMP 0x001263dc LAB_0012650d: MOV RDI,qword ptr [RSP + 0x38] MOV ESI,dword ptr [RSP + 0x10c] CALL 0x00126030 MOV dword ptr [RSP + 0x8],EAX JMP 0x00126524 LAB_00126524: MOV RDI,qword ptr [RSP + 0x38] MOV EAX,dword ptr [RSP + 0x8] MOV dword ptr [RSP + 0x88],EAX MOV EAX,dword ptr [RSP + 0x88] MOV ECX,dword ptr [RDI + 0x3c] IMUL EAX,ECX MOV dword ptr [RSP + 0x84],EAX MOV EAX,dword ptr [RSP + 0x88] INC EAX MOV ECX,dword ptr [RDI + 0x3c] IMUL EAX,ECX MOV dword ptr [RSP + 0x80],EAX MOV ESI,dword ptr [RSP + 0x84] MOV EDX,dword ptr [RSP + 0x80] CALL 0x00126cd0 MOV dword ptr [RSP + 0x4],EAX JMP 0x00126577 LAB_00126577: MOV RDI,qword ptr [RSP + 0x38] MOV EAX,dword ptr [RSP + 0x4] MOV dword ptr [RSP + 0x7c],EAX ADD RDI,0x48 MOV EAX,dword ptr [RSP + 0x7c] MOV ESI,EAX CALL 0x00126e50 MOV RSI,RAX LEA RDI,[RSP + 0x48] CALL 0x00127070 JMP 0x001265a2 LAB_001265a2: MOV RAX,qword ptr [RSP + 0x38] TEST byte ptr [RAX + 0x1c],0x1 JZ 0x001265fe TEST byte ptr [RSP + 0x48],0x1 JZ 0x001265fe TEST byte ptr [RSP + 0x49],0x1 JZ 0x001265fe LAB_001265bb: MOV RDI,qword ptr [RSP + 0x38] LEA RSI,[RSP + 0x48] CALL 0x001268d0 JMP 0x001265cc LAB_001265cc: MOV RAX,qword ptr [RSP + 0x38] MOV ECX,dword ptr [RAX + 0x44] ADD RCX,qword ptr [RAX + 0x10] MOV qword ptr [RAX + 0x10],RCX JMP 0x001265fe LAB_001265fe: MOV RDI,qword ptr [RSP + 0x38] ADD RDI,0x48 MOV EAX,dword ptr [RSP + 0x7c] MOV ESI,EAX CALL 0x00126e50 MOV RDI,RAX LEA RSI,[RSP + 0xc8] CALL 0x00127110 LAB_00126622: JMP 0x00126624 LAB_00126624: LEA RDI,[RSP + 0x48] CALL 0x0011e3a0 LEA RDI,[RSP + 0xc8] CALL 0x0011e3a0 ADD RSP,0x118 RET
/* Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*) */ void __thiscall Cache::loadBlockFromLowerLevel(Cache *this,uint param_1,uint *param_2) { int1 uVar1; ulong uVar2; int1 *puVar3; Block *pBVar4; Block local_d0; byte local_cf; uint local_9c; uint local_98; uint local_94; int local_90; uint local_8c; uint local_88; uint local_84; int4 local_80; allocator<unsigned_char> local_79; vector<unsigned_char,std::allocator<unsigned_char>> local_78 [40]; Block local_50; int1 local_4f; int4 local_4c; int4 local_48; uint local_44; vector<unsigned_char,std::allocator<unsigned_char>> local_38 [28]; uint local_1c; uint *local_18; uint local_c; Cache *local_8; local_1c = *(uint *)(this + 0x34); local_18 = param_2; local_c = param_1; local_8 = this; Block::Block(&local_50); local_50 = (Block)0x1; local_4f = 0; /* try { // try from 001262ce to 001262f4 has its CatchHandler @ 00126468 */ local_4c = getTag(this,local_c); local_48 = getId(this,local_c); local_44 = local_1c; uVar2 = (ulong)local_1c; std::allocator<unsigned_char>::allocator(&local_79); /* try { // try from 0012633c to 00126348 has its CatchHandler @ 00126481 */ std::vector<unsigned_char,std::allocator<unsigned_char>>::vector (local_78,uVar2,(allocator *)&local_79); std::vector<unsigned_char,std::allocator<unsigned_char>>::operator=(local_38,(vector *)local_78); std::vector<unsigned_char,std::allocator<unsigned_char>>::~vector(local_78); std::allocator<unsigned_char>::~allocator(&local_79); /* try { // try from 00126388 to 0012659f has its CatchHandler @ 00126468 */ local_80 = log2i(this,local_1c); local_84 = (1 << ((byte)local_80 & 0x1f)) - 1U ^ 0xffffffff; local_8c = local_c & local_84; local_88 = local_8c; for (; local_8c < local_88 + local_1c; local_8c = local_8c + 1) { if (*(long *)(this + 0x28) == 0) { uVar1 = MemoryManager::getByteNoCache(*(MemoryManager **)(this + 0x20),local_8c); puVar3 = (int1 *) std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[] (local_38,(ulong)(local_8c - local_88)); *puVar3 = uVar1; if (local_18 != (uint *)0x0) { *local_18 = 100; } } else { uVar1 = getByte(*(Cache **)(this + 0x28),local_8c,local_18); puVar3 = (int1 *) std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[] (local_38,(ulong)(local_8c - local_88)); *puVar3 = uVar1; } } local_90 = getId(this,local_c); local_94 = local_90 * *(int *)(this + 0x3c); local_98 = (local_90 + 1) * *(int *)(this + 0x3c); local_9c = getReplacementBlockId(this,local_94,local_98); pBVar4 = (Block *)std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (ulong)local_9c); Block::Block(&local_d0,pBVar4); if (((((byte)this[0x1c] & 1) != 0) && (((byte)local_d0 & 1) != 0)) && ((local_cf & 1) != 0)) { /* try { // try from 001265bb to 00126621 has its CatchHandler @ 001265de */ writeBlockToLowerLevel(this,&local_d0); *(ulong *)(this + 0x10) = (ulong)*(uint *)(this + 0x44) + *(long *)(this + 0x10); } pBVar4 = (Block *)std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (ulong)local_9c); Block::operator=(pBVar4,&local_50); Block::~Block(&local_d0); Block::~Block(&local_50); return; }
3,170
Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
void Cache::loadBlockFromLowerLevel(uint32_t addr, uint32_t *cycles) { uint32_t blockSize = this->policy.blockSize; // Initialize new block from memory Block b; b.valid = true; b.modified = false; b.tag = this->getTag(addr); b.id = this->getId(addr); b.size = blockSize; b.data = std::vector<uint8_t>(b.size); uint32_t bits = this->log2i(blockSize); uint32_t mask = ~((1 << bits) - 1); uint32_t blockAddrBegin = addr & mask; for (uint32_t i = blockAddrBegin; i < blockAddrBegin + blockSize; ++i) { if (this->lowerCache == nullptr) { b.data[i - blockAddrBegin] = this->memory->getByteNoCache(i); if (cycles) *cycles = 100; } else b.data[i - blockAddrBegin] = this->lowerCache->getByte(i, cycles); } // Find replace block uint32_t id = this->getId(addr); uint32_t blockIdBegin = id * this->policy.associativity; uint32_t blockIdEnd = (id + 1) * this->policy.associativity; uint32_t replaceId = this->getReplacementBlockId(blockIdBegin, blockIdEnd); Block replaceBlock = this->blocks[replaceId]; if (this->writeBack && replaceBlock.valid && replaceBlock.modified) { // write back to memory this->writeBlockToLowerLevel(replaceBlock); this->statistics.totalCycles += this->policy.missLatency; } this->blocks[replaceId] = b; }
O2
cpp
Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %r14 movl 0x34(%rdi), %r12d leaq 0x50(%rsp), %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rbx) andq $0x0, 0x10(%rbx) movw $0x1, -0x18(%rbx) callq 0x1351e movl %eax, -0x14(%rbx) movq %r14, %rdi movl %ebp, %esi callq 0x1355c movl %eax, -0x10(%rbx) movl %r12d, -0xc(%rbx) leaq 0x8(%rsp), %rdi leaq 0x7(%rsp), %rdx movq %r12, %rsi callq 0x13c98 leaq 0x8(%rsp), %r13 movq %rbx, %rdi movq %r13, %rsi callq 0x14000 movq %r13, %rdi callq 0xf690 movl %r12d, %esi callq 0x13b98 movl %eax, %ecx movl %ebp, %r13d shrl %cl, %r13d shll %cl, %r13d addl %r13d, %r12d xorl %ebx, %ebx cmpq %r12, %r13 jae 0x1375e movq 0x28(%r14), %rdi testq %rdi, %rdi je 0x13736 movl %r13d, %esi movq %r15, %rdx callq 0x13596 movq 0x50(%rsp), %rcx movb %al, (%rcx,%rbx) jmp 0x13756 movq 0x20(%r14), %rdi movl %r13d, %esi callq 0xf818 movq 0x50(%rsp), %rcx movb %al, (%rcx,%rbx) testq %r15, %r15 je 0x13756 movl $0x64, (%r15) incq %r13 incq %rbx jmp 0x13713 movq %r14, %rdi movl %ebp, %esi callq 0x1355c movl 0x3c(%r14), %esi leal 0x1(%rax), %edx imull %esi, %edx imull %eax, %esi movq %r14, %rdi callq 0x13bb4 movl %eax, %eax imulq $0x30, %rax, %r15 movq 0x48(%r14), %rsi addq %r15, %rsi leaq 0x8(%rsp), %rdi callq 0x13cea cmpb $0x1, 0x1c(%r14) leaq 0x50(%rsp), %rbx jne 0x137c3 cmpb $0x1, 0x8(%rsp) jne 0x137c3 cmpb $0x1, 0x9(%rsp) jne 0x137c3 leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x1395a movl 0x44(%r14), %eax addq %rax, 0x10(%r14) addq 0x48(%r14), %r15 leaq 0x38(%rsp), %rsi movq %r15, %rdi callq 0x13d3e leaq 0x20(%rsp), %rdi callq 0xf690 movq %rbx, %rdi callq 0xf690 addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x13808 jmp 0x13808 movq %rax, %r14 leaq 0x20(%rsp), %rdi callq 0xf690 jmp 0x1380b movq %rax, %r14 leaq 0x50(%rsp), %rdi callq 0xf690 movq %r14, %rdi callq 0xc340 nop
_ZN5Cache23loadBlockFromLowerLevelEjPj: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r15, rdx mov ebp, esi mov r14, rdi mov r12d, [rdi+34h] lea rbx, [rsp+98h+var_48] xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 and qword ptr [rbx+10h], 0 mov word ptr [rbx-18h], 1 call _ZN5Cache6getTagEj; Cache::getTag(uint) mov [rbx-14h], eax mov rdi, r14; this mov esi, ebp; unsigned int call _ZN5Cache5getIdEj; Cache::getId(uint) mov [rbx-10h], eax mov [rbx-0Ch], r12d lea rdi, [rsp+98h+var_90] lea rdx, [rsp+98h+var_91] mov rsi, r12 call _ZNSt6vectorIhSaIhEEC2EmRKS0_; std::vector<uchar>::vector(ulong,std::allocator<uchar> const&) lea r13, [rsp+98h+var_90] mov rdi, rbx mov rsi, r13 call _ZNSt6vectorIhSaIhEE14_M_move_assignEOS1_St17integral_constantIbLb1EE; std::vector<uchar>::_M_move_assign(std::vector<uchar>&&,std::integral_constant<bool,true>) mov rdi, r13; this call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base() mov esi, r12d; unsigned int call _ZN5Cache5log2iEj; Cache::log2i(uint) mov ecx, eax mov r13d, ebp shr r13d, cl shl r13d, cl add r12d, r13d xor ebx, ebx loc_13713: cmp r13, r12 jnb short loc_1375E mov rdi, [r14+28h]; this test rdi, rdi jz short loc_13736 mov esi, r13d; unsigned int mov rdx, r15; unsigned int * call _ZN5Cache7getByteEjPj; Cache::getByte(uint,uint *) mov rcx, [rsp+98h+var_48] mov [rcx+rbx], al jmp short loc_13756 loc_13736: mov rdi, [r14+20h]; this mov esi, r13d; unsigned int call _ZN13MemoryManager14getByteNoCacheEj; MemoryManager::getByteNoCache(uint) mov rcx, [rsp+98h+var_48] mov [rcx+rbx], al test r15, r15 jz short loc_13756 mov dword ptr [r15], 64h ; 'd' loc_13756: inc r13 inc rbx jmp short loc_13713 loc_1375E: mov rdi, r14; this mov esi, ebp; unsigned int call _ZN5Cache5getIdEj; Cache::getId(uint) mov esi, [r14+3Ch] lea edx, [rax+1] imul edx, esi; unsigned int imul esi, eax; unsigned int mov rdi, r14; this call _ZN5Cache21getReplacementBlockIdEjj; Cache::getReplacementBlockId(uint,uint) mov eax, eax imul r15, rax, 30h ; '0' mov rsi, [r14+48h] add rsi, r15 lea rdi, [rsp+98h+var_90] call _ZN5Cache5BlockC2ERKS0_; Cache::Block::Block(Cache::Block const&) cmp byte ptr [r14+1Ch], 1 lea rbx, [rsp+98h+var_48] jnz short loc_137C3 cmp [rsp+98h+var_90], 1 jnz short loc_137C3 cmp [rsp+98h+var_8F], 1 jnz short loc_137C3 lea rsi, [rsp+98h+var_90] mov rdi, r14 call _ZN5Cache22writeBlockToLowerLevelERNS_5BlockE; Cache::writeBlockToLowerLevel(Cache::Block &) mov eax, [r14+44h] add [r14+10h], rax loc_137C3: add r15, [r14+48h] lea rsi, [rsp+98h+var_60] mov rdi, r15 call _ZN5Cache5BlockaSERKS0_; Cache::Block::operator=(Cache::Block const&) lea rdi, [rsp+98h+var_78] call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base() mov rdi, rbx call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base() add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_13808 jmp short loc_13808 mov r14, rax lea rdi, [rsp+arg_18] call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base() jmp short loc_1380B loc_13808: mov r14, rax loc_1380B: lea rdi, [rsp+arg_48] call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base() mov rdi, r14 call __Unwind_Resume
void Cache::loadBlockFromLowerLevel( MemoryManager **this, unsigned int a2, unsigned int *a3, double a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v13; // r12 unsigned int v14; // eax long long v15; // rdx long long v16; // r8 long long v17; // r9 __m128 v18; // xmm4 __m128 v19; // xmm5 long long v20; // rcx unsigned long long v21; // r13 unsigned long long v22; // r12 long long v23; // rbx Cache *v24; // rdi char Byte; // al char ByteNoCache; // al int v27; // eax long long v28; // r15 char v29; // [rsp+7h] [rbp-91h] BYREF void *v30[3]; // [rsp+8h] [rbp-90h] BYREF void *v31; // [rsp+20h] [rbp-78h] BYREF __int16 v32[2]; // [rsp+38h] [rbp-60h] BYREF int Tag; // [rsp+3Ch] [rbp-5Ch] int Id; // [rsp+40h] [rbp-58h] int v35; // [rsp+44h] [rbp-54h] __int128 v36; // [rsp+50h] [rbp-48h] BYREF long long v37; // [rsp+60h] [rbp-38h] v13 = *((unsigned int *)this + 13); v36 = 0LL; v37 = 0LL; v32[0] = 1; Tag = Cache::getTag((Cache *)this, a2); Id = Cache::getId((Cache *)this, a2); v35 = v13; std::vector<unsigned char>::vector(v30, v13, &v29); std::vector<unsigned char>::_M_move_assign(&v36, v30); std::_Vector_base<unsigned char>::~_Vector_base(v30); v14 = Cache::log2i((Cache *)v30, v13); v20 = v14; v21 = a2 >> v14 << v14; v22 = (unsigned int)(v21 + v13); v23 = 0LL; while ( v21 < v22 ) { v24 = this[5]; if ( v24 ) { Byte = Cache::getByte(v24, v21, a3); v20 = v36; *(_BYTE *)(v36 + v23) = Byte; } else { ByteNoCache = MemoryManager::getByteNoCache( this[4], v21, v15, v20, v16, v17, (__m128)0LL, a5, a6, a7, v18, v19, a10, a11); v20 = v36; *(_BYTE *)(v36 + v23) = ByteNoCache; if ( a3 ) *a3 = 100; } ++v21; ++v23; } v27 = Cache::getId((Cache *)this, a2); v28 = 48LL * (unsigned int)Cache::getReplacementBlockId( (Cache *)this, v27 * *((_DWORD *)this + 15), *((_DWORD *)this + 15) * (v27 + 1)); Cache::Block::Block(v30, (char *)this[9] + v28); if ( *((_BYTE *)this + 28) == 1 && LOBYTE(v30[0]) == 1 && BYTE1(v30[0]) == 1 ) { Cache::writeBlockToLowerLevel(this, v30); this[2] = (MemoryManager *)((char *)this[2] + *((unsigned int *)this + 17)); } Cache::Block::operator=((char *)this[9] + v28, v32); std::_Vector_base<unsigned char>::~_Vector_base(&v31); std::_Vector_base<unsigned char>::~_Vector_base((void **)&v36); }
loadBlockFromLowerLevel: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R15,RDX MOV EBP,ESI MOV R14,RDI MOV R12D,dword ptr [RDI + 0x34] LEA RBX,[RSP + 0x50] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 AND qword ptr [RBX + 0x10],0x0 MOV word ptr [RBX + -0x18],0x1 CALL 0x0011351e MOV dword ptr [RBX + -0x14],EAX MOV RDI,R14 MOV ESI,EBP CALL 0x0011355c MOV dword ptr [RBX + -0x10],EAX MOV dword ptr [RBX + -0xc],R12D LAB_001136d1: LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x7] MOV RSI,R12 CALL 0x00113c98 LEA R13,[RSP + 0x8] MOV RDI,RBX MOV RSI,R13 CALL 0x00114000 MOV RDI,R13 CALL 0x0010f690 MOV ESI,R12D CALL 0x00113b98 MOV ECX,EAX MOV R13D,EBP SHR R13D,CL SHL R13D,CL ADD R12D,R13D XOR EBX,EBX LAB_00113713: CMP R13,R12 JNC 0x0011375e MOV RDI,qword ptr [R14 + 0x28] TEST RDI,RDI JZ 0x00113736 LAB_00113721: MOV ESI,R13D MOV RDX,R15 CALL 0x00113596 MOV RCX,qword ptr [RSP + 0x50] MOV byte ptr [RCX + RBX*0x1],AL JMP 0x00113756 LAB_00113736: MOV RDI,qword ptr [R14 + 0x20] MOV ESI,R13D CALL 0x0010f818 MOV RCX,qword ptr [RSP + 0x50] MOV byte ptr [RCX + RBX*0x1],AL TEST R15,R15 JZ 0x00113756 MOV dword ptr [R15],0x64 LAB_00113756: INC R13 INC RBX JMP 0x00113713 LAB_0011375e: MOV RDI,R14 MOV ESI,EBP CALL 0x0011355c MOV ESI,dword ptr [R14 + 0x3c] LEA EDX,[RAX + 0x1] IMUL EDX,ESI IMUL ESI,EAX MOV RDI,R14 CALL 0x00113bb4 MOV EAX,EAX IMUL R15,RAX,0x30 MOV RSI,qword ptr [R14 + 0x48] ADD RSI,R15 LAB_0011378a: LEA RDI,[RSP + 0x8] CALL 0x00113cea CMP byte ptr [R14 + 0x1c],0x1 LEA RBX,[RSP + 0x50] JNZ 0x001137c3 CMP byte ptr [RSP + 0x8],0x1 JNZ 0x001137c3 CMP byte ptr [RSP + 0x9],0x1 JNZ 0x001137c3 LAB_001137ae: LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x0011395a MOV EAX,dword ptr [R14 + 0x44] ADD qword ptr [R14 + 0x10],RAX LAB_001137c3: ADD R15,qword ptr [R14 + 0x48] LEA RSI,[RSP + 0x38] MOV RDI,R15 CALL 0x00113d3e LAB_001137d4: LEA RDI,[RSP + 0x20] CALL 0x0010f690 MOV RDI,RBX CALL 0x0010f690 ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*) */ void __thiscall Cache::loadBlockFromLowerLevel(Cache *this,uint param_1,uint *param_2) { byte bVar1; int1 uVar2; int iVar3; uint uVar4; long lVar5; _Vector_base<unsigned_char,std::allocator<unsigned_char>> *this_00; uint uVar6; ulong uVar7; allocator local_91; vector<unsigned_char,std::allocator<unsigned_char>> local_90; char local_8f; _Vector_base<unsigned_char,std::allocator<unsigned_char>> local_78 [24]; int2 local_60 [2]; int4 local_5c; int4 local_58; uint local_54; long local_48 [3]; uVar4 = *(uint *)(this + 0x34); local_48[0] = 0; local_48[1] = 0; local_48[2] = 0; local_60[0] = 1; local_5c = getTag(this,param_1); local_58 = getId(this,param_1); /* try { // try from 001136d1 to 001136e2 has its CatchHandler @ 001137f7 */ local_54 = uVar4; std::vector<unsigned_char,std::allocator<unsigned_char>>::vector(&local_90,(ulong)uVar4,&local_91) ; this_00 = (_Vector_base<unsigned_char,std::allocator<unsigned_char>> *)&local_90; std::vector<unsigned_char,std::allocator<unsigned_char>>::_M_move_assign(local_48,this_00); std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base(this_00); bVar1 = log2i((Cache *)this_00,uVar4); uVar6 = (param_1 >> (bVar1 & 0x1f)) << (bVar1 & 0x1f); lVar5 = 0; for (uVar7 = (ulong)uVar6; uVar7 < uVar4 + uVar6; uVar7 = uVar7 + 1) { if (*(Cache **)(this + 0x28) == (Cache *)0x0) { uVar2 = MemoryManager::getByteNoCache(*(MemoryManager **)(this + 0x20),(uint)uVar7); *(int1 *)(local_48[0] + lVar5) = uVar2; if (param_2 != (uint *)0x0) { *param_2 = 100; } } else { /* try { // try from 00113721 to 00113741 has its CatchHandler @ 00113808 */ uVar2 = getByte(*(Cache **)(this + 0x28),(uint)uVar7,param_2); *(int1 *)(local_48[0] + lVar5) = uVar2; } lVar5 = lVar5 + 1; } iVar3 = getId(this,param_1); uVar4 = getReplacementBlockId (this,*(int *)(this + 0x3c) * iVar3,(iVar3 + 1) * *(int *)(this + 0x3c)); /* try { // try from 0011378a to 00113793 has its CatchHandler @ 001137f5 */ Block::Block((Block *)&local_90,(Block *)(*(long *)(this + 0x48) + (ulong)uVar4 * 0x30)); if (((this[0x1c] == (Cache)0x1) && (local_90 == (vector<unsigned_char,std::allocator<unsigned_char>>)0x1)) && (local_8f == '\x01')) { /* try { // try from 001137ae to 001137d3 has its CatchHandler @ 001137f9 */ writeBlockToLowerLevel(this,(Block *)&local_90); *(ulong *)(this + 0x10) = *(long *)(this + 0x10) + (ulong)*(uint *)(this + 0x44); } Block::operator=((Block *)((ulong)uVar4 * 0x30 + *(long *)(this + 0x48)),(Block *)local_60); std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base(local_78); std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base ((_Vector_base<unsigned_char,std::allocator<unsigned_char>> *)local_48); return; }
3,171
Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
void Cache::loadBlockFromLowerLevel(uint32_t addr, uint32_t *cycles) { uint32_t blockSize = this->policy.blockSize; // Initialize new block from memory Block b; b.valid = true; b.modified = false; b.tag = this->getTag(addr); b.id = this->getId(addr); b.size = blockSize; b.data = std::vector<uint8_t>(b.size); uint32_t bits = this->log2i(blockSize); uint32_t mask = ~((1 << bits) - 1); uint32_t blockAddrBegin = addr & mask; for (uint32_t i = blockAddrBegin; i < blockAddrBegin + blockSize; ++i) { if (this->lowerCache == nullptr) { b.data[i - blockAddrBegin] = this->memory->getByteNoCache(i); if (cycles) *cycles = 100; } else b.data[i - blockAddrBegin] = this->lowerCache->getByte(i, cycles); } // Find replace block uint32_t id = this->getId(addr); uint32_t blockIdBegin = id * this->policy.associativity; uint32_t blockIdEnd = (id + 1) * this->policy.associativity; uint32_t replaceId = this->getReplacementBlockId(blockIdBegin, blockIdEnd); Block replaceBlock = this->blocks[replaceId]; if (this->writeBack && replaceBlock.valid && replaceBlock.modified) { // write back to memory this->writeBlockToLowerLevel(replaceBlock); this->statistics.totalCycles += this->policy.missLatency; } this->blocks[replaceId] = b; }
O3
cpp
Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx movl 0x34(%rdi), %r15d movw $0x1, 0x8(%rsp) callq 0x13622 movl %eax, 0xc(%rsp) movq %rbx, %rdi movl %ebp, %esi callq 0x13686 movl %eax, 0x10(%rsp) movl %r15d, 0x14(%rsp) leaq 0x38(%rsp), %r13 leaq 0x3(%rsp), %rdx movq %r13, %rdi movq %r15, %rsi callq 0x13ef2 movq (%r13), %r12 movq %r12, 0x20(%rsp) movups 0x8(%r13), %xmm0 movups %xmm0, 0x28(%rsp) testq %r15, %r15 je 0x13889 xorl %ecx, %ecx cmpl $0x1, %r15d je 0x1388e movl %r15d, %edx movl %r15d, %eax shrl %eax incl %ecx cmpl $0x3, %edx movl %eax, %edx ja 0x1387c jmp 0x1388e movl $0xffffffff, %ecx # imm = 0xFFFFFFFF movl %ebp, 0x4(%rsp) movl %ebp, %eax shrl %cl, %eax shll %cl, %eax leal (%rax,%r15), %ecx cmpl %ecx, %eax jae 0x138e7 movl %eax, %r13d xorl %ebp, %ebp movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0x138c1 leal (%r13,%rbp), %esi movq %r14, %rdx callq 0x136e2 movb %al, (%r12,%rbp) jmp 0x138df movq 0x20(%rbx), %rdi leal (%r13,%rbp), %esi callq 0xec04 movb %al, (%r12,%rbp) testq %r14, %r14 je 0x138df movl $0x64, (%r14) incq %rbp cmpl %ebp, %r15d jne 0x138a5 movq %rbx, %rdi movl 0x4(%rsp), %esi callq 0x13686 movl 0x3c(%rbx), %esi leal 0x1(%rax), %edx imull %esi, %edx imull %eax, %esi movq %rbx, %rdi callq 0x13db2 movl %eax, %eax leaq (%rax,%rax,2), %r14 shlq $0x4, %r14 movq 0x48(%rbx), %rsi addq %r14, %rsi leaq 0x38(%rsp), %rdi callq 0x13f52 cmpb $0x1, 0x1c(%rbx) jne 0x1394a cmpb $0x1, 0x38(%rsp) jne 0x1394a cmpb $0x1, 0x39(%rsp) jne 0x1394a leaq 0x38(%rsp), %rsi movq %rbx, %rdi callq 0x13b30 movl 0x44(%rbx), %eax addq %rax, 0x10(%rbx) leaq 0x20(%rsp), %rsi movq 0x48(%rbx), %rax movl -0x8(%rsi), %ecx leaq (%rax,%r14), %rdi addq $0x18, %rdi movl %ecx, -0x8(%rdi) movups -0x18(%rsi), %xmm0 movups %xmm0, -0x18(%rdi) callq 0x13fae movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x1397d callq 0xb1a0 movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0x1398c callq 0xb1a0 addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx jmp 0x139b2 movq %rax, %rbx movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x139b2 callq 0xb1a0 movq 0x20(%rsp), %r12 jmp 0x139bc movq %rax, %rbx testq %r12, %r12 je 0x139c9 movq %r12, %rdi callq 0xb1a0 movq %rbx, %rdi callq 0xb360 nop
_ZN5Cache23loadBlockFromLowerLevelEjPj: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r14, rdx mov ebp, esi mov rbx, rdi mov r15d, [rdi+34h] mov [rsp+98h+var_90], 1 call _ZN5Cache6getTagEj; Cache::getTag(uint) mov [rsp+98h+var_8C], eax mov rdi, rbx; this mov esi, ebp; unsigned int call _ZN5Cache5getIdEj; Cache::getId(uint) mov [rsp+98h+var_88], eax mov [rsp+98h+var_84], r15d lea r13, [rsp+98h+var_60] lea rdx, [rsp+98h+var_95] mov rdi, r13 mov rsi, r15 call _ZNSt6vectorIhSaIhEEC2EmRKS0_; std::vector<uchar>::vector(ulong,std::allocator<uchar> const&) mov r12, [r13+0] mov [rsp+98h+var_78], r12 movups xmm0, xmmword ptr [r13+8] movups [rsp+98h+var_70], xmm0 test r15, r15 jz short loc_13889 xor ecx, ecx cmp r15d, 1 jz short loc_1388E mov edx, r15d mov eax, r15d loc_1387C: shr eax, 1 inc ecx cmp edx, 3 mov edx, eax ja short loc_1387C jmp short loc_1388E loc_13889: mov ecx, 0FFFFFFFFh loc_1388E: mov [rsp+98h+var_94], ebp mov eax, ebp shr eax, cl shl eax, cl lea ecx, [rax+r15] cmp eax, ecx jnb short loc_138E7 mov r13d, eax xor ebp, ebp loc_138A5: mov rdi, [rbx+28h]; this test rdi, rdi jz short loc_138C1 lea esi, [r13+rbp+0]; unsigned int mov rdx, r14; unsigned int * call _ZN5Cache7getByteEjPj; Cache::getByte(uint,uint *) mov [r12+rbp], al jmp short loc_138DF loc_138C1: mov rdi, [rbx+20h]; this lea esi, [r13+rbp+0]; unsigned int call _ZN13MemoryManager14getByteNoCacheEj; MemoryManager::getByteNoCache(uint) mov [r12+rbp], al test r14, r14 jz short loc_138DF mov dword ptr [r14], 64h ; 'd' loc_138DF: inc rbp cmp r15d, ebp jnz short loc_138A5 loc_138E7: mov rdi, rbx; this mov esi, [rsp+98h+var_94]; unsigned int call _ZN5Cache5getIdEj; Cache::getId(uint) mov esi, [rbx+3Ch] lea edx, [rax+1] imul edx, esi; unsigned int imul esi, eax; unsigned int mov rdi, rbx; this call _ZN5Cache21getReplacementBlockIdEjj; Cache::getReplacementBlockId(uint,uint) mov eax, eax lea r14, [rax+rax*2] shl r14, 4 mov rsi, [rbx+48h] add rsi, r14 lea rdi, [rsp+98h+var_60] call _ZN5Cache5BlockC2ERKS0_; Cache::Block::Block(Cache::Block const&) cmp byte ptr [rbx+1Ch], 1 jnz short loc_1394A cmp [rsp+98h+var_60], 1 jnz short loc_1394A cmp [rsp+98h+var_5F], 1 jnz short loc_1394A lea rsi, [rsp+98h+var_60] mov rdi, rbx call _ZN5Cache22writeBlockToLowerLevelERNS_5BlockE; Cache::writeBlockToLowerLevel(Cache::Block &) mov eax, [rbx+44h] add [rbx+10h], rax loc_1394A: lea rsi, [rsp+98h+var_78] mov rax, [rbx+48h] mov ecx, [rsi-8] lea rdi, [rax+r14] add rdi, 18h mov [rdi-8], ecx movups xmm0, xmmword ptr [rsi-18h] movups xmmword ptr [rdi-18h], xmm0 call _ZNSt6vectorIhSaIhEEaSERKS1_; std::vector<uchar>::operator=(std::vector<uchar> const&) mov rdi, [rsp+98h+var_48]; void * test rdi, rdi jz short loc_1397D call __ZdlPv; operator delete(void *) loc_1397D: mov rdi, [rsp+98h+var_78]; void * test rdi, rdi jz short loc_1398C call __ZdlPv; operator delete(void *) loc_1398C: add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax jmp short loc_139B2 mov rbx, rax mov rdi, [rsp+arg_48]; void * test rdi, rdi jz short loc_139B2 call __ZdlPv; operator delete(void *) loc_139B2: mov r12, [rsp+arg_18] jmp short loc_139BC mov rbx, rax loc_139BC: test r12, r12 jz short loc_139C9 mov rdi, r12; void * call __ZdlPv; operator delete(void *) loc_139C9: mov rdi, rbx call __Unwind_Resume
void Cache::loadBlockFromLowerLevel( MemoryManager **this, unsigned int a2, unsigned int *a3, double a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v13; // r15 long long v14; // rdx long long v15; // r8 long long v16; // r9 __m128 v17; // xmm4 __m128 v18; // xmm5 _BYTE *v19; // r12 __m128 v20; // xmm0 char v21; // cl unsigned int v22; // eax bool v23; // cc unsigned int v24; // eax long long v25; // rcx unsigned int v26; // r13d long long v27; // rbp Cache *v28; // rdi int Id; // eax long long v30; // r14 long long v31; // rdi char v32; // [rsp+3h] [rbp-95h] BYREF unsigned int v33; // [rsp+4h] [rbp-94h] __int128 v34; // [rsp+8h] [rbp-90h] int v35; // [rsp+18h] [rbp-80h] void *v36; // [rsp+20h] [rbp-78h] __m128 v37; // [rsp+28h] [rbp-70h] _BYTE *v38; // [rsp+38h] [rbp-60h] BYREF __m128 v39; // [rsp+40h] [rbp-58h] void *v40; // [rsp+50h] [rbp-48h] v13 = *((unsigned int *)this + 13); LOWORD(v34) = 1; DWORD1(v34) = Cache::getTag((Cache *)this, a2); DWORD2(v34) = Cache::getId((Cache *)this, a2); HIDWORD(v34) = v13; std::vector<unsigned char>::vector(&v38, v13, &v32); v19 = v38; v36 = v38; v20 = v39; v37 = v39; if ( v13 ) { v21 = 0; if ( (_DWORD)v13 != 1 ) { LODWORD(v14) = v13; v22 = v13; do { v22 >>= 1; ++v21; v23 = (unsigned int)v14 <= 3; v14 = v22; } while ( !v23 ); } } else { v21 = -1; } v33 = a2; v24 = a2 >> v21 << v21; v25 = v24 + (unsigned int)v13; if ( v24 < (unsigned int)v25 ) { v26 = v24; v27 = 0LL; do { v28 = this[5]; if ( v28 ) { v19[v27] = Cache::getByte(v28, v26 + v27, a3); } else { v19[v27] = MemoryManager::getByteNoCache( this[4], v26 + (unsigned int)v27, v14, v25, v15, v16, v20, a5, a6, a7, v17, v18, a10, a11); if ( a3 ) *a3 = 100; } ++v27; } while ( (_DWORD)v13 != (_DWORD)v27 ); } Id = Cache::getId((Cache *)this, v33); v30 = 48LL * (unsigned int)Cache::getReplacementBlockId( (Cache *)this, Id * *((_DWORD *)this + 15), *((_DWORD *)this + 15) * (Id + 1)); Cache::Block::Block(&v38, (char *)this[9] + v30); if ( *((_BYTE *)this + 28) == 1 && (_WORD)v38 == 257 ) { Cache::writeBlockToLowerLevel(this, &v38); this[2] = (MemoryManager *)((char *)this[2] + *((unsigned int *)this + 17)); } v31 = (long long)this[9] + v30 + 24; *(_DWORD *)(v31 - 8) = v35; *(_OWORD *)(v31 - 24) = v34; std::vector<unsigned char>::operator=(); if ( v40 ) operator delete(v40); if ( v36 ) operator delete(v36); }
loadBlockFromLowerLevel: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R14,RDX MOV EBP,ESI MOV RBX,RDI MOV R15D,dword ptr [RDI + 0x34] MOV word ptr [RSP + 0x8],0x1 CALL 0x00113622 MOV dword ptr [RSP + 0xc],EAX MOV RDI,RBX MOV ESI,EBP CALL 0x00113686 MOV dword ptr [RSP + 0x10],EAX MOV dword ptr [RSP + 0x14],R15D LEA R13,[RSP + 0x38] LEA RDX,[RSP + 0x3] MOV RDI,R13 MOV RSI,R15 CALL 0x00113ef2 MOV R12,qword ptr [R13] MOV qword ptr [RSP + 0x20],R12 MOVUPS XMM0,xmmword ptr [R13 + 0x8] MOVUPS xmmword ptr [RSP + 0x28],XMM0 TEST R15,R15 JZ 0x00113889 XOR ECX,ECX CMP R15D,0x1 JZ 0x0011388e MOV EDX,R15D MOV EAX,R15D LAB_0011387c: SHR EAX,0x1 INC ECX CMP EDX,0x3 MOV EDX,EAX JA 0x0011387c JMP 0x0011388e LAB_00113889: MOV ECX,0xffffffff LAB_0011388e: MOV dword ptr [RSP + 0x4],EBP MOV EAX,EBP SHR EAX,CL SHL EAX,CL LEA ECX,[RAX + R15*0x1] CMP EAX,ECX JNC 0x001138e7 MOV R13D,EAX XOR EBP,EBP LAB_001138a5: MOV RDI,qword ptr [RBX + 0x28] TEST RDI,RDI JZ 0x001138c1 LEA ESI,[R13 + RBP*0x1] LAB_001138b3: MOV RDX,R14 CALL 0x001136e2 MOV byte ptr [R12 + RBP*0x1],AL JMP 0x001138df LAB_001138c1: MOV RDI,qword ptr [RBX + 0x20] LEA ESI,[R13 + RBP*0x1] CALL 0x0010ec04 MOV byte ptr [R12 + RBP*0x1],AL TEST R14,R14 JZ 0x001138df MOV dword ptr [R14],0x64 LAB_001138df: INC RBP CMP R15D,EBP JNZ 0x001138a5 LAB_001138e7: MOV RDI,RBX MOV ESI,dword ptr [RSP + 0x4] CALL 0x00113686 MOV ESI,dword ptr [RBX + 0x3c] LEA EDX,[RAX + 0x1] IMUL EDX,ESI IMUL ESI,EAX MOV RDI,RBX CALL 0x00113db2 MOV EAX,EAX LEA R14,[RAX + RAX*0x2] SHL R14,0x4 MOV RSI,qword ptr [RBX + 0x48] ADD RSI,R14 LAB_00113918: LEA RDI,[RSP + 0x38] CALL 0x00113f52 CMP byte ptr [RBX + 0x1c],0x1 JNZ 0x0011394a CMP byte ptr [RSP + 0x38],0x1 JNZ 0x0011394a CMP byte ptr [RSP + 0x39],0x1 JNZ 0x0011394a LAB_00113936: LEA RSI,[RSP + 0x38] MOV RDI,RBX CALL 0x00113b30 MOV EAX,dword ptr [RBX + 0x44] ADD qword ptr [RBX + 0x10],RAX LAB_0011394a: LEA RSI,[RSP + 0x20] MOV RAX,qword ptr [RBX + 0x48] MOV ECX,dword ptr [RSI + -0x8] LEA RDI,[RAX + R14*0x1] ADD RDI,0x18 MOV dword ptr [RDI + -0x8],ECX MOVUPS XMM0,xmmword ptr [RSI + -0x18] MOVUPS xmmword ptr [RDI + -0x18],XMM0 CALL 0x00113fae LAB_0011396e: MOV RDI,qword ptr [RSP + 0x50] TEST RDI,RDI JZ 0x0011397d CALL 0x0010b1a0 LAB_0011397d: MOV RDI,qword ptr [RSP + 0x20] TEST RDI,RDI JZ 0x0011398c CALL 0x0010b1a0 LAB_0011398c: ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*) */ void __thiscall Cache::loadBlockFromLowerLevel(Cache *this,uint param_1,uint *param_2) { int8 *puVar1; uint uVar2; void *pvVar3; int1 uVar4; int4 uVar5; int4 uVar6; uint uVar7; int iVar8; byte bVar9; allocator *paVar11; long lVar12; int2 uStack_8e; int4 local_80; void *local_78; int8 local_70; int8 uStack_68; Block local_60; char cStack_5f; int6 uStack_5e; int8 local_58; int8 uStack_50; void *local_48; byte bVar10; uVar2 = *(uint *)(this + 0x34); paVar11 = (allocator *)(ulong)uVar2; uVar5 = getTag(this,param_1); uVar6 = getId(this,param_1); std::vector<unsigned_char,std::allocator<unsigned_char>>::vector((ulong)&local_60,paVar11); pvVar3 = (void *)CONCAT62(uStack_5e,CONCAT11(cStack_5f,local_60)); local_70 = local_58; uStack_68 = uStack_50; if (paVar11 == (allocator *)0x0) { bVar9 = 0xff; } else { bVar10 = 0; bVar9 = 0; if (uVar2 != 1) { do { bVar9 = bVar10 + 1; uVar7 = (uint)paVar11; paVar11 = (allocator *)((ulong)paVar11 >> 1); bVar10 = bVar9; } while (3 < uVar7); } } uVar7 = (param_1 >> (bVar9 & 0x1f)) << (bVar9 & 0x1f); local_78 = pvVar3; if (uVar7 < uVar7 + uVar2) { lVar12 = 0; do { if (*(Cache **)(this + 0x28) == (Cache *)0x0) { uVar4 = MemoryManager::getByteNoCache(*(MemoryManager **)(this + 0x20),uVar7 + (int)lVar12); *(int1 *)((long)pvVar3 + lVar12) = uVar4; if (param_2 != (uint *)0x0) { *param_2 = 100; } } else { /* try { // try from 001138b3 to 001138ce has its CatchHandler @ 001139b9 */ uVar4 = getByte(*(Cache **)(this + 0x28),uVar7 + (int)lVar12,param_2); *(int1 *)((long)pvVar3 + lVar12) = uVar4; } lVar12 = lVar12 + 1; } while (uVar2 != (uint)lVar12); } iVar8 = getId(this,param_1); uVar7 = getReplacementBlockId (this,*(int *)(this + 0x3c) * iVar8,(iVar8 + 1) * *(int *)(this + 0x3c)); /* try { // try from 00113918 to 00113921 has its CatchHandler @ 0011399b */ Block::Block(&local_60,(Block *)(*(long *)(this + 0x48) + (ulong)uVar7 * 0x30)); if (((this[0x1c] == (Cache)0x1) && (local_60 == (Block)0x1)) && (cStack_5f == '\x01')) { /* try { // try from 00113936 to 0011396d has its CatchHandler @ 001139a0 */ writeBlockToLowerLevel(this,&local_60); *(ulong *)(this + 0x10) = *(long *)(this + 0x10) + (ulong)*(uint *)(this + 0x44); } puVar1 = (int8 *)(*(long *)(this + 0x48) + (ulong)uVar7 * 0x30); *(int4 *)(puVar1 + 2) = local_80; *puVar1 = CONCAT44(uVar5,CONCAT22(uStack_8e,1)); puVar1[1] = CONCAT44(uVar2,uVar6); std::vector<unsigned_char,std::allocator<unsigned_char>>::operator= ((vector<unsigned_char,std::allocator<unsigned_char>> *)(puVar1 + 3),(vector *)&local_78 ); if (local_48 != (void *)0x0) { operator_delete(local_48); } if (local_78 != (void *)0x0) { operator_delete(local_78); } return; }
3,172
js_dataview_get_buffer
bluesky950520[P]quickjs/quickjs.c
static JSValue js_dataview_get_buffer(JSContext *ctx, JSValue this_val) { JSObject *p; JSTypedArray *ta; p = get_dataview(ctx, this_val); if (!p) return JS_EXCEPTION; ta = p->u.typed_array; return js_dup(JS_MKPTR(JS_TAG_OBJECT, ta->buffer)); }
O1
c
js_dataview_get_buffer: pushq %rbx subq $0x10, %rsp movq %rsi, 0x8(%rsp) cmpl $-0x1, %edx jne 0x82cf8 movq 0x8(%rsp), %rbx cmpw $0x21, 0x6(%rbx) je 0x82d08 leaq 0x1e342(%rip), %rsi # 0xa1041 xorl %ebx, %ebx xorl %eax, %eax callq 0x21953 testq %rbx, %rbx je 0x82d20 movq 0x30(%rbx), %rax movq 0x18(%rax), %rax incl (%rax) movq $-0x1, %rdx jmp 0x82d27 movl $0x6, %edx xorl %eax, %eax addq $0x10, %rsp popq %rbx retq
js_dataview_get_buffer: push rbx sub rsp, 10h mov [rsp+18h+var_10], rsi cmp edx, 0FFFFFFFFh jnz short loc_82CF8 mov rbx, [rsp+18h+var_10] cmp word ptr [rbx+6], 21h ; '!' jz short loc_82D08 loc_82CF8: lea rsi, aNotADataview; "not a DataView" xor ebx, ebx xor eax, eax call JS_ThrowTypeError loc_82D08: test rbx, rbx jz short loc_82D20 mov rax, [rbx+30h] mov rax, [rax+18h] inc dword ptr [rax] mov rdx, 0FFFFFFFFFFFFFFFFh jmp short loc_82D27 loc_82D20: mov edx, 6 xor eax, eax loc_82D27: add rsp, 10h pop rbx retn
_DWORD * js_dataview_get_buffer( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rbx _DWORD *result; // rax char v16; // [rsp+0h] [rbp-18h] if ( (_DWORD)a3 != -1 || (v14 = a2, *(_WORD *)(a2 + 6) != 33) ) { v14 = 0LL; JS_ThrowTypeError(a1, (long long)"not a DataView", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v16); } if ( !v14 ) return 0LL; result = *(_DWORD **)(*(_QWORD *)(v14 + 48) + 24LL); ++*result; return result; }
js_dataview_get_buffer: PUSH RBX SUB RSP,0x10 MOV qword ptr [RSP + 0x8],RSI CMP EDX,-0x1 JNZ 0x00182cf8 MOV RBX,qword ptr [RSP + 0x8] CMP word ptr [RBX + 0x6],0x21 JZ 0x00182d08 LAB_00182cf8: LEA RSI,[0x1a1041] XOR EBX,EBX XOR EAX,EAX CALL 0x00121953 LAB_00182d08: TEST RBX,RBX JZ 0x00182d20 MOV RAX,qword ptr [RBX + 0x30] MOV RAX,qword ptr [RAX + 0x18] INC dword ptr [RAX] MOV RDX,-0x1 JMP 0x00182d27 LAB_00182d20: MOV EDX,0x6 XOR EAX,EAX LAB_00182d27: ADD RSP,0x10 POP RBX RET
int1 [16] js_dataview_get_buffer(int8 param_1,long param_2,int param_3) { int *piVar1; int8 uVar2; int1 auVar3 [16]; if ((param_3 != -1) || (*(short *)(param_2 + 6) != 0x21)) { param_2 = 0; JS_ThrowTypeError(param_1,"not a DataView"); } if (param_2 == 0) { uVar2 = 6; piVar1 = (int *)0x0; } else { piVar1 = *(int **)(*(long *)(param_2 + 0x30) + 0x18); *piVar1 = *piVar1 + 1; uVar2 = 0xffffffffffffffff; } auVar3._8_8_ = uVar2; auVar3._0_8_ = piVar1; return auVar3; }
3,173
diag
eloqsql/unittest/mytap/tap.c
void diag(char const *fmt, ...) { va_list ap; va_start(ap, fmt); fprintf(tapout, "# "); vfprintf(tapout, fmt, ap); emit_endl(); va_end(ap); }
O0
c
diag: pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp testb %al, %al je 0x26915 movaps %xmm0, -0xa0(%rbp) movaps %xmm1, -0x90(%rbp) movaps %xmm2, -0x80(%rbp) movaps %xmm3, -0x70(%rbp) movaps %xmm4, -0x60(%rbp) movaps %xmm5, -0x50(%rbp) movaps %xmm6, -0x40(%rbp) movaps %xmm7, -0x30(%rbp) movq %r9, -0xa8(%rbp) movq %r8, -0xb0(%rbp) movq %rcx, -0xb8(%rbp) movq %rdx, -0xc0(%rbp) movq %rsi, -0xc8(%rbp) movq %rdi, -0x8(%rbp) leaq -0xd0(%rbp), %rax movq %rax, -0x10(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x18(%rbp) movl $0x30, -0x1c(%rbp) movl $0x8, -0x20(%rbp) movq 0x1b2654(%rip), %rax # 0x1d8fb8 movq %rax, -0xd8(%rbp) movq (%rax), %rdi leaq 0x5bc83(%rip), %rsi # 0x825f8 xorl %eax, %eax callq 0x25470 movq -0xd8(%rbp), %rax movq (%rax), %rdi movq -0x8(%rbp), %rsi leaq -0x20(%rbp), %rdx callq 0x25430 callq 0x271d0 addq $0xe0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
diag: push rbp mov rbp, rsp sub rsp, 0E0h test al, al jz short loc_26915 movaps [rbp+var_A0], xmm0 movaps [rbp+var_90], xmm1 movaps [rbp+var_80], xmm2 movaps [rbp+var_70], xmm3 movaps [rbp+var_60], xmm4 movaps [rbp+var_50], xmm5 movaps [rbp+var_40], xmm6 movaps [rbp+var_30], xmm7 loc_26915: mov [rbp+var_A8], r9 mov [rbp+var_B0], r8 mov [rbp+var_B8], rcx mov [rbp+var_C0], rdx mov [rbp+var_C8], rsi mov [rbp+var_8], rdi lea rax, [rbp+var_D0] mov [rbp+var_10], rax lea rax, [rbp+arg_0] mov [rbp+var_18], rax mov [rbp+var_1C], 30h ; '0' mov [rbp+var_20], 8 mov rax, cs:stdout_ptr mov [rbp+var_D8], rax mov rdi, [rax] lea rsi, asc_825F8; "# " xor eax, eax call _fprintf mov rax, [rbp+var_D8] mov rdi, [rax] mov rsi, [rbp+var_8] lea rdx, [rbp+var_20] call _vfprintf call emit_endl add rsp, 0E0h pop rbp retn
long long diag( 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, char a15) { char v16; // [rsp+10h] [rbp-D0h] BYREF long long v17; // [rsp+18h] [rbp-C8h] long long v18; // [rsp+20h] [rbp-C0h] long long v19; // [rsp+28h] [rbp-B8h] long long v20; // [rsp+30h] [rbp-B0h] long long v21; // [rsp+38h] [rbp-A8h] __m128 v22; // [rsp+40h] [rbp-A0h] __m128 v23; // [rsp+50h] [rbp-90h] __m128 v24; // [rsp+60h] [rbp-80h] __m128 v25; // [rsp+70h] [rbp-70h] __m128 v26; // [rsp+80h] [rbp-60h] __m128 v27; // [rsp+90h] [rbp-50h] __m128 v28; // [rsp+A0h] [rbp-40h] __m128 v29; // [rsp+B0h] [rbp-30h] _DWORD v30[2]; // [rsp+C0h] [rbp-20h] BYREF char *v31; // [rsp+C8h] [rbp-18h] char *v32; // [rsp+D0h] [rbp-10h] long long v33; // [rsp+D8h] [rbp-8h] v22 = a7; v23 = a8; v24 = a9; v25 = a10; v26 = a11; v27 = a12; v28 = a13; v29 = a14; v21 = a6; v20 = a5; v19 = a4; v18 = a3; v17 = a2; v33 = a1; v32 = &v16; v31 = &a15; v30[1] = 48; v30[0] = 8; fprintf(stdout, "# "); vfprintf(stdout, v33, v30); return emit_endl(); }
diag: PUSH RBP MOV RBP,RSP SUB RSP,0xe0 TEST AL,AL JZ 0x00126915 MOVAPS xmmword ptr [RBP + -0xa0],XMM0 MOVAPS xmmword ptr [RBP + -0x90],XMM1 MOVAPS xmmword ptr [RBP + -0x80],XMM2 MOVAPS xmmword ptr [RBP + -0x70],XMM3 MOVAPS xmmword ptr [RBP + -0x60],XMM4 MOVAPS xmmword ptr [RBP + -0x50],XMM5 MOVAPS xmmword ptr [RBP + -0x40],XMM6 MOVAPS xmmword ptr [RBP + -0x30],XMM7 LAB_00126915: MOV qword ptr [RBP + -0xa8],R9 MOV qword ptr [RBP + -0xb0],R8 MOV qword ptr [RBP + -0xb8],RCX MOV qword ptr [RBP + -0xc0],RDX MOV qword ptr [RBP + -0xc8],RSI MOV qword ptr [RBP + -0x8],RDI LEA RAX,[RBP + -0xd0] MOV qword ptr [RBP + -0x10],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x18],RAX MOV dword ptr [RBP + -0x1c],0x30 MOV dword ptr [RBP + -0x20],0x8 MOV RAX,qword ptr [0x002d8fb8] MOV qword ptr [RBP + -0xd8],RAX MOV RDI,qword ptr [RAX] LEA RSI,[0x1825f8] XOR EAX,EAX CALL 0x00125470 MOV RAX,qword ptr [RBP + -0xd8] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x8] LEA RDX,[RBP + -0x20] CALL 0x00125430 CALL 0x001271d0 ADD RSP,0xe0 POP RBP RET
void diag(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8,char *param_9, int8 param_10,int8 param_11,int8 param_12,int8 param_13, int8 param_14) { int *puVar1; char in_AL; int1 local_d8 [8]; int8 local_d0; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_b0; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int4 local_28; int4 local_24; int1 *local_20; int1 *local_18; char *local_10; puVar1 = PTR_stdout_002d8fb8; if (in_AL != '\0') { local_a8 = param_1; local_98 = param_2; local_88 = param_3; local_78 = param_4; local_68 = param_5; local_58 = param_6; local_48 = param_7; local_38 = param_8; } local_18 = local_d8; local_20 = &stack0x00000008; local_24 = 0x30; local_28 = 8; local_d0 = param_10; local_c8 = param_11; local_c0 = param_12; local_b8 = param_13; local_b0 = param_14; local_10 = param_9; fprintf(*(FILE **)PTR_stdout_002d8fb8,"# "); vfprintf(*(FILE **)puVar1,local_10,&local_28); emit_endl(); return; }
3,174
common_sampler_type_to_str[abi:cxx11](common_sampler_type)
monkey531[P]llama/common/sampling.cpp
std::string common_sampler_type_to_str(enum common_sampler_type cnstr) { switch (cnstr) { case COMMON_SAMPLER_TYPE_DRY: return "dry"; case COMMON_SAMPLER_TYPE_TOP_K: return "top_k"; case COMMON_SAMPLER_TYPE_TYPICAL_P: return "typ_p"; case COMMON_SAMPLER_TYPE_TOP_P: return "top_p"; case COMMON_SAMPLER_TYPE_MIN_P: return "min_p"; case COMMON_SAMPLER_TYPE_TEMPERATURE: return "temperature"; case COMMON_SAMPLER_TYPE_XTC: return "xtc"; case COMMON_SAMPLER_TYPE_INFILL: return "infill"; case COMMON_SAMPLER_TYPE_PENALTIES: return "penalties"; default : return ""; } }
O3
cpp
common_sampler_type_to_str[abi:cxx11](common_sampler_type): pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) decl %esi cmpl $0x9, %esi ja 0xd0bca leaq 0x267c2(%rip), %rax # 0xf72e8 movslq (%rax,%rsi,4), %rcx addq %rax, %rcx jmpq *%rcx leaq 0x26b89(%rip), %rsi # 0xf76bf leaq 0x26b85(%rip), %rdx # 0xf76c2 jmp 0xd0bbd leaq 0x26b89(%rip), %rsi # 0xf76cf leaq 0x26b87(%rip), %rdx # 0xf76d4 jmp 0xd0bbd leaq 0x26b85(%rip), %rsi # 0xf76db leaq 0x26b89(%rip), %rdx # 0xf76e6 jmp 0xd0bbd leaq 0x26b5d(%rip), %rsi # 0xf76c3 leaq 0x26b5b(%rip), %rdx # 0xf76c8 jmp 0xd0bbd leaq 0x26b71(%rip), %rsi # 0xf76e7 leaq 0x26b6d(%rip), %rdx # 0xf76ea jmp 0xd0bbd leaq 0x19203(%rip), %rsi # 0xe9d89 leaq 0x19202(%rip), %rdx # 0xe9d8f jmp 0xd0bbd leaq 0x26b3f(%rip), %rsi # 0xf76d5 leaq 0x26b3d(%rip), %rdx # 0xf76da jmp 0xd0bbd leaq 0x26b23(%rip), %rsi # 0xf76c9 leaq 0x26b21(%rip), %rdx # 0xf76ce jmp 0xd0bbd leaq 0x26b35(%rip), %rsi # 0xf76eb leaq 0x26b37(%rip), %rdx # 0xf76f4 movq %rbx, %rdi callq 0x22b0c movq %rbx, %rax popq %rbx retq leaq 0x1d1db(%rip), %rdx # 0xeddac movq %rbx, %rdi movq %rdx, %rsi jmp 0xd0bc0
_Z26common_sampler_type_to_strB5cxx1119common_sampler_type: push rbx mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax dec esi; switch 10 cases cmp esi, 9 ja def_D0B2D; jumptable 00000000000D0B2D default case, case 5 lea rax, jpt_D0B2D movsxd rcx, ds:(jpt_D0B2D - 0F72E8h)[rax+rsi*4] add rcx, rax jmp rcx; switch jump loc_D0B2F: lea rsi, aDry; jumptable 00000000000D0B2D case 1 lea rdx, aDry+3; "" jmp short loc_D0BBD loc_D0B3F: lea rsi, aTopP_0; jumptable 00000000000D0B2D case 3 lea rdx, aTopP_0+5; "" jmp short loc_D0BBD loc_D0B4F: lea rsi, aTemperature; jumptable 00000000000D0B2D case 7 lea rdx, aTemperature+0Bh; "" jmp short loc_D0BBD loc_D0B5F: lea rsi, aTopK_0; jumptable 00000000000D0B2D case 2 lea rdx, aTopK_0+5; "" jmp short loc_D0BBD loc_D0B6F: lea rsi, aXtc; jumptable 00000000000D0B2D case 8 lea rdx, aXtc+3; "" jmp short loc_D0BBD loc_D0B7F: lea rsi, aSpmInfill+6; jumptable 00000000000D0B2D case 9 lea rdx, aSpmInfill+0Ch; "" jmp short loc_D0BBD loc_D0B8F: lea rsi, aMinP_0; jumptable 00000000000D0B2D case 4 lea rdx, aMinP_0+5; "" jmp short loc_D0BBD loc_D0B9F: lea rsi, aTypP; jumptable 00000000000D0B2D case 6 lea rdx, aTypP+5; "" jmp short loc_D0BBD loc_D0BAF: lea rsi, aPenalties; jumptable 00000000000D0B2D case 10 lea rdx, aPenalties+9; "" loc_D0BBD: mov rdi, rbx loc_D0BC0: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, rbx pop rbx retn def_D0B2D: lea rdx, aErrorWhileHand_0+34h; jumptable 00000000000D0B2D default case, case 5 mov rdi, rbx mov rsi, rdx jmp short loc_D0BC0
_QWORD * common_sampler_type_to_str[abi:cxx11](_QWORD *a1, int a2) { char *v2; // rsi char *v3; // rdx *a1 = a1 + 2; switch ( a2 ) { case 1: v2 = "dry"; v3 = ""; break; case 2: v2 = "top_k"; v3 = ""; break; case 3: v2 = "top_p"; v3 = ""; break; case 4: v2 = "min_p"; v3 = ""; break; case 6: v2 = "typ_p"; v3 = ""; break; case 7: v2 = "temperature"; v3 = ""; break; case 8: v2 = "xtc"; v3 = ""; break; case 9: v2 = "infill"; v3 = ""; break; case 10: v2 = "penalties"; v3 = ""; break; default: v3 = ""; v2 = ""; break; } std::string::_M_construct<char const*>((long long)a1, v2, (long long)v3); return a1; }
common_sampler_type_to_str[abi:cxx11]: PUSH RBX MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX DEC ESI CMP ESI,0x9 JA 0x001d0bca LEA RAX,[0x1f72e8] MOVSXD RCX,dword ptr [RAX + RSI*0x4] ADD RCX,RAX switchD: JMP RCX caseD_1: LEA RSI,[0x1f76bf] LEA RDX,[0x1f76c2] JMP 0x001d0bbd caseD_3: LEA RSI,[0x1f76cf] LEA RDX,[0x1f76d4] JMP 0x001d0bbd caseD_7: LEA RSI,[0x1f76db] LEA RDX,[0x1f76e6] JMP 0x001d0bbd caseD_2: LEA RSI,[0x1f76c3] LEA RDX,[0x1f76c8] JMP 0x001d0bbd caseD_8: LEA RSI,[0x1f76e7] LEA RDX,[0x1f76ea] JMP 0x001d0bbd caseD_9: LEA RSI,[0x1e9d89] LEA RDX,[0x1e9d8f] JMP 0x001d0bbd caseD_4: LEA RSI,[0x1f76d5] LEA RDX,[0x1f76da] JMP 0x001d0bbd caseD_6: LEA RSI,[0x1f76c9] LEA RDX,[0x1f76ce] JMP 0x001d0bbd caseD_a: LEA RSI,[0x1f76eb] LEA RDX,[0x1f76f4] LAB_001d0bbd: MOV RDI,RBX LAB_001d0bc0: CALL 0x00122b0c MOV RAX,RBX POP RBX RET caseD_5: LEA RDX,[0x1eddac] MOV RDI,RBX MOV RSI,RDX JMP 0x001d0bc0
/* common_sampler_type_to_str[abi:cxx11](common_sampler_type) */ long * common_sampler_type_to_str_abi_cxx11_(long *param_1,int4 param_2) { char *pcVar1; char *pcVar2; *param_1 = (long)(param_1 + 2); switch(param_2) { case 1: pcVar2 = "dry"; pcVar1 = ""; break; case 2: pcVar2 = "top_k"; pcVar1 = ""; break; case 3: pcVar2 = "top_p"; pcVar1 = ""; break; case 4: pcVar2 = "min_p"; pcVar1 = ""; break; default: pcVar1 = ""; pcVar2 = pcVar1; break; case 6: pcVar2 = "typ_p"; pcVar1 = ""; break; case 7: pcVar2 = "temperature"; pcVar1 = ""; break; case 8: pcVar2 = "xtc"; pcVar1 = ""; break; case 9: pcVar2 = "infill"; pcVar1 = ""; break; case 10: pcVar2 = "penalties"; pcVar1 = ""; } std::__cxx11::string::_M_construct<char_const*>(param_1,pcVar2,pcVar1); return param_1; }
3,175
ma_mark_file_changed
eloqsql/storage/maria/ma_locking.c
int _ma_mark_file_changed(register MARIA_SHARE *share) { if (!share->base.born_transactional) { if (!_MA_ALREADY_MARKED_FILE_CHANGED) return _ma_mark_file_changed_now(share); } else { /* For transactional tables, the table is marked changed when the first page is written. Here we just mark the state to be updated so that caller can do 'analyze table' and find that is has changed before any pages are written. */ if (! test_all_bits(share->state.changed, (STATE_CHANGED | STATE_NOT_ANALYZED | STATE_NOT_OPTIMIZED_KEYS))) { mysql_mutex_lock(&share->intern_lock); share->state.changed|=(STATE_CHANGED | STATE_NOT_ANALYZED | STATE_NOT_OPTIMIZED_KEYS); mysql_mutex_unlock(&share->intern_lock); } } return 0; }
O0
c
ma_mark_file_changed: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax cmpb $0x0, 0x44c(%rax) jne 0x3af0b movq -0x10(%rbp), %rax movl 0x170(%rax), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x3aefb movq -0x10(%rbp), %rax movsbl 0x7df(%rax), %eax cmpl $0x0, %eax jne 0x3af09 movq -0x10(%rbp), %rdi callq 0x3af70 movl %eax, -0x4(%rbp) jmp 0x3af65 jmp 0x3af5e movq -0x10(%rbp), %rax movl 0x170(%rax), %eax andl $0x19, %eax cmpl $0x19, %eax je 0x3af5c movq -0x10(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 leaq 0xe3b55(%rip), %rsi # 0x11ea84 movl $0x19c, %edx # imm = 0x19C callq 0x3abe0 movq -0x10(%rbp), %rax movl 0x170(%rax), %ecx orl $0x19, %ecx movl %ecx, 0x170(%rax) movq -0x10(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 callq 0x3ad80 jmp 0x3af5e movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x10, %rsp popq %rbp retq nop
_ma_mark_file_changed: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_10], rdi mov rax, [rbp+var_10] cmp byte ptr [rax+44Ch], 0 jnz short loc_3AF0B mov rax, [rbp+var_10] mov eax, [rax+170h] and eax, 1 cmp eax, 0 jz short loc_3AEFB mov rax, [rbp+var_10] movsx eax, byte ptr [rax+7DFh] cmp eax, 0 jnz short loc_3AF09 loc_3AEFB: mov rdi, [rbp+var_10] call _ma_mark_file_changed_now mov [rbp+var_4], eax jmp short loc_3AF65 loc_3AF09: jmp short loc_3AF5E loc_3AF0B: mov rax, [rbp+var_10] mov eax, [rax+170h] and eax, 19h cmp eax, 19h jz short loc_3AF5C mov rdi, [rbp+var_10] add rdi, 8F0h lea rsi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 19Ch call inline_mysql_mutex_lock_1 mov rax, [rbp+var_10] mov ecx, [rax+170h] or ecx, 19h mov [rax+170h], ecx mov rdi, [rbp+var_10] add rdi, 8F0h call inline_mysql_mutex_unlock_1 loc_3AF5C: jmp short $+2 loc_3AF5E: mov [rbp+var_4], 0 loc_3AF65: mov eax, [rbp+var_4] add rsp, 10h pop rbp retn
long long ma_mark_file_changed(long long a1) { if ( *(_BYTE *)(a1 + 1100) ) { if ( (*(_DWORD *)(a1 + 368) & 0x19) != 0x19 ) { inline_mysql_mutex_lock_1( a1 + 2288, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_locking.c", 0x19Cu); *(_DWORD *)(a1 + 368) |= 0x19u; inline_mysql_mutex_unlock_1(a1 + 2288); } return 0; } if ( (*(_DWORD *)(a1 + 368) & 1) != 0 && *(_BYTE *)(a1 + 2015) ) return 0; return (unsigned int)ma_mark_file_changed_now(a1); }
_ma_mark_file_changed: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x44c],0x0 JNZ 0x0013af0b MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x170] AND EAX,0x1 CMP EAX,0x0 JZ 0x0013aefb MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x7df] CMP EAX,0x0 JNZ 0x0013af09 LAB_0013aefb: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013af70 MOV dword ptr [RBP + -0x4],EAX JMP 0x0013af65 LAB_0013af09: JMP 0x0013af5e LAB_0013af0b: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x170] AND EAX,0x19 CMP EAX,0x19 JZ 0x0013af5c MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x8f0 LEA RSI,[0x21ea84] MOV EDX,0x19c CALL 0x0013abe0 MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x170] OR ECX,0x19 MOV dword ptr [RAX + 0x170],ECX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x8f0 CALL 0x0013ad80 LAB_0013af5c: JMP 0x0013af5e LAB_0013af5e: MOV dword ptr [RBP + -0x4],0x0 LAB_0013af65: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x10 POP RBP RET
int4 _ma_mark_file_changed(long param_1) { int4 uVar1; if (*(char *)(param_1 + 0x44c) == '\0') { if (((*(uint *)(param_1 + 0x170) & 1) == 0) || (*(char *)(param_1 + 0x7df) == '\0')) { uVar1 = _ma_mark_file_changed_now(param_1); return uVar1; } } else if ((*(uint *)(param_1 + 0x170) & 0x19) != 0x19) { inline_mysql_mutex_lock (param_1 + 0x8f0,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_locking.c" ,0x19c); *(uint *)(param_1 + 0x170) = *(uint *)(param_1 + 0x170) | 0x19; inline_mysql_mutex_unlock(param_1 + 0x8f0); } return 0; }
3,176
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 0x681ac testb %al, %al jne 0x6870b cmpb $0x3, 0x40(%rbx) jne 0x686e3 addq $0x40, %rbx movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x68976 movq 0x10(%rbx), %rax testq %rax, %rax jne 0x686f5 movq 0x20(%rbx), %rax testq %rax, %rax je 0x68707 movq (%rax), %rcx cmpq 0x8(%rax), %rcx sete %al addq $0x8, %rsp popq %rbx popq %r14 retq xorl %eax, %eax jmp 0x686ff pushq $0x10 popq %rdi callq 0x24470 movq %rax, %rbx leaq 0x50735(%rip), %rsi # 0xb8e52 movq %rax, %rdi callq 0x24330 movq 0x9b8c4(%rip), %rsi # 0x103ff0 movq 0x9b825(%rip), %rdx # 0x103f58 movq %rbx, %rdi callq 0x24f50 movq %rax, %r14 movq %rbx, %rdi callq 0x246b0 movq %r14, %rdi callq 0x24fe0
_ZNK5minja5Value5emptyEv: push r14 push rbx push rax mov rbx, rdi call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, al jnz short loc_6870B cmp byte ptr [rbx+40h], 3 jnz short loc_686E3 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_686E3: mov rax, [rbx+10h] test rax, rax jnz short loc_686F5 mov rax, [rbx+20h] test rax, rax jz short loc_68707 loc_686F5: mov rcx, [rax] cmp rcx, [rax+8] setz al loc_686FF: add rsp, 8 pop rbx pop r14 retn loc_68707: xor eax, eax jmp short loc_686FF loc_6870B: 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 0x001681ac TEST AL,AL JNZ 0x0016870b CMP byte ptr [RBX + 0x40],0x3 JNZ 0x001686e3 ADD RBX,0x40 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00168976 LAB_001686e3: MOV RAX,qword ptr [RBX + 0x10] TEST RAX,RAX JNZ 0x001686f5 MOV RAX,qword ptr [RBX + 0x20] TEST RAX,RAX JZ 0x00168707 LAB_001686f5: MOV RCX,qword ptr [RAX] CMP RCX,qword ptr [RAX + 0x8] SETZ AL LAB_001686ff: ADD RSP,0x8 POP RBX POP R14 RET LAB_00168707: XOR EAX,EAX JMP 0x001686ff LAB_0016870b: PUSH 0x10 POP RDI CALL 0x00124470 MOV RBX,RAX LAB_00168716: LEA RSI,[0x1b8e52] MOV RDI,RAX CALL 0x00124330 LAB_00168725: MOV RSI,qword ptr [0x00203ff0] MOV RDX,qword ptr [0x00203f58] MOV RDI,RBX CALL 0x00124f50
/* 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 00168716 to 00168724 has its CatchHandler @ 0016873b */ std::runtime_error::runtime_error(this_00,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58); } 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,177
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; }
O3
cpp
minja::Value::empty() const: pushq %r14 pushq %rbx pushq %rax movq 0x10(%rdi), %rdx movq 0x20(%rdi), %rcx movb 0x40(%rdi), %sil testq %rcx, %rcx jne 0x8d02e testq %rdx, %rdx jne 0x8d02e testb %sil, %sil jne 0x8d02e cmpq $0x0, 0x30(%rdi) je 0x8d05e movq %rdx, %rax orq %rcx, %rax sete %dil xorl %eax, %eax cmpb $0x3, %sil je 0x8d056 testb %dil, %dil jne 0x8d056 testq %rdx, %rdx cmovneq %rdx, %rcx movq (%rcx), %rax cmpq 0x8(%rcx), %rax sete %al addq $0x8, %rsp popq %rbx popq %r14 retq movl $0x10, %edi callq 0x1b450 movq %rax, %rbx leaq 0x67dd0(%rip), %rsi # 0xf4e42 movq %rax, %rdi callq 0x1b330 movq 0xa3f67(%rip), %rsi # 0x130fe8 movq 0xa3ed0(%rip), %rdx # 0x130f58 movq %rbx, %rdi callq 0x1bf60 movq %rax, %r14 movq %rbx, %rdi callq 0x1b690 movq %r14, %rdi callq 0x1bff0
_ZNK5minja5Value5emptyEv: push r14 push rbx push rax mov rdx, [rdi+10h] mov rcx, [rdi+20h] mov sil, [rdi+40h] test rcx, rcx jnz short loc_8D02E test rdx, rdx jnz short loc_8D02E test sil, sil jnz short loc_8D02E cmp qword ptr [rdi+30h], 0 jz short loc_8D05E loc_8D02E: mov rax, rdx or rax, rcx setz dil xor eax, eax cmp sil, 3 jz short loc_8D056 test dil, dil jnz short loc_8D056 test rdx, rdx cmovnz rcx, rdx mov rax, [rcx] cmp rax, [rcx+8] setz al loc_8D056: add rsp, 8 pop rbx pop r14 retn loc_8D05E: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aUndefinedValue; "Undefined value or reference" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception mov rdi, r14 call __Unwind_Resume
bool minja::Value::empty(minja::Value *this) { unsigned long long v1; // rdx _QWORD *v2; // rcx char v3; // si bool result; // al std::runtime_error *exception; // rbx v1 = *((_QWORD *)this + 2); v2 = (_QWORD *)*((_QWORD *)this + 4); v3 = *((_BYTE *)this + 64); if ( __PAIR128__((unsigned long long)v2, v1) == 0 && !v3 && !*((_QWORD *)this + 6) ) { 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); } result = 0; if ( v3 != 3 && __PAIR128__((unsigned long long)v2, v1) != 0 ) { if ( v1 ) v2 = (_QWORD *)*((_QWORD *)this + 2); return *v2 == v2[1]; } return result; }
empty: PUSH R14 PUSH RBX PUSH RAX MOV RDX,qword ptr [RDI + 0x10] MOV RCX,qword ptr [RDI + 0x20] MOV SIL,byte ptr [RDI + 0x40] TEST RCX,RCX JNZ 0x0018d02e TEST RDX,RDX JNZ 0x0018d02e TEST SIL,SIL JNZ 0x0018d02e CMP qword ptr [RDI + 0x30],0x0 JZ 0x0018d05e LAB_0018d02e: MOV RAX,RDX OR RAX,RCX SETZ DIL XOR EAX,EAX CMP SIL,0x3 JZ 0x0018d056 TEST DIL,DIL JNZ 0x0018d056 TEST RDX,RDX CMOVNZ RCX,RDX MOV RAX,qword ptr [RCX] CMP RAX,qword ptr [RCX + 0x8] SETZ AL LAB_0018d056: ADD RSP,0x8 POP RBX POP R14 RET LAB_0018d05e: MOV EDI,0x10 CALL 0x0011b450 MOV RBX,RAX LAB_0018d06b: LEA RSI,[0x1f4e42] MOV RDI,RAX CALL 0x0011b330 LAB_0018d07a: MOV RSI,qword ptr [0x00230fe8] MOV RDX,qword ptr [0x00230f58] MOV RDI,RBX CALL 0x0011bf60
/* minja::Value::empty() const */ int8 __thiscall minja::Value::empty(Value *this) { long *plVar1; int8 uVar2; runtime_error *this_00; long *plVar3; plVar1 = *(long **)(this + 0x10); plVar3 = *(long **)(this + 0x20); if ((((plVar3 == (long *)0x0) && (plVar1 == (long *)0x0)) && (this[0x40] == (Value)0x0)) && (*(long *)(this + 0x30) == 0)) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0018d06b to 0018d079 has its CatchHandler @ 0018d090 */ std::runtime_error::runtime_error(this_00,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00230fe8,PTR__runtime_error_00230f58); } uVar2 = 0; if ((this[0x40] != (Value)0x3) && (plVar1 != (long *)0x0 || plVar3 != (long *)0x0)) { if (plVar1 != (long *)0x0) { plVar3 = plVar1; } uVar2 = CONCAT71((int7)((ulong)*plVar3 >> 8),*plVar3 == plVar3[1]); } return uVar2; }
3,178
LefDefParser::lefwNonDefaultRuleUseViaRule(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwNonDefaultRuleUseViaRule(const char *viaRuleName) { if (!lefwFile) return LEFW_UNINITIALIZED; if (!lefwDidInit) return LEFW_BAD_ORDER; if (lefwState != LEFW_NONDEFAULTRULE_START && lefwState != LEFW_NONDEFAULTRULE) return LEFW_BAD_ORDER; if (lefwWriteEncrypt) encPrint(lefwFile, (char*) " USEVIARULE %s ;\n", viaRuleName); else fprintf(lefwFile, " USEVIARULE %s ;\n", viaRuleName); return LEFW_OK; }
O3
cpp
LefDefParser::lefwNonDefaultRuleUseViaRule(char const*): pushq %rbx movq %rdi, %rdx leaq 0x7391c(%rip), %rax # 0x8d0f0 movq (%rax), %rdi testq %rdi, %rdi je 0x1981b leaq 0x73b61(%rip), %rax # 0x8d344 movl $0x2, %ebx cmpl $0x0, (%rax) je 0x19832 leaq 0x73b4c(%rip), %rax # 0x8d340 movl (%rax), %eax cmpl $0x3b, %eax je 0x19800 cmpl $0xb, %eax jne 0x19832 cmpb $0x1, 0x73bd5(%rip) # 0x8d3dc jne 0x19822 leaq 0x3f865(%rip), %rsi # 0x59075 xorl %ebx, %ebx xorl %eax, %eax callq 0x55afd jmp 0x19832 movl $0x1, %ebx jmp 0x19832 leaq 0x3f84c(%rip), %rsi # 0x59075 xorl %ebx, %ebx xorl %eax, %eax callq 0x22e0 movl %ebx, %eax popq %rbx retq
_ZN12LefDefParser28lefwNonDefaultRuleUseViaRuleEPKc: push rbx mov rdx, rdi lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] test rdi, rdi jz short loc_1981B lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit mov ebx, 2 cmp dword ptr [rax], 0 jz short loc_19832 lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov eax, [rax] cmp eax, 3Bh ; ';' jz short loc_19800 cmp eax, 0Bh jnz short loc_19832 loc_19800: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz short loc_19822 lea rsi, aUseviaruleS+1; " USEVIARULE %s ;\n" xor ebx, ebx xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_19832 loc_1981B: mov ebx, 1 jmp short loc_19832 loc_19822: lea rsi, aUseviaruleS+1; " USEVIARULE %s ;\n" xor ebx, ebx xor eax, eax call _fprintf loc_19832: mov eax, ebx pop rbx retn
long long LefDefParser::lefwNonDefaultRuleUseViaRule( LefDefParser *this, const char *a2, long long a3, int a4, int a5, int a6) { unsigned int v6; // ebx if ( *(_QWORD *)&LefDefParser::lefwFile ) { v6 = 2; if ( LefDefParser::lefwDidInit && (LefDefParser::lefwState == 59 || LefDefParser::lefwState == 11) ) { v6 = 0; if ( LefDefParser::lefwWriteEncrypt == 1 ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" USEVIARULE %s ;\n", (_DWORD)this, a4, a5, a6); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, " USEVIARULE %s ;\n", (const char *)this); } } else { return 1; } return v6; }
lefwNonDefaultRuleUseViaRule: PUSH RBX MOV RDX,RDI LEA RAX,[0x18d0f0] MOV RDI,qword ptr [RAX] TEST RDI,RDI JZ 0x0011981b LEA RAX,[0x18d344] MOV EBX,0x2 CMP dword ptr [RAX],0x0 JZ 0x00119832 LEA RAX,[0x18d340] MOV EAX,dword ptr [RAX] CMP EAX,0x3b JZ 0x00119800 CMP EAX,0xb JNZ 0x00119832 LAB_00119800: CMP byte ptr [0x0018d3dc],0x1 JNZ 0x00119822 LEA RSI,[0x159075] XOR EBX,EBX XOR EAX,EAX CALL 0x00155afd JMP 0x00119832 LAB_0011981b: MOV EBX,0x1 JMP 0x00119832 LAB_00119822: LEA RSI,[0x159075] XOR EBX,EBX XOR EAX,EAX CALL 0x001022e0 LAB_00119832: MOV EAX,EBX POP RBX RET
/* LefDefParser::lefwNonDefaultRuleUseViaRule(char const*) */ int8 LefDefParser::lefwNonDefaultRuleUseViaRule(char *param_1) { int8 uVar1; if (lefwFile == (_IO_FILE *)0x0) { uVar1 = 1; } else { uVar1 = 2; if ((lefwDidInit != 0) && ((lefwState == 0x3b || (lefwState == 0xb)))) { if (lefwWriteEncrypt == '\x01') { uVar1 = 0; encPrint(lefwFile," USEVIARULE %s ;\n"); } else { uVar1 = 0; fprintf(lefwFile," USEVIARULE %s ;\n",param_1); } } } return uVar1; }
3,179
maria_versioning
eloqsql/storage/maria/ma_state.c
void maria_versioning(MARIA_HA *info, my_bool versioning) { MARIA_SHARE *share= info->s; DBUG_ENTER("maria_versioning"); /* For now, this is a hack */ if (share->have_versioning) { enum thr_lock_type save_lock_type; share->lock_key_trees= versioning; /* Set up info->lock.type temporary for _ma_block_get_status() */ save_lock_type= info->lock.type; info->lock.type= versioning ? TL_WRITE_CONCURRENT_INSERT : TL_WRITE; _ma_block_get_status((void*) info, versioning); info->lock.type= save_lock_type; if (versioning) info->state= &share->state.common; else info->state= &share->state.state; /* Change global values by default */ info->state_start= info->state; /* Initial values */ } DBUG_VOID_RETURN; }
O3
c
maria_versioning: pushq %rbp movq %rsp, %rbp movq (%rdi), %rax cmpb $0x0, 0x7e8(%rax) je 0x43ffa movb %sil, 0x7e3(%rax) movl 0x6d0(%rdi), %ecx xorl %r8d, %r8d movl $0x50, %edx testb %sil, %sil sete %r8b leal 0x8(%r8,%r8,4), %esi movl %esi, 0x6d0(%rdi) movq (%rdi), %r8 movl 0x7c4(%r8), %esi movq %rsi, 0x610(%rdi) movl 0x418(%r8), %r8d movl %r8d, 0x618(%rdi) je 0x43fdb orl $0x1, %r8d movl %r8d, 0x618(%rdi) addq $0x6, %rsi movq %rsi, 0x610(%rdi) jmp 0x43fe9 movl $0x18, %edx cmpb $0x0, 0x688(%rdi) je 0x43fc3 movl %ecx, 0x6d0(%rdi) addq %rdx, %rax movq %rax, 0x20(%rdi) movq %rax, 0x60(%rdi) popq %rbp retq
maria_versioning: push rbp mov rbp, rsp mov rax, [rdi] cmp byte ptr [rax+7E8h], 0 jz short loc_43FFA mov [rax+7E3h], sil mov ecx, [rdi+6D0h] xor r8d, r8d mov edx, 50h ; 'P' test sil, sil setz r8b lea esi, [r8+r8*4+8] mov [rdi+6D0h], esi mov r8, [rdi] mov esi, [r8+7C4h] mov [rdi+610h], rsi mov r8d, [r8+418h] mov [rdi+618h], r8d jz short loc_43FDB loc_43FC3: or r8d, 1 mov [rdi+618h], r8d add rsi, 6 mov [rdi+610h], rsi jmp short loc_43FE9 loc_43FDB: mov edx, 18h cmp byte ptr [rdi+688h], 0 jz short loc_43FC3 loc_43FE9: mov [rdi+6D0h], ecx add rax, rdx mov [rdi+20h], rax mov [rdi+60h], rax loc_43FFA: pop rbp retn
long long maria_versioning(long long *a1, char a2) { long long result; // rax int v3; // ecx long long v4; // rdx bool v5; // zf long long v6; // r8 long long v7; // rsi int v8; // r8d result = *a1; if ( *(_BYTE *)(*a1 + 2024) ) { *(_BYTE *)(result + 2019) = a2; v3 = *((_DWORD *)a1 + 436); v4 = 80LL; v5 = a2 == 0; *((_DWORD *)a1 + 436) = 5 * (a2 == 0) + 8; v6 = *a1; v7 = *(unsigned int *)(*a1 + 1988); a1[194] = v7; v8 = *(_DWORD *)(v6 + 1048); *((_DWORD *)a1 + 390) = v8; if ( !v5 || (v4 = 24LL, !*((_BYTE *)a1 + 1672)) ) { *((_DWORD *)a1 + 390) = v8 | 1; a1[194] = v7 + 6; } *((_DWORD *)a1 + 436) = v3; result += v4; a1[4] = result; a1[12] = result; } return result; }
maria_versioning: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI] CMP byte ptr [RAX + 0x7e8],0x0 JZ 0x00143ffa MOV byte ptr [RAX + 0x7e3],SIL MOV ECX,dword ptr [RDI + 0x6d0] XOR R8D,R8D MOV EDX,0x50 TEST SIL,SIL SETZ R8B LEA ESI,[R8 + R8*0x4 + 0x8] MOV dword ptr [RDI + 0x6d0],ESI MOV R8,qword ptr [RDI] MOV ESI,dword ptr [R8 + 0x7c4] MOV qword ptr [RDI + 0x610],RSI MOV R8D,dword ptr [R8 + 0x418] MOV dword ptr [RDI + 0x618],R8D JZ 0x00143fdb LAB_00143fc3: OR R8D,0x1 MOV dword ptr [RDI + 0x618],R8D ADD RSI,0x6 MOV qword ptr [RDI + 0x610],RSI JMP 0x00143fe9 LAB_00143fdb: MOV EDX,0x18 CMP byte ptr [RDI + 0x688],0x0 JZ 0x00143fc3 LAB_00143fe9: MOV dword ptr [RDI + 0x6d0],ECX ADD RAX,RDX MOV qword ptr [RDI + 0x20],RAX MOV qword ptr [RDI + 0x60],RAX LAB_00143ffa: POP RBP RET
void maria_versioning(long *param_1,char param_2) { uint uVar1; long lVar2; long lVar3; long lVar4; ulong uVar5; lVar2 = *param_1; if (*(char *)(lVar2 + 0x7e8) != '\0') { *(char *)(lVar2 + 0x7e3) = param_2; lVar3 = param_1[0xda]; lVar4 = 0x50; *(uint *)(param_1 + 0xda) = (uint)(param_2 == '\0') * 5 + 8; uVar5 = (ulong)*(uint *)(*param_1 + 0x7c4); param_1[0xc2] = uVar5; uVar1 = *(uint *)(*param_1 + 0x418); *(uint *)(param_1 + 0xc3) = uVar1; if ((param_2 != '\0') || (lVar4 = 0x18, (char)param_1[0xd1] == '\0')) { *(uint *)(param_1 + 0xc3) = uVar1 | 1; param_1[0xc2] = uVar5 + 6; } *(int *)(param_1 + 0xda) = (int)lVar3; param_1[4] = lVar2 + lVar4; param_1[0xc] = lVar2 + lVar4; } return; }
3,180
ma_unpin_all_pages
eloqsql/storage/maria/ma_key_recover.c
void _ma_unpin_all_pages(MARIA_HA *info, LSN undo_lsn) { MARIA_PINNED_PAGE *page_link= ((MARIA_PINNED_PAGE*) dynamic_array_ptr(&info->pinned_pages, 0)); MARIA_PINNED_PAGE *pinned_page= page_link + info->pinned_pages.elements; DBUG_ENTER("_ma_unpin_all_pages"); DBUG_PRINT("info", ("undo_lsn: %lu", (ulong) undo_lsn)); if (!info->s->now_transactional) DBUG_ASSERT(undo_lsn == LSN_IMPOSSIBLE || maria_in_recovery); while (pinned_page-- != page_link) { /* Note this assert fails if we got a disk error or the record file is corrupted, which means we should have this enabled only in debug builds. */ #ifdef EXTRA_DEBUG DBUG_ASSERT((!pinned_page->changed || undo_lsn != LSN_IMPOSSIBLE || !info->s->now_transactional) || (info->s->state.changed & STATE_CRASHED_FLAGS)); #endif pagecache_unlock_by_link(info->s->pagecache, pinned_page->link, pinned_page->unlock, PAGECACHE_UNPIN, info->trn->rec_lsn, undo_lsn, pinned_page->changed, FALSE); } info->pinned_pages.elements= 0; DBUG_VOID_RETURN; }
O0
c
ma_unpin_all_pages: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x2e8(%rax), %rax movq -0x8(%rbp), %rcx imull $0x0, 0x2fc(%rcx), %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq -0x8(%rbp), %rcx movl 0x2f0(%rcx), %ecx imulq $0x18, %rcx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) jmp 0x6f58a movq -0x8(%rbp), %rax movq (%rax), %rax cmpb $0x0, 0x7e7(%rax) jne 0x6f5a0 jmp 0x6f59c jmp 0x6f59e jmp 0x6f5a0 jmp 0x6f5a2 movq -0x20(%rbp), %rax movq %rax, %rcx addq $-0x18, %rcx movq %rcx, -0x20(%rbp) cmpq -0x18(%rbp), %rax je 0x6f608 movq -0x8(%rbp), %rax movq (%rax), %rax movq 0x600(%rax), %rdi movq -0x20(%rbp), %rax movq (%rax), %rsi movq -0x20(%rbp), %rax movl 0x8(%rax), %edx movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq 0x90(%rax), %r8 movq -0x10(%rbp), %r9 movq -0x20(%rbp), %rax movl $0x3, %ecx xorl %r10d, %r10d movsbl 0x10(%rax), %eax movl %eax, (%rsp) movl $0x0, 0x8(%rsp) callq 0x58740 jmp 0x6f5a2 movq -0x8(%rbp), %rax movl $0x0, 0x2f0(%rax) jmp 0x6f618 addq $0x30, %rsp popq %rbp retq nop
_ma_unpin_all_pages: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax+2E8h] mov rcx, [rbp+var_8] imul ecx, [rcx+2FCh], 0 mov ecx, ecx add rax, rcx mov [rbp+var_18], rax mov rax, [rbp+var_18] mov rcx, [rbp+var_8] mov ecx, [rcx+2F0h] imul rcx, 18h add rax, rcx mov [rbp+var_20], rax jmp short $+2 loc_6F58A: mov rax, [rbp+var_8] mov rax, [rax] cmp byte ptr [rax+7E7h], 0 jnz short loc_6F5A0 jmp short $+2 loc_6F59C: jmp short $+2 loc_6F59E: jmp short $+2 loc_6F5A0: jmp short $+2 loc_6F5A2: mov rax, [rbp+var_20] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFE8h mov [rbp+var_20], rcx cmp rax, [rbp+var_18] jz short loc_6F608 mov rax, [rbp+var_8] mov rax, [rax] mov rdi, [rax+600h] mov rax, [rbp+var_20] mov rsi, [rax] mov rax, [rbp+var_20] mov edx, [rax+8] mov rax, [rbp+var_8] mov rax, [rax+8] mov r8, [rax+90h] mov r9, [rbp+var_10] mov rax, [rbp+var_20] mov ecx, 3 xor r10d, r10d movsx eax, byte ptr [rax+10h] mov [rsp+30h+var_30], eax mov [rsp+30h+var_28], 0 call pagecache_unlock_by_link jmp short loc_6F5A2 loc_6F608: mov rax, [rbp+var_8] mov dword ptr [rax+2F0h], 0 jmp short $+2 loc_6F618: add rsp, 30h pop rbp retn
long long ma_unpin_all_pages(long long a1, long long a2) { long long v2; // rax long long result; // rax long long i; // [rsp+10h] [rbp-20h] long long v5; // [rsp+18h] [rbp-18h] v5 = *(_QWORD *)(a1 + 744); for ( i = 24LL * *(unsigned int *)(a1 + 752) + v5; ; pagecache_unlock_by_link( *(_QWORD **)(*(_QWORD *)a1 + 1536LL), *(_QWORD *)i, *(_DWORD *)(i + 8), 3, *(_QWORD *)(*(_QWORD *)(a1 + 8) + 144LL), a2, *(_BYTE *)(i + 16), 0) ) { v2 = i; i -= 24LL; if ( v2 == v5 ) break; } result = a1; *(_DWORD *)(a1 + 752) = 0; return result; }
_ma_unpin_all_pages: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x2e8] MOV RCX,qword ptr [RBP + -0x8] IMUL ECX,dword ptr [RCX + 0x2fc],0x0 MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x2f0] IMUL RCX,RCX,0x18 ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX JMP 0x0016f58a LAB_0016f58a: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] CMP byte ptr [RAX + 0x7e7],0x0 JNZ 0x0016f5a0 JMP 0x0016f59c LAB_0016f59c: JMP 0x0016f59e LAB_0016f59e: JMP 0x0016f5a0 LAB_0016f5a0: JMP 0x0016f5a2 LAB_0016f5a2: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,-0x18 MOV qword ptr [RBP + -0x20],RCX CMP RAX,qword ptr [RBP + -0x18] JZ 0x0016f608 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x600] MOV RAX,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV R8,qword ptr [RAX + 0x90] MOV R9,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV ECX,0x3 XOR R10D,R10D MOVSX EAX,byte ptr [RAX + 0x10] MOV dword ptr [RSP],EAX MOV dword ptr [RSP + 0x8],0x0 CALL 0x00158740 JMP 0x0016f5a2 LAB_0016f608: MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x2f0],0x0 JMP 0x0016f618 LAB_0016f618: ADD RSP,0x30 POP RBP RET
void _ma_unpin_all_pages(long *param_1,int8 param_2) { int8 *puVar1; int8 *local_28; puVar1 = (int8 *)param_1[0x5d]; local_28 = puVar1 + (ulong)*(uint *)(param_1 + 0x5e) * 3; while (local_28 != puVar1) { pagecache_unlock_by_link (*(int8 *)(*param_1 + 0x600),local_28[-3],*(int4 *)(local_28 + -2),3, *(int8 *)(param_1[1] + 0x90),param_2,(int)*(char *)(local_28 + -1),0); local_28 = local_28 + -3; } *(int4 *)(param_1 + 0x5e) = 0; return; }
3,181
Simulator::Simulator(MemoryManager*, BranchPredictor*)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Simulator.cpp
Simulator::Simulator(MemoryManager *memory, BranchPredictor *predictor) { this->memory = memory; this->branchPredictor = predictor; this->pc = 0; for (int i = 0; i < REGNUM; ++i) { this->reg[i] = 0; } }
O0
cpp
Simulator::Simulator(MemoryManager*, BranchPredictor*): subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq %rdx, 0x10(%rsp) movq 0x20(%rsp), %rdi movq %rdi, (%rsp) addq $0x318, %rdi # imm = 0x318 callq 0x241b0 movq (%rsp), %rax movq 0x18(%rsp), %rcx movq %rcx, 0x118(%rax) movq 0x10(%rsp), %rcx movq %rcx, 0x120(%rax) movq $0x0, 0x8(%rax) movl $0x0, 0xc(%rsp) cmpl $0x20, 0xc(%rsp) jge 0x1f25a movq (%rsp), %rax movslq 0xc(%rsp), %rcx movq $0x0, 0x10(%rax,%rcx,8) movl 0xc(%rsp), %eax addl $0x1, %eax movl %eax, 0xc(%rsp) jmp 0x1f234 addq $0x28, %rsp retq nop
_ZN9SimulatorC2EP13MemoryManagerP15BranchPredictor: sub rsp, 28h; Alternative name is 'Simulator::Simulator(MemoryManager *, BranchPredictor *)' mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi mov [rsp+28h+var_18], rdx mov rdi, [rsp+28h+var_8] mov [rsp+28h+var_28], rdi add rdi, 318h; this call _ZN9Simulator7HistoryC2Ev; Simulator::History::History(void) mov rax, [rsp+28h+var_28] mov rcx, [rsp+28h+var_10] mov [rax+118h], rcx mov rcx, [rsp+28h+var_18] mov [rax+120h], rcx mov qword ptr [rax+8], 0 mov [rsp+28h+var_1C], 0 loc_1F234: cmp [rsp+28h+var_1C], 20h ; ' ' jge short loc_1F25A mov rax, [rsp+28h+var_28] movsxd rcx, [rsp+28h+var_1C] mov qword ptr [rax+rcx*8+10h], 0 mov eax, [rsp+28h+var_1C] add eax, 1 mov [rsp+28h+var_1C], eax jmp short loc_1F234 loc_1F25A: add rsp, 28h retn
void Simulator::Simulator(Simulator *this, MemoryManager *a2, BranchPredictor *a3) { int i; // [rsp+Ch] [rbp-1Ch] Simulator::History::History((Simulator *)((char *)this + 792)); *((_QWORD *)this + 35) = a2; *((_QWORD *)this + 36) = a3; *((_QWORD *)this + 1) = 0LL; for ( i = 0; i < 32; ++i ) *((_QWORD *)this + i + 2) = 0LL; }
Simulator: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV qword ptr [RSP + 0x10],RDX MOV RDI,qword ptr [RSP + 0x20] MOV qword ptr [RSP],RDI ADD RDI,0x318 CALL 0x001241b0 MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x118],RCX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x120],RCX MOV qword ptr [RAX + 0x8],0x0 MOV dword ptr [RSP + 0xc],0x0 LAB_0011f234: CMP dword ptr [RSP + 0xc],0x20 JGE 0x0011f25a MOV RAX,qword ptr [RSP] MOVSXD RCX,dword ptr [RSP + 0xc] MOV qword ptr [RAX + RCX*0x8 + 0x10],0x0 MOV EAX,dword ptr [RSP + 0xc] ADD EAX,0x1 MOV dword ptr [RSP + 0xc],EAX JMP 0x0011f234 LAB_0011f25a: ADD RSP,0x28 RET
/* Simulator::Simulator(MemoryManager*, BranchPredictor*) */ void __thiscall Simulator::Simulator(Simulator *this,MemoryManager *param_1,BranchPredictor *param_2) { int local_1c; History::History((History *)(this + 0x318)); *(MemoryManager **)(this + 0x118) = param_1; *(BranchPredictor **)(this + 0x120) = param_2; *(int8 *)(this + 8) = 0; for (local_1c = 0; local_1c < 0x20; local_1c = local_1c + 1) { *(int8 *)(this + (long)local_1c * 8 + 0x10) = 0; } return; }
3,182
read_block_secondary
eloqsql/mysys/mf_keycache.c
static void read_block_secondary(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block) { KEYCACHE_THREAD_TRACE("read_block_secondary"); /* This code is executed only by threads that submitted secondary requests. At this point it could happen that the cache block is not yet assigned to the hash_link for the requested file block. But at awake from the wait this should be the case. Unfortunately we cannot assert this here because we do not know the hash_link for the requested file block nor the file and position. So we have to assert this in the caller. */ KEYCACHE_DBUG_PRINT("read_block_secondary", ("secondary request waiting for new page to be read")); wait_on_queue(&block->wqueue[COND_FOR_REQUESTED], &keycache->cache_lock); KEYCACHE_DBUG_PRINT("read_block_secondary", ("secondary request: new page in cache")); DBUG_ASSERT(keycache->can_be_used); DBUG_ASSERT(block->status & (BLOCK_READ | BLOCK_IN_USE)); }
O0
c
read_block_secondary: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0xe5ae2 movq -0x10(%rbp), %rdi addq $0x28, %rdi movq -0x8(%rbp), %rsi addq $0xc0, %rsi callq 0xe4fc0 jmp 0xe5afc jmp 0xe5afe jmp 0xe5b00 jmp 0xe5b02 jmp 0xe5b04 addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
read_block_secondary: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_E5AE2: mov rdi, [rbp+var_10] add rdi, 28h ; '(' mov rsi, [rbp+var_8] add rsi, 0C0h call wait_on_queue jmp short $+2 loc_E5AFC: jmp short $+2 loc_E5AFE: jmp short $+2 loc_E5B00: jmp short $+2 loc_E5B02: jmp short $+2 loc_E5B04: add rsp, 10h pop rbp retn
long long read_block_secondary(long long a1, long long a2) { return wait_on_queue((long long *)(a2 + 40), (const char *)(a1 + 192)); }
read_block_secondary: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x001e5ae2 LAB_001e5ae2: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x28 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc0 CALL 0x001e4fc0 JMP 0x001e5afc LAB_001e5afc: JMP 0x001e5afe LAB_001e5afe: JMP 0x001e5b00 LAB_001e5b00: JMP 0x001e5b02 LAB_001e5b02: JMP 0x001e5b04 LAB_001e5b04: ADD RSP,0x10 POP RBP RET
void read_block_secondary(long param_1,long param_2) { wait_on_queue(param_2 + 0x28,param_1 + 0xc0); return; }
3,183
my_fstat
eloqsql/mysys/my_lib.c
int my_fstat(File Filedes, MY_STAT *stat_area, myf MyFlags __attribute__((unused))) { DBUG_ENTER("my_fstat"); DBUG_PRINT("my",("fd: %d MyFlags: %lu", Filedes, MyFlags)); #ifdef _WIN32 DBUG_RETURN(my_win_fstat(Filedes, stat_area)); #elif defined HAVE_valgrind { int s= fstat(Filedes, stat_area); if (!s) MSAN_STAT_WORKAROUND(stat_area); DBUG_RETURN(s); } #else DBUG_RETURN(fstat(Filedes, (struct stat *) stat_area)); #endif }
O0
c
my_fstat: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) jmp 0xf3515 jmp 0xf3517 movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi callq 0x2a550 movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax addq $0x20, %rsp popq %rbp retq nop
my_fstat: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx jmp short $+2 loc_F3515: jmp short $+2 loc_F3517: mov edi, [rbp+var_4] mov rsi, [rbp+var_10] call _fstat64 mov [rbp+var_1C], eax mov eax, [rbp+var_1C] add rsp, 20h pop rbp retn
long long my_fstat(unsigned int a1, long long a2) { return (unsigned int)fstat64(a1, a2); }
my_fstat: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX JMP 0x001f3515 LAB_001f3515: JMP 0x001f3517 LAB_001f3517: MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0012a550 MOV dword ptr [RBP + -0x1c],EAX MOV EAX,dword ptr [RBP + -0x1c] ADD RSP,0x20 POP RBP RET
int my_fstat(int param_1,stat64 *param_2) { int iVar1; iVar1 = fstat64(param_1,param_2); return iVar1; }
3,184
my_open
eloqsql/mysys/my_open.c
File my_open(const char *FileName, int Flags, myf MyFlags) /* Path-name of file */ /* Read | write .. */ /* Special flags */ { File fd; DBUG_ENTER("my_open"); DBUG_PRINT("my",("Name: '%s' Flags: %d MyFlags: %lu", FileName, Flags, MyFlags)); if (!(MyFlags & (MY_WME | MY_FAE | MY_FFNF))) MyFlags|= my_global_flags; #if defined(_WIN32) fd= my_win_open(FileName, Flags); #else if (MyFlags & MY_NOSYMLINKS) fd = open_nosymlinks(FileName, Flags | O_CLOEXEC, my_umask); else fd = open(FileName, Flags | O_CLOEXEC, my_umask); #endif fd= my_register_filename(fd, FileName, FILE_BY_OPEN, EE_FILENOTFOUND, MyFlags); DBUG_RETURN(fd); }
O0
c
my_open: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) jmp 0xfbd15 movq -0x18(%rbp), %rax andq $0x19, %rax cmpq $0x0, %rax jne 0xfbd35 leaq 0xb9223e(%rip), %rax # 0xc8df68 movq (%rax), %rax orq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax andq $0x200, %rax # imm = 0x200 cmpq $0x0, %rax je 0xfbd65 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi orl $0x80000, %esi # imm = 0x80000 leaq 0x1cbdcf(%rip), %rax # 0x2c7b28 movl (%rax), %edx callq 0xfbdc0 movl %eax, -0x1c(%rbp) jmp 0xfbd85 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi orl $0x80000, %esi # imm = 0x80000 leaq 0x1cbdaf(%rip), %rax # 0x2c7b28 movl (%rax), %edx movb $0x0, %al callq 0x29900 movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %edi movq -0x8(%rbp), %rsi movq -0x18(%rbp), %r8 movl $0x1, %edx movl $0x1d, %ecx callq 0xfbe30 movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax movl %eax, -0x20(%rbp) movl -0x20(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_open: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx jmp short $+2 loc_FBD15: mov rax, [rbp+var_18] and rax, 19h cmp rax, 0 jnz short loc_FBD35 lea rax, my_global_flags mov rax, [rax] or rax, [rbp+var_18] mov [rbp+var_18], rax loc_FBD35: mov rax, [rbp+var_18] and rax, 200h cmp rax, 0 jz short loc_FBD65 mov rdi, [rbp+var_8] mov esi, [rbp+var_C] or esi, 80000h lea rax, my_umask mov edx, [rax] call open_nosymlinks mov [rbp+var_1C], eax jmp short loc_FBD85 loc_FBD65: mov rdi, [rbp+var_8] mov esi, [rbp+var_C] or esi, 80000h lea rax, my_umask mov edx, [rax] mov al, 0 call _open64 mov [rbp+var_1C], eax loc_FBD85: mov edi, [rbp+var_1C] mov rsi, [rbp+var_8] mov r8, [rbp+var_18] mov edx, 1 mov ecx, 1Dh call my_register_filename mov [rbp+var_1C], eax mov eax, [rbp+var_1C] mov [rbp+var_20], eax mov eax, [rbp+var_20] add rsp, 20h pop rbp retn
long long my_open(long long a1, int a2, long long a3) { unsigned int v4; // [rsp+4h] [rbp-1Ch] long long v5; // [rsp+8h] [rbp-18h] v5 = a3; if ( (a3 & 0x19) == 0 ) v5 = a3 | my_global_flags; if ( (v5 & 0x200) != 0 ) v4 = open_nosymlinks(a1, a2 | 0x80000u, my_umask); else v4 = open64(a1, a2 | 0x80000u, my_umask); return (unsigned int)my_register_filename(v4, a1, 1LL, 29LL, v5); }
my_open: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX JMP 0x001fbd15 LAB_001fbd15: MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x19 CMP RAX,0x0 JNZ 0x001fbd35 LEA RAX,[0xd8df68] MOV RAX,qword ptr [RAX] OR RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX LAB_001fbd35: MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x200 CMP RAX,0x0 JZ 0x001fbd65 MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] OR ESI,0x80000 LEA RAX,[0x3c7b28] MOV EDX,dword ptr [RAX] CALL 0x001fbdc0 MOV dword ptr [RBP + -0x1c],EAX JMP 0x001fbd85 LAB_001fbd65: MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] OR ESI,0x80000 LEA RAX,[0x3c7b28] MOV EDX,dword ptr [RAX] MOV AL,0x0 CALL 0x00129900 MOV dword ptr [RBP + -0x1c],EAX LAB_001fbd85: MOV EDI,dword ptr [RBP + -0x1c] MOV RSI,qword ptr [RBP + -0x8] MOV R8,qword ptr [RBP + -0x18] MOV EDX,0x1 MOV ECX,0x1d CALL 0x001fbe30 MOV dword ptr [RBP + -0x1c],EAX MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x20] ADD RSP,0x20 POP RBP RET
int4 my_open(char *param_1,uint param_2,ulong param_3) { int4 uVar1; int4 local_24; int8 local_20; local_20 = param_3; if ((param_3 & 0x19) == 0) { local_20 = my_global_flags | param_3; } if ((local_20 & 0x200) == 0) { local_24 = open64(param_1,param_2 | 0x80000,(ulong)my_umask); } else { local_24 = open_nosymlinks(param_1,param_2 | 0x80000,my_umask); } uVar1 = my_register_filename(local_24,param_1,1,0x1d,local_20); return uVar1; }
3,185
mysql_stmt_send_long_data_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_stmt_send_long_data_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_stmt_send_long_data, (parms->stmt, parms->param_number, parms->data, parms->length), parms->stmt->mysql, my_bool, r_my_bool) }
O3
c
mysql_stmt_send_long_data_start_internal: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rax movq 0x38(%rax), %rcx movq 0x480(%rcx), %rcx movq 0x28(%rcx), %rbx movl 0x8(%rdi), %esi movq 0x10(%rdi), %rdx movq 0x18(%rdi), %rcx movq %rax, %rdi callq 0x42e6c movb %al, 0x8(%rbx) movl $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
mysql_stmt_send_long_data_start_internal: push rbp mov rbp, rsp push rbx push rax mov rax, [rdi] mov rcx, [rax+38h] mov rcx, [rcx+480h] mov rbx, [rcx+28h] mov esi, [rdi+8] mov rdx, [rdi+10h] mov rcx, [rdi+18h] mov rdi, rax call mysql_stmt_send_long_data mov [rbx+8], al mov dword ptr [rbx], 0 add rsp, 8 pop rbx pop rbp retn
long long mysql_stmt_send_long_data_start_internal(long long a1) { long long v1; // rbx long long result; // rax v1 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 56LL) + 1152LL) + 40LL); result = mysql_stmt_send_long_data(*(_QWORD *)a1, *(_DWORD *)(a1 + 8), *(_QWORD *)(a1 + 16), *(_QWORD *)(a1 + 24)); *(_BYTE *)(v1 + 8) = result; *(_DWORD *)v1 = 0; return result; }
mysql_stmt_send_long_data_start_internal: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RAX,qword ptr [RDI] MOV RCX,qword ptr [RAX + 0x38] MOV RCX,qword ptr [RCX + 0x480] MOV RBX,qword ptr [RCX + 0x28] MOV ESI,dword ptr [RDI + 0x8] MOV RDX,qword ptr [RDI + 0x10] MOV RCX,qword ptr [RDI + 0x18] MOV RDI,RAX CALL 0x00142e6c MOV byte ptr [RBX + 0x8],AL MOV dword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP RBP RET
void mysql_stmt_send_long_data_start_internal(long *param_1) { int4 *puVar1; int1 uVar2; puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28); uVar2 = mysql_stmt_send_long_data(*param_1,(int)param_1[1],param_1[2],param_1[3]); *(int1 *)(puVar1 + 2) = uVar2; *puVar1 = 0; return; }
3,186
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::json_sax_dom_callback_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>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, 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>&)>, bool)
llama.cpp/common/json.hpp
json_sax_dom_callback_parser(BasicJsonType& r, const parser_callback_t cb, const bool allow_exceptions_ = true) : root(r), callback(cb), allow_exceptions(allow_exceptions_) { keep_stack.push_back(true); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::json_sax_dom_callback_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>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, 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>&)>, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %ebp movq %rdi, %rbx movq %rsi, (%rdi) leaq 0x20(%rdi), %r14 leaq 0x80(%rdi), %r12 xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) movups %xmm0, 0x18(%rdi) movups %xmm0, 0x28(%rdi) movups %xmm0, 0x38(%rdi) movups %xmm0, 0x48(%rdi) movups %xmm0, 0x58(%rdi) movups %xmm0, 0x68(%rdi) movb $0x0, 0x78(%rdi) movq %r12, %rdi movq %rdx, %rsi callq 0x85aca movb %bpl, 0xa0(%rbx) leaq 0xa8(%rbx), %r13 movb $0x9, 0xa8(%rbx) movq $0x0, 0xb0(%rbx) movq %r13, %rdi movl $0x1, %esi callq 0x851c0 movq %r14, %rdi movl $0x1, %esi callq 0x325c4 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r15 movq %r13, %rdi xorl %esi, %esi callq 0x851c0 movq %r13, %rdi callq 0x89fae movq 0x90(%rbx), %rax testq %rax, %rax je 0x86870 movq %r12, %rdi movq %r12, %rsi movl $0x3, %edx callq *%rax jmp 0x86870 jmp 0x86897 movq %rax, %r15 leaq 0x48(%rbx), %rdi callq 0x327cc movq %r14, %rdi callq 0x327cc leaq 0x8(%rbx), %rdi movq %rbx, %rsi callq 0x230d5 movq %r15, %rdi callq 0x21b20 jmp 0x86897 movq %rax, %rdi callq 0x2dbeb nop
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, ecx mov rbx, rdi mov [rdi], rsi lea r14, [rdi+20h] lea r12, [rdi+80h] xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 movups xmmword ptr [rdi+18h], xmm0 movups xmmword ptr [rdi+28h], xmm0 movups xmmword ptr [rdi+38h], xmm0 movups xmmword ptr [rdi+48h], xmm0 movups xmmword ptr [rdi+58h], xmm0 movups xmmword ptr [rdi+68h], xmm0 mov byte ptr [rdi+78h], 0 mov rdi, r12 mov rsi, rdx call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&) mov [rbx+0A0h], bpl lea r13, [rbx+0A8h] mov byte ptr [rbx+0A8h], 9 mov qword ptr [rbx+0B0h], 0 mov rdi, r13 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; 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>::assert_invariant(bool) mov rdi, r14 mov esi, 1 call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r15, rax mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; 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>::assert_invariant(bool) mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; 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>::data::~data() mov rax, [rbx+90h] test rax, rax jz short loc_86870 mov rdi, r12 mov rsi, r12 mov edx, 3 call rax jmp short loc_86870 jmp short loc_86897 mov r15, rax loc_86870: lea rdi, [rbx+48h] call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void) mov rdi, r14 call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void) lea rdi, [rbx+8] mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb_cold_1; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<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>>::json_sax_dom_callback_parser(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>&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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>&)>,bool) [clone] mov rdi, r15 call __Unwind_Resume jmp short $+2 loc_86897: mov rdi, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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>>::json_sax_dom_callback_parser( long long a1, long long a2, long long a3, char a4) { *(_QWORD *)a1 = a2; *(_OWORD *)(a1 + 8) = 0LL; *(_OWORD *)(a1 + 24) = 0LL; *(_OWORD *)(a1 + 40) = 0LL; *(_OWORD *)(a1 + 56) = 0LL; *(_OWORD *)(a1 + 72) = 0LL; *(_OWORD *)(a1 + 88) = 0LL; *(_OWORD *)(a1 + 104) = 0LL; *(_BYTE *)(a1 + 120) = 0; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)>::function( (_OWORD *)(a1 + 128), a3); *(_BYTE *)(a1 + 160) = a4; *(_BYTE *)(a1 + 168) = 9; *(_QWORD *)(a1 + 176) = 0LL; 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>::assert_invariant((char *)(a1 + 168)); return std::vector<bool>::push_back(a1 + 32, 1u); }
json_sax_dom_callback_parser: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,ECX MOV RBX,RDI MOV qword ptr [RDI],RSI LEA R14,[RDI + 0x20] LEA R12,[RDI + 0x80] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 MOVUPS xmmword ptr [RDI + 0x18],XMM0 MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOVUPS xmmword ptr [RDI + 0x38],XMM0 MOVUPS xmmword ptr [RDI + 0x48],XMM0 MOVUPS xmmword ptr [RDI + 0x58],XMM0 MOVUPS xmmword ptr [RDI + 0x68],XMM0 MOV byte ptr [RDI + 0x78],0x0 LAB_001867e7: MOV RDI,R12 MOV RSI,RDX CALL 0x00185aca MOV byte ptr [RBX + 0xa0],BPL LEA R13,[RBX + 0xa8] MOV byte ptr [RBX + 0xa8],0x9 MOV qword ptr [RBX + 0xb0],0x0 MOV RDI,R13 MOV ESI,0x1 CALL 0x001851c0 LAB_0018681f: MOV RDI,R14 MOV ESI,0x1 CALL 0x001325c4 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_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> >::json_sax_dom_callback_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>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, 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>&)>, bool) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_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>> ::json_sax_dom_callback_parser (json_sax_dom_callback_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>> *this,int8 param_1,function *param_3, json_sax_dom_callback_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>> param_4) { *(int8 *)this = param_1; *(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; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x60) = 0; *(int8 *)(this + 0x68) = 0; *(int8 *)(this + 0x70) = 0; this[0x78] = (json_sax_dom_callback_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>> )0x0; /* try { // try from 001867e7 to 001867f1 has its CatchHandler @ 0018686d */ std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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>&)> ::function((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> *)(this + 0x80),param_3); this[0xa0] = param_4; this[0xa8] = (json_sax_dom_callback_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>> )0x9; *(int8 *)(this + 0xb0) = 0; 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> ::assert_invariant((bool)((char)this + -0x58)); /* try { // try from 0018681f to 0018682b has its CatchHandler @ 0018683b */ std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),true); return; }
3,187
maria_flush_log_for_page
eloqsql/storage/maria/ma_pagecrc.c
my_bool maria_flush_log_for_page(PAGECACHE_IO_HOOK_ARGS *args) { LSN lsn; uchar *page= args->page; MARIA_SHARE *share= (MARIA_SHARE *)args->data; DBUG_ENTER("maria_flush_log_for_page"); /* share is 0 here only in unittest */ DBUG_ASSERT(!share || share->page_type == PAGECACHE_LSN_PAGE); lsn= lsn_korr(page); if (translog_flush(lsn)) DBUG_RETURN(1); /* Now when log is written, it's safe to incremented 'open' counter for the table so that we know it was not closed properly. */ if (share && !share->global_changed) _ma_mark_file_changed_now(share); DBUG_RETURN(0); }
O3
c
maria_flush_log_for_page: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rax movq 0x10(%rdi), %rbx movzwl (%rax), %ecx shlq $0x20, %rcx movzbl 0x2(%rax), %edx shlq $0x30, %rdx orq %rcx, %rdx movl 0x3(%rax), %edi orq %rdx, %rdi callq 0x483ff movl %eax, %ecx movb $0x1, %al testb %cl, %cl jne 0x4ff49 testq %rbx, %rbx je 0x4ff47 cmpb $0x0, 0x7df(%rbx) jne 0x4ff47 movq %rbx, %rdi callq 0x33fa3 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %rbp retq
maria_flush_log_for_page: push rbp mov rbp, rsp push rbx push rax mov rax, [rdi] mov rbx, [rdi+10h] movzx ecx, word ptr [rax] shl rcx, 20h movzx edx, byte ptr [rax+2] shl rdx, 30h or rdx, rcx mov edi, [rax+3] or rdi, rdx call translog_flush mov ecx, eax mov al, 1 test cl, cl jnz short loc_4FF49 test rbx, rbx jz short loc_4FF47 cmp byte ptr [rbx+7DFh], 0 jnz short loc_4FF47 mov rdi, rbx call _ma_mark_file_changed_now loc_4FF47: xor eax, eax loc_4FF49: add rsp, 8 pop rbx pop rbp retn
char maria_flush_log_for_page(unsigned __int16 **a1) { long long v1; // rbx char v2; // cl char result; // al v1 = (long long)a1[2]; v2 = translog_flush(((unsigned long long)**a1 << 32) | ((unsigned long long)*((unsigned __int8 *)*a1 + 2) << 48) | *(unsigned int *)((char *)*a1 + 3)); result = 1; if ( !v2 ) { if ( v1 ) { if ( !*(_BYTE *)(v1 + 2015) ) ma_mark_file_changed_now(v1); } return 0; } return result; }
maria_flush_log_for_page: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RAX,qword ptr [RDI] MOV RBX,qword ptr [RDI + 0x10] MOVZX ECX,word ptr [RAX] SHL RCX,0x20 MOVZX EDX,byte ptr [RAX + 0x2] SHL RDX,0x30 OR RDX,RCX MOV EDI,dword ptr [RAX + 0x3] OR RDI,RDX CALL 0x001483ff MOV ECX,EAX MOV AL,0x1 TEST CL,CL JNZ 0x0014ff49 TEST RBX,RBX JZ 0x0014ff47 CMP byte ptr [RBX + 0x7df],0x0 JNZ 0x0014ff47 MOV RDI,RBX CALL 0x00133fa3 LAB_0014ff47: XOR EAX,EAX LAB_0014ff49: ADD RSP,0x8 POP RBX POP RBP RET
int8 maria_flush_log_for_page(int8 *param_1) { ushort *puVar1; long lVar2; char cVar3; int8 uVar4; puVar1 = (ushort *)*param_1; lVar2 = param_1[2]; cVar3 = translog_flush((ulong)*(uint *)((long)puVar1 + 3) | (ulong)(byte)puVar1[1] << 0x30 | (ulong)*puVar1 << 0x20); uVar4 = 1; if (cVar3 == '\0') { if ((lVar2 != 0) && (*(char *)(lVar2 + 0x7df) == '\0')) { _ma_mark_file_changed_now(lVar2); } uVar4 = 0; } return uVar4; }
3,188
my_convert_fix
eloqsql/strings/ctype.c
size_t my_convert_fix(CHARSET_INFO *to_cs, char *to, size_t to_length, CHARSET_INFO *from_cs, const char *from, size_t from_length, size_t nchars, MY_STRCOPY_STATUS *copy_status, MY_STRCONV_STATUS *conv_status) { int cnvres; my_wc_t wc; my_charset_conv_mb_wc mb_wc= from_cs->cset->mb_wc; my_charset_conv_wc_mb wc_mb= to_cs->cset->wc_mb; const uchar *from_end= (const uchar*) from + from_length; uchar *to_end= (uchar*) to + to_length; char *to_start= to; DBUG_ASSERT(to_cs != &my_charset_bin); DBUG_ASSERT(from_cs != &my_charset_bin); copy_status->m_well_formed_error_pos= NULL; conv_status->m_cannot_convert_error_pos= NULL; for ( ; nchars; nchars--) { const char *from_prev= from; if ((cnvres= (*mb_wc)(from_cs, &wc, (uchar*) from, from_end)) > 0) from+= cnvres; else if (cnvres == MY_CS_ILSEQ) { if (!copy_status->m_well_formed_error_pos) copy_status->m_well_formed_error_pos= from; from++; wc= '?'; } else if (cnvres > MY_CS_TOOSMALL) { /* A correct multibyte sequence detected But it doesn't have Unicode mapping. */ if (!conv_status->m_cannot_convert_error_pos) conv_status->m_cannot_convert_error_pos= from; from+= (-cnvres); wc= '?'; } else { if ((uchar *) from >= from_end) break; // End of line // Incomplete byte sequence if (!copy_status->m_well_formed_error_pos) copy_status->m_well_formed_error_pos= from; from++; wc= '?'; } outp: if ((cnvres= (*wc_mb)(to_cs, wc, (uchar*) to, to_end)) > 0) to+= cnvres; else if (cnvres == MY_CS_ILUNI && wc != '?') { if (!conv_status->m_cannot_convert_error_pos) conv_status->m_cannot_convert_error_pos= from_prev; wc= '?'; goto outp; } else { from= from_prev; break; } } copy_status->m_source_end_pos= from; return to - to_start; }
O3
c
my_convert_fix: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, %r14 movq %rdx, %r12 movq %rdi, %r13 movq 0x20(%rbp), %rdi movq 0x18(%rbp), %rdx movq 0x10(%rbp), %r8 movq %rcx, -0x60(%rbp) movq 0xb8(%rcx), %rax movq 0x28(%rax), %rax movq %rax, -0x58(%rbp) movq 0xb8(%r13), %rax movq 0x30(%rax), %rax movq %rax, -0x40(%rbp) xorl %eax, %eax movq %rax, 0x8(%rdx) movq %rax, (%rdi) testq %r8, %r8 movq %rsi, -0x48(%rbp) je 0x8d627 movq %r8, -0x50(%rbp) addq %r14, %r9 movq %r9, -0x38(%rbp) addq %rsi, %r12 movq %rsi, %rbx movq -0x60(%rbp), %rdi leaq -0x30(%rbp), %rsi movq %r14, %rdx movq -0x38(%rbp), %rcx callq *-0x58(%rbp) movl %eax, %r15d testl %eax, %eax jle 0x8d59f movl %r15d, %r15d addq %r14, %r15 movq -0x30(%rbp), %rsi jmp 0x8d5d7 je 0x8d5c2 cmpl $-0x64, %r15d jb 0x8d5bc movq 0x20(%rbp), %rax cmpq $0x0, (%rax) jne 0x8d5b4 movq %r14, (%rax) negl %r15d addq %r14, %r15 jmp 0x8d5ff cmpq -0x38(%rbp), %r14 jae 0x8d622 movq 0x18(%rbp), %rax cmpq $0x0, 0x8(%rax) jne 0x8d5d1 movq %r14, 0x8(%rax) leaq 0x1(%r14), %r15 jmp 0x8d5ff movq %r13, %rdi movq %rbx, %rdx movq %r12, %rcx callq *-0x40(%rbp) testl %eax, %eax jg 0x8d60e testl %eax, %eax jne 0x8d622 cmpq $0x3f, -0x30(%rbp) je 0x8d622 movq 0x20(%rbp), %rax cmpq $0x0, (%rax) jne 0x8d5ff movq %r14, (%rax) movq $0x3f, -0x30(%rbp) movl $0x3f, %esi jmp 0x8d5d7 movl %eax, %eax addq %rax, %rbx movq %r15, %r14 decq -0x50(%rbp) jne 0x8d57a jmp 0x8d62d movq %r14, %r15 jmp 0x8d62d movq %r14, %r15 movq %rsi, %rbx movq 0x18(%rbp), %rax movq %r15, (%rax) subq -0x48(%rbp), %rbx movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_convert_fix: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r14, r8 mov r12, rdx mov r13, rdi mov rdi, [rbp+arg_10] mov rdx, [rbp+arg_8] mov r8, [rbp+arg_0] mov [rbp+var_60], rcx mov rax, [rcx+0B8h] mov rax, [rax+28h] mov [rbp+var_58], rax mov rax, [r13+0B8h] mov rax, [rax+30h] mov [rbp+var_40], rax xor eax, eax mov [rdx+8], rax mov [rdi], rax test r8, r8 mov [rbp+var_48], rsi jz loc_8D627 mov [rbp+var_50], r8 add r9, r14 mov [rbp+var_38], r9 add r12, rsi mov rbx, rsi loc_8D57A: mov rdi, [rbp+var_60] lea rsi, [rbp+var_30] mov rdx, r14 mov rcx, [rbp+var_38] call [rbp+var_58] mov r15d, eax test eax, eax jle short loc_8D59F mov r15d, r15d add r15, r14 mov rsi, [rbp+var_30] jmp short loc_8D5D7 loc_8D59F: jz short loc_8D5C2 cmp r15d, 0FFFFFF9Ch jb short loc_8D5BC mov rax, [rbp+arg_10] cmp qword ptr [rax], 0 jnz short loc_8D5B4 mov [rax], r14 loc_8D5B4: neg r15d add r15, r14 jmp short loc_8D5FF loc_8D5BC: cmp r14, [rbp+var_38] jnb short loc_8D622 loc_8D5C2: mov rax, [rbp+arg_8] cmp qword ptr [rax+8], 0 jnz short loc_8D5D1 mov [rax+8], r14 loc_8D5D1: lea r15, [r14+1] jmp short loc_8D5FF loc_8D5D7: mov rdi, r13 mov rdx, rbx mov rcx, r12 call [rbp+var_40] test eax, eax jg short loc_8D60E test eax, eax jnz short loc_8D622 cmp [rbp+var_30], 3Fh ; '?' jz short loc_8D622 mov rax, [rbp+arg_10] cmp qword ptr [rax], 0 jnz short loc_8D5FF mov [rax], r14 loc_8D5FF: mov [rbp+var_30], 3Fh ; '?' mov esi, 3Fh ; '?' jmp short loc_8D5D7 loc_8D60E: mov eax, eax add rbx, rax mov r14, r15 dec [rbp+var_50] jnz loc_8D57A jmp short loc_8D62D loc_8D622: mov r15, r14 jmp short loc_8D62D loc_8D627: mov r15, r14 mov rbx, rsi loc_8D62D: mov rax, [rbp+arg_8] mov [rax], r15 sub rbx, [rbp+var_48] mov rax, rbx add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_convert_fix( long long a1, long long a2, long long a3, long long a4, unsigned long long a5, long long a6, long long a7, unsigned long long *a8, unsigned long long *a9) { unsigned long long v9; // r14 long long v10; // r12 long long v11; // rbx int v12; // eax unsigned long long v13; // r15 long long v14; // rsi int v15; // eax long long ( *v18)(long long, long long *, unsigned long long, unsigned long long); // [rsp+8h] [rbp-58h] long long v19; // [rsp+10h] [rbp-50h] long long ( *v21)(long long, long long, long long, long long); // [rsp+20h] [rbp-40h] unsigned long long v22; // [rsp+28h] [rbp-38h] long long v23[6]; // [rsp+30h] [rbp-30h] BYREF v9 = a5; v18 = *(long long ( **)(long long, long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a4 + 184) + 40LL); v21 = *(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL); a8[1] = 0LL; *a9 = 0LL; if ( a7 ) { v19 = a7; v22 = a5 + a6; v10 = a2 + a3; v11 = a2; while ( 1 ) { v12 = v18(a4, v23, v9, v22); if ( v12 > 0 ) { v13 = v9 + (unsigned int)v12; v14 = v23[0]; goto LABEL_14; } if ( !v12 ) goto LABEL_11; if ( (unsigned int)v12 < 0xFFFFFF9C ) break; if ( !*a9 ) *a9 = v9; v13 = v9 + (unsigned int)-v12; LABEL_19: while ( 1 ) { v23[0] = 63LL; v14 = 63LL; LABEL_14: v15 = v21(a1, v14, v11, v10); if ( v15 > 0 ) break; if ( v15 || v23[0] == 63 ) goto LABEL_22; if ( !*a9 ) *a9 = v9; } v11 += (unsigned int)v15; v9 = v13; if ( !--v19 ) goto LABEL_24; } if ( v9 < v22 ) { LABEL_11: if ( !a8[1] ) a8[1] = v9; v13 = v9 + 1; goto LABEL_19; } LABEL_22: v13 = v9; } else { v13 = a5; v11 = a2; } LABEL_24: *a8 = v13; return v11 - a2; }
my_convert_fix: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,R8 MOV R12,RDX MOV R13,RDI MOV RDI,qword ptr [RBP + 0x20] MOV RDX,qword ptr [RBP + 0x18] MOV R8,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x60],RCX MOV RAX,qword ptr [RCX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [R13 + 0xb8] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RBP + -0x40],RAX XOR EAX,EAX MOV qword ptr [RDX + 0x8],RAX MOV qword ptr [RDI],RAX TEST R8,R8 MOV qword ptr [RBP + -0x48],RSI JZ 0x0018d627 MOV qword ptr [RBP + -0x50],R8 ADD R9,R14 MOV qword ptr [RBP + -0x38],R9 ADD R12,RSI MOV RBX,RSI LAB_0018d57a: MOV RDI,qword ptr [RBP + -0x60] LEA RSI,[RBP + -0x30] MOV RDX,R14 MOV RCX,qword ptr [RBP + -0x38] CALL qword ptr [RBP + -0x58] MOV R15D,EAX TEST EAX,EAX JLE 0x0018d59f MOV R15D,R15D ADD R15,R14 MOV RSI,qword ptr [RBP + -0x30] JMP 0x0018d5d7 LAB_0018d59f: JZ 0x0018d5c2 CMP R15D,-0x64 JC 0x0018d5bc MOV RAX,qword ptr [RBP + 0x20] CMP qword ptr [RAX],0x0 JNZ 0x0018d5b4 MOV qword ptr [RAX],R14 LAB_0018d5b4: NEG R15D ADD R15,R14 JMP 0x0018d5ff LAB_0018d5bc: CMP R14,qword ptr [RBP + -0x38] JNC 0x0018d622 LAB_0018d5c2: MOV RAX,qword ptr [RBP + 0x18] CMP qword ptr [RAX + 0x8],0x0 JNZ 0x0018d5d1 MOV qword ptr [RAX + 0x8],R14 LAB_0018d5d1: LEA R15,[R14 + 0x1] JMP 0x0018d5ff LAB_0018d5d7: MOV RDI,R13 MOV RDX,RBX MOV RCX,R12 CALL qword ptr [RBP + -0x40] TEST EAX,EAX JG 0x0018d60e TEST EAX,EAX JNZ 0x0018d622 CMP qword ptr [RBP + -0x30],0x3f JZ 0x0018d622 MOV RAX,qword ptr [RBP + 0x20] CMP qword ptr [RAX],0x0 JNZ 0x0018d5ff MOV qword ptr [RAX],R14 LAB_0018d5ff: MOV qword ptr [RBP + -0x30],0x3f MOV ESI,0x3f JMP 0x0018d5d7 LAB_0018d60e: MOV EAX,EAX ADD RBX,RAX MOV R14,R15 DEC qword ptr [RBP + -0x50] JNZ 0x0018d57a JMP 0x0018d62d LAB_0018d622: MOV R15,R14 JMP 0x0018d62d LAB_0018d627: MOV R15,R14 MOV RBX,RSI LAB_0018d62d: MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RAX],R15 SUB RBX,qword ptr [RBP + -0x48] MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_convert_fix(long param_1,long param_2,long param_3,long param_4,ulong param_5,long param_6, long param_7,ulong *param_8,ulong *param_9) { code *pcVar1; code *pcVar2; uint uVar3; long lVar4; ulong uVar5; ulong uVar6; long local_58; long local_38; pcVar1 = *(code **)(*(long *)(param_4 + 0xb8) + 0x28); pcVar2 = *(code **)(*(long *)(param_1 + 0xb8) + 0x30); param_8[1] = 0; *param_9 = 0; lVar4 = param_2; uVar5 = param_5; if (param_7 != 0) { local_58 = param_7; while( true ) { uVar3 = (*pcVar1)(param_4,&local_38,uVar5,param_6 + param_5); if ((int)uVar3 < 1) break; uVar6 = uVar3 + uVar5; while (uVar3 = (*pcVar2)(param_1,local_38,lVar4,param_3 + param_2), (int)uVar3 < 1) { if ((uVar3 != 0) || (local_38 == 0x3f)) goto LAB_0018d62d; if (*param_9 == 0) { *param_9 = uVar5; } LAB_0018d5ff: local_38 = 0x3f; } lVar4 = lVar4 + (ulong)uVar3; local_58 = local_58 + -1; uVar5 = uVar6; if (local_58 == 0) goto LAB_0018d62d; } if (uVar3 != 0) { if (0xffffff9b < uVar3) { if (*param_9 == 0) { *param_9 = uVar5; } uVar6 = -uVar3 + uVar5; goto LAB_0018d5ff; } if (param_6 + param_5 <= uVar5) goto LAB_0018d62d; } if (param_8[1] == 0) { param_8[1] = uVar5; } uVar6 = uVar5 + 1; goto LAB_0018d5ff; } LAB_0018d62d: *param_8 = uVar5; return lVar4 - param_2; }
3,189
void ImPlot3D::PlotTriangleEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>>>(char const*, ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>> const&, int)
zkingston[P]unknot/build_O1/_deps/implot3d-src/implot3d_items.cpp
void PlotTriangleEx(const char* label_id, const _Getter& getter, ImPlot3DTriangleFlags flags) { if (BeginItemEx(label_id, getter, flags, ImPlot3DCol_Fill)) { const ImPlot3DNextItemData& n = GetItemData(); // Render fill if (getter.Count >= 3 && n.RenderFill) { const ImU32 col_fill = ImGui::GetColorU32(n.Colors[ImPlot3DCol_Fill]); RenderPrimitives<RendererTriangleFill>(getter, col_fill); } // Render lines if (getter.Count >= 2 && n.RenderLine) { const ImU32 col_line = ImGui::GetColorU32(n.Colors[ImPlot3DCol_Line]); RenderPrimitives<RendererLineSegments>(GetterTriangleLines<_Getter>(getter), col_line, n.LineWeight); } // Render markers if (n.Marker != ImPlot3DMarker_None) { const ImU32 col_line = ImGui::GetColorU32(n.Colors[ImPlot3DCol_MarkerOutline]); const ImU32 col_fill = ImGui::GetColorU32(n.Colors[ImPlot3DCol_MarkerFill]); RenderMarkers<_Getter>(getter, n.Marker, n.MarkerSize, n.RenderMarkerFill, col_fill, n.RenderMarkerLine, col_line, n.MarkerWeight); } EndItem(); } }
O1
cpp
void ImPlot3D::PlotTriangleEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>>>(char const*, ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>> const&, int): pushq %rbp pushq %r14 pushq %rbx subq $0x60, %rsp movq %rsi, %rbx movl $0x1, %ecx callq 0x5ef92 testb %al, %al je 0x58e86 callq 0x5459e movq %rax, %r14 cmpl $0x3, 0x48(%rbx) jl 0x58de9 cmpb $0x1, 0x55(%r14) jne 0x58de9 leaq 0x10(%r14), %rdi callq 0x215ebe movq %rbx, %rdi movl %eax, %esi callq 0x85358 cmpl $0x2, 0x48(%rbx) jl 0x58e2e cmpb $0x1, 0x54(%r14) jne 0x58e2e movq %r14, %rdi callq 0x215ebe leaq 0x8(%rsp), %rdx movl $0x9, %ecx movq %rdx, %rdi movq %rbx, %rsi rep movsq (%rsi), %es:(%rdi) movq 0x48(%rbx), %rcx movq %rcx, 0x48(%rdx) addl %ecx, %ecx movl %ecx, 0x50(%rdx) movss 0x40(%r14), %xmm0 movq %rdx, %rdi movl %eax, %esi callq 0x85d46 cmpl $-0x1, 0x44(%r14) je 0x58e73 leaq 0x20(%r14), %rdi callq 0x215ebe movl %eax, %ebp movq %r14, %rdi addq $0x30, %rdi callq 0x215ebe movl 0x44(%r14), %esi movss 0x48(%r14), %xmm0 movzbl 0x57(%r14), %edx movzbl 0x56(%r14), %r8d movss 0x4c(%r14), %xmm1 movq %rbx, %rdi movl %eax, %ecx movl %ebp, %r9d callq 0x5f174 leaq 0x2dde1e(%rip), %rax # 0x336c98 movq (%rax), %rdi addq $0x38, %rdi callq 0x55a36 addq $0x60, %rsp popq %rbx popq %r14 popq %rbp retq
_ZN8ImPlot3D14PlotTriangleExINS_9GetterXYZINS_10IndexerIdxItEES3_S3_EEEEvPKcRKT_i: push rbp push r14 push rbx sub rsp, 60h mov rbx, rsi mov ecx, 1 call _ZN8ImPlot3D11BeginItemExINS_9GetterXYZINS_10IndexerIdxItEES3_S3_EEEEbPKcRKT_ii; ImPlot3D::BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>>>(char const*,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>> const&,int,int) test al, al jz loc_58E86 call _ZN8ImPlot3D11GetItemDataEv; ImPlot3D::GetItemData(void) mov r14, rax cmp dword ptr [rbx+48h], 3 jl short loc_58DE9 cmp byte ptr [r14+55h], 1 jnz short loc_58DE9 lea rdi, [r14+10h] call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&) mov rdi, rbx mov esi, eax call _ZN8ImPlot3D16RenderPrimitivesINS_20RendererTriangleFillENS_9GetterXYZINS_10IndexerIdxItEES4_S4_EEJjEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererTriangleFill,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>>,uint>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>> const&,uint) loc_58DE9: cmp dword ptr [rbx+48h], 2 jl short loc_58E2E cmp byte ptr [r14+54h], 1 jnz short loc_58E2E mov rdi, r14 call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&) lea rdx, [rsp+78h+var_70] mov ecx, 9 mov rdi, rdx mov rsi, rbx rep movsq mov rcx, [rbx+48h] mov [rdx+48h], rcx add ecx, ecx mov [rdx+50h], ecx movss xmm0, dword ptr [r14+40h] mov rdi, rdx mov esi, eax call _ZN8ImPlot3D16RenderPrimitivesINS_20RendererLineSegmentsENS_19GetterTriangleLinesINS_9GetterXYZINS_10IndexerIdxItEES5_S5_EEEEJjfEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterTriangleLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>>>,uint,float>(ImPlot3D::GetterTriangleLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>>> const&,uint,float) loc_58E2E: cmp dword ptr [r14+44h], 0FFFFFFFFh jz short loc_58E73 lea rdi, [r14+20h] call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&) mov ebp, eax mov rdi, r14 add rdi, 30h ; '0' call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&) mov esi, [r14+44h] movss xmm0, dword ptr [r14+48h] movzx edx, byte ptr [r14+57h] movzx r8d, byte ptr [r14+56h] movss xmm1, dword ptr [r14+4Ch] mov rdi, rbx mov ecx, eax mov r9d, ebp call _ZN8ImPlot3D13RenderMarkersINS_9GetterXYZINS_10IndexerIdxItEES3_S3_EEEEvRKT_ifbjbjf; ImPlot3D::RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>>>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>,ImPlot3D::IndexerIdx<ushort>> const&,int,float,bool,uint,bool,uint,float) loc_58E73: lea rax, _ZN8ImPlot3D9GImPlot3DE; ImPlot3D::GImPlot3D mov rdi, [rax] add rdi, 38h ; '8'; this call _ZN20ImPlot3DNextItemData5ResetEv; ImPlot3DNextItemData::Reset(void) loc_58E86: add rsp, 60h pop rbx pop r14 pop rbp retn
long long ImPlot3D::PlotTriangleEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>>>( ImPlot3D *a1, int *a2, long long a3) { long long result; // rax long long ItemData; // rax long long v5; // r14 unsigned int ColorU32; // eax unsigned int v7; // eax unsigned int v8; // ebp unsigned int v9; // eax _DWORD v10[28]; // [rsp+8h] [rbp-70h] BYREF result = ImPlot3D::BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>>>( a1, a2, a3, 1LL); if ( (_BYTE)result ) { ItemData = ImPlot3D::GetItemData(a1); v5 = ItemData; if ( a2[18] >= 3 && *(_BYTE *)(ItemData + 85) == 1 ) { ColorU32 = ImGui::GetColorU32(ItemData + 16); ImPlot3D::RenderPrimitives<ImPlot3D::RendererTriangleFill,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>>,unsigned int>( a2, ColorU32); } if ( a2[18] >= 2 && *(_BYTE *)(v5 + 84) == 1 ) { v7 = ImGui::GetColorU32(v5); qmemcpy(v10, a2, 0x50uLL); v10[20] = 2 * v10[18]; ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterTriangleLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>>>,unsigned int,float>( v10, v7, *(float *)(v5 + 64)); } if ( *(_DWORD *)(v5 + 68) != -1 ) { v8 = ImGui::GetColorU32(v5 + 32); v9 = ImGui::GetColorU32(v5 + 48); ImPlot3D::RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>,ImPlot3D::IndexerIdx<unsigned short>>>( a2, *(unsigned int *)(v5 + 68), *(unsigned __int8 *)(v5 + 87), v9, *(unsigned __int8 *)(v5 + 86), v8, *(float *)(v5 + 72), *(float *)(v5 + 76)); } return ImPlot3DNextItemData::Reset((ImGui *)((char *)ImPlot3D::GImPlot3D + 56)); } return result; }
PlotTriangleEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>>>: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x60 MOV RBX,RSI MOV ECX,0x1 CALL 0x0015ef92 TEST AL,AL JZ 0x00158e86 CALL 0x0015459e MOV R14,RAX CMP dword ptr [RBX + 0x48],0x3 JL 0x00158de9 CMP byte ptr [R14 + 0x55],0x1 JNZ 0x00158de9 LEA RDI,[R14 + 0x10] CALL 0x00315ebe MOV RDI,RBX MOV ESI,EAX CALL 0x00185358 LAB_00158de9: CMP dword ptr [RBX + 0x48],0x2 JL 0x00158e2e CMP byte ptr [R14 + 0x54],0x1 JNZ 0x00158e2e MOV RDI,R14 CALL 0x00315ebe LEA RDX,[RSP + 0x8] MOV ECX,0x9 MOV RDI,RDX MOV RSI,RBX MOVSQ.REP RDI,RSI MOV RCX,qword ptr [RBX + 0x48] MOV qword ptr [RDX + 0x48],RCX ADD ECX,ECX MOV dword ptr [RDX + 0x50],ECX MOVSS XMM0,dword ptr [R14 + 0x40] MOV RDI,RDX MOV ESI,EAX CALL 0x00185d46 LAB_00158e2e: CMP dword ptr [R14 + 0x44],-0x1 JZ 0x00158e73 LEA RDI,[R14 + 0x20] CALL 0x00315ebe MOV EBP,EAX MOV RDI,R14 ADD RDI,0x30 CALL 0x00315ebe MOV ESI,dword ptr [R14 + 0x44] MOVSS XMM0,dword ptr [R14 + 0x48] MOVZX EDX,byte ptr [R14 + 0x57] MOVZX R8D,byte ptr [R14 + 0x56] MOVSS XMM1,dword ptr [R14 + 0x4c] MOV RDI,RBX MOV ECX,EAX MOV R9D,EBP CALL 0x0015f174 LAB_00158e73: LEA RAX,[0x436c98] MOV RDI,qword ptr [RAX] ADD RDI,0x38 CALL 0x00155a36 LAB_00158e86: ADD RSP,0x60 POP RBX POP R14 POP RBP RET
/* void ImPlot3D::PlotTriangleEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short> > >(char const*, ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short>, ImPlot3D::IndexerIdx<unsigned short> > const&, int) */ void ImPlot3D:: PlotTriangleEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>>> (char *param_1,GetterXYZ *param_2,int param_3) { bool bVar1; uint uVar2; uint uVar3; ImVec4 *pIVar4; long lVar5; GetterXYZ *pGVar6; GetterTriangleLines *pGVar7; byte bVar8; GetterTriangleLines local_70 [72]; int8 local_28; int local_20; bVar8 = 0; bVar1 = BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>>> (param_1,param_2,param_3,1); if (bVar1) { pIVar4 = (ImVec4 *)GetItemData(); if ((2 < *(int *)(param_2 + 0x48)) && (pIVar4[0x55] == (ImVec4)0x1)) { uVar2 = ImGui::GetColorU32(pIVar4 + 0x10); RenderPrimitives<ImPlot3D::RendererTriangleFill,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>>,unsigned_int> (param_2,uVar2); } if ((1 < *(int *)(param_2 + 0x48)) && (pIVar4[0x54] == (ImVec4)0x1)) { uVar2 = ImGui::GetColorU32(pIVar4); pGVar6 = param_2; pGVar7 = local_70; for (lVar5 = 9; lVar5 != 0; lVar5 = lVar5 + -1) { *(int8 *)pGVar7 = *(int8 *)pGVar6; pGVar6 = pGVar6 + (ulong)bVar8 * -0x10 + 8; pGVar7 = pGVar7 + (ulong)bVar8 * -0x10 + 8; } local_28 = *(int8 *)(param_2 + 0x48); local_20 = (int)local_28 * 2; RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterTriangleLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>>>,unsigned_int,float> (local_70,uVar2,*(float *)(pIVar4 + 0x40)); } if (*(int *)(pIVar4 + 0x44) != -1) { uVar2 = ImGui::GetColorU32(pIVar4 + 0x20); uVar3 = ImGui::GetColorU32(pIVar4 + 0x30); RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>,ImPlot3D::IndexerIdx<unsigned_short>>> (param_2,*(int *)(pIVar4 + 0x44),*(float *)(pIVar4 + 0x48),(bool)pIVar4[0x57],uVar3, (bool)pIVar4[0x56],uVar2,*(float *)(pIVar4 + 0x4c)); } ImPlot3DNextItemData::Reset((ImPlot3DNextItemData *)(GImPlot3D + 0x38)); } return; }
3,190
char* fmt::v11::detail::do_format_base2e<char, unsigned int>(int, char*, unsigned int, int, bool)
zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format.h
FMT_CONSTEXPR auto do_format_base2e(int base_bits, Char* out, UInt value, int size, bool upper = false) -> Char* { out += size; do { const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef"; unsigned digit = static_cast<unsigned>(value & ((1 << base_bits) - 1)); *--out = static_cast<Char>(base_bits < 4 ? static_cast<char>('0' + digit) : digits[digit]); } while ((value >>= base_bits) != 0); return out; }
O0
c
char* fmt::v11::detail::do_format_base2e<char, unsigned int>(int, char*, unsigned int, int, bool): movb %r8b, %al movl %edi, -0x4(%rsp) movq %rsi, -0x10(%rsp) movq %rdx, -0x18(%rsp) movl %ecx, -0x1c(%rsp) andb $0x1, %al movb %al, -0x1d(%rsp) movl -0x1c(%rsp), %ecx movq -0x10(%rsp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rsp) testb $0x1, -0x1d(%rsp) je 0xbc494 leaq 0x51151f(%rip), %rax # 0x5cd9ac movq %rax, -0x38(%rsp) jmp 0xbc4a2 leaq 0x5149e8(%rip), %rax # 0x5d0e83 movq %rax, -0x38(%rsp) jmp 0xbc4a2 movq -0x38(%rsp), %rax movq %rax, -0x28(%rsp) movq -0x18(%rsp), %rax movl -0x4(%rsp), %ecx movl $0x1, %edx shll %cl, %edx movl %edx, %ecx subl $0x1, %ecx movslq %ecx, %rcx andq %rcx, %rax movl %eax, -0x2c(%rsp) cmpl $0x4, -0x4(%rsp) jge 0xbc4df movl -0x2c(%rsp), %eax addl $0x30, %eax movb %al, -0x39(%rsp) jmp 0xbc4ef movq -0x28(%rsp), %rax movl -0x2c(%rsp), %ecx movb (%rax,%rcx), %al movb %al, -0x39(%rsp) movb -0x39(%rsp), %cl movq -0x10(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, -0x10(%rsp) movb %cl, -0x1(%rax) movl -0x4(%rsp), %ecx movq -0x18(%rsp), %rax movl %ecx, %ecx shrq %cl, %rax movq %rax, -0x18(%rsp) cmpq $0x0, %rax jne 0xbc47f movq -0x10(%rsp), %rax retq nopw (%rax,%rax)
_ZN3fmt3v116detail16do_format_base2eIcmEEPT_iS4_T0_ib: mov al, r8b mov [rsp+var_4], edi mov [rsp+var_10], rsi mov [rsp+var_18], rdx mov [rsp+var_1C], ecx and al, 1 mov [rsp+var_1D], al mov ecx, [rsp+var_1C] mov rax, [rsp+var_10] movsxd rcx, ecx add rax, rcx mov [rsp+var_10], rax loc_BC47F: test [rsp+var_1D], 1 jz short loc_BC494 lea rax, a0123456789abcd; "0123456789ABCDEF" mov [rsp+var_38], rax jmp short loc_BC4A2 loc_BC494: lea rax, a0123456789abcd_0; "0123456789abcdef" mov [rsp+var_38], rax jmp short $+2 loc_BC4A2: mov rax, [rsp+var_38] mov [rsp+var_28], rax mov rax, [rsp+var_18] mov ecx, [rsp+var_4] mov edx, 1 shl edx, cl mov ecx, edx sub ecx, 1 movsxd rcx, ecx and rax, rcx mov [rsp+var_2C], eax cmp [rsp+var_4], 4 jge short loc_BC4DF mov eax, [rsp+var_2C] add eax, 30h ; '0' mov [rsp+var_39], al jmp short loc_BC4EF loc_BC4DF: mov rax, [rsp+var_28] mov ecx, [rsp+var_2C] mov al, [rax+rcx] mov [rsp+var_39], al loc_BC4EF: mov cl, [rsp+var_39] mov rax, [rsp+var_10] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+var_10], rdx mov [rax-1], cl mov ecx, [rsp+var_4] mov rax, [rsp+var_18] mov ecx, ecx shr rax, cl mov [rsp+var_18], rax cmp rax, 0 jnz loc_BC47F mov rax, [rsp+var_10] retn
long long fmt::v11::detail::do_format_base2e<char,unsigned long>( int a1, long long a2, unsigned long long a3, int a4, char a5) { long long v5; // rax char v7; // [rsp+1h] [rbp-39h] const char *v8; // [rsp+2h] [rbp-38h] int v9; // [rsp+Eh] [rbp-2Ch] long long v11; // [rsp+2Ah] [rbp-10h] v11 = a4 + a2; do { if ( (a5 & 1) != 0 ) v8 = "0123456789ABCDEF"; else v8 = "0123456789abcdef"; v9 = ((1 << a1) - 1) & a3; if ( a1 >= 4 ) v7 = v8[v9]; else v7 = v9 + 48; v5 = v11--; *(_BYTE *)(v5 - 1) = v7; a3 >>= a1; } while ( a3 ); return v11; }
do_format_base2e<char,unsigned_long>: MOV AL,R8B MOV dword ptr [RSP + -0x4],EDI MOV qword ptr [RSP + -0x10],RSI MOV qword ptr [RSP + -0x18],RDX MOV dword ptr [RSP + -0x1c],ECX AND AL,0x1 MOV byte ptr [RSP + -0x1d],AL MOV ECX,dword ptr [RSP + -0x1c] MOV RAX,qword ptr [RSP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RSP + -0x10],RAX LAB_001bc47f: TEST byte ptr [RSP + -0x1d],0x1 JZ 0x001bc494 LEA RAX,[0x6cd9ac] MOV qword ptr [RSP + -0x38],RAX JMP 0x001bc4a2 LAB_001bc494: LEA RAX,[0x6d0e83] MOV qword ptr [RSP + -0x38],RAX JMP 0x001bc4a2 LAB_001bc4a2: MOV RAX,qword ptr [RSP + -0x38] MOV qword ptr [RSP + -0x28],RAX MOV RAX,qword ptr [RSP + -0x18] MOV ECX,dword ptr [RSP + -0x4] MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX SUB ECX,0x1 MOVSXD RCX,ECX AND RAX,RCX MOV dword ptr [RSP + -0x2c],EAX CMP dword ptr [RSP + -0x4],0x4 JGE 0x001bc4df MOV EAX,dword ptr [RSP + -0x2c] ADD EAX,0x30 MOV byte ptr [RSP + -0x39],AL JMP 0x001bc4ef LAB_001bc4df: MOV RAX,qword ptr [RSP + -0x28] MOV ECX,dword ptr [RSP + -0x2c] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RSP + -0x39],AL LAB_001bc4ef: MOV CL,byte ptr [RSP + -0x39] MOV RAX,qword ptr [RSP + -0x10] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RSP + -0x10],RDX MOV byte ptr [RAX + -0x1],CL MOV ECX,dword ptr [RSP + -0x4] MOV RAX,qword ptr [RSP + -0x18] MOV ECX,ECX SHR RAX,CL MOV qword ptr [RSP + -0x18],RAX CMP RAX,0x0 JNZ 0x001bc47f MOV RAX,qword ptr [RSP + -0x10] RET
/* char* fmt::v11::detail::do_format_base2e<char, unsigned long>(int, char*, unsigned long, int, bool) */ char * fmt::v11::detail::do_format_base2e<char,unsigned_long> (int param_1,char *param_2,ulong param_3,int param_4,bool param_5) { uint uVar1; char *pcVar2; char local_39; char *local_38; ulong local_18; char *local_10; local_18 = param_3; local_10 = param_2 + param_4; do { if (param_5) { local_38 = "0123456789ABCDEF"; } else { local_38 = "0123456789abcdef"; } uVar1 = (uint)local_18 & (1 << ((byte)param_1 & 0x1f)) - 1U; if (param_1 < 4) { local_39 = (char)uVar1 + '0'; } else { local_39 = local_38[uVar1]; } pcVar2 = local_10 + -1; local_10[-1] = local_39; local_18 = local_18 >> ((byte)param_1 & 0x3f); local_10 = pcVar2; } while (local_18 != 0); return pcVar2; }
3,191
mysql_stmt_reset_cont
eloqsql/libmariadb/libmariadb/mariadb_async.c
int STDCALL mysql_stmt_reset_cont(my_bool *ret, MYSQL_STMT *stmt, int ready_status) { MK_ASYNC_CONT_BODY( stmt->mysql, TRUE, r_my_bool) }
O3
c
mysql_stmt_reset_cont: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x38(%rsi), %rax movq 0x480(%rax), %rcx movq 0x28(%rcx), %r15 cmpb $0x0, 0x15(%r15) je 0x31a19 movb $0x1, 0x14(%r15) movl %edx, 0x4(%r15) leaq 0x38(%r15), %rdi callq 0x32a07 movb $0x0, 0x14(%r15) testl %eax, %eax jle 0x31a7c movl (%r15), %r15d jmp 0x31af2 movl $0x7de, 0x90(%rax) # imm = 0x7DE movl $0x297, %edi # imm = 0x297 addq 0x38(%r14), %rdi leaq 0x1f4ad(%rip), %rax # 0x50ee0 movq (%rax), %rsi movl $0x5, %edx callq 0x13220 movq 0x38(%r14), %rax xorl %r15d, %r15d movb %r15b, 0x29c(%rax) movl $0x97, %edi addq 0x38(%r14), %rdi leaq 0x1f492(%rip), %rax # 0x50ef0 movq 0x70(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13220 movq 0x38(%r14), %rax movb %r15b, 0x296(%rax) movb $0x1, (%rbx) jmp 0x31af2 movb $0x0, 0x15(%r15) js 0x31a89 movb 0x8(%r15), %al jmp 0x31aed movq 0x38(%r14), %rax movl $0x7d8, 0x90(%rax) # imm = 0x7D8 movl $0x297, %edi # imm = 0x297 addq 0x38(%r14), %rdi leaq 0x1f439(%rip), %rax # 0x50ee0 movq (%rax), %rsi movl $0x5, %edx callq 0x13220 movq 0x38(%r14), %rax xorl %r15d, %r15d movb %r15b, 0x29c(%rax) movl $0x97, %edi addq 0x38(%r14), %rdi leaq 0x1f41e(%rip), %rax # 0x50ef0 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13220 movq 0x38(%r14), %rax movb %r15b, 0x296(%rax) movb $0x1, %al movb %al, (%rbx) xorl %r15d, %r15d movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
mysql_stmt_reset_cont: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rax, [rsi+38h] mov rcx, [rax+480h] mov r15, [rcx+28h] cmp byte ptr [r15+15h], 0 jz short loc_31A19 mov byte ptr [r15+14h], 1 mov [r15+4], edx lea rdi, [r15+38h] call my_context_continue mov byte ptr [r15+14h], 0 test eax, eax jle short loc_31A7C mov r15d, [r15] jmp loc_31AF2 loc_31A19: mov dword ptr [rax+90h], 7DEh mov edi, 297h add rdi, [r14+38h] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [r14+38h] xor r15d, r15d mov [rax+29Ch], r15b mov edi, 97h add rdi, [r14+38h] lea rax, client_errors mov rsi, [rax+70h] mov edx, 1FFh call _strncpy mov rax, [r14+38h] mov [rax+296h], r15b mov byte ptr [rbx], 1 jmp short loc_31AF2 loc_31A7C: mov byte ptr [r15+15h], 0 js short loc_31A89 mov al, [r15+8] jmp short loc_31AED loc_31A89: mov rax, [r14+38h] mov dword ptr [rax+90h], 7D8h mov edi, 297h add rdi, [r14+38h] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [r14+38h] xor r15d, r15d mov [rax+29Ch], r15b mov edi, 97h add rdi, [r14+38h] lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov rax, [r14+38h] mov [rax+296h], r15b mov al, 1 loc_31AED: mov [rbx], al xor r15d, r15d loc_31AF2: mov eax, r15d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long mysql_stmt_reset_cont(char *a1, long long a2, unsigned int a3) { long long v3; // rax unsigned int *v4; // r15 int v5; // eax unsigned int v6; // r15d char v7; // al v3 = *(_QWORD *)(a2 + 56); v4 = *(unsigned int **)(*(_QWORD *)(v3 + 1152) + 40LL); if ( *((_BYTE *)v4 + 21) ) { *((_BYTE *)v4 + 20) = 1; v4[1] = a3; v5 = my_context_continue(v4 + 14); *((_BYTE *)v4 + 20) = 0; if ( v5 <= 0 ) { *((_BYTE *)v4 + 21) = 0; if ( v5 < 0 ) { *(_DWORD *)(*(_QWORD *)(a2 + 56) + 144LL) = 2008; strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0; strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[8], 511LL); *(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0; v7 = 1; } else { v7 = *((_BYTE *)v4 + 8); } *a1 = v7; return 0; } else { return *v4; } } else { *(_DWORD *)(v3 + 144) = 2014; strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL); v6 = 0; *(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0; strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[14], 511LL); *(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0; *a1 = 1; } return v6; }
mysql_stmt_reset_cont: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI + 0x38] MOV RCX,qword ptr [RAX + 0x480] MOV R15,qword ptr [RCX + 0x28] CMP byte ptr [R15 + 0x15],0x0 JZ 0x00131a19 MOV byte ptr [R15 + 0x14],0x1 MOV dword ptr [R15 + 0x4],EDX LEA RDI,[R15 + 0x38] CALL 0x00132a07 MOV byte ptr [R15 + 0x14],0x0 TEST EAX,EAX JLE 0x00131a7c MOV R15D,dword ptr [R15] JMP 0x00131af2 LAB_00131a19: MOV dword ptr [RAX + 0x90],0x7de MOV EDI,0x297 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x150ee0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x38] XOR R15D,R15D MOV byte ptr [RAX + 0x29c],R15B MOV EDI,0x97 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x150ef0] MOV RSI,qword ptr [RAX + 0x70] MOV EDX,0x1ff CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x38] MOV byte ptr [RAX + 0x296],R15B MOV byte ptr [RBX],0x1 JMP 0x00131af2 LAB_00131a7c: MOV byte ptr [R15 + 0x15],0x0 JS 0x00131a89 MOV AL,byte ptr [R15 + 0x8] JMP 0x00131aed LAB_00131a89: MOV RAX,qword ptr [R14 + 0x38] MOV dword ptr [RAX + 0x90],0x7d8 MOV EDI,0x297 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x150ee0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x38] XOR R15D,R15D MOV byte ptr [RAX + 0x29c],R15B MOV EDI,0x97 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x150ef0] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x38] MOV byte ptr [RAX + 0x296],R15B MOV AL,0x1 LAB_00131aed: MOV byte ptr [RBX],AL XOR R15D,R15D LAB_00131af2: MOV EAX,R15D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int4 mysql_stmt_reset_cont(int1 *param_1,long param_2,int4 param_3) { int4 *puVar1; int1 uVar2; int iVar3; int4 uVar4; puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28); if (*(char *)((long)puVar1 + 0x15) == '\0') { *(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7de; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5); uVar4 = 0; *(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97), PTR_s_Commands_out_of_sync__you_can_t_r_00150f60,0x1ff); *(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0; *param_1 = 1; } else { *(int1 *)(puVar1 + 5) = 1; puVar1[1] = param_3; iVar3 = my_context_continue(puVar1 + 0xe); *(int1 *)(puVar1 + 5) = 0; if (iVar3 < 1) { *(int1 *)((long)puVar1 + 0x15) = 0; if (iVar3 < 0) { *(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7d8; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_00150f30, 0x1ff); *(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0; uVar2 = 1; } else { uVar2 = *(int1 *)(puVar1 + 2); } *param_1 = uVar2; uVar4 = 0; } else { uVar4 = *puVar1; } } return uVar4; }
3,192
LefDefParser::lefwLayerRoutingEdgeCap(double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwLayerRoutingEdgeCap(double edgeCap) { if (!lefwFile) return LEFW_UNINITIALIZED; if (lefwState != LEFW_LAYERROUTING_START && lefwState != LEFW_LAYERROUTING) return LEFW_BAD_ORDER; if (!lefwIsRouting) return LEFW_BAD_DATA; // only routing calls this func if (prtSemiColon) { // the previous statement hasn't written the ; yet if (lefwWriteEncrypt) encPrint(lefwFile, (char*) ";\n"); else fprintf(lefwFile, ";\n"); prtSemiColon = 0; } if (lefwWriteEncrypt) encPrint(lefwFile, (char*) " EDGECAPACITANCE %.11g ;\n", edgeCap); else fprintf(lefwFile, " EDGECAPACITANCE %.11g ;\n", edgeCap); lefwLines++; return LEFW_OK; }
O3
cpp
LefDefParser::lefwLayerRoutingEdgeCap(double): pushq %rbx subq $0x10, %rsp leaq 0x79046(%rip), %rbx # 0x8d0f0 movq (%rbx), %rcx testq %rcx, %rcx je 0x14105 leaq 0x79287(%rip), %rax # 0x8d340 movl (%rax), %edx cmpl $0x1f, %edx je 0x140ce movl $0x2, %eax cmpl $0x7, %edx jne 0x1416b leaq 0x792df(%rip), %rax # 0x8d3b4 cmpl $0x0, (%rax) je 0x1410c cmpb $0x1, 0x79303(%rip) # 0x8d3e4 jne 0x14136 movsd %xmm0, 0x8(%rsp) cmpb $0x1, 0x792ec(%rip) # 0x8d3dc jne 0x14113 leaq 0x46708(%rip), %rsi # 0x5a801 movq %rcx, %rdi xorl %eax, %eax callq 0x55afd jmp 0x14129 movl $0x1, %eax jmp 0x1416b movl $0x3, %eax jmp 0x1416b leaq 0x466e7(%rip), %rdi # 0x5a801 movl $0x2, %esi movl $0x1, %edx callq 0x23d0 movb $0x0, 0x792b4(%rip) # 0x8d3e4 movsd 0x8(%rsp), %xmm0 movq (%rbx), %rdi cmpb $0x1, 0x7929c(%rip) # 0x8d3dc jne 0x14152 leaq 0x478ab(%rip), %rsi # 0x5b9f4 movb $0x1, %al callq 0x55afd jmp 0x14160 leaq 0x4789b(%rip), %rsi # 0x5b9f4 movb $0x1, %al callq 0x22e0 leaq 0x791d5(%rip), %rax # 0x8d33c incl (%rax) xorl %eax, %eax addq $0x10, %rsp popq %rbx retq
_ZN12LefDefParser23lefwLayerRoutingEdgeCapEd: push rbx sub rsp, 10h lea rbx, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rcx, [rbx] test rcx, rcx jz short loc_14105 lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov edx, [rax] cmp edx, 1Fh jz short loc_140CE mov eax, 2 cmp edx, 7 jnz loc_1416B loc_140CE: lea rax, _ZN12LefDefParser13lefwIsRoutingE; LefDefParser::lefwIsRouting cmp dword ptr [rax], 0 jz short loc_1410C cmp cs:_ZN12LefDefParserL12prtSemiColonE, 1; LefDefParser::prtSemiColon jnz short loc_14136 movsd [rsp+18h+var_10], xmm0 cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz short loc_14113 lea rsi, aDividercharS+11h; ";\n" mov rdi, rcx xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_14129 loc_14105: mov eax, 1 jmp short loc_1416B loc_1410C: mov eax, 3 jmp short loc_1416B loc_14113: lea rdi, aDividercharS+11h; ";\n" mov esi, 2 mov edx, 1 call _fwrite loc_14129: mov cs:_ZN12LefDefParserL12prtSemiColonE, 0; LefDefParser::prtSemiColon movsd xmm0, [rsp+18h+var_10] loc_14136: mov rdi, [rbx] cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz short loc_14152 lea rsi, aEdgecapacitanc_0+3; " EDGECAPACITANCE %.11g ;\n" mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_14160 loc_14152: lea rsi, aEdgecapacitanc_0+3; " EDGECAPACITANCE %.11g ;\n" mov al, 1 call _fprintf loc_14160: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines inc dword ptr [rax] xor eax, eax loc_1416B: add rsp, 10h pop rbx retn
long long LefDefParser::lefwLayerRoutingEdgeCap( LefDefParser *this, double a2, long long a3, long long a4, long long a5, int a6, int a7) { int v7; // ecx unsigned int v8; // edx long long result; // rax v7 = LefDefParser::lefwFile; if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; v8 = LefDefParser::lefwState; if ( LefDefParser::lefwState == 31 || (result = 2LL, LefDefParser::lefwState == 7) ) { if ( LefDefParser::lefwIsRouting ) { if ( LefDefParser::prtSemiColon == 1 ) { if ( LefDefParser::lefwWriteEncrypt == 1 ) LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)";\n", LefDefParser::lefwState, LefDefParser::lefwFile, a6, a7); else fwrite(";\n", 2LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); LefDefParser::prtSemiColon = 0; } if ( LefDefParser::lefwWriteEncrypt == 1 ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" EDGECAPACITANCE %.11g ;\n", v8, v7, a6, a7); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, " EDGECAPACITANCE %.11g ;\n", a2); ++LefDefParser::lefwLines; return 0LL; } else { return 3LL; } } return result; }
lefwLayerRoutingEdgeCap: PUSH RBX SUB RSP,0x10 LEA RBX,[0x18d0f0] MOV RCX,qword ptr [RBX] TEST RCX,RCX JZ 0x00114105 LEA RAX,[0x18d340] MOV EDX,dword ptr [RAX] CMP EDX,0x1f JZ 0x001140ce MOV EAX,0x2 CMP EDX,0x7 JNZ 0x0011416b LAB_001140ce: LEA RAX,[0x18d3b4] CMP dword ptr [RAX],0x0 JZ 0x0011410c CMP byte ptr [0x0018d3e4],0x1 JNZ 0x00114136 MOVSD qword ptr [RSP + 0x8],XMM0 CMP byte ptr [0x0018d3dc],0x1 JNZ 0x00114113 LEA RSI,[0x15a801] MOV RDI,RCX XOR EAX,EAX CALL 0x00155afd JMP 0x00114129 LAB_00114105: MOV EAX,0x1 JMP 0x0011416b LAB_0011410c: MOV EAX,0x3 JMP 0x0011416b LAB_00114113: LEA RDI,[0x15a801] MOV ESI,0x2 MOV EDX,0x1 CALL 0x001023d0 LAB_00114129: MOV byte ptr [0x0018d3e4],0x0 MOVSD XMM0,qword ptr [RSP + 0x8] LAB_00114136: MOV RDI,qword ptr [RBX] CMP byte ptr [0x0018d3dc],0x1 JNZ 0x00114152 LEA RSI,[0x15b9f4] MOV AL,0x1 CALL 0x00155afd JMP 0x00114160 LAB_00114152: LEA RSI,[0x15b9f4] MOV AL,0x1 CALL 0x001022e0 LAB_00114160: LEA RAX,[0x18d33c] INC dword ptr [RAX] XOR EAX,EAX LAB_0011416b: ADD RSP,0x10 POP RBX RET
/* LefDefParser::lefwLayerRoutingEdgeCap(double) */ int8 LefDefParser::lefwLayerRoutingEdgeCap(double param_1) { int8 uVar1; if (lefwFile == (_IO_FILE *)0x0) { uVar1 = 1; } else if ((lefwState == 0x1f) || (uVar1 = 2, lefwState == 7)) { if (lefwIsRouting == 0) { uVar1 = 3; } else { if (prtSemiColon == '\x01') { if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile,";\n"); } else { fwrite(";\n",2,1,lefwFile); } prtSemiColon = '\0'; } if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile," EDGECAPACITANCE %.11g ;\n"); } else { fprintf(lefwFile," EDGECAPACITANCE %.11g ;\n",param_1); } lefwLines = lefwLines + 1; uVar1 = 0; } } return uVar1; }
3,193
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object()
llama.cpp/common/json.hpp
bool end_object() { if (ref_stack.back()) { if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back())) { // discard object *ref_stack.back() = discarded; } else { ref_stack.back()->set_parents(); } } JSON_ASSERT(!ref_stack.empty()); JSON_ASSERT(!keep_stack.empty()); ref_stack.pop_back(); keep_stack.pop_back(); if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured()) { // remove discarded value for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it) { if (it->is_discarded()) { ref_stack.back()->erase(it); break; } } } return true; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rdi, %rbx movq 0x10(%rdi), %rax movq -0x8(%rax), %rcx testq %rcx, %rcx je 0x87e9a subq 0x8(%rbx), %rax shrq $0x3, %rax decl %eax movl %eax, 0x28(%rsp) movb $0x1, 0x8(%rsp) cmpq $0x0, 0x90(%rbx) je 0x88045 leaq 0x80(%rbx), %rdi leaq 0x28(%rsp), %rsi leaq 0x8(%rsp), %rdx callq *0x98(%rbx) testb %al, %al jne 0x87e9a leaq 0xa8(%rbx), %rsi leaq 0x48(%rsp), %r14 movq %r14, %rdi callq 0x88e2e movq 0x10(%rbx), %rax movq -0x8(%rax), %rdi movq %r14, %rsi callq 0x86d4c movq %r14, %rdi xorl %esi, %esi callq 0x84be0 movq %r14, %rdi callq 0x892fa movq 0x8(%rbx), %rcx movq 0x10(%rbx), %rax cmpq %rax, %rcx je 0x88008 movq 0x30(%rbx), %rdx movl 0x38(%rbx), %esi cmpq %rdx, 0x20(%rbx) sete %dil testl %esi, %esi sete %r8b andb %dil, %r8b cmpb $0x1, %r8b je 0x88024 leaq -0x8(%rax), %rdi movq %rdi, 0x10(%rbx) subl $0x1, %esi movl %esi, 0x38(%rbx) jae 0x87eec movl $0x3f, 0x38(%rbx) addq $-0x8, %rdx movq %rdx, 0x30(%rbx) cmpq %rdi, %rcx je 0x87ff7 movq -0x10(%rax), %rax testq %rax, %rax je 0x87ff7 movb (%rax), %cl decb %cl cmpb $0x1, %cl ja 0x87ff7 movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000 leaq 0x28(%rsp), %r14 movq %rax, (%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r14) movq %r12, 0x18(%r14) movq %r14, %rdi callq 0x89d02 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax leaq 0x8(%rsp), %r15 movq %rax, (%r15) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r15) movq %r12, 0x18(%r15) movq %r15, %rdi callq 0x8a054 movq %r14, %rdi movq %r15, %rsi callq 0x89d74 testb %al, %al jne 0x87ff7 leaq 0x30(%rsp), %r13 leaq 0x10(%rsp), %rbp leaq 0x28(%rsp), %r14 leaq 0x8(%rsp), %r15 movq %r14, %rdi callq 0x88ed2 cmpb $0x9, (%rax) je 0x87fc7 movq %r14, %rdi callq 0x892ac movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq %rax, 0x8(%rsp) xorps %xmm0, %xmm0 movups %xmm0, (%rbp) movq %r12, 0x20(%rsp) movq %r15, %rdi callq 0x8a054 movq %r14, %rdi movq %r15, %rsi callq 0x89d74 testb %al, %al je 0x87f80 jmp 0x87ff7 movq 0x10(%rbx), %rax movq -0x8(%rax), %rsi movq 0x28(%rsp), %rax leaq 0x58(%rsp), %rdx movq %rax, (%rdx) movups (%r13), %xmm0 movups %xmm0, 0x8(%rdx) movq 0x10(%r13), %rax movq %rax, 0x18(%rdx) leaq 0x8(%rsp), %rdi callq 0x8901e movb $0x1, %al addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x91e79(%rip), %rdi # 0x119e88 leaq 0x91ead(%rip), %rdx # 0x119ec3 leaq 0x92e5e(%rip), %rcx # 0x11ae7b movl $0x1bbd, %esi # imm = 0x1BBD jmp 0x8803e leaq 0x91e5d(%rip), %rdi # 0x119e88 leaq 0x91e91(%rip), %rdx # 0x119ec3 leaq 0x92dbc(%rip), %rcx # 0x11adf5 movl $0x1bbe, %esi # imm = 0x1BBE xorl %eax, %eax callq 0x20e70 callq 0x212c0
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov rbx, rdi mov rax, [rdi+10h] mov rcx, [rax-8] test rcx, rcx jz short loc_87E9A sub rax, [rbx+8] shr rax, 3 dec eax mov dword ptr [rsp+0A8h+var_80], eax mov byte ptr [rsp+0A8h+var_A0], 1 cmp qword ptr [rbx+90h], 0 jz loc_88045 lea rdi, [rbx+80h] lea rsi, [rsp+0A8h+var_80] lea rdx, [rsp+0A8h+var_A0] call qword ptr [rbx+98h] test al, al jnz short loc_87E9A lea rsi, [rbx+0A8h] lea r14, [rsp+0A8h+var_60] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rax, [rbx+10h] mov rdi, [rax-8] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_87E9A: mov rcx, [rbx+8] mov rax, [rbx+10h] cmp rcx, rax jz loc_88008 mov rdx, [rbx+30h] mov esi, [rbx+38h] cmp [rbx+20h], rdx setz dil test esi, esi setz r8b and r8b, dil cmp r8b, 1 jz loc_88024 lea rdi, [rax-8] mov [rbx+10h], rdi sub esi, 1 mov [rbx+38h], esi jnb short loc_87EEC mov dword ptr [rbx+38h], 3Fh ; '?' add rdx, 0FFFFFFFFFFFFFFF8h mov [rbx+30h], rdx loc_87EEC: cmp rcx, rdi jz loc_87FF7 mov rax, [rax-10h] test rax, rax jz loc_87FF7 mov cl, [rax] dec cl cmp cl, 1 ja loc_87FF7 mov r12, 8000000000000000h lea r14, [rsp+0A8h+var_80] mov [r14], rax xorps xmm0, xmm0 movups xmmword ptr [r14+8], xmm0 mov [r14+18h], r12 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_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>>::set_begin(void) mov rax, [rbx+10h] mov rax, [rax-8] lea r15, [rsp+0A8h+var_A0] mov [r15], rax xorps xmm0, xmm0 movups xmmword ptr [r15+8], xmm0 mov [r15+18h], r12 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_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>>::set_end(void) mov rdi, r14 mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ test al, al jnz loc_87FF7 lea r13, [rsp+0A8h+var_78] lea rbp, [rsp+0A8h+var_98] lea r14, [rsp+0A8h+var_80] lea r15, [rsp+0A8h+var_A0] loc_87F80: mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; 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>>::operator->(void) cmp byte ptr [rax], 9 jz short loc_87FC7 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_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>>::operator++(void) mov rax, [rbx+10h] mov rax, [rax-8] mov [rsp+0A8h+var_A0], rax xorps xmm0, xmm0 movups xmmword ptr [rbp+0], xmm0 mov [rsp+0A8h+var_88], r12 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_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>>::set_end(void) mov rdi, r14 mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ test al, al jz short loc_87F80 jmp short loc_87FF7 loc_87FC7: mov rax, [rbx+10h] mov rsi, [rax-8] mov rax, [rsp+0A8h+var_80] lea rdx, [rsp+0A8h+var_50] mov [rdx], rax movups xmm0, xmmword ptr [r13+0] movups xmmword ptr [rdx+8], xmm0 mov rax, [r13+10h] mov [rdx+18h], rax lea rdi, [rsp+0A8h+var_A0] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_ loc_87FF7: mov al, 1 add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_88008: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackEmpty; "!ref_stack.empty()" mov esi, 1BBDh jmp short loc_8803E loc_88024: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1BBEh loc_8803E: xor eax, eax call _ggml_abort loc_88045: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_object( long long a1) { long long v1; // rax long long v2; // rcx long long v3; // rax long long v4; // rdx int v5; // esi _BYTE *v6; // rax long long v7; // rsi long long v9; // [rsp+8h] [rbp-A0h] BYREF __int128 v10; // [rsp+10h] [rbp-98h] unsigned long long v11; // [rsp+20h] [rbp-88h] _BYTE *v12; // [rsp+28h] [rbp-80h] BYREF __int128 v13; // [rsp+30h] [rbp-78h] unsigned long long v14; // [rsp+40h] [rbp-68h] char v15[16]; // [rsp+48h] [rbp-60h] BYREF _BYTE *v16; // [rsp+58h] [rbp-50h] __int128 v17; // [rsp+60h] [rbp-48h] unsigned long long v18; // [rsp+70h] [rbp-38h] v1 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(v1 - 8) ) { LODWORD(v12) = ((unsigned long long)(v1 - *(_QWORD *)(a1 + 8)) >> 3) - 1; LOBYTE(v9) = 1; if ( !*(_QWORD *)(a1 + 144) ) goto LABEL_20; if ( !(*(unsigned __int8 ( **)(long long, _BYTE **, long long *))(a1 + 152))(a1 + 128, &v12, &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( v15, a1 + 168); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL), (long long)v15); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v15); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v15); } } v2 = *(_QWORD *)(a1 + 8); v3 = *(_QWORD *)(a1 + 16); if ( v2 == v3 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 7101LL, "GGML_ASSERT(%s) failed", "!ref_stack.empty()"); goto LABEL_20; } v4 = *(_QWORD *)(a1 + 48); v5 = *(_DWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 32) == v4 && v5 == 0 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 7102LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); LABEL_20: std::__throw_bad_function_call(); } *(_QWORD *)(a1 + 16) = v3 - 8; *(_DWORD *)(a1 + 56) = v5 - 1; if ( !v5 ) { *(_DWORD *)(a1 + 56) = 63; *(_QWORD *)(a1 + 48) = v4 - 8; } if ( v2 != v3 - 8 ) { v6 = *(_BYTE **)(v3 - 16); if ( v6 ) { if ( (unsigned __int8)(*v6 - 1) <= 1u ) { v12 = v6; v13 = 0LL; v14 = 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>>::set_begin(&v12); v9 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL); v10 = 0LL; v11 = 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>>::set_end(&v9); if ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_( &v12, &v9) ) { while ( *(_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>>::operator->(&v12) != 9 ) { 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>>::operator++(&v12); v9 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL); v10 = 0LL; v11 = 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>>::set_end(&v9); if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_( &v12, &v9) ) return 1; } v7 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL); v16 = v12; v17 = v13; v18 = v14; ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_( &v9, v7); } } } } return 1; }
end_object: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x10] MOV RCX,qword ptr [RAX + -0x8] TEST RCX,RCX JZ 0x00187e9a SUB RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 DEC EAX MOV dword ptr [RSP + 0x28],EAX MOV byte ptr [RSP + 0x8],0x1 CMP qword ptr [RBX + 0x90],0x0 JZ 0x00188045 LEA RDI,[RBX + 0x80] LEA RSI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL qword ptr [RBX + 0x98] TEST AL,AL JNZ 0x00187e9a LEA RSI,[RBX + 0xa8] LEA R14,[RSP + 0x48] MOV RDI,R14 CALL 0x00188e2e MOV RAX,qword ptr [RBX + 0x10] MOV RDI,qword ptr [RAX + -0x8] MOV RSI,R14 CALL 0x00186d4c MOV RDI,R14 XOR ESI,ESI CALL 0x00184be0 MOV RDI,R14 CALL 0x001892fa LAB_00187e9a: MOV RCX,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RBX + 0x10] CMP RCX,RAX JZ 0x00188008 MOV RDX,qword ptr [RBX + 0x30] MOV ESI,dword ptr [RBX + 0x38] CMP qword ptr [RBX + 0x20],RDX SETZ DIL TEST ESI,ESI SETZ R8B AND R8B,DIL CMP R8B,0x1 JZ 0x00188024 LEA RDI,[RAX + -0x8] MOV qword ptr [RBX + 0x10],RDI SUB ESI,0x1 MOV dword ptr [RBX + 0x38],ESI JNC 0x00187eec MOV dword ptr [RBX + 0x38],0x3f ADD RDX,-0x8 MOV qword ptr [RBX + 0x30],RDX LAB_00187eec: CMP RCX,RDI JZ 0x00187ff7 MOV RAX,qword ptr [RAX + -0x10] TEST RAX,RAX JZ 0x00187ff7 MOV CL,byte ptr [RAX] DEC CL CMP CL,0x1 JA 0x00187ff7 MOV R12,-0x8000000000000000 LEA R14,[RSP + 0x28] MOV qword ptr [R14],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x8],XMM0 MOV qword ptr [R14 + 0x18],R12 MOV RDI,R14 CALL 0x00189d02 MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] LEA R15,[RSP + 0x8] MOV qword ptr [R15],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + 0x8],XMM0 MOV qword ptr [R15 + 0x18],R12 MOV RDI,R15 CALL 0x0018a054 MOV RDI,R14 MOV RSI,R15 CALL 0x00189d74 TEST AL,AL JNZ 0x00187ff7 LEA R13,[RSP + 0x30] LEA RBP,[RSP + 0x10] LEA R14,[RSP + 0x28] LEA R15,[RSP + 0x8] LAB_00187f80: MOV RDI,R14 CALL 0x00188ed2 CMP byte ptr [RAX],0x9 JZ 0x00187fc7 MOV RDI,R14 CALL 0x001892ac MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV qword ptr [RSP + 0x8],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBP],XMM0 MOV qword ptr [RSP + 0x20],R12 MOV RDI,R15 CALL 0x0018a054 MOV RDI,R14 MOV RSI,R15 CALL 0x00189d74 TEST AL,AL JZ 0x00187f80 JMP 0x00187ff7 LAB_00187fc7: MOV RAX,qword ptr [RBX + 0x10] MOV RSI,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RSP + 0x28] LEA RDX,[RSP + 0x58] MOV qword ptr [RDX],RAX MOVUPS XMM0,xmmword ptr [R13] MOVUPS xmmword ptr [RDX + 0x8],XMM0 MOV RAX,qword ptr [R13 + 0x10] MOV qword ptr [RDX + 0x18],RAX LEA RDI,[RSP + 0x8] CALL 0x0018901e LAB_00187ff7: MOV AL,0x1 ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00188008: LEA RDI,[0x219e88] LEA RDX,[0x219ec3] LEA RCX,[0x21ae7b] MOV ESI,0x1bbd JMP 0x0018803e LAB_00188024: LEA RDI,[0x219e88] LEA RDX,[0x219ec3] LEA RCX,[0x21adf5] MOV ESI,0x1bbe LAB_0018803e: XOR EAX,EAX CALL 0x00120e70 LAB_00188045: CALL 0x001212c0
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::end_object() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::end_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this) { int iVar1; long lVar2; char cVar3; char *pcVar4; int8 uVar5; int8 local_a0; int8 local_98; int8 uStack_90; int8 local_88; char *local_80; int8 local_78; int8 uStack_70; int8 local_68; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_60 [16]; char *local_50; int4 local_48; int4 uStack_44; int4 uStack_40; int4 uStack_3c; int8 local_38; if (*(long *)(*(long *)(this + 0x10) + -8) != 0) { local_80 = (char *)CONCAT44(local_80._4_4_, (int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3) + -1); local_a0 = CONCAT71(local_a0._1_7_,1); if (*(long *)(this + 0x90) == 0) { /* WARNING: Subroutine does not return */ std::__throw_bad_function_call(); } cVar3 = (**(code **)(this + 0x98))(this + 0x80,&local_80,&local_a0); if (cVar3 == '\0') { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_60,(basic_json *)(this + 0xa8)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(*(long *)(this + 0x10) + -8),local_60); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_60,0)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_60); } } lVar2 = *(long *)(this + 0x10); if (*(long *)(this + 8) == lVar2) { pcVar4 = "!ref_stack.empty()"; uVar5 = 0x1bbd; } else { iVar1 = *(int *)(this + 0x38); if (iVar1 != 0 || *(long *)(this + 0x20) != *(long *)(this + 0x30)) { *(long *)(this + 0x10) = lVar2 + -8; *(int *)(this + 0x38) = iVar1 + -1; if (iVar1 == 0) { *(int4 *)(this + 0x38) = 0x3f; *(long *)(this + 0x30) = *(long *)(this + 0x30) + -8; } if (((*(long *)(this + 8) != lVar2 + -8) && (local_80 = *(char **)(lVar2 + -0x10), local_80 != (char *)0x0)) && ((byte)(*local_80 - 1U) < 2)) { local_78 = 0; uStack_70 = 0; local_68 = 0x8000000000000000; 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>> ::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>> *)&local_80); local_a0 = *(int8 *)(*(long *)(this + 0x10) + -8); local_98 = 0; uStack_90 = 0; local_88 = 0x8000000000000000; 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>> ::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>> *)&local_a0); cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_80, (iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_a0); if (cVar3 == '\0') { do { pcVar4 = (char *)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>> ::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>> *)&local_80); if (*pcVar4 == '\t') { local_50 = local_80; local_48 = (int4)local_78; uStack_44 = local_78._4_4_; uStack_40 = (int4)uStack_70; uStack_3c = uStack_70._4_4_; local_38 = local_68; _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_ (&local_a0,*(int8 *)(*(long *)(this + 0x10) + -8)); return 1; } 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>> ::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>> *)&local_80); local_a0 = *(int8 *)(*(long *)(this + 0x10) + -8); local_98 = 0; uStack_90 = 0; local_88 = 0x8000000000000000; 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>> ::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>> *)&local_a0); cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_80, (iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_a0); } while (cVar3 == '\0'); } } return 1; } pcVar4 = "!keep_stack.empty()"; uVar5 = 0x1bbe; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",uVar5, "GGML_ASSERT(%s) failed",pcVar4); }
3,194
LefDefParser::lefiLayer::addSpTwoWidths(double, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp
void lefiLayer::addSpTwoWidths(double width, double runLength) { lefiSpacingTable *sp; sp = spacingTable_[numSpacingTable_ - 1]; /* This will never happen since in lef.y, the grammer requires a number for spacing if (numNums_ == 0) { * spacing is required in TWOWIDTHS * lefiError("ERROR (LEFPARS-1324): Incorrect syntax defined for the statement TWOWIDTHS.\nspacing, which is required is not defined."); return; } */ sp->addTwoWidths(width, runLength, numNums_, nums_, hasTwoWidthPRL_); // Since inside addTwoWidthsSpacing copy the nums_, we can free it // here lefFree((char*) (nums_)); numNums_ = 0; numAllocated_ = 0; nums_ = 0; hasTwoWidthPRL_ = 0; }
O0
cpp
LefDefParser::lefiLayer::addSpTwoWidths(double, double): subq $0x28, %rsp movq %rdi, 0x20(%rsp) movsd %xmm0, 0x18(%rsp) movsd %xmm1, 0x10(%rsp) movq 0x20(%rsp), %rax movq %rax, (%rsp) movq 0x4b0(%rax), %rcx movl 0x4a8(%rax), %edx subl $0x1, %edx movslq %edx, %rdx movq (%rcx,%rdx,8), %rcx movq %rcx, 0x8(%rsp) movq 0x8(%rsp), %rdi movsd 0x18(%rsp), %xmm0 movsd 0x10(%rsp), %xmm1 movl 0x398(%rax), %esi movq 0x3a0(%rax), %rdx movl 0x434(%rax), %ecx callq 0x1c180 movq (%rsp), %rax movq 0x3a0(%rax), %rdi callq 0x38c90 movq (%rsp), %rax movl $0x0, 0x398(%rax) movl $0x0, 0x39c(%rax) movq $0x0, 0x3a0(%rax) movl $0x0, 0x434(%rax) addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser9lefiLayer14addSpTwoWidthsEdd: sub rsp, 28h mov [rsp+28h+var_8], rdi movsd [rsp+28h+var_10], xmm0 movsd [rsp+28h+var_18], xmm1 mov rax, [rsp+28h+var_8] mov [rsp+28h+var_28], rax mov rcx, [rax+4B0h] mov edx, [rax+4A8h] sub edx, 1 movsxd rdx, edx mov rcx, [rcx+rdx*8] mov [rsp+28h+var_20], rcx mov rdi, [rsp+28h+var_20]; this movsd xmm0, [rsp+28h+var_10]; double movsd xmm1, [rsp+28h+var_18]; double mov esi, [rax+398h]; void * mov rdx, [rax+3A0h]; double * mov ecx, [rax+434h]; int call _ZN12LefDefParser16lefiSpacingTable12addTwoWidthsEddiPdi; LefDefParser::lefiSpacingTable::addTwoWidths(double,double,int,double *,int) mov rax, [rsp+28h+var_28] mov rdi, [rax+3A0h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rax, [rsp+28h+var_28] mov dword ptr [rax+398h], 0 mov dword ptr [rax+39Ch], 0 mov qword ptr [rax+3A0h], 0 mov dword ptr [rax+434h], 0 add rsp, 28h retn
LefDefParser::lefiLayer * LefDefParser::lefiLayer::addSpTwoWidths( LefDefParser::lefiLayer *this, double a2, double a3) { unsigned long long v3; // rsi LefDefParser::lefiLayer *result; // rax v3 = *((unsigned int *)this + 230); LefDefParser::lefiSpacingTable::addTwoWidths( *(LefDefParser::lefiSpacingTable **)(*((_QWORD *)this + 150) + 8LL * (*((_DWORD *)this + 298) - 1)), a2, a3, v3, *((double **)this + 116), *((_DWORD *)this + 269)); LefDefParser::lefFree(*((LefDefParser **)this + 116), (void *)v3); result = this; *((_DWORD *)this + 230) = 0; *((_DWORD *)this + 231) = 0; *((_QWORD *)this + 116) = 0LL; *((_DWORD *)this + 269) = 0; return result; }
addSpTwoWidths: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOVSD qword ptr [RSP + 0x18],XMM0 MOVSD qword ptr [RSP + 0x10],XMM1 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP],RAX MOV RCX,qword ptr [RAX + 0x4b0] MOV EDX,dword ptr [RAX + 0x4a8] SUB EDX,0x1 MOVSXD RDX,EDX MOV RCX,qword ptr [RCX + RDX*0x8] MOV qword ptr [RSP + 0x8],RCX MOV RDI,qword ptr [RSP + 0x8] MOVSD XMM0,qword ptr [RSP + 0x18] MOVSD XMM1,qword ptr [RSP + 0x10] MOV ESI,dword ptr [RAX + 0x398] MOV RDX,qword ptr [RAX + 0x3a0] MOV ECX,dword ptr [RAX + 0x434] CALL 0x0011c180 MOV RAX,qword ptr [RSP] MOV RDI,qword ptr [RAX + 0x3a0] CALL 0x00138c90 MOV RAX,qword ptr [RSP] MOV dword ptr [RAX + 0x398],0x0 MOV dword ptr [RAX + 0x39c],0x0 MOV qword ptr [RAX + 0x3a0],0x0 MOV dword ptr [RAX + 0x434],0x0 ADD RSP,0x28 RET
/* LefDefParser::lefiLayer::addSpTwoWidths(double, double) */ void __thiscall LefDefParser::lefiLayer::addSpTwoWidths(lefiLayer *this,double param_1,double param_2) { lefiSpacingTable::addTwoWidths (*(lefiSpacingTable **) (*(long *)(this + 0x4b0) + (long)(*(int *)(this + 0x4a8) + -1) * 8),param_1,param_2, *(int *)(this + 0x398),*(double **)(this + 0x3a0),*(int *)(this + 0x434)); lefFree(*(void **)(this + 0x3a0)); *(int4 *)(this + 0x398) = 0; *(int4 *)(this + 0x39c) = 0; *(int8 *)(this + 0x3a0) = 0; *(int4 *)(this + 0x434) = 0; return; }
3,195
type_inference_get_type
tsotchke[P]eshkol/src/frontend/type_inference/context.c
Type* type_inference_get_type(TypeInferenceContext* context, const AstNode* node) { assert(context != NULL); // Check if node is NULL if (node == NULL) { return NULL; } // Check if the node is in the context for (size_t i = 0; i < context->count; i++) { if (context->nodes[i] == node) { return context->inferred_types[i]; } } // Check if the node has an inferred type stored directly if (node->inferred_type) { return node->inferred_type; } return NULL; }
O0
c
type_inference_get_type: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) cmpq $0x0, -0x10(%rbp) je 0x5d59 jmp 0x5d78 leaq 0x1035e(%rip), %rdi # 0x160be leaq 0x1125b(%rip), %rsi # 0x16fc2 movl $0xe8, %edx leaq 0x11424(%rip), %rcx # 0x17197 callq 0x1120 cmpq $0x0, -0x18(%rbp) jne 0x5d89 movq $0x0, -0x8(%rbp) jmp 0x5dfc movq $0x0, -0x20(%rbp) movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x30(%rcx), %rax jae 0x5ddb movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq -0x20(%rbp), %rcx movq (%rax,%rcx,8), %rax cmpq -0x18(%rbp), %rax jne 0x5dcb movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq -0x20(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -0x8(%rbp) jmp 0x5dfc jmp 0x5dcd movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) jmp 0x5d91 movq -0x18(%rbp), %rax cmpq $0x0, 0x20(%rax) je 0x5df4 movq -0x18(%rbp), %rax movq 0x20(%rax), %rax movq %rax, -0x8(%rbp) jmp 0x5dfc movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
type_inference_get_type: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi cmp [rbp+var_10], 0 jz short loc_5D59 jmp short loc_5D78 loc_5D59: lea rdi, aTypeContextNul+5; "context != NULL" lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"... mov edx, 0E8h lea rcx, aTypeTypeInfere; "Type *type_inference_get_type(TypeInfer"... call ___assert_fail loc_5D78: cmp [rbp+var_18], 0 jnz short loc_5D89 mov [rbp+var_8], 0 jmp short loc_5DFC loc_5D89: mov [rbp+var_20], 0 loc_5D91: mov rax, [rbp+var_20] mov rcx, [rbp+var_10] cmp rax, [rcx+30h] jnb short loc_5DDB mov rax, [rbp+var_10] mov rax, [rax+18h] mov rcx, [rbp+var_20] mov rax, [rax+rcx*8] cmp rax, [rbp+var_18] jnz short loc_5DCB mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rbp+var_20] mov rax, [rax+rcx*8] mov [rbp+var_8], rax jmp short loc_5DFC loc_5DCB: jmp short $+2 loc_5DCD: mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax jmp short loc_5D91 loc_5DDB: mov rax, [rbp+var_18] cmp qword ptr [rax+20h], 0 jz short loc_5DF4 mov rax, [rbp+var_18] mov rax, [rax+20h] mov [rbp+var_8], rax jmp short loc_5DFC loc_5DF4: mov [rbp+var_8], 0 loc_5DFC: mov rax, [rbp+var_8] add rsp, 20h pop rbp retn
long long type_inference_get_type(_QWORD *a1, long long a2) { unsigned long long i; // [rsp+0h] [rbp-20h] if ( !a1 ) __assert_fail( "context != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/type_inference/context.c", 232LL, "Type *type_inference_get_type(TypeInferenceContext *, const AstNode *)"); if ( !a2 ) return 0LL; for ( i = 0LL; i < a1[6]; ++i ) { if ( *(_QWORD *)(a1[3] + 8 * i) == a2 ) return *(_QWORD *)(a1[4] + 8 * i); } if ( *(_QWORD *)(a2 + 32) ) return *(_QWORD *)(a2 + 32); else return 0LL; }
type_inference_get_type: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI CMP qword ptr [RBP + -0x10],0x0 JZ 0x00105d59 JMP 0x00105d78 LAB_00105d59: LEA RDI,[0x1160be] LEA RSI,[0x116fc2] MOV EDX,0xe8 LEA RCX,[0x117197] CALL 0x00101120 LAB_00105d78: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x00105d89 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00105dfc LAB_00105d89: MOV qword ptr [RBP + -0x20],0x0 LAB_00105d91: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x30] JNC 0x00105ddb MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + RCX*0x8] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x00105dcb MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x8],RAX JMP 0x00105dfc LAB_00105dcb: JMP 0x00105dcd LAB_00105dcd: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX JMP 0x00105d91 LAB_00105ddb: MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0x20],0x0 JZ 0x00105df4 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x20] MOV qword ptr [RBP + -0x8],RAX JMP 0x00105dfc LAB_00105df4: MOV qword ptr [RBP + -0x8],0x0 LAB_00105dfc: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x20 POP RBP RET
int8 type_inference_get_type(long param_1,long param_2) { ulong local_28; int8 local_10; if (param_1 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("context != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/type_inference/context.c" ,0xe8,"Type *type_inference_get_type(TypeInferenceContext *, const AstNode *)"); } if (param_2 == 0) { local_10 = 0; } else { for (local_28 = 0; local_28 < *(ulong *)(param_1 + 0x30); local_28 = local_28 + 1) { if (*(long *)(*(long *)(param_1 + 0x18) + local_28 * 8) == param_2) { return *(int8 *)(*(long *)(param_1 + 0x20) + local_28 * 8); } } if (*(long *)(param_2 + 0x20) == 0) { local_10 = 0; } else { local_10 = *(int8 *)(param_2 + 0x20); } } return local_10; }
3,196
ma_SHA1Init
eloqsql/libmariadb/libmariadb/ma_sha1.c
void ma_SHA1Init(_MA_SHA1_CTX * context) { context->count[0] = context->count[1] = 0; /* Load magic initialization constants. */ context->state[0] = 0x67452301; context->state[1] = 0xefcdab89; context->state[2] = 0x98badcfe; context->state[3] = 0x10325476; context->state[4] = 0xc3d2e1f0; }
O0
c
ma_SHA1Init: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl $0x0, 0x18(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x14(%rax) movq -0x8(%rbp), %rax movl $0x67452301, (%rax) # imm = 0x67452301 movq -0x8(%rbp), %rax movl $0xefcdab89, 0x4(%rax) # imm = 0xEFCDAB89 movq -0x8(%rbp), %rax movl $0x98badcfe, 0x8(%rax) # imm = 0x98BADCFE movq -0x8(%rbp), %rax movl $0x10325476, 0xc(%rax) # imm = 0x10325476 movq -0x8(%rbp), %rax movl $0xc3d2e1f0, 0x10(%rax) # imm = 0xC3D2E1F0 popq %rbp retq nopw %cs:(%rax,%rax)
ma_SHA1Init: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov dword ptr [rax+18h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+14h], 0 mov rax, [rbp+var_8] mov dword ptr [rax], 67452301h mov rax, [rbp+var_8] mov dword ptr [rax+4], 0EFCDAB89h mov rax, [rbp+var_8] mov dword ptr [rax+8], 98BADCFEh mov rax, [rbp+var_8] mov dword ptr [rax+0Ch], 10325476h mov rax, [rbp+var_8] mov dword ptr [rax+10h], 0C3D2E1F0h pop rbp retn
_DWORD * ma_SHA1Init(_DWORD *a1) { _DWORD *result; // rax a1[6] = 0; a1[5] = 0; *a1 = 1732584193; a1[1] = -271733879; a1[2] = -1732584194; a1[3] = 271733878; result = a1; a1[4] = -1009589776; return result; }
ma_SHA1Init: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x18],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x14],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX],0x67452301 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x4],0xefcdab89 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x8],0x98badcfe MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xc],0x10325476 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x10],0xc3d2e1f0 POP RBP RET
void ma_SHA1Init(int4 *param_1) { param_1[6] = 0; param_1[5] = 0; *param_1 = 0x67452301; param_1[1] = 0xefcdab89; param_1[2] = 0x98badcfe; param_1[3] = 0x10325476; param_1[4] = 0xc3d2e1f0; return; }
3,197
OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<double>(OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
PatchTableBuilder::StencilTablePtr PatchTableBuilder::LocalPointHelper::acquireStencilTable( StencilTablePtr& stencilTableMember) { StencilTableReal<REAL> * stencilTable = stencilTableMember.Get<REAL>(); if (stencilTable) { if (stencilTable->GetNumStencils() > 0) { stencilTable->finalize(); } else { delete stencilTable; stencilTable = 0; } } stencilTableMember.Set(); return StencilTablePtr(stencilTable); }
O0
cpp
OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<double>(OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr&): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rdi callq 0xc9ca0 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x14fb6f movq -0x20(%rbp), %rdi callq 0xd62c0 cmpl $0x0, %eax jle 0x14fb4d movq -0x20(%rbp), %rdi callq 0xc5bb0 jmp 0x14fb6d movq -0x20(%rbp), %rax movq %rax, -0x28(%rbp) cmpq $0x0, %rax je 0x14fb65 movq -0x28(%rbp), %rdi movq (%rdi), %rax callq *0x8(%rax) movq $0x0, -0x20(%rbp) jmp 0x14fb6f movq -0x18(%rbp), %rdi callq 0xc3680 movq -0x20(%rbp), %rsi leaq -0x8(%rbp), %rdi callq 0xc4a40 movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nop
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelper19acquireStencilTableIfEENS1_10PatchTable15StencilTablePtrERS6_: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_18] call __ZNK10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtr3GetIfEEPNS1_16StencilTableRealIT_EEv; OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Get<float>(void) mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_14FB6F mov rdi, [rbp+var_20] call __ZNK10OpenSubdiv6v3_6_03Far16StencilTableRealIfE14GetNumStencilsEv; OpenSubdiv::v3_6_0::Far::StencilTableReal<float>::GetNumStencils(void) cmp eax, 0 jle short loc_14FB4D mov rdi, [rbp+var_20] call __ZN10OpenSubdiv6v3_6_03Far16StencilTableRealIfE8finalizeEv; OpenSubdiv::v3_6_0::Far::StencilTableReal<float>::finalize(void) jmp short loc_14FB6D loc_14FB4D: mov rax, [rbp+var_20] mov [rbp+var_28], rax cmp rax, 0 jz short loc_14FB65 mov rdi, [rbp+var_28] mov rax, [rdi] call qword ptr [rax+8] loc_14FB65: mov [rbp+var_20], 0 loc_14FB6D: jmp short $+2 loc_14FB6F: mov rdi, [rbp+var_18]; this call __ZN10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtr3SetEv; OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Set(void) mov rsi, [rbp+var_20] lea rdi, [rbp+var_8] call __ZN10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtrC2EPNS1_16StencilTableRealIfEE; OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::StencilTablePtr(OpenSubdiv::v3_6_0::Far::StencilTableReal<float> *) mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<float>( long long a1, OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr *a2) { long long v3; // [rsp+10h] [rbp-20h] long long v4; // [rsp+28h] [rbp-8h] BYREF v3 = OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Get<float>(a2); if ( v3 ) { if ( (int)OpenSubdiv::v3_6_0::Far::StencilTableReal<float>::GetNumStencils(v3) <= 0 ) { (*(void ( **)(long long))(*(_QWORD *)v3 + 8LL))(v3); v3 = 0LL; } else { OpenSubdiv::v3_6_0::Far::StencilTableReal<float>::finalize(v3); } } OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Set(a2); OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::StencilTablePtr(&v4, v3); return v4; }
3,198
OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<double>(OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
PatchTableBuilder::StencilTablePtr PatchTableBuilder::LocalPointHelper::acquireStencilTable( StencilTablePtr& stencilTableMember) { StencilTableReal<REAL> * stencilTable = stencilTableMember.Get<REAL>(); if (stencilTable) { if (stencilTable->GetNumStencils() > 0) { stencilTable->finalize(); } else { delete stencilTable; stencilTable = 0; } } stencilTableMember.Set(); return StencilTablePtr(stencilTable); }
O1
cpp
OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<double>(OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr&): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq (%rsi), %r14 testq %r14, %r14 je 0x6f718 movq 0x18(%r14), %rax subq 0x10(%r14), %rax shrq $0x2, %rax testl %eax, %eax jle 0x6f70f movq %r14, %rdi callq 0x3b810 movq 0x18(%r14), %rax subq 0x10(%r14), %rax leaq 0x28(%r14), %r15 shrq $0x2, %rax movslq %eax, %rsi movq %r15, %rdi callq 0x39690 movq 0x10(%r14), %rax movq 0x18(%r14), %rcx subq %rax, %rcx shrq $0x2, %rcx testl %ecx, %ecx jle 0x6f71b movq (%r15), %rdx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF xorl %esi, %esi xorl %edi, %edi movl %edi, (%rdx,%rsi,4) addl (%rax,%rsi,4), %edi incq %rsi cmpq %rsi, %rcx jne 0x6f6ff jmp 0x6f71b movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) xorl %r14d, %r14d movq $0x0, (%rbx) movq %r14, %rax popq %rbx popq %r14 popq %r15 retq nop
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelper19acquireStencilTableIfEENS1_10PatchTable15StencilTablePtrERS6_: push r15 push r14 push rbx mov rbx, rsi mov r14, [rsi] test r14, r14 jz short loc_6F718 mov rax, [r14+18h] sub rax, [r14+10h] shr rax, 2 test eax, eax jle short loc_6F70F mov rdi, r14 call __ZN10OpenSubdiv6v3_6_03Far16StencilTableRealIfE11shrinkToFitEv; OpenSubdiv::v3_6_0::Far::StencilTableReal<float>::shrinkToFit(void) mov rax, [r14+18h] sub rax, [r14+10h] lea r15, [r14+28h] shr rax, 2 movsxd rsi, eax mov rdi, r15 call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov rax, [r14+10h] mov rcx, [r14+18h] sub rcx, rax shr rcx, 2 test ecx, ecx jle short loc_6F71B mov rdx, [r15] and ecx, 7FFFFFFFh xor esi, esi xor edi, edi loc_6F6FF: mov [rdx+rsi*4], edi add edi, [rax+rsi*4] inc rsi cmp rcx, rsi jnz short loc_6F6FF jmp short loc_6F71B loc_6F70F: mov rax, [r14] mov rdi, r14 call qword ptr [rax+8] loc_6F718: xor r14d, r14d loc_6F71B: mov qword ptr [rbx], 0 mov rax, r14 pop rbx pop r14 pop r15 retn
_QWORD * OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<float>( long long a1, _QWORD *a2) { _QWORD *v3; // r14 long long v4; // rax long long v5; // rdx long long v6; // rcx long long v7; // rsi int v8; // edi v3 = (_QWORD *)*a2; if ( !*a2 ) goto LABEL_8; if ( (int)((v3[3] - v3[2]) >> 2) <= 0 ) { (*(void ( **)(_QWORD))(*v3 + 8LL))(*a2); LABEL_8: v3 = 0LL; goto LABEL_9; } OpenSubdiv::v3_6_0::Far::StencilTableReal<float>::shrinkToFit(*a2); std::vector<int>::resize(v3 + 5, (int)((v3[3] - v3[2]) >> 2)); v4 = v3[2]; if ( (int)((unsigned long long)(v3[3] - v4) >> 2) > 0 ) { v5 = v3[5]; v6 = ((unsigned long long)(v3[3] - v4) >> 2) & 0x7FFFFFFF; v7 = 0LL; v8 = 0; do { *(_DWORD *)(v5 + 4 * v7) = v8; v8 += *(_DWORD *)(v4 + 4 * v7++); } while ( v6 != v7 ); } LABEL_9: *a2 = 0LL; return v3; }
acquireStencilTable<float>: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,qword ptr [RSI] TEST R14,R14 JZ 0x0016f718 MOV RAX,qword ptr [R14 + 0x18] SUB RAX,qword ptr [R14 + 0x10] SHR RAX,0x2 TEST EAX,EAX JLE 0x0016f70f MOV RDI,R14 CALL 0x0013b810 MOV RAX,qword ptr [R14 + 0x18] SUB RAX,qword ptr [R14 + 0x10] LEA R15,[R14 + 0x28] SHR RAX,0x2 MOVSXD RSI,EAX MOV RDI,R15 CALL 0x00139690 MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [R14 + 0x18] SUB RCX,RAX SHR RCX,0x2 TEST ECX,ECX JLE 0x0016f71b MOV RDX,qword ptr [R15] AND ECX,0x7fffffff XOR ESI,ESI XOR EDI,EDI LAB_0016f6ff: MOV dword ptr [RDX + RSI*0x4],EDI ADD EDI,dword ptr [RAX + RSI*0x4] INC RSI CMP RCX,RSI JNZ 0x0016f6ff JMP 0x0016f71b LAB_0016f70f: MOV RAX,qword ptr [R14] MOV RDI,R14 CALL qword ptr [RAX + 0x8] LAB_0016f718: XOR R14D,R14D LAB_0016f71b: MOV qword ptr [RBX],0x0 MOV RAX,R14 POP RBX POP R14 POP R15 RET
/* OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<float>(OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr&) */ StencilTableReal<float> * __thiscall OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<float> (LocalPointHelper *this,StencilTablePtr_conflict *param_1) { long lVar1; long lVar2; uint uVar3; ulong uVar4; int iVar5; StencilTableReal<float> *this_00; this_00 = *(StencilTableReal<float> **)param_1; if (this_00 != (StencilTableReal<float> *)0x0) { if (0 < (int)((ulong)(*(long *)(this_00 + 0x18) - *(long *)(this_00 + 0x10)) >> 2)) { StencilTableReal<float>::shrinkToFit(this_00); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(this_00 + 0x28), (long)(int)((ulong)(*(long *)(this_00 + 0x18) - *(long *)(this_00 + 0x10)) >> 2)); lVar1 = *(long *)(this_00 + 0x10); uVar3 = (uint)((ulong)(*(long *)(this_00 + 0x18) - lVar1) >> 2); if (0 < (int)uVar3) { lVar2 = *(long *)(this_00 + 0x28); uVar4 = 0; iVar5 = 0; do { *(int *)(lVar2 + uVar4 * 4) = iVar5; iVar5 = iVar5 + *(int *)(lVar1 + uVar4 * 4); uVar4 = uVar4 + 1; } while ((uVar3 & 0x7fffffff) != uVar4); } goto LAB_0016f71b; } (**(code **)(*(long *)this_00 + 8))(this_00); } this_00 = (StencilTableReal<float> *)0x0; LAB_0016f71b: *(int8 *)param_1 = 0; return this_00; }
3,199
OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<double>(OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
PatchTableBuilder::StencilTablePtr PatchTableBuilder::LocalPointHelper::acquireStencilTable( StencilTablePtr& stencilTableMember) { StencilTableReal<REAL> * stencilTable = stencilTableMember.Get<REAL>(); if (stencilTable) { if (stencilTable->GetNumStencils() > 0) { stencilTable->finalize(); } else { delete stencilTable; stencilTable = 0; } } stencilTableMember.Set(); return StencilTablePtr(stencilTable); }
O2
cpp
OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<double>(OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr&): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq (%rsi), %r14 testq %r14, %r14 je 0x810a6 movq 0x18(%r14), %rax subq 0x10(%r14), %rax shrq $0x2, %rax testl %eax, %eax jle 0x8109d movq %r14, %rdi callq 0x51490 jmp 0x810a9 movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) xorl %r14d, %r14d andq $0x0, (%rbx) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelper19acquireStencilTableIdEENS1_10PatchTable15StencilTablePtrERS6_: push r14 push rbx push rax mov rbx, rsi mov r14, [rsi] test r14, r14 jz short loc_810A6 mov rax, [r14+18h] sub rax, [r14+10h] shr rax, 2 test eax, eax jle short loc_8109D mov rdi, r14 call __ZN10OpenSubdiv6v3_6_03Far16StencilTableRealIdE8finalizeEv; OpenSubdiv::v3_6_0::Far::StencilTableReal<double>::finalize(void) jmp short loc_810A9 loc_8109D: mov rax, [r14] mov rdi, r14 call qword ptr [rax+8] loc_810A6: xor r14d, r14d loc_810A9: and qword ptr [rbx], 0 mov rax, r14 add rsp, 8 pop rbx pop r14 retn
_QWORD * OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<double>( long long a1, _QWORD *a2) { _QWORD *v2; // r14 v2 = (_QWORD *)*a2; if ( !*a2 ) goto LABEL_5; if ( (int)((v2[3] - v2[2]) >> 2) <= 0 ) { (*(void ( **)(_QWORD))(*v2 + 8LL))(*a2); LABEL_5: v2 = 0LL; goto LABEL_6; } OpenSubdiv::v3_6_0::Far::StencilTableReal<double>::finalize(*a2); LABEL_6: *a2 = 0LL; return v2; }
acquireStencilTable<double>: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,qword ptr [RSI] TEST R14,R14 JZ 0x001810a6 MOV RAX,qword ptr [R14 + 0x18] SUB RAX,qword ptr [R14 + 0x10] SHR RAX,0x2 TEST EAX,EAX JLE 0x0018109d MOV RDI,R14 CALL 0x00151490 JMP 0x001810a9 LAB_0018109d: MOV RAX,qword ptr [R14] MOV RDI,R14 CALL qword ptr [RAX + 0x8] LAB_001810a6: XOR R14D,R14D LAB_001810a9: AND qword ptr [RBX],0x0 MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET
/* OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<double>(OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr&) */ StencilTableReal<double> * __thiscall OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::acquireStencilTable<double> (LocalPointHelper *this,StencilTablePtr *param_1) { StencilTableReal<double> *this_00; this_00 = *(StencilTableReal<double> **)param_1; if (this_00 != (StencilTableReal<double> *)0x0) { if (0 < (int)((ulong)(*(long *)(this_00 + 0x18) - *(long *)(this_00 + 0x10)) >> 2)) { StencilTableReal<double>::finalize(this_00); goto LAB_001810a9; } (**(code **)(*(long *)this_00 + 8))(this_00); } this_00 = (StencilTableReal<double> *)0x0; LAB_001810a9: *(int8 *)param_1 = 0; return this_00; }