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
49,800
JS_SetUncatchableError
bluesky950520[P]quickjs/quickjs.c
void JS_SetUncatchableError(JSContext *ctx, JSValue val, BOOL flag) { JSObject *p; if (JS_VALUE_GET_TAG(val) != JS_TAG_OBJECT) return; p = JS_VALUE_GET_OBJ(val); if (p->class_id == JS_CLASS_ERROR) p->is_uncatchable_error = flag; }
O2
c
JS_SetUncatchableError: cmpl $-0x1, %edx jne 0x24d6b cmpw $0x3, 0x6(%rsi) jne 0x24d6b movb 0x5(%rsi), %al shlb $0x5, %cl andb $0x20, %cl andb $-0x21, %al orb %cl, %al movb %al, 0x5(%rsi) retq
JS_SetUncatchableError: cmp edx, 0FFFFFFFFh jnz short locret_24D6B cmp word ptr [rsi+6], 3 jnz short locret_24D6B mov al, [rsi+5] shl cl, 5 and cl, 20h and al, 0DFh or al, cl mov [rsi+5], al locret_24D6B: retn
char JS_SetUncatchableError(long long a1, long long a2, int a3, char a4) { char result; // al if ( a3 == -1 && *(_WORD *)(a2 + 6) == 3 ) { result = (32 * a4) & 0x20 | *(_BYTE *)(a2 + 5) & 0xDF; *(_BYTE *)(a2 + 5) = result; } return result; }
JS_SetUncatchableError: CMP EDX,-0x1 JNZ 0x00124d6b CMP word ptr [RSI + 0x6],0x3 JNZ 0x00124d6b MOV AL,byte ptr [RSI + 0x5] SHL CL,0x5 AND CL,0x20 AND AL,0xdf OR AL,CL MOV byte ptr [RSI + 0x5],AL LAB_00124d6b: RET
void JS_SetUncatchableError(int8 param_1,long param_2,int param_3,byte param_4) { if ((param_3 == -1) && (*(short *)(param_2 + 6) == 3)) { *(byte *)(param_2 + 5) = *(byte *)(param_2 + 5) & 0xdf | (param_4 & 1) << 5; } return; }
49,801
common_kv_cache_dump_view_seqs(llama_kv_cache_view const&, int)
monkey531[P]llama/common/common.cpp
void common_kv_cache_dump_view_seqs(const llama_kv_cache_view & view, int row_size) { static const char slot_chars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d\n", view.n_cells, view.n_seq_max, view.used_cells, view.token_count, view.max_contiguous, view.max_contiguous_idx); std::unordered_map<llama_seq_id, size_t> seqs; llama_kv_cache_view_cell * c_curr = view.cells; llama_seq_id * cs_curr = view.cells_sequences; for (int i = 0; i < view.n_cells; i++, c_curr++, cs_curr += view.n_seq_max) { for (int j = 0; j < view.n_seq_max; j++) { if (cs_curr[j] < 0) { continue; } if (seqs.find(cs_curr[j]) == seqs.end()) { if (seqs.size() + 1 >= sizeof(slot_chars)) { break; } const size_t sz = seqs.size(); seqs[cs_curr[j]] = sz; } } if (seqs.size() + 1 >= sizeof(slot_chars)) { break; } } printf("=== Sequence legend: "); for (const auto & it : seqs) { printf("%zu=%d, ", it.second, it.first); } printf("'+'=other sequence ids"); c_curr = view.cells; cs_curr = view.cells_sequences; for (int i = 0; i < view.n_cells; i++, c_curr++, cs_curr += view.n_seq_max) { if (i % row_size == 0) { printf("\n%5d: ", i); } for (int j = 0; j < view.n_seq_max; j++) { if (cs_curr[j] >= 0) { const auto & it = seqs.find(cs_curr[j]); putchar(it != seqs.end() ? int(slot_chars[it->second]) : '+'); } else { putchar('.'); } } putchar(' '); } printf("\n=== Done dumping\n"); }
O2
cpp
common_kv_cache_dump_view_seqs(llama_kv_cache_view const&, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %esi, 0x1c(%rsp) movq %rdi, %r14 movl (%rdi), %esi movl 0x4(%rdi), %edx movl 0xc(%rdi), %ecx movl 0x8(%rdi), %r8d movl 0x10(%rdi), %r9d movl 0x14(%rdi), %eax movl %eax, (%rsp) leaq 0x5bb1f(%rip), %rdi # 0xb46bc xorl %ebx, %ebx xorl %eax, %eax callq 0x23060 leaq 0x50(%rsp), %rax movq %rax, -0x30(%rax) movq $0x1, -0x28(%rax) leaq 0x30(%rsp), %r13 xorps %xmm0, %xmm0 movups %xmm0, (%r13) movl $0x3f800000, 0x10(%r13) # imm = 0x3F800000 movups %xmm0, 0x18(%r13) movq 0x20(%r14), %rax movq %rax, 0x8(%rsp) leaq 0x20(%rsp), %r15 movq %rbx, 0x10(%rsp) cmpl (%r14), %ebx jge 0x58c63 movq 0x8(%rsp), %r12 xorl %ebp, %ebp movslq 0x4(%r14), %rax cmpq %rax, %rbp jge 0x58c36 cmpl $0x0, (%r12) js 0x58c2d movq %r15, %rdi movq %r12, %rsi callq 0x8bb8a testq %rax, %rax jne 0x58c2d movq 0x38(%rsp), %rbx leaq -0x3e(%rbx), %rax cmpq $-0x3f, %rax jb 0x58c63 movq %r15, %rdi movq %r12, %rsi callq 0x8bc06 movq %rbx, (%rax) incq %rbp addq $0x4, %r12 jmp 0x58bf0 movq 0x38(%rsp), %rax addq $-0x3e, %rax cmpq $-0x3f, %rax jb 0x58c63 movq 0x10(%rsp), %rbx incl %ebx movslq 0x4(%r14), %rax movq 0x8(%rsp), %rcx leaq (%rcx,%rax,4), %rcx movq %rcx, 0x8(%rsp) jmp 0x58bdf leaq 0x5badd(%rip), %rdi # 0xb4747 xorl %eax, %eax callq 0x23060 leaq 0x5bae5(%rip), %r15 # 0xb475d movq (%r13), %r13 testq %r13, %r13 je 0x58c95 movq 0x10(%r13), %rsi movl 0x8(%r13), %edx movq %r15, %rdi xorl %eax, %eax callq 0x23060 jmp 0x58c78 leaq 0x5baca(%rip), %rdi # 0xb4766 xorl %eax, %eax callq 0x23060 movq 0x20(%r14), %r15 pushq $0x2e popq %rbp leaq 0x20(%rsp), %r12 pushq $0x2b popq %rbx xorl %r13d, %r13d cmpl (%r14), %r13d jge 0x58d4a movl %r13d, %eax cltd idivl 0x1c(%rsp) testl %edx, %edx jne 0x58cdb leaq 0x5b9e4(%rip), %rdi # 0xb46b5 movl %r13d, %esi xorl %eax, %eax callq 0x23060 movl %r13d, 0x10(%rsp) movq %r15, 0x8(%rsp) xorl %r13d, %r13d movslq 0x4(%r14), %rax cmpq %rax, %r13 jge 0x58d28 cmpl $0x0, (%r15) movl %ebp, %edi js 0x58d1a movq %r12, %rdi movq %r15, %rsi callq 0x8bb8a movl %ebx, %edi testq %rax, %rax je 0x58d1a movq 0x10(%rax), %rax leaq 0x5deaa(%rip), %rcx # 0xb6bc0 movsbl (%rax,%rcx), %edi callq 0x23c50 incq %r13 addq $0x4, %r15 jmp 0x58ce8 pushq $0x20 popq %rdi callq 0x23c50 movl 0x10(%rsp), %r13d incl %r13d movslq 0x4(%r14), %rax movq 0x8(%rsp), %r15 leaq (%r15,%rax,4), %r15 jmp 0x58cb5 leaq 0x5de13(%rip), %rdi # 0xb6b64 callq 0x23d70 leaq 0x20(%rsp), %rdi callq 0x89b2a addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x58d73 jmp 0x58d73 movq %rax, %rbx leaq 0x20(%rsp), %rdi callq 0x89b2a movq %rbx, %rdi callq 0x23f80
_Z30common_kv_cache_dump_view_seqsRK19llama_kv_cache_viewi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov [rsp+88h+var_6C], esi mov r14, rdi mov esi, [rdi] mov edx, [rdi+4] mov ecx, [rdi+0Ch] mov r8d, [rdi+8] mov r9d, [rdi+10h] mov eax, [rdi+14h] mov [rsp+88h+var_88], eax lea rdi, aDumpingKvCache_0; "=== Dumping KV cache. total cells %d, m"... xor ebx, ebx xor eax, eax call _printf lea rax, [rsp+88h+var_38] mov [rax-30h], rax mov qword ptr [rax-28h], 1 lea r13, [rsp+88h+var_58] xorps xmm0, xmm0 movups xmmword ptr [r13+0], xmm0 mov dword ptr [r13+10h], 3F800000h movups xmmword ptr [r13+18h], xmm0 mov rax, [r14+20h] mov [rsp+88h+var_80], rax lea r15, [rsp+88h+var_68] loc_58BDF: mov [rsp+88h+var_78], rbx cmp ebx, [r14] jge short loc_58C63 mov r12, [rsp+88h+var_80] xor ebp, ebp loc_58BF0: movsxd rax, dword ptr [r14+4] cmp rbp, rax jge short loc_58C36 cmp dword ptr [r12], 0 js short loc_58C2D mov rdi, r15 mov rsi, r12 call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(int const&) test rax, rax jnz short loc_58C2D mov rbx, [rsp+88h+var_50] lea rax, [rbx-3Eh] cmp rax, 0FFFFFFFFFFFFFFC1h jb short loc_58C63 mov rdi, r15 mov rsi, r12 call _ZNSt8__detail9_Map_baseIiSt4pairIKimESaIS3_ENS_10_Select1stESt8equal_toIiESt4hashIiENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixERS2_; std::__detail::_Map_base<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](int const&) mov [rax], rbx loc_58C2D: inc rbp add r12, 4 jmp short loc_58BF0 loc_58C36: mov rax, [rsp+88h+var_50] add rax, 0FFFFFFFFFFFFFFC2h cmp rax, 0FFFFFFFFFFFFFFC1h jb short loc_58C63 mov rbx, [rsp+88h+var_78] inc ebx movsxd rax, dword ptr [r14+4] mov rcx, [rsp+88h+var_80] lea rcx, [rcx+rax*4] mov [rsp+88h+var_80], rcx jmp loc_58BDF loc_58C63: lea rdi, aSequenceLegend; "=== Sequence legend: " xor eax, eax call _printf lea r15, aZuD; "%zu=%d, " loc_58C78: mov r13, [r13+0] test r13, r13 jz short loc_58C95 mov rsi, [r13+10h] mov edx, [r13+8] mov rdi, r15 xor eax, eax call _printf jmp short loc_58C78 loc_58C95: lea rdi, aOtherSequenceI; "'+'=other sequence ids" xor eax, eax call _printf mov r15, [r14+20h] push 2Eh ; '.' pop rbp lea r12, [rsp+88h+var_68] push 2Bh ; '+' pop rbx xor r13d, r13d loc_58CB5: cmp r13d, [r14] jge loc_58D4A mov eax, r13d cdq idiv [rsp+88h+var_6C] test edx, edx jnz short loc_58CDB lea rdi, a5d; "\n%5d: " mov esi, r13d xor eax, eax call _printf loc_58CDB: mov dword ptr [rsp+88h+var_78], r13d mov [rsp+88h+var_80], r15 xor r13d, r13d loc_58CE8: movsxd rax, dword ptr [r14+4] cmp r13, rax jge short loc_58D28 cmp dword ptr [r15], 0 mov edi, ebp js short loc_58D1A mov rdi, r12 mov rsi, r15 call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(int const&) mov edi, ebx test rax, rax jz short loc_58D1A mov rax, [rax+10h] lea rcx, _ZZ30common_kv_cache_dump_view_seqsRK19llama_kv_cache_viewiE10slot_chars; "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabc"... movsx edi, byte ptr [rax+rcx] loc_58D1A: call _putchar inc r13 add r15, 4 jmp short loc_58CE8 loc_58D28: push 20h ; ' ' pop rdi call _putchar mov r13d, dword ptr [rsp+88h+var_78] inc r13d movsxd rax, dword ptr [r14+4] mov r15, [rsp+88h+var_80] lea r15, [r15+rax*4] jmp loc_58CB5 loc_58D4A: lea rdi, aDoneDumping; "\n=== Done dumping" call _puts lea rdi, [rsp+88h+var_68] call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable() add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_58D73 jmp short $+2 loc_58D73: mov rbx, rax lea rdi, [rsp+arg_18] call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable() mov rdi, rbx call __Unwind_Resume
long long common_kv_cache_dump_view_seqs(long long a1, int a2) { int v3; // ebx __int128 *v4; // r13 int *v5; // r12 long long j; // rbp int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // rbx int *v12; // r15 int v13; // r13d long long k; // r13 long long v15; // rdi long long v16; // rax char v18; // [rsp+0h] [rbp-88h] int *i; // [rsp+8h] [rbp-80h] int *v20; // [rsp+8h] [rbp-80h] int v21; // [rsp+10h] [rbp-78h] int v22; // [rsp+10h] [rbp-78h] _QWORD v23[2]; // [rsp+20h] [rbp-68h] BYREF __int128 v24; // [rsp+30h] [rbp-58h] BYREF int v25; // [rsp+40h] [rbp-48h] __int128 v26; // [rsp+48h] [rbp-40h] BYREF v3 = 0; printf( "=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, large" "st empty slot=%d @ %d\n", *(_DWORD *)a1, *(_DWORD *)(a1 + 4), *(_DWORD *)(a1 + 12), *(_DWORD *)(a1 + 8), *(_DWORD *)(a1 + 16), *(_DWORD *)(a1 + 20)); v23[0] = (char *)&v26 + 8; v23[1] = 1LL; v4 = &v24; v24 = 0LL; v25 = 1065353216; v26 = 0LL; for ( i = *(int **)(a1 + 32); ; i += *(int *)(a1 + 4) ) { v21 = v3; if ( v3 >= *(_DWORD *)a1 ) break; v5 = i; for ( j = 0LL; j < *(int *)(a1 + 4); ++j ) { if ( *v5 >= 0 && !std::_Hashtable<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find( v23, v5) ) { v11 = *((_QWORD *)&v24 + 1); if ( (unsigned long long)(*((_QWORD *)&v24 + 1) - 62LL) < 0xFFFFFFFFFFFFFFC1LL ) goto LABEL_12; *(_QWORD *)std::__detail::_Map_base<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[]( (unsigned int)v23, (_DWORD)v5, v7, v8, v9, v10, v18) = v11; } ++v5; } if ( (unsigned long long)(*((_QWORD *)&v24 + 1) - 62LL) < 0xFFFFFFFFFFFFFFC1LL ) break; v3 = v21 + 1; } LABEL_12: printf("=== Sequence legend: "); while ( 1 ) { v4 = *(__int128 **)v4; if ( !v4 ) break; printf("%zu=%d, ", *((_QWORD *)v4 + 2), *((_DWORD *)v4 + 2)); } printf("'+'=other sequence ids"); v12 = *(int **)(a1 + 32); v13 = 0; while ( v13 < *(_DWORD *)a1 ) { if ( !(v13 % a2) ) printf("\n%5d: ", v13); v22 = v13; v20 = v12; for ( k = 0LL; k < *(int *)(a1 + 4); ++k ) { v15 = 46LL; if ( *v12 >= 0 ) { v16 = std::_Hashtable<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find( v23, v12); v15 = 43LL; if ( v16 ) v15 = (unsigned int)common_kv_cache_dump_view_seqs(llama_kv_cache_view const&,int)::slot_chars[*(_QWORD *)(v16 + 16)]; } putchar(v15); ++v12; } putchar(32LL); v13 = v22 + 1; v12 = &v20[*(int *)(a1 + 4)]; } puts("\n=== Done dumping"); return std::_Hashtable<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable(v23); }
common_kv_cache_dump_view_seqs: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV dword ptr [RSP + 0x1c],ESI MOV R14,RDI MOV ESI,dword ptr [RDI] MOV EDX,dword ptr [RDI + 0x4] MOV ECX,dword ptr [RDI + 0xc] MOV R8D,dword ptr [RDI + 0x8] MOV R9D,dword ptr [RDI + 0x10] MOV EAX,dword ptr [RDI + 0x14] MOV dword ptr [RSP],EAX LEA RDI,[0x1b46bc] XOR EBX,EBX XOR EAX,EAX CALL 0x00123060 LEA RAX,[RSP + 0x50] MOV qword ptr [RAX + -0x30],RAX MOV qword ptr [RAX + -0x28],0x1 LEA R13,[RSP + 0x30] XORPS XMM0,XMM0 MOVUPS xmmword ptr [R13],XMM0 MOV dword ptr [R13 + 0x10],0x3f800000 MOVUPS xmmword ptr [R13 + 0x18],XMM0 MOV RAX,qword ptr [R14 + 0x20] MOV qword ptr [RSP + 0x8],RAX LEA R15,[RSP + 0x20] LAB_00158bdf: MOV qword ptr [RSP + 0x10],RBX CMP EBX,dword ptr [R14] JGE 0x00158c63 MOV R12,qword ptr [RSP + 0x8] XOR EBP,EBP LAB_00158bf0: MOVSXD RAX,dword ptr [R14 + 0x4] CMP RBP,RAX JGE 0x00158c36 CMP dword ptr [R12],0x0 JS 0x00158c2d LAB_00158c00: MOV RDI,R15 MOV RSI,R12 CALL 0x0018bb8a TEST RAX,RAX JNZ 0x00158c2d MOV RBX,qword ptr [RSP + 0x38] LEA RAX,[RBX + -0x3e] CMP RAX,-0x3f JC 0x00158c63 LAB_00158c1f: MOV RDI,R15 MOV RSI,R12 CALL 0x0018bc06 MOV qword ptr [RAX],RBX LAB_00158c2d: INC RBP ADD R12,0x4 JMP 0x00158bf0 LAB_00158c36: MOV RAX,qword ptr [RSP + 0x38] ADD RAX,-0x3e CMP RAX,-0x3f JC 0x00158c63 MOV RBX,qword ptr [RSP + 0x10] INC EBX MOVSXD RAX,dword ptr [R14 + 0x4] MOV RCX,qword ptr [RSP + 0x8] LEA RCX,[RCX + RAX*0x4] MOV qword ptr [RSP + 0x8],RCX JMP 0x00158bdf LAB_00158c63: LEA RDI,[0x1b4747] XOR EAX,EAX CALL 0x00123060 LEA R15,[0x1b475d] LAB_00158c78: MOV R13,qword ptr [R13] TEST R13,R13 JZ 0x00158c95 MOV RSI,qword ptr [R13 + 0x10] MOV EDX,dword ptr [R13 + 0x8] MOV RDI,R15 XOR EAX,EAX CALL 0x00123060 JMP 0x00158c78 LAB_00158c95: LEA RDI,[0x1b4766] XOR EAX,EAX CALL 0x00123060 MOV R15,qword ptr [R14 + 0x20] PUSH 0x2e POP RBP LEA R12,[RSP + 0x20] PUSH 0x2b POP RBX XOR R13D,R13D LAB_00158cb5: CMP R13D,dword ptr [R14] JGE 0x00158d4a MOV EAX,R13D CDQ IDIV dword ptr [RSP + 0x1c] TEST EDX,EDX JNZ 0x00158cdb LEA RDI,[0x1b46b5] MOV ESI,R13D XOR EAX,EAX CALL 0x00123060 LAB_00158cdb: MOV dword ptr [RSP + 0x10],R13D MOV qword ptr [RSP + 0x8],R15 XOR R13D,R13D LAB_00158ce8: MOVSXD RAX,dword ptr [R14 + 0x4] CMP R13,RAX JGE 0x00158d28 CMP dword ptr [R15],0x0 MOV EDI,EBP JS 0x00158d1a LAB_00158cf9: MOV RDI,R12 MOV RSI,R15 CALL 0x0018bb8a LAB_00158d04: MOV EDI,EBX TEST RAX,RAX JZ 0x00158d1a MOV RAX,qword ptr [RAX + 0x10] LEA RCX,[0x1b6bc0] MOVSX EDI,byte ptr [RAX + RCX*0x1] LAB_00158d1a: CALL 0x00123c50 INC R13 ADD R15,0x4 JMP 0x00158ce8 LAB_00158d28: PUSH 0x20 POP RDI CALL 0x00123c50 MOV R13D,dword ptr [RSP + 0x10] INC R13D MOVSXD RAX,dword ptr [R14 + 0x4] MOV R15,qword ptr [RSP + 0x8] LEA R15,[R15 + RAX*0x4] JMP 0x00158cb5 LAB_00158d4a: LEA RDI,[0x1b6b64] CALL 0x00123d70 LEA RDI,[RSP + 0x20] CALL 0x00189b2a ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* common_kv_cache_dump_view_seqs(llama_kv_cache_view const&, int) */ void common_kv_cache_dump_view_seqs(llama_kv_cache_view *param_1,int param_2) { long lVar1; long *plVar2; long lVar3; long lVar4; int iVar5; int *piVar6; uint uVar7; long *plVar8; int *piVar9; int *local_80; int8 *local_68; int8 local_60; long local_58; long lStack_50; int4 local_48; int8 local_40; int8 uStack_38; printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d\n" ,(ulong)*(uint *)param_1,(ulong)*(uint *)(param_1 + 4),(ulong)*(uint *)(param_1 + 0xc), (ulong)*(uint *)(param_1 + 8),(ulong)*(uint *)(param_1 + 0x10), *(int4 *)(param_1 + 0x14)); local_68 = &uStack_38; local_60 = 1; plVar8 = &local_58; local_58 = 0; lStack_50 = 0; local_48 = 0x3f800000; local_40 = 0; uStack_38 = 0; local_80 = *(int **)(param_1 + 0x20); for (iVar5 = 0; iVar5 < *(int *)param_1; iVar5 = iVar5 + 1) { piVar6 = local_80; for (lVar4 = 0; lVar4 < *(int *)(param_1 + 4); lVar4 = lVar4 + 1) { if (-1 < *piVar6) { /* try { // try from 00158c00 to 00158c0a has its CatchHandler @ 00158d71 */ lVar1 = std:: _Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::find((_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)&local_68,piVar6); lVar3 = lStack_50; if (lVar1 == 0) { if (lStack_50 - 0x3eU < 0xffffffffffffffc1) goto LAB_00158c63; /* try { // try from 00158c1f to 00158c29 has its CatchHandler @ 00158d6f */ plVar2 = (long *)std::__detail:: _Map_base<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true> ::operator[]((_Map_base<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true> *)&local_68,piVar6); *plVar2 = lVar3; } } piVar6 = piVar6 + 1; } if (lStack_50 - 0x3eU < 0xffffffffffffffc1) break; local_80 = local_80 + *(int *)(param_1 + 4); } LAB_00158c63: printf("=== Sequence legend: "); while (plVar8 = (long *)*plVar8, plVar8 != (long *)0x0) { printf("%zu=%d, ",plVar8[2],(ulong)*(uint *)(plVar8 + 1)); } printf("\'+\'=other sequence ids"); piVar6 = *(int **)(param_1 + 0x20); for (uVar7 = 0; (int)uVar7 < *(int *)param_1; uVar7 = uVar7 + 1) { if ((int)uVar7 % param_2 == 0) { printf("\n%5d: ",(ulong)uVar7); } piVar9 = piVar6; for (lVar4 = 0; lVar4 < *(int *)(param_1 + 4); lVar4 = lVar4 + 1) { iVar5 = 0x2e; if (-1 < *piVar9) { /* try { // try from 00158cf9 to 00158d03 has its CatchHandler @ 00158d73 */ lVar3 = std:: _Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::find((_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)&local_68,piVar9); iVar5 = 0x2b; if (lVar3 != 0) { iVar5 = (int)"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" [*(long *)(lVar3 + 0x10)]; } } putchar(iVar5); piVar9 = piVar9 + 1; } putchar(0x20); piVar6 = piVar6 + *(int *)(param_1 + 4); } puts("\n=== Done dumping"); std:: _Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::~_Hashtable((_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)&local_68); return; }
49,802
nglog::(anonymous namespace)::MinimalFormatter::AppendUint64(unsigned long, unsigned int)
ng-log[P]ng-log/src/signalhandler.cc
void AppendUint64(uint64 number, unsigned radix) { unsigned i = 0; while (cursor_ + i < end_) { const uint64 tmp = number % radix; number /= radix; cursor_[i] = static_cast<char>(tmp < 10 ? '0' + tmp : 'a' + tmp - 10); ++i; if (number == 0) { break; } } // Reverse the bytes written. std::reverse(cursor_, cursor_ + i); cursor_ += i; }
O2
cpp
nglog::(anonymous namespace)::MinimalFormatter::AppendUint64(unsigned long, unsigned int): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movl %edx, %ecx xorl %r14d, %r14d movq 0x8(%rbx), %rdi movl %r14d, %r14d leaq (%rdi,%r14), %r8 cmpq 0x10(%rbx), %r8 jae 0x1d4a9 movq %rsi, %rax xorl %edx, %edx divq %rcx leal 0x57(%rdx), %edi movl %edx, %r9d orb $0x30, %r9b cmpq $0xa, %rdx movzbl %r9b, %edx movzbl %dil, %edi cmovbl %edx, %edi movb %dil, (%r8) incl %r14d cmpq %rcx, %rsi movq %rax, %rsi jae 0x1d462 movq 0x8(%rbx), %rdi movl %r14d, %r14d leaq (%rdi,%r14), %rsi callq 0x1d5bc addq %r14, 0x8(%rbx) addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN5nglog12_GLOBAL__N_116MinimalFormatter12AppendUint64Emj: push r14 push rbx push rax mov rbx, rdi mov ecx, edx xor r14d, r14d loc_1D462: mov rdi, [rbx+8] mov r14d, r14d lea r8, [rdi+r14] cmp r8, [rbx+10h] jnb short loc_1D4A9 mov rax, rsi xor edx, edx div rcx lea edi, [rdx+57h] mov r9d, edx or r9b, 30h cmp rdx, 0Ah movzx edx, r9b movzx edi, dil cmovb edi, edx mov [r8], dil inc r14d cmp rsi, rcx mov rsi, rax jnb short loc_1D462 mov rdi, [rbx+8] mov r14d, r14d loc_1D4A9: lea rsi, [rdi+r14] call _ZSt9__reverseIPcEvT_S1_St26random_access_iterator_tag; std::__reverse<char *>(char *,char *,std::random_access_iterator_tag) add [rbx+8], r14 add rsp, 8 pop rbx pop r14 retn
long long nglog::`anonymous namespace'::MinimalFormatter::AppendUint64( nglog::_anonymous_namespace_::MinimalFormatter *this, unsigned long long a2, long long a3) { unsigned long long v4; // rcx long long v5; // r14 long long v6; // rdi _BYTE *v7; // r8 char v8; // di bool v9; // cf long long result; // rax v4 = (unsigned int)a3; LODWORD(v5) = 0; while ( 1 ) { v6 = *((_QWORD *)this + 1); v5 = (unsigned int)v5; v7 = (_BYTE *)(v6 + (unsigned int)v5); if ( (unsigned long long)v7 >= *((_QWORD *)this + 2) ) break; a3 = (unsigned __int8)(a2 % v4) | 0x30u; v8 = a2 % v4 + 87; if ( a2 % v4 < 0xA ) v8 = (a2 % v4) | 0x30; *v7 = v8; LODWORD(v5) = v5 + 1; v9 = a2 < v4; a2 /= v4; if ( v9 ) { v6 = *((_QWORD *)this + 1); v5 = (unsigned int)v5; break; } } result = std::__reverse<char *>(v6, v6 + v5, a3, v4); *((_QWORD *)this + 1) += v5; return result; }
AppendUint64: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV ECX,EDX XOR R14D,R14D LAB_0011d462: MOV RDI,qword ptr [RBX + 0x8] MOV R14D,R14D LEA R8,[RDI + R14*0x1] CMP R8,qword ptr [RBX + 0x10] JNC 0x0011d4a9 MOV RAX,RSI XOR EDX,EDX DIV RCX LEA EDI,[RDX + 0x57] MOV R9D,EDX OR R9B,0x30 CMP RDX,0xa MOVZX EDX,R9B MOVZX EDI,DIL CMOVC EDI,EDX MOV byte ptr [R8],DIL INC R14D CMP RSI,RCX MOV RSI,RAX JNC 0x0011d462 MOV RDI,qword ptr [RBX + 0x8] MOV R14D,R14D LAB_0011d4a9: LEA RSI,[RDI + R14*0x1] CALL 0x0011d5bc ADD qword ptr [RBX + 0x8],R14 ADD RSP,0x8 POP RBX POP R14 RET
/* nglog::(anonymous namespace)::MinimalFormatter::AppendUint64(unsigned long, unsigned int) */ void __thiscall nglog::(anonymous_namespace)::MinimalFormatter::AppendUint64 (MinimalFormatter *this,ulong param_1,uint param_2) { int1 auVar1 [16]; int1 auVar2 [16]; ulong uVar3; byte bVar4; byte bVar5; long lVar6; uint uVar7; ulong uVar8; bool bVar9; uVar3 = CONCAT44(0,param_2); uVar7 = 0; do { lVar6 = *(long *)(this + 8); uVar8 = (ulong)uVar7; if (*(byte **)(this + 0x10) <= (byte *)(lVar6 + uVar8)) goto LAB_0011d4a9; auVar1._8_8_ = 0; auVar1._0_8_ = uVar3; auVar2._8_8_ = 0; auVar2._0_8_ = param_1; bVar4 = SUB161(auVar2 % auVar1,0); bVar5 = bVar4 + 0x57; if (SUB168(auVar2 % auVar1,0) < 10) { bVar5 = bVar4 | 0x30; } *(byte *)(lVar6 + uVar8) = bVar5; uVar7 = uVar7 + 1; bVar9 = uVar3 <= param_1; param_1 = param_1 / uVar3; } while (bVar9); lVar6 = *(long *)(this + 8); uVar8 = (ulong)uVar7; LAB_0011d4a9: std::__reverse<char*>(lVar6,lVar6 + uVar8); *(ulong *)(this + 8) = *(long *)(this + 8) + uVar8; return; }
49,803
ndjson_init
xtate/src/output-modules/ndjson-output.c
static bool ndjson_init(const XConf *xconf, const OutConf *out) { /*a convention*/ if (out->output_filename[0] == '-' && strlen(out->output_filename) == 1) { file = stdout; return true; } int err = pixie_fopen_shareable(&file, out->output_filename, out->is_append); if (err != 0 || file == NULL) { LOG(LEVEL_ERROR, "(NdjsonOutput) could not open file %s for %s.\n", out->output_filename, out->is_append ? "appending" : "writing"); LOGPERROR(out->output_filename); return false; } return true; }
O3
c
ndjson_init: pushq %rbp pushq %r14 pushq %rbx movq %rsi, %r14 leaq 0x10(%rsi), %rbx cmpb $0x2d, 0x10(%rsi) jne 0x24c14 movq %rbx, %rdi callq 0x15470 cmpq $0x1, %rax jne 0x24c14 movq 0x703c6(%rip), %rax # 0x94fc8 movq (%rax), %rax movq %rax, 0x17e734(%rip) # 0x1a3340 movb $0x1, %bpl jmp 0x24ca0 movb 0x140(%r14), %al andb $0x2, %al shrb %al movzbl %al, %edx leaq 0x17e717(%rip), %rdi # 0x1a3340 movq %rbx, %rsi callq 0x26308 testl %eax, %eax jne 0x24c42 movb $0x1, %bpl cmpq $0x0, 0x17e700(%rip) # 0x1a3340 jne 0x24ca0 testb $0x2, 0x140(%r14) leaq 0x3e0f6(%rip), %rax # 0x62d47 leaq 0x3e0e5(%rip), %rcx # 0x62d3d cmoveq %rax, %rcx leaq 0x3f176(%rip), %rsi # 0x63dd9 xorl %ebp, %ebp movl $0xffffffff, %edi # imm = 0xFFFFFFFF movq %rbx, %rdx xorl %eax, %eax callq 0x536da callq 0x15b70 movl (%rax), %edi callq 0x15810 leaq 0x38380(%rip), %rsi # 0x5d007 leaq 0x3f17a(%rip), %rdx # 0x63e08 movl $0xffffffff, %edi # imm = 0xFFFFFFFF movq %rbx, %rcx movq %rax, %r8 xorl %eax, %eax callq 0x536da movl %ebp, %eax popq %rbx popq %r14 popq %rbp retq
ndjson_init: push rbp push r14 push rbx mov r14, rsi lea rbx, [rsi+10h] cmp byte ptr [rsi+10h], 2Dh ; '-' jnz short loc_24C14 mov rdi, rbx call _strlen cmp rax, 1 jnz short loc_24C14 mov rax, cs:stdout_ptr mov rax, [rax] mov cs:file_2, rax mov bpl, 1 jmp loc_24CA0 loc_24C14: mov al, [r14+140h] and al, 2 shr al, 1 movzx edx, al lea rdi, file_2 mov rsi, rbx call pixie_fopen_shareable test eax, eax jnz short loc_24C42 mov bpl, 1 cmp cs:file_2, 0 jnz short loc_24CA0 loc_24C42: test byte ptr [r14+140h], 2 lea rax, aWriting; "writing" lea rcx, aAppending; "appending" cmovz rcx, rax lea rsi, aNdjsonoutputCo; "(NdjsonOutput) could not open file %s f"... xor ebp, ebp mov edi, 0FFFFFFFFh mov rdx, rbx xor eax, eax call LOG call ___errno_location mov edi, [rax] call _strerror lea rsi, aSSS; "(%s) %s: %s\n" lea rdx, aNdjsonInit; "ndjson_init" mov edi, 0FFFFFFFFh mov rcx, rbx mov r8, rax xor eax, eax call LOG loc_24CA0: mov eax, ebp pop rbx pop r14 pop rbp retn
long long ndjson_init(long long a1, long long a2) { unsigned int v2; // ebp int v3; // ebx int v4; // r8d int v5; // r9d const char *v6; // rcx const char *v7; // rdx const char *v8; // rcx unsigned int *v9; // rax int v10; // eax int v11; // r9d v3 = a2 + 16; if ( *(_BYTE *)(a2 + 16) == 45 && strlen(a2 + 16) == 1 ) { file_2 = stdout; LOBYTE(v2) = 1; } else if ( (unsigned int)pixie_fopen_shareable(&file_2, a2 + 16, (unsigned __int8)(*(_BYTE *)(a2 + 320) & 2) >> 1) || (LOBYTE(v2) = 1, !file_2) ) { v6 = "appending"; if ( (*(_BYTE *)(a2 + 320) & 2) == 0 ) v6 = "writing"; v2 = 0; LOG(-1, (unsigned int)"(NdjsonOutput) could not open file %s for %s.\n", v3, (_DWORD)v6, v4, v5); v9 = (unsigned int *)__errno_location(0xFFFFFFFFLL, "(NdjsonOutput) could not open file %s for %s.\n", v7, v8); v10 = strerror(*v9); LOG(-1, (unsigned int)"(%s) %s: %s\n", (unsigned int)"ndjson_init", v3, v10, v11); } return v2; }
ndjson_init: PUSH RBP PUSH R14 PUSH RBX MOV R14,RSI LEA RBX,[RSI + 0x10] CMP byte ptr [RSI + 0x10],0x2d JNZ 0x00124c14 MOV RDI,RBX CALL 0x00115470 CMP RAX,0x1 JNZ 0x00124c14 MOV RAX,qword ptr [0x00194fc8] MOV RAX,qword ptr [RAX] MOV qword ptr [0x002a3340],RAX MOV BPL,0x1 JMP 0x00124ca0 LAB_00124c14: MOV AL,byte ptr [R14 + 0x140] AND AL,0x2 SHR AL,0x1 MOVZX EDX,AL LEA RDI,[0x2a3340] MOV RSI,RBX CALL 0x00126308 TEST EAX,EAX JNZ 0x00124c42 MOV BPL,0x1 CMP qword ptr [0x002a3340],0x0 JNZ 0x00124ca0 LAB_00124c42: TEST byte ptr [R14 + 0x140],0x2 LEA RAX,[0x162d47] LEA RCX,[0x162d3d] CMOVZ RCX,RAX LEA RSI,[0x163dd9] XOR EBP,EBP MOV EDI,0xffffffff MOV RDX,RBX XOR EAX,EAX CALL 0x001536da CALL 0x00115b70 MOV EDI,dword ptr [RAX] CALL 0x00115810 LEA RSI,[0x15d007] LEA RDX,[0x163e08] MOV EDI,0xffffffff MOV RCX,RBX MOV R8,RAX XOR EAX,EAX CALL 0x001536da LAB_00124ca0: MOV EAX,EBP POP RBX POP R14 POP RBP RET
ulong ndjson_init(int8 param_1,long param_2) { char *__s; int iVar1; size_t sVar2; int *piVar3; char *pcVar4; int8 unaff_RBP; int7 uVar6; ulong uVar5; __s = (char *)(param_2 + 0x10); uVar6 = (int7)((ulong)unaff_RBP >> 8); if (*(char *)(param_2 + 0x10) == '-') { sVar2 = strlen(__s); if (sVar2 == 1) { file = *(long *)PTR_stdout_00194fc8; uVar5 = CONCAT71(uVar6,1); goto LAB_00124ca0; } } iVar1 = pixie_fopen_shareable(&file,__s,(*(byte *)(param_2 + 0x140) & 2) >> 1); if ((iVar1 != 0) || (uVar5 = CONCAT71(uVar6,1), file == 0)) { pcVar4 = "appending"; if ((*(byte *)(param_2 + 0x140) & 2) == 0) { pcVar4 = "writing"; } uVar5 = 0; LOG(0xffffffff,"(NdjsonOutput) could not open file %s for %s.\n",__s,pcVar4); piVar3 = __errno_location(); pcVar4 = strerror(*piVar3); LOG(0xffffffff,"(%s) %s: %s\n","ndjson_init",__s,pcVar4); } LAB_00124ca0: return uVar5 & 0xffffffff; }
49,804
my_numcells_sjis
eloqsql/strings/ctype-sjis.c
static size_t my_numcells_sjis(CHARSET_INFO *cs __attribute__((unused)), const char *str, const char *str_end) { size_t clen; const uchar *b= (const uchar *) str; const uchar *e= (const uchar *) str_end; for (clen= 0; b < e; ) { if (*b >= 0xA1 && *b <= 0xDF) { clen++; b++; } else if (*b > 0x7F) { clen+= 2; b+= 2; } else { clen++; b++; } } return clen; }
O0
c
my_numcells_sjis: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq $0x0, -0x20(%rbp) movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0x56f3d movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0xa1, %eax jl 0x56ef8 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0xdf, %eax jg 0x56ef8 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x56f38 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x7f, %eax jle 0x56f1e movq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0x56f36 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x56f38 jmp 0x56eb8 movq -0x20(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
my_numcells_sjis: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_30], rax mov [rbp+var_20], 0 loc_56EB8: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jnb short loc_56F3D mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 0A1h jl short loc_56EF8 mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 0DFh jg short loc_56EF8 mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_56F38 loc_56EF8: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 7Fh jle short loc_56F1E mov rax, [rbp+var_20] add rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax jmp short loc_56F36 loc_56F1E: mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax loc_56F36: jmp short $+2 loc_56F38: jmp loc_56EB8 loc_56F3D: mov rax, [rbp+var_20] pop rbp retn
long long my_numcells_sjis(long long a1, unsigned __int8 *a2, unsigned long long a3) { long long v5; // [rsp+10h] [rbp-20h] v5 = 0LL; while ( (unsigned long long)a2 < a3 ) { if ( *a2 < 0xA1u || *a2 > 0xDFu ) { if ( *a2 <= 0x7Fu ) { ++v5; ++a2; } else { v5 += 2LL; a2 += 2; } } else { ++v5; ++a2; } } return v5; }
my_numcells_sjis: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x20],0x0 LAB_00156eb8: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JNC 0x00156f3d MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0xa1 JL 0x00156ef8 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0xdf JG 0x00156ef8 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00156f38 LAB_00156ef8: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x7f JLE 0x00156f1e MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x00156f36 LAB_00156f1e: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX LAB_00156f36: JMP 0x00156f38 LAB_00156f38: JMP 0x00156eb8 LAB_00156f3d: MOV RAX,qword ptr [RBP + -0x20] POP RBP RET
long my_numcells_sjis(int8 param_1,byte *param_2,byte *param_3) { byte *local_30; long local_28; local_28 = 0; local_30 = param_2; while (local_30 < param_3) { if ((*local_30 < 0xa1) || (0xdf < *local_30)) { if (*local_30 < 0x80) { local_28 = local_28 + 1; local_30 = local_30 + 1; } else { local_28 = local_28 + 2; local_30 = local_30 + 2; } } else { local_28 = local_28 + 1; local_30 = local_30 + 1; } } return local_28; }
49,805
LefDefParser::defiPinProp::propName(int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPinProp.cpp
const char* defiPinProp::propName(int index) const { char msg[160]; if (index < 0 || index >= numProps_) { sprintf (msg, "ERROR (DEFPARS-6120): The index number %d specified for the PIN PROPERTY is invalide.\nValid index number is from 0 to %d. Specify a valid index number and then try again.", index, numProps_); defiError(0, 6120, msg, defData); return 0; } return propNames_[index]; }
O3
cpp
LefDefParser::defiPinProp::propName(int) const: pushq %r15 pushq %r14 pushq %rbx subq $0xa0, %rsp movl %esi, %edx movq %rdi, %r14 testl %esi, %esi setns %al movl 0x20(%rdi), %ecx cmpl %esi, %ecx setg %sil testb %sil, %al je 0x25290 movq 0x28(%r14), %rax movl %edx, %ecx movq (%rax,%rcx,8), %rbx jmp 0x252b9 leaq 0x1dc2d(%rip), %rsi # 0x42ec4 xorl %ebx, %ebx movq %rsp, %r15 movq %r15, %rdi xorl %eax, %eax callq 0x6060 movq 0x48(%r14), %rcx xorl %edi, %edi movl $0x17e8, %esi # imm = 0x17E8 movq %r15, %rdx callq 0x18f80 movq %rbx, %rax addq $0xa0, %rsp popq %rbx popq %r14 popq %r15 retq nop
_ZNK12LefDefParser11defiPinProp8propNameEi: push r15 push r14 push rbx sub rsp, 0A0h mov edx, esi mov r14, rdi test esi, esi setns al mov ecx, [rdi+20h] cmp ecx, esi setnle sil test al, sil jz short loc_25290 mov rax, [r14+28h] mov ecx, edx mov rbx, [rax+rcx*8] jmp short loc_252B9 loc_25290: lea rsi, aErrorDefpars61_3; "ERROR (DEFPARS-6120): The index number "... xor ebx, ebx mov r15, rsp mov rdi, r15 xor eax, eax call _sprintf mov rcx, [r14+48h]; LefDefParser::defrData * xor edi, edi; this mov esi, 17E8h; int mov rdx, r15; char * call _ZN12LefDefParser9defiErrorEiiPKcPNS_8defrDataE; LefDefParser::defiError(int,int,char const*,LefDefParser::defrData *) loc_252B9: mov rax, rbx add rsp, 0A0h pop rbx pop r14 pop r15 retn
long long LefDefParser::defiPinProp::propName(LefDefParser::defiPinProp *this, signed int a2) { int v2; // ecx long long v3; // rbx LefDefParser::defrData *v4; // r8 char v6[184]; // [rsp+0h] [rbp-B8h] BYREF v2 = *((_DWORD *)this + 8); if ( v2 > a2 && a2 >= 0 ) return *(_QWORD *)(*((_QWORD *)this + 5) + 8LL * (unsigned int)a2); v3 = 0LL; sprintf( v6, "ERROR (DEFPARS-6120): The index number %d specified for the PIN PROPERTY is invalide.\n" "Valid index number is from 0 to %d. Specify a valid index number and then try again.", a2, v2); LefDefParser::defiError(0LL, 6120, v6, *((LefDefParser::defrData **)this + 9), v4); return v3; }
propName: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xa0 MOV EDX,ESI MOV R14,RDI TEST ESI,ESI SETNS AL MOV ECX,dword ptr [RDI + 0x20] CMP ECX,ESI SETG SIL TEST AL,SIL JZ 0x00125290 MOV RAX,qword ptr [R14 + 0x28] MOV ECX,EDX MOV RBX,qword ptr [RAX + RCX*0x8] JMP 0x001252b9 LAB_00125290: LEA RSI,[0x142ec4] XOR EBX,EBX MOV R15,RSP MOV RDI,R15 XOR EAX,EAX CALL 0x00106060 MOV RCX,qword ptr [R14 + 0x48] XOR EDI,EDI MOV ESI,0x17e8 MOV RDX,R15 CALL 0x00118f80 LAB_001252b9: MOV RAX,RBX ADD RSP,0xa0 POP RBX POP R14 POP R15 RET
/* LefDefParser::defiPinProp::propName(int) const */ int8 __thiscall LefDefParser::defiPinProp::propName(defiPinProp *this,int param_1) { int8 uVar1; char acStack_b8 [160]; if (param_1 < 0 || *(int *)(this + 0x20) <= param_1) { uVar1 = 0; sprintf(acStack_b8, "ERROR (DEFPARS-6120): The index number %d specified for the PIN PROPERTY is invalide.\nValid index number is from 0 to %d. Specify a valid index number and then try again." ); defiError(0,0x17e8,acStack_b8,*(defrData **)(this + 0x48)); } else { uVar1 = *(int8 *)(*(long *)(this + 0x28) + (ulong)(uint)param_1 * 8); } return uVar1; }
49,806
LefDefParser::defwEndBlockages()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
int defwEndBlockages() { defwFunc = DEFW_BLOCKAGE_END; // Current function of writer if (!defwFile) return DEFW_UNINITIALIZED; if (defwState != DEFW_BLOCKAGE_RECT) return DEFW_BAD_ORDER; if (defwCounter > 0) return DEFW_BAD_DATA; else if (defwCounter < 0) return DEFW_TOO_MANY_STMS; fprintf(defwFile, " ;\n"); fprintf(defwFile, "END BLOCKAGES\n\n"); defwLines++; defwState = DEFW_BLOCKAGE_END; return DEFW_OK; }
O3
cpp
LefDefParser::defwEndBlockages(): pushq %r14 pushq %rbx pushq %rax leaq 0xc09b(%rip), %rax # 0x1e178 movl $0x30, (%rax) leaq 0xc07e(%rip), %r14 # 0x1e168 movq (%r14), %rcx testq %rcx, %rcx je 0x12158 leaq 0xc07b(%rip), %rbx # 0x1e174 movl $0x2, %eax cmpl $0x2e, (%rbx) jne 0x1215d leaq 0xc07e(%rip), %rdx # 0x1e188 movl $0x3, %eax cmpl $0x0, (%rdx) jg 0x1215d js 0x12165 leaq 0x2e74(%rip), %rdi # 0x14f91 movl $0x3, %esi movl $0x1, %edx callq 0x1110 movq (%r14), %rcx leaq 0x4226(%rip), %rdi # 0x1635c movl $0xf, %esi movl $0x1, %edx callq 0x1110 leaq 0xc024(%rip), %rax # 0x1e170 incl (%rax) movl $0x30, (%rbx) xorl %eax, %eax jmp 0x1215d movl $0x1, %eax addq $0x8, %rsp popq %rbx popq %r14 retq movl $0x7, %eax jmp 0x1215d
_ZN12LefDefParser16defwEndBlockagesEv: push r14 push rbx push rax lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc mov dword ptr [rax], 30h ; '0' lea r14, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rcx, [r14] test rcx, rcx jz short loc_12158 lea rbx, _ZN12LefDefParser9defwStateE; LefDefParser::defwState mov eax, 2 cmp dword ptr [rbx], 2Eh ; '.' jnz short loc_1215D lea rdx, _ZN12LefDefParser11defwCounterE; LefDefParser::defwCounter mov eax, 3 cmp dword ptr [rdx], 0 jg short loc_1215D js short loc_12165 lea rdi, aDividercharS+10h; " ;\n" mov esi, 3 mov edx, 1 call _fwrite mov rcx, [r14] lea rdi, aEndBlockages; "END BLOCKAGES\n\n" mov esi, 0Fh mov edx, 1 call _fwrite lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines inc dword ptr [rax] mov dword ptr [rbx], 30h ; '0' xor eax, eax jmp short loc_1215D loc_12158: mov eax, 1 loc_1215D: add rsp, 8 pop rbx pop r14 retn loc_12165: mov eax, 7 jmp short loc_1215D
long long LefDefParser::defwEndBlockages(LefDefParser *this) { long long result; // rax LefDefParser::defwFunc = 48; if ( !LefDefParser::defwFile ) return 1LL; result = 2LL; if ( LefDefParser::defwState == 46 ) { result = 3LL; if ( LefDefParser::defwCounter <= 0 ) { if ( LefDefParser::defwCounter < 0 ) { return 7LL; } else { fwrite(" ;\n", 3LL, 1LL, LefDefParser::defwFile); fwrite("END BLOCKAGES\n\n", 15LL, 1LL, LefDefParser::defwFile); ++LefDefParser::defwLines; LefDefParser::defwState = 48; return 0LL; } } } return result; }
defwEndBlockages: PUSH R14 PUSH RBX PUSH RAX LEA RAX,[0x11e178] MOV dword ptr [RAX],0x30 LEA R14,[0x11e168] MOV RCX,qword ptr [R14] TEST RCX,RCX JZ 0x00112158 LEA RBX,[0x11e174] MOV EAX,0x2 CMP dword ptr [RBX],0x2e JNZ 0x0011215d LEA RDX,[0x11e188] MOV EAX,0x3 CMP dword ptr [RDX],0x0 JG 0x0011215d JS 0x00112165 LEA RDI,[0x114f91] MOV ESI,0x3 MOV EDX,0x1 CALL 0x00101110 MOV RCX,qword ptr [R14] LEA RDI,[0x11635c] MOV ESI,0xf MOV EDX,0x1 CALL 0x00101110 LEA RAX,[0x11e170] INC dword ptr [RAX] MOV dword ptr [RBX],0x30 XOR EAX,EAX JMP 0x0011215d LAB_00112158: MOV EAX,0x1 LAB_0011215d: ADD RSP,0x8 POP RBX POP R14 RET LAB_00112165: MOV EAX,0x7 JMP 0x0011215d
/* LefDefParser::defwEndBlockages() */ int8 LefDefParser::defwEndBlockages(void) { int8 uVar1; defwFunc = 0x30; if (defwFile == (FILE *)0x0) { uVar1 = 1; } else { uVar1 = 2; if (defwState == 0x2e) { uVar1 = 3; if (defwCounter < 1) { if (defwCounter < 0) { uVar1 = 7; } else { fwrite(" ;\n",3,1,defwFile); fwrite("END BLOCKAGES\n\n",0xf,1,defwFile); defwLines = defwLines + 1; defwState = 0x30; uVar1 = 0; } } } } return uVar1; }
49,807
my_error
eloqsql/mysys/my_error.c
void my_error(uint nr, myf MyFlags, ...) { const char *format; va_list args; char ebuff[ERRMSGSIZE]; DBUG_ENTER("my_error"); DBUG_PRINT("my", ("nr: %d MyFlags: %lu errno: %d", nr, MyFlags, errno)); if (!(format = my_get_err_msg(nr))) (void) my_snprintf(ebuff, sizeof(ebuff), "Unknown error %d", nr); else { va_start(args,MyFlags); (void) my_vsnprintf_ex(&my_charset_utf8mb3_general_ci, ebuff, sizeof(ebuff), format, args); va_end(args); } (*error_handler_hook)(nr, ebuff, MyFlags); DBUG_VOID_RETURN; }
O3
c
my_error: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x2e0, %rsp # imm = 0x2E0 movq %rsi, %rbx movl %edi, %r14d movq %rdx, -0x2e0(%rbp) movq %rcx, -0x2d8(%rbp) movq %r8, -0x2d0(%rbp) movq %r9, -0x2c8(%rbp) testb %al, %al je 0x26df3 movaps %xmm0, -0x2c0(%rbp) movaps %xmm1, -0x2b0(%rbp) movaps %xmm2, -0x2a0(%rbp) movaps %xmm3, -0x290(%rbp) movaps %xmm4, -0x280(%rbp) movaps %xmm5, -0x270(%rbp) movaps %xmm6, -0x260(%rbp) movaps %xmm7, -0x250(%rbp) movq %fs:0x28, %rax movq %rax, -0x18(%rbp) callq 0x26d3c testq %rax, %rax je 0x26e4e leaq -0x2f0(%rbp), %rcx leaq -0x240(%rbp), %r8 movq %rcx, 0x10(%r8) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%r8) movabsq $0x3000000010, %rcx # imm = 0x3000000010 movq %rcx, (%r8) leaq 0x33ca68(%rip), %rdi # 0x3638a0 leaq -0x220(%rbp), %rsi movl $0x200, %edx # imm = 0x200 movq %rax, %rcx callq 0x5a568 jmp 0x26e6b leaq 0x36733(%rip), %rdx # 0x5d588 leaq -0x220(%rbp), %rdi movl $0x200, %esi # imm = 0x200 movl %r14d, %ecx xorl %eax, %eax callq 0x5b74a leaq 0x2c952e(%rip), %rax # 0x2f03a0 leaq -0x220(%rbp), %rsi movl %r14d, %edi movq %rbx, %rdx callq *(%rax) movq %fs:0x28, %rax cmpq -0x18(%rbp), %rax jne 0x26e9c addq $0x2e0, %rsp # imm = 0x2E0 popq %rbx popq %r14 popq %rbp retq callq 0x243b0
my_error: push rbp mov rbp, rsp push r14 push rbx sub rsp, 2E0h mov rbx, rsi mov r14d, edi mov [rbp+var_2E0], rdx mov [rbp+var_2D8], rcx mov [rbp+var_2D0], r8 mov [rbp+var_2C8], r9 test al, al jz short loc_26DF3 movaps [rbp+var_2C0], xmm0 movaps [rbp+var_2B0], xmm1 movaps [rbp+var_2A0], xmm2 movaps [rbp+var_290], xmm3 movaps [rbp+var_280], xmm4 movaps [rbp+var_270], xmm5 movaps [rbp+var_260], xmm6 movaps [rbp+var_250], xmm7 loc_26DF3: mov rax, fs:28h mov [rbp+var_18], rax call my_get_err_msg test rax, rax jz short loc_26E4E lea rcx, [rbp+var_2F0] lea r8, [rbp+var_240] mov [r8+10h], rcx lea rcx, [rbp+arg_0] mov [r8+8], rcx mov rcx, 3000000010h mov [r8], rcx lea rdi, my_charset_utf8mb3_general_ci lea rsi, [rbp+var_220] mov edx, 200h mov rcx, rax call my_vsnprintf_ex jmp short loc_26E6B loc_26E4E: lea rdx, aUnknownErrorD; "Unknown error %d" lea rdi, [rbp+var_220] mov esi, 200h mov ecx, r14d xor eax, eax call my_snprintf loc_26E6B: lea rax, error_handler_hook lea rsi, [rbp+var_220] mov edi, r14d mov rdx, rbx call qword ptr [rax] mov rax, fs:28h cmp rax, [rbp+var_18] jnz short loc_26E9C add rsp, 2E0h pop rbx pop r14 pop rbp retn loc_26E9C: call ___stack_chk_fail
unsigned long long my_error(unsigned int a1, long long a2, ...) { _BYTE *err_msg; // rax int v3; // r8d int v4; // r9d va_list va; // [rsp+B0h] [rbp-240h] BYREF _BYTE v7[520]; // [rsp+D0h] [rbp-220h] BYREF unsigned long long v8; // [rsp+2D8h] [rbp-18h] va_start(va, a2); va_arg(va, _QWORD); va_arg(va, _QWORD); va_arg(va, _QWORD); va_arg(va, _QWORD); va_end(va); v8 = __readfsqword(0x28u); err_msg = my_get_err_msg(a1); if ( err_msg ) { va_start(va, a2); my_vsnprintf_ex(&my_charset_utf8mb3_general_ci, v7, 512LL, err_msg, va); } else { my_snprintf((unsigned int)v7, 512, (unsigned int)"Unknown error %d", a1, v3, v4); } error_handler_hook(); return __readfsqword(0x28u); }
my_error: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x2e0 MOV RBX,RSI MOV R14D,EDI MOV qword ptr [RBP + -0x2e0],RDX MOV qword ptr [RBP + -0x2d8],RCX MOV qword ptr [RBP + -0x2d0],R8 MOV qword ptr [RBP + -0x2c8],R9 TEST AL,AL JZ 0x00126df3 MOVAPS xmmword ptr [RBP + -0x2c0],XMM0 MOVAPS xmmword ptr [RBP + -0x2b0],XMM1 MOVAPS xmmword ptr [RBP + -0x2a0],XMM2 MOVAPS xmmword ptr [RBP + -0x290],XMM3 MOVAPS xmmword ptr [RBP + -0x280],XMM4 MOVAPS xmmword ptr [RBP + -0x270],XMM5 MOVAPS xmmword ptr [RBP + -0x260],XMM6 MOVAPS xmmword ptr [RBP + -0x250],XMM7 LAB_00126df3: MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x18],RAX CALL 0x00126d3c TEST RAX,RAX JZ 0x00126e4e LEA RCX,[RBP + -0x2f0] LEA R8,[RBP + -0x240] MOV qword ptr [R8 + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [R8 + 0x8],RCX MOV RCX,0x3000000010 MOV qword ptr [R8],RCX LEA RDI,[0x4638a0] LEA RSI,[RBP + -0x220] MOV EDX,0x200 MOV RCX,RAX CALL 0x0015a568 JMP 0x00126e6b LAB_00126e4e: LEA RDX,[0x15d588] LEA RDI,[RBP + -0x220] MOV ESI,0x200 MOV ECX,R14D XOR EAX,EAX CALL 0x0015b74a LAB_00126e6b: LEA RAX,[0x3f03a0] LEA RSI,[RBP + -0x220] MOV EDI,R14D MOV RDX,RBX CALL qword ptr [RAX] MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x00126e9c ADD RSP,0x2e0 POP RBX POP R14 POP RBP RET LAB_00126e9c: CALL 0x001243b0
void my_error(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int4 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; long lVar1; long in_FS_OFFSET; int1 local_2f8 [16]; int8 local_2e8; int8 local_2e0; int8 local_2d8; int8 local_2d0; int8 local_2c8; int8 local_2b8; int8 local_2a8; int8 local_298; int8 local_288; int8 local_278; int8 local_268; int8 local_258; int8 local_248; int1 *local_240; int1 *local_238; int1 local_228 [520]; long local_20; if (in_AL != '\0') { local_2c8 = param_1; local_2b8 = param_2; local_2a8 = param_3; local_298 = param_4; local_288 = param_5; local_278 = param_6; local_268 = param_7; local_258 = param_8; } local_20 = *(long *)(in_FS_OFFSET + 0x28); local_2e8 = param_11; local_2e0 = param_12; local_2d8 = param_13; local_2d0 = param_14; lVar1 = my_get_err_msg(); if (lVar1 == 0) { my_snprintf(local_228,0x200,"Unknown error %d",param_9); } else { local_238 = local_2f8; local_240 = &stack0x00000008; local_248 = 0x3000000010; my_vsnprintf_ex(my_charset_utf8mb3_general_ci,local_228,0x200,lVar1); } (*(code *)error_handler_hook)(param_9,local_228,param_10); if (*(long *)(in_FS_OFFSET + 0x28) == local_20) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
49,808
js_function_proto_caller
bluesky950520[P]quickjs/quickjs.c
static JSValue js_function_proto_caller(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSFunctionBytecode *b = JS_GetFunctionBytecode(this_val); if (!b || b->is_strict_mode || !b->has_prototype) { return js_throw_type_error(ctx, this_val, 0, NULL); } return JS_UNDEFINED; }
O1
c
js_function_proto_caller: pushq %rax movq %rsi, (%rsp) cmpl $-0x1, %edx jne 0x37ecd movq (%rsp), %rcx movzwl 0x6(%rcx), %edx xorl %eax, %eax cmpq $0x38, %rdx ja 0x37ecf movabsq $0x110000000012000, %rsi # imm = 0x110000000012000 btq %rdx, %rsi jae 0x37ecf movq 0x30(%rcx), %rax jmp 0x37ecf xorl %eax, %eax testq %rax, %rax je 0x37ee6 movzwl 0x18(%rax), %eax andl $0x3, %eax movl $0x3, %edx cmpw $0x2, %ax je 0x37ef9 leaq 0x699bc(%rip), %rsi # 0xa18a9 xorl %eax, %eax callq 0x22567 movl $0x6, %edx xorl %eax, %eax popq %rcx retq
js_function_proto_caller: push rax mov [rsp+8+var_8], rsi cmp edx, 0FFFFFFFFh jnz short loc_37ECD mov rcx, [rsp+8+var_8] movzx edx, word ptr [rcx+6] xor eax, eax cmp rdx, 38h ; '8' ja short loc_37ECF mov rsi, 110000000012000h bt rsi, rdx jnb short loc_37ECF mov rax, [rcx+30h] jmp short loc_37ECF loc_37ECD: xor eax, eax loc_37ECF: test rax, rax jz short loc_37EE6 movzx eax, word ptr [rax+18h] and eax, 3 mov edx, 3 cmp ax, 2 jz short loc_37EF9 loc_37EE6: lea rsi, aInvalidPropert; "invalid property access" xor eax, eax call JS_ThrowTypeError mov edx, 6 loc_37EF9: xor eax, eax pop rcx retn
long long js_function_proto_caller( long long a1, long long a2, unsigned 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; // rax long long v15; // rsi if ( (_DWORD)a3 == -1 ) { a4 = a2; a3 = *(unsigned __int16 *)(a2 + 6); v14 = 0LL; if ( a3 <= 0x38 ) { v15 = 0x110000000012000LL; if ( _bittest64(&v15, a3) ) v14 = *(_QWORD *)(a2 + 48); } } else { v14 = 0LL; } if ( !v14 || (a3 = 3LL, (*(_WORD *)(v14 + 24) & 3) != 2) ) JS_ThrowTypeError(a1, (long long)"invalid property access", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a2); return 0LL; }
js_function_proto_caller: PUSH RAX MOV qword ptr [RSP],RSI CMP EDX,-0x1 JNZ 0x00137ecd MOV RCX,qword ptr [RSP] MOVZX EDX,word ptr [RCX + 0x6] XOR EAX,EAX CMP RDX,0x38 JA 0x00137ecf MOV RSI,0x110000000012000 BT RSI,RDX JNC 0x00137ecf MOV RAX,qword ptr [RCX + 0x30] JMP 0x00137ecf LAB_00137ecd: XOR EAX,EAX LAB_00137ecf: TEST RAX,RAX JZ 0x00137ee6 MOVZX EAX,word ptr [RAX + 0x18] AND EAX,0x3 MOV EDX,0x3 CMP AX,0x2 JZ 0x00137ef9 LAB_00137ee6: LEA RSI,[0x1a18a9] XOR EAX,EAX CALL 0x00122567 MOV EDX,0x6 LAB_00137ef9: XOR EAX,EAX POP RCX RET
int1 [16] js_function_proto_caller(int8 param_1,long param_2,ulong param_3) { int1 auVar1 [16]; long lVar2; if ((int)param_3 == -1) { param_3 = (ulong)*(ushort *)(param_2 + 6); lVar2 = 0; if ((param_3 < 0x39) && ((0x110000000012000U >> (param_3 & 0x3f) & 1) != 0)) { lVar2 = *(long *)(param_2 + 0x30); } } else { lVar2 = 0; } if ((lVar2 == 0) || (param_3 = 3, (*(ushort *)(lVar2 + 0x18) & 3) != 2)) { JS_ThrowTypeError(param_1,"invalid property access",param_3); param_3 = 6; } auVar1._8_8_ = 0; auVar1._0_8_ = param_3; return auVar1 << 0x40; }
49,809
LefDefParser::defiNet::rectRouteStatus(int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNet.cpp
const char* defiNet::rectRouteStatus(int index) const { char errMsg[128]; if (index < 0 || index > numRects_) { sprintf (errMsg, "ERROR (DEFPARS-6086): The index number %d specified for the NET RECTANGLE is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again.", index, numRects_); defiError(0, 6086, errMsg, defData); return 0; } return rectRouteStatus_[index]; }
O0
cpp
LefDefParser::defiNet::rectRouteStatus(int) const: subq $0xa8, %rsp movq %rdi, 0x98(%rsp) movl %esi, 0x94(%rsp) movq 0x98(%rsp), %rax movq %rax, 0x8(%rsp) cmpl $0x0, 0x94(%rsp) jl 0x3f4e1 movq 0x8(%rsp), %rcx movl 0x94(%rsp), %eax cmpl 0x1b0(%rcx), %eax jle 0x3f531 movq 0x8(%rsp), %rax leaq 0x10(%rsp), %rdi movl 0x94(%rsp), %edx movl 0x1b0(%rax), %ecx leaq 0x35efc(%rip), %rsi # 0x753fb movb $0x0, %al callq 0x7060 movq 0x8(%rsp), %rax leaq 0x10(%rsp), %rdx movq 0x240(%rax), %rcx xorl %edi, %edi movl $0x17c6, %esi # imm = 0x17C6 callq 0x2a600 movq $0x0, 0xa0(%rsp) jmp 0x3f551 movq 0x8(%rsp), %rax movq 0x1e8(%rax), %rax movslq 0x94(%rsp), %rcx movq (%rax,%rcx,8), %rax movq %rax, 0xa0(%rsp) movq 0xa0(%rsp), %rax addq $0xa8, %rsp retq nopw %cs:(%rax,%rax)
_ZNK12LefDefParser7defiNet15rectRouteStatusEi: sub rsp, 0A8h mov [rsp+0A8h+var_10], rdi mov [rsp+0A8h+var_14], esi mov rax, [rsp+0A8h+var_10] mov [rsp+0A8h+var_A0], rax cmp [rsp+0A8h+var_14], 0 jl short loc_3F4E1 mov rcx, [rsp+0A8h+var_A0] mov eax, [rsp+0A8h+var_14] cmp eax, [rcx+1B0h] jle short loc_3F531 loc_3F4E1: mov rax, [rsp+0A8h+var_A0] lea rdi, [rsp+0A8h+var_98] mov edx, [rsp+0A8h+var_14] mov ecx, [rax+1B0h] lea rsi, aErrorDefpars60_7; "ERROR (DEFPARS-6086): The index number "... mov al, 0 call _sprintf mov rax, [rsp+0A8h+var_A0] lea rdx, [rsp+0A8h+var_98]; int mov rcx, [rax+240h]; char * xor edi, edi; this mov esi, 17C6h; int call _ZN12LefDefParser9defiErrorEiiPKcPNS_8defrDataE; LefDefParser::defiError(int,int,char const*,LefDefParser::defrData *) mov [rsp+0A8h+var_8], 0 jmp short loc_3F551 loc_3F531: mov rax, [rsp+0A8h+var_A0] mov rax, [rax+1E8h] movsxd rcx, [rsp+0A8h+var_14] mov rax, [rax+rcx*8] mov [rsp+0A8h+var_8], rax loc_3F551: mov rax, [rsp+0A8h+var_8] add rsp, 0A8h retn
long long LefDefParser::defiNet::rectRouteStatus(LefDefParser::defrData **this, int a2) { LefDefParser::defrData *v2; // r8 char v4[132]; // [rsp+10h] [rbp-98h] BYREF int v5; // [rsp+94h] [rbp-14h] LefDefParser::defiNet *v6; // [rsp+98h] [rbp-10h] v6 = (LefDefParser::defiNet *)this; v5 = a2; if ( a2 >= 0 && v5 <= *((_DWORD *)this + 108) ) return *((_QWORD *)this[61] + v5); sprintf( v4, "ERROR (DEFPARS-6086): The index number %d specified for the NET RECTANGLE is invalid.\n" "Valid index is from 0 to %d. Specify a valid index number and then try again.", v5, *((_DWORD *)this + 108)); LefDefParser::defiError(0LL, 6086, v4, this[72], v2); return 0LL; }
rectRouteStatus: SUB RSP,0xa8 MOV qword ptr [RSP + 0x98],RDI MOV dword ptr [RSP + 0x94],ESI MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x8],RAX CMP dword ptr [RSP + 0x94],0x0 JL 0x0013f4e1 MOV RCX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RSP + 0x94] CMP EAX,dword ptr [RCX + 0x1b0] JLE 0x0013f531 LAB_0013f4e1: MOV RAX,qword ptr [RSP + 0x8] LEA RDI,[RSP + 0x10] MOV EDX,dword ptr [RSP + 0x94] MOV ECX,dword ptr [RAX + 0x1b0] LEA RSI,[0x1753fb] MOV AL,0x0 CALL 0x00107060 MOV RAX,qword ptr [RSP + 0x8] LEA RDX,[RSP + 0x10] MOV RCX,qword ptr [RAX + 0x240] XOR EDI,EDI MOV ESI,0x17c6 CALL 0x0012a600 MOV qword ptr [RSP + 0xa0],0x0 JMP 0x0013f551 LAB_0013f531: MOV RAX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RAX + 0x1e8] MOVSXD RCX,dword ptr [RSP + 0x94] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RSP + 0xa0],RAX LAB_0013f551: MOV RAX,qword ptr [RSP + 0xa0] ADD RSP,0xa8 RET
/* LefDefParser::defiNet::rectRouteStatus(int) const */ int8 __thiscall LefDefParser::defiNet::rectRouteStatus(defiNet *this,int param_1) { char local_98 [132]; int local_14; defiNet *local_10; int8 local_8; if ((param_1 < 0) || (*(int *)(this + 0x1b0) < param_1)) { local_14 = param_1; local_10 = this; sprintf(local_98, "ERROR (DEFPARS-6086): The index number %d specified for the NET RECTANGLE is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again." ,(ulong)(uint)param_1,(ulong)*(uint *)(this + 0x1b0)); defiError(0,0x17c6,local_98,*(defrData **)(this + 0x240)); local_8 = 0; } else { local_8 = *(int8 *)(*(long *)(this + 0x1e8) + (long)param_1 * 8); } return local_8; }
49,810
LefDefParser::defiNet::rectRouteStatus(int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNet.cpp
const char* defiNet::rectRouteStatus(int index) const { char errMsg[128]; if (index < 0 || index > numRects_) { sprintf (errMsg, "ERROR (DEFPARS-6086): The index number %d specified for the NET RECTANGLE is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again.", index, numRects_); defiError(0, 6086, errMsg, defData); return 0; } return rectRouteStatus_[index]; }
O3
cpp
LefDefParser::defiNet::rectRouteStatus(int) const: pushq %r15 pushq %r14 pushq %rbx subq $0x80, %rsp movl %esi, %edx movq %rdi, %rbx testl %esi, %esi sets %al movl 0x1b0(%rdi), %ecx cmpl %esi, %ecx setl %sil orb %al, %sil cmpb $0x1, %sil jne 0x26e2a leaq 0x1e42b(%rip), %rsi # 0x4522d xorl %r14d, %r14d movq %rsp, %r15 movq %r15, %rdi xorl %eax, %eax callq 0x7060 movq 0x240(%rbx), %rcx xorl %edi, %edi movl $0x17c6, %esi # imm = 0x17C6 movq %r15, %rdx callq 0x1bb18 jmp 0x26e37 movq 0x1e8(%rbx), %rax movl %edx, %ecx movq (%rax,%rcx,8), %r14 movq %r14, %rax addq $0x80, %rsp popq %rbx popq %r14 popq %r15 retq nop
_ZNK12LefDefParser7defiNet15rectRouteStatusEi: push r15 push r14 push rbx sub rsp, 80h mov edx, esi mov rbx, rdi test esi, esi sets al mov ecx, [rdi+1B0h] cmp ecx, esi setl sil or sil, al cmp sil, 1 jnz short loc_26E2A lea rsi, aErrorDefpars60_7; "ERROR (DEFPARS-6086): The index number "... xor r14d, r14d mov r15, rsp mov rdi, r15 xor eax, eax call _sprintf mov rcx, [rbx+240h]; LefDefParser::defrData * xor edi, edi; this mov esi, 17C6h; int mov rdx, r15; char * call _ZN12LefDefParser9defiErrorEiiPKcPNS_8defrDataE; LefDefParser::defiError(int,int,char const*,LefDefParser::defrData *) jmp short loc_26E37 loc_26E2A: mov rax, [rbx+1E8h] mov ecx, edx mov r14, [rax+rcx*8] loc_26E37: mov rax, r14 add rsp, 80h pop rbx pop r14 pop r15 retn
long long LefDefParser::defiNet::rectRouteStatus(LefDefParser::defiNet *this, int a2) { int v2; // ecx long long v3; // r14 LefDefParser::defrData *v4; // r8 char v6[152]; // [rsp+0h] [rbp-98h] BYREF v2 = *((_DWORD *)this + 108); if ( a2 >= 0 && v2 >= a2 ) return *(_QWORD *)(*((_QWORD *)this + 61) + 8LL * (unsigned int)a2); v3 = 0LL; sprintf( v6, "ERROR (DEFPARS-6086): The index number %d specified for the NET RECTANGLE is invalid.\n" "Valid index is from 0 to %d. Specify a valid index number and then try again.", a2, v2); LefDefParser::defiError(0LL, 6086, v6, *((LefDefParser::defrData **)this + 72), v4); return v3; }
rectRouteStatus: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x80 MOV EDX,ESI MOV RBX,RDI TEST ESI,ESI SETS AL MOV ECX,dword ptr [RDI + 0x1b0] CMP ECX,ESI SETL SIL OR SIL,AL CMP SIL,0x1 JNZ 0x00126e2a LEA RSI,[0x14522d] XOR R14D,R14D MOV R15,RSP MOV RDI,R15 XOR EAX,EAX CALL 0x00107060 MOV RCX,qword ptr [RBX + 0x240] XOR EDI,EDI MOV ESI,0x17c6 MOV RDX,R15 CALL 0x0011bb18 JMP 0x00126e37 LAB_00126e2a: MOV RAX,qword ptr [RBX + 0x1e8] MOV ECX,EDX MOV R14,qword ptr [RAX + RCX*0x8] LAB_00126e37: MOV RAX,R14 ADD RSP,0x80 POP RBX POP R14 POP R15 RET
/* LefDefParser::defiNet::rectRouteStatus(int) const */ int8 __thiscall LefDefParser::defiNet::rectRouteStatus(defiNet *this,int param_1) { int8 uVar1; char acStack_98 [128]; if (*(int *)(this + 0x1b0) < param_1 || param_1 < 0) { uVar1 = 0; sprintf(acStack_98, "ERROR (DEFPARS-6086): The index number %d specified for the NET RECTANGLE is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again." ); defiError(0,0x17c6,acStack_98,*(defrData **)(this + 0x240)); } else { uVar1 = *(int8 *)(*(long *)(this + 0x1e8) + (ulong)(uint)param_1 * 8); } return uVar1; }
49,811
uint64_from_be
corpus-core[P]colibri-stateless/src/util/bytes.c
uint64_t uint64_from_be(uint8_t* data) { return (uint64_t) data[7] | ((uint64_t) data[6] << 8) | ((uint64_t) data[5] << 16) | ((uint64_t) data[4] << 24) | ((uint64_t) data[3] << 32) | ((uint64_t) data[2] << 40) | ((uint64_t) data[1] << 48) | ((uint64_t) data[0] << 56); }
O0
c
uint64_from_be: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movzbl 0x7(%rax), %eax movq -0x8(%rbp), %rcx movzbl 0x6(%rcx), %ecx shlq $0x8, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x5(%rcx), %ecx shlq $0x10, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x4(%rcx), %ecx shlq $0x18, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x3(%rcx), %ecx shlq $0x20, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x2(%rcx), %ecx shlq $0x28, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl 0x1(%rcx), %ecx shlq $0x30, %rcx orq %rcx, %rax movq -0x8(%rbp), %rcx movzbl (%rcx), %ecx shlq $0x38, %rcx orq %rcx, %rax popq %rbp retq nopw (%rax,%rax)
uint64_from_be: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] movzx eax, byte ptr [rax+7] mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+6] shl rcx, 8 or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+5] shl rcx, 10h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+4] shl rcx, 18h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+3] shl rcx, 20h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+2] shl rcx, 28h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx+1] shl rcx, 30h or rax, rcx mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx] shl rcx, 38h or rax, rcx pop rbp retn
unsigned long long uint64_from_be(unsigned long long *a1) { return _byteswap_uint64(*a1); }
uint64_from_be: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x7] MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x6] SHL RCX,0x8 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x5] SHL RCX,0x10 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x4] SHL RCX,0x18 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x3] SHL RCX,0x20 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x2] SHL RCX,0x28 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX + 0x1] SHL RCX,0x30 OR RAX,RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX] SHL RCX,0x38 OR RAX,RCX POP RBP RET
int8 uint64_from_be(int1 *param_1) { return CONCAT17(*param_1,CONCAT16(param_1[1], CONCAT15(param_1[2], CONCAT14(param_1[3], CONCAT13(param_1[4], CONCAT12(param_1[5], CONCAT11(param_1[6], param_1[7]))))))); }
49,812
translog_set_file_size
eloqsql/storage/maria/ma_loghandler.c
void translog_set_file_size(uint32 size) { struct st_translog_buffer *old_buffer= NULL; DBUG_ENTER("translog_set_file_size"); translog_lock(); DBUG_PRINT("enter", ("Size: %lu", (ulong) size)); DBUG_ASSERT(size % TRANSLOG_PAGE_SIZE == 0); DBUG_ASSERT(size >= TRANSLOG_MIN_FILE_SIZE); log_descriptor.log_file_max_size= size; /* if current file longer then finish it*/ if (LSN_OFFSET(log_descriptor.horizon) >= log_descriptor.log_file_max_size) { old_buffer= log_descriptor.bc.buffer; translog_buffer_next(&log_descriptor.horizon, &log_descriptor.bc, 1); translog_buffer_unlock(old_buffer); } translog_unlock(); if (old_buffer) { translog_buffer_lock(old_buffer); translog_buffer_flush(old_buffer); translog_buffer_unlock(old_buffer); } DBUG_VOID_RETURN; }
O3
c
translog_set_file_size: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movl %edi, %ebx callq 0x49f57 movl %ebx, 0x3b1af0(%rip) # 0x400a80 cmpl %ebx, 0xbb2722(%rip) # 0xc016b8 jae 0x4ef9c xorl %ebx, %ebx jmp 0x4efd7 movq 0xbb2745(%rip), %rbx # 0xc016e8 leaq 0xbb270e(%rip), %rdi # 0xc016b8 leaq 0xbb270f(%rip), %rsi # 0xc016c0 movl $0x1, %edx callq 0x4f06b movq 0x1000d0(%rbx), %rdi testq %rdi, %rdi jne 0x4f056 leaq 0x100090(%rbx), %rdi callq 0x291e0 movq 0xbb270a(%rip), %r14 # 0xc016e8 movq 0x1000d0(%r14), %rdi testq %rdi, %rdi jne 0x4f032 addq $0x100090, %r14 # imm = 0x100090 movq %r14, %rdi callq 0x291e0 testq %rbx, %rbx je 0x4f02d movq %rbx, %rdi callq 0x49ff7 movq %rbx, %rdi callq 0x4dcc5 movq 0x1000d0(%rbx), %rdi testq %rdi, %rdi jne 0x4f044 addq $0x100090, %rbx # imm = 0x100090 movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0x291e0 popq %rbx popq %r14 popq %rbp retq leaq 0x339087(%rip), %rax # 0x3880c0 movq (%rax), %rax callq *0x160(%rax) jmp 0x4efea leaq 0x339075(%rip), %rax # 0x3880c0 movq (%rax), %rax callq *0x160(%rax) jmp 0x4f01a leaq 0x339063(%rip), %rax # 0x3880c0 movq (%rax), %rax callq *0x160(%rax) jmp 0x4efcb
translog_set_file_size: push rbp mov rbp, rsp push r14 push rbx mov ebx, edi call translog_lock mov cs:dword_400A80, ebx cmp dword ptr cs:qword_C016B8, ebx jnb short loc_4EF9C xor ebx, ebx jmp short loc_4EFD7 loc_4EF9C: mov rbx, qword ptr cs:xmmword_C016E0+8 lea rdi, qword_C016B8 lea rsi, xmmword_C016C0 mov edx, 1 call translog_buffer_next mov rdi, ds:qword_1000D0[rbx] test rdi, rdi jnz loc_4F056 loc_4EFCB: lea rdi, unk_100090[rbx] call _pthread_mutex_unlock loc_4EFD7: mov r14, qword ptr cs:xmmword_C016E0+8 mov rdi, ds:qword_1000D0[r14] test rdi, rdi jnz short loc_4F032 loc_4EFEA: add r14, 100090h mov rdi, r14 call _pthread_mutex_unlock test rbx, rbx jz short loc_4F02D mov rdi, rbx call translog_buffer_lock mov rdi, rbx call translog_buffer_flush mov rdi, ds:qword_1000D0[rbx] test rdi, rdi jnz short loc_4F044 loc_4F01A: add rbx, 100090h mov rdi, rbx pop rbx pop r14 pop rbp jmp _pthread_mutex_unlock loc_4F02D: pop rbx pop r14 pop rbp retn loc_4F032: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4EFEA loc_4F044: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4F01A loc_4F056: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_4EFCB
long long translog_set_file_size(unsigned int a1) { long long v1; // rbx long long v2; // r14 long long result; // rax translog_lock(); dword_400A80 = a1; if ( (unsigned int)qword_C016B8 >= a1 ) { v1 = *((_QWORD *)&xmmword_C016E0 + 1); translog_buffer_next(&qword_C016B8, &xmmword_C016C0, 1LL); if ( *(long long *)((char *)&qword_1000D0 + v1) ) PSI_server[44](); pthread_mutex_unlock((char *)&unk_100090 + v1); } else { v1 = 0LL; } v2 = *((_QWORD *)&xmmword_C016E0 + 1); if ( *(long long *)((char *)&qword_1000D0 + *((_QWORD *)&xmmword_C016E0 + 1)) ) PSI_server[44](); result = pthread_mutex_unlock(v2 + 1048720); if ( v1 ) { translog_buffer_lock(v1); translog_buffer_flush(v1); if ( *(long long *)((char *)&qword_1000D0 + v1) ) PSI_server[44](); return pthread_mutex_unlock(v1 + 1048720); } return result; }
translog_set_file_size: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV EBX,EDI CALL 0x00149f57 MOV dword ptr [0x00500a80],EBX CMP dword ptr [0x00d016b8],EBX JNC 0x0014ef9c XOR EBX,EBX JMP 0x0014efd7 LAB_0014ef9c: MOV RBX,qword ptr [0x00d016e8] LEA RDI,[0xd016b8] LEA RSI,[0xd016c0] MOV EDX,0x1 CALL 0x0014f06b MOV RDI,qword ptr [RBX + 0x1000d0] TEST RDI,RDI JNZ 0x0014f056 LAB_0014efcb: LEA RDI,[RBX + 0x100090] CALL 0x001291e0 LAB_0014efd7: MOV R14,qword ptr [0x00d016e8] MOV RDI,qword ptr [R14 + 0x1000d0] TEST RDI,RDI JNZ 0x0014f032 LAB_0014efea: ADD R14,0x100090 MOV RDI,R14 CALL 0x001291e0 TEST RBX,RBX JZ 0x0014f02d MOV RDI,RBX CALL 0x00149ff7 MOV RDI,RBX CALL 0x0014dcc5 MOV RDI,qword ptr [RBX + 0x1000d0] TEST RDI,RDI JNZ 0x0014f044 LAB_0014f01a: ADD RBX,0x100090 MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x001291e0 LAB_0014f02d: POP RBX POP R14 POP RBP RET LAB_0014f032: LEA RAX,[0x4880c0] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014efea LAB_0014f044: LEA RAX,[0x4880c0] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014f01a LAB_0014f056: LEA RAX,[0x4880c0] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014efcb
void translog_set_file_size(uint param_1) { long lVar1; long lVar2; translog_lock(); lVar2 = DAT_00d016e8; DAT_00500a80 = param_1; if ((uint)DAT_00d016b8 < param_1) { lVar2 = 0; } else { translog_buffer_next(&DAT_00d016b8,&DAT_00d016c0,1); if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + lVar2) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar2)); } lVar1 = DAT_00d016e8; if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + DAT_00d016e8) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar1)); if (lVar2 != 0) { translog_buffer_lock(lVar2); translog_buffer_flush(lVar2); if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + lVar2) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar2)); return; } return; }
49,813
exchange_one_int128
bluesky950520[P]quickjs/cutils.c
static void exchange_one_int128(void *a, void *b, size_t size) { uint64_t *ap = (uint64_t *)a; uint64_t *bp = (uint64_t *)b; uint64_t t = ap[0]; uint64_t u = ap[1]; ap[0] = bp[0]; ap[1] = bp[1]; bp[0] = t; bp[1] = u; }
O1
c
exchange_one_int128: movq (%rsi), %rax movups (%rdi), %xmm0 movq %rax, (%rdi) movq 0x8(%rsi), %rax movq %rax, 0x8(%rdi) movups %xmm0, (%rsi) retq
exchange_one_int128: mov rax, [rsi] movups xmm0, xmmword ptr [rdi] mov [rdi], rax mov rax, [rsi+8] mov [rdi+8], rax movups xmmword ptr [rsi], xmm0 retn
long long exchange_one_int128(__int128 *a1, _QWORD *a2) { __int128 v2; // xmm0 long long result; // rax v2 = *a1; *(_QWORD *)a1 = *a2; result = a2[1]; *((_QWORD *)a1 + 1) = result; *(_OWORD *)a2 = v2; return result; }
exchange_one_int128: MOV RAX,qword ptr [RSI] MOVUPS XMM0,xmmword ptr [RDI] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x8],RAX MOVUPS xmmword ptr [RSI],XMM0 RET
void exchange_one_int128(int8 *param_1,int8 *param_2) { int8 uVar1; int8 uVar2; uVar1 = *param_1; uVar2 = param_1[1]; *param_1 = *param_2; param_1[1] = param_2[1]; *param_2 = uVar1; param_2[1] = uVar2; return; }
49,814
testing::internal::UnitTestImpl::PostFlagParsingInit()
seiftnesse[P]memoryallocator/build_O2/_deps/googletest-src/googletest/src/gtest.cc
void UnitTestImpl::PostFlagParsingInit() { // Ensures that this function does not execute more than once. if (!post_flag_parse_init_performed_) { post_flag_parse_init_performed_ = true; #if defined(GTEST_CUSTOM_TEST_EVENT_LISTENER_) // Register to send notifications about key process state changes. listeners()->Append(new GTEST_CUSTOM_TEST_EVENT_LISTENER_()); #endif // defined(GTEST_CUSTOM_TEST_EVENT_LISTENER_) #if GTEST_HAS_DEATH_TEST InitDeathTestSubprocessControlInfo(); SuppressTestEventsIfInSubprocess(); #endif // GTEST_HAS_DEATH_TEST // Registers parameterized tests. This makes parameterized tests // available to the UnitTest reflection API without running // RUN_ALL_TESTS. RegisterParameterizedTests(); // Configures listeners for XML output. This makes it possible for users // to shut down the default XML output before invoking RUN_ALL_TESTS. ConfigureXmlOutput(); if (GTEST_FLAG_GET(brief)) { listeners()->SetDefaultResultPrinter(new BriefUnitTestResultPrinter); } #if GTEST_CAN_STREAM_RESULTS_ // Configures listeners for streaming test results to the specified server. ConfigureStreamingOutput(); #endif // GTEST_CAN_STREAM_RESULTS_ #if GTEST_HAS_ABSL if (GTEST_FLAG_GET(install_failure_signal_handler)) { absl::FailureSignalHandlerOptions options; absl::InstallFailureSignalHandler(options); } #endif // GTEST_HAS_ABSL } }
O2
cpp
testing::internal::UnitTestImpl::PostFlagParsingInit(): cmpb $0x0, 0x218(%rdi) je 0x24262 retq pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movb $0x1, 0x218(%rdi) callq 0x290e0 cmpq $0x0, 0x238(%rbx) je 0x2428a movq 0x1f8(%rbx), %rax movb $0x0, 0x8(%rax) movq %rbx, %rdi callq 0x1baf2 movq %rbx, %rdi callq 0x23f86 cmpb $0x1, 0x412cc2f(%rip) # 0x4150ed0 jne 0x242c7 leaq 0x1f8(%rbx), %r14 pushq $0x8 popq %rdi callq 0x94d0 leaq 0x2817f(%rip), %rcx # 0x4c438 movq %rcx, (%rax) movq %r14, %rdi movq %rax, %rsi callq 0x232d0 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x240fe
_ZN7testing8internal12UnitTestImpl19PostFlagParsingInitEv: cmp byte ptr [rdi+218h], 0 jz short loc_24262 retn loc_24262: push r14 push rbx push rax mov rbx, rdi mov byte ptr [rdi+218h], 1 call _ZN7testing8internal12UnitTestImpl34InitDeathTestSubprocessControlInfoEv; testing::internal::UnitTestImpl::InitDeathTestSubprocessControlInfo(void) cmp qword ptr [rbx+238h], 0 jz short loc_2428A mov rax, [rbx+1F8h] mov byte ptr [rax+8], 0 loc_2428A: mov rdi, rbx; this call _ZN7testing8internal12UnitTestImpl26RegisterParameterizedTestsEv; testing::internal::UnitTestImpl::RegisterParameterizedTests(void) mov rdi, rbx; this call _ZN7testing8internal12UnitTestImpl18ConfigureXmlOutputEv; testing::internal::UnitTestImpl::ConfigureXmlOutput(void) cmp cs:_ZN7testing17FLAGS_gtest_briefE, 1; testing::FLAGS_gtest_brief jnz short loc_242C7 lea r14, [rbx+1F8h] push 8 pop rdi; unsigned __int64 call __Znwm; operator new(ulong) lea rcx, off_4C438 mov [rax], rcx mov rdi, r14; this mov rsi, rax; testing::TestEventListener * call _ZN7testing18TestEventListeners23SetDefaultResultPrinterEPNS_17TestEventListenerE; testing::TestEventListeners::SetDefaultResultPrinter(testing::TestEventListener *) loc_242C7: mov rdi, rbx; this add rsp, 8 pop rbx pop r14 jmp _ZN7testing8internal12UnitTestImpl24ConfigureStreamingOutputEv; testing::internal::UnitTestImpl::ConfigureStreamingOutput(void)
void testing::internal::UnitTestImpl::PostFlagParsingInit(testing::internal::UnitTestImpl *this) { testing::TestEventListener *v1; // rax if ( !*((_BYTE *)this + 536) ) { *((_BYTE *)this + 536) = 1; testing::internal::UnitTestImpl::InitDeathTestSubprocessControlInfo(this); if ( *((_QWORD *)this + 71) ) *(_BYTE *)(*((_QWORD *)this + 63) + 8LL) = 0; testing::internal::UnitTestImpl::RegisterParameterizedTests(this); testing::internal::UnitTestImpl::ConfigureXmlOutput(this); if ( testing::FLAGS_gtest_brief == 1 ) { v1 = (testing::TestEventListener *)operator new(8uLL); *(_QWORD *)v1 = off_4C438; testing::TestEventListeners::SetDefaultResultPrinter((testing::internal::UnitTestImpl *)((char *)this + 504), v1); } testing::internal::UnitTestImpl::ConfigureStreamingOutput((testing::internal::TestEventRepeater **)this); } }
PostFlagParsingInit: CMP byte ptr [RDI + 0x218],0x0 JZ 0x00124262 RET LAB_00124262: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV byte ptr [RDI + 0x218],0x1 CALL 0x001290e0 CMP qword ptr [RBX + 0x238],0x0 JZ 0x0012428a MOV RAX,qword ptr [RBX + 0x1f8] MOV byte ptr [RAX + 0x8],0x0 LAB_0012428a: MOV RDI,RBX CALL 0x0011baf2 MOV RDI,RBX CALL 0x00123f86 CMP byte ptr [0x04250ed0],0x1 JNZ 0x001242c7 LEA R14,[RBX + 0x1f8] PUSH 0x8 POP RDI CALL 0x001094d0 LEA RCX,[0x14c438] MOV qword ptr [RAX],RCX MOV RDI,R14 MOV RSI,RAX CALL 0x001232d0 LAB_001242c7: MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001240fe
/* testing::internal::UnitTestImpl::PostFlagParsingInit() */ void __thiscall testing::internal::UnitTestImpl::PostFlagParsingInit(UnitTestImpl *this) { TestEventListener *pTVar1; if (this[0x218] != (UnitTestImpl)0x0) { return; } this[0x218] = (UnitTestImpl)0x1; InitDeathTestSubprocessControlInfo(this); if (*(long *)(this + 0x238) != 0) { *(int1 *)(*(long *)(this + 0x1f8) + 8) = 0; } RegisterParameterizedTests(this); ConfigureXmlOutput(this); if (FLAGS_gtest_brief == '\x01') { pTVar1 = (TestEventListener *)operator_new(8); *(int ***)pTVar1 = &PTR__TestEventListener_0014c438; TestEventListeners::SetDefaultResultPrinter((TestEventListeners *)(this + 0x1f8),pTVar1); } ConfigureStreamingOutput(this); return; }
49,815
js_weakref_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_weakref_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { if (JS_IsUndefined(new_target)) return JS_ThrowTypeError(ctx, "constructor requires 'new'"); JSValue arg = argv[0]; if (!is_valid_weakref_target(arg)) return JS_ThrowTypeError(ctx, "invalid target"); // TODO(saghul): short-circuit if the refcount is 1? JSValue obj = js_create_from_ctor(ctx, new_target, JS_CLASS_WEAK_REF); if (JS_IsException(obj)) return JS_EXCEPTION; JSWeakRefData *wrd = js_malloc(ctx, sizeof(*wrd)); if (!wrd) { JS_FreeValue(ctx, obj); return JS_EXCEPTION; } JSWeakRefRecord *wr = js_malloc(ctx, sizeof(*wr)); if (!wr) { JS_FreeValue(ctx, obj); js_free(ctx, wrd); return JS_EXCEPTION; } wrd->target = arg; wrd->obj = obj; wr->kind = JS_WEAK_REF_KIND_WEAK_REF; wr->u.weak_ref_data = wrd; insert_weakref_record(arg, wr); JS_SetOpaqueInternal(obj, wrd); return obj; }
O1
c
js_weakref_constructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r15 cmpl $0x3, %edx jne 0x3a38b leaq 0x678b7(%rip), %rsi # 0xa1c40 jmp 0x3a3ba movq (%r8), %rbp movq 0x8(%r8), %r13 movq %rbp, (%rsp) cmpl $-0x1, %r13d je 0x3a3c8 cmpl $-0x8, %r13d jne 0x3a3b3 movq (%rsp), %rax movq 0x4(%rax), %rax shrq $0x3e, %rax cmpl $0x2, %eax jne 0x3a3c8 leaq 0x683f8(%rip), %rsi # 0xa27b2 xorl %ebx, %ebx movq %r15, %rdi xorl %eax, %eax callq 0x22567 jmp 0x3a3e0 movq %r15, %rdi movl $0x3a, %ecx callq 0x36d56 movq %rdx, %r14 cmpl $0x6, %r14d jne 0x3a3fb xorl %ebx, %ebx movl $0x6, %r14d movq %rbx, %rax movq %r14, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movl $0x20, %esi movq %r15, %rdi callq 0xede6 testq %rax, %rax jne 0x3a421 movq 0x18(%r15), %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x1d8c6 jmp 0x3a3de movq %rax, %r12 movl $0x18, %esi movq %r15, %rdi callq 0xede6 testq %rax, %rax je 0x3a46d movq %rbp, (%r12) movq %r13, 0x8(%r12) movq %rbx, 0x10(%r12) movq %r14, 0x18(%r12) movl $0x1, (%rax) movq %r12, 0x10(%rax) movq %rbp, (%rsp) cmpl $-0x8, %r13d je 0x3a4a8 cmpl $-0x1, %r13d jne 0x3a4c3 movq (%rsp), %rcx addq $0x28, %rcx jmp 0x3a4b0 movq 0x18(%r15), %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x1d8c6 movq 0x18(%r15), %rbx decq 0x28(%rbx) movq %r12, %rdi callq *0x20(%rbx) movq 0x30(%rbx), %rcx movq 0x40(%rbx), %rdi subq %rax, %rcx addq $-0x8, %rcx movq %rcx, 0x30(%rbx) movq %r12, %rsi callq *0x10(%rbx) jmp 0x3a3de movq (%rsp), %rcx addq $0x10, %rcx movq (%rcx), %rdx movq %rdx, 0x8(%rax) movq %rax, (%rcx) movq %r12, 0x30(%rbx) jmp 0x3a3e6 callq 0xe090
js_weakref_constructor: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdi cmp edx, 3 jnz short loc_3A38B lea rsi, aConstructorReq; "constructor requires 'new'" jmp short loc_3A3BA loc_3A38B: mov rbp, [r8] mov r13, [r8+8] mov [rsp+38h+var_38], rbp cmp r13d, 0FFFFFFFFh jz short loc_3A3C8 cmp r13d, 0FFFFFFF8h jnz short loc_3A3B3 mov rax, [rsp+38h+var_38] mov rax, [rax+4] shr rax, 3Eh cmp eax, 2 jnz short loc_3A3C8 loc_3A3B3: lea rsi, aInvalidTarget; "invalid target" loc_3A3BA: xor ebx, ebx mov rdi, r15 xor eax, eax call JS_ThrowTypeError jmp short loc_3A3E0 loc_3A3C8: mov rdi, r15 mov ecx, 3Ah ; ':' call js_create_from_ctor mov r14, rdx cmp r14d, 6 jnz short loc_3A3FB loc_3A3DE: xor ebx, ebx loc_3A3E0: mov r14d, 6 loc_3A3E6: mov rax, rbx mov rdx, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3A3FB: mov rbx, rax mov esi, 20h ; ' ' mov rdi, r15 call js_malloc test rax, rax jnz short loc_3A421 mov rdi, [r15+18h] mov rsi, rbx mov rdx, r14 call JS_FreeValueRT jmp short loc_3A3DE loc_3A421: mov r12, rax mov esi, 18h mov rdi, r15 call js_malloc test rax, rax jz short loc_3A46D mov [r12], rbp mov [r12+8], r13 mov [r12+10h], rbx mov [r12+18h], r14 mov dword ptr [rax], 1 mov [rax+10h], r12 mov [rsp+38h+var_38], rbp cmp r13d, 0FFFFFFF8h jz short loc_3A4A8 cmp r13d, 0FFFFFFFFh jnz short loc_3A4C3 mov rcx, [rsp+38h+var_38] add rcx, 28h ; '(' jmp short loc_3A4B0 loc_3A46D: mov rdi, [r15+18h] mov rsi, rbx mov rdx, r14 call JS_FreeValueRT mov rbx, [r15+18h] dec qword ptr [rbx+28h] mov rdi, r12 call qword ptr [rbx+20h] mov rcx, [rbx+30h] mov rdi, [rbx+40h] sub rcx, rax add rcx, 0FFFFFFFFFFFFFFF8h mov [rbx+30h], rcx mov rsi, r12 call qword ptr [rbx+10h] jmp loc_3A3DE loc_3A4A8: mov rcx, [rsp+38h+var_38] add rcx, 10h loc_3A4B0: mov rdx, [rcx] mov [rax+8], rdx mov [rcx], rax mov [rbx+30h], r12 jmp loc_3A3E6 loc_3A4C3: call _abort
unsigned long long js_weakref_constructor( 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 const char *v15; // rsi long long v16; // rbp long long v17; // r13 unsigned long long v18; // rbx unsigned long long v19; // rax long long v20; // rdx long long v21; // r14 long long v23; // rax _QWORD *v24; // r12 long long v25; // rax long long *v26; // rcx long long v27; // rbx long long v28; // rax long long v29; // rdi long long v30; // [rsp+0h] [rbp-38h] LOBYTE(v30) = v14; if ( (_DWORD)a3 == 3 ) { v15 = "constructor requires 'new'"; LABEL_7: v18 = 0LL; JS_ThrowTypeError(a1, (long long)v15, a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v30); return v18; } v16 = *a5; v17 = a5[1]; v30 = *a5; if ( (_DWORD)v17 != -1 && ((_DWORD)v17 != -8 || *(_QWORD *)(v30 + 4) >> 62 == 2) ) { v15 = "invalid target"; goto LABEL_7; } v19 = js_create_from_ctor(a1, a2, a3, 58); v21 = v20; if ( (_DWORD)v20 == 6 ) return 0LL; v18 = v19; v23 = js_malloc(a1, 32LL); if ( !v23 ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v18, v21); return 0LL; } v24 = (_QWORD *)v23; v25 = js_malloc(a1, 24LL); if ( !v25 ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v18, v21); v27 = *(_QWORD *)(a1 + 24); --*(_QWORD *)(v27 + 40); v28 = (*(long long ( **)(_QWORD *))(v27 + 32))(v24); v29 = *(_QWORD *)(v27 + 64); *(_QWORD *)(v27 + 48) = *(_QWORD *)(v27 + 48) - v28 - 8; (*(void ( **)(long long, _QWORD *))(v27 + 16))(v29, v24); return 0LL; } *v24 = v16; v24[1] = v17; v24[2] = v18; v24[3] = v21; *(_DWORD *)v25 = 1; *(_QWORD *)(v25 + 16) = v24; if ( (_DWORD)v17 == -8 ) v26 = (long long *)(v16 + 16); else v26 = (long long *)(v16 + 40); *(_QWORD *)(v25 + 8) = *v26; *v26 = v25; *(_QWORD *)(v18 + 48) = v24; return v18; }
js_weakref_constructor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDI CMP EDX,0x3 JNZ 0x0013a38b LEA RSI,[0x1a1c40] JMP 0x0013a3ba LAB_0013a38b: MOV RBP,qword ptr [R8] MOV R13,qword ptr [R8 + 0x8] MOV qword ptr [RSP],RBP CMP R13D,-0x1 JZ 0x0013a3c8 CMP R13D,-0x8 JNZ 0x0013a3b3 MOV RAX,qword ptr [RSP] MOV RAX,qword ptr [RAX + 0x4] SHR RAX,0x3e CMP EAX,0x2 JNZ 0x0013a3c8 LAB_0013a3b3: LEA RSI,[0x1a27b2] LAB_0013a3ba: XOR EBX,EBX MOV RDI,R15 XOR EAX,EAX CALL 0x00122567 JMP 0x0013a3e0 LAB_0013a3c8: MOV RDI,R15 MOV ECX,0x3a CALL 0x00136d56 MOV R14,RDX CMP R14D,0x6 JNZ 0x0013a3fb LAB_0013a3de: XOR EBX,EBX LAB_0013a3e0: MOV R14D,0x6 LAB_0013a3e6: MOV RAX,RBX MOV RDX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013a3fb: MOV RBX,RAX MOV ESI,0x20 MOV RDI,R15 CALL 0x0010ede6 TEST RAX,RAX JNZ 0x0013a421 MOV RDI,qword ptr [R15 + 0x18] MOV RSI,RBX MOV RDX,R14 CALL 0x0011d8c6 JMP 0x0013a3de LAB_0013a421: MOV R12,RAX MOV ESI,0x18 MOV RDI,R15 CALL 0x0010ede6 TEST RAX,RAX JZ 0x0013a46d MOV qword ptr [R12],RBP MOV qword ptr [R12 + 0x8],R13 MOV qword ptr [R12 + 0x10],RBX MOV qword ptr [R12 + 0x18],R14 MOV dword ptr [RAX],0x1 MOV qword ptr [RAX + 0x10],R12 MOV qword ptr [RSP],RBP CMP R13D,-0x8 JZ 0x0013a4a8 CMP R13D,-0x1 JNZ 0x0013a4c3 MOV RCX,qword ptr [RSP] ADD RCX,0x28 JMP 0x0013a4b0 LAB_0013a46d: MOV RDI,qword ptr [R15 + 0x18] MOV RSI,RBX MOV RDX,R14 CALL 0x0011d8c6 MOV RBX,qword ptr [R15 + 0x18] DEC qword ptr [RBX + 0x28] MOV RDI,R12 CALL qword ptr [RBX + 0x20] MOV RCX,qword ptr [RBX + 0x30] MOV RDI,qword ptr [RBX + 0x40] SUB RCX,RAX ADD RCX,-0x8 MOV qword ptr [RBX + 0x30],RCX MOV RSI,R12 CALL qword ptr [RBX + 0x10] JMP 0x0013a3de LAB_0013a4a8: MOV RCX,qword ptr [RSP] ADD RCX,0x10 LAB_0013a4b0: MOV RDX,qword ptr [RCX] MOV qword ptr [RAX + 0x8],RDX MOV qword ptr [RCX],RAX MOV qword ptr [RBX + 0x30],R12 JMP 0x0013a3e6 LAB_0013a4c3: CALL 0x0010e090
int1 [16] js_weakref_constructor (long param_1,int8 param_2,int8 param_3,int8 param_4,long *param_5) { long lVar1; long lVar2; long *plVar3; int4 *puVar4; long lVar5; int8 *puVar6; char *pcVar7; int iVar8; int1 auVar9 [16]; if ((int)param_3 == 3) { pcVar7 = "constructor requires \'new\'"; } else { lVar1 = *param_5; lVar5 = param_5[1]; iVar8 = (int)lVar5; if ((iVar8 == -1) || ((iVar8 == -8 && ((uint)((ulong)*(int8 *)(lVar1 + 4) >> 0x3e) != 2))) ) { auVar9 = js_create_from_ctor(param_1,param_2,param_3,0x3a); lVar2 = auVar9._0_8_; if (auVar9._8_4_ != 6) { plVar3 = (long *)js_malloc(param_1,0x20); if (plVar3 == (long *)0x0) { JS_FreeValueRT(*(int8 *)(param_1 + 0x18),lVar2,auVar9._8_8_); } else { puVar4 = (int4 *)js_malloc(param_1,0x18); if (puVar4 != (int4 *)0x0) { *plVar3 = lVar1; plVar3[1] = lVar5; *(int1 (*) [16])(plVar3 + 2) = auVar9; *puVar4 = 1; *(long **)(puVar4 + 4) = plVar3; if (iVar8 == -8) { puVar6 = (int8 *)(lVar1 + 0x10); } else { if (iVar8 != -1) { /* WARNING: Subroutine does not return */ abort(); } puVar6 = (int8 *)(lVar1 + 0x28); } *(int8 *)(puVar4 + 2) = *puVar6; *puVar6 = puVar4; *(long **)(lVar2 + 0x30) = plVar3; return auVar9; } JS_FreeValueRT(*(int8 *)(param_1 + 0x18),lVar2,auVar9._8_8_); lVar1 = *(long *)(param_1 + 0x18); *(long *)(lVar1 + 0x28) = *(long *)(lVar1 + 0x28) + -1; lVar5 = (**(code **)(lVar1 + 0x20))(plVar3); *(long *)(lVar1 + 0x30) = (*(long *)(lVar1 + 0x30) - lVar5) + -8; (**(code **)(lVar1 + 0x10))(*(int8 *)(lVar1 + 0x40),plVar3); } } goto LAB_0013a3e0; } pcVar7 = "invalid target"; } JS_ThrowTypeError(param_1,pcVar7); LAB_0013a3e0: return ZEXT816(6) << 0x40; }
49,816
js_weakref_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_weakref_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { if (JS_IsUndefined(new_target)) return JS_ThrowTypeError(ctx, "constructor requires 'new'"); JSValue arg = argv[0]; if (!is_valid_weakref_target(arg)) return JS_ThrowTypeError(ctx, "invalid target"); // TODO(saghul): short-circuit if the refcount is 1? JSValue obj = js_create_from_ctor(ctx, new_target, JS_CLASS_WEAK_REF); if (JS_IsException(obj)) return JS_EXCEPTION; JSWeakRefData *wrd = js_malloc(ctx, sizeof(*wrd)); if (!wrd) { JS_FreeValue(ctx, obj); return JS_EXCEPTION; } JSWeakRefRecord *wr = js_malloc(ctx, sizeof(*wr)); if (!wr) { JS_FreeValue(ctx, obj); js_free(ctx, wrd); return JS_EXCEPTION; } wrd->target = arg; wrd->obj = obj; wr->kind = JS_WEAK_REF_KIND_WEAK_REF; wr->u.weak_ref_data = wrd; insert_weakref_record(arg, wr); JS_SetOpaqueInternal(obj, wrd); return obj; }
O2
c
js_weakref_constructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rbx movq %rdi, %r15 cmpl $0x3, %ebx jne 0x33490 leaq 0x556ef(%rip), %rsi # 0x88b7a jmp 0x3352a movq %rsi, %r14 movq (%r8), %r12 movq 0x8(%r8), %r13 movq %r12, %rdi movq %r13, %rsi callq 0x3d7f0 testl %eax, %eax je 0x33523 pushq $0x3a popq %rcx movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x3045a pushq $0x6 popq %r14 cmpl $0x6, %edx je 0x33567 movq %rax, %rbx movq %rdx, (%rsp) pushq $0x20 popq %rsi movq %r15, %rdi callq 0x17214 testq %rax, %rax je 0x3353c movq %rax, %rbp pushq $0x18 popq %rsi movq %r15, %rdi callq 0x17214 testq %rax, %rax je 0x3354d movq %r12, (%rbp) movq %r13, 0x8(%rbp) movq %rbx, 0x10(%rbp) movq (%rsp), %r14 movq %r14, 0x18(%rbp) movl $0x1, (%rax) movq %rbp, 0x10(%rax) movq %r12, %rdi movq %r13, %rsi movq %rax, %rdx callq 0x3dae3 movq %rbp, 0x30(%rbx) jmp 0x33569 leaq 0x561c2(%rip), %rsi # 0x896ec xorl %ebx, %ebx movq %r15, %rdi xorl %eax, %eax callq 0x1c64d pushq $0x6 popq %r14 jmp 0x33569 movq %r15, %rdi movq %rbx, %rsi movq (%rsp), %rdx callq 0x1801e jmp 0x33567 movq %r15, %rdi movq %rbx, %rsi movq (%rsp), %rdx callq 0x1801e movq %r15, %rdi movq %rbp, %rsi callq 0x1726e xorl %ebx, %ebx movq %rbx, %rax movq %r14, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_weakref_constructor: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdx mov r15, rdi cmp ebx, 3 jnz short loc_33490 lea rsi, aConstructorReq; "constructor requires 'new'" jmp loc_3352A loc_33490: mov r14, rsi mov r12, [r8] mov r13, [r8+8] mov rdi, r12 mov rsi, r13 call is_valid_weakref_target test eax, eax jz short loc_33523 push 3Ah ; ':' pop rcx mov rdi, r15 mov rsi, r14 mov rdx, rbx call js_create_from_ctor push 6 pop r14 cmp edx, 6 jz loc_33567 mov rbx, rax mov [rsp+38h+var_38], rdx push 20h ; ' ' pop rsi mov rdi, r15 call js_malloc test rax, rax jz short loc_3353C mov rbp, rax push 18h pop rsi mov rdi, r15 call js_malloc test rax, rax jz short loc_3354D mov [rbp+0], r12 mov [rbp+8], r13 mov [rbp+10h], rbx mov r14, [rsp+38h+var_38] mov [rbp+18h], r14 mov dword ptr [rax], 1 mov [rax+10h], rbp mov rdi, r12 mov rsi, r13 mov rdx, rax call insert_weakref_record mov [rbx+30h], rbp jmp short loc_33569 loc_33523: lea rsi, aInvalidTarget; "invalid target" loc_3352A: xor ebx, ebx mov rdi, r15 xor eax, eax call JS_ThrowTypeError push 6 pop r14 jmp short loc_33569 loc_3353C: mov rdi, r15 mov rsi, rbx mov rdx, [rsp+38h+var_38] call JS_FreeValue jmp short loc_33567 loc_3354D: mov rdi, r15 mov rsi, rbx mov rdx, [rsp+38h+var_38] call JS_FreeValue mov rdi, r15 mov rsi, rbp call js_free loc_33567: xor ebx, ebx loc_33569: mov rax, rbx mov rdx, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_weakref_constructor( long long a1, long long a2, long long a3, long long a4, _QWORD *a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { char v14; // al const char *v16; // rsi long long v17; // r12 long long v18; // r13 unsigned long long v19; // rax long long v20; // rdx long long v21; // rbx long long v22; // rax _QWORD *v23; // rbp long long v24; // rax char v26; // [rsp+0h] [rbp-38h] long long v27; // [rsp+0h] [rbp-38h] v26 = v14; if ( (_DWORD)a3 == 3 ) { v16 = "constructor requires 'new'"; LABEL_9: v21 = 0LL; JS_ThrowTypeError(a1, (long long)v16, a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v26); return v21; } v17 = *a5; v18 = a5[1]; if ( !(unsigned int)is_valid_weakref_target(*a5, v18) ) { v16 = "invalid target"; goto LABEL_9; } v19 = js_create_from_ctor(a1, a2, a3, 58); if ( (_DWORD)v20 == 6 ) return 0LL; v21 = v19; v27 = v20; v22 = js_malloc(a1, 32LL); if ( !v22 ) { JS_FreeValue(a1, v21, v27); return 0LL; } v23 = (_QWORD *)v22; v24 = js_malloc(a1, 24LL); if ( !v24 ) { JS_FreeValue(a1, v21, v27); js_free(a1, (long long)v23); return 0LL; } *v23 = v17; v23[1] = v18; v23[2] = v21; v23[3] = v27; *(_DWORD *)v24 = 1; *(_QWORD *)(v24 + 16) = v23; insert_weakref_record(v17, v18, v24); *(_QWORD *)(v21 + 48) = v23; return v21; }
js_weakref_constructor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDX MOV R15,RDI CMP EBX,0x3 JNZ 0x00133490 LEA RSI,[0x188b7a] JMP 0x0013352a LAB_00133490: MOV R14,RSI MOV R12,qword ptr [R8] MOV R13,qword ptr [R8 + 0x8] MOV RDI,R12 MOV RSI,R13 CALL 0x0013d7f0 TEST EAX,EAX JZ 0x00133523 PUSH 0x3a POP RCX MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0013045a PUSH 0x6 POP R14 CMP EDX,0x6 JZ 0x00133567 MOV RBX,RAX MOV qword ptr [RSP],RDX PUSH 0x20 POP RSI MOV RDI,R15 CALL 0x00117214 TEST RAX,RAX JZ 0x0013353c MOV RBP,RAX PUSH 0x18 POP RSI MOV RDI,R15 CALL 0x00117214 TEST RAX,RAX JZ 0x0013354d MOV qword ptr [RBP],R12 MOV qword ptr [RBP + 0x8],R13 MOV qword ptr [RBP + 0x10],RBX MOV R14,qword ptr [RSP] MOV qword ptr [RBP + 0x18],R14 MOV dword ptr [RAX],0x1 MOV qword ptr [RAX + 0x10],RBP MOV RDI,R12 MOV RSI,R13 MOV RDX,RAX CALL 0x0013dae3 MOV qword ptr [RBX + 0x30],RBP JMP 0x00133569 LAB_00133523: LEA RSI,[0x1896ec] LAB_0013352a: XOR EBX,EBX MOV RDI,R15 XOR EAX,EAX CALL 0x0011c64d PUSH 0x6 POP R14 JMP 0x00133569 LAB_0013353c: MOV RDI,R15 MOV RSI,RBX MOV RDX,qword ptr [RSP] CALL 0x0011801e JMP 0x00133567 LAB_0013354d: MOV RDI,R15 MOV RSI,RBX MOV RDX,qword ptr [RSP] CALL 0x0011801e MOV RDI,R15 MOV RSI,RBP CALL 0x0011726e LAB_00133567: XOR EBX,EBX LAB_00133569: MOV RAX,RBX MOV RDX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] js_weakref_constructor (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 *param_5) { int8 uVar1; int8 uVar2; int iVar3; long lVar4; int8 *puVar5; int4 *puVar6; char *pcVar7; int1 auVar8 [16]; if ((int)param_3 == 3) { pcVar7 = "constructor requires \'new\'"; } else { uVar1 = *param_5; uVar2 = param_5[1]; iVar3 = is_valid_weakref_target(uVar1,uVar2); if (iVar3 != 0) { auVar8 = js_create_from_ctor(param_1,param_2,param_3,0x3a); lVar4 = auVar8._0_8_; if (auVar8._8_4_ != 6) { puVar5 = (int8 *)js_malloc(param_1,0x20); if (puVar5 == (int8 *)0x0) { JS_FreeValue(param_1,lVar4,auVar8._8_8_); } else { puVar6 = (int4 *)js_malloc(param_1,0x18); if (puVar6 != (int4 *)0x0) { *puVar5 = uVar1; puVar5[1] = uVar2; *(int1 (*) [16])(puVar5 + 2) = auVar8; *puVar6 = 1; *(int8 **)(puVar6 + 4) = puVar5; insert_weakref_record(uVar1,uVar2,puVar6); *(int8 **)(lVar4 + 0x30) = puVar5; return auVar8; } JS_FreeValue(param_1,lVar4,auVar8._8_8_); js_free(param_1,puVar5); } } return ZEXT816(6) << 0x40; } pcVar7 = "invalid target"; } JS_ThrowTypeError(param_1,pcVar7); return ZEXT816(6) << 0x40; }
49,817
ma_init_dynamic_array
eloqsql/libmariadb/libmariadb/ma_array.c
my_bool ma_init_dynamic_array(DYNAMIC_ARRAY *array, uint element_size, uint init_alloc, uint alloc_increment CALLER_INFO_PROTO) { if (!alloc_increment) { alloc_increment=max((8192-MALLOC_OVERHEAD)/element_size,16); if (init_alloc > 8 && alloc_increment > init_alloc * 2) alloc_increment=init_alloc*2; } if (!init_alloc) init_alloc=alloc_increment; array->elements=0; array->max_element=init_alloc; array->alloc_increment=alloc_increment; array->size_of_element=element_size; if (!(array->buffer=(char*) malloc(element_size*init_alloc))) { array->max_element=0; return(TRUE); } return(FALSE); }
O0
c
ma_init_dynamic_array: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) jne 0x4a8f5 movl $0x1ff8, %eax # imm = 0x1FF8 xorl %edx, %edx divl -0x14(%rbp) cmpl $0x10, %eax jbe 0x4a8c9 movl $0x1ff8, %eax # imm = 0x1FF8 xorl %edx, %edx divl -0x14(%rbp) movl %eax, -0x20(%rbp) jmp 0x4a8d3 movl $0x10, %eax movl %eax, -0x20(%rbp) jmp 0x4a8d3 movl -0x20(%rbp), %eax movl %eax, -0x1c(%rbp) cmpl $0x8, -0x18(%rbp) jbe 0x4a8f3 movl -0x1c(%rbp), %eax movl -0x18(%rbp), %ecx shll %ecx cmpl %ecx, %eax jbe 0x4a8f3 movl -0x18(%rbp), %eax shll %eax movl %eax, -0x1c(%rbp) jmp 0x4a8f5 cmpl $0x0, -0x18(%rbp) jne 0x4a901 movl -0x1c(%rbp), %eax movl %eax, -0x18(%rbp) movq -0x10(%rbp), %rax movl $0x0, 0x8(%rax) movl -0x18(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0xc(%rax) movl -0x1c(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x10(%rax) movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x14(%rax) movl -0x14(%rbp), %eax imull -0x18(%rbp), %eax movl %eax, %eax movl %eax, %edi callq 0x135b0 movq -0x10(%rbp), %rcx movq %rax, (%rcx) cmpq $0x0, %rax jne 0x4a958 movq -0x10(%rbp), %rax movl $0x0, 0xc(%rax) movb $0x1, -0x1(%rbp) jmp 0x4a95c movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_init_dynamic_array: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_1C], ecx cmp [rbp+var_1C], 0 jnz short loc_4A8F5 mov eax, 1FF8h xor edx, edx div [rbp+var_14] cmp eax, 10h jbe short loc_4A8C9 mov eax, 1FF8h xor edx, edx div [rbp+var_14] mov [rbp+var_20], eax jmp short loc_4A8D3 loc_4A8C9: mov eax, 10h mov [rbp+var_20], eax jmp short $+2 loc_4A8D3: mov eax, [rbp+var_20] mov [rbp+var_1C], eax cmp [rbp+var_18], 8 jbe short loc_4A8F3 mov eax, [rbp+var_1C] mov ecx, [rbp+var_18] shl ecx, 1 cmp eax, ecx jbe short loc_4A8F3 mov eax, [rbp+var_18] shl eax, 1 mov [rbp+var_1C], eax loc_4A8F3: jmp short $+2 loc_4A8F5: cmp [rbp+var_18], 0 jnz short loc_4A901 mov eax, [rbp+var_1C] mov [rbp+var_18], eax loc_4A901: mov rax, [rbp+var_10] mov dword ptr [rax+8], 0 mov ecx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax+0Ch], ecx mov ecx, [rbp+var_1C] mov rax, [rbp+var_10] mov [rax+10h], ecx mov ecx, [rbp+var_14] mov rax, [rbp+var_10] mov [rax+14h], ecx mov eax, [rbp+var_14] imul eax, [rbp+var_18] mov eax, eax mov edi, eax call _malloc mov rcx, [rbp+var_10] mov [rcx], rax cmp rax, 0 jnz short loc_4A958 mov rax, [rbp+var_10] mov dword ptr [rax+0Ch], 0 mov [rbp+var_1], 1 jmp short loc_4A95C loc_4A958: mov [rbp+var_1], 0 loc_4A95C: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char ma_init_dynamic_array(long long a1, unsigned int a2, unsigned int a3, int a4) { long long v4; // rax unsigned int v6; // [rsp+0h] [rbp-20h] int v7; // [rsp+4h] [rbp-1Ch] unsigned int v8; // [rsp+8h] [rbp-18h] v8 = a3; v7 = a4; if ( !a4 ) { v6 = 0x1FF8 / a2 <= 0x10 ? 16 : 0x1FF8 / a2; v7 = v6; if ( a3 > 8 && v6 > 2 * a3 ) v7 = 2 * a3; } if ( !a3 ) v8 = v7; *(_DWORD *)(a1 + 8) = 0; *(_DWORD *)(a1 + 12) = v8; *(_DWORD *)(a1 + 16) = v7; *(_DWORD *)(a1 + 20) = a2; v4 = malloc(v8 * a2); *(_QWORD *)a1 = v4; if ( v4 ) return 0; *(_DWORD *)(a1 + 12) = 0; return 1; }
ma_init_dynamic_array: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV dword ptr [RBP + -0x1c],ECX CMP dword ptr [RBP + -0x1c],0x0 JNZ 0x0014a8f5 MOV EAX,0x1ff8 XOR EDX,EDX DIV dword ptr [RBP + -0x14] CMP EAX,0x10 JBE 0x0014a8c9 MOV EAX,0x1ff8 XOR EDX,EDX DIV dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x20],EAX JMP 0x0014a8d3 LAB_0014a8c9: MOV EAX,0x10 MOV dword ptr [RBP + -0x20],EAX JMP 0x0014a8d3 LAB_0014a8d3: MOV EAX,dword ptr [RBP + -0x20] MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x18],0x8 JBE 0x0014a8f3 MOV EAX,dword ptr [RBP + -0x1c] MOV ECX,dword ptr [RBP + -0x18] SHL ECX,0x1 CMP EAX,ECX JBE 0x0014a8f3 MOV EAX,dword ptr [RBP + -0x18] SHL EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX LAB_0014a8f3: JMP 0x0014a8f5 LAB_0014a8f5: CMP dword ptr [RBP + -0x18],0x0 JNZ 0x0014a901 MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x18],EAX LAB_0014a901: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x8],0x0 MOV ECX,dword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xc],ECX MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x10],ECX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x14],ECX MOV EAX,dword ptr [RBP + -0x14] IMUL EAX,dword ptr [RBP + -0x18] MOV EAX,EAX MOV EDI,EAX CALL 0x001135b0 MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX],RAX CMP RAX,0x0 JNZ 0x0014a958 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xc],0x0 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0014a95c LAB_0014a958: MOV byte ptr [RBP + -0x1],0x0 LAB_0014a95c: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
bool ma_init_dynamic_array(int8 *param_1,uint param_2,uint param_3,uint param_4) { void *pvVar1; uint local_28; uint local_24; uint local_20; local_24 = param_4; if (param_4 == 0) { if ((uint)(0x1ff8 / (ulong)param_2) < 0x11) { local_28 = 0x10; } else { local_28 = (uint)(0x1ff8 / (ulong)param_2); } local_24 = local_28; if ((8 < param_3) && (param_3 * 2 < local_28)) { local_24 = param_3 << 1; } } local_20 = param_3; if (param_3 == 0) { local_20 = local_24; } *(int4 *)(param_1 + 1) = 0; *(uint *)((long)param_1 + 0xc) = local_20; *(uint *)(param_1 + 2) = local_24; *(uint *)((long)param_1 + 0x14) = param_2; pvVar1 = malloc((ulong)(param_2 * local_20)); *param_1 = pvVar1; if (pvVar1 == (void *)0x0) { *(int4 *)((long)param_1 + 0xc) = 0; } return pvVar1 == (void *)0x0; }
49,818
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_array(unsigned long)
monkey531[P]llama/common/json.hpp
bool start_array(std::size_t len) { const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded); keep_stack.push_back(keep); auto val = handle_value(BasicJsonType::value_t::array, true); ref_stack.push_back(val.second); // check array limit if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back())); } return true; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_array(unsigned long): subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq 0xa0(%rsp), %rdi movq %rdi, 0x20(%rsp) movq %rdi, %rax addq $0x80, %rax movq %rax, 0x18(%rsp) addq $0x8, %rdi callq 0xab3d0 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rcx movl %eax, %esi addq $0xa8, %rcx movl $0x2, %edx callq 0xab370 movq 0x20(%rsp), %rdi andb $0x1, %al movb %al, 0x97(%rsp) addq $0x20, %rdi movb 0x97(%rsp), %al andb $0x1, %al movzbl %al, %esi callq 0xa8020 movq 0x20(%rsp), %rdi movb $0x2, 0x7f(%rsp) leaq 0x7f(%rsp), %rsi movl $0x1, %edx callq 0xab3f0 movq 0x20(%rsp), %rdi movb %al, 0x80(%rsp) movq %rdx, 0x88(%rsp) addq $0x8, %rdi leaq 0x80(%rsp), %rsi addq $0x8, %rsi callq 0xab950 movq 0x20(%rsp), %rdi addq $0x8, %rdi callq 0xab9c0 cmpq $0x0, (%rax) je 0xaab95 xorl %eax, %eax cmpq $-0x1, 0x98(%rsp) movb %al, 0x17(%rsp) je 0xaaaab movq 0x20(%rsp), %rdi movq 0x98(%rsp), %rax movq %rax, 0x8(%rsp) addq $0x8, %rdi callq 0xab9c0 movq (%rax), %rdi callq 0xaba00 movq %rax, %rcx movq 0x8(%rsp), %rax cmpq %rcx, %rax seta %al movb %al, 0x17(%rsp) movb 0x17(%rsp), %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xaaabc jmp 0xaab95 movb $0x1, 0x2b(%rsp) movl $0x20, %edi callq 0x59660 movq %rax, (%rsp) movq 0x98(%rsp), %rsi leaq 0x38(%rsp), %rdi callq 0xabce0 jmp 0xaaae3 leaq 0x160826(%rip), %rsi # 0x20b310 leaq 0x58(%rsp), %rdi leaq 0x38(%rsp), %rdx callq 0xb49a0 jmp 0xaaafb movq 0x20(%rsp), %rdi addq $0x8, %rdi callq 0xab9c0 movq (%rsp), %rdi movq (%rax), %rcx movl $0x198, %esi # imm = 0x198 leaq 0x58(%rsp), %rdx callq 0xaba80 jmp 0xaab21 movq (%rsp), %rdi movb $0x0, 0x2b(%rsp) leaq 0x1f31d7(%rip), %rsi # 0x29dd08 leaq 0x558(%rip), %rdx # 0xab090 callq 0x59ac0 jmp 0xaabab movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xaab81 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xaab77 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) leaq 0x58(%rsp), %rdi callq 0x5a4d8 leaq 0x38(%rsp), %rdi callq 0x5a4d8 testb $0x1, 0x2b(%rsp) jne 0xaab8a jmp 0xaab93 movq (%rsp), %rdi callq 0x59f20 jmp 0xaaba1 movb $0x1, %al andb $0x1, %al addq $0xa8, %rsp retq movq 0x30(%rsp), %rdi callq 0x59b80 nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11start_arrayEm: sub rsp, 0A8h mov qword ptr [rsp+0A8h+var_8], rdi mov [rsp+0A8h+var_10], rsi mov rdi, qword ptr [rsp+0A8h+var_8] mov qword ptr [rsp+0A8h+var_88], rdi; int mov rax, rdi add rax, 80h mov qword ptr [rsp+0A8h+var_90], rax; char add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void) mov rdi, qword ptr [rsp+0A8h+var_90] mov rcx, qword ptr [rsp+0A8h+var_88] mov esi, eax add rcx, 0A8h mov edx, 2 call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) mov rdi, qword ptr [rsp+0A8h+var_88] and al, 1 mov [rsp+0A8h+var_11], al add rdi, 20h ; ' ' mov al, [rsp+0A8h+var_11] and al, 1 movzx esi, al call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) mov rdi, qword ptr [rsp+0A8h+var_88] mov [rsp+0A8h+var_29], 2 lea rsi, [rsp+0A8h+var_29] mov edx, 1 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEESt4pairIbPSF_EOT_b; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&,bool) mov rdi, qword ptr [rsp+0A8h+var_88] mov byte ptr [rsp+0A8h+var_28], al; int mov qword ptr [rsp+0A8h+var_20], rdx; int add rdi, 8 lea rsi, [rsp+0A8h+var_28] add rsi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backERKSE_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> * const&) mov rdi, qword ptr [rsp+0A8h+var_88] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) cmp qword ptr [rax], 0 jz loc_AAB95 xor eax, eax cmp [rsp+0A8h+var_10], 0FFFFFFFFFFFFFFFFh mov [rsp+0A8h+var_91], al jz short loc_AAAAB mov rdi, qword ptr [rsp+0A8h+var_88] mov rax, [rsp+0A8h+var_10] mov qword ptr [rsp+0A8h+var_A0], rax; int add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::max_size(void) mov rcx, rax mov rax, qword ptr [rsp+0A8h+var_A0] cmp rax, rcx setnbe al mov [rsp+0A8h+var_91], al loc_AAAAB: mov al, [rsp+0A8h+var_91] xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_AAABC jmp loc_AAB95 loc_AAABC: mov [rsp+0A8h+var_7D], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+0A8h+var_A8], rax; int mov rsi, [rsp+0A8h+var_10]; unsigned __int64 lea rdi, [rsp+0A8h+var_70]; this call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) jmp short $+2 loc_AAAE3: lea rsi, aExcessiveArray; "excessive array size: " lea rdi, [rsp+0A8h+var_50] lea rdx, [rsp+0A8h+var_70] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA23_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>(char const(&)[23],std::string &&) jmp short $+2 loc_AAAFB: mov rdi, qword ptr [rsp+0A8h+var_88] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rsp+0A8h+var_A8]; int mov rcx, [rax] mov esi, 198h lea rdx, [rsp+0A8h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_AAB21: mov rdi, [rsp+0A8h+var_A8]; void * mov [rsp+0A8h+var_7D], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_AABAB mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_AAB81 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_AAB77 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_AAB77: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_AAB81: test [rsp+arg_23], 1 jnz short loc_AAB8A jmp short loc_AAB93 loc_AAB8A: mov rdi, [rsp+0]; void * call ___cxa_free_exception loc_AAB93: jmp short loc_AABA1 loc_AAB95: mov al, 1 and al, 1 add rsp, 0A8h retn loc_AABA1: mov rdi, [rsp+arg_28] call __Unwind_Resume loc_AABAB: nop dword ptr [rax+rax+00h]
start_array: SUB RSP,0xa8 MOV qword ptr [RSP + 0xa0],RDI MOV qword ptr [RSP + 0x98],RSI MOV RDI,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x20],RDI MOV RAX,RDI ADD RAX,0x80 MOV qword ptr [RSP + 0x18],RAX ADD RDI,0x8 CALL 0x001ab3d0 MOV RDI,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x20] MOV ESI,EAX ADD RCX,0xa8 MOV EDX,0x2 CALL 0x001ab370 MOV RDI,qword ptr [RSP + 0x20] AND AL,0x1 MOV byte ptr [RSP + 0x97],AL ADD RDI,0x20 MOV AL,byte ptr [RSP + 0x97] AND AL,0x1 MOVZX ESI,AL CALL 0x001a8020 MOV RDI,qword ptr [RSP + 0x20] MOV byte ptr [RSP + 0x7f],0x2 LEA RSI,[RSP + 0x7f] MOV EDX,0x1 CALL 0x001ab3f0 MOV RDI,qword ptr [RSP + 0x20] MOV byte ptr [RSP + 0x80],AL MOV qword ptr [RSP + 0x88],RDX ADD RDI,0x8 LEA RSI,[RSP + 0x80] ADD RSI,0x8 CALL 0x001ab950 MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x8 CALL 0x001ab9c0 CMP qword ptr [RAX],0x0 JZ 0x001aab95 XOR EAX,EAX CMP qword ptr [RSP + 0x98],-0x1 MOV byte ptr [RSP + 0x17],AL JZ 0x001aaaab MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x8],RAX ADD RDI,0x8 CALL 0x001ab9c0 MOV RDI,qword ptr [RAX] CALL 0x001aba00 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] CMP RAX,RCX SETA AL MOV byte ptr [RSP + 0x17],AL LAB_001aaaab: MOV AL,byte ptr [RSP + 0x17] XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001aaabc JMP 0x001aab95 LAB_001aaabc: MOV byte ptr [RSP + 0x2b],0x1 MOV EDI,0x20 CALL 0x00159660 MOV qword ptr [RSP],RAX MOV RSI,qword ptr [RSP + 0x98] LAB_001aaad7: LEA RDI,[RSP + 0x38] CALL 0x001abce0 JMP 0x001aaae3 LAB_001aaae3: LEA RSI,[0x30b310] LEA RDI,[RSP + 0x58] LEA RDX,[RSP + 0x38] CALL 0x001b49a0 JMP 0x001aaafb LAB_001aaafb: MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x8 CALL 0x001ab9c0 MOV RDI,qword ptr [RSP] MOV RCX,qword ptr [RAX] LAB_001aab10: MOV ESI,0x198 LEA RDX,[RSP + 0x58] CALL 0x001aba80 JMP 0x001aab21 LAB_001aab21: MOV RDI,qword ptr [RSP] MOV byte ptr [RSP + 0x2b],0x0 LEA RSI,[0x39dd08] LEA RDX,[0x1ab090] CALL 0x00159ac0 LAB_001aab95: MOV AL,0x1 AND AL,0x1 ADD RSP,0xa8 RET
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::start_array(unsigned long) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::start_array(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,ulong param_1) { bool bVar1; ulong uVar2; byte bVar3; int4 uVar4; long *plVar5; int8 *puVar6; ulong uVar7; int8 uVar8; basic_json *extraout_RDX; __cxx11 local_70 [32]; detail local_50 [39]; value_t local_29; int1 local_28; basic_json *local_20; int1 local_11; ulong local_10; json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *local_8; local_10 = param_1; local_8 = this; uVar4 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); bVar3 = std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> *)(this + 0x80),uVar4,2,this + 0xa8); local_11 = bVar3 & 1; std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),(bool)local_11); local_29 = 2; local_28 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,&local_29,true); local_20 = extraout_RDX; std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::push_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),&local_20); plVar5 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar2 = local_10; if (*plVar5 != 0) { bVar1 = false; if (local_10 != 0xffffffffffffffff) { puVar6 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar7 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::max_size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar6); bVar1 = uVar7 < uVar2; } if (bVar1) { uVar8 = __cxa_allocate_exception(0x20); /* try { // try from 001aaad7 to 001aaae0 has its CatchHandler @ 001aab3f */ std::__cxx11::to_string(local_70,local_10); /* try { // try from 001aaae3 to 001aaaf8 has its CatchHandler @ 001aab4f */ concat<std::__cxx11::string,char_const(&)[23],std::__cxx11::string> (local_50,"excessive array size: ",(string *)local_70); puVar6 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); /* try { // try from 001aab10 to 001aab3c has its CatchHandler @ 001aab5f */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar8,0x198,local_50,*puVar6); /* WARNING: Subroutine does not return */ __cxa_throw(uVar8,&out_of_range::typeinfo,out_of_range::~out_of_range); } } return 1; }
49,819
LefDefParser::lefiLayer::minSizeLength(int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp
double lefiLayer::minSizeLength(int index) const { char msg[160]; if (index < 0 || index > numMinSize_) { sprintf(msg, "ERROR (LEFPARS-1301): The index number %d given for the layer MINSIZE is invalid.\nValid index is from 0 to %d\n", index, numMinSize_); lefiError(0, 1301, msg); return 0; } return minSizeLength_[index]; }
O3
cpp
LefDefParser::lefiLayer::minSizeLength(int) const: movl %esi, %edx testl %esi, %esi sets %al movl 0x528(%rdi), %ecx cmpl %esi, %ecx setl %sil orb %al, %sil cmpb $0x1, %sil jne 0x28f21 pushq %rbx subq $0xa0, %rsp leaq 0x33e5b(%rip), %rsi # 0x5cd54 movq %rsp, %rbx movq %rbx, %rdi xorl %eax, %eax callq 0x2050 xorl %edi, %edi movl $0x515, %esi # imm = 0x515 movq %rbx, %rdx callq 0x33d78 xorps %xmm0, %xmm0 addq $0xa0, %rsp popq %rbx retq movq 0x538(%rdi), %rax movl %edx, %ecx movsd (%rax,%rcx,8), %xmm0 retq
_ZNK12LefDefParser9lefiLayer13minSizeLengthEi: mov edx, esi test esi, esi sets al mov ecx, [rdi+528h] cmp ecx, esi setl sil or sil, al cmp sil, 1 jnz short loc_28F21 push rbx sub rsp, 0A0h lea rsi, aErrorLefpars13_18; "ERROR (LEFPARS-1301): The index number "... mov rbx, rsp mov rdi, rbx xor eax, eax call _sprintf xor edi, edi; this mov esi, 515h; int mov rdx, rbx; int call _ZN12LefDefParser9lefiErrorEiiPKc; LefDefParser::lefiError(int,int,char const*) xorps xmm0, xmm0 add rsp, 0A0h pop rbx retn loc_28F21: mov rax, [rdi+538h] mov ecx, edx movsd xmm0, qword ptr [rax+rcx*8] retn
double LefDefParser::lefiLayer::minSizeLength(LefDefParser::lefiLayer *this, int a2) { const char *v2; // rcx _BYTE v4[168]; // [rsp-A8h] [rbp-A8h] BYREF if ( a2 >= 0 && *((_DWORD *)this + 330) >= a2 ) return *(double *)(*((_QWORD *)this + 167) + 8LL * (unsigned int)a2); sprintf( v4, "ERROR (LEFPARS-1301): The index number %d given for the layer MINSIZE is invalid.\nValid index is from 0 to %d\n", (unsigned int)a2); LefDefParser::lefiError(0LL, 1301, (int)v4, v2); return 0.0; }
minSizeLength: MOV EDX,ESI TEST ESI,ESI SETS AL MOV ECX,dword ptr [RDI + 0x528] CMP ECX,ESI SETL SIL OR SIL,AL CMP SIL,0x1 JNZ 0x00128f21 PUSH RBX SUB RSP,0xa0 LEA RSI,[0x15cd54] MOV RBX,RSP MOV RDI,RBX XOR EAX,EAX CALL 0x00102050 XOR EDI,EDI MOV ESI,0x515 MOV RDX,RBX CALL 0x00133d78 XORPS XMM0,XMM0 ADD RSP,0xa0 POP RBX RET LAB_00128f21: MOV RAX,qword ptr [RDI + 0x538] MOV ECX,EDX MOVSD XMM0,qword ptr [RAX + RCX*0x8] RET
/* LefDefParser::lefiLayer::minSizeLength(int) const */ int8 __thiscall LefDefParser::lefiLayer::minSizeLength(lefiLayer *this,int param_1) { char acStack_a8 [160]; if (*(int *)(this + 0x528) < param_1 || param_1 < 0) { sprintf(acStack_a8, "ERROR (LEFPARS-1301): The index number %d given for the layer MINSIZE is invalid.\nValid index is from 0 to %d\n" ); lefiError(0,0x515,acStack_a8); return 0; } return *(int8 *)(*(long *)(this + 0x538) + (ulong)(uint)param_1 * 8); }
49,820
js_regexp_string_iterator_mark
bluesky950520[P]quickjs/quickjs.c
static void js_regexp_string_iterator_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func) { JSObject *p = JS_VALUE_GET_OBJ(val); JSRegExpStringIteratorData *it = p->u.regexp_string_iterator_data; if (it) { JS_MarkValue(rt, it->iterating_regexp, mark_func); JS_MarkValue(rt, it->iterated_string, mark_func); } }
O1
c
js_regexp_string_iterator_mark: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq 0x30(%rsi), %r15 testq %r15, %r15 je 0x3b358 movq %rcx, %rbx movq %rdi, %r14 movl $0xfffffffe, %r12d # imm = 0xFFFFFFFE movsd (%r15), %xmm0 movl 0x8(%r15), %eax movsd %xmm0, (%rsp) andl $-0x2, %eax cmpl %r12d, %eax jne 0x3b338 movq (%rsp), %rsi movq %r14, %rdi callq *%rbx movsd 0x10(%r15), %xmm0 movl 0x18(%r15), %eax movsd %xmm0, (%rsp) andl $-0x2, %eax cmpl %r12d, %eax jne 0x3b358 movq (%rsp), %rsi movq %r14, %rdi callq *%rbx addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
js_regexp_string_iterator_mark: push r15 push r14 push r12 push rbx push rax mov r15, [rsi+30h] test r15, r15 jz short loc_3B358 mov rbx, rcx mov r14, rdi mov r12d, 0FFFFFFFEh movsd xmm0, qword ptr [r15] mov eax, [r15+8] movsd [rsp+28h+var_28], xmm0 and eax, 0FFFFFFFEh cmp eax, r12d jnz short loc_3B338 mov rsi, [rsp+28h+var_28] mov rdi, r14 call rbx loc_3B338: movsd xmm0, qword ptr [r15+10h] mov eax, [r15+18h] movsd [rsp+28h+var_28], xmm0 and eax, 0FFFFFFFEh cmp eax, r12d jnz short loc_3B358 mov rsi, [rsp+28h+var_28] mov rdi, r14 call rbx loc_3B358: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long js_regexp_string_iterator_mark( long long a1, long long a2, long long a3, void ( *a4)(long long, _QWORD)) { long long v4; // r15 long long result; // rax v4 = *(_QWORD *)(a2 + 48); if ( v4 ) { if ( (*(_DWORD *)(v4 + 8) & 0xFFFFFFFE) == 0xFFFFFFFE ) a4(a1, *(_QWORD *)v4); result = *(_DWORD *)(v4 + 24) & 0xFFFFFFFE; if ( (_DWORD)result == -2 ) return ((long long ( *)(long long, _QWORD))a4)(a1, *(_QWORD *)(v4 + 16)); } return result; }
js_regexp_string_iterator_mark: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R15,qword ptr [RSI + 0x30] TEST R15,R15 JZ 0x0013b358 MOV RBX,RCX MOV R14,RDI MOV R12D,0xfffffffe MOVSD XMM0,qword ptr [R15] MOV EAX,dword ptr [R15 + 0x8] MOVSD qword ptr [RSP],XMM0 AND EAX,0xfffffffe CMP EAX,R12D JNZ 0x0013b338 MOV RSI,qword ptr [RSP] MOV RDI,R14 CALL RBX LAB_0013b338: MOVSD XMM0,qword ptr [R15 + 0x10] MOV EAX,dword ptr [R15 + 0x18] MOVSD qword ptr [RSP],XMM0 AND EAX,0xfffffffe CMP EAX,R12D JNZ 0x0013b358 MOV RSI,qword ptr [RSP] MOV RDI,R14 CALL RBX LAB_0013b358: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
void js_regexp_string_iterator_mark (int8 param_1,long param_2,int8 param_3,code *param_4) { int8 *puVar1; puVar1 = *(int8 **)(param_2 + 0x30); if (puVar1 != (int8 *)0x0) { if ((*(uint *)(puVar1 + 1) & 0xfffffffe) == 0xfffffffe) { (*param_4)(param_1,*puVar1); } if ((*(uint *)(puVar1 + 3) & 0xfffffffe) == 0xfffffffe) { (*param_4)(param_1,puVar1[2]); } } return; }
49,821
js_regexp_string_iterator_mark
bluesky950520[P]quickjs/quickjs.c
static void js_regexp_string_iterator_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func) { JSObject *p = JS_VALUE_GET_OBJ(val); JSRegExpStringIteratorData *it = p->u.regexp_string_iterator_data; if (it) { JS_MarkValue(rt, it->iterating_regexp, mark_func); JS_MarkValue(rt, it->iterated_string, mark_func); } }
O2
c
js_regexp_string_iterator_mark: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq 0x30(%rsi), %r14 testq %r14, %r14 je 0x34170 movq %rdi, %rbx movl $0xfffffffe, %r15d # imm = 0xFFFFFFFE movl 0x8(%r14), %eax andl $-0x2, %eax cmpl %r15d, %eax jne 0x34150 movq (%r14), %rsi movq %rbx, %rdi movq %rcx, %r12 callq *%rcx movq %r12, %rcx movl 0x18(%r14), %eax andl $-0x2, %eax cmpl %r15d, %eax jne 0x34170 movq 0x10(%r14), %rsi movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmpq *%rcx addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
js_regexp_string_iterator_mark: push r15 push r14 push r12 push rbx push rax mov r14, [rsi+30h] test r14, r14 jz short loc_34170 mov rbx, rdi mov r15d, 0FFFFFFFEh mov eax, [r14+8] and eax, 0FFFFFFFEh cmp eax, r15d jnz short loc_34150 mov rsi, [r14] mov rdi, rbx mov r12, rcx call rcx mov rcx, r12 loc_34150: mov eax, [r14+18h] and eax, 0FFFFFFFEh cmp eax, r15d jnz short loc_34170 mov rsi, [r14+10h] mov rdi, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp rcx loc_34170: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long js_regexp_string_iterator_mark( long long a1, long long a2, long long a3, void ( *a4)(_QWORD, _QWORD)) { long long v4; // r14 void ( *v5)(_QWORD, _QWORD); // r12 long long result; // rax v4 = *(_QWORD *)(a2 + 48); if ( v4 ) { if ( (*(_DWORD *)(v4 + 8) & 0xFFFFFFFE) == 0xFFFFFFFE ) { v5 = a4; a4(a1, *(_QWORD *)v4); a4 = v5; } result = *(_DWORD *)(v4 + 24) & 0xFFFFFFFE; if ( (_DWORD)result == -2 ) return ((long long ( *)(long long, _QWORD))a4)(a1, *(_QWORD *)(v4 + 16)); } return result; }
js_regexp_string_iterator_mark: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,qword ptr [RSI + 0x30] TEST R14,R14 JZ 0x00134170 MOV RBX,RDI MOV R15D,0xfffffffe MOV EAX,dword ptr [R14 + 0x8] AND EAX,0xfffffffe CMP EAX,R15D JNZ 0x00134150 MOV RSI,qword ptr [R14] MOV RDI,RBX MOV R12,RCX CALL RCX MOV RCX,R12 LAB_00134150: MOV EAX,dword ptr [R14 + 0x18] AND EAX,0xfffffffe CMP EAX,R15D JNZ 0x00134170 MOV RSI,qword ptr [R14 + 0x10] MOV RDI,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP RCX LAB_00134170: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
void js_regexp_string_iterator_mark (int8 param_1,long param_2,int8 param_3,code *UNRECOVERED_JUMPTABLE) { int8 *puVar1; int8 extraout_RDX; puVar1 = *(int8 **)(param_2 + 0x30); if (puVar1 != (int8 *)0x0) { if ((*(uint *)(puVar1 + 1) & 0xfffffffe) == 0xfffffffe) { (*UNRECOVERED_JUMPTABLE)(param_1,*puVar1); param_3 = extraout_RDX; } if ((*(uint *)(puVar1 + 3) & 0xfffffffe) == 0xfffffffe) { /* WARNING: Could not recover jumptable at 0x0013416e. Too many branches */ /* WARNING: Treating indirect jump as call */ (*UNRECOVERED_JUMPTABLE)(param_1,puVar1[2],param_3,UNRECOVERED_JUMPTABLE); return; } } return; }
49,822
cs_leave
eloqsql/strings/ctype.c
static int cs_leave(MY_XML_PARSER *st,const char *attr, size_t len) { struct my_cs_file_info *i= (struct my_cs_file_info *)st->user_data; const struct my_cs_file_section_st *s= cs_file_sec(attr,len); int state= s ? s->state : 0; int rc; switch(state){ case _CS_COLLATION: if (i->tailoring_length) i->cs.tailoring= i->tailoring; rc= i->loader->add_collation ? i->loader->add_collation(&i->cs) : MY_XML_OK; break; /* Rules: Logical Reset Positions */ case _CS_RESET_FIRST_NON_IGNORABLE: rc= tailoring_append(st, "[first non-ignorable]", 0, NULL); break; case _CS_RESET_LAST_NON_IGNORABLE: rc= tailoring_append(st, "[last non-ignorable]", 0, NULL); break; case _CS_RESET_FIRST_PRIMARY_IGNORABLE: rc= tailoring_append(st, "[first primary ignorable]", 0, NULL); break; case _CS_RESET_LAST_PRIMARY_IGNORABLE: rc= tailoring_append(st, "[last primary ignorable]", 0, NULL); break; case _CS_RESET_FIRST_SECONDARY_IGNORABLE: rc= tailoring_append(st, "[first secondary ignorable]", 0, NULL); break; case _CS_RESET_LAST_SECONDARY_IGNORABLE: rc= tailoring_append(st, "[last secondary ignorable]", 0, NULL); break; case _CS_RESET_FIRST_TERTIARY_IGNORABLE: rc= tailoring_append(st, "[first tertiary ignorable]", 0, NULL); break; case _CS_RESET_LAST_TERTIARY_IGNORABLE: rc= tailoring_append(st, "[last tertiary ignorable]", 0, NULL); break; case _CS_RESET_FIRST_TRAILING: rc= tailoring_append(st, "[first trailing]", 0, NULL); break; case _CS_RESET_LAST_TRAILING: rc= tailoring_append(st, "[last trailing]", 0, NULL); break; case _CS_RESET_FIRST_VARIABLE: rc= tailoring_append(st, "[first variable]", 0, NULL); break; case _CS_RESET_LAST_VARIABLE: rc= tailoring_append(st, "[last variable]", 0, NULL); break; default: rc=MY_XML_OK; } return rc; }
O3
c
cs_leave: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq 0x140(%rdi), %rbx leaq 0x2b1bc0(%rip), %r13 # 0x383220 leaq 0xa9fa(%rip), %r12 # 0xdc061 movq %r15, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x291d0 testl %eax, %eax jne 0xd1680 cmpb $0x0, (%r12,%r14) je 0xd169e movq 0x18(%r13), %r12 addq $0x10, %r13 testq %r12, %r12 jne 0xd1667 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl (%r13), %ecx leal -0x191(%rcx), %eax cmpl $0xb, %eax ja 0xd16c9 leaq 0x28a4a8(%rip), %rcx # 0x35bb5c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0xd5e1(%rip), %rsi # 0xdeca5 jmp 0xd1774 cmpl $0x9, %ecx jne 0xd168d cmpq $0x0, 0x690(%rbx) je 0xd16e6 movq 0x688(%rbx), %rax movq %rax, 0x718(%rbx) movq 0x7a8(%rbx), %rax movq 0xa8(%rax), %rax testq %rax, %rax je 0xd168d addq $0x6e0, %rbx # imm = 0x6E0 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmpq *%rax leaq 0xd576(%rip), %rsi # 0xdec90 jmp 0xd1774 leaq 0xd5ec(%rip), %rsi # 0xded0f jmp 0xd1774 leaq 0xd64a(%rip), %rsi # 0xded76 jmp 0xd1774 leaq 0xd5a3(%rip), %rsi # 0xdecd8 jmp 0xd1774 leaq 0xd5b6(%rip), %rsi # 0xdecf4 jmp 0xd1774 leaq 0xd60e(%rip), %rsi # 0xded55 jmp 0xd1774 leaq 0xd56f(%rip), %rsi # 0xdecbf jmp 0xd1774 leaq 0xd5d1(%rip), %rsi # 0xded2a jmp 0xd1774 leaq 0xd5e2(%rip), %rsi # 0xded44 jmp 0xd1774 leaq 0xd50f(%rip), %rsi # 0xdec7a jmp 0xd1774 leaq 0xd5f1(%rip), %rsi # 0xded65 movq %rbx, %rdi xorl %edx, %edx xorl %ecx, %ecx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xd1fc4
cs_leave: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdx mov r15, rsi mov rbx, [rdi+140h] lea r13, sec lea r12, aIndexXml+6; "xml" loc_D1667: mov rdi, r15 mov rsi, r12 mov rdx, r14 call _strncmp test eax, eax jnz short loc_D1680 cmp byte ptr [r12+r14], 0 jz short loc_D169E loc_D1680: mov r12, [r13+18h] add r13, 10h test r12, r12 jnz short loc_D1667 loc_D168D: xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_D169E: mov ecx, [r13+0] lea eax, [rcx-191h]; switch 12 cases cmp eax, 0Bh ja short def_D16BB; jumptable 00000000000D16BB default case lea rcx, jpt_D16BB movsxd rax, ds:(jpt_D16BB - 35BB5Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_D16BD: lea rsi, aFirstPrimaryIg; jumptable 00000000000D16BB case 401 jmp loc_D1774 def_D16BB: cmp ecx, 9; jumptable 00000000000D16BB default case jnz short loc_D168D cmp qword ptr [rbx+690h], 0 jz short loc_D16E6 mov rax, [rbx+688h] mov [rbx+718h], rax loc_D16E6: mov rax, [rbx+7A8h] mov rax, [rax+0A8h] test rax, rax jz short loc_D168D add rbx, 6E0h mov rdi, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp rax loc_D1713: lea rsi, aLastNonIgnorab; jumptable 00000000000D16BB case 412 jmp short loc_D1774 loc_D171C: lea rsi, aFirstTertiaryI; jumptable 00000000000D16BB case 405 jmp short loc_D1774 loc_D1725: lea rsi, aLastVariable; jumptable 00000000000D16BB case 410 jmp short loc_D1774 loc_D172E: lea rsi, aFirstSecondary; jumptable 00000000000D16BB case 403 jmp short loc_D1774 loc_D1737: lea rsi, aLastSecondaryI; jumptable 00000000000D16BB case 404 jmp short loc_D1774 loc_D1740: lea rsi, aLastTrailing; jumptable 00000000000D16BB case 408 jmp short loc_D1774 loc_D1749: lea rsi, aLastPrimaryIgn; jumptable 00000000000D16BB case 402 jmp short loc_D1774 loc_D1752: lea rsi, aLastTertiaryIg; jumptable 00000000000D16BB case 406 jmp short loc_D1774 loc_D175B: lea rsi, aFirstTrailing; jumptable 00000000000D16BB case 407 jmp short loc_D1774 loc_D1764: lea rsi, aFirstNonIgnora; jumptable 00000000000D16BB case 411 jmp short loc_D1774 loc_D176D: lea rsi, aFirstVariable; jumptable 00000000000D16BB case 409 loc_D1774: mov rdi, rbx xor edx, edx xor ecx, ecx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp tailoring_append
long long cs_leave(long long a1, long long a2, long long a3) { _QWORD *v4; // rbx char *v5; // r13 char *v6; // r12 long long result; // rax long long ( *v8)(_QWORD *); // rax v4 = *(_QWORD **)(a1 + 320); v5 = (char *)&sec; v6 = "xml"; while ( (unsigned int)strncmp(a2, v6, a3) || v6[a3] ) { v6 = (char *)*((_QWORD *)v5 + 3); v5 += 16; if ( !v6 ) return 0LL; } switch ( *(_DWORD *)v5 ) { case 0x191: result = tailoring_append(v4, "[first primary ignorable]", 0LL, 0LL); break; case 0x192: result = tailoring_append(v4, "[last primary ignorable]", 0LL, 0LL); break; case 0x193: result = tailoring_append(v4, "[first secondary ignorable]", 0LL, 0LL); break; case 0x194: result = tailoring_append(v4, "[last secondary ignorable]", 0LL, 0LL); break; case 0x195: result = tailoring_append(v4, "[first tertiary ignorable]", 0LL, 0LL); break; case 0x196: result = tailoring_append(v4, "[last tertiary ignorable]", 0LL, 0LL); break; case 0x197: result = tailoring_append(v4, "[first trailing]", 0LL, 0LL); break; case 0x198: result = tailoring_append(v4, "[last trailing]", 0LL, 0LL); break; case 0x199: result = tailoring_append(v4, "[first variable]", 0LL, 0LL); break; case 0x19A: result = tailoring_append(v4, "[last variable]", 0LL, 0LL); break; case 0x19B: result = tailoring_append(v4, "[first non-ignorable]", 0LL, 0LL); break; case 0x19C: result = tailoring_append(v4, "[last non-ignorable]", 0LL, 0LL); break; default: if ( *(_DWORD *)v5 != 9 ) return 0LL; if ( v4[210] ) v4[227] = v4[209]; v8 = *(long long ( **)(_QWORD *))(v4[245] + 168LL); if ( !v8 ) return 0LL; result = v8(v4 + 220); break; } return result; }
cs_leave: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV R15,RSI MOV RBX,qword ptr [RDI + 0x140] LEA R13,[0x483220] LEA R12,[0x1dc061] LAB_001d1667: MOV RDI,R15 MOV RSI,R12 MOV RDX,R14 CALL 0x001291d0 TEST EAX,EAX JNZ 0x001d1680 CMP byte ptr [R12 + R14*0x1],0x0 JZ 0x001d169e LAB_001d1680: MOV R12,qword ptr [R13 + 0x18] ADD R13,0x10 TEST R12,R12 JNZ 0x001d1667 LAB_001d168d: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001d169e: MOV ECX,dword ptr [R13] LEA EAX,[RCX + -0x191] CMP EAX,0xb JA 0x001d16c9 LEA RCX,[0x45bb5c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_191: LEA RSI,[0x1deca5] JMP 0x001d1774 LAB_001d16c9: CMP ECX,0x9 JNZ 0x001d168d CMP qword ptr [RBX + 0x690],0x0 JZ 0x001d16e6 MOV RAX,qword ptr [RBX + 0x688] MOV qword ptr [RBX + 0x718],RAX LAB_001d16e6: MOV RAX,qword ptr [RBX + 0x7a8] MOV RAX,qword ptr [RAX + 0xa8] TEST RAX,RAX JZ 0x001d168d ADD RBX,0x6e0 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP RAX caseD_19c: LEA RSI,[0x1dec90] JMP 0x001d1774 caseD_195: LEA RSI,[0x1ded0f] JMP 0x001d1774 caseD_19a: LEA RSI,[0x1ded76] JMP 0x001d1774 caseD_193: LEA RSI,[0x1decd8] JMP 0x001d1774 caseD_194: LEA RSI,[0x1decf4] JMP 0x001d1774 caseD_198: LEA RSI,[0x1ded55] JMP 0x001d1774 caseD_192: LEA RSI,[0x1decbf] JMP 0x001d1774 caseD_196: LEA RSI,[0x1ded2a] JMP 0x001d1774 caseD_197: LEA RSI,[0x1ded44] JMP 0x001d1774 caseD_19b: LEA RSI,[0x1dec7a] JMP 0x001d1774 caseD_199: LEA RSI,[0x1ded65] LAB_001d1774: MOV RDI,RBX XOR EDX,EDX XOR ECX,ECX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001d1fc4
int8 cs_leave(long param_1,char *param_2,size_t param_3) { long lVar1; code *UNRECOVERED_JUMPTABLE; int iVar2; int8 uVar3; char *pcVar4; int *piVar5; lVar1 = *(long *)(param_1 + 0x140); piVar5 = &sec; pcVar4 = "xml"; while ((iVar2 = strncmp(param_2,pcVar4,param_3), iVar2 != 0 || (pcVar4[param_3] != '\0'))) { pcVar4 = *(char **)(piVar5 + 6); piVar5 = piVar5 + 4; if (pcVar4 == (char *)0x0) { return 0; } } switch(*piVar5) { case 0x191: pcVar4 = "[first primary ignorable]"; break; case 0x192: pcVar4 = "[last primary ignorable]"; break; case 0x193: pcVar4 = "[first secondary ignorable]"; break; case 0x194: pcVar4 = "[last secondary ignorable]"; break; case 0x195: pcVar4 = "[first tertiary ignorable]"; break; case 0x196: pcVar4 = "[last tertiary ignorable]"; break; case 0x197: pcVar4 = "[first trailing]"; break; case 0x198: pcVar4 = "[last trailing]"; break; case 0x199: pcVar4 = "[first variable]"; break; case 0x19a: pcVar4 = "[last variable]"; break; case 0x19b: pcVar4 = "[first non-ignorable]"; break; case 0x19c: pcVar4 = "[last non-ignorable]"; break; default: if (*piVar5 != 9) { return 0; } if (*(long *)(lVar1 + 0x690) != 0) { *(int8 *)(lVar1 + 0x718) = *(int8 *)(lVar1 + 0x688); } UNRECOVERED_JUMPTABLE = *(code **)(*(long *)(lVar1 + 0x7a8) + 0xa8); if (UNRECOVERED_JUMPTABLE == (code *)0x0) { return 0; } /* WARNING: Could not recover jumptable at 0x001d1711. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar3 = (*UNRECOVERED_JUMPTABLE)(lVar1 + 0x6e0); return uVar3; } uVar3 = tailoring_append(lVar1,pcVar4,0,0); return uVar3; }
49,823
unlink_hash
eloqsql/mysys/mf_keycache.c
static void unlink_hash(SIMPLE_KEY_CACHE_CB *keycache, HASH_LINK *hash_link) { KEYCACHE_DBUG_PRINT("unlink_hash", ("fd: %u pos_ %lu #requests=%u", (uint) hash_link->file,(ulong) hash_link->diskpos, hash_link->requests)); KEYCACHE_DBUG_ASSERT(hash_link->requests == 0); if ((*hash_link->prev= hash_link->next)) hash_link->next->prev= hash_link->prev; hash_link->block= NULL; if (keycache->waiting_for_hash_link.last_thread) { /* Signal that a free hash link has appeared */ struct st_my_thread_var *last_thread= keycache->waiting_for_hash_link.last_thread; struct st_my_thread_var *first_thread= last_thread->next; struct st_my_thread_var *next_thread= first_thread; KEYCACHE_PAGE *first_page= (KEYCACHE_PAGE *) (first_thread->keycache_link); struct st_my_thread_var *thread; hash_link->file= first_page->file; hash_link->diskpos= first_page->filepos; do { KEYCACHE_PAGE *page; thread= next_thread; page= (KEYCACHE_PAGE *) thread->keycache_link; next_thread= thread->next; /* We notify about the event all threads that ask for the same page as the first thread in the queue */ if (page->file == hash_link->file && page->filepos == hash_link->diskpos) { KEYCACHE_DBUG_PRINT("unlink_hash: signal", ("thread %ld", (ulong) thread->id)); keycache_pthread_cond_signal(&thread->suspend); unlink_from_queue(&keycache->waiting_for_hash_link, thread); } } while (thread != last_thread); link_hash(&keycache->hash_root[KEYCACHE_HASH(hash_link->file, hash_link->diskpos)], hash_link); return; } hash_link->next= keycache->free_hash_list; keycache->free_hash_list= hash_link; }
O3
c
unlink_hash: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq (%rsi), %rax movq 0x8(%rsi), %rcx movq %rax, (%rcx) testq %rax, %rax je 0x987d4 movq 0x8(%rbx), %rcx movq %rcx, 0x8(%rax) movq $0x0, 0x10(%rbx) movq 0x118(%r14), %r15 testq %r15, %r15 je 0x98903 movq 0x88(%r15), %r13 movq 0xa8(%r13), %rax movl (%rax), %ecx movl %ecx, 0x18(%rbx) movq 0x8(%rax), %rax movq %rax, 0x20(%rbx) movq %r13, %r12 movq 0x88(%r13), %r13 movq 0xa8(%r12), %rax movl (%rax), %ecx cmpl 0x18(%rbx), %ecx jne 0x98897 movq 0x8(%rax), %rax cmpq 0x20(%rbx), %rax jne 0x98897 movq 0x38(%r12), %rdi testq %rdi, %rdi jne 0x988a2 leaq 0x8(%r12), %rdi callq 0x295c0 movq 0x88(%r12), %rax cmpq %r12, %rax je 0x98882 movq 0x90(%r12), %rcx movq %rcx, 0x90(%rax) movq 0x88(%r12), %rax movq %rax, (%rcx) cmpq %r12, 0x118(%r14) jne 0x9888b movq 0x90(%r12), %rax movq $-0x88, %rcx addq %rcx, %rax jmp 0x98884 xorl %eax, %eax movq %rax, 0x118(%r14) movq $0x0, 0x88(%r12) cmpq %r15, %r12 jne 0x98807 jmp 0x988b4 leaq 0x2ed767(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x170(%rax) jmp 0x98834 movq 0x80(%r14), %rsi movq 0x20(%rbx), %rax movl 0x18(%r14), %edi movl 0x38(%r14), %r8d xorl %ecx, %ecx xorl %edx, %edx divq %rdi movslq 0x18(%rbx), %rdx addq %rdx, %rax movl 0x164(%r14), %edi xorl %edx, %edx divq %rdi decl %r8d andl %r8d, %eax leaq (%rsi,%rax,8), %r14 movq (%r14), %rax testq %rax, %rax je 0x988fa movq %rbx, 0x8(%rax) movq (%r14), %rcx movq %rcx, (%rbx) movq %r14, 0x8(%rbx) jmp 0x98914 movq 0x90(%r14), %rax addq $0x90, %r14 movq %rax, (%rbx) movq %rbx, (%r14) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
unlink_hash_0: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r14, rdi mov rax, [rsi] mov rcx, [rsi+8] mov [rcx], rax test rax, rax jz short loc_987D4 mov rcx, [rbx+8] mov [rax+8], rcx loc_987D4: mov qword ptr [rbx+10h], 0 mov r15, [r14+118h] test r15, r15 jz loc_98903 mov r13, [r15+88h] mov rax, [r13+0A8h] mov ecx, [rax] mov [rbx+18h], ecx mov rax, [rax+8] mov [rbx+20h], rax loc_98807: mov r12, r13 mov r13, [r13+88h] mov rax, [r12+0A8h] mov ecx, [rax] cmp ecx, [rbx+18h] jnz short loc_98897 mov rax, [rax+8] cmp rax, [rbx+20h] jnz short loc_98897 mov rdi, [r12+38h] test rdi, rdi jnz short loc_988A2 loc_98834: lea rdi, [r12+8] call _pthread_cond_signal mov rax, [r12+88h] cmp rax, r12 jz short loc_98882 mov rcx, [r12+90h] mov [rax+90h], rcx mov rax, [r12+88h] mov [rcx], rax cmp [r14+118h], r12 jnz short loc_9888B mov rax, [r12+90h] mov rcx, 0FFFFFFFFFFFFFF78h add rax, rcx jmp short loc_98884 loc_98882: xor eax, eax loc_98884: mov [r14+118h], rax loc_9888B: mov qword ptr [r12+88h], 0 loc_98897: cmp r12, r15 jnz loc_98807 jmp short loc_988B4 loc_988A2: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_98834 loc_988B4: mov rsi, [r14+80h] mov rax, [rbx+20h] mov edi, [r14+18h] mov r8d, [r14+38h] xor ecx, ecx xor edx, edx div rdi movsxd rdx, dword ptr [rbx+18h] add rax, rdx mov edi, [r14+164h] xor edx, edx div rdi dec r8d and eax, r8d lea r14, [rsi+rax*8] mov rax, [r14] test rax, rax jz short loc_988FA mov [rax+8], rbx mov rcx, [r14] loc_988FA: mov [rbx], rcx mov [rbx+8], r14 jmp short loc_98914 loc_98903: mov rax, [r14+90h] add r14, 90h mov [rbx], rax loc_98914: mov [r14], rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long unlink_hash_0(long long a1, long long *a2) { long long v3; // rax _QWORD *v4; // r15 _QWORD *v5; // r13 long long v6; // rax _QWORD *v7; // r12 long long v8; // rax long long v9; // rdi _QWORD *v10; // rax _QWORD *v11; // rcx long long v12; // rax long long v13; // rcx long long *v14; // r14 long long result; // rax v3 = *a2; *(_QWORD *)a2[1] = *a2; if ( v3 ) *(_QWORD *)(v3 + 8) = a2[1]; a2[2] = 0LL; v4 = *(_QWORD **)(a1 + 280); if ( !v4 ) { result = *(_QWORD *)(a1 + 144); v14 = (long long *)(a1 + 144); *a2 = result; goto LABEL_20; } v5 = (_QWORD *)v4[17]; v6 = v5[21]; *((_DWORD *)a2 + 6) = *(_DWORD *)v6; a2[4] = *(_QWORD *)(v6 + 8); do { v7 = v5; v5 = (_QWORD *)v5[17]; v8 = v7[21]; if ( *(_DWORD *)v8 == *((_DWORD *)a2 + 6) && *(_QWORD *)(v8 + 8) == a2[4] ) { v9 = v7[7]; if ( v9 ) ((void ( *)(long long))PSI_server[46])(v9); pthread_cond_signal(v7 + 1); v10 = (_QWORD *)v7[17]; if ( v10 == v7 ) { v12 = 0LL; } else { v11 = (_QWORD *)v7[18]; v10[18] = v11; *v11 = v7[17]; if ( *(_QWORD **)(a1 + 280) != v7 ) { LABEL_14: v7[17] = 0LL; continue; } v12 = v7[18] - 136LL; } *(_QWORD *)(a1 + 280) = v12; goto LABEL_14; } } while ( v7 != v4 ); v13 = 0LL; v14 = (long long *)(*(_QWORD *)(a1 + 128) + 8LL * ((*(_DWORD *)(a1 + 56) - 1) & (unsigned int)((*((int *)a2 + 6) + a2[4] / (unsigned long long)*(unsigned int *)(a1 + 24)) / *(unsigned int *)(a1 + 356)))); result = *v14; if ( *v14 ) { *(_QWORD *)(result + 8) = a2; v13 = *v14; } *a2 = v13; a2[1] = (long long)v14; LABEL_20: *v14 = (long long)a2; return result; }
unlink_hash: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr [RSI] MOV RCX,qword ptr [RSI + 0x8] MOV qword ptr [RCX],RAX TEST RAX,RAX JZ 0x001987d4 MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RAX + 0x8],RCX LAB_001987d4: MOV qword ptr [RBX + 0x10],0x0 MOV R15,qword ptr [R14 + 0x118] TEST R15,R15 JZ 0x00198903 MOV R13,qword ptr [R15 + 0x88] MOV RAX,qword ptr [R13 + 0xa8] MOV ECX,dword ptr [RAX] MOV dword ptr [RBX + 0x18],ECX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBX + 0x20],RAX LAB_00198807: MOV R12,R13 MOV R13,qword ptr [R13 + 0x88] MOV RAX,qword ptr [R12 + 0xa8] MOV ECX,dword ptr [RAX] CMP ECX,dword ptr [RBX + 0x18] JNZ 0x00198897 MOV RAX,qword ptr [RAX + 0x8] CMP RAX,qword ptr [RBX + 0x20] JNZ 0x00198897 MOV RDI,qword ptr [R12 + 0x38] TEST RDI,RDI JNZ 0x001988a2 LAB_00198834: LEA RDI,[R12 + 0x8] CALL 0x001295c0 MOV RAX,qword ptr [R12 + 0x88] CMP RAX,R12 JZ 0x00198882 MOV RCX,qword ptr [R12 + 0x90] MOV qword ptr [RAX + 0x90],RCX MOV RAX,qword ptr [R12 + 0x88] MOV qword ptr [RCX],RAX CMP qword ptr [R14 + 0x118],R12 JNZ 0x0019888b MOV RAX,qword ptr [R12 + 0x90] MOV RCX,-0x88 ADD RAX,RCX JMP 0x00198884 LAB_00198882: XOR EAX,EAX LAB_00198884: MOV qword ptr [R14 + 0x118],RAX LAB_0019888b: MOV qword ptr [R12 + 0x88],0x0 LAB_00198897: CMP R12,R15 JNZ 0x00198807 JMP 0x001988b4 LAB_001988a2: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x00198834 LAB_001988b4: MOV RSI,qword ptr [R14 + 0x80] MOV RAX,qword ptr [RBX + 0x20] MOV EDI,dword ptr [R14 + 0x18] MOV R8D,dword ptr [R14 + 0x38] XOR ECX,ECX XOR EDX,EDX DIV RDI MOVSXD RDX,dword ptr [RBX + 0x18] ADD RAX,RDX MOV EDI,dword ptr [R14 + 0x164] XOR EDX,EDX DIV RDI DEC R8D AND EAX,R8D LEA R14,[RSI + RAX*0x8] MOV RAX,qword ptr [R14] TEST RAX,RAX JZ 0x001988fa MOV qword ptr [RAX + 0x8],RBX MOV RCX,qword ptr [R14] LAB_001988fa: MOV qword ptr [RBX],RCX MOV qword ptr [RBX + 0x8],R14 JMP 0x00198914 LAB_00198903: MOV RAX,qword ptr [R14 + 0x90] ADD R14,0x90 MOV qword ptr [RBX],RAX LAB_00198914: MOV qword ptr [R14],RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void unlink_hash(long param_1,long *param_2) { int4 *puVar1; long lVar2; int8 *puVar3; long lVar4; long lVar5; long lVar6; long *plVar7; bool bVar8; lVar5 = *param_2; *(long *)param_2[1] = lVar5; if (lVar5 != 0) { *(long *)(lVar5 + 8) = param_2[1]; } param_2[2] = 0; lVar5 = *(long *)(param_1 + 0x118); if (lVar5 == 0) { plVar7 = (long *)(param_1 + 0x90); *param_2 = *(long *)(param_1 + 0x90); } else { lVar6 = *(long *)(lVar5 + 0x88); puVar1 = *(int4 **)(lVar6 + 0xa8); *(int4 *)(param_2 + 3) = *puVar1; param_2[4] = *(long *)(puVar1 + 2); do { lVar2 = *(long *)(lVar6 + 0x88); if ((**(int **)(lVar6 + 0xa8) == (int)param_2[3]) && (*(long *)(*(int **)(lVar6 + 0xa8) + 2) == param_2[4])) { if (*(long *)(lVar6 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar6 + 8)); if (*(long *)(lVar6 + 0x88) == lVar6) { lVar4 = 0; LAB_00198884: *(long *)(param_1 + 0x118) = lVar4; } else { puVar3 = *(int8 **)(lVar6 + 0x90); *(int8 **)(*(long *)(lVar6 + 0x88) + 0x90) = puVar3; *puVar3 = *(int8 *)(lVar6 + 0x88); if (*(long *)(param_1 + 0x118) == lVar6) { lVar4 = *(long *)(lVar6 + 0x90) + -0x88; goto LAB_00198884; } } *(int8 *)(lVar6 + 0x88) = 0; } bVar8 = lVar6 != lVar5; lVar6 = lVar2; } while (bVar8); lVar5 = 0; plVar7 = (long *)(*(long *)(param_1 + 0x80) + (ulong)((uint)(((ulong)param_2[4] / (ulong)*(uint *)(param_1 + 0x18) + (long)(int)param_2[3]) / (ulong)*(uint *)(param_1 + 0x164)) & *(int *)(param_1 + 0x38) - 1U) * 8); if (*plVar7 != 0) { *(long **)(*plVar7 + 8) = param_2; lVar5 = *plVar7; } *param_2 = lVar5; param_2[1] = (long)plVar7; } *plVar7 = (long)param_2; return; }
49,824
queue_all_deferred
qoraal-tictactoe/build_O0/_deps/qoraal_engine-src/src/engine.c
static void queue_all_deferred (PENGINE_T engine) { while (engine->deferred) { ENGINE_DEFERED_T * start = engine->deferred ; ENGINE_LOG (engine, ENGINE_LOG_TYPE_DEBUG, "[dbg] remove deferred event %s (%d)", parts_get_event_name(start->event), engine->deferred_cnt) ; engine_queue_event (engine, start->event, start->event_register); engine->deferred = start->next ; engine_port_free (heapMachine, start); engine->deferred_cnt-- ; } DBG_ENGINE_ASSERT (!engine->deferred_cnt, "queue_all_deferred invalid!") ; }
O0
c
queue_all_deferred: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x80(%rax) je 0x151a6 movq -0x8(%rbp), %rax movq 0x80(%rax), %rax movq %rax, -0x10(%rbp) movzwl 0x37264(%rip), %eax # 0x4c378 andl $0x1, %eax cmpl $0x0, %eax je 0x15156 movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movzwl 0xc(%rax), %edi callq 0x9050 movq -0x18(%rbp), %rdi movq %rax, %rcx movq -0x8(%rbp), %rax movl 0x88(%rax), %r8d movl $0x1, %esi leaq 0x1f707(%rip), %rdx # 0x34856 movb $0x0, %al callq 0x12f10 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movw 0xc(%rax), %ax movq -0x10(%rbp), %rcx movl 0x8(%rcx), %edx movzwl %ax, %esi callq 0x148d0 movq -0x10(%rbp), %rax movq (%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x80(%rax) movq -0x10(%rbp), %rsi xorl %edi, %edi callq 0x12110 movq -0x8(%rbp), %rax movl 0x88(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x88(%rax) jmp 0x150ec movq -0x8(%rbp), %rax cmpl $0x0, 0x88(%rax) je 0x151bf leaq 0x1f6c0(%rip), %rdi # 0x3487a callq 0x132f0 addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
queue_all_deferred: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi loc_150EC: mov rax, [rbp+var_8] cmp qword ptr [rax+80h], 0 jz loc_151A6 mov rax, [rbp+var_8] mov rax, [rax+80h] mov [rbp+var_10], rax movzx eax, cs:_engine_log_filter and eax, 1 cmp eax, 0 jz short loc_15156 mov rax, [rbp+var_8] mov [rbp+var_18], rax mov rax, [rbp+var_10] movzx edi, word ptr [rax+0Ch] call parts_get_event_name mov rdi, [rbp+var_18] mov rcx, rax mov rax, [rbp+var_8] mov r8d, [rax+88h] mov esi, 1 lea rdx, aDbgRemoveDefer; "[dbg] remove deferred event %s (%d)" mov al, 0 call engine_log loc_15156: mov rdi, [rbp+var_8] mov rax, [rbp+var_10] mov ax, [rax+0Ch] mov rcx, [rbp+var_10] mov edx, [rcx+8] movzx esi, ax call engine_queue_event mov rax, [rbp+var_10] mov rcx, [rax] mov rax, [rbp+var_8] mov [rax+80h], rcx mov rsi, [rbp+var_10] xor edi, edi call engine_port_free mov rax, [rbp+var_8] mov ecx, [rax+88h] add ecx, 0FFFFFFFFh mov [rax+88h], ecx jmp loc_150EC loc_151A6: mov rax, [rbp+var_8] cmp dword ptr [rax+88h], 0 jz short loc_151BF lea rdi, aQueueAllDeferr; "queue_all_deferred invalid!" call qoraal_debug_assert_1 loc_151BF: add rsp, 20h pop rbp retn
long long * queue_all_deferred(long long a1) { char *event_name; // rax long long *result; // rax long long v3; // [rsp+10h] [rbp-10h] while ( *(_QWORD *)(a1 + 128) ) { v3 = *(_QWORD *)(a1 + 128); if ( (engine_log_filter & 1) != 0 ) { event_name = parts_get_event_name(*(_WORD *)(v3 + 12)); engine_log( (unsigned int *)a1, 1, (long long)"[dbg] remove deferred event %s (%d)", event_name, *(_DWORD *)(a1 + 136)); } engine_queue_event((unsigned int *)a1, *(_WORD *)(v3 + 12), *(_DWORD *)(v3 + 8)); *(_QWORD *)(a1 + 128) = *(_QWORD *)v3; engine_port_free(0, v3); --*(_DWORD *)(a1 + 136); } result = (long long *)a1; if ( *(_DWORD *)(a1 + 136) ) return qoraal_debug_assert_1((long long)aQueueAllDeferr); return result; }
queue_all_deferred: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI LAB_001150ec: MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x80],0x0 JZ 0x001151a6 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x80] MOV qword ptr [RBP + -0x10],RAX MOVZX EAX,word ptr [0x0014c378] AND EAX,0x1 CMP EAX,0x0 JZ 0x00115156 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOVZX EDI,word ptr [RAX + 0xc] CALL 0x00109050 MOV RDI,qword ptr [RBP + -0x18] MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x8] MOV R8D,dword ptr [RAX + 0x88] MOV ESI,0x1 LEA RDX,[0x134856] MOV AL,0x0 CALL 0x00112f10 LAB_00115156: MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV AX,word ptr [RAX + 0xc] MOV RCX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RCX + 0x8] MOVZX ESI,AX CALL 0x001148d0 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x80],RCX MOV RSI,qword ptr [RBP + -0x10] XOR EDI,EDI CALL 0x00112110 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x88] ADD ECX,-0x1 MOV dword ptr [RAX + 0x88],ECX JMP 0x001150ec LAB_001151a6: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x88],0x0 JZ 0x001151bf LEA RDI,[0x13487a] CALL 0x001132f0 LAB_001151bf: ADD RSP,0x20 POP RBP RET
void queue_all_deferred(long param_1) { int8 *puVar1; int8 uVar2; while (*(long *)(param_1 + 0x80) != 0) { puVar1 = *(int8 **)(param_1 + 0x80); if ((_engine_log_filter & 1) != 0) { uVar2 = parts_get_event_name(*(int2 *)((long)puVar1 + 0xc)); engine_log(param_1,1,s__dbg__remove_deferred_event__s___00134856,uVar2, *(int4 *)(param_1 + 0x88)); } engine_queue_event(param_1,*(int2 *)((long)puVar1 + 0xc),*(int4 *)(puVar1 + 1)); *(int8 *)(param_1 + 0x80) = *puVar1; engine_port_free(0,puVar1); *(int *)(param_1 + 0x88) = *(int *)(param_1 + 0x88) + -1; } if (*(int *)(param_1 + 0x88) != 0) { qoraal_debug_assert(s_queue_all_deferred_invalid__0013487a); } return; }
49,825
bc_atom_to_idx
bluesky950520[P]quickjs/quickjs.c
static int bc_atom_to_idx(BCWriterState *s, uint32_t *pres, JSAtom atom) { uint32_t v; if (atom < s->first_atom || __JS_AtomIsTaggedInt(atom)) { *pres = atom; return 0; } atom -= s->first_atom; if (atom < s->atom_to_idx_size && s->atom_to_idx[atom] != 0) { *pres = s->atom_to_idx[atom]; return 0; } if (atom >= s->atom_to_idx_size) { int old_size, i; old_size = s->atom_to_idx_size; if (js_resize_array(s->ctx, (void **)&s->atom_to_idx, sizeof(s->atom_to_idx[0]), &s->atom_to_idx_size, atom + 1)) return -1; /* XXX: could add a specific js_resize_array() function to do it */ for(i = old_size; i < s->atom_to_idx_size; i++) s->atom_to_idx[i] = 0; } if (js_resize_array(s->ctx, (void **)&s->idx_to_atom, sizeof(s->idx_to_atom[0]), &s->idx_to_atom_size, s->idx_to_atom_count + 1)) goto fail; v = s->idx_to_atom_count++; s->idx_to_atom[v] = atom + s->first_atom; v += s->first_atom; s->atom_to_idx[atom] = v; *pres = v; return 0; fail: *pres = 0; return -1; }
O1
c
bc_atom_to_idx: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movl %edx, %r13d subl 0x3c(%rdi), %r13d setb %al testl %edx, %edx sets %cl xorl %ebp, %ebp orb %al, %cl jne 0x4594d movq %rdi, %r14 movslq 0x48(%rdi), %r12 cmpl %r12d, %r13d jae 0x458e1 movq 0x40(%r14), %rax movl %r13d, %ecx movl (%rax,%rcx,4), %edx testl %edx, %edx jne 0x4594d cmpl %r12d, %r13d jb 0x4591c leaq 0x48(%r14), %r15 leaq 0x40(%r14), %rdx leal 0x1(%r13), %r8d movb $0x1, %cl cmpl %r8d, %r12d jl 0x45960 movl $0xffffffff, %eax # imm = 0xFFFFFFFF testb %cl, %cl je 0x45951 cmpl (%r15), %r12d jge 0x45918 movq (%rdx), %rdx movl $0x0, (%rdx,%r12,4) incq %r12 movslq (%r15), %rsi cmpq %rsi, %r12 jl 0x45905 testb %cl, %cl je 0x45951 movl 0x58(%r14), %r8d cmpl %r8d, 0x5c(%r14) jle 0x45986 movl 0x58(%r14), %eax leal 0x1(%rax), %ecx movl %ecx, 0x58(%r14) movl %r13d, %ecx addl 0x3c(%r14), %r13d movq 0x50(%r14), %rdx movl %r13d, (%rdx,%rax,4) movl 0x3c(%r14), %edx addl %eax, %edx movq 0x40(%r14), %rax movl %edx, (%rax,%rcx,4) movl %edx, (%rbx) movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq (%r14), %rdi movq %rdx, (%rsp) movq (%rsp), %rsi movl $0x4, %edx movq %r15, %rcx callq 0x434ef movq (%rsp), %rdx testl %eax, %eax sete %cl jmp 0x458f4 leaq 0x50(%r14), %rsi leaq 0x5c(%r14), %rcx incl %r8d movq (%r14), %rdi movl $0x4, %edx callq 0x434ef testl %eax, %eax je 0x45926 movl $0xffffffff, %ebp # imm = 0xFFFFFFFF xorl %edx, %edx jmp 0x4594d
bc_atom_to_idx: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r13d, edx sub r13d, [rdi+3Ch] setb al test edx, edx sets cl xor ebp, ebp or cl, al jnz loc_4594D mov r14, rdi movsxd r12, dword ptr [rdi+48h] cmp r13d, r12d jnb short loc_458E1 mov rax, [r14+40h] mov ecx, r13d mov edx, [rax+rcx*4] test edx, edx jnz short loc_4594D cmp r13d, r12d jb short loc_4591C loc_458E1: lea r15, [r14+48h] lea rdx, [r14+40h] lea r8d, [r13+1] mov cl, 1 cmp r12d, r8d jl short loc_45960 loc_458F4: mov eax, 0FFFFFFFFh test cl, cl jz short loc_45951 cmp r12d, [r15] jge short loc_45918 mov rdx, [rdx] loc_45905: mov dword ptr [rdx+r12*4], 0 inc r12 movsxd rsi, dword ptr [r15] cmp r12, rsi jl short loc_45905 loc_45918: test cl, cl jz short loc_45951 loc_4591C: mov r8d, [r14+58h] cmp [r14+5Ch], r8d jle short loc_45986 loc_45926: mov eax, [r14+58h] lea ecx, [rax+1] mov [r14+58h], ecx mov ecx, r13d add r13d, [r14+3Ch] mov rdx, [r14+50h] mov [rdx+rax*4], r13d mov edx, [r14+3Ch] add edx, eax mov rax, [r14+40h] mov [rax+rcx*4], edx loc_4594D: mov [rbx], edx mov eax, ebp loc_45951: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_45960: mov rdi, [r14] mov [rsp+38h+var_38], rdx mov rsi, [rsp+38h+var_38] mov edx, 4 mov rcx, r15 call js_realloc_array mov rdx, [rsp+38h+var_38] test eax, eax setz cl jmp loc_458F4 loc_45986: lea rsi, [r14+50h] lea rcx, [r14+5Ch] inc r8d mov rdi, [r14] mov edx, 4 call js_realloc_array test eax, eax jz short loc_45926 mov ebp, 0FFFFFFFFh xor edx, edx jmp short loc_4594D
long long bc_atom_to_idx(long long a1, int *a2, int a3) { unsigned int v3; // r13d unsigned int v4; // ebp long long v5; // r12 int *v6; // r15 long long *v7; // rdx bool v8; // cl long long result; // rax long long v10; // rdx int v11; // r8d long long v12; // rax int v13; // eax v3 = a3 - *(_DWORD *)(a1 + 60); v4 = 0; if ( (unsigned int)a3 < *(_DWORD *)(a1 + 60) || a3 < 0 ) goto LABEL_13; v5 = *(int *)(a1 + 72); if ( v3 >= (unsigned int)v5 ) goto LABEL_5; a3 = *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * v3); if ( a3 ) { LABEL_13: *a2 = a3; return v4; } if ( v3 < (unsigned int)v5 ) { LABEL_11: v11 = *(_DWORD *)(a1 + 88); if ( *(_DWORD *)(a1 + 92) <= v11 && (unsigned int)js_realloc_array(*(_QWORD *)a1, (long long *)(a1 + 80), 4u, (_DWORD *)(a1 + 92), v11 + 1) ) { v4 = -1; a3 = 0; } else { v12 = *(unsigned int *)(a1 + 88); *(_DWORD *)(a1 + 88) = v12 + 1; *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4 * v12) = *(_DWORD *)(a1 + 60) + v3; a3 = v12 + *(_DWORD *)(a1 + 60); *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * v3) = a3; } goto LABEL_13; } LABEL_5: v6 = (int *)(a1 + 72); v7 = (long long *)(a1 + 64); v8 = 1; if ( (int)v5 < (int)(v3 + 1) ) { v13 = js_realloc_array(*(_QWORD *)a1, (long long *)(a1 + 64), 4u, (_DWORD *)(a1 + 72), v3 + 1); v7 = (long long *)(a1 + 64); v8 = v13 == 0; } result = 0xFFFFFFFFLL; if ( v8 ) { if ( (int)v5 < *v6 ) { v10 = *v7; do *(_DWORD *)(v10 + 4 * v5++) = 0; while ( v5 < *v6 ); } goto LABEL_11; } return result; }
bc_atom_to_idx: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R13D,EDX SUB R13D,dword ptr [RDI + 0x3c] SETC AL TEST EDX,EDX SETS CL XOR EBP,EBP OR CL,AL JNZ 0x0014594d MOV R14,RDI MOVSXD R12,dword ptr [RDI + 0x48] CMP R13D,R12D JNC 0x001458e1 MOV RAX,qword ptr [R14 + 0x40] MOV ECX,R13D MOV EDX,dword ptr [RAX + RCX*0x4] TEST EDX,EDX JNZ 0x0014594d CMP R13D,R12D JC 0x0014591c LAB_001458e1: LEA R15,[R14 + 0x48] LEA RDX,[R14 + 0x40] LEA R8D,[R13 + 0x1] MOV CL,0x1 CMP R12D,R8D JL 0x00145960 LAB_001458f4: MOV EAX,0xffffffff TEST CL,CL JZ 0x00145951 CMP R12D,dword ptr [R15] JGE 0x00145918 MOV RDX,qword ptr [RDX] LAB_00145905: MOV dword ptr [RDX + R12*0x4],0x0 INC R12 MOVSXD RSI,dword ptr [R15] CMP R12,RSI JL 0x00145905 LAB_00145918: TEST CL,CL JZ 0x00145951 LAB_0014591c: MOV R8D,dword ptr [R14 + 0x58] CMP dword ptr [R14 + 0x5c],R8D JLE 0x00145986 LAB_00145926: MOV EAX,dword ptr [R14 + 0x58] LEA ECX,[RAX + 0x1] MOV dword ptr [R14 + 0x58],ECX MOV ECX,R13D ADD R13D,dword ptr [R14 + 0x3c] MOV RDX,qword ptr [R14 + 0x50] MOV dword ptr [RDX + RAX*0x4],R13D MOV EDX,dword ptr [R14 + 0x3c] ADD EDX,EAX MOV RAX,qword ptr [R14 + 0x40] MOV dword ptr [RAX + RCX*0x4],EDX LAB_0014594d: MOV dword ptr [RBX],EDX MOV EAX,EBP LAB_00145951: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00145960: MOV RDI,qword ptr [R14] MOV qword ptr [RSP],RDX MOV RSI,qword ptr [RSP] MOV EDX,0x4 MOV RCX,R15 CALL 0x001434ef MOV RDX,qword ptr [RSP] TEST EAX,EAX SETZ CL JMP 0x001458f4 LAB_00145986: LEA RSI,[R14 + 0x50] LEA RCX,[R14 + 0x5c] INC R8D MOV RDI,qword ptr [R14] MOV EDX,0x4 CALL 0x001434ef TEST EAX,EAX JZ 0x00145926 MOV EBP,0xffffffff XOR EDX,EDX JMP 0x0014594d
int8 bc_atom_to_idx(int8 *param_1,uint *param_2,uint param_3) { int *piVar1; uint uVar2; long lVar3; int iVar4; int8 uVar5; long lVar6; uint uVar7; bool bVar8; uVar7 = param_3 - *(uint *)((long)param_1 + 0x3c); uVar5 = 0; if ((int)param_3 < 0 || param_3 < *(uint *)((long)param_1 + 0x3c)) goto LAB_0014594d; uVar2 = *(uint *)(param_1 + 9); lVar6 = (long)(int)uVar2; if (uVar7 < uVar2) { param_3 = *(uint *)(param_1[8] + (ulong)uVar7 * 4); if (param_3 != 0) goto LAB_0014594d; if (uVar2 <= uVar7) goto LAB_001458e1; } else { LAB_001458e1: piVar1 = (int *)(param_1 + 9); bVar8 = true; if ((int)uVar2 < (int)(uVar7 + 1)) { iVar4 = js_realloc_array(*param_1,param_1 + 8,4,piVar1); bVar8 = iVar4 == 0; } if (!bVar8) { return 0xffffffff; } if ((int)uVar2 < *piVar1) { lVar3 = param_1[8]; do { *(int4 *)(lVar3 + lVar6 * 4) = 0; lVar6 = lVar6 + 1; } while (lVar6 < *piVar1); } if (!bVar8) { return 0xffffffff; } } if ((*(int *)(param_1 + 0xb) < *(int *)((long)param_1 + 0x5c)) || (iVar4 = js_realloc_array(*param_1,param_1 + 10,4,(long)param_1 + 0x5c, *(int *)(param_1 + 0xb) + 1), iVar4 == 0)) { param_3 = *(uint *)(param_1 + 0xb); *(uint *)(param_1 + 0xb) = param_3 + 1; *(uint *)(param_1[10] + (ulong)param_3 * 4) = uVar7 + *(int *)((long)param_1 + 0x3c); param_3 = *(int *)((long)param_1 + 0x3c) + param_3; *(uint *)(param_1[8] + (ulong)uVar7 * 4) = param_3; } else { uVar5 = 0xffffffff; param_3 = 0; } LAB_0014594d: *param_2 = param_3; return uVar5; }
49,826
bc_atom_to_idx
bluesky950520[P]quickjs/quickjs.c
static int bc_atom_to_idx(BCWriterState *s, uint32_t *pres, JSAtom atom) { uint32_t v; if (atom < s->first_atom || __JS_AtomIsTaggedInt(atom)) { *pres = atom; return 0; } atom -= s->first_atom; if (atom < s->atom_to_idx_size && s->atom_to_idx[atom] != 0) { *pres = s->atom_to_idx[atom]; return 0; } if (atom >= s->atom_to_idx_size) { int old_size, i; old_size = s->atom_to_idx_size; if (js_resize_array(s->ctx, (void **)&s->atom_to_idx, sizeof(s->atom_to_idx[0]), &s->atom_to_idx_size, atom + 1)) return -1; /* XXX: could add a specific js_resize_array() function to do it */ for(i = old_size; i < s->atom_to_idx_size; i++) s->atom_to_idx[i] = 0; } if (js_resize_array(s->ctx, (void **)&s->idx_to_atom, sizeof(s->idx_to_atom[0]), &s->idx_to_atom_size, s->idx_to_atom_count + 1)) goto fail; v = s->idx_to_atom_count++; s->idx_to_atom[v] = atom + s->first_atom; v += s->first_atom; s->atom_to_idx[atom] = v; *pres = v; return 0; fail: *pres = 0; return -1; }
O2
c
bc_atom_to_idx: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movl %edx, %r13d subl 0x3c(%rdi), %r13d setb %cl testl %edx, %edx sets %sil xorl %eax, %eax orb %cl, %sil jne 0x3d0b3 movq %rdi, %r14 movslq 0x48(%rdi), %rbp movl %r13d, %edx cmpl %ebp, %r13d movq %rdx, (%rsp) jae 0x3d02b movq 0x40(%r14), %rcx movl (%rcx,%rdx,4), %edx testl %edx, %edx jne 0x3d0b3 jmp 0x3d064 leaq 0x48(%r14), %r15 movq (%r14), %rdi leaq 0x40(%r14), %r12 leal 0x1(%r13), %r8d pushq $0x4 popq %rdx movq %r12, %rsi movq %r15, %rcx callq 0x3b0ef testl %eax, %eax je 0x3d05c pushq $-0x1 popq %rax jmp 0x3d0b5 movq (%r12), %rax andl $0x0, (%rax,%rbp,4) incq %rbp movslq (%r15), %rax cmpq %rax, %rbp jl 0x3d051 movq (%r14), %rdi leaq 0x50(%r14), %rsi leaq 0x5c(%r14), %rcx movl 0x58(%r14), %r8d incl %r8d pushq $0x4 popq %rdx callq 0x3b0ef testl %eax, %eax je 0x3d089 pushq $-0x1 popq %rax xorl %edx, %edx jmp 0x3d0b3 movl 0x58(%r14), %eax leal 0x1(%rax), %ecx movl %ecx, 0x58(%r14) addl 0x3c(%r14), %r13d movq 0x50(%r14), %rcx movl %r13d, (%rcx,%rax,4) movl 0x3c(%r14), %edx addl %eax, %edx movq 0x40(%r14), %rax movq (%rsp), %rcx movl %edx, (%rax,%rcx,4) xorl %eax, %eax movl %edx, (%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
bc_atom_to_idx: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r13d, edx sub r13d, [rdi+3Ch] setb cl test edx, edx sets sil xor eax, eax or sil, cl jnz loc_3D0B3 mov r14, rdi movsxd rbp, dword ptr [rdi+48h] mov edx, r13d cmp r13d, ebp mov [rsp+38h+var_38], rdx jnb short loc_3D02B mov rcx, [r14+40h] mov edx, [rcx+rdx*4] test edx, edx jnz loc_3D0B3 jmp short loc_3D064 loc_3D02B: lea r15, [r14+48h] mov rdi, [r14] lea r12, [r14+40h] lea r8d, [r13+1] push 4 pop rdx mov rsi, r12 mov rcx, r15 call js_resize_array test eax, eax jz short loc_3D05C push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_3D0B5 loc_3D051: mov rax, [r12] and dword ptr [rax+rbp*4], 0 inc rbp loc_3D05C: movsxd rax, dword ptr [r15] cmp rbp, rax jl short loc_3D051 loc_3D064: mov rdi, [r14] lea rsi, [r14+50h] lea rcx, [r14+5Ch] mov r8d, [r14+58h] inc r8d push 4 pop rdx call js_resize_array test eax, eax jz short loc_3D089 push 0FFFFFFFFFFFFFFFFh pop rax xor edx, edx jmp short loc_3D0B3 loc_3D089: mov eax, [r14+58h] lea ecx, [rax+1] mov [r14+58h], ecx add r13d, [r14+3Ch] mov rcx, [r14+50h] mov [rcx+rax*4], r13d mov edx, [r14+3Ch] add edx, eax mov rax, [r14+40h] mov rcx, [rsp+38h+var_38] mov [rax+rcx*4], edx xor eax, eax loc_3D0B3: mov [rbx], edx loc_3D0B5: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long bc_atom_to_idx(long long a1, int *a2, int a3) { unsigned int v3; // r13d long long result; // rax long long v5; // rbp long long v6; // rax v3 = a3 - *(_DWORD *)(a1 + 60); result = 0LL; if ( (unsigned int)a3 < *(_DWORD *)(a1 + 60) || a3 < 0 ) goto LABEL_12; v5 = *(int *)(a1 + 72); if ( v3 >= (unsigned int)v5 ) { if ( (unsigned int)js_resize_array(*(_QWORD *)a1, a1 + 64, 4LL, (_DWORD *)(a1 + 72), v3 + 1) ) return -1LL; while ( v5 < *(int *)(a1 + 72) ) *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4 * v5++) = 0; goto LABEL_9; } a3 = *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * v3); if ( !a3 ) { LABEL_9: if ( (unsigned int)js_resize_array(*(_QWORD *)a1, a1 + 80, 4LL, (_DWORD *)(a1 + 92), *(_DWORD *)(a1 + 88) + 1) ) { result = -1LL; a3 = 0; } else { v6 = *(unsigned int *)(a1 + 88); *(_DWORD *)(a1 + 88) = v6 + 1; *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4 * v6) = *(_DWORD *)(a1 + 60) + v3; a3 = v6 + *(_DWORD *)(a1 + 60); *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * v3) = a3; result = 0LL; } } LABEL_12: *a2 = a3; return result; }
bc_atom_to_idx: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R13D,EDX SUB R13D,dword ptr [RDI + 0x3c] SETC CL TEST EDX,EDX SETS SIL XOR EAX,EAX OR SIL,CL JNZ 0x0013d0b3 MOV R14,RDI MOVSXD RBP,dword ptr [RDI + 0x48] MOV EDX,R13D CMP R13D,EBP MOV qword ptr [RSP],RDX JNC 0x0013d02b MOV RCX,qword ptr [R14 + 0x40] MOV EDX,dword ptr [RCX + RDX*0x4] TEST EDX,EDX JNZ 0x0013d0b3 JMP 0x0013d064 LAB_0013d02b: LEA R15,[R14 + 0x48] MOV RDI,qword ptr [R14] LEA R12,[R14 + 0x40] LEA R8D,[R13 + 0x1] PUSH 0x4 POP RDX MOV RSI,R12 MOV RCX,R15 CALL 0x0013b0ef TEST EAX,EAX JZ 0x0013d05c PUSH -0x1 POP RAX JMP 0x0013d0b5 LAB_0013d051: MOV RAX,qword ptr [R12] AND dword ptr [RAX + RBP*0x4],0x0 INC RBP LAB_0013d05c: MOVSXD RAX,dword ptr [R15] CMP RBP,RAX JL 0x0013d051 LAB_0013d064: MOV RDI,qword ptr [R14] LEA RSI,[R14 + 0x50] LEA RCX,[R14 + 0x5c] MOV R8D,dword ptr [R14 + 0x58] INC R8D PUSH 0x4 POP RDX CALL 0x0013b0ef TEST EAX,EAX JZ 0x0013d089 PUSH -0x1 POP RAX XOR EDX,EDX JMP 0x0013d0b3 LAB_0013d089: MOV EAX,dword ptr [R14 + 0x58] LEA ECX,[RAX + 0x1] MOV dword ptr [R14 + 0x58],ECX ADD R13D,dword ptr [R14 + 0x3c] MOV RCX,qword ptr [R14 + 0x50] MOV dword ptr [RCX + RAX*0x4],R13D MOV EDX,dword ptr [R14 + 0x3c] ADD EDX,EAX MOV RAX,qword ptr [R14 + 0x40] MOV RCX,qword ptr [RSP] MOV dword ptr [RAX + RCX*0x4],EDX XOR EAX,EAX LAB_0013d0b3: MOV dword ptr [RBX],EDX LAB_0013d0b5: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 bc_atom_to_idx(int8 *param_1,uint *param_2,uint param_3) { int iVar1; int8 uVar2; long lVar3; uint uVar4; uVar4 = param_3 - *(uint *)((long)param_1 + 0x3c); uVar2 = 0; if (-1 < (int)param_3 && *(uint *)((long)param_1 + 0x3c) <= param_3) { lVar3 = (long)(int)*(uint *)(param_1 + 9); if (uVar4 < *(uint *)(param_1 + 9)) { param_3 = *(uint *)(param_1[8] + (ulong)uVar4 * 4); if (param_3 != 0) goto LAB_0013d0b3; } else { iVar1 = js_resize_array(*param_1,param_1 + 8,4,param_1 + 9,uVar4 + 1); if (iVar1 != 0) { return 0xffffffffffffffff; } for (; lVar3 < *(int *)(param_1 + 9); lVar3 = lVar3 + 1) { *(int4 *)(param_1[8] + lVar3 * 4) = 0; } } iVar1 = js_resize_array(*param_1,param_1 + 10,4,(long)param_1 + 0x5c,*(int *)(param_1 + 0xb) + 1 ); if (iVar1 == 0) { param_3 = *(uint *)(param_1 + 0xb); *(uint *)(param_1 + 0xb) = param_3 + 1; *(uint *)(param_1[10] + (ulong)param_3 * 4) = uVar4 + *(int *)((long)param_1 + 0x3c); param_3 = *(int *)((long)param_1 + 0x3c) + param_3; *(uint *)(param_1[8] + (ulong)uVar4 * 4) = param_3; uVar2 = 0; } else { uVar2 = 0xffffffffffffffff; param_3 = 0; } } LAB_0013d0b3: *param_2 = param_3; return uVar2; }
49,827
skip_all
eloqsql/libmariadb/unittest/mytap/tap.c
void skip_all(char const *reason, ...) { va_list ap; va_start(ap, reason); fprintf(tapout, "1..0 # skip "); vfprintf(tapout, reason, ap); va_end(ap); exit(0); }
O0
c
skip_all: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp testb %al, %al je 0x162d5 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 -0x20(%rbp), %rax leaq -0xd0(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x8, (%rax) movq 0x48ca1(%rip), %rax # 0x5efc8 movq (%rax), %rdi leaq 0x36645(%rip), %rsi # 0x4c976 movb $0x0, %al callq 0x13640 movq 0x48c89(%rip), %rax # 0x5efc8 movq (%rax), %rdi movq -0x8(%rbp), %rsi leaq -0x20(%rbp), %rdx callq 0x135c0 leaq -0x20(%rbp), %rax xorl %edi, %edi callq 0x13530 nopw (%rax,%rax)
skip_all: push rbp mov rbp, rsp sub rsp, 0D0h test al, al jz short loc_162D5 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_162D5: 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_20] lea rcx, [rbp+var_D0] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 8 mov rax, cs:stdout_ptr mov rdi, [rax] lea rsi, a10Skip; "1..0 # skip " mov al, 0 call _fprintf mov rax, cs:stdout_ptr mov rdi, [rax] mov rsi, [rbp+var_8] lea rdx, [rbp+var_20] call _vfprintf lea rax, [rbp+var_20] xor edi, edi call _exit
void __noreturn skip_all( 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 v15; // [rsp+0h] [rbp-D0h] BYREF long long v16; // [rsp+8h] [rbp-C8h] long long v17; // [rsp+10h] [rbp-C0h] long long v18; // [rsp+18h] [rbp-B8h] long long v19; // [rsp+20h] [rbp-B0h] long long v20; // [rsp+28h] [rbp-A8h] __m128 v21; // [rsp+30h] [rbp-A0h] __m128 v22; // [rsp+40h] [rbp-90h] __m128 v23; // [rsp+50h] [rbp-80h] __m128 v24; // [rsp+60h] [rbp-70h] __m128 v25; // [rsp+70h] [rbp-60h] __m128 v26; // [rsp+80h] [rbp-50h] __m128 v27; // [rsp+90h] [rbp-40h] __m128 v28; // [rsp+A0h] [rbp-30h] _DWORD v29[2]; // [rsp+B0h] [rbp-20h] BYREF char *v30; // [rsp+B8h] [rbp-18h] char *v31; // [rsp+C0h] [rbp-10h] long long v32; // [rsp+C8h] [rbp-8h] v21 = a7; v22 = a8; v23 = a9; v24 = a10; v25 = a11; v26 = a12; v27 = a13; v28 = a14; v20 = a6; v19 = a5; v18 = a4; v17 = a3; v16 = a2; v32 = a1; v31 = &v15; v30 = &a15; v29[1] = 48; v29[0] = 8; fprintf(stdout, "1..0 # skip "); vfprintf(stdout, v32, v29); exit(0LL); }
skip_all: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 TEST AL,AL JZ 0x001162d5 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_001162d5: 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 + -0x20] LEA RCX,[RBP + -0xd0] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x8 MOV RAX,qword ptr [0x0015efc8] MOV RDI,qword ptr [RAX] LEA RSI,[0x14c976] MOV AL,0x0 CALL 0x00113640 MOV RAX,qword ptr [0x0015efc8] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x8] LEA RDX,[RBP + -0x20] CALL 0x001135c0 LEA RAX,[RBP + -0x20] XOR EDI,EDI CALL 0x00113530
void skip_all(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) { 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; 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_0015efc8,"1..0 # skip "); vfprintf(*(FILE **)PTR_stdout_0015efc8,local_10,&local_28); /* WARNING: Subroutine does not return */ exit(0); }
49,828
js_typed_array_join
bluesky950520[P]quickjs/quickjs.c
static JSValue js_typed_array_join(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int toLocaleString) { JSValue sep = JS_UNDEFINED, el; StringBuffer b_s, *b = &b_s; JSString *s = NULL; JSObject *p; int i, len, oldlen, newlen; int c; p = get_typed_array(ctx, this_val); if (!p) return JS_EXCEPTION; if (typed_array_is_oob(p)) return JS_ThrowTypeErrorArrayBufferOOB(ctx); len = oldlen = newlen = p->u.array.count; c = ','; /* default separator */ if (!toLocaleString && argc > 0 && !JS_IsUndefined(argv[0])) { sep = JS_ToString(ctx, argv[0]); if (JS_IsException(sep)) goto exception; s = JS_VALUE_GET_STRING(sep); if (s->len == 1 && !s->is_wide_char) c = s->u.str8[0]; else c = -1; // ToString(sep) can detach or resize the arraybuffer as a side effect newlen = p->u.array.count; len = min_int(len, newlen); } string_buffer_init(ctx, b, 0); /* XXX: optimize with direct access */ for(i = 0; i < len; i++) { if (i > 0) { if (c >= 0) { if (string_buffer_putc8(b, c)) goto fail; } else { if (string_buffer_concat(b, s, 0, s->len)) goto fail; } } el = JS_GetPropertyUint32(ctx, this_val, i); /* Can return undefined for example if the typed array is detached */ if (!JS_IsNull(el) && !JS_IsUndefined(el)) { if (JS_IsException(el)) goto fail; if (toLocaleString) { el = JS_ToLocaleStringFree(ctx, el); } if (string_buffer_concat_value_free(b, el)) goto fail; } } // add extra separators in case RAB was resized by evil .valueOf method i = max_int(1, newlen); for(/*empty*/; i < oldlen; i++) { if (c >= 0) { if (string_buffer_putc8(b, c)) goto fail; } else { if (string_buffer_concat(b, s, 0, s->len)) goto fail; } } JS_FreeValue(ctx, sep); return string_buffer_end(b); fail: string_buffer_free(b); JS_FreeValue(ctx, sep); exception: return JS_EXCEPTION; }
O2
c
js_typed_array_join: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r9d, %r13d movq %r8, 0x18(%rsp) movl %ecx, %ebx movq %rsi, %r15 movq %rdi, %r14 movq %rdx, 0x30(%rsp) callq 0x3280b pushq $0x6 popq %r12 testq %rax, %rax je 0x6d59a movq %rax, %rbp movq %rax, %rdi callq 0x32836 testl %eax, %eax je 0x6d5b3 movq %r14, %rdi callq 0x3289b xorl %eax, %eax xorl %ecx, %ecx orq %rcx, %rax movq %r12, %rdx addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl 0x40(%rbp), %esi movl %r13d, 0x2c(%rsp) testl %r13d, %r13d setne %al testl %ebx, %ebx setle %cl pushq $0x3 popq %rdi pushq $0x2c popq %r12 xorl %ebx, %ebx orb %al, %cl movl %esi, 0xc(%rsp) jne 0x6d629 movq 0x18(%rsp), %rcx movq 0x8(%rcx), %rdx movq $0x0, 0x10(%rsp) movl %esi, %r13d movl $0x0, %eax movq %rax, 0x20(%rsp) cmpl $0x3, %edx je 0x6d63e movq (%rcx), %rsi movq %r14, %rdi callq 0x1b03c movq %rdx, %rdi cmpl $0x6, %edi je 0x6d753 cmpl $0x1, 0x4(%rax) jne 0x6d793 movq %rax, %rcx movzbl 0x18(%rax), %r12d jmp 0x6d79a movq $0x0, 0x10(%rsp) movl %esi, %r13d movq $0x0, 0x20(%rsp) movl %esi, 0x28(%rsp) movq %rdi, 0x18(%rsp) leaq 0x38(%rsp), %rsi movq %r14, %rdi movq %rsi, %rbp xorl %edx, %edx callq 0x2e042 testl %r13d, %r13d cmovlel %ebx, %r13d cmpq %rbx, %r13 je 0x6d6ea testq %rbx, %rbx je 0x6d6a1 testl %r12d, %r12d js 0x6d680 movq %rbp, %rdi movl %r12d, %esi callq 0x41425 jmp 0x6d699 movq 0x20(%rsp), %rsi movl 0x4(%rsi), %ecx movl $0x7fffffff, %eax # imm = 0x7FFFFFFF andl %eax, %ecx movq %rbp, %rdi xorl %edx, %edx callq 0x39dad testl %eax, %eax jne 0x6d737 movq %r14, %rdi movq %r15, %rsi movq 0x30(%rsp), %rdx movq %rbx, %rcx callq 0x1e178 leal -0x2(%rdx), %ecx cmpl $0x2, %ecx jb 0x6d6e2 cmpl $0x6, %edx je 0x6d737 cmpl $0x0, 0x2c(%rsp) je 0x6d6d3 movq %r14, %rdi movq %rax, %rsi callq 0x65032 movq %rbp, %rdi movq %rax, %rsi callq 0x41476 testl %eax, %eax jne 0x6d737 incq %rbx jmp 0x6d660 movl 0x28(%rsp), %eax cmpl $0x2, %eax pushq $0x1 popq %rbp cmovgel %eax, %ebp leaq 0x38(%rsp), %rbx movl $0x7fffffff, %r15d # imm = 0x7FFFFFFF cmpl 0xc(%rsp), %ebp jge 0x6d760 testl %r12d, %r12d js 0x6d71a movq %rbx, %rdi movl %r12d, %esi callq 0x41425 jmp 0x6d72f movq 0x20(%rsp), %rsi movl 0x4(%rsi), %ecx andl %r15d, %ecx movq %rbx, %rdi xorl %edx, %edx callq 0x39dad testl %eax, %eax jne 0x6d737 incl %ebp jmp 0x6d702 leaq 0x38(%rsp), %rdi callq 0x2ef01 movq %r14, %rdi movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx callq 0x1801e xorl %eax, %eax xorl %ecx, %ecx pushq $0x6 popq %r12 jmp 0x6d59e movq %r14, %rdi movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx callq 0x1801e leaq 0x38(%rsp), %rdi callq 0x2cad4 movq %rdx, %r12 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %eax jmp 0x6d59e movq %rax, %rcx pushq $-0x1 popq %r12 movl 0xc(%rsp), %eax movl 0x40(%rbp), %esi cmpl %esi, %eax movl %esi, %r13d cmovll %eax, %r13d movq %rcx, 0x10(%rsp) movq %rcx, 0x20(%rsp) jmp 0x6d63e
js_typed_array_join: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r13d, r9d mov [rsp+88h+var_70], r8 mov ebx, ecx mov r15, rsi mov r14, rdi mov [rsp+88h+var_58], rdx call get_typed_array push 6 pop r12 test rax, rax jz short loc_6D59A mov rbp, rax mov rdi, rax call typed_array_is_oob test eax, eax jz short loc_6D5B3 mov rdi, r14 call JS_ThrowTypeErrorArrayBufferOOB loc_6D59A: xor eax, eax xor ecx, ecx loc_6D59E: or rax, rcx mov rdx, r12 add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_6D5B3: mov esi, [rbp+40h] mov [rsp+88h+var_5C], r13d test r13d, r13d setnz al test ebx, ebx setle cl push 3 pop rdi push 2Ch ; ',' pop r12 xor ebx, ebx or cl, al mov [rsp+88h+var_7C], esi jnz short loc_6D629 mov rcx, [rsp+88h+var_70] mov rdx, [rcx+8] mov [rsp+88h+var_78], 0 mov r13d, esi mov eax, 0 mov [rsp+88h+var_68], rax cmp edx, 3 jz short loc_6D63E mov rsi, [rcx] mov rdi, r14 call JS_ToString mov rdi, rdx cmp edi, 6 jz loc_6D753 cmp dword ptr [rax+4], 1 jnz loc_6D793 mov rcx, rax movzx r12d, byte ptr [rax+18h] jmp loc_6D79A loc_6D629: mov [rsp+88h+var_78], 0 mov r13d, esi mov [rsp+88h+var_68], 0 loc_6D63E: mov [rsp+88h+var_60], esi mov [rsp+88h+var_70], rdi lea rsi, [rsp+88h+var_50] mov rdi, r14 mov rbp, rsi xor edx, edx call string_buffer_init test r13d, r13d cmovle r13d, ebx loc_6D660: cmp r13, rbx jz loc_6D6EA test rbx, rbx jz short loc_6D6A1 test r12d, r12d js short loc_6D680 mov rdi, rbp mov esi, r12d call string_buffer_putc8 jmp short loc_6D699 loc_6D680: mov rsi, [rsp+88h+var_68] mov ecx, [rsi+4] mov eax, 7FFFFFFFh and ecx, eax mov rdi, rbp xor edx, edx call string_buffer_concat loc_6D699: test eax, eax jnz loc_6D737 loc_6D6A1: mov rdi, r14 mov rsi, r15 mov rdx, [rsp+88h+var_58] mov rcx, rbx call JS_GetPropertyInt64 lea ecx, [rdx-2] cmp ecx, 2 jb short loc_6D6E2 cmp edx, 6 jz short loc_6D737 cmp [rsp+88h+var_5C], 0 jz short loc_6D6D3 mov rdi, r14 mov rsi, rax call JS_ToLocaleStringFree loc_6D6D3: mov rdi, rbp mov rsi, rax call string_buffer_concat_value_free test eax, eax jnz short loc_6D737 loc_6D6E2: inc rbx jmp loc_6D660 loc_6D6EA: mov eax, [rsp+88h+var_60] cmp eax, 2 push 1 pop rbp cmovge ebp, eax lea rbx, [rsp+88h+var_50] mov r15d, 7FFFFFFFh loc_6D702: cmp ebp, [rsp+88h+var_7C] jge short loc_6D760 test r12d, r12d js short loc_6D71A mov rdi, rbx mov esi, r12d call string_buffer_putc8 jmp short loc_6D72F loc_6D71A: mov rsi, [rsp+88h+var_68] mov ecx, [rsi+4] and ecx, r15d mov rdi, rbx xor edx, edx call string_buffer_concat loc_6D72F: test eax, eax jnz short loc_6D737 inc ebp jmp short loc_6D702 loc_6D737: lea rdi, [rsp+88h+var_50] call string_buffer_free mov rdi, r14 mov rsi, [rsp+88h+var_78] mov rdx, [rsp+88h+var_70] call JS_FreeValue loc_6D753: xor eax, eax xor ecx, ecx push 6 pop r12 jmp loc_6D59E loc_6D760: mov rdi, r14 mov rsi, [rsp+88h+var_78] mov rdx, [rsp+88h+var_70] call JS_FreeValue lea rdi, [rsp+88h+var_50] call string_buffer_end mov r12, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax mov eax, eax jmp loc_6D59E loc_6D793: mov rcx, rax push 0FFFFFFFFFFFFFFFFh pop r12 loc_6D79A: mov eax, [rsp+88h+var_7C] mov esi, [rbp+40h] cmp eax, esi mov r13d, esi cmovl r13d, eax mov [rsp+88h+var_78], rcx mov [rsp+88h+var_68], rcx jmp loc_6D63E
unsigned long long js_typed_array_join( long long a1, long long a2, long long a3, long long a4, long long *a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { int v14; // r13d int v15; // ebx long long typed_array; // rax long long v19; // rbp long long v20; // rdx long long v21; // rcx long long v22; // r8 long long v23; // r9 __m128 v24; // xmm4 __m128 v25; // xmm5 long long v26; // rax unsigned long long v27; // rcx int v29; // esi bool v30; // cl long long v31; // rdi signed int v32; // r12d unsigned long long v33; // rbx long long v34; // rdx long long v35; // r13 long long v36; // rax long long v37; // rdx long long v38; // rdx long long v39; // rcx long long v40; // r8 long long v41; // r9 __m128 v42; // xmm4 __m128 v43; // xmm5 long long PropertyInt64; // rax int v46; // ebp int v47; // eax char v48; // [rsp+0h] [rbp-88h] int v49; // [rsp+Ch] [rbp-7Ch] long long v50; // [rsp+10h] [rbp-78h] long long v52; // [rsp+20h] [rbp-68h] int v53; // [rsp+2Ch] [rbp-5Ch] int v54; // [rsp+30h] [rbp-58h] long long v55[10]; // [rsp+38h] [rbp-50h] BYREF v14 = a6; v15 = a4; v54 = a3; typed_array = get_typed_array(a1, a2, a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); if ( !typed_array ) goto LABEL_4; v19 = typed_array; if ( typed_array_is_oob(typed_array) ) { JS_ThrowTypeErrorArrayBufferOOB(a1, a7, a8, a9, a10, v24, v25, a13, a14, a2, v20, v21, v22, v23, v48); LABEL_4: v26 = 0LL; v27 = 0LL; return v27 | v26; } v29 = *(_DWORD *)(v19 + 64); v53 = v14; v30 = v15 <= 0; v31 = 3LL; v32 = 44; v33 = 0LL; v49 = v29; if ( v14 != 0 || v30 ) { v50 = 0LL; v35 = (unsigned int)v29; v52 = 0LL; } else { v34 = a5[1]; v50 = 0LL; v35 = (unsigned int)v29; v52 = 0LL; if ( (_DWORD)v34 != 3 ) { v36 = JS_ToString(a1, *a5, v34); v31 = v37; if ( (_DWORD)v37 == 6 ) { LABEL_35: v26 = 0LL; v27 = 0LL; return v27 | v26; } if ( *(_DWORD *)(v36 + 4) == 1 ) v32 = *(unsigned __int8 *)(v36 + 24); else v32 = -1; v29 = *(_DWORD *)(v19 + 64); v35 = (unsigned int)v29; if ( v49 < v29 ) v35 = (unsigned int)v49; v50 = v36; v52 = v36; } } string_buffer_init(a1, (long long)v55, 0); if ( (int)v35 <= 0 ) v35 = 0LL; while ( v35 != v33 ) { if ( v33 ) { if ( v32 < 0 ? string_buffer_concat((long long)v55, v52, 0, *(_DWORD *)(v52 + 4) & 0x7FFFFFFF) : (unsigned int)string_buffer_putc8((long long)v55, v32, a7, a8, a9, a10, v42, v43, a13, a14, v38, v39, v40, v41) ) { goto LABEL_34; } } PropertyInt64 = JS_GetPropertyInt64(a1, a2, v54, v33); v39 = (unsigned int)(v38 - 2); if ( (unsigned int)v39 >= 2 ) { if ( (_DWORD)v38 == 6 ) goto LABEL_34; if ( v53 ) PropertyInt64 = JS_ToLocaleStringFree(a1, PropertyInt64, v38); if ( (unsigned int)string_buffer_concat_value_free((long long)v55, PropertyInt64, v38) ) { LABEL_34: string_buffer_free(v55); JS_FreeValue(a1, v50, v31); goto LABEL_35; } } ++v33; } v46 = 1; if ( v29 >= 2 ) v46 = v29; while ( v46 < v49 ) { if ( v32 < 0 ) v47 = string_buffer_concat((long long)v55, v52, 0, *(_DWORD *)(v52 + 4) & 0x7FFFFFFF); else v47 = string_buffer_putc8((long long)v55, v32, a7, a8, a9, a10, v42, v43, a13, a14, v38, v39, v40, v41); if ( v47 ) goto LABEL_34; ++v46; } JS_FreeValue(a1, v50, v31); v26 = string_buffer_end(v55); v27 = v26 & 0xFFFFFFFF00000000LL; v26 = (unsigned int)v26; return v27 | v26; }
js_typed_array_join: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R13D,R9D MOV qword ptr [RSP + 0x18],R8 MOV EBX,ECX MOV R15,RSI MOV R14,RDI MOV qword ptr [RSP + 0x30],RDX CALL 0x0013280b PUSH 0x6 POP R12 TEST RAX,RAX JZ 0x0016d59a MOV RBP,RAX MOV RDI,RAX CALL 0x00132836 TEST EAX,EAX JZ 0x0016d5b3 MOV RDI,R14 CALL 0x0013289b LAB_0016d59a: XOR EAX,EAX XOR ECX,ECX LAB_0016d59e: OR RAX,RCX MOV RDX,R12 ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0016d5b3: MOV ESI,dword ptr [RBP + 0x40] MOV dword ptr [RSP + 0x2c],R13D TEST R13D,R13D SETNZ AL TEST EBX,EBX SETLE CL PUSH 0x3 POP RDI PUSH 0x2c POP R12 XOR EBX,EBX OR CL,AL MOV dword ptr [RSP + 0xc],ESI JNZ 0x0016d629 MOV RCX,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RCX + 0x8] MOV qword ptr [RSP + 0x10],0x0 MOV R13D,ESI MOV EAX,0x0 MOV qword ptr [RSP + 0x20],RAX CMP EDX,0x3 JZ 0x0016d63e MOV RSI,qword ptr [RCX] MOV RDI,R14 CALL 0x0011b03c MOV RDI,RDX CMP EDI,0x6 JZ 0x0016d753 CMP dword ptr [RAX + 0x4],0x1 JNZ 0x0016d793 MOV RCX,RAX MOVZX R12D,byte ptr [RAX + 0x18] JMP 0x0016d79a LAB_0016d629: MOV qword ptr [RSP + 0x10],0x0 MOV R13D,ESI MOV qword ptr [RSP + 0x20],0x0 LAB_0016d63e: MOV dword ptr [RSP + 0x28],ESI MOV qword ptr [RSP + 0x18],RDI LEA RSI,[RSP + 0x38] MOV RDI,R14 MOV RBP,RSI XOR EDX,EDX CALL 0x0012e042 TEST R13D,R13D CMOVLE R13D,EBX LAB_0016d660: CMP R13,RBX JZ 0x0016d6ea TEST RBX,RBX JZ 0x0016d6a1 TEST R12D,R12D JS 0x0016d680 MOV RDI,RBP MOV ESI,R12D CALL 0x00141425 JMP 0x0016d699 LAB_0016d680: MOV RSI,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RSI + 0x4] MOV EAX,0x7fffffff AND ECX,EAX MOV RDI,RBP XOR EDX,EDX CALL 0x00139dad LAB_0016d699: TEST EAX,EAX JNZ 0x0016d737 LAB_0016d6a1: MOV RDI,R14 MOV RSI,R15 MOV RDX,qword ptr [RSP + 0x30] MOV RCX,RBX CALL 0x0011e178 LEA ECX,[RDX + -0x2] CMP ECX,0x2 JC 0x0016d6e2 CMP EDX,0x6 JZ 0x0016d737 CMP dword ptr [RSP + 0x2c],0x0 JZ 0x0016d6d3 MOV RDI,R14 MOV RSI,RAX CALL 0x00165032 LAB_0016d6d3: MOV RDI,RBP MOV RSI,RAX CALL 0x00141476 TEST EAX,EAX JNZ 0x0016d737 LAB_0016d6e2: INC RBX JMP 0x0016d660 LAB_0016d6ea: MOV EAX,dword ptr [RSP + 0x28] CMP EAX,0x2 PUSH 0x1 POP RBP CMOVGE EBP,EAX LEA RBX,[RSP + 0x38] MOV R15D,0x7fffffff LAB_0016d702: CMP EBP,dword ptr [RSP + 0xc] JGE 0x0016d760 TEST R12D,R12D JS 0x0016d71a MOV RDI,RBX MOV ESI,R12D CALL 0x00141425 JMP 0x0016d72f LAB_0016d71a: MOV RSI,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RSI + 0x4] AND ECX,R15D MOV RDI,RBX XOR EDX,EDX CALL 0x00139dad LAB_0016d72f: TEST EAX,EAX JNZ 0x0016d737 INC EBP JMP 0x0016d702 LAB_0016d737: LEA RDI,[RSP + 0x38] CALL 0x0012ef01 MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x18] CALL 0x0011801e LAB_0016d753: XOR EAX,EAX XOR ECX,ECX PUSH 0x6 POP R12 JMP 0x0016d59e LAB_0016d760: MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x18] CALL 0x0011801e LEA RDI,[RSP + 0x38] CALL 0x0012cad4 MOV R12,RDX MOV RCX,-0x100000000 AND RCX,RAX MOV EAX,EAX JMP 0x0016d59e LAB_0016d793: MOV RCX,RAX PUSH -0x1 POP R12 LAB_0016d79a: MOV EAX,dword ptr [RSP + 0xc] MOV ESI,dword ptr [RBP + 0x40] CMP EAX,ESI MOV R13D,ESI CMOVL R13D,EAX MOV qword ptr [RSP + 0x10],RCX MOV qword ptr [RSP + 0x20],RCX JMP 0x0016d63e
int1 [16] js_typed_array_join(int8 param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5,int param_6) { uint uVar1; int iVar2; long lVar3; int8 uVar4; ulong uVar5; ulong uVar6; uint uVar7; uint uVar8; uint uVar9; int1 auVar10 [16]; int1 auVar11 [12]; int8 uStack_90; long local_68; int1 local_50 [32]; lVar3 = get_typed_array(); uStack_90 = 6; if (lVar3 != 0) { iVar2 = typed_array_is_oob(lVar3); if (iVar2 == 0) { uVar1 = *(uint *)(lVar3 + 0x40); uVar9 = 0x2c; uVar6 = 0; uVar8 = uVar1; uVar7 = uVar1; if (param_4 < 1 || param_6 != 0) { auVar10 = ZEXT816(3) << 0x40; } else { auVar10 = ZEXT816(3) << 0x40; if ((int)param_5[1] != 3) { auVar10 = JS_ToString(param_1,*param_5); if (auVar10._8_4_ == 6) goto LAB_0016d753; if (*(int *)(auVar10._0_8_ + 4) == 1) { uVar9 = (uint)*(byte *)(auVar10._0_8_ + 0x18); } else { uVar9 = 0xffffffff; } uVar8 = *(uint *)(lVar3 + 0x40); uVar7 = uVar8; if ((int)uVar1 < (int)uVar8) { uVar7 = uVar1; } } } local_68 = auVar10._0_8_; string_buffer_init(param_1,local_50,0); uVar5 = (ulong)uVar7; if ((int)uVar7 < 1) { uVar5 = uVar6; } for (; uVar5 != uVar6; uVar6 = uVar6 + 1) { if (uVar6 != 0) { if ((int)uVar9 < 0) { iVar2 = string_buffer_concat(local_50,local_68,0,*(uint *)(local_68 + 4) & 0x7fffffff); } else { iVar2 = string_buffer_putc8(local_50,uVar9); } if (iVar2 != 0) goto LAB_0016d737; } auVar11 = JS_GetPropertyInt64(param_1,param_2,param_3,uVar6); uVar4 = auVar11._0_8_; if (1 < auVar11._8_4_ - 2U) { if (auVar11._8_4_ == 6) goto LAB_0016d737; if (param_6 != 0) { uVar4 = JS_ToLocaleStringFree(param_1,uVar4); } iVar2 = string_buffer_concat_value_free(local_50,uVar4); if (iVar2 != 0) goto LAB_0016d737; } } uVar7 = 1; if (1 < (int)uVar8) { uVar7 = uVar8; } for (; (int)uVar7 < (int)uVar1; uVar7 = uVar7 + 1) { if ((int)uVar9 < 0) { iVar2 = string_buffer_concat(local_50,local_68,0,*(uint *)(local_68 + 4) & 0x7fffffff); } else { iVar2 = string_buffer_putc8(local_50,uVar9); } if (iVar2 != 0) goto LAB_0016d737; } JS_FreeValue(param_1,local_68,auVar10._8_8_); auVar10 = string_buffer_end(local_50); uStack_90 = auVar10._8_8_; uVar5 = auVar10._0_8_ & 0xffffffff00000000; uVar6 = auVar10._0_8_ & 0xffffffff; goto LAB_0016d59e; } JS_ThrowTypeErrorArrayBufferOOB(param_1); } uVar6 = 0; uVar5 = 0; goto LAB_0016d59e; LAB_0016d737: string_buffer_free(local_50); JS_FreeValue(param_1,local_68,auVar10._8_8_); LAB_0016d753: uVar6 = 0; uVar5 = 0; uStack_90 = 6; LAB_0016d59e: auVar10._0_8_ = uVar6 | uVar5; auVar10._8_8_ = uStack_90; return auVar10; }
49,829
testing::Message::Message()
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
Message::Message() : ss_(new ::std::stringstream) { // By default, we want there to be enough precision when printing // a double to a Message. *ss_ << std::setprecision(std::numeric_limits<double>::digits10 + 2); }
O0
cpp
testing::Message::Message(): subq $0x48, %rsp movq %rdi, 0x40(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x18(%rsp) movq %rax, 0x20(%rsp) movl $0x188, %edi # imm = 0x188 callq 0xb480 movq %rax, %rdi movq %rdi, %rax movq %rax, 0x28(%rsp) callq 0xb300 jmp 0x22eb4 movq 0x28(%rsp), %rsi movq 0x18(%rsp), %rdi callq 0x48760 movq 0x20(%rsp), %rdi callq 0x11d70 movq %rax, 0x10(%rsp) jmp 0x22ed4 movq 0x10(%rsp), %rax addq $0x10, %rax movq %rax, (%rsp) movl $0x11, %edi callq 0x48790 movl %eax, 0xc(%rsp) jmp 0x22ef1 movq (%rsp), %rdi movl 0xc(%rsp), %eax movl %eax, 0x30(%rsp) movl 0x30(%rsp), %esi callq 0xb860 jmp 0x22f08 addq $0x48, %rsp retq movq 0x28(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) movl $0x188, %esi # imm = 0x188 callq 0xb4a0 jmp 0x22f44 movq 0x18(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) callq 0xfb60 movq 0x38(%rsp), %rdi callq 0xb910 nop
_ZN7testing7MessageC2Ev: sub rsp, 48h; Alternative name is 'testing::Message::Message(void)' mov [rsp+48h+var_8], rdi mov rax, [rsp+48h+var_8] mov [rsp+48h+var_30], rax mov [rsp+48h+var_28], rax mov edi, 188h; unsigned __int64 call __Znwm; operator new(ulong) mov rdi, rax mov rax, rdi mov [rsp+48h+var_20], rax call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) jmp short $+2 loc_22EB4: mov rsi, [rsp+48h+var_20] mov rdi, [rsp+48h+var_30] call _ZNSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEPS5_; std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::unique_ptr<std::default_delete<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>,void>(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>*) mov rdi, [rsp+48h+var_28] call _ZNKSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEdeEv; std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*(void) mov [rsp+48h+var_38], rax jmp short $+2 loc_22ED4: mov rax, [rsp+48h+var_38] add rax, 10h mov [rsp+48h+var_48], rax mov edi, 11h; int call _ZSt12setprecisioni; std::setprecision(int) mov [rsp+48h+var_3C], eax jmp short $+2 loc_22EF1: mov rdi, [rsp+48h+var_48] mov eax, [rsp+48h+var_3C] mov [rsp+48h+var_18], eax mov esi, [rsp+48h+var_18] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setprecision) jmp short $+2 loc_22F08: add rsp, 48h retn mov rdi, [rsp+arg_20]; void * mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax mov esi, 188h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_22F44 mov rdi, [rsp+arg_10] mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax call _ZNSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::~unique_ptr() loc_22F44: mov rdi, [rsp+arg_30] call __Unwind_Resume
long long testing::Message::Message(testing::Message *this) { long long v2; // [rsp+0h] [rbp-48h] long long v3; // [rsp+28h] [rbp-20h] unsigned int v4; // [rsp+30h] [rbp-18h] v3 = operator new(0x188uLL); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v3); std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::unique_ptr<std::default_delete<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>,void>( this, v3); v2 = std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*((long long)this) + 16; v4 = std::setprecision(17); return std::operator<<<char,std::char_traits<char>>(v2, v4); }
Message: SUB RSP,0x48 MOV qword ptr [RSP + 0x40],RDI MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RAX MOV EDI,0x188 CALL 0x0010b480 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RSP + 0x28],RAX LAB_00122ead: CALL 0x0010b300 JMP 0x00122eb4 LAB_00122eb4: MOV RSI,qword ptr [RSP + 0x28] MOV RDI,qword ptr [RSP + 0x18] CALL 0x00148760 MOV RDI,qword ptr [RSP + 0x20] LAB_00122ec8: CALL 0x00111d70 MOV qword ptr [RSP + 0x10],RAX JMP 0x00122ed4 LAB_00122ed4: MOV RAX,qword ptr [RSP + 0x10] ADD RAX,0x10 MOV qword ptr [RSP],RAX MOV EDI,0x11 CALL 0x00148790 MOV dword ptr [RSP + 0xc],EAX JMP 0x00122ef1 LAB_00122ef1: MOV RDI,qword ptr [RSP] MOV EAX,dword ptr [RSP + 0xc] MOV dword ptr [RSP + 0x30],EAX MOV ESI,dword ptr [RSP + 0x30] CALL 0x0010b860 LAB_00122f06: JMP 0x00122f08 LAB_00122f08: ADD RSP,0x48 RET
/* testing::Message::Message() */ void __thiscall testing::Message::Message(Message *this) { int4 uVar1; stringstream *this_00; long lVar2; this_00 = (stringstream *)operator_new(0x188); /* try { // try from 00122ead to 00122eb1 has its CatchHandler @ 00122f0d */ std::__cxx11::stringstream::stringstream(this_00); std::unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>>:: unique_ptr<std::default_delete<std::__cxx11::stringstream>,void> ((unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>> *)this,this_00); /* try { // try from 00122ec8 to 00122f05 has its CatchHandler @ 00122f2c */ lVar2 = std:: unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>>:: operator*((unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>> *)this); uVar1 = std::setprecision(0x11); std::operator<<(lVar2 + 0x10,uVar1); return; }
49,830
my_sleep
eloqsql/mysys/my_sleep.c
void my_sleep(ulong m_seconds) { #if defined(_WIN32) Sleep(m_seconds/1000+1); /* Sleep() has millisecond arg */ #elif defined(HAVE_SELECT) struct timeval t; t.tv_sec= m_seconds / 1000000L; t.tv_usec= m_seconds % 1000000L; select(0,0,0,0,&t); /* sleep */ #else uint sec= (uint) ((m_seconds + 999999L) / 1000000L); ulong start= (ulong) time((time_t*) 0); while ((ulong) time((time_t*) 0) < start+sec); #endif }
O3
c
my_sleep: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB movq %rdi, %rax mulq %rcx shrq $0x12, %rdx leaq -0x10(%rbp), %r8 movq %rdx, (%r8) imulq $0xf4240, %rdx, %rax # imm = 0xF4240 subq %rax, %rdi movq %rdi, 0x8(%r8) xorl %edi, %edi xorl %esi, %esi xorl %edx, %edx xorl %ecx, %ecx callq 0x36090 addq $0x10, %rsp popq %rbp retq
my_sleep: push rbp mov rbp, rsp sub rsp, 10h mov rcx, 431BDE82D7B634DBh mov rax, rdi mul rcx shr rdx, 12h lea r8, [rbp+var_10] mov [r8], rdx imul rax, rdx, 0F4240h sub rdi, rax mov [r8+8], rdi xor edi, edi xor esi, esi xor edx, edx xor ecx, ecx call _select add rsp, 10h pop rbp retn
long long my_sleep() { return select(0LL, 0LL, 0LL, 0LL); }
my_sleep: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV RCX,0x431bde82d7b634db MOV RAX,RDI MUL RCX SHR RDX,0x12 LEA R8,[RBP + -0x10] MOV qword ptr [R8],RDX IMUL RAX,RDX,0xf4240 SUB RDI,RAX MOV qword ptr [R8 + 0x8],RDI XOR EDI,EDI XOR ESI,ESI XOR EDX,EDX XOR ECX,ECX CALL 0x00136090 ADD RSP,0x10 POP RBP RET
void my_sleep(ulong param_1) { timeval local_18; local_18.tv_sec = param_1 / 1000000; local_18.tv_usec = param_1 % 1000000; select(0,(fd_set *)0x0,(fd_set *)0x0,(fd_set *)0x0,&local_18); return; }
49,831
gguf_write_to_file
Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp
bool gguf_write_to_file(const struct gguf_context * ctx, const char * fname, bool only_meta) { FILE * file = ggml_fopen(fname, "wb"); if (!file) { fprintf(stderr, "%s: failed to open file '%s' for writing GGUF data\n", __func__, fname); return false; } std::vector<int8_t> buf; gguf_write_to_buf(ctx, buf, only_meta); const bool ok = fwrite(buf.data(), 1, buf.size(), file) == buf.size(); fclose(file); return ok; }
O0
cpp
gguf_write_to_file: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movb %dl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) movq -0x18(%rbp), %rdi leaq 0x34238(%rip), %rsi # 0xc2bfa callq 0x464a0 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x8e9fe movq 0x515f7(%rip), %rax # 0xdffd0 movq (%rax), %rdi movq -0x18(%rbp), %rcx leaq 0x34216(%rip), %rsi # 0xc2bfd leaq 0x34243(%rip), %rdx # 0xc2c31 movb $0x0, %al callq 0x47a10 movb $0x0, -0x1(%rbp) jmp 0x8eaa2 leaq -0x40(%rbp), %rdi movq %rdi, -0x58(%rbp) callq 0x42530 movq -0x58(%rbp), %rsi movq -0x10(%rbp), %rdi movzbl -0x19(%rbp), %edx andl $0x1, %edx callq 0x453b0 jmp 0x8ea21 leaq -0x40(%rbp), %rdi movq %rdi, -0x70(%rbp) callq 0x461b0 movq -0x70(%rbp), %rdi movq %rax, -0x68(%rbp) callq 0x49650 movq -0x68(%rbp), %rdi movq %rax, %rdx movq -0x28(%rbp), %rcx movl $0x1, %esi callq 0x49d20 movq %rax, -0x60(%rbp) jmp 0x8ea56 leaq -0x40(%rbp), %rdi callq 0x49650 movq %rax, %rcx movq -0x60(%rbp), %rax subq %rcx, %rax sete -0x4d(%rbp) movq -0x28(%rbp), %rdi callq 0x45e00 jmp 0x8ea78 movb -0x4d(%rbp), %al andb $0x1, %al movb %al, -0x1(%rbp) leaq -0x40(%rbp), %rdi callq 0x44b40 jmp 0x8eaa2 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x48(%rbp) movl %eax, -0x4c(%rbp) leaq -0x40(%rbp), %rdi callq 0x44b40 jmp 0x8eaad movb -0x1(%rbp), %al andb $0x1, %al addq $0x70, %rsp popq %rbp retq movq -0x48(%rbp), %rdi callq 0x48fc0 nopw %cs:(%rax,%rax)
gguf_write_to_file: push rbp mov rbp, rsp sub rsp, 70h mov al, dl mov [rbp+var_10], rdi mov [rbp+var_18], rsi and al, 1 mov [rbp+var_19], al mov rdi, [rbp+var_18] lea rsi, aWb; "wb" call _ggml_fopen mov [rbp+var_28], rax cmp [rbp+var_28], 0 jnz short loc_8E9FE mov rax, cs:stderr_ptr mov rdi, [rax] mov rcx, [rbp+var_18] lea rsi, aSFailedToOpenF; "%s: failed to open file '%s' for writin"... lea rdx, aGgufWriteToFil_0; "gguf_write_to_file" mov al, 0 call _fprintf mov [rbp+var_1], 0 jmp loc_8EAA2 loc_8E9FE: lea rdi, [rbp+var_40] mov [rbp+var_58], rdi call __ZNSt6vectorIaSaIaEEC2Ev; std::vector<signed char>::vector(void) mov rsi, [rbp+var_58] mov rdi, [rbp+var_10] movzx edx, [rbp+var_19] and edx, 1 call __Z17gguf_write_to_bufPK12gguf_contextRSt6vectorIaSaIaEEb; gguf_write_to_buf(gguf_context const*,std::vector<signed char> &,bool) jmp short $+2 loc_8EA21: lea rdi, [rbp+var_40] mov [rbp+var_70], rdi call __ZNSt6vectorIaSaIaEE4dataEv; std::vector<signed char>::data(void) mov rdi, [rbp+var_70] mov [rbp+var_68], rax call __ZNKSt6vectorIaSaIaEE4sizeEv; std::vector<signed char>::size(void) mov rdi, [rbp+var_68] mov rdx, rax mov rcx, [rbp+var_28] mov esi, 1 call _fwrite mov [rbp+var_60], rax jmp short $+2 loc_8EA56: lea rdi, [rbp+var_40] call __ZNKSt6vectorIaSaIaEE4sizeEv; std::vector<signed char>::size(void) mov rcx, rax mov rax, [rbp+var_60] sub rax, rcx setz [rbp+var_4D] mov rdi, [rbp+var_28] call _fclose jmp short $+2 loc_8EA78: mov al, [rbp+var_4D] and al, 1 mov [rbp+var_1], al lea rdi, [rbp+var_40] call __ZNSt6vectorIaSaIaEED2Ev; std::vector<signed char>::~vector() jmp short loc_8EAA2 mov rcx, rax mov eax, edx mov [rbp+var_48], rcx mov [rbp+var_4C], eax lea rdi, [rbp+var_40] call __ZNSt6vectorIaSaIaEED2Ev; std::vector<signed char>::~vector() jmp short loc_8EAAD loc_8EAA2: mov al, [rbp+var_1] and al, 1 add rsp, 70h pop rbp retn loc_8EAAD: mov rdi, [rbp+var_48] call __Unwind_Resume
bool gguf_write_to_file(long long a1, const char *a2, char a3) { long long v3; // rax long long v5; // [rsp+8h] [rbp-68h] long long v6; // [rsp+10h] [rbp-60h] bool v7; // [rsp+23h] [rbp-4Dh] _BYTE v8[24]; // [rsp+30h] [rbp-40h] BYREF long long v9; // [rsp+48h] [rbp-28h] char v10; // [rsp+57h] [rbp-19h] const char *v11; // [rsp+58h] [rbp-18h] long long v12; // [rsp+60h] [rbp-10h] bool v13; // [rsp+6Fh] [rbp-1h] v12 = a1; v11 = a2; v10 = a3 & 1; v9 = ggml_fopen((long long)a2, (long long)"wb"); if ( v9 ) { std::vector<signed char>::vector(); gguf_write_to_buf(v12, (long long)v8, v10 & 1); v5 = std::vector<signed char>::data(v8); v3 = std::vector<signed char>::size(v8); v6 = fwrite(v5, 1LL, v3, v9); v7 = v6 == std::vector<signed char>::size(v8); fclose(v9); v13 = v7; std::vector<signed char>::~vector(v8); } else { fprintf(stderr, "%s: failed to open file '%s' for writing GGUF data\n", "gguf_write_to_file", v11); return 0; } return v13; }
gguf_write_to_file: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV AL,DL MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI AND AL,0x1 MOV byte ptr [RBP + -0x19],AL MOV RDI,qword ptr [RBP + -0x18] LEA RSI,[0x1c2bfa] CALL 0x001464a0 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0018e9fe MOV RAX,qword ptr [0x001dffd0] MOV RDI,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x18] LEA RSI,[0x1c2bfd] LEA RDX,[0x1c2c31] MOV AL,0x0 CALL 0x00147a10 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0018eaa2 LAB_0018e9fe: LEA RDI,[RBP + -0x40] MOV qword ptr [RBP + -0x58],RDI CALL 0x00142530 MOV RSI,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RBP + -0x10] MOVZX EDX,byte ptr [RBP + -0x19] LAB_0018ea17: AND EDX,0x1 CALL 0x001453b0 JMP 0x0018ea21 LAB_0018ea21: LEA RDI,[RBP + -0x40] MOV qword ptr [RBP + -0x70],RDI CALL 0x001461b0 MOV RDI,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x68],RAX CALL 0x00149650 MOV RDI,qword ptr [RBP + -0x68] MOV RDX,RAX MOV RCX,qword ptr [RBP + -0x28] MOV ESI,0x1 CALL 0x00149d20 MOV qword ptr [RBP + -0x60],RAX JMP 0x0018ea56 LAB_0018ea56: LEA RDI,[RBP + -0x40] CALL 0x00149650 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x60] SUB RAX,RCX SETZ byte ptr [RBP + -0x4d] MOV RDI,qword ptr [RBP + -0x28] CALL 0x00145e00 LAB_0018ea76: JMP 0x0018ea78 LAB_0018ea78: MOV AL,byte ptr [RBP + -0x4d] AND AL,0x1 MOV byte ptr [RBP + -0x1],AL LEA RDI,[RBP + -0x40] CALL 0x00144b40 JMP 0x0018eaa2 LAB_0018eaa2: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x70 POP RBP RET
ulong gguf_write_to_file(gguf_context *param_1,int8 param_2,byte param_3) { int iVar1; int4 extraout_var; void *__ptr; size_t sVar2; size_t sVar3; int8 uVar4; vector<signed_char,std::allocator<signed_char>> local_48 [24]; FILE *local_30; byte local_21; int8 local_20; gguf_context *local_18; int1 local_9; local_21 = param_3 & 1; local_20 = param_2; local_18 = param_1; local_30 = (FILE *)ggml_fopen(param_2,&DAT_001c2bfa); if (local_30 == (FILE *)0x0) { iVar1 = fprintf(*(FILE **)PTR_stderr_001dffd0, "%s: failed to open file \'%s\' for writing GGUF data\n","gguf_write_to_file", local_20); uVar4 = CONCAT44(extraout_var,iVar1); local_9 = 0; } else { std::vector<signed_char,std::allocator<signed_char>>::vector(local_48); /* try { // try from 0018ea17 to 0018ea75 has its CatchHandler @ 0018ea8b */ gguf_write_to_buf(local_18,(vector *)local_48,(bool)(local_21 & 1)); __ptr = (void *)std::vector<signed_char,std::allocator<signed_char>>::data(local_48); sVar2 = std::vector<signed_char,std::allocator<signed_char>>::size(local_48); sVar2 = fwrite(__ptr,1,sVar2,local_30); sVar3 = std::vector<signed_char,std::allocator<signed_char>>::size(local_48); fclose(local_30); local_9 = sVar2 == sVar3; uVar4 = std::vector<signed_char,std::allocator<signed_char>>::~vector(local_48); } return CONCAT71((int7)((ulong)uVar4 >> 8),local_9) & 0xffffffffffffff01; }
49,832
gguf_write_to_file
Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp
bool gguf_write_to_file(const struct gguf_context * ctx, const char * fname, bool only_meta) { FILE * file = ggml_fopen(fname, "wb"); if (!file) { fprintf(stderr, "%s: failed to open file '%s' for writing GGUF data\n", __func__, fname); return false; } std::vector<int8_t> buf; gguf_write_to_buf(ctx, buf, only_meta); const bool ok = fwrite(buf.data(), 1, buf.size(), file) == buf.size(); fclose(file); return ok; }
O3
cpp
gguf_write_to_file: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %r15 leaq 0x1d6f6(%rip), %rsi # 0x5db0e movq %r14, %rdi callq 0x172a0 testq %rax, %rax je 0x40499 movq %rax, %rbx xorps %xmm0, %xmm0 movq %rsp, %rsi movaps %xmm0, (%rsi) movq $0x0, 0x10(%rsi) movzbl %bpl, %edx movq %r15, %rdi callq 0x16df0 movq (%rsp), %rdi movq 0x8(%rsp), %rdx subq %rdi, %rdx movl $0x1, %esi movq %rbx, %rcx callq 0x181d0 movq 0x8(%rsp), %rcx subq (%rsp), %rcx cmpq %rcx, %rax sete %bpl movq %rbx, %rdi callq 0x17070 movq (%rsp), %rdi testq %rdi, %rdi je 0x4048c movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x170d0 movl %ebp, %eax addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq 0x2db28(%rip), %rax # 0x6dfc8 movq (%rax), %rdi leaq 0x1d667(%rip), %rsi # 0x5db11 leaq 0x1d694(%rip), %rdx # 0x5db45 xorl %ebp, %ebp movq %r14, %rcx xorl %eax, %eax callq 0x17890 jmp 0x4048c movq %rax, %rbx movq (%rsp), %rdi testq %rdi, %rdi je 0x404d8 movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x170d0 movq %rbx, %rdi callq 0x17e90
gguf_write_to_file: push rbp push r15 push r14 push rbx sub rsp, 18h mov ebp, edx mov r14, rsi mov r15, rdi lea rsi, aWb; "wb" mov rdi, r14 call _ggml_fopen test rax, rax jz short loc_40499 mov rbx, rax xorps xmm0, xmm0 mov rsi, rsp movaps xmmword ptr [rsi], xmm0 mov qword ptr [rsi+10h], 0 movzx edx, bpl mov rdi, r15 call __Z17gguf_write_to_bufPK12gguf_contextRSt6vectorIaSaIaEEb; gguf_write_to_buf(gguf_context const*,std::vector<signed char> &,bool) mov rdi, [rsp+38h+var_38] mov rdx, [rsp+38h+var_30] sub rdx, rdi mov esi, 1 mov rcx, rbx call _fwrite mov rcx, [rsp+38h+var_30] sub rcx, [rsp+38h+var_38] cmp rax, rcx setz bpl mov rdi, rbx call _fclose mov rdi, [rsp+38h+var_38]; void * test rdi, rdi jz short loc_4048C mov rsi, [rsp+38h+var_28] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4048C: mov eax, ebp add rsp, 18h pop rbx pop r14 pop r15 pop rbp retn loc_40499: mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aSFailedToOpenF; "%s: failed to open file '%s' for writin"... lea rdx, aGgufWriteToFil_0; "gguf_write_to_file" xor ebp, ebp mov rcx, r14 xor eax, eax call _fprintf jmp short loc_4048C mov rbx, rax mov rdi, [rsp+0]; void * test rdi, rdi jz short loc_404D8 mov rsi, [rsp+arg_8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_404D8: mov rdi, rbx call __Unwind_Resume
long long gguf_write_to_file(_QWORD *a1, const char *a2, unsigned int a3) { long long v4; // rax long long v5; // rbx long long v6; // rax __int128 v8; // [rsp+0h] [rbp-38h] BYREF long long v9; // [rsp+10h] [rbp-28h] v4 = ggml_fopen(a2, "wb"); if ( v4 ) { v5 = v4; v8 = 0LL; v9 = 0LL; gguf_write_to_buf(a1, (long long)&v8, (unsigned __int8)a3); v6 = fwrite(v8, 1LL, *((_QWORD *)&v8 + 1) - v8, v5); LOBYTE(a3) = v6 == *((_QWORD *)&v8 + 1) - (_QWORD)v8; fclose(v5); if ( (_QWORD)v8 ) operator delete((void *)v8, v9 - v8); } else { a3 = 0; fprintf(stderr, "%s: failed to open file '%s' for writing GGUF data\n", "gguf_write_to_file", a2); } return a3; }
gguf_write_to_file: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV EBP,EDX MOV R14,RSI MOV R15,RDI LEA RSI,[0x15db0e] MOV RDI,R14 CALL 0x001172a0 TEST RAX,RAX JZ 0x00140499 MOV RBX,RAX XORPS XMM0,XMM0 MOV RSI,RSP MOVAPS xmmword ptr [RSI],XMM0 MOV qword ptr [RSI + 0x10],0x0 LAB_00140439: MOVZX EDX,BPL MOV RDI,R15 CALL 0x00116df0 LAB_00140445: MOV RDI,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] SUB RDX,RDI MOV ESI,0x1 MOV RCX,RBX CALL 0x001181d0 MOV RCX,qword ptr [RSP + 0x8] SUB RCX,qword ptr [RSP] CMP RAX,RCX SETZ BPL MOV RDI,RBX CALL 0x00117070 MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x0014048c MOV RSI,qword ptr [RSP + 0x10] SUB RSI,RDI CALL 0x001170d0 LAB_0014048c: MOV EAX,EBP ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP RET LAB_00140499: MOV RAX,qword ptr [0x0016dfc8] MOV RDI,qword ptr [RAX] LEA RSI,[0x15db11] LEA RDX,[0x15db45] XOR EBP,EBP MOV RCX,R14 XOR EAX,EAX CALL 0x00117890 JMP 0x0014048c
bool gguf_write_to_file(gguf_context *param_1,char *param_2,bool param_3) { FILE *__s; size_t sVar1; bool bVar2; void *local_38; long lStack_30; long local_28; __s = ggml_fopen(param_2,"wb"); if (__s == (FILE *)0x0) { bVar2 = false; fprintf(*(FILE **)PTR_stderr_0016dfc8,"%s: failed to open file \'%s\' for writing GGUF data\n", "gguf_write_to_file",param_2); } else { local_38 = (void *)0x0; lStack_30 = 0; local_28 = 0; /* try { // try from 00140439 to 00140444 has its CatchHandler @ 001404bf */ gguf_write_to_buf(param_1,(vector *)&local_38,param_3); sVar1 = fwrite(local_38,1,lStack_30 - (long)local_38,__s); bVar2 = sVar1 == lStack_30 - (long)local_38; fclose(__s); if (local_38 != (void *)0x0) { operator_delete(local_38,local_28 - (long)local_38); } } return bVar2; }
49,833
lshift
eloqsql/strings/dtoa.c
static Bigint *lshift(Bigint *b, int k, Stack_alloc *alloc) { int i, k1, n, n1; Bigint *b1; ULong *x, *x1, *xe, z; n= k >> 5; k1= b->k; n1= n + b->wds + 1; for (i= b->maxwds; n1 > i; i<<= 1) k1++; b1= Balloc(k1, alloc); x1= b1->p.x; for (i= 0; i < n; i++) *x1++= 0; x= b->p.x; xe= x + b->wds; if (k&= 0x1f) { k1= 32 - k; z= 0; do { *x1++= *x << k | z; z= *x++ >> k1; } while (x < xe); if ((*x1= z)) ++n1; } else do *x1++= *x++; while (x < xe); b1->wds= n1 - 1; Bfree(b, alloc); return b1; }
O3
c
lshift: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %esi, %r15d movq %rdi, %r14 movl %esi, %r12d shrl $0x5, %r12d movl 0x8(%rdi), %edi movl 0xc(%r14), %eax movl 0x14(%r14), %ebx addl %r12d, %ebx cmpl %eax, %ebx jl 0x5ce49 incl %edi addl %eax, %eax jmp 0x5ce3f movq %rdx, -0x38(%rbp) movq %rdx, %rsi callq 0x5c9ec movq (%rax), %r13 cmpl $0x20, %r15d jb 0x5ce80 decl %r12d leaq 0x4(,%r12,4), %rdx movq %r13, %rdi xorl %esi, %esi movq %rax, -0x30(%rbp) callq 0x24190 movq -0x30(%rbp), %rax leaq 0x4(%r13,%r12,4), %r13 movq (%r14), %rdx movslq 0x14(%r14), %rcx leaq (%rdx,%rcx,4), %rsi andl $0x1f, %r15d je 0x5cecc movl $0x20, %r9d subl %r15d, %r9d xorl %edi, %edi movl (%rdx), %r8d movl %r15d, %ecx shll %cl, %r8d orl %edi, %r8d movl %r8d, (%r13) addq $0x4, %r13 movl (%rdx), %edi addq $0x4, %rdx movl %r9d, %ecx shrl %cl, %edi cmpq %rsi, %rdx jb 0x5ce9c movl %edi, (%r13) cmpl $0x1, %edi sbbl $-0x1, %ebx jmp 0x5cedf movl (%rdx), %ecx addq $0x4, %rdx movl %ecx, (%r13) addq $0x4, %r13 cmpq %rsi, %rdx jb 0x5cecc movl %ebx, 0x14(%rax) movq %r14, %rdi movq -0x38(%rbp), %rsi movq %rax, %rbx callq 0x5cde5 movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
lshift: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15d, esi mov r14, rdi mov r12d, esi shr r12d, 5 mov edi, [rdi+8] mov eax, [r14+0Ch] mov ebx, [r14+14h] add ebx, r12d loc_5CE3F: cmp ebx, eax jl short loc_5CE49 inc edi add eax, eax jmp short loc_5CE3F loc_5CE49: mov [rbp+var_38], rdx mov rsi, rdx call Balloc mov r13, [rax] cmp r15d, 20h ; ' ' jb short loc_5CE80 dec r12d lea rdx, ds:4[r12*4] mov rdi, r13 xor esi, esi mov [rbp+var_30], rax call _memset mov rax, [rbp+var_30] lea r13, [r13+r12*4+4] loc_5CE80: mov rdx, [r14] movsxd rcx, dword ptr [r14+14h] lea rsi, [rdx+rcx*4] and r15d, 1Fh jz short loc_5CECC mov r9d, 20h ; ' ' sub r9d, r15d xor edi, edi loc_5CE9C: mov r8d, [rdx] mov ecx, r15d shl r8d, cl or r8d, edi mov [r13+0], r8d add r13, 4 mov edi, [rdx] add rdx, 4 mov ecx, r9d shr edi, cl cmp rdx, rsi jb short loc_5CE9C mov [r13+0], edi cmp edi, 1 sbb ebx, 0FFFFFFFFh jmp short loc_5CEDF loc_5CECC: mov ecx, [rdx] add rdx, 4 mov [r13+0], ecx add r13, 4 cmp rdx, rsi jb short loc_5CECC loc_5CEDF: mov [rax+14h], ebx mov rdi, r14 mov rsi, [rbp+var_38] mov rbx, rax call Bfree mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long lshift(unsigned long long a1, unsigned int a2, unsigned long long *a3) { char v3; // r15 int v5; // edi int v6; // eax int v7; // ebx long long v8; // rax int *v9; // r13 long long v10; // r12 int *v11; // rdx unsigned long long v12; // rsi int v13; // r15d int v14; // edi unsigned int v15; // edi int v16; // ecx long long v17; // rbx long long v20; // [rsp+10h] [rbp-30h] v3 = a2; v5 = *(_DWORD *)(a1 + 8); v6 = *(_DWORD *)(a1 + 12); v7 = (a2 >> 5) + *(_DWORD *)(a1 + 20); while ( v7 >= v6 ) { ++v5; v6 *= 2; } v8 = Balloc(v5, (long long)a3); v9 = *(int **)v8; if ( a2 >= 0x20 ) { v10 = (a2 >> 5) - 1; v20 = v8; memset(*(_QWORD *)v8, 0LL, 4 * v10 + 4); v8 = v20; v9 += v10 + 1; } v11 = *(int **)a1; v12 = *(_QWORD *)a1 + 4LL * *(int *)(a1 + 20); v13 = v3 & 0x1F; if ( v13 ) { v14 = 0; do { *v9++ = v14 | (*v11 << v13); v15 = *v11++; v14 = v15 >> (32 - v13); } while ( (unsigned long long)v11 < v12 ); *v9 = v14; v7 -= (v14 == 0) - 1; } else { do { v16 = *v11++; *v9++ = v16; } while ( (unsigned long long)v11 < v12 ); } *(_DWORD *)(v8 + 20) = v7; v17 = v8; Bfree(a1, a3); return v17; }
lshift: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15D,ESI MOV R14,RDI MOV R12D,ESI SHR R12D,0x5 MOV EDI,dword ptr [RDI + 0x8] MOV EAX,dword ptr [R14 + 0xc] MOV EBX,dword ptr [R14 + 0x14] ADD EBX,R12D LAB_0015ce3f: CMP EBX,EAX JL 0x0015ce49 INC EDI ADD EAX,EAX JMP 0x0015ce3f LAB_0015ce49: MOV qword ptr [RBP + -0x38],RDX MOV RSI,RDX CALL 0x0015c9ec MOV R13,qword ptr [RAX] CMP R15D,0x20 JC 0x0015ce80 DEC R12D LEA RDX,[0x4 + R12*0x4] MOV RDI,R13 XOR ESI,ESI MOV qword ptr [RBP + -0x30],RAX CALL 0x00124190 MOV RAX,qword ptr [RBP + -0x30] LEA R13,[R13 + R12*0x4 + 0x4] LAB_0015ce80: MOV RDX,qword ptr [R14] MOVSXD RCX,dword ptr [R14 + 0x14] LEA RSI,[RDX + RCX*0x4] AND R15D,0x1f JZ 0x0015cecc MOV R9D,0x20 SUB R9D,R15D XOR EDI,EDI LAB_0015ce9c: MOV R8D,dword ptr [RDX] MOV ECX,R15D SHL R8D,CL OR R8D,EDI MOV dword ptr [R13],R8D ADD R13,0x4 MOV EDI,dword ptr [RDX] ADD RDX,0x4 MOV ECX,R9D SHR EDI,CL CMP RDX,RSI JC 0x0015ce9c MOV dword ptr [R13],EDI CMP EDI,0x1 SBB EBX,-0x1 JMP 0x0015cedf LAB_0015cecc: MOV ECX,dword ptr [RDX] ADD RDX,0x4 MOV dword ptr [R13],ECX ADD R13,0x4 CMP RDX,RSI JC 0x0015cecc LAB_0015cedf: MOV dword ptr [RAX + 0x14],EBX MOV RDI,R14 MOV RSI,qword ptr [RBP + -0x38] MOV RBX,RAX CALL 0x0015cde5 MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 * lshift(int8 *param_1,uint param_2,int8 param_3) { uint *puVar1; sbyte sVar2; int iVar3; int8 *puVar4; uint *puVar5; int iVar6; uint uVar7; ulong uVar8; uint *__s; iVar6 = *(int *)((long)param_1 + 0x14) + (param_2 >> 5); for (iVar3 = *(int *)((long)param_1 + 0xc); iVar3 <= iVar6; iVar3 = iVar3 * 2) { } puVar4 = (int8 *)Balloc(); __s = (uint *)*puVar4; if (0x1f < param_2) { uVar8 = (ulong)((param_2 >> 5) - 1); memset(__s,0,uVar8 * 4 + 4); __s = __s + uVar8 + 1; } puVar5 = (uint *)*param_1; puVar1 = puVar5 + *(int *)((long)param_1 + 0x14); if ((param_2 & 0x1f) == 0) { do { uVar7 = *puVar5; puVar5 = puVar5 + 1; *__s = uVar7; __s = __s + 1; } while (puVar5 < puVar1); } else { sVar2 = (sbyte)(param_2 & 0x1f); uVar7 = 0; do { *__s = *puVar5 << sVar2 | uVar7; __s = __s + 1; uVar7 = *puVar5; puVar5 = puVar5 + 1; uVar7 = uVar7 >> (0x20U - sVar2 & 0x1f); } while (puVar5 < puVar1); *__s = uVar7; iVar6 = (iVar6 + 1) - (uint)(uVar7 == 0); } *(int *)((long)puVar4 + 0x14) = iVar6; Bfree(param_1,param_3); return puVar4; }
49,834
smack_destroy
xtate/src/smack/smack1.c
void smack_destroy(struct SMACK *smack) { destroy_intermediate_table(smack); destroy_matches_table(smack); destroy_pattern_table(smack); if (smack->table) free(smack->table); free(smack); }
O3
c
smack_destroy: pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq 0x20(%rdi), %rdi testq %rdi, %rdi je 0x3dd29 callq 0x151e0 movq $0x0, 0x20(%rbx) movq 0x30(%rbx), %rdi testq %rdi, %rdi je 0x3dd79 movl 0x28(%rbx), %eax testl %eax, %eax je 0x3dd6c movl $0x8, %r14d xorl %r15d, %r15d movq 0x30(%rbx), %rcx cmpl $0x0, (%rcx,%r14) je 0x3dd5a movq -0x8(%rcx,%r14), %rdi callq 0x151e0 movl 0x28(%rbx), %eax incq %r15 movl %eax, %ecx addq $0x10, %r14 cmpq %rcx, %r15 jb 0x3dd42 movq 0x30(%rbx), %rdi callq 0x151e0 movq $0x0, 0x30(%rbx) movq %rbx, %rdi callq 0x3dd9f movq 0x550(%rbx), %rdi testq %rdi, %rdi je 0x3dd92 callq 0x151e0 movq %rbx, %rdi popq %rbx popq %r14 popq %r15 jmp 0x151e0
smack_destroy: push r15 push r14 push rbx mov rbx, rdi mov rdi, [rdi+20h] test rdi, rdi jz short loc_3DD29 call _free mov qword ptr [rbx+20h], 0 loc_3DD29: mov rdi, [rbx+30h] test rdi, rdi jz short loc_3DD79 mov eax, [rbx+28h] test eax, eax jz short loc_3DD6C mov r14d, 8 xor r15d, r15d loc_3DD42: mov rcx, [rbx+30h] cmp dword ptr [rcx+r14], 0 jz short loc_3DD5A mov rdi, [rcx+r14-8] call _free mov eax, [rbx+28h] loc_3DD5A: inc r15 mov ecx, eax add r14, 10h cmp r15, rcx jb short loc_3DD42 mov rdi, [rbx+30h] loc_3DD6C: call _free mov qword ptr [rbx+30h], 0 loc_3DD79: mov rdi, rbx call destroy_pattern_table mov rdi, [rbx+550h] test rdi, rdi jz short loc_3DD92 call _free loc_3DD92: mov rdi, rbx pop rbx pop r14 pop r15 jmp _free
long long smack_destroy(long long a1) { long long v2; // rdi long long v3; // rdi unsigned int v4; // eax long long v5; // r14 unsigned long long i; // r15 long long v7; // rcx long long v8; // rdi v2 = *(_QWORD *)(a1 + 32); if ( v2 ) { free(v2); *(_QWORD *)(a1 + 32) = 0LL; } v3 = *(_QWORD *)(a1 + 48); if ( v3 ) { v4 = *(_DWORD *)(a1 + 40); if ( v4 ) { v5 = 8LL; for ( i = 0LL; i < v4; ++i ) { v7 = *(_QWORD *)(a1 + 48); if ( *(_DWORD *)(v7 + v5) ) { free(*(_QWORD *)(v7 + v5 - 8)); v4 = *(_DWORD *)(a1 + 40); } v5 += 16LL; } v3 = *(_QWORD *)(a1 + 48); } free(v3); *(_QWORD *)(a1 + 48) = 0LL; } destroy_pattern_table(a1); v8 = *(_QWORD *)(a1 + 1360); if ( v8 ) free(v8); return free(a1); }
smack_destroy: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x20] TEST RDI,RDI JZ 0x0013dd29 CALL 0x001151e0 MOV qword ptr [RBX + 0x20],0x0 LAB_0013dd29: MOV RDI,qword ptr [RBX + 0x30] TEST RDI,RDI JZ 0x0013dd79 MOV EAX,dword ptr [RBX + 0x28] TEST EAX,EAX JZ 0x0013dd6c MOV R14D,0x8 XOR R15D,R15D LAB_0013dd42: MOV RCX,qword ptr [RBX + 0x30] CMP dword ptr [RCX + R14*0x1],0x0 JZ 0x0013dd5a MOV RDI,qword ptr [RCX + R14*0x1 + -0x8] CALL 0x001151e0 MOV EAX,dword ptr [RBX + 0x28] LAB_0013dd5a: INC R15 MOV ECX,EAX ADD R14,0x10 CMP R15,RCX JC 0x0013dd42 MOV RDI,qword ptr [RBX + 0x30] LAB_0013dd6c: CALL 0x001151e0 MOV qword ptr [RBX + 0x30],0x0 LAB_0013dd79: MOV RDI,RBX CALL 0x0013dd9f MOV RDI,qword ptr [RBX + 0x550] TEST RDI,RDI JZ 0x0013dd92 CALL 0x001151e0 LAB_0013dd92: MOV RDI,RBX POP RBX POP R14 POP R15 JMP 0x001151e0
void smack_destroy(void *param_1) { uint uVar1; void *__ptr; long lVar2; ulong uVar3; if (*(void **)((long)param_1 + 0x20) != (void *)0x0) { free(*(void **)((long)param_1 + 0x20)); *(int8 *)((long)param_1 + 0x20) = 0; } __ptr = *(void **)((long)param_1 + 0x30); if (__ptr != (void *)0x0) { uVar1 = *(uint *)((long)param_1 + 0x28); if (uVar1 != 0) { lVar2 = 8; uVar3 = 0; do { if (*(int *)(*(long *)((long)param_1 + 0x30) + lVar2) != 0) { free(*(void **)(*(long *)((long)param_1 + 0x30) + -8 + lVar2)); uVar1 = *(uint *)((long)param_1 + 0x28); } uVar3 = uVar3 + 1; lVar2 = lVar2 + 0x10; } while (uVar3 < uVar1); __ptr = *(void **)((long)param_1 + 0x30); } free(__ptr); *(int8 *)((long)param_1 + 0x30) = 0; } destroy_pattern_table(param_1); if (*(void **)((long)param_1 + 0x550) != (void *)0x0) { free(*(void **)((long)param_1 + 0x550)); } free(param_1); return; }
49,835
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::parse(bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)
monkey531[P]llama/common/json.hpp
void parse(const bool strict, BasicJsonType& result) { if (callback) { json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } // set top-level value to null if it was discarded by the callback // function if (result.is_discarded()) { result = nullptr; } } else { json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } } result.assert_invariant(); }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::parse(bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1c0, %rsp # imm = 0x1C0 movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r15 cmpq $0x0, 0x10(%rdi) je 0x3d72e leaq 0xc8(%rsp), %r14 movq %r14, %rdi movq %r15, %rsi callq 0x3d580 movzbl 0xc0(%r15), %ecx leaq 0x108(%rsp), %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x3f0be leaq 0xc8(%rsp), %rdi callq 0x47f12 leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x3f182 testb %bpl, %bpl je 0x3d704 movq %r15, %rdi callq 0x3e224 cmpl $0xf, %eax je 0x3d704 leaq 0x28(%r15), %rsi movq 0x48(%r15), %r14 leaq 0x70(%rsp), %rdi callq 0x3fc9e leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x72e01(%rip), %rsi # 0xb047c leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x26dae leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x3fe7c leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x3fd46 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r14, %rsi callq 0x3fc5a leaq 0x90(%rsp), %rdi callq 0x40018 leaq 0x50(%rsp), %rdi callq 0x241e8 leaq 0x30(%rsp), %rdi callq 0x241e8 leaq 0x70(%rsp), %rdi callq 0x241e8 movb 0x180(%rsp), %bpl cmpb $0x1, %bpl jne 0x3d876 leaq 0xf8(%rsp), %r14 pushq $0x9 popq %rsi movq %r14, %rdi callq 0x4003c jmp 0x3d88d movb 0xc0(%r15), %al leaq 0x110(%rsp), %r14 movq %rbx, -0x8(%r14) xorps %xmm0, %xmm0 movups %xmm0, (%r14) movups %xmm0, 0x10(%r14) movb $0x0, 0x20(%r14) movb %al, 0x21(%r14) leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x400d2 testb %bpl, %bpl je 0x3d837 movq %r15, %rdi callq 0x3e224 cmpl $0xf, %eax je 0x3d837 leaq 0x28(%r15), %rsi movq 0x48(%r15), %r12 leaq 0x70(%rsp), %rdi callq 0x3fc9e leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x72cce(%rip), %rsi # 0xb047c leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x26dae leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x3fe7c leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x3fd46 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r12, %rsi callq 0x40baa leaq 0x90(%rsp), %rdi callq 0x40018 leaq 0x50(%rsp), %rdi callq 0x241e8 leaq 0x30(%rsp), %rdi callq 0x241e8 leaq 0x70(%rsp), %rdi callq 0x241e8 cmpb $0x1, 0x130(%rsp) jne 0x3d8b4 leaq 0xb8(%rsp), %rdi pushq $0x9 popq %rsi callq 0x4003c leaq 0xb8(%rsp), %r15 movq %rbx, %rdi movq %r15, %rsi callq 0x40052 movq %r15, %rdi callq 0x3d4cc movq %r14, %rdi callq 0x41156 jmp 0x3d8c7 cmpb $0x9, (%rbx) jne 0x3d8a0 leaq 0xe8(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x3d4e0 movq %rbx, %rdi movq %r14, %rsi callq 0x40052 movq %r14, %rdi callq 0x3d4cc leaq 0x108(%rsp), %rdi callq 0x40096 testb %bpl, %bpl je 0x3d8bc jmp 0x3d8c7 movq %r14, %rdi callq 0x41156 pushq $0x1 popq %rsi movq %rbx, %rdi callq 0x3d9a6 addq $0x1c0, %rsp # imm = 0x1C0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x40018 jmp 0x3d8ec movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x241e8 jmp 0x3d8fb movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x241e8 jmp 0x3d90a movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x241e8 jmp 0x3d96e jmp 0x3d96b movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x40018 jmp 0x3d92d movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x241e8 jmp 0x3d93c movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x241e8 jmp 0x3d94b movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x241e8 jmp 0x3d97b jmp 0x3d978 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x47f12 jmp 0x3d988 movq %rax, %rbx movq %r14, %rdi callq 0x41156 jmp 0x3d988 movq %rax, %rbx leaq 0x108(%rsp), %rdi callq 0x40096 movq %rbx, %rdi callq 0x23fb0
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_: push rbp push r15 push r14 push r12 push rbx sub rsp, 1C0h mov rbx, rdx mov ebp, esi mov r15, rdi cmp qword ptr [rdi+10h], 0 jz loc_3D72E lea r14, [rsp+1E8h+var_120] mov rdi, r14 mov rsi, r15 call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&) movzx ecx, byte ptr [r15+0C0h] lea rdi, [rsp+1E8h+var_E0] mov rsi, rbx mov rdx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool) lea rdi, [rsp+1E8h+var_120]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *) test bpl, bpl jz loc_3D704 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token(void) cmp eax, 0Fh jz loc_3D704 lea rsi, [r15+28h] mov r14, [r15+48h] lea rdi, [rsp+1E8h+var_178] call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aInvalidValue+8; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_3D704: mov bpl, [rsp+1E8h+var_68] cmp bpl, 1 jnz loc_3D876 lea r14, [rsp+1E8h+var_F0] push 9 pop rsi mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::detail::value_t) jmp loc_3D88D loc_3D72E: mov al, [r15+0C0h] lea r14, [rsp+1E8h+var_D8] mov [r14-8], rbx xorps xmm0, xmm0 movups xmmword ptr [r14], xmm0 movups xmmword ptr [r14+10h], xmm0 mov byte ptr [r14+20h], 0 mov [r14+21h], al lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *) test bpl, bpl jz loc_3D837 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token(void) cmp eax, 0Fh jz loc_3D837 lea rsi, [r15+28h] mov r12, [r15+48h] lea rdi, [rsp+1E8h+var_178] call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aInvalidValue+8; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_3D837: cmp [rsp+1E8h+var_B8], 1 jnz short loc_3D8B4 lea rdi, [rsp+1E8h+var_130] push 9 pop rsi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::detail::value_t) lea r15, [rsp+1E8h+var_130] mov rdi, rbx mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::~_Vector_base() jmp short loc_3D8C7 loc_3D876: cmp byte ptr [rbx], 9 jnz short loc_3D8A0 lea r14, [rsp+1E8h+var_100] mov rdi, r14 xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr)) loc_3D88D: mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() loc_3D8A0: lea rdi, [rsp+1E8h+var_E0] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser() test bpl, bpl jz short loc_3D8BC jmp short loc_3D8C7 loc_3D8B4: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::~_Vector_base() loc_3D8BC: push 1 pop rsi mov rdi, rbx call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_3D8C7: add rsp, 1C0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_3D8EC mov rbx, rax loc_3D8EC: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_3D8FB mov rbx, rax loc_3D8FB: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_3D90A mov rbx, rax loc_3D90A: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_3D96E jmp short loc_3D96B mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_3D92D mov rbx, rax loc_3D92D: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_3D93C mov rbx, rax loc_3D93C: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_3D94B mov rbx, rax loc_3D94B: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_3D97B jmp short loc_3D978 mov rbx, rax lea rdi, [rsp+arg_C0]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() jmp short loc_3D988 loc_3D96B: mov rbx, rax loc_3D96E: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::~_Vector_base() jmp short loc_3D988 loc_3D978: mov rbx, rax loc_3D97B: lea rdi, [rsp+arg_100] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser() loc_3D988: mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse( long long a1, char a2, _BYTE *a3, int a4, int a5, int a6) { int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // r14 int v12; // r8d int v13; // r9d char v14; // bp _BYTE *v15; // r14 char v16; // al long long v17; // r12 int v18; // r8d int v19; // r9d long long result; // rax int v21; // [rsp+0h] [rbp-1E8h] int v22; // [rsp+8h] [rbp-1E0h] char v23[16]; // [rsp+10h] [rbp-1D8h] char v24[16]; // [rsp+10h] [rbp-1D8h] int v25[2]; // [rsp+20h] [rbp-1C8h] int v26[2]; // [rsp+20h] [rbp-1C8h] int v27; // [rsp+28h] [rbp-1C0h] long long v28; // [rsp+30h] [rbp-1B8h] BYREF int v29; // [rsp+38h] [rbp-1B0h] int v30; // [rsp+40h] [rbp-1A8h] int v31; // [rsp+48h] [rbp-1A0h] char v32[8]; // [rsp+50h] [rbp-198h] BYREF int v33; // [rsp+58h] [rbp-190h] int v34; // [rsp+60h] [rbp-188h] int v35; // [rsp+68h] [rbp-180h] char v36[8]; // [rsp+70h] [rbp-178h] BYREF int v37; // [rsp+78h] [rbp-170h] int v38; // [rsp+80h] [rbp-168h] int v39; // [rsp+88h] [rbp-160h] char v40[40]; // [rsp+90h] [rbp-158h] BYREF _BYTE v41[16]; // [rsp+B8h] [rbp-130h] BYREF _OWORD v42[2]; // [rsp+C8h] [rbp-120h] BYREF _BYTE v43[16]; // [rsp+E8h] [rbp-100h] BYREF _BYTE v44[16]; // [rsp+F8h] [rbp-F0h] BYREF _BYTE *v45; // [rsp+108h] [rbp-E0h] BYREF _BYTE v46[32]; // [rsp+110h] [rbp-D8h] BYREF char v47; // [rsp+130h] [rbp-B8h] char v48; // [rsp+131h] [rbp-B7h] char v49; // [rsp+180h] [rbp-68h] if ( !*(_QWORD *)(a1 + 16) ) { v16 = *(_BYTE *)(a1 + 192); v45 = a3; memset(v46, 0, sizeof(v46)); v47 = 0; v48 = v16; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>( a1, (unsigned int)&v45, (_DWORD)a3, a4, a5, a6); if ( a2 && (unsigned int)nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token(a1) != 15 ) { v17 = *(_QWORD *)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( v36, a1 + 40); *(_QWORD *)v26 = *(_QWORD *)(a1 + 88); *(_OWORD *)v24 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, "value"); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (unsigned int)v32, a1, 15, (unsigned int)&v28, v18, v19); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v24[0], *(int *)&v24[8], v26[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v17, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } if ( v47 == 1 ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v41, 9LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( a3, v41); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v41); return std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::~_Vector_base(v46); } std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::~_Vector_base(v46); 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>::assert_invariant( a3, 1LL); } std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function( v42, a1); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser( &v45, a3, v42, *(unsigned __int8 *)(a1 + 192)); std::_Function_base::~_Function_base((std::_Function_base *)v42); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>( a1, (unsigned int)&v45, v7, v8, v9, v10); if ( a2 ) { if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token(a1) != 15 ) { v11 = *(_QWORD *)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( v36, a1 + 40); *(_QWORD *)v25 = *(_QWORD *)(a1 + 88); *(_OWORD *)v23 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, "value"); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (unsigned int)v32, a1, 15, (unsigned int)&v28, v12, v13); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v23[0], *(int *)&v23[8], v25[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v11, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } } v14 = v49; if ( v49 == 1 ) { v15 = v44; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v44, 9LL); } else { if ( *a3 != 9 ) goto LABEL_15; v15 = v43; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json((long long)v43); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( a3, v15); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v15); LABEL_15: result = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~json_sax_dom_callback_parser(&v45); if ( !v14 ) 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>::assert_invariant( a3, 1LL); return result; }
parse: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x1c0 MOV RBX,RDX MOV EBP,ESI MOV R15,RDI CMP qword ptr [RDI + 0x10],0x0 JZ 0x0013d72e LEA R14,[RSP + 0xc8] MOV RDI,R14 MOV RSI,R15 CALL 0x0013d580 MOVZX ECX,byte ptr [R15 + 0xc0] LAB_0013d603: LEA RDI,[RSP + 0x108] MOV RSI,RBX MOV RDX,R14 CALL 0x0013f0be LEA RDI,[RSP + 0xc8] CALL 0x00147f12 LAB_0013d623: LEA RSI,[RSP + 0x108] MOV RDI,R15 CALL 0x0013f182 TEST BPL,BPL JZ 0x0013d704 MOV RDI,R15 CALL 0x0013e224 CMP EAX,0xf JZ 0x0013d704 LEA RSI,[R15 + 0x28] MOV R14,qword ptr [R15 + 0x48] LAB_0013d655: LEA RDI,[RSP + 0x70] CALL 0x0013fc9e LEA RAX,[R15 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x20],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x10],XMM0 LAB_0013d674: LEA RSI,[0x1b047c] LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0xf] CALL 0x00126dae LAB_0013d68a: LEA RDI,[RSP + 0x50] PUSH 0xf POP RDX LEA RCX,[RSP + 0x30] MOV RSI,R15 CALL 0x0013fe7c LAB_0013d69f: LEA RDI,[RSP + 0x90] PUSH 0x65 POP RSI LEA RDX,[RSP + 0x10] LEA RCX,[RSP + 0x50] XOR R8D,R8D CALL 0x0013fd46 LAB_0013d6bc: LEA RDI,[RSP + 0x108] LEA RDX,[RSP + 0x70] LEA RCX,[RSP + 0x90] MOV RSI,R14 CALL 0x0013fc5a LEA RDI,[RSP + 0x90] CALL 0x00140018 LEA RDI,[RSP + 0x50] CALL 0x001241e8 LEA RDI,[RSP + 0x30] CALL 0x001241e8 LEA RDI,[RSP + 0x70] CALL 0x001241e8 LAB_0013d704: MOV BPL,byte ptr [RSP + 0x180] CMP BPL,0x1 JNZ 0x0013d876 LEA R14,[RSP + 0xf8] LAB_0013d71e: PUSH 0x9 POP RSI MOV RDI,R14 CALL 0x0014003c JMP 0x0013d88d LAB_0013d72e: MOV AL,byte ptr [R15 + 0xc0] LEA R14,[RSP + 0x110] MOV qword ptr [R14 + -0x8],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14],XMM0 MOVUPS xmmword ptr [R14 + 0x10],XMM0 MOV byte ptr [R14 + 0x20],0x0 MOV byte ptr [R14 + 0x21],AL LAB_0013d756: LEA RSI,[RSP + 0x108] MOV RDI,R15 CALL 0x001400d2 TEST BPL,BPL JZ 0x0013d837 MOV RDI,R15 CALL 0x0013e224 CMP EAX,0xf JZ 0x0013d837 LEA RSI,[R15 + 0x28] MOV R12,qword ptr [R15 + 0x48] LAB_0013d788: LEA RDI,[RSP + 0x70] CALL 0x0013fc9e LEA RAX,[R15 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x20],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x10],XMM0 LAB_0013d7a7: LEA RSI,[0x1b047c] LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0xf] CALL 0x00126dae LAB_0013d7bd: LEA RDI,[RSP + 0x50] PUSH 0xf POP RDX LEA RCX,[RSP + 0x30] MOV RSI,R15 CALL 0x0013fe7c LAB_0013d7d2: LEA RDI,[RSP + 0x90] PUSH 0x65 POP RSI LEA RDX,[RSP + 0x10] LEA RCX,[RSP + 0x50] XOR R8D,R8D CALL 0x0013fd46 LAB_0013d7ef: LEA RDI,[RSP + 0x108] LEA RDX,[RSP + 0x70] LEA RCX,[RSP + 0x90] MOV RSI,R12 CALL 0x00140baa LEA RDI,[RSP + 0x90] CALL 0x00140018 LEA RDI,[RSP + 0x50] CALL 0x001241e8 LEA RDI,[RSP + 0x30] CALL 0x001241e8 LEA RDI,[RSP + 0x70] CALL 0x001241e8 LAB_0013d837: CMP byte ptr [RSP + 0x130],0x1 JNZ 0x0013d8b4 LAB_0013d841: LEA RDI,[RSP + 0xb8] PUSH 0x9 POP RSI CALL 0x0014003c LAB_0013d851: LEA R15,[RSP + 0xb8] MOV RDI,RBX MOV RSI,R15 CALL 0x00140052 MOV RDI,R15 CALL 0x0013d4cc MOV RDI,R14 CALL 0x00141156 JMP 0x0013d8c7 LAB_0013d876: CMP byte ptr [RBX],0x9 JNZ 0x0013d8a0 LEA R14,[RSP + 0xe8] MOV RDI,R14 XOR ESI,ESI CALL 0x0013d4e0 LAB_0013d88d: MOV RDI,RBX MOV RSI,R14 CALL 0x00140052 MOV RDI,R14 CALL 0x0013d4cc LAB_0013d8a0: LEA RDI,[RSP + 0x108] CALL 0x00140096 TEST BPL,BPL JZ 0x0013d8bc JMP 0x0013d8c7 LAB_0013d8b4: MOV RDI,R14 CALL 0x00141156 LAB_0013d8bc: PUSH 0x1 POP RSI MOV RDI,RBX CALL 0x0013d9a6 LAB_0013d8c7: ADD RSP,0x1c0 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::parse(bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::parse(parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this,bool param_1,basic_json *param_2) { ulong uVar1; int iVar2; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this_00; allocator local_1d9; int8 local_1d8; int8 uStack_1d0; int8 local_1c8; string local_1b8 [32]; string local_198 [32]; string local_178 [32]; parse_error local_158 [40]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_130 [16]; function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> local_120 [32]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_100 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_f0 [16]; basic_json *local_e0; int8 local_d8; int8 uStack_d0; int8 local_c8; int8 uStack_c0; char local_b8; parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> local_b7; char local_68; if (*(long *)(this + 0x10) == 0) { local_b7 = this[0xc0]; local_d8 = 0; uStack_d0 = 0; local_c8 = 0; uStack_c0 = 0; local_b8 = '\0'; /* try { // try from 0013d756 to 0013d776 has its CatchHandler @ 0013d96b */ local_e0 = param_2; sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> (this,(json_sax_dom_parser *)&local_e0); if ((param_1) && (iVar2 = get_token(this), iVar2 != 0xf)) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 0013d788 to 0013d791 has its CatchHandler @ 0013d916 */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_1c8 = *(int8 *)(this + 0x58); local_1d8 = *(int8 *)(this + 0x48); uStack_1d0 = *(int8 *)(this + 0x50); /* try { // try from 0013d7a7 to 0013d7bc has its CatchHandler @ 0013d907 */ std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9); /* try { // try from 0013d7bd to 0013d7d1 has its CatchHandler @ 0013d8f8 */ exception_message(local_198,this,0xf,local_1b8); /* try { // try from 0013d7d2 to 0013d7ee has its CatchHandler @ 0013d8e9 */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_158,0x65,&local_1d8,local_198,0); /* try { // try from 0013d7ef to 0013d80b has its CatchHandler @ 0013d8d7 */ json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_e0,uVar1,local_178,local_158); exception::~exception((exception *)local_158); std::__cxx11::string::~string(local_198); std::__cxx11::string::~string(local_1b8); std::__cxx11::string::~string(local_178); } if (local_b8 == '\x01') { /* try { // try from 0013d841 to 0013d850 has its CatchHandler @ 0013d96b */ basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_130,9); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_2,local_130); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_130); std:: _Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::~_Vector_base((_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)&local_d8); return; } std:: _Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::~_Vector_base((_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)&local_d8); goto LAB_0013d8bc; } std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::function(local_120,this); /* try { // try from 0013d603 to 0013d615 has its CatchHandler @ 0013d959 */ json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_sax_dom_callback_parser ((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_e0,param_2,local_120,this[0xc0]); std::_Function_base::~_Function_base((_Function_base *)local_120); /* try { // try from 0013d623 to 0013d643 has its CatchHandler @ 0013d978 */ sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> (this,(json_sax_dom_callback_parser *)&local_e0); if ((param_1) && (iVar2 = get_token(this), iVar2 != 0xf)) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 0013d655 to 0013d65e has its CatchHandler @ 0013d957 */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_1c8 = *(int8 *)(this + 0x58); local_1d8 = *(int8 *)(this + 0x48); uStack_1d0 = *(int8 *)(this + 0x50); /* try { // try from 0013d674 to 0013d689 has its CatchHandler @ 0013d948 */ std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9); /* try { // try from 0013d68a to 0013d69e has its CatchHandler @ 0013d939 */ exception_message(local_198,this,0xf,local_1b8); /* try { // try from 0013d69f to 0013d6bb has its CatchHandler @ 0013d92a */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_158,0x65,&local_1d8,local_198,0); /* try { // try from 0013d6bc to 0013d6d8 has its CatchHandler @ 0013d918 */ json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_e0,uVar1,local_178,local_158); exception::~exception((exception *)local_158); std::__cxx11::string::~string(local_198); std::__cxx11::string::~string(local_1b8); std::__cxx11::string::~string(local_178); } if (local_68 == '\x01') { this_00 = local_f0; /* try { // try from 0013d71e to 0013d728 has its CatchHandler @ 0013d978 */ basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(this_00,9); LAB_0013d88d: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_2,this_00); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(this_00); } else if (*param_2 == '\t') { this_00 = local_100; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json((_func_decltype_nullptr *)this_00); goto LAB_0013d88d; } json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::~json_sax_dom_callback_parser ((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_e0); if (local_68 != '\0') { return; } LAB_0013d8bc: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(param_2,0)); return; }
49,836
bool httplib::detail::process_server_socket_core<bool httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::'lambda'(httplib::Stream&, bool, bool&)>(std::atomic<int> const&, int, unsigned long, long, long, long, long, long, httplib::Server::process_and_close_socket(int)::'lambda'(httplib::Stream&, bool, bool&))::'lambda'(bool, bool&)>(std::atomic<int> const&, int, unsigned long, long, httplib::Server::process_and_close_socket(int)::'lambda'(httplib::Stream&, bool, bool&))
nickolajgrishuk[P]metricz-cpp/build_O0/_deps/httplib-src/httplib.h
inline bool process_server_socket_core(const std::atomic<socket_t> &svr_sock, socket_t sock, size_t keep_alive_max_count, time_t keep_alive_timeout_sec, T callback) { assert(keep_alive_max_count > 0); auto ret = false; auto count = keep_alive_max_count; while (svr_sock != INVALID_SOCKET && count > 0 && keep_alive(sock, keep_alive_timeout_sec)) { auto close_connection = count == 1; auto connection_closed = false; ret = callback(close_connection, connection_closed); if (!ret || connection_closed) { break; } count--; } return ret; }
O0
c
bool httplib::detail::process_server_socket_core<bool httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::'lambda'(httplib::Stream&, bool, bool&)>(std::atomic<int> const&, int, unsigned long, long, long, long, long, long, httplib::Server::process_and_close_socket(int)::'lambda'(httplib::Stream&, bool, bool&))::'lambda'(bool, bool&)>(std::atomic<int> const&, int, unsigned long, long, httplib::Server::process_and_close_socket(int)::'lambda'(httplib::Stream&, bool, bool&)): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x40(%rbp) movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) cmpq $0x0, -0x18(%rbp) jbe 0x38728 jmp 0x38747 leaq 0x3e00b(%rip), %rdi # 0x7673a leaq 0x3d460(%rip), %rsi # 0x75b96 movl $0x9f4, %edx # imm = 0x9F4 leaq 0x3e011(%rip), %rcx # 0x76753 callq 0xa230 movb $0x0, -0x21(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rdi callq 0x12d80 movl %eax, %ecx xorl %eax, %eax cmpl $-0x1, %ecx movb %al, -0x41(%rbp) je 0x38783 xorl %eax, %eax cmpq $0x0, -0x30(%rbp) movb %al, -0x41(%rbp) jbe 0x38783 movl -0xc(%rbp), %edi movq -0x20(%rbp), %rsi callq 0x387e0 movb %al, -0x41(%rbp) movb -0x41(%rbp), %al testb $0x1, %al jne 0x3878c jmp 0x387d3 movq -0x40(%rbp), %rdi cmpq $0x1, -0x30(%rbp) sete %al andb $0x1, %al movb %al, -0x31(%rbp) movb $0x0, -0x32(%rbp) movb -0x31(%rbp), %al leaq -0x32(%rbp), %rdx andb $0x1, %al movzbl %al, %esi callq 0x388a0 andb $0x1, %al movb %al, -0x21(%rbp) testb $0x1, -0x21(%rbp) je 0x387c3 testb $0x1, -0x32(%rbp) je 0x387c5 jmp 0x387d3 movq -0x30(%rbp), %rax addq $-0x1, %rax movq %rax, -0x30(%rbp) jmp 0x38753 movb -0x21(%rbp), %al andb $0x1, %al addq $0x50, %rsp popq %rbp retq nop
_ZN7httplib6detail26process_server_socket_coreIZNS0_21process_server_socketIZNS_6Server24process_and_close_socketEiEUlRNS_6StreamEbRbE_EEbRKSt6atomicIiEimlllllT_EUlbS6_E_EEbSB_imlSC_: push rbp mov rbp, rsp sub rsp, 50h lea rax, [rbp+arg_0] mov [rbp+var_40], rax mov [rbp+var_C+4], rdi mov dword ptr [rbp+var_C], esi mov [rbp+var_18], rdx mov qword ptr [rbp+var_20], rcx cmp [rbp+var_18], 0 jbe short loc_38728 jmp short loc_38747 loc_38728: lea rdi, aKeepAliveMaxCo; "keep_alive_max_count > 0" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 9F4h lea rcx, aBoolHttplibDet; "bool httplib::detail::process_server_so"... call ___assert_fail loc_38747: mov [rbp+var_21], 0 mov rax, [rbp+var_18] mov [rbp+var_30], rax loc_38753: mov rdi, [rbp+var_C+4] call _ZNKSt13__atomic_baseIiEcviEv; std::__atomic_base<int>::operator int(void) mov ecx, eax xor eax, eax cmp ecx, 0FFFFFFFFh mov [rbp+var_41], al jz short loc_38783 xor eax, eax cmp [rbp+var_30], 0 mov [rbp+var_41], al jbe short loc_38783 mov edi, dword ptr [rbp+var_C]; this mov rsi, qword ptr [rbp+var_20]; int call _ZN7httplib6detail10keep_aliveEil; httplib::detail::keep_alive(int,long) mov [rbp+var_41], al loc_38783: mov al, [rbp+var_41] test al, 1 jnz short loc_3878C jmp short loc_387D3 loc_3878C: mov rdi, [rbp+var_40] cmp [rbp+var_30], 1 setz al and al, 1 mov [rbp+var_31], al mov [rbp+var_32], 0 mov al, [rbp+var_31] lea rdx, [rbp+var_32] and al, 1 movzx esi, al call _ZZN7httplib6detail21process_server_socketIZNS_6Server24process_and_close_socketEiEUlRNS_6StreamEbRbE_EEbRKSt6atomicIiEimlllllT_ENKUlbS5_E_clEbS5_; httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream &,bool,bool &)#1}>(std::atomic<int> const&,int,ulong,long,long,long,long,long,httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream &,bool,bool &)#1})::{lambda(bool,bool &)#1}::operator()(bool,bool &) and al, 1 mov [rbp+var_21], al test [rbp+var_21], 1 jz short loc_387C3 test [rbp+var_32], 1 jz short loc_387C5 loc_387C3: jmp short loc_387D3 loc_387C5: mov rax, [rbp+var_30] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_30], rax jmp short loc_38753 loc_387D3: mov al, [rbp+var_21] and al, 1 add rsp, 50h pop rbp retn
char httplib::detail::process_server_socket_core<bool httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream &,bool,bool &)#1}>(std::atomic<int> const&,int,unsigned long,long,long,long,long,long,httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream &,bool,bool &)#1})::{lambda(bool,bool &)#1}>( long long a1, int a2, long long a3, long long a4, _DWORD a5, _DWORD a6, char a7) { long long v7; // rdx char v9; // [rsp+Fh] [rbp-41h] _BYTE v10[2]; // [rsp+1Eh] [rbp-32h] BYREF long long i; // [rsp+20h] [rbp-30h] char v12; // [rsp+2Fh] [rbp-21h] int v13[2]; // [rsp+30h] [rbp-20h] long long v14; // [rsp+38h] [rbp-18h] _DWORD v15[3]; // [rsp+44h] [rbp-Ch] *(_QWORD *)&v15[1] = a1; v15[0] = a2; v14 = a3; *(_QWORD *)v13 = a4; if ( !a3 ) __assert_fail( "keep_alive_max_count > 0", "/workspace/llm4binary/github/2025_star3/nickolajgrishuk[P]metricz-cpp/build_O0/_deps/httplib-src/httplib.h", 2548LL, "bool httplib::detail::process_server_socket_core(const std::atomic<socket_t> &, socket_t, size_t, time_t, T) [T = " "(lambda at /workspace/llm4binary/github/2025_star3/nickolajgrishuk[P]metricz-cpp/build_O0/_deps/httplib-src/httplib.h:2571:7)]"); v12 = 0; for ( i = v14; ; --i ) { v9 = 0; if ( (unsigned int)std::__atomic_base<int>::operator int(*(unsigned int **)&v15[1]) != -1 ) { v9 = 0; if ( i ) v9 = httplib::detail::keep_alive((httplib::detail *)v15[0], v13[0], v7); } if ( (v9 & 1) == 0 ) break; v10[1] = i == 1; v10[0] = 0; v12 = httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream &,bool,bool &)#1}>(std::atomic<int> const&,int,unsigned long,long,long,long,long,long,httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream &,bool,bool &)#1})::{lambda(bool,bool &)#1}::operator()( &a7, i == 1, v10) & 1; if ( !v12 || (v10[0] & 1) != 0 ) break; } return v12 & 1; }
process_server_socket_core<httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream&,bool,bool&)#1}>(std::atomic<int>const&,int,unsigned_long,long,long,long,long,long,httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream&,bool,bool&)#1})::{lambda(bool,bool&)#1}>: PUSH RBP MOV RBP,RSP SUB RSP,0x50 LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x40],RAX MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX CMP qword ptr [RBP + -0x18],0x0 JBE 0x00138728 JMP 0x00138747 LAB_00138728: LEA RDI,[0x17673a] LEA RSI,[0x175b96] MOV EDX,0x9f4 LEA RCX,[0x176753] CALL 0x0010a230 LAB_00138747: MOV byte ptr [RBP + -0x21],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX LAB_00138753: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00112d80 MOV ECX,EAX XOR EAX,EAX CMP ECX,-0x1 MOV byte ptr [RBP + -0x41],AL JZ 0x00138783 XOR EAX,EAX CMP qword ptr [RBP + -0x30],0x0 MOV byte ptr [RBP + -0x41],AL JBE 0x00138783 MOV EDI,dword ptr [RBP + -0xc] MOV RSI,qword ptr [RBP + -0x20] CALL 0x001387e0 MOV byte ptr [RBP + -0x41],AL LAB_00138783: MOV AL,byte ptr [RBP + -0x41] TEST AL,0x1 JNZ 0x0013878c JMP 0x001387d3 LAB_0013878c: MOV RDI,qword ptr [RBP + -0x40] CMP qword ptr [RBP + -0x30],0x1 SETZ AL AND AL,0x1 MOV byte ptr [RBP + -0x31],AL MOV byte ptr [RBP + -0x32],0x0 MOV AL,byte ptr [RBP + -0x31] LEA RDX,[RBP + -0x32] AND AL,0x1 MOVZX ESI,AL CALL 0x001388a0 AND AL,0x1 MOV byte ptr [RBP + -0x21],AL TEST byte ptr [RBP + -0x21],0x1 JZ 0x001387c3 TEST byte ptr [RBP + -0x32],0x1 JZ 0x001387c5 LAB_001387c3: JMP 0x001387d3 LAB_001387c5: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,-0x1 MOV qword ptr [RBP + -0x30],RAX JMP 0x00138753 LAB_001387d3: MOV AL,byte ptr [RBP + -0x21] AND AL,0x1 ADD RSP,0x50 POP RBP RET
/* bool httplib::detail::process_server_socket_core<httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream&, bool, bool&)#1}>(std::atomic<int> const&, int, unsigned long, long, long, long, long, long, httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream&, bool, bool&)#1})::{lambda(bool, bool&)#1}>(std::atomic<int> const&, int, unsigned long, long, httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream&, bool, bool&)#1}>(std::atomic<int> const&, int, unsigned long, long, long, long, long, long, httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream&, bool, bool&)#1})::{lambda(bool, bool&)#1}) */ bool httplib::detail:: process_server_socket_core<httplib::detail::process_server_socket<httplib::Server::process_and_close_socket(int)::_lambda(httplib::Stream&,bool,bool&)_1_>(std::atomic<int>const&,int,unsigned_long,long,long,long,long,long,httplib::Server::process_and_close_socket(int)::_lambda(httplib::Stream&,bool,bool&)_1_)::_lambda(bool,bool&)_1_> (__atomic_base *param_1,int param_2,long param_3,long param_4) { int iVar1; byte local_49; bool local_3a; int1 local_39; long local_38; byte local_29; long local_28; long local_20; int local_14; __atomic_base *local_10; local_28 = param_4; local_20 = param_3; local_14 = param_2; local_10 = param_1; if (param_3 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("keep_alive_max_count > 0", "/workspace/llm4binary/github/2025_star3/nickolajgrishuk[P]metricz-cpp/build_O0/_deps/httplib-src/httplib.h" ,0x9f4, "bool httplib::detail::process_server_socket_core(const std::atomic<socket_t> &, socket_t, size_t, time_t, T) [T = (lambda at /workspace/llm4binary/github/2025_star3/nickolajgrishuk[P]metricz-cpp/build_O0/_deps/httplib-src/httplib.h:2571:7)]" ); } local_29 = 0; local_38 = param_3; while( true ) { iVar1 = std::__atomic_base::operator_cast_to_int(local_10); local_49 = 0; if ((iVar1 != -1) && (local_49 = 0, local_38 != 0)) { local_49 = keep_alive(local_14,local_28); } if ((local_49 & 1) == 0) break; local_39 = local_38 == 1; local_3a = false; local_29 = process_server_socket<httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream&,bool,bool&)#1}>(std::atomic<int>const&,int,unsigned_long,long,long,long,long,long,httplib::Server::process_and_close_socket(int)::{lambda(httplib::Stream&,bool,bool&)#1}) ::{lambda(bool,bool&)#1}::operator() ((_lambda_bool_bool___1_ *)&stack0x00000008,(bool)local_39,&local_3a); local_29 = local_29 & 1; if ((local_29 == 0) || ((local_3a & 1U) != 0)) break; local_38 = local_38 + -1; } return (bool)(local_29 & 1); }
49,837
coro::task<long> coro::io_scheduler::schedule<long>(coro::task<long>) (.resume)
AlayaLite/build_O3/_deps/libcoro-src/include/coro/io_scheduler.hpp
[[nodiscard]] auto schedule(coro::task<return_type> task) -> coro::task<return_type> { co_await schedule(); co_return co_await task; }
O3
cpp
coro::task<long> coro::io_scheduler::schedule<long>(coro::task<long>) (.resume): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x28(%rdi), %r14 movzbl 0x48(%rdi), %eax testl %eax, %eax je 0x9c48e cmpl $0x2, %eax jne 0x9c4ac movq 0x30(%rbx), %rdi jmp 0x9c4c8 movq 0x38(%rbx), %rax movq %rax, 0x28(%rbx) movb $0x1, 0x48(%rbx) movq %r14, %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x3434a movq 0x40(%rbx), %rdi movq %rdi, 0x30(%rbx) cmpq $0x0, (%rdi) je 0x9c4c8 movb $0x2, 0x48(%rbx) movq %rbx, 0x10(%rdi) movq 0x30(%rbx), %rdi jmp 0x9c4ff addq $0x10, %rdi callq 0xa01d4 movq (%rax), %rax movq %rax, 0x28(%rbx) leaq 0x18(%rbx), %rdi movq %r14, %rsi callq 0x19916 movq $0x0, (%rbx) movb $0x3, 0x48(%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi jne 0x9c4ff leaq 0x96289(%rip), %rdi # 0x132788 addq $0x8, %rsp popq %rbx popq %r14 jmpq *(%rdi) movq %rax, %rdi callq 0x170c0 movq %rsp, %r14 movq %r14, %rdi callq 0x17450 movq (%r14), %rax movq %rax, 0x18(%rbx) movb $0x2, 0x20(%rbx) callq 0x17910 jmp 0x9c4e4 movq $0x0, (%rbx) movb $0x3, 0x48(%rbx) movq %rax, %rdi callq 0x17740
_ZN4coro12io_scheduler8scheduleIlEENS_4taskIT_EES4__resume: push r14 push rbx push rax mov rbx, rdi lea r14, [rdi+28h] movzx eax, byte ptr [rdi+48h] test eax, eax jz short loc_9C48E cmp eax, 2 jnz short loc_9C4AC mov rdi, [rbx+30h] jmp short loc_9C4C8 loc_9C48E: mov rax, [rbx+38h] mov [rbx+28h], rax mov byte ptr [rbx+48h], 1 mov rdi, r14 mov rsi, rbx add rsp, 8 pop rbx pop r14 jmp _ZN4coro12io_scheduler18schedule_operation13await_suspendENSt7__n486116coroutine_handleIvEE; coro::io_scheduler::schedule_operation::await_suspend(std::__n4861::coroutine_handle<void>) loc_9C4AC: mov rdi, [rbx+40h] mov [rbx+30h], rdi cmp qword ptr [rdi], 0 jz short loc_9C4C8 mov byte ptr [rbx+48h], 2 mov [rdi+10h], rbx mov rdi, [rbx+30h] jmp short loc_9C4FF loc_9C4C8: add rdi, 10h call _ZNR4coro6detail7promiseIlE6resultEv; coro::detail::promise<long>::result(void) mov rax, [rax] mov [rbx+28h], rax lea rdi, [rbx+18h] mov rsi, r14 call _ZNSt7variantIJN4coro6detail7promiseIlE18unset_return_valueElNSt15__exception_ptr13exception_ptrEEE7emplaceILm1EJlEEENSt9enable_ifIX18is_constructible_vINSt19variant_alternativeIXT_ES7_E4typeEDpT0_EERSC_E4typeEDpOSD_ loc_9C4E4: mov qword ptr [rbx], 0 mov byte ptr [rbx+48h], 3 mov rdi, [rbx+10h] test rdi, rdi jnz short loc_9C4FF lea rdi, _ZNSt7__n486116coroutine_handleINS_22noop_coroutine_promiseEE5_S_frE; std::__n4861::coroutine_handle<std::__n4861::noop_coroutine_promise>::_S_fr loc_9C4FF: add rsp, 8 pop rbx pop r14 jmp qword ptr [rdi] mov rdi, rax; void * call ___cxa_begin_catch mov r14, rsp mov rdi, r14 call __ZSt17current_exceptionv; std::current_exception(void) mov rax, [r14] mov [rbx+18h], rax mov byte ptr [rbx+20h], 2 call ___cxa_end_catch jmp short loc_9C4E4 mov qword ptr [rbx], 0 mov byte ptr [rbx+48h], 3 mov rdi, rax call __Unwind_Resume
long long coro::io_scheduler::schedule<long>(long long a1) { _QWORD *v2; // r14 _QWORD *v3; // rdi long long (**v5)(void); // rdi v2 = (_QWORD *)(a1 + 40); if ( !*(_BYTE *)(a1 + 72) ) { *(_QWORD *)(a1 + 40) = *(_QWORD *)(a1 + 56); *(_BYTE *)(a1 + 72) = 1; return coro::io_scheduler::schedule_operation::await_suspend((long long *)(a1 + 40), a1); } if ( *(_BYTE *)(a1 + 72) == 2 ) { v3 = *(_QWORD **)(a1 + 48); goto LABEL_7; } v3 = *(_QWORD **)(a1 + 64); *(_QWORD *)(a1 + 48) = v3; if ( !*v3 ) { LABEL_7: *(_QWORD *)(a1 + 40) = *(_QWORD *)coro::detail::promise<long>::result(v3 + 2); std::variant<coro::detail::promise<long>::unset_return_value,long,std::__exception_ptr::exception_ptr>::emplace<1ul,long>( a1 + 24, v2); *(_QWORD *)a1 = 0LL; *(_BYTE *)(a1 + 72) = 3; v5 = *(long long (***)(void))(a1 + 16); if ( !v5 ) v5 = std::__n4861::coroutine_handle<std::__n4861::noop_coroutine_promise>::_S_fr; return (*v5)(); } *(_BYTE *)(a1 + 72) = 2; v3[2] = a1; v5 = *(long long (***)(void))(a1 + 48); return (*v5)(); }
schedule<long>: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA R14,[RDI + 0x28] MOVZX EAX,byte ptr [RDI + 0x48] TEST EAX,EAX JZ 0x0019c48e CMP EAX,0x2 JNZ 0x0019c4ac MOV RDI,qword ptr [RBX + 0x30] JMP 0x0019c4c8 LAB_0019c48e: MOV RAX,qword ptr [RBX + 0x38] MOV qword ptr [RBX + 0x28],RAX MOV byte ptr [RBX + 0x48],0x1 MOV RDI,R14 MOV RSI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x0013434a LAB_0019c4ac: MOV RDI,qword ptr [RBX + 0x40] MOV qword ptr [RBX + 0x30],RDI CMP qword ptr [RDI],0x0 JZ 0x0019c4c8 MOV byte ptr [RBX + 0x48],0x2 MOV qword ptr [RDI + 0x10],RBX MOV RDI,qword ptr [RBX + 0x30] JMP 0x0019c4ff LAB_0019c4c8: ADD RDI,0x10 LAB_0019c4cc: CALL 0x001a01d4 MOV RAX,qword ptr [RAX] MOV qword ptr [RBX + 0x28],RAX LEA RDI,[RBX + 0x18] MOV RSI,R14 CALL 0x00119916 LAB_0019c4e4: MOV qword ptr [RBX],0x0 MOV byte ptr [RBX + 0x48],0x3 MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JNZ 0x0019c4ff LEA RDI,[0x232788] LAB_0019c4ff: ADD RSP,0x8 POP RBX POP R14 JMP qword ptr [RDI]
/* coro::task<long> coro::io_scheduler::schedule<long>(coro::task<long>) [clone .resume] */ void coro::io_scheduler::schedule<long>(int8 *param_1) { int8 *puVar1; long *plVar2; int **ppuVar3; if (*(char *)(param_1 + 9) == '\0') { param_1[5] = param_1[7]; *(int1 *)(param_1 + 9) = 1; schedule_operation::await_suspend((schedule_operation *)(param_1 + 5),param_1); return; } if (*(char *)(param_1 + 9) == '\x02') { plVar2 = (long *)param_1[6]; } else { plVar2 = (long *)param_1[8]; param_1[6] = plVar2; if (*plVar2 != 0) { *(int1 *)(param_1 + 9) = 2; plVar2[2] = (long)param_1; ppuVar3 = (int **)param_1[6]; goto LAB_0019c4ff; } } /* try { // try from 0019c4cc to 0019c4e3 has its CatchHandler @ 0019c508 */ puVar1 = (int8 *)detail::promise<long>::result((promise<long> *)(plVar2 + 2)); param_1[5] = *puVar1; std:: variant<coro::detail::promise<long>::unset_return_value,long,std::__exception_ptr::exception_ptr> ::emplace<1ul,long>((variant<coro::detail::promise<long>::unset_return_value,long,std::__exception_ptr::exception_ptr> *)(param_1 + 3),(long *)(param_1 + 5)); *param_1 = 0; *(int1 *)(param_1 + 9) = 3; ppuVar3 = (int **)param_1[2]; if (ppuVar3 == (int **)0x0) { ppuVar3 = &std::__n4861::coroutine_handle<std::__n4861::noop_coroutine_promise>::_S_fr; } LAB_0019c4ff: /* WARNING: Could not recover jumptable at 0x0019c506. Too many branches */ /* WARNING: Treating indirect jump as call */ (*(code *)*ppuVar3)(); return; }
49,838
ma_rec_unpack
eloqsql/storage/maria/ma_dynrec.c
size_t _ma_rec_unpack(register MARIA_HA *info, register uchar *to, uchar *from, size_t found_length) { uint flag,bit,length,min_pack_length, column_length; enum en_fieldtype type; uchar *from_end,*to_end,*packpos; reg3 MARIA_COLUMNDEF *column, *end_column; DBUG_ENTER("_ma_rec_unpack"); to_end=to + info->s->base.reclength; from_end=from+found_length; flag= (uchar) *from; bit=1; packpos=from; if (found_length < info->s->base.min_pack_length) goto err; from+= info->s->base.pack_bytes; min_pack_length= info->s->base.min_pack_length - info->s->base.pack_bytes; if ((length= info->s->base.null_bytes)) { memcpy(to, from, length); from+= length; to+= length; min_pack_length-= length; } for (column= info->s->columndef, end_column= column + info->s->base.fields; column < end_column ; to+= column_length, column++) { column_length= column->length; if ((type = (enum en_fieldtype) column->type) != FIELD_NORMAL && (type != FIELD_CHECK)) { if (type == FIELD_VARCHAR) { uint pack_length= HA_VARCHAR_PACKLENGTH(column_length-1); if (pack_length == 1) { length= (uint) *(uchar*) from; if (length > column_length-1) goto err; *to= *from++; } else { get_key_length(length, from); if (length > column_length-2) goto err; int2store(to,length); } if (from+length > from_end) goto err; memcpy(to+pack_length, from, length); MEM_UNDEFINED(to+pack_length + length, column_length - length - pack_length); from+= length; min_pack_length--; continue; } if (flag & bit) { if (type == FIELD_BLOB || type == FIELD_SKIP_ZERO) bzero(to, column_length); else if (type == FIELD_SKIP_ENDSPACE || type == FIELD_SKIP_PRESPACE) { if (column->length > 255 && *from & 128) { if (from + 1 >= from_end) goto err; length= (*from & 127)+ ((uint) (uchar) *(from+1) << 7); from+=2; } else { if (from == from_end) goto err; length= (uchar) *from++; } min_pack_length--; if (length >= column_length || min_pack_length + length > (uint) (from_end - from)) goto err; if (type == FIELD_SKIP_ENDSPACE) { memcpy(to, from, (size_t) length); bfill(to+length, column_length-length, ' '); } else { bfill(to, column_length-length, ' '); memcpy(to+column_length-length, from, (size_t) length); } from+=length; } } else if (type == FIELD_BLOB) { uint size_length=column_length- portable_sizeof_char_ptr; ulong blob_length= _ma_calc_blob_length(size_length,from); ulong from_left= (ulong) (from_end - from); if (from_left < size_length || from_left - size_length < blob_length || from_left - size_length - blob_length < min_pack_length) goto err; memcpy(to, from, (size_t) size_length); from+=size_length; memcpy(to+size_length,(uchar*) &from,sizeof(char*)); from+=blob_length; } else { if (type == FIELD_SKIP_ENDSPACE || type == FIELD_SKIP_PRESPACE) min_pack_length--; if (min_pack_length + column_length > (uint) (from_end - from)) goto err; memcpy(to, from, (size_t) column_length); from+=column_length; } if ((bit= bit << 1) >= 256) { flag= (uchar) *++packpos; bit=1; } } else { if (min_pack_length > (uint) (from_end - from)) goto err; min_pack_length-=column_length; memcpy(to, from, (size_t) column_length); from+=column_length; } } if (info->s->calc_checksum) info->cur_row.checksum= (uint) (uchar) *from++; if (to == to_end && from == from_end && (bit == 1 || !(flag & ~(bit-1)))) DBUG_RETURN(found_length); err: _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); DBUG_PRINT("error",("to_end: %p -> %p from_end: %p -> %p", to, to_end, from, from_end)); DBUG_DUMP("from", info->rec_buff, info->s->base.min_pack_length); DBUG_RETURN(MY_FILE_ERROR); }
O3
c
ma_rec_unpack: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rdx, -0x58(%rbp) movq %rdi, -0x50(%rbp) movq (%rdi), %rax movq 0x3a8(%rax), %r12 movq %rcx, -0x68(%rbp) cmpq %rcx, %r12 jbe 0x45460 movq -0x50(%rbp), %rdi movl $0x7f, %esi callq 0x37840 movq $-0x1, -0x68(%rbp) movq -0x68(%rbp), %rax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rsi, %r15 movq 0x398(%rax), %r14 addq %rsi, %r14 movq -0x58(%rbp), %rdx movzbl (%rdx), %ecx movl %ecx, -0x44(%rbp) movl 0x3f4(%rax), %r13d movl 0x3fc(%rax), %ebx subl %r13d, %r12d addq %rdx, %r13 testq %rbx, %rbx je 0x454ad movq %r15, %rdi movq %r13, %rsi movq %rbx, %rdx callq 0x29090 addq %rbx, %r13 addq %rbx, %r15 subl %ebx, %r12d movq -0x50(%rbp), %rax movq (%rax), %rax movq -0x68(%rbp), %rcx movq -0x58(%rbp), %rdx addq %rdx, %rcx movq %rcx, -0x38(%rbp) movl 0x3c8(%rax), %ecx testq %rcx, %rcx je 0x457c3 movq %r14, -0x70(%rbp) movq 0x588(%rax), %rbx imulq $0x38, %rcx, %rax addq %rbx, %rax movq %rax, -0x78(%rbp) movl $0x1, -0x2c(%rbp) movzwl 0x8(%rbx), %r14d movl (%rbx), %eax testl %eax, %eax je 0x45535 cmpl $0x9, %eax je 0x45535 cmpl $0x8, %eax jne 0x4555e leal -0x1(%r14), %edx cmpl $0x100, %edx # imm = 0x100 movl $0x2, %edi sbbq $0x0, %rdi movb (%r13), %cl movzbl %cl, %eax cmpl $0xff, %edx ja 0x45580 cmpl %eax, %edx jb 0x45437 incq %r13 movb %cl, (%r15) movq %r13, %rsi jmp 0x45672 movq -0x38(%rbp), %rax subl %r13d, %eax cmpl %eax, %r12d ja 0x45437 subl %r14d, %r12d movq %r15, %rdi movq %r13, %rsi movq %r14, %rdx callq 0x29090 addq %r14, %r13 jmp 0x4578c movl -0x2c(%rbp), %ecx testl %ecx, -0x44(%rbp) je 0x45591 leal -0x3(%rax), %ecx cmpl $0x1, %ecx ja 0x455c1 movq %r15, %rdi xorl %esi, %esi movq %r14, %rdx callq 0x29290 jmp 0x45762 cmpb $-0x1, %cl je 0x4564d incq %r13 jmp 0x4565d cmpl $0x4, %eax jne 0x45692 leal -0x9(%r14), %eax cmpl $0x3, %eax ja 0x45710 leaq 0x9ddce(%rip), %rcx # 0xe337c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movzbl (%r13), %r8d jmp 0x45713 cmpl $0x2, %eax ja 0x45762 cmpl $0x100, %r14d # imm = 0x100 jb 0x455e0 movzbl (%r13), %ecx testb %cl, %cl js 0x4579f cmpq -0x38(%rbp), %r13 je 0x45437 movzbl (%r13), %esi incq %r13 movl %r14d, %r8d subl %esi, %r8d jbe 0x45437 decl %r12d leal (%rsi,%r12), %ecx movq -0x38(%rbp), %rdx subl %r13d, %edx cmpl %edx, %ecx ja 0x45437 cmpl $0x1, %eax jne 0x456c4 movl %esi, %edx movq %rdx, -0x40(%rbp) movq %r15, %rdi movq %r13, %rsi movq %r8, -0x60(%rbp) callq 0x29090 movq -0x40(%rbp), %rax leaq (%r15,%rax), %rdi movl $0x20, %esi movq -0x60(%rbp), %rdx callq 0x29290 jmp 0x4575e movzwl 0x1(%r13), %eax rolw $0x8, %ax movzwl %ax, %eax addq $0x3, %r13 movq %r13, %rsi movl %r14d, %ecx addl $-0x2, %ecx cmpl %ecx, %eax ja 0x45437 movw %ax, (%r15) movl %eax, %edx leaq (%rsi,%rdx), %r13 cmpq -0x38(%rbp), %r13 ja 0x45437 addq %r15, %rdi callq 0x29090 decl %r12d jmp 0x4578c cmpl $0x3, %eax sbbl $0x0, %r12d movl %r14d, %eax addl %r12d, %eax movq -0x38(%rbp), %rcx subl %r13d, %ecx cmpl %ecx, %eax ja 0x45437 movq %r15, %rdi movq %r13, %rsi movq %r14, %rdx callq 0x29090 addq %r14, %r13 jmp 0x45762 movq %r15, %rdi movq %rsi, -0x40(%rbp) movl $0x20, %esi movq %r8, %rdx callq 0x29290 leaq (%r15,%r14), %rdi movl -0x40(%rbp), %edx subq %rdx, %rdi movq %r13, %rsi movq %rdx, -0x40(%rbp) callq 0x29090 jmp 0x4575e movzwl (%r13), %eax movzbl 0x2(%r13), %r8d shll $0x10, %r8d orq %rax, %r8 jmp 0x45713 movl (%r13), %r8d jmp 0x45713 movzwl (%r13), %r8d jmp 0x45713 xorl %r8d, %r8d movl %r14d, %ecx addl $-0x8, %ecx movq -0x38(%rbp), %rax subq %r13, %rax movl %ecx, %edx subq %rdx, %rax jb 0x45437 subq %r8, %rax jb 0x45437 movl %r12d, %ecx cmpq %rcx, %rax jb 0x45437 movq %r15, %rdi movq %r13, %rsi movq %r8, -0x40(%rbp) movq %rdx, -0x60(%rbp) callq 0x29090 movq -0x60(%rbp), %rax addq %rax, %r13 movq %r13, (%r15,%rax) addq -0x40(%rbp), %r13 movl -0x2c(%rbp), %eax addl %eax, %eax cmpl $0x100, %eax # imm = 0x100 jae 0x45773 movl %eax, -0x2c(%rbp) jmp 0x4578c movq -0x58(%rbp), %rcx movzbl 0x1(%rcx), %eax movl %eax, -0x44(%rbp) incq %rcx movq %rcx, -0x58(%rbp) movl $0x1, -0x2c(%rbp) addq %r14, %r15 addq $0x38, %rbx cmpq -0x78(%rbp), %rbx jb 0x454e8 jmp 0x457cc leaq 0x1(%r13), %rdx cmpq -0x38(%rbp), %rdx jae 0x45437 andl $0x7f, %ecx movzbl 0x1(%r13), %esi shll $0x7, %esi orl %ecx, %esi addq $0x2, %r13 jmp 0x455f2 movl $0x1, -0x2c(%rbp) jmp 0x457d7 movq -0x50(%rbp), %rax movq (%rax), %rax movq -0x70(%rbp), %r14 cmpq $0x0, 0x6a8(%rax) je 0x457f3 movzbl (%r13), %eax incq %r13 movq -0x50(%rbp), %rcx movl %eax, 0xb0(%rcx) cmpq %r14, %r15 jne 0x45437 cmpq -0x38(%rbp), %r13 jne 0x45437 movl -0x2c(%rbp), %eax cmpl $0x1, %eax je 0x4544d negl %eax testl %eax, -0x44(%rbp) jne 0x45437 jmp 0x4544d
_ma_rec_unpack: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov [rbp+var_58], rdx mov [rbp+var_50], rdi mov rax, [rdi] mov r12, [rax+3A8h] mov [rbp+var_68], rcx cmp r12, rcx jbe short loc_45460 loc_45437: mov rdi, [rbp+var_50] mov esi, 7Fh call _ma_set_fatal_error mov [rbp+var_68], 0FFFFFFFFFFFFFFFFh loc_4544D: mov rax, [rbp+var_68] add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_45460: mov r15, rsi mov r14, [rax+398h] add r14, rsi mov rdx, [rbp+var_58] movzx ecx, byte ptr [rdx] mov [rbp+var_44], ecx mov r13d, [rax+3F4h] mov ebx, [rax+3FCh] sub r12d, r13d add r13, rdx test rbx, rbx jz short loc_454AD mov rdi, r15 mov rsi, r13 mov rdx, rbx call _memcpy add r13, rbx add r15, rbx sub r12d, ebx mov rax, [rbp+var_50] mov rax, [rax] loc_454AD: mov rcx, [rbp+var_68] mov rdx, [rbp+var_58] add rcx, rdx mov [rbp+var_38], rcx mov ecx, [rax+3C8h] test rcx, rcx jz loc_457C3 mov [rbp+var_70], r14 mov rbx, [rax+588h] imul rax, rcx, 38h ; '8' add rax, rbx mov [rbp+var_78], rax mov [rbp+var_2C], 1 loc_454E8: movzx r14d, word ptr [rbx+8] mov eax, [rbx] test eax, eax jz short loc_45535 cmp eax, 9 jz short loc_45535 cmp eax, 8 jnz short loc_4555E lea edx, [r14-1] cmp edx, 100h mov edi, 2 sbb rdi, 0 mov cl, [r13+0] movzx eax, cl cmp edx, 0FFh ja short loc_45580 cmp edx, eax jb loc_45437 inc r13 mov [r15], cl mov rsi, r13 jmp loc_45672 loc_45535: mov rax, [rbp+var_38] sub eax, r13d cmp r12d, eax ja loc_45437 sub r12d, r14d mov rdi, r15 mov rsi, r13 mov rdx, r14 call _memcpy add r13, r14 jmp loc_4578C loc_4555E: mov ecx, [rbp+var_2C] test [rbp+var_44], ecx jz short loc_45591 lea ecx, [rax-3] cmp ecx, 1 ja short loc_455C1 mov rdi, r15 xor esi, esi mov rdx, r14 call _memset jmp loc_45762 loc_45580: cmp cl, 0FFh jz loc_4564D inc r13 jmp loc_4565D loc_45591: cmp eax, 4 jnz loc_45692 lea eax, [r14-9]; switch 4 cases cmp eax, 3 ja def_455B5; jumptable 00000000000455B5 default case lea rcx, jpt_455B5 movsxd rax, ds:(jpt_455B5 - 0E337Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_455B7: movzx r8d, byte ptr [r13+0]; jumptable 00000000000455B5 case 9 jmp loc_45713 loc_455C1: cmp eax, 2 ja loc_45762 cmp r14d, 100h jb short loc_455E0 movzx ecx, byte ptr [r13+0] test cl, cl js loc_4579F loc_455E0: cmp r13, [rbp+var_38] jz loc_45437 movzx esi, byte ptr [r13+0] inc r13 loc_455F2: mov r8d, r14d sub r8d, esi jbe loc_45437 dec r12d lea ecx, [rsi+r12] mov rdx, [rbp+var_38] sub edx, r13d cmp ecx, edx ja loc_45437 cmp eax, 1 jnz loc_456C4 mov edx, esi mov [rbp+var_40], rdx mov rdi, r15 mov rsi, r13 mov [rbp+var_60], r8 call _memcpy mov rax, [rbp+var_40] lea rdi, [r15+rax] mov esi, 20h ; ' ' mov rdx, [rbp+var_60] call _memset jmp loc_4575E loc_4564D: movzx eax, word ptr [r13+1] rol ax, 8 movzx eax, ax add r13, 3 loc_4565D: mov rsi, r13 mov ecx, r14d add ecx, 0FFFFFFFEh cmp eax, ecx ja loc_45437 mov [r15], ax loc_45672: mov edx, eax lea r13, [rsi+rdx] cmp r13, [rbp+var_38] ja loc_45437 add rdi, r15 call _memcpy dec r12d jmp loc_4578C loc_45692: cmp eax, 3 sbb r12d, 0 mov eax, r14d add eax, r12d mov rcx, [rbp+var_38] sub ecx, r13d cmp eax, ecx ja loc_45437 mov rdi, r15 mov rsi, r13 mov rdx, r14 call _memcpy add r13, r14 jmp loc_45762 loc_456C4: mov rdi, r15 mov [rbp+var_40], rsi mov esi, 20h ; ' ' mov rdx, r8 call _memset lea rdi, [r15+r14] mov edx, dword ptr [rbp+var_40] sub rdi, rdx mov rsi, r13 mov [rbp+var_40], rdx call _memcpy jmp short loc_4575E loc_456F0: movzx eax, word ptr [r13+0]; jumptable 00000000000455B5 case 11 movzx r8d, byte ptr [r13+2] shl r8d, 10h or r8, rax jmp short loc_45713 loc_45703: mov r8d, [r13+0]; jumptable 00000000000455B5 case 12 jmp short loc_45713 loc_45709: movzx r8d, word ptr [r13+0]; jumptable 00000000000455B5 case 10 jmp short loc_45713 def_455B5: xor r8d, r8d; jumptable 00000000000455B5 default case loc_45713: mov ecx, r14d add ecx, 0FFFFFFF8h mov rax, [rbp+var_38] sub rax, r13 mov edx, ecx sub rax, rdx jb loc_45437 sub rax, r8 jb loc_45437 mov ecx, r12d cmp rax, rcx jb loc_45437 mov rdi, r15 mov rsi, r13 mov [rbp+var_40], r8 mov [rbp+var_60], rdx call _memcpy mov rax, [rbp+var_60] add r13, rax mov [r15+rax], r13 loc_4575E: add r13, [rbp+var_40] loc_45762: mov eax, [rbp+var_2C] add eax, eax cmp eax, 100h jnb short loc_45773 mov [rbp+var_2C], eax jmp short loc_4578C loc_45773: mov rcx, [rbp+var_58] movzx eax, byte ptr [rcx+1] mov [rbp+var_44], eax inc rcx mov [rbp+var_58], rcx mov [rbp+var_2C], 1 loc_4578C: add r15, r14 add rbx, 38h ; '8' cmp rbx, [rbp+var_78] jb loc_454E8 jmp short loc_457CC loc_4579F: lea rdx, [r13+1] cmp rdx, [rbp+var_38] jnb loc_45437 and ecx, 7Fh movzx esi, byte ptr [r13+1] shl esi, 7 or esi, ecx add r13, 2 jmp loc_455F2 loc_457C3: mov [rbp+var_2C], 1 jmp short loc_457D7 loc_457CC: mov rax, [rbp+var_50] mov rax, [rax] mov r14, [rbp+var_70] loc_457D7: cmp qword ptr [rax+6A8h], 0 jz short loc_457F3 movzx eax, byte ptr [r13+0] inc r13 mov rcx, [rbp+var_50] mov [rcx+0B0h], eax loc_457F3: cmp r15, r14 jnz loc_45437 cmp r13, [rbp+var_38] jnz loc_45437 mov eax, [rbp+var_2C] cmp eax, 1 jz loc_4544D neg eax test [rbp+var_44], eax jnz loc_45437 jmp loc_4544D
long long ma_rec_unpack(_DWORD *a1, _WORD *a2, long long a3, unsigned long long a4, unsigned long long a5, int a6) { long long v6; // rax unsigned long long v7; // r12 _WORD *v9; // r15 _WORD *v10; // r14 long long v11; // r13 long long v12; // rbx unsigned int v13; // r12d unsigned __int8 *v14; // r13 unsigned long long v15; // rbx long long v16; // r14 unsigned int v17; // eax long long v18; // rdi unsigned int v19; // eax unsigned __int8 *v20; // rsi unsigned __int8 *v21; // r13 unsigned int v22; // esi unsigned __int8 *v23; // r13 unsigned long long v24; // rax bool v25; // cf unsigned long long v26; // rax long long v27; // rax int v28; // eax unsigned long long v29; // [rsp+8h] [rbp-78h] _WORD *v30; // [rsp+10h] [rbp-70h] unsigned long long v31; // [rsp+18h] [rbp-68h] long long v32; // [rsp+28h] [rbp-58h] int v34; // [rsp+3Ch] [rbp-44h] unsigned long long v35; // [rsp+40h] [rbp-40h] unsigned long long v36; // [rsp+48h] [rbp-38h] int v37; // [rsp+54h] [rbp-2Ch] v32 = a3; v6 = *(_QWORD *)a1; v7 = *(_QWORD *)(*(_QWORD *)a1 + 936LL); v31 = a4; if ( v7 > a4 ) { LABEL_2: ma_set_fatal_error(a1, 127, a3, a4, a5, a6); return -1LL; } v9 = a2; v10 = (_WORD *)((char *)a2 + *(_QWORD *)(v6 + 920)); v34 = *(unsigned __int8 *)a3; v11 = *(unsigned int *)(v6 + 1012); v12 = *(unsigned int *)(v6 + 1020); v13 = v7 - v11; v14 = (unsigned __int8 *)(a3 + v11); if ( *(_DWORD *)(v6 + 1020) ) { memcpy(a2, v14, *(unsigned int *)(v6 + 1020)); v14 += v12; v9 = (_WORD *)((char *)a2 + v12); v13 -= v12; v6 = *(_QWORD *)a1; } a3 = v32; v36 = v32 + v31; a4 = *(unsigned int *)(v6 + 968); if ( *(_DWORD *)(v6 + 968) ) { v30 = v10; v15 = *(_QWORD *)(v6 + 1416); v29 = v15 + 56 * a4; v37 = 1; while ( 1 ) { v16 = *(unsigned __int16 *)(v15 + 8); v17 = *(_DWORD *)v15; if ( !*(_DWORD *)v15 || v17 == 9 ) { if ( v13 > (int)v36 - (int)v14 ) goto LABEL_2; v13 -= v16; memcpy(v9, v14, *(unsigned __int16 *)(v15 + 8)); v14 += v16; goto LABEL_53; } if ( v17 == 8 ) { a3 = (unsigned int)(v16 - 1); v18 = 2LL - ((unsigned int)a3 < 0x100); LOBYTE(a4) = *v14; v19 = *v14; if ( (unsigned int)a3 > 0xFF ) { if ( (_BYTE)a4 == 0xFF ) { v19 = (unsigned __int16)__ROL2__(*(_WORD *)(v14 + 1), 8); v21 = v14 + 3; } else { v21 = v14 + 1; } v20 = v21; a4 = (unsigned int)(v16 - 2); if ( v19 > (unsigned int)a4 ) goto LABEL_2; *v9 = v19; } else { if ( (unsigned int)a3 < v19 ) goto LABEL_2; *(_BYTE *)v9 = a4; v20 = v14 + 1; } a3 = v19; v14 = &v20[v19]; if ( (unsigned long long)v14 > v36 ) goto LABEL_2; memcpy((char *)v9 + v18, v20, v19); --v13; goto LABEL_53; } if ( (v37 & v34) == 0 ) break; a4 = v17 - 3; if ( (unsigned int)a4 <= 1 ) { memset(v9, 0LL, *(unsigned __int16 *)(v15 + 8)); goto LABEL_50; } if ( v17 <= 2 ) { if ( (unsigned int)v16 >= 0x100 && (a4 = *v14, (a4 & 0x80u) != 0LL) ) { a3 = (long long)(v14 + 1); if ( (unsigned long long)(v14 + 1) >= v36 ) goto LABEL_2; a4 &= 0x7Fu; v22 = a4 | (v14[1] << 7); v23 = v14 + 2; } else { if ( v14 == (unsigned __int8 *)v36 ) goto LABEL_2; v22 = *v14; v23 = v14 + 1; } a5 = (unsigned int)v16 - v22; if ( (unsigned int)v16 <= v22 ) goto LABEL_2; --v13; a4 = v22 + v13; a3 = (unsigned int)(v36 - (_DWORD)v23); if ( (unsigned int)a4 > (unsigned int)a3 ) goto LABEL_2; if ( v17 == 1 ) { v35 = v22; memcpy(v9, v23, v22); memset((char *)v9 + v22, 32LL, (unsigned int)v16 - v22); } else { memset(v9, 32LL, a5); v35 = v22; memcpy((char *)v9 + v16 - (unsigned int)v35, v23, (unsigned int)v35); } LABEL_49: v14 = &v23[v35]; } LABEL_50: if ( (unsigned int)(2 * v37) >= 0x100 ) { v34 = *(unsigned __int8 *)(v32 + 1); a4 = ++v32; v37 = 1; } else { v37 *= 2; } LABEL_53: v9 = (_WORD *)((char *)v9 + v16); v15 += 56LL; if ( v15 >= v29 ) { v6 = *(_QWORD *)a1; v10 = v30; goto LABEL_58; } } if ( v17 != 4 ) { v13 = (__PAIR64__(v13, v17) - 3) >> 32; a4 = (unsigned int)(v36 - (_DWORD)v14); if ( v13 + (unsigned int)v16 > (unsigned int)a4 ) goto LABEL_2; memcpy(v9, v14, *(unsigned __int16 *)(v15 + 8)); v14 += v16; goto LABEL_50; } switch ( *(_WORD *)(v15 + 8) ) { case 9: a5 = *v14; break; case 0xA: a5 = *(unsigned __int16 *)v14; break; case 0xB: a5 = *(unsigned __int16 *)v14 | (unsigned long long)(v14[2] << 16); break; case 0xC: a5 = *(unsigned int *)v14; break; default: a5 = 0LL; break; } a4 = (unsigned int)(v16 - 8); a3 = a4; v24 = v36 - (_QWORD)v14 - a4; if ( v36 - (unsigned long long)v14 < a4 ) goto LABEL_2; v25 = v24 < a5; v26 = v24 - a5; if ( v25 ) goto LABEL_2; a4 = v13; if ( v26 < v13 ) goto LABEL_2; v35 = a5; memcpy(v9, v14, a3); v27 = (unsigned int)(v16 - 8); v23 = &v14[v27]; *(_QWORD *)((char *)v9 + v27) = v23; goto LABEL_49; } v37 = 1; LABEL_58: if ( *(_QWORD *)(v6 + 1704) ) { v28 = *v14++; a4 = (unsigned long long)a1; a1[44] = v28; } if ( v9 != v10 || v14 != (unsigned __int8 *)v36 || v37 != 1 && (-v37 & v34) != 0 ) goto LABEL_2; return v31; }
_ma_rec_unpack: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV qword ptr [RBP + -0x58],RDX MOV qword ptr [RBP + -0x50],RDI MOV RAX,qword ptr [RDI] MOV R12,qword ptr [RAX + 0x3a8] MOV qword ptr [RBP + -0x68],RCX CMP R12,RCX JBE 0x00145460 LAB_00145437: MOV RDI,qword ptr [RBP + -0x50] MOV ESI,0x7f CALL 0x00137840 MOV qword ptr [RBP + -0x68],-0x1 LAB_0014544d: MOV RAX,qword ptr [RBP + -0x68] ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00145460: MOV R15,RSI MOV R14,qword ptr [RAX + 0x398] ADD R14,RSI MOV RDX,qword ptr [RBP + -0x58] MOVZX ECX,byte ptr [RDX] MOV dword ptr [RBP + -0x44],ECX MOV R13D,dword ptr [RAX + 0x3f4] MOV EBX,dword ptr [RAX + 0x3fc] SUB R12D,R13D ADD R13,RDX TEST RBX,RBX JZ 0x001454ad MOV RDI,R15 MOV RSI,R13 MOV RDX,RBX CALL 0x00129090 ADD R13,RBX ADD R15,RBX SUB R12D,EBX MOV RAX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RAX] LAB_001454ad: MOV RCX,qword ptr [RBP + -0x68] MOV RDX,qword ptr [RBP + -0x58] ADD RCX,RDX MOV qword ptr [RBP + -0x38],RCX MOV ECX,dword ptr [RAX + 0x3c8] TEST RCX,RCX JZ 0x001457c3 MOV qword ptr [RBP + -0x70],R14 MOV RBX,qword ptr [RAX + 0x588] IMUL RAX,RCX,0x38 ADD RAX,RBX MOV qword ptr [RBP + -0x78],RAX MOV dword ptr [RBP + -0x2c],0x1 LAB_001454e8: MOVZX R14D,word ptr [RBX + 0x8] MOV EAX,dword ptr [RBX] TEST EAX,EAX JZ 0x00145535 CMP EAX,0x9 JZ 0x00145535 CMP EAX,0x8 JNZ 0x0014555e LEA EDX,[R14 + -0x1] CMP EDX,0x100 MOV EDI,0x2 SBB RDI,0x0 MOV CL,byte ptr [R13] MOVZX EAX,CL CMP EDX,0xff JA 0x00145580 CMP EDX,EAX JC 0x00145437 INC R13 MOV byte ptr [R15],CL MOV RSI,R13 JMP 0x00145672 LAB_00145535: MOV RAX,qword ptr [RBP + -0x38] SUB EAX,R13D CMP R12D,EAX JA 0x00145437 SUB R12D,R14D MOV RDI,R15 MOV RSI,R13 MOV RDX,R14 CALL 0x00129090 ADD R13,R14 JMP 0x0014578c LAB_0014555e: MOV ECX,dword ptr [RBP + -0x2c] TEST dword ptr [RBP + -0x44],ECX JZ 0x00145591 LEA ECX,[RAX + -0x3] CMP ECX,0x1 JA 0x001455c1 MOV RDI,R15 XOR ESI,ESI MOV RDX,R14 CALL 0x00129290 JMP 0x00145762 LAB_00145580: CMP CL,0xff JZ 0x0014564d INC R13 JMP 0x0014565d LAB_00145591: CMP EAX,0x4 JNZ 0x00145692 LEA EAX,[R14 + -0x9] CMP EAX,0x3 JA 0x00145710 LEA RCX,[0x1e337c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_9: MOVZX R8D,byte ptr [R13] JMP 0x00145713 LAB_001455c1: CMP EAX,0x2 JA 0x00145762 CMP R14D,0x100 JC 0x001455e0 MOVZX ECX,byte ptr [R13] TEST CL,CL JS 0x0014579f LAB_001455e0: CMP R13,qword ptr [RBP + -0x38] JZ 0x00145437 MOVZX ESI,byte ptr [R13] INC R13 LAB_001455f2: MOV R8D,R14D SUB R8D,ESI JBE 0x00145437 DEC R12D LEA ECX,[RSI + R12*0x1] MOV RDX,qword ptr [RBP + -0x38] SUB EDX,R13D CMP ECX,EDX JA 0x00145437 CMP EAX,0x1 JNZ 0x001456c4 MOV EDX,ESI MOV qword ptr [RBP + -0x40],RDX MOV RDI,R15 MOV RSI,R13 MOV qword ptr [RBP + -0x60],R8 CALL 0x00129090 MOV RAX,qword ptr [RBP + -0x40] LEA RDI,[R15 + RAX*0x1] MOV ESI,0x20 MOV RDX,qword ptr [RBP + -0x60] CALL 0x00129290 JMP 0x0014575e LAB_0014564d: MOVZX EAX,word ptr [R13 + 0x1] ROL AX,0x8 MOVZX EAX,AX ADD R13,0x3 LAB_0014565d: MOV RSI,R13 MOV ECX,R14D ADD ECX,-0x2 CMP EAX,ECX JA 0x00145437 MOV word ptr [R15],AX LAB_00145672: MOV EDX,EAX LEA R13,[RSI + RDX*0x1] CMP R13,qword ptr [RBP + -0x38] JA 0x00145437 ADD RDI,R15 CALL 0x00129090 DEC R12D JMP 0x0014578c LAB_00145692: CMP EAX,0x3 SBB R12D,0x0 MOV EAX,R14D ADD EAX,R12D MOV RCX,qword ptr [RBP + -0x38] SUB ECX,R13D CMP EAX,ECX JA 0x00145437 MOV RDI,R15 MOV RSI,R13 MOV RDX,R14 CALL 0x00129090 ADD R13,R14 JMP 0x00145762 LAB_001456c4: MOV RDI,R15 MOV qword ptr [RBP + -0x40],RSI MOV ESI,0x20 MOV RDX,R8 CALL 0x00129290 LEA RDI,[R15 + R14*0x1] MOV EDX,dword ptr [RBP + -0x40] SUB RDI,RDX MOV RSI,R13 MOV qword ptr [RBP + -0x40],RDX CALL 0x00129090 JMP 0x0014575e caseD_b: MOVZX EAX,word ptr [R13] MOVZX R8D,byte ptr [R13 + 0x2] SHL R8D,0x10 OR R8,RAX JMP 0x00145713 caseD_c: MOV R8D,dword ptr [R13] JMP 0x00145713 caseD_a: MOVZX R8D,word ptr [R13] JMP 0x00145713 default: XOR R8D,R8D LAB_00145713: MOV ECX,R14D ADD ECX,-0x8 MOV RAX,qword ptr [RBP + -0x38] SUB RAX,R13 MOV EDX,ECX SUB RAX,RDX JC 0x00145437 SUB RAX,R8 JC 0x00145437 MOV ECX,R12D CMP RAX,RCX JC 0x00145437 MOV RDI,R15 MOV RSI,R13 MOV qword ptr [RBP + -0x40],R8 MOV qword ptr [RBP + -0x60],RDX CALL 0x00129090 MOV RAX,qword ptr [RBP + -0x60] ADD R13,RAX MOV qword ptr [R15 + RAX*0x1],R13 LAB_0014575e: ADD R13,qword ptr [RBP + -0x40] LAB_00145762: MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,EAX CMP EAX,0x100 JNC 0x00145773 MOV dword ptr [RBP + -0x2c],EAX JMP 0x0014578c LAB_00145773: MOV RCX,qword ptr [RBP + -0x58] MOVZX EAX,byte ptr [RCX + 0x1] MOV dword ptr [RBP + -0x44],EAX INC RCX MOV qword ptr [RBP + -0x58],RCX MOV dword ptr [RBP + -0x2c],0x1 LAB_0014578c: ADD R15,R14 ADD RBX,0x38 CMP RBX,qword ptr [RBP + -0x78] JC 0x001454e8 JMP 0x001457cc LAB_0014579f: LEA RDX,[R13 + 0x1] CMP RDX,qword ptr [RBP + -0x38] JNC 0x00145437 AND ECX,0x7f MOVZX ESI,byte ptr [R13 + 0x1] SHL ESI,0x7 OR ESI,ECX ADD R13,0x2 JMP 0x001455f2 LAB_001457c3: MOV dword ptr [RBP + -0x2c],0x1 JMP 0x001457d7 LAB_001457cc: MOV RAX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RAX] MOV R14,qword ptr [RBP + -0x70] LAB_001457d7: CMP qword ptr [RAX + 0x6a8],0x0 JZ 0x001457f3 MOVZX EAX,byte ptr [R13] INC R13 MOV RCX,qword ptr [RBP + -0x50] MOV dword ptr [RCX + 0xb0],EAX LAB_001457f3: CMP R15,R14 JNZ 0x00145437 CMP R13,qword ptr [RBP + -0x38] JNZ 0x00145437 MOV EAX,dword ptr [RBP + -0x2c] CMP EAX,0x1 JZ 0x0014544d NEG EAX TEST dword ptr [RBP + -0x44],EAX JNZ 0x00145437 JMP 0x0014544d
ulong _ma_rec_unpack(long *param_1,byte *param_2,byte *param_3,ulong param_4) { byte bVar1; ushort uVar2; int iVar3; uint uVar4; uint *puVar5; ulong uVar6; long lVar7; uint *puVar8; uint uVar9; ulong __n; ulong uVar10; uint *puVar11; uint uVar12; uint uVar13; uint *__src; byte *__src_00; ushort *__src_01; byte *pbVar14; byte *local_60; uint local_4c; size_t local_48; uint local_34; lVar7 = *param_1; if (*(ulong *)(lVar7 + 0x3a8) <= param_4) { pbVar14 = param_2 + *(long *)(lVar7 + 0x398); local_4c = (uint)*param_3; uVar4 = *(uint *)(lVar7 + 0x3fc); uVar10 = (ulong)uVar4; uVar13 = (int)*(ulong *)(lVar7 + 0x3a8) - *(uint *)(lVar7 + 0x3f4); __src = (uint *)(param_3 + *(uint *)(lVar7 + 0x3f4)); if (uVar10 != 0) { memcpy(param_2,__src,uVar10); __src = (uint *)((long)__src + uVar10); param_2 = param_2 + uVar10; uVar13 = uVar13 - uVar4; lVar7 = *param_1; } puVar8 = (uint *)(param_3 + param_4); if ((ulong)*(uint *)(lVar7 + 0x3c8) == 0) { local_34 = 1; } else { puVar11 = *(uint **)(lVar7 + 0x588); puVar5 = puVar11 + (ulong)*(uint *)(lVar7 + 0x3c8) * 0xe; local_34 = 1; local_60 = param_3; do { uVar2 = (ushort)puVar11[2]; uVar10 = (ulong)uVar2; uVar4 = *puVar11; iVar3 = (int)puVar8; if ((uVar4 == 0) || (uVar4 == 9)) { if ((uint)(iVar3 - (int)__src) < uVar13) goto LAB_00145437; uVar13 = uVar13 - uVar2; memcpy(param_2,__src,uVar10); __src = (uint *)((long)__src + uVar10); } else if (uVar4 == 8) { uVar9 = uVar2 - 1; bVar1 = (byte)*__src; uVar4 = (uint)bVar1; if (uVar9 < 0x100) { if (uVar9 < bVar1) goto LAB_00145437; __src_00 = (byte *)((long)__src + 1); *param_2 = bVar1; } else { if (bVar1 == 0xff) { uVar4 = (uint)(ushort)(*(ushort *)((long)__src + 1) << 8 | *(ushort *)((long)__src + 1) >> 8); __src_00 = (byte *)((long)__src + 3); } else { __src_00 = (byte *)((long)__src + 1); } if (uVar2 - 2 < uVar4) goto LAB_00145437; *(short *)param_2 = (short)uVar4; } __src = (uint *)(__src_00 + uVar4); if (puVar8 < __src) goto LAB_00145437; memcpy(param_2 + (2 - (ulong)(uVar9 < 0x100)),__src_00,(ulong)uVar4); uVar13 = uVar13 - 1; } else { if ((local_4c & local_34) == 0) { if (uVar4 == 4) { switch(uVar2) { case 9: local_48 = (size_t)(byte)*__src; break; case 10: local_48 = (size_t)(ushort)*__src; break; case 0xb: local_48 = (size_t)(uint3)*__src; break; case 0xc: local_48 = (size_t)*__src; break; default: local_48 = 0; } __n = (ulong)(uVar2 - 8); uVar6 = ((long)puVar8 - (long)__src) - __n; if ((((ulong)((long)puVar8 - (long)__src) < __n) || (uVar6 < local_48)) || (uVar6 - local_48 < (ulong)uVar13)) goto LAB_00145437; memcpy(param_2,__src,__n); __src_01 = (ushort *)((long)__src + __n); *(ushort **)(param_2 + __n) = __src_01; LAB_0014575e: __src = (uint *)((long)__src_01 + local_48); } else { uVar13 = uVar13 - (uVar4 < 3); if ((uint)(iVar3 - (int)__src) < uVar2 + uVar13) goto LAB_00145437; memcpy(param_2,__src,uVar10); __src = (uint *)((long)__src + uVar10); } } else if (uVar4 - 3 < 2) { memset(param_2,0,uVar10); } else if (uVar4 < 3) { if ((uVar2 < 0x100) || (-1 < (char)(byte)*__src)) { if (__src == puVar8) goto LAB_00145437; local_48 = (size_t)(byte)*__src; __src_01 = (ushort *)((long)__src + 1); } else { if (puVar8 <= (uint *)((long)__src + 1U)) goto LAB_00145437; local_48 = (size_t)((uint)*(byte *)((long)__src + 1) << 7 | (byte)*__src & 0x7f); __src_01 = (ushort *)((long)__src + 2); } uVar9 = (uint)local_48; uVar12 = uVar2 - uVar9; if ((uVar9 <= uVar2 && uVar12 != 0) && (uVar13 = uVar13 - 1, uVar9 + uVar13 <= (uint)(iVar3 - (int)__src_01))) { if (uVar4 == 1) { memcpy(param_2,__src_01,local_48); memset(param_2 + local_48,0x20,(ulong)uVar12); } else { memset(param_2,0x20,(ulong)uVar12); memcpy(param_2 + (uVar10 - local_48),__src_01,local_48); } goto LAB_0014575e; } goto LAB_00145437; } local_34 = local_34 * 2; if (0xff < local_34) { local_4c = (uint)local_60[1]; local_60 = local_60 + 1; local_34 = 1; } } param_2 = param_2 + uVar10; puVar11 = puVar11 + 0xe; } while (puVar11 < puVar5); lVar7 = *param_1; } if (*(long *)(lVar7 + 0x6a8) != 0) { uVar4 = *__src; __src = (uint *)((long)__src + 1); *(uint *)(param_1 + 0x16) = (uint)(byte)uVar4; } if ((param_2 == pbVar14) && (__src == puVar8)) { if (local_34 == 1) { return param_4; } if ((local_4c & -local_34) == 0) { return param_4; } } } LAB_00145437: _ma_set_fatal_error(param_1,0x7f); return 0xffffffffffffffff; }
49,839
release_whole_queue
eloqsql/mysys/mf_keycache.c
static void release_whole_queue(KEYCACHE_WQUEUE *wqueue) { struct st_my_thread_var *last; struct st_my_thread_var *next; struct st_my_thread_var *thread; /* Queue may be empty. */ if (!(last= wqueue->last_thread)) return; next= last->next; /* First (oldest) element */ do { thread=next; DBUG_ASSERT(thread && thread->init == 1); KEYCACHE_DBUG_PRINT("release_whole_queue: signal", ("thread %ld", (ulong) thread->id)); /* Take thread from queue. */ next= thread->next; thread->next= NULL; /* Signal the thread. */ keycache_pthread_cond_signal(&thread->suspend); } while (thread != last); /* Now queue is definitely empty. */ wqueue->last_thread= NULL; }
O0
c
release_whole_queue: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) cmpq $0x0, %rax jne 0xe517f jmp 0xe51dc movq -0x10(%rbp), %rax movq 0x88(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) jmp 0xe5198 jmp 0xe519a jmp 0xe519c movq -0x20(%rbp), %rax movq 0x88(%rax), %rax movq %rax, -0x18(%rbp) movq -0x20(%rbp), %rax movq $0x0, 0x88(%rax) movq -0x20(%rbp), %rdi addq $0x8, %rdi callq 0xe5320 movq -0x20(%rbp), %rax cmpq -0x10(%rbp), %rax jne 0xe518e movq -0x8(%rbp), %rax movq $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
release_whole_queue: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_10], rax cmp rax, 0 jnz short loc_E517F jmp short loc_E51DC loc_E517F: mov rax, [rbp+var_10] mov rax, [rax+88h] mov [rbp+var_18], rax loc_E518E: mov rax, [rbp+var_18] mov [rbp+var_20], rax jmp short $+2 loc_E5198: jmp short $+2 loc_E519A: jmp short $+2 loc_E519C: mov rax, [rbp+var_20] mov rax, [rax+88h] mov [rbp+var_18], rax mov rax, [rbp+var_20] mov qword ptr [rax+88h], 0 mov rdi, [rbp+var_20] add rdi, 8 call inline_mysql_cond_signal_2 mov rax, [rbp+var_20] cmp rax, [rbp+var_10] jnz short loc_E518E mov rax, [rbp+var_8] mov qword ptr [rax], 0 loc_E51DC: add rsp, 20h pop rbp retn
_QWORD * release_whole_queue(_QWORD *a1) { _QWORD *result; // rax _QWORD *v2; // [rsp+0h] [rbp-20h] _QWORD *v3; // [rsp+8h] [rbp-18h] _QWORD *v4; // [rsp+10h] [rbp-10h] result = (_QWORD *)*a1; v4 = (_QWORD *)*a1; if ( *a1 ) { v3 = (_QWORD *)v4[17]; do { v2 = v3; v3 = (_QWORD *)v3[17]; v2[17] = 0LL; inline_mysql_cond_signal_2(v2 + 1); } while ( v2 != v4 ); result = a1; *a1 = 0LL; } return result; }
release_whole_queue: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX CMP RAX,0x0 JNZ 0x001e517f JMP 0x001e51dc LAB_001e517f: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x88] MOV qword ptr [RBP + -0x18],RAX LAB_001e518e: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX JMP 0x001e5198 LAB_001e5198: JMP 0x001e519a LAB_001e519a: JMP 0x001e519c LAB_001e519c: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x88] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x88],0x0 MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x8 CALL 0x001e5320 MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001e518e MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],0x0 LAB_001e51dc: ADD RSP,0x20 POP RBP RET
void release_whole_queue(long *param_1) { long lVar1; long lVar2; bool bVar3; int8 local_20; lVar1 = *param_1; if (lVar1 != 0) { local_20 = *(long *)(lVar1 + 0x88); do { lVar2 = *(long *)(local_20 + 0x88); *(int8 *)(local_20 + 0x88) = 0; inline_mysql_cond_signal(local_20 + 8); bVar3 = local_20 != lVar1; local_20 = lVar2; } while (bVar3); *param_1 = 0; } return; }
49,840
release_whole_queue
eloqsql/mysys/mf_keycache.c
static void release_whole_queue(KEYCACHE_WQUEUE *wqueue) { struct st_my_thread_var *last; struct st_my_thread_var *next; struct st_my_thread_var *thread; /* Queue may be empty. */ if (!(last= wqueue->last_thread)) return; next= last->next; /* First (oldest) element */ do { thread=next; DBUG_ASSERT(thread && thread->init == 1); KEYCACHE_DBUG_PRINT("release_whole_queue: signal", ("thread %ld", (ulong) thread->id)); /* Take thread from queue. */ next= thread->next; thread->next= NULL; /* Signal the thread. */ keycache_pthread_cond_signal(&thread->suspend); } while (thread != last); /* Now queue is definitely empty. */ wqueue->last_thread= NULL; }
O3
c
release_whole_queue: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq (%rdi), %r14 testq %r14, %r14 je 0x98820 movq %rdi, %rbx movq 0x88(%r14), %r12 leaq 0x2ed834(%rip), %r15 # 0x386010 movq 0x38(%r12), %rdi movq 0x88(%r12), %r13 movq $0x0, 0x88(%r12) testq %rdi, %rdi jne 0x9880e leaq 0x8(%r12), %rdi callq 0x295b0 cmpq %r14, %r12 movq %r13, %r12 jne 0x987dc jmp 0x98819 movq (%r15), %rax callq *0x170(%rax) jmp 0x987fa movq $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
release_whole_queue: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, [rdi] test r14, r14 jz short loc_98820 mov rbx, rdi mov r12, [r14+88h] lea r15, PSI_server loc_987DC: mov rdi, [r12+38h] mov r13, [r12+88h] mov qword ptr [r12+88h], 0 test rdi, rdi jnz short loc_9880E loc_987FA: lea rdi, [r12+8] call _pthread_cond_signal cmp r12, r14 mov r12, r13 jnz short loc_987DC jmp short loc_98819 loc_9880E: mov rax, [r15] call qword ptr [rax+170h] jmp short loc_987FA loc_98819: mov qword ptr [rbx], 0 loc_98820: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long release_whole_queue(long long *a1) { long long v1; // r14 long long v3; // r12 long long v4; // rdi long long v5; // r13 long long result; // rax bool v7; // zf v1 = *a1; if ( *a1 ) { v3 = *(_QWORD *)(v1 + 136); do { v4 = *(_QWORD *)(v3 + 56); v5 = *(_QWORD *)(v3 + 136); *(_QWORD *)(v3 + 136) = 0LL; if ( v4 ) ((void ( *)(long long))PSI_server[46])(v4); result = pthread_cond_signal(v3 + 8); v7 = v3 == v1; v3 = v5; } while ( !v7 ); *a1 = 0LL; } return result; }
release_whole_queue: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,qword ptr [RDI] TEST R14,R14 JZ 0x00198820 MOV RBX,RDI MOV R12,qword ptr [R14 + 0x88] LEA R15,[0x486010] LAB_001987dc: MOV RDI,qword ptr [R12 + 0x38] MOV R13,qword ptr [R12 + 0x88] MOV qword ptr [R12 + 0x88],0x0 TEST RDI,RDI JNZ 0x0019880e LAB_001987fa: LEA RDI,[R12 + 0x8] CALL 0x001295b0 CMP R12,R14 MOV R12,R13 JNZ 0x001987dc JMP 0x00198819 LAB_0019880e: MOV RAX,qword ptr [R15] CALL qword ptr [RAX + 0x170] JMP 0x001987fa LAB_00198819: MOV qword ptr [RBX],0x0 LAB_00198820: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void release_whole_queue(long *param_1) { long lVar1; long lVar2; long lVar3; bool bVar4; lVar1 = *param_1; if (lVar1 != 0) { lVar3 = *(long *)(lVar1 + 0x88); do { lVar2 = *(long *)(lVar3 + 0x88); *(int8 *)(lVar3 + 0x88) = 0; if (*(long *)(lVar3 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar3 + 8)); bVar4 = lVar3 != lVar1; lVar3 = lVar2; } while (bVar4); *param_1 = 0; } return; }
49,841
psi_cond_timedwait
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_cond_timedwait(mysql_cond_t *that, mysql_mutex_t *mutex, const struct timespec *abstime, const char *file, uint line) { PSI_cond_locker_state state; PSI_cond_locker *locker= PSI_COND_CALL(start_cond_wait) (&state, that->m_psi, mutex->m_psi, PSI_COND_TIMEDWAIT, file, line); int result= my_cond_timedwait(&that->m_cond, &mutex->m_mutex, abstime); if (psi_likely(locker)) PSI_COND_CALL(end_cond_wait)(locker, result); return result; }
O3
c
psi_cond_timedwait: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r8d, %r9d movq %rcx, %r8 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %r12 leaq 0x362de1(%rip), %r13 # 0x393a58 movq (%r13), %rax movq 0x30(%rdi), %rsi movq 0x40(%r15), %rdx leaq -0x60(%rbp), %rdi pushq $0x1 popq %rcx callq *0x1c0(%rax) movq %rax, %rbx movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x2a6b0 movl %eax, %r14d testq %rbx, %rbx jne 0x30cbb movl %r14d, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq (%r13), %rax movq %rbx, %rdi movl %r14d, %esi callq *0x1c8(%rax) jmp 0x30ca9
psi_cond_timedwait: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r9d, r8d mov r8, rcx mov r14, rdx mov r15, rsi mov r12, rdi lea r13, PSI_server mov rax, [r13+0] mov rsi, [rdi+30h] mov rdx, [r15+40h] lea rdi, [rbp+var_60] push 1 pop rcx call qword ptr [rax+1C0h] mov rbx, rax mov rdi, r12 mov rsi, r15 mov rdx, r14 call _pthread_cond_timedwait mov r14d, eax test rbx, rbx jnz short loc_30CBB loc_30CA9: mov eax, r14d add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_30CBB: mov rax, [r13+0] mov rdi, rbx mov esi, r14d call qword ptr [rax+1C8h] jmp short loc_30CA9
long long psi_cond_timedwait(long long a1, long long a2, long long a3, long long a4, unsigned int a5) { long long v6; // rbx unsigned int v7; // r14d _BYTE v9[96]; // [rsp+0h] [rbp-60h] BYREF v6 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, long long, _QWORD))PSI_server[56])( v9, *(_QWORD *)(a1 + 48), *(_QWORD *)(a2 + 64), 1LL, a4, a5); v7 = pthread_cond_timedwait(a1, a2, a3); if ( v6 ) ((void ( *)(long long, _QWORD))PSI_server[57])(v6, v7); return v7; }
psi_cond_timedwait: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R9D,R8D MOV R8,RCX MOV R14,RDX MOV R15,RSI MOV R12,RDI LEA R13,[0x493a58] MOV RAX,qword ptr [R13] MOV RSI,qword ptr [RDI + 0x30] MOV RDX,qword ptr [R15 + 0x40] LEA RDI,[RBP + -0x60] PUSH 0x1 POP RCX CALL qword ptr [RAX + 0x1c0] MOV RBX,RAX MOV RDI,R12 MOV RSI,R15 MOV RDX,R14 CALL 0x0012a6b0 MOV R14D,EAX TEST RBX,RBX JNZ 0x00130cbb LAB_00130ca9: MOV EAX,R14D ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00130cbb: MOV RAX,qword ptr [R13] MOV RDI,RBX MOV ESI,R14D CALL qword ptr [RAX + 0x1c8] JMP 0x00130ca9
int psi_cond_timedwait(pthread_cond_t *param_1,pthread_mutex_t *param_2,timespec *param_3, int8 param_4,int4 param_5) { int iVar1; long lVar2; int1 local_68 [56]; lVar2 = (**(code **)(PSI_server + 0x1c0)) (local_68,param_1[1].__align,*(int8 *)((long)param_2 + 0x40),1,param_4, param_5); iVar1 = pthread_cond_timedwait(param_1,param_2,param_3); if (lVar2 != 0) { (**(code **)(PSI_server + 0x1c8))(lVar2,iVar1); } return iVar1; }
49,842
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator->() const
monkey531[P]llama/common/json.hpp
pointer operator->() const { JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: { JSON_ASSERT(m_it.object_iterator != m_object->m_data.m_value.object->end()); return &(m_it.object_iterator->second); } case value_t::array: { JSON_ASSERT(m_it.array_iterator != m_object->m_data.m_value.array->end()); return &*m_it.array_iterator; } case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin())) { return m_object; } JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object)); } } }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator->() const: subq $0x88, %rsp movq %rdi, 0x78(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x28(%rsp) cmpq $0x0, (%rax) jne 0xbad8d leaq 0x15aaeb(%rip), %rdi # 0x21585e movl $0x338b, %esi # imm = 0x338B leaq 0x1545d6(%rip), %rdx # 0x20f355 leaq 0x16010c(%rip), %rcx # 0x21ae92 movb $0x0, %al callq 0x5d050 movq 0x28(%rsp), %rax movq (%rax), %rax movzbl (%rax), %eax movq %rax, 0x20(%rsp) subq $0x9, %rax ja 0xbaeb4 movq 0x20(%rsp), %rax leaq 0x155485(%rip), %rcx # 0x210238 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x28(%rsp), %rax movq %rax, %rcx addq $0x8, %rcx movq %rcx, 0x18(%rsp) movq (%rax), %rax movq 0x8(%rax), %rdi callq 0xbe3e0 movq 0x18(%rsp), %rdi movq %rax, 0x70(%rsp) leaq 0x70(%rsp), %rsi callq 0xbe410 xorb $-0x1, %al testb $0x1, %al jne 0xbadf5 jmp 0xbae16 leaq 0x15aa62(%rip), %rdi # 0x21585e movl $0x3391, %esi # imm = 0x3391 leaq 0x15454d(%rip), %rdx # 0x20f355 leaq 0x15baba(%rip), %rcx # 0x2168c9 movb $0x0, %al callq 0x5d050 movq 0x28(%rsp), %rdi addq $0x8, %rdi callq 0xbf4b0 addq $0x20, %rax movq %rax, 0x80(%rsp) jmp 0xbafa0 movq 0x28(%rsp), %rax movq %rax, %rcx addq $0x8, %rcx addq $0x8, %rcx movq %rcx, 0x10(%rsp) movq (%rax), %rax movq 0x8(%rax), %rdi callq 0xb97f0 movq 0x10(%rsp), %rdi movq %rax, 0x68(%rsp) leaq 0x68(%rsp), %rsi callq 0xbf4c0 xorb $-0x1, %al testb $0x1, %al jne 0xbae72 jmp 0xbae93 leaq 0x15a9e5(%rip), %rdi # 0x21585e movl $0x3397, %esi # imm = 0x3397 leaq 0x1544d0(%rip), %rdx # 0x20f355 leaq 0x15ba7c(%rip), %rcx # 0x216908 movb $0x0, %al callq 0x5d050 movq 0x28(%rsp), %rdi addq $0x8, %rdi addq $0x8, %rdi callq 0xb9e80 movq %rax, 0x80(%rsp) jmp 0xbafa0 jmp 0xbaeb4 movq 0x28(%rsp), %rdi addq $0x8, %rdi addq $0x10, %rdi callq 0xbf500 xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xbaed0 jmp 0xbaee5 movq 0x28(%rsp), %rax movq (%rax), %rax movq %rax, 0x80(%rsp) jmp 0xbafa0 movb $0x1, 0x33(%rsp) movl $0x20, %edi callq 0x5c740 movq %rax, (%rsp) leaq 0x47(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x5d2b0 movq 0x8(%rsp), %rdx leaq 0x15ba32(%rip), %rsi # 0x216945 leaq 0x48(%rsp), %rdi callq 0x65f10 jmp 0xbaf1f movq (%rsp), %rdi movq 0x28(%rsp), %rax movq (%rax), %rcx movl $0xd6, %esi leaq 0x48(%rsp), %rdx callq 0xbf0f0 jmp 0xbaf3c movq (%rsp), %rdi movb $0x0, 0x33(%rsp) leaq 0x1efdec(%rip), %rsi # 0x2aad38 leaq 0x434d(%rip), %rdx # 0xbf2a0 callq 0x5cbf0 jmp 0xbafba movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0xbaf82 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x48(%rsp), %rdi callq 0x5d858 leaq 0x47(%rsp), %rdi callq 0x5d830 testb $0x1, 0x33(%rsp) jne 0xbaf95 jmp 0xbaf9e movq (%rsp), %rdi callq 0x5d110 jmp 0xbafb0 movq 0x80(%rsp), %rax addq $0x88, %rsp retq movq 0x38(%rsp), %rdi callq 0x5ccd0 nopw (%rax,%rax)
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv: sub rsp, 88h mov qword ptr [rsp+88h+var_10], rdi; int mov rax, qword ptr [rsp+88h+var_10] mov qword ptr [rsp+88h+var_60], rax; int cmp qword ptr [rax], 0 jnz short loc_BAD8D lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... mov esi, 338Bh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAnchorMObjectN+7; "m_object != nullptr" mov al, 0 call _ggml_abort loc_BAD8D: mov rax, qword ptr [rsp+88h+var_60] mov rax, [rax] movzx eax, byte ptr [rax] mov qword ptr [rsp+88h+var_68], rax; int sub rax, 9; switch 10 cases ja def_BADBA; jumptable 00000000000BADBA default case mov rax, qword ptr [rsp+88h+var_68] lea rcx, jpt_BADBA movsxd rax, ds:(jpt_BADBA - 210238h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_BADBC: mov rax, qword ptr [rsp+88h+var_60]; jumptable 00000000000BADBA case 1 mov rcx, rax add rcx, 8 mov [rsp+88h+var_70], rcx mov rax, [rax] mov rdi, [rax+8] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov rdi, [rsp+88h+var_70] mov [rsp+88h+var_18], rax lea rsi, [rsp+88h+var_18] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) xor al, 0FFh test al, 1 jnz short loc_BADF5 jmp short loc_BAE16 loc_BADF5: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... mov esi, 3391h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMItObjectItera; "m_it.object_iterator != m_object->m_dat"... mov al, 0 call _ggml_abort loc_BAE16: mov rdi, qword ptr [rsp+88h+var_60] add rdi, 8 call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void) add rax, 20h ; ' ' mov [rsp+88h+var_8], rax jmp loc_BAFA0 loc_BAE35: mov rax, qword ptr [rsp+88h+var_60]; jumptable 00000000000BADBA case 2 mov rcx, rax add rcx, 8 add rcx, 8 mov [rsp+88h+var_78], rcx mov rax, [rax] mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE3endEv; 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>>::end(void) mov rdi, [rsp+88h+var_78] mov [rsp+88h+var_20], rax lea rsi, [rsp+88h+var_20] call _ZN9__gnu_cxxneIPN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEEbRKNS_17__normal_iteratorIT_T0_EESO_; __gnu_cxx::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> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>> const&,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>> const&) xor al, 0FFh test al, 1 jnz short loc_BAE72 jmp short loc_BAE93 loc_BAE72: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... mov esi, 3397h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMItArrayIterat; "m_it.array_iterator != m_object->m_data"... mov al, 0 call _ggml_abort loc_BAE93: mov rdi, qword ptr [rsp+88h+var_60] add rdi, 8 add rdi, 8 call _ZNK9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEdeEv; __gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::operator*(void) mov [rsp+88h+var_8], rax jmp loc_BAFA0 loc_BAEB2: jmp short $+2; jumptable 00000000000BADBA cases 0,3-9 def_BADBA: mov rdi, qword ptr [rsp+88h+var_60]; jumptable 00000000000BADBA default case add rdi, 8 add rdi, 10h; this call _ZNK8nlohmann16json_abi_v3_11_36detail20primitive_iterator_t8is_beginEv; nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin(void) xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_BAED0 jmp short loc_BAEE5 loc_BAED0: mov rax, qword ptr [rsp+88h+var_60] mov rax, [rax] mov [rsp+88h+var_8], rax jmp loc_BAFA0 loc_BAEE5: mov [rsp+88h+var_55], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+88h+var_88], rax; int lea rdi, [rsp+88h+var_41] mov qword ptr [rsp+88h+var_80], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+88h+var_80] lea rsi, aCannotGetValue; "cannot get value" lea rdi, [rsp+88h+var_41+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_BAF1F: mov rdi, [rsp+88h+var_88]; int mov rax, qword ptr [rsp+88h+var_60] mov rcx, [rax] mov esi, 0D6h lea rdx, [rsp+88h+var_41+1] call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_BAF3C: mov rdi, [rsp+88h+var_88]; void * mov [rsp+88h+var_55], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_BAFBA mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp short loc_BAF82 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_BAF82: lea rdi, [rsp+arg_3F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rsp+arg_2B], 1 jnz short loc_BAF95 jmp short loc_BAF9E loc_BAF95: mov rdi, [rsp+0]; void * call ___cxa_free_exception loc_BAF9E: jmp short loc_BAFB0 loc_BAFA0: mov rax, [rsp+88h+var_8] add rsp, 88h retn loc_BAFB0: mov rdi, [rsp+arg_30] call __Unwind_Resume loc_BAFBA: nop word ptr [rax+rax+00h]
operator->: SUB RSP,0x88 MOV qword ptr [RSP + 0x78],RDI MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x28],RAX CMP qword ptr [RAX],0x0 JNZ 0x001bad8d LEA RDI,[0x31585e] MOV ESI,0x338b LEA RDX,[0x30f355] LEA RCX,[0x31ae92] MOV AL,0x0 CALL 0x0015d050 LAB_001bad8d: MOV RAX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RAX] MOVZX EAX,byte ptr [RAX] MOV qword ptr [RSP + 0x20],RAX SUB RAX,0x9 JA 0x001baeb4 MOV RAX,qword ptr [RSP + 0x20] LEA RCX,[0x310238] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RAX,qword ptr [RSP + 0x28] MOV RCX,RAX ADD RCX,0x8 MOV qword ptr [RSP + 0x18],RCX MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001be3e0 MOV RDI,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x70],RAX LEA RSI,[RSP + 0x70] CALL 0x001be410 XOR AL,0xff TEST AL,0x1 JNZ 0x001badf5 JMP 0x001bae16 LAB_001badf5: LEA RDI,[0x31585e] MOV ESI,0x3391 LEA RDX,[0x30f355] LEA RCX,[0x3168c9] MOV AL,0x0 CALL 0x0015d050 LAB_001bae16: MOV RDI,qword ptr [RSP + 0x28] ADD RDI,0x8 CALL 0x001bf4b0 ADD RAX,0x20 MOV qword ptr [RSP + 0x80],RAX JMP 0x001bafa0 caseD_2: MOV RAX,qword ptr [RSP + 0x28] MOV RCX,RAX ADD RCX,0x8 ADD RCX,0x8 MOV qword ptr [RSP + 0x10],RCX MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001b97f0 MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x68],RAX LEA RSI,[RSP + 0x68] CALL 0x001bf4c0 XOR AL,0xff TEST AL,0x1 JNZ 0x001bae72 JMP 0x001bae93 LAB_001bae72: LEA RDI,[0x31585e] MOV ESI,0x3397 LEA RDX,[0x30f355] LEA RCX,[0x316908] MOV AL,0x0 CALL 0x0015d050 LAB_001bae93: MOV RDI,qword ptr [RSP + 0x28] ADD RDI,0x8 ADD RDI,0x8 CALL 0x001b9e80 MOV qword ptr [RSP + 0x80],RAX JMP 0x001bafa0 caseD_0: JMP 0x001baeb4 default: MOV RDI,qword ptr [RSP + 0x28] ADD RDI,0x8 ADD RDI,0x10 CALL 0x001bf500 XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001baed0 JMP 0x001baee5 LAB_001baed0: MOV RAX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x80],RAX JMP 0x001bafa0 LAB_001baee5: MOV byte ptr [RSP + 0x33],0x1 MOV EDI,0x20 CALL 0x0015c740 MOV qword ptr [RSP],RAX LEA RDI,[RSP + 0x47] MOV qword ptr [RSP + 0x8],RDI CALL 0x0015d2b0 MOV RDX,qword ptr [RSP + 0x8] LAB_001baf0c: LEA RSI,[0x316945] LEA RDI,[RSP + 0x48] CALL 0x00165f10 JMP 0x001baf1f LAB_001baf1f: MOV RDI,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RAX] LAB_001baf2b: MOV ESI,0xd6 LEA RDX,[RSP + 0x48] CALL 0x001bf0f0 JMP 0x001baf3c LAB_001baf3c: MOV RDI,qword ptr [RSP] MOV byte ptr [RSP + 0x33],0x0 LEA RSI,[0x3aad38] LEA RDX,[0x1bf2a0] CALL 0x0015cbf0 LAB_001bafa0: MOV RAX,qword ptr [RSP + 0x80] ADD RSP,0x88 RET
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::TEMPNAMEPLACEHOLDERVALUE() const */ long __thiscall 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>> ::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>> *this) { bool bVar1; byte bVar2; int8 uVar3; allocator local_41; string local_40 [32]; int8 local_20; int8 local_18; 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_10; long local_8; local_10 = this; if (*(long *)this == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x338b, "GGML_ASSERT(%s) failed","m_object != nullptr"); } switch(**(int1 **)this) { case 0: case 3: case 4: case 5: case 6: case 7: case 8: case 9: default: bVar2 = primitive_iterator_t::is_begin((primitive_iterator_t *)(this + 0x18)); if ((bVar2 & 1) == 0) { uVar3 = __cxa_allocate_exception(0x20); std::allocator<char>::allocator(); /* try { // try from 001baf0c to 001baf1c has its CatchHandler @ 001baf5a */ std::__cxx11::string::string<std::allocator<char>>(local_40,"cannot get value",&local_41); /* try { // try from 001baf2b to 001baf57 has its CatchHandler @ 001baf6a */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0xd6,local_40,*(int8 *)this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&invalid_iterator::typeinfo,invalid_iterator::~invalid_iterator); } local_8 = *(long *)this; break; case 1: local_18 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::end(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)(*(long *)this + 8)); bVar1 = __gnu_cxx::operator!=(this + 8,(__normal_iterator *)&local_18); if (((bVar1 ^ 0xffU) & 1) != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3391, "GGML_ASSERT(%s) failed", "m_it.object_iterator != m_object->m_data.m_value.object->end()"); } local_8 = __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator->((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)(this + 8)); local_8 = local_8 + 0x20; break; case 2: local_20 = 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>>> ::end(*(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>>> **)(*(long *)this + 8)); bVar1 = __gnu_cxx::operator!=(this + 0x10,(__normal_iterator *)&local_20); if (((bVar1 ^ 0xffU) & 1) != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3397, "GGML_ASSERT(%s) failed", "m_it.array_iterator != m_object->m_data.m_value.array->end()"); } local_8 = __gnu_cxx:: __normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::operator*((__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)(this + 0x10)); } return local_8; }
49,843
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator->() const
monkey531[P]llama/common/json.hpp
pointer operator->() const { JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: { JSON_ASSERT(m_it.object_iterator != m_object->m_data.m_value.object->end()); return &(m_it.object_iterator->second); } case value_t::array: { JSON_ASSERT(m_it.array_iterator != m_object->m_data.m_value.array->end()); return &*m_it.array_iterator; } case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin())) { return m_object; } JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object)); } } }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator->() const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq (%rdi), %rax testq %rax, %rax je 0x6171d movq %rdi, %r14 movzbl (%rax), %ecx cmpl $0x2, %ecx je 0x61680 cmpl $0x1, %ecx jne 0x616ad movq 0x8(%rax), %rcx movq 0x8(%r14), %rax cmpq 0x8(%rcx), %rax je 0x61739 addq $0x20, %rax jmp 0x616b4 movq 0x8(%rax), %rcx movq 0x10(%r14), %rax cmpq 0x8(%rcx), %rax jne 0x616b4 leaq 0x8dc3e(%rip), %rdi # 0xef2d3 leaq 0x87d80(%rip), %rdx # 0xe941c leaq 0x8ecbf(%rip), %rcx # 0xf0362 movl $0x3397, %esi # imm = 0x3397 jmp 0x61753 cmpq $0x0, 0x18(%r14) jne 0x616bf addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1b4d0 movq %rax, %rbx leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x8ecc3(%rip), %rsi # 0xf039f leaq 0x8eccc(%rip), %rdx # 0xf03af leaq 0x8(%rsp), %rdi callq 0x261e8 movq (%r14), %rcx movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0xd6, %esi callq 0x62580 xorl %ebp, %ebp leaq 0xcc7fa(%rip), %rsi # 0x12df08 leaq -0x2a1b(%rip), %rdx # 0x5ecfa movq %rbx, %rdi callq 0x1c1c0 leaq 0x8dbaf(%rip), %rdi # 0xef2d3 leaq 0x87cf1(%rip), %rdx # 0xe941c leaq 0x92d62(%rip), %rcx # 0xf4494 movl $0x338b, %esi # imm = 0x338B jmp 0x61753 leaq 0x8db93(%rip), %rdi # 0xef2d3 leaq 0x87cd5(%rip), %rdx # 0xe941c leaq 0x8ebd5(%rip), %rcx # 0xf0323 movl $0x3391, %esi # imm = 0x3391 xorl %eax, %eax callq 0x1c130 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x61774 movq 0x18(%rsp), %rsi incq %rsi callq 0x1ba60 testb %bpl, %bpl jne 0x6177e jmp 0x61786 movq %rax, %r14 movq %rbx, %rdi callq 0x1b760 movq %r14, %rdi callq 0x1c250
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv: push rbp; char push r15; int push r14; __int64 push rbx; int sub rsp, 28h mov rax, [rdi] test rax, rax jz loc_6171D mov r14, rdi movzx ecx, byte ptr [rax] cmp ecx, 2 jz short loc_61680 cmp ecx, 1 jnz short loc_616AD mov rcx, [rax+8] mov rax, [r14+8] cmp rax, [rcx+8] jz loc_61739 add rax, 20h ; ' ' jmp short loc_616B4 loc_61680: mov rcx, [rax+8] mov rax, [r14+10h] cmp rax, [rcx+8] jnz short loc_616B4 lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMItArrayIterat; "m_it.array_iterator != m_object->m_data"... mov esi, 3397h jmp loc_61753 loc_616AD: cmp qword ptr [r14+18h], 0 jnz short loc_616BF loc_616B4: add rsp, 28h pop rbx pop r14 pop r15 pop rbp retn loc_616BF: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r15, [rsp+48h+var_30] mov [r15-10h], r15 lea rsi, aCannotGetValue; "cannot get value" lea rdx, aCannotGetValue+10h; "" lea rdi, [rsp+48h+var_40] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rcx, [r14] mov bpl, 1 lea rdx, [rsp+48h+var_40] mov rdi, rbx; this mov esi, 0D6h; int call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_6171D: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAnchorMObjectN+7; "m_object != nullptr" mov esi, 338Bh jmp short loc_61753 loc_61739: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMItObjectItera; "m_it.object_iterator != m_object->m_dat"... mov esi, 3391h loc_61753: xor eax, eax call _ggml_abort mov r14, rax mov rdi, [rsp+48h+var_40]; void * cmp rdi, r15 jz short loc_61774 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_61774: test bpl, bpl jnz short loc_6177E jmp short loc_61786 mov r14, rax loc_6177E: mov rdi, rbx; void * call ___cxa_free_exception loc_61786: mov rdi, r14 call __Unwind_Resume
operator->: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV RAX,qword ptr [RDI] TEST RAX,RAX JZ 0x0016171d MOV R14,RDI MOVZX ECX,byte ptr [RAX] CMP ECX,0x2 JZ 0x00161680 CMP ECX,0x1 JNZ 0x001616ad MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RCX + 0x8] JZ 0x00161739 ADD RAX,0x20 JMP 0x001616b4 LAB_00161680: MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [R14 + 0x10] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x001616b4 LEA RDI,[0x1ef2d3] LEA RDX,[0x1e941c] LEA RCX,[0x1f0362] MOV ESI,0x3397 JMP 0x00161753 LAB_001616ad: CMP qword ptr [R14 + 0x18],0x0 JNZ 0x001616bf LAB_001616b4: ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP RET LAB_001616bf: MOV EDI,0x20 CALL 0x0011b4d0 MOV RBX,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 LAB_001616d5: LEA RSI,[0x1f039f] LEA RDX,[0x1f03af] LEA RDI,[RSP + 0x8] CALL 0x001261e8 MOV RCX,qword ptr [R14] MOV BPL,0x1 LAB_001616f3: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0xd6 CALL 0x00162580 XOR EBP,EBP LEA RSI,[0x22df08] LEA RDX,[0x15ecfa] MOV RDI,RBX CALL 0x0011c1c0 LAB_0016171d: LEA RDI,[0x1ef2d3] LEA RDX,[0x1e941c] LEA RCX,[0x1f4494] MOV ESI,0x338b JMP 0x00161753 LAB_00161739: LEA RDI,[0x1ef2d3] LEA RDX,[0x1e941c] LEA RCX,[0x1f0323] MOV ESI,0x3391 LAB_00161753: XOR EAX,EAX CALL 0x0011c130
/* 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> >::TEMPNAMEPLACEHOLDERVALUE() const */ char * __thiscall 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>> ::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>> *this) { long *plVar1; char *pcVar2; int8 uVar3; int1 *local_40 [2]; int1 local_30 [16]; pcVar2 = *(char **)this; if (pcVar2 == (char *)0x0) { pcVar2 = "m_object != nullptr"; uVar3 = 0x338b; LAB_00161753: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); } if (*pcVar2 == '\x02') { plVar1 = (long *)(pcVar2 + 8); pcVar2 = *(char **)(this + 0x10); if (pcVar2 == *(char **)(*plVar1 + 8)) { pcVar2 = "m_it.array_iterator != m_object->m_data.m_value.array->end()"; uVar3 = 0x3397; goto LAB_00161753; } } else if (*pcVar2 == '\x01') { if (*(long *)(this + 8) == *(long *)(*(long *)(pcVar2 + 8) + 8)) { pcVar2 = "m_it.object_iterator != m_object->m_data.m_value.object->end()"; uVar3 = 0x3391; goto LAB_00161753; } pcVar2 = (char *)(*(long *)(this + 8) + 0x20); } else if (*(long *)(this + 0x18) != 0) { uVar3 = __cxa_allocate_exception(0x20); local_40[0] = local_30; /* try { // try from 001616d5 to 001616ec has its CatchHandler @ 0016177b */ std::__cxx11::string::_M_construct<char_const*>(local_40,"cannot get value",""); /* try { // try from 001616f3 to 0016171c has its CatchHandler @ 0016175a */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0xd6,local_40,*(int8 *)this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&invalid_iterator::typeinfo,exception::~exception); } return pcVar2; }
49,844
mj_crb
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_core_smooth.c
void mj_crb(const mjModel* m, mjData* d) { TM_START; mjtNum buf[6]; mjtNum* crb = d->crb; int last_body = m->nbody - 1, nv = m->nv; // crb = cinert mju_copy(crb, d->cinert, 10*m->nbody); // backward pass over bodies, accumulate composite inertias for (int i=last_body; i > 0; i--) { if (m->body_parentid[i] > 0) { mju_addTo(crb+10*m->body_parentid[i], crb+10*i, 10); } } // clear qM mju_zero(d->qM, m->nM); // dense forward pass over dofs for (int i=0; i < nv; i++) { // process block of diagonals (simple bodies) if (m->dof_simplenum[i]) { int n = i + m->dof_simplenum[i]; for (; i < n; i++) { d->qM[m->dof_Madr[i]] = m->dof_M0[i]; } // finish or else fall through with next row if (i == nv) { break; } } // init M(i,i) with armature inertia int Madr_ij = m->dof_Madr[i]; d->qM[Madr_ij] = m->dof_armature[i]; // precompute buf = crb_body_i * cdof_i mju_mulInertVec(buf, crb+10*m->dof_bodyid[i], d->cdof+6*i); // sparse backward pass over ancestors for (int j=i; j >= 0; j = m->dof_parentid[j]) { // M(i,j) += cdof_j * (crb_body_i * cdof_i) d->qM[Madr_ij++] += mju_dot(d->cdof+6*j, buf, 6); } } TM_END(mjTIMER_POS_INERTIA); }
O0
c
mj_crb: subq $0x88, %rsp movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq 0x579e85(%rip), %rax # 0x5f9e80 cmpq $0x0, (%rax) je 0x80012 movq 0x579e78(%rip), %rax # 0x5f9e80 callq *(%rax) vmovsd %xmm0, 0x10(%rsp) jmp 0x8001e vxorps %xmm0, %xmm0, %xmm0 vmovsd %xmm0, 0x10(%rsp) jmp 0x8001e vmovsd 0x10(%rsp), %xmm0 vmovsd %xmm0, 0x70(%rsp) movq 0x78(%rsp), %rax movq 0x27920(%rax), %rax movq %rax, 0x38(%rsp) movq 0x80(%rsp), %rax movl 0x10(%rax), %eax subl $0x1, %eax movl %eax, 0x34(%rsp) movq 0x80(%rsp), %rax movl 0x4(%rax), %eax movl %eax, 0x30(%rsp) movq 0x38(%rsp), %rdi movq 0x78(%rsp), %rax movq 0x27888(%rax), %rsi movq 0x80(%rsp), %rax imull $0xa, 0x10(%rax), %edx callq 0x492d0 movl 0x34(%rsp), %eax movl %eax, 0x2c(%rsp) cmpl $0x0, 0x2c(%rsp) jle 0x800f9 movq 0x80(%rsp), %rax movq 0x530(%rax), %rax movslq 0x2c(%rsp), %rcx cmpl $0x0, (%rax,%rcx,4) jle 0x800ea movq 0x38(%rsp), %rdi movq 0x80(%rsp), %rax movq 0x530(%rax), %rax movslq 0x2c(%rsp), %rcx imull $0xa, (%rax,%rcx,4), %eax cltq shlq $0x3, %rax addq %rax, %rdi movq 0x38(%rsp), %rsi imull $0xa, 0x2c(%rsp), %eax cltq shlq $0x3, %rax addq %rax, %rsi movl $0xa, %edx callq 0x499f0 jmp 0x800ec movl 0x2c(%rsp), %eax addl $-0x1, %eax movl %eax, 0x2c(%rsp) jmp 0x80086 movq 0x78(%rsp), %rax movq 0x27928(%rax), %rdi movq 0x80(%rsp), %rax movl 0x104(%rax), %esi callq 0x493b0 movl $0x0, 0x28(%rsp) movl 0x28(%rsp), %eax cmpl 0x30(%rsp), %eax jge 0x802f6 movq 0x80(%rsp), %rax movq 0x6e8(%rax), %rax movslq 0x28(%rsp), %rcx cmpl $0x0, (%rax,%rcx,4) je 0x801d5 movl 0x28(%rsp), %eax movq 0x80(%rsp), %rcx movq 0x6e8(%rcx), %rcx movslq 0x28(%rsp), %rdx addl (%rcx,%rdx,4), %eax movl %eax, 0x24(%rsp) movl 0x28(%rsp), %eax cmpl 0x24(%rsp), %eax jge 0x801c4 movq 0x80(%rsp), %rax movq 0x720(%rax), %rax movslq 0x28(%rsp), %rcx vmovsd (%rax,%rcx,8), %xmm0 movq 0x78(%rsp), %rax movq 0x27928(%rax), %rax movq 0x80(%rsp), %rcx movq 0x6e0(%rcx), %rcx movslq 0x28(%rsp), %rdx movslq (%rcx,%rdx,4), %rcx vmovsd %xmm0, (%rax,%rcx,8) movl 0x28(%rsp), %eax addl $0x1, %eax movl %eax, 0x28(%rsp) jmp 0x8016b movl 0x28(%rsp), %eax cmpl 0x30(%rsp), %eax jne 0x801d3 jmp 0x802f6 jmp 0x801d5 movq 0x80(%rsp), %rax movq 0x6e0(%rax), %rax movslq 0x28(%rsp), %rcx movl (%rax,%rcx,4), %eax movl %eax, 0x20(%rsp) movq 0x80(%rsp), %rax movq 0x708(%rax), %rax movslq 0x28(%rsp), %rcx vmovsd (%rax,%rcx,8), %xmm0 movq 0x78(%rsp), %rax movq 0x27928(%rax), %rax movslq 0x20(%rsp), %rcx vmovsd %xmm0, (%rax,%rcx,8) leaq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x80(%rsp), %rax movq 0x6c0(%rax), %rax movslq 0x28(%rsp), %rcx imull $0xa, (%rax,%rcx,4), %eax cltq shlq $0x3, %rax addq %rax, %rsi movq 0x78(%rsp), %rax movq 0x27880(%rax), %rdx imull $0x6, 0x28(%rsp), %eax cltq shlq $0x3, %rax addq %rax, %rdx callq 0x2e8930 movl 0x28(%rsp), %eax movl %eax, 0x1c(%rsp) cmpl $0x0, 0x1c(%rsp) jl 0x802e4 movq 0x78(%rsp), %rax movq 0x27880(%rax), %rdi imull $0x6, 0x1c(%rsp), %eax cltq shlq $0x3, %rax addq %rax, %rdi leaq 0x40(%rsp), %rsi movl $0x6, %edx callq 0x496c0 movq 0x78(%rsp), %rax movq 0x27928(%rax), %rax movl 0x20(%rsp), %ecx movl %ecx, %edx addl $0x1, %edx movl %edx, 0x20(%rsp) movslq %ecx, %rcx vaddsd (%rax,%rcx,8), %xmm0, %xmm0 vmovsd %xmm0, (%rax,%rcx,8) movq 0x80(%rsp), %rax movq 0x6d0(%rax), %rax movslq 0x1c(%rsp), %rcx movl (%rax,%rcx,4), %eax movl %eax, 0x1c(%rsp) jmp 0x80271 jmp 0x802e6 movl 0x28(%rsp), %eax addl $0x1, %eax movl %eax, 0x28(%rsp) jmp 0x80120 movq 0x579b83(%rip), %rax # 0x5f9e80 cmpq $0x0, (%rax) je 0x80314 movq 0x579b76(%rip), %rax # 0x5f9e80 callq *(%rax) vmovsd %xmm0, 0x8(%rsp) jmp 0x80320 vxorps %xmm0, %xmm0, %xmm0 vmovsd %xmm0, 0x8(%rsp) jmp 0x80320 vmovsd 0x8(%rsp), %xmm0 vsubsd 0x70(%rsp), %xmm0, %xmm0 movq 0x78(%rsp), %rax vaddsd 0x518(%rax), %xmm0, %xmm0 vmovsd %xmm0, 0x518(%rax) movq 0x78(%rsp), %rax movl 0x520(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x520(%rax) addq $0x88, %rsp retq nopl (%rax)
mj_crb: sub rsp, 88h mov [rsp+88h+var_8], rdi mov [rsp+88h+var_10], rsi mov rax, cs:mjcb_time_ptr cmp qword ptr [rax], 0 jz short loc_80012 mov rax, cs:mjcb_time_ptr call qword ptr [rax] vmovsd [rsp+88h+var_78], xmm0 jmp short loc_8001E loc_80012: vxorps xmm0, xmm0, xmm0 vmovsd [rsp+88h+var_78], xmm0 jmp short $+2 loc_8001E: vmovsd xmm0, [rsp+88h+var_78] vmovsd [rsp+88h+var_18], xmm0 mov rax, [rsp+88h+var_10] mov rax, [rax+27920h] mov [rsp+88h+var_50], rax mov rax, [rsp+88h+var_8] mov eax, [rax+10h] sub eax, 1 mov [rsp+88h+var_54], eax mov rax, [rsp+88h+var_8] mov eax, [rax+4] mov [rsp+88h+var_58], eax mov rdi, [rsp+88h+var_50] mov rax, [rsp+88h+var_10] mov rsi, [rax+27888h] mov rax, [rsp+88h+var_8] imul edx, [rax+10h], 0Ah call _mju_copy mov eax, [rsp+88h+var_54] mov [rsp+88h+var_5C], eax loc_80086: cmp [rsp+88h+var_5C], 0 jle short loc_800F9 mov rax, [rsp+88h+var_8] mov rax, [rax+530h] movsxd rcx, [rsp+88h+var_5C] cmp dword ptr [rax+rcx*4], 0 jle short loc_800EA mov rdi, [rsp+88h+var_50] mov rax, [rsp+88h+var_8] mov rax, [rax+530h] movsxd rcx, [rsp+88h+var_5C] imul eax, [rax+rcx*4], 0Ah cdqe shl rax, 3 add rdi, rax mov rsi, [rsp+88h+var_50] imul eax, [rsp+88h+var_5C], 0Ah cdqe shl rax, 3 add rsi, rax mov edx, 0Ah call _mju_addTo loc_800EA: jmp short $+2 loc_800EC: mov eax, [rsp+88h+var_5C] add eax, 0FFFFFFFFh mov [rsp+88h+var_5C], eax jmp short loc_80086 loc_800F9: mov rax, [rsp+88h+var_10] mov rdi, [rax+27928h] mov rax, [rsp+88h+var_8] mov esi, [rax+104h] call _mju_zero mov [rsp+88h+var_60], 0 loc_80120: mov eax, [rsp+88h+var_60] cmp eax, [rsp+88h+var_58] jge loc_802F6 mov rax, [rsp+88h+var_8] mov rax, [rax+6E8h] movsxd rcx, [rsp+88h+var_60] cmp dword ptr [rax+rcx*4], 0 jz loc_801D5 mov eax, [rsp+88h+var_60] mov rcx, [rsp+88h+var_8] mov rcx, [rcx+6E8h] movsxd rdx, [rsp+88h+var_60] add eax, [rcx+rdx*4] mov [rsp+88h+var_64], eax loc_8016B: mov eax, [rsp+88h+var_60] cmp eax, [rsp+88h+var_64] jge short loc_801C4 mov rax, [rsp+88h+var_8] mov rax, [rax+720h] movsxd rcx, [rsp+88h+var_60] vmovsd xmm0, qword ptr [rax+rcx*8] mov rax, [rsp+88h+var_10] mov rax, [rax+27928h] mov rcx, [rsp+88h+var_8] mov rcx, [rcx+6E0h] movsxd rdx, [rsp+88h+var_60] movsxd rcx, dword ptr [rcx+rdx*4] vmovsd qword ptr [rax+rcx*8], xmm0 mov eax, [rsp+88h+var_60] add eax, 1 mov [rsp+88h+var_60], eax jmp short loc_8016B loc_801C4: mov eax, [rsp+88h+var_60] cmp eax, [rsp+88h+var_58] jnz short loc_801D3 jmp loc_802F6 loc_801D3: jmp short $+2 loc_801D5: mov rax, [rsp+88h+var_8] mov rax, [rax+6E0h] movsxd rcx, [rsp+88h+var_60] mov eax, [rax+rcx*4] mov [rsp+88h+var_68], eax mov rax, [rsp+88h+var_8] mov rax, [rax+708h] movsxd rcx, [rsp+88h+var_60] vmovsd xmm0, qword ptr [rax+rcx*8] mov rax, [rsp+88h+var_10] mov rax, [rax+27928h] movsxd rcx, [rsp+88h+var_68] vmovsd qword ptr [rax+rcx*8], xmm0 lea rdi, [rsp+88h+var_48] mov rsi, [rsp+88h+var_50] mov rax, [rsp+88h+var_8] mov rax, [rax+6C0h] movsxd rcx, [rsp+88h+var_60] imul eax, [rax+rcx*4], 0Ah cdqe shl rax, 3 add rsi, rax mov rax, [rsp+88h+var_10] mov rdx, [rax+27880h] imul eax, [rsp+88h+var_60], 6 cdqe shl rax, 3 add rdx, rax call mju_mulInertVec mov eax, [rsp+88h+var_60] mov [rsp+88h+var_6C], eax loc_80271: cmp [rsp+88h+var_6C], 0 jl short loc_802E4 mov rax, [rsp+88h+var_10] mov rdi, [rax+27880h] imul eax, [rsp+88h+var_6C], 6 cdqe shl rax, 3 add rdi, rax lea rsi, [rsp+88h+var_48] mov edx, 6 call _mju_dot mov rax, [rsp+88h+var_10] mov rax, [rax+27928h] mov ecx, [rsp+88h+var_68] mov edx, ecx add edx, 1 mov [rsp+88h+var_68], edx movsxd rcx, ecx vaddsd xmm0, xmm0, qword ptr [rax+rcx*8] vmovsd qword ptr [rax+rcx*8], xmm0 mov rax, [rsp+88h+var_8] mov rax, [rax+6D0h] movsxd rcx, [rsp+88h+var_6C] mov eax, [rax+rcx*4] mov [rsp+88h+var_6C], eax jmp short loc_80271 loc_802E4: jmp short $+2 loc_802E6: mov eax, [rsp+88h+var_60] add eax, 1 mov [rsp+88h+var_60], eax jmp loc_80120 loc_802F6: mov rax, cs:mjcb_time_ptr cmp qword ptr [rax], 0 jz short loc_80314 mov rax, cs:mjcb_time_ptr call qword ptr [rax] vmovsd [rsp+88h+var_80], xmm0 jmp short loc_80320 loc_80314: vxorps xmm0, xmm0, xmm0 vmovsd [rsp+88h+var_80], xmm0 jmp short $+2 loc_80320: vmovsd xmm0, [rsp+88h+var_80] vsubsd xmm0, xmm0, [rsp+88h+var_18] mov rax, [rsp+88h+var_10] vaddsd xmm0, xmm0, qword ptr [rax+518h] vmovsd qword ptr [rax+518h], xmm0 mov rax, [rsp+88h+var_10] mov ecx, [rax+520h] add ecx, 1 mov [rax+520h], ecx add rsp, 88h retn
long long mj_crb(long long a1, long long a2, __m128 _XMM0) { long long result; // rax int k; // [rsp+1Ch] [rbp-6Ch] int v24; // [rsp+20h] [rbp-68h] int v25; // [rsp+24h] [rbp-64h] int j; // [rsp+28h] [rbp-60h] int i; // [rsp+2Ch] [rbp-5Ch] int v28; // [rsp+30h] [rbp-58h] int v29; // [rsp+34h] [rbp-54h] long long v30; // [rsp+38h] [rbp-50h] _BYTE v31[48]; // [rsp+40h] [rbp-48h] BYREF long long v33; // [rsp+78h] [rbp-10h] long long v34; // [rsp+80h] [rbp-8h] v34 = a1; v33 = a2; if ( mjcb_time ) { *(double *)_XMM0.m128_u64 = ((double (*)(void))mjcb_time)(); __asm { vmovsd [rsp+88h+var_78], xmm0 } } else { __asm { vxorps xmm0, xmm0, xmm0 vmovsd [rsp+88h+var_78], xmm0 } } __asm { vmovsd xmm0, [rsp+88h+var_78] vmovsd [rsp+88h+var_18], xmm0 } v30 = *(_QWORD *)(v33 + 162080); v29 = *(_DWORD *)(v34 + 16) - 1; v28 = *(_DWORD *)(v34 + 4); mju_copy(v30, *(_QWORD *)(v33 + 161928), (unsigned int)(10 * *(_DWORD *)(v34 + 16))); for ( i = v29; i > 0; --i ) { if ( *(int *)(*(_QWORD *)(v34 + 1328) + 4LL * i) > 0 ) *(double *)&_XMM0 = mju_addTo( 80LL * *(_DWORD *)(*(_QWORD *)(v34 + 1328) + 4LL * i) + v30, 80LL * i + v30, 10LL, *(double *)&_XMM0); } *(double *)&_XMM0 = mju_zero(*(_QWORD *)(v33 + 162088), *(unsigned int *)(v34 + 260)); for ( j = 0; j < v28; ++j ) { if ( *(_DWORD *)(*(_QWORD *)(v34 + 1768) + 4LL * j) ) { v25 = *(_DWORD *)(*(_QWORD *)(v34 + 1768) + 4LL * j) + j; while ( j < v25 ) { _RAX = *(_QWORD *)(v34 + 1824); _RCX = j; __asm { vmovsd xmm0, qword ptr [rax+rcx*8] } _RAX = *(_QWORD *)(v33 + 162088); _RCX = *(int *)(*(_QWORD *)(v34 + 1760) + 4LL * j); __asm { vmovsd qword ptr [rax+rcx*8], xmm0 } ++j; } if ( j == v28 ) break; } v24 = *(_DWORD *)(*(_QWORD *)(v34 + 1760) + 4LL * j); _RAX = *(_QWORD *)(v34 + 1800); _RCX = j; __asm { vmovsd xmm0, qword ptr [rax+rcx*8] } _RAX = *(_QWORD *)(v33 + 162088); _RCX = v24; __asm { vmovsd qword ptr [rax+rcx*8], xmm0 } mju_mulInertVec( v31, 80LL * *(_DWORD *)(*(_QWORD *)(v34 + 1728) + 4LL * j) + v30, 48LL * j + *(_QWORD *)(v33 + 161920)); for ( k = j; k >= 0; k = *(_DWORD *)(*(_QWORD *)(v34 + 1744) + 4LL * k) ) { *(double *)&_XMM0 = mju_dot(48LL * k + *(_QWORD *)(v33 + 161920), v31, 6LL); _RAX = *(_QWORD *)(v33 + 162088); LODWORD(_RCX) = v24++; _RCX = (int)_RCX; __asm { vaddsd xmm0, xmm0, qword ptr [rax+rcx*8] vmovsd qword ptr [rax+rcx*8], xmm0 } } } if ( mjcb_time ) { *(double *)&_XMM0 = mjcb_time(*(double *)&_XMM0); __asm { vmovsd [rsp+88h+var_80], xmm0 } } else { __asm { vxorps xmm0, xmm0, xmm0 vmovsd [rsp+88h+var_80], xmm0 } } __asm { vmovsd xmm0, [rsp+88h+var_80] vsubsd xmm0, xmm0, [rsp+88h+var_18] } _RAX = v33; __asm { vaddsd xmm0, xmm0, qword ptr [rax+518h] vmovsd qword ptr [rax+518h], xmm0 } result = v33; ++*(_DWORD *)(v33 + 1312); return result; }
mj_crb: SUB RSP,0x88 MOV qword ptr [RSP + 0x80],RDI MOV qword ptr [RSP + 0x78],RSI MOV RAX,qword ptr [0x006f9e80] CMP qword ptr [RAX],0x0 JZ 0x00180012 MOV RAX,qword ptr [0x006f9e80] CALL qword ptr [RAX] VMOVSD qword ptr [RSP + 0x10],XMM0 JMP 0x0018001e LAB_00180012: VXORPS XMM0,XMM0,XMM0 VMOVSD qword ptr [RSP + 0x10],XMM0 JMP 0x0018001e LAB_0018001e: VMOVSD XMM0,qword ptr [RSP + 0x10] VMOVSD qword ptr [RSP + 0x70],XMM0 MOV RAX,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RAX + 0x27920] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x80] MOV EAX,dword ptr [RAX + 0x10] SUB EAX,0x1 MOV dword ptr [RSP + 0x34],EAX MOV RAX,qword ptr [RSP + 0x80] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RSP + 0x30],EAX MOV RDI,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RSP + 0x78] MOV RSI,qword ptr [RAX + 0x27888] MOV RAX,qword ptr [RSP + 0x80] IMUL EDX,dword ptr [RAX + 0x10],0xa CALL 0x001492d0 MOV EAX,dword ptr [RSP + 0x34] MOV dword ptr [RSP + 0x2c],EAX LAB_00180086: CMP dword ptr [RSP + 0x2c],0x0 JLE 0x001800f9 MOV RAX,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RAX + 0x530] MOVSXD RCX,dword ptr [RSP + 0x2c] CMP dword ptr [RAX + RCX*0x4],0x0 JLE 0x001800ea MOV RDI,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RAX + 0x530] MOVSXD RCX,dword ptr [RSP + 0x2c] IMUL EAX,dword ptr [RAX + RCX*0x4],0xa CDQE SHL RAX,0x3 ADD RDI,RAX MOV RSI,qword ptr [RSP + 0x38] IMUL EAX,dword ptr [RSP + 0x2c],0xa CDQE SHL RAX,0x3 ADD RSI,RAX MOV EDX,0xa CALL 0x001499f0 LAB_001800ea: JMP 0x001800ec LAB_001800ec: MOV EAX,dword ptr [RSP + 0x2c] ADD EAX,-0x1 MOV dword ptr [RSP + 0x2c],EAX JMP 0x00180086 LAB_001800f9: MOV RAX,qword ptr [RSP + 0x78] MOV RDI,qword ptr [RAX + 0x27928] MOV RAX,qword ptr [RSP + 0x80] MOV ESI,dword ptr [RAX + 0x104] CALL 0x001493b0 MOV dword ptr [RSP + 0x28],0x0 LAB_00180120: MOV EAX,dword ptr [RSP + 0x28] CMP EAX,dword ptr [RSP + 0x30] JGE 0x001802f6 MOV RAX,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RAX + 0x6e8] MOVSXD RCX,dword ptr [RSP + 0x28] CMP dword ptr [RAX + RCX*0x4],0x0 JZ 0x001801d5 MOV EAX,dword ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x80] MOV RCX,qword ptr [RCX + 0x6e8] MOVSXD RDX,dword ptr [RSP + 0x28] ADD EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RSP + 0x24],EAX LAB_0018016b: MOV EAX,dword ptr [RSP + 0x28] CMP EAX,dword ptr [RSP + 0x24] JGE 0x001801c4 MOV RAX,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RAX + 0x720] MOVSXD RCX,dword ptr [RSP + 0x28] VMOVSD XMM0,qword ptr [RAX + RCX*0x8] MOV RAX,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RAX + 0x27928] MOV RCX,qword ptr [RSP + 0x80] MOV RCX,qword ptr [RCX + 0x6e0] MOVSXD RDX,dword ptr [RSP + 0x28] MOVSXD RCX,dword ptr [RCX + RDX*0x4] VMOVSD qword ptr [RAX + RCX*0x8],XMM0 MOV EAX,dword ptr [RSP + 0x28] ADD EAX,0x1 MOV dword ptr [RSP + 0x28],EAX JMP 0x0018016b LAB_001801c4: MOV EAX,dword ptr [RSP + 0x28] CMP EAX,dword ptr [RSP + 0x30] JNZ 0x001801d3 JMP 0x001802f6 LAB_001801d3: JMP 0x001801d5 LAB_001801d5: MOV RAX,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RAX + 0x6e0] MOVSXD RCX,dword ptr [RSP + 0x28] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RSP + 0x20],EAX MOV RAX,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RAX + 0x708] MOVSXD RCX,dword ptr [RSP + 0x28] VMOVSD XMM0,qword ptr [RAX + RCX*0x8] MOV RAX,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RAX + 0x27928] MOVSXD RCX,dword ptr [RSP + 0x20] VMOVSD qword ptr [RAX + RCX*0x8],XMM0 LEA RDI,[RSP + 0x40] MOV RSI,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RAX + 0x6c0] MOVSXD RCX,dword ptr [RSP + 0x28] IMUL EAX,dword ptr [RAX + RCX*0x4],0xa CDQE SHL RAX,0x3 ADD RSI,RAX MOV RAX,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RAX + 0x27880] IMUL EAX,dword ptr [RSP + 0x28],0x6 CDQE SHL RAX,0x3 ADD RDX,RAX CALL 0x003e8930 MOV EAX,dword ptr [RSP + 0x28] MOV dword ptr [RSP + 0x1c],EAX LAB_00180271: CMP dword ptr [RSP + 0x1c],0x0 JL 0x001802e4 MOV RAX,qword ptr [RSP + 0x78] MOV RDI,qword ptr [RAX + 0x27880] IMUL EAX,dword ptr [RSP + 0x1c],0x6 CDQE SHL RAX,0x3 ADD RDI,RAX LEA RSI,[RSP + 0x40] MOV EDX,0x6 CALL 0x001496c0 MOV RAX,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RAX + 0x27928] MOV ECX,dword ptr [RSP + 0x20] MOV EDX,ECX ADD EDX,0x1 MOV dword ptr [RSP + 0x20],EDX MOVSXD RCX,ECX VADDSD XMM0,XMM0,qword ptr [RAX + RCX*0x8] VMOVSD qword ptr [RAX + RCX*0x8],XMM0 MOV RAX,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RAX + 0x6d0] MOVSXD RCX,dword ptr [RSP + 0x1c] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RSP + 0x1c],EAX JMP 0x00180271 LAB_001802e4: JMP 0x001802e6 LAB_001802e6: MOV EAX,dword ptr [RSP + 0x28] ADD EAX,0x1 MOV dword ptr [RSP + 0x28],EAX JMP 0x00180120 LAB_001802f6: MOV RAX,qword ptr [0x006f9e80] CMP qword ptr [RAX],0x0 JZ 0x00180314 MOV RAX,qword ptr [0x006f9e80] CALL qword ptr [RAX] VMOVSD qword ptr [RSP + 0x8],XMM0 JMP 0x00180320 LAB_00180314: VXORPS XMM0,XMM0,XMM0 VMOVSD qword ptr [RSP + 0x8],XMM0 JMP 0x00180320 LAB_00180320: VMOVSD XMM0,qword ptr [RSP + 0x8] VSUBSD XMM0,XMM0,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RSP + 0x78] VADDSD XMM0,XMM0,qword ptr [RAX + 0x518] VMOVSD qword ptr [RAX + 0x518],XMM0 MOV RAX,qword ptr [RSP + 0x78] MOV ECX,dword ptr [RAX + 0x520] ADD ECX,0x1 MOV dword ptr [RAX + 0x520],ECX ADD RSP,0x88 RET
void mj_crb(long param_1,long param_2) { int iVar1; long lVar2; int iVar3; double dVar4; double local_80; double local_78; int local_6c; int local_68; int local_60; int local_5c; int1 local_48 [48]; double local_18; long local_10; long local_8; local_10 = param_2; local_8 = param_1; if (*(long *)PTR_mjcb_time_006f9e80 == 0) { local_78 = 0.0; } else { local_78 = (double)(**(code **)PTR_mjcb_time_006f9e80)(); } local_18 = local_78; lVar2 = *(long *)(local_10 + 0x27920); local_5c = *(int *)(local_8 + 0x10); iVar1 = *(int *)(local_8 + 4); mju_copy(lVar2,*(int8 *)(local_10 + 0x27888),*(int *)(local_8 + 0x10) * 10); while (local_5c = local_5c + -1, 0 < local_5c) { if (0 < *(int *)(*(long *)(local_8 + 0x530) + (long)local_5c * 4)) { mju_addTo(lVar2 + (long)(*(int *)(*(long *)(local_8 + 0x530) + (long)local_5c * 4) * 10) * 8, lVar2 + (long)(local_5c * 10) * 8,10); } } mju_zero(*(int8 *)(local_10 + 0x27928),*(int4 *)(local_8 + 0x104)); for (local_60 = 0; local_60 < iVar1; local_60 = local_60 + 1) { if (*(int *)(*(long *)(local_8 + 0x6e8) + (long)local_60 * 4) != 0) { iVar3 = local_60 + *(int *)(*(long *)(local_8 + 0x6e8) + (long)local_60 * 4); for (; local_60 < iVar3; local_60 = local_60 + 1) { *(int8 *) (*(long *)(local_10 + 0x27928) + (long)*(int *)(*(long *)(local_8 + 0x6e0) + (long)local_60 * 4) * 8) = *(int8 *)(*(long *)(local_8 + 0x720) + (long)local_60 * 8); } if (local_60 == iVar1) break; } local_68 = *(int *)(*(long *)(local_8 + 0x6e0) + (long)local_60 * 4); *(int8 *)(*(long *)(local_10 + 0x27928) + (long)local_68 * 8) = *(int8 *)(*(long *)(local_8 + 0x708) + (long)local_60 * 8); mju_mulInertVec(local_48,lVar2 + (long)(*(int *)(*(long *)(local_8 + 0x6c0) + (long)local_60 * 4 ) * 10) * 8, *(long *)(local_10 + 0x27880) + (long)(local_60 * 6) * 8); for (local_6c = local_60; -1 < local_6c; local_6c = *(int *)(*(long *)(local_8 + 0x6d0) + (long)local_6c * 4)) { dVar4 = (double)mju_dot(*(long *)(local_10 + 0x27880) + (long)(local_6c * 6) * 8,local_48,6); *(double *)(*(long *)(local_10 + 0x27928) + (long)local_68 * 8) = dVar4 + *(double *)(*(long *)(local_10 + 0x27928) + (long)local_68 * 8); local_68 = local_68 + 1; } } if (*(long *)PTR_mjcb_time_006f9e80 == 0) { local_80 = 0.0; } else { local_80 = (double)(**(code **)PTR_mjcb_time_006f9e80)(); } *(double *)(local_10 + 0x518) = (local_80 - local_18) + *(double *)(local_10 + 0x518); *(int *)(local_10 + 0x520) = *(int *)(local_10 + 0x520) + 1; return; }
49,845
inline_mysql_cond_init(unsigned int, st_mysql_cond*, pthread_condattr_t const*)
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_cond_init( #ifdef HAVE_PSI_COND_INTERFACE PSI_cond_key key, #endif mysql_cond_t *that, const pthread_condattr_t *attr) { #ifdef HAVE_PSI_COND_INTERFACE that->m_psi= PSI_COND_CALL(init_cond)(key, &that->m_cond); #else that->m_psi= NULL; #endif return pthread_cond_init(&that->m_cond, attr); }
O0
c
inline_mysql_cond_init(unsigned int, st_mysql_cond*, pthread_condattr_t const*): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq 0x1a9a56(%rip), %rax # 0x1ce530 movq (%rax), %rax movq 0x60(%rax), %rax movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi callq *%rax movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x30(%rax) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x243a0 addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
_ZL22inline_mysql_cond_initjP13st_mysql_condPK18pthread_condattr_t: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rax, PSI_server mov rax, [rax] mov rax, [rax+60h] mov edi, [rbp+var_4] mov rsi, [rbp+var_10] call rax mov rcx, rax mov rax, [rbp+var_10] mov [rax+30h], rcx mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call _pthread_cond_init add rsp, 20h pop rbp retn
long long inline_mysql_cond_init(unsigned int a1, long long a2, long long a3) { *(_QWORD *)(a2 + 48) = ((long long ( *)(_QWORD, long long))PSI_server[12])(a1, a2); return pthread_cond_init(a2, a3); }
inline_mysql_cond_init: 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 LEA RAX,[0x2ce530] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x60] MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] CALL RAX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x30],RCX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001243a0 ADD RSP,0x20 POP RBP RET
/* inline_mysql_cond_init(unsigned int, st_mysql_cond*, pthread_condattr_t const*) */ void inline_mysql_cond_init(uint param_1,st_mysql_cond *param_2,pthread_condattr_t *param_3) { int8 uVar1; uVar1 = (**(code **)(PSI_server + 0x60))(param_1,param_2); *(int8 *)(param_2 + 0x30) = uVar1; pthread_cond_init((pthread_cond_t *)param_2,param_3); return; }
49,846
test_debug_example
eloqsql/libmariadb/unittest/libmariadb/misc.c
static int test_debug_example(MYSQL *mysql) { int rc; MYSQL_RES *result; rc= mysql_query(mysql, "DROP TABLE IF EXISTS test_debug_example"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "CREATE TABLE test_debug_example(" "id INT PRIMARY KEY AUTO_INCREMENT, " "name VARCHAR(20), xxx INT)"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "INSERT INTO test_debug_example (name) " "VALUES ('mysql')"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "UPDATE test_debug_example SET name='updated' " "WHERE name='deleted'"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "SELECT * FROM test_debug_example where name='mysql'"); check_mysql_rc(rc, mysql); result= mysql_use_result(mysql); FAIL_IF(!result, "Invalid result set"); while (mysql_fetch_row(result)); mysql_free_result(result); rc= mysql_query(mysql, "DROP TABLE test_debug_example"); check_mysql_rc(rc, mysql); return OK; }
O3
c
test_debug_example: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x23252(%rip), %rsi # 0x3a3c4 callq 0x1ee15 testl %eax, %eax je 0x171b2 movl %eax, %r14d movq %rbx, %rdi callq 0x20e8e movq %rax, %r15 movq %rbx, %rdi callq 0x20e79 leaq 0x220cd(%rip), %rdi # 0x39265 leaq 0x227cf(%rip), %r8 # 0x3996e movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xc7, %r9d jmp 0x172d2 leaq 0x23233(%rip), %rsi # 0x3a3ec movq %rbx, %rdi callq 0x1ee15 testl %eax, %eax je 0x171fc movl %eax, %r14d movq %rbx, %rdi callq 0x20e8e movq %rax, %r15 movq %rbx, %rdi callq 0x20e79 leaq 0x22083(%rip), %rdi # 0x39265 leaq 0x22785(%rip), %r8 # 0x3996e movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xcc, %r9d jmp 0x172d2 leaq 0x23247(%rip), %rsi # 0x3a44a movq %rbx, %rdi callq 0x1ee15 testl %eax, %eax je 0x17246 movl %eax, %r14d movq %rbx, %rdi callq 0x20e8e movq %rax, %r15 movq %rbx, %rdi callq 0x20e79 leaq 0x22039(%rip), %rdi # 0x39265 leaq 0x2273b(%rip), %r8 # 0x3996e movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xd0, %r9d jmp 0x172d2 leaq 0x23234(%rip), %rsi # 0x3a481 movq %rbx, %rdi callq 0x1ee15 testl %eax, %eax je 0x1728d movl %eax, %r14d movq %rbx, %rdi callq 0x20e8e movq %rax, %r15 movq %rbx, %rdi callq 0x20e79 leaq 0x21fef(%rip), %rdi # 0x39265 leaq 0x226f1(%rip), %r8 # 0x3996e movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xd4, %r9d jmp 0x172d2 leaq 0x2322f(%rip), %rsi # 0x3a4c3 movq %rbx, %rdi callq 0x1ee15 testl %eax, %eax je 0x172e9 movl %eax, %r14d movq %rbx, %rdi callq 0x20e8e movq %rax, %r15 movq %rbx, %rdi callq 0x20e79 leaq 0x21fa8(%rip), %rdi # 0x39265 leaq 0x226aa(%rip), %r8 # 0x3996e movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xd7, %r9d xorl %eax, %eax callq 0x1970b movl $0x1, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi callq 0x1e244 testq %rax, %rax je 0x17358 movq %rax, %r14 movq %r14, %rdi callq 0x1ff10 testq %rax, %rax jne 0x172f9 movq %r14, %rdi callq 0x1aac2 leaq 0x231e2(%rip), %rsi # 0x3a4f7 movq %rbx, %rdi callq 0x1ee15 testl %eax, %eax je 0x1737e movl %eax, %r14d movq %rbx, %rdi callq 0x20e8e movq %rax, %r15 movq %rbx, %rdi callq 0x20e79 leaq 0x21f27(%rip), %rdi # 0x39265 leaq 0x22629(%rip), %r8 # 0x3996e movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xe0, %r9d jmp 0x172d2 leaq 0x21dc1(%rip), %rdi # 0x39120 leaq 0x21f21(%rip), %rsi # 0x39287 leaq 0x22601(%rip), %rdx # 0x3996e movl $0xda, %ecx xorl %eax, %eax callq 0x1970b jmp 0x172d9 xorl %eax, %eax jmp 0x172de
test_debug_example: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi lea rsi, aDropTableIfExi_4; "DROP TABLE IF EXISTS test_debug_example" call mysql_query test eax, eax jz short loc_171B2 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0C7h jmp loc_172D2 loc_171B2: lea rsi, aCreateTableTes; "CREATE TABLE test_debug_example(id INT "... mov rdi, rbx call mysql_query test eax, eax jz short loc_171FC mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0CCh jmp loc_172D2 loc_171FC: lea rsi, aInsertIntoTest; "INSERT INTO test_debug_example (name) V"... mov rdi, rbx call mysql_query test eax, eax jz short loc_17246 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0D0h jmp loc_172D2 loc_17246: lea rsi, aUpdateTestDebu; "UPDATE test_debug_example SET name='upd"... mov rdi, rbx call mysql_query test eax, eax jz short loc_1728D mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0D4h jmp short loc_172D2 loc_1728D: lea rsi, aSelectFromTest; "SELECT * FROM test_debug_example where "... mov rdi, rbx call mysql_query test eax, eax jz short loc_172E9 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0D7h loc_172D2: xor eax, eax call diag loc_172D9: mov eax, 1 loc_172DE: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_172E9: mov rdi, rbx call mysql_use_result test rax, rax jz short loc_17358 mov r14, rax loc_172F9: mov rdi, r14 call mysql_fetch_row test rax, rax jnz short loc_172F9 mov rdi, r14 call mysql_free_result lea rsi, aDropTableTestD; "DROP TABLE test_debug_example" mov rdi, rbx call mysql_query test eax, eax jz short loc_1737E mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0E0h jmp loc_172D2 loc_17358: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aInvalidResultS; "Invalid result set" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 0DAh xor eax, eax call diag jmp loc_172D9 loc_1737E: xor eax, eax jmp loc_172DE
long long test_debug_example(long long a1) { int v1; // eax int v2; // r14d int v3; // r15d int v4; // eax int v5; // esi int v6; // edx int v7; // ecx int v8; // r9d int v9; // eax int v10; // r14d int v11; // r15d int v12; // eax int v13; // eax int v14; // r14d int v15; // r15d int v16; // eax int v17; // eax int v18; // r14d int v19; // r15d int v20; // eax int v21; // eax int v22; // r14d int v23; // r15d int v24; // eax long long v26; // rax int v27; // r8d int v28; // r9d long long v29; // r14 int v30; // eax int v31; // r14d int v32; // r15d int v33; // eax v1 = mysql_query(a1, "DROP TABLE IF EXISTS test_debug_example"); if ( v1 ) { v2 = v1; v3 = mysql_error(a1); v4 = mysql_errno(a1); v5 = v2; v6 = v3; v7 = v4; v8 = 199; } else { v9 = mysql_query( a1, "CREATE TABLE test_debug_example(id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(20), xxx INT)"); if ( v9 ) { v10 = v9; v11 = mysql_error(a1); v12 = mysql_errno(a1); v5 = v10; v6 = v11; v7 = v12; v8 = 204; } else { v13 = mysql_query(a1, "INSERT INTO test_debug_example (name) VALUES ('mysql')"); if ( v13 ) { v14 = v13; v15 = mysql_error(a1); v16 = mysql_errno(a1); v5 = v14; v6 = v15; v7 = v16; v8 = 208; } else { v17 = mysql_query(a1, "UPDATE test_debug_example SET name='updated' WHERE name='deleted'"); if ( v17 ) { v18 = v17; v19 = mysql_error(a1); v20 = mysql_errno(a1); v5 = v18; v6 = v19; v7 = v20; v8 = 212; } else { v21 = mysql_query(a1, "SELECT * FROM test_debug_example where name='mysql'"); if ( v21 ) { v22 = v21; v23 = mysql_error(a1); v24 = mysql_errno(a1); v5 = v22; v6 = v23; v7 = v24; v8 = 215; } else { v26 = mysql_use_result(a1); if ( !v26 ) { diag( (unsigned int)"Error: %s (%s: %d)", (unsigned int)"Invalid result set", (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c", 218, v27, v28); return 1LL; } v29 = v26; while ( mysql_fetch_row(v29) ) ; mysql_free_result(v29); v30 = mysql_query(a1, "DROP TABLE test_debug_example"); if ( !v30 ) return 0LL; v31 = v30; v32 = mysql_error(a1); v33 = mysql_errno(a1); v5 = v31; v6 = v32; v7 = v33; v8 = 224; } } } } } diag( (unsigned int)"Error (%d): %s (%d) in %s line %d", v5, v6, v7, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c", v8); return 1LL; }
test_debug_example: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA RSI,[0x13a3c4] CALL 0x0011ee15 TEST EAX,EAX JZ 0x001171b2 MOV R14D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R15,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xc7 JMP 0x001172d2 LAB_001171b2: LEA RSI,[0x13a3ec] MOV RDI,RBX CALL 0x0011ee15 TEST EAX,EAX JZ 0x001171fc MOV R14D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R15,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xcc JMP 0x001172d2 LAB_001171fc: LEA RSI,[0x13a44a] MOV RDI,RBX CALL 0x0011ee15 TEST EAX,EAX JZ 0x00117246 MOV R14D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R15,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xd0 JMP 0x001172d2 LAB_00117246: LEA RSI,[0x13a481] MOV RDI,RBX CALL 0x0011ee15 TEST EAX,EAX JZ 0x0011728d MOV R14D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R15,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xd4 JMP 0x001172d2 LAB_0011728d: LEA RSI,[0x13a4c3] MOV RDI,RBX CALL 0x0011ee15 TEST EAX,EAX JZ 0x001172e9 MOV R14D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R15,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xd7 LAB_001172d2: XOR EAX,EAX CALL 0x0011970b LAB_001172d9: MOV EAX,0x1 LAB_001172de: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_001172e9: MOV RDI,RBX CALL 0x0011e244 TEST RAX,RAX JZ 0x00117358 MOV R14,RAX LAB_001172f9: MOV RDI,R14 CALL 0x0011ff10 TEST RAX,RAX JNZ 0x001172f9 MOV RDI,R14 CALL 0x0011aac2 LEA RSI,[0x13a4f7] MOV RDI,RBX CALL 0x0011ee15 TEST EAX,EAX JZ 0x0011737e MOV R14D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R15,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xe0 JMP 0x001172d2 LAB_00117358: LEA RDI,[0x139120] LEA RSI,[0x139287] LEA RDX,[0x13996e] MOV ECX,0xda XOR EAX,EAX CALL 0x0011970b JMP 0x001172d9 LAB_0011737e: XOR EAX,EAX JMP 0x001172de
int8 test_debug_example(int8 param_1) { int iVar1; int4 uVar2; int8 uVar3; long lVar4; long lVar5; int8 uVar6; iVar1 = mysql_query(param_1,"DROP TABLE IF EXISTS test_debug_example"); if (iVar1 == 0) { iVar1 = mysql_query(param_1, "CREATE TABLE test_debug_example(id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(20), xxx INT)" ); if (iVar1 == 0) { iVar1 = mysql_query(param_1,"INSERT INTO test_debug_example (name) VALUES (\'mysql\')"); if (iVar1 == 0) { iVar1 = mysql_query(param_1, "UPDATE test_debug_example SET name=\'updated\' WHERE name=\'deleted\'") ; if (iVar1 == 0) { iVar1 = mysql_query(param_1,"SELECT * FROM test_debug_example where name=\'mysql\'"); if (iVar1 == 0) { lVar4 = mysql_use_result(param_1); if (lVar4 == 0) { diag("Error: %s (%s: %d)","Invalid result set", "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c", 0xda); return 1; } do { lVar5 = mysql_fetch_row(lVar4); } while (lVar5 != 0); mysql_free_result(lVar4); iVar1 = mysql_query(param_1,"DROP TABLE test_debug_example"); if (iVar1 == 0) { return 0; } uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar6 = 0xe0; } else { uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar6 = 0xd7; } } else { uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar6 = 0xd4; } } else { uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar6 = 0xd0; } } else { uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar6 = 0xcc; } } else { uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar6 = 199; } diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",uVar6); return 1; }
49,847
reset_root_defaults
eloqsql/mysys/my_alloc.c
void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size, size_t pre_alloc_size __attribute__((unused))) { DBUG_ENTER("reset_root_defaults"); DBUG_ASSERT(alloc_root_inited(mem_root)); mem_root->block_size= (((block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1) | (mem_root->block_size & 1)); #if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG)) if (pre_alloc_size) { size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); if (!mem_root->pre_alloc || mem_root->pre_alloc->size != size) { USED_MEM *mem, **prev= &mem_root->free; /* Free unused blocks, so that consequent calls to reset_root_defaults won't eat away memory. */ while (*prev) { mem= *prev; if (mem->size == size) { /* We found a suitable block, no need to do anything else */ mem_root->pre_alloc= mem; DBUG_VOID_RETURN; } if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) { /* remove block from the list and free it */ *prev= mem->next; my_free(mem); } else prev= &mem->next; } /* Allocate new prealloc block and add it to the end of free list */ if ((mem= (USED_MEM *) my_malloc(mem_root->m_psi_key, size, MYF(MALLOC_FLAG(mem_root-> block_size))))) { mem->size= size; mem->left= pre_alloc_size; mem->next= *prev; *prev= mem_root->pre_alloc= mem; TRASH_MEM(mem); } else { mem_root->pre_alloc= 0; } } } else #endif mem_root->pre_alloc= 0; DBUG_VOID_RETURN; }
O3
c
reset_root_defaults: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %r14 movq %rdi, %rbx andq $-0x2, %rsi movq 0x20(%rdi), %rax andl $0x1, %eax leaq (%rsi,%rax), %rdx addq $-0x28, %rdx movq %rdx, 0x20(%rdi) testq %r14, %r14 je 0x2e2bc leaq 0x18(%r14), %r15 movq 0x10(%rbx), %rax testq %rax, %rax je 0x2e24b cmpq %r15, 0x10(%rax) je 0x2e2ca movq (%rbx), %rdi movq %rbx, %r12 testq %rdi, %rdi je 0x2e28d movq %rbx, %r12 movq 0x10(%rdi), %rax cmpq %r15, %rax je 0x2e2c6 movq 0x8(%rdi), %rcx addq $0x18, %rcx cmpq %rax, %rcx jne 0x2e27d movq (%rdi), %rax movq %rax, (%r12) callq 0x2be82 jmp 0x2e280 movq %rdi, %r12 movq (%r12), %rdi testq %rdi, %rdi jne 0x2e259 movq 0x20(%rbx), %rdx movl 0x38(%rbx), %edi andl $0x1, %edx shll $0x10, %edx movq %r15, %rsi callq 0x2bc55 testq %rax, %rax je 0x2e2bc movq %r15, 0x10(%rax) movq %r14, 0x8(%rax) movq (%r12), %rcx movq %rcx, (%rax) movq %rax, 0x10(%rbx) movq %rax, (%r12) jmp 0x2e2ca movq $0x0, 0x10(%rbx) jmp 0x2e2ca movq %rdi, 0x10(%rbx) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
reset_root_defaults: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14, rdx mov rbx, rdi and rsi, 0FFFFFFFFFFFFFFFEh mov rax, [rdi+20h] and eax, 1 lea rdx, [rsi+rax] add rdx, 0FFFFFFFFFFFFFFD8h mov [rdi+20h], rdx test r14, r14 jz loc_2E2BC lea r15, [r14+18h] mov rax, [rbx+10h] test rax, rax jz short loc_2E24B cmp [rax+10h], r15 jz short loc_2E2CA loc_2E24B: mov rdi, [rbx] mov r12, rbx test rdi, rdi jz short loc_2E28D mov r12, rbx loc_2E259: mov rax, [rdi+10h] cmp rax, r15 jz short loc_2E2C6 mov rcx, [rdi+8] add rcx, 18h cmp rcx, rax jnz short loc_2E27D mov rax, [rdi] mov [r12], rax call my_free jmp short loc_2E280 loc_2E27D: mov r12, rdi loc_2E280: mov rdi, [r12] test rdi, rdi jnz short loc_2E259 mov rdx, [rbx+20h] loc_2E28D: mov edi, [rbx+38h] and edx, 1 shl edx, 10h mov rsi, r15 call my_malloc test rax, rax jz short loc_2E2BC mov [rax+10h], r15 mov [rax+8], r14 mov rcx, [r12] mov [rax], rcx mov [rbx+10h], rax mov [r12], rax jmp short loc_2E2CA loc_2E2BC: mov qword ptr [rbx+10h], 0 jmp short loc_2E2CA loc_2E2C6: mov [rbx+10h], rdi loc_2E2CA: pop rbx pop r12 pop r14 pop r15 pop rbp retn
_QWORD * reset_root_defaults(long long a1, long long a2, long long a3) { _QWORD *result; // rax unsigned long long v6; // rdx _QWORD *v7; // r15 _QWORD *v8; // rdi _QWORD *v9; // r12 result = (_QWORD *)(*(_QWORD *)(a1 + 32) & 1LL); v6 = (unsigned long long)result + (a2 & 0xFFFFFFFFFFFFFFFELL) - 40; *(_QWORD *)(a1 + 32) = v6; if ( !a3 ) { LABEL_14: *(_QWORD *)(a1 + 16) = 0LL; return result; } v7 = (_QWORD *)(a3 + 24); result = *(_QWORD **)(a1 + 16); if ( result && (_QWORD *)result[2] == v7 ) return result; v8 = *(_QWORD **)a1; v9 = (_QWORD *)a1; if ( !*(_QWORD *)a1 ) { LABEL_12: result = (_QWORD *)my_malloc(*(_DWORD *)(a1 + 56), a3 + 24, (unsigned __int8)(v6 & 1) << 16); if ( result ) { result[2] = v7; result[1] = a3; *result = *v9; *(_QWORD *)(a1 + 16) = result; *v9 = result; return result; } goto LABEL_14; } v9 = (_QWORD *)a1; while ( 1 ) { result = (_QWORD *)v8[2]; if ( result == v7 ) break; if ( (_QWORD *)(v8[1] + 24LL) == result ) { *v9 = *v8; my_free((long long)v8); } else { v9 = v8; } v8 = (_QWORD *)*v9; if ( !*v9 ) { v6 = *(_QWORD *)(a1 + 32); goto LABEL_12; } } *(_QWORD *)(a1 + 16) = v8; return result; }
reset_root_defaults: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14,RDX MOV RBX,RDI AND RSI,-0x2 MOV RAX,qword ptr [RDI + 0x20] AND EAX,0x1 LEA RDX,[RSI + RAX*0x1] ADD RDX,-0x28 MOV qword ptr [RDI + 0x20],RDX TEST R14,R14 JZ 0x0012e2bc LEA R15,[R14 + 0x18] MOV RAX,qword ptr [RBX + 0x10] TEST RAX,RAX JZ 0x0012e24b CMP qword ptr [RAX + 0x10],R15 JZ 0x0012e2ca LAB_0012e24b: MOV RDI,qword ptr [RBX] MOV R12,RBX TEST RDI,RDI JZ 0x0012e28d MOV R12,RBX LAB_0012e259: MOV RAX,qword ptr [RDI + 0x10] CMP RAX,R15 JZ 0x0012e2c6 MOV RCX,qword ptr [RDI + 0x8] ADD RCX,0x18 CMP RCX,RAX JNZ 0x0012e27d MOV RAX,qword ptr [RDI] MOV qword ptr [R12],RAX CALL 0x0012be82 JMP 0x0012e280 LAB_0012e27d: MOV R12,RDI LAB_0012e280: MOV RDI,qword ptr [R12] TEST RDI,RDI JNZ 0x0012e259 MOV RDX,qword ptr [RBX + 0x20] LAB_0012e28d: MOV EDI,dword ptr [RBX + 0x38] AND EDX,0x1 SHL EDX,0x10 MOV RSI,R15 CALL 0x0012bc55 TEST RAX,RAX JZ 0x0012e2bc MOV qword ptr [RAX + 0x10],R15 MOV qword ptr [RAX + 0x8],R14 MOV RCX,qword ptr [R12] MOV qword ptr [RAX],RCX MOV qword ptr [RBX + 0x10],RAX MOV qword ptr [R12],RAX JMP 0x0012e2ca LAB_0012e2bc: MOV qword ptr [RBX + 0x10],0x0 JMP 0x0012e2ca LAB_0012e2c6: MOV qword ptr [RBX + 0x10],RDI LAB_0012e2ca: POP RBX POP R12 POP R14 POP R15 POP RBP RET
void reset_root_defaults(long *param_1,ulong param_2,long param_3) { long lVar1; long *plVar2; long lVar3; long *plVar4; long *plVar5; lVar3 = (param_2 & 0xfffffffffffffffe) + (ulong)((uint)param_1[4] & 1) + -0x28; param_1[4] = lVar3; if (param_3 != 0) { lVar1 = param_3 + 0x18; if ((param_1[2] != 0) && (*(long *)(param_1[2] + 0x10) == lVar1)) { return; } plVar2 = (long *)*param_1; plVar4 = param_1; plVar5 = param_1; if (plVar2 != (long *)0x0) { do { if (plVar2[2] == lVar1) { param_1[2] = (long)plVar2; return; } plVar5 = plVar2; if (plVar2[1] + 0x18 == plVar2[2]) { *plVar4 = *plVar2; my_free(); plVar5 = plVar4; } plVar2 = (long *)*plVar5; plVar4 = plVar5; } while (plVar2 != (long *)0x0); lVar3 = param_1[4]; } plVar2 = (long *)my_malloc((int)param_1[7],lVar1,((uint)lVar3 & 1) << 0x10); if (plVar2 != (long *)0x0) { plVar2[2] = lVar1; plVar2[1] = param_3; *plVar2 = *plVar5; param_1[2] = (long)plVar2; *plVar5 = (long)plVar2; return; } } param_1[2] = 0; return; }
49,848
my_fill_mb2
eloqsql/strings/ctype-ucs2.c
static void my_fill_mb2(CHARSET_INFO *cs, char *s, size_t slen, int fill) { char buf[10], *last; size_t buflen, remainder; DBUG_ASSERT((slen % 2) == 0); buflen= my_ci_wc_mb(cs, (my_wc_t) fill, (uchar*) buf, (uchar*) buf + sizeof(buf)); DBUG_ASSERT(buflen > 0); /* "last" in the last position where a sequence of "buflen" bytes can start. */ for (last= s + slen - buflen; s <= last; s+= buflen) { /* Enough space for the character */ memcpy(s, buf, buflen); } /* If there are some more space which is not enough for the whole multibyte character, then add trailing zeros. */ if ((remainder= last + buflen - s) > 0) bzero(s, (size_t) remainder); }
O0
c
my_fill_mb2: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x20(%rbp) movq %rsi, -0x28(%rbp) movq %rdx, -0x30(%rbp) movl %ecx, -0x34(%rbp) jmp 0x598a6 movq -0x20(%rbp), %rax movq 0xb8(%rax), %rax movq 0x30(%rax), %rax movq -0x20(%rbp), %rdi movslq -0x34(%rbp), %rsi leaq -0x12(%rbp), %rdx leaq -0x12(%rbp), %rcx addq $0xa, %rcx callq *%rax cltq movq %rax, -0x48(%rbp) jmp 0x598d3 movq -0x28(%rbp), %rax addq -0x30(%rbp), %rax xorl %ecx, %ecx subq -0x48(%rbp), %rcx addq %rcx, %rax movq %rax, -0x40(%rbp) movq -0x28(%rbp), %rax cmpq -0x40(%rbp), %rax ja 0x59911 movq -0x28(%rbp), %rdi leaq -0x12(%rbp), %rsi movq -0x48(%rbp), %rdx callq 0x24230 movq -0x48(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0x598e8 movq -0x40(%rbp), %rax addq -0x48(%rbp), %rax movq -0x28(%rbp), %rcx subq %rcx, %rax movq %rax, -0x50(%rbp) cmpq $0x0, %rax jbe 0x59939 movq -0x28(%rbp), %rdi movq -0x50(%rbp), %rdx xorl %esi, %esi callq 0x24190 movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x59951 addq $0x50, %rsp popq %rbp retq callq 0x24320 nopw %cs:(%rax,%rax)
my_fill_mb2: push rbp mov rbp, rsp sub rsp, 50h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_20], rdi mov [rbp+var_28], rsi mov [rbp+var_30], rdx mov [rbp+var_34], ecx jmp short $+2 loc_598A6: mov rax, [rbp+var_20] mov rax, [rax+0B8h] mov rax, [rax+30h] mov rdi, [rbp+var_20] movsxd rsi, [rbp+var_34] lea rdx, [rbp+var_12] lea rcx, [rbp+var_12] add rcx, 0Ah call rax cdqe mov [rbp+var_48], rax jmp short $+2 loc_598D3: mov rax, [rbp+var_28] add rax, [rbp+var_30] xor ecx, ecx sub rcx, [rbp+var_48] add rax, rcx mov [rbp+var_40], rax loc_598E8: mov rax, [rbp+var_28] cmp rax, [rbp+var_40] ja short loc_59911 mov rdi, [rbp+var_28] lea rsi, [rbp+var_12] mov rdx, [rbp+var_48] call _memcpy mov rax, [rbp+var_48] add rax, [rbp+var_28] mov [rbp+var_28], rax jmp short loc_598E8 loc_59911: mov rax, [rbp+var_40] add rax, [rbp+var_48] mov rcx, [rbp+var_28] sub rax, rcx mov [rbp+var_50], rax cmp rax, 0 jbe short loc_59939 mov rdi, [rbp+var_28] mov rdx, [rbp+var_50] xor esi, esi call _memset loc_59939: mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_59951 add rsp, 50h pop rbp retn loc_59951: call ___stack_chk_fail
unsigned long long my_fill_mb2(long long a1, unsigned long long a2, long long a3, int a4) { long long i; // [rsp+8h] [rbp-48h] unsigned long long v7; // [rsp+28h] [rbp-28h] _BYTE v8[10]; // [rsp+3Eh] [rbp-12h] BYREF unsigned long long v9; // [rsp+48h] [rbp-8h] BYREF v9 = __readfsqword(0x28u); v7 = a2; for ( i = (*(int ( **)(long long, _QWORD, _BYTE *, unsigned long long *))(*(_QWORD *)(a1 + 184) + 48LL))( a1, a4, v8, &v9); v7 <= a3 + a2 - i; v7 += i ) memcpy(v7, v8, i); if ( a3 + a2 != v7 ) memset(v7, 0LL, a3 + a2 - v7); return __readfsqword(0x28u); }
my_fill_mb2: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x20],RDI MOV qword ptr [RBP + -0x28],RSI MOV qword ptr [RBP + -0x30],RDX MOV dword ptr [RBP + -0x34],ECX JMP 0x001598a6 LAB_001598a6: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x30] MOV RDI,qword ptr [RBP + -0x20] MOVSXD RSI,dword ptr [RBP + -0x34] LEA RDX,[RBP + -0x12] LEA RCX,[RBP + -0x12] ADD RCX,0xa CALL RAX CDQE MOV qword ptr [RBP + -0x48],RAX JMP 0x001598d3 LAB_001598d3: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x30] XOR ECX,ECX SUB RCX,qword ptr [RBP + -0x48] ADD RAX,RCX MOV qword ptr [RBP + -0x40],RAX LAB_001598e8: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x40] JA 0x00159911 MOV RDI,qword ptr [RBP + -0x28] LEA RSI,[RBP + -0x12] MOV RDX,qword ptr [RBP + -0x48] CALL 0x00124230 MOV RAX,qword ptr [RBP + -0x48] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x28],RAX JMP 0x001598e8 LAB_00159911: MOV RAX,qword ptr [RBP + -0x40] ADD RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x28] SUB RAX,RCX MOV qword ptr [RBP + -0x50],RAX CMP RAX,0x0 JBE 0x00159939 MOV RDI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x50] XOR ESI,ESI CALL 0x00124190 LAB_00159939: MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00159951 ADD RSP,0x50 POP RBP RET LAB_00159951: CALL 0x00124320
void my_fill_mb2(long param_1,void *param_2,long param_3,int param_4) { int iVar1; size_t sVar2; void *pvVar3; long in_FS_OFFSET; void *local_30; int1 local_1a [10]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); iVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))(param_1,(long)param_4,local_1a); sVar2 = (size_t)iVar1; pvVar3 = (void *)((long)param_2 + (param_3 - sVar2)); for (local_30 = param_2; local_30 <= pvVar3; local_30 = (void *)(sVar2 + (long)local_30)) { memcpy(local_30,local_1a,sVar2); } sVar2 = (long)pvVar3 + (sVar2 - (long)local_30); if (sVar2 != 0) { memset(local_30,0,sVar2); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
49,849
bchange
eloqsql/strings/bchange.c
void bchange(register uchar *dst, size_t old_length, register const uchar *src, size_t new_length, size_t tot_length) { size_t rest=tot_length-old_length; if (old_length < new_length) bmove_upp(dst+rest+new_length,dst+tot_length,rest); else bmove(dst+new_length,dst+old_length,rest); memcpy(dst,src,new_length); }
O0
c
bchange: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x28(%rbp), %rax subq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x92811 movq -0x8(%rbp), %rdi addq -0x30(%rbp), %rdi addq -0x20(%rbp), %rdi movq -0x8(%rbp), %rsi addq -0x28(%rbp), %rsi movq -0x30(%rbp), %rdx callq 0x92850 jmp 0x9282a movq -0x8(%rbp), %rdi addq -0x20(%rbp), %rdi movq -0x8(%rbp), %rsi addq -0x10(%rbp), %rsi movq -0x30(%rbp), %rdx callq 0x28600 movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x282b0 addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
bchange: push rbp mov rbp, rsp sub rsp, 30h 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_28] sub rax, [rbp+var_10] mov [rbp+var_30], rax mov rax, [rbp+var_10] cmp rax, [rbp+var_20] jnb short loc_92811 mov rdi, [rbp+var_8] add rdi, [rbp+var_30] add rdi, [rbp+var_20] mov rsi, [rbp+var_8] add rsi, [rbp+var_28] mov rdx, [rbp+var_30] call bmove_upp jmp short loc_9282A loc_92811: mov rdi, [rbp+var_8] add rdi, [rbp+var_20] mov rsi, [rbp+var_8] add rsi, [rbp+var_10] mov rdx, [rbp+var_30] call _memmove loc_9282A: mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _memcpy add rsp, 30h pop rbp retn
long long bchange(long long a1, unsigned long long a2, long long a3, unsigned long long a4, long long a5) { long long v6; // [rsp+0h] [rbp-30h] v6 = a5 - a2; if ( a2 >= a4 ) memmove(a4 + a1, a2 + a1, v6); else bmove_upp(a4 + v6 + a1, a5 + a1, v6); return memcpy(a1, a3, a4); }
bchange: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x28] SUB RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x20] JNC 0x00192811 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,qword ptr [RBP + -0x30] ADD RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x8] ADD RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x30] CALL 0x00192850 JMP 0x0019282a LAB_00192811: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x8] ADD RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x30] CALL 0x00128600 LAB_0019282a: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001282b0 ADD RSP,0x30 POP RBP RET
void bchange(void *param_1,ulong param_2,void *param_3,ulong param_4,long param_5) { size_t __n; __n = param_5 - param_2; if (param_2 < param_4) { bmove_upp((long)param_1 + param_4 + __n,(long)param_1 + param_5,__n); } else { memmove((void *)((long)param_1 + param_4),(void *)((long)param_1 + param_2),__n); } memcpy(param_1,param_3,param_4); return; }
49,850
JS_ThrowTypeErrorReadOnly
bluesky950520[P]quickjs/quickjs.c
static int JS_ThrowTypeErrorReadOnly(JSContext *ctx, int flags, JSAtom atom) { if ((flags & JS_PROP_THROW) || ((flags & JS_PROP_THROW_STRICT) && is_strict_mode(ctx))) { JS_ThrowTypeErrorAtom(ctx, "'%s' is read-only", atom); return -1; } else { return FALSE; } }
O0
c
JS_ThrowTypeErrorReadOnly: subq $0x28, %rsp movq %rdi, 0x18(%rsp) movl %esi, 0x14(%rsp) movl %edx, 0x10(%rsp) movl 0x14(%rsp), %eax andl $0x4000, %eax # imm = 0x4000 cmpl $0x0, %eax jne 0x5fd4c movl 0x14(%rsp), %eax andl $0x8000, %eax # imm = 0x8000 cmpl $0x0, %eax je 0x5fd7d movq 0x18(%rsp), %rdi callq 0x36c80 cmpl $0x0, %eax je 0x5fd7d movq 0x18(%rsp), %rdi movl 0x10(%rsp), %esi leaq 0xacccb(%rip), %rdx # 0x10ca27 leaq 0xac55e(%rip), %rcx # 0x10c2c1 movb $0x0, %al callq 0x5f120 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF jmp 0x5fd85 movl $0x0, 0x24(%rsp) movl 0x24(%rsp), %eax addq $0x28, %rsp retq nop
JS_ThrowTypeErrorReadOnly: sub rsp, 28h mov [rsp+28h+var_10], rdi mov [rsp+28h+var_14], esi mov [rsp+28h+var_18], edx mov eax, [rsp+28h+var_14] and eax, 4000h cmp eax, 0 jnz short loc_5FD4C mov eax, [rsp+28h+var_14] and eax, 8000h cmp eax, 0 jz short loc_5FD7D mov rdi, [rsp+28h+var_10] call is_strict_mode cmp eax, 0 jz short loc_5FD7D loc_5FD4C: mov rdi, [rsp+28h+var_10] mov esi, [rsp+28h+var_18] lea rdx, aSIsReadOnly; "'%s' is read-only" lea rcx, aQuickjsNgMemor+4Dh; "" mov al, 0 call __JS_ThrowTypeErrorAtom mov [rsp+28h+var_28], rax mov [rsp+28h+var_20], rdx mov [rsp+28h+var_4], 0FFFFFFFFh jmp short loc_5FD85 loc_5FD7D: mov [rsp+28h+var_4], 0 loc_5FD85: mov eax, [rsp+28h+var_4] add rsp, 28h retn
long long JS_ThrowTypeErrorReadOnly( long long a1, __int16 a2, unsigned int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { if ( (a2 & 0x4000) != 0 || a2 < 0 && is_strict_mode(a1) ) { _JS_ThrowTypeErrorAtom(a1, a3, "'%s' is read-only", a4, a5, a6, a7, a8, a9, a10, a11); return (unsigned int)-1; } else { return 0; } }
JS_ThrowTypeErrorReadOnly: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV dword ptr [RSP + 0x14],ESI MOV dword ptr [RSP + 0x10],EDX MOV EAX,dword ptr [RSP + 0x14] AND EAX,0x4000 CMP EAX,0x0 JNZ 0x0015fd4c MOV EAX,dword ptr [RSP + 0x14] AND EAX,0x8000 CMP EAX,0x0 JZ 0x0015fd7d MOV RDI,qword ptr [RSP + 0x18] CALL 0x00136c80 CMP EAX,0x0 JZ 0x0015fd7d LAB_0015fd4c: MOV RDI,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RSP + 0x10] LEA RDX,[0x20ca27] LEA RCX,[0x20c2c1] MOV AL,0x0 CALL 0x0015f120 MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV dword ptr [RSP + 0x24],0xffffffff JMP 0x0015fd85 LAB_0015fd7d: MOV dword ptr [RSP + 0x24],0x0 LAB_0015fd85: MOV EAX,dword ptr [RSP + 0x24] ADD RSP,0x28 RET
int4 JS_ThrowTypeErrorReadOnly(int8 param_1,uint param_2,int4 param_3) { int iVar1; int4 local_4; if ((param_2 & 0x4000) == 0) { if ((param_2 & 0x8000) != 0) { iVar1 = is_strict_mode(param_1); if (iVar1 != 0) goto LAB_0015fd4c; } local_4 = 0; } else { LAB_0015fd4c: __JS_ThrowTypeErrorAtom(param_1,param_3,"\'%s\' is read-only",""); local_4 = 0xffffffff; } return local_4; }
49,851
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::skip_bom()
llama.cpp/common/json.hpp
bool skip_bom() { if (get() == 0xEF) { // check if we completely parse the BOM return get() == 0xBB && get() == 0xBF; } // the first character is not the beginning of the BOM; unget it to // process is later unget(); return true; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::skip_bom(): pushq %rbx movq %rdi, %rbx callq 0x215a8 cmpl $0xef, %eax je 0x74a84 movq %rbx, %rdi callq 0x7537a movb $0x1, %al popq %rbx retq movq %rbx, %rdi callq 0x215a8 cmpl $0xbb, %eax je 0x74a97 xorl %eax, %eax jmp 0x74a82 movq %rbx, %rdi callq 0x215a8 cmpl $0xbf, %eax sete %al jmp 0x74a82 nop
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE8skip_bomEv: push rbx mov rbx, rdi call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) cmp eax, 0EFh jz short loc_74A84 mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget(void) mov al, 1 loc_74A82: pop rbx retn loc_74A84: mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) cmp eax, 0BBh jz short loc_74A97 xor eax, eax jmp short loc_74A82 loc_74A97: mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) cmp eax, 0BFh setz al jmp short loc_74A82
bool nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::skip_bom( __m128i *this) { if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this) == 239 ) return (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this) == 187 && (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this) == 191; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget(this); return 1; }
skip_bom: PUSH RBX MOV RBX,RDI CALL 0x001215a8 CMP EAX,0xef JZ 0x00174a84 MOV RDI,RBX CALL 0x0017537a MOV AL,0x1 LAB_00174a82: POP RBX RET LAB_00174a84: MOV RDI,RBX CALL 0x001215a8 CMP EAX,0xbb JZ 0x00174a97 XOR EAX,EAX JMP 0x00174a82 LAB_00174a97: MOV RDI,RBX CALL 0x001215a8 CMP EAX,0xbf SETZ AL JMP 0x00174a82
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::skip_bom() */ bool __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter> ::skip_bom(lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter> *this) { int iVar1; bool bVar2; iVar1 = get(this); if (iVar1 == 0xef) { iVar1 = get(this); if (iVar1 == 0xbb) { iVar1 = get(this); bVar2 = iVar1 == 0xbf; } else { bVar2 = false; } } else { unget(this); bVar2 = true; } return bVar2; }
49,852
ma_seq_search
eloqsql/storage/maria/ma_search.c
int _ma_seq_search(const MARIA_KEY *key, const MARIA_PAGE *ma_page, uint32 comp_flag, uchar **ret_pos, uchar *buff, my_bool *last_key) { int UNINIT_VAR(flag); uint page_flag, nod_flag, UNINIT_VAR(length), not_used[2]; uchar t_buff[MARIA_MAX_KEY_BUFF], *end; uchar *page; MARIA_KEYDEF *keyinfo= key->keyinfo; MARIA_SHARE *share= keyinfo->share; MARIA_KEY tmp_key; DBUG_ENTER("_ma_seq_search"); page_flag= ma_page->flag; nod_flag= ma_page->node; page= ma_page->buff; end= page + ma_page->size; page+= share->keypage_header + nod_flag; *ret_pos= page; t_buff[0]=0; /* Avoid bugs */ tmp_key.data= t_buff; tmp_key.keyinfo= keyinfo; while (page < end) { length=(*keyinfo->get_key)(&tmp_key, page_flag, nod_flag, &page); if (length == 0 || page > end) { _ma_set_fatal_error_with_share(share, HA_ERR_CRASHED); DBUG_PRINT("error", ("Found wrong key: length: %u page: %p end: %p", length, page, end)); DBUG_RETURN(MARIA_FOUND_WRONG_KEY); } if ((flag= ha_key_cmp(keyinfo->seg, t_buff, key->data, key->data_length + key->ref_length, comp_flag | tmp_key.flag, not_used)) >= 0) break; DBUG_PRINT("loop_extra",("page:%p key: '%s' flag: %d", page, t_buff, flag)); memcpy(buff,t_buff,length); *ret_pos=page; } if (flag == 0) memcpy(buff,t_buff,length); /* Result is first key */ *last_key= page == end; DBUG_PRINT("exit",("flag: %d ret_pos: %p", flag, *ret_pos)); DBUG_RETURN(flag); }
O0
c
ma_seq_search: pushq %rbp movq %rsp, %rbp subq $0xa80, %rsp # imm = 0xA80 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x9f0(%rbp) movq %rsi, -0x9f8(%rbp) movl %edx, -0x9fc(%rbp) movq %rcx, -0xa08(%rbp) movq %r8, -0xa10(%rbp) movq %r9, -0xa18(%rbp) movl -0xa1c(%rbp), %eax movl %eax, -0xa1c(%rbp) movl -0xa28(%rbp), %eax movl %eax, -0xa28(%rbp) movq -0x9f0(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0xa48(%rbp) movq -0xa48(%rbp), %rax movq (%rax), %rax movq %rax, -0xa50(%rbp) movq -0x9f8(%rbp), %rax movl 0x2c(%rax), %eax movl %eax, -0xa20(%rbp) movq -0x9f8(%rbp), %rax movl 0x28(%rax), %eax movl %eax, -0xa24(%rbp) movq -0x9f8(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0xa40(%rbp) movq -0xa40(%rbp), %rax movq -0x9f8(%rbp), %rcx movl 0x20(%rcx), %ecx addq %rcx, %rax movq %rax, -0xa38(%rbp) movq -0xa50(%rbp), %rax movl 0x744(%rax), %ecx addl -0xa24(%rbp), %ecx movq -0xa40(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0xa40(%rbp) movq -0xa40(%rbp), %rcx movq -0xa08(%rbp), %rax movq %rcx, (%rax) movb $0x0, -0x9e0(%rbp) leaq -0x9e0(%rbp), %rax movq %rax, -0xa70(%rbp) movq -0xa48(%rbp), %rax movq %rax, -0xa68(%rbp) movq -0xa40(%rbp), %rax cmpq -0xa38(%rbp), %rax jae 0x96003 movq -0xa48(%rbp), %rax movq 0xe0(%rax), %rax movl -0xa20(%rbp), %esi movl -0xa24(%rbp), %edx leaq -0xa70(%rbp), %rdi leaq -0xa40(%rbp), %rcx callq *%rax movl %eax, -0xa28(%rbp) cmpl $0x0, -0xa28(%rbp) je 0x95f50 movq -0xa40(%rbp), %rax cmpq -0xa38(%rbp), %rax jbe 0x95f74 movq -0xa50(%rbp), %rdi movl $0x7e, %esi callq 0x457e0 jmp 0x95f63 jmp 0x95f65 movl $0x7fffffff, -0x9e4(%rbp) # imm = 0x7FFFFFFF jmp 0x96058 movq -0xa48(%rbp), %rax movq 0xc0(%rax), %rdi leaq -0x9e0(%rbp), %rsi movq -0x9f0(%rbp), %rax movq (%rax), %rdx movq -0x9f0(%rbp), %rax movl 0x10(%rax), %ecx movq -0x9f0(%rbp), %rax addl 0x14(%rax), %ecx movl -0x9fc(%rbp), %r8d orl -0xa58(%rbp), %r8d leaq -0xa30(%rbp), %r9 callq 0xf1f50 movl %eax, -0xa1c(%rbp) cmpl $0x0, %eax jl 0x95fce jmp 0x96003 jmp 0x95fd0 jmp 0x95fd2 movq -0xa10(%rbp), %rdi leaq -0x9e0(%rbp), %rsi movl -0xa28(%rbp), %eax movl %eax, %edx callq 0x2a090 movq -0xa40(%rbp), %rcx movq -0xa08(%rbp), %rax movq %rcx, (%rax) jmp 0x95ef3 cmpl $0x0, -0xa1c(%rbp) jne 0x96027 movq -0xa10(%rbp), %rdi leaq -0x9e0(%rbp), %rsi movl -0xa28(%rbp), %eax movl %eax, %edx callq 0x2a090 movq -0xa40(%rbp), %rax cmpq -0xa38(%rbp), %rax sete %al andb $0x1, %al movzbl %al, %eax movb %al, %cl movq -0xa18(%rbp), %rax movb %cl, (%rax) jmp 0x9604a jmp 0x9604c movl -0xa1c(%rbp), %eax movl %eax, -0x9e4(%rbp) movl -0x9e4(%rbp), %eax movl %eax, -0xa74(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x96085 movl -0xa74(%rbp), %eax addq $0xa80, %rsp # imm = 0xA80 popq %rbp retq callq 0x2a250 nopw (%rax,%rax)
_ma_seq_search: push rbp mov rbp, rsp sub rsp, 0A80h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_9F0], rdi mov [rbp+var_9F8], rsi mov [rbp+var_9FC], edx mov [rbp+var_A08], rcx mov [rbp+var_A10], r8 mov [rbp+var_A18], r9 mov eax, [rbp+var_A1C] mov [rbp+var_A1C], eax mov eax, [rbp+var_A28] mov [rbp+var_A28], eax mov rax, [rbp+var_9F0] mov rax, [rax+8] mov [rbp+var_A48], rax mov rax, [rbp+var_A48] mov rax, [rax] mov [rbp+var_A50], rax mov rax, [rbp+var_9F8] mov eax, [rax+2Ch] mov [rbp+var_A20], eax mov rax, [rbp+var_9F8] mov eax, [rax+28h] mov [rbp+var_A24], eax mov rax, [rbp+var_9F8] mov rax, [rax+10h] mov [rbp+var_A40], rax mov rax, [rbp+var_A40] mov rcx, [rbp+var_9F8] mov ecx, [rcx+20h] add rax, rcx mov [rbp+var_A38], rax mov rax, [rbp+var_A50] mov ecx, [rax+744h] add ecx, [rbp+var_A24] mov rax, [rbp+var_A40] mov ecx, ecx add rax, rcx mov [rbp+var_A40], rax mov rcx, [rbp+var_A40] mov rax, [rbp+var_A08] mov [rax], rcx mov [rbp+var_9E0], 0 lea rax, [rbp+var_9E0] mov [rbp+var_A70], rax mov rax, [rbp+var_A48] mov [rbp+var_A68], rax loc_95EF3: mov rax, [rbp+var_A40] cmp rax, [rbp+var_A38] jnb loc_96003 mov rax, [rbp+var_A48] mov rax, [rax+0E0h] mov esi, [rbp+var_A20] mov edx, [rbp+var_A24] lea rdi, [rbp+var_A70] lea rcx, [rbp+var_A40] call rax mov [rbp+var_A28], eax cmp [rbp+var_A28], 0 jz short loc_95F50 mov rax, [rbp+var_A40] cmp rax, [rbp+var_A38] jbe short loc_95F74 loc_95F50: mov rdi, [rbp+var_A50] mov esi, 7Eh ; '~' call _ma_set_fatal_error_with_share jmp short $+2 loc_95F63: jmp short $+2 loc_95F65: mov [rbp+var_9E4], 7FFFFFFFh jmp loc_96058 loc_95F74: mov rax, [rbp+var_A48] mov rdi, [rax+0C0h] lea rsi, [rbp+var_9E0] mov rax, [rbp+var_9F0] mov rdx, [rax] mov rax, [rbp+var_9F0] mov ecx, [rax+10h] mov rax, [rbp+var_9F0] add ecx, [rax+14h] mov r8d, [rbp+var_9FC] or r8d, [rbp+var_A58] lea r9, [rbp+var_A30] call ha_key_cmp mov [rbp+var_A1C], eax cmp eax, 0 jl short loc_95FCE jmp short loc_96003 loc_95FCE: jmp short $+2 loc_95FD0: jmp short $+2 loc_95FD2: mov rdi, [rbp+var_A10] lea rsi, [rbp+var_9E0] mov eax, [rbp+var_A28] mov edx, eax call _memcpy mov rcx, [rbp+var_A40] mov rax, [rbp+var_A08] mov [rax], rcx jmp loc_95EF3 loc_96003: cmp [rbp+var_A1C], 0 jnz short loc_96027 mov rdi, [rbp+var_A10] lea rsi, [rbp+var_9E0] mov eax, [rbp+var_A28] mov edx, eax call _memcpy loc_96027: mov rax, [rbp+var_A40] cmp rax, [rbp+var_A38] setz al and al, 1 movzx eax, al mov cl, al mov rax, [rbp+var_A18] mov [rax], cl jmp short $+2 loc_9604A: jmp short $+2 loc_9604C: mov eax, [rbp+var_A1C] mov [rbp+var_9E4], eax loc_96058: mov eax, [rbp+var_9E4] mov [rbp+var_A74], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_96085 mov eax, [rbp+var_A74] add rsp, 0A80h pop rbp retn loc_96085: call ___stack_chk_fail
long long ma_seq_search(long long a1, long long a2, unsigned int a3, unsigned long long *a4, long long a5, bool *a6) { long long v6; // rdx long long v7; // rcx long long v8; // r8 int v9; // r9d _QWORD v11[3]; // [rsp+10h] [rbp-A70h] BYREF int v12; // [rsp+28h] [rbp-A58h] long long v13; // [rsp+30h] [rbp-A50h] long long v14; // [rsp+38h] [rbp-A48h] unsigned long long v15; // [rsp+40h] [rbp-A40h] BYREF unsigned long long v16; // [rsp+48h] [rbp-A38h] char v17[8]; // [rsp+50h] [rbp-A30h] BYREF unsigned int v18; // [rsp+58h] [rbp-A28h] unsigned int v19; // [rsp+5Ch] [rbp-A24h] unsigned int v20; // [rsp+60h] [rbp-A20h] int v21; // [rsp+64h] [rbp-A1Ch] bool *v22; // [rsp+68h] [rbp-A18h] long long v23; // [rsp+70h] [rbp-A10h] unsigned long long *v24; // [rsp+78h] [rbp-A08h] unsigned int v25; // [rsp+84h] [rbp-9FCh] long long v26; // [rsp+88h] [rbp-9F8h] long long v27; // [rsp+90h] [rbp-9F0h] _BYTE v29[2520]; // [rsp+A0h] [rbp-9E0h] BYREF unsigned long long v30; // [rsp+A78h] [rbp-8h] v30 = __readfsqword(0x28u); v27 = a1; v26 = a2; v25 = a3; v24 = a4; v23 = a5; v22 = a6; v14 = *(_QWORD *)(a1 + 8); v13 = *(_QWORD *)v14; v20 = *(_DWORD *)(a2 + 44); v19 = *(_DWORD *)(a2 + 40); v15 = *(_QWORD *)(a2 + 16); v16 = *(unsigned int *)(a2 + 32) + v15; v15 += v19 + *(_DWORD *)(v13 + 1860); *a4 = v15; v29[0] = 0; v11[0] = v29; v11[1] = v14; while ( v15 < v16 ) { v18 = (*(long long ( **)(_QWORD *, _QWORD, _QWORD, unsigned long long *))(v14 + 224))(v11, v20, v19, &v15); if ( !v18 || v15 > v16 ) { ma_set_fatal_error_with_share(v13, 126, v6, v7, v8, v9); return 0x7FFFFFFF; } v21 = ha_key_cmp( *(_QWORD *)(v14 + 192), v29, *(_QWORD *)v27, (unsigned int)(*(_DWORD *)(v27 + 20) + *(_DWORD *)(v27 + 16)), v12 | v25, v17); if ( v21 >= 0 ) break; memcpy(v23, v29, v18); *v24 = v15; } if ( !v21 ) memcpy(v23, v29, v18); *v22 = v15 == v16; return (unsigned int)v21; }
_ma_seq_search: PUSH RBP MOV RBP,RSP SUB RSP,0xa80 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x9f0],RDI MOV qword ptr [RBP + -0x9f8],RSI MOV dword ptr [RBP + -0x9fc],EDX MOV qword ptr [RBP + -0xa08],RCX MOV qword ptr [RBP + -0xa10],R8 MOV qword ptr [RBP + -0xa18],R9 MOV EAX,dword ptr [RBP + -0xa1c] MOV dword ptr [RBP + -0xa1c],EAX MOV EAX,dword ptr [RBP + -0xa28] MOV dword ptr [RBP + -0xa28],EAX MOV RAX,qword ptr [RBP + -0x9f0] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0xa48],RAX MOV RAX,qword ptr [RBP + -0xa48] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xa50],RAX MOV RAX,qword ptr [RBP + -0x9f8] MOV EAX,dword ptr [RAX + 0x2c] MOV dword ptr [RBP + -0xa20],EAX MOV RAX,qword ptr [RBP + -0x9f8] MOV EAX,dword ptr [RAX + 0x28] MOV dword ptr [RBP + -0xa24],EAX MOV RAX,qword ptr [RBP + -0x9f8] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0xa40],RAX MOV RAX,qword ptr [RBP + -0xa40] MOV RCX,qword ptr [RBP + -0x9f8] MOV ECX,dword ptr [RCX + 0x20] ADD RAX,RCX MOV qword ptr [RBP + -0xa38],RAX MOV RAX,qword ptr [RBP + -0xa50] MOV ECX,dword ptr [RAX + 0x744] ADD ECX,dword ptr [RBP + -0xa24] MOV RAX,qword ptr [RBP + -0xa40] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0xa40],RAX MOV RCX,qword ptr [RBP + -0xa40] MOV RAX,qword ptr [RBP + -0xa08] MOV qword ptr [RAX],RCX MOV byte ptr [RBP + -0x9e0],0x0 LEA RAX,[RBP + -0x9e0] MOV qword ptr [RBP + -0xa70],RAX MOV RAX,qword ptr [RBP + -0xa48] MOV qword ptr [RBP + -0xa68],RAX LAB_00195ef3: MOV RAX,qword ptr [RBP + -0xa40] CMP RAX,qword ptr [RBP + -0xa38] JNC 0x00196003 MOV RAX,qword ptr [RBP + -0xa48] MOV RAX,qword ptr [RAX + 0xe0] MOV ESI,dword ptr [RBP + -0xa20] MOV EDX,dword ptr [RBP + -0xa24] LEA RDI,[RBP + -0xa70] LEA RCX,[RBP + -0xa40] CALL RAX MOV dword ptr [RBP + -0xa28],EAX CMP dword ptr [RBP + -0xa28],0x0 JZ 0x00195f50 MOV RAX,qword ptr [RBP + -0xa40] CMP RAX,qword ptr [RBP + -0xa38] JBE 0x00195f74 LAB_00195f50: MOV RDI,qword ptr [RBP + -0xa50] MOV ESI,0x7e CALL 0x001457e0 JMP 0x00195f63 LAB_00195f63: JMP 0x00195f65 LAB_00195f65: MOV dword ptr [RBP + -0x9e4],0x7fffffff JMP 0x00196058 LAB_00195f74: MOV RAX,qword ptr [RBP + -0xa48] MOV RDI,qword ptr [RAX + 0xc0] LEA RSI,[RBP + -0x9e0] MOV RAX,qword ptr [RBP + -0x9f0] MOV RDX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x9f0] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x9f0] ADD ECX,dword ptr [RAX + 0x14] MOV R8D,dword ptr [RBP + -0x9fc] OR R8D,dword ptr [RBP + -0xa58] LEA R9,[RBP + -0xa30] CALL 0x001f1f50 MOV dword ptr [RBP + -0xa1c],EAX CMP EAX,0x0 JL 0x00195fce JMP 0x00196003 LAB_00195fce: JMP 0x00195fd0 LAB_00195fd0: JMP 0x00195fd2 LAB_00195fd2: MOV RDI,qword ptr [RBP + -0xa10] LEA RSI,[RBP + -0x9e0] MOV EAX,dword ptr [RBP + -0xa28] MOV EDX,EAX CALL 0x0012a090 MOV RCX,qword ptr [RBP + -0xa40] MOV RAX,qword ptr [RBP + -0xa08] MOV qword ptr [RAX],RCX JMP 0x00195ef3 LAB_00196003: CMP dword ptr [RBP + -0xa1c],0x0 JNZ 0x00196027 MOV RDI,qword ptr [RBP + -0xa10] LEA RSI,[RBP + -0x9e0] MOV EAX,dword ptr [RBP + -0xa28] MOV EDX,EAX CALL 0x0012a090 LAB_00196027: MOV RAX,qword ptr [RBP + -0xa40] CMP RAX,qword ptr [RBP + -0xa38] SETZ AL AND AL,0x1 MOVZX EAX,AL MOV CL,AL MOV RAX,qword ptr [RBP + -0xa18] MOV byte ptr [RAX],CL JMP 0x0019604a LAB_0019604a: JMP 0x0019604c LAB_0019604c: MOV EAX,dword ptr [RBP + -0xa1c] MOV dword ptr [RBP + -0x9e4],EAX LAB_00196058: MOV EAX,dword ptr [RBP + -0x9e4] MOV dword ptr [RBP + -0xa74],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00196085 MOV EAX,dword ptr [RBP + -0xa74] ADD RSP,0xa80 POP RBP RET LAB_00196085: CALL 0x0012a250
int _ma_seq_search(int8 *param_1,long param_2,uint param_3,ulong *param_4,void *param_5, int8 param_6) { long in_FS_OFFSET; int1 *local_a78; long *local_a70; uint local_a60; long local_a58; long *local_a50; ulong local_a48; ulong local_a40; int1 local_a38 [8]; uint local_a30; int local_a2c; int4 local_a28; int local_a24; int8 local_a20; void *local_a18; ulong *local_a10; uint local_a04; long local_a00; int8 *local_9f8; int local_9ec; int1 local_9e8 [2520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_a70 = (long *)param_1[1]; local_a58 = *local_a70; local_a28 = *(int4 *)(param_2 + 0x2c); local_a2c = *(int *)(param_2 + 0x28); local_a40 = *(long *)(param_2 + 0x10) + (ulong)*(uint *)(param_2 + 0x20); local_a48 = *(long *)(param_2 + 0x10) + (ulong)(uint)(*(int *)(local_a58 + 0x744) + local_a2c); *param_4 = local_a48; local_9e8[0] = 0; local_a78 = local_9e8; local_a50 = local_a70; local_a20 = param_6; local_a18 = param_5; local_a10 = param_4; local_a04 = param_3; local_a00 = param_2; local_9f8 = param_1; while (local_a48 < local_a40) { local_a30 = (*(code *)local_a50[0x1c])(&local_a78,local_a28,local_a2c,&local_a48); if ((local_a30 == 0) || (local_a40 < local_a48)) { _ma_set_fatal_error_with_share(local_a58,0x7e); local_9ec = 0x7fffffff; goto LAB_00196058; } local_a24 = ha_key_cmp(local_a50[0x18],local_9e8,*local_9f8, *(int *)(local_9f8 + 2) + *(int *)((long)local_9f8 + 0x14), local_a04 | local_a60,local_a38); if (-1 < local_a24) break; memcpy(local_a18,local_9e8,(ulong)local_a30); *local_a10 = local_a48; } if (local_a24 == 0) { memcpy(local_a18,local_9e8,(ulong)local_a30); } *(bool *)local_a20 = local_a48 == local_a40; local_9ec = local_a24; LAB_00196058: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_9ec; }
49,853
minja::Parser::unexpected(minja::TemplateToken const&) const
monkey531[P]llama/common/minja.hpp
std::runtime_error unexpected(const TemplateToken & token) const { return std::runtime_error("Unexpected " + TemplateToken::typeToString(token.type) + error_location_suffix(*template_str, token.location.pos)); }
O1
cpp
minja::Parser::unexpected(minja::TemplateToken const&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movl 0x8(%rdx), %esi leaq 0x68(%rsp), %r12 movq %r12, %rdi callq 0x9dcf0 leaq 0x58a86(%rip), %rcx # 0xf6200 movl $0xb, %r8d movq %r12, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x1bba0 leaq 0x38(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x9d7b4 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x9d7bc movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq (%r15), %rsi movq 0x20(%r14), %rdx leaq 0x48(%rsp), %rdi callq 0x7b104 movq 0x28(%rsp), %rcx movq 0x30(%rsp), %r8 movq 0x50(%rsp), %rdx leaq (%rdx,%r8), %rax movl $0xf, %esi cmpq %r12, %rcx je 0x9d807 movq 0x38(%rsp), %rsi cmpq %rsi, %rax jbe 0x9d826 leaq 0x58(%rsp), %rdi movl $0xf, %esi cmpq %rdi, -0x10(%rdi) je 0x9d821 movq 0x58(%rsp), %rsi cmpq %rsi, %rax jbe 0x9d837 movq 0x48(%rsp), %rsi leaq 0x28(%rsp), %rdi callq 0x1b2b0 jmp 0x9d845 leaq 0x48(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x1bba0 leaq 0x18(%rsp), %rdx movq %rdx, -0x10(%rdx) movq (%rax), %rsi leaq 0x10(%rax), %rcx cmpq %rcx, %rsi je 0x9d869 movq %rsi, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x9d86f movups (%rcx), %xmm0 movups %xmm0, (%rdx) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x1c0a0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9d8b4 movq 0x18(%rsp), %rsi incq %rsi callq 0x1ba60 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9d8cf movq 0x58(%rsp), %rsi incq %rsi callq 0x1ba60 movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x9d8e6 movq 0x38(%rsp), %rsi incq %rsi callq 0x1ba60 leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9d901 movq 0x78(%rsp), %rsi incq %rsi callq 0x1ba60 movq %rbx, %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9d936 movq 0x18(%rsp), %rsi incq %rsi callq 0x1ba60 jmp 0x9d936 movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9d956 movq 0x58(%rsp), %rsi incq %rsi callq 0x1ba60 jmp 0x9d956 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x9d972 movq 0x38(%rsp), %rsi incq %rsi callq 0x1ba60 jmp 0x9d972 movq %rax, %rbx leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9d98d movq 0x78(%rsp), %rsi incq %rsi callq 0x1ba60 movq %rbx, %rdi callq 0x1c250 nop
_ZNK5minja6Parser10unexpectedERKNS_13TemplateTokenE: push r15; int push r14; int push r12; int push rbx; int sub rsp, 88h mov r14, rdx mov r15, rsi mov rbx, rdi mov esi, [rdx+8] lea r12, [rsp+0A8h+var_40] mov rdi, r12 call _ZN5minja13TemplateToken12typeToStringB5cxx11ENS0_4TypeE; minja::TemplateToken::typeToString(minja::TemplateToken::Type) lea rcx, aUnexpected_0; "Unexpected " mov r8d, 0Bh mov rdi, r12 xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) lea r12, [rsp+0A8h+var_70] mov [r12-10h], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h; int cmp rdx, rcx jz short loc_9D7B4 mov [rsp+0A8h+var_80], rdx mov rdx, [rcx] mov [rsp+0A8h+var_70], rdx jmp short loc_9D7BC loc_9D7B4: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 loc_9D7BC: mov rdx, [rax+8] mov qword ptr [rsp+0A8h+var_78], rdx; int mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rsi, [r15]; int mov rdx, [r14+20h]; int lea rdi, [rsp+0A8h+var_60]; int call _ZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm; minja::error_location_suffix(std::string const&,ulong) mov rcx, [rsp+0A8h+var_80] mov r8, qword ptr [rsp+0A8h+var_78] mov rdx, [rsp+0A8h+var_58] lea rax, [rdx+r8] mov esi, 0Fh cmp rcx, r12 jz short loc_9D807 mov rsi, [rsp+0A8h+var_70] loc_9D807: cmp rax, rsi jbe short loc_9D826 lea rdi, [rsp+0A8h+var_50] mov esi, 0Fh cmp [rdi-10h], rdi jz short loc_9D821 mov rsi, [rsp+0A8h+var_50] loc_9D821: cmp rax, rsi jbe short loc_9D837 loc_9D826: mov rsi, qword ptr [rsp+0A8h+var_60] lea rdi, [rsp+0A8h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_9D845 loc_9D837: lea rdi, [rsp+0A8h+var_60] xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) loc_9D845: lea rdx, [rsp+0A8h+var_90] mov [rdx-10h], rdx mov rsi, [rax] lea rcx, [rax+10h] cmp rsi, rcx jz short loc_9D869 mov [rsp+0A8h+var_A0], rsi mov rdx, [rcx] mov [rsp+0A8h+var_90], rdx jmp short loc_9D86F loc_9D869: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rdx], xmm0 loc_9D86F: mov rdx, rax add rdx, 8 mov rsi, [rax+8] mov [rsp+0A8h+var_98], rsi mov [rax], rcx mov qword ptr [rdx], 0 mov byte ptr [rcx], 0 lea rsi, [rsp+0A8h+var_A0] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) lea rax, [rsp+0A8h+var_90] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9D8B4 mov rsi, [rsp+0A8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9D8B4: lea rax, [rsp+0A8h+var_50] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9D8CF mov rsi, [rsp+0A8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9D8CF: mov rdi, [rsp+0A8h+var_80]; void * cmp rdi, r12 jz short loc_9D8E6 mov rsi, [rsp+0A8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9D8E6: lea rax, [rsp+0A8h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9D901 mov rsi, [rsp+0A8h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9D901: mov rax, rbx add rsp, 88h pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9D936 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9D936 mov rbx, rax loc_9D936: lea rax, [rsp+arg_50] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9D956 mov rsi, [rsp+arg_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9D956 mov rbx, rax loc_9D956: mov rdi, [rsp+arg_20]; void * cmp rdi, r12 jz short loc_9D972 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9D972 mov rbx, rax loc_9D972: lea rax, [rsp+arg_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9D98D mov rsi, [rsp+arg_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9D98D: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::unexpected(minja::Parser *this, const minja::TemplateToken *a2, long long a3) { long long v4; // rax __int128 *v5; // rcx unsigned long long v6; // rax unsigned long long v7; // rsi unsigned long long v8; // rsi void **v9; // rax __int128 *v10; // rcx void *v12[2]; // [rsp+8h] [rbp-A0h] BYREF __int128 v13; // [rsp+18h] [rbp-90h] BYREF void *v14; // [rsp+28h] [rbp-80h] BYREF int v15[2]; // [rsp+30h] [rbp-78h] __int128 v16; // [rsp+38h] [rbp-70h] BYREF int v17[2]; // [rsp+48h] [rbp-60h] BYREF long long v18; // [rsp+50h] [rbp-58h] _QWORD v19[2]; // [rsp+58h] [rbp-50h] BYREF void *v20[2]; // [rsp+68h] [rbp-40h] BYREF long long v21; // [rsp+78h] [rbp-30h] BYREF minja::TemplateToken::typeToString[abi:cxx11](v20, *(unsigned int *)(a3 + 8)); v4 = std::string::replace(v20, 0LL, 0LL); v14 = &v16; v5 = (__int128 *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v16 = *v5; } else { v14 = *(void **)v4; *(_QWORD *)&v16 = *(_QWORD *)v5; } *(_QWORD *)v15 = *(_QWORD *)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; minja::error_location_suffix((long long)v17, *(_QWORD *)a2, *(_QWORD *)(a3 + 32)); v6 = v18 + *(_QWORD *)v15; v7 = 15LL; if ( v14 != &v16 ) v7 = v16; if ( v6 <= v7 ) goto LABEL_10; v8 = 15LL; if ( *(_QWORD **)v17 != v19 ) v8 = v19[0]; if ( v6 <= v8 ) v9 = (void **)std::string::replace(v17, 0LL, 0LL); else LABEL_10: v9 = (void **)std::string::_M_append(&v14, *(_QWORD *)v17, v18); v12[0] = &v13; v10 = (__int128 *)(v9 + 2); if ( *v9 == v9 + 2 ) { v13 = *v10; } else { v12[0] = *v9; *(_QWORD *)&v13 = *(_QWORD *)v10; } v12[1] = v9[1]; *v9 = v10; v9[1] = 0LL; *(_BYTE *)v10 = 0; std::runtime_error::runtime_error(this, v12); if ( v12[0] != &v13 ) operator delete(v12[0], v13 + 1); if ( *(_QWORD **)v17 != v19 ) operator delete(*(void **)v17, v19[0] + 1LL); if ( v14 != &v16 ) operator delete(v14, v16 + 1); if ( v20[0] != &v21 ) operator delete(v20[0], v21 + 1); return this; }
unexpected: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV ESI,dword ptr [RDX + 0x8] LEA R12,[RSP + 0x68] MOV RDI,R12 CALL 0x0019dcf0 LAB_0019d773: LEA RCX,[0x1f6200] MOV R8D,0xb MOV RDI,R12 XOR ESI,ESI XOR EDX,EDX CALL 0x0011bba0 LEA R12,[RSP + 0x38] MOV qword ptr [R12 + -0x10],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0019d7b4 MOV qword ptr [RSP + 0x28],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x38],RDX JMP 0x0019d7bc LAB_0019d7b4: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 LAB_0019d7bc: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R14 + 0x20] LAB_0019d7db: LEA RDI,[RSP + 0x48] CALL 0x0017b104 MOV RCX,qword ptr [RSP + 0x28] MOV R8,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x50] LEA RAX,[RDX + R8*0x1] MOV ESI,0xf CMP RCX,R12 JZ 0x0019d807 MOV RSI,qword ptr [RSP + 0x38] LAB_0019d807: CMP RAX,RSI JBE 0x0019d826 LEA RDI,[RSP + 0x58] MOV ESI,0xf CMP qword ptr [RDI + -0x10],RDI JZ 0x0019d821 MOV RSI,qword ptr [RSP + 0x58] LAB_0019d821: CMP RAX,RSI JBE 0x0019d837 LAB_0019d826: MOV RSI,qword ptr [RSP + 0x48] LAB_0019d82b: LEA RDI,[RSP + 0x28] CALL 0x0011b2b0 JMP 0x0019d845 LAB_0019d837: LEA RDI,[RSP + 0x48] XOR ESI,ESI XOR EDX,EDX CALL 0x0011bba0 LAB_0019d845: LEA RDX,[RSP + 0x18] MOV qword ptr [RDX + -0x10],RDX MOV RSI,qword ptr [RAX] LEA RCX,[RAX + 0x10] CMP RSI,RCX JZ 0x0019d869 MOV qword ptr [RSP + 0x8],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x0019d86f LAB_0019d869: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RDX],XMM0 LAB_0019d86f: MOV RDX,RAX ADD RDX,0x8 MOV RSI,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RSI MOV qword ptr [RAX],RCX MOV qword ptr [RDX],0x0 MOV byte ptr [RCX],0x0 LAB_0019d88c: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x0011c0a0 LAB_0019d899: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0019d8b4 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011ba60 LAB_0019d8b4: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0019d8cf MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011ba60 LAB_0019d8cf: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R12 JZ 0x0019d8e6 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011ba60 LAB_0019d8e6: LEA RAX,[RSP + 0x78] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0019d901 MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0011ba60 LAB_0019d901: MOV RAX,RBX ADD RSP,0x88 POP RBX POP R12 POP R14 POP R15 RET
/* minja::Parser::unexpected(minja::TemplateToken const&) const */ TemplateToken * minja::Parser::unexpected(TemplateToken *param_1) { long *plVar1; int8 *puVar2; ulong *puVar3; long in_RDX; int8 *in_RSI; ulong uVar4; long *local_a0; int8 local_98; long local_90; int8 uStack_88; ulong *local_80; long local_78; ulong local_70; long lStack_68; ulong *local_60; long local_58; ulong local_50 [2]; long *local_40 [2]; long local_30 [2]; TemplateToken::typeToString_abi_cxx11_((TemplateToken *)local_40); /* try { // try from 0019d773 to 0019d78b has its CatchHandler @ 0019d96f */ plVar1 = (long *)std::__cxx11::string::replace((ulong)local_40,0,(char *)0x0,0x1f6200); puVar3 = (ulong *)(plVar1 + 2); if ((ulong *)*plVar1 == puVar3) { local_70 = *puVar3; lStack_68 = plVar1[3]; local_80 = &local_70; } else { local_70 = *puVar3; local_80 = (ulong *)*plVar1; } local_78 = plVar1[1]; *plVar1 = (long)puVar3; plVar1[1] = 0; *(int1 *)(plVar1 + 2) = 0; /* try { // try from 0019d7db to 0019d7e4 has its CatchHandler @ 0019d953 */ error_location_suffix((minja *)&local_60,(string *)*in_RSI,*(ulong *)(in_RDX + 0x20)); uVar4 = 0xf; if (local_80 != &local_70) { uVar4 = local_70; } if (uVar4 < (ulong)(local_58 + local_78)) { uVar4 = 0xf; if (local_60 != local_50) { uVar4 = local_50[0]; } if ((ulong)(local_58 + local_78) <= uVar4) { puVar2 = (int8 *) std::__cxx11::string::replace((ulong)&local_60,0,(char *)0x0,(ulong)local_80); goto LAB_0019d845; } } /* try { // try from 0019d82b to 0019d844 has its CatchHandler @ 0019d933 */ puVar2 = (int8 *)std::__cxx11::string::_M_append((char *)&local_80,(ulong)local_60); LAB_0019d845: local_a0 = &local_90; plVar1 = puVar2 + 2; if ((long *)*puVar2 == plVar1) { local_90 = *plVar1; uStack_88 = puVar2[3]; } else { local_90 = *plVar1; local_a0 = (long *)*puVar2; } local_98 = puVar2[1]; *puVar2 = plVar1; puVar2[1] = 0; *(int1 *)plVar1 = 0; /* try { // try from 0019d88c to 0019d898 has its CatchHandler @ 0019d913 */ std::runtime_error::runtime_error((runtime_error *)param_1,(string *)&local_a0); if (local_a0 != &local_90) { operator_delete(local_a0,local_90 + 1); } if (local_60 != local_50) { operator_delete(local_60,local_50[0] + 1); } if (local_80 != &local_70) { operator_delete(local_80,local_70 + 1); } if (local_40[0] != local_30) { operator_delete(local_40[0],local_30[0] + 1); } return param_1; }
49,854
chess::Board::inCheck() const
Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp
[[nodiscard]] bool inCheck() const { return isAttacked(kingSq(stm_), ~stm_); }
O3
cpp
chess::Board::inCheck() const: pushq %rax movsbq 0xae(%rdi), %rax movq 0x50(%rdi,%rax,8), %rcx andq 0x48(%rdi), %rcx je 0x7371 cmpb $0x2, %al jae 0x7390 bsfq %rcx, %rsi xorb $0x1, %al movzbl %al, %edx popq %rax jmp 0x91b0 leaq 0x546b(%rip), %rdi # 0xc7e3 leaq 0x782d(%rip), %rsi # 0xebac leaq 0x548b(%rip), %rcx # 0xc811 movl $0x8eb, %edx # imm = 0x8EB callq 0x2130 leaq 0x53dc(%rip), %rdi # 0xc773 leaq 0x780e(%rip), %rsi # 0xebac leaq 0x53ea(%rip), %rcx # 0xc78f movl $0x48, %edx callq 0x2130 nop
_ZNK5chess5Board7inCheckEv: push rax movsx rax, byte ptr [rdi+0AEh] mov rcx, [rdi+rax*8+50h] and rcx, [rdi+48h] jz short loc_7371 cmp al, 2 jnb short loc_7390 bsf rsi, rcx xor al, 1 movzx edx, al pop rax jmp _ZNK5chess5Board10isAttackedENS_6SquareENS_5ColorE; chess::Board::isAttacked(chess::Square,chess::Color) loc_7371: lea rdi, aPiecesPiecetyp; "pieces(PieceType::KING, color) != Bitbo"... lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rcx, aSquareChessBoa; "Square chess::Board::kingSq(Color) cons"... mov edx, 8EBh call ___assert_fail loc_7390: lea rdi, aC0C1C1; "c == 0 || c == 1 || c == -1" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rcx, aChessColorColo; "chess::Color::Color(int)" mov edx, 48h ; 'H' call ___assert_fail
long long chess::Board::inCheck(chess::Board *this) { long long v1; // rax unsigned long long v2; // rsi v1 = *((char *)this + 174); if ( (*((_QWORD *)this + 9) & *((_QWORD *)this + v1 + 10)) == 0LL ) __assert_fail( "pieces(PieceType::KING, color) != Bitboard(0)", "/workspace/llm4binary/github/2025_star3/Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp", 2283LL, "Square chess::Board::kingSq(Color) const"); if ( (unsigned __int8)v1 >= 2u ) __assert_fail( "c == 0 || c == 1 || c == -1", "/workspace/llm4binary/github/2025_star3/Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp", 72LL, "chess::Color::Color(int)"); _BitScanForward64(&v2, *((_QWORD *)this + 9) & *((_QWORD *)this + v1 + 10)); return chess::Board::isAttacked(this, v2, (unsigned __int8)v1 ^ 1u); }
inCheck: PUSH RAX MOVSX RAX,byte ptr [RDI + 0xae] MOV RCX,qword ptr [RDI + RAX*0x8 + 0x50] AND RCX,qword ptr [RDI + 0x48] JZ 0x00107371 CMP AL,0x2 JNC 0x00107390 BSF RSI,RCX XOR AL,0x1 MOVZX EDX,AL POP RAX JMP 0x001091b0 LAB_00107371: LEA RDI,[0x10c7e3] LEA RSI,[0x10ebac] LEA RCX,[0x10c811] MOV EDX,0x8eb CALL 0x00102130 LAB_00107390: LEA RDI,[0x10c773] LEA RSI,[0x10ebac] LEA RCX,[0x10c78f] MOV EDX,0x48 CALL 0x00102130
/* chess::Board::inCheck() const */ void __thiscall chess::Board::inCheck(Board *this) { Board BVar1; long lVar2; ulong uVar3; BVar1 = this[0xae]; uVar3 = *(ulong *)(this + (long)(char)BVar1 * 8 + 0x50) & *(ulong *)(this + 0x48); if (uVar3 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("pieces(PieceType::KING, color) != Bitboard(0)", "/workspace/llm4binary/github/2025_star3/Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp" ,0x8eb,"Square chess::Board::kingSq(Color) const"); } if ((byte)BVar1 < 2) { lVar2 = 0; if (uVar3 != 0) { for (; (uVar3 >> lVar2 & 1) == 0; lVar2 = lVar2 + 1) { } } isAttacked(this,lVar2,(byte)BVar1 ^ 1); return; } /* WARNING: Subroutine does not return */ __assert_fail("c == 0 || c == 1 || c == -1", "/workspace/llm4binary/github/2025_star3/Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp" ,0x48,"chess::Color::Color(int)"); }
49,855
my_strntoul_mb2_or_mb4
eloqsql/strings/ctype-ucs2.c
static ulong my_strntoul_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 unsigned int cutlim; register uint32 cutoff; register uint32 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= ((uint32)~0L) / (uint32) base; cutlim= (uint) (((uint32)~0L) % (uint32) 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*= (uint32) base; res+= wc; } } else if (cnv == MY_CS_ILSEQ) { if (endptr != NULL ) *endptr= (char*)s; err[0]= EILSEQ; return 0; } else { /* No more characters */ break; } } while(1); if (endptr != NULL) *endptr= (char *) s; if (s == save) { err[0]= EDOM; return 0L; } if (overflow) { err[0]= (ERANGE); return (~(uint32) 0); } return (negative ? -((long) res) : (long) res); }
O0
c
my_strntoul_mb2_or_mb4: pushq %rbp movq %rsp, %rbp subq $0x90, %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) movl $0x0, -0x3c(%rbp) movq -0x10(%rbp), %rax movq 0xb8(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x58(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x78(%rbp) movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x58(%rbp), %rax movq -0x10(%rbp), %rdi movq -0x70(%rbp), %rdx movq -0x78(%rbp), %rcx leaq -0x50(%rbp), %rsi callq *%rax movl %eax, -0x44(%rbp) cmpl $0x0, %eax jle 0x59c61 movq -0x50(%rbp), %rax addq $-0x9, %rax movq %rax, -0x88(%rbp) subq $0x24, %rax ja 0x59c5d movq -0x88(%rbp), %rax leaq 0x156929(%rip), %rcx # 0x1b0564 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax jmp 0x59c5f jmp 0x59c5f cmpl $0x0, -0x3c(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x3c(%rbp) jmp 0x59c5f jmp 0x59c5f jmp 0x59cb8 jmp 0x59c99 cmpq $0x0, -0x30(%rbp) je 0x59c73 movq -0x70(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movl -0x44(%rbp), %edx movl $0x21, %ecx movl $0x54, %eax cmpl $0x0, %edx cmovel %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movq $0x0, -0x8(%rbp) jmp 0x59e81 movl -0x44(%rbp), %ecx movq -0x70(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x70(%rbp) movb $0x1, %al testb $0x1, %al jne 0x59bfa jmp 0x59cb6 jmp 0x59cb8 movl $0x0, -0x40(%rbp) movl $0x0, -0x64(%rbp) movq -0x70(%rbp), %rax movq %rax, -0x80(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %eax, -0x60(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %edx, -0x5c(%rbp) movq -0x58(%rbp), %rax movq -0x10(%rbp), %rdi movq -0x70(%rbp), %rdx movq -0x78(%rbp), %rcx leaq -0x50(%rbp), %rsi callq *%rax movl %eax, -0x44(%rbp) cmpl $0x0, %eax jle 0x59dc9 movl -0x44(%rbp), %ecx movq -0x70(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x70(%rbp) cmpq $0x30, -0x50(%rbp) jb 0x59d37 cmpq $0x39, -0x50(%rbp) ja 0x59d37 movq -0x50(%rbp), %rax subq $0x30, %rax movq %rax, -0x50(%rbp) jmp 0x59d80 cmpq $0x41, -0x50(%rbp) jb 0x59d57 cmpq $0x5a, -0x50(%rbp) ja 0x59d57 movq -0x50(%rbp), %rax subq $0x41, %rax addq $0xa, %rax movq %rax, -0x50(%rbp) jmp 0x59d7e cmpq $0x61, -0x50(%rbp) jb 0x59d77 cmpq $0x7a, -0x50(%rbp) ja 0x59d77 movq -0x50(%rbp), %rax subq $0x61, %rax addq $0xa, %rax movq %rax, -0x50(%rbp) jmp 0x59d7c jmp 0x59e08 jmp 0x59d7e jmp 0x59d80 movq -0x50(%rbp), %rax cmpl -0x24(%rbp), %eax jl 0x59d8b jmp 0x59e08 movl -0x64(%rbp), %eax cmpl -0x60(%rbp), %eax ja 0x59da7 movl -0x64(%rbp), %eax cmpl -0x60(%rbp), %eax jne 0x59db0 movq -0x50(%rbp), %rax movl -0x5c(%rbp), %ecx cmpq %rcx, %rax jbe 0x59db0 movl $0x1, -0x40(%rbp) jmp 0x59dc7 movl -0x24(%rbp), %eax imull -0x64(%rbp), %eax movl %eax, -0x64(%rbp) movq -0x50(%rbp), %rcx movl -0x64(%rbp), %eax addq %rcx, %rax movl %eax, -0x64(%rbp) jmp 0x59dfa cmpl $0x0, -0x44(%rbp) jne 0x59df8 cmpq $0x0, -0x30(%rbp) je 0x59de1 movq -0x70(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax movl $0x54, (%rax) movq $0x0, -0x8(%rbp) jmp 0x59e81 jmp 0x59e08 jmp 0x59dfc movb $0x1, %al testb $0x1, %al jne 0x59ce8 jmp 0x59e08 cmpq $0x0, -0x30(%rbp) je 0x59e1a movq -0x70(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq -0x70(%rbp), %rax cmpq -0x80(%rbp), %rax jne 0x59e38 movq -0x38(%rbp), %rax movl $0x21, (%rax) movq $0x0, -0x8(%rbp) jmp 0x59e81 cmpl $0x0, -0x40(%rbp) je 0x59e53 movq -0x38(%rbp), %rax movl $0x22, (%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF movq %rax, -0x8(%rbp) jmp 0x59e81 cmpl $0x0, -0x3c(%rbp) je 0x59e6c movl -0x64(%rbp), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax movq %rax, -0x90(%rbp) jmp 0x59e76 movl -0x64(%rbp), %eax movq %rax, -0x90(%rbp) movq -0x90(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x90, %rsp popq %rbp retq nop
my_strntoul_mb2_or_mb4: push rbp mov rbp, rsp sub rsp, 90h 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 mov [rbp+var_3C], 0 mov rax, [rbp+var_10] mov rax, [rax+0B8h] mov rax, [rax+28h] mov [rbp+var_58], rax mov rax, [rbp+var_18] mov [rbp+var_70], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_78], rax mov rax, [rbp+var_38] mov dword ptr [rax], 0 loc_59BFA: mov rax, [rbp+var_58] mov rdi, [rbp+var_10] mov rdx, [rbp+var_70] mov rcx, [rbp+var_78] lea rsi, [rbp+var_50] call rax mov [rbp+var_44], eax cmp eax, 0 jle short loc_59C61 mov rax, [rbp+var_50] add rax, 0FFFFFFFFFFFFFFF7h; switch 37 cases mov [rbp+var_88], rax sub rax, 24h ja short def_59C42; jumptable 0000000000059C42 default case, cases 10-31,33-42,44 mov rax, [rbp+var_88] lea rcx, jpt_59C42 movsxd rax, ds:(jpt_59C42 - 1B0564h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_59C44: jmp short loc_59C5F; jumptable 0000000000059C42 case 32 loc_59C46: jmp short loc_59C5F; jumptable 0000000000059C42 case 9 loc_59C48: cmp [rbp+var_3C], 0; jumptable 0000000000059C42 case 45 setnz al xor al, 0FFh and al, 1 movzx eax, al mov [rbp+var_3C], eax jmp short loc_59C5F loc_59C5B: jmp short loc_59C5F; jumptable 0000000000059C42 case 43 def_59C42: jmp short loc_59CB8; jumptable 0000000000059C42 default case, cases 10-31,33-42,44 loc_59C5F: jmp short loc_59C99 loc_59C61: cmp [rbp+var_30], 0 jz short loc_59C73 mov rcx, [rbp+var_70] mov rax, [rbp+var_30] mov [rax], rcx loc_59C73: mov edx, [rbp+var_44] mov ecx, 21h ; '!' mov eax, 54h ; 'T' cmp edx, 0 cmovz ecx, eax mov rax, [rbp+var_38] mov [rax], ecx mov [rbp+var_8], 0 jmp loc_59E81 loc_59C99: mov ecx, [rbp+var_44] mov rax, [rbp+var_70] movsxd rcx, ecx add rax, rcx mov [rbp+var_70], rax mov al, 1 test al, 1 jnz loc_59BFA jmp short $+2 loc_59CB6: jmp short $+2 loc_59CB8: mov [rbp+var_40], 0 mov [rbp+var_64], 0 mov rax, [rbp+var_70] mov [rbp+var_80], rax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_60], eax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_5C], edx loc_59CE8: mov rax, [rbp+var_58] mov rdi, [rbp+var_10] mov rdx, [rbp+var_70] mov rcx, [rbp+var_78] lea rsi, [rbp+var_50] call rax mov [rbp+var_44], eax cmp eax, 0 jle loc_59DC9 mov ecx, [rbp+var_44] mov rax, [rbp+var_70] movsxd rcx, ecx add rax, rcx mov [rbp+var_70], rax cmp [rbp+var_50], 30h ; '0' jb short loc_59D37 cmp [rbp+var_50], 39h ; '9' ja short loc_59D37 mov rax, [rbp+var_50] sub rax, 30h ; '0' mov [rbp+var_50], rax jmp short loc_59D80 loc_59D37: cmp [rbp+var_50], 41h ; 'A' jb short loc_59D57 cmp [rbp+var_50], 5Ah ; 'Z' ja short loc_59D57 mov rax, [rbp+var_50] sub rax, 41h ; 'A' add rax, 0Ah mov [rbp+var_50], rax jmp short loc_59D7E loc_59D57: cmp [rbp+var_50], 61h ; 'a' jb short loc_59D77 cmp [rbp+var_50], 7Ah ; 'z' ja short loc_59D77 mov rax, [rbp+var_50] sub rax, 61h ; 'a' add rax, 0Ah mov [rbp+var_50], rax jmp short loc_59D7C loc_59D77: jmp loc_59E08 loc_59D7C: jmp short $+2 loc_59D7E: jmp short $+2 loc_59D80: mov rax, [rbp+var_50] cmp eax, [rbp+var_24] jl short loc_59D8B jmp short loc_59E08 loc_59D8B: mov eax, [rbp+var_64] cmp eax, [rbp+var_60] ja short loc_59DA7 mov eax, [rbp+var_64] cmp eax, [rbp+var_60] jnz short loc_59DB0 mov rax, [rbp+var_50] mov ecx, [rbp+var_5C] cmp rax, rcx jbe short loc_59DB0 loc_59DA7: mov [rbp+var_40], 1 jmp short loc_59DC7 loc_59DB0: mov eax, [rbp+var_24] imul eax, [rbp+var_64] mov [rbp+var_64], eax mov rcx, [rbp+var_50] mov eax, [rbp+var_64] add rax, rcx mov [rbp+var_64], eax loc_59DC7: jmp short loc_59DFA loc_59DC9: cmp [rbp+var_44], 0 jnz short loc_59DF8 cmp [rbp+var_30], 0 jz short loc_59DE1 mov rcx, [rbp+var_70] mov rax, [rbp+var_30] mov [rax], rcx loc_59DE1: mov rax, [rbp+var_38] mov dword ptr [rax], 54h ; 'T' mov [rbp+var_8], 0 jmp loc_59E81 loc_59DF8: jmp short loc_59E08 loc_59DFA: jmp short $+2 loc_59DFC: mov al, 1 test al, 1 jnz loc_59CE8 jmp short $+2 loc_59E08: cmp [rbp+var_30], 0 jz short loc_59E1A mov rcx, [rbp+var_70] mov rax, [rbp+var_30] mov [rax], rcx loc_59E1A: mov rax, [rbp+var_70] cmp rax, [rbp+var_80] jnz short loc_59E38 mov rax, [rbp+var_38] mov dword ptr [rax], 21h ; '!' mov [rbp+var_8], 0 jmp short loc_59E81 loc_59E38: cmp [rbp+var_40], 0 jz short loc_59E53 mov rax, [rbp+var_38] mov dword ptr [rax], 22h ; '"' mov eax, 0FFFFFFFFh mov [rbp+var_8], rax jmp short loc_59E81 loc_59E53: cmp [rbp+var_3C], 0 jz short loc_59E6C mov eax, [rbp+var_64] mov ecx, eax xor eax, eax sub rax, rcx mov [rbp+var_90], rax jmp short loc_59E76 loc_59E6C: mov eax, [rbp+var_64] mov [rbp+var_90], rax loc_59E76: mov rax, [rbp+var_90] mov [rbp+var_8], rax loc_59E81: mov rax, [rbp+var_8] add rsp, 90h pop rbp retn
long long my_strntoul_mb2_or_mb4(long long a1, long long a2, long long a3, unsigned int a4, _QWORD *a5, int *a6) { int v6; // ecx long long v9; // [rsp+10h] [rbp-80h] long long v10; // [rsp+18h] [rbp-78h] long long v11; // [rsp+20h] [rbp-70h] unsigned int v12; // [rsp+2Ch] [rbp-64h] unsigned int v13; // [rsp+30h] [rbp-60h] unsigned int v14; // [rsp+34h] [rbp-5Ch] long long ( *v15)(long long, unsigned long long *, long long, long long); // [rsp+38h] [rbp-58h] unsigned long long v16; // [rsp+40h] [rbp-50h] BYREF int v17; // [rsp+4Ch] [rbp-44h] int v18; // [rsp+50h] [rbp-40h] BOOL v19; // [rsp+54h] [rbp-3Ch] int *v20; // [rsp+58h] [rbp-38h] _QWORD *v21; // [rsp+60h] [rbp-30h] unsigned int v22; // [rsp+6Ch] [rbp-24h] long long v23; // [rsp+70h] [rbp-20h] long long v24; // [rsp+78h] [rbp-18h] long long v25; // [rsp+80h] [rbp-10h] v25 = a1; v24 = a2; v23 = a3; v22 = a4; v21 = a5; v20 = a6; v19 = 0; v15 = *(long long ( **)(long long, unsigned long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); v11 = a2; v10 = a3 + a2; *a6 = 0; while ( 2 ) { v17 = v15(v25, &v16, v11, v10); if ( v17 <= 0 ) { if ( v21 ) *v21 = v11; v6 = 33; if ( !v17 ) v6 = 84; *v20 = v6; return 0LL; } else { switch ( v16 ) { case 9uLL: case 0x20uLL: case 0x2BuLL: goto LABEL_10; case 0x2DuLL: v19 = !v19; LABEL_10: v11 += v17; continue; default: v18 = 0; v12 = 0; v9 = v11; v13 = 0xFFFFFFFF / v22; v14 = 0xFFFFFFFF % v22; break; } while ( 1 ) { v17 = v15(v25, &v16, v11, v10); if ( v17 <= 0 ) break; v11 += v17; if ( v16 < 0x30 || v16 > 0x39 ) { if ( v16 < 0x41 || v16 > 0x5A ) { if ( v16 < 0x61 || v16 > 0x7A ) goto LABEL_33; v16 = v16 - 97 + 10; } else { v16 = v16 - 65 + 10; } } else { v16 -= 48LL; } if ( (int)v16 >= (int)v22 ) goto LABEL_33; if ( v12 > v13 || v12 == v13 && v16 > v14 ) v18 = 1; else v12 = v16 + v12 * v22; } if ( v17 ) { LABEL_33: if ( v21 ) *v21 = v11; if ( v11 == v9 ) { *v20 = 33; return 0LL; } else if ( v18 ) { *v20 = 34; return 0xFFFFFFFFLL; } else if ( v19 ) { return -(long long)v12; } else { return v12; } } if ( v21 ) *v21 = v11; *v20 = 84; return 0LL; } } }
my_strntoul_mb2_or_mb4: PUSH RBP MOV RBP,RSP SUB RSP,0x90 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 MOV dword ptr [RBP + -0x3c],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 LAB_00159bfa: MOV RAX,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x70] MOV RCX,qword ptr [RBP + -0x78] LEA RSI,[RBP + -0x50] CALL RAX MOV dword ptr [RBP + -0x44],EAX CMP EAX,0x0 JLE 0x00159c61 MOV RAX,qword ptr [RBP + -0x50] ADD RAX,-0x9 MOV qword ptr [RBP + -0x88],RAX SUB RAX,0x24 JA 0x00159c5d MOV RAX,qword ptr [RBP + -0x88] LEA RCX,[0x2b0564] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_20: JMP 0x00159c5f caseD_9: JMP 0x00159c5f caseD_2d: CMP dword ptr [RBP + -0x3c],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x3c],EAX JMP 0x00159c5f caseD_2b: JMP 0x00159c5f caseD_a: JMP 0x00159cb8 LAB_00159c5f: JMP 0x00159c99 LAB_00159c61: CMP qword ptr [RBP + -0x30],0x0 JZ 0x00159c73 MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_00159c73: MOV EDX,dword ptr [RBP + -0x44] MOV ECX,0x21 MOV EAX,0x54 CMP EDX,0x0 CMOVZ ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV qword ptr [RBP + -0x8],0x0 JMP 0x00159e81 LAB_00159c99: MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x70] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x70],RAX MOV AL,0x1 TEST AL,0x1 JNZ 0x00159bfa JMP 0x00159cb6 LAB_00159cb6: JMP 0x00159cb8 LAB_00159cb8: MOV dword ptr [RBP + -0x40],0x0 MOV dword ptr [RBP + -0x64],0x0 MOV RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x80],RAX MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x60],EAX MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x5c],EDX LAB_00159ce8: MOV RAX,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x70] MOV RCX,qword ptr [RBP + -0x78] LEA RSI,[RBP + -0x50] CALL RAX MOV dword ptr [RBP + -0x44],EAX CMP EAX,0x0 JLE 0x00159dc9 MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x70] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x70],RAX CMP qword ptr [RBP + -0x50],0x30 JC 0x00159d37 CMP qword ptr [RBP + -0x50],0x39 JA 0x00159d37 MOV RAX,qword ptr [RBP + -0x50] SUB RAX,0x30 MOV qword ptr [RBP + -0x50],RAX JMP 0x00159d80 LAB_00159d37: CMP qword ptr [RBP + -0x50],0x41 JC 0x00159d57 CMP qword ptr [RBP + -0x50],0x5a JA 0x00159d57 MOV RAX,qword ptr [RBP + -0x50] SUB RAX,0x41 ADD RAX,0xa MOV qword ptr [RBP + -0x50],RAX JMP 0x00159d7e LAB_00159d57: CMP qword ptr [RBP + -0x50],0x61 JC 0x00159d77 CMP qword ptr [RBP + -0x50],0x7a JA 0x00159d77 MOV RAX,qword ptr [RBP + -0x50] SUB RAX,0x61 ADD RAX,0xa MOV qword ptr [RBP + -0x50],RAX JMP 0x00159d7c LAB_00159d77: JMP 0x00159e08 LAB_00159d7c: JMP 0x00159d7e LAB_00159d7e: JMP 0x00159d80 LAB_00159d80: MOV RAX,qword ptr [RBP + -0x50] CMP EAX,dword ptr [RBP + -0x24] JL 0x00159d8b JMP 0x00159e08 LAB_00159d8b: MOV EAX,dword ptr [RBP + -0x64] CMP EAX,dword ptr [RBP + -0x60] JA 0x00159da7 MOV EAX,dword ptr [RBP + -0x64] CMP EAX,dword ptr [RBP + -0x60] JNZ 0x00159db0 MOV RAX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x5c] CMP RAX,RCX JBE 0x00159db0 LAB_00159da7: MOV dword ptr [RBP + -0x40],0x1 JMP 0x00159dc7 LAB_00159db0: MOV EAX,dword ptr [RBP + -0x24] IMUL EAX,dword ptr [RBP + -0x64] MOV dword ptr [RBP + -0x64],EAX MOV RCX,qword ptr [RBP + -0x50] MOV EAX,dword ptr [RBP + -0x64] ADD RAX,RCX MOV dword ptr [RBP + -0x64],EAX LAB_00159dc7: JMP 0x00159dfa LAB_00159dc9: CMP dword ptr [RBP + -0x44],0x0 JNZ 0x00159df8 CMP qword ptr [RBP + -0x30],0x0 JZ 0x00159de1 MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_00159de1: MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x54 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00159e81 LAB_00159df8: JMP 0x00159e08 LAB_00159dfa: JMP 0x00159dfc LAB_00159dfc: MOV AL,0x1 TEST AL,0x1 JNZ 0x00159ce8 JMP 0x00159e08 LAB_00159e08: CMP qword ptr [RBP + -0x30],0x0 JZ 0x00159e1a MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_00159e1a: MOV RAX,qword ptr [RBP + -0x70] CMP RAX,qword ptr [RBP + -0x80] JNZ 0x00159e38 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x21 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00159e81 LAB_00159e38: CMP dword ptr [RBP + -0x40],0x0 JZ 0x00159e53 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x22 MOV EAX,0xffffffff MOV qword ptr [RBP + -0x8],RAX JMP 0x00159e81 LAB_00159e53: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x00159e6c MOV EAX,dword ptr [RBP + -0x64] MOV ECX,EAX XOR EAX,EAX SUB RAX,RCX MOV qword ptr [RBP + -0x90],RAX JMP 0x00159e76 LAB_00159e6c: MOV EAX,dword ptr [RBP + -0x64] MOV qword ptr [RBP + -0x90],RAX LAB_00159e76: MOV RAX,qword ptr [RBP + -0x90] MOV qword ptr [RBP + -0x8],RAX LAB_00159e81: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x90 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x00159cb4) */ /* WARNING: Removing unreachable block (ram,0x00159e06) */ ulong my_strntoul_mb2_or_mb4 (long param_1,long param_2,long param_3,uint param_4,long *param_5, int4 *param_6) { code *pcVar1; ulong uVar2; long lVar3; uint uVar4; int4 uVar5; ulong local_98; long local_78; uint local_6c; ulong local_58; int local_4c; int local_48; uint local_44; int4 *local_40; long *local_38; uint local_2c; long local_28; long local_20; long local_18; ulong local_10; local_44 = 0; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); *param_6 = 0; local_78 = param_2; local_40 = param_6; local_38 = param_5; local_2c = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; do { lVar3 = local_78; local_4c = (*pcVar1)(local_18,&local_58,local_78,param_2 + param_3); if (local_4c < 1) { if (local_38 != (long *)0x0) { *local_38 = local_78; } uVar5 = 0x21; if (local_4c == 0) { uVar5 = 0x54; } *local_40 = uVar5; return 0; } switch(local_58) { case 9: break; default: local_48 = 0; local_6c = 0; uVar4 = (uint)(0xffffffff / (ulong)local_2c); uVar2 = (ulong)local_2c; goto LAB_00159ce8; case 0x20: break; case 0x2b: break; case 0x2d: local_44 = (uint)((local_44 != 0 ^ 0xffU) & 1); } local_78 = local_78 + local_4c; } while( true ); LAB_00159ce8: local_4c = (*pcVar1)(local_18,&local_58,local_78,param_2 + param_3); if (local_4c < 1) { if (local_4c == 0) { if (local_38 != (long *)0x0) { *local_38 = local_78; } *local_40 = 0x54; local_10 = 0; } else { LAB_00159e08: if (local_38 != (long *)0x0) { *local_38 = local_78; } if (local_78 == lVar3) { *local_40 = 0x21; local_10 = 0; } else if (local_48 == 0) { if (local_44 == 0) { local_98 = (ulong)local_6c; } else { local_98 = -(ulong)local_6c; } local_10 = local_98; } else { *local_40 = 0x22; local_10 = 0xffffffff; } } return local_10; } local_78 = local_78 + local_4c; if ((local_58 < 0x30) || (0x39 < local_58)) { if ((local_58 < 0x41) || (0x5a < local_58)) { if ((local_58 < 0x61) || (0x7a < local_58)) goto LAB_00159e08; local_58 = local_58 - 0x57; } else { local_58 = local_58 - 0x37; } } else { local_58 = local_58 - 0x30; } if ((int)local_2c <= (int)local_58) goto LAB_00159e08; if ((uVar4 < local_6c) || ((local_6c == uVar4 && (0xffffffffU % uVar2 < local_58)))) { local_48 = 1; } else { local_6c = local_2c * local_6c + (int)local_58; } goto LAB_00159ce8; }
49,856
write_hook_for_undo_key_insert
eloqsql/storage/maria/ma_key_recover.c
my_bool write_hook_for_undo_key_insert(enum translog_record_type type, TRN *trn, MARIA_HA *tbl_info, LSN *lsn, void *hook_arg) { struct st_msg_to_write_hook_for_undo_key *msg= (struct st_msg_to_write_hook_for_undo_key *) hook_arg; MARIA_SHARE *share= tbl_info->s; if (msg->auto_increment > 0) { /* Only reason to set it here is to have a mutex protect from checkpoint reading at the same time (would see a corrupted value). The purpose of the following code is to set auto_increment if the row has a with auto_increment value higher than the current one. We also want to be able to restore the old value, in case of rollback, if no one else has tried to set the value. The logic used is that we only restore the auto_increment value if tbl_info->last_auto_increment == share->last_auto_increment when it's time to do the rollback. */ DBUG_PRINT("info",("auto_inc: %lu new auto_inc: %lu", (ulong)share->state.auto_increment, (ulong)msg->auto_increment)); if (share->state.auto_increment < msg->auto_increment) { /* Remember the original value, in case of rollback */ tbl_info->last_auto_increment= share->last_auto_increment= share->state.auto_increment; share->state.auto_increment= msg->auto_increment; } else { /* If the current value would have affected the original auto_increment value, set it to an impossible value so that it's not restored on rollback */ if (msg->auto_increment > share->last_auto_increment) share->last_auto_increment= ~(ulonglong) 0; } } return write_hook_for_undo_key(type, trn, tbl_info, lsn, hook_arg); }
O0
c
write_hook_for_undo_key_insert: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq $0x0, 0x18(%rax) jbe 0x3fb10 jmp 0x3fa9b jmp 0x3fa9d movq -0x38(%rbp), %rax movq 0xd8(%rax), %rax movq -0x30(%rbp), %rcx cmpq 0x18(%rcx), %rax jae 0x3fae8 movq -0x38(%rbp), %rax movq 0xd8(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x610(%rax) movq -0x18(%rbp), %rax movq %rcx, 0x3e8(%rax) movq -0x30(%rbp), %rax movq 0x18(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, 0xd8(%rax) jmp 0x3fb0e movq -0x30(%rbp), %rax movq 0x18(%rax), %rax movq -0x38(%rbp), %rcx cmpq 0x610(%rcx), %rax jbe 0x3fb0c movq -0x38(%rbp), %rax movq $-0x1, 0x610(%rax) jmp 0x3fb0e jmp 0x3fb10 movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx movq -0x28(%rbp), %r8 callq 0x3f9d0 addq $0x40, %rsp popq %rbp retq nop
write_hook_for_undo_key_insert: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_28] mov [rbp+var_30], rax mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_30] cmp qword ptr [rax+18h], 0 jbe short loc_3FB10 jmp short $+2 loc_3FA9B: jmp short $+2 loc_3FA9D: mov rax, [rbp+var_38] mov rax, [rax+0D8h] mov rcx, [rbp+var_30] cmp rax, [rcx+18h] jnb short loc_3FAE8 mov rax, [rbp+var_38] mov rcx, [rax+0D8h] mov rax, [rbp+var_38] mov [rax+610h], rcx mov rax, [rbp+var_18] mov [rax+3E8h], rcx mov rax, [rbp+var_30] mov rcx, [rax+18h] mov rax, [rbp+var_38] mov [rax+0D8h], rcx jmp short loc_3FB0E loc_3FAE8: mov rax, [rbp+var_30] mov rax, [rax+18h] mov rcx, [rbp+var_38] cmp rax, [rcx+610h] jbe short loc_3FB0C mov rax, [rbp+var_38] mov qword ptr [rax+610h], 0FFFFFFFFFFFFFFFFh loc_3FB0C: jmp short $+2 loc_3FB0E: jmp short $+2 loc_3FB10: mov edi, [rbp+var_4] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] mov r8, [rbp+var_28] call write_hook_for_undo_key add rsp, 40h pop rbp retn
long long write_hook_for_undo_key_insert(unsigned int a1, long long a2, long long *a3, long long a4, long long a5) { long long v5; // rcx long long v7; // [rsp+8h] [rbp-38h] v7 = *a3; if ( *(_QWORD *)(a5 + 24) ) { if ( *(_QWORD *)(v7 + 216) >= *(_QWORD *)(a5 + 24) ) { if ( *(_QWORD *)(a5 + 24) > *(_QWORD *)(v7 + 1552) ) *(_QWORD *)(v7 + 1552) = -1LL; } else { v5 = *(_QWORD *)(v7 + 216); *(_QWORD *)(v7 + 1552) = v5; a3[125] = v5; *(_QWORD *)(v7 + 216) = *(_QWORD *)(a5 + 24); } } return write_hook_for_undo_key(a1, a2, (long long)a3, a4, a5); }
write_hook_for_undo_key_insert: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] CMP qword ptr [RAX + 0x18],0x0 JBE 0x0013fb10 JMP 0x0013fa9b LAB_0013fa9b: JMP 0x0013fa9d LAB_0013fa9d: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0xd8] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX + 0x18] JNC 0x0013fae8 MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0xd8] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x610],RCX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x3e8],RCX MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0xd8],RCX JMP 0x0013fb0e LAB_0013fae8: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RCX + 0x610] JBE 0x0013fb0c MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x610],-0x1 LAB_0013fb0c: JMP 0x0013fb0e LAB_0013fb0e: JMP 0x0013fb10 LAB_0013fb10: MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x28] CALL 0x0013f9d0 ADD RSP,0x40 POP RBP RET
void write_hook_for_undo_key_insert (int4 param_1,int8 param_2,long *param_3,int8 param_4,long param_5) { long lVar1; lVar1 = *param_3; if (*(long *)(param_5 + 0x18) != 0) { if (*(ulong *)(lVar1 + 0xd8) < *(ulong *)(param_5 + 0x18)) { *(long *)(lVar1 + 0x610) = *(long *)(lVar1 + 0xd8); param_3[0x7d] = *(long *)(lVar1 + 0xd8); *(int8 *)(lVar1 + 0xd8) = *(int8 *)(param_5 + 0x18); } else if (*(ulong *)(lVar1 + 0x610) < *(ulong *)(param_5 + 0x18)) { *(int8 *)(lVar1 + 0x610) = 0xffffffffffffffff; } } write_hook_for_undo_key(param_1,param_2,param_3,param_4,param_5); return; }
49,857
nglog::ShutdownLogging()
ng-log[P]ng-log/src/logging.cc
void ShutdownLogging() { ShutdownLoggingUtilities(); LogDestination::DeleteLogDestinations(); logging_directories_list = nullptr; g_prefix_formatter = nullptr; }
O1
cpp
nglog::ShutdownLogging(): pushq %rax callq 0x224ab callq 0xaaea leaq 0x3188e(%rip), %rdi # 0x40cf0 xorl %esi, %esi callq 0x1ff92 movq 0x22770(%rip), %rdi # 0x31be0 movq $0x0, 0x22765(%rip) # 0x31be0 testq %rdi, %rdi je 0xf48b movl $0x18, %esi popq %rax jmp 0x906c popq %rax retq
_ZN5nglog15ShutdownLoggingEv: push rax call _ZN5nglog5tools24ShutdownLoggingUtilitiesEv; nglog::tools::ShutdownLoggingUtilities(void) call _ZN5nglog14LogDestination21DeleteLogDestinationsEv; nglog::LogDestination::DeleteLogDestinations(void) lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list xor esi, esi call _ZNSt15__uniq_ptr_implISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EE5resetEPS8_; std::__uniq_ptr_impl<std::vector<std::string>,std::default_delete<std::vector<std::string>>>::reset(std::vector<std::string>*) mov rdi, cs:_ZN5nglog12_GLOBAL__N_118g_prefix_formatterE; void * mov cs:_ZN5nglog12_GLOBAL__N_118g_prefix_formatterE, 0; nglog::`anonymous namespace'::g_prefix_formatter test rdi, rdi jz short loc_F48B mov esi, 18h; unsigned __int64 pop rax jmp _ZdlPvm; operator delete(void *,ulong) loc_F48B: pop rax retn
void nglog::ShutdownLogging(nglog *this) { void *v1; // rdi nglog::tools::ShutdownLoggingUtilities(this); nglog::LogDestination::DeleteLogDestinations(this); std::__uniq_ptr_impl<std::vector<std::string>,std::default_delete<std::vector<std::string>>>::reset( &nglog::logging_directories_list[abi:cxx11], 0LL); v1 = nglog::`anonymous namespace'::g_prefix_formatter; nglog::`anonymous namespace'::g_prefix_formatter = 0LL; if ( v1 ) operator delete(v1); }
ShutdownLogging: PUSH RAX CALL 0x001224ab CALL 0x0010aaea LEA RDI,[0x140cf0] XOR ESI,ESI CALL 0x0011ff92 MOV RDI,qword ptr [0x00131be0] MOV qword ptr [0x00131be0],0x0 TEST RDI,RDI JZ 0x0010f48b MOV ESI,0x18 POP RAX JMP 0x0010906c LAB_0010f48b: POP RAX RET
/* nglog::ShutdownLogging() */ int8 nglog::ShutdownLogging(void) { void *pvVar1; int8 in_RAX; int8 extraout_RAX; tools::ShutdownLoggingUtilities(); LogDestination::DeleteLogDestinations(); std:: __uniq_ptr_impl<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::reset((__uniq_ptr_impl<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)&logging_directories_list_abi_cxx11_,(vector *)0x0); pvVar1 = (anonymous_namespace)::g_prefix_formatter; (anonymous_namespace)::g_prefix_formatter = (void *)0x0; if (pvVar1 != (void *)0x0) { operator_delete(pvVar1,0x18); return extraout_RAX; } return in_RAX; }
49,858
nglog::ShutdownLogging()
ng-log[P]ng-log/src/logging.cc
void ShutdownLogging() { ShutdownLoggingUtilities(); LogDestination::DeleteLogDestinations(); logging_directories_list = nullptr; g_prefix_formatter = nullptr; }
O3
cpp
nglog::ShutdownLogging(): pushq %rax callq 0x220f3 callq 0xa8ee leaq 0x31ac3(%rip), %rdi # 0x40cf0 xorl %esi, %esi callq 0x1fce4 movq 0x229a5(%rip), %rdi # 0x31be0 movq $0x0, 0x2299a(%rip) # 0x31be0 testq %rdi, %rdi je 0xf256 movl $0x18, %esi popq %rax jmp 0x8efc popq %rax retq
_ZN5nglog15ShutdownLoggingEv: push rax call _ZN5nglog5tools24ShutdownLoggingUtilitiesEv; nglog::tools::ShutdownLoggingUtilities(void) call _ZN5nglog14LogDestination21DeleteLogDestinationsEv; nglog::LogDestination::DeleteLogDestinations(void) lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list xor esi, esi call _ZNSt15__uniq_ptr_implISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EE5resetEPS8_; std::__uniq_ptr_impl<std::vector<std::string>,std::default_delete<std::vector<std::string>>>::reset(std::vector<std::string>*) mov rdi, cs:_ZN5nglog12_GLOBAL__N_118g_prefix_formatterE; void * mov cs:_ZN5nglog12_GLOBAL__N_118g_prefix_formatterE, 0; nglog::`anonymous namespace'::g_prefix_formatter test rdi, rdi jz short loc_F256 mov esi, 18h; unsigned __int64 pop rax jmp _ZdlPvm; operator delete(void *,ulong) loc_F256: pop rax retn
void nglog::ShutdownLogging(nglog *this) { void *v1; // rdi nglog::tools::ShutdownLoggingUtilities(this); nglog::LogDestination::DeleteLogDestinations(this); std::__uniq_ptr_impl<std::vector<std::string>,std::default_delete<std::vector<std::string>>>::reset( &nglog::logging_directories_list[abi:cxx11], 0LL); v1 = nglog::`anonymous namespace'::g_prefix_formatter; nglog::`anonymous namespace'::g_prefix_formatter = 0LL; if ( v1 ) operator delete(v1); }
ShutdownLogging: PUSH RAX CALL 0x001220f3 CALL 0x0010a8ee LEA RDI,[0x140cf0] XOR ESI,ESI CALL 0x0011fce4 MOV RDI,qword ptr [0x00131be0] MOV qword ptr [0x00131be0],0x0 TEST RDI,RDI JZ 0x0010f256 MOV ESI,0x18 POP RAX JMP 0x00108efc LAB_0010f256: POP RAX RET
/* nglog::ShutdownLogging() */ int8 nglog::ShutdownLogging(void) { void *pvVar1; int8 in_RAX; int8 extraout_RAX; tools::ShutdownLoggingUtilities(); LogDestination::DeleteLogDestinations(); std:: __uniq_ptr_impl<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::reset((__uniq_ptr_impl<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)&logging_directories_list_abi_cxx11_,(vector *)0x0); pvVar1 = (anonymous_namespace)::g_prefix_formatter; (anonymous_namespace)::g_prefix_formatter = (void *)0x0; if (pvVar1 != (void *)0x0) { operator_delete(pvVar1,0x18); return extraout_RAX; } return in_RAX; }
49,859
flux::parser::Parser::parseProgram()
kvthweatt[P]FluxLang/src/parser/parser.cpp
std::unique_ptr<Program> Parser::parseProgram() { auto program = std::make_unique<Program>(); // Process tokens until we reach the end of file while (!check(lexer::TokenType::END_OF_FILE)) { // First try parsing as a declaration auto decl = declaration(); if (decl) { program->addDeclaration(std::move(decl)); } else { // Try parsing as a statement auto stmt = statement(); if (stmt) { // Handle statement (convert to declaration if needed) // In a real implementation, you might want to add statements to the program too } else { // Neither a declaration nor a statement - must advance token or we'll loop forever error("Expected declaration or statement"); // CRITICAL: Always advance the token to prevent infinite loop advance(); // Synchronize to a known good state synchronize(); } } // Check if we've reached the end of the file after parsing if (check(lexer::TokenType::END_OF_FILE)) { break; } } return program; }
O0
cpp
flux::parser::Parser::parseProgram(): pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp movq %rdi, -0xd0(%rbp) movq %rdi, %rax movq %rax, -0xc8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0xc0(%rbp) movb $0x0, -0x11(%rbp) callq 0x58da0 movq -0xc0(%rbp), %rdi xorl %esi, %esi callq 0x417c0 movb %al, -0xd1(%rbp) jmp 0x41d2e movb -0xd1(%rbp), %al xorb $-0x1, %al testb $0x1, %al jne 0x41d3f jmp 0x41edf movq -0xc0(%rbp), %rsi leaq -0x30(%rbp), %rdi callq 0x41f30 jmp 0x41d51 leaq -0x30(%rbp), %rdi callq 0x58e00 testb $0x1, %al jne 0x41d60 jmp 0x41dd5 movq -0xd0(%rbp), %rdi callq 0x9330 movq %rax, -0xe8(%rbp) leaq -0x38(%rbp), %rdi movq %rdi, -0xe0(%rbp) leaq -0x30(%rbp), %rsi callq 0x287b0 movq -0xe8(%rbp), %rdi movq -0xe0(%rbp), %rsi callq 0x58e30 jmp 0x41d9c leaq -0x38(%rbp), %rdi callq 0xbf30 jmp 0x41e80 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x20(%rbp) movl %eax, -0x24(%rbp) jmp 0x41f0f movq %rax, %rcx movl %edx, %eax movq %rcx, -0x20(%rbp) movl %eax, -0x24(%rbp) leaq -0x38(%rbp), %rdi callq 0xbf30 jmp 0x41ed4 movq -0xc0(%rbp), %rsi leaq -0x40(%rbp), %rdi callq 0x424f0 jmp 0x41de7 leaq -0x40(%rbp), %rdi callq 0x1f500 testb $0x1, %al jne 0x41df6 jmp 0x41e09 jmp 0x41e77 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x20(%rbp) movl %eax, -0x24(%rbp) jmp 0x41ed4 leaq 0x21b00(%rip), %rsi # 0x63910 leaq -0x50(%rbp), %rdi callq 0xd130 movq -0xc0(%rbp), %rdi movq -0x50(%rbp), %rsi movq -0x48(%rbp), %rdx callq 0x42ba0 jmp 0x41e2f movq -0xc0(%rbp), %rsi leaq -0xb0(%rbp), %rdi callq 0x417f0 jmp 0x41e44 leaq -0xb0(%rbp), %rdi callq 0xa300 movq -0xc0(%rbp), %rdi callq 0x42bf0 jmp 0x41e5e jmp 0x41e77 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x20(%rbp) movl %eax, -0x24(%rbp) leaq -0x40(%rbp), %rdi callq 0x1eef0 jmp 0x41ed4 leaq -0x40(%rbp), %rdi callq 0x1eef0 movq -0xc0(%rbp), %rdi xorl %esi, %esi callq 0x417c0 movb %al, -0xe9(%rbp) jmp 0x41e96 movb -0xe9(%rbp), %al testb $0x1, %al jne 0x41ea2 jmp 0x41eae movl $0x3, -0xb4(%rbp) jmp 0x41eb8 movl $0x0, -0xb4(%rbp) leaq -0x30(%rbp), %rdi callq 0xbf30 movl -0xb4(%rbp), %eax testl %eax, %eax je 0x41ecf jmp 0x41ecd jmp 0x41edf jmp 0x41d18 leaq -0x30(%rbp), %rdi callq 0xbf30 jmp 0x41f0f movb $0x1, -0x11(%rbp) movl $0x1, -0xb4(%rbp) testb $0x1, -0x11(%rbp) jne 0x41eff movq -0xd0(%rbp), %rdi callq 0x9370 movq -0xc8(%rbp), %rax addq $0xf0, %rsp popq %rbp retq movq -0xd0(%rbp), %rdi callq 0x9370 movq -0x20(%rbp), %rdi callq 0x75a0 nopw %cs:(%rax,%rax)
_ZN4flux6parser6Parser12parseProgramEv: push rbp mov rbp, rsp sub rsp, 0F0h mov [rbp+var_D0], rdi mov rax, rdi mov [rbp+var_C8], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov [rbp+var_C0], rax mov [rbp+var_11], 0 call _ZSt11make_uniqueIN4flux6parser7ProgramEJEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<flux::parser::Program>() loc_41D18: mov rdi, [rbp+var_C0] xor esi, esi call _ZNK4flux6parser6Parser5checkENS_5lexer9TokenTypeE; flux::parser::Parser::check(flux::lexer::TokenType) mov [rbp+var_D1], al jmp short $+2 loc_41D2E: mov al, [rbp+var_D1] xor al, 0FFh test al, 1 jnz short loc_41D3F jmp loc_41EDF loc_41D3F: mov rsi, [rbp+var_C0] lea rdi, [rbp+var_30]; this call _ZN4flux6parser6Parser11declarationEv; flux::parser::Parser::declaration(void) jmp short $+2 loc_41D51: lea rdi, [rbp+var_30] call _ZNKSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EEcvbEv; std::unique_ptr<flux::parser::Decl>::operator bool(void) test al, 1 jnz short loc_41D60 jmp short loc_41DD5 loc_41D60: mov rdi, [rbp+var_D0] call _ZNKSt10unique_ptrIN4flux6parser7ProgramESt14default_deleteIS2_EEptEv; std::unique_ptr<flux::parser::Program>::operator->(void) mov [rbp+var_E8], rax lea rdi, [rbp+var_38] mov [rbp+var_E0], rdi lea rsi, [rbp+var_30] call _ZNSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EEC2EOS5_; std::unique_ptr<flux::parser::Decl>::unique_ptr(std::unique_ptr<flux::parser::Decl>&&) mov rdi, [rbp+var_E8] mov rsi, [rbp+var_E0] call _ZN4flux6parser7Program14addDeclarationESt10unique_ptrINS0_4DeclESt14default_deleteIS3_EE; flux::parser::Program::addDeclaration(std::unique_ptr<flux::parser::Decl>) jmp short $+2 loc_41D9C: lea rdi, [rbp+var_38] call _ZNSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Decl>::~unique_ptr() jmp loc_41E80 mov rcx, rax mov eax, edx mov [rbp+var_20], rcx mov [rbp+var_24], eax jmp loc_41F0F mov rcx, rax mov eax, edx mov [rbp+var_20], rcx mov [rbp+var_24], eax lea rdi, [rbp+var_38] call _ZNSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Decl>::~unique_ptr() jmp loc_41ED4 loc_41DD5: mov rsi, [rbp+var_C0] lea rdi, [rbp+var_40]; this call _ZN4flux6parser6Parser9statementEv; flux::parser::Parser::statement(void) jmp short $+2 loc_41DE7: lea rdi, [rbp+var_40] call _ZNKSt10unique_ptrIN4flux6parser4StmtESt14default_deleteIS2_EEcvbEv; std::unique_ptr<flux::parser::Stmt>::operator bool(void) test al, 1 jnz short loc_41DF6 jmp short loc_41E09 loc_41DF6: jmp short loc_41E77 mov rcx, rax mov eax, edx mov [rbp+var_20], rcx mov [rbp+var_24], eax jmp loc_41ED4 loc_41E09: lea rsi, aExpectedDeclar_0; "Expected declaration or statement" lea rdi, [rbp+var_50] call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc; std::string_view::basic_string_view(char const*) mov rdi, [rbp+var_C0] mov rsi, [rbp+var_50] mov rdx, [rbp+var_48] call _ZN4flux6parser6Parser5errorESt17basic_string_viewIcSt11char_traitsIcEE; flux::parser::Parser::error(std::string_view) jmp short $+2 loc_41E2F: mov rsi, [rbp+var_C0] lea rdi, [rbp+var_B0]; this call _ZN4flux6parser6Parser7advanceEv; flux::parser::Parser::advance(void) jmp short $+2 loc_41E44: lea rdi, [rbp+var_B0]; this call _ZN4flux5lexer5TokenD2Ev; flux::lexer::Token::~Token() mov rdi, [rbp+var_C0]; this call _ZN4flux6parser6Parser11synchronizeEv; flux::parser::Parser::synchronize(void) jmp short $+2 loc_41E5E: jmp short loc_41E77 mov rcx, rax mov eax, edx mov [rbp+var_20], rcx mov [rbp+var_24], eax lea rdi, [rbp+var_40] call _ZNSt10unique_ptrIN4flux6parser4StmtESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Stmt>::~unique_ptr() jmp short loc_41ED4 loc_41E77: lea rdi, [rbp+var_40] call _ZNSt10unique_ptrIN4flux6parser4StmtESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Stmt>::~unique_ptr() loc_41E80: mov rdi, [rbp+var_C0] xor esi, esi call _ZNK4flux6parser6Parser5checkENS_5lexer9TokenTypeE; flux::parser::Parser::check(flux::lexer::TokenType) mov [rbp+var_E9], al jmp short $+2 loc_41E96: mov al, [rbp+var_E9] test al, 1 jnz short loc_41EA2 jmp short loc_41EAE loc_41EA2: mov [rbp+var_B4], 3 jmp short loc_41EB8 loc_41EAE: mov [rbp+var_B4], 0 loc_41EB8: lea rdi, [rbp+var_30] call _ZNSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Decl>::~unique_ptr() mov eax, [rbp+var_B4] test eax, eax jz short loc_41ECF jmp short $+2 loc_41ECD: jmp short loc_41EDF loc_41ECF: jmp loc_41D18 loc_41ED4: lea rdi, [rbp+var_30] call _ZNSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Decl>::~unique_ptr() jmp short loc_41F0F loc_41EDF: mov [rbp+var_11], 1 mov [rbp+var_B4], 1 test [rbp+var_11], 1 jnz short loc_41EFF mov rdi, [rbp+var_D0] call _ZNSt10unique_ptrIN4flux6parser7ProgramESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Program>::~unique_ptr() loc_41EFF: mov rax, [rbp+var_C8] add rsp, 0F0h pop rbp retn loc_41F0F: mov rdi, [rbp+var_D0] call _ZNSt10unique_ptrIN4flux6parser7ProgramESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Program>::~unique_ptr() mov rdi, [rbp+var_20] call __Unwind_Resume
flux::parser::Parser * flux::parser::Parser::parseProgram( flux::parser::Parser *this, flux::parser::Parser *a2) { long long v3; // [rsp+8h] [rbp-E8h] int v4; // [rsp+3Ch] [rbp-B4h] _BYTE v5[96]; // [rsp+40h] [rbp-B0h] BYREF long long v6[2]; // [rsp+A0h] [rbp-50h] BYREF _BYTE v7[8]; // [rsp+B0h] [rbp-40h] BYREF _BYTE v8[8]; // [rsp+B8h] [rbp-38h] BYREF _BYTE v9[32]; // [rsp+C0h] [rbp-30h] BYREF flux::parser::Parser *v10; // [rsp+E0h] [rbp-10h] flux::parser::Parser *v11; // [rsp+E8h] [rbp-8h] v11 = this; v10 = a2; v9[31] = 0; std::make_unique<flux::parser::Program>(); do { if ( flux::parser::Parser::check((long long)a2, 0) ) break; flux::parser::Parser::declaration((flux::parser::Parser *)v9); if ( (std::unique_ptr<flux::parser::Decl>::operator bool(v9, a2) & 1) != 0 ) { v3 = std::unique_ptr<flux::parser::Program>::operator->((long long)this); std::unique_ptr<flux::parser::Decl>::unique_ptr((long long)v8, (long long)v9); flux::parser::Program::addDeclaration(v3, v8); std::unique_ptr<flux::parser::Decl>::~unique_ptr((long long)v8); } else { flux::parser::Parser::statement((flux::parser::Parser *)v7); if ( !std::unique_ptr<flux::parser::Stmt>::operator bool((long long)v7) ) { std::string_view::basic_string_view(v6, (long long)"Expected declaration or statement"); flux::parser::Parser::error(a2, v6[0], v6[1]); flux::parser::Parser::advance((flux::parser::Parser *)v5, (long long)a2); flux::lexer::Token::~Token((flux::lexer::Token *)v5); flux::parser::Parser::synchronize(a2); } std::unique_ptr<flux::parser::Stmt>::~unique_ptr((long long)v7); } v4 = flux::parser::Parser::check((long long)a2, 0) ? 3 : 0; std::unique_ptr<flux::parser::Decl>::~unique_ptr((long long)v9); } while ( !v4 ); return this; }
parseProgram: PUSH RBP MOV RBP,RSP SUB RSP,0xf0 MOV qword ptr [RBP + -0xd0],RDI MOV RAX,RDI MOV qword ptr [RBP + -0xc8],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0xc0],RAX MOV byte ptr [RBP + -0x11],0x0 CALL 0x00158da0 LAB_00141d18: MOV RDI,qword ptr [RBP + -0xc0] XOR ESI,ESI CALL 0x001417c0 MOV byte ptr [RBP + -0xd1],AL JMP 0x00141d2e LAB_00141d2e: MOV AL,byte ptr [RBP + -0xd1] XOR AL,0xff TEST AL,0x1 JNZ 0x00141d3f JMP 0x00141edf LAB_00141d3f: MOV RSI,qword ptr [RBP + -0xc0] LEA RDI,[RBP + -0x30] CALL 0x00141f30 JMP 0x00141d51 LAB_00141d51: LEA RDI,[RBP + -0x30] CALL 0x00158e00 TEST AL,0x1 JNZ 0x00141d60 JMP 0x00141dd5 LAB_00141d60: MOV RDI,qword ptr [RBP + -0xd0] CALL 0x00109330 MOV qword ptr [RBP + -0xe8],RAX LEA RDI,[RBP + -0x38] MOV qword ptr [RBP + -0xe0],RDI LEA RSI,[RBP + -0x30] CALL 0x001287b0 MOV RDI,qword ptr [RBP + -0xe8] MOV RSI,qword ptr [RBP + -0xe0] LAB_00141d95: CALL 0x00158e30 JMP 0x00141d9c LAB_00141d9c: LEA RDI,[RBP + -0x38] CALL 0x0010bf30 JMP 0x00141e80 LAB_00141dd5: MOV RSI,qword ptr [RBP + -0xc0] LEA RDI,[RBP + -0x40] CALL 0x001424f0 JMP 0x00141de7 LAB_00141de7: LEA RDI,[RBP + -0x40] CALL 0x0011f500 TEST AL,0x1 JNZ 0x00141df6 JMP 0x00141e09 LAB_00141df6: JMP 0x00141e77 LAB_00141e09: LEA RSI,[0x163910] LEA RDI,[RBP + -0x50] CALL 0x0010d130 MOV RDI,qword ptr [RBP + -0xc0] MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x48] LAB_00141e28: CALL 0x00142ba0 JMP 0x00141e2f LAB_00141e2f: MOV RSI,qword ptr [RBP + -0xc0] LEA RDI,[RBP + -0xb0] CALL 0x001417f0 JMP 0x00141e44 LAB_00141e44: LEA RDI,[RBP + -0xb0] CALL 0x0010a300 MOV RDI,qword ptr [RBP + -0xc0] CALL 0x00142bf0 JMP 0x00141e5e LAB_00141e5e: JMP 0x00141e77 LAB_00141e77: LEA RDI,[RBP + -0x40] CALL 0x0011eef0 LAB_00141e80: MOV RDI,qword ptr [RBP + -0xc0] XOR ESI,ESI CALL 0x001417c0 LAB_00141e8e: MOV byte ptr [RBP + -0xe9],AL JMP 0x00141e96 LAB_00141e96: MOV AL,byte ptr [RBP + -0xe9] TEST AL,0x1 JNZ 0x00141ea2 JMP 0x00141eae LAB_00141ea2: MOV dword ptr [RBP + -0xb4],0x3 JMP 0x00141eb8 LAB_00141eae: MOV dword ptr [RBP + -0xb4],0x0 LAB_00141eb8: LEA RDI,[RBP + -0x30] CALL 0x0010bf30 MOV EAX,dword ptr [RBP + -0xb4] TEST EAX,EAX JZ 0x00141ecf JMP 0x00141ecd LAB_00141ecd: JMP 0x00141edf LAB_00141ecf: JMP 0x00141d18 LAB_00141edf: MOV byte ptr [RBP + -0x11],0x1 MOV dword ptr [RBP + -0xb4],0x1 TEST byte ptr [RBP + -0x11],0x1 JNZ 0x00141eff MOV RDI,qword ptr [RBP + -0xd0] CALL 0x00109370 LAB_00141eff: MOV RAX,qword ptr [RBP + -0xc8] ADD RSP,0xf0 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x00141ef3) */ /* flux::parser::Parser::parseProgram() */ unique_ptr<flux::parser::Program,std::default_delete<flux::parser::Program>> * flux::parser::Parser::parseProgram(void) { byte bVar1; bool bVar2; Program *pPVar3; Parser *in_RSI; unique_ptr<flux::parser::Program,std::default_delete<flux::parser::Program>> *in_RDI; int local_bc; Token local_b8 [96]; int8 local_58; int8 local_50; unique_ptr local_48 [8]; unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>> local_40 [8]; unique_ptr local_38 [31]; int1 local_19; local_19 = 0; std::make_unique<flux::parser::Program>(); do { /* try { // try from 00141d18 to 00141d4e has its CatchHandler @ 00141daa */ bVar1 = check(in_RSI,0); if (((bVar1 ^ 0xff) & 1) == 0) { return in_RDI; } declaration(); bVar2 = std::unique_ptr::operator_cast_to_bool(local_38); if (bVar2) { pPVar3 = (Program *) std::unique_ptr<flux::parser::Program,std::default_delete<flux::parser::Program>>:: operator->(in_RDI); std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>::unique_ptr (local_40,local_38); /* try { // try from 00141d95 to 00141d99 has its CatchHandler @ 00141dbb */ Program::addDeclaration(pPVar3); std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>::~unique_ptr (local_40); } else { /* try { // try from 00141dd5 to 00141de4 has its CatchHandler @ 00141df8 */ statement(); bVar2 = std::unique_ptr::operator_cast_to_bool(local_48); if (!bVar2) { std::basic_string_view<char,std::char_traits<char>>::basic_string_view ((basic_string_view<char,std::char_traits<char>> *)&local_58, "Expected declaration or statement"); /* try { // try from 00141e28 to 00141e5b has its CatchHandler @ 00141e60 */ error(in_RSI,local_58,local_50); advance(); lexer::Token::~Token(local_b8); synchronize(in_RSI); } std::unique_ptr<flux::parser::Stmt,std::default_delete<flux::parser::Stmt>>::~unique_ptr ((unique_ptr<flux::parser::Stmt,std::default_delete<flux::parser::Stmt>> *)local_48) ; } /* try { // try from 00141e80 to 00141e8d has its CatchHandler @ 00141df8 */ bVar1 = check(in_RSI,0); if ((bVar1 & 1) == 0) { local_bc = 0; } else { local_bc = 3; } std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>::~unique_ptr ((unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>> *)local_38); } while (local_bc == 0); return in_RDI; }
49,860
my_numcells_eucjp
eloqsql/strings/ctype-ujis.c
static size_t my_numcells_eucjp(CHARSET_INFO *cs __attribute__((unused)), const char *str, const char *str_end) { size_t clen; const uchar *b= (const uchar *) str; const uchar *e= (const uchar *) str_end; for (clen= 0; b < e; ) { if (*b == 0x8E) { clen++; b+= 2; } else if (*b == 0x8F) { clen+= 2; b+= 3; } else if (*b & 0x80) { clen+= 2; b+= 2; } else { clen++; b++; } } return clen; }
O0
c
my_numcells_eucjp: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq $0x0, -0x20(%rbp) movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0x6a802 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x8e, %eax jne 0x6a78e movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0x6a7fd movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x8f, %eax jne 0x6a7b6 movq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x3, %rax movq %rax, -0x28(%rbp) jmp 0x6a7fb movq -0x28(%rbp), %rax movzbl (%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x6a7e1 movq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0x6a7f9 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x6a7fb jmp 0x6a7fd jmp 0x6a758 movq -0x20(%rbp), %rax popq %rbp retq nopl (%rax,%rax)
my_numcells_eucjp: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_30], rax mov [rbp+var_20], 0 loc_6A758: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jnb loc_6A802 mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 8Eh jnz short loc_6A78E mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax jmp short loc_6A7FD loc_6A78E: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 8Fh jnz short loc_6A7B6 mov rax, [rbp+var_20] add rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 3 mov [rbp+var_28], rax jmp short loc_6A7FB loc_6A7B6: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] and eax, 80h cmp eax, 0 jz short loc_6A7E1 mov rax, [rbp+var_20] add rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax jmp short loc_6A7F9 loc_6A7E1: mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax loc_6A7F9: jmp short $+2 loc_6A7FB: jmp short $+2 loc_6A7FD: jmp loc_6A758 loc_6A802: mov rax, [rbp+var_20] pop rbp retn
long long my_numcells_eucjp(long long a1, _BYTE *a2, unsigned long long a3) { long long v5; // [rsp+10h] [rbp-20h] v5 = 0LL; while ( (unsigned long long)a2 < a3 ) { if ( (unsigned __int8)*a2 == 142 ) { ++v5; a2 += 2; } else if ( (unsigned __int8)*a2 == 143 ) { v5 += 2LL; a2 += 3; } else if ( (*a2 & 0x80) != 0 ) { v5 += 2LL; a2 += 2; } else { ++v5; ++a2; } } return v5; }
my_numcells_eucjp: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x20],0x0 LAB_0016a758: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JNC 0x0016a802 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x8e JNZ 0x0016a78e MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x0016a7fd LAB_0016a78e: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x8f JNZ 0x0016a7b6 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x3 MOV qword ptr [RBP + -0x28],RAX JMP 0x0016a7fb LAB_0016a7b6: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] AND EAX,0x80 CMP EAX,0x0 JZ 0x0016a7e1 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x0016a7f9 LAB_0016a7e1: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX LAB_0016a7f9: JMP 0x0016a7fb LAB_0016a7fb: JMP 0x0016a7fd LAB_0016a7fd: JMP 0x0016a758 LAB_0016a802: MOV RAX,qword ptr [RBP + -0x20] POP RBP RET
long my_numcells_eucjp(int8 param_1,byte *param_2,byte *param_3) { byte *local_30; long local_28; local_28 = 0; local_30 = param_2; while (local_30 < param_3) { if (*local_30 == 0x8e) { local_28 = local_28 + 1; local_30 = local_30 + 2; } else if (*local_30 == 0x8f) { local_28 = local_28 + 2; local_30 = local_30 + 3; } else if ((*local_30 & 0x80) == 0) { local_28 = local_28 + 1; local_30 = local_30 + 1; } else { local_28 = local_28 + 2; local_30 = local_30 + 2; } } return local_28; }
49,861
my_numcells_eucjp
eloqsql/strings/ctype-ujis.c
static size_t my_numcells_eucjp(CHARSET_INFO *cs __attribute__((unused)), const char *str, const char *str_end) { size_t clen; const uchar *b= (const uchar *) str; const uchar *e= (const uchar *) str_end; for (clen= 0; b < e; ) { if (*b == 0x8E) { clen++; b+= 2; } else if (*b == 0x8F) { clen+= 2; b+= 3; } else if (*b & 0x80) { clen+= 2; b+= 2; } else { clen++; b++; } } return clen; }
O3
c
my_numcells_eucjp: cmpq %rdx, %rsi jae 0x51582 pushq %rbp movq %rsp, %rbp xorl %eax, %eax movzbl (%rsi), %edi cmpl $0x8e, %edi je 0x5155b cmpl $0x8f, %edi jne 0x51567 movl $0x3, %edi movl $0x2, %ecx jmp 0x51575 movl $0x2, %edi movl $0x1, %ecx jmp 0x51575 xorl %ecx, %ecx testb %dil, %dil sets %cl incq %rcx movq %rcx, %rdi addq %rcx, %rax addq %rdi, %rsi cmpq %rdx, %rsi jb 0x5153c popq %rbp retq xorl %eax, %eax retq
my_numcells_eucjp: cmp rsi, rdx jnb short loc_51582 push rbp mov rbp, rsp xor eax, eax loc_5153C: movzx edi, byte ptr [rsi] cmp edi, 8Eh jz short loc_5155B cmp edi, 8Fh jnz short loc_51567 mov edi, 3 mov ecx, 2 jmp short loc_51575 loc_5155B: mov edi, 2 mov ecx, 1 jmp short loc_51575 loc_51567: xor ecx, ecx test dil, dil sets cl inc rcx mov rdi, rcx loc_51575: add rax, rcx add rsi, rdi cmp rsi, rdx jb short loc_5153C pop rbp retn loc_51582: xor eax, eax retn
long long my_numcells_eucjp(long long a1, unsigned __int8 *a2, unsigned long long a3) { long long result; // rax int v4; // edi long long v5; // rdi long long v6; // rcx if ( (unsigned long long)a2 >= a3 ) return 0LL; result = 0LL; do { v4 = *a2; if ( v4 == 142 ) { v5 = 2LL; v6 = 1LL; } else if ( v4 == 143 ) { v5 = 3LL; v6 = 2LL; } else { v6 = ((v4 & 0x80u) != 0) + 1LL; v5 = v6; } result += v6; a2 += v5; } while ( (unsigned long long)a2 < a3 ); return result; }
my_numcells_eucjp: CMP RSI,RDX JNC 0x00151582 PUSH RBP MOV RBP,RSP XOR EAX,EAX LAB_0015153c: MOVZX EDI,byte ptr [RSI] CMP EDI,0x8e JZ 0x0015155b CMP EDI,0x8f JNZ 0x00151567 MOV EDI,0x3 MOV ECX,0x2 JMP 0x00151575 LAB_0015155b: MOV EDI,0x2 MOV ECX,0x1 JMP 0x00151575 LAB_00151567: XOR ECX,ECX TEST DIL,DIL SETS CL INC RCX MOV RDI,RCX LAB_00151575: ADD RAX,RCX ADD RSI,RDI CMP RSI,RDX JC 0x0015153c POP RBP RET LAB_00151582: XOR EAX,EAX RET
long my_numcells_eucjp(int8 param_1,char *param_2,char *param_3) { char cVar1; long lVar2; long lVar3; long lVar4; if (param_2 < param_3) { lVar2 = 0; do { cVar1 = *param_2; if (cVar1 == -0x72) { lVar4 = 2; lVar3 = 1; } else if (cVar1 == -0x71) { lVar3 = 2; lVar4 = 3; } else { lVar3 = (ulong)(cVar1 < '\0') + 1; lVar4 = lVar3; } lVar2 = lVar2 + lVar3; param_2 = param_2 + lVar4; } while (param_2 < param_3); return lVar2; } return 0; }
49,862
mjCModel::AddDefault(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
aimrt_mujoco_sim/_deps/mujoco-src/src/user/user_model.cc
mjCDef* mjCModel::AddDefault(string name, int parentid) { // check for repeated name int thisid = (int)defaults_.size(); for (int i=0; i<thisid; i++) { if (defaults_[i]->name==name) { return 0; } } // create new object mjCDef* def = new mjCDef; defaults_.push_back(def); // initialize contents if (parentid>=0 && parentid<thisid) { defaults_[parentid]->CopyFromSpec(); *def = *defaults_[parentid]; defaults_[parentid]->childid.push_back(thisid); } def->parentid = parentid; def->name = name; def->childid.clear(); return def; }
O3
cpp
mjCModel::AddDefault(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %edx, 0xc(%rsp) movq %rsi, 0x18(%rsp) movq %rdi, %r14 movq 0xc88(%rdi), %rbp movq 0xc90(%rdi), %rbx subq %rbp, %rbx shrq $0x3, %rbx movl %ebx, 0x24(%rsp) testl %ebx, %ebx jle 0xfa271 movq 0x18(%rsp), %rax movq 0x8(%rax), %r12 movl %ebx, %r13d andl $0x7fffffff, %r13d # imm = 0x7FFFFFFF xorl %r15d, %r15d movq (%rbp,%r15,8), %rax cmpq %r12, 0x10(%rax) jne 0xfa269 testq %r12, %r12 je 0xfa2af movq 0x18(%rsp), %rcx movq (%rcx), %rsi movq 0x8(%rax), %rdi movq %r12, %rdx callq 0x2de30 testl %eax, %eax je 0xfa2af incq %r15 cmpq %r15, %r13 jne 0xfa241 movl $0x3368, %edi # imm = 0x3368 callq 0x2e670 movq %rax, %r12 movq %rax, %rdi callq 0x10f492 leaq 0xc88(%r14), %r15 movq %r12, 0x10(%rsp) movq 0xc90(%r14), %rsi cmpq 0xc98(%r14), %rsi je 0xfa2b6 movq %r12, (%rsi) addq $0x8, 0xc90(%r14) jmp 0xfa2c3 xorl %eax, %eax jmp 0xfa343 leaq 0x10(%rsp), %rdx movq %r15, %rdi callq 0x10ad58 movl 0xc(%rsp), %ebp testl %ebp, %ebp js 0xfa31a cmpl %ebp, %ebx jle 0xfa31a movl %ebp, %r14d movq (%r15), %rax movq (%rax,%r14,8), %rdi callq 0x10fffc movq (%r15), %rax movq (%rax,%r14,8), %rsi movq 0x10(%rsp), %rdi callq 0x10fe5a movq (%r15), %rax movq (%rax,%r14,8), %rdi movq 0x38(%rdi), %rsi cmpq 0x40(%rdi), %rsi je 0xfa30c movl %ebx, (%rsi) addq $0x4, %rsi movq %rsi, 0x38(%rdi) jmp 0xfa31a addq $0x30, %rdi leaq 0x24(%rsp), %rdx callq 0x2e8f0 movq 0x10(%rsp), %rdi movl %ebp, 0x28(%rdi) addq $0x8, %rdi movq 0x18(%rsp), %rsi callq 0x2e7c0 movq 0x10(%rsp), %rax movq 0x30(%rax), %rcx cmpq %rcx, 0x38(%rax) je 0xfa343 movq %rcx, 0x38(%rax) addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movl $0x3368, %esi # imm = 0x3368 movq %r12, %rdi callq 0x2ded0 movq %rbx, %rdi callq 0x2dee0
_ZN8mjCModel10AddDefaultENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov [rsp+58h+var_4C], edx mov [rsp+58h+var_40], rsi mov r14, rdi mov rbp, [rdi+0C88h] mov rbx, [rdi+0C90h] sub rbx, rbp shr rbx, 3 mov [rsp+58h+var_34], ebx test ebx, ebx jle short loc_FA271 mov rax, [rsp+58h+var_40] mov r12, [rax+8] mov r13d, ebx and r13d, 7FFFFFFFh xor r15d, r15d loc_FA241: mov rax, [rbp+r15*8+0] cmp [rax+10h], r12 jnz short loc_FA269 test r12, r12 jz short loc_FA2AF mov rcx, [rsp+58h+var_40] mov rsi, [rcx] mov rdi, [rax+8] mov rdx, r12 call _bcmp test eax, eax jz short loc_FA2AF loc_FA269: inc r15 cmp r13, r15 jnz short loc_FA241 loc_FA271: mov edi, 3368h; unsigned __int64 call __Znwm; operator new(ulong) mov r12, rax mov rdi, rax; this call _ZN6mjCDefC2Ev; mjCDef::mjCDef(void) lea r15, [r14+0C88h] mov [rsp+58h+var_48], r12 mov rsi, [r14+0C90h] cmp rsi, [r14+0C98h] jz short loc_FA2B6 mov [rsi], r12 add qword ptr [r14+0C90h], 8 jmp short loc_FA2C3 loc_FA2AF: xor eax, eax jmp loc_FA343 loc_FA2B6: lea rdx, [rsp+58h+var_48] mov rdi, r15 call _ZNSt6vectorIP6mjCDefSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<mjCDef *>::_M_realloc_insert<mjCDef * const&>(__gnu_cxx::__normal_iterator<mjCDef **,std::vector<mjCDef *>>,mjCDef * const&) loc_FA2C3: mov ebp, [rsp+58h+var_4C] test ebp, ebp js short loc_FA31A cmp ebx, ebp jle short loc_FA31A mov r14d, ebp mov rax, [r15] mov rdi, [rax+r14*8]; this call _ZN6mjCDef12CopyFromSpecEv; mjCDef::CopyFromSpec(void) mov rax, [r15] mov rsi, [rax+r14*8] mov rdi, [rsp+58h+var_48]; this call _ZN6mjCDefaSERKS_; mjCDef::operator=(mjCDef const&) mov rax, [r15] mov rdi, [rax+r14*8] mov rsi, [rdi+38h] cmp rsi, [rdi+40h] jz short loc_FA30C mov [rsi], ebx add rsi, 4 mov [rdi+38h], rsi jmp short loc_FA31A loc_FA30C: add rdi, 30h ; '0' lea rdx, [rsp+58h+var_34] call __ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&) loc_FA31A: mov rdi, [rsp+58h+var_48] mov [rdi+28h], ebp add rdi, 8 mov rsi, [rsp+58h+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) mov rax, [rsp+58h+var_48] mov rcx, [rax+30h] cmp [rax+38h], rcx jz short loc_FA343 mov [rax+38h], rcx loc_FA343: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov esi, 3368h; unsigned __int64 mov rdi, r12; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, rbx call __Unwind_Resume
mjCDef * mjCModel::AddDefault(_QWORD *a1, _QWORD *a2, int a3) { long long v3; // rbp unsigned long long v4; // rbx long long v5; // r12 long long v6; // r15 long long v7; // rax mjCDef *v8; // r12 _QWORD *v9; // r15 mjCDef **v10; // rsi mjCDef *result; // rax long long v12; // rdi _DWORD *v13; // rsi mjCDef *v14; // rdi long long v15; // rcx mjCDef *v17; // [rsp+10h] [rbp-48h] BYREF _QWORD *v18; // [rsp+18h] [rbp-40h] _DWORD v19[13]; // [rsp+24h] [rbp-34h] BYREF v18 = a2; v3 = a1[401]; v4 = (unsigned long long)(a1[402] - v3) >> 3; v19[0] = v4; if ( (int)v4 <= 0 ) { LABEL_7: v8 = (mjCDef *)operator new(0x3368uLL); mjCDef::mjCDef(v8); v9 = a1 + 401; v17 = v8; v10 = (mjCDef **)a1[402]; if ( v10 == (mjCDef **)a1[403] ) { std::vector<mjCDef *>::_M_realloc_insert<mjCDef * const&>(a1 + 401, v10, &v17); } else { *v10 = v8; a1[402] += 8LL; } if ( a3 >= 0 && (int)v4 > a3 ) { mjCDef::CopyFromSpec(*(mjCDef **)(*v9 + 8LL * (unsigned int)a3)); mjCDef::operator=(v17); v12 = *(_QWORD *)(*v9 + 8LL * (unsigned int)a3); v13 = *(_DWORD **)(v12 + 56); if ( v13 == *(_DWORD **)(v12 + 64) ) { std::vector<int>::_M_realloc_insert<int const&>(v12 + 48, v13, v19); } else { *v13 = v4; *(_QWORD *)(v12 + 56) = v13 + 1; } } v14 = v17; *((_DWORD *)v17 + 10) = a3; std::string::_M_assign((char *)v14 + 8); result = v17; v15 = *((_QWORD *)v17 + 6); if ( *((_QWORD *)v17 + 7) != v15 ) *((_QWORD *)v17 + 7) = v15; } else { v5 = v18[1]; v6 = 0LL; while ( 1 ) { v7 = *(_QWORD *)(v3 + 8 * v6); if ( *(_QWORD *)(v7 + 16) == v5 && (!v5 || !(unsigned int)bcmp(*(_QWORD *)(v7 + 8), *v18, v5)) ) return 0LL; if ( (v4 & 0x7FFFFFFF) == ++v6 ) goto LABEL_7; } } return result; }
AddDefault: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV dword ptr [RSP + 0xc],EDX MOV qword ptr [RSP + 0x18],RSI MOV R14,RDI MOV RBP,qword ptr [RDI + 0xc88] MOV RBX,qword ptr [RDI + 0xc90] SUB RBX,RBP SHR RBX,0x3 MOV dword ptr [RSP + 0x24],EBX TEST EBX,EBX JLE 0x001fa271 MOV RAX,qword ptr [RSP + 0x18] MOV R12,qword ptr [RAX + 0x8] MOV R13D,EBX AND R13D,0x7fffffff XOR R15D,R15D LAB_001fa241: MOV RAX,qword ptr [RBP + R15*0x8] CMP qword ptr [RAX + 0x10],R12 JNZ 0x001fa269 TEST R12,R12 JZ 0x001fa2af MOV RCX,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RCX] MOV RDI,qword ptr [RAX + 0x8] MOV RDX,R12 CALL 0x0012de30 TEST EAX,EAX JZ 0x001fa2af LAB_001fa269: INC R15 CMP R13,R15 JNZ 0x001fa241 LAB_001fa271: MOV EDI,0x3368 CALL 0x0012e670 MOV R12,RAX LAB_001fa27e: MOV RDI,RAX CALL 0x0020f492 LAB_001fa286: LEA R15,[R14 + 0xc88] MOV qword ptr [RSP + 0x10],R12 MOV RSI,qword ptr [R14 + 0xc90] CMP RSI,qword ptr [R14 + 0xc98] JZ 0x001fa2b6 MOV qword ptr [RSI],R12 ADD qword ptr [R14 + 0xc90],0x8 JMP 0x001fa2c3 LAB_001fa2af: XOR EAX,EAX JMP 0x001fa343 LAB_001fa2b6: LEA RDX,[RSP + 0x10] MOV RDI,R15 CALL 0x0020ad58 LAB_001fa2c3: MOV EBP,dword ptr [RSP + 0xc] TEST EBP,EBP JS 0x001fa31a CMP EBX,EBP JLE 0x001fa31a MOV R14D,EBP MOV RAX,qword ptr [R15] MOV RDI,qword ptr [RAX + R14*0x8] CALL 0x0020fffc MOV RAX,qword ptr [R15] MOV RSI,qword ptr [RAX + R14*0x8] MOV RDI,qword ptr [RSP + 0x10] CALL 0x0020fe5a MOV RAX,qword ptr [R15] MOV RDI,qword ptr [RAX + R14*0x8] MOV RSI,qword ptr [RDI + 0x38] CMP RSI,qword ptr [RDI + 0x40] JZ 0x001fa30c MOV dword ptr [RSI],EBX ADD RSI,0x4 MOV qword ptr [RDI + 0x38],RSI JMP 0x001fa31a LAB_001fa30c: ADD RDI,0x30 LEA RDX,[RSP + 0x24] CALL 0x0012e8f0 LAB_001fa31a: MOV RDI,qword ptr [RSP + 0x10] MOV dword ptr [RDI + 0x28],EBP ADD RDI,0x8 MOV RSI,qword ptr [RSP + 0x18] CALL 0x0012e7c0 MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RAX + 0x30] CMP qword ptr [RAX + 0x38],RCX JZ 0x001fa343 MOV qword ptr [RAX + 0x38],RCX LAB_001fa343: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* mjCModel::AddDefault(std::__cxx11::string, int) */ mjCDef * __thiscall mjCModel::AddDefault(mjCModel *this,int8 *param_2,uint param_3) { vector<mjCDef*,std::allocator<mjCDef*>> *pvVar1; long lVar2; size_t __n; long lVar3; int8 *puVar4; uint *puVar5; int iVar6; mjCDef *this_00; uint uVar7; ulong uVar8; mjCDef *local_48; int8 *local_40; uint local_34; lVar2 = *(long *)(this + 0xc88); uVar7 = (uint)((ulong)(*(long *)(this + 0xc90) - lVar2) >> 3); local_40 = param_2; local_34 = uVar7; if (0 < (int)uVar7) { __n = param_2[1]; uVar8 = 0; do { lVar3 = *(long *)(lVar2 + uVar8 * 8); if ((*(size_t *)(lVar3 + 0x10) == __n) && ((__n == 0 || (iVar6 = bcmp(*(void **)(lVar3 + 8),(void *)*local_40,__n), iVar6 == 0)))) { return (mjCDef *)0x0; } uVar8 = uVar8 + 1; } while ((uVar7 & 0x7fffffff) != uVar8); } this_00 = (mjCDef *)operator_new(0x3368); /* try { // try from 001fa27e to 001fa285 has its CatchHandler @ 001fa352 */ mjCDef::mjCDef(this_00); pvVar1 = (vector<mjCDef*,std::allocator<mjCDef*>> *)(this + 0xc88); puVar4 = *(int8 **)(this + 0xc90); local_48 = this_00; if (puVar4 == *(int8 **)(this + 0xc98)) { std::vector<mjCDef*,std::allocator<mjCDef*>>::_M_realloc_insert<mjCDef*const&> (pvVar1,puVar4,&local_48); } else { *puVar4 = this_00; *(long *)(this + 0xc90) = *(long *)(this + 0xc90) + 8; } if ((-1 < (int)param_3) && ((int)param_3 < (int)uVar7)) { uVar8 = (ulong)param_3; mjCDef::CopyFromSpec(*(mjCDef **)(*(long *)pvVar1 + uVar8 * 8)); mjCDef::operator=(local_48,*(mjCDef **)(*(long *)pvVar1 + uVar8 * 8)); lVar2 = *(long *)(*(long *)pvVar1 + uVar8 * 8); puVar5 = *(uint **)(lVar2 + 0x38); if (puVar5 == *(uint **)(lVar2 + 0x40)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&> ((vector<int,std::allocator<int>> *)(lVar2 + 0x30),puVar5,&local_34); } else { *puVar5 = uVar7; *(uint **)(lVar2 + 0x38) = puVar5 + 1; } } *(uint *)(local_48 + 0x28) = param_3; std::__cxx11::string::_M_assign((string *)(local_48 + 8)); if (*(long *)(local_48 + 0x38) != *(long *)(local_48 + 0x30)) { *(long *)(local_48 + 0x38) = *(long *)(local_48 + 0x30); } return local_48; }
49,863
lunasvg::Length::parse(std::basic_string_view<char, std::char_traits<char>>, lunasvg::LengthNegativeMode)
dmazzella[P]pylunasvg/lunasvg/source/svgproperty.cpp
bool Length::parse(std::string_view input, LengthNegativeMode mode) { float value = 0.f; stripLeadingAndTrailingSpaces(input); if(!parseNumber(input, value)) return false; if(value < 0.f && mode == LengthNegativeMode::Forbid) return false; if(input.empty()) { m_value = value; m_units = LengthUnits::None; return true; } constexpr auto dpi = 96.f; switch(input.front()) { case '%': m_value = value; m_units = LengthUnits::Percent; input.remove_prefix(1); break; case 'p': input.remove_prefix(1); if(input.empty()) return false; else if(input.front() == 'x') m_value = value; else if(input.front() == 'c') m_value = value * dpi / 6.f; else if(input.front() == 't') m_value = value * dpi / 72.f; else return false; m_units = LengthUnits::Px; input.remove_prefix(1); break; case 'i': input.remove_prefix(1); if(input.empty()) return false; else if(input.front() == 'n') m_value = value * dpi; else return false; m_units = LengthUnits::Px; input.remove_prefix(1); break; case 'c': input.remove_prefix(1); if(input.empty()) return false; else if(input.front() == 'm') m_value = value * dpi / 2.54f; else return false; m_units = LengthUnits::Px; input.remove_prefix(1); break; case 'm': input.remove_prefix(1); if(input.empty()) return false; else if(input.front() == 'm') m_value = value * dpi / 25.4f; else return false; m_units = LengthUnits::Px; input.remove_prefix(1); break; case 'e': input.remove_prefix(1); if(input.empty()) return false; else if(input.front() == 'm') m_units = LengthUnits::Em; else if(input.front() == 'x') m_units = LengthUnits::Ex; else return false; m_value = value; input.remove_prefix(1); break; default: return false; } return input.empty(); }
O1
cpp
lunasvg::Length::parse(std::basic_string_view<char, std::char_traits<char>>, lunasvg::LengthNegativeMode): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movl %ecx, %ebp movq %rdi, %rbx movq %rsp, %r14 movq %rsi, (%r14) movq %rdx, 0x8(%r14) leaq 0x14(%rsp), %r15 movl $0x0, (%r15) movq %r14, %rdi callq 0x171df movq %r14, %rdi movq %r15, %rsi callq 0x172e2 testb %al, %al je 0x1f622 movss 0x14(%rsp), %xmm0 cmpb $0x1, %bpl jne 0x1f62f xorps %xmm1, %xmm1 ucomiss %xmm0, %xmm1 jbe 0x1f62f xorl %eax, %eax addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq (%rsp), %rcx testq %rcx, %rcx je 0x1f68b movq 0x8(%rsp), %rdx movzbl (%rdx), %esi xorl %eax, %eax cmpl $0x68, %esi jg 0x1f697 cmpl $0x25, %esi je 0x1f6fa cmpl $0x63, %esi je 0x1f741 cmpl $0x65, %esi jne 0x1f624 leaq 0x1(%rdx), %rax movq %rax, 0x8(%rsp) movq %rcx, %rsi decq %rsi movq %rsi, (%rsp) je 0x1f622 movzbl (%rax), %eax cmpl $0x6d, %eax je 0x1f7a9 cmpl $0x78, %eax jne 0x1f622 movb $0x4, %al jmp 0x1f7ab movss %xmm0, (%rbx) movb $0x0, 0x4(%rbx) movb $0x1, %al jmp 0x1f624 cmpl $0x69, %esi je 0x1f712 cmpl $0x6d, %esi je 0x1f775 cmpl $0x70, %esi jne 0x1f624 leaq 0x1(%rdx), %rax movq %rax, 0x8(%rsp) movq %rcx, %rsi decq %rsi movq %rsi, (%rsp) je 0x1f622 movzbl (%rax), %eax cmpl $0x78, %eax je 0x1f7c4 cmpl $0x74, %eax je 0x1f7b4 cmpl $0x63, %eax jne 0x1f622 mulss 0x2481b(%rip), %xmm0 # 0x43f08 divss 0x24823(%rip), %xmm0 # 0x43f18 jmp 0x1f7c4 movss %xmm0, (%rbx) movb $0x1, 0x4(%rbx) incq %rdx movq %rdx, 0x8(%rsp) decq %rcx jmp 0x1f7d9 leaq 0x1(%rdx), %rax movq %rax, 0x8(%rsp) movq %rcx, %rsi decq %rsi movq %rsi, (%rsp) je 0x1f622 cmpb $0x6e, (%rax) jne 0x1f622 mulss 0x247cc(%rip), %xmm0 # 0x43f08 jmp 0x1f7c4 leaq 0x1(%rdx), %rax movq %rax, 0x8(%rsp) movq %rcx, %rsi decq %rsi movq %rsi, (%rsp) je 0x1f622 cmpb $0x6d, (%rax) jne 0x1f622 mulss 0x2479d(%rip), %xmm0 # 0x43f08 divss 0x2479d(%rip), %xmm0 # 0x43f10 jmp 0x1f7c4 leaq 0x1(%rdx), %rax movq %rax, 0x8(%rsp) movq %rcx, %rsi decq %rsi movq %rsi, (%rsp) je 0x1f622 cmpb $0x6d, (%rax) jne 0x1f622 mulss 0x24769(%rip), %xmm0 # 0x43f08 divss 0x24765(%rip), %xmm0 # 0x43f0c jmp 0x1f7c4 movb $0x3, %al movb %al, 0x4(%rbx) movss %xmm0, (%rbx) jmp 0x1f7cc mulss 0x2474c(%rip), %xmm0 # 0x43f08 divss 0x24750(%rip), %xmm0 # 0x43f14 movss %xmm0, (%rbx) movb $0x2, 0x4(%rbx) addq $0x2, %rdx movq %rdx, 0x8(%rsp) addq $-0x2, %rcx movq %rcx, (%rsp) cmpq $0x0, (%rsp) sete %al jmp 0x1f624
_ZN7lunasvg6Length5parseESt17basic_string_viewIcSt11char_traitsIcEENS_18LengthNegativeModeE: push rbp push r15 push r14 push rbx sub rsp, 18h mov ebp, ecx mov rbx, rdi mov r14, rsp mov [r14], rsi mov [r14+8], rdx lea r15, [rsp+38h+var_24] mov dword ptr [r15], 0 mov rdi, r14 call _ZN7lunasvg29stripLeadingAndTrailingSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::stripLeadingAndTrailingSpaces(std::string_view &) mov rdi, r14 mov rsi, r15 call _ZN7lunasvg11parseNumberIfEEbRSt17basic_string_viewIcSt11char_traitsIcEERT_; lunasvg::parseNumber<float>(std::string_view &,float &) test al, al jz short loc_1F622 movss xmm0, [rsp+38h+var_24] cmp bpl, 1 jnz short loc_1F62F xorps xmm1, xmm1 ucomiss xmm1, xmm0 jbe short loc_1F62F loc_1F622: xor eax, eax loc_1F624: add rsp, 18h pop rbx pop r14 pop r15 pop rbp retn loc_1F62F: mov rcx, [rsp+38h+var_38] test rcx, rcx jz short loc_1F68B mov rdx, [rsp+38h+var_30] movzx esi, byte ptr [rdx] xor eax, eax cmp esi, 68h ; 'h' jg short loc_1F697 cmp esi, 25h ; '%' jz loc_1F6FA cmp esi, 63h ; 'c' jz loc_1F741 cmp esi, 65h ; 'e' jnz short loc_1F624 lea rax, [rdx+1] mov [rsp+38h+var_30], rax mov rsi, rcx dec rsi mov [rsp+38h+var_38], rsi jz short loc_1F622 movzx eax, byte ptr [rax] cmp eax, 6Dh ; 'm' jz loc_1F7A9 cmp eax, 78h ; 'x' jnz short loc_1F622 mov al, 4 jmp loc_1F7AB loc_1F68B: movss dword ptr [rbx], xmm0 mov byte ptr [rbx+4], 0 mov al, 1 jmp short loc_1F624 loc_1F697: cmp esi, 69h ; 'i' jz short loc_1F712 cmp esi, 6Dh ; 'm' jz loc_1F775 cmp esi, 70h ; 'p' jnz loc_1F624 lea rax, [rdx+1] mov [rsp+38h+var_30], rax mov rsi, rcx dec rsi mov [rsp+38h+var_38], rsi jz loc_1F622 movzx eax, byte ptr [rax] cmp eax, 78h ; 'x' jz loc_1F7C4 cmp eax, 74h ; 't' jz loc_1F7B4 cmp eax, 63h ; 'c' jnz loc_1F622 mulss xmm0, cs:dword_43F08 divss xmm0, cs:dword_43F18 jmp loc_1F7C4 loc_1F6FA: movss dword ptr [rbx], xmm0 mov byte ptr [rbx+4], 1 inc rdx mov [rsp+38h+var_30], rdx dec rcx jmp loc_1F7D9 loc_1F712: lea rax, [rdx+1] mov [rsp+38h+var_30], rax mov rsi, rcx dec rsi mov [rsp+38h+var_38], rsi jz loc_1F622 cmp byte ptr [rax], 6Eh ; 'n' jnz loc_1F622 mulss xmm0, cs:dword_43F08 jmp loc_1F7C4 loc_1F741: lea rax, [rdx+1] mov [rsp+38h+var_30], rax mov rsi, rcx dec rsi mov [rsp+38h+var_38], rsi jz loc_1F622 cmp byte ptr [rax], 6Dh ; 'm' jnz loc_1F622 mulss xmm0, cs:dword_43F08 divss xmm0, cs:dword_43F10 jmp short loc_1F7C4 loc_1F775: lea rax, [rdx+1] mov [rsp+38h+var_30], rax mov rsi, rcx dec rsi mov [rsp+38h+var_38], rsi jz loc_1F622 cmp byte ptr [rax], 6Dh ; 'm' jnz loc_1F622 mulss xmm0, cs:dword_43F08 divss xmm0, cs:dword_43F0C jmp short loc_1F7C4 loc_1F7A9: mov al, 3 loc_1F7AB: mov [rbx+4], al movss dword ptr [rbx], xmm0 jmp short loc_1F7CC loc_1F7B4: mulss xmm0, cs:dword_43F08 divss xmm0, cs:dword_43F14 loc_1F7C4: movss dword ptr [rbx], xmm0 mov byte ptr [rbx+4], 2 loc_1F7CC: add rdx, 2 mov [rsp+38h+var_30], rdx add rcx, 0FFFFFFFFFFFFFFFEh loc_1F7D9: mov [rsp+38h+var_38], rcx cmp [rsp+38h+var_38], 0 setz al jmp loc_1F624
char lunasvg::Length::parse(long long a1, long long a2, unsigned __int8 *a3, char a4) { float v5; // xmm0_4 char result; // al long long v7; // rcx unsigned __int8 *v8; // rdx unsigned int v9; // esi int v10; // eax char v11; // al int v12; // eax long long v13; // rcx unsigned __int8 *v14; // rax unsigned __int8 *v15; // rax unsigned __int8 *v16; // rax long long v17; // [rsp+0h] [rbp-38h] BYREF unsigned __int8 *v18; // [rsp+8h] [rbp-30h] float v19[9]; // [rsp+14h] [rbp-24h] BYREF v17 = a2; v18 = a3; v19[0] = 0.0; lunasvg::stripLeadingAndTrailingSpaces(&v17); if ( !lunasvg::parseNumber<float>(&v17, v19) ) return 0; v5 = v19[0]; if ( a4 == 1 && v19[0] < 0.0 ) return 0; v7 = v17; if ( !v17 ) { *(float *)a1 = v19[0]; *(_BYTE *)(a1 + 4) = 0; return 1; } v8 = v18; v9 = *v18; result = 0; if ( v9 > 0x68 ) { switch ( v9 ) { case 'i': v14 = ++v18; --v17; if ( v7 == 1 || *v14 != 110 ) return 0; v5 = v19[0] * 96.0; break; case 'm': v16 = ++v18; --v17; if ( v7 == 1 || *v16 != 109 ) return 0; v5 = (float)(v19[0] * 96.0) / 25.4; break; case 'p': ++v18; --v17; if ( v7 == 1 ) return 0; v12 = v8[1]; if ( v12 != 120 ) { if ( v12 == 116 ) { v5 = (float)(v19[0] * 96.0) / 72.0; } else { if ( v12 != 99 ) return 0; v5 = (float)(v19[0] * 96.0) / 6.0; } } break; default: return result; } LABEL_37: *(float *)a1 = v5; *(_BYTE *)(a1 + 4) = 2; goto LABEL_38; } switch ( v9 ) { case '%': *(float *)a1 = v19[0]; *(_BYTE *)(a1 + 4) = 1; v18 = v8 + 1; v13 = v7 - 1; return v13 == 0; case 'c': v15 = ++v18; --v17; if ( v7 == 1 || *v15 != 109 ) return 0; v5 = (float)(v19[0] * 96.0) / 2.54; goto LABEL_37; case 'e': ++v18; --v17; if ( v7 != 1 ) { v10 = v8[1]; if ( v10 == 109 ) { v11 = 3; goto LABEL_35; } if ( v10 == 120 ) { v11 = 4; LABEL_35: *(_BYTE *)(a1 + 4) = v11; *(float *)a1 = v5; LABEL_38: v18 = v8 + 2; v13 = v7 - 2; return v13 == 0; } } return 0; } return result; }
parse: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV EBP,ECX MOV RBX,RDI MOV R14,RSP MOV qword ptr [R14],RSI MOV qword ptr [R14 + 0x8],RDX LEA R15,[RSP + 0x14] MOV dword ptr [R15],0x0 MOV RDI,R14 CALL 0x001171df MOV RDI,R14 MOV RSI,R15 CALL 0x001172e2 TEST AL,AL JZ 0x0011f622 MOVSS XMM0,dword ptr [RSP + 0x14] CMP BPL,0x1 JNZ 0x0011f62f XORPS XMM1,XMM1 UCOMISS XMM1,XMM0 JBE 0x0011f62f LAB_0011f622: XOR EAX,EAX LAB_0011f624: ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP RET LAB_0011f62f: MOV RCX,qword ptr [RSP] TEST RCX,RCX JZ 0x0011f68b MOV RDX,qword ptr [RSP + 0x8] MOVZX ESI,byte ptr [RDX] XOR EAX,EAX CMP ESI,0x68 JG 0x0011f697 CMP ESI,0x25 JZ 0x0011f6fa CMP ESI,0x63 JZ 0x0011f741 CMP ESI,0x65 JNZ 0x0011f624 LEA RAX,[RDX + 0x1] MOV qword ptr [RSP + 0x8],RAX MOV RSI,RCX DEC RSI MOV qword ptr [RSP],RSI JZ 0x0011f622 MOVZX EAX,byte ptr [RAX] CMP EAX,0x6d JZ 0x0011f7a9 CMP EAX,0x78 JNZ 0x0011f622 MOV AL,0x4 JMP 0x0011f7ab LAB_0011f68b: MOVSS dword ptr [RBX],XMM0 MOV byte ptr [RBX + 0x4],0x0 MOV AL,0x1 JMP 0x0011f624 LAB_0011f697: CMP ESI,0x69 JZ 0x0011f712 CMP ESI,0x6d JZ 0x0011f775 CMP ESI,0x70 JNZ 0x0011f624 LEA RAX,[RDX + 0x1] MOV qword ptr [RSP + 0x8],RAX MOV RSI,RCX DEC RSI MOV qword ptr [RSP],RSI JZ 0x0011f622 MOVZX EAX,byte ptr [RAX] CMP EAX,0x78 JZ 0x0011f7c4 CMP EAX,0x74 JZ 0x0011f7b4 CMP EAX,0x63 JNZ 0x0011f622 MULSS XMM0,dword ptr [0x00143f08] DIVSS XMM0,dword ptr [0x00143f18] JMP 0x0011f7c4 LAB_0011f6fa: MOVSS dword ptr [RBX],XMM0 MOV byte ptr [RBX + 0x4],0x1 INC RDX MOV qword ptr [RSP + 0x8],RDX DEC RCX JMP 0x0011f7d9 LAB_0011f712: LEA RAX,[RDX + 0x1] MOV qword ptr [RSP + 0x8],RAX MOV RSI,RCX DEC RSI MOV qword ptr [RSP],RSI JZ 0x0011f622 CMP byte ptr [RAX],0x6e JNZ 0x0011f622 MULSS XMM0,dword ptr [0x00143f08] JMP 0x0011f7c4 LAB_0011f741: LEA RAX,[RDX + 0x1] MOV qword ptr [RSP + 0x8],RAX MOV RSI,RCX DEC RSI MOV qword ptr [RSP],RSI JZ 0x0011f622 CMP byte ptr [RAX],0x6d JNZ 0x0011f622 MULSS XMM0,dword ptr [0x00143f08] DIVSS XMM0,dword ptr [0x00143f10] JMP 0x0011f7c4 LAB_0011f775: LEA RAX,[RDX + 0x1] MOV qword ptr [RSP + 0x8],RAX MOV RSI,RCX DEC RSI MOV qword ptr [RSP],RSI JZ 0x0011f622 CMP byte ptr [RAX],0x6d JNZ 0x0011f622 MULSS XMM0,dword ptr [0x00143f08] DIVSS XMM0,dword ptr [0x00143f0c] JMP 0x0011f7c4 LAB_0011f7a9: MOV AL,0x3 LAB_0011f7ab: MOV byte ptr [RBX + 0x4],AL MOVSS dword ptr [RBX],XMM0 JMP 0x0011f7cc LAB_0011f7b4: MULSS XMM0,dword ptr [0x00143f08] DIVSS XMM0,dword ptr [0x00143f14] LAB_0011f7c4: MOVSS dword ptr [RBX],XMM0 MOV byte ptr [RBX + 0x4],0x2 LAB_0011f7cc: ADD RDX,0x2 MOV qword ptr [RSP + 0x8],RDX ADD RCX,-0x2 LAB_0011f7d9: MOV qword ptr [RSP],RCX CMP qword ptr [RSP],0x0 SETZ AL JMP 0x0011f624
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* lunasvg::Length::parse(std::basic_string_view<char, std::char_traits<char> >, lunasvg::LengthNegativeMode) */ bool lunasvg::Length::parse(float *param_1,long param_2,byte *param_3,char param_4) { byte bVar1; bool bVar2; int1 uVar3; long local_38; byte *local_30; float local_24; local_24 = 0.0; local_38 = param_2; local_30 = param_3; stripLeadingAndTrailingSpaces((basic_string_view *)&local_38); bVar2 = parseNumber<float>((basic_string_view *)&local_38,&local_24); if (!bVar2) { return false; } if ((param_4 == '\x01') && (local_24 < 0.0)) { return false; } if (local_38 == 0) { *param_1 = local_24; *(int1 *)(param_1 + 1) = 0; return true; } bVar1 = *local_30; if (bVar1 < 0x69) { if (bVar1 == 0x25) { *param_1 = local_24; *(int1 *)(param_1 + 1) = 1; local_38 = local_38 + -1; goto LAB_0011f7d9; } if (bVar1 == 99) { if (local_38 == 1) { return false; } if (local_30[1] != 0x6d) { return false; } local_24 = (local_24 * _DAT_00143f08) / _DAT_00143f10; goto LAB_0011f7c4; } if (bVar1 != 0x65) { return false; } if (local_38 == 1) { return false; } if (local_30[1] == 0x6d) { uVar3 = 3; } else { if (local_30[1] != 0x78) { return false; } uVar3 = 4; } *(int1 *)(param_1 + 1) = uVar3; *param_1 = local_24; } else { if (bVar1 == 0x69) { if (local_38 == 1) { return false; } if (local_30[1] != 0x6e) { return false; } local_24 = local_24 * _DAT_00143f08; } else if (bVar1 == 0x6d) { if (local_38 == 1) { return false; } if (local_30[1] != 0x6d) { return false; } local_24 = (local_24 * _DAT_00143f08) / _DAT_00143f0c; } else { if (bVar1 != 0x70) { return false; } if (local_38 == 1) { return false; } bVar1 = local_30[1]; if (bVar1 != 0x78) { if (bVar1 == 0x74) { local_24 = (local_24 * _DAT_00143f08) / _DAT_00143f14; } else { if (bVar1 != 99) { return false; } local_24 = (local_24 * _DAT_00143f08) / _DAT_00143f18; } } } LAB_0011f7c4: *param_1 = local_24; *(int1 *)(param_1 + 1) = 2; } local_38 = local_38 + -2; LAB_0011f7d9: return local_38 == 0; }
49,864
ma_init
eloqsql/libmariadb/libmariadb/ma_init.c
void ma_init(void) { if (ma_init_done) return; ma_init_done=1; { #ifdef _WIN32 my_win_init(); #endif return; } }
O0
c
ma_init: pushq %rbp movq %rsp, %rbp leaq 0x3d646(%rip), %rax # 0x6a8f1 cmpb $0x0, (%rax) je 0x2d2b2 jmp 0x2d2bc leaq 0x3d638(%rip), %rax # 0x6a8f1 movb $0x1, (%rax) popq %rbp retq nop
ma_init: push rbp mov rbp, rsp lea rax, ma_init_done cmp byte ptr [rax], 0 jz short loc_2D2B2 jmp short loc_2D2BC loc_2D2B2: lea rax, ma_init_done mov byte ptr [rax], 1 loc_2D2BC: pop rbp retn
void *ma_init() { void *result; // rax result = &ma_init_done; if ( !ma_init_done ) { result = &ma_init_done; ma_init_done = 1; } return result; }
ma_init: PUSH RBP MOV RBP,RSP LEA RAX,[0x16a8f1] CMP byte ptr [RAX],0x0 JZ 0x0012d2b2 JMP 0x0012d2bc LAB_0012d2b2: LEA RAX,[0x16a8f1] MOV byte ptr [RAX],0x1 LAB_0012d2bc: POP RBP RET
void ma_init(void) { if (ma_init_done == '\0') { ma_init_done = '\x01'; } return; }
49,865
JS_GetPropertyInt64
bluesky950520[P]quickjs/quickjs.c
JSValue JS_GetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx) { JSAtom prop; JSValue val; if (likely(JS_VALUE_GET_TAG(obj) == JS_TAG_OBJECT && (uint64_t)idx <= INT32_MAX)) { /* fast path for array and typed array access */ JSObject *p = JS_VALUE_GET_OBJ(obj); if (js_get_fast_array_element(ctx, p, idx, &val)) return val; } prop = JS_NewAtomInt64(ctx, idx); if (prop == JS_ATOM_NULL) return JS_EXCEPTION; val = JS_GetProperty(ctx, obj, prop); JS_FreeAtom(ctx, prop); return val; }
O0
c
JS_GetPropertyInt64: subq $0x68, %rsp movq %rsi, 0x48(%rsp) movq %rdx, 0x50(%rsp) movq %rdi, 0x40(%rsp) movq %rcx, 0x38(%rsp) movq 0x50(%rsp), %rax movl %eax, %ecx xorl %eax, %eax cmpl $-0x1, %ecx movb %al, 0x7(%rsp) jne 0x3022a cmpq $0x7fffffff, 0x38(%rsp) # imm = 0x7FFFFFFF setbe %al movb %al, 0x7(%rsp) movb 0x7(%rsp), %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x30284 movq 0x48(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x40(%rsp), %rdi movq 0x18(%rsp), %rsi movq 0x38(%rsp), %rax movl %eax, %edx leaq 0x20(%rsp), %rcx callq 0x30320 cmpl $0x0, %eax je 0x30282 movq 0x20(%rsp), %rax movq %rax, 0x58(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x60(%rsp) jmp 0x30309 jmp 0x30284 movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi callq 0x30b10 movl %eax, 0x34(%rsp) cmpl $0x0, 0x34(%rsp) jne 0x302b1 movl $0x0, 0x58(%rsp) movq $0x6, 0x60(%rsp) jmp 0x30309 movq 0x40(%rsp), %rdi movl 0x34(%rsp), %ecx movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx callq 0x28ac0 movq %rax, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x40(%rsp), %rdi movl 0x34(%rsp), %esi callq 0x27d80 movq 0x20(%rsp), %rax movq %rax, 0x58(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x58(%rsp), %rax movq 0x60(%rsp), %rdx addq $0x68, %rsp retq nopl (%rax,%rax)
JS_GetPropertyInt64: sub rsp, 68h mov [rsp+68h+var_20], rsi mov [rsp+68h+var_18], rdx mov [rsp+68h+var_28], rdi mov [rsp+68h+var_30], rcx mov rax, [rsp+68h+var_18] mov ecx, eax xor eax, eax cmp ecx, 0FFFFFFFFh mov [rsp+68h+var_61], al jnz short loc_3022A cmp [rsp+68h+var_30], 7FFFFFFFh setbe al mov [rsp+68h+var_61], al loc_3022A: mov al, [rsp+68h+var_61] xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_30284 mov rax, [rsp+68h+var_20] mov [rsp+68h+var_50], rax mov rdi, [rsp+68h+var_28] mov rsi, [rsp+68h+var_50] mov rax, [rsp+68h+var_30] mov edx, eax lea rcx, [rsp+68h+var_48] call js_get_fast_array_element cmp eax, 0 jz short loc_30282 mov rax, [rsp+68h+var_48] mov [rsp+68h+var_10], rax mov rax, [rsp+68h+var_40] mov [rsp+68h+var_8], rax jmp loc_30309 loc_30282: jmp short $+2 loc_30284: mov rdi, [rsp+68h+var_28] mov rsi, [rsp+68h+var_30] call JS_NewAtomInt64 mov [rsp+68h+var_34], eax cmp [rsp+68h+var_34], 0 jnz short loc_302B1 mov dword ptr [rsp+68h+var_10], 0 mov [rsp+68h+var_8], 6 jmp short loc_30309 loc_302B1: mov rdi, [rsp+68h+var_28] mov ecx, [rsp+68h+var_34] mov rsi, [rsp+68h+var_20] mov rdx, [rsp+68h+var_18] call JS_GetProperty mov [rsp+68h+var_60], rax mov [rsp+68h+var_58], rdx mov rax, [rsp+68h+var_60] mov [rsp+68h+var_48], rax mov rax, [rsp+68h+var_58] mov [rsp+68h+var_40], rax mov rdi, [rsp+68h+var_28] mov esi, [rsp+68h+var_34] call JS_FreeAtom mov rax, [rsp+68h+var_48] mov [rsp+68h+var_10], rax mov rax, [rsp+68h+var_40] mov [rsp+68h+var_8], rax loc_30309: mov rax, [rsp+68h+var_10] mov rdx, [rsp+68h+var_8] add rsp, 68h retn
long long JS_GetPropertyInt64(long long a1, long long a2, long long a3, unsigned long long a4) { long long v4; // rdx bool v6; // [rsp+7h] [rbp-61h] long long Property; // [rsp+20h] [rbp-48h] BYREF long long v8; // [rsp+28h] [rbp-40h] unsigned int v9; // [rsp+34h] [rbp-34h] unsigned long long v10; // [rsp+38h] [rbp-30h] long long v11; // [rsp+40h] [rbp-28h] long long v12; // [rsp+48h] [rbp-20h] long long v13; // [rsp+50h] [rbp-18h] long long v14; // [rsp+58h] [rbp-10h] long long v15; // [rsp+60h] [rbp-8h] v12 = a2; v13 = a3; v11 = a1; v10 = a4; v6 = 0; if ( (_DWORD)a3 == -1 ) v6 = v10 <= 0x7FFFFFFF; if ( v6 && (unsigned int)js_get_fast_array_element(v11, v12, (unsigned int)v10, &Property) ) { v14 = Property; v15 = v8; } else { v9 = JS_NewAtomInt64(v11, v10); if ( v9 ) { Property = JS_GetProperty(v11, v12, v13, v9); v8 = v4; JS_FreeAtom(v11, v9); v14 = Property; v15 = v8; } else { LODWORD(v14) = 0; v15 = 6LL; } } return v14; }
JS_GetPropertyInt64: SUB RSP,0x68 MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RSP + 0x40],RDI MOV qword ptr [RSP + 0x38],RCX MOV RAX,qword ptr [RSP + 0x50] MOV ECX,EAX XOR EAX,EAX CMP ECX,-0x1 MOV byte ptr [RSP + 0x7],AL JNZ 0x0013022a CMP qword ptr [RSP + 0x38],0x7fffffff SETBE AL MOV byte ptr [RSP + 0x7],AL LAB_0013022a: MOV AL,byte ptr [RSP + 0x7] XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00130284 MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x38] MOV EDX,EAX LEA RCX,[RSP + 0x20] CALL 0x00130320 CMP EAX,0x0 JZ 0x00130282 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x60],RAX JMP 0x00130309 LAB_00130282: JMP 0x00130284 LAB_00130284: MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x38] CALL 0x00130b10 MOV dword ptr [RSP + 0x34],EAX CMP dword ptr [RSP + 0x34],0x0 JNZ 0x001302b1 MOV dword ptr [RSP + 0x58],0x0 MOV qword ptr [RSP + 0x60],0x6 JMP 0x00130309 LAB_001302b1: MOV RDI,qword ptr [RSP + 0x40] MOV ECX,dword ptr [RSP + 0x34] MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] CALL 0x00128ac0 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0x40] MOV ESI,dword ptr [RSP + 0x34] CALL 0x00127d80 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x60],RAX LAB_00130309: MOV RAX,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x60] ADD RSP,0x68 RET
int1 [16] JS_GetPropertyInt64(int8 param_1,int8 param_2,int8 param_3,ulong param_4) { int1 auVar1 [16]; int iVar2; int1 local_48 [16]; int local_34; ulong local_30; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_30 = param_4; local_28 = param_1; local_20 = param_2; local_18 = param_3; if (((int)param_3 == -1 && param_4 < 0x80000000) && (iVar2 = js_get_fast_array_element(param_1,param_2,param_4 & 0xffffffff,local_48), iVar2 != 0)) { local_10 = (int4)local_48._0_8_; uStack_c = SUB84(local_48._0_8_,4); local_8 = local_48._8_8_; } else { local_34 = JS_NewAtomInt64(local_28,local_30); if (local_34 == 0) { local_10 = 0; local_8 = 6; } else { local_48 = JS_GetProperty(local_28,local_20,local_18,local_34); JS_FreeAtom(local_28,local_34); local_10 = local_48._0_4_; uStack_c = local_48._4_4_; local_8 = local_48._8_8_; } } auVar1._4_4_ = uStack_c; auVar1._0_4_ = local_10; auVar1._8_8_ = local_8; return auVar1; }
49,866
JS_GetPropertyInt64
bluesky950520[P]quickjs/quickjs.c
JSValue JS_GetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx) { JSAtom prop; JSValue val; if (likely(JS_VALUE_GET_TAG(obj) == JS_TAG_OBJECT && (uint64_t)idx <= INT32_MAX)) { /* fast path for array and typed array access */ JSObject *p = JS_VALUE_GET_OBJ(obj); if (js_get_fast_array_element(ctx, p, idx, &val)) return val; } prop = JS_NewAtomInt64(ctx, idx); if (prop == JS_ATOM_NULL) return JS_EXCEPTION; val = JS_GetProperty(ctx, obj, prop); JS_FreeAtom(ctx, prop); return val; }
O1
c
JS_GetPropertyInt64: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r12 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq %rsi, 0x10(%rsp) cmpl $-0x1, %r14d jne 0x23600 cmpq $0x7fffffff, %r12 # imm = 0x7FFFFFFF ja 0x23600 movq 0x10(%rsp), %rsi movq %rsp, %r13 movq %rbx, %rdi movl %r12d, %edx movq %r13, %rcx callq 0xf7d8 movq (%r13), %rcx movq %rcx, %r13 shrq $0x20, %r13 xorl %ebp, %ebp testl %eax, %eax cmovneq %rcx, %rbp je 0x23600 movq 0x8(%rsp), %r14 jmp 0x2365b movq %rbx, %rdi movq %r12, %rsi callq 0x23676 testl %eax, %eax je 0x23653 movl %eax, %r12d movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx movl %eax, %ecx movq %r15, %r8 movq %r14, %r9 pushq $0x0 pushq $0x0 callq 0x2238f addq $0x10, %rsp movq %rax, %rbp movq %rdx, %r14 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movq %rbx, %rdi movl %r12d, %esi callq 0x1fbc4 movq %rbp, %r13 shrq $0x20, %r13 jmp 0x2365b movl $0x6, %r14d xorl %ebp, %ebp shlq $0x20, %r13 movl %ebp, %eax orq %r13, %rax movq %r14, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
JS_GetPropertyInt64: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r12, rcx mov r14, rdx mov r15, rsi mov rbx, rdi mov [rsp+48h+var_38], rsi cmp r14d, 0FFFFFFFFh jnz short loc_23600 cmp r12, 7FFFFFFFh ja short loc_23600 mov rsi, [rsp+48h+var_38] mov r13, rsp mov rdi, rbx mov edx, r12d mov rcx, r13 call js_get_fast_array_element mov rcx, [r13+0] mov r13, rcx shr r13, 20h xor ebp, ebp test eax, eax cmovnz rbp, rcx jz short loc_23600 mov r14, [rsp+48h+var_40] jmp short loc_2365B loc_23600: mov rdi, rbx mov rsi, r12 call JS_NewAtomInt64 test eax, eax jz short loc_23653 mov r12d, eax mov rdi, rbx mov rsi, r15 mov rdx, r14 mov ecx, eax mov r8, r15 mov r9, r14 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov rbp, rax mov r14, rdx mov [rsp+48h+var_48], rax mov [rsp+48h+var_40], rdx mov rdi, rbx mov esi, r12d call JS_FreeAtom mov r13, rbp shr r13, 20h jmp short loc_2365B loc_23653: mov r14d, 6 xor ebp, ebp loc_2365B: shl r13, 20h mov eax, ebp or rax, r13 mov rdx, r14 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long JS_GetPropertyInt64(long long a1, long long a2, long long a3, unsigned long long a4) { unsigned long long v4; // r13 int fast_array_element; // eax unsigned long long PropertyInternal2; // rbp unsigned int v9; // eax int v10; // r12d double v11; // rdx double v13[2]; // [rsp+0h] [rbp-48h] BYREF long long v14; // [rsp+10h] [rbp-38h] v14 = a2; if ( (_DWORD)a3 == -1 && a4 <= 0x7FFFFFFF && (fast_array_element = js_get_fast_array_element(a1, v14, a4, v13), v4 = HIDWORD(*(_QWORD *)&v13[0]), fast_array_element) ) { LODWORD(PropertyInternal2) = LODWORD(v13[0]); } else { v9 = JS_NewAtomInt64(a1, a4); if ( v9 ) { v10 = v9; PropertyInternal2 = JS_GetPropertyInternal2(a1, a2, a3, v9, a2, a3, 0LL, 0); *(_QWORD *)&v13[0] = PropertyInternal2; v13[1] = v11; JS_FreeAtom(a1, v10); v4 = HIDWORD(PropertyInternal2); } else { LODWORD(PropertyInternal2) = 0; } } return (v4 << 32) | (unsigned int)PropertyInternal2; }
JS_GetPropertyInt64: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R12,RCX MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV qword ptr [RSP + 0x10],RSI CMP R14D,-0x1 JNZ 0x00123600 CMP R12,0x7fffffff JA 0x00123600 MOV RSI,qword ptr [RSP + 0x10] MOV R13,RSP MOV RDI,RBX MOV EDX,R12D MOV RCX,R13 CALL 0x0010f7d8 MOV RCX,qword ptr [R13] MOV R13,RCX SHR R13,0x20 XOR EBP,EBP TEST EAX,EAX CMOVNZ RBP,RCX JZ 0x00123600 MOV R14,qword ptr [RSP + 0x8] JMP 0x0012365b LAB_00123600: MOV RDI,RBX MOV RSI,R12 CALL 0x00123676 TEST EAX,EAX JZ 0x00123653 MOV R12D,EAX MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 MOV ECX,EAX MOV R8,R15 MOV R9,R14 PUSH 0x0 PUSH 0x0 CALL 0x0012238f ADD RSP,0x10 MOV RBP,RAX MOV R14,RDX MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV RDI,RBX MOV ESI,R12D CALL 0x0011fbc4 MOV R13,RBP SHR R13,0x20 JMP 0x0012365b LAB_00123653: MOV R14D,0x6 XOR EBP,EBP LAB_0012365b: SHL R13,0x20 MOV EAX,EBP OR RAX,R13 MOV RDX,R14 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] JS_GetPropertyInt64(int8 param_1,int8 param_2,int8 param_3,ulong param_4) { int iVar1; ulong unaff_R13; int1 auVar2 [16]; int1 auVar3 [16]; int1 local_48 [16]; int8 local_38; local_38 = param_2; if (((int)param_3 == -1) && (param_4 < 0x80000000)) { iVar1 = js_get_fast_array_element(param_1,param_2,param_4 & 0xffffffff,local_48); auVar2._8_8_ = local_48._8_8_; auVar2._0_8_ = local_48._0_8_; unaff_R13 = (ulong)local_48._0_8_ >> 0x20; if (iVar1 != 0) goto LAB_0012365b; } iVar1 = JS_NewAtomInt64(param_1,param_4); if (iVar1 == 0) { auVar2 = ZEXT816(6) << 0x40; } else { auVar2 = JS_GetPropertyInternal2(param_1,param_2,param_3,iVar1,param_2,param_3,0,0); local_48 = auVar2; JS_FreeAtom(param_1,iVar1); unaff_R13 = auVar2._0_8_ >> 0x20; } LAB_0012365b: auVar3._0_8_ = auVar2._0_8_ & 0xffffffff | unaff_R13 << 0x20; auVar3._8_8_ = auVar2._8_8_; return auVar3; }
49,867
JS_GetPropertyInt64
bluesky950520[P]quickjs/quickjs.c
JSValue JS_GetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx) { JSAtom prop; JSValue val; if (likely(JS_VALUE_GET_TAG(obj) == JS_TAG_OBJECT && (uint64_t)idx <= INT32_MAX)) { /* fast path for array and typed array access */ JSObject *p = JS_VALUE_GET_OBJ(obj); if (js_get_fast_array_element(ctx, p, idx, &val)) return val; } prop = JS_NewAtomInt64(ctx, idx); if (prop == JS_ATOM_NULL) return JS_EXCEPTION; val = JS_GetProperty(ctx, obj, prop); JS_FreeAtom(ctx, prop); return val; }
O3
c
JS_GetPropertyInt64: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r12 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movabsq $-0x100000000, %r13 # imm = 0xFFFFFFFF00000000 cmpl $-0x1, %r14d jne 0x23c22 cmpq $0x7fffffff, %r12 # imm = 0x7FFFFFFF ja 0x23c22 leaq 0x8(%rsp), %rcx movq %rbx, %rdi movq %r15, %rsi movl %r12d, %edx callq 0xf98d testl %eax, %eax je 0x23c22 movq 0x8(%rsp), %r15 movq 0x10(%rsp), %r14 jmp 0x23c61 movq %rbx, %rdi movq %r12, %rsi callq 0x23c8a testl %eax, %eax je 0x23c7c movl %eax, %ebp movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx movl %eax, %ecx movq %r15, %r8 movq %r14, %r9 pushq $0x0 pushq $0x0 callq 0x22c0f addq $0x10, %rsp movq %rax, %r15 movq %rdx, %r14 movq %rbx, %rdi movl %ebp, %esi callq 0x202f5 andq %r15, %r13 movl %r15d, %eax orq %r13, %rax movq %r14, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x6, %r14d xorl %r15d, %r15d xorl %r13d, %r13d jmp 0x23c64
JS_GetPropertyInt64: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r12, rcx mov r14, rdx mov r15, rsi mov rbx, rdi mov r13, 0FFFFFFFF00000000h cmp r14d, 0FFFFFFFFh jnz short loc_23C22 cmp r12, 7FFFFFFFh ja short loc_23C22 lea rcx, [rsp+48h+var_40] mov rdi, rbx mov rsi, r15 mov edx, r12d call js_get_fast_array_element test eax, eax jz short loc_23C22 mov r15, [rsp+48h+var_40] mov r14, [rsp+48h+var_38] jmp short loc_23C61 loc_23C22: mov rdi, rbx mov rsi, r12 call JS_NewAtomInt64 test eax, eax jz short loc_23C7C mov ebp, eax mov rdi, rbx mov rsi, r15 mov rdx, r14 mov ecx, eax mov r8, r15 mov r9, r14 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov r15, rax mov r14, rdx mov rdi, rbx mov esi, ebp call JS_FreeAtom loc_23C61: and r13, r15 loc_23C64: mov eax, r15d or rax, r13 mov rdx, r14 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_23C7C: mov r14d, 6 xor r15d, r15d xor r13d, r13d jmp short loc_23C64
unsigned long long JS_GetPropertyInt64(long long a1, long long a2, long long a3, unsigned long long a4) { unsigned long long PropertyInternal2; // r15 unsigned int v7; // eax int v8; // ebp unsigned long long v9; // r13 unsigned long long v11; // [rsp+8h] [rbp-40h] BYREF if ( (_DWORD)a3 == -1 && a4 <= 0x7FFFFFFF && (unsigned int)js_get_fast_array_element(a1, a2, a4, (double *)&v11) ) { PropertyInternal2 = v11; } else { v7 = JS_NewAtomInt64(a1, a4); if ( !v7 ) { LODWORD(PropertyInternal2) = 0; v9 = 0LL; return v9 | (unsigned int)PropertyInternal2; } v8 = v7; PropertyInternal2 = JS_GetPropertyInternal2(a1, a2, a3, v7, a2, a3, 0LL, 0); JS_FreeAtom(a1, v8); } v9 = PropertyInternal2 & 0xFFFFFFFF00000000LL; return v9 | (unsigned int)PropertyInternal2; }
JS_GetPropertyInt64: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R12,RCX MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV R13,-0x100000000 CMP R14D,-0x1 JNZ 0x00123c22 CMP R12,0x7fffffff JA 0x00123c22 LEA RCX,[RSP + 0x8] MOV RDI,RBX MOV RSI,R15 MOV EDX,R12D CALL 0x0010f98d TEST EAX,EAX JZ 0x00123c22 MOV R15,qword ptr [RSP + 0x8] MOV R14,qword ptr [RSP + 0x10] JMP 0x00123c61 LAB_00123c22: MOV RDI,RBX MOV RSI,R12 CALL 0x00123c8a TEST EAX,EAX JZ 0x00123c7c MOV EBP,EAX MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 MOV ECX,EAX MOV R8,R15 MOV R9,R14 PUSH 0x0 PUSH 0x0 CALL 0x00122c0f ADD RSP,0x10 MOV R15,RAX MOV R14,RDX MOV RDI,RBX MOV ESI,EBP CALL 0x001202f5 LAB_00123c61: AND R13,R15 LAB_00123c64: MOV EAX,R15D OR RAX,R13 MOV RDX,R14 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00123c7c: MOV R14D,0x6 XOR R15D,R15D XOR R13D,R13D JMP 0x00123c64
int1 [16] JS_GetPropertyInt64(int8 param_1,int8 param_2,int8 param_3,ulong param_4) { int iVar1; ulong uVar2; int1 auVar3 [16]; int1 auVar4 [16]; ulong local_40; int8 local_38; if (((int)param_3 == -1) && (param_4 < 0x80000000)) { iVar1 = js_get_fast_array_element(param_1,param_2,param_4 & 0xffffffff,&local_40); auVar3._8_8_ = local_38; auVar3._0_8_ = local_40; if (iVar1 == 0) goto LAB_00123c22; } else { LAB_00123c22: iVar1 = JS_NewAtomInt64(param_1,param_4); if (iVar1 == 0) { auVar3 = ZEXT816(6) << 0x40; uVar2 = 0; goto LAB_00123c64; } auVar3 = JS_GetPropertyInternal2(param_1,param_2,param_3,iVar1,param_2,param_3,0,0); JS_FreeAtom(param_1,iVar1); } uVar2 = auVar3._0_8_ & 0xffffffff00000000; LAB_00123c64: auVar4._0_8_ = auVar3._0_8_ & 0xffffffff | uVar2; auVar4._8_8_ = auVar3._8_8_; return auVar4; }
49,868
miller_loop_n
corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/pairing.c
static void miller_loop_n(vec384fp12 ret, const POINTonE2_affine Q[], const POINTonE1_affine P[], size_t n) { #if !defined(__STDC_VERSION__) || __STDC_VERSION__<199901 \ || defined(__STDC_NO_VLA__) POINTonE2 *T = alloca(n*sizeof(POINTonE2)); POINTonE1_affine *Px2 = alloca(n*sizeof(POINTonE1_affine)); #else POINTonE2 T[n]; POINTonE1_affine Px2[n]; #endif size_t i; if ((n == 1) && (vec_is_zero(&Q[0], sizeof(Q[0])) | vec_is_zero(&P[0], sizeof(P[0]))) ) { /* * Special case of infinite aggregated signature, pair the additive * group's identity with the multiplicative group's identity. */ vec_copy(ret, BLS12_381_Rx.p12, sizeof(vec384fp12)); return; } for (i = 0; i < n; i++) { /* Move common expression from line evaluation to line_by_Px2. */ add_fp(Px2[i].X, P[i].X, P[i].X); neg_fp(Px2[i].X, Px2[i].X); add_fp(Px2[i].Y, P[i].Y, P[i].Y); vec_copy(T[i].X, Q[i].X, 2*sizeof(T[i].X)); vec_copy(T[i].Z, BLS12_381_Rx.p2, sizeof(T[i].Z)); } /* first step is ret = 1^2*line, which is replaced with ret = line */ start_dbl_n(ret, T, Px2, n); /* 0x2 */ add_n_dbl_n(ret, T, Q, Px2, n, 2); /* ..0xc */ add_n_dbl_n(ret, T, Q, Px2, n, 3); /* ..0x68 */ add_n_dbl_n(ret, T, Q, Px2, n, 9); /* ..0xd200 */ add_n_dbl_n(ret, T, Q, Px2, n, 32); /* ..0xd20100000000 */ add_n_dbl_n(ret, T, Q, Px2, n, 16); /* ..0xd201000000010000 */ conjugate_fp12(ret); /* account for z being negative */ }
O2
c
miller_loop_n: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %r14 movq %rdx, %rbx movq %rsi, %r12 movq %rdi, -0x30(%rbp) movq %rsp, %r13 imulq $0x120, %rcx, %rax # imm = 0x120 subq %rax, %r13 movq %r13, %rsp movq %rsp, %rcx imulq $0x60, %r14, %rax subq %rax, %rcx movq %rcx, %rsp cmpq $0x1, %r14 movq %r14, -0x50(%rbp) movq %rsi, -0x48(%rbp) movq %r13, -0x40(%rbp) movq %rcx, -0x38(%rbp) jne 0x566f5 movl $0xc0, %esi movq %r12, %rdi callq 0x510f5 movq %rax, %r15 pushq $0x60 popq %rsi movq %rbx, %rdi callq 0x510f5 orq %r15, %rax movq %r12, %r15 movq %r13, %r12 movq -0x38(%rbp), %r13 je 0x5676b leaq 0x2960f(%rip), %rsi # 0x7fce8 movl $0x240, %edx # imm = 0x240 movq -0x30(%rbp), %rdi leaq -0x28(%rbp), %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x51055 movq %r12, %r15 movq %r13, %r12 movq %rcx, %r13 jmp 0x5676b movq %r13, %rdi movq %rbx, %rsi movq %rbx, %rdx callq 0x56a78 pushq $0x1 popq %rdx movq %r13, %rdi movq %r13, %rsi callq 0x56a89 leaq 0x30(%r13), %rdi leaq 0x30(%rbx), %rdx movq %rdx, %rsi callq 0x56a78 movl $0xc0, %edx movq %r12, %rdi movq %r15, %rsi callq 0x51055 movl $0xc0, %eax leaq (%r12,%rax), %rdi leaq 0x2959c(%rip), %rsi # 0x7fce8 pushq $0x60 popq %rdx callq 0x51055 addq $0x60, %r13 addq $0x60, %rbx addq $0x120, %r12 # imm = 0x120 movl $0xc0, %eax addq %rax, %r15 subq $0x1, %r14 jae 0x56700 movq -0x30(%rbp), %rbx movq %rbx, %rdi movq -0x40(%rbp), %r12 movq %r12, %rsi movq -0x38(%rbp), %r13 movq %r13, %rdx movq -0x50(%rbp), %r14 movq %r14, %rcx callq 0x56a9a pushq $0x2 popq %r9 movq %rbx, %rdi movq %r12, %rsi movq -0x48(%rbp), %r15 movq %r15, %rdx movq %r13, %rcx movq %r14, %r8 callq 0x56b69 pushq $0x3 popq %r9 movq %rbx, %rdi movq %r12, %rsi movq %r15, %rdx movq %r13, %rcx movq %r14, %r8 callq 0x56b69 pushq $0x9 popq %r9 movq %rbx, %rdi movq %r12, %rsi movq %r15, %rdx movq %r13, %rcx movq %r14, %r8 callq 0x56b69 pushq $0x20 popq %r9 movq %rbx, %rdi movq %r12, %rsi movq %r15, %rdx movq %r13, %rcx movq %r14, %r8 callq 0x56b69 pushq $0x10 popq %r9 movq %rbx, %rdi movq %r12, %rsi movq %r15, %rdx movq %r13, %rcx movq %r14, %r8 callq 0x56b69 movq %rbx, %rdi callq 0x561f3 leaq -0x28(%rbp), %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
miller_loop_n: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r14, rcx mov rbx, rdx mov r12, rsi mov [rbp+var_30], rdi mov r13, rsp imul rax, rcx, 120h sub r13, rax mov rsp, r13 mov rcx, rsp imul rax, r14, 60h ; '`' sub rcx, rax mov rsp, rcx cmp r14, 1 mov [rbp+var_50], r14 mov [rbp+var_48], rsi mov [rbp+var_40], r13 mov [rbp+var_38], rcx jnz short loc_566F5 mov esi, 0C0h mov rdi, r12 call vec_is_zero mov r15, rax push 60h ; '`' pop rsi mov rdi, rbx call vec_is_zero or rax, r15 mov r15, r12 mov r12, r13 mov r13, [rbp+var_38] jz loc_5676B lea rsi, BLS12_381_Rx mov edx, 240h mov rdi, [rbp+var_30] lea rsp, [rbp-28h] pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp vec_copy loc_566F5: mov r15, r12 mov r12, r13 mov r13, rcx jmp short loc_5676B loc_56700: mov rdi, r13 mov rsi, rbx mov rdx, rbx call add_fp push 1 pop rdx mov rdi, r13 mov rsi, r13 call cneg_fp lea rdi, [r13+30h] lea rdx, [rbx+30h] mov rsi, rdx call add_fp mov edx, 0C0h mov rdi, r12 mov rsi, r15 call vec_copy mov eax, 0C0h lea rdi, [r12+rax] lea rsi, BLS12_381_Rx push 60h ; '`' pop rdx call vec_copy add r13, 60h ; '`' add rbx, 60h ; '`' add r12, 120h mov eax, 0C0h add r15, rax loc_5676B: sub r14, 1 jnb short loc_56700 mov rbx, [rbp+var_30] mov rdi, rbx mov r12, [rbp+var_40] mov rsi, r12 mov r13, [rbp+var_38] mov rdx, r13 mov r14, [rbp+var_50] mov rcx, r14 call start_dbl_n push 2 pop r9 mov rdi, rbx mov rsi, r12 mov r15, [rbp+var_48] mov rdx, r15 mov rcx, r13 mov r8, r14 call add_n_dbl_n push 3 pop r9 mov rdi, rbx mov rsi, r12 mov rdx, r15 mov rcx, r13 mov r8, r14 call add_n_dbl_n push 9 pop r9 mov rdi, rbx mov rsi, r12 mov rdx, r15 mov rcx, r13 mov r8, r14 call add_n_dbl_n push 20h ; ' ' pop r9 mov rdi, rbx mov rsi, r12 mov rdx, r15 mov rcx, r13 mov r8, r14 call add_n_dbl_n push 10h pop r9 mov rdi, rbx mov rsi, r12 mov rdx, r15 mov rcx, r13 mov r8, r14 call add_n_dbl_n mov rdi, rbx call conjugate_fp12 lea rsp, [rbp-28h] pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long miller_loop_n(long long a1, long long a2, long long a3, long long a4) { long long v4; // r14 long long *v6; // r13 long long *v7; // rcx unsigned long long is_zero; // r15 unsigned long long v9; // rax long long v10; // r15 long long v11; // r12 long long *v12; // r13 long long v15; // rbx long long *v16; // r12 long long *v17; // r13 long long v18; // r14 long long v19; // r15 long long v20; // [rsp+0h] [rbp-50h] BYREF long long v21; // [rsp+8h] [rbp-48h] long long *v22; // [rsp+10h] [rbp-40h] long long *v23; // [rsp+18h] [rbp-38h] long long v24; // [rsp+20h] [rbp-30h] v4 = a4; v24 = a1; v6 = &v20 - 36 * a4; v7 = &v20 - 12 * a4; v20 = v4; v21 = a2; v22 = v6; v23 = v7; if ( v4 == 1 ) { is_zero = vec_is_zero(a2, 0xC0uLL); v9 = is_zero | vec_is_zero(a3, 0x60uLL); v10 = a2; v11 = (long long)v6; v12 = v23; if ( v9 ) return vec_copy(v24, (long long)&BLS12_381_Rx, 0x240uLL); } else { v10 = a2; v11 = (long long)v6; v12 = v7; } while ( v4-- != 0 ) { add_fp(v12, a3, a3); cneg_fp(v12, v12, 1LL); add_fp(v12 + 6, a3 + 48, a3 + 48); vec_copy(v11, v10, 0xC0uLL); vec_copy(v11 + 192, (long long)&BLS12_381_Rx, 0x60uLL); v12 += 12; a3 += 96LL; v11 += 288LL; v10 += 192LL; } v15 = v24; v16 = v22; v17 = v23; v18 = v20; start_dbl_n(v24, v22, v23, v20); v19 = v21; add_n_dbl_n(v15, v16, v21, v17, v18, 2LL); add_n_dbl_n(v15, v16, v19, v17, v18, 3LL); add_n_dbl_n(v15, v16, v19, v17, v18, 9LL); add_n_dbl_n(v15, v16, v19, v17, v18, 32LL); add_n_dbl_n(v15, v16, v19, v17, v18, 16LL); return conjugate_fp12(v15); }
miller_loop_n: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14,RCX MOV RBX,RDX MOV R12,RSI MOV qword ptr [RBP + -0x30],RDI MOV R13,RSP IMUL RAX,RCX,0x120 SUB R13,RAX MOV RSP,R13 MOV RCX,RSP IMUL RAX,R14,0x60 SUB RCX,RAX MOV RSP,RCX CMP R14,0x1 MOV qword ptr [RBP + -0x50],R14 MOV qword ptr [RBP + -0x48],RSI MOV qword ptr [RBP + -0x40],R13 MOV qword ptr [RBP + -0x38],RCX JNZ 0x001566f5 MOV ESI,0xc0 MOV RDI,R12 CALL 0x001510f5 MOV R15,RAX PUSH 0x60 POP RSI MOV RDI,RBX CALL 0x001510f5 OR RAX,R15 MOV R15,R12 MOV R12,R13 MOV R13,qword ptr [RBP + -0x38] JZ 0x0015676b LEA RSI,[0x17fce8] MOV EDX,0x240 MOV RDI,qword ptr [RBP + -0x30] LEA RSP,[RBP + -0x28] POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00151055 LAB_001566f5: MOV R15,R12 MOV R12,R13 MOV R13,RCX JMP 0x0015676b LAB_00156700: MOV RDI,R13 MOV RSI,RBX MOV RDX,RBX CALL 0x00156a78 PUSH 0x1 POP RDX MOV RDI,R13 MOV RSI,R13 CALL 0x00156a89 LEA RDI,[R13 + 0x30] LEA RDX,[RBX + 0x30] MOV RSI,RDX CALL 0x00156a78 MOV EDX,0xc0 MOV RDI,R12 MOV RSI,R15 CALL 0x00151055 MOV EAX,0xc0 LEA RDI,[R12 + RAX*0x1] LEA RSI,[0x17fce8] PUSH 0x60 POP RDX CALL 0x00151055 ADD R13,0x60 ADD RBX,0x60 ADD R12,0x120 MOV EAX,0xc0 ADD R15,RAX LAB_0015676b: SUB R14,0x1 JNC 0x00156700 MOV RBX,qword ptr [RBP + -0x30] MOV RDI,RBX MOV R12,qword ptr [RBP + -0x40] MOV RSI,R12 MOV R13,qword ptr [RBP + -0x38] MOV RDX,R13 MOV R14,qword ptr [RBP + -0x50] MOV RCX,R14 CALL 0x00156a9a PUSH 0x2 POP R9 MOV RDI,RBX MOV RSI,R12 MOV R15,qword ptr [RBP + -0x48] MOV RDX,R15 MOV RCX,R13 MOV R8,R14 CALL 0x00156b69 PUSH 0x3 POP R9 MOV RDI,RBX MOV RSI,R12 MOV RDX,R15 MOV RCX,R13 MOV R8,R14 CALL 0x00156b69 PUSH 0x9 POP R9 MOV RDI,RBX MOV RSI,R12 MOV RDX,R15 MOV RCX,R13 MOV R8,R14 CALL 0x00156b69 PUSH 0x20 POP R9 MOV RDI,RBX MOV RSI,R12 MOV RDX,R15 MOV RCX,R13 MOV R8,R14 CALL 0x00156b69 PUSH 0x10 POP R9 MOV RDI,RBX MOV RSI,R12 MOV RDX,R15 MOV RCX,R13 MOV R8,R14 CALL 0x00156b69 MOV RDI,RBX CALL 0x001561f3 LEA RSP,[RBP + -0x28] POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Type propagation algorithm not settling */ void miller_loop_n(int8 param_1,long param_2,long param_3,long param_4) { int8 uVar1; int8 uVar2; long lVar3; long lVar4; long lVar5; long lVar6; long lVar7; long lVar8; bool bVar9; int8 uStack_60; long local_58; long local_50; long local_48; long local_40; int8 local_38; lVar7 = (long)&local_58 + param_4 * -0x120; lVar6 = lVar7 + param_4 * -0x60; lVar8 = lVar6; local_58 = param_4; local_50 = param_2; local_48 = lVar7; local_40 = lVar6; local_38 = param_1; if (param_4 == 1) { *(int8 *)(lVar6 + -8) = 0x1566b1; lVar4 = vec_is_zero(param_2,0xc0); *(int8 *)(lVar6 + -8) = 0x60; uVar1 = *(int8 *)(lVar6 + -8); *(int8 *)(lVar6 + -8) = 0x1566bf; lVar5 = vec_is_zero(param_3,uVar1); lVar8 = local_40; if (lVar5 != 0 || lVar4 != 0) { vec_copy(local_38,BLS12_381_Rx,0x240); return; } } while (uVar1 = local_38, lVar3 = local_40, lVar5 = local_48, lVar4 = local_58, bVar9 = param_4 != 0, param_4 = param_4 + -1, bVar9) { *(int8 *)(lVar6 + -8) = 0x15670e; add_fp(lVar8,param_3,param_3); *(int8 *)(lVar6 + -8) = 1; uVar1 = *(int8 *)(lVar6 + -8); *(int8 *)(lVar6 + -8) = 0x15671c; cneg_fp(lVar8,lVar8,uVar1); *(int8 *)(lVar6 + -8) = 0x15672c; add_fp(lVar8 + 0x30,param_3 + 0x30); *(int8 *)(lVar6 + -8) = 0x15673c; vec_copy(lVar7,param_2,0xc0); *(int8 *)(lVar6 + -8) = 0x60; uVar1 = *(int8 *)(lVar6 + -8); *(int8 *)(lVar6 + -8) = 0x156754; vec_copy(lVar7 + 0xc0,BLS12_381_Rx,uVar1); param_3 = param_3 + 0x60; lVar7 = lVar7 + 0x120; param_2 = param_2 + 0xc0; lVar8 = lVar8 + 0x60; } *(int8 *)(lVar6 + -8) = 0x156792; start_dbl_n(uVar1,lVar5,lVar3,lVar4); *(int8 *)(lVar6 + -8) = 2; lVar8 = local_50; uVar2 = *(int8 *)(lVar6 + -8); *(int8 *)(lVar6 + -8) = 0x1567ae; add_n_dbl_n(uVar1,lVar5,lVar8,lVar3,lVar4,uVar2); *(int8 *)(lVar6 + -8) = 3; uVar2 = *(int8 *)(lVar6 + -8); *(int8 *)(lVar6 + -8) = 0x1567c6; add_n_dbl_n(uVar1,lVar5,lVar8,lVar3,lVar4,uVar2); *(int8 *)(lVar6 + -8) = 9; uVar2 = *(int8 *)(lVar6 + -8); *(int8 *)(lVar6 + -8) = 0x1567de; add_n_dbl_n(uVar1,lVar5,lVar8,lVar3,lVar4,uVar2); *(int8 *)(lVar6 + -8) = 0x20; uVar2 = *(int8 *)(lVar6 + -8); *(int8 *)(lVar6 + -8) = 0x1567f6; add_n_dbl_n(uVar1,lVar5,lVar8,lVar3,lVar4,uVar2); *(int8 *)(lVar6 + -8) = 0x10; uVar2 = *(int8 *)(lVar6 + -8); *(int8 *)(lVar6 + -8) = 0x15680e; add_n_dbl_n(uVar1,lVar5,lVar8,lVar3,lVar4,uVar2); *(int8 *)(lVar6 + -8) = 0x156816; conjugate_fp12(uVar1); return; }
49,869
JS_IsEqual
bluesky950520[P]quickjs/quickjs.c
static JSValue js_dup(JSValue v) { if (JS_VALUE_HAS_REF_COUNT(v)) { JSRefCountHeader *p = (JSRefCountHeader *)JS_VALUE_GET_PTR(v); p->ref_count++; } return v; }
O2
c
JS_IsEqual: cmpl $-0x9, %edx jb 0x321f2 incl (%rsi) pushq %rbp pushq %rbx subq $0x28, %rsp movq %rsi, (%rsp) movq %rdx, 0x8(%rsp) cmpl $-0x9, %r8d jb 0x32209 incl (%rcx) leaq 0x20(%rsp), %rbx movq %rcx, -0x10(%rbx) movq %r8, -0x8(%rbx) xorl %ebp, %ebp movq %rbx, %rsi xorl %edx, %edx callq 0x32232 negl %eax sbbl %ebp, %ebp orl -0x20(%rbx), %ebp movl %ebp, %eax addq $0x28, %rsp popq %rbx popq %rbp retq
JS_IsEqual: cmp edx, 0FFFFFFF7h jb short loc_321F2 inc dword ptr [rsi] loc_321F2: push rbp push rbx sub rsp, 28h mov [rsp+38h+var_38], rsi mov [rsp+38h+var_30], rdx cmp r8d, 0FFFFFFF7h jb short loc_32209 inc dword ptr [rcx] loc_32209: lea rbx, [rsp+38h+var_18] mov [rbx-10h], rcx mov [rbx-8], r8 xor ebp, ebp mov rsi, rbx xor edx, edx call js_eq_slow neg eax sbb ebp, ebp or ebp, [rbx-20h] mov eax, ebp add rsp, 28h pop rbx pop rbp retn
long long JS_IsEqual(long long a1, _DWORD *a2, unsigned int a3, _DWORD *a4, unsigned int a5) { _BYTE v6[24]; // [rsp+20h] [rbp-18h] BYREF if ( a3 >= 0xFFFFFFF7 ) ++*a2; if ( a5 >= 0xFFFFFFF7 ) ++*a4; return (unsigned int)js_eq_slow(a1, v6, 0LL) != 0 ? -1 : (unsigned int)a2; }
JS_IsEqual: CMP EDX,-0x9 JC 0x001321f2 INC dword ptr [RSI] LAB_001321f2: PUSH RBP PUSH RBX SUB RSP,0x28 MOV qword ptr [RSP],RSI MOV qword ptr [RSP + 0x8],RDX CMP R8D,-0x9 JC 0x00132209 INC dword ptr [RCX] LAB_00132209: LEA RBX,[RSP + 0x20] MOV qword ptr [RBX + -0x10],RCX MOV qword ptr [RBX + -0x8],R8 XOR EBP,EBP MOV RSI,RBX XOR EDX,EDX CALL 0x00132232 NEG EAX SBB EBP,EBP OR EBP,dword ptr [RBX + -0x20] MOV EAX,EBP ADD RSP,0x28 POP RBX POP RBP RET
uint JS_IsEqual(int8 param_1,int *param_2,uint param_3,int *param_4,uint param_5) { int iVar1; uint local_38; int1 local_18 [8]; if (0xfffffff6 < param_3) { *param_2 = *param_2 + 1; } if (0xfffffff6 < param_5) { *param_4 = *param_4 + 1; } iVar1 = js_eq_slow(param_1,local_18,0); local_38 = (uint)param_2; return -(uint)(iVar1 != 0) | local_38; }
49,870
JS_IsEqual
bluesky950520[P]quickjs/quickjs.c
static JSValue js_dup(JSValue v) { if (JS_VALUE_HAS_REF_COUNT(v)) { JSRefCountHeader *p = (JSRefCountHeader *)JS_VALUE_GET_PTR(v); p->ref_count++; } return v; }
O3
c
JS_IsEqual: cmpl $-0x9, %edx jb 0x3a389 incl (%rsi) pushq %rbp pushq %rbx subq $0x28, %rsp movq %rsi, (%rsp) movq %rdx, 0x8(%rsp) cmpl $-0x9, %r8d jb 0x3a3a0 incl (%rcx) leaq 0x20(%rsp), %rbx movq %rcx, -0x10(%rbx) movq %r8, -0x8(%rbx) xorl %ebp, %ebp movq %rbx, %rsi xorl %edx, %edx callq 0x3a3c9 negl %eax sbbl %ebp, %ebp orl -0x20(%rbx), %ebp movl %ebp, %eax addq $0x28, %rsp popq %rbx popq %rbp retq
JS_IsEqual: cmp edx, 0FFFFFFF7h jb short loc_3A389 inc dword ptr [rsi] loc_3A389: push rbp push rbx sub rsp, 28h mov [rsp+38h+var_38], rsi mov [rsp+38h+var_30], rdx cmp r8d, 0FFFFFFF7h jb short loc_3A3A0 inc dword ptr [rcx] loc_3A3A0: lea rbx, [rsp+38h+var_18] mov [rbx-10h], rcx mov [rbx-8], r8 xor ebp, ebp mov rsi, rbx xor edx, edx call js_eq_slow neg eax sbb ebp, ebp or ebp, [rbx-20h] mov eax, ebp add rsp, 28h pop rbx pop rbp retn
long long JS_IsEqual(long long a1, _DWORD *a2, unsigned int a3, _DWORD *a4, unsigned int a5) { _BYTE v6[24]; // [rsp+20h] [rbp-18h] BYREF if ( a3 >= 0xFFFFFFF7 ) ++*a2; if ( a5 >= 0xFFFFFFF7 ) ++*a4; return (unsigned int)js_eq_slow(a1, v6, 0LL) != 0 ? -1 : (unsigned int)a2; }
JS_IsEqual: CMP EDX,-0x9 JC 0x0013a389 INC dword ptr [RSI] LAB_0013a389: PUSH RBP PUSH RBX SUB RSP,0x28 MOV qword ptr [RSP],RSI MOV qword ptr [RSP + 0x8],RDX CMP R8D,-0x9 JC 0x0013a3a0 INC dword ptr [RCX] LAB_0013a3a0: LEA RBX,[RSP + 0x20] MOV qword ptr [RBX + -0x10],RCX MOV qword ptr [RBX + -0x8],R8 XOR EBP,EBP MOV RSI,RBX XOR EDX,EDX CALL 0x0013a3c9 NEG EAX SBB EBP,EBP OR EBP,dword ptr [RBX + -0x20] MOV EAX,EBP ADD RSP,0x28 POP RBX POP RBP RET
uint JS_IsEqual(int8 param_1,int *param_2,uint param_3,int *param_4,uint param_5) { int iVar1; uint local_38; int1 local_18 [8]; if (0xfffffff6 < param_3) { *param_2 = *param_2 + 1; } if (0xfffffff6 < param_5) { *param_4 = *param_4 + 1; } iVar1 = js_eq_slow(param_1,local_18,0); local_38 = (uint)param_2; return -(uint)(iVar1 != 0) | local_38; }
49,871
vsort_calibrate_thresholds
davidesantangelo[P]vsort/vsort.c
static void vsort_calibrate_thresholds(void) { // Insertion Sort Threshold: Related to cache line size. thresholds.insertion_threshold = VSORT_MAX(8, VSORT_MIN(32, hardware.cache_line_size > 0 ? hardware.cache_line_size / (int)sizeof(int) : 16)); // Vector Threshold: Minimum size where vectorization (NEON) might be beneficial. if (hardware.has_neon && hardware.simd_width > 0) { thresholds.vector_threshold = VSORT_MAX(32, (hardware.simd_width / (int)sizeof(int)) * 4); // e.g., 4*4=16 for NEON } else { thresholds.vector_threshold = 64; // Higher threshold if no SIMD } // Parallel Threshold: Size where parallel overhead is likely overcome. int effective_cores = hardware.performance_cores > 0 ? hardware.performance_cores : hardware.total_cores; if (effective_cores <= 0) effective_cores = 1; // Ensure at least 1 if (effective_cores >= 8) { thresholds.parallel_threshold = 50000; } else if (effective_cores >= 4) { thresholds.parallel_threshold = 75000; } else { thresholds.parallel_threshold = 150000; } // Refine based on L2 cache size per core (approx) if (hardware.l2_cache_size > 0) { int cache_per_core = hardware.l2_cache_size / effective_cores; thresholds.parallel_threshold = VSORT_MAX(10000, VSORT_MIN(thresholds.parallel_threshold, cache_per_core > 0 ? cache_per_core / (int)sizeof(int) * 4 : thresholds.parallel_threshold)); } else { // Fallback if L2 size unknown thresholds.parallel_threshold = VSORT_MAX(10000, thresholds.parallel_threshold); } // Radix Sort Threshold (Integers only): Size where radix sort typically outperforms quicksort. if (hardware.l2_cache_size > 0) { thresholds.radix_threshold = VSORT_MAX(100000, hardware.l2_cache_size / (int)sizeof(int)); } else { thresholds.radix_threshold = 500000; // Fallback } // Cache Optimal Elements: Approx number of elements fitting in L1 data cache. if (hardware.l1_cache_size > 0) { thresholds.cache_optimal_elements = hardware.l1_cache_size / sizeof(int); } else { thresholds.cache_optimal_elements = 8192; // Fallback (e.g., 32KB / 4 bytes) } // Log calibrated thresholds (only if logger is initialized) if (vsort_library_initialized) { vsort_log_info("Calibrated thresholds - insertion: %d, vector: %d (NEEDS IMPL), parallel: %d, radix: %d, cache_optimal: %d", thresholds.insertion_threshold, thresholds.vector_threshold, thresholds.parallel_threshold, thresholds.radix_threshold, thresholds.cache_optimal_elements); } }
O0
c
vsort_calibrate_thresholds: subq $0x58, %rsp cmpl $0x0, 0x5b45(%rip) # 0x8100 jle 0x25d1 movl 0x5b3d(%rip), %eax # 0x8100 movl $0x4, %ecx cltd idivl %ecx movl %eax, 0x4c(%rsp) jmp 0x25dc movl $0x10, %eax movl %eax, 0x4c(%rsp) jmp 0x25dc movl 0x4c(%rsp), %ecx movl $0x20, %eax cmpl %ecx, %eax jge 0x25f4 movl $0x20, %eax movl %eax, 0x48(%rsp) jmp 0x2624 cmpl $0x0, 0x5b05(%rip) # 0x8100 jle 0x2611 movl 0x5afd(%rip), %eax # 0x8100 movl $0x4, %ecx cltd idivl %ecx movl %eax, 0x44(%rsp) jmp 0x261c movl $0x10, %eax movl %eax, 0x44(%rsp) jmp 0x261c movl 0x44(%rsp), %eax movl %eax, 0x48(%rsp) movl 0x48(%rsp), %ecx movl $0x8, %eax cmpl %ecx, %eax jle 0x263c movl $0x8, %eax movl %eax, 0x40(%rsp) jmp 0x26b4 cmpl $0x0, 0x5abd(%rip) # 0x8100 jle 0x2659 movl 0x5ab5(%rip), %eax # 0x8100 movl $0x4, %ecx cltd idivl %ecx movl %eax, 0x3c(%rsp) jmp 0x2664 movl $0x10, %eax movl %eax, 0x3c(%rsp) jmp 0x2664 movl 0x3c(%rsp), %ecx movl $0x20, %eax cmpl %ecx, %eax jge 0x267c movl $0x20, %eax movl %eax, 0x38(%rsp) jmp 0x26ac cmpl $0x0, 0x5a7d(%rip) # 0x8100 jle 0x2699 movl 0x5a75(%rip), %eax # 0x8100 movl $0x4, %ecx cltd idivl %ecx movl %eax, 0x34(%rsp) jmp 0x26a4 movl $0x10, %eax movl %eax, 0x34(%rsp) jmp 0x26a4 movl 0x34(%rsp), %eax movl %eax, 0x38(%rsp) movl 0x38(%rsp), %eax movl %eax, 0x40(%rsp) movl 0x40(%rsp), %eax movl %eax, 0x5a22(%rip) # 0x80e0 testb $0x1, 0x5a50(%rip) # 0x8115 je 0x2718 cmpl $0x0, 0x5a36(%rip) # 0x8104 jle 0x2718 movl 0x5a2e(%rip), %eax # 0x8104 movl $0x4, %ecx cltd idivl %ecx movl %eax, %ecx shll $0x2, %ecx movl $0x20, %eax cmpl %ecx, %eax jle 0x26f7 movl $0x20, %eax movl %eax, 0x30(%rsp) jmp 0x270c movl 0x5a07(%rip), %eax # 0x8104 movl $0x4, %ecx cltd idivl %ecx shll $0x2, %eax movl %eax, 0x30(%rsp) movl 0x30(%rsp), %eax movl %eax, 0x59ce(%rip) # 0x80e4 jmp 0x2722 movl $0x40, 0x59c2(%rip) # 0x80e4 cmpl $0x0, 0x59df(%rip) # 0x8108 jle 0x2737 movl 0x59d7(%rip), %eax # 0x8108 movl %eax, 0x2c(%rsp) jmp 0x2741 movl 0x59d3(%rip), %eax # 0x8110 movl %eax, 0x2c(%rsp) movl 0x2c(%rsp), %eax movl %eax, 0x54(%rsp) cmpl $0x0, 0x54(%rsp) jg 0x2758 movl $0x1, 0x54(%rsp) cmpl $0x8, 0x54(%rsp) jl 0x276b movl $0xc350, 0x597f(%rip) # imm = 0xC350 jmp 0x278a cmpl $0x4, 0x54(%rsp) jl 0x277e movl $0x124f8, 0x596c(%rip) # imm = 0x124F8 jmp 0x2788 movl $0x249f0, 0x5960(%rip) # imm = 0x249F0 jmp 0x278a cmpl $0x0, 0x5967(%rip) # 0x80f8 jle 0x28be movl 0x595b(%rip), %eax # 0x80f8 cltd idivl 0x54(%rsp) movl %eax, 0x50(%rsp) movl 0x593c(%rip), %eax # 0x80e8 movl %eax, 0x28(%rsp) cmpl $0x0, 0x50(%rsp) jle 0x27cc movl 0x50(%rsp), %eax movl $0x4, %ecx cltd idivl %ecx shll $0x2, %eax movl %eax, 0x24(%rsp) jmp 0x27d6 movl 0x5916(%rip), %eax # 0x80e8 movl %eax, 0x24(%rsp) movl 0x28(%rsp), %eax movl 0x24(%rsp), %ecx cmpl %ecx, %eax jge 0x27ee movl 0x5900(%rip), %eax # 0x80e8 movl %eax, 0x20(%rsp) jmp 0x281c cmpl $0x0, 0x50(%rsp) jle 0x280a movl 0x50(%rsp), %eax movl $0x4, %ecx cltd idivl %ecx shll $0x2, %eax movl %eax, 0x1c(%rsp) jmp 0x2814 movl 0x58d8(%rip), %eax # 0x80e8 movl %eax, 0x1c(%rsp) movl 0x1c(%rsp), %eax movl %eax, 0x20(%rsp) movl 0x20(%rsp), %ecx movl $0x2710, %eax # imm = 0x2710 cmpl %ecx, %eax jle 0x2834 movl $0x2710, %eax # imm = 0x2710 movl %eax, 0x18(%rsp) jmp 0x28b2 movl 0x58ae(%rip), %eax # 0x80e8 movl %eax, 0x14(%rsp) cmpl $0x0, 0x50(%rsp) jle 0x285a movl 0x50(%rsp), %eax movl $0x4, %ecx cltd idivl %ecx shll $0x2, %eax movl %eax, 0x10(%rsp) jmp 0x2864 movl 0x5888(%rip), %eax # 0x80e8 movl %eax, 0x10(%rsp) movl 0x14(%rsp), %eax movl 0x10(%rsp), %ecx cmpl %ecx, %eax jge 0x287c movl 0x5872(%rip), %eax # 0x80e8 movl %eax, 0xc(%rsp) jmp 0x28aa cmpl $0x0, 0x50(%rsp) jle 0x2898 movl 0x50(%rsp), %eax movl $0x4, %ecx cltd idivl %ecx shll $0x2, %eax movl %eax, 0x8(%rsp) jmp 0x28a2 movl 0x584a(%rip), %eax # 0x80e8 movl %eax, 0x8(%rsp) movl 0x8(%rsp), %eax movl %eax, 0xc(%rsp) movl 0xc(%rsp), %eax movl %eax, 0x18(%rsp) movl 0x18(%rsp), %eax movl %eax, 0x582c(%rip) # 0x80e8 jmp 0x28ea movl $0x2710, %eax # imm = 0x2710 cmpl 0x581f(%rip), %eax # 0x80e8 jle 0x28d6 movl $0x2710, %eax # imm = 0x2710 movl %eax, 0x4(%rsp) jmp 0x28e0 movl 0x580c(%rip), %eax # 0x80e8 movl %eax, 0x4(%rsp) movl 0x4(%rsp), %eax movl %eax, 0x57fe(%rip) # 0x80e8 cmpl $0x0, 0x5807(%rip) # 0x80f8 jle 0x2932 movl 0x57ff(%rip), %eax # 0x80f8 movl $0x4, %ecx cltd idivl %ecx movl %eax, %ecx movl $0x186a0, %eax # imm = 0x186A0 cmpl %ecx, %eax jle 0x2916 movl $0x186a0, %eax # imm = 0x186A0 movl %eax, (%rsp) jmp 0x2927 movl 0x57dc(%rip), %eax # 0x80f8 movl $0x4, %ecx cltd idivl %ecx movl %eax, (%rsp) movl (%rsp), %eax movl %eax, 0x57bc(%rip) # 0x80ec jmp 0x293c movl $0x7a120, 0x57b0(%rip) # imm = 0x7A120 cmpl $0x0, 0x57b1(%rip) # 0x80f4 jle 0x2958 movslq 0x57a8(%rip), %rax # 0x80f4 shrq $0x2, %rax movl %eax, 0x579a(%rip) # 0x80f0 jmp 0x2962 movl $0x2000, 0x578e(%rip) # imm = 0x2000 testb $0x1, 0x5870(%rip) # 0x81d9 je 0x2999 movl 0x576f(%rip), %esi # 0x80e0 movl 0x576d(%rip), %edx # 0x80e4 movl 0x576b(%rip), %ecx # 0x80e8 movl 0x5768(%rip), %r8d # 0x80ec movl 0x5765(%rip), %r9d # 0x80f0 leaq 0x2cfd(%rip), %rdi # 0x568f movb $0x0, %al callq 0x4560 addq $0x58, %rsp retq nop
vsort_calibrate_thresholds: sub rsp, 58h cmp cs:dword_8100, 0 jle short loc_25D1 mov eax, cs:dword_8100 mov ecx, 4 cdq idiv ecx mov [rsp+58h+var_C], eax jmp short loc_25DC loc_25D1: mov eax, 10h mov [rsp+58h+var_C], eax jmp short $+2 loc_25DC: mov ecx, [rsp+58h+var_C] mov eax, 20h ; ' ' cmp eax, ecx jge short loc_25F4 mov eax, 20h ; ' ' mov [rsp+58h+var_10], eax jmp short loc_2624 loc_25F4: cmp cs:dword_8100, 0 jle short loc_2611 mov eax, cs:dword_8100 mov ecx, 4 cdq idiv ecx mov [rsp+58h+var_14], eax jmp short loc_261C loc_2611: mov eax, 10h mov [rsp+58h+var_14], eax jmp short $+2 loc_261C: mov eax, [rsp+58h+var_14] mov [rsp+58h+var_10], eax loc_2624: mov ecx, [rsp+58h+var_10] mov eax, 8 cmp eax, ecx jle short loc_263C mov eax, 8 mov [rsp+58h+var_18], eax jmp short loc_26B4 loc_263C: cmp cs:dword_8100, 0 jle short loc_2659 mov eax, cs:dword_8100 mov ecx, 4 cdq idiv ecx mov [rsp+58h+var_1C], eax jmp short loc_2664 loc_2659: mov eax, 10h mov [rsp+58h+var_1C], eax jmp short $+2 loc_2664: mov ecx, [rsp+58h+var_1C] mov eax, 20h ; ' ' cmp eax, ecx jge short loc_267C mov eax, 20h ; ' ' mov [rsp+58h+var_20], eax jmp short loc_26AC loc_267C: cmp cs:dword_8100, 0 jle short loc_2699 mov eax, cs:dword_8100 mov ecx, 4 cdq idiv ecx mov [rsp+58h+var_24], eax jmp short loc_26A4 loc_2699: mov eax, 10h mov [rsp+58h+var_24], eax jmp short $+2 loc_26A4: mov eax, [rsp+58h+var_24] mov [rsp+58h+var_20], eax loc_26AC: mov eax, [rsp+58h+var_20] mov [rsp+58h+var_18], eax loc_26B4: mov eax, [rsp+58h+var_18] mov cs:thresholds, eax test cs:byte_8115, 1 jz short loc_2718 cmp cs:dword_8104, 0 jle short loc_2718 mov eax, cs:dword_8104 mov ecx, 4 cdq idiv ecx mov ecx, eax shl ecx, 2 mov eax, 20h ; ' ' cmp eax, ecx jle short loc_26F7 mov eax, 20h ; ' ' mov [rsp+58h+var_28], eax jmp short loc_270C loc_26F7: mov eax, cs:dword_8104 mov ecx, 4 cdq idiv ecx shl eax, 2 mov [rsp+58h+var_28], eax loc_270C: mov eax, [rsp+58h+var_28] mov cs:dword_80E4, eax jmp short loc_2722 loc_2718: mov cs:dword_80E4, 40h ; '@' loc_2722: cmp cs:dword_8108, 0 jle short loc_2737 mov eax, cs:dword_8108 mov [rsp+58h+var_2C], eax jmp short loc_2741 loc_2737: mov eax, cs:dword_8110 mov [rsp+58h+var_2C], eax loc_2741: mov eax, [rsp+58h+var_2C] mov [rsp+58h+var_4], eax cmp [rsp+58h+var_4], 0 jg short loc_2758 mov [rsp+58h+var_4], 1 loc_2758: cmp [rsp+58h+var_4], 8 jl short loc_276B mov cs:dword_80E8, 0C350h jmp short loc_278A loc_276B: cmp [rsp+58h+var_4], 4 jl short loc_277E mov cs:dword_80E8, 124F8h jmp short loc_2788 loc_277E: mov cs:dword_80E8, 249F0h loc_2788: jmp short $+2 loc_278A: cmp cs:dword_80F8, 0 jle loc_28BE mov eax, cs:dword_80F8 cdq idiv [rsp+58h+var_4] mov [rsp+58h+var_8], eax mov eax, cs:dword_80E8 mov [rsp+58h+var_30], eax cmp [rsp+58h+var_8], 0 jle short loc_27CC mov eax, [rsp+58h+var_8] mov ecx, 4 cdq idiv ecx shl eax, 2 mov [rsp+58h+var_34], eax jmp short loc_27D6 loc_27CC: mov eax, cs:dword_80E8 mov [rsp+58h+var_34], eax loc_27D6: mov eax, [rsp+58h+var_30] mov ecx, [rsp+58h+var_34] cmp eax, ecx jge short loc_27EE mov eax, cs:dword_80E8 mov [rsp+58h+var_38], eax jmp short loc_281C loc_27EE: cmp [rsp+58h+var_8], 0 jle short loc_280A mov eax, [rsp+58h+var_8] mov ecx, 4 cdq idiv ecx shl eax, 2 mov [rsp+58h+var_3C], eax jmp short loc_2814 loc_280A: mov eax, cs:dword_80E8 mov [rsp+58h+var_3C], eax loc_2814: mov eax, [rsp+58h+var_3C] mov [rsp+58h+var_38], eax loc_281C: mov ecx, [rsp+58h+var_38] mov eax, 2710h cmp eax, ecx jle short loc_2834 mov eax, 2710h mov [rsp+58h+var_40], eax jmp short loc_28B2 loc_2834: mov eax, cs:dword_80E8 mov [rsp+58h+var_44], eax cmp [rsp+58h+var_8], 0 jle short loc_285A mov eax, [rsp+58h+var_8] mov ecx, 4 cdq idiv ecx shl eax, 2 mov [rsp+58h+var_48], eax jmp short loc_2864 loc_285A: mov eax, cs:dword_80E8 mov [rsp+58h+var_48], eax loc_2864: mov eax, [rsp+58h+var_44] mov ecx, [rsp+58h+var_48] cmp eax, ecx jge short loc_287C mov eax, cs:dword_80E8 mov [rsp+58h+var_4C], eax jmp short loc_28AA loc_287C: cmp [rsp+58h+var_8], 0 jle short loc_2898 mov eax, [rsp+58h+var_8] mov ecx, 4 cdq idiv ecx shl eax, 2 mov [rsp+58h+var_50], eax jmp short loc_28A2 loc_2898: mov eax, cs:dword_80E8 mov [rsp+58h+var_50], eax loc_28A2: mov eax, [rsp+58h+var_50] mov [rsp+58h+var_4C], eax loc_28AA: mov eax, [rsp+58h+var_4C] mov [rsp+58h+var_40], eax loc_28B2: mov eax, [rsp+58h+var_40] mov cs:dword_80E8, eax jmp short loc_28EA loc_28BE: mov eax, 2710h cmp eax, cs:dword_80E8 jle short loc_28D6 mov eax, 2710h mov [rsp+58h+var_54], eax jmp short loc_28E0 loc_28D6: mov eax, cs:dword_80E8 mov [rsp+58h+var_54], eax loc_28E0: mov eax, [rsp+58h+var_54] mov cs:dword_80E8, eax loc_28EA: cmp cs:dword_80F8, 0 jle short loc_2932 mov eax, cs:dword_80F8 mov ecx, 4 cdq idiv ecx mov ecx, eax mov eax, 186A0h cmp eax, ecx jle short loc_2916 mov eax, 186A0h mov [rsp+58h+var_58], eax jmp short loc_2927 loc_2916: mov eax, cs:dword_80F8 mov ecx, 4 cdq idiv ecx mov [rsp+58h+var_58], eax loc_2927: mov eax, [rsp+58h+var_58] mov cs:dword_80EC, eax jmp short loc_293C loc_2932: mov cs:dword_80EC, 7A120h loc_293C: cmp cs:hardware, 0 jle short loc_2958 movsxd rax, cs:hardware shr rax, 2 mov cs:dword_80F0, eax jmp short loc_2962 loc_2958: mov cs:dword_80F0, 2000h loc_2962: test cs:vsort_library_initialized, 1 jz short loc_2999 mov esi, cs:thresholds mov edx, cs:dword_80E4 mov ecx, cs:dword_80E8 mov r8d, cs:dword_80EC mov r9d, cs:dword_80F0 lea rdi, aCalibratedThre; "Calibrated thresholds - insertion: %d, "... mov al, 0 call vsort_log_info loc_2999: add rsp, 58h retn
unsigned long long vsort_calibrate_thresholds() { unsigned long long result; // rax unsigned int v1; // [rsp+0h] [rbp-58h] unsigned int v2; // [rsp+4h] [rbp-54h] int v3; // [rsp+8h] [rbp-50h] int v4; // [rsp+Ch] [rbp-4Ch] int v5; // [rsp+10h] [rbp-48h] unsigned int v6; // [rsp+18h] [rbp-40h] int v7; // [rsp+1Ch] [rbp-3Ch] int v8; // [rsp+20h] [rbp-38h] int v9; // [rsp+24h] [rbp-34h] int v10; // [rsp+2Ch] [rbp-2Ch] int v11; // [rsp+30h] [rbp-28h] int v12; // [rsp+34h] [rbp-24h] int v13; // [rsp+38h] [rbp-20h] int v14; // [rsp+3Ch] [rbp-1Ch] int v15; // [rsp+40h] [rbp-18h] int v16; // [rsp+44h] [rbp-14h] int v17; // [rsp+48h] [rbp-10h] int v18; // [rsp+4Ch] [rbp-Ch] int v19; // [rsp+50h] [rbp-8h] int v20; // [rsp+54h] [rbp-4h] if ( dword_8100 <= 0 ) v18 = 16; else v18 = dword_8100 / 4; if ( v18 <= 32 ) { if ( dword_8100 <= 0 ) v16 = 16; else v16 = dword_8100 / 4; v17 = v16; } else { v17 = 32; } if ( v17 >= 8 ) { if ( dword_8100 <= 0 ) v14 = 16; else v14 = dword_8100 / 4; if ( v14 <= 32 ) { if ( dword_8100 <= 0 ) v12 = 16; else v12 = dword_8100 / 4; v13 = v12; } else { v13 = 32; } v15 = v13; } else { v15 = 8; } thresholds = v15; if ( (byte_8115 & 1) != 0 && dword_8104 > 0 ) { if ( 4 * (dword_8104 / 4) >= 32 ) v11 = 4 * (dword_8104 / 4); else v11 = 32; dword_80E4 = v11; } else { dword_80E4 = 64; } if ( dword_8108 <= 0 ) v10 = dword_8110; else v10 = dword_8108; v20 = v10; if ( v10 <= 0 ) v20 = 1; if ( v20 < 8 ) { if ( v20 < 4 ) dword_80E8 = 150000; else dword_80E8 = 75000; } else { dword_80E8 = 50000; } if ( dword_80F8 <= 0 ) { if ( dword_80E8 >= 10000 ) v2 = dword_80E8; else v2 = 10000; result = v2; dword_80E8 = v2; } else { v19 = dword_80F8 / v20; if ( dword_80F8 / v20 <= 0 ) v9 = dword_80E8; else v9 = 4 * (v19 / 4); if ( dword_80E8 >= v9 ) { if ( v19 <= 0 ) v7 = dword_80E8; else v7 = 4 * (v19 / 4); v8 = v7; } else { v8 = dword_80E8; } if ( v8 >= 10000 ) { if ( v19 <= 0 ) v5 = dword_80E8; else v5 = 4 * (v19 / 4); if ( dword_80E8 >= v5 ) { if ( v19 <= 0 ) v3 = dword_80E8; else v3 = 4 * (v19 / 4); v4 = v3; } else { v4 = dword_80E8; } v6 = v4; } else { v6 = 10000; } result = v6; dword_80E8 = v6; } if ( dword_80F8 <= 0 ) { dword_80EC = 500000; } else { if ( dword_80F8 / 4 >= 100000 ) v1 = dword_80F8 / 4; else v1 = 100000; result = v1; dword_80EC = v1; } if ( hardware <= 0 ) { dword_80F0 = 0x2000; } else { result = (unsigned long long)hardware >> 2; dword_80F0 = result; } if ( (vsort_library_initialized & 1) != 0 ) return vsort_log_info( (unsigned int)"Calibrated thresholds - insertion: %d, vector: %d (NEEDS IMPL), parallel: %d, radix: %d, cache_optimal: %d", thresholds, dword_80E4, dword_80E8, dword_80EC, dword_80F0); return result; }
vsort_calibrate_thresholds: SUB RSP,0x58 CMP dword ptr [0x00108100],0x0 JLE 0x001025d1 MOV EAX,dword ptr [0x00108100] MOV ECX,0x4 CDQ IDIV ECX MOV dword ptr [RSP + 0x4c],EAX JMP 0x001025dc LAB_001025d1: MOV EAX,0x10 MOV dword ptr [RSP + 0x4c],EAX JMP 0x001025dc LAB_001025dc: MOV ECX,dword ptr [RSP + 0x4c] MOV EAX,0x20 CMP EAX,ECX JGE 0x001025f4 MOV EAX,0x20 MOV dword ptr [RSP + 0x48],EAX JMP 0x00102624 LAB_001025f4: CMP dword ptr [0x00108100],0x0 JLE 0x00102611 MOV EAX,dword ptr [0x00108100] MOV ECX,0x4 CDQ IDIV ECX MOV dword ptr [RSP + 0x44],EAX JMP 0x0010261c LAB_00102611: MOV EAX,0x10 MOV dword ptr [RSP + 0x44],EAX JMP 0x0010261c LAB_0010261c: MOV EAX,dword ptr [RSP + 0x44] MOV dword ptr [RSP + 0x48],EAX LAB_00102624: MOV ECX,dword ptr [RSP + 0x48] MOV EAX,0x8 CMP EAX,ECX JLE 0x0010263c MOV EAX,0x8 MOV dword ptr [RSP + 0x40],EAX JMP 0x001026b4 LAB_0010263c: CMP dword ptr [0x00108100],0x0 JLE 0x00102659 MOV EAX,dword ptr [0x00108100] MOV ECX,0x4 CDQ IDIV ECX MOV dword ptr [RSP + 0x3c],EAX JMP 0x00102664 LAB_00102659: MOV EAX,0x10 MOV dword ptr [RSP + 0x3c],EAX JMP 0x00102664 LAB_00102664: MOV ECX,dword ptr [RSP + 0x3c] MOV EAX,0x20 CMP EAX,ECX JGE 0x0010267c MOV EAX,0x20 MOV dword ptr [RSP + 0x38],EAX JMP 0x001026ac LAB_0010267c: CMP dword ptr [0x00108100],0x0 JLE 0x00102699 MOV EAX,dword ptr [0x00108100] MOV ECX,0x4 CDQ IDIV ECX MOV dword ptr [RSP + 0x34],EAX JMP 0x001026a4 LAB_00102699: MOV EAX,0x10 MOV dword ptr [RSP + 0x34],EAX JMP 0x001026a4 LAB_001026a4: MOV EAX,dword ptr [RSP + 0x34] MOV dword ptr [RSP + 0x38],EAX LAB_001026ac: MOV EAX,dword ptr [RSP + 0x38] MOV dword ptr [RSP + 0x40],EAX LAB_001026b4: MOV EAX,dword ptr [RSP + 0x40] MOV dword ptr [0x001080e0],EAX TEST byte ptr [0x00108115],0x1 JZ 0x00102718 CMP dword ptr [0x00108104],0x0 JLE 0x00102718 MOV EAX,dword ptr [0x00108104] MOV ECX,0x4 CDQ IDIV ECX MOV ECX,EAX SHL ECX,0x2 MOV EAX,0x20 CMP EAX,ECX JLE 0x001026f7 MOV EAX,0x20 MOV dword ptr [RSP + 0x30],EAX JMP 0x0010270c LAB_001026f7: MOV EAX,dword ptr [0x00108104] MOV ECX,0x4 CDQ IDIV ECX SHL EAX,0x2 MOV dword ptr [RSP + 0x30],EAX LAB_0010270c: MOV EAX,dword ptr [RSP + 0x30] MOV dword ptr [0x001080e4],EAX JMP 0x00102722 LAB_00102718: MOV dword ptr [0x001080e4],0x40 LAB_00102722: CMP dword ptr [0x00108108],0x0 JLE 0x00102737 MOV EAX,dword ptr [0x00108108] MOV dword ptr [RSP + 0x2c],EAX JMP 0x00102741 LAB_00102737: MOV EAX,dword ptr [0x00108110] MOV dword ptr [RSP + 0x2c],EAX LAB_00102741: MOV EAX,dword ptr [RSP + 0x2c] MOV dword ptr [RSP + 0x54],EAX CMP dword ptr [RSP + 0x54],0x0 JG 0x00102758 MOV dword ptr [RSP + 0x54],0x1 LAB_00102758: CMP dword ptr [RSP + 0x54],0x8 JL 0x0010276b MOV dword ptr [0x001080e8],0xc350 JMP 0x0010278a LAB_0010276b: CMP dword ptr [RSP + 0x54],0x4 JL 0x0010277e MOV dword ptr [0x001080e8],0x124f8 JMP 0x00102788 LAB_0010277e: MOV dword ptr [0x001080e8],0x249f0 LAB_00102788: JMP 0x0010278a LAB_0010278a: CMP dword ptr [0x001080f8],0x0 JLE 0x001028be MOV EAX,dword ptr [0x001080f8] CDQ IDIV dword ptr [RSP + 0x54] MOV dword ptr [RSP + 0x50],EAX MOV EAX,dword ptr [0x001080e8] MOV dword ptr [RSP + 0x28],EAX CMP dword ptr [RSP + 0x50],0x0 JLE 0x001027cc MOV EAX,dword ptr [RSP + 0x50] MOV ECX,0x4 CDQ IDIV ECX SHL EAX,0x2 MOV dword ptr [RSP + 0x24],EAX JMP 0x001027d6 LAB_001027cc: MOV EAX,dword ptr [0x001080e8] MOV dword ptr [RSP + 0x24],EAX LAB_001027d6: MOV EAX,dword ptr [RSP + 0x28] MOV ECX,dword ptr [RSP + 0x24] CMP EAX,ECX JGE 0x001027ee MOV EAX,dword ptr [0x001080e8] MOV dword ptr [RSP + 0x20],EAX JMP 0x0010281c LAB_001027ee: CMP dword ptr [RSP + 0x50],0x0 JLE 0x0010280a MOV EAX,dword ptr [RSP + 0x50] MOV ECX,0x4 CDQ IDIV ECX SHL EAX,0x2 MOV dword ptr [RSP + 0x1c],EAX JMP 0x00102814 LAB_0010280a: MOV EAX,dword ptr [0x001080e8] MOV dword ptr [RSP + 0x1c],EAX LAB_00102814: MOV EAX,dword ptr [RSP + 0x1c] MOV dword ptr [RSP + 0x20],EAX LAB_0010281c: MOV ECX,dword ptr [RSP + 0x20] MOV EAX,0x2710 CMP EAX,ECX JLE 0x00102834 MOV EAX,0x2710 MOV dword ptr [RSP + 0x18],EAX JMP 0x001028b2 LAB_00102834: MOV EAX,dword ptr [0x001080e8] MOV dword ptr [RSP + 0x14],EAX CMP dword ptr [RSP + 0x50],0x0 JLE 0x0010285a MOV EAX,dword ptr [RSP + 0x50] MOV ECX,0x4 CDQ IDIV ECX SHL EAX,0x2 MOV dword ptr [RSP + 0x10],EAX JMP 0x00102864 LAB_0010285a: MOV EAX,dword ptr [0x001080e8] MOV dword ptr [RSP + 0x10],EAX LAB_00102864: MOV EAX,dword ptr [RSP + 0x14] MOV ECX,dword ptr [RSP + 0x10] CMP EAX,ECX JGE 0x0010287c MOV EAX,dword ptr [0x001080e8] MOV dword ptr [RSP + 0xc],EAX JMP 0x001028aa LAB_0010287c: CMP dword ptr [RSP + 0x50],0x0 JLE 0x00102898 MOV EAX,dword ptr [RSP + 0x50] MOV ECX,0x4 CDQ IDIV ECX SHL EAX,0x2 MOV dword ptr [RSP + 0x8],EAX JMP 0x001028a2 LAB_00102898: MOV EAX,dword ptr [0x001080e8] MOV dword ptr [RSP + 0x8],EAX LAB_001028a2: MOV EAX,dword ptr [RSP + 0x8] MOV dword ptr [RSP + 0xc],EAX LAB_001028aa: MOV EAX,dword ptr [RSP + 0xc] MOV dword ptr [RSP + 0x18],EAX LAB_001028b2: MOV EAX,dword ptr [RSP + 0x18] MOV dword ptr [0x001080e8],EAX JMP 0x001028ea LAB_001028be: MOV EAX,0x2710 CMP EAX,dword ptr [0x001080e8] JLE 0x001028d6 MOV EAX,0x2710 MOV dword ptr [RSP + 0x4],EAX JMP 0x001028e0 LAB_001028d6: MOV EAX,dword ptr [0x001080e8] MOV dword ptr [RSP + 0x4],EAX LAB_001028e0: MOV EAX,dword ptr [RSP + 0x4] MOV dword ptr [0x001080e8],EAX LAB_001028ea: CMP dword ptr [0x001080f8],0x0 JLE 0x00102932 MOV EAX,dword ptr [0x001080f8] MOV ECX,0x4 CDQ IDIV ECX MOV ECX,EAX MOV EAX,0x186a0 CMP EAX,ECX JLE 0x00102916 MOV EAX,0x186a0 MOV dword ptr [RSP],EAX JMP 0x00102927 LAB_00102916: MOV EAX,dword ptr [0x001080f8] MOV ECX,0x4 CDQ IDIV ECX MOV dword ptr [RSP],EAX LAB_00102927: MOV EAX,dword ptr [RSP] MOV dword ptr [0x001080ec],EAX JMP 0x0010293c LAB_00102932: MOV dword ptr [0x001080ec],0x7a120 LAB_0010293c: CMP dword ptr [0x001080f4],0x0 JLE 0x00102958 MOVSXD RAX,dword ptr [0x001080f4] SHR RAX,0x2 MOV dword ptr [0x001080f0],EAX JMP 0x00102962 LAB_00102958: MOV dword ptr [0x001080f0],0x2000 LAB_00102962: TEST byte ptr [0x001081d9],0x1 JZ 0x00102999 MOV ESI,dword ptr [0x001080e0] MOV EDX,dword ptr [0x001080e4] MOV ECX,dword ptr [0x001080e8] MOV R8D,dword ptr [0x001080ec] MOV R9D,dword ptr [0x001080f0] LEA RDI,[0x10568f] MOV AL,0x0 CALL 0x00104560 LAB_00102999: ADD RSP,0x58 RET
void vsort_calibrate_thresholds(void) { int iVar1; int local_58; uint local_54; uint local_50; uint local_4c; uint local_48; uint local_40; uint local_3c; uint local_38; uint local_34; int local_2c; int local_28; int local_24; int local_20; int local_1c; int local_18; int local_14; int local_10; int local_c; int local_4; if (DAT_00108100 < 1) { local_c = 0x10; } else { local_c = DAT_00108100 / 4; } if (local_c < 0x21) { if (DAT_00108100 < 1) { local_14 = 0x10; } else { local_14 = DAT_00108100 / 4; } local_10 = local_14; } else { local_10 = 0x20; } if (local_10 < 8) { local_18 = 8; } else { if (DAT_00108100 < 1) { local_1c = 0x10; } else { local_1c = DAT_00108100 / 4; } if (local_1c < 0x21) { if (DAT_00108100 < 1) { local_24 = 0x10; } else { local_24 = DAT_00108100 / 4; } local_20 = local_24; } else { local_20 = 0x20; } local_18 = local_20; } thresholds = local_18; if (((DAT_00108115 & 1) == 0) || (DAT_00108104 < 1)) { DAT_001080e4 = 0x40; } else { iVar1 = (DAT_00108104 / 4) * 4; if (iVar1 == 0x20 || SBORROW4(0x20,iVar1) != (DAT_00108104 / 4) * -4 + 0x20 < 0) { local_28 = DAT_00108104 / 4 << 2; } else { local_28 = 0x20; } DAT_001080e4 = local_28; } if (DAT_00108108 < 1) { local_2c = DAT_00108110; } else { local_2c = DAT_00108108; } local_4 = local_2c; if (local_2c < 1) { local_4 = 1; } if (local_4 < 8) { if (local_4 < 4) { DAT_001080e8 = 150000; } else { DAT_001080e8 = 75000; } } else { DAT_001080e8 = 50000; } if (DAT_001080f8 < 1) { if (DAT_001080e8 < 10000) { local_54 = 10000; } else { local_54 = DAT_001080e8; } DAT_001080e8 = local_54; } else { local_4 = DAT_001080f8 / local_4; if (local_4 < 1) { local_34 = DAT_001080e8; } else { local_34 = local_4 / 4 << 2; } if ((int)DAT_001080e8 < (int)local_34) { local_38 = DAT_001080e8; } else { if (local_4 < 1) { local_3c = DAT_001080e8; } else { local_3c = local_4 / 4 << 2; } local_38 = local_3c; } if ((int)local_38 < 10000) { local_40 = 10000; } else { if (local_4 < 1) { local_48 = DAT_001080e8; } else { local_48 = local_4 / 4 << 2; } if ((int)DAT_001080e8 < (int)local_48) { local_4c = DAT_001080e8; } else { if (local_4 < 1) { local_50 = DAT_001080e8; } else { local_50 = local_4 / 4 << 2; } local_4c = local_50; } local_40 = local_4c; } DAT_001080e8 = local_40; } if (DAT_001080f8 < 1) { DAT_001080ec = 500000; } else { if (DAT_001080f8 / 4 < 100000) { local_58 = 100000; } else { local_58 = DAT_001080f8 / 4; } DAT_001080ec = local_58; } if (hardware < 1) { DAT_001080f0 = 0x2000; } else { DAT_001080f0 = (int4)((ulong)(long)hardware >> 2); } if ((vsort_library_initialized & 1) != 0) { vsort_log_info("Calibrated thresholds - insertion: %d, vector: %d (NEEDS IMPL), parallel: %d, radix: %d, cache_optimal: %d" ,local_18,DAT_001080e4,DAT_001080e8,DAT_001080ec,DAT_001080f0); } return; }
49,872
js_typed_array_toReversed
bluesky950520[P]quickjs/quickjs.c
static JSValue js_typed_array_toReversed(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue arr, ret; JSObject *p; p = get_typed_array(ctx, this_val); if (!p) return JS_EXCEPTION; arr = js_typed_array_constructor_ta(ctx, JS_UNDEFINED, this_val, p->class_id, p->u.array.count); if (JS_IsException(arr)) return JS_EXCEPTION; ret = js_typed_array_reverse(ctx, arr, argc, argv); JS_FreeValue(ctx, arr); return ret; }
O1
c
js_typed_array_toReversed: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx movq %rsi, 0x8(%rsp) cmpl $-0x1, %r15d jne 0x81701 movq 0x8(%rsp), %r13 movzwl 0x6(%r13), %eax addl $-0x15, %eax cmpw $0xc, %ax jb 0x81715 leaq 0x20d09(%rip), %rsi # 0xa2411 xorl %r13d, %r13d movq %rbx, %rdi xorl %eax, %eax callq 0x22567 movl $0x6, %r14d testq %r13, %r13 je 0x8178a movzwl 0x6(%r13), %r9d movl 0x40(%r13), %eax movl %eax, (%rsp) xorl %r13d, %r13d movl $0x3, %edx movq %rbx, %rdi xorl %esi, %esi movq %r12, %rcx movq %r15, %r8 callq 0x7eb58 movq %rax, %r15 movq %rdx, %r12 movl $0x0, %eax cmpl $0x6, %r12d je 0x8178f movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x81571 movq %rax, %r13 movq %rdx, %r14 movq 0x18(%rbx), %rdi movq %r15, %rsi movq %r12, %rdx callq 0x1d8c6 movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 andq %r13, %rax movl %r13d, %r13d jmp 0x8178f xorl %r13d, %r13d xorl %eax, %eax orq %rax, %r13 movq %r13, %rax movq %r14, %rdx addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_typed_array_toReversed: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r15, rdx mov r12, rsi mov rbx, rdi mov [rsp+38h+var_30], rsi cmp r15d, 0FFFFFFFFh jnz short loc_81701 mov r13, [rsp+38h+var_30] movzx eax, word ptr [r13+6] add eax, 0FFFFFFEBh cmp ax, 0Ch jb short loc_81715 loc_81701: lea rsi, aNotATypedarray; "not a TypedArray" xor r13d, r13d mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_81715: mov r14d, 6 test r13, r13 jz short loc_8178A movzx r9d, word ptr [r13+6] mov eax, [r13+40h] mov [rsp+38h+var_38], eax xor r13d, r13d mov edx, 3 mov rdi, rbx xor esi, esi mov rcx, r12 mov r8, r15 call js_typed_array_constructor_ta mov r15, rax mov r12, rdx mov eax, 0 cmp r12d, 6 jz short loc_8178F mov rdi, rbx mov rsi, r15 mov rdx, r12 call js_typed_array_reverse mov r13, rax mov r14, rdx mov rdi, [rbx+18h] mov rsi, r15 mov rdx, r12 call JS_FreeValueRT mov rax, 0FFFFFFFF00000000h and rax, r13 mov r13d, r13d jmp short loc_8178F loc_8178A: xor r13d, r13d xor eax, eax loc_8178F: or r13, rax mov rax, r13 mov rdx, r14 add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
unsigned long long js_typed_array_toReversed( 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 v15; // r13 signed int v16; // r9d long long v17; // r13 long long v18; // rdx long long v19; // rcx long long v20; // r8 long long v21; // r9 _DWORD *v22; // r15 __m128 v23; // xmm4 __m128 v24; // xmm5 long long v25; // r12 unsigned long long v26; // rax long long v27; // rax char v29; // [rsp+0h] [rbp-38h] unsigned int v30; // [rsp+0h] [rbp-38h] if ( (_DWORD)a3 != -1 || (v15 = a2, (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) >= 0xCu) ) { v15 = 0LL; JS_ThrowTypeError(a1, (long long)"not a TypedArray", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v29); } if ( v15 ) { v16 = *(unsigned __int16 *)(v15 + 6); v30 = *(_DWORD *)(v15 + 64); v17 = 0LL; v22 = (_DWORD *)js_typed_array_constructor_ta( a1, 0LL, 3LL, a2, a3, v16, a7, a8, a9, a10, *(double *)a11.m128_u64, *(double *)a12.m128_u64, a13, a14, v30); v25 = v18; v26 = 0LL; if ( (_DWORD)v18 != 6 ) { js_typed_array_reverse((const char *)a1, (long long)v22, v18, v19, v20, v21, a7, a8, a9, a10, v23, v24, a13, a14); v17 = v27; JS_FreeValueRT(*(_QWORD *)(a1 + 24), v22, v25); v26 = v17 & 0xFFFFFFFF00000000LL; v17 = (unsigned int)v17; } } else { v17 = 0LL; v26 = 0LL; } return v26 | v17; }
js_typed_array_toReversed: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R15,RDX MOV R12,RSI MOV RBX,RDI MOV qword ptr [RSP + 0x8],RSI CMP R15D,-0x1 JNZ 0x00181701 MOV R13,qword ptr [RSP + 0x8] MOVZX EAX,word ptr [R13 + 0x6] ADD EAX,-0x15 CMP AX,0xc JC 0x00181715 LAB_00181701: LEA RSI,[0x1a2411] XOR R13D,R13D MOV RDI,RBX XOR EAX,EAX CALL 0x00122567 LAB_00181715: MOV R14D,0x6 TEST R13,R13 JZ 0x0018178a MOVZX R9D,word ptr [R13 + 0x6] MOV EAX,dword ptr [R13 + 0x40] MOV dword ptr [RSP],EAX XOR R13D,R13D MOV EDX,0x3 MOV RDI,RBX XOR ESI,ESI MOV RCX,R12 MOV R8,R15 CALL 0x0017eb58 MOV R15,RAX MOV R12,RDX MOV EAX,0x0 CMP R12D,0x6 JZ 0x0018178f MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 CALL 0x00181571 MOV R13,RAX MOV R14,RDX MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R15 MOV RDX,R12 CALL 0x0011d8c6 MOV RAX,-0x100000000 AND RAX,R13 MOV R13D,R13D JMP 0x0018178f LAB_0018178a: XOR R13D,R13D XOR EAX,EAX LAB_0018178f: OR R13,RAX MOV RAX,R13 MOV RDX,R14 ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
int1 [16] js_typed_array_toReversed(long param_1,long param_2,int8 param_3) { ulong uVar1; long lVar2; ulong uVar3; int8 uVar4; int1 auVar5 [16]; int1 auVar6 [16]; if (((int)param_3 != -1) || (lVar2 = param_2, 0xb < (ushort)(*(short *)(param_2 + 6) - 0x15U))) { lVar2 = 0; JS_ThrowTypeError(param_1,"not a TypedArray"); } uVar4 = 6; if (lVar2 == 0) { uVar3 = 0; uVar1 = 0; } else { uVar3 = 0; auVar5 = js_typed_array_constructor_ta (param_1,0,3,param_2,param_3,*(int2 *)(lVar2 + 6), *(int4 *)(lVar2 + 0x40)); uVar1 = 0; if (auVar5._8_4_ != 6) { auVar6 = js_typed_array_reverse(param_1,auVar5._0_8_,auVar5._8_8_); uVar4 = auVar6._8_8_; JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar5._0_8_,auVar5._8_8_); uVar1 = auVar6._0_8_ & 0xffffffff00000000; uVar3 = auVar6._0_8_ & 0xffffffff; } } auVar5._8_8_ = uVar4; auVar5._0_8_ = uVar3 | uVar1; return auVar5; }
49,873
maria_status
eloqsql/storage/maria/ma_info.c
int maria_status(MARIA_HA *info, register MARIA_INFO *x, uint flag) { MY_STAT state; MARIA_SHARE *share= info->s; DBUG_ENTER("maria_status"); DBUG_PRINT("info", ("records: %lld", info->state->records)); x->recpos= info->cur_row.lastpos; if (flag == HA_STATUS_POS) DBUG_RETURN(0); /* Compatible with ISAM */ if (!(flag & HA_STATUS_NO_LOCK)) { mysql_mutex_lock(&share->intern_lock); _ma_readinfo(info,F_RDLCK,0); fast_ma_writeinfo(info); mysql_mutex_unlock(&share->intern_lock); } if (flag & HA_STATUS_VARIABLE) { /* If table is locked, give versioned number otherwise last commited */ if (info->lock_type == F_UNLCK) x->records = share->state.state.records; else x->records = info->state->records; x->deleted = share->state.state.del; x->delete_length = share->state.state.empty; x->data_file_length = share->state.state.data_file_length; x->index_file_length= share->state.state.key_file_length; x->keys = share->state.header.keys; x->check_time = share->state.check_time; x->mean_reclength = x->records ? (ulong) ((x->data_file_length - x->delete_length) /x->records) : (ulong) share->min_pack_length; } if (flag & HA_STATUS_ERRKEY) { x->errkey= info->errkey; x->dup_key_pos= info->dup_key_pos; } if (flag & HA_STATUS_CONST) { x->reclength = share->base.reclength; x->max_data_file_length=share->base.max_data_file_length; x->max_index_file_length=info->s->base.max_key_file_length; x->filenr = info->dfile.file; x->options = share->options; x->create_time=share->state.create_time; x->reflength= maria_get_pointer_length(share->base.max_data_file_length, maria_data_pointer_size); x->record_offset= (info->s->data_file_type == STATIC_RECORD ? share->base.pack_reclength: 0); x->sortkey= -1; /* No clustering */ x->rec_per_key = share->state.rec_per_key_part; x->key_map = share->state.key_map; x->data_file_name = share->data_file_name.str; x->index_file_name = share->index_file_name.str; x->data_file_type = share->data_file_type; } if ((flag & HA_STATUS_TIME) && !my_fstat(info->dfile.file, &state, MYF(0))) x->update_time=state.st_mtime; else x->update_time=0; if (flag & HA_STATUS_AUTO) { x->auto_increment= share->state.auto_increment+1; if (!x->auto_increment) /* This shouldn't happen */ x->auto_increment= ~(ulonglong) 0; } DBUG_RETURN(0); }
O0
c
maria_status: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0xb8(%rbp) jmp 0x33296 movq -0x10(%rbp), %rax movq 0x98(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x10(%rax) cmpl $0x1, -0x1c(%rbp) jne 0x332bd jmp 0x332b1 movl $0x0, -0x4(%rbp) jmp 0x33675 movl -0x1c(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax jne 0x33322 movq -0xb8(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 leaq 0x11e1ec(%rip), %rsi # 0x1514c9 movl $0x34, %edx callq 0x33690 movq -0x10(%rbp), %rdi xorl %edx, %edx movl %edx, %esi callq 0x35c50 movq -0x10(%rbp), %rax movq (%rax), %rax cmpl $0x0, 0x7b8(%rax) jne 0x3330f movq -0x10(%rbp), %rdi xorl %esi, %esi callq 0x35c70 movq -0xb8(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 callq 0x33700 movl -0x1c(%rbp), %eax andl $0x10, %eax cmpl $0x0, %eax je 0x3342e movq -0x10(%rbp), %rax cmpl $0x2, 0x664(%rax) jne 0x33352 movq -0xb8(%rbp), %rax movq 0x18(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) jmp 0x33364 movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq (%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movq -0xb8(%rbp), %rax movq 0x20(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x8(%rax) movq -0xb8(%rbp), %rax movq 0x28(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x48(%rax) movq -0xb8(%rbp), %rax movq 0x40(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x28(%rax) movq -0xb8(%rbp), %rax movq 0x38(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x38(%rax) movq -0xb8(%rbp), %rax movzbl 0x12(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0xac(%rax) movq -0xb8(%rbp), %rax movq 0x160(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x68(%rax) movq -0x18(%rbp), %rax cmpq $0x0, (%rax) je 0x33407 movq -0x18(%rbp), %rax movq 0x28(%rax), %rax movq -0x18(%rbp), %rcx subq 0x48(%rcx), %rax movq -0x18(%rbp), %rcx xorl %edx, %edx divq (%rcx) movq %rax, -0xc0(%rbp) jmp 0x3341c movq -0xb8(%rbp), %rax movq 0x728(%rax), %rax movq %rax, -0xc0(%rbp) movq -0xc0(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x90(%rax) movl -0x1c(%rbp), %eax andl $0x20, %eax cmpl $0x0, %eax je 0x33460 movq -0x10(%rbp), %rax movl 0x660(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0xb8(%rax) movq -0x10(%rbp), %rax movq 0x428(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x20(%rax) movl -0x1c(%rbp), %eax andl $0x8, %eax cmpl $0x0, %eax je 0x335ea movq -0xb8(%rbp), %rax movq 0x398(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x88(%rax) movq -0xb8(%rbp), %rax movq 0x368(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x30(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x370(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rax movl 0x480(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0xc0(%rax) movq -0xb8(%rbp), %rax movq 0x720(%rax), %rax movl %eax, %ecx movq -0x18(%rbp), %rax movl %ecx, 0xb0(%rax) movq -0xb8(%rbp), %rax movq 0x150(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x60(%rax) movq -0xb8(%rbp), %rax movq 0x368(%rax), %rdi leaq 0x289d1b(%rip), %rax # 0x2bd228 movq (%rax), %rax movl %eax, %esi callq 0x4a360 movl %eax, %ecx movq -0x18(%rbp), %rax movl %ecx, 0xb4(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax cmpl $0x0, 0x7d0(%rax) jne 0x3354a movq -0xb8(%rbp), %rax movq 0x3a0(%rax), %rax movq %rax, -0xc8(%rbp) jmp 0x33555 xorl %eax, %eax movq %rax, -0xc8(%rbp) jmp 0x33555 movq -0xc8(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x78(%rax) movq -0x18(%rbp), %rax movl $0xffffffff, 0xbc(%rax) # imm = 0xFFFFFFFF movq -0xb8(%rbp), %rax movq 0x100(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x80(%rax) movq -0xb8(%rbp), %rax movq 0x140(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x58(%rax) movq -0xb8(%rbp), %rax movq 0x5c0(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x98(%rax) movq -0xb8(%rbp), %rax movq 0x5d0(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0xa0(%rax) movq -0xb8(%rbp), %rax movl 0x7d0(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0xa8(%rax) movl -0x1c(%rbp), %eax andl $0x4, %eax cmpl $0x0, %eax je 0x33622 movq -0x10(%rbp), %rax movl 0x480(%rax), %edi leaq -0xb0(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0xf3500 cmpl $0x0, %eax jne 0x33622 movq -0x58(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x70(%rax) jmp 0x3362e movq -0x18(%rbp), %rax movq $0x0, 0x70(%rax) movl -0x1c(%rbp), %eax andl $0x40, %eax cmpl $0x0, %eax je 0x3366c movq -0xb8(%rbp), %rax movq 0xd8(%rax), %rcx addq $0x1, %rcx movq -0x18(%rbp), %rax movq %rcx, 0x50(%rax) movq -0x18(%rbp), %rax cmpq $0x0, 0x50(%rax) jne 0x3366a movq -0x18(%rbp), %rax movq $-0x1, 0x50(%rax) jmp 0x3366c jmp 0x3366e movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0xd0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
maria_status: push rbp mov rbp, rsp sub rsp, 0D0h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_B8], rax jmp short $+2 loc_33296: mov rax, [rbp+var_10] mov rcx, [rax+98h] mov rax, [rbp+var_18] mov [rax+10h], rcx cmp [rbp+var_1C], 1 jnz short loc_332BD jmp short $+2 loc_332B1: mov [rbp+var_4], 0 jmp loc_33675 loc_332BD: mov eax, [rbp+var_1C] and eax, 2 cmp eax, 0 jnz short loc_33322 mov rdi, [rbp+var_B8] add rdi, 8F0h lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 34h ; '4' call inline_mysql_mutex_lock_1 mov rdi, [rbp+var_10] xor edx, edx mov esi, edx call _ma_readinfo mov rax, [rbp+var_10] mov rax, [rax] cmp dword ptr [rax+7B8h], 0 jnz short loc_3330F mov rdi, [rbp+var_10] xor esi, esi call _ma_writeinfo loc_3330F: mov rdi, [rbp+var_B8] add rdi, 8F0h call inline_mysql_mutex_unlock_1 loc_33322: mov eax, [rbp+var_1C] and eax, 10h cmp eax, 0 jz loc_3342E mov rax, [rbp+var_10] cmp dword ptr [rax+664h], 2 jnz short loc_33352 mov rax, [rbp+var_B8] mov rcx, [rax+18h] mov rax, [rbp+var_18] mov [rax], rcx jmp short loc_33364 loc_33352: mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rax] mov rax, [rbp+var_18] mov [rax], rcx loc_33364: mov rax, [rbp+var_B8] mov rcx, [rax+20h] mov rax, [rbp+var_18] mov [rax+8], rcx mov rax, [rbp+var_B8] mov rcx, [rax+28h] mov rax, [rbp+var_18] mov [rax+48h], rcx mov rax, [rbp+var_B8] mov rcx, [rax+40h] mov rax, [rbp+var_18] mov [rax+28h], rcx mov rax, [rbp+var_B8] mov rcx, [rax+38h] mov rax, [rbp+var_18] mov [rax+38h], rcx mov rax, [rbp+var_B8] movzx ecx, byte ptr [rax+12h] mov rax, [rbp+var_18] mov [rax+0ACh], ecx mov rax, [rbp+var_B8] mov rcx, [rax+160h] mov rax, [rbp+var_18] mov [rax+68h], rcx mov rax, [rbp+var_18] cmp qword ptr [rax], 0 jz short loc_33407 mov rax, [rbp+var_18] mov rax, [rax+28h] mov rcx, [rbp+var_18] sub rax, [rcx+48h] mov rcx, [rbp+var_18] xor edx, edx div qword ptr [rcx] mov [rbp+var_C0], rax jmp short loc_3341C loc_33407: mov rax, [rbp+var_B8] mov rax, [rax+728h] mov [rbp+var_C0], rax loc_3341C: mov rcx, [rbp+var_C0] mov rax, [rbp+var_18] mov [rax+90h], rcx loc_3342E: mov eax, [rbp+var_1C] and eax, 20h cmp eax, 0 jz short loc_33460 mov rax, [rbp+var_10] mov ecx, [rax+660h] mov rax, [rbp+var_18] mov [rax+0B8h], ecx mov rax, [rbp+var_10] mov rcx, [rax+428h] mov rax, [rbp+var_18] mov [rax+20h], rcx loc_33460: mov eax, [rbp+var_1C] and eax, 8 cmp eax, 0 jz loc_335EA mov rax, [rbp+var_B8] mov rcx, [rax+398h] mov rax, [rbp+var_18] mov [rax+88h], rcx mov rax, [rbp+var_B8] mov rcx, [rax+368h] mov rax, [rbp+var_18] mov [rax+30h], rcx mov rax, [rbp+var_10] mov rax, [rax] mov rcx, [rax+370h] mov rax, [rbp+var_18] mov [rax+40h], rcx mov rax, [rbp+var_10] mov ecx, [rax+480h] mov rax, [rbp+var_18] mov [rax+0C0h], ecx mov rax, [rbp+var_B8] mov rax, [rax+720h] mov ecx, eax mov rax, [rbp+var_18] mov [rax+0B0h], ecx mov rax, [rbp+var_B8] mov rcx, [rax+150h] mov rax, [rbp+var_18] mov [rax+60h], rcx mov rax, [rbp+var_B8] mov rdi, [rax+368h] lea rax, maria_data_pointer_size mov rax, [rax] mov esi, eax call maria_get_pointer_length mov ecx, eax mov rax, [rbp+var_18] mov [rax+0B4h], ecx mov rax, [rbp+var_10] mov rax, [rax] cmp dword ptr [rax+7D0h], 0 jnz short loc_3354A mov rax, [rbp+var_B8] mov rax, [rax+3A0h] mov [rbp+var_C8], rax jmp short loc_33555 loc_3354A: xor eax, eax mov [rbp+var_C8], rax jmp short $+2 loc_33555: mov rcx, [rbp+var_C8] mov rax, [rbp+var_18] mov [rax+78h], rcx mov rax, [rbp+var_18] mov dword ptr [rax+0BCh], 0FFFFFFFFh mov rax, [rbp+var_B8] mov rcx, [rax+100h] mov rax, [rbp+var_18] mov [rax+80h], rcx mov rax, [rbp+var_B8] mov rcx, [rax+140h] mov rax, [rbp+var_18] mov [rax+58h], rcx mov rax, [rbp+var_B8] mov rcx, [rax+5C0h] mov rax, [rbp+var_18] mov [rax+98h], rcx mov rax, [rbp+var_B8] mov rcx, [rax+5D0h] mov rax, [rbp+var_18] mov [rax+0A0h], rcx mov rax, [rbp+var_B8] mov ecx, [rax+7D0h] mov rax, [rbp+var_18] mov [rax+0A8h], ecx loc_335EA: mov eax, [rbp+var_1C] and eax, 4 cmp eax, 0 jz short loc_33622 mov rax, [rbp+var_10] mov edi, [rax+480h] lea rsi, [rbp+var_B0] xor eax, eax mov edx, eax call my_fstat cmp eax, 0 jnz short loc_33622 mov rcx, [rbp+var_58] mov rax, [rbp+var_18] mov [rax+70h], rcx jmp short loc_3362E loc_33622: mov rax, [rbp+var_18] mov qword ptr [rax+70h], 0 loc_3362E: mov eax, [rbp+var_1C] and eax, 40h cmp eax, 0 jz short loc_3366C mov rax, [rbp+var_B8] mov rcx, [rax+0D8h] add rcx, 1 mov rax, [rbp+var_18] mov [rax+50h], rcx mov rax, [rbp+var_18] cmp qword ptr [rax+50h], 0 jnz short loc_3366A mov rax, [rbp+var_18] mov qword ptr [rax+50h], 0FFFFFFFFFFFFFFFFh loc_3366A: jmp short $+2 loc_3366C: jmp short $+2 loc_3366E: mov [rbp+var_4], 0 loc_33675: mov eax, [rbp+var_4] add rsp, 0D0h pop rbp retn
long long maria_status(_QWORD *a1, long long a2, int a3) { long long v3; // rcx long long v5; // [rsp+8h] [rbp-C8h] long long v6; // [rsp+10h] [rbp-C0h] long long v7; // [rsp+18h] [rbp-B8h] _BYTE v8[88]; // [rsp+20h] [rbp-B0h] BYREF long long v9; // [rsp+78h] [rbp-58h] int v10; // [rsp+B4h] [rbp-1Ch] long long v11; // [rsp+B8h] [rbp-18h] _DWORD *v12; // [rsp+C0h] [rbp-10h] v12 = a1; v11 = a2; v10 = a3; v7 = *a1; *(_QWORD *)(a2 + 16) = a1[19]; if ( v10 == 1 ) { return 0; } else { if ( (v10 & 2) == 0 ) { inline_mysql_mutex_lock_1(v7 + 2288, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_info.c", 52LL); ma_readinfo(v12, 0LL); if ( !*(_DWORD *)(*(_QWORD *)v12 + 1976LL) ) ma_writeinfo(v12, 0LL); inline_mysql_mutex_unlock_1(v7 + 2288); } if ( (v10 & 0x10) != 0 ) { if ( v12[409] == 2 ) v3 = *(_QWORD *)(v7 + 24); else v3 = **((_QWORD **)v12 + 4); *(_QWORD *)v11 = v3; *(_QWORD *)(v11 + 8) = *(_QWORD *)(v7 + 32); *(_QWORD *)(v11 + 72) = *(_QWORD *)(v7 + 40); *(_QWORD *)(v11 + 40) = *(_QWORD *)(v7 + 64); *(_QWORD *)(v11 + 56) = *(_QWORD *)(v7 + 56); *(_DWORD *)(v11 + 172) = *(unsigned __int8 *)(v7 + 18); *(_QWORD *)(v11 + 104) = *(_QWORD *)(v7 + 352); if ( *(_QWORD *)v11 ) v6 = (*(_QWORD *)(v11 + 40) - *(_QWORD *)(v11 + 72)) / *(_QWORD *)v11; else v6 = *(_QWORD *)(v7 + 1832); *(_QWORD *)(v11 + 144) = v6; } if ( (v10 & 0x20) != 0 ) { *(_DWORD *)(v11 + 184) = v12[408]; *(_QWORD *)(v11 + 32) = *((_QWORD *)v12 + 133); } if ( (v10 & 8) != 0 ) { *(_QWORD *)(v11 + 136) = *(_QWORD *)(v7 + 920); *(_QWORD *)(v11 + 48) = *(_QWORD *)(v7 + 872); *(_QWORD *)(v11 + 64) = *(_QWORD *)(*(_QWORD *)v12 + 880LL); *(_DWORD *)(v11 + 192) = v12[288]; *(_DWORD *)(v11 + 176) = *(_QWORD *)(v7 + 1824); *(_QWORD *)(v11 + 96) = *(_QWORD *)(v7 + 336); *(_DWORD *)(v11 + 180) = maria_get_pointer_length(*(_QWORD *)(v7 + 872), (unsigned int)maria_data_pointer_size); if ( *(_DWORD *)(*(_QWORD *)v12 + 2000LL) ) v5 = 0LL; else v5 = *(_QWORD *)(v7 + 928); *(_QWORD *)(v11 + 120) = v5; *(_DWORD *)(v11 + 188) = -1; *(_QWORD *)(v11 + 128) = *(_QWORD *)(v7 + 256); *(_QWORD *)(v11 + 88) = *(_QWORD *)(v7 + 320); *(_QWORD *)(v11 + 152) = *(_QWORD *)(v7 + 1472); *(_QWORD *)(v11 + 160) = *(_QWORD *)(v7 + 1488); *(_DWORD *)(v11 + 168) = *(_DWORD *)(v7 + 2000); } if ( (v10 & 4) == 0 || (unsigned int)my_fstat((unsigned int)v12[288], v8, 0LL) ) *(_QWORD *)(v11 + 112) = 0LL; else *(_QWORD *)(v11 + 112) = v9; if ( (v10 & 0x40) != 0 ) { *(_QWORD *)(v11 + 80) = *(_QWORD *)(v7 + 216) + 1LL; if ( !*(_QWORD *)(v11 + 80) ) *(_QWORD *)(v11 + 80) = -1LL; } return 0; } }
maria_status: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xb8],RAX JMP 0x00133296 LAB_00133296: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x98] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x10],RCX CMP dword ptr [RBP + -0x1c],0x1 JNZ 0x001332bd JMP 0x001332b1 LAB_001332b1: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00133675 LAB_001332bd: MOV EAX,dword ptr [RBP + -0x1c] AND EAX,0x2 CMP EAX,0x0 JNZ 0x00133322 MOV RDI,qword ptr [RBP + -0xb8] ADD RDI,0x8f0 LEA RSI,[0x2514c9] MOV EDX,0x34 CALL 0x00133690 MOV RDI,qword ptr [RBP + -0x10] XOR EDX,EDX MOV ESI,EDX CALL 0x00135c50 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x7b8],0x0 JNZ 0x0013330f MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI CALL 0x00135c70 LAB_0013330f: MOV RDI,qword ptr [RBP + -0xb8] ADD RDI,0x8f0 CALL 0x00133700 LAB_00133322: MOV EAX,dword ptr [RBP + -0x1c] AND EAX,0x10 CMP EAX,0x0 JZ 0x0013342e MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x664],0x2 JNZ 0x00133352 MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX JMP 0x00133364 LAB_00133352: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX LAB_00133364: MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x48],RCX MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x40] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x28],RCX MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x38],RCX MOV RAX,qword ptr [RBP + -0xb8] MOVZX ECX,byte ptr [RAX + 0x12] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0xac],ECX MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x160] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x68],RCX MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX],0x0 JZ 0x00133407 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x28] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,qword ptr [RCX + 0x48] MOV RCX,qword ptr [RBP + -0x18] XOR EDX,EDX DIV qword ptr [RCX] MOV qword ptr [RBP + -0xc0],RAX JMP 0x0013341c LAB_00133407: MOV RAX,qword ptr [RBP + -0xb8] MOV RAX,qword ptr [RAX + 0x728] MOV qword ptr [RBP + -0xc0],RAX LAB_0013341c: MOV RCX,qword ptr [RBP + -0xc0] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x90],RCX LAB_0013342e: MOV EAX,dword ptr [RBP + -0x1c] AND EAX,0x20 CMP EAX,0x0 JZ 0x00133460 MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x660] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0xb8],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x428] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x20],RCX LAB_00133460: MOV EAX,dword ptr [RBP + -0x1c] AND EAX,0x8 CMP EAX,0x0 JZ 0x001335ea MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x398] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x88],RCX MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x368] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x30],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x370] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x40],RCX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x480] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0xc0],ECX MOV RAX,qword ptr [RBP + -0xb8] MOV RAX,qword ptr [RAX + 0x720] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0xb0],ECX MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x150] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x60],RCX MOV RAX,qword ptr [RBP + -0xb8] MOV RDI,qword ptr [RAX + 0x368] LEA RAX,[0x3bd228] MOV RAX,qword ptr [RAX] MOV ESI,EAX CALL 0x0014a360 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0xb4],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x7d0],0x0 JNZ 0x0013354a MOV RAX,qword ptr [RBP + -0xb8] MOV RAX,qword ptr [RAX + 0x3a0] MOV qword ptr [RBP + -0xc8],RAX JMP 0x00133555 LAB_0013354a: XOR EAX,EAX MOV qword ptr [RBP + -0xc8],RAX JMP 0x00133555 LAB_00133555: MOV RCX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x78],RCX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0xbc],0xffffffff MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x100] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x80],RCX MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x140] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x58],RCX MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x5c0] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x98],RCX MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0x5d0] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0xa0],RCX MOV RAX,qword ptr [RBP + -0xb8] MOV ECX,dword ptr [RAX + 0x7d0] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0xa8],ECX LAB_001335ea: MOV EAX,dword ptr [RBP + -0x1c] AND EAX,0x4 CMP EAX,0x0 JZ 0x00133622 MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x480] LEA RSI,[RBP + -0xb0] XOR EAX,EAX MOV EDX,EAX CALL 0x001f3500 CMP EAX,0x0 JNZ 0x00133622 MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x70],RCX JMP 0x0013362e LAB_00133622: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x70],0x0 LAB_0013362e: MOV EAX,dword ptr [RBP + -0x1c] AND EAX,0x40 CMP EAX,0x0 JZ 0x0013366c MOV RAX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RAX + 0xd8] ADD RCX,0x1 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x50],RCX MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0x50],0x0 JNZ 0x0013366a MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x50],-0x1 LAB_0013366a: JMP 0x0013366c LAB_0013366c: JMP 0x0013366e LAB_0013366e: MOV dword ptr [RBP + -0x4],0x0 LAB_00133675: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0xd0 POP RBP RET
int4 maria_status(long *param_1,ulong *param_2,ulong param_3) { long lVar1; int4 uVar2; int iVar3; ulong extraout_RDX; ulong local_d0; ulong local_c8; int1 local_b8 [88]; ulong local_60; uint local_24; ulong *local_20; long *local_18; local_24 = (uint)param_3; lVar1 = *param_1; param_2[2] = param_1[0x13]; if (local_24 != 1) { local_20 = param_2; local_18 = param_1; if ((param_3 & 2) == 0) { inline_mysql_mutex_lock (lVar1 + 0x8f0,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_info.c", 0x34); _ma_readinfo(local_18,0); if (*(int *)(*local_18 + 0x7b8) == 0) { _ma_writeinfo(local_18,0); } inline_mysql_mutex_unlock(lVar1 + 0x8f0); param_3 = extraout_RDX; } if ((local_24 & 0x10) != 0) { if (*(int *)((long)local_18 + 0x664) == 2) { *local_20 = *(ulong *)(lVar1 + 0x18); } else { *local_20 = *(ulong *)local_18[4]; } local_20[1] = *(ulong *)(lVar1 + 0x20); local_20[9] = *(ulong *)(lVar1 + 0x28); local_20[5] = *(ulong *)(lVar1 + 0x40); local_20[7] = *(ulong *)(lVar1 + 0x38); *(uint *)((long)local_20 + 0xac) = (uint)*(byte *)(lVar1 + 0x12); local_20[0xd] = *(ulong *)(lVar1 + 0x160); if (*local_20 == 0) { local_c8 = *(ulong *)(lVar1 + 0x728); } else { local_c8 = (local_20[5] - local_20[9]) / *local_20; param_3 = (local_20[5] - local_20[9]) % *local_20; } local_20[0x12] = local_c8; } if ((local_24 & 0x20) != 0) { *(int *)(local_20 + 0x17) = (int)local_18[0xcc]; local_20[4] = local_18[0x85]; } if ((local_24 & 8) != 0) { local_20[0x11] = *(ulong *)(lVar1 + 0x398); local_20[6] = *(ulong *)(lVar1 + 0x368); local_20[8] = *(ulong *)(*local_18 + 0x370); *(int *)(local_20 + 0x18) = (int)local_18[0x90]; *(int *)(local_20 + 0x16) = (int)*(int8 *)(lVar1 + 0x720); local_20[0xc] = *(ulong *)(lVar1 + 0x150); uVar2 = maria_get_pointer_length (*(int8 *)(lVar1 + 0x368),maria_data_pointer_size & 0xffffffff,param_3 ); *(int4 *)((long)local_20 + 0xb4) = uVar2; if (*(int *)(*local_18 + 2000) == 0) { local_d0 = *(ulong *)(lVar1 + 0x3a0); } else { local_d0 = 0; } local_20[0xf] = local_d0; *(int4 *)((long)local_20 + 0xbc) = 0xffffffff; local_20[0x10] = *(ulong *)(lVar1 + 0x100); local_20[0xb] = *(ulong *)(lVar1 + 0x140); local_20[0x13] = *(ulong *)(lVar1 + 0x5c0); local_20[0x14] = *(ulong *)(lVar1 + 0x5d0); *(int4 *)(local_20 + 0x15) = *(int4 *)(lVar1 + 2000); } if (((local_24 & 4) == 0) || (iVar3 = my_fstat((int)local_18[0x90],local_b8,0), iVar3 != 0)) { local_20[0xe] = 0; } else { local_20[0xe] = local_60; } if (((local_24 & 0x40) != 0) && (local_20[10] = *(long *)(lVar1 + 0xd8) + 1, local_20[10] == 0)) { local_20[10] = 0xffffffffffffffff; } } return 0; }
49,874
LefDefParser::defiNet::addWirePath(LefDefParser::defiPath*, int, int, int*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNet.cpp
void defiNet::addWirePath(defiPath* p, int reset, int netOsnet, int *needCbk) { if (numWires_ > 0) wires_[numWires_-1]->addPath(p, reset, netOsnet, needCbk); else // Something screw up, can't be both be zero. defiError(0, 6081, "ERROR (DEFPARS-6081): An internal error has occurred. The index number for the NET PATH wires array is less then or equal to 0.\nContact Cadence Customer Support with this error information.", defData); }
O0
cpp
LefDefParser::defiNet::addWirePath(LefDefParser::defiPath*, int, int, int*): subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movl %edx, 0x14(%rsp) movl %ecx, 0x10(%rsp) movq %r8, 0x8(%rsp) movq 0x20(%rsp), %rax movq %rax, (%rsp) cmpl $0x0, 0xe0(%rax) jle 0x3ada1 movq (%rsp), %rcx movq 0xe8(%rcx), %rax movl 0xe0(%rcx), %ecx subl $0x1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi movq 0x18(%rsp), %rsi movl 0x14(%rsp), %edx movl 0x10(%rsp), %ecx movq 0x8(%rsp), %r8 callq 0x37cc0 jmp 0x3adbf movq (%rsp), %rax movq 0x240(%rax), %rcx xorl %edi, %edi movl $0x17c1, %esi # imm = 0x17C1 leaq 0x3a1b9(%rip), %rdx # 0x74f73 callq 0x2a600 addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser7defiNet11addWirePathEPNS_8defiPathEiiPi: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi mov [rsp+28h+var_14], edx mov [rsp+28h+var_18], ecx mov [rsp+28h+var_20], r8 mov rax, [rsp+28h+var_8] mov [rsp+28h+var_28], rax cmp dword ptr [rax+0E0h], 0 jle short loc_3ADA1 mov rcx, [rsp+28h+var_28] mov rax, [rcx+0E8h] mov ecx, [rcx+0E0h] sub ecx, 1 movsxd rcx, ecx mov rdi, [rax+rcx*8]; this mov rsi, [rsp+28h+var_10]; LefDefParser::defiPath * mov edx, [rsp+28h+var_14]; int mov ecx, [rsp+28h+var_18]; int mov r8, [rsp+28h+var_20]; int * call _ZN12LefDefParser8defiWire7addPathEPNS_8defiPathEiiPi; LefDefParser::defiWire::addPath(LefDefParser::defiPath *,int,int,int *) jmp short loc_3ADBF loc_3ADA1: mov rax, [rsp+28h+var_28] mov rcx, [rax+240h]; char * xor edi, edi; this mov esi, 17C1h; int lea rdx, aErrorDefpars60_2; "ERROR (DEFPARS-6081): An internal error"... call _ZN12LefDefParser9defiErrorEiiPKcPNS_8defrDataE; LefDefParser::defiError(int,int,char const*,LefDefParser::defrData *) loc_3ADBF: add rsp, 28h retn
long long LefDefParser::defiNet::addWirePath( LefDefParser::defrData **this, LefDefParser::defiPath *a2, int a3, int a4, LefDefParser::defrData *a5) { if ( *((int *)this + 56) <= 0 ) return LefDefParser::defiError( 0LL, 6081, "ERROR (DEFPARS-6081): An internal error has occurred. The index number for the NET PATH wires array is less" " then or equal to 0.\n" "Contact Cadence Customer Support with this error information.", this[72], a5); else return LefDefParser::defiWire::addPath( *((LefDefParser::defiWire **)this[29] + *((_DWORD *)this + 56) - 1), a2, a3, a4, (int *)a5); }
addWirePath: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV dword ptr [RSP + 0x14],EDX MOV dword ptr [RSP + 0x10],ECX MOV qword ptr [RSP + 0x8],R8 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP],RAX CMP dword ptr [RAX + 0xe0],0x0 JLE 0x0013ada1 MOV RCX,qword ptr [RSP] MOV RAX,qword ptr [RCX + 0xe8] MOV ECX,dword ptr [RCX + 0xe0] SUB ECX,0x1 MOVSXD RCX,ECX MOV RDI,qword ptr [RAX + RCX*0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,dword ptr [RSP + 0x14] MOV ECX,dword ptr [RSP + 0x10] MOV R8,qword ptr [RSP + 0x8] CALL 0x00137cc0 JMP 0x0013adbf LAB_0013ada1: MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RAX + 0x240] XOR EDI,EDI MOV ESI,0x17c1 LEA RDX,[0x174f73] CALL 0x0012a600 LAB_0013adbf: ADD RSP,0x28 RET
/* LefDefParser::defiNet::addWirePath(LefDefParser::defiPath*, int, int, int*) */ void __thiscall LefDefParser::defiNet::addWirePath (defiNet *this,defiPath *param_1,int param_2,int param_3,int *param_4) { if (*(int *)(this + 0xe0) < 1) { defiError(0,0x17c1, "ERROR (DEFPARS-6081): An internal error has occurred. The index number for the NET PATH wires array is less then or equal to 0.\nContact Cadence Customer Support with this error information." ,*(defrData **)(this + 0x240)); } else { defiWire::addPath(*(defiWire **) (*(long *)(this + 0xe8) + (long)(*(int *)(this + 0xe0) + -1) * 8),param_1, param_2,param_3,param_4); } return; }
49,875
evmone::instr::core::sstore(evmone::StackTop, long, evmone::ExecutionState&)
corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/instructions_storage.cpp
Result sstore(StackTop stack, int64_t gas_left, ExecutionState& state) noexcept { if (state.in_static_mode()) return {EVMC_STATIC_MODE_VIOLATION, gas_left}; if (state.rev >= EVMC_ISTANBUL && gas_left <= 2300) return {EVMC_OUT_OF_GAS, gas_left}; const auto key = intx::be::store<evmc::bytes32>(stack.pop()); const auto value = intx::be::store<evmc::bytes32>(stack.pop()); const auto gas_cost_cold = (state.rev >= EVMC_BERLIN && state.host.access_storage(state.msg->recipient, key) == EVMC_ACCESS_COLD) ? instr::cold_sload_cost : 0; const auto status = state.host.set_storage(state.msg->recipient, key, value); const auto [gas_cost_warm, gas_refund] = sstore_costs[state.rev][status]; const auto gas_cost = gas_cost_warm + gas_cost_cold; if ((gas_left -= gas_cost) < 0) return {EVMC_OUT_OF_GAS, gas_left}; state.gas_refund += gas_refund; return {EVMC_SUCCESS, gas_left}; }
O3
cpp
evmone::instr::core::sstore(evmone::StackTop, long, evmone::ExecutionState&): pushq %r15 pushq %r14 pushq %rbx subq $0x60, %rsp movq %rsi, %rbx movq 0x20(%rdx), %rcx movl $0xb, %eax testb $0x1, 0x4(%rcx) jne 0x497d2 movq %rdx, %r14 movl 0x40(%rdx), %edx cmpl $0x7, %edx setge %sil cmpq $0x8fd, %rbx # imm = 0x8FD setl %r8b movl $0x3, %eax testb %sil, %r8b jne 0x497d2 movdqu 0x10(%rdi), %xmm0 movdqa 0x37901(%rip), %xmm1 # 0x81000 pshufb %xmm1, %xmm0 movdqa %xmm0, (%rsp) movdqu (%rdi), %xmm0 pshufb %xmm1, %xmm0 movdqa %xmm0, 0x10(%rsp) movdqu -0x10(%rdi), %xmm0 pshufb %xmm1, %xmm0 movdqa %xmm0, 0x40(%rsp) movdqu -0x20(%rdi), %xmm0 pshufb %xmm1, %xmm0 movdqa %xmm0, 0x50(%rsp) cmpl $0x8, %edx jl 0x49774 movl 0x28(%rcx), %eax leaq 0x20(%rsp), %rsi movl %eax, 0x10(%rsi) movdqu 0x18(%rcx), %xmm0 movdqa %xmm0, (%rsi) movq 0x30(%r14), %rax movq 0x38(%r14), %rdi movq %rsp, %rdx callq *0x68(%rax) xorl %ecx, %ecx testl %eax, %eax movq $-0x834, %r15 # imm = 0xF7CC cmovneq %rcx, %r15 movq 0x20(%r14), %rcx jmp 0x49777 xorl %r15d, %r15d movl 0x28(%rcx), %eax leaq 0x20(%rsp), %rsi movl %eax, 0x10(%rsi) movdqu 0x18(%rcx), %xmm0 movdqa %xmm0, (%rsi) movq 0x30(%r14), %rax movq 0x38(%r14), %rdi movq %rsp, %rdx leaq 0x40(%rsp), %rcx callq *0x10(%rax) movl 0x40(%r14), %ecx leaq (%rcx,%rcx,8), %rcx leaq 0x3d8c9(%rip), %rdx # 0x87076 leaq (%rdx,%rcx,4), %rcx movl %eax, %eax movswq (%rcx,%rax,4), %rdx addq %r15, %rbx subq %rdx, %rbx js 0x497cd movswq 0x2(%rcx,%rax,4), %rax addq %rax, (%r14) xorl %eax, %eax jmp 0x497d2 movl $0x3, %eax movq %rbx, %rdx addq $0x60, %rsp popq %rbx popq %r14 popq %r15 retq jmp 0x497e1 movq %rax, %rdi callq 0x2e015 nopl (%rax)
_ZN6evmone5instr4core6sstoreENS_8StackTopElRNS_14ExecutionStateE: push r15 push r14 push rbx sub rsp, 60h mov rbx, rsi mov rcx, [rdx+20h] mov eax, 0Bh test byte ptr [rcx+4], 1 jnz loc_497D2 mov r14, rdx mov edx, [rdx+40h] cmp edx, 7 setnl sil cmp rbx, 8FDh setl r8b mov eax, 3 test r8b, sil jnz loc_497D2 movdqu xmm0, xmmword ptr [rdi+10h] movdqa xmm1, cs:xmmword_81000 pshufb xmm0, xmm1 movdqa [rsp+78h+var_78], xmm0 movdqu xmm0, xmmword ptr [rdi] pshufb xmm0, xmm1 movdqa [rsp+78h+var_68], xmm0 movdqu xmm0, xmmword ptr [rdi-10h] pshufb xmm0, xmm1 movdqa [rsp+78h+var_38], xmm0 movdqu xmm0, xmmword ptr [rdi-20h] pshufb xmm0, xmm1 movdqa [rsp+78h+var_28], xmm0 cmp edx, 8 jl short loc_49774 mov eax, [rcx+28h] lea rsi, [rsp+78h+var_58] mov [rsi+10h], eax movdqu xmm0, xmmword ptr [rcx+18h] movdqa xmmword ptr [rsi], xmm0 mov rax, [r14+30h] mov rdi, [r14+38h] mov rdx, rsp call qword ptr [rax+68h] xor ecx, ecx test eax, eax mov r15, 0FFFFFFFFFFFFF7CCh cmovnz r15, rcx mov rcx, [r14+20h] jmp short loc_49777 loc_49774: xor r15d, r15d loc_49777: mov eax, [rcx+28h] lea rsi, [rsp+78h+var_58] mov [rsi+10h], eax movdqu xmm0, xmmword ptr [rcx+18h] movdqa xmmword ptr [rsi], xmm0 mov rax, [r14+30h] mov rdi, [r14+38h] mov rdx, rsp lea rcx, [rsp+78h+var_38] call qword ptr [rax+10h] mov ecx, [r14+40h] lea rcx, [rcx+rcx*8] lea rdx, _ZN6evmone5instr4core12_GLOBAL__N_112sstore_costsE; evmone::instr::core::`anonymous namespace'::sstore_costs lea rcx, [rdx+rcx*4] mov eax, eax movsx rdx, word ptr [rcx+rax*4] add rbx, r15 sub rbx, rdx js short loc_497CD movsx rax, word ptr [rcx+rax*4+2] add [r14], rax xor eax, eax jmp short loc_497D2 loc_497CD: mov eax, 3 loc_497D2: mov rdx, rbx add rsp, 60h pop rbx pop r14 pop r15 retn jmp short $+2 loc_497E1: mov rdi, rax call __clang_call_terminate
long long evmone::instr::core::sstore(const __m128i *a1, long long a2, long long a3) { long long v3; // rcx long long result; // rax int v6; // edx __m128i si128; // xmm1 long long v8; // r15 int v9; // eax char *v10; // rcx _OWORD v11[2]; // [rsp+0h] [rbp-78h] BYREF __m128i v12; // [rsp+20h] [rbp-58h] BYREF int v13; // [rsp+30h] [rbp-48h] _OWORD v14[3]; // [rsp+40h] [rbp-38h] BYREF v3 = *(_QWORD *)(a3 + 32); result = 11LL; if ( (*(_BYTE *)(v3 + 4) & 1) == 0 ) { v6 = *(_DWORD *)(a3 + 64); result = 3LL; if ( v6 < 7 || a2 >= 2301 ) { si128 = _mm_load_si128((const __m128i *)&xmmword_81000); v11[0] = _mm_shuffle_epi8(_mm_loadu_si128(a1 + 1), si128); v11[1] = _mm_shuffle_epi8(_mm_loadu_si128(a1), si128); v14[0] = _mm_shuffle_epi8(_mm_loadu_si128(a1 - 1), si128); v14[1] = _mm_shuffle_epi8(_mm_loadu_si128(a1 - 2), si128); if ( v6 < 8 ) { v8 = 0LL; } else { v13 = *(_DWORD *)(v3 + 40); v12 = _mm_loadu_si128((const __m128i *)(v3 + 24)); v8 = -2100LL; if ( (*(unsigned int ( **)(_QWORD, __m128i *, _OWORD *))(*(_QWORD *)(a3 + 48) + 104LL))( *(_QWORD *)(a3 + 56), &v12, v11) ) { v8 = 0LL; } v3 = *(_QWORD *)(a3 + 32); } v13 = *(_DWORD *)(v3 + 40); v12 = _mm_loadu_si128((const __m128i *)(v3 + 24)); v9 = (*(long long ( **)(_QWORD, __m128i *, _OWORD *, _OWORD *))(*(_QWORD *)(a3 + 48) + 16LL))( *(_QWORD *)(a3 + 56), &v12, v11, v14); v10 = (char *)&evmone::instr::core::`anonymous namespace'::sstore_costs + 36 * *(unsigned int *)(a3 + 64); if ( v8 + a2 - *(__int16 *)&v10[4 * v9] < 0 ) { return 3LL; } else { *(_QWORD *)a3 += *(__int16 *)&v10[4 * v9 + 2]; return 0LL; } } } return result; }
sstore: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x60 MOV RBX,RSI MOV RCX,qword ptr [RDX + 0x20] MOV EAX,0xb TEST byte ptr [RCX + 0x4],0x1 JNZ 0x001497d2 MOV R14,RDX MOV EDX,dword ptr [RDX + 0x40] CMP EDX,0x7 SETGE SIL CMP RBX,0x8fd SETL R8B MOV EAX,0x3 TEST R8B,SIL JNZ 0x001497d2 MOVDQU XMM0,xmmword ptr [RDI + 0x10] MOVDQA XMM1,xmmword ptr [0x00181000] PSHUFB XMM0,XMM1 MOVDQA xmmword ptr [RSP],XMM0 MOVDQU XMM0,xmmword ptr [RDI] PSHUFB XMM0,XMM1 MOVDQA xmmword ptr [RSP + 0x10],XMM0 MOVDQU XMM0,xmmword ptr [RDI + -0x10] PSHUFB XMM0,XMM1 MOVDQA xmmword ptr [RSP + 0x40],XMM0 MOVDQU XMM0,xmmword ptr [RDI + -0x20] PSHUFB XMM0,XMM1 MOVDQA xmmword ptr [RSP + 0x50],XMM0 CMP EDX,0x8 JL 0x00149774 MOV EAX,dword ptr [RCX + 0x28] LEA RSI,[RSP + 0x20] MOV dword ptr [RSI + 0x10],EAX MOVDQU XMM0,xmmword ptr [RCX + 0x18] MOVDQA xmmword ptr [RSI],XMM0 MOV RAX,qword ptr [R14 + 0x30] MOV RDI,qword ptr [R14 + 0x38] LAB_00149759: MOV RDX,RSP CALL qword ptr [RAX + 0x68] XOR ECX,ECX TEST EAX,EAX MOV R15,-0x834 CMOVNZ R15,RCX MOV RCX,qword ptr [R14 + 0x20] JMP 0x00149777 LAB_00149774: XOR R15D,R15D LAB_00149777: MOV EAX,dword ptr [RCX + 0x28] LEA RSI,[RSP + 0x20] MOV dword ptr [RSI + 0x10],EAX MOVDQU XMM0,xmmword ptr [RCX + 0x18] MOVDQA xmmword ptr [RSI],XMM0 MOV RAX,qword ptr [R14 + 0x30] MOV RDI,qword ptr [R14 + 0x38] LAB_00149793: MOV RDX,RSP LEA RCX,[RSP + 0x40] CALL qword ptr [RAX + 0x10] MOV ECX,dword ptr [R14 + 0x40] LEA RCX,[RCX + RCX*0x8] LEA RDX,[0x187076] LEA RCX,[RDX + RCX*0x4] MOV EAX,EAX MOVSX RDX,word ptr [RCX + RAX*0x4] ADD RBX,R15 SUB RBX,RDX JS 0x001497cd MOVSX RAX,word ptr [RCX + RAX*0x4 + 0x2] ADD qword ptr [R14],RAX XOR EAX,EAX JMP 0x001497d2 LAB_001497cd: MOV EAX,0x3 LAB_001497d2: MOV RDX,RBX ADD RSP,0x60 POP RBX POP R14 POP R15 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* evmone::instr::core::sstore(evmone::StackTop, long, evmone::ExecutionState&) */ int1 [16] evmone::instr::core::sstore(int1 (*param_1) [16],long param_2,long *param_3) { int iVar1; uint uVar2; int8 uVar3; long lVar4; long lVar5; int1 auVar6 [16]; int1 local_78 [16]; int1 local_68 [16]; int8 local_58; int8 uStack_50; int4 local_48; int1 local_38 [16]; int1 local_28 [16]; lVar4 = param_3[4]; uVar3 = 0xb; if ((*(byte *)(lVar4 + 4) & 1) == 0) { uVar3 = 3; if (0x8fc < param_2 || (int)param_3[8] < 7) { local_78 = pshufb(param_1[1],_DAT_00181000); local_68 = pshufb(*param_1,_DAT_00181000); local_38 = pshufb(param_1[-1],_DAT_00181000); local_28 = pshufb(param_1[-2],_DAT_00181000); if ((int)param_3[8] < 8) { lVar5 = 0; } else { local_48 = *(int4 *)(lVar4 + 0x28); local_58 = *(int8 *)(lVar4 + 0x18); uStack_50 = *(int8 *)(lVar4 + 0x20); /* try { // try from 00149759 to 0014975e has its CatchHandler @ 001497df */ iVar1 = (**(code **)(param_3[6] + 0x68))(param_3[7],&local_58,local_78); lVar5 = -0x834; if (iVar1 != 0) { lVar5 = 0; } lVar4 = param_3[4]; } local_48 = *(int4 *)(lVar4 + 0x28); local_58 = *(int8 *)(lVar4 + 0x18); uStack_50 = *(int8 *)(lVar4 + 0x20); /* try { // try from 00149793 to 0014979d has its CatchHandler @ 001497e1 */ uVar2 = (**(code **)(param_3[6] + 0x10))(param_3[7],&local_58,local_78,local_38); param_2 = (param_2 + lVar5) - (long)*(short *)((anonymous_namespace)::sstore_costs + (ulong)uVar2 * 4 + (ulong)*(uint *)(param_3 + 8) * 0x24); if (param_2 < 0) { uVar3 = 3; } else { *param_3 = *param_3 + (long)*(short *)((ulong)*(uint *)(param_3 + 8) * 0x24 + 0x187078 + (ulong)uVar2 * 4); uVar3 = 0; } } } auVar6._8_8_ = param_2; auVar6._0_8_ = uVar3; return auVar6; }
49,876
pvio_socket_async_read
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
ssize_t pvio_socket_async_read(MARIADB_PVIO *pvio, uchar *buffer, size_t length) { ssize_t r= -1; #ifndef _WIN32 int read_flags= MSG_DONTWAIT; #endif struct st_pvio_socket *csock= NULL; if (!pvio || !pvio->data) return -1; csock= (struct st_pvio_socket *)pvio->data; #ifndef _WIN32 r= recv(csock->socket,(void *)buffer, length, read_flags); #else /* Windows doesn't support MSG_DONTWAIT, so we need to set socket to non blocking */ pvio_socket_blocking(pvio, 0, 0); r= recv(csock->socket, (char *)buffer, (int)length, 0); #endif return r; }
O0
c
pvio_socket_async_read: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq $-0x1, -0x28(%rbp) movl $0x40, -0x2c(%rbp) movq $0x0, -0x38(%rbp) cmpq $0x0, -0x10(%rbp) je 0x3e34c movq -0x10(%rbp), %rax cmpq $0x0, (%rax) jne 0x3e356 movq $-0x1, -0x8(%rbp) jmp 0x3e383 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movl (%rax), %edi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movl -0x2c(%rbp), %ecx callq 0x12140 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopl (%rax)
pvio_socket_async_read: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], 0FFFFFFFFFFFFFFFFh mov [rbp+var_2C], 40h ; '@' mov [rbp+var_38], 0 cmp [rbp+var_10], 0 jz short loc_3E34C mov rax, [rbp+var_10] cmp qword ptr [rax], 0 jnz short loc_3E356 loc_3E34C: mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp short loc_3E383 loc_3E356: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov edi, [rax] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] mov ecx, [rbp+var_2C] call _recv mov [rbp+var_28], rax mov rax, [rbp+var_28] mov [rbp+var_8], rax loc_3E383: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
long long pvio_socket_async_read(_QWORD *a1, long long a2, long long a3) { if ( a1 && *a1 ) return recv(*(unsigned int *)*a1, a2, a3, 64LL); else return -1LL; }
pvio_socket_async_read: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],-0x1 MOV dword ptr [RBP + -0x2c],0x40 MOV qword ptr [RBP + -0x38],0x0 CMP qword ptr [RBP + -0x10],0x0 JZ 0x0013e34c MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX],0x0 JNZ 0x0013e356 LAB_0013e34c: MOV qword ptr [RBP + -0x8],-0x1 JMP 0x0013e383 LAB_0013e356: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x2c] CALL 0x00112140 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x8],RAX LAB_0013e383: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
ssize_t pvio_socket_async_read(long *param_1,void *param_2,size_t param_3) { int8 local_10; if ((param_1 == (long *)0x0) || (*param_1 == 0)) { local_10 = -1; } else { local_10 = recv(*(int *)*param_1,param_2,param_3,0x40); } return local_10; }
49,877
minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)>> const&)
monkey531[P]llama/common/minja.hpp
Value(const std::shared_ptr<CallableType> & callable) : object_(std::make_shared<ObjectType>()), callable_(callable) {}
O2
cpp
minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)>> const&): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx addq $0x20, %rdi xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbx) movups %xmm0, (%rbx) callq 0x5a4d0 leaq 0x30(%rbx), %rdi movq %r14, %rsi callq 0x5b512 addq $0x40, %rbx movq %rbx, %rdi xorl %esi, %esi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x476ac movq %rax, %r14 leaq 0x18(%rbx), %rdi callq 0x3542e addq $0x8, %rbx movq %rbx, %rdi callq 0x4f5a4 movq %r14, %rdi callq 0x22da0
_ZN5minja5ValueC2ERKSt10shared_ptrISt8functionIFS0_RKS1_INS_7ContextEERNS_14ArgumentsValueEEEE: push r14 push rbx push rax mov r14, rsi mov rbx, rdi add rdi, 20h ; ' ' xorps xmm0, xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx], xmm0 call _ZSt11make_sharedIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>() lea rdi, [rbx+30h] mov rsi, r14 call _ZNSt12__shared_ptrISt8functionIFN5minja5ValueERKSt10shared_ptrINS1_7ContextEERNS1_14ArgumentsValueEEELN9__gnu_cxx12_Lock_policyE2EEC2ERKSE_; std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2> const&) add rbx, 40h ; '@' mov rdi, rbx xor esi, esi add rsp, 8 pop rbx pop r14 jmp _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr)) mov r14, rax lea rdi, [rbx+18h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() add rbx, 8 mov rdi, rbx call _ZNSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__weak_count<(__gnu_cxx::_Lock_policy)2>::~__weak_count() mov rdi, r14 call __Unwind_Resume
long long minja::Value::Value(long long a1, _QWORD *a2) { *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)a1 = 0LL; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>(a1 + 32); std::__shared_ptr<std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr( (_QWORD *)(a1 + 48), a2); return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(a1 + 64); }
Value: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI ADD RDI,0x20 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX],XMM0 LAB_001629fc: CALL 0x0015a4d0 LAB_00162a01: LEA RDI,[RBX + 0x30] MOV RSI,R14 CALL 0x0015b512 ADD RBX,0x40 MOV RDI,RBX XOR ESI,ESI ADD RSP,0x8 POP RBX POP R14 JMP 0x001476ac
/* minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)> > const&) */ void __thiscall minja::Value::Value(Value *this,shared_ptr *param_1) { *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; /* try { // try from 001629fc to 00162a00 has its CatchHandler @ 00162a22 */ std:: make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> (); std:: __shared_ptr<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>,(__gnu_cxx::_Lock_policy)2> ::__shared_ptr((__shared_ptr<std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>,(__gnu_cxx::_Lock_policy)2> *)(this + 0x30),(__shared_ptr *)param_1); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json((_func_decltype_nullptr *)(this + 0x40)); return; }
49,878
common_arg::common_arg(std::initializer_list<char const*> const&, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void (*)(common_params&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&))
monkey531[P]llama/common/arg.h
common_arg( const std::initializer_list<const char *> & args, const char * value_hint, const char * value_hint_2, const std::string & help, void (*handler)(common_params & params, const std::string &, const std::string &) ) : args(args), value_hint(value_hint), value_hint_2(value_hint_2), help(help), handler_str_str(handler) {}
O1
c
common_arg::common_arg(std::initializer_list<char const*> const&, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void (*)(common_params&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, 0x8(%rsp) movq %r8, %r15 movq %rcx, %r12 movq %rdx, %r13 movq %rsi, %r14 movq %rdi, %rbx leaq 0x14(%rsp), %rsi movl $0x0, (%rsi) leaq 0x7(%rsp), %rcx leaq 0x6(%rsp), %r8 movl $0x1, %edx callq 0x64c24 leaq 0x38(%rbx), %rax xorps %xmm0, %xmm0 movups %xmm0, 0x40(%rbx) movups %xmm0, 0x50(%rbx) movups %xmm0, 0x30(%rbx) movq %rax, 0x48(%rbx) movq %rax, 0x50(%rbx) movq $0x0, 0x58(%rbx) leaq 0x60(%rbx), %rbp movq (%r14), %rsi movq 0x8(%r14), %rdx leaq 0x5(%rsp), %rcx movq %rbp, %rdi callq 0x64ca6 movq %r13, 0x78(%rbx) movq %r12, 0x80(%rbx) movq $0x0, 0x88(%rbx) leaq 0x90(%rbx), %rdi leaq 0xa0(%rbx), %rax movq %rax, 0x90(%rbx) movq (%r15), %rsi movq 0x8(%r15), %rdx addq %rsi, %rdx callq 0x2d612 movb $0x0, 0xb0(%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0xb8(%rbx) movq 0x8(%rsp), %rax movq %rax, 0xc8(%rbx) movq $0x0, 0xd0(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq (%rbp), %rdi testq %rdi, %rdi je 0x61acc movq 0x70(%rbx), %rsi subq %rdi, %rsi callq 0x1b8f0 jmp 0x61acc movq %rax, %r14 leaq 0x30(%rbx), %rdi callq 0x64cec movq %rbx, %rdi callq 0x64cec movq %r14, %rdi callq 0x1c020
_ZN10common_argC2ERKSt16initializer_listIPKcES2_S2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPFvR13common_paramsSD_SD_E: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rsp+48h+var_40], r9 mov r15, r8 mov r12, rcx mov r13, rdx mov r14, rsi mov rbx, rdi lea rsi, [rsp+48h+var_34] mov dword ptr [rsi], 0 lea rcx, [rsp+48h+var_41] lea r8, [rsp+48h+var_42] mov edx, 1 call _ZNSt3setI13llama_exampleSt4lessIS0_ESaIS0_EEC2ESt16initializer_listIS0_ERKS2_RKS3_; std::set<llama_example>::set(std::initializer_list<llama_example>,std::less<llama_example> const&,std::allocator<llama_example> const&) lea rax, [rbx+38h] xorps xmm0, xmm0 movups xmmword ptr [rbx+40h], xmm0 movups xmmword ptr [rbx+50h], xmm0 movups xmmword ptr [rbx+30h], xmm0 mov [rbx+48h], rax mov [rbx+50h], rax mov qword ptr [rbx+58h], 0 lea rbp, [rbx+60h] mov rsi, [r14] mov rdx, [r14+8] lea rcx, [rsp+48h+var_43] mov rdi, rbp call _ZNSt6vectorIPKcSaIS1_EEC2ESt16initializer_listIS1_ERKS2_; std::vector<char const*>::vector(std::initializer_list<char const*>,std::allocator<char const*> const&) mov [rbx+78h], r13 mov [rbx+80h], r12 mov qword ptr [rbx+88h], 0 lea rdi, [rbx+90h] lea rax, [rbx+0A0h] mov [rbx+90h], rax mov rsi, [r15] mov rdx, [r15+8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov byte ptr [rbx+0B0h], 0 xorps xmm0, xmm0 movups xmmword ptr [rbx+0B8h], xmm0 mov rax, [rsp+48h+var_40] mov [rbx+0C8h], rax mov qword ptr [rbx+0D0h], 0 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [rbp+0]; void * test rdi, rdi jz short loc_61ACC mov rsi, [rbx+70h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_61ACC mov r14, rax loc_61ACC: lea rdi, [rbx+30h] call _ZNSt8_Rb_treeI13llama_exampleS0_St9_IdentityIS0_ESt4lessIS0_ESaIS0_EED2Ev; std::_Rb_tree<llama_example,llama_example,std::_Identity<llama_example>,std::less<llama_example>,std::allocator<llama_example>>::~_Rb_tree() mov rdi, rbx call _ZNSt8_Rb_treeI13llama_exampleS0_St9_IdentityIS0_ESt4lessIS0_ESaIS0_EED2Ev; std::_Rb_tree<llama_example,llama_example,std::_Identity<llama_example>,std::less<llama_example>,std::allocator<llama_example>>::~_Rb_tree() mov rdi, r14 call __Unwind_Resume
long long common_arg::common_arg(long long a1, _QWORD *a2, long long a3, long long a4, long long a5, long long a6) { long long result; // rax char v10; // [rsp+5h] [rbp-43h] BYREF char v11; // [rsp+6h] [rbp-42h] BYREF char v12; // [rsp+7h] [rbp-41h] BYREF long long v13; // [rsp+8h] [rbp-40h] _DWORD v14[13]; // [rsp+14h] [rbp-34h] BYREF v13 = a6; v14[0] = 0; std::set<llama_example>::set(a1, v14, 1LL, &v12, &v11); *(_OWORD *)(a1 + 64) = 0LL; *(_OWORD *)(a1 + 80) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_QWORD *)(a1 + 72) = a1 + 56; *(_QWORD *)(a1 + 80) = a1 + 56; *(_QWORD *)(a1 + 88) = 0LL; std::vector<char const*>::vector(a1 + 96, *a2, a2[1], &v10); *(_QWORD *)(a1 + 120) = a3; *(_QWORD *)(a1 + 128) = a4; *(_QWORD *)(a1 + 136) = 0LL; *(_QWORD *)(a1 + 144) = a1 + 160; std::string::_M_construct<char *>((_QWORD *)(a1 + 144), *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8)); *(_BYTE *)(a1 + 176) = 0; *(_OWORD *)(a1 + 184) = 0LL; result = v13; *(_QWORD *)(a1 + 200) = v13; *(_QWORD *)(a1 + 208) = 0LL; return result; }
common_arg: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RSP + 0x8],R9 MOV R15,R8 MOV R12,RCX MOV R13,RDX MOV R14,RSI MOV RBX,RDI LEA RSI,[RSP + 0x14] MOV dword ptr [RSI],0x0 LEA RCX,[RSP + 0x7] LEA R8,[RSP + 0x6] MOV EDX,0x1 CALL 0x00164c24 LEA RAX,[RBX + 0x38] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x40],XMM0 MOVUPS xmmword ptr [RBX + 0x50],XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOV qword ptr [RBX + 0x48],RAX MOV qword ptr [RBX + 0x50],RAX MOV qword ptr [RBX + 0x58],0x0 LEA RBP,[RBX + 0x60] MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] LAB_00161a31: LEA RCX,[RSP + 0x5] MOV RDI,RBP CALL 0x00164ca6 MOV qword ptr [RBX + 0x78],R13 MOV qword ptr [RBX + 0x80],R12 MOV qword ptr [RBX + 0x88],0x0 LEA RDI,[RBX + 0x90] LEA RAX,[RBX + 0xa0] MOV qword ptr [RBX + 0x90],RAX MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] ADD RDX,RSI LAB_00161a73: CALL 0x0012d612 LAB_00161a78: MOV byte ptr [RBX + 0xb0],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0xb8],XMM0 MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RBX + 0xc8],RAX MOV qword ptr [RBX + 0xd0],0x0 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* common_arg::common_arg(std::initializer_list<char const*> const&, char const*, char const*, std::__cxx11::string const&, void (*)(common_params&, std::__cxx11::string const&, std::__cxx11::string const&)) */ void __thiscall common_arg::common_arg (common_arg *this,initializer_list *param_1,char *param_2,char *param_3,string *param_4, _func_void_common_params_ptr_string_ptr_string_ptr *param_5) { int1 local_43; int1 local_42; int1 local_41; _func_void_common_params_ptr_string_ptr_string_ptr *local_40; int4 local_34; local_34 = 0; local_40 = param_5; std::set<llama_example,std::less<llama_example>,std::allocator<llama_example>>::set (this,&local_34,1,&local_41,&local_42); *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(common_arg **)(this + 0x48) = this + 0x38; *(common_arg **)(this + 0x50) = this + 0x38; *(int8 *)(this + 0x58) = 0; /* try { // try from 00161a31 to 00161a3d has its CatchHandler @ 00161ac9 */ std::vector<char_const*,std::allocator<char_const*>>::vector ((vector<char_const*,std::allocator<char_const*>> *)(this + 0x60),*(int8 *)param_1 ,*(int8 *)(param_1 + 8),&local_43); *(char **)(this + 0x78) = param_2; *(char **)(this + 0x80) = param_3; *(int8 *)(this + 0x88) = 0; *(common_arg **)(this + 0x90) = this + 0xa0; /* try { // try from 00161a73 to 00161a77 has its CatchHandler @ 00161aaf */ std::__cxx11::string::_M_construct<char*> (this + 0x90,*(long *)param_4,*(long *)(param_4 + 8) + *(long *)param_4); this[0xb0] = (common_arg)0x0; *(int8 *)(this + 0xb8) = 0; *(int8 *)(this + 0xc0) = 0; *(_func_void_common_params_ptr_string_ptr_string_ptr **)(this + 200) = local_40; *(int8 *)(this + 0xd0) = 0; return; }
49,879
LefDefParser::defwEnd()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
int defwEnd() { defwFunc = DEFW_END; // Current function of writer if (!defwFile) return 1; if (defwState == DEFW_ROW) fprintf(defwFile, ";\n\n"); // add the ; and \n for the previous row. fprintf(defwFile, "END DESIGN\n\n"); defwLines++; //defwFile = 0; defwState = DEFW_DONE; return DEFW_OK; }
O0
cpp
LefDefParser::defwEnd(): pushq %rax leaq 0x9010(%rip), %rax # 0x2b168 movl $0x66, (%rax) leaq 0x8ff3(%rip), %rax # 0x2b158 cmpq $0x0, (%rax) jne 0x22175 movl $0x1, 0x4(%rsp) jmp 0x221db leaq 0x8fe8(%rip), %rax # 0x2b164 cmpl $0x10, (%rax) jne 0x22199 leaq 0x8fd0(%rip), %rax # 0x2b158 movq (%rax), %rdi leaq 0x1f63(%rip), %rsi # 0x240f5 movb $0x0, %al callq 0x10f0 leaq 0x8fb8(%rip), %rax # 0x2b158 movq (%rax), %rdi leaq 0x3209(%rip), %rsi # 0x253b3 movb $0x0, %al callq 0x10f0 leaq 0x8fa8(%rip), %rax # 0x2b160 movl (%rax), %ecx addl $0x1, %ecx leaq 0x8f9c(%rip), %rax # 0x2b160 movl %ecx, (%rax) leaq 0x8f97(%rip), %rax # 0x2b164 movl $0x3e7, (%rax) # imm = 0x3E7 movl $0x0, 0x4(%rsp) movl 0x4(%rsp), %eax popq %rcx retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser7defwEndEv: push rax lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc mov dword ptr [rax], 66h ; 'f' lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile cmp qword ptr [rax], 0 jnz short loc_22175 mov [rsp+8+var_4], 1 jmp short loc_221DB loc_22175: lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 10h jnz short loc_22199 lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rdi, [rax] lea rsi, asc_240F5; ";\n\n" mov al, 0 call _fprintf loc_22199: lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rdi, [rax] lea rsi, aEndDesign; "END DESIGN\n\n" mov al, 0 call _fprintf lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov [rax], ecx lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState mov dword ptr [rax], 3E7h mov [rsp+8+var_4], 0 loc_221DB: mov eax, [rsp+8+var_4] pop rcx retn
long long LefDefParser::defwEnd(LefDefParser *this) { LefDefParser::defwFunc = 102; if ( LefDefParser::defwFile ) { if ( LefDefParser::defwState == 16 ) fprintf(LefDefParser::defwFile, ";\n\n"); fprintf(LefDefParser::defwFile, "END DESIGN\n\n"); ++LefDefParser::defwLines; LefDefParser::defwState = 999; return 0; } else { return 1; } }
defwEnd: PUSH RAX LEA RAX,[0x12b168] MOV dword ptr [RAX],0x66 LEA RAX,[0x12b158] CMP qword ptr [RAX],0x0 JNZ 0x00122175 MOV dword ptr [RSP + 0x4],0x1 JMP 0x001221db LAB_00122175: LEA RAX,[0x12b164] CMP dword ptr [RAX],0x10 JNZ 0x00122199 LEA RAX,[0x12b158] MOV RDI,qword ptr [RAX] LEA RSI,[0x1240f5] MOV AL,0x0 CALL 0x001010f0 LAB_00122199: LEA RAX,[0x12b158] MOV RDI,qword ptr [RAX] LEA RSI,[0x1253b3] MOV AL,0x0 CALL 0x001010f0 LEA RAX,[0x12b160] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x12b160] MOV dword ptr [RAX],ECX LEA RAX,[0x12b164] MOV dword ptr [RAX],0x3e7 MOV dword ptr [RSP + 0x4],0x0 LAB_001221db: MOV EAX,dword ptr [RSP + 0x4] POP RCX RET
/* LefDefParser::defwEnd() */ int4 LefDefParser::defwEnd(void) { int4 local_4; defwFunc = 0x66; if (defwFile == (FILE *)0x0) { local_4 = 1; } else { if (defwState == 0x10) { fprintf(defwFile,";\n\n"); } fprintf(defwFile,"END DESIGN\n\n"); defwLines = defwLines + 1; defwState = 999; local_4 = 0; } return local_4; }
49,880
end_key_cache_internal
eloqsql/mysys/mf_keycache.c
static void end_key_cache_internal(KEY_CACHE *keycache, my_bool cleanup, my_bool use_op_lock) { if (keycache->key_cache_inited) { keycache->interface_funcs->end(keycache->keycache_cb, cleanup); if (cleanup) { if (keycache->keycache_cb) { my_free(keycache->keycache_cb); keycache->keycache_cb= 0; } /* We do not destroy op_lock if we are going to reuse the same key cache. This happens if we are called from repartition_key_cache_internal(). */ if (use_op_lock) pthread_mutex_destroy(&keycache->op_lock); keycache->key_cache_inited= 0; } keycache->can_be_used= 0; } }
O3
c
end_key_cache_internal: cmpb $0x0, 0x48(%rdi) je 0x981a3 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edx, %r14d movq %rdi, %rbx movq 0x8(%rdi), %rdi movq 0x10(%rbx), %rax movsbl %sil, %r15d movl %r15d, %esi callq *0x40(%rax) testb %r15b, %r15b je 0x98195 movq 0x8(%rbx), %rdi testq %rdi, %rdi je 0x98183 callq 0x9fb2e movq $0x0, 0x8(%rbx) testb %r14b, %r14b je 0x98191 leaq 0x58(%rbx), %rdi callq 0x290c0 movb $0x0, 0x48(%rbx) movb $0x0, 0x49(%rbx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
end_key_cache_internal: cmp byte ptr [rdi+48h], 0 jz short locret_981A3 push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14d, edx mov rbx, rdi mov rdi, [rdi+8] mov rax, [rbx+10h] movsx r15d, sil mov esi, r15d call qword ptr [rax+40h] test r15b, r15b jz short loc_98195 mov rdi, [rbx+8] test rdi, rdi jz short loc_98183 call my_free mov qword ptr [rbx+8], 0 loc_98183: test r14b, r14b jz short loc_98191 lea rdi, [rbx+58h] call _pthread_mutex_destroy loc_98191: mov byte ptr [rbx+48h], 0 loc_98195: mov byte ptr [rbx+49h], 0 add rsp, 8 pop rbx pop r14 pop r15 pop rbp locret_981A3: retn
long long end_key_cache_internal(long long a1, char a2, char a3) { long long result; // rax long long v6; // rdi if ( *(_BYTE *)(a1 + 72) ) { result = (*(long long ( **)(_QWORD, _QWORD))(*(_QWORD *)(a1 + 16) + 64LL))( *(_QWORD *)(a1 + 8), (unsigned int)a2); if ( a2 ) { v6 = *(_QWORD *)(a1 + 8); if ( v6 ) { result = my_free(v6); *(_QWORD *)(a1 + 8) = 0LL; } if ( a3 ) result = pthread_mutex_destroy(a1 + 88); *(_BYTE *)(a1 + 72) = 0; } *(_BYTE *)(a1 + 73) = 0; } return result; }
end_key_cache_internal: CMP byte ptr [RDI + 0x48],0x0 JZ 0x001981a3 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14D,EDX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x8] MOV RAX,qword ptr [RBX + 0x10] MOVSX R15D,SIL MOV ESI,R15D CALL qword ptr [RAX + 0x40] TEST R15B,R15B JZ 0x00198195 MOV RDI,qword ptr [RBX + 0x8] TEST RDI,RDI JZ 0x00198183 CALL 0x0019fb2e MOV qword ptr [RBX + 0x8],0x0 LAB_00198183: TEST R14B,R14B JZ 0x00198191 LEA RDI,[RBX + 0x58] CALL 0x001290c0 LAB_00198191: MOV byte ptr [RBX + 0x48],0x0 LAB_00198195: MOV byte ptr [RBX + 0x49],0x0 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP LAB_001981a3: RET
void end_key_cache_internal(long param_1,char param_2,char param_3) { if (*(char *)(param_1 + 0x48) != '\0') { (**(code **)(*(long *)(param_1 + 0x10) + 0x40))(*(int8 *)(param_1 + 8),(int)param_2); if (param_2 != '\0') { if (*(long *)(param_1 + 8) != 0) { my_free(); *(int8 *)(param_1 + 8) = 0; } if (param_3 != '\0') { pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0x58)); } *(int1 *)(param_1 + 0x48) = 0; } *(int1 *)(param_1 + 0x49) = 0; } return; }
49,881
check_struct_option
eloqsql/mysys/my_getopt.c
static char *check_struct_option(char *cur_arg, char *key_name) { char *ptr, *end; DBUG_ENTER("check_struct_option"); ptr= strcend(cur_arg + 1, '.'); /* Skip the first character */ end= strcend(cur_arg, '='); /* If the first dot is after an equal sign, then it is part of a variable value and the option is not a struct option. Also, if the last character in the string before the ending NULL, or the character right before equal sign is the first dot found, the option is not a struct option. */ if (end - ptr > 1) { uint len= (uint) (ptr - cur_arg); set_if_smaller(len, FN_REFLEN-1); strmake(key_name, cur_arg, len); DBUG_RETURN(++ptr); } else { key_name[0]= 0; DBUG_RETURN(cur_arg); } }
O0
c
check_struct_option: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi addq $0x1, %rdi movl $0x2e, %esi callq 0x804e0 movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rdi movl $0x3d, %esi callq 0x804e0 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq -0x20(%rbp), %rcx subq %rcx, %rax cmpq $0x1, %rax jle 0x2aedd movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax movl %eax, -0x2c(%rbp) cmpl $0x1ff, -0x2c(%rbp) # imm = 0x1FF jbe 0x2aeb7 movl $0x1ff, -0x2c(%rbp) # imm = 0x1FF jmp 0x2aeb9 movq -0x18(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x2c(%rbp), %eax movl %eax, %edx callq 0x805c0 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq %rax, -0x8(%rbp) jmp 0x2aeec movq -0x18(%rbp), %rax movb $0x0, (%rax) movq -0x10(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
check_struct_option: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10] add rdi, 1 mov esi, 2Eh ; '.' call strcend mov [rbp+var_20], rax mov rdi, [rbp+var_10] mov esi, 3Dh ; '=' call strcend mov [rbp+var_28], rax mov rax, [rbp+var_28] mov rcx, [rbp+var_20] sub rax, rcx cmp rax, 1 jle short loc_2AEDD mov rax, [rbp+var_20] mov rcx, [rbp+var_10] sub rax, rcx mov [rbp+var_2C], eax cmp [rbp+var_2C], 1FFh jbe short loc_2AEB7 mov [rbp+var_2C], 1FFh loc_2AEB7: jmp short $+2 loc_2AEB9: mov rdi, [rbp+var_18] mov rsi, [rbp+var_10] mov eax, [rbp+var_2C] mov edx, eax call strmake mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov [rbp+var_8], rax jmp short loc_2AEEC loc_2AEDD: mov rax, [rbp+var_18] mov byte ptr [rax], 0 mov rax, [rbp+var_10] mov [rbp+var_8], rax loc_2AEEC: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long check_struct_option(long long a1, _BYTE *a2) { unsigned int v3; // [rsp+4h] [rbp-2Ch] long long v4; // [rsp+10h] [rbp-20h] v4 = strcend(a1 + 1, 46LL); if ( strcend(a1, 61LL) - v4 <= 1 ) { *a2 = 0; return a1; } else { v3 = v4 - a1; if ( (unsigned int)(v4 - a1) > 0x1FF ) v3 = 511; strmake(a2, a1, v3); return v4 + 1; } }
check_struct_option: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x1 MOV ESI,0x2e CALL 0x001804e0 MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x3d CALL 0x001804e0 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x20] SUB RAX,RCX CMP RAX,0x1 JLE 0x0012aedd MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX MOV dword ptr [RBP + -0x2c],EAX CMP dword ptr [RBP + -0x2c],0x1ff JBE 0x0012aeb7 MOV dword ptr [RBP + -0x2c],0x1ff LAB_0012aeb7: JMP 0x0012aeb9 LAB_0012aeb9: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x2c] MOV EDX,EAX CALL 0x001805c0 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV qword ptr [RBP + -0x8],RAX JMP 0x0012aeec LAB_0012aedd: MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x8],RAX LAB_0012aeec: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
long check_struct_option(long param_1,int1 *param_2) { long lVar1; int4 local_34; int8 local_10; local_10 = strcend(param_1 + 1,0x2e); lVar1 = strcend(param_1,0x3d); if (lVar1 - local_10 < 2) { *param_2 = 0; local_10 = param_1; } else { local_34 = (int)local_10 - (int)param_1; if (0x1ff < local_34) { local_34 = 0x1ff; } strmake(param_2,param_1,local_34); local_10 = local_10 + 1; } return local_10; }
49,882
ma_get_length
eloqsql/storage/maria/ma_blockrec.c
static ulong ma_get_length(const uchar **packet) { reg1 const uchar *pos= *packet; if (*pos < 251) { (*packet)++; return (ulong) *pos; } if (*pos == 251) { (*packet)+= 2; return (ulong) pos[1]; } if (*pos == 252) { (*packet)+= 3; return (ulong) uint2korr(pos+1); } if (*pos == 253) { (*packet)+= 4; return (ulong) uint3korr(pos+1); } DBUG_ASSERT(*pos == 254); (*packet)+= 5; return (ulong) uint4korr(pos+1); }
O0
c
ma_get_length: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xfb, %eax jge 0x5ce8f movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movzbl (%rax), %eax movq %rax, -0x8(%rbp) jmp 0x5cf49 movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xfb, %eax jne 0x5cebc movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x2, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movzbl 0x1(%rax), %eax movq %rax, -0x8(%rbp) jmp 0x5cf49 movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xfc, %eax jne 0x5cee6 movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x3, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movzwl 0x1(%rax), %eax movq %rax, -0x8(%rbp) jmp 0x5cf49 movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xfd, %eax jne 0x5cf2c movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x4, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movzbl 0x1(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x3(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax movq %rax, -0x8(%rbp) jmp 0x5cf49 jmp 0x5cf2e jmp 0x5cf30 movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x5, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movl 0x1(%rax), %eax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nop
ma_get_length: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FBh jge short loc_5CE8F mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 1 mov [rax], rcx mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov [rbp+var_8], rax jmp loc_5CF49 loc_5CE8F: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FBh jnz short loc_5CEBC mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 2 mov [rax], rcx mov rax, [rbp+var_18] movzx eax, byte ptr [rax+1] mov [rbp+var_8], rax jmp loc_5CF49 loc_5CEBC: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FCh jnz short loc_5CEE6 mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 3 mov [rax], rcx mov rax, [rbp+var_18] movzx eax, word ptr [rax+1] mov [rbp+var_8], rax jmp short loc_5CF49 loc_5CEE6: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FDh jnz short loc_5CF2C mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 4 mov [rax], rcx mov rax, [rbp+var_18] movzx eax, byte ptr [rax+1] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+2] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+3] shl ecx, 10h or eax, ecx mov eax, eax mov [rbp+var_8], rax jmp short loc_5CF49 loc_5CF2C: jmp short $+2 loc_5CF2E: jmp short $+2 loc_5CF30: mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 5 mov [rax], rcx mov rax, [rbp+var_18] mov eax, [rax+1] mov [rbp+var_8], rax loc_5CF49: mov rax, [rbp+var_8] pop rbp retn
long long ma_get_length(unsigned __int8 **a1) { unsigned __int8 *v2; // [rsp+0h] [rbp-18h] v2 = *a1; if ( **a1 >= 0xFBu ) { switch ( *v2 ) { case 0xFBu: *a1 += 2; return v2[1]; case 0xFCu: *a1 += 3; return *(unsigned __int16 *)(v2 + 1); case 0xFDu: *a1 += 4; return (v2[3] << 16) | (unsigned int)*(unsigned __int16 *)(v2 + 1); default: *a1 += 5; return *(unsigned int *)(v2 + 1); } } else { ++*a1; return *v2; } }
ma_get_length: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfb JGE 0x0015ce8f MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV qword ptr [RBP + -0x8],RAX JMP 0x0015cf49 LAB_0015ce8f: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfb JNZ 0x0015cebc MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x2 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x1] MOV qword ptr [RBP + -0x8],RAX JMP 0x0015cf49 LAB_0015cebc: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfc JNZ 0x0015cee6 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x3 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0x1] MOV qword ptr [RBP + -0x8],RAX JMP 0x0015cf49 LAB_0015cee6: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfd JNZ 0x0015cf2c MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x4 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x1] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x3] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0x8],RAX JMP 0x0015cf49 LAB_0015cf2c: JMP 0x0015cf2e LAB_0015cf2e: JMP 0x0015cf30 LAB_0015cf30: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x5 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x1] MOV qword ptr [RBP + -0x8],RAX LAB_0015cf49: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
uint ma_get_length(long *param_1) { byte *pbVar1; uint uVar2; pbVar1 = (byte *)*param_1; if (*pbVar1 < 0xfb) { *param_1 = *param_1 + 1; uVar2 = (uint)*pbVar1; } else if (*pbVar1 == 0xfb) { *param_1 = *param_1 + 2; uVar2 = (uint)pbVar1[1]; } else if (*pbVar1 == 0xfc) { *param_1 = *param_1 + 3; uVar2 = (uint)*(ushort *)(pbVar1 + 1); } else if (*pbVar1 == 0xfd) { *param_1 = *param_1 + 4; uVar2 = (uint)*(uint3 *)(pbVar1 + 1); } else { *param_1 = *param_1 + 5; uVar2 = *(uint *)(pbVar1 + 1); } return uVar2; }
49,883
google::protobuf::MessageOptions::MessageOptions(google::protobuf::MessageOptions const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
MessageOptions::MessageOptions(const MessageOptions& from) : ::PROTOBUF_NAMESPACE_ID::Message() { MessageOptions* const _this = this; (void)_this; new (&_impl_) Impl_{ /*decltype(_impl_._extensions_)*/{} , decltype(_impl_._has_bits_){from._impl_._has_bits_} , /*decltype(_impl_._cached_size_)*/{} , decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_} , decltype(_impl_.message_set_wire_format_){} , decltype(_impl_.no_standard_descriptor_accessor_){} , decltype(_impl_.deprecated_){} , decltype(_impl_.map_entry_){}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _impl_._extensions_.MergeFrom(internal_default_instance(), from._impl_._extensions_); ::memcpy(&_impl_.message_set_wire_format_, &from._impl_.message_set_wire_format_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.map_entry_) - reinterpret_cast<char*>(&_impl_.message_set_wire_format_)) + sizeof(_impl_.map_entry_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) }
O0
cpp
google::protobuf::MessageOptions::MessageOptions(google::protobuf::MessageOptions const&): subq $0xc8, %rsp movq %rdi, 0x78(%rsp) movq %rsi, 0x70(%rsp) movq 0x78(%rsp), %rdi movq %rdi, 0x40(%rsp) callq 0x1540b0 movq 0x40(%rsp), %rdi leaq 0x234ea4(%rip), %rax # 0x4fefb0 movq %rax, (%rdi) movq %rdi, 0x68(%rsp) addq $0x10, %rdi movq %rdi, 0x48(%rsp) movq %rdi, %rax movq %rax, 0x50(%rsp) callq 0x233310 jmp 0x2ca12c movq 0x50(%rsp), %rax movq 0x70(%rsp), %rcx movl 0x28(%rcx), %ecx movl %ecx, 0x18(%rax) movq %rax, %rdi addq $0x1c, %rdi movl $0x0, 0x1c(%rax) callq 0x1540e0 movq 0x50(%rsp), %rdi addq $0x20, %rdi movq 0x70(%rsp), %rsi addq $0x30, %rsi callq 0x2dfbe0 jmp 0x2ca168 movq 0x40(%rsp), %rcx movq 0x50(%rsp), %rax movb $0x0, 0x38(%rax) movb $0x0, 0x39(%rax) movb $0x0, 0x3a(%rax) movb $0x0, 0x3b(%rax) addq $0x8, %rcx movq 0x70(%rsp), %rax addq $0x8, %rax movq %rcx, 0x88(%rsp) movq %rax, 0x80(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x90(%rsp) movq 0x90(%rsp), %rax movq %rax, 0xc0(%rsp) movq 0xc0(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax setne %al movb %al, 0x3f(%rsp) movb 0x3f(%rsp), %al testb $0x1, %al jne 0x2ca1f3 jmp 0x2ca29f movq 0x80(%rsp), %rax movq %rax, 0xa0(%rsp) movq $0x0, 0x98(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x28(%rsp) movq %rax, 0xb0(%rsp) movq 0xb0(%rsp), %rax movq %rax, 0xb8(%rsp) movq 0xb8(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0x2ca261 movq 0x28(%rsp), %rdi callq 0x155370 addq $0x8, %rax movq %rax, 0xa8(%rsp) jmp 0x2ca27f movq 0x98(%rsp), %rax callq *%rax movq %rax, 0x20(%rsp) jmp 0x2ca272 movq 0x20(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0xa8(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rsi movq 0x30(%rsp), %rdi callq 0x155200 jmp 0x2ca29d jmp 0x2ca29f jmp 0x2ca2a1 movq 0x40(%rsp), %rax addq $0x10, %rax movq %rax, 0x8(%rsp) callq 0x28d7c0 movq %rax, 0x10(%rsp) jmp 0x2ca2bb movq 0x10(%rsp), %rsi movq 0x8(%rsp), %rdi movq 0x70(%rsp), %rdx addq $0x10, %rdx callq 0x226bc0 jmp 0x2ca2d5 movq 0x40(%rsp), %rax movq %rax, %rdi addq $0x10, %rdi addq $0x38, %rdi movq 0x70(%rsp), %rsi addq $0x10, %rsi addq $0x38, %rsi movq %rax, %rdx addq $0x10, %rdx addq $0x3b, %rdx addq $0x10, %rax addq $0x38, %rax subq %rax, %rdx addq $0x1, %rdx callq 0x8b800 addq $0xc8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) jmp 0x2ca341 movq 0x48(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) callq 0x2148e0 movq 0x40(%rsp), %rdi callq 0x1540a0 movq 0x60(%rsp), %rdi callq 0x90db0 nopw %cs:(%rax,%rax)
_ZN6google8protobuf14MessageOptionsC2ERKS1_: sub rsp, 0C8h mov [rsp+0C8h+var_50], rdi mov [rsp+0C8h+var_58], rsi mov rdi, [rsp+0C8h+var_50]; this mov [rsp+0C8h+var_88], rdi call _ZN6google8protobuf7MessageC2Ev; google::protobuf::Message::Message(void) mov rdi, [rsp+0C8h+var_88] lea rax, off_4FEFB0 mov [rdi], rax mov [rsp+0C8h+var_60], rdi add rdi, 10h; this mov [rsp+0C8h+var_80], rdi mov rax, rdi mov [rsp+0C8h+var_78], rax call _ZN6google8protobuf8internal12ExtensionSetC2Ev; google::protobuf::internal::ExtensionSet::ExtensionSet(void) jmp short $+2 loc_2CA12C: mov rax, [rsp+0C8h+var_78] mov rcx, [rsp+0C8h+var_58] mov ecx, [rcx+28h] mov [rax+18h], ecx mov rdi, rax add rdi, 1Ch; this mov dword ptr [rax+1Ch], 0 call _ZN6google8protobuf8internal10CachedSizeC2Ev; google::protobuf::internal::CachedSize::CachedSize(void) mov rdi, [rsp+0C8h+var_78] add rdi, 20h ; ' '; this mov rsi, [rsp+0C8h+var_58] add rsi, 30h ; '0' call _ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEEC2ERKS3_; google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::RepeatedPtrField(google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption> const&) jmp short $+2 loc_2CA168: mov rcx, [rsp+0C8h+var_88] mov rax, [rsp+0C8h+var_78] mov byte ptr [rax+38h], 0 mov byte ptr [rax+39h], 0 mov byte ptr [rax+3Ah], 0 mov byte ptr [rax+3Bh], 0 add rcx, 8 mov rax, [rsp+0C8h+var_58] add rax, 8 mov [rsp+0C8h+var_40], rcx mov [rsp+0C8h+var_48], rax mov rax, [rsp+0C8h+var_40] mov [rsp+0C8h+var_98], rax mov rax, [rsp+0C8h+var_48] mov [rsp+0C8h+var_38], rax mov rax, [rsp+0C8h+var_38] mov [rsp+0C8h+var_8], rax mov rax, [rsp+0C8h+var_8] mov rax, [rax] and rax, 1 cmp rax, 0 setnz al mov [rsp+0C8h+var_89], al mov al, [rsp+0C8h+var_89] test al, 1 jnz short loc_2CA1F3 jmp loc_2CA29F loc_2CA1F3: mov rax, [rsp+0C8h+var_48] mov [rsp+0C8h+var_28], rax mov [rsp+0C8h+var_30], 0 mov rax, [rsp+0C8h+var_28] mov [rsp+0C8h+var_A0], rax mov [rsp+0C8h+var_18], rax mov rax, [rsp+0C8h+var_18] mov [rsp+0C8h+var_10], rax mov rax, [rsp+0C8h+var_10] mov rax, [rax] and rax, 1 cmp rax, 0 jz short loc_2CA261 mov rdi, [rsp+0C8h+var_A0] call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void) add rax, 8 mov [rsp+0C8h+var_20], rax jmp short loc_2CA27F loc_2CA261: mov rax, [rsp+0C8h+var_30] call rax mov [rsp+0C8h+var_A8], rax jmp short $+2 loc_2CA272: mov rax, [rsp+0C8h+var_A8] mov [rsp+0C8h+var_20], rax loc_2CA27F: mov rax, [rsp+0C8h+var_20] mov qword ptr [rsp+0C8h+var_B0], rax mov rsi, qword ptr [rsp+0C8h+var_B0]; int mov rdi, [rsp+0C8h+var_98]; void * call _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&) jmp short $+2 loc_2CA29D: jmp short $+2 loc_2CA29F: jmp short $+2 loc_2CA2A1: mov rax, [rsp+0C8h+var_88] add rax, 10h mov [rsp+0C8h+var_C0], rax call _ZN6google8protobuf14MessageOptions25internal_default_instanceEv; google::protobuf::MessageOptions::internal_default_instance(void) mov [rsp+0C8h+var_B8], rax jmp short $+2 loc_2CA2BB: mov rsi, [rsp+0C8h+var_B8]; google::protobuf::MessageLite * mov rdi, [rsp+0C8h+var_C0]; this mov rdx, [rsp+0C8h+var_58] add rdx, 10h; google::protobuf::internal::ExtensionSet * call _ZN6google8protobuf8internal12ExtensionSet9MergeFromEPKNS0_11MessageLiteERKS2_; google::protobuf::internal::ExtensionSet::MergeFrom(google::protobuf::MessageLite const*,google::protobuf::internal::ExtensionSet const&) jmp short $+2 loc_2CA2D5: mov rax, [rsp+0C8h+var_88] mov rdi, rax add rdi, 10h add rdi, 38h ; '8' mov rsi, [rsp+0C8h+var_58] add rsi, 10h add rsi, 38h ; '8' mov rdx, rax add rdx, 10h add rdx, 3Bh ; ';' add rax, 10h add rax, 38h ; '8' sub rdx, rax add rdx, 1 call _memcpy add rsp, 0C8h retn mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax jmp short loc_2CA341 mov rdi, [rsp+arg_40]; this mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax call _ZN6google8protobuf8internal12ExtensionSetD2Ev; google::protobuf::internal::ExtensionSet::~ExtensionSet() loc_2CA341: mov rdi, [rsp+arg_38]; this call _ZN6google8protobuf7MessageD2Ev; google::protobuf::Message::~Message() mov rdi, [rsp+arg_58] call __Unwind_Resume
long long google::protobuf::MessageOptions::MessageOptions( google::protobuf::MessageOptions *this, const google::protobuf::MessageOptions *a2) { google::protobuf::MessageOptions *v2; // rdi int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d google::protobuf::MessageLite *v8; // [rsp+10h] [rbp-B8h] char *v10; // [rsp+50h] [rbp-78h] unsigned long long v12; // [rsp+A8h] [rbp-20h] google::protobuf::Message::Message(this); *(_QWORD *)this = off_4FEFB0; v10 = (char *)this + 16; google::protobuf::internal::ExtensionSet::ExtensionSet((google::protobuf::MessageOptions *)((char *)this + 16)); *((_DWORD *)this + 10) = *((_DWORD *)a2 + 10); *((_DWORD *)this + 11) = 0; google::protobuf::internal::CachedSize::CachedSize((google::protobuf::MessageOptions *)((char *)this + 44)); v2 = (google::protobuf::MessageOptions *)((char *)this + 48); google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::RepeatedPtrField( (_DWORD)v10 + 32, (_DWORD)a2 + 48, v3, v4, v5, v6); v10[56] = 0; v10[57] = 0; v10[58] = 0; v10[59] = 0; if ( (*((_QWORD *)a2 + 1) & 1LL) != 0 ) { v12 = google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>((_QWORD *)a2 + 1) + 8; v2 = (google::protobuf::MessageOptions *)((char *)this + 8); google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>((char *)this + 8, v12); } v8 = (google::protobuf::MessageLite *)google::protobuf::MessageOptions::internal_default_instance(v2); google::protobuf::internal::ExtensionSet::MergeFrom( (google::protobuf::MessageOptions *)((char *)this + 16), v8, (const google::protobuf::MessageOptions *)((char *)a2 + 16)); return memcpy((char *)this + 72, (char *)a2 + 72, 4LL); }
49,884
google::protobuf::MessageOptions::MessageOptions(google::protobuf::MessageOptions const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
MessageOptions::MessageOptions(const MessageOptions& from) : ::PROTOBUF_NAMESPACE_ID::Message() { MessageOptions* const _this = this; (void)_this; new (&_impl_) Impl_{ /*decltype(_impl_._extensions_)*/{} , decltype(_impl_._has_bits_){from._impl_._has_bits_} , /*decltype(_impl_._cached_size_)*/{} , decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_} , decltype(_impl_.message_set_wire_format_){} , decltype(_impl_.no_standard_descriptor_accessor_){} , decltype(_impl_.deprecated_){} , decltype(_impl_.map_entry_){}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _impl_._extensions_.MergeFrom(internal_default_instance(), from._impl_._extensions_); ::memcpy(&_impl_.message_set_wire_format_, &from._impl_.message_set_wire_format_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.map_entry_) - reinterpret_cast<char*>(&_impl_.message_set_wire_format_)) + sizeof(_impl_.map_entry_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) }
O3
cpp
google::protobuf::MessageOptions::MessageOptions(google::protobuf::MessageOptions const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r15 movq %rdi, %rbx leaq 0x8(%rdi), %r14 xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) leaq 0x1191ca(%rip), %rax # 0x20d010 movq %rax, (%rdi) leaq 0x10(%rdi), %r12 movl $0x0, 0x18(%rdi) movq $0x0, 0x20(%rdi) movl 0x28(%rsi), %eax movl %eax, 0x28(%rdi) movups %xmm0, 0x2c(%rdi) movups %xmm0, 0x38(%rdi) cmpl $0x0, 0x38(%rsi) je 0xf3e86 leaq 0x30(%rbx), %rdi leaq 0x30(%r15), %rsi leaq 0x7917(%rip), %rdx # 0xfb796 xorl %ecx, %ecx callq 0x74546 movl $0x0, 0x48(%rbx) movq 0x8(%r15), %rsi testb $0x1, %sil je 0xf3ea7 andq $-0x4, %rsi addq $0x8, %rsi movq %r14, %rdi callq 0x734be leaq 0x10(%r15), %rdx leaq 0x11e0e6(%rip), %rsi # 0x211f98 movq %r12, %rdi callq 0x30754 movl 0x48(%r15), %eax movl %eax, 0x48(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %r15 movq %r12, %rdi callq 0xb30ce jmp 0xf3edd movq %rax, %r15 leaq 0x11663c(%rip), %rax # 0x20a520 addq $0x10, %rax movq %rax, (%rbx) movq %r14, %rdi callq 0x73456 movq %r15, %rdi callq 0x2e220 nop
_ZN6google8protobuf14MessageOptionsC2ERKS1_: push r15 push r14 push r12 push rbx push rax mov r15, rsi mov rbx, rdi lea r14, [rdi+8] xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 lea rax, off_20D010 mov [rdi], rax lea r12, [rdi+10h] mov dword ptr [rdi+18h], 0 mov qword ptr [rdi+20h], 0 mov eax, [rsi+28h] mov [rdi+28h], eax movups xmmword ptr [rdi+2Ch], xmm0 movups xmmword ptr [rdi+38h], xmm0 cmp dword ptr [rsi+38h], 0 jz short loc_F3E86 lea rdi, [rbx+30h] lea rsi, [r15+30h] lea rdx, _ZN6google8protobuf8internal20RepeatedPtrFieldBase18MergeFromInnerLoopINS0_16RepeatedPtrFieldINS0_19UninterpretedOptionEE11TypeHandlerEEEvPPvS9_ii; google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInnerLoop<google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::TypeHandler>(void **,void **,int,int) xor ecx, ecx call _ZN6google8protobuf8internal20RepeatedPtrFieldBase17MergeFromInternalERKS2_MS2_FvPPvS6_iiE; google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInternal(google::protobuf::internal::RepeatedPtrFieldBase const&,void (google::protobuf::internal::RepeatedPtrFieldBase::*)(void **,void **,int,int)) loc_F3E86: mov dword ptr [rbx+48h], 0 mov rsi, [r15+8] test sil, 1 jz short loc_F3EA7 and rsi, 0FFFFFFFFFFFFFFFCh add rsi, 8 mov rdi, r14 call _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&) loc_F3EA7: lea rdx, [r15+10h]; google::protobuf::internal::ExtensionSet * lea rsi, _ZN6google8protobuf33_MessageOptions_default_instance_E; google::protobuf::MessageLite * mov rdi, r12; this call _ZN6google8protobuf8internal12ExtensionSet9MergeFromEPKNS0_11MessageLiteERKS2_; google::protobuf::internal::ExtensionSet::MergeFrom(google::protobuf::MessageLite const*,google::protobuf::internal::ExtensionSet const&) mov eax, [r15+48h] mov [rbx+48h], eax add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn mov r15, rax mov rdi, r12; this call _ZN6google8protobuf8internal12ExtensionSetD2Ev; google::protobuf::internal::ExtensionSet::~ExtensionSet() jmp short loc_F3EDD mov r15, rax loc_F3EDD: lea rax, _ZTVN6google8protobuf11MessageLiteE; `vtable for'google::protobuf::MessageLite add rax, 10h mov [rbx], rax mov rdi, r14; this call _ZN6google8protobuf8internal16InternalMetadataD2Ev; google::protobuf::internal::InternalMetadata::~InternalMetadata() mov rdi, r15 call __Unwind_Resume
long long google::protobuf::MessageOptions::MessageOptions( google::protobuf::MessageOptions *this, const google::protobuf::MessageOptions *a2, long long a3, int a4, int a5, int a6) { long long v7; // rsi long long result; // rax *(_OWORD *)((char *)this + 8) = 0LL; *(_QWORD *)this = off_20D010; *((_DWORD *)this + 6) = 0; *((_QWORD *)this + 4) = 0LL; *((_DWORD *)this + 10) = *((_DWORD *)a2 + 10); *(_OWORD *)((char *)this + 44) = 0LL; *(_OWORD *)((char *)this + 56) = 0LL; if ( *((_DWORD *)a2 + 14) ) google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInternal( (long long)this + 48, (long long)a2 + 48, (char *)google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInnerLoop<google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::TypeHandler>, 0LL); *((_DWORD *)this + 18) = 0; v7 = *((_QWORD *)a2 + 1); if ( (v7 & 1) != 0 ) google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>( (long long *)this + 1, (const google::protobuf::UnknownFieldSet *)((v7 & 0xFFFFFFFFFFFFFFFCLL) + 8)); google::protobuf::internal::ExtensionSet::MergeFrom( (google::protobuf::MessageOptions *)((char *)this + 16), (const google::protobuf::MessageLite *)&google::protobuf::_MessageOptions_default_instance_, (const google::protobuf::MessageOptions *)((char *)a2 + 16), a4, a5, a6); result = *((unsigned int *)a2 + 18); *((_DWORD *)this + 18) = result; return result; }
MessageOptions: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R15,RSI MOV RBX,RDI LEA R14,[RDI + 0x8] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 LEA RAX,[0x30d010] MOV qword ptr [RDI],RAX LEA R12,[RDI + 0x10] MOV dword ptr [RDI + 0x18],0x0 MOV qword ptr [RDI + 0x20],0x0 MOV EAX,dword ptr [RSI + 0x28] MOV dword ptr [RDI + 0x28],EAX MOVUPS xmmword ptr [RDI + 0x2c],XMM0 MOVUPS xmmword ptr [RDI + 0x38],XMM0 CMP dword ptr [RSI + 0x38],0x0 JZ 0x001f3e86 LEA RDI,[RBX + 0x30] LEA RSI,[R15 + 0x30] LAB_001f3e78: LEA RDX,[0x1fb796] XOR ECX,ECX CALL 0x00174546 LAB_001f3e86: MOV dword ptr [RBX + 0x48],0x0 MOV RSI,qword ptr [R15 + 0x8] TEST SIL,0x1 JZ 0x001f3ea7 AND RSI,-0x4 ADD RSI,0x8 LAB_001f3e9f: MOV RDI,R14 CALL 0x001734be LAB_001f3ea7: LEA RDX,[R15 + 0x10] LEA RSI,[0x311f98] MOV RDI,R12 CALL 0x00130754 LAB_001f3eba: MOV EAX,dword ptr [R15 + 0x48] MOV dword ptr [RBX + 0x48],EAX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* google::protobuf::MessageOptions::MessageOptions(google::protobuf::MessageOptions const&) */ void __thiscall google::protobuf::MessageOptions::MessageOptions(MessageOptions *this,MessageOptions *param_1) { *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int ***)this = &PTR__MessageOptions_0030d010; *(int4 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int4 *)(this + 0x28) = *(int4 *)(param_1 + 0x28); *(int8 *)(this + 0x2c) = 0; *(int8 *)(this + 0x34) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; if (*(int *)(param_1 + 0x38) != 0) { /* try { // try from 001f3e78 to 001f3e85 has its CatchHandler @ 001f3ecd */ internal::RepeatedPtrFieldBase::MergeFromInternal ((RepeatedPtrFieldBase *)(this + 0x30), (_func_void_void_ptr_ptr_void_ptr_ptr_int_int *)(param_1 + 0x30)); } *(int4 *)(this + 0x48) = 0; if ((*(ulong *)(param_1 + 8) & 1) != 0) { /* try { // try from 001f3e9f to 001f3eb9 has its CatchHandler @ 001f3eda */ internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(this + 8), (UnknownFieldSet *)((*(ulong *)(param_1 + 8) & 0xfffffffffffffffc) + 8)); } internal::ExtensionSet::MergeFrom ((ExtensionSet *)(this + 0x10),(MessageLite *)_MessageOptions_default_instance_, (ExtensionSet *)(param_1 + 0x10)); *(int4 *)(this + 0x48) = *(int4 *)(param_1 + 0x48); return; }
49,885
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan_number()
monkey531[P]llama/common/json.hpp
token_type scan_number() // lgtm [cpp/use-of-goto] { // reset token_buffer to store the number's bytes reset(); // the type of the parsed number; initially set to unsigned; will be // changed if minus sign, decimal point or exponent is read token_type number_type = token_type::value_unsigned; // state (init): we just found out we need to scan a number switch (current) { case '-': { add(current); goto scan_number_minus; } case '0': { add(current); goto scan_number_zero; } case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any1; } // all other characters are rejected outside scan_number() default: // LCOV_EXCL_LINE JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE } scan_number_minus: // state: we just parsed a leading minus sign number_type = token_type::value_integer; switch (get()) { case '0': { add(current); goto scan_number_zero; } case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any1; } default: { error_message = "invalid number; expected digit after '-'"; return token_type::parse_error; } } scan_number_zero: // state: we just parse a zero (maybe with a leading minus sign) switch (get()) { case '.': { add(decimal_point_char); goto scan_number_decimal1; } case 'e': case 'E': { add(current); goto scan_number_exponent; } default: goto scan_number_done; } scan_number_any1: // state: we just parsed a number 0-9 (maybe with a leading minus sign) switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any1; } case '.': { add(decimal_point_char); goto scan_number_decimal1; } case 'e': case 'E': { add(current); goto scan_number_exponent; } default: goto scan_number_done; } scan_number_decimal1: // state: we just parsed a decimal point number_type = token_type::value_float; switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_decimal2; } default: { error_message = "invalid number; expected digit after '.'"; return token_type::parse_error; } } scan_number_decimal2: // we just parsed at least one number after a decimal point switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_decimal2; } case 'e': case 'E': { add(current); goto scan_number_exponent; } default: goto scan_number_done; } scan_number_exponent: // we just parsed an exponent number_type = token_type::value_float; switch (get()) { case '+': case '-': { add(current); goto scan_number_sign; } case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any2; } default: { error_message = "invalid number; expected '+', '-', or digit after exponent"; return token_type::parse_error; } } scan_number_sign: // we just parsed an exponent sign switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any2; } default: { error_message = "invalid number; expected digit after exponent sign"; return token_type::parse_error; } } scan_number_any2: // we just parsed a number after the exponent or exponent sign switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any2; } default: goto scan_number_done; } scan_number_done: // unget the character after the number (we only read it to know that // we are done scanning a number) unget(); char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg) errno = 0; // try to parse integers first and fall back to floats if (number_type == token_type::value_unsigned) { const auto x = std::strtoull(token_buffer.data(), &endptr, 10); // we checked the number format before JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); if (errno == 0) { value_unsigned = static_cast<number_unsigned_t>(x); if (value_unsigned == x) { return token_type::value_unsigned; } } } else if (number_type == token_type::value_integer) { const auto x = std::strtoll(token_buffer.data(), &endptr, 10); // we checked the number format before JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); if (errno == 0) { value_integer = static_cast<number_integer_t>(x); if (value_integer == x) { return token_type::value_integer; } } } // this code is reached if we parse a floating-point number or if an // integer conversion above failed strtof(value_float, token_buffer.data(), &endptr); // we checked the number format before JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); return token_type::value_float; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan_number(): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0x5c4d2 movl 0x14(%rbx), %eax leal -0x31(%rax), %ecx cmpl $0x9, %ecx jae 0x5c126 leaq 0x50(%rbx), %r14 movl $0x5, %ebp movsbl %al, %esi movq %r14, %rdi callq 0x1b750 leaq 0x50(%rbx), %r14 movq %rbx, %rdi callq 0x1c2ee leal -0x30(%rax), %ecx cmpl $0xa, %ecx jae 0x5c036 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x1b750 jmp 0x5c018 cmpl $0x2e, %eax je 0x5c198 cmpl $0x45, %eax je 0x5c1f4 cmpl $0x65, %eax je 0x5c1f4 movq %rbx, %rdi callq 0x5c348 movq $0x0, (%rsp) callq 0x1b060 movq %rax, %r14 movl $0x0, (%rax) movq 0x50(%rbx), %rdi movq %rsp, %r15 movq %r15, %rsi movl $0xa, %edx cmpl $0x5, %ebp jne 0x5c0ab callq 0x1bbb0 movq 0x50(%rbx), %rcx addq 0x58(%rbx), %rcx cmpq %rcx, (%r15) jne 0x5c2ee cmpl $0x0, (%r14) jne 0x5c0c7 movl $0x5, %ecx movl $0x80, %edx jmp 0x5c11d callq 0x1b120 movq 0x50(%rbx), %rcx addq 0x58(%rbx), %rcx cmpq %rcx, (%r15) jne 0x5c30a cmpl $0x0, (%r14) je 0x5c113 movq 0x50(%rbx), %rdi movq %rsp, %r14 movq %r14, %rsi callq 0x1b6d0 movsd %xmm0, 0x88(%rbx) movq 0x50(%rbx), %rax addq 0x58(%rbx), %rax movl $0x7, %ecx cmpq %rax, (%r14) je 0x5c22e leaq 0x922de(%rip), %rdi # 0xee3d9 leaq 0x8c25c(%rip), %rdx # 0xe835e leaq 0x93121(%rip), %rcx # 0xef22a movl $0x21d6, %esi # imm = 0x21D6 jmp 0x5c340 movl $0x6, %ecx movl $0x78, %edx movq %rax, (%rbx,%rdx) jmp 0x5c22e cmpl $0x30, %eax je 0x5c166 cmpl $0x2d, %eax jne 0x5c326 leaq 0x50(%rbx), %r14 movq %r14, %rdi movl $0x2d, %esi callq 0x1b750 movq %rbx, %rdi callq 0x1c2ee leal -0x31(%rax), %ecx cmpl $0x9, %ecx jae 0x5c2c7 movl 0x14(%rbx), %eax movl $0x6, %ebp jmp 0x5c009 leaq 0x50(%rbx), %rdi movl $0x30, %esi callq 0x1b750 movl $0x5, %ebp movq %rbx, %rdi callq 0x1c2ee cmpl $0x65, %eax je 0x5c1f0 cmpl $0x45, %eax je 0x5c1f0 cmpl $0x2e, %eax jne 0x5c051 leaq 0x50(%rbx), %r14 movsbl 0x90(%rbx), %esi movq %r14, %rdi callq 0x1b750 movq %rbx, %rdi callq 0x1c2ee addl $-0x30, %eax cmpl $0x9, %eax ja 0x5c1e7 leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x1b750 movq %rbx, %rdi callq 0x1c2ee leal -0x30(%rax), %ecx cmpl $0xa, %ecx jb 0x5c1bb cmpl $0x65, %eax je 0x5c1f4 cmpl $0x45, %eax jne 0x5c27b jmp 0x5c1f4 leaq 0x92fa5(%rip), %rax # 0xef193 jmp 0x5c225 leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x1b750 movq %rbx, %rdi callq 0x1c2ee leal -0x30(%rax), %ecx cmpl $0xa, %ecx jb 0x5c23b cmpl $0x2d, %eax je 0x5c29b cmpl $0x2b, %eax je 0x5c29b leaq 0x92f97(%rip), %rax # 0xef1bc movq %rax, 0x70(%rbx) movl $0xe, %ecx movl %ecx, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x1b750 movq %rbx, %rdi callq 0x1c2ee addl $-0x30, %eax cmpl $0x9, %eax ja 0x5c27b leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x1b750 movq %rbx, %rdi callq 0x1c2ee addl $-0x30, %eax cmpl $0xa, %eax jb 0x5c25f movq %rbx, %rdi callq 0x5c348 movq $0x0, (%rsp) callq 0x1b060 movl $0x0, (%rax) jmp 0x5c0c7 movsbl 0x14(%rbx), %esi leaq 0x50(%rbx), %r14 movq %r14, %rdi callq 0x1b750 movq %rbx, %rdi callq 0x1c2ee addl $-0x30, %eax cmpl $0xa, %eax jb 0x5c23f leaq 0x92f35(%rip), %rax # 0xef1f7 jmp 0x5c225 cmpl $0x30, %eax je 0x5c2d8 leaq 0x92e97(%rip), %rax # 0xef16a jmp 0x5c225 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x1b750 movl $0x6, %ebp jmp 0x5c179 leaq 0x920e4(%rip), %rdi # 0xee3d9 leaq 0x8c062(%rip), %rdx # 0xe835e leaq 0x92f27(%rip), %rcx # 0xef22a movl $0x21b5, %esi # imm = 0x21B5 jmp 0x5c340 leaq 0x920c8(%rip), %rdi # 0xee3d9 leaq 0x8c046(%rip), %rdx # 0xe835e leaq 0x92f0b(%rip), %rcx # 0xef22a movl $0x21c5, %esi # imm = 0x21C5 jmp 0x5c340 leaq 0x920ac(%rip), %rdi # 0xee3d9 leaq 0x8c02a(%rip), %rdx # 0xe835e leaq 0x8fb98(%rip), %rcx # 0xebed3 movl $0x20be, %esi # imm = 0x20BE xorl %eax, %eax callq 0x1bf40 nop
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_numberEv: push rbp push r15 push r14 push rbx push rax mov rbx, rdi call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(void) mov eax, [rbx+14h] lea ecx, [rax-31h] cmp ecx, 9 jnb loc_5C126 lea r14, [rbx+50h] mov ebp, 5 loc_5C009: movsx esi, al mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) lea r14, [rbx+50h] loc_5C018: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) lea ecx, [rax-30h] cmp ecx, 0Ah jnb short loc_5C036 movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) jmp short loc_5C018 loc_5C036: cmp eax, 2Eh ; '.' jz loc_5C198 cmp eax, 45h ; 'E' jz loc_5C1F4 cmp eax, 65h ; 'e' jz loc_5C1F4 loc_5C051: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void) mov [rsp+28h+var_28], 0 call ___errno_location mov r14, rax mov dword ptr [rax], 0 mov rdi, [rbx+50h] mov r15, rsp mov rsi, r15 mov edx, 0Ah cmp ebp, 5 jnz short loc_5C0AB call _strtoull mov rcx, [rbx+50h] add rcx, [rbx+58h] cmp [r15], rcx jnz loc_5C2EE cmp dword ptr [r14], 0 jnz short loc_5C0C7 mov ecx, 5 mov edx, 80h jmp short loc_5C11D loc_5C0AB: call _strtoll mov rcx, [rbx+50h] add rcx, [rbx+58h] cmp [r15], rcx jnz loc_5C30A cmp dword ptr [r14], 0 jz short loc_5C113 loc_5C0C7: mov rdi, [rbx+50h] mov r14, rsp mov rsi, r14 call _strtod movsd qword ptr [rbx+88h], xmm0 mov rax, [rbx+50h] add rax, [rbx+58h] mov ecx, 7 cmp [r14], rax jz loc_5C22E lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"... mov esi, 21D6h jmp loc_5C340 loc_5C113: mov ecx, 6 mov edx, 78h ; 'x' loc_5C11D: mov [rbx+rdx], rax jmp loc_5C22E loc_5C126: cmp eax, 30h ; '0' jz short loc_5C166 cmp eax, 2Dh ; '-' jnz loc_5C326 lea r14, [rbx+50h] mov rdi, r14 mov esi, 2Dh ; '-' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) lea ecx, [rax-31h] cmp ecx, 9 jnb loc_5C2C7 mov eax, [rbx+14h] mov ebp, 6 jmp loc_5C009 loc_5C166: lea rdi, [rbx+50h] mov esi, 30h ; '0' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov ebp, 5 loc_5C179: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 65h ; 'e' jz short loc_5C1F0 cmp eax, 45h ; 'E' jz short loc_5C1F0 cmp eax, 2Eh ; '.' jnz loc_5C051 lea r14, [rbx+50h] loc_5C198: movsx esi, byte ptr [rbx+90h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) add eax, 0FFFFFFD0h cmp eax, 9 ja short loc_5C1E7 lea r14, [rbx+50h] loc_5C1BB: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) lea ecx, [rax-30h] cmp ecx, 0Ah jb short loc_5C1BB cmp eax, 65h ; 'e' jz short loc_5C1F4 cmp eax, 45h ; 'E' jnz loc_5C27B jmp short loc_5C1F4 loc_5C1E7: lea rax, aInvalidNumberE; "invalid number; expected digit after '."... jmp short loc_5C225 loc_5C1F0: lea r14, [rbx+50h] loc_5C1F4: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) lea ecx, [rax-30h] cmp ecx, 0Ah jb short loc_5C23B cmp eax, 2Dh ; '-' jz loc_5C29B cmp eax, 2Bh ; '+' jz short loc_5C29B lea rax, aInvalidNumberE_0; "invalid number; expected '+', '-', or d"... loc_5C225: mov [rbx+70h], rax mov ecx, 0Eh loc_5C22E: mov eax, ecx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_5C23B: lea r14, [rbx+50h] loc_5C23F: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) add eax, 0FFFFFFD0h cmp eax, 9 ja short loc_5C27B lea r14, [rbx+50h] loc_5C25F: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) add eax, 0FFFFFFD0h cmp eax, 0Ah jb short loc_5C25F loc_5C27B: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void) mov [rsp+28h+var_28], 0 call ___errno_location mov dword ptr [rax], 0 jmp loc_5C0C7 loc_5C29B: movsx esi, byte ptr [rbx+14h] lea r14, [rbx+50h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) add eax, 0FFFFFFD0h cmp eax, 0Ah jb short loc_5C23F lea rax, aInvalidNumberE_1; "invalid number; expected digit after ex"... jmp loc_5C225 loc_5C2C7: cmp eax, 30h ; '0' jz short loc_5C2D8 lea rax, aInvalidNumberE_2; "invalid number; expected digit after '-"... jmp loc_5C225 loc_5C2D8: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov ebp, 6 jmp loc_5C179 loc_5C2EE: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"... mov esi, 21B5h jmp short loc_5C340 loc_5C30A: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"... mov esi, 21C5h jmp short loc_5C340 loc_5C326: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAdvancedOption+0ABh; "false" mov esi, 20BEh loc_5C340: xor eax, eax call _ggml_abort nop
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_number( long long a1, double a2) { long long v2; // rax int v4; // eax long long v5; // r14 int v6; // ebp long long v7; // r14 int v8; // eax _DWORD *v9; // r14 long long v10; // rdi long long v11; // rax unsigned int v12; // ecx long long v13; // rdx int v14; // eax int v15; // eax int v16; // eax const char *v17; // rax int v18; // eax long long v20; // r14 _QWORD v21[5]; // [rsp+0h] [rbp-28h] BYREF v21[0] = v2; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(a1); v4 = *(_DWORD *)(a1 + 20); if ( (unsigned int)(v4 - 49) >= 9 ) { if ( v4 == 48 ) { std::string::push_back(a1 + 80, 48LL); v6 = 5; } else { if ( v4 != 45 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 8382LL, "GGML_ASSERT(%s) failed", "false"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"); } v5 = a1 + 80; std::string::push_back(a1 + 80, 45LL); v14 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); if ( (unsigned int)(v14 - 49) < 9 ) { v4 = *(_DWORD *)(a1 + 20); v6 = 6; goto LABEL_3; } if ( v14 != 48 ) { v17 = "invalid number; expected digit after '-'"; goto LABEL_40; } std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); v6 = 6; } v15 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); if ( v15 == 101 || v15 == 69 ) { v7 = a1 + 80; goto LABEL_36; } if ( v15 != 46 ) goto LABEL_9; v7 = a1 + 80; LABEL_28: std::string::push_back(v7, (unsigned int)*(char *)(a1 + 144)); if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1) - 48 > 9 ) { v17 = "invalid number; expected digit after '.'"; LABEL_40: *(_QWORD *)(a1 + 112) = v17; return 14; } v7 = a1 + 80; do { std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); v16 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); } while ( (unsigned int)(v16 - 48) < 0xA ); if ( v16 != 101 && v16 != 69 ) { LABEL_45: nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(a1); v21[0] = 0LL; *(_DWORD *)__errno_location(a2) = 0; goto LABEL_15; } LABEL_36: std::string::push_back(v7, (unsigned int)*(char *)(a1 + 20)); v18 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); if ( (unsigned int)(v18 - 48) < 0xA ) { v20 = a1 + 80; } else { if ( v18 != 45 && v18 != 43 ) { v17 = "invalid number; expected '+', '-', or digit after exponent"; goto LABEL_40; } v20 = a1 + 80; std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1) - 48 >= 0xA ) { v17 = "invalid number; expected digit after exponent sign"; goto LABEL_40; } } std::string::push_back(v20, (unsigned int)*(char *)(a1 + 20)); if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1) - 48 <= 9 ) { do std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); while ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1) - 48 < 0xA ); } goto LABEL_45; } v5 = a1 + 80; v6 = 5; LABEL_3: std::string::push_back(v5, (unsigned int)(char)v4); v7 = a1 + 80; while ( 1 ) { v8 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); if ( (unsigned int)(v8 - 48) >= 0xA ) break; std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); } if ( v8 == 46 ) goto LABEL_28; if ( v8 == 69 || v8 == 101 ) goto LABEL_36; LABEL_9: nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(a1); v21[0] = 0LL; v9 = (_DWORD *)__errno_location(a2); *v9 = 0; v10 = *(_QWORD *)(a1 + 80); if ( v6 == 5 ) { v11 = strtoull(v10, v21, 10LL); if ( v21[0] != *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 8629LL, "GGML_ASSERT(%s) failed", "endptr == token_buffer.data() + token_buffer.size()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"); } if ( !*v9 ) { v12 = 5; v13 = 128LL; LABEL_18: *(_QWORD *)(a1 + v13) = v11; return v12; } } else { v11 = strtoll(v10, v21, 10LL); if ( v21[0] != *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 8645LL, "GGML_ASSERT(%s) failed", "endptr == token_buffer.data() + token_buffer.size()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"); } if ( !*v9 ) { v12 = 6; v13 = 120LL; goto LABEL_18; } } LABEL_15: *(double *)(a1 + 136) = strtod(*(_QWORD *)(a1 + 80), v21); v12 = 7; if ( v21[0] == *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) ) return v12; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 8662LL, "GGML_ASSERT(%s) failed", "endptr == token_buffer.data() + token_buffer.size()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"); }
scan_number: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x0015c4d2 MOV EAX,dword ptr [RBX + 0x14] LEA ECX,[RAX + -0x31] CMP ECX,0x9 JNC 0x0015c126 LEA R14,[RBX + 0x50] MOV EBP,0x5 LAB_0015c009: MOVSX ESI,AL MOV RDI,R14 CALL 0x0011b750 LEA R14,[RBX + 0x50] LAB_0015c018: MOV RDI,RBX CALL 0x0011c2ee LEA ECX,[RAX + -0x30] CMP ECX,0xa JNC 0x0015c036 MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x0011b750 JMP 0x0015c018 LAB_0015c036: CMP EAX,0x2e JZ 0x0015c198 CMP EAX,0x45 JZ 0x0015c1f4 CMP EAX,0x65 JZ 0x0015c1f4 LAB_0015c051: MOV RDI,RBX CALL 0x0015c348 MOV qword ptr [RSP],0x0 CALL 0x0011b060 MOV R14,RAX MOV dword ptr [RAX],0x0 MOV RDI,qword ptr [RBX + 0x50] MOV R15,RSP MOV RSI,R15 MOV EDX,0xa CMP EBP,0x5 JNZ 0x0015c0ab CALL 0x0011bbb0 MOV RCX,qword ptr [RBX + 0x50] ADD RCX,qword ptr [RBX + 0x58] CMP qword ptr [R15],RCX JNZ 0x0015c2ee CMP dword ptr [R14],0x0 JNZ 0x0015c0c7 MOV ECX,0x5 MOV EDX,0x80 JMP 0x0015c11d LAB_0015c0ab: CALL 0x0011b120 MOV RCX,qword ptr [RBX + 0x50] ADD RCX,qword ptr [RBX + 0x58] CMP qword ptr [R15],RCX JNZ 0x0015c30a CMP dword ptr [R14],0x0 JZ 0x0015c113 LAB_0015c0c7: MOV RDI,qword ptr [RBX + 0x50] MOV R14,RSP MOV RSI,R14 CALL 0x0011b6d0 MOVSD qword ptr [RBX + 0x88],XMM0 MOV RAX,qword ptr [RBX + 0x50] ADD RAX,qword ptr [RBX + 0x58] MOV ECX,0x7 CMP qword ptr [R14],RAX JZ 0x0015c22e LEA RDI,[0x1ee3d9] LEA RDX,[0x1e835e] LEA RCX,[0x1ef22a] MOV ESI,0x21d6 JMP 0x0015c340 LAB_0015c113: MOV ECX,0x6 MOV EDX,0x78 LAB_0015c11d: MOV qword ptr [RBX + RDX*0x1],RAX JMP 0x0015c22e LAB_0015c126: CMP EAX,0x30 JZ 0x0015c166 CMP EAX,0x2d JNZ 0x0015c326 LEA R14,[RBX + 0x50] MOV RDI,R14 MOV ESI,0x2d CALL 0x0011b750 MOV RDI,RBX CALL 0x0011c2ee LEA ECX,[RAX + -0x31] CMP ECX,0x9 JNC 0x0015c2c7 MOV EAX,dword ptr [RBX + 0x14] MOV EBP,0x6 JMP 0x0015c009 LAB_0015c166: LEA RDI,[RBX + 0x50] MOV ESI,0x30 CALL 0x0011b750 MOV EBP,0x5 LAB_0015c179: MOV RDI,RBX CALL 0x0011c2ee CMP EAX,0x65 JZ 0x0015c1f0 CMP EAX,0x45 JZ 0x0015c1f0 CMP EAX,0x2e JNZ 0x0015c051 LEA R14,[RBX + 0x50] LAB_0015c198: MOVSX ESI,byte ptr [RBX + 0x90] MOV RDI,R14 CALL 0x0011b750 MOV RDI,RBX CALL 0x0011c2ee ADD EAX,-0x30 CMP EAX,0x9 JA 0x0015c1e7 LEA R14,[RBX + 0x50] LAB_0015c1bb: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x0011b750 MOV RDI,RBX CALL 0x0011c2ee LEA ECX,[RAX + -0x30] CMP ECX,0xa JC 0x0015c1bb CMP EAX,0x65 JZ 0x0015c1f4 CMP EAX,0x45 JNZ 0x0015c27b JMP 0x0015c1f4 LAB_0015c1e7: LEA RAX,[0x1ef193] JMP 0x0015c225 LAB_0015c1f0: LEA R14,[RBX + 0x50] LAB_0015c1f4: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x0011b750 MOV RDI,RBX CALL 0x0011c2ee LEA ECX,[RAX + -0x30] CMP ECX,0xa JC 0x0015c23b CMP EAX,0x2d JZ 0x0015c29b CMP EAX,0x2b JZ 0x0015c29b LEA RAX,[0x1ef1bc] LAB_0015c225: MOV qword ptr [RBX + 0x70],RAX MOV ECX,0xe LAB_0015c22e: MOV EAX,ECX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_0015c23b: LEA R14,[RBX + 0x50] LAB_0015c23f: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x0011b750 MOV RDI,RBX CALL 0x0011c2ee ADD EAX,-0x30 CMP EAX,0x9 JA 0x0015c27b LEA R14,[RBX + 0x50] LAB_0015c25f: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x0011b750 MOV RDI,RBX CALL 0x0011c2ee ADD EAX,-0x30 CMP EAX,0xa JC 0x0015c25f LAB_0015c27b: MOV RDI,RBX CALL 0x0015c348 MOV qword ptr [RSP],0x0 CALL 0x0011b060 MOV dword ptr [RAX],0x0 JMP 0x0015c0c7 LAB_0015c29b: MOVSX ESI,byte ptr [RBX + 0x14] LEA R14,[RBX + 0x50] MOV RDI,R14 CALL 0x0011b750 MOV RDI,RBX CALL 0x0011c2ee ADD EAX,-0x30 CMP EAX,0xa JC 0x0015c23f LEA RAX,[0x1ef1f7] JMP 0x0015c225 LAB_0015c2c7: CMP EAX,0x30 JZ 0x0015c2d8 LEA RAX,[0x1ef16a] JMP 0x0015c225 LAB_0015c2d8: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x0011b750 MOV EBP,0x6 JMP 0x0015c179 LAB_0015c2ee: LEA RDI,[0x1ee3d9] LEA RDX,[0x1e835e] LEA RCX,[0x1ef22a] MOV ESI,0x21b5 JMP 0x0015c340 LAB_0015c30a: LEA RDI,[0x1ee3d9] LEA RDX,[0x1e835e] LEA RCX,[0x1ef22a] MOV ESI,0x21c5 JMP 0x0015c340 LAB_0015c326: LEA RDI,[0x1ee3d9] LEA RDX,[0x1e835e] LEA RCX,[0x1ebed3] MOV ESI,0x20be LAB_0015c340: XOR EAX,EAX CALL 0x0011bf40
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::scan_number() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::scan_number(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { char cVar1; int iVar2; int iVar3; char *in_RAX; int *piVar4; ulonglong uVar5; int8 uVar6; char *pcVar7; long lVar8; double dVar9; char *local_28; local_28 = in_RAX; reset(this); iVar3 = *(int *)(this + 0x14); cVar1 = (char)this; if (iVar3 - 0x31U < 9) { iVar3 = 5; LAB_0015c009: std::__cxx11::string::push_back(cVar1 + 'P'); while (iVar2 = get(this), iVar2 - 0x30U < 10) { std::__cxx11::string::push_back(cVar1 + 'P'); } if (iVar2 == 0x2e) { LAB_0015c198: std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (9 < iVar3 - 0x30U) { pcVar7 = "invalid number; expected digit after \'.\'"; goto LAB_0015c225; } do { std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); } while (iVar3 - 0x30U < 10); if ((iVar3 == 0x65) || (iVar3 == 0x45)) goto LAB_0015c1f4; goto LAB_0015c27b; } if ((iVar2 == 0x45) || (iVar2 == 0x65)) goto LAB_0015c1f4; LAB_0015c051: unget(this); local_28 = (char *)0x0; piVar4 = __errno_location(); *piVar4 = 0; if (iVar3 == 5) { uVar5 = strtoull(*(char **)(this + 0x50),&local_28,10); if (local_28 != (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) { pcVar7 = "endptr == token_buffer.data() + token_buffer.size()"; uVar6 = 0x21b5; goto LAB_0015c340; } if (*piVar4 == 0) { uVar6 = 5; lVar8 = 0x80; LAB_0015c11d: *(ulonglong *)(this + lVar8) = uVar5; return uVar6; } } else { uVar5 = strtoll(*(char **)(this + 0x50),&local_28,10); if (local_28 != (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) { pcVar7 = "endptr == token_buffer.data() + token_buffer.size()"; uVar6 = 0x21c5; goto LAB_0015c340; } if (*piVar4 == 0) { uVar6 = 6; lVar8 = 0x78; goto LAB_0015c11d; } } } else { if (iVar3 == 0x30) { std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = 5; } else { if (iVar3 != 0x2d) { pcVar7 = "false"; uVar6 = 0x20be; goto LAB_0015c340; } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (iVar3 - 0x31U < 9) { iVar3 = 6; goto LAB_0015c009; } if (iVar3 != 0x30) { pcVar7 = "invalid number; expected digit after \'-\'"; goto LAB_0015c225; } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = 6; } iVar2 = get(this); if ((iVar2 != 0x65) && (iVar2 != 0x45)) { if (iVar2 != 0x2e) goto LAB_0015c051; goto LAB_0015c198; } LAB_0015c1f4: std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (9 < iVar3 - 0x30U) { if ((iVar3 != 0x2d) && (iVar3 != 0x2b)) { pcVar7 = "invalid number; expected \'+\', \'-\', or digit after exponent"; LAB_0015c225: *(char **)(this + 0x70) = pcVar7; return 0xe; } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (9 < iVar3 - 0x30U) { pcVar7 = "invalid number; expected digit after exponent sign"; goto LAB_0015c225; } } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (iVar3 - 0x30U < 10) { do { std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); } while (iVar3 - 0x30U < 10); } LAB_0015c27b: unget(this); local_28 = (char *)0x0; piVar4 = __errno_location(); *piVar4 = 0; } dVar9 = strtod(*(char **)(this + 0x50),&local_28); *(double *)(this + 0x88) = dVar9; if (local_28 == (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) { return 7; } pcVar7 = "endptr == token_buffer.data() + token_buffer.size()"; uVar6 = 0x21d6; LAB_0015c340: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar6, "GGML_ASSERT(%s) failed",pcVar7); }
49,886
mbedtls_rsa_pkcs1_verify
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/rsa.c
int mbedtls_rsa_pkcs1_verify(mbedtls_rsa_context *ctx, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, const unsigned char *hash, const unsigned char *sig) { RSA_VALIDATE_RET(ctx != NULL); RSA_VALIDATE_RET(mode == MBEDTLS_RSA_PRIVATE || mode == MBEDTLS_RSA_PUBLIC); RSA_VALIDATE_RET(sig != NULL); RSA_VALIDATE_RET((md_alg == MBEDTLS_MD_NONE && hashlen == 0) || hash != NULL); switch (ctx->padding) { #if defined(MBEDTLS_PKCS1_V15) case MBEDTLS_RSA_PKCS_V15: return mbedtls_rsa_rsassa_pkcs1_v15_verify(ctx, f_rng, p_rng, mode, md_alg, hashlen, hash, sig); #endif #if defined(MBEDTLS_PKCS1_V21) case MBEDTLS_RSA_PKCS_V21: return mbedtls_rsa_rsassa_pss_verify(ctx, f_rng, p_rng, mode, md_alg, hashlen, hash, sig); #endif default: return MBEDTLS_ERR_RSA_INVALID_PADDING; } }
O3
c
mbedtls_rsa_pkcs1_verify: movl 0x148(%rdi), %eax cmpl $0x1, %eax je 0x91f07 testl %eax, %eax jne 0x91f2a jmp 0x91dd4 pushq %rax movl 0x14c(%rdi), %eax testl %eax, %eax cmovel %r8d, %eax pushq 0x18(%rsp) pushq $-0x1 pushq %rax pushq 0x28(%rsp) callq 0x91ad0 addq $0x20, %rsp popq %rcx retq movl $0xffffbf00, %eax # imm = 0xFFFFBF00 retq
mbedtls_rsa_pkcs1_verify: mov eax, [rdi+148h] cmp eax, 1 jz short loc_91F07 test eax, eax jnz short loc_91F2A jmp mbedtls_rsa_rsassa_pkcs1_v15_verify loc_91F07: push rax mov eax, [rdi+14Ch] test eax, eax cmovz eax, r8d push [rsp+8+arg_8] push 0FFFFFFFFFFFFFFFFh push rax push [rsp+20h+arg_0] call mbedtls_rsa_rsassa_pss_verify_ext add rsp, 20h pop rcx retn loc_91F2A: mov eax, 0FFFFBF00h retn
long long mbedtls_rsa_pkcs1_verify( long long a1, long long a2, long long a3, int a4, unsigned int a5, unsigned int a6, long long a7, long long a8) { int v8; // eax int v10; // eax v8 = *(_DWORD *)(a1 + 328); if ( v8 == 1 ) { v10 = *(_DWORD *)(a1 + 332); if ( !v10 ) v10 = a5; return mbedtls_rsa_rsassa_pss_verify_ext(a1, a2, a3, a4, a5, a6, a7, v10, -1, a8); } else if ( v8 ) { return 4294950656LL; } else { return mbedtls_rsa_rsassa_pkcs1_v15_verify(a1, a2, a3, a4, a5, a6, a7, a8); } }
mbedtls_rsa_pkcs1_verify: MOV EAX,dword ptr [RDI + 0x148] CMP EAX,0x1 JZ 0x00191f07 TEST EAX,EAX JNZ 0x00191f2a JMP 0x00191dd4 LAB_00191f07: PUSH RAX MOV EAX,dword ptr [RDI + 0x14c] TEST EAX,EAX CMOVZ EAX,R8D PUSH qword ptr [RSP + 0x18] PUSH -0x1 PUSH RAX PUSH qword ptr [RSP + 0x28] CALL 0x00191ad0 ADD RSP,0x20 POP RCX RET LAB_00191f2a: MOV EAX,0xffffbf00 RET
int8 mbedtls_rsa_pkcs1_verify(long param_1) { int8 uVar1; if (*(int *)(param_1 + 0x148) == 1) { uVar1 = mbedtls_rsa_rsassa_pss_verify_ext(); return uVar1; } if (*(int *)(param_1 + 0x148) == 0) { uVar1 = mbedtls_rsa_rsassa_pkcs1_v15_verify(); return uVar1; } return 0xffffbf00; }
49,887
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> join<double>(std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/examples/llama-bench/llama-bench.cpp
static std::string join(const std::vector<T> & values, const std::string & delim) { std::ostringstream str; for (size_t i = 0; i < values.size(); i++) { str << values[i]; if (i < values.size() - 1) { str << delim; } } return str.str(); }
O1
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> join<double>(std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x8(%rsp), %rdi callq 0x1aa50 movq (%r15), %rax cmpq %rax, 0x8(%r15) je 0x24353 xorl %r13d, %r13d leaq 0x8(%rsp), %r12 movsd (%rax,%r13,8), %xmm0 movq %r12, %rdi callq 0x1ac60 movq 0x8(%r15), %rax subq (%r15), %rax sarq $0x3, %rax decq %rax cmpq %rax, %r13 jae 0x2433d movq (%r14), %rsi movq 0x8(%r14), %rdx movq %r12, %rdi callq 0x1a8d0 incq %r13 movq (%r15), %rax movq 0x8(%r15), %rcx subq %rax, %rcx sarq $0x3, %rcx cmpq %rcx, %r13 jb 0x2430d leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x1ac10 movq 0xd0c21(%rip), %rsi # 0xf4f88 leaq 0x8(%rsp), %rdi callq 0x1a410 leaq 0x78(%rsp), %rdi callq 0x1a240 movq %rbx, %rax addq $0x180, %rsp # imm = 0x180 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq jmp 0x24391 movq %rax, %rbx movq 0xd0bed(%rip), %rsi # 0xf4f88 leaq 0x8(%rsp), %rdi callq 0x1a410 leaq 0x78(%rsp), %rdi callq 0x1a240 movq %rbx, %rdi callq 0x1adc0
_ZL4joinIdENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EERKS5_: push r15 push r14 push r13 push r12 push rbx sub rsp, 180h mov r14, rdx mov r15, rsi mov rbx, rdi lea rdi, [rsp+1A8h+var_1A0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rax, [r15] cmp [r15+8], rax jz short loc_24353 xor r13d, r13d lea r12, [rsp+1A8h+var_1A0] loc_2430D: movsd xmm0, qword ptr [rax+r13*8] mov rdi, r12 call __ZNSo9_M_insertIdEERSoT_; std::ostream::_M_insert<double>(double) mov rax, [r15+8] sub rax, [r15] sar rax, 3 dec rax cmp r13, rax jnb short loc_2433D mov rsi, [r14] mov rdx, [r14+8] mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_2433D: inc r13 mov rax, [r15] mov rcx, [r15+8] sub rcx, rax sar rcx, 3 cmp r13, rcx jb short loc_2430D loc_24353: lea rsi, [rsp+1A8h+var_198] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1A8h+var_1A0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+1A8h+var_130]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, rbx add rsp, 180h pop rbx pop r12 pop r13 pop r14 pop r15 retn jmp short $+2 loc_24391: mov rbx, rax mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+arg_70]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long join<double>(long long a1, long long *a2, _QWORD *a3) { long long v4; // rax unsigned long long v5; // r13 _BYTE v7[8]; // [rsp+8h] [rbp-1A0h] BYREF _BYTE v8[104]; // [rsp+10h] [rbp-198h] BYREF _BYTE v9[304]; // [rsp+78h] [rbp-130h] BYREF std::ostringstream::basic_ostringstream(v7); v4 = *a2; if ( a2[1] != *a2 ) { v5 = 0LL; do { std::ostream::_M_insert<double>(v7, *(double *)(v4 + 8 * v5)); if ( v5 < ((a2[1] - *a2) >> 3) - 1 ) std::__ostream_insert<char,std::char_traits<char>>(v7, *a3, a3[1]); ++v5; v4 = *a2; } while ( v5 < (a2[1] - *a2) >> 3 ); } std::stringbuf::str(a1, v8); std::ostringstream::~ostringstream(v7, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v9); return a1; }
join<double>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x180 MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA RDI,[RSP + 0x8] CALL 0x0011aa50 MOV RAX,qword ptr [R15] CMP qword ptr [R15 + 0x8],RAX JZ 0x00124353 XOR R13D,R13D LEA R12,[RSP + 0x8] LAB_0012430d: MOVSD XMM0,qword ptr [RAX + R13*0x8] LAB_00124313: MOV RDI,R12 CALL 0x0011ac60 MOV RAX,qword ptr [R15 + 0x8] SUB RAX,qword ptr [R15] SAR RAX,0x3 DEC RAX CMP R13,RAX JNC 0x0012433d MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV RDI,R12 CALL 0x0011a8d0 LAB_0012433d: INC R13 MOV RAX,qword ptr [R15] MOV RCX,qword ptr [R15 + 0x8] SUB RCX,RAX SAR RCX,0x3 CMP R13,RCX JC 0x0012430d LAB_00124353: LEA RSI,[RSP + 0x10] LAB_00124358: MOV RDI,RBX CALL 0x0011ac10 LAB_00124360: MOV RSI,qword ptr [0x001f4f88] LEA RDI,[RSP + 0x8] CALL 0x0011a410 LEA RDI,[RSP + 0x78] CALL 0x0011a240 MOV RAX,RBX ADD RSP,0x180 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* std::__cxx11::string join<double>(std::vector<double, std::allocator<double> > const&, std::__cxx11::string const&) */ vector * join<double>(vector *param_1,string *param_2) { long lVar1; int8 *in_RDX; ulong uVar2; ostringstream local_1a0 [112]; ios_base local_130 [264]; std::__cxx11::ostringstream::ostringstream(local_1a0); lVar1 = *(long *)param_2; if (*(long *)(param_2 + 8) != lVar1) { uVar2 = 0; do { /* try { // try from 00124313 to 0012433c has its CatchHandler @ 00124391 */ std::ostream::_M_insert<double>(*(double *)(lVar1 + uVar2 * 8)); if (uVar2 < (*(long *)(param_2 + 8) - *(long *)param_2 >> 3) - 1U) { std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_1a0,(char *)*in_RDX,in_RDX[1]); } uVar2 = uVar2 + 1; lVar1 = *(long *)param_2; } while (uVar2 < (ulong)(*(long *)(param_2 + 8) - lVar1 >> 3)); } /* try { // try from 00124358 to 0012435f has its CatchHandler @ 0012438f */ std::__cxx11::stringbuf::str(); std::__cxx11::ostringstream::~ostringstream(local_1a0); std::ios_base::~ios_base(local_130); return param_1; }
49,888
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> join<double>(std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/examples/llama-bench/llama-bench.cpp
static std::string join(const std::vector<T> & values, const std::string & delim) { std::ostringstream str; for (size_t i = 0; i < values.size(); i++) { str << values[i]; if (i < values.size() - 1) { str << delim; } } return str.str(); }
O2
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> join<double>(std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x8(%rsp), %r12 movq %r12, %rdi callq 0x22a60 xorl %r13d, %r13d movq 0x10(%r15), %rax movl 0x18(%r15), %ecx subq (%r15), %rax leaq (%rcx,%rax,8), %rax cmpq %rax, %r13 jae 0x28c1e movq %r15, %rdi movq %r13, %rsi callq 0x2a5fc movzbl %al, %esi movq %r12, %rdi callq 0x22cb0 movq 0x10(%r15), %rax movl 0x18(%r15), %ecx subq (%r15), %rax leaq (%rcx,%rax,8), %rax decq %rax cmpq %rax, %r13 jae 0x28c19 movq %r12, %rdi movq %r14, %rsi callq 0x226d0 incq %r13 jmp 0x28bcd leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x22c00 leaq 0x8(%rsp), %rdi callq 0x22180 movq %rbx, %rax addq $0x180, %rsp # imm = 0x180 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq jmp 0x28c4b movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x22180 movq %rbx, %rdi callq 0x22da0
_ZL4joinIbENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EERKS5_: push r15 push r14 push r13 push r12 push rbx sub rsp, 180h mov r14, rdx mov r15, rsi mov rbx, rdi lea r12, [rsp+1A8h+var_1A0] mov rdi, r12 call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) xor r13d, r13d loc_28BCD: mov rax, [r15+10h] mov ecx, [r15+18h] sub rax, [r15] lea rax, [rcx+rax*8] cmp r13, rax jnb short loc_28C1E mov rdi, r15 mov rsi, r13 call _ZNKSt6vectorIbSaIbEEixEm; std::vector<bool>::operator[](ulong) movzx esi, al mov rdi, r12 call __ZNSo9_M_insertIbEERSoT_; std::ostream::_M_insert<bool>(bool) mov rax, [r15+10h] mov ecx, [r15+18h] sub rax, [r15] lea rax, [rcx+rax*8] dec rax cmp r13, rax jnb short loc_28C19 mov rdi, r12 mov rsi, r14 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) loc_28C19: inc r13 jmp short loc_28BCD loc_28C1E: lea rsi, [rsp+1A8h+var_198] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) lea rdi, [rsp+1A8h+var_1A0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() mov rax, rbx add rsp, 180h pop rbx pop r12 pop r13 pop r14 pop r15 retn jmp short $+2 loc_28C4B: mov rbx, rax lea rdi, [rsp+arg_0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() mov rdi, rbx call __Unwind_Resume
long long join<bool>(long long a1, long long a2, long long a3) { unsigned long long i; // r13 unsigned __int8 v5; // al _BYTE v7[8]; // [rsp+8h] [rbp-1A0h] BYREF _BYTE v8[408]; // [rsp+10h] [rbp-198h] BYREF std::ostringstream::basic_ostringstream(v7); for ( i = 0LL; i < (unsigned long long)*(unsigned int *)(a2 + 24) + 8LL * (*(_QWORD *)(a2 + 16) - *(_QWORD *)a2); ++i ) { v5 = std::vector<bool>::operator[](a2, i); std::ostream::_M_insert<bool>(v7, v5); if ( i < (unsigned long long)*(unsigned int *)(a2 + 24) + 8LL * (*(_QWORD *)(a2 + 16) - *(_QWORD *)a2) - 1 ) std::operator<<<char>(v7, a3); } std::stringbuf::str(a1, v8); std::ostringstream::~ostringstream(v7); return a1; }
join<bool>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x180 MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA R12,[RSP + 0x8] MOV RDI,R12 CALL 0x00122a60 XOR R13D,R13D LAB_00128bcd: MOV RAX,qword ptr [R15 + 0x10] MOV ECX,dword ptr [R15 + 0x18] SUB RAX,qword ptr [R15] LEA RAX,[RCX + RAX*0x8] CMP R13,RAX JNC 0x00128c1e LAB_00128be1: MOV RDI,R15 MOV RSI,R13 CALL 0x0012a5fc MOVZX ESI,AL MOV RDI,R12 CALL 0x00122cb0 MOV RAX,qword ptr [R15 + 0x10] MOV ECX,dword ptr [R15 + 0x18] SUB RAX,qword ptr [R15] LEA RAX,[RCX + RAX*0x8] DEC RAX CMP R13,RAX JNC 0x00128c19 MOV RDI,R12 MOV RSI,R14 CALL 0x001226d0 LAB_00128c19: INC R13 JMP 0x00128bcd LAB_00128c1e: LEA RSI,[RSP + 0x10] LAB_00128c23: MOV RDI,RBX CALL 0x00122c00 LAB_00128c2b: LEA RDI,[RSP + 0x8] CALL 0x00122180 MOV RAX,RBX ADD RSP,0x180 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* std::__cxx11::string join<bool>(std::vector<bool, std::allocator<bool> > const&, std::__cxx11::string const&) */ vector * join<bool>(vector *param_1,string *param_2) { string *in_RDX; ulong uVar1; ostringstream local_1a0 [376]; std::__cxx11::ostringstream::ostringstream(local_1a0); for (uVar1 = 0; uVar1 < (ulong)*(uint *)(param_2 + 0x18) + (*(long *)(param_2 + 0x10) - *(long *)param_2) * 8; uVar1 = uVar1 + 1) { /* try { // try from 00128be1 to 00128c18 has its CatchHandler @ 00128c4b */ std::vector<bool,std::allocator<bool>>::operator[] ((vector<bool,std::allocator<bool>> *)param_2,uVar1); std::ostream::_M_insert<bool>(SUB81(local_1a0,0)); if (uVar1 < ((ulong)*(uint *)(param_2 + 0x18) + (*(long *)(param_2 + 0x10) - *(long *)param_2) * 8) - 1) { std::operator<<((ostream *)local_1a0,in_RDX); } } /* try { // try from 00128c23 to 00128c2a has its CatchHandler @ 00128c49 */ std::__cxx11::stringbuf::str(); std::__cxx11::ostringstream::~ostringstream(local_1a0); return param_1; }
49,889
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> join<double>(std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/examples/llama-bench/llama-bench.cpp
static std::string join(const std::vector<T> & values, const std::string & delim) { std::ostringstream str; for (size_t i = 0; i < values.size(); i++) { str << values[i]; if (i < values.size() - 1) { str << delim; } } return str.str(); }
O3
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> join<double>(std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x178, %rsp # imm = 0x178 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq %rsp, %rdi callq 0x19a50 movq (%r15), %rax cmpq %rax, 0x8(%r15) je 0x21c5b movl $0x8, %r13d xorl %ebp, %ebp movq %rsp, %r12 movq -0x8(%rax,%r13), %rsi movq (%rax,%r13), %rdx movq %r12, %rdi callq 0x198d0 movq (%r15), %rax movq 0x8(%r15), %rcx subq %rax, %rcx sarq $0x5, %rcx leaq -0x1(%rcx), %rdx cmpq %rdx, %rbp jae 0x21c4f movq (%r14), %rsi movq 0x8(%r14), %rdx movq %r12, %rdi callq 0x198d0 movq (%r15), %rax movq 0x8(%r15), %rcx subq %rax, %rcx sarq $0x5, %rcx incq %rbp addq $0x20, %r13 cmpq %rcx, %rbp jb 0x21c0a leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x19c10 movq 0xcf319(%rip), %rsi # 0xf0f88 movq %rsp, %rdi callq 0x19410 leaq 0x70(%rsp), %rdi callq 0x19240 addq $0x178, %rsp # imm = 0x178 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x21c95 movq %rax, %rbx movq 0xcf2e9(%rip), %rsi # 0xf0f88 movq %rsp, %rdi callq 0x19410 leaq 0x70(%rsp), %rdi callq 0x19240 movq %rbx, %rdi callq 0x19dc0
_ZL4joinINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES5_RKSt6vectorIT_SaIS7_EERKS5_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 178h mov r14, rdx mov r15, rsi mov rbx, rdi mov rdi, rsp call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rax, [r15] cmp [r15+8], rax jz short loc_21C5B mov r13d, 8 xor ebp, ebp mov r12, rsp loc_21C0A: mov rsi, [rax+r13-8] mov rdx, [rax+r13] mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rax, [r15] mov rcx, [r15+8] sub rcx, rax sar rcx, 5 lea rdx, [rcx-1] cmp rbp, rdx jnb short loc_21C4F mov rsi, [r14] mov rdx, [r14+8] mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rax, [r15] mov rcx, [r15+8] sub rcx, rax sar rcx, 5 loc_21C4F: inc rbp add r13, 20h ; ' ' cmp rbp, rcx jb short loc_21C0A loc_21C5B: lea rsi, [rsp+1A8h+var_1A0] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr mov rdi, rsp call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+1A8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() add rsp, 178h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_21C95: mov rbx, rax mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr mov rdi, rsp call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+arg_68]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
void join<std::string>(long long a1, long long *a2, _QWORD *a3) { long long v4; // rax long long v5; // r13 unsigned long long v6; // rbp unsigned long long v7; // rcx long long v8; // [rsp+0h] [rbp-1A8h] BYREF _BYTE v9[104]; // [rsp+8h] [rbp-1A0h] BYREF _BYTE v10[312]; // [rsp+70h] [rbp-138h] BYREF std::ostringstream::basic_ostringstream(&v8); v4 = *a2; if ( a2[1] != *a2 ) { v5 = 8LL; v6 = 0LL; do { std::__ostream_insert<char,std::char_traits<char>>(&v8, *(_QWORD *)(v4 + v5 - 8), *(_QWORD *)(v4 + v5)); v4 = *a2; v7 = (a2[1] - *a2) >> 5; if ( v6 < v7 - 1 ) { std::__ostream_insert<char,std::char_traits<char>>(&v8, *a3, a3[1]); v4 = *a2; v7 = (a2[1] - *a2) >> 5; } ++v6; v5 += 32LL; } while ( v6 < v7 ); } std::stringbuf::str(a1, v9); std::ostringstream::~ostringstream(&v8, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v10); }
join<std::__cxx11::string>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x178 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV RDI,RSP CALL 0x00119a50 MOV RAX,qword ptr [R15] CMP qword ptr [R15 + 0x8],RAX JZ 0x00121c5b MOV R13D,0x8 XOR EBP,EBP MOV R12,RSP LAB_00121c0a: MOV RSI,qword ptr [RAX + R13*0x1 + -0x8] MOV RDX,qword ptr [RAX + R13*0x1] LAB_00121c13: MOV RDI,R12 CALL 0x001198d0 MOV RAX,qword ptr [R15] MOV RCX,qword ptr [R15 + 0x8] SUB RCX,RAX SAR RCX,0x5 LEA RDX,[RCX + -0x1] CMP RBP,RDX JNC 0x00121c4f MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV RDI,R12 CALL 0x001198d0 MOV RAX,qword ptr [R15] MOV RCX,qword ptr [R15 + 0x8] SUB RCX,RAX SAR RCX,0x5 LAB_00121c4f: INC RBP ADD R13,0x20 CMP RBP,RCX JC 0x00121c0a LAB_00121c5b: LEA RSI,[RSP + 0x8] LAB_00121c60: MOV RDI,RBX CALL 0x00119c10 LAB_00121c68: MOV RSI,qword ptr [0x001f0f88] MOV RDI,RSP CALL 0x00119410 LEA RDI,[RSP + 0x70] CALL 0x00119240 ADD RSP,0x178 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* std::__cxx11::string join<std::__cxx11::string >(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, std::__cxx11::string const&) */ void join<std::__cxx11::string>(vector *param_1,string *param_2) { long lVar1; ulong uVar2; int8 *in_RDX; ulong uVar3; long lVar4; ostringstream aoStack_1a8 [112]; ios_base local_138 [264]; std::__cxx11::ostringstream::ostringstream(aoStack_1a8); lVar1 = *(long *)param_2; if (*(long *)(param_2 + 8) != lVar1) { lVar4 = 8; uVar3 = 0; do { /* try { // try from 00121c13 to 00121c40 has its CatchHandler @ 00121c95 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)aoStack_1a8,*(char **)(lVar1 + -8 + lVar4),*(long *)(lVar1 + lVar4)); lVar1 = *(long *)param_2; uVar2 = *(long *)(param_2 + 8) - lVar1 >> 5; if (uVar3 < uVar2 - 1) { std::__ostream_insert<char,std::char_traits<char>> ((ostream *)aoStack_1a8,(char *)*in_RDX,in_RDX[1]); lVar1 = *(long *)param_2; uVar2 = *(long *)(param_2 + 8) - lVar1 >> 5; } uVar3 = uVar3 + 1; lVar4 = lVar4 + 0x20; } while (uVar3 < uVar2); } /* try { // try from 00121c60 to 00121c67 has its CatchHandler @ 00121c93 */ std::__cxx11::stringbuf::str(); std::__cxx11::ostringstream::~ostringstream(aoStack_1a8); std::ios_base::~ios_base(local_138); return; }
49,890
my_init_large_pages
eloqsql/mysys/my_largepage.c
int my_init_large_pages(my_bool super_large_pages) { #ifdef _WIN32 if (!my_obtain_privilege(SE_LOCK_MEMORY_NAME)) { my_printf_error(EE_PERM_LOCK_MEMORY, "Lock Pages in memory access rights required for use with" " large-pages, see https://mariadb.com/kb/en/library/" "mariadb-memory-allocation/#huge-pages", MYF(MY_WME)); } my_large_page_size= GetLargePageMinimum(); #endif my_use_large_pages= 1; my_get_large_page_sizes(my_large_page_sizes); #ifndef HAVE_LARGE_PAGES my_printf_error(EE_OUTOFMEMORY, "No large page support on this platform", MYF(MY_WME)); #endif #ifdef HAVE_SOLARIS_LARGE_PAGES /* tell the kernel that we want to use 4/256MB page for heap storage and also for the stack. We use 4 MByte as default and if the super-large-page is set we increase it to 256 MByte. 256 MByte is for server installations with GBytes of RAM memory where the MySQL Server will have page caches and other memory regions measured in a number of GBytes. We use as big pages as possible which isn't bigger than the above desired page sizes. */ int nelem= 0; size_t max_desired_page_size= (super_large_pages ? 256 : 4) * 1024 * 1024; size_t max_page_size= my_next_large_page_size(max_desired_page_size, &nelem); if (max_page_size > 0) { struct memcntl_mha mpss; mpss.mha_cmd= MHA_MAPSIZE_BSSBRK; mpss.mha_pagesize= max_page_size; mpss.mha_flags= 0; if (memcntl(NULL, 0, MC_HAT_ADVISE, (caddr_t) &mpss, 0, 0)) { my_error(EE_MEMCNTL, MYF(ME_WARNING | ME_ERROR_LOG_ONLY), "MC_HAT_ADVISE", "MHA_MAPSIZE_BSSBRK"); } mpss.mha_cmd= MHA_MAPSIZE_STACK; if (memcntl(NULL, 0, MC_HAT_ADVISE, (caddr_t) &mpss, 0, 0)) { my_error(EE_MEMCNTL, MYF(ME_WARNING | ME_ERROR_LOG_ONLY), "MC_HAT_ADVISE", "MHA_MAPSIZE_STACK"); } } #endif /* HAVE_SOLARIS_LARGE_PAGES */ return 0; }
O3
c
my_init_large_pages: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movb $0x1, 0x353cf3(%rip) # 0x3b6b40 leaq 0x33f41(%rip), %rdi # 0x96d95 callq 0x285c0 testq %rax, %rax je 0x62f64 movq %rax, %rbx leaq 0x33f42(%rip), %r14 # 0x96dae leaq 0x353cdd(%rip), %r13 # 0x3b6b50 xorl %r15d, %r15d movq %rbx, %rdi callq 0x28210 testq %rax, %rax je 0x62f1c movq %rax, %r12 movl %r15d, -0x2c(%rbp) movslq %r15d, %r15 leaq 0x13(%r12), %rsi movl $0xa, %edx movq %r14, %rdi callq 0x28180 testl %eax, %eax jne 0x62eff addq $0x1d, %r12 movq %r12, %rdi xorl %esi, %esi movl $0xa, %edx callq 0x284e0 shlq $0xa, %rax movq %rax, (%r13,%r15,8) leaq -0x1(%rax), %rcx testq %rcx, %rax je 0x62f05 movl $0x480, %edx # imm = 0x480 xorl %edi, %edi leaq 0x33edf(%rip), %rsi # 0x96db9 movq %rax, %rcx xorl %eax, %eax callq 0x5b57d movq $0x0, (%r13,%r15,8) movq %rbx, %rdi callq 0x28210 movq %rax, %r12 testq %rax, %rax jne 0x62e91 jmp 0x62f18 movl -0x2c(%rbp), %r15d jmp 0x62f0c movl -0x2c(%rbp), %r15d incl %r15d cmpl $0x7, %r15d jle 0x62e76 jmp 0x62f1c movl -0x2c(%rbp), %r15d movq %rbx, %rdi callq 0x28640 testl %eax, %eax je 0x62f47 callq 0x28050 movl (%rax), %ecx leaq 0x33e5f(%rip), %rdx # 0x96d95 movl $0x4, %esi movl $0x4, %edi xorl %eax, %eax callq 0x5b463 movslq %r15d, %rsi leaq 0x353bff(%rip), %rdi # 0x3b6b50 leaq 0x529(%rip), %rcx # 0x63481 movl $0x8, %edx callq 0x28720 jmp 0x62f83 callq 0x28050 movl (%rax), %ecx leaq 0x33e23(%rip), %rdx # 0x96d95 movl $0x4, %esi movl $0xc, %edi xorl %eax, %eax callq 0x5b463 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_init_large_pages: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov cs:my_use_large_pages, 1 lea rdi, aSysKernelMmHug; "/sys/kernel/mm/hugepages" call _opendir test rax, rax jz loc_62F64 mov rbx, rax lea r14, aHugepages; "hugepages-" lea r13, my_large_page_sizes xor r15d, r15d loc_62E76: mov rdi, rbx call _readdir64 test rax, rax jz loc_62F1C mov r12, rax mov [rbp+var_2C], r15d movsxd r15, r15d loc_62E91: lea rsi, [r12+13h] mov edx, 0Ah mov rdi, r14 call _strncmp test eax, eax jnz short loc_62EFF add r12, 1Dh mov rdi, r12 xor esi, esi mov edx, 0Ah call ___isoc23_strtoul shl rax, 0Ah mov [r13+r15*8+0], rax lea rcx, [rax-1] test rax, rcx jz short loc_62F05 mov edx, 480h xor edi, edi lea rsi, aNonPowerOf2Lar; "non-power of 2 large page size (%zu) fo"... mov rcx, rax xor eax, eax call my_printf_error mov qword ptr [r13+r15*8+0], 0 mov rdi, rbx call _readdir64 mov r12, rax test rax, rax jnz short loc_62E91 jmp short loc_62F18 loc_62EFF: mov r15d, [rbp+var_2C] jmp short loc_62F0C loc_62F05: mov r15d, [rbp+var_2C] inc r15d loc_62F0C: cmp r15d, 7 jle loc_62E76 jmp short loc_62F1C loc_62F18: mov r15d, [rbp+var_2C] loc_62F1C: mov rdi, rbx call _closedir test eax, eax jz short loc_62F47 call ___errno_location mov ecx, [rax] lea rdx, aSysKernelMmHug; "/sys/kernel/mm/hugepages" mov esi, 4 mov edi, 4 xor eax, eax call my_error loc_62F47: movsxd rsi, r15d lea rdi, my_large_page_sizes lea rcx, size_t_cmp mov edx, 8 call _qsort jmp short loc_62F83 loc_62F64: call ___errno_location mov ecx, [rax] lea rdx, aSysKernelMmHug; "/sys/kernel/mm/hugepages" mov esi, 4 mov edi, 0Ch xor eax, eax call my_error loc_62F83: xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_init_large_pages( __m128 a1, __m128 a2, __m128 a3, __m128 a4, double a5, double a6, __m128 a7, __m128 a8) { char v8; // al long long v9; // rax long long v10; // rbx int v11; // r15d long long v12; // rax long long v13; // r12 long long v14; // rax long long v15; // r8 long long v16; // r9 __m128 v17; // xmm4 __m128 v18; // xmm5 unsigned int *v19; // rax unsigned int *v20; // rax char v22; // [rsp-4h] [rbp-30h] int v23; // [rsp+0h] [rbp-2Ch] v22 = v8; my_use_large_pages = 1; v9 = opendir("/sys/kernel/mm/hugepages"); if ( v9 ) { v10 = v9; v11 = 0; do { v12 = readdir64(v10); if ( !v12 ) break; v13 = v12; v23 = v11; while ( 1 ) { if ( (unsigned int)strncmp("hugepages-", v13 + 19, 10LL) ) { v11 = v23; goto LABEL_11; } v14 = __isoc23_strtoul(v13 + 29, 0LL, 10LL) << 10; my_large_page_sizes[v11] = v14; if ( ((v14 - 1) & v14) == 0 ) break; my_printf_error( a1, a2, a3, a4, v17, v18, a7, a8, 0LL, (long long)"non-power of 2 large page size (%zu) found, skipping", 1152LL, v14, v15, v16, v22); my_large_page_sizes[v11] = 0LL; v13 = readdir64(v10); if ( !v13 ) { v11 = v23; goto LABEL_12; } } v11 = v23 + 1; LABEL_11: ; } while ( v11 <= 7 ); LABEL_12: if ( (unsigned int)closedir(v10) ) { v19 = (unsigned int *)__errno_location(v10); my_error(4u, 4LL, "/sys/kernel/mm/hugepages", *v19); } qsort(my_large_page_sizes, v11, 8LL, size_t_cmp); } else { v20 = (unsigned int *)__errno_location("/sys/kernel/mm/hugepages"); my_error(0xCu, 4LL, "/sys/kernel/mm/hugepages", *v20); } return 0LL; }
my_init_large_pages: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV byte ptr [0x004b6b40],0x1 LEA RDI,[0x196d95] CALL 0x001285c0 TEST RAX,RAX JZ 0x00162f64 MOV RBX,RAX LEA R14,[0x196dae] LEA R13,[0x4b6b50] XOR R15D,R15D LAB_00162e76: MOV RDI,RBX CALL 0x00128210 TEST RAX,RAX JZ 0x00162f1c MOV R12,RAX MOV dword ptr [RBP + -0x2c],R15D MOVSXD R15,R15D LAB_00162e91: LEA RSI,[R12 + 0x13] MOV EDX,0xa MOV RDI,R14 CALL 0x00128180 TEST EAX,EAX JNZ 0x00162eff ADD R12,0x1d MOV RDI,R12 XOR ESI,ESI MOV EDX,0xa CALL 0x001284e0 SHL RAX,0xa MOV qword ptr [R13 + R15*0x8],RAX LEA RCX,[RAX + -0x1] TEST RAX,RCX JZ 0x00162f05 MOV EDX,0x480 XOR EDI,EDI LEA RSI,[0x196db9] MOV RCX,RAX XOR EAX,EAX CALL 0x0015b57d MOV qword ptr [R13 + R15*0x8],0x0 MOV RDI,RBX CALL 0x00128210 MOV R12,RAX TEST RAX,RAX JNZ 0x00162e91 JMP 0x00162f18 LAB_00162eff: MOV R15D,dword ptr [RBP + -0x2c] JMP 0x00162f0c LAB_00162f05: MOV R15D,dword ptr [RBP + -0x2c] INC R15D LAB_00162f0c: CMP R15D,0x7 JLE 0x00162e76 JMP 0x00162f1c LAB_00162f18: MOV R15D,dword ptr [RBP + -0x2c] LAB_00162f1c: MOV RDI,RBX CALL 0x00128640 TEST EAX,EAX JZ 0x00162f47 CALL 0x00128050 MOV ECX,dword ptr [RAX] LEA RDX,[0x196d95] MOV ESI,0x4 MOV EDI,0x4 XOR EAX,EAX CALL 0x0015b463 LAB_00162f47: MOVSXD RSI,R15D LEA RDI,[0x4b6b50] LEA RCX,[0x163481] MOV EDX,0x8 CALL 0x00128720 JMP 0x00162f83 LAB_00162f64: CALL 0x00128050 MOV ECX,dword ptr [RAX] LEA RDX,[0x196d95] MOV ESI,0x4 MOV EDI,0xc XOR EAX,EAX CALL 0x0015b463 LAB_00162f83: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 my_init_large_pages(void) { int iVar1; DIR *__dirp; dirent64 *pdVar2; long lVar3; ulong uVar4; int *piVar5; int iVar6; my_use_large_pages = 1; __dirp = opendir("/sys/kernel/mm/hugepages"); if (__dirp == (DIR *)0x0) { piVar5 = __errno_location(); my_error(0xc,4,"/sys/kernel/mm/hugepages",*piVar5); } else { iVar6 = 0; while (pdVar2 = readdir64(__dirp), pdVar2 != (dirent64 *)0x0) { while (iVar1 = strncmp("hugepages-",pdVar2->d_name,10), iVar1 == 0) { lVar3 = __isoc23_strtoul(pdVar2->d_name + 10,0,10); uVar4 = lVar3 * 0x400; (&my_large_page_sizes)[iVar6] = uVar4; if ((uVar4 & uVar4 - 1) == 0) { iVar6 = iVar6 + 1; break; } my_printf_error(0,"non-power of 2 large page size (%zu) found, skipping",0x480,uVar4); (&my_large_page_sizes)[iVar6] = 0; pdVar2 = readdir64(__dirp); if (pdVar2 == (dirent64 *)0x0) goto LAB_00162f1c; } if (7 < iVar6) break; } LAB_00162f1c: iVar1 = closedir(__dirp); if (iVar1 != 0) { piVar5 = __errno_location(); my_error(4,4,"/sys/kernel/mm/hugepages",*piVar5); } qsort(&my_large_page_sizes,(long)iVar6,8,size_t_cmp); } return 0; }
49,891
blst_p1_on_curve
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e1.c
int blst_p1_on_curve(const POINTonE1 *p) { return (int)POINTonE1_on_curve(p); }
O3
c
blst_p1_on_curve: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdi, %r14 leaq 0x60(%rdi), %rbx movl $0x30, %esi movq %rbx, %rdi callq 0x2ff40 movq %rax, -0x30(%rbp) leaq 0x26e4c(%rip), %r15 # 0x3fb10 leaq -0x60(%rbp), %r13 movabsq $-0x760c000300030003, %r12 # imm = 0x89F3FFFCFFFCFFFD movq %r13, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x33d20 movq %r13, %rdi movq %r13, %rsi movq %rbx, %rdx movq %r15, %rcx movq %r12, %r8 callq 0x344a0 movq %r13, %rdi movq %r13, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x33d20 movl $0x2, %edx movq %r13, %rdi movq %r13, %rsi movq %r15, %rcx callq 0x2ef40 leaq -0xc0(%rbp), %rbx movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x33d20 movq %rbx, %rdi movq %rbx, %rsi movq %r14, %rdx movq %r15, %rcx movq %r12, %r8 callq 0x344a0 movq %rbx, %rdi movq %rbx, %rsi movq %r13, %rdx movq %r15, %rcx callq 0x2ec40 addq $0x30, %r14 leaq -0x90(%rbp), %r13 movq %r13, %rdi movq %r14, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x33d20 movl $0x30, %edx movq %rbx, %rdi movq %r13, %rsi callq 0x2ff80 orl -0x30(%rbp), %eax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
blst_p1_on_curve: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r14, rdi lea rbx, [rdi+60h] mov esi, 30h ; '0' mov rdi, rbx call vec_is_zero_16x mov [rbp+var_30], rax lea r15, BLS12_381_P lea r13, [rbp+var_60] mov r12, 89F3FFFCFFFCFFFDh mov rdi, r13 mov rsi, rbx mov rdx, r15 mov rcx, r12 call sqr_mont_384 mov rdi, r13 mov rsi, r13 mov rdx, rbx mov rcx, r15 mov r8, r12 call mul_mont_384 mov rdi, r13 mov rsi, r13 mov rdx, r15 mov rcx, r12 call sqr_mont_384 mov edx, 2 mov rdi, r13 mov rsi, r13 mov rcx, r15 call lshift_mod_384 lea rbx, [rbp+var_C0] mov rdi, rbx mov rsi, r14 mov rdx, r15 mov rcx, r12 call sqr_mont_384 mov rdi, rbx mov rsi, rbx mov rdx, r14 mov rcx, r15 mov r8, r12 call mul_mont_384 mov rdi, rbx mov rsi, rbx mov rdx, r13 mov rcx, r15 call add_mod_384 add r14, 30h ; '0' lea r13, [rbp+var_90] mov rdi, r13 mov rsi, r14 mov rdx, r15 mov rcx, r12 call sqr_mont_384 mov edx, 30h ; '0' mov rdi, rbx mov rsi, r13 call vec_is_equal_16x or eax, dword ptr [rbp+var_30] add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long blst_p1_on_curve(long long a1) { int is_equal_16x; // eax _BYTE v3[48]; // [rsp+0h] [rbp-C0h] BYREF _BYTE v4[48]; // [rsp+30h] [rbp-90h] BYREF _BYTE v5[48]; // [rsp+60h] [rbp-60h] BYREF long long is_zero_16x; // [rsp+90h] [rbp-30h] is_zero_16x = vec_is_zero_16x(a1 + 96, 48LL); sqr_mont_384(v5, a1 + 96, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); mul_mont_384(v5, v5, a1 + 96, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); sqr_mont_384(v5, v5, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); lshift_mod_384(v5, v5, 2LL, &BLS12_381_P); sqr_mont_384(v3, a1, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); mul_mont_384(v3, v3, a1, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); add_mod_384(v3, v3, v5, &BLS12_381_P); sqr_mont_384(v4, a1 + 48, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); is_equal_16x = vec_is_equal_16x(v3, v4, 48LL); return (unsigned int)is_zero_16x | is_equal_16x; }
blst_p1_on_curve: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R14,RDI LEA RBX,[RDI + 0x60] MOV ESI,0x30 MOV RDI,RBX CALL 0x0012ff40 MOV qword ptr [RBP + -0x30],RAX LEA R15,[0x13fb10] LEA R13,[RBP + -0x60] MOV R12,-0x760c000300030003 MOV RDI,R13 MOV RSI,RBX MOV RDX,R15 MOV RCX,R12 CALL 0x00133d20 MOV RDI,R13 MOV RSI,R13 MOV RDX,RBX MOV RCX,R15 MOV R8,R12 CALL 0x001344a0 MOV RDI,R13 MOV RSI,R13 MOV RDX,R15 MOV RCX,R12 CALL 0x00133d20 MOV EDX,0x2 MOV RDI,R13 MOV RSI,R13 MOV RCX,R15 CALL 0x0012ef40 LEA RBX,[RBP + -0xc0] MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV RCX,R12 CALL 0x00133d20 MOV RDI,RBX MOV RSI,RBX MOV RDX,R14 MOV RCX,R15 MOV R8,R12 CALL 0x001344a0 MOV RDI,RBX MOV RSI,RBX MOV RDX,R13 MOV RCX,R15 CALL 0x0012ec40 ADD R14,0x30 LEA R13,[RBP + -0x90] MOV RDI,R13 MOV RSI,R14 MOV RDX,R15 MOV RCX,R12 CALL 0x00133d20 MOV EDX,0x30 MOV RDI,RBX MOV RSI,R13 CALL 0x0012ff80 OR EAX,dword ptr [RBP + -0x30] ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
uint blst_p1_on_curve(long param_1) { long lVar1; uint uVar2; int1 local_c8 [48]; int1 local_98 [48]; int1 local_68 [48]; int8 local_38; lVar1 = param_1 + 0x60; local_38 = vec_is_zero_16x(lVar1,0x30); sqr_mont_384(local_68,lVar1,BLS12_381_P,0x89f3fffcfffcfffd); mul_mont_384(local_68,local_68,lVar1,BLS12_381_P,0x89f3fffcfffcfffd); sqr_mont_384(local_68,local_68,BLS12_381_P,0x89f3fffcfffcfffd); lshift_mod_384(local_68,local_68,2,BLS12_381_P); sqr_mont_384(local_c8,param_1,BLS12_381_P,0x89f3fffcfffcfffd); mul_mont_384(local_c8,local_c8,param_1,BLS12_381_P,0x89f3fffcfffcfffd); add_mod_384(local_c8,local_c8,local_68,BLS12_381_P); sqr_mont_384(local_98,param_1 + 0x30,BLS12_381_P,0x89f3fffcfffcfffd); uVar2 = vec_is_equal_16x(local_c8,local_98,0x30); return uVar2 | (uint)local_38; }
49,892
YogaTest_assert_legacy_stretch_behaviour_Test::YogaTest_assert_legacy_stretch_behaviour_Test()
yoga-mod/tests/YGDefaultValuesTest.cpp
TEST(YogaTest, assert_legacy_stretch_behaviour) { YGConfig* config = YGConfigNew(); YGConfigSetErrata(config, YGErrataStretchFlexBasis); YGNodeRef root = YGNodeNewWithConfig(config); YGNodeStyleSetWidth(root, 500); YGNodeStyleSetHeight(root, 500); YGNodeRef root_child0 = YGNodeNewWithConfig(config); YGNodeStyleSetAlignItems(root_child0, YGAlignFlexStart); YGNodeInsertChild(root, root_child0, 0); YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config); YGNodeStyleSetFlexGrow(root_child0_child0, 1); YGNodeStyleSetFlexShrink(root_child0_child0, 1); YGNodeInsertChild(root_child0, root_child0_child0, 0); YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config); YGNodeStyleSetFlexGrow(root_child0_child0_child0, 1); YGNodeStyleSetFlexShrink(root_child0_child0_child0, 1); YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0); YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root)); ASSERT_FLOAT_EQ(500, YGNodeLayoutGetWidth(root)); ASSERT_FLOAT_EQ(500, YGNodeLayoutGetHeight(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0)); ASSERT_FLOAT_EQ(500, YGNodeLayoutGetWidth(root_child0)); ASSERT_FLOAT_EQ(500, YGNodeLayoutGetHeight(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetWidth(root_child0_child0)); ASSERT_FLOAT_EQ(500, YGNodeLayoutGetHeight(root_child0_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetWidth(root_child0_child0_child0)); ASSERT_FLOAT_EQ(500, YGNodeLayoutGetHeight(root_child0_child0_child0)); YGNodeFreeRecursive(root); YGConfigFree(config); }
O0
cpp
YogaTest_assert_legacy_stretch_behaviour_Test::YogaTest_assert_legacy_stretch_behaviour_Test(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x7047d0 movq -0x10(%rbp), %rax leaq 0x76cd3c(%rip), %rcx # 0x85e540 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN45YogaTest_assert_legacy_stretch_behaviour_TestC2Ev: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8]; this mov [rbp+var_10], rdi call _ZN7testing4TestC2Ev; testing::Test::Test(void) mov rax, [rbp+var_10] lea rcx, _ZTV45YogaTest_assert_legacy_stretch_behaviour_Test; `vtable for'YogaTest_assert_legacy_stretch_behaviour_Test add rcx, 10h mov [rax], rcx add rsp, 10h pop rbp retn
void YogaTest_assert_legacy_stretch_behaviour_Test::YogaTest_assert_legacy_stretch_behaviour_Test( YogaTest_assert_legacy_stretch_behaviour_Test *this) { testing::Test::Test(this); *(_QWORD *)this = (char *)&`vtable for'YogaTest_assert_legacy_stretch_behaviour_Test + 16; }
YogaTest_assert_legacy_stretch_behaviour_Test: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RDI CALL 0x008047d0 MOV RAX,qword ptr [RBP + -0x10] LEA RCX,[0x95e540] ADD RCX,0x10 MOV qword ptr [RAX],RCX ADD RSP,0x10 POP RBP RET
/* YogaTest_assert_legacy_stretch_behaviour_Test::YogaTest_assert_legacy_stretch_behaviour_Test() */ void __thiscall YogaTest_assert_legacy_stretch_behaviour_Test::YogaTest_assert_legacy_stretch_behaviour_Test (YogaTest_assert_legacy_stretch_behaviour_Test *this) { testing::Test::Test((Test *)this); *(int ***)this = &PTR__YogaTest_assert_legacy_stretch_behaviour_Test_0095e550; return; }
49,893
peek_token
bluesky950520[P]quickjs/quickjs.c
static int peek_token(JSParseState *s, BOOL no_line_terminator) { const uint8_t *p = s->buf_ptr; return simple_next_token(&p, no_line_terminator); }
O2
c
peek_token: pushq %r15 pushq %r14 pushq %rbx movq 0x70(%rdi), %r15 pushq $0xa popq %rcx pushq $0x2f popq %rax movl $0x2401, %edx # imm = 0x2401 movq %r15, %r14 incq %r15 movzbl (%r14), %ebx leal -0xb(%rbx), %edi cmpl $0x2, %edi jb 0x51b55 cmpl $0x9, %ebx je 0x51b55 cmpl $0xa, %ebx je 0x51bc4 cmpl $0xd, %ebx je 0x51bc4 cmpl $0x20, %ebx je 0x51b55 cmpl $0x2f, %ebx jne 0x51bfe movzbl (%r15), %edi cmpl $0x2f, %edi je 0x51bca cmpl $0x2a, %edi jne 0x51bf8 addq $0x2, %r14 movq %r14, %r15 movzbl (%r15), %edi cmpl $0xd, %edi je 0x51bbb testl %edi, %edi je 0x51b55 testl %esi, %esi je 0x51bac cmpb $0xa, %dil je 0x51bf6 cmpb $0x2a, %dil jne 0x51bbf cmpb $0x2f, 0x1(%r15) jne 0x51bbf jmp 0x51bed testl %esi, %esi jne 0x51bf6 incq %r15 jmp 0x51b95 testl %esi, %esi je 0x51b55 jmp 0x51bf6 testl %esi, %esi jne 0x51bf6 movb $0x2f, %dil cmpb $0xd, %dil ja 0x51be4 movzbl %dil, %edi btl %edi, %edx jb 0x51b55 movb 0x1(%r15), %dil incq %r15 jmp 0x51bd1 addq $0x2, %r15 jmp 0x51b55 movl %ecx, %eax popq %rbx popq %r14 popq %r15 retq cmpl $0x3d, %ebx jne 0x51c12 cmpb $0x3e, (%r15) pushq $-0x5c popq %rcx pushq $0x3d popq %rax cmovel %ecx, %eax jmp 0x51bf8 movl %ebx, %edi callq 0x5184d testl %eax, %eax je 0x51c79 leal -0x61(%rbx), %eax cmpl $0x8, %eax ja 0x51c80 leaq 0x326d4(%rip), %rcx # 0x84300 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax cmpb $0x77, (%r15) jne 0x51d84 cmpb $0x61, 0x2(%r14) jne 0x51d84 cmpb $0x69, 0x3(%r14) jne 0x51d84 cmpb $0x74, 0x4(%r14) jne 0x51d84 movzbl 0x5(%r14), %edi callq 0x51a98 testl %eax, %eax jne 0x51d84 pushq $-0x28 jmp 0x51d86 movl %ebx, %eax jmp 0x51bf8 cmpl $0x6f, %ebx jne 0x51d84 cmpb $0x66, (%r15) jne 0x51d84 movzbl 0x2(%r14), %edi callq 0x51a98 testl %eax, %eax jne 0x51d84 pushq $-0x27 jmp 0x51d86 cmpb $0x75, (%r15) jne 0x51d84 cmpb $0x6e, 0x2(%r14) jne 0x51d84 cmpb $0x63, 0x3(%r14) jne 0x51d84 cmpb $0x74, 0x4(%r14) jne 0x51d84 cmpb $0x69, 0x5(%r14) jne 0x51d84 cmpb $0x6f, 0x6(%r14) jne 0x51d84 cmpb $0x6e, 0x7(%r14) jne 0x51d84 movzbl 0x8(%r14), %edi callq 0x51a98 testl %eax, %eax jne 0x51d84 pushq $-0x3b jmp 0x51d86 movb (%r15), %al cmpb $0x6e, %al jne 0x51d22 movzbl 0x2(%r14), %edi callq 0x51a98 testl %eax, %eax je 0x51d8c movb (%r15), %al cmpb $0x6d, %al jne 0x51d84 cmpb $0x70, 0x2(%r14) jne 0x51d84 cmpb $0x6f, 0x3(%r14) jne 0x51d84 cmpb $0x72, 0x4(%r14) jne 0x51d84 cmpb $0x74, 0x5(%r14) jne 0x51d84 movzbl 0x6(%r14), %edi callq 0x51a98 testl %eax, %eax jne 0x51d84 pushq $-0x33 jmp 0x51d86 cmpb $0x78, (%r15) jne 0x51d84 cmpb $0x70, 0x2(%r14) jne 0x51d84 cmpb $0x6f, 0x3(%r14) jne 0x51d84 cmpb $0x72, 0x4(%r14) jne 0x51d84 cmpb $0x74, 0x5(%r14) jne 0x51d84 movzbl 0x6(%r14), %edi callq 0x51a98 testl %eax, %eax je 0x51d90 pushq $-0x7d popq %rax jmp 0x51bf8 pushq $-0x49 jmp 0x51d86 pushq $-0x35 jmp 0x51d86
peek_token: push r15 push r14 push rbx mov r15, [rdi+70h] push 0Ah pop rcx push 2Fh ; '/' pop rax mov edx, 2401h loc_51B55: mov r14, r15 inc r15 movzx ebx, byte ptr [r14] lea edi, [rbx-0Bh] cmp edi, 2 jb short loc_51B55 cmp ebx, 9 jz short loc_51B55 cmp ebx, 0Ah jz short loc_51BC4 cmp ebx, 0Dh jz short loc_51BC4 cmp ebx, 20h ; ' ' jz short loc_51B55 cmp ebx, 2Fh ; '/' jnz short loc_51BFE movzx edi, byte ptr [r15] cmp edi, 2Fh ; '/' jz short loc_51BCA cmp edi, 2Ah ; '*' jnz short loc_51BF8 add r14, 2 mov r15, r14 loc_51B95: movzx edi, byte ptr [r15] cmp edi, 0Dh jz short loc_51BBB test edi, edi jz short loc_51B55 test esi, esi jz short loc_51BAC cmp dil, 0Ah jz short loc_51BF6 loc_51BAC: cmp dil, 2Ah ; '*' jnz short loc_51BBF cmp byte ptr [r15+1], 2Fh ; '/' jnz short loc_51BBF jmp short loc_51BED loc_51BBB: test esi, esi jnz short loc_51BF6 loc_51BBF: inc r15 jmp short loc_51B95 loc_51BC4: test esi, esi jz short loc_51B55 jmp short loc_51BF6 loc_51BCA: test esi, esi jnz short loc_51BF6 mov dil, 2Fh ; '/' loc_51BD1: cmp dil, 0Dh ja short loc_51BE4 movzx edi, dil bt edx, edi jb loc_51B55 loc_51BE4: mov dil, [r15+1] inc r15 jmp short loc_51BD1 loc_51BED: add r15, 2 jmp loc_51B55 loc_51BF6: mov eax, ecx loc_51BF8: pop rbx pop r14 pop r15 retn loc_51BFE: cmp ebx, 3Dh ; '=' jnz short loc_51C12 cmp byte ptr [r15], 3Eh ; '>' push 0FFFFFFFFFFFFFFA4h pop rcx push 3Dh ; '=' pop rax cmovz eax, ecx jmp short loc_51BF8 loc_51C12: mov edi, ebx call lre_js_is_ident_first test eax, eax jz short loc_51C79 lea eax, [rbx-61h]; switch 9 cases cmp eax, 8 ja short def_51C33; jumptable 0000000000051C33 default case lea rcx, jpt_51C33 movsxd rax, ds:(jpt_51C33 - 84300h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_51C35: cmp byte ptr [r15], 77h ; 'w'; jumptable 0000000000051C33 case 97 jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+2], 61h ; 'a' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+3], 69h ; 'i' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+4], 74h ; 't' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 movzx edi, byte ptr [r14+5] call lre_js_is_ident_next test eax, eax jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 push 0FFFFFFFFFFFFFFD8h jmp loc_51D86 loc_51C79: mov eax, ebx jmp loc_51BF8 def_51C33: cmp ebx, 6Fh ; 'o'; jumptable 0000000000051C33 default case jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r15], 66h ; 'f' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 movzx edi, byte ptr [r14+2] call lre_js_is_ident_next test eax, eax jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 push 0FFFFFFFFFFFFFFD9h jmp loc_51D86 loc_51CAC: cmp byte ptr [r15], 75h ; 'u'; jumptable 0000000000051C33 case 102 jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+2], 6Eh ; 'n' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+3], 63h ; 'c' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+4], 74h ; 't' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+5], 69h ; 'i' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+6], 6Fh ; 'o' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+7], 6Eh ; 'n' jnz loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 movzx edi, byte ptr [r14+8] call lre_js_is_ident_next test eax, eax jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 push 0FFFFFFFFFFFFFFC5h jmp short loc_51D86 loc_51D0A: mov al, [r15]; jumptable 0000000000051C33 case 105 cmp al, 6Eh ; 'n' jnz short loc_51D22 movzx edi, byte ptr [r14+2] call lre_js_is_ident_next test eax, eax jz short loc_51D8C mov al, [r15] loc_51D22: cmp al, 6Dh ; 'm' jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+2], 70h ; 'p' jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+3], 6Fh ; 'o' jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+4], 72h ; 'r' jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+5], 74h ; 't' jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 movzx edi, byte ptr [r14+6] call lre_js_is_ident_next test eax, eax jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 push 0FFFFFFFFFFFFFFCDh jmp short loc_51D86 loc_51D54: cmp byte ptr [r15], 78h ; 'x'; jumptable 0000000000051C33 case 101 jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+2], 70h ; 'p' jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+3], 6Fh ; 'o' jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+4], 72h ; 'r' jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 cmp byte ptr [r14+5], 74h ; 't' jnz short loc_51D84; jumptable 0000000000051C33 cases 98-100,103,104 movzx edi, byte ptr [r14+6] call lre_js_is_ident_next test eax, eax jz short loc_51D90 loc_51D84: push 0FFFFFFFFFFFFFF83h; jumptable 0000000000051C33 cases 98-100,103,104 loc_51D86: pop rax jmp loc_51BF8 loc_51D8C: push 0FFFFFFFFFFFFFFB7h jmp short loc_51D86 loc_51D90: push 0FFFFFFFFFFFFFFCBh jmp short loc_51D86
long long peek_token(long long a1, int a2) { unsigned __int8 *j; // r15 long long result; // rax int v4; // edx unsigned __int8 *v5; // r14 unsigned int v6; // ebx int v7; // edi int v8; // edi unsigned __int8 i; // di unsigned __int8 v10; // al long long v11; // [rsp-8h] [rbp-20h] j = *(unsigned __int8 **)(a1 + 112); result = 47LL; v4 = 9217; while ( 1 ) { do { while ( 1 ) { do { do { LABEL_2: v5 = j++; v6 = *v5; } while ( v6 - 11 < 2 ); } while ( v6 == 9 ); if ( v6 != 10 && v6 != 13 ) break; if ( a2 ) return 10LL; } } while ( v6 == 32 ); if ( v6 != 47 ) break; v7 = *j; if ( v7 == 47 ) { if ( !a2 ) { for ( i = 47; i > 0xDu || !_bittest(&v4, i); i = *++j ) ; goto LABEL_2; } return 10LL; } if ( v7 != 42 ) return result; for ( j = v5 + 2; ; ++j ) { v8 = *j; if ( v8 == 13 ) { if ( a2 ) return 10LL; continue; } if ( !*j ) goto LABEL_2; if ( a2 && (_BYTE)v8 == 10 ) return 10LL; if ( (_BYTE)v8 == 42 && j[1] == 47 ) break; } j += 2; } if ( v6 == 61 ) { result = 61LL; if ( *j == 62 ) return 4294967204LL; } else if ( (unsigned int)lre_js_is_ident_first(*v5) ) { switch ( v6 ) { case 'a': if ( *j != 119 || v5[2] != 97 || v5[3] != 105 || v5[4] != 116 || (unsigned int)lre_js_is_ident_next(v5[5]) ) goto LABEL_71; return -40LL; case 'b': case 'c': case 'd': case 'g': case 'h': goto LABEL_71; case 'e': if ( *j != 120 || v5[2] != 112 || v5[3] != 111 || v5[4] != 114 || v5[5] != 116 || (unsigned int)lre_js_is_ident_next(v5[6]) ) { goto LABEL_71; } v11 = -53LL; break; case 'f': if ( *j != 117 || v5[2] != 110 || v5[3] != 99 || v5[4] != 116 || v5[5] != 105 || v5[6] != 111 || v5[7] != 110 || (unsigned int)lre_js_is_ident_next(v5[8]) ) { goto LABEL_71; } v11 = -59LL; break; case 'i': v10 = *j; if ( *j != 110 ) goto LABEL_58; if ( (unsigned int)lre_js_is_ident_next(v5[2]) ) { v10 = *j; LABEL_58: if ( v10 == 109 && v5[2] == 112 && v5[3] == 111 && v5[4] == 114 && v5[5] == 116 && !(unsigned int)lre_js_is_ident_next(v5[6]) ) { v11 = -51LL; } else { LABEL_71: v11 = -125LL; } } else { v11 = -73LL; } break; default: if ( v6 != 111 || *j != 102 || (unsigned int)lre_js_is_ident_next(v5[2]) ) goto LABEL_71; v11 = -39LL; break; } return v11; } else { return v6; } return result; }
peek_token: PUSH R15 PUSH R14 PUSH RBX MOV R15,qword ptr [RDI + 0x70] PUSH 0xa POP RCX PUSH 0x2f POP RAX MOV EDX,0x2401 LAB_00151b55: MOV R14,R15 INC R15 MOVZX EBX,byte ptr [R14] LEA EDI,[RBX + -0xb] CMP EDI,0x2 JC 0x00151b55 CMP EBX,0x9 JZ 0x00151b55 CMP EBX,0xa JZ 0x00151bc4 CMP EBX,0xd JZ 0x00151bc4 CMP EBX,0x20 JZ 0x00151b55 CMP EBX,0x2f JNZ 0x00151bfe MOVZX EDI,byte ptr [R15] CMP EDI,0x2f JZ 0x00151bca CMP EDI,0x2a JNZ 0x00151bf8 ADD R14,0x2 MOV R15,R14 LAB_00151b95: MOVZX EDI,byte ptr [R15] CMP EDI,0xd JZ 0x00151bbb TEST EDI,EDI JZ 0x00151b55 TEST ESI,ESI JZ 0x00151bac CMP DIL,0xa JZ 0x00151bf6 LAB_00151bac: CMP DIL,0x2a JNZ 0x00151bbf CMP byte ptr [R15 + 0x1],0x2f JNZ 0x00151bbf JMP 0x00151bed LAB_00151bbb: TEST ESI,ESI JNZ 0x00151bf6 LAB_00151bbf: INC R15 JMP 0x00151b95 LAB_00151bc4: TEST ESI,ESI JZ 0x00151b55 JMP 0x00151bf6 LAB_00151bca: TEST ESI,ESI JNZ 0x00151bf6 MOV DIL,0x2f LAB_00151bd1: CMP DIL,0xd JA 0x00151be4 MOVZX EDI,DIL BT EDX,EDI JC 0x00151b55 LAB_00151be4: MOV DIL,byte ptr [R15 + 0x1] INC R15 JMP 0x00151bd1 LAB_00151bed: ADD R15,0x2 JMP 0x00151b55 LAB_00151bf6: MOV EAX,ECX LAB_00151bf8: POP RBX POP R14 POP R15 RET LAB_00151bfe: CMP EBX,0x3d JNZ 0x00151c12 CMP byte ptr [R15],0x3e PUSH -0x5c POP RCX PUSH 0x3d POP RAX CMOVZ EAX,ECX JMP 0x00151bf8 LAB_00151c12: MOV EDI,EBX CALL 0x0015184d TEST EAX,EAX JZ 0x00151c79 LEA EAX,[RBX + -0x61] CMP EAX,0x8 JA 0x00151c80 LEA RCX,[0x184300] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_61: CMP byte ptr [R15],0x77 JNZ 0x00151d84 CMP byte ptr [R14 + 0x2],0x61 JNZ 0x00151d84 CMP byte ptr [R14 + 0x3],0x69 JNZ 0x00151d84 CMP byte ptr [R14 + 0x4],0x74 JNZ 0x00151d84 MOVZX EDI,byte ptr [R14 + 0x5] CALL 0x00151a98 TEST EAX,EAX JNZ 0x00151d84 PUSH -0x28 JMP 0x00151d86 LAB_00151c79: MOV EAX,EBX JMP 0x00151bf8 default: CMP EBX,0x6f JNZ 0x00151d84 CMP byte ptr [R15],0x66 JNZ 0x00151d84 MOVZX EDI,byte ptr [R14 + 0x2] CALL 0x00151a98 TEST EAX,EAX JNZ 0x00151d84 PUSH -0x27 JMP 0x00151d86 caseD_66: CMP byte ptr [R15],0x75 JNZ 0x00151d84 CMP byte ptr [R14 + 0x2],0x6e JNZ 0x00151d84 CMP byte ptr [R14 + 0x3],0x63 JNZ 0x00151d84 CMP byte ptr [R14 + 0x4],0x74 JNZ 0x00151d84 CMP byte ptr [R14 + 0x5],0x69 JNZ 0x00151d84 CMP byte ptr [R14 + 0x6],0x6f JNZ 0x00151d84 CMP byte ptr [R14 + 0x7],0x6e JNZ 0x00151d84 MOVZX EDI,byte ptr [R14 + 0x8] CALL 0x00151a98 TEST EAX,EAX JNZ 0x00151d84 PUSH -0x3b JMP 0x00151d86 caseD_69: MOV AL,byte ptr [R15] CMP AL,0x6e JNZ 0x00151d22 MOVZX EDI,byte ptr [R14 + 0x2] CALL 0x00151a98 TEST EAX,EAX JZ 0x00151d8c MOV AL,byte ptr [R15] LAB_00151d22: CMP AL,0x6d JNZ 0x00151d84 CMP byte ptr [R14 + 0x2],0x70 JNZ 0x00151d84 CMP byte ptr [R14 + 0x3],0x6f JNZ 0x00151d84 CMP byte ptr [R14 + 0x4],0x72 JNZ 0x00151d84 CMP byte ptr [R14 + 0x5],0x74 JNZ 0x00151d84 MOVZX EDI,byte ptr [R14 + 0x6] CALL 0x00151a98 TEST EAX,EAX JNZ 0x00151d84 PUSH -0x33 JMP 0x00151d86 caseD_65: CMP byte ptr [R15],0x78 JNZ 0x00151d84 CMP byte ptr [R14 + 0x2],0x70 JNZ 0x00151d84 CMP byte ptr [R14 + 0x3],0x6f JNZ 0x00151d84 CMP byte ptr [R14 + 0x4],0x72 JNZ 0x00151d84 CMP byte ptr [R14 + 0x5],0x74 JNZ 0x00151d84 MOVZX EDI,byte ptr [R14 + 0x6] CALL 0x00151a98 TEST EAX,EAX JZ 0x00151d90 caseD_62: PUSH -0x7d LAB_00151d86: POP RAX JMP 0x00151bf8 LAB_00151d8c: PUSH -0x49 JMP 0x00151d86 LAB_00151d90: PUSH -0x35 JMP 0x00151d86
ulong peek_token(long param_1,int param_2) { ulong uVar1; int iVar2; uint uVar3; byte bVar4; byte *pbVar5; byte *pbVar6; pbVar6 = *(byte **)(param_1 + 0x70); LAB_00151b55: do { do { while( true ) { do { do { pbVar5 = pbVar6; pbVar6 = pbVar5 + 1; bVar4 = *pbVar5; } while (bVar4 - 0xb < 2); } while (bVar4 == 9); if ((bVar4 != 10) && (bVar4 != 0xd)) break; if (param_2 != 0) { return 10; } } } while (bVar4 == 0x20); if (bVar4 != 0x2f) { if (bVar4 == 0x3d) { uVar1 = 0x3d; if (*pbVar6 == 0x3e) { uVar1 = 0xffffffffffffffa4; } return uVar1 & 0xffffffff; } uVar3 = (uint)bVar4; iVar2 = lre_js_is_ident_first(uVar3); if (iVar2 == 0) { return (ulong)uVar3; } switch(bVar4) { case 0x61: if (((*pbVar6 == 0x77) && (pbVar5[2] == 0x61)) && ((pbVar5[3] == 0x69 && ((pbVar5[4] == 0x74 && (iVar2 = lre_js_is_ident_next(pbVar5[5]), iVar2 == 0)))))) { return 0xffffffffffffffd8; } break; case 0x62: case 99: case 100: case 0x67: case 0x68: break; case 0x65: if (((((*pbVar6 == 0x78) && (pbVar5[2] == 0x70)) && (pbVar5[3] == 0x6f)) && ((pbVar5[4] == 0x72 && (pbVar5[5] == 0x74)))) && (iVar2 = lre_js_is_ident_next(pbVar5[6]), iVar2 == 0)) { return 0xffffffffffffffcb; } break; case 0x66: if (((((*pbVar6 == 0x75) && (pbVar5[2] == 0x6e)) && (pbVar5[3] == 99)) && ((pbVar5[4] == 0x74 && (pbVar5[5] == 0x69)))) && ((pbVar5[6] == 0x6f && ((pbVar5[7] == 0x6e && (iVar2 = lre_js_is_ident_next(pbVar5[8]), iVar2 == 0)))))) { return 0xffffffffffffffc5; } break; case 0x69: bVar4 = *pbVar6; if (bVar4 == 0x6e) { iVar2 = lre_js_is_ident_next(pbVar5[2]); if (iVar2 == 0) { return 0xffffffffffffffb7; } bVar4 = *pbVar6; } if ((((bVar4 == 0x6d) && (pbVar5[2] == 0x70)) && ((pbVar5[3] == 0x6f && ((pbVar5[4] == 0x72 && (pbVar5[5] == 0x74)))))) && (iVar2 = lre_js_is_ident_next(pbVar5[6]), iVar2 == 0)) { return 0xffffffffffffffcd; } break; default: if (((uVar3 == 0x6f) && (*pbVar6 == 0x66)) && (iVar2 = lre_js_is_ident_next(pbVar5[2]), iVar2 == 0)) { return 0xffffffffffffffd9; } } return 0xffffffffffffff83; } if (*pbVar6 != 0x2f) { if (*pbVar6 != 0x2a) { return 0x2f; } pbVar6 = pbVar5 + 2; do { bVar4 = *pbVar6; if (bVar4 == 0xd) { if (param_2 != 0) { return 10; } } else { if (bVar4 == 0) goto LAB_00151b55; if ((param_2 != 0) && (bVar4 == 10)) { return 10; } if ((bVar4 == 0x2a) && (pbVar6[1] == 0x2f)) goto LAB_00151bed; } pbVar6 = pbVar6 + 1; } while( true ); } if (param_2 != 0) { return 10; } bVar4 = 0x2f; while ((0xd < bVar4 || ((0x2401U >> (bVar4 & 0x1f) & 1) == 0))) { bVar4 = pbVar6[1]; pbVar6 = pbVar6 + 1; } } while( true ); LAB_00151bed: pbVar6 = pbVar6 + 2; goto LAB_00151b55; }
49,894
ftxui::GlyphIterate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, unsigned long)
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/screen/string.cpp
size_t GlyphIterate(const std::string& input, int glyph_offset, size_t start) { if (glyph_offset >= 0) { for (int i = 0; i < glyph_offset; ++i) { start = GlyphNext(input, start); } return start; } else { for (int i = 0; i < -glyph_offset; ++i) { start = GlyphPrevious(input, start); } return start; } }
O0
cpp
ftxui::GlyphIterate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, unsigned long): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) cmpl $0x0, -0x14(%rbp) jl 0x8dc6e movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax cmpl -0x14(%rbp), %eax jge 0x8dc64 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x8db60 movq %rax, -0x20(%rbp) movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0x8dc40 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x8dca5 movl $0x0, -0x28(%rbp) movl -0x28(%rbp), %eax xorl %ecx, %ecx subl -0x14(%rbp), %ecx cmpl %ecx, %eax jge 0x8dc9d movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x8dab0 movq %rax, -0x20(%rbp) movl -0x28(%rbp), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x8dc75 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nop
_ZN5ftxui12GlyphIterateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEim: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx cmp [rbp+var_14], 0 jl short loc_8DC6E mov [rbp+var_24], 0 loc_8DC40: mov eax, [rbp+var_24] cmp eax, [rbp+var_14] jge short loc_8DC64 mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] call _ZN5ftxui9GlyphNextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm; ftxui::GlyphNext(std::string const&,ulong) mov [rbp+var_20], rax mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp short loc_8DC40 loc_8DC64: mov rax, [rbp+var_20] mov [rbp+var_8], rax jmp short loc_8DCA5 loc_8DC6E: mov [rbp+var_28], 0 loc_8DC75: mov eax, [rbp+var_28] xor ecx, ecx sub ecx, [rbp+var_14] cmp eax, ecx jge short loc_8DC9D mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] call _ZN5ftxui13GlyphPreviousERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm; ftxui::GlyphPrevious(std::string const&,ulong) mov [rbp+var_20], rax mov eax, [rbp+var_28] add eax, 1 mov [rbp+var_28], eax jmp short loc_8DC75 loc_8DC9D: mov rax, [rbp+var_20] mov [rbp+var_8], rax loc_8DCA5: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long ftxui::GlyphIterate(long long a1, int a2, long long a3) { int i; // [rsp+8h] [rbp-28h] int j; // [rsp+Ch] [rbp-24h] if ( a2 < 0 ) { for ( i = 0; i < -a2; ++i ) a3 = ftxui::GlyphPrevious(a1, a3); return a3; } else { for ( j = 0; j < a2; ++j ) a3 = ftxui::GlyphNext(a1, a3); return a3; } }
GlyphIterate: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX CMP dword ptr [RBP + -0x14],0x0 JL 0x0018dc6e MOV dword ptr [RBP + -0x24],0x0 LAB_0018dc40: MOV EAX,dword ptr [RBP + -0x24] CMP EAX,dword ptr [RBP + -0x14] JGE 0x0018dc64 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] CALL 0x0018db60 MOV qword ptr [RBP + -0x20],RAX MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x0018dc40 LAB_0018dc64: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX JMP 0x0018dca5 LAB_0018dc6e: MOV dword ptr [RBP + -0x28],0x0 LAB_0018dc75: MOV EAX,dword ptr [RBP + -0x28] XOR ECX,ECX SUB ECX,dword ptr [RBP + -0x14] CMP EAX,ECX JGE 0x0018dc9d MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] CALL 0x0018dab0 MOV qword ptr [RBP + -0x20],RAX MOV EAX,dword ptr [RBP + -0x28] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX JMP 0x0018dc75 LAB_0018dc9d: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX LAB_0018dca5: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
/* ftxui::GlyphIterate(std::__cxx11::string const&, int, unsigned long) */ ulong ftxui::GlyphIterate(string *param_1,int param_2,ulong param_3) { int4 local_30; int4 local_2c; int8 local_28; int8 local_10; local_28 = param_3; if (param_2 < 0) { for (local_30 = 0; SBORROW4(local_30,-param_2) != local_30 + param_2 < 0; local_30 = local_30 + 1) { local_28 = GlyphPrevious(param_1,local_28); } local_10 = local_28; } else { for (local_2c = 0; local_2c < param_2; local_2c = local_2c + 1) { local_28 = GlyphNext(param_1,local_28); } local_10 = local_28; } return local_10; }
49,895
google::protobuf::compiler::java::ImmutableMessageFieldGenerator::GenerateBuilderClearCode(google::protobuf::io::Printer*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/message_field.cc
void ImmutableMessageFieldGenerator::GenerateBuilderClearCode( io::Printer* printer) const { // No need to clear the has-bit since we clear the bitField ints all at once. printer->Print(variables_, "$name$_ = null;\n" "if ($name$Builder_ != null) {\n" " $name$Builder_.dispose();\n" " $name$Builder_ = null;\n" "}\n"); }
O3
cpp
google::protobuf::compiler::java::ImmutableMessageFieldGenerator::GenerateBuilderClearCode(google::protobuf::io::Printer*) const: movq %rsi, %rax leaq 0x18(%rdi), %rsi leaq 0xfd0dd(%rip), %rdx # 0x1d9e9d movq %rax, %rdi jmp 0x16cd32
_ZNK6google8protobuf8compiler4java30ImmutableMessageFieldGenerator24GenerateBuilderClearCodeEPNS0_2io7PrinterE: mov rax, rsi lea rsi, [rdi+18h] lea rdx, aNameNullIfName; "$name$_ = null;\nif ($name$Builder_ != "... mov rdi, rax; this jmp _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
long long google::protobuf::compiler::java::ImmutableMessageFieldGenerator::GenerateBuilderClearCode( google::protobuf::compiler::java::ImmutableMessageFieldGenerator *this, google::protobuf::io::Printer *a2, long long a3, long long a4, long long a5, long long a6, void *a7, int a8, char a9, int a10, int a11, int a12, int a13, int a14, int a15, void *a16, int a17, char a18) { return google::protobuf::io::Printer::Print(a2, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18); }
GenerateBuilderClearCode: MOV RAX,RSI LEA RSI,[RDI + 0x18] LEA RDX,[0x2d9e9d] MOV RDI,RAX JMP 0x0026cd32
/* google::protobuf::compiler::java::ImmutableMessageFieldGenerator::GenerateBuilderClearCode(google::protobuf::io::Printer*) const */ void __thiscall google::protobuf::compiler::java::ImmutableMessageFieldGenerator::GenerateBuilderClearCode (ImmutableMessageFieldGenerator *this,Printer *param_1) { io::Printer::Print(param_1,(map *)(this + 0x18), "$name$_ = null;\nif ($name$Builder_ != null) {\n $name$Builder_.dispose();\n $name$Builder_ = null;\n}\n" ); return; }
49,896
nglog::ColoredWriteToStderrOrStdout(_IO_FILE*, nglog::LogSeverity, char const*, unsigned long)
ng-log[P]ng-log/src/logging.cc
static void ColoredWriteToStderrOrStdout(FILE* output, LogSeverity severity, const char* message, size_t len) { bool is_stdout = (output == stdout); const GLogColor color = (LogDestination::terminal_supports_color() && ((!is_stdout && FLAGS_colorlogtostderr) || (is_stdout && FLAGS_colorlogtostdout))) ? SeverityToColor(severity) : COLOR_DEFAULT; // Avoid using cerr from this module since we may get called during // exit code, and cerr may be partially or fully destroyed by then. if (COLOR_DEFAULT == color) { fwrite(message, len, 1, output); return; } #ifdef NGLOG_OS_WINDOWS const HANDLE output_handle = GetStdHandle(is_stdout ? STD_OUTPUT_HANDLE : STD_ERROR_HANDLE); // Gets the current text color. CONSOLE_SCREEN_BUFFER_INFO buffer_info; GetConsoleScreenBufferInfo(output_handle, &buffer_info); const WORD old_color_attrs = buffer_info.wAttributes; // We need to flush the stream buffers into the console before each // SetConsoleTextAttribute call lest it affect the text that is already // printed but has not yet reached the console. fflush(output); SetConsoleTextAttribute(output_handle, GetColorAttribute(color) | FOREGROUND_INTENSITY); fwrite(message, len, 1, output); fflush(output); // Restores the text color. SetConsoleTextAttribute(output_handle, old_color_attrs); #else fprintf(output, "\033[0;3%sm", GetAnsiColorCode(color)); fwrite(message, len, 1, output); fprintf(output, "\033[m"); // Resets the terminal to default. #endif // NGLOG_OS_WINDOWS }
O0
cpp
nglog::ColoredWriteToStderrOrStdout(_IO_FILE*, nglog::LogSeverity, char const*, unsigned long): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x8(%rbp), %rax movq 0x5ae4e(%rip), %rcx # 0x76f30 cmpq (%rcx), %rax sete %al andb $0x1, %al movb %al, -0x21(%rbp) callq 0x21520 testb $0x1, (%rax) je 0x1c128 testb $0x1, -0x21(%rbp) jne 0x1c109 leaq 0x5bb92(%rip), %rax # 0x77c96 testb $0x1, (%rax) jne 0x1c11b testb $0x1, -0x21(%rbp) je 0x1c128 leaq 0x5bb82(%rip), %rax # 0x77c98 testb $0x1, (%rax) je 0x1c128 movl -0xc(%rbp), %edi callq 0x1c1b0 movl %eax, -0x2c(%rbp) jmp 0x1c12f xorl %eax, %eax movl %eax, -0x2c(%rbp) jmp 0x1c12f movl -0x2c(%rbp), %eax movl %eax, -0x28(%rbp) xorl %eax, %eax cmpl -0x28(%rbp), %eax jne 0x1c154 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x8(%rbp), %rcx movl $0x1, %edx callq 0x9e30 jmp 0x1c1a1 movq -0x8(%rbp), %rax movq %rax, -0x38(%rbp) movl -0x28(%rbp), %edi callq 0x1c230 movq -0x38(%rbp), %rdi movq %rax, %rdx leaq 0x35d59(%rip), %rsi # 0x51ecb movb $0x0, %al callq 0x9ae0 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x8(%rbp), %rcx movl $0x1, %edx callq 0x9e30 movq -0x8(%rbp), %rdi leaq 0x35d3a(%rip), %rsi # 0x51ed4 movb $0x0, %al callq 0x9ae0 addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN5nglogL28ColoredWriteToStderrOrStdoutEP8_IO_FILENS_11LogSeverityEPKcm: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_8] mov rcx, cs:stdout_ptr cmp rax, [rcx] setz al and al, 1 mov [rbp+var_21], al call _ZN5nglog14LogDestination23terminal_supports_colorEv; nglog::LogDestination::terminal_supports_color(void) test byte ptr [rax], 1 jz short loc_1C128 test [rbp+var_21], 1 jnz short loc_1C109 lea rax, _ZN3fLB22FLAGS_colorlogtostderrE; fLB::FLAGS_colorlogtostderr test byte ptr [rax], 1 jnz short loc_1C11B loc_1C109: test [rbp+var_21], 1 jz short loc_1C128 lea rax, _ZN3fLB22FLAGS_colorlogtostdoutE; fLB::FLAGS_colorlogtostdout test byte ptr [rax], 1 jz short loc_1C128 loc_1C11B: mov edi, [rbp+var_C] call _ZN5nglogL15SeverityToColorENS_11LogSeverityE; nglog::SeverityToColor(nglog::LogSeverity) mov [rbp+var_2C], eax jmp short loc_1C12F loc_1C128: xor eax, eax mov [rbp+var_2C], eax jmp short $+2 loc_1C12F: mov eax, [rbp+var_2C] mov [rbp+var_28], eax xor eax, eax cmp eax, [rbp+var_28] jnz short loc_1C154 mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rcx, [rbp+var_8] mov edx, 1 call _fwrite jmp short loc_1C1A1 loc_1C154: mov rax, [rbp+var_8] mov [rbp+var_38], rax mov edi, [rbp+var_28] call _ZN5nglogL16GetAnsiColorCodeENS_9GLogColorE; nglog::GetAnsiColorCode(nglog::GLogColor) mov rdi, [rbp+var_38] mov rdx, rax lea rsi, a03Sm; "\x1B[0;3%sm" mov al, 0 call _fprintf mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rcx, [rbp+var_8] mov edx, 1 call _fwrite mov rdi, [rbp+var_8] lea rsi, aM; "\x1B[m" mov al, 0 call _fprintf loc_1C1A1: add rsp, 40h pop rbp retn
long long nglog::ColoredWriteToStderrOrStdout( nglog::LogDestination *a1, unsigned int a2, long long a3, long long a4) { const char *AnsiColorCode; // rax unsigned int v6; // [rsp+14h] [rbp-2Ch] bool v7; // [rsp+1Fh] [rbp-21h] v7 = a1 == (nglog::LogDestination *)stdout; if ( (*(_BYTE *)nglog::LogDestination::terminal_supports_color(a1) & 1) != 0 && (!v7 && (fLB::FLAGS_colorlogtostderr & 1) != 0 || v7 && (fLB::FLAGS_colorlogtostdout & 1) != 0) ) { v6 = nglog::SeverityToColor(a2); } else { v6 = 0; } if ( !v6 ) return fwrite(a3, a4, 1LL, a1); AnsiColorCode = (const char *)nglog::GetAnsiColorCode(v6); fprintf(a1, "\x1B[0;3%sm", AnsiColorCode); fwrite(a3, a4, 1LL, a1); return fprintf(a1, "\x1B[m"); }
ColoredWriteToStderrOrStdout: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [0x00176f30] CMP RAX,qword ptr [RCX] SETZ AL AND AL,0x1 MOV byte ptr [RBP + -0x21],AL CALL 0x00121520 TEST byte ptr [RAX],0x1 JZ 0x0011c128 TEST byte ptr [RBP + -0x21],0x1 JNZ 0x0011c109 LEA RAX,[0x177c96] TEST byte ptr [RAX],0x1 JNZ 0x0011c11b LAB_0011c109: TEST byte ptr [RBP + -0x21],0x1 JZ 0x0011c128 LEA RAX,[0x177c98] TEST byte ptr [RAX],0x1 JZ 0x0011c128 LAB_0011c11b: MOV EDI,dword ptr [RBP + -0xc] CALL 0x0011c1b0 MOV dword ptr [RBP + -0x2c],EAX JMP 0x0011c12f LAB_0011c128: XOR EAX,EAX MOV dword ptr [RBP + -0x2c],EAX JMP 0x0011c12f LAB_0011c12f: MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x28],EAX XOR EAX,EAX CMP EAX,dword ptr [RBP + -0x28] JNZ 0x0011c154 MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] MOV EDX,0x1 CALL 0x00109e30 JMP 0x0011c1a1 LAB_0011c154: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x38],RAX MOV EDI,dword ptr [RBP + -0x28] CALL 0x0011c230 MOV RDI,qword ptr [RBP + -0x38] MOV RDX,RAX LEA RSI,[0x151ecb] MOV AL,0x0 CALL 0x00109ae0 MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] MOV EDX,0x1 CALL 0x00109e30 MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[0x151ed4] MOV AL,0x0 CALL 0x00109ae0 LAB_0011c1a1: ADD RSP,0x40 POP RBP RET
/* nglog::ColoredWriteToStderrOrStdout(_IO_FILE*, nglog::LogSeverity, char const*, unsigned long) */ void nglog::ColoredWriteToStderrOrStdout (FILE *param_1,int4 param_2,void *param_3,size_t param_4) { FILE *pFVar1; byte *pbVar2; int8 uVar3; int local_34; pFVar1 = *(FILE **)PTR_stdout_00176f30; pbVar2 = (byte *)LogDestination::terminal_supports_color(); if (((*pbVar2 & 1) == 0) || (((param_1 == pFVar1 || ((fLB::FLAGS_colorlogtostderr & 1) == 0)) && ((param_1 != pFVar1 || ((fLB::FLAGS_colorlogtostdout & 1) == 0)))))) { local_34 = 0; } else { local_34 = SeverityToColor(param_2); } if (local_34 == 0) { fwrite(param_3,param_4,1,param_1); } else { uVar3 = GetAnsiColorCode(local_34); fprintf(param_1,"\x1b[0;3%sm",uVar3); fwrite(param_3,param_4,1,param_1); fprintf(param_1,"\x1b[m"); } return; }
49,897
Dimension::set_voxel(unsigned short, glm::vec<3, long, (glm::qualifier)0> const&)
untodesu[P]voxelius/game/shared/dimension.cc
bool Dimension::set_voxel(voxel_id voxel, const voxel_pos &vpos) { auto cpos = coord::to_chunk(vpos); auto lpos = coord::to_local(vpos); if(auto chunk = find_chunk(cpos)) { chunk->set_voxel(voxel, lpos); VoxelSetEvent event; event.dimension = this; event.cpos = cpos; event.lpos = lpos; event.voxel = voxel; event.chunk = chunk; globals::dispatcher.trigger(event); return true; } return false; }
O3
cpp
Dimension::set_voxel(unsigned short, glm::vec<3, long, (glm::qualifier)0> const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x58, %rsp movl %esi, %ebp movq %rdi, %rbx movq (%rdx), %rax movq 0x8(%rdx), %rcx movq %rax, %rsi shrq $0x4, %rsi movq 0x10(%rdx), %rdx movq %rdx, %rdi shrq $0x4, %rdi movq %rcx, %r8 andq $-0x10, %r8 shlq $0x1c, %r8 movl %esi, %r9d orq %r8, %r9 leaq 0x20(%rsp), %rsi movq %r9, (%rsi) movl %edi, 0x8(%rsi) andl $0xf, %edx movw %dx, 0xc(%rsp) shlq $0x20, %rdx andl $0xf, %ecx shlq $0x10, %rcx orq %rdx, %rcx andl $0xf, %eax orq %rcx, %rax movl %eax, 0x8(%rsp) leaq 0x2c8(%rbx), %rdi callq 0x766b0 cmpl 0x2e8(%rbx), %eax je 0x758fb cltq movq 0x2d0(%rbx), %rcx leaq (%rax,%rax,2), %rax movq 0x10(%rcx,%rax,8), %r14 testq %r14, %r14 je 0x758fb movzwl %bp, %ebp leaq 0x8(%rsp), %r15 movq %r14, %rdi movl %ebp, %esi movq %r15, %rdx callq 0x72f3a movq 0x20(%rsp), %rax movq %rax, 0x10(%rsp) movl 0x28(%rsp), %eax movl %eax, 0x18(%rsp) movl (%r15), %eax movl %eax, (%rsp) movzwl 0x4(%r15), %eax movw %ax, 0x4(%rsp) leaq 0x1e6f6b(%rip), %rdi # 0x25c820 movl $0xf31291e7, %esi # imm = 0xF31291E7 callq 0x3ce44 leaq 0x30(%rsp), %rsi movq %rbx, (%rsi) movq 0x10(%rsp), %rcx movq %rcx, 0x8(%rsi) movl 0x18(%rsp), %ecx movl %ecx, 0x10(%rsi) movl (%rsp), %ecx movl %ecx, 0x14(%rsi) movzwl 0x4(%rsp), %ecx movw %cx, 0x18(%rsi) movw %bp, 0x1a(%rsi) movq %r14, 0x20(%rsi) leaq 0x8(%rax), %rdi callq 0x3d088 movb $0x1, %al jmp 0x758fd xorl %eax, %eax addq $0x58, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
_ZN9Dimension9set_voxelEtRKN3glm3vecILi3ElLNS0_9qualifierE0EEE: push rbp push r15 push r14 push rbx sub rsp, 58h mov ebp, esi mov rbx, rdi mov rax, [rdx] mov rcx, [rdx+8] mov rsi, rax shr rsi, 4 mov rdx, [rdx+10h] mov rdi, rdx shr rdi, 4 mov r8, rcx and r8, 0FFFFFFFFFFFFFFF0h shl r8, 1Ch mov r9d, esi or r9, r8 lea rsi, [rsp+78h+var_58] mov [rsi], r9 mov [rsi+8], edi and edx, 0Fh mov [rsp+78h+var_6C], dx shl rdx, 20h and ecx, 0Fh shl rcx, 10h or rcx, rdx and eax, 0Fh or rax, rcx mov [rsp+78h+var_70], eax lea rdi, [rbx+2C8h] call _ZNK7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE16find_filled_slotIS4_EEjRKT_; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::find_filled_slot<glm::vec<3,int,(glm::qualifier)0>>(glm::vec<3,int,(glm::qualifier)0> const&) cmp eax, [rbx+2E8h] jz loc_758FB cdqe mov rcx, [rbx+2D0h] lea rax, [rax+rax*2] mov r14, [rcx+rax*8+10h] test r14, r14 jz loc_758FB movzx ebp, bp lea r15, [rsp+78h+var_70] mov rdi, r14 mov esi, ebp mov rdx, r15 call _ZN5Chunk9set_voxelEtRKN3glm3vecILi3EsLNS0_9qualifierE0EEE; Chunk::set_voxel(ushort,glm::vec<3,short,(glm::qualifier)0> const&) mov rax, [rsp+78h+var_58] mov [rsp+78h+var_68], rax mov eax, [rsp+78h+var_50] mov [rsp+78h+var_60], eax mov eax, [r15] mov [rsp+78h+var_78], eax movzx eax, word ptr [r15+4] mov [rsp+78h+var_74], ax lea rdi, _ZN7globals10dispatcherE; globals::dispatcher mov esi, 0F31291E7h call _ZN4entt16basic_dispatcherISaIvEE6assureI13VoxelSetEventEERNS_8internal18dispatcher_handlerIT_S1_EEj; entt::basic_dispatcher<std::allocator<void>>::assure<VoxelSetEvent>(uint) lea rsi, [rsp+78h+var_48] mov [rsi], rbx mov rcx, [rsp+78h+var_68] mov [rsi+8], rcx mov ecx, [rsp+78h+var_60] mov [rsi+10h], ecx mov ecx, [rsp+78h+var_78] mov [rsi+14h], ecx movzx ecx, [rsp+78h+var_74] mov [rsi+18h], cx mov [rsi+1Ah], bp mov [rsi+20h], r14 lea rdi, [rax+8] call _ZNK4entt4sighIFvR13VoxelSetEventESaIvEE7publishES2_; entt::sigh<void ()(VoxelSetEvent &),std::allocator<void>>::publish(VoxelSetEvent &) mov al, 1 jmp short loc_758FD loc_758FB: xor eax, eax loc_758FD: add rsp, 58h pop rbx pop r14 pop r15 pop rbp retn
char Dimension::set_voxel(long long a1, __int16 a2, long long *a3) { long long v4; // rax long long v5; // rcx unsigned long long v6; // rsi unsigned long long v7; // rdx int v8; // eax long long v9; // rcx long long v10; // rax long long v11; // r14 long long v12; // rax int v14; // [rsp+0h] [rbp-78h] __int16 v15; // [rsp+4h] [rbp-74h] int v16; // [rsp+8h] [rbp-70h] BYREF __int16 v17; // [rsp+Ch] [rbp-6Ch] unsigned long long v18; // [rsp+10h] [rbp-68h] int v19; // [rsp+18h] [rbp-60h] unsigned long long v20; // [rsp+20h] [rbp-58h] int v21; // [rsp+28h] [rbp-50h] _QWORD v22[2]; // [rsp+30h] [rbp-48h] BYREF int v23; // [rsp+40h] [rbp-38h] int v24; // [rsp+44h] [rbp-34h] __int16 v25; // [rsp+48h] [rbp-30h] __int16 v26; // [rsp+4Ah] [rbp-2Eh] long long v27; // [rsp+50h] [rbp-28h] v4 = *a3; v5 = a3[1]; v6 = (unsigned long long)*a3 >> 4; v7 = a3[2]; v20 = ((v5 & 0xFFFFFFFFFFFFFFF0LL) << 28) | (unsigned int)v6; v21 = v7 >> 4; v17 = v7 & 0xF; v16 = ((v5 & 0xF) << 16) | v4 & 0xF; v8 = emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::find_filled_slot<glm::vec<3,int,(glm::qualifier)0>>(a1 + 712); if ( v8 == *(_DWORD *)(a1 + 744) ) return 0; v9 = *(_QWORD *)(a1 + 720); v10 = 3LL * v8; v11 = *(_QWORD *)(v9 + 8 * v10 + 16); if ( !v11 ) return 0; Chunk::set_voxel(*(_QWORD *)(v9 + 8 * v10 + 16), a2, (__int16 *)&v16); v18 = v20; v19 = v21; v14 = v16; v15 = v17; v12 = entt::basic_dispatcher<std::allocator<void>>::assure<VoxelSetEvent>(globals::dispatcher, -216886809); v22[0] = a1; v22[1] = v18; v23 = v19; v24 = v14; v25 = v15; v26 = a2; v27 = v11; entt::sigh<void ()(VoxelSetEvent &),std::allocator<void>>::publish((_QWORD *)(v12 + 8), (long long)v22); return 1; }
set_voxel: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x58 MOV EBP,ESI MOV RBX,RDI MOV RAX,qword ptr [RDX] MOV RCX,qword ptr [RDX + 0x8] MOV RSI,RAX SHR RSI,0x4 MOV RDX,qword ptr [RDX + 0x10] MOV RDI,RDX SHR RDI,0x4 MOV R8,RCX AND R8,-0x10 SHL R8,0x1c MOV R9D,ESI OR R9,R8 LEA RSI,[RSP + 0x20] MOV qword ptr [RSI],R9 MOV dword ptr [RSI + 0x8],EDI AND EDX,0xf MOV word ptr [RSP + 0xc],DX SHL RDX,0x20 AND ECX,0xf SHL RCX,0x10 OR RCX,RDX AND EAX,0xf OR RAX,RCX MOV dword ptr [RSP + 0x8],EAX LEA RDI,[RBX + 0x2c8] CALL 0x001766b0 CMP EAX,dword ptr [RBX + 0x2e8] JZ 0x001758fb CDQE MOV RCX,qword ptr [RBX + 0x2d0] LEA RAX,[RAX + RAX*0x2] MOV R14,qword ptr [RCX + RAX*0x8 + 0x10] TEST R14,R14 JZ 0x001758fb MOVZX EBP,BP LEA R15,[RSP + 0x8] MOV RDI,R14 MOV ESI,EBP MOV RDX,R15 CALL 0x00172f3a MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x10],RAX MOV EAX,dword ptr [RSP + 0x28] MOV dword ptr [RSP + 0x18],EAX MOV EAX,dword ptr [R15] MOV dword ptr [RSP],EAX MOVZX EAX,word ptr [R15 + 0x4] MOV word ptr [RSP + 0x4],AX LEA RDI,[0x35c820] MOV ESI,0xf31291e7 CALL 0x0013ce44 LEA RSI,[RSP + 0x30] MOV qword ptr [RSI],RBX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RSI + 0x8],RCX MOV ECX,dword ptr [RSP + 0x18] MOV dword ptr [RSI + 0x10],ECX MOV ECX,dword ptr [RSP] MOV dword ptr [RSI + 0x14],ECX MOVZX ECX,word ptr [RSP + 0x4] MOV word ptr [RSI + 0x18],CX MOV word ptr [RSI + 0x1a],BP MOV qword ptr [RSI + 0x20],R14 LEA RDI,[RAX + 0x8] CALL 0x0013d088 MOV AL,0x1 JMP 0x001758fd LAB_001758fb: XOR EAX,EAX LAB_001758fd: ADD RSP,0x58 POP RBX POP R14 POP R15 POP RBP RET
/* Dimension::set_voxel(unsigned short, glm::vec<3, long, (glm::qualifier)0> const&) */ int8 __thiscall Dimension::set_voxel(Dimension *this,ushort param_1,vec *param_2) { Chunk *this_00; ushort uVar1; uint uVar2; dispatcher_handler *pdVar3; int8 uVar4; uint local_70; ushort local_6c; ulong local_68; int4 local_60; ulong local_58; int4 local_50; Dimension *local_48; ulong local_40; int4 local_38; uint local_34; ushort local_30; ushort local_2e; Chunk *local_28; local_58 = *(ulong *)param_2 >> 4 & 0xffffffff | (*(ulong *)(param_2 + 8) & 0xfffffffffffffff0) << 0x1c; local_50 = (int4)(*(ulong *)(param_2 + 0x10) >> 4); local_6c = (ushort)*(ulong *)(param_2 + 0x10) & 0xf; local_70 = (uint)*(ulong *)param_2 & 0xf | ((uint)*(ulong *)(param_2 + 8) & 0xf) << 0x10; uVar2 = emhash8:: HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> ::find_filled_slot<glm::vec<3,int,(glm::qualifier)0>> ((HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>> *)(this + 0x2c8),(vec *)&local_58); if ((uVar2 == *(uint *)(this + 0x2e8)) || (this_00 = *(Chunk **)(*(long *)(this + 0x2d0) + 0x10 + (long)(int)uVar2 * 0x18), this_00 == (Chunk *)0x0)) { uVar4 = 0; } else { Chunk::set_voxel(this_00,param_1,(vec *)&local_70); uVar1 = local_6c; uVar2 = local_70; local_68 = local_58; local_60 = local_50; pdVar3 = entt::basic_dispatcher<std::allocator<void>>::assure<VoxelSetEvent> ((basic_dispatcher<std::allocator<void>> *)globals::dispatcher,0xf31291e7); local_40 = local_68; local_38 = local_60; local_34 = uVar2; local_30 = uVar1; local_48 = this; local_2e = param_1; local_28 = this_00; entt::sigh<void(VoxelSetEvent&),std::allocator<void>>::publish ((sigh<void(VoxelSetEvent&),std::allocator<void>> *)(pdVar3 + 8), (VoxelSetEvent *)&local_48); uVar4 = 1; } return uVar4; }
49,898
pagecache_delete_internal
eloqsql/storage/maria/ma_pagecache.c
static my_bool pagecache_delete_internal(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block, PAGECACHE_HASH_LINK *page_link, my_bool flush) { my_bool error= 0; if (block->status & PCBLOCK_IN_FLUSH) { /* this call is just 'hint' for the cache to free the page so we will not interferes with flushing process but must return success */ goto out; } if (block->status & PCBLOCK_CHANGED) { flush= (flush || (block->status & PCBLOCK_DEL_WRITE)); if (flush) { /* The block contains a dirty page - push it out of the cache */ KEYCACHE_DBUG_PRINT("find_block", ("block is dirty")); /* The call is thread safe because only the current thread might change the block->hash_link value */ DBUG_ASSERT(block->pins == 1); 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); pagecache->global_cache_write++; if (error) { block->status|= PCBLOCK_ERROR; block->error= (int16) my_errno; my_debug_put_break_here(); goto out; } } else { PAGECACHE_IO_HOOK_ARGS args; PAGECACHE_FILE *filedesc= &block->hash_link->file; args.page= block->buffer; args.pageno= block->hash_link->pageno; args.data= filedesc->callback_data; /* We are not going to write the page but have to call callbacks */ DBUG_PRINT("info", ("flush_callback: %p data: %p", filedesc->flush_log_callback, filedesc->callback_data)); if ((*filedesc->flush_log_callback)(&args)) { DBUG_PRINT("error", ("flush or write callback problem")); error= 1; goto out; } } pagecache->blocks_changed--; pagecache->global_blocks_changed--; /* free_block() will change the status and rec_lsn of the block so no need to change them here. */ } /* Cache is locked, so we can relese page before freeing it */ if (make_lock_and_pin(pagecache, block, PAGECACHE_LOCK_WRITE_UNLOCK, PAGECACHE_UNPIN, FALSE)) DBUG_ASSERT(0); DBUG_ASSERT(block->hash_link->requests > 0); page_link->requests--; /* See NOTE for pagecache_unlock() about registering requests. */ free_block(pagecache, block, 0); dec_counter_for_resize_op(pagecache); return 0; out: /* Cache is locked, so we can relese page before freeing it */ if (make_lock_and_pin(pagecache, block, PAGECACHE_LOCK_WRITE_UNLOCK, PAGECACHE_UNPIN, FALSE)) DBUG_ASSERT(0); page_link->requests--; unreg_request(pagecache, block, 1); dec_counter_for_resize_op(pagecache); return error; }
O3
c
pagecache_delete_internal: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx movzwl 0x74(%rsi), %eax testb $0x10, %al jne 0x3ef53 testb $0x20, %al je 0x3f032 testb %cl, %cl sete %cl testb %al, %al setns %al testb %al, %cl je 0x3efad movq 0x20(%r14), %rax movq 0x30(%r14), %rcx leaq -0x48(%rbp), %rdi movq %rcx, (%rdi) movq 0x60(%rax), %rcx movq %rcx, 0x8(%rdi) movq 0x58(%rax), %rcx movq %rcx, 0x10(%rdi) callq *0x50(%rax) movb $0x1, %r12b testb %al, %al jne 0x3ef56 jmp 0x3f027 xorl %r12d, %r12d movq %rbx, %rdi movq %r14, %rsi movl $0x6, %edx movl $0x3, %ecx callq 0x3d947 decl 0x68(%r15) movq %rbx, %rdi movq %r14, %rsi movl $0x1, %edx callq 0x3dab7 decq 0x68(%rbx) jne 0x3f08c movq 0x110(%rbx), %rax testq %rax, %rax je 0x3f08c movq 0x88(%rax), %rbx movq 0x38(%rbx), %rdi addq $0x8, %rbx jmp 0x3f07f leaq 0xc8(%rbx), %r13 movq 0x108(%rbx), %rdi testq %rdi, %rdi jne 0x3f0b5 movq %r13, %rdi callq 0x2a1e0 movq 0x20(%r14), %rsi movq 0x30(%r14), %rdx movq 0x60(%rsi), %rcx addq $0x18, %rsi movq 0x198(%rbx), %r8 movq %rbx, %rdi callq 0x3fac8 movl %eax, %r12d cmpq $0x0, 0x108(%rbx) jne 0x3f0ca movq %r13, %rdi callq 0x2a220 incq 0x178(%rbx) testb %r12b, %r12b je 0x3f027 orb $0x1, 0x74(%r14) callq 0xa813e movzwl (%rax), %eax movw %ax, 0x76(%r14) jmp 0x3ef56 decq 0x58(%rbx) decq 0x168(%rbx) movq %rbx, %rdi movq %r14, %rsi movl $0x6, %edx movl $0x3, %ecx callq 0x3d947 decl 0x68(%r15) xorl %r12d, %r12d movq %rbx, %rdi movq %r14, %rsi xorl %edx, %edx callq 0x40669 decq 0x68(%rbx) jne 0x3f08c movq 0x110(%rbx), %rax testq %rax, %rax je 0x3f09e movq 0x88(%rax), %rbx movq 0x38(%rbx), %rdi addq $0x8, %rbx xorl %r12d, %r12d testq %rdi, %rdi jne 0x3f0a3 movq %rbx, %rdi callq 0x2a630 movl %r12d, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq xorl %r12d, %r12d jmp 0x3f08c leaq 0x3501ae(%rip), %rax # 0x38f258 movq (%rax), %rax callq *0x170(%rax) jmp 0x3f084 leaq 0x35019c(%rip), %rax # 0x38f258 movq (%rax), %rax callq *0x160(%rax) jmp 0x3efc4 leaq 0xa2a38(%rip), %rsi # 0xe1b09 movq %r13, %rdi movl $0xfa2, %edx # imm = 0xFA2 callq 0x30603 jmp 0x3f004
pagecache_delete_internal: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r15, rdx mov r14, rsi mov rbx, rdi movzx eax, word ptr [rsi+74h] test al, 10h jnz short loc_3EF53 test al, 20h jz loc_3F032 test cl, cl setz cl test al, al setns al test cl, al jz loc_3EFAD mov rax, [r14+20h] mov rcx, [r14+30h] lea rdi, [rbp+var_48] mov [rdi], rcx mov rcx, [rax+60h] mov [rdi+8], rcx mov rcx, [rax+58h] mov [rdi+10h], rcx call qword ptr [rax+50h] mov r12b, 1 test al, al jnz short loc_3EF56 jmp loc_3F027 loc_3EF53: xor r12d, r12d loc_3EF56: mov rdi, rbx mov rsi, r14 mov edx, 6 mov ecx, 3 call make_lock_and_pin dec dword ptr [r15+68h] mov rdi, rbx mov rsi, r14 mov edx, 1 call unreg_request dec qword ptr [rbx+68h] jnz loc_3F08C mov rax, [rbx+110h] test rax, rax jz loc_3F08C mov rbx, [rax+88h] mov rdi, [rbx+38h] add rbx, 8 jmp loc_3F07F loc_3EFAD: lea r13, [rbx+0C8h] mov rdi, [rbx+108h] test rdi, rdi jnz loc_3F0B5 loc_3EFC4: mov rdi, r13 call _pthread_mutex_unlock mov rsi, [r14+20h] mov rdx, [r14+30h] mov rcx, [rsi+60h] add rsi, 18h mov r8, [rbx+198h] mov rdi, rbx call pagecache_fwrite mov r12d, eax cmp qword ptr [rbx+108h], 0 jnz loc_3F0CA mov rdi, r13 call _pthread_mutex_lock loc_3F004: inc qword ptr [rbx+178h] test r12b, r12b jz short loc_3F027 or byte ptr [r14+74h], 1 call _my_thread_var movzx eax, word ptr [rax] mov [r14+76h], ax jmp loc_3EF56 loc_3F027: dec qword ptr [rbx+58h] dec qword ptr [rbx+168h] loc_3F032: mov rdi, rbx mov rsi, r14 mov edx, 6 mov ecx, 3 call make_lock_and_pin dec dword ptr [r15+68h] xor r12d, r12d mov rdi, rbx mov rsi, r14 xor edx, edx call free_block dec qword ptr [rbx+68h] jnz short loc_3F08C mov rax, [rbx+110h] test rax, rax jz short loc_3F09E mov rbx, [rax+88h] mov rdi, [rbx+38h] add rbx, 8 xor r12d, r12d loc_3F07F: test rdi, rdi jnz short loc_3F0A3 loc_3F084: mov rdi, rbx call _pthread_cond_signal loc_3F08C: mov eax, r12d add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3F09E: xor r12d, r12d jmp short loc_3F08C loc_3F0A3: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_3F084 loc_3F0B5: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_3EFC4 loc_3F0CA: lea rsi, aWorkspaceLlm4b_26; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r13 mov edx, 0FA2h call psi_mutex_lock jmp loc_3F004
long long pagecache_delete_internal(_QWORD *a1, long long a2, long long a3, char a4) { unsigned int v4; // r12d __int16 v7; // ax bool v8; // zf long long v9; // rax long long v10; // rbx long long v11; // rdi long long v12; // rbx _QWORD *v13; // rdi long long v14; // rax long long v15; // rbx v7 = *(_WORD *)(a2 + 116); if ( (v7 & 0x10) != 0 ) { v4 = 0; } else { if ( (v7 & 0x20) == 0 ) { LABEL_17: make_lock_and_pin((long long)a1, a2, 6, 3); --*(_DWORD *)(a3 + 104); v4 = 0; free_block(a1, a2, 0LL); v8 = a1[13]-- == 1LL; if ( !v8 ) return v4; v14 = a1[34]; if ( !v14 ) return 0; v15 = *(_QWORD *)(v14 + 136); v11 = *(_QWORD *)(v15 + 56); v12 = v15 + 8; v4 = 0; goto LABEL_20; } if ( (v7 & 0x80u) == 0 && a4 == 0 ) { LOBYTE(v4) = 1; if ( !(*(unsigned __int8 (**)(void))(*(_QWORD *)(a2 + 32) + 80LL))() ) { LABEL_16: --a1[11]; --a1[45]; goto LABEL_17; } } else { if ( a1[33] ) PSI_server[44](); pthread_mutex_unlock(a1 + 25); v4 = pagecache_fwrite( a1, *(_QWORD *)(a2 + 32) + 24LL, *(_QWORD *)(a2 + 48), *(_QWORD *)(*(_QWORD *)(a2 + 32) + 96LL), a1[51]); v13 = a1 + 25; if ( a1[33] ) psi_mutex_lock( (long long)(a1 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0xFA2u); else pthread_mutex_lock(a1 + 25); ++a1[47]; if ( !(_BYTE)v4 ) goto LABEL_16; *(_BYTE *)(a2 + 116) |= 1u; *(_WORD *)(a2 + 118) = *(_WORD *)my_thread_var(v13); } } make_lock_and_pin((long long)a1, a2, 6, 3); --*(_DWORD *)(a3 + 104); unreg_request(a1, a2, 1); v8 = a1[13]-- == 1LL; if ( !v8 ) return v4; v9 = a1[34]; if ( !v9 ) return v4; v10 = *(_QWORD *)(v9 + 136); v11 = *(_QWORD *)(v10 + 56); v12 = v10 + 8; LABEL_20: if ( v11 ) PSI_server[46](); pthread_cond_signal(v12); return v4; }
pagecache_delete_internal: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R15,RDX MOV R14,RSI MOV RBX,RDI MOVZX EAX,word ptr [RSI + 0x74] TEST AL,0x10 JNZ 0x0013ef53 TEST AL,0x20 JZ 0x0013f032 TEST CL,CL SETZ CL TEST AL,AL SETNS AL TEST CL,AL JZ 0x0013efad MOV RAX,qword ptr [R14 + 0x20] MOV RCX,qword ptr [R14 + 0x30] LEA RDI,[RBP + -0x48] MOV qword ptr [RDI],RCX MOV RCX,qword ptr [RAX + 0x60] MOV qword ptr [RDI + 0x8],RCX MOV RCX,qword ptr [RAX + 0x58] MOV qword ptr [RDI + 0x10],RCX CALL qword ptr [RAX + 0x50] MOV R12B,0x1 TEST AL,AL JNZ 0x0013ef56 JMP 0x0013f027 LAB_0013ef53: XOR R12D,R12D LAB_0013ef56: MOV RDI,RBX MOV RSI,R14 MOV EDX,0x6 MOV ECX,0x3 CALL 0x0013d947 DEC dword ptr [R15 + 0x68] MOV RDI,RBX MOV RSI,R14 MOV EDX,0x1 CALL 0x0013dab7 DEC qword ptr [RBX + 0x68] JNZ 0x0013f08c MOV RAX,qword ptr [RBX + 0x110] TEST RAX,RAX JZ 0x0013f08c MOV RBX,qword ptr [RAX + 0x88] MOV RDI,qword ptr [RBX + 0x38] ADD RBX,0x8 JMP 0x0013f07f LAB_0013efad: LEA R13,[RBX + 0xc8] MOV RDI,qword ptr [RBX + 0x108] TEST RDI,RDI JNZ 0x0013f0b5 LAB_0013efc4: MOV RDI,R13 CALL 0x0012a1e0 MOV RSI,qword ptr [R14 + 0x20] MOV RDX,qword ptr [R14 + 0x30] MOV RCX,qword ptr [RSI + 0x60] ADD RSI,0x18 MOV R8,qword ptr [RBX + 0x198] MOV RDI,RBX CALL 0x0013fac8 MOV R12D,EAX CMP qword ptr [RBX + 0x108],0x0 JNZ 0x0013f0ca MOV RDI,R13 CALL 0x0012a220 LAB_0013f004: INC qword ptr [RBX + 0x178] TEST R12B,R12B JZ 0x0013f027 OR byte ptr [R14 + 0x74],0x1 CALL 0x001a813e MOVZX EAX,word ptr [RAX] MOV word ptr [R14 + 0x76],AX JMP 0x0013ef56 LAB_0013f027: DEC qword ptr [RBX + 0x58] DEC qword ptr [RBX + 0x168] LAB_0013f032: MOV RDI,RBX MOV RSI,R14 MOV EDX,0x6 MOV ECX,0x3 CALL 0x0013d947 DEC dword ptr [R15 + 0x68] XOR R12D,R12D MOV RDI,RBX MOV RSI,R14 XOR EDX,EDX CALL 0x00140669 DEC qword ptr [RBX + 0x68] JNZ 0x0013f08c MOV RAX,qword ptr [RBX + 0x110] TEST RAX,RAX JZ 0x0013f09e MOV RBX,qword ptr [RAX + 0x88] MOV RDI,qword ptr [RBX + 0x38] ADD RBX,0x8 XOR R12D,R12D LAB_0013f07f: TEST RDI,RDI JNZ 0x0013f0a3 LAB_0013f084: MOV RDI,RBX CALL 0x0012a630 LAB_0013f08c: MOV EAX,R12D ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013f09e: XOR R12D,R12D JMP 0x0013f08c LAB_0013f0a3: LEA RAX,[0x48f258] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x0013f084 LAB_0013f0b5: LEA RAX,[0x48f258] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0013efc4 LAB_0013f0ca: LEA RSI,[0x1e1b09] MOV RDI,R13 MOV EDX,0xfa2 CALL 0x00130603 JMP 0x0013f004
ulong pagecache_delete_internal(long param_1,long param_2,long param_3,char param_4) { long *plVar1; pthread_mutex_t *__mutex; ushort uVar2; long lVar3; char cVar4; uint uVar5; int2 *puVar6; long lVar7; int8 unaff_R12; ulong uVar8; uVar2 = *(ushort *)(param_2 + 0x74); if ((uVar2 & 0x10) != 0) { uVar8 = 0; goto LAB_0013ef56; } if ((uVar2 & 0x20) == 0) { LAB_0013f032: make_lock_and_pin(param_1,param_2,6,3); *(int *)(param_3 + 0x68) = *(int *)(param_3 + 0x68) + -1; uVar8 = 0; free_block(param_1,param_2,0); plVar1 = (long *)(param_1 + 0x68); *plVar1 = *plVar1 + -1; if (*plVar1 != 0) goto LAB_0013f08c; if (*(long *)(param_1 + 0x110) == 0) { uVar8 = 0; goto LAB_0013f08c; } lVar3 = *(long *)(*(long *)(param_1 + 0x110) + 0x88); lVar7 = *(long *)(lVar3 + 0x38); uVar8 = 0; } else { if (param_4 == '\0' && -1 < (char)uVar2) { cVar4 = (**(code **)(*(long *)(param_2 + 0x20) + 0x50))(); uVar8 = CONCAT71((int7)((ulong)unaff_R12 >> 8),1); if (cVar4 == '\0') { LAB_0013f027: *(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + -1; *(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + -1; goto LAB_0013f032; } } else { __mutex = (pthread_mutex_t *)(param_1 + 200); if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); uVar5 = pagecache_fwrite(param_1,*(long *)(param_2 + 0x20) + 0x18, *(int8 *)(param_2 + 0x30), *(int8 *)(*(long *)(param_2 + 0x20) + 0x60), *(int8 *)(param_1 + 0x198)); uVar8 = (ulong)uVar5; if (*(long *)(param_1 + 0x108) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0xfa2 ); } *(long *)(param_1 + 0x178) = *(long *)(param_1 + 0x178) + 1; if ((char)uVar5 == '\0') goto LAB_0013f027; *(byte *)(param_2 + 0x74) = *(byte *)(param_2 + 0x74) | 1; puVar6 = (int2 *)_my_thread_var(); *(int2 *)(param_2 + 0x76) = *puVar6; } LAB_0013ef56: make_lock_and_pin(param_1,param_2,6,3); *(int *)(param_3 + 0x68) = *(int *)(param_3 + 0x68) + -1; unreg_request(param_1,param_2,1); plVar1 = (long *)(param_1 + 0x68); *plVar1 = *plVar1 + -1; if ((*plVar1 != 0) || (*(long *)(param_1 + 0x110) == 0)) goto LAB_0013f08c; lVar3 = *(long *)(*(long *)(param_1 + 0x110) + 0x88); lVar7 = *(long *)(lVar3 + 0x38); } if (lVar7 != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar3 + 8)); LAB_0013f08c: return uVar8 & 0xffffffff; }
49,899
Item_sum_avg::create_tmp_field(st_mem_root*, bool, TABLE*)
eloqsql/sql/item_sum.cc
Field *Item_sum_avg::create_tmp_field(MEM_ROOT *root, bool group, TABLE *table) { if (group) { /* We must store both value and counter in the temporary table in one field. The easiest way is to do this is to store both value in a string and unpack on access. */ Field *field= new (root) Field_string(((result_type() == DECIMAL_RESULT) ? dec_bin_size : sizeof(double)) + sizeof(longlong), 0, &name, &my_charset_bin); if (field) field->init(table); return field; } return tmp_table_field_from_field_type(root, table); }
O0
cpp
Item_sum_avg::create_tmp_field(st_mem_root*, bool, TABLE*): pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movb %dl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x70(%rbp) testb $0x1, -0x19(%rbp) je 0x9c6aa8 movq -0x18(%rbp), %rsi movq %rsi, -0x88(%rbp) movl $0xe0, %edi callq 0x6477b0 movq %rax, %rcx movq %rcx, -0x80(%rbp) movb $0x0, -0x41(%rbp) xorl %eax, %eax cmpq $0x0, %rcx movq %rax, -0x78(%rbp) je 0x9c6a5d movq -0x70(%rbp), %rdi movq -0x88(%rbp), %rax movq -0x80(%rbp), %rcx movq %rcx, -0x38(%rbp) movq %rax, -0x40(%rbp) movb $0x1, -0x41(%rbp) callq 0x4c24f0 movl %eax, -0x8c(%rbp) jmp 0x9c69d8 movl -0x8c(%rbp), %eax cmpl $0x4, %eax jne 0x9c69f6 movq -0x70(%rbp), %rax movl 0x20c(%rax), %eax movq %rax, -0x98(%rbp) jmp 0x9c6a04 movl $0x8, %eax movq %rax, -0x98(%rbp) jmp 0x9c6a04 movq -0x70(%rbp), %rax movq -0x98(%rbp), %rcx addl $0x8, %ecx movl %ecx, -0xa4(%rbp) addq $0x48, %rax movq %rax, -0xa0(%rbp) leaq 0xa3b3d6(%rip), %rsi # 0x1401e00 leaq -0x68(%rbp), %rdi callq 0x536f80 jmp 0x9c6a35 movq -0xa0(%rbp), %rcx movl -0xa4(%rbp), %esi movq -0x80(%rbp), %rdi xorl %edx, %edx leaq -0x68(%rbp), %r8 callq 0x9ceba0 jmp 0x9c6a53 movq -0x80(%rbp), %rax movq %rax, -0x78(%rbp) jmp 0x9c6a5d movq -0x78(%rbp), %rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0x9c6a9e movq -0x30(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0x4e96e0 jmp 0x9c6a9e movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) testb $0x1, -0x41(%rbp) jne 0x9c6a8f jmp 0x9c6a9c movq -0x38(%rbp), %rdi movq -0x40(%rbp), %rsi callq 0x6478c0 jmp 0x9c6aca movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x9c6abd movq -0x70(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x4b7860 movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xb0, %rsp popq %rbp retq movq -0x50(%rbp), %rdi callq 0x433ff0 nopw %cs:(%rax,%rax)
_ZN12Item_sum_avg16create_tmp_fieldEP11st_mem_rootbP5TABLE: push rbp mov rbp, rsp sub rsp, 0B0h mov al, dl mov [rbp+var_10], rdi mov [rbp+var_18], rsi and al, 1 mov [rbp+var_19], al mov [rbp+var_28], rcx mov rax, [rbp+var_10] mov [rbp+var_70], rax test [rbp+var_19], 1 jz loc_9C6AA8 mov rsi, [rbp+var_18] mov [rbp+var_88], rsi mov edi, 0E0h call _ZN5FieldnwEmP11st_mem_root; Field::operator new(ulong,st_mem_root *) mov rcx, rax mov [rbp+var_80], rcx mov [rbp+var_41], 0 xor eax, eax cmp rcx, 0 mov [rbp+var_78], rax jz loc_9C6A5D mov rdi, [rbp+var_70]; this mov rax, [rbp+var_88] mov rcx, [rbp+var_80] mov [rbp+var_38], rcx mov [rbp+var_40], rax mov [rbp+var_41], 1 call _ZNK4Item11result_typeEv; Item::result_type(void) mov [rbp+var_8C], eax jmp short $+2 loc_9C69D8: mov eax, [rbp+var_8C] cmp eax, 4 jnz short loc_9C69F6 mov rax, [rbp+var_70] mov eax, [rax+20Ch] mov [rbp+var_98], rax jmp short loc_9C6A04 loc_9C69F6: mov eax, 8 mov [rbp+var_98], rax jmp short $+2 loc_9C6A04: mov rax, [rbp+var_70] mov rcx, [rbp+var_98] add ecx, 8 mov [rbp+var_A4], ecx add rax, 48h ; 'H' mov [rbp+var_A0], rax lea rsi, my_charset_bin; charset_info_st * lea rdi, [rbp+var_68]; this call _ZN11DTCollationC2EPK15charset_info_st; DTCollation::DTCollation(charset_info_st const*) jmp short $+2 loc_9C6A35: mov rcx, [rbp+var_A0] mov esi, [rbp+var_A4] mov rdi, [rbp+var_80] xor edx, edx lea r8, [rbp+var_68] call _ZN12Field_stringC2EjbPK25st_mysql_const_lex_stringRK11DTCollation; Field_string::Field_string(uint,bool,st_mysql_const_lex_string const*,DTCollation const&) jmp short $+2 loc_9C6A53: mov rax, [rbp+var_80] mov [rbp+var_78], rax jmp short $+2 loc_9C6A5D: mov rax, [rbp+var_78] mov [rbp+var_30], rax cmp [rbp+var_30], 0 jz short loc_9C6A9E mov rdi, [rbp+var_30]; this mov rsi, [rbp+var_28]; TABLE * call _ZN5Field4initEP5TABLE; Field::init(TABLE *) jmp short loc_9C6A9E mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax test [rbp+var_41], 1 jnz short loc_9C6A8F jmp short loc_9C6A9C loc_9C6A8F: mov rdi, [rbp+var_38] mov rsi, [rbp+var_40] call _ZN5FielddlEPvP11st_mem_root; Field::operator delete(void *,st_mem_root *) loc_9C6A9C: jmp short loc_9C6ACA loc_9C6A9E: mov rax, [rbp+var_30] mov [rbp+var_8], rax jmp short loc_9C6ABD loc_9C6AA8: mov rdi, [rbp+var_70] mov rsi, [rbp+var_18] mov rdx, [rbp+var_28] call _ZN4Item31tmp_table_field_from_field_typeEP11st_mem_rootP5TABLE; Item::tmp_table_field_from_field_type(st_mem_root *,TABLE *) mov [rbp+var_8], rax loc_9C6ABD: mov rax, [rbp+var_8] add rsp, 0B0h pop rbp retn loc_9C6ACA: mov rdi, [rbp+var_50] call __Unwind_Resume
Field * Item_sum_avg::create_tmp_field(Item *a1, long long a2, char a3, TABLE *a4) { int v5; // [rsp+18h] [rbp-98h] long long v6; // [rsp+30h] [rbp-80h] Field *v7; // [rsp+38h] [rbp-78h] _BYTE v8[20]; // [rsp+48h] [rbp-68h] BYREF char v9; // [rsp+6Fh] [rbp-41h] long long v10; // [rsp+70h] [rbp-40h] long long v11; // [rsp+78h] [rbp-38h] Field *v12; // [rsp+80h] [rbp-30h] TABLE *v13; // [rsp+88h] [rbp-28h] char v14; // [rsp+97h] [rbp-19h] long long v15; // [rsp+98h] [rbp-18h] Item *v16; // [rsp+A0h] [rbp-10h] v16 = a1; v15 = a2; v14 = a3 & 1; v13 = a4; if ( (a3 & 1) == 0 ) return (Field *)Item::tmp_table_field_from_field_type(a1, v15, (long long)v13); v6 = Field::operator new(224LL, v15); v9 = 0; v7 = 0LL; if ( v6 ) { v11 = v6; v10 = v15; v9 = 1; if ( (unsigned int)Item::result_type(a1) == 4 ) v5 = *((_DWORD *)a1 + 131); else v5 = 8; DTCollation::DTCollation((DTCollation *)v8, (const charset_info_st *)&my_charset_bin); Field_string::Field_string(v6, (unsigned int)(v5 + 8), 0LL, (char *)a1 + 72, v8); v7 = (Field *)v6; } v12 = v7; if ( v7 ) Field::init(v12, v13); return v12; }
create_length_to_internal_length_newdecimal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x009c6966 LAB_009c6966: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX + 0x8] MOV EDI,ECX MOV CX,word ptr [RAX + 0x28] MOV EAX,dword ptr [RAX + 0x68] AND EAX,0x20 CMP EAX,0x0 SETNZ AL MOVZX ESI,CX MOVZX EDX,AL AND EDX,0x1 CALL 0x009b01f0 MOV CX,AX MOV RAX,qword ptr [RBP + -0x18] MOVZX ECX,CX MOV dword ptr [RBP + -0xc],ECX MOV ECX,dword ptr [RBP + -0xc] MOVZX EDI,CX MOVZX ESI,word ptr [RAX + 0x28] CALL 0x00748410 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x6c],ECX ADD RSP,0x20 POP RBP RET
/* Column_definition::create_length_to_internal_length_newdecimal() */ void __thiscall Column_definition::create_length_to_internal_length_newdecimal(Column_definition *this) { ushort uVar1; int4 uVar2; uVar1 = get_decimal_precision ((uint)*(int8 *)(this + 8),*(ushort *)(this + 0x28), (*(uint *)(this + 0x68) & 0x20) != 0); uVar2 = my_decimal_get_binary_size(uVar1,*(ushort *)(this + 0x28)); *(int4 *)(this + 0x6c) = uVar2; return; }