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
36,800
table_session_status::rnd_pos(void const*)
eloqsql/storage/perfschema/table_session_status.cc
int table_session_status::rnd_pos(const void *pos) { /* If global status array has changed, do nothing. */ // TODO: warning if (!m_context->versions_match()) return HA_ERR_RECORD_DELETED; set_position(pos); assert(m_pos.m_index < m_status_cache.size()); if (m_status_cache.is_materialized()) { const Status_variable *stat_var= m_status_cache.get(m_pos.m_index); if (stat_var != NULL) { make_row(stat_var); return 0; } } return HA_ERR_RECORD_DELETED; }
O0
cpp
table_session_status::rnd_pos(void const*): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq 0x548(%rax), %rdi callq 0xcfc5e0 testb $0x1, %al jne 0xcfecf1 movl $0x86, -0x4(%rbp) jmp 0xcfed51 movq -0x28(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0xcb5230 movq -0x28(%rbp), %rdi addq $0x28, %rdi callq 0xcfe920 testb $0x1, %al jne 0xcfed11 jmp 0xcfed4a movq -0x28(%rbp), %rax movq %rax, %rdi addq $0x28, %rdi movl 0x53c(%rax), %esi callq 0xcfc600 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0xcfed48 movq -0x28(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0xcfec50 movl $0x0, -0x4(%rbp) jmp 0xcfed51 jmp 0xcfed4a movl $0x86, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN20table_session_status7rnd_posEPKv: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rdi, [rax+548h]; this call _ZN17PFS_table_context14versions_matchEv; PFS_table_context::versions_match(void) test al, 1 jnz short loc_CFECF1 mov [rbp+var_4], 86h jmp short loc_CFED51 loc_CFECF1: mov rdi, [rbp+var_28]; this mov rsi, [rbp+var_18]; void * call _ZN16PFS_engine_table12set_positionEPKv; PFS_engine_table::set_position(void const*) mov rdi, [rbp+var_28] add rdi, 28h ; '(' call _ZN18PFS_variable_cacheI15Status_variableE15is_materializedEv; PFS_variable_cache<Status_variable>::is_materialized(void) test al, 1 jnz short loc_CFED11 jmp short loc_CFED4A loc_CFED11: mov rax, [rbp+var_28] mov rdi, rax add rdi, 28h ; '(' mov esi, [rax+53Ch] call _ZNK18PFS_variable_cacheI15Status_variableE3getEj; PFS_variable_cache<Status_variable>::get(uint) mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_CFED48 mov rdi, [rbp+var_28]; this mov rsi, [rbp+var_20]; Status_variable * call _ZN20table_session_status8make_rowEPK15Status_variable; table_session_status::make_row(Status_variable const*) mov [rbp+var_4], 0 jmp short loc_CFED51 loc_CFED48: jmp short $+2 loc_CFED4A: mov [rbp+var_4], 86h loc_CFED51: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long table_session_status::rnd_pos(table_session_status *this, const void *a2) { Status_variable *v3; // [rsp+10h] [rbp-20h] if ( PFS_table_context::versions_match(*((PFS_table_context **)this + 169)) ) { PFS_engine_table::set_position(this, a2); if ( (PFS_variable_cache<Status_variable>::is_materialized((long long)this + 40) & 1) != 0 && (v3 = (Status_variable *)PFS_variable_cache<Status_variable>::get((long long)this + 40, *((_DWORD *)this + 335))) != 0LL ) { table_session_status::make_row(this, v3); return 0; } else { return 134; } } else { return 134; } }
list_length: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],0x0 LAB_00cfeccf: CMP qword ptr [RBP + -0x8],0x0 JZ 0x00cfecef JMP 0x00cfecd8 LAB_00cfecd8: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x8],RAX MOV EAX,dword ptr [RBP + -0xc] ADD EAX,0x1 MOV dword ptr [RBP + -0xc],EAX JMP 0x00cfeccf LAB_00cfecef: MOV EAX,dword ptr [RBP + -0xc] POP RBP RET
int list_length(long param_1) { int4 local_14; int8 local_10; local_14 = 0; for (local_10 = param_1; local_10 != 0; local_10 = *(long *)(local_10 + 8)) { local_14 = local_14 + 1; } return local_14; }
36,801
freeze_size
eloqsql/mysys/array.c
void freeze_size(DYNAMIC_ARRAY *array) { uint elements; /* Do nothing if we are using a static buffer */ if (array->malloc_flags & MY_INIT_BUFFER_USED) return; elements= MY_MAX(array->elements, 1); if (array->buffer && array->max_element > elements) { array->buffer=(uchar*) my_realloc(array->m_psi_key, array->buffer, elements * array->size_of_element, MYF(MY_WME | array->malloc_flags)); array->max_element= elements; } }
O3
c
freeze_size: movq 0x20(%rdi), %rcx btl $0x8, %ecx jb 0x32fb4 pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movl 0x8(%rdi), %r14d cmpl $0x1, %r14d adcl $0x0, %r14d movq (%rdi), %rsi testq %rsi, %rsi je 0x32fb0 cmpl %r14d, 0xc(%rbx) jbe 0x32fb0 movl 0x18(%rbx), %edi movl 0x14(%rbx), %edx imull %r14d, %edx orq $0x10, %rcx callq 0x301fc movq %rax, (%rbx) movl %r14d, 0xc(%rbx) popq %rbx popq %r14 popq %rbp retq nopl (%rax)
freeze_size: mov rcx, [rdi+20h] bt ecx, 8 jb short locret_32FB4 push rbp mov rbp, rsp push r14 push rbx mov rbx, rdi mov r14d, [rdi+8] cmp r14d, 1 adc r14d, 0 mov rsi, [rdi] test rsi, rsi jz short loc_32FB0 cmp [rbx+0Ch], r14d jbe short loc_32FB0 mov edi, [rbx+18h] mov edx, [rbx+14h] imul edx, r14d or rcx, 10h call my_realloc mov [rbx], rax mov [rbx+0Ch], r14d loc_32FB0: pop rbx pop r14 pop rbp locret_32FB4: retn
void freeze_size(long long a1) { long long v1; // rcx unsigned int v2; // r14d v1 = *(_QWORD *)(a1 + 32); if ( (v1 & 0x100) == 0 ) { v2 = (*(_DWORD *)(a1 + 8) == 0) + *(_DWORD *)(a1 + 8); if ( *(_QWORD *)a1 ) { if ( *(_DWORD *)(a1 + 12) > v2 ) { *(_QWORD *)a1 = my_realloc( *(_DWORD *)(a1 + 24), *(_QWORD *)a1, v2 * *(_DWORD *)(a1 + 20), (unsigned __int8)v1 | 0x10u); *(_DWORD *)(a1 + 12) = v2; } } } }
freeze_size: MOV RCX,qword ptr [RDI + 0x20] BT ECX,0x8 JC 0x00132fb4 PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDI MOV R14D,dword ptr [RDI + 0x8] CMP R14D,0x1 ADC R14D,0x0 MOV RSI,qword ptr [RDI] TEST RSI,RSI JZ 0x00132fb0 CMP dword ptr [RBX + 0xc],R14D JBE 0x00132fb0 MOV EDI,dword ptr [RBX + 0x18] MOV EDX,dword ptr [RBX + 0x14] IMUL EDX,R14D OR RCX,0x10 CALL 0x001301fc MOV qword ptr [RBX],RAX MOV dword ptr [RBX + 0xc],R14D LAB_00132fb0: POP RBX POP R14 POP RBP LAB_00132fb4: RET
void freeze_size(long *param_1) { long lVar1; uint uVar2; if (((uint)param_1[4] >> 8 & 1) == 0) { uVar2 = (int)param_1[1] + (uint)((int)param_1[1] == 0); if ((*param_1 != 0) && (uVar2 < *(uint *)((long)param_1 + 0xc))) { lVar1 = my_realloc((int)param_1[3],*param_1,*(int *)((long)param_1 + 0x14) * uVar2, param_1[4] | 0x10); *param_1 = lVar1; *(uint *)((long)param_1 + 0xc) = uVar2; } } return; }
36,802
crypto_sign_ed25519_ref10_fe_pow22523
eloqsql/plugin/auth_ed25519/ref10/fe_pow22523.c
void fe_pow22523(fe out,const fe z) { fe t0; fe t1; fe t2; int i; #include "pow22523.h" return; }
O0
c
crypto_sign_ed25519_ref10_fe_pow22523: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x40(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0x1, -0xa4(%rbp) jge 0xa501 leaq -0x40(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa4da leaq -0x70(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0x2, -0xa4(%rbp) jge 0xa53f leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa518 leaq -0x70(%rbp), %rdi movq -0x10(%rbp), %rsi leaq -0x70(%rbp), %rdx callq 0x9300 leaq -0x40(%rbp), %rdi leaq -0x40(%rbp), %rsi leaq -0x70(%rbp), %rdx callq 0x9300 leaq -0x40(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0x1, -0xa4(%rbp) jge 0xa59f leaq -0x40(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa578 leaq -0x40(%rbp), %rdi leaq -0x70(%rbp), %rsi leaq -0x40(%rbp), %rdx callq 0x9300 leaq -0x70(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0x5, -0xa4(%rbp) jge 0xa5ee leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa5c7 leaq -0x40(%rbp), %rdi leaq -0x70(%rbp), %rsi leaq -0x40(%rbp), %rdx callq 0x9300 leaq -0x70(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0xa, -0xa4(%rbp) jge 0xa63d leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa616 leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi leaq -0x40(%rbp), %rdx callq 0x9300 leaq -0xa0(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0x14, -0xa4(%rbp) jge 0xa695 leaq -0xa0(%rbp), %rdi leaq -0xa0(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa668 leaq -0x70(%rbp), %rdi leaq -0xa0(%rbp), %rsi leaq -0x70(%rbp), %rdx callq 0x9300 leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0xa, -0xa4(%rbp) jge 0xa6e7 leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa6c0 leaq -0x40(%rbp), %rdi leaq -0x70(%rbp), %rsi leaq -0x40(%rbp), %rdx callq 0x9300 leaq -0x70(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0x32, -0xa4(%rbp) jge 0xa736 leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa70f leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi leaq -0x40(%rbp), %rdx callq 0x9300 leaq -0xa0(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0x64, -0xa4(%rbp) jge 0xa78e leaq -0xa0(%rbp), %rdi leaq -0xa0(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa761 leaq -0x70(%rbp), %rdi leaq -0xa0(%rbp), %rsi leaq -0x70(%rbp), %rdx callq 0x9300 leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0x32, -0xa4(%rbp) jge 0xa7e0 leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa7b9 leaq -0x40(%rbp), %rdi leaq -0x70(%rbp), %rsi leaq -0x40(%rbp), %rdx callq 0x9300 leaq -0x40(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xa850 movl $0x1, -0xa4(%rbp) cmpl $0x2, -0xa4(%rbp) jge 0xa82f leaq -0x40(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0xa850 movl -0xa4(%rbp), %eax addl $0x1, %eax movl %eax, -0xa4(%rbp) jmp 0xa808 movq -0x8(%rbp), %rdi leaq -0x40(%rbp), %rsi movq -0x10(%rbp), %rdx callq 0x9300 addq $0xb0, %rsp popq %rbp retq nopl (%rax)
crypto_sign_ed25519_ref10_fe_pow22523: push rbp mov rbp, rsp sub rsp, 0B0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi lea rdi, [rbp+var_40] mov rsi, [rbp+var_10] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A4DA: cmp [rbp+var_A4], 1 jge short loc_A501 lea rdi, [rbp+var_40] lea rsi, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A4DA loc_A501: lea rdi, [rbp+var_70] lea rsi, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A518: cmp [rbp+var_A4], 2 jge short loc_A53F lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A518 loc_A53F: lea rdi, [rbp+var_70] mov rsi, [rbp+var_10] lea rdx, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_40] lea rsi, [rbp+var_40] lea rdx, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_40] lea rsi, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A578: cmp [rbp+var_A4], 1 jge short loc_A59F lea rdi, [rbp+var_40] lea rsi, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A578 loc_A59F: lea rdi, [rbp+var_40] lea rsi, [rbp+var_70] lea rdx, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_70] lea rsi, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A5C7: cmp [rbp+var_A4], 5 jge short loc_A5EE lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A5C7 loc_A5EE: lea rdi, [rbp+var_40] lea rsi, [rbp+var_70] lea rdx, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_70] lea rsi, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A616: cmp [rbp+var_A4], 0Ah jge short loc_A63D lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A616 loc_A63D: lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] lea rdx, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_A0] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A668: cmp [rbp+var_A4], 14h jge short loc_A695 lea rdi, [rbp+var_A0] lea rsi, [rbp+var_A0] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A668 loc_A695: lea rdi, [rbp+var_70] lea rsi, [rbp+var_A0] lea rdx, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A6C0: cmp [rbp+var_A4], 0Ah jge short loc_A6E7 lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A6C0 loc_A6E7: lea rdi, [rbp+var_40] lea rsi, [rbp+var_70] lea rdx, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_70] lea rsi, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A70F: cmp [rbp+var_A4], 32h ; '2' jge short loc_A736 lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A70F loc_A736: lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] lea rdx, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_A0] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A761: cmp [rbp+var_A4], 64h ; 'd' jge short loc_A78E lea rdi, [rbp+var_A0] lea rsi, [rbp+var_A0] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A761 loc_A78E: lea rdi, [rbp+var_70] lea rsi, [rbp+var_A0] lea rdx, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A7B9: cmp [rbp+var_A4], 32h ; '2' jge short loc_A7E0 lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A7B9 loc_A7E0: lea rdi, [rbp+var_40] lea rsi, [rbp+var_70] lea rdx, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_mul lea rdi, [rbp+var_40] lea rsi, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_sq mov [rbp+var_A4], 1 loc_A808: cmp [rbp+var_A4], 2 jge short loc_A82F lea rdi, [rbp+var_40] lea rsi, [rbp+var_40] call crypto_sign_ed25519_ref10_fe_sq mov eax, [rbp+var_A4] add eax, 1 mov [rbp+var_A4], eax jmp short loc_A808 loc_A82F: mov rdi, [rbp+var_8] lea rsi, [rbp+var_40] mov rdx, [rbp+var_10] call crypto_sign_ed25519_ref10_fe_mul add rsp, 0B0h pop rbp retn
_DWORD * crypto_sign_ed25519_ref10_fe_pow22523(_DWORD *a1, int *a2) { int i; // [rsp+Ch] [rbp-A4h] int j; // [rsp+Ch] [rbp-A4h] int k; // [rsp+Ch] [rbp-A4h] int m; // [rsp+Ch] [rbp-A4h] int n; // [rsp+Ch] [rbp-A4h] int ii; // [rsp+Ch] [rbp-A4h] int jj; // [rsp+Ch] [rbp-A4h] int kk; // [rsp+Ch] [rbp-A4h] int mm; // [rsp+Ch] [rbp-A4h] int v12[12]; // [rsp+10h] [rbp-A0h] BYREF int v13[12]; // [rsp+40h] [rbp-70h] BYREF int v14[12]; // [rsp+70h] [rbp-40h] BYREF int *v15; // [rsp+A0h] [rbp-10h] _DWORD *v16; // [rsp+A8h] [rbp-8h] v16 = a1; v15 = a2; crypto_sign_ed25519_ref10_fe_sq(v14, a2); crypto_sign_ed25519_ref10_fe_sq(v13, v14); for ( i = 1; i < 2; ++i ) crypto_sign_ed25519_ref10_fe_sq(v13, v13); crypto_sign_ed25519_ref10_fe_mul(v13, v15, v13); crypto_sign_ed25519_ref10_fe_mul(v14, v14, v13); crypto_sign_ed25519_ref10_fe_sq(v14, v14); crypto_sign_ed25519_ref10_fe_mul(v14, v13, v14); crypto_sign_ed25519_ref10_fe_sq(v13, v14); for ( j = 1; j < 5; ++j ) crypto_sign_ed25519_ref10_fe_sq(v13, v13); crypto_sign_ed25519_ref10_fe_mul(v14, v13, v14); crypto_sign_ed25519_ref10_fe_sq(v13, v14); for ( k = 1; k < 10; ++k ) crypto_sign_ed25519_ref10_fe_sq(v13, v13); crypto_sign_ed25519_ref10_fe_mul(v13, v13, v14); crypto_sign_ed25519_ref10_fe_sq(v12, v13); for ( m = 1; m < 20; ++m ) crypto_sign_ed25519_ref10_fe_sq(v12, v12); crypto_sign_ed25519_ref10_fe_mul(v13, v12, v13); crypto_sign_ed25519_ref10_fe_sq(v13, v13); for ( n = 1; n < 10; ++n ) crypto_sign_ed25519_ref10_fe_sq(v13, v13); crypto_sign_ed25519_ref10_fe_mul(v14, v13, v14); crypto_sign_ed25519_ref10_fe_sq(v13, v14); for ( ii = 1; ii < 50; ++ii ) crypto_sign_ed25519_ref10_fe_sq(v13, v13); crypto_sign_ed25519_ref10_fe_mul(v13, v13, v14); crypto_sign_ed25519_ref10_fe_sq(v12, v13); for ( jj = 1; jj < 100; ++jj ) crypto_sign_ed25519_ref10_fe_sq(v12, v12); crypto_sign_ed25519_ref10_fe_mul(v13, v12, v13); crypto_sign_ed25519_ref10_fe_sq(v13, v13); for ( kk = 1; kk < 50; ++kk ) crypto_sign_ed25519_ref10_fe_sq(v13, v13); crypto_sign_ed25519_ref10_fe_mul(v14, v13, v14); crypto_sign_ed25519_ref10_fe_sq(v14, v14); for ( mm = 1; mm < 2; ++mm ) crypto_sign_ed25519_ref10_fe_sq(v14, v14); return crypto_sign_ed25519_ref10_fe_mul(v16, v14, v15); }
crypto_sign_ed25519_ref10_fe_pow22523: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI LEA RDI,[RBP + -0x40] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a4da: CMP dword ptr [RBP + -0xa4],0x1 JGE 0x0010a501 LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x40] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a4da LAB_0010a501: LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x40] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a518: CMP dword ptr [RBP + -0xa4],0x2 JGE 0x0010a53f LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a518 LAB_0010a53f: LEA RDI,[RBP + -0x70] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[RBP + -0x70] CALL 0x00109300 LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x40] LEA RDX,[RBP + -0x70] CALL 0x00109300 LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x40] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a578: CMP dword ptr [RBP + -0xa4],0x1 JGE 0x0010a59f LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x40] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a578 LAB_0010a59f: LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x70] LEA RDX,[RBP + -0x40] CALL 0x00109300 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x40] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a5c7: CMP dword ptr [RBP + -0xa4],0x5 JGE 0x0010a5ee LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a5c7 LAB_0010a5ee: LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x70] LEA RDX,[RBP + -0x40] CALL 0x00109300 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x40] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a616: CMP dword ptr [RBP + -0xa4],0xa JGE 0x0010a63d LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a616 LAB_0010a63d: LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] LEA RDX,[RBP + -0x40] CALL 0x00109300 LEA RDI,[RBP + -0xa0] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a668: CMP dword ptr [RBP + -0xa4],0x14 JGE 0x0010a695 LEA RDI,[RBP + -0xa0] LEA RSI,[RBP + -0xa0] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a668 LAB_0010a695: LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0xa0] LEA RDX,[RBP + -0x70] CALL 0x00109300 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a6c0: CMP dword ptr [RBP + -0xa4],0xa JGE 0x0010a6e7 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a6c0 LAB_0010a6e7: LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x70] LEA RDX,[RBP + -0x40] CALL 0x00109300 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x40] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a70f: CMP dword ptr [RBP + -0xa4],0x32 JGE 0x0010a736 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a70f LAB_0010a736: LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] LEA RDX,[RBP + -0x40] CALL 0x00109300 LEA RDI,[RBP + -0xa0] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a761: CMP dword ptr [RBP + -0xa4],0x64 JGE 0x0010a78e LEA RDI,[RBP + -0xa0] LEA RSI,[RBP + -0xa0] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a761 LAB_0010a78e: LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0xa0] LEA RDX,[RBP + -0x70] CALL 0x00109300 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a7b9: CMP dword ptr [RBP + -0xa4],0x32 JGE 0x0010a7e0 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a7b9 LAB_0010a7e0: LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x70] LEA RDX,[RBP + -0x40] CALL 0x00109300 LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x40] CALL 0x0010a850 MOV dword ptr [RBP + -0xa4],0x1 LAB_0010a808: CMP dword ptr [RBP + -0xa4],0x2 JGE 0x0010a82f LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x40] CALL 0x0010a850 MOV EAX,dword ptr [RBP + -0xa4] ADD EAX,0x1 MOV dword ptr [RBP + -0xa4],EAX JMP 0x0010a808 LAB_0010a82f: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[RBP + -0x40] MOV RDX,qword ptr [RBP + -0x10] CALL 0x00109300 ADD RSP,0xb0 POP RBP RET
void crypto_sign_ed25519_ref10_fe_pow22523(int8 param_1,int8 param_2) { int local_ac; int1 local_a8 [48]; int1 local_78 [48]; int1 local_48 [48]; int8 local_18; int8 local_10; local_18 = param_2; local_10 = param_1; crypto_sign_ed25519_ref10_fe_sq(local_48,param_2); for (local_ac = 1; local_ac < 1; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_48,local_48); } crypto_sign_ed25519_ref10_fe_sq(local_78,local_48); for (local_ac = 1; local_ac < 2; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_78,local_78); } crypto_sign_ed25519_ref10_fe_mul(local_78,local_18,local_78); crypto_sign_ed25519_ref10_fe_mul(local_48,local_48,local_78); crypto_sign_ed25519_ref10_fe_sq(local_48,local_48); for (local_ac = 1; local_ac < 1; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_48,local_48); } crypto_sign_ed25519_ref10_fe_mul(local_48,local_78,local_48); crypto_sign_ed25519_ref10_fe_sq(local_78,local_48); for (local_ac = 1; local_ac < 5; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_78,local_78); } crypto_sign_ed25519_ref10_fe_mul(local_48,local_78,local_48); crypto_sign_ed25519_ref10_fe_sq(local_78,local_48); for (local_ac = 1; local_ac < 10; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_78,local_78); } crypto_sign_ed25519_ref10_fe_mul(local_78,local_78,local_48); crypto_sign_ed25519_ref10_fe_sq(local_a8,local_78); for (local_ac = 1; local_ac < 0x14; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_a8,local_a8); } crypto_sign_ed25519_ref10_fe_mul(local_78,local_a8,local_78); crypto_sign_ed25519_ref10_fe_sq(local_78,local_78); for (local_ac = 1; local_ac < 10; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_78,local_78); } crypto_sign_ed25519_ref10_fe_mul(local_48,local_78,local_48); crypto_sign_ed25519_ref10_fe_sq(local_78,local_48); for (local_ac = 1; local_ac < 0x32; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_78,local_78); } crypto_sign_ed25519_ref10_fe_mul(local_78,local_78,local_48); crypto_sign_ed25519_ref10_fe_sq(local_a8,local_78); for (local_ac = 1; local_ac < 100; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_a8,local_a8); } crypto_sign_ed25519_ref10_fe_mul(local_78,local_a8,local_78); crypto_sign_ed25519_ref10_fe_sq(local_78,local_78); for (local_ac = 1; local_ac < 0x32; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_78,local_78); } crypto_sign_ed25519_ref10_fe_mul(local_48,local_78,local_48); crypto_sign_ed25519_ref10_fe_sq(local_48,local_48); for (local_ac = 1; local_ac < 2; local_ac = local_ac + 1) { crypto_sign_ed25519_ref10_fe_sq(local_48,local_48); } crypto_sign_ed25519_ref10_fe_mul(local_10,local_48,local_18); return; }
36,803
llama_grammar_parser::parse_rule(char const*)
llama.cpp/src/llama-grammar.cpp
const char * llama_grammar_parser::parse_rule(const char * src) { const char * name_end = parse_name(src); const char * pos = parse_space(name_end, false); size_t name_len = name_end - src; uint32_t rule_id = get_symbol_id(src, name_len); const std::string name(src, name_len); if (!(pos[0] == ':' && pos[1] == ':' && pos[2] == '=')) { throw std::runtime_error(std::string("expecting ::= at ") + pos); } pos = parse_space(pos + 3, true); pos = parse_alternates(pos, name, rule_id, false); if (*pos == '\r') { pos += pos[1] == '\n' ? 2 : 1; } else if (*pos == '\n') { pos++; } else if (*pos) { throw std::runtime_error(std::string("expecting newline or end at ") + pos); } return parse_space(pos, true); }
O3
cpp
llama_grammar_parser::parse_rule(char const*): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x60, %rsp movq %rsi, %r15 movq %rdi, %r14 movq %rsi, %rdi callq 0x967c0 movq %rax, %r12 movl $0x2401, %eax # imm = 0x2401 movq %r12, %rbx movzbl (%rbx), %ecx cmpl $0x9, %ecx je 0x96d24 cmpl $0x20, %ecx je 0x96d24 cmpl $0x23, %ecx jne 0x96d29 cmpb $0xd, %cl ja 0x96d1c movzbl %cl, %ecx btl %ecx, %eax jb 0x96cfd movb 0x1(%rbx), %cl incq %rbx jmp 0x96d0f incq %rbx jmp 0x96cfd subq %r15, %r12 movq %r14, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x79020 movl %eax, %ebp leaq 0x40(%rsp), %rdi leaq 0x20(%rsp), %rcx movq %r15, %rsi movq %r12, %rdx callq 0x78ee0 cmpb $0x3a, (%rbx) jne 0x96e50 cmpb $0x3a, 0x1(%rbx) jne 0x96e50 cmpb $0x3d, 0x2(%rbx) jne 0x96e50 addq $0x3, %rbx movabsq $0x100002600, %r15 # imm = 0x100002600 movl $0x2401, %eax # imm = 0x2401 movzbl (%rbx), %ecx cmpq $0x23, %rcx ja 0x96db0 btq %rcx, %r15 jae 0x96d95 incq %rbx jmp 0x96d81 cmpq $0x23, %rcx jne 0x96db0 cmpb $0xd, %cl ja 0x96da8 movzbl %cl, %ecx btl %ecx, %eax jb 0x96d81 movb 0x1(%rbx), %cl incq %rbx jmp 0x96d9b leaq 0x40(%rsp), %rdx movq %r14, %rdi movq %rbx, %rsi movl %ebp, %ecx xorl %r8d, %r8d callq 0x76e80 movq %rax, %rbx movzbl (%rax), %eax testl %eax, %eax je 0x96df1 cmpl $0xa, %eax je 0x96dee cmpl $0xd, %eax jne 0x96eb6 xorl %eax, %eax cmpb $0xa, 0x1(%rbx) sete %al addq %rax, %rbx incq %rbx jmp 0x96df1 incq %rbx movl $0x2401, %eax # imm = 0x2401 movzbl (%rbx), %ecx cmpq $0x23, %rcx ja 0x96e25 btq %rcx, %r15 jae 0x96e0a incq %rbx jmp 0x96df6 cmpq $0x23, %rcx jne 0x96e25 cmpb $0xd, %cl ja 0x96e1d movzbl %cl, %ecx btl %ecx, %eax jb 0x96df6 movb 0x1(%rbx), %cl incq %rbx jmp 0x96e10 leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x96e40 movq 0x50(%rsp), %rsi incq %rsi callq 0x789c0 movq %rbx, %rax addq $0x60, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x76100 movq %rax, %r14 leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x9ed26(%rip), %rsi # 0x135b93 leaq 0x9ed30(%rip), %rdx # 0x135ba4 movq %rsp, %rdi callq 0x75a10 leaq 0x20(%rsp), %rdi movq %rsp, %rsi movq %rbx, %rdx callq 0x74b90 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x7b740 xorl %ebp, %ebp movq 0xef14b(%rip), %rsi # 0x185ff0 movq 0xeee04(%rip), %rdx # 0x185cb0 movq %r14, %rdi callq 0x7bfd0 jmp 0x96f1a movl $0x10, %edi callq 0x76100 movq %rax, %r14 leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x9ecd2(%rip), %rsi # 0x135ba5 leaq 0x9ece7(%rip), %rdx # 0x135bc1 movq %rsp, %rdi callq 0x75a10 leaq 0x20(%rsp), %rdi movq %rsp, %rsi movq %rbx, %rdx callq 0x74b90 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x7b740 xorl %ebp, %ebp movq 0xef0e5(%rip), %rsi # 0x185ff0 movq 0xeed9e(%rip), %rdx # 0x185cb0 movq %r14, %rdi callq 0x7bfd0 jmp 0x96f20 jmp 0x96f5b jmp 0x96f7b movq %rax, %rbx leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x96f3e movq 0x30(%rsp), %rsi incq %rsi callq 0x789c0 movq (%rsp), %rdi cmpq %r15, %rdi je 0x96f54 movq 0x10(%rsp), %rsi incq %rsi callq 0x789c0 testb %bpl, %bpl jne 0x96f7e jmp 0x96f86 movq %rax, %rbx movq (%rsp), %rdi cmpq %r15, %rdi je 0x96f7e movq 0x10(%rsp), %rsi incq %rsi callq 0x789c0 jmp 0x96f7e movq %rax, %rbx jmp 0x96f86 movq %rax, %rbx movq %r14, %rdi callq 0x77300 leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x96fa1 movq 0x50(%rsp), %rsi incq %rsi callq 0x789c0 movq %rbx, %rdi callq 0x7c350 nop
_ZN20llama_grammar_parser10parse_ruleEPKc: push rbp push r15 push r14 push r12 push rbx sub rsp, 60h mov r15, rsi mov r14, rdi mov rdi, rsi; char * call _ZL10parse_namePKc; parse_name(char const*) mov r12, rax mov eax, 2401h mov rbx, r12 loc_96CFD: movzx ecx, byte ptr [rbx] cmp ecx, 9 jz short loc_96D24 cmp ecx, 20h ; ' ' jz short loc_96D24 cmp ecx, 23h ; '#' jnz short loc_96D29 loc_96D0F: cmp cl, 0Dh ja short loc_96D1C movzx ecx, cl bt eax, ecx jb short loc_96CFD loc_96D1C: mov cl, [rbx+1] inc rbx jmp short loc_96D0F loc_96D24: inc rbx jmp short loc_96CFD loc_96D29: sub r12, r15 mov rdi, r14; this mov rsi, r15; char * mov rdx, r12; unsigned __int64 call __ZN20llama_grammar_parser13get_symbol_idEPKcm; llama_grammar_parser::get_symbol_id(char const*,ulong) mov ebp, eax lea rdi, [rsp+88h+var_48] lea rcx, [rsp+88h+var_68] mov rsi, r15 mov rdx, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_; std::string::basic_string(char const*,ulong,std::allocator<char> const&) cmp byte ptr [rbx], 3Ah ; ':' jnz loc_96E50 cmp byte ptr [rbx+1], 3Ah ; ':' jnz loc_96E50 cmp byte ptr [rbx+2], 3Dh ; '=' jnz loc_96E50 add rbx, 3 mov r15, 100002600h mov eax, 2401h loc_96D81: movzx ecx, byte ptr [rbx] cmp rcx, 23h ; '#' ja short loc_96DB0 bt r15, rcx jnb short loc_96D95 inc rbx jmp short loc_96D81 loc_96D95: cmp rcx, 23h ; '#' jnz short loc_96DB0 loc_96D9B: cmp cl, 0Dh ja short loc_96DA8 movzx ecx, cl bt eax, ecx jb short loc_96D81 loc_96DA8: mov cl, [rbx+1] inc rbx jmp short loc_96D9B loc_96DB0: lea rdx, [rsp+88h+var_48]; int mov rdi, r14; int mov rsi, rbx; int mov ecx, ebp; int xor r8d, r8d; int call __ZN20llama_grammar_parser16parse_alternatesEPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjb; llama_grammar_parser::parse_alternates(char const*,std::string const&,uint,bool) mov rbx, rax movzx eax, byte ptr [rax] test eax, eax jz short loc_96DF1 cmp eax, 0Ah jz short loc_96DEE cmp eax, 0Dh jnz loc_96EB6 xor eax, eax cmp byte ptr [rbx+1], 0Ah setz al add rbx, rax inc rbx jmp short loc_96DF1 loc_96DEE: inc rbx loc_96DF1: mov eax, 2401h loc_96DF6: movzx ecx, byte ptr [rbx] cmp rcx, 23h ; '#' ja short loc_96E25 bt r15, rcx jnb short loc_96E0A inc rbx jmp short loc_96DF6 loc_96E0A: cmp rcx, 23h ; '#' jnz short loc_96E25 loc_96E10: cmp cl, 0Dh ja short loc_96E1D movzx ecx, cl bt eax, ecx jb short loc_96DF6 loc_96E1D: mov cl, [rbx+1] inc rbx jmp short loc_96E10 loc_96E25: lea rax, [rsp+88h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_96E40 mov rsi, [rsp+88h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_96E40: mov rax, rbx add rsp, 60h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_96E50: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea r15, [rsp+88h+var_78] mov [r15-10h], r15 lea rsi, aExpectingAt_2; "expecting ::= at " lea rdx, aExpectingAt_2+11h; "" mov rdi, rsp call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+88h+var_68] mov rsi, rsp mov rdx, rbx call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) mov bpl, 1 lea rsi, [rsp+88h+var_68] mov rdi, r14 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_96F1A loc_96EB6: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea r15, [rsp+88h+var_78] mov [r15-10h], r15 lea rsi, aExpectingNewli; "expecting newline or end at " lea rdx, aExpectingNewli+1Ch; "" mov rdi, rsp call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+88h+var_68] mov rsi, rsp mov rdx, rbx call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) mov bpl, 1 lea rsi, [rsp+88h+var_68] mov rdi, r14 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_96F1A: jmp short loc_96F20 jmp short loc_96F5B jmp short loc_96F7B loc_96F20: mov rbx, rax lea rax, [rsp+88h+var_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_96F3E mov rsi, [rsp+88h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_96F3E: mov rdi, [rsp+88h+var_88]; void * cmp rdi, r15 jz short loc_96F54 mov rsi, [rsp+88h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_96F54: test bpl, bpl jnz short loc_96F7E jmp short loc_96F86 loc_96F5B: mov rbx, rax mov rdi, [rsp+88h+var_88]; void * cmp rdi, r15 jz short loc_96F7E mov rsi, [rsp+88h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_96F7E mov rbx, rax jmp short loc_96F86 loc_96F7B: mov rbx, rax loc_96F7E: mov rdi, r14; void * call ___cxa_free_exception loc_96F86: lea rax, [rsp+88h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_96FA1 mov rsi, [rsp+88h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_96FA1: mov rdi, rbx call __Unwind_Resume
unsigned __int8 * llama_grammar_parser::parse_rule(llama_grammar_parser *this, const char *a2) { const char *v2; // r12 int v3; // eax const char *v4; // rbx int v5; // ecx unsigned long long v6; // r12 int symbol_id; // ebp int v8; // r9d unsigned __int8 *v9; // rbx long long v10; // r15 int v11; // eax unsigned long long v12; // rcx unsigned __int8 *v13; // rbx int v14; // eax int v15; // eax unsigned long long v16; // rcx void *exception; // r14 void *v19; // r14 void *v20; // [rsp+0h] [rbp-88h] BYREF int v21; // [rsp+8h] [rbp-80h] _QWORD v22[2]; // [rsp+10h] [rbp-78h] BYREF int v23; // [rsp+20h] [rbp-68h] BYREF long long v24; // [rsp+28h] [rbp-60h] int v25[4]; // [rsp+40h] [rbp-48h] BYREF long long v26; // [rsp+50h] [rbp-38h] BYREF v2 = parse_name(a2); v3 = 9217; v4 = v2; while ( 1 ) { while ( 1 ) { v5 = *(unsigned __int8 *)v4; if ( v5 != 9 && v5 != 32 ) break; ++v4; } if ( v5 != 35 ) break; while ( (unsigned __int8)v5 > 0xDu || !_bittest(&v3, (unsigned __int8)v5) ) LOBYTE(v5) = *++v4; } v6 = v2 - a2; symbol_id = llama_grammar_parser::get_symbol_id(this, a2, v6); std::string::basic_string(v25, a2, v6, &v23); if ( *(_WORD *)v4 != 14906 || v4[2] != 61 ) { exception = __cxa_allocate_exception(0x10uLL); v20 = v22; std::string::_M_construct<char const*>(&v20, "expecting ::= at ", ""); std::operator+<char>(&v23, &v20, v4); std::runtime_error::runtime_error(exception, &v23); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v9 = (unsigned __int8 *)(v4 + 3); v10 = 0x100002600LL; v11 = 9217; while ( 1 ) { v12 = *v9; if ( v12 > 0x23 ) break; if ( _bittest64(&v10, v12) ) { ++v9; } else { if ( v12 != 35 ) break; while ( (unsigned __int8)v12 > 0xDu || !_bittest(&v11, (unsigned __int8)v12) ) LOBYTE(v12) = *++v9; } } v13 = (unsigned __int8 *)llama_grammar_parser::parse_alternates( (int)this, (int)v9, (int)v25, symbol_id, 0, v8, (int)v20, v21, v22[0], (void *)v22[1], v23, v24); v14 = *v13; if ( *v13 ) { if ( v14 == 10 ) { ++v13; } else { if ( v14 != 13 ) { v19 = __cxa_allocate_exception(0x10uLL); v20 = v22; std::string::_M_construct<char const*>(&v20, "expecting newline or end at ", ""); std::operator+<char>(&v23, &v20, v13); std::runtime_error::runtime_error(v19, &v23); __cxa_throw( v19, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v13 += (v13[1] == 10) + 1; } } v15 = 9217; while ( 1 ) { v16 = *v13; if ( v16 > 0x23 ) break; if ( _bittest64(&v10, v16) ) { ++v13; } else { if ( v16 != 35 ) break; while ( (unsigned __int8)v16 > 0xDu || !_bittest(&v15, (unsigned __int8)v16) ) LOBYTE(v16) = *++v13; } } if ( *(long long **)v25 != &v26 ) operator delete(*(void **)v25, v26 + 1); return v13; }
parse_rule: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x60 MOV R15,RSI MOV R14,RDI MOV RDI,RSI CALL 0x001967c0 MOV R12,RAX MOV EAX,0x2401 MOV RBX,R12 LAB_00196cfd: MOVZX ECX,byte ptr [RBX] CMP ECX,0x9 JZ 0x00196d24 CMP ECX,0x20 JZ 0x00196d24 CMP ECX,0x23 JNZ 0x00196d29 LAB_00196d0f: CMP CL,0xd JA 0x00196d1c MOVZX ECX,CL BT EAX,ECX JC 0x00196cfd LAB_00196d1c: MOV CL,byte ptr [RBX + 0x1] INC RBX JMP 0x00196d0f LAB_00196d24: INC RBX JMP 0x00196cfd LAB_00196d29: SUB R12,R15 MOV RDI,R14 MOV RSI,R15 MOV RDX,R12 CALL 0x00179020 MOV EBP,EAX LEA RDI,[RSP + 0x40] LEA RCX,[RSP + 0x20] MOV RSI,R15 MOV RDX,R12 CALL 0x00178ee0 CMP byte ptr [RBX],0x3a JNZ 0x00196e50 CMP byte ptr [RBX + 0x1],0x3a JNZ 0x00196e50 CMP byte ptr [RBX + 0x2],0x3d JNZ 0x00196e50 ADD RBX,0x3 MOV R15,0x100002600 MOV EAX,0x2401 LAB_00196d81: MOVZX ECX,byte ptr [RBX] CMP RCX,0x23 JA 0x00196db0 BT R15,RCX JNC 0x00196d95 INC RBX JMP 0x00196d81 LAB_00196d95: CMP RCX,0x23 JNZ 0x00196db0 LAB_00196d9b: CMP CL,0xd JA 0x00196da8 MOVZX ECX,CL BT EAX,ECX JC 0x00196d81 LAB_00196da8: MOV CL,byte ptr [RBX + 0x1] INC RBX JMP 0x00196d9b LAB_00196db0: LEA RDX,[RSP + 0x40] MOV RDI,R14 MOV RSI,RBX MOV ECX,EBP XOR R8D,R8D CALL 0x00176e80 LAB_00196dc5: MOV RBX,RAX MOVZX EAX,byte ptr [RAX] TEST EAX,EAX JZ 0x00196df1 CMP EAX,0xa JZ 0x00196dee CMP EAX,0xd JNZ 0x00196eb6 XOR EAX,EAX CMP byte ptr [RBX + 0x1],0xa SETZ AL ADD RBX,RAX INC RBX JMP 0x00196df1 LAB_00196dee: INC RBX LAB_00196df1: MOV EAX,0x2401 LAB_00196df6: MOVZX ECX,byte ptr [RBX] CMP RCX,0x23 JA 0x00196e25 BT R15,RCX JNC 0x00196e0a INC RBX JMP 0x00196df6 LAB_00196e0a: CMP RCX,0x23 JNZ 0x00196e25 LAB_00196e10: CMP CL,0xd JA 0x00196e1d MOVZX ECX,CL BT EAX,ECX JC 0x00196df6 LAB_00196e1d: MOV CL,byte ptr [RBX + 0x1] INC RBX JMP 0x00196e10 LAB_00196e25: LEA RAX,[RSP + 0x50] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00196e40 MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x001789c0 LAB_00196e40: MOV RAX,RBX ADD RSP,0x60 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00196e50: MOV EDI,0x10 CALL 0x00176100 MOV R14,RAX LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 LAB_00196e66: LEA RSI,[0x235b93] LEA RDX,[0x235ba4] MOV RDI,RSP CALL 0x00175a10 LAB_00196e7c: LEA RDI,[RSP + 0x20] MOV RSI,RSP MOV RDX,RBX CALL 0x00174b90 MOV BPL,0x1 LAB_00196e8f: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x0017b740 XOR EBP,EBP MOV RSI,qword ptr [0x00285ff0] MOV RDX,qword ptr [0x00285cb0] MOV RDI,R14 CALL 0x0017bfd0 LAB_00196eb6: MOV EDI,0x10 CALL 0x00176100 MOV R14,RAX LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 LAB_00196ecc: LEA RSI,[0x235ba5] LEA RDX,[0x235bc1] MOV RDI,RSP CALL 0x00175a10 LAB_00196ee2: LEA RDI,[RSP + 0x20] MOV RSI,RSP MOV RDX,RBX CALL 0x00174b90 MOV BPL,0x1 LAB_00196ef5: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x0017b740 XOR EBP,EBP MOV RSI,qword ptr [0x00285ff0] MOV RDX,qword ptr [0x00285cb0] MOV RDI,R14 CALL 0x0017bfd0
/* llama_grammar_parser::parse_rule(char const*) */ byte * __thiscall llama_grammar_parser::parse_rule(llama_grammar_parser *this,char *param_1) { byte bVar1; uint uVar2; byte *pbVar3; runtime_error *prVar4; ulong uVar5; byte *pbVar6; int1 *local_88 [2]; int1 local_78 [16]; allocator local_68 [32]; long *local_48 [2]; long local_38 [2]; pbVar3 = (byte *)parse_name(param_1); pbVar6 = pbVar3; while( true ) { for (; (bVar1 = *pbVar6, bVar1 == 9 || (bVar1 == 0x20)); pbVar6 = pbVar6 + 1) { } if (bVar1 != 0x23) break; while ((0xd < bVar1 || ((0x2401U >> (bVar1 & 0x1f) & 1) == 0))) { bVar1 = pbVar6[1]; pbVar6 = pbVar6 + 1; } } uVar2 = get_symbol_id(this,param_1,(long)pbVar3 - (long)param_1); std::__cxx11::string::string((string *)local_48,param_1,(long)pbVar3 - (long)param_1,local_68); if (((*pbVar6 != 0x3a) || (pbVar6[1] != 0x3a)) || (pbVar6[2] != 0x3d)) { prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); local_88[0] = local_78; /* try { // try from 00196e66 to 00196e7b has its CatchHandler @ 00196f7b */ std::__cxx11::string::_M_construct<char_const*>(local_88,"expecting ::= at ",""); /* try { // try from 00196e7c to 00196e8b has its CatchHandler @ 00196f5b */ std::operator+((string *)local_68,(char *)local_88); /* try { // try from 00196e8f to 00196eb3 has its CatchHandler @ 00196f20 */ std::runtime_error::runtime_error(prVar4,(string *)local_68); /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_00285ff0,PTR__runtime_error_00285cb0); } pbVar6 = pbVar6 + 3; while (uVar5 = (ulong)*pbVar6, uVar5 < 0x24) { if ((0x100002600U >> (uVar5 & 0x3f) & 1) == 0) { if (uVar5 != 0x23) break; while ((0xd < (byte)uVar5 || ((0x2401U >> ((uint)uVar5 & 0x1f) & 1) == 0))) { uVar5 = (ulong)pbVar6[1]; pbVar6 = pbVar6 + 1; } } else { pbVar6 = pbVar6 + 1; } } /* try { // try from 00196db0 to 00196dc4 has its CatchHandler @ 00196f76 */ pbVar6 = (byte *)parse_alternates(this,(char *)pbVar6,(string *)local_48,uVar2,false); bVar1 = *pbVar6; if (bVar1 != 0) { if (bVar1 == 10) { pbVar6 = pbVar6 + 1; } else { if (bVar1 != 0xd) { prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); local_88[0] = local_78; /* try { // try from 00196ecc to 00196ee1 has its CatchHandler @ 00196f1e */ std::__cxx11::string::_M_construct<char_const*>(local_88,"expecting newline or end at ",""); /* try { // try from 00196ee2 to 00196ef1 has its CatchHandler @ 00196f1c */ std::operator+((string *)local_68,(char *)local_88); /* try { // try from 00196ef5 to 00196f19 has its CatchHandler @ 00196f1a */ std::runtime_error::runtime_error(prVar4,(string *)local_68); /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_00285ff0,PTR__runtime_error_00285cb0); } pbVar6 = pbVar6 + (ulong)(pbVar6[1] == 10) + 1; } } while (uVar5 = (ulong)*pbVar6, uVar5 < 0x24) { if ((0x100002600U >> (uVar5 & 0x3f) & 1) == 0) { if (uVar5 != 0x23) break; while ((0xd < (byte)uVar5 || ((0x2401U >> ((uint)uVar5 & 0x1f) & 1) == 0))) { uVar5 = (ulong)pbVar6[1]; pbVar6 = pbVar6 + 1; } } else { pbVar6 = pbVar6 + 1; } } if (local_48[0] != local_38) { operator_delete(local_48[0],local_38[0] + 1); } return pbVar6; }
36,804
fsp_header_init(fil_space_t*, unsigned int, mtr_t*)
eloqsql/storage/innobase/fsp/fsp0fsp.cc
dberr_t fsp_header_init(fil_space_t *space, uint32_t size, mtr_t *mtr) { const page_id_t page_id(space->id, 0); const ulint zip_size = space->zip_size(); buf_block_t *free_block = buf_LRU_get_free_block(false); mtr->x_lock_space(space); buf_block_t* block = buf_page_create(space, 0, zip_size, mtr, free_block); if (UNIV_UNLIKELY(block != free_block)) { buf_pool.free_block(free_block); } space->size_in_header = size; space->free_len = 0; space->free_limit = 0; /* The prior contents of the file page should be ignored */ fsp_init_file_page(space, block, mtr); mtr->write<2>(*block, block->page.frame + FIL_PAGE_TYPE, FIL_PAGE_TYPE_FSP_HDR); mtr->write<4,mtr_t::MAYBE_NOP>(*block, FSP_HEADER_OFFSET + FSP_SPACE_ID + block->page.frame, space->id); ut_ad(0 == mach_read_from_4(FSP_HEADER_OFFSET + FSP_NOT_USED + block->page.frame)); /* recv_sys_t::parse() expects to find a WRITE record that covers all 4 bytes. Therefore, we must specify mtr_t::FORCED in order to avoid optimizing away any unchanged most significant bytes of FSP_SIZE. */ mtr->write<4,mtr_t::FORCED>(*block, FSP_HEADER_OFFSET + FSP_SIZE + block->page.frame, size); ut_ad(0 == mach_read_from_4(FSP_HEADER_OFFSET + FSP_FREE_LIMIT + block->page.frame)); if (auto f = space->flags & ~FSP_FLAGS_MEM_MASK) { mtr->write<4,mtr_t::FORCED>(*block, FSP_HEADER_OFFSET + FSP_SPACE_FLAGS + block->page.frame, f); } ut_ad(0 == mach_read_from_4(FSP_HEADER_OFFSET + FSP_FRAG_N_USED + block->page.frame)); flst_init(block, FSP_HEADER_OFFSET + FSP_FREE, mtr); flst_init(block, FSP_HEADER_OFFSET + FSP_FREE_FRAG, mtr); flst_init(block, FSP_HEADER_OFFSET + FSP_FULL_FRAG, mtr); flst_init(block, FSP_HEADER_OFFSET + FSP_SEG_INODES_FULL, mtr); flst_init(block, FSP_HEADER_OFFSET + FSP_SEG_INODES_FREE, mtr); mtr->write<8>(*block, FSP_HEADER_OFFSET + FSP_SEG_ID + block->page.frame, 1U); if (dberr_t err = fsp_fill_free_list(!is_system_tablespace(space->id), space, block, mtr)) { return err; } /* Write encryption metadata to page 0 if tablespace is encrypted or encryption is disabled by table option. */ if (space->crypt_data && (space->crypt_data->should_encrypt() || space->crypt_data->not_encrypted())) { space->crypt_data->write_page0(block, mtr); } return DB_SUCCESS; }
O0
cpp
fsp_header_init(fil_space_t*, unsigned int, mtr_t*): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x40(%rax), %rsi leaq -0x28(%rbp), %rdi xorl %edx, %edx callq 0x1011b20 movq -0x10(%rbp), %rdi callq 0x814270 movl %eax, %eax movq %rax, -0x30(%rbp) xorl %edi, %edi callq 0x102b5b0 movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x1146c80 movq -0x10(%rbp), %rdi movq -0x30(%rbp), %rdx movq -0x20(%rbp), %rcx movq -0x38(%rbp), %r8 xorl %esi, %esi callq 0x100d7e0 movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax cmpq -0x38(%rbp), %rax je 0x106ec52 movq -0x38(%rbp), %rsi leaq 0xb02033(%rip), %rdi # 0x1b70c80 callq 0x102d480 movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x84(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x88(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x8c(%rax) movq -0x40(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x1074b60 movq -0x20(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x40(%rbp), %rax movq 0x30(%rax), %rdx addq $0x18, %rdx movl $0x8, %ecx callq 0x1074b90 movq -0x20(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x40(%rbp), %rax movq 0x30(%rax), %rdx addq $0x26, %rdx movq -0x10(%rbp), %rax movq 0x40(%rax), %rcx callq 0x10403e0 jmp 0x106ecc9 movq -0x20(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x40(%rbp), %rax movq 0x30(%rax), %rdx addq $0x2e, %rdx movl -0x14(%rbp), %ecx callq 0x1074ca0 jmp 0x106ece7 movq -0x10(%rbp), %rax movq 0x128(%rax), %rax andq $0x7ffffff, %rax # imm = 0x7FFFFFF movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) je 0x106ed20 movq -0x20(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x40(%rbp), %rax movq 0x30(%rax), %rdx addq $0x36, %rdx movq -0x48(%rbp), %rcx callq 0x1065150 jmp 0x106ed22 jmp 0x106ed24 movq -0x40(%rbp), %rdi movq -0x20(%rbp), %rdx movl $0x3e, %esi callq 0x1074d60 movq -0x40(%rbp), %rdi movq -0x20(%rbp), %rdx movl $0x4e, %esi callq 0x1074d60 movq -0x40(%rbp), %rdi movq -0x20(%rbp), %rdx movl $0x5e, %esi callq 0x1074d60 movq -0x40(%rbp), %rdi movq -0x20(%rbp), %rdx movl $0x76, %esi callq 0x1074d60 movq -0x40(%rbp), %rdi movq -0x20(%rbp), %rdx movl $0x86, %esi callq 0x1074d60 movq -0x20(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x40(%rbp), %rax movq 0x30(%rax), %rdx addq $0x6e, %rdx movl $0x1, %ecx callq 0x1074de0 movq -0x10(%rbp), %rax movq 0x40(%rax), %rdi callq 0x106f370 xorb $-0x1, %al movq -0x10(%rbp), %rsi movq -0x40(%rbp), %rdx movq -0x20(%rbp), %rcx movzbl %al, %edi andl $0x1, %edi callq 0x106ee40 movl %eax, -0x4c(%rbp) cmpl $0x0, -0x4c(%rbp) je 0x106edd3 movl -0x4c(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x106ee2a movq -0x10(%rbp), %rax cmpq $0x0, 0xb8(%rax) je 0x106ee23 movq -0x10(%rbp), %rax movq 0xb8(%rax), %rdi callq 0x1074f10 testb $0x1, %al jne 0x106ee0b movq -0x10(%rbp), %rax movq 0xb8(%rax), %rdi callq 0x102afd0 testb $0x1, %al jne 0x106ee0b jmp 0x106ee23 movq -0x10(%rbp), %rax movq 0xb8(%rax), %rdi movq -0x40(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x1069860 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_Z15fsp_header_initP11fil_space_tjP5mtr_t: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rsi, [rax+40h]; unsigned __int64 lea rdi, [rbp+var_28]; this xor edx, edx; unsigned int call _ZN9page_id_tC2Emj; page_id_t::page_id_t(ulong,uint) mov rdi, [rbp+var_10]; this call _ZNK11fil_space_t8zip_sizeEv; fil_space_t::zip_size(void) mov eax, eax mov [rbp+var_30], rax xor edi, edi; bool call _Z22buf_LRU_get_free_blockb; buf_LRU_get_free_block(bool) mov [rbp+var_38], rax mov rdi, [rbp+var_20]; this mov rsi, [rbp+var_10]; fil_space_t * call _ZN5mtr_t12x_lock_spaceEP11fil_space_t; mtr_t::x_lock_space(fil_space_t *) mov rdi, [rbp+var_10]; fil_space_t * mov rdx, [rbp+var_30]; unsigned __int64 mov rcx, [rbp+var_20]; mtr_t * mov r8, [rbp+var_38]; buf_block_t * xor esi, esi; unsigned int call _Z15buf_page_createP11fil_space_tjmP5mtr_tP11buf_block_t; buf_page_create(fil_space_t *,uint,ulong,mtr_t *,buf_block_t *) mov [rbp+var_40], rax mov rax, [rbp+var_40] cmp rax, [rbp+var_38] jz short loc_106EC52 mov rsi, [rbp+var_38]; buf_block_t * lea rdi, buf_pool; this call _ZN10buf_pool_t10free_blockEP11buf_block_t; buf_pool_t::free_block(buf_block_t *) loc_106EC52: mov ecx, [rbp+var_14] mov rax, [rbp+var_10] mov [rax+84h], ecx mov rax, [rbp+var_10] mov dword ptr [rax+88h], 0 mov rax, [rbp+var_10] mov dword ptr [rax+8Ch], 0 mov rdi, [rbp+var_40]; buf_block_t * mov rsi, [rbp+var_20]; mtr_t * call _Z18fsp_init_file_pageP11buf_block_tP5mtr_t; fsp_init_file_page(buf_block_t *,mtr_t *) mov rdi, [rbp+var_20] mov rsi, [rbp+var_40] mov rax, [rbp+var_40] mov rdx, [rax+30h] add rdx, 18h mov ecx, 8 call _ZN5mtr_t5writeILj2ELNS_10write_typeE0EtEEbRK11buf_block_tPvT1_; mtr_t::write<2u,(mtr_t::write_type)0,ushort>(buf_block_t const&,void *,ushort) mov rdi, [rbp+var_20] mov rsi, [rbp+var_40] mov rax, [rbp+var_40] mov rdx, [rax+30h] add rdx, 26h ; '&' mov rax, [rbp+var_10] mov rcx, [rax+40h] call _ZN5mtr_t5writeILj4ELNS_10write_typeE1EmEEbRK11buf_block_tPvT1_; mtr_t::write<4u,(mtr_t::write_type)1,ulong>(buf_block_t const&,void *,ulong) jmp short $+2 loc_106ECC9: mov rdi, [rbp+var_20] mov rsi, [rbp+var_40] mov rax, [rbp+var_40] mov rdx, [rax+30h] add rdx, 2Eh ; '.' mov ecx, [rbp+var_14] call _ZN5mtr_t5writeILj4ELNS_10write_typeE2EjEEbRK11buf_block_tPvT1_; mtr_t::write<4u,(mtr_t::write_type)2,uint>(buf_block_t const&,void *,uint) jmp short $+2 loc_106ECE7: mov rax, [rbp+var_10] mov rax, [rax+128h] and rax, 7FFFFFFh mov [rbp+var_48], rax cmp [rbp+var_48], 0 jz short loc_106ED20 mov rdi, [rbp+var_20] mov rsi, [rbp+var_40] mov rax, [rbp+var_40] mov rdx, [rax+30h] add rdx, 36h ; '6' mov rcx, [rbp+var_48] call _ZN5mtr_t5writeILj4ELNS_10write_typeE2EmEEbRK11buf_block_tPvT1_; mtr_t::write<4u,(mtr_t::write_type)2,ulong>(buf_block_t const&,void *,ulong) loc_106ED20: jmp short $+2 loc_106ED22: jmp short $+2 loc_106ED24: mov rdi, [rbp+var_40]; buf_block_t * mov rdx, [rbp+var_20]; mtr_t * mov esi, 3Eh ; '>'; unsigned __int16 call _Z9flst_initPK11buf_block_ttP5mtr_t; flst_init(buf_block_t const*,ushort,mtr_t *) mov rdi, [rbp+var_40]; buf_block_t * mov rdx, [rbp+var_20]; mtr_t * mov esi, 4Eh ; 'N'; unsigned __int16 call _Z9flst_initPK11buf_block_ttP5mtr_t; flst_init(buf_block_t const*,ushort,mtr_t *) mov rdi, [rbp+var_40]; buf_block_t * mov rdx, [rbp+var_20]; mtr_t * mov esi, 5Eh ; '^'; unsigned __int16 call _Z9flst_initPK11buf_block_ttP5mtr_t; flst_init(buf_block_t const*,ushort,mtr_t *) mov rdi, [rbp+var_40]; buf_block_t * mov rdx, [rbp+var_20]; mtr_t * mov esi, 76h ; 'v'; unsigned __int16 call _Z9flst_initPK11buf_block_ttP5mtr_t; flst_init(buf_block_t const*,ushort,mtr_t *) mov rdi, [rbp+var_40]; buf_block_t * mov rdx, [rbp+var_20]; mtr_t * mov esi, 86h; unsigned __int16 call _Z9flst_initPK11buf_block_ttP5mtr_t; flst_init(buf_block_t const*,ushort,mtr_t *) mov rdi, [rbp+var_20] mov rsi, [rbp+var_40] mov rax, [rbp+var_40] mov rdx, [rax+30h] add rdx, 6Eh ; 'n' mov ecx, 1 call _ZN5mtr_t5writeILj8ELNS_10write_typeE0EjEEbRK11buf_block_tPvT1_; mtr_t::write<8u,(mtr_t::write_type)0,uint>(buf_block_t const&,void *,uint) mov rax, [rbp+var_10] mov rdi, [rax+40h]; unsigned __int64 call _ZL20is_system_tablespacem_0; is_system_tablespace(ulong) xor al, 0FFh mov rsi, [rbp+var_10]; fil_space_t * mov rdx, [rbp+var_40]; buf_block_t * mov rcx, [rbp+var_20]; mtr_t * movzx edi, al and edi, 1; bool call _ZL18fsp_fill_free_listbP11fil_space_tP11buf_block_tP5mtr_t; fsp_fill_free_list(bool,fil_space_t *,buf_block_t *,mtr_t *) mov [rbp+var_4C], eax cmp [rbp+var_4C], 0 jz short loc_106EDD3 mov eax, [rbp+var_4C] mov [rbp+var_4], eax jmp short loc_106EE2A loc_106EDD3: mov rax, [rbp+var_10] cmp qword ptr [rax+0B8h], 0 jz short loc_106EE23 mov rax, [rbp+var_10] mov rdi, [rax+0B8h]; this call _ZNK17fil_space_crypt_t14should_encryptEv; fil_space_crypt_t::should_encrypt(void) test al, 1 jnz short loc_106EE0B mov rax, [rbp+var_10] mov rdi, [rax+0B8h]; this call _ZNK17fil_space_crypt_t13not_encryptedEv; fil_space_crypt_t::not_encrypted(void) test al, 1 jnz short loc_106EE0B jmp short loc_106EE23 loc_106EE0B: mov rax, [rbp+var_10] mov rdi, [rax+0B8h]; this mov rsi, [rbp+var_40]; buf_block_t * mov rdx, [rbp+var_20]; mtr_t * call _ZN17fil_space_crypt_t11write_page0EP11buf_block_tP5mtr_t; fil_space_crypt_t::write_page0(buf_block_t *,mtr_t *) loc_106EE23: mov [rbp+var_4], 0 loc_106EE2A: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long fsp_header_init(fil_space_t *a1, unsigned int a2, mtr_t *a3) { unsigned long long v3; // rsi char v4; // al unsigned int v6; // [rsp+4h] [rbp-4Ch] long long v7; // [rsp+8h] [rbp-48h] buf_block_t *v8; // [rsp+10h] [rbp-40h] buf_page_t *free_block; // [rsp+18h] [rbp-38h] unsigned long long v10; // [rsp+20h] [rbp-30h] _BYTE v11[8]; // [rsp+28h] [rbp-28h] BYREF mtr_t *v12; // [rsp+30h] [rbp-20h] unsigned int v13; // [rsp+3Ch] [rbp-14h] fil_space_t *v14; // [rsp+40h] [rbp-10h] v14 = a1; v13 = a2; v12 = a3; v3 = *((_QWORD *)a1 + 8); page_id_t::page_id_t((page_id_t *)v11, v3, 0); v10 = (unsigned int)fil_space_t::zip_size((fil_space_t **)v14, v3); free_block = buf_LRU_get_free_block(0); mtr_t::x_lock_space(v12, v14); v8 = (buf_block_t *)buf_page_create(v14, 0, v10, v12, free_block); if ( v8 != free_block ) buf_pool_t::free_block((buf_pool_t *)&buf_pool, free_block); *((_DWORD *)v14 + 33) = v13; *((_DWORD *)v14 + 34) = 0; *((_DWORD *)v14 + 35) = 0; fsp_init_file_page(v8, v12); mtr_t::write<2u,(mtr_t::write_type)0,unsigned short>(v12, v8, *((_QWORD *)v8 + 6) + 24LL, 8LL); mtr_t::write<4u,(mtr_t::write_type)1,unsigned long>( v12, v8, (unsigned __int8 *)(*((_QWORD *)v8 + 6) + 38LL), *((_QWORD *)v14 + 8)); mtr_t::write<4u,(mtr_t::write_type)2,unsigned int>(v12, v8, *((_QWORD *)v8 + 6) + 46LL, v13); v7 = *((_QWORD *)v14 + 37) & 0x7FFFFFFLL; if ( v7 ) mtr_t::write<4u,(mtr_t::write_type)2,unsigned long>(v12, v8, (unsigned __int8 *)(*((_QWORD *)v8 + 6) + 54LL), v7); flst_init(v8, 0x3Eu, v12); flst_init(v8, 0x4Eu, v12); flst_init(v8, 0x5Eu, v12); flst_init(v8, 0x76u, v12); flst_init(v8, 0x86u, v12); mtr_t::write<8u,(mtr_t::write_type)0,unsigned int>(v12, v8, *((_QWORD *)v8 + 6) + 110LL, 1LL); v4 = is_system_tablespace(*((_QWORD *)v14 + 8)); v6 = fsp_fill_free_list((v4 & 1) == 0, v14, v8, v12); if ( v6 ) { return v6; } else { if ( *((_QWORD *)v14 + 23) && ((fil_space_crypt_t::should_encrypt(*((fil_space_crypt_t **)v14 + 23)) & 1) != 0 || fil_space_crypt_t::not_encrypted(*((fil_space_crypt_t **)v14 + 23))) ) { fil_space_crypt_t::write_page0(*((fil_space_crypt_t **)v14 + 23), v8, v12); } return 0; } }
fct_reset_file_io: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x228 ADD RDI,0x8 CALL 0x010728d0 ADD RSP,0x10 POP RBP RET
/* fct_reset_file_io(PFS_file*) */ void fct_reset_file_io(PFS_file *param_1) { PFS_file_io_stat::reset((PFS_file_io_stat *)(param_1 + 0x230)); return; }
36,805
R3D_SetLightInnerCutOff
r3d/src/r3d_lighting.c
void R3D_SetLightInnerCutOff(R3D_Light id, float degrees) { r3d_get_and_check_light(light, id); light->innerCutOff = cosf(degrees * DEG2RAD); }
O3
c
R3D_SetLightInnerCutOff: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movl %edi, %edx testl %edi, %edi je 0xbf4ec leaq 0xf270d(%rip), %rax # 0x1b1bc0 cmpl %edx, 0x168(%rax) jbe 0xbf4ec movq 0x128(%rax), %rcx leal -0x1(%rdx), %ebx cmpb $0x1, (%rcx,%rbx) jne 0xbf4ec movq 0x108(%rax), %r14 cmpq %rbx, 0x110(%rax) setbe %cl testq %r14, %r14 sete %sil orb %cl, %sil cmpb $0x1, %sil jne 0xbf503 leaq 0x53b1e(%rip), %rsi # 0x113011 movl $0x5, %edi xorl %eax, %eax popq %rbx popq %r14 popq %rbp jmp 0xaa495 imulq 0x120(%rax), %rbx mulss 0x23b19(%rip), %xmm0 # 0xe302c callq 0x8270 movss %xmm0, 0xa8(%r14,%rbx) popq %rbx popq %r14 popq %rbp retq
R3D_SetLightInnerCutOff: push rbp mov rbp, rsp push r14 push rbx mov edx, edi test edi, edi jz short loc_BF4EC lea rax, R3D cmp [rax+168h], edx jbe short loc_BF4EC mov rcx, [rax+128h] lea ebx, [rdx-1] cmp byte ptr [rcx+rbx], 1 jnz short loc_BF4EC mov r14, [rax+108h] cmp [rax+110h], rbx setbe cl test r14, r14 setz sil or sil, cl cmp sil, 1 jnz short loc_BF503 loc_BF4EC: lea rsi, aLightIdIIsNotV; "Light [ID %i] is not valid" mov edi, 5 xor eax, eax pop rbx pop r14 pop rbp jmp TraceLog loc_BF503: imul rbx, [rax+120h] mulss xmm0, cs:dword_E302C call _cosf movss dword ptr [r14+rbx+0A8h], xmm0 pop rbx pop r14 pop rbp retn
void R3D_SetLightInnerCutOff(unsigned int a1, double a2) { unsigned long long v2; // rbx long long v3; // r14 long long v4; // rbx if ( a1 && *((_DWORD *)&R3D + 90) > a1 && (v2 = a1 - 1, *(_BYTE *)(*((_QWORD *)&R3D + 37) + v2) == 1) && (v3 = *((_QWORD *)&R3D + 33), *((_QWORD *)&R3D + 34) > v2 && v3 != 0) ) { v4 = *((_QWORD *)&R3D + 36) * v2; *(float *)&a2 = *(float *)&a2 * 0.017453292; *(float *)(v3 + v4 + 168) = cosf(a2); } else { TraceLog(5, (long long)"Light [ID %i] is not valid", a1); } }
R3D_SetLightInnerCutOff: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV EDX,EDI TEST EDI,EDI JZ 0x001bf4ec LEA RAX,[0x2b1bc0] CMP dword ptr [RAX + 0x168],EDX JBE 0x001bf4ec MOV RCX,qword ptr [RAX + 0x128] LEA EBX,[RDX + -0x1] CMP byte ptr [RCX + RBX*0x1],0x1 JNZ 0x001bf4ec MOV R14,qword ptr [RAX + 0x108] CMP qword ptr [RAX + 0x110],RBX SETBE CL TEST R14,R14 SETZ SIL OR SIL,CL CMP SIL,0x1 JNZ 0x001bf503 LAB_001bf4ec: LEA RSI,[0x213011] MOV EDI,0x5 XOR EAX,EAX POP RBX POP R14 POP RBP JMP 0x001aa495 LAB_001bf503: IMUL RBX,qword ptr [RAX + 0x120] MULSS XMM0,dword ptr [0x001e302c] CALL 0x00108270 MOVSS dword ptr [R14 + RBX*0x1 + 0xa8],XMM0 POP RBX POP R14 POP RBP RET
void R3D_SetLightInnerCutOff(float param_1,uint param_2) { long lVar1; ulong uVar2; long lVar3; float fVar4; lVar1 = DAT_002b1cc8; if ((param_2 != 0) && (param_2 < (uint)DAT_002b1d28)) { uVar2 = (ulong)(param_2 - 1); if (*(char *)(DAT_002b1ce8 + uVar2) == '\x01') { if (DAT_002b1cc8 != 0 && uVar2 < DAT_002b1cd0) { lVar3 = uVar2 * DAT_002b1ce0; fVar4 = cosf(param_1 * DAT_001e302c); *(float *)(lVar1 + 0xa8 + lVar3) = fVar4; return; } } } TraceLog(5,"Light [ID %i] is not valid"); return; }
36,806
my_rw_init
eloqsql/mysys/thr_rwlock.c
int my_rw_init(my_rw_lock_t *rwp) { pthread_condattr_t cond_attr; pthread_mutex_init( &rwp->lock, MY_MUTEX_INIT_FAST); pthread_condattr_init( &cond_attr ); pthread_cond_init( &rwp->readers, &cond_attr ); pthread_cond_init( &rwp->writers, &cond_attr ); pthread_condattr_destroy(&cond_attr); rwp->state = 0; rwp->waiters = 0; #ifdef SAFE_MUTEX rwp->write_thread = 0; #endif return(0); }
O3
c
my_rw_init: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx leaq 0xb6450b(%rip), %rsi # 0xc089c0 callq 0x29330 leaq -0x14(%rbp), %r14 movq %r14, %rdi callq 0x296b0 leaq 0x28(%rbx), %rdi movq %r14, %rsi callq 0x29380 leaq 0x58(%rbx), %rdi movq %r14, %rsi callq 0x29380 movq %r14, %rdi callq 0x296a0 movq $0x0, 0x88(%rbx) xorl %eax, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq
my_rw_init: push rbp mov rbp, rsp push r14 push rbx sub rsp, 10h mov rbx, rdi lea rsi, my_fast_mutexattr call _pthread_mutex_init lea r14, [rbp+var_14] mov rdi, r14 call _pthread_condattr_init lea rdi, [rbx+28h] mov rsi, r14 call _pthread_cond_init lea rdi, [rbx+58h] mov rsi, r14 call _pthread_cond_init mov rdi, r14 call _pthread_condattr_destroy mov qword ptr [rbx+88h], 0 xor eax, eax add rsp, 10h pop rbx pop r14 pop rbp retn
long long my_rw_init(long long a1) { _BYTE v2[20]; // [rsp+Ch] [rbp-14h] BYREF pthread_mutex_init(a1, &my_fast_mutexattr); pthread_condattr_init(v2); pthread_cond_init(a1 + 40, v2); pthread_cond_init(a1 + 88, v2); pthread_condattr_destroy(v2); *(_QWORD *)(a1 + 136) = 0LL; return 0LL; }
my_rw_init: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RDI LEA RSI,[0xd089c0] CALL 0x00129330 LEA R14,[RBP + -0x14] MOV RDI,R14 CALL 0x001296b0 LEA RDI,[RBX + 0x28] MOV RSI,R14 CALL 0x00129380 LEA RDI,[RBX + 0x58] MOV RSI,R14 CALL 0x00129380 MOV RDI,R14 CALL 0x001296a0 MOV qword ptr [RBX + 0x88],0x0 XOR EAX,EAX ADD RSP,0x10 POP RBX POP R14 POP RBP RET
int8 my_rw_init(pthread_mutex_t *param_1) { pthread_condattr_t local_1c; pthread_mutex_init(param_1,(pthread_mutexattr_t *)&my_fast_mutexattr); pthread_condattr_init(&local_1c); pthread_cond_init((pthread_cond_t *)(param_1 + 1),&local_1c); pthread_cond_init((pthread_cond_t *)((long)param_1 + 0x58),&local_1c); pthread_condattr_destroy(&local_1c); *(int8 *)((long)param_1 + 0x88) = 0; return 0; }
36,807
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); }
O3
c
my_fill_mb2: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq 0xb8(%rdi), %rax movslq %ecx, %rsi leaq -0x30(%rbp), %rcx leaq -0x3a(%rbp), %rdx callq *0x30(%rax) movslq %eax, %r15 addq %r14, %rbx movq %rbx, %r13 subq %r15, %r13 cmpq %r14, %r13 jb 0xcc05b leaq -0x3a(%rbp), %r12 movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx callq 0x2a0a0 addq %r15, %r14 cmpq %r13, %r14 jbe 0xcc045 subq %r14, %rbx je 0xcc06d movq %r14, %rdi xorl %esi, %esi movq %rbx, %rdx callq 0x2a290 movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0xcc08b addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x2a240
my_fill_mb2: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdx mov r14, rsi mov rax, fs:28h mov [rbp+var_30], rax mov rax, [rdi+0B8h] movsxd rsi, ecx lea rcx, [rbp+var_30] lea rdx, [rbp+var_3A] call qword ptr [rax+30h] movsxd r15, eax add rbx, r14 mov r13, rbx sub r13, r15 cmp r13, r14 jb short loc_CC05B lea r12, [rbp+var_3A] loc_CC045: mov rdi, r14 mov rsi, r12 mov rdx, r15 call _memcpy add r14, r15 cmp r14, r13 jbe short loc_CC045 loc_CC05B: sub rbx, r14 jz short loc_CC06D mov rdi, r14 xor esi, esi mov rdx, rbx call _memset loc_CC06D: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_CC08B add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_CC08B: call ___stack_chk_fail
unsigned long long my_fill_mb2(long long a1, unsigned long long a2, long long a3, int a4) { unsigned long long v5; // r14 long long v6; // r15 long long v7; // rbx long long v8; // rbx _BYTE v10[10]; // [rsp+6h] [rbp-3Ah] BYREF unsigned long long v11[6]; // [rsp+10h] [rbp-30h] BYREF v5 = a2; v11[0] = __readfsqword(0x28u); v6 = (*(int ( **)(long long, _QWORD, _BYTE *, unsigned long long *))(*(_QWORD *)(a1 + 184) + 48LL))( a1, a4, v10, v11); v7 = a2 + a3; if ( v7 - v6 >= a2 ) { do { memcpy(v5, v10, v6); v5 += v6; } while ( v5 <= v7 - v6 ); } v8 = v7 - v5; if ( v8 ) memset(v5, 0LL, v8); return __readfsqword(0x28u); }
my_fill_mb2: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDX MOV R14,RSI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RDI + 0xb8] MOVSXD RSI,ECX LEA RCX,[RBP + -0x30] LEA RDX,[RBP + -0x3a] CALL qword ptr [RAX + 0x30] MOVSXD R15,EAX ADD RBX,R14 MOV R13,RBX SUB R13,R15 CMP R13,R14 JC 0x001cc05b LEA R12,[RBP + -0x3a] LAB_001cc045: MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 CALL 0x0012a0a0 ADD R14,R15 CMP R14,R13 JBE 0x001cc045 LAB_001cc05b: SUB RBX,R14 JZ 0x001cc06d MOV RDI,R14 XOR ESI,ESI MOV RDX,RBX CALL 0x0012a290 LAB_001cc06d: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x001cc08b ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001cc08b: CALL 0x0012a240
void my_fill_mb2(long param_1,void *param_2,long param_3,int param_4) { int iVar1; void *pvVar2; void *__dest; size_t sVar3; long in_FS_OFFSET; int1 local_42 [10]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); iVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))(param_1,(long)param_4,local_42,&local_38); sVar3 = (size_t)iVar1; pvVar2 = (void *)((long)param_2 + (param_3 - sVar3)); __dest = param_2; if (param_2 <= pvVar2) { do { memcpy(__dest,local_42,sVar3); __dest = (void *)((long)__dest + sVar3); } while (__dest <= pvVar2); } sVar3 = (long)param_2 + (param_3 - (long)__dest); if (sVar3 != 0) { memset(__dest,0,sVar3); } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
36,808
bf_set_nan
bluesky950520[P]quickjs/libbf.c
void bf_set_nan(bf_t *r) { bf_resize(r, 0); /* cannot fail */ r->expn = BF_EXP_NAN; r->sign = 0; }
O3
c
bf_set_nan: pushq %rbx movq %rdi, %rbx cmpq $0x0, 0x18(%rdi) je 0x8b61b movq (%rbx), %rax movq 0x20(%rbx), %rsi movq (%rax), %rdi xorl %edx, %edx callq *0x8(%rax) movq %rax, 0x20(%rbx) movq $0x0, 0x18(%rbx) movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF movq %rax, 0x10(%rbx) movl $0x0, 0x8(%rbx) popq %rbx retq
bf_set_nan: push rbx mov rbx, rdi cmp qword ptr [rdi+18h], 0 jz short loc_8B61B mov rax, [rbx] mov rsi, [rbx+20h] mov rdi, [rax] xor edx, edx call qword ptr [rax+8] mov [rbx+20h], rax mov qword ptr [rbx+18h], 0 loc_8B61B: mov rax, 7FFFFFFFFFFFFFFFh mov [rbx+10h], rax mov dword ptr [rbx+8], 0 pop rbx retn
long long bf_set_nan(_QWORD *a1) { long long result; // rax if ( a1[3] ) { a1[4] = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*a1 + 8LL))(*(_QWORD *)*a1, a1[4], 0LL); a1[3] = 0LL; } result = 0x7FFFFFFFFFFFFFFFLL; a1[2] = 0x7FFFFFFFFFFFFFFFLL; *((_DWORD *)a1 + 2) = 0; return result; }
bf_set_nan: PUSH RBX MOV RBX,RDI CMP qword ptr [RDI + 0x18],0x0 JZ 0x0018b61b MOV RAX,qword ptr [RBX] MOV RSI,qword ptr [RBX + 0x20] MOV RDI,qword ptr [RAX] XOR EDX,EDX CALL qword ptr [RAX + 0x8] MOV qword ptr [RBX + 0x20],RAX MOV qword ptr [RBX + 0x18],0x0 LAB_0018b61b: MOV RAX,0x7fffffffffffffff MOV qword ptr [RBX + 0x10],RAX MOV dword ptr [RBX + 0x8],0x0 POP RBX RET
void bf_set_nan(long *param_1) { long lVar1; if (param_1[3] != 0) { lVar1 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0); param_1[4] = lVar1; param_1[3] = 0; } param_1[2] = 0x7fffffffffffffff; *(int4 *)(param_1 + 1) = 0; return; }
36,809
JS_NewAtomString
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewAtomString(JSContext *ctx, const char *str) { JSAtom atom = JS_NewAtom(ctx, str); if (atom == JS_ATOM_NULL) return JS_EXCEPTION; JSValue val = JS_AtomToString(ctx, atom); JS_FreeAtom(ctx, atom); return val; }
O0
c
JS_NewAtomString: subq $0x28, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x27200 movl %eax, 0x4(%rsp) cmpl $0x0, 0x4(%rsp) jne 0x2855b movl $0x0, 0x18(%rsp) movq $0x6, 0x20(%rsp) jmp 0x28581 movq 0x10(%rsp), %rdi movl 0x4(%rsp), %esi callq 0x27d40 movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq 0x10(%rsp), %rdi movl 0x4(%rsp), %esi callq 0x27d80 movq 0x18(%rsp), %rax movq 0x20(%rsp), %rdx addq $0x28, %rsp retq
JS_NewAtomString: sub rsp, 28h mov [rsp+28h+var_18], rdi mov [rsp+28h+var_20], rsi mov rdi, [rsp+28h+var_18] mov rsi, [rsp+28h+var_20] call JS_NewAtom mov [rsp+28h+var_24], eax cmp [rsp+28h+var_24], 0 jnz short loc_2855B mov dword ptr [rsp+28h+var_10], 0 mov [rsp+28h+var_8], 6 jmp short loc_28581 loc_2855B: mov rdi, [rsp+28h+var_18] mov esi, [rsp+28h+var_24] call JS_AtomToString mov [rsp+28h+var_10], rax mov [rsp+28h+var_8], rdx mov rdi, [rsp+28h+var_18] mov esi, [rsp+28h+var_24] call JS_FreeAtom loc_28581: mov rax, [rsp+28h+var_10] mov rdx, [rsp+28h+var_8] add rsp, 28h retn
long long JS_NewAtomString(long long a1, unsigned __int8 *a2) { unsigned int v3; // [rsp+4h] [rbp-24h] long long v4; // [rsp+18h] [rbp-10h] v3 = JS_NewAtom(a1, a2); if ( v3 ) { v4 = JS_AtomToString(a1, v3); JS_FreeAtom(a1, v3); } else { LODWORD(v4) = 0; } return v4; }
JS_NewAtomString: SUB RSP,0x28 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] CALL 0x00127200 MOV dword ptr [RSP + 0x4],EAX CMP dword ptr [RSP + 0x4],0x0 JNZ 0x0012855b MOV dword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],0x6 JMP 0x00128581 LAB_0012855b: MOV RDI,qword ptr [RSP + 0x10] MOV ESI,dword ptr [RSP + 0x4] CALL 0x00127d40 MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX MOV RDI,qword ptr [RSP + 0x10] MOV ESI,dword ptr [RSP + 0x4] CALL 0x00127d80 LAB_00128581: MOV RAX,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] ADD RSP,0x28 RET
int1 [16] JS_NewAtomString(int8 param_1,int8 param_2) { int iVar1; int1 auVar2 [16]; int4 local_10; int4 uStack_c; int8 local_8; iVar1 = JS_NewAtom(param_1,param_2); if (iVar1 == 0) { local_10 = 0; local_8 = 6; } else { auVar2 = JS_AtomToString(param_1,iVar1); local_8 = auVar2._8_8_; local_10 = auVar2._0_4_; uStack_c = auVar2._4_4_; JS_FreeAtom(param_1,iVar1); } auVar2._4_4_ = uStack_c; auVar2._0_4_ = local_10; auVar2._8_8_ = local_8; return auVar2; }
36,810
JS_NewAtomString
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewAtomString(JSContext *ctx, const char *str) { JSAtom atom = JS_NewAtom(ctx, str); if (atom == JS_ATOM_NULL) return JS_EXCEPTION; JSValue val = JS_AtomToString(ctx, atom); JS_FreeAtom(ctx, atom); return val; }
O1
c
JS_NewAtomString: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi callq 0xe240 movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x1f1ac testl %eax, %eax je 0x1ffc9 movl %eax, %ebp movq %rbx, %rdi movl %eax, %esi movl $0x1, %edx callq 0x1fb46 movq %rax, %r15 movq %rdx, %r14 movq %rbx, %rdi movl %ebp, %esi callq 0x1fbc4 jmp 0x1ffd2 movl $0x6, %r14d xorl %r15d, %r15d movq %r15, %rax movq %r14, %rdx addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
JS_NewAtomString: push rbp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rdi, rsi call _strlen mov rdi, rbx mov rsi, r14 mov rdx, rax call JS_NewAtomLen test eax, eax jz short loc_1FFC9 mov ebp, eax mov rdi, rbx mov esi, eax mov edx, 1 call __JS_AtomToValue mov r15, rax mov r14, rdx mov rdi, rbx mov esi, ebp call JS_FreeAtom jmp short loc_1FFD2 loc_1FFC9: mov r14d, 6 xor r15d, r15d loc_1FFD2: mov rax, r15 mov rdx, r14 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long JS_NewAtomString(long long a1, unsigned __int8 *a2) { long long v2; // rax int v3; // eax int v4; // ebp long long v5; // r15 v2 = strlen(a2); v3 = JS_NewAtomLen(a1, a2, v2); if ( !v3 ) return 0LL; v4 = v3; v5 = _JS_AtomToValue(a1, v3, 1); JS_FreeAtom(a1, v4); return v5; }
JS_NewAtomString: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RDI,RSI CALL 0x0010e240 MOV RDI,RBX MOV RSI,R14 MOV RDX,RAX CALL 0x0011f1ac TEST EAX,EAX JZ 0x0011ffc9 MOV EBP,EAX MOV RDI,RBX MOV ESI,EAX MOV EDX,0x1 CALL 0x0011fb46 MOV R15,RAX MOV R14,RDX MOV RDI,RBX MOV ESI,EBP CALL 0x0011fbc4 JMP 0x0011ffd2 LAB_0011ffc9: MOV R14D,0x6 XOR R15D,R15D LAB_0011ffd2: MOV RAX,R15 MOV RDX,R14 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int1 [16] JS_NewAtomString(int8 param_1,char *param_2) { int iVar1; size_t sVar2; int1 auVar3 [16]; sVar2 = strlen(param_2); iVar1 = JS_NewAtomLen(param_1,param_2,sVar2); if (iVar1 == 0) { auVar3 = ZEXT816(6) << 0x40; } else { auVar3 = __JS_AtomToValue(param_1,iVar1,1); JS_FreeAtom(param_1,iVar1); } return auVar3; }
36,811
JS_NewAtomString
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewAtomString(JSContext *ctx, const char *str) { JSAtom atom = JS_NewAtom(ctx, str); if (atom == JS_ATOM_NULL) return JS_EXCEPTION; JSValue val = JS_AtomToString(ctx, atom); JS_FreeAtom(ctx, atom); return val; }
O3
c
JS_NewAtomString: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi callq 0xe240 movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x1f8ef testl %eax, %eax je 0x206fd movl %eax, %ebp movq %rbx, %rdi movl %eax, %esi movl $0x1, %edx callq 0x20277 movq %rax, %r15 movq %rdx, %r14 movq %rbx, %rdi movl %ebp, %esi callq 0x202f5 jmp 0x20706 movl $0x6, %r14d xorl %r15d, %r15d movq %r15, %rax movq %r14, %rdx addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
JS_NewAtomString: push rbp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rdi, rsi call _strlen mov rdi, rbx mov rsi, r14 mov rdx, rax call JS_NewAtomLen test eax, eax jz short loc_206FD mov ebp, eax mov rdi, rbx mov esi, eax mov edx, 1 call __JS_AtomToValue mov r15, rax mov r14, rdx mov rdi, rbx mov esi, ebp call JS_FreeAtom jmp short loc_20706 loc_206FD: mov r14d, 6 xor r15d, r15d loc_20706: mov rax, r15 mov rdx, r14 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long JS_NewAtomString(long long a1, unsigned __int8 *a2) { long long v2; // rax int v3; // eax int v4; // ebp long long v5; // r15 v2 = strlen(a2); v3 = JS_NewAtomLen(a1, a2, v2); if ( !v3 ) return 0LL; v4 = v3; v5 = _JS_AtomToValue(a1, v3, 1); JS_FreeAtom(a1, v4); return v5; }
JS_NewAtomString: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RDI,RSI CALL 0x0010e240 MOV RDI,RBX MOV RSI,R14 MOV RDX,RAX CALL 0x0011f8ef TEST EAX,EAX JZ 0x001206fd MOV EBP,EAX MOV RDI,RBX MOV ESI,EAX MOV EDX,0x1 CALL 0x00120277 MOV R15,RAX MOV R14,RDX MOV RDI,RBX MOV ESI,EBP CALL 0x001202f5 JMP 0x00120706 LAB_001206fd: MOV R14D,0x6 XOR R15D,R15D LAB_00120706: MOV RAX,R15 MOV RDX,R14 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int1 [16] JS_NewAtomString(int8 param_1,char *param_2) { int iVar1; size_t sVar2; int1 auVar3 [16]; sVar2 = strlen(param_2); iVar1 = JS_NewAtomLen(param_1,param_2,sVar2); if (iVar1 == 0) { auVar3 = ZEXT816(6) << 0x40; } else { auVar3 = __JS_AtomToValue(param_1,iVar1,1); JS_FreeAtom(param_1,iVar1); } return auVar3; }
36,812
ggml_sqrt_impl
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
static struct ggml_tensor * ggml_sqrt_impl( struct ggml_context * ctx, struct ggml_tensor * a, bool inplace) { bool is_node = false; if (!inplace && (a->grad)) { is_node = true; } struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); result->op = GGML_OP_SQRT; result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL; result->src[0] = a; return result; }
O1
c
ggml_sqrt_impl: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 testl %edx, %edx je 0x91621 xorl %ebp, %ebp jmp 0x9162d cmpq $0x0, 0x98(%rbx) setne %bpl testb %dl, %dl je 0x9163e movq %r14, %rdi movq %rbx, %rsi callq 0x90b1a jmp 0x91657 movl (%rbx), %esi leaq 0x10(%rbx), %rcx movq %r14, %rdi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x8e8b7 movq %rax, %r15 movl $0x9, 0x50(%rax) testb %bpl, %bpl je 0x91682 movl (%r15), %esi leaq 0x10(%r15), %rcx movq %r14, %rdi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x8e8b7 jmp 0x91684 xorl %eax, %eax movq %rax, 0x98(%r15) movq %rbx, 0xa0(%r15) movq %r15, %rax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
ggml_sqrt_impl: push rbp push r15 push r14 push rbx push rax mov rbx, rsi mov r14, rdi test edx, edx jz short loc_91621 xor ebp, ebp jmp short loc_9162D loc_91621: cmp qword ptr [rbx+98h], 0 setnz bpl loc_9162D: test dl, dl jz short loc_9163E mov rdi, r14 mov rsi, rbx call ggml_view_tensor jmp short loc_91657 loc_9163E: mov esi, [rbx] lea rcx, [rbx+10h] mov rdi, r14 mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl loc_91657: mov r15, rax mov dword ptr [rax+50h], 9 test bpl, bpl jz short loc_91682 mov esi, [r15] lea rcx, [r15+10h] mov rdi, r14 mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl jmp short loc_91684 loc_91682: xor eax, eax loc_91684: mov [r15+98h], rax mov [r15+0A0h], rbx mov rax, r15 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long ggml_sqrt_impl( long long a1, long long a2, int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { bool v11; // bp long long v12; // rax long long v13; // r15 long long v14; // rax if ( a3 ) v11 = 0; else v11 = *(_QWORD *)(a2 + 152) != 0LL; if ( (_BYTE)a3 ) v12 = ggml_view_tensor(a1, a2, a4, a5, a6, a7, a8, a9, a10, a11); else v12 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4, (_QWORD *)(a2 + 16), 0LL, 0LL, a4, a5); v13 = v12; *(_DWORD *)(v12 + 80) = 9; if ( v11 ) v14 = ggml_new_tensor_impl(a1, *(_DWORD *)v12, 4, (_QWORD *)(v12 + 16), 0LL, 0LL, a4, a5); else v14 = 0LL; *(_QWORD *)(v13 + 152) = v14; *(_QWORD *)(v13 + 160) = a2; return v13; }
36,813
ggml_sqrt_impl
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
static struct ggml_tensor * ggml_sqrt_impl( struct ggml_context * ctx, struct ggml_tensor * a, bool inplace) { bool is_node = false; if (!inplace && (a->grad)) { is_node = true; } struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); result->op = GGML_OP_SQRT; result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL; result->src[0] = a; return result; }
O2
c
ggml_sqrt_impl: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r15 testl %edx, %edx je 0x6a47d movq %r15, %rdi movq %rbx, %rsi callq 0x69922 movq %rax, %r14 movl $0x9, 0x50(%rax) jmp 0x6a4ab movq 0x98(%rbx), %r12 movq %r15, %rdi movq %rbx, %rsi callq 0x68a65 movq %rax, %r14 movl $0x9, 0x50(%rax) testq %r12, %r12 je 0x6a4ab movq %r15, %rdi movq %r14, %rsi callq 0x68a65 jmp 0x6a4ad xorl %eax, %eax movq %rax, 0x98(%r14) movq %rbx, 0xa0(%r14) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
ggml_sqrt_impl: push r15 push r14 push r12 push rbx push rax mov rbx, rsi mov r15, rdi test edx, edx jz short loc_6A47D mov rdi, r15 mov rsi, rbx call ggml_view_tensor mov r14, rax mov dword ptr [rax+50h], 9 jmp short loc_6A4AB loc_6A47D: mov r12, [rbx+98h] mov rdi, r15 mov rsi, rbx call ggml_dup_tensor mov r14, rax mov dword ptr [rax+50h], 9 test r12, r12 jz short loc_6A4AB mov rdi, r15 mov rsi, r14 call ggml_dup_tensor jmp short loc_6A4AD loc_6A4AB: xor eax, eax loc_6A4AD: mov [r14+98h], rax mov [r14+0A0h], rbx mov rax, r14 add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long ggml_sqrt_impl( long long a1, long long a2, int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v11; // r14 long long v12; // r12 unsigned int *v13; // rax long long v14; // rax if ( a3 ) { v11 = ggml_view_tensor(a1, a2, a4, a5, a6, a7, a8, a9, a10, a11); *(_DWORD *)(v11 + 80) = 9; LABEL_5: v14 = 0LL; goto LABEL_6; } v12 = *(_QWORD *)(a2 + 152); v13 = (unsigned int *)ggml_dup_tensor(a1, (unsigned int *)a2); v11 = (long long)v13; v13[20] = 9; if ( !v12 ) goto LABEL_5; v14 = ggml_dup_tensor(a1, v13); LABEL_6: *(_QWORD *)(v11 + 152) = v14; *(_QWORD *)(v11 + 160) = a2; return v11; }
ggml_sqrt_impl: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R15,RDI TEST EDX,EDX JZ 0x0016a47d MOV RDI,R15 MOV RSI,RBX CALL 0x00169922 MOV R14,RAX MOV dword ptr [RAX + 0x50],0x9 JMP 0x0016a4ab LAB_0016a47d: MOV R12,qword ptr [RBX + 0x98] MOV RDI,R15 MOV RSI,RBX CALL 0x00168a65 MOV R14,RAX MOV dword ptr [RAX + 0x50],0x9 TEST R12,R12 JZ 0x0016a4ab MOV RDI,R15 MOV RSI,R14 CALL 0x00168a65 JMP 0x0016a4ad LAB_0016a4ab: XOR EAX,EAX LAB_0016a4ad: MOV qword ptr [R14 + 0x98],RAX MOV qword ptr [R14 + 0xa0],RBX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
long ggml_sqrt_impl(int8 param_1,long param_2,int param_3) { long lVar1; long lVar2; int8 uVar3; if (param_3 == 0) { lVar1 = *(long *)(param_2 + 0x98); lVar2 = ggml_dup_tensor(param_1,param_2); *(int4 *)(lVar2 + 0x50) = 9; if (lVar1 != 0) { uVar3 = ggml_dup_tensor(param_1,lVar2); goto LAB_0016a4ad; } } else { lVar2 = ggml_view_tensor(param_1,param_2); *(int4 *)(lVar2 + 0x50) = 9; } uVar3 = 0; LAB_0016a4ad: *(int8 *)(lVar2 + 0x98) = uVar3; *(long *)(lVar2 + 0xa0) = param_2; return lVar2; }
36,814
Options::Options()
serhmarch[P]ModbusBridge/src/mbridge.cpp
Options() { const ModbusTcpPort::Defaults &dTcp = ModbusTcpPort ::Defaults::instance(); const ModbusSerialPort::Defaults &dSer = ModbusSerialPort::Defaults::instance(); type = static_cast<Modbus::ProtocolType>(-1); tcp.host = dTcp.host ; tcp.port = dTcp.port ; tcp.timeout = dTcp.timeout ; //ser.portName = dSer.portName ; ser.baudRate = dSer.baudRate ; ser.dataBits = dSer.dataBits ; ser.parity = dSer.parity ; ser.stopBits = dSer.stopBits ; ser.flowControl = dSer.flowControl ; ser.timeoutFirstByte = dSer.timeoutFirstByte ; ser.timeoutInterByte = dSer.timeoutInterByte ; Modbus::List<Modbus::String> ports = Modbus::availableSerialPorts(); if (ports.size() > 0) sSerialPort = *ports.begin(); else sSerialPort = dSer.portName; ser.portName = sSerialPort.c_str(); }
O2
cpp
Options::Options(): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r14 leaq 0x40(%rdi), %rbx leaq 0x50(%rdi), %rax movq %rax, 0x40(%rdi) andq $0x0, 0x48(%rdi) movb $0x0, 0x50(%rdi) callq 0x9508 movq %rax, %r12 callq 0x8c1c movq %rax, %r15 orl $-0x1, (%r14) movq (%r12), %rax movq %rax, 0x30(%r14) movzwl 0x8(%r12), %eax movw %ax, 0x38(%r14) movzwl 0xc(%r12), %eax movw %ax, 0x3a(%r14) movl 0x8(%r15), %eax movl %eax, 0x10(%r14) movb 0xc(%r15), %al movb %al, 0x14(%r14) movups 0x10(%r15), %xmm0 movups %xmm0, 0x18(%r14) movl 0x20(%r15), %eax movl %eax, 0x28(%r14) movq %rsp, %rdi callq 0xe1d3 cmpq $0x0, 0x10(%rsp) je 0x6c03 movq (%rsp), %rsi addq $0x10, %rsi movq %rbx, %rdi callq 0x51e0 jmp 0x6c0e movq (%r15), %rsi movq %rbx, %rdi callq 0x55c0 movq 0x40(%r14), %rax movq %rax, 0x8(%r14) movq %rsp, %rdi callq 0x6de2 addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x6c2c movq %rax, %r14 movq %rsp, %rdi callq 0x6de2 jmp 0x6c40 jmp 0x6c3d jmp 0x6c3d movq %rax, %r14 movq %rbx, %rdi callq 0x5190 movq %r14, %rdi callq 0x5570
_ZN7OptionsC2Ev: push r15 push r14 push r12 push rbx sub rsp, 18h mov r14, rdi lea rbx, [rdi+40h] lea rax, [rdi+50h] mov [rdi+40h], rax and qword ptr [rdi+48h], 0 mov byte ptr [rdi+50h], 0 call _ZN13ModbusTcpPort8Defaults8instanceEv; ModbusTcpPort::Defaults::instance(void) mov r12, rax call _ZN16ModbusSerialPort8Defaults8instanceEv; ModbusSerialPort::Defaults::instance(void) mov r15, rax or dword ptr [r14], 0FFFFFFFFh mov rax, [r12] mov [r14+30h], rax movzx eax, word ptr [r12+8] mov [r14+38h], ax movzx eax, word ptr [r12+0Ch] mov [r14+3Ah], ax mov eax, [r15+8] mov [r14+10h], eax mov al, [r15+0Ch] mov [r14+14h], al movups xmm0, xmmword ptr [r15+10h] movups xmmword ptr [r14+18h], xmm0 mov eax, [r15+20h] mov [r14+28h], eax mov rdi, rsp call _ZN6Modbus20availableSerialPortsB5cxx11Ev; Modbus::availableSerialPorts(void) cmp [rsp+38h+var_28], 0 jz short loc_6C03 mov rsi, [rsp+38h+var_38] add rsi, 10h mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) jmp short loc_6C0E loc_6C03: mov rsi, [r15] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*) loc_6C0E: mov rax, [r14+40h] mov [r14+8], rax mov rdi, rsp call _ZNSt7__cxx1110_List_baseINS_12basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE8_M_clearEv; std::_List_base<std::string>::_M_clear(void) add rsp, 18h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_6C2C: mov r14, rax mov rdi, rsp call _ZNSt7__cxx1110_List_baseINS_12basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE8_M_clearEv; std::_List_base<std::string>::_M_clear(void) jmp short loc_6C40 jmp short loc_6C3D jmp short $+2 loc_6C3D: mov r14, rax loc_6C40: mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
Options: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RDI LEA RBX,[RDI + 0x40] LEA RAX,[RDI + 0x50] MOV qword ptr [RDI + 0x40],RAX AND qword ptr [RDI + 0x48],0x0 MOV byte ptr [RDI + 0x50],0x0 LAB_00106b8d: CALL 0x00109508 LAB_00106b92: MOV R12,RAX CALL 0x00108c1c MOV R15,RAX OR dword ptr [R14],0xffffffff MOV RAX,qword ptr [R12] MOV qword ptr [R14 + 0x30],RAX MOVZX EAX,word ptr [R12 + 0x8] MOV word ptr [R14 + 0x38],AX MOVZX EAX,word ptr [R12 + 0xc] MOV word ptr [R14 + 0x3a],AX MOV EAX,dword ptr [R15 + 0x8] MOV dword ptr [R14 + 0x10],EAX MOV AL,byte ptr [R15 + 0xc] MOV byte ptr [R14 + 0x14],AL MOVUPS XMM0,xmmword ptr [R15 + 0x10] MOVUPS xmmword ptr [R14 + 0x18],XMM0 MOV EAX,dword ptr [R15 + 0x20] MOV dword ptr [R14 + 0x28],EAX LAB_00106be1: MOV RDI,RSP CALL 0x0010e1d3 CMP qword ptr [RSP + 0x10],0x0 JZ 0x00106c03 MOV RSI,qword ptr [RSP] ADD RSI,0x10 LAB_00106bf9: MOV RDI,RBX CALL 0x001051e0 JMP 0x00106c0e LAB_00106c03: MOV RSI,qword ptr [R15] LAB_00106c06: MOV RDI,RBX CALL 0x001055c0 LAB_00106c0e: MOV RAX,qword ptr [R14 + 0x40] MOV qword ptr [R14 + 0x8],RAX MOV RDI,RSP CALL 0x00106de2 ADD RSP,0x18 POP RBX POP R12 POP R14 POP R15 RET
/* Options::Options() */ void __thiscall Options::Options(Options *this) { int8 uVar1; int8 *puVar2; long lVar3; Modbus local_38 [16]; long local_28; *(Options **)(this + 0x40) = this + 0x50; *(int8 *)(this + 0x48) = 0; this[0x50] = (Options)0x0; /* try { // try from 00106b8d to 00106b91 has its CatchHandler @ 00106c3d */ puVar2 = (int8 *)ModbusTcpPort::Defaults::instance(); /* try { // try from 00106b92 to 00106b99 has its CatchHandler @ 00106c3b */ lVar3 = ModbusSerialPort::Defaults::instance(); *(int4 *)this = 0xffffffff; *(int8 *)(this + 0x30) = *puVar2; *(int2 *)(this + 0x38) = *(int2 *)(puVar2 + 1); *(int2 *)(this + 0x3a) = *(int2 *)((long)puVar2 + 0xc); *(int4 *)(this + 0x10) = *(int4 *)(lVar3 + 8); this[0x14] = *(Options *)(lVar3 + 0xc); uVar1 = *(int8 *)(lVar3 + 0x18); *(int8 *)(this + 0x18) = *(int8 *)(lVar3 + 0x10); *(int8 *)(this + 0x20) = uVar1; *(int4 *)(this + 0x28) = *(int4 *)(lVar3 + 0x20); /* try { // try from 00106be1 to 00106be8 has its CatchHandler @ 00106c39 */ Modbus::availableSerialPorts_abi_cxx11_(local_38); if (local_28 == 0) { /* try { // try from 00106c06 to 00106c0d has its CatchHandler @ 00106c2a */ std::__cxx11::string::assign((char *)(this + 0x40)); } else { /* try { // try from 00106bf9 to 00106c00 has its CatchHandler @ 00106c2c */ std::__cxx11::string::_M_assign((string *)(this + 0x40)); } *(int8 *)(this + 8) = *(int8 *)(this + 0x40); std::__cxx11::_List_base<std::__cxx11::string,std::allocator<std::__cxx11::string>>::_M_clear ((_List_base<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_38); return; }
36,815
Options::Options()
serhmarch[P]ModbusBridge/src/mbridge.cpp
Options() { const ModbusTcpPort::Defaults &dTcp = ModbusTcpPort ::Defaults::instance(); const ModbusSerialPort::Defaults &dSer = ModbusSerialPort::Defaults::instance(); type = static_cast<Modbus::ProtocolType>(-1); tcp.host = dTcp.host ; tcp.port = dTcp.port ; tcp.timeout = dTcp.timeout ; //ser.portName = dSer.portName ; ser.baudRate = dSer.baudRate ; ser.dataBits = dSer.dataBits ; ser.parity = dSer.parity ; ser.stopBits = dSer.stopBits ; ser.flowControl = dSer.flowControl ; ser.timeoutFirstByte = dSer.timeoutFirstByte ; ser.timeoutInterByte = dSer.timeoutInterByte ; Modbus::List<Modbus::String> ports = Modbus::availableSerialPorts(); if (ports.size() > 0) sSerialPort = *ports.begin(); else sSerialPort = dSer.portName; ser.portName = sSerialPort.c_str(); }
O3
cpp
Options::Options(): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rdi, %r14 leaq 0x40(%rdi), %rbx leaq 0x50(%rdi), %r13 movq %r13, 0x40(%rdi) movq $0x0, 0x48(%rdi) movb $0x0, 0x50(%rdi) callq 0x9d74 movq %rax, %r12 callq 0x9340 movq %rax, %r15 movl $0xffffffff, (%r14) # imm = 0xFFFFFFFF movq (%r12), %rax movq %rax, 0x30(%r14) movzwl 0x8(%r12), %eax movw %ax, 0x38(%r14) movzwl 0xc(%r12), %eax movw %ax, 0x3a(%r14) movl 0x8(%r15), %eax movl %eax, 0x10(%r14) movb 0xc(%r15), %al movb %al, 0x14(%r14) movups 0x10(%r15), %xmm0 movups %xmm0, 0x18(%r14) movl 0x20(%r15), %eax movl %eax, 0x28(%r14) leaq 0x8(%rsp), %rdi callq 0xfd3c cmpq $0x0, 0x18(%rsp) je 0x792c movq 0x8(%rsp), %rsi addq $0x10, %rsi movq %rbx, %rdi callq 0x51c0 jmp 0x794e movq (%r15), %r15 movq 0x48(%r14), %r12 movq %r15, %rdi callq 0x5180 movq %rbx, %rdi xorl %esi, %esi movq %r12, %rdx movq %r15, %rcx movq %rax, %r8 callq 0x54b0 movq 0x40(%r14), %rax movq %rax, 0x8(%r14) leaq 0x8(%rsp), %rdi callq 0x79be addq $0x20, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq jmp 0x7970 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x79be jmp 0x7986 jmp 0x7983 jmp 0x7983 movq %rax, %r14 movq (%rbx), %rdi cmpq %r13, %rdi je 0x799a movq (%r13), %rsi incq %rsi callq 0x5310 movq %r14, %rdi callq 0x5550
_ZN7OptionsC2Ev: push r15; char push r14; int push r13; __int64 push r12; int push rbx; void * sub rsp, 20h mov r14, rdi lea rbx, [rdi+40h] lea r13, [rdi+50h] mov [rdi+40h], r13 mov qword ptr [rdi+48h], 0 mov byte ptr [rdi+50h], 0 call _ZN13ModbusTcpPort8Defaults8instanceEv; ModbusTcpPort::Defaults::instance(void) mov r12, rax call _ZN16ModbusSerialPort8Defaults8instanceEv; ModbusSerialPort::Defaults::instance(void) mov r15, rax mov dword ptr [r14], 0FFFFFFFFh mov rax, [r12] mov [r14+30h], rax movzx eax, word ptr [r12+8] mov [r14+38h], ax movzx eax, word ptr [r12+0Ch] mov [r14+3Ah], ax mov eax, [r15+8] mov [r14+10h], eax mov al, [r15+0Ch] mov [r14+14h], al movups xmm0, xmmword ptr [r15+10h] movups xmmword ptr [r14+18h], xmm0 mov eax, [r15+20h] mov [r14+28h], eax lea rdi, [rsp+48h+var_40]; int call _ZN6Modbus20availableSerialPortsB5cxx11Ev; Modbus::availableSerialPorts(void) cmp [rsp+48h+var_30], 0 jz short loc_792C mov rsi, qword ptr [rsp+48h+var_40] add rsi, 10h mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) jmp short loc_794E loc_792C: mov r15, [r15] mov r12, [r14+48h] mov rdi, r15 call _strlen mov rdi, rbx xor esi, esi mov rdx, r12 mov rcx, r15 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) loc_794E: mov rax, [r14+40h] mov [r14+8], rax lea rdi, [rsp+48h+var_40] call _ZNSt7__cxx1110_List_baseINS_12basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE8_M_clearEv; std::_List_base<std::string>::_M_clear(void) add rsp, 20h pop rbx pop r12 pop r13 pop r14 pop r15 retn jmp short $+2 loc_7970: mov r14, rax lea rdi, [rsp+arg_0] call _ZNSt7__cxx1110_List_baseINS_12basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE8_M_clearEv; std::_List_base<std::string>::_M_clear(void) jmp short loc_7986 jmp short loc_7983 jmp short $+2 loc_7983: mov r14, rax loc_7986: mov rdi, [rbx]; void * cmp rdi, r13 jz short loc_799A mov rsi, [r13+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_799A: mov rdi, r14 call __Unwind_Resume
void Options::Options(Options *this, int a2) { char *v2; // rbx long long v3; // r12 long long v4; // r15 int v5; // edx int v6; // ecx int v7; // r8d int v8; // r9d long long v9; // r15 long long v10; // r12 long long v11; // rax int v12; // [rsp+0h] [rbp-48h] int v13[2]; // [rsp+8h] [rbp-40h] BYREF int v14; // [rsp+10h] [rbp-38h] long long v15; // [rsp+18h] [rbp-30h] void *v16; // [rsp+20h] [rbp-28h] int v17; // [rsp+28h] [rbp-20h] long long v18; // [rsp+30h] [rbp-18h] int v19; // [rsp+38h] [rbp-10h] char v20; // [rsp+40h] [rbp-8h] v2 = (char *)this + 64; *((_QWORD *)this + 8) = (char *)this + 80; *((_QWORD *)this + 9) = 0LL; *((_BYTE *)this + 80) = 0; v3 = ModbusTcpPort::Defaults::instance(this); v4 = ModbusSerialPort::Defaults::instance(this); *(_DWORD *)this = -1; *((_QWORD *)this + 6) = *(_QWORD *)v3; *((_WORD *)this + 28) = *(_WORD *)(v3 + 8); *((_WORD *)this + 29) = *(_WORD *)(v3 + 12); *((_DWORD *)this + 4) = *(_DWORD *)(v4 + 8); *((_BYTE *)this + 20) = *(_BYTE *)(v4 + 12); *(_OWORD *)((char *)this + 24) = *(_OWORD *)(v4 + 16); *((_DWORD *)this + 10) = *(_DWORD *)(v4 + 32); Modbus::availableSerialPorts[abi:cxx11]( (int)v13, a2, v5, v6, v7, v8, v12, *(long long *)v13, v14, v15, v16, v17, v18, v19, v20); if ( v15 ) { std::string::_M_assign(v2, *(_QWORD *)v13 + 16LL); } else { v9 = *(_QWORD *)v4; v10 = *((_QWORD *)this + 9); v11 = strlen(v9); std::string::_M_replace(v2, 0LL, v10, v9, v11); } *((_QWORD *)this + 1) = *((_QWORD *)this + 8); std::_List_base<std::string>::_M_clear(v13); }
Options: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x20 MOV R14,RDI LEA RBX,[RDI + 0x40] LEA R13,[RDI + 0x50] MOV qword ptr [RDI + 0x40],R13 MOV qword ptr [RDI + 0x48],0x0 MOV byte ptr [RDI + 0x50],0x0 LAB_001078b0: CALL 0x00109d74 LAB_001078b5: MOV R12,RAX CALL 0x00109340 MOV R15,RAX MOV dword ptr [R14],0xffffffff MOV RAX,qword ptr [R12] MOV qword ptr [R14 + 0x30],RAX MOVZX EAX,word ptr [R12 + 0x8] MOV word ptr [R14 + 0x38],AX MOVZX EAX,word ptr [R12 + 0xc] MOV word ptr [R14 + 0x3a],AX MOV EAX,dword ptr [R15 + 0x8] MOV dword ptr [R14 + 0x10],EAX MOV AL,byte ptr [R15 + 0xc] MOV byte ptr [R14 + 0x14],AL MOVUPS XMM0,xmmword ptr [R15 + 0x10] MOVUPS xmmword ptr [R14 + 0x18],XMM0 MOV EAX,dword ptr [R15 + 0x20] MOV dword ptr [R14 + 0x28],EAX LAB_00107907: LEA RDI,[RSP + 0x8] CALL 0x0010fd3c CMP qword ptr [RSP + 0x18],0x0 JZ 0x0010792c MOV RSI,qword ptr [RSP + 0x8] ADD RSI,0x10 LAB_00107922: MOV RDI,RBX CALL 0x001051c0 JMP 0x0010794e LAB_0010792c: MOV R15,qword ptr [R15] MOV R12,qword ptr [R14 + 0x48] MOV RDI,R15 CALL 0x00105180 LAB_0010793b: MOV RDI,RBX XOR ESI,ESI MOV RDX,R12 MOV RCX,R15 MOV R8,RAX CALL 0x001054b0 LAB_0010794e: MOV RAX,qword ptr [R14 + 0x40] MOV qword ptr [R14 + 0x8],RAX LEA RDI,[RSP + 0x8] CALL 0x001079be ADD RSP,0x20 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* Options::Options() */ void __thiscall Options::Options(Options *this) { char *__s; char *pcVar1; int8 uVar2; int8 *puVar3; int8 *puVar4; Modbus local_40 [16]; long local_30; *(Options **)(this + 0x40) = this + 0x50; *(int8 *)(this + 0x48) = 0; this[0x50] = (Options)0x0; /* try { // try from 001078b0 to 001078b4 has its CatchHandler @ 00107983 */ puVar3 = (int8 *)ModbusTcpPort::Defaults::instance(); /* try { // try from 001078b5 to 001078bc has its CatchHandler @ 00107981 */ puVar4 = (int8 *)ModbusSerialPort::Defaults::instance(); *(int4 *)this = 0xffffffff; *(int8 *)(this + 0x30) = *puVar3; *(int2 *)(this + 0x38) = *(int2 *)(puVar3 + 1); *(int2 *)(this + 0x3a) = *(int2 *)((long)puVar3 + 0xc); *(int4 *)(this + 0x10) = *(int4 *)(puVar4 + 1); this[0x14] = *(Options *)((long)puVar4 + 0xc); uVar2 = puVar4[3]; *(int8 *)(this + 0x18) = puVar4[2]; *(int8 *)(this + 0x20) = uVar2; *(int4 *)(this + 0x28) = *(int4 *)(puVar4 + 4); /* try { // try from 00107907 to 00107910 has its CatchHandler @ 0010797f */ Modbus::availableSerialPorts_abi_cxx11_(local_40); if (local_30 == 0) { __s = (char *)*puVar4; pcVar1 = *(char **)(this + 0x48); strlen(__s); /* try { // try from 0010793b to 0010794d has its CatchHandler @ 0010796e */ std::__cxx11::string::_M_replace((ulong)(this + 0x40),0,pcVar1,(ulong)__s); } else { /* try { // try from 00107922 to 00107929 has its CatchHandler @ 00107970 */ std::__cxx11::string::_M_assign((string *)(this + 0x40)); } *(int8 *)(this + 8) = *(int8 *)(this + 0x40); std::__cxx11::_List_base<std::__cxx11::string,std::allocator<std::__cxx11::string>>::_M_clear ((_List_base<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_40); return; }
36,816
common_sampler_types_from_chars(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/sampling.cpp
std::vector<common_sampler_type> common_sampler_types_from_chars(const std::string & chars) { std::unordered_map<char, common_sampler_type> sampler_name_map = { { common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_DRY), COMMON_SAMPLER_TYPE_DRY }, { common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_TOP_K), COMMON_SAMPLER_TYPE_TOP_K }, { common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_TYPICAL_P), COMMON_SAMPLER_TYPE_TYPICAL_P }, { common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_TOP_P), COMMON_SAMPLER_TYPE_TOP_P }, { common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_MIN_P), COMMON_SAMPLER_TYPE_MIN_P }, { common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_TEMPERATURE), COMMON_SAMPLER_TYPE_TEMPERATURE }, { common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_XTC), COMMON_SAMPLER_TYPE_XTC }, { common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_INFILL), COMMON_SAMPLER_TYPE_INFILL }, { common_sampler_type_to_chr(COMMON_SAMPLER_TYPE_PENALTIES), COMMON_SAMPLER_TYPE_PENALTIES }, }; std::vector<common_sampler_type> samplers; samplers.reserve(chars.size()); for (const auto & c : chars) { const auto sampler = sampler_name_map.find(c); if (sampler != sampler_name_map.end()) { samplers.push_back(sampler->second); } } return samplers; }
O3
cpp
common_sampler_types_from_chars(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x98(%rsp), %rdx movb $0x64, -0x48(%rdx) movl $0x1, -0x44(%rdx) movb $0x6b, -0x40(%rdx) movl $0x2, -0x3c(%rdx) movb $0x79, -0x38(%rdx) movl $0x6, -0x34(%rdx) movb $0x70, -0x30(%rdx) movl $0x3, -0x2c(%rdx) movb $0x6d, -0x28(%rdx) movl $0x4, -0x24(%rdx) movb $0x74, -0x20(%rdx) movl $0x7, -0x1c(%rdx) movb $0x78, -0x18(%rdx) movl $0x8, -0x14(%rdx) movb $0x69, -0x10(%rdx) movl $0x9, -0xc(%rdx) movb $0x65, -0x8(%rdx) movl $0xa, -0x4(%rdx) leaq 0x15(%rsp), %rax movq %rax, (%rsp) leaq 0x18(%rsp), %rdi leaq 0x50(%rsp), %rsi leaq 0x17(%rsp), %r8 leaq 0x16(%rsp), %r9 xorl %ecx, %ecx callq 0xcf01c xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq $0x0, 0x10(%rbx) movq 0x8(%r14), %rsi movq %rbx, %rdi callq 0xce4e6 movq 0x8(%r14), %r12 testq %r12, %r12 je 0xce19d movq (%r14), %r14 leaq 0x18(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0xcf3ae testq %rax, %rax je 0xce195 addq $0xc, %rax movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0xce18a movl (%rax), %eax movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0xce195 movq %rbx, %rdi movq %rax, %rdx callq 0xceefc incq %r14 decq %r12 jne 0xce15e leaq 0x18(%rsp), %rdi callq 0xce852 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0xce1bb movq %rax, %r14 movq (%rbx), %rdi testq %rdi, %rdi je 0xce1d2 movq 0x10(%rbx), %rsi subq %rdi, %rsi callq 0x1a8b0 leaq 0x18(%rsp), %rdi callq 0xce852 movq %r14, %rdi callq 0x1af70
_Z31common_sampler_types_from_charsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push r12 push rbx sub rsp, 98h mov r14, rsi mov rbx, rdi lea rdx, [rsp+0B8h+var_20] mov byte ptr [rdx-48h], 64h ; 'd' mov dword ptr [rdx-44h], 1 mov byte ptr [rdx-40h], 6Bh ; 'k' mov dword ptr [rdx-3Ch], 2 mov byte ptr [rdx-38h], 79h ; 'y' mov dword ptr [rdx-34h], 6 mov byte ptr [rdx-30h], 70h ; 'p' mov dword ptr [rdx-2Ch], 3 mov byte ptr [rdx-28h], 6Dh ; 'm' mov dword ptr [rdx-24h], 4 mov byte ptr [rdx-20h], 74h ; 't' mov dword ptr [rdx-1Ch], 7 mov byte ptr [rdx-18h], 78h ; 'x' mov dword ptr [rdx-14h], 8 mov byte ptr [rdx-10h], 69h ; 'i' mov dword ptr [rdx-0Ch], 9 mov byte ptr [rdx-8], 65h ; 'e' mov dword ptr [rdx-4], 0Ah lea rax, [rsp+0B8h+var_A3] mov [rsp+0B8h+var_B8], rax lea rdi, [rsp+0B8h+var_A0] lea rsi, [rsp+0B8h+var_68] lea r8, [rsp+0B8h+var_A1] lea r9, [rsp+0B8h+var_A2] xor ecx, ecx call _ZNSt10_HashtableIcSt4pairIKc19common_sampler_typeESaIS3_ENSt8__detail10_Select1stESt8equal_toIcESt4hashIcENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEEC2IPKS3_EET_SK_mRKSA_RKS8_RKS4_St17integral_constantIbLb1EE; std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_Hashtable<std::pair<char const,common_sampler_type> const*>(std::pair<char const,common_sampler_type> const*,std::pair<char const,common_sampler_type> const*,ulong,std::hash<char> const&,std::equal_to<char> const&,std::allocator<std::pair<char const,common_sampler_type>> const&,std::integral_constant<bool,true>) xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 mov qword ptr [rbx+10h], 0 mov rsi, [r14+8] mov rdi, rbx call _ZNSt6vectorI19common_sampler_typeSaIS0_EE7reserveEm; std::vector<common_sampler_type>::reserve(ulong) mov r12, [r14+8] test r12, r12 jz short loc_CE19D mov r14, [r14] lea r15, [rsp+0B8h+var_A0] loc_CE15E: mov rdi, r15 mov rsi, r14 call _ZNSt10_HashtableIcSt4pairIKc19common_sampler_typeESaIS3_ENSt8__detail10_Select1stESt8equal_toIcESt4hashIcENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(char const&) test rax, rax jz short loc_CE195 add rax, 0Ch mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_CE18A mov eax, [rax] mov [rsi], eax add rsi, 4 mov [rbx+8], rsi jmp short loc_CE195 loc_CE18A: mov rdi, rbx mov rdx, rax call _ZNSt6vectorI19common_sampler_typeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_; std::vector<common_sampler_type>::_M_realloc_insert<common_sampler_type const&>(__gnu_cxx::__normal_iterator<common_sampler_type*,std::vector<common_sampler_type>>,common_sampler_type const&) loc_CE195: inc r14 dec r12 jnz short loc_CE15E loc_CE19D: lea rdi, [rsp+0B8h+var_A0] call _ZNSt10_HashtableIcSt4pairIKc19common_sampler_typeESaIS3_ENSt8__detail10_Select1stESt8equal_toIcESt4hashIcENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable() mov rax, rbx add rsp, 98h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_CE1BB: mov r14, rax mov rdi, [rbx]; void * test rdi, rdi jz short loc_CE1D2 mov rsi, [rbx+10h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CE1D2: lea rdi, [rsp+arg_10] call _ZNSt10_HashtableIcSt4pairIKc19common_sampler_typeESaIS3_ENSt8__detail10_Select1stESt8equal_toIcESt4hashIcENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,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, r14 call __Unwind_Resume
long long common_sampler_types_from_chars(long long a1, long long *a2) { long long v2; // r12 long long v3; // r14 long long v4; // rax _DWORD *v5; // rax _DWORD *v6; // rsi char v8; // [rsp+15h] [rbp-A3h] BYREF char v9; // [rsp+16h] [rbp-A2h] BYREF char v10; // [rsp+17h] [rbp-A1h] BYREF _BYTE v11[56]; // [rsp+18h] [rbp-A0h] BYREF char v12; // [rsp+50h] [rbp-68h] BYREF int v13; // [rsp+54h] [rbp-64h] char v14; // [rsp+58h] [rbp-60h] int v15; // [rsp+5Ch] [rbp-5Ch] char v16; // [rsp+60h] [rbp-58h] int v17; // [rsp+64h] [rbp-54h] char v18; // [rsp+68h] [rbp-50h] int v19; // [rsp+6Ch] [rbp-4Ch] char v20; // [rsp+70h] [rbp-48h] int v21; // [rsp+74h] [rbp-44h] char v22; // [rsp+78h] [rbp-40h] int v23; // [rsp+7Ch] [rbp-3Ch] char v24; // [rsp+80h] [rbp-38h] int v25; // [rsp+84h] [rbp-34h] char v26; // [rsp+88h] [rbp-30h] int v27; // [rsp+8Ch] [rbp-2Ch] char v28; // [rsp+90h] [rbp-28h] int v29; // [rsp+94h] [rbp-24h] char v30; // [rsp+98h] [rbp-20h] BYREF v12 = 100; v13 = 1; v14 = 107; v15 = 2; v16 = 121; v17 = 6; v18 = 112; v19 = 3; v20 = 109; v21 = 4; v22 = 116; v23 = 7; v24 = 120; v25 = 8; v26 = 105; v27 = 9; v28 = 101; v29 = 10; std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_Hashtable<std::pair<char const,common_sampler_type> const*>( (unsigned int)v11, (unsigned int)&v12, (unsigned int)&v30, 0, (unsigned int)&v10, (unsigned int)&v9, (long long)&v8); *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 16) = 0LL; std::vector<common_sampler_type>::reserve(a1, a2[1]); v2 = a2[1]; if ( v2 ) { v3 = *a2; do { v4 = std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find( v11, v3); if ( v4 ) { v5 = (_DWORD *)(v4 + 12); v6 = *(_DWORD **)(a1 + 8); if ( v6 == *(_DWORD **)(a1 + 16) ) { std::vector<common_sampler_type>::_M_realloc_insert<common_sampler_type const&>(a1, v6, v5); } else { *v6 = *v5; *(_QWORD *)(a1 + 8) = v6 + 1; } } ++v3; --v2; } while ( v2 ); } std::_Hashtable<char,std::pair<char const,common_sampler_type>,std::allocator<std::pair<char const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable(v11); return a1; }
common_sampler_types_from_chars: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R14,RSI MOV RBX,RDI LEA RDX,[RSP + 0x98] MOV byte ptr [RDX + -0x48],0x64 MOV dword ptr [RDX + -0x44],0x1 MOV byte ptr [RDX + -0x40],0x6b MOV dword ptr [RDX + -0x3c],0x2 MOV byte ptr [RDX + -0x38],0x79 MOV dword ptr [RDX + -0x34],0x6 MOV byte ptr [RDX + -0x30],0x70 MOV dword ptr [RDX + -0x2c],0x3 MOV byte ptr [RDX + -0x28],0x6d MOV dword ptr [RDX + -0x24],0x4 MOV byte ptr [RDX + -0x20],0x74 MOV dword ptr [RDX + -0x1c],0x7 MOV byte ptr [RDX + -0x18],0x78 MOV dword ptr [RDX + -0x14],0x8 MOV byte ptr [RDX + -0x10],0x69 MOV dword ptr [RDX + -0xc],0x9 MOV byte ptr [RDX + -0x8],0x65 MOV dword ptr [RDX + -0x4],0xa LEA RAX,[RSP + 0x15] MOV qword ptr [RSP],RAX LEA RDI,[RSP + 0x18] LEA RSI,[RSP + 0x50] LEA R8,[RSP + 0x17] LEA R9,[RSP + 0x16] XOR ECX,ECX CALL 0x001cf01c XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOV qword ptr [RBX + 0x10],0x0 MOV RSI,qword ptr [R14 + 0x8] LAB_001ce145: MOV RDI,RBX CALL 0x001ce4e6 MOV R12,qword ptr [R14 + 0x8] TEST R12,R12 JZ 0x001ce19d MOV R14,qword ptr [R14] LEA R15,[RSP + 0x18] LAB_001ce15e: MOV RDI,R15 MOV RSI,R14 CALL 0x001cf3ae TEST RAX,RAX JZ 0x001ce195 ADD RAX,0xc MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x001ce18a MOV EAX,dword ptr [RAX] MOV dword ptr [RSI],EAX ADD RSI,0x4 MOV qword ptr [RBX + 0x8],RSI JMP 0x001ce195 LAB_001ce18a: MOV RDI,RBX MOV RDX,RAX CALL 0x001ceefc LAB_001ce195: INC R14 DEC R12 JNZ 0x001ce15e LAB_001ce19d: LEA RDI,[RSP + 0x18] CALL 0x001ce852 MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R14 POP R15 RET
/* common_sampler_types_from_chars(std::__cxx11::string const&) */ string * common_sampler_types_from_chars(string *param_1) { int4 *puVar1; long lVar2; int8 *in_RSI; long lVar3; char *pcVar4; int1 local_a3; int1 local_a2; int1 local_a1; _Hashtable<char,std::pair<char_const,common_sampler_type>,std::allocator<std::pair<char_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> local_a0 [56]; int1 local_68 [4]; int4 local_64; int1 local_60; int4 local_5c; int1 local_58; int4 local_54; int1 local_50; int4 local_4c; int1 local_48; int4 local_44; int1 local_40; int4 local_3c; int1 local_38; int4 local_34; int1 local_30; int4 local_2c; int1 local_28; int4 local_24; local_68[0] = 100; local_64 = 1; local_60 = 0x6b; local_5c = 2; local_58 = 0x79; local_54 = 6; local_50 = 0x70; local_4c = 3; local_48 = 0x6d; local_44 = 4; local_40 = 0x74; local_3c = 7; local_38 = 0x78; local_34 = 8; local_30 = 0x69; local_2c = 9; local_28 = 0x65; local_24 = 10; std:: _Hashtable<char,std::pair<char_const,common_sampler_type>,std::allocator<std::pair<char_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::_Hashtable<std::pair<char_const,common_sampler_type>const*> (local_a0,local_68,&stack0xffffffffffffffe0,0,&local_a1,&local_a2,&local_a3); *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; /* try { // try from 001ce145 to 001ce14c has its CatchHandler @ 001ce1b9 */ std::vector<common_sampler_type,std::allocator<common_sampler_type>>::reserve ((vector<common_sampler_type,std::allocator<common_sampler_type>> *)param_1,in_RSI[1]); lVar3 = in_RSI[1]; if (lVar3 != 0) { pcVar4 = (char *)*in_RSI; do { /* try { // try from 001ce15e to 001ce194 has its CatchHandler @ 001ce1bb */ lVar2 = std:: _Hashtable<char,std::pair<char_const,common_sampler_type>,std::allocator<std::pair<char_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::find(local_a0,pcVar4); if (lVar2 != 0) { puVar1 = *(int4 **)(param_1 + 8); if (puVar1 == *(int4 **)(param_1 + 0x10)) { std::vector<common_sampler_type,std::allocator<common_sampler_type>>:: _M_realloc_insert<common_sampler_type_const&> ((vector<common_sampler_type,std::allocator<common_sampler_type>> *)param_1, puVar1,(int4 *)(lVar2 + 0xc)); } else { *puVar1 = *(int4 *)(lVar2 + 0xc); *(int4 **)(param_1 + 8) = puVar1 + 1; } } pcVar4 = pcVar4 + 1; lVar3 = lVar3 + -1; } while (lVar3 != 0); } std:: _Hashtable<char,std::pair<char_const,common_sampler_type>,std::allocator<std::pair<char_const,common_sampler_type>>,std::__detail::_Select1st,std::equal_to<char>,std::hash<char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::~_Hashtable(local_a0); return param_1; }
36,817
my_hash_sort_8bit_bin
eloqsql/strings/ctype-bin.c
void my_hash_sort_8bit_bin(CHARSET_INFO *cs __attribute__((unused)), const uchar *key, size_t len, ulong *nr1, ulong *nr2) { /* Remove trailing spaces. We have to do this to be able to compare 'A ' and 'A' as identical */ const uchar *end= skip_trailing_space(key, len); my_hash_sort_bin(cs, key, end - key, nr1, nr2); }
O3
c
my_hash_sort_8bit_bin: pushq %rbp movq %rsp, %rbp leaq (%rsi,%rdx), %r9 cmpq $0x15, %rdx jb 0xac574 movq %r9, %rdi andq $-0x4, %rdi cmpq %rsi, %rdi jbe 0xac574 leaq 0x3(%rsi), %rdx andq $-0x4, %rdx movq %r9, %rax movb -0x1(%r9), %r10b cmpq %rdi, %r9 jbe 0xac5d4 leaq -0x1(%rax), %r9 cmpb $0x20, %r10b je 0xac55c jmp 0xac577 movq %r9, %rax movq %rax, %rdi subq %rsi, %rdi movq %rax, %rdx movq %rdi, %r9 cmpq %rsi, %rax jbe 0xac596 leaq -0x1(%rdx), %rax leaq -0x1(%r9), %rdi cmpb $0x20, -0x1(%rdx) je 0xac57d movq (%rcx), %rax movq (%r8), %rdi testq %r9, %r9 jle 0xac5cc movl %eax, %r9d andl $0x3f, %r9d addq %rdi, %r9 movzbl (%rsi), %r10d imulq %r9, %r10 movq %rax, %r9 shlq $0x8, %r9 addq %r10, %r9 xorq %r9, %rax addq $0x3, %rdi incq %rsi cmpq %rdx, %rsi jb 0xac5a1 movq %rax, (%rcx) movq %rdi, (%r8) popq %rbp retq cmpb $0x20, %r10b setne %r9b cmpq %rdi, %rdx setae %dil orb %r9b, %dil jne 0xac577 movq %rax, %rdi movq %rdi, %rax cmpq %rdx, %rdi jbe 0xac577 leaq -0x4(%rax), %rdi cmpl $0x20202020, -0x4(%rax) # imm = 0x20202020 je 0xac5eb jmp 0xac577
my_hash_sort_8bit_bin: push rbp mov rbp, rsp lea r9, [rsi+rdx] cmp rdx, 15h jb short loc_AC574 mov rdi, r9 and rdi, 0FFFFFFFFFFFFFFFCh cmp rdi, rsi jbe short loc_AC574 lea rdx, [rsi+3] and rdx, 0FFFFFFFFFFFFFFFCh loc_AC55C: mov rax, r9 mov r10b, [r9-1] cmp r9, rdi jbe short loc_AC5D4 lea r9, [rax-1] cmp r10b, 20h ; ' ' jz short loc_AC55C jmp short loc_AC577 loc_AC574: mov rax, r9 loc_AC577: mov rdi, rax sub rdi, rsi loc_AC57D: mov rdx, rax mov r9, rdi cmp rax, rsi jbe short loc_AC596 lea rax, [rdx-1] lea rdi, [r9-1] cmp byte ptr [rdx-1], 20h ; ' ' jz short loc_AC57D loc_AC596: mov rax, [rcx] mov rdi, [r8] test r9, r9 jle short loc_AC5CC loc_AC5A1: mov r9d, eax and r9d, 3Fh add r9, rdi movzx r10d, byte ptr [rsi] imul r10, r9 mov r9, rax shl r9, 8 add r9, r10 xor rax, r9 add rdi, 3 inc rsi cmp rsi, rdx jb short loc_AC5A1 loc_AC5CC: mov [rcx], rax mov [r8], rdi pop rbp retn loc_AC5D4: cmp r10b, 20h ; ' ' setnz r9b cmp rdx, rdi setnb dil or dil, r9b jnz short loc_AC577 mov rdi, rax loc_AC5EB: mov rax, rdi cmp rdi, rdx jbe short loc_AC577 lea rdi, [rax-4] cmp dword ptr [rax-4], 20202020h jz short loc_AC5EB jmp loc_AC577
long long my_hash_sort_8bit_bin( long long a1, unsigned __int8 *a2, unsigned long long a3, long long *a4, long long *a5) { unsigned long long v5; // r9 unsigned long long v6; // rdi unsigned long long v7; // rdx unsigned __int8 *v8; // rax char v9; // r10 long long v10; // rdi unsigned long long v11; // rdx long long v12; // r9 long long result; // rax long long v14; // rdi unsigned long long v15; // rdi v5 = (unsigned long long)&a2[a3]; if ( a3 < 0x15 || (v6 = v5 & 0xFFFFFFFFFFFFFFFCLL, (v5 & 0xFFFFFFFFFFFFFFFCLL) <= (unsigned long long)a2) ) { v8 = &a2[a3]; } else { v7 = (unsigned long long)(a2 + 3) & 0xFFFFFFFFFFFFFFFCLL; while ( 1 ) { v8 = (unsigned __int8 *)v5; v9 = *(_BYTE *)(v5 - 1); if ( v5 <= v6 ) break; --v5; if ( v9 != 32 ) goto LABEL_8; } if ( v9 == 32 && v7 < v6 ) { v15 = v5; do { v8 = (unsigned __int8 *)v15; if ( v15 <= v7 ) break; v15 -= 4LL; } while ( *((_DWORD *)v8 - 1) == 538976288 ); } } LABEL_8: v10 = v8 - a2; do { v11 = (unsigned long long)v8; v12 = v10; if ( v8 <= a2 ) break; --v8; --v10; } while ( *(_BYTE *)(v11 - 1) == 32 ); result = *a4; v14 = *a5; if ( v12 > 0 ) { do { result ^= (v14 + (result & 0x3F)) * *a2 + (result << 8); v14 += 3LL; ++a2; } while ( (unsigned long long)a2 < v11 ); } *a4 = result; *a5 = v14; return result; }
my_hash_sort_8bit_bin: PUSH RBP MOV RBP,RSP LEA R9,[RSI + RDX*0x1] CMP RDX,0x15 JC 0x001ac574 MOV RDI,R9 AND RDI,-0x4 CMP RDI,RSI JBE 0x001ac574 LEA RDX,[RSI + 0x3] AND RDX,-0x4 LAB_001ac55c: MOV RAX,R9 MOV R10B,byte ptr [R9 + -0x1] CMP R9,RDI JBE 0x001ac5d4 LEA R9,[RAX + -0x1] CMP R10B,0x20 JZ 0x001ac55c JMP 0x001ac577 LAB_001ac574: MOV RAX,R9 LAB_001ac577: MOV RDI,RAX SUB RDI,RSI LAB_001ac57d: MOV RDX,RAX MOV R9,RDI CMP RAX,RSI JBE 0x001ac596 LEA RAX,[RDX + -0x1] LEA RDI,[R9 + -0x1] CMP byte ptr [RDX + -0x1],0x20 JZ 0x001ac57d LAB_001ac596: MOV RAX,qword ptr [RCX] MOV RDI,qword ptr [R8] TEST R9,R9 JLE 0x001ac5cc LAB_001ac5a1: MOV R9D,EAX AND R9D,0x3f ADD R9,RDI MOVZX R10D,byte ptr [RSI] IMUL R10,R9 MOV R9,RAX SHL R9,0x8 ADD R9,R10 XOR RAX,R9 ADD RDI,0x3 INC RSI CMP RSI,RDX JC 0x001ac5a1 LAB_001ac5cc: MOV qword ptr [RCX],RAX MOV qword ptr [R8],RDI POP RBP RET LAB_001ac5d4: CMP R10B,0x20 SETNZ R9B CMP RDX,RDI SETNC DIL OR DIL,R9B JNZ 0x001ac577 MOV RDI,RAX LAB_001ac5eb: MOV RAX,RDI CMP RDI,RDX JBE 0x001ac577 LEA RDI,[RAX + -0x4] CMP dword ptr [RAX + -0x4],0x20202020 JZ 0x001ac5eb JMP 0x001ac577
void my_hash_sort_8bit_bin (int8 param_1,byte *param_2,ulong param_3,ulong *param_4,long *param_5) { byte *pbVar1; byte *pbVar2; ulong uVar3; byte *pbVar4; long lVar5; long lVar6; pbVar2 = param_2 + param_3; if ((0x14 < param_3) && (pbVar4 = (byte *)((ulong)pbVar2 & 0xfffffffffffffffc), param_2 < pbVar4)) { pbVar1 = pbVar2; do { pbVar2 = pbVar1; if (pbVar2 <= pbVar4) { pbVar1 = pbVar2; if ((byte *)((ulong)(param_2 + 3) & 0xfffffffffffffffc) < pbVar4 && pbVar2[-1] == 0x20) goto LAB_001ac5eb; break; } pbVar1 = pbVar2 + -1; } while (pbVar2[-1] == 0x20); } goto LAB_001ac577; while (pbVar1 = pbVar2 + -4, *(int *)(pbVar2 + -4) == 0x20202020) { LAB_001ac5eb: pbVar2 = pbVar1; if (pbVar2 <= (byte *)((ulong)(param_2 + 3) & 0xfffffffffffffffc)) break; } LAB_001ac577: lVar6 = (long)pbVar2 - (long)param_2; do { lVar5 = lVar6; pbVar4 = pbVar2; if (pbVar4 <= param_2) break; pbVar2 = pbVar4 + -1; lVar6 = lVar5 + -1; } while (pbVar4[-1] == 0x20); uVar3 = *param_4; lVar6 = *param_5; if (0 < lVar5) { do { uVar3 = uVar3 ^ uVar3 * 0x100 + (ulong)*param_2 * ((ulong)((uint)uVar3 & 0x3f) + lVar6); lVar6 = lVar6 + 3; param_2 = param_2 + 1; } while (param_2 < pbVar4); } *param_4 = uVar3; *param_5 = lVar6; return; }
36,818
server_task_result_rerank::to_json[abi:cxx11]()
llama.cpp/examples/server/server.cpp
virtual json to_json() override { return json { {"index", index}, {"score", score}, {"tokens_evaluated", n_tokens}, }; }
O3
cpp
server_task_result_rerank::to_json[abi:cxx11](): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xd8, %rsp movq %rsi, %r15 movq %rdi, %r14 leaq 0xe3eb8(%rip), %rsi # 0x188068 leaq 0xa8(%rsp), %r12 movq %r12, %rdi callq 0x62a48 leaq 0xc0(%rsp), %rbx xorl %r13d, %r13d movq %r13, 0x8(%rbx) xorps %xmm0, %xmm0 movups %xmm0, -0x8(%rbx) movslq 0x10(%r15), %rsi movq %rbx, %rdi callq 0x62942 movq %rbx, %rdi movl $0x1, %esi callq 0x4adea movq %r13, 0x10(%rbx) leaq 0x60(%rsp), %rbx movl $0x2, %edx movq %rbx, %rdi movq %r12, %rsi movl $0x1, %ecx movl $0x2, %r8d callq 0x62692 leaq 0x78(%rsp), %rbx movq $0x0, -0x8(%rbx) leaq 0xd324d(%rip), %rsi # 0x177474 leaq 0x30(%rsp), %rdi callq 0x62a48 leaq 0x48(%rsp), %r12 xorps %xmm0, %xmm0 movups %xmm0, -0x8(%r12) xorl %r13d, %r13d movq %r13, 0x8(%r12) xorps %xmm0, %xmm0 cvtss2sd 0x14(%r15), %xmm0 movq %r12, %rdi callq 0x63e72 movq %r12, %rdi movl $0x1, %esi callq 0x4adea movq %r13, 0x10(%r12) leaq 0x30(%rsp), %rsi movl $0x2, %edx movq %rbx, %rdi movl $0x1, %ecx movl $0x2, %r8d callq 0x62692 leaq 0x90(%rsp), %rbx movq $0x0, -0x8(%rbx) leaq 0xd3041(%rip), %rsi # 0x1772df movq %rsp, %rdi callq 0x64670 leaq 0x18(%rsp), %r12 xorps %xmm0, %xmm0 movups %xmm0, -0x8(%r12) xorl %r13d, %r13d movq %r13, 0x8(%r12) movslq 0x18(%r15), %rsi movq %r12, %rdi callq 0x62942 movq %r12, %rdi movl $0x1, %esi callq 0x4adea movq %r13, 0x10(%r12) movq %rsp, %rsi movl $0x2, %edx movq %rbx, %rdi movl $0x1, %ecx movl $0x2, %r8d callq 0x62692 leaq 0x60(%rsp), %rsi movq $0x0, 0x40(%rsi) movl $0x3, %edx movq %r14, %rdi movl $0x1, %ecx movl $0x2, %r8d callq 0x62692 movl $0x30, %r15d leaq (%rsp,%r15), %rbx addq $0x60, %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x4adea movq %rbx, %rdi callq 0x4b6f6 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0xa4320 movl $0x18, %r15d leaq (%rsp,%r15), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x4adea movq %rbx, %rdi callq 0x4b6f6 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0xa434a movl $0x18, %r15d leaq (%rsp,%r15), %rbx addq $0x30, %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x4adea movq %rbx, %rdi callq 0x4b6f6 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0xa4370 movl $0x18, %r15d leaq (%rsp,%r15), %rbx addq $0xa8, %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x4adea movq %rbx, %rdi callq 0x4b6f6 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0xa439a movq %r14, %rax addq $0xd8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movl $0x30, %r12d xorl %ebp, %ebp leaq (%rsp,%r12), %r15 addq $0x60, %r15 movq %r15, %rdi xorl %esi, %esi callq 0x4adea movq %r15, %rdi callq 0x4b6f6 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0xa43e1 jmp 0xa440d movq %rax, %r14 movb $0x1, %bpl movl $0x18, %r12d leaq (%rsp,%r12), %r15 movq %r15, %rdi xorl %esi, %esi callq 0x4adea movq %r15, %rdi callq 0x4b6f6 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0xa4413 jmp 0xa443d jmp 0xa4437 movq %rax, %r14 movb $0x1, %bpl movl $0x18, %r12d leaq (%rsp,%r12), %r15 addq $0x30, %r15 movq %r15, %rdi xorl %esi, %esi callq 0x4adea movq %r15, %rdi callq 0x4b6f6 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0xa4443 jmp 0xa4471 jmp 0xa446b movq %rax, %r14 movb $0x1, %bpl movl $0x18, %r12d leaq (%rsp,%r12), %r15 addq $0xa8, %r15 movq %r15, %rdi xorl %esi, %esi callq 0x4adea movq %r15, %rdi callq 0x4b6f6 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0xa4477 leaq 0x60(%rsp), %r15 cmpq %rbx, %r15 setne %al andb %al, %bpl cmpb $0x1, %bpl jne 0xa44cd addq $-0x18, %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x4adea movq %rbx, %rdi callq 0x4b6f6 cmpq %r15, %rbx jne 0xa44b2 movq %r14, %rdi callq 0x25ca0 nop
_ZN25server_task_result_rerank7to_jsonB5cxx11Ev: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0D8h mov r15, rsi mov r14, rdi lea rsi, aRevindex+3; "index" lea r12, [rsp+108h+var_60] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA6_KcA6_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ lea rbx, [rsp+108h+var_48] xor r13d, r13d mov [rbx+8], r13 xorps xmm0, xmm0 movups xmmword ptr [rbx-8], xmm0 movsxd rsi, dword ptr [r15+10h] mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov [rbx+10h], r13 lea rbx, [rsp+108h+var_A8] mov edx, 2 mov rdi, rbx mov rsi, r12 mov ecx, 1 mov r8d, 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) lea rbx, [rsp+108h+var_90] mov qword ptr [rbx-8], 0 lea rsi, aRelevanceScore+0Ah; "score" lea rdi, [rsp+108h+var_D8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA6_KcA6_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ lea r12, [rsp+108h+var_C0] xorps xmm0, xmm0 movups xmmword ptr [r12-8], xmm0 xor r13d, r13d mov [r12+8], r13 xorps xmm0, xmm0 cvtss2sd xmm0, dword ptr [r15+14h] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) mov rdi, r12 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov [r12+10h], r13 lea rsi, [rsp+108h+var_D8] mov edx, 2 mov rdi, rbx mov ecx, 1 mov r8d, 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) lea rbx, [rsp+108h+var_78] mov qword ptr [rbx-8], 0 lea rsi, xmmword_1772DF mov rdi, rsp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA17_KcA17_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ lea r12, [rsp+108h+var_F0] xorps xmm0, xmm0 movups xmmword ptr [r12-8], xmm0 xor r13d, r13d mov [r12+8], r13 movsxd rsi, dword ptr [r15+18h] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) mov rdi, r12 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov [r12+10h], r13 mov rsi, rsp mov edx, 2 mov rdi, rbx mov ecx, 1 mov r8d, 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) lea rsi, [rsp+108h+var_A8] mov qword ptr [rsi+40h], 0 mov edx, 3 mov rdi, r14 mov ecx, 1 mov r8d, 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) mov r15d, 30h ; '0' loc_A4320: lea rbx, [rsp+r15+108h+var_108] add rbx, 60h ; '`' mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_A4320 mov r15d, 18h loc_A434A: lea rbx, [rsp+r15+108h+var_108] mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_A434A mov r15d, 18h loc_A4370: lea rbx, [rsp+r15+108h+var_108] add rbx, 30h ; '0' mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_A4370 mov r15d, 18h loc_A439A: lea rbx, [rsp+r15+108h+var_108] add rbx, 0A8h mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r15, 0FFFFFFFFFFFFFFE8h cmp r15, 0FFFFFFFFFFFFFFE8h jnz short loc_A439A mov rax, r14 add rsp, 0D8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov r12d, 30h ; '0' xor ebp, ebp loc_A43E1: lea r15, [rsp+r12+0] add r15, 60h ; '`' mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_A43E1 jmp short loc_A440D mov r14, rax mov bpl, 1 loc_A440D: mov r12d, 18h loc_A4413: lea r15, [rsp+r12+0] mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_A4413 jmp short loc_A443D jmp short $+2 loc_A4437: mov r14, rax mov bpl, 1 loc_A443D: mov r12d, 18h loc_A4443: lea r15, [rsp+r12+0] add r15, 30h ; '0' mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_A4443 jmp short loc_A4471 jmp short $+2 loc_A446B: mov r14, rax mov bpl, 1 loc_A4471: mov r12d, 18h loc_A4477: lea r15, [rsp+r12+0] add r15, 0A8h mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_A4477 lea r15, [rsp+arg_58] cmp r15, rbx setnz al and bpl, al cmp bpl, 1 jnz short loc_A44CD loc_A44B2: add rbx, 0FFFFFFFFFFFFFFE8h mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() cmp rbx, r15 jnz short loc_A44B2 loc_A44CD: mov rdi, r14 call __Unwind_Resume
long long server_task_result_rerank::to_json[abi:cxx11](long long a1, long long a2) { long long i; // r15 long long j; // r15 long long k; // r15 long long m; // r15 char v7[16]; // [rsp+0h] [rbp-108h] BYREF __int128 v8; // [rsp+10h] [rbp-F8h] BYREF long long v9; // [rsp+20h] [rbp-E8h] long long v10; // [rsp+28h] [rbp-E0h] char v11[16]; // [rsp+30h] [rbp-D8h] BYREF __int128 v12; // [rsp+40h] [rbp-C8h] BYREF long long v13; // [rsp+50h] [rbp-B8h] long long v14; // [rsp+58h] [rbp-B0h] char v15[16]; // [rsp+60h] [rbp-A8h] BYREF long long v16; // [rsp+70h] [rbp-98h] _BYTE v17[16]; // [rsp+78h] [rbp-90h] BYREF long long v18; // [rsp+88h] [rbp-80h] _BYTE v19[16]; // [rsp+90h] [rbp-78h] BYREF long long v20; // [rsp+A0h] [rbp-68h] char v21[16]; // [rsp+A8h] [rbp-60h] BYREF __int128 v22; // [rsp+B8h] [rbp-50h] BYREF long long v23; // [rsp+C8h] [rbp-40h] long long v24; // [rsp+D0h] [rbp-38h] ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA6_KcA6_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(v21); v23 = 0LL; v22 = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)&v22 + 8, *(int *)(a2 + 16)); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v22 + 8); v24 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v15, v21, 2LL, 1LL, 2LL); v16 = 0LL; ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA6_KcA6_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(v11); v12 = 0LL; v13 = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)&v12 + 8, *(float *)(a2 + 20)); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v12 + 8); v14 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v17, v11, 2LL, 1LL, 2LL); v18 = 0LL; ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA17_KcA17_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(v7); v8 = 0LL; v9 = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)&v8 + 8, *(int *)(a2 + 24)); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v8 + 8); v10 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v19, v7, 2LL, 1LL, 2LL); v20 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( a1, v15, 3LL, 1LL, 2LL); for ( i = 48LL; i != -24; i -= 24LL ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(&v15[i]); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v15[i]); } for ( j = 24LL; j != -24; j -= 24LL ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(&v7[j]); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v7[j]); } for ( k = 24LL; k != -24; k -= 24LL ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(&v11[k]); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v11[k]); } for ( m = 24LL; m != -24; m -= 24LL ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(&v21[m]); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v21[m]); } return a1; }
to_json[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xd8 MOV R15,RSI MOV R14,RDI LEA RSI,[0x288068] LEA R12,[RSP + 0xa8] MOV RDI,R12 CALL 0x00162a48 LEA RBX,[RSP + 0xc0] XOR R13D,R13D MOV qword ptr [RBX + 0x8],R13 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + -0x8],XMM0 MOVSXD RSI,dword ptr [R15 + 0x10] MOV RDI,RBX CALL 0x00162942 MOV RDI,RBX MOV ESI,0x1 CALL 0x0014adea MOV qword ptr [RBX + 0x10],R13 LAB_001a41f3: LEA RBX,[RSP + 0x60] MOV EDX,0x2 MOV RDI,RBX MOV RSI,R12 MOV ECX,0x1 MOV R8D,0x2 CALL 0x00162692 LEA RBX,[RSP + 0x78] MOV qword ptr [RBX + -0x8],0x0 LAB_001a4220: LEA RSI,[0x277474] LEA RDI,[RSP + 0x30] CALL 0x00162a48 LEA R12,[RSP + 0x48] XORPS XMM0,XMM0 MOVUPS xmmword ptr [R12 + -0x8],XMM0 XOR R13D,R13D MOV qword ptr [R12 + 0x8],R13 XORPS XMM0,XMM0 CVTSS2SD XMM0,dword ptr [R15 + 0x14] MOV RDI,R12 CALL 0x00163e72 MOV RDI,R12 MOV ESI,0x1 CALL 0x0014adea MOV qword ptr [R12 + 0x10],R13 LAB_001a426a: LEA RSI,[RSP + 0x30] MOV EDX,0x2 MOV RDI,RBX MOV ECX,0x1 MOV R8D,0x2 CALL 0x00162692 LEA RBX,[RSP + 0x90] MOV qword ptr [RBX + -0x8],0x0 LAB_001a4297: LEA RSI,[0x2772df] MOV RDI,RSP CALL 0x00164670 LEA R12,[RSP + 0x18] XORPS XMM0,XMM0 MOVUPS xmmword ptr [R12 + -0x8],XMM0 XOR R13D,R13D MOV qword ptr [R12 + 0x8],R13 MOVSXD RSI,dword ptr [R15 + 0x18] MOV RDI,R12 CALL 0x00162942 MOV RDI,R12 MOV ESI,0x1 CALL 0x0014adea MOV qword ptr [R12 + 0x10],R13 LAB_001a42da: MOV RSI,RSP MOV EDX,0x2 MOV RDI,RBX MOV ECX,0x1 MOV R8D,0x2 CALL 0x00162692 LEA RSI,[RSP + 0x60] MOV qword ptr [RSI + 0x40],0x0 LAB_001a4302: MOV EDX,0x3 MOV RDI,R14 MOV ECX,0x1 MOV R8D,0x2 CALL 0x00162692 LAB_001a431a: MOV R15D,0x30 LAB_001a4320: LEA RBX,[RSP + R15*0x1] ADD RBX,0x60 MOV RDI,RBX XOR ESI,ESI CALL 0x0014adea MOV RDI,RBX CALL 0x0014b6f6 ADD R15,-0x18 CMP R15,-0x18 JNZ 0x001a4320 MOV R15D,0x18 LAB_001a434a: LEA RBX,[RSP + R15*0x1] MOV RDI,RBX XOR ESI,ESI CALL 0x0014adea MOV RDI,RBX CALL 0x0014b6f6 ADD R15,-0x18 CMP R15,-0x18 JNZ 0x001a434a MOV R15D,0x18 LAB_001a4370: LEA RBX,[RSP + R15*0x1] ADD RBX,0x30 MOV RDI,RBX XOR ESI,ESI CALL 0x0014adea MOV RDI,RBX CALL 0x0014b6f6 ADD R15,-0x18 CMP R15,-0x18 JNZ 0x001a4370 MOV R15D,0x18 LAB_001a439a: LEA RBX,[RSP + R15*0x1] ADD RBX,0xa8 MOV RDI,RBX XOR ESI,ESI CALL 0x0014adea MOV RDI,RBX CALL 0x0014b6f6 ADD R15,-0x18 CMP R15,-0x18 JNZ 0x001a439a MOV RAX,R14 ADD RSP,0xd8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* server_task_result_rerank::to_json[abi:cxx11]() */ void server_task_result_rerank::to_json_abi_cxx11_(void) { long in_RSI; long lVar1; data adStack_108 [16]; int8 local_f8; int8 uStack_f0; int8 local_e8; int8 local_e0; data local_d8 [16]; int8 local_c8; int8 uStack_c0; int8 local_b8; int8 local_b0; data local_a8 [16]; int8 local_98; int1 local_90 [16]; int8 local_80; int1 local_78 [16]; int8 local_68; data local_60 [16]; int8 local_50; int8 uStack_48; int8 local_40; int8 local_38; _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA6_KcA6_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ (local_60,"index"); local_40 = 0; local_50 = 0; uStack_48 = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (&uStack_48,(long)*(int *)(in_RSI + 0x10)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(&uStack_48,0)); local_38 = 0; /* try { // try from 001a41f3 to 001a4212 has its CatchHandler @ 001a446b */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_a8,local_60,2,1,2); local_98 = 0; /* try { // try from 001a4220 to 001a4230 has its CatchHandler @ 001a4469 */ _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA6_KcA6_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ (local_d8,"score"); local_c8 = 0; uStack_c0 = 0; local_b8 = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (SUB84((double)*(float *)(in_RSI + 0x14),0),&uStack_c0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(&uStack_c0,0)); local_b0 = 0; /* try { // try from 001a426a to 001a4286 has its CatchHandler @ 001a4437 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_90,local_d8,2,1,2); local_80 = 0; /* try { // try from 001a4297 to 001a42a5 has its CatchHandler @ 001a4435 */ _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA17_KcA17_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ (adStack_108,"tokens_evaluated"); local_f8 = 0; uStack_f0 = 0; local_e8 = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (&uStack_f0,(long)*(int *)(in_RSI + 0x18)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(&uStack_f0,0)); local_e0 = 0; /* try { // try from 001a42da to 001a42f4 has its CatchHandler @ 001a4407 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_78,adStack_108,2,1,2); local_68 = 0; /* try { // try from 001a4302 to 001a4319 has its CatchHandler @ 001a43d6 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(); lVar1 = 0x30; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_a8 + lVar1,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_a8 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); lVar1 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(adStack_108 + lVar1,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(adStack_108 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); lVar1 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_d8 + lVar1,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_d8 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); lVar1 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_60 + lVar1,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_60 + lVar1); lVar1 = lVar1 + -0x18; } while (lVar1 != -0x18); return; }
36,819
my_hash_init2
eloqsql/mysys/hash.c
my_bool my_hash_init2(PSI_memory_key psi_key, HASH *hash, uint growth_size, CHARSET_INFO *charset, ulong size, size_t key_offset, size_t key_length, my_hash_get_key get_key, my_hash_function hash_function, void (*free_element)(void*), uint flags) { my_bool res; DBUG_ENTER("my_hash_init2"); DBUG_PRINT("enter",("hash:%p size: %u", hash, (uint) size)); hash->records=0; hash->key_offset=key_offset; hash->key_length=key_length; hash->blength=1; hash->get_key=get_key; hash->hash_function= hash_function ? hash_function : my_hash_sort; hash->free=free_element; hash->flags=flags; hash->charset=charset; res= init_dynamic_array2(psi_key, &hash->array, sizeof(HASH_LINK), NULL, size, growth_size, MYF((flags & HASH_THREAD_SPECIFIC ? MY_THREAD_SPECIFIC : 0))); DBUG_RETURN(res); }
O0
c
my_hash_init2: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movl 0x30(%rbp), %eax movq 0x28(%rbp), %rax movq 0x20(%rbp), %rax movq 0x18(%rbp), %rax movq 0x10(%rbp), %rax movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) jmp 0xdfd33 movq -0x10(%rbp), %rax movq $0x0, 0x18(%rax) movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movq 0x10(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rax movq $0x1, 0x10(%rax) movq 0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x50(%rax) cmpq $0x0, 0x20(%rbp) je 0xdfd7f movq 0x20(%rbp), %rax movq %rax, -0x40(%rbp) jmp 0xdfd8c leaq -0x126(%rip), %rax # 0xdfc60 movq %rax, -0x40(%rbp) jmp 0xdfd8c movq -0x40(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x58(%rax) movq 0x28(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x60(%rax) movl 0x30(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x20(%rax) movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x68(%rax) movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi addq $0x28, %rsi movq -0x28(%rbp), %rax movl %eax, %r8d movl -0x14(%rbp), %r9d movl 0x30(%rbp), %edx andl $0x2, %edx xorl %eax, %eax movl $0x10000, %ecx # imm = 0x10000 cmpl $0x0, %edx cmovnel %ecx, %eax movl %eax, %eax movl $0x10, %edx xorl %ecx, %ecx movq %rax, (%rsp) callq 0xda1d0 movb %al, -0x31(%rbp) movb -0x31(%rbp), %al movb %al, -0x41(%rbp) movb -0x41(%rbp), %al addq $0x50, %rsp popq %rbp retq nopw (%rax,%rax)
my_hash_init2: push rbp mov rbp, rsp sub rsp, 50h mov eax, [rbp+arg_20] mov rax, [rbp+arg_18] mov rax, [rbp+arg_10] mov rax, [rbp+arg_8] mov rax, [rbp+arg_0] mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 jmp short $+2 loc_DFD33: mov rax, [rbp+var_10] mov qword ptr [rax+18h], 0 mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax], rcx mov rcx, [rbp+arg_0] mov rax, [rbp+var_10] mov [rax+8], rcx mov rax, [rbp+var_10] mov qword ptr [rax+10h], 1 mov rcx, [rbp+arg_8] mov rax, [rbp+var_10] mov [rax+50h], rcx cmp [rbp+arg_10], 0 jz short loc_DFD7F mov rax, [rbp+arg_10] mov [rbp+var_40], rax jmp short loc_DFD8C loc_DFD7F: lea rax, my_hash_sort mov [rbp+var_40], rax jmp short $+2 loc_DFD8C: mov rcx, [rbp+var_40] mov rax, [rbp+var_10] mov [rax+58h], rcx mov rcx, [rbp+arg_18] mov rax, [rbp+var_10] mov [rax+60h], rcx mov ecx, [rbp+arg_20] mov rax, [rbp+var_10] mov [rax+20h], ecx mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax+68h], rcx mov edi, [rbp+var_4] mov rsi, [rbp+var_10] add rsi, 28h ; '(' mov rax, [rbp+var_28] mov r8d, eax mov r9d, [rbp+var_14] mov edx, [rbp+arg_20] and edx, 2 xor eax, eax mov ecx, 10000h cmp edx, 0 cmovnz eax, ecx mov eax, eax mov edx, 10h xor ecx, ecx mov [rsp+50h+var_50], rax call init_dynamic_array2 mov [rbp+var_31], al mov al, [rbp+var_31] mov [rbp+var_41], al mov al, [rbp+var_41] add rsp, 50h pop rbp retn
char my_hash_init2( unsigned int a1, long long a2, int a3, long long a4, unsigned int a5, long long a6, long long a7, long long a8, long long ( *a9)(long long a1, long long a2, long long a3), long long a10, int a11) { long long v11; // rsi unsigned int v12; // eax long long ( *v14)(long long, long long, long long); // [rsp+10h] [rbp-40h] *(_QWORD *)(a2 + 24) = 0LL; *(_QWORD *)a2 = a6; *(_QWORD *)(a2 + 8) = a7; *(_QWORD *)(a2 + 16) = 1LL; *(_QWORD *)(a2 + 80) = a8; if ( a9 ) v14 = a9; else v14 = my_hash_sort; *(_QWORD *)(a2 + 88) = v14; *(_QWORD *)(a2 + 96) = a10; *(_DWORD *)(a2 + 32) = a11; *(_QWORD *)(a2 + 104) = a4; v11 = a2 + 40; v12 = 0; if ( (a11 & 2) != 0 ) v12 = 0x10000; return init_dynamic_array2(a1, v11, 0x10u, 0LL, a5, a3, v12); }
my_hash_init2: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV EAX,dword ptr [RBP + 0x30] MOV RAX,qword ptr [RBP + 0x28] MOV RAX,qword ptr [RBP + 0x20] MOV RAX,qword ptr [RBP + 0x18] MOV RAX,qword ptr [RBP + 0x10] MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 JMP 0x001dfd33 LAB_001dfd33: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],0x0 MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + 0x10] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],0x1 MOV RCX,qword ptr [RBP + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x50],RCX CMP qword ptr [RBP + 0x20],0x0 JZ 0x001dfd7f MOV RAX,qword ptr [RBP + 0x20] MOV qword ptr [RBP + -0x40],RAX JMP 0x001dfd8c LAB_001dfd7f: LEA RAX,[0x1dfc60] MOV qword ptr [RBP + -0x40],RAX JMP 0x001dfd8c LAB_001dfd8c: MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x58],RCX MOV RCX,qword ptr [RBP + 0x28] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x60],RCX MOV ECX,dword ptr [RBP + 0x30] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x20],ECX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x68],RCX MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x28 MOV RAX,qword ptr [RBP + -0x28] MOV R8D,EAX MOV R9D,dword ptr [RBP + -0x14] MOV EDX,dword ptr [RBP + 0x30] AND EDX,0x2 XOR EAX,EAX MOV ECX,0x10000 CMP EDX,0x0 CMOVNZ EAX,ECX MOV EAX,EAX MOV EDX,0x10 XOR ECX,ECX MOV qword ptr [RSP],RAX CALL 0x001da1d0 MOV byte ptr [RBP + -0x31],AL MOV AL,byte ptr [RBP + -0x31] MOV byte ptr [RBP + -0x41],AL MOV AL,byte ptr [RBP + -0x41] ADD RSP,0x50 POP RBP RET
int8 my_hash_init2(int4 param_1,int8 *param_2,int4 param_3,int8 param_4, int4 param_5,int8 param_6,int8 param_7,int8 param_8, code *param_9,int8 param_10,uint param_11) { int4 uVar1; int8 uVar2; code *local_48; param_2[3] = 0; *param_2 = param_6; param_2[1] = param_7; param_2[2] = 1; param_2[10] = param_8; if (param_9 == (code *)0x0) { local_48 = my_hash_sort; } else { local_48 = param_9; } param_2[0xb] = local_48; param_2[0xc] = param_10; *(uint *)(param_2 + 4) = param_11; param_2[0xd] = param_4; uVar1 = 0; if ((param_11 & 2) != 0) { uVar1 = 0x10000; } uVar2 = init_dynamic_array2(param_1,param_2 + 5,0x10,0,param_5,param_3,uVar1); return uVar2; }
36,820
minja::Value::insert(unsigned long, minja::Value const&)
llama.cpp/common/minja/minja.hpp
void insert(size_t index, const Value& v) { if (!array_) throw std::runtime_error("Value is not an array: " + dump()); array_->insert(array_->begin() + index, v); }
O3
cpp
minja::Value::insert(unsigned long, minja::Value const&): pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 movq 0x10(%rdi), %rdi testq %rdi, %rdi je 0xee2a4 leaq (%rsi,%rsi,4), %rsi shlq $0x4, %rsi addq (%rdi), %rsi addq $0x40, %rsp popq %rbx popq %r14 popq %rbp jmp 0xef312 movl $0x10, %edi callq 0x216a0 movq %rax, %rbx movq %rsp, %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xbae64 leaq 0x36543(%rip), %rsi # 0x12480d leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xb5000 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x21490 xorl %ebp, %ebp movq 0x78cc8(%rip), %rsi # 0x166fb8 movq 0x78c79(%rip), %rdx # 0x166f70 movq %rbx, %rdi callq 0x21ae0 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xee31d movq 0x30(%rsp), %rsi incq %rsi callq 0x21180 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xee338 movq 0x10(%rsp), %rsi incq %rsi callq 0x21180 testb %bpl, %bpl jne 0xee362 jmp 0xee36a movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xee362 movq 0x10(%rsp), %rsi incq %rsi callq 0x21180 jmp 0xee362 movq %rax, %r14 movq %rbx, %rdi callq 0x22020 movq %r14, %rdi callq 0x21b80
_ZN5minja5Value6insertEmRKS0_: push rbp push r14 push rbx sub rsp, 40h mov r14, rdi mov rdi, [rdi+10h] test rdi, rdi jz short loc_EE2A4 lea rsi, [rsi+rsi*4] shl rsi, 4 add rsi, [rdi] add rsp, 40h pop rbx pop r14 pop rbp jmp _ZNSt6vectorIN5minja5ValueESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_; std::vector<minja::Value>::insert(__gnu_cxx::__normal_iterator<minja::Value const*,std::vector<minja::Value>>,minja::Value const&) loc_EE2A4: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, rsp mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aValueIsNotAnAr_0; "Value is not an array: " lea rdi, [rsp+58h+var_38] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+58h+var_38] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+58h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_EE31D mov rsi, [rsp+58h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_EE31D: lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_EE338 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_EE338: test bpl, bpl jnz short loc_EE362 jmp short loc_EE36A mov r14, rax lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_EE362 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_EE362 mov r14, rax loc_EE362: mov rdi, rbx; void * call ___cxa_free_exception loc_EE36A: mov rdi, r14 call __Unwind_Resume
long long minja::Value::insert(minja::Value *this, long long a2, const minja::Value *a3) { _QWORD *v4; // rdi void *exception; // rbx _BYTE v7[16]; // [rsp+0h] [rbp-58h] BYREF _QWORD v8[2]; // [rsp+20h] [rbp-38h] BYREF v4 = (_QWORD *)*((_QWORD *)this + 2); if ( !v4 ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v7, (long long)this, 0xFFFFFFFF, 0); std::operator+<char>(v8, (long long)"Value is not an array: ", (long long)v7); std::runtime_error::runtime_error(exception, v8); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return std::vector<minja::Value>::insert(v4, *v4 + 80 * a2, a3); }
insert: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RDI MOV RDI,qword ptr [RDI + 0x10] TEST RDI,RDI JZ 0x001ee2a4 LEA RSI,[RSI + RSI*0x4] SHL RSI,0x4 ADD RSI,qword ptr [RDI] ADD RSP,0x40 POP RBX POP R14 POP RBP JMP 0x001ef312 LAB_001ee2a4: MOV EDI,0x10 CALL 0x001216a0 MOV RBX,RAX LAB_001ee2b1: MOV RDI,RSP MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001bae64 LAB_001ee2c3: LEA RSI,[0x22480d] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001b5000 MOV BPL,0x1 LAB_001ee2da: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x00121490 XOR EBP,EBP MOV RSI,qword ptr [0x00266fb8] MOV RDX,qword ptr [0x00266f70] MOV RDI,RBX CALL 0x00121ae0
/* minja::Value::insert(unsigned long, minja::Value const&) */ void minja::Value::insert(ulong param_1,Value *param_2) { vector<minja::Value,std::allocator<minja::Value>> *pvVar1; runtime_error *this; int1 auStack_58 [32]; string local_38 [32]; pvVar1 = *(vector<minja::Value,std::allocator<minja::Value>> **)(param_1 + 0x10); if (pvVar1 != (vector<minja::Value,std::allocator<minja::Value>> *)0x0) { std::vector<minja::Value,std::allocator<minja::Value>>::insert (pvVar1,(long)param_2 * 0x50 + *(long *)pvVar1); return; } this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ee2b1 to 001ee2c2 has its CatchHandler @ 001ee35f */ dump_abi_cxx11_((int)auStack_58,SUB81(param_1,0)); /* try { // try from 001ee2c3 to 001ee2d6 has its CatchHandler @ 001ee33f */ std::operator+((char *)local_38,(string *)"Value is not an array: "); /* try { // try from 001ee2da to 001ee2fe has its CatchHandler @ 001ee2ff */ std::runtime_error::runtime_error(this,local_38); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00266fb8,PTR__runtime_error_00266f70); }
36,821
chess::Piece::type() const
Razamindset[P]pawnstar-chess-engine/src/./engine/../chess-library/include/chess.hpp
[[nodiscard]] constexpr PieceType type() const noexcept { if (piece == NONE) return PieceType::NONE; // return static_cast<PieceType::underlying>(int(piece) % 6); return static_cast<PieceType::underlying>(static_cast<int>(piece) > 5 ? static_cast<int>(piece) - 6 : static_cast<int>(piece)); }
O0
cpp
chess::Piece::type() const: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) cmpb $0xc, (%rax) jne 0x9fdb leaq -0x1(%rbp), %rdi movl $0x6, %esi callq 0xa0b0 jmp 0x9fd9 jmp 0xa013 movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0x5, %eax jle 0x9ff6 movq -0x18(%rbp), %rax movzbl (%rax), %eax subl $0x6, %eax movl %eax, -0x1c(%rbp) jmp 0xa000 movq -0x18(%rbp), %rax movzbl (%rax), %eax movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax movzbl %al, %esi leaq -0x1(%rbp), %rdi callq 0xa0b0 jmp 0xa011 jmp 0xa013 movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq movq %rax, %rdi callq 0x4ef0 nopw %cs:(%rax,%rax) nop
_ZNK5chess5Piece4typeEv: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov [rbp+var_18], rax cmp byte ptr [rax], 0Ch jnz short loc_9FDB lea rdi, [rbp+var_1] mov esi, 6 call _ZN5chess9PieceTypeC2ENS0_10underlyingE; chess::PieceType::PieceType(chess::PieceType::underlying) jmp short $+2 loc_9FD9: jmp short loc_A013 loc_9FDB: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 5 jle short loc_9FF6 mov rax, [rbp+var_18] movzx eax, byte ptr [rax] sub eax, 6 mov [rbp+var_1C], eax jmp short loc_A000 loc_9FF6: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov [rbp+var_1C], eax loc_A000: mov eax, [rbp+var_1C] movzx esi, al lea rdi, [rbp+var_1] call _ZN5chess9PieceTypeC2ENS0_10underlyingE; chess::PieceType::PieceType(chess::PieceType::underlying) jmp short $+2 loc_A011: jmp short $+2 loc_A013: mov al, [rbp+var_1] add rsp, 20h pop rbp retn mov rdi, rax call __clang_call_terminate
char chess::Piece::type(chess::Piece *this) { unsigned __int8 v2; // [rsp+4h] [rbp-1Ch] char v3; // [rsp+1Fh] [rbp-1h] BYREF if ( *(_BYTE *)this == 12 ) { chess::PieceType::PieceType(&v3, 6LL); } else { if ( *(unsigned __int8 *)this <= 5u ) v2 = *(_BYTE *)this; else v2 = *(_BYTE *)this - 6; chess::PieceType::PieceType(&v3, v2); } return v3; }
type: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX CMP byte ptr [RAX],0xc JNZ 0x00109fdb LAB_00109fc9: LEA RDI,[RBP + -0x1] MOV ESI,0x6 CALL 0x0010a0b0 JMP 0x00109fd9 LAB_00109fd9: JMP 0x0010a013 LAB_00109fdb: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0x5 JLE 0x00109ff6 MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] SUB EAX,0x6 MOV dword ptr [RBP + -0x1c],EAX JMP 0x0010a000 LAB_00109ff6: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x1c],EAX LAB_0010a000: MOV EAX,dword ptr [RBP + -0x1c] MOVZX ESI,AL LEA RDI,[RBP + -0x1] CALL 0x0010a0b0 JMP 0x0010a011 LAB_0010a011: JMP 0x0010a013 LAB_0010a013: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
/* chess::Piece::type() const */ PieceType __thiscall chess::Piece::type(Piece *this) { Piece PVar1; PieceType local_9; if (*this == (Piece)0xc) { /* try { // try from 00109fc9 to 0010a00e has its CatchHandler @ 0010a01c */ PieceType::PieceType(&local_9,6); } else { if ((byte)*this < 6) { PVar1 = *this; } else { PVar1 = (Piece)((char)*this + -6); } PieceType::PieceType(&local_9,PVar1); } return local_9; }
36,822
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::find<char const (&) [8], 0>(char const (&) [8]) const
hkr04[P]cpp-mcp/common/json.hpp
const_iterator find(KeyType && key) const { auto result = cend(); if (is_object()) { result.m_it.object_iterator = m_data.m_value.object->find(std::forward<KeyType>(key)); } return result; }
O1
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> const> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::find<char const (&) [8], 0>(char const (&) [8]) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx callq 0x41c02 cmpb $0x1, (%r15) jne 0x41b1e movq 0x8(%r15), %r12 movq (%r12), %r15 movq 0x8(%r12), %rax cmpq %rax, %r15 je 0x41b1a movq %r15, %rdi movq %r14, %rsi callq 0x8120 testl %eax, %eax je 0x41b17 addq $0x30, %r15 jmp 0x41af8 movq %r15, %rax movq %rax, 0x8(%rbx) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_: push r15 push r14 push r12 push rbx push rax mov r14, rdx mov r15, rsi mov rbx, rdi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void) cmp byte ptr [r15], 1 jnz short loc_41B1E mov r12, [r15+8] mov r15, [r12] loc_41AF8: mov rax, [r12+8] cmp r15, rax jz short loc_41B1A mov rdi, r15 mov rsi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_41B17 add r15, 30h ; '0' jmp short loc_41AF8 loc_41B17: mov rax, r15 loc_41B1A: mov [rbx+8], rax loc_41B1E: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_( long long a1, long long a2, long long a3) { long long *v4; // r12 long long i; // r15 long long v6; // rax nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::cend(a1); if ( *(_BYTE *)a2 == 1 ) { v4 = *(long long **)(a2 + 8); for ( i = *v4; ; i += 48LL ) { v6 = v4[1]; if ( i == v6 ) break; if ( !(unsigned int)std::string::compare(i, a3) ) { v6 = i; break; } } *(_QWORD *)(a1 + 8) = v6; } return a1; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV R15,RSI MOV RBX,RDI CALL 0x00141c02 CMP byte ptr [R15],0x1 JNZ 0x00141b1e MOV R12,qword ptr [R15 + 0x8] MOV R15,qword ptr [R12] LAB_00141af8: MOV RAX,qword ptr [R12 + 0x8] CMP R15,RAX JZ 0x00141b1a MOV RDI,R15 MOV RSI,R14 CALL 0x00108120 TEST EAX,EAX JZ 0x00141b17 ADD R15,0x30 JMP 0x00141af8 LAB_00141b17: MOV RAX,R15 LAB_00141b1a: MOV qword ptr [RBX + 0x8],RAX LAB_00141b1e: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
long _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_ (long param_1,char *param_2) { int8 *puVar1; int iVar2; char *pcVar3; char *pcVar4; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::cend(); if (*param_2 == '\x01') { puVar1 = *(int8 **)(param_2 + 8); pcVar4 = (char *)*puVar1; while ((pcVar3 = (char *)puVar1[1], pcVar4 != pcVar3 && (iVar2 = std::__cxx11::string::compare(pcVar4), pcVar3 = pcVar4, iVar2 != 0))) { pcVar4 = pcVar4 + 0x30; } *(char **)(param_1 + 8) = pcVar3; } return param_1; }
36,823
ma_set_fatal_error_with_share
eloqsql/storage/maria/ma_info.c
void _ma_set_fatal_error_with_share(MARIA_SHARE *share, int error) { DBUG_PRINT("error", ("error: %d", error)); if (!(share->state.changed & STATE_CRASHED_PRINTED)) { _ma_report_error(error, (share->index_file_name.length ? &share->index_file_name : &share->unique_file_name), MYF(ME_WARNING | ME_ERROR_LOG)); } maria_mark_crashed_share(share); share->state.changed|= STATE_CRASHED_PRINTED; DBUG_ASSERT(!maria_assert_if_crashed_table); }
O3
c
ma_set_fatal_error_with_share: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movl 0x170(%rdi), %eax btl $0xb, %eax jb 0x39d75 xorl %eax, %eax cmpq $0x0, 0x5d8(%rbx) setne %al shll $0x5, %eax addq %rbx, %rax addq $0x5b0, %rax # imm = 0x5B0 movl $0x840, %edx # imm = 0x840 movl %esi, %edi movq %rax, %rsi callq 0x39c40 movl 0x170(%rbx), %eax orl $0x802, %eax # imm = 0x802 movl %eax, 0x170(%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq nop
_ma_set_fatal_error_with_share: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov eax, [rdi+170h] bt eax, 0Bh jb short loc_39D75 xor eax, eax cmp qword ptr [rbx+5D8h], 0 setnz al shl eax, 5 add rax, rbx add rax, 5B0h mov edx, 840h mov edi, esi mov rsi, rax call _ma_report_error mov eax, [rbx+170h] loc_39D75: or eax, 802h mov [rbx+170h], eax add rsp, 8 pop rbx pop rbp retn
long long ma_set_fatal_error_with_share(long long a1, int a2, long long a3, long long a4, long long a5, int a6) { int v6; // eax long long result; // rax v6 = *(_DWORD *)(a1 + 368); if ( (v6 & 0x800) == 0 ) { ma_report_error(a2, (_QWORD *)(a1 + 32 * (unsigned int)(*(_QWORD *)(a1 + 1496) != 0LL) + 1456), 2112, a4, a5, a6); v6 = *(_DWORD *)(a1 + 368); } result = v6 | 0x802u; *(_DWORD *)(a1 + 368) = result; return result; }
_ma_set_fatal_error_with_share: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV EAX,dword ptr [RDI + 0x170] BT EAX,0xb JC 0x00139d75 XOR EAX,EAX CMP qword ptr [RBX + 0x5d8],0x0 SETNZ AL SHL EAX,0x5 ADD RAX,RBX ADD RAX,0x5b0 MOV EDX,0x840 MOV EDI,ESI MOV RSI,RAX CALL 0x00139c40 MOV EAX,dword ptr [RBX + 0x170] LAB_00139d75: OR EAX,0x802 MOV dword ptr [RBX + 0x170],EAX ADD RSP,0x8 POP RBX POP RBP RET
void _ma_set_fatal_error_with_share(long param_1,int4 param_2) { uint uVar1; uVar1 = *(uint *)(param_1 + 0x170); if ((uVar1 >> 0xb & 1) == 0) { _ma_report_error(param_2,(ulong)(*(long *)(param_1 + 0x5d8) != 0) * 0x20 + param_1 + 0x5b0,0x840 ); uVar1 = *(uint *)(param_1 + 0x170); } *(uint *)(param_1 + 0x170) = uVar1 | 0x802; return; }
36,824
my_wc_mb_8bit
eloqsql/strings/ctype-simple.c
int my_wc_mb_8bit(CHARSET_INFO *cs,my_wc_t wc, uchar *str, uchar *end) { MY_UNI_IDX *idx; if (str >= end) return MY_CS_TOOSMALL; for (idx=cs->tab_from_uni; idx->tab ; idx++) { if (idx->from <= wc && idx->to >= wc) { str[0]= idx->tab[wc - idx->from]; return (!str[0] && wc) ? MY_CS_ILUNI : 1; } } return MY_CS_ILUNI; }
O3
c
my_wc_mb_8bit: movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x36ff9 pushq %rbp movq %rsp, %rbp movq 0x70(%rdi), %rcx movq 0x8(%rcx), %rdi xorl %eax, %eax testq %rdi, %rdi je 0x36ff8 addq $0x2, %rcx movzwl -0x2(%rcx), %r9d movq %rsi, %r8 subq %r9, %r8 jb 0x36fd3 movzwl (%rcx), %r9d cmpq %rsi, %r9 jae 0x36fe2 movq 0x16(%rcx), %rdi addq $0x10, %rcx testq %rdi, %rdi jne 0x36fbd jmp 0x36ff8 movb (%rdi,%r8), %al movb %al, (%rdx) testb %al, %al setne %al testq %rsi, %rsi sete %cl orb %al, %cl movzbl %cl, %eax popq %rbp retq
my_wc_mb_8bit: mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short locret_36FF9 push rbp mov rbp, rsp mov rcx, [rdi+70h] mov rdi, [rcx+8] xor eax, eax test rdi, rdi jz short loc_36FF8 add rcx, 2 loc_36FBD: movzx r9d, word ptr [rcx-2] mov r8, rsi sub r8, r9 jb short loc_36FD3 movzx r9d, word ptr [rcx] cmp r9, rsi jnb short loc_36FE2 loc_36FD3: mov rdi, [rcx+16h] add rcx, 10h test rdi, rdi jnz short loc_36FBD jmp short loc_36FF8 loc_36FE2: mov al, [rdi+r8] mov [rdx], al test al, al setnz al test rsi, rsi setz cl or cl, al movzx eax, cl loc_36FF8: pop rbp locret_36FF9: retn
long long my_wc_mb_8bit(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { long long result; // rax long long v5; // rcx long long v6; // rdi unsigned __int16 *i; // rcx unsigned long long v8; // r9 char v9; // al result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = *(_QWORD *)(a1 + 112); v6 = *(_QWORD *)(v5 + 8); result = 0LL; if ( v6 ) { for ( i = (unsigned __int16 *)(v5 + 2); ; i += 8 ) { v8 = *(i - 1); if ( a2 >= v8 && *i >= a2 ) break; v6 = *(_QWORD *)(i + 11); if ( !v6 ) return result; } v9 = *(_BYTE *)(v6 + a2 - v8); *a3 = v9; return (v9 != 0) | (unsigned __int8)(a2 == 0); } } return result; }
my_wc_mb_8bit: MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x00136ff9 PUSH RBP MOV RBP,RSP MOV RCX,qword ptr [RDI + 0x70] MOV RDI,qword ptr [RCX + 0x8] XOR EAX,EAX TEST RDI,RDI JZ 0x00136ff8 ADD RCX,0x2 LAB_00136fbd: MOVZX R9D,word ptr [RCX + -0x2] MOV R8,RSI SUB R8,R9 JC 0x00136fd3 MOVZX R9D,word ptr [RCX] CMP R9,RSI JNC 0x00136fe2 LAB_00136fd3: MOV RDI,qword ptr [RCX + 0x16] ADD RCX,0x10 TEST RDI,RDI JNZ 0x00136fbd JMP 0x00136ff8 LAB_00136fe2: MOV AL,byte ptr [RDI + R8*0x1] MOV byte ptr [RDX],AL TEST AL,AL SETNZ AL TEST RSI,RSI SETZ CL OR CL,AL MOVZX EAX,CL LAB_00136ff8: POP RBP LAB_00136ff9: RET
ulong my_wc_mb_8bit(long param_1,ulong param_2,char *param_3,char *param_4) { char cVar1; ulong uVar2; ushort *puVar3; long lVar4; uVar2 = 0xffffff9b; if (param_3 < param_4) { lVar4 = *(long *)(*(long *)(param_1 + 0x70) + 8); uVar2 = 0; if (lVar4 != 0) { puVar3 = (ushort *)(*(long *)(param_1 + 0x70) + 2); do { if ((puVar3[-1] <= param_2) && (param_2 <= *puVar3)) { cVar1 = *(char *)(lVar4 + (param_2 - puVar3[-1])); *param_3 = cVar1; return (ulong)(param_2 == 0 || cVar1 != '\0'); } lVar4 = *(long *)(puVar3 + 0xb); puVar3 = puVar3 + 8; } while (lVar4 != 0); } } return uVar2; }
36,825
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&)
hkr04[P]cpp-mcp/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O1
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %r14 movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r13 movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rsp) movq %rax, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq (%rsi), %rdi callq 0x8230 movq %rax, %rbp movq %r12, %rdi callq 0x8230 movq 0x8(%r15), %rcx addq %rbp, %rax leaq (%rcx,%rax), %rsi incq %rsi movq %rbx, %rdi callq 0x8820 movq (%r13), %rsi movq %rbx, %rdi callq 0x8a20 movq %rbx, %rdi movq %r12, %rsi callq 0x8a20 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %rbx, %rdi callq 0x8150 movsbl (%r14), %esi movq %rbx, %rdi callq 0x84b0 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq (%rbx), %rdi cmpq (%rsp), %rdi je 0x3e0b3 movq (%rsp), %rax movq (%rax), %rsi incq %rsi callq 0x8580 movq %r14, %rdi callq 0x8960 nop
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, r8 mov r15, rcx mov r12, rdx mov r13, rsi mov rbx, rdi lea rax, [rdi+10h] mov [rsp+38h+var_38], rax mov [rdi], rax mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, [rsi] call _strlen mov rbp, rax mov rdi, r12 call _strlen mov rcx, [r15+8] add rax, rbp lea rsi, [rcx+rax] inc rsi mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rsi, [r13+0] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rdi, rbx mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r15] mov rdx, [r15+8] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) movsx esi, byte ptr [r14] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [rbx]; void * cmp rdi, [rsp+0] jz short loc_3E0B3 mov rax, [rsp+0] mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E0B3: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>( long long a1, _QWORD *a2, long long a3, _QWORD *a4, char *a5) { long long v8; // rbp long long v9; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v8 = strlen(*a2); v9 = strlen(a3); std::string::reserve(a1, a4[1] + v8 + v9 + 1); std::string::append(a1, *a2); std::string::append(a1, a3); std::string::_M_append(a1, *a4, a4[1]); std::string::push_back(a1, (unsigned int)*a5); return a1; }
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,R8 MOV R15,RCX MOV R12,RDX MOV R13,RSI MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RSP],RAX MOV qword ptr [RDI],RAX MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RDI,qword ptr [RSI] CALL 0x00108230 MOV RBP,RAX MOV RDI,R12 CALL 0x00108230 MOV RCX,qword ptr [R15 + 0x8] ADD RAX,RBP LEA RSI,[RCX + RAX*0x1] INC RSI LAB_0013e04c: MOV RDI,RBX CALL 0x00108820 MOV RSI,qword ptr [R13] MOV RDI,RBX CALL 0x00108a20 MOV RDI,RBX MOV RSI,R12 CALL 0x00108a20 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x00108150 MOVSX ESI,byte ptr [R14] MOV RDI,RBX CALL 0x001084b0 LAB_0013e086: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const*, char const (&) [15], std::__cxx11::string, char>(char const*&&, char const (&) [15], std::__cxx11::string&&, char&&) */ char ** nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char> (char **param_1,char *param_2,string *param_3,char *param_4) { *param_1 = (char *)(param_1 + 2); param_1[1] = (char *)0x0; *(int1 *)(param_1 + 2) = 0; strlen(*(char **)param_2); strlen((char *)param_3); /* try { // try from 0013e04c to 0013e085 has its CatchHandler @ 0013e098 */ std::__cxx11::string::reserve((ulong)param_1); std::__cxx11::string::append((char *)param_1); std::__cxx11::string::append((char *)param_1); std::__cxx11::string::_M_append((char *)param_1,*(ulong *)param_4); std::__cxx11::string::push_back((char)param_1); return param_1; }
36,826
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&)
hkr04[P]cpp-mcp/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O2
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [29], char const*>(char const (&) [29], char const*&&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %r8, %r14 movq %rcx, %r15 movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) andq $0x0, 0x8(%rdi) movq %rdx, %r12 movq %rsi, %r13 movb $0x0, 0x10(%rdi) movq (%rsi), %rdi movq %rdx, %rsi movq %rcx, %rdx movq %r8, %rcx callq 0x34285 movq %rbx, %rdi movq %rax, %rsi callq 0x8880 movq %rbx, %rdi movq %r13, %rsi movq %r12, %rdx movq %r15, %rcx movq %r14, %r8 callq 0x342bb movq %rbx, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %r14 movq %rbx, %rdi callq 0x8b18 movq %r14, %rdi callq 0x89c0
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_: push r15 push r14 push r13 push r12 push rbx mov r14, r8 mov r15, rcx mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax and qword ptr [rdi+8], 0 mov r12, rdx mov r13, rsi mov byte ptr [rdi+10h], 0 mov rdi, [rsi] mov rsi, rdx mov rdx, rcx mov rcx, r8 call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJA15_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEEEmPKcDpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<char [15],std::string,char>(char const*,char [15],std::string,char const&) mov rdi, rbx mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r13 mov rdx, r12 mov rcx, r15 mov r8, r14 call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcJRA15_S9_S8_cETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_ mov rax, rbx pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r14, rax mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>( long long a1, _QWORD *a2, long long a3, long long a4, long long a5) { long long v8; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v8 = nlohmann::json_abi_v3_11_3::detail::concat_length<char [15],std::string,char>(*a2, a3, a4, a5); std::string::reserve(a1, v8); ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcJRA15_S9_S8_cETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_( a1, a2, a3, a4, a5); return a1; }
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R14,R8 MOV R15,RCX MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX AND qword ptr [RDI + 0x8],0x0 MOV R12,RDX MOV R13,RSI MOV byte ptr [RDI + 0x10],0x0 MOV RDI,qword ptr [RSI] LAB_00134174: MOV RSI,RDX MOV RDX,RCX MOV RCX,R8 CALL 0x00134285 MOV RDI,RBX MOV RSI,RAX CALL 0x00108880 MOV RDI,RBX MOV RSI,R13 MOV RDX,R12 MOV RCX,R15 MOV R8,R14 CALL 0x001342bb LAB_001341a1: MOV RAX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const*, char const (&) [15], std::__cxx11::string, char>(char const*&&, char const (&) [15], std::__cxx11::string&&, char&&) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char> (detail *this,char **param_1,char *param_2,string *param_3,char *param_4) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; /* try { // try from 00134174 to 001341a0 has its CatchHandler @ 001341ae */ concat_length<char[15],std::__cxx11::string,char>(*param_1,param_2,param_3,param_4); std::__cxx11::string::reserve((ulong)this); _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcJRA15_S9_S8_cETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_ (this,param_1,param_2,param_3,param_4); return this; }
36,827
ma_log_prefix
eloqsql/storage/maria/ma_key_recover.c
my_bool _ma_log_prefix(MARIA_PAGE *ma_page, uint changed_length, int move_length, enum en_key_debug debug_marker __attribute__((unused))) { uint translog_parts; LSN lsn; uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + 7 + 7 + 2 + 2]; uchar *log_pos; uchar *buff= ma_page->buff; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 4]; MARIA_HA *info= ma_page->info; pgcache_page_no_t page= ma_page->pos / info->s->block_size; DBUG_ENTER("_ma_log_prefix"); DBUG_PRINT("enter", ("page: %lu changed_length: %u move_length: %d", (ulong) page, changed_length, move_length)); DBUG_ASSERT(ma_page->size == ma_page->org_size + move_length); log_pos= log_data + FILEID_STORE_SIZE; page_store(log_pos, page); log_pos+= PAGE_STORE_SIZE; #ifdef EXTRA_DEBUG_KEY_CHANGES (*log_pos++)= KEY_OP_DEBUG; (*log_pos++)= debug_marker; #endif /* Store keypage_flag */ *log_pos++= KEY_OP_SET_PAGEFLAG; *log_pos++= _ma_get_keypage_flag(info->s, buff); if (move_length < 0) { /* Delete prefix */ log_pos[0]= KEY_OP_DEL_PREFIX; int2store(log_pos+1, -move_length); log_pos+= 3; if (changed_length) { /* We don't need a KEY_OP_OFFSET as KEY_OP_DEL_PREFIX has an implicit offset */ log_pos[0]= KEY_OP_CHANGE; int2store(log_pos+1, changed_length); log_pos+= 3; } } else { /* Add prefix */ DBUG_ASSERT(changed_length >0 && (int) changed_length >= move_length); log_pos[0]= KEY_OP_ADD_PREFIX; int2store(log_pos+1, move_length); int2store(log_pos+3, changed_length); log_pos+= 5; } translog_parts= 1; log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= (uint) (log_pos - log_data); if (changed_length) { log_array[TRANSLOG_INTERNAL_PARTS + 1].str= (buff + info->s->keypage_header); log_array[TRANSLOG_INTERNAL_PARTS + 1].length= changed_length; translog_parts= 2; } _ma_log_key_changes(ma_page, log_array + TRANSLOG_INTERNAL_PARTS + translog_parts, log_pos, &changed_length, &translog_parts); /* Remember new page length for future log entires for same page */ ma_page->org_size= ma_page->size; DBUG_RETURN(translog_write_record(&lsn, LOGREC_REDO_INDEX, info->trn, info, (translog_size_t) log_array[TRANSLOG_INTERNAL_PARTS + 0].length + changed_length, TRANSLOG_INTERNAL_PARTS + translog_parts, log_array, log_data, NULL)); }
O0
c
ma_log_prefix: pushq %rbp movq %rsp, %rbp subq $0x120, %rsp # imm = 0x120 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x38(%rbp) movl %esi, -0x3c(%rbp) movl %edx, -0x40(%rbp) movl %ecx, -0x44(%rbp) movq -0x38(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x60(%rbp) movq -0x38(%rbp), %rax movq (%rax), %rax movq %rax, -0xc8(%rbp) movq -0x38(%rbp), %rax movq 0x18(%rax), %rax movq -0xc8(%rbp), %rcx movq (%rcx), %rcx movl 0x7bc(%rcx), %ecx xorl %edx, %edx divq %rcx movq %rax, -0xd0(%rbp) jmp 0x446e5 jmp 0x446e7 jmp 0x446e9 leaq -0x30(%rbp), %rax addq $0x2, %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movq %rax, -0xd8(%rbp) movq -0xd0(%rbp), %rax movl %eax, %ecx movq -0xd8(%rbp), %rax movl %ecx, (%rax) movq -0xd0(%rbp), %rax shrq $0x20, %rax movb %al, %cl movq -0xd8(%rbp), %rax movb %cl, 0x4(%rax) movq -0x58(%rbp), %rax addq $0x5, %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x58(%rbp) movb $0xa, (%rax) movq -0x60(%rbp), %rax movq -0xc8(%rbp), %rcx movq (%rcx), %rcx movl 0x744(%rcx), %ecx subl $0x2, %ecx subl $0x1, %ecx movl %ecx, %ecx movb (%rax,%rcx), %cl movq -0x58(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x58(%rbp) movb %cl, (%rax) cmpl $0x0, -0x40(%rbp) jge 0x447eb movq -0x58(%rbp), %rax movb $0x5, (%rax) movq -0x58(%rbp), %rax addq $0x1, %rax movq %rax, -0xe0(%rbp) xorl %eax, %eax subl -0x40(%rbp), %eax movw %ax, %cx movq -0xe0(%rbp), %rax movw %cx, (%rax) movq -0x58(%rbp), %rax addq $0x3, %rax movq %rax, -0x58(%rbp) cmpl $0x0, -0x3c(%rbp) je 0x447e9 movq -0x58(%rbp), %rax movb $0x3, (%rax) movq -0x58(%rbp), %rax addq $0x1, %rax movq %rax, -0xe8(%rbp) movl -0x3c(%rbp), %eax movw %ax, %cx movq -0xe8(%rbp), %rax movw %cx, (%rax) movq -0x58(%rbp), %rax addq $0x3, %rax movq %rax, -0x58(%rbp) jmp 0x44842 jmp 0x447ed jmp 0x447ef movq -0x58(%rbp), %rax movb $0x4, (%rax) movq -0x58(%rbp), %rax addq $0x1, %rax movq %rax, -0xf0(%rbp) movl -0x40(%rbp), %eax movw %ax, %cx movq -0xf0(%rbp), %rax movw %cx, (%rax) jmp 0x44817 movq -0x58(%rbp), %rax addq $0x3, %rax movq %rax, -0xf8(%rbp) movl -0x3c(%rbp), %eax movw %ax, %cx movq -0xf8(%rbp), %rax movw %cx, (%rax) movq -0x58(%rbp), %rax addq $0x5, %rax movq %rax, -0x58(%rbp) movl $0x1, -0x48(%rbp) leaq -0x30(%rbp), %rax movq %rax, -0xa0(%rbp) movq -0x58(%rbp), %rax leaq -0x30(%rbp), %rcx subq %rcx, %rax movl %eax, %eax movq %rax, -0x98(%rbp) cmpl $0x0, -0x3c(%rbp) je 0x4489d movq -0x60(%rbp), %rax movq -0xc8(%rbp), %rcx movq (%rcx), %rcx movl 0x744(%rcx), %ecx addq %rcx, %rax movq %rax, -0x90(%rbp) movl -0x3c(%rbp), %eax movq %rax, -0x88(%rbp) movl $0x2, -0x48(%rbp) movq -0x38(%rbp), %rax movl 0x20(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x24(%rax) movq -0xc8(%rbp), %rax movq 0x8(%rax), %rdx movq -0xc8(%rbp), %rcx movq -0x98(%rbp), %rax movl %eax, %r8d addl -0x3c(%rbp), %r8d movl -0x48(%rbp), %r9d addl $0x2, %r9d leaq -0xc0(%rbp), %r10 leaq -0x30(%rbp), %rax leaq -0x50(%rbp), %rdi movl $0xc, %esi xorl %r11d, %r11d movq %r10, (%rsp) movq %rax, 0x8(%rsp) movq $0x0, 0x10(%rsp) callq 0x31e30 movb %al, -0xf9(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x44928 movb -0xf9(%rbp), %al addq $0x120, %rsp # imm = 0x120 popq %rbp retq callq 0x2a250 nopl (%rax)
_ma_log_prefix: push rbp mov rbp, rsp sub rsp, 120h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_38], rdi mov [rbp+var_3C], esi mov [rbp+var_40], edx mov [rbp+var_44], ecx mov rax, [rbp+var_38] mov rax, [rax+10h] mov [rbp+var_60], rax mov rax, [rbp+var_38] mov rax, [rax] mov [rbp+var_C8], rax mov rax, [rbp+var_38] mov rax, [rax+18h] mov rcx, [rbp+var_C8] mov rcx, [rcx] mov ecx, [rcx+7BCh] xor edx, edx div rcx mov [rbp+var_D0], rax jmp short $+2 loc_446E5: jmp short $+2 loc_446E7: jmp short $+2 loc_446E9: lea rax, [rbp+var_30] add rax, 2 mov [rbp+var_58], rax mov rax, [rbp+var_58] mov [rbp+var_D8], rax mov rax, [rbp+var_D0] mov ecx, eax mov rax, [rbp+var_D8] mov [rax], ecx mov rax, [rbp+var_D0] shr rax, 20h mov cl, al mov rax, [rbp+var_D8] mov [rax+4], cl mov rax, [rbp+var_58] add rax, 5 mov [rbp+var_58], rax mov rax, [rbp+var_58] mov rcx, rax add rcx, 1 mov [rbp+var_58], rcx mov byte ptr [rax], 0Ah mov rax, [rbp+var_60] mov rcx, [rbp+var_C8] mov rcx, [rcx] mov ecx, [rcx+744h] sub ecx, 2 sub ecx, 1 mov ecx, ecx mov cl, [rax+rcx] mov rax, [rbp+var_58] mov rdx, rax add rdx, 1 mov [rbp+var_58], rdx mov [rax], cl cmp [rbp+var_40], 0 jge short loc_447EB mov rax, [rbp+var_58] mov byte ptr [rax], 5 mov rax, [rbp+var_58] add rax, 1 mov [rbp+var_E0], rax xor eax, eax sub eax, [rbp+var_40] mov cx, ax mov rax, [rbp+var_E0] mov [rax], cx mov rax, [rbp+var_58] add rax, 3 mov [rbp+var_58], rax cmp [rbp+var_3C], 0 jz short loc_447E9 mov rax, [rbp+var_58] mov byte ptr [rax], 3 mov rax, [rbp+var_58] add rax, 1 mov [rbp+var_E8], rax mov eax, [rbp+var_3C] mov cx, ax mov rax, [rbp+var_E8] mov [rax], cx mov rax, [rbp+var_58] add rax, 3 mov [rbp+var_58], rax loc_447E9: jmp short loc_44842 loc_447EB: jmp short $+2 loc_447ED: jmp short $+2 loc_447EF: mov rax, [rbp+var_58] mov byte ptr [rax], 4 mov rax, [rbp+var_58] add rax, 1 mov [rbp+var_F0], rax mov eax, [rbp+var_40] mov cx, ax mov rax, [rbp+var_F0] mov [rax], cx jmp short $+2 loc_44817: mov rax, [rbp+var_58] add rax, 3 mov [rbp+var_F8], rax mov eax, [rbp+var_3C] mov cx, ax mov rax, [rbp+var_F8] mov [rax], cx mov rax, [rbp+var_58] add rax, 5 mov [rbp+var_58], rax loc_44842: mov [rbp+var_48], 1 lea rax, [rbp+var_30] mov [rbp+var_A0], rax mov rax, [rbp+var_58] lea rcx, [rbp+var_30] sub rax, rcx mov eax, eax mov [rbp+var_98], rax cmp [rbp+var_3C], 0 jz short loc_4489D mov rax, [rbp+var_60] mov rcx, [rbp+var_C8] mov rcx, [rcx] mov ecx, [rcx+744h] add rax, rcx mov [rbp+var_90], rax mov eax, [rbp+var_3C] mov [rbp+var_88], rax mov [rbp+var_48], 2 loc_4489D: mov rax, [rbp+var_38] mov ecx, [rax+20h] mov rax, [rbp+var_38] mov [rax+24h], ecx mov rax, [rbp+var_C8] mov rdx, [rax+8] mov rcx, [rbp+var_C8] mov rax, [rbp+var_98] mov r8d, eax add r8d, [rbp+var_3C] mov r9d, [rbp+var_48] add r9d, 2 lea r10, [rbp+var_C0] lea rax, [rbp+var_30] lea rdi, [rbp+var_50] mov esi, 0Ch xor r11d, r11d mov [rsp+120h+var_120], r10 mov [rsp+120h+var_118], rax mov [rsp+120h+var_110], 0 call translog_write_record mov [rbp+var_F9], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_44928 mov al, [rbp+var_F9] add rsp, 120h pop rbp retn loc_44928: call ___stack_chk_fail
char ma_log_prefix(long long **a1, unsigned int a2, int a3, int a4) { char v4; // cl unsigned long long v6; // [rsp+50h] [rbp-D0h] long long *v7; // [rsp+58h] [rbp-C8h] _QWORD v8[5]; // [rsp+60h] [rbp-C0h] BYREF long long v9; // [rsp+88h] [rbp-98h] long long v10; // [rsp+90h] [rbp-90h] long long v11; // [rsp+98h] [rbp-88h] long long *v12; // [rsp+C0h] [rbp-60h] char *v13; // [rsp+C8h] [rbp-58h] char v14[8]; // [rsp+D0h] [rbp-50h] BYREF int v15; // [rsp+D8h] [rbp-48h] int v16; // [rsp+DCh] [rbp-44h] int v17; // [rsp+E0h] [rbp-40h] unsigned int v18; // [rsp+E4h] [rbp-3Ch] long long **v19; // [rsp+E8h] [rbp-38h] __int16 v20; // [rsp+F0h] [rbp-30h] BYREF int v21; // [rsp+F2h] [rbp-2Eh] char v22; // [rsp+F6h] [rbp-2Ah] char v23; // [rsp+F7h] [rbp-29h] char v24; // [rsp+F8h] [rbp-28h] BYREF _BYTE v25[39]; // [rsp+F9h] [rbp-27h] BYREF *(_QWORD *)&v25[31] = __readfsqword(0x28u); v19 = a1; v18 = a2; v17 = a3; v16 = a4; v12 = a1[2]; v7 = *a1; v6 = (unsigned long long)a1[3] / *(unsigned int *)(**a1 + 1980); v21 = v6; v22 = BYTE4(v6); v13 = &v24; v23 = 10; v4 = *((_BYTE *)v12 + (unsigned int)(*(_DWORD *)(*v7 + 1860) - 3)); v13 = v25; v24 = v4; if ( a3 >= 0 ) { *v13 = 4; *(_WORD *)(v13 + 1) = v17; *(_WORD *)(v13 + 3) = v18; v13 += 5; } else { *v13 = 5; *(_WORD *)(v13 + 1) = -(__int16)v17; v13 += 3; if ( v18 ) { *v13 = 3; *(_WORD *)(v13 + 1) = v18; v13 += 3; } } v15 = 1; v8[4] = &v20; v9 = (unsigned int)v13 - (unsigned int)&v20; if ( v18 ) { v10 = (long long)v12 + *(unsigned int *)(*v7 + 1860); v11 = v18; v15 = 2; } *((_DWORD *)v19 + 9) = *((_DWORD *)v19 + 8); return translog_write_record((long long)v14, 0xCu, v7[1], v7, v18 + v9, v15 + 2, v8, &v20, 0LL); }
_ma_log_prefix: PUSH RBP MOV RBP,RSP SUB RSP,0x120 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x38],RDI MOV dword ptr [RBP + -0x3c],ESI MOV dword ptr [RBP + -0x40],EDX MOV dword ptr [RBP + -0x44],ECX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xc8],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0xc8] MOV RCX,qword ptr [RCX] MOV ECX,dword ptr [RCX + 0x7bc] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0xd0],RAX JMP 0x001446e5 LAB_001446e5: JMP 0x001446e7 LAB_001446e7: JMP 0x001446e9 LAB_001446e9: LEA RAX,[RBP + -0x30] ADD RAX,0x2 MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0xd8],RAX MOV RAX,qword ptr [RBP + -0xd0] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0xd8] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0xd0] SHR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0xd8] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x5 MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x58],RCX MOV byte ptr [RAX],0xa MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0xc8] MOV RCX,qword ptr [RCX] MOV ECX,dword ptr [RCX + 0x744] SUB ECX,0x2 SUB ECX,0x1 MOV ECX,ECX MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x58] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x58],RDX MOV byte ptr [RAX],CL CMP dword ptr [RBP + -0x40],0x0 JGE 0x001447eb MOV RAX,qword ptr [RBP + -0x58] MOV byte ptr [RAX],0x5 MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x1 MOV qword ptr [RBP + -0xe0],RAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x40] MOV CX,AX MOV RAX,qword ptr [RBP + -0xe0] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x3 MOV qword ptr [RBP + -0x58],RAX CMP dword ptr [RBP + -0x3c],0x0 JZ 0x001447e9 MOV RAX,qword ptr [RBP + -0x58] MOV byte ptr [RAX],0x3 MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x1 MOV qword ptr [RBP + -0xe8],RAX MOV EAX,dword ptr [RBP + -0x3c] MOV CX,AX MOV RAX,qword ptr [RBP + -0xe8] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x3 MOV qword ptr [RBP + -0x58],RAX LAB_001447e9: JMP 0x00144842 LAB_001447eb: JMP 0x001447ed LAB_001447ed: JMP 0x001447ef LAB_001447ef: MOV RAX,qword ptr [RBP + -0x58] MOV byte ptr [RAX],0x4 MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x1 MOV qword ptr [RBP + -0xf0],RAX MOV EAX,dword ptr [RBP + -0x40] MOV CX,AX MOV RAX,qword ptr [RBP + -0xf0] MOV word ptr [RAX],CX JMP 0x00144817 LAB_00144817: MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x3 MOV qword ptr [RBP + -0xf8],RAX MOV EAX,dword ptr [RBP + -0x3c] MOV CX,AX MOV RAX,qword ptr [RBP + -0xf8] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x5 MOV qword ptr [RBP + -0x58],RAX LAB_00144842: MOV dword ptr [RBP + -0x48],0x1 LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0xa0],RAX MOV RAX,qword ptr [RBP + -0x58] LEA RCX,[RBP + -0x30] SUB RAX,RCX MOV EAX,EAX MOV qword ptr [RBP + -0x98],RAX CMP dword ptr [RBP + -0x3c],0x0 JZ 0x0014489d MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0xc8] MOV RCX,qword ptr [RCX] MOV ECX,dword ptr [RCX + 0x744] ADD RAX,RCX MOV qword ptr [RBP + -0x90],RAX MOV EAX,dword ptr [RBP + -0x3c] MOV qword ptr [RBP + -0x88],RAX MOV dword ptr [RBP + -0x48],0x2 LAB_0014489d: MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x24],ECX MOV RAX,qword ptr [RBP + -0xc8] MOV RDX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0x98] MOV R8D,EAX ADD R8D,dword ptr [RBP + -0x3c] MOV R9D,dword ptr [RBP + -0x48] ADD R9D,0x2 LEA R10,[RBP + -0xc0] LEA RAX,[RBP + -0x30] LEA RDI,[RBP + -0x50] MOV ESI,0xc XOR R11D,R11D MOV qword ptr [RSP],R10 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],0x0 CALL 0x00131e30 MOV byte ptr [RBP + -0xf9],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00144928 MOV AL,byte ptr [RBP + -0xf9] ADD RSP,0x120 POP RBP RET LAB_00144928: CALL 0x0012a250
int8 _ma_log_prefix(long *param_1,uint param_2,int param_3,int4 param_4) { long *plVar1; int1 uVar2; uint uVar3; ulong uVar4; long in_FS_OFFSET; int1 local_c8 [32]; int1 *local_a8; ulong local_a0; long local_98; ulong local_90; long local_68; int1 *local_60; int1 local_58 [8]; int local_50; int4 local_4c; int local_48; uint local_44; long *local_40; int1 local_38 [2]; int4 local_36; int1 local_32; int1 local_31; int1 local_30; int1 local_2f; short local_2e; int1 local_2c [2]; int1 uStack_2a; int1 auStack_29 [25]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_68 = param_1[2]; plVar1 = (long *)*param_1; uVar4 = (ulong)param_1[3] / (ulong)*(uint *)(*plVar1 + 0x7bc); local_36 = (int4)uVar4; local_32 = (int1)(uVar4 >> 0x20); local_31 = 10; local_30 = *(int1 *)(local_68 + (ulong)(*(int *)(*plVar1 + 0x744) - 3)); local_2e = (short)param_3; if (param_3 < 0) { local_2f = 5; local_2e = -local_2e; local_60 = local_2c; if (param_2 != 0) { local_2c[0] = 3; /* WARNING: Ignoring partial resolution of indirect */ stack0xffffffffffffffd5 = (short)param_2; local_60 = auStack_29; } } else { local_2f = 4; local_60 = &uStack_2a; local_2c = (int1 [2])(short)param_2; } local_50 = 1; local_a8 = local_38; uVar3 = (int)local_60 - (int)local_38; local_a0 = (ulong)uVar3; if (param_2 != 0) { local_98 = local_68 + (ulong)*(uint *)(*plVar1 + 0x744); local_90 = (ulong)param_2; local_50 = 2; } *(int *)((long)param_1 + 0x24) = (int)param_1[4]; local_4c = param_4; local_48 = param_3; local_44 = param_2; local_40 = param_1; uVar2 = translog_write_record (local_58,0xc,plVar1[1],plVar1,uVar3 + param_2,local_50 + 2,local_c8,local_38,0) ; if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),uVar2); }
36,828
LefDefParser::lefwMacroPinAntennaModel(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwMacroPinAntennaModel(const char *oxide) { lefw54Num = LEFW_ANTENNAGATEAREA; if (!lefwFile) return LEFW_UNINITIALIZED; if (!lefwDidInit) return LEFW_BAD_ORDER; if (!lefwIsMacroPin) return LEFW_BAD_ORDER; if (versionNum < 5.4) return LEFW_WRONG_VERSION; if (lefwAntenna53) return LEFW_MIX_VERSION_DATA; if (lefwWriteEncrypt) { encPrint(lefwFile, (char*) " ANTENNAMODEL %s ;\n", oxide); } else { fprintf(lefwFile, " ANTENNAMODEL %s ;\n", oxide); } lefwLines++; lefwState = LEFW_MACRO; lefwAntenna54 = 1; return LEFW_OK; }
O0
cpp
LefDefParser::lefwMacroPinAntennaModel(char const*): subq $0x18, %rsp movq %rdi, 0x8(%rsp) movl $0x75, 0xfde9(%rip) # 0x32d4c leaq 0xfe96(%rip), %rax # 0x32e00 cmpq $0x0, (%rax) jne 0x22f7d movl $0x1, 0x14(%rsp) jmp 0x2305a leaq 0x100d0(%rip), %rax # 0x33054 cmpl $0x0, (%rax) jne 0x22f96 movl $0x2, 0x14(%rsp) jmp 0x2305a leaq 0x10103(%rip), %rax # 0x330a0 cmpl $0x0, (%rax) jne 0x22faf movl $0x2, 0x14(%rsp) jmp 0x2305a movsd 0x6249(%rip), %xmm0 # 0x29200 ucomisd 0xfd81(%rip), %xmm0 # 0x32d40 jbe 0x22fce movl $0x5, 0x14(%rsp) jmp 0x2305a cmpl $0x0, 0x10147(%rip) # 0x3311c je 0x22fe1 movl $0x6, 0x14(%rsp) jmp 0x2305a cmpl $0x0, 0x10104(%rip) # 0x330ec je 0x23009 leaq 0xfe0f(%rip), %rax # 0x32e00 movq (%rax), %rdi movq 0x8(%rsp), %rdx leaq 0x8a82(%rip), %rsi # 0x2ba82 movb $0x0, %al callq 0x289b0 jmp 0x23026 leaq 0xfdf0(%rip), %rax # 0x32e00 movq (%rax), %rdi movq 0x8(%rsp), %rdx leaq 0x8a63(%rip), %rsi # 0x2ba82 movb $0x0, %al callq 0x1100 leaq 0x1001f(%rip), %rax # 0x3304c movl (%rax), %ecx addl $0x1, %ecx leaq 0x10013(%rip), %rax # 0x3304c movl %ecx, (%rax) leaq 0x1000e(%rip), %rax # 0x33050 movl $0x21, (%rax) movl $0x1, 0x100c6(%rip) # 0x33118 movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser24lefwMacroPinAntennaModelEPKc: sub rsp, 18h mov [rsp+18h+var_10], rdi mov cs:_ZN12LefDefParserL9lefw54NumE, 75h ; 'u'; LefDefParser::lefw54Num lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jnz short loc_22F7D mov [rsp+18h+var_4], 1 jmp loc_2305A loc_22F7D: lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit cmp dword ptr [rax], 0 jnz short loc_22F96 mov [rsp+18h+var_4], 2 jmp loc_2305A loc_22F96: lea rax, _ZN12LefDefParser14lefwIsMacroPinE; LefDefParser::lefwIsMacroPin cmp dword ptr [rax], 0 jnz short loc_22FAF mov [rsp+18h+var_4], 2 jmp loc_2305A loc_22FAF: movsd xmm0, cs:dbl_29200 ucomisd xmm0, cs:_ZN12LefDefParserL10versionNumE; LefDefParser::versionNum jbe short loc_22FCE mov [rsp+18h+var_4], 5 jmp loc_2305A loc_22FCE: cmp cs:_ZN12LefDefParserL13lefwAntenna53E, 0; LefDefParser::lefwAntenna53 jz short loc_22FE1 mov [rsp+18h+var_4], 6 jmp short loc_2305A loc_22FE1: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt jz short loc_23009 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov rdx, [rsp+18h+var_10] lea rsi, aAntennamodelS; " ANTENNAMODEL %s ;\n" mov al, 0 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_23026 loc_23009: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov rdx, [rsp+18h+var_10] lea rsi, aAntennamodelS; " ANTENNAMODEL %s ;\n" mov al, 0 call _fprintf loc_23026: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov [rax], ecx lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov dword ptr [rax], 21h ; '!' mov cs:_ZN12LefDefParserL13lefwAntenna54E, 1; LefDefParser::lefwAntenna54 mov [rsp+18h+var_4], 0 loc_2305A: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long LefDefParser::lefwMacroPinAntennaModel( LefDefParser *this, const char *a2, long long a3, int a4, int a5, int a6) { LefDefParser::lefw54Num = 117; if ( *(_QWORD *)&LefDefParser::lefwFile ) { if ( LefDefParser::lefwDidInit ) { if ( LefDefParser::lefwIsMacroPin ) { if ( *(double *)&LefDefParser::versionNum >= 5.4 ) { if ( LefDefParser::lefwAntenna53 ) { return 6; } else { if ( LefDefParser::lefwWriteEncrypt ) LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" ANTENNAMODEL %s ;\n", (_DWORD)this, a4, a5, a6); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, " ANTENNAMODEL %s ;\n", (const char *)this); ++LefDefParser::lefwLines; LefDefParser::lefwState = 33; LefDefParser::lefwAntenna54 = 1; return 0; } } else { return 5; } } else { return 2; } } else { return 2; } } else { return 1; } }
lefwMacroPinAntennaModel: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV dword ptr [0x00132d4c],0x75 LEA RAX,[0x132e00] CMP qword ptr [RAX],0x0 JNZ 0x00122f7d MOV dword ptr [RSP + 0x14],0x1 JMP 0x0012305a LAB_00122f7d: LEA RAX,[0x133054] CMP dword ptr [RAX],0x0 JNZ 0x00122f96 MOV dword ptr [RSP + 0x14],0x2 JMP 0x0012305a LAB_00122f96: LEA RAX,[0x1330a0] CMP dword ptr [RAX],0x0 JNZ 0x00122faf MOV dword ptr [RSP + 0x14],0x2 JMP 0x0012305a LAB_00122faf: MOVSD XMM0,qword ptr [0x00129200] UCOMISD XMM0,qword ptr [0x00132d40] JBE 0x00122fce MOV dword ptr [RSP + 0x14],0x5 JMP 0x0012305a LAB_00122fce: CMP dword ptr [0x0013311c],0x0 JZ 0x00122fe1 MOV dword ptr [RSP + 0x14],0x6 JMP 0x0012305a LAB_00122fe1: CMP dword ptr [0x001330ec],0x0 JZ 0x00123009 LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV RDX,qword ptr [RSP + 0x8] LEA RSI,[0x12ba82] MOV AL,0x0 CALL 0x001289b0 JMP 0x00123026 LAB_00123009: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV RDX,qword ptr [RSP + 0x8] LEA RSI,[0x12ba82] MOV AL,0x0 CALL 0x00101100 LAB_00123026: LEA RAX,[0x13304c] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x13304c] MOV dword ptr [RAX],ECX LEA RAX,[0x133050] MOV dword ptr [RAX],0x21 MOV dword ptr [0x00133118],0x1 MOV dword ptr [RSP + 0x14],0x0 LAB_0012305a: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* LefDefParser::lefwMacroPinAntennaModel(char const*) */ int4 LefDefParser::lefwMacroPinAntennaModel(char *param_1) { int4 local_4; lefw54Num = 0x75; if (lefwFile == (_IO_FILE *)0x0) { local_4 = 1; } else if (lefwDidInit == 0) { local_4 = 2; } else if (lefwIsMacroPin == 0) { local_4 = 2; } else if (DAT_00129200 <= versionNum) { if (lefwAntenna53 == 0) { if (lefwWriteEncrypt == 0) { fprintf(lefwFile," ANTENNAMODEL %s ;\n",param_1); } else { encPrint(lefwFile," ANTENNAMODEL %s ;\n",param_1); } lefwLines = lefwLines + 1; lefwState = 0x21; lefwAntenna54 = 1; local_4 = 0; } else { local_4 = 6; } } else { local_4 = 5; } return local_4; }
36,829
R3D_SetLightColor
r3d/src/r3d_lighting.c
void R3D_SetLightColor(R3D_Light id, Color color) { r3d_get_and_check_light(light, id); light->color.x = color.r / 255.0f; light->color.y = color.g / 255.0f; light->color.z = color.b / 255.0f; }
O3
c
R3D_SetLightColor: pushq %rbp movq %rsp, %rbp movl %edi, %edx testl %edi, %edi je 0xbeb98 leaq 0xf3062(%rip), %rdi # 0x1b1bc0 cmpl %edx, 0x168(%rdi) jbe 0xbeb98 movq 0x128(%rdi), %rcx leal -0x1(%rdx), %eax cmpb $0x1, (%rcx,%rax) jne 0xbeb98 movq 0x108(%rdi), %rcx cmpq %rax, 0x110(%rdi) setbe %r8b testq %rcx, %rcx sete %r9b orb %r8b, %r9b cmpb $0x1, %r9b jne 0xbebac leaq 0x54472(%rip), %rsi # 0x113011 movl $0x5, %edi xorl %eax, %eax popq %rbp jmp 0xaa495 imulq 0x120(%rdi), %rax movl %esi, %edx shrl $0x10, %edx movl %esi, %edi movl $0xff, %r8d andl %r8d, %esi cvtsi2ss %esi, %xmm0 shrl $0x8, %edi movss 0x24469(%rip), %xmm1 # 0xe303c divss %xmm1, %xmm0 movss %xmm0, 0x68(%rcx,%rax) andl %r8d, %edi xorps %xmm0, %xmm0 cvtsi2ss %edi, %xmm0 andl %r8d, %edx cvtsi2ss %edx, %xmm2 divss %xmm1, %xmm0 movss %xmm0, 0x6c(%rcx,%rax) divss %xmm1, %xmm2 movss %xmm2, 0x70(%rcx,%rax) popq %rbp retq
R3D_SetLightColor: push rbp mov rbp, rsp mov edx, edi test edi, edi jz short loc_BEB98 lea rdi, R3D cmp [rdi+168h], edx jbe short loc_BEB98 mov rcx, [rdi+128h] lea eax, [rdx-1] cmp byte ptr [rcx+rax], 1 jnz short loc_BEB98 mov rcx, [rdi+108h] cmp [rdi+110h], rax setbe r8b test rcx, rcx setz r9b or r9b, r8b cmp r9b, 1 jnz short loc_BEBAC loc_BEB98: lea rsi, aLightIdIIsNotV; "Light [ID %i] is not valid" mov edi, 5 xor eax, eax pop rbp jmp TraceLog loc_BEBAC: imul rax, [rdi+120h] mov edx, esi shr edx, 10h mov edi, esi mov r8d, 0FFh and esi, r8d cvtsi2ss xmm0, esi shr edi, 8 movss xmm1, cs:dword_E303C divss xmm0, xmm1 movss dword ptr [rcx+rax+68h], xmm0 and edi, r8d xorps xmm0, xmm0 cvtsi2ss xmm0, edi and edx, r8d cvtsi2ss xmm2, edx divss xmm0, xmm1 movss dword ptr [rcx+rax+6Ch], xmm0 divss xmm2, xmm1 movss dword ptr [rcx+rax+70h], xmm2 pop rbp retn
void R3D_SetLightColor(unsigned int a1, int a2) { unsigned long long v2; // rax long long v3; // rcx long long v4; // rax if ( a1 && *((_DWORD *)&R3D + 90) > a1 && (v2 = a1 - 1, *(_BYTE *)(*((_QWORD *)&R3D + 37) + v2) == 1) && (v3 = *((_QWORD *)&R3D + 33), *((_QWORD *)&R3D + 34) > v2 && v3 != 0) ) { v4 = *((_QWORD *)&R3D + 36) * v2; *(float *)(v3 + v4 + 104) = (float)(unsigned __int8)a2 / 255.0; *(float *)(v3 + v4 + 108) = (float)BYTE1(a2) / 255.0; *(float *)(v3 + v4 + 112) = (float)BYTE2(a2) / 255.0; } else { TraceLog(5, (long long)"Light [ID %i] is not valid", a1); } }
R3D_SetLightColor: PUSH RBP MOV RBP,RSP MOV EDX,EDI TEST EDI,EDI JZ 0x001beb98 LEA RDI,[0x2b1bc0] CMP dword ptr [RDI + 0x168],EDX JBE 0x001beb98 MOV RCX,qword ptr [RDI + 0x128] LEA EAX,[RDX + -0x1] CMP byte ptr [RCX + RAX*0x1],0x1 JNZ 0x001beb98 MOV RCX,qword ptr [RDI + 0x108] CMP qword ptr [RDI + 0x110],RAX SETBE R8B TEST RCX,RCX SETZ R9B OR R9B,R8B CMP R9B,0x1 JNZ 0x001bebac LAB_001beb98: LEA RSI,[0x213011] MOV EDI,0x5 XOR EAX,EAX POP RBP JMP 0x001aa495 LAB_001bebac: IMUL RAX,qword ptr [RDI + 0x120] MOV EDX,ESI SHR EDX,0x10 MOV EDI,ESI MOV R8D,0xff AND ESI,R8D CVTSI2SS XMM0,ESI SHR EDI,0x8 MOVSS XMM1,dword ptr [0x001e303c] DIVSS XMM0,XMM1 MOVSS dword ptr [RCX + RAX*0x1 + 0x68],XMM0 AND EDI,R8D XORPS XMM0,XMM0 CVTSI2SS XMM0,EDI AND EDX,R8D CVTSI2SS XMM2,EDX DIVSS XMM0,XMM1 MOVSS dword ptr [RCX + RAX*0x1 + 0x6c],XMM0 DIVSS XMM2,XMM1 MOVSS dword ptr [RCX + RAX*0x1 + 0x70],XMM2 POP RBP RET
void R3D_SetLightColor(uint param_1,uint param_2) { float fVar1; long lVar2; ulong uVar3; long lVar4; lVar2 = DAT_002b1cc8; fVar1 = DAT_001e303c; if ((param_1 != 0) && (param_1 < (uint)DAT_002b1d28)) { uVar3 = (ulong)(param_1 - 1); if (*(char *)(DAT_002b1ce8 + uVar3) == '\x01') { if (DAT_002b1cc8 != 0 && uVar3 < DAT_002b1cd0) { lVar4 = uVar3 * DAT_002b1ce0; *(float *)(DAT_002b1cc8 + 0x68 + lVar4) = (float)(param_2 & 0xff) / DAT_001e303c; *(float *)(lVar2 + 0x6c + lVar4) = (float)(param_2 >> 8 & 0xff) / fVar1; *(float *)(lVar2 + 0x70 + lVar4) = (float)(param_2 >> 0x10 & 0xff) / fVar1; return; } } } TraceLog(5,"Light [ID %i] is not valid"); return; }
36,830
ma_set_share_data_file_length
eloqsql/storage/maria/ma_state.c
void _ma_set_share_data_file_length(MARIA_SHARE *share, ulonglong new_length) { if (!share->internal_table) mysql_mutex_lock(&share->intern_lock); if (share->state.state.data_file_length < new_length) { share->state.state.data_file_length= new_length; if (new_length >= share->base.max_data_file_length) { /* Give an error on next insert */ share->state.changed|= STATE_DATA_FILE_FULL; } } if (!share->internal_table) mysql_mutex_unlock(&share->intern_lock); }
O3
c
ma_set_share_data_file_length: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx cmpb $0x0, 0x7e2(%rdi) jne 0x388a0 leaq 0x8f0(%rbx), %rdi cmpq $0x0, 0x930(%rbx) jne 0x388e7 callq 0x29220 cmpq %r14, 0x40(%rbx) jae 0x388ba movq %r14, 0x40(%rbx) cmpq %r14, 0x368(%rbx) ja 0x388ba orb $0x10, 0x171(%rbx) cmpb $0x0, 0x7e2(%rbx) je 0x388c8 popq %rbx popq %r14 popq %rbp retq movq 0x930(%rbx), %rdi addq $0x8f0, %rbx # imm = 0x8F0 testq %rdi, %rdi jne 0x388fa movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0x291e0 leaq 0xa0af9(%rip), %rsi # 0xd93e7 movl $0x313, %edx # imm = 0x313 callq 0x2eb8f jmp 0x388a0 leaq 0x34d70f(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x388db
_ma_set_share_data_file_length: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi mov rbx, rdi cmp byte ptr [rdi+7E2h], 0 jnz short loc_388A0 lea rdi, [rbx+8F0h] cmp qword ptr [rbx+930h], 0 jnz short loc_388E7 call _pthread_mutex_lock loc_388A0: cmp [rbx+40h], r14 jnb short loc_388BA mov [rbx+40h], r14 cmp [rbx+368h], r14 ja short loc_388BA or byte ptr [rbx+171h], 10h loc_388BA: cmp byte ptr [rbx+7E2h], 0 jz short loc_388C8 pop rbx pop r14 pop rbp retn loc_388C8: mov rdi, [rbx+930h] add rbx, 8F0h test rdi, rdi jnz short loc_388FA loc_388DB: mov rdi, rbx pop rbx pop r14 pop rbp jmp _pthread_mutex_unlock loc_388E7: lea rsi, aWorkspaceLlm4b_28; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 313h call psi_mutex_lock jmp short loc_388A0 loc_388FA: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_388DB
long long ma_set_share_data_file_length(long long a1, unsigned long long a2) { long long v3; // rdi long long result; // rax long long v5; // rdi long long v6; // rbx if ( !*(_BYTE *)(a1 + 2018) ) { v3 = a1 + 2288; if ( *(_QWORD *)(a1 + 2352) ) result = psi_mutex_lock(v3, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c", 0x313u); else result = pthread_mutex_lock(v3); } if ( *(_QWORD *)(a1 + 64) < a2 ) { *(_QWORD *)(a1 + 64) = a2; if ( *(_QWORD *)(a1 + 872) <= a2 ) *(_BYTE *)(a1 + 369) |= 0x10u; } if ( !*(_BYTE *)(a1 + 2018) ) { v5 = *(_QWORD *)(a1 + 2352); v6 = a1 + 2288; if ( v5 ) PSI_server[44](); return pthread_mutex_unlock(v6); } return result; }
_ma_set_share_data_file_length: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI MOV RBX,RDI CMP byte ptr [RDI + 0x7e2],0x0 JNZ 0x001388a0 LEA RDI,[RBX + 0x8f0] CMP qword ptr [RBX + 0x930],0x0 JNZ 0x001388e7 CALL 0x00129220 LAB_001388a0: CMP qword ptr [RBX + 0x40],R14 JNC 0x001388ba MOV qword ptr [RBX + 0x40],R14 CMP qword ptr [RBX + 0x368],R14 JA 0x001388ba OR byte ptr [RBX + 0x171],0x10 LAB_001388ba: CMP byte ptr [RBX + 0x7e2],0x0 JZ 0x001388c8 POP RBX POP R14 POP RBP RET LAB_001388c8: MOV RDI,qword ptr [RBX + 0x930] ADD RBX,0x8f0 TEST RDI,RDI JNZ 0x001388fa LAB_001388db: MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x001291e0 LAB_001388e7: LEA RSI,[0x1d93e7] MOV EDX,0x313 CALL 0x0012eb8f JMP 0x001388a0 LAB_001388fa: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001388db
void _ma_set_share_data_file_length(long param_1,ulong param_2) { if (*(char *)(param_1 + 0x7e2) == '\0') { if (*(long *)(param_1 + 0x930) == 0) { pthread_mutex_lock((pthread_mutex_t *)(param_1 + 0x8f0)); } else { psi_mutex_lock((pthread_mutex_t *)(param_1 + 0x8f0), "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c",0x313); } } if ((*(ulong *)(param_1 + 0x40) < param_2) && (*(ulong *)(param_1 + 0x40) = param_2, *(ulong *)(param_1 + 0x368) <= param_2)) { *(byte *)(param_1 + 0x171) = *(byte *)(param_1 + 0x171) | 0x10; } if (*(char *)(param_1 + 0x7e2) != '\0') { return; } if (*(long *)(param_1 + 0x930) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)(param_1 + 0x8f0)); return; }
36,831
my_uca_implicit_weight_put
eloqsql/strings/ctype-uca.c
static inline void my_uca_implicit_weight_put(uint16 *to, my_wc_t code, uint level) { switch (level) { case 1: to[0]= 0x0020; to[1]= 0; break; /* Secondary level */ case 2: to[0]= 0x0002; to[1]= 0; break; /* Tertiary level */ case 3: to[0]= 0x0001; to[1]= 0; break; /* Quaternary level */ default: DBUG_ASSERT(0); case 0: break; } /* Primary level */ to[0]= (uint16)(code >> 15) + my_uca_implicit_weight_base(code); to[1]= (code & 0x7FFF) | 0x8000; to[2]= 0; }
O0
c
my_uca_implicit_weight_put: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl -0x14(%rbp), %eax movq %rax, -0x20(%rbp) subq $0x3, %rax ja 0x87513 movq -0x20(%rbp), %rax leaq 0xf3791(%rip), %rcx # 0x17ac5c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x8(%rbp), %rax movw $0x20, (%rax) movq -0x8(%rbp), %rax movw $0x0, 0x2(%rax) jmp 0x8751b movq -0x8(%rbp), %rax movw $0x2, (%rax) movq -0x8(%rbp), %rax movw $0x0, 0x2(%rax) jmp 0x8751b movq -0x8(%rbp), %rax movw $0x1, (%rax) movq -0x8(%rbp), %rax movw $0x0, 0x2(%rax) jmp 0x8751b jmp 0x87515 jmp 0x87517 jmp 0x87519 jmp 0x8751b movq -0x10(%rbp), %rax shrq $0xf, %rax movzwl %ax, %eax movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rdi callq 0x87580 movw %ax, %cx movl -0x24(%rbp), %eax movzwl %cx, %ecx addl %ecx, %eax movw %ax, %cx movq -0x8(%rbp), %rax movw %cx, (%rax) movq -0x10(%rbp), %rax andq $0x7fff, %rax # imm = 0x7FFF orq $0x8000, %rax # imm = 0x8000 movw %ax, %cx movq -0x8(%rbp), %rax movw %cx, 0x2(%rax) movq -0x8(%rbp), %rax movw $0x0, 0x4(%rax) addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_uca_implicit_weight_put: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov eax, [rbp+var_14] mov [rbp+var_20], rax sub rax, 3; switch 4 cases ja short def_874D2; jumptable 00000000000874D2 default case mov rax, [rbp+var_20] lea rcx, jpt_874D2 movsxd rax, ds:(jpt_874D2 - 17AC5Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_874D4: mov rax, [rbp+var_8]; jumptable 00000000000874D2 case 1 mov word ptr [rax], 20h ; ' ' mov rax, [rbp+var_8] mov word ptr [rax+2], 0 jmp short loc_8751B loc_874E9: mov rax, [rbp+var_8]; jumptable 00000000000874D2 case 2 mov word ptr [rax], 2 mov rax, [rbp+var_8] mov word ptr [rax+2], 0 jmp short loc_8751B loc_874FE: mov rax, [rbp+var_8]; jumptable 00000000000874D2 case 3 mov word ptr [rax], 1 mov rax, [rbp+var_8] mov word ptr [rax+2], 0 jmp short loc_8751B def_874D2: jmp short $+2; jumptable 00000000000874D2 default case loc_87515: jmp short $+2 loc_87517: jmp short $+2; jumptable 00000000000874D2 case 0 loc_87519: jmp short $+2; jumptable 00000000000874D2 case 0 loc_8751B: mov rax, [rbp+var_10] shr rax, 0Fh movzx eax, ax mov [rbp+var_24], eax mov rdi, [rbp+var_10] call my_uca_implicit_weight_base mov cx, ax mov eax, [rbp+var_24] movzx ecx, cx add eax, ecx mov cx, ax mov rax, [rbp+var_8] mov [rax], cx mov rax, [rbp+var_10] and rax, 7FFFh or rax, 8000h mov cx, ax mov rax, [rbp+var_8] mov [rax+2], cx mov rax, [rbp+var_8] mov word ptr [rax+4], 0 add rsp, 30h pop rbp retn
_WORD * my_uca_implicit_weight_put(_WORD *a1, unsigned long long a2, int a3) { _WORD *result; // rax switch ( a3 ) { case 1: *a1 = 32; a1[1] = 0; break; case 2: *a1 = 2; a1[1] = 0; break; case 3: *a1 = 1; a1[1] = 0; break; default: break; } *a1 = my_uca_implicit_weight_base(a2) + (a2 >> 15); a1[1] = a2 & 0x7FFF | 0x8000; result = a1; a1[2] = 0; return result; }
my_uca_implicit_weight_put: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV EAX,dword ptr [RBP + -0x14] MOV qword ptr [RBP + -0x20],RAX SUB RAX,0x3 JA 0x00187513 MOV RAX,qword ptr [RBP + -0x20] LEA RCX,[0x27ac5c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],0x20 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],0x0 JMP 0x0018751b caseD_2: MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],0x2 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],0x0 JMP 0x0018751b caseD_3: MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],0x1 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],0x0 JMP 0x0018751b LAB_00187513: JMP 0x00187515 LAB_00187515: JMP 0x00187517 LAB_00187517: JMP 0x00187519 caseD_0: JMP 0x0018751b LAB_0018751b: MOV RAX,qword ptr [RBP + -0x10] SHR RAX,0xf MOVZX EAX,AX MOV dword ptr [RBP + -0x24],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00187580 MOV CX,AX MOV EAX,dword ptr [RBP + -0x24] MOVZX ECX,CX ADD EAX,ECX MOV CX,AX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x7fff OR RAX,0x8000 MOV CX,AX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],CX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x4],0x0 ADD RSP,0x30 POP RBP RET
void my_uca_implicit_weight_put(short *param_1,ulong param_2,int4 param_3) { short sVar1; switch(param_3) { default: break; case 1: *param_1 = 0x20; param_1[1] = 0; break; case 2: *param_1 = 2; param_1[1] = 0; break; case 3: *param_1 = 1; param_1[1] = 0; } sVar1 = my_uca_implicit_weight_base(param_2); *param_1 = (short)(param_2 >> 0xf) + sVar1; param_1[1] = (ushort)param_2 & 0x7fff | 0x8000; param_1[2] = 0; return; }
36,832
delete_dynamic_record
eloqsql/storage/maria/ma_dynrec.c
static my_bool delete_dynamic_record(MARIA_HA *info, MARIA_RECORD_POS filepos, uint second_read) { uint length,b_type; MARIA_BLOCK_INFO block_info,del_block; int error; my_bool remove_next_block; DBUG_ENTER("delete_dynamic_record"); /* First add a link from the last block to the new one */ error= update_backward_delete_link(info, info->s->state.dellink, filepos); block_info.second_read=second_read; do { /* Remove block at 'filepos' */ if ((b_type= _ma_get_block_info(info, &block_info, info->dfile.file, filepos)) & (BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR | BLOCK_FATAL_ERROR) || (length=(uint) (block_info.filepos-filepos) +block_info.block_len) < MARIA_MIN_BLOCK_LENGTH) { _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); DBUG_RETURN(1); } /* Check if next block is a delete block */ del_block.second_read=0; remove_next_block=0; if (_ma_get_block_info(info, &del_block, info->dfile.file, filepos + length) & BLOCK_DELETED && del_block.block_len+length < MARIA_DYN_MAX_BLOCK_LENGTH) { /* We can't remove this yet as this block may be the head block */ remove_next_block=1; length+=del_block.block_len; } block_info.header[0]=0; mi_int3store(block_info.header+1,length); mi_sizestore(block_info.header+4,info->s->state.dellink); if (b_type & BLOCK_LAST) bfill(block_info.header+12,8,255); else mi_sizestore(block_info.header+12,block_info.next_filepos); if (info->s->file_write(info, block_info.header, 20, filepos, MYF(MY_NABP))) DBUG_RETURN(1); info->s->state.dellink = filepos; info->state->del++; info->state->empty+=length; filepos=block_info.next_filepos; /* Now it's safe to unlink the deleted block directly after this one */ if (remove_next_block && unlink_deleted_block(info,&del_block)) error=1; } while (!(b_type & BLOCK_LAST)); DBUG_RETURN(error); }
O3
c
delete_dynamic_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movl %edx, %r13d movq %rsi, %r15 movq %rdi, %r12 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq (%rdi), %rax movq 0xc8(%rax), %rsi movq %r15, %rdx callq 0x3df5f movl %eax, -0xe4(%rbp) leaq -0x88(%rbp), %rax movl %r13d, 0x50(%rax) movl 0x480(%r12), %edx movq %r12, %rdi leaq -0x88(%rbp), %rsi movq %r15, %rcx callq 0x3da10 cmpl $0x3, %eax ja 0x3d2cd movq -0x50(%rbp), %rbx subq %r15, %rbx addq -0x60(%rbp), %rbx cmpl $0x13, %ebx jbe 0x3d2cd movl %eax, %r13d movl $0x0, -0x90(%rbp) movl 0x480(%r12), %edx movq %r15, %rax movl %ebx, %r15d movq %rax, -0xf0(%rbp) leaq (%r15,%rax), %rcx movq %r12, %rdi leaq -0xe0(%rbp), %rsi callq 0x3da10 testb $0x4, %al sete %al addq -0xb8(%rbp), %r15 cmpq $0xfffffc, %r15 # imm = 0xFFFFFC setae %r14b orb %al, %r14b jne 0x3d1f9 movq %r15, %rbx movb $0x0, -0x88(%rbp) movb %bl, -0x85(%rbp) movb %bh, -0x86(%rbp) movl %ebx, %eax shrl $0x10, %eax movb %al, -0x87(%rbp) movq (%r12), %rax movq 0xc8(%rax), %rcx bswapq %rcx movq %rcx, -0x84(%rbp) cmpl $0x2, %r13d jae 0x3d23f movq -0x48(%rbp), %rcx bswapq %rcx movq %rcx, -0x7c(%rbp) jmp 0x3d247 movq $-0x1, -0x7c(%rbp) movq -0xf0(%rbp), %r15 movl $0x14, %edx movl $0x4, %r8d movq %r12, %rdi leaq -0x88(%rbp), %rsi movq %r15, %rcx callq *0x6e8(%rax) testq %rax, %rax jne 0x3d2da movl %ebx, %eax movq (%r12), %rcx movq %r15, 0xc8(%rcx) movq 0x20(%r12), %rcx incq 0x8(%rcx) movq 0x20(%r12), %rcx addq %rax, 0x10(%rcx) movq -0x48(%rbp), %r15 testb %r14b, %r14b jne 0x3d2c1 movq %r12, %rdi leaq -0xe0(%rbp), %rsi callq 0x3de1f testb %al, %al movl -0xe4(%rbp), %eax movzbl %al, %eax movl $0x1, %ecx cmovnel %ecx, %eax movl %eax, -0xe4(%rbp) cmpl $0x2, %r13d jb 0x3d16e jmp 0x3d2e2 movq %r12, %rdi movl $0x7f, %esi callq 0x36a4c movb $0x1, %al movl %eax, -0xe4(%rbp) movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x3d309 movl -0xe4(%rbp), %eax addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29270
delete_dynamic_record: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov r13d, edx mov r15, rsi mov r12, rdi mov rax, fs:28h mov [rbp+var_30], rax mov rax, [rdi] mov rsi, [rax+0C8h] mov rdx, r15 call update_backward_delete_link mov [rbp+var_E4], eax lea rax, [rbp+var_88] mov [rax+50h], r13d loc_3D16E: mov edx, [r12+480h] mov rdi, r12 lea rsi, [rbp+var_88] mov rcx, r15 call _ma_get_block_info cmp eax, 3 ja loc_3D2CD mov rbx, [rbp+var_50] sub rbx, r15 add rbx, [rbp+var_60] cmp ebx, 13h jbe loc_3D2CD mov r13d, eax mov [rbp+var_90], 0 mov edx, [r12+480h] mov rax, r15 mov r15d, ebx mov [rbp+var_F0], rax lea rcx, [r15+rax] mov rdi, r12 lea rsi, [rbp+var_E0] call _ma_get_block_info test al, 4 setz al add r15, [rbp+var_B8] cmp r15, 0FFFFFCh setnb r14b or r14b, al jnz short loc_3D1F9 mov rbx, r15 loc_3D1F9: mov [rbp+var_88], 0 mov [rbp+var_85], bl mov [rbp+var_86], bh mov eax, ebx shr eax, 10h mov [rbp+var_87], al mov rax, [r12] mov rcx, [rax+0C8h] bswap rcx mov [rbp+var_84], rcx cmp r13d, 2 jnb short loc_3D23F mov rcx, [rbp+var_48] bswap rcx mov [rbp+var_7C], rcx jmp short loc_3D247 loc_3D23F: mov [rbp+var_7C], 0FFFFFFFFFFFFFFFFh loc_3D247: mov r15, [rbp+var_F0] mov edx, 14h mov r8d, 4 mov rdi, r12 lea rsi, [rbp+var_88] mov rcx, r15 call qword ptr [rax+6E8h] test rax, rax jnz short loc_3D2DA mov eax, ebx mov rcx, [r12] mov [rcx+0C8h], r15 mov rcx, [r12+20h] inc qword ptr [rcx+8] mov rcx, [r12+20h] add [rcx+10h], rax mov r15, [rbp+var_48] test r14b, r14b jnz short loc_3D2C1 mov rdi, r12 lea rsi, [rbp+var_E0] call unlink_deleted_block test al, al mov eax, [rbp+var_E4] movzx eax, al mov ecx, 1 cmovnz eax, ecx mov [rbp+var_E4], eax loc_3D2C1: cmp r13d, 2 jb loc_3D16E jmp short loc_3D2E2 loc_3D2CD: mov rdi, r12 mov esi, 7Fh call _ma_set_fatal_error loc_3D2DA: mov al, 1 mov [rbp+var_E4], eax loc_3D2E2: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_3D309 mov eax, [rbp+var_E4] add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3D309: call ___stack_chk_fail
long long delete_dynamic_record(unsigned int *a1, unsigned long long a2, int a3) { unsigned long long v4; // r15 unsigned int block_info; // eax long long v6; // rdx long long v7; // rcx long long v8; // r8 int v9; // r9d unsigned int v10; // ebx unsigned int v11; // r13d char v12; // al bool v13; // r14 long long v14; // rax _DWORD *v15; // rax bool v16; // zf int v17; // eax unsigned int v19; // [rsp+Ch] [rbp-E4h] _BYTE v20[40]; // [rsp+10h] [rbp-E0h] BYREF long long v21; // [rsp+38h] [rbp-B8h] int v22; // [rsp+60h] [rbp-90h] _BYTE v23[4]; // [rsp+68h] [rbp-88h] BYREF unsigned long long v24; // [rsp+6Ch] [rbp-84h] unsigned long long v25; // [rsp+74h] [rbp-7Ch] long long v26; // [rsp+90h] [rbp-60h] long long v27; // [rsp+A0h] [rbp-50h] unsigned long long v28; // [rsp+A8h] [rbp-48h] int v29; // [rsp+B8h] [rbp-38h] unsigned long long v30; // [rsp+C0h] [rbp-30h] v4 = a2; v30 = __readfsqword(0x28u); v19 = update_backward_delete_link(a1, *(_QWORD *)(*(_QWORD *)a1 + 200LL), a2); v29 = a3; while ( 1 ) { block_info = ma_get_block_info(a1, v23, a1[288], v4); if ( block_info > 3 ) break; v10 = v26 + v27 - v4; if ( v10 <= 0x13 ) break; v11 = block_info; v22 = 0; v12 = ma_get_block_info(a1, v20, a1[288], v10 + v4); v13 = (v12 & 4) == 0 || v21 + (unsigned long long)v10 >= 0xFFFFFC; if ( !v13 ) v10 += v21; v23[0] = 0; v23[2] = BYTE1(v10); v23[3] = v10; v23[1] = BYTE2(v10); v14 = *(_QWORD *)a1; v24 = _byteswap_uint64(*(_QWORD *)(*(_QWORD *)a1 + 200LL)); if ( v11 >= 2 ) v25 = -1LL; else v25 = _byteswap_uint64(v28); v15 = (_DWORD *)(*(long long ( **)(unsigned int *, _BYTE *, long long, unsigned long long, long long))(v14 + 1768))( a1, v23, 20LL, v4, 4LL); if ( v15 ) goto LABEL_17; *(_QWORD *)(*(_QWORD *)a1 + 200LL) = v4; ++*(_QWORD *)(*((_QWORD *)a1 + 4) + 8LL); *(_QWORD *)(*((_QWORD *)a1 + 4) + 16LL) += v10; v4 = v28; if ( !v13 ) { v16 = (unsigned __int8)unlink_deleted_block(a1, v20) == 0; v17 = (unsigned __int8)v19; if ( !v16 ) v17 = 1; v19 = v17; } if ( v11 >= 2 ) return v19; } v15 = ma_set_fatal_error(a1, 127LL, v6, v7, v8, v9); LABEL_17: LOBYTE(v15) = 1; return (unsigned int)v15; }
delete_dynamic_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV R13D,EDX MOV R15,RSI MOV R12,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RDI] MOV RSI,qword ptr [RAX + 0xc8] MOV RDX,R15 CALL 0x0013df5f MOV dword ptr [RBP + -0xe4],EAX LEA RAX,[RBP + -0x88] MOV dword ptr [RAX + 0x50],R13D LAB_0013d16e: MOV EDX,dword ptr [R12 + 0x480] MOV RDI,R12 LEA RSI,[RBP + -0x88] MOV RCX,R15 CALL 0x0013da10 CMP EAX,0x3 JA 0x0013d2cd MOV RBX,qword ptr [RBP + -0x50] SUB RBX,R15 ADD RBX,qword ptr [RBP + -0x60] CMP EBX,0x13 JBE 0x0013d2cd MOV R13D,EAX MOV dword ptr [RBP + -0x90],0x0 MOV EDX,dword ptr [R12 + 0x480] MOV RAX,R15 MOV R15D,EBX MOV qword ptr [RBP + -0xf0],RAX LEA RCX,[R15 + RAX*0x1] MOV RDI,R12 LEA RSI,[RBP + -0xe0] CALL 0x0013da10 TEST AL,0x4 SETZ AL ADD R15,qword ptr [RBP + -0xb8] CMP R15,0xfffffc SETNC R14B OR R14B,AL JNZ 0x0013d1f9 MOV RBX,R15 LAB_0013d1f9: MOV byte ptr [RBP + -0x88],0x0 MOV byte ptr [RBP + -0x85],BL MOV byte ptr [RBP + -0x86],BH MOV EAX,EBX SHR EAX,0x10 MOV byte ptr [RBP + -0x87],AL MOV RAX,qword ptr [R12] MOV RCX,qword ptr [RAX + 0xc8] BSWAP RCX MOV qword ptr [RBP + -0x84],RCX CMP R13D,0x2 JNC 0x0013d23f MOV RCX,qword ptr [RBP + -0x48] BSWAP RCX MOV qword ptr [RBP + -0x7c],RCX JMP 0x0013d247 LAB_0013d23f: MOV qword ptr [RBP + -0x7c],-0x1 LAB_0013d247: MOV R15,qword ptr [RBP + -0xf0] MOV EDX,0x14 MOV R8D,0x4 MOV RDI,R12 LEA RSI,[RBP + -0x88] MOV RCX,R15 CALL qword ptr [RAX + 0x6e8] TEST RAX,RAX JNZ 0x0013d2da MOV EAX,EBX MOV RCX,qword ptr [R12] MOV qword ptr [RCX + 0xc8],R15 MOV RCX,qword ptr [R12 + 0x20] INC qword ptr [RCX + 0x8] MOV RCX,qword ptr [R12 + 0x20] ADD qword ptr [RCX + 0x10],RAX MOV R15,qword ptr [RBP + -0x48] TEST R14B,R14B JNZ 0x0013d2c1 MOV RDI,R12 LEA RSI,[RBP + -0xe0] CALL 0x0013de1f TEST AL,AL MOV EAX,dword ptr [RBP + -0xe4] MOVZX EAX,AL MOV ECX,0x1 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0xe4],EAX LAB_0013d2c1: CMP R13D,0x2 JC 0x0013d16e JMP 0x0013d2e2 LAB_0013d2cd: MOV RDI,R12 MOV ESI,0x7f CALL 0x00136a4c LAB_0013d2da: MOV AL,0x1 MOV dword ptr [RBP + -0xe4],EAX LAB_0013d2e2: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0013d309 MOV EAX,dword ptr [RBP + -0xe4] ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013d309: CALL 0x00129270
uint delete_dynamic_record(long *param_1,ulong param_2,int4 param_3) { ulong uVar1; char cVar2; uint uVar3; ulong uVar4; long lVar5; ulong uVar6; long in_FS_OFFSET; bool bVar7; uint local_ec; int1 local_e8 [40]; long local_c0; int4 local_98; int1 local_90; int1 local_8f; int1 local_8e; int1 local_8d; ulong local_8c; ulong local_84; long local_68; long local_58; ulong local_50; int4 local_40; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_ec = update_backward_delete_link(param_1,*(int8 *)(*param_1 + 200),param_2); local_40 = param_3; do { uVar3 = _ma_get_block_info(param_1,&local_90,(int)param_1[0x90],param_2); if ((3 < uVar3) || (uVar6 = (local_58 - param_2) + local_68, (uint)uVar6 < 0x14)) { lVar5 = _ma_set_fatal_error(param_1,0x7f); LAB_0013d2da: local_ec = (uint)CONCAT71((int7)((ulong)lVar5 >> 8),1); break; } local_98 = 0; uVar4 = _ma_get_block_info(param_1,local_e8,(int)param_1[0x90],(uVar6 & 0xffffffff) + param_2); bVar7 = (uVar4 & 4) != 0; uVar4 = (uVar6 & 0xffffffff) + local_c0; if (uVar4 < 0xfffffc && bVar7) { uVar6 = uVar4; } local_90 = 0; local_8d = (int1)uVar6; local_8e = (int1)(uVar6 >> 8); local_8f = (int1)(uVar6 >> 0x10); uVar1 = *(ulong *)(*param_1 + 200); local_8c = uVar1 >> 0x38 | (uVar1 & 0xff000000000000) >> 0x28 | (uVar1 & 0xff0000000000) >> 0x18 | (uVar1 & 0xff00000000) >> 8 | (uVar1 & 0xff000000) << 8 | (uVar1 & 0xff0000) << 0x18 | (uVar1 & 0xff00) << 0x28 | uVar1 << 0x38; if (uVar3 < 2) { local_84 = local_50 >> 0x38 | (local_50 & 0xff000000000000) >> 0x28 | (local_50 & 0xff0000000000) >> 0x18 | (local_50 & 0xff00000000) >> 8 | (local_50 & 0xff000000) << 8 | (local_50 & 0xff0000) << 0x18 | (local_50 & 0xff00) << 0x28 | local_50 << 0x38; } else { local_84 = 0xffffffffffffffff; } lVar5 = (**(code **)(*param_1 + 0x6e8))(param_1,&local_90,0x14,param_2,4); uVar1 = local_50; if (lVar5 != 0) goto LAB_0013d2da; *(ulong *)(*param_1 + 200) = param_2; *(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + 1; *(long *)(param_1[4] + 0x10) = *(long *)(param_1[4] + 0x10) + (uVar6 & 0xffffffff); if (uVar4 < 0xfffffc && bVar7) { cVar2 = unlink_deleted_block(param_1,local_e8); local_ec = local_ec & 0xff; if (cVar2 != '\0') { local_ec = 1; } } param_2 = uVar1; } while (uVar3 < 2); if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_ec; }
36,833
ImPlot3D::RenderMousePos()
zkingston[P]unknot/build_O0/_deps/implot3d-src/implot3d.cpp
void RenderMousePos() { ImPlot3DContext& gp = *GImPlot3D; ImPlot3DPlot& plot = *gp.CurrentPlot; if (ImPlot3D::ImHasFlag(plot.Flags, ImPlot3DFlags_NoMouseText)) return; ImVec2 mouse_pos = ImGui::GetMousePos(); ImPlot3DPoint mouse_plot_pos = PixelsToPlotPlane(mouse_pos, ImPlane3D_YZ, true); if (mouse_plot_pos.IsNaN()) mouse_plot_pos = PixelsToPlotPlane(mouse_pos, ImPlane3D_XZ, true); if (mouse_plot_pos.IsNaN()) mouse_plot_pos = PixelsToPlotPlane(mouse_pos, ImPlane3D_XY, true); char buff[IMPLOT3D_LABEL_MAX_SIZE]; if (!mouse_plot_pos.IsNaN()) { ImGuiTextBuffer builder; builder.append("("); for (int i = 0; i < 3; i++) { ImPlot3DAxis& axis = plot.Axes[i]; if (i > 0) builder.append(", "); axis.Formatter(mouse_plot_pos[i], buff, IMPLOT3D_LABEL_MAX_SIZE, axis.FormatterData); builder.append(buff); } builder.append(")"); const ImVec2 size = ImGui::CalcTextSize(builder.c_str()); // TODO custom location/padding const ImVec2 pos = GetLocationPos(plot.PlotRect, size, ImPlot3DLocation_SouthEast, ImVec2(10, 10)); ImDrawList& draw_list = *ImGui::GetWindowDrawList(); draw_list.AddText(pos, GetStyleColorU32(ImPlot3DCol_InlayText), builder.c_str()); } }
O0
cpp
ImPlot3D::RenderMousePos(): subq $0x158, %rsp # imm = 0x158 movq 0x5c551a(%rip), %rax # 0x68f638 movq %rax, 0x150(%rsp) movq 0x150(%rsp), %rax movq 0x28(%rax), %rax movq %rax, 0x148(%rsp) movq 0x148(%rsp), %rax movl 0x4(%rax), %edi movl $0x4, %esi callq 0xca0f0 testb $0x1, %al jne 0xca155 jmp 0xca15a jmp 0xca513 callq 0x514bc0 movlpd %xmm0, 0x140(%rsp) leaq 0x140(%rsp), %rdi xorl %esi, %esi movl $0x1, %edx callq 0xca530 movss %xmm1, 0x128(%rsp) movlpd %xmm0, 0x120(%rsp) movq 0x120(%rsp), %rax movq %rax, 0x134(%rsp) movl 0x128(%rsp), %eax movl %eax, 0x13c(%rsp) leaq 0x134(%rsp), %rdi callq 0xca890 testb $0x1, %al jne 0xca1bf jmp 0xca221 leaq 0x140(%rsp), %rdi movl $0x1, %edx movl %edx, %esi callq 0xca530 movss %xmm1, 0x108(%rsp) movlpd %xmm0, 0x100(%rsp) movq 0x100(%rsp), %rax movq %rax, 0x114(%rsp) movl 0x108(%rsp), %eax movl %eax, 0x11c(%rsp) movq 0x114(%rsp), %rax movq %rax, 0x134(%rsp) movl 0x11c(%rsp), %eax movl %eax, 0x13c(%rsp) leaq 0x134(%rsp), %rdi callq 0xca890 testb $0x1, %al jne 0xca234 jmp 0xca299 leaq 0x140(%rsp), %rdi movl $0x2, %esi movl $0x1, %edx callq 0xca530 movss %xmm1, 0xe8(%rsp) movlpd %xmm0, 0xe0(%rsp) movq 0xe0(%rsp), %rax movq %rax, 0xf4(%rsp) movl 0xe8(%rsp), %eax movl %eax, 0xfc(%rsp) movq 0xf4(%rsp), %rax movq %rax, 0x134(%rsp) movl 0xfc(%rsp), %eax movl %eax, 0x13c(%rsp) leaq 0x134(%rsp), %rdi callq 0xca890 testb $0x1, %al jne 0xca513 leaq 0xb0(%rsp), %rdi movq %rdi, 0x70(%rsp) callq 0xd8b20 movq 0x70(%rsp), %rdi leaq 0x50d3e2(%rip), %rsi # 0x5d76ae xorl %eax, %eax movl %eax, %edx callq 0x4f5670 jmp 0xca2d7 movl $0x0, 0xa0(%rsp) cmpl $0x3, 0xa0(%rsp) jge 0xca3ea movq 0x148(%rsp), %rax addq $0x78, %rax movslq 0xa0(%rsp), %rcx imulq $0x70, %rcx, %rcx addq %rcx, %rax movq %rax, 0x98(%rsp) cmpl $0x0, 0xa0(%rsp) jle 0xca35f leaq 0x5035e4(%rip), %rsi # 0x5cd908 xorl %eax, %eax movl %eax, %edx leaq 0xb0(%rsp), %rdi callq 0x4f5670 jmp 0xca337 jmp 0xca35f movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa8(%rsp) movl %eax, 0xa4(%rsp) leaq 0xb0(%rsp), %rdi callq 0xd8b90 jmp 0xca51b movq 0x98(%rsp), %rax movq 0x48(%rax), %rax movq %rax, 0x60(%rsp) movslq 0xa0(%rsp), %rsi leaq 0x134(%rsp), %rdi callq 0xd8b30 movq %rax, 0x68(%rsp) jmp 0xca38c movq 0x60(%rsp), %rax movq 0x68(%rsp), %rcx movss (%rcx), %xmm0 movq 0x98(%rsp), %rcx movq 0x50(%rcx), %rdx leaq 0xc0(%rsp), %rdi movl $0x20, %esi callq *%rax jmp 0xca3b7 xorl %eax, %eax movl %eax, %edx leaq 0xb0(%rsp), %rdi leaq 0xc0(%rsp), %rsi callq 0x4f5670 jmp 0xca3d2 jmp 0xca3d4 movl 0xa0(%rsp), %eax addl $0x1, %eax movl %eax, 0xa0(%rsp) jmp 0xca2e2 leaq 0x52158b(%rip), %rsi # 0x5eb97c xorl %eax, %eax movl %eax, %edx leaq 0xb0(%rsp), %rdi callq 0x4f5670 jmp 0xca404 leaq 0xb0(%rsp), %rdi callq 0xd8b50 movq %rax, 0x58(%rsp) jmp 0xca418 movq 0x58(%rsp), %rdi xorl %edx, %edx movl %edx, %esi movss 0x501be3(%rip), %xmm0 # 0x5cc00c callq 0x4f86c0 movaps %xmm0, 0x40(%rsp) jmp 0xca435 movaps 0x40(%rsp), %xmm0 movlpd %xmm0, 0x90(%rsp) movq 0x148(%rsp), %rax addq $0x44, %rax movq %rax, 0x38(%rsp) leaq 0x80(%rsp), %rdi movss 0x507518(%rip), %xmm1 # 0x5d197c movaps %xmm1, %xmm0 callq 0xa4c10 jmp 0xca46e movq 0x38(%rsp), %rdi leaq 0x90(%rsp), %rsi movl $0xa, %edx leaq 0x80(%rsp), %rcx callq 0xc9210 movaps %xmm0, 0x20(%rsp) jmp 0xca494 movaps 0x20(%rsp), %xmm0 movlpd %xmm0, 0x88(%rsp) callq 0x511ed0 movq %rax, 0x18(%rsp) jmp 0xca4ae movq 0x18(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x8(%rsp) movl $0x5, %edi callq 0xc9d30 movl %eax, 0x14(%rsp) jmp 0xca4d2 leaq 0xb0(%rsp), %rdi callq 0xd8b50 movq %rax, (%rsp) jmp 0xca4e5 movq (%rsp), %rcx movl 0x14(%rsp), %edx movq 0x8(%rsp), %rdi xorl %eax, %eax movl %eax, %r8d leaq 0x88(%rsp), %rsi callq 0x53db90 jmp 0xca506 leaq 0xb0(%rsp), %rdi callq 0xd8b90 addq $0x158, %rsp # imm = 0x158 retq movq 0xa8(%rsp), %rdi callq 0x13540 nopl (%rax,%rax)
_ZN8ImPlot3D14RenderMousePosEv: sub rsp, 158h mov rax, cs:_ZN8ImPlot3D9GImPlot3DE; ImPlot3D::GImPlot3D mov [rsp+158h+var_8], rax mov rax, [rsp+158h+var_8] mov rax, [rax+28h] mov [rsp+158h+var_10], rax mov rax, [rsp+158h+var_10] mov edi, [rax+4]; this mov esi, 4 call _ZN8ImPlot3DL9ImHasFlagIi14ImPlot3DFlags_EEbT_T0_; ImPlot3D::ImHasFlag<int,ImPlot3DFlags_>(int,ImPlot3DFlags_) test al, 1 jnz short loc_CA155 jmp short loc_CA15A loc_CA155: jmp loc_CA513 loc_CA15A: call _ZN5ImGui11GetMousePosEv; ImGui::GetMousePos(void) movlpd [rsp+158h+var_18], xmm0 lea rdi, [rsp+158h+var_18]; this xor esi, esi; ImVec2 * mov edx, 1; int call _ZN8ImPlot3D17PixelsToPlotPlaneERK6ImVec2ib; ImPlot3D::PixelsToPlotPlane(ImVec2 const&,int,bool) movss [rsp+158h+var_30], xmm1 movlpd [rsp+158h+var_38], xmm0 mov rax, [rsp+158h+var_38] mov [rsp+158h+var_24], rax mov eax, [rsp+158h+var_30] mov [rsp+158h+var_1C], eax lea rdi, [rsp+158h+var_24]; this call _ZNK13ImPlot3DPoint5IsNaNEv; ImPlot3DPoint::IsNaN(void) test al, 1 jnz short loc_CA1BF jmp short loc_CA221 loc_CA1BF: lea rdi, [rsp+158h+var_18]; this mov edx, (offset dword_0+1); int mov esi, edx; ImVec2 * call _ZN8ImPlot3D17PixelsToPlotPlaneERK6ImVec2ib; ImPlot3D::PixelsToPlotPlane(ImVec2 const&,int,bool) movss [rsp+158h+var_50], xmm1 movlpd [rsp+158h+var_58], xmm0 mov rax, [rsp+158h+var_58] mov [rsp+158h+var_44], rax mov eax, [rsp+158h+var_50] mov [rsp+158h+var_3C], eax mov rax, [rsp+158h+var_44] mov [rsp+158h+var_24], rax mov eax, [rsp+158h+var_3C] mov [rsp+158h+var_1C], eax loc_CA221: lea rdi, [rsp+158h+var_24]; this call _ZNK13ImPlot3DPoint5IsNaNEv; ImPlot3DPoint::IsNaN(void) test al, 1 jnz short loc_CA234 jmp short loc_CA299 loc_CA234: lea rdi, [rsp+158h+var_18]; this mov esi, (offset dword_0+2); ImVec2 * mov edx, 1; int call _ZN8ImPlot3D17PixelsToPlotPlaneERK6ImVec2ib; ImPlot3D::PixelsToPlotPlane(ImVec2 const&,int,bool) movss [rsp+158h+var_70], xmm1 movlpd [rsp+158h+var_78], xmm0 mov rax, [rsp+158h+var_78] mov [rsp+158h+var_64], rax mov eax, [rsp+158h+var_70] mov [rsp+158h+var_5C], eax mov rax, [rsp+158h+var_64] mov [rsp+158h+var_24], rax mov eax, [rsp+158h+var_5C] mov [rsp+158h+var_1C], eax loc_CA299: lea rdi, [rsp+158h+var_24]; this call _ZNK13ImPlot3DPoint5IsNaNEv; ImPlot3DPoint::IsNaN(void) test al, 1 jnz loc_CA513 lea rdi, [rsp+158h+var_A8]; this mov [rsp+158h+var_E8], rdi call _ZN15ImGuiTextBufferC2Ev; ImGuiTextBuffer::ImGuiTextBuffer(void) mov rdi, [rsp+158h+var_E8]; this lea rsi, asc_5D76AC+2; char * xor eax, eax mov edx, eax; char * call _ZN15ImGuiTextBuffer6appendEPKcS1_; ImGuiTextBuffer::append(char const*,char const*) jmp short $+2 loc_CA2D7: mov [rsp+158h+var_B8], 0 loc_CA2E2: cmp [rsp+158h+var_B8], 3 jge loc_CA3EA mov rax, [rsp+158h+var_10] add rax, 78h ; 'x' movsxd rcx, [rsp+158h+var_B8] imul rcx, 70h ; 'p' add rax, rcx mov [rsp+158h+var_C0], rax cmp [rsp+158h+var_B8], 0 jle short loc_CA35F lea rsi, asc_5CD908; ", " xor eax, eax mov edx, eax; char * lea rdi, [rsp+158h+var_A8]; this call _ZN15ImGuiTextBuffer6appendEPKcS1_; ImGuiTextBuffer::append(char const*,char const*) jmp short $+2 loc_CA337: jmp short loc_CA35F mov rcx, rax mov eax, edx mov [rsp+arg_A0], rcx mov [rsp+arg_9C], eax lea rdi, [rsp+arg_A8]; this call _ZN15ImGuiTextBufferD2Ev; ImGuiTextBuffer::~ImGuiTextBuffer() jmp loc_CA51B loc_CA35F: mov rax, [rsp+158h+var_C0] mov rax, [rax+48h] mov [rsp+158h+var_F8], rax movsxd rsi, [rsp+158h+var_B8] lea rdi, [rsp+158h+var_24] call _ZN13ImPlot3DPointixEm; ImPlot3DPoint::operator[](ulong) mov [rsp+158h+var_F0], rax jmp short $+2 loc_CA38C: mov rax, [rsp+158h+var_F8] mov rcx, [rsp+158h+var_F0] movss xmm0, dword ptr [rcx] mov rcx, [rsp+158h+var_C0] mov rdx, [rcx+50h] lea rdi, [rsp+158h+var_98] mov esi, 20h ; ' ' call rax jmp short $+2 loc_CA3B7: xor eax, eax mov edx, eax; char * lea rdi, [rsp+158h+var_A8]; this lea rsi, [rsp+158h+var_98]; char * call _ZN15ImGuiTextBuffer6appendEPKcS1_; ImGuiTextBuffer::append(char const*,char const*) jmp short $+2 loc_CA3D2: jmp short $+2 loc_CA3D4: mov eax, [rsp+158h+var_B8] add eax, 1 mov [rsp+158h+var_B8], eax jmp loc_CA2E2 loc_CA3EA: lea rsi, asc_5EB97A+2; char * xor eax, eax mov edx, eax; char * lea rdi, [rsp+158h+var_A8]; this call _ZN15ImGuiTextBuffer6appendEPKcS1_; ImGuiTextBuffer::append(char const*,char const*) jmp short $+2 loc_CA404: lea rdi, [rsp+158h+var_A8]; this call _ZNK15ImGuiTextBuffer5c_strEv; ImGuiTextBuffer::c_str(void) mov [rsp+158h+var_100], rax jmp short $+2 loc_CA418: mov rdi, [rsp+158h+var_100]; this xor edx, edx; char * mov esi, edx; char * movss xmm0, cs:flt_5CC00C; float call _ZN5ImGui12CalcTextSizeEPKcS1_bf; ImGui::CalcTextSize(char const*,char const*,bool,float) movaps [rsp+158h+var_118], xmm0 jmp short $+2 loc_CA435: movaps xmm0, [rsp+158h+var_118] movlpd qword ptr [rsp+158h+var_C8], xmm0 mov rax, [rsp+158h+var_10] add rax, 44h ; 'D' mov [rsp+158h+var_120], rax lea rdi, [rsp+158h+var_D8]; this movss xmm1, cs:flt_5D197C; float movaps xmm0, xmm1; float call _ZN6ImVec2C2Eff; ImVec2::ImVec2(float,float) jmp short $+2 loc_CA46E: mov rdi, [rsp+158h+var_120]; this lea rsi, [rsp+158h+var_C8]; int mov edx, (offset byte_9+1); ImVec2 * lea rcx, [rsp+158h+var_D8]; int call _ZN8ImPlot3D14GetLocationPosERK6ImRectRK6ImVec2iS5_; ImPlot3D::GetLocationPos(ImRect const&,ImVec2 const&,int,ImVec2 const&) movaps [rsp+158h+var_138], xmm0 jmp short $+2 loc_CA494: movaps xmm0, [rsp+158h+var_138] movlpd [rsp+158h+var_D0], xmm0 call _ZN5ImGui17GetWindowDrawListEv; ImGui::GetWindowDrawList(void) mov [rsp+158h+var_140], rax jmp short $+2 loc_CA4AE: mov rax, [rsp+158h+var_140] mov [rsp+158h+var_E0], rax mov rax, [rsp+158h+var_E0] mov [rsp+158h+var_150], rax mov edi, offset byte_5; this call _ZN8ImPlot3D16GetStyleColorU32Ei; ImPlot3D::GetStyleColorU32(int) mov [rsp+158h+var_144], eax jmp short $+2 loc_CA4D2: lea rdi, [rsp+158h+var_A8]; this call _ZNK15ImGuiTextBuffer5c_strEv; ImGuiTextBuffer::c_str(void) mov [rsp+158h+var_158], rax jmp short $+2 loc_CA4E5: mov rcx, [rsp+158h+var_158]; char * mov edx, [rsp+158h+var_144]; unsigned int mov rdi, [rsp+158h+var_150]; this xor eax, eax mov r8d, eax; char * lea rsi, [rsp+158h+var_D0]; ImVec2 * call _ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_; ImDrawList::AddText(ImVec2 const&,uint,char const*,char const*) jmp short $+2 loc_CA506: lea rdi, [rsp+158h+var_A8]; this call _ZN15ImGuiTextBufferD2Ev; ImGuiTextBuffer::~ImGuiTextBuffer() loc_CA513: add rsp, 158h retn loc_CA51B: mov rdi, [rsp+arg_A0] call __Unwind_Resume
void ImPlot3D::RenderMousePos(ImPlot3D *this, double a2, float a3) { ImGui *v3; // rdi bool v4; // cl bool v5; // cl bool v6; // cl bool v7; // cl const ImVec2 *v8; // r8 double LocationPos; // xmm0_8 char *v10; // [rsp+0h] [rbp-158h] ImDrawList *WindowDrawList; // [rsp+8h] [rbp-150h] unsigned int StyleColorU32; // [rsp+14h] [rbp-144h] ImPlot3D *v13; // [rsp+38h] [rbp-120h] ImGui *v14; // [rsp+58h] [rbp-100h] void ( *v15)(char *, long long, _QWORD, float); // [rsp+60h] [rbp-F8h] float *v16; // [rsp+68h] [rbp-F0h] int v17; // [rsp+80h] [rbp-D8h] BYREF double v18; // [rsp+88h] [rbp-D0h] BYREF int v19[2]; // [rsp+90h] [rbp-C8h] BYREF long long v20; // [rsp+98h] [rbp-C0h] int i; // [rsp+A0h] [rbp-B8h] char v22[16]; // [rsp+B0h] [rbp-A8h] BYREF char v23[32]; // [rsp+C0h] [rbp-98h] BYREF double v24; // [rsp+E0h] [rbp-78h] float v25; // [rsp+E8h] [rbp-70h] double v26; // [rsp+F4h] [rbp-64h] float v27; // [rsp+FCh] [rbp-5Ch] double v28; // [rsp+100h] [rbp-58h] float v29; // [rsp+108h] [rbp-50h] double v30; // [rsp+114h] [rbp-44h] float v31; // [rsp+11Ch] [rbp-3Ch] double v32; // [rsp+120h] [rbp-38h] float v33; // [rsp+128h] [rbp-30h] double v34; // [rsp+134h] [rbp-24h] BYREF float v35; // [rsp+13Ch] [rbp-1Ch] double v36; // [rsp+140h] [rbp-18h] BYREF long long v37; // [rsp+148h] [rbp-10h] long long v38; // [rsp+150h] [rbp-8h] v38 = ImPlot3D::GImPlot3D; v37 = *(_QWORD *)(ImPlot3D::GImPlot3D + 40); v3 = (ImGui *)*(unsigned int *)(v37 + 4); if ( !ImPlot3D::ImHasFlag<int,ImPlot3DFlags_>((int)v3, 4) ) { ImGui::GetMousePos(v3); v36 = a2; ImPlot3D::PixelsToPlotPlane((ImPlot3D *)&v36, 0LL, 1, v4); v33 = a3; v32 = a2; v34 = a2; v35 = a3; if ( (ImPlot3DPoint::IsNaN((ImPlot3DPoint *)&v34) & 1) != 0 ) { ImPlot3D::PixelsToPlotPlane((ImPlot3D *)&v36, (const ImVec2 *)((unsigned int)&dword_0 + 1), (int)&dword_0 + 1, v5); v29 = a3; v28 = a2; v30 = a2; v31 = a3; v34 = a2; v35 = a3; } if ( (ImPlot3DPoint::IsNaN((ImPlot3DPoint *)&v34) & 1) != 0 ) { ImPlot3D::PixelsToPlotPlane((ImPlot3D *)&v36, (const ImVec2 *)((char *)&dword_0 + 2), 1, v6); v25 = a3; v24 = a2; v26 = a2; v27 = a3; v34 = a2; v35 = a3; } if ( (ImPlot3DPoint::IsNaN((ImPlot3DPoint *)&v34) & 1) == 0 ) { ImGuiTextBuffer::ImGuiTextBuffer((ImGuiTextBuffer *)v22); ImGuiTextBuffer::append((ImGuiTextBuffer *)v22, "(", 0LL); for ( i = 0; i < 3; ++i ) { v20 = 112LL * i + v37 + 120; if ( i > 0 ) ImGuiTextBuffer::append((ImGuiTextBuffer *)v22, ", ", 0LL); v15 = *(void ( **)(char *, long long, _QWORD, float))(v20 + 72); v16 = (float *)ImPlot3DPoint::operator[](&v34, i); v15(v23, 32LL, *(_QWORD *)(v20 + 80), *v16); ImGuiTextBuffer::append((ImGuiTextBuffer *)v22, v23, 0LL); } ImGuiTextBuffer::append((ImGuiTextBuffer *)v22, ")", 0LL); v14 = (ImGui *)ImGuiTextBuffer::c_str((ImGuiTextBuffer *)v22); ImGui::CalcTextSize(v14, 0LL, 0LL, v7, -1.0); *(_QWORD *)v19 = 3212836864LL; v13 = (ImPlot3D *)(v37 + 68); ImVec2::ImVec2((ImVec2 *)&v17, (__m128)0x41200000u, (__m128)0x41200000u); LocationPos = ImPlot3D::GetLocationPos( v13, (const ImRect *)v19, (const ImVec2 *)&byte_9[1], (float *)&v17, v8, 10.0); v18 = LocationPos; WindowDrawList = (ImDrawList *)ImGui::GetWindowDrawList(v13); StyleColorU32 = ImPlot3D::GetStyleColorU32( (ImPlot3D *)&byte_5, (const ImVec4 *)v19, LocationPos, COERCE_DOUBLE(1092616192LL)); v10 = (char *)ImGuiTextBuffer::c_str((ImGuiTextBuffer *)v22); ImDrawList::AddText(WindowDrawList, (const ImVec2 *)&v18, StyleColorU32, v10, 0LL); ImGuiTextBuffer::~ImGuiTextBuffer((ImGuiTextBuffer *)v22); } } }
RenderMousePos: SUB RSP,0x158 MOV RAX,qword ptr [0x0078f638] MOV qword ptr [RSP + 0x150],RAX MOV RAX,qword ptr [RSP + 0x150] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RSP + 0x148],RAX MOV RAX,qword ptr [RSP + 0x148] MOV EDI,dword ptr [RAX + 0x4] MOV ESI,0x4 CALL 0x001ca0f0 TEST AL,0x1 JNZ 0x001ca155 JMP 0x001ca15a LAB_001ca155: JMP 0x001ca513 LAB_001ca15a: CALL 0x00614bc0 MOVLPD qword ptr [RSP + 0x140],XMM0 LEA RDI,[RSP + 0x140] XOR ESI,ESI MOV EDX,0x1 CALL 0x001ca530 MOVSS dword ptr [RSP + 0x128],XMM1 MOVLPD qword ptr [RSP + 0x120],XMM0 MOV RAX,qword ptr [RSP + 0x120] MOV qword ptr [RSP + 0x134],RAX MOV EAX,dword ptr [RSP + 0x128] MOV dword ptr [RSP + 0x13c],EAX LEA RDI,[RSP + 0x134] CALL 0x001ca890 TEST AL,0x1 JNZ 0x001ca1bf JMP 0x001ca221 LAB_001ca1bf: LEA RDI,[RSP + 0x140] MOV EDX,0x1 MOV ESI,EDX CALL 0x001ca530 MOVSS dword ptr [RSP + 0x108],XMM1 MOVLPD qword ptr [RSP + 0x100],XMM0 MOV RAX,qword ptr [RSP + 0x100] MOV qword ptr [RSP + 0x114],RAX MOV EAX,dword ptr [RSP + 0x108] MOV dword ptr [RSP + 0x11c],EAX MOV RAX,qword ptr [RSP + 0x114] MOV qword ptr [RSP + 0x134],RAX MOV EAX,dword ptr [RSP + 0x11c] MOV dword ptr [RSP + 0x13c],EAX LAB_001ca221: LEA RDI,[RSP + 0x134] CALL 0x001ca890 TEST AL,0x1 JNZ 0x001ca234 JMP 0x001ca299 LAB_001ca234: LEA RDI,[RSP + 0x140] MOV ESI,0x2 MOV EDX,0x1 CALL 0x001ca530 MOVSS dword ptr [RSP + 0xe8],XMM1 MOVLPD qword ptr [RSP + 0xe0],XMM0 MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0xf4],RAX MOV EAX,dword ptr [RSP + 0xe8] MOV dword ptr [RSP + 0xfc],EAX MOV RAX,qword ptr [RSP + 0xf4] MOV qword ptr [RSP + 0x134],RAX MOV EAX,dword ptr [RSP + 0xfc] MOV dword ptr [RSP + 0x13c],EAX LAB_001ca299: LEA RDI,[RSP + 0x134] CALL 0x001ca890 TEST AL,0x1 JNZ 0x001ca513 LEA RDI,[RSP + 0xb0] MOV qword ptr [RSP + 0x70],RDI CALL 0x001d8b20 MOV RDI,qword ptr [RSP + 0x70] LAB_001ca2c5: LEA RSI,[0x6d76ae] XOR EAX,EAX MOV EDX,EAX CALL 0x005f5670 JMP 0x001ca2d7 LAB_001ca2d7: MOV dword ptr [RSP + 0xa0],0x0 LAB_001ca2e2: CMP dword ptr [RSP + 0xa0],0x3 JGE 0x001ca3ea MOV RAX,qword ptr [RSP + 0x148] ADD RAX,0x78 MOVSXD RCX,dword ptr [RSP + 0xa0] IMUL RCX,RCX,0x70 ADD RAX,RCX MOV qword ptr [RSP + 0x98],RAX CMP dword ptr [RSP + 0xa0],0x0 JLE 0x001ca35f LEA RSI,[0x6cd908] XOR EAX,EAX MOV EDX,EAX LEA RDI,[RSP + 0xb0] CALL 0x005f5670 JMP 0x001ca337 LAB_001ca337: JMP 0x001ca35f LAB_001ca35f: MOV RAX,qword ptr [RSP + 0x98] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RSP + 0x60],RAX MOVSXD RSI,dword ptr [RSP + 0xa0] LEA RDI,[RSP + 0x134] CALL 0x001d8b30 MOV qword ptr [RSP + 0x68],RAX JMP 0x001ca38c LAB_001ca38c: MOV RAX,qword ptr [RSP + 0x60] MOV RCX,qword ptr [RSP + 0x68] MOVSS XMM0,dword ptr [RCX] MOV RCX,qword ptr [RSP + 0x98] MOV RDX,qword ptr [RCX + 0x50] LEA RDI,[RSP + 0xc0] MOV ESI,0x20 CALL RAX JMP 0x001ca3b7 LAB_001ca3b7: XOR EAX,EAX MOV EDX,EAX LEA RDI,[RSP + 0xb0] LEA RSI,[RSP + 0xc0] CALL 0x005f5670 JMP 0x001ca3d2 LAB_001ca3d2: JMP 0x001ca3d4 LAB_001ca3d4: MOV EAX,dword ptr [RSP + 0xa0] ADD EAX,0x1 MOV dword ptr [RSP + 0xa0],EAX JMP 0x001ca2e2 LAB_001ca3ea: LEA RSI,[0x6eb97c] XOR EAX,EAX MOV EDX,EAX LEA RDI,[RSP + 0xb0] CALL 0x005f5670 JMP 0x001ca404 LAB_001ca404: LEA RDI,[RSP + 0xb0] CALL 0x001d8b50 MOV qword ptr [RSP + 0x58],RAX JMP 0x001ca418 LAB_001ca418: MOV RDI,qword ptr [RSP + 0x58] XOR EDX,EDX MOV ESI,EDX MOVSS XMM0,dword ptr [0x006cc00c] CALL 0x005f86c0 MOVAPS xmmword ptr [RSP + 0x40],XMM0 JMP 0x001ca435 LAB_001ca435: MOVAPS XMM0,xmmword ptr [RSP + 0x40] MOVLPD qword ptr [RSP + 0x90],XMM0 MOV RAX,qword ptr [RSP + 0x148] ADD RAX,0x44 MOV qword ptr [RSP + 0x38],RAX LEA RDI,[RSP + 0x80] MOVSS XMM1,dword ptr [0x006d197c] MOVAPS XMM0,XMM1 CALL 0x001a4c10 JMP 0x001ca46e LAB_001ca46e: MOV RDI,qword ptr [RSP + 0x38] LEA RSI,[RSP + 0x90] MOV EDX,0xa LEA RCX,[RSP + 0x80] CALL 0x001c9210 MOVAPS xmmword ptr [RSP + 0x20],XMM0 JMP 0x001ca494 LAB_001ca494: MOVAPS XMM0,xmmword ptr [RSP + 0x20] MOVLPD qword ptr [RSP + 0x88],XMM0 CALL 0x00611ed0 MOV qword ptr [RSP + 0x18],RAX JMP 0x001ca4ae LAB_001ca4ae: MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x8],RAX MOV EDI,0x5 CALL 0x001c9d30 MOV dword ptr [RSP + 0x14],EAX JMP 0x001ca4d2 LAB_001ca4d2: LEA RDI,[RSP + 0xb0] CALL 0x001d8b50 MOV qword ptr [RSP],RAX JMP 0x001ca4e5 LAB_001ca4e5: MOV RCX,qword ptr [RSP] MOV EDX,dword ptr [RSP + 0x14] MOV RDI,qword ptr [RSP + 0x8] XOR EAX,EAX MOV R8D,EAX LEA RSI,[RSP + 0x88] CALL 0x0063db90 LAB_001ca504: JMP 0x001ca506 LAB_001ca506: LEA RDI,[RSP + 0xb0] CALL 0x001d8b90 LAB_001ca513: ADD RSP,0x158 RET
/* ImPlot3D::RenderMousePos() */ void ImPlot3D::RenderMousePos(void) { code *pcVar1; bool bVar2; uint uVar3; ulong uVar4; int4 *puVar5; char *pcVar6; ImRect *pIVar7; ImDrawList *this; ImVec2 local_d8 [8]; int8 local_d0; int8 local_c8; long local_c0; int local_b8; ImGuiTextBuffer local_a8 [16]; char local_98 [32]; int8 local_78; int8 local_64; int8 local_58; int8 local_44; int8 local_38; int8 local_24; int8 local_18; long local_10; long local_8; local_8 = GImPlot3D; local_10 = *(long *)(GImPlot3D + 0x28); bVar2 = ImHasFlag<int,ImPlot3DFlags_>(*(int4 *)(local_10 + 4)); if (!bVar2) { local_18 = ImGui::GetMousePos(); local_38 = PixelsToPlotPlane((ImVec2 *)&local_18,0,true); local_24 = local_38; uVar4 = ImPlot3DPoint::IsNaN((ImPlot3DPoint *)&local_24); if ((uVar4 & 1) != 0) { local_58 = PixelsToPlotPlane((ImVec2 *)&local_18,1,true); local_44 = local_58; local_24 = local_58; } uVar4 = ImPlot3DPoint::IsNaN((ImPlot3DPoint *)&local_24); if ((uVar4 & 1) != 0) { local_78 = PixelsToPlotPlane((ImVec2 *)&local_18,2,true); local_64 = local_78; local_24 = local_78; } uVar4 = ImPlot3DPoint::IsNaN((ImPlot3DPoint *)&local_24); if ((uVar4 & 1) == 0) { ImGuiTextBuffer::ImGuiTextBuffer(local_a8); /* try { // try from 001ca2c5 to 001ca503 has its CatchHandler @ 001ca339 */ ImGuiTextBuffer::append(local_a8,"(",(char *)0x0); for (local_b8 = 0; local_b8 < 3; local_b8 = local_b8 + 1) { local_c0 = local_10 + 0x78 + (long)local_b8 * 0x70; if (0 < local_b8) { ImGuiTextBuffer::append(local_a8,", ",(char *)0x0); } pcVar1 = *(code **)(local_c0 + 0x48); puVar5 = (int4 *)ImPlot3DPoint::operator[]((ImPlot3DPoint *)&local_24,(long)local_b8); (*pcVar1)(*puVar5,local_98,0x20,*(int8 *)(local_c0 + 0x50)); ImGuiTextBuffer::append(local_a8,local_98,(char *)0x0); } ImGuiTextBuffer::append(local_a8,")",(char *)0x0); pcVar6 = (char *)ImGuiTextBuffer::c_str(local_a8); local_c8 = ImGui::CalcTextSize(pcVar6,(char *)0x0,false,DAT_006cc00c); pIVar7 = (ImRect *)(local_10 + 0x44); ImVec2::ImVec2(local_d8,DAT_006d197c,DAT_006d197c); local_d0 = GetLocationPos(pIVar7,(ImVec2 *)&local_c8,10,local_d8); this = (ImDrawList *)ImGui::GetWindowDrawList(); uVar3 = GetStyleColorU32(5); pcVar6 = (char *)ImGuiTextBuffer::c_str(local_a8); ImDrawList::AddText(this,(ImVec2 *)&local_d0,uVar3,pcVar6,(char *)0x0); ImGuiTextBuffer::~ImGuiTextBuffer(local_a8); } } return; }
36,834
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*)
monkey531[P]llama/common/json.hpp
static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O1
cpp
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %rbx leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x43419(%rip), %rsi # 0xf053e leaq 0x4341e(%rip), %rdx # 0xf054a leaq 0x28(%rsp), %rdi callq 0x2337c leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x591be leaq 0x78(%rsp), %r14 movq %r14, -0x10(%r14) xorl %eax, %eax movq %rax, -0x8(%r14) movb %al, (%r14) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq %rax, -0x8(%r12) movb %al, (%r12) movq 0x8(%r15), %rsi addq 0x50(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x1bda0 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1b270 movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1b270 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x1b270 movq 0x68(%rsp), %rdi cmpq %r14, %rdi je 0xad1cf movq 0x78(%rsp), %rsi incq %rsi callq 0x1b8f0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xad1ea movq 0x58(%rsp), %rsi incq %rsi callq 0x1b8f0 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0xad201 movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8f0 movq 0x8(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x5942c leaq 0x7fc99(%rip), %rax # 0x12ceb0 addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xad235 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8f0 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xad2c3 movq 0x18(%rsp), %rsi jmp 0xad2bb movq %rax, %rbx jmp 0xad2ac movq %rax, %rbx jmp 0xad2c3 movq %rdx, %rbx movq %rax, %r15 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xad285 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8f0 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x88(%rsp), %r12 movq %r14, %rsi movq %r15, %rcx movl %ebx, %r8d movq %r12, %r9 callq 0x1d01f movq (%r12), %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0xad2c3 movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8f0 movq %rbx, %rdi callq 0x1bfb0 nop
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r15, rdx mov ebp, esi mov rbx, rdi lea r13, [rsp+0C8h+var_90] mov [r13-10h], r13 lea rsi, aOutOfRange; "out_of_range" lea rdx, aOutOfRange+0Ch; "" lea rdi, [rsp+0C8h+var_A0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0C8h+var_80]; int lea rsi, [rsp+0C8h+var_A0]; int mov edx, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea r14, [rsp+0C8h+var_50] mov [r14-10h], r14 xor eax, eax mov [r14-8], rax mov [r14], al lea r12, [rsp+0C8h+var_B0] mov [r12-10h], r12 mov [r12-8], rax mov [r12], al mov rsi, [r15+8] add rsi, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rsi, qword ptr [rsp+0C8h+var_80] mov rdx, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [rsp+0C8h+var_60] mov rdx, [rsp+0C8h+var_58] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0C8h+var_60]; void * cmp rdi, r14 jz short loc_AD1CF mov rsi, [rsp+0C8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AD1CF: lea rax, [rsp+0C8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_AD1EA mov rsi, [rsp+0C8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AD1EA: mov rdi, [rsp+0C8h+var_A0]; void * cmp rdi, r13 jz short loc_AD201 mov rsi, [rsp+0C8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AD201: mov rdx, [rsp+0C8h+var_C0]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*) lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; `vtable for'nlohmann::json_abi_v3_11_3::detail::out_of_range add rax, 10h mov [rbx], rax mov rdi, [rsp+0C8h+var_C0]; void * cmp rdi, r12 jz short loc_AD235 mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AD235: mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0] cmp rdi, r12 jz short loc_AD2C3 mov rsi, [rsp+arg_10] jmp short loc_AD2BB mov rbx, rax jmp short loc_AD2AC mov rbx, rax jmp short loc_AD2C3 mov rbx, rdx mov r15, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_AD285 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AD285: lea rdi, [rsp+arg_60] lea rdx, [rsp+arg_40] lea r12, [rsp+arg_80] mov rsi, r14 mov rcx, r15 mov r8d, ebx mov r9, r12 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1 mov rbx, [r12] loc_AD2AC: mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_AD2C3 mov rsi, [rsp+arg_30] loc_AD2BB: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AD2C3: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( nlohmann::json_abi_v3_11_3::detail::exception *this, int a2, _QWORD *a3) { char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF _QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF int v9[2]; // [rsp+48h] [rbp-80h] BYREF long long v10; // [rsp+50h] [rbp-78h] long long v11; // [rsp+58h] [rbp-70h] BYREF void *v12; // [rsp+68h] [rbp-60h] long long v13; // [rsp+70h] [rbp-58h] _QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF v7[0] = v8; std::string::_M_construct<char const*>(v7, "out_of_range", (long long)""); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2); v12 = v14; v13 = 0LL; LOBYTE(v14[0]) = 0; v5[0] = (char *)v6; v5[1] = 0LL; LOBYTE(v6[0]) = 0; std::string::reserve(v5, v10 + a3[1]); std::string::_M_append(v5, *(_QWORD *)v9, v10); std::string::_M_append(v5, v12, v13); std::string::_M_append(v5, *a3, a3[1]); if ( v12 != v14 ) operator delete(v12, v14[0] + 1LL); if ( *(long long **)v9 != &v11 ) operator delete(*(void **)v9, v11 + 1); if ( v7[0] != v8 ) operator delete(v7[0], v8[0] + 1LL); nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]); *(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::out_of_range + 2; if ( (_QWORD *)v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R15,RDX MOV EBP,ESI MOV RBX,RDI LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LAB_001ad11e: LEA RSI,[0x1f053e] LEA RDX,[0x1f054a] LEA RDI,[RSP + 0x28] CALL 0x0012337c LAB_001ad136: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x001591be LEA R14,[RSP + 0x78] MOV qword ptr [R14 + -0x10],R14 XOR EAX,EAX MOV qword ptr [R14 + -0x8],RAX MOV byte ptr [R14],AL LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV qword ptr [R12 + -0x8],RAX MOV byte ptr [R12],AL MOV RSI,qword ptr [R15 + 0x8] ADD RSI,qword ptr [RSP + 0x50] LAB_001ad175: LEA RDI,[RSP + 0x8] CALL 0x0011bda0 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x8] CALL 0x0011b270 MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] LEA RDI,[RSP + 0x8] CALL 0x0011b270 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x0011b270 MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R14 JZ 0x001ad1cf MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0011b8f0 LAB_001ad1cf: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001ad1ea MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011b8f0 LAB_001ad1ea: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x001ad201 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011b8f0 LAB_001ad201: MOV RDX,qword ptr [RSP + 0x8] LAB_001ad206: MOV RDI,RBX MOV ESI,EBP CALL 0x0015942c LAB_001ad210: LEA RAX,[0x22ceb0] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x001ad235 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011b8f0 LAB_001ad235: MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
exception * _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (exception *param_1,int param_2,ulong *param_3) { char *local_c0; int8 local_b8; char local_b0; int7 uStack_af; long *local_a0 [2]; long local_90 [2]; long *local_80 [2]; long local_70 [2]; int1 *local_60; int8 local_58; int1 local_50; int7 uStack_4f; /* try { // try from 001ad11e to 001ad135 has its CatchHandler @ 001ad263 */ local_a0[0] = local_90; std::__cxx11::string::_M_construct<char_const*>(local_a0,"out_of_range",""); /* try { // try from 001ad136 to 001ad146 has its CatchHandler @ 001ad25e */ nlohmann::json_abi_v3_11_3::detail::exception::name ((exception *)local_80,(string *)local_a0,param_2); local_58 = 0; local_50 = 0; local_b8 = 0; local_b0 = '\0'; /* try { // try from 001ad175 to 001ad1b7 has its CatchHandler @ 001ad268 */ local_c0 = &local_b0; local_60 = &local_50; std::__cxx11::string::reserve((ulong)&local_c0); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60); std::__cxx11::string::_M_append((char *)&local_c0,*param_3); if (local_60 != &local_50) { operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1); } if (local_80[0] != local_70) { operator_delete(local_80[0],local_70[0] + 1); } if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } /* try { // try from 001ad206 to 001ad20f has its CatchHandler @ 001ad24a */ nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0); *(int ***)param_1 = &PTR__exception_0022cec0; if (local_c0 != &local_b0) { operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1); } return param_1; }
36,835
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*)
monkey531[P]llama/common/json.hpp
static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x88, %rsp movq %rcx, %r15 movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx leaq 0x32ddb(%rip), %rsi # 0xb1530 leaq 0x28(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x26dae leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x3dd8c leaq 0x8(%rsp), %rdi movq %r15, %rsi callq 0x42106 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rsi leaq 0x8(%rsp), %rdx movq %r14, %rcx callq 0x3dd23 leaq 0x8(%rsp), %rdi callq 0x241e8 leaq 0x48(%rsp), %rdi callq 0x241e8 leaq 0x28(%rsp), %rdi callq 0x241e8 movq 0x68(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x42128 leaq 0x68(%rsp), %rdi callq 0x241e8 movq %rbx, %rax addq $0x88, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x68(%rsp), %rdi jmp 0x7e811 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x241e8 jmp 0x7e7fd movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0x241e8 jmp 0x7e80c movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x241e8 jmp 0x7e81b movq %rax, %rbx movq %rbx, %rdi callq 0x23fb0 nop
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: push rbp push r15 push r14 push rbx sub rsp, 88h mov r15, rcx mov r14, rdx mov ebp, esi mov rbx, rdi lea rsi, aOutOfRange; "out_of_range" lea rdi, [rsp+0A8h+var_80] lea rdx, [rsp+0A8h+var_A1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+0A8h+var_60] lea rsi, [rsp+0A8h+var_80] mov edx, ebp call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea rdi, [rsp+0A8h+var_A0] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*) lea rdi, [rsp+0A8h+var_40] lea rsi, [rsp+0A8h+var_60] lea rdx, [rsp+0A8h+var_A0] mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&) lea rdi, [rsp+0A8h+var_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0A8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0A8h+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdx, [rsp+0A8h+var_40]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeC2EiPKc; nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(int,char const*) lea rdi, [rsp+0A8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, rbx add rsp, 88h pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_60] jmp short loc_7E811 mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_7E7FD mov rbx, rax loc_7E7FD: lea rdi, [rsp+arg_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_7E80C mov rbx, rax loc_7E80C: lea rdi, [rsp+arg_20]; void * loc_7E811: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_7E81B mov rbx, rax loc_7E81B: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::out_of_range * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( nlohmann::json_abi_v3_11_3::detail::out_of_range *this, int a2, long long a3) { _QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF _QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF _BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF char *v8[8]; // [rsp+68h] [rbp-40h] BYREF std::string::basic_string<std::allocator<char>>(v6, "out_of_range"); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2); nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(v5); nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>( (long long)v8, (long long)v7, (long long)v5, a3); std::string::~string(v5); std::string::~string(v7); std::string::~string(v6); nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(this, a2, v8[0]); std::string::~string(v8); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x88 MOV R15,RCX MOV R14,RDX MOV EBP,ESI MOV RBX,RDI LAB_0017e74e: LEA RSI,[0x1b1530] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x7] CALL 0x00126dae LAB_0017e764: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x0013dd8c LAB_0017e775: LEA RDI,[RSP + 0x8] MOV RSI,R15 CALL 0x00142106 LAB_0017e782: LEA RDI,[RSP + 0x68] LEA RSI,[RSP + 0x48] LEA RDX,[RSP + 0x8] MOV RCX,R14 CALL 0x0013dd23 LEA RDI,[RSP + 0x8] CALL 0x001241e8 LEA RDI,[RSP + 0x48] CALL 0x001241e8 LEA RDI,[RSP + 0x28] CALL 0x001241e8 MOV RDX,qword ptr [RSP + 0x68] LAB_0017e7bc: MOV RDI,RBX MOV ESI,EBP CALL 0x00142128 LAB_0017e7c6: LEA RDI,[RSP + 0x68] CALL 0x001241e8 MOV RAX,RBX ADD RSP,0x88 POP RBX POP R14 POP R15 POP RBP RET
out_of_range * _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (out_of_range *param_1,int param_2,string *param_3) { allocator local_a1; string local_a0 [32]; string local_80 [32]; exception local_60 [32]; char *local_40 [4]; /* try { // try from 0017e74e to 0017e763 has its CatchHandler @ 0017e818 */ std::__cxx11::string::string<std::allocator<char>>(local_80,"out_of_range",&local_a1); /* try { // try from 0017e764 to 0017e774 has its CatchHandler @ 0017e809 */ nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2); /* try { // try from 0017e775 to 0017e781 has its CatchHandler @ 0017e7fa */ nlohmann::json_abi_v3_11_3::detail::exception:: diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (local_a0); /* try { // try from 0017e782 to 0017e798 has its CatchHandler @ 0017e7eb */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&> ((detail *)local_40,(string *)local_60,local_a0,param_3); std::__cxx11::string::~string(local_a0); std::__cxx11::string::~string((string *)local_60); std::__cxx11::string::~string(local_80); /* try { // try from 0017e7bc to 0017e7c5 has its CatchHandler @ 0017e7e1 */ nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(param_1,param_2,local_40[0]); std::__cxx11::string::~string((string *)local_40); return param_1; }
36,836
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*)
monkey531[P]llama/common/json.hpp
static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %rbx leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x41cd7(%rip), %rsi # 0xed53e leaq 0x41cdc(%rip), %rdx # 0xed54a leaq 0x28(%rsp), %rdi callq 0x22338 leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x58c10 leaq 0x78(%rsp), %r14 movq %r14, -0x10(%r14) xorl %eax, %eax movq %rax, -0x8(%r14) movb %al, (%r14) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq %rax, -0x8(%r12) movb %al, (%r12) movq 0x8(%r15), %rsi addq 0x50(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x1ada0 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1a270 movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x1a270 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x1a270 movq 0x68(%rsp), %rdi cmpq %r14, %rdi je 0xab911 movq 0x78(%rsp), %rsi incq %rsi callq 0x1a8f0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xab92c movq 0x58(%rsp), %rsi incq %rsi callq 0x1a8f0 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0xab943 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8f0 movq 0x8(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x58e7e leaq 0x7e597(%rip), %rax # 0x129ef0 addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xab977 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8f0 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xaba05 movq 0x18(%rsp), %rsi jmp 0xab9fd movq %rax, %rbx jmp 0xab9ee movq %rax, %rbx jmp 0xaba05 movq %rdx, %rbx movq %rax, %r15 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xab9c7 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8f0 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x88(%rsp), %r12 movq %r14, %rsi movq %r15, %rcx movl %ebx, %r8d movq %r12, %r9 callq 0x1c08c movq (%r12), %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0xaba05 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8f0 movq %rbx, %rdi callq 0x1afb0 nop
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r15, rdx mov ebp, esi mov rbx, rdi lea r13, [rsp+0C8h+var_90] mov [r13-10h], r13 lea rsi, aOutOfRange; "out_of_range" lea rdx, aOutOfRange+0Ch; "" lea rdi, [rsp+0C8h+var_A0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0C8h+var_80]; int lea rsi, [rsp+0C8h+var_A0]; int mov edx, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea r14, [rsp+0C8h+var_50] mov [r14-10h], r14 xor eax, eax mov [r14-8], rax mov [r14], al lea r12, [rsp+0C8h+var_B0] mov [r12-10h], r12 mov [r12-8], rax mov [r12], al mov rsi, [r15+8] add rsi, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rsi, qword ptr [rsp+0C8h+var_80] mov rdx, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [rsp+0C8h+var_60] mov rdx, [rsp+0C8h+var_58] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0C8h+var_60]; void * cmp rdi, r14 jz short loc_AB911 mov rsi, [rsp+0C8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AB911: lea rax, [rsp+0C8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_AB92C mov rsi, [rsp+0C8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AB92C: mov rdi, [rsp+0C8h+var_A0]; void * cmp rdi, r13 jz short loc_AB943 mov rsi, [rsp+0C8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AB943: mov rdx, [rsp+0C8h+var_C0]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*) lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; `vtable for'nlohmann::json_abi_v3_11_3::detail::out_of_range add rax, 10h mov [rbx], rax mov rdi, [rsp+0C8h+var_C0]; void * cmp rdi, r12 jz short loc_AB977 mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AB977: mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0] cmp rdi, r12 jz short loc_ABA05 mov rsi, [rsp+arg_10] jmp short loc_AB9FD mov rbx, rax jmp short loc_AB9EE mov rbx, rax jmp short loc_ABA05 mov rbx, rdx mov r15, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_AB9C7 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AB9C7: lea rdi, [rsp+arg_60] lea rdx, [rsp+arg_40] lea r12, [rsp+arg_80] mov rsi, r14 mov rcx, r15 mov r8d, ebx mov r9, r12 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1 mov rbx, [r12] loc_AB9EE: mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_ABA05 mov rsi, [rsp+arg_30] loc_AB9FD: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_ABA05: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( nlohmann::json_abi_v3_11_3::detail::exception *this, int a2, _QWORD *a3) { char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF _QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF int v9[2]; // [rsp+48h] [rbp-80h] BYREF long long v10; // [rsp+50h] [rbp-78h] long long v11; // [rsp+58h] [rbp-70h] BYREF void *v12; // [rsp+68h] [rbp-60h] long long v13; // [rsp+70h] [rbp-58h] _QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF v7[0] = v8; std::string::_M_construct<char const*>((long long)v7, "out_of_range", (long long)""); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2); v12 = v14; v13 = 0LL; LOBYTE(v14[0]) = 0; v5[0] = (char *)v6; v5[1] = 0LL; LOBYTE(v6[0]) = 0; std::string::reserve(v5, v10 + a3[1]); std::string::_M_append(v5, *(_QWORD *)v9, v10); std::string::_M_append(v5, v12, v13); std::string::_M_append(v5, *a3, a3[1]); if ( v12 != v14 ) operator delete(v12, v14[0] + 1LL); if ( *(long long **)v9 != &v11 ) operator delete(*(void **)v9, v11 + 1); if ( v7[0] != v8 ) operator delete(v7[0], v8[0] + 1LL); nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]); *(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::out_of_range + 2; if ( (_QWORD *)v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R15,RDX MOV EBP,ESI MOV RBX,RDI LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LAB_001ab860: LEA RSI,[0x1ed53e] LEA RDX,[0x1ed54a] LEA RDI,[RSP + 0x28] CALL 0x00122338 LAB_001ab878: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x00158c10 LEA R14,[RSP + 0x78] MOV qword ptr [R14 + -0x10],R14 XOR EAX,EAX MOV qword ptr [R14 + -0x8],RAX MOV byte ptr [R14],AL LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV qword ptr [R12 + -0x8],RAX MOV byte ptr [R12],AL MOV RSI,qword ptr [R15 + 0x8] ADD RSI,qword ptr [RSP + 0x50] LAB_001ab8b7: LEA RDI,[RSP + 0x8] CALL 0x0011ada0 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x8] CALL 0x0011a270 MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] LEA RDI,[RSP + 0x8] CALL 0x0011a270 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x0011a270 MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R14 JZ 0x001ab911 MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0011a8f0 LAB_001ab911: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001ab92c MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011a8f0 LAB_001ab92c: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x001ab943 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011a8f0 LAB_001ab943: MOV RDX,qword ptr [RSP + 0x8] LAB_001ab948: MOV RDI,RBX MOV ESI,EBP CALL 0x00158e7e LAB_001ab952: LEA RAX,[0x229ef0] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x001ab977 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011a8f0 LAB_001ab977: MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
exception * _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (exception *param_1,int param_2,ulong *param_3) { char *local_c0; int8 local_b8; char local_b0; int7 uStack_af; long *local_a0 [2]; long local_90 [2]; long *local_80 [2]; long local_70 [2]; int1 *local_60; int8 local_58; int1 local_50; int7 uStack_4f; /* try { // try from 001ab860 to 001ab877 has its CatchHandler @ 001ab9a5 */ local_a0[0] = local_90; std::__cxx11::string::_M_construct<char_const*>(local_a0,"out_of_range",""); /* try { // try from 001ab878 to 001ab888 has its CatchHandler @ 001ab9a0 */ nlohmann::json_abi_v3_11_3::detail::exception::name ((exception *)local_80,(string *)local_a0,param_2); local_58 = 0; local_50 = 0; local_b8 = 0; local_b0 = '\0'; /* try { // try from 001ab8b7 to 001ab8f9 has its CatchHandler @ 001ab9aa */ local_c0 = &local_b0; local_60 = &local_50; std::__cxx11::string::reserve((ulong)&local_c0); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60); std::__cxx11::string::_M_append((char *)&local_c0,*param_3); if (local_60 != &local_50) { operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1); } if (local_80[0] != local_70) { operator_delete(local_80[0],local_70[0] + 1); } if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } /* try { // try from 001ab948 to 001ab951 has its CatchHandler @ 001ab98c */ nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0); *(int ***)param_1 = &PTR__exception_00229f00; if (local_c0 != &local_b0) { operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1); } return param_1; }
36,837
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>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/json.hpp
void push_back(const basic_json& val) { // push_back only works for null objects or arrays if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array()))) { JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this)); } // transform null object into an array if (is_null()) { m_data.m_type = value_t::array; m_data.m_value = value_t::array; assert_invariant(); } // add element to array const auto old_capacity = m_data.m_value.array->capacity(); m_data.m_value.array->push_back(val); set_parent(m_data.m_value.array->back(), old_capacity); }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %rbx movq %rdi, %r14 movzbl (%rdi), %eax testl %eax, %eax jne 0x7ae03 movb $0x2, (%r14) callq 0x3d5e0 movq %rax, 0x8(%r14) pushq $0x1 popq %rsi movq %r14, %rdi callq 0x3d4a6 jmp 0x7ae08 cmpl $0x2, %eax jne 0x7ae1c movq 0x8(%r14), %rdi movq %rbx, %rsi addq $0x30, %rsp popq %rbx popq %r14 popq %rbp jmp 0x7e564 pushq $0x20 popq %rdi callq 0x23450 movq %rax, %rbx movq %r14, %rdi callq 0x42f88 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x391bc(%rip), %rsi # 0xb3ffa leaq 0x10(%rsp), %rdi callq 0x6304b movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x134, %esi # imm = 0x134 movq %r14, %rcx callq 0x42e3c xorl %ebp, %ebp leaq 0x7f0df(%rip), %rsi # 0xf9f48 leaq -0x3b358(%rip), %rdx # 0x3fb18 movq %rbx, %rdi callq 0x23ef0 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x241b8 testb %bpl, %bpl jne 0x7ae8f jmp 0x7ae97 movq %rax, %r14 movq %rbx, %rdi callq 0x23680 movq %r14, %rdi callq 0x23f80 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSD_: push rbp; char push r14; int push rbx; int sub rsp, 30h mov rbx, rsi mov r14, rdi movzx eax, byte ptr [rdi] test eax, eax jnz short loc_7AE03 mov byte ptr [r14], 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>() mov [r14+8], rax push 1 pop rsi mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) jmp short loc_7AE08 loc_7AE03: cmp eax, 2 jnz short loc_7AE1C loc_7AE08: mov rdi, [r14+8] mov rsi, rbx add rsp, 30h pop rbx pop r14 pop rbp jmp _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backERKSD_; 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>>::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&) loc_7AE1C: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aCannotUsePushB; "cannot use push_back() with " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 134h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_7AE8F jmp short loc_7AE97 mov r14, rax loc_7AE8F: mov rdi, rbx; void * call ___cxa_free_exception loc_7AE97: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back( long long a1, long long a2) { nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx const char *v4; // [rsp+8h] [rbp-40h] BYREF _BYTE v5[56]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 ) { if ( *(_BYTE *)a1 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v5, (long long)"cannot use push_back() with ", &v4); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 308, (long long)v5); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } } else { *(_BYTE *)a1 = 2; *(_QWORD *)(a1 + 8) = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } return std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::push_back( *(_QWORD *)(a1 + 8), a2); }
push_back: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV RBX,RSI MOV R14,RDI MOVZX EAX,byte ptr [RDI] TEST EAX,EAX JNZ 0x0017ae03 MOV byte ptr [R14],0x2 CALL 0x0013d5e0 MOV qword ptr [R14 + 0x8],RAX PUSH 0x1 POP RSI MOV RDI,R14 CALL 0x0013d4a6 JMP 0x0017ae08 LAB_0017ae03: CMP EAX,0x2 JNZ 0x0017ae1c LAB_0017ae08: MOV RDI,qword ptr [R14 + 0x8] MOV RSI,RBX ADD RSP,0x30 POP RBX POP R14 POP RBP JMP 0x0017e564 LAB_0017ae1c: PUSH 0x20 POP RDI CALL 0x00123450 MOV RBX,RAX MOV RDI,R14 CALL 0x00142f88 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0017ae37: LEA RSI,[0x1b3ffa] LEA RDI,[RSP + 0x10] CALL 0x0016304b MOV BPL,0x1 LAB_0017ae4b: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x134 MOV RCX,R14 CALL 0x00142e3c XOR EBP,EBP LEA RSI,[0x1f9f48] LEA RDX,[0x13fb18] MOV RDI,RBX CALL 0x00123ef0
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ void __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,basic_json *param_1) { vector *pvVar1; int8 uVar2; char *local_40; detail local_38 [32]; if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0) { *this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2; pvVar1 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> (); *(vector **)(this + 8) = pvVar1; assert_invariant(SUB81(this,0)); } else if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 0017ae37 to 0017ae47 has its CatchHandler @ 0017ae8c */ detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"cannot use push_back() with ",&local_40); /* try { // try from 0017ae4b to 0017ae77 has its CatchHandler @ 0017ae78 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x134,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception); } 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),param_1); return; }
36,838
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>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/json.hpp
void push_back(const basic_json& val) { // push_back only works for null objects or arrays if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array()))) { JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this)); } // transform null object into an array if (is_null()) { m_data.m_type = value_t::array; m_data.m_value = value_t::array; assert_invariant(); } // add element to array const auto old_capacity = m_data.m_value.array->capacity(); m_data.m_value.array->push_back(val); set_parent(m_data.m_value.array->back(), old_capacity); }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %rbx movq %rdi, %r14 movzbl (%rdi), %eax testl %eax, %eax jne 0xa5350 movb $0x2, (%r14) movl $0x18, %edi callq 0x1a8a0 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x5834c jmp 0xa5355 cmpl $0x2, %eax jne 0xa5369 movq 0x8(%r14), %rdi movq %rbx, %rsi addq $0x30, %rsp popq %rbx popq %r14 popq %rbp jmp 0xab570 movl $0x20, %edi callq 0x1a430 movq %rax, %rbx movq %r14, %rdi callq 0x5e894 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x4ac8d(%rip), %rsi # 0xf001a leaq 0x10(%rsp), %rdi callq 0x8643f movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x134, %esi # imm = 0x134 movq %r14, %rcx callq 0x5e63c xorl %ebp, %ebp leaq 0x83ba0(%rip), %rsi # 0x128f58 leaq -0x4a8f5(%rip), %rdx # 0x5aaca movq %rbx, %rdi callq 0x1aef0 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xa53e5 movq 0x20(%rsp), %rsi incq %rsi callq 0x1a8c0 testb %bpl, %bpl jne 0xa53ef jmp 0xa53f7 movq %rax, %r14 movq %rbx, %rdi callq 0x1a660 movq %r14, %rdi callq 0x1af80 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSD_: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov rbx, rsi mov r14, rdi movzx eax, byte ptr [rdi] test eax, eax jnz short loc_A5350 mov byte ptr [r14], 2 mov edi, 18h; unsigned __int64 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 mov [r14+8], rax mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) jmp short loc_A5355 loc_A5350: cmp eax, 2 jnz short loc_A5369 loc_A5355: mov rdi, [r14+8] mov rsi, rbx add rsp, 30h pop rbx pop r14 pop rbp jmp _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backERKSD_; 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>>::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&) loc_A5369: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aCannotUsePushB; "cannot use push_back() with " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 134h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_A53E5 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A53E5: test bpl, bpl jnz short loc_A53EF jmp short loc_A53F7 mov r14, rax loc_A53EF: mov rdi, rbx; void * call ___cxa_free_exception loc_A53F7: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back( long long a1, long long a2) { long long v2; // rax nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx const char *v5; // [rsp+8h] [rbp-40h] BYREF _QWORD v6[2]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 ) { if ( *(_BYTE *)a1 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v5 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v6, (long long)"cannot use push_back() with ", &v5); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 308, v6); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } } else { *(_BYTE *)a1 = 2; v2 = operator new(0x18uLL); *(_OWORD *)v2 = 0LL; *(_QWORD *)(v2 + 16) = 0LL; *(_QWORD *)(a1 + 8) = v2; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } return std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::push_back( *(_QWORD *)(a1 + 8), a2); }
push_back: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV RBX,RSI MOV R14,RDI MOVZX EAX,byte ptr [RDI] TEST EAX,EAX JNZ 0x001a5350 MOV byte ptr [R14],0x2 MOV EDI,0x18 CALL 0x0011a8a0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 MOV qword ptr [R14 + 0x8],RAX MOV RDI,R14 MOV ESI,0x1 CALL 0x0015834c JMP 0x001a5355 LAB_001a5350: CMP EAX,0x2 JNZ 0x001a5369 LAB_001a5355: MOV RDI,qword ptr [R14 + 0x8] MOV RSI,RBX ADD RSP,0x30 POP RBX POP R14 POP RBP JMP 0x001ab570 LAB_001a5369: MOV EDI,0x20 CALL 0x0011a430 MOV RBX,RAX MOV RDI,R14 CALL 0x0015e894 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_001a5386: LEA RSI,[0x1f001a] LEA RDI,[RSP + 0x10] CALL 0x0018643f MOV BPL,0x1 LAB_001a539a: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x134 MOV RCX,R14 CALL 0x0015e63c XOR EBP,EBP LEA RSI,[0x228f58] LEA RDX,[0x15aaca] MOV RDI,RBX CALL 0x0011aef0
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ void __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,basic_json *param_1) { int8 *puVar1; int8 uVar2; char *local_40; detail local_38 [32]; if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0) { *this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2; puVar1 = (int8 *)operator_new(0x18); *puVar1 = 0; puVar1[1] = 0; puVar1[2] = 0; *(int8 **)(this + 8) = puVar1; assert_invariant(SUB81(this,0)); } else if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 001a5386 to 001a5396 has its CatchHandler @ 001a53ec */ detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"cannot use push_back() with ",&local_40); /* try { // try from 001a539a to 001a53c6 has its CatchHandler @ 001a53c7 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x134,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception); } 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),param_1); return; }
36,839
httplib::detail::set_socket_opt_time(int, int, int, long, long)
hkr04[P]cpp-mcp/common/httplib.h
inline bool set_socket_opt_time(socket_t sock, int level, int optname, time_t sec, time_t usec) { #ifdef _WIN32 auto timeout = static_cast<uint32_t>(sec * 1000 + usec / 1000); #else timeval timeout; timeout.tv_sec = static_cast<long>(sec); timeout.tv_usec = static_cast<decltype(timeout.tv_usec)>(usec); #endif return set_socket_opt_impl(sock, level, optname, &timeout, sizeof(timeout)); }
O0
c
httplib::detail::set_socket_opt_time(int, int, int, long, long): subq $0x38, %rsp movl %edi, 0x34(%rsp) movl %esi, 0x30(%rsp) movl %edx, 0x2c(%rsp) movq %rcx, 0x20(%rsp) movq %r8, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x10(%rsp) movl 0x34(%rsp), %edi movl 0x30(%rsp), %esi movl 0x2c(%rsp), %edx leaq 0x8(%rsp), %rcx movl $0x10, %r8d callq 0x6a6c0 andb $0x1, %al addq $0x38, %rsp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN7httplib6detail19set_socket_opt_timeEiiill: sub rsp, 38h mov [rsp+38h+var_4], edi mov [rsp+38h+var_8], esi mov [rsp+38h+var_C], edx mov [rsp+38h+var_18], rcx mov [rsp+38h+var_20], r8 mov rax, [rsp+38h+var_18] mov qword ptr [rsp+38h+var_30], rax mov rax, [rsp+38h+var_20] mov [rsp+38h+var_28], rax mov edi, [rsp+38h+var_4]; this mov esi, [rsp+38h+var_8]; int mov edx, [rsp+38h+var_C]; int lea rcx, [rsp+38h+var_30]; int mov r8d, offset word_10; void * call _ZN7httplib6detail19set_socket_opt_implEiiiPKvj; httplib::detail::set_socket_opt_impl(int,int,int,void const*,uint) and al, 1 add rsp, 38h retn
char httplib::detail::set_socket_opt_time( httplib::detail *this, int a2, int a3, long long a4, long long a5, unsigned int a6) { int v7[2]; // [rsp+8h] [rbp-30h] BYREF long long v8; // [rsp+10h] [rbp-28h] long long v9; // [rsp+18h] [rbp-20h] long long v10; // [rsp+20h] [rbp-18h] int v11; // [rsp+2Ch] [rbp-Ch] int v12; // [rsp+30h] [rbp-8h] int v13; // [rsp+34h] [rbp-4h] v13 = (int)this; v12 = a2; v11 = a3; v10 = a4; v9 = a5; *(_QWORD *)v7 = a4; v8 = a5; return httplib::detail::set_socket_opt_impl((httplib::detail *)(unsigned int)this, a2, a3, (int)v7, &word_10, a6) & 1; }
set_socket_opt_time: SUB RSP,0x38 MOV dword ptr [RSP + 0x34],EDI MOV dword ptr [RSP + 0x30],ESI MOV dword ptr [RSP + 0x2c],EDX MOV qword ptr [RSP + 0x20],RCX MOV qword ptr [RSP + 0x18],R8 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x10],RAX MOV EDI,dword ptr [RSP + 0x34] MOV ESI,dword ptr [RSP + 0x30] MOV EDX,dword ptr [RSP + 0x2c] LEA RCX,[RSP + 0x8] MOV R8D,0x10 CALL 0x0016a6c0 AND AL,0x1 ADD RSP,0x38 RET
/* httplib::detail::set_socket_opt_time(int, int, int, long, long) */ ulong httplib::detail::set_socket_opt_time (int param_1,int param_2,int param_3,long param_4,long param_5) { ulong uVar1; long local_30; long local_28; long local_20; long local_18; int local_c; int local_8; int local_4; local_30 = param_4; local_28 = param_5; local_20 = param_5; local_18 = param_4; local_c = param_3; local_8 = param_2; local_4 = param_1; uVar1 = set_socket_opt_impl(param_1,param_2,param_3,&local_30,0x10); return uVar1 & 0xffffffffffffff01; }
36,840
ftxui::ScreenInteractive::CaptureMouse()
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/screen_interactive.cpp
CapturedMouse ScreenInteractive::CaptureMouse() { if (mouse_captured) { return nullptr; } mouse_captured = true; return std::make_unique<CapturedMouseImpl>( [this] { mouse_captured = false; }); }
O1
cpp
ftxui::ScreenInteractive::CaptureMouse(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpb $0x1, 0xe8(%rsi) jne 0x2de8f movq $0x0, (%rbx) xorl %eax, %eax jmp 0x2ded6 movq %rsi, %r14 movb $0x1, 0xe8(%rsi) movl $0x28, %edi callq 0xb3e0 leaq 0x2b5ce(%rip), %rcx # 0x59478 movq %rcx, (%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rax) leaq 0x316b(%rip), %rcx # 0x31026 movq %rcx, 0x20(%rax) movq %r14, 0x8(%rax) movq $0x0, 0x10(%rax) leaq 0x3160(%rip), %rcx # 0x31032 movq %rcx, 0x18(%rax) movq %rax, (%rbx) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN5ftxui17ScreenInteractive12CaptureMouseEv: push r14 push rbx push rax mov rbx, rdi cmp byte ptr [rsi+0E8h], 1 jnz short loc_2DE8F mov qword ptr [rbx], 0 xor eax, eax jmp short loc_2DED6 loc_2DE8F: mov r14, rsi mov byte ptr [rsi+0E8h], 1 mov edi, 28h ; '('; unsigned __int64 call __Znwm; operator new(ulong) lea rcx, off_59478 mov [rax], rcx xorps xmm0, xmm0 movups xmmword ptr [rax+8], xmm0 lea rcx, _ZNSt17_Function_handlerIFvvEZN5ftxui17ScreenInteractive12CaptureMouseEvE3$_0E9_M_invokeERKSt9_Any_data; std::_Function_handler<void ()(void),ftxui::ScreenInteractive::CaptureMouse(void)::$_0>::_M_invoke(std::_Any_data const&) mov [rax+20h], rcx mov [rax+8], r14 mov qword ptr [rax+10h], 0 lea rcx, _ZNSt17_Function_handlerIFvvEZN5ftxui17ScreenInteractive12CaptureMouseEvE3$_0E10_M_managerERSt9_Any_dataRKS5_St18_Manager_operation; std::_Function_handler<void ()(void),ftxui::ScreenInteractive::CaptureMouse(void)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rax+18h], rcx loc_2DED6: mov [rbx], rax mov rax, rbx add rsp, 8 pop rbx pop r14 retn
ftxui::ScreenInteractive * ftxui::ScreenInteractive::CaptureMouse(ftxui::ScreenInteractive *this, long long a2) { long long v2; // rax if ( *(_BYTE *)(a2 + 232) == 1 ) { *(_QWORD *)this = 0LL; v2 = 0LL; } else { *(_BYTE *)(a2 + 232) = 1; v2 = operator new(0x28uLL); *(_QWORD *)v2 = off_59478; *(_OWORD *)(v2 + 8) = 0LL; *(_QWORD *)(v2 + 32) = std::_Function_handler<void ()(void),ftxui::ScreenInteractive::CaptureMouse(void)::$_0>::_M_invoke; *(_QWORD *)(v2 + 8) = a2; *(_QWORD *)(v2 + 16) = 0LL; *(_QWORD *)(v2 + 24) = std::_Function_handler<void ()(void),ftxui::ScreenInteractive::CaptureMouse(void)::$_0>::_M_manager; } *(_QWORD *)this = v2; return this; }
CaptureMouse: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CMP byte ptr [RSI + 0xe8],0x1 JNZ 0x0012de8f MOV qword ptr [RBX],0x0 XOR EAX,EAX JMP 0x0012ded6 LAB_0012de8f: MOV R14,RSI MOV byte ptr [RSI + 0xe8],0x1 MOV EDI,0x28 CALL 0x0010b3e0 LEA RCX,[0x159478] MOV qword ptr [RAX],RCX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x8],XMM0 LEA RCX,[0x131026] MOV qword ptr [RAX + 0x20],RCX MOV qword ptr [RAX + 0x8],R14 MOV qword ptr [RAX + 0x10],0x0 LEA RCX,[0x131032] MOV qword ptr [RAX + 0x18],RCX LAB_0012ded6: MOV qword ptr [RBX],RAX MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* ftxui::ScreenInteractive::CaptureMouse() */ void ftxui::ScreenInteractive::CaptureMouse(void) { int8 *puVar1; long in_RSI; int8 *in_RDI; if (*(char *)(in_RSI + 0xe8) == '\x01') { *in_RDI = 0; puVar1 = (int8 *)0x0; } else { *(int1 *)(in_RSI + 0xe8) = 1; puVar1 = (int8 *)operator_new(0x28); *puVar1 = &PTR__CapturedMouseImpl_00159478; puVar1[1] = 0; puVar1[2] = 0; puVar1[4] = std::_Function_handler<void(),ftxui::ScreenInteractive::CaptureMouse()::$_0>:: _M_invoke; puVar1[1] = in_RSI; puVar1[2] = 0; puVar1[3] = std::_Function_handler<void(),ftxui::ScreenInteractive::CaptureMouse()::$_0>:: _M_manager; } *in_RDI = puVar1; return; }
36,841
c4_proof_add_header
corpus-core[P]colibri-stateless/src/chains/eth/proofer/beacon.c
ssz_builder_t c4_proof_add_header(ssz_ob_t block, bytes32_t body_root) { ssz_builder_t beacon_header = {.def = eth_ssz_type_for_denep(ETH_SSZ_BEACON_BLOCK_HEADER), .dynamic = {0}, .fixed = {0}}; ssz_add_bytes(&beacon_header, "slot", ssz_get(&block, "slot").bytes); ssz_add_bytes(&beacon_header, "proposerIndex", ssz_get(&block, "proposerIndex").bytes); ssz_add_bytes(&beacon_header, "parentRoot", ssz_get(&block, "parentRoot").bytes); ssz_add_bytes(&beacon_header, "stateRoot", ssz_get(&block, "stateRoot").bytes); ssz_add_bytes(&beacon_header, "bodyRoot", bytes(body_root, 32)); return beacon_header; }
O0
c
c4_proof_add_header: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdi, -0xc8(%rbp) movq %rdi, %rax movq %rax, -0xc0(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0xd0(%rbp) movq %rsi, -0x8(%rbp) xorl %esi, %esi movl $0x38, %edx callq 0x5110 movl $0x3, %edi callq 0x16a80 movq -0xd0(%rbp), %rsi movq -0xc8(%rbp), %rdi movq %rax, (%rdi) leaq -0x30(%rbp), %rdi leaq 0x4747b(%rip), %rdx # 0x52808 callq 0x1c760 movq -0xc8(%rbp), %rdi movq -0x30(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x10(%rbp) movl -0x18(%rbp), %edx movq -0x10(%rbp), %rcx leaq 0x47451(%rip), %rsi # 0x52808 callq 0x1e730 movq -0xd0(%rbp), %rsi leaq -0x58(%rbp), %rdi leaq 0x4744d(%rip), %rdx # 0x5281b callq 0x1c760 movq -0xc8(%rbp), %rdi movq -0x58(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x38(%rbp) movl -0x40(%rbp), %edx movq -0x38(%rbp), %rcx leaq 0x47423(%rip), %rsi # 0x5281b callq 0x1e730 movq -0xd0(%rbp), %rsi leaq -0x80(%rbp), %rdi leaq 0x473e9(%rip), %rdx # 0x527f8 callq 0x1c760 movq -0xc8(%rbp), %rdi movq -0x80(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x78(%rbp), %rax movq %rax, -0x60(%rbp) movl -0x68(%rbp), %edx movq -0x60(%rbp), %rcx leaq 0x473bf(%rip), %rsi # 0x527f8 callq 0x1e730 movq -0xd0(%rbp), %rsi leaq -0xa8(%rbp), %rdi leaq 0x473d6(%rip), %rdx # 0x52829 callq 0x1c760 movq -0xc8(%rbp), %rdi movq -0xa8(%rbp), %rax movq %rax, -0x90(%rbp) movq -0xa0(%rbp), %rax movq %rax, -0x88(%rbp) movl -0x90(%rbp), %edx movq -0x88(%rbp), %rcx leaq 0x4739a(%rip), %rsi # 0x52829 callq 0x1e730 movq -0xc8(%rbp), %rdi movl $0x20, -0xb8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xb0(%rbp) movl -0xb8(%rbp), %edx movq -0xb0(%rbp), %rcx leaq 0x4736f(%rip), %rsi # 0x52833 callq 0x1e730 movq -0xc0(%rbp), %rax addq $0xd0, %rsp popq %rbp retq nopl (%rax)
c4_proof_add_header: push rbp mov rbp, rsp sub rsp, 0D0h mov [rbp+var_C8], rdi mov rax, rdi mov [rbp+var_C0], rax lea rax, [rbp+arg_0] mov [rbp+var_D0], rax mov [rbp+var_8], rsi xor esi, esi mov edx, 38h ; '8' call _memset mov edi, 3 call eth_ssz_type_for_denep mov rsi, [rbp+var_D0] mov rdi, [rbp+var_C8] mov [rdi], rax lea rdi, [rbp+var_30] lea rdx, aSlot; "slot" call ssz_get mov rdi, [rbp+var_C8] mov rax, [rbp+var_30] mov [rbp+var_18], rax mov rax, [rbp+var_28] mov [rbp+var_10], rax mov edx, dword ptr [rbp+var_18] mov rcx, [rbp+var_10] lea rsi, aSlot; "slot" call ssz_add_bytes mov rsi, [rbp+var_D0] lea rdi, [rbp+var_58] lea rdx, aProposerindex; "proposerIndex" call ssz_get mov rdi, [rbp+var_C8] mov rax, [rbp+var_58] mov [rbp+var_40], rax mov rax, [rbp+var_50] mov [rbp+var_38], rax mov edx, dword ptr [rbp+var_40] mov rcx, [rbp+var_38] lea rsi, aProposerindex; "proposerIndex" call ssz_add_bytes mov rsi, [rbp+var_D0] lea rdi, [rbp+var_80] lea rdx, aParentroot; "parentRoot" call ssz_get mov rdi, [rbp+var_C8] mov rax, [rbp+var_80] mov [rbp+var_68], rax mov rax, [rbp+var_78] mov [rbp+var_60], rax mov edx, dword ptr [rbp+var_68] mov rcx, [rbp+var_60] lea rsi, aParentroot; "parentRoot" call ssz_add_bytes mov rsi, [rbp+var_D0] lea rdi, [rbp+var_A8] lea rdx, aStateroot; "stateRoot" call ssz_get mov rdi, [rbp+var_C8] mov rax, [rbp+var_A8] mov [rbp+var_90], rax mov rax, [rbp+var_A0] mov [rbp+var_88], rax mov edx, dword ptr [rbp+var_90] mov rcx, [rbp+var_88] lea rsi, aStateroot; "stateRoot" call ssz_add_bytes mov rdi, [rbp+var_C8] mov [rbp+var_B8], 20h ; ' ' mov rax, [rbp+var_8] mov [rbp+var_B0], rax mov edx, [rbp+var_B8] mov rcx, [rbp+var_B0] lea rsi, aBodyroot; "bodyRoot" call ssz_add_bytes mov rax, [rbp+var_C0] add rsp, 0D0h pop rbp retn
_QWORD * c4_proof_add_header(_QWORD *a1, long long a2, _DWORD a3, _DWORD a4, _DWORD a5, _DWORD a6, char a7) { long long v8; // [rsp+28h] [rbp-A8h] BYREF long long v9; // [rsp+30h] [rbp-A0h] long long v10; // [rsp+40h] [rbp-90h] long long v11; // [rsp+48h] [rbp-88h] long long v12; // [rsp+50h] [rbp-80h] BYREF long long v13; // [rsp+58h] [rbp-78h] long long v14; // [rsp+68h] [rbp-68h] long long v15; // [rsp+70h] [rbp-60h] long long v16; // [rsp+78h] [rbp-58h] BYREF long long v17; // [rsp+80h] [rbp-50h] long long v18; // [rsp+90h] [rbp-40h] long long v19; // [rsp+98h] [rbp-38h] long long v20; // [rsp+A0h] [rbp-30h] BYREF long long v21; // [rsp+A8h] [rbp-28h] long long v22; // [rsp+B8h] [rbp-18h] long long v23; // [rsp+C0h] [rbp-10h] long long v24; // [rsp+C8h] [rbp-8h] v24 = a2; memset(a1, 0LL, 56LL); *a1 = eth_ssz_type_for_denep(3LL); ssz_get(&v20, &a7, "slot"); v22 = v20; v23 = v21; ssz_add_bytes(a1, "slot", (unsigned int)v20, v21); ssz_get(&v16, &a7, "proposerIndex"); v18 = v16; v19 = v17; ssz_add_bytes(a1, "proposerIndex", (unsigned int)v16, v17); ssz_get(&v12, &a7, "parentRoot"); v14 = v12; v15 = v13; ssz_add_bytes(a1, "parentRoot", (unsigned int)v12, v13); ssz_get(&v8, &a7, "stateRoot"); v10 = v8; v11 = v9; ssz_add_bytes(a1, "stateRoot", (unsigned int)v8, v9); ssz_add_bytes(a1, "bodyRoot", 32LL, v24); return a1; }
c4_proof_add_header: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 MOV qword ptr [RBP + -0xc8],RDI MOV RAX,RDI MOV qword ptr [RBP + -0xc0],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0xd0],RAX MOV qword ptr [RBP + -0x8],RSI XOR ESI,ESI MOV EDX,0x38 CALL 0x00105110 MOV EDI,0x3 CALL 0x00116a80 MOV RSI,qword ptr [RBP + -0xd0] MOV RDI,qword ptr [RBP + -0xc8] MOV qword ptr [RDI],RAX LEA RDI,[RBP + -0x30] LEA RDX,[0x152808] CALL 0x0011c760 MOV RDI,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x10],RAX MOV EDX,dword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] LEA RSI,[0x152808] CALL 0x0011e730 MOV RSI,qword ptr [RBP + -0xd0] LEA RDI,[RBP + -0x58] LEA RDX,[0x15281b] CALL 0x0011c760 MOV RDI,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x38],RAX MOV EDX,dword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x38] LEA RSI,[0x15281b] CALL 0x0011e730 MOV RSI,qword ptr [RBP + -0xd0] LEA RDI,[RBP + -0x80] LEA RDX,[0x1527f8] CALL 0x0011c760 MOV RDI,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0x80] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x60],RAX MOV EDX,dword ptr [RBP + -0x68] MOV RCX,qword ptr [RBP + -0x60] LEA RSI,[0x1527f8] CALL 0x0011e730 MOV RSI,qword ptr [RBP + -0xd0] LEA RDI,[RBP + -0xa8] LEA RDX,[0x152829] CALL 0x0011c760 MOV RDI,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0xa8] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x88],RAX MOV EDX,dword ptr [RBP + -0x90] MOV RCX,qword ptr [RBP + -0x88] LEA RSI,[0x152829] CALL 0x0011e730 MOV RDI,qword ptr [RBP + -0xc8] MOV dword ptr [RBP + -0xb8],0x20 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0xb0],RAX MOV EDX,dword ptr [RBP + -0xb8] MOV RCX,qword ptr [RBP + -0xb0] LEA RSI,[0x152833] CALL 0x0011e730 MOV RAX,qword ptr [RBP + -0xc0] ADD RSP,0xd0 POP RBP RET
int8 * c4_proof_add_header(int8 *param_1,int8 param_2) { int8 uVar1; ulong local_b0; int8 local_a8; ulong local_98; int8 local_90; ulong local_88; int8 local_80; ulong local_70; int8 local_68; ulong local_60; int8 local_58; ulong local_48; int8 local_40; ulong local_38; int8 local_30; ulong local_20; int8 local_18; int8 local_10; local_10 = param_2; memset(param_1,0,0x38); uVar1 = eth_ssz_type_for_denep(3); *param_1 = uVar1; ssz_get(&local_38,&stack0x00000008,&DAT_00152808); local_20 = local_38; local_18 = local_30; ssz_add_bytes(param_1,&DAT_00152808,local_38 & 0xffffffff,local_30); ssz_get(&local_60,&stack0x00000008,"proposerIndex"); local_48 = local_60; local_40 = local_58; ssz_add_bytes(param_1,"proposerIndex",local_60 & 0xffffffff,local_58); ssz_get(&local_88,&stack0x00000008,"parentRoot"); local_70 = local_88; local_68 = local_80; ssz_add_bytes(param_1,"parentRoot",local_88 & 0xffffffff,local_80); ssz_get(&local_b0,&stack0x00000008,"stateRoot"); local_98 = local_b0; local_90 = local_a8; ssz_add_bytes(param_1,"stateRoot",local_b0 & 0xffffffff,local_a8); ssz_add_bytes(param_1,"bodyRoot",0x20,local_10); return param_1; }
36,842
c4_proof_add_header
corpus-core[P]colibri-stateless/src/chains/eth/proofer/beacon.c
ssz_builder_t c4_proof_add_header(ssz_ob_t block, bytes32_t body_root) { ssz_builder_t beacon_header = {.def = eth_ssz_type_for_denep(ETH_SSZ_BEACON_BLOCK_HEADER), .dynamic = {0}, .fixed = {0}}; ssz_add_bytes(&beacon_header, "slot", ssz_get(&block, "slot").bytes); ssz_add_bytes(&beacon_header, "proposerIndex", ssz_get(&block, "proposerIndex").bytes); ssz_add_bytes(&beacon_header, "parentRoot", ssz_get(&block, "parentRoot").bytes); ssz_add_bytes(&beacon_header, "stateRoot", ssz_get(&block, "stateRoot").bytes); ssz_add_bytes(&beacon_header, "bodyRoot", bytes(body_root, 32)); return beacon_header; }
O2
c
c4_proof_add_header: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x60, %rsp movq %rsi, %r14 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x28(%rdi) movups %xmm0, 0x18(%rdi) movups %xmm0, 0x8(%rdi) pushq $0x3 popq %rdi callq 0x10738 movq %rax, (%rbx) leaq 0x2f146(%rip), %r12 # 0x38821 leaq 0x48(%rsp), %r13 leaq 0x90(%rsp), %r15 movq %r13, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x13a7d movl (%r13), %edx movq 0x8(%r13), %rcx movq %rbx, %rdi movq %r12, %rsi callq 0x14d64 leaq 0x2f124(%rip), %r12 # 0x38834 leaq 0x30(%rsp), %r13 movq %r13, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x13a7d movl (%r13), %edx movq 0x8(%r13), %rcx movq %rbx, %rdi movq %r12, %rsi callq 0x14d64 leaq 0x2f0d4(%rip), %r12 # 0x38811 leaq 0x18(%rsp), %r13 movq %r13, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x13a7d movl (%r13), %edx movq 0x8(%r13), %rcx movq %rbx, %rdi movq %r12, %rsi callq 0x14d64 leaq 0x2f0d8(%rip), %r12 # 0x38842 movq %rsp, %r13 movq %r13, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x13a7d movl (%r13), %edx movq 0x8(%r13), %rcx movq %rbx, %rdi movq %r12, %rsi callq 0x14d64 leaq 0x2f0b7(%rip), %rsi # 0x3884c pushq $0x20 popq %rdx movq %rbx, %rdi movq %r14, %rcx callq 0x14d64 movq %rbx, %rax addq $0x60, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
c4_proof_add_header: push r15 push r14 push r13 push r12 push rbx sub rsp, 60h mov r14, rsi mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+28h], xmm0 movups xmmword ptr [rdi+18h], xmm0 movups xmmword ptr [rdi+8], xmm0 push 3 pop rdi call eth_ssz_type_for_denep mov [rbx], rax lea r12, aSlot; "slot" lea r13, [rsp+88h+var_40] lea r15, [rsp+88h+arg_0] mov rdi, r13 mov rsi, r15 mov rdx, r12 call ssz_get mov edx, [r13+0] mov rcx, [r13+8] mov rdi, rbx mov rsi, r12 call ssz_add_bytes lea r12, aProposerindex; "proposerIndex" lea r13, [rsp+88h+var_58] mov rdi, r13 mov rsi, r15 mov rdx, r12 call ssz_get mov edx, [r13+0] mov rcx, [r13+8] mov rdi, rbx mov rsi, r12 call ssz_add_bytes lea r12, aParentroot; "parentRoot" lea r13, [rsp+88h+var_70] mov rdi, r13 mov rsi, r15 mov rdx, r12 call ssz_get mov edx, [r13+0] mov rcx, [r13+8] mov rdi, rbx mov rsi, r12 call ssz_add_bytes lea r12, aStateroot; "stateRoot" mov r13, rsp mov rdi, r13 mov rsi, r15 mov rdx, r12 call ssz_get mov edx, [r13+0] mov rcx, [r13+8] mov rdi, rbx mov rsi, r12 call ssz_add_bytes lea rsi, aBodyroot; "bodyRoot" push 20h ; ' ' pop rdx mov rdi, rbx mov rcx, r14 call ssz_add_bytes mov rax, rbx add rsp, 60h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long c4_proof_add_header(long long a1, long long a2, _DWORD a3, _DWORD a4, _DWORD a5, _DWORD a6, char a7) { unsigned int v8; // [rsp+0h] [rbp-88h] BYREF long long v9; // [rsp+8h] [rbp-80h] unsigned int v10; // [rsp+18h] [rbp-70h] BYREF long long v11; // [rsp+20h] [rbp-68h] unsigned int v12; // [rsp+30h] [rbp-58h] BYREF long long v13; // [rsp+38h] [rbp-50h] unsigned int v14; // [rsp+48h] [rbp-40h] BYREF long long v15; // [rsp+50h] [rbp-38h] *(_OWORD *)(a1 + 40) = 0LL; *(_OWORD *)(a1 + 24) = 0LL; *(_OWORD *)(a1 + 8) = 0LL; *(_QWORD *)a1 = eth_ssz_type_for_denep(3LL); ssz_get(&v14, &a7, "slot"); ssz_add_bytes(a1, "slot", v14, v15); ssz_get(&v12, &a7, "proposerIndex"); ssz_add_bytes(a1, "proposerIndex", v12, v13); ssz_get(&v10, &a7, "parentRoot"); ssz_add_bytes(a1, "parentRoot", v10, v11); ssz_get(&v8, &a7, "stateRoot"); ssz_add_bytes(a1, "stateRoot", v8, v9); ssz_add_bytes(a1, "bodyRoot", 32LL, a2); return a1; }
c4_proof_add_header: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x60 MOV R14,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOVUPS xmmword ptr [RDI + 0x18],XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 PUSH 0x3 POP RDI CALL 0x00110738 MOV qword ptr [RBX],RAX LEA R12,[0x138821] LEA R13,[RSP + 0x48] LEA R15,[RSP + 0x90] MOV RDI,R13 MOV RSI,R15 MOV RDX,R12 CALL 0x00113a7d MOV EDX,dword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] MOV RDI,RBX MOV RSI,R12 CALL 0x00114d64 LEA R12,[0x138834] LEA R13,[RSP + 0x30] MOV RDI,R13 MOV RSI,R15 MOV RDX,R12 CALL 0x00113a7d MOV EDX,dword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] MOV RDI,RBX MOV RSI,R12 CALL 0x00114d64 LEA R12,[0x138811] LEA R13,[RSP + 0x18] MOV RDI,R13 MOV RSI,R15 MOV RDX,R12 CALL 0x00113a7d MOV EDX,dword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] MOV RDI,RBX MOV RSI,R12 CALL 0x00114d64 LEA R12,[0x138842] MOV R13,RSP MOV RDI,R13 MOV RSI,R15 MOV RDX,R12 CALL 0x00113a7d MOV EDX,dword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] MOV RDI,RBX MOV RSI,R12 CALL 0x00114d64 LEA RSI,[0x13884c] PUSH 0x20 POP RDX MOV RDI,RBX MOV RCX,R14 CALL 0x00114d64 MOV RAX,RBX ADD RSP,0x60 POP RBX POP R12 POP R13 POP R14 POP R15 RET
int8 * c4_proof_add_header(int8 *param_1,int8 param_2) { int8 uVar1; int4 local_88 [2]; int8 local_80; int4 local_70 [2]; int8 local_68; int4 local_58 [2]; int8 local_50; int4 local_40 [2]; int8 local_38; param_1[5] = 0; param_1[6] = 0; param_1[3] = 0; param_1[4] = 0; param_1[1] = 0; param_1[2] = 0; uVar1 = eth_ssz_type_for_denep(3); *param_1 = uVar1; ssz_get(local_40,&stack0x00000008,&DAT_00138821); ssz_add_bytes(param_1,&DAT_00138821,local_40[0],local_38); ssz_get(local_58,&stack0x00000008,"proposerIndex"); ssz_add_bytes(param_1,"proposerIndex",local_58[0],local_50); ssz_get(local_70,&stack0x00000008,"parentRoot"); ssz_add_bytes(param_1,"parentRoot",local_70[0],local_68); ssz_get(local_88,&stack0x00000008,"stateRoot"); ssz_add_bytes(param_1,"stateRoot",local_88[0],local_80); ssz_add_bytes(param_1,"bodyRoot",0x20,param_2); return param_1; }
36,843
c4_proof_add_header
corpus-core[P]colibri-stateless/src/chains/eth/proofer/beacon.c
ssz_builder_t c4_proof_add_header(ssz_ob_t block, bytes32_t body_root) { ssz_builder_t beacon_header = {.def = eth_ssz_type_for_denep(ETH_SSZ_BEACON_BLOCK_HEADER), .dynamic = {0}, .fixed = {0}}; ssz_add_bytes(&beacon_header, "slot", ssz_get(&block, "slot").bytes); ssz_add_bytes(&beacon_header, "proposerIndex", ssz_get(&block, "proposerIndex").bytes); ssz_add_bytes(&beacon_header, "parentRoot", ssz_get(&block, "parentRoot").bytes); ssz_add_bytes(&beacon_header, "stateRoot", ssz_get(&block, "stateRoot").bytes); ssz_add_bytes(&beacon_header, "bodyRoot", bytes(body_root, 32)); return beacon_header; }
O3
c
c4_proof_add_header: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x60, %rsp movq %rsi, %r14 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x28(%rdi) movups %xmm0, 0x18(%rdi) movups %xmm0, 0x8(%rdi) movl $0x3, %edi callq 0x1134c movq %rax, (%rbx) leaq 0x33c90(%rip), %r12 # 0x3d821 leaq 0x48(%rsp), %r13 leaq 0x90(%rsp), %r15 movq %r13, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x14885 movl (%r13), %edx movq 0x8(%r13), %rcx movq %rbx, %rdi movq %r12, %rsi callq 0x15b14 leaq 0x33c6e(%rip), %r12 # 0x3d834 leaq 0x30(%rsp), %r13 movq %r13, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x14885 movl (%r13), %edx movq 0x8(%r13), %rcx movq %rbx, %rdi movq %r12, %rsi callq 0x15b14 leaq 0x33c1e(%rip), %r12 # 0x3d811 leaq 0x18(%rsp), %r13 movq %r13, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x14885 movl (%r13), %edx movq 0x8(%r13), %rcx movq %rbx, %rdi movq %r12, %rsi callq 0x15b14 leaq 0x33c22(%rip), %r12 # 0x3d842 movq %rsp, %r13 movq %r13, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x14885 movl (%r13), %edx movq 0x8(%r13), %rcx movq %rbx, %rdi movq %r12, %rsi callq 0x15b14 leaq 0x33c01(%rip), %rsi # 0x3d84c movq %rbx, %rdi movl $0x20, %edx movq %r14, %rcx callq 0x15b14 movq %rbx, %rax addq $0x60, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
c4_proof_add_header: push r15 push r14 push r13 push r12 push rbx sub rsp, 60h mov r14, rsi mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+28h], xmm0 movups xmmword ptr [rdi+18h], xmm0 movups xmmword ptr [rdi+8], xmm0 mov edi, 3 call eth_ssz_type_for_denep mov [rbx], rax lea r12, aSlot; "slot" lea r13, [rsp+88h+var_40] lea r15, [rsp+88h+arg_0] mov rdi, r13 mov rsi, r15 mov rdx, r12 call ssz_get mov edx, [r13+0] mov rcx, [r13+8] mov rdi, rbx mov rsi, r12 call ssz_add_bytes lea r12, aProposerindex; "proposerIndex" lea r13, [rsp+88h+var_58] mov rdi, r13 mov rsi, r15 mov rdx, r12 call ssz_get mov edx, [r13+0] mov rcx, [r13+8] mov rdi, rbx mov rsi, r12 call ssz_add_bytes lea r12, aParentroot; "parentRoot" lea r13, [rsp+88h+var_70] mov rdi, r13 mov rsi, r15 mov rdx, r12 call ssz_get mov edx, [r13+0] mov rcx, [r13+8] mov rdi, rbx mov rsi, r12 call ssz_add_bytes lea r12, aStateroot; "stateRoot" mov r13, rsp mov rdi, r13 mov rsi, r15 mov rdx, r12 call ssz_get mov edx, [r13+0] mov rcx, [r13+8] mov rdi, rbx mov rsi, r12 call ssz_add_bytes lea rsi, aBodyroot; "bodyRoot" mov rdi, rbx mov edx, 20h ; ' ' mov rcx, r14 call ssz_add_bytes mov rax, rbx add rsp, 60h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long c4_proof_add_header(long long a1, long long a2, _DWORD a3, _DWORD a4, _DWORD a5, _DWORD a6, char a7) { unsigned int v8; // [rsp+0h] [rbp-88h] BYREF long long v9; // [rsp+8h] [rbp-80h] unsigned int v10; // [rsp+18h] [rbp-70h] BYREF long long v11; // [rsp+20h] [rbp-68h] unsigned int v12; // [rsp+30h] [rbp-58h] BYREF long long v13; // [rsp+38h] [rbp-50h] unsigned int v14; // [rsp+48h] [rbp-40h] BYREF long long v15; // [rsp+50h] [rbp-38h] *(_OWORD *)(a1 + 40) = 0LL; *(_OWORD *)(a1 + 24) = 0LL; *(_OWORD *)(a1 + 8) = 0LL; *(_QWORD *)a1 = eth_ssz_type_for_denep(3LL); ssz_get(&v14, &a7, "slot"); ssz_add_bytes(a1, "slot", v14, v15); ssz_get(&v12, &a7, "proposerIndex"); ssz_add_bytes(a1, "proposerIndex", v12, v13); ssz_get(&v10, &a7, "parentRoot"); ssz_add_bytes(a1, "parentRoot", v10, v11); ssz_get(&v8, &a7, "stateRoot"); ssz_add_bytes(a1, "stateRoot", v8, v9); ssz_add_bytes(a1, "bodyRoot", 32LL, a2); return a1; }
c4_proof_add_header: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x60 MOV R14,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOVUPS xmmword ptr [RDI + 0x18],XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 MOV EDI,0x3 CALL 0x0011134c MOV qword ptr [RBX],RAX LEA R12,[0x13d821] LEA R13,[RSP + 0x48] LEA R15,[RSP + 0x90] MOV RDI,R13 MOV RSI,R15 MOV RDX,R12 CALL 0x00114885 MOV EDX,dword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] MOV RDI,RBX MOV RSI,R12 CALL 0x00115b14 LEA R12,[0x13d834] LEA R13,[RSP + 0x30] MOV RDI,R13 MOV RSI,R15 MOV RDX,R12 CALL 0x00114885 MOV EDX,dword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] MOV RDI,RBX MOV RSI,R12 CALL 0x00115b14 LEA R12,[0x13d811] LEA R13,[RSP + 0x18] MOV RDI,R13 MOV RSI,R15 MOV RDX,R12 CALL 0x00114885 MOV EDX,dword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] MOV RDI,RBX MOV RSI,R12 CALL 0x00115b14 LEA R12,[0x13d842] MOV R13,RSP MOV RDI,R13 MOV RSI,R15 MOV RDX,R12 CALL 0x00114885 MOV EDX,dword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] MOV RDI,RBX MOV RSI,R12 CALL 0x00115b14 LEA RSI,[0x13d84c] MOV RDI,RBX MOV EDX,0x20 MOV RCX,R14 CALL 0x00115b14 MOV RAX,RBX ADD RSP,0x60 POP RBX POP R12 POP R13 POP R14 POP R15 RET
int8 * c4_proof_add_header(int8 *param_1,int8 param_2) { int8 uVar1; int4 local_88 [2]; int8 local_80; int4 local_70 [2]; int8 local_68; int4 local_58 [2]; int8 local_50; int4 local_40 [2]; int8 local_38; param_1[5] = 0; param_1[6] = 0; param_1[3] = 0; param_1[4] = 0; param_1[1] = 0; param_1[2] = 0; uVar1 = eth_ssz_type_for_denep(3); *param_1 = uVar1; ssz_get(local_40,&stack0x00000008,&DAT_0013d821); ssz_add_bytes(param_1,&DAT_0013d821,local_40[0],local_38); ssz_get(local_58,&stack0x00000008,"proposerIndex"); ssz_add_bytes(param_1,"proposerIndex",local_58[0],local_50); ssz_get(local_70,&stack0x00000008,"parentRoot"); ssz_add_bytes(param_1,"parentRoot",local_70[0],local_68); ssz_get(local_88,&stack0x00000008,"stateRoot"); ssz_add_bytes(param_1,"stateRoot",local_88[0],local_80); ssz_add_bytes(param_1,"bodyRoot",0x20,param_2); return param_1; }
36,844
my_strxfrm_desc_and_reverse
eloqsql/strings/ctype-simple.c
void my_strxfrm_desc_and_reverse(uchar *str, uchar *strend, uint flags, uint level) { if (flags & (MY_STRXFRM_DESC_LEVEL1 << level)) { if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level)) { for (strend--; str <= strend;) { uchar tmp= *str; *str++= ~*strend; *strend--= ~tmp; } } else { for (; str < strend; str++) *str= ~*str; } } else if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level)) { for (strend--; str < strend;) { uchar tmp= *str; *str++= *strend; *strend--= tmp; } } }
O3
c
my_strxfrm_desc_and_reverse: pushq %rbp movq %rsp, %rbp movl %edx, %r8d shrl %cl, %r8d movl $0x10000, %eax # imm = 0x10000 shll %cl, %eax btl $0x8, %r8d jae 0xb65b0 testl %edx, %eax je 0xb65e3 decq %rsi cmpq %rdi, %rsi jb 0xb65f2 incq %rdi movb -0x1(%rdi), %al movb (%rsi), %cl notb %cl movb %cl, -0x1(%rdi) notb %al movb %al, (%rsi) decq %rsi leaq 0x1(%rdi), %rax cmpq %rsi, %rdi movq %rax, %rdi jbe 0xb6591 jmp 0xb65f2 testl %edx, %eax setne %al decq %rsi cmpq %rdi, %rsi seta %cl andb %al, %cl cmpb $0x1, %cl jne 0xb65f2 incq %rdi movb -0x1(%rdi), %al movb (%rsi), %cl movb %cl, -0x1(%rdi) movb %al, (%rsi) decq %rsi leaq 0x1(%rdi), %rax cmpq %rsi, %rdi movq %rax, %rdi jb 0xb65c8 jmp 0xb65f2 cmpq %rsi, %rdi jae 0xb65f2 notb (%rdi) incq %rdi cmpq %rsi, %rdi jne 0xb65e8 popq %rbp retq
my_strxfrm_desc_and_reverse: push rbp mov rbp, rsp mov r8d, edx shr r8d, cl mov eax, offset stru_10000 shl eax, cl bt r8d, 8 jnb short loc_B65B0 test eax, edx jz short loc_B65E3 dec rsi cmp rsi, rdi jb short loc_B65F2 inc rdi loc_B6591: mov al, [rdi-1] mov cl, [rsi] not cl mov [rdi-1], cl not al mov [rsi], al dec rsi lea rax, [rdi+1] cmp rdi, rsi mov rdi, rax jbe short loc_B6591 jmp short loc_B65F2 loc_B65B0: test eax, edx setnz al dec rsi cmp rsi, rdi setnbe cl and cl, al cmp cl, 1 jnz short loc_B65F2 inc rdi loc_B65C8: mov al, [rdi-1] mov cl, [rsi] mov [rdi-1], cl mov [rsi], al dec rsi lea rax, [rdi+1] cmp rdi, rsi mov rdi, rax jb short loc_B65C8 jmp short loc_B65F2 loc_B65E3: cmp rdi, rsi jnb short loc_B65F2 loc_B65E8: not byte ptr [rdi] inc rdi cmp rdi, rsi jnz short loc_B65E8 loc_B65F2: pop rbp retn
char my_strxfrm_desc_and_reverse(_BYTE *a1, _BYTE *a2, unsigned int a3, char a4) { int v4; // eax _BYTE *v5; // rsi _BYTE *v6; // rdi char v7; // al _BYTE *v9; // rsi _BYTE *v10; // rdi char v11; // al v4 = (_DWORD)&stru_10000 << a4; if ( ((a3 >> a4) & 0x100) != 0 ) { if ( (a3 & v4) != 0 ) { v5 = a2 - 1; if ( v5 >= a1 ) { v6 = a1 + 1; do { v7 = *(v6 - 1); *(v6 - 1) = ~*v5; *v5-- = ~v7; LOBYTE(v4) = (_BYTE)v6 + 1; } while ( v6++ <= v5 ); } } else if ( a1 < a2 ) { do { *a1 = ~*a1; ++a1; } while ( a1 != a2 ); } } else { LOBYTE(v4) = (a3 & v4) != 0; v9 = a2 - 1; if ( ((unsigned __int8)v4 & (v9 > a1)) == 1 ) { v10 = a1 + 1; do { v11 = *(v10 - 1); *(v10 - 1) = *v9; *v9-- = v11; LOBYTE(v4) = (_BYTE)v10 + 1; } while ( v10++ < v9 ); } } return v4; }
my_strxfrm_desc_and_reverse: PUSH RBP MOV RBP,RSP MOV R8D,EDX SHR R8D,CL MOV EAX,0x10000 SHL EAX,CL BT R8D,0x8 JNC 0x001b65b0 TEST EAX,EDX JZ 0x001b65e3 DEC RSI CMP RSI,RDI JC 0x001b65f2 INC RDI LAB_001b6591: MOV AL,byte ptr [RDI + -0x1] MOV CL,byte ptr [RSI] NOT CL MOV byte ptr [RDI + -0x1],CL NOT AL MOV byte ptr [RSI],AL DEC RSI LEA RAX,[RDI + 0x1] CMP RDI,RSI MOV RDI,RAX JBE 0x001b6591 JMP 0x001b65f2 LAB_001b65b0: TEST EAX,EDX SETNZ AL DEC RSI CMP RSI,RDI SETA CL AND CL,AL CMP CL,0x1 JNZ 0x001b65f2 INC RDI LAB_001b65c8: MOV AL,byte ptr [RDI + -0x1] MOV CL,byte ptr [RSI] MOV byte ptr [RDI + -0x1],CL MOV byte ptr [RSI],AL DEC RSI LEA RAX,[RDI + 0x1] CMP RDI,RSI MOV RDI,RAX JC 0x001b65c8 JMP 0x001b65f2 LAB_001b65e3: CMP RDI,RSI JNC 0x001b65f2 LAB_001b65e8: NOT byte ptr [RDI] INC RDI CMP RDI,RSI JNZ 0x001b65e8 LAB_001b65f2: POP RBP RET
void my_strxfrm_desc_and_reverse(byte *param_1,byte *param_2,uint param_3,byte param_4) { byte bVar1; uint uVar2; byte *pbVar3; bool bVar4; uVar2 = 0x10000 << (param_4 & 0x1f); if (((param_3 >> (param_4 & 0x1f)) >> 8 & 1) == 0) { param_2 = param_2 + -1; if (param_1 < param_2 && (uVar2 & param_3) != 0) { pbVar3 = param_1 + 1; do { bVar1 = pbVar3[-1]; pbVar3[-1] = *param_2; *param_2 = bVar1; param_2 = param_2 + -1; bVar4 = pbVar3 < param_2; pbVar3 = pbVar3 + 1; } while (bVar4); } } else if ((uVar2 & param_3) == 0) { if (param_1 < param_2) { do { *param_1 = ~*param_1; param_1 = param_1 + 1; } while (param_1 != param_2); } } else { param_2 = param_2 + -1; if (param_1 <= param_2) { pbVar3 = param_1 + 1; do { bVar1 = pbVar3[-1]; pbVar3[-1] = ~*param_2; *param_2 = ~bVar1; param_2 = param_2 + -1; bVar4 = pbVar3 <= param_2; pbVar3 = pbVar3 + 1; } while (bVar4); } } return; }
36,845
JS_AtomGetKind
bluesky950520[P]quickjs/quickjs.c
static JSAtomKindEnum JS_AtomGetKind(JSContext *ctx, JSAtom v) { JSRuntime *rt; JSAtomStruct *p; rt = ctx->rt; if (__JS_AtomIsTaggedInt(v)) return JS_ATOM_KIND_STRING; p = rt->atom_array[v]; switch(p->atom_type) { case JS_ATOM_TYPE_STRING: return JS_ATOM_KIND_STRING; case JS_ATOM_TYPE_GLOBAL_SYMBOL: return JS_ATOM_KIND_SYMBOL; case JS_ATOM_TYPE_SYMBOL: switch(p->hash) { case JS_ATOM_HASH_SYMBOL: return JS_ATOM_KIND_SYMBOL; case JS_ATOM_HASH_PRIVATE: return JS_ATOM_KIND_PRIVATE; default: abort(); } default: abort(); } return (JSAtomKindEnum){-1}; // pacify compiler }
O0
c
JS_AtomGetKind: subq $0x38, %rsp movq %rdi, 0x28(%rsp) movl %esi, 0x24(%rsp) movq 0x28(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x18(%rsp) movl 0x24(%rsp), %edi callq 0x360c0 cmpl $0x0, %eax je 0x60826 movl $0x0, 0x34(%rsp) jmp 0x608bf movq 0x18(%rsp), %rax movq 0x68(%rax), %rax movl 0x24(%rsp), %ecx movq (%rax,%rcx,8), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq 0x4(%rax), %rax shrq $0x3e, %rax movl %eax, %ecx movl %ecx, 0xc(%rsp) subq $0x1, %rax je 0x6086d jmp 0x60857 movl 0xc(%rsp), %eax subl $0x2, %eax je 0x60877 jmp 0x60862 movl 0xc(%rsp), %eax subl $0x3, %eax je 0x60881 jmp 0x608ba movl $0x0, 0x34(%rsp) jmp 0x608bf movl $0x1, 0x34(%rsp) jmp 0x608bf movq 0x10(%rsp), %rax movl 0x8(%rax), %eax andl $0x3fffffff, %eax # imm = 0x3FFFFFFF movl %eax, 0x8(%rsp) je 0x608a1 jmp 0x60896 movl 0x8(%rsp), %eax subl $0x1, %eax je 0x608ab jmp 0x608b5 movl $0x1, 0x34(%rsp) jmp 0x608bf movl $0x2, 0x34(%rsp) jmp 0x608bf callq 0xe090 callq 0xe090 movl 0x34(%rsp), %eax addq $0x38, %rsp retq nopl (%rax,%rax)
JS_AtomGetKind: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_14], esi mov rax, [rsp+38h+var_10] mov rax, [rax+18h] mov [rsp+38h+var_20], rax mov edi, [rsp+38h+var_14] call __JS_AtomIsTaggedInt cmp eax, 0 jz short loc_60826 mov [rsp+38h+var_4], 0 jmp loc_608BF loc_60826: mov rax, [rsp+38h+var_20] mov rax, [rax+68h] mov ecx, [rsp+38h+var_14] mov rax, [rax+rcx*8] mov [rsp+38h+var_28], rax mov rax, [rsp+38h+var_28] mov rax, [rax+4] shr rax, 3Eh mov ecx, eax mov [rsp+38h+var_2C], ecx sub rax, 1 jz short loc_6086D jmp short $+2 loc_60857: mov eax, [rsp+38h+var_2C] sub eax, 2 jz short loc_60877 jmp short $+2 loc_60862: mov eax, [rsp+38h+var_2C] sub eax, 3 jz short loc_60881 jmp short loc_608BA loc_6086D: mov [rsp+38h+var_4], 0 jmp short loc_608BF loc_60877: mov [rsp+38h+var_4], 1 jmp short loc_608BF loc_60881: mov rax, [rsp+38h+var_28] mov eax, [rax+8] and eax, 3FFFFFFFh mov [rsp+38h+var_30], eax jz short loc_608A1 jmp short $+2 loc_60896: mov eax, [rsp+38h+var_30] sub eax, 1 jz short loc_608AB jmp short loc_608B5 loc_608A1: mov [rsp+38h+var_4], 1 jmp short loc_608BF loc_608AB: mov [rsp+38h+var_4], 2 jmp short loc_608BF loc_608B5: call _abort loc_608BA: call _abort loc_608BF: mov eax, [rsp+38h+var_4] add rsp, 38h retn
long long JS_AtomGetKind(long long a1, unsigned int a2) { int v3; // [rsp+Ch] [rbp-2Ch] long long v4; // [rsp+10h] [rbp-28h] long long v5; // [rsp+18h] [rbp-20h] v5 = *(_QWORD *)(a1 + 24); if ( _JS_AtomIsTaggedInt(a2) ) { return 0; } else { v4 = *(_QWORD *)(*(_QWORD *)(v5 + 104) + 8LL * a2); v3 = *(_QWORD *)(v4 + 4) >> 62; if ( *(_QWORD *)(v4 + 4) >> 62 == 1LL ) { return 0; } else if ( v3 == 2 ) { return 1; } else { if ( v3 != 3 ) abort((const char *)a2); if ( (*(_DWORD *)(v4 + 8) & 0x3FFFFFFF) != 0 ) { if ( (*(_DWORD *)(v4 + 8) & 0x3FFFFFFF) != 1 ) abort((const char *)a2); return 2; } else { return 1; } } } }
JS_AtomGetKind: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV dword ptr [RSP + 0x24],ESI MOV RAX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x18],RAX MOV EDI,dword ptr [RSP + 0x24] CALL 0x001360c0 CMP EAX,0x0 JZ 0x00160826 MOV dword ptr [RSP + 0x34],0x0 JMP 0x001608bf LAB_00160826: MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x68] MOV ECX,dword ptr [RSP + 0x24] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x4] SHR RAX,0x3e MOV ECX,EAX MOV dword ptr [RSP + 0xc],ECX SUB RAX,0x1 JZ 0x0016086d JMP 0x00160857 LAB_00160857: MOV EAX,dword ptr [RSP + 0xc] SUB EAX,0x2 JZ 0x00160877 JMP 0x00160862 LAB_00160862: MOV EAX,dword ptr [RSP + 0xc] SUB EAX,0x3 JZ 0x00160881 JMP 0x001608ba LAB_0016086d: MOV dword ptr [RSP + 0x34],0x0 JMP 0x001608bf LAB_00160877: MOV dword ptr [RSP + 0x34],0x1 JMP 0x001608bf LAB_00160881: MOV RAX,qword ptr [RSP + 0x10] MOV EAX,dword ptr [RAX + 0x8] AND EAX,0x3fffffff MOV dword ptr [RSP + 0x8],EAX JZ 0x001608a1 JMP 0x00160896 LAB_00160896: MOV EAX,dword ptr [RSP + 0x8] SUB EAX,0x1 JZ 0x001608ab JMP 0x001608b5 LAB_001608a1: MOV dword ptr [RSP + 0x34],0x1 JMP 0x001608bf LAB_001608ab: MOV dword ptr [RSP + 0x34],0x2 JMP 0x001608bf LAB_001608b5: CALL 0x0010e090 LAB_001608ba: CALL 0x0010e090 LAB_001608bf: MOV EAX,dword ptr [RSP + 0x34] ADD RSP,0x38 RET
int4 JS_AtomGetKind(long param_1,uint param_2) { long lVar1; ulong uVar2; int iVar3; uint uVar4; int4 local_4; lVar1 = *(long *)(param_1 + 0x18); iVar3 = __JS_AtomIsTaggedInt(param_2); if (iVar3 == 0) { lVar1 = *(long *)(*(long *)(lVar1 + 0x68) + (ulong)param_2 * 8); uVar2 = *(ulong *)(lVar1 + 4); uVar4 = (uint)(uVar2 >> 0x3e); if (uVar2 >> 0x3e == 1) { local_4 = 0; } else if (uVar4 == 2) { local_4 = 1; } else { if (uVar4 != 3) { /* WARNING: Subroutine does not return */ abort(); } uVar4 = *(uint *)(lVar1 + 8) & 0x3fffffff; if (uVar4 == 0) { local_4 = 1; } else { if (uVar4 != 1) { /* WARNING: Subroutine does not return */ abort(); } local_4 = 2; } } } else { local_4 = 0; } return local_4; }
36,846
JS_AtomGetKind
bluesky950520[P]quickjs/quickjs.c
static JSAtomKindEnum JS_AtomGetKind(JSContext *ctx, JSAtom v) { JSRuntime *rt; JSAtomStruct *p; rt = ctx->rt; if (__JS_AtomIsTaggedInt(v)) return JS_ATOM_KIND_STRING; p = rt->atom_array[v]; switch(p->atom_type) { case JS_ATOM_TYPE_STRING: return JS_ATOM_KIND_STRING; case JS_ATOM_TYPE_GLOBAL_SYMBOL: return JS_ATOM_KIND_SYMBOL; case JS_ATOM_TYPE_SYMBOL: switch(p->hash) { case JS_ATOM_HASH_SYMBOL: return JS_ATOM_KIND_SYMBOL; case JS_ATOM_HASH_PRIVATE: return JS_ATOM_KIND_PRIVATE; default: abort(); } default: abort(); } return (JSAtomKindEnum){-1}; // pacify compiler }
O1
c
JS_AtomGetKind: pushq %rax xorl %eax, %eax testl %esi, %esi js 0x3d7e6 movq 0x18(%rdi), %rcx movq 0x68(%rcx), %rcx movl %esi, %edx movq (%rcx,%rdx,8), %rcx movq 0x4(%rcx), %rcx movq %rcx, %rdx shrq $0x3e, %rdx leaq 0x5f3ad(%rip), %rsi # 0x9cb68 movslq (%rsi,%rdx,4), %rdx addq %rsi, %rdx jmpq *%rdx movl $0x1, %eax jmp 0x3d7e6 shrq $0x20, %rcx movl $0x1, %eax andl $0x3fffffff, %ecx # imm = 0x3FFFFFFF je 0x3d7e6 cmpl $0x1, %ecx jne 0x3d7e8 movl $0x2, %eax popq %rcx retq callq 0xe090
JS_AtomGetKind: push rax xor eax, eax test esi, esi js short loc_3D7E6; jumptable 000000000003D7C2 case 1 mov rcx, [rdi+18h] mov rcx, [rcx+68h] mov edx, esi mov rcx, [rcx+rdx*8] mov rcx, [rcx+4] mov rdx, rcx shr rdx, 3Eh lea rsi, jpt_3D7C2 movsxd rdx, ds:(jpt_3D7C2 - 9CB68h)[rsi+rdx*4]; switch 4 cases add rdx, rsi jmp rdx; switch jump loc_3D7C4: mov eax, 1; jumptable 000000000003D7C2 case 2 jmp short loc_3D7E6; jumptable 000000000003D7C2 case 1 loc_3D7CB: shr rcx, 20h; jumptable 000000000003D7C2 case 3 mov eax, 1 and ecx, 3FFFFFFFh jz short loc_3D7E6; jumptable 000000000003D7C2 case 1 cmp ecx, 1 jnz short loc_3D7E8; jumptable 000000000003D7C2 case 0 mov eax, 2 loc_3D7E6: pop rcx; jumptable 000000000003D7C2 case 1 retn loc_3D7E8: call _abort; jumptable 000000000003D7C2 case 0
long long JS_AtomGetKind(long long a1, int a2) { long long result; // rax unsigned long long v3; // rcx result = 0LL; if ( a2 >= 0 ) { v3 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 8LL * (unsigned int)a2) + 4LL); switch ( v3 >> 62 ) { case 0uLL: goto LABEL_8; case 1uLL: return result; case 2uLL: return 1LL; case 3uLL: result = 1LL; if ( (v3 & 0x3FFFFFFF00000000LL) == 0 ) return result; if ( (HIDWORD(v3) & 0x3FFFFFFF) != 1 ) LABEL_8: abort((const char *)a1); result = 2LL; break; } } return result; }
JS_AtomGetKind: PUSH RAX XOR EAX,EAX TEST ESI,ESI JS 0x0013d7e6 MOV RCX,qword ptr [RDI + 0x18] MOV RCX,qword ptr [RCX + 0x68] MOV EDX,ESI MOV RCX,qword ptr [RCX + RDX*0x8] MOV RCX,qword ptr [RCX + 0x4] MOV RDX,RCX SHR RDX,0x3e LEA RSI,[0x19cb68] MOVSXD RDX,dword ptr [RSI + RDX*0x4] ADD RDX,RSI JMP RDX LAB_0013d7e6: POP RCX RET
int8 JS_AtomGetKind(long param_1,uint param_2) { int8 uVar1; if (-1 < (int)param_2) { /* WARNING: Could not recover jumptable at 0x0013d7c2. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar1 = (*(code *)(&DAT_0019cb68 + *(int *)(&DAT_0019cb68 + (*(ulong *)(*(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (ulong)param_2 * 8) + 4) >> 0x3e) * 4))) (param_1,&DAT_0019cb68, &DAT_0019cb68 + *(int *)(&DAT_0019cb68 + (*(ulong *)(*(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (ulong)param_2 * 8) + 4) >> 0x3e) * 4)); return uVar1; } return 0; }
36,847
JS_AtomGetKind
bluesky950520[P]quickjs/quickjs.c
static JSAtomKindEnum JS_AtomGetKind(JSContext *ctx, JSAtom v) { JSRuntime *rt; JSAtomStruct *p; rt = ctx->rt; if (__JS_AtomIsTaggedInt(v)) return JS_ATOM_KIND_STRING; p = rt->atom_array[v]; switch(p->atom_type) { case JS_ATOM_TYPE_STRING: return JS_ATOM_KIND_STRING; case JS_ATOM_TYPE_GLOBAL_SYMBOL: return JS_ATOM_KIND_SYMBOL; case JS_ATOM_TYPE_SYMBOL: switch(p->hash) { case JS_ATOM_HASH_SYMBOL: return JS_ATOM_KIND_SYMBOL; case JS_ATOM_HASH_PRIVATE: return JS_ATOM_KIND_PRIVATE; default: abort(); } default: abort(); } return (JSAtomKindEnum){-1}; // pacify compiler }
O2
c
JS_AtomGetKind: pushq %rax xorl %eax, %eax testl %esi, %esi js 0x36081 movq 0x18(%rdi), %rcx movq 0x68(%rcx), %rcx movl %esi, %edx movq (%rcx,%rdx,8), %rcx movq 0x4(%rcx), %rcx movq %rcx, %rdx shrq $0x3e, %rdx leaq 0x4db4c(%rip), %rsi # 0x83bac movslq (%rsi,%rdx,4), %rdx addq %rsi, %rdx jmpq *%rdx shrq $0x20, %rcx andl $0x3fffffff, %ecx # imm = 0x3FFFFFFF je 0x3607e cmpl $0x1, %ecx jne 0x36083 pushq $0x2 jmp 0x36080 pushq $0x1 popq %rax popq %rcx retq callq 0xe090
JS_AtomGetKind: push rax xor eax, eax test esi, esi js short loc_36081; jumptable 0000000000036067 case 1 mov rcx, [rdi+18h] mov rcx, [rcx+68h] mov edx, esi mov rcx, [rcx+rdx*8] mov rcx, [rcx+4] mov rdx, rcx shr rdx, 3Eh lea rsi, jpt_36067 movsxd rdx, ds:(jpt_36067 - 83BACh)[rsi+rdx*4]; switch 4 cases add rdx, rsi jmp rdx; switch jump loc_36069: shr rcx, 20h; jumptable 0000000000036067 case 3 and ecx, 3FFFFFFFh jz short loc_3607E; jumptable 0000000000036067 case 2 cmp ecx, 1 jnz short loc_36083; jumptable 0000000000036067 case 0 push 2 jmp short loc_36080 loc_3607E: push 1; jumptable 0000000000036067 case 2 loc_36080: pop rax loc_36081: pop rcx; jumptable 0000000000036067 case 1 retn loc_36083: call _abort; jumptable 0000000000036067 case 0
long long JS_AtomGetKind(long long a1, int a2) { long long result; // rax unsigned long long v3; // rcx long long v4; // [rsp-10h] [rbp-10h] result = 0LL; if ( a2 >= 0 ) { v3 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 8LL * (unsigned int)a2) + 4LL); switch ( v3 >> 62 ) { case 0uLL: goto LABEL_9; case 1uLL: return result; case 2uLL: goto LABEL_6; case 3uLL: if ( (v3 & 0x3FFFFFFF00000000LL) != 0 ) { if ( (HIDWORD(v3) & 0x3FFFFFFF) != 1 ) LABEL_9: abort((const char *)a1); v4 = 2LL; } else { LABEL_6: v4 = 1LL; } result = v4; break; } } return result; }
JS_AtomGetKind: PUSH RAX XOR EAX,EAX TEST ESI,ESI JS 0x00136081 MOV RCX,qword ptr [RDI + 0x18] MOV RCX,qword ptr [RCX + 0x68] MOV EDX,ESI MOV RCX,qword ptr [RCX + RDX*0x8] MOV RCX,qword ptr [RCX + 0x4] MOV RDX,RCX SHR RDX,0x3e LEA RSI,[0x183bac] MOVSXD RDX,dword ptr [RSI + RDX*0x4] ADD RDX,RSI JMP RDX LAB_00136081: POP RCX RET
int8 JS_AtomGetKind(long param_1,uint param_2) { int8 uVar1; if (-1 < (int)param_2) { /* WARNING: Could not recover jumptable at 0x00136067. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar1 = (*(code *)(&DAT_00183bac + *(int *)(&DAT_00183bac + (*(ulong *)(*(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (ulong)param_2 * 8) + 4) >> 0x3e) * 4))) (param_1,&DAT_00183bac, &DAT_00183bac + *(int *)(&DAT_00183bac + (*(ulong *)(*(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (ulong)param_2 * 8) + 4) >> 0x3e) * 4)); return uVar1; } return 0; }
36,848
server_queue::post(server_task, bool)
llama.cpp/examples/server/server.cpp
int post(server_task task, bool front = false) { std::unique_lock<std::mutex> lock(mutex_tasks); GGML_ASSERT(task.id != -1); // if this is cancel task make sure to clean up pending tasks if (task.type == SERVER_TASK_TYPE_CANCEL) { cleanup_pending_task(task.id_target); } QUE_DBG("new task, id = %d, front = %d\n", task.id, front); if (front) { queue_tasks.push_front(std::move(task)); } else { queue_tasks.push_back(std::move(task)); } condition_tasks.notify_one(); return task.id; }
O3
cpp
server_queue::post(server_task, bool): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r14 leaq 0xa8(%rdi), %rax leaq 0x8(%rsp), %r15 movq %rax, (%r15) movb $0x0, 0x8(%r15) movq %r15, %rdi callq 0x4cad6 movb $0x1, 0x8(%r15) cmpl $-0x1, (%rbx) je 0x7d919 cmpl $0x4, 0x8(%rbx) jne 0x7d899 movl 0xc(%rbx), %esi movq %r14, %rdi callq 0x7e1c0 leaq 0x295c00(%rip), %rax # 0x3134a0 cmpl $0x0, (%rax) jle 0x7d8d6 callq 0x16b537 movl (%rbx), %r9d movzbl %bpl, %ecx movl %ecx, (%rsp) leaq 0xf79b7(%rip), %rdx # 0x175272 leaq 0xf79dc(%rip), %r8 # 0x17529e movq %rax, %rdi movl $0x1, %esi movl $0xc, %ecx xorl %eax, %eax callq 0x16b5d4 leaq 0x8(%r14), %rdi testb %bpl, %bpl je 0x7d8e9 movq %rbx, %rsi callq 0x7f862 jmp 0x7d8f1 movq %rbx, %rsi callq 0x5d926 addq $0xd0, %r14 movq %r14, %rdi callq 0x25b50 movl (%rbx), %ebx leaq 0x8(%rsp), %rdi callq 0x4cac0 movl %ebx, %eax addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0xf75a4(%rip), %rdi # 0x174ec4 leaq 0xf54eb(%rip), %rdx # 0x172e12 leaq 0xf7936(%rip), %rcx # 0x175264 movl $0x619, %esi # imm = 0x619 xorl %eax, %eax callq 0x26090 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x4cac0 movq %rbx, %rdi callq 0x25ca0 nop
_ZN12server_queue4postE11server_taskb: push rbp push r15 push r14 push rbx sub rsp, 18h mov ebp, edx mov rbx, rsi mov r14, rdi lea rax, [rdi+0A8h] lea r15, [rsp+38h+var_30] mov [r15], rax mov byte ptr [r15+8], 0 mov rdi, r15 call _ZNSt11unique_lockISt5mutexE4lockEv; std::unique_lock<std::mutex>::lock(void) mov byte ptr [r15+8], 1 cmp dword ptr [rbx], 0FFFFFFFFh jz loc_7D919 cmp dword ptr [rbx+8], 4 jnz short loc_7D899 mov esi, [rbx+0Ch]; int mov rdi, r14; this call _ZN12server_queue20cleanup_pending_taskEi; server_queue::cleanup_pending_task(int) loc_7D899: lea rax, common_log_verbosity_thold cmp dword ptr [rax], 0 jle short loc_7D8D6 call _Z15common_log_mainv; common_log_main(void) mov r9d, [rbx] movzx ecx, bpl mov [rsp+38h+var_38], ecx lea rdx, aQue12SNewTaskI; "que %12.*s: new task, id = %d, front ="... lea r8, aPost_0; "post" mov rdi, rax mov esi, 1 mov ecx, 0Ch xor eax, eax call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...) loc_7D8D6: lea rdi, [r14+8] test bpl, bpl jz short loc_7D8E9 mov rsi, rbx call _ZNSt5dequeI11server_taskSaIS0_EE13emplace_frontIJS0_EEERS0_DpOT_; std::deque<server_task>::emplace_front<server_task>(server_task &&) jmp short loc_7D8F1 loc_7D8E9: mov rsi, rbx call _ZNSt5dequeI11server_taskSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::deque<server_task>::emplace_back<server_task>(server_task &&) loc_7D8F1: add r14, 0D0h mov rdi, r14; this call __ZNSt18condition_variable10notify_oneEv; std::condition_variable::notify_one(void) mov ebx, [rbx] lea rdi, [rsp+38h+var_30] call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() mov eax, ebx add rsp, 18h pop rbx pop r14 pop r15 pop rbp retn loc_7D919: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTaskId1; "task.id != -1" mov esi, 619h xor eax, eax call _ggml_abort mov rbx, rax lea rdi, [rsp+38h+var_30] call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() mov rdi, rbx call __Unwind_Resume
long long server_queue::post(_QWORD *a1, unsigned int *a2, char a3) { int v5; // eax _QWORD *v6; // rdi unsigned int v7; // ebx long long v9; // rax _QWORD *v10; // [rsp+8h] [rbp-30h] BYREF char v11; // [rsp+10h] [rbp-28h] v10 = a1 + 21; v11 = 0; std::unique_lock<std::mutex>::lock((long long)&v10); v11 = 1; if ( *a2 == -1 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/examples/server/server.cpp", 1561LL, "GGML_ASSERT(%s) failed", "task.id != -1"); std::unique_lock<std::mutex>::~unique_lock((long long)&v10); _Unwind_Resume(v9); } if ( a2[2] == 4 ) server_queue::cleanup_pending_task((server_queue *)a1, a2[3]); if ( common_log_verbosity_thold > 0 ) { v5 = common_log_main(); common_log_add(v5, 1, (unsigned int)"que %12.*s: new task, id = %d, front = %d\n", 12, (unsigned int)"post", *a2); } v6 = a1 + 1; if ( a3 ) std::deque<server_task>::emplace_front<server_task>(v6, a2); else std::deque<server_task>::emplace_back<server_task>(v6, (long long)a2); std::condition_variable::notify_one((std::condition_variable *)(a1 + 26)); v7 = *a2; std::unique_lock<std::mutex>::~unique_lock((long long)&v10); return v7; }
post: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV EBP,EDX MOV RBX,RSI MOV R14,RDI LEA RAX,[RDI + 0xa8] LEA R15,[RSP + 0x8] MOV qword ptr [R15],RAX MOV byte ptr [R15 + 0x8],0x0 MOV RDI,R15 CALL 0x0014cad6 MOV byte ptr [R15 + 0x8],0x1 CMP dword ptr [RBX],-0x1 JZ 0x0017d919 CMP dword ptr [RBX + 0x8],0x4 JNZ 0x0017d899 MOV ESI,dword ptr [RBX + 0xc] LAB_0017d891: MOV RDI,R14 CALL 0x0017e1c0 LAB_0017d899: LEA RAX,[0x4134a0] CMP dword ptr [RAX],0x0 JLE 0x0017d8d6 CALL 0x0026b537 MOV R9D,dword ptr [RBX] MOVZX ECX,BPL MOV dword ptr [RSP],ECX LEA RDX,[0x275272] LEA R8,[0x27529e] MOV RDI,RAX MOV ESI,0x1 MOV ECX,0xc XOR EAX,EAX CALL 0x0026b5d4 LAB_0017d8d6: LEA RDI,[R14 + 0x8] TEST BPL,BPL JZ 0x0017d8e9 MOV RSI,RBX CALL 0x0017f862 JMP 0x0017d8f1 LAB_0017d8e9: MOV RSI,RBX CALL 0x0015d926 LAB_0017d8f1: ADD R14,0xd0 MOV RDI,R14 CALL 0x00125b50 MOV EBX,dword ptr [RBX] LEA RDI,[RSP + 0x8] CALL 0x0014cac0 MOV EAX,EBX ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP RET LAB_0017d919: LEA RDI,[0x274ec4] LEA RDX,[0x272e12] LEA RCX,[0x275264] MOV ESI,0x619 XOR EAX,EAX CALL 0x00126090
/* server_queue::post(server_task, bool) */ int4 __thiscall server_queue::post(server_queue *this,server_task *param_2,char param_3) { int4 uVar1; int8 uVar2; server_queue *local_30; int1 local_28; local_30 = this + 0xa8; local_28 = 0; std::unique_lock<std::mutex>::lock((unique_lock<std::mutex> *)&local_30); local_28 = 1; if (*(int *)param_2 != -1) { if (*(int *)(param_2 + 8) == 4) { /* try { // try from 0017d891 to 0017d939 has its CatchHandler @ 0017d93a */ cleanup_pending_task(this,*(int *)(param_2 + 0xc)); } if (0 < common_log_verbosity_thold) { uVar2 = common_log_main(); common_log_add(uVar2,1,"que %12.*s: new task, id = %d, front = %d\n",0xc,&DAT_0027529e, *(int4 *)param_2,param_3); } if (param_3 == '\0') { std::deque<server_task,std::allocator<server_task>>::emplace_back<server_task> ((deque<server_task,std::allocator<server_task>> *)(this + 8),param_2); } else { std::deque<server_task,std::allocator<server_task>>::emplace_front<server_task> ((deque<server_task,std::allocator<server_task>> *)(this + 8),param_2); } std::condition_variable::notify_one(); uVar1 = *(int4 *)param_2; std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_30); return uVar1; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/examples/server/server.cpp",0x619, "GGML_ASSERT(%s) failed","task.id != -1"); }
36,849
my_charset_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_charset_get_by_name(MY_CHARSET_LOADER *loader, const char *cs_name, uint cs_flags, myf flags) { uint cs_number; CHARSET_INFO *cs; DBUG_ENTER("get_charset_by_csname"); DBUG_PRINT("enter",("name: '%s'", cs_name)); my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_charset_number(cs_name, cs_flags, flags); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_name, index_file); } DBUG_RETURN(cs); }
O3
c
my_charset_get_by_name: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x220, %rsp # imm = 0x220 movq %rcx, %r15 movl %edx, %r12d movq %rsi, %rbx movq %rdi, %r14 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) leaq 0x377e5a(%rip), %rdi # 0x3f06c0 leaq -0x9ae(%rip), %rsi # 0x77ebf callq 0x3a320 movq %rbx, %rdi movl %r12d, %esi movq %r15, %rdx callq 0x780aa testl %eax, %eax je 0x78896 movq %r14, %rdi movl %eax, %esi movq %r15, %rdx callq 0x7834e movq %rax, %r14 jmp 0x78899 xorl %r14d, %r14d testq %r14, %r14 setne %al testb $0x10, %r15b sete %cl orb %al, %cl jne 0x788e3 leaq -0x240(%rbp), %r15 movq %r15, %rdi callq 0x77c7f movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49 movq %rcx, (%rax) movw $0x6c, 0x8(%rax) movl $0x4, %esi movl $0x16, %edi movq %rbx, %rdx movq %r15, %rcx xorl %eax, %eax callq 0x80bfb movq %fs:0x28, %rax cmpq -0x28(%rbp), %rax jne 0x78905 movq %r14, %rax addq $0x220, %rsp # imm = 0x220 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x3a340
my_charset_get_by_name: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 220h mov r15, rcx mov r12d, edx mov rbx, rsi mov r14, rdi mov rax, fs:28h mov [rbp+var_28], rax lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, rbx mov esi, r12d mov rdx, r15 call get_charset_number test eax, eax jz short loc_78896 mov rdi, r14 mov esi, eax mov rdx, r15 call get_internal_charset mov r14, rax jmp short loc_78899 loc_78896: xor r14d, r14d loc_78899: test r14, r14 setnz al test r15b, 10h setz cl or cl, al jnz short loc_788E3 lea r15, [rbp+var_240] mov rdi, r15 call get_charsets_dir mov rcx, 6D782E7865646E49h mov [rax], rcx mov word ptr [rax+8], 6Ch ; 'l' mov esi, 4 mov edi, 16h mov rdx, rbx mov rcx, r15 xor eax, eax call my_error loc_788E3: mov rax, fs:28h cmp rax, [rbp+var_28] jnz short loc_78905 mov rax, r14 add rsp, 220h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_78905: call ___stack_chk_fail
long long my_charset_get_by_name(long long a1, long long a2, unsigned int a3, long long a4) { unsigned int charset_number; // eax long long internal_charset; // r14 int v8; // r8d int v9; // r9d _BYTE v11[536]; // [rsp+0h] [rbp-240h] BYREF unsigned long long v12; // [rsp+218h] [rbp-28h] v12 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); charset_number = get_charset_number(a2, a3, a4); if ( charset_number ) internal_charset = get_internal_charset(a1, charset_number, a4); else internal_charset = 0LL; if ( internal_charset == 0 && (a4 & 0x10) != 0 ) { strcpy((char *)get_charsets_dir((long long)v11), "Index.xml"); my_error(22, 4, a2, (unsigned int)v11, v8, v9); } return internal_charset; }
my_charset_get_by_name: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x220 MOV R15,RCX MOV R12D,EDX MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX LEA RDI,[0x4f06c0] LEA RSI,[0x177ebf] CALL 0x0013a320 MOV RDI,RBX MOV ESI,R12D MOV RDX,R15 CALL 0x001780aa TEST EAX,EAX JZ 0x00178896 MOV RDI,R14 MOV ESI,EAX MOV RDX,R15 CALL 0x0017834e MOV R14,RAX JMP 0x00178899 LAB_00178896: XOR R14D,R14D LAB_00178899: TEST R14,R14 SETNZ AL TEST R15B,0x10 SETZ CL OR CL,AL JNZ 0x001788e3 LEA R15,[RBP + -0x240] MOV RDI,R15 CALL 0x00177c7f MOV RCX,0x6d782e7865646e49 MOV qword ptr [RAX],RCX MOV word ptr [RAX + 0x8],0x6c MOV ESI,0x4 MOV EDI,0x16 MOV RDX,RBX MOV RCX,R15 XOR EAX,EAX CALL 0x00180bfb LAB_001788e3: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x00178905 MOV RAX,R14 ADD RSP,0x220 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00178905: CALL 0x0013a340
long my_charset_get_by_name(int8 param_1,int8 param_2,int4 param_3,ulong param_4) { int iVar1; long lVar2; int8 *puVar3; long in_FS_OFFSET; int1 local_248 [536]; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_charset_number(param_2,param_3,param_4); if (iVar1 == 0) { lVar2 = 0; } else { lVar2 = get_internal_charset(param_1,iVar1,param_4); } if ((param_4 & 0x10) != 0 && lVar2 == 0) { puVar3 = (int8 *)get_charsets_dir(local_248); *puVar3 = 0x6d782e7865646e49; *(int2 *)(puVar3 + 1) = 0x6c; my_error(0x16,4,param_2,local_248); } if (*(long *)(in_FS_OFFSET + 0x28) == local_30) { return lVar2; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
36,850
write_merge_key
eloqsql/storage/myisam/sort.c
static int write_merge_key(MI_SORT_PARAM *info __attribute__((unused)), IO_CACHE *to_file, uchar *key, uint sort_length, ha_keys count) { return my_b_write(to_file, key, (size_t) (sort_length * count)); }
O3
c
write_merge_key: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movl %ecx, %ebx imulq %r8, %rbx movq 0x40(%rsi), %rdi leaq (%rdi,%rbx), %rax cmpq 0x48(%rsi), %rax jbe 0x598b5 movq %r14, %rdi movq %rdx, %rsi movq %rbx, %rdx popq %rbx popq %r14 popq %rbp jmp 0x628f3 testq %rbx, %rbx je 0x598c9 movq %rdx, %rsi movq %rbx, %rdx callq 0x292f0 addq %rbx, 0x40(%r14) xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq
write_merge_key: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi mov ebx, ecx imul rbx, r8 mov rdi, [rsi+40h] lea rax, [rdi+rbx] cmp rax, [rsi+48h] jbe short loc_598B5 mov rdi, r14 mov rsi, rdx mov rdx, rbx pop rbx pop r14 pop rbp jmp _my_b_write loc_598B5: test rbx, rbx jz short loc_598C9 mov rsi, rdx mov rdx, rbx call _memcpy add [r14+40h], rbx loc_598C9: xor eax, eax pop rbx pop r14 pop rbp retn
long long write_merge_key(long long a1, long long a2, long long a3, unsigned int a4, long long a5) { long long v5; // rbx long long v6; // rdi v5 = a5 * a4; v6 = *(_QWORD *)(a2 + 64); if ( (unsigned long long)(v6 + v5) > *(_QWORD *)(a2 + 72) ) return my_b_write(a2, a3, a5 * a4); if ( v5 ) { memcpy(v6, a3, a5 * a4); *(_QWORD *)(a2 + 64) += v5; } return 0LL; }
write_merge_key: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI MOV EBX,ECX IMUL RBX,R8 MOV RDI,qword ptr [RSI + 0x40] LEA RAX,[RDI + RBX*0x1] CMP RAX,qword ptr [RSI + 0x48] JBE 0x001598b5 MOV RDI,R14 MOV RSI,RDX MOV RDX,RBX POP RBX POP R14 POP RBP JMP 0x001628f3 LAB_001598b5: TEST RBX,RBX JZ 0x001598c9 MOV RSI,RDX MOV RDX,RBX CALL 0x001292f0 ADD qword ptr [R14 + 0x40],RBX LAB_001598c9: XOR EAX,EAX POP RBX POP R14 POP RBP RET
int8 write_merge_key(int8 param_1,long param_2,void *param_3,uint param_4,long param_5) { int8 uVar1; size_t __n; __n = (ulong)param_4 * param_5; if (*(void **)(param_2 + 0x48) < (void *)((long)*(void **)(param_2 + 0x40) + __n)) { uVar1 = _my_b_write(param_2,param_3,__n); return uVar1; } if (__n != 0) { memcpy(*(void **)(param_2 + 0x40),param_3,__n); *(long *)(param_2 + 0x40) = *(long *)(param_2 + 0x40) + __n; } return 0; }
36,851
init_key_cache_internal
eloqsql/mysys/mf_keycache.c
static int init_key_cache_internal(KEY_CACHE *keycache, uint key_cache_block_size, size_t use_mem, uint division_limit, uint age_threshold, uint changed_blocks_hash_size, uint partitions, my_bool use_op_lock) { void *keycache_cb; int blocks; if (keycache->key_cache_inited) { if (use_op_lock) pthread_mutex_lock(&keycache->op_lock); keycache_cb= keycache->keycache_cb; } else { if (partitions == 0) { if (!(keycache_cb= (void *) my_malloc(key_memory_KEY_CACHE, sizeof(SIMPLE_KEY_CACHE_CB), MYF(0)))) return 0; ((SIMPLE_KEY_CACHE_CB *) keycache_cb)->key_cache_inited= 0; keycache->key_cache_type= SIMPLE_KEY_CACHE; keycache->interface_funcs= &simple_key_cache_funcs; } else { if (!(keycache_cb= (void *) my_malloc(key_memory_KEY_CACHE, sizeof(PARTITIONED_KEY_CACHE_CB), MYF(0)))) return 0; ((PARTITIONED_KEY_CACHE_CB *) keycache_cb)->key_cache_inited= 0; keycache->key_cache_type= PARTITIONED_KEY_CACHE; keycache->interface_funcs= &partitioned_key_cache_funcs; } /* Initialize op_lock if it's not initialized before. The mutex may have been initialized before if we are being called from repartition_key_cache_internal(). */ if (use_op_lock) pthread_mutex_init(&keycache->op_lock, MY_MUTEX_INIT_FAST); keycache->keycache_cb= keycache_cb; keycache->key_cache_inited= 1; if (use_op_lock) pthread_mutex_lock(&keycache->op_lock); } if (partitions != 0) { ((PARTITIONED_KEY_CACHE_CB *) keycache_cb)->partitions= partitions; } keycache->can_be_used= 0; blocks= keycache->interface_funcs->init(keycache_cb, key_cache_block_size, use_mem, division_limit, age_threshold, changed_blocks_hash_size); keycache->partitions= partitions ? ((PARTITIONED_KEY_CACHE_CB *) keycache_cb)->partitions : 0; DBUG_ASSERT(partitions <= MAX_KEY_CACHE_PARTITIONS); keycache->key_cache_mem_size= keycache->partitions ? ((PARTITIONED_KEY_CACHE_CB *) keycache_cb)->key_cache_mem_size : ((SIMPLE_KEY_CACHE_CB *) keycache_cb)->key_cache_mem_size; if (blocks > 0) keycache->can_be_used= 1; if (use_op_lock) pthread_mutex_unlock(&keycache->op_lock); return blocks; }
O3
c
init_key_cache_internal: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r9d, %r12d movl %ecx, %r13d movq %rdx, %r14 movq %rdi, %rbx movl 0x10(%rbp), %ecx cmpb $0x0, 0x48(%rdi) je 0x9f9f0 cmpb $0x0, 0x18(%rbp) je 0x9f9e7 leaq 0x58(%rbx), %rdi movl %r8d, %r15d movl %r13d, -0x2c(%rbp) movl %esi, %r13d callq 0x2a200 movl %r13d, %esi movl 0x10(%rbp), %ecx movl -0x2c(%rbp), %r13d movl %r15d, %r8d movq 0x8(%rbx), %r15 jmp 0x9fa9d movl %esi, -0x30(%rbp) movl %r8d, -0x34(%rbp) movl %r12d, -0x2c(%rbp) leaq 0xb767a6(%rip), %rax # 0xc161a8 movl (%rax), %edi xorl %r12d, %r12d testl %ecx, %ecx je 0x9fa32 movl $0x20, %esi xorl %edx, %edx callq 0xaa1d9 testq %rax, %rax je 0x9fb08 movq %rax, %r15 leaq 0x2f370e(%rip), %rax # 0x393138 movl $0x1, %r12d jmp 0x9fa51 movl $0x170, %esi # imm = 0x170 xorl %edx, %edx callq 0xaa1d9 testq %rax, %rax je 0x9fb08 movq %rax, %r15 leaq 0x2f3697(%rip), %rax # 0x3930e8 movb $0x0, (%r15) movl %r12d, (%rbx) movq %rax, 0x10(%rbx) cmpb $0x0, 0x18(%rbp) je 0x9fa87 leaq 0x58(%rbx), %r12 leaq 0xb76ab3(%rip), %rsi # 0xc16520 movq %r12, %rdi callq 0x2a320 movq %r15, 0x8(%rbx) movb $0x1, 0x48(%rbx) movq %r12, %rdi callq 0x2a200 jmp 0x9fa8f movq %r15, 0x8(%rbx) movb $0x1, 0x48(%rbx) movl -0x2c(%rbp), %r12d movl -0x34(%rbp), %r8d movl 0x10(%rbp), %ecx movl -0x30(%rbp), %esi testl %ecx, %ecx je 0x9faa5 movl %ecx, 0x1c(%r15) movb $0x0, 0x49(%rbx) movq 0x10(%rbx), %rax movq %r15, %rdi movq %r14, %rdx movl %ecx, %r14d movl %r13d, %ecx movl %r12d, %r9d callq *(%rax) movl %eax, %r12d testl %r14d, %r14d je 0x9fadb movl 0x1c(%r15), %eax xorl %ecx, %ecx testl %eax, %eax setne %cl leaq 0x8(,%rcx,8), %rcx jmp 0x9fae2 xorl %eax, %eax movl $0x8, %ecx movl %eax, 0x4c(%rbx) movq (%r15,%rcx), %rax movq %rax, 0x50(%rbx) testl %r12d, %r12d jle 0x9faf6 movb $0x1, 0x49(%rbx) cmpb $0x0, 0x18(%rbp) je 0x9fb08 addq $0x58, %rbx movq %rbx, %rdi callq 0x2a1d0 movl %r12d, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
init_key_cache_internal: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r12d, r9d mov r13d, ecx mov r14, rdx mov rbx, rdi mov ecx, [rbp+arg_0] cmp byte ptr [rdi+48h], 0 jz short loc_9F9F0 cmp [rbp+arg_8], 0 jz short loc_9F9E7 lea rdi, [rbx+58h] mov r15d, r8d mov [rbp+var_2C], r13d mov r13d, esi call _pthread_mutex_lock mov esi, r13d mov ecx, [rbp+arg_0] mov r13d, [rbp+var_2C] mov r8d, r15d loc_9F9E7: mov r15, [rbx+8] jmp loc_9FA9D loc_9F9F0: mov [rbp+var_30], esi mov [rbp+var_34], r8d mov [rbp+var_2C], r12d lea rax, key_memory_KEY_CACHE mov edi, [rax] xor r12d, r12d test ecx, ecx jz short loc_9FA32 mov esi, 20h ; ' ' xor edx, edx call my_malloc test rax, rax jz loc_9FB08 mov r15, rax lea rax, partitioned_key_cache_funcs mov r12d, 1 jmp short loc_9FA51 loc_9FA32: mov esi, 170h xor edx, edx call my_malloc test rax, rax jz loc_9FB08 mov r15, rax lea rax, simple_key_cache_funcs loc_9FA51: mov byte ptr [r15], 0 mov [rbx], r12d mov [rbx+10h], rax cmp [rbp+arg_8], 0 jz short loc_9FA87 lea r12, [rbx+58h] lea rsi, my_fast_mutexattr mov rdi, r12 call _pthread_mutex_init mov [rbx+8], r15 mov byte ptr [rbx+48h], 1 mov rdi, r12 call _pthread_mutex_lock jmp short loc_9FA8F loc_9FA87: mov [rbx+8], r15 mov byte ptr [rbx+48h], 1 loc_9FA8F: mov r12d, [rbp+var_2C] mov r8d, [rbp+var_34] mov ecx, [rbp+arg_0] mov esi, [rbp+var_30] loc_9FA9D: test ecx, ecx jz short loc_9FAA5 mov [r15+1Ch], ecx loc_9FAA5: mov byte ptr [rbx+49h], 0 mov rax, [rbx+10h] mov rdi, r15 mov rdx, r14 mov r14d, ecx mov ecx, r13d mov r9d, r12d call qword ptr [rax] mov r12d, eax test r14d, r14d jz short loc_9FADB mov eax, [r15+1Ch] xor ecx, ecx test eax, eax setnz cl lea rcx, ds:8[rcx*8] jmp short loc_9FAE2 loc_9FADB: xor eax, eax mov ecx, 8 loc_9FAE2: mov [rbx+4Ch], eax mov rax, [r15+rcx] mov [rbx+50h], rax test r12d, r12d jle short loc_9FAF6 mov byte ptr [rbx+49h], 1 loc_9FAF6: cmp [rbp+arg_8], 0 jz short loc_9FB08 add rbx, 58h ; 'X' mov rdi, rbx call _pthread_mutex_unlock loc_9FB08: mov eax, r12d add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long init_key_cache_internal( long long a1, long long a2, long long a3, unsigned int a4, long long a5, unsigned int a6, int a7, char a8) { unsigned int v8; // r12d int v11; // ecx unsigned int v12; // r15d long long v13; // r15 unsigned int v14; // r12d long long v15; // rax long long ( **v16)(); // rax long long v17; // rax long long v18; // rdx int v19; // r14d int v20; // eax long long v21; // rcx unsigned int v23; // [rsp+Ch] [rbp-34h] v8 = a6; v11 = a7; if ( *(_BYTE *)(a1 + 72) ) { if ( a8 ) { v12 = a5; pthread_mutex_lock(a1 + 88); a2 = (unsigned int)a2; v11 = a7; a5 = v12; } v13 = *(_QWORD *)(a1 + 8); } else { v23 = a5; v14 = 0; if ( a7 ) { v15 = my_malloc(key_memory_KEY_CACHE, 32LL, 0LL); if ( !v15 ) return v14; v13 = v15; v16 = partitioned_key_cache_funcs; v14 = 1; } else { v17 = my_malloc(key_memory_KEY_CACHE, 368LL, 0LL); if ( !v17 ) return v14; v13 = v17; v16 = simple_key_cache_funcs; } *(_BYTE *)v13 = 0; *(_DWORD *)a1 = v14; *(_QWORD *)(a1 + 16) = v16; if ( a8 ) { pthread_mutex_init(a1 + 88, &my_fast_mutexattr); *(_QWORD *)(a1 + 8) = v13; *(_BYTE *)(a1 + 72) = 1; pthread_mutex_lock(a1 + 88); } else { *(_QWORD *)(a1 + 8) = v13; *(_BYTE *)(a1 + 72) = 1; } v8 = a6; a5 = v23; v11 = a7; a2 = (unsigned int)a2; } if ( v11 ) *(_DWORD *)(v13 + 28) = v11; *(_BYTE *)(a1 + 73) = 0; v18 = a3; v19 = v11; v14 = (**(long long ( ***)(long long, long long, long long, _QWORD, long long, _QWORD))(a1 + 16))( v13, a2, v18, a4, a5, v8); if ( v19 ) { v20 = *(_DWORD *)(v13 + 28); v21 = 8LL * (v20 != 0) + 8; } else { v20 = 0; v21 = 8LL; } *(_DWORD *)(a1 + 76) = v20; *(_QWORD *)(a1 + 80) = *(_QWORD *)(v13 + v21); if ( (int)v14 > 0 ) *(_BYTE *)(a1 + 73) = 1; if ( a8 ) pthread_mutex_unlock(a1 + 88); return v14; }
init_key_cache_internal: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R12D,R9D MOV R13D,ECX MOV R14,RDX MOV RBX,RDI MOV ECX,dword ptr [RBP + 0x10] CMP byte ptr [RDI + 0x48],0x0 JZ 0x0019f9f0 CMP byte ptr [RBP + 0x18],0x0 JZ 0x0019f9e7 LEA RDI,[RBX + 0x58] MOV R15D,R8D MOV dword ptr [RBP + -0x2c],R13D MOV R13D,ESI CALL 0x0012a200 MOV ESI,R13D MOV ECX,dword ptr [RBP + 0x10] MOV R13D,dword ptr [RBP + -0x2c] MOV R8D,R15D LAB_0019f9e7: MOV R15,qword ptr [RBX + 0x8] JMP 0x0019fa9d LAB_0019f9f0: MOV dword ptr [RBP + -0x30],ESI MOV dword ptr [RBP + -0x34],R8D MOV dword ptr [RBP + -0x2c],R12D LEA RAX,[0xd161a8] MOV EDI,dword ptr [RAX] XOR R12D,R12D TEST ECX,ECX JZ 0x0019fa32 MOV ESI,0x20 XOR EDX,EDX CALL 0x001aa1d9 TEST RAX,RAX JZ 0x0019fb08 MOV R15,RAX LEA RAX,[0x493138] MOV R12D,0x1 JMP 0x0019fa51 LAB_0019fa32: MOV ESI,0x170 XOR EDX,EDX CALL 0x001aa1d9 TEST RAX,RAX JZ 0x0019fb08 MOV R15,RAX LEA RAX,[0x4930e8] LAB_0019fa51: MOV byte ptr [R15],0x0 MOV dword ptr [RBX],R12D MOV qword ptr [RBX + 0x10],RAX CMP byte ptr [RBP + 0x18],0x0 JZ 0x0019fa87 LEA R12,[RBX + 0x58] LEA RSI,[0xd16520] MOV RDI,R12 CALL 0x0012a320 MOV qword ptr [RBX + 0x8],R15 MOV byte ptr [RBX + 0x48],0x1 MOV RDI,R12 CALL 0x0012a200 JMP 0x0019fa8f LAB_0019fa87: MOV qword ptr [RBX + 0x8],R15 MOV byte ptr [RBX + 0x48],0x1 LAB_0019fa8f: MOV R12D,dword ptr [RBP + -0x2c] MOV R8D,dword ptr [RBP + -0x34] MOV ECX,dword ptr [RBP + 0x10] MOV ESI,dword ptr [RBP + -0x30] LAB_0019fa9d: TEST ECX,ECX JZ 0x0019faa5 MOV dword ptr [R15 + 0x1c],ECX LAB_0019faa5: MOV byte ptr [RBX + 0x49],0x0 MOV RAX,qword ptr [RBX + 0x10] MOV RDI,R15 MOV RDX,R14 MOV R14D,ECX MOV ECX,R13D MOV R9D,R12D CALL qword ptr [RAX] MOV R12D,EAX TEST R14D,R14D JZ 0x0019fadb MOV EAX,dword ptr [R15 + 0x1c] XOR ECX,ECX TEST EAX,EAX SETNZ CL LEA RCX,[0x8 + RCX*0x8] JMP 0x0019fae2 LAB_0019fadb: XOR EAX,EAX MOV ECX,0x8 LAB_0019fae2: MOV dword ptr [RBX + 0x4c],EAX MOV RAX,qword ptr [R15 + RCX*0x1] MOV qword ptr [RBX + 0x50],RAX TEST R12D,R12D JLE 0x0019faf6 MOV byte ptr [RBX + 0x49],0x1 LAB_0019faf6: CMP byte ptr [RBP + 0x18],0x0 JZ 0x0019fb08 ADD RBX,0x58 MOV RDI,RBX CALL 0x0012a1d0 LAB_0019fb08: MOV EAX,R12D ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int init_key_cache_internal (int4 *param_1,ulong param_2,int8 param_3,int4 param_4,ulong param_5 ,int4 param_6,int param_7,char param_8) { int iVar1; int iVar2; int1 *puVar3; int1 *puVar4; long lVar5; int4 uVar6; if (*(char *)(param_1 + 0x12) == '\0') { uVar6 = 0; if (param_7 == 0) { puVar3 = (int1 *)my_malloc(key_memory_KEY_CACHE,0x170,0); if (puVar3 == (int1 *)0x0) { return 0; } puVar4 = simple_key_cache_funcs; } else { puVar3 = (int1 *)my_malloc(key_memory_KEY_CACHE,0x20,0); if (puVar3 == (int1 *)0x0) { return 0; } puVar4 = partitioned_key_cache_funcs; uVar6 = 1; } *puVar3 = 0; *param_1 = uVar6; *(int1 **)(param_1 + 4) = puVar4; if (param_8 == '\0') { *(int1 **)(param_1 + 2) = puVar3; *(int1 *)(param_1 + 0x12) = 1; } else { pthread_mutex_init((pthread_mutex_t *)(param_1 + 0x16), (pthread_mutexattr_t *)&my_fast_mutexattr); *(int1 **)(param_1 + 2) = puVar3; *(int1 *)(param_1 + 0x12) = 1; pthread_mutex_lock((pthread_mutex_t *)(param_1 + 0x16)); } param_5 = param_5 & 0xffffffff; param_2 = param_2 & 0xffffffff; } else { if (param_8 != '\0') { param_5 = param_5 & 0xffffffff; param_2 = param_2 & 0xffffffff; pthread_mutex_lock((pthread_mutex_t *)(param_1 + 0x16)); } puVar3 = *(int1 **)(param_1 + 2); } if (param_7 != 0) { *(int *)(puVar3 + 0x1c) = param_7; } *(int1 *)((long)param_1 + 0x49) = 0; iVar1 = (*(code *)**(int8 **)(param_1 + 4))(puVar3,param_2,param_3,param_4,param_5,param_6); if (param_7 == 0) { iVar2 = 0; lVar5 = 8; } else { iVar2 = *(int *)(puVar3 + 0x1c); lVar5 = (ulong)(iVar2 != 0) * 8 + 8; } param_1[0x13] = iVar2; *(int8 *)(param_1 + 0x14) = *(int8 *)(puVar3 + lVar5); if (0 < iVar1) { *(int1 *)((long)param_1 + 0x49) = 1; } if (param_8 != '\0') { pthread_mutex_unlock((pthread_mutex_t *)(param_1 + 0x16)); } return iVar1; }
36,852
testing::internal::FilePath::GenerateUniqueFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, char const*)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-filepath.cc
FilePath FilePath::GenerateUniqueFileName(const FilePath& directory, const FilePath& base_name, const char* extension) { FilePath full_pathname; int number = 0; do { full_pathname.Set(MakeFileName(directory, base_name, number++, extension)); } while (full_pathname.FileOrDirectoryExists()); return full_pathname; }
O0
cpp
testing::internal::FilePath::GenerateUniqueFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, char const*): subq $0x78, %rsp movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq %rdx, 0x60(%rsp) movq %rcx, 0x58(%rsp) movb $0x0, 0x57(%rsp) callq 0x124550 movl $0x0, 0x50(%rsp) movq 0x68(%rsp), %rsi movq 0x60(%rsp), %rdx movl 0x50(%rsp), %ecx movl %ecx, %eax incl %eax movl %eax, 0x50(%rsp) movq 0x58(%rsp), %r8 leaq 0x30(%rsp), %rdi callq 0xf7b60 jmp 0xf82ee movq 0x10(%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0x1245c0 jmp 0xf82ff leaq 0x30(%rsp), %rdi callq 0x1243f0 movq 0x10(%rsp), %rdi callq 0xf8100 movb %al, 0xf(%rsp) jmp 0xf8319 movb 0xf(%rsp), %al testb $0x1, %al jne 0xf82c7 jmp 0xf8323 movb $0x1, 0x57(%rsp) testb $0x1, 0x57(%rsp) jne 0xf8365 jmp 0xf835b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) jmp 0xf836f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) leaq 0x30(%rsp), %rdi callq 0x1243f0 jmp 0xf836f movq 0x10(%rsp), %rdi callq 0x1243f0 movq 0x18(%rsp), %rax addq $0x78, %rsp retq movq 0x10(%rsp), %rdi callq 0x1243f0 movq 0x28(%rsp), %rdi callq 0x15dd0 nopw %cs:(%rax,%rax)
_ZN7testing8internal8FilePath22GenerateUniqueFileNameERKS1_S3_PKc: sub rsp, 78h mov [rsp+78h+var_68], rdi mov rax, rdi mov [rsp+78h+var_60], rax mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov [rsp+78h+var_18], rdx mov [rsp+78h+var_20], rcx mov [rsp+78h+var_21], 0 call _ZN7testing8internal8FilePathC2Ev; testing::internal::FilePath::FilePath(void) mov [rsp+78h+var_28], 0 loc_F82C7: mov rsi, [rsp+78h+var_10]; testing::internal::FilePath * mov rdx, [rsp+78h+var_18]; testing::internal::FilePath * mov ecx, [rsp+78h+var_28]; int mov eax, ecx inc eax mov [rsp+78h+var_28], eax mov r8, [rsp+78h+var_20]; char * lea rdi, [rsp+78h+var_48]; this call _ZN7testing8internal8FilePath12MakeFileNameERKS1_S3_iPKc; testing::internal::FilePath::MakeFileName(testing::internal::FilePath const&,testing::internal::FilePath const&,int,char const*) jmp short $+2 loc_F82EE: mov rdi, [rsp+78h+var_68]; this lea rsi, [rsp+78h+var_48]; testing::internal::FilePath * call _ZN7testing8internal8FilePath3SetERKS1_; testing::internal::FilePath::Set(testing::internal::FilePath const&) jmp short $+2 loc_F82FF: lea rdi, [rsp+78h+var_48]; this call _ZN7testing8internal8FilePathD2Ev; testing::internal::FilePath::~FilePath() mov rdi, [rsp+78h+var_68]; this call _ZNK7testing8internal8FilePath21FileOrDirectoryExistsEv; testing::internal::FilePath::FileOrDirectoryExists(void) mov [rsp+78h+var_69], al jmp short $+2 loc_F8319: mov al, [rsp+78h+var_69] test al, 1 jnz short loc_F82C7 jmp short $+2 loc_F8323: mov [rsp+78h+var_21], 1 test [rsp+78h+var_21], 1 jnz short loc_F8365 jmp short loc_F835B mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax jmp short loc_F836F mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax lea rdi, [rsp+arg_28]; this call _ZN7testing8internal8FilePathD2Ev; testing::internal::FilePath::~FilePath() jmp short loc_F836F loc_F835B: mov rdi, [rsp+78h+var_68]; this call _ZN7testing8internal8FilePathD2Ev; testing::internal::FilePath::~FilePath() loc_F8365: mov rax, [rsp+78h+var_60] add rsp, 78h retn loc_F836F: mov rdi, [rsp+arg_8]; this call _ZN7testing8internal8FilePathD2Ev; testing::internal::FilePath::~FilePath() mov rdi, [rsp+arg_20] call __Unwind_Resume
testing::internal::FilePath * testing::internal::FilePath::GenerateUniqueFileName( testing::internal::FilePath *this, const testing::internal::FilePath *a2, const testing::internal::FilePath *a3, char *a4) { int v4; // ecx _BYTE v6[32]; // [rsp+30h] [rbp-48h] BYREF int v7; // [rsp+50h] [rbp-28h] char v8; // [rsp+57h] [rbp-21h] char *v9; // [rsp+58h] [rbp-20h] testing::internal::FilePath *v10; // [rsp+60h] [rbp-18h] testing::internal::FilePath *v11; // [rsp+68h] [rbp-10h] testing::internal::FilePath *v12; // [rsp+70h] [rbp-8h] v12 = this; v11 = a2; v10 = a3; v9 = a4; v8 = 0; testing::internal::FilePath::FilePath(this); v7 = 0; do { v4 = v7++; testing::internal::FilePath::MakeFileName((testing::internal::FilePath *)v6, v11, v10, v4, v9); testing::internal::FilePath::Set(this, (const testing::internal::FilePath *)v6); testing::internal::FilePath::~FilePath((testing::internal::FilePath *)v6); } while ( testing::internal::FilePath::FileOrDirectoryExists(this) ); return this; }
GenerateUniqueFileName: SUB RSP,0x78 MOV qword ptr [RSP + 0x10],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV qword ptr [RSP + 0x60],RDX MOV qword ptr [RSP + 0x58],RCX MOV byte ptr [RSP + 0x57],0x0 CALL 0x00224550 MOV dword ptr [RSP + 0x50],0x0 LAB_001f82c7: MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x60] MOV ECX,dword ptr [RSP + 0x50] MOV EAX,ECX INC EAX MOV dword ptr [RSP + 0x50],EAX MOV R8,qword ptr [RSP + 0x58] LAB_001f82e2: LEA RDI,[RSP + 0x30] CALL 0x001f7b60 JMP 0x001f82ee LAB_001f82ee: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x30] CALL 0x002245c0 JMP 0x001f82ff LAB_001f82ff: LEA RDI,[RSP + 0x30] CALL 0x002243f0 LAB_001f8309: MOV RDI,qword ptr [RSP + 0x10] CALL 0x001f8100 LAB_001f8313: MOV byte ptr [RSP + 0xf],AL JMP 0x001f8319 LAB_001f8319: MOV AL,byte ptr [RSP + 0xf] TEST AL,0x1 JNZ 0x001f82c7 JMP 0x001f8323 LAB_001f8323: MOV byte ptr [RSP + 0x57],0x1 TEST byte ptr [RSP + 0x57],0x1 JNZ 0x001f8365 JMP 0x001f835b LAB_001f835b: MOV RDI,qword ptr [RSP + 0x10] CALL 0x002243f0 LAB_001f8365: MOV RAX,qword ptr [RSP + 0x18] ADD RSP,0x78 RET
/* WARNING: Removing unreachable block (ram,0x001f832f) */ /* testing::internal::FilePath::GenerateUniqueFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, char const*) */ FilePath * __thiscall testing::internal::FilePath::GenerateUniqueFileName (FilePath *this,FilePath *param_1,FilePath *param_2,char *param_3) { int iVar1; byte bVar2; FilePath local_48 [32]; int local_28; int1 local_21; char *local_20; FilePath *local_18; FilePath *local_10; FilePath *local_8; local_21 = 0; local_20 = param_3; local_18 = param_2; local_10 = param_1; local_8 = this; FilePath(this); local_28 = 0; do { iVar1 = local_28; local_28 = local_28 + 1; /* try { // try from 001f82e2 to 001f82eb has its CatchHandler @ 001f8331 */ MakeFileName(local_48,local_10,local_18,iVar1,local_20); /* try { // try from 001f82ee to 001f82fc has its CatchHandler @ 001f8341 */ Set(this,local_48); ~FilePath(local_48); /* try { // try from 001f8309 to 001f8312 has its CatchHandler @ 001f8331 */ bVar2 = FileOrDirectoryExists(this); } while ((bVar2 & 1) != 0); return this; }
36,853
minja::SliceExpr::~SliceExpr()
monkey531[P]llama/common/minja.hpp
SliceExpr(const Location & location, std::shared_ptr<Expression> && s, std::shared_ptr<Expression> && e) : Expression(location), start(std::move(s)), end(std::move(e)) {}
O1
cpp
minja::SliceExpr::~SliceExpr(): pushq %rbx movq %rdi, %rbx leaq 0x9ecc5(%rip), %rax # 0x12e6c8 addq $0x10, %rax movq %rax, (%rdi) movq 0x38(%rdi), %rdi testq %rdi, %rdi je 0x8fa18 callq 0x6cd56 movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0x8fa26 callq 0x6cd56 leaq 0x9e96b(%rip), %rax # 0x12e398 addq $0x10, %rax movq %rax, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x8fa42 callq 0x6cd56 movl $0x40, %esi movq %rbx, %rdi popq %rbx jmp 0x1b8b0
_ZN5minja9SliceExprD0Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja9SliceExprE; `vtable for'minja::SliceExpr add rax, 10h mov [rdi], rax mov rdi, [rdi+38h] test rdi, rdi jz short loc_8FA18 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8FA18: mov rdi, [rbx+28h] test rdi, rdi jz short loc_8FA26 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8FA26: lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression add rax, 10h mov [rbx], rax mov rdi, [rbx+10h] test rdi, rdi jz short loc_8FA42 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8FA42: mov esi, 40h ; '@'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void minja::SliceExpr::~SliceExpr(minja::SliceExpr *this) { volatile signed __int32 *v2; // rdi volatile signed __int32 *v3; // rdi volatile signed __int32 *v4; // rdi *(_QWORD *)this = &`vtable for'minja::SliceExpr + 2; v2 = (volatile signed __int32 *)*((_QWORD *)this + 7); if ( v2 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2); v3 = (volatile signed __int32 *)*((_QWORD *)this + 5); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); *(_QWORD *)this = &`vtable for'minja::Expression + 2; v4 = (volatile signed __int32 *)*((_QWORD *)this + 2); if ( v4 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4); operator delete(this, 0x40uLL); }
~SliceExpr: PUSH RBX MOV RBX,RDI LEA RAX,[0x22e6c8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x38] TEST RDI,RDI JZ 0x0018fa18 CALL 0x0016cd56 LAB_0018fa18: MOV RDI,qword ptr [RBX + 0x28] TEST RDI,RDI JZ 0x0018fa26 CALL 0x0016cd56 LAB_0018fa26: LEA RAX,[0x22e398] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JZ 0x0018fa42 CALL 0x0016cd56 LAB_0018fa42: MOV ESI,0x40 MOV RDI,RBX POP RBX JMP 0x0011b8b0
/* minja::SliceExpr::~SliceExpr() */ void __thiscall minja::SliceExpr::~SliceExpr(SliceExpr *this) { *(int ***)this = &PTR_do_evaluate_0022e6d8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38)); } if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28)); } *(int ***)this = &PTR___cxa_pure_virtual_0022e3a8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10)); } operator_delete(this,0x40); return; }
36,854
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::~serializer()
monkey531[P]llama/common/json.hpp
~serializer() = default;
O1
cpp
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::~serializer(): pushq %rbx movq %rdi, %rbx movq 0x260(%rdi), %rdi leaq 0x270(%rbx), %rax cmpq %rax, %rdi je 0xbc72e movq (%rax), %rsi incq %rsi callq 0x1b910 movq 0x8(%rbx), %rdi testq %rdi, %rdi je 0xbc73d popq %rbx jmp 0x33c28 popq %rbx retq nop
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev: push rbx mov rbx, rdi mov rdi, [rdi+260h]; void * lea rax, [rbx+270h] cmp rdi, rax jz short loc_BC72E mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_BC72E: mov rdi, [rbx+8] test rdi, rdi jz short loc_BC73D pop rbx jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_BC73D: pop rbx retn
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~serializer( _QWORD *a1) { _QWORD *v2; // rdi volatile signed __int32 *v3; // rdi v2 = (_QWORD *)a1[76]; if ( v2 != a1 + 78 ) operator delete(v2, a1[78] + 1LL); v3 = (volatile signed __int32 *)a1[1]; if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); }
~serializer: PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x260] LEA RAX,[RBX + 0x270] CMP RDI,RAX JZ 0x001bc72e MOV RSI,qword ptr [RAX] INC RSI CALL 0x0011b910 LAB_001bc72e: MOV RDI,qword ptr [RBX + 0x8] TEST RDI,RDI JZ 0x001bc73d POP RBX JMP 0x00133c28 LAB_001bc73d: POP RBX RET
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::~serializer() */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::~serializer(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this) { if (*(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> **)(this + 0x260) != this + 0x270) { operator_delete(*(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> **)(this + 0x260),*(long *)(this + 0x270) + 1); } if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 8) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 8)); return; } return; }
36,855
net_field_length
eloqsql/libmariadb/libmariadb/mariadb_lib.c
ulong net_field_length(uchar **packet) { reg1 uchar *pos= *packet; if (*pos < 251) { (*packet)++; return (ulong) *pos; } if (*pos == 251) { (*packet)++; return NULL_LENGTH; } if (*pos == 252) { (*packet)+=3; return (ulong) uint2korr(pos+1); } if (*pos == 253) { (*packet)+=4; return (ulong) uint3korr(pos+1); } (*packet)+=9; /* Must be 254 when here */ return (ulong) uint4korr(pos+1); }
O3
c
net_field_length: pushq %rbp movq %rsp, %rbp movq (%rdi), %rax movzbl (%rax), %ecx cmpl $0xfa, %ecx ja 0x18433 leaq 0x1(%rax), %rcx movq %rcx, (%rdi) movzbl (%rax), %eax popq %rbp retq cmpl $0xfd, %ecx je 0x18467 cmpl $0xfc, %ecx je 0x1845a cmpl $0xfb, %ecx jne 0x1847e incq %rax movq %rax, (%rdi) movq $-0x1, %rax jmp 0x18431 leaq 0x3(%rax), %rcx movq %rcx, (%rdi) movzwl 0x1(%rax), %eax jmp 0x18431 leaq 0x4(%rax), %rcx movq %rcx, (%rdi) movzwl 0x1(%rax), %ecx movzbl 0x3(%rax), %eax shll $0x10, %eax orq %rcx, %rax jmp 0x18431 leaq 0x9(%rax), %rcx movq %rcx, (%rdi) movl 0x1(%rax), %eax jmp 0x18431
net_field_length: push rbp mov rbp, rsp mov rax, [rdi] movzx ecx, byte ptr [rax] cmp ecx, 0FAh ja short loc_18433 lea rcx, [rax+1] mov [rdi], rcx movzx eax, byte ptr [rax] loc_18431: pop rbp retn loc_18433: cmp ecx, 0FDh jz short loc_18467 cmp ecx, 0FCh jz short loc_1845A cmp ecx, 0FBh jnz short loc_1847E inc rax mov [rdi], rax mov rax, 0FFFFFFFFFFFFFFFFh jmp short loc_18431 loc_1845A: lea rcx, [rax+3] mov [rdi], rcx movzx eax, word ptr [rax+1] jmp short loc_18431 loc_18467: lea rcx, [rax+4] mov [rdi], rcx movzx ecx, word ptr [rax+1] movzx eax, byte ptr [rax+3] shl eax, 10h or rax, rcx jmp short loc_18431 loc_1847E: lea rcx, [rax+9] mov [rdi], rcx mov eax, [rax+1] jmp short loc_18431
unsigned long long net_field_length(unsigned __int8 **a1) { unsigned __int8 *v1; // rax unsigned int v2; // ecx v1 = *a1; v2 = **a1; if ( v2 > 0xFA ) { switch ( v2 ) { case 0xFDu: *a1 = v1 + 4; return *(unsigned __int16 *)(v1 + 1) | (unsigned long long)(v1[3] << 16); case 0xFCu: *a1 = v1 + 3; return *(unsigned __int16 *)(v1 + 1); case 0xFBu: *a1 = v1 + 1; return -1LL; default: *a1 = v1 + 9; return *(unsigned int *)(v1 + 1); } } else { *a1 = v1 + 1; return *v1; } }
net_field_length: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI] MOVZX ECX,byte ptr [RAX] CMP ECX,0xfa JA 0x00118433 LEA RCX,[RAX + 0x1] MOV qword ptr [RDI],RCX MOVZX EAX,byte ptr [RAX] LAB_00118431: POP RBP RET LAB_00118433: CMP ECX,0xfd JZ 0x00118467 CMP ECX,0xfc JZ 0x0011845a CMP ECX,0xfb JNZ 0x0011847e INC RAX MOV qword ptr [RDI],RAX MOV RAX,-0x1 JMP 0x00118431 LAB_0011845a: LEA RCX,[RAX + 0x3] MOV qword ptr [RDI],RCX MOVZX EAX,word ptr [RAX + 0x1] JMP 0x00118431 LAB_00118467: LEA RCX,[RAX + 0x4] MOV qword ptr [RDI],RCX MOVZX ECX,word ptr [RAX + 0x1] MOVZX EAX,byte ptr [RAX + 0x3] SHL EAX,0x10 OR RAX,RCX JMP 0x00118431 LAB_0011847e: LEA RCX,[RAX + 0x9] MOV qword ptr [RDI],RCX MOV EAX,dword ptr [RAX + 0x1] JMP 0x00118431
ulong net_field_length(long *param_1) { byte bVar1; byte *pbVar2; ulong uVar3; pbVar2 = (byte *)*param_1; bVar1 = *pbVar2; if (bVar1 < 0xfb) { *param_1 = (long)(pbVar2 + 1); uVar3 = (ulong)*pbVar2; } else if (bVar1 == 0xfd) { *param_1 = (long)(pbVar2 + 4); uVar3 = (ulong)*(uint3 *)(pbVar2 + 1); } else if (bVar1 == 0xfc) { *param_1 = (long)(pbVar2 + 3); uVar3 = (ulong)*(ushort *)(pbVar2 + 1); } else if (bVar1 == 0xfb) { *param_1 = (long)(pbVar2 + 1); uVar3 = 0xffffffffffffffff; } else { *param_1 = (long)(pbVar2 + 9); uVar3 = (ulong)*(uint *)(pbVar2 + 1); } return uVar3; }
36,856
minja::SliceExpr::~SliceExpr()
monkey531[P]llama/common/minja.hpp
SliceExpr(const Location & location, std::shared_ptr<Expression> && s, std::shared_ptr<Expression> && e) : Expression(location), start(std::move(s)), end(std::move(e)) {}
O3
cpp
minja::SliceExpr::~SliceExpr(): pushq %rbx movq %rdi, %rbx leaq 0x9aae9(%rip), %rax # 0x1296e8 addq $0x10, %rax movq %rax, (%rdi) movq 0x38(%rdi), %rdi testq %rdi, %rdi je 0x8ec14 callq 0x6cd76 movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0x8ec22 callq 0x6cd76 leaq 0x9a78f(%rip), %rax # 0x1293b8 addq $0x10, %rax movq %rax, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x8ec3f popq %rbx jmp 0x6cd76 popq %rbx retq nop
_ZN5minja9SliceExprD2Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja9SliceExprE; `vtable for'minja::SliceExpr add rax, 10h mov [rdi], rax mov rdi, [rdi+38h] test rdi, rdi jz short loc_8EC14 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8EC14: mov rdi, [rbx+28h] test rdi, rdi jz short loc_8EC22 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8EC22: lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression add rax, 10h mov [rbx], rax mov rdi, [rbx+10h] test rdi, rdi jz short loc_8EC3F pop rbx jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8EC3F: pop rbx retn
void minja::SliceExpr::~SliceExpr(minja::SliceExpr *this) { volatile signed __int32 *v2; // rdi volatile signed __int32 *v3; // rdi volatile signed __int32 *v4; // rdi *(_QWORD *)this = &`vtable for'minja::SliceExpr + 2; v2 = (volatile signed __int32 *)*((_QWORD *)this + 7); if ( v2 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2); v3 = (volatile signed __int32 *)*((_QWORD *)this + 5); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); *(_QWORD *)this = &`vtable for'minja::Expression + 2; v4 = (volatile signed __int32 *)*((_QWORD *)this + 2); if ( v4 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4); }
~SliceExpr: PUSH RBX MOV RBX,RDI LEA RAX,[0x2296e8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x38] TEST RDI,RDI JZ 0x0018ec14 CALL 0x0016cd76 LAB_0018ec14: MOV RDI,qword ptr [RBX + 0x28] TEST RDI,RDI JZ 0x0018ec22 CALL 0x0016cd76 LAB_0018ec22: LEA RAX,[0x2293b8] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JZ 0x0018ec3f POP RBX JMP 0x0016cd76 LAB_0018ec3f: POP RBX RET
/* minja::SliceExpr::~SliceExpr() */ void __thiscall minja::SliceExpr::~SliceExpr(SliceExpr *this) { *(int ***)this = &PTR_do_evaluate_002296f8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38)); } if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28)); } *(int ***)this = &PTR___cxa_pure_virtual_002293c8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10)); return; } return; }
36,857
nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get_codepoint()
7CodeWizard[P]stablediffusion/thirdparty/json.hpp
int get_codepoint() { // this function only makes sense after reading `\u` JSON_ASSERT(current == 'u'); int codepoint = 0; const auto factors = { 12u, 8u, 4u, 0u }; for (const auto factor : factors) { get(); if (current >= '0' && current <= '9') { codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor); } else if (current >= 'A' && current <= 'F') { codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor); } else if (current >= 'a' && current <= 'f') { codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor); } else { return -1; } } JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF); return codepoint; }
O0
cpp
nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get_codepoint(): subq $0x68, %rsp movq %rdi, 0x58(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x8(%rsp) movl $0x0, 0x54(%rsp) movl $0xc, 0x30(%rsp) movl $0x8, 0x34(%rsp) movl $0x4, 0x38(%rsp) movl $0x0, 0x3c(%rsp) leaq 0x30(%rsp), %rax movq %rax, 0x40(%rsp) movq $0x4, 0x48(%rsp) leaq 0x40(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rdi callq 0x4e1b0 movq %rax, 0x20(%rsp) movq 0x28(%rsp), %rdi callq 0x4e1c0 movq %rax, 0x18(%rsp) movq 0x20(%rsp), %rax cmpq 0x18(%rsp), %rax je 0xd4e11 movq 0x8(%rsp), %rdi movq 0x20(%rsp), %rax movl (%rax), %eax movl %eax, 0x14(%rsp) callq 0xd4930 movq 0x8(%rsp), %rax cmpl $0x30, 0x14(%rax) jl 0xd4d8c movq 0x8(%rsp), %rax cmpl $0x39, 0x14(%rax) jg 0xd4d8c movq 0x8(%rsp), %rax movl 0x14(%rax), %eax subl $0x30, %eax movl 0x14(%rsp), %ecx shll %cl, %eax addl 0x54(%rsp), %eax movl %eax, 0x54(%rsp) jmp 0xd4dfc movq 0x8(%rsp), %rax cmpl $0x41, 0x14(%rax) jl 0xd4dbd movq 0x8(%rsp), %rax cmpl $0x46, 0x14(%rax) jg 0xd4dbd movq 0x8(%rsp), %rax movl 0x14(%rax), %eax subl $0x37, %eax movl 0x14(%rsp), %ecx shll %cl, %eax addl 0x54(%rsp), %eax movl %eax, 0x54(%rsp) jmp 0xd4dfa movq 0x8(%rsp), %rax cmpl $0x61, 0x14(%rax) jl 0xd4dee movq 0x8(%rsp), %rax cmpl $0x66, 0x14(%rax) jg 0xd4dee movq 0x8(%rsp), %rax movl 0x14(%rax), %eax subl $0x57, %eax movl 0x14(%rsp), %ecx shll %cl, %eax addl 0x54(%rsp), %eax movl %eax, 0x54(%rsp) jmp 0xd4df8 movl $0xffffffff, 0x64(%rsp) # imm = 0xFFFFFFFF jmp 0xd4e19 jmp 0xd4dfa jmp 0xd4dfc jmp 0xd4dfe movq 0x20(%rsp), %rax addq $0x4, %rax movq %rax, 0x20(%rsp) jmp 0xd4d36 movl 0x54(%rsp), %eax movl %eax, 0x64(%rsp) movl 0x64(%rsp), %eax addq $0x68, %rsp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE13get_codepointEv: sub rsp, 68h mov [rsp+68h+var_10], rdi mov rax, [rsp+68h+var_10] mov [rsp+68h+var_60], rax mov [rsp+68h+var_14], 0 mov [rsp+68h+var_38], 0Ch mov [rsp+68h+var_34], 8 mov [rsp+68h+var_30], 4 mov [rsp+68h+var_2C], 0 lea rax, [rsp+68h+var_38] mov [rsp+68h+var_28], rax mov [rsp+68h+var_20], 4 lea rax, [rsp+68h+var_28] mov [rsp+68h+var_40], rax mov rdi, [rsp+68h+var_40] call _ZNKSt16initializer_listIjE5beginEv; std::initializer_list<uint>::begin(void) mov [rsp+68h+var_48], rax mov rdi, [rsp+68h+var_40] call _ZNKSt16initializer_listIjE3endEv; std::initializer_list<uint>::end(void) mov [rsp+68h+var_50], rax loc_D4D36: mov rax, [rsp+68h+var_48] cmp rax, [rsp+68h+var_50] jz loc_D4E11 mov rdi, [rsp+68h+var_60] mov rax, [rsp+68h+var_48] mov eax, [rax] mov [rsp+68h+var_54], eax call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE3getEv; nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get(void) mov rax, [rsp+68h+var_60] cmp dword ptr [rax+14h], 30h ; '0' jl short loc_D4D8C mov rax, [rsp+68h+var_60] cmp dword ptr [rax+14h], 39h ; '9' jg short loc_D4D8C mov rax, [rsp+68h+var_60] mov eax, [rax+14h] sub eax, 30h ; '0' mov ecx, [rsp+68h+var_54] shl eax, cl add eax, [rsp+68h+var_14] mov [rsp+68h+var_14], eax jmp short loc_D4DFC loc_D4D8C: mov rax, [rsp+68h+var_60] cmp dword ptr [rax+14h], 41h ; 'A' jl short loc_D4DBD mov rax, [rsp+68h+var_60] cmp dword ptr [rax+14h], 46h ; 'F' jg short loc_D4DBD mov rax, [rsp+68h+var_60] mov eax, [rax+14h] sub eax, 37h ; '7' mov ecx, [rsp+68h+var_54] shl eax, cl add eax, [rsp+68h+var_14] mov [rsp+68h+var_14], eax jmp short loc_D4DFA loc_D4DBD: mov rax, [rsp+68h+var_60] cmp dword ptr [rax+14h], 61h ; 'a' jl short loc_D4DEE mov rax, [rsp+68h+var_60] cmp dword ptr [rax+14h], 66h ; 'f' jg short loc_D4DEE mov rax, [rsp+68h+var_60] mov eax, [rax+14h] sub eax, 57h ; 'W' mov ecx, [rsp+68h+var_54] shl eax, cl add eax, [rsp+68h+var_14] mov [rsp+68h+var_14], eax jmp short loc_D4DF8 loc_D4DEE: mov [rsp+68h+var_4], 0FFFFFFFFh jmp short loc_D4E19 loc_D4DF8: jmp short $+2 loc_D4DFA: jmp short $+2 loc_D4DFC: jmp short $+2 loc_D4DFE: mov rax, [rsp+68h+var_48] add rax, 4 mov [rsp+68h+var_48], rax jmp loc_D4D36 loc_D4E11: mov eax, [rsp+68h+var_14] mov [rsp+68h+var_4], eax loc_D4E19: mov eax, [rsp+68h+var_4] add rsp, 68h retn
long long nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get_codepoint( long long a1) { int v2; // [rsp+14h] [rbp-54h] long long v3; // [rsp+18h] [rbp-50h] int *v4; // [rsp+20h] [rbp-48h] _DWORD v5[4]; // [rsp+30h] [rbp-38h] BYREF _QWORD v6[2]; // [rsp+40h] [rbp-28h] BYREF unsigned int v7; // [rsp+54h] [rbp-14h] long long v8; // [rsp+58h] [rbp-10h] v8 = a1; v7 = 0; v5[0] = 12; v5[1] = 8; v5[2] = 4; v5[3] = 0; v6[0] = v5; v6[1] = 4LL; v4 = (int *)std::initializer_list<unsigned int>::begin((long long)v6); v3 = std::initializer_list<unsigned int>::end((long long)v6); while ( v4 != (int *)v3 ) { v2 = *v4; nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get(a1); if ( *(int *)(a1 + 20) < 48 || *(int *)(a1 + 20) > 57 ) { if ( *(int *)(a1 + 20) < 65 || *(int *)(a1 + 20) > 70 ) { if ( *(int *)(a1 + 20) < 97 || *(int *)(a1 + 20) > 102 ) return (unsigned int)-1; v7 += (*(_DWORD *)(a1 + 20) - 87) << v2; } else { v7 += (*(_DWORD *)(a1 + 20) - 55) << v2; } } else { v7 += (*(_DWORD *)(a1 + 20) - 48) << v2; } ++v4; } return v7; }
get_codepoint: SUB RSP,0x68 MOV qword ptr [RSP + 0x58],RDI MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x8],RAX MOV dword ptr [RSP + 0x54],0x0 MOV dword ptr [RSP + 0x30],0xc MOV dword ptr [RSP + 0x34],0x8 MOV dword ptr [RSP + 0x38],0x4 MOV dword ptr [RSP + 0x3c],0x0 LEA RAX,[RSP + 0x30] MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x48],0x4 LEA RAX,[RSP + 0x40] MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0x28] CALL 0x0014e1b0 MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0x28] CALL 0x0014e1c0 MOV qword ptr [RSP + 0x18],RAX LAB_001d4d36: MOV RAX,qword ptr [RSP + 0x20] CMP RAX,qword ptr [RSP + 0x18] JZ 0x001d4e11 MOV RDI,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x14],EAX CALL 0x001d4930 MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x14],0x30 JL 0x001d4d8c MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x14],0x39 JG 0x001d4d8c MOV RAX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX + 0x14] SUB EAX,0x30 MOV ECX,dword ptr [RSP + 0x14] SHL EAX,CL ADD EAX,dword ptr [RSP + 0x54] MOV dword ptr [RSP + 0x54],EAX JMP 0x001d4dfc LAB_001d4d8c: MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x14],0x41 JL 0x001d4dbd MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x14],0x46 JG 0x001d4dbd MOV RAX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX + 0x14] SUB EAX,0x37 MOV ECX,dword ptr [RSP + 0x14] SHL EAX,CL ADD EAX,dword ptr [RSP + 0x54] MOV dword ptr [RSP + 0x54],EAX JMP 0x001d4dfa LAB_001d4dbd: MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x14],0x61 JL 0x001d4dee MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x14],0x66 JG 0x001d4dee MOV RAX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX + 0x14] SUB EAX,0x57 MOV ECX,dword ptr [RSP + 0x14] SHL EAX,CL ADD EAX,dword ptr [RSP + 0x54] MOV dword ptr [RSP + 0x54],EAX JMP 0x001d4df8 LAB_001d4dee: MOV dword ptr [RSP + 0x64],0xffffffff JMP 0x001d4e19 LAB_001d4df8: JMP 0x001d4dfa LAB_001d4dfa: JMP 0x001d4dfc LAB_001d4dfc: JMP 0x001d4dfe LAB_001d4dfe: MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x4 MOV qword ptr [RSP + 0x20],RAX JMP 0x001d4d36 LAB_001d4e11: MOV EAX,dword ptr [RSP + 0x54] MOV dword ptr [RSP + 0x64],EAX LAB_001d4e19: MOV EAX,dword ptr [RSP + 0x64] ADD RSP,0x68 RET
/* nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > >, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*> >::get_codepoint() */ int __thiscall nlohmann::json_abi_v3_11_2::detail:: lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>> ::get_codepoint(lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>> *this) { int4 uVar1; int iVar2; int4 *puVar3; byte bVar4; int4 *local_48; int4 local_38; int4 local_34; int4 local_30; int4 local_2c; int4 *local_28; int8 local_20; int local_14; lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>> *local_10; local_14 = 0; local_38 = 0xc; local_34 = 8; local_30 = 4; local_2c = 0; local_28 = &local_38; local_20 = 4; local_10 = this; local_48 = (int4 *) std::initializer_list<unsigned_int>::begin((initializer_list<unsigned_int> *)&local_28) ; puVar3 = (int4 *) std::initializer_list<unsigned_int>::end((initializer_list<unsigned_int> *)&local_28); do { if (local_48 == puVar3) { return local_14; } uVar1 = *local_48; get(this); bVar4 = (byte)uVar1; if ((*(int *)(this + 0x14) < 0x30) || (0x39 < *(int *)(this + 0x14))) { if ((*(int *)(this + 0x14) < 0x41) || (0x46 < *(int *)(this + 0x14))) { if ((*(int *)(this + 0x14) < 0x61) || (0x66 < *(int *)(this + 0x14))) { return -1; } iVar2 = *(int *)(this + 0x14) + -0x57 << (bVar4 & 0x1f); } else { iVar2 = *(int *)(this + 0x14) + -0x37 << (bVar4 & 0x1f); } } else { iVar2 = *(int *)(this + 0x14) + -0x30 << (bVar4 & 0x1f); } local_14 = iVar2 + local_14; local_48 = local_48 + 1; } while( true ); }
36,858
nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get_codepoint()
7CodeWizard[P]stablediffusion/thirdparty/json.hpp
int get_codepoint() { // this function only makes sense after reading `\u` JSON_ASSERT(current == 'u'); int codepoint = 0; const auto factors = { 12u, 8u, 4u, 0u }; for (const auto factor : factors) { get(); if (current >= '0' && current <= '9') { codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor); } else if (current >= 'A' && current <= 'F') { codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor); } else if (current >= 'a' && current <= 'f') { codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor); } else { return -1; } } JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF); return codepoint; }
O2
cpp
nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get_codepoint(): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %r14 movaps 0x4db5a(%rip), %xmm0 # 0x9c8b0 movaps %xmm0, (%rsp) xorl %r15d, %r15d pushq $-0x1 popq %r12 xorl %ebx, %ebx cmpq $0x10, %r15 je 0x4edaa movl (%rsp,%r15), %ebp movq %r14, %rdi callq 0x4ec58 movl 0x14(%r14), %eax leal -0x30(%rax), %edx cmpl $0xa, %edx jb 0x4ed9b leal -0x41(%rax), %ecx cmpl $0x5, %ecx ja 0x4ed8e addl $-0x37, %eax jmp 0x4ed99 leal -0x61(%rax), %ecx cmpl $0x5, %ecx ja 0x4eda7 addl $-0x57, %eax movl %eax, %edx movl %ebp, %ecx shll %cl, %edx addl %edx, %ebx addq $0x4, %r15 jmp 0x4ed63 movl %r12d, %ebx movl %ebx, %eax addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq nop
_ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE13get_codepointEv: push rbp push r15 push r14 push r12 push rbx sub rsp, 10h mov r14, rdi movaps xmm0, cs:xmmword_9C8B0 movaps [rsp+38h+var_38], xmm0 xor r15d, r15d push 0FFFFFFFFFFFFFFFFh pop r12 xor ebx, ebx loc_4ED63: cmp r15, 10h jz short loc_4EDAA mov ebp, dword ptr [rsp+r15+38h+var_38] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE3getEv; nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get(void) mov eax, [r14+14h] lea edx, [rax-30h] cmp edx, 0Ah jb short loc_4ED9B lea ecx, [rax-41h] cmp ecx, 5 ja short loc_4ED8E add eax, 0FFFFFFC9h jmp short loc_4ED99 loc_4ED8E: lea ecx, [rax-61h] cmp ecx, 5 ja short loc_4EDA7 add eax, 0FFFFFFA9h loc_4ED99: mov edx, eax loc_4ED9B: mov ecx, ebp shl edx, cl add ebx, edx add r15, 4 jmp short loc_4ED63 loc_4EDA7: mov ebx, r12d loc_4EDAA: mov eax, ebx add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get_codepoint( __m128i *a1) { long long v1; // r15 unsigned int v2; // ebx int v3; // ebp __int32 v4; // eax __int32 v5; // edx __int32 v6; // eax _OWORD v8[3]; // [rsp+0h] [rbp-38h] v8[0] = xmmword_9C8B0; v1 = 0LL; v2 = 0; while ( v1 != 16 ) { v3 = *(_DWORD *)((char *)v8 + v1); nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get(a1); v4 = a1[1].m128i_i32[1]; v5 = v4 - 48; if ( (unsigned int)(v4 - 48) >= 0xA ) { if ( (unsigned int)(v4 - 65) > 5 ) { if ( (unsigned int)(v4 - 97) > 5 ) return (unsigned int)-1; v6 = v4 - 87; } else { v6 = v4 - 55; } v5 = v6; } v2 += v5 << v3; v1 += 4LL; } return v2; }
get_codepoint: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R14,RDI MOVAPS XMM0,xmmword ptr [0x0019c8b0] MOVAPS xmmword ptr [RSP],XMM0 XOR R15D,R15D PUSH -0x1 POP R12 XOR EBX,EBX LAB_0014ed63: CMP R15,0x10 JZ 0x0014edaa MOV EBP,dword ptr [RSP + R15*0x1] MOV RDI,R14 CALL 0x0014ec58 MOV EAX,dword ptr [R14 + 0x14] LEA EDX,[RAX + -0x30] CMP EDX,0xa JC 0x0014ed9b LEA ECX,[RAX + -0x41] CMP ECX,0x5 JA 0x0014ed8e ADD EAX,-0x37 JMP 0x0014ed99 LAB_0014ed8e: LEA ECX,[RAX + -0x61] CMP ECX,0x5 JA 0x0014eda7 ADD EAX,-0x57 LAB_0014ed99: MOV EDX,EAX LAB_0014ed9b: MOV ECX,EBP SHL EDX,CL ADD EBX,EDX ADD R15,0x4 JMP 0x0014ed63 LAB_0014eda7: MOV EBX,R12D LAB_0014edaa: MOV EAX,EBX ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > >, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*> >::get_codepoint() */ int __thiscall nlohmann::json_abi_v3_11_2::detail:: lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>> ::get_codepoint(lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>> *this) { int4 uVar1; int iVar2; uint uVar3; int iVar4; long lVar5; int8 local_38; int8 uStack_30; local_38 = _DAT_0019c8b0; uStack_30 = _UNK_0019c8b8; lVar5 = 0; iVar4 = 0; do { if (lVar5 == 0x10) { return iVar4; } uVar1 = *(int4 *)((long)&local_38 + lVar5); get(this); iVar2 = *(int *)(this + 0x14); uVar3 = iVar2 - 0x30; if (9 < uVar3) { if (iVar2 - 0x41U < 6) { uVar3 = iVar2 - 0x37; } else { if (5 < iVar2 - 0x61U) { return -1; } uVar3 = iVar2 - 0x57; } } iVar4 = iVar4 + (uVar3 << ((byte)uVar1 & 0x1f)); lVar5 = lVar5 + 4; } while( true ); }
36,859
google::protobuf::io::CodedInputStream::ReadVarint64(unsigned long*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/coded_stream.h
inline bool CodedInputStream::ReadVarint64(uint64_t* value) { if (PROTOBUF_PREDICT_TRUE(buffer_ < buffer_end_) && *buffer_ < 0x80) { *value = *buffer_; Advance(1); return true; } std::pair<uint64_t, bool> p = ReadVarint64Fallback(); *value = p.first; return p.second; }
O0
c
google::protobuf::io::CodedInputStream::ReadVarint64(unsigned long*): subq $0x48, %rsp movq %rdi, 0x38(%rsp) movq %rsi, 0x30(%rsp) movq 0x38(%rsp), %rcx movq %rcx, 0x8(%rsp) movq (%rcx), %rax cmpq 0x8(%rcx), %rax jae 0x22339 movq 0x8(%rsp), %rax movq (%rax), %rax movzbl (%rax), %eax cmpl $0x80, %eax jge 0x22339 movq 0x8(%rsp), %rdi movq (%rdi), %rax movzbl (%rax), %eax movl %eax, %ecx movq 0x30(%rsp), %rax movq %rcx, (%rax) movl $0x1, %esi callq 0x22190 movb $0x1, 0x47(%rsp) jmp 0x22375 movq 0x8(%rsp), %rdi callq 0x1f460 movb %dl, 0x18(%rsp) movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x20(%rsp) movb 0x18(%rsp), %al movb %al, 0x28(%rsp) movq 0x20(%rsp), %rcx movq 0x30(%rsp), %rax movq %rcx, (%rax) movb 0x28(%rsp), %al andb $0x1, %al movb %al, 0x47(%rsp) movb 0x47(%rsp), %al andb $0x1, %al addq $0x48, %rsp retq
_ZN6google8protobuf2io16CodedInputStream12ReadVarint64EPm: sub rsp, 48h mov [rsp+48h+var_10], rdi mov [rsp+48h+var_18], rsi mov rcx, [rsp+48h+var_10] mov [rsp+48h+var_40], rcx mov rax, [rcx] cmp rax, [rcx+8] jnb short loc_22339 mov rax, [rsp+48h+var_40] mov rax, [rax] movzx eax, byte ptr [rax] cmp eax, 80h jge short loc_22339 mov rdi, [rsp+48h+var_40]; this mov rax, [rdi] movzx eax, byte ptr [rax] mov ecx, eax mov rax, [rsp+48h+var_18] mov [rax], rcx mov esi, 1; int call _ZN6google8protobuf2io16CodedInputStream7AdvanceEi; google::protobuf::io::CodedInputStream::Advance(int) mov [rsp+48h+var_1], 1 jmp short loc_22375 loc_22339: mov rdi, [rsp+48h+var_40]; this call _ZN6google8protobuf2io16CodedInputStream20ReadVarint64FallbackEv; google::protobuf::io::CodedInputStream::ReadVarint64Fallback(void) mov [rsp+48h+var_30], dl mov [rsp+48h+var_38], rax mov rax, [rsp+48h+var_38] mov [rsp+48h+var_28], rax mov al, [rsp+48h+var_30] mov [rsp+48h+var_20], al mov rcx, [rsp+48h+var_28] mov rax, [rsp+48h+var_18] mov [rax], rcx mov al, [rsp+48h+var_20] and al, 1 mov [rsp+48h+var_1], al loc_22375: mov al, [rsp+48h+var_1] and al, 1 add rsp, 48h retn
char google::protobuf::io::CodedInputStream::ReadVarint64( google::protobuf::io::CodedInputStream *this, unsigned long long *a2) { char v2; // dl if ( *(_QWORD *)this >= *((_QWORD *)this + 1) || **(unsigned __int8 **)this >= 0x80u ) { *a2 = google::protobuf::io::CodedInputStream::ReadVarint64Fallback(this); return v2 & 1; } else { *a2 = **(unsigned __int8 **)this; google::protobuf::io::CodedInputStream::Advance(this, 1); return 1; } }
ReadVarint64: SUB RSP,0x48 MOV qword ptr [RSP + 0x38],RDI MOV qword ptr [RSP + 0x30],RSI MOV RCX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RCX] CMP RAX,qword ptr [RCX + 0x8] JNC 0x00122339 MOV RAX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RAX] MOVZX EAX,byte ptr [RAX] CMP EAX,0x80 JGE 0x00122339 MOV RDI,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RDI] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX MOV ESI,0x1 CALL 0x00122190 MOV byte ptr [RSP + 0x47],0x1 JMP 0x00122375 LAB_00122339: MOV RDI,qword ptr [RSP + 0x8] CALL 0x0011f460 MOV byte ptr [RSP + 0x18],DL MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x20],RAX MOV AL,byte ptr [RSP + 0x18] MOV byte ptr [RSP + 0x28],AL MOV RCX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX MOV AL,byte ptr [RSP + 0x28] AND AL,0x1 MOV byte ptr [RSP + 0x47],AL LAB_00122375: MOV AL,byte ptr [RSP + 0x47] AND AL,0x1 ADD RSP,0x48 RET
/* google::protobuf::io::CodedInputStream::ReadVarint64(unsigned long*) */ byte __thiscall google::protobuf::io::CodedInputStream::ReadVarint64(CodedInputStream *this,ulong *param_1) { ulong uVar1; byte extraout_DL; byte local_1; if ((*(ulong *)this < *(ulong *)(this + 8)) && (**(byte **)this < 0x80)) { *param_1 = (ulong)**(byte **)this; Advance(this,1); local_1 = 1; } else { uVar1 = ReadVarint64Fallback(this); *param_1 = uVar1; local_1 = extraout_DL & 1; } return local_1; }
36,860
stbi_is_hdr_from_file
SDL3Lite/dependencies/stb_image.h
STBIDEF int stbi_is_hdr_from_file(FILE *f) { #ifndef STBI_NO_HDR long pos = ftell(f); int res; stbi__context s; stbi__start_file(&s,f); res = stbi__hdr_test(&s); fseek(f, pos, SEEK_SET); return res; #else STBI_NOTUSED(f); return 0; #endif }
O3
c
stbi_is_hdr_from_file: movq %rdi, -0x8(%rsp) xorl %eax, %eax retq nopl (%rax,%rax)
stbi_is_hdr_from_file: mov [rsp+var_8], rdi xor eax, eax retn
long long stbi_is_hdr_from_file() { return 0LL; }
stbi_is_hdr_from_file: MOV qword ptr [RSP + -0x8],RDI XOR EAX,EAX RET
int8 stbi_is_hdr_from_file(void) { return 0; }
36,861
google::protobuf::compiler::java::ImmutableMessageOneofFieldGenerator::GenerateSerializedSizeCode(google::protobuf::io::Printer*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/message_field.cc
void ImmutableMessageOneofFieldGenerator::GenerateSerializedSizeCode( io::Printer* printer) const { printer->Print( variables_, "if ($has_oneof_case_message$) {\n" " size += com.google.protobuf.CodedOutputStream\n" " .compute$group_or_message$Size($number$, ($type$) $oneof_name$_);\n" "}\n"); }
O3
cpp
google::protobuf::compiler::java::ImmutableMessageOneofFieldGenerator::GenerateSerializedSizeCode(google::protobuf::io::Printer*) const: movq %rsi, %rax leaq 0x18(%rdi), %rsi leaq 0xfdc8a(%rip), %rdx # 0x1dafa6 movq %rax, %rdi jmp 0x16cd32
_ZNK6google8protobuf8compiler4java35ImmutableMessageOneofFieldGenerator26GenerateSerializedSizeCodeEPNS0_2io7PrinterE: mov rax, rsi lea rsi, [rdi+18h] lea rdx, aIfHasOneofCase_7; "if ($has_oneof_case_message$) {\n size"... 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::ImmutableMessageOneofFieldGenerator::GenerateSerializedSizeCode( google::protobuf::compiler::java::ImmutableMessageOneofFieldGenerator *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); }
GenerateSerializedSizeCode: MOV RAX,RSI LEA RSI,[RDI + 0x18] LEA RDX,[0x2dafa6] MOV RDI,RAX JMP 0x0026cd32
/* google::protobuf::compiler::java::ImmutableMessageOneofFieldGenerator::GenerateSerializedSizeCode(google::protobuf::io::Printer*) const */ void __thiscall google::protobuf::compiler::java::ImmutableMessageOneofFieldGenerator::GenerateSerializedSizeCode (ImmutableMessageOneofFieldGenerator *this,Printer *param_1) { io::Printer::Print(param_1,(map *)(this + 0x18), "if ($has_oneof_case_message$) {\n size += com.google.protobuf.CodedOutputStream\n .compute$group_or_message$Size($number$, ($type$) $oneof_name$_);\n}\n" ); return; }
36,862
ma_calc_total_blob_length
eloqsql/storage/maria/ma_dynrec.c
ulong _ma_calc_total_blob_length(MARIA_HA *info, const uchar *record) { ulong length; MARIA_BLOB *blob,*end; for (length=0, blob= info->blobs, end=blob+info->s->base.blobs ; blob != end; blob++) { blob->length= _ma_calc_blob_length(blob->pack_length, record + blob->offset); length+=blob->length; } return length; }
O0
c
ma_calc_total_blob_length: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq $0x0, -0x18(%rbp) movq -0x8(%rbp), %rax movq 0x288(%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq -0x8(%rbp), %rcx movq (%rcx), %rcx movl 0x3f0(%rcx), %ecx imulq $0x18, %rcx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax je 0x3cbed movq -0x20(%rbp), %rax movl 0x8(%rax), %edi movq -0x10(%rbp), %rsi movq -0x20(%rbp), %rax addq (%rax), %rsi callq 0x3f540 movq %rax, %rcx movq -0x20(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x20(%rbp), %rax movq 0x10(%rax), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x20(%rbp), %rax addq $0x18, %rax movq %rax, -0x20(%rbp) jmp 0x3cba3 movq -0x18(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
_ma_calc_total_blob_length: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], 0 mov rax, [rbp+var_8] mov rax, [rax+288h] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov rcx, [rbp+var_8] mov rcx, [rcx] mov ecx, [rcx+3F0h] imul rcx, 18h add rax, rcx mov [rbp+var_28], rax loc_3CBA3: mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jz short loc_3CBED mov rax, [rbp+var_20] mov edi, [rax+8] mov rsi, [rbp+var_10] mov rax, [rbp+var_20] add rsi, [rax] call _ma_calc_blob_length mov rcx, rax mov rax, [rbp+var_20] mov [rax+10h], rcx mov rax, [rbp+var_20] mov rax, [rax+10h] add rax, [rbp+var_18] mov [rbp+var_18], rax mov rax, [rbp+var_20] add rax, 18h mov [rbp+var_20], rax jmp short loc_3CBA3 loc_3CBED: mov rax, [rbp+var_18] add rsp, 30h pop rbp retn
long long ma_calc_total_blob_length(_QWORD *a1, long long a2, long long a3) { long long v4; // [rsp+8h] [rbp-28h] long long v5; // [rsp+10h] [rbp-20h] long long v6; // [rsp+18h] [rbp-18h] v6 = 0LL; v5 = a1[81]; v4 = 24LL * *(unsigned int *)(*a1 + 1008LL) + v5; while ( v5 != v4 ) { *(_QWORD *)(v5 + 16) = ma_calc_blob_length(*(unsigned int *)(v5 + 8), *(_QWORD *)v5 + a2, a3); v6 += *(_QWORD *)(v5 + 16); v5 += 24LL; } return v6; }
_ma_calc_total_blob_length: 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],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x288] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX] MOV ECX,dword ptr [RCX + 0x3f0] IMUL RCX,RCX,0x18 ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX LAB_0013cba3: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JZ 0x0013cbed MOV RAX,qword ptr [RBP + -0x20] MOV EDI,dword ptr [RAX + 0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] ADD RSI,qword ptr [RAX] CALL 0x0013f540 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x18 MOV qword ptr [RBP + -0x20],RAX JMP 0x0013cba3 LAB_0013cbed: MOV RAX,qword ptr [RBP + -0x18] ADD RSP,0x30 POP RBP RET
long _ma_calc_total_blob_length(long *param_1,long param_2) { long *plVar1; long lVar2; long *local_28; long local_20; local_20 = 0; local_28 = (long *)param_1[0x51]; plVar1 = local_28 + (ulong)*(uint *)(*param_1 + 0x3f0) * 3; for (; local_28 != plVar1; local_28 = local_28 + 3) { lVar2 = _ma_calc_blob_length((int)local_28[1],param_2 + *local_28); local_28[2] = lVar2; local_20 = local_28[2] + local_20; } return local_20; }
36,863
inline_mysql_file_create_with_symlink
eloqsql/include/mysql/psi/mysql_file.h
static inline File inline_mysql_file_create_with_symlink( #ifdef HAVE_PSI_FILE_INTERFACE PSI_file_key key, const char *src_file, uint src_line, #endif const char *linkname, const char *filename, int create_flags, int access_flags, myf flags) { File file; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_CREATE, filename, &locker); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line); file= my_create_with_symlink(linkname, filename, create_flags, access_flags, flags); PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file); return file; } #endif file= my_create_with_symlink(linkname, filename, create_flags, access_flags, flags); return file; }
O3
c
inline_mysql_file_create_with_symlink: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rdx, %rbx movl %esi, %r14d movl %edi, %esi leaq 0x32be89(%rip), %r12 # 0x3b8c08 movq (%r12), %rax leaq -0x70(%rbp), %rdi leaq -0x28(%rbp), %r15 xorl %edx, %edx movq %rbx, %rcx movq %r15, %r8 callq *0x148(%rax) movq %rax, (%r15) testq %rax, %rax jne 0x8cdc9 movl $0x110, %r8d # imm = 0x110 xorl %edi, %edi movq %rbx, %rsi xorl %edx, %edx movl $0x202, %ecx # imm = 0x202 callq 0xc51d0 movl %eax, %ebx movl %ebx, %eax addq $0x50, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq (%r12), %rcx leaq 0x790af(%rip), %rsi # 0x105e83 movq %rax, %rdi movl %r14d, %edx callq *0x1f0(%rcx) movl $0x110, %r8d # imm = 0x110 xorl %edi, %edi movq %rbx, %rsi xorl %edx, %edx movl $0x202, %ecx # imm = 0x202 callq 0xc51d0 movl %eax, %ebx movq (%r12), %rax movq -0x28(%rbp), %rdi movl %ebx, %esi callq *0x200(%rax) jmp 0x8cdba
inline_mysql_file_create_with_symlink_0: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 50h mov rbx, rdx mov r14d, esi mov esi, edi lea r12, PSI_server mov rax, [r12] lea rdi, [rbp+var_70] lea r15, [rbp+var_28] xor edx, edx mov rcx, rbx mov r8, r15 call qword ptr [rax+148h] mov [r15], rax test rax, rax jnz short loc_8CDC9 mov r8d, 110h xor edi, edi mov rsi, rbx xor edx, edx mov ecx, 202h call my_create_with_symlink mov ebx, eax loc_8CDBA: mov eax, ebx add rsp, 50h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_8CDC9: mov rcx, [r12] lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rax mov edx, r14d call qword ptr [rcx+1F0h] mov r8d, 110h xor edi, edi mov rsi, rbx xor edx, edx mov ecx, 202h call my_create_with_symlink mov ebx, eax mov rax, [r12] mov rdi, [rbp+var_28] mov esi, ebx call qword ptr [rax+200h] jmp short loc_8CDBA
long long inline_mysql_file_create_with_symlink_0(unsigned int a1, unsigned int a2, long long a3) { long long v3; // rbx long long v4; // rax _BYTE v6[72]; // [rsp+0h] [rbp-70h] BYREF long long v7[5]; // [rsp+48h] [rbp-28h] BYREF v3 = a3; v4 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, long long *))PSI_server[41])(v6, a1, 0LL, a3, v7); v7[0] = v4; if ( v4 ) { ((void ( *)(long long, const char *, _QWORD))PSI_server[62])( v4, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_recovery.c", a2); v3 = (unsigned int)my_create_with_symlink(0LL, v3, 0LL, 514LL, 272LL); ((void ( *)(long long, long long))PSI_server[64])(v7[0], v3); } else { LODWORD(v3) = my_create_with_symlink(0LL, v3, 0LL, 514LL, 272LL); } return (unsigned int)v3; }
inline_mysql_file_create_with_symlink: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x50 MOV RBX,RDX MOV R14D,ESI MOV ESI,EDI LEA R12,[0x4b8c08] MOV RAX,qword ptr [R12] LEA RDI,[RBP + -0x70] LEA R15,[RBP + -0x28] XOR EDX,EDX MOV RCX,RBX MOV R8,R15 CALL qword ptr [RAX + 0x148] MOV qword ptr [R15],RAX TEST RAX,RAX JNZ 0x0018cdc9 MOV R8D,0x110 XOR EDI,EDI MOV RSI,RBX XOR EDX,EDX MOV ECX,0x202 CALL 0x001c51d0 MOV EBX,EAX LAB_0018cdba: MOV EAX,EBX ADD RSP,0x50 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0018cdc9: MOV RCX,qword ptr [R12] LEA RSI,[0x205e83] MOV RDI,RAX MOV EDX,R14D CALL qword ptr [RCX + 0x1f0] MOV R8D,0x110 XOR EDI,EDI MOV RSI,RBX XOR EDX,EDX MOV ECX,0x202 CALL 0x001c51d0 MOV EBX,EAX MOV RAX,qword ptr [R12] MOV RDI,qword ptr [RBP + -0x28] MOV ESI,EBX CALL qword ptr [RAX + 0x200] JMP 0x0018cdba
int4 inline_mysql_file_create_with_symlink(int4 param_1,int4 param_2,int8 param_3) { int4 uVar1; int1 local_78 [72]; long local_30; local_30 = (**(code **)(PSI_server + 0x148))(local_78,param_1,0,param_3,&local_30); if (local_30 == 0) { uVar1 = my_create_with_symlink(0,param_3,0,0x202,0x110); } else { (**(code **)(PSI_server + 0x1f0)) (local_30,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_recovery.c", param_2); uVar1 = my_create_with_symlink(0,param_3,0,0x202,0x110); (**(code **)(PSI_server + 0x200))(local_30,uVar1); } return uVar1; }
36,864
lunasvg::Canvas::fillPath(lunasvg::Path const&, lunasvg::FillRule, lunasvg::Transform const&)
dmazzella[P]pylunasvg/lunasvg/source/graphics.cpp
void Canvas::fillPath(const Path& path, FillRule fillRule, const Transform& transform) { plutovg_canvas_reset_matrix(m_canvas); plutovg_canvas_translate(m_canvas, -m_x, -m_y); plutovg_canvas_transform(m_canvas, &transform.matrix()); plutovg_canvas_set_fill_rule(m_canvas, static_cast<plutovg_fill_rule_t>(fillRule)); plutovg_canvas_set_operator(m_canvas, PLUTOVG_OPERATOR_SRC_OVER); plutovg_canvas_fill_path(m_canvas, path.data()); }
O0
cpp
lunasvg::Canvas::fillPath(lunasvg::Path const&, lunasvg::FillRule, lunasvg::Transform const&): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb %dl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movb %al, -0x11(%rbp) movq %rcx, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movq 0x8(%rax), %rdi callq 0x55600 movq -0x30(%rbp), %rcx movq 0x8(%rcx), %rdi xorl %eax, %eax subl 0x10(%rcx), %eax cvtsi2ss %eax, %xmm0 xorl %eax, %eax subl 0x14(%rcx), %eax cvtsi2ss %eax, %xmm1 callq 0x554d0 movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rdi callq 0xe6c0 movq -0x38(%rbp), %rdi movq %rax, %rsi callq 0x555c0 movq -0x30(%rbp), %rax movq 0x8(%rax), %rdi movzbl -0x11(%rbp), %esi callq 0x550a0 movq -0x30(%rbp), %rax movq 0x8(%rax), %rdi movl $0x3, %esi callq 0x550e0 movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rdi callq 0x145e0 movq -0x28(%rbp), %rdi movq %rax, %rsi callq 0x561d0 addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN7lunasvg6Canvas8fillPathERKNS_4PathENS_8FillRuleERKNS_9TransformE: push rbp mov rbp, rsp sub rsp, 40h mov al, dl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_11], al mov [rbp+var_20], rcx mov rax, [rbp+var_8] mov [rbp+var_30], rax mov rdi, [rax+8] call plutovg_canvas_reset_matrix mov rcx, [rbp+var_30] mov rdi, [rcx+8] xor eax, eax sub eax, [rcx+10h] cvtsi2ss xmm0, eax xor eax, eax sub eax, [rcx+14h] cvtsi2ss xmm1, eax call plutovg_canvas_translate mov rax, [rbp+var_30] mov rax, [rax+8] mov [rbp+var_38], rax mov rdi, [rbp+var_20]; this call _ZNK7lunasvg9Transform6matrixEv; lunasvg::Transform::matrix(void) mov rdi, [rbp+var_38] mov rsi, rax call plutovg_canvas_transform mov rax, [rbp+var_30] mov rdi, [rax+8] movzx esi, [rbp+var_11] call plutovg_canvas_set_fill_rule mov rax, [rbp+var_30] mov rdi, [rax+8] mov esi, 3 call plutovg_canvas_set_operator mov rax, [rbp+var_30] mov rax, [rax+8] mov [rbp+var_28], rax mov rdi, [rbp+var_10]; this call _ZNK7lunasvg4Path4dataEv; lunasvg::Path::data(void) mov rdi, [rbp+var_28] mov rsi, rax call plutovg_canvas_fill_path add rsp, 40h pop rbp retn
long long lunasvg::Canvas::fillPath(long long a1, lunasvg::Path *a2, unsigned __int8 a3, lunasvg::Transform *a4) { lunasvg::Transform *v4; // rax long long v5; // rax long long v7; // [rsp+8h] [rbp-38h] long long v8; // [rsp+18h] [rbp-28h] plutovg_canvas_reset_matrix(*(_QWORD *)(a1 + 8)); plutovg_canvas_translate(*(_QWORD *)(a1 + 8), (float)-*(_DWORD *)(a1 + 16), (float)-*(_DWORD *)(a1 + 20)); v7 = *(_QWORD *)(a1 + 8); v4 = lunasvg::Transform::matrix(a4); plutovg_canvas_transform(v7, v4); plutovg_canvas_set_fill_rule(*(_QWORD *)(a1 + 8), a3); plutovg_canvas_set_operator(*(_QWORD *)(a1 + 8), 3LL); v8 = *(_QWORD *)(a1 + 8); v5 = lunasvg::Path::data(a2); return plutovg_canvas_fill_path(v8, v5); }
fillPath: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV AL,DL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV byte ptr [RBP + -0x11],AL MOV qword ptr [RBP + -0x20],RCX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RAX + 0x8] CALL 0x00155600 MOV RCX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RCX + 0x8] XOR EAX,EAX SUB EAX,dword ptr [RCX + 0x10] CVTSI2SS XMM0,EAX XOR EAX,EAX SUB EAX,dword ptr [RCX + 0x14] CVTSI2SS XMM1,EAX CALL 0x001554d0 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x0010e6c0 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,RAX CALL 0x001555c0 MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RAX + 0x8] MOVZX ESI,byte ptr [RBP + -0x11] CALL 0x001550a0 MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RAX + 0x8] MOV ESI,0x3 CALL 0x001550e0 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x001145e0 MOV RDI,qword ptr [RBP + -0x28] MOV RSI,RAX CALL 0x001561d0 ADD RSP,0x40 POP RBP RET
/* lunasvg::Canvas::fillPath(lunasvg::Path const&, lunasvg::FillRule, lunasvg::Transform const&) */ void __thiscall lunasvg::Canvas::fillPath(Canvas *this,Path *param_1,int1 param_3,Transform *param_4) { int8 uVar1; int8 uVar2; plutovg_canvas_reset_matrix(*(int8 *)(this + 8)); plutovg_canvas_translate ((float)-*(int *)(this + 0x10),(float)-*(int *)(this + 0x14),*(int8 *)(this + 8)); uVar1 = *(int8 *)(this + 8); uVar2 = Transform::matrix(param_4); plutovg_canvas_transform(uVar1,uVar2); plutovg_canvas_set_fill_rule(*(int8 *)(this + 8),param_3); plutovg_canvas_set_operator(*(int8 *)(this + 8),3); uVar1 = *(int8 *)(this + 8); uVar2 = Path::data(param_1); plutovg_canvas_fill_path(uVar1,uVar2); return; }
36,865
lunasvg::Canvas::fillPath(lunasvg::Path const&, lunasvg::FillRule, lunasvg::Transform const&)
dmazzella[P]pylunasvg/lunasvg/source/graphics.cpp
void Canvas::fillPath(const Path& path, FillRule fillRule, const Transform& transform) { plutovg_canvas_reset_matrix(m_canvas); plutovg_canvas_translate(m_canvas, -m_x, -m_y); plutovg_canvas_transform(m_canvas, &transform.matrix()); plutovg_canvas_set_fill_rule(m_canvas, static_cast<plutovg_fill_rule_t>(fillRule)); plutovg_canvas_set_operator(m_canvas, PLUTOVG_OPERATOR_SRC_OVER); plutovg_canvas_fill_path(m_canvas, path.data()); }
O3
cpp
lunasvg::Canvas::fillPath(lunasvg::Path const&, lunasvg::FillRule, lunasvg::Transform const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rcx, %r15 movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r14 movq 0x8(%rdi), %rdi callq 0x23c12 xorl %eax, %eax subl 0x10(%r14), %eax cvtsi2ss %eax, %xmm0 xorl %eax, %eax subl 0x14(%r14), %eax movq 0x8(%r14), %rdi cvtsi2ss %eax, %xmm1 callq 0x23bce movq 0x8(%r14), %rdi movq %r15, %rsi callq 0x23c02 movq 0x8(%r14), %rdi movl %ebp, %esi callq 0x23a5b movq 0x8(%r14), %rdi movl $0x3, %esi callq 0x23a71 movq 0x8(%r14), %rdi movq (%rbx), %rsi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x24019 nop
_ZN7lunasvg6Canvas8fillPathERKNS_4PathENS_8FillRuleERKNS_9TransformE: push rbp push r15 push r14 push rbx push rax mov r15, rcx mov ebp, edx mov rbx, rsi mov r14, rdi mov rdi, [rdi+8] call plutovg_canvas_reset_matrix xor eax, eax sub eax, [r14+10h] cvtsi2ss xmm0, eax xor eax, eax sub eax, [r14+14h] mov rdi, [r14+8] cvtsi2ss xmm1, eax call plutovg_canvas_translate mov rdi, [r14+8] mov rsi, r15 call plutovg_canvas_transform mov rdi, [r14+8] mov esi, ebp call plutovg_canvas_set_fill_rule mov rdi, [r14+8] mov esi, 3 call plutovg_canvas_set_operator mov rdi, [r14+8] mov rsi, [rbx] add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp plutovg_canvas_fill_path
long long lunasvg::Canvas::fillPath(long long a1, _QWORD *a2, unsigned int a3, long long a4) { plutovg_canvas_reset_matrix(*(_QWORD *)(a1 + 8)); plutovg_canvas_translate(*(_QWORD *)(a1 + 8), (float)-*(_DWORD *)(a1 + 16), (float)-*(_DWORD *)(a1 + 20)); plutovg_canvas_transform(*(_QWORD *)(a1 + 8), a4); plutovg_canvas_set_fill_rule(*(_QWORD *)(a1 + 8), a3); plutovg_canvas_set_operator(*(_QWORD *)(a1 + 8), 3LL); return plutovg_canvas_fill_path(*(_QWORD *)(a1 + 8), *a2); }
fillPath: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R15,RCX MOV EBP,EDX MOV RBX,RSI MOV R14,RDI MOV RDI,qword ptr [RDI + 0x8] CALL 0x00123c12 XOR EAX,EAX SUB EAX,dword ptr [R14 + 0x10] CVTSI2SS XMM0,EAX XOR EAX,EAX SUB EAX,dword ptr [R14 + 0x14] MOV RDI,qword ptr [R14 + 0x8] CVTSI2SS XMM1,EAX CALL 0x00123bce MOV RDI,qword ptr [R14 + 0x8] MOV RSI,R15 CALL 0x00123c02 MOV RDI,qword ptr [R14 + 0x8] MOV ESI,EBP CALL 0x00123a5b MOV RDI,qword ptr [R14 + 0x8] MOV ESI,0x3 CALL 0x00123a71 MOV RDI,qword ptr [R14 + 0x8] MOV RSI,qword ptr [RBX] ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00124019
/* lunasvg::Canvas::fillPath(lunasvg::Path const&, lunasvg::FillRule, lunasvg::Transform const&) */ void __thiscall lunasvg::Canvas::fillPath(Canvas *this,int8 *param_1,int4 param_3,int8 param_4) { plutovg_canvas_reset_matrix(*(int8 *)(this + 8)); plutovg_canvas_translate ((float)-*(int *)(this + 0x10),(float)-*(int *)(this + 0x14),*(int8 *)(this + 8)); plutovg_canvas_transform(*(int8 *)(this + 8),param_4); plutovg_canvas_set_fill_rule(*(int8 *)(this + 8),param_3); plutovg_canvas_set_operator(*(int8 *)(this + 8),3); plutovg_canvas_fill_path(*(int8 *)(this + 8),*param_1); return; }
36,866
mi_write_static_record
eloqsql/storage/myisam/mi_statrec.c
int _mi_write_static_record(MI_INFO *info, const uchar *record) { uchar temp[8]; /* max pointer length */ if (info->s->state.dellink != HA_OFFSET_ERROR && !info->append_insert_at_end) { my_off_t filepos=info->s->state.dellink; info->rec_cache.seek_not_done=1; /* We have done a seek */ if (info->s->file_read(info, &temp[0],info->s->base.rec_reflength, info->s->state.dellink+1, MYF(MY_NABP))) goto err; info->s->state.dellink= _mi_rec_pos(info->s,temp); info->state->del--; info->state->empty-=info->s->base.pack_reclength; if (info->s->file_write(info, record, info->s->base.reclength, filepos, MYF(MY_NABP))) goto err; } else { if (info->state->data_file_length > info->s->base.max_data_file_length- info->s->base.pack_reclength) { my_errno=HA_ERR_RECORD_FILE_FULL; return(2); } if (info->opt_flag & WRITE_CACHE_USED) { /* Cash in use */ if (my_b_write(&info->rec_cache, record, info->s->base.reclength)) goto err; if (info->s->base.pack_reclength != info->s->base.reclength) { uint length=info->s->base.pack_reclength - info->s->base.reclength; bzero(temp,length); if (my_b_write(&info->rec_cache, temp,length)) goto err; } } else { info->rec_cache.seek_not_done=1; /* We have done a seek */ if (info->s->file_write(info, record, info->s->base.reclength, info->state->data_file_length, info->s->write_flag)) goto err; if (info->s->base.pack_reclength != info->s->base.reclength) { uint length=info->s->base.pack_reclength - info->s->base.reclength; bzero(temp,length); if (info->s->file_write(info, temp,length, info->state->data_file_length+ info->s->base.reclength, info->s->write_flag)) goto err; } } info->state->data_file_length+=info->s->base.pack_reclength; info->s->state.split++; } return 0; err: return 1; }
O3
c
mi_write_static_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq (%rdi), %rax movq 0x58(%rax), %r15 cmpq $-0x1, %r15 je 0x86c6e cmpb $0x0, 0x33a(%rbx) je 0x86d47 movq 0x8(%rbx), %rcx movq 0x110(%rax), %rdx subq 0x148(%rax), %rdx cmpq %rdx, 0x28(%rcx) jbe 0x86c9c callq 0xa1a06 movl $0x87, (%rax) movl $0x2, %r14d jmp 0x86ebc testb $0x10, 0x1c8(%rbx) jne 0x86dd6 movl $0x1, 0x300(%rbx) movq 0x140(%rax), %rdx movq 0x28(%rcx), %rcx movq 0x370(%rax), %r8 movq %rbx, %rdi movq %r14, %rsi callq *0x2e8(%rax) movl $0x1, %r14d testq %rax, %rax jne 0x86ebc movq (%rbx), %r13 movq 0x140(%r13), %rax movq 0x148(%r13), %r15 cmpq %rax, %r15 je 0x86ea0 subl %eax, %r15d leaq -0x38(%rbp), %r12 movl $0x8, %ecx movq %r12, %rdi xorl %esi, %esi movq %r15, %rdx callq 0x297f0 movq 0x8(%rbx), %rax movq 0x140(%r13), %rcx addq 0x28(%rax), %rcx movq 0x370(%r13), %r8 movq %rbx, %rdi movq %r12, %rsi movq %r15, %rdx callq *0x2e8(%r13) testq %rax, %rax jne 0x86ebc jmp 0x86ea0 movl $0x1, 0x300(%rbx) movl 0x178(%rax), %edx movq 0x58(%rax), %rcx incq %rcx leaq -0x38(%rbp), %rsi movl $0x4, %r8d movq %rbx, %rdi callq *0x2e0(%rax) testq %rax, %rax jne 0x86dcb movq (%rbx), %rdi leaq -0x38(%rbp), %rsi callq 0x851a4 movq (%rbx), %rcx movq %rax, 0x58(%rcx) movq 0x8(%rbx), %rax decq 0x8(%rax) movq (%rbx), %rax movq 0x8(%rbx), %rcx movq 0x148(%rax), %rax subq %rax, 0x10(%rcx) movq (%rbx), %rax movq 0x140(%rax), %rdx movl $0x4, %r8d movq %rbx, %rdi movq %r14, %rsi movq %r15, %rcx callq *0x2e8(%rax) testq %rax, %rax je 0x86eb9 movl $0x1, %r14d jmp 0x86ebc leaq 0x220(%rbx), %r15 movq 0x140(%rax), %r12 movq 0x260(%rbx), %rdi leaq (%rdi,%r12), %rax cmpq 0x268(%rbx), %rax jbe 0x86e16 movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx callq 0x95707 movl $0x1, %r14d testl %eax, %eax jne 0x86ebc jmp 0x86e2d testq %r12, %r12 je 0x86e2d movq %r14, %rsi movq %r12, %rdx callq 0x29080 addq %r12, 0x260(%rbx) movq (%rbx), %rcx movq 0x140(%rcx), %rax movq 0x148(%rcx), %r14 cmpq %rax, %r14 je 0x86ea0 subl %eax, %r14d leaq -0x38(%rbp), %rdi movl $0x8, %ecx xorl %esi, %esi movq %r14, %rdx callq 0x297f0 movq 0x260(%rbx), %rdi leaq (%rdi,%r14), %rax cmpq 0x268(%rbx), %rax jbe 0x86e88 leaq -0x38(%rbp), %rsi movq %r15, %rdi movq %r14, %rdx callq 0x95707 movl $0x1, %r14d testl %eax, %eax jne 0x86ebc jmp 0x86ea0 testq %r14, %r14 je 0x86ea0 leaq -0x38(%rbp), %rsi movq %r14, %rdx callq 0x29080 addq %r14, 0x260(%rbx) movq (%rbx), %rax movq 0x8(%rbx), %rcx movq 0x148(%rax), %rax addq %rax, 0x28(%rcx) movq (%rbx), %rax incq 0x50(%rax) xorl %r14d, %r14d movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x86edd movl %r14d, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29270
_mi_write_static_record: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax mov rax, [rdi] mov r15, [rax+58h] cmp r15, 0FFFFFFFFFFFFFFFFh jz short loc_86C6E cmp byte ptr [rbx+33Ah], 0 jz loc_86D47 loc_86C6E: mov rcx, [rbx+8] mov rdx, [rax+110h] sub rdx, [rax+148h] cmp [rcx+28h], rdx jbe short loc_86C9C call _my_thread_var mov dword ptr [rax], 87h mov r14d, 2 jmp loc_86EBC loc_86C9C: test byte ptr [rbx+1C8h], 10h jnz loc_86DD6 mov dword ptr [rbx+300h], 1 mov rdx, [rax+140h] mov rcx, [rcx+28h] mov r8, [rax+370h] mov rdi, rbx mov rsi, r14 call qword ptr [rax+2E8h] mov r14d, 1 test rax, rax jnz loc_86EBC mov r13, [rbx] mov rax, [r13+140h] mov r15, [r13+148h] cmp r15, rax jz loc_86EA0 sub r15d, eax lea r12, [rbp+var_38] mov ecx, 8 mov rdi, r12 xor esi, esi mov rdx, r15 call ___memset_chk mov rax, [rbx+8] mov rcx, [r13+140h] add rcx, [rax+28h] mov r8, [r13+370h] mov rdi, rbx mov rsi, r12 mov rdx, r15 call qword ptr [r13+2E8h] test rax, rax jnz loc_86EBC jmp loc_86EA0 loc_86D47: mov dword ptr [rbx+300h], 1 mov edx, [rax+178h] mov rcx, [rax+58h] inc rcx lea rsi, [rbp+var_38] mov r8d, 4 mov rdi, rbx call qword ptr [rax+2E0h] test rax, rax jnz short loc_86DCB mov rdi, [rbx] lea rsi, [rbp+var_38] call _mi_rec_pos mov rcx, [rbx] mov [rcx+58h], rax mov rax, [rbx+8] dec qword ptr [rax+8] mov rax, [rbx] mov rcx, [rbx+8] mov rax, [rax+148h] sub [rcx+10h], rax mov rax, [rbx] mov rdx, [rax+140h] mov r8d, 4 mov rdi, rbx mov rsi, r14 mov rcx, r15 call qword ptr [rax+2E8h] test rax, rax jz loc_86EB9 loc_86DCB: mov r14d, 1 jmp loc_86EBC loc_86DD6: lea r15, [rbx+220h] mov r12, [rax+140h] mov rdi, [rbx+260h] lea rax, [rdi+r12] cmp rax, [rbx+268h] jbe short loc_86E16 mov rdi, r15 mov rsi, r14 mov rdx, r12 call _my_b_write mov r14d, 1 test eax, eax jnz loc_86EBC jmp short loc_86E2D loc_86E16: test r12, r12 jz short loc_86E2D mov rsi, r14 mov rdx, r12 call _memcpy add [rbx+260h], r12 loc_86E2D: mov rcx, [rbx] mov rax, [rcx+140h] mov r14, [rcx+148h] cmp r14, rax jz short loc_86EA0 sub r14d, eax lea rdi, [rbp+var_38] mov ecx, 8 xor esi, esi mov rdx, r14 call ___memset_chk mov rdi, [rbx+260h] lea rax, [rdi+r14] cmp rax, [rbx+268h] jbe short loc_86E88 lea rsi, [rbp+var_38] mov rdi, r15 mov rdx, r14 call _my_b_write mov r14d, 1 test eax, eax jnz short loc_86EBC jmp short loc_86EA0 loc_86E88: test r14, r14 jz short loc_86EA0 lea rsi, [rbp+var_38] mov rdx, r14 call _memcpy add [rbx+260h], r14 loc_86EA0: mov rax, [rbx] mov rcx, [rbx+8] mov rax, [rax+148h] add [rcx+28h], rax mov rax, [rbx] inc qword ptr [rax+50h] loc_86EB9: xor r14d, r14d loc_86EBC: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_86EDD mov eax, r14d add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_86EDD: call ___stack_chk_fail
long long mi_write_static_record(_DWORD *a1, const char *a2) { long long v3; // rax long long v4; // r15 long long v5; // rcx unsigned int v6; // r14d long long v7; // r13 long long v8; // rax long long v9; // r15 long long v10; // r15 long long v11; // rdx long long v12; // r12 long long v13; // rdi long long v14; // rax long long v15; // r14 long long v16; // r14 long long v17; // rdi int v18; // eax __int16 v20; // [rsp+8h] [rbp-38h] BYREF unsigned long long v21; // [rsp+10h] [rbp-30h] v21 = __readfsqword(0x28u); v3 = *(_QWORD *)a1; v4 = *(_QWORD *)(*(_QWORD *)a1 + 88LL); if ( v4 != -1 && !*((_BYTE *)a1 + 826) ) { a1[192] = 1; if ( (*(long long ( **)(_DWORD *, __int16 *, _QWORD, long long, long long))(v3 + 736))( a1, &v20, *(unsigned int *)(v3 + 376), *(_QWORD *)(v3 + 88) + 1LL, 4LL) ) { return 1; } *(_QWORD *)(*(_QWORD *)a1 + 88LL) = mi_rec_pos(*(_QWORD *)a1, &v20, v11); --*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL); *(_QWORD *)(*((_QWORD *)a1 + 1) + 16LL) -= *(_QWORD *)(*(_QWORD *)a1 + 328LL); return (*(long long ( **)(_DWORD *, const char *, _QWORD, long long, long long))(*(_QWORD *)a1 + 744LL))( a1, a2, *(_QWORD *)(*(_QWORD *)a1 + 320LL), v4, 4LL) != 0; } v5 = *((_QWORD *)a1 + 1); if ( *(_QWORD *)(v5 + 40) > *(_QWORD *)(v3 + 272) - *(_QWORD *)(v3 + 328) ) { *(_DWORD *)my_thread_var(a1, a2) = 135; return 2; } if ( (a1[114] & 0x10) != 0 ) { v12 = *(_QWORD *)(v3 + 320); v13 = *((_QWORD *)a1 + 76); if ( (unsigned long long)(v13 + v12) <= *((_QWORD *)a1 + 77) ) { if ( v12 ) { memcpy(v13, a2, v12); *((_QWORD *)a1 + 76) += v12; } } else { v6 = 1; if ( (unsigned int)my_b_write(a1 + 136, a2, v12) ) return v6; } v14 = *(_QWORD *)(*(_QWORD *)a1 + 320LL); v15 = *(_QWORD *)(*(_QWORD *)a1 + 328LL); if ( v15 != v14 ) { v16 = (unsigned int)(v15 - v14); __memset_chk(&v20, 0LL, v16, 8LL); v17 = *((_QWORD *)a1 + 76); if ( (unsigned long long)(v17 + v16) <= *((_QWORD *)a1 + 77) ) { if ( v16 ) { memcpy(v17, &v20, v16); *((_QWORD *)a1 + 76) += v16; } } else { v18 = my_b_write(a1 + 136, &v20, v16); v6 = 1; if ( v18 ) return v6; } } goto LABEL_24; } a1[192] = 1; v6 = 1; if ( !(*(long long ( **)(_DWORD *, const char *, _QWORD, _QWORD, _QWORD))(v3 + 744))( a1, a2, *(_QWORD *)(v3 + 320), *(_QWORD *)(v5 + 40), *(_QWORD *)(v3 + 880)) ) { v7 = *(_QWORD *)a1; v8 = *(_QWORD *)(*(_QWORD *)a1 + 320LL); v9 = *(_QWORD *)(*(_QWORD *)a1 + 328LL); if ( v9 == v8 || (v10 = (unsigned int)(v9 - v8), __memset_chk(&v20, 0LL, v10, 8LL), !(*(long long ( **)(_DWORD *, __int16 *, long long, _QWORD, _QWORD))(v7 + 744))( a1, &v20, v10, *(_QWORD *)(*((_QWORD *)a1 + 1) + 40LL) + *(_QWORD *)(v7 + 320), *(_QWORD *)(v7 + 880))) ) { LABEL_24: *(_QWORD *)(*((_QWORD *)a1 + 1) + 40LL) += *(_QWORD *)(*(_QWORD *)a1 + 328LL); ++*(_QWORD *)(*(_QWORD *)a1 + 80LL); return 0; } } return v6; }
_mi_write_static_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RDI] MOV R15,qword ptr [RAX + 0x58] CMP R15,-0x1 JZ 0x00186c6e CMP byte ptr [RBX + 0x33a],0x0 JZ 0x00186d47 LAB_00186c6e: MOV RCX,qword ptr [RBX + 0x8] MOV RDX,qword ptr [RAX + 0x110] SUB RDX,qword ptr [RAX + 0x148] CMP qword ptr [RCX + 0x28],RDX JBE 0x00186c9c CALL 0x001a1a06 MOV dword ptr [RAX],0x87 MOV R14D,0x2 JMP 0x00186ebc LAB_00186c9c: TEST byte ptr [RBX + 0x1c8],0x10 JNZ 0x00186dd6 MOV dword ptr [RBX + 0x300],0x1 MOV RDX,qword ptr [RAX + 0x140] MOV RCX,qword ptr [RCX + 0x28] MOV R8,qword ptr [RAX + 0x370] MOV RDI,RBX MOV RSI,R14 CALL qword ptr [RAX + 0x2e8] MOV R14D,0x1 TEST RAX,RAX JNZ 0x00186ebc MOV R13,qword ptr [RBX] MOV RAX,qword ptr [R13 + 0x140] MOV R15,qword ptr [R13 + 0x148] CMP R15,RAX JZ 0x00186ea0 SUB R15D,EAX LEA R12,[RBP + -0x38] MOV ECX,0x8 MOV RDI,R12 XOR ESI,ESI MOV RDX,R15 CALL 0x001297f0 MOV RAX,qword ptr [RBX + 0x8] MOV RCX,qword ptr [R13 + 0x140] ADD RCX,qword ptr [RAX + 0x28] MOV R8,qword ptr [R13 + 0x370] MOV RDI,RBX MOV RSI,R12 MOV RDX,R15 CALL qword ptr [R13 + 0x2e8] TEST RAX,RAX JNZ 0x00186ebc JMP 0x00186ea0 LAB_00186d47: MOV dword ptr [RBX + 0x300],0x1 MOV EDX,dword ptr [RAX + 0x178] MOV RCX,qword ptr [RAX + 0x58] INC RCX LEA RSI,[RBP + -0x38] MOV R8D,0x4 MOV RDI,RBX CALL qword ptr [RAX + 0x2e0] TEST RAX,RAX JNZ 0x00186dcb MOV RDI,qword ptr [RBX] LEA RSI,[RBP + -0x38] CALL 0x001851a4 MOV RCX,qword ptr [RBX] MOV qword ptr [RCX + 0x58],RAX MOV RAX,qword ptr [RBX + 0x8] DEC qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RAX + 0x148] SUB qword ptr [RCX + 0x10],RAX MOV RAX,qword ptr [RBX] MOV RDX,qword ptr [RAX + 0x140] MOV R8D,0x4 MOV RDI,RBX MOV RSI,R14 MOV RCX,R15 CALL qword ptr [RAX + 0x2e8] TEST RAX,RAX JZ 0x00186eb9 LAB_00186dcb: MOV R14D,0x1 JMP 0x00186ebc LAB_00186dd6: LEA R15,[RBX + 0x220] MOV R12,qword ptr [RAX + 0x140] MOV RDI,qword ptr [RBX + 0x260] LEA RAX,[RDI + R12*0x1] CMP RAX,qword ptr [RBX + 0x268] JBE 0x00186e16 MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 CALL 0x00195707 MOV R14D,0x1 TEST EAX,EAX JNZ 0x00186ebc JMP 0x00186e2d LAB_00186e16: TEST R12,R12 JZ 0x00186e2d MOV RSI,R14 MOV RDX,R12 CALL 0x00129080 ADD qword ptr [RBX + 0x260],R12 LAB_00186e2d: MOV RCX,qword ptr [RBX] MOV RAX,qword ptr [RCX + 0x140] MOV R14,qword ptr [RCX + 0x148] CMP R14,RAX JZ 0x00186ea0 SUB R14D,EAX LEA RDI,[RBP + -0x38] MOV ECX,0x8 XOR ESI,ESI MOV RDX,R14 CALL 0x001297f0 MOV RDI,qword ptr [RBX + 0x260] LEA RAX,[RDI + R14*0x1] CMP RAX,qword ptr [RBX + 0x268] JBE 0x00186e88 LEA RSI,[RBP + -0x38] MOV RDI,R15 MOV RDX,R14 CALL 0x00195707 MOV R14D,0x1 TEST EAX,EAX JNZ 0x00186ebc JMP 0x00186ea0 LAB_00186e88: TEST R14,R14 JZ 0x00186ea0 LEA RSI,[RBP + -0x38] MOV RDX,R14 CALL 0x00129080 ADD qword ptr [RBX + 0x260],R14 LAB_00186ea0: MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RAX + 0x148] ADD qword ptr [RCX + 0x28],RAX MOV RAX,qword ptr [RBX] INC qword ptr [RAX + 0x50] LAB_00186eb9: XOR R14D,R14D LAB_00186ebc: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00186edd MOV EAX,R14D ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00186edd: CALL 0x00129270
int8 _mi_write_static_record(long *param_1,void *param_2) { long lVar1; size_t __n; int4 *puVar2; long lVar3; int8 uVar4; ulong __n_00; int iVar5; long in_FS_OFFSET; int1 local_40 [8]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); lVar3 = *param_1; lVar1 = *(long *)(lVar3 + 0x58); if ((lVar1 == -1) || (*(char *)((long)param_1 + 0x33a) != '\0')) { if ((ulong)(*(long *)(lVar3 + 0x110) - *(long *)(lVar3 + 0x148)) < *(ulong *)(param_1[1] + 0x28) ) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x87; uVar4 = 2; goto LAB_00186ebc; } if ((*(byte *)(param_1 + 0x39) & 0x10) == 0) { *(int4 *)(param_1 + 0x60) = 1; lVar3 = (**(code **)(lVar3 + 0x2e8)) (param_1,param_2,*(int8 *)(lVar3 + 0x140), *(int8 *)(param_1[1] + 0x28),*(int8 *)(lVar3 + 0x370)); uVar4 = 1; if (lVar3 != 0) goto LAB_00186ebc; lVar3 = *param_1; if (*(long *)(lVar3 + 0x148) != *(long *)(lVar3 + 0x140)) { iVar5 = (int)*(long *)(lVar3 + 0x148) - (int)*(long *)(lVar3 + 0x140); __memset_chk(local_40,0,iVar5,8); lVar3 = (**(code **)(lVar3 + 0x2e8)) (param_1,local_40,iVar5, *(long *)(lVar3 + 0x140) + *(long *)(param_1[1] + 0x28), *(int8 *)(lVar3 + 0x370)); if (lVar3 != 0) goto LAB_00186ebc; } } else { __n = *(size_t *)(lVar3 + 0x140); if ((ulong)param_1[0x4d] < param_1[0x4c] + __n) { iVar5 = _my_b_write(param_1 + 0x44,param_2,__n); uVar4 = 1; if (iVar5 != 0) goto LAB_00186ebc; } else if (__n != 0) { memcpy((void *)param_1[0x4c],param_2,__n); param_1[0x4c] = param_1[0x4c] + __n; } lVar3 = *(long *)(*param_1 + 0x140); lVar1 = *(long *)(*param_1 + 0x148); if (lVar1 != lVar3) { __n_00 = (ulong)(uint)((int)lVar1 - (int)lVar3); __memset_chk(local_40,0,__n_00,8); if ((ulong)param_1[0x4d] < param_1[0x4c] + __n_00) { iVar5 = _my_b_write(param_1 + 0x44,local_40,__n_00); uVar4 = 1; if (iVar5 != 0) goto LAB_00186ebc; } else if (__n_00 != 0) { memcpy((void *)param_1[0x4c],local_40,__n_00); param_1[0x4c] = param_1[0x4c] + __n_00; } } } *(long *)(param_1[1] + 0x28) = *(long *)(param_1[1] + 0x28) + *(long *)(*param_1 + 0x148); *(long *)(*param_1 + 0x50) = *(long *)(*param_1 + 0x50) + 1; LAB_00186eb9: uVar4 = 0; } else { *(int4 *)(param_1 + 0x60) = 1; lVar3 = (**(code **)(lVar3 + 0x2e0)) (param_1,local_40,*(int4 *)(lVar3 + 0x178),*(long *)(lVar3 + 0x58) + 1,4 ); if (lVar3 == 0) { uVar4 = _mi_rec_pos(*param_1,local_40); *(int8 *)(*param_1 + 0x58) = uVar4; *(long *)(param_1[1] + 8) = *(long *)(param_1[1] + 8) + -1; *(long *)(param_1[1] + 0x10) = *(long *)(param_1[1] + 0x10) - *(long *)(*param_1 + 0x148); lVar3 = (**(code **)(*param_1 + 0x2e8)) (param_1,param_2,*(int8 *)(*param_1 + 0x140),lVar1,4); if (lVar3 == 0) goto LAB_00186eb9; } uVar4 = 1; } LAB_00186ebc: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar4; }
36,867
ast_create_type_declaration
tsotchke[P]eshkol/src/frontend/ast/create/ast_create.c
AstNode* ast_create_type_declaration(Arena* arena, StringId function_name, Type* type, size_t line, size_t column) { AstNode* node = ast_create_node(arena, AST_TYPE_DECLARATION, line, column); if (!node) { return NULL; } node->as.type_declaration.function_name = function_name; node->as.type_declaration.type = type; node->type_info = type; // Store the type in the node itself return node; }
O0
c
ast_create_type_declaration: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx movl $0x1d, %esi callq 0xc3c0 movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) jne 0xd637 movq $0x0, -0x8(%rbp) jmp 0xd663 movq -0x18(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x20(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x50(%rax) movq -0x20(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopl (%rax)
ast_create_type_declaration: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov rdi, [rbp+var_10] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] mov esi, 1Dh call ast_create_node mov [rbp+var_38], rax cmp [rbp+var_38], 0 jnz short loc_D637 mov [rbp+var_8], 0 jmp short loc_D663 loc_D637: mov rcx, [rbp+var_18] mov rax, [rbp+var_38] mov [rax+48h], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_38] mov [rax+50h], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_38] mov [rax+18h], rcx mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_D663: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
_QWORD * ast_create_type_declaration(long long a1, long long a2, long long a3, long long a4, long long a5) { _QWORD *node; // [rsp+8h] [rbp-38h] node = (_QWORD *)ast_create_node(a1, 29, a4, a5); if ( !node ) return 0LL; node[9] = a2; node[10] = a3; node[3] = a3; return node; }
ast_create_type_declaration: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] MOV ESI,0x1d CALL 0x0010c3c0 MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 JNZ 0x0010d637 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0010d663 LAB_0010d637: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x48],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x50],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_0010d663: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
long ast_create_type_declaration (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5) { int8 local_10; local_10 = ast_create_node(param_1,0x1d,param_4,param_5); if (local_10 == 0) { local_10 = 0; } else { *(int8 *)(local_10 + 0x48) = param_2; *(int8 *)(local_10 + 0x50) = param_3; *(int8 *)(local_10 + 0x18) = param_3; } return local_10; }
36,868
google::protobuf::compiler::(anonymous namespace)::PluginName(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&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/command_line_interface.cc
std::string PluginName(const std::string& plugin_prefix, const std::string& directive) { // Assuming the directive starts with "--" and ends with "_out" or "_opt", // strip the "--" and "_out/_opt" and add the plugin prefix. return plugin_prefix + "gen-" + directive.substr(2, directive.size() - 6); }
O3
cpp
google::protobuf::compiler::(anonymous namespace)::PluginName(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 %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %r14 movq %rdi, %rbx leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) addq %rsi, %rdx leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x2586a leaq 0x16ff04(%rip), %rsi # 0x19cc2c movq %r15, %rdi callq 0x1f8e0 movq 0x8(%r14), %rcx addq $-0x6, %rcx leaq 0x28(%rsp), %rdi movl $0x2, %edx movq %r14, %rsi callq 0x1f510 movq 0x8(%rsp), %rcx movq 0x10(%rsp), %r8 movq 0x30(%rsp), %rdx leaq (%rdx,%r8), %rax movl $0xf, %edi cmpq %r12, %rcx je 0x2cd6c movq 0x18(%rsp), %rdi movq 0x28(%rsp), %rsi cmpq %rdi, %rax jbe 0x2cd8f leaq 0x38(%rsp), %r9 movl $0xf, %edi cmpq %r9, %rsi je 0x2cd8a movq 0x38(%rsp), %rdi cmpq %rdi, %rax jbe 0x2cd9b leaq 0x8(%rsp), %rdi callq 0x1f150 jmp 0x2cda9 leaq 0x28(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x1f550 leaq 0x10(%rbx), %rdx movq %rdx, (%rbx) movq (%rax), %rsi leaq 0x10(%rax), %rcx cmpq %rcx, %rsi je 0x2cdc8 movq %rsi, (%rbx) movq (%rcx), %rdx movq %rdx, 0x10(%rbx) jmp 0x2cdce movups (%rcx), %xmm0 movups %xmm0, (%rdx) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x8(%rbx) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2cdfd callq 0x1f4a0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x2ce0c callq 0x1f4a0 addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2ce35 callq 0x1f4a0 jmp 0x2ce35 jmp 0x2ce32 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x2ce44 callq 0x1f4a0 movq %rbx, %rdi callq 0x1f860
_ZN6google8protobuf8compiler12_GLOBAL__N_110PluginNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_: push r15 push r14 push r12 push rbx sub rsp, 48h mov r14, rcx mov rbx, rdi lea r12, [rsp+68h+var_50] mov [r12-10h], r12 add rdx, rsi lea r15, [rsp+68h+var_60] mov rdi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rsi, aGen; "gen-" mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rcx, [r14+8] add rcx, 0FFFFFFFFFFFFFFFAh lea rdi, [rsp+68h+var_40] mov edx, 2 mov rsi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) mov rcx, [rsp+68h+var_60] mov r8, [rsp+68h+var_58] mov rdx, [rsp+68h+var_38] lea rax, [rdx+r8] mov edi, 0Fh cmp rcx, r12 jz short loc_2CD6C mov rdi, [rsp+68h+var_50] loc_2CD6C: mov rsi, [rsp+68h+var_40] cmp rax, rdi jbe short loc_2CD8F lea r9, [rsp+68h+var_30] mov edi, 0Fh cmp rsi, r9 jz short loc_2CD8A mov rdi, [rsp+68h+var_30] loc_2CD8A: cmp rax, rdi jbe short loc_2CD9B loc_2CD8F: lea rdi, [rsp+68h+var_60] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_2CDA9 loc_2CD9B: lea rdi, [rsp+68h+var_40] xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) loc_2CDA9: lea rdx, [rbx+10h] mov [rbx], rdx mov rsi, [rax] lea rcx, [rax+10h] cmp rsi, rcx jz short loc_2CDC8 mov [rbx], rsi mov rdx, [rcx] mov [rbx+10h], rdx jmp short loc_2CDCE loc_2CDC8: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rdx], xmm0 loc_2CDCE: mov rdx, rax add rdx, 8 mov rsi, [rax+8] mov [rbx+8], rsi mov [rax], rcx mov qword ptr [rdx], 0 mov byte ptr [rcx], 0 lea rax, [rsp+68h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2CDFD call __ZdlPv; operator delete(void *) loc_2CDFD: mov rdi, [rsp+68h+var_60]; void * cmp rdi, r12 jz short loc_2CE0C call __ZdlPv; operator delete(void *) loc_2CE0C: add rsp, 48h pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax lea rax, [rsp+arg_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2CE35 call __ZdlPv; operator delete(void *) jmp short loc_2CE35 jmp short $+2 loc_2CE32: mov rbx, rax loc_2CE35: mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_2CE44 call __ZdlPv; operator delete(void *) loc_2CE44: mov rdi, rbx call __Unwind_Resume
void google::protobuf::compiler::`anonymous namespace'::PluginName( long long a1, _BYTE *a2, long long a3, long long a4) { unsigned long long v6; // rax unsigned long long v7; // rdi unsigned long long v8; // rdi _QWORD *v9; // rax _OWORD *v10; // rcx void *v11; // [rsp+8h] [rbp-60h] BYREF long long v12; // [rsp+10h] [rbp-58h] _QWORD v13[2]; // [rsp+18h] [rbp-50h] BYREF _QWORD *v14; // [rsp+28h] [rbp-40h] BYREF long long v15; // [rsp+30h] [rbp-38h] _QWORD v16[6]; // [rsp+38h] [rbp-30h] BYREF v11 = v13; std::string::_M_construct<char *>((long long)&v11, a2, (long long)&a2[a3]); std::string::append(&v11, "gen-"); std::string::substr(&v14, a4, 2LL, *(_QWORD *)(a4 + 8) - 6LL); v6 = v15 + v12; v7 = 15LL; if ( v11 != v13 ) v7 = v13[0]; if ( v6 <= v7 ) goto LABEL_7; v8 = 15LL; if ( v14 != v16 ) v8 = v16[0]; if ( v6 <= v8 ) v9 = (_QWORD *)std::string::replace(&v14, 0LL, 0LL, v11, v12); else LABEL_7: v9 = (_QWORD *)std::string::_M_append(&v11, v14, v15); *(_QWORD *)a1 = a1 + 16; v10 = v9 + 2; if ( (_QWORD *)*v9 == v9 + 2 ) { *(_OWORD *)(a1 + 16) = *v10; } else { *(_QWORD *)a1 = *v9; *(_QWORD *)(a1 + 16) = *(_QWORD *)v10; } *(_QWORD *)(a1 + 8) = v9[1]; *v9 = v10; v9[1] = 0LL; *(_BYTE *)v10 = 0; if ( v14 != v16 ) operator delete(v14); if ( v11 != v13 ) operator delete(v11); }
PluginName: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R14,RCX MOV RBX,RDI LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 ADD RDX,RSI LEA R15,[RSP + 0x8] MOV RDI,R15 CALL 0x0012586a LAB_0012cd21: LEA RSI,[0x29cc2c] MOV RDI,R15 CALL 0x0011f8e0 MOV RCX,qword ptr [R14 + 0x8] ADD RCX,-0x6 LAB_0012cd38: LEA RDI,[RSP + 0x28] MOV EDX,0x2 MOV RSI,R14 CALL 0x0011f510 MOV RCX,qword ptr [RSP + 0x8] MOV R8,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x30] LEA RAX,[RDX + R8*0x1] MOV EDI,0xf CMP RCX,R12 JZ 0x0012cd6c MOV RDI,qword ptr [RSP + 0x18] LAB_0012cd6c: MOV RSI,qword ptr [RSP + 0x28] CMP RAX,RDI JBE 0x0012cd8f LEA R9,[RSP + 0x38] MOV EDI,0xf CMP RSI,R9 JZ 0x0012cd8a MOV RDI,qword ptr [RSP + 0x38] LAB_0012cd8a: CMP RAX,RDI JBE 0x0012cd9b LAB_0012cd8f: LEA RDI,[RSP + 0x8] CALL 0x0011f150 JMP 0x0012cda9 LAB_0012cd9b: LEA RDI,[RSP + 0x28] XOR ESI,ESI XOR EDX,EDX CALL 0x0011f550 LAB_0012cda9: LEA RDX,[RBX + 0x10] MOV qword ptr [RBX],RDX MOV RSI,qword ptr [RAX] LEA RCX,[RAX + 0x10] CMP RSI,RCX JZ 0x0012cdc8 MOV qword ptr [RBX],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RBX + 0x10],RDX JMP 0x0012cdce LAB_0012cdc8: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RDX],XMM0 LAB_0012cdce: MOV RDX,RAX ADD RDX,0x8 MOV RSI,qword ptr [RAX + 0x8] MOV qword ptr [RBX + 0x8],RSI MOV qword ptr [RAX],RCX MOV qword ptr [RDX],0x0 MOV byte ptr [RCX],0x0 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0012cdfd CALL 0x0011f4a0 LAB_0012cdfd: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x0012ce0c CALL 0x0011f4a0 LAB_0012ce0c: ADD RSP,0x48 POP RBX POP R12 POP R14 POP R15 RET
/* google::protobuf::compiler::(anonymous namespace)::PluginName(std::__cxx11::string const&, std::__cxx11::string const&) */ void google::protobuf::compiler::(anonymous_namespace)::PluginName(string *param_1,string *param_2) { int8 *puVar1; int8 uVar2; int8 *puVar3; ulong in_RCX; long in_RDX; ulong uVar4; ulong *local_60; long local_58; ulong local_50 [2]; ulong *local_40; long local_38; ulong local_30 [2]; local_60 = local_50; std::__cxx11::string::_M_construct<char*>(&local_60,param_2,param_2 + in_RDX); /* try { // try from 0012cd21 to 0012cd2f has its CatchHandler @ 0012ce32 */ std::__cxx11::string::append((char *)&local_60); /* try { // try from 0012cd38 to 0012cd49 has its CatchHandler @ 0012ce30 */ std::__cxx11::string::substr((ulong)&local_40,in_RCX); uVar4 = 0xf; if (local_60 != local_50) { uVar4 = local_50[0]; } if (uVar4 < (ulong)(local_38 + local_58)) { uVar4 = 0xf; if (local_40 != local_30) { uVar4 = local_30[0]; } if ((ulong)(local_38 + local_58) <= uVar4) { puVar3 = (int8 *) std::__cxx11::string::replace((ulong)&local_40,0,(char *)0x0,(ulong)local_60); goto LAB_0012cda9; } } /* try { // try from 0012cd8f to 0012cda8 has its CatchHandler @ 0012ce18 */ puVar3 = (int8 *)std::__cxx11::string::_M_append((char *)&local_60,(ulong)local_40); LAB_0012cda9: *(string **)param_1 = param_1 + 0x10; puVar1 = puVar3 + 2; if ((int8 *)*puVar3 == puVar1) { uVar2 = puVar3[3]; *(int8 *)(param_1 + 0x10) = *puVar1; *(int8 *)(param_1 + 0x18) = uVar2; } else { *(int8 **)param_1 = (int8 *)*puVar3; *(int8 *)(param_1 + 0x10) = *puVar1; } *(int8 *)(param_1 + 8) = puVar3[1]; *puVar3 = puVar1; puVar3[1] = 0; *(int1 *)puVar1 = 0; if (local_40 != local_30) { operator_delete(local_40); } if (local_60 != local_50) { operator_delete(local_60); } return; }
36,869
translog_finish_page
eloqsql/storage/maria/ma_loghandler.c
static void translog_finish_page(TRANSLOG_ADDRESS *horizon, struct st_buffer_cursor *cursor) { uint16 left= TRANSLOG_PAGE_SIZE - cursor->current_page_fill; uchar *page= cursor->ptr - cursor->current_page_fill; DBUG_ENTER("translog_finish_page"); DBUG_PRINT("enter", ("Buffer: #%u %p " "Buffer addr: " LSN_FMT " " "Page addr: " LSN_FMT " " "size:%u (%u) Pg:%u left:%u", (uint) cursor->buffer_no, cursor->buffer, LSN_IN_PARTS(cursor->buffer->offset), (uint)LSN_FILE_NO(*horizon), (uint)(LSN_OFFSET(*horizon) - cursor->current_page_fill), (uint) cursor->buffer->size, (uint) (cursor->ptr -cursor->buffer->buffer), (uint) cursor->current_page_fill, (uint) left)); DBUG_ASSERT(LSN_FILE_NO(*horizon) == LSN_FILE_NO(cursor->buffer->offset) || translog_status == TRANSLOG_UNINITED); if ((LSN_FILE_NO(*horizon) != LSN_FILE_NO(cursor->buffer->offset))) DBUG_VOID_RETURN; // everything wrong do not write to awoid more problems translog_check_cursor(cursor); if (cursor->protected) { DBUG_PRINT("info", ("Already protected and finished")); DBUG_VOID_RETURN; } cursor->protected= 1; DBUG_ASSERT(left < TRANSLOG_PAGE_SIZE); if (left != 0) { DBUG_PRINT("info", ("left: %u", (uint) left)); memset(cursor->ptr, TRANSLOG_FILLER, left); cursor->ptr+= left; (*horizon)+= left; /* offset increasing */ if (!cursor->chaser) cursor->buffer->size+= left; /* We are finishing the page so reset the counter */ cursor->current_page_fill= 0; DBUG_PRINT("info", ("Finish Page buffer #%u: %p " "chaser: %d Size: %lu (%lu)", (uint) cursor->buffer->buffer_no, cursor->buffer, cursor->chaser, (ulong) cursor->buffer->size, (ulong) (cursor->ptr - cursor->buffer->buffer))); translog_check_cursor(cursor); } /* When we are finishing the page other thread might not finish the page header yet (in case if we started from the middle of the page) so we have to read log_descriptor.flags but not the flags from the page. */ if (log_descriptor.flags & TRANSLOG_SECTOR_PROTECTION) { translog_put_sector_protection(page, cursor); DBUG_PRINT("info", ("drop write_counter")); cursor->write_counter= 0; cursor->previous_offset= 0; } if (log_descriptor.flags & TRANSLOG_PAGE_CRC) { uint32 crc= translog_crc(page + log_descriptor.page_overhead, TRANSLOG_PAGE_SIZE - log_descriptor.page_overhead); DBUG_PRINT("info", ("CRC: %lx", (ulong) crc)); /* We have page number, file number and flag before crc */ int4store(page + 3 + 3 + 1, crc); } DBUG_VOID_RETURN; }
O3
c
translog_finish_page: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq 0x28(%rsi), %rax movq 0x100010(%rax), %rax xorq (%rdi), %rax shrq $0x20, %rax jne 0x6ab39 movq %rsi, %r14 cmpb $0x0, 0x38(%rsi) jne 0x6ab39 movzwl 0x30(%r14), %r13d movq 0x20(%r14), %rbx movb $0x1, 0x38(%r14) movzwl %r13w, %eax cmpl $0x2000, %eax # imm = 0x2000 je 0x6aaed movq %rdi, %r15 movl $0x2000, %eax # imm = 0x2000 subl %r13d, %eax movzwl %ax, %r12d movq %rbx, %rdi movl $0xff, %esi movq %r12, %rdx callq 0x2a290 addq %r12, 0x20(%r14) addq %r12, (%r15) cmpb $0x0, 0x37(%r14) jne 0x6aae6 movq 0x28(%r14), %rax addl %r12d, 0x100030(%rax) movw $0x0, 0x30(%r14) subq %r13, %rbx movl 0x39fdc2(%rip), %eax # 0x40a8b8 testb $0x2, %al je 0x6ab19 movl 0x34(%r14), %edx movzwl 0x32(%r14), %esi movq %rbx, %rdi callq 0x6e339 movl $0x0, 0x32(%r14) movl 0x39fd9f(%rip), %eax # 0x40a8b8 testb $0x1, %al je 0x6ab39 movzwl 0x39fdb0(%rip), %eax # 0x40a8d4 leaq (%rbx,%rax), %rsi movl $0x2000, %edx # imm = 0x2000 subl %eax, %edx xorl %edi, %edi callq 0xaf86c movl %eax, 0x7(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
translog_finish_page: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rax, [rsi+28h] mov rax, ds:qword_100010[rax] xor rax, [rdi] shr rax, 20h jnz loc_6AB39 mov r14, rsi cmp byte ptr [rsi+38h], 0 jnz loc_6AB39 movzx r13d, word ptr [r14+30h] mov rbx, [r14+20h] mov byte ptr [r14+38h], 1 movzx eax, r13w cmp eax, 2000h jz short loc_6AAED mov r15, rdi mov eax, 2000h sub eax, r13d movzx r12d, ax mov rdi, rbx mov esi, 0FFh mov rdx, r12 call _memset add [r14+20h], r12 add [r15], r12 cmp byte ptr [r14+37h], 0 jnz short loc_6AAE6 mov rax, [r14+28h] add dword ptr ds:qword_100030[rax], r12d loc_6AAE6: mov word ptr [r14+30h], 0 loc_6AAED: sub rbx, r13 mov eax, cs:dword_40A8B8 test al, 2 jz short loc_6AB19 mov edx, [r14+34h] movzx esi, word ptr [r14+32h] mov rdi, rbx call translog_put_sector_protection mov dword ptr [r14+32h], 0 mov eax, cs:dword_40A8B8 loc_6AB19: test al, 1 jz short loc_6AB39 movzx eax, cs:word_40A8D4 lea rsi, [rbx+rax] mov edx, 2000h sub edx, eax xor edi, edi call my_checksum mov [rbx+7], eax loc_6AB39: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long translog_finish_page(_QWORD *a1, long long a2) { unsigned long long result; // rax long long v3; // r13 long long v4; // rbx long long v5; // r12 long long v6; // rbx result = (*a1 ^ *(unsigned long long *)((char *)&qword_100010 + *(_QWORD *)(a2 + 40))) >> 32; if ( !result && !*(_BYTE *)(a2 + 56) ) { v3 = *(unsigned __int16 *)(a2 + 48); v4 = *(_QWORD *)(a2 + 32); *(_BYTE *)(a2 + 56) = 1; if ( (unsigned __int16)v3 != 0x2000 ) { v5 = (unsigned __int16)(0x2000 - v3); memset(v4, 255LL, v5); *(_QWORD *)(a2 + 32) += v5; *a1 += v5; if ( !*(_BYTE *)(a2 + 55) ) *(_DWORD *)((char *)&qword_100030 + *(_QWORD *)(a2 + 40)) += v5; *(_WORD *)(a2 + 48) = 0; } v6 = v4 - v3; result = (unsigned int)dword_40A8B8; if ( (dword_40A8B8 & 2) != 0 ) { translog_put_sector_protection(v6, *(unsigned __int16 *)(a2 + 50), *(unsigned int *)(a2 + 52)); *(_DWORD *)(a2 + 50) = 0; result = (unsigned int)dword_40A8B8; } if ( (result & 1) != 0 ) { result = my_checksum(0LL, v6 + (unsigned __int16)word_40A8D4); *(_DWORD *)(v6 + 7) = result; } } return result; }
translog_finish_page: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RAX,qword ptr [RSI + 0x28] MOV RAX,qword ptr [RAX + 0x100010] XOR RAX,qword ptr [RDI] SHR RAX,0x20 JNZ 0x0016ab39 MOV R14,RSI CMP byte ptr [RSI + 0x38],0x0 JNZ 0x0016ab39 MOVZX R13D,word ptr [R14 + 0x30] MOV RBX,qword ptr [R14 + 0x20] MOV byte ptr [R14 + 0x38],0x1 MOVZX EAX,R13W CMP EAX,0x2000 JZ 0x0016aaed MOV R15,RDI MOV EAX,0x2000 SUB EAX,R13D MOVZX R12D,AX MOV RDI,RBX MOV ESI,0xff MOV RDX,R12 CALL 0x0012a290 ADD qword ptr [R14 + 0x20],R12 ADD qword ptr [R15],R12 CMP byte ptr [R14 + 0x37],0x0 JNZ 0x0016aae6 MOV RAX,qword ptr [R14 + 0x28] ADD dword ptr [RAX + 0x100030],R12D LAB_0016aae6: MOV word ptr [R14 + 0x30],0x0 LAB_0016aaed: SUB RBX,R13 MOV EAX,dword ptr [0x0050a8b8] TEST AL,0x2 JZ 0x0016ab19 MOV EDX,dword ptr [R14 + 0x34] MOVZX ESI,word ptr [R14 + 0x32] MOV RDI,RBX CALL 0x0016e339 MOV dword ptr [R14 + 0x32],0x0 MOV EAX,dword ptr [0x0050a8b8] LAB_0016ab19: TEST AL,0x1 JZ 0x0016ab39 MOVZX EAX,word ptr [0x0050a8d4] LEA RSI,[RBX + RAX*0x1] MOV EDX,0x2000 SUB EDX,EAX XOR EDI,EDI CALL 0x001af86c MOV dword ptr [RBX + 0x7],EAX LAB_0016ab39: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void translog_finish_page(ulong *param_1,long param_2) { ushort uVar1; void *__s; int4 uVar2; long lVar3; uint uVar4; ulong __n; if (((*(ulong *)(Elf64_Ehdr_00100000.e_ident_pad + *(long *)(param_2 + 0x28) + 7) ^ *param_1) >> 0x20 == 0) && (*(char *)(param_2 + 0x38) == '\0')) { uVar1 = *(ushort *)(param_2 + 0x30); __s = *(void **)(param_2 + 0x20); *(int1 *)(param_2 + 0x38) = 1; if (uVar1 != 0x2000) { uVar4 = 0x2000 - uVar1 & 0xffff; __n = (ulong)uVar4; memset(__s,0xff,__n); *(long *)(param_2 + 0x20) = *(long *)(param_2 + 0x20) + __n; *param_1 = *param_1 + __n; if (*(char *)(param_2 + 0x37) == '\0') { *(uint *)(Elf64_Ehdr_00100000.e_ident_pad + *(long *)(param_2 + 0x28) + 0x27) = *(int *)(Elf64_Ehdr_00100000.e_ident_pad + *(long *)(param_2 + 0x28) + 0x27) + uVar4; } *(int2 *)(param_2 + 0x30) = 0; } lVar3 = (long)__s - (ulong)uVar1; if ((DAT_0050a8b8 & 2) != 0) { translog_put_sector_protection (lVar3,*(int2 *)(param_2 + 0x32),*(int4 *)(param_2 + 0x34)); *(int4 *)(param_2 + 0x32) = 0; } if ((DAT_0050a8b8 & 1) != 0) { uVar2 = my_checksum(0,lVar3 + (ulong)(uint)DAT_0050a8d4,0x2000 - (uint)DAT_0050a8d4); *(int4 *)(lVar3 + 7) = uVar2; } } return; }
36,870
mi_bin_search
eloqsql/storage/myisam/mi_search.c
int _mi_bin_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page, uchar *key, uint key_len, uint comp_flag, uchar **ret_pos, uchar *buff __attribute__((unused)), my_bool *last_key) { reg4 int start,mid,end,save_end; int UNINIT_VAR(flag); uint totlength,nod_flag,not_used[2]; DBUG_ENTER("_mi_bin_search"); totlength=keyinfo->keylength+(nod_flag=mi_test_if_nod(page)); start=0; mid=1; save_end=end=(int) ((mi_getint(page)-2-nod_flag)/totlength-1); DBUG_PRINT("test",("mi_getint: %d end: %d",mi_getint(page),end)); page+=2+nod_flag; while (start != end) { mid= (start+end)/2; if ((flag=ha_key_cmp(keyinfo->seg,page+(uint) mid*totlength,key,key_len, comp_flag, not_used)) >= 0) end=mid; else start=mid+1; } if (mid != start) flag=ha_key_cmp(keyinfo->seg,page+(uint) start*totlength,key,key_len, comp_flag, not_used); if (flag < 0) start++; /* point at next, bigger key */ *ret_pos=page+(uint) start*totlength; *last_key= end == save_end; DBUG_PRINT("exit",("flag: %d keypos: %d",flag,start)); DBUG_RETURN(flag); }
O3
c
mi_bin_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r9d, -0x34(%rbp) movl %r8d, -0x30(%rbp) movq %rcx, -0x50(%rbp) movq %rdx, %rcx movq %rsi, -0x48(%rbp) movzwl 0x12(%rsi), %r15d movzbl (%rdx), %eax xorl %r14d, %r14d movl $0x0, %ebx testb %al, %al jns 0x84797 movq (%rdi), %rdx movl 0x17c(%rdx), %ebx movq 0x20(%rbp), %r12 movq 0x10(%rbp), %r13 addl %ebx, %r15d movzbl 0x1(%rcx), %edx andl $0x7f, %eax shll $0x8, %eax subl %ebx, %eax addl %edx, %eax addl $-0x2, %eax xorl %edx, %edx divl %r15d addl $0x2, %ebx addq %rcx, %rbx decl %eax movl %eax, -0x2c(%rbp) je 0x84836 movq %rbx, -0x40(%rbp) movl %r15d, %ebx xorl %r15d, %r15d movl -0x2c(%rbp), %eax movl %eax, %r12d leal (%r15,%r12), %eax movl %eax, %r13d shrl $0x1f, %r13d addl %eax, %r13d sarl %r13d movq -0x48(%rbp), %rax movq 0x28(%rax), %rdi movl %r13d, %esi imull %ebx, %esi addq -0x40(%rbp), %rsi movq -0x50(%rbp), %rdx movl -0x30(%rbp), %ecx movl -0x34(%rbp), %r8d leaq -0x58(%rbp), %r9 callq 0x9e932 movl %r13d, %r14d testl %eax, %eax jns 0x8481a leal 0x1(%r13), %r15d movl %r12d, %r14d movl %r14d, %r12d cmpl %r14d, %r15d jne 0x847d5 cmpl %r14d, %r13d movl %ebx, %r15d movq -0x40(%rbp), %rbx movq 0x20(%rbp), %r12 movq 0x10(%rbp), %r13 je 0x8485c movq -0x48(%rbp), %rax movq 0x28(%rax), %rdi movl %r14d, %esi imull %r15d, %esi addq %rbx, %rsi leaq -0x58(%rbp), %r9 movq -0x50(%rbp), %rdx movl -0x30(%rbp), %ecx movl -0x34(%rbp), %r8d callq 0x9e932 movl %eax, %ecx shrl $0x1f, %ecx addl %r14d, %ecx imull %r15d, %ecx addq %rcx, %rbx movq %rbx, (%r13) cmpl -0x2c(%rbp), %r14d sete (%r12) addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_mi_bin_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_34], r9d mov [rbp+var_30], r8d mov [rbp+var_50], rcx mov rcx, rdx mov [rbp+var_48], rsi movzx r15d, word ptr [rsi+12h] movzx eax, byte ptr [rdx] xor r14d, r14d mov ebx, 0 test al, al jns short loc_84797 mov rdx, [rdi] mov ebx, [rdx+17Ch] loc_84797: mov r12, [rbp+arg_10] mov r13, [rbp+arg_0] add r15d, ebx movzx edx, byte ptr [rcx+1] and eax, 7Fh shl eax, 8 sub eax, ebx add eax, edx add eax, 0FFFFFFFEh xor edx, edx div r15d add ebx, 2 add rbx, rcx dec eax mov [rbp+var_2C], eax jz short loc_84836 mov [rbp+var_40], rbx mov ebx, r15d xor r15d, r15d mov eax, [rbp+var_2C] mov r12d, eax loc_847D5: lea eax, [r15+r12] mov r13d, eax shr r13d, 1Fh add r13d, eax sar r13d, 1 mov rax, [rbp+var_48] mov rdi, [rax+28h] mov esi, r13d imul esi, ebx add rsi, [rbp+var_40] mov rdx, [rbp+var_50] mov ecx, [rbp+var_30] mov r8d, [rbp+var_34] lea r9, [rbp+var_58] call ha_key_cmp mov r14d, r13d test eax, eax jns short loc_8481A lea r15d, [r13+1] mov r14d, r12d loc_8481A: mov r12d, r14d cmp r15d, r14d jnz short loc_847D5 cmp r13d, r14d mov r15d, ebx mov rbx, [rbp+var_40] mov r12, [rbp+arg_10] mov r13, [rbp+arg_0] jz short loc_8485C loc_84836: mov rax, [rbp+var_48] mov rdi, [rax+28h] mov esi, r14d imul esi, r15d add rsi, rbx lea r9, [rbp+var_58] mov rdx, [rbp+var_50] mov ecx, [rbp+var_30] mov r8d, [rbp+var_34] call ha_key_cmp loc_8485C: mov ecx, eax shr ecx, 1Fh add ecx, r14d imul ecx, r15d add rbx, rcx mov [r13+0], rbx cmp r14d, [rbp+var_2C] setz byte ptr [r12] add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mi_bin_search( long long a1, long long a2, long long a3, long long a4, unsigned int a5, unsigned int a6, _QWORD *a7, int a8, bool *a9) { int v9; // r14d int v10; // ebx bool *v11; // r12 _QWORD *v12; // r13 unsigned int v13; // r15d int v14; // eax long long v15; // rbx unsigned int v16; // ebx int v17; // r15d int v18; // r12d int v19; // r13d long long result; // rax bool v21; // zf char v22[8]; // [rsp+8h] [rbp-58h] BYREF long long v23; // [rsp+10h] [rbp-50h] long long v24; // [rsp+18h] [rbp-48h] long long v25; // [rsp+20h] [rbp-40h] unsigned int v26; // [rsp+2Ch] [rbp-34h] unsigned int v27; // [rsp+30h] [rbp-30h] int v28; // [rsp+34h] [rbp-2Ch] v26 = a6; v27 = a5; v23 = a4; v24 = a2; v9 = 0; v10 = 0; if ( *(char *)a3 < 0 ) v10 = *(_DWORD *)(*(_QWORD *)a1 + 380LL); v11 = a9; v12 = a7; v13 = v10 + *(unsigned __int16 *)(a2 + 18); v14 = (*(unsigned __int8 *)(a3 + 1) + ((unsigned __int8)(*(_BYTE *)a3 & 0x7F) << 8) - v10 - 2) / v13; v15 = a3 + (unsigned int)(v10 + 2); v28 = v14 - 1; if ( v14 == 1 ) goto LABEL_9; v25 = v15; v16 = v13; v17 = 0; v18 = v28; do { v19 = (v17 + v18) / 2; result = ha_key_cmp(*(_QWORD *)(v24 + 40), v25 + v16 * v19, v23, v27, v26, v22); v9 = v19; if ( (int)result < 0 ) { v17 = v19 + 1; v9 = v18; } v18 = v9; } while ( v17 != v9 ); v21 = v19 == v9; v13 = v16; v15 = v25; v11 = a9; v12 = a7; if ( !v21 ) LABEL_9: result = ha_key_cmp(*(_QWORD *)(v24 + 40), v15 + v13 * v9, v23, v27, v26, v22); *v12 = v13 * (v9 + ((unsigned int)result >> 31)) + v15; *v11 = v9 == v28; return result; }
_mi_bin_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV dword ptr [RBP + -0x34],R9D MOV dword ptr [RBP + -0x30],R8D MOV qword ptr [RBP + -0x50],RCX MOV RCX,RDX MOV qword ptr [RBP + -0x48],RSI MOVZX R15D,word ptr [RSI + 0x12] MOVZX EAX,byte ptr [RDX] XOR R14D,R14D MOV EBX,0x0 TEST AL,AL JNS 0x00184797 MOV RDX,qword ptr [RDI] MOV EBX,dword ptr [RDX + 0x17c] LAB_00184797: MOV R12,qword ptr [RBP + 0x20] MOV R13,qword ptr [RBP + 0x10] ADD R15D,EBX MOVZX EDX,byte ptr [RCX + 0x1] AND EAX,0x7f SHL EAX,0x8 SUB EAX,EBX ADD EAX,EDX ADD EAX,-0x2 XOR EDX,EDX DIV R15D ADD EBX,0x2 ADD RBX,RCX DEC EAX MOV dword ptr [RBP + -0x2c],EAX JZ 0x00184836 MOV qword ptr [RBP + -0x40],RBX MOV EBX,R15D XOR R15D,R15D MOV EAX,dword ptr [RBP + -0x2c] MOV R12D,EAX LAB_001847d5: LEA EAX,[R15 + R12*0x1] MOV R13D,EAX SHR R13D,0x1f ADD R13D,EAX SAR R13D,0x1 MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RAX + 0x28] MOV ESI,R13D IMUL ESI,EBX ADD RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x30] MOV R8D,dword ptr [RBP + -0x34] LEA R9,[RBP + -0x58] CALL 0x0019e932 MOV R14D,R13D TEST EAX,EAX JNS 0x0018481a LEA R15D,[R13 + 0x1] MOV R14D,R12D LAB_0018481a: MOV R12D,R14D CMP R15D,R14D JNZ 0x001847d5 CMP R13D,R14D MOV R15D,EBX MOV RBX,qword ptr [RBP + -0x40] MOV R12,qword ptr [RBP + 0x20] MOV R13,qword ptr [RBP + 0x10] JZ 0x0018485c LAB_00184836: MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RAX + 0x28] MOV ESI,R14D IMUL ESI,R15D ADD RSI,RBX LEA R9,[RBP + -0x58] MOV RDX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x30] MOV R8D,dword ptr [RBP + -0x34] CALL 0x0019e932 LAB_0018485c: MOV ECX,EAX SHR ECX,0x1f ADD ECX,R14D IMUL ECX,R15D ADD RBX,RCX MOV qword ptr [R13],RBX CMP R14D,dword ptr [RBP + -0x2c] SETZ byte ptr [R12] ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void _mi_bin_search(long *param_1,long param_2,byte *param_3,int8 param_4,int4 param_5, int4 param_6,int8 *param_7,int8 param_8,int8 param_9) { int iVar1; int iVar2; int iVar3; byte *pbVar4; int iVar5; uint uVar6; int iVar7; int1 local_60 [8]; int8 local_58; long local_50; byte *local_48; int4 local_3c; int4 local_38; int local_34; iVar3 = 0; if ((char)*param_3 < '\0') { iVar3 = *(int *)(*param_1 + 0x17c); } uVar6 = (uint)*(ushort *)(param_2 + 0x12) + iVar3; iVar1 = ((((*param_3 & 0x7f) * 0x100 - iVar3) + (uint)param_3[1]) - 2) / uVar6 - 1; pbVar4 = param_3 + (iVar3 + 2); iVar7 = 0; local_58 = param_4; local_50 = param_2; local_3c = param_6; local_38 = param_5; local_34 = iVar1; if (iVar1 != 0) { iVar7 = 0; local_48 = param_3 + (iVar3 + 2); do { iVar5 = (iVar7 + iVar1) / 2; iVar2 = ha_key_cmp(*(int8 *)(local_50 + 0x28),local_48 + iVar5 * uVar6,local_58,local_38 ,local_3c,local_60); iVar3 = iVar5; if (iVar2 < 0) { iVar7 = iVar5 + 1; iVar3 = iVar1; } iVar1 = iVar3; } while (iVar7 != iVar1); pbVar4 = local_48; iVar7 = iVar1; if (iVar5 == iVar1) goto LAB_0018485c; } iVar2 = ha_key_cmp(*(int8 *)(local_50 + 0x28),pbVar4 + iVar7 * uVar6,local_58,local_38, local_3c,local_60); LAB_0018485c: *param_7 = pbVar4 + (iVar7 - (iVar2 >> 0x1f)) * uVar6; *(bool *)param_9 = iVar7 == local_34; return; }
36,871
lzr_ssh_handle_reponse
xtate/src/probe-modules/lzr-probes/lzr-ssh.c
static unsigned lzr_ssh_handle_reponse(unsigned th_idx, ProbeTarget *target, const unsigned char *px, unsigned sizeof_px, OutItem *item) { if (safe_memismem(px, sizeof_px, "ssh", strlen("ssh")) && !safe_memismem(px, sizeof_px, "not implemented", strlen("not implemented")) && !safe_memismem(px, sizeof_px, "bad", strlen("bad"))) { item->level = OUT_SUCCESS; safe_strcpy(item->classification, OUT_CLS_SIZE, "ssh"); safe_strcpy(item->reason, OUT_RSN_SIZE, "matched"); return 0; } if (safe_memismem(px, sizeof_px, "Protocol mismatch", strlen("Protocol mismatch"))) { item->level = OUT_SUCCESS; safe_strcpy(item->classification, OUT_CLS_SIZE, "ssh"); safe_strcpy(item->reason, OUT_RSN_SIZE, "matched"); return 0; } if (safe_memismem(px, sizeof_px, "MaxStartup", strlen("MaxStartup")) || safe_memismem(px, sizeof_px, "MaxSession", strlen("MaxSession"))) { item->level = OUT_SUCCESS; safe_strcpy(item->classification, OUT_CLS_SIZE, "ssh"); safe_strcpy(item->reason, OUT_RSN_SIZE, "matched"); return 0; } item->level = OUT_FAILURE; safe_strcpy(item->classification, OUT_CLS_SIZE, "not ssh"); safe_strcpy(item->reason, OUT_RSN_SIZE, "not matched"); return 0; }
O3
c
lzr_ssh_handle_reponse: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %rbx movq %rdx, %r12 movl %ecx, %r15d leaq 0x3c0c4(%rip), %r14 # 0x691e2 movl $0x3, %ecx movq %rdx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x512e2 testq %rax, %rax je 0x2d16e leaq 0x3c065(%rip), %rdx # 0x691a2 movl $0xf, %ecx movq %r12, %rdi movq %r15, %rsi callq 0x512e2 testq %rax, %rax jne 0x2d16e leaq 0x3c059(%rip), %rdx # 0x691b2 movl $0x3, %ecx movq %r12, %rdi movq %r15, %rsi callq 0x512e2 testq %rax, %rax je 0x2d1e3 leaq 0x3c041(%rip), %rdx # 0x691b6 movl $0x11, %ecx movq %r12, %rdi movq %r15, %rsi callq 0x512e2 leaq 0x3cfd4(%rip), %r13 # 0x6a160 movl $0x2, %ebp testq %rax, %rax jne 0x2d1ef leaq 0x3c02b(%rip), %rdx # 0x691c8 movl $0xa, %ecx movq %r12, %rdi movq %r15, %rsi callq 0x512e2 testq %rax, %rax jne 0x2d1ef leaq 0x3c01a(%rip), %rdx # 0x691d3 movl $0xa, %ecx movq %r12, %rdi movq %r15, %rsi callq 0x512e2 testq %rax, %rax jne 0x2d1ef leaq 0x3cf35(%rip), %r13 # 0x6a10a leaq 0x3c002(%rip), %r14 # 0x691de movl $0x1, %ebp jmp 0x2d1ef leaq 0x3cf76(%rip), %r13 # 0x6a160 movl $0x2, %ebp movl %ebp, 0x8(%rbx) leaq 0x50(%rbx), %rdi movl $0x1e, %esi movq %r14, %rdx callq 0x51195 addq $0x6e, %rbx movl $0x1e, %esi movq %rbx, %rdi movq %r13, %rdx callq 0x51195 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
lzr_ssh_handle_reponse: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, r8 mov r12, rdx mov r15d, ecx lea r14, aNotSsh+4; "ssh" mov ecx, 3 mov rdi, rdx mov rsi, r15 mov rdx, r14 call safe_memismem test rax, rax jz short loc_2D16E lea rdx, aNotImplemented; "not implemented" mov ecx, 0Fh mov rdi, r12 mov rsi, r15 call safe_memismem test rax, rax jnz short loc_2D16E lea rdx, aBad; "bad" mov ecx, 3 mov rdi, r12 mov rsi, r15 call safe_memismem test rax, rax jz short loc_2D1E3 loc_2D16E: lea rdx, aProtocolMismat; "Protocol mismatch" mov ecx, 11h mov rdi, r12 mov rsi, r15 call safe_memismem lea r13, aProtocolMatche_0+9; "matched" mov ebp, 2 test rax, rax jnz short loc_2D1EF lea rdx, aMaxstartup; "MaxStartup" mov ecx, 0Ah mov rdi, r12 mov rsi, r15 call safe_memismem test rax, rax jnz short loc_2D1EF lea rdx, aMaxsession; "MaxSession" mov ecx, 0Ah mov rdi, r12 mov rsi, r15 call safe_memismem test rax, rax jnz short loc_2D1EF lea r13, aProtocolNotMat+9; "not matched" lea r14, aNotSsh; "not ssh" mov ebp, 1 jmp short loc_2D1EF loc_2D1E3: lea r13, aProtocolMatche_0+9; "matched" mov ebp, 2 loc_2D1EF: mov [rbx+8], ebp lea rdi, [rbx+50h] mov esi, 1Eh mov rdx, r14 call safe_strcpy add rbx, 6Eh ; 'n' mov esi, 1Eh mov rdi, rbx mov rdx, r13 call safe_strcpy xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long lzr_ssh_handle_reponse(long long a1, long long a2, long long a3, unsigned int a4, long long a5) { long long v7; // r15 int v8; // ebp v7 = a4; if ( !safe_memismem(a3, a4, "ssh", 3LL) || safe_memismem(a3, v7, "not implemented", 15LL) || safe_memismem(a3, v7, "bad", 3LL) ) { v8 = 2; if ( !safe_memismem(a3, v7, "Protocol mismatch", 17LL) && !safe_memismem(a3, v7, "MaxStartup", 10LL) && !safe_memismem(a3, v7, "MaxSession", 10LL) ) { v8 = 1; } } else { v8 = 2; } *(_DWORD *)(a5 + 8) = v8; safe_strcpy(a5 + 80, 30LL); safe_strcpy(a5 + 110, 30LL); return 0LL; }
lzr_ssh_handle_reponse: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,R8 MOV R12,RDX MOV R15D,ECX LEA R14,[0x1691e2] MOV ECX,0x3 MOV RDI,RDX MOV RSI,R15 MOV RDX,R14 CALL 0x001512e2 TEST RAX,RAX JZ 0x0012d16e LEA RDX,[0x1691a2] MOV ECX,0xf MOV RDI,R12 MOV RSI,R15 CALL 0x001512e2 TEST RAX,RAX JNZ 0x0012d16e LEA RDX,[0x1691b2] MOV ECX,0x3 MOV RDI,R12 MOV RSI,R15 CALL 0x001512e2 TEST RAX,RAX JZ 0x0012d1e3 LAB_0012d16e: LEA RDX,[0x1691b6] MOV ECX,0x11 MOV RDI,R12 MOV RSI,R15 CALL 0x001512e2 LEA R13,[0x16a160] MOV EBP,0x2 TEST RAX,RAX JNZ 0x0012d1ef LEA RDX,[0x1691c8] MOV ECX,0xa MOV RDI,R12 MOV RSI,R15 CALL 0x001512e2 TEST RAX,RAX JNZ 0x0012d1ef LEA RDX,[0x1691d3] MOV ECX,0xa MOV RDI,R12 MOV RSI,R15 CALL 0x001512e2 TEST RAX,RAX JNZ 0x0012d1ef LEA R13,[0x16a10a] LEA R14,[0x1691de] MOV EBP,0x1 JMP 0x0012d1ef LAB_0012d1e3: LEA R13,[0x16a160] MOV EBP,0x2 LAB_0012d1ef: MOV dword ptr [RBX + 0x8],EBP LEA RDI,[RBX + 0x50] MOV ESI,0x1e MOV RDX,R14 CALL 0x00151195 ADD RBX,0x6e MOV ESI,0x1e MOV RDI,RBX MOV RDX,R13 CALL 0x00151195 XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 lzr_ssh_handle_reponse (int8 param_1,int8 param_2,int8 param_3,int4 param_4,long param_5) { long lVar1; int4 uVar2; char *pcVar3; char *pcVar4; pcVar4 = "ssh"; lVar1 = safe_memismem(param_3,param_4,"ssh",3); if (lVar1 != 0) { lVar1 = safe_memismem(param_3,param_4,"not implemented",0xf); if (lVar1 == 0) { lVar1 = safe_memismem(param_3,param_4,&DAT_001691b2,3); if (lVar1 == 0) { pcVar3 = "matched"; uVar2 = 2; goto LAB_0012d1ef; } } } lVar1 = safe_memismem(param_3,param_4,"Protocol mismatch",0x11); pcVar3 = "matched"; uVar2 = 2; if (lVar1 == 0) { lVar1 = safe_memismem(param_3,param_4,"MaxStartup",10); if (lVar1 == 0) { lVar1 = safe_memismem(param_3,param_4,"MaxSession",10); if (lVar1 == 0) { pcVar3 = "not matched"; pcVar4 = "not ssh"; uVar2 = 1; } } } LAB_0012d1ef: *(int4 *)(param_5 + 8) = uVar2; safe_strcpy(param_5 + 0x50,0x1e,pcVar4); safe_strcpy(param_5 + 0x6e,0x1e,pcVar3); return 0; }
36,872
string_from[abi:cxx11](std::vector<int, std::allocator<int>> const&)
llama.cpp/common/common.cpp
std::string string_from(const std::vector<int> & values) { std::stringstream buf; buf << "[ "; bool first = true; for (auto e : values) { if (first) { first = false; } else { buf << ", "; } buf << std::to_string(e); } buf << " ]"; return buf.str(); }
O3
cpp
string_from[abi:cxx11](std::vector<int, std::allocator<int>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq %rsi, %rbx movq %rdi, 0x28(%rsp) leaq 0x30(%rsp), %rdi callq 0x214c0 leaq 0x40(%rsp), %rdi leaq 0x2ee0a(%rip), %rsi # 0x1261ac movl $0x2, %edx callq 0x22070 movq (%rbx), %r12 movq 0x8(%rbx), %r15 cmpq %r15, %r12 je 0xf74a2 movb $0x1, %al movl $0xd1b71759, %r14d # imm = 0xD1B71759 movl (%r12), %r13d testb $0x1, %al jne 0xf73e2 movl $0x2, %edx leaq 0x40(%rsp), %rdi leaq 0x2f4c4(%rip), %rsi # 0x1268a1 callq 0x22070 movl %r13d, %ebp negl %ebp cmovsl %r13d, %ebp movl $0x1, %ebx cmpl $0xa, %ebp jb 0xf7431 movl $0x4, %ebx movl %ebp, %eax cmpl $0x63, %eax jbe 0xf742a cmpl $0x3e7, %eax # imm = 0x3E7 jbe 0xf742f cmpl $0x2710, %eax # imm = 0x2710 jb 0xf7431 movl %eax, %ecx imulq %r14, %rcx shrq $0x2d, %rcx addl $0x4, %ebx cmpl $0x1869f, %eax # imm = 0x1869F movl %ecx, %eax ja 0xf73fc addl $-0x3, %ebx jmp 0xf7431 addl $-0x2, %ebx jmp 0xf7431 decl %ebx shrl $0x1f, %r13d leal (%rbx,%r13), %esi leaq 0x18(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x8(%rsp), %rdi movl $0x2d, %edx callq 0x219d0 addq 0x8(%rsp), %r13 movq %r13, %rdi movl %ebx, %esi movl %ebp, %edx callq 0x73d5e movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x40(%rsp), %rdi callq 0x22070 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0xf7493 movq 0x18(%rsp), %rsi incq %rsi callq 0x21170 addq $0x4, %r12 xorl %eax, %eax cmpq %r15, %r12 jne 0xf73c4 leaq 0x2ed06(%rip), %rsi # 0x1261af movl $0x2, %edx leaq 0x40(%rsp), %rdi callq 0x22070 movq 0x28(%rsp), %rbx leaq 0x48(%rsp), %rsi movq %rbx, %rdi callq 0x21640 movq 0x6dadf(%rip), %rsi # 0x164fb0 leaq 0x30(%rsp), %rdi callq 0x21d00 leaq 0xb0(%rsp), %rdi callq 0x21c40 movq %rbx, %rax addq $0x1b8, %rsp # imm = 0x1B8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xf7501 jmp 0xf7501 movq %rax, %rbx jmp 0xf752d movq %rax, %rdi callq 0x27a0f movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0xf752d movq 0x18(%rsp), %rsi incq %rsi callq 0x21170 movq 0x6da7c(%rip), %rsi # 0x164fb0 leaq 0x30(%rsp), %rdi callq 0x21d00 leaq 0xb0(%rsp), %rdi callq 0x21c40 movq %rbx, %rdi callq 0x21af0
_Z11string_fromB5cxx11RKSt6vectorIiSaIiEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1B8h mov rbx, rsi mov [rsp+1E8h+var_1C0], rdi lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea rdi, [rsp+1E8h+var_1A8] lea rsi, asc_1261AC; "[ " mov edx, 2 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r12, [rbx] mov r15, [rbx+8] cmp r12, r15 jz loc_F74A2 mov al, 1 mov r14d, 0D1B71759h loc_F73C4: mov r13d, [r12] test al, 1 jnz short loc_F73E2 mov edx, 2 lea rdi, [rsp+1E8h+var_1A8] lea rsi, aZuD+6; ", " call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_F73E2: mov ebp, r13d neg ebp cmovs ebp, r13d mov ebx, 1 cmp ebp, 0Ah jb short loc_F7431 mov ebx, 4 mov eax, ebp loc_F73FC: cmp eax, 63h ; 'c' jbe short loc_F742A cmp eax, 3E7h jbe short loc_F742F cmp eax, 2710h jb short loc_F7431 mov ecx, eax imul rcx, r14 shr rcx, 2Dh add ebx, 4 cmp eax, 1869Fh mov eax, ecx ja short loc_F73FC add ebx, 0FFFFFFFDh jmp short loc_F7431 loc_F742A: add ebx, 0FFFFFFFEh jmp short loc_F7431 loc_F742F: dec ebx loc_F7431: shr r13d, 1Fh lea esi, [rbx+r13] lea rax, [rsp+1E8h+var_1D0] mov [rsp+1E8h+var_1E0], rax lea rdi, [rsp+1E8h+var_1E0] mov edx, 2Dh ; '-' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) add r13, [rsp+1E8h+var_1E0] mov rdi, r13 mov esi, ebx mov edx, ebp call _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint) mov rsi, [rsp+1E8h+var_1E0] mov rdx, [rsp+1E8h+var_1D8] lea rdi, [rsp+1E8h+var_1A8] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, [rsp+1E8h+var_1E0]; void * lea rax, [rsp+1E8h+var_1D0] cmp rdi, rax jz short loc_F7493 mov rsi, [rsp+1E8h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F7493: add r12, 4 xor eax, eax cmp r12, r15 jnz loc_F73C4 loc_F74A2: lea rsi, asc_1261AF; " ]" mov edx, 2 lea rdi, [rsp+1E8h+var_1A8] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rbx, [rsp+1E8h+var_1C0] lea rsi, [rsp+1E8h+var_1A0] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+1E8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, rbx add rsp, 1B8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_F7501 jmp short $+2 loc_F7501: mov rbx, rax jmp short loc_F752D mov rdi, rax call __clang_call_terminate mov rbx, rax mov rdi, [rsp+1E8h+var_1E0]; void * lea rax, [rsp+1E8h+var_1D0] cmp rdi, rax jz short loc_F752D mov rsi, [rsp+1E8h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F752D: mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+1E8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long string_from[abi:cxx11](long long a1, int **a2) { int *v2; // r12 int *v3; // r15 char v4; // al int v5; // r13d unsigned int v6; // ebp int v7; // ebx unsigned int v8; // eax bool v9; // cc unsigned int v10; // r13d long long v11; // rbx void *v13[2]; // [rsp+8h] [rbp-1E0h] BYREF _QWORD v14[2]; // [rsp+18h] [rbp-1D0h] BYREF long long v15; // [rsp+28h] [rbp-1C0h] _BYTE v16[16]; // [rsp+30h] [rbp-1B8h] BYREF char v17[8]; // [rsp+40h] [rbp-1A8h] BYREF char v18[104]; // [rsp+48h] [rbp-1A0h] BYREF char v19[312]; // [rsp+B0h] [rbp-138h] BYREF v15 = a1; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v16); std::__ostream_insert<char,std::char_traits<char>>(v17, "[ ", 2LL); v2 = *a2; v3 = a2[1]; if ( *a2 != v3 ) { v4 = 1; do { v5 = *v2; if ( (v4 & 1) == 0 ) std::__ostream_insert<char,std::char_traits<char>>(v17, ", ", 2LL); v6 = -v5; if ( v5 > 0 ) v6 = v5; v7 = 1; if ( v6 >= 0xA ) { v7 = 4; v8 = v6; while ( 1 ) { if ( v8 <= 0x63 ) { v7 -= 2; goto LABEL_16; } if ( v8 <= 0x3E7 ) break; if ( v8 < 0x2710 ) goto LABEL_16; v7 += 4; v9 = v8 <= 0x1869F; v8 /= 0x2710u; if ( v9 ) { v7 -= 3; goto LABEL_16; } } --v7; } LABEL_16: v10 = (unsigned int)v5 >> 31; v13[0] = v14; std::string::_M_construct(v13, v7 + v10, 45LL); std::__detail::__to_chars_10_impl<unsigned int>((char *)v13[0] + v10, v7, v6); std::__ostream_insert<char,std::char_traits<char>>(v17, v13[0], v13[1]); if ( v13[0] != v14 ) operator delete(v13[0], v14[0] + 1LL); ++v2; v4 = 0; } while ( v2 != v3 ); } std::__ostream_insert<char,std::char_traits<char>>(v17, " ]", 2LL); v11 = v15; std::stringbuf::str(v15, v18); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream( v16, &`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>); std::ios_base::~ios_base((std::ios_base *)v19); return v11; }
string_from[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1b8 MOV RBX,RSI MOV qword ptr [RSP + 0x28],RDI LEA RDI,[RSP + 0x30] CALL 0x001214c0 LEA RDI,[RSP + 0x40] LAB_001f739b: LEA RSI,[0x2261ac] MOV EDX,0x2 CALL 0x00122070 MOV R12,qword ptr [RBX] MOV R15,qword ptr [RBX + 0x8] CMP R12,R15 JZ 0x001f74a2 MOV AL,0x1 MOV R14D,0xd1b71759 LAB_001f73c4: MOV R13D,dword ptr [R12] TEST AL,0x1 JNZ 0x001f73e2 LAB_001f73cc: MOV EDX,0x2 LEA RDI,[RSP + 0x40] LEA RSI,[0x2268a1] CALL 0x00122070 LAB_001f73e2: MOV EBP,R13D NEG EBP CMOVS EBP,R13D MOV EBX,0x1 CMP EBP,0xa JC 0x001f7431 MOV EBX,0x4 MOV EAX,EBP LAB_001f73fc: CMP EAX,0x63 JBE 0x001f742a CMP EAX,0x3e7 JBE 0x001f742f CMP EAX,0x2710 JC 0x001f7431 MOV ECX,EAX IMUL RCX,R14 SHR RCX,0x2d ADD EBX,0x4 CMP EAX,0x1869f MOV EAX,ECX JA 0x001f73fc ADD EBX,-0x3 JMP 0x001f7431 LAB_001f742a: ADD EBX,-0x2 JMP 0x001f7431 LAB_001f742f: DEC EBX LAB_001f7431: SHR R13D,0x1f LEA ESI,[RBX + R13*0x1] LEA RAX,[RSP + 0x18] MOV qword ptr [RSP + 0x8],RAX LAB_001f7443: LEA RDI,[RSP + 0x8] MOV EDX,0x2d CALL 0x001219d0 ADD R13,qword ptr [RSP + 0x8] MOV RDI,R13 MOV ESI,EBX MOV EDX,EBP CALL 0x00173d5e MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_001f746d: LEA RDI,[RSP + 0x40] CALL 0x00122070 MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x001f7493 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00121170 LAB_001f7493: ADD R12,0x4 XOR EAX,EAX CMP R12,R15 JNZ 0x001f73c4 LAB_001f74a2: LEA RSI,[0x2261af] MOV EDX,0x2 LEA RDI,[RSP + 0x40] CALL 0x00122070 MOV RBX,qword ptr [RSP + 0x28] LEA RSI,[RSP + 0x48] MOV RDI,RBX CALL 0x00121640 LAB_001f74ca: MOV RSI,qword ptr [0x00264fb0] LEA RDI,[RSP + 0x30] CALL 0x00121d00 LEA RDI,[RSP + 0xb0] CALL 0x00121c40 MOV RAX,RBX ADD RSP,0x1b8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* string_from[abi:cxx11](std::vector<int, std::allocator<int> > const&) */ vector * string_from_abi_cxx11_(vector *param_1) { uint uVar1; uint *puVar2; uint uVar3; vector *pvVar4; uint uVar5; bool bVar6; uint uVar7; ulong uVar8; uint uVar9; int8 *in_RSI; uint *puVar10; long *local_1e0; long local_1d8; long local_1d0 [2]; vector *local_1c0; stringstream local_1b8 [16]; ostream local_1a8 [112]; ios_base local_138 [264]; local_1c0 = param_1; std::__cxx11::stringstream::stringstream(local_1b8); /* try { // try from 001f739b to 001f73ab has its CatchHandler @ 001f74fd */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,"[ ",2); puVar10 = (uint *)*in_RSI; puVar2 = (uint *)in_RSI[1]; if (puVar10 != puVar2) { bVar6 = true; do { uVar1 = *puVar10; if (!bVar6) { /* try { // try from 001f73cc to 001f73e1 has its CatchHandler @ 001f7501 */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,", ",2); } uVar3 = -uVar1; if (0 < (int)uVar1) { uVar3 = uVar1; } uVar9 = 1; if (9 < uVar3) { uVar8 = (ulong)uVar3; uVar5 = 4; do { uVar9 = uVar5; uVar7 = (uint)uVar8; if (uVar7 < 100) { uVar9 = uVar9 - 2; goto LAB_001f7431; } if (uVar7 < 1000) { uVar9 = uVar9 - 1; goto LAB_001f7431; } if (uVar7 < 10000) goto LAB_001f7431; uVar8 = uVar8 / 10000; uVar5 = uVar9 + 4; } while (99999 < uVar7); uVar9 = uVar9 + 1; } LAB_001f7431: local_1e0 = local_1d0; /* try { // try from 001f7443 to 001f7451 has its CatchHandler @ 001f7506 */ std::__cxx11::string::_M_construct((ulong)&local_1e0,(char)uVar9 - (char)((int)uVar1 >> 0x1f)) ; std::__detail::__to_chars_10_impl<unsigned_int> ((char *)((long)local_1e0 + (ulong)(uVar1 >> 0x1f)),uVar9,uVar3); /* try { // try from 001f746d to 001f7476 has its CatchHandler @ 001f750e */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,(char *)local_1e0,local_1d8); if (local_1e0 != local_1d0) { operator_delete(local_1e0,local_1d0[0] + 1); } puVar10 = puVar10 + 1; bVar6 = false; } while (puVar10 != puVar2); } /* try { // try from 001f74a2 to 001f74c9 has its CatchHandler @ 001f74ff */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8," ]",2); pvVar4 = local_1c0; std::__cxx11::stringbuf::str(); std::__cxx11::stringstream::~stringstream(local_1b8); std::ios_base::~ios_base(local_138); return pvVar4; }
36,873
VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(VkInstance_T*, char const*)
HansKristian-Work[P]pyroveil/layer/pyroveil.cpp
static VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(VkInstance instance, const char *pName) { auto proc = interceptCoreInstanceCommand(pName); if (proc) return proc; Instance *layer; { std::lock_guard<std::mutex> holder{globalLock}; layer = getLayerData(getDispatchKey(instance), instanceData); } proc = layer->getProcAddr(pName); // If the underlying implementation returns nullptr, we also need to return nullptr. // This means we never expose wrappers which will end up dispatching into nullptr. if (proc && (layer->active || strcmp(pName, "vkDestroyDevice") == 0)) { auto wrapped_proc = interceptDeviceCommand(pName); if (wrapped_proc) proc = wrapped_proc; } return proc; }
O0
cpp
VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(VkInstance_T*, char const*): pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rdi callq 0x186af0 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x186921 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x1869dd leaq 0xb67c10(%rip), %rsi # 0xcee538 leaq -0x30(%rbp), %rdi callq 0x174240 movq -0x10(%rbp), %rdi callq 0x186bf0 movq %rax, -0x50(%rbp) jmp 0x186940 movq -0x50(%rbp), %rdi leaq 0xb67b7d(%rip), %rsi # 0xcee4c8 callq 0x186b80 movq %rax, -0x58(%rbp) jmp 0x186956 movq -0x58(%rbp), %rax movq %rax, -0x28(%rbp) leaq -0x30(%rbp), %rdi callq 0x16ecb0 movq -0x28(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x194c90 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x1869d5 movq -0x28(%rbp), %rax testb $0x1, 0x78(%rax) jne 0x18699e movq -0x18(%rbp), %rdi leaq 0x763d3c(%rip), %rsi # 0x8ea6d0 callq 0x176050 cmpl $0x0, %eax jne 0x1869d5 movq -0x18(%rbp), %rdi callq 0x186c10 movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) je 0x1869d3 movq -0x48(%rbp), %rax movq %rax, -0x20(%rbp) jmp 0x1869d3 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) leaq -0x30(%rbp), %rdi callq 0x16ecb0 jmp 0x1869e7 jmp 0x1869d5 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x60, %rsp popq %rbp retq movq -0x38(%rbp), %rdi callq 0x171c30
_ZL39VK_LAYER_PYROVEIL_vkGetInstanceProcAddrP12VkInstance_TPKc: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_18]; char * call _ZL28interceptCoreInstanceCommandPKc; interceptCoreInstanceCommand(char const*) mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_186921 mov rax, [rbp+var_20] mov [rbp+var_8], rax jmp loc_1869DD loc_186921: lea rsi, _ZL10globalLock; globalLock lea rdi, [rbp+var_30] call __ZNSt10lock_guardISt5mutexEC2ERS0_; std::lock_guard<std::mutex>::lock_guard(std::mutex&) mov rdi, [rbp+var_10]; void * call _ZL14getDispatchKeyPv; getDispatchKey(void *) mov [rbp+var_50], rax jmp short $+2 loc_186940: mov rdi, [rbp+var_50] lea rsi, _ZL12instanceData; instanceData call _ZL12getLayerDataI8InstanceEPT_PvRKSt13unordered_mapIS3_St10unique_ptrIS1_St14default_deleteIS1_EESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S8_EEE; getLayerData<Instance>(void *,std::unordered_map<void *,std::unique_ptr<Instance>> const&) mov [rbp+var_58], rax jmp short $+2 loc_186956: mov rax, [rbp+var_58] mov [rbp+var_28], rax lea rdi, [rbp+var_30] call __ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() mov rdi, [rbp+var_28]; this mov rsi, [rbp+var_18]; char * call _ZNK8Instance11getProcAddrEPKc; Instance::getProcAddr(char const*) mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_1869D5 mov rax, [rbp+var_28] test byte ptr [rax+78h], 1 jnz short loc_18699E mov rdi, [rbp+var_18] lea rsi, aVkdestroydevic; "vkDestroyDevice" call _strcmp cmp eax, 0 jnz short loc_1869D5 loc_18699E: mov rdi, [rbp+var_18]; char * call _ZL22interceptDeviceCommandPKc; interceptDeviceCommand(char const*) mov [rbp+var_48], rax cmp [rbp+var_48], 0 jz short loc_1869D3 mov rax, [rbp+var_48] mov [rbp+var_20], rax jmp short loc_1869D3 mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax lea rdi, [rbp+var_30] call __ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() jmp short loc_1869E7 loc_1869D3: jmp short $+2 loc_1869D5: mov rax, [rbp+var_20] mov [rbp+var_8], rax loc_1869DD: mov rax, [rbp+var_8] add rsp, 60h pop rbp retn loc_1869E7: mov rdi, [rbp+var_38] call __Unwind_Resume
long long VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(void *a1, char *a2) { long long DispatchKey; // [rsp+10h] [rbp-50h] long long v4; // [rsp+18h] [rbp-48h] _BYTE v5[8]; // [rsp+30h] [rbp-30h] BYREF Instance *Layer; // [rsp+38h] [rbp-28h] long long ProcAddr; // [rsp+40h] [rbp-20h] char *v8; // [rsp+48h] [rbp-18h] void *v9; // [rsp+50h] [rbp-10h] v9 = a1; v8 = a2; ProcAddr = interceptCoreInstanceCommand(a2); if ( ProcAddr ) return ProcAddr; std::lock_guard<std::mutex>::lock_guard(v5, &globalLock); DispatchKey = getDispatchKey(v9); Layer = (Instance *)getLayerData<Instance>(DispatchKey, &instanceData); std::lock_guard<std::mutex>::~lock_guard(v5); ProcAddr = Instance::getProcAddr(Layer, v8); if ( ProcAddr && ((*((_BYTE *)Layer + 120) & 1) != 0 || !(unsigned int)strcmp(v8, "vkDestroyDevice")) ) { v4 = interceptDeviceCommand(v8); if ( v4 ) return v4; } return ProcAddr; }
36,874
VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(VkInstance_T*, char const*)
HansKristian-Work[P]pyroveil/layer/pyroveil.cpp
static VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(VkInstance instance, const char *pName) { auto proc = interceptCoreInstanceCommand(pName); if (proc) return proc; Instance *layer; { std::lock_guard<std::mutex> holder{globalLock}; layer = getLayerData(getDispatchKey(instance), instanceData); } proc = layer->getProcAddr(pName); // If the underlying implementation returns nullptr, we also need to return nullptr. // This means we never expose wrappers which will end up dispatching into nullptr. if (proc && (layer->active || strcmp(pName, "vkDestroyDevice") == 0)) { auto wrapped_proc = interceptDeviceCommand(pName); if (wrapped_proc) proc = wrapped_proc; } return proc; }
O2
cpp
VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(VkInstance_T*, char const*): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %rbx movq %rdi, %r15 xorl %r14d, %r14d leaq 0x49fbf2(%rip), %r12 # 0x54a7d0 cmpq $0xa8, %r14 je 0xaac05 movq (%r14,%r12), %rdi movq %rbx, %rsi callq 0xa4260 addq $0x18, %r14 testl %eax, %eax jne 0xaabde movq -0x10(%r14,%r12), %r14 testq %r14, %r14 jne 0xaac68 leaq 0x50bd3c(%rip), %rdi # 0x5b6948 callq 0xa5b90 movq (%r15), %rdi callq 0xaad31 movq %rax, %r15 leaq 0x50bd25(%rip), %rdi # 0x5b6948 callq 0xa2180 movq (%r15), %rdi movq %rbx, %rsi callq *0x30(%r15) testq %rax, %rax je 0xaac65 movq %rax, %r14 cmpb $0x0, 0x78(%r15) jne 0xaac54 leaq 0x2bcaf0(%rip), %rsi # 0x367738 movq %rbx, %rdi callq 0xa4260 testl %eax, %eax jne 0xaac68 movq %rbx, %rdi callq 0xaad5f testq %rax, %rax cmovneq %rax, %r14 jmp 0xaac68 xorl %r14d, %r14d movq %r14, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x50bcca(%rip), %rdi # 0x5b6948 callq 0xa2180 movq %rbx, %rdi callq 0xa55e0
_ZL39VK_LAYER_PYROVEIL_vkGetInstanceProcAddrP12VkInstance_TPKc: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rsi mov r15, rdi xor r14d, r14d lea r12, _ZZL28interceptCoreInstanceCommandPKcE20coreInstanceCommands; interceptCoreInstanceCommand(char const*)::coreInstanceCommands loc_AABDE: cmp r14, 0A8h jz short loc_AAC05 mov rdi, [r14+r12] mov rsi, rbx call _strcmp add r14, 18h test eax, eax jnz short loc_AABDE mov r14, [r14+r12-10h] test r14, r14 jnz short loc_AAC68 loc_AAC05: lea rdi, _ZL10globalLock; this call __ZNSt5mutex4lockEv; std::mutex::lock(void) mov rdi, [r15] call _ZL12getLayerDataI8InstanceEPT_PvRKSt13unordered_mapIS3_St10unique_ptrIS1_St14default_deleteIS1_EESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S8_EEE; getLayerData<Instance>(void *,std::unordered_map<void *,std::unique_ptr<Instance>> const&) mov r15, rax lea rdi, _ZL10globalLock; globalLock call _pthread_mutex_unlock mov rdi, [r15] mov rsi, rbx call qword ptr [r15+30h] test rax, rax jz short loc_AAC65 mov r14, rax cmp byte ptr [r15+78h], 0 jnz short loc_AAC54 lea rsi, aVkdestroydevic; "vkDestroyDevice" mov rdi, rbx call _strcmp test eax, eax jnz short loc_AAC68 loc_AAC54: mov rdi, rbx; char * call _ZL22interceptDeviceCommandPKc; interceptDeviceCommand(char const*) test rax, rax cmovnz r14, rax jmp short loc_AAC68 loc_AAC65: xor r14d, r14d loc_AAC68: mov rax, r14 pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, _ZL10globalLock; globalLock call _pthread_mutex_unlock mov rdi, rbx call __Unwind_Resume
char * VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(_QWORD *a1, const char *a2) { long long v2; // r14 int v3; // eax char *v4; // r14 long long Layer; // r15 long long v6; // rax long long v7; // rax v2 = 0LL; while ( v2 != 21 ) { v3 = strcmp((&interceptCoreInstanceCommand(char const*)::coreInstanceCommands)[v2], a2); v2 += 3LL; if ( !v3 ) { v4 = (&interceptCoreInstanceCommand(char const*)::coreInstanceCommands)[v2 - 2]; if ( v4 ) return v4; break; } } std::mutex::lock((std::mutex *)&globalLock); Layer = getLayerData<Instance>(*a1); pthread_mutex_unlock(&globalLock); v6 = (*(long long ( **)(_QWORD, const char *))(Layer + 48))(*(_QWORD *)Layer, a2); if ( !v6 ) return 0LL; v4 = (char *)v6; if ( *(_BYTE *)(Layer + 120) || !(unsigned int)strcmp(a2, "vkDestroyDevice") ) { v7 = interceptDeviceCommand(a2); if ( v7 ) return (char *)v7; } return v4; }
VK_LAYER_PYROVEIL_vkGetInstanceProcAddr: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RSI MOV R15,RDI XOR R14D,R14D LEA R12,[0x64a7d0] LAB_001aabde: CMP R14,0xa8 JZ 0x001aac05 MOV RDI,qword ptr [R14 + R12*0x1] MOV RSI,RBX CALL 0x001a4260 ADD R14,0x18 TEST EAX,EAX JNZ 0x001aabde MOV R14,qword ptr [R14 + R12*0x1 + -0x10] TEST R14,R14 JNZ 0x001aac68 LAB_001aac05: LEA RDI,[0x6b6948] CALL 0x001a5b90 MOV RDI,qword ptr [R15] LAB_001aac14: CALL 0x001aad31 LAB_001aac19: MOV R15,RAX LEA RDI,[0x6b6948] CALL 0x001a2180 MOV RDI,qword ptr [R15] MOV RSI,RBX CALL qword ptr [R15 + 0x30] TEST RAX,RAX JZ 0x001aac65 MOV R14,RAX CMP byte ptr [R15 + 0x78],0x0 JNZ 0x001aac54 LEA RSI,[0x467738] MOV RDI,RBX CALL 0x001a4260 TEST EAX,EAX JNZ 0x001aac68 LAB_001aac54: MOV RDI,RBX CALL 0x001aad5f TEST RAX,RAX CMOVNZ R14,RAX JMP 0x001aac68 LAB_001aac65: XOR R14D,R14D LAB_001aac68: MOV RAX,R14 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(VkInstance_T*, char const*) */ long VK_LAYER_PYROVEIL_vkGetInstanceProcAddr(VkInstance_T *param_1,char *param_2) { int iVar1; Instance *pIVar2; long lVar3; long lVar4; unordered_map *puVar5; puVar5 = (unordered_map *)param_2; lVar3 = 0; do { lVar4 = lVar3; if (lVar4 == 0xa8) goto LAB_001aac05; puVar5 = (unordered_map *)param_2; iVar1 = strcmp(*(char **)((long)&interceptCoreInstanceCommand(char_const*)::coreInstanceCommands + lVar4),param_2); lVar3 = lVar4 + 0x18; } while (iVar1 != 0); lVar3 = *(long *)((long)&PTR_CreateInstance_0064a7d8 + lVar4); if (*(long *)((long)&PTR_CreateInstance_0064a7d8 + lVar4) == 0) { LAB_001aac05: std::mutex::lock((mutex *)globalLock); /* try { // try from 001aac14 to 001aac18 has its CatchHandler @ 001aac74 */ pIVar2 = getLayerData<Instance>(*(void **)param_1,puVar5); pthread_mutex_unlock((pthread_mutex_t *)globalLock); lVar3 = (**(code **)(pIVar2 + 0x30))(*(int8 *)pIVar2,param_2); if (lVar3 == 0) { lVar3 = 0; } else if (((pIVar2[0x78] != (Instance)0x0) || (iVar1 = strcmp(param_2,"vkDestroyDevice"), iVar1 == 0)) && (lVar4 = interceptDeviceCommand(param_2), lVar4 != 0)) { lVar3 = lVar4; } } return lVar3; }
36,875
maria_ft_simple_get_word
eloqsql/storage/maria/ma_ft_parser.c
uchar maria_ft_simple_get_word(CHARSET_INFO *cs, uchar **start, const uchar *end, FT_WORD *word, my_bool skip_stopwords) { uchar *doc= *start; uint mwc, length; int ctype, mbl; DBUG_ENTER("maria_ft_simple_get_word"); do { for (;; doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) { if (doc >= end) DBUG_RETURN(0); mbl= my_ci_ctype(cs, &ctype, doc, end); if (true_word_char(ctype, *doc)) break; } mwc= length= 0; for (word->pos= doc; doc < end; length++, doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) { mbl= my_ci_ctype(cs, &ctype, doc, end); if (true_word_char(ctype, *doc)) mwc= 0; else if (!misc_word_char(*doc) || mwc) break; else mwc++; } word->len= (uint)(doc-word->pos) - mwc; if (skip_stopwords == FALSE || (length >= ft_min_word_len && length < ft_max_word_len && !is_stopword((char *) word->pos, word->len))) { *start= doc; DBUG_RETURN(1); } } while (doc < end); DBUG_RETURN(0); }
O0
c
maria_ft_simple_get_word: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movb %al, -0x29(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) jmp 0x4162b movq -0x38(%rbp), %rax cmpq -0x20(%rbp), %rax jb 0x41640 jmp 0x41637 movb $0x0, -0x1(%rbp) jmp 0x41801 movq -0x10(%rbp), %rax movq 0xb8(%rax), %rax movq 0x38(%rax), %rax movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rdx movq -0x20(%rbp), %rcx leaq -0x44(%rbp), %rsi callq *%rax movl %eax, -0x48(%rbp) movl -0x44(%rbp), %eax andl $0x7, %eax cmpl $0x0, %eax jne 0x4167b movq -0x38(%rbp), %rax movzbl (%rax), %eax cmpl $0x5f, %eax jne 0x4167d jmp 0x416c3 jmp 0x4167f cmpl $0x0, -0x48(%rbp) jle 0x4168d movl -0x48(%rbp), %eax movl %eax, -0x4c(%rbp) jmp 0x416ad cmpl $0x0, -0x48(%rbp) jge 0x4169d xorl %eax, %eax subl -0x48(%rbp), %eax movl %eax, -0x50(%rbp) jmp 0x416a7 movl $0x1, %eax movl %eax, -0x50(%rbp) jmp 0x416a7 movl -0x50(%rbp), %eax movl %eax, -0x4c(%rbp) movl -0x4c(%rbp), %ecx movq -0x38(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) jmp 0x4162b movl $0x0, -0x40(%rbp) movl $0x0, -0x3c(%rbp) movq -0x38(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x4177f movq -0x10(%rbp), %rax movq 0xb8(%rax), %rax movq 0x38(%rax), %rax movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rdx movq -0x20(%rbp), %rcx leaq -0x44(%rbp), %rsi callq *%rax movl %eax, -0x48(%rbp) movl -0x44(%rbp), %eax andl $0x7, %eax cmpl $0x0, %eax jne 0x41725 movq -0x38(%rbp), %rax movzbl (%rax), %eax cmpl $0x5f, %eax jne 0x4172e movl $0x0, -0x3c(%rbp) jmp 0x41730 jmp 0x4177f jmp 0x41732 movl -0x40(%rbp), %eax addl $0x1, %eax movl %eax, -0x40(%rbp) cmpl $0x0, -0x48(%rbp) jle 0x41749 movl -0x48(%rbp), %eax movl %eax, -0x54(%rbp) jmp 0x41769 cmpl $0x0, -0x48(%rbp) jge 0x41759 xorl %eax, %eax subl -0x48(%rbp), %eax movl %eax, -0x58(%rbp) jmp 0x41763 movl $0x1, %eax movl %eax, -0x58(%rbp) jmp 0x41763 movl -0x58(%rbp), %eax movl %eax, -0x54(%rbp) movl -0x54(%rbp), %ecx movq -0x38(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) jmp 0x416dc movq -0x38(%rbp), %rax movq -0x28(%rbp), %rcx movq (%rcx), %rcx subq %rcx, %rax movl %eax, %ecx subl -0x3c(%rbp), %ecx movq -0x28(%rbp), %rax movl %ecx, 0x8(%rax) movsbl -0x29(%rbp), %eax cmpl $0x0, %eax je 0x417da movl -0x40(%rbp), %eax leaq 0x2b2214(%rip), %rcx # 0x2f39c0 cmpq (%rcx), %rax jb 0x417eb movl -0x40(%rbp), %eax leaq 0x2b220d(%rip), %rcx # 0x2f39c8 cmpq (%rcx), %rax jae 0x417eb movq -0x28(%rbp), %rax movq (%rax), %rdi movq -0x28(%rbp), %rax movl 0x8(%rax), %eax movl %eax, %esi callq 0xc1570 cmpl $0x0, %eax jne 0x417eb movq -0x38(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movb $0x1, -0x1(%rbp) jmp 0x41801 jmp 0x417ed movq -0x38(%rbp), %rax cmpq -0x20(%rbp), %rax jb 0x41629 jmp 0x417fd movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x60, %rsp popq %rbp retq nopw (%rax,%rax)
maria_ft_simple_get_word: push rbp mov rbp, rsp sub rsp, 60h mov al, r8b mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_29], al mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_38], rax loc_41629: jmp short $+2 loc_4162B: mov rax, [rbp+var_38] cmp rax, [rbp+var_20] jb short loc_41640 jmp short $+2 loc_41637: mov [rbp+var_1], 0 jmp loc_41801 loc_41640: mov rax, [rbp+var_10] mov rax, [rax+0B8h] mov rax, [rax+38h] mov rdi, [rbp+var_10] mov rdx, [rbp+var_38] mov rcx, [rbp+var_20] lea rsi, [rbp+var_44] call rax mov [rbp+var_48], eax mov eax, [rbp+var_44] and eax, 7 cmp eax, 0 jnz short loc_4167B mov rax, [rbp+var_38] movzx eax, byte ptr [rax] cmp eax, 5Fh ; '_' jnz short loc_4167D loc_4167B: jmp short loc_416C3 loc_4167D: jmp short $+2 loc_4167F: cmp [rbp+var_48], 0 jle short loc_4168D mov eax, [rbp+var_48] mov [rbp+var_4C], eax jmp short loc_416AD loc_4168D: cmp [rbp+var_48], 0 jge short loc_4169D xor eax, eax sub eax, [rbp+var_48] mov [rbp+var_50], eax jmp short loc_416A7 loc_4169D: mov eax, 1 mov [rbp+var_50], eax jmp short $+2 loc_416A7: mov eax, [rbp+var_50] mov [rbp+var_4C], eax loc_416AD: mov ecx, [rbp+var_4C] mov rax, [rbp+var_38] movsxd rcx, ecx add rax, rcx mov [rbp+var_38], rax jmp loc_4162B loc_416C3: mov [rbp+var_40], 0 mov [rbp+var_3C], 0 mov rcx, [rbp+var_38] mov rax, [rbp+var_28] mov [rax], rcx loc_416DC: mov rax, [rbp+var_38] cmp rax, [rbp+var_20] jnb loc_4177F mov rax, [rbp+var_10] mov rax, [rax+0B8h] mov rax, [rax+38h] mov rdi, [rbp+var_10] mov rdx, [rbp+var_38] mov rcx, [rbp+var_20] lea rsi, [rbp+var_44] call rax mov [rbp+var_48], eax mov eax, [rbp+var_44] and eax, 7 cmp eax, 0 jnz short loc_41725 mov rax, [rbp+var_38] movzx eax, byte ptr [rax] cmp eax, 5Fh ; '_' jnz short loc_4172E loc_41725: mov [rbp+var_3C], 0 jmp short loc_41730 loc_4172E: jmp short loc_4177F loc_41730: jmp short $+2 loc_41732: mov eax, [rbp+var_40] add eax, 1 mov [rbp+var_40], eax cmp [rbp+var_48], 0 jle short loc_41749 mov eax, [rbp+var_48] mov [rbp+var_54], eax jmp short loc_41769 loc_41749: cmp [rbp+var_48], 0 jge short loc_41759 xor eax, eax sub eax, [rbp+var_48] mov [rbp+var_58], eax jmp short loc_41763 loc_41759: mov eax, 1 mov [rbp+var_58], eax jmp short $+2 loc_41763: mov eax, [rbp+var_58] mov [rbp+var_54], eax loc_41769: mov ecx, [rbp+var_54] mov rax, [rbp+var_38] movsxd rcx, ecx add rax, rcx mov [rbp+var_38], rax jmp loc_416DC loc_4177F: mov rax, [rbp+var_38] mov rcx, [rbp+var_28] mov rcx, [rcx] sub rax, rcx mov ecx, eax sub ecx, [rbp+var_3C] mov rax, [rbp+var_28] mov [rax+8], ecx movsx eax, [rbp+var_29] cmp eax, 0 jz short loc_417DA mov eax, [rbp+var_40] lea rcx, ft_min_word_len cmp rax, [rcx] jb short loc_417EB mov eax, [rbp+var_40] lea rcx, ft_max_word_len cmp rax, [rcx] jnb short loc_417EB mov rax, [rbp+var_28] mov rdi, [rax] mov rax, [rbp+var_28] mov eax, [rax+8] mov esi, eax call is_stopword cmp eax, 0 jnz short loc_417EB loc_417DA: mov rcx, [rbp+var_38] mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_1], 1 jmp short loc_41801 loc_417EB: jmp short $+2 loc_417ED: mov rax, [rbp+var_38] cmp rax, [rbp+var_20] jb loc_41629 jmp short $+2 loc_417FD: mov [rbp+var_1], 0 loc_41801: mov al, [rbp+var_1] add rsp, 60h pop rbp retn
char maria_ft_simple_get_word(long long a1, _BYTE **a2, unsigned long long a3, long long a4, char a5) { int v6; // [rsp+8h] [rbp-58h] int v7; // [rsp+Ch] [rbp-54h] int v8; // [rsp+10h] [rbp-50h] int v9; // [rsp+14h] [rbp-4Ch] int v10; // [rsp+18h] [rbp-48h] int v11; // [rsp+18h] [rbp-48h] int v12; // [rsp+1Ch] [rbp-44h] BYREF unsigned int v13; // [rsp+20h] [rbp-40h] int v14; // [rsp+24h] [rbp-3Ch] _BYTE *v15; // [rsp+28h] [rbp-38h] char v16; // [rsp+37h] [rbp-29h] long long v17; // [rsp+38h] [rbp-28h] unsigned long long v18; // [rsp+40h] [rbp-20h] _QWORD *v19; // [rsp+48h] [rbp-18h] long long v20; // [rsp+50h] [rbp-10h] v20 = a1; v19 = a2; v18 = a3; v17 = a4; v16 = a5; v15 = *a2; do { while ( 1 ) { if ( (unsigned long long)v15 >= v18 ) return 0; v10 = (*(long long ( **)(long long, int *, _BYTE *, unsigned long long))(*(_QWORD *)(v20 + 184) + 56LL))( v20, &v12, v15, v18); if ( (v12 & 7) != 0 || *v15 == 95 ) break; if ( v10 <= 0 ) { if ( v10 >= 0 ) v8 = 1; else v8 = -v10; v9 = v8; } else { v9 = v10; } v15 += v9; } v13 = 0; v14 = 0; *(_QWORD *)v17 = v15; while ( (unsigned long long)v15 < v18 ) { v11 = (*(long long ( **)(long long, int *, _BYTE *, unsigned long long))(*(_QWORD *)(v20 + 184) + 56LL))( v20, &v12, v15, v18); if ( (v12 & 7) == 0 && *v15 != 95 ) break; v14 = 0; ++v13; if ( v11 <= 0 ) { if ( v11 >= 0 ) v6 = 1; else v6 = -v11; v7 = v6; } else { v7 = v11; } v15 += v7; } *(_DWORD *)(v17 + 8) = (_DWORD)v15 - *(_QWORD *)v17 - v14; if ( !v16 || (unsigned long long)v13 >= ft_min_word_len && (unsigned long long)v13 < ft_max_word_len && !(unsigned int)is_stopword(*(_QWORD *)v17, *(unsigned int *)(v17 + 8)) ) { *v19 = v15; return 1; } } while ( (unsigned long long)v15 < v18 ); return 0; }
maria_ft_simple_get_word: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV AL,R8B MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV byte ptr [RBP + -0x29],AL MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX LAB_00141629: JMP 0x0014162b LAB_0014162b: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x20] JC 0x00141640 JMP 0x00141637 LAB_00141637: MOV byte ptr [RBP + -0x1],0x0 JMP 0x00141801 LAB_00141640: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x38] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x44] CALL RAX MOV dword ptr [RBP + -0x48],EAX MOV EAX,dword ptr [RBP + -0x44] AND EAX,0x7 CMP EAX,0x0 JNZ 0x0014167b MOV RAX,qword ptr [RBP + -0x38] MOVZX EAX,byte ptr [RAX] CMP EAX,0x5f JNZ 0x0014167d LAB_0014167b: JMP 0x001416c3 LAB_0014167d: JMP 0x0014167f LAB_0014167f: CMP dword ptr [RBP + -0x48],0x0 JLE 0x0014168d MOV EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x4c],EAX JMP 0x001416ad LAB_0014168d: CMP dword ptr [RBP + -0x48],0x0 JGE 0x0014169d XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x50],EAX JMP 0x001416a7 LAB_0014169d: MOV EAX,0x1 MOV dword ptr [RBP + -0x50],EAX JMP 0x001416a7 LAB_001416a7: MOV EAX,dword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x4c],EAX LAB_001416ad: MOV ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x38] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX JMP 0x0014162b LAB_001416c3: MOV dword ptr [RBP + -0x40],0x0 MOV dword ptr [RBP + -0x3c],0x0 MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX LAB_001416dc: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x20] JNC 0x0014177f MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x38] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x44] CALL RAX MOV dword ptr [RBP + -0x48],EAX MOV EAX,dword ptr [RBP + -0x44] AND EAX,0x7 CMP EAX,0x0 JNZ 0x00141725 MOV RAX,qword ptr [RBP + -0x38] MOVZX EAX,byte ptr [RAX] CMP EAX,0x5f JNZ 0x0014172e LAB_00141725: MOV dword ptr [RBP + -0x3c],0x0 JMP 0x00141730 LAB_0014172e: JMP 0x0014177f LAB_00141730: JMP 0x00141732 LAB_00141732: MOV EAX,dword ptr [RBP + -0x40] ADD EAX,0x1 MOV dword ptr [RBP + -0x40],EAX CMP dword ptr [RBP + -0x48],0x0 JLE 0x00141749 MOV EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x54],EAX JMP 0x00141769 LAB_00141749: CMP dword ptr [RBP + -0x48],0x0 JGE 0x00141759 XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x58],EAX JMP 0x00141763 LAB_00141759: MOV EAX,0x1 MOV dword ptr [RBP + -0x58],EAX JMP 0x00141763 LAB_00141763: MOV EAX,dword ptr [RBP + -0x58] MOV dword ptr [RBP + -0x54],EAX LAB_00141769: MOV ECX,dword ptr [RBP + -0x54] MOV RAX,qword ptr [RBP + -0x38] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX JMP 0x001416dc LAB_0014177f: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RCX] SUB RAX,RCX MOV ECX,EAX SUB ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x8],ECX MOVSX EAX,byte ptr [RBP + -0x29] CMP EAX,0x0 JZ 0x001417da MOV EAX,dword ptr [RBP + -0x40] LEA RCX,[0x3f39c0] CMP RAX,qword ptr [RCX] JC 0x001417eb MOV EAX,dword ptr [RBP + -0x40] LEA RCX,[0x3f39c8] CMP RAX,qword ptr [RCX] JNC 0x001417eb MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x8] MOV ESI,EAX CALL 0x001c1570 CMP EAX,0x0 JNZ 0x001417eb LAB_001417da: MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV byte ptr [RBP + -0x1],0x1 JMP 0x00141801 LAB_001417eb: JMP 0x001417ed LAB_001417ed: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x20] JC 0x00141629 JMP 0x001417fd LAB_001417fd: MOV byte ptr [RBP + -0x1],0x0 LAB_00141801: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x60 POP RBP RET
int1 maria_ft_simple_get_word (long param_1,int8 *param_2,char *param_3,int8 *param_4,char param_5) { int iVar1; int local_60; int local_5c; int local_58; int local_54; uint local_4c; uint local_48; int local_44; char *local_40; char local_31; int8 *local_30; char *local_28; int8 *local_20; long local_18; local_40 = (char *)*param_2; local_31 = param_5; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; while( true ) { while( true ) { if (local_28 <= local_40) { return 0; } local_54 = (**(code **)(*(long *)(local_18 + 0xb8) + 0x38)) (local_18,&local_4c,local_40,local_28); if (((local_4c & 7) != 0) || (*local_40 == '_')) break; if (local_54 < 1) { if (local_54 < 0) { local_58 = -local_54; } else { local_58 = 1; } local_54 = local_58; } local_40 = local_40 + local_54; } local_48 = 0; *local_30 = local_40; while ((local_44 = 0, local_40 < local_28 && ((local_5c = (**(code **)(*(long *)(local_18 + 0xb8) + 0x38)) (local_18,&local_4c,local_40,local_28), (local_4c & 7) != 0 || (*local_40 == '_'))))) { local_48 = local_48 + 1; if (local_5c < 1) { if (local_5c < 0) { local_60 = -local_5c; } else { local_60 = 1; } local_5c = local_60; } local_40 = local_40 + local_5c; } *(int *)(local_30 + 1) = ((int)local_40 - (int)*local_30) - local_44; if ((local_31 == '\0') || (((ft_min_word_len <= local_48 && (local_48 < ft_max_word_len)) && (iVar1 = is_stopword(*local_30,*(int4 *)(local_30 + 1)), iVar1 == 0)))) break; if (local_28 <= local_40) { return 0; } } *local_20 = local_40; return 1; }
36,876
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>>>>>::get_token_string() const
monkey531[P]llama/common/./json.hpp
std::string get_token_string() const { // escape control characters std::string result; for (const auto c : token_string) { if (static_cast<unsigned char>(c) <= '\x1F') { // escape control characters std::array<char, 9> cs{{}}; static_cast<void>((std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg) result += cs.data(); } else { // add character as is result.push_back(static_cast<std::string::value_type>(c)); } } return result; }
O2
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>>>>>::get_token_string() const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) andq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq 0x38(%rsi), %r13 movq 0x40(%rsi), %rbp leaq 0x5a880(%rip), %r14 # 0x9ceea leaq 0x8(%rsp), %r15 pushq $0x9 popq %r12 cmpq %rbp, %r13 je 0x426ba movzbl (%r13), %ecx cmpl $0x1f, %ecx ja 0x426aa movb $0x0, 0x10(%rsp) andq $0x0, 0x8(%rsp) movq %r15, %rdi movq %r12, %rsi movq %r14, %rdx xorl %eax, %eax callq 0x20a70 movq %rbx, %rdi movq %r15, %rsi callq 0x20cc0 jmp 0x426b5 movsbl %cl, %esi movq %rbx, %rdi callq 0x205c0 incq %r13 jmp 0x42673 movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x426ce movq %rax, %r14 movq %rbx, %rdi callq 0x20d78 movq %r14, %rdi callq 0x20b90 nop
_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: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax and qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov r13, [rsi+38h] mov rbp, [rsi+40h] lea r14, aU4x; "<U+%.4X>" lea r15, [rsp+48h+var_40] push 9 pop r12 loc_42673: cmp r13, rbp jz short loc_426BA movzx ecx, byte ptr [r13+0] cmp ecx, 1Fh ja short loc_426AA mov [rsp+48h+var_38], 0 and [rsp+48h+var_40], 0 mov rdi, r15 mov rsi, r12 mov rdx, r14 xor eax, eax call _snprintf mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) jmp short loc_426B5 loc_426AA: movsx esi, cl mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) loc_426B5: inc r13 jmp short loc_42673 loc_426BA: mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_426CE: mov r14, rax mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
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>>>::get_token_string( long long a1, long long a2) { unsigned __int8 *v2; // r13 unsigned __int8 *v3; // rbp unsigned int v4; // ecx long long v6; // [rsp+8h] [rbp-40h] BYREF char v7; // [rsp+10h] [rbp-38h] *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v2 = *(unsigned __int8 **)(a2 + 56); v3 = *(unsigned __int8 **)(a2 + 64); while ( v2 != v3 ) { v4 = *v2; if ( v4 > 0x1F ) { std::string::push_back(a1, (unsigned int)(char)v4); } else { v7 = 0; v6 = 0LL; snprintf(&v6, 9LL, "<U+%.4X>", v4); std::string::append(a1, &v6); } ++v2; } return a1; }
get_token_string: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX AND qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV R13,qword ptr [RSI + 0x38] MOV RBP,qword ptr [RSI + 0x40] LEA R14,[0x19ceea] LEA R15,[RSP + 0x8] PUSH 0x9 POP R12 LAB_00142673: CMP R13,RBP JZ 0x001426ba MOVZX ECX,byte ptr [R13] CMP ECX,0x1f JA 0x001426aa MOV byte ptr [RSP + 0x10],0x0 AND qword ptr [RSP + 0x8],0x0 MOV RDI,R15 MOV RSI,R12 MOV RDX,R14 XOR EAX,EAX CALL 0x00120a70 LAB_0014269d: MOV RDI,RBX MOV RSI,R15 CALL 0x00120cc0 JMP 0x001426b5 LAB_001426aa: MOVSX ESI,CL MOV RDI,RBX CALL 0x001205c0 LAB_001426b5: INC R13 JMP 0x00142673 LAB_001426ba: MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* 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 > > >::get_token_string() const */ void 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>>> ::get_token_string(void) { byte *pbVar1; long in_RSI; long *in_RDI; byte *pbVar2; char local_40 [16]; *in_RDI = (long)(in_RDI + 2); in_RDI[1] = 0; *(int1 *)(in_RDI + 2) = 0; pbVar1 = *(byte **)(in_RSI + 0x40); for (pbVar2 = *(byte **)(in_RSI + 0x38); pbVar2 != pbVar1; pbVar2 = pbVar2 + 1) { if (*pbVar2 < 0x20) { local_40[8] = 0; local_40[0] = '\0'; local_40[1] = '\0'; local_40[2] = '\0'; local_40[3] = '\0'; local_40[4] = '\0'; local_40[5] = '\0'; local_40[6] = '\0'; local_40[7] = '\0'; snprintf(local_40,9,"<U+%.4X>"); /* try { // try from 0014269d to 001426a7 has its CatchHandler @ 001426ce */ std::__cxx11::string::append((char *)in_RDI); } else { /* try { // try from 001426aa to 001426b4 has its CatchHandler @ 001426cc */ std::__cxx11::string::push_back((char)in_RDI); } } return; }
36,877
thr_downgrade_write_lock
eloqsql/mysys/thr_lock.c
void thr_downgrade_write_lock(THR_LOCK_DATA *in_data, enum thr_lock_type new_lock_type) { THR_LOCK *lock=in_data->lock; #ifdef DBUG_ASSERT_EXISTS enum thr_lock_type old_lock_type= in_data->type; #endif DBUG_ENTER("thr_downgrade_write_only_lock"); mysql_mutex_lock(&lock->mutex); DBUG_ASSERT(old_lock_type == TL_WRITE_ONLY); DBUG_ASSERT(old_lock_type > new_lock_type); in_data->type= new_lock_type; check_locks(lock,"after downgrading lock", old_lock_type, 0); mysql_mutex_unlock(&lock->mutex); DBUG_VOID_RETURN; }
O0
c
thr_downgrade_write_lock: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdi addq $0x18, %rdi leaq 0x55f82(%rip), %rsi # 0xe64ec movl $0x591, %edx # imm = 0x591 callq 0x8ee60 jmp 0x90576 jmp 0x90578 jmp 0x9057a movl -0xc(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x40(%rax) movq -0x18(%rbp), %rdi addq $0x18, %rdi callq 0x8eed0 jmp 0x90593 addq $0x20, %rsp popq %rbp retq nopl (%rax)
thr_downgrade_write_lock: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rax, [rbp+var_8] mov rax, [rax+18h] mov [rbp+var_18], rax mov rdi, [rbp+var_18] add rdi, 18h lea rsi, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 591h call inline_mysql_mutex_lock_11 jmp short $+2 loc_90576: jmp short $+2 loc_90578: jmp short $+2 loc_9057A: mov ecx, [rbp+var_C] mov rax, [rbp+var_8] mov [rax+40h], ecx mov rdi, [rbp+var_18] add rdi, 18h call inline_mysql_mutex_unlock_11 jmp short $+2 loc_90593: add rsp, 20h pop rbp retn
long long thr_downgrade_write_lock(long long a1, int a2) { long long v3; // [rsp+8h] [rbp-18h] v3 = *(_QWORD *)(a1 + 24); inline_mysql_mutex_lock_11(v3 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x591u); *(_DWORD *)(a1 + 64) = a2; return inline_mysql_mutex_unlock_11(v3 + 24); }
thr_downgrade_write_lock: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 LEA RSI,[0x1e64ec] MOV EDX,0x591 CALL 0x0018ee60 JMP 0x00190576 LAB_00190576: JMP 0x00190578 LAB_00190578: JMP 0x0019057a LAB_0019057a: MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x40],ECX MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 CALL 0x0018eed0 JMP 0x00190593 LAB_00190593: ADD RSP,0x20 POP RBP RET
void thr_downgrade_write_lock(long param_1,int4 param_2) { long lVar1; lVar1 = *(long *)(param_1 + 0x18); inline_mysql_mutex_lock (lVar1 + 0x18,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x591); *(int4 *)(param_1 + 0x40) = param_2; inline_mysql_mutex_unlock(lVar1 + 0x18); return; }
36,878
mi_ft_segiterator_init
eloqsql/storage/myisam/ft_update.c
void _mi_ft_segiterator_init(MI_INFO *info, uint keynr, const uchar *record, FT_SEG_ITERATOR *ftsi) { DBUG_ENTER("_mi_ft_segiterator_init"); ftsi->num=info->s->keyinfo[keynr].keysegs; ftsi->seg=info->s->keyinfo[keynr].seg; ftsi->rec=record; ftsi->pos= 0; /* Avoid warnings from gcc */ ftsi->len= 0; /* Avoid warnings from gcc */ DBUG_VOID_RETURN; }
O0
c
mi_ft_segiterator_init: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq 0x218(%rax), %rax movl -0xc(%rbp), %ecx imulq $0x70, %rcx, %rcx addq %rcx, %rax movzwl 0x8(%rax), %ecx movq -0x20(%rbp), %rax movl %ecx, (%rax) movq -0x8(%rbp), %rax movq (%rax), %rax movq 0x218(%rax), %rax movl -0xc(%rbp), %ecx imulq $0x70, %rcx, %rcx addq %rcx, %rax movq 0x28(%rax), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x18(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x20(%rbp), %rax movq $0x0, 0x18(%rax) movq -0x20(%rbp), %rax movl $0x0, 0x4(%rax) jmp 0xa2b8e popq %rbp retq
_mi_ft_segiterator_init: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_8] mov rax, [rax] mov rax, [rax+218h] mov ecx, [rbp+var_C] imul rcx, 70h ; 'p' add rax, rcx movzx ecx, word ptr [rax+8] mov rax, [rbp+var_20] mov [rax], ecx mov rax, [rbp+var_8] mov rax, [rax] mov rax, [rax+218h] mov ecx, [rbp+var_C] imul rcx, 70h ; 'p' add rax, rcx mov rcx, [rax+28h] mov rax, [rbp+var_20] mov [rax+8], rcx mov rcx, [rbp+var_18] mov rax, [rbp+var_20] mov [rax+10h], rcx mov rax, [rbp+var_20] mov qword ptr [rax+18h], 0 mov rax, [rbp+var_20] mov dword ptr [rax+4], 0 jmp short $+2 loc_A2B8E: pop rbp retn
long long mi_ft_segiterator_init(long long a1, unsigned int a2, long long a3, long long a4) { long long result; // rax *(_DWORD *)a4 = *(unsigned __int16 *)(112LL * a2 + *(_QWORD *)(*(_QWORD *)a1 + 536LL) + 8); *(_QWORD *)(a4 + 8) = *(_QWORD *)(112LL * a2 + *(_QWORD *)(*(_QWORD *)a1 + 536LL) + 40); *(_QWORD *)(a4 + 16) = a3; *(_QWORD *)(a4 + 24) = 0LL; result = a4; *(_DWORD *)(a4 + 4) = 0; return result; }
_mi_ft_segiterator_init: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV ECX,dword ptr [RBP + -0xc] IMUL RCX,RCX,0x70 ADD RAX,RCX MOVZX ECX,word ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV ECX,dword ptr [RBP + -0xc] IMUL RCX,RCX,0x70 ADD RAX,RCX MOV RCX,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x18],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x4],0x0 JMP 0x001a2b8e LAB_001a2b8e: POP RBP RET
void _mi_ft_segiterator_init(long *param_1,uint param_2,int8 param_3,uint *param_4) { *param_4 = (uint)*(ushort *)(*(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70 + 8); *(int8 *)(param_4 + 2) = *(int8 *)(*(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70 + 0x28); *(int8 *)(param_4 + 4) = param_3; param_4[6] = 0; param_4[7] = 0; param_4[1] = 0; return; }
36,879
js_parse_expect
bluesky950520[P]quickjs/quickjs.c
static int js_parse_expect(JSParseState *s, int tok) { char buf[ATOM_GET_STR_BUF_SIZE]; if (s->token.val == tok) return next_token(s); switch(s->token.val) { case TOK_EOF: return js_parse_error(s, "Unexpected end of input"); case TOK_NUMBER: return js_parse_error(s, "Unexpected number"); case TOK_STRING: return js_parse_error(s, "Unexpected string"); case TOK_TEMPLATE: return js_parse_error(s, "Unexpected string template"); case TOK_REGEXP: return js_parse_error(s, "Unexpected regexp"); case TOK_IDENT: return js_parse_error(s, "Unexpected identifier '%s'", JS_AtomGetStr(s->ctx, buf, sizeof(buf), s->token.u.ident.atom)); case TOK_ERROR: return js_parse_error(s, "Invalid or unexpected token"); default: return js_parse_error(s, "Unexpected token '%.*s'", (int)(s->buf_ptr - s->token.ptr), (const char *)s->token.ptr); } }
O3
c
js_parse_expect: pushq %rbx subq $0x40, %rsp movq %rdi, %rbx movl 0x20(%rdi), %eax cmpl %esi, %eax jne 0x65518 movq %rbx, %rdi addq $0x40, %rsp popq %rbx jmp 0x5f46a leal 0x80(%rax), %ecx cmpl $0x4, %ecx ja 0x6553c leaq 0x3978a(%rip), %rax # 0x9ecb4 movslq (%rax,%rcx,4), %rcx addq %rax, %rcx jmpq *%rcx leaq 0x3c019(%rip), %rsi # 0xa1553 jmp 0x655b5 cmpl $-0x58, %eax je 0x65558 cmpl $-0x56, %eax jne 0x65592 leaq 0x3cbb5(%rip), %rsi # 0xa2102 jmp 0x655b5 leaq 0x3ce7b(%rip), %rsi # 0xa23d1 jmp 0x655b5 leaq 0x3ce9f(%rip), %rsi # 0xa23fe jmp 0x655b5 leaq 0x3ce4e(%rip), %rsi # 0xa23b6 jmp 0x655b5 movq (%rbx), %rax movl 0x38(%rbx), %edx movq 0x18(%rax), %rdi movq %rsp, %rsi callq 0x21e0b leaq 0x3ce60(%rip), %rsi # 0xa23e3 movq %rbx, %rdi movq %rax, %rdx xorl %eax, %eax callq 0x2fed1 jmp 0x655bf movl 0x70(%rbx), %edx movq 0x30(%rbx), %rcx subl %ecx, %edx leaq 0x3ce78(%rip), %rsi # 0xa241a movq %rbx, %rdi xorl %eax, %eax callq 0x2fed1 jmp 0x655bf leaq 0x3cdef(%rip), %rsi # 0xa23a4 movq %rbx, %rdi xorl %eax, %eax callq 0x2fed1 movl $0xffffffff, %eax # imm = 0xFFFFFFFF addq $0x40, %rsp popq %rbx retq
js_parse_expect: push rbx sub rsp, 40h mov rbx, rdi mov eax, [rdi+20h] cmp eax, esi jnz short loc_65518 mov rdi, rbx add rsp, 40h pop rbx jmp next_token loc_65518: lea ecx, [rax+80h]; switch 5 cases cmp ecx, 4 ja short def_65531; jumptable 0000000000065531 default case lea rax, jpt_65531 movsxd rcx, ds:(jpt_65531 - 9ECB4h)[rax+rcx*4] add rcx, rax jmp rcx; switch jump loc_65533: lea rsi, aUnexpectedNumb; jumptable 0000000000065531 case -128 jmp short loc_655B5 def_65531: cmp eax, 0FFFFFFA8h; jumptable 0000000000065531 default case jz short loc_65558 cmp eax, 0FFFFFFAAh jnz short loc_65592 lea rsi, aUnexpectedEndO_3; "Unexpected end of input" jmp short loc_655B5 loc_6554F: lea rsi, aUnexpectedRege; jumptable 0000000000065531 case -124 jmp short loc_655B5 loc_65558: lea rsi, aInvalidOrUnexp; "Invalid or unexpected token" jmp short loc_655B5 loc_65561: lea rsi, aUnexpectedStri; jumptable 0000000000065531 case -126 jmp short loc_655B5 loc_6556A: mov rax, [rbx]; jumptable 0000000000065531 case -125 mov edx, [rbx+38h] mov rdi, [rax+18h] mov rsi, rsp call JS_AtomGetStrRT lea rsi, aUnexpectedIden; "Unexpected identifier '%s'" mov rdi, rbx mov rdx, rax xor eax, eax call js_parse_error jmp short loc_655BF loc_65592: mov edx, [rbx+70h] mov rcx, [rbx+30h] sub edx, ecx lea rsi, aUnexpectedToke_2; "Unexpected token '%.*s'" mov rdi, rbx xor eax, eax call js_parse_error jmp short loc_655BF loc_655AE: lea rsi, aUnexpectedStri_0; jumptable 0000000000065531 case -127 loc_655B5: mov rdi, rbx xor eax, eax call js_parse_error loc_655BF: mov eax, 0FFFFFFFFh add rsp, 40h pop rbx retn
long long js_parse_expect( 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; // eax long long result; // rax const char *v16; // rsi long long StrRT; // rax long long v18; // rcx long long v19; // r8 long long v20; // r9 __m128 v21; // xmm4 __m128 v22; // xmm5 char v23[72]; // [rsp+0h] [rbp-48h] BYREF v14 = *((_DWORD *)a1 + 8); if ( v14 == (_DWORD)a2 ) return next_token((long long)a1, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6); switch ( v14 ) { case -128: v16 = "Unexpected number"; goto LABEL_14; case -127: v16 = "Unexpected string"; goto LABEL_14; case -126: v16 = "Unexpected string template"; goto LABEL_14; case -125: StrRT = JS_AtomGetStrRT(*(_QWORD *)(*a1 + 24), v23, *((_DWORD *)a1 + 14)); js_parse_error( a1, (long long)"Unexpected identifier '%s'", StrRT, v18, v19, v20, a7, a8, a9, a10, v21, v22, a13, a14, v23[0]); goto LABEL_15; case -124: v16 = "Unexpected regexp"; goto LABEL_14; default: if ( v14 == -88 ) { v16 = "Invalid or unexpected token"; } else { if ( v14 != -86 ) { js_parse_error( a1, (long long)"Unexpected token '%.*s'", *((_DWORD *)a1 + 28) - (unsigned int)a1[6], a1[6], a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v23[0]); goto LABEL_15; } v16 = "Unexpected end of input"; } LABEL_14: js_parse_error( a1, (long long)v16, a3, (unsigned int)(v14 + 128), a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v23[0]); LABEL_15: result = 0xFFFFFFFFLL; break; } return result; }
js_parse_expect: PUSH RBX SUB RSP,0x40 MOV RBX,RDI MOV EAX,dword ptr [RDI + 0x20] CMP EAX,ESI JNZ 0x00165518 MOV RDI,RBX ADD RSP,0x40 POP RBX JMP 0x0015f46a LAB_00165518: LEA ECX,[RAX + 0x80] CMP ECX,0x4 JA 0x0016553c LEA RAX,[0x19ecb4] MOVSXD RCX,dword ptr [RAX + RCX*0x4] ADD RCX,RAX switchD: JMP RCX caseD_ffffff80: LEA RSI,[0x1a1553] JMP 0x001655b5 default: CMP EAX,-0x58 JZ 0x00165558 CMP EAX,-0x56 JNZ 0x00165592 LEA RSI,[0x1a2102] JMP 0x001655b5 caseD_ffffff84: LEA RSI,[0x1a23d1] JMP 0x001655b5 LAB_00165558: LEA RSI,[0x1a23fe] JMP 0x001655b5 caseD_ffffff82: LEA RSI,[0x1a23b6] JMP 0x001655b5 caseD_ffffff83: MOV RAX,qword ptr [RBX] MOV EDX,dword ptr [RBX + 0x38] MOV RDI,qword ptr [RAX + 0x18] MOV RSI,RSP CALL 0x00121e0b LEA RSI,[0x1a23e3] MOV RDI,RBX MOV RDX,RAX XOR EAX,EAX CALL 0x0012fed1 JMP 0x001655bf LAB_00165592: MOV EDX,dword ptr [RBX + 0x70] MOV RCX,qword ptr [RBX + 0x30] SUB EDX,ECX LEA RSI,[0x1a241a] MOV RDI,RBX XOR EAX,EAX CALL 0x0012fed1 JMP 0x001655bf caseD_ffffff81: LEA RSI,[0x1a23a4] LAB_001655b5: MOV RDI,RBX XOR EAX,EAX CALL 0x0012fed1 LAB_001655bf: MOV EAX,0xffffffff ADD RSP,0x40 POP RBX RET
int8 js_parse_expect(long *param_1,int param_2) { int iVar1; int8 uVar2; char *pcVar3; int1 auStack_48 [64]; iVar1 = (int)param_1[4]; if (iVar1 == param_2) { uVar2 = next_token(param_1); return uVar2; } switch(iVar1) { case -0x80: pcVar3 = "Unexpected number"; break; case -0x7f: pcVar3 = "Unexpected string"; break; case -0x7e: pcVar3 = "Unexpected string template"; break; case -0x7d: uVar2 = JS_AtomGetStrRT(*(int8 *)(*param_1 + 0x18),auStack_48,(int)param_1[7]); js_parse_error(param_1,"Unexpected identifier \'%s\'",uVar2); return 0xffffffff; case -0x7c: pcVar3 = "Unexpected regexp"; break; default: if (iVar1 == -0x58) { pcVar3 = "Invalid or unexpected token"; } else { if (iVar1 != -0x56) { js_parse_error(param_1,"Unexpected token \'%.*s\'",(int)param_1[0xe] - (int)param_1[6]); return 0xffffffff; } pcVar3 = "Unexpected end of input"; } } js_parse_error(param_1,pcVar3); return 0xffffffff; }
36,880
stbi_is_hdr_from_file
llama.cpp/examples/llava/../../common/stb_image.h
STBIDEF int stbi_is_hdr_from_file(FILE *f) { #ifndef STBI_NO_HDR long pos = ftell(f); int res; stbi__context s; stbi__start_file(&s,f); res = stbi__hdr_test(&s); fseek(f, pos, SEEK_SET); return res; #else STBI_NOTUSED(f); return 0; #endif }
O3
c
stbi_is_hdr_from_file: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xe8, %rsp movq %rdi, %rbx callq 0x1c050 movq %rax, %r14 movq 0x3b960(%rip), %rax # 0x5d870 leaq 0x40(%rsp), %rcx movq %rax, -0x18(%rcx) movups 0x3b940(%rip), %xmm0 # 0x5d860 movups %xmm0, -0x28(%rcx) movq %rbx, -0x10(%rcx) movabsq $0x8000000001, %rax # imm = 0x8000000001 movq %rax, -0x8(%rcx) movl $0x0, 0x80(%rcx) movq %rcx, 0x98(%rcx) movq %rcx, 0x88(%rcx) leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x2f0a9 movq 0xc8(%r15), %rax movq %rax, 0xd8(%r15) movq %r15, %rdi callq 0x21e73 movl %eax, %ebp movq %rbx, %rdi movq %r14, %rsi xorl %edx, %edx callq 0x1d710 movl %ebp, %eax addq $0xe8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
stbi_is_hdr_from_file: push rbp push r15 push r14 push rbx sub rsp, 0E8h mov rbx, rdi call _ftell mov r14, rax mov rax, cs:off_5D870 lea rcx, [rsp+108h+var_C8] mov [rcx-18h], rax movups xmm0, xmmword ptr cs:_ZL21stbi__stdio_callbacks; stbi__stdio_callbacks movups xmmword ptr [rcx-28h], xmm0 mov [rcx-10h], rbx mov rax, 8000000001h mov [rcx-8], rax mov dword ptr [rcx+80h], 0 mov [rcx+98h], rcx mov [rcx+88h], rcx lea r15, [rsp+108h+var_100] mov rdi, r15 call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *) mov rax, [r15+0C8h] mov [r15+0D8h], rax mov rdi, r15 call _ZL14stbi__hdr_testP13stbi__context; stbi__hdr_test(stbi__context *) mov ebp, eax mov rdi, rbx mov rsi, r14 xor edx, edx call _fseek mov eax, ebp add rsp, 0E8h pop rbx pop r14 pop r15 pop rbp retn
long long stbi_is_hdr_from_file(long long a1) { long long v1; // r14 unsigned int v2; // ebp _BYTE v4[16]; // [rsp+8h] [rbp-100h] BYREF __int128 v5; // [rsp+18h] [rbp-F0h] long long ( *v6)(void *); // [rsp+28h] [rbp-E0h] long long v7; // [rsp+30h] [rbp-D8h] long long v8; // [rsp+38h] [rbp-D0h] _BYTE v9[128]; // [rsp+40h] [rbp-C8h] BYREF int v10; // [rsp+C0h] [rbp-48h] _BYTE *v11; // [rsp+C8h] [rbp-40h] long long v12; // [rsp+D0h] [rbp-38h] _BYTE *v13; // [rsp+D8h] [rbp-30h] long long v14; // [rsp+E0h] [rbp-28h] v1 = ftell(a1); v6 = stbi__stdio_eof; v5 = *(_OWORD *)&stbi__stdio_callbacks; v7 = a1; v8 = 0x8000000001LL; v10 = 0; v13 = v9; v11 = v9; stbi__refill_buffer(v4); v14 = v12; v2 = stbi__hdr_test((long long)v4); fseek(a1, v1, 0LL); return v2; }
stbi_is_hdr_from_file: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xe8 MOV RBX,RDI CALL 0x0011c050 MOV R14,RAX MOV RAX,qword ptr [0x0015d870] LEA RCX,[RSP + 0x40] MOV qword ptr [RCX + -0x18],RAX MOVUPS XMM0,xmmword ptr [0x0015d860] MOVUPS xmmword ptr [RCX + -0x28],XMM0 MOV qword ptr [RCX + -0x10],RBX MOV RAX,0x8000000001 MOV qword ptr [RCX + -0x8],RAX MOV dword ptr [RCX + 0x80],0x0 MOV qword ptr [RCX + 0x98],RCX MOV qword ptr [RCX + 0x88],RCX LEA R15,[RSP + 0x8] MOV RDI,R15 CALL 0x0012f0a9 MOV RAX,qword ptr [R15 + 0xc8] MOV qword ptr [R15 + 0xd8],RAX MOV RDI,R15 CALL 0x00121e73 MOV EBP,EAX MOV RDI,RBX MOV RSI,R14 XOR EDX,EDX CALL 0x0011d710 MOV EAX,EBP ADD RSP,0xe8 POP RBX POP R14 POP R15 POP RBP RET
int4 stbi_is_hdr_from_file(FILE *param_1) { int4 uVar1; long __off; stbi__context local_100 [40]; FILE *local_d8; int8 local_d0; int1 local_c8 [128]; int4 local_48; int1 *local_40; int8 local_38; int1 *local_30; int8 local_28; __off = ftell(param_1); local_40 = local_c8; local_100[0x20] = (stbi__context)stbi__stdio_callbacks[0x10]; local_100[0x21] = (stbi__context)stbi__stdio_callbacks[0x11]; local_100[0x22] = (stbi__context)stbi__stdio_callbacks[0x12]; local_100[0x23] = (stbi__context)stbi__stdio_callbacks[0x13]; local_100[0x24] = (stbi__context)stbi__stdio_callbacks[0x14]; local_100[0x25] = (stbi__context)stbi__stdio_callbacks[0x15]; local_100[0x26] = (stbi__context)stbi__stdio_callbacks[0x16]; local_100[0x27] = (stbi__context)stbi__stdio_callbacks[0x17]; local_100[0x10] = (stbi__context)stbi__stdio_callbacks[0]; local_100[0x11] = (stbi__context)stbi__stdio_callbacks[1]; local_100[0x12] = (stbi__context)stbi__stdio_callbacks[2]; local_100[0x13] = (stbi__context)stbi__stdio_callbacks[3]; local_100[0x14] = (stbi__context)stbi__stdio_callbacks[4]; local_100[0x15] = (stbi__context)stbi__stdio_callbacks[5]; local_100[0x16] = (stbi__context)stbi__stdio_callbacks[6]; local_100[0x17] = (stbi__context)stbi__stdio_callbacks[7]; local_100[0x18] = (stbi__context)stbi__stdio_callbacks[8]; local_100[0x19] = (stbi__context)stbi__stdio_callbacks[9]; local_100[0x1a] = (stbi__context)stbi__stdio_callbacks[10]; local_100[0x1b] = (stbi__context)stbi__stdio_callbacks[0xb]; local_100[0x1c] = (stbi__context)stbi__stdio_callbacks[0xc]; local_100[0x1d] = (stbi__context)stbi__stdio_callbacks[0xd]; local_100[0x1e] = (stbi__context)stbi__stdio_callbacks[0xe]; local_100[0x1f] = (stbi__context)stbi__stdio_callbacks[0xf]; local_d0 = 0x8000000001; local_48 = 0; local_d8 = param_1; local_30 = local_40; stbi__refill_buffer(local_100); local_28 = local_38; uVar1 = stbi__hdr_test(local_100); fseek(param_1,__off,0); return uVar1; }
36,881
multadd
eloqsql/libmariadb/libmariadb/ma_dtoa.c
static Bigint *multadd(Bigint *b, int m, int a, Stack_alloc *alloc) { int i, wds; ULong *x; ULLong carry, y; Bigint *b1; wds= b->wds; x= b->p.x; i= 0; carry= a; do { y= *x * (ULLong)m + carry; carry= y >> 32; *x++= (ULong)(y & FFFFFFFF); } while (++i < wds); if (carry) { if (wds >= b->maxwds) { b1= Balloc(b->k+1, alloc); Bcopy(b1, b); Bfree(b, alloc); b= b1; } b->p.x[wds++]= (ULong) carry; b->wds= wds; } return b; }
O0
c
multadd: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, -0x20(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movl $0x0, -0x1c(%rbp) movslq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movl (%rax), %eax movslq -0xc(%rbp), %rcx imulq %rcx, %rax addq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax shrq $0x20, %rax movq %rax, -0x30(%rbp) movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq -0x38(%rbp), %rax movl %eax, %ecx movq -0x28(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x28(%rbp) movl %ecx, (%rax) movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) cmpl -0x20(%rbp), %eax jl 0x3a9aa cmpq $0x0, -0x30(%rbp) je 0x3aa8b movl -0x20(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0xc(%rcx), %eax jl 0x3aa63 movq -0x8(%rbp), %rax movl 0x8(%rax), %edi addl $0x1, %edi movq -0x18(%rbp), %rsi callq 0x3aaa0 movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rdi addq $0x10, %rdi movq -0x8(%rbp), %rsi addq $0x10, %rsi movq -0x8(%rbp), %rax movslq 0x14(%rax), %rdx shlq $0x2, %rdx addq $0x8, %rdx callq 0x13360 movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x3a5a0 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x30(%rbp), %rax movl %eax, %edx movq -0x8(%rbp), %rax movq (%rax), %rax movl -0x20(%rbp), %ecx movl %ecx, %esi addl $0x1, %esi movl %esi, -0x20(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movl -0x20(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
multadd: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov [rbp+var_18], rcx mov rax, [rbp+var_8] mov eax, [rax+14h] mov [rbp+var_20], eax mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_28], rax mov [rbp+var_1C], 0 movsxd rax, [rbp+var_10] mov [rbp+var_30], rax loc_3A9AA: mov rax, [rbp+var_28] mov eax, [rax] movsxd rcx, [rbp+var_C] imul rax, rcx add rax, [rbp+var_30] mov [rbp+var_38], rax mov rax, [rbp+var_38] shr rax, 20h mov [rbp+var_30], rax mov rax, 0FFFFFFFFh and rax, [rbp+var_38] mov ecx, eax mov rax, [rbp+var_28] mov rdx, rax add rdx, 4 mov [rbp+var_28], rdx mov [rax], ecx mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_1C], eax cmp eax, [rbp+var_20] jl short loc_3A9AA cmp [rbp+var_30], 0 jz loc_3AA8B mov eax, [rbp+var_20] mov rcx, [rbp+var_8] cmp eax, [rcx+0Ch] jl short loc_3AA63 mov rax, [rbp+var_8] mov edi, [rax+8] add edi, 1 mov rsi, [rbp+var_18] call Balloc mov [rbp+var_40], rax mov rdi, [rbp+var_40] add rdi, 10h mov rsi, [rbp+var_8] add rsi, 10h mov rax, [rbp+var_8] movsxd rdx, dword ptr [rax+14h] shl rdx, 2 add rdx, 8 call _memcpy mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] call Bfree mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_3AA63: mov rax, [rbp+var_30] mov edx, eax mov rax, [rbp+var_8] mov rax, [rax] mov ecx, [rbp+var_20] mov esi, ecx add esi, 1 mov [rbp+var_20], esi movsxd rcx, ecx mov [rax+rcx*4], edx mov ecx, [rbp+var_20] mov rax, [rbp+var_8] mov [rax+14h], ecx loc_3AA8B: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
unsigned long long multadd(unsigned long long a1, int a2, int a3, unsigned long long *a4) { unsigned int *v4; // rax long long v6; // [rsp+0h] [rbp-40h] unsigned long long v7; // [rsp+8h] [rbp-38h] unsigned long long v8; // [rsp+10h] [rbp-30h] unsigned int *v9; // [rsp+18h] [rbp-28h] int v10; // [rsp+20h] [rbp-20h] int v11; // [rsp+24h] [rbp-1Ch] unsigned long long v13; // [rsp+38h] [rbp-8h] v13 = a1; v10 = *(_DWORD *)(a1 + 20); v9 = *(unsigned int **)a1; v11 = 0; v8 = a3; do { v7 = v8 + a2 * (unsigned long long)*v9; v8 = HIDWORD(v7); v4 = v9++; *v4 = v7; ++v11; } while ( v11 < v10 ); if ( v8 ) { if ( v10 >= *(_DWORD *)(a1 + 12) ) { v6 = Balloc((unsigned int)(*(_DWORD *)(a1 + 8) + 1), a4); memcpy(v6 + 16, a1 + 16, 4LL * *(int *)(a1 + 20) + 8); Bfree(a1, a4); v13 = v6; } *(_DWORD *)(*(_QWORD *)v13 + 4LL * v10) = HIDWORD(v7); *(_DWORD *)(v13 + 20) = v10 + 1; } return v13; }
multadd: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV qword ptr [RBP + -0x18],RCX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX MOV dword ptr [RBP + -0x1c],0x0 MOVSXD RAX,dword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX LAB_0013a9aa: MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0xc] IMUL RAX,RCX ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] SHR RAX,0x20 MOV qword ptr [RBP + -0x30],RAX MOV RAX,0xffffffff AND RAX,qword ptr [RBP + -0x38] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x28] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x28],RDX MOV dword ptr [RAX],ECX MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX CMP EAX,dword ptr [RBP + -0x20] JL 0x0013a9aa CMP qword ptr [RBP + -0x30],0x0 JZ 0x0013aa8b MOV EAX,dword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0xc] JL 0x0013aa63 MOV RAX,qword ptr [RBP + -0x8] MOV EDI,dword ptr [RAX + 0x8] ADD EDI,0x1 MOV RSI,qword ptr [RBP + -0x18] CALL 0x0013aaa0 MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x40] ADD RDI,0x10 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x10 MOV RAX,qword ptr [RBP + -0x8] MOVSXD RDX,dword ptr [RAX + 0x14] SHL RDX,0x2 ADD RDX,0x8 CALL 0x00113360 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] CALL 0x0013a5a0 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_0013aa63: MOV RAX,qword ptr [RBP + -0x30] MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x20] MOV ESI,ECX ADD ESI,0x1 MOV dword ptr [RBP + -0x20],ESI MOVSXD RCX,ECX MOV dword ptr [RAX + RCX*0x4],EDX MOV ECX,dword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x14],ECX LAB_0013aa8b: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
long * multadd(long *param_1,int param_2,int param_3,int8 param_4) { int iVar1; ulong uVar2; ulong local_38; uint *local_30; int local_24; long *local_10; iVar1 = *(int *)((long)param_1 + 0x14); local_24 = 0; local_38 = (ulong)param_3; local_30 = (uint *)*param_1; do { uVar2 = (ulong)*local_30 * (long)param_2 + local_38; local_38 = uVar2 >> 0x20; *local_30 = (uint)uVar2; local_24 = local_24 + 1; local_30 = local_30 + 1; } while (local_24 < iVar1); local_10 = param_1; if (local_38 != 0) { if (*(int *)((long)param_1 + 0xc) <= iVar1) { local_10 = (long *)Balloc((int)param_1[1] + 1,param_4); memcpy(local_10 + 2,param_1 + 2,(long)*(int *)((long)param_1 + 0x14) * 4 + 8); Bfree(param_1,param_4); } *(int *)(*local_10 + (long)iVar1 * 4) = (int)(uVar2 >> 0x20); *(int *)((long)local_10 + 0x14) = iVar1 + 1; } return local_10; }
36,882
multadd
eloqsql/libmariadb/libmariadb/ma_dtoa.c
static Bigint *multadd(Bigint *b, int m, int a, Stack_alloc *alloc) { int i, wds; ULong *x; ULLong carry, y; Bigint *b1; wds= b->wds; x= b->p.x; i= 0; carry= a; do { y= *x * (ULLong)m + carry; carry= y >> 32; *x++= (ULong)(y & FFFFFFFF); } while (++i < wds); if (carry) { if (wds >= b->maxwds) { b1= Balloc(b->k+1, alloc); Bcopy(b1, b); Bfree(b, alloc); b= b1; } b->p.x[wds++]= (ULong) carry; b->wds= wds; } return b; }
O3
c
multadd: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rdi, %rbx movslq 0x14(%rdi), %r12 movq (%rdi), %rax movslq %esi, %rcx cmpl $0x2, %r12d movl $0x1, %edx cmovgel %r12d, %edx xorl %esi, %esi xorl %r13d, %r13d movl (%rax,%rsi,4), %edi imulq %rcx, %rdi addq %r13, %rdi movq %rdi, %r13 shrq $0x20, %r13 movl %edi, (%rax,%rsi,4) incq %rsi cmpl %esi, %edx jne 0x2aad8 shrq $0x20, %rdi je 0x2ab45 cmpl 0xc(%rbx), %r12d jl 0x2ab36 movl 0x8(%rbx), %edi incl %edi movq %r14, %rsi callq 0x2ab57 movq %rax, %r15 leaq 0x10(%rax), %rdi leaq 0x10(%rbx), %rsi movslq 0x14(%rbx), %rax leaq 0x8(,%rax,4), %rdx callq 0x13390 movq %rbx, %rdi movq %r14, %rsi callq 0x2a91e movq %r15, %rbx movq (%rbx), %rax leal 0x1(%r12), %ecx movl %r13d, (%rax,%r12,4) movl %ecx, 0x14(%rbx) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
multadd: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdx mov rbx, rdi movsxd r12, dword ptr [rdi+14h] mov rax, [rdi] movsxd rcx, esi cmp r12d, 2 mov edx, 1 cmovge edx, r12d xor esi, esi xor r13d, r13d loc_2AAD8: mov edi, [rax+rsi*4] imul rdi, rcx add rdi, r13 mov r13, rdi shr r13, 20h mov [rax+rsi*4], edi inc rsi cmp edx, esi jnz short loc_2AAD8 shr rdi, 20h jz short loc_2AB45 cmp r12d, [rbx+0Ch] jl short loc_2AB36 mov edi, [rbx+8] inc edi mov rsi, r14 call Balloc mov r15, rax lea rdi, [rax+10h] lea rsi, [rbx+10h] movsxd rax, dword ptr [rbx+14h] lea rdx, ds:8[rax*4] call _memcpy mov rdi, rbx mov rsi, r14 call Bfree mov rbx, r15 loc_2AB36: mov rax, [rbx] lea ecx, [r12+1] mov [rax+r12*4], r13d mov [rbx+14h], ecx loc_2AB45: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long multadd(unsigned long long a1, int a2, unsigned long long *a3) { unsigned long long v4; // rbx long long v5; // r12 long long v6; // rax long long v7; // rcx long long v8; // rdx long long v9; // rsi unsigned long long v10; // r13 unsigned long long v11; // rdi long long v12; // r15 v4 = a1; v5 = *(int *)(a1 + 20); v6 = *(_QWORD *)a1; v7 = a2; v8 = 1LL; if ( (int)v5 >= 2 ) v8 = (unsigned int)v5; v9 = 0LL; v10 = 0LL; do { v11 = v10 + v7 * *(unsigned int *)(v6 + 4 * v9); v10 = HIDWORD(v11); *(_DWORD *)(v6 + 4 * v9++) = v11; } while ( (_DWORD)v8 != (_DWORD)v9 ); if ( HIDWORD(v11) ) { if ( (int)v5 >= *(_DWORD *)(v4 + 12) ) { v12 = Balloc((unsigned int)(*(_DWORD *)(v4 + 8) + 1), a3, v8, v7); memcpy(v12 + 16, v4 + 16, 4LL * *(int *)(v4 + 20) + 8); Bfree(v4, a3); v4 = v12; } *(_DWORD *)(*(_QWORD *)v4 + 4 * v5) = HIDWORD(v11); *(_DWORD *)(v4 + 20) = v5 + 1; } return v4; }
multadd: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV RBX,RDI MOVSXD R12,dword ptr [RDI + 0x14] MOV RAX,qword ptr [RDI] MOVSXD RCX,ESI CMP R12D,0x2 MOV EDX,0x1 CMOVGE EDX,R12D XOR ESI,ESI XOR R13D,R13D LAB_0012aad8: MOV EDI,dword ptr [RAX + RSI*0x4] IMUL RDI,RCX ADD RDI,R13 MOV R13,RDI SHR R13,0x20 MOV dword ptr [RAX + RSI*0x4],EDI INC RSI CMP EDX,ESI JNZ 0x0012aad8 SHR RDI,0x20 JZ 0x0012ab45 CMP R12D,dword ptr [RBX + 0xc] JL 0x0012ab36 MOV EDI,dword ptr [RBX + 0x8] INC EDI MOV RSI,R14 CALL 0x0012ab57 MOV R15,RAX LEA RDI,[RAX + 0x10] LEA RSI,[RBX + 0x10] MOVSXD RAX,dword ptr [RBX + 0x14] LEA RDX,[0x8 + RAX*0x4] CALL 0x00113390 MOV RDI,RBX MOV RSI,R14 CALL 0x0012a91e MOV RBX,R15 LAB_0012ab36: MOV RAX,qword ptr [RBX] LEA ECX,[R12 + 0x1] MOV dword ptr [RAX + R12*0x4],R13D MOV dword ptr [RBX + 0x14],ECX LAB_0012ab45: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long * multadd(long *param_1,int param_2,int8 param_3) { int iVar1; long lVar2; long *plVar3; int iVar4; long lVar5; ulong uVar6; ulong uVar7; iVar1 = *(int *)((long)param_1 + 0x14); lVar2 = *param_1; iVar4 = 1; if (1 < iVar1) { iVar4 = iVar1; } lVar5 = 0; uVar7 = 0; do { uVar6 = (ulong)*(uint *)(lVar2 + lVar5 * 4) * (long)param_2 + uVar7; uVar7 = uVar6 >> 0x20; *(int *)(lVar2 + lVar5 * 4) = (int)uVar6; lVar5 = lVar5 + 1; } while (iVar4 != (int)lVar5); plVar3 = param_1; if (uVar6 >> 0x20 != 0) { if (*(int *)((long)param_1 + 0xc) <= iVar1) { plVar3 = (long *)Balloc((int)param_1[1] + 1,param_3); memcpy(plVar3 + 2,param_1 + 2,(long)*(int *)((long)param_1 + 0x14) * 4 + 8); Bfree(param_1,param_3); } *(int *)(*plVar3 + (long)iVar1 * 4) = (int)(uVar6 >> 0x20); *(int *)((long)plVar3 + 0x14) = iVar1 + 1; } return plVar3; }
36,883
sort_maria_ft_key_write
eloqsql/storage/maria/ma_check.c
static int sort_maria_ft_key_write(MARIA_SORT_PARAM *sort_param, const uchar *a) { uint a_len, val_off, val_len, error; MARIA_SORT_INFO *sort_info= sort_param->sort_info; MA_SORT_FT_BUF *ft_buf= sort_info->ft_buf; MA_SORT_KEY_BLOCKS *key_block= sort_info->key_block; MARIA_SHARE *share= sort_info->info->s; val_len=HA_FT_WLEN+share->rec_reflength; get_key_full_length_rdonly(a_len, a); if (!ft_buf) { /* use two-level tree only if key_reflength fits in rec_reflength place and row format is NOT static - for _ma_dpointer not to garble offsets */ if ((share->base.key_reflength <= share->rec_reflength) && (share->options & (HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD))) ft_buf= (MA_SORT_FT_BUF *)my_malloc(PSI_INSTRUMENT_ME, sort_param->keyinfo->block_length + sizeof(MA_SORT_FT_BUF), MYF(MY_WME | sort_param->sort_info->param-> malloc_flags)); if (!ft_buf) { sort_param->key_write=sort_key_write; return sort_key_write(sort_param, a); } sort_info->ft_buf= ft_buf; goto word_init_ft_buf; /* no need to duplicate the code */ } get_key_full_length_rdonly(val_off, ft_buf->lastkey); if (ha_compare_text(sort_param->seg->charset, a+1,a_len-1, ft_buf->lastkey+1,val_off-1, 0)==0) { uchar *p; if (!ft_buf->buf) /* store in second-level tree */ { ft_buf->count++; return sort_insert_key(sort_param,key_block, a + a_len, HA_OFFSET_ERROR); } /* storing the key in the buffer. */ memcpy (ft_buf->buf, (const char *)a+a_len, val_len); ft_buf->buf+=val_len; if (ft_buf->buf < ft_buf->end) return 0; /* converting to two-level tree */ p=ft_buf->lastkey+val_off; while (key_block->inited) key_block++; sort_info->key_block=key_block; sort_param->keyinfo= &share->ft2_keyinfo; ft_buf->count=(uint)(ft_buf->buf - p)/val_len; /* flushing buffer to second-level tree */ for (error=0; !error && p < ft_buf->buf; p+= val_len) error=sort_insert_key(sort_param,key_block,p,HA_OFFSET_ERROR); ft_buf->buf=0; return error; } /* flushing buffer */ if ((error=_ma_sort_ft_buf_flush(sort_param))) return error; word_init_ft_buf: a_len+=val_len; memcpy(ft_buf->lastkey, a, a_len); ft_buf->buf=ft_buf->lastkey+a_len; /* 32 is just a safety margin here (at least MY_MAX(val_len, sizeof(nod_flag)) should be there). May be better performance could be achieved if we'd put (sort_info->keyinfo->block_length-32)/XXX instead. TODO: benchmark the best value for XXX. */ ft_buf->end= ft_buf->lastkey+ (sort_param->keyinfo->block_length-32); return 0; }
O0
c
sort_maria_ft_key_write: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x380(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq 0xb0(%rax), %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax movq 0xa0(%rax), %rax movq %rax, -0x40(%rbp) movq -0x30(%rbp), %rax movq 0x80(%rax), %rax movq (%rax), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movl 0x740(%rax), %eax addl $0x4, %eax movl %eax, -0x24(%rbp) movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xff, %eax je 0xb7b97c movq -0x18(%rbp), %rax movzbl (%rax), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) jmp 0xb7b9a0 movq -0x18(%rbp), %rax movzbl 0x2(%rax), %eax movzwl %ax, %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax addl $0x3, %eax movl %eax, -0x1c(%rbp) cmpq $0x0, -0x38(%rbp) jne 0xb7ba5b movq -0x48(%rbp), %rax movl 0x3e4(%rax), %eax movq -0x48(%rbp), %rcx cmpl 0x740(%rcx), %eax ja 0xb7ba19 movq -0x48(%rbp), %rax movq 0x720(%rax), %rax andq $0x5, %rax cmpq $0x0, %rax je 0xb7ba19 movq -0x10(%rbp), %rax movq 0x378(%rax), %rax movzwl 0xa6(%rax), %eax movl %eax, %esi addq $0x9e8, %rsi # imm = 0x9E8 movq -0x10(%rbp), %rax movq 0x380(%rax), %rax movq 0x90(%rax), %rax movq 0x20d38(%rax), %rdx orq $0x10, %rdx xorl %edi, %edi callq 0xc1ac20 movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) jne 0xb7ba47 movq -0x10(%rbp), %rax leaq 0x3f5(%rip), %rcx # 0xb7be20 movq %rcx, 0x678(%rax) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0xb7be20 movl %eax, -0x4(%rbp) jmp 0xb7bccc movq -0x38(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, 0xb0(%rax) jmp 0xb7bc67 movq -0x38(%rbp), %rax movzbl 0x14(%rax), %eax cmpl $0xff, %eax je 0xb7ba7a movq -0x38(%rbp), %rax movzbl 0x14(%rax), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) jmp 0xb7ba9e movq -0x38(%rbp), %rax movzbl 0x16(%rax), %eax movzwl %ax, %eax movq -0x38(%rbp), %rcx movzbl 0x15(%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax addl $0x3, %eax movl %eax, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x388(%rax), %rax movq (%rax), %rdi movq -0x18(%rbp), %rsi addq $0x1, %rsi movl -0x1c(%rbp), %eax subl $0x1, %eax movl %eax, %eax movl %eax, %edx movq -0x38(%rbp), %rcx addq $0x14, %rcx addq $0x1, %rcx movl -0x20(%rbp), %eax subl $0x1, %eax movl %eax, %eax movl %eax, %r8d xorl %r9d, %r9d callq 0xc17870 cmpl $0x0, %eax jne 0xb7bc4c movq -0x38(%rbp), %rax cmpq $0x0, (%rax) jne 0xb7bb23 movq -0x38(%rbp), %rax movl 0x10(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x10(%rax) movq -0x10(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x18(%rbp), %rdx movl -0x1c(%rbp), %eax addq %rax, %rdx movq $-0x1, %rcx callq 0xb7e090 movl %eax, -0x4(%rbp) jmp 0xb7bccc movq -0x38(%rbp), %rax movq (%rax), %rdi movq -0x18(%rbp), %rsi movl -0x1c(%rbp), %eax addq %rax, %rsi movl -0x24(%rbp), %eax movl %eax, %edx callq 0x4331a0 movl -0x24(%rbp), %edx movq -0x38(%rbp), %rax movq (%rax), %rcx movl %edx, %edx addq %rdx, %rcx movq %rcx, (%rax) movq -0x38(%rbp), %rax movq (%rax), %rax movq -0x38(%rbp), %rcx cmpq 0x8(%rcx), %rax jae 0xb7bb6d movl $0x0, -0x4(%rbp) jmp 0xb7bccc movq -0x38(%rbp), %rax addq $0x14, %rax movl -0x20(%rbp), %ecx addq %rcx, %rax movq %rax, -0x50(%rbp) movq -0x40(%rbp), %rax cmpl $0x0, 0x934(%rax) je 0xb7bb9c movq -0x40(%rbp), %rax addq $0x938, %rax # imm = 0x938 movq %rax, -0x40(%rbp) jmp 0xb7bb7f movq -0x40(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, 0xa0(%rax) movq -0x48(%rbp), %rcx addq $0x458, %rcx # imm = 0x458 movq -0x10(%rbp), %rax movq %rcx, 0x378(%rax) movq -0x38(%rbp), %rax movq (%rax), %rax movq -0x50(%rbp), %rcx subq %rcx, %rax xorl %edx, %edx divl -0x24(%rbp) movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, 0x10(%rax) movl $0x0, -0x28(%rbp) xorl %eax, %eax cmpl $0x0, -0x28(%rbp) movb %al, -0x51(%rbp) jne 0xb7bc00 movq -0x50(%rbp), %rax movq -0x38(%rbp), %rcx cmpq (%rcx), %rax setb %al movb %al, -0x51(%rbp) movb -0x51(%rbp), %al testb $0x1, %al jne 0xb7bc09 jmp 0xb7bc36 movq -0x10(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x50(%rbp), %rdx movq $-0x1, %rcx callq 0xb7e090 movl %eax, -0x28(%rbp) movl -0x24(%rbp), %ecx movq -0x50(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x50(%rbp) jmp 0xb7bbe4 movq -0x38(%rbp), %rax movq $0x0, (%rax) movl -0x28(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0xb7bccc movq -0x10(%rbp), %rdi callq 0xb7ddc0 movl %eax, -0x28(%rbp) cmpl $0x0, %eax je 0xb7bc65 movl -0x28(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0xb7bccc jmp 0xb7bc67 movl -0x24(%rbp), %eax addl -0x1c(%rbp), %eax movl %eax, -0x1c(%rbp) movq -0x38(%rbp), %rdi addq $0x14, %rdi movq -0x18(%rbp), %rsi movl -0x1c(%rbp), %eax movl %eax, %edx callq 0x4331a0 movq -0x38(%rbp), %rcx addq $0x14, %rcx movl -0x1c(%rbp), %eax addq %rax, %rcx movq -0x38(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rcx addq $0x14, %rcx movq -0x10(%rbp), %rax movq 0x378(%rax), %rax movzwl 0xa6(%rax), %eax subl $0x20, %eax cltq addq %rax, %rcx movq -0x38(%rbp), %rax movq %rcx, 0x8(%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
sort_maria_ft_key_write: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov rax, [rax+380h] mov [rbp+var_30], rax mov rax, [rbp+var_30] mov rax, [rax+0B0h] mov [rbp+var_38], rax mov rax, [rbp+var_30] mov rax, [rax+0A0h] mov [rbp+var_40], rax mov rax, [rbp+var_30] mov rax, [rax+80h] mov rax, [rax] mov [rbp+var_48], rax mov rax, [rbp+var_48] mov eax, [rax+740h] add eax, 4 mov [rbp+var_24], eax mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FFh jz short loc_B7B97C mov rax, [rbp+var_18] movzx eax, byte ptr [rax] add eax, 1 mov [rbp+var_1C], eax jmp short loc_B7B9A0 loc_B7B97C: mov rax, [rbp+var_18] movzx eax, byte ptr [rax+2] movzx eax, ax mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax add eax, 3 mov [rbp+var_1C], eax loc_B7B9A0: cmp [rbp+var_38], 0 jnz loc_B7BA5B mov rax, [rbp+var_48] mov eax, [rax+3E4h] mov rcx, [rbp+var_48] cmp eax, [rcx+740h] ja short loc_B7BA19 mov rax, [rbp+var_48] mov rax, [rax+720h] and rax, 5 cmp rax, 0 jz short loc_B7BA19 mov rax, [rbp+var_10] mov rax, [rax+378h] movzx eax, word ptr [rax+0A6h] mov esi, eax add rsi, 9E8h mov rax, [rbp+var_10] mov rax, [rax+380h] mov rax, [rax+90h] mov rdx, qword ptr ds:stru_20D38.r_offset[rax] or rdx, 10h xor edi, edi call my_malloc mov [rbp+var_38], rax loc_B7BA19: cmp [rbp+var_38], 0 jnz short loc_B7BA47 mov rax, [rbp+var_10] lea rcx, sort_key_write mov [rax+678h], rcx mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call sort_key_write mov [rbp+var_4], eax jmp loc_B7BCCC loc_B7BA47: mov rcx, [rbp+var_38] mov rax, [rbp+var_30] mov [rax+0B0h], rcx jmp loc_B7BC67 loc_B7BA5B: mov rax, [rbp+var_38] movzx eax, byte ptr [rax+14h] cmp eax, 0FFh jz short loc_B7BA7A mov rax, [rbp+var_38] movzx eax, byte ptr [rax+14h] add eax, 1 mov [rbp+var_20], eax jmp short loc_B7BA9E loc_B7BA7A: mov rax, [rbp+var_38] movzx eax, byte ptr [rax+16h] movzx eax, ax mov rcx, [rbp+var_38] movzx ecx, byte ptr [rcx+15h] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax add eax, 3 mov [rbp+var_20], eax loc_B7BA9E: mov rax, [rbp+var_10] mov rax, [rax+388h] mov rdi, [rax] mov rsi, [rbp+var_18] add rsi, 1 mov eax, [rbp+var_1C] sub eax, 1 mov eax, eax mov edx, eax mov rcx, [rbp+var_38] add rcx, 14h add rcx, 1 mov eax, [rbp+var_20] sub eax, 1 mov eax, eax mov r8d, eax xor r9d, r9d call ha_compare_text cmp eax, 0 jnz loc_B7BC4C mov rax, [rbp+var_38] cmp qword ptr [rax], 0 jnz short loc_B7BB23 mov rax, [rbp+var_38] mov ecx, [rax+10h] add ecx, 1 mov [rax+10h], ecx mov rdi, [rbp+var_10] mov rsi, [rbp+var_40] mov rdx, [rbp+var_18] mov eax, [rbp+var_1C] add rdx, rax mov rcx, 0FFFFFFFFFFFFFFFFh call sort_insert_key mov [rbp+var_4], eax jmp loc_B7BCCC loc_B7BB23: mov rax, [rbp+var_38] mov rdi, [rax] mov rsi, [rbp+var_18] mov eax, [rbp+var_1C] add rsi, rax mov eax, [rbp+var_24] mov edx, eax call _memcpy mov edx, [rbp+var_24] mov rax, [rbp+var_38] mov rcx, [rax] mov edx, edx add rcx, rdx mov [rax], rcx mov rax, [rbp+var_38] mov rax, [rax] mov rcx, [rbp+var_38] cmp rax, [rcx+8] jnb short loc_B7BB6D mov [rbp+var_4], 0 jmp loc_B7BCCC loc_B7BB6D: mov rax, [rbp+var_38] add rax, 14h mov ecx, [rbp+var_20] add rax, rcx mov [rbp+var_50], rax loc_B7BB7F: mov rax, [rbp+var_40] cmp dword ptr [rax+934h], 0 jz short loc_B7BB9C mov rax, [rbp+var_40] add rax, 938h mov [rbp+var_40], rax jmp short loc_B7BB7F loc_B7BB9C: mov rcx, [rbp+var_40] mov rax, [rbp+var_30] mov [rax+0A0h], rcx mov rcx, [rbp+var_48] add rcx, 458h mov rax, [rbp+var_10] mov [rax+378h], rcx mov rax, [rbp+var_38] mov rax, [rax] mov rcx, [rbp+var_50] sub rax, rcx xor edx, edx div [rbp+var_24] mov ecx, eax mov rax, [rbp+var_38] mov [rax+10h], ecx mov [rbp+var_28], 0 loc_B7BBE4: xor eax, eax cmp [rbp+var_28], 0 mov [rbp+var_51], al jnz short loc_B7BC00 mov rax, [rbp+var_50] mov rcx, [rbp+var_38] cmp rax, [rcx] setb al mov [rbp+var_51], al loc_B7BC00: mov al, [rbp+var_51] test al, 1 jnz short loc_B7BC09 jmp short loc_B7BC36 loc_B7BC09: mov rdi, [rbp+var_10] mov rsi, [rbp+var_40] mov rdx, [rbp+var_50] mov rcx, 0FFFFFFFFFFFFFFFFh call sort_insert_key mov [rbp+var_28], eax mov ecx, [rbp+var_24] mov rax, [rbp+var_50] mov ecx, ecx add rax, rcx mov [rbp+var_50], rax jmp short loc_B7BBE4 loc_B7BC36: mov rax, [rbp+var_38] mov qword ptr [rax], 0 mov eax, [rbp+var_28] mov [rbp+var_4], eax jmp loc_B7BCCC loc_B7BC4C: mov rdi, [rbp+var_10] call _ma_sort_ft_buf_flush mov [rbp+var_28], eax cmp eax, 0 jz short loc_B7BC65 mov eax, [rbp+var_28] mov [rbp+var_4], eax jmp short loc_B7BCCC loc_B7BC65: jmp short $+2 loc_B7BC67: mov eax, [rbp+var_24] add eax, [rbp+var_1C] mov [rbp+var_1C], eax mov rdi, [rbp+var_38] add rdi, 14h mov rsi, [rbp+var_18] mov eax, [rbp+var_1C] mov edx, eax call _memcpy mov rcx, [rbp+var_38] add rcx, 14h mov eax, [rbp+var_1C] add rcx, rax mov rax, [rbp+var_38] mov [rax], rcx mov rcx, [rbp+var_38] add rcx, 14h mov rax, [rbp+var_10] mov rax, [rax+378h] movzx eax, word ptr [rax+0A6h] sub eax, 20h ; ' ' cdqe add rcx, rax mov rax, [rbp+var_38] mov [rax+8], rcx mov [rbp+var_4], 0 loc_B7BCCC: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long sort_maria_ft_key_write(long long a1, unsigned __int8 *a2) { int v2; // eax int v3; // eax bool v5; // [rsp+Fh] [rbp-51h] unsigned long long v6; // [rsp+10h] [rbp-50h] long long v7; // [rsp+18h] [rbp-48h] long long v8; // [rsp+20h] [rbp-40h] long long v9; // [rsp+28h] [rbp-38h] long long v10; // [rsp+30h] [rbp-30h] unsigned int inserted; // [rsp+38h] [rbp-28h] unsigned int v12; // [rsp+38h] [rbp-28h] unsigned int v13; // [rsp+3Ch] [rbp-24h] unsigned int v14; // [rsp+40h] [rbp-20h] int v15; // [rsp+44h] [rbp-1Ch] unsigned int v16; // [rsp+44h] [rbp-1Ch] v10 = *(_QWORD *)(a1 + 896); v9 = *(_QWORD *)(v10 + 176); v8 = *(_QWORD *)(v10 + 160); v7 = **(_QWORD **)(v10 + 128); v13 = *(_DWORD *)(v7 + 1856) + 4; if ( *a2 == 255 ) v2 = _byteswap_ushort(*(_WORD *)(a2 + 1)) + 3; else v2 = *a2 + 1; v15 = v2; if ( !v9 ) { if ( *(_DWORD *)(v7 + 996) <= *(_DWORD *)(v7 + 1856) && (*(_QWORD *)(v7 + 1824) & 5LL) != 0 ) v9 = my_malloc( 0LL, *(unsigned __int16 *)(*(_QWORD *)(a1 + 888) + 166LL) + 2536LL, *(unsigned long long *)((char *)&stru_20D38.r_offset + *(_QWORD *)(*(_QWORD *)(a1 + 896) + 144LL)) | 0x10); if ( !v9 ) { *(_QWORD *)(a1 + 1656) = sort_key_write; return (unsigned int)sort_key_write(a1, a2); } *(_QWORD *)(v10 + 176) = v9; LABEL_30: v16 = v15 + v13; memcpy(v9 + 20, a2, v16); *(_QWORD *)v9 = v16 + v9 + 20; *(_QWORD *)(v9 + 8) = *(unsigned __int16 *)(*(_QWORD *)(a1 + 888) + 166LL) - 32 + v9 + 20; return 0; } if ( *(unsigned __int8 *)(v9 + 20) == 255 ) v3 = _byteswap_ushort(*(_WORD *)(v9 + 21)) + 3; else v3 = *(unsigned __int8 *)(v9 + 20) + 1; v14 = v3; if ( (unsigned int)ha_compare_text( **(_QWORD **)(a1 + 904), a2 + 1, (unsigned int)(v15 - 1), v9 + 21, (unsigned int)(v3 - 1), 0LL) ) { v12 = ma_sort_ft_buf_flush(a1); if ( v12 ) return v12; goto LABEL_30; } if ( *(_QWORD *)v9 ) { memcpy(*(_QWORD *)v9, &a2[v15], v13); *(_QWORD *)v9 += v13; if ( *(_QWORD *)v9 >= *(_QWORD *)(v9 + 8) ) { v6 = v14 + v9 + 20; while ( *(_DWORD *)(v8 + 2356) ) v8 += 2360LL; *(_QWORD *)(v10 + 160) = v8; *(_QWORD *)(a1 + 888) = v7 + 1112; *(_DWORD *)(v9 + 16) = ((unsigned int)*(_QWORD *)v9 - (unsigned int)v6) / v13; inserted = 0; while ( 1 ) { v5 = 0; if ( !inserted ) v5 = v6 < *(_QWORD *)v9; if ( !v5 ) break; inserted = sort_insert_key(a1, v8, v6, -1LL); v6 += v13; } *(_QWORD *)v9 = 0LL; return inserted; } else { return 0; } } else { ++*(_DWORD *)(v9 + 16); return (unsigned int)sort_insert_key(a1, v8, &a2[v15], -1LL); } }
send_row: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x20],RAX MOV RCX,qword ptr [RAX + 0xb0] MOV qword ptr [RBP + -0x18],RCX MOV RCX,qword ptr [RAX + 0xc0] ADD RCX,0x1 MOV qword ptr [RAX + 0xc0],RCX LAB_00b7b935: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RCX + 0xb8] JZ 0x00b7b961 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x8 MOV qword ptr [RBP + -0x18],RAX JMP 0x00b7b935 LAB_00b7b961: XOR EAX,EAX ADD RSP,0x20 POP RBP RET
/* analyse::send_row(List<Item>&) */ int8 analyse::send_row(List *param_1) { int8 *local_20; local_20 = *(int8 **)(param_1 + 0xb0); *(long *)(param_1 + 0xc0) = *(long *)(param_1 + 0xc0) + 1; for (; local_20 != *(int8 **)(param_1 + 0xb8); local_20 = local_20 + 1) { (**(code **)(*(long *)*local_20 + 0x10))(); } return 0; }
36,884
build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string build_grammar(const std::function<void(const common_grammar_builder &)> & cb, const common_grammar_options & options) { SchemaConverter converter([&](const std::string &) { return json(); }, options.dotall, options.compact_spaces); common_grammar_builder builder { /* .add_rule = */ [&](const std::string & name, const std::string & rule) { return converter._add_rule(name, rule); }, /* .add_schema = */ [&](const std::string & name, const nlohmann::ordered_json & schema) { return converter.visit(schema, name == "root" ? "" : name); }, /* .resolve_refs = */ [&](nlohmann::ordered_json & schema) { converter.resolve_refs(schema, ""); } }; cb(builder); converter.check_errors(); return converter.format_grammar(); }
O1
cpp
build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&): pushq %r15 pushq %r14 pushq %rbx subq $0x160, %rsp # imm = 0x160 movq %rsi, %r14 movq %rdi, %rbx xorps %xmm0, %xmm0 movq %rsp, %rsi movaps %xmm0, (%rsi) leaq 0x304(%rip), %rax # 0xbb014 movq %rax, 0x18(%rsi) leaq 0x325(%rip), %rax # 0xbb040 movq %rax, 0x10(%rsi) movzbl (%rdx), %eax movzbl 0x1(%rdx), %ecx leaq 0x68(%rsp), %r15 movq %r15, %rdi movl %eax, %edx callq 0xbe292 movq 0x10(%rsp), %rax testq %rax, %rax je 0xbad4c movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movaps %xmm0, 0x10(%rsp) movq %r15, (%rsp) leaq 0x2f5(%rip), %rax # 0xbb058 movq %rax, 0x18(%rsp) leaq 0x2fb(%rip), %rax # 0xbb06a movq %rax, 0x10(%rsp) movaps %xmm0, 0x20(%rsp) movaps %xmm0, 0x30(%rsp) movq %r15, 0x20(%rsp) leaq 0x306(%rip), %rax # 0xbb090 movq %rax, 0x38(%rsp) leaq 0x3ac(%rip), %rax # 0xbb142 movq %rax, 0x30(%rsp) movaps %xmm0, 0x40(%rsp) movaps %xmm0, 0x50(%rsp) movq %r15, 0x40(%rsp) leaq 0x2e37(%rip), %rax # 0xbdbe8 movq %rax, 0x58(%rsp) leaq 0x2e95(%rip), %rax # 0xbdc52 movq %rax, 0x50(%rsp) cmpq $0x0, 0x10(%r14) je 0xbaea3 movq %rsp, %rsi movq %r14, %rdi callq *0x18(%r14) leaq 0x68(%rsp), %rdi callq 0xbe494 leaq 0x68(%rsp), %rsi movq %rbx, %rdi callq 0xbe64a movq 0x50(%rsp), %rax testq %rax, %rax je 0xbae07 leaq 0x40(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x30(%rsp), %rax testq %rax, %rax je 0xbae20 leaq 0x20(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x10(%rsp), %rax testq %rax, %rax je 0xbae37 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0x148(%rsp), %rdi callq 0x20c6a leaq 0x130(%rsp), %rdi callq 0x20c6a leaq 0xf8(%rsp), %rdi callq 0x7dcfc leaq 0xc0(%rsp), %rdi callq 0xbee5e leaq 0x90(%rsp), %r14 movq %r14, %rdi callq 0xbef40 movq -0x18(%r14), %rax testq %rax, %rax je 0xbae93 leaq 0x68(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rax addq $0x160, %rsp # imm = 0x160 popq %rbx popq %r14 popq %r15 retq callq 0x1a300 jmp 0xbaece jmp 0xbaece jmp 0xbaece jmp 0xbaece jmp 0xbaece movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0xbaeeb movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0xbaeeb movq %rax, %rdi callq 0x20749 movq %rax, %rbx movq %rsp, %rdi callq 0xbe756 leaq 0x68(%rsp), %rdi callq 0xbe7ac movq %rbx, %rdi callq 0x1af20 nop
_Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options: push r15 push r14 push rbx sub rsp, 160h mov r14, rsi mov rbx, rdi xorps xmm0, xmm0 mov rsi, rsp; int movaps xmmword ptr [rsi], xmm0 lea rax, _ZNSt17_Function_handlerIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_0E9_M_invokeERKSt9_Any_dataSG_; std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_invoke(std::_Any_data const&,std::string const&) mov [rsi+18h], rax lea rax, _ZNSt17_Function_handlerIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation; std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsi+10h], rax movzx eax, byte ptr [rdx] movzx ecx, byte ptr [rdx+1]; int lea r15, [rsp+178h+var_110] mov rdi, r15; int mov edx, eax; int call _ZN15SchemaConverterC2ERKSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERKSB_EEbb; SchemaConverter::SchemaConverter(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&)> const&,bool,bool) mov rax, qword ptr [rsp+178h+var_168] test rax, rax jz short loc_BAD4C mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_BAD4C: xorps xmm0, xmm0 movaps [rsp+178h+var_178], xmm0 movaps [rsp+178h+var_168], xmm0 mov qword ptr [rsp+178h+var_178], r15 lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_S7_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_1E9_M_invokeERKSt9_Any_dataS7_S7_; std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_invoke(std::_Any_data const&,std::string const&,std::string const&) mov qword ptr [rsp+178h+var_168+8], rax lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_S7_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_1E10_M_managerERSt9_Any_dataRKSM_St18_Manager_operation; std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov qword ptr [rsp+178h+var_168], rax movaps [rsp+178h+var_158], xmm0 movaps [rsp+178h+var_148], xmm0 mov qword ptr [rsp+178h+var_158], r15 lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_RKN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_2E9_M_invokeERKSt9_Any_dataS7_SI_; std::_Function_handler<std::string ()(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&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_invoke(std::_Any_data const&,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&) mov qword ptr [rsp+178h+var_148+8], rax lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_RKN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_2E10_M_managerERSt9_Any_dataRKSX_St18_Manager_operation; std::_Function_handler<std::string ()(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&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov qword ptr [rsp+178h+var_148], rax movaps [rsp+178h+var_138], xmm0 movaps [rsp+178h+var_128], xmm0 mov qword ptr [rsp+178h+var_138], r15 lea rax, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_3E9_M_invokeERKSt9_Any_dataSF_; std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_invoke(std::_Any_data const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) mov qword ptr [rsp+178h+var_128+8], rax lea rax, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_3E10_M_managerERSt9_Any_dataRKSU_St18_Manager_operation; std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov qword ptr [rsp+178h+var_128], rax cmp qword ptr [r14+10h], 0 jz loc_BAEA3 mov rsi, rsp mov rdi, r14 call qword ptr [r14+18h] lea rdi, [rsp+178h+var_110]; this call _ZN15SchemaConverter12check_errorsEv; SchemaConverter::check_errors(void) lea rsi, [rsp+178h+var_110] mov rdi, rbx call _ZN15SchemaConverter14format_grammarB5cxx11Ev; SchemaConverter::format_grammar(void) mov rax, qword ptr [rsp+178h+var_128] test rax, rax jz short loc_BAE07 lea rdi, [rsp+178h+var_138] mov rsi, rdi mov edx, 3 call rax loc_BAE07: mov rax, qword ptr [rsp+178h+var_148] test rax, rax jz short loc_BAE20 lea rdi, [rsp+178h+var_158] mov rsi, rdi mov edx, 3 call rax loc_BAE20: mov rax, qword ptr [rsp+178h+var_168] test rax, rax jz short loc_BAE37 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_BAE37: lea rdi, [rsp+178h+var_30] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rsp+178h+var_48] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rsp+178h+var_80] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable() lea rdi, [rsp+178h+var_B8] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESaISH_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSJ_18_Mod_range_hashingENSJ_20_Default_ranged_hashENSJ_20_Prime_rehash_policyENSJ_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable() lea r14, [rsp+178h+var_E8] mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() mov rax, [r14-18h] test rax, rax jz short loc_BAE93 lea rdi, [rsp+178h+var_110] mov rsi, rdi mov edx, 3 call rax loc_BAE93: mov rax, rbx add rsp, 160h pop rbx pop r14 pop r15 retn loc_BAEA3: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) jmp short loc_BAECE jmp short loc_BAECE jmp short loc_BAECE jmp short loc_BAECE jmp short loc_BAECE mov rbx, rax mov rax, qword ptr [rsp+178h+var_168] test rax, rax jz short loc_BAEEB mov rdi, rsp mov rsi, rdi mov edx, 3 call rax jmp short loc_BAEEB loc_BAECE: mov rdi, rax call __clang_call_terminate mov rbx, rax mov rdi, rsp; this call _ZN22common_grammar_builderD2Ev; common_grammar_builder::~common_grammar_builder() lea rdi, [rsp+178h+var_110]; this call _ZN15SchemaConverterD2Ev; SchemaConverter::~SchemaConverter() loc_BAEEB: mov rdi, rbx call __Unwind_Resume
long long build_grammar[abi:cxx11](long long a1, long long a2, unsigned __int8 *a3, long long a4, int a5, int a6) { int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d __int128 v11; // [rsp+0h] [rbp-178h] BYREF long long ( *v12)(); // [rsp+10h] [rbp-168h] void *v13; // [rsp+18h] [rbp-160h] __int128 v14; // [rsp+20h] [rbp-158h] BYREF long long ( *v15)(); // [rsp+30h] [rbp-148h] long long ( *v16)(int, int, int, int, int, int, int, long long); // [rsp+38h] [rbp-140h] __int128 v17; // [rsp+40h] [rbp-138h] BYREF long long ( *v18)(); // [rsp+50h] [rbp-128h] long long ( *v19)(int, int, int, int, int, int, void *, int, long long); // [rsp+58h] [rbp-120h] int v20; // [rsp+60h] [rbp-118h] int v21[4]; // [rsp+68h] [rbp-110h] BYREF void ( *v22)(int *, int *, long long); // [rsp+78h] [rbp-100h] _BYTE v23[48]; // [rsp+90h] [rbp-E8h] BYREF _BYTE v24[56]; // [rsp+C0h] [rbp-B8h] BYREF _BYTE v25[56]; // [rsp+F8h] [rbp-80h] BYREF _QWORD v26[3]; // [rsp+130h] [rbp-48h] BYREF _QWORD v27[6]; // [rsp+148h] [rbp-30h] BYREF SchemaConverter::SchemaConverter( (int)v21, (int)&v11, *a3, a3[1], a5, a6, 0LL, 0, (long long)std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_manager, (int)std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_invoke, (void *)v14, SDWORD2(v14), (long long)v15); if ( v12 ) ((void ( *)(__int128 *, __int128 *, long long))v12)(&v11, &v11, 3LL); v11 = (unsigned long long)v21; v13 = &std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_invoke; v12 = std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_manager; v14 = (unsigned long long)v21; v16 = std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_invoke; v15 = std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_manager; v17 = (unsigned long long)v21; v19 = std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_invoke; v18 = std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_manager; if ( !*(_QWORD *)(a2 + 16) ) std::__throw_bad_function_call(); (*(void ( **)(long long, __int128 *))(a2 + 24))(a2, &v11); SchemaConverter::check_errors((SchemaConverter *)v21); SchemaConverter::format_grammar[abi:cxx11]( a1, (unsigned int)v21, v6, v7, v8, v9, v11, DWORD2(v11), (_DWORD)v12, (_DWORD)v13, v14, DWORD2(v14), (_DWORD)v15, (_DWORD)v16, v17, DWORD2(v17), (_DWORD)v18, (_DWORD)v19, v20, v21[0], v21[2], (char)v22); if ( v18 ) ((void ( *)(__int128 *, __int128 *, long long))v18)(&v17, &v17, 3LL); if ( v15 ) ((void ( *)(__int128 *, __int128 *, long long))v15)(&v14, &v14, 3LL); if ( v12 ) ((void ( *)(__int128 *, __int128 *, long long))v12)(&v11, &v11, 3LL); std::vector<std::string>::~vector(v27); std::vector<std::string>::~vector(v26); std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable((long long)v25); std::_Hashtable<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable(v24); std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree(v23); if ( v22 ) v22(v21, v21, 3LL); return a1; }
build_grammar[abi:cxx11]: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x160 MOV R14,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOV RSI,RSP MOVAPS xmmword ptr [RSI],XMM0 LEA RAX,[0x1bb014] MOV qword ptr [RSI + 0x18],RAX LEA RAX,[0x1bb040] MOV qword ptr [RSI + 0x10],RAX MOVZX EAX,byte ptr [RDX] MOVZX ECX,byte ptr [RDX + 0x1] LAB_001bad26: LEA R15,[RSP + 0x68] MOV RDI,R15 MOV EDX,EAX CALL 0x001be292 MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x001bad4c LAB_001bad3f: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001bad4c: XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOV qword ptr [RSP],R15 LEA RAX,[0x1bb058] MOV qword ptr [RSP + 0x18],RAX LEA RAX,[0x1bb06a] MOV qword ptr [RSP + 0x10],RAX MOVAPS xmmword ptr [RSP + 0x20],XMM0 MOVAPS xmmword ptr [RSP + 0x30],XMM0 MOV qword ptr [RSP + 0x20],R15 LEA RAX,[0x1bb090] MOV qword ptr [RSP + 0x38],RAX LEA RAX,[0x1bb142] MOV qword ptr [RSP + 0x30],RAX MOVAPS xmmword ptr [RSP + 0x40],XMM0 MOVAPS xmmword ptr [RSP + 0x50],XMM0 MOV qword ptr [RSP + 0x40],R15 LEA RAX,[0x1bdbe8] MOV qword ptr [RSP + 0x58],RAX LEA RAX,[0x1bdc52] MOV qword ptr [RSP + 0x50],RAX CMP qword ptr [R14 + 0x10],0x0 JZ 0x001baea3 LAB_001badcd: MOV RSI,RSP MOV RDI,R14 CALL qword ptr [R14 + 0x18] LEA RDI,[RSP + 0x68] CALL 0x001be494 LEA RSI,[RSP + 0x68] MOV RDI,RBX CALL 0x001be64a MOV RAX,qword ptr [RSP + 0x50] TEST RAX,RAX JZ 0x001bae07 LEA RDI,[RSP + 0x40] LAB_001badfd: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001bae07: MOV RAX,qword ptr [RSP + 0x30] TEST RAX,RAX JZ 0x001bae20 LEA RDI,[RSP + 0x20] LAB_001bae16: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001bae20: MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x001bae37 LAB_001bae2a: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001bae37: LEA RDI,[RSP + 0x148] CALL 0x00120c6a LEA RDI,[RSP + 0x130] CALL 0x00120c6a LEA RDI,[RSP + 0xf8] CALL 0x0017dcfc LEA RDI,[RSP + 0xc0] CALL 0x001bee5e LEA R14,[RSP + 0x90] MOV RDI,R14 CALL 0x001bef40 MOV RAX,qword ptr [R14 + -0x18] TEST RAX,RAX JZ 0x001bae93 LAB_001bae84: LEA RDI,[RSP + 0x68] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001bae93: MOV RAX,RBX ADD RSP,0x160 POP RBX POP R14 POP R15 RET LAB_001baea3: CALL 0x0011a300
/* build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&) */ function * build_grammar_abi_cxx11_(function *param_1,common_grammar_options *param_2) { long in_RDX; SchemaConverter *local_178; int8 uStack_170; code *local_168; code *pcStack_160; SchemaConverter *local_158; int8 uStack_150; code *local_148; code *pcStack_140; SchemaConverter *local_138; int8 uStack_130; code *local_128; code *pcStack_120; SchemaConverter local_110 [16]; code *local_100; _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> local_e8 [48]; _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> local_b8 [56]; _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> local_80 [56]; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_48 [24]; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_30 [24]; local_178 = (SchemaConverter *)0x0; uStack_170 = 0; pcStack_160 = std:: _Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_0> ::_M_invoke; local_168 = std:: _Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_0> ::_M_manager; /* try { // try from 001bad26 to 001bad34 has its CatchHandler @ 001baeb2 */ SchemaConverter::SchemaConverter (local_110,(function *)&local_178,*(bool *)in_RDX,*(bool *)(in_RDX + 1)); if (local_168 != (code *)0x0) { /* try { // try from 001bad3f to 001bad4b has its CatchHandler @ 001baeb0 */ (*local_168)(&local_178,&local_178,3); } uStack_170 = 0; pcStack_160 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::string_const&,std::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_1> ::_M_invoke; local_168 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::string_const&,std::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_1> ::_M_manager; uStack_150 = 0; pcStack_140 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_2> ::_M_invoke; local_148 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_2> ::_M_manager; uStack_130 = 0; pcStack_120 = std:: _Function_handler<void(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_3> ::_M_invoke; local_128 = std:: _Function_handler<void(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_3> ::_M_manager; local_178 = local_110; local_158 = local_110; local_138 = local_110; if (*(long *)(param_2 + 0x10) != 0) { /* try { // try from 001badcd to 001baded has its CatchHandler @ 001baed6 */ (**(code **)(param_2 + 0x18))(param_2,&local_178); SchemaConverter::check_errors(local_110); SchemaConverter::format_grammar_abi_cxx11_(); if (local_128 != (code *)0x0) { /* try { // try from 001badfd to 001bae06 has its CatchHandler @ 001baeae */ (*local_128)(&local_138,&local_138,3); } if (local_148 != (code *)0x0) { /* try { // try from 001bae16 to 001bae1f has its CatchHandler @ 001baeac */ (*local_148)(&local_158,&local_158,3); } if (local_168 != (code *)0x0) { /* try { // try from 001bae2a to 001bae36 has its CatchHandler @ 001baeaa */ (*local_168)(&local_178,&local_178,3); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_30); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_48); std:: _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> ::~_Hashtable(local_80); std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::~_Hashtable(local_b8); std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::~_Rb_tree(local_e8); if (local_100 != (code *)0x0) { /* try { // try from 001bae84 to 001bae92 has its CatchHandler @ 001baea8 */ (*local_100)(local_110,local_110,3); } return param_1; } /* WARNING: Subroutine does not return */ /* try { // try from 001baea3 to 001baea7 has its CatchHandler @ 001baed6 */ std::__throw_bad_function_call(); }
36,885
build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string build_grammar(const std::function<void(const common_grammar_builder &)> & cb, const common_grammar_options & options) { SchemaConverter converter([&](const std::string &) { return json(); }, options.dotall, options.compact_spaces); common_grammar_builder builder { /* .add_rule = */ [&](const std::string & name, const std::string & rule) { return converter._add_rule(name, rule); }, /* .add_schema = */ [&](const std::string & name, const nlohmann::ordered_json & schema) { return converter.visit(schema, name == "root" ? "" : name); }, /* .resolve_refs = */ [&](nlohmann::ordered_json & schema) { converter.resolve_refs(schema, ""); } }; cb(builder); converter.check_errors(); return converter.format_grammar(); }
O2
cpp
build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x158, %rsp # imm = 0x158 movq %rsi, %r14 movq %rdi, %rbx xorps %xmm0, %xmm0 movq %rsp, %rsi movaps %xmm0, (%rsi) leaq 0x1d2(%rip), %rax # 0x8a682 movq %rax, 0x18(%rsi) leaq 0x1d7(%rip), %rax # 0x8a692 movq %rax, 0x10(%rsi) movzbl (%rdx), %eax movzbl 0x1(%rdx), %ecx leaq 0x60(%rsp), %r15 movq %r15, %rdi movl %eax, %edx callq 0x8bec2 movq %rsp, %r12 movq %r12, %rdi callq 0x47048 andq $0x0, 0x8(%r12) movq %r15, (%r12) leaq 0x1b9(%rip), %rax # 0x8a6aa movq %rax, 0x18(%r12) leaq 0x1bf(%rip), %rax # 0x8a6bc movq %rax, 0x10(%r12) andq $0x0, 0x28(%r12) movq %r15, 0x20(%r12) leaq 0x1ce(%rip), %rax # 0x8a6e2 movq %rax, 0x38(%r12) leaq 0x262(%rip), %rax # 0x8a782 movq %rax, 0x30(%r12) andq $0x0, 0x48(%r12) movq %r15, 0x40(%r12) leaq 0x168f(%rip), %rax # 0x8bbc6 movq %rax, 0x58(%r12) leaq 0x16e3(%rip), %rax # 0x8bc26 movq %rax, 0x50(%r12) movq %rsp, %rsi movq %r14, %rdi callq 0x8c05a leaq 0x60(%rsp), %rdi callq 0x8c06e leaq 0x60(%rsp), %rsi movq %rbx, %rdi callq 0x8c1e0 movq %rsp, %rdi callq 0x8c296 leaq 0x60(%rsp), %rdi callq 0x8c2b6 movq %rbx, %rax addq $0x158, %rsp # imm = 0x158 popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %rdi callq 0x47048 jmp 0x8a5b0 movq %rax, %rbx movq %rsp, %rdi callq 0x8c296 leaq 0x60(%rsp), %rdi callq 0x8c2b6 movq %rbx, %rdi callq 0x23f10
_Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options: push r15 push r14 push r12 push rbx sub rsp, 158h mov r14, rsi mov rbx, rdi xorps xmm0, xmm0 mov rsi, rsp movaps xmmword ptr [rsi], xmm0 lea rax, _ZNSt17_Function_handlerIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_0E9_M_invokeERKSt9_Any_dataSG_; std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_invoke(std::_Any_data const&,std::string const&) mov [rsi+18h], rax lea rax, _ZNSt17_Function_handlerIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation; std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsi+10h], rax movzx eax, byte ptr [rdx] movzx ecx, byte ptr [rdx+1] lea r15, [rsp+178h+var_118] mov rdi, r15 mov edx, eax call _ZN15SchemaConverterC2ERKSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERKSB_EEbb; SchemaConverter::SchemaConverter(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> ()(std::string const&)> const&,bool,bool) mov r12, rsp mov rdi, r12; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() and qword ptr [r12+8], 0 mov [r12], r15 lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_S7_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_1E9_M_invokeERKSt9_Any_dataS7_S7_; std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_invoke(std::_Any_data const&,std::string const&,std::string const&) mov [r12+18h], rax lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_S7_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_1E10_M_managerERSt9_Any_dataRKSM_St18_Manager_operation; std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [r12+10h], rax and qword ptr [r12+28h], 0 mov [r12+20h], r15 lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_RKN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_2E9_M_invokeERKSt9_Any_dataS7_SI_; std::_Function_handler<std::string ()(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&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_invoke(std::_Any_data const&,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&) mov [r12+38h], rax lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_RKN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_2E10_M_managerERSt9_Any_dataRKSX_St18_Manager_operation; std::_Function_handler<std::string ()(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&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [r12+30h], rax and qword ptr [r12+48h], 0 mov [r12+40h], r15 lea rax, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_3E9_M_invokeERKSt9_Any_dataSF_; std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_invoke(std::_Any_data const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) mov [r12+58h], rax lea rax, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_3E10_M_managerERSt9_Any_dataRKSU_St18_Manager_operation; std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [r12+50h], rax mov rsi, rsp mov rdi, r14 call _ZNKSt8functionIFvRK22common_grammar_builderEEclES2_; std::function<void ()(common_grammar_builder const&)>::operator()(common_grammar_builder const&) lea rdi, [rsp+178h+var_118]; this call _ZN15SchemaConverter12check_errorsEv; SchemaConverter::check_errors(void) lea rsi, [rsp+178h+var_118] mov rdi, rbx call _ZN15SchemaConverter14format_grammarB5cxx11Ev; SchemaConverter::format_grammar(void) mov rdi, rsp; this call _ZN22common_grammar_builderD2Ev; common_grammar_builder::~common_grammar_builder() lea rdi, [rsp+178h+var_118]; this call _ZN15SchemaConverterD2Ev; SchemaConverter::~SchemaConverter() mov rax, rbx add rsp, 158h pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax mov rdi, rsp; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() jmp short loc_8A5B0 mov rbx, rax mov rdi, rsp; this call _ZN22common_grammar_builderD2Ev; common_grammar_builder::~common_grammar_builder() lea rdi, [rsp+arg_58]; this call _ZN15SchemaConverterD2Ev; SchemaConverter::~SchemaConverter() loc_8A5B0: mov rdi, rbx call __Unwind_Resume
long long build_grammar[abi:cxx11](long long a1, long long a2, unsigned __int8 *a3, long long a4, int a5, int a6) { int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d _QWORD v11[4]; // [rsp+0h] [rbp-178h] BYREF _BYTE *v12; // [rsp+20h] [rbp-158h] long long v13; // [rsp+28h] [rbp-150h] long long ( *v14)(); // [rsp+30h] [rbp-148h] long long ( *v15)(int, int, int, int, int, int, int, char); // [rsp+38h] [rbp-140h] _BYTE *v16; // [rsp+40h] [rbp-138h] long long v17; // [rsp+48h] [rbp-130h] long long ( *v18)(); // [rsp+50h] [rbp-128h] long long ( *v19)(int, int, int, int, int, int, int, char); // [rsp+58h] [rbp-120h] _BYTE v20[280]; // [rsp+60h] [rbp-118h] BYREF SchemaConverter::SchemaConverter( (unsigned int)v20, (unsigned int)v11, *a3, a3[1], a5, a6, 0, 0, (unsigned int)std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_manager, (unsigned int)std::_Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_invoke, (char)v12); std::_Function_base::~_Function_base((std::_Function_base *)v11); v11[1] = 0LL; v11[0] = v20; v11[3] = std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_invoke; v11[2] = std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_manager; v13 = 0LL; v12 = v20; v15 = std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_invoke; v14 = std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_manager; v17 = 0LL; v16 = v20; v19 = std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_invoke; v18 = std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_manager; std::function<void ()(common_grammar_builder const&)>::operator()(a2, v11); SchemaConverter::check_errors((SchemaConverter *)v20); SchemaConverter::format_grammar[abi:cxx11](a1, (unsigned int)v20, v6, v7, v8, v9, v11[0]); common_grammar_builder::~common_grammar_builder((common_grammar_builder *)v11); SchemaConverter::~SchemaConverter((SchemaConverter *)v20); return a1; }
build_grammar[abi:cxx11]: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x158 MOV R14,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOV RSI,RSP MOVAPS xmmword ptr [RSI],XMM0 LEA RAX,[0x18a682] MOV qword ptr [RSI + 0x18],RAX LEA RAX,[0x18a692] MOV qword ptr [RSI + 0x10],RAX MOVZX EAX,byte ptr [RDX] MOVZX ECX,byte ptr [RDX + 0x1] LAB_0018a4c6: LEA R15,[RSP + 0x60] MOV RDI,R15 MOV EDX,EAX CALL 0x0018bec2 MOV R12,RSP MOV RDI,R12 CALL 0x00147048 AND qword ptr [R12 + 0x8],0x0 MOV qword ptr [R12],R15 LEA RAX,[0x18a6aa] MOV qword ptr [R12 + 0x18],RAX LEA RAX,[0x18a6bc] MOV qword ptr [R12 + 0x10],RAX AND qword ptr [R12 + 0x28],0x0 MOV qword ptr [R12 + 0x20],R15 LEA RAX,[0x18a6e2] MOV qword ptr [R12 + 0x38],RAX LEA RAX,[0x18a782] MOV qword ptr [R12 + 0x30],RAX AND qword ptr [R12 + 0x48],0x0 MOV qword ptr [R12 + 0x40],R15 LEA RAX,[0x18bbc6] MOV qword ptr [R12 + 0x58],RAX LEA RAX,[0x18bc26] MOV qword ptr [R12 + 0x50],RAX LAB_0018a548: MOV RSI,RSP MOV RDI,R14 CALL 0x0018c05a LEA RDI,[RSP + 0x60] CALL 0x0018c06e LEA RSI,[RSP + 0x60] MOV RDI,RBX CALL 0x0018c1e0 LAB_0018a56a: MOV RDI,RSP CALL 0x0018c296 LEA RDI,[RSP + 0x60] CALL 0x0018c2b6 MOV RAX,RBX ADD RSP,0x158 POP RBX POP R12 POP R14 POP R15 RET
/* build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&) */ function * build_grammar_abi_cxx11_(function *param_1,common_grammar_options *param_2) { long in_RDX; SchemaConverter *local_178; int8 uStack_170; code *local_168; code *local_160; SchemaConverter *local_158; int8 local_150; code *local_148; code *local_140; SchemaConverter *local_138; int8 local_130; code *local_128; code *local_120; SchemaConverter local_118 [248]; local_178 = (SchemaConverter *)0x0; uStack_170 = 0; local_160 = std:: _Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_0> ::_M_invoke; local_168 = std:: _Function_handler<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_0> ::_M_manager; /* try { // try from 0018a4c6 to 0018a4d4 has its CatchHandler @ 0018a58e */ SchemaConverter::SchemaConverter (local_118,(function *)&local_178,*(bool *)in_RDX,*(bool *)(in_RDX + 1)); std::_Function_base::~_Function_base((_Function_base *)&local_178); uStack_170 = 0; local_160 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::string_const&,std::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_1> ::_M_invoke; local_168 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::string_const&,std::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_1> ::_M_manager; local_150 = 0; local_140 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_2> ::_M_invoke; local_148 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_2> ::_M_manager; local_130 = 0; local_120 = std:: _Function_handler<void(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_3> ::_M_invoke; local_128 = std:: _Function_handler<void(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_3> ::_M_manager; local_178 = local_118; local_158 = local_118; local_138 = local_118; /* try { // try from 0018a548 to 0018a569 has its CatchHandler @ 0018a59b */ std::function<void(common_grammar_builder_const&)>::operator() ((function<void(common_grammar_builder_const&)> *)param_2, (common_grammar_builder *)&local_178); SchemaConverter::check_errors(local_118); SchemaConverter::format_grammar_abi_cxx11_(); common_grammar_builder::~common_grammar_builder((common_grammar_builder *)&local_178); SchemaConverter::~SchemaConverter(local_118); return param_1; }
36,886
psi_mutex_lock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_mutex_lock(mysql_mutex_t *that, const char *file, uint line) { PSI_mutex_locker_state state; PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait) (&state, that->m_psi, PSI_MUTEX_LOCK, file, line); # ifdef SAFE_MUTEX int result= safe_mutex_lock(&that->m_mutex, FALSE, file, line); # else int result= pthread_mutex_lock(&that->m_mutex); # endif if (locker) PSI_MUTEX_CALL(end_mutex_wait)(locker, result); return result; }
O0
c
psi_mutex_lock: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) leaq 0x1a56be(%rip), %rax # 0x1d1858 movq (%rax), %rax movq 0x190(%rax), %rax movq -0x8(%rbp), %rcx movq 0x40(%rcx), %rsi movq -0x10(%rbp), %rcx movl -0x14(%rbp), %r8d leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *%rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rdi callq 0x244a0 movl %eax, -0x54(%rbp) cmpq $0x0, -0x50(%rbp) je 0x2c1ed leaq 0x1a567e(%rip), %rax # 0x1d1858 movq (%rax), %rax movq 0x198(%rax), %rax movq -0x50(%rbp), %rdi movl -0x54(%rbp), %esi callq *%rax movl -0x54(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
psi_mutex_lock: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx lea rax, PSI_server mov rax, [rax] mov rax, [rax+190h] mov rcx, [rbp+var_8] mov rsi, [rcx+40h] mov rcx, [rbp+var_10] mov r8d, [rbp+var_14] lea rdi, [rbp+var_48] xor edx, edx call rax mov [rbp+var_50], rax mov rdi, [rbp+var_8] call _pthread_mutex_lock mov [rbp+var_54], eax cmp [rbp+var_50], 0 jz short loc_2C1ED lea rax, PSI_server mov rax, [rax] mov rax, [rax+198h] mov rdi, [rbp+var_50] mov esi, [rbp+var_54] call rax loc_2C1ED: mov eax, [rbp+var_54] add rsp, 60h pop rbp retn
long long psi_mutex_lock(long long a1, long long a2, unsigned int a3) { unsigned int v4; // [rsp+Ch] [rbp-54h] long long v5; // [rsp+10h] [rbp-50h] _BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF unsigned int v7; // [rsp+4Ch] [rbp-14h] long long v8; // [rsp+50h] [rbp-10h] long long v9; // [rsp+58h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[0] + 50))( v6, *(_QWORD *)(a1 + 64), 0LL, a2, a3); v4 = pthread_mutex_lock(v9); if ( v5 ) (*((void ( **)(long long, _QWORD))PSI_server[0] + 51))(v5, v4); return v4; }
psi_mutex_lock: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LEA RAX,[0x2d1858] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x190] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x40] MOV RCX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RBP + -0x14] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL RAX MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x001244a0 MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x0012c1ed LEA RAX,[0x2d1858] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x198] MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x54] CALL RAX LAB_0012c1ed: MOV EAX,dword ptr [RBP + -0x54] ADD RSP,0x60 POP RBP RET
int psi_mutex_lock(pthread_mutex_t *param_1,int8 param_2,int4 param_3) { int iVar1; long lVar2; int1 local_50 [52]; int4 local_1c; int8 local_18; pthread_mutex_t *local_10; local_1c = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 400)) (local_50,*(int8 *)((long)param_1 + 0x40),0,param_2,param_3); iVar1 = pthread_mutex_lock(local_10); if (lVar2 != 0) { (**(code **)(PSI_server + 0x198))(lVar2,iVar1); } return iVar1; }
36,887
psi_mutex_lock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_mutex_lock(mysql_mutex_t *that, const char *file, uint line) { PSI_mutex_locker_state state; PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait) (&state, that->m_psi, PSI_MUTEX_LOCK, file, line); # ifdef SAFE_MUTEX int result= safe_mutex_lock(&that->m_mutex, FALSE, file, line); # else int result= pthread_mutex_lock(&that->m_mutex); # endif if (locker) PSI_MUTEX_CALL(end_mutex_wait)(locker, result); return result; }
O3
c
psi_mutex_lock: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %edx, %r8d movq %rsi, %rcx movq %rdi, %r14 leaq 0x2cc111(%rip), %r15 # 0x2f0848 movq (%r15), %rax movq 0x40(%rdi), %rsi leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *0x190(%rax) movq %rax, %rbx movq %r14, %rdi callq 0x244e0 movl %eax, %r14d testq %rbx, %rbx je 0x2476c movq (%r15), %rax movq %rbx, %rdi movl %r14d, %esi callq *0x198(%rax) movl %r14d, %eax addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
psi_mutex_lock: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 38h mov r8d, edx mov rcx, rsi mov r14, rdi lea r15, PSI_server mov rax, [r15] mov rsi, [rdi+40h] lea rdi, [rbp+var_48] xor edx, edx call qword ptr [rax+190h] mov rbx, rax mov rdi, r14 call _pthread_mutex_lock mov r14d, eax test rbx, rbx jz short loc_2476C mov rax, [r15] mov rdi, rbx mov esi, r14d call qword ptr [rax+198h] loc_2476C: mov eax, r14d add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn
long long psi_mutex_lock(long long a1, long long a2, unsigned int a3) { long long v3; // rbx unsigned int v4; // r14d _BYTE v6[72]; // [rsp+8h] [rbp-48h] BYREF v3 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[0] + 50))( v6, *(_QWORD *)(a1 + 64), 0LL, a2, a3); v4 = pthread_mutex_lock(a1); if ( v3 ) (*((void ( **)(long long, _QWORD))PSI_server[0] + 51))(v3, v4); return v4; }
psi_mutex_lock: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV R8D,EDX MOV RCX,RSI MOV R14,RDI LEA R15,[0x3f0848] MOV RAX,qword ptr [R15] MOV RSI,qword ptr [RDI + 0x40] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL qword ptr [RAX + 0x190] MOV RBX,RAX MOV RDI,R14 CALL 0x001244e0 MOV R14D,EAX TEST RBX,RBX JZ 0x0012476c MOV RAX,qword ptr [R15] MOV RDI,RBX MOV ESI,R14D CALL qword ptr [RAX + 0x198] LAB_0012476c: MOV EAX,R14D ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET
int psi_mutex_lock(pthread_mutex_t *param_1,int8 param_2,int4 param_3) { int iVar1; long lVar2; int1 local_50 [48]; lVar2 = (**(code **)(PSI_server + 400)) (local_50,*(int8 *)((long)param_1 + 0x40),0,param_2,param_3); iVar1 = pthread_mutex_lock(param_1); if (lVar2 != 0) { (**(code **)(PSI_server + 0x198))(lVar2,iVar1); } return iVar1; }
36,888
js_string_define_own_property
bluesky950520[P]quickjs/quickjs.c
static int js_string_define_own_property(JSContext *ctx, JSValue this_obj, JSAtom prop, JSValue val, JSValue getter, JSValue setter, int flags) { uint32_t idx; JSObject *p; JSString *p1, *p2; if (__JS_AtomIsTaggedInt(prop)) { idx = __JS_AtomToUInt32(prop); p = JS_VALUE_GET_OBJ(this_obj); if (JS_VALUE_GET_TAG(p->u.object_data) != JS_TAG_STRING) goto def; p1 = JS_VALUE_GET_STRING(p->u.object_data); if (idx >= p1->len) goto def; if (!check_define_prop_flags(JS_PROP_ENUMERABLE, flags)) goto fail; /* check that the same value is configured */ if (flags & JS_PROP_HAS_VALUE) { if (JS_VALUE_GET_TAG(val) != JS_TAG_STRING) goto fail; p2 = JS_VALUE_GET_STRING(val); if (p2->len != 1) goto fail; if (string_get(p1, idx) != string_get(p2, 0)) { fail: return JS_ThrowTypeErrorOrFalse(ctx, flags, "property is not configurable"); } } return TRUE; } else { def: return JS_DefineProperty(ctx, this_obj, prop, val, getter, setter, flags | JS_PROP_NO_EXOTIC); } }
O1
c
js_string_define_own_property: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r9, %r14 movq %rdi, %rbx movl 0x90(%rsp), %ebp movq %rsi, 0x30(%rsp) movq %r8, 0x28(%rsp) testl %ecx, %ecx jns 0x47735 movq 0x30(%rsp), %rax cmpl $-0x7, 0x38(%rax) jne 0x47735 movl %ecx, %r15d andl $0x7fffffff, %r15d # imm = 0x7FFFFFFF movq 0x30(%rax), %r12 movq 0x4(%r12), %r13 movl %r13d, %eax andl $0x7fffffff, %eax # imm = 0x7FFFFFFF cmpl %eax, %r15d jae 0x47735 movl $0x4, %edi movl %ebp, %esi callq 0x2616c testl %eax, %eax je 0x477be btl $0xd, %ebp jb 0x47775 movl $0x1, %eax jmp 0x47766 leaq 0x80(%rsp), %rax leaq 0x70(%rsp), %rdi orl $0x20000, %ebp # imm = 0x20000 movups (%rax), %xmm0 movups %xmm0, 0x10(%rsp) movups (%rdi), %xmm0 movups %xmm0, (%rsp) movl %ebp, 0x20(%rsp) movq %rbx, %rdi movq %r14, %r9 callq 0x254b9 addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xfffffff9, %eax # imm = 0xFFFFFFF9 cmpl %eax, %r14d jne 0x477be movq 0x28(%rsp), %rax movq 0x4(%rax), %rcx movl %ecx, %edx andl $0x7fffffff, %edx # imm = 0x7FFFFFFF cmpl $0x1, %edx jne 0x477be testl %r13d, %r13d js 0x477a2 movzbl 0x18(%r12,%r15), %edx jmp 0x477a8 movzwl 0x18(%r12,%r15,2), %edx testl %ecx, %ecx js 0x477b2 movzbl 0x18(%rax), %eax jmp 0x477b6 movzwl 0x18(%rax), %eax cmpl %eax, %edx je 0x4772e leaq 0x574ec(%rip), %rdx # 0x9ecb1 movq %rbx, %rdi movl %ebp, %esi xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x261e2
js_string_define_own_property: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r14, r9 mov rbx, rdi mov ebp, [rsp+68h+arg_20] mov [rsp+68h+var_38], rsi mov [rsp+68h+var_40], r8 test ecx, ecx jns short loc_47735 mov rax, [rsp+68h+var_38] cmp dword ptr [rax+38h], 0FFFFFFF9h jnz short loc_47735 mov r15d, ecx and r15d, 7FFFFFFFh mov r12, [rax+30h] mov r13, [r12+4] mov eax, r13d and eax, 7FFFFFFFh cmp r15d, eax jnb short loc_47735 mov edi, 4 mov esi, ebp call check_define_prop_flags test eax, eax jz loc_477BE bt ebp, 0Dh jb short loc_47775 loc_4772E: mov eax, 1 jmp short loc_47766 loc_47735: lea rax, [rsp+68h+arg_10] lea rdi, [rsp+68h+arg_0] or ebp, 20000h movups xmm0, xmmword ptr [rax] movups [rsp+68h+var_58], xmm0 movups xmm0, xmmword ptr [rdi] movups [rsp+68h+var_68], xmm0 mov [rsp+68h+var_48], ebp mov rdi, rbx mov r9, r14 call JS_DefineProperty loc_47766: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_47775: mov eax, 0FFFFFFF9h cmp r14d, eax jnz short loc_477BE mov rax, [rsp+68h+var_40] mov rcx, [rax+4] mov edx, ecx and edx, 7FFFFFFFh cmp edx, 1 jnz short loc_477BE test r13d, r13d js short loc_477A2 movzx edx, byte ptr [r12+r15+18h] jmp short loc_477A8 loc_477A2: movzx edx, word ptr [r12+r15*2+18h] loc_477A8: test ecx, ecx js short loc_477B2 movzx eax, byte ptr [rax+18h] jmp short loc_477B6 loc_477B2: movzx eax, word ptr [rax+18h] loc_477B6: cmp edx, eax jz loc_4772E loc_477BE: lea rdx, aPropertyIsNotC; "property is not configurable" mov rdi, rbx mov esi, ebp xor eax, eax add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp JS_ThrowTypeErrorOrFalse
long long js_string_define_own_property( long long a1, unsigned long long a2, long long a3, long long a4, long long a5, long long a6, double a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, __m128 a15, _DWORD *a16, long long a17, int a18) { int v18; // r14d long long v19; // r15 long long v20; // r12 long long v21; // r13 int v23; // edx int v24; // eax v18 = a6; if ( (int)a4 >= 0 ) return JS_DefineProperty( a1, a2, a3, a4, a5, a6, a15, a8, a9, a10, a11, a12, a13, a14, a15.m128_u64[0], a15.m128_i64[1], a16, a17, a18 | 0x20000u); if ( *(_DWORD *)(a2 + 56) != -7 ) return JS_DefineProperty( a1, a2, a3, a4, a5, a6, a15, a8, a9, a10, a11, a12, a13, a14, (_DWORD *)a15.m128_u64[0], a15.m128_i64[1], a16, a17, a18 | 0x20000u); v19 = a4 & 0x7FFFFFFF; v20 = *(_QWORD *)(a2 + 48); v21 = *(_QWORD *)(v20 + 4); if ( (unsigned int)v19 >= (*(_DWORD *)(v20 + 4) & 0x7FFFFFFFu) ) return JS_DefineProperty( a1, a2, a3, a4, a5, a6, a15, a8, a9, a10, a11, a12, a13, a14, (_DWORD *)a15.m128_u64[0], a15.m128_i64[1], a16, a17, a18 | 0x20000u); if ( (unsigned int)check_define_prop_flags(4u, a18) ) { if ( (a18 & 0x2000) == 0 ) return 1LL; if ( v18 == -7 && (*(_DWORD *)(a5 + 4) & 0x7FFFFFFF) == 1 ) { v23 = (int)v21 < 0 ? *(unsigned __int16 *)(v20 + 2 * v19 + 24) : *(unsigned __int8 *)(v20 + v19 + 24); v24 = (int)*(_QWORD *)(a5 + 4) < 0 ? *(unsigned __int16 *)(a5 + 24) : *(unsigned __int8 *)(a5 + 24); if ( v23 == v24 ) return 1LL; } } return JS_ThrowTypeErrorOrFalse(a1, a18, (long long)"property is not configurable"); }
js_string_define_own_property: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,R9 MOV RBX,RDI MOV EBP,dword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x30],RSI MOV qword ptr [RSP + 0x28],R8 TEST ECX,ECX JNS 0x00147735 MOV RAX,qword ptr [RSP + 0x30] CMP dword ptr [RAX + 0x38],-0x7 JNZ 0x00147735 MOV R15D,ECX AND R15D,0x7fffffff MOV R12,qword ptr [RAX + 0x30] MOV R13,qword ptr [R12 + 0x4] MOV EAX,R13D AND EAX,0x7fffffff CMP R15D,EAX JNC 0x00147735 MOV EDI,0x4 MOV ESI,EBP CALL 0x0012616c TEST EAX,EAX JZ 0x001477be BT EBP,0xd JC 0x00147775 LAB_0014772e: MOV EAX,0x1 JMP 0x00147766 LAB_00147735: LEA RAX,[RSP + 0x80] LEA RDI,[RSP + 0x70] OR EBP,0x20000 MOVUPS XMM0,xmmword ptr [RAX] MOVUPS xmmword ptr [RSP + 0x10],XMM0 MOVUPS XMM0,xmmword ptr [RDI] MOVUPS xmmword ptr [RSP],XMM0 MOV dword ptr [RSP + 0x20],EBP MOV RDI,RBX MOV R9,R14 CALL 0x001254b9 LAB_00147766: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00147775: MOV EAX,0xfffffff9 CMP R14D,EAX JNZ 0x001477be MOV RAX,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RAX + 0x4] MOV EDX,ECX AND EDX,0x7fffffff CMP EDX,0x1 JNZ 0x001477be TEST R13D,R13D JS 0x001477a2 MOVZX EDX,byte ptr [R12 + R15*0x1 + 0x18] JMP 0x001477a8 LAB_001477a2: MOVZX EDX,word ptr [R12 + R15*0x2 + 0x18] LAB_001477a8: TEST ECX,ECX JS 0x001477b2 MOVZX EAX,byte ptr [RAX + 0x18] JMP 0x001477b6 LAB_001477b2: MOVZX EAX,word ptr [RAX + 0x18] LAB_001477b6: CMP EDX,EAX JZ 0x0014772e LAB_001477be: LEA RDX,[0x19ecb1] MOV RDI,RBX MOV ESI,EBP XOR EAX,EAX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001261e2
int8 js_string_define_own_property (int8 param_1,long param_2,int8 param_3,uint param_4,long param_5,int param_6) { long lVar1; ushort uVar2; int iVar3; int8 uVar4; uint uVar5; ushort uVar6; uint uVar7; uint in_stack_00000028; if (((int)param_4 < 0) && (*(int *)(param_2 + 0x38) == -7)) { param_4 = param_4 & 0x7fffffff; lVar1 = *(long *)(param_2 + 0x30); uVar7 = (uint)*(int8 *)(lVar1 + 4); if (param_4 < (uVar7 & 0x7fffffff)) { iVar3 = check_define_prop_flags(4,in_stack_00000028); if (iVar3 != 0) { if ((in_stack_00000028 >> 0xd & 1) == 0) { return 1; } if ((param_6 == -7) && (uVar5 = (uint)*(int8 *)(param_5 + 4), (uVar5 & 0x7fffffff) == 1)) { if ((int)uVar7 < 0) { uVar6 = *(ushort *)(lVar1 + 0x18 + (ulong)param_4 * 2); } else { uVar6 = (ushort)*(byte *)(lVar1 + 0x18 + (ulong)param_4); } if ((int)uVar5 < 0) { uVar2 = *(ushort *)(param_5 + 0x18); } else { uVar2 = (ushort)*(byte *)(param_5 + 0x18); } if (uVar6 == uVar2) { return 1; } } } uVar4 = JS_ThrowTypeErrorOrFalse(param_1,in_stack_00000028,"property is not configurable"); return uVar4; } } uVar4 = JS_DefineProperty(param_1); return uVar4; }
36,889
js_string_define_own_property
bluesky950520[P]quickjs/quickjs.c
static int js_string_define_own_property(JSContext *ctx, JSValue this_obj, JSAtom prop, JSValue val, JSValue getter, JSValue setter, int flags) { uint32_t idx; JSObject *p; JSString *p1, *p2; if (__JS_AtomIsTaggedInt(prop)) { idx = __JS_AtomToUInt32(prop); p = JS_VALUE_GET_OBJ(this_obj); if (JS_VALUE_GET_TAG(p->u.object_data) != JS_TAG_STRING) goto def; p1 = JS_VALUE_GET_STRING(p->u.object_data); if (idx >= p1->len) goto def; if (!check_define_prop_flags(JS_PROP_ENUMERABLE, flags)) goto fail; /* check that the same value is configured */ if (flags & JS_PROP_HAS_VALUE) { if (JS_VALUE_GET_TAG(val) != JS_TAG_STRING) goto fail; p2 = JS_VALUE_GET_STRING(val); if (p2->len != 1) goto fail; if (string_get(p1, idx) != string_get(p2, 0)) { fail: return JS_ThrowTypeErrorOrFalse(ctx, flags, "property is not configurable"); } } return TRUE; } else { def: return JS_DefineProperty(ctx, this_obj, prop, val, getter, setter, flags | JS_PROP_NO_EXOTIC); } }
O2
c
js_string_define_own_property: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r9, %r15 movq %r8, %r14 movq %rdi, %rbx movl 0x90(%rsp), %ebp testl %ecx, %ecx jns 0x3dc42 cmpl $-0x7, 0x38(%rsi) jne 0x3dc42 movl %ecx, %r12d andl $0x7fffffff, %r12d # imm = 0x7FFFFFFF movq 0x30(%rsi), %rdi movq 0x4(%rdi), %r13 movl %r13d, %eax andl $0x7fffffff, %eax # imm = 0x7FFFFFFF cmpl %eax, %r12d jae 0x3dc42 movq %rdi, 0x30(%rsp) pushq $0x4 popq %rdi movl %ebp, %esi callq 0x1fc9a testl %eax, %eax je 0x3dcd5 btl $0xd, %ebp jb 0x3dc85 pushq $0x1 popq %rax jmp 0x3dc76 leaq 0x80(%rsp), %rax leaq 0x70(%rsp), %rdi orl $0x20000, %ebp # imm = 0x20000 movups (%rax), %xmm0 movups %xmm0, 0x10(%rsp) movups (%rdi), %xmm0 movups %xmm0, (%rsp) movl %ebp, 0x20(%rsp) movq %rbx, %rdi movq %r14, %r8 movq %r15, %r9 callq 0x1f1de addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xfffffff9, %eax # imm = 0xFFFFFFF9 cmpl %eax, %r15d jne 0x3dcd5 movq 0x4(%r14), %rax movl %eax, %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF cmpl $0x1, %ecx jne 0x3dcd5 testl %r13d, %r13d js 0x3dcb2 movq 0x30(%rsp), %rcx movzbl 0x18(%rcx,%r12), %ecx jmp 0x3dcbd movq 0x30(%rsp), %rcx movzwl 0x18(%rcx,%r12,2), %ecx testl %eax, %eax js 0x3dcc8 movzbl 0x18(%r14), %eax jmp 0x3dccd movzwl 0x18(%r14), %eax cmpl %eax, %ecx je 0x3dc3d leaq 0x47f25(%rip), %rdx # 0x85c01 movq %rbx, %rdi movl %ebp, %esi xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x1fd06
js_string_define_own_property: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r15, r9 mov r14, r8 mov rbx, rdi mov ebp, [rsp+68h+arg_20] test ecx, ecx jns short loc_3DC42 cmp dword ptr [rsi+38h], 0FFFFFFF9h jnz short loc_3DC42 mov r12d, ecx and r12d, 7FFFFFFFh mov rdi, [rsi+30h] mov r13, [rdi+4] mov eax, r13d and eax, 7FFFFFFFh cmp r12d, eax jnb short loc_3DC42 mov [rsp+68h+var_38], rdi push 4 pop rdi mov esi, ebp call check_define_prop_flags test eax, eax jz loc_3DCD5 bt ebp, 0Dh jb short loc_3DC85 loc_3DC3D: push 1 pop rax jmp short loc_3DC76 loc_3DC42: lea rax, [rsp+68h+arg_10] lea rdi, [rsp+68h+arg_0] or ebp, 20000h movups xmm0, xmmword ptr [rax] movups [rsp+68h+var_58], xmm0 movups xmm0, xmmword ptr [rdi] movups [rsp+68h+var_68], xmm0 mov [rsp+68h+var_48], ebp mov rdi, rbx mov r8, r14 mov r9, r15 call JS_DefineProperty loc_3DC76: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3DC85: mov eax, 0FFFFFFF9h cmp r15d, eax jnz short loc_3DCD5 mov rax, [r14+4] mov ecx, eax and ecx, 7FFFFFFFh cmp ecx, 1 jnz short loc_3DCD5 test r13d, r13d js short loc_3DCB2 mov rcx, [rsp+68h+var_38] movzx ecx, byte ptr [rcx+r12+18h] jmp short loc_3DCBD loc_3DCB2: mov rcx, [rsp+68h+var_38] movzx ecx, word ptr [rcx+r12*2+18h] loc_3DCBD: test eax, eax js short loc_3DCC8 movzx eax, byte ptr [r14+18h] jmp short loc_3DCCD loc_3DCC8: movzx eax, word ptr [r14+18h] loc_3DCCD: cmp ecx, eax jz loc_3DC3D loc_3DCD5: lea rdx, aPropertyIsNotC; "property is not configurable" mov rdi, rbx mov esi, ebp xor eax, eax add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp JS_ThrowTypeErrorOrFalse
long long js_string_define_own_property( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, double a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, __m128 a15, _DWORD *a16, unsigned int a17, int a18) { int v18; // r15d long long v20; // r12 long long v21; // r13 int v23; // ecx int v24; // eax long long v25; // [rsp+30h] [rbp-38h] v18 = a6; if ( (int)a4 >= 0 ) return JS_DefineProperty( a1, a2, a3, a4, (_DWORD *)a5, a6, a15, a8, a9, a10, a11, a12, a13, a14, a15.m128_u64[0], a15.m128_u32[2], a16, a17, a18 | 0x20000u); if ( *(_DWORD *)(a2 + 56) != -7 ) return JS_DefineProperty( a1, a2, a3, a4, (_DWORD *)a5, a6, a15, a8, a9, a10, a11, a12, a13, a14, (_DWORD *)a15.m128_u64[0], a15.m128_u32[2], a16, a17, a18 | 0x20000u); v20 = a4 & 0x7FFFFFFF; v21 = *(_QWORD *)(*(_QWORD *)(a2 + 48) + 4LL); if ( (unsigned int)v20 >= ((unsigned int)v21 & 0x7FFFFFFF) ) return JS_DefineProperty( a1, a2, a3, a4, (_DWORD *)a5, a6, a15, a8, a9, a10, a11, a12, a13, a14, (_DWORD *)a15.m128_u64[0], a15.m128_u32[2], a16, a17, a18 | 0x20000u); v25 = *(_QWORD *)(a2 + 48); if ( (unsigned int)check_define_prop_flags(4u, a18) && ((a18 & 0x2000) == 0 || v18 == -7 && (*(_DWORD *)(a5 + 4) & 0x7FFFFFFF) == 1 && ((int)v21 < 0 ? (v23 = *(unsigned __int16 *)(v25 + 2 * v20 + 24)) : (v23 = *(unsigned __int8 *)(v25 + v20 + 24)), (int)*(_QWORD *)(a5 + 4) < 0 ? (v24 = *(unsigned __int16 *)(a5 + 24)) : (v24 = *(unsigned __int8 *)(a5 + 24)), v23 == v24)) ) { return 1LL; } else { return JS_ThrowTypeErrorOrFalse(a1, a18, (long long)"property is not configurable"); } }
js_string_define_own_property: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R15,R9 MOV R14,R8 MOV RBX,RDI MOV EBP,dword ptr [RSP + 0x90] TEST ECX,ECX JNS 0x0013dc42 CMP dword ptr [RSI + 0x38],-0x7 JNZ 0x0013dc42 MOV R12D,ECX AND R12D,0x7fffffff MOV RDI,qword ptr [RSI + 0x30] MOV R13,qword ptr [RDI + 0x4] MOV EAX,R13D AND EAX,0x7fffffff CMP R12D,EAX JNC 0x0013dc42 MOV qword ptr [RSP + 0x30],RDI PUSH 0x4 POP RDI MOV ESI,EBP CALL 0x0011fc9a TEST EAX,EAX JZ 0x0013dcd5 BT EBP,0xd JC 0x0013dc85 LAB_0013dc3d: PUSH 0x1 POP RAX JMP 0x0013dc76 LAB_0013dc42: LEA RAX,[RSP + 0x80] LEA RDI,[RSP + 0x70] OR EBP,0x20000 MOVUPS XMM0,xmmword ptr [RAX] MOVUPS xmmword ptr [RSP + 0x10],XMM0 MOVUPS XMM0,xmmword ptr [RDI] MOVUPS xmmword ptr [RSP],XMM0 MOV dword ptr [RSP + 0x20],EBP MOV RDI,RBX MOV R8,R14 MOV R9,R15 CALL 0x0011f1de LAB_0013dc76: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013dc85: MOV EAX,0xfffffff9 CMP R15D,EAX JNZ 0x0013dcd5 MOV RAX,qword ptr [R14 + 0x4] MOV ECX,EAX AND ECX,0x7fffffff CMP ECX,0x1 JNZ 0x0013dcd5 TEST R13D,R13D JS 0x0013dcb2 MOV RCX,qword ptr [RSP + 0x30] MOVZX ECX,byte ptr [RCX + R12*0x1 + 0x18] JMP 0x0013dcbd LAB_0013dcb2: MOV RCX,qword ptr [RSP + 0x30] MOVZX ECX,word ptr [RCX + R12*0x2 + 0x18] LAB_0013dcbd: TEST EAX,EAX JS 0x0013dcc8 MOVZX EAX,byte ptr [R14 + 0x18] JMP 0x0013dccd LAB_0013dcc8: MOVZX EAX,word ptr [R14 + 0x18] LAB_0013dccd: CMP ECX,EAX JZ 0x0013dc3d LAB_0013dcd5: LEA RDX,[0x185c01] MOV RDI,RBX MOV ESI,EBP XOR EAX,EAX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0011fd06
int8 js_string_define_own_property (int8 param_1,long param_2,int8 param_3,uint param_4,long param_5,int param_6) { long lVar1; ushort uVar2; int iVar3; uint uVar4; int8 uVar5; ushort uVar6; uint uVar7; uint in_stack_00000028; if (((int)param_4 < 0) && (*(int *)(param_2 + 0x38) == -7)) { param_4 = param_4 & 0x7fffffff; lVar1 = *(long *)(param_2 + 0x30); uVar7 = (uint)*(int8 *)(lVar1 + 4); if (param_4 < (uVar7 & 0x7fffffff)) { iVar3 = check_define_prop_flags(4,in_stack_00000028); if (iVar3 != 0) { if ((in_stack_00000028 >> 0xd & 1) == 0) { return 1; } if ((param_6 == -7) && (uVar4 = (uint)*(int8 *)(param_5 + 4), (uVar4 & 0x7fffffff) == 1)) { if ((int)uVar7 < 0) { uVar6 = *(ushort *)(lVar1 + 0x18 + (ulong)param_4 * 2); } else { uVar6 = (ushort)*(byte *)(lVar1 + 0x18 + (ulong)param_4); } if ((int)uVar4 < 0) { uVar2 = *(ushort *)(param_5 + 0x18); } else { uVar2 = (ushort)*(byte *)(param_5 + 0x18); } if (uVar6 == uVar2) { return 1; } } } uVar5 = JS_ThrowTypeErrorOrFalse(param_1,in_stack_00000028,"property is not configurable"); return uVar5; } } uVar5 = JS_DefineProperty(param_1); return uVar5; }
36,890
my_uca_coll_init_utf8mb3
eloqsql/strings/ctype-uca.c
static my_bool my_uca_coll_init_utf8mb3(struct charset_info_st *cs, MY_CHARSET_LOADER *loader) { if (my_coll_init_uca(cs, loader)) return TRUE; if (my_uca_collation_can_optimize_no_contractions(cs)) my_uca_handler_map(cs, &my_uca_package_utf8mb3, &my_uca_package_no_contractions_utf8mb3); return FALSE; }
O3
c
my_uca_coll_init_utf8mb3: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx callq 0x73b90 movl %eax, %ecx movb $0x1, %al testb %cl, %cl jne 0x75aa4 movzbl 0xb2(%rbx), %ecx testq %rcx, %rcx je 0x75a53 movq 0x60(%rbx), %rax imulq $0x38, %rcx, %rcx xorl %edx, %edx cmpq $0x0, 0x18(%rax,%rdx) jne 0x75aa2 addq $0x38, %rdx cmpq %rdx, %rcx jne 0x75a42 movq 0xc0(%rbx), %rcx leaq 0x2f91af(%rip), %rdx # 0x36ec10 cmpq (%rdx), %rcx je 0x75a85 leaq 0x2f91c3(%rip), %rax # 0x36ec30 cmpq 0x8(%rdx), %rcx je 0x75a8e cmpq 0x10(%rdx), %rcx je 0x75a94 cmpq 0x18(%rdx), %rcx jne 0x75aa2 addq $0x18, %rax jmp 0x75a98 leaq 0x2f91a4(%rip), %rax # 0x36ec30 jmp 0x75a98 addq $0x8, %rax jmp 0x75a98 addq $0x10, %rax movq (%rax), %rax movq %rax, 0xc0(%rbx) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %rbp retq
my_uca_coll_init_utf8mb3: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi call my_coll_init_uca mov ecx, eax mov al, 1 test cl, cl jnz short loc_75AA4 movzx ecx, byte ptr [rbx+0B2h] test rcx, rcx jz short loc_75A53 mov rax, [rbx+60h] imul rcx, 38h ; '8' xor edx, edx loc_75A42: cmp qword ptr [rax+rdx+18h], 0 jnz short loc_75AA2 add rdx, 38h ; '8' cmp rcx, rdx jnz short loc_75A42 loc_75A53: mov rcx, [rbx+0C0h] lea rdx, my_uca_package_utf8mb3 cmp rcx, [rdx] jz short loc_75A85 lea rax, my_uca_package_no_contractions_utf8mb3 cmp rcx, [rdx+8] jz short loc_75A8E cmp rcx, [rdx+10h] jz short loc_75A94 cmp rcx, [rdx+18h] jnz short loc_75AA2 add rax, 18h jmp short loc_75A98 loc_75A85: lea rax, my_uca_package_no_contractions_utf8mb3 jmp short loc_75A98 loc_75A8E: add rax, 8 jmp short loc_75A98 loc_75A94: add rax, 10h loc_75A98: mov rax, [rax] mov [rbx+0C0h], rax loc_75AA2: xor eax, eax loc_75AA4: add rsp, 8 pop rbx pop rbp retn
char my_uca_coll_init_utf8mb3( long long a1, long long ( **a2)(unsigned long long, unsigned long long, const char *)) { char inited; // cl char result; // al long long v4; // rdx long long ( **v5)(); // rcx long long ( ***v6)(); // rax inited = my_coll_init_uca(a1, a2); result = 1; if ( !inited ) { if ( *(_BYTE *)(a1 + 178) ) { v4 = 0LL; while ( !*(_QWORD *)(*(_QWORD *)(a1 + 96) + v4 + 24) ) { v4 += 56LL; if ( 56LL * *(unsigned __int8 *)(a1 + 178) == v4 ) goto LABEL_6; } return 0; } LABEL_6: v5 = *(long long ( ***)())(a1 + 192); if ( v5 == my_uca_package_utf8mb3[0] ) { v6 = my_uca_package_no_contractions_utf8mb3; } else if ( v5 == my_uca_package_utf8mb3[1] ) { v6 = &my_uca_package_no_contractions_utf8mb3[1]; } else if ( v5 == my_uca_package_utf8mb3[2] ) { v6 = &my_uca_package_no_contractions_utf8mb3[2]; } else { if ( v5 != my_uca_package_utf8mb3[3] ) return 0; v6 = &my_uca_package_no_contractions_utf8mb3[3]; } *(_QWORD *)(a1 + 192) = *v6; return 0; } return result; }
my_uca_coll_init_utf8mb3: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x00173b90 MOV ECX,EAX MOV AL,0x1 TEST CL,CL JNZ 0x00175aa4 MOVZX ECX,byte ptr [RBX + 0xb2] TEST RCX,RCX JZ 0x00175a53 MOV RAX,qword ptr [RBX + 0x60] IMUL RCX,RCX,0x38 XOR EDX,EDX LAB_00175a42: CMP qword ptr [RAX + RDX*0x1 + 0x18],0x0 JNZ 0x00175aa2 ADD RDX,0x38 CMP RCX,RDX JNZ 0x00175a42 LAB_00175a53: MOV RCX,qword ptr [RBX + 0xc0] LEA RDX,[0x46ec10] CMP RCX,qword ptr [RDX] JZ 0x00175a85 LEA RAX,[0x46ec30] CMP RCX,qword ptr [RDX + 0x8] JZ 0x00175a8e CMP RCX,qword ptr [RDX + 0x10] JZ 0x00175a94 CMP RCX,qword ptr [RDX + 0x18] JNZ 0x00175aa2 ADD RAX,0x18 JMP 0x00175a98 LAB_00175a85: LEA RAX,[0x46ec30] JMP 0x00175a98 LAB_00175a8e: ADD RAX,0x8 JMP 0x00175a98 LAB_00175a94: ADD RAX,0x10 LAB_00175a98: MOV RAX,qword ptr [RAX] MOV qword ptr [RBX + 0xc0],RAX LAB_00175aa2: XOR EAX,EAX LAB_00175aa4: ADD RSP,0x8 POP RBX POP RBP RET
int8 my_uca_coll_init_utf8mb3(long param_1) { int *puVar1; char cVar2; int **ppuVar3; long lVar4; cVar2 = my_coll_init_uca(); if (cVar2 != '\0') { return 1; } if ((ulong)*(byte *)(param_1 + 0xb2) != 0) { lVar4 = 0; do { if (*(long *)(*(long *)(param_1 + 0x60) + 0x18 + lVar4) != 0) { return 0; } lVar4 = lVar4 + 0x38; } while ((ulong)*(byte *)(param_1 + 0xb2) * 0x38 - lVar4 != 0); } puVar1 = *(int **)(param_1 + 0xc0); if (puVar1 == my_uca_package_utf8mb3) { ppuVar3 = &my_uca_package_no_contractions_utf8mb3; } else if (puVar1 == PTR_my_uca_collation_handler_nopad_utf8mb3_0046ec18) { ppuVar3 = &PTR_my_uca_collation_handler_nopad_no_contractions_utf8mb3_0046ec38; } else if (puVar1 == PTR_my_uca_collation_handler_multilevel_utf8mb3_0046ec20) { ppuVar3 = &PTR_my_uca_collation_handler_multilevel_no_contractions_utf8mb3_0046ec40; } else { if (puVar1 != PTR_my_uca_collation_handler_nopad_multilevel_utf8mb3_0046ec28) { return 0; } ppuVar3 = &PTR_my_uca_collation_handler_nopad_multilevel_no_contractions_utf8mb3_0046ec48; } *(int **)(param_1 + 0xc0) = *ppuVar3; return 0; }
36,891
my_snprintf_8bit
eloqsql/strings/ctype-simple.c
size_t my_snprintf_8bit(CHARSET_INFO *cs __attribute__((unused)), char* to, size_t n __attribute__((unused)), const char* fmt, ...) { va_list args; size_t result; va_start(args,fmt); result= my_vsnprintf(to, n, fmt, args); va_end(args); return result; }
O3
c
my_snprintf_8bit: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rsi, %rdi leaq -0xd0(%rbp), %rsi movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0xb5135 movaps %xmm0, -0xa0(%rbp) movaps %xmm1, -0x90(%rbp) movaps %xmm2, -0x80(%rbp) movaps %xmm3, -0x70(%rbp) movaps %xmm4, -0x60(%rbp) movaps %xmm5, -0x50(%rbp) movaps %xmm6, -0x40(%rbp) movaps %xmm7, -0x30(%rbp) leaq -0x20(%rbp), %rax movq %rsi, 0x10(%rax) leaq 0x10(%rbp), %rsi movq %rsi, 0x8(%rax) movabsq $0x3000000020, %rsi # imm = 0x3000000020 movq %rsi, (%rax) movq %rdx, %rsi movq %rcx, %rdx movq %rax, %rcx callq 0xd6de9 addq $0xd0, %rsp popq %rbp retq
my_snprintf_8bit: push rbp mov rbp, rsp sub rsp, 0D0h mov rdi, rsi lea rsi, [rbp+var_D0] mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_B5135 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_B5135: lea rax, [rbp+var_20] mov [rax+10h], rsi lea rsi, [rbp+arg_0] mov [rax+8], rsi mov rsi, 3000000020h mov [rax], rsi mov rsi, rdx mov rdx, rcx mov rcx, rax call my_vsnprintf add rsp, 0D0h pop rbp retn
long long my_snprintf_8bit( __m128 a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, long long a9, long long a10, long long a11, long long a12, long long a13, long long a14, char a15) { char v16; // [rsp+0h] [rbp-D0h] BYREF long long v17; // [rsp+20h] [rbp-B0h] long long v18; // [rsp+28h] [rbp-A8h] __m128 v19; // [rsp+30h] [rbp-A0h] __m128 v20; // [rsp+40h] [rbp-90h] __m128 v21; // [rsp+50h] [rbp-80h] __m128 v22; // [rsp+60h] [rbp-70h] __m128 v23; // [rsp+70h] [rbp-60h] __m128 v24; // [rsp+80h] [rbp-50h] __m128 v25; // [rsp+90h] [rbp-40h] __m128 v26; // [rsp+A0h] [rbp-30h] long long v27; // [rsp+B0h] [rbp-20h] char *v28; // [rsp+B8h] [rbp-18h] char *v29; // [rsp+C0h] [rbp-10h] v19 = a1; v20 = a2; v21 = a3; v22 = a4; v23 = a5; v24 = a6; v25 = a7; v26 = a8; v17 = a13; v18 = a14; v29 = &v16; v28 = &a15; v27 = 0x3000000020LL; return my_vsnprintf(a10, a11, a12); }
my_snprintf_8bit: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 MOV RDI,RSI LEA RSI,[RBP + -0xd0] MOV qword ptr [RSI + 0x20],R8 MOV qword ptr [RSI + 0x28],R9 TEST AL,AL JZ 0x001b5135 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_001b5135: LEA RAX,[RBP + -0x20] MOV qword ptr [RAX + 0x10],RSI LEA RSI,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RSI MOV RSI,0x3000000020 MOV qword ptr [RAX],RSI MOV RSI,RDX MOV RDX,RCX MOV RCX,RAX CALL 0x001d6de9 ADD RSP,0xd0 POP RBP RET
void my_snprintf_8bit(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int1 local_d8 [32]; int8 local_b8; int8 local_b0; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int8 local_28; int1 *local_20; int1 *local_18; local_18 = local_d8; if (in_AL != '\0') { local_a8 = param_1; local_98 = param_2; local_88 = param_3; local_78 = param_4; local_68 = param_5; local_58 = param_6; local_48 = param_7; local_38 = param_8; } local_20 = &stack0x00000008; local_28 = 0x3000000020; local_b8 = param_13; local_b0 = param_14; my_vsnprintf(param_10,param_11,param_12,&local_28); return; }
36,892
char* fmt::v10::detail::write_significand<char, unsigned int, 0>(char*, unsigned int, int, int, char)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
inline auto write_significand(Char* out, UInt significand, int significand_size, int integral_size, Char decimal_point) -> Char* { if (!decimal_point) return format_decimal(out, significand, significand_size).end; out += significand_size + 1; Char* end = out; int floating_size = significand_size - integral_size; for (int i = floating_size / 2; i > 0; --i) { out -= 2; copy2(out, digits2(static_cast<std::size_t>(significand % 100))); significand /= 100; } if (floating_size % 2 != 0) { *--out = static_cast<Char>('0' + significand % 10); significand /= 10; } *--out = decimal_point; format_decimal(out - integral_size, significand, integral_size); return end; }
O0
c
char* fmt::v10::detail::write_significand<char, unsigned int, 0>(char*, unsigned int, int, int, char): subq $0x68, %rsp movb %r8b, %al movq %rdi, 0x48(%rsp) movl %esi, 0x44(%rsp) movl %edx, 0x40(%rsp) movl %ecx, 0x3c(%rsp) movb %al, 0x3b(%rsp) cmpb $0x0, 0x3b(%rsp) jne 0x9c36e movq 0x48(%rsp), %rdi movl 0x44(%rsp), %esi movl 0x40(%rsp), %edx callq 0x554a0 movq %rax, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x50(%rsp) jmp 0x9c4ae movl 0x40(%rsp), %ecx addl $0x1, %ecx movq 0x48(%rsp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, 0x48(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x20(%rsp) movl 0x40(%rsp), %eax subl 0x3c(%rsp), %eax movl %eax, 0x1c(%rsp) movl 0x1c(%rsp), %eax movl $0x2, %ecx cltd idivl %ecx movl %eax, 0x18(%rsp) cmpl $0x0, 0x18(%rsp) jle 0x9c41b movq 0x48(%rsp), %rax addq $-0x2, %rax movq %rax, 0x48(%rsp) movq 0x48(%rsp), %rax movq %rax, (%rsp) movl 0x44(%rsp), %eax movl $0x64, %ecx xorl %edx, %edx divl %ecx movl %edx, %eax movl %eax, %edi callq 0x55660 movq (%rsp), %rcx movq %rcx, 0x60(%rsp) movq %rax, 0x58(%rsp) movq 0x60(%rsp), %rax movq 0x58(%rsp), %rcx movw (%rcx), %cx movw %cx, (%rax) movl 0x44(%rsp), %eax movl $0x64, %ecx xorl %edx, %edx divl %ecx movl %eax, 0x44(%rsp) movl 0x18(%rsp), %eax addl $-0x1, %eax movl %eax, 0x18(%rsp) jmp 0x9c3ab movl 0x1c(%rsp), %eax movl $0x2, %ecx cltd idivl %ecx cmpl $0x0, %edx je 0x9c463 movl 0x44(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx addl $0x30, %edx movb %dl, %cl movq 0x48(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, 0x48(%rsp) movb %cl, -0x1(%rax) movl 0x44(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx movl %eax, 0x44(%rsp) movb 0x3b(%rsp), %cl movq 0x48(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, 0x48(%rsp) movb %cl, -0x1(%rax) movq 0x48(%rsp), %rdi movslq 0x3c(%rsp), %rcx xorl %eax, %eax subq %rcx, %rax addq %rax, %rdi movl 0x44(%rsp), %esi movl 0x3c(%rsp), %edx callq 0x554a0 movq %rax, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x50(%rsp), %rax addq $0x68, %rsp retq nopl (%rax,%rax)
_ZN3fmt3v106detail17write_significandIcjTnNSt9enable_ifIXsr3std11is_integralIT0_EE5valueEiE4typeELi0EEEPT_S8_S4_iiS7_: sub rsp, 68h mov al, r8b mov [rsp+68h+var_24+4], rdi mov dword ptr [rsp+68h+var_24], esi mov [rsp+68h+var_28], edx mov [rsp+68h+var_2C], ecx mov [rsp+68h+var_2D], al cmp [rsp+68h+var_2D], 0 jnz short loc_9C36E mov rdi, [rsp+68h+var_24+4] mov esi, dword ptr [rsp+68h+var_24]; unsigned __int64 mov edx, [rsp+68h+var_28] call _ZN3fmt3v106detail14format_decimalIcjEENS1_21format_decimal_resultIPT_EES5_T0_i; fmt::v10::detail::format_decimal<char,uint>(char *,uint,int) mov [rsp+68h+var_40], rax mov [rsp+68h+var_38], rdx mov rax, [rsp+68h+var_38] mov [rsp+68h+var_18], rax jmp loc_9C4AE loc_9C36E: mov ecx, [rsp+68h+var_28] add ecx, 1 mov rax, [rsp+68h+var_24+4] movsxd rcx, ecx add rax, rcx mov [rsp+68h+var_24+4], rax mov rax, [rsp+68h+var_24+4] mov [rsp+68h+var_48], rax mov eax, [rsp+68h+var_28] sub eax, [rsp+68h+var_2C] mov [rsp+68h+var_4C], eax mov eax, [rsp+68h+var_4C] mov ecx, 2 cdq idiv ecx mov [rsp+68h+var_50], eax loc_9C3AB: cmp [rsp+68h+var_50], 0 jle short loc_9C41B mov rax, [rsp+68h+var_24+4] add rax, 0FFFFFFFFFFFFFFFEh mov [rsp+68h+var_24+4], rax mov rax, [rsp+68h+var_24+4] mov [rsp+68h+var_68], rax mov eax, dword ptr [rsp+68h+var_24] mov ecx, 64h ; 'd' xor edx, edx div ecx mov eax, edx mov edi, eax; this call _ZN3fmt3v106detail7digits2Em; fmt::v10::detail::digits2(ulong) mov rcx, [rsp+68h+var_68] mov [rsp+68h+var_8], rcx mov [rsp+68h+var_10], rax mov rax, [rsp+68h+var_8] mov rcx, [rsp+68h+var_10] mov cx, [rcx] mov [rax], cx mov eax, dword ptr [rsp+68h+var_24] mov ecx, 64h ; 'd' xor edx, edx div ecx mov dword ptr [rsp+68h+var_24], eax mov eax, [rsp+68h+var_50] add eax, 0FFFFFFFFh mov [rsp+68h+var_50], eax jmp short loc_9C3AB loc_9C41B: mov eax, [rsp+68h+var_4C] mov ecx, 2 cdq idiv ecx cmp edx, 0 jz short loc_9C463 mov eax, dword ptr [rsp+68h+var_24] mov ecx, 0Ah xor edx, edx div ecx add edx, 30h ; '0' mov cl, dl mov rax, [rsp+68h+var_24+4] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+68h+var_24+4], rdx mov [rax-1], cl mov eax, dword ptr [rsp+68h+var_24] mov ecx, 0Ah xor edx, edx div ecx mov dword ptr [rsp+68h+var_24], eax loc_9C463: mov cl, [rsp+68h+var_2D] mov rax, [rsp+68h+var_24+4] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+68h+var_24+4], rdx mov [rax-1], cl mov rdi, [rsp+68h+var_24+4] movsxd rcx, [rsp+68h+var_2C] xor eax, eax sub rax, rcx add rdi, rax mov esi, dword ptr [rsp+68h+var_24] mov edx, [rsp+68h+var_2C] call _ZN3fmt3v106detail14format_decimalIcjEENS1_21format_decimal_resultIPT_EES5_T0_i; fmt::v10::detail::format_decimal<char,uint>(char *,uint,int) mov [rsp+68h+var_60], rax mov [rsp+68h+var_58], rdx mov rax, [rsp+68h+var_48] mov [rsp+68h+var_18], rax loc_9C4AE: mov rax, [rsp+68h+var_18] add rsp, 68h retn
_WORD * ZN3fmt3v106detail17write_significandIcjTnNSt9enable_ifIXsr3std11is_integralIT0_EE5valueEiE4typeELi0EEEPT_S8_S4_iiS7_( long long a1, unsigned int a2, int a3, int a4, char a5) { long long v5; // rdx _WORD *v6; // rax int i; // [rsp+18h] [rbp-50h] int v9; // [rsp+1Ch] [rbp-4Ch] _WORD *v10; // [rsp+20h] [rbp-48h] unsigned int v13; // [rsp+44h] [rbp-24h] _WORD *v14; // [rsp+48h] [rbp-20h] v13 = a2; if ( a5 ) { v14 = (_WORD *)(a3 + 1 + a1); v10 = v14; v9 = a3 - a4; for ( i = (a3 - a4) / 2; i > 0; --i ) { *--v14 = *(_WORD *)fmt::v10::detail::digits2((fmt::v10::detail *)(v13 % 0x64)); v13 /= 0x64u; } if ( v9 % 2 ) { v6 = v14; v14 = (_WORD *)((char *)v14 - 1); *((_BYTE *)v6 - 1) = v13 % 0xA + 48; v13 /= 0xAu; } *((_BYTE *)v14 - 1) = a5; fmt::v10::detail::format_decimal<char,unsigned int>((long long)v14 - a4 - 1, v13, a4); return v10; } else { fmt::v10::detail::format_decimal<char,unsigned int>(a1, a2, a3); return (_WORD *)v5; } }
_ZN3fmt3v106detail17write_significandIcjTnNSt9enable_ifIXsr3std11is_integralIT0_EE5valueEiE4typeELi0EEEPT_S8_S4_iiS7_: SUB RSP,0x68 MOV AL,R8B MOV qword ptr [RSP + 0x48],RDI MOV dword ptr [RSP + 0x44],ESI MOV dword ptr [RSP + 0x40],EDX MOV dword ptr [RSP + 0x3c],ECX MOV byte ptr [RSP + 0x3b],AL CMP byte ptr [RSP + 0x3b],0x0 JNZ 0x0019c36e MOV RDI,qword ptr [RSP + 0x48] MOV ESI,dword ptr [RSP + 0x44] MOV EDX,dword ptr [RSP + 0x40] CALL 0x001554a0 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x30],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x50],RAX JMP 0x0019c4ae LAB_0019c36e: MOV ECX,dword ptr [RSP + 0x40] ADD ECX,0x1 MOV RAX,qword ptr [RSP + 0x48] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x20],RAX MOV EAX,dword ptr [RSP + 0x40] SUB EAX,dword ptr [RSP + 0x3c] MOV dword ptr [RSP + 0x1c],EAX MOV EAX,dword ptr [RSP + 0x1c] MOV ECX,0x2 CDQ IDIV ECX MOV dword ptr [RSP + 0x18],EAX LAB_0019c3ab: CMP dword ptr [RSP + 0x18],0x0 JLE 0x0019c41b MOV RAX,qword ptr [RSP + 0x48] ADD RAX,-0x2 MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP],RAX MOV EAX,dword ptr [RSP + 0x44] MOV ECX,0x64 XOR EDX,EDX DIV ECX MOV EAX,EDX MOV EDI,EAX CALL 0x00155660 MOV RCX,qword ptr [RSP] MOV qword ptr [RSP + 0x60],RCX MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x60] MOV RCX,qword ptr [RSP + 0x58] MOV CX,word ptr [RCX] MOV word ptr [RAX],CX MOV EAX,dword ptr [RSP + 0x44] MOV ECX,0x64 XOR EDX,EDX DIV ECX MOV dword ptr [RSP + 0x44],EAX MOV EAX,dword ptr [RSP + 0x18] ADD EAX,-0x1 MOV dword ptr [RSP + 0x18],EAX JMP 0x0019c3ab LAB_0019c41b: MOV EAX,dword ptr [RSP + 0x1c] MOV ECX,0x2 CDQ IDIV ECX CMP EDX,0x0 JZ 0x0019c463 MOV EAX,dword ptr [RSP + 0x44] MOV ECX,0xa XOR EDX,EDX DIV ECX ADD EDX,0x30 MOV CL,DL MOV RAX,qword ptr [RSP + 0x48] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RSP + 0x48],RDX MOV byte ptr [RAX + -0x1],CL MOV EAX,dword ptr [RSP + 0x44] MOV ECX,0xa XOR EDX,EDX DIV ECX MOV dword ptr [RSP + 0x44],EAX LAB_0019c463: MOV CL,byte ptr [RSP + 0x3b] MOV RAX,qword ptr [RSP + 0x48] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RSP + 0x48],RDX MOV byte ptr [RAX + -0x1],CL MOV RDI,qword ptr [RSP + 0x48] MOVSXD RCX,dword ptr [RSP + 0x3c] XOR EAX,EAX SUB RAX,RCX ADD RDI,RAX MOV ESI,dword ptr [RSP + 0x44] MOV EDX,dword ptr [RSP + 0x3c] CALL 0x001554a0 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x50],RAX LAB_0019c4ae: MOV RAX,qword ptr [RSP + 0x50] ADD RSP,0x68 RET
char * _ZN3fmt3v106detail17write_significandIcjTnNSt9enable_ifIXsr3std11is_integralIT0_EE5valueEiE4typeELi0EEEPT_S8_S4_iiS7_ (char *param_1,uint param_2,int param_3,int param_4,char param_5) { int2 *puVar1; char *extraout_RDX; int local_50; uint local_24; char *local_20; char *local_18; if (param_5 == '\0') { fmt::v10::detail::format_decimal<char,unsigned_int>(param_1,param_2,param_3); local_18 = extraout_RDX; } else { local_18 = param_1 + (param_3 + 1); local_24 = param_2; local_20 = local_18; for (local_50 = (param_3 - param_4) / 2; 0 < local_50; local_50 = local_50 + -1) { local_20 = local_20 + -2; puVar1 = (int2 *)fmt::v10::detail::digits2((ulong)local_24 % 100); *(int2 *)local_20 = *puVar1; local_24 = local_24 / 100; } if ((param_3 - param_4) % 2 != 0) { local_20[-1] = (char)((ulong)local_24 % 10) + '0'; local_24 = local_24 / 10; local_20 = local_20 + -1; } local_20[-1] = param_5; fmt::v10::detail::format_decimal<char,unsigned_int> (local_20 + (-1 - (long)param_4),local_24,param_4); } return local_18; }
36,893
google::protobuf::compiler::python::PyiGenerator::PrintMessages(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<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&) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/python/pyi_generator.cc
void PyiGenerator::PrintMessages( const std::map<std::string, std::string>& import_map) const { // Deterministically order the descriptors. std::vector<const Descriptor*> messages; messages.reserve(file_->message_type_count()); for (int i = 0; i < file_->message_type_count(); ++i) { messages.push_back(file_->message_type(i)); } std::sort(messages.begin(), messages.end(), SortByName<Descriptor>()); for (const auto& entry : messages) { PrintMessage(*entry, false, import_map); } }
O0
cpp
google::protobuf::compiler::python::PyiGenerator::PrintMessages(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<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&) const: subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x20(%rsp) leaq 0x80(%rsp), %rdi callq 0x39b10 movq 0x20(%rsp), %rax movq 0x30(%rax), %rdi callq 0x380f0 movl %eax, 0x2c(%rsp) jmp 0xc54e5 movl 0x2c(%rsp), %eax movslq %eax, %rsi leaq 0x80(%rsp), %rdi callq 0xc6e80 jmp 0xc54fb movl $0x0, 0x70(%rsp) movq 0x20(%rsp), %rax movl 0x70(%rsp), %ecx movl %ecx, 0x18(%rsp) movq 0x30(%rax), %rdi callq 0x380f0 movl %eax, 0x1c(%rsp) jmp 0xc551f movl 0x18(%rsp), %eax movl 0x1c(%rsp), %ecx cmpl %ecx, %eax jge 0xc5591 movq 0x20(%rsp), %rax movq 0x30(%rax), %rdi movl 0x70(%rsp), %esi callq 0x38100 movq %rax, 0x10(%rsp) jmp 0xc5544 movq 0x10(%rsp), %rax movq %rax, 0x68(%rsp) leaq 0x80(%rsp), %rdi leaq 0x68(%rsp), %rsi callq 0x59110 jmp 0xc5562 jmp 0xc5564 movl 0x70(%rsp), %eax addl $0x1, %eax movl %eax, 0x70(%rsp) jmp 0xc5503 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x78(%rsp) movl %eax, 0x74(%rsp) leaq 0x80(%rsp), %rdi callq 0x39b80 jmp 0xc5658 leaq 0x80(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x3f620 movq 0x8(%rsp), %rdi movq %rax, 0x60(%rsp) callq 0x3f4a0 movq %rax, 0x58(%rsp) movq 0x60(%rsp), %rdi movq 0x58(%rsp), %rsi callq 0xc6f90 jmp 0xc55c8 leaq 0x80(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x48(%rsp), %rdi callq 0x3f620 movq %rax, 0x40(%rsp) movq 0x48(%rsp), %rdi callq 0x3f4a0 movq %rax, 0x38(%rsp) leaq 0x40(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x5f090 testb $0x1, %al jne 0xc5608 jmp 0xc5643 leaq 0x40(%rsp), %rdi callq 0x5f0d0 movq 0x20(%rsp), %rdi movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax movq (%rax), %rsi movq 0x98(%rsp), %rcx xorl %edx, %edx callq 0xc3dc0 jmp 0xc5635 jmp 0xc5637 leaq 0x40(%rsp), %rdi callq 0x5f120 jmp 0xc55f3 leaq 0x80(%rsp), %rdi callq 0x39b80 addq $0xa8, %rsp retq movq 0x78(%rsp), %rdi callq 0x21700 nopw %cs:(%rax,%rax)
_ZNK6google8protobuf8compiler6python12PyiGenerator13PrintMessagesERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4lessISA_ESaISt4pairIKSA_SA_EEE: sub rsp, 0A8h mov [rsp+0A8h+var_8], rdi mov [rsp+0A8h+var_10], rsi mov rax, [rsp+0A8h+var_8] mov [rsp+0A8h+var_88], rax lea rdi, [rsp+0A8h+var_28] call _ZNSt6vectorIPKN6google8protobuf10DescriptorESaIS4_EEC2Ev; std::vector<google::protobuf::Descriptor const*>::vector(void) mov rax, [rsp+0A8h+var_88] mov rdi, [rax+30h]; this call _ZNK6google8protobuf14FileDescriptor18message_type_countEv; google::protobuf::FileDescriptor::message_type_count(void) mov [rsp+0A8h+var_7C], eax jmp short $+2 loc_C54E5: mov eax, [rsp+0A8h+var_7C] movsxd rsi, eax lea rdi, [rsp+0A8h+var_28] call _ZNSt6vectorIPKN6google8protobuf10DescriptorESaIS4_EE7reserveEm; std::vector<google::protobuf::Descriptor const*>::reserve(ulong) jmp short $+2 loc_C54FB: mov [rsp+0A8h+var_38], 0 loc_C5503: mov rax, [rsp+0A8h+var_88] mov ecx, [rsp+0A8h+var_38] mov [rsp+0A8h+var_90], ecx mov rdi, [rax+30h]; this call _ZNK6google8protobuf14FileDescriptor18message_type_countEv; google::protobuf::FileDescriptor::message_type_count(void) mov [rsp+0A8h+var_8C], eax jmp short $+2 loc_C551F: mov eax, [rsp+0A8h+var_90] mov ecx, [rsp+0A8h+var_8C] cmp eax, ecx jge short loc_C5591 mov rax, [rsp+0A8h+var_88] mov rdi, [rax+30h]; this mov esi, [rsp+0A8h+var_38]; int call _ZNK6google8protobuf14FileDescriptor12message_typeEi; google::protobuf::FileDescriptor::message_type(int) mov [rsp+0A8h+var_98], rax jmp short $+2 loc_C5544: mov rax, [rsp+0A8h+var_98] mov [rsp+0A8h+var_40], rax lea rdi, [rsp+0A8h+var_28] lea rsi, [rsp+0A8h+var_40] call _ZNSt6vectorIPKN6google8protobuf10DescriptorESaIS4_EE9push_backEOS4_; std::vector<google::protobuf::Descriptor const*>::push_back(google::protobuf::Descriptor const*&&) jmp short $+2 loc_C5562: jmp short $+2 loc_C5564: mov eax, [rsp+0A8h+var_38] add eax, 1 mov [rsp+0A8h+var_38], eax jmp short loc_C5503 mov rcx, rax mov eax, edx mov [rsp+arg_70], rcx mov [rsp+arg_6C], eax lea rdi, [rsp+arg_78] call _ZNSt6vectorIPKN6google8protobuf10DescriptorESaIS4_EED2Ev; std::vector<google::protobuf::Descriptor const*>::~vector() jmp loc_C5658 loc_C5591: lea rdi, [rsp+0A8h+var_28] mov [rsp+0A8h+var_A0], rdi call _ZNSt6vectorIPKN6google8protobuf10DescriptorESaIS4_EE5beginEv; std::vector<google::protobuf::Descriptor const*>::begin(void) mov rdi, [rsp+0A8h+var_A0] mov [rsp+0A8h+var_48], rax call _ZNSt6vectorIPKN6google8protobuf10DescriptorESaIS4_EE3endEv; std::vector<google::protobuf::Descriptor const*>::end(void) mov [rsp+0A8h+var_50], rax mov rdi, [rsp+0A8h+var_48] mov rsi, [rsp+0A8h+var_50] call _ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPKN6google8protobuf10DescriptorESt6vectorIS6_SaIS6_EEEENS3_8compiler6python10SortByNameIS4_EEEvT_SG_T0_; std::sort<__gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>,google::protobuf::compiler::python::SortByName<google::protobuf::Descriptor>>(__gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>,__gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>,google::protobuf::compiler::python::SortByName<google::protobuf::Descriptor>) jmp short $+2 loc_C55C8: lea rax, [rsp+0A8h+var_28] mov [rsp+0A8h+var_60], rax mov rdi, [rsp+0A8h+var_60] call _ZNSt6vectorIPKN6google8protobuf10DescriptorESaIS4_EE5beginEv; std::vector<google::protobuf::Descriptor const*>::begin(void) mov [rsp+0A8h+var_68], rax mov rdi, [rsp+0A8h+var_60] call _ZNSt6vectorIPKN6google8protobuf10DescriptorESaIS4_EE3endEv; std::vector<google::protobuf::Descriptor const*>::end(void) mov [rsp+0A8h+var_70], rax loc_C55F3: lea rdi, [rsp+0A8h+var_68] lea rsi, [rsp+0A8h+var_70] call _ZN9__gnu_cxxneIPPKN6google8protobuf10DescriptorESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_; __gnu_cxx::operator!=<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>(__gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>> const&,__gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>> const&) test al, 1 jnz short loc_C5608 jmp short loc_C5643 loc_C5608: lea rdi, [rsp+0A8h+var_68] call _ZNK9__gnu_cxx17__normal_iteratorIPPKN6google8protobuf10DescriptorESt6vectorIS5_SaIS5_EEEdeEv; __gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>::operator*(void) mov rdi, [rsp+0A8h+var_88] mov [rsp+0A8h+var_78], rax mov rax, [rsp+0A8h+var_78] mov rsi, [rax] mov rcx, [rsp+0A8h+var_10] xor edx, edx call _ZNK6google8protobuf8compiler6python12PyiGenerator12PrintMessageERKNS0_10DescriptorEbRKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_St4lessISD_ESaISt4pairIKSD_SD_EEE; google::protobuf::compiler::python::PyiGenerator::PrintMessage(google::protobuf::Descriptor const&,bool,std::map<std::string,std::string> const&) jmp short $+2 loc_C5635: jmp short $+2 loc_C5637: lea rdi, [rsp+0A8h+var_68] call _ZN9__gnu_cxx17__normal_iteratorIPPKN6google8protobuf10DescriptorESt6vectorIS5_SaIS5_EEEppEv; __gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>::operator++(void) jmp short loc_C55F3 loc_C5643: lea rdi, [rsp+0A8h+var_28] call _ZNSt6vectorIPKN6google8protobuf10DescriptorESaIS4_EED2Ev; std::vector<google::protobuf::Descriptor const*>::~vector() add rsp, 0A8h retn loc_C5658: mov rdi, [rsp+arg_70] call __Unwind_Resume
long long google::protobuf::compiler::python::PyiGenerator::PrintMessages(long long a1, long long a2) { int v3; // [rsp+18h] [rbp-90h] int v4; // [rsp+2Ch] [rbp-7Ch] google::protobuf::Descriptor **v5; // [rsp+30h] [rbp-78h] long long v6; // [rsp+38h] [rbp-70h] BYREF _QWORD v7[3]; // [rsp+40h] [rbp-68h] BYREF long long v8; // [rsp+58h] [rbp-50h] long long v9; // [rsp+60h] [rbp-48h] long long v10; // [rsp+68h] [rbp-40h] BYREF int i; // [rsp+70h] [rbp-38h] long long v12[3]; // [rsp+80h] [rbp-28h] BYREF long long v13; // [rsp+98h] [rbp-10h] long long v14; // [rsp+A0h] [rbp-8h] v14 = a1; v13 = a2; std::vector<google::protobuf::Descriptor const*>::vector((long long)v12); v4 = google::protobuf::FileDescriptor::message_type_count(*(google::protobuf::FileDescriptor **)(a1 + 48)); std::vector<google::protobuf::Descriptor const*>::reserve(v12, v4); for ( i = 0; ; ++i ) { v3 = i; if ( v3 >= (int)google::protobuf::FileDescriptor::message_type_count(*(google::protobuf::FileDescriptor **)(a1 + 48)) ) break; v10 = google::protobuf::FileDescriptor::message_type(*(google::protobuf::FileDescriptor **)(a1 + 48), i); std::vector<google::protobuf::Descriptor const*>::push_back((long long)v12, (long long)&v10); } v9 = std::vector<google::protobuf::Descriptor const*>::begin((long long)v12); v8 = std::vector<google::protobuf::Descriptor const*>::end((long long)v12); std::sort<__gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>,google::protobuf::compiler::python::SortByName<google::protobuf::Descriptor>>( v9, v8); v7[1] = v12; v7[0] = std::vector<google::protobuf::Descriptor const*>::begin((long long)v12); v6 = std::vector<google::protobuf::Descriptor const*>::end((long long)v12); while ( __gnu_cxx::operator!=<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>( (long long)v7, (long long)&v6) ) { v5 = (google::protobuf::Descriptor **)__gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>::operator*((long long)v7); google::protobuf::compiler::python::PyiGenerator::PrintMessage((long long *)a1, *v5, 0, v13); __gnu_cxx::__normal_iterator<google::protobuf::Descriptor const**,std::vector<google::protobuf::Descriptor const*>>::operator++(v7); } return std::vector<google::protobuf::Descriptor const*>::~vector(v12); }
PrintMessages: SUB RSP,0xa8 MOV qword ptr [RSP + 0xa0],RDI MOV qword ptr [RSP + 0x98],RSI MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x20],RAX LEA RDI,[RSP + 0x80] CALL 0x00139b10 MOV RAX,qword ptr [RSP + 0x20] MOV RDI,qword ptr [RAX + 0x30] LAB_001c54da: CALL 0x001380f0 MOV dword ptr [RSP + 0x2c],EAX JMP 0x001c54e5 LAB_001c54e5: MOV EAX,dword ptr [RSP + 0x2c] MOVSXD RSI,EAX LEA RDI,[RSP + 0x80] CALL 0x001c6e80 JMP 0x001c54fb LAB_001c54fb: MOV dword ptr [RSP + 0x70],0x0 LAB_001c5503: MOV RAX,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RSP + 0x70] MOV dword ptr [RSP + 0x18],ECX MOV RDI,qword ptr [RAX + 0x30] CALL 0x001380f0 MOV dword ptr [RSP + 0x1c],EAX JMP 0x001c551f LAB_001c551f: MOV EAX,dword ptr [RSP + 0x18] MOV ECX,dword ptr [RSP + 0x1c] CMP EAX,ECX JGE 0x001c5591 MOV RAX,qword ptr [RSP + 0x20] MOV RDI,qword ptr [RAX + 0x30] MOV ESI,dword ptr [RSP + 0x70] CALL 0x00138100 MOV qword ptr [RSP + 0x10],RAX JMP 0x001c5544 LAB_001c5544: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x68],RAX LEA RDI,[RSP + 0x80] LEA RSI,[RSP + 0x68] CALL 0x00159110 JMP 0x001c5562 LAB_001c5562: JMP 0x001c5564 LAB_001c5564: MOV EAX,dword ptr [RSP + 0x70] ADD EAX,0x1 MOV dword ptr [RSP + 0x70],EAX JMP 0x001c5503 LAB_001c5591: LEA RDI,[RSP + 0x80] MOV qword ptr [RSP + 0x8],RDI CALL 0x0013f620 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x60],RAX CALL 0x0013f4a0 MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x58] CALL 0x001c6f90 JMP 0x001c55c8 LAB_001c55c8: LEA RAX,[RSP + 0x80] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x0013f620 MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x0013f4a0 MOV qword ptr [RSP + 0x38],RAX LAB_001c55f3: LEA RDI,[RSP + 0x40] LEA RSI,[RSP + 0x38] CALL 0x0015f090 TEST AL,0x1 JNZ 0x001c5608 JMP 0x001c5643 LAB_001c5608: LEA RDI,[RSP + 0x40] CALL 0x0015f0d0 MOV RDI,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RAX] MOV RCX,qword ptr [RSP + 0x98] XOR EDX,EDX CALL 0x001c3dc0 LAB_001c5633: JMP 0x001c5635 LAB_001c5635: JMP 0x001c5637 LAB_001c5637: LEA RDI,[RSP + 0x40] CALL 0x0015f120 JMP 0x001c55f3 LAB_001c5643: LEA RDI,[RSP + 0x80] CALL 0x00139b80 ADD RSP,0xa8 RET
/* google::protobuf::compiler::python::PyiGenerator::PrintMessages(std::map<std::__cxx11::string, std::__cxx11::string, std::less<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, std::__cxx11::string > > > const&) const */ void __thiscall google::protobuf::compiler::python::PyiGenerator::PrintMessages(PyiGenerator *this,map *param_1) { bool bVar1; int iVar2; int iVar3; int8 *puVar4; int8 local_70; int8 local_68; vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>> *local_60; int8 local_50; int8 local_48; Descriptor *local_40; int local_38; vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>> local_28 [24]; map *local_10; PyiGenerator *local_8; local_10 = param_1; local_8 = this; std:: vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>>:: vector(local_28); /* try { // try from 001c54da to 001c5632 has its CatchHandler @ 001c5571 */ iVar2 = FileDescriptor::message_type_count(*(FileDescriptor **)(this + 0x30)); std:: vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>>:: reserve(local_28,(long)iVar2); local_38 = 0; while( true ) { iVar2 = local_38; iVar3 = FileDescriptor::message_type_count(*(FileDescriptor **)(this + 0x30)); if (iVar3 <= iVar2) break; local_40 = (Descriptor *) FileDescriptor::message_type(*(FileDescriptor **)(this + 0x30),local_38); std:: vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>> ::push_back(local_28,&local_40); local_38 = local_38 + 1; } local_48 = std:: vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>> ::begin(local_28); local_50 = std:: vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>> ::end(local_28); std:: sort<__gnu_cxx::__normal_iterator<google::protobuf::Descriptor_const**,std::vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>>>,google::protobuf::compiler::python::SortByName<google::protobuf::Descriptor>> (local_48,local_50); local_60 = local_28; local_68 = std:: vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>> ::begin(local_60); local_70 = std:: vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>> ::end(local_60); while( true ) { bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_68,(__normal_iterator *)&local_70); if (!bVar1) break; puVar4 = (int8 *) __gnu_cxx:: __normal_iterator<google::protobuf::Descriptor_const**,std::vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>>> ::operator*((__normal_iterator<google::protobuf::Descriptor_const**,std::vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>>> *)&local_68); PrintMessage(this,(Descriptor *)*puVar4,false,local_10); __gnu_cxx:: __normal_iterator<google::protobuf::Descriptor_const**,std::vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>>> ::operator++((__normal_iterator<google::protobuf::Descriptor_const**,std::vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>>> *)&local_68); } std:: vector<google::protobuf::Descriptor_const*,std::allocator<google::protobuf::Descriptor_const*>>:: ~vector(local_28); return; }
36,894
js_worker_ctor
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_worker_ctor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSRuntime *rt = JS_GetRuntime(ctx); WorkerFuncArgs *args = NULL; pthread_t tid; pthread_attr_t attr; JSValue obj = JS_UNDEFINED; int ret; const char *filename = NULL, *basename; JSAtom basename_atom; /* XXX: in order to avoid problems with resource liberation, we don't support creating workers inside workers */ if (!is_main_thread(rt)) return JS_ThrowTypeError(ctx, "cannot create a worker inside a worker"); /* base name, assuming the calling function is a normal JS function */ basename_atom = JS_GetScriptOrModuleName(ctx, 1); if (basename_atom == JS_ATOM_NULL) { return JS_ThrowTypeError(ctx, "could not determine calling script or module name"); } basename = JS_AtomToCString(ctx, basename_atom); JS_FreeAtom(ctx, basename_atom); if (!basename) goto fail; /* module name */ filename = JS_ToCString(ctx, argv[0]); if (!filename) goto fail; args = malloc(sizeof(*args)); if (!args) goto oom_fail; memset(args, 0, sizeof(*args)); args->filename = strdup(filename); args->basename = strdup(basename); /* ports */ args->recv_pipe = js_new_message_pipe(); if (!args->recv_pipe) goto oom_fail; args->send_pipe = js_new_message_pipe(); if (!args->send_pipe) goto oom_fail; obj = js_worker_ctor_internal(ctx, new_target, args->send_pipe, args->recv_pipe); if (JS_IsException(obj)) goto fail; pthread_attr_init(&attr); /* no join at the end */ pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); // musl libc gives threads 80 kb stacks, much smaller than // JS_DEFAULT_STACK_SIZE (1 MB) pthread_attr_setstacksize(&attr, 2 << 20); // 2 MB, glibc default ret = pthread_create(&tid, &attr, worker_func, args); pthread_attr_destroy(&attr); if (ret != 0) { JS_ThrowTypeError(ctx, "could not create worker"); goto fail; } JS_FreeCString(ctx, basename); JS_FreeCString(ctx, filename); return obj; oom_fail: JS_ThrowOutOfMemory(ctx); fail: JS_FreeCString(ctx, basename); JS_FreeCString(ctx, filename); if (args) { free(args->filename); free(args->basename); js_free_message_pipe(args->recv_pipe); js_free_message_pipe(args->send_pipe); free(args); } JS_FreeValue(ctx, obj); return JS_EXCEPTION; }
O2
c
js_worker_ctor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r8, %r13 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx callq 0x1dd35 movq %rax, %rdi callq 0x16e72 testl %eax, %eax je 0x16854 pushq $0x1 popq %rsi movq %rbx, %rdi callq 0x2cfd0 testl %eax, %eax je 0x16867 movl %eax, %ebp movq %r14, 0x10(%rsp) movq %rbx, %rdi movl %eax, %esi callq 0x1e56f movq %rax, %r12 movq %rbx, %rdi movl %ebp, %esi callq 0x1e545 pushq $0x3 popq %r14 movq %r12, 0x8(%rsp) testq %r12, %r12 je 0x1685d movq (%r13), %rsi movq 0x8(%r13), %rdx movq %rbx, %rdi callq 0x1561c testq %rax, %rax je 0x1685d movq %rax, %r13 pushq $0x1 popq %rdi pushq $0x20 popq %rsi callq 0xe560 movq %rax, %rbp testq %rax, %rax je 0x1688d movq %r13, %rdi callq 0xe9c0 movq %rax, (%rbp) movq 0x8(%rsp), %rdi callq 0xe9c0 movq %rax, 0x8(%rbp) callq 0x16e86 movq %rax, 0x10(%rbp) testq %rax, %rax je 0x1688d callq 0x16e86 movq %rax, 0x18(%rbp) testq %rax, %rax je 0x1688d movq 0x10(%rbp), %r8 movq %rbx, %rdi movq %r15, %rsi movq 0x10(%rsp), %rdx movq %rax, %rcx callq 0x1693a movq %rax, %r12 movq %rdx, %r14 cmpl $0x6, %r14d je 0x16898 leaq 0x20(%rsp), %r15 movq %r15, %rdi callq 0xe4f0 pushq $0x1 popq %rsi movq %r15, %rdi callq 0xe6c0 movl $0x200000, %esi # imm = 0x200000 movq %r15, %rdi callq 0xea90 leaq 0x6d6(%rip), %rdx # 0x16ef1 leaq 0x18(%rsp), %rdi movq %r15, %rsi movq %rbp, %rcx callq 0xe7a0 movl %eax, %r15d leaq 0x20(%rsp), %rdi callq 0xe900 testl %r15d, %r15d je 0x16910 leaq 0x6f7ec(%rip), %rsi # 0x86034 movq %rbx, %rdi xorl %eax, %eax callq 0x201fd jmp 0x16898 leaq 0x6f780(%rip), %rsi # 0x85fdb jmp 0x1686e xorl %r13d, %r13d xorl %r12d, %r12d xorl %ebp, %ebp jmp 0x16898 leaq 0x6f794(%rip), %rsi # 0x86002 movq %rbx, %rdi xorl %eax, %eax callq 0x201fd movq %rax, %r12 movq %rdx, %r14 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx jmp 0x168f8 movq %rbx, %rdi callq 0x1ad90 xorl %r12d, %r12d movq %rbx, %rdi movq 0x8(%rsp), %rsi callq 0x1ec07 movq %rbx, %rdi movq %r13, %rsi callq 0x1ec07 testq %rbp, %rbp je 0x168e1 movq (%rbp), %rdi callq 0xe060 movq 0x8(%rbp), %rdi callq 0xe060 movq 0x10(%rbp), %rdi callq 0x13f10 movq 0x18(%rbp), %rdi callq 0x13f10 movq %rbp, %rdi callq 0xe060 movq %rbx, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x1bbce pushq $0x6 popq %r14 xorl %r12d, %r12d xorl %ecx, %ecx movl %r12d, %eax orq %rcx, %rax movq %r14, %rdx addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi movq 0x8(%rsp), %rsi callq 0x1ec07 movq %rbx, %rdi movq %r13, %rsi callq 0x1ec07 movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 movq %r12, %rcx jmp 0x16888
js_worker_ctor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r13, r8 mov r14, rdx mov r15, rsi mov rbx, rdi call JS_GetRuntime mov rdi, rax call is_main_thread test eax, eax jz loc_16854 push 1 pop rsi mov rdi, rbx call JS_GetScriptOrModuleName test eax, eax jz loc_16867 mov ebp, eax mov [rsp+88h+var_78], r14 mov rdi, rbx mov esi, eax call JS_AtomToCString mov r12, rax mov rdi, rbx mov esi, ebp call JS_FreeAtom push 3 pop r14 mov [rsp+88h+var_80], r12 test r12, r12 jz loc_1685D mov rsi, [r13+0] mov rdx, [r13+8] mov rdi, rbx call JS_ToCString_0 test rax, rax jz loc_1685D mov r13, rax push 1 pop rdi push 20h ; ' ' pop rsi call _calloc mov rbp, rax test rax, rax jz loc_1688D mov rdi, r13 call _strdup mov [rbp+0], rax mov rdi, [rsp+88h+var_80] call _strdup mov [rbp+8], rax call js_new_message_pipe mov [rbp+10h], rax test rax, rax jz loc_1688D call js_new_message_pipe mov [rbp+18h], rax test rax, rax jz loc_1688D mov r8, [rbp+10h] mov rdi, rbx mov rsi, r15 mov rdx, [rsp+88h+var_78] mov rcx, rax call js_worker_ctor_internal mov r12, rax mov r14, rdx cmp r14d, 6 jz loc_16898 lea r15, [rsp+88h+var_68] mov rdi, r15 call _pthread_attr_init push 1 pop rsi mov rdi, r15 call _pthread_attr_setdetachstate mov esi, 200000h mov rdi, r15 call _pthread_attr_setstacksize lea rdx, worker_func lea rdi, [rsp+88h+var_70] mov rsi, r15 mov rcx, rbp call _pthread_create mov r15d, eax lea rdi, [rsp+88h+var_68] call _pthread_attr_destroy test r15d, r15d jz loc_16910 lea rsi, aCouldNotCreate; "could not create worker" mov rdi, rbx xor eax, eax call JS_ThrowTypeError jmp short loc_16898 loc_16854: lea rsi, aCannotCreateAW; "cannot create a worker inside a worker" jmp short loc_1686E loc_1685D: xor r13d, r13d xor r12d, r12d xor ebp, ebp jmp short loc_16898 loc_16867: lea rsi, aCouldNotDeterm; "could not determine calling script or m"... loc_1686E: mov rdi, rbx xor eax, eax call JS_ThrowTypeError mov r12, rax mov r14, rdx mov rcx, 0FFFFFFFF00000000h loc_16888: and rcx, rax jmp short loc_168F8 loc_1688D: mov rdi, rbx call JS_ThrowOutOfMemory xor r12d, r12d loc_16898: mov rdi, rbx mov rsi, [rsp+88h+var_80] call JS_FreeCString mov rdi, rbx mov rsi, r13 call JS_FreeCString test rbp, rbp jz short loc_168E1 mov rdi, [rbp+0] call _free mov rdi, [rbp+8] call _free mov rdi, [rbp+10h] call js_free_message_pipe mov rdi, [rbp+18h] call js_free_message_pipe mov rdi, rbp call _free loc_168E1: mov rdi, rbx mov rsi, r12 mov rdx, r14 call JS_FreeValue push 6 pop r14 xor r12d, r12d xor ecx, ecx loc_168F8: mov eax, r12d or rax, rcx mov rdx, r14 add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_16910: mov rdi, rbx mov rsi, [rsp+88h+var_80] call JS_FreeCString mov rdi, rbx mov rsi, r13 call JS_FreeCString mov rax, 0FFFFFFFF00000000h mov rcx, r12 jmp loc_16888
unsigned long long js_worker_ctor(long long a1, long long a2, long long a3, long long a4, long long *a5) { long long Runtime; // rax int v8; // edx int v9; // ecx int v10; // r8d int v11; // r9d unsigned int ScriptOrModuleName; // eax unsigned int v13; // ebp long long v14; // r12 long long v15; // rax long long v16; // r13 _QWORD *v17; // rbp long long v18; // rax long long v19; // rax long long v20; // r12 int v21; // edx int v22; // r15d int v23; // edx int v24; // ecx int v25; // r8d int v26; // r9d const char *v27; // rsi long long v28; // rax unsigned long long v29; // rcx unsigned long long v30; // rcx long long v32; // [rsp+8h] [rbp-80h] char v33[8]; // [rsp+18h] [rbp-70h] BYREF _BYTE v34[104]; // [rsp+20h] [rbp-68h] BYREF Runtime = JS_GetRuntime(a1); if ( !(unsigned int)is_main_thread(Runtime) ) { v27 = "cannot create a worker inside a worker"; LABEL_14: v28 = JS_ThrowTypeError(a1, (_DWORD)v27, v8, v9, v10, v11); LODWORD(v20) = v28; v29 = 0xFFFFFFFF00000000LL; goto LABEL_15; } ScriptOrModuleName = JS_GetScriptOrModuleName(a1, 1LL); if ( !ScriptOrModuleName ) { v27 = "could not determine calling script or module name"; goto LABEL_14; } v13 = ScriptOrModuleName; v14 = JS_AtomToCString(a1, ScriptOrModuleName); JS_FreeAtom(a1, v13); v32 = v14; if ( !v14 || (v15 = JS_ToCString_0(a1, *a5, a5[1])) == 0 ) { v16 = 0LL; v20 = 0LL; v17 = 0LL; goto LABEL_17; } v16 = v15; v17 = (_QWORD *)calloc(1LL, 32LL); if ( !v17 || (*v17 = strdup(v16), v17[1] = strdup(v14), v18 = js_new_message_pipe(), (v17[2] = v18) == 0LL) || (v19 = js_new_message_pipe(), (v17[3] = v19) == 0LL) ) { JS_ThrowOutOfMemory(a1); v20 = 0LL; goto LABEL_17; } v20 = js_worker_ctor_internal(a1, a2, a3); if ( v21 != 6 ) { pthread_attr_init(v34); pthread_attr_setdetachstate(v34, 1LL); pthread_attr_setstacksize(v34, 0x200000LL); v22 = pthread_create(v33, v34, worker_func, v17); pthread_attr_destroy(v34); if ( v22 ) { JS_ThrowTypeError(a1, (unsigned int)"could not create worker", v23, v24, v25, v26); goto LABEL_17; } JS_FreeCString(a1, v32); JS_FreeCString(a1, v16); v28 = 0xFFFFFFFF00000000LL; v29 = v20; LABEL_15: v30 = v28 & v29; return v30 | (unsigned int)v20; } LABEL_17: JS_FreeCString(a1, v32); JS_FreeCString(a1, v16); if ( v17 ) { free(*v17); free(v17[1]); js_free_message_pipe(v17[2]); js_free_message_pipe(v17[3]); free(v17); } JS_FreeValue(a1, v20); LODWORD(v20) = 0; v30 = 0LL; return v30 | (unsigned int)v20; }
js_worker_ctor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R13,R8 MOV R14,RDX MOV R15,RSI MOV RBX,RDI CALL 0x0011dd35 MOV RDI,RAX CALL 0x00116e72 TEST EAX,EAX JZ 0x00116854 PUSH 0x1 POP RSI MOV RDI,RBX CALL 0x0012cfd0 TEST EAX,EAX JZ 0x00116867 MOV EBP,EAX MOV qword ptr [RSP + 0x10],R14 MOV RDI,RBX MOV ESI,EAX CALL 0x0011e56f MOV R12,RAX MOV RDI,RBX MOV ESI,EBP CALL 0x0011e545 PUSH 0x3 POP R14 MOV qword ptr [RSP + 0x8],R12 TEST R12,R12 JZ 0x0011685d MOV RSI,qword ptr [R13] MOV RDX,qword ptr [R13 + 0x8] MOV RDI,RBX CALL 0x0011561c TEST RAX,RAX JZ 0x0011685d MOV R13,RAX PUSH 0x1 POP RDI PUSH 0x20 POP RSI CALL 0x0010e560 MOV RBP,RAX TEST RAX,RAX JZ 0x0011688d MOV RDI,R13 CALL 0x0010e9c0 MOV qword ptr [RBP],RAX MOV RDI,qword ptr [RSP + 0x8] CALL 0x0010e9c0 MOV qword ptr [RBP + 0x8],RAX CALL 0x00116e86 MOV qword ptr [RBP + 0x10],RAX TEST RAX,RAX JZ 0x0011688d CALL 0x00116e86 MOV qword ptr [RBP + 0x18],RAX TEST RAX,RAX JZ 0x0011688d MOV R8,qword ptr [RBP + 0x10] MOV RDI,RBX MOV RSI,R15 MOV RDX,qword ptr [RSP + 0x10] MOV RCX,RAX CALL 0x0011693a MOV R12,RAX MOV R14,RDX CMP R14D,0x6 JZ 0x00116898 LEA R15,[RSP + 0x20] MOV RDI,R15 CALL 0x0010e4f0 PUSH 0x1 POP RSI MOV RDI,R15 CALL 0x0010e6c0 MOV ESI,0x200000 MOV RDI,R15 CALL 0x0010ea90 LEA RDX,[0x116ef1] LEA RDI,[RSP + 0x18] MOV RSI,R15 MOV RCX,RBP CALL 0x0010e7a0 MOV R15D,EAX LEA RDI,[RSP + 0x20] CALL 0x0010e900 TEST R15D,R15D JZ 0x00116910 LEA RSI,[0x186034] MOV RDI,RBX XOR EAX,EAX CALL 0x001201fd JMP 0x00116898 LAB_00116854: LEA RSI,[0x185fdb] JMP 0x0011686e LAB_0011685d: XOR R13D,R13D XOR R12D,R12D XOR EBP,EBP JMP 0x00116898 LAB_00116867: LEA RSI,[0x186002] LAB_0011686e: MOV RDI,RBX XOR EAX,EAX CALL 0x001201fd MOV R12,RAX MOV R14,RDX MOV RCX,-0x100000000 LAB_00116888: AND RCX,RAX JMP 0x001168f8 LAB_0011688d: MOV RDI,RBX CALL 0x0011ad90 XOR R12D,R12D LAB_00116898: MOV RDI,RBX MOV RSI,qword ptr [RSP + 0x8] CALL 0x0011ec07 MOV RDI,RBX MOV RSI,R13 CALL 0x0011ec07 TEST RBP,RBP JZ 0x001168e1 MOV RDI,qword ptr [RBP] CALL 0x0010e060 MOV RDI,qword ptr [RBP + 0x8] CALL 0x0010e060 MOV RDI,qword ptr [RBP + 0x10] CALL 0x00113f10 MOV RDI,qword ptr [RBP + 0x18] CALL 0x00113f10 MOV RDI,RBP CALL 0x0010e060 LAB_001168e1: MOV RDI,RBX MOV RSI,R12 MOV RDX,R14 CALL 0x0011bbce PUSH 0x6 POP R14 XOR R12D,R12D XOR ECX,ECX LAB_001168f8: MOV EAX,R12D OR RAX,RCX MOV RDX,R14 ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00116910: MOV RDI,RBX MOV RSI,qword ptr [RSP + 0x8] CALL 0x0011ec07 MOV RDI,RBX MOV RSI,R13 CALL 0x0011ec07 MOV RAX,-0x100000000 MOV RCX,R12 JMP 0x00116888
int1 [16] js_worker_ctor(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 *param_5) { int iVar1; int8 uVar2; char *pcVar3; char *__s; int8 *__arg; char *pcVar4; long lVar5; ulong uVar6; ulong uVar7; int1 auVar8 [16]; int1 auVar9 [16]; pthread_t local_70; pthread_attr_t local_68; uVar2 = JS_GetRuntime(); iVar1 = is_main_thread(uVar2); if (iVar1 == 0) { pcVar3 = "cannot create a worker inside a worker"; LAB_0011686e: auVar8 = JS_ThrowTypeError(param_1,pcVar3); uVar6 = auVar8._0_8_; uVar7 = 0xffffffff00000000; } else { iVar1 = JS_GetScriptOrModuleName(param_1,1); if (iVar1 == 0) { pcVar3 = "could not determine calling script or module name"; goto LAB_0011686e; } pcVar3 = (char *)JS_AtomToCString(param_1,iVar1); JS_FreeAtom(param_1,iVar1); if (pcVar3 == (char *)0x0) { LAB_0011685d: __s = (char *)0x0; auVar8 = ZEXT816(3) << 0x40; __arg = (int8 *)0x0; LAB_00116898: JS_FreeCString(param_1,pcVar3); JS_FreeCString(param_1,__s); if (__arg != (int8 *)0x0) { free((void *)*__arg); free((void *)__arg[1]); js_free_message_pipe(__arg[2]); js_free_message_pipe(__arg[3]); free(__arg); } JS_FreeValue(param_1,auVar8._0_8_,auVar8._8_8_); auVar8 = ZEXT816(6) << 0x40; uVar7 = 0; goto LAB_001168f8; } __s = (char *)JS_ToCString(param_1,*param_5,param_5[1]); if (__s == (char *)0x0) goto LAB_0011685d; __arg = (int8 *)calloc(1,0x20); if (__arg == (int8 *)0x0) { LAB_0011688d: JS_ThrowOutOfMemory(param_1); auVar8 = ZEXT816(3) << 0x40; goto LAB_00116898; } pcVar4 = strdup(__s); *__arg = pcVar4; pcVar4 = strdup(pcVar3); __arg[1] = pcVar4; lVar5 = js_new_message_pipe(); __arg[2] = lVar5; if (lVar5 == 0) goto LAB_0011688d; lVar5 = js_new_message_pipe(); __arg[3] = lVar5; if (lVar5 == 0) goto LAB_0011688d; auVar8 = js_worker_ctor_internal(param_1,param_2,param_3,lVar5,__arg[2]); uVar7 = auVar8._0_8_; if (auVar8._8_4_ == 6) goto LAB_00116898; pthread_attr_init(&local_68); pthread_attr_setdetachstate(&local_68,1); pthread_attr_setstacksize(&local_68,0x200000); iVar1 = pthread_create(&local_70,&local_68,worker_func,__arg); pthread_attr_destroy(&local_68); if (iVar1 != 0) { JS_ThrowTypeError(param_1,"could not create worker"); goto LAB_00116898; } JS_FreeCString(param_1,pcVar3); JS_FreeCString(param_1,__s); uVar6 = 0xffffffff00000000; } uVar7 = uVar7 & uVar6; LAB_001168f8: auVar9._0_8_ = auVar8._0_8_ & 0xffffffff | uVar7; auVar9._8_8_ = auVar8._8_8_; return auVar9; }
36,895
stmt_buffered_fetch
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
static int stmt_buffered_fetch(MYSQL_STMT *stmt, uchar **row) { if (!stmt->result_cursor) { *row= NULL; stmt->state= MYSQL_STMT_FETCH_DONE; return MYSQL_NO_DATA; } stmt->state= MYSQL_STMT_USER_FETCHING; *row= (uchar *)stmt->result_cursor->data; stmt->result_cursor= stmt->result_cursor->next; return 0; }
O0
c
stmt_buffered_fetch: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, 0xe0(%rax) jne 0x4f1a9 movq -0x18(%rbp), %rax movq $0x0, (%rax) movq -0x10(%rbp), %rax movl $0x6, 0x50(%rax) movl $0x64, -0x4(%rbp) jmp 0x4f1ea movq -0x10(%rbp), %rax movl $0x5, 0x50(%rax) movq -0x10(%rbp), %rax movq 0xe0(%rax), %rax movq 0x8(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq 0xe0(%rax), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0xe0(%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nop
stmt_buffered_fetch: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] cmp qword ptr [rax+0E0h], 0 jnz short loc_4F1A9 mov rax, [rbp+var_18] mov qword ptr [rax], 0 mov rax, [rbp+var_10] mov dword ptr [rax+50h], 6 mov [rbp+var_4], 64h ; 'd' jmp short loc_4F1EA loc_4F1A9: mov rax, [rbp+var_10] mov dword ptr [rax+50h], 5 mov rax, [rbp+var_10] mov rax, [rax+0E0h] mov rcx, [rax+8] mov rax, [rbp+var_18] mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax+0E0h] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+0E0h], rcx mov [rbp+var_4], 0 loc_4F1EA: mov eax, [rbp+var_4] pop rbp retn
long long stmt_buffered_fetch(long long a1, _QWORD *a2) { if ( *(_QWORD *)(a1 + 224) ) { *(_DWORD *)(a1 + 80) = 5; *a2 = *(_QWORD *)(*(_QWORD *)(a1 + 224) + 8LL); *(_QWORD *)(a1 + 224) = **(_QWORD **)(a1 + 224); return 0; } else { *a2 = 0LL; *(_DWORD *)(a1 + 80) = 6; return 100; } }
stmt_buffered_fetch: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0xe0],0x0 JNZ 0x0014f1a9 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x50],0x6 MOV dword ptr [RBP + -0x4],0x64 JMP 0x0014f1ea LAB_0014f1a9: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x50],0x5 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xe0] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xe0] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xe0],RCX MOV dword ptr [RBP + -0x4],0x0 LAB_0014f1ea: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 stmt_buffered_fetch(long param_1,int8 *param_2) { int4 local_c; if (*(long *)(param_1 + 0xe0) == 0) { *param_2 = 0; *(int4 *)(param_1 + 0x50) = 6; local_c = 100; } else { *(int4 *)(param_1 + 0x50) = 5; *param_2 = *(int8 *)(*(long *)(param_1 + 0xe0) + 8); *(int8 *)(param_1 + 0xe0) = **(int8 **)(param_1 + 0xe0); local_c = 0; } return local_c; }
36,896
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; }
O3
c
pvio_socket_async_read: pushq %rbp movq %rsp, %rbp testq %rdi, %rdi je 0x31a30 movq (%rdi), %rax testq %rax, %rax je 0x31a30 movl (%rax), %edi movl $0x40, %ecx popq %rbp jmp 0x13170 movq $-0x1, %rax popq %rbp retq
pvio_socket_async_read: push rbp mov rbp, rsp test rdi, rdi jz short loc_31A30 mov rax, [rdi] test rax, rax jz short loc_31A30 mov edi, [rax] mov ecx, 40h ; '@' pop rbp jmp _recv loc_31A30: mov rax, 0FFFFFFFFFFFFFFFFh 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 TEST RDI,RDI JZ 0x00131a30 MOV RAX,qword ptr [RDI] TEST RAX,RAX JZ 0x00131a30 MOV EDI,dword ptr [RAX] MOV ECX,0x40 POP RBP JMP 0x00113170 LAB_00131a30: MOV RAX,-0x1 POP RBP RET
ssize_t pvio_socket_async_read(int8 *param_1,void *param_2,size_t param_3) { ssize_t sVar1; if ((param_1 != (int8 *)0x0) && ((int *)*param_1 != (int *)0x0)) { sVar1 = recv(*(int *)*param_1,param_2,param_3,0x40); return sVar1; } return -1; }
36,897
inline_mysql_cond_destroy
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_cond_destroy( mysql_cond_t *that) { #ifdef HAVE_PSI_COND_INTERFACE if (psi_likely(that->m_psi != NULL)) { PSI_COND_CALL(destroy_cond)(that->m_psi); that->m_psi= NULL; } #endif return pthread_cond_destroy(&that->m_cond); }
O0
c
inline_mysql_cond_destroy: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x30(%rax) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x84014 leaq 0x1bb3d1(%rip), %rax # 0x23f3c8 movq (%rax), %rax movq 0x68(%rax), %rax movq -0x8(%rbp), %rcx movq 0x30(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rax movq $0x0, 0x30(%rax) movq -0x8(%rbp), %rdi callq 0x28760 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_cond_destroy_0: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+30h], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_84014 lea rax, PSI_server mov rax, [rax] mov rax, [rax+68h] mov rcx, [rbp+var_8] mov rdi, [rcx+30h] call rax mov rax, [rbp+var_8] mov qword ptr [rax+30h], 0 loc_84014: mov rdi, [rbp+var_8] call _pthread_cond_destroy add rsp, 10h pop rbp retn
long long inline_mysql_cond_destroy_0(long long a1) { if ( *(_QWORD *)(a1 + 48) ) { (*((void ( **)(_QWORD))PSI_server + 13))(*(_QWORD *)(a1 + 48)); *(_QWORD *)(a1 + 48) = 0LL; } return pthread_cond_destroy(a1); }
inline_mysql_cond_destroy: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x30],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00184014 LEA RAX,[0x33f3c8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x68] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x30] CALL RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x30],0x0 LAB_00184014: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00128760 ADD RSP,0x10 POP RBP RET
void inline_mysql_cond_destroy(pthread_cond_t *param_1) { if (param_1[1].__align != 0) { (**(code **)(PSI_server + 0x68))(param_1[1].__align); param_1[1].__align = 0; } pthread_cond_destroy(param_1); return; }
36,898
find_longest_bitstream
eloqsql/storage/myisam/mi_packrec.c
static uint find_longest_bitstream(uint16 *table, uint16 *end) { uint length= 1; uint length2; if (!(*table & IS_CHAR)) { uint16 *next= table + *table; if (next > end || next == table) { DBUG_PRINT("error", ("ERROR: illegal pointer in decode tree")); return OFFSET_TABLE_SIZE; } length= find_longest_bitstream(next, end) + 1; } table++; if (!(*table & IS_CHAR)) { uint16 *next= table + *table; if (next > end || next == table) { DBUG_PRINT("error", ("ERROR: illegal pointer in decode tree")); return OFFSET_TABLE_SIZE; } length2= find_longest_bitstream(next, end) + 1; length=MY_MAX(length,length2); } return length; }
O0
c
find_longest_bitstream: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl $0x1, -0x1c(%rbp) movq -0x10(%rbp), %rax movzwl (%rax), %eax andl $0x8000, %eax # imm = 0x8000 cmpl $0x0, %eax jne 0xbbda7 movq -0x10(%rbp), %rax movq -0x10(%rbp), %rcx movzwl (%rcx), %ecx movslq %ecx, %rcx shlq %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq -0x18(%rbp), %rax ja 0xbbd84 movq -0x28(%rbp), %rax cmpq -0x10(%rbp), %rax jne 0xbbd94 jmp 0xbbd86 jmp 0xbbd88 movl $0x200, -0x4(%rbp) # imm = 0x200 jmp 0xbbe32 movq -0x28(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0xbbd30 addl $0x1, %eax movl %eax, -0x1c(%rbp) movq -0x10(%rbp), %rax addq $0x2, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movzwl (%rax), %eax andl $0x8000, %eax # imm = 0x8000 cmpl $0x0, %eax jne 0xbbe2c movq -0x10(%rbp), %rax movq -0x10(%rbp), %rcx movzwl (%rcx), %ecx movslq %ecx, %rcx shlq %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x18(%rbp), %rax ja 0xbbdf0 movq -0x30(%rbp), %rax cmpq -0x10(%rbp), %rax jne 0xbbdfd jmp 0xbbdf2 jmp 0xbbdf4 movl $0x200, -0x4(%rbp) # imm = 0x200 jmp 0xbbe32 movq -0x30(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0xbbd30 addl $0x1, %eax movl %eax, -0x20(%rbp) movl -0x1c(%rbp), %eax cmpl -0x20(%rbp), %eax jbe 0xbbe20 movl -0x1c(%rbp), %eax movl %eax, -0x34(%rbp) jmp 0xbbe26 movl -0x20(%rbp), %eax movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopl (%rax,%rax)
find_longest_bitstream_0: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], 1 mov rax, [rbp+var_10] movzx eax, word ptr [rax] and eax, 8000h cmp eax, 0 jnz short loc_BBDA7 mov rax, [rbp+var_10] mov rcx, [rbp+var_10] movzx ecx, word ptr [rcx] movsxd rcx, ecx shl rcx, 1 add rax, rcx mov [rbp+var_28], rax mov rax, [rbp+var_28] cmp rax, [rbp+var_18] ja short loc_BBD84 mov rax, [rbp+var_28] cmp rax, [rbp+var_10] jnz short loc_BBD94 loc_BBD84: jmp short $+2 loc_BBD86: jmp short $+2 loc_BBD88: mov [rbp+var_4], 200h jmp loc_BBE32 loc_BBD94: mov rdi, [rbp+var_28] mov rsi, [rbp+var_18] call find_longest_bitstream_0 add eax, 1 mov [rbp+var_1C], eax loc_BBDA7: mov rax, [rbp+var_10] add rax, 2 mov [rbp+var_10], rax mov rax, [rbp+var_10] movzx eax, word ptr [rax] and eax, 8000h cmp eax, 0 jnz short loc_BBE2C mov rax, [rbp+var_10] mov rcx, [rbp+var_10] movzx ecx, word ptr [rcx] movsxd rcx, ecx shl rcx, 1 add rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_30] cmp rax, [rbp+var_18] ja short loc_BBDF0 mov rax, [rbp+var_30] cmp rax, [rbp+var_10] jnz short loc_BBDFD loc_BBDF0: jmp short $+2 loc_BBDF2: jmp short $+2 loc_BBDF4: mov [rbp+var_4], 200h jmp short loc_BBE32 loc_BBDFD: mov rdi, [rbp+var_30] mov rsi, [rbp+var_18] call find_longest_bitstream_0 add eax, 1 mov [rbp+var_20], eax mov eax, [rbp+var_1C] cmp eax, [rbp+var_20] jbe short loc_BBE20 mov eax, [rbp+var_1C] mov [rbp+var_34], eax jmp short loc_BBE26 loc_BBE20: mov eax, [rbp+var_20] mov [rbp+var_34], eax loc_BBE26: mov eax, [rbp+var_34] mov [rbp+var_1C], eax loc_BBE2C: mov eax, [rbp+var_1C] mov [rbp+var_4], eax loc_BBE32: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long find_longest_bitstream_0(unsigned __int16 *a1, unsigned long long a2) { unsigned __int16 *v4; // [rsp+10h] [rbp-30h] unsigned __int16 *v5; // [rsp+18h] [rbp-28h] unsigned int v6; // [rsp+20h] [rbp-20h] unsigned int v7; // [rsp+24h] [rbp-1Ch] unsigned __int16 *v8; // [rsp+30h] [rbp-10h] v7 = 1; if ( (*a1 & 0x8000) != 0 ) { LABEL_6: v8 = a1 + 1; if ( (a1[1] & 0x8000) == 0 ) { v4 = &v8[*v8]; if ( (unsigned long long)v4 > a2 || v4 == v8 ) return 512; v6 = find_longest_bitstream_0(v4, a2) + 1; if ( v7 <= v6 ) return v6; else return v7; } return v7; } v5 = &a1[*a1]; if ( (unsigned long long)v5 <= a2 && v5 != a1 ) { v7 = find_longest_bitstream_0(v5, a2) + 1; goto LABEL_6; } return 512; }
find_longest_bitstream: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],0x1 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,word ptr [RAX] AND EAX,0x8000 CMP EAX,0x0 JNZ 0x001bbda7 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RCX] MOVSXD RCX,ECX SHL RCX,0x1 ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x18] JA 0x001bbd84 MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001bbd94 LAB_001bbd84: JMP 0x001bbd86 LAB_001bbd86: JMP 0x001bbd88 LAB_001bbd88: MOV dword ptr [RBP + -0x4],0x200 JMP 0x001bbe32 LAB_001bbd94: MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001bbd30 ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX LAB_001bbda7: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,word ptr [RAX] AND EAX,0x8000 CMP EAX,0x0 JNZ 0x001bbe2c MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RCX] MOVSXD RCX,ECX SHL RCX,0x1 ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x18] JA 0x001bbdf0 MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001bbdfd LAB_001bbdf0: JMP 0x001bbdf2 LAB_001bbdf2: JMP 0x001bbdf4 LAB_001bbdf4: MOV dword ptr [RBP + -0x4],0x200 JMP 0x001bbe32 LAB_001bbdfd: MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001bbd30 ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x1c] CMP EAX,dword ptr [RBP + -0x20] JBE 0x001bbe20 MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x34],EAX JMP 0x001bbe26 LAB_001bbe20: MOV EAX,dword ptr [RBP + -0x20] MOV dword ptr [RBP + -0x34],EAX LAB_001bbe26: MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x1c],EAX LAB_001bbe2c: MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x4],EAX LAB_001bbe32: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
uint find_longest_bitstream(ushort *param_1,ushort *param_2) { int iVar1; ushort *puVar2; uint local_3c; uint local_24; local_24 = 1; if ((*param_1 & 0x8000) == 0) { puVar2 = param_1 + (int)(uint)*param_1; if ((param_2 < puVar2) || (puVar2 == param_1)) { return 0x200; } iVar1 = find_longest_bitstream(puVar2,param_2); local_24 = iVar1 + 1; } param_1 = param_1 + 1; if ((*param_1 & 0x8000) == 0) { puVar2 = param_1 + (int)(uint)*param_1; if ((param_2 < puVar2) || (puVar2 == param_1)) { return 0x200; } iVar1 = find_longest_bitstream(puVar2,param_2); local_3c = iVar1 + 1; if (local_3c < local_24) { local_3c = local_24; } local_24 = local_3c; } return local_24; }
36,899
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[](unsigned long) const
monkey531[P]llama/common/json.hpp
const_reference operator[](size_type idx) const { // const operator[] only works for arrays if (JSON_HEDLEY_LIKELY(is_array())) { return m_data.m_value.array->operator[](idx); } JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a numeric argument with ", type_name()), this)); }
O0
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](unsigned long) const: subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq 0x50(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0xd0570 xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x17d5e7 jmp 0x17d5ff movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi movq 0x48(%rsp), %rsi callq 0x17d0c0 addq $0x58, %rsp retq movb $0x1, 0x13(%rsp) movl $0x20, %edi callq 0x5e6d0 movq 0x8(%rsp), %rdi movq %rax, (%rsp) callq 0xd7360 movq %rax, 0x20(%rsp) leaq 0xb5315(%rip), %rsi # 0x23293d leaq 0x28(%rsp), %rdi leaq 0x20(%rsp), %rdx callq 0x17d6c0 jmp 0x17d639 movq 0x8(%rsp), %rcx movq (%rsp), %rdi movl $0x131, %esi # imm = 0x131 leaq 0x28(%rsp), %rdx callq 0x1341c0 jmp 0x17d653 movq (%rsp), %rdi movb $0x0, 0x13(%rsp) leaq 0x149725(%rip), %rsi # 0x2c6d88 leaq -0xa625a(%rip), %rdx # 0xd7410 callq 0x5eb70 jmp 0x17d6b7 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) jmp 0x17d699 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) leaq 0x28(%rsp), %rdi callq 0x5f628 testb $0x1, 0x13(%rsp) jne 0x17d6a2 jmp 0x17d6ab movq (%rsp), %rdi callq 0x5f010 jmp 0x17d6ad movq 0x18(%rsp), %rdi callq 0x5ec30 nopw (%rax,%rax)
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixEm: sub rsp, 58h mov [rsp+58h+var_8], rdi; char mov qword ptr [rsp+58h+var_10], rsi; int mov rdi, [rsp+58h+var_8] mov [rsp+58h+var_50], rdi; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void) xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_17D5E7 jmp short loc_17D5FF loc_17D5E7: mov rax, [rsp+58h+var_50] mov rdi, [rax+8] mov rsi, qword ptr [rsp+58h+var_10] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEixEm; 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[](ulong) add rsp, 58h retn loc_17D5FF: mov [rsp+58h+var_45], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rdi, [rsp+58h+var_50] mov [rsp+58h+var_58], rax; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov qword ptr [rsp+58h+var_38], rax; int lea rsi, aCannotUseOpera; "cannot use operator[] with a numeric ar"... lea rdi, [rsp+58h+var_30]; int lea rdx, [rsp+58h+var_38]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA52_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>(char const(&)[52],char const* &&) jmp short $+2 loc_17D639: mov rcx, [rsp+58h+var_50] mov rdi, [rsp+58h+var_58]; int mov esi, 131h lea rdx, [rsp+58h+var_30] call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ jmp short $+2 loc_17D653: mov rdi, [rsp+58h+var_58]; void * mov [rsp+58h+var_45], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]( _QWORD **a1, long long a2) { int v3; // ecx int v4; // r8d int v5; // r9d int exception; // [rsp+0h] [rbp-58h] nlohmann::json_abi_v3_11_3::detail::type_error *v7; // [rsp+0h] [rbp-58h] void *v8; // [rsp+8h] [rbp-50h] int v9; // [rsp+10h] [rbp-48h] long long v10; // [rsp+18h] [rbp-40h] int v11[2]; // [rsp+20h] [rbp-38h] BYREF int v12[8]; // [rsp+28h] [rbp-30h] BYREF int v13[2]; // [rsp+48h] [rbp-10h] void *v14; // [rsp+50h] [rbp-8h] v14 = a1; *(_QWORD *)v13 = a2; if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(a1) ) { HIBYTE(v9) = 1; exception = (unsigned int)__cxa_allocate_exception(0x20uLL); *(_QWORD *)v11 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>( (int)v12, (int)"cannot use operator[] with a numeric argument with ", (int)v11, v3, v4, v5, exception, a1, v9, v10); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v7, 305, (long long)v12, (long long)v8); __cxa_throw( v7, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } return std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator[]( a1[1], *(long long *)v13); }