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
2,100
JS_GetModuleNamespace
bluesky950520[P]quickjs/quickjs.c
JSValue JS_GetModuleNamespace(JSContext *ctx, JSModuleDef *m) { if (JS_IsUndefined(m->module_ns)) { JSValue val; val = js_build_module_ns(ctx, m); if (JS_IsException(val)) return JS_EXCEPTION; m->module_ns = val; } return js_dup(m->module_ns); }
O1
c
JS_GetModuleNamespace: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rsi, %rbx cmpl $0x3, 0x60(%rsi) jne 0x30bbc movq %rdi, %r15 movq 0x40(%rdi), %rax movq 0xb0(%rax), %rsi movq 0xb8(%rax), %rdx movl $0xb, %ecx callq 0x20f05 movq %rdx, %r14 movq %rax, 0x10(%rsp) cmpl $0x6, %r14d jne 0x30b44 movq %rax, %r12 jmp 0x30ba5 movq 0x10(%rsp), %r13 xorps %xmm0, %xmm0 leaq 0x40(%rsp), %r12 movaps %xmm0, (%r12) movaps %xmm0, 0x10(%r12) movq %r15, %rdi movq %r12, %rsi movq %rbx, %rdx xorl %ecx, %ecx callq 0x4359c movl %eax, %ebp movq (%r12), %rsi movq %r15, %rdi callq 0x1cb99 testl %ebp, %ebp je 0x30be4 movq 0x50(%rsp), %rsi movq %r15, %rdi callq 0x1cb99 movq 0x10(%rsp), %rsi movq 0x18(%r15), %rdi movq %r14, %rdx callq 0x1d8c6 movl $0x6, %r14d xorl %r12d, %r12d cmpl $0x6, %r14d jne 0x30bb4 movl $0x6, %edx xorl %eax, %eax jmp 0x30bd5 movq %r12, 0x58(%rbx) movq %r14, 0x60(%rbx) movq 0x58(%rbx), %rax movq 0x60(%rbx), %rdx movq %rax, 0x40(%rsp) cmpl $-0x9, %edx jb 0x30bd5 movq 0x40(%rsp), %rcx incl (%rcx) addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r13, 0x20(%rsp) movslq 0x5c(%rsp), %rax movq %rax, 0x8(%rsp) testq %rax, %rax jle 0x30cbf movq 0x50(%rsp), %r12 movq 0x8(%rsp), %r13 shlq $0x4, %r13 xorl %ebp, %ebp movq 0x8(%r12,%rbp), %rax testq %rax, %rax je 0x30c24 movq %rax, 0x28(%rsp) movq %rbx, 0x18(%rsp) xorl %eax, %eax jmp 0x30c3d movl (%r12,%rbp), %r8d movq %r15, %rdi leaq 0x18(%rsp), %rsi leaq 0x28(%rsp), %rdx movq %rbx, %rcx callq 0x4377e testl %eax, %eax je 0x30c55 cmpl $0x3, %eax jne 0x30e44 movl $0x0, 0x4(%r12,%rbp) jmp 0x30cb2 movq 0x28(%rsp), %rax cmpl $0x7e, 0x14(%rax) jne 0x30c80 movl $0x2, 0x4(%r12,%rbp) movq 0x18(%rsp), %rcx movq 0x18(%rcx), %rcx movslq (%rax), %rax shlq $0x4, %rax movq 0x8(%rcx,%rax), %rax jmp 0x30cad movl $0x1, 0x4(%r12,%rbp) movq 0x8(%rax), %rcx testq %rcx, %rcx je 0x30c99 movq %rcx, 0x8(%r12,%rbp) jmp 0x30cb2 movq 0x18(%rsp), %rcx movq 0x68(%rcx), %rcx movq 0x38(%rcx), %rcx movslq (%rax), %rax movq (%rcx,%rax,8), %rax movq %rax, 0x8(%r12,%rbp) addq $0x10, %rbp cmpq %rbp, %r13 jne 0x30c0c movq 0x50(%rsp), %rbp leaq 0x12b9f(%rip), %rcx # 0x4386a movl $0x10, %edx movq %rbp, %rdi movq 0x8(%rsp), %r12 movq %r12, %rsi movq %r15, %r8 callq 0x1c031 testl %r12d, %r12d jle 0x30dc3 movq 0x10(%rsp), %rax movq %rax, 0x30(%rsp) shlq $0x4, 0x8(%rsp) xorl %r12d, %r12d movq %r14, 0x38(%rsp) movl 0x4(%rbp,%r12), %eax cmpl $0x2, %eax je 0x30d4c cmpl $0x1, %eax jne 0x30da8 movq 0x8(%rbp,%r12), %r14 movl (%rbp,%r12), %ecx testq %r14, %r14 je 0x30d7f movq %r15, %rdi movq 0x20(%rsp), %rsi movl %ecx, %edx movl $0x26, %ecx callq 0x3bf45 xorl %r13d, %r13d testq %rax, %rax je 0x30d97 incl (%r14) movq %r14, (%rax) movb $0x1, %al jmp 0x30d9f movl (%rbp,%r12), %ecx movq 0x8(%rbp,%r12), %r9 movl $0x6, (%rsp) movq %r15, %rdi movq 0x30(%rsp), %rsi movq %r14, %rdx movl $0x1, %r8d callq 0x41517 testl %eax, %eax jns 0x30da8 movl $0x2, %r13d jmp 0x30dab movl $0x2, %r13d movq %r15, %rdi movl $0x2, %esi movq %rbx, %rdx callq 0x437e9 jmp 0x30d9d movl $0x2, %r13d xorl %eax, %eax testb %al, %al movq 0x38(%rsp), %r14 je 0x30dab xorl %r13d, %r13d testl %r13d, %r13d jne 0x30e35 addq $0x10, %r12 cmpq %r12, 0x8(%rsp) jne 0x30d04 movq %r15, %rdi movq %rbp, %rsi callq 0x1cb99 movq 0x18(%r15), %rax movq 0x68(%rax), %rax movq 0x3f8(%rax), %r8 movq 0x4(%r8), %rcx movq %rcx, %rdx shrq $0x3e, %rdx cmpl $0x1, %edx sete %dl negl %ecx setno %cl orb %dl, %cl jne 0x30dfe movq 0x178(%rax), %r8 incl (%r8) movq 0x10(%rsp), %r12 movl $0x0, (%rsp) movq %r15, %rdi movq %r12, %rsi movq %r14, %rdx movl $0xda, %ecx movq $-0x7, %r9 callq 0x26abb movq 0x20(%rsp), %rax andb $-0x2, 0x5(%rax) jmp 0x30ba5 cmpl $0x2, %r13d je 0x30b7e jmp 0x30ba5 movl (%r12,%rbp), %ecx movq %r15, %rdi movl %eax, %esi movq %rbx, %rdx callq 0x437e9 jmp 0x30b7e
JS_GetModuleNamespace: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov rbx, rsi cmp dword ptr [rsi+60h], 3 jnz loc_30BBC mov r15, rdi mov rax, [rdi+40h] mov rsi, [rax+0B0h] mov rdx, [rax+0B8h] mov ecx, 0Bh call JS_NewObjectProtoClass mov r14, rdx mov [rsp+98h+var_88], rax cmp r14d, 6 jnz short loc_30B44 mov r12, rax jmp short loc_30BA5 loc_30B44: mov r13, [rsp+98h+var_88] xorps xmm0, xmm0 lea r12, [rsp+98h+var_58] movaps xmmword ptr [r12], xmm0 movaps xmmword ptr [r12+10h], xmm0 mov rdi, r15 mov rsi, r12 mov rdx, rbx xor ecx, ecx call get_exported_names mov ebp, eax mov rsi, [r12] mov rdi, r15 call js_free test ebp, ebp jz short loc_30BE4 loc_30B7E: mov rsi, [rsp+98h+var_48] mov rdi, r15 call js_free mov rsi, [rsp+98h+var_88] mov rdi, [r15+18h] mov rdx, r14 call JS_FreeValueRT mov r14d, 6 xor r12d, r12d loc_30BA5: cmp r14d, 6 jnz short loc_30BB4 mov edx, 6 xor eax, eax jmp short loc_30BD5 loc_30BB4: mov [rbx+58h], r12 mov [rbx+60h], r14 loc_30BBC: mov rax, [rbx+58h] mov rdx, [rbx+60h] mov [rsp+98h+var_58], rax cmp edx, 0FFFFFFF7h jb short loc_30BD5 mov rcx, [rsp+98h+var_58] inc dword ptr [rcx] loc_30BD5: add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_30BE4: mov [rsp+98h+var_78], r13 movsxd rax, [rsp+98h+var_3C] mov [rsp+98h+var_90], rax test rax, rax jle loc_30CBF mov r12, [rsp+98h+var_48] mov r13, [rsp+98h+var_90] shl r13, 4 xor ebp, ebp loc_30C0C: mov rax, [r12+rbp+8] test rax, rax jz short loc_30C24 mov [rsp+98h+var_70], rax mov [rsp+98h+var_80], rbx xor eax, eax jmp short loc_30C3D loc_30C24: mov r8d, [r12+rbp] mov rdi, r15 lea rsi, [rsp+98h+var_80] lea rdx, [rsp+98h+var_70] mov rcx, rbx call js_resolve_export loc_30C3D: test eax, eax jz short loc_30C55 cmp eax, 3 jnz loc_30E44 mov dword ptr [r12+rbp+4], 0 jmp short loc_30CB2 loc_30C55: mov rax, [rsp+98h+var_70] cmp dword ptr [rax+14h], 7Eh ; '~' jnz short loc_30C80 mov dword ptr [r12+rbp+4], 2 mov rcx, [rsp+98h+var_80] mov rcx, [rcx+18h] movsxd rax, dword ptr [rax] shl rax, 4 mov rax, [rcx+rax+8] jmp short loc_30CAD loc_30C80: mov dword ptr [r12+rbp+4], 1 mov rcx, [rax+8] test rcx, rcx jz short loc_30C99 mov [r12+rbp+8], rcx jmp short loc_30CB2 loc_30C99: mov rcx, [rsp+98h+var_80] mov rcx, [rcx+68h] mov rcx, [rcx+38h] movsxd rax, dword ptr [rax] mov rax, [rcx+rax*8] loc_30CAD: mov [r12+rbp+8], rax loc_30CB2: add rbp, 10h cmp r13, rbp jnz loc_30C0C loc_30CBF: mov rbp, [rsp+98h+var_48] lea rcx, exported_names_cmp mov edx, 10h mov rdi, rbp mov r12, [rsp+98h+var_90] mov rsi, r12 mov r8, r15 call rqsort test r12d, r12d jle loc_30DC3 mov rax, [rsp+98h+var_88] mov [rsp+98h+var_68], rax shl [rsp+98h+var_90], 4 xor r12d, r12d mov [rsp+98h+var_60], r14 loc_30D04: mov eax, [rbp+r12+4] cmp eax, 2 jz short loc_30D4C cmp eax, 1 jnz loc_30DA8 mov r14, [rbp+r12+8] mov ecx, [rbp+r12+0] test r14, r14 jz short loc_30D7F mov rdi, r15 mov rsi, [rsp+98h+var_78] mov edx, ecx mov ecx, 26h ; '&' call add_property xor r13d, r13d test rax, rax jz short loc_30D97 inc dword ptr [r14] mov [rax], r14 mov al, 1 jmp short loc_30D9F loc_30D4C: mov ecx, [rbp+r12+0] mov r9, [rbp+r12+8] mov [rsp+98h+var_98], 6 mov rdi, r15 mov rsi, [rsp+98h+var_68] mov rdx, r14 mov r8d, 1 call JS_DefineAutoInitProperty test eax, eax jns short loc_30DA8 mov r13d, 2 jmp short loc_30DAB loc_30D7F: mov r13d, 2 mov rdi, r15 mov esi, 2 mov rdx, rbx call js_resolve_export_throw_error jmp short loc_30D9D loc_30D97: mov r13d, 2 loc_30D9D: xor eax, eax loc_30D9F: test al, al mov r14, [rsp+98h+var_60] jz short loc_30DAB loc_30DA8: xor r13d, r13d loc_30DAB: test r13d, r13d jnz loc_30E35 add r12, 10h cmp [rsp+98h+var_90], r12 jnz loc_30D04 loc_30DC3: mov rdi, r15 mov rsi, rbp call js_free mov rax, [r15+18h] mov rax, [rax+68h] mov r8, [rax+3F8h] mov rcx, [r8+4] mov rdx, rcx shr rdx, 3Eh cmp edx, 1 setz dl neg ecx setno cl or cl, dl jnz short loc_30DFE mov r8, [rax+178h] loc_30DFE: inc dword ptr [r8] mov r12, [rsp+98h+var_88] mov [rsp+98h+var_98], 0 mov rdi, r15 mov rsi, r12 mov rdx, r14 mov ecx, 0DAh mov r9, 0FFFFFFFFFFFFFFF9h call JS_DefinePropertyValue mov rax, [rsp+98h+var_78] and byte ptr [rax+5], 0FEh jmp loc_30BA5 loc_30E35: cmp r13d, 2 jz loc_30B7E jmp loc_30BA5 loc_30E44: mov ecx, [r12+rbp] mov rdi, r15 mov esi, eax mov rdx, rbx call js_resolve_export_throw_error jmp loc_30B7E
long long JS_GetModuleNamespace( long long a1, long long a2, double a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { long long v10; // rax long long v11; // rdx long long v12; // r14 _DWORD *v13; // r12 int exported_names; // ebp long long result; // rax long long v16; // rdx long long v17; // r12 long long v18; // r13 long long v19; // rbp unsigned int v20; // eax int *v21; // rax long long v22; // rax long long v23; // rcx long long v24; // rbp long long v25; // r12 int v26; // eax _DWORD *v27; // r14 long long v28; // rcx _QWORD *v29; // rax int v30; // r13d char v31; // al __m128 v32; // xmm4 __m128 v33; // xmm5 long long v34; // rax long long v35; // r8 unsigned long long v36; // [rsp+8h] [rbp-90h] long long v37; // [rsp+8h] [rbp-90h] _DWORD *v38; // [rsp+10h] [rbp-88h] long long v39; // [rsp+18h] [rbp-80h] BYREF _DWORD *v40; // [rsp+20h] [rbp-78h] int *v41; // [rsp+28h] [rbp-70h] BYREF _DWORD *v42; // [rsp+30h] [rbp-68h] long long v43; // [rsp+38h] [rbp-60h] __int128 v44; // [rsp+40h] [rbp-58h] BYREF __int128 v45; // [rsp+50h] [rbp-48h] if ( *(_DWORD *)(a2 + 96) != 3 ) goto LABEL_9; v10 = JS_NewObjectProtoClass( a1, *(_QWORD *)(*(_QWORD *)(a1 + 64) + 176LL), *(_QWORD *)(*(_QWORD *)(a1 + 64) + 184LL), 0xBu); v12 = v11; v38 = (_DWORD *)v10; if ( (_DWORD)v11 == 6 ) { v13 = (_DWORD *)v10; goto LABEL_6; } v44 = 0LL; v45 = 0LL; exported_names = get_exported_names(a1, &v44, a2, 0LL); js_free(a1, v44); if ( exported_names ) goto LABEL_5; v40 = v38; v36 = SHIDWORD(v45); if ( SHIDWORD(v45) <= 0 ) { LABEL_27: v24 = v45; rqsort(v45, v36, 16LL, (long long ( *)(unsigned long long, unsigned long long, long long))exported_names_cmp, a1); if ( (int)v36 <= 0 ) { LABEL_43: js_free(a1, v24); v34 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL); v35 = *(_QWORD *)(v34 + 1016); if ( !((*(_QWORD *)(v35 + 4) >> 62 == 1) | !__OFSUB__(-(int)*(_QWORD *)(v35 + 4), 1)) ) v35 = *(_QWORD *)(v34 + 376); ++*(_DWORD *)v35; v13 = v38; JS_DefinePropertyValue( a1, (unsigned long long)v38, v12, 218LL, (_DWORD *)v35, -7LL, 0.0, a4, a5, a6, v32, v33, a9, a10, 0); *((_BYTE *)v40 + 5) &= ~1u; goto LABEL_6; } v42 = v38; v37 = 16 * v36; v25 = 0LL; v43 = v12; while ( 1 ) { v26 = *(_DWORD *)(v24 + v25 + 4); if ( v26 != 2 ) break; if ( (int)JS_DefineAutoInitProperty( a1, (_DWORD)v42, v12, *(_DWORD *)(v24 + v25), 1, *(_QWORD *)(v24 + v25 + 8), 6) >= 0 ) goto LABEL_40; v30 = 2; LABEL_41: if ( v30 ) goto LABEL_5; v25 += 16LL; if ( v37 == v25 ) goto LABEL_43; } if ( v26 != 1 ) goto LABEL_40; v27 = *(_DWORD **)(v24 + v25 + 8); v28 = *(unsigned int *)(v24 + v25); if ( v27 ) { v29 = (_QWORD *)add_property(a1, v40, (unsigned int)v28, 38LL); v30 = 0; if ( v29 ) { ++*v27; *v29 = v27; v31 = 1; goto LABEL_39; } v30 = 2; } else { v30 = 2; js_resolve_export_throw_error(a1, 2LL, a2, v28); } v31 = 0; LABEL_39: v12 = v43; if ( v31 ) { LABEL_40: v30 = 0; goto LABEL_41; } goto LABEL_41; } v17 = v45; v18 = 16LL * SHIDWORD(v45); v19 = 0LL; while ( 1 ) { if ( *(_QWORD *)(v17 + v19 + 8) ) { v41 = *(int **)(v17 + v19 + 8); v39 = a2; v20 = 0; } else { v20 = js_resolve_export(a1, &v39, &v41, a2, *(unsigned int *)(v17 + v19)); } if ( v20 ) break; v21 = v41; if ( v41[5] == 126 ) { *(_DWORD *)(v17 + v19 + 4) = 2; v22 = *(_QWORD *)(*(_QWORD *)(v39 + 24) + 16LL * *v21 + 8); LABEL_25: *(_QWORD *)(v17 + v19 + 8) = v22; goto LABEL_26; } *(_DWORD *)(v17 + v19 + 4) = 1; v23 = *((_QWORD *)v21 + 1); if ( !v23 ) { v22 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v39 + 104) + 56LL) + 8LL * *v21); goto LABEL_25; } *(_QWORD *)(v17 + v19 + 8) = v23; LABEL_26: v19 += 16LL; if ( v18 == v19 ) goto LABEL_27; } if ( v20 == 3 ) { *(_DWORD *)(v17 + v19 + 4) = 0; goto LABEL_26; } js_resolve_export_throw_error(a1, v20, a2, *(unsigned int *)(v17 + v19)); LABEL_5: js_free(a1, v45); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v38, v12); v12 = 6LL; v13 = 0LL; LABEL_6: if ( (_DWORD)v12 == 6 ) return 0LL; *(_QWORD *)(a2 + 88) = v13; *(_QWORD *)(a2 + 96) = v12; LABEL_9: result = *(_QWORD *)(a2 + 88); v16 = *(_QWORD *)(a2 + 96); *(_QWORD *)&v44 = result; if ( (unsigned int)v16 >= 0xFFFFFFF7 ) ++*(_DWORD *)v44; return result; }
2,101
JS_GetModuleNamespace
bluesky950520[P]quickjs/quickjs.c
JSValue JS_GetModuleNamespace(JSContext *ctx, JSModuleDef *m) { if (JS_IsUndefined(m->module_ns)) { JSValue val; val = js_build_module_ns(ctx, m); if (JS_IsException(val)) return JS_EXCEPTION; m->module_ns = val; } return js_dup(m->module_ns); }
O2
c
JS_GetModuleNamespace: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rsi, %rbp movq 0x60(%rsi), %rbx cmpl $0x3, %ebx jne 0x29192 movq %rdi, %r12 pushq $0xb popq %rsi callq 0x1b297 movq %rax, %r15 movq %rdx, %rbx cmpl $0x6, %ebx jne 0x291a0 cmpl $0x6, %ebx je 0x291fa movq %r15, 0x58(%rbp) movq %rbx, 0x60(%rbp) jmp 0x29196 movq 0x58(%rbp), %r15 cmpl $-0x9, %ebx jb 0x29200 incl (%r15) jmp 0x29200 xorps %xmm0, %xmm0 leaq 0x40(%rsp), %r13 movaps %xmm0, 0x10(%r13) movaps %xmm0, (%r13) xorl %r14d, %r14d movq %r12, %rdi movq %r13, %rsi movq %rbp, %rdx xorl %ecx, %ecx callq 0x3b198 movq %rbp, 0x30(%rsp) movl %eax, %ebp movq (%r13), %rsi movq %r12, %rdi callq 0x1726e testl %ebp, %ebp je 0x29215 movq 0x50(%rsp), %r13 movq %r12, %rdi movq %r13, %rsi callq 0x1726e movq %r12, %rdi movq %r15, %rsi movq %rbx, %rdx callq 0x1801e pushq $0x6 popq %rbx xorl %r15d, %r15d movq %r15, %rax movq %rbx, %rdx addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movslq 0x5c(%rsp), %rax testl %eax, %eax movl $0x0, %edx movq %rax, 0x28(%rsp) cmovgl %eax, %edx movq 0x50(%rsp), %r13 shlq $0x4, %rdx movq 0x30(%rsp), %rbp movq %rdx, 0x10(%rsp) cmpq %r14, %rdx je 0x292f5 movq 0x8(%r13,%r14), %rax testq %rax, %rax je 0x29256 movq %rbp, 0x20(%rsp) jmp 0x29287 movl (%r13,%r14), %r8d movq %r12, %rdi leaq 0x20(%rsp), %rsi leaq 0x38(%rsp), %rdx movq %rbp, %rcx callq 0x3b33a cmpl $0x3, %eax je 0x292c6 testl %eax, %eax jne 0x293ee movq 0x38(%rsp), %rax movq 0x10(%rsp), %rdx cmpl $0x7e, 0x14(%rax) jne 0x292ad movl $0x2, 0x4(%r13,%r14) movq 0x20(%rsp), %rcx movq 0x18(%rcx), %rcx movslq (%rax), %rax shlq $0x4, %rax movq 0x8(%rcx,%rax), %rax jmp 0x292e7 movl $0x1, 0x4(%r13,%r14) movq 0x8(%rax), %rcx testq %rcx, %rcx je 0x292d3 movq %rcx, 0x8(%r13,%r14) jmp 0x292ec andl $0x0, 0x4(%r13,%r14) movq 0x10(%rsp), %rdx jmp 0x292ec movq 0x20(%rsp), %rcx movq 0x68(%rcx), %rcx movq 0x38(%rcx), %rcx movslq (%rax), %rax movq (%rcx,%rax,8), %rax movq %rax, 0x8(%r13,%r14) addq $0x10, %r14 jmp 0x2923c leaq 0x12126(%rip), %rcx # 0x3b422 pushq $0x10 popq %rdx movq %r13, %rdi movq 0x28(%rsp), %rsi movq %r12, %r8 callq 0x1683c movq 0x10(%rsp), %rcx xorl %r14d, %r14d movq %rbx, 0x18(%rsp) cmpq %r14, %rcx je 0x293b1 movl 0x4(%r13,%r14), %eax cmpl $0x2, %eax je 0x29378 cmpl $0x1, %eax jne 0x293a8 movq %r15, %rbx movq 0x8(%r13,%r14), %r15 movl (%r13,%r14), %ecx testq %r15, %r15 je 0x29405 movq %r12, %rdi movq %rbx, %rsi movl %ecx, %edx pushq $0x26 popq %rcx callq 0x34d1a testq %rax, %rax je 0x29413 incl (%r15) movq %r15, (%rax) movq %rbx, %r15 movq 0x18(%rsp), %rbx movq 0x10(%rsp), %rcx jmp 0x293a8 movl (%r13,%r14), %ecx movq 0x8(%r13,%r14), %r9 movl $0x6, (%rsp) movq %r12, %rdi movq %r15, %rsi movq %rbx, %rdx pushq $0x1 popq %r8 callq 0x393f2 movq 0x10(%rsp), %rcx testl %eax, %eax js 0x291e1 addq $0x10, %r14 jmp 0x2931c movq %r12, %rdi movq %r13, %rsi callq 0x1726e pushq $0x7f popq %rsi movq %r12, %rdi callq 0x1a990 movq %rdx, %r9 andl $0x0, (%rsp) movq %r12, %rdi movq %r15, %rsi movq %rbx, %rdx movl $0xda, %ecx movq %rax, %r8 callq 0x20872 andb $-0x2, 0x5(%r15) jmp 0x29183 movl (%r13,%r14), %ecx movq %r12, %rdi movl %eax, %esi movq %rbp, %rdx callq 0x3b3a3 jmp 0x291e1 pushq $0x2 popq %rsi movq %r12, %rdi movq %rbp, %rdx callq 0x3b3a3 movq %rbx, %r15 movq 0x18(%rsp), %rbx jmp 0x291e1
JS_GetModuleNamespace: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov rbp, rsi mov rbx, [rsi+60h] cmp ebx, 3 jnz short loc_29192 mov r12, rdi push 0Bh pop rsi call JS_NewObjectClass mov r15, rax mov rbx, rdx cmp ebx, 6 jnz short loc_291A0 loc_29183: cmp ebx, 6 jz short loc_291FA mov [rbp+58h], r15 mov [rbp+60h], rbx jmp short loc_29196 loc_29192: mov r15, [rbp+58h] loc_29196: cmp ebx, 0FFFFFFF7h jb short loc_29200 inc dword ptr [r15] jmp short loc_29200 loc_291A0: xorps xmm0, xmm0 lea r13, [rsp+98h+var_58] movaps xmmword ptr [r13+10h], xmm0 movaps xmmword ptr [r13+0], xmm0 xor r14d, r14d mov rdi, r12 mov rsi, r13 mov rdx, rbp xor ecx, ecx call get_exported_names mov [rsp+98h+var_68], rbp mov ebp, eax mov rsi, [r13+0] mov rdi, r12 call js_free test ebp, ebp jz short loc_29215 mov r13, [rsp+98h+var_48] loc_291E1: mov rdi, r12 mov rsi, r13 call js_free mov rdi, r12 mov rsi, r15 mov rdx, rbx call JS_FreeValue loc_291FA: push 6 pop rbx xor r15d, r15d loc_29200: mov rax, r15 mov rdx, rbx add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_29215: movsxd rax, [rsp+98h+var_3C] test eax, eax mov edx, 0 mov [rsp+98h+var_70], rax cmovg edx, eax mov r13, [rsp+98h+var_48] shl rdx, 4 mov rbp, [rsp+98h+var_68] mov [rsp+98h+var_88], rdx loc_2923C: cmp rdx, r14 jz loc_292F5 mov rax, [r13+r14+8] test rax, rax jz short loc_29256 mov [rsp+98h+var_78], rbp jmp short loc_29287 loc_29256: mov r8d, [r13+r14+0] mov rdi, r12 lea rsi, [rsp+98h+var_78] lea rdx, [rsp+98h+var_60] mov rcx, rbp call js_resolve_export cmp eax, 3 jz short loc_292C6 test eax, eax jnz loc_293EE mov rax, [rsp+98h+var_60] mov rdx, [rsp+98h+var_88] loc_29287: cmp dword ptr [rax+14h], 7Eh ; '~' jnz short loc_292AD mov dword ptr [r13+r14+4], 2 mov rcx, [rsp+98h+var_78] mov rcx, [rcx+18h] movsxd rax, dword ptr [rax] shl rax, 4 mov rax, [rcx+rax+8] jmp short loc_292E7 loc_292AD: mov dword ptr [r13+r14+4], 1 mov rcx, [rax+8] test rcx, rcx jz short loc_292D3 mov [r13+r14+8], rcx jmp short loc_292EC loc_292C6: and dword ptr [r13+r14+4], 0 mov rdx, [rsp+98h+var_88] jmp short loc_292EC loc_292D3: mov rcx, [rsp+98h+var_78] mov rcx, [rcx+68h] mov rcx, [rcx+38h] movsxd rax, dword ptr [rax] mov rax, [rcx+rax*8] loc_292E7: mov [r13+r14+8], rax loc_292EC: add r14, 10h jmp loc_2923C loc_292F5: lea rcx, exported_names_cmp push 10h pop rdx mov rdi, r13 mov rsi, [rsp+98h+var_70] mov r8, r12 call rqsort mov rcx, [rsp+98h+var_88] xor r14d, r14d mov [rsp+98h+var_80], rbx loc_2931C: cmp rcx, r14 jz loc_293B1 mov eax, [r13+r14+4] cmp eax, 2 jz short loc_29378 cmp eax, 1 jnz short loc_293A8 mov rbx, r15 mov r15, [r13+r14+8] mov ecx, [r13+r14+0] test r15, r15 jz loc_29405 mov rdi, r12 mov rsi, rbx mov edx, ecx push 26h ; '&' pop rcx call add_property test rax, rax jz loc_29413 inc dword ptr [r15] mov [rax], r15 mov r15, rbx mov rbx, [rsp+98h+var_80] mov rcx, [rsp+98h+var_88] jmp short loc_293A8 loc_29378: mov ecx, [r13+r14+0] mov r9, [r13+r14+8] mov [rsp+98h+var_98], 6 mov rdi, r12 mov rsi, r15 mov rdx, rbx push 1 pop r8 call JS_DefineAutoInitProperty mov rcx, [rsp+98h+var_88] test eax, eax js loc_291E1 loc_293A8: add r14, 10h jmp loc_2931C loc_293B1: mov rdi, r12 mov rsi, r13 call js_free push 7Fh pop rsi mov rdi, r12 call JS_AtomToString mov r9, rdx and [rsp+98h+var_98], 0 mov rdi, r12 mov rsi, r15 mov rdx, rbx mov ecx, 0DAh mov r8, rax call JS_DefinePropertyValue and byte ptr [r15+5], 0FEh jmp loc_29183 loc_293EE: mov ecx, [r13+r14+0] mov rdi, r12 mov esi, eax mov rdx, rbp call js_resolve_export_throw_error jmp loc_291E1 loc_29405: push 2 pop rsi mov rdi, r12 mov rdx, rbp call js_resolve_export_throw_error loc_29413: mov r15, rbx mov rbx, [rsp+98h+var_80] jmp loc_291E1
long long JS_GetModuleNamespace( long long a1, long long a2, double a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { long long v10; // rbp long long v11; // rbx long long v12; // r15 long long v13; // rdx long long v14; // r14 int exported_names; // ebp long long v16; // r13 long long v18; // rdx long long v19; // rdx int *v20; // rax unsigned int v21; // eax long long v22; // rax long long v23; // rcx long long v24; // rcx long long v25; // r14 int v26; // eax long long v27; // rbx _DWORD *v28; // r15 long long v29; // rcx _QWORD *v30; // rax int inited; // eax _DWORD *v32; // rax long long v33; // rdx __m128 v34; // xmm4 __m128 v35; // xmm5 long long v36; // [rsp+10h] [rbp-88h] long long v37; // [rsp+18h] [rbp-80h] long long v38; // [rsp+20h] [rbp-78h] BYREF unsigned long long v39; // [rsp+28h] [rbp-70h] long long v40; // [rsp+30h] [rbp-68h] int *v41; // [rsp+38h] [rbp-60h] BYREF __int128 v42; // [rsp+40h] [rbp-58h] BYREF __int128 v43; // [rsp+50h] [rbp-48h] v10 = a2; v11 = *(_QWORD *)(a2 + 96); if ( (_DWORD)v11 != 3 ) { v12 = *(_QWORD *)(a2 + 88); LABEL_6: if ( (unsigned int)v11 >= 0xFFFFFFF7 ) ++*(_DWORD *)v12; return v12; } v12 = JS_NewObjectClass(a1, 11); v11 = v13; if ( (_DWORD)v13 == 6 ) { LABEL_3: if ( (_DWORD)v11 == 6 ) return 0LL; *(_QWORD *)(v10 + 88) = v12; *(_QWORD *)(v10 + 96) = v11; goto LABEL_6; } v43 = 0LL; v42 = 0LL; v14 = 0LL; v40 = a2; exported_names = get_exported_names(a1, &v42, a2, 0LL); js_free(a1, v42); if ( exported_names ) { v16 = v43; goto LABEL_10; } v18 = 0LL; v39 = SHIDWORD(v43); if ( SHIDWORD(v43) > 0 ) v18 = HIDWORD(v43); v16 = v43; v19 = 16 * v18; v10 = v40; v36 = v19; while ( v19 != v14 ) { v20 = *(int **)(v16 + v14 + 8); if ( v20 ) { v38 = v10; } else { v21 = js_resolve_export(a1, &v38, &v41, v10, *(unsigned int *)(v16 + v14)); if ( v21 == 3 ) { *(_DWORD *)(v16 + v14 + 4) = 0; v19 = v36; goto LABEL_29; } if ( v21 ) { js_resolve_export_throw_error(a1, v21, v10, *(unsigned int *)(v16 + v14)); goto LABEL_10; } v20 = v41; v19 = v36; } if ( v20[5] == 126 ) { *(_DWORD *)(v16 + v14 + 4) = 2; v22 = *(_QWORD *)(*(_QWORD *)(v38 + 24) + 16LL * *v20 + 8); } else { *(_DWORD *)(v16 + v14 + 4) = 1; v23 = *((_QWORD *)v20 + 1); if ( v23 ) { *(_QWORD *)(v16 + v14 + 8) = v23; goto LABEL_29; } v22 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v38 + 104) + 56LL) + 8LL * *v20); } *(_QWORD *)(v16 + v14 + 8) = v22; LABEL_29: v14 += 16LL; } rqsort(v16, v39, 16LL, (long long ( *)(unsigned long long, unsigned long long, long long))exported_names_cmp, a1); v24 = v36; v25 = 0LL; v37 = v11; while ( 1 ) { if ( v24 == v25 ) { js_free(a1, v16); v32 = (_DWORD *)JS_AtomToString(a1, 127); JS_DefinePropertyValue(a1, v12, v11, 218LL, v32, v33, 0.0, a4, a5, a6, v34, v35, a9, a10, 0); *(_BYTE *)(v12 + 5) &= ~1u; goto LABEL_3; } v26 = *(_DWORD *)(v16 + v25 + 4); if ( v26 == 2 ) { inited = JS_DefineAutoInitProperty(a1, v12, v11, *(_DWORD *)(v16 + v25), 1, *(_QWORD *)(v16 + v25 + 8), 6); v24 = v36; if ( inited < 0 ) goto LABEL_10; goto LABEL_38; } if ( v26 != 1 ) goto LABEL_38; v27 = v12; v28 = *(_DWORD **)(v16 + v25 + 8); v29 = *(unsigned int *)(v16 + v25); if ( !v28 ) break; v30 = (_QWORD *)add_property(a1, v27, (unsigned int)v29, 38LL); if ( !v30 ) goto LABEL_42; ++*v28; *v30 = v28; v12 = v27; v11 = v37; v24 = v36; LABEL_38: v25 += 16LL; } js_resolve_export_throw_error(a1, 2LL, v10, v29); LABEL_42: v12 = v27; v11 = v37; LABEL_10: js_free(a1, v16); JS_FreeValue(a1, v12, v11); return 0LL; }
JS_GetModuleNamespace: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV RBP,RSI MOV RBX,qword ptr [RSI + 0x60] CMP EBX,0x3 JNZ 0x00129192 MOV R12,RDI PUSH 0xb POP RSI CALL 0x0011b297 MOV R15,RAX MOV RBX,RDX CMP EBX,0x6 JNZ 0x001291a0 LAB_00129183: CMP EBX,0x6 JZ 0x001291fa MOV qword ptr [RBP + 0x58],R15 MOV qword ptr [RBP + 0x60],RBX JMP 0x00129196 LAB_00129192: MOV R15,qword ptr [RBP + 0x58] LAB_00129196: CMP EBX,-0x9 JC 0x00129200 INC dword ptr [R15] JMP 0x00129200 LAB_001291a0: XORPS XMM0,XMM0 LEA R13,[RSP + 0x40] MOVAPS xmmword ptr [R13 + 0x10],XMM0 MOVAPS xmmword ptr [R13],XMM0 XOR R14D,R14D MOV RDI,R12 MOV RSI,R13 MOV RDX,RBP XOR ECX,ECX CALL 0x0013b198 MOV qword ptr [RSP + 0x30],RBP MOV EBP,EAX MOV RSI,qword ptr [R13] MOV RDI,R12 CALL 0x0011726e TEST EBP,EBP JZ 0x00129215 MOV R13,qword ptr [RSP + 0x50] LAB_001291e1: MOV RDI,R12 MOV RSI,R13 CALL 0x0011726e MOV RDI,R12 MOV RSI,R15 MOV RDX,RBX CALL 0x0011801e LAB_001291fa: PUSH 0x6 POP RBX XOR R15D,R15D LAB_00129200: MOV RAX,R15 MOV RDX,RBX ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00129215: MOVSXD RAX,dword ptr [RSP + 0x5c] TEST EAX,EAX MOV EDX,0x0 MOV qword ptr [RSP + 0x28],RAX CMOVG EDX,EAX MOV R13,qword ptr [RSP + 0x50] SHL RDX,0x4 MOV RBP,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x10],RDX LAB_0012923c: CMP RDX,R14 JZ 0x001292f5 MOV RAX,qword ptr [R13 + R14*0x1 + 0x8] TEST RAX,RAX JZ 0x00129256 MOV qword ptr [RSP + 0x20],RBP JMP 0x00129287 LAB_00129256: MOV R8D,dword ptr [R13 + R14*0x1] MOV RDI,R12 LEA RSI,[RSP + 0x20] LEA RDX,[RSP + 0x38] MOV RCX,RBP CALL 0x0013b33a CMP EAX,0x3 JZ 0x001292c6 TEST EAX,EAX JNZ 0x001293ee MOV RAX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x10] LAB_00129287: CMP dword ptr [RAX + 0x14],0x7e JNZ 0x001292ad MOV dword ptr [R13 + R14*0x1 + 0x4],0x2 MOV RCX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RCX + 0x18] MOVSXD RAX,dword ptr [RAX] SHL RAX,0x4 MOV RAX,qword ptr [RCX + RAX*0x1 + 0x8] JMP 0x001292e7 LAB_001292ad: MOV dword ptr [R13 + R14*0x1 + 0x4],0x1 MOV RCX,qword ptr [RAX + 0x8] TEST RCX,RCX JZ 0x001292d3 MOV qword ptr [R13 + R14*0x1 + 0x8],RCX JMP 0x001292ec LAB_001292c6: AND dword ptr [R13 + R14*0x1 + 0x4],0x0 MOV RDX,qword ptr [RSP + 0x10] JMP 0x001292ec LAB_001292d3: MOV RCX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RCX + 0x68] MOV RCX,qword ptr [RCX + 0x38] MOVSXD RAX,dword ptr [RAX] MOV RAX,qword ptr [RCX + RAX*0x8] LAB_001292e7: MOV qword ptr [R13 + R14*0x1 + 0x8],RAX LAB_001292ec: ADD R14,0x10 JMP 0x0012923c LAB_001292f5: LEA RCX,[0x13b422] PUSH 0x10 POP RDX MOV RDI,R13 MOV RSI,qword ptr [RSP + 0x28] MOV R8,R12 CALL 0x0011683c MOV RCX,qword ptr [RSP + 0x10] XOR R14D,R14D MOV qword ptr [RSP + 0x18],RBX LAB_0012931c: CMP RCX,R14 JZ 0x001293b1 MOV EAX,dword ptr [R13 + R14*0x1 + 0x4] CMP EAX,0x2 JZ 0x00129378 CMP EAX,0x1 JNZ 0x001293a8 MOV RBX,R15 MOV R15,qword ptr [R13 + R14*0x1 + 0x8] MOV ECX,dword ptr [R13 + R14*0x1] TEST R15,R15 JZ 0x00129405 MOV RDI,R12 MOV RSI,RBX MOV EDX,ECX PUSH 0x26 POP RCX CALL 0x00134d1a TEST RAX,RAX JZ 0x00129413 INC dword ptr [R15] MOV qword ptr [RAX],R15 MOV R15,RBX MOV RBX,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x10] JMP 0x001293a8 LAB_00129378: MOV ECX,dword ptr [R13 + R14*0x1] MOV R9,qword ptr [R13 + R14*0x1 + 0x8] MOV dword ptr [RSP],0x6 MOV RDI,R12 MOV RSI,R15 MOV RDX,RBX PUSH 0x1 POP R8 CALL 0x001393f2 MOV RCX,qword ptr [RSP + 0x10] TEST EAX,EAX JS 0x001291e1 LAB_001293a8: ADD R14,0x10 JMP 0x0012931c LAB_001293b1: MOV RDI,R12 MOV RSI,R13 CALL 0x0011726e PUSH 0x7f POP RSI MOV RDI,R12 CALL 0x0011a990 MOV R9,RDX AND dword ptr [RSP],0x0 MOV RDI,R12 MOV RSI,R15 MOV RDX,RBX MOV ECX,0xda MOV R8,RAX CALL 0x00120872 AND byte ptr [R15 + 0x5],0xfe JMP 0x00129183 LAB_001293ee: MOV ECX,dword ptr [R13 + R14*0x1] MOV RDI,R12 MOV ESI,EAX MOV RDX,RBP CALL 0x0013b3a3 JMP 0x001291e1 LAB_00129405: PUSH 0x2 POP RSI MOV RDI,R12 MOV RDX,RBP CALL 0x0013b3a3 LAB_00129413: MOV R15,RBX MOV RBX,qword ptr [RSP + 0x18] JMP 0x001291e1
int1 [16] JS_GetModuleNamespace(int8 param_1,long param_2) { long lVar1; int iVar2; int *piVar4; int8 uVar5; int8 *puVar6; ulong uVar8; long lVar9; int1 auVar10 [16]; int1 auVar11 [16]; long local_78; long local_70; long local_68; int *local_60; int8 local_58; int8 uStack_50; long local_48; int8 uStack_40; long lVar3; int8 uVar7; if ((int)*(int8 *)(param_2 + 0x60) == 3) { auVar10 = JS_NewObjectClass(param_1,0xb); uVar7 = auVar10._8_8_; lVar3 = auVar10._0_8_; if (auVar10._8_4_ == 6) { LAB_00129183: if (auVar10._8_4_ != 6) { *(int1 (*) [16])(param_2 + 0x58) = auVar10; goto LAB_00129196; } } else { local_48 = 0; uStack_40 = 0; local_58 = 0; uStack_50 = 0; lVar9 = 0; iVar2 = get_exported_names(param_1,&local_58,param_2,0); local_68 = param_2; js_free(param_1,local_58); lVar1 = local_48; param_2 = local_68; if (iVar2 == 0) { local_70 = (long)(int)uStack_40._4_4_; uVar8 = 0; if (0 < (int)uStack_40._4_4_) { uVar8 = (ulong)uStack_40._4_4_; } for (; uVar8 << 4 != lVar9; lVar9 = lVar9 + 0x10) { piVar4 = *(int **)(lVar1 + 8 + lVar9); if (piVar4 == (int *)0x0) { iVar2 = js_resolve_export(param_1,&local_78,&local_60,param_2, *(int4 *)(lVar1 + lVar9)); if (iVar2 != 3) { piVar4 = local_60; if (iVar2 == 0) goto LAB_00129287; js_resolve_export_throw_error(param_1,iVar2,param_2,*(int4 *)(lVar1 + lVar9)); goto LAB_001291e1; } *(int4 *)(lVar1 + 4 + lVar9) = 0; } else { local_78 = param_2; LAB_00129287: if (piVar4[5] == 0x7e) { *(int4 *)(lVar1 + 4 + lVar9) = 2; uVar5 = *(int8 *)(*(long *)(local_78 + 0x18) + 8 + (long)*piVar4 * 0x10); } else { *(int4 *)(lVar1 + 4 + lVar9) = 1; if (*(long *)(piVar4 + 2) != 0) { *(long *)(lVar1 + 8 + lVar9) = *(long *)(piVar4 + 2); goto LAB_001292ec; } uVar5 = *(int8 *) (*(long *)(*(long *)(local_78 + 0x68) + 0x38) + (long)*piVar4 * 8); } *(int8 *)(lVar1 + 8 + lVar9) = uVar5; } LAB_001292ec: } rqsort(lVar1,local_70,0x10,exported_names_cmp,param_1); for (lVar9 = 0; uVar8 << 4 != lVar9; lVar9 = lVar9 + 0x10) { iVar2 = *(int *)(lVar1 + 4 + lVar9); if (iVar2 == 2) { iVar2 = JS_DefineAutoInitProperty (param_1,lVar3,uVar7,*(int4 *)(lVar1 + lVar9),1, *(int8 *)(lVar1 + 8 + lVar9),6); if (iVar2 < 0) goto LAB_001291e1; } else if (iVar2 == 1) { piVar4 = *(int **)(lVar1 + 8 + lVar9); if (piVar4 == (int *)0x0) { js_resolve_export_throw_error(param_1,2,param_2); goto LAB_001291e1; } puVar6 = (int8 *)add_property(param_1,lVar3,*(int4 *)(lVar1 + lVar9),0x26); if (puVar6 == (int8 *)0x0) goto LAB_001291e1; *piVar4 = *piVar4 + 1; *puVar6 = piVar4; } } js_free(param_1,lVar1); auVar11 = JS_AtomToString(param_1,0x7f); JS_DefinePropertyValue(param_1,lVar3,uVar7,0xda,auVar11._0_8_,auVar11._8_8_,0); *(byte *)(lVar3 + 5) = *(byte *)(lVar3 + 5) & 0xfe; goto LAB_00129183; } LAB_001291e1: js_free(param_1,lVar1); JS_FreeValue(param_1,lVar3,uVar7); } auVar10 = ZEXT816(6) << 0x40; } else { auVar10._8_8_ = *(int8 *)(param_2 + 0x60); auVar10._0_8_ = *(int8 *)(param_2 + 0x58); LAB_00129196: if (0xfffffff6 < auVar10._8_4_) { *auVar10._0_8_ = *auVar10._0_8_ + 1; } } return auVar10; }
2,102
mi_fix_status
eloqsql/storage/myisam/mi_locking.c
void mi_fix_status(MI_INFO *org_table, MI_INFO *new_table) { DBUG_ENTER("mi_fix_status"); if (!new_table) { /* First in group. Set state as in mi_get_status() */ org_table->state= &org_table->save_state; } else { /* Set new_table to use state from org_table (first lock of this table) */ new_table->state= org_table->state; } DBUG_VOID_RETURN; }
O0
c
mi_fix_status: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) jne 0xd4605 movq -0x8(%rbp), %rcx addq $0x10, %rcx movq -0x8(%rbp), %rax movq %rcx, 0x8(%rax) jmp 0xd4615 movq -0x8(%rbp), %rax movq 0x8(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) jmp 0xd4617 jmp 0xd4619 popq %rbp retq nopl (%rax,%rax)
mi_fix_status: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi cmp [rbp+var_10], 0 jnz short loc_D4605 mov rcx, [rbp+var_8] add rcx, 10h mov rax, [rbp+var_8] mov [rax+8], rcx jmp short loc_D4615 loc_D4605: mov rax, [rbp+var_8] mov rcx, [rax+8] mov rax, [rbp+var_10] mov [rax+8], rcx loc_D4615: jmp short $+2 loc_D4617: jmp short $+2 loc_D4619: pop rbp retn
long long mi_fix_status(long long a1, long long a2) { long long result; // rax if ( a2 ) { result = a2; *(_QWORD *)(a2 + 8) = *(_QWORD *)(a1 + 8); } else { result = a1; *(_QWORD *)(a1 + 8) = a1 + 16; } return result; }
mi_fix_status: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI CMP qword ptr [RBP + -0x10],0x0 JNZ 0x001d4605 MOV RCX,qword ptr [RBP + -0x8] ADD RCX,0x10 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],RCX JMP 0x001d4615 LAB_001d4605: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX LAB_001d4615: JMP 0x001d4617 LAB_001d4617: JMP 0x001d4619 LAB_001d4619: POP RBP RET
void mi_fix_status(long param_1,long param_2) { if (param_2 == 0) { *(long *)(param_1 + 8) = param_1 + 0x10; } else { *(int8 *)(param_2 + 8) = *(int8 *)(param_1 + 8); } return; }
2,103
mi_setup_functions
eloqsql/storage/myisam/mi_open.c
void mi_setup_functions(register MYISAM_SHARE *share) { if (share->options & HA_OPTION_COMPRESS_RECORD) { share->read_record=_mi_read_pack_record; share->read_rnd=_mi_read_rnd_pack_record; if ((share->options & (HA_OPTION_PACK_RECORD | HA_OPTION_NULL_FIELDS)) || share->has_varchar_fields) share->calc_checksum= mi_checksum; else share->calc_checksum= mi_static_checksum; share->calc_check_checksum= share->calc_checksum; if (!(share->options & HA_OPTION_TEMP_COMPRESS_RECORD)) share->calc_checksum=0; /* No checksum */ } else if (share->options & HA_OPTION_PACK_RECORD) { share->read_record=_mi_read_dynamic_record; share->read_rnd=_mi_read_rnd_dynamic_record; share->delete_record=_mi_delete_dynamic_record; share->compare_record=_mi_cmp_dynamic_record; share->compare_unique=_mi_cmp_dynamic_unique; share->calc_checksum= mi_checksum; share->calc_check_checksum= share->calc_checksum; /* add bits used to pack data to pack_reclength for faster allocation */ share->base.pack_reclength+= share->base.pack_bits; if (share->base.blobs) { share->update_record=_mi_update_blob_record; share->write_record=_mi_write_blob_record; } else { share->write_record=_mi_write_dynamic_record; share->update_record=_mi_update_dynamic_record; } } else { share->read_record=_mi_read_static_record; share->read_rnd=_mi_read_rnd_static_record; share->delete_record=_mi_delete_static_record; share->compare_record=_mi_cmp_static_record; share->update_record=_mi_update_static_record; share->write_record=_mi_write_static_record; share->compare_unique=_mi_cmp_static_unique; if (share->options & HA_OPTION_NULL_FIELDS) share->calc_checksum= mi_checksum; else share->calc_checksum= mi_static_checksum; share->calc_check_checksum= share->calc_checksum; } share->file_read= mi_nommap_pread; share->file_write= mi_nommap_pwrite; if (!(share->options & HA_OPTION_CHECKSUM)) share->calc_checksum=0; return; }
O3
c
mi_setup_functions: pushq %rbp movq %rsp, %rbp movq 0x318(%rdi), %rax testb $0x4, %al jne 0x7f6f8 testb $0x1, %al jne 0x7f758 leaq 0x76de(%rip), %rcx # 0x86d65 movq %rcx, 0x298(%rdi) leaq 0x77b9(%rip), %rcx # 0x86e4e movq %rcx, 0x2b8(%rdi) leaq 0x74e5(%rip), %rcx # 0x86b88 movq %rcx, 0x2b0(%rdi) leaq 0x757c(%rip), %rcx # 0x86c2d movq %rcx, 0x2c0(%rdi) leaq 0x748f(%rip), %rcx # 0x86b4e movq %rcx, 0x2a8(%rdi) leaq 0x71cf(%rip), %rcx # 0x8689c movq %rcx, 0x2a0(%rdi) leaq 0x761a(%rip), %rcx # 0x86cf5 movq %rcx, 0x2d8(%rdi) btl $0xa, %eax jb 0x7f804 leaq 0xf7bf(%rip), %rdx # 0x8eeb2 jmp 0x7f80b leaq 0x1c49(%rip), %rcx # 0x81348 movq %rcx, 0x298(%rdi) leaq 0x2126(%rip), %rcx # 0x81833 movq %rcx, 0x2b8(%rdi) testl $0x401, %eax # imm = 0x401 jne 0x7f72d cmpb $0x0, 0x37e(%rdi) jne 0x7f72d leaq 0xf787(%rip), %rcx # 0x8eeb2 jmp 0x7f734 leaq 0xf678(%rip), %rcx # 0x8edac movq %rcx, 0x2c8(%rdi) movq %rcx, 0x2d0(%rdi) testw %ax, %ax js 0x7f820 movl $0x2c8, %ecx # imm = 0x2C8 xorl %r8d, %r8d jmp 0x7f81c leaq -0x6b2f(%rip), %rcx # 0x78c30 movq %rcx, 0x298(%rdi) leaq -0x6326(%rip), %rcx # 0x79447 movq %rcx, 0x2b8(%rdi) leaq -0x80e4(%rip), %rcx # 0x77697 movq %rcx, 0x2b0(%rdi) leaq -0x676c(%rip), %rcx # 0x7901d movq %rcx, 0x2c0(%rdi) leaq -0x685f(%rip), %rcx # 0x78f38 movq %rcx, 0x2d8(%rdi) leaq 0xf607(%rip), %rcx # 0x8edac movq %rcx, 0x2c8(%rdi) movq %rcx, 0x2d0(%rdi) movl 0x18c(%rdi), %ecx addq %rcx, 0x148(%rdi) xorl %ecx, %ecx xorl %esi, %esi cmpl $0x0, 0x188(%rdi) sete %cl setne %sil leaq -0x81d6(%rip), %rdx # 0x77603 cmoveq 0x3047b7(%rip), %rdx # 0x383f98 leaq -0x82ee(%rip), %r8 # 0x774fa cmoveq 0x3047a0(%rip), %r8 # 0x383f90 shll $0x3, %esi movl $0x2a0, %r9d # imm = 0x2A0 orq %r9, %rsi shll $0x3, %ecx orq %r9, %rcx jmp 0x7f818 leaq 0xf5a1(%rip), %rdx # 0x8edac movl $0x2d0, %ecx # imm = 0x2D0 movl $0x2c8, %esi # imm = 0x2C8 movq %rdx, %r8 movq %rdx, (%rdi,%rsi) movq %r8, (%rdi,%rcx) leaq -0x8df7(%rip), %rcx # 0x76a30 movq %rcx, 0x2e0(%rdi) leaq -0x8d2b(%rip), %rcx # 0x76b0a movq %rcx, 0x2e8(%rdi) testb $0x20, %al jne 0x7f84b movq $0x0, 0x2c8(%rdi) popq %rbp retq
mi_setup_functions: push rbp mov rbp, rsp mov rax, [rdi+318h] test al, 4 jnz loc_7F6F8 test al, 1 jnz loc_7F758 lea rcx, _mi_read_static_record mov [rdi+298h], rcx lea rcx, _mi_read_rnd_static_record mov [rdi+2B8h], rcx lea rcx, _mi_delete_static_record mov [rdi+2B0h], rcx lea rcx, _mi_cmp_static_record mov [rdi+2C0h], rcx lea rcx, _mi_update_static_record mov [rdi+2A8h], rcx lea rcx, _mi_write_static_record mov [rdi+2A0h], rcx lea rcx, _mi_cmp_static_unique mov [rdi+2D8h], rcx bt eax, 0Ah jb loc_7F804 lea rdx, mi_static_checksum jmp loc_7F80B loc_7F6F8: lea rcx, _mi_read_pack_record mov [rdi+298h], rcx lea rcx, _mi_read_rnd_pack_record mov [rdi+2B8h], rcx test eax, 401h jnz short loc_7F72D cmp byte ptr [rdi+37Eh], 0 jnz short loc_7F72D lea rcx, mi_static_checksum jmp short loc_7F734 loc_7F72D: lea rcx, mi_checksum loc_7F734: mov [rdi+2C8h], rcx mov [rdi+2D0h], rcx test ax, ax js loc_7F820 mov ecx, 2C8h xor r8d, r8d jmp loc_7F81C loc_7F758: lea rcx, _mi_read_dynamic_record mov [rdi+298h], rcx lea rcx, _mi_read_rnd_dynamic_record mov [rdi+2B8h], rcx lea rcx, _mi_delete_dynamic_record mov [rdi+2B0h], rcx lea rcx, _mi_cmp_dynamic_record mov [rdi+2C0h], rcx lea rcx, _mi_cmp_dynamic_unique mov [rdi+2D8h], rcx lea rcx, mi_checksum mov [rdi+2C8h], rcx mov [rdi+2D0h], rcx mov ecx, [rdi+18Ch] add [rdi+148h], rcx xor ecx, ecx xor esi, esi cmp dword ptr [rdi+188h], 0 setz cl setnz sil lea rdx, _mi_update_blob_record cmovz rdx, cs:_mi_write_dynamic_record_ptr lea r8, _mi_write_blob_record cmovz r8, cs:_mi_update_dynamic_record_ptr shl esi, 3 mov r9d, 2A0h or rsi, r9 shl ecx, 3 or rcx, r9 jmp short loc_7F818 loc_7F804: lea rdx, mi_checksum loc_7F80B: mov ecx, 2D0h mov esi, 2C8h mov r8, rdx loc_7F818: mov [rdi+rsi], rdx loc_7F81C: mov [rdi+rcx], r8 loc_7F820: lea rcx, mi_nommap_pread mov [rdi+2E0h], rcx lea rcx, mi_nommap_pwrite mov [rdi+2E8h], rcx test al, 20h jnz short loc_7F84B mov qword ptr [rdi+2C8h], 0 loc_7F84B: pop rbp retn
long long mi_setup_functions(long long a1) { long long result; // rax long long ( *v2)(); // rdx long long ( *v3)(); // rcx long long v4; // rcx void *v5; // r8 long long v6; // rsi result = *(_QWORD *)(a1 + 792); if ( (result & 4) == 0 ) { if ( (result & 1) != 0 ) { *(_QWORD *)(a1 + 664) = mi_read_dynamic_record; *(_QWORD *)(a1 + 696) = mi_read_rnd_dynamic_record; *(_QWORD *)(a1 + 688) = mi_delete_dynamic_record; *(_QWORD *)(a1 + 704) = mi_cmp_dynamic_record; *(_QWORD *)(a1 + 728) = mi_cmp_dynamic_unique; *(_QWORD *)(a1 + 712) = mi_checksum; *(_QWORD *)(a1 + 720) = mi_checksum; *(_QWORD *)(a1 + 328) += *(unsigned int *)(a1 + 396); v2 = (long long ( *)())mi_update_blob_record; if ( !*(_DWORD *)(a1 + 392) ) v2 = (long long ( *)())mi_write_dynamic_record; v5 = mi_write_blob_record; if ( !*(_DWORD *)(a1 + 392) ) v5 = mi_update_dynamic_record; v6 = (8 * (unsigned int)(*(_DWORD *)(a1 + 392) != 0)) | 0x2A0LL; v4 = (8 * (unsigned int)(*(_DWORD *)(a1 + 392) == 0)) | 0x2A0LL; } else { *(_QWORD *)(a1 + 664) = mi_read_static_record; *(_QWORD *)(a1 + 696) = mi_read_rnd_static_record; *(_QWORD *)(a1 + 688) = mi_delete_static_record; *(_QWORD *)(a1 + 704) = mi_cmp_static_record; *(_QWORD *)(a1 + 680) = mi_update_static_record; *(_QWORD *)(a1 + 672) = mi_write_static_record; *(_QWORD *)(a1 + 728) = mi_cmp_static_unique; if ( (result & 0x400) != 0 ) v2 = mi_checksum; else v2 = mi_static_checksum; v4 = 720LL; v6 = 712LL; v5 = v2; } *(_QWORD *)(a1 + v6) = v2; goto LABEL_19; } *(_QWORD *)(a1 + 664) = mi_read_pack_record; *(_QWORD *)(a1 + 696) = mi_read_rnd_pack_record; if ( (result & 0x401) != 0 || *(_BYTE *)(a1 + 894) ) v3 = mi_checksum; else v3 = mi_static_checksum; *(_QWORD *)(a1 + 712) = v3; *(_QWORD *)(a1 + 720) = v3; if ( (result & 0x8000u) == 0LL ) { v4 = 712LL; v5 = 0LL; LABEL_19: *(_QWORD *)(a1 + v4) = v5; } *(_QWORD *)(a1 + 736) = mi_nommap_pread; *(_QWORD *)(a1 + 744) = mi_nommap_pwrite; if ( (result & 0x20) == 0 ) *(_QWORD *)(a1 + 712) = 0LL; return result; }
mi_setup_functions: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI + 0x318] TEST AL,0x4 JNZ 0x0017f6f8 TEST AL,0x1 JNZ 0x0017f758 LEA RCX,[0x186d65] MOV qword ptr [RDI + 0x298],RCX LEA RCX,[0x186e4e] MOV qword ptr [RDI + 0x2b8],RCX LEA RCX,[0x186b88] MOV qword ptr [RDI + 0x2b0],RCX LEA RCX,[0x186c2d] MOV qword ptr [RDI + 0x2c0],RCX LEA RCX,[0x186b4e] MOV qword ptr [RDI + 0x2a8],RCX LEA RCX,[0x18689c] MOV qword ptr [RDI + 0x2a0],RCX LEA RCX,[0x186cf5] MOV qword ptr [RDI + 0x2d8],RCX BT EAX,0xa JC 0x0017f804 LEA RDX,[0x18eeb2] JMP 0x0017f80b LAB_0017f6f8: LEA RCX,[0x181348] MOV qword ptr [RDI + 0x298],RCX LEA RCX,[0x181833] MOV qword ptr [RDI + 0x2b8],RCX TEST EAX,0x401 JNZ 0x0017f72d CMP byte ptr [RDI + 0x37e],0x0 JNZ 0x0017f72d LEA RCX,[0x18eeb2] JMP 0x0017f734 LAB_0017f72d: LEA RCX,[0x18edac] LAB_0017f734: MOV qword ptr [RDI + 0x2c8],RCX MOV qword ptr [RDI + 0x2d0],RCX TEST AX,AX JS 0x0017f820 MOV ECX,0x2c8 XOR R8D,R8D JMP 0x0017f81c LAB_0017f758: LEA RCX,[0x178c30] MOV qword ptr [RDI + 0x298],RCX LEA RCX,[0x179447] MOV qword ptr [RDI + 0x2b8],RCX LEA RCX,[0x177697] MOV qword ptr [RDI + 0x2b0],RCX LEA RCX,[0x17901d] MOV qword ptr [RDI + 0x2c0],RCX LEA RCX,[0x178f38] MOV qword ptr [RDI + 0x2d8],RCX LEA RCX,[0x18edac] MOV qword ptr [RDI + 0x2c8],RCX MOV qword ptr [RDI + 0x2d0],RCX MOV ECX,dword ptr [RDI + 0x18c] ADD qword ptr [RDI + 0x148],RCX XOR ECX,ECX XOR ESI,ESI CMP dword ptr [RDI + 0x188],0x0 SETZ CL SETNZ SIL LEA RDX,[0x177603] CMOVZ RDX,qword ptr [0x00483f98] LEA R8,[0x1774fa] CMOVZ R8,qword ptr [0x00483f90] SHL ESI,0x3 MOV R9D,0x2a0 OR RSI,R9 SHL ECX,0x3 OR RCX,R9 JMP 0x0017f818 LAB_0017f804: LEA RDX,[0x18edac] LAB_0017f80b: MOV ECX,0x2d0 MOV ESI,0x2c8 MOV R8,RDX LAB_0017f818: MOV qword ptr [RDI + RSI*0x1],RDX LAB_0017f81c: MOV qword ptr [RDI + RCX*0x1],R8 LAB_0017f820: LEA RCX,[0x176a30] MOV qword ptr [RDI + 0x2e0],RCX LEA RCX,[0x176b0a] MOV qword ptr [RDI + 0x2e8],RCX TEST AL,0x20 JNZ 0x0017f84b MOV qword ptr [RDI + 0x2c8],0x0 LAB_0017f84b: POP RBP RET
void mi_setup_functions(long param_1) { ulong uVar1; ulong uVar2; code *pcVar3; ulong uVar4; code *pcVar5; bool bVar6; uVar1 = *(ulong *)(param_1 + 0x318); if ((uVar1 & 4) == 0) { if ((uVar1 & 1) == 0) { *(code **)(param_1 + 0x298) = _mi_read_static_record; *(code **)(param_1 + 0x2b8) = _mi_read_rnd_static_record; *(code **)(param_1 + 0x2b0) = _mi_delete_static_record; *(code **)(param_1 + 0x2c0) = _mi_cmp_static_record; *(code **)(param_1 + 0x2a8) = _mi_update_static_record; *(code **)(param_1 + 0x2a0) = _mi_write_static_record; *(code **)(param_1 + 0x2d8) = _mi_cmp_static_unique; if (((uint)uVar1 >> 10 & 1) == 0) { pcVar3 = mi_static_checksum; } else { pcVar3 = mi_checksum; } uVar2 = 0x2d0; uVar4 = 0x2c8; pcVar5 = pcVar3; } else { *(code **)(param_1 + 0x298) = _mi_read_dynamic_record; *(code **)(param_1 + 0x2b8) = _mi_read_rnd_dynamic_record; *(code **)(param_1 + 0x2b0) = _mi_delete_dynamic_record; *(code **)(param_1 + 0x2c0) = _mi_cmp_dynamic_record; *(code **)(param_1 + 0x2d8) = _mi_cmp_dynamic_unique; *(code **)(param_1 + 0x2c8) = mi_checksum; *(code **)(param_1 + 0x2d0) = mi_checksum; *(long *)(param_1 + 0x148) = *(long *)(param_1 + 0x148) + (ulong)*(uint *)(param_1 + 0x18c); bVar6 = *(int *)(param_1 + 0x188) == 0; pcVar3 = _mi_update_blob_record; if (bVar6) { pcVar3 = (code *)PTR__mi_write_dynamic_record_00483f98; } pcVar5 = _mi_write_blob_record; if (bVar6) { pcVar5 = (code *)PTR__mi_update_dynamic_record_00483f90; } uVar4 = (ulong)!bVar6 << 3 | 0x2a0; uVar2 = (ulong)bVar6 << 3 | 0x2a0; } *(code **)(param_1 + uVar4) = pcVar3; } else { *(code **)(param_1 + 0x298) = _mi_read_pack_record; *(code **)(param_1 + 0x2b8) = _mi_read_rnd_pack_record; if (((uVar1 & 0x401) == 0) && (*(char *)(param_1 + 0x37e) == '\0')) { pcVar5 = mi_static_checksum; } else { pcVar5 = mi_checksum; } *(code **)(param_1 + 0x2c8) = pcVar5; *(code **)(param_1 + 0x2d0) = pcVar5; if ((short)uVar1 < 0) goto LAB_0017f820; uVar2 = 0x2c8; pcVar5 = (code *)0x0; } *(code **)(param_1 + uVar2) = pcVar5; LAB_0017f820: *(code **)(param_1 + 0x2e0) = mi_nommap_pread; *(code **)(param_1 + 0x2e8) = mi_nommap_pwrite; if ((uVar1 & 0x20) == 0) { *(int8 *)(param_1 + 0x2c8) = 0; } return; }
2,104
js_parse_expr_paren
bluesky950520[P]quickjs/quickjs.c
static __exception int js_parse_expr_paren(JSParseState *s) { if (js_parse_expect(s, '(')) return -1; if (js_parse_expr(s)) return -1; if (js_parse_expect(s, ')')) return -1; return 0; }
O2
c
js_parse_expr_paren: pushq %rbp pushq %rbx pushq %rax movq %rdi, %rbx pushq $0x28 popq %rsi callq 0x58deb pushq $-0x1 popq %rbp testl %eax, %eax jne 0x5c873 movq %rbx, %rdi callq 0x5db16 testl %eax, %eax jne 0x5c873 pushq $0x29 popq %rsi movq %rbx, %rdi callq 0x58deb xorl %ebp, %ebp negl %eax sbbl %ebp, %ebp movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %rbp retq
js_parse_expr_paren: push rbp push rbx push rax mov rbx, rdi push 28h ; '(' pop rsi call js_parse_expect push 0FFFFFFFFFFFFFFFFh pop rbp test eax, eax jnz short loc_5C873 mov rdi, rbx call js_parse_expr test eax, eax jnz short loc_5C873 push 29h ; ')' pop rsi mov rdi, rbx call js_parse_expect xor ebp, ebp neg eax sbb ebp, ebp loc_5C873: mov eax, ebp add rsp, 8 pop rbx pop rbp retn
long long js_parse_expr_paren( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long a13, long long a14) { unsigned int v14; // ebp long long v15; // rdx long long v16; // rcx long long v17; // r8 long long v18; // r9 __m128 v19; // xmm4 __m128 v20; // xmm5 v14 = -1; if ( !(unsigned int)js_parse_expect(a1, 40LL, a11, a12, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9) && !(unsigned int)js_parse_expr(a1) ) { return (unsigned int)-((unsigned int)js_parse_expect(a1, 41LL, v15, v16, v17, v18, a2, a3, a4, a5, v19, v20, a8, a9) != 0); } return v14; }
js_parse_expr_paren: PUSH RBP PUSH RBX PUSH RAX MOV RBX,RDI PUSH 0x28 POP RSI CALL 0x00158deb PUSH -0x1 POP RBP TEST EAX,EAX JNZ 0x0015c873 MOV RDI,RBX CALL 0x0015db16 TEST EAX,EAX JNZ 0x0015c873 PUSH 0x29 POP RSI MOV RDI,RBX CALL 0x00158deb XOR EBP,EBP NEG EAX SBB EBP,EBP LAB_0015c873: MOV EAX,EBP ADD RSP,0x8 POP RBX POP RBP RET
int js_parse_expr_paren(int8 param_1) { int iVar1; int iVar2; iVar1 = js_parse_expect(param_1,0x28); iVar2 = -1; if (iVar1 == 0) { iVar1 = js_parse_expr(param_1); if (iVar1 == 0) { iVar2 = js_parse_expect(param_1,0x29); iVar2 = -(uint)(iVar2 != 0); } } return iVar2; }
2,105
my_printv_error
eloqsql/mysys/my_error.c
void my_printv_error(uint error, const char *format, myf MyFlags, va_list ap) { char ebuff[ERRMSGSIZE]; DBUG_ENTER("my_printv_error"); DBUG_PRINT("my", ("nr: %d MyFlags: %lu errno: %d format: %s", error, MyFlags, errno, format)); (void) my_vsnprintf(ebuff, sizeof(ebuff), format, ap); (*error_handler_hook)(error, ebuff, MyFlags); DBUG_VOID_RETURN; }
O3
c
my_printv_error: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x208, %rsp # imm = 0x208 movq %rdx, %rbx movq %rsi, %rdx movl %edi, %r14d movq %fs:0x28, %rax movq %rax, -0x20(%rbp) leaq -0x220(%rbp), %r15 movl $0x200, %esi # imm = 0x200 movq %r15, %rdi callq 0xd7cc5 leaq 0x2e88fb(%rip), %rax # 0x387bf0 movl %r14d, %edi movq %r15, %rsi movq %rbx, %rdx callq *(%rax) movq %fs:0x28, %rax cmpq -0x20(%rbp), %rax jne 0x9f31d addq $0x208, %rsp # imm = 0x208 popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0x29270
my_printv_error: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 208h mov rbx, rdx mov rdx, rsi mov r14d, edi mov rax, fs:28h mov [rbp+var_20], rax lea r15, [rbp+var_220] mov esi, 200h mov rdi, r15 call my_vsnprintf lea rax, error_handler_hook mov edi, r14d mov rsi, r15 mov rdx, rbx call qword ptr [rax] mov rax, fs:28h cmp rax, [rbp+var_20] jnz short loc_9F31D add rsp, 208h pop rbx pop r14 pop r15 pop rbp retn loc_9F31D: call ___stack_chk_fail
unsigned long long my_printv_error(long long a1, long long a2) { _BYTE v3[512]; // [rsp+0h] [rbp-220h] BYREF unsigned long long v4; // [rsp+200h] [rbp-20h] v4 = __readfsqword(0x28u); my_vsnprintf(v3, 512LL, a2); error_handler_hook(); return __readfsqword(0x28u); }
my_printv_error: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x208 MOV RBX,RDX MOV RDX,RSI MOV R14D,EDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX LEA R15,[RBP + -0x220] MOV ESI,0x200 MOV RDI,R15 CALL 0x001d7cc5 LEA RAX,[0x487bf0] MOV EDI,R14D MOV RSI,R15 MOV RDX,RBX CALL qword ptr [RAX] MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0019f31d ADD RSP,0x208 POP RBX POP R14 POP R15 POP RBP RET LAB_0019f31d: CALL 0x00129270
void my_printv_error(int4 param_1,int8 param_2,int8 param_3) { long in_FS_OFFSET; int1 local_228 [512]; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); my_vsnprintf(local_228,0x200,param_2); (*(code *)error_handler_hook)(param_1,local_228,param_3); if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
2,106
MyCTX_nopad::update_source_tail(unsigned char const*, unsigned int)
eloqsql/mysys_ssl/my_crypt.cc
void update_source_tail(const uchar* src, uint slen) { if (!slen) return; uint new_tail_len= (source_tail_len + slen) % MY_AES_BLOCK_SIZE; if (new_tail_len) { if (slen + source_tail_len < MY_AES_BLOCK_SIZE) { memcpy(source_tail + source_tail_len, src, slen); } else { DBUG_ASSERT(slen > new_tail_len); memcpy(source_tail, src + slen - new_tail_len, new_tail_len); } } source_tail_len= new_tail_len; }
O3
cpp
MyCTX_nopad::update_source_tail(unsigned char const*, unsigned int): testl %edx, %edx je 0xd8782 pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movl 0xdc(%rdi), %eax leal (%rax,%rdx), %ecx movl %ecx, %r14d andl $0xf, %r14d je 0xd8777 leaq 0xf0(%rbx), %rdi cmpl $0xf, %ecx ja 0xd8767 addq %rax, %rdi movl %edx, %edx jmp 0xd8772 movl %edx, %eax addq %rax, %rsi movl %r14d, %edx subq %rdx, %rsi callq 0x29080 movl %r14d, 0xdc(%rbx) popq %rbx popq %r14 popq %rbp retq
_ZN11MyCTX_nopad18update_source_tailEPKhj: test edx, edx jz short locret_D8782 push rbp mov rbp, rsp push r14 push rbx mov rbx, rdi mov eax, [rdi+0DCh] lea ecx, [rax+rdx] mov r14d, ecx and r14d, 0Fh jz short loc_D8777 lea rdi, [rbx+0F0h] cmp ecx, 0Fh ja short loc_D8767 add rdi, rax mov edx, edx jmp short loc_D8772 loc_D8767: mov eax, edx add rsi, rax mov edx, r14d sub rsi, rdx loc_D8772: call _memcpy loc_D8777: mov [rbx+0DCh], r14d pop rbx pop r14 pop rbp locret_D8782: retn
void MyCTX_nopad::update_source_tail(MyCTX_nopad *this, const unsigned __int8 *a2, long long a3) { long long v4; // rax unsigned int v5; // r14d char *v6; // rdi const unsigned __int8 *v7; // rsi if ( (_DWORD)a3 ) { v4 = *((unsigned int *)this + 55); v5 = ((_BYTE)v4 + (_BYTE)a3) & 0xF; if ( (((_BYTE)v4 + (_BYTE)a3) & 0xF) != 0 ) { v6 = (char *)this + 240; if ( (unsigned int)(v4 + a3) > 0xF ) { v7 = &a2[(unsigned int)a3]; a3 = ((_BYTE)v4 + (_BYTE)a3) & 0xF; a2 = &v7[-v5]; } else { v6 += v4; a3 = (unsigned int)a3; } memcpy(v6, a2, a3); } *((_DWORD *)this + 55) = v5; } }
update_source_tail: TEST EDX,EDX JZ 0x001d8782 PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDI MOV EAX,dword ptr [RDI + 0xdc] LEA ECX,[RAX + RDX*0x1] MOV R14D,ECX AND R14D,0xf JZ 0x001d8777 LEA RDI,[RBX + 0xf0] CMP ECX,0xf JA 0x001d8767 ADD RDI,RAX MOV EDX,EDX JMP 0x001d8772 LAB_001d8767: MOV EAX,EDX ADD RSI,RAX MOV EDX,R14D SUB RSI,RDX LAB_001d8772: CALL 0x00129080 LAB_001d8777: MOV dword ptr [RBX + 0xdc],R14D POP RBX POP R14 POP RBP LAB_001d8782: RET
/* MyCTX_nopad::update_source_tail(unsigned char const*, unsigned int) */ void __thiscall MyCTX_nopad::update_source_tail(MyCTX_nopad *this,uchar *param_1,uint param_2) { uint uVar1; size_t __n; MyCTX_nopad *__dest; uint uVar2; if (param_2 != 0) { uVar1 = *(uint *)(this + 0xdc) + param_2; uVar2 = uVar1 & 0xf; if (uVar2 != 0) { __dest = this + 0xf0; if (uVar1 < 0x10) { __dest = __dest + *(uint *)(this + 0xdc); __n = (size_t)param_2; } else { __n = (size_t)uVar2; param_1 = param_1 + (param_2 - __n); } memcpy(__dest,param_1,__n); } *(uint *)(this + 0xdc) = uVar2; } return; }
2,107
void ggml::cpu::aarch64::gemv<block_q4_0, 8l, 4l>(int, float*, unsigned long, void const*, void const*, int, int)
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp
void gemv<block_q4_0, 8, 4>(int n, float * s, size_t bs, const void * vx, const void * vy, int nr, int nc) { ggml_gemv_q4_0_4x8_q8_0(n, s, bs, vx, vy, nr, nc); }
O1
cpp
void ggml::cpu::aarch64::gemv<block_q4_0, 8l, 4l>(int, float*, unsigned long, void const*, void const*, int, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %r8, 0x18(%rsp) movq %rcx, 0x8(%rsp) movq %rsi, 0x60(%rsp) leal 0x1f(%rdi), %eax testl %edi, %edi cmovnsl %edi, %eax movq %rdi, 0x58(%rsp) testb $0x1f, %dil jne 0x29d6d movl 0xb0(%rsp), %ecx testb $0x3, %cl jne 0x29d8c sarl $0x2, %ecx testl %ecx, %ecx jle 0x29d5e sarl $0x5, %eax movslq %eax, %rdx movl %ecx, %eax movq %rax, 0x50(%rsp) movl %edx, %eax movq %rax, 0x68(%rsp) movq 0x18(%rsp), %rax addq $0x12, %rax movq %rax, 0x38(%rsp) movq 0x8(%rsp), %rax addq $0x8, %rax movq %rax, 0x10(%rsp) movq %rdx, 0x40(%rsp) leaq (,%rdx,8), %rax leaq (%rax,%rax,8), %rax movq %rax, 0x48(%rsp) movq $0x0, (%rsp) vxorps %xmm0, %xmm0, %xmm0 movq 0x1f346(%rip), %r15 # 0x48f68 vmovaps %xmm0, 0x20(%rsp) cmpl $0x20, 0x58(%rsp) jl 0x29d28 movq (%rsp), %rax imulq 0x40(%rsp), %rax leaq (%rax,%rax,8), %rax movq 0x8(%rsp), %rcx leaq (%rcx,%rax,8), %rax movq %rax, 0x70(%rsp) movq 0x10(%rsp), %rax movq 0x38(%rsp), %rdx xorl %r10d, %r10d leaq (%r10,%r10,8), %rcx movq 0x70(%rsp), %rsi leaq (%rsi,%rcx,8), %rcx movq %r10, %rsi shlq $0x5, %rsi leaq (%rsi,%r10,2), %rsi movq 0x18(%rsp), %rdi movzwl (%rdi,%rsi), %esi vmovss (%r15,%rsi,4), %xmm1 movq %rax, %r11 movq %rdx, %rbp xorl %esi, %esi movq %r11, %r13 xorl %ebx, %ebx xorl %edi, %edi xorl %r14d, %r14d movsbl (%r13,%rdi), %r9d movl %r9d, %r8d shlb $0x4, %r8b movsbl %r8b, %r8d andl $-0x10, %r9d movsbl -0x10(%rbp,%rdi), %r12d imull %r8d, %r12d movsbl (%rbp,%rdi), %r8d imull %r9d, %r8d addl %r12d, %r8d sarl $0x4, %r8d addl %r8d, %r14d incq %rdi cmpq $0x8, %rdi jne 0x29c95 vcvtsi2ss %r14d, %xmm3, %xmm2 movzwl (%rcx,%rbx,2), %edi vmulss (%r15,%rdi,4), %xmm2, %xmm2 vfmadd213ss 0x20(%rsp,%rbx,4), %xmm1, %xmm2 # xmm2 = (xmm1 * xmm2) + mem vmovss %xmm2, 0x20(%rsp,%rbx,4) incq %rbx addq $0x8, %r13 cmpq $0x4, %rbx jne 0x29c90 leaq 0x1(%rsi), %rdi addq $0x8, %rbp addq $0x20, %r11 testq %rsi, %rsi movq %rdi, %rsi je 0x29c8b incq %r10 addq $0x22, %rdx addq $0x48, %rax cmpq 0x68(%rsp), %r10 jne 0x29c5c movq (%rsp), %rcx movq %rcx, %rax shlq $0x4, %rax vmovaps 0x20(%rsp), %xmm1 addq 0x60(%rsp), %rax vmovups %xmm1, (%rax) incq %rcx movq 0x48(%rsp), %rax addq %rax, 0x10(%rsp) movq %rcx, (%rsp) cmpq 0x50(%rsp), %rcx jne 0x29c22 addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0xfb1c(%rip), %rdi # 0x39890 leaq 0xf9e3(%rip), %rsi # 0x3975e leaq 0xfbad(%rip), %rcx # 0x3992f movl $0x280, %edx # imm = 0x280 callq 0x83b0 leaq 0xfb80(%rip), %rdi # 0x39913 leaq 0xf9c4(%rip), %rsi # 0x3975e leaq 0xfb8e(%rip), %rcx # 0x3992f movl $0x281, %edx # imm = 0x281 callq 0x83b0
_ZN4ggml3cpu7aarch644gemvI10block_q4_0Ll8ELl4EEEviPfmPKvS6_ii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov [rsp+0A8h+var_90], r8 mov [rsp+0A8h+var_A0], rcx mov [rsp+0A8h+var_48], rsi lea eax, [rdi+1Fh] test edi, edi cmovns eax, edi mov [rsp+0A8h+var_50], rdi test dil, 1Fh jnz loc_29D6D mov ecx, [rsp+0A8h+arg_0] test cl, 3 jnz loc_29D8C sar ecx, 2 test ecx, ecx jle loc_29D5E sar eax, 5 movsxd rdx, eax mov eax, ecx mov [rsp+0A8h+var_58], rax mov eax, edx mov [rsp+0A8h+var_40], rax mov rax, [rsp+0A8h+var_90] add rax, 12h mov [rsp+0A8h+var_70], rax mov rax, [rsp+0A8h+var_A0] add rax, 8 mov [rsp+0A8h+var_98], rax mov [rsp+0A8h+var_68], rdx lea rax, ds:0[rdx*8] lea rax, [rax+rax*8] mov [rsp+0A8h+var_60], rax mov [rsp+0A8h+var_A8], 0 vxorps xmm0, xmm0, xmm0 mov r15, cs:ggml_table_f32_f16_ptr loc_29C22: vmovaps [rsp+0A8h+var_88], xmm0 cmp dword ptr [rsp+0A8h+var_50], 20h ; ' ' jl loc_29D28 mov rax, [rsp+0A8h+var_A8] imul rax, [rsp+0A8h+var_68] lea rax, [rax+rax*8] mov rcx, [rsp+0A8h+var_A0] lea rax, [rcx+rax*8] mov [rsp+0A8h+var_38], rax mov rax, [rsp+0A8h+var_98] mov rdx, [rsp+0A8h+var_70] xor r10d, r10d loc_29C5C: lea rcx, [r10+r10*8] mov rsi, [rsp+0A8h+var_38] lea rcx, [rsi+rcx*8] mov rsi, r10 shl rsi, 5 lea rsi, [rsi+r10*2] mov rdi, [rsp+0A8h+var_90] movzx esi, word ptr [rdi+rsi] vmovss xmm1, dword ptr [r15+rsi*4] mov r11, rax mov rbp, rdx xor esi, esi loc_29C8B: mov r13, r11 xor ebx, ebx loc_29C90: xor edi, edi xor r14d, r14d loc_29C95: movsx r9d, byte ptr [r13+rdi+0] mov r8d, r9d shl r8b, 4 movsx r8d, r8b and r9d, 0FFFFFFF0h movsx r12d, byte ptr [rbp+rdi-10h] imul r12d, r8d movsx r8d, byte ptr [rbp+rdi+0] imul r8d, r9d add r8d, r12d sar r8d, 4 add r14d, r8d inc rdi cmp rdi, 8 jnz short loc_29C95 vcvtsi2ss xmm2, xmm3, r14d movzx edi, word ptr [rcx+rbx*2] vmulss xmm2, xmm2, dword ptr [r15+rdi*4] vfmadd213ss xmm2, xmm1, dword ptr [rsp+rbx*4+0A8h+var_88] vmovss dword ptr [rsp+rbx*4+0A8h+var_88], xmm2 inc rbx add r13, 8 cmp rbx, 4 jnz short loc_29C90 lea rdi, [rsi+1] add rbp, 8 add r11, 20h ; ' ' test rsi, rsi mov rsi, rdi jz loc_29C8B inc r10 add rdx, 22h ; '"' add rax, 48h ; 'H' cmp r10, [rsp+0A8h+var_40] jnz loc_29C5C loc_29D28: mov rcx, [rsp+0A8h+var_A8] mov rax, rcx shl rax, 4 vmovaps xmm1, [rsp+0A8h+var_88] add rax, [rsp+0A8h+var_48] vmovups xmmword ptr [rax], xmm1 inc rcx mov rax, [rsp+0A8h+var_60] add [rsp+0A8h+var_98], rax mov [rsp+0A8h+var_A8], rcx cmp rcx, [rsp+0A8h+var_58] jnz loc_29C22 loc_29D5E: add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_29D6D: lea rdi, aNQk0; "n % qk == 0" lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidGgmlGemvQ4_0; "void ggml_gemv_q4_0_4x8_q8_0(int, float"... mov edx, 280h call ___assert_fail loc_29D8C: lea rdi, aNcNcolsInterle; "nc % ncols_interleaved == 0" lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidGgmlGemvQ4_0; "void ggml_gemv_q4_0_4x8_q8_0(int, float"... mov edx, 281h call ___assert_fail
long long ggml::cpu::aarch64::gemv<block_q4_0,8l,4l>( long long a1, long long a2, __m128 _XMM0, double a4, double a5, __m128 _XMM3, long long a7, long long a8, long long a9, long long a10, int a11) { long long result; // rax long long v14; // rax long long v15; // rdx long long v16; // r10 long long v19; // r11 long long v20; // rbp long long v21; // rsi long long v22; // r13 long long v24; // rdi int v25; // r14d long long v32; // [rsp+0h] [rbp-A8h] long long v33; // [rsp+10h] [rbp-98h] long long v35; // [rsp+38h] [rbp-70h] long long v36; // [rsp+40h] [rbp-68h] long long v37; // [rsp+48h] [rbp-60h] long long v38; // [rsp+50h] [rbp-58h] long long v39; // [rsp+58h] [rbp-50h] long long v40; // [rsp+60h] [rbp-48h] long long v41; // [rsp+68h] [rbp-40h] long long v42; // [rsp+70h] [rbp-38h] v40 = a2; result = (unsigned int)(a1 + 31); if ( (int)a1 >= 0 ) result = (unsigned int)a1; v39 = a1; if ( (a1 & 0x1F) != 0 ) __assert_fail( "n % qk == 0", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp", 640LL, "void ggml_gemv_q4_0_4x8_q8_0(int, float *__restrict, size_t, const void *__restrict, const void *__restrict, int, int)"); if ( (a11 & 3) != 0 ) __assert_fail( "nc % ncols_interleaved == 0", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp"); if ( a11 >> 2 > 0 ) { v38 = (unsigned int)(a11 >> 2); v41 = (unsigned int)((int)result >> 5); v35 = a9 + 18; v33 = a8 + 8; v36 = (int)result >> 5; v37 = 72 * v36; v32 = 0LL; __asm { vxorps xmm0, xmm0, xmm0 } _R15 = &ggml_table_f32_f16; do { __asm { vmovaps [rsp+0A8h+var_88], xmm0 } if ( (int)v39 >= 32 ) { v42 = a8 + 72 * v36 * v32; v14 = v33; v15 = v35; v16 = 0LL; do { _RSI = *(unsigned __int16 *)(a9 + 34 * v16); __asm { vmovss xmm1, dword ptr [r15+rsi*4] } v19 = v14; v20 = v15; v21 = 0LL; do { v22 = v19; for ( _RBX = 0LL; _RBX != 4; ++_RBX ) { v24 = 0LL; v25 = 0; do { v25 += (int)((char)(16 * *(_BYTE *)(v22 + v24)) * *(char *)(v20 + v24 - 16) + (*(char *)(v22 + v24) & 0xFFFFFFF0) * *(char *)(v20 + v24)) >> 4; ++v24; } while ( v24 != 8 ); __asm { vcvtsi2ss xmm2, xmm3, r14d vmulss xmm2, xmm2, dword ptr [r15+rdi*4] vfmadd213ss xmm2, xmm1, dword ptr [rsp+rbx*4+0A8h+var_88] vmovss dword ptr [rsp+rbx*4+0A8h+var_88], xmm2 } v22 += 8LL; } v20 += 8LL; v19 += 32LL; } while ( v21++ == 0 ); ++v16; v15 += 34LL; v14 += 72LL; } while ( v16 != v41 ); } __asm { vmovaps xmm1, [rsp+0A8h+var_88] } _RAX = v40 + 16 * v32; __asm { vmovups xmmword ptr [rax], xmm1 } result = v37; v33 += v37; ++v32; } while ( v32 != v38 ); } return result; }
gemv<block_q4_0,8l,4l>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV qword ptr [RSP + 0x18],R8 MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [RSP + 0x60],RSI LEA EAX,[RDI + 0x1f] TEST EDI,EDI CMOVNS EAX,EDI MOV qword ptr [RSP + 0x58],RDI TEST DIL,0x1f JNZ 0x00129d6d MOV ECX,dword ptr [RSP + 0xb0] TEST CL,0x3 JNZ 0x00129d8c SAR ECX,0x2 TEST ECX,ECX JLE 0x00129d5e SAR EAX,0x5 MOVSXD RDX,EAX MOV EAX,ECX MOV qword ptr [RSP + 0x50],RAX MOV EAX,EDX MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x18] ADD RAX,0x12 MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x8] ADD RAX,0x8 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x40],RDX LEA RAX,[RDX*0x8] LEA RAX,[RAX + RAX*0x8] MOV qword ptr [RSP + 0x48],RAX MOV qword ptr [RSP],0x0 VXORPS XMM0,XMM0,XMM0 MOV R15,qword ptr [0x00148f68] LAB_00129c22: VMOVAPS xmmword ptr [RSP + 0x20],XMM0 CMP dword ptr [RSP + 0x58],0x20 JL 0x00129d28 MOV RAX,qword ptr [RSP] IMUL RAX,qword ptr [RSP + 0x40] LEA RAX,[RAX + RAX*0x8] MOV RCX,qword ptr [RSP + 0x8] LEA RAX,[RCX + RAX*0x8] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x38] XOR R10D,R10D LAB_00129c5c: LEA RCX,[R10 + R10*0x8] MOV RSI,qword ptr [RSP + 0x70] LEA RCX,[RSI + RCX*0x8] MOV RSI,R10 SHL RSI,0x5 LEA RSI,[RSI + R10*0x2] MOV RDI,qword ptr [RSP + 0x18] MOVZX ESI,word ptr [RDI + RSI*0x1] VMOVSS XMM1,dword ptr [R15 + RSI*0x4] MOV R11,RAX MOV RBP,RDX XOR ESI,ESI LAB_00129c8b: MOV R13,R11 XOR EBX,EBX LAB_00129c90: XOR EDI,EDI XOR R14D,R14D LAB_00129c95: MOVSX R9D,byte ptr [R13 + RDI*0x1] MOV R8D,R9D SHL R8B,0x4 MOVSX R8D,R8B AND R9D,0xfffffff0 MOVSX R12D,byte ptr [RBP + RDI*0x1 + -0x10] IMUL R12D,R8D MOVSX R8D,byte ptr [RBP + RDI*0x1] IMUL R8D,R9D ADD R8D,R12D SAR R8D,0x4 ADD R14D,R8D INC RDI CMP RDI,0x8 JNZ 0x00129c95 VCVTSI2SS XMM2,XMM3,R14D MOVZX EDI,word ptr [RCX + RBX*0x2] VMULSS XMM2,XMM2,dword ptr [R15 + RDI*0x4] VFMADD213SS XMM2,XMM1,dword ptr [RSP + RBX*0x4 + 0x20] VMOVSS dword ptr [RSP + RBX*0x4 + 0x20],XMM2 INC RBX ADD R13,0x8 CMP RBX,0x4 JNZ 0x00129c90 LEA RDI,[RSI + 0x1] ADD RBP,0x8 ADD R11,0x20 TEST RSI,RSI MOV RSI,RDI JZ 0x00129c8b INC R10 ADD RDX,0x22 ADD RAX,0x48 CMP R10,qword ptr [RSP + 0x68] JNZ 0x00129c5c LAB_00129d28: MOV RCX,qword ptr [RSP] MOV RAX,RCX SHL RAX,0x4 VMOVAPS XMM1,xmmword ptr [RSP + 0x20] ADD RAX,qword ptr [RSP + 0x60] VMOVUPS xmmword ptr [RAX],XMM1 INC RCX MOV RAX,qword ptr [RSP + 0x48] ADD qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP],RCX CMP RCX,qword ptr [RSP + 0x50] JNZ 0x00129c22 LAB_00129d5e: ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00129d6d: LEA RDI,[0x139890] LEA RSI,[0x13975e] LEA RCX,[0x13992f] MOV EDX,0x280 CALL 0x001083b0 LAB_00129d8c: LEA RDI,[0x139913] LEA RSI,[0x13975e] LEA RCX,[0x13992f] MOV EDX,0x281 CALL 0x001083b0
/* void ggml::cpu::aarch64::gemv<block_q4_0, 8l, 4l>(int, float*, unsigned long, void const*, void const*, int, int) */ void ggml::cpu::aarch64::gemv<block_q4_0,8l,4l> (int param_1,float *param_2,ulong param_3,void *param_4,void *param_5,int param_6, int param_7) { uint uVar1; int1 auVar2 [16]; int *puVar3; uint uVar4; long lVar5; long lVar6; long lVar7; long lVar8; long lVar9; int4 in_register_0000003c; long lVar10; ulong uVar11; long lVar12; long lVar13; int iVar14; bool bVar15; ulong local_a8; long local_98; int8 local_88; int8 uStack_80; int8 local_50; float *local_48; puVar3 = PTR_ggml_table_f32_f16_00148f68; local_50 = CONCAT44(in_register_0000003c,param_1); iVar14 = param_1 + 0x1f; if (-1 < param_1) { iVar14 = param_1; } local_48 = param_2; if ((param_1 & 0x1fU) == 0) { if ((param_7 & 3U) == 0) { if (0 < param_7 >> 2) { uVar4 = iVar14 >> 5; local_98 = (long)param_4 + 8; local_a8 = 0; do { local_88 = 0; uStack_80 = 0; if (0x1f < param_1) { uVar11 = 0; lVar5 = local_98; lVar6 = (long)param_5 + 0x12; do { uVar1 = *(uint *)(puVar3 + (ulong)*(ushort *)((long)param_5 + uVar11 * 0x22) * 4); lVar8 = lVar6; lVar9 = 0; lVar12 = lVar5; do { lVar7 = 0; lVar13 = lVar12; do { lVar10 = 0; iVar14 = 0; do { iVar14 = iVar14 + ((int)((int)*(char *)(lVar8 + lVar10) * ((int)*(char *)(lVar13 + lVar10) & 0xfffffff0U) + (int)*(char *)(lVar8 + -0x10 + lVar10) * (int)(char)(*(char *)(lVar13 + lVar10) << 4)) >> 4); lVar10 = lVar10 + 1; } while (lVar10 != 8); auVar2 = vfmadd213ss_fma(ZEXT416((uint)((float)iVar14 * *(float *)(puVar3 + (ulong)*(ushort *) ((long)param_4 + lVar7 * 2 + uVar11 * 0x48 + local_a8 * (long)(int) uVar4 * 0x48) * 4))),ZEXT416(uVar1), ZEXT416(*(uint *)((long)&local_88 + lVar7 * 4))); *(int *)((long)&local_88 + lVar7 * 4) = auVar2._0_4_; lVar7 = lVar7 + 1; lVar13 = lVar13 + 8; } while (lVar7 != 4); lVar8 = lVar8 + 8; lVar12 = lVar12 + 0x20; bVar15 = lVar9 == 0; lVar9 = lVar9 + 1; } while (bVar15); uVar11 = uVar11 + 1; lVar6 = lVar6 + 0x22; lVar5 = lVar5 + 0x48; } while (uVar11 != uVar4); } *(int8 *)(param_2 + local_a8 * 4) = local_88; *(int8 *)(param_2 + local_a8 * 4 + 2) = uStack_80; local_a8 = local_a8 + 1; local_98 = local_98 + (long)(int)uVar4 * 0x48; } while (local_a8 != (uint)(param_7 >> 2)); } return; } /* WARNING: Subroutine does not return */ __assert_fail("nc % ncols_interleaved == 0", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp" ,0x281, "void ggml_gemv_q4_0_4x8_q8_0(int, float *__restrict, size_t, const void *__restrict, const void *__restrict, int, int)" ); } /* WARNING: Subroutine does not return */ __assert_fail("n % qk == 0", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp" ,0x280, "void ggml_gemv_q4_0_4x8_q8_0(int, float *__restrict, size_t, const void *__restrict, const void *__restrict, int, int)" ); }
2,108
void ggml::cpu::aarch64::gemv<block_q4_0, 8l, 4l>(int, float*, unsigned long, void const*, void const*, int, int)
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp
void gemv<block_q4_0, 8, 4>(int n, float * s, size_t bs, const void * vx, const void * vy, int nr, int nc) { ggml_gemv_q4_0_4x8_q8_0(n, s, bs, vx, vy, nr, nc); }
O3
cpp
void ggml::cpu::aarch64::gemv<block_q4_0, 8l, 4l>(int, float*, unsigned long, void const*, void const*, int, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, 0x20(%rsp) leal 0x1f(%rdi), %eax testl %edi, %edi cmovnsl %edi, %eax movq %rdi, 0x18(%rsp) testb $0x1f, %dil jne 0x2a715 movl 0x60(%rsp), %edx testb $0x3, %dl jne 0x2a734 sarl $0x2, %edx testl %edx, %edx jle 0x2a703 sarl $0x5, %eax cltq movl %edx, %edx movq %rdx, 0x10(%rsp) movl %eax, %edx leaq 0x8(%rcx), %r9 shlq $0x3, %rax leaq (%rax,%rax,8), %rdi xorl %r11d, %r11d vxorps %xmm0, %xmm0, %xmm0 movq 0x1e976(%rip), %rbx # 0x48f68 vpbroadcastb 0xf146(%rip), %xmm1 # 0x39741 vmovaps %xmm0, (%rsp) cmpl $0x20, 0x18(%rsp) jl 0x2a6da movq %rcx, %r14 movq %r9, %r15 xorl %r12d, %r12d movq %r12, %rax shlq $0x5, %rax leaq (%rax,%r12,2), %r13 movzwl (%r8,%r13), %eax vmovss (%rbx,%rax,4), %xmm2 movb $0x1, %bpl addq %r8, %r13 xorl %esi, %esi movq %rsi, %rax shlq $0x5, %rax vpmovsxbd 0x12(%r13,%rsi,8), %ymm3 vpmovsxbd 0x2(%r13,%rsi,8), %ymm4 addq %r15, %rax xorl %esi, %esi vmovq (%rax,%rsi,8), %xmm5 vpand %xmm1, %xmm5, %xmm6 vpmovsxbd %xmm6, %ymm6 vpmulld %ymm6, %ymm3, %ymm6 vpsllw $0x4, %xmm5, %xmm5 vpand %xmm1, %xmm5, %xmm5 vpmovsxbd %xmm5, %ymm5 vpmulld %ymm4, %ymm5, %ymm5 vpaddd %ymm5, %ymm6, %ymm5 vpsrad $0x4, %ymm5, %ymm5 vextracti128 $0x1, %ymm5, %xmm6 vphaddd %xmm5, %xmm6, %xmm5 vphaddd %xmm5, %xmm5, %xmm5 vphaddd %xmm5, %xmm5, %xmm5 vcvtdq2ps %xmm5, %xmm5 movzwl (%r14,%rsi,2), %r10d vmulss (%rbx,%r10,4), %xmm5, %xmm5 vfmadd213ss (%rsp,%rsi,4), %xmm2, %xmm5 # xmm5 = (xmm2 * xmm5) + mem vmovss %xmm5, (%rsp,%rsi,4) incq %rsi cmpq $0x4, %rsi jne 0x2a64b movl $0x1, %esi testb $0x1, %bpl movl $0x0, %ebp jne 0x2a631 incq %r12 addq $0x48, %r15 addq $0x48, %r14 cmpq %rdx, %r12 jne 0x2a614 movq %r11, %rax shlq $0x4, %rax addq 0x20(%rsp), %rax vmovaps (%rsp), %xmm2 vmovups %xmm2, (%rax) incq %r11 addq %rdi, %r9 addq %rdi, %rcx cmpq 0x10(%rsp), %r11 jne 0x2a5fb addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp vzeroupper retq leaq 0xf326(%rip), %rdi # 0x39a42 leaq 0xf1ed(%rip), %rsi # 0x39910 leaq 0xf3b7(%rip), %rcx # 0x39ae1 movl $0x280, %edx # imm = 0x280 callq 0x83b0 leaq 0xf38a(%rip), %rdi # 0x39ac5 leaq 0xf1ce(%rip), %rsi # 0x39910 leaq 0xf398(%rip), %rcx # 0x39ae1 movl $0x281, %edx # imm = 0x281 callq 0x83b0
_ZN4ggml3cpu7aarch644gemvI10block_q4_0Ll8ELl4EEEviPfmPKvS6_ii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov [rsp+58h+var_38], rsi lea eax, [rdi+1Fh] test edi, edi cmovns eax, edi mov [rsp+58h+var_40], rdi test dil, 1Fh jnz loc_2A715 mov edx, [rsp+58h+arg_0] test dl, 3 jnz loc_2A734 sar edx, 2 test edx, edx jle loc_2A703 sar eax, 5 cdqe mov edx, edx mov [rsp+58h+var_48], rdx mov edx, eax lea r9, [rcx+8] shl rax, 3 lea rdi, [rax+rax*8] xor r11d, r11d vxorps xmm0, xmm0, xmm0 mov rbx, cs:ggml_table_f32_f16_ptr vpbroadcastb xmm1, cs:byte_39741 loc_2A5FB: vmovaps [rsp+58h+var_58], xmm0 cmp dword ptr [rsp+58h+var_40], 20h ; ' ' jl loc_2A6DA mov r14, rcx mov r15, r9 xor r12d, r12d loc_2A614: mov rax, r12 shl rax, 5 lea r13, [rax+r12*2] movzx eax, word ptr [r8+r13] vmovss xmm2, dword ptr [rbx+rax*4] mov bpl, 1 add r13, r8 xor esi, esi loc_2A631: mov rax, rsi shl rax, 5 vpmovsxbd ymm3, qword ptr [r13+rsi*8+12h] vpmovsxbd ymm4, qword ptr [r13+rsi*8+2] add rax, r15 xor esi, esi loc_2A64B: vmovq xmm5, qword ptr [rax+rsi*8] vpand xmm6, xmm5, xmm1 vpmovsxbd ymm6, xmm6 vpmulld ymm6, ymm3, ymm6 vpsllw xmm5, xmm5, 4 vpand xmm5, xmm5, xmm1 vpmovsxbd ymm5, xmm5 vpmulld ymm5, ymm5, ymm4 vpaddd ymm5, ymm6, ymm5 vpsrad ymm5, ymm5, 4 vextracti128 xmm6, ymm5, 1 vphaddd xmm5, xmm6, xmm5 vphaddd xmm5, xmm5, xmm5 vphaddd xmm5, xmm5, xmm5 vcvtdq2ps xmm5, xmm5 movzx r10d, word ptr [r14+rsi*2] vmulss xmm5, xmm5, dword ptr [rbx+r10*4] vfmadd213ss xmm5, xmm2, dword ptr [rsp+rsi*4+58h+var_58] vmovss dword ptr [rsp+rsi*4+58h+var_58], xmm5 inc rsi cmp rsi, 4 jnz short loc_2A64B mov esi, 1 test bpl, 1 mov ebp, 0 jnz loc_2A631 inc r12 add r15, 48h ; 'H' add r14, 48h ; 'H' cmp r12, rdx jnz loc_2A614 loc_2A6DA: mov rax, r11 shl rax, 4 add rax, [rsp+58h+var_38] vmovaps xmm2, [rsp+58h+var_58] vmovups xmmword ptr [rax], xmm2 inc r11 add r9, rdi add rcx, rdi cmp r11, [rsp+58h+var_48] jnz loc_2A5FB loc_2A703: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp vzeroupper retn loc_2A715: lea rdi, aNQk0; "n % qk == 0" lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidGgmlGemvQ4_0; "void ggml_gemv_q4_0_4x8_q8_0(int, float"... mov edx, 280h call ___assert_fail loc_2A734: lea rdi, aNcNcolsInterle; "nc % ncols_interleaved == 0" lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidGgmlGemvQ4_0; "void ggml_gemv_q4_0_4x8_q8_0(int, float"... mov edx, 281h call ___assert_fail
long long ggml::cpu::aarch64::gemv<block_q4_0,8l,4l>( long long a1, long long a2, __m128 _XMM0, long long a4, long long a5, long long a6, long long a7, int a8) { long long result; // rax long long v9; // rax long long v10; // rdx long long v11; // r9 long long v12; // rdi long long v13; // r11 long long v17; // r14 long long v18; // r15 long long v19; // r12 char v22; // bp bool v46; // zf long long v49; // [rsp+10h] [rbp-48h] long long v50; // [rsp+18h] [rbp-40h] long long v51; // [rsp+20h] [rbp-38h] v51 = a2; result = (unsigned int)(a1 + 31); if ( (int)a1 >= 0 ) result = (unsigned int)a1; v50 = a1; if ( (a1 & 0x1F) != 0 ) __assert_fail( "n % qk == 0", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp", 640LL, "void ggml_gemv_q4_0_4x8_q8_0(int, float *__restrict, size_t, const void *__restrict, const void *__restrict, int, int)"); if ( (a8 & 3) != 0 ) __assert_fail( "nc % ncols_interleaved == 0", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp"); if ( a8 >> 2 > 0 ) { v9 = (int)result >> 5; v49 = (unsigned int)(a8 >> 2); v10 = (unsigned int)v9; v11 = a5 + 8; v12 = 72 * v9; v13 = 0LL; __asm { vxorps xmm0, xmm0, xmm0 } _RBX = &ggml_table_f32_f16; __asm { vpbroadcastb xmm1, cs:byte_39741 } do { __asm { vmovaps [rsp+58h+var_58], xmm0 } if ( (int)v50 >= 32 ) { v17 = a5; v18 = v11; v19 = 0LL; do { _RAX = *(unsigned __int16 *)(a6 + 34 * v19); __asm { vmovss xmm2, dword ptr [rbx+rax*4] } v22 = 1; _R13 = a6 + 34 * v19; _RSI = 0LL; do { __asm { vpmovsxbd ymm3, qword ptr [r13+rsi*8+12h] vpmovsxbd ymm4, qword ptr [r13+rsi*8+2] } _RAX = v18 + 32 * _RSI; for ( _RSI = 0LL; _RSI != 4; ++_RSI ) { __asm { vmovq xmm5, qword ptr [rax+rsi*8] vpand xmm6, xmm5, xmm1 vpmovsxbd ymm6, xmm6 vpmulld ymm6, ymm3, ymm6 vpsllw xmm5, xmm5, 4 vpand xmm5, xmm5, xmm1 vpmovsxbd ymm5, xmm5 vpmulld ymm5, ymm5, ymm4 vpaddd ymm5, ymm6, ymm5 vpsrad ymm5, ymm5, 4 vextracti128 xmm6, ymm5, 1 vphaddd xmm5, xmm6, xmm5 vphaddd xmm5, xmm5, xmm5 vphaddd xmm5, xmm5, xmm5 vcvtdq2ps xmm5, xmm5 vmulss xmm5, xmm5, dword ptr [rbx+r10*4] vfmadd213ss xmm5, xmm2, dword ptr [rsp+rsi*4+58h+var_58] vmovss dword ptr [rsp+rsi*4+58h+var_58], xmm5 } } _RSI = 1LL; v46 = (v22 & 1) == 0; v22 = 0; } while ( !v46 ); ++v19; v18 += 72LL; v17 += 72LL; } while ( v19 != v10 ); } result = v51 + 16 * v13; __asm { vmovaps xmm2, [rsp+58h+var_58] vmovups xmmword ptr [rax], xmm2 } ++v13; v11 += v12; a5 += v12; } while ( v13 != v49 ); } __asm { vzeroupper } return result; }
gemv<block_q4_0,8l,4l>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RSI LEA EAX,[RDI + 0x1f] TEST EDI,EDI CMOVNS EAX,EDI MOV qword ptr [RSP + 0x18],RDI TEST DIL,0x1f JNZ 0x0012a715 MOV EDX,dword ptr [RSP + 0x60] TEST DL,0x3 JNZ 0x0012a734 SAR EDX,0x2 TEST EDX,EDX JLE 0x0012a703 SAR EAX,0x5 CDQE MOV EDX,EDX MOV qword ptr [RSP + 0x10],RDX MOV EDX,EAX LEA R9,[RCX + 0x8] SHL RAX,0x3 LEA RDI,[RAX + RAX*0x8] XOR R11D,R11D VXORPS XMM0,XMM0,XMM0 MOV RBX,qword ptr [0x00148f68] VPBROADCASTB XMM1,byte ptr [0x00139741] LAB_0012a5fb: VMOVAPS xmmword ptr [RSP],XMM0 CMP dword ptr [RSP + 0x18],0x20 JL 0x0012a6da MOV R14,RCX MOV R15,R9 XOR R12D,R12D LAB_0012a614: MOV RAX,R12 SHL RAX,0x5 LEA R13,[RAX + R12*0x2] MOVZX EAX,word ptr [R8 + R13*0x1] VMOVSS XMM2,dword ptr [RBX + RAX*0x4] MOV BPL,0x1 ADD R13,R8 XOR ESI,ESI LAB_0012a631: MOV RAX,RSI SHL RAX,0x5 VPMOVSXBD YMM3,qword ptr [R13 + RSI*0x8 + 0x12] VPMOVSXBD YMM4,qword ptr [R13 + RSI*0x8 + 0x2] ADD RAX,R15 XOR ESI,ESI LAB_0012a64b: VMOVQ XMM5,qword ptr [RAX + RSI*0x8] VPAND XMM6,XMM5,XMM1 VPMOVSXBD YMM6,XMM6 VPMULLD YMM6,YMM3,YMM6 VPSLLW XMM5,XMM5,0x4 VPAND XMM5,XMM5,XMM1 VPMOVSXBD YMM5,XMM5 VPMULLD YMM5,YMM5,YMM4 VPADDD YMM5,YMM6,YMM5 VPSRAD YMM5,YMM5,0x4 VEXTRACTI128 XMM6,YMM5,0x1 VPHADDD XMM5,XMM6,XMM5 VPHADDD XMM5,XMM5,XMM5 VPHADDD XMM5,XMM5,XMM5 VCVTDQ2PS XMM5,XMM5 MOVZX R10D,word ptr [R14 + RSI*0x2] VMULSS XMM5,XMM5,dword ptr [RBX + R10*0x4] VFMADD213SS XMM5,XMM2,dword ptr [RSP + RSI*0x4] VMOVSS dword ptr [RSP + RSI*0x4],XMM5 INC RSI CMP RSI,0x4 JNZ 0x0012a64b MOV ESI,0x1 TEST BPL,0x1 MOV EBP,0x0 JNZ 0x0012a631 INC R12 ADD R15,0x48 ADD R14,0x48 CMP R12,RDX JNZ 0x0012a614 LAB_0012a6da: MOV RAX,R11 SHL RAX,0x4 ADD RAX,qword ptr [RSP + 0x20] VMOVAPS XMM2,xmmword ptr [RSP] VMOVUPS xmmword ptr [RAX],XMM2 INC R11 ADD R9,RDI ADD RCX,RDI CMP R11,qword ptr [RSP + 0x10] JNZ 0x0012a5fb LAB_0012a703: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP VZEROUPPER RET LAB_0012a715: LEA RDI,[0x139a42] LEA RSI,[0x139910] LEA RCX,[0x139ae1] MOV EDX,0x280 CALL 0x001083b0 LAB_0012a734: LEA RDI,[0x139ac5] LEA RSI,[0x139910] LEA RCX,[0x139ae1] MOV EDX,0x281 CALL 0x001083b0
/* void ggml::cpu::aarch64::gemv<block_q4_0, 8l, 4l>(int, float*, unsigned long, void const*, void const*, int, int) */ void ggml::cpu::aarch64::gemv<block_q4_0,8l,4l> (int param_1,float *param_2,ulong param_3,void *param_4,void *param_5,int param_6, int param_7) { uint uVar1; int1 auVar2 [16]; int1 auVar3 [32]; int1 auVar4 [32]; int1 auVar5 [32]; long lVar6; long lVar7; int *puVar8; bool bVar9; int iVar10; bool bVar11; long lVar12; long lVar13; int4 in_register_0000003c; long lVar14; ulong uVar15; ulong uVar16; void *pvVar17; long lVar18; int1 auVar19 [16]; int1 auVar20 [16]; int1 auVar21 [16]; int1 auVar22 [32]; int8 local_58; int8 uStack_50; int8 local_40; float *local_38; puVar8 = PTR_ggml_table_f32_f16_00148f68; local_40 = CONCAT44(in_register_0000003c,param_1); iVar10 = param_1 + 0x1f; if (-1 < param_1) { iVar10 = param_1; } local_38 = param_2; if ((param_1 & 0x1fU) != 0) { /* WARNING: Subroutine does not return */ __assert_fail("n % qk == 0", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp" ,0x280, "void ggml_gemv_q4_0_4x8_q8_0(int, float *__restrict, size_t, const void *__restrict, const void *__restrict, int, int)" ); } if ((param_7 & 3U) != 0) { /* WARNING: Subroutine does not return */ __assert_fail("nc % ncols_interleaved == 0", "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp" ,0x281, "void ggml_gemv_q4_0_4x8_q8_0(int, float *__restrict, size_t, const void *__restrict, const void *__restrict, int, int)" ); } if (0 < param_7 >> 2) { lVar14 = (long)param_4 + 8; lVar6 = (long)(iVar10 >> 5) * 0x48; uVar15 = 0; auVar19[1] = DAT_00139741; auVar19[0] = DAT_00139741; auVar19[2] = DAT_00139741; auVar19[3] = DAT_00139741; auVar19[4] = DAT_00139741; auVar19[5] = DAT_00139741; auVar19[6] = DAT_00139741; auVar19[7] = DAT_00139741; auVar19[8] = DAT_00139741; auVar19[9] = DAT_00139741; auVar19[10] = DAT_00139741; auVar19[0xb] = DAT_00139741; auVar19[0xc] = DAT_00139741; auVar19[0xd] = DAT_00139741; auVar19[0xe] = DAT_00139741; auVar19[0xf] = DAT_00139741; do { local_58 = 0; uStack_50 = 0; if (0x1f < param_1) { uVar16 = 0; pvVar17 = param_4; lVar18 = lVar14; do { lVar7 = uVar16 * 0x22; uVar1 = *(uint *)(puVar8 + (ulong)*(ushort *)((long)param_5 + lVar7) * 4); lVar13 = 0; bVar9 = true; do { bVar11 = bVar9; auVar21._8_8_ = 0; auVar21._0_8_ = *(ulong *)((long)param_5 + lVar13 * 8 + lVar7 + 0x12); auVar3 = vpmovsxbd_avx2(auVar21); auVar2._8_8_ = 0; auVar2._0_8_ = *(ulong *)((long)param_5 + lVar13 * 8 + lVar7 + 2); auVar4 = vpmovsxbd_avx2(auVar2); lVar12 = 0; do { auVar20._8_8_ = 0; auVar20._0_8_ = *(ulong *)(lVar13 * 0x20 + lVar18 + lVar12 * 8); auVar21 = vpand_avx(auVar20,auVar19); auVar22 = vpmovsxbd_avx2(auVar21); auVar5 = vpmulld_avx2(auVar3,auVar22); auVar21 = vpsllw_avx(auVar20,4); auVar21 = vpand_avx(auVar21,auVar19); auVar22 = vpmovsxbd_avx2(auVar21); auVar22 = vpmulld_avx2(auVar22,auVar4); auVar22 = vpaddd_avx2(auVar5,auVar22); auVar22 = vpsrad_avx2(auVar22,4); auVar21 = vphaddd_avx(auVar22._16_16_,auVar22._0_16_); auVar21 = vphaddd_avx(auVar21,auVar21); auVar21 = vphaddd_avx(auVar21,auVar21); auVar21 = vcvtdq2ps_avx(auVar21); auVar21 = vfmadd213ss_fma(ZEXT416((uint)(auVar21._0_4_ * *(float *)(puVar8 + (ulong)*(ushort *) ((long)pvVar17 + lVar12 * 2) * 4))) ,ZEXT416(uVar1), ZEXT416(*(uint *)((long)&local_58 + lVar12 * 4))); *(int *)((long)&local_58 + lVar12 * 4) = auVar21._0_4_; lVar12 = lVar12 + 1; } while (lVar12 != 4); lVar13 = 1; bVar9 = false; } while (bVar11); uVar16 = uVar16 + 1; lVar18 = lVar18 + 0x48; pvVar17 = (void *)((long)pvVar17 + 0x48); } while (uVar16 != (uint)(iVar10 >> 5)); } *(int8 *)(param_2 + uVar15 * 4) = local_58; *(int8 *)(param_2 + uVar15 * 4 + 2) = uStack_50; uVar15 = uVar15 + 1; lVar14 = lVar14 + lVar6; param_4 = (void *)((long)param_4 + lVar6); } while (uVar15 != (uint)(param_7 >> 2)); } return; }
2,109
ImageDrawLineV
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rtextures.c
void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color) { // Round start and end positions to nearest integer coordinates int x1 = (int)(start.x + 0.5f); int y1 = (int)(start.y + 0.5f); int x2 = (int)(end.x + 0.5f); int y2 = (int)(end.y + 0.5f); // Draw a vertical line using ImageDrawLine function ImageDrawLine(dst, x1, y1, x2, y2, color); }
O3
c
ImageDrawLineV: movl %esi, %r9d movss 0x39dfc(%rip), %xmm2 # 0xd3b58 movaps %xmm0, %xmm3 addss %xmm2, %xmm3 cvttss2si %xmm3, %esi shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1] addss %xmm2, %xmm0 cvttss2si %xmm0, %edx movaps %xmm1, %xmm0 addss %xmm2, %xmm0 cvttss2si %xmm0, %ecx shufps $0x55, %xmm1, %xmm1 # xmm1 = xmm1[1,1,1,1] addss %xmm2, %xmm1 cvttss2si %xmm1, %r8d jmp 0x99c40
ImageDrawLineV: mov r9d, esi movss xmm2, cs:dword_D3B58 movaps xmm3, xmm0 addss xmm3, xmm2 cvttss2si esi, xmm3 shufps xmm0, xmm0, 55h ; 'U' addss xmm0, xmm2 cvttss2si edx, xmm0 movaps xmm0, xmm1 addss xmm0, xmm2 cvttss2si ecx, xmm0 shufps xmm1, xmm1, 55h ; 'U' addss xmm1, xmm2 cvttss2si r8d, xmm1 jmp ImageDrawLine
long long ImageDrawLineV(long long *a1, unsigned int a2, __m128 a3, __m128 a4) { return ImageDrawLine( a1, (unsigned int)(int)(float)(a3.m128_f32[0] + 0.5), (int)(float)(_mm_shuffle_ps(a3, a3, 85).m128_f32[0] + 0.5), (int)(float)(a4.m128_f32[0] + 0.5), (int)(float)(_mm_shuffle_ps(a4, a4, 85).m128_f32[0] + 0.5), a2); }
ImageDrawLineV: MOV R9D,ESI MOVSS XMM2,dword ptr [0x001d3b58] MOVAPS XMM3,XMM0 ADDSS XMM3,XMM2 CVTTSS2SI ESI,XMM3 SHUFPS XMM0,XMM0,0x55 ADDSS XMM0,XMM2 CVTTSS2SI EDX,XMM0 MOVAPS XMM0,XMM1 ADDSS XMM0,XMM2 CVTTSS2SI ECX,XMM0 SHUFPS XMM1,XMM1,0x55 ADDSS XMM1,XMM2 CVTTSS2SI R8D,XMM1 JMP 0x00199c40
void ImageDrawLineV(int8 param_1,int8 param_2,int8 param_3,int4 param_4) { ImageDrawLine(param_3,(int)((float)param_1 + DAT_001d3b58), (int)((float)((ulong)param_1 >> 0x20) + DAT_001d3b58), (int)((float)param_2 + DAT_001d3b58), (int)((float)((ulong)param_2 >> 0x20) + DAT_001d3b58),param_4); return; }
2,110
my_charlen_utf8mb3
eloqsql/strings/ctype-utf8.c
static int my_charlen_utf8mb3(CHARSET_INFO *cs __attribute__((unused)), const uchar *s, const uchar *e) { uchar c; if (s >= e) return MY_CS_TOOSMALL; c= s[0]; if (c < 0xf0) return my_valid_mbcharlen_utf8mb3(s, e); return MY_CS_ILSEQ; }
O0
c
my_charlen_utf8mb3: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jb 0x75a47 movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x75a74 movq -0x18(%rbp), %rax movb (%rax), %al movb %al, -0x21(%rbp) movzbl -0x21(%rbp), %eax cmpl $0xf0, %eax jge 0x75a6d movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x768e0 movl %eax, -0x4(%rbp) jmp 0x75a74 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_charlen_utf8mb3: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jb short loc_75A47 mov [rbp+var_4], 0FFFFFF9Bh jmp short loc_75A74 loc_75A47: mov rax, [rbp+var_18] mov al, [rax] mov [rbp+var_21], al movzx eax, [rbp+var_21] cmp eax, 0F0h jge short loc_75A6D mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] call my_valid_mbcharlen_utf8mb3 mov [rbp+var_4], eax jmp short loc_75A74 loc_75A6D: mov [rbp+var_4], 0 loc_75A74: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_charlen_utf8mb3(long long a1, unsigned __int8 *a2, unsigned long long a3) { if ( (unsigned long long)a2 < a3 ) { if ( *a2 >= 0xF0u ) return 0; else return (unsigned int)my_valid_mbcharlen_utf8mb3(a2, a3); } else { return (unsigned int)-101; } }
my_charlen_utf8mb3: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JC 0x00175a47 MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x00175a74 LAB_00175a47: MOV RAX,qword ptr [RBP + -0x18] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x21],AL MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf0 JGE 0x00175a6d MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x001768e0 MOV dword ptr [RBP + -0x4],EAX JMP 0x00175a74 LAB_00175a6d: MOV dword ptr [RBP + -0x4],0x0 LAB_00175a74: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_charlen_utf8mb3(int8 param_1,byte *param_2,byte *param_3) { int4 local_c; if (param_2 < param_3) { if (*param_2 < 0xf0) { local_c = my_valid_mbcharlen_utf8mb3(param_2,param_3); } else { local_c = 0; } } else { local_c = 0xffffff9b; } return local_c; }
2,111
my_mutex_end
eloqsql/mysys/thr_mutex.c
void my_mutex_end() { #ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP pthread_mutexattr_destroy(&my_fast_mutexattr); #endif #ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP pthread_mutexattr_destroy(&my_errorcheck_mutexattr); #endif }
O0
c
my_mutex_end: pushq %rbp movq %rsp, %rbp leaq 0x367a65(%rip), %rdi # 0x3a1880 callq 0x254f0 leaq 0x367a5d(%rip), %rdi # 0x3a1884 callq 0x254f0 popq %rbp retq nop
my_mutex_end: push rbp mov rbp, rsp lea rdi, my_fast_mutexattr call _pthread_mutexattr_destroy lea rdi, my_errorcheck_mutexattr call _pthread_mutexattr_destroy pop rbp retn
long long my_mutex_end() { pthread_mutexattr_destroy(&my_fast_mutexattr); return pthread_mutexattr_destroy(&my_errorcheck_mutexattr); }
my_mutex_end: PUSH RBP MOV RBP,RSP LEA RDI,[0x4a1880] CALL 0x001254f0 LEA RDI,[0x4a1884] CALL 0x001254f0 POP RBP RET
void my_mutex_end(void) { pthread_mutexattr_destroy((pthread_mutexattr_t *)&my_fast_mutexattr); pthread_mutexattr_destroy((pthread_mutexattr_t *)&my_errorcheck_mutexattr); return; }
2,112
minja::Parser::parseDictionary()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseDictionary() { if (consumeToken("{").empty()) return nullptr; std::vector<std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>>> elements; if (!consumeToken("}").empty()) { return std::make_shared<DictExpr>(get_location(), std::move(elements)); } auto parseKeyValuePair = [&]() { auto key = parseExpression(); if (!key) throw std::runtime_error("Expected key in dictionary"); if (consumeToken(":").empty()) throw std::runtime_error("Expected colon betweek key & value in dictionary"); auto value = parseExpression(); if (!value) throw std::runtime_error("Expected value in dictionary"); elements.emplace_back(std::pair(std::move(key), std::move(value))); }; parseKeyValuePair(); while (it != end) { if (!consumeToken(",").empty()) { parseKeyValuePair(); } else if (!consumeToken("}").empty()) { return std::make_shared<DictExpr>(get_location(), std::move(elements)); } else { throw std::runtime_error("Expected comma or closing brace in dictionary"); } } throw std::runtime_error("Expected closing brace"); }
O1
cpp
minja::Parser::parseDictionary(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rsi, %r14 movq %rdi, %r12 leaq 0x10(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x66008(%rip), %rsi # 0xf2e1a leaq 0x66002(%rip), %rdx # 0xf2e1b movq %rsp, %rdi callq 0x233d6 leaq 0x20(%rsp), %rdi movq %rsp, %rdx movq %r14, %rsi movl $0x1, %ecx callq 0x85926 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi movq -0x8(%rax), %rbx cmpq %rax, %rdi je 0x8ce55 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b8e0 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8ce70 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8e0 xorps %xmm0, %xmm0 testq %rbx, %rbx je 0x8cf2a movaps %xmm0, 0x40(%rsp) movq $0x0, 0x50(%rsp) movq %rsp, %rdi leaq 0x10(%rsp), %rax movq %rax, (%rdi) leaq 0x5c5ce(%rip), %rsi # 0xe946a leaq 0x5c5c8(%rip), %rdx # 0xe946b callq 0x233d6 leaq 0x20(%rsp), %rdi movq %rsp, %rdx movq %r14, %rsi movl $0x1, %ecx callq 0x85926 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rbx leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x8cede movq 0x30(%rsp), %rsi incq %rsi callq 0x1b8e0 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8cef9 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8e0 testq %rbx, %rbx je 0x8cf34 movq %r12, %r13 movq (%r14), %r12 movq 0x8(%r14), %r15 testq %r15, %r15 je 0x8d088 movq 0xa2070(%rip), %rax # 0x12ef88 cmpb $0x0, (%rax) je 0x8d083 incl 0x8(%r15) jmp 0x8d088 movups %xmm0, (%r12) jmp 0x8d1a6 movq %r12, 0x60(%rsp) leaq 0x68(%rsp), %rdi movq %r14, (%rdi) leaq 0x40(%rsp), %rax movq %rax, 0x8(%rdi) callq 0x901e0 leaq 0x5c50d(%rip), %r12 # 0xe9463 movq %rsp, %r13 leaq 0x20(%rsp), %rbp leaq 0x68(%rsp), %rbx movq 0x20(%r14), %rax cmpq 0x18(%r14), %rax je 0x8d1b8 leaq 0x10(%rsp), %rax movq %rax, (%rsp) movq %r13, %rdi leaq 0x5c4de(%rip), %rsi # 0xe9462 movq %r12, %rdx callq 0x233d6 movq %rbp, %rdi movq %r14, %rsi movq %r13, %rdx movl $0x1, %ecx callq 0x85926 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %r15 leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x8cfc0 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b8e0 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8cfdb movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8e0 testq %r15, %r15 je 0x8cfed movq %rbx, %rdi callq 0x901e0 jmp 0x8cf63 movq %rsp, %rdi leaq 0x10(%rsp), %rax movq %rax, (%rdi) leaq 0x5c46b(%rip), %rsi # 0xe946a leaq 0x5c465(%rip), %rdx # 0xe946b callq 0x233d6 leaq 0x20(%rsp), %rdi movq %rsp, %rdx movq %r14, %rsi movl $0x1, %ecx callq 0x85926 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rbx leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x8d041 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b8e0 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8d05c movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8e0 testq %rbx, %rbx je 0x8d1ea movq (%r14), %r12 movq 0x8(%r14), %r15 testq %r15, %r15 je 0x8d0e3 movq 0xa1f10(%rip), %rax # 0x12ef88 cmpb $0x0, (%rax) je 0x8d0de incl 0x8(%r15) jmp 0x8d0e3 lock incl 0x8(%r15) movq 0x20(%r14), %rbx subq 0x10(%r14), %rbx movl $0x48, %edi callq 0x1b8c0 leaq 0xa0567(%rip), %rdx # 0x12d608 addq $0x10, %rdx movq %rax, %rcx addq $0x10, %rcx leaq 0xa0305(%rip), %rsi # 0x12d3b8 addq $0x10, %rsi movabsq $0x100000001, %rdi # imm = 0x100000001 movq %rdi, 0x8(%rax) movq %rdx, (%rax) movq %rsi, 0x10(%rax) movq %r12, 0x18(%rax) movq %r15, 0x20(%rax) testq %r15, %r15 movq %r13, %r12 jne 0x8d139 jmp 0x8d150 lock incl 0x8(%r15) movq 0x20(%r14), %rbx subq 0x10(%r14), %rbx movl $0x48, %edi callq 0x1b8c0 leaq 0xa050c(%rip), %rdx # 0x12d608 addq $0x10, %rdx movq %rax, %rcx addq $0x10, %rcx leaq 0xa02aa(%rip), %rsi # 0x12d3b8 addq $0x10, %rsi movabsq $0x100000001, %rdi # imm = 0x100000001 movq %rdi, 0x8(%rax) movq %rdx, (%rax) movq %rsi, 0x10(%rax) movq %r12, 0x18(%rax) movq %r15, 0x20(%rax) testq %r15, %r15 movq 0x60(%rsp), %r12 je 0x8d150 movq 0xa1e48(%rip), %rdx # 0x12ef88 cmpb $0x0, (%rdx) je 0x8d14b incl 0x8(%r15) jmp 0x8d150 lock incl 0x8(%r15) leaq 0xa0501(%rip), %rdx # 0x12d658 addq $0x10, %rdx movq %rbx, 0x28(%rax) movq %rdx, 0x10(%rax) movaps 0x40(%rsp), %xmm0 movups %xmm0, 0x30(%rax) movq 0x50(%rsp), %rdx movq %rdx, 0x40(%rax) xorps %xmm0, %xmm0 movaps %xmm0, 0x40(%rsp) movq $0x0, 0x50(%rsp) movq %rcx, (%r12) movq %rax, 0x8(%r12) testq %r15, %r15 je 0x8d19c movq %r15, %rdi callq 0x6e5ca leaq 0x40(%rsp), %rdi callq 0x90418 movq %r12, %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1b450 movq %rax, %r14 leaq 0x66279(%rip), %rsi # 0xf3445 movq %rax, %rdi callq 0x1b330 movq 0xa1e15(%rip), %rsi # 0x12eff0 movq 0xa1d7e(%rip), %rdx # 0x12ef60 movq %r14, %rdi callq 0x1bf10 movl $0x10, %edi callq 0x1b450 movq %rax, %r14 leaq 0x66219(%rip), %rsi # 0xf3417 movq %rax, %rdi callq 0x1b330 jmp 0x8d1d4 jmp 0x8d24b jmp 0x8d210 jmp 0x8d271 jmp 0x8d25c movq %rax, %rbx testq %r15, %r15 je 0x8d25f movq %r15, %rdi callq 0x6e5ca jmp 0x8d25f jmp 0x8d271 jmp 0x8d25c movq %rax, %rbx movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8d269 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8e0 jmp 0x8d269 movq %rax, %rbx jmp 0x8d269 movq %rax, %rbx movq %r14, %rdi callq 0x1b690 jmp 0x8d25f jmp 0x8d25c jmp 0x8d25c movq %rax, %rbx leaq 0x40(%rsp), %rdi callq 0x90418 movq %rbx, %rdi callq 0x1bf90 movq %rax, %rbx movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8d25f movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8e0 jmp 0x8d25f nop
_ZN5minja6Parser15parseDictionaryEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov r14, rsi mov r12, rdi lea rax, [rsp+0A8h+var_98] mov [rax-10h], rax lea rsi, asc_F2E1A; "{" lea rdx, asc_F2E1A+1; "" 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+0A8h+var_88] mov rdx, rsp mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling) lea rax, [rsp+0A8h+var_78] mov rdi, [rax-10h]; void * mov rbx, [rax-8] cmp rdi, rax jz short loc_8CE55 mov rsi, [rsp+0A8h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8CE55: mov rdi, [rsp+0A8h+var_A8]; void * lea rax, [rsp+0A8h+var_98] cmp rdi, rax jz short loc_8CE70 mov rsi, [rsp+0A8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8CE70: xorps xmm0, xmm0 test rbx, rbx jz loc_8CF2A movaps [rsp+0A8h+var_68], xmm0 mov [rsp+0A8h+var_58], 0 mov rdi, rsp lea rax, [rsp+0A8h+var_98] mov [rdi], rax lea rsi, asc_E9464+6; "}" lea rdx, asc_E9464+7; "" 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+0A8h+var_88] mov rdx, rsp mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling) mov rdi, [rsp+0A8h+var_88]; void * mov rbx, [rsp+0A8h+var_80] lea rax, [rsp+0A8h+var_78] cmp rdi, rax jz short loc_8CEDE mov rsi, [rsp+0A8h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8CEDE: mov rdi, [rsp+0A8h+var_A8]; void * lea rax, [rsp+0A8h+var_98] cmp rdi, rax jz short loc_8CEF9 mov rsi, [rsp+0A8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8CEF9: test rbx, rbx jz short loc_8CF34 mov r13, r12 mov r12, [r14] mov r15, [r14+8] test r15, r15 jz loc_8D088 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz loc_8D083 inc dword ptr [r15+8] jmp loc_8D088 loc_8CF2A: movups xmmword ptr [r12], xmm0 jmp loc_8D1A6 loc_8CF34: mov [rsp+0A8h+var_48], r12 lea rdi, [rsp+0A8h+var_40] mov [rdi], r14 lea rax, [rsp+0A8h+var_68] mov [rdi+8], rax call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void) lea r12, asc_E9462+1; "" mov r13, rsp lea rbp, [rsp+0A8h+var_88] lea rbx, [rsp+0A8h+var_40] loc_8CF63: mov rax, [r14+20h] cmp rax, [r14+18h] jz loc_8D1B8 lea rax, [rsp+0A8h+var_98] mov [rsp+0A8h+var_A8], rax mov rdi, r13 lea rsi, asc_E9462; "," mov rdx, r12 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rdi, rbp mov rsi, r14 mov rdx, r13 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling) mov rdi, [rsp+0A8h+var_88]; void * mov r15, [rsp+0A8h+var_80] lea rax, [rsp+0A8h+var_78] cmp rdi, rax jz short loc_8CFC0 mov rsi, [rsp+0A8h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8CFC0: mov rdi, [rsp+0A8h+var_A8]; void * lea rax, [rsp+0A8h+var_98] cmp rdi, rax jz short loc_8CFDB mov rsi, [rsp+0A8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8CFDB: test r15, r15 jz short loc_8CFED mov rdi, rbx call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void) jmp loc_8CF63 loc_8CFED: mov rdi, rsp lea rax, [rsp+0A8h+var_98] mov [rdi], rax lea rsi, asc_E9464+6; "}" lea rdx, asc_E9464+7; "" 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+0A8h+var_88] mov rdx, rsp mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling) mov rdi, [rsp+0A8h+var_88]; void * mov rbx, [rsp+0A8h+var_80] lea rax, [rsp+0A8h+var_78] cmp rdi, rax jz short loc_8D041 mov rsi, [rsp+0A8h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8D041: mov rdi, [rsp+0A8h+var_A8]; void * lea rax, [rsp+0A8h+var_98] cmp rdi, rax jz short loc_8D05C mov rsi, [rsp+0A8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8D05C: test rbx, rbx jz loc_8D1EA mov r12, [r14] mov r15, [r14+8] test r15, r15 jz short loc_8D0E3 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_8D0DE inc dword ptr [r15+8] jmp short loc_8D0E3 loc_8D083: lock inc dword ptr [r15+8] loc_8D088: mov rbx, [r14+20h] sub rbx, [r14+10h] mov edi, 48h ; 'H'; unsigned __int64 call __Znwm; operator new(ulong) lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2> add rdx, 10h mov rcx, rax add rcx, 10h lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression add rsi, 10h mov rdi, 100000001h mov [rax+8], rdi mov [rax], rdx mov [rax+10h], rsi mov [rax+18h], r12 mov [rax+20h], r15 test r15, r15 mov r12, r13 jnz short loc_8D139 jmp short loc_8D150 loc_8D0DE: lock inc dword ptr [r15+8] loc_8D0E3: mov rbx, [r14+20h] sub rbx, [r14+10h] mov edi, 48h ; 'H'; unsigned __int64 call __Znwm; operator new(ulong) lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2> add rdx, 10h mov rcx, rax add rcx, 10h lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression add rsi, 10h mov rdi, 100000001h mov [rax+8], rdi mov [rax], rdx mov [rax+10h], rsi mov [rax+18h], r12 mov [rax+20h], r15 test r15, r15 mov r12, [rsp+0A8h+var_48] jz short loc_8D150 loc_8D139: mov rdx, cs:__libc_single_threaded_ptr cmp byte ptr [rdx], 0 jz short loc_8D14B inc dword ptr [r15+8] jmp short loc_8D150 loc_8D14B: lock inc dword ptr [r15+8] loc_8D150: lea rdx, _ZTVN5minja8DictExprE; `vtable for'minja::DictExpr add rdx, 10h mov [rax+28h], rbx mov [rax+10h], rdx movaps xmm0, [rsp+0A8h+var_68] movups xmmword ptr [rax+30h], xmm0 mov rdx, [rsp+0A8h+var_58] mov [rax+40h], rdx xorps xmm0, xmm0 movaps [rsp+0A8h+var_68], xmm0 mov [rsp+0A8h+var_58], 0 mov [r12], rcx mov [r12+8], rax test r15, r15 jz short loc_8D19C mov rdi, r15 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8D19C: lea rdi, [rsp+0A8h+var_68] call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector() loc_8D1A6: mov rax, r12 add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_8D1B8: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpectedClosin_5; "Expected closing brace" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_8D1D4: mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_8D1EA: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpectedCommaO_0; "Expected comma or closing brace in dict"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_8D1D4 jmp short loc_8D24B jmp short loc_8D210 jmp short loc_8D271 jmp short loc_8D25C loc_8D210: mov rbx, rax test r15, r15 jz short loc_8D25F mov rdi, r15 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp short loc_8D25F jmp short loc_8D271 jmp short loc_8D25C mov rbx, rax mov rdi, [rsp+0]; void * lea rax, [rsp+arg_8] cmp rdi, rax jz short loc_8D269 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_8D269 mov rbx, rax jmp short loc_8D269 loc_8D24B: mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_8D25F jmp short loc_8D25C jmp short $+2 loc_8D25C: mov rbx, rax loc_8D25F: lea rdi, [rsp+arg_38] call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector() loc_8D269: mov rdi, rbx call __Unwind_Resume loc_8D271: mov rbx, rax mov rdi, [rsp+0]; void * lea rax, [rsp+arg_8] cmp rdi, rax jz short loc_8D25F mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_8D25F
minja::Parser * minja::Parser::parseDictionary(minja::Parser *this, _QWORD *a2) { minja::Parser *v2; // r12 long long v3; // rbx long long v4; // rbx long long v5; // r12 volatile signed __int32 *v6; // r15 long long v7; // r15 long long v8; // rbx long long v9; // r12 long long v10; // rbx long long v11; // rax long long v12; // rcx std::runtime_error *exception; // r14 void *v15[2]; // [rsp+0h] [rbp-A8h] BYREF _QWORD v16[2]; // [rsp+10h] [rbp-98h] BYREF void *v17; // [rsp+20h] [rbp-88h] BYREF long long v18; // [rsp+28h] [rbp-80h] _QWORD v19[2]; // [rsp+30h] [rbp-78h] BYREF __int128 v20; // [rsp+40h] [rbp-68h] BYREF long long v21; // [rsp+50h] [rbp-58h] minja::Parser *v22; // [rsp+60h] [rbp-48h] _QWORD *v23; // [rsp+68h] [rbp-40h] __int128 *v24; // [rsp+70h] [rbp-38h] v2 = this; v15[0] = v16; std::string::_M_construct<char const*>(v15, "{", (long long)""); minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u); v3 = v18; if ( v17 != v19 ) operator delete(v17, v19[0] + 1LL); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); if ( !v3 ) { *(_OWORD *)this = 0LL; return v2; } v20 = 0LL; v21 = 0LL; v15[0] = v16; std::string::_M_construct<char const*>(v15, "}", (long long)""); minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u); v4 = v18; if ( v17 != v19 ) operator delete(v17, v19[0] + 1LL); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); if ( v4 ) { v5 = *a2; v6 = (volatile signed __int32 *)a2[1]; if ( v6 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v6 + 2); else _InterlockedIncrement(v6 + 2); } v10 = a2[4] - a2[2]; v11 = operator new(0x48uLL); v12 = v11 + 16; *(_QWORD *)(v11 + 8) = 0x100000001LL; *(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2> + 2; *(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2; *(_QWORD *)(v11 + 24) = v5; *(_QWORD *)(v11 + 32) = v6; v2 = this; if ( v6 ) goto LABEL_36; goto LABEL_39; } v22 = this; v23 = a2; v24 = &v20; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0); while ( 1 ) { if ( a2[4] == a2[3] ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected closing brace"); goto LABEL_44; } v15[0] = v16; std::string::_M_construct<char const*>(v15, ",", (long long)""); minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u); v7 = v18; if ( v17 != v19 ) operator delete(v17, v19[0] + 1LL); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); if ( !v7 ) break; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0); } v15[0] = v16; std::string::_M_construct<char const*>(v15, "}", (long long)""); minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u); v8 = v18; if ( v17 != v19 ) operator delete(v17, v19[0] + 1LL); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); if ( !v8 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected comma or closing brace in dictionary"); LABEL_44: __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v9 = *a2; v6 = (volatile signed __int32 *)a2[1]; if ( v6 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v6 + 2); else _InterlockedIncrement(v6 + 2); } v10 = a2[4] - a2[2]; v11 = operator new(0x48uLL); v12 = v11 + 16; *(_QWORD *)(v11 + 8) = 0x100000001LL; *(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2> + 2; *(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2; *(_QWORD *)(v11 + 24) = v9; *(_QWORD *)(v11 + 32) = v6; v2 = v22; if ( v6 ) { LABEL_36: if ( _libc_single_threaded ) ++*((_DWORD *)v6 + 2); else _InterlockedIncrement(v6 + 2); } LABEL_39: *(_QWORD *)(v11 + 40) = v10; *(_QWORD *)(v11 + 16) = &`vtable for'minja::DictExpr + 2; *(_OWORD *)(v11 + 48) = v20; *(_QWORD *)(v11 + 64) = v21; v20 = 0LL; v21 = 0LL; *(_QWORD *)v2 = v12; *((_QWORD *)v2 + 1) = v11; if ( v6 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6); std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector(&v20); return v2; }
parseDictionary: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV R14,RSI MOV R12,RDI LEA RAX,[RSP + 0x10] MOV qword ptr [RAX + -0x10],RAX LAB_0018ce0b: LEA RSI,[0x1f2e1a] LEA RDX,[0x1f2e1b] MOV RDI,RSP CALL 0x001233d6 LAB_0018ce21: LEA RDI,[RSP + 0x20] MOV RDX,RSP MOV RSI,R14 MOV ECX,0x1 CALL 0x00185926 LEA RAX,[RSP + 0x30] MOV RDI,qword ptr [RAX + -0x10] MOV RBX,qword ptr [RAX + -0x8] CMP RDI,RAX JZ 0x0018ce55 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011b8e0 LAB_0018ce55: MOV RDI,qword ptr [RSP] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x0018ce70 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b8e0 LAB_0018ce70: XORPS XMM0,XMM0 TEST RBX,RBX JZ 0x0018cf2a MOVAPS xmmword ptr [RSP + 0x40],XMM0 MOV qword ptr [RSP + 0x50],0x0 MOV RDI,RSP LEA RAX,[RSP + 0x10] MOV qword ptr [RDI],RAX LAB_0018ce95: LEA RSI,[0x1e946a] LEA RDX,[0x1e946b] CALL 0x001233d6 LAB_0018cea8: LEA RDI,[RSP + 0x20] MOV RDX,RSP MOV RSI,R14 MOV ECX,0x1 CALL 0x00185926 MOV RDI,qword ptr [RSP + 0x20] MOV RBX,qword ptr [RSP + 0x28] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x0018cede MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011b8e0 LAB_0018cede: MOV RDI,qword ptr [RSP] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x0018cef9 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b8e0 LAB_0018cef9: TEST RBX,RBX JZ 0x0018cf34 MOV R13,R12 MOV R12,qword ptr [R14] MOV R15,qword ptr [R14 + 0x8] TEST R15,R15 JZ 0x0018d088 MOV RAX,qword ptr [0x0022ef88] CMP byte ptr [RAX],0x0 JZ 0x0018d083 INC dword ptr [R15 + 0x8] JMP 0x0018d088 LAB_0018cf2a: MOVUPS xmmword ptr [R12],XMM0 JMP 0x0018d1a6 LAB_0018cf34: MOV qword ptr [RSP + 0x60],R12 LEA RDI,[RSP + 0x68] MOV qword ptr [RDI],R14 LEA RAX,[RSP + 0x40] MOV qword ptr [RDI + 0x8],RAX LAB_0018cf4a: CALL 0x001901e0 LEA R12,[0x1e9463] MOV R13,RSP LEA RBP,[RSP + 0x20] LEA RBX,[RSP + 0x68] LAB_0018cf63: MOV RAX,qword ptr [R14 + 0x20] CMP RAX,qword ptr [R14 + 0x18] JZ 0x0018d1b8 LEA RAX,[RSP + 0x10] MOV qword ptr [RSP],RAX LAB_0018cf7a: MOV RDI,R13 LEA RSI,[0x1e9462] MOV RDX,R12 CALL 0x001233d6 LAB_0018cf8c: MOV RDI,RBP MOV RSI,R14 MOV RDX,R13 MOV ECX,0x1 CALL 0x00185926 MOV RDI,qword ptr [RSP + 0x20] MOV R15,qword ptr [RSP + 0x28] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x0018cfc0 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011b8e0 LAB_0018cfc0: MOV RDI,qword ptr [RSP] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x0018cfdb MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b8e0 LAB_0018cfdb: TEST R15,R15 JZ 0x0018cfed LAB_0018cfe0: MOV RDI,RBX CALL 0x001901e0 JMP 0x0018cf63 LAB_0018cfed: MOV RDI,RSP LEA RAX,[RSP + 0x10] MOV qword ptr [RDI],RAX LAB_0018cff8: LEA RSI,[0x1e946a] LEA RDX,[0x1e946b] CALL 0x001233d6 LAB_0018d00b: LEA RDI,[RSP + 0x20] MOV RDX,RSP MOV RSI,R14 MOV ECX,0x1 CALL 0x00185926 MOV RDI,qword ptr [RSP + 0x20] MOV RBX,qword ptr [RSP + 0x28] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x0018d041 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011b8e0 LAB_0018d041: MOV RDI,qword ptr [RSP] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x0018d05c MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b8e0 LAB_0018d05c: TEST RBX,RBX JZ 0x0018d1ea MOV R12,qword ptr [R14] MOV R15,qword ptr [R14 + 0x8] TEST R15,R15 JZ 0x0018d0e3 MOV RAX,qword ptr [0x0022ef88] CMP byte ptr [RAX],0x0 JZ 0x0018d0de INC dword ptr [R15 + 0x8] JMP 0x0018d0e3 LAB_0018d083: INC.LOCK dword ptr [R15 + 0x8] LAB_0018d088: MOV RBX,qword ptr [R14 + 0x20] SUB RBX,qword ptr [R14 + 0x10] LAB_0018d090: MOV EDI,0x48 CALL 0x0011b8c0 LEA RDX,[0x22d608] ADD RDX,0x10 MOV RCX,RAX ADD RCX,0x10 LEA RSI,[0x22d3b8] ADD RSI,0x10 MOV RDI,0x100000001 MOV qword ptr [RAX + 0x8],RDI MOV qword ptr [RAX],RDX MOV qword ptr [RAX + 0x10],RSI MOV qword ptr [RAX + 0x18],R12 MOV qword ptr [RAX + 0x20],R15 TEST R15,R15 MOV R12,R13 JNZ 0x0018d139 JMP 0x0018d150 LAB_0018d0de: INC.LOCK dword ptr [R15 + 0x8] LAB_0018d0e3: MOV RBX,qword ptr [R14 + 0x20] SUB RBX,qword ptr [R14 + 0x10] LAB_0018d0eb: MOV EDI,0x48 CALL 0x0011b8c0 LAB_0018d0f5: LEA RDX,[0x22d608] ADD RDX,0x10 MOV RCX,RAX ADD RCX,0x10 LEA RSI,[0x22d3b8] ADD RSI,0x10 MOV RDI,0x100000001 MOV qword ptr [RAX + 0x8],RDI MOV qword ptr [RAX],RDX MOV qword ptr [RAX + 0x10],RSI MOV qword ptr [RAX + 0x18],R12 MOV qword ptr [RAX + 0x20],R15 TEST R15,R15 MOV R12,qword ptr [RSP + 0x60] JZ 0x0018d150 LAB_0018d139: MOV RDX,qword ptr [0x0022ef88] CMP byte ptr [RDX],0x0 JZ 0x0018d14b INC dword ptr [R15 + 0x8] JMP 0x0018d150 LAB_0018d14b: INC.LOCK dword ptr [R15 + 0x8] LAB_0018d150: LEA RDX,[0x22d658] ADD RDX,0x10 MOV qword ptr [RAX + 0x28],RBX MOV qword ptr [RAX + 0x10],RDX MOVAPS XMM0,xmmword ptr [RSP + 0x40] MOVUPS xmmword ptr [RAX + 0x30],XMM0 MOV RDX,qword ptr [RSP + 0x50] MOV qword ptr [RAX + 0x40],RDX XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x40],XMM0 MOV qword ptr [RSP + 0x50],0x0 MOV qword ptr [R12],RCX MOV qword ptr [R12 + 0x8],RAX TEST R15,R15 JZ 0x0018d19c MOV RDI,R15 CALL 0x0016e5ca LAB_0018d19c: LEA RDI,[RSP + 0x40] CALL 0x00190418 LAB_0018d1a6: MOV RAX,R12 ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0018d1b8: MOV EDI,0x10 CALL 0x0011b450 MOV R14,RAX LAB_0018d1c5: LEA RSI,[0x1f3445] MOV RDI,RAX CALL 0x0011b330 LAB_0018d1d4: MOV RSI,qword ptr [0x0022eff0] MOV RDX,qword ptr [0x0022ef60] MOV RDI,R14 CALL 0x0011bf10 LAB_0018d1ea: MOV EDI,0x10 CALL 0x0011b450 MOV R14,RAX LAB_0018d1f7: LEA RSI,[0x1f3417] MOV RDI,RAX CALL 0x0011b330 LAB_0018d206: JMP 0x0018d1d4
/* minja::Parser::parseDictionary() */ int8 * minja::Parser::parseDictionary(void) { int8 uVar1; int8 *puVar2; runtime_error *this; int8 *puVar3; long lVar4; int8 *in_RSI; int8 *in_RDI; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00; long *local_a8 [2]; long local_98 [2]; long *local_88; long local_80; long local_78 [2]; int8 local_68; int8 uStack_60; int8 local_58; int8 *local_48; _lambda___1_ local_40 [8]; int8 *local_38; local_a8[0] = local_98; /* try { // try from 0018ce0b to 0018ce20 has its CatchHandler @ 0018d246 */ std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f2e1a,&DAT_001f2e1b); /* try { // try from 0018ce21 to 0018ce35 has its CatchHandler @ 0018d226 */ consumeToken(&local_88); lVar4 = local_80; if (local_88 != local_78) { operator_delete(local_88,local_78[0] + 1); } if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (lVar4 == 0) { *in_RDI = 0; in_RDI[1] = 0; } else { local_68 = 0; uStack_60 = 0; local_58 = 0; local_a8[0] = local_98; /* try { // try from 0018ce95 to 0018cea7 has its CatchHandler @ 0018d224 */ std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001e946a,&DAT_001e946b); /* try { // try from 0018cea8 to 0018cebc has its CatchHandler @ 0018d222 */ consumeToken(&local_88); lVar4 = local_80; if (local_88 != local_78) { operator_delete(local_88,local_78[0] + 1); } if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (lVar4 == 0) { local_38 = &local_68; local_48 = in_RDI; /* try { // try from 0018cf4a to 0018cf4e has its CatchHandler @ 0018d258 */ parseDictionary()::{lambda()#1}::operator()(local_40); do { if (in_RSI[4] == in_RSI[3]) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0018d1c5 to 0018d1d3 has its CatchHandler @ 0018d24b */ std::runtime_error::runtime_error(this,"Expected closing brace"); LAB_0018d1d4: /* try { // try from 0018d1d4 to 0018d1e9 has its CatchHandler @ 0018d258 */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0022eff0,PTR__runtime_error_0022ef60); } local_a8[0] = local_98; /* try { // try from 0018cf7a to 0018cf8b has its CatchHandler @ 0018d25c */ std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001e9462,&DAT_001e9463); /* try { // try from 0018cf8c to 0018cf9e has its CatchHandler @ 0018d271 */ consumeToken(&local_88); lVar4 = local_80; if (local_88 != local_78) { operator_delete(local_88,local_78[0] + 1); } if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (lVar4 == 0) { local_a8[0] = local_98; /* try { // try from 0018cff8 to 0018d00a has its CatchHandler @ 0018d20e */ std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001e946a,&DAT_001e946b); /* try { // try from 0018d00b to 0018d01f has its CatchHandler @ 0018d20c */ consumeToken(&local_88); if (local_88 != local_78) { operator_delete(local_88,local_78[0] + 1); } if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (local_80 == 0) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0018d1f7 to 0018d205 has its CatchHandler @ 0018d208 */ std::runtime_error::runtime_error(this,"Expected comma or closing brace in dictionary"); goto LAB_0018d1d4; } uVar1 = *in_RSI; this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_0022ef88 == '\0') { LOCK(); *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; UNLOCK(); } else { *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; } } lVar4 = in_RSI[4] - in_RSI[2]; /* try { // try from 0018d0eb to 0018d0f4 has its CatchHandler @ 0018d20a */ puVar2 = (int8 *)operator_new(0x48); puVar3 = puVar2 + 2; puVar2[1] = 0x100000001; *puVar2 = &PTR___Sp_counted_ptr_inplace_0022d618; puVar2[2] = &PTR___cxa_pure_virtual_0022d3c8; puVar2[3] = uVar1; puVar2[4] = this_00; in_RDI = local_48; if (this_00 == (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) goto LAB_0018d150; goto LAB_0018d139; } /* try { // try from 0018cfe0 to 0018cfe7 has its CatchHandler @ 0018d25a */ parseDictionary()::{lambda()#1}::operator()(local_40); } while( true ); } uVar1 = *in_RSI; this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_0022ef88 == '\0') { LOCK(); *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; UNLOCK(); } else { *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; } } lVar4 = in_RSI[4] - in_RSI[2]; /* try { // try from 0018d090 to 0018d099 has its CatchHandler @ 0018d210 */ puVar2 = (int8 *)operator_new(0x48); puVar3 = puVar2 + 2; puVar2[1] = 0x100000001; *puVar2 = &PTR___Sp_counted_ptr_inplace_0022d618; puVar2[2] = &PTR___cxa_pure_virtual_0022d3c8; puVar2[3] = uVar1; puVar2[4] = this_00; if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { LAB_0018d139: if (*PTR___libc_single_threaded_0022ef88 == '\0') { LOCK(); *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; UNLOCK(); } else { *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; } } LAB_0018d150: puVar2[5] = lVar4; puVar2[2] = &PTR_do_evaluate_0022d668; puVar2[6] = local_68; puVar2[7] = uStack_60; puVar2[8] = local_58; local_68 = 0; uStack_60 = 0; local_58 = 0; *in_RDI = puVar3; in_RDI[1] = puVar2; if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00); } std:: vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>> ::~vector((vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>> *)&local_68); } return in_RDI; }
2,113
maria_delete_all_rows
eloqsql/storage/maria/ma_delete_all.c
int maria_delete_all_rows(MARIA_HA *info) { MARIA_SHARE *share= info->s; my_bool log_record; LSN lsn; #ifdef HAVE_MMAP my_bool mmap_file= share->file_map != 0; #endif DBUG_ENTER("maria_delete_all_rows"); if (share->options & HA_OPTION_READ_ONLY_DATA) { DBUG_RETURN(my_errno=EACCES); } /** @todo LOCK take X-lock on table here. When we have versioning, if some other thread is looking at this table, we cannot shrink the file like this. */ if (_ma_readinfo(info,F_WRLCK,1)) DBUG_RETURN(my_errno); log_record= share->now_transactional && !share->temporary; if (log_record) { /* This record will be used by Recovery to finish the deletion if it crashed. We force it to have a complete history in the log. */ LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 1]; uchar log_data[FILEID_STORE_SIZE]; log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data); if (unlikely(translog_write_record(&lsn, LOGREC_REDO_DELETE_ALL, info->trn, info, 0, sizeof(log_array)/sizeof(log_array[0]), log_array, log_data, NULL) || translog_flush(lsn))) goto err; /* If we fail in this function after this point, log and table will be inconsistent. */ if (_ma_mark_file_changed(share)) goto err; } else { if (_ma_mark_file_changed(share)) goto err; /* Other branch called function below when writing log record, in hook */ _ma_reset_status(info); } /* Remove old history as the table is now empty for everyone */ _ma_reset_state(info); share->state.changed= 0; /* If we are using delayed keys or if the user has done changes to the tables since it was locked then there may be key blocks in the page cache. Or there may be data blocks there. We need to throw them away or they may re-enter the emptied table or another table later. */ #ifdef HAVE_MMAP if (mmap_file) _ma_unmap_file(info); #endif if (_ma_flush_table_files(info, MARIA_FLUSH_DATA|MARIA_FLUSH_INDEX, FLUSH_IGNORE_CHANGED, FLUSH_IGNORE_CHANGED) || mysql_file_chsize(info->dfile.file, 0, 0, MYF(MY_WME)) || mysql_file_chsize(share->kfile.file, share->base.keystart, 0, MYF(MY_WME))) goto err; if (_ma_initialize_data_file(share, info->dfile.file)) goto err; if (log_record) { /* Because LOGREC_REDO_DELETE_ALL does not operate on pages, it has the following problem: delete_all; inserts (redo_insert); all pages get flushed; checkpoint: the dirty pages list will be empty. In recovery, delete_all is executed, but redo_insert are skipped (dirty pages list is empty). To avoid this, we need to set skip_redo_lsn now, and thus need to sync files. Also fixes the problem of: bulk insert; insert; delete_all; crash: "bulk insert" is skipped (no REDOs), so if "insert" would not be skipped (if we didn't update skip_redo_lsn below) then "insert" would be tried and fail, saying that it sees that the first page has to be created though the inserted row has rownr>0. */ my_bool error= _ma_state_info_write(share, MA_STATE_INFO_WRITE_DONT_MOVE_OFFSET | MA_STATE_INFO_WRITE_LOCK) || _ma_update_state_lsns(share, lsn, info->trn->trid, FALSE, FALSE) || _ma_sync_table_files(info); info->trn->rec_lsn= LSN_IMPOSSIBLE; if (error) goto err; } if (info->opt_flag & WRITE_CACHE_USED) reinit_io_cache(&info->rec_cache, WRITE_CACHE, 0, 1, 1); _ma_writeinfo(info, WRITEINFO_UPDATE_KEYFILE); #ifdef HAVE_MMAP /* Map again */ if (mmap_file) _ma_dynmap_file(info, (my_off_t) 0); #endif DBUG_RETURN(0); err: { int save_errno=my_errno; _ma_writeinfo(info, WRITEINFO_UPDATE_KEYFILE); info->update|=HA_STATE_WRITTEN; /* Buffer changed */ DBUG_RETURN(my_errno=save_errno); } }
O3
c
maria_delete_all_rows: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq (%rdi), %r14 testb $0x1, 0x722(%r14) jne 0x601a0 movq %rdi, %rbx movq 0x5f0(%r14), %r13 movl $0x1, %esi movl $0x1, %edx callq 0x43bfa testl %eax, %eax je 0x601b6 callq 0xa2f56 movl (%rax), %r14d jmp 0x6037b callq 0xa2f56 movl $0xd, (%rax) movl $0xd, %r14d jmp 0x6037b cmpb $0x0, 0x7e7(%r14) je 0x601ce cmpb $0x0, 0x7d9(%r14) je 0x602fb movq %r14, %rdi callq 0x43c7a testl %eax, %eax jne 0x60357 movq %rbx, %rdi callq 0x60415 movb $0x1, %r12b movq %rbx, %rdi callq 0x44420 movl $0x0, 0x170(%r14) testq %r13, %r13 je 0x60209 movq %rbx, %rdi callq 0x464f6 movq %rbx, %rdi movl $0x3, %esi movl $0x2, %edx movl $0x2, %ecx callq 0x408fc testl %eax, %eax jne 0x60357 movl 0x480(%rbx), %r15d leaq 0x327dda(%rip), %rax # 0x388010 movq (%rax), %rax leaq -0x80(%rbp), %rdi movl %r15d, %esi movl $0xd, %edx callq *0x158(%rax) testq %rax, %rax jne 0x603f8 movl $0x10, %ecx movl %r15d, %edi xorl %esi, %esi xorl %edx, %edx callq 0x9f038 testl %eax, %eax jne 0x60357 movl 0x760(%r14), %esi movq 0x360(%r14), %rdx movl $0x6c, %edi callq 0x604b5 testl %eax, %eax jne 0x60357 movl 0x480(%rbx), %esi movq %r14, %rdi callq 0x5ff6b testl %eax, %eax jne 0x60357 testb %r12b, %r12b je 0x60395 testb $0x10, 0x61c(%rbx) je 0x602d3 leaq 0x4b8(%rbx), %rdi movl $0x2, %esi xorl %edx, %edx movl $0x1, %ecx movl $0x1, %r8d callq 0x965c0 movq %rbx, %rdi movl $0x1, %esi callq 0x43c02 xorl %r14d, %r14d testq %r13, %r13 je 0x6037b movq %rbx, %rdi xorl %esi, %esi callq 0x47ef4 jmp 0x6037b leaq -0x2c(%rbp), %rax leaq -0x80(%rbp), %r10 movq %rax, 0x20(%r10) movq $0x2, 0x28(%r10) movq 0x8(%rbx), %rdx subq $0x8, %rsp leaq -0x38(%rbp), %rdi movl $0x21, %esi movq %rbx, %rcx xorl %r8d, %r8d movl $0x3, %r9d pushq $0x0 pushq %rax pushq %r10 callq 0x29c54 addq $0x20, %rsp testb %al, %al jne 0x60357 movq -0x38(%rbp), %rdi callq 0x37ac7 testb %al, %al jne 0x60357 movq %r14, %rdi callq 0x43c7a testl %eax, %eax je 0x6038d callq 0xa2f56 movl (%rax), %r14d movq %rbx, %rdi movl $0x1, %esi callq 0x43c02 orb $0x4, 0x624(%rbx) callq 0xa2f56 movl %r14d, (%rax) movl %r14d, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq xorl %r12d, %r12d jmp 0x601e9 movq %r14, %rdi movl $0x5, %esi callq 0x6c602 testl %eax, %eax jne 0x603c3 movq -0x38(%rbp), %rsi movq 0x8(%rbx), %rax movq 0x78(%rax), %rdx movq %r14, %rdi xorl %ecx, %ecx xorl %r8d, %r8d callq 0x600b6 testl %eax, %eax je 0x603d4 movq 0x8(%rbx), %rax movq $0x0, 0x90(%rax) jmp 0x60357 movq %rbx, %rdi callq 0x40b16 movq 0x8(%rbx), %rcx movq $0x0, 0x90(%rcx) testl %eax, %eax jne 0x60357 jmp 0x602ac leaq -0x2c(%rbp), %rcx movq %rax, %rdi movl %r15d, %esi movq %rcx, %r15 movq %rcx, %rdx callq 0x2cd27 movl (%r15), %eax jmp 0x60265
maria_delete_all_rows: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r14, [rdi] test byte ptr [r14+722h], 1 jnz short loc_601A0 mov rbx, rdi mov r13, [r14+5F0h] mov esi, 1 mov edx, 1 call _ma_readinfo test eax, eax jz short loc_601B6 call _my_thread_var mov r14d, [rax] jmp loc_6037B loc_601A0: call _my_thread_var mov dword ptr [rax], 0Dh mov r14d, 0Dh jmp loc_6037B loc_601B6: cmp byte ptr [r14+7E7h], 0 jz short loc_601CE cmp byte ptr [r14+7D9h], 0 jz loc_602FB loc_601CE: mov rdi, r14 call _ma_mark_file_changed test eax, eax jnz loc_60357 mov rdi, rbx call _ma_reset_status mov r12b, 1 loc_601E9: mov rdi, rbx call _ma_reset_state mov dword ptr [r14+170h], 0 test r13, r13 jz short loc_60209 mov rdi, rbx call _ma_unmap_file loc_60209: mov rdi, rbx mov esi, 3 mov edx, 2 mov ecx, 2 call _ma_flush_table_files test eax, eax jnz loc_60357 mov r15d, [rbx+480h] lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_80] mov esi, r15d mov edx, 0Dh call qword ptr [rax+158h] test rax, rax jnz loc_603F8 mov ecx, 10h mov edi, r15d xor esi, esi xor edx, edx call my_chsize loc_60265: test eax, eax jnz loc_60357 mov esi, [r14+760h] mov rdx, [r14+360h] mov edi, 6Ch ; 'l' call inline_mysql_file_chsize_0 test eax, eax jnz loc_60357 mov esi, [rbx+480h] mov rdi, r14 call _ma_initialize_data_file test eax, eax jnz loc_60357 test r12b, r12b jz loc_60395 loc_602AC: test byte ptr [rbx+61Ch], 10h jz short loc_602D3 lea rdi, [rbx+4B8h] mov esi, 2 xor edx, edx mov ecx, 1 mov r8d, 1 call reinit_io_cache loc_602D3: mov rdi, rbx mov esi, 1 call _ma_writeinfo xor r14d, r14d test r13, r13 jz loc_6037B mov rdi, rbx xor esi, esi call _ma_dynmap_file jmp loc_6037B loc_602FB: lea rax, [rbp+var_2C] lea r10, [rbp+var_80] mov [r10+20h], rax mov qword ptr [r10+28h], 2 mov rdx, [rbx+8] sub rsp, 8 lea rdi, [rbp+var_38] mov esi, 21h ; '!' mov rcx, rbx xor r8d, r8d mov r9d, 3 push 0 push rax push r10 call translog_write_record add rsp, 20h test al, al jnz short loc_60357 mov rdi, [rbp+var_38] call translog_flush test al, al jnz short loc_60357 mov rdi, r14 call _ma_mark_file_changed test eax, eax jz short loc_6038D loc_60357: call _my_thread_var mov r14d, [rax] mov rdi, rbx mov esi, 1 call _ma_writeinfo or byte ptr [rbx+624h], 4 call _my_thread_var mov [rax], r14d loc_6037B: mov eax, r14d add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_6038D: xor r12d, r12d jmp loc_601E9 loc_60395: mov rdi, r14 mov esi, 5 call _ma_state_info_write test eax, eax jnz short loc_603C3 mov rsi, [rbp+var_38] mov rax, [rbx+8] mov rdx, [rax+78h] mov rdi, r14 xor ecx, ecx xor r8d, r8d call _ma_update_state_lsns test eax, eax jz short loc_603D4 loc_603C3: mov rax, [rbx+8] mov qword ptr [rax+90h], 0 jmp short loc_60357 loc_603D4: mov rdi, rbx call _ma_sync_table_files mov rcx, [rbx+8] mov qword ptr [rcx+90h], 0 test eax, eax jnz loc_60357 jmp loc_602AC loc_603F8: lea rcx, [rbp+var_2C] mov rdi, rax mov esi, r15d mov r15, rcx mov rdx, rcx call maria_delete_all_rows_cold_1 mov eax, [r15] jmp loc_60265
long long maria_delete_all_rows(_QWORD *a1) { long long v1; // r14 long long v3; // r13 unsigned int v4; // r14d long long v5; // rdi char v6; // r12 unsigned int v7; // r15d long long v8; // rax int v9; // eax long long v10; // rdx long long v11; // rcx long long v12; // rdx BOOL v14; // eax _OWORD v15[2]; // [rsp+0h] [rbp-80h] BYREF _DWORD *v16; // [rsp+20h] [rbp-60h] long long v17; // [rsp+28h] [rbp-58h] long long v18; // [rsp+48h] [rbp-38h] BYREF _DWORD v19[11]; // [rsp+54h] [rbp-2Ch] BYREF v1 = *a1; if ( (*(_BYTE *)(*a1 + 1826LL) & 1) != 0 ) { *(_DWORD *)my_thread_var(a1) = 13; return 13; } v3 = *(_QWORD *)(v1 + 1520); if ( (unsigned int)ma_readinfo() ) return *(unsigned int *)my_thread_var(a1); if ( *(_BYTE *)(v1 + 2023) && !*(_BYTE *)(v1 + 2009) ) { v16 = v19; v17 = 2LL; v12 = a1[1]; v5 = (long long)&v18; if ( (unsigned __int8)translog_write_record( (unsigned long long)&v18, (long long *)((char *)&qword_20 + 1), v12, a1, 0, 3, v15, v19, 0LL) ) goto LABEL_25; v5 = v18; if ( (unsigned __int8)translog_flush(v18) ) goto LABEL_25; v5 = v1; if ( (unsigned int)ma_mark_file_changed(v1) ) goto LABEL_25; v6 = 0; } else { v5 = v1; if ( (unsigned int)ma_mark_file_changed(v1) ) goto LABEL_25; ma_reset_status(a1); v6 = 1; } ma_reset_state(a1); *(_DWORD *)(v1 + 368) = 0; if ( v3 ) ma_unmap_file(a1); v5 = (long long)a1; if ( (unsigned int)ma_flush_table_files(a1, 3, 2u, 2u) ) goto LABEL_25; v7 = *((_DWORD *)a1 + 288); v8 = ((long long ( *)(_OWORD *, _QWORD, long long))PSI_server[43])(v15, v7, 13LL); if ( v8 ) { v5 = v8; maria_delete_all_rows_cold_1(v8, v7, v19); v9 = v19[0]; } else { v5 = v7; v9 = my_chsize(v7, 0LL, 0LL, 16LL); } if ( v9 ) goto LABEL_25; v5 = 108LL; if ( (unsigned int)inline_mysql_file_chsize_0(108LL, *(unsigned int *)(v1 + 1888), *(_QWORD *)(v1 + 864)) ) goto LABEL_25; v5 = v1; if ( (unsigned int)ma_initialize_data_file(v1, *((_DWORD *)a1 + 288)) ) goto LABEL_25; if ( !v6 ) { v5 = v1; if ( (unsigned int)ma_state_info_write(v1, 5LL, v10, v11) || (v5 = v1, (unsigned int)ma_update_state_lsns(v1, v18, *(_QWORD *)(a1[1] + 120LL), 0, 0)) ) { *(_QWORD *)(a1[1] + 144LL) = 0LL; } else { v5 = (long long)a1; v14 = ma_sync_table_files(a1); *(_QWORD *)(a1[1] + 144LL) = 0LL; if ( !v14 ) goto LABEL_18; } LABEL_25: v4 = *(_DWORD *)my_thread_var(v5); ma_writeinfo(a1, 1); *((_BYTE *)a1 + 1572) |= 4u; *(_DWORD *)my_thread_var(a1) = v4; return v4; } LABEL_18: if ( (*((_BYTE *)a1 + 1564) & 0x10) != 0 ) reinit_io_cache(a1 + 151, 2LL, 0LL, 1LL, 1LL); ma_writeinfo(a1, 1); v4 = 0; if ( v3 ) ma_dynmap_file((unsigned int *)a1, 0LL); return v4; }
maria_delete_all_rows: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R14,qword ptr [RDI] TEST byte ptr [R14 + 0x722],0x1 JNZ 0x001601a0 MOV RBX,RDI MOV R13,qword ptr [R14 + 0x5f0] MOV ESI,0x1 MOV EDX,0x1 CALL 0x00143bfa TEST EAX,EAX JZ 0x001601b6 CALL 0x001a2f56 MOV R14D,dword ptr [RAX] JMP 0x0016037b LAB_001601a0: CALL 0x001a2f56 MOV dword ptr [RAX],0xd MOV R14D,0xd JMP 0x0016037b LAB_001601b6: CMP byte ptr [R14 + 0x7e7],0x0 JZ 0x001601ce CMP byte ptr [R14 + 0x7d9],0x0 JZ 0x001602fb LAB_001601ce: MOV RDI,R14 CALL 0x00143c7a TEST EAX,EAX JNZ 0x00160357 MOV RDI,RBX CALL 0x00160415 MOV R12B,0x1 LAB_001601e9: MOV RDI,RBX CALL 0x00144420 MOV dword ptr [R14 + 0x170],0x0 TEST R13,R13 JZ 0x00160209 MOV RDI,RBX CALL 0x001464f6 LAB_00160209: MOV RDI,RBX MOV ESI,0x3 MOV EDX,0x2 MOV ECX,0x2 CALL 0x001408fc TEST EAX,EAX JNZ 0x00160357 MOV R15D,dword ptr [RBX + 0x480] LEA RAX,[0x488010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x80] MOV ESI,R15D MOV EDX,0xd CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x001603f8 MOV ECX,0x10 MOV EDI,R15D XOR ESI,ESI XOR EDX,EDX CALL 0x0019f038 LAB_00160265: TEST EAX,EAX JNZ 0x00160357 MOV ESI,dword ptr [R14 + 0x760] MOV RDX,qword ptr [R14 + 0x360] MOV EDI,0x6c CALL 0x001604b5 TEST EAX,EAX JNZ 0x00160357 MOV ESI,dword ptr [RBX + 0x480] MOV RDI,R14 CALL 0x0015ff6b TEST EAX,EAX JNZ 0x00160357 TEST R12B,R12B JZ 0x00160395 LAB_001602ac: TEST byte ptr [RBX + 0x61c],0x10 JZ 0x001602d3 LEA RDI,[RBX + 0x4b8] MOV ESI,0x2 XOR EDX,EDX MOV ECX,0x1 MOV R8D,0x1 CALL 0x001965c0 LAB_001602d3: MOV RDI,RBX MOV ESI,0x1 CALL 0x00143c02 XOR R14D,R14D TEST R13,R13 JZ 0x0016037b MOV RDI,RBX XOR ESI,ESI CALL 0x00147ef4 JMP 0x0016037b LAB_001602fb: LEA RAX,[RBP + -0x2c] LEA R10,[RBP + -0x80] MOV qword ptr [R10 + 0x20],RAX MOV qword ptr [R10 + 0x28],0x2 MOV RDX,qword ptr [RBX + 0x8] SUB RSP,0x8 LEA RDI,[RBP + -0x38] MOV ESI,0x21 MOV RCX,RBX XOR R8D,R8D MOV R9D,0x3 PUSH 0x0 PUSH RAX PUSH R10 CALL 0x00129c54 ADD RSP,0x20 TEST AL,AL JNZ 0x00160357 MOV RDI,qword ptr [RBP + -0x38] CALL 0x00137ac7 TEST AL,AL JNZ 0x00160357 MOV RDI,R14 CALL 0x00143c7a TEST EAX,EAX JZ 0x0016038d LAB_00160357: CALL 0x001a2f56 MOV R14D,dword ptr [RAX] MOV RDI,RBX MOV ESI,0x1 CALL 0x00143c02 OR byte ptr [RBX + 0x624],0x4 CALL 0x001a2f56 MOV dword ptr [RAX],R14D LAB_0016037b: MOV EAX,R14D ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0016038d: XOR R12D,R12D JMP 0x001601e9 LAB_00160395: MOV RDI,R14 MOV ESI,0x5 CALL 0x0016c602 TEST EAX,EAX JNZ 0x001603c3 MOV RSI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBX + 0x8] MOV RDX,qword ptr [RAX + 0x78] MOV RDI,R14 XOR ECX,ECX XOR R8D,R8D CALL 0x001600b6 TEST EAX,EAX JZ 0x001603d4 LAB_001603c3: MOV RAX,qword ptr [RBX + 0x8] MOV qword ptr [RAX + 0x90],0x0 JMP 0x00160357 LAB_001603d4: MOV RDI,RBX CALL 0x00140b16 MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RCX + 0x90],0x0 TEST EAX,EAX JNZ 0x00160357 JMP 0x001602ac LAB_001603f8: LEA RCX,[RBP + -0x2c] MOV RDI,RAX MOV ESI,R15D MOV R15,RCX MOV RDX,RCX CALL 0x0012cd27 MOV EAX,dword ptr [R15] JMP 0x00160265
int4 maria_delete_all_rows(long *param_1) { int4 uVar1; long lVar2; long lVar3; bool bVar4; char cVar5; int iVar6; int4 *puVar7; long lVar8; int1 local_88 [32]; int *local_68; int8 local_60; int8 local_40; int local_34; lVar2 = *param_1; if ((*(byte *)(lVar2 + 0x722) & 1) != 0) { puVar7 = (int4 *)_my_thread_var(); *puVar7 = 0xd; return 0xd; } lVar3 = *(long *)(lVar2 + 0x5f0); iVar6 = _ma_readinfo(param_1,1,1); if (iVar6 != 0) { puVar7 = (int4 *)_my_thread_var(); return *puVar7; } if ((*(char *)(lVar2 + 0x7e7) == '\0') || (*(char *)(lVar2 + 0x7d9) != '\0')) { iVar6 = _ma_mark_file_changed(lVar2); if (iVar6 != 0) goto LAB_00160357; _ma_reset_status(param_1); bVar4 = true; } else { local_68 = &local_34; local_60 = 2; cVar5 = translog_write_record(&local_40,0x21,param_1[1],param_1,0,3,local_88,local_68,0); if (((cVar5 != '\0') || (cVar5 = translog_flush(local_40), cVar5 != '\0')) || (iVar6 = _ma_mark_file_changed(lVar2), iVar6 != 0)) goto LAB_00160357; bVar4 = false; } _ma_reset_state(param_1); *(int4 *)(lVar2 + 0x170) = 0; if (lVar3 != 0) { _ma_unmap_file(param_1); } iVar6 = _ma_flush_table_files(param_1,3,2,2); if (iVar6 == 0) { uVar1 = (int4)param_1[0x90]; lVar8 = (**(code **)(PSI_server + 0x158))(local_88,uVar1,0xd); if (lVar8 == 0) { local_34 = my_chsize(uVar1,0,0,0x10); } else { maria_delete_all_rows_cold_1(lVar8,uVar1,&local_34); } if (((local_34 == 0) && (iVar6 = inline_mysql_file_chsize (0x6c,*(int4 *)(lVar2 + 0x760),*(int8 *)(lVar2 + 0x360)), iVar6 == 0)) && (iVar6 = _ma_initialize_data_file(lVar2,(int)param_1[0x90]), iVar6 == 0)) { if (bVar4) { LAB_001602ac: if ((*(byte *)((long)param_1 + 0x61c) & 0x10) != 0) { reinit_io_cache(param_1 + 0x97,2,0,1,1); } _ma_writeinfo(param_1,1); if (lVar3 == 0) { return 0; } _ma_dynmap_file(param_1,0); return 0; } iVar6 = _ma_state_info_write(lVar2,5); if ((iVar6 == 0) && (iVar6 = _ma_update_state_lsns(lVar2,local_40,*(int8 *)(param_1[1] + 0x78),0,0), iVar6 == 0)) { iVar6 = _ma_sync_table_files(param_1); *(int8 *)(param_1[1] + 0x90) = 0; if (iVar6 == 0) goto LAB_001602ac; } else { *(int8 *)(param_1[1] + 0x90) = 0; } } } LAB_00160357: puVar7 = (int4 *)_my_thread_var(); uVar1 = *puVar7; _ma_writeinfo(param_1,1); *(byte *)((long)param_1 + 0x624) = *(byte *)((long)param_1 + 0x624) | 4; puVar7 = (int4 *)_my_thread_var(); *puVar7 = uVar1; return uVar1; }
2,114
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()
monkey531[P]llama/common/json.hpp
char_int_type get() { ++position.chars_read_total; ++position.chars_read_current_line; if (next_unget) { // just reset the next_unget variable and work with current next_unget = false; } else { current = ia.get_character(); } if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof())) { token_string.push_back(char_traits<char_type>::to_char_type(current)); } if (current == '\n') { ++position.lines_read; position.chars_read_current_line = 0; } return current; }
O1
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(): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movdqu 0x20(%rdi), %xmm0 pcmpeqd %xmm1, %xmm1 psubq %xmm1, %xmm0 movdqu %xmm0, 0x20(%rdi) cmpb $0x1, 0x18(%rdi) jne 0x1c3c0 movb $0x0, 0x18(%rbx) jmp 0x1c3d5 movq (%rbx), %rcx cmpq 0x8(%rbx), %rcx je 0x1c404 movzbl (%rcx), %eax incq %rcx movq %rcx, (%rbx) movl %eax, 0x14(%rbx) movl 0x14(%rbx), %eax cmpl $-0x1, %eax je 0x1c3ed leaq 0x38(%rbx), %rdi leaq 0xf(%rsp), %rsi movb %al, (%rsi) callq 0x5dcf0 movl 0x14(%rbx), %eax cmpl $0xa, %eax jne 0x1c3fe incq 0x30(%rbx) andq $0x0, 0x28(%rbx) addq $0x10, %rsp popq %rbx retq pushq $-0x1 popq %rax jmp 0x1c3d2 nop
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv: push rbx sub rsp, 10h mov rbx, rdi movdqu xmm0, xmmword ptr [rdi+20h] pcmpeqd xmm1, xmm1 psubq xmm0, xmm1 movdqu xmmword ptr [rdi+20h], xmm0 cmp byte ptr [rdi+18h], 1 jnz short loc_1C3C0 mov byte ptr [rbx+18h], 0 jmp short loc_1C3D5 loc_1C3C0: mov rcx, [rbx] cmp rcx, [rbx+8] jz short loc_1C404 movzx eax, byte ptr [rcx] inc rcx mov [rbx], rcx loc_1C3D2: mov [rbx+14h], eax loc_1C3D5: mov eax, [rbx+14h] cmp eax, 0FFFFFFFFh jz short loc_1C3ED lea rdi, [rbx+38h] lea rsi, [rsp+18h+var_9] mov [rsi], al call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&) loc_1C3ED: mov eax, [rbx+14h] cmp eax, 0Ah jnz short loc_1C3FE inc qword ptr [rbx+30h] and qword ptr [rbx+28h], 0 loc_1C3FE: add rsp, 10h pop rbx retn loc_1C404: push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_1C3D2
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( __m128i *a1) { unsigned __int8 *v1; // rcx int v2; // eax long long result; // rax a1[2] = _mm_sub_epi64(_mm_loadu_si128(a1 + 2), (__m128i)-1LL); if ( a1[1].m128i_i8[8] == 1 ) { a1[1].m128i_i8[8] = 0; } else { v1 = (unsigned __int8 *)a1->m128i_i64[0]; if ( a1->m128i_i64[0] == a1->m128i_i64[1] ) { v2 = -1; } else { v2 = *v1; a1->m128i_i64[0] = (long long)(v1 + 1); } a1[1].m128i_i32[1] = v2; } if ( a1[1].m128i_i32[1] != -1 ) std::vector<char>::emplace_back<char>(&a1[3].m128i_u64[1]); result = a1[1].m128i_u32[1]; if ( (_DWORD)result == 10 ) { ++a1[3].m128i_i64[0]; a1[2].m128i_i64[1] = 0LL; } return result; }
get: PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOVDQU XMM0,xmmword ptr [RDI + 0x20] PCMPEQD XMM1,XMM1 PSUBQ XMM0,XMM1 MOVDQU xmmword ptr [RDI + 0x20],XMM0 CMP byte ptr [RDI + 0x18],0x1 JNZ 0x0011c3c0 MOV byte ptr [RBX + 0x18],0x0 JMP 0x0011c3d5 LAB_0011c3c0: MOV RCX,qword ptr [RBX] CMP RCX,qword ptr [RBX + 0x8] JZ 0x0011c404 MOVZX EAX,byte ptr [RCX] INC RCX MOV qword ptr [RBX],RCX LAB_0011c3d2: MOV dword ptr [RBX + 0x14],EAX LAB_0011c3d5: MOV EAX,dword ptr [RBX + 0x14] CMP EAX,-0x1 JZ 0x0011c3ed LEA RDI,[RBX + 0x38] LEA RSI,[RSP + 0xf] MOV byte ptr [RSI],AL CALL 0x0015dcf0 LAB_0011c3ed: MOV EAX,dword ptr [RBX + 0x14] CMP EAX,0xa JNZ 0x0011c3fe INC qword ptr [RBX + 0x30] AND qword ptr [RBX + 0x28],0x0 LAB_0011c3fe: ADD RSP,0x10 POP RBX RET LAB_0011c404: PUSH -0x1 POP RAX JMP 0x0011c3d2
/* 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() */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { byte *pbVar1; uint uVar2; char local_9; *(long *)(this + 0x20) = *(long *)(this + 0x20) + 1; *(long *)(this + 0x28) = *(long *)(this + 0x28) + 1; if (this[0x18] == (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>>> )0x1) { this[0x18] = (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>>> )0x0; } else { pbVar1 = *(byte **)this; if (pbVar1 == *(byte **)(this + 8)) { uVar2 = 0xffffffff; } else { uVar2 = (uint)*pbVar1; *(byte **)this = pbVar1 + 1; } *(uint *)(this + 0x14) = uVar2; } if (*(int *)(this + 0x14) != -1) { local_9 = (char)*(int *)(this + 0x14); std::vector<char,std::allocator<char>>::emplace_back<char> ((vector<char,std::allocator<char>> *)(this + 0x38),&local_9); } if (*(int *)(this + 0x14) == 10) { *(long *)(this + 0x30) = *(long *)(this + 0x30) + 1; *(int8 *)(this + 0x28) = 0; } return; }
2,115
foreach_function(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&, std::function<void (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)> const&)
monkey531[P]llama/common/chat.cpp
static void foreach_function(const json & tools, const std::function<void(const json &)> & fn) { for (const auto & tool : tools) { if (!tool.contains("type") || tool["type"] != "function" || !tool.contains("function")) { LOG_INF("Skipping tool without function: %s", tool.dump(2).c_str()); continue; } fn(tool); } }
O1
cpp
foreach_function(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&, std::function<void (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rsi, 0x20(%rsp) movq %rdi, %r14 movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000 leaq 0x48(%rsp), %rdi movq %r14, %rsi callq 0x5038e movq %r14, (%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rsp) movq %rbx, 0x18(%rsp) movzbl (%r14), %eax cmpl $0x2, %eax je 0x8b677 cmpl $0x1, %eax jne 0x8b682 movq $0x0, 0x8(%rsp) jmp 0x8b687 movq $0x0, 0x10(%rsp) jmp 0x8b687 movq %rbx, 0x18(%rsp) cmpl $0x2, %eax je 0x8b6a0 cmpl $0x1, %eax jne 0x8b6af movq 0x8(%r14), %rax movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) jmp 0x8b6b8 movq 0x8(%r14), %rax movq 0x8(%rax), %rax movq %rax, 0x10(%rsp) jmp 0x8b6b8 movq $0x1, 0x18(%rsp) leaq 0x48(%rsp), %rdi movq %rsp, %rsi callq 0x50452 testb %al, %al jne 0x8b7e3 leaq 0x48(%rsp), %r14 leaq 0x21375(%rip), %r15 # 0xaca4e leaq 0x56920(%rip), %r12 # 0xe2000 movq %rsp, %r13 movq %r14, %rdi callq 0x50092 movq %rax, %rbp movq %rax, %rdi movq %r15, %rsi callq 0x6a09a testb %al, %al je 0x8b746 movq %rbp, %rdi movq %r15, %rsi callq 0x6b35a movq %rax, %rdi leaq 0x21350(%rip), %rsi # 0xaca62 callq 0x6adb5 testb %al, %al jne 0x8b746 movq %rbp, %rdi leaq 0x2133d(%rip), %rsi # 0xaca62 callq 0x985a0 testb %al, %al je 0x8b746 movq 0x20(%rsp), %rdi cmpq $0x0, 0x10(%rdi) je 0x8b7f2 movq %rbp, %rsi callq *0x18(%rdi) jmp 0x8b7a9 cmpl $0x0, (%r12) js 0x8b7a9 callq 0x815bf movq %rax, %rbx leaq 0x28(%rsp), %rdi movq %rbp, %rsi movl $0x2, %edx movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x2db30 movq 0x28(%rsp), %rcx movq %rbx, %rdi movl $0x2, %esi leaq 0x29320(%rip), %rdx # 0xb4aa6 xorl %eax, %eax callq 0x8165a movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x8b7a9 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x48(%rsp), %rax movzbl (%rax), %eax cmpl $0x2, %eax je 0x8b7c3 cmpl $0x1, %eax jne 0x8b7cb addq $0x30, 0x50(%rsp) jmp 0x8b7d0 addq $0x10, 0x58(%rsp) jmp 0x8b7d0 incq 0x60(%rsp) movq %r14, %rdi movq %r13, %rsi callq 0x50452 testb %al, %al je 0x8b6e3 addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x18250 movq %rax, %rbx movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x8b816 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq %rbx, %rdi callq 0x18bc0
_ZL16foreach_functionRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEERKSt8functionIFvSF_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov [rsp+98h+var_78], rsi mov r14, rdi mov rbx, 8000000000000000h lea rdi, [rsp+98h+var_50] mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void) mov [rsp+98h+var_98], r14 xorps xmm0, xmm0 movups [rsp+98h+var_90], xmm0 mov [rsp+98h+var_80], rbx movzx eax, byte ptr [r14] cmp eax, 2 jz short loc_8B677 cmp eax, 1 jnz short loc_8B682 mov qword ptr [rsp+98h+var_90], 0 jmp short loc_8B687 loc_8B677: mov qword ptr [rsp+98h+var_90+8], 0 jmp short loc_8B687 loc_8B682: mov [rsp+98h+var_80], rbx loc_8B687: cmp eax, 2 jz short loc_8B6A0 cmp eax, 1 jnz short loc_8B6AF mov rax, [r14+8] mov rax, [rax+8] mov qword ptr [rsp+98h+var_90], rax jmp short loc_8B6B8 loc_8B6A0: mov rax, [r14+8] mov rax, [rax+8] mov qword ptr [rsp+98h+var_90+8], rax jmp short loc_8B6B8 loc_8B6AF: mov [rsp+98h+var_80], 1 loc_8B6B8: lea rdi, [rsp+98h+var_50] mov rsi, rsp call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jnz loc_8B7E3 lea r14, [rsp+98h+var_50] lea r15, aType; "type" lea r12, common_log_verbosity_thold mov r13, rsp loc_8B6E3: mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rbp, rax mov rdi, rax mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ test al, al jz short loc_8B746 mov rdi, rbp mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov rdi, rax lea rsi, aFunction; "function" call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_ test al, al jnz short loc_8B746 mov rdi, rbp lea rsi, aFunction; "function" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ test al, al jz short loc_8B746 mov rdi, [rsp+98h+var_78] cmp qword ptr [rdi+10h], 0 jz loc_8B7F2 mov rsi, rbp call qword ptr [rdi+18h] jmp short loc_8B7A9 loc_8B746: cmp dword ptr [r12], 0 js short loc_8B7A9 call _Z15common_log_mainv; common_log_main(void) mov rbx, rax lea rdi, [rsp+98h+var_70] mov rsi, rbp mov edx, 2 mov ecx, 20h ; ' ' xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) mov rcx, [rsp+98h+var_70] mov rdi, rbx mov esi, 2 lea rdx, aSkippingToolWi; "Skipping tool without function: %s" xor eax, eax call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...) mov rdi, [rsp+98h+var_70]; void * lea rax, [rsp+98h+var_60] cmp rdi, rax jz short loc_8B7A9 mov rsi, [rsp+98h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8B7A9: mov rax, [rsp+98h+var_50] movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_8B7C3 cmp eax, 1 jnz short loc_8B7CB add [rsp+98h+var_48], 30h ; '0' jmp short loc_8B7D0 loc_8B7C3: add [rsp+98h+var_40], 10h jmp short loc_8B7D0 loc_8B7CB: inc [rsp+98h+var_38] loc_8B7D0: mov rdi, r14 mov rsi, r13 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jz loc_8B6E3 loc_8B7E3: add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_8B7F2: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) mov rbx, rax mov rdi, [rsp+98h+var_70]; void * lea rax, [rsp+98h+var_60] cmp rdi, rax jz short loc_8B816 mov rsi, [rsp+98h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8B816: mov rdi, rbx call __Unwind_Resume
long long foreach_function( unsigned __int8 *a1, long long a2, double a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { int v10; // eax long long result; // rax long long v12; // rbp long long v13; // rax void *v14; // rbx long long v15; // r8 long long v16; // r9 __m128 v17; // xmm4 __m128 v18; // xmm5 int v19; // eax unsigned __int8 *v20; // [rsp+0h] [rbp-98h] BYREF __int128 v21; // [rsp+8h] [rbp-90h] long long v22; // [rsp+18h] [rbp-80h] long long v23; // [rsp+20h] [rbp-78h] void *v24; // [rsp+28h] [rbp-70h] BYREF long long v25; // [rsp+38h] [rbp-60h] BYREF unsigned __int8 *v26; // [rsp+48h] [rbp-50h] BYREF long long v27; // [rsp+50h] [rbp-48h] long long v28; // [rsp+58h] [rbp-40h] long long v29; // [rsp+60h] [rbp-38h] v23 = a2; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::cbegin( (long long)&v26, a1); v20 = a1; v21 = 0LL; v22 = 0x8000000000000000LL; v10 = *a1; if ( v10 == 2 ) { *((_QWORD *)&v21 + 1) = 0LL; } else if ( v10 == 1 ) { *(_QWORD *)&v21 = 0LL; } else { v22 = 0x8000000000000000LL; } if ( v10 == 2 ) { *((_QWORD *)&v21 + 1) = *(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL); } else if ( v10 == 1 ) { *(_QWORD *)&v21 = *(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL); } else { v22 = 1LL; } for ( result = ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v26, &v20); !(_BYTE)result; result = ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v26, &v20) ) { v12 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v26); if ( ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_( v12, (long long)"type") && (v13 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( v12, (long long)"type"), !(unsigned __int8)ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_( v13, (long long)"function")) && (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_( v12, "function") ) { if ( !*(_QWORD *)(v23 + 16) ) std::__throw_bad_function_call(); (*(void ( **)(long long, long long))(v23 + 24))(v23, v12); } else if ( common_log_verbosity_thold[0] >= 0 ) { v14 = common_log_main(); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( (long long)&v24, v12, 2, 32, 0, 0); common_log_add( (long long)v14, 2LL, (long long)"Skipping tool without function: %s", (long long)v24, v15, v16, (__m128)0LL, a4, a5, a6, v17, v18, a9, a10, (char)v20); if ( v24 != &v25 ) operator delete(v24, v25 + 1); } v19 = *v26; if ( v19 == 2 ) { v28 += 16LL; } else if ( v19 == 1 ) { v27 += 48LL; } else { ++v29; } } return result; }
foreach_function: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV qword ptr [RSP + 0x20],RSI MOV R14,RDI MOV RBX,-0x8000000000000000 LEA RDI,[RSP + 0x48] MOV RSI,R14 CALL 0x0015038e MOV qword ptr [RSP],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x8],XMM0 MOV qword ptr [RSP + 0x18],RBX MOVZX EAX,byte ptr [R14] CMP EAX,0x2 JZ 0x0018b677 CMP EAX,0x1 JNZ 0x0018b682 MOV qword ptr [RSP + 0x8],0x0 JMP 0x0018b687 LAB_0018b677: MOV qword ptr [RSP + 0x10],0x0 JMP 0x0018b687 LAB_0018b682: MOV qword ptr [RSP + 0x18],RBX LAB_0018b687: CMP EAX,0x2 JZ 0x0018b6a0 CMP EAX,0x1 JNZ 0x0018b6af MOV RAX,qword ptr [R14 + 0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RAX JMP 0x0018b6b8 LAB_0018b6a0: MOV RAX,qword ptr [R14 + 0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RAX JMP 0x0018b6b8 LAB_0018b6af: MOV qword ptr [RSP + 0x18],0x1 LAB_0018b6b8: LEA RDI,[RSP + 0x48] MOV RSI,RSP CALL 0x00150452 TEST AL,AL JNZ 0x0018b7e3 LEA R14,[RSP + 0x48] LEA R15,[0x1aca4e] LEA R12,[0x1e2000] MOV R13,RSP LAB_0018b6e3: MOV RDI,R14 CALL 0x00150092 MOV RBP,RAX MOV RDI,RAX MOV RSI,R15 CALL 0x0016a09a TEST AL,AL JZ 0x0018b746 MOV RDI,RBP MOV RSI,R15 CALL 0x0016b35a MOV RDI,RAX LEA RSI,[0x1aca62] CALL 0x0016adb5 TEST AL,AL JNZ 0x0018b746 MOV RDI,RBP LEA RSI,[0x1aca62] CALL 0x001985a0 TEST AL,AL JZ 0x0018b746 MOV RDI,qword ptr [RSP + 0x20] CMP qword ptr [RDI + 0x10],0x0 JZ 0x0018b7f2 MOV RSI,RBP CALL qword ptr [RDI + 0x18] JMP 0x0018b7a9 LAB_0018b746: CMP dword ptr [R12],0x0 JS 0x0018b7a9 CALL 0x001815bf MOV RBX,RAX LEA RDI,[RSP + 0x28] MOV RSI,RBP MOV EDX,0x2 MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x0012db30 MOV RCX,qword ptr [RSP + 0x28] LAB_0018b777: MOV RDI,RBX MOV ESI,0x2 LEA RDX,[0x1b4aa6] XOR EAX,EAX CALL 0x0018165a LAB_0018b78d: MOV RDI,qword ptr [RSP + 0x28] LEA RAX,[RSP + 0x38] CMP RDI,RAX JZ 0x0018b7a9 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_0018b7a9: MOV RAX,qword ptr [RSP + 0x48] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x0018b7c3 CMP EAX,0x1 JNZ 0x0018b7cb ADD qword ptr [RSP + 0x50],0x30 JMP 0x0018b7d0 LAB_0018b7c3: ADD qword ptr [RSP + 0x58],0x10 JMP 0x0018b7d0 LAB_0018b7cb: INC qword ptr [RSP + 0x60] LAB_0018b7d0: MOV RDI,R14 MOV RSI,R13 CALL 0x00150452 TEST AL,AL JZ 0x0018b6e3 LAB_0018b7e3: ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0018b7f2: CALL 0x00118250
/* foreach_function(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, std::function<void (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&)> const&) */ void foreach_function(basic_json *param_1,function *param_2) { char cVar1; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *pbVar2; int8 uVar3; basic_json *local_98; int8 local_90; int8 uStack_88; int8 local_80; function *local_78; long *local_70 [2]; long local_60 [2]; char *local_50; long local_48; long local_40; long local_38; local_78 = param_2; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::cbegin(); local_80 = 0x8000000000000000; uStack_88 = 0; local_90 = 0; if (*param_1 == (basic_json)0x2) { uStack_88 = *(int8 *)(*(long *)(param_1 + 8) + 8); } else if (*param_1 == (basic_json)0x1) { local_90 = *(int8 *)(*(long *)(param_1 + 8) + 8); } else { local_80 = 1; } local_98 = param_1; cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ (&local_50,&local_98); if (cVar1 == '\0') { do { 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> *)nlohmann::json_abi_v3_11_3::detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50); cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ (this,&DAT_001aca4e); if (cVar1 == '\0') { LAB_0018b746: if (-1 < common_log_verbosity_thold) { uVar3 = common_log_main(); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::dump(local_70,this,2,0x20,0,0); /* try { // try from 0018b777 to 0018b78c has its CatchHandler @ 0018b7f7 */ common_log_add(uVar3,2,"Skipping tool without function: %s",local_70[0]); if (local_70[0] != local_60) { operator_delete(local_70[0],local_60[0] + 1); } } } else { pbVar2 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(this,"type"); cVar1 = _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_ (pbVar2,"function"); if ((cVar1 != '\0') || (cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ (this,"function"), cVar1 == '\0')) goto LAB_0018b746; if (*(long *)(local_78 + 0x10) == 0) { /* WARNING: Subroutine does not return */ std::__throw_bad_function_call(); } (**(code **)(local_78 + 0x18))(local_78,this); } if (*local_50 == '\x02') { local_40 = local_40 + 0x10; } else if (*local_50 == '\x01') { local_48 = local_48 + 0x30; } else { local_38 = local_38 + 1; } cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_50,&local_98); } while (cVar1 == '\0'); } return; }
2,116
llama_vocab::byte_to_token(unsigned char) const
monkey531[P]llama/src/llama-vocab.cpp
void resegment(llm_symbol & symbol, std::vector<llama_token> & output) { auto text = std::string(symbol.text, symbol.n); auto token = vocab.text_to_token(text); // Do we need to support is_unused? if (token != LLAMA_TOKEN_NULL) { output.push_back(token); return; } const auto p = rev_merge.find(text); if (p == rev_merge.end()) { // output any symbols that did not form tokens as bytes. output.reserve(output.size() + symbol.n); for (int j = 0; j < (int)symbol.n; ++j) { llama_token id = vocab.byte_to_token(symbol.text[j]); output.push_back(id); } return; } resegment(symbols[p->second.first], output); resegment(symbols[p->second.second], output); }
O3
cpp
llama_vocab::byte_to_token(unsigned char) const: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x30, %rsp movq (%rdi), %r15 movl 0x4(%r15), %eax cmpq $0x4, %rax ja 0xe66fd movl %esi, %ebx leaq 0x33c25(%rip), %rcx # 0x11a1c4 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq %rdi, %r14 leaq 0x29(%rsp), %r12 movw $0x303c, (%r12) # imm = 0x303C movb $0x78, 0x2(%r12) movzbl %bl, %eax movl %eax, %ecx shrl $0x4, %ecx leaq 0x34907(%rip), %rdx # 0x11aed3 movb (%rcx,%rdx), %cl movb %cl, 0x3(%r12) andl $0xf, %eax movb (%rax,%rdx), %al movb %al, 0x4(%r12) movw $0x3e, 0x5(%r12) leaq 0x18(%rsp), %r13 movq %r13, -0x10(%r13) movq %r12, %rdi callq 0x659c0 leaq (%rsp,%rax), %rdx addq $0x29, %rdx leaq 0x8(%rsp), %rdi movq %r12, %rsi callq 0x65680 addq $0x58, %r15 leaq 0x8(%rsp), %rsi movq %r15, %rdi callq 0x67280 movq %rax, %r15 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0xe6638 movq 0x18(%rsp), %rsi incq %rsi callq 0x681a0 testq %r15, %r15 je 0xe6699 movl 0x28(%r15), %ebx jmp 0xe6689 addq $0x58, %r15 movzbl %bl, %esi leaq 0x8(%rsp), %rbx movq %rbx, %rdi callq 0x68f10 movq %r15, %rdi movq %rbx, %rsi callq 0x67280 testq %rax, %rax je 0xe66f1 movl 0x28(%rax), %ebx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xe6689 movq 0x18(%rsp), %rsi incq %rsi callq 0x681a0 movl %ebx, %eax addq $0x30, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq (%r14), %r14 leaq 0x6(%rsp), %r15 movb %bl, (%r15) movb $0x0, 0x1(%r15) leaq 0x8(%rsp), %rbx movq %r13, (%rbx) movq %r15, %rdi callq 0x659c0 leaq (%rsp,%rax), %rdx addq $0x6, %rdx movq %rbx, %rdi movq %r15, %rsi callq 0x65680 addq $0x58, %r14 leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x67280 testq %rax, %rax je 0xe6738 movl 0x28(%rax), %ebx movq 0x8(%rsp), %rdi cmpq %r13, %rdi jne 0xe667c jmp 0xe6689 leaq 0x31549(%rip), %rdi # 0x117c41 callq 0x69e40 leaq 0x33e88(%rip), %rdi # 0x11a58c leaq 0x2a664(%rip), %rdx # 0x110d6f movl $0xaf3, %esi # imm = 0xAF3 xorl %eax, %eax callq 0x6af70 leaq 0x33e6e(%rip), %rdi # 0x11a58c leaq 0x29c9f(%rip), %rdx # 0x1103c4 leaq 0x34318(%rip), %rcx # 0x11aa44 movl $0xae0, %esi # imm = 0xAE0 xorl %eax, %eax callq 0x6af70 leaq 0x31502(%rip), %rdi # 0x117c41 callq 0x69e40 jmp 0xe6757 jmp 0xe6748 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r13, %rdi jne 0xe676d jmp 0xe677a movq %rax, %rbx jmp 0xe677a movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xe677a movq 0x18(%rsp), %rsi incq %rsi callq 0x681a0 movq %rbx, %rdi callq 0x6b5d0
_ZNK11llama_vocab13byte_to_tokenEh: push r15 push r14 push r13 push r12 push rbx sub rsp, 30h mov r15, [rdi] mov eax, [r15+4] cmp rax, 4; switch 5 cases ja def_E65A6; jumptable 00000000000E65A6 default case mov ebx, esi lea rcx, jpt_E65A6 movsxd rax, ds:(jpt_E65A6 - 11A1C4h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_E65A8: mov r14, rdi; jumptable 00000000000E65A6 cases 1,4 lea r12, [rsp+58h+var_2F] mov word ptr [r12], 303Ch mov byte ptr [r12+2], 78h ; 'x' movzx eax, bl mov ecx, eax shr ecx, 4 lea rdx, a0123456789abcd; "0123456789ABCDEF" mov cl, [rcx+rdx] mov [r12+3], cl and eax, 0Fh mov al, [rax+rdx] mov [r12+4], al mov word ptr [r12+5], 3Eh ; '>' lea r13, [rsp+58h+var_40] mov [r13-10h], r13 mov rdi, r12 call _strlen lea rdx, [rsp+rax+58h+var_58] add rdx, 29h ; ')' lea rdi, [rsp+58h+var_50] mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) add r15, 58h ; 'X' lea rsi, [rsp+58h+var_50] mov rdi, r15 call __ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,int>,std::allocator<std::pair<std::string const,int>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) mov r15, rax mov rdi, [rsp+58h+var_50]; void * cmp rdi, r13 jz short loc_E6638 mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E6638: test r15, r15 jz short loc_E6699 mov ebx, [r15+28h] jmp short loc_E6689 loc_E6643: add r15, 58h ; 'X'; jumptable 00000000000E65A6 cases 2,3 movzx esi, bl lea rbx, [rsp+58h+var_50] mov rdi, rbx call __Z20unicode_byte_to_utf8B5cxx11h; unicode_byte_to_utf8(uchar) mov rdi, r15 mov rsi, rbx call __ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,int>,std::allocator<std::pair<std::string const,int>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) test rax, rax jz loc_E66F1 mov ebx, [rax+28h] lea rax, [rsp+58h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_E6689 loc_E667C: mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E6689: mov eax, ebx add rsp, 30h pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_E6699: mov r14, [r14] lea r15, [rsp+58h+var_52] mov [r15], bl mov byte ptr [r15+1], 0 lea rbx, [rsp+58h+var_50] mov [rbx], r13 mov rdi, r15 call _strlen lea rdx, [rsp+rax+58h+var_58] add rdx, 6 mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) add r14, 58h ; 'X' lea rsi, [rsp+58h+var_50] mov rdi, r14 call __ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,int>,std::allocator<std::pair<std::string const,int>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) test rax, rax jz short loc_E6738 mov ebx, [rax+28h] mov rdi, [rsp+58h+var_50] cmp rdi, r13 jnz short loc_E667C jmp short loc_E6689 loc_E66F1: lea rdi, aMapBaseAt; "_Map_base::at" call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*) def_E65A6: lea rdi, aWorkspaceLlm4b_13; jumptable 00000000000E65A6 default case lea rdx, aFatalError; "fatal error" mov esi, 0AF3h xor eax, eax call _ggml_abort loc_E6717: lea rdi, aWorkspaceLlm4b_13; jumptable 00000000000E65A6 case 0 lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGetTypeLlamaVo; "get_type() != LLAMA_VOCAB_TYPE_NONE" mov esi, 0AE0h xor eax, eax call _ggml_abort loc_E6738: lea rdi, aMapBaseAt; "_Map_base::at" call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*) jmp short loc_E6757 jmp short $+2 loc_E6748: mov rbx, rax mov rdi, [rsp+58h+var_50] cmp rdi, r13 jnz short loc_E676D jmp short loc_E677A loc_E6757: mov rbx, rax jmp short loc_E677A mov rbx, rax lea rax, [rsp+58h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_E677A loc_E676D: mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E677A: mov rdi, rbx call __Unwind_Resume
long long llama_vocab::byte_to_token(llama_vocab *this, unsigned __int8 a2) { long long v2; // r15 long long v3; // rax long long v4; // r15 unsigned int v5; // ebx long long v6; // rax void *v7; // rdi long long v9; // r14 long long v10; // rax long long v11; // rax _BYTE v12[2]; // [rsp+6h] [rbp-52h] BYREF void *v13[2]; // [rsp+8h] [rbp-50h] BYREF _QWORD v14[2]; // [rsp+18h] [rbp-40h] BYREF _BYTE v15[5]; // [rsp+29h] [rbp-2Fh] BYREF __int16 v16; // [rsp+2Eh] [rbp-2Ah] v2 = *(_QWORD *)this; switch ( *(_DWORD *)(*(_QWORD *)this + 4LL) ) { case 0: goto LABEL_15; case 1: case 4: qmemcpy(v15, "<0x", 3); v15[3] = a0123456789abcd[a2 >> 4]; v15[4] = a0123456789abcd[a2 & 0xF]; v16 = 62; v13[0] = v14; v3 = strlen(v15); std::string::_M_construct<char const*>(v13, v15, &v15[v3]); v4 = std::_Hashtable<std::string,std::pair<std::string const,int>,std::allocator<std::pair<std::string const,int>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find( v2 + 88, v13); if ( v13[0] != v14 ) operator delete(v13[0], v14[0] + 1LL); if ( v4 ) { return *(unsigned int *)(v4 + 40); } else { v9 = *(_QWORD *)this; v12[0] = a2; v12[1] = 0; v13[0] = v14; v10 = strlen(v12); std::string::_M_construct<char const*>(v13, v12, &v12[v10]); v11 = std::_Hashtable<std::string,std::pair<std::string const,int>,std::allocator<std::pair<std::string const,int>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find( v9 + 88, v13); if ( !v11 ) LABEL_16: std::__throw_out_of_range("_Map_base::at"); v5 = *(_DWORD *)(v11 + 40); v7 = v13[0]; if ( v13[0] != v14 ) LABEL_8: operator delete(v7, v14[0] + 1LL); } return v5; case 2: case 3: unicode_byte_to_utf8[abi:cxx11](v13, a2); v6 = std::_Hashtable<std::string,std::pair<std::string const,int>,std::allocator<std::pair<std::string const,int>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find( v2 + 88, v13); if ( !v6 ) std::__throw_out_of_range("_Map_base::at"); v5 = *(_DWORD *)(v6 + 40); v7 = v13[0]; if ( v13[0] != v14 ) goto LABEL_8; return v5; default: ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/src/llama-vocab.cpp", 2803LL, "fatal error"); LABEL_15: ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/src/llama-vocab.cpp", 2784LL, "GGML_ASSERT(%s) failed", "get_type() != LLAMA_VOCAB_TYPE_NONE"); goto LABEL_16; } }
byte_to_token: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x30 MOV R15,qword ptr [RDI] MOV EAX,dword ptr [R15 + 0x4] CMP RAX,0x4 JA 0x001e66fd MOV EBX,ESI LEA RCX,[0x21a1c4] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV R14,RDI LEA R12,[RSP + 0x29] MOV word ptr [R12],0x303c MOV byte ptr [R12 + 0x2],0x78 MOVZX EAX,BL MOV ECX,EAX SHR ECX,0x4 LEA RDX,[0x21aed3] MOV CL,byte ptr [RCX + RDX*0x1] MOV byte ptr [R12 + 0x3],CL AND EAX,0xf MOV AL,byte ptr [RAX + RDX*0x1] MOV byte ptr [R12 + 0x4],AL MOV word ptr [R12 + 0x5],0x3e LEA R13,[RSP + 0x18] MOV qword ptr [R13 + -0x10],R13 MOV RDI,R12 CALL 0x001659c0 LEA RDX,[RSP + RAX*0x1] ADD RDX,0x29 LAB_001e6600: LEA RDI,[RSP + 0x8] MOV RSI,R12 CALL 0x00165680 ADD R15,0x58 LAB_001e6611: LEA RSI,[RSP + 0x8] MOV RDI,R15 CALL 0x00167280 LAB_001e661e: MOV R15,RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x001e6638 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001681a0 LAB_001e6638: TEST R15,R15 JZ 0x001e6699 MOV EBX,dword ptr [R15 + 0x28] JMP 0x001e6689 caseD_2: ADD R15,0x58 MOVZX ESI,BL LEA RBX,[RSP + 0x8] MOV RDI,RBX CALL 0x00168f10 LAB_001e6657: MOV RDI,R15 MOV RSI,RBX CALL 0x00167280 TEST RAX,RAX JZ 0x001e66f1 MOV EBX,dword ptr [RAX + 0x28] LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001e6689 LAB_001e667c: MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001681a0 LAB_001e6689: MOV EAX,EBX ADD RSP,0x30 POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_001e6699: MOV R14,qword ptr [R14] LEA R15,[RSP + 0x6] MOV byte ptr [R15],BL MOV byte ptr [R15 + 0x1],0x0 LEA RBX,[RSP + 0x8] MOV qword ptr [RBX],R13 MOV RDI,R15 CALL 0x001659c0 LEA RDX,[RSP + RAX*0x1] ADD RDX,0x6 LAB_001e66c1: MOV RDI,RBX MOV RSI,R15 CALL 0x00165680 ADD R14,0x58 LAB_001e66d0: LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x00167280 TEST RAX,RAX JZ 0x001e6738 MOV EBX,dword ptr [RAX + 0x28] MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JNZ 0x001e667c JMP 0x001e6689 LAB_001e66f1: LEA RDI,[0x217c41] CALL 0x00169e40 default: LEA RDI,[0x21a58c] LEA RDX,[0x210d6f] MOV ESI,0xaf3 XOR EAX,EAX CALL 0x0016af70 caseD_0: LEA RDI,[0x21a58c] LEA RDX,[0x2103c4] LEA RCX,[0x21aa44] MOV ESI,0xae0 XOR EAX,EAX CALL 0x0016af70 LAB_001e6738: LEA RDI,[0x217c41] CALL 0x00169e40
/* llama_vocab::byte_to_token(unsigned char) const */ int4 __thiscall llama_vocab::byte_to_token(llama_vocab *this,uchar param_1) { size_t sVar1; long lVar2; int4 uVar3; uchar local_52 [2]; long *local_50 [2]; long local_40 [2]; char local_2f [4]; char local_2b; int2 local_2a; lVar2 = *(long *)this; switch(*(int4 *)(lVar2 + 4)) { case 0: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/src/llama-vocab.cpp",0xae0 ,"GGML_ASSERT(%s) failed","get_type() != LLAMA_VOCAB_TYPE_NONE"); case 1: case 4: local_2f[0] = '<'; local_2f[1] = '0'; local_2f[2] = 0x78; local_2f[3] = "0123456789ABCDEF"[param_1 >> 4]; local_2b = "0123456789ABCDEF"[param_1 & 0xf]; local_2a = 0x3e; local_50[0] = local_40; sVar1 = strlen(local_2f); /* try { // try from 001e6600 to 001e660c has its CatchHandler @ 001e6757 */ std::__cxx11::string::_M_construct<char_const*>(local_50,local_2f,local_2f + sVar1); /* try { // try from 001e6611 to 001e661d has its CatchHandler @ 001e6748 */ lVar2 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,int>,std::allocator<std::pair<std::__cxx11::string_const,int>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,int>,std::allocator<std::pair<std::__cxx11::string_const,int>>,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>> *)(lVar2 + 0x58),(string *)local_50); if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } if (lVar2 != 0) { return *(int4 *)(lVar2 + 0x28); } lVar2 = *(long *)this; local_52[1] = 0; local_52[0] = param_1; local_50[0] = local_40; sVar1 = strlen((char *)local_52); /* try { // try from 001e66c1 to 001e66cb has its CatchHandler @ 001e6744 */ std::__cxx11::string::_M_construct<char_const*>(local_50,local_52,local_52 + sVar1); /* try { // try from 001e66d0 to 001e66dc has its CatchHandler @ 001e6746 */ lVar2 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,int>,std::allocator<std::pair<std::__cxx11::string_const,int>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,int>,std::allocator<std::pair<std::__cxx11::string_const,int>>,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>> *)(lVar2 + 0x58),(string *)local_50); if (lVar2 == 0) { /* try { // try from 001e6738 to 001e6743 has its CatchHandler @ 001e6746 */ /* WARNING: Subroutine does not return */ std::__throw_out_of_range("_Map_base::at"); } uVar3 = *(int4 *)(lVar2 + 0x28); if (local_50[0] == local_40) { return uVar3; } break; case 2: case 3: unicode_byte_to_utf8_abi_cxx11_((uchar)(string *)local_50); /* try { // try from 001e6657 to 001e6661 has its CatchHandler @ 001e675c */ lVar2 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,int>,std::allocator<std::pair<std::__cxx11::string_const,int>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,int>,std::allocator<std::pair<std::__cxx11::string_const,int>>,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>> *)(lVar2 + 0x58),(string *)local_50); if (lVar2 == 0) { /* try { // try from 001e66f1 to 001e66fc has its CatchHandler @ 001e675c */ /* WARNING: Subroutine does not return */ std::__throw_out_of_range("_Map_base::at"); } uVar3 = *(int4 *)(lVar2 + 0x28); if (local_50[0] == local_40) { return uVar3; } break; default: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/src/llama-vocab.cpp",0xaf3 ,"fatal error"); } operator_delete(local_50[0],local_40[0] + 1); return uVar3; }
2,117
mthd_supported_buffer_type
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
my_bool mthd_supported_buffer_type(enum enum_field_types type) { switch (type) { case MYSQL_TYPE_BIT: case MYSQL_TYPE_BLOB: case MYSQL_TYPE_DATE: case MYSQL_TYPE_DATETIME: case MYSQL_TYPE_DECIMAL: case MYSQL_TYPE_DOUBLE: case MYSQL_TYPE_FLOAT: case MYSQL_TYPE_GEOMETRY: case MYSQL_TYPE_INT24: case MYSQL_TYPE_LONG: case MYSQL_TYPE_LONG_BLOB: case MYSQL_TYPE_LONGLONG: case MYSQL_TYPE_MEDIUM_BLOB: case MYSQL_TYPE_NEWDATE: case MYSQL_TYPE_NEWDECIMAL: case MYSQL_TYPE_NULL: case MYSQL_TYPE_SHORT: case MYSQL_TYPE_STRING: case MYSQL_TYPE_JSON: case MYSQL_TYPE_TIME: case MYSQL_TYPE_TIMESTAMP: case MYSQL_TYPE_TINY: case MYSQL_TYPE_TINY_BLOB: case MYSQL_TYPE_VAR_STRING: case MYSQL_TYPE_YEAR: return 1; break; default: return 0; break; } }
O0
c
mthd_supported_buffer_type: pushq %rbp movq %rsp, %rbp movl %edi, -0x8(%rbp) movl -0x8(%rbp), %eax movl %eax, -0xc(%rbp) subl $0xf, %eax jb 0x4948c jmp 0x49464 movl -0xc(%rbp), %eax subl $0x10, %eax je 0x4948c jmp 0x4946e movl -0xc(%rbp), %eax addl $0xffffff0b, %eax # imm = 0xFFFFFF0B subl $0x2, %eax jb 0x4948c jmp 0x4947d movl -0xc(%rbp), %eax addl $0xffffff07, %eax # imm = 0xFFFFFF07 subl $0x6, %eax ja 0x49492 jmp 0x4948c movb $0x1, -0x1(%rbp) jmp 0x49496 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al popq %rbp retq nopl (%rax,%rax)
mthd_supported_buffer_type: push rbp mov rbp, rsp mov [rbp+var_8], edi mov eax, [rbp+var_8] mov [rbp+var_C], eax sub eax, 0Fh jb short loc_4948C jmp short $+2 loc_49464: mov eax, [rbp+var_C] sub eax, 10h jz short loc_4948C jmp short $+2 loc_4946E: mov eax, [rbp+var_C] add eax, 0FFFFFF0Bh sub eax, 2 jb short loc_4948C jmp short $+2 loc_4947D: mov eax, [rbp+var_C] add eax, 0FFFFFF07h sub eax, 6 ja short loc_49492 jmp short $+2 loc_4948C: mov [rbp+var_1], 1 jmp short loc_49496 loc_49492: mov [rbp+var_1], 0 loc_49496: mov al, [rbp+var_1] pop rbp retn
bool mthd_supported_buffer_type(unsigned int a1) { return a1 < 0xF || a1 == 16 || a1 - 245 < 2 || a1 - 249 <= 6; }
mthd_supported_buffer_type: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x8],EDI MOV EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0xc],EAX SUB EAX,0xf JC 0x0014948c JMP 0x00149464 LAB_00149464: MOV EAX,dword ptr [RBP + -0xc] SUB EAX,0x10 JZ 0x0014948c JMP 0x0014946e LAB_0014946e: MOV EAX,dword ptr [RBP + -0xc] ADD EAX,0xffffff0b SUB EAX,0x2 JC 0x0014948c JMP 0x0014947d LAB_0014947d: MOV EAX,dword ptr [RBP + -0xc] ADD EAX,0xffffff07 SUB EAX,0x6 JA 0x00149492 JMP 0x0014948c LAB_0014948c: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00149496 LAB_00149492: MOV byte ptr [RBP + -0x1],0x0 LAB_00149496: MOV AL,byte ptr [RBP + -0x1] POP RBP RET
int8 mthd_supported_buffer_type(uint param_1) { ulong uVar1; int1 local_9; uVar1 = (ulong)(param_1 - 0xf); if ((((param_1 < 0xf) || (uVar1 = (ulong)(param_1 - 0x10), param_1 - 0x10 == 0)) || (uVar1 = (ulong)(param_1 - 0xf7), param_1 - 0xf5 < 2)) || (uVar1 = (ulong)(param_1 - 0xff), param_1 - 0xf9 < 6 || param_1 - 0xff == 0)) { local_9 = 1; } else { local_9 = 0; } return CONCAT71((int7)(uVar1 >> 8),local_9); }
2,118
ma_crypt_write
eloqsql/storage/maria/ma_crypt.c
int ma_crypt_write(MARIA_SHARE* share, File file) { MARIA_CRYPT_DATA *crypt_data= share->crypt_data; uchar buff[2 + 4 + sizeof(crypt_data->scheme.iv)]; if (crypt_data == 0) return 0; buff[0]= crypt_data->scheme.type; buff[1]= sizeof(buff) - 2; int4store(buff + 2, crypt_data->space); memcpy(buff + 6, crypt_data->scheme.iv, sizeof(crypt_data->scheme.iv)); if (mysql_file_write(file, buff, sizeof(buff), MYF(MY_NABP))) return 1; return 0; }
O0
c
ma_crypt_write: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x30(%rbp) movl %esi, -0x34(%rbp) movq -0x30(%rbp), %rax movq 0xc20(%rax), %rax movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) jne 0x5e5bb movl $0x0, -0x24(%rbp) jmp 0x5e62f movq -0x40(%rbp), %rax movl 0x54(%rax), %eax movb %al, -0x20(%rbp) movb $0x14, -0x1f(%rbp) leaq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x48(%rbp) movq -0x40(%rbp), %rax movl 0x60(%rax), %ecx movq -0x48(%rbp), %rax movl %ecx, (%rax) movq -0x40(%rbp), %rax movq (%rax), %rcx movq %rcx, -0x1a(%rbp) movq 0x8(%rax), %rax movq %rax, -0x12(%rbp) movl -0x34(%rbp), %edx leaq -0x20(%rbp), %rcx leaq 0xf41ed(%rip), %rdi # 0x1527f0 movl $0x8d, %esi movl $0x16, %r8d movl $0x4, %r9d callq 0x5e660 cmpq $0x0, %rax je 0x5e628 movl $0x1, -0x24(%rbp) jmp 0x5e62f movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x4c(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x5e650 movl -0x4c(%rbp), %eax addq $0x50, %rsp popq %rbp retq callq 0x2a270 nopw %cs:(%rax,%rax)
ma_crypt_write: push rbp mov rbp, rsp sub rsp, 50h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_30], rdi mov [rbp+var_34], esi mov rax, [rbp+var_30] mov rax, [rax+0C20h] mov [rbp+var_40], rax cmp [rbp+var_40], 0 jnz short loc_5E5BB mov [rbp+var_24], 0 jmp short loc_5E62F loc_5E5BB: mov rax, [rbp+var_40] mov eax, [rax+54h] mov [rbp+var_20], al mov [rbp+var_1F], 14h lea rax, [rbp+var_20] add rax, 2 mov [rbp+var_48], rax mov rax, [rbp+var_40] mov ecx, [rax+60h] mov rax, [rbp+var_48] mov [rax], ecx mov rax, [rbp+var_40] mov rcx, [rax] mov [rbp+var_1A], rcx mov rax, [rax+8] mov [rbp+var_12], rax mov edx, [rbp+var_34] lea rcx, [rbp+var_20] lea rdi, aWorkspaceLlm4b_13; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 8Dh mov r8d, 16h mov r9d, 4 call inline_mysql_file_write cmp rax, 0 jz short loc_5E628 mov [rbp+var_24], 1 jmp short loc_5E62F loc_5E628: mov [rbp+var_24], 0 loc_5E62F: mov eax, [rbp+var_24] mov [rbp+var_4C], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_5E650 mov eax, [rbp+var_4C] add rsp, 50h pop rbp retn loc_5E650: call ___stack_chk_fail
_BOOL8 ma_crypt_write(long long a1, unsigned int a2) { long long *v3; // [rsp+10h] [rbp-40h] _BYTE v5[2]; // [rsp+30h] [rbp-20h] BYREF int v6; // [rsp+32h] [rbp-1Eh] long long v7; // [rsp+36h] [rbp-1Ah] long long v8; // [rsp+3Eh] [rbp-12h] unsigned long long v9; // [rsp+48h] [rbp-8h] v9 = __readfsqword(0x28u); v3 = *(long long **)(a1 + 3104); if ( v3 ) { v5[0] = *((_DWORD *)v3 + 21); v5[1] = 20; v6 = *((_DWORD *)v3 + 24); v7 = *v3; v8 = v3[1]; return inline_mysql_file_write( "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_crypt.c", 141LL, a2, v5, 22LL, 4LL) != 0; } else { return 0; } }
ma_crypt_write: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x30],RDI MOV dword ptr [RBP + -0x34],ESI MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0xc20] MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 JNZ 0x0015e5bb MOV dword ptr [RBP + -0x24],0x0 JMP 0x0015e62f LAB_0015e5bb: MOV RAX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RAX + 0x54] MOV byte ptr [RBP + -0x20],AL MOV byte ptr [RBP + -0x1f],0x14 LEA RAX,[RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RAX + 0x60] MOV RAX,qword ptr [RBP + -0x48] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RAX] MOV qword ptr [RBP + -0x1a],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x12],RAX MOV EDX,dword ptr [RBP + -0x34] LEA RCX,[RBP + -0x20] LEA RDI,[0x2527f0] MOV ESI,0x8d MOV R8D,0x16 MOV R9D,0x4 CALL 0x0015e660 CMP RAX,0x0 JZ 0x0015e628 MOV dword ptr [RBP + -0x24],0x1 JMP 0x0015e62f LAB_0015e628: MOV dword ptr [RBP + -0x24],0x0 LAB_0015e62f: MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4c],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0015e650 MOV EAX,dword ptr [RBP + -0x4c] ADD RSP,0x50 POP RBP RET LAB_0015e650: CALL 0x0012a270
int4 ma_crypt_write(long param_1,int4 param_2) { int8 *puVar1; long lVar2; long in_FS_OFFSET; int4 local_2c; int1 local_28; int1 local_27; int4 local_26; int8 local_22; int8 local_1a; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); puVar1 = *(int8 **)(param_1 + 0xc20); if (puVar1 == (int8 *)0x0) { local_2c = 0; } else { local_28 = (int1)*(int4 *)((long)puVar1 + 0x54); local_27 = 0x14; local_26 = *(int4 *)(puVar1 + 0xc); local_22 = *puVar1; local_1a = puVar1[1]; lVar2 = inline_mysql_file_write ("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_crypt.c",0x8d, param_2,&local_28,0x16,4); if (lVar2 == 0) { local_2c = 0; } else { local_2c = 1; } } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_2c; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
2,119
ggml_get_tensor
llama.cpp/ggml/src/ggml.c
struct ggml_tensor * ggml_get_tensor(struct ggml_context * ctx, const char * name) { struct ggml_object * obj = ctx->objects_begin; char * const mem_buffer = ctx->mem_buffer; while (obj != NULL) { if (obj->type == GGML_OBJECT_TYPE_TENSOR) { struct ggml_tensor * cur = (struct ggml_tensor *)(mem_buffer + obj->offs); if (strcmp(cur->name, name) == 0) { return cur; } } obj = obj->next; } return NULL; }
O3
c
ggml_get_tensor: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq 0x18(%rdi), %r15 testq %r15, %r15 je 0x1a221 movq %rsi, %r14 movq 0x8(%rdi), %rbx cmpl $0x0, 0x18(%r15) jne 0x1a218 movq (%r15), %r12 leaq (%rbx,%r12), %rdi addq $0x100, %rdi # imm = 0x100 movq %r14, %rsi callq 0x177b0 testl %eax, %eax je 0x1a232 movq 0x10(%r15), %r15 testq %r15, %r15 jne 0x1a1f7 xorl %ebx, %ebx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq addq %r12, %rbx jmp 0x1a223
ggml_get_tensor: push r15 push r14 push r12 push rbx push rax mov r15, [rdi+18h] test r15, r15 jz short loc_1A221 mov r14, rsi mov rbx, [rdi+8] loc_1A1F7: cmp dword ptr [r15+18h], 0 jnz short loc_1A218 mov r12, [r15] lea rdi, [rbx+r12] add rdi, 100h mov rsi, r14 call _strcmp test eax, eax jz short loc_1A232 loc_1A218: mov r15, [r15+10h] test r15, r15 jnz short loc_1A1F7 loc_1A221: xor ebx, ebx loc_1A223: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn loc_1A232: add rbx, r12 jmp short loc_1A223
long long ggml_get_tensor(long long a1, long long a2) { long long *v2; // r15 long long v3; // rbx long long v4; // r12 v2 = *(long long **)(a1 + 24); if ( !v2 ) return 0LL; v3 = *(_QWORD *)(a1 + 8); while ( 1 ) { if ( !*((_DWORD *)v2 + 6) ) { v4 = *v2; if ( !(unsigned int)strcmp(v3 + *v2 + 256, a2) ) break; } v2 = (long long *)v2[2]; if ( !v2 ) return 0LL; } return v4 + v3; }
ggml_get_tensor: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R15,qword ptr [RDI + 0x18] TEST R15,R15 JZ 0x0011a221 MOV R14,RSI MOV RBX,qword ptr [RDI + 0x8] LAB_0011a1f7: CMP dword ptr [R15 + 0x18],0x0 JNZ 0x0011a218 MOV R12,qword ptr [R15] LEA RDI,[RBX + R12*0x1] ADD RDI,0x100 MOV RSI,R14 CALL 0x001177b0 TEST EAX,EAX JZ 0x0011a232 LAB_0011a218: MOV R15,qword ptr [R15 + 0x10] TEST R15,R15 JNZ 0x0011a1f7 LAB_0011a221: XOR EBX,EBX LAB_0011a223: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET LAB_0011a232: ADD RBX,R12 JMP 0x0011a223
long ggml_get_tensor(long param_1,char *param_2) { long lVar1; long lVar2; int iVar3; long *plVar4; plVar4 = *(long **)(param_1 + 0x18); if (plVar4 != (long *)0x0) { lVar1 = *(long *)(param_1 + 8); do { if ((int)plVar4[3] == 0) { lVar2 = *plVar4; iVar3 = strcmp((char *)(lVar1 + lVar2 + 0x100),param_2); if (iVar3 == 0) { return lVar1 + lVar2; } } plVar4 = (long *)plVar4[2]; } while (plVar4 != (long *)0x0); } return 0; }
2,120
ggml_reshape_4d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_reshape_4d( struct ggml_context * ctx, struct ggml_tensor * a, int64_t ne0, int64_t ne1, int64_t ne2, int64_t ne3) { GGML_ASSERT(ggml_is_contiguous(a)); GGML_ASSERT(ggml_nelements(a) == ne0*ne1*ne2*ne3); const int64_t ne[4] = { ne0, ne1, ne2, ne3 }; struct ggml_tensor * result = ggml_new_tensor_impl(ctx, a->type, 4, ne, a, 0); ggml_format_name(result, "%s (reshaped)", a->name); result->op = GGML_OP_RESHAPE; result->src[0] = a; return result; }
O0
c
ggml_reshape_4d: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x10(%rbp), %rdi callq 0x42ff0 testb $0x1, %al jne 0x4fc5e leaq 0x61973(%rip), %rdi # 0xb15b7 movl $0xc10, %esi # imm = 0xC10 leaq 0x619b9(%rip), %rdx # 0xb1609 leaq 0x61d71(%rip), %rcx # 0xb19c8 movb $0x0, %al callq 0x48a00 movq -0x10(%rbp), %rdi callq 0x45f50 movq -0x18(%rbp), %rcx imulq -0x20(%rbp), %rcx imulq -0x28(%rbp), %rcx imulq -0x30(%rbp), %rcx cmpq %rcx, %rax je 0x4fca0 leaq 0x61931(%rip), %rdi # 0xb15b7 movl $0xc11, %esi # imm = 0xC11 leaq 0x61977(%rip), %rdx # 0xb1609 leaq 0x61dd1(%rip), %rcx # 0xb1a6a movb $0x0, %al callq 0x48a00 movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movl (%rax), %esi leaq -0x50(%rbp), %rcx movq -0x10(%rbp), %r8 movl $0x4, %edx xorl %eax, %eax movl %eax, %r9d callq 0x4bff0 movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rdi movq -0x10(%rbp), %rdx addq $0x100, %rdx # imm = 0x100 leaq 0x61d0a(%rip), %rsi # 0xb1a05 movb $0x0, %al callq 0x481b0 movq -0x58(%rbp), %rax movl $0x21, 0x50(%rax) movq -0x10(%rbp), %rcx movq -0x58(%rbp), %rax movq %rcx, 0x98(%rax) movq -0x58(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ggml_reshape_4d: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rdi, [rbp+var_10] call _ggml_is_contiguous test al, 1 jnz short loc_4FC5E lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 0C10h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsContiguo_3; "ggml_is_contiguous(a)" mov al, 0 call _ggml_abort loc_4FC5E: mov rdi, [rbp+var_10] call _ggml_nelements mov rcx, [rbp+var_18] imul rcx, [rbp+var_20] imul rcx, [rbp+var_28] imul rcx, [rbp+var_30] cmp rax, rcx jz short loc_4FCA0 lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 0C11h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlNelementsA_5; "ggml_nelements(a) == ne0*ne1*ne2*ne3" mov al, 0 call _ggml_abort loc_4FCA0: mov rax, [rbp+var_18] mov [rbp+var_50], rax mov rax, [rbp+var_20] mov [rbp+var_48], rax mov rax, [rbp+var_28] mov [rbp+var_40], rax mov rax, [rbp+var_30] mov [rbp+var_38], rax mov rdi, [rbp+var_8] mov rax, [rbp+var_10] mov esi, [rax] lea rcx, [rbp+var_50] mov r8, [rbp+var_10] mov edx, 4 xor eax, eax mov r9d, eax call ggml_new_tensor_impl mov [rbp+var_58], rax mov rdi, [rbp+var_58] mov rdx, [rbp+var_10] add rdx, 100h lea rsi, aSReshaped; "%s (reshaped)" mov al, 0 call _ggml_format_name mov rax, [rbp+var_58] mov dword ptr [rax+50h], 21h ; '!' mov rcx, [rbp+var_10] mov rax, [rbp+var_58] mov [rax+98h], rcx mov rax, [rbp+var_58] add rsp, 60h pop rbp retn
_QWORD * ggml_reshape_4d( long long a1, unsigned int *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14) { long long v14; // rcx long long v15; // r8 long long v16; // r9 __m128 v17; // xmm4 __m128 v18; // xmm5 char v20; // [rsp+0h] [rbp-60h] _QWORD *v21; // [rsp+8h] [rbp-58h] long long v22[4]; // [rsp+10h] [rbp-50h] BYREF long long v23; // [rsp+30h] [rbp-30h] long long v24; // [rsp+38h] [rbp-28h] long long v25; // [rsp+40h] [rbp-20h] long long v26; // [rsp+48h] [rbp-18h] unsigned int *v27; // [rsp+50h] [rbp-10h] long long v28; // [rsp+58h] [rbp-8h] v28 = a1; v27 = a2; v26 = a3; v25 = a4; v24 = a5; v23 = a6; if ( (ggml_is_contiguous((long long)a2) & 1) == 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 3088, (long long)"GGML_ASSERT(%s) failed", "ggml_is_contiguous(a)"); if ( ggml_nelements(v27) != v23 * v24 * v25 * v26 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 3089, (long long)"GGML_ASSERT(%s) failed", "ggml_nelements(a) == ne0*ne1*ne2*ne3"); v22[0] = v26; v22[1] = v25; v22[2] = v24; v22[3] = v23; v21 = ggml_new_tensor_impl(v28, *v27, 4, v22, v27, 0LL, *(double *)a7.m128_u64); ggml_format_name( (long long)v21, (long long)"%s (reshaped)", (long long)(v27 + 64), v14, v15, v16, a7, a8, a9, a10, v17, v18, a13, a14, v20); *((_DWORD *)v21 + 20) = 33; v21[19] = v27; return v21; }
ggml_reshape_4d: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00142ff0 TEST AL,0x1 JNZ 0x0014fc5e LEA RDI,[0x1b15b7] MOV ESI,0xc10 LEA RDX,[0x1b1609] LEA RCX,[0x1b19c8] MOV AL,0x0 CALL 0x00148a00 LAB_0014fc5e: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00145f50 MOV RCX,qword ptr [RBP + -0x18] IMUL RCX,qword ptr [RBP + -0x20] IMUL RCX,qword ptr [RBP + -0x28] IMUL RCX,qword ptr [RBP + -0x30] CMP RAX,RCX JZ 0x0014fca0 LEA RDI,[0x1b15b7] MOV ESI,0xc11 LEA RDX,[0x1b1609] LEA RCX,[0x1b1a6a] MOV AL,0x0 CALL 0x00148a00 LAB_0014fca0: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX] LEA RCX,[RBP + -0x50] MOV R8,qword ptr [RBP + -0x10] MOV EDX,0x4 XOR EAX,EAX MOV R9D,EAX CALL 0x0014bff0 MOV qword ptr [RBP + -0x58],RAX MOV RDI,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,0x100 LEA RSI,[0x1b1a05] MOV AL,0x0 CALL 0x001481b0 MOV RAX,qword ptr [RBP + -0x58] MOV dword ptr [RAX + 0x50],0x21 MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + 0x98],RCX MOV RAX,qword ptr [RBP + -0x58] ADD RSP,0x60 POP RBP RET
long ggml_reshape_4d(int8 param_1,int4 *param_2,long param_3,long param_4,long param_5, long param_6) { ulong uVar1; long lVar2; long local_58; long local_50; long local_48; long local_40; long local_38; long local_30; long local_28; long local_20; int4 *local_18; int8 local_10; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; uVar1 = ggml_is_contiguous(param_2); if ((uVar1 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0xc10,"GGML_ASSERT(%s) failed","ggml_is_contiguous(a)"); } lVar2 = ggml_nelements(local_18); if (lVar2 != local_20 * local_28 * local_30 * local_38) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0xc11,"GGML_ASSERT(%s) failed","ggml_nelements(a) == ne0*ne1*ne2*ne3"); } local_58 = local_20; local_50 = local_28; local_48 = local_30; local_40 = local_38; lVar2 = ggml_new_tensor_impl(local_10,*local_18,4,&local_58,local_18,0); ggml_format_name(lVar2,"%s (reshaped)",local_18 + 0x40); *(int4 *)(lVar2 + 0x50) = 0x21; *(int4 **)(lVar2 + 0x98) = local_18; return lVar2; }
2,121
ggml_reshape_4d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_reshape_4d( struct ggml_context * ctx, struct ggml_tensor * a, int64_t ne0, int64_t ne1, int64_t ne2, int64_t ne3) { GGML_ASSERT(ggml_is_contiguous(a)); GGML_ASSERT(ggml_nelements(a) == ne0*ne1*ne2*ne3); const int64_t ne[4] = { ne0, ne1, ne2, ne3 }; struct ggml_tensor * result = ggml_new_tensor_impl(ctx, a->type, 4, ne, a, 0); ggml_format_name(result, "%s (reshaped)", a->name); result->op = GGML_OP_RESHAPE; result->src[0] = a; return result; }
O2
c
ggml_reshape_4d: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %r9, %r15 movq %r8, %r12 movq %rcx, %r13 movq %rdx, %rbp movq %rsi, %rbx movq %rdi, %r14 movq %rsi, %rdi callq 0x1fb90 testb %al, %al je 0x22fbc movq 0x18(%rbx), %rax imulq 0x10(%rbx), %rax imulq 0x20(%rbx), %rax imulq 0x28(%rbx), %rax movq %r13, %rcx imulq %rbp, %rcx movq %r12, %rdx imulq %r15, %rdx imulq %rcx, %rdx cmpq %rdx, %rax jne 0x22fd8 movq %rsp, %rcx movq %rbp, (%rcx) movq %r13, 0x8(%rcx) movq %r12, 0x10(%rcx) movq %r15, 0x18(%rcx) movl (%rbx), %esi pushq $0x4 popq %rdx movq %r14, %rdi movq %rbx, %r8 xorl %r9d, %r9d callq 0x2122f movq %rax, %r14 leaq 0x100(%rbx), %rdx leaq 0x2ba40(%rip), %rsi # 0x4e9d1 movq %rax, %rdi xorl %eax, %eax callq 0x1f650 movl $0x21, 0x50(%r14) movq %rbx, 0x98(%r14) movq %r14, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2b5c0(%rip), %rdi # 0x4e583 leaq 0x2b60b(%rip), %rdx # 0x4e5d5 leaq 0x2b9c3(%rip), %rcx # 0x4e994 movl $0xc10, %esi # imm = 0xC10 jmp 0x22ff2 leaq 0x2b5a4(%rip), %rdi # 0x4e583 leaq 0x2b5ef(%rip), %rdx # 0x4e5d5 leaq 0x2ba49(%rip), %rcx # 0x4ea36 movl $0xc11, %esi # imm = 0xC11 xorl %eax, %eax callq 0x1f9b0
ggml_reshape_4d: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r15, r9 mov r12, r8 mov r13, rcx mov rbp, rdx mov rbx, rsi mov r14, rdi mov rdi, rsi call _ggml_is_contiguous_0 test al, al jz loc_22FBC mov rax, [rbx+18h] imul rax, [rbx+10h] imul rax, [rbx+20h] imul rax, [rbx+28h] mov rcx, r13 imul rcx, rbp mov rdx, r12 imul rdx, r15 imul rdx, rcx cmp rax, rdx jnz short loc_22FD8 mov rcx, rsp mov [rcx], rbp mov [rcx+8], r13 mov [rcx+10h], r12 mov [rcx+18h], r15 mov esi, [rbx] push 4 pop rdx mov rdi, r14 mov r8, rbx xor r9d, r9d call ggml_new_tensor_impl mov r14, rax lea rdx, [rbx+100h] lea rsi, aSReshaped; "%s (reshaped)" mov rdi, rax xor eax, eax call _ggml_format_name mov dword ptr [r14+50h], 21h ; '!' mov [r14+98h], rbx mov rax, r14 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_22FBC: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsContiguo_3; "ggml_is_contiguous(a)" mov esi, 0C10h jmp short loc_22FF2 loc_22FD8: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlNelementsA_5; "ggml_nelements(a) == ne0*ne1*ne2*ne3" mov esi, 0C11h loc_22FF2: xor eax, eax call _ggml_abort
long long ggml_reshape_4d( 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, double a11, double a12, __m128 a13, __m128 a14) { long long v18; // r8 long long v19; // r9 __m128 v20; // xmm4 __m128 v21; // xmm5 long long v22; // r14 const char *v24; // rcx int v25; // esi long long v26[11]; // [rsp+0h] [rbp-58h] BYREF if ( !(unsigned __int8)ggml_is_contiguous_0(a2) ) { v24 = "ggml_is_contiguous(a)"; v25 = 3088; goto LABEL_6; } if ( *(_QWORD *)(a2 + 40) * *(_QWORD *)(a2 + 32) * *(_QWORD *)(a2 + 16) * *(_QWORD *)(a2 + 24) != a3 * a4 * a6 * a5 ) { v24 = "ggml_nelements(a) == ne0*ne1*ne2*ne3"; v25 = 3089; LABEL_6: ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", v25, (long long)"GGML_ASSERT(%s) failed", (long long)v24, v18, v19, a7, a8, a9, a10, v20, v21, a13, a14, v26[0]); } v26[0] = a3; v26[1] = a4; v26[2] = a5; v26[3] = a6; v22 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, v26, a2, 0LL, a7, a8, a9, a10, v20, v21, a13, a14); ggml_format_name(v22, (long long)"%s (reshaped)"); *(_DWORD *)(v22 + 80) = 33; *(_QWORD *)(v22 + 152) = a2; return v22; }
ggml_reshape_4d: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R15,R9 MOV R12,R8 MOV R13,RCX MOV RBP,RDX MOV RBX,RSI MOV R14,RDI MOV RDI,RSI CALL 0x0011fb90 TEST AL,AL JZ 0x00122fbc MOV RAX,qword ptr [RBX + 0x18] IMUL RAX,qword ptr [RBX + 0x10] IMUL RAX,qword ptr [RBX + 0x20] IMUL RAX,qword ptr [RBX + 0x28] MOV RCX,R13 IMUL RCX,RBP MOV RDX,R12 IMUL RDX,R15 IMUL RDX,RCX CMP RAX,RDX JNZ 0x00122fd8 MOV RCX,RSP MOV qword ptr [RCX],RBP MOV qword ptr [RCX + 0x8],R13 MOV qword ptr [RCX + 0x10],R12 MOV qword ptr [RCX + 0x18],R15 MOV ESI,dword ptr [RBX] PUSH 0x4 POP RDX MOV RDI,R14 MOV R8,RBX XOR R9D,R9D CALL 0x0012122f MOV R14,RAX LEA RDX,[RBX + 0x100] LEA RSI,[0x14e9d1] MOV RDI,RAX XOR EAX,EAX CALL 0x0011f650 MOV dword ptr [R14 + 0x50],0x21 MOV qword ptr [R14 + 0x98],RBX MOV RAX,R14 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00122fbc: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x14e994] MOV ESI,0xc10 JMP 0x00122ff2 LAB_00122fd8: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x14ea36] MOV ESI,0xc11 LAB_00122ff2: XOR EAX,EAX CALL 0x0011f9b0
long ggml_reshape_4d(int8 param_1,int4 *param_2,long param_3,long param_4,long param_5, long param_6) { char cVar1; long lVar2; char *pcVar3; int8 uVar4; long local_58; long local_50; long local_48; long local_40; cVar1 = ggml_is_contiguous_0(param_2); if (cVar1 == '\0') { pcVar3 = "ggml_is_contiguous(a)"; uVar4 = 0xc10; } else { if (*(long *)(param_2 + 6) * *(long *)(param_2 + 4) * *(long *)(param_2 + 8) * *(long *)(param_2 + 10) - param_5 * param_6 * param_4 * param_3 == 0) { local_58 = param_3; local_50 = param_4; local_48 = param_5; local_40 = param_6; lVar2 = ggml_new_tensor_impl(param_1,*param_2,4,&local_58,param_2,0); ggml_format_name(lVar2,"%s (reshaped)",param_2 + 0x40); *(int4 *)(lVar2 + 0x50) = 0x21; *(int4 **)(lVar2 + 0x98) = param_2; return lVar2; } pcVar3 = "ggml_nelements(a) == ne0*ne1*ne2*ne3"; uVar4 = 0xc11; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", uVar4,"GGML_ASSERT(%s) failed",pcVar3); }
2,122
ggml_reshape_4d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_reshape_4d( struct ggml_context * ctx, struct ggml_tensor * a, int64_t ne0, int64_t ne1, int64_t ne2, int64_t ne3) { GGML_ASSERT(ggml_is_contiguous(a)); GGML_ASSERT(ggml_nelements(a) == ne0*ne1*ne2*ne3); const int64_t ne[4] = { ne0, ne1, ne2, ne3 }; struct ggml_tensor * result = ggml_new_tensor_impl(ctx, a->type, 4, ne, a, 0); ggml_format_name(result, "%s (reshaped)", a->name); result->op = GGML_OP_RESHAPE; result->src[0] = a; return result; }
O3
c
ggml_reshape_4d: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %r9, %r15 movq %r8, %r12 movq %rcx, %r13 movq %rdx, %rbp movq %rsi, %rbx movq %rdi, %r14 movq %rsi, %rdi xorl %esi, %esi callq 0x1a0b9 testb %al, %al je 0x1c77b movq 0x18(%rbx), %rax imulq 0x10(%rbx), %rax imulq 0x20(%rbx), %rax imulq 0x28(%rbx), %rax movq %r13, %rcx imulq %rbp, %rcx movq %r12, %rdx imulq %r15, %rdx imulq %rcx, %rdx cmpq %rdx, %rax jne 0x1c797 movq %rsp, %rcx movq %rbp, (%rcx) movq %r13, 0x8(%rcx) movq %r12, 0x10(%rcx) movq %r15, 0x18(%rcx) movl (%rbx), %esi movq %r14, %rdi movl $0x4, %edx movq %rbx, %r8 xorl %r9d, %r9d callq 0x1a57f movq %rax, %r14 leaq 0x100(%rbx), %rdx leaq 0x30311(%rip), %rsi # 0x4ca61 movq %rax, %rdi xorl %eax, %eax callq 0x17a60 movl $0x21, 0x50(%r14) movq %rbx, 0x98(%r14) movq %r14, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2fe91(%rip), %rdi # 0x4c613 leaq 0x2fedc(%rip), %rdx # 0x4c665 leaq 0x30294(%rip), %rcx # 0x4ca24 movl $0xc10, %esi # imm = 0xC10 jmp 0x1c7b1 leaq 0x2fe75(%rip), %rdi # 0x4c613 leaq 0x2fec0(%rip), %rdx # 0x4c665 leaq 0x3031a(%rip), %rcx # 0x4cac6 movl $0xc11, %esi # imm = 0xC11 xorl %eax, %eax callq 0x17cd0
ggml_reshape_4d: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r15, r9 mov r12, r8 mov r13, rcx mov rbp, rdx mov rbx, rsi mov r14, rdi mov rdi, rsi xor esi, esi call ggml_is_contiguous_n test al, al jz loc_1C77B mov rax, [rbx+18h] imul rax, [rbx+10h] imul rax, [rbx+20h] imul rax, [rbx+28h] mov rcx, r13 imul rcx, rbp mov rdx, r12 imul rdx, r15 imul rdx, rcx cmp rax, rdx jnz short loc_1C797 mov rcx, rsp mov [rcx], rbp mov [rcx+8], r13 mov [rcx+10h], r12 mov [rcx+18h], r15 mov esi, [rbx] mov rdi, r14 mov edx, 4 mov r8, rbx xor r9d, r9d call ggml_new_tensor_impl mov r14, rax lea rdx, [rbx+100h] lea rsi, aSReshaped; "%s (reshaped)" mov rdi, rax xor eax, eax call _ggml_format_name mov dword ptr [r14+50h], 21h ; '!' mov [r14+98h], rbx mov rax, r14 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1C77B: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsContiguo_3; "ggml_is_contiguous(a)" mov esi, 0C10h jmp short loc_1C7B1 loc_1C797: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlNelementsA_5; "ggml_nelements(a) == ne0*ne1*ne2*ne3" mov esi, 0C11h loc_1C7B1: xor eax, eax call _ggml_abort
long long ggml_reshape_4d(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, double a7) { int v11; // r8d int v12; // r9d long long v13; // r14 const char *v15; // rcx int v16; // esi long long v17[11]; // [rsp+0h] [rbp-58h] BYREF if ( !ggml_is_contiguous_n((unsigned int *)a2, 0) ) { v15 = "ggml_is_contiguous(a)"; v16 = 3088; goto LABEL_6; } if ( *(_QWORD *)(a2 + 40) * *(_QWORD *)(a2 + 32) * *(_QWORD *)(a2 + 16) * *(_QWORD *)(a2 + 24) != a3 * a4 * a6 * a5 ) { v15 = "ggml_nelements(a) == ne0*ne1*ne2*ne3"; v16 = 3089; LABEL_6: ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", v16, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v15, v11, v12); } v17[0] = a3; v17[1] = a4; v17[2] = a5; v17[3] = a6; v13 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, v17, a2, 0LL, a7); ggml_format_name(v13, (long long)"%s (reshaped)"); *(_DWORD *)(v13 + 80) = 33; *(_QWORD *)(v13 + 152) = a2; return v13; }
ggml_reshape_4d: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R15,R9 MOV R12,R8 MOV R13,RCX MOV RBP,RDX MOV RBX,RSI MOV R14,RDI MOV RDI,RSI XOR ESI,ESI CALL 0x0011a0b9 TEST AL,AL JZ 0x0011c77b MOV RAX,qword ptr [RBX + 0x18] IMUL RAX,qword ptr [RBX + 0x10] IMUL RAX,qword ptr [RBX + 0x20] IMUL RAX,qword ptr [RBX + 0x28] MOV RCX,R13 IMUL RCX,RBP MOV RDX,R12 IMUL RDX,R15 IMUL RDX,RCX CMP RAX,RDX JNZ 0x0011c797 MOV RCX,RSP MOV qword ptr [RCX],RBP MOV qword ptr [RCX + 0x8],R13 MOV qword ptr [RCX + 0x10],R12 MOV qword ptr [RCX + 0x18],R15 MOV ESI,dword ptr [RBX] MOV RDI,R14 MOV EDX,0x4 MOV R8,RBX XOR R9D,R9D CALL 0x0011a57f MOV R14,RAX LEA RDX,[RBX + 0x100] LEA RSI,[0x14ca61] MOV RDI,RAX XOR EAX,EAX CALL 0x00117a60 MOV dword ptr [R14 + 0x50],0x21 MOV qword ptr [R14 + 0x98],RBX MOV RAX,R14 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011c77b: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14ca24] MOV ESI,0xc10 JMP 0x0011c7b1 LAB_0011c797: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14cac6] MOV ESI,0xc11 LAB_0011c7b1: XOR EAX,EAX CALL 0x00117cd0
long ggml_reshape_4d(int8 param_1,int4 *param_2,long param_3,long param_4,long param_5, long param_6) { char cVar1; long lVar2; char *pcVar3; int8 uVar4; long local_58; long local_50; long local_48; long local_40; cVar1 = ggml_is_contiguous_n(param_2,0); if (cVar1 == '\0') { pcVar3 = "ggml_is_contiguous(a)"; uVar4 = 0xc10; } else { if (*(long *)(param_2 + 6) * *(long *)(param_2 + 4) * *(long *)(param_2 + 8) * *(long *)(param_2 + 10) - param_5 * param_6 * param_4 * param_3 == 0) { local_58 = param_3; local_50 = param_4; local_48 = param_5; local_40 = param_6; lVar2 = ggml_new_tensor_impl(param_1,*param_2,4,&local_58,param_2,0); ggml_format_name(lVar2,"%s (reshaped)",param_2 + 0x40); *(int4 *)(lVar2 + 0x50) = 0x21; *(int4 **)(lVar2 + 0x98) = param_2; return lVar2; } pcVar3 = "ggml_nelements(a) == ne0*ne1*ne2*ne3"; uVar4 = 0xc11; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", uVar4,"GGML_ASSERT(%s) failed",pcVar3); }
2,123
nglog::tools::SafeAppendHexNumber(unsigned long, char*, unsigned long)
ng-log[P]ng-log/src/symbolize.cc
static void SafeAppendHexNumber(uint64_t value, char* dest, size_t dest_size) { // 64-bit numbers in hex can have up to 16 digits. char buf[17] = {'\0'}; SafeAppendString(itoa_r(value, buf, sizeof(buf), 16, 0), dest, dest_size); }
O1
cpp
nglog::tools::SafeAppendHexNumber(unsigned long, char*, unsigned long): subq $0x18, %rsp xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movb $0x0, 0x10(%rsp) xorl %eax, %eax leaq 0x303a(%rip), %rcx # 0x23ef6 cmpq $0x10, %rax je 0x20f1a movl %edi, %r8d andl $0xf, %r8d movb (%r8,%rcx), %r8b movb %r8b, (%rsp,%rax) movq %rdi, %r8 shrq $0x4, %r8 incq %rax cmpq $0xf, %rdi movq %r8, %rdi ja 0x20ebc addq %rsp, %rax decq %rax movb $0x0, 0x1(%rax) movq %rsp, %rdi cmpq %rdi, %rax jbe 0x20f20 leaq 0x1(%rsp), %rcx movb (%rax), %r8b movb -0x1(%rcx), %r9b movb %r9b, (%rax) movb %r8b, -0x1(%rcx) decq %rax leaq 0x1(%rcx), %r8 cmpq %rcx, %rax movq %r8, %rcx ja 0x20efb jmp 0x20f20 movb $0x0, (%rsp) xorl %edi, %edi callq 0x209de addq $0x18, %rsp retq
_ZN5nglog5toolsL19SafeAppendHexNumberEmPcm: sub rsp, 18h xorps xmm0, xmm0 movaps [rsp+18h+var_18], xmm0 mov [rsp+18h+var_8], 0 xor eax, eax lea rcx, a0123456789abcd; "0123456789abcdef" loc_20EBC: cmp rax, 10h jz short loc_20F1A mov r8d, edi and r8d, 0Fh mov r8b, [r8+rcx] mov byte ptr [rsp+rax+18h+var_18], r8b mov r8, rdi shr r8, 4 inc rax cmp rdi, 0Fh mov rdi, r8 ja short loc_20EBC add rax, rsp dec rax mov byte ptr [rax+1], 0 mov rdi, rsp cmp rax, rdi jbe short loc_20F20 lea rcx, [rsp+18h+var_18+1] loc_20EFB: mov r8b, [rax] mov r9b, [rcx-1] mov [rax], r9b mov [rcx-1], r8b dec rax lea r8, [rcx+1] cmp rax, rcx mov rcx, r8 ja short loc_20EFB jmp short loc_20F20 loc_20F1A: mov byte ptr [rsp+18h+var_18], 0 xor edi, edi; this loc_20F20: call _ZN5nglog5toolsL16SafeAppendStringEPKcPcm; nglog::tools::SafeAppendString(char const*,char *,ulong) add rsp, 18h retn
long long nglog::tools::SafeAppendHexNumber(unsigned long long this, const char *a2, char *a3) { long long v3; // rax bool v4; // cc char *v5; // rax nglog::tools *v6; // rdi char *v7; // rcx char v8; // r8 __int128 v10; // [rsp+0h] [rbp-18h] BYREF char v11; // [rsp+10h] [rbp-8h] v10 = 0LL; v11 = 0; v3 = 0LL; do { if ( v3 == 16 ) { LOBYTE(v10) = 0; v6 = 0LL; return nglog::tools::SafeAppendString(v6, a2, a3); } *((_BYTE *)&v10 + v3++) = a0123456789abcd[this & 0xF]; v4 = this <= 0xF; this >>= 4; } while ( !v4 ); v5 = (char *)&v10 + v3 - 1; v5[1] = 0; v6 = (nglog::tools *)&v10; if ( v5 > (char *)&v10 ) { v7 = (char *)&v10 + 1; do { v8 = *v5; *v5 = *(v7 - 1); *(v7 - 1) = v8; v4 = --v5 <= v7++; } while ( !v4 ); } return nglog::tools::SafeAppendString(v6, a2, a3); }
SafeAppendHexNumber: SUB RSP,0x18 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV byte ptr [RSP + 0x10],0x0 XOR EAX,EAX LEA RCX,[0x123ef6] LAB_00120ebc: CMP RAX,0x10 JZ 0x00120f1a MOV R8D,EDI AND R8D,0xf MOV R8B,byte ptr [R8 + RCX*0x1] MOV byte ptr [RSP + RAX*0x1],R8B MOV R8,RDI SHR R8,0x4 INC RAX CMP RDI,0xf MOV RDI,R8 JA 0x00120ebc ADD RAX,RSP DEC RAX MOV byte ptr [RAX + 0x1],0x0 MOV RDI,RSP CMP RAX,RDI JBE 0x00120f20 LEA RCX,[RSP + 0x1] LAB_00120efb: MOV R8B,byte ptr [RAX] MOV R9B,byte ptr [RCX + -0x1] MOV byte ptr [RAX],R9B MOV byte ptr [RCX + -0x1],R8B DEC RAX LEA R8,[RCX + 0x1] CMP RAX,RCX MOV RCX,R8 JA 0x00120efb JMP 0x00120f20 LAB_00120f1a: MOV byte ptr [RSP],0x0 XOR EDI,EDI LAB_00120f20: CALL 0x001209de ADD RSP,0x18 RET
/* nglog::tools::SafeAppendHexNumber(unsigned long, char*, unsigned long) */ void nglog::tools::SafeAppendHexNumber(ulong param_1,char *param_2,ulong param_3) { int1 uVar1; bool bVar2; long lVar3; long lVar4; int1 *puVar5; int1 *puVar6; char *pcVar7; int8 local_18; int8 uStack_10; int1 local_8; local_18 = 0; uStack_10 = 0; local_8 = 0; lVar3 = 0; do { lVar4 = lVar3; if (lVar4 == 0x10) { local_18 = local_18 & 0xffffffffffffff00; pcVar7 = (char *)0x0; goto LAB_00120f20; } *(char *)((long)&local_18 + lVar4) = "0123456789abcdef"[(uint)param_1 & 0xf]; bVar2 = 0xf < param_1; lVar3 = lVar4 + 1; param_1 = param_1 >> 4; } while (bVar2); puVar5 = (int1 *)((long)&local_18 + lVar4); *(int1 *)((long)&local_18 + lVar4 + 1) = 0; pcVar7 = (char *)&local_18; if (&local_18 < puVar5) { puVar6 = (int1 *)((long)&local_18 + 1); do { uVar1 = *puVar5; *puVar5 = puVar6[-1]; puVar6[-1] = uVar1; puVar5 = puVar5 + -1; bVar2 = puVar6 < puVar5; puVar6 = puVar6 + 1; pcVar7 = (char *)&local_18; } while (bVar2); } LAB_00120f20: SafeAppendString(pcVar7,param_2,param_3); return; }
2,124
nglog::tools::SafeAppendHexNumber(unsigned long, char*, unsigned long)
ng-log[P]ng-log/src/symbolize.cc
static void SafeAppendHexNumber(uint64_t value, char* dest, size_t dest_size) { // 64-bit numbers in hex can have up to 16 digits. char buf[17] = {'\0'}; SafeAppendString(itoa_r(value, buf, sizeof(buf), 16, 0), dest, dest_size); }
O2
cpp
nglog::tools::SafeAppendHexNumber(unsigned long, char*, unsigned long): subq $0x18, %rsp xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movb $0x0, 0x10(%rsp) xorl %eax, %eax leaq 0x3973(%rip), %rcx # 0x1fee6 cmpq $0x10, %rax je 0x1c5c4 movl %edi, %r8d andl $0xf, %r8d movb (%r8,%rcx), %r8b movb %r8b, (%rsp,%rax) movq %rdi, %r8 shrq $0x4, %r8 incq %rax cmpq $0xf, %rdi movq %r8, %rdi ja 0x1c573 addq %rsp, %rax decq %rax movb $0x0, 0x1(%rax) movq %rsp, %rdi movq %rdi, %rcx cmpq %rcx, %rax jbe 0x1c5ca movb (%rax), %r8b movb (%rcx), %r9b movb %r9b, (%rax) movb %r8b, (%rcx) incq %rcx decq %rax jmp 0x1c5ab movb $0x0, (%rsp) xorl %edi, %edi callq 0x1c0c0 addq $0x18, %rsp retq
_ZN5nglog5toolsL19SafeAppendHexNumberEmPcm: sub rsp, 18h xorps xmm0, xmm0 movaps [rsp+18h+var_18], xmm0 mov [rsp+18h+var_8], 0 xor eax, eax lea rcx, a0123456789abcd; "0123456789abcdef" loc_1C573: cmp rax, 10h jz short loc_1C5C4 mov r8d, edi and r8d, 0Fh mov r8b, [r8+rcx] mov byte ptr [rsp+rax+18h+var_18], r8b mov r8, rdi shr r8, 4 inc rax cmp rdi, 0Fh mov rdi, r8 ja short loc_1C573 add rax, rsp dec rax mov byte ptr [rax+1], 0 mov rdi, rsp mov rcx, rdi loc_1C5AB: cmp rax, rcx jbe short loc_1C5CA mov r8b, [rax] mov r9b, [rcx] mov [rax], r9b mov [rcx], r8b inc rcx dec rax jmp short loc_1C5AB loc_1C5C4: mov byte ptr [rsp+18h+var_18], 0 xor edi, edi; this loc_1C5CA: call _ZN5nglog5toolsL16SafeAppendStringEPKcPcm; nglog::tools::SafeAppendString(char const*,char *,ulong) add rsp, 18h retn
long long nglog::tools::SafeAppendHexNumber(unsigned long long this, const char *a2, char *a3) { long long v3; // rax bool v4; // cc char *v5; // rax nglog::tools *v6; // rdi char *i; // rcx char v8; // r8 __int128 v10; // [rsp+0h] [rbp-18h] BYREF char v11; // [rsp+10h] [rbp-8h] v10 = 0LL; v11 = 0; v3 = 0LL; do { if ( v3 == 16 ) { LOBYTE(v10) = 0; v6 = 0LL; return nglog::tools::SafeAppendString(v6, a2, a3); } *((_BYTE *)&v10 + v3++) = a0123456789abcd[this & 0xF]; v4 = this <= 0xF; this >>= 4; } while ( !v4 ); v5 = (char *)&v10 + v3 - 1; v5[1] = 0; v6 = (nglog::tools *)&v10; for ( i = (char *)&v10; v5 > i; ++i ) { v8 = *v5; *v5 = *i; *i = v8; --v5; } return nglog::tools::SafeAppendString(v6, a2, a3); }
SafeAppendHexNumber: SUB RSP,0x18 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV byte ptr [RSP + 0x10],0x0 XOR EAX,EAX LEA RCX,[0x11fee6] LAB_0011c573: CMP RAX,0x10 JZ 0x0011c5c4 MOV R8D,EDI AND R8D,0xf MOV R8B,byte ptr [R8 + RCX*0x1] MOV byte ptr [RSP + RAX*0x1],R8B MOV R8,RDI SHR R8,0x4 INC RAX CMP RDI,0xf MOV RDI,R8 JA 0x0011c573 ADD RAX,RSP DEC RAX MOV byte ptr [RAX + 0x1],0x0 MOV RDI,RSP MOV RCX,RDI LAB_0011c5ab: CMP RAX,RCX JBE 0x0011c5ca MOV R8B,byte ptr [RAX] MOV R9B,byte ptr [RCX] MOV byte ptr [RAX],R9B MOV byte ptr [RCX],R8B INC RCX DEC RAX JMP 0x0011c5ab LAB_0011c5c4: MOV byte ptr [RSP],0x0 XOR EDI,EDI LAB_0011c5ca: CALL 0x0011c0c0 ADD RSP,0x18 RET
/* nglog::tools::SafeAppendHexNumber(unsigned long, char*, unsigned long) */ void nglog::tools::SafeAppendHexNumber(ulong param_1,char *param_2,ulong param_3) { int1 uVar1; bool bVar2; long lVar3; long lVar4; int1 *puVar5; int8 *puVar6; char *pcVar7; int8 local_18; int8 uStack_10; int1 local_8; puVar6 = &local_18; pcVar7 = (char *)&local_18; local_18 = 0; uStack_10 = 0; local_8 = 0; lVar3 = 0; do { lVar4 = lVar3; if (lVar4 == 0x10) { local_18 = local_18 & 0xffffffffffffff00; pcVar7 = (char *)0x0; goto LAB_0011c5ca; } *(char *)((long)&local_18 + lVar4) = "0123456789abcdef"[(uint)param_1 & 0xf]; bVar2 = 0xf < param_1; lVar3 = lVar4 + 1; param_1 = param_1 >> 4; } while (bVar2); puVar5 = (int1 *)((long)&local_18 + lVar4); *(int1 *)((long)&local_18 + lVar4 + 1) = 0; for (; puVar6 < puVar5; puVar6 = (int8 *)((long)puVar6 + 1)) { uVar1 = *puVar5; *puVar5 = *(int1 *)puVar6; *(int1 *)puVar6 = uVar1; puVar5 = puVar5 + -1; } LAB_0011c5ca: SafeAppendString(pcVar7,param_2,param_3); return; }
2,125
Employee::name[abi:cxx11]() const
slashdotted[P]corsocpp_tp_2025/S9/Employee.cpp
std::string Employee::name() const { return m_name; }
O3
cpp
Employee::name[abi:cxx11]() const: pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) movq 0x8(%rsi), %rax movq 0x10(%rsi), %rdx addq %rax, %rdx movq %rax, %rsi callq 0x1d80 movq %rbx, %rax popq %rbx retq nop
_ZNK8Employee4nameB5cxx11Ev: push rbx mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax mov rax, [rsi+8] mov rdx, [rsi+10h] add rdx, rax mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov rax, rbx pop rbx retn
_QWORD * Employee::name[abi:cxx11](_QWORD *a1, long long a2) { *a1 = a1 + 2; std::string::_M_construct<char *>((long long)a1, *(_BYTE **)(a2 + 8), *(_QWORD *)(a2 + 8) + *(_QWORD *)(a2 + 16)); return a1; }
name[abi:cxx11]: PUSH RBX MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RSI + 0x8] MOV RDX,qword ptr [RSI + 0x10] ADD RDX,RAX MOV RSI,RAX CALL 0x00101d80 MOV RAX,RBX POP RBX RET
/* Employee::name[abi:cxx11]() const */ void Employee::name_abi_cxx11_(void) { long in_RSI; long *in_RDI; *in_RDI = (long)(in_RDI + 2); std::__cxx11::string::_M_construct<char*> (in_RDI,*(long *)(in_RSI + 8),*(long *)(in_RSI + 0x10) + *(long *)(in_RSI + 8)); return; }
2,126
ggml_easy::string_format[abi:cxx11](char const*, ...)
ngxson[P]ggml-easy/ggml-easy.h
std::string string_format(const char * fmt, ...) { va_list ap; va_list ap2; va_start(ap, fmt); va_copy(ap2, ap); int size = vsnprintf(NULL, 0, fmt, ap); GGML_ASSERT(size >= 0 && size < INT_MAX); // NOLINT std::vector<char> buf(size + 1); int size2 = vsnprintf(buf.data(), size + 1, fmt, ap2); GGML_ASSERT(size2 == size); va_end(ap2); va_end(ap); return std::string(buf.data(), size); }
O0
c
ggml_easy::string_format[abi:cxx11](char const*, ...): subq $0x178, %rsp # imm = 0x178 movq %rdi, 0x30(%rsp) movq %rdi, %r10 movq %r10, 0x38(%rsp) testb %al, %al je 0xc025 movaps %xmm0, 0x70(%rsp) movaps %xmm1, 0x80(%rsp) movaps %xmm2, 0x90(%rsp) movaps %xmm3, 0xa0(%rsp) movaps %xmm4, 0xb0(%rsp) movaps %xmm5, 0xc0(%rsp) movaps %xmm6, 0xd0(%rsp) movaps %xmm7, 0xe0(%rsp) movq %r9, 0x68(%rsp) movq %r8, 0x60(%rsp) movq %rcx, 0x58(%rsp) movq %rdx, 0x50(%rsp) movq %rdi, 0x170(%rsp) movq %rsi, 0x168(%rsp) leaq 0x150(%rsp), %rax leaq 0x40(%rsp), %rcx movq %rcx, 0x10(%rax) leaq 0x180(%rsp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x10, (%rax) leaq 0x130(%rsp), %rax leaq 0x150(%rsp), %rcx movq 0x10(%rcx), %rdx movq %rdx, 0x10(%rax) movups (%rcx), %xmm0 movups %xmm0, (%rax) movq 0x168(%rsp), %rdx leaq 0x150(%rsp), %rcx xorl %eax, %eax movl %eax, %esi movq %rsi, %rdi callq 0xa3a0 movl %eax, 0x12c(%rsp) cmpl $0x0, 0x12c(%rsp) jl 0xc0cb cmpl $0x7fffffff, 0x12c(%rsp) # imm = 0x7FFFFFFF jl 0xc0ec leaq 0x17ffe(%rip), %rdi # 0x240d0 movl $0x2d8, %esi # imm = 0x2D8 leaq 0x18039(%rip), %rdx # 0x24117 leaq 0x1818b(%rip), %rcx # 0x24270 movb $0x0, %al callq 0xa8c0 movl 0x12c(%rsp), %eax incl %eax cltq movq %rax, 0x20(%rsp) leaq 0x10f(%rsp), %rdi movq %rdi, 0x28(%rsp) callq 0xa950 movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx leaq 0x110(%rsp), %rdi callq 0xf570 jmp 0xc127 leaq 0x10f(%rsp), %rdi callq 0xa560 leaq 0x110(%rsp), %rdi callq 0xf5f0 movq %rax, %rdi movl 0x12c(%rsp), %eax addl $0x1, %eax movslq %eax, %rsi movq 0x168(%rsp), %rdx leaq 0x130(%rsp), %rcx callq 0xa3a0 movl %eax, 0xf8(%rsp) movl 0xf8(%rsp), %eax cmpl 0x12c(%rsp), %eax je 0xc1df leaq 0x17f4c(%rip), %rdi # 0x240d0 leaq 0x17f8c(%rip), %rdx # 0x24117 leaq 0x180fa(%rip), %rcx # 0x2428c xorl %eax, %eax movl $0x2db, %esi # imm = 0x2DB callq 0xa8c0 jmp 0xc1a0 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x100(%rsp) movl %eax, 0xfc(%rsp) leaq 0x10f(%rsp), %rdi callq 0xa560 jmp 0xc280 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x100(%rsp) movl %eax, 0xfc(%rsp) jmp 0xc273 leaq 0x110(%rsp), %rdi callq 0xf5f0 movq %rax, 0x8(%rsp) movslq 0x12c(%rsp), %rax movq %rax, 0x10(%rsp) leaq 0xf7(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0xa950 movq 0x30(%rsp), %rdi movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq 0x18(%rsp), %rcx callq 0xa5c0 jmp 0xc22b leaq 0xf7(%rsp), %rdi callq 0xa560 leaq 0x110(%rsp), %rdi callq 0xf4b0 movq 0x38(%rsp), %rax addq $0x178, %rsp # imm = 0x178 retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x100(%rsp) movl %eax, 0xfc(%rsp) leaq 0xf7(%rsp), %rdi callq 0xa560 leaq 0x110(%rsp), %rdi callq 0xf4b0 movq 0x100(%rsp), %rdi callq 0xa930 nopl (%rax)
_ZN9ggml_easy13string_formatB5cxx11EPKcz: sub rsp, 178h mov [rsp+178h+var_148], rdi mov r10, rdi mov [rsp+178h+var_140], r10 test al, al jz short loc_C025 movaps [rsp+178h+var_108], xmm0 movaps [rsp+178h+var_F8], xmm1 movaps [rsp+178h+var_E8], xmm2 movaps [rsp+178h+var_D8], xmm3 movaps [rsp+178h+var_C8], xmm4 movaps [rsp+178h+var_B8], xmm5 movaps [rsp+178h+var_A8], xmm6 movaps [rsp+178h+var_98], xmm7 loc_C025: mov [rsp+178h+var_110], r9 mov [rsp+178h+var_118], r8 mov [rsp+178h+var_120], rcx mov [rsp+178h+var_128], rdx mov [rsp+178h+var_8], rdi mov [rsp+178h+var_10], rsi lea rax, [rsp+178h+var_28] lea rcx, [rsp+178h+var_138] mov [rax+10h], rcx lea rcx, [rsp+178h+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 10h lea rax, [rsp+178h+var_48] lea rcx, [rsp+178h+var_28] mov rdx, [rcx+10h] mov [rax+10h], rdx movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rax], xmm0 mov rdx, [rsp+178h+var_10] lea rcx, [rsp+178h+var_28] xor eax, eax mov esi, eax mov rdi, rsi call _vsnprintf mov [rsp+178h+var_4C], eax cmp [rsp+178h+var_4C], 0 jl short loc_C0CB cmp [rsp+178h+var_4C], 7FFFFFFFh jl short loc_C0EC loc_C0CB: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 2D8h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSize0SizeIntMa; "size >= 0 && size < INT_MAX" mov al, 0 call _ggml_abort loc_C0EC: mov eax, [rsp+178h+var_4C] inc eax cdqe mov [rsp+178h+var_158], rax lea rdi, [rsp+178h+var_69] mov [rsp+178h+var_150], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rsi, [rsp+178h+var_158] mov rdx, [rsp+178h+var_150] lea rdi, [rsp+178h+var_68] call _ZNSt6vectorIcSaIcEEC2EmRKS0_; std::vector<char>::vector(ulong,std::allocator<char> const&) jmp short $+2 loc_C127: lea rdi, [rsp+178h+var_69] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, [rsp+178h+var_68] call _ZNSt6vectorIcSaIcEE4dataEv; std::vector<char>::data(void) mov rdi, rax mov eax, [rsp+178h+var_4C] add eax, 1 movsxd rsi, eax mov rdx, [rsp+178h+var_10] lea rcx, [rsp+178h+var_48] call _vsnprintf mov [rsp+178h+var_80], eax mov eax, [rsp+178h+var_80] cmp eax, [rsp+178h+var_4C] jz short loc_C1DF lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSize2Size; "size2 == size" xor eax, eax mov esi, 2DBh call _ggml_abort jmp short $+2 loc_C1A0: mov rcx, rax mov eax, edx mov [rsp+178h+var_78], rcx mov [rsp+178h+var_7C], eax lea rdi, [rsp+178h+var_69] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_C280 mov rcx, rax mov eax, edx mov [rsp+178h+var_78], rcx mov [rsp+178h+var_7C], eax jmp loc_C273 loc_C1DF: lea rdi, [rsp+178h+var_68] call _ZNSt6vectorIcSaIcEE4dataEv; std::vector<char>::data(void) mov [rsp+178h+var_170], rax movsxd rax, [rsp+178h+var_4C] mov [rsp+178h+var_168], rax lea rdi, [rsp+178h+var_81] mov [rsp+178h+var_160], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rsp+178h+var_148] mov rsi, [rsp+178h+var_170] mov rdx, [rsp+178h+var_168] mov rcx, [rsp+178h+var_160] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcmRKS3_; std::string::basic_string(char const*,ulong,std::allocator<char> const&) jmp short $+2 loc_C22B: lea rdi, [rsp+178h+var_81] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, [rsp+178h+var_68] call _ZNSt6vectorIcSaIcEED2Ev; std::vector<char>::~vector() mov rax, [rsp+178h+var_140] add rsp, 178h retn mov rcx, rax mov eax, edx mov [rsp+178h+var_78], rcx mov [rsp+178h+var_7C], eax lea rdi, [rsp+178h+var_81] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() loc_C273: lea rdi, [rsp+178h+var_68] call _ZNSt6vectorIcSaIcEED2Ev; std::vector<char>::~vector() loc_C280: mov rdi, [rsp+178h+var_78] call __Unwind_Resume
long long ggml_easy::string_format[abi:cxx11]( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { int v15; // ecx int v16; // r8d int v17; // r9d long long v18; // rax int v19; // edx long long v21; // [rsp+8h] [rbp-170h] long long v22; // [rsp+10h] [rbp-168h] unsigned int v23; // [rsp+20h] [rbp-158h] _BYTE v24[16]; // [rsp+40h] [rbp-138h] BYREF long long v25; // [rsp+50h] [rbp-128h] long long v26; // [rsp+58h] [rbp-120h] long long v27; // [rsp+60h] [rbp-118h] long long v28; // [rsp+68h] [rbp-110h] __m128 v29; // [rsp+70h] [rbp-108h] __m128 v30; // [rsp+80h] [rbp-F8h] __m128 v31; // [rsp+90h] [rbp-E8h] __m128 v32; // [rsp+A0h] [rbp-D8h] __m128 v33; // [rsp+B0h] [rbp-C8h] __m128 v34; // [rsp+C0h] [rbp-B8h] __m128 v35; // [rsp+D0h] [rbp-A8h] __m128 v36; // [rsp+E0h] [rbp-98h] char v37; // [rsp+F7h] [rbp-81h] BYREF int v38; // [rsp+F8h] [rbp-80h] int v39; // [rsp+FCh] [rbp-7Ch] long long v40; // [rsp+100h] [rbp-78h] char v41; // [rsp+10Fh] [rbp-69h] BYREF _BYTE v42[28]; // [rsp+110h] [rbp-68h] BYREF unsigned int v43; // [rsp+12Ch] [rbp-4Ch] __int128 v44; // [rsp+130h] [rbp-48h] BYREF _BYTE *v45; // [rsp+140h] [rbp-38h] __int128 v46; // [rsp+150h] [rbp-28h] BYREF _BYTE *v47; // [rsp+160h] [rbp-18h] long long v48; // [rsp+168h] [rbp-10h] long long v49; // [rsp+170h] [rbp-8h] v29 = a7; v30 = a8; v31 = a9; v32 = a10; v33 = a11; v34 = a12; v35 = a13; v36 = a14; v28 = a6; v27 = a5; v26 = a4; v25 = a3; v49 = a1; v48 = a2; v47 = v24; *((_QWORD *)&v46 + 1) = &a15; *(_QWORD *)&v46 = 0x3000000010LL; v45 = v24; v44 = v46; v43 = vsnprintf(0LL, 0LL, a2, &v46); if ( v43 > 0x7FFFFFFE ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml-easy.h", 728LL, "GGML_ASSERT(%s) failed", "size >= 0 && size < INT_MAX"); v23 = v43 + 1; std::allocator<char>::allocator(); std::vector<char>::vector((unsigned int)v42, v23, (unsigned int)&v41, v15, v16, v17); std::allocator<char>::~allocator(&v41); v18 = std::vector<char>::data(v42); v38 = vsnprintf(v18, (int)(v43 + 1), v48, &v44); if ( v38 != v43 ) { v40 = ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml-easy.h", 731LL, "GGML_ASSERT(%s) failed", "size2 == size"); v39 = v19; std::allocator<char>::~allocator(&v41); _Unwind_Resume(v40); } v21 = std::vector<char>::data(v42); v22 = (int)v43; std::allocator<char>::allocator(); std::string::basic_string(a1, v21, v22, &v37); std::allocator<char>::~allocator(&v37); std::vector<char>::~vector(v42); return a1; }
string_format[abi:cxx11]: SUB RSP,0x178 MOV qword ptr [RSP + 0x30],RDI MOV R10,RDI MOV qword ptr [RSP + 0x38],R10 TEST AL,AL JZ 0x0010c025 MOVAPS xmmword ptr [RSP + 0x70],XMM0 MOVAPS xmmword ptr [RSP + 0x80],XMM1 MOVAPS xmmword ptr [RSP + 0x90],XMM2 MOVAPS xmmword ptr [RSP + 0xa0],XMM3 MOVAPS xmmword ptr [RSP + 0xb0],XMM4 MOVAPS xmmword ptr [RSP + 0xc0],XMM5 MOVAPS xmmword ptr [RSP + 0xd0],XMM6 MOVAPS xmmword ptr [RSP + 0xe0],XMM7 LAB_0010c025: MOV qword ptr [RSP + 0x68],R9 MOV qword ptr [RSP + 0x60],R8 MOV qword ptr [RSP + 0x58],RCX MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RSP + 0x170],RDI MOV qword ptr [RSP + 0x168],RSI LEA RAX,[RSP + 0x150] LEA RCX,[RSP + 0x40] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RSP + 0x180] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x10 LEA RAX,[RSP + 0x130] LEA RCX,[RSP + 0x150] MOV RDX,qword ptr [RCX + 0x10] MOV qword ptr [RAX + 0x10],RDX MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RAX],XMM0 MOV RDX,qword ptr [RSP + 0x168] LEA RCX,[RSP + 0x150] XOR EAX,EAX MOV ESI,EAX MOV RDI,RSI CALL 0x0010a3a0 MOV dword ptr [RSP + 0x12c],EAX CMP dword ptr [RSP + 0x12c],0x0 JL 0x0010c0cb CMP dword ptr [RSP + 0x12c],0x7fffffff JL 0x0010c0ec LAB_0010c0cb: LEA RDI,[0x1240d0] MOV ESI,0x2d8 LEA RDX,[0x124117] LEA RCX,[0x124270] MOV AL,0x0 CALL 0x0010a8c0 LAB_0010c0ec: MOV EAX,dword ptr [RSP + 0x12c] INC EAX CDQE MOV qword ptr [RSP + 0x20],RAX LEA RDI,[RSP + 0x10f] MOV qword ptr [RSP + 0x28],RDI CALL 0x0010a950 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] LAB_0010c118: LEA RDI,[RSP + 0x110] CALL 0x0010f570 JMP 0x0010c127 LAB_0010c127: LEA RDI,[RSP + 0x10f] CALL 0x0010a560 LEA RDI,[RSP + 0x110] CALL 0x0010f5f0 MOV RDI,RAX MOV EAX,dword ptr [RSP + 0x12c] ADD EAX,0x1 MOVSXD RSI,EAX MOV RDX,qword ptr [RSP + 0x168] LEA RCX,[RSP + 0x130] CALL 0x0010a3a0 MOV dword ptr [RSP + 0xf8],EAX MOV EAX,dword ptr [RSP + 0xf8] CMP EAX,dword ptr [RSP + 0x12c] JZ 0x0010c1df LAB_0010c17d: LEA RDI,[0x1240d0] LEA RDX,[0x124117] LEA RCX,[0x12428c] XOR EAX,EAX MOV ESI,0x2db CALL 0x0010a8c0 JMP 0x0010c1a0 LAB_0010c1a0: MOV RCX,RAX MOV EAX,EDX MOV qword ptr [RSP + 0x100],RCX MOV dword ptr [RSP + 0xfc],EAX LEA RDI,[RSP + 0x10f] CALL 0x0010a560 JMP 0x0010c280 LAB_0010c1df: LEA RDI,[RSP + 0x110] CALL 0x0010f5f0 MOV qword ptr [RSP + 0x8],RAX MOVSXD RAX,dword ptr [RSP + 0x12c] MOV qword ptr [RSP + 0x10],RAX LEA RDI,[RSP + 0xf7] MOV qword ptr [RSP + 0x18],RDI CALL 0x0010a950 MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x18] LAB_0010c224: CALL 0x0010a5c0 LAB_0010c229: JMP 0x0010c22b LAB_0010c22b: LEA RDI,[RSP + 0xf7] CALL 0x0010a560 LEA RDI,[RSP + 0x110] CALL 0x0010f4b0 MOV RAX,qword ptr [RSP + 0x38] ADD RSP,0x178 RET LAB_0010c280: MOV RDI,qword ptr [RSP + 0x100] CALL 0x0010a930
/* ggml_easy::string_format[abi:cxx11](char const*, ...) */ char * ggml_easy::string_format_abi_cxx11_(char *param_1,...) { char in_AL; int iVar1; char *pcVar2; ulong uVar3; int8 in_RCX; int8 in_RDX; char *in_RSI; int8 in_R8; int8 in_R9; int4 in_XMM0_Da; int8 in_XMM1_Qa; int8 in_XMM2_Qa; int8 in_XMM3_Qa; int8 in_XMM4_Qa; int8 in_XMM5_Qa; int8 in_XMM6_Qa; int8 in_XMM7_Qa; int1 auVar4 [12]; int1 local_138 [16]; int8 local_128; int8 local_120; int8 local_118; int8 local_110; int4 local_108; int8 local_f8; int8 local_e8; int8 local_d8; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; allocator local_81; int local_80; int4 local_7c; int8 local_78; allocator local_69; vector<char,std::allocator<char>> local_68 [28]; int local_4c; int8 local_48; int1 *puStack_40; int1 *local_38; int4 local_28; int4 uStack_24; int1 *puStack_20; int1 *local_18; char *local_10; char *local_8; if (in_AL != '\0') { local_108 = in_XMM0_Da; local_f8 = in_XMM1_Qa; local_e8 = in_XMM2_Qa; local_d8 = in_XMM3_Qa; local_c8 = in_XMM4_Qa; local_b8 = in_XMM5_Qa; local_a8 = in_XMM6_Qa; local_98 = in_XMM7_Qa; } local_38 = local_138; puStack_40 = &stack0x00000008; uStack_24 = 0x30; local_28 = 0x10; local_48 = 0x3000000010; local_128 = in_RDX; local_120 = in_RCX; local_118 = in_R8; local_110 = in_R9; puStack_20 = puStack_40; local_18 = local_38; local_10 = in_RSI; local_8 = param_1; local_4c = vsnprintf((char *)0x0,0,in_RSI,&local_28); if ((local_4c < 0) || (0x7ffffffe < local_4c)) { ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml-easy.h",0x2d8, "GGML_ASSERT(%s) failed","size >= 0 && size < INT_MAX"); } iVar1 = local_4c + 1; std::allocator<char>::allocator(); /* try { // try from 0010c118 to 0010c124 has its CatchHandler @ 0010c1a0 */ std::vector<char,std::allocator<char>>::vector(local_68,(long)iVar1,&local_69); std::allocator<char>::~allocator((allocator<char> *)&local_69); pcVar2 = (char *)std::vector<char,std::allocator<char>>::data(local_68); local_80 = vsnprintf(pcVar2,(long)(local_4c + 1),local_10,&local_48); if (local_80 != local_4c) { /* try { // try from 0010c17d to 0010c19d has its CatchHandler @ 0010c1c6 */ auVar4 = ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml-easy.h", 0x2db,"GGML_ASSERT(%s) failed","size2 == size"); local_7c = auVar4._8_4_; local_78 = auVar4._0_8_; /* catch() { ... } // from try @ 0010c118 with catch @ 0010c1a0 */ std::allocator<char>::~allocator((allocator<char> *)&local_69); /* WARNING: Subroutine does not return */ _Unwind_Resume(local_78); } pcVar2 = (char *)std::vector<char,std::allocator<char>>::data(local_68); uVar3 = (ulong)local_4c; std::allocator<char>::allocator(); /* try { // try from 0010c224 to 0010c228 has its CatchHandler @ 0010c252 */ std::__cxx11::string::string((string *)param_1,pcVar2,uVar3,&local_81); std::allocator<char>::~allocator((allocator<char> *)&local_81); std::vector<char,std::allocator<char>>::~vector(local_68); return param_1; }
2,127
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char*, int)
monkey531[P]llama/common/./json.hpp
inline char* append_exponent(char* buf, int e) { JSON_ASSERT(e > -1000); JSON_ASSERT(e < 1000); if (e < 0) { e = -e; *buf++ = '-'; } else { *buf++ = '+'; } auto k = static_cast<std::uint32_t>(e); if (k < 10) { // Always print at least two digits in the exponent. // This is for compatibility with printf("%g"). *buf++ = '0'; *buf++ = static_cast<char>('0' + k); } else if (k < 100) { *buf++ = static_cast<char>('0' + k / 10); k %= 10; *buf++ = static_cast<char>('0' + k); } else { *buf++ = static_cast<char>('0' + k / 100); k %= 100; *buf++ = static_cast<char>('0' + k / 10); k %= 10; *buf++ = static_cast<char>('0' + k); } return buf; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char*, int): pushq %rax cmpl $0xfffffc18, %esi # imm = 0xFFFFFC18 jle 0x68a34 cmpl $0x3e8, %esi # imm = 0x3E8 jge 0x68a50 movl %esi, %ecx shrl $0x1f, %ecx addb %cl, %cl addb $0x2b, %cl movl %esi, %eax negl %eax cmovsl %esi, %eax movb %cl, (%rdi) cmpl $0x9, %eax ja 0x689e2 leaq 0x2(%rdi), %rdx movb $0x30, 0x1(%rdi) jmp 0x689fd cmpl $0x63, %eax ja 0x68a01 movzbl %al, %eax movb $0xa, %cl divb %cl movl %eax, %ecx movzbl %ah, %eax orb $0x30, %cl leaq 0x2(%rdi), %rdx movb %cl, 0x1(%rdi) pushq $0x3 jmp 0x68a27 movw $0x64, %cx xorl %edx, %edx divw %cx addb $0x30, %al movb %al, 0x1(%rdi) movzbl %dl, %eax movb $0xa, %cl divb %cl movl %eax, %ecx movzbl %ah, %eax orb $0x30, %cl leaq 0x3(%rdi), %rdx movb %cl, 0x2(%rdi) pushq $0x4 popq %rcx orb $0x30, %al addq %rcx, %rdi movb %al, (%rdx) movq %rdi, %rax popq %rcx retq leaq 0x892db(%rip), %rdi # 0xf1d16 leaq 0x89320(%rip), %rdx # 0xf1d62 leaq 0x8b2b4(%rip), %rcx # 0xf3cfd movl $0x45ae, %esi # imm = 0x45AE jmp 0x68a6a leaq 0x892bf(%rip), %rdi # 0xf1d16 leaq 0x89304(%rip), %rdx # 0xf1d62 leaq 0x8b2a2(%rip), %rcx # 0xf3d07 movl $0x45af, %esi # imm = 0x45AF xorl %eax, %eax callq 0x292a0 nop
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl15append_exponentEPci: push rax cmp esi, 0FFFFFC18h jle loc_68A34 cmp esi, 3E8h jge loc_68A50 mov ecx, esi shr ecx, 1Fh add cl, cl add cl, 2Bh ; '+' mov eax, esi neg eax cmovs eax, esi mov [rdi], cl cmp eax, 9 ja short loc_689E2 lea rdx, [rdi+2] mov byte ptr [rdi+1], 30h ; '0' jmp short loc_689FD loc_689E2: cmp eax, 63h ; 'c' ja short loc_68A01 movzx eax, al mov cl, 0Ah div cl mov ecx, eax movzx eax, ah or cl, 30h lea rdx, [rdi+2] mov [rdi+1], cl loc_689FD: push 3 jmp short loc_68A27 loc_68A01: mov cx, 64h ; 'd' xor edx, edx div cx add al, 30h ; '0' mov [rdi+1], al movzx eax, dl mov cl, 0Ah div cl mov ecx, eax movzx eax, ah or cl, 30h lea rdx, [rdi+3] mov [rdi+2], cl push 4 loc_68A27: pop rcx or al, 30h add rdi, rcx mov [rdx], al mov rax, rdi pop rcx retn loc_68A34: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aE1000; "e > -1000" mov esi, 45AEh jmp short loc_68A6A loc_68A50: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aE1000_0; "e < 1000" mov esi, 45AFh loc_68A6A: xor eax, eax call _ggml_abort nop
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent( nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this, char *a2) { unsigned int v2; // eax _BYTE *v3; // rdx char v4; // cl char v5; // cl long long v7; // rsi long long v8; // [rsp-10h] [rbp-10h] if ( (int)a2 <= -1000 ) { v7 = 17838LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp", 17838LL, "GGML_ASSERT(%s) failed", "e > -1000"); } else { if ( (int)a2 < 1000 ) { v2 = -(int)a2; if ( (int)a2 > 0 ) v2 = (unsigned int)a2; *(_BYTE *)this = 2 * ((int)a2 < 0) + 43; if ( v2 > 9 ) { if ( v2 > 0x63 ) { *((_BYTE *)this + 1) = (unsigned __int16)v2 / 0x64u + 48; v5 = (unsigned __int16)v2 % 0x64u / 0xA; LOBYTE(v2) = (unsigned __int16)v2 % 0x64u % 0xA; v3 = (char *)this + 3; *((_BYTE *)this + 2) = v5 | 0x30; v8 = 4LL; goto LABEL_11; } v4 = (unsigned __int8)v2 / 0xAu; LOBYTE(v2) = (unsigned __int8)v2 % 0xAu; v3 = (char *)this + 2; *((_BYTE *)this + 1) = v4 | 0x30; } else { v3 = (char *)this + 2; *((_BYTE *)this + 1) = 48; } v8 = 3LL; LABEL_11: *v3 = v2 | 0x30; return (long long)this + v8; } v7 = 17839LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp", 17839LL, "GGML_ASSERT(%s) failed", "e < 1000"); } return nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp", v7); }
append_exponent: PUSH RAX CMP ESI,0xfffffc18 JLE 0x00168a34 CMP ESI,0x3e8 JGE 0x00168a50 MOV ECX,ESI SHR ECX,0x1f ADD CL,CL ADD CL,0x2b MOV EAX,ESI NEG EAX CMOVS EAX,ESI MOV byte ptr [RDI],CL CMP EAX,0x9 JA 0x001689e2 LEA RDX,[RDI + 0x2] MOV byte ptr [RDI + 0x1],0x30 JMP 0x001689fd LAB_001689e2: CMP EAX,0x63 JA 0x00168a01 MOVZX EAX,AL MOV CL,0xa DIV CL MOV ECX,EAX MOVZX EAX,AH OR CL,0x30 LEA RDX,[RDI + 0x2] MOV byte ptr [RDI + 0x1],CL LAB_001689fd: PUSH 0x3 JMP 0x00168a27 LAB_00168a01: MOV CX,0x64 XOR EDX,EDX DIV CX ADD AL,0x30 MOV byte ptr [RDI + 0x1],AL MOVZX EAX,DL MOV CL,0xa DIV CL MOV ECX,EAX MOVZX EAX,AH OR CL,0x30 LEA RDX,[RDI + 0x3] MOV byte ptr [RDI + 0x2],CL PUSH 0x4 LAB_00168a27: POP RCX OR AL,0x30 ADD RDI,RCX MOV byte ptr [RDX],AL MOV RAX,RDI POP RCX RET LAB_00168a34: LEA RDI,[0x1f1d16] LEA RDX,[0x1f1d62] LEA RCX,[0x1f3cfd] MOV ESI,0x45ae JMP 0x00168a6a LAB_00168a50: LEA RDI,[0x1f1d16] LEA RDX,[0x1f1d62] LEA RCX,[0x1f3d07] MOV ESI,0x45af LAB_00168a6a: XOR EAX,EAX CALL 0x001292a0
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char*, int) */ char * nlohmann::json_abi_v3_11_3::detail::dtoa_impl::append_exponent(char *param_1,int param_2) { byte bVar2; uint uVar1; char *pcVar3; ushort uVar4; byte *pbVar5; int8 uVar6; long lStack_10; if (param_2 < -999) { pcVar3 = "e > -1000"; uVar6 = 0x45ae; LAB_00168a6a: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",uVar6, "GGML_ASSERT(%s) failed",pcVar3); } if (999 < param_2) { pcVar3 = "e < 1000"; uVar6 = 0x45af; goto LAB_00168a6a; } uVar1 = -param_2; if (0 < param_2) { uVar1 = param_2; } *param_1 = (char)(param_2 >> 0x1f) * -2 + '+'; if (uVar1 < 10) { param_1[1] = '0'; } else { if (99 < uVar1) { uVar4 = (ushort)((uVar1 & 0xffff) % 100); param_1[1] = (char)((uVar1 & 0xffff) / 100) + '0'; bVar2 = (byte)(uVar4 % 10); pbVar5 = (byte *)(param_1 + 3); param_1[2] = (byte)(uVar4 / 10) | 0x30; lStack_10 = 4; goto LAB_00168a27; } uVar4 = (ushort)uVar1 & 0xff; uVar1 = (uint)(byte)(uVar4 % 10); param_1[1] = (byte)(uVar4 / 10) | 0x30; } pbVar5 = (byte *)(param_1 + 2); bVar2 = (byte)uVar1; lStack_10 = 3; LAB_00168a27: *pbVar5 = bVar2 | 0x30; return param_1 + lStack_10; }
2,128
mcp::tool_builder::with_array_param(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
hkr04[P]cpp-mcp/src/mcp_tool.cpp
tool_builder& tool_builder::with_array_param(const std::string& name, const std::string& description, const std::string& item_type, bool required) { json param = { {"type", "array"}, {"description", description}, {"items", { {"type", item_type} }} }; parameters_["properties"][name] = param; if (required) { required_params_.push_back(name); } return *this; }
O2
cpp
mcp::tool_builder::with_array_param(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x168, %rsp # imm = 0x168 movl %r8d, %ebp movq %rcx, %r12 movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %r14 leaq 0x19bd(%rip), %rsi # 0x49094 leaq 0xf0(%rsp), %rdi callq 0xcaee leaq 0x108(%rsp), %rdi leaq 0x1c3d(%rip), %rsi # 0x49330 callq 0xcfe2 leaq 0x120(%rsp), %rbx leaq 0xf0(%rsp), %rsi pushq $0x2 popq %rdx movq %rbx, %rdi callq 0xcafe leaq 0x138(%rsp), %rbx leaq 0x5774(%rip), %rsi # 0x4ce96 leaq 0xc0(%rsp), %rdi callq 0x39d04 leaq 0xd8(%rsp), %rdi movq %r13, %rsi callq 0x26422 leaq 0xc0(%rsp), %rsi pushq $0x2 popq %rdx movq %rbx, %rdi callq 0xcafe leaq 0x150(%rsp), %rbx leaq 0x9936(%rip), %rsi # 0x51097 leaq 0x90(%rsp), %rdi callq 0xcfe2 leaq 0x191f(%rip), %rsi # 0x49094 leaq 0x60(%rsp), %rdi callq 0xcaee leaq 0x78(%rsp), %rdi movq %r12, %rsi callq 0x26422 leaq 0x28(%rsp), %rdi leaq 0x60(%rsp), %rsi pushq $0x2 popq %rdx callq 0xcafe leaq 0xa8(%rsp), %rdi leaq 0x28(%rsp), %rsi pushq $0x1 popq %rdx callq 0xcafe leaq 0x90(%rsp), %rsi pushq $0x2 popq %rdx movq %rbx, %rdi callq 0xcafe leaq 0x8(%rsp), %rdi leaq 0x120(%rsp), %rsi pushq $0x3 popq %rdx pushq $0x1 popq %rcx pushq $0x2 popq %r8 callq 0xcb26 pushq $0x30 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x120, %rdi # imm = 0x120 callq 0xdc84 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x477e5 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x90, %rdi callq 0xdc84 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x47802 leaq 0x28(%rsp), %rdi callq 0xdc84 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x60, %rdi callq 0xdc84 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x47829 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0xc0, %rdi callq 0xdc84 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x47843 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0xf0, %rdi callq 0xdc84 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x47860 leaq 0x18(%rsp), %rdi leaq 0x8(%rsp), %rsi callq 0xcc82 leaq 0x40(%r14), %rdi leaq 0x97f8(%rip), %rsi # 0x5108c callq 0xcdcc movq %rax, %rbx leaq 0x40(%rsp), %rdi movq %r15, %rsi callq 0xa8c0 leaq 0x40(%rsp), %rsi movq %rbx, %rdi callq 0xf3a0 movb (%rax), %cl leaq 0x18(%rsp), %rbx movb (%rbx), %dl movb %dl, (%rax) movb %cl, (%rbx) movq 0x8(%rax), %rcx movq 0x8(%rbx), %rdx movq %rdx, 0x8(%rax) movq %rcx, 0x8(%rbx) leaq 0x40(%rsp), %rdi callq 0xac20 movq %rbx, %rdi callq 0xdc84 testb %bpl, %bpl je 0x478f6 leaq 0x50(%r14), %rdi movq %r15, %rsi callq 0x1922a leaq 0x8(%rsp), %rdi callq 0xdc84 movq %r14, %rax addq $0x168, %rsp # imm = 0x168 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 leaq 0x40(%rsp), %rdi callq 0xac20 jmp 0x47a7d movq %rax, %r14 pushq $0x30 popq %r15 leaq (%rsp,%r15), %rdi addq $0x120, %rdi # imm = 0x120 callq 0xdc84 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x4792e xorl %ebp, %ebp jmp 0x47952 movq %rax, %r14 movb $0x1, %bpl pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0x90, %rdi callq 0xdc84 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x47956 xorl %r15d, %r15d jmp 0x4797e movq %rax, %r14 movb $0x1, %r15b movb $0x1, %bpl leaq 0x28(%rsp), %rdi callq 0xdc84 jmp 0x47993 movq %rax, %r14 movb $0x1, %r15b movb $0x1, %bpl pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x60, %rdi callq 0xdc84 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x47997 testb %r15b, %r15b jne 0x479ca jmp 0x479e1 movq %rax, %r14 leaq 0x60(%rsp), %rdi callq 0xdc84 jmp 0x479c7 movq %rax, %r14 movb $0x1, %bpl leaq 0x90(%rsp), %rdi callq 0xdc84 jmp 0x479e1 jmp 0x479db movq %rax, %r14 movb $0x1, %bpl pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0xc0, %rdi callq 0xdc84 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x479e5 jmp 0x47a1b movq %rax, %r14 leaq 0xc0(%rsp), %rdi callq 0xdc84 jmp 0x47a18 jmp 0x47a15 movq %rax, %r14 movb $0x1, %bpl pushq $0x18 popq %r15 leaq (%rsp,%r15), %rdi addq $0xf0, %rdi callq 0xdc84 addq $-0x18, %r15 cmpq $-0x18, %r15 jne 0x47a1f leaq 0x120(%rsp), %r15 cmpq %rbx, %r15 setne %al andb %al, %bpl cmpb $0x1, %bpl jne 0x47a91 addq $-0x18, %rbx movq %rbx, %rdi callq 0xdc84 cmpq %r15, %rbx jne 0x47a50 jmp 0x47a91 movq %rax, %r14 leaq 0xf0(%rsp), %rdi jmp 0x47a8c movq %rax, %r14 jmp 0x47a91 movq %rax, %r14 jmp 0x47a87 movq %rax, %r14 leaq 0x18(%rsp), %rdi callq 0xdc84 leaq 0x8(%rsp), %rdi callq 0xdc84 movq %r14, %rdi callq 0xaac0 nop
_ZN3mcp12tool_builder16with_array_paramERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_b: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 168h mov ebp, r8d mov r12, rcx mov r13, rdx mov r15, rsi mov r14, rdi lea rsi, aType; "type" lea rdi, [rsp+198h+var_A8] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+198h+var_90] lea rsi, aArray; "array" call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rbx, [rsp+198h+var_78] lea rsi, [rsp+198h+var_A8] push 2 pop rdx mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea rbx, [rsp+198h+var_60] lea rsi, aDescription; "description" lea rdi, [rsp+198h+var_D8] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA12_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+198h+var_C0] mov rsi, r13 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ lea rsi, [rsp+198h+var_D8] push 2 pop rdx mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea rbx, [rsp+198h+var_48] lea rsi, aItems; "items" lea rdi, [rsp+198h+var_108] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rsi, aType; "type" lea rdi, [rsp+198h+var_138] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+198h+var_120] mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ lea rdi, [rsp+198h+var_170] lea rsi, [rsp+198h+var_138] push 2 pop rdx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea rdi, [rsp+198h+var_F0] lea rsi, [rsp+198h+var_170] push 1 pop rdx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea rsi, [rsp+198h+var_108] push 2 pop rdx mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea rdi, [rsp+198h+var_190] lea rsi, [rsp+198h+var_78] push 3 pop rdx push 1 pop rcx push 2 pop r8 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) push 30h ; '0' pop rbx loc_477E5: lea rdi, [rsp+rbx+198h+var_198] add rdi, 120h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_477E5 push 18h pop rbx loc_47802: lea rdi, [rsp+rbx+198h+var_198] add rdi, 90h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_47802 lea rdi, [rsp+198h+var_170] 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() push 18h pop rbx loc_47829: lea rdi, [rsp+rbx+198h+var_198] add rdi, 60h ; '`' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_47829 push 18h pop rbx loc_47843: lea rdi, [rsp+rbx+198h+var_198] add rdi, 0C0h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_47843 push 18h pop rbx loc_47860: lea rdi, [rsp+rbx+198h+var_198] add rdi, 0F0h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_47860 lea rdi, [rsp+198h+var_180] lea rsi, [rsp+198h+var_190] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) lea rdi, [r14+40h] lea rsi, aProperties; "properties" call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov rbx, rax lea rdi, [rsp+198h+var_158] mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) lea rsi, [rsp+198h+var_158] mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string) mov cl, [rax] lea rbx, [rsp+198h+var_180] mov dl, [rbx] mov [rax], dl mov [rbx], cl mov rcx, [rax+8] mov rdx, [rbx+8] mov [rax+8], rdx mov [rbx+8], rcx lea rdi, [rsp+198h+var_158]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() 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() test bpl, bpl jz short loc_478F6 lea rdi, [r14+50h] mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&) loc_478F6: lea rdi, [rsp+198h+var_190] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rax, r14 add rsp, 168h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax lea rdi, [rsp+arg_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_47A7D mov r14, rax push 30h ; '0' pop r15 loc_4792E: lea rdi, [rsp+r15+0] add rdi, 120h 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_4792E xor ebp, ebp jmp short loc_47952 mov r14, rax mov bpl, 1 loc_47952: push 18h pop r15 loc_47956: lea rdi, [rsp+r15+0] add rdi, 90h 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_47956 xor r15d, r15d jmp short loc_4797E mov r14, rax mov r15b, 1 mov bpl, 1 loc_4797E: lea rdi, [rsp+arg_20] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_47993 mov r14, rax mov r15b, 1 mov bpl, 1 loc_47993: push 18h pop r12 loc_47997: lea rdi, [rsp+r12+0] add rdi, 60h ; '`' 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_47997 test r15b, r15b jnz short loc_479CA jmp short loc_479E1 mov r14, rax lea rdi, [rsp+arg_58] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_479C7 mov r14, rax loc_479C7: mov bpl, 1 loc_479CA: lea rdi, [rsp+arg_88] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_479E1 jmp short $+2 loc_479DB: mov r14, rax mov bpl, 1 loc_479E1: push 18h pop r15 loc_479E5: lea rdi, [rsp+r15+0] add rdi, 0C0h 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_479E5 jmp short loc_47A1B mov r14, rax lea rdi, [rsp+arg_B8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_47A18 jmp short $+2 loc_47A15: mov r14, rax loc_47A18: mov bpl, 1 loc_47A1B: push 18h pop r15 loc_47A1F: lea rdi, [rsp+r15+0] add rdi, 0F0h 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_47A1F lea r15, [rsp+arg_118] cmp r15, rbx setnz al and bpl, al cmp bpl, 1 jnz short loc_47A91 loc_47A50: add rbx, 0FFFFFFFFFFFFFFE8h 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_47A50 jmp short loc_47A91 mov r14, rax lea rdi, [rsp+arg_E8] jmp short loc_47A8C mov r14, rax jmp short loc_47A91 mov r14, rax jmp short loc_47A87 mov r14, rax loc_47A7D: lea rdi, [rsp+arg_10] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_47A87: lea rdi, [rsp+arg_0] loc_47A8C: call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_47A91: mov rdi, r14 call __Unwind_Resume
long long mcp::tool_builder::with_array_param(long long a1, long long a2, long long a3, long long a4, char a5) { long long i; // rbx long long j; // rbx long long k; // rbx long long m; // rbx long long n; // rbx int v11; // edx int v12; // ecx int v13; // r8d int v14; // r9d long long v15; // rbx long long v16; // rax char v17; // cl long long v18; // rcx unsigned __int8 v20[16]; // [rsp+8h] [rbp-190h] BYREF _BYTE v21[8]; // [rsp+18h] [rbp-180h] BYREF long long v22; // [rsp+20h] [rbp-178h] _BYTE v23[24]; // [rsp+28h] [rbp-170h] BYREF _BYTE v24[32]; // [rsp+40h] [rbp-158h] BYREF _BYTE v25[24]; // [rsp+60h] [rbp-138h] BYREF _BYTE v26[24]; // [rsp+78h] [rbp-120h] BYREF _BYTE v27[24]; // [rsp+90h] [rbp-108h] BYREF _BYTE v28[24]; // [rsp+A8h] [rbp-F0h] BYREF _BYTE v29[24]; // [rsp+C0h] [rbp-D8h] BYREF _BYTE v30[24]; // [rsp+D8h] [rbp-C0h] BYREF _BYTE v31[24]; // [rsp+F0h] [rbp-A8h] BYREF _BYTE v32[24]; // [rsp+108h] [rbp-90h] BYREF _BYTE v33[24]; // [rsp+120h] [rbp-78h] BYREF _BYTE v34[24]; // [rsp+138h] [rbp-60h] BYREF _BYTE v35[72]; // [rsp+150h] [rbp-48h] BYREF ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v31); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v32); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( (long long)v33, (long long)v31, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA12_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v29); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_((long long)v30); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( (long long)v34, (long long)v29, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v27); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v25); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_((long long)v26); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( (long long)v23, (long long)v25, 2LL); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( (long long)v28, (long long)v23, 1LL); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( (long long)v35, (long long)v27, 2LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v20, v33, 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>::data::~data(&v33[i]); for ( j = 24LL; j != -24; j -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v27[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(v23); for ( k = 24LL; k != -24; k -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25[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>::data::~data(&v29[m]); for ( n = 24LL; n != -24; n -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v31[n]); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)v21, v20, v11, v12, v13, v14); v15 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( a1 + 64, (long long)"properties"); std::string::basic_string(v24); v16 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]( v15, v24); v17 = *(_BYTE *)v16; *(_BYTE *)v16 = v21[0]; v21[0] = v17; v18 = *(_QWORD *)(v16 + 8); *(_QWORD *)(v16 + 8) = v22; v22 = v18; std::string::~string(v24); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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); if ( a5 ) std::vector<std::string>::push_back(a1 + 80, a2); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v20); return a1; }
with_array_param: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x168 MOV EBP,R8D MOV R12,RCX MOV R13,RDX MOV R15,RSI MOV R14,RDI LAB_001476d0: LEA RSI,[0x149094] LEA RDI,[RSP + 0xf0] CALL 0x0010caee LEA RDI,[RSP + 0x108] LAB_001476ec: LEA RSI,[0x149330] CALL 0x0010cfe2 LAB_001476f8: LEA RBX,[RSP + 0x120] LEA RSI,[RSP + 0xf0] PUSH 0x2 POP RDX MOV RDI,RBX CALL 0x0010cafe LEA RBX,[RSP + 0x138] LAB_0014771b: LEA RSI,[0x14ce96] LEA RDI,[RSP + 0xc0] CALL 0x00139d04 LEA RDI,[RSP + 0xd8] LAB_00147737: MOV RSI,R13 CALL 0x00126422 LAB_0014773f: LEA RSI,[RSP + 0xc0] PUSH 0x2 POP RDX MOV RDI,RBX CALL 0x0010cafe LEA RBX,[RSP + 0x150] LAB_0014775a: LEA RSI,[0x151097] LEA RDI,[RSP + 0x90] CALL 0x0010cfe2 LAB_0014776e: LEA RSI,[0x149094] LEA RDI,[RSP + 0x60] CALL 0x0010caee LEA RDI,[RSP + 0x78] LAB_00147784: MOV RSI,R12 CALL 0x00126422 LAB_0014778c: LEA RDI,[RSP + 0x28] LEA RSI,[RSP + 0x60] PUSH 0x2 POP RDX CALL 0x0010cafe LAB_0014779e: LEA RDI,[RSP + 0xa8] LEA RSI,[RSP + 0x28] PUSH 0x1 POP RDX CALL 0x0010cafe LAB_001477b3: LEA RSI,[RSP + 0x90] PUSH 0x2 POP RDX MOV RDI,RBX CALL 0x0010cafe LAB_001477c6: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x120] PUSH 0x3 POP RDX PUSH 0x1 POP RCX PUSH 0x2 POP R8 CALL 0x0010cb26 PUSH 0x30 POP RBX LAB_001477e5: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x120 CALL 0x0010dc84 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x001477e5 PUSH 0x18 POP RBX LAB_00147802: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x90 CALL 0x0010dc84 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00147802 LEA RDI,[RSP + 0x28] CALL 0x0010dc84 PUSH 0x18 POP RBX LAB_00147829: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x60 CALL 0x0010dc84 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00147829 PUSH 0x18 POP RBX LAB_00147843: LEA RDI,[RSP + RBX*0x1] ADD RDI,0xc0 CALL 0x0010dc84 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00147843 PUSH 0x18 POP RBX LAB_00147860: LEA RDI,[RSP + RBX*0x1] ADD RDI,0xf0 CALL 0x0010dc84 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00147860 LAB_0014787a: LEA RDI,[RSP + 0x18] LEA RSI,[RSP + 0x8] CALL 0x0010cc82 LEA RDI,[R14 + 0x40] LAB_0014788d: LEA RSI,[0x15108c] CALL 0x0010cdcc MOV RBX,RAX LEA RDI,[RSP + 0x40] MOV RSI,R15 CALL 0x0010a8c0 LAB_001478a9: LEA RSI,[RSP + 0x40] MOV RDI,RBX CALL 0x0010f3a0 MOV CL,byte ptr [RAX] LEA RBX,[RSP + 0x18] MOV DL,byte ptr [RBX] MOV byte ptr [RAX],DL MOV byte ptr [RBX],CL MOV RCX,qword ptr [RAX + 0x8] MOV RDX,qword ptr [RBX + 0x8] MOV qword ptr [RAX + 0x8],RDX MOV qword ptr [RBX + 0x8],RCX LEA RDI,[RSP + 0x40] CALL 0x0010ac20 MOV RDI,RBX CALL 0x0010dc84 TEST BPL,BPL JZ 0x001478f6 LEA RDI,[R14 + 0x50] LAB_001478ee: MOV RSI,R15 CALL 0x0011922a LAB_001478f6: LEA RDI,[RSP + 0x8] CALL 0x0010dc84 MOV RAX,R14 ADD RSP,0x168 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* mcp::tool_builder::with_array_param(std::__cxx11::string const&, std::__cxx11::string const&, std::__cxx11::string const&, bool) */ tool_builder * __thiscall mcp::tool_builder::with_array_param (tool_builder *this,string *param_1,string *param_2,string *param_3,bool param_4) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> bVar1; int8 uVar2; basic_json *pbVar3; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *pbVar4; long lVar5; basic_json local_190 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_180 [8]; int8 local_178; data local_170 [24]; string local_158 [32]; data local_138 [24]; int1 local_120 [24]; data local_108 [24]; int1 local_f0 [24]; data local_d8 [24]; int1 local_c0 [24]; data local_a8 [24]; int1 local_90 [24]; data local_78 [24]; int1 local_60 [24]; int1 local_48 [24]; /* try { // try from 001476d0 to 001476e3 has its CatchHandler @ 00147a70 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_a8,&DAT_00149094); /* try { // try from 001476ec to 001476f7 has its CatchHandler @ 00147a63 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_90,"array"); /* try { // try from 001476f8 to 00147712 has its CatchHandler @ 00147a15 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_78,local_a8,2); /* try { // try from 0014771b to 0014772e has its CatchHandler @ 00147a13 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA12_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_d8,"description"); /* try { // try from 00147737 to 0014773e has its CatchHandler @ 00147a01 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ (local_c0,param_2); /* try { // try from 0014773f to 00147751 has its CatchHandler @ 001479db */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_60,local_d8,2); /* try { // try from 0014775a to 0014776d has its CatchHandler @ 001479d9 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA6_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_108,"items"); /* try { // try from 0014776e to 0014777e has its CatchHandler @ 001479c4 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_138,&DAT_00149094); /* try { // try from 00147784 to 0014778b has its CatchHandler @ 001479b5 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ (local_120,param_3); /* try { // try from 0014778c to 0014779d has its CatchHandler @ 0014798a */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_170,local_138,2); /* try { // try from 0014779e to 001477b2 has its CatchHandler @ 00147975 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_f0,local_170,1); /* try { // try from 001477b3 to 001477c5 has its CatchHandler @ 0014794c */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_48,local_108,2); /* try { // try from 001477c6 to 001477e1 has its CatchHandler @ 00147927 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_190,local_78,3,1,2); lVar5 = 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> ::data::~data(local_78 + lVar5); lVar5 = lVar5 + -0x18; } while (lVar5 != -0x18); lVar5 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_108 + lVar5); lVar5 = lVar5 + -0x18; } while (lVar5 != -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> ::data::~data(local_170); lVar5 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_138 + lVar5); lVar5 = lVar5 + -0x18; } while (lVar5 != -0x18); lVar5 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_d8 + lVar5); lVar5 = lVar5 + -0x18; } while (lVar5 != -0x18); lVar5 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_a8 + lVar5); lVar5 = lVar5 + -0x18; } while (lVar5 != -0x18); /* try { // try from 0014787a to 00147888 has its CatchHandler @ 00147a75 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_180,local_190); /* try { // try from 0014788d to 001478a8 has its CatchHandler @ 00147a7a */ pbVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const> ((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)(this + 0x40),"properties"); std::__cxx11::string::string(local_158,param_1); /* try { // try from 001478a9 to 001478b5 has its CatchHandler @ 00147915 */ pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)pbVar3,local_158); bVar1 = *pbVar4; *pbVar4 = local_180[0]; uVar2 = *(int8 *)(pbVar4 + 8); *(int8 *)(pbVar4 + 8) = local_178; local_180[0] = bVar1; local_178 = uVar2; std::__cxx11::string::~string(local_158); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_180); if (param_4) { /* try { // try from 001478ee to 001478f5 has its CatchHandler @ 00147a75 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x50), param_1); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_190); return this; }
2,129
js_reflect_has
bluesky950520[P]quickjs/quickjs.c
static JSValue js_reflect_has(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue obj, prop; JSAtom atom; int ret; obj = argv[0]; prop = argv[1]; if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT) return JS_ThrowTypeErrorNotAnObject(ctx); atom = JS_ValueToAtom(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) return JS_EXCEPTION; ret = JS_HasProperty(ctx, obj, atom); JS_FreeAtom(ctx, atom); if (ret < 0) return JS_EXCEPTION; else return js_bool(ret); }
O1
c
js_reflect_has: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdi, %r14 movq 0x8(%r8), %r15 cmpl $-0x1, %r15d jne 0x129f3 movq (%r8), %r12 movq 0x10(%r8), %rsi movq 0x18(%r8), %rdx movq %r14, %rdi callq 0x24093 pushq $0x6 popq %rbx testl %eax, %eax je 0x12a19 movl %eax, %ebp movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx movl %eax, %ecx callq 0xf753 movl %eax, %r15d movq %r14, %rdi movl %ebp, %esi callq 0x207d8 testl %r15d, %r15d js 0x12a19 setne %al movzbl %al, %r15d pushq $0x1 jmp 0x12a09 leaq 0x8c62b(%rip), %rsi # 0x9f025 xorl %r15d, %r15d movq %r14, %rdi xorl %eax, %eax callq 0x22567 pushq $0x6 popq %rbx movq %r15, %rax movq %rbx, %rdx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq xorl %r15d, %r15d jmp 0x12a0a
js_reflect_has: push rbp push r15 push r14 push r12 push rbx mov r14, rdi mov r15, [r8+8] cmp r15d, 0FFFFFFFFh jnz short loc_129F3 mov r12, [r8] mov rsi, [r8+10h] mov rdx, [r8+18h] mov rdi, r14 call JS_ValueToAtom push 6 pop rbx test eax, eax jz short loc_12A19 mov ebp, eax mov rdi, r14 mov rsi, r12 mov rdx, r15 mov ecx, eax call JS_HasProperty mov r15d, eax mov rdi, r14 mov esi, ebp call JS_FreeAtom test r15d, r15d js short loc_12A19 setnz al movzx r15d, al push 1 jmp short loc_12A09 loc_129F3: lea rsi, aOperandPrototy+20h; "not an object" xor r15d, r15d mov rdi, r14 xor eax, eax call JS_ThrowTypeError push 6 loc_12A09: pop rbx loc_12A0A: mov rax, r15 mov rdx, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_12A19: xor r15d, r15d jmp short loc_12A0A
_BOOL8 js_reflect_has(long long a1, long long a2, int a3, int a4, long long *a5, int a6) { long long v6; // r12 unsigned int v7; // eax unsigned int v8; // ebp int HasProperty; // r15d long long v10; // r15 if ( (unsigned int)a5[1] == -1 ) { v6 = *a5; v7 = JS_ValueToAtom(a1, a5[2], a5[3]); if ( v7 && (v8 = v7, HasProperty = JS_HasProperty(a1, v6, -1, v7), JS_FreeAtom(a1, v8), HasProperty >= 0) ) return HasProperty != 0; else return 0LL; } else { v10 = 0LL; JS_ThrowTypeError(a1, (unsigned int)"not an object", a3, a4, (_DWORD)a5, a6); } return v10; }
js_reflect_has: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14,RDI MOV R15,qword ptr [R8 + 0x8] CMP R15D,-0x1 JNZ 0x001129f3 MOV R12,qword ptr [R8] MOV RSI,qword ptr [R8 + 0x10] MOV RDX,qword ptr [R8 + 0x18] MOV RDI,R14 CALL 0x00124093 PUSH 0x6 POP RBX TEST EAX,EAX JZ 0x00112a19 MOV EBP,EAX MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 MOV ECX,EAX CALL 0x0010f753 MOV R15D,EAX MOV RDI,R14 MOV ESI,EBP CALL 0x001207d8 TEST R15D,R15D JS 0x00112a19 SETNZ AL MOVZX R15D,AL PUSH 0x1 JMP 0x00112a09 LAB_001129f3: LEA RSI,[0x19f025] XOR R15D,R15D MOV RDI,R14 XOR EAX,EAX CALL 0x00122567 PUSH 0x6 LAB_00112a09: POP RBX LAB_00112a0a: MOV RAX,R15 MOV RDX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00112a19: XOR R15D,R15D JMP 0x00112a0a
bool js_reflect_has(int8 param_1) { int8 uVar1; int8 uVar2; int iVar3; int iVar4; int8 *in_R8; uVar1 = in_R8[1]; if ((int)uVar1 == -1) { uVar2 = *in_R8; iVar3 = JS_ValueToAtom(param_1,in_R8[2],in_R8[3]); if (iVar3 != 0) { iVar4 = JS_HasProperty(param_1,uVar2,uVar1,iVar3); JS_FreeAtom(param_1,iVar3); if (-1 < iVar4) { return iVar4 != 0; } } } else { JS_ThrowTypeError(param_1,"not an object"); } return false; }
2,130
js_reflect_has
bluesky950520[P]quickjs/quickjs.c
static JSValue js_reflect_has(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue obj, prop; JSAtom atom; int ret; obj = argv[0]; prop = argv[1]; if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT) return JS_ThrowTypeErrorNotAnObject(ctx); atom = JS_ValueToAtom(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) return JS_EXCEPTION; ret = JS_HasProperty(ctx, obj, atom); JS_FreeAtom(ctx, atom); if (ret < 0) return JS_EXCEPTION; else return js_bool(ret); }
O3
c
js_reflect_has: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdi, %r14 movq 0x8(%r8), %r15 cmpl $-0x1, %r15d jne 0x1309f movq (%r8), %r12 movq 0x10(%r8), %rsi movq 0x18(%r8), %rdx movq %r14, %rdi callq 0x2470d pushq $0x6 popq %rbx testl %eax, %eax je 0x130c5 movl %eax, %ebp movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx movl %eax, %ecx callq 0xf926 movl %eax, %r15d movq %r14, %rdi movl %ebp, %esi callq 0x20f31 testl %r15d, %r15d js 0x130c5 setne %al movzbl %al, %r15d pushq $0x1 jmp 0x130b5 leaq 0x8ef3f(%rip), %rsi # 0xa1fe5 xorl %r15d, %r15d movq %r14, %rdi xorl %eax, %eax callq 0x22d8b pushq $0x6 popq %rbx movq %r15, %rax movq %rbx, %rdx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq xorl %r15d, %r15d jmp 0x130b6
js_reflect_has: push rbp push r15 push r14 push r12 push rbx mov r14, rdi mov r15, [r8+8] cmp r15d, 0FFFFFFFFh jnz short loc_1309F mov r12, [r8] mov rsi, [r8+10h] mov rdx, [r8+18h] mov rdi, r14 call JS_ValueToAtom push 6 pop rbx test eax, eax jz short loc_130C5 mov ebp, eax mov rdi, r14 mov rsi, r12 mov rdx, r15 mov ecx, eax call JS_HasProperty mov r15d, eax mov rdi, r14 mov esi, ebp call JS_FreeAtom test r15d, r15d js short loc_130C5 setnz al movzx r15d, al push 1 jmp short loc_130B5 loc_1309F: lea rsi, aOperandPrototy+20h; "not an object" xor r15d, r15d mov rdi, r14 xor eax, eax call JS_ThrowTypeError push 6 loc_130B5: pop rbx loc_130B6: mov rax, r15 mov rdx, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_130C5: xor r15d, r15d jmp short loc_130B6
_BOOL8 js_reflect_has(long long a1, long long a2, int a3, int a4, long long *a5, int a6) { long long v6; // r12 unsigned int v7; // eax unsigned int v8; // ebp int HasProperty; // r15d long long v10; // r15 if ( (unsigned int)a5[1] == -1 ) { v6 = *a5; v7 = JS_ValueToAtom(a1, a5[2], a5[3]); if ( v7 && (v8 = v7, HasProperty = JS_HasProperty(a1, v6, -1, v7), JS_FreeAtom(a1, v8), HasProperty >= 0) ) return HasProperty != 0; else return 0LL; } else { v10 = 0LL; JS_ThrowTypeError(a1, (unsigned int)"not an object", a3, a4, (_DWORD)a5, a6); } return v10; }
js_reflect_has: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14,RDI MOV R15,qword ptr [R8 + 0x8] CMP R15D,-0x1 JNZ 0x0011309f MOV R12,qword ptr [R8] MOV RSI,qword ptr [R8 + 0x10] MOV RDX,qword ptr [R8 + 0x18] MOV RDI,R14 CALL 0x0012470d PUSH 0x6 POP RBX TEST EAX,EAX JZ 0x001130c5 MOV EBP,EAX MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 MOV ECX,EAX CALL 0x0010f926 MOV R15D,EAX MOV RDI,R14 MOV ESI,EBP CALL 0x00120f31 TEST R15D,R15D JS 0x001130c5 SETNZ AL MOVZX R15D,AL PUSH 0x1 JMP 0x001130b5 LAB_0011309f: LEA RSI,[0x1a1fe5] XOR R15D,R15D MOV RDI,R14 XOR EAX,EAX CALL 0x00122d8b PUSH 0x6 LAB_001130b5: POP RBX LAB_001130b6: MOV RAX,R15 MOV RDX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001130c5: XOR R15D,R15D JMP 0x001130b6
bool js_reflect_has(int8 param_1) { int8 uVar1; int8 uVar2; int iVar3; int iVar4; int8 *in_R8; uVar1 = in_R8[1]; if ((int)uVar1 == -1) { uVar2 = *in_R8; iVar3 = JS_ValueToAtom(param_1,in_R8[2],in_R8[3]); if (iVar3 != 0) { iVar4 = JS_HasProperty(param_1,uVar2,uVar1,iVar3); JS_FreeAtom(param_1,iVar3); if (-1 < iVar4) { return iVar4 != 0; } } } else { JS_ThrowTypeError(param_1,"not an object"); } return false; }
2,131
change_pagecache_param
eloqsql/storage/maria/ma_pagecache.c
void change_pagecache_param(PAGECACHE *pagecache, uint division_limit, uint age_threshold) { DBUG_ENTER("change_pagecache_param"); pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (division_limit) pagecache->min_warm_blocks= (pagecache->disk_blocks * division_limit / 100 + 1); if (age_threshold) pagecache->age_threshold= (pagecache->disk_blocks * age_threshold / 100); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); DBUG_VOID_RETURN; }
O0
c
change_pagecache_param: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rdi addq $0xc8, %rdi leaq 0x1166ae(%rip), %rsi # 0x152172 movl $0x46d, %edx # imm = 0x46D callq 0x3bb40 cmpl $0x0, -0xc(%rbp) je 0x3bafc movq -0x8(%rbp), %rax movq 0x40(%rax), %rax movl -0xc(%rbp), %ecx imulq %rcx, %rax movl $0x64, %ecx cqto idivq %rcx movq %rax, %rcx addq $0x1, %rcx movq -0x8(%rbp), %rax movq %rcx, 0x8(%rax) cmpl $0x0, -0x10(%rbp) je 0x3bb26 movq -0x8(%rbp), %rax movq 0x40(%rax), %rax movl -0x10(%rbp), %ecx imulq %rcx, %rax movl $0x64, %ecx cqto idivq %rcx movq %rax, %rcx movq -0x8(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x8(%rbp), %rdi addq $0xc8, %rdi callq 0x3bbb0 jmp 0x3bb38 addq $0x10, %rsp popq %rbp retq nop
change_pagecache_param: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov rdi, [rbp+var_8] add rdi, 0C8h lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 46Dh call inline_mysql_mutex_lock_0 cmp [rbp+var_C], 0 jz short loc_3BAFC mov rax, [rbp+var_8] mov rax, [rax+40h] mov ecx, [rbp+var_C] imul rax, rcx mov ecx, 64h ; 'd' cqo idiv rcx mov rcx, rax add rcx, 1 mov rax, [rbp+var_8] mov [rax+8], rcx loc_3BAFC: cmp [rbp+var_10], 0 jz short loc_3BB26 mov rax, [rbp+var_8] mov rax, [rax+40h] mov ecx, [rbp+var_10] imul rax, rcx mov ecx, 64h ; 'd' cqo idiv rcx mov rcx, rax mov rax, [rbp+var_8] mov [rax+10h], rcx loc_3BB26: mov rdi, [rbp+var_8] add rdi, 0C8h call inline_mysql_mutex_unlock_0 jmp short $+2 loc_3BB38: add rsp, 10h pop rbp retn
long long change_pagecache_param(_QWORD *a1, unsigned int a2, unsigned int a3) { long long v3; // rdx inline_mysql_mutex_lock_0(a1 + 25, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 1133LL); if ( a2 ) { v3 = a2 * a1[8] % 100LL; a1[1] = a2 * a1[8] / 100LL + 1; } if ( a3 ) { v3 = a3 * a1[8] % 100LL; a1[2] = a3 * a1[8] / 100LL; } return inline_mysql_mutex_unlock_0( a1 + 25, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", v3); }
change_pagecache_param: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 LEA RSI,[0x252172] MOV EDX,0x46d CALL 0x0013bb40 CMP dword ptr [RBP + -0xc],0x0 JZ 0x0013bafc MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x40] MOV ECX,dword ptr [RBP + -0xc] IMUL RAX,RCX MOV ECX,0x64 CQO IDIV RCX MOV RCX,RAX ADD RCX,0x1 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],RCX LAB_0013bafc: CMP dword ptr [RBP + -0x10],0x0 JZ 0x0013bb26 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x40] MOV ECX,dword ptr [RBP + -0x10] IMUL RAX,RCX MOV ECX,0x64 CQO IDIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],RCX LAB_0013bb26: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 CALL 0x0013bbb0 JMP 0x0013bb38 LAB_0013bb38: ADD RSP,0x10 POP RBP RET
void change_pagecache_param(long param_1,uint param_2,uint param_3) { inline_mysql_mutex_lock (param_1 + 200,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x46d); if (param_2 != 0) { *(long *)(param_1 + 8) = (long)(*(long *)(param_1 + 0x40) * (ulong)param_2) / 100 + 1; } if (param_3 != 0) { *(long *)(param_1 + 0x10) = (long)(*(long *)(param_1 + 0x40) * (ulong)param_3) / 100; } inline_mysql_mutex_unlock(param_1 + 200); return; }
2,132
ecp_double_add_mxz
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/ecp.c
static int ecp_double_add_mxz(const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, mbedtls_ecp_point *S, const mbedtls_ecp_point *P, const mbedtls_ecp_point *Q, const mbedtls_mpi *d) { #if defined(MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT) if (mbedtls_internal_ecp_grp_capable(grp)) { return mbedtls_internal_ecp_double_add_mxz(grp, R, S, P, Q, d); } #endif /* MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT */ #if defined(MBEDTLS_ECP_NO_FALLBACK) && defined(MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT) return MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE; #else int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_mpi A, AA, B, BB, E, C, D, DA, CB; mbedtls_mpi_init(&A); mbedtls_mpi_init(&AA); mbedtls_mpi_init(&B); mbedtls_mpi_init(&BB); mbedtls_mpi_init(&E); mbedtls_mpi_init(&C); mbedtls_mpi_init(&D); mbedtls_mpi_init(&DA); mbedtls_mpi_init(&CB); MBEDTLS_MPI_CHK(mbedtls_mpi_add_mod(grp, &A, &P->X, &P->Z)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &AA, &A, &A)); MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mod(grp, &B, &P->X, &P->Z)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &BB, &B, &B)); MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mod(grp, &E, &AA, &BB)); MBEDTLS_MPI_CHK(mbedtls_mpi_add_mod(grp, &C, &Q->X, &Q->Z)); MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mod(grp, &D, &Q->X, &Q->Z)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &DA, &D, &A)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &CB, &C, &B)); MBEDTLS_MPI_CHK(mbedtls_mpi_add_mod(grp, &S->X, &DA, &CB)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &S->X, &S->X, &S->X)); MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mod(grp, &S->Z, &DA, &CB)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &S->Z, &S->Z, &S->Z)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &S->Z, d, &S->Z)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &R->X, &AA, &BB)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &R->Z, &grp->A, &E)); MBEDTLS_MPI_CHK(mbedtls_mpi_add_mod(grp, &R->Z, &BB, &R->Z)); MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mod(grp, &R->Z, &E, &R->Z)); cleanup: mbedtls_mpi_free(&A); mbedtls_mpi_free(&AA); mbedtls_mpi_free(&B); mbedtls_mpi_free(&BB); mbedtls_mpi_free(&E); mbedtls_mpi_free(&C); mbedtls_mpi_free(&D); mbedtls_mpi_free(&DA); mbedtls_mpi_free(&CB); return ret; #endif /* !defined(MBEDTLS_ECP_NO_FALLBACK) || !defined(MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT) */ }
O3
c
ecp_double_add_mxz: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x108, %rsp # imm = 0x108 movq %r9, 0x38(%rsp) movq %r8, 0x40(%rsp) movq %rcx, %rbx movq %rdx, 0x10(%rsp) movq %rsi, %r14 movq %rdi, %r13 leaq 0xc0(%rsp), %r15 movq %r15, %rdi callq 0x7defc leaq 0xa8(%rsp), %rdi callq 0x7defc leaq 0x20(%rsp), %rdi callq 0x7defc leaq 0x48(%rsp), %rdi callq 0x7defc leaq 0x90(%rsp), %rdi callq 0x7defc leaq 0xf0(%rsp), %rdi callq 0x7defc leaq 0xd8(%rsp), %rdi callq 0x7defc leaq 0x78(%rsp), %rdi callq 0x7defc leaq 0x60(%rsp), %rdi callq 0x7defc leaq 0x30(%rbx), %r12 movq %r15, %rdi movq %rbx, %rsi movq %r12, %rdx callq 0x7f3d1 testl %eax, %eax jne 0x86ae7 movq %r14, 0x18(%rsp) movq %r13, 0x8(%rsp) leaq 0x8(%r13), %r15 leaq 0xc0(%rsp), %r14 movq %r14, %rdi movq %r15, %rsi callq 0x7f0b0 testl %eax, %eax js 0x86897 movq %r14, %rdi movq %r14, %rsi movq %r15, %rdx callq 0x7f27f testl %eax, %eax je 0x86871 jmp 0x86ae7 leaq 0xa8(%rsp), %rsi leaq 0xc0(%rsp), %rcx movq 0x8(%rsp), %r14 movq %r14, %rdi movq %rcx, %rdx callq 0x86bb5 testl %eax, %eax jne 0x86ae7 leaq 0x20(%rsp), %rdi movq %rbx, %rsi movq %r12, %rdx callq 0x7f45e testl %eax, %eax jne 0x86ae7 leaq 0x20(%rsp), %rbx cmpl $0x0, 0x20(%rsp) jns 0x8690a movq %rbx, %rdi xorl %esi, %esi callq 0x7f149 testl %eax, %eax je 0x8690a movq %rbx, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x7f3d1 movl %eax, %ebp testl %eax, %eax je 0x868dc jmp 0x86ae9 leaq 0x48(%rsp), %rsi leaq 0x20(%rsp), %rcx movq %r14, %rdi movq %rcx, %rdx callq 0x86bb5 testl %eax, %eax jne 0x86ae7 leaq 0x90(%rsp), %rsi leaq 0xa8(%rsp), %rdx leaq 0x48(%rsp), %rcx movq %r14, %rdi callq 0x86d03 testl %eax, %eax jne 0x86ae7 movq 0x40(%rsp), %r15 leaq 0x30(%r15), %rbx leaq 0xf0(%rsp), %rsi movq %r14, %rdi movq %r15, %rdx movq %rbx, %rcx callq 0x86cb6 testl %eax, %eax jne 0x86ae7 leaq 0xd8(%rsp), %rsi movq %r14, %rdi movq %r15, %rdx movq %rbx, %rcx callq 0x86d03 testl %eax, %eax jne 0x86ae7 leaq 0x78(%rsp), %rsi leaq 0xd8(%rsp), %rdx leaq 0xc0(%rsp), %rcx movq %r14, %rdi callq 0x86bb5 testl %eax, %eax jne 0x86ae7 leaq 0x60(%rsp), %rsi leaq 0xf0(%rsp), %rdx leaq 0x20(%rsp), %rcx movq %r14, %rdi callq 0x86bb5 testl %eax, %eax jne 0x86ae7 leaq 0x78(%rsp), %rdx leaq 0x60(%rsp), %rcx movq %r14, %rdi movq 0x10(%rsp), %rsi callq 0x86cb6 testl %eax, %eax jne 0x86ae7 movq 0x8(%rsp), %rdi movq 0x10(%rsp), %rcx movq %rcx, %rsi movq %rcx, %rdx callq 0x86bb5 testl %eax, %eax jne 0x86ae7 movq 0x10(%rsp), %rsi addq $0x30, %rsi leaq 0x78(%rsp), %rdx leaq 0x60(%rsp), %rcx movq 0x8(%rsp), %rdi movq %rsi, %rbx callq 0x86d03 testl %eax, %eax jne 0x86ae7 movq 0x8(%rsp), %rdi movq %rbx, %rcx movq %rbx, %rsi movq %rbx, %rdx callq 0x86bb5 testl %eax, %eax jne 0x86ae7 movq 0x8(%rsp), %rdi movq %rbx, %rcx movq %rbx, %rsi movq 0x38(%rsp), %rdx callq 0x86bb5 testl %eax, %eax jne 0x86ae7 leaq 0xa8(%rsp), %rdx leaq 0x48(%rsp), %rcx movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi callq 0x86bb5 testl %eax, %eax jne 0x86ae7 movq 0x18(%rsp), %rsi addq $0x30, %rsi movq 0x8(%rsp), %rdi leaq 0x20(%rdi), %rdx leaq 0x90(%rsp), %rcx movq %rsi, %rbx callq 0x86bb5 testl %eax, %eax jne 0x86ae7 leaq 0x48(%rsp), %rdx movq 0x8(%rsp), %rdi movq %rbx, %rcx movq %rbx, %rsi callq 0x86cb6 testl %eax, %eax jne 0x86ae7 leaq 0x90(%rsp), %rdx movq 0x8(%rsp), %rdi movq %rbx, %rcx movq %rbx, %rsi callq 0x86bb5 movl %eax, %ebp leaq 0xc0(%rsp), %rdi callq 0x7df0a leaq 0xa8(%rsp), %rdi callq 0x7df0a leaq 0x20(%rsp), %rdi callq 0x7df0a leaq 0x48(%rsp), %rdi callq 0x7df0a leaq 0x90(%rsp), %rdi callq 0x7df0a leaq 0xf0(%rsp), %rdi callq 0x7df0a leaq 0xd8(%rsp), %rdi callq 0x7df0a leaq 0x78(%rsp), %rdi callq 0x7df0a leaq 0x60(%rsp), %rdi callq 0x7df0a movl %ebp, %eax addq $0x108, %rsp # imm = 0x108 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ecp_double_add_mxz: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 108h mov [rsp+138h+var_100], r9 mov [rsp+138h+var_F8], r8 mov rbx, rcx mov [rsp+138h+var_128], rdx mov r14, rsi mov r13, rdi lea r15, [rsp+138h+var_78] mov rdi, r15 call mbedtls_mpi_init lea rdi, [rsp+138h+var_90] call mbedtls_mpi_init lea rdi, [rsp+138h+var_118] call mbedtls_mpi_init lea rdi, [rsp+138h+var_F0] call mbedtls_mpi_init lea rdi, [rsp+138h+var_A8] call mbedtls_mpi_init lea rdi, [rsp+138h+var_48] call mbedtls_mpi_init lea rdi, [rsp+138h+var_60] call mbedtls_mpi_init lea rdi, [rsp+138h+var_C0] call mbedtls_mpi_init lea rdi, [rsp+138h+var_D8] call mbedtls_mpi_init lea r12, [rbx+30h] mov rdi, r15 mov rsi, rbx mov rdx, r12 call mbedtls_mpi_add_mpi test eax, eax jnz loc_86AE7 mov [rsp+138h+var_120], r14 mov [rsp+138h+var_130], r13 lea r15, [r13+8] lea r14, [rsp+138h+var_78] loc_86871: mov rdi, r14 mov rsi, r15 call mbedtls_mpi_cmp_mpi test eax, eax js short loc_86897 mov rdi, r14 mov rsi, r14 mov rdx, r15 call mbedtls_mpi_sub_abs test eax, eax jz short loc_86871 jmp loc_86AE7 loc_86897: lea rsi, [rsp+138h+var_90] lea rcx, [rsp+138h+var_78] mov r14, [rsp+138h+var_130] mov rdi, r14 mov rdx, rcx call mbedtls_mpi_mul_mod test eax, eax jnz loc_86AE7 lea rdi, [rsp+138h+var_118] mov rsi, rbx mov rdx, r12 call mbedtls_mpi_sub_mpi test eax, eax jnz loc_86AE7 lea rbx, [rsp+138h+var_118] loc_868DC: cmp [rsp+138h+var_118], 0 jns short loc_8690A mov rdi, rbx xor esi, esi call mbedtls_mpi_cmp_int test eax, eax jz short loc_8690A mov rdi, rbx mov rsi, rbx mov rdx, r15 call mbedtls_mpi_add_mpi mov ebp, eax test eax, eax jz short loc_868DC jmp loc_86AE9 loc_8690A: lea rsi, [rsp+138h+var_F0] lea rcx, [rsp+138h+var_118] mov rdi, r14 mov rdx, rcx call mbedtls_mpi_mul_mod test eax, eax jnz loc_86AE7 lea rsi, [rsp+138h+var_A8] lea rdx, [rsp+138h+var_90] lea rcx, [rsp+138h+var_F0] mov rdi, r14 call mbedtls_mpi_sub_mod test eax, eax jnz loc_86AE7 mov r15, [rsp+138h+var_F8] lea rbx, [r15+30h] lea rsi, [rsp+138h+var_48] mov rdi, r14 mov rdx, r15 mov rcx, rbx call mbedtls_mpi_add_mod test eax, eax jnz loc_86AE7 lea rsi, [rsp+138h+var_60] mov rdi, r14 mov rdx, r15 mov rcx, rbx call mbedtls_mpi_sub_mod test eax, eax jnz loc_86AE7 lea rsi, [rsp+138h+var_C0] lea rdx, [rsp+138h+var_60] lea rcx, [rsp+138h+var_78] mov rdi, r14 call mbedtls_mpi_mul_mod test eax, eax jnz loc_86AE7 lea rsi, [rsp+138h+var_D8] lea rdx, [rsp+138h+var_48] lea rcx, [rsp+138h+var_118] mov rdi, r14 call mbedtls_mpi_mul_mod test eax, eax jnz loc_86AE7 lea rdx, [rsp+138h+var_C0] lea rcx, [rsp+138h+var_D8] mov rdi, r14 mov rsi, [rsp+138h+var_128] call mbedtls_mpi_add_mod test eax, eax jnz loc_86AE7 mov rdi, [rsp+138h+var_130] mov rcx, [rsp+138h+var_128] mov rsi, rcx mov rdx, rcx call mbedtls_mpi_mul_mod test eax, eax jnz loc_86AE7 mov rsi, [rsp+138h+var_128] add rsi, 30h ; '0' lea rdx, [rsp+138h+var_C0] lea rcx, [rsp+138h+var_D8] mov rdi, [rsp+138h+var_130] mov rbx, rsi call mbedtls_mpi_sub_mod test eax, eax jnz loc_86AE7 mov rdi, [rsp+138h+var_130] mov rcx, rbx mov rsi, rbx mov rdx, rbx call mbedtls_mpi_mul_mod test eax, eax jnz loc_86AE7 mov rdi, [rsp+138h+var_130] mov rcx, rbx mov rsi, rbx mov rdx, [rsp+138h+var_100] call mbedtls_mpi_mul_mod test eax, eax jnz short loc_86AE7 lea rdx, [rsp+138h+var_90] lea rcx, [rsp+138h+var_F0] mov rdi, [rsp+138h+var_130] mov rsi, [rsp+138h+var_120] call mbedtls_mpi_mul_mod test eax, eax jnz short loc_86AE7 mov rsi, [rsp+138h+var_120] add rsi, 30h ; '0' mov rdi, [rsp+138h+var_130] lea rdx, [rdi+20h] lea rcx, [rsp+138h+var_A8] mov rbx, rsi call mbedtls_mpi_mul_mod test eax, eax jnz short loc_86AE7 lea rdx, [rsp+138h+var_F0] mov rdi, [rsp+138h+var_130] mov rcx, rbx mov rsi, rbx call mbedtls_mpi_add_mod test eax, eax jnz short loc_86AE7 lea rdx, [rsp+138h+var_A8] mov rdi, [rsp+138h+var_130] mov rcx, rbx mov rsi, rbx call mbedtls_mpi_mul_mod loc_86AE7: mov ebp, eax loc_86AE9: lea rdi, [rsp+138h+var_78] call mbedtls_mpi_free lea rdi, [rsp+138h+var_90] call mbedtls_mpi_free lea rdi, [rsp+138h+var_118] call mbedtls_mpi_free lea rdi, [rsp+138h+var_F0] call mbedtls_mpi_free lea rdi, [rsp+138h+var_A8] call mbedtls_mpi_free lea rdi, [rsp+138h+var_48] call mbedtls_mpi_free lea rdi, [rsp+138h+var_60] call mbedtls_mpi_free lea rdi, [rsp+138h+var_C0] call mbedtls_mpi_free lea rdi, [rsp+138h+var_D8] call mbedtls_mpi_free mov eax, ebp add rsp, 108h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ecp_double_add_mxz(long long a1, long long a2, long long a3, int *a4, long long a5, long long a6) { unsigned int v7; // eax unsigned int v8; // ebp long long v9; // r15 long long v10; // rbx long long v11; // rbx long long v12; // rbx _QWORD v15[3]; // [rsp+20h] [rbp-118h] BYREF long long v16; // [rsp+38h] [rbp-100h] long long v17; // [rsp+40h] [rbp-F8h] _BYTE v18[24]; // [rsp+48h] [rbp-F0h] BYREF _BYTE v19[24]; // [rsp+60h] [rbp-D8h] BYREF _BYTE v20[24]; // [rsp+78h] [rbp-C0h] BYREF _BYTE v21[24]; // [rsp+90h] [rbp-A8h] BYREF _BYTE v22[24]; // [rsp+A8h] [rbp-90h] BYREF _QWORD v23[3]; // [rsp+C0h] [rbp-78h] BYREF _BYTE v24[24]; // [rsp+D8h] [rbp-60h] BYREF _BYTE v25[72]; // [rsp+F0h] [rbp-48h] BYREF v16 = a6; v17 = a5; mbedtls_mpi_init((long long)v23); mbedtls_mpi_init((long long)v22); mbedtls_mpi_init((long long)v15); mbedtls_mpi_init((long long)v18); mbedtls_mpi_init((long long)v21); mbedtls_mpi_init((long long)v25); mbedtls_mpi_init((long long)v24); mbedtls_mpi_init((long long)v20); mbedtls_mpi_init((long long)v19); v7 = mbedtls_mpi_add_mpi((long long)v23, (long long)a4, (long long)(a4 + 12)); if ( !v7 ) { while ( (int)mbedtls_mpi_cmp_mpi(v23, a1 + 8) >= 0 ) { v7 = mbedtls_mpi_sub_abs((long long)v23, (long long)v23, a1 + 8); if ( v7 ) goto LABEL_26; } v7 = mbedtls_mpi_mul_mod(a1, v22, v23, v23); if ( !v7 ) { v7 = mbedtls_mpi_sub_mpi((int *)v15, a4, a4 + 12); if ( !v7 ) { while ( SLODWORD(v15[0]) < 0 && (unsigned int)mbedtls_mpi_cmp_int(v15, 0LL) ) { v8 = mbedtls_mpi_add_mpi((long long)v15, (long long)v15, a1 + 8); if ( v8 ) goto LABEL_27; } v7 = mbedtls_mpi_mul_mod(a1, v18, v15, v15); if ( !v7 ) { v7 = mbedtls_mpi_sub_mod(a1, v21, v22, v18); if ( !v7 ) { v9 = v17; v10 = v17 + 48; v7 = mbedtls_mpi_add_mod(a1, v25, v17, v17 + 48); if ( !v7 ) { v7 = mbedtls_mpi_sub_mod(a1, v24, v9, v10); if ( !v7 ) { v7 = mbedtls_mpi_mul_mod(a1, v20, v24, v23); if ( !v7 ) { v7 = mbedtls_mpi_mul_mod(a1, v19, v25, v15); if ( !v7 ) { v7 = mbedtls_mpi_add_mod(a1, a3, v20, v19); if ( !v7 ) { v7 = mbedtls_mpi_mul_mod(a1, a3, a3, a3); if ( !v7 ) { v11 = a3 + 48; v7 = mbedtls_mpi_sub_mod(a1, a3 + 48, v20, v19); if ( !v7 ) { v7 = mbedtls_mpi_mul_mod(a1, v11, v11, v11); if ( !v7 ) { v7 = mbedtls_mpi_mul_mod(a1, v11, v16, v11); if ( !v7 ) { v7 = mbedtls_mpi_mul_mod(a1, a2, v22, v18); if ( !v7 ) { v12 = a2 + 48; v7 = mbedtls_mpi_mul_mod(a1, a2 + 48, a1 + 32, v21); if ( !v7 ) { v7 = mbedtls_mpi_add_mod(a1, v12, v18, v12); if ( !v7 ) v7 = mbedtls_mpi_mul_mod(a1, v12, v21, v12); } } } } } } } } } } } } } } } } LABEL_26: v8 = v7; LABEL_27: mbedtls_mpi_free((long long)v23); mbedtls_mpi_free((long long)v22); mbedtls_mpi_free((long long)v15); mbedtls_mpi_free((long long)v18); mbedtls_mpi_free((long long)v21); mbedtls_mpi_free((long long)v25); mbedtls_mpi_free((long long)v24); mbedtls_mpi_free((long long)v20); mbedtls_mpi_free((long long)v19); return v8; }
ecp_double_add_mxz: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x108 MOV qword ptr [RSP + 0x38],R9 MOV qword ptr [RSP + 0x40],R8 MOV RBX,RCX MOV qword ptr [RSP + 0x10],RDX MOV R14,RSI MOV R13,RDI LEA R15,[RSP + 0xc0] MOV RDI,R15 CALL 0x0017defc LEA RDI,[RSP + 0xa8] CALL 0x0017defc LEA RDI,[RSP + 0x20] CALL 0x0017defc LEA RDI,[RSP + 0x48] CALL 0x0017defc LEA RDI,[RSP + 0x90] CALL 0x0017defc LEA RDI,[RSP + 0xf0] CALL 0x0017defc LEA RDI,[RSP + 0xd8] CALL 0x0017defc LEA RDI,[RSP + 0x78] CALL 0x0017defc LEA RDI,[RSP + 0x60] CALL 0x0017defc LEA R12,[RBX + 0x30] MOV RDI,R15 MOV RSI,RBX MOV RDX,R12 CALL 0x0017f3d1 TEST EAX,EAX JNZ 0x00186ae7 MOV qword ptr [RSP + 0x18],R14 MOV qword ptr [RSP + 0x8],R13 LEA R15,[R13 + 0x8] LEA R14,[RSP + 0xc0] LAB_00186871: MOV RDI,R14 MOV RSI,R15 CALL 0x0017f0b0 TEST EAX,EAX JS 0x00186897 MOV RDI,R14 MOV RSI,R14 MOV RDX,R15 CALL 0x0017f27f TEST EAX,EAX JZ 0x00186871 JMP 0x00186ae7 LAB_00186897: LEA RSI,[RSP + 0xa8] LEA RCX,[RSP + 0xc0] MOV R14,qword ptr [RSP + 0x8] MOV RDI,R14 MOV RDX,RCX CALL 0x00186bb5 TEST EAX,EAX JNZ 0x00186ae7 LEA RDI,[RSP + 0x20] MOV RSI,RBX MOV RDX,R12 CALL 0x0017f45e TEST EAX,EAX JNZ 0x00186ae7 LEA RBX,[RSP + 0x20] LAB_001868dc: CMP dword ptr [RSP + 0x20],0x0 JNS 0x0018690a MOV RDI,RBX XOR ESI,ESI CALL 0x0017f149 TEST EAX,EAX JZ 0x0018690a MOV RDI,RBX MOV RSI,RBX MOV RDX,R15 CALL 0x0017f3d1 MOV EBP,EAX TEST EAX,EAX JZ 0x001868dc JMP 0x00186ae9 LAB_0018690a: LEA RSI,[RSP + 0x48] LEA RCX,[RSP + 0x20] MOV RDI,R14 MOV RDX,RCX CALL 0x00186bb5 TEST EAX,EAX JNZ 0x00186ae7 LEA RSI,[RSP + 0x90] LEA RDX,[RSP + 0xa8] LEA RCX,[RSP + 0x48] MOV RDI,R14 CALL 0x00186d03 TEST EAX,EAX JNZ 0x00186ae7 MOV R15,qword ptr [RSP + 0x40] LEA RBX,[R15 + 0x30] LEA RSI,[RSP + 0xf0] MOV RDI,R14 MOV RDX,R15 MOV RCX,RBX CALL 0x00186cb6 TEST EAX,EAX JNZ 0x00186ae7 LEA RSI,[RSP + 0xd8] MOV RDI,R14 MOV RDX,R15 MOV RCX,RBX CALL 0x00186d03 TEST EAX,EAX JNZ 0x00186ae7 LEA RSI,[RSP + 0x78] LEA RDX,[RSP + 0xd8] LEA RCX,[RSP + 0xc0] MOV RDI,R14 CALL 0x00186bb5 TEST EAX,EAX JNZ 0x00186ae7 LEA RSI,[RSP + 0x60] LEA RDX,[RSP + 0xf0] LEA RCX,[RSP + 0x20] MOV RDI,R14 CALL 0x00186bb5 TEST EAX,EAX JNZ 0x00186ae7 LEA RDX,[RSP + 0x78] LEA RCX,[RSP + 0x60] MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x10] CALL 0x00186cb6 TEST EAX,EAX JNZ 0x00186ae7 MOV RDI,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x10] MOV RSI,RCX MOV RDX,RCX CALL 0x00186bb5 TEST EAX,EAX JNZ 0x00186ae7 MOV RSI,qword ptr [RSP + 0x10] ADD RSI,0x30 LEA RDX,[RSP + 0x78] LEA RCX,[RSP + 0x60] MOV RDI,qword ptr [RSP + 0x8] MOV RBX,RSI CALL 0x00186d03 TEST EAX,EAX JNZ 0x00186ae7 MOV RDI,qword ptr [RSP + 0x8] MOV RCX,RBX MOV RSI,RBX MOV RDX,RBX CALL 0x00186bb5 TEST EAX,EAX JNZ 0x00186ae7 MOV RDI,qword ptr [RSP + 0x8] MOV RCX,RBX MOV RSI,RBX MOV RDX,qword ptr [RSP + 0x38] CALL 0x00186bb5 TEST EAX,EAX JNZ 0x00186ae7 LEA RDX,[RSP + 0xa8] LEA RCX,[RSP + 0x48] MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] CALL 0x00186bb5 TEST EAX,EAX JNZ 0x00186ae7 MOV RSI,qword ptr [RSP + 0x18] ADD RSI,0x30 MOV RDI,qword ptr [RSP + 0x8] LEA RDX,[RDI + 0x20] LEA RCX,[RSP + 0x90] MOV RBX,RSI CALL 0x00186bb5 TEST EAX,EAX JNZ 0x00186ae7 LEA RDX,[RSP + 0x48] MOV RDI,qword ptr [RSP + 0x8] MOV RCX,RBX MOV RSI,RBX CALL 0x00186cb6 TEST EAX,EAX JNZ 0x00186ae7 LEA RDX,[RSP + 0x90] MOV RDI,qword ptr [RSP + 0x8] MOV RCX,RBX MOV RSI,RBX CALL 0x00186bb5 LAB_00186ae7: MOV EBP,EAX LAB_00186ae9: LEA RDI,[RSP + 0xc0] CALL 0x0017df0a LEA RDI,[RSP + 0xa8] CALL 0x0017df0a LEA RDI,[RSP + 0x20] CALL 0x0017df0a LEA RDI,[RSP + 0x48] CALL 0x0017df0a LEA RDI,[RSP + 0x90] CALL 0x0017df0a LEA RDI,[RSP + 0xf0] CALL 0x0017df0a LEA RDI,[RSP + 0xd8] CALL 0x0017df0a LEA RDI,[RSP + 0x78] CALL 0x0017df0a LEA RDI,[RSP + 0x60] CALL 0x0017df0a MOV EAX,EBP ADD RSP,0x108 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int ecp_double_add_mxz(long param_1,long param_2,long param_3,long param_4,long param_5, int8 param_6) { long lVar1; long lVar2; int iVar3; int local_118 [6]; int8 local_100; long local_f8; int1 local_f0 [24]; int1 local_d8 [24]; int1 local_c0 [24]; int1 local_a8 [24]; int1 local_90 [24]; int1 local_78 [24]; int1 local_60 [24]; int1 local_48 [24]; local_100 = param_6; local_f8 = param_5; mbedtls_mpi_init(local_78); mbedtls_mpi_init(local_90); mbedtls_mpi_init(local_118); mbedtls_mpi_init(local_f0); mbedtls_mpi_init(local_a8); mbedtls_mpi_init(local_48); mbedtls_mpi_init(local_60); mbedtls_mpi_init(local_c0); mbedtls_mpi_init(local_d8); iVar3 = mbedtls_mpi_add_mpi(local_78,param_4,param_4 + 0x30); if (iVar3 == 0) { lVar1 = param_1 + 8; do { iVar3 = mbedtls_mpi_cmp_mpi(local_78,lVar1); if (iVar3 < 0) { iVar3 = mbedtls_mpi_mul_mod(param_1,local_90,local_78); if ((iVar3 == 0) && (iVar3 = mbedtls_mpi_sub_mpi(local_118,param_4,param_4 + 0x30), iVar3 == 0)) { goto LAB_001868dc; } break; } iVar3 = mbedtls_mpi_sub_abs(local_78,local_78,lVar1); } while (iVar3 == 0); } goto LAB_00186ae9; while (iVar3 = mbedtls_mpi_add_mpi(local_118,local_118,lVar1), iVar3 == 0) { LAB_001868dc: if ((-1 < local_118[0]) || (iVar3 = mbedtls_mpi_cmp_int(local_118,0), iVar3 == 0)) { iVar3 = mbedtls_mpi_mul_mod(param_1,local_f0,local_118); if ((iVar3 == 0) && (iVar3 = mbedtls_mpi_sub_mod(param_1,local_a8,local_90,local_f0), lVar1 = local_f8, iVar3 == 0)) { lVar2 = local_f8 + 0x30; iVar3 = mbedtls_mpi_add_mod(param_1,local_48,local_f8,lVar2); if (((((iVar3 == 0) && (iVar3 = mbedtls_mpi_sub_mod(param_1,local_60,lVar1,lVar2), iVar3 == 0)) && (iVar3 = mbedtls_mpi_mul_mod(param_1,local_c0,local_60,local_78), iVar3 == 0)) && ((iVar3 = mbedtls_mpi_mul_mod(param_1,local_d8,local_48,local_118), iVar3 == 0 && (iVar3 = mbedtls_mpi_add_mod(param_1,param_3,local_c0,local_d8), iVar3 == 0)))) && (iVar3 = mbedtls_mpi_mul_mod(param_1,param_3,param_3), iVar3 == 0)) { param_3 = param_3 + 0x30; iVar3 = mbedtls_mpi_sub_mod(param_1,param_3,local_c0,local_d8); if (((iVar3 == 0) && (iVar3 = mbedtls_mpi_mul_mod(param_1,param_3,param_3,param_3), iVar3 == 0)) && ((iVar3 = mbedtls_mpi_mul_mod(param_1,param_3,local_100,param_3), iVar3 == 0 && (iVar3 = mbedtls_mpi_mul_mod(param_1,param_2,local_90,local_f0), iVar3 == 0)))) { param_2 = param_2 + 0x30; iVar3 = mbedtls_mpi_mul_mod(param_1,param_2,param_1 + 0x20,local_a8); if ((iVar3 == 0) && (iVar3 = mbedtls_mpi_add_mod(param_1,param_2,local_f0,param_2), iVar3 == 0)) { iVar3 = mbedtls_mpi_mul_mod(param_1,param_2,local_a8,param_2); } } } } break; } } LAB_00186ae9: mbedtls_mpi_free(local_78); mbedtls_mpi_free(local_90); mbedtls_mpi_free(local_118); mbedtls_mpi_free(local_f0); mbedtls_mpi_free(local_a8); mbedtls_mpi_free(local_48); mbedtls_mpi_free(local_60); mbedtls_mpi_free(local_c0); mbedtls_mpi_free(local_d8); return iVar3; }
2,133
my_uca_context_weight_find
eloqsql/strings/ctype-uca.c
static inline const MY_CONTRACTION * my_uca_context_weight_find(my_uca_scanner *scanner, my_wc_t *wc, size_t max_char_length) { const MY_CONTRACTION *cnt; DBUG_ASSERT(scanner->level->contractions.nitems); /* If we have scanned a character which can have previous context, and there were some more characters already before, then reconstruct codepoint of the previous character from "page" and "code" into w[1], and verify that {wc[1], wc[0]} together form a real previous context pair. Note, we support only 2-character long sequences with previous context at the moment. CLDR does not have longer sequences. */ if (my_uca_can_be_previous_context_tail(&scanner->level->contractions, wc[0]) && scanner->wbeg != nochar && /* if not the very first character */ my_uca_can_be_previous_context_head(&scanner->level->contractions, (wc[1]= ((scanner->page << 8) + scanner->code))) && (cnt= my_uca_previous_context_find(scanner, wc[1], wc[0]))) { scanner->page= scanner->code= 0; /* Clear for the next character */ return cnt; } else if (my_uca_can_be_contraction_head(&scanner->level->contractions, wc[0])) { /* Check if w[0] starts a contraction */ if ((cnt= my_uca_scanner_contraction_find(scanner, wc, max_char_length))) return cnt; } return NULL; }
O0
c
my_uca_context_weight_find: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) jmp 0x53496 movq -0x10(%rbp), %rax movq 0x18(%rax), %rdi addq $0x18, %rdi movq -0x18(%rbp), %rax movq (%rax), %rsi callq 0x53640 movsbl %al, %eax cmpl $0x0, %eax je 0x53541 movq -0x10(%rbp), %rax leaq 0x15f27b(%rip), %rcx # 0x1b2740 cmpq %rcx, (%rax) je 0x53541 movq -0x10(%rbp), %rax movq 0x18(%rax), %rdi addq $0x18, %rdi movq -0x10(%rbp), %rax movl 0x24(%rax), %eax shll $0x8, %eax movq -0x10(%rbp), %rcx addl 0x28(%rcx), %eax movslq %eax, %rsi movq -0x18(%rbp), %rax movq %rsi, 0x8(%rax) callq 0x53670 movsbl %al, %eax cmpl $0x0, %eax je 0x53541 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x8(%rax), %rsi movq -0x18(%rbp), %rax movq (%rax), %rdx callq 0x536a0 movq %rax, -0x28(%rbp) cmpq $0x0, %rax je 0x53541 movq -0x10(%rbp), %rax movl $0x0, 0x28(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x24(%rax) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x5358e movq -0x10(%rbp), %rax movq 0x18(%rax), %rdi addq $0x18, %rdi movq -0x18(%rbp), %rax movq (%rax), %rsi callq 0x4aab0 cmpb $0x0, %al je 0x53584 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x53750 movq %rax, -0x28(%rbp) cmpq $0x0, %rax je 0x53582 movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x5358e jmp 0x53584 jmp 0x53586 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
my_uca_context_weight_find: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx jmp short $+2 loc_53496: mov rax, [rbp+var_10] mov rdi, [rax+18h] add rdi, 18h mov rax, [rbp+var_18] mov rsi, [rax] call my_uca_can_be_previous_context_tail movsx eax, al cmp eax, 0 jz loc_53541 mov rax, [rbp+var_10] lea rcx, nochar cmp [rax], rcx jz short loc_53541 mov rax, [rbp+var_10] mov rdi, [rax+18h] add rdi, 18h mov rax, [rbp+var_10] mov eax, [rax+24h] shl eax, 8 mov rcx, [rbp+var_10] add eax, [rcx+28h] movsxd rsi, eax mov rax, [rbp+var_18] mov [rax+8], rsi call my_uca_can_be_previous_context_head movsx eax, al cmp eax, 0 jz short loc_53541 mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov rsi, [rax+8] mov rax, [rbp+var_18] mov rdx, [rax] call my_uca_previous_context_find mov [rbp+var_28], rax cmp rax, 0 jz short loc_53541 mov rax, [rbp+var_10] mov dword ptr [rax+28h], 0 mov rax, [rbp+var_10] mov dword ptr [rax+24h], 0 mov rax, [rbp+var_28] mov [rbp+var_8], rax jmp short loc_5358E loc_53541: mov rax, [rbp+var_10] mov rdi, [rax+18h] add rdi, 18h mov rax, [rbp+var_18] mov rsi, [rax] call my_uca_can_be_contraction_head cmp al, 0 jz short loc_53584 mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call my_uca_scanner_contraction_find mov [rbp+var_28], rax cmp rax, 0 jz short loc_53582 mov rax, [rbp+var_28] mov [rbp+var_8], rax jmp short loc_5358E loc_53582: jmp short $+2 loc_53584: jmp short $+2 loc_53586: mov [rbp+var_8], 0 loc_5358E: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long my_uca_context_weight_find(long long a1, _QWORD *a2, long long a3) { long long v3; // rdi long long v5; // [rsp+8h] [rbp-28h] long long v6; // [rsp+8h] [rbp-28h] if ( (unsigned __int8)my_uca_can_be_previous_context_tail(*(_QWORD *)(a1 + 24) + 24LL, *a2) && *(_UNKNOWN **)a1 != &nochar && (v3 = *(_QWORD *)(a1 + 24) + 24LL, a2[1] = *(_DWORD *)(a1 + 40) + (*(_DWORD *)(a1 + 36) << 8), (unsigned __int8)my_uca_can_be_previous_context_head(v3)) && (v5 = my_uca_previous_context_find(a1, a2[1], *a2)) != 0 ) { *(_DWORD *)(a1 + 40) = 0; *(_DWORD *)(a1 + 36) = 0; return v5; } else if ( (unsigned __int8)my_uca_can_be_contraction_head(*(_QWORD *)(a1 + 24) + 24LL, *a2) && (v6 = my_uca_scanner_contraction_find(a1, a2, a3)) != 0 ) { return v6; } else { return 0LL; } }
my_uca_context_weight_find: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX JMP 0x00153496 LAB_00153496: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX] CALL 0x00153640 MOVSX EAX,AL CMP EAX,0x0 JZ 0x00153541 MOV RAX,qword ptr [RBP + -0x10] LEA RCX,[0x2b2740] CMP qword ptr [RAX],RCX JZ 0x00153541 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x24] SHL EAX,0x8 MOV RCX,qword ptr [RBP + -0x10] ADD EAX,dword ptr [RCX + 0x28] MOVSXD RSI,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x8],RSI CALL 0x00153670 MOVSX EAX,AL CMP EAX,0x0 JZ 0x00153541 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RAX] CALL 0x001536a0 MOV qword ptr [RBP + -0x28],RAX CMP RAX,0x0 JZ 0x00153541 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x24],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x8],RAX JMP 0x0015358e LAB_00153541: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX] CALL 0x0014aab0 CMP AL,0x0 JZ 0x00153584 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x00153750 MOV qword ptr [RBP + -0x28],RAX CMP RAX,0x0 JZ 0x00153582 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x8],RAX JMP 0x0015358e LAB_00153582: JMP 0x00153584 LAB_00153584: JMP 0x00153586 LAB_00153586: MOV qword ptr [RBP + -0x8],0x0 LAB_0015358e: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
long my_uca_context_weight_find(int8 *param_1,int8 *param_2,int8 param_3) { char cVar1; long lVar2; long local_10; cVar1 = my_uca_can_be_previous_context_tail(param_1[3] + 0x18,*param_2); if ((cVar1 != '\0') && ((int4 *)*param_1 != &nochar)) { lVar2 = param_1[3]; param_2[1] = (long)(*(int *)((long)param_1 + 0x24) * 0x100 + *(int *)(param_1 + 5)); cVar1 = my_uca_can_be_previous_context_head(lVar2 + 0x18); if ((cVar1 != '\0') && (lVar2 = my_uca_previous_context_find(param_1,param_2[1],*param_2), lVar2 != 0)) { *(int4 *)(param_1 + 5) = 0; *(int4 *)((long)param_1 + 0x24) = 0; return lVar2; } } cVar1 = my_uca_can_be_contraction_head(param_1[3] + 0x18,*param_2); if ((cVar1 == '\0') || (local_10 = my_uca_scanner_contraction_find(param_1,param_2,param_3), local_10 == 0)) { local_10 = 0; } return local_10; }
2,134
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>>>>>::skip_bom()
monkey531[P]llama/common/./json.hpp
bool skip_bom() { if (get() == 0xEF) { // check if we completely parse the BOM return get() == 0xBB && get() == 0xBF; } // the first character is not the beginning of the BOM; unget it to // process is later unget(); return true; }
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>>>>>::skip_bom(): pushq %rbx movq %rdi, %rbx callq 0x6ecac cmpl $0xef, %eax jne 0x6e3f1 movq %rbx, %rdi callq 0x6ecac cmpl $0xbb, %eax jne 0x6e3fd movq %rbx, %rdi callq 0x6ecac cmpl $0xbf, %eax sete %al jmp 0x6e3ff movq %rbx, %rdi callq 0x6ed22 movb $0x1, %al jmp 0x6e3ff xorl %eax, %eax popq %rbx retq nop
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE8skip_bomEv: push rbx mov rbx, rdi call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 0EFh jnz short loc_6E3F1 mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 0BBh jnz short loc_6E3FD mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 0BFh setz al jmp short loc_6E3FF loc_6E3F1: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void) mov al, 1 jmp short loc_6E3FF loc_6E3FD: xor eax, eax loc_6E3FF: pop rbx retn
bool 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>>>::skip_bom( long long a1) { if ( (unsigned int)((long long (*)(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::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)() == 239 ) return (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 187 && (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 191; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(a1); return 1; }
skip_bom: PUSH RBX MOV RBX,RDI CALL 0x0016ecac CMP EAX,0xef JNZ 0x0016e3f1 MOV RDI,RBX CALL 0x0016ecac CMP EAX,0xbb JNZ 0x0016e3fd MOV RDI,RBX CALL 0x0016ecac CMP EAX,0xbf SETZ AL JMP 0x0016e3ff LAB_0016e3f1: MOV RDI,RBX CALL 0x0016ed22 MOV AL,0x1 JMP 0x0016e3ff LAB_0016e3fd: XOR EAX,EAX LAB_0016e3ff: POP RBX 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 > > >::skip_bom() */ bool __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::skip_bom(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { int iVar1; bool bVar2; iVar1 = get(this); if (iVar1 == 0xef) { iVar1 = get(this); if (iVar1 == 0xbb) { iVar1 = get(this); bVar2 = iVar1 == 0xbf; } else { bVar2 = false; } } else { unget(this); bVar2 = true; } return bVar2; }
2,135
js_error_toString
bluesky950520[P]quickjs/quickjs.c
static JSValue js_error_toString(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue name, msg; if (!JS_IsObject(this_val)) return JS_ThrowTypeErrorNotAnObject(ctx); name = JS_GetProperty(ctx, this_val, JS_ATOM_name); if (JS_IsUndefined(name)) name = JS_AtomToString(ctx, JS_ATOM_Error); else name = JS_ToStringFree(ctx, name); if (JS_IsException(name)) return JS_EXCEPTION; msg = JS_GetProperty(ctx, this_val, JS_ATOM_message); if (JS_IsUndefined(msg)) msg = JS_AtomToString(ctx, JS_ATOM_empty_string); else msg = JS_ToStringFree(ctx, msg); if (JS_IsException(msg)) { JS_FreeValue(ctx, name); return JS_EXCEPTION; } if (!JS_IsEmptyString(name) && !JS_IsEmptyString(msg)) name = JS_ConcatString3(ctx, "", name, ": "); return JS_ConcatString(ctx, name, msg); }
O0
c
js_error_toString: subq $0xc8, %rsp movq %rsi, 0xa8(%rsp) movq %rdx, 0xb0(%rsp) movq %rdi, 0xa0(%rsp) movl %ecx, 0x9c(%rsp) movq %r8, 0x90(%rsp) movq 0xa8(%rsp), %rdi movq 0xb0(%rsp), %rsi callq 0x29cb0 cmpl $0x0, %eax jne 0xbcb9a movq 0xa0(%rsp), %rdi callq 0x2e2e0 movq %rax, 0xb8(%rsp) movq %rdx, 0xc0(%rsp) jmp 0xbce63 movq 0xa0(%rsp), %rdi movq 0xa8(%rsp), %rsi movq 0xb0(%rsp), %rdx movl $0x37, %ecx callq 0x28ac0 movq %rax, 0x60(%rsp) movq %rdx, 0x68(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x80(%rsp), %rdi movq 0x88(%rsp), %rsi callq 0x2cfa0 cmpl $0x0, %eax je 0xbcc32 movq 0xa0(%rsp), %rdi movl $0x95, %esi callq 0x27d40 movq %rax, 0x50(%rsp) movq %rdx, 0x58(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x88(%rsp) jmp 0xbcc73 movq 0xa0(%rsp), %rdi movq 0x80(%rsp), %rsi movq 0x88(%rsp), %rdx callq 0x4f3b0 movq %rax, 0x40(%rsp) movq %rdx, 0x48(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x80(%rsp), %rdi movq 0x88(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0xbcca9 movl $0x0, 0xb8(%rsp) movq $0x6, 0xc0(%rsp) jmp 0xbce63 movq 0xa0(%rsp), %rdi movq 0xa8(%rsp), %rsi movq 0xb0(%rsp), %rdx movl $0x33, %ecx callq 0x28ac0 movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi callq 0x2cfa0 cmpl $0x0, %eax je 0xbcd2f movq 0xa0(%rsp), %rdi movl $0x2f, %esi callq 0x27d40 movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x78(%rsp) jmp 0xbcd64 movq 0xa0(%rsp), %rdi movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx callq 0x4f3b0 movq %rax, 0x10(%rsp) movq %rdx, 0x18(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0xbcdb1 movq 0xa0(%rsp), %rdi movq 0x80(%rsp), %rsi movq 0x88(%rsp), %rdx callq 0x229d0 movl $0x0, 0xb8(%rsp) movq $0x6, 0xc0(%rsp) jmp 0xbce63 movq 0x80(%rsp), %rdi movq 0x88(%rsp), %rsi callq 0x83ee0 cmpl $0x0, %eax jne 0xbce2c movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi callq 0x83ee0 cmpl $0x0, %eax jne 0xbce2c movq 0xa0(%rsp), %rdi movq 0x80(%rsp), %rdx movq 0x88(%rsp), %rcx leaq 0x4f4c3(%rip), %rsi # 0x10c2c1 leaq 0x4b567(%rip), %r8 # 0x10836c callq 0x6e6b0 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movq (%rsp), %rax movq %rax, 0x80(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x88(%rsp) movq 0xa0(%rsp), %rdi movq 0x80(%rsp), %rsi movq 0x88(%rsp), %rdx movq 0x70(%rsp), %rcx movq 0x78(%rsp), %r8 callq 0x698d0 movq %rax, 0xb8(%rsp) movq %rdx, 0xc0(%rsp) movq 0xb8(%rsp), %rax movq 0xc0(%rsp), %rdx addq $0xc8, %rsp retq nopl (%rax,%rax)
js_error_toString: sub rsp, 0C8h mov [rsp+0C8h+var_20], rsi mov [rsp+0C8h+var_18], rdx mov [rsp+0C8h+var_28], rdi mov [rsp+0C8h+var_2C], ecx mov [rsp+0C8h+var_38], r8 mov rdi, [rsp+0C8h+var_20] mov rsi, [rsp+0C8h+var_18] call JS_IsObject cmp eax, 0 jnz short loc_BCB9A mov rdi, [rsp+0C8h+var_28] call JS_ThrowTypeErrorNotAnObject mov [rsp+0C8h+var_10], rax mov [rsp+0C8h+var_8], rdx jmp loc_BCE63 loc_BCB9A: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_20] mov rdx, [rsp+0C8h+var_18] mov ecx, 37h ; '7' call JS_GetProperty mov [rsp+0C8h+var_68], rax mov [rsp+0C8h+var_60], rdx mov rax, [rsp+0C8h+var_68] mov [rsp+0C8h+var_48], rax mov rax, [rsp+0C8h+var_60] mov [rsp+0C8h+var_40], rax mov rdi, [rsp+0C8h+var_48] mov rsi, [rsp+0C8h+var_40] call JS_IsUndefined_0 cmp eax, 0 jz short loc_BCC32 mov rdi, [rsp+0C8h+var_28] mov esi, 95h call JS_AtomToString mov [rsp+0C8h+var_78], rax mov [rsp+0C8h+var_70], rdx mov rax, [rsp+0C8h+var_78] mov [rsp+0C8h+var_48], rax mov rax, [rsp+0C8h+var_70] mov [rsp+0C8h+var_40], rax jmp short loc_BCC73 loc_BCC32: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_48] mov rdx, [rsp+0C8h+var_40] call JS_ToStringFree mov [rsp+0C8h+var_88], rax mov [rsp+0C8h+var_80], rdx mov rax, [rsp+0C8h+var_88] mov [rsp+0C8h+var_48], rax mov rax, [rsp+0C8h+var_80] mov [rsp+0C8h+var_40], rax loc_BCC73: mov rdi, [rsp+0C8h+var_48] mov rsi, [rsp+0C8h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_BCCA9 mov dword ptr [rsp+0C8h+var_10], 0 mov [rsp+0C8h+var_8], 6 jmp loc_BCE63 loc_BCCA9: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_20] mov rdx, [rsp+0C8h+var_18] mov ecx, 33h ; '3' call JS_GetProperty mov [rsp+0C8h+var_98], rax mov [rsp+0C8h+var_90], rdx mov rax, [rsp+0C8h+var_98] mov [rsp+0C8h+var_58], rax mov rax, [rsp+0C8h+var_90] mov [rsp+0C8h+var_50], rax mov rdi, [rsp+0C8h+var_58] mov rsi, [rsp+0C8h+var_50] call JS_IsUndefined_0 cmp eax, 0 jz short loc_BCD2F mov rdi, [rsp+0C8h+var_28] mov esi, 2Fh ; '/' call JS_AtomToString mov [rsp+0C8h+var_A8], rax mov [rsp+0C8h+var_A0], rdx mov rax, [rsp+0C8h+var_A8] mov [rsp+0C8h+var_58], rax mov rax, [rsp+0C8h+var_A0] mov [rsp+0C8h+var_50], rax jmp short loc_BCD64 loc_BCD2F: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_58] mov rdx, [rsp+0C8h+var_50] call JS_ToStringFree mov [rsp+0C8h+var_B8], rax mov [rsp+0C8h+var_B0], rdx mov rax, [rsp+0C8h+var_B8] mov [rsp+0C8h+var_58], rax mov rax, [rsp+0C8h+var_B0] mov [rsp+0C8h+var_50], rax loc_BCD64: mov rdi, [rsp+0C8h+var_58] mov rsi, [rsp+0C8h+var_50] call JS_IsException_1 cmp eax, 0 jz short loc_BCDB1 mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_48] mov rdx, [rsp+0C8h+var_40] call JS_FreeValue mov dword ptr [rsp+0C8h+var_10], 0 mov [rsp+0C8h+var_8], 6 jmp loc_BCE63 loc_BCDB1: mov rdi, [rsp+0C8h+var_48] mov rsi, [rsp+0C8h+var_40] call JS_IsEmptyString cmp eax, 0 jnz short loc_BCE2C mov rdi, [rsp+0C8h+var_58] mov rsi, [rsp+0C8h+var_50] call JS_IsEmptyString cmp eax, 0 jnz short loc_BCE2C mov rdi, [rsp+0C8h+var_28] mov rdx, [rsp+0C8h+var_48] mov rcx, [rsp+0C8h+var_40] lea rsi, aQuickjsNgMemor+4Dh; "" lea r8, aPossiblyUnhand+24h; ": " call JS_ConcatString3 mov [rsp+0C8h+var_C8], rax mov [rsp+0C8h+var_C0], rdx mov rax, [rsp+0C8h+var_C8] mov [rsp+0C8h+var_48], rax mov rax, [rsp+0C8h+var_C0] mov [rsp+0C8h+var_40], rax loc_BCE2C: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_48] mov rdx, [rsp+0C8h+var_40] mov rcx, [rsp+0C8h+var_58] mov r8, [rsp+0C8h+var_50] call JS_ConcatString mov [rsp+0C8h+var_10], rax mov [rsp+0C8h+var_8], rdx loc_BCE63: mov rax, [rsp+0C8h+var_10] mov rdx, [rsp+0C8h+var_8] add rsp, 0C8h retn
long long js_error_toString( long long a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v13; // rdx long long v14; // rcx long long v15; // r8 long long v16; // r9 __m128 v17; // xmm4 __m128 v18; // xmm5 long long v19; // rdx long long v20; // rcx long long v21; // r8 long long v22; // r9 long long v23; // rdx long long v24; // rdx long long v25; // rcx long long v26; // r8 long long v27; // r9 long long v28; // rdx long long v29; // r9 long long v30; // rdx long long v32; // [rsp+30h] [rbp-98h] long long Property; // [rsp+60h] [rbp-68h] long long v34; // [rsp+70h] [rbp-58h] long long v35; // [rsp+78h] [rbp-50h] long long v36; // [rsp+78h] [rbp-50h] long long v37; // [rsp+80h] [rbp-48h] long long v38; // [rsp+88h] [rbp-40h] long long v39; // [rsp+88h] [rbp-40h] int v41; // [rsp+A8h] [rbp-20h] int v42; // [rsp+B0h] [rbp-18h] long long v43; // [rsp+B8h] [rbp-10h] v41 = a2; v42 = a3; if ( !JS_IsObject(a2, a3) ) return JS_ThrowTypeErrorNotAnObject(a1, a4, a5, a6, a7, v17, v18, a10, a11, a3, v13, v14, v15, v16); Property = JS_GetProperty(a1, v41, v42, 55); v38 = v19; if ( JS_IsUndefined_0(Property, v19) ) v37 = JS_AtomToString(a1, 0x95u); else v37 = JS_ToStringFree(a1, Property, v38, v20, v21, v22); v39 = v23; if ( JS_IsException_1(v37, v23) ) { LODWORD(v43) = 0; } else { v32 = JS_GetProperty(a1, v41, v42, 51); v35 = v24; if ( JS_IsUndefined_0(v32, v24) ) v34 = JS_AtomToString(a1, 0x2Fu); else v34 = JS_ToStringFree(a1, v32, v35, v25, v26, v27); v36 = v28; if ( JS_IsException_1(v34, v28) ) { JS_FreeValue(a1, v37, v39); LODWORD(v43) = 0; } else { if ( !JS_IsEmptyString(v37, v39) && !JS_IsEmptyString(v34, v36) ) { v37 = JS_ConcatString3(a1, (long long)"", v37, v39, (long long)": ", v29); v39 = v30; } return JS_ConcatString(a1, v37, v39, v34, v36, v29); } } return v43; }
js_error_toString: SUB RSP,0xc8 MOV qword ptr [RSP + 0xa8],RSI MOV qword ptr [RSP + 0xb0],RDX MOV qword ptr [RSP + 0xa0],RDI MOV dword ptr [RSP + 0x9c],ECX MOV qword ptr [RSP + 0x90],R8 MOV RDI,qword ptr [RSP + 0xa8] MOV RSI,qword ptr [RSP + 0xb0] CALL 0x00129cb0 CMP EAX,0x0 JNZ 0x001bcb9a MOV RDI,qword ptr [RSP + 0xa0] CALL 0x0012e2e0 MOV qword ptr [RSP + 0xb8],RAX MOV qword ptr [RSP + 0xc0],RDX JMP 0x001bce63 LAB_001bcb9a: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0xa8] MOV RDX,qword ptr [RSP + 0xb0] MOV ECX,0x37 CALL 0x00128ac0 MOV qword ptr [RSP + 0x60],RAX MOV qword ptr [RSP + 0x68],RDX MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x80],RAX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x88] CALL 0x0012cfa0 CMP EAX,0x0 JZ 0x001bcc32 MOV RDI,qword ptr [RSP + 0xa0] MOV ESI,0x95 CALL 0x00127d40 MOV qword ptr [RSP + 0x50],RAX MOV qword ptr [RSP + 0x58],RDX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x80],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x88],RAX JMP 0x001bcc73 LAB_001bcc32: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x80] MOV RDX,qword ptr [RSP + 0x88] CALL 0x0014f3b0 MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x48],RDX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x80],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x88],RAX LAB_001bcc73: MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x88] CALL 0x00122a00 CMP EAX,0x0 JZ 0x001bcca9 MOV dword ptr [RSP + 0xb8],0x0 MOV qword ptr [RSP + 0xc0],0x6 JMP 0x001bce63 LAB_001bcca9: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0xa8] MOV RDX,qword ptr [RSP + 0xb0] MOV ECX,0x33 CALL 0x00128ac0 MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] CALL 0x0012cfa0 CMP EAX,0x0 JZ 0x001bcd2f MOV RDI,qword ptr [RSP + 0xa0] MOV ESI,0x2f CALL 0x00127d40 MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x78],RAX JMP 0x001bcd64 LAB_001bcd2f: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] CALL 0x0014f3b0 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x18],RDX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x78],RAX LAB_001bcd64: MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] CALL 0x00122a00 CMP EAX,0x0 JZ 0x001bcdb1 MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x80] MOV RDX,qword ptr [RSP + 0x88] CALL 0x001229d0 MOV dword ptr [RSP + 0xb8],0x0 MOV qword ptr [RSP + 0xc0],0x6 JMP 0x001bce63 LAB_001bcdb1: MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x88] CALL 0x00183ee0 CMP EAX,0x0 JNZ 0x001bce2c MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] CALL 0x00183ee0 CMP EAX,0x0 JNZ 0x001bce2c MOV RDI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0x80] MOV RCX,qword ptr [RSP + 0x88] LEA RSI,[0x20c2c1] LEA R8,[0x20836c] CALL 0x0016e6b0 MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x80],RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x88],RAX LAB_001bce2c: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x80] MOV RDX,qword ptr [RSP + 0x88] MOV RCX,qword ptr [RSP + 0x70] MOV R8,qword ptr [RSP + 0x78] CALL 0x001698d0 MOV qword ptr [RSP + 0xb8],RAX MOV qword ptr [RSP + 0xc0],RDX LAB_001bce63: MOV RAX,qword ptr [RSP + 0xb8] MOV RDX,qword ptr [RSP + 0xc0] ADD RSP,0xc8 RET
int1 [16] js_error_toString(int8 param_1,int8 param_2,int8 param_3) { int iVar1; int1 auVar2 [16]; int1 auVar3 [16]; int8 local_58; int8 local_50; int8 local_48; int8 local_40; int4 local_10; int4 uStack_c; int8 local_8; iVar1 = JS_IsObject(param_2,param_3); if (iVar1 == 0) { auVar2 = JS_ThrowTypeErrorNotAnObject(param_1); local_8 = auVar2._8_8_; local_10 = auVar2._0_4_; uStack_c = auVar2._4_4_; } else { auVar2 = JS_GetProperty(param_1,param_2,param_3,0x37); iVar1 = JS_IsUndefined(auVar2._0_8_,auVar2._8_8_); if (iVar1 == 0) { auVar2 = JS_ToStringFree(param_1,auVar2._0_8_,auVar2._8_8_); } else { auVar2 = JS_AtomToString(param_1,0x95); } local_40 = auVar2._8_8_; local_48 = auVar2._0_8_; iVar1 = JS_IsException(local_48,local_40); if (iVar1 == 0) { auVar3 = JS_GetProperty(param_1,param_2,param_3,0x33); iVar1 = JS_IsUndefined(auVar3._0_8_,auVar3._8_8_); if (iVar1 == 0) { auVar3 = JS_ToStringFree(param_1,auVar3._0_8_,auVar3._8_8_); } else { auVar3 = JS_AtomToString(param_1,0x2f); } local_50 = auVar3._8_8_; local_58 = auVar3._0_8_; iVar1 = JS_IsException(local_58,local_50); if (iVar1 == 0) { iVar1 = JS_IsEmptyString(local_48,local_40); if (iVar1 == 0) { iVar1 = JS_IsEmptyString(local_58,local_50); if (iVar1 == 0) { auVar2 = JS_ConcatString3(param_1,"",local_48,local_40,": "); } } local_40 = auVar2._8_8_; local_48 = auVar2._0_8_; auVar2 = JS_ConcatString(param_1,local_48,local_40,local_58,local_50); local_8 = auVar2._8_8_; local_10 = auVar2._0_4_; uStack_c = auVar2._4_4_; } else { JS_FreeValue(param_1,local_48,local_40); local_10 = 0; local_8 = 6; } } else { local_10 = 0; local_8 = 6; } } auVar2._4_4_ = uStack_c; auVar2._0_4_ = local_10; auVar2._8_8_ = local_8; return auVar2; }
2,136
js_error_toString
bluesky950520[P]quickjs/quickjs.c
static JSValue js_error_toString(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue name, msg; if (!JS_IsObject(this_val)) return JS_ThrowTypeErrorNotAnObject(ctx); name = JS_GetProperty(ctx, this_val, JS_ATOM_name); if (JS_IsUndefined(name)) name = JS_AtomToString(ctx, JS_ATOM_Error); else name = JS_ToStringFree(ctx, name); if (JS_IsException(name)) return JS_EXCEPTION; msg = JS_GetProperty(ctx, this_val, JS_ATOM_message); if (JS_IsUndefined(msg)) msg = JS_AtomToString(ctx, JS_ATOM_empty_string); else msg = JS_ToStringFree(ctx, msg); if (JS_IsException(msg)) { JS_FreeValue(ctx, name); return JS_EXCEPTION; } if (!JS_IsEmptyString(name) && !JS_IsEmptyString(msg)) name = JS_ConcatString3(ctx, "", name, ": "); return JS_ConcatString(ctx, name, msg); }
O1
c
js_error_toString: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r13 movq %rdi, %rbx cmpl $-0x1, %r13d jne 0x6f088 movq %rsi, %rbp movq %rbx, %rdi movq %r13, %rdx movl $0x37, %ecx movq %rsi, %r8 movq %r13, %r9 pushq $0x0 pushq $0x0 callq 0x2238f addq $0x10, %rsp movq %rdx, %r15 cmpl $0x3, %r15d jne 0x6f0a7 movq 0x18(%rbx), %rax movq 0x68(%rax), %rax movq 0x4a8(%rax), %rsi movq 0x4(%rsi), %rcx movq %rcx, %rdx shrq $0x3e, %rdx cmpl $0x1, %edx je 0x6f078 movl $0xfffffff9, %edx # imm = 0xFFFFFFF9 addq $-0x7ffffff9, %rdx # imm = 0x80000007 movl %ecx, %ecx cmpl %edx, %ecx jne 0x6f078 movq 0x178(%rax), %rsi movq %rsi, 0x8(%rsp) incl (%rsi) movq $-0x7, %r14 jmp 0x6f0d1 leaq 0x2e88e(%rip), %rsi # 0x9d91d xorl %r14d, %r14d movq %rbx, %rdi xorl %eax, %eax callq 0x21953 movl $0x6, %r12d jmp 0x6f175 movq %rax, %r12 movq %rbx, %rdi movq %rax, %rsi movq %r15, %rdx xorl %ecx, %ecx callq 0x26ec9 movq %rax, 0x8(%rsp) movq %rdx, %r14 movq 0x18(%rbx), %rdi movq %r12, %rsi movq %r15, %rdx callq 0x1ccb2 movq %r14, (%rsp) movl %r14d, %r14d movl $0x6, %r12d cmpq $0x6, %r14 je 0x6f172 movq %rbx, %rdi movq %rbp, %rsi movq %r13, %rdx movl $0x33, %ecx movq %rbp, %r8 movq %r13, %r9 pushq $0x0 pushq $0x0 callq 0x2238f addq $0x10, %rsp movq %rdx, %r13 cmpl $0x3, %r13d jne 0x6f12d movq 0x18(%rbx), %rax movq 0x68(%rax), %rax movq 0x178(%rax), %r15 incl (%r15) movq $-0x7, %rbp jmp 0x6f155 movq %rax, %r15 movq %rbx, %rdi movq %rax, %rsi movq %r13, %rdx xorl %ecx, %ecx callq 0x26ec9 movq %rdx, %rbp movq 0x18(%rbx), %rdi movq %r15, %rsi movq %rax, %r15 movq %r13, %rdx callq 0x1ccb2 movq 0x8(%rsp), %r9 movl %ebp, %eax cmpq $0x6, %rax jne 0x6f18f movq 0x18(%rbx), %rdi movq %r9, %rsi movq (%rsp), %rdx callq 0x1ccb2 xorl %r14d, %r14d xorl %ecx, %ecx orq %rcx, %r14 movq %r14, %rax movq %r12, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xfffffff9, %ecx # imm = 0xFFFFFFF9 movq %r9, 0x10(%rsp) cmpl %ecx, %r14d jne 0x6f1ad movq 0x10(%rsp), %rdx movq 0x4(%rdx), %rdx shlq $0x21, %rdx je 0x6f1ea movq %r15, 0x10(%rsp) cmpl %ecx, %eax movq (%rsp), %rcx jne 0x6f1c9 movq 0x10(%rsp), %rax movq 0x4(%rax), %rax shlq $0x21, %rax je 0x6f1ee leaq 0x2e0f9(%rip), %rsi # 0x9d2c9 leaq 0x2b0fd(%rip), %r8 # 0x9a2d4 movq %rbx, %rdi movq %r9, %rdx callq 0x412ee movq %rax, %r9 movq %rdx, %rcx jmp 0x6f1ee movq (%rsp), %rcx movq %rbx, %rdi movq %r9, %rsi movq %rcx, %rdx movq %r15, %rcx movq %rbp, %r8 callq 0x3f822 movq %rdx, %r12 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %r14d jmp 0x6f177
js_error_toString: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r13, rdx mov rbx, rdi cmp r13d, 0FFFFFFFFh jnz short loc_6F088 mov rbp, rsi mov rdi, rbx mov rdx, r13 mov ecx, 37h ; '7' mov r8, rsi mov r9, r13 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov r15, rdx cmp r15d, 3 jnz short loc_6F0A7 mov rax, [rbx+18h] mov rax, [rax+68h] mov rsi, [rax+4A8h] mov rcx, [rsi+4] mov rdx, rcx shr rdx, 3Eh cmp edx, 1 jz short loc_6F078 mov edx, 0FFFFFFF9h add rdx, 0FFFFFFFF80000007h mov ecx, ecx cmp ecx, edx jnz short loc_6F078 mov rsi, [rax+178h] loc_6F078: mov [rsp+48h+var_40], rsi inc dword ptr [rsi] mov r14, 0FFFFFFFFFFFFFFF9h jmp short loc_6F0D1 loc_6F088: lea rsi, aOperandPrototy+20h; "not an object" xor r14d, r14d mov rdi, rbx xor eax, eax call JS_ThrowTypeError mov r12d, 6 jmp loc_6F175 loc_6F0A7: mov r12, rax mov rdi, rbx mov rsi, rax mov rdx, r15 xor ecx, ecx call JS_ToStringInternal mov [rsp+48h+var_40], rax mov r14, rdx mov rdi, [rbx+18h] mov rsi, r12 mov rdx, r15 call JS_FreeValueRT loc_6F0D1: mov [rsp+48h+var_48], r14 mov r14d, r14d mov r12d, 6 cmp r14, 6 jz loc_6F172 mov rdi, rbx mov rsi, rbp mov rdx, r13 mov ecx, 33h ; '3' mov r8, rbp mov r9, r13 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov r13, rdx cmp r13d, 3 jnz short loc_6F12D mov rax, [rbx+18h] mov rax, [rax+68h] mov r15, [rax+178h] inc dword ptr [r15] mov rbp, 0FFFFFFFFFFFFFFF9h jmp short loc_6F155 loc_6F12D: mov r15, rax mov rdi, rbx mov rsi, rax mov rdx, r13 xor ecx, ecx call JS_ToStringInternal mov rbp, rdx mov rdi, [rbx+18h] mov rsi, r15 mov r15, rax mov rdx, r13 call JS_FreeValueRT loc_6F155: mov r9, [rsp+48h+var_40] mov eax, ebp cmp rax, 6 jnz short loc_6F18F mov rdi, [rbx+18h] mov rsi, r9 mov rdx, [rsp+48h+var_48] call JS_FreeValueRT loc_6F172: xor r14d, r14d loc_6F175: xor ecx, ecx loc_6F177: or r14, rcx mov rax, r14 mov rdx, r12 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_6F18F: mov ecx, 0FFFFFFF9h mov [rsp+48h+var_38], r9 cmp r14d, ecx jnz short loc_6F1AD mov rdx, [rsp+48h+var_38] mov rdx, [rdx+4] shl rdx, 21h jz short loc_6F1EA loc_6F1AD: mov [rsp+48h+var_38], r15 cmp eax, ecx mov rcx, [rsp+48h+var_48] jnz short loc_6F1C9 mov rax, [rsp+48h+var_38] mov rax, [rax+4] shl rax, 21h jz short loc_6F1EE loc_6F1C9: lea rsi, aQuickjsNgMemor+4Dh; "" lea r8, aPossiblyUnhand+24h; ": " mov rdi, rbx mov rdx, r9 call JS_ConcatString3 mov r9, rax mov rcx, rdx jmp short loc_6F1EE loc_6F1EA: mov rcx, [rsp+48h+var_48] loc_6F1EE: mov rdi, rbx mov rsi, r9 mov rdx, rcx mov rcx, r15 mov r8, rbp call JS_ConcatString mov r12, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax mov r14d, eax jmp loc_6F177
unsigned long long js_error_toString( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { unsigned long long PropertyInternal2; // rax long long v17; // rdx long long v18; // r8 long long v19; // r9 __m128 v20; // xmm4 __m128 v21; // xmm5 long long v22; // r15 long long v23; // rax unsigned long long v24; // rsi unsigned long long v25; // rcx long long v26; // r14 long long v27; // r14 _DWORD *v28; // r12 long long v29; // rdx unsigned long long v30; // rax long long v31; // rdx long long v32; // r8 long long v33; // r9 __m128 v34; // xmm4 __m128 v35; // xmm5 long long v36; // r13 unsigned long long v37; // r15 long long v38; // rbp _DWORD *v39; // r15 unsigned long long v40; // rax long long v41; // rdx _DWORD *v42; // rsi _DWORD *v43; // r9 unsigned long long v44; // rcx long long v46; // rcx long long v47; // rdx unsigned long long v48; // rax char v49; // [rsp+0h] [rbp-48h] unsigned long long v50; // [rsp+8h] [rbp-40h] if ( (_DWORD)a3 != -1 ) { v27 = 0LL; JS_ThrowTypeError(a1, (long long)"not an object", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v49); LABEL_16: v44 = 0LL; return v44 | v27; } PropertyInternal2 = JS_GetPropertyInternal2(a1, a2, a3, 0x37u, a2, a3, 0LL, 0); v22 = v17; if ( (_DWORD)v17 == 3 ) { v23 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL); v24 = *(_QWORD *)(v23 + 1192); v25 = *(_QWORD *)(v24 + 4); if ( v25 >> 62 != 1 && (_DWORD)v25 == 0x80000000 ) v24 = *(_QWORD *)(v23 + 376); v50 = v24; ++*(_DWORD *)v24; v26 = -7LL; } else { v28 = (_DWORD *)PropertyInternal2; v50 = JS_ToStringInternal(a1, PropertyInternal2, v17, 0, v18, v19, a7, a8, a9, a10, v20, v21, a13, a14); v26 = v29; JS_FreeValueRT(*(_QWORD *)(a1 + 24), v28, v22); } if ( (unsigned int)v26 == 6LL ) { LABEL_15: v27 = 0LL; goto LABEL_16; } v30 = JS_GetPropertyInternal2(a1, a2, a3, 0x33u, a2, a3, 0LL, 0); v36 = v31; if ( (_DWORD)v31 == 3 ) { v37 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 376LL); ++*(_DWORD *)v37; v38 = -7LL; } else { v39 = (_DWORD *)v30; v40 = JS_ToStringInternal(a1, v30, v31, 0, v32, v33, a7, a8, a9, a10, v34, v35, a13, a14); v38 = v41; v42 = v39; v37 = v40; JS_FreeValueRT(*(_QWORD *)(a1 + 24), v42, v36); } v43 = (_DWORD *)v50; if ( (unsigned int)v38 == 6LL ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v50, v26); goto LABEL_15; } if ( (_DWORD)v26 == -7 && !(*(_QWORD *)(v50 + 4) << 33) ) { v46 = v26; } else { v46 = v26; if ( (_DWORD)v38 != -7 || *(_QWORD *)(v37 + 4) << 33 ) { v43 = JS_ConcatString3( a1, (long long)"", (_DWORD *)v50, v26, (long long)": ", v50, a7, a8, a9, a10, v34, v35, a13, a14); v46 = v47; } } v48 = (unsigned long long)JS_ConcatString( a1, v43, v46, (_DWORD *)v37, v38, (long long)v43, a7, a8, a9, a10, v34, v35, a13, a14); v44 = v48 & 0xFFFFFFFF00000000LL; v27 = (unsigned int)v48; return v44 | v27; }
js_error_toString: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R13,RDX MOV RBX,RDI CMP R13D,-0x1 JNZ 0x0016f088 MOV RBP,RSI MOV RDI,RBX MOV RDX,R13 MOV ECX,0x37 MOV R8,RSI MOV R9,R13 PUSH 0x0 PUSH 0x0 CALL 0x0012238f ADD RSP,0x10 MOV R15,RDX CMP R15D,0x3 JNZ 0x0016f0a7 MOV RAX,qword ptr [RBX + 0x18] MOV RAX,qword ptr [RAX + 0x68] MOV RSI,qword ptr [RAX + 0x4a8] MOV RCX,qword ptr [RSI + 0x4] MOV RDX,RCX SHR RDX,0x3e CMP EDX,0x1 JZ 0x0016f078 MOV EDX,0xfffffff9 ADD RDX,-0x7ffffff9 MOV ECX,ECX CMP ECX,EDX JNZ 0x0016f078 MOV RSI,qword ptr [RAX + 0x178] LAB_0016f078: MOV qword ptr [RSP + 0x8],RSI INC dword ptr [RSI] MOV R14,-0x7 JMP 0x0016f0d1 LAB_0016f088: LEA RSI,[0x19d91d] XOR R14D,R14D MOV RDI,RBX XOR EAX,EAX CALL 0x00121953 MOV R12D,0x6 JMP 0x0016f175 LAB_0016f0a7: MOV R12,RAX MOV RDI,RBX MOV RSI,RAX MOV RDX,R15 XOR ECX,ECX CALL 0x00126ec9 MOV qword ptr [RSP + 0x8],RAX MOV R14,RDX MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R12 MOV RDX,R15 CALL 0x0011ccb2 LAB_0016f0d1: MOV qword ptr [RSP],R14 MOV R14D,R14D MOV R12D,0x6 CMP R14,0x6 JZ 0x0016f172 MOV RDI,RBX MOV RSI,RBP MOV RDX,R13 MOV ECX,0x33 MOV R8,RBP MOV R9,R13 PUSH 0x0 PUSH 0x0 CALL 0x0012238f ADD RSP,0x10 MOV R13,RDX CMP R13D,0x3 JNZ 0x0016f12d MOV RAX,qword ptr [RBX + 0x18] MOV RAX,qword ptr [RAX + 0x68] MOV R15,qword ptr [RAX + 0x178] INC dword ptr [R15] MOV RBP,-0x7 JMP 0x0016f155 LAB_0016f12d: MOV R15,RAX MOV RDI,RBX MOV RSI,RAX MOV RDX,R13 XOR ECX,ECX CALL 0x00126ec9 MOV RBP,RDX MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R15 MOV R15,RAX MOV RDX,R13 CALL 0x0011ccb2 LAB_0016f155: MOV R9,qword ptr [RSP + 0x8] MOV EAX,EBP CMP RAX,0x6 JNZ 0x0016f18f MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R9 MOV RDX,qword ptr [RSP] CALL 0x0011ccb2 LAB_0016f172: XOR R14D,R14D LAB_0016f175: XOR ECX,ECX LAB_0016f177: OR R14,RCX MOV RAX,R14 MOV RDX,R12 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0016f18f: MOV ECX,0xfffffff9 MOV qword ptr [RSP + 0x10],R9 CMP R14D,ECX JNZ 0x0016f1ad MOV RDX,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RDX + 0x4] SHL RDX,0x21 JZ 0x0016f1ea LAB_0016f1ad: MOV qword ptr [RSP + 0x10],R15 CMP EAX,ECX MOV RCX,qword ptr [RSP] JNZ 0x0016f1c9 MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x4] SHL RAX,0x21 JZ 0x0016f1ee LAB_0016f1c9: LEA RSI,[0x19d2c9] LEA R8,[0x19a2d4] MOV RDI,RBX MOV RDX,R9 CALL 0x001412ee MOV R9,RAX MOV RCX,RDX JMP 0x0016f1ee LAB_0016f1ea: MOV RCX,qword ptr [RSP] LAB_0016f1ee: MOV RDI,RBX MOV RSI,R9 MOV RDX,RCX MOV RCX,R15 MOV R8,RBP CALL 0x0013f822 MOV R12,RDX MOV RCX,-0x100000000 AND RCX,RAX MOV R14D,EAX JMP 0x0016f177
int1 [16] js_error_toString(long param_1,int8 param_2,int8 param_3) { long lVar1; ulong uVar2; int *piVar3; int8 uVar4; ulong uVar5; int1 auVar6 [16]; int1 auVar7 [16]; int1 auVar8 [16]; long local_40; if ((int)param_3 == -1) { auVar6 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x37,param_2,param_3,0,0); if (auVar6._8_4_ == 3) { lVar1 = *(long *)(*(long *)(param_1 + 0x18) + 0x68); piVar3 = *(int **)(lVar1 + 0x4a8); if (((uint)((ulong)*(int8 *)(piVar3 + 1) >> 0x3e) != 1) && ((int)*(int8 *)(piVar3 + 1) == -0x80000000)) { piVar3 = *(int **)(lVar1 + 0x178); } *piVar3 = *piVar3 + 1; auVar8._8_8_ = 0xfffffffffffffff9; auVar8._0_8_ = piVar3; } else { auVar8 = JS_ToStringInternal(param_1,auVar6._0_8_,auVar6._8_8_,0); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar6._0_8_,auVar6._8_8_); } uVar2 = auVar8._8_8_; local_40 = auVar8._0_8_; if ((uVar2 & 0xffffffff) != 6) { auVar6 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x33,param_2,param_3,0,0); if (auVar6._8_4_ == 3) { piVar3 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + 0x178); *piVar3 = *piVar3 + 1; auVar7._8_8_ = 0xfffffffffffffff9; auVar7._0_8_ = piVar3; } else { auVar7 = JS_ToStringInternal(param_1,auVar6._0_8_,auVar6._8_8_,0); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar6._0_8_,auVar6._8_8_); } if ((auVar7._8_8_ & 0xffffffff) != 6) { if (((auVar8._8_4_ != -7) || ((*(ulong *)(local_40 + 4) & 0x7fffffff) != 0)) && ((auVar7._8_4_ != -7 || ((*(ulong *)(auVar7._0_8_ + 4) & 0x7fffffff) != 0)))) { auVar8 = JS_ConcatString3(param_1,"",local_40,uVar2,": "); } auVar6 = JS_ConcatString(param_1,auVar8._0_8_,auVar8._8_8_,auVar7._0_8_,auVar7._8_8_); uVar4 = auVar6._8_8_; uVar2 = auVar6._0_8_ & 0xffffffff00000000; uVar5 = auVar6._0_8_ & 0xffffffff; goto LAB_0016f177; } JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_40,uVar2); } } else { JS_ThrowTypeError(param_1,"not an object"); } uVar5 = 0; uVar4 = 6; uVar2 = 0; LAB_0016f177: auVar6._8_8_ = uVar4; auVar6._0_8_ = uVar5 | uVar2; return auVar6; }
2,137
js_error_toString
bluesky950520[P]quickjs/quickjs.c
static JSValue js_error_toString(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue name, msg; if (!JS_IsObject(this_val)) return JS_ThrowTypeErrorNotAnObject(ctx); name = JS_GetProperty(ctx, this_val, JS_ATOM_name); if (JS_IsUndefined(name)) name = JS_AtomToString(ctx, JS_ATOM_Error); else name = JS_ToStringFree(ctx, name); if (JS_IsException(name)) return JS_EXCEPTION; msg = JS_GetProperty(ctx, this_val, JS_ATOM_message); if (JS_IsUndefined(msg)) msg = JS_AtomToString(ctx, JS_ATOM_empty_string); else msg = JS_ToStringFree(ctx, msg); if (JS_IsException(msg)) { JS_FreeValue(ctx, name); return JS_EXCEPTION; } if (!JS_IsEmptyString(name) && !JS_IsEmptyString(msg)) name = JS_ConcatString3(ctx, "", name, ": "); return JS_ConcatString(ctx, name, msg); }
O3
c
js_error_toString: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r13 movq %rdi, %rbx cmpl $-0x1, %r13d jne 0x7133a movq %rsi, %rbp movq %rbx, %rdi movq %r13, %rdx movl $0x37, %ecx movq %rsi, %r8 movq %r13, %r9 pushq $0x0 pushq $0x0 callq 0x22c0f addq $0x10, %rsp cmpl $0x3, %edx jne 0x71356 movq 0x18(%rbx), %rax movq 0x68(%rax), %rsi movq 0x4a8(%rsi), %rax movq 0x4(%rax), %rcx movq %rcx, %rdx shrq $0x3e, %rdx cmpl $0x1, %edx je 0x7132f movl $0xfffffff9, %edx # imm = 0xFFFFFFF9 addq $-0x7ffffff9, %rdx # imm = 0x80000007 movl %ecx, %ecx cmpl %edx, %ecx jne 0x7132f movq 0x178(%rsi), %rax incl (%rax) movq $-0x7, %r15 jmp 0x71364 leaq 0x2f5ac(%rip), %rsi # 0xa08ed xorl %r14d, %r14d movq %rbx, %rdi xorl %eax, %eax callq 0x2214f movl $0x6, %r12d jmp 0x71376 movq %rbx, %rdi movq %rax, %rsi callq 0x3479d movq %rdx, %r15 movl %r15d, %r14d movl $0x6, %r12d cmpq $0x6, %r14 jne 0x71390 xorl %r14d, %r14d xorl %ecx, %ecx orq %rcx, %r14 movq %r14, %rax movq %r12, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, (%rsp) movq %rbx, %rdi movq %rbp, %rsi movq %r13, %rdx movl $0x33, %ecx movq %rbp, %r8 movq %r13, %r9 pushq $0x0 pushq $0x0 callq 0x22c0f addq $0x10, %rsp cmpl $0x3, %edx jne 0x713d6 movq 0x18(%rbx), %rax movq 0x68(%rax), %rax movq 0x178(%rax), %r13 incl (%r13) movq $-0x7, %rbp jmp 0x713e7 movq %rbx, %rdi movq %rax, %rsi callq 0x3479d movq %rax, %r13 movq %rdx, %rbp movl %ebp, %eax cmpq $0x6, %rax movq (%rsp), %r9 jne 0x71423 cmpl $-0x9, %r15d jb 0x71373 movq 0x18(%rbx), %rdi movl (%r9), %eax leal -0x1(%rax), %ecx movl %ecx, (%r9) cmpl $0x1, %eax jg 0x71373 movq %r9, %rsi movq %r15, %rdx callq 0x20d90 jmp 0x71373 movl $0xfffffff9, %ecx # imm = 0xFFFFFFF9 cmpl %ecx, %r14d jne 0x71437 testl $0x7fffffff, 0x4(%r9) # imm = 0x7FFFFFFF je 0x71467 cmpl %ecx, %eax jne 0x71445 testl $0x7fffffff, 0x4(%r13) # imm = 0x7FFFFFFF je 0x71467 leaq 0x2ee4d(%rip), %rsi # 0xa0299 leaq 0x2be2d(%rip), %r8 # 0x9d280 movq %rbx, %rdi movq %r9, %rdx movq %r15, %rcx callq 0x42d9d movq %rax, %r9 movq %rdx, %r15 movq %rbx, %rdi movq %r9, %rsi movq %r15, %rdx movq %r13, %rcx movq %rbp, %r8 callq 0x410fe movq %rdx, %r12 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %r14d jmp 0x71378
js_error_toString: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r13, rdx mov rbx, rdi cmp r13d, 0FFFFFFFFh jnz short loc_7133A mov rbp, rsi mov rdi, rbx mov rdx, r13 mov ecx, 37h ; '7' mov r8, rsi mov r9, r13 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h cmp edx, 3 jnz short loc_71356 mov rax, [rbx+18h] mov rsi, [rax+68h] mov rax, [rsi+4A8h] mov rcx, [rax+4] mov rdx, rcx shr rdx, 3Eh cmp edx, 1 jz short loc_7132F mov edx, 0FFFFFFF9h add rdx, 0FFFFFFFF80000007h mov ecx, ecx cmp ecx, edx jnz short loc_7132F mov rax, [rsi+178h] loc_7132F: inc dword ptr [rax] mov r15, 0FFFFFFFFFFFFFFF9h jmp short loc_71364 loc_7133A: lea rsi, aOperandPrototy+20h; "not an object" xor r14d, r14d mov rdi, rbx xor eax, eax call JS_ThrowTypeError mov r12d, 6 jmp short loc_71376 loc_71356: mov rdi, rbx mov rsi, rax call JS_ToStringFree mov r15, rdx loc_71364: mov r14d, r15d mov r12d, 6 cmp r14, 6 jnz short loc_71390 loc_71373: xor r14d, r14d loc_71376: xor ecx, ecx loc_71378: or r14, rcx mov rax, r14 mov rdx, r12 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_71390: mov [rsp+38h+var_38], rax mov rdi, rbx mov rsi, rbp mov rdx, r13 mov ecx, 33h ; '3' mov r8, rbp mov r9, r13 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h cmp edx, 3 jnz short loc_713D6 mov rax, [rbx+18h] mov rax, [rax+68h] mov r13, [rax+178h] inc dword ptr [r13+0] mov rbp, 0FFFFFFFFFFFFFFF9h jmp short loc_713E7 loc_713D6: mov rdi, rbx mov rsi, rax call JS_ToStringFree mov r13, rax mov rbp, rdx loc_713E7: mov eax, ebp cmp rax, 6 mov r9, [rsp+38h+var_38] jnz short loc_71423 cmp r15d, 0FFFFFFF7h jb loc_71373 mov rdi, [rbx+18h] mov eax, [r9] lea ecx, [rax-1] mov [r9], ecx cmp eax, 1 jg loc_71373 mov rsi, r9 mov rdx, r15 call js_free_value_rt jmp loc_71373 loc_71423: mov ecx, 0FFFFFFF9h cmp r14d, ecx jnz short loc_71437 test dword ptr [r9+4], 7FFFFFFFh jz short loc_71467 loc_71437: cmp eax, ecx jnz short loc_71445 test dword ptr [r13+4], 7FFFFFFFh jz short loc_71467 loc_71445: lea rsi, aQuickjsNgMemor+4Dh; "" lea r8, aPossiblyUnhand+24h; ": " mov rdi, rbx mov rdx, r9 mov rcx, r15 call JS_ConcatString3 mov r9, rax mov r15, rdx loc_71467: mov rdi, rbx mov rsi, r9 mov rdx, r15 mov rcx, r13 mov r8, rbp call JS_ConcatString mov r12, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax mov r14d, eax jmp loc_71378
unsigned long long js_error_toString( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { char v14; // al int *PropertyInternal2; // rax long long v18; // rdx long long v19; // rcx long long v20; // r8 long long v21; // r9 __m128 v22; // xmm4 __m128 v23; // xmm5 long long v24; // rsi unsigned long long v25; // rax unsigned long long v26; // rcx long long v27; // r15 long long v28; // r14 long long v29; // rdx unsigned long long v30; // rcx int *v32; // rax long long v33; // rdx long long v34; // rcx long long v35; // r8 long long v36; // r9 __m128 v37; // xmm4 __m128 v38; // xmm5 _DWORD *v39; // r13 long long v40; // rbp long long v41; // rdx int *v42; // r9 long long v43; // rdi int v44; // eax long long v45; // rcx long long v46; // rdx unsigned long long v47; // rax long long v48; // [rsp+0h] [rbp-38h] if ( (_DWORD)a3 != -1 ) { v28 = 0LL; JS_ThrowTypeError(a1, (long long)"not an object", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v14); LABEL_11: v30 = 0LL; return v30 | v28; } PropertyInternal2 = (int *)JS_GetPropertyInternal2(a1, a2, -1, 0x37u, a2, a3, 0LL, 0); if ( (_DWORD)v18 == 3 ) { v24 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL); v25 = *(_QWORD *)(v24 + 1192); v26 = *(_QWORD *)(v25 + 4); if ( v26 >> 62 != 1 && (_DWORD)v26 == 0x80000000 ) v25 = *(_QWORD *)(v24 + 376); ++*(_DWORD *)v25; v27 = -7LL; } else { v25 = JS_ToStringFree(a1, PropertyInternal2, v18, a7, a8, a9, a10, v22, v23, a13, a14, v19, v20, v21); v27 = v29; } if ( (unsigned int)v27 == 6LL ) { LABEL_10: v28 = 0LL; goto LABEL_11; } v48 = v25; v32 = (int *)JS_GetPropertyInternal2(a1, a2, a3, 0x33u, a2, a3, 0LL, 0); if ( (_DWORD)v33 == 3 ) { v39 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 376LL); ++*v39; v40 = -7LL; } else { v39 = (_DWORD *)JS_ToStringFree(a1, v32, v33, a7, a8, a9, a10, v37, v38, a13, a14, v34, v35, v36); v40 = v41; } v42 = (int *)v48; if ( (unsigned int)v40 == 6LL ) { if ( (unsigned int)v27 >= 0xFFFFFFF7 ) { v43 = *(_QWORD *)(a1 + 24); v44 = *(_DWORD *)v48; v45 = (unsigned int)(*(_DWORD *)v48 - 1); *(_DWORD *)v48 = v45; if ( v44 <= 1 ) js_free_value_rt(v43, (_QWORD *)v48, v27, v45, v35, v48); } goto LABEL_10; } if ( ((_DWORD)v27 != -7 || (*(_DWORD *)(v48 + 4) & 0x7FFFFFFF) != 0) && ((_DWORD)v40 != -7 || (v39[1] & 0x7FFFFFFF) != 0) ) { v42 = (int *)JS_ConcatString3( a1, (long long)"", (int *)v48, v27, (long long)": ", v48, a7, a8, a9, a10, v37, v38, a13, a14); v27 = v46; } v47 = JS_ConcatString(a1, v42, v27, (unsigned long long)v39, v40, (long long)v42, a7, a8, a9, a10, v37, v38, a13, a14); v30 = v47 & 0xFFFFFFFF00000000LL; v28 = (unsigned int)v47; return v30 | v28; }
js_error_toString: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R13,RDX MOV RBX,RDI CMP R13D,-0x1 JNZ 0x0017133a MOV RBP,RSI MOV RDI,RBX MOV RDX,R13 MOV ECX,0x37 MOV R8,RSI MOV R9,R13 PUSH 0x0 PUSH 0x0 CALL 0x00122c0f ADD RSP,0x10 CMP EDX,0x3 JNZ 0x00171356 MOV RAX,qword ptr [RBX + 0x18] MOV RSI,qword ptr [RAX + 0x68] MOV RAX,qword ptr [RSI + 0x4a8] MOV RCX,qword ptr [RAX + 0x4] MOV RDX,RCX SHR RDX,0x3e CMP EDX,0x1 JZ 0x0017132f MOV EDX,0xfffffff9 ADD RDX,-0x7ffffff9 MOV ECX,ECX CMP ECX,EDX JNZ 0x0017132f MOV RAX,qword ptr [RSI + 0x178] LAB_0017132f: INC dword ptr [RAX] MOV R15,-0x7 JMP 0x00171364 LAB_0017133a: LEA RSI,[0x1a08ed] XOR R14D,R14D MOV RDI,RBX XOR EAX,EAX CALL 0x0012214f MOV R12D,0x6 JMP 0x00171376 LAB_00171356: MOV RDI,RBX MOV RSI,RAX CALL 0x0013479d MOV R15,RDX LAB_00171364: MOV R14D,R15D MOV R12D,0x6 CMP R14,0x6 JNZ 0x00171390 LAB_00171373: XOR R14D,R14D LAB_00171376: XOR ECX,ECX LAB_00171378: OR R14,RCX MOV RAX,R14 MOV RDX,R12 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00171390: MOV qword ptr [RSP],RAX MOV RDI,RBX MOV RSI,RBP MOV RDX,R13 MOV ECX,0x33 MOV R8,RBP MOV R9,R13 PUSH 0x0 PUSH 0x0 CALL 0x00122c0f ADD RSP,0x10 CMP EDX,0x3 JNZ 0x001713d6 MOV RAX,qword ptr [RBX + 0x18] MOV RAX,qword ptr [RAX + 0x68] MOV R13,qword ptr [RAX + 0x178] INC dword ptr [R13] MOV RBP,-0x7 JMP 0x001713e7 LAB_001713d6: MOV RDI,RBX MOV RSI,RAX CALL 0x0013479d MOV R13,RAX MOV RBP,RDX LAB_001713e7: MOV EAX,EBP CMP RAX,0x6 MOV R9,qword ptr [RSP] JNZ 0x00171423 CMP R15D,-0x9 JC 0x00171373 MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [R9] LEA ECX,[RAX + -0x1] MOV dword ptr [R9],ECX CMP EAX,0x1 JG 0x00171373 MOV RSI,R9 MOV RDX,R15 CALL 0x00120d90 JMP 0x00171373 LAB_00171423: MOV ECX,0xfffffff9 CMP R14D,ECX JNZ 0x00171437 TEST dword ptr [R9 + 0x4],0x7fffffff JZ 0x00171467 LAB_00171437: CMP EAX,ECX JNZ 0x00171445 TEST dword ptr [R13 + 0x4],0x7fffffff JZ 0x00171467 LAB_00171445: LEA RSI,[0x1a0299] LEA R8,[0x19d280] MOV RDI,RBX MOV RDX,R9 MOV RCX,R15 CALL 0x00142d9d MOV R9,RAX MOV R15,RDX LAB_00171467: MOV RDI,RBX MOV RSI,R9 MOV RDX,R15 MOV RCX,R13 MOV R8,RBP CALL 0x001410fe MOV R12,RDX MOV RCX,-0x100000000 AND RCX,RAX MOV R14D,EAX JMP 0x00171378
int1 [16] js_error_toString(long param_1,int8 param_2,int8 param_3) { int iVar1; long lVar2; int *piVar3; int *piVar4; ulong uVar5; int8 uVar6; ulong uVar7; int1 auVar8 [12]; int1 auVar9 [16]; int1 auVar10 [16]; int1 auVar11 [16]; if ((int)param_3 == -1) { auVar8 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x37,param_2,param_3,0,0); if (auVar8._8_4_ == 3) { lVar2 = *(long *)(*(long *)(param_1 + 0x18) + 0x68); piVar4 = *(int **)(lVar2 + 0x4a8); if (((uint)((ulong)*(int8 *)(piVar4 + 1) >> 0x3e) != 1) && ((int)*(int8 *)(piVar4 + 1) == -0x80000000)) { piVar4 = *(int **)(lVar2 + 0x178); } *piVar4 = *piVar4 + 1; auVar11._8_8_ = 0xfffffffffffffff9; auVar11._0_8_ = piVar4; } else { auVar11 = JS_ToStringFree(param_1,auVar8._0_8_); } uVar5 = auVar11._8_8_; piVar4 = auVar11._0_8_; if ((uVar5 & 0xffffffff) != 6) { auVar8 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x33,param_2,param_3,0,0); if (auVar8._8_4_ == 3) { piVar3 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + 0x178); *piVar3 = *piVar3 + 1; auVar10._8_8_ = 0xfffffffffffffff9; auVar10._0_8_ = piVar3; } else { auVar10 = JS_ToStringFree(param_1,auVar8._0_8_); } if ((auVar10._8_8_ & 0xffffffff) != 6) { if (((auVar11._8_4_ != 0xfffffff9) || ((piVar4[1] & 0x7fffffffU) != 0)) && ((auVar10._8_4_ != -7 || ((*(uint *)(auVar10._0_8_ + 4) & 0x7fffffff) != 0)))) { auVar11 = JS_ConcatString3(param_1,"",piVar4,uVar5,": "); } auVar11 = JS_ConcatString(param_1,auVar11._0_8_,auVar11._8_8_,auVar10._0_8_,auVar10._8_8_); uVar6 = auVar11._8_8_; uVar5 = auVar11._0_8_ & 0xffffffff00000000; uVar7 = auVar11._0_8_ & 0xffffffff; goto LAB_00171378; } if (0xfffffff6 < auVar11._8_4_) { uVar6 = *(int8 *)(param_1 + 0x18); iVar1 = *piVar4; *piVar4 = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar6,piVar4,uVar5); } } } } else { JS_ThrowTypeError(param_1,"not an object"); } uVar7 = 0; uVar6 = 6; uVar5 = 0; LAB_00171378: auVar9._8_8_ = uVar6; auVar9._0_8_ = uVar7 | uVar5; return auVar9; }
2,138
log_function
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/engine.c
static void log_function(PENGINE_T engine, uint32_t filter, char* pre, STATES_ACTION_T* action) { if ((filter & _engine_log_filter) && ((!engine || ((1 << engine->idx) & _engine_log_instance)))) { char buffer[24] ; const char result = (action->action & STATES_ACTION_RESULT_MASK) == STATES_ACTION_RESULT_PUSH << STATES_ACTION_RESULT_OFFSET ? PARSE_PUSH_OP : (action->action & STATES_ACTION_RESULT_MASK) == STATES_ACTION_RESULT_POP << STATES_ACTION_RESULT_OFFSET ? PARSE_POP_OP : (action->action & STATES_ACTION_RESULT_MASK) == STATES_ACTION_RESULT_SAVE << STATES_ACTION_RESULT_OFFSET ? PARSE_SAVE_OP : ' ' ; engine_log (engine, filter, "%s %s%c, %s", pre, parts_get_action_name(action->action & STATES_ACTION_ID_MASK), result, _log_param (engine, action, buffer, 24)) ; } }
O3
c
log_function: movzwl 0x2dc3a(%rip), %eax # 0x3e378 testl %esi, %eax je 0x10810 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rcx, %r12 movl %esi, %r14d movq %rdi, %r15 testq %rdi, %rdi je 0x10777 movl 0x2dc11(%rip), %eax # 0x3e37c movl (%r15), %ecx btl %ecx, %eax jae 0x10802 movzwl (%r12), %edi movl %edi, %eax andl $0x3000, %eax # imm = 0x3000 cmpl $0x1000, %eax # imm = 0x1000 movq %rdx, -0x38(%rbp) je 0x1079e cmpl $0x2000, %eax # imm = 0x2000 jne 0x107a7 movl $0x2d, -0x2c(%rbp) jmp 0x107bf movl $0x2b, -0x2c(%rbp) jmp 0x107bf movzwl %ax, %eax cmpl $0x3000, %eax # imm = 0x3000 movl $0x3d, %eax movl $0x20, %ecx cmovel %eax, %ecx movl %ecx, -0x2c(%rbp) andl $0xfff, %edi # imm = 0xFFF callq 0x812a movq %rax, %rbx leaq -0x50(%rbp), %r13 movq %r15, %rdi movq %r12, %rsi movq %r13, %rdx callq 0x10358 movq %r13, (%rsp) leaq 0x1610c(%rip), %rdx # 0x268f6 movq %r15, %rdi movl %r14d, %esi movq -0x38(%rbp), %rcx movq %rbx, %r8 movl -0x2c(%rbp), %r9d xorl %eax, %eax callq 0xe379 addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nopl (%rax)
log_function: movzx eax, cs:_engine_log_filter test eax, esi jz locret_10810 push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r12, rcx mov r14d, esi mov r15, rdi test rdi, rdi jz short loc_10777 mov eax, cs:_engine_log_instance mov ecx, [r15] bt eax, ecx jnb loc_10802 loc_10777: movzx edi, word ptr [r12] mov eax, edi and eax, 3000h cmp eax, 1000h mov [rbp-38h], rdx jz short loc_1079E cmp eax, 2000h jnz short loc_107A7 mov dword ptr [rbp-2Ch], 2Dh ; '-' jmp short loc_107BF loc_1079E: mov dword ptr [rbp-2Ch], 2Bh ; '+' jmp short loc_107BF loc_107A7: movzx eax, ax cmp eax, 3000h mov eax, 3Dh ; '=' mov ecx, 20h ; ' ' cmovz ecx, eax mov [rbp-2Ch], ecx loc_107BF: and edi, 0FFFh call parts_get_action_name mov rbx, rax lea r13, [rbp-50h] mov rdi, r15 mov rsi, r12 mov rdx, r13 call _log_param mov [rsp+68h+var_68], r13 lea rdx, aSSCS; "%s %s%c, %s" mov rdi, r15 mov esi, r14d mov rcx, [rbp-38h] mov r8, rbx mov r9d, [rbp-2Ch] xor eax, eax call engine_log loc_10802: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp locret_10810: retn
long long log_function( unsigned int *a1, unsigned __int16 a2, long long a3, unsigned __int16 *a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12) { long long result; // rax unsigned __int16 v15; // di int v16; // eax int v17; // ecx long long action_name; // rbx long long v19; // rcx long long v20; // r8 long long v21; // r9 __m128 v22; // xmm4 __m128 v23; // xmm5 __m128 v24; // xmm4 __m128 v25; // xmm5 long long v26; // [rsp+10h] [rbp-58h] BYREF long long v27; // [rsp+28h] [rbp-40h] unsigned int v28; // [rsp+34h] [rbp-34h] long long v29; // [rsp+60h] [rbp-8h] BYREF result = (unsigned __int16)engine_log_filter; if ( (a2 & (unsigned __int16)engine_log_filter) != 0 ) { if ( !a1 || (result = (unsigned int)engine_log_instance, _bittest((const int *)&result, *a1)) ) { v15 = *a4; v16 = *a4 & 0x3000; v27 = a3; if ( v16 == 4096 ) { v28 = 43; } else if ( v16 == 0x2000 ) { v28 = 45; } else { v17 = 32; if ( (unsigned __int16)v16 == 12288 ) v17 = 61; v28 = v17; } action_name = parts_get_action_name(v15 & 0xFFF); log_param(a1, a4, (long long)&v26, a5, a6, a7, a8, v22, v23, a11, a12, v19, v20, v21); return engine_log( a1, a2, (long long)aSSCS, v27, action_name, v28, a5, a6, a7, a8, v24, v25, a11, a12, (unsigned __int8)&v29 - 80); } } return result; }
log_function: MOVZX EAX,word ptr [0x0013e378] TEST EAX,ESI JZ 0x00110810 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R12,RCX MOV R14D,ESI MOV R15,RDI TEST RDI,RDI JZ 0x00110777 MOV EAX,dword ptr [0x0013e37c] MOV ECX,dword ptr [R15] BT EAX,ECX JNC 0x00110802 LAB_00110777: MOVZX EDI,word ptr [R12] MOV EAX,EDI AND EAX,0x3000 CMP EAX,0x1000 MOV qword ptr [RBP + -0x38],RDX JZ 0x0011079e CMP EAX,0x2000 JNZ 0x001107a7 MOV dword ptr [RBP + -0x2c],0x2d JMP 0x001107bf LAB_0011079e: MOV dword ptr [RBP + -0x2c],0x2b JMP 0x001107bf LAB_001107a7: MOVZX EAX,AX CMP EAX,0x3000 MOV EAX,0x3d MOV ECX,0x20 CMOVZ ECX,EAX MOV dword ptr [RBP + -0x2c],ECX LAB_001107bf: AND EDI,0xfff CALL 0x0010812a MOV RBX,RAX LEA R13,[RBP + -0x50] MOV RDI,R15 MOV RSI,R12 MOV RDX,R13 CALL 0x00110358 MOV qword ptr [RSP],R13 LEA RDX,[0x1268f6] MOV RDI,R15 MOV ESI,R14D MOV RCX,qword ptr [RBP + -0x38] MOV R8,RBX MOV R9D,dword ptr [RBP + -0x2c] XOR EAX,EAX CALL 0x0010e379 LAB_00110802: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP LAB_00110810: RET
void log_function(uint *param_1,uint param_2,int8 param_3,ushort *param_4) { ushort uVar1; int8 uVar2; int1 local_58 [24]; int8 local_40; int4 local_34; if (((_engine_log_filter & param_2) != 0) && ((param_1 == (uint *)0x0 || ((_engine_log_instance >> (*param_1 & 0x1f) & 1) != 0)))) { uVar1 = *param_4 & 0x3000; if (uVar1 == 0x1000) { local_34 = 0x2b; } else if (uVar1 == 0x2000) { local_34 = 0x2d; } else { local_34 = 0x20; if (uVar1 == 0x3000) { local_34 = 0x3d; } } local_40 = param_3; uVar2 = parts_get_action_name(*param_4 & 0xfff); _log_param(param_1,param_4,local_58); engine_log(param_1,param_2,s__s__s_c___s_001268f6,local_40,uVar2,local_34,local_58); } return; }
2,139
ma_field_extension_deep_dup
eloqsql/libmariadb/libmariadb/mariadb_lib.c
MA_FIELD_EXTENSION *ma_field_extension_deep_dup(MA_MEM_ROOT *memroot, const MA_FIELD_EXTENSION *from) { MA_FIELD_EXTENSION *ext= new_ma_field_extension(memroot); uint i; if (!ext) return NULL; for (i= 0; i < MARIADB_FIELD_ATTR_LAST; i++) { if (from->metadata[i].str) ext->metadata[i]= ma_const_string_copy_root(memroot, from->metadata[i].str, from->metadata[i].length); } return ext; }
O0
c
ma_field_extension_deep_dup: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x3c6b0 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x3c721 movq $0x0, -0x8(%rbp) jmp 0x3c7ba movl $0x0, -0x24(%rbp) cmpl $0x1, -0x24(%rbp) jae 0x3c7b2 movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax cmpq $0x0, (%rax) je 0x3c7a2 movq -0x20(%rbp), %rax movl -0x24(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rsi movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq 0x8(%rax), %rdx callq 0x3c7d0 movq %rax, %rcx movq -0x40(%rbp), %rax movq %rcx, -0x38(%rbp) movq %rdx, -0x30(%rbp) movq -0x38(%rbp), %rcx movq %rcx, (%rax) movq -0x30(%rbp), %rcx movq %rcx, 0x8(%rax) jmp 0x3c7a4 movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0x3c728 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_field_extension_deep_dup: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10] call new_ma_field_extension mov [rbp+var_20], rax cmp [rbp+var_20], 0 jnz short loc_3C721 mov [rbp+var_8], 0 jmp loc_3C7BA loc_3C721: mov [rbp+var_24], 0 loc_3C728: cmp [rbp+var_24], 1 jnb loc_3C7B2 mov rax, [rbp+var_18] mov ecx, [rbp+var_24] shl rcx, 4 add rax, rcx cmp qword ptr [rax], 0 jz short loc_3C7A2 mov rax, [rbp+var_20] mov ecx, [rbp+var_24] shl rcx, 4 add rax, rcx mov [rbp+var_40], rax mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov ecx, [rbp+var_24] shl rcx, 4 add rax, rcx mov rsi, [rax] mov rax, [rbp+var_18] mov ecx, [rbp+var_24] shl rcx, 4 add rax, rcx mov rdx, [rax+8] call ma_const_string_copy_root mov rcx, rax mov rax, [rbp+var_40] mov [rbp+var_38], rcx mov [rbp+var_30], rdx mov rcx, [rbp+var_38] mov [rax], rcx mov rcx, [rbp+var_30] mov [rax+8], rcx loc_3C7A2: jmp short $+2 loc_3C7A4: mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp loc_3C728 loc_3C7B2: mov rax, [rbp+var_20] mov [rbp+var_8], rax loc_3C7BA: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
_QWORD * ma_field_extension_deep_dup(long long a1, _QWORD *a2) { long long v2; // rdx int i; // [rsp+1Ch] [rbp-24h] _QWORD *v5; // [rsp+20h] [rbp-20h] v5 = (_QWORD *)new_ma_field_extension(a1); if ( !v5 ) return 0LL; for ( i = 0; !i; i = 1 ) { if ( *a2 ) { *v5 = ma_const_string_copy_root(a1, *a2, a2[1]); v5[1] = v2; } } return v5; }
ma_field_extension_deep_dup: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013c6b0 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JNZ 0x0013c721 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0013c7ba LAB_0013c721: MOV dword ptr [RBP + -0x24],0x0 LAB_0013c728: CMP dword ptr [RBP + -0x24],0x1 JNC 0x0013c7b2 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] SHL RCX,0x4 ADD RAX,RCX CMP qword ptr [RAX],0x0 JZ 0x0013c7a2 MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x24] SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] SHL RCX,0x4 ADD RAX,RCX MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] SHL RCX,0x4 ADD RAX,RCX MOV RDX,qword ptr [RAX + 0x8] CALL 0x0013c7d0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x38],RCX MOV qword ptr [RBP + -0x30],RDX MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x8],RCX LAB_0013c7a2: JMP 0x0013c7a4 LAB_0013c7a4: MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x0013c728 LAB_0013c7b2: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX LAB_0013c7ba: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
int1 (*) [16] ma_field_extension_deep_dup(int8 param_1,long *param_2) { bool bVar1; int1 auVar2 [16]; int1 (*local_10) [16]; local_10 = (int1 (*) [16])new_ma_field_extension(param_1); if (local_10 == (int1 (*) [16])0x0) { local_10 = (int1 (*) [16])0x0; } else { bVar1 = false; while (!bVar1) { if (*param_2 != 0) { auVar2 = ma_const_string_copy_root(param_1,*param_2,param_2[1]); *local_10 = auVar2; } bVar1 = true; } } return local_10; }
2,140
my_strerror
eloqsql/strings/my_vsnprintf.c
const char* my_strerror(char *buf, size_t len, int nr) { char *msg= NULL; buf[0]= '\0'; /* failsafe */ if (nr <= 0) { strmake(buf, (nr == 0 ? "Internal error/check (Not system error)" : "Internal error < 0 (Not system error)"), len-1); return buf; } /* These (handler-) error messages are shared by perror, as required by the principle of least surprise. */ if ((nr >= HA_ERR_FIRST) && (nr <= HA_ERR_LAST)) { msg= (char *) handler_error_messages[nr - HA_ERR_FIRST]; strmake(buf, msg, len - 1); } else { /* On Windows, do things the Windows way. On a system that supports both the GNU and the XSI variant, use whichever was configured (GNU); if this choice is not advertised, use the default (POSIX/XSI). Testing for __GNUC__ is not sufficient to determine whether this choice exists. */ #if defined(_WIN32) strerror_s(buf, len, nr); #elif ((defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE >= 200112L)) || \ (defined _XOPEN_SOURCE && (_XOPEN_SOURCE >= 600))) && \ ! defined _GNU_SOURCE strerror_r(nr, buf, len); /* I can build with or without GNU */ #elif defined(__GLIBC__) && defined (_GNU_SOURCE) char *r= strerror_r(nr, buf, len); if (r != buf) /* Want to help, GNU? */ strmake(buf, r, len - 1); /* Then don't. */ #else strerror_r(nr, buf, len); #endif } /* strerror() return values are implementation-dependent, so let's be pragmatic. */ if (!buf[0]) strmake(buf, "unknown error", len - 1); return buf; }
O3
c
my_strerror: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movb $0x0, (%rdi) testl %edx, %edx jle 0x5e8f6 leal -0x78(%rdx), %eax cmpl $0x4e, %eax ja 0x5e90a movl %eax, %eax leaq 0x280b0f(%rip), %rcx # 0x2df3fc movslq (%rcx,%rax,4), %rsi addq %rcx, %rsi jmp 0x5e91f leaq 0x74d7(%rip), %rax # 0x65dd4 leaq 0x74f8(%rip), %rsi # 0x65dfc cmoveq %rax, %rsi jmp 0x5e937 movl %edx, %edi movq %rbx, %rsi movq %r14, %rdx callq 0x240d0 movq %rax, %rsi cmpq %rbx, %rax je 0x5e92b leaq -0x1(%r14), %rdx movq %rbx, %rdi callq 0x5ed58 cmpb $0x0, (%rbx) jne 0x5e945 leaq 0x74eb(%rip), %rsi # 0x65e22 decq %r14 movq %rbx, %rdi movq %r14, %rdx callq 0x5ed58 movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq
my_strerror: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi mov rbx, rdi mov byte ptr [rdi], 0 test edx, edx jle short loc_5E8F6 lea eax, [rdx-78h] cmp eax, 4Eh ; 'N' ja short loc_5E90A mov eax, eax lea rcx, handler_error_messages_rel movsxd rsi, dword ptr [rcx+rax*4] add rsi, rcx jmp short loc_5E91F loc_5E8F6: lea rax, aInternalErrorC; "Internal error/check (Not system error)" lea rsi, aInternalError0; "Internal error < 0 (Not system error)" cmovz rsi, rax jmp short loc_5E937 loc_5E90A: mov edi, edx mov rsi, rbx mov rdx, r14 call _strerror_r mov rsi, rax cmp rax, rbx jz short loc_5E92B loc_5E91F: lea rdx, [r14-1] mov rdi, rbx call strmake loc_5E92B: cmp byte ptr [rbx], 0 jnz short loc_5E945 lea rsi, aUnknownError; "unknown error" loc_5E937: dec r14 mov rdi, rbx mov rdx, r14 call strmake loc_5E945: mov rax, rbx pop rbx pop r14 pop rbp retn
char * my_strerror(char *a1, long long a2, int a3) { char *v4; // rsi const char *v5; // rsi *a1 = 0; if ( a3 <= 0 ) { v5 = "Internal error < 0 (Not system error)"; if ( !a3 ) v5 = "Internal error/check (Not system error)"; goto LABEL_11; } if ( (unsigned int)(a3 - 120) > 0x4E ) { v4 = (char *)strerror_r((unsigned int)a3, a1, a2); if ( v4 == a1 ) goto LABEL_9; } else { v4 = (char *)handler_error_messages_rel + handler_error_messages_rel[a3 - 120]; } strmake(a1, v4, a2 - 1); LABEL_9: if ( !*a1 ) { v5 = "unknown error"; LABEL_11: strmake(a1, v5, a2 - 1); } return a1; }
my_strerror: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI MOV RBX,RDI MOV byte ptr [RDI],0x0 TEST EDX,EDX JLE 0x0015e8f6 LEA EAX,[RDX + -0x78] CMP EAX,0x4e JA 0x0015e90a MOV EAX,EAX LEA RCX,[0x3df3fc] MOVSXD RSI,dword ptr [RCX + RAX*0x4] ADD RSI,RCX JMP 0x0015e91f LAB_0015e8f6: LEA RAX,[0x165dd4] LEA RSI,[0x165dfc] CMOVZ RSI,RAX JMP 0x0015e937 LAB_0015e90a: MOV EDI,EDX MOV RSI,RBX MOV RDX,R14 CALL 0x001240d0 MOV RSI,RAX CMP RAX,RBX JZ 0x0015e92b LAB_0015e91f: LEA RDX,[R14 + -0x1] MOV RDI,RBX CALL 0x0015ed58 LAB_0015e92b: CMP byte ptr [RBX],0x0 JNZ 0x0015e945 LEA RSI,[0x165e22] LAB_0015e937: DEC R14 MOV RDI,RBX MOV RDX,R14 CALL 0x0015ed58 LAB_0015e945: MOV RAX,RBX POP RBX POP R14 POP RBP RET
char * my_strerror(char *param_1,size_t param_2,int param_3) { char *pcVar1; *param_1 = '\0'; if (param_3 < 1) { pcVar1 = "Internal error < 0 (Not system error)"; if (param_3 == 0) { pcVar1 = "Internal error/check (Not system error)"; } goto LAB_0015e937; } if (param_3 - 0x78U < 0x4f) { pcVar1 = handler_error_messages_rel + *(int *)(handler_error_messages_rel + (ulong)(param_3 - 0x78U) * 4); LAB_0015e91f: strmake(param_1,pcVar1,param_2 - 1); } else { pcVar1 = strerror_r(param_3,param_1,param_2); if (pcVar1 != param_1) goto LAB_0015e91f; } if (*param_1 != '\0') { return param_1; } pcVar1 = "unknown error"; LAB_0015e937: strmake(param_1,pcVar1,param_2 - 1); return param_1; }
2,141
minja::Parser::consumeTokenGroups(std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> const&, minja::SpaceHandling)
monkey531[P]llama/common/minja.hpp
std::vector<std::string> consumeTokenGroups(const std::regex & regex, SpaceHandling space_handling = SpaceHandling::Strip) { auto start = it; consumeSpaces(space_handling); std::smatch match; if (std::regex_search(it, end, match, regex) && match.position() == 0) { it += match[0].length(); std::vector<std::string> ret; for (size_t i = 0, n = match.size(); i < n; ++i) { ret.push_back(match[i].str()); } return ret; } it = start; return {}; }
O1
cpp
minja::Parser::consumeTokenGroups(std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> const&, minja::SpaceHandling): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq 0x20(%rsi), %r12 movq %rsi, %rdi movl %ecx, %esi callq 0x412f0 xorps %xmm0, %xmm0 movq %rsp, %rdx movaps %xmm0, 0x10(%rdx) movaps %xmm0, (%rdx) movq 0x18(%r14), %rsi movq 0x20(%r14), %rdi movq %r15, %rcx xorl %r8d, %r8d callq 0x5fddc testb %al, %al je 0x351b1 movq (%rsp), %rcx movq 0x8(%rsp), %rdx movq %rdx, %rax subq %rcx, %rax leaq -0x48(%rdx), %rsi cmpq $0x48, %rax movq %rcx, %rdi cmoveq %rsi, %rdi movq %rdx, %rax subq %rcx, %rax cmoveq %rsi, %rdi movq (%rdi), %rdi cmpq 0x18(%rsp), %rdi je 0x351eb movq %r12, 0x20(%r14) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq $0x0, 0x10(%rbx) movq (%rsp), %rdi testq %rdi, %rdi je 0x351d9 movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x196e0 movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq cmpq $0x48, %rax movq %rcx, %rdi cmoveq %rsi, %rdi cmpq %rdx, %rcx cmoveq %rsi, %rdi movq 0x8(%rdi), %rsi subq (%rdi), %rsi xorl %r15d, %r15d cmpb $0x0, 0x10(%rdi) cmoveq %r15, %rsi addq %rsi, 0x20(%r14) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq $0x0, 0x10(%rbx) movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB cmpq %rdx, %rcx je 0x3523f sarq $0x3, %rax imulq %rsi, %rax addq $-0x3, %rax movq %rax, %r15 testq %r15, %r15 je 0x351c3 leaq 0x38(%rsp), %r13 xorl %ebp, %ebp leaq 0x28(%rsp), %r14 xorl %r12d, %r12d movq (%rsp), %rax movq 0x8(%rsp), %rcx cmpq %rcx, %rax je 0x35283 movq %rcx, %rdx subq %rax, %rdx sarq $0x3, %rdx movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB imulq %rsi, %rdx addq $-0x3, %rdx jmp 0x35285 xorl %edx, %edx cmpq %r12, %rdx ja 0x35293 addq $-0x48, %rcx movq %rcx, %rax jmp 0x35296 addq %rbp, %rax cmpb $0x1, 0x10(%rax) jne 0x352b2 movq (%rax), %rsi movq 0x8(%rax), %rdx movq %r13, 0x28(%rsp) movq %r14, %rdi callq 0x61dfe jmp 0x352c5 movq %r13, 0x28(%rsp) movq $0x0, 0x30(%rsp) movb $0x0, 0x38(%rsp) movq %rbx, %rdi movq %r14, %rsi callq 0x8200e movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x352e7 movq 0x38(%rsp), %rsi incq %rsi callq 0x196e0 incq %r12 addq $0x18, %rbp cmpq %r12, %r15 jne 0x35257 jmp 0x351c3 movq %rax, %r14 jmp 0x35328 movq %rax, %r14 jmp 0x35320 movq %rax, %r14 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x35320 movq 0x38(%rsp), %rsi incq %rsi callq 0x196e0 movq %rbx, %rdi callq 0x207ae movq (%rsp), %rdi testq %rdi, %rdi je 0x3533e movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x196e0 movq %r14, %rdi callq 0x19c10
_ZN5minja6Parser18consumeTokenGroupsERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r15, rdx mov r14, rsi mov rbx, rdi mov r12, [rsi+20h] mov rdi, rsi mov esi, ecx call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling) xorps xmm0, xmm0 mov rdx, rsp movaps xmmword ptr [rdx+10h], xmm0 movaps xmmword ptr [rdx], xmm0 mov rsi, [r14+18h] mov rdi, [r14+20h] mov rcx, r15 xor r8d, r8d call _ZNSt8__detail17__regex_algo_implIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS5_9sub_matchISB_EEEcNS5_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb0EEEbT_SI_RNS5_13match_resultsISI_T0_EERKNS5_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type) test al, al jz short loc_351B1 mov rcx, [rsp+78h+var_78] mov rdx, [rsp+78h+var_70] mov rax, rdx sub rax, rcx lea rsi, [rdx-48h] cmp rax, 48h ; 'H' mov rdi, rcx cmovz rdi, rsi mov rax, rdx sub rax, rcx cmovz rdi, rsi mov rdi, [rdi] cmp rdi, [rsp+78h+var_60] jz short loc_351EB loc_351B1: mov [r14+20h], r12 xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 mov qword ptr [rbx+10h], 0 loc_351C3: mov rdi, [rsp+78h+var_78]; void * test rdi, rdi jz short loc_351D9 mov rsi, [rsp+78h+var_68] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_351D9: mov rax, rbx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_351EB: cmp rax, 48h ; 'H' mov rdi, rcx cmovz rdi, rsi cmp rcx, rdx cmovz rdi, rsi mov rsi, [rdi+8] sub rsi, [rdi] xor r15d, r15d cmp byte ptr [rdi+10h], 0 cmovz rsi, r15 add [r14+20h], rsi xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 mov qword ptr [rbx+10h], 0 mov rsi, 0AAAAAAAAAAAAAAABh cmp rcx, rdx jz short loc_3523F sar rax, 3 imul rax, rsi add rax, 0FFFFFFFFFFFFFFFDh mov r15, rax loc_3523F: test r15, r15 jz loc_351C3 lea r13, [rsp+78h+var_40] xor ebp, ebp lea r14, [rsp+78h+var_50] xor r12d, r12d loc_35257: mov rax, [rsp+78h+var_78] mov rcx, [rsp+78h+var_70] cmp rax, rcx jz short loc_35283 mov rdx, rcx sub rdx, rax sar rdx, 3 mov rsi, 0AAAAAAAAAAAAAAABh imul rdx, rsi add rdx, 0FFFFFFFFFFFFFFFDh jmp short loc_35285 loc_35283: xor edx, edx loc_35285: cmp rdx, r12 ja short loc_35293 add rcx, 0FFFFFFFFFFFFFFB8h mov rax, rcx jmp short loc_35296 loc_35293: add rax, rbp loc_35296: cmp byte ptr [rax+10h], 1 jnz short loc_352B2 mov rsi, [rax] mov rdx, [rax+8] mov [rsp+78h+var_50], r13 mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) jmp short loc_352C5 loc_352B2: mov [rsp+78h+var_50], r13 mov [rsp+78h+var_48], 0 mov byte ptr [rsp+78h+var_40], 0 loc_352C5: mov rdi, rbx mov rsi, r14 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, [rsp+78h+var_50]; void * cmp rdi, r13 jz short loc_352E7 mov rsi, [rsp+78h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_352E7: inc r12 add rbp, 18h cmp r15, r12 jnz loc_35257 jmp loc_351C3 mov r14, rax jmp short loc_35328 mov r14, rax jmp short loc_35320 mov r14, rax mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_35320 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_35320: mov rdi, rbx call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_35328: mov rdi, [rsp+0]; void * test rdi, rdi jz short loc_3533E mov rsi, [rsp+arg_8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3533E: mov rdi, r14 call __Unwind_Resume
long long minja::Parser::consumeTokenGroups(long long a1, long long a2, long long a3, unsigned int a4) { long long v7; // r12 __int128 v8; // kr00_16 _QWORD *v9; // rdi long long v10; // rax long long v12; // rdi long long v13; // rsi unsigned long long v14; // r15 long long v15; // rbp unsigned long long i; // r12 unsigned long long v17; // rdx long long v18; // rax long long v19; // rsi long long v20; // rdx __int128 v21; // [rsp+0h] [rbp-78h] BYREF __int128 v22; // [rsp+10h] [rbp-68h] void *v23[2]; // [rsp+28h] [rbp-50h] BYREF _QWORD v24[8]; // [rsp+38h] [rbp-40h] BYREF v7 = *(_QWORD *)(a2 + 32); minja::Parser::consumeSpaces(a2, a4); v22 = 0LL; v21 = 0LL; if ( !(unsigned __int8)std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>( *(_QWORD *)(a2 + 32), *(_QWORD *)(a2 + 24), &v21, a3, 0LL) ) goto LABEL_7; v8 = v21; v9 = (_QWORD *)v21; if ( *((_QWORD *)&v21 + 1) - (_QWORD)v21 == 72LL ) v9 = (_QWORD *)(*((_QWORD *)&v21 + 1) - 72LL); v10 = *((_QWORD *)&v21 + 1) - v21; if ( *((_QWORD *)&v21 + 1) == (_QWORD)v21 ) v9 = (_QWORD *)(*((_QWORD *)&v21 + 1) - 72LL); if ( *v9 == *((_QWORD *)&v22 + 1) ) { v12 = v21; if ( v10 == 72 ) v12 = *((_QWORD *)&v21 + 1) - 72LL; if ( (_QWORD)v21 == *((_QWORD *)&v21 + 1) ) v12 = *((_QWORD *)&v21 + 1) - 72LL; v13 = *(_QWORD *)(v12 + 8) - *(_QWORD *)v12; v14 = 0LL; if ( !*(_BYTE *)(v12 + 16) ) v13 = 0LL; *(_QWORD *)(a2 + 32) += v13; *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 16) = 0LL; if ( (_QWORD)v8 != *((_QWORD *)&v8 + 1) ) v14 = 0xAAAAAAAAAAAAAAABLL * (v10 >> 3) - 3; if ( v14 ) { v15 = 0LL; for ( i = 0LL; i != v14; ++i ) { if ( (_QWORD)v21 == *((_QWORD *)&v21 + 1) ) v17 = 0LL; else v17 = 0xAAAAAAAAAAAAAAABLL * ((long long)(*((_QWORD *)&v21 + 1) - v21) >> 3) - 3; if ( v17 > i ) v18 = v15 + v21; else v18 = *((_QWORD *)&v21 + 1) - 72LL; if ( *(_BYTE *)(v18 + 16) == 1 ) { v19 = *(_QWORD *)v18; v20 = *(_QWORD *)(v18 + 8); v23[0] = v24; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(v23, v19, v20); } else { v23[0] = v24; v23[1] = 0LL; LOBYTE(v24[0]) = 0; } std::vector<std::string>::emplace_back<std::string>(a1, v23); if ( v23[0] != v24 ) operator delete(v23[0], v24[0] + 1LL); v15 += 24LL; } } } else { LABEL_7: *(_QWORD *)(a2 + 32) = v7; *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 16) = 0LL; } if ( (_QWORD)v21 ) operator delete((void *)v21, v22 - v21); return a1; }
consumeTokenGroups: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R15,RDX MOV R14,RSI MOV RBX,RDI MOV R12,qword ptr [RSI + 0x20] MOV RDI,RSI MOV ESI,ECX CALL 0x001412f0 XORPS XMM0,XMM0 MOV RDX,RSP MOVAPS xmmword ptr [RDX + 0x10],XMM0 MOVAPS xmmword ptr [RDX],XMM0 MOV RSI,qword ptr [R14 + 0x18] MOV RDI,qword ptr [R14 + 0x20] LAB_00135170: MOV RCX,R15 XOR R8D,R8D CALL 0x0015fddc TEST AL,AL JZ 0x001351b1 MOV RCX,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] MOV RAX,RDX SUB RAX,RCX LEA RSI,[RDX + -0x48] CMP RAX,0x48 MOV RDI,RCX CMOVZ RDI,RSI MOV RAX,RDX SUB RAX,RCX CMOVZ RDI,RSI MOV RDI,qword ptr [RDI] CMP RDI,qword ptr [RSP + 0x18] JZ 0x001351eb LAB_001351b1: MOV qword ptr [R14 + 0x20],R12 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOV qword ptr [RBX + 0x10],0x0 LAB_001351c3: MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x001351d9 MOV RSI,qword ptr [RSP + 0x10] SUB RSI,RDI CALL 0x001196e0 LAB_001351d9: MOV RAX,RBX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001351eb: CMP RAX,0x48 MOV RDI,RCX CMOVZ RDI,RSI CMP RCX,RDX CMOVZ RDI,RSI MOV RSI,qword ptr [RDI + 0x8] SUB RSI,qword ptr [RDI] XOR R15D,R15D CMP byte ptr [RDI + 0x10],0x0 CMOVZ RSI,R15 ADD qword ptr [R14 + 0x20],RSI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOV qword ptr [RBX + 0x10],0x0 MOV RSI,-0x5555555555555555 CMP RCX,RDX JZ 0x0013523f SAR RAX,0x3 IMUL RAX,RSI ADD RAX,-0x3 MOV R15,RAX LAB_0013523f: TEST R15,R15 JZ 0x001351c3 LEA R13,[RSP + 0x38] XOR EBP,EBP LEA R14,[RSP + 0x28] XOR R12D,R12D LAB_00135257: MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x8] CMP RAX,RCX JZ 0x00135283 MOV RDX,RCX SUB RDX,RAX SAR RDX,0x3 MOV RSI,-0x5555555555555555 IMUL RDX,RSI ADD RDX,-0x3 JMP 0x00135285 LAB_00135283: XOR EDX,EDX LAB_00135285: CMP RDX,R12 JA 0x00135293 ADD RCX,-0x48 MOV RAX,RCX JMP 0x00135296 LAB_00135293: ADD RAX,RBP LAB_00135296: CMP byte ptr [RAX + 0x10],0x1 JNZ 0x001352b2 MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x28],R13 LAB_001352a8: MOV RDI,R14 CALL 0x00161dfe JMP 0x001352c5 LAB_001352b2: MOV qword ptr [RSP + 0x28],R13 MOV qword ptr [RSP + 0x30],0x0 MOV byte ptr [RSP + 0x38],0x0 LAB_001352c5: MOV RDI,RBX MOV RSI,R14 CALL 0x0018200e LAB_001352d0: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x001352e7 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001196e0 LAB_001352e7: INC R12 ADD RBP,0x18 CMP R15,R12 JNZ 0x00135257 JMP 0x001351c3
/* minja::Parser::consumeTokenGroups(std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char> > const&, minja::SpaceHandling) */ vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> * minja::Parser::consumeTokenGroups (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *param_1, Parser *param_2,int8 param_3,int4 param_4) { int8 uVar1; bool bVar2; long lVar3; ulong uVar4; long *plVar5; ulong uVar6; long *plVar7; ulong uVar8; long *local_78; long *plStack_70; long local_68; long lStack_60; int1 *local_50; int8 local_48; int1 local_40; int7 uStack_3f; uVar1 = *(int8 *)(param_2 + 0x20); consumeSpaces(param_2,param_4); local_68 = 0; lStack_60 = 0; local_78 = (long *)0x0; plStack_70 = (long *)0x0; /* try { // try from 00135170 to 0013517a has its CatchHandler @ 001352fc */ bVar2 = std::__detail:: __regex_algo_impl<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,char,std::__cxx11::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false> (*(int8 *)(param_2 + 0x20),*(int8 *)(param_2 + 0x18),&local_78, param_3,0); if (bVar2) { plVar5 = plStack_70 + -9; plVar7 = local_78; if ((long)plStack_70 - (long)local_78 == 0x48) { plVar7 = plVar5; } lVar3 = (long)plStack_70 - (long)local_78; if (lVar3 == 0) { plVar7 = plVar5; } if (*plVar7 == lStack_60) { plVar7 = local_78; if (lVar3 == 0x48) { plVar7 = plVar5; } if (local_78 == plStack_70) { plVar7 = plVar5; } uVar4 = 0; uVar8 = plVar7[1] - *plVar7; if ((char)plVar7[2] == '\0') { uVar8 = uVar4; } *(ulong *)(param_2 + 0x20) = *(long *)(param_2 + 0x20) + uVar8; *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; if (local_78 != plStack_70) { uVar4 = (lVar3 >> 3) * -0x5555555555555555 - 3; } if (uVar4 != 0) { lVar3 = 0; uVar8 = 0; do { if (local_78 == plStack_70) { uVar6 = 0; } else { uVar6 = ((long)plStack_70 - (long)local_78 >> 3) * -0x5555555555555555 - 3; } if (uVar8 < uVar6) { plVar5 = (long *)((long)local_78 + lVar3); } else { plVar5 = plStack_70 + -9; } local_50 = &local_40; if ((char)plVar5[2] == '\x01') { /* try { // try from 001352a8 to 001352af has its CatchHandler @ 00135301 */ std::__cxx11::string:: _M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> ((string *)&local_50,*plVar5,plVar5[1]); } else { local_48 = 0; local_40 = 0; } /* try { // try from 001352c5 to 001352cf has its CatchHandler @ 00135306 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string>(param_1,(string *)&local_50); if (local_50 != &local_40) { operator_delete(local_50,CONCAT71(uStack_3f,local_40) + 1); } uVar8 = uVar8 + 1; lVar3 = lVar3 + 0x18; } while (uVar4 != uVar8); } goto LAB_001351c3; } } *(int8 *)(param_2 + 0x20) = uVar1; *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; LAB_001351c3: if (local_78 != (long *)0x0) { operator_delete(local_78,local_68 - (long)local_78); } return param_1; }
2,142
ggml_compute_forward_relu
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
static void ggml_compute_forward_relu( const struct ggml_compute_params * params, struct ggml_tensor * dst) { const struct ggml_tensor * src0 = dst->src[0]; switch (src0->type) { case GGML_TYPE_F32: { ggml_compute_forward_relu_f32(params, dst); } break; default: { GGML_ABORT("fatal error"); } } }
O0
c
ggml_compute_forward_relu: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x98(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movl (%rax), %eax testl %eax, %eax jne 0x38e7a jmp 0x38e6b movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x39b60 jmp 0x38e94 leaq 0x3ace1(%rip), %rdi # 0x73b62 movl $0x190d, %esi # imm = 0x190D leaq 0x3af30(%rip), %rdx # 0x73dbd movb $0x0, %al callq 0xe270 addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
ggml_compute_forward_relu: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov rax, [rax+98h] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov eax, [rax] test eax, eax jnz short loc_38E7A jmp short $+2 loc_38E6B: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call ggml_compute_forward_relu_f32 jmp short loc_38E94 loc_38E7A: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 190Dh lea rdx, aFatalError; "fatal error" mov al, 0 call _ggml_abort loc_38E94: add rsp, 20h pop rbp retn
double ggml_compute_forward_relu(long long a1, long long a2) { double result; // xmm0_8 if ( **(_DWORD **)(a2 + 152) ) return ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 6413LL, "fatal error"); ggml_compute_forward_relu_f32(a1, a2); return result; }
ggml_compute_forward_relu: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x98] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] TEST EAX,EAX JNZ 0x00138e7a JMP 0x00138e6b LAB_00138e6b: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x00139b60 JMP 0x00138e94 LAB_00138e7a: LEA RDI,[0x173b62] MOV ESI,0x190d LEA RDX,[0x173dbd] MOV AL,0x0 CALL 0x0010e270 LAB_00138e94: ADD RSP,0x20 POP RBP RET
void ggml_compute_forward_relu(int8 param_1,long param_2) { if (**(int **)(param_2 + 0x98) == 0) { ggml_compute_forward_relu_f32(param_1,param_2); } else { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x190d,"fatal error"); } return; }
2,143
testing::AssertionResult testing::internal::CmpHelperOpFailure<unsigned long, int>(char const*, char const*, unsigned long const&, int const&, char const*)
giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/include/gtest/gtest.h
AssertionResult CmpHelperOpFailure(const char* expr1, const char* expr2, const T1& val1, const T2& val2, const char* op) { return AssertionFailure() << "Expected: (" << expr1 << ") " << op << " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }
O0
c
testing::AssertionResult testing::internal::CmpHelperOpFailure<unsigned long, int>(char const*, char const*, unsigned long const&, int const&, char const*): pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0xb0(%rbp) movq %rdi, %rax movq %rax, -0xa8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) leaq -0x40(%rbp), %rdi movq %rdi, -0xa0(%rbp) callq 0x17ee0 movq -0xa0(%rbp), %rdi leaq 0x61d6f(%rip), %rsi # 0x785d1 callq 0x159a0 movq %rax, -0x98(%rbp) jmp 0x16870 movq -0x98(%rbp), %rdi leaq -0x10(%rbp), %rsi callq 0x15a20 movq %rax, -0xb8(%rbp) jmp 0x16889 movq -0xb8(%rbp), %rdi leaq 0x61d46(%rip), %rsi # 0x785dd callq 0x15aa0 movq %rax, -0xc0(%rbp) jmp 0x168a5 movq -0xc0(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x15a20 movq %rax, -0xc8(%rbp) jmp 0x168be movq -0xc8(%rbp), %rdi leaq 0x61d0e(%rip), %rsi # 0x785da callq 0x15aa0 movq %rax, -0xd0(%rbp) jmp 0x168da movq -0xd0(%rbp), %rdi leaq -0x18(%rbp), %rsi callq 0x15a20 movq %rax, -0xd8(%rbp) jmp 0x168f3 movq -0xd8(%rbp), %rdi leaq 0x61cdf(%rip), %rsi # 0x785e0 callq 0x159a0 movq %rax, -0xe0(%rbp) jmp 0x1690f movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx leaq -0x70(%rbp), %rdi callq 0x150d0 jmp 0x16922 movq -0xe0(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0x15b20 movq %rax, -0xe8(%rbp) jmp 0x1693b movq -0xe8(%rbp), %rdi leaq 0x61ca3(%rip), %rsi # 0x785ec callq 0x15bd0 movq %rax, -0xf0(%rbp) jmp 0x16957 movq -0x28(%rbp), %rsi movq -0x20(%rbp), %rdx leaq -0x90(%rbp), %rdi callq 0x150a0 jmp 0x1696d movq -0xf0(%rbp), %rdi leaq -0x90(%rbp), %rsi callq 0x15b20 movq %rax, -0xf8(%rbp) jmp 0x16989 movq -0xf8(%rbp), %rsi movq -0xb0(%rbp), %rdi callq 0x17ce0 jmp 0x1699e leaq -0x90(%rbp), %rdi callq 0xad98 leaq -0x70(%rbp), %rdi callq 0xad98 leaq -0x40(%rbp), %rdi callq 0x12440 movq -0xa8(%rbp), %rax addq $0x100, %rsp # imm = 0x100 popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x48(%rbp) movl %eax, -0x4c(%rbp) jmp 0x16a09 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x48(%rbp) movl %eax, -0x4c(%rbp) jmp 0x16a00 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x48(%rbp) movl %eax, -0x4c(%rbp) leaq -0x90(%rbp), %rdi callq 0xad98 leaq -0x70(%rbp), %rdi callq 0xad98 leaq -0x40(%rbp), %rdi callq 0x12440 movq -0x48(%rbp), %rdi callq 0xac00 nopl (%rax,%rax)
_ZN7testing8internal18CmpHelperOpFailureImiEENS_15AssertionResultEPKcS4_RKT_RKT0_S4_: push rbp mov rbp, rsp sub rsp, 100h mov [rbp+var_B0], rdi mov rax, rdi mov [rbp+var_A8], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 lea rdi, [rbp+var_40]; this mov [rbp+var_A0], rdi call _ZN7testing16AssertionFailureEv; testing::AssertionFailure(void) mov rdi, [rbp+var_A0] lea rsi, aExpected; "Expected: (" call _ZN7testing15AssertionResultlsIA12_cEERS0_RKT_; testing::AssertionResult::operator<<<char [12]>(char [12] const&) mov [rbp+var_98], rax jmp short $+2 loc_16870: mov rdi, [rbp+var_98] lea rsi, [rbp+var_10] call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) mov [rbp+var_B8], rax jmp short $+2 loc_16889: mov rdi, [rbp+var_B8] lea rsi, asc_785DD; ") " call _ZN7testing15AssertionResultlsIA3_cEERS0_RKT_; testing::AssertionResult::operator<<<char [3]>(char [3] const&) mov [rbp+var_C0], rax jmp short $+2 loc_168A5: mov rdi, [rbp+var_C0] lea rsi, [rbp+var_30] call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) mov [rbp+var_C8], rax jmp short $+2 loc_168BE: mov rdi, [rbp+var_C8] lea rsi, aExpected+9; " (" call _ZN7testing15AssertionResultlsIA3_cEERS0_RKT_; testing::AssertionResult::operator<<<char [3]>(char [3] const&) mov [rbp+var_D0], rax jmp short $+2 loc_168DA: mov rdi, [rbp+var_D0] lea rsi, [rbp+var_18] call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) mov [rbp+var_D8], rax jmp short $+2 loc_168F3: mov rdi, [rbp+var_D8] lea rsi, aActual; "), actual: " call _ZN7testing15AssertionResultlsIA12_cEERS0_RKT_; testing::AssertionResult::operator<<<char [12]>(char [12] const&) mov [rbp+var_E0], rax jmp short $+2 loc_1690F: mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] lea rdi, [rbp+var_70] call _ZN7testing8internal33FormatForComparisonFailureMessageImiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_; testing::internal::FormatForComparisonFailureMessage<ulong,int>(ulong const&,int const&) jmp short $+2 loc_16922: mov rdi, [rbp+var_E0] lea rsi, [rbp+var_70] call _ZN7testing15AssertionResultlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_; testing::AssertionResult::operator<<<std::string>(std::string const&) mov [rbp+var_E8], rax jmp short $+2 loc_1693B: mov rdi, [rbp+var_E8] lea rsi, aVs; " vs " call _ZN7testing15AssertionResultlsIA5_cEERS0_RKT_; testing::AssertionResult::operator<<<char [5]>(char [5] const&) mov [rbp+var_F0], rax jmp short $+2 loc_16957: mov rsi, [rbp+var_28] mov rdx, [rbp+var_20] lea rdi, [rbp+var_90] call _ZN7testing8internal33FormatForComparisonFailureMessageIimEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_; testing::internal::FormatForComparisonFailureMessage<int,ulong>(int const&,ulong const&) jmp short $+2 loc_1696D: mov rdi, [rbp+var_F0] lea rsi, [rbp+var_90] call _ZN7testing15AssertionResultlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_; testing::AssertionResult::operator<<<std::string>(std::string const&) mov [rbp+var_F8], rax jmp short $+2 loc_16989: mov rsi, [rbp+var_F8]; testing::AssertionResult * mov rdi, [rbp+var_B0]; this call _ZN7testing15AssertionResultC2ERKS0_; testing::AssertionResult::AssertionResult(testing::AssertionResult const&) jmp short $+2 loc_1699E: lea rdi, [rbp+var_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_40]; this call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult() mov rax, [rbp+var_A8] add rsp, 100h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_48], rcx mov [rbp+var_4C], eax jmp short loc_16A09 mov rcx, rax mov eax, edx mov [rbp+var_48], rcx mov [rbp+var_4C], eax jmp short loc_16A00 mov rcx, rax mov eax, edx mov [rbp+var_48], rcx mov [rbp+var_4C], eax lea rdi, [rbp+var_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_16A00: lea rdi, [rbp+var_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_16A09: lea rdi, [rbp+var_40]; this call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult() mov rdi, [rbp+var_48] call __Unwind_Resume
testing::AssertionResult * testing::internal::CmpHelperOpFailure<unsigned long,int>( testing::AssertionResult *a1, long long a2, long long a3, long long a4, long long a5, long long a6) { const testing::AssertionResult *v7; // [rsp+8h] [rbp-F8h] testing::AssertionResult *v8; // [rsp+10h] [rbp-F0h] testing::AssertionResult *v9; // [rsp+18h] [rbp-E8h] testing::AssertionResult *v10; // [rsp+20h] [rbp-E0h] testing::AssertionResult *v11; // [rsp+28h] [rbp-D8h] testing::AssertionResult *v12; // [rsp+30h] [rbp-D0h] testing::AssertionResult *v13; // [rsp+38h] [rbp-C8h] testing::AssertionResult *v14; // [rsp+40h] [rbp-C0h] testing::AssertionResult *v15; // [rsp+48h] [rbp-B8h] testing::AssertionResult *v16; // [rsp+68h] [rbp-98h] _BYTE v17[32]; // [rsp+70h] [rbp-90h] BYREF _BYTE v18[36]; // [rsp+90h] [rbp-70h] BYREF _BYTE v19[16]; // [rsp+C0h] [rbp-40h] BYREF long long v20; // [rsp+D0h] [rbp-30h] BYREF long long v21; // [rsp+D8h] [rbp-28h] long long v22; // [rsp+E0h] [rbp-20h] long long v23; // [rsp+E8h] [rbp-18h] BYREF _QWORD v24[2]; // [rsp+F0h] [rbp-10h] BYREF v24[1] = a1; v24[0] = a2; v23 = a3; v22 = a4; v21 = a5; v20 = a6; testing::AssertionFailure((testing *)v19); v16 = testing::AssertionResult::operator<<<char [12]>((testing::AssertionResult *)v19, (long long)"Expected: ("); v15 = testing::AssertionResult::operator<<<char const*>(v16, (long long)v24); v14 = testing::AssertionResult::operator<<<char [3]>(v15, (long long)") "); v13 = testing::AssertionResult::operator<<<char const*>(v14, (long long)&v20); v12 = testing::AssertionResult::operator<<<char [3]>(v13, (long long)" ("); v11 = testing::AssertionResult::operator<<<char const*>(v12, (long long)&v23); v10 = testing::AssertionResult::operator<<<char [12]>(v11, (long long)"), actual: "); testing::internal::FormatForComparisonFailureMessage<unsigned long,int>((long long)v18, v22); v9 = testing::AssertionResult::operator<<<std::string>(v10, (long long)v18); v8 = testing::AssertionResult::operator<<<char [5]>(v9, (long long)" vs "); testing::internal::FormatForComparisonFailureMessage<int,unsigned long>((long long)v17, v21); v7 = testing::AssertionResult::operator<<<std::string>(v8, (long long)v17); testing::AssertionResult::AssertionResult(a1, v7); std::string::~string(v17); std::string::~string(v18); testing::AssertionResult::~AssertionResult((testing::AssertionResult *)v19); return a1; }
CmpHelperOpFailure<unsigned_long,int>: PUSH RBP MOV RBP,RSP SUB RSP,0x100 MOV qword ptr [RBP + -0xb0],RDI MOV RAX,RDI MOV qword ptr [RBP + -0xa8],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 LEA RDI,[RBP + -0x40] MOV qword ptr [RBP + -0xa0],RDI CALL 0x00117ee0 MOV RDI,qword ptr [RBP + -0xa0] LAB_0011685b: LEA RSI,[0x1785d1] CALL 0x001159a0 MOV qword ptr [RBP + -0x98],RAX JMP 0x00116870 LAB_00116870: MOV RDI,qword ptr [RBP + -0x98] LEA RSI,[RBP + -0x10] CALL 0x00115a20 MOV qword ptr [RBP + -0xb8],RAX JMP 0x00116889 LAB_00116889: MOV RDI,qword ptr [RBP + -0xb8] LEA RSI,[0x1785dd] CALL 0x00115aa0 MOV qword ptr [RBP + -0xc0],RAX JMP 0x001168a5 LAB_001168a5: MOV RDI,qword ptr [RBP + -0xc0] LEA RSI,[RBP + -0x30] CALL 0x00115a20 MOV qword ptr [RBP + -0xc8],RAX JMP 0x001168be LAB_001168be: MOV RDI,qword ptr [RBP + -0xc8] LEA RSI,[0x1785da] CALL 0x00115aa0 MOV qword ptr [RBP + -0xd0],RAX JMP 0x001168da LAB_001168da: MOV RDI,qword ptr [RBP + -0xd0] LEA RSI,[RBP + -0x18] CALL 0x00115a20 MOV qword ptr [RBP + -0xd8],RAX JMP 0x001168f3 LAB_001168f3: MOV RDI,qword ptr [RBP + -0xd8] LEA RSI,[0x1785e0] CALL 0x001159a0 MOV qword ptr [RBP + -0xe0],RAX JMP 0x0011690f LAB_0011690f: MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] LEA RDI,[RBP + -0x70] CALL 0x001150d0 JMP 0x00116922 LAB_00116922: MOV RDI,qword ptr [RBP + -0xe0] LEA RSI,[RBP + -0x70] CALL 0x00115b20 MOV qword ptr [RBP + -0xe8],RAX JMP 0x0011693b LAB_0011693b: MOV RDI,qword ptr [RBP + -0xe8] LEA RSI,[0x1785ec] CALL 0x00115bd0 MOV qword ptr [RBP + -0xf0],RAX JMP 0x00116957 LAB_00116957: MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x20] LEA RDI,[RBP + -0x90] CALL 0x001150a0 JMP 0x0011696d LAB_0011696d: MOV RDI,qword ptr [RBP + -0xf0] LEA RSI,[RBP + -0x90] CALL 0x00115b20 MOV qword ptr [RBP + -0xf8],RAX JMP 0x00116989 LAB_00116989: MOV RSI,qword ptr [RBP + -0xf8] MOV RDI,qword ptr [RBP + -0xb0] CALL 0x00117ce0 LAB_0011699c: JMP 0x0011699e LAB_0011699e: LEA RDI,[RBP + -0x90] CALL 0x0010ad98 LEA RDI,[RBP + -0x70] CALL 0x0010ad98 LEA RDI,[RBP + -0x40] CALL 0x00112440 MOV RAX,qword ptr [RBP + -0xa8] ADD RSP,0x100 POP RBP RET
/* testing::AssertionResult testing::internal::CmpHelperOpFailure<unsigned long, int>(char const*, char const*, unsigned long const&, int const&, char const*) */ internal * __thiscall testing::internal::CmpHelperOpFailure<unsigned_long,int> (internal *this,char *param_1,char *param_2,ulong *param_3,int *param_4,char *param_5) { AssertionResult *pAVar1; string local_98 [32]; string local_78 [48]; testing local_48 [16]; char *local_38; ulong *local_30; ulong *local_28; char *local_20; char *local_18; internal *local_10; local_38 = param_5; local_30 = (ulong *)param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; local_10 = this; AssertionFailure(local_48); /* try { // try from 0011685b to 0011691f has its CatchHandler @ 001169cc */ pAVar1 = AssertionResult::operator<<((AssertionResult *)local_48,"Expected: ("); pAVar1 = AssertionResult::operator<<(pAVar1,&local_18); pAVar1 = AssertionResult::operator<<(pAVar1,") "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_38); pAVar1 = AssertionResult::operator<<(pAVar1," ("); pAVar1 = AssertionResult::operator<<(pAVar1,&local_20); pAVar1 = AssertionResult::operator<<(pAVar1,"), actual: "); FormatForComparisonFailureMessage<unsigned_long,int>((ulong *)local_78,(int *)local_28); /* try { // try from 00116922 to 0011696a has its CatchHandler @ 001169da */ pAVar1 = AssertionResult::operator<<(pAVar1,local_78); pAVar1 = AssertionResult::operator<<(pAVar1," vs "); FormatForComparisonFailureMessage<int,unsigned_long>((int *)local_98,local_30); /* try { // try from 0011696d to 0011699b has its CatchHandler @ 001169e8 */ pAVar1 = AssertionResult::operator<<(pAVar1,local_98); AssertionResult::AssertionResult((AssertionResult *)this,pAVar1); std::__cxx11::string::~string(local_98); std::__cxx11::string::~string(local_78); AssertionResult::~AssertionResult((AssertionResult *)local_48); return this; }
2,144
minja::Value::to_str[abi:cxx11]() const
llama.cpp/common/minja/minja.hpp
std::string to_str() const { if (is_string()) return get<std::string>(); if (is_number_integer()) return std::to_string(get<int64_t>()); if (is_number_float()) return std::to_string(get<double>()); if (is_boolean()) return get<bool>() ? "True" : "False"; if (is_null()) return "None"; return dump(); }
O3
cpp
minja::Value::to_str[abi:cxx11]() const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movzbl 0x40(%rsi), %eax cmpl $0x3, %eax jne 0x7e3bd movq %rbx, %rdi callq 0x75e92 jmp 0x7e526 leal -0x5(%rax), %ecx cmpb $0x1, %cl ja 0x7e444 movq %rsi, %rdi callq 0x790b6 movq %rax, %r15 movq %rax, %r14 negq %r14 cmovsq %rax, %r14 movl $0x1, %r12d cmpq $0xa, %r14 jb 0x7e4f9 movl $0x4, %r12d movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B movq %r14, %rcx cmpq $0x63, %rcx jbe 0x7e4f0 cmpq $0x3e7, %rcx # imm = 0x3E7 jbe 0x7e4f6 cmpq $0x2710, %rcx # imm = 0x2710 jb 0x7e4f9 movq %rcx, %rax mulq %rsi shrq $0xb, %rdx addl $0x4, %r12d cmpq $0x1869f, %rcx # imm = 0x1869F movq %rdx, %rcx ja 0x7e3fd addl $-0x3, %r12d jmp 0x7e4f9 cmpl $0x4, %eax je 0x7e478 cmpl $0x7, %eax jne 0x7e4a7 movq %rsi, %rdi callq 0x75d7c movq 0x81b0b(%rip), %rsi # 0xfff68 leaq 0x4e0dd(%rip), %rcx # 0xcc541 movl $0x148, %edx # imm = 0x148 movq %rbx, %rdi movb $0x1, %al callq 0x7e535 jmp 0x7e526 movq %rsi, %rdi callq 0x75c6c leaq 0x4da6c(%rip), %rcx # 0xcbef3 leaq 0x4da6a(%rip), %rsi # 0xcbef8 testb %al, %al cmovneq %rcx, %rsi leaq 0x10(%rbx), %rcx movq %rcx, (%rbx) movzbl %al, %edx xorq $0x5, %rdx addq %rsi, %rdx jmp 0x7e4d5 testl %eax, %eax jne 0x7e4df cmpq $0x0, 0x20(%rsi) jne 0x7e4df cmpq $0x0, 0x10(%rsi) jne 0x7e4df cmpq $0x0, 0x30(%rsi) jne 0x7e4df leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x4e06e(%rip), %rsi # 0xcc53c leaq 0x4e06b(%rip), %rdx # 0xcc540 movq %rbx, %rdi callq 0x3fe82 jmp 0x7e526 movq %rbx, %rdi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x6cb9a jmp 0x7e526 addl $-0x2, %r12d jmp 0x7e4f9 decl %r12d shrq $0x3f, %r15 leal (%r15,%r12), %esi leaq 0x10(%rbx), %rax movq %rax, (%rbx) movq %rbx, %rdi movl $0x2d, %edx callq 0x1c750 addq (%rbx), %r15 movq %r15, %rdi movl %r12d, %esi movq %r14, %rdx callq 0x2fca1 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZNK5minja5Value6to_strB5cxx11Ev: push r15 push r14 push r12 push rbx push rax mov rbx, rdi movzx eax, byte ptr [rsi+40h] cmp eax, 3 jnz short loc_7E3BD mov rdi, rbx call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) jmp loc_7E526 loc_7E3BD: lea ecx, [rax-5] cmp cl, 1 ja short loc_7E444 mov rdi, rsi call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r15, rax mov r14, rax neg r14 cmovs r14, rax mov r12d, 1 cmp r14, 0Ah jb loc_7E4F9 mov r12d, 4 mov rsi, 346DC5D63886594Bh mov rcx, r14 loc_7E3FD: cmp rcx, 63h ; 'c' jbe loc_7E4F0 cmp rcx, 3E7h jbe loc_7E4F6 cmp rcx, 2710h jb loc_7E4F9 mov rax, rcx mul rsi shr rdx, 0Bh add r12d, 4 cmp rcx, 1869Fh mov rcx, rdx ja short loc_7E3FD add r12d, 0FFFFFFFDh jmp loc_7E4F9 loc_7E444: cmp eax, 4 jz short loc_7E478 cmp eax, 7 jnz short loc_7E4A7 mov rdi, rsi call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) mov rsi, cs:vsnprintf_ptr lea rcx, asc_CC541; "%f" mov edx, 148h mov rdi, rbx mov al, 1 call _ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z; __gnu_cxx::__to_xstring<std::string,char>(int (*)(char *,ulong,char const*,__va_list_tag *),ulong,char const*,...) jmp loc_7E526 loc_7E478: mov rdi, rsi call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) lea rcx, aTrue_0; "True" lea rsi, aFalse_1; "False" test al, al cmovnz rsi, rcx lea rcx, [rbx+10h] mov [rbx], rcx movzx edx, al xor rdx, 5 add rdx, rsi jmp short loc_7E4D5 loc_7E4A7: test eax, eax jnz short loc_7E4DF cmp qword ptr [rsi+20h], 0 jnz short loc_7E4DF cmp qword ptr [rsi+10h], 0 jnz short loc_7E4DF cmp qword ptr [rsi+30h], 0 jnz short loc_7E4DF lea rax, [rbx+10h] mov [rbx], rax lea rsi, aNone_0; "None" lea rdx, aNone_0+4; "" loc_7E4D5: mov rdi, rbx 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) jmp short loc_7E526 loc_7E4DF: mov rdi, rbx mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) jmp short loc_7E526 loc_7E4F0: add r12d, 0FFFFFFFEh jmp short loc_7E4F9 loc_7E4F6: dec r12d loc_7E4F9: shr r15, 3Fh lea esi, [r15+r12] lea rax, [rbx+10h] mov [rbx], rax mov rdi, rbx mov edx, 2Dh ; '-' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) add r15, [rbx] mov rdi, r15 mov esi, r12d mov rdx, r14 call _ZNSt8__detail18__to_chars_10_implImEEvPcjT_; std::__detail::__to_chars_10_impl<ulong>(char *,uint,ulong) loc_7E526: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
_QWORD * minja::Value::to_str[abi:cxx11](_QWORD *a1, long long a2) { char v2; // al int v3; // eax long long v4; // rax unsigned long long v5; // r14 int v6; // r12d unsigned long long v7; // rcx bool v8; // cc int v9; // r8d int v10; // r9d unsigned __int8 v11; // al char *v12; // rsi char *v13; // rdx unsigned long long v14; // r15 char v16; // [rsp-8h] [rbp-28h] v16 = v2; v3 = *(unsigned __int8 *)(a2 + 64); if ( v3 == 3 ) { minja::Value::get<std::string>((long long)a1, (_QWORD *)a2); } else { if ( (unsigned __int8)(v3 - 5) > 1u ) { if ( v3 == 4 ) { v11 = minja::Value::get<bool>((_QWORD *)a2); v12 = "False"; if ( v11 ) v12 = "True"; *a1 = a1 + 2; v13 = &v12[v11 ^ 5LL]; } else { if ( v3 == 7 ) { minja::Value::get<double>((_QWORD *)a2); __gnu_cxx::__to_xstring<std::string,char>( (_DWORD)a1, (unsigned int)&vsnprintf, 328, (unsigned int)"%f", v9, v10, v16); return a1; } if ( *(_BYTE *)(a2 + 64) || *(_QWORD *)(a2 + 32) || *(_QWORD *)(a2 + 16) || *(_QWORD *)(a2 + 48) ) { minja::Value::dump[abi:cxx11]((long long)a1, a2, 0xFFFFFFFF, 0); return a1; } *a1 = a1 + 2; v12 = "None"; v13 = ""; } std::string::_M_construct<char const*>((long long)a1, v12, (long long)v13); return a1; } v4 = minja::Value::get<long>((_QWORD *)a2); v5 = -v4; if ( v4 > 0 ) v5 = v4; v6 = 1; if ( v5 >= 0xA ) { v6 = 4; v7 = v5; while ( 1 ) { if ( v7 <= 0x63 ) { v6 -= 2; goto LABEL_28; } if ( v7 <= 0x3E7 ) break; if ( v7 < 0x2710 ) goto LABEL_28; v6 += 4; v8 = v7 <= 0x1869F; v7 /= 0x2710uLL; if ( v8 ) { v6 -= 3; goto LABEL_28; } } --v6; } LABEL_28: v14 = (unsigned long long)v4 >> 63; *a1 = a1 + 2; std::string::_M_construct(a1, (unsigned int)((unsigned long long)v4 >> 63) + v6, 45LL); std::__detail::__to_chars_10_impl<unsigned long>((char *)(*a1 + v14), v6, v5); } return a1; }
to_str[abi:cxx11]: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI MOVZX EAX,byte ptr [RSI + 0x40] CMP EAX,0x3 JNZ 0x0017e3bd MOV RDI,RBX CALL 0x00175e92 JMP 0x0017e526 LAB_0017e3bd: LEA ECX,[RAX + -0x5] CMP CL,0x1 JA 0x0017e444 MOV RDI,RSI CALL 0x001790b6 MOV R15,RAX MOV R14,RAX NEG R14 CMOVS R14,RAX MOV R12D,0x1 CMP R14,0xa JC 0x0017e4f9 MOV R12D,0x4 MOV RSI,0x346dc5d63886594b MOV RCX,R14 LAB_0017e3fd: CMP RCX,0x63 JBE 0x0017e4f0 CMP RCX,0x3e7 JBE 0x0017e4f6 CMP RCX,0x2710 JC 0x0017e4f9 MOV RAX,RCX MUL RSI SHR RDX,0xb ADD R12D,0x4 CMP RCX,0x1869f MOV RCX,RDX JA 0x0017e3fd ADD R12D,-0x3 JMP 0x0017e4f9 LAB_0017e444: CMP EAX,0x4 JZ 0x0017e478 CMP EAX,0x7 JNZ 0x0017e4a7 MOV RDI,RSI CALL 0x00175d7c MOV RSI,qword ptr [0x001fff68] LEA RCX,[0x1cc541] MOV EDX,0x148 MOV RDI,RBX MOV AL,0x1 CALL 0x0017e535 JMP 0x0017e526 LAB_0017e478: MOV RDI,RSI CALL 0x00175c6c LEA RCX,[0x1cbef3] LEA RSI,[0x1cbef8] TEST AL,AL CMOVNZ RSI,RCX LEA RCX,[RBX + 0x10] MOV qword ptr [RBX],RCX MOVZX EDX,AL XOR RDX,0x5 ADD RDX,RSI JMP 0x0017e4d5 LAB_0017e4a7: TEST EAX,EAX JNZ 0x0017e4df CMP qword ptr [RSI + 0x20],0x0 JNZ 0x0017e4df CMP qword ptr [RSI + 0x10],0x0 JNZ 0x0017e4df CMP qword ptr [RSI + 0x30],0x0 JNZ 0x0017e4df LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x1cc53c] LEA RDX,[0x1cc540] LAB_0017e4d5: MOV RDI,RBX CALL 0x0013fe82 JMP 0x0017e526 LAB_0017e4df: MOV RDI,RBX MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0016cb9a JMP 0x0017e526 LAB_0017e4f0: ADD R12D,-0x2 JMP 0x0017e4f9 LAB_0017e4f6: DEC R12D LAB_0017e4f9: SHR R15,0x3f LEA ESI,[R15 + R12*0x1] LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX MOV RDI,RBX MOV EDX,0x2d CALL 0x0011c750 ADD R15,qword ptr [RBX] MOV RDI,R15 MOV ESI,R12D MOV RDX,R14 CALL 0x0012fca1 LAB_0017e526: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* minja::Value::to_str[abi:cxx11]() const */ void minja::Value::to_str_abi_cxx11_(void) { Value VVar1; bool bVar2; uint uVar3; ulong uVar4; ulong uVar5; Value *in_RSI; _func_int_char_ptr_ulong_char_ptr___va_list_tag_ptr *in_RDI; uint uVar6; ulong uVar7; VVar1 = in_RSI[0x40]; if (VVar1 == (Value)0x3) { get<std::__cxx11::string>(); } else if ((byte)((char)VVar1 - 5U) < 2) { uVar4 = get<long>(in_RSI); uVar7 = -uVar4; if (0 < (long)uVar4) { uVar7 = uVar4; } uVar6 = 1; if (9 < uVar7) { uVar5 = uVar7; uVar3 = 4; do { uVar6 = uVar3; if (uVar5 < 100) { uVar6 = uVar6 - 2; goto LAB_0017e4f9; } if (uVar5 < 1000) { uVar6 = uVar6 - 1; goto LAB_0017e4f9; } if (uVar5 < 10000) goto LAB_0017e4f9; bVar2 = 99999 < uVar5; uVar5 = uVar5 / 10000; uVar3 = uVar6 + 4; } while (bVar2); uVar6 = uVar6 + 1; } LAB_0017e4f9: *(_func_int_char_ptr_ulong_char_ptr___va_list_tag_ptr **)in_RDI = in_RDI + 0x10; std::__cxx11::string::_M_construct((ulong)in_RDI,(char)uVar6 - (char)((long)uVar4 >> 0x3f)); std::__detail::__to_chars_10_impl<unsigned_long> ((char *)(*(long *)in_RDI - ((long)uVar4 >> 0x3f)),uVar6,uVar7); } else { if (VVar1 == (Value)0x4) { get<bool>(in_RSI); *(_func_int_char_ptr_ulong_char_ptr___va_list_tag_ptr **)in_RDI = in_RDI + 0x10; } else { if (VVar1 == (Value)0x7) { get<double>(in_RSI); __gnu_cxx::__to_xstring<std::__cxx11::string,char> (in_RDI,(ulong)PTR_vsnprintf_001fff68,(char *)0x148,&DAT_001cc541); return; } if ((((VVar1 != (Value)0x0) || (*(long *)(in_RSI + 0x20) != 0)) || (*(long *)(in_RSI + 0x10) != 0)) || (*(long *)(in_RSI + 0x30) != 0)) { dump_abi_cxx11_((int)in_RDI,SUB81(in_RSI,0)); return; } *(_func_int_char_ptr_ulong_char_ptr___va_list_tag_ptr **)in_RDI = in_RDI + 0x10; } std::__cxx11::string::_M_construct<char_const*>(); } return; }
2,145
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>>>>>::~lexer()
monkey531[P]llama/common/json.hpp
~lexer() = default;
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::~lexer(): pushq %rbx movq %rdi, %rbx movq 0x50(%rdi), %rdi leaq 0x60(%rbx), %rax cmpq %rax, %rdi je 0x589d2 movq (%rax), %rsi incq %rsi callq 0x1a8f0 movq 0x38(%rbx), %rdi testq %rdi, %rdi je 0x589e8 movq 0x48(%rbx), %rsi subq %rdi, %rsi popq %rbx jmp 0x1a8f0 popq %rbx retq
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev: push rbx mov rbx, rdi mov rdi, [rdi+50h]; void * lea rax, [rbx+60h] cmp rdi, rax jz short loc_589D2 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_589D2: mov rdi, [rbx+38h]; void * test rdi, rdi jz short loc_589E8 mov rsi, [rbx+48h] sub rsi, rdi; unsigned __int64 pop rbx jmp __ZdlPvm; operator delete(void *,ulong) loc_589E8: pop rbx retn
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::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>>>::~lexer( _QWORD *a1) { _QWORD *v2; // rdi void *v3; // rdi v2 = (_QWORD *)a1[10]; if ( v2 != a1 + 12 ) operator delete(v2, a1[12] + 1LL); v3 = (void *)a1[7]; if ( v3 ) operator delete(v3, a1[9] - (_QWORD)v3); }
~lexer: PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x50] LEA RAX,[RBX + 0x60] CMP RDI,RAX JZ 0x001589d2 MOV RSI,qword ptr [RAX] INC RSI CALL 0x0011a8f0 LAB_001589d2: MOV RDI,qword ptr [RBX + 0x38] TEST RDI,RDI JZ 0x001589e8 MOV RSI,qword ptr [RBX + 0x48] SUB RSI,RDI POP RBX JMP 0x0011a8f0 LAB_001589e8: POP RBX 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 > > >::~lexer() */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::~lexer(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { void *pvVar1; if (*(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> **)(this + 0x50) != this + 0x60) { operator_delete(*(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> **)(this + 0x50),*(long *)(this + 0x60) + 1); } pvVar1 = *(void **)(this + 0x38); if (pvVar1 != (void *)0x0) { operator_delete(pvVar1,*(long *)(this + 0x48) - (long)pvVar1); return; } return; }
2,146
ftxui::ScreenInteractive::ResetCursorPosition()
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/component/screen_interactive.cpp
void ScreenInteractive::ResetCursorPosition() { std::cout << reset_cursor_position; reset_cursor_position = ""; }
O3
cpp
ftxui::ScreenInteractive::ResetCursorPosition(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x98(%rdi), %r14 movq 0x98(%rdi), %rsi movq 0xa0(%rdi), %rdx movq 0x2b83b(%rip), %rdi # 0x58fb8 callq 0xb490 movq 0xa0(%rbx), %rdx leaq 0xf481(%rip), %rcx # 0x3cc11 movq %r14, %rdi xorl %esi, %esi xorl %r8d, %r8d addq $0x8, %rsp popq %rbx popq %r14 jmp 0xb680
_ZN5ftxui17ScreenInteractive19ResetCursorPositionEv: push r14 push rbx push rax mov rbx, rdi lea r14, [rdi+98h] mov rsi, [rdi+98h] mov rdx, [rdi+0A0h] mov rdi, cs:_ZSt4cout_ptr call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdx, [rbx+0A0h] lea rcx, asc_3CC0F+2; "" mov rdi, r14 xor esi, esi xor r8d, r8d add rsp, 8 pop rbx pop r14 jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
long long ftxui::ScreenInteractive::ResetCursorPosition(ftxui::ScreenInteractive *this) { std::__ostream_insert<char,std::char_traits<char>>(&std::cout, *((_QWORD *)this + 19), *((_QWORD *)this + 20)); return std::string::_M_replace((char *)this + 152, 0LL, *((_QWORD *)this + 20), "", 0LL); }
ResetCursorPosition: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA R14,[RDI + 0x98] MOV RSI,qword ptr [RDI + 0x98] MOV RDX,qword ptr [RDI + 0xa0] MOV RDI,qword ptr [0x00158fb8] CALL 0x0010b490 MOV RDX,qword ptr [RBX + 0xa0] LEA RCX,[0x13cc11] MOV RDI,R14 XOR ESI,ESI XOR R8D,R8D ADD RSP,0x8 POP RBX POP R14 JMP 0x0010b680
/* ftxui::ScreenInteractive::ResetCursorPosition() */ void __thiscall ftxui::ScreenInteractive::ResetCursorPosition(ScreenInteractive *this) { std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cout_00158fb8,*(char **)(this + 0x98),*(long *)(this + 0xa0)); std::__cxx11::string::_M_replace((ulong)(this + 0x98),0,*(char **)(this + 0xa0),0x13cc11); return; }
2,147
google::protobuf::compiler::python::IsWellKnownType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/python/pyi_generator.cc
bool IsWellKnownType(const std::string& name) { // LINT.IfChange(wktbases) return (name == "google.protobuf.Any" || name == "google.protobuf.Duration" || name == "google.protobuf.FieldMask" || name == "google.protobuf.ListValue" || name == "google.protobuf.Struct" || name == "google.protobuf.Timestamp"); // LINT.ThenChange(//depot/google3/net/proto2/python/internal/well_known_types.py:wktbases) }
O0
cpp
google::protobuf::compiler::python::IsWellKnownType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi leaq 0x2f50c5(%rip), %rsi # 0x3b76da callq 0x371b0 movb %al, %cl movb $0x1, %al testb $0x1, %cl movb %al, 0xf(%rsp) jne 0xc26b8 movq 0x10(%rsp), %rdi leaq 0x2f50b7(%rip), %rsi # 0x3b76ee callq 0x371b0 movb %al, %cl movb $0x1, %al testb $0x1, %cl movb %al, 0xf(%rsp) jne 0xc26b8 movq 0x10(%rsp), %rdi leaq 0x2f50b2(%rip), %rsi # 0x3b7707 callq 0x371b0 movb %al, %cl movb $0x1, %al testb $0x1, %cl movb %al, 0xf(%rsp) jne 0xc26b8 movq 0x10(%rsp), %rdi leaq 0x2f50ae(%rip), %rsi # 0x3b7721 callq 0x371b0 movb %al, %cl movb $0x1, %al testb $0x1, %cl movb %al, 0xf(%rsp) jne 0xc26b8 movq 0x10(%rsp), %rdi leaq 0x2f50aa(%rip), %rsi # 0x3b773b callq 0x371b0 movb %al, %cl movb $0x1, %al testb $0x1, %cl movb %al, 0xf(%rsp) jne 0xc26b8 movq 0x10(%rsp), %rdi leaq 0x2f50a3(%rip), %rsi # 0x3b7752 callq 0x371b0 movb %al, 0xf(%rsp) movb 0xf(%rsp), %al andb $0x1, %al addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
_ZN6google8protobuf8compiler6python15IsWellKnownTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rdi, [rsp+18h+var_8] lea rsi, aGoogleProtobuf_29; "google.protobuf.Any" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov cl, al mov al, 1 test cl, 1 mov [rsp+18h+var_9], al jnz loc_C26B8 mov rdi, [rsp+18h+var_8] lea rsi, aGoogleProtobuf_30; "google.protobuf.Duration" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov cl, al mov al, 1 test cl, 1 mov [rsp+18h+var_9], al jnz short loc_C26B8 mov rdi, [rsp+18h+var_8] lea rsi, aGoogleProtobuf_31; "google.protobuf.FieldMask" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov cl, al mov al, 1 test cl, 1 mov [rsp+18h+var_9], al jnz short loc_C26B8 mov rdi, [rsp+18h+var_8] lea rsi, aGoogleProtobuf_32; "google.protobuf.ListValue" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov cl, al mov al, 1 test cl, 1 mov [rsp+18h+var_9], al jnz short loc_C26B8 mov rdi, [rsp+18h+var_8] lea rsi, aGoogleProtobuf_33; "google.protobuf.Struct" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov cl, al mov al, 1 test cl, 1 mov [rsp+18h+var_9], al jnz short loc_C26B8 mov rdi, [rsp+18h+var_8] lea rsi, aGoogleProtobuf_34; "google.protobuf.Timestamp" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov [rsp+18h+var_9], al loc_C26B8: mov al, [rsp+18h+var_9] and al, 1 add rsp, 18h retn
bool google::protobuf::compiler::python::IsWellKnownType(long long a1) { bool v2; // [rsp+Fh] [rbp-9h] v2 = 1; if ( !std::operator==<char>(a1, (long long)"google.protobuf.Any") ) { v2 = 1; if ( !std::operator==<char>(a1, (long long)"google.protobuf.Duration") ) { v2 = 1; if ( !std::operator==<char>(a1, (long long)"google.protobuf.FieldMask") ) { v2 = 1; if ( !std::operator==<char>(a1, (long long)"google.protobuf.ListValue") ) { v2 = 1; if ( !std::operator==<char>(a1, (long long)"google.protobuf.Struct") ) return std::operator==<char>(a1, (long long)"google.protobuf.Timestamp"); } } } } return v2; }
IsWellKnownType: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x4b76da] CALL 0x001371b0 MOV CL,AL MOV AL,0x1 TEST CL,0x1 MOV byte ptr [RSP + 0xf],AL JNZ 0x001c26b8 MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x4b76ee] CALL 0x001371b0 MOV CL,AL MOV AL,0x1 TEST CL,0x1 MOV byte ptr [RSP + 0xf],AL JNZ 0x001c26b8 MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x4b7707] CALL 0x001371b0 MOV CL,AL MOV AL,0x1 TEST CL,0x1 MOV byte ptr [RSP + 0xf],AL JNZ 0x001c26b8 MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x4b7721] CALL 0x001371b0 MOV CL,AL MOV AL,0x1 TEST CL,0x1 MOV byte ptr [RSP + 0xf],AL JNZ 0x001c26b8 MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x4b773b] CALL 0x001371b0 MOV CL,AL MOV AL,0x1 TEST CL,0x1 MOV byte ptr [RSP + 0xf],AL JNZ 0x001c26b8 MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x4b7752] CALL 0x001371b0 MOV byte ptr [RSP + 0xf],AL LAB_001c26b8: MOV AL,byte ptr [RSP + 0xf] AND AL,0x1 ADD RSP,0x18 RET
/* google::protobuf::compiler::python::IsWellKnownType(std::__cxx11::string const&) */ bool google::protobuf::compiler::python::IsWellKnownType(string *param_1) { bool bVar1; bool local_9; bVar1 = std::operator==(param_1,"google.protobuf.Any"); local_9 = true; if (!bVar1) { bVar1 = std::operator==(param_1,"google.protobuf.Duration"); local_9 = true; if (!bVar1) { bVar1 = std::operator==(param_1,"google.protobuf.FieldMask"); local_9 = true; if (!bVar1) { bVar1 = std::operator==(param_1,"google.protobuf.ListValue"); local_9 = true; if (!bVar1) { bVar1 = std::operator==(param_1,"google.protobuf.Struct"); local_9 = true; if (!bVar1) { local_9 = std::operator==(param_1,"google.protobuf.Timestamp"); } } } } } return local_9; }
2,148
google::protobuf::compiler::python::IsWellKnownType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/python/pyi_generator.cc
bool IsWellKnownType(const std::string& name) { // LINT.IfChange(wktbases) return (name == "google.protobuf.Any" || name == "google.protobuf.Duration" || name == "google.protobuf.FieldMask" || name == "google.protobuf.ListValue" || name == "google.protobuf.Struct" || name == "google.protobuf.Timestamp"); // LINT.ThenChange(//depot/google3/net/proto2/python/internal/well_known_types.py:wktbases) }
O3
cpp
google::protobuf::compiler::python::IsWellKnownType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 leaq 0x13a8a2(%rip), %rsi # 0x1a905a callq 0x1f130 movb $0x1, %bl testl %eax, %eax je 0x6e823 leaq 0x13a8a4(%rip), %rsi # 0x1a906e movq %r14, %rdi callq 0x1f130 testl %eax, %eax je 0x6e823 leaq 0x13a8aa(%rip), %rsi # 0x1a9087 movq %r14, %rdi callq 0x1f130 testl %eax, %eax je 0x6e823 leaq 0x13a8b1(%rip), %rsi # 0x1a90a1 movq %r14, %rdi callq 0x1f130 testl %eax, %eax je 0x6e823 leaq 0x13a8b8(%rip), %rsi # 0x1a90bb movq %r14, %rdi callq 0x1f130 testl %eax, %eax je 0x6e823 leaq 0x13a8bc(%rip), %rsi # 0x1a90d2 movq %r14, %rdi callq 0x1f130 testl %eax, %eax sete %bl movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN6google8protobuf8compiler6python15IsWellKnownTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r14 push rbx push rax mov r14, rdi lea rsi, aGoogleProtobuf_18; "google.protobuf.Any" call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) mov bl, 1 test eax, eax jz short loc_6E823 lea rsi, aGoogleProtobuf_19; "google.protobuf.Duration" mov rdi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_6E823 lea rsi, aGoogleProtobuf_20; "google.protobuf.FieldMask" mov rdi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_6E823 lea rsi, aGoogleProtobuf_21; "google.protobuf.ListValue" mov rdi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_6E823 lea rsi, aGoogleProtobuf_22; "google.protobuf.Struct" mov rdi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_6E823 lea rsi, aGoogleProtobuf_23; "google.protobuf.Timestamp" mov rdi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax setz bl loc_6E823: mov eax, ebx add rsp, 8 pop rbx pop r14 retn
long long google::protobuf::compiler::python::IsWellKnownType(long long a1) { unsigned int v1; // ebx LOBYTE(v1) = 1; if ( (unsigned int)std::string::compare(a1, "google.protobuf.Any") && (unsigned int)std::string::compare(a1, "google.protobuf.Duration") && (unsigned int)std::string::compare(a1, "google.protobuf.FieldMask") && (unsigned int)std::string::compare(a1, "google.protobuf.ListValue") && (unsigned int)std::string::compare(a1, "google.protobuf.Struct") ) { LOBYTE(v1) = (unsigned int)std::string::compare(a1, "google.protobuf.Timestamp") == 0; } return v1; }
IsWellKnownType: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI LEA RSI,[0x2a905a] CALL 0x0011f130 MOV BL,0x1 TEST EAX,EAX JZ 0x0016e823 LEA RSI,[0x2a906e] MOV RDI,R14 CALL 0x0011f130 TEST EAX,EAX JZ 0x0016e823 LEA RSI,[0x2a9087] MOV RDI,R14 CALL 0x0011f130 TEST EAX,EAX JZ 0x0016e823 LEA RSI,[0x2a90a1] MOV RDI,R14 CALL 0x0011f130 TEST EAX,EAX JZ 0x0016e823 LEA RSI,[0x2a90bb] MOV RDI,R14 CALL 0x0011f130 TEST EAX,EAX JZ 0x0016e823 LEA RSI,[0x2a90d2] MOV RDI,R14 CALL 0x0011f130 TEST EAX,EAX SETZ BL LAB_0016e823: MOV EAX,EBX ADD RSP,0x8 POP RBX POP R14 RET
/* google::protobuf::compiler::python::IsWellKnownType(std::__cxx11::string const&) */ ulong google::protobuf::compiler::python::IsWellKnownType(string *param_1) { int iVar1; int8 unaff_RBX; ulong uVar2; int7 uVar3; iVar1 = std::__cxx11::string::compare((char *)param_1); uVar3 = (int7)((ulong)unaff_RBX >> 8); uVar2 = CONCAT71(uVar3,1); if (iVar1 != 0) { iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 != 0) { iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 != 0) { iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 != 0) { iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 != 0) { iVar1 = std::__cxx11::string::compare((char *)param_1); uVar2 = CONCAT71(uVar3,iVar1 == 0); } } } } } return uVar2 & 0xffffffff; }
2,149
pow5mult
eloqsql/strings/dtoa.c
static Bigint *pow5mult(Bigint *b, int k, Stack_alloc *alloc) { Bigint *b1, *p5, *p51=NULL; int i; static int p05[3]= { 5, 25, 125 }; my_bool overflow= FALSE; if ((i= k & 3)) b= multadd(b, p05[i-1], 0, alloc); if (!(k>>= 2)) return b; p5= p5_a; for (;;) { if (k & 1) { b1= mult(b, p5, alloc); Bfree(b, alloc); b= b1; } if (!(k>>= 1)) break; /* Calculate next power of 5 */ if (overflow) { p51= mult(p5, p5, alloc); Bfree(p5, alloc); p5= p51; } else if (p5 < p5_a + P5A_MAX) ++p5; else if (p5 == p5_a + P5A_MAX) { p5= mult(p5, p5, alloc); overflow= TRUE; } } if (p51) Bfree(p51, alloc); return b; }
O3
c
pow5mult: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movl %esi, %r15d movq %rdi, %r13 movl %esi, %eax andl $0x3, %eax je 0x5eefd decl %eax leaq 0x28301e(%rip), %rcx # 0x2e1f08 movl (%rcx,%rax,4), %esi movq %r13, %rdi xorl %edx, %edx movq %rbx, %rcx callq 0x5f34a movq %rax, %r13 cmpl $0x4, %r15d jb 0x5efe5 movq %rbx, -0x38(%rbp) shrl $0x2, %r15d movb $0x1, %cl leaq 0x311148(%rip), %rbx # 0x370060 movq $0x0, -0x40(%rbp) leaq 0x3111c9(%rip), %r12 # 0x3700f0 movl %ecx, %r14d cmpq %r12, %rbx setb %cl movl %ecx, -0x2c(%rbp) testb $0x1, %r15b je 0x5ef68 movq %r13, %rdi movq %rbx, %rsi movq %r13, %r12 movq -0x38(%rbp), %r13 movq %r13, %rdx callq 0x5eff7 movq %rax, -0x48(%rbp) movq %r12, %rdi leaq 0x311194(%rip), %r12 # 0x3700f0 movq %r13, %rsi callq 0x5f119 movq -0x48(%rbp), %r13 cmpl $0x2, %r15d jb 0x5efd3 shrl %r15d testb $0x1, %r14b je 0x5ef98 cmpq %r12, %rbx jb 0x5efc7 movb $0x1, %r14b jne 0x5ef33 movq %r12, %rdi movq %r12, %rsi movq -0x38(%rbp), %rdx callq 0x5eff7 movq %rax, %rbx movl -0x2c(%rbp), %ecx jmp 0x5ef27 movq %rbx, %rdi movq %rbx, %r14 movq %rbx, %rsi movq -0x38(%rbp), %rbx movq %rbx, %rdx callq 0x5eff7 movq %rax, -0x40(%rbp) movq %r14, %rdi movq %rbx, %rsi callq 0x5f119 xorl %ecx, %ecx movq -0x40(%rbp), %rbx jmp 0x5ef27 addq $0x18, %rbx movl -0x2c(%rbp), %ecx jmp 0x5ef27 movq -0x40(%rbp), %rdi testq %rdi, %rdi je 0x5efe5 movq -0x38(%rbp), %rsi callq 0x5f119 movq %r13, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
pow5mult: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdx mov r15d, esi mov r13, rdi mov eax, esi and eax, 3 jz short loc_5EEFD dec eax lea rcx, pow5mult_p05 mov esi, [rcx+rax*4] mov rdi, r13 xor edx, edx mov rcx, rbx call multadd mov r13, rax loc_5EEFD: cmp r15d, 4 jb loc_5EFE5 mov [rbp+var_38], rbx shr r15d, 2 mov cl, 1 lea rbx, p5_a mov [rbp+var_40], 0 lea r12, off_3700F0 loc_5EF27: mov r14d, ecx cmp rbx, r12 setb cl mov [rbp+var_2C], ecx loc_5EF33: test r15b, 1 jz short loc_5EF68 mov rdi, r13 mov rsi, rbx mov r12, r13 mov r13, [rbp+var_38] mov rdx, r13 call mult mov [rbp+var_48], rax mov rdi, r12 lea r12, off_3700F0 mov rsi, r13 call Bfree mov r13, [rbp+var_48] loc_5EF68: cmp r15d, 2 jb short loc_5EFD3 shr r15d, 1 test r14b, 1 jz short loc_5EF98 cmp rbx, r12 jb short loc_5EFC7 mov r14b, 1 jnz short loc_5EF33 mov rdi, r12 mov rsi, r12 mov rdx, [rbp+var_38] call mult mov rbx, rax mov ecx, [rbp+var_2C] jmp short loc_5EF27 loc_5EF98: mov rdi, rbx mov r14, rbx mov rsi, rbx mov rbx, [rbp+var_38] mov rdx, rbx call mult mov [rbp+var_40], rax mov rdi, r14 mov rsi, rbx call Bfree xor ecx, ecx mov rbx, [rbp+var_40] jmp loc_5EF27 loc_5EFC7: add rbx, 18h mov ecx, [rbp+var_2C] jmp loc_5EF27 loc_5EFD3: mov rdi, [rbp+var_40] test rdi, rdi jz short loc_5EFE5 mov rsi, [rbp+var_38] call Bfree loc_5EFE5: mov rax, r13 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long pow5mult(long long a1, unsigned int a2, long long a3, int a4) { long long v5; // r13 unsigned int v6; // r15d _UNKNOWN **v7; // rbx char v8; // r14 long long v10; // [rsp+8h] [rbp-48h] long long v11; // [rsp+10h] [rbp-40h] long long v12; // [rsp+18h] [rbp-38h] int v13; // [rsp+24h] [rbp-2Ch] v5 = a1; if ( (a2 & 3) != 0 ) v5 = multadd(a1, pow5mult_p05[(a2 & 3) - 1], 0LL, a3); if ( a2 >= 4 ) { v12 = a3; v6 = a2 >> 2; LOBYTE(a4) = 1; v7 = &p5_a; v11 = 0LL; LABEL_5: v8 = a4; LOBYTE(a4) = v7 < &off_3700F0; v13 = a4; while ( 1 ) { if ( (v6 & 1) != 0 ) { v10 = mult(v5, v7, v12); Bfree(v5, v12); v5 = v10; } if ( v6 < 2 ) break; v6 >>= 1; if ( (v8 & 1) == 0 ) { v11 = mult(v7, v7, v12); Bfree(v7, v12); a4 = 0; v7 = (_UNKNOWN **)v11; goto LABEL_5; } if ( v7 < &off_3700F0 ) { v7 += 3; a4 = v13; goto LABEL_5; } v8 = 1; if ( v7 == &off_3700F0 ) { v7 = (_UNKNOWN **)mult(&off_3700F0, &off_3700F0, v12); a4 = v13; goto LABEL_5; } } if ( v11 ) Bfree(v11, v12); } return v5; }
pow5mult: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV R15D,ESI MOV R13,RDI MOV EAX,ESI AND EAX,0x3 JZ 0x0015eefd DEC EAX LEA RCX,[0x3e1f08] MOV ESI,dword ptr [RCX + RAX*0x4] MOV RDI,R13 XOR EDX,EDX MOV RCX,RBX CALL 0x0015f34a MOV R13,RAX LAB_0015eefd: CMP R15D,0x4 JC 0x0015efe5 MOV qword ptr [RBP + -0x38],RBX SHR R15D,0x2 MOV CL,0x1 LEA RBX,[0x470060] MOV qword ptr [RBP + -0x40],0x0 LEA R12,[0x4700f0] LAB_0015ef27: MOV R14D,ECX CMP RBX,R12 SETC CL MOV dword ptr [RBP + -0x2c],ECX LAB_0015ef33: TEST R15B,0x1 JZ 0x0015ef68 MOV RDI,R13 MOV RSI,RBX MOV R12,R13 MOV R13,qword ptr [RBP + -0x38] MOV RDX,R13 CALL 0x0015eff7 MOV qword ptr [RBP + -0x48],RAX MOV RDI,R12 LEA R12,[0x4700f0] MOV RSI,R13 CALL 0x0015f119 MOV R13,qword ptr [RBP + -0x48] LAB_0015ef68: CMP R15D,0x2 JC 0x0015efd3 SHR R15D,0x1 TEST R14B,0x1 JZ 0x0015ef98 CMP RBX,R12 JC 0x0015efc7 MOV R14B,0x1 JNZ 0x0015ef33 MOV RDI,R12 MOV RSI,R12 MOV RDX,qword ptr [RBP + -0x38] CALL 0x0015eff7 MOV RBX,RAX MOV ECX,dword ptr [RBP + -0x2c] JMP 0x0015ef27 LAB_0015ef98: MOV RDI,RBX MOV R14,RBX MOV RSI,RBX MOV RBX,qword ptr [RBP + -0x38] MOV RDX,RBX CALL 0x0015eff7 MOV qword ptr [RBP + -0x40],RAX MOV RDI,R14 MOV RSI,RBX CALL 0x0015f119 XOR ECX,ECX MOV RBX,qword ptr [RBP + -0x40] JMP 0x0015ef27 LAB_0015efc7: ADD RBX,0x18 MOV ECX,dword ptr [RBP + -0x2c] JMP 0x0015ef27 LAB_0015efd3: MOV RDI,qword ptr [RBP + -0x40] TEST RDI,RDI JZ 0x0015efe5 MOV RSI,qword ptr [RBP + -0x38] CALL 0x0015f119 LAB_0015efe5: MOV RAX,R13 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 pow5mult(int8 param_1,uint param_2,int8 param_3) { int1 *puVar1; int8 uVar2; bool bVar3; bool bVar4; int1 *local_48; if ((param_2 & 3) != 0) { param_1 = multadd(param_1,*(int4 *)(pow5mult_p05 + (ulong)((param_2 & 3) - 1) * 4),0, param_3); } if (param_2 < 4) { return param_1; } param_2 = param_2 >> 2; local_48 = (int1 *)0x0; puVar1 = p5_a; bVar3 = true; LAB_0015ef27: do { bVar4 = puVar1 < (int1 *)0x4700f0; uVar2 = param_1; do { param_1 = uVar2; if ((param_2 & 1) != 0) { param_1 = mult(uVar2,puVar1,param_3); Bfree(uVar2,param_3); } if (param_2 < 2) { if (local_48 == (int1 *)0x0) { return param_1; } Bfree(local_48,param_3); return param_1; } param_2 = param_2 >> 1; if (!bVar3) { local_48 = (int1 *)mult(puVar1,puVar1,param_3); Bfree(puVar1,param_3); bVar3 = false; puVar1 = local_48; goto LAB_0015ef27; } if (puVar1 < (int1 *)0x4700f0) { puVar1 = puVar1 + 0x18; bVar3 = bVar4; goto LAB_0015ef27; } bVar3 = true; uVar2 = param_1; } while (puVar1 != (int1 *)0x4700f0); puVar1 = (int1 *)mult(0x4700f0,0x4700f0,param_3); bVar3 = bVar4; } while( true ); }
2,150
js_object_seal
bluesky950520[P]quickjs/quickjs.c
static JSValue js_object_seal(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int freeze_flag) { JSValue obj = argv[0]; JSObject *p; JSPropertyEnum *props; uint32_t len, i; int flags, desc_flags, res; if (!JS_IsObject(obj)) return js_dup(obj); p = JS_VALUE_GET_OBJ(obj); if (p->class_id == JS_CLASS_MODULE_NS) { return JS_ThrowTypeError(ctx, "cannot %s module namespace", freeze_flag ? "freeze" : "seal"); } res = JS_PreventExtensions(ctx, obj); if (res < 0) return JS_EXCEPTION; if (!res) { return JS_ThrowTypeError(ctx, "proxy preventExtensions handler returned false"); } flags = JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK; if (JS_GetOwnPropertyNamesInternal(ctx, &props, &len, p, flags)) return JS_EXCEPTION; for(i = 0; i < len; i++) { JSPropertyDescriptor desc; JSAtom prop = props[i].atom; desc_flags = JS_PROP_THROW | JS_PROP_HAS_CONFIGURABLE; if (freeze_flag) { res = JS_GetOwnPropertyInternal(ctx, &desc, p, prop); if (res < 0) goto exception; if (res) { if (desc.flags & JS_PROP_WRITABLE) desc_flags |= JS_PROP_HAS_WRITABLE; js_free_desc(ctx, &desc); } } if (JS_DefineProperty(ctx, obj, prop, JS_UNDEFINED, JS_UNDEFINED, JS_UNDEFINED, desc_flags) < 0) goto exception; } js_free_prop_enum(ctx, props, len); return js_dup(obj); exception: js_free_prop_enum(ctx, props, len); return JS_EXCEPTION; }
O0
c
js_object_seal: pushq %rbx subq $0x110, %rsp # imm = 0x110 movq %rsi, 0xf0(%rsp) movq %rdx, 0xf8(%rsp) movq %rdi, 0xe8(%rsp) movl %ecx, 0xe4(%rsp) movq %r8, 0xd8(%rsp) movl %r9d, 0xd4(%rsp) movq 0xd8(%rsp), %rax movq (%rax), %rcx movq %rcx, 0xc0(%rsp) movq 0x8(%rax), %rax movq %rax, 0xc8(%rsp) movq 0xc0(%rsp), %rdi movq 0xc8(%rsp), %rsi callq 0x31260 cmpl $0x0, %eax jne 0x5c3ea movq 0xc0(%rsp), %rdi movq 0xc8(%rsp), %rsi callq 0x279c0 movq %rax, 0x100(%rsp) movq %rdx, 0x108(%rsp) jmp 0x5c70f movq 0xc0(%rsp), %rax movq %rax, 0xb8(%rsp) movq 0xb8(%rsp), %rax movzwl 0x6(%rax), %eax cmpl $0xb, %eax jne 0x5c452 movq 0xe8(%rsp), %rdi movl 0xd4(%rsp), %ecx leaq 0xba70c(%rip), %rdx # 0x116b2d leaq 0xba6fe(%rip), %rax # 0x116b26 cmpl $0x0, %ecx cmovneq %rax, %rdx leaq 0xba6d5(%rip), %rsi # 0x116b0b movb $0x0, %al callq 0x335f0 movq %rax, 0x100(%rsp) movq %rdx, 0x108(%rsp) jmp 0x5c70f movq 0xe8(%rsp), %rdi movq 0xc0(%rsp), %rsi movq 0xc8(%rsp), %rdx callq 0x36fa0 movl %eax, 0x9c(%rsp) cmpl $0x0, 0x9c(%rsp) jge 0x5c49c movl $0x0, 0x100(%rsp) movq $0x6, 0x108(%rsp) jmp 0x5c70f cmpl $0x0, 0x9c(%rsp) jne 0x5c4d1 movq 0xe8(%rsp), %rdi leaq 0xba67d(%rip), %rsi # 0x116b32 movb $0x0, %al callq 0x335f0 movq %rax, 0x100(%rsp) movq %rdx, 0x108(%rsp) jmp 0x5c70f movl $0x3, 0xa4(%rsp) movq 0xe8(%rsp), %rdi movq 0xb8(%rsp), %rcx movl 0xa4(%rsp), %r8d leaq 0xb0(%rsp), %rsi leaq 0xac(%rsp), %rdx callq 0x358d0 cmpl $0x0, %eax je 0x5c52a movl $0x0, 0x100(%rsp) movq $0x6, 0x108(%rsp) jmp 0x5c70f movl $0x0, 0xa8(%rsp) movl 0xa8(%rsp), %eax cmpl 0xac(%rsp), %eax jae 0x5c699 movq 0xb0(%rsp), %rax movl 0xa8(%rsp), %ecx movl 0x4(%rax,%rcx,8), %eax movl %eax, 0x5c(%rsp) movl $0x4100, 0xa0(%rsp) # imm = 0x4100 cmpl $0x0, 0xd4(%rsp) je 0x5c5e6 movq 0xe8(%rsp), %rdi movq 0xb8(%rsp), %rdx movl 0x5c(%rsp), %ecx leaq 0x60(%rsp), %rsi callq 0x364b0 movl %eax, 0x9c(%rsp) cmpl $0x0, 0x9c(%rsp) jge 0x5c5a9 jmp 0x5c6dc cmpl $0x0, 0x9c(%rsp) je 0x5c5e4 movl 0x60(%rsp), %eax andl $0x2, %eax cmpl $0x0, %eax je 0x5c5d2 movl 0xa0(%rsp), %eax orl $0x200, %eax # imm = 0x200 movl %eax, 0xa0(%rsp) movq 0xe8(%rsp), %rdi leaq 0x60(%rsp), %rsi callq 0x66cf0 jmp 0x5c5e6 movq 0xe8(%rsp), %rdi movl 0x5c(%rsp), %ecx movl $0x0, 0x48(%rsp) movq $0x3, 0x50(%rsp) movl $0x0, 0x38(%rsp) movq $0x3, 0x40(%rsp) movl $0x0, 0x28(%rsp) movq $0x3, 0x30(%rsp) movl 0xa0(%rsp), %eax movq 0xc0(%rsp), %rsi movq 0xc8(%rsp), %rdx movq 0x48(%rsp), %r8 movq 0x50(%rsp), %r9 leaq 0x38(%rsp), %r11 leaq 0x28(%rsp), %r10 movq (%r11), %rbx movq %rbx, (%rsp) movq 0x8(%r11), %r11 movq %r11, 0x8(%rsp) movq (%r10), %r11 movq %r11, 0x10(%rsp) movq 0x8(%r10), %r10 movq %r10, 0x18(%rsp) movl %eax, 0x20(%rsp) callq 0x3a0d0 cmpl $0x0, %eax jge 0x5c681 jmp 0x5c6dc jmp 0x5c683 movl 0xa8(%rsp), %eax addl $0x1, %eax movl %eax, 0xa8(%rsp) jmp 0x5c535 movq 0xe8(%rsp), %rdi movq 0xb0(%rsp), %rsi movl 0xac(%rsp), %edx callq 0x36d30 movq 0xc0(%rsp), %rdi movq 0xc8(%rsp), %rsi callq 0x279c0 movq %rax, 0x100(%rsp) movq %rdx, 0x108(%rsp) jmp 0x5c70f movq 0xe8(%rsp), %rdi movq 0xb0(%rsp), %rsi movl 0xac(%rsp), %edx callq 0x36d30 movl $0x0, 0x100(%rsp) movq $0x6, 0x108(%rsp) movq 0x100(%rsp), %rax movq 0x108(%rsp), %rdx addq $0x110, %rsp # imm = 0x110 popq %rbx retq nopl (%rax,%rax)
js_object_seal: push rbx sub rsp, 110h mov [rsp+118h+var_28], rsi mov [rsp+118h+var_20], rdx mov [rsp+118h+var_30], rdi mov [rsp+118h+var_34], ecx mov [rsp+118h+var_40], r8 mov [rsp+118h+var_44], r9d mov rax, [rsp+118h+var_40] mov rcx, [rax] mov [rsp+118h+var_58], rcx mov rax, [rax+8] mov [rsp+118h+var_50], rax mov rdi, [rsp+118h+var_58] mov rsi, [rsp+118h+var_50] call JS_IsObject cmp eax, 0 jnz short loc_5C3EA mov rdi, [rsp+118h+var_58] mov rsi, [rsp+118h+var_50] call js_dup mov [rsp+118h+var_18], rax mov [rsp+118h+var_10], rdx jmp loc_5C70F loc_5C3EA: mov rax, [rsp+118h+var_58] mov [rsp+118h+var_60], rax mov rax, [rsp+118h+var_60] movzx eax, word ptr [rax+6] cmp eax, 0Bh jnz short loc_5C452 mov rdi, [rsp+118h+var_30] mov ecx, [rsp+118h+var_44] lea rdx, aSeal; "seal" lea rax, aFreeze; "freeze" cmp ecx, 0 cmovnz rdx, rax lea rsi, aCannotSModuleN; "cannot %s module namespace" mov al, 0 call JS_ThrowTypeError mov [rsp+118h+var_18], rax mov [rsp+118h+var_10], rdx jmp loc_5C70F loc_5C452: mov rdi, [rsp+118h+var_30] mov rsi, [rsp+118h+var_58] mov rdx, [rsp+118h+var_50] call JS_PreventExtensions mov [rsp+118h+var_7C], eax cmp [rsp+118h+var_7C], 0 jge short loc_5C49C mov dword ptr [rsp+118h+var_18], 0 mov [rsp+118h+var_10], 6 jmp loc_5C70F loc_5C49C: cmp [rsp+118h+var_7C], 0 jnz short loc_5C4D1 mov rdi, [rsp+118h+var_30] lea rsi, aProxyPreventex; "proxy preventExtensions handler returne"... mov al, 0 call JS_ThrowTypeError mov [rsp+118h+var_18], rax mov [rsp+118h+var_10], rdx jmp loc_5C70F loc_5C4D1: mov [rsp+118h+var_74], 3 mov rdi, [rsp+118h+var_30] mov rcx, [rsp+118h+var_60] mov r8d, [rsp+118h+var_74] lea rsi, [rsp+118h+var_68] lea rdx, [rsp+118h+var_6C] call JS_GetOwnPropertyNamesInternal cmp eax, 0 jz short loc_5C52A mov dword ptr [rsp+118h+var_18], 0 mov [rsp+118h+var_10], 6 jmp loc_5C70F loc_5C52A: mov [rsp+118h+var_70], 0 loc_5C535: mov eax, [rsp+118h+var_70] cmp eax, [rsp+118h+var_6C] jnb loc_5C699 mov rax, [rsp+118h+var_68] mov ecx, [rsp+118h+var_70] mov eax, [rax+rcx*8+4] mov [rsp+118h+var_BC], eax mov [rsp+118h+var_78], 4100h cmp [rsp+118h+var_44], 0 jz short loc_5C5E6 mov rdi, [rsp+118h+var_30] mov rdx, [rsp+118h+var_60] mov ecx, [rsp+118h+var_BC] lea rsi, [rsp+118h+var_B8] call JS_GetOwnPropertyInternal mov [rsp+118h+var_7C], eax cmp [rsp+118h+var_7C], 0 jge short loc_5C5A9 jmp loc_5C6DC loc_5C5A9: cmp [rsp+118h+var_7C], 0 jz short loc_5C5E4 mov eax, [rsp+118h+var_B8] and eax, 2 cmp eax, 0 jz short loc_5C5D2 mov eax, [rsp+118h+var_78] or eax, 200h mov [rsp+118h+var_78], eax loc_5C5D2: mov rdi, [rsp+118h+var_30] lea rsi, [rsp+118h+var_B8] call js_free_desc loc_5C5E4: jmp short $+2 loc_5C5E6: mov rdi, [rsp+118h+var_30] mov ecx, [rsp+118h+var_BC] mov dword ptr [rsp+118h+var_D0], 0 mov [rsp+118h+var_C8], 3 mov [rsp+118h+var_E0], 0 mov [rsp+118h+var_D8], 3 mov [rsp+118h+var_F0], 0 mov [rsp+118h+var_E8], 3 mov eax, [rsp+118h+var_78] mov rsi, [rsp+118h+var_58] mov rdx, [rsp+118h+var_50] mov r8, [rsp+118h+var_D0] mov r9, [rsp+118h+var_C8] lea r11, [rsp+118h+var_E0] lea r10, [rsp+118h+var_F0] mov rbx, [r11] mov [rsp+118h+var_118], rbx mov r11, [r11+8] mov [rsp+118h+var_110], r11 mov r11, [r10] mov [rsp+118h+var_108], r11 mov r10, [r10+8] mov [rsp+118h+var_100], r10 mov [rsp+118h+var_F8], eax call JS_DefineProperty cmp eax, 0 jge short loc_5C681 jmp short loc_5C6DC loc_5C681: jmp short $+2 loc_5C683: mov eax, [rsp+118h+var_70] add eax, 1 mov [rsp+118h+var_70], eax jmp loc_5C535 loc_5C699: mov rdi, [rsp+118h+var_30] mov rsi, [rsp+118h+var_68] mov edx, [rsp+118h+var_6C] call js_free_prop_enum mov rdi, [rsp+118h+var_58] mov rsi, [rsp+118h+var_50] call js_dup mov [rsp+118h+var_18], rax mov [rsp+118h+var_10], rdx jmp short loc_5C70F loc_5C6DC: mov rdi, [rsp+118h+var_30] mov rsi, [rsp+118h+var_68] mov edx, [rsp+118h+var_6C] call js_free_prop_enum mov dword ptr [rsp+118h+var_18], 0 mov [rsp+118h+var_10], 6 loc_5C70F: mov rax, [rsp+118h+var_18] mov rdx, [rsp+118h+var_10] add rsp, 110h pop rbx retn
long long js_object_seal( long long a1, long long a2, long long a3, int a4, long long a5, unsigned int a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14) { long long v14; // r8 long long v15; // r9 __m128 v16; // xmm4 __m128 v17; // xmm5 long long v18; // rdx const char *v19; // rdx long long v20; // rdx long long v21; // rdx long long v22; // rcx long long v23; // r8 long long v24; // r9 __m128 v25; // xmm4 __m128 v26; // xmm5 long long v27; // rdx __m128 v28; // xmm4 __m128 v29; // xmm5 long long v30; // rdx char v32; // [rsp+0h] [rbp-118h] _DWORD *v33; // [rsp+28h] [rbp-F0h] _DWORD *v34; // [rsp+38h] [rbp-E0h] _DWORD *v35; // [rsp+48h] [rbp-D0h] unsigned int v36; // [rsp+5Ch] [rbp-BCh] _BYTE v37[60]; // [rsp+60h] [rbp-B8h] BYREF int OwnPropertyInternal; // [rsp+9Ch] [rbp-7Ch] unsigned int v39; // [rsp+A0h] [rbp-78h] int v40; // [rsp+A4h] [rbp-74h] unsigned int i; // [rsp+A8h] [rbp-70h] unsigned int v42; // [rsp+ACh] [rbp-6Ch] BYREF long long v43; // [rsp+B0h] [rbp-68h] BYREF _DWORD *v44; // [rsp+B8h] [rbp-60h] _DWORD *v45; // [rsp+C0h] [rbp-58h] long long v46; // [rsp+C8h] [rbp-50h] unsigned int v47; // [rsp+D4h] [rbp-44h] long long v48; // [rsp+D8h] [rbp-40h] int v49; // [rsp+E4h] [rbp-34h] long long v50; // [rsp+E8h] [rbp-30h] long long v51; // [rsp+F0h] [rbp-28h] long long v52; // [rsp+F8h] [rbp-20h] long long v53; // [rsp+100h] [rbp-18h] long long v54; // [rsp+108h] [rbp-10h] v51 = a2; v52 = a3; v50 = a1; v49 = a4; v48 = a5; v47 = a6; v45 = *(_DWORD **)a5; v46 = *(_QWORD *)(a5 + 8); if ( JS_IsObject((long long)v45, v46) ) { v44 = v45; if ( *((_WORD *)v45 + 3) == 11 ) { v19 = "seal"; if ( v47 ) v19 = "freeze"; v53 = JS_ThrowTypeError( v50, (long long)"cannot %s module namespace", (long long)v19, v47, v14, v15, a7, a8, a9, a10, v16, v17, a13, a14, v32); v54 = v20; } else { OwnPropertyInternal = JS_PreventExtensions(v50, (long long)v45, v46); if ( OwnPropertyInternal >= 0 ) { if ( OwnPropertyInternal ) { v40 = 3; if ( (unsigned int)JS_GetOwnPropertyNamesInternal(v50, &v43, &v42, (long long)v44, 3) ) { LODWORD(v53) = 0; v54 = 6LL; } else { for ( i = 0; ; ++i ) { if ( i >= v42 ) { js_free_prop_enum(v50, v43, v42); v53 = (long long)js_dup(v45, v46); v54 = v30; return v53; } v36 = *(_DWORD *)(v43 + 8LL * i + 4); v39 = 16640; if ( v47 ) { OwnPropertyInternal = JS_GetOwnPropertyInternal(v50, (long long)v37, (long long)v44, v36); if ( OwnPropertyInternal < 0 ) break; if ( OwnPropertyInternal ) { if ( (v37[0] & 2) != 0 ) v39 |= 0x200u; js_free_desc(v50, v37); } } LODWORD(v35) = 0; LODWORD(v34) = 0; LODWORD(v33) = 0; if ( (int)JS_DefineProperty( v50, (long long)v45, v46, v36, v35, 3LL, a7, a8, a9, a10, v28, v29, a13, a14, v34, 3u, v33, 3LL, v39) < 0 ) break; } js_free_prop_enum(v50, v43, v42); LODWORD(v53) = 0; v54 = 6LL; } } else { v53 = JS_ThrowTypeError( v50, (long long)"proxy preventExtensions handler returned false", v21, v22, v23, v24, a7, a8, a9, a10, v25, v26, a13, a14, v32); v54 = v27; } } else { LODWORD(v53) = 0; v54 = 6LL; } } } else { v53 = (long long)js_dup(v45, v46); v54 = v18; } return v53; }
js_object_seal: PUSH RBX SUB RSP,0x110 MOV qword ptr [RSP + 0xf0],RSI MOV qword ptr [RSP + 0xf8],RDX MOV qword ptr [RSP + 0xe8],RDI MOV dword ptr [RSP + 0xe4],ECX MOV qword ptr [RSP + 0xd8],R8 MOV dword ptr [RSP + 0xd4],R9D MOV RAX,qword ptr [RSP + 0xd8] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP + 0xc0],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0xc8],RAX MOV RDI,qword ptr [RSP + 0xc0] MOV RSI,qword ptr [RSP + 0xc8] CALL 0x00131260 CMP EAX,0x0 JNZ 0x0015c3ea MOV RDI,qword ptr [RSP + 0xc0] MOV RSI,qword ptr [RSP + 0xc8] CALL 0x001279c0 MOV qword ptr [RSP + 0x100],RAX MOV qword ptr [RSP + 0x108],RDX JMP 0x0015c70f LAB_0015c3ea: MOV RAX,qword ptr [RSP + 0xc0] MOV qword ptr [RSP + 0xb8],RAX MOV RAX,qword ptr [RSP + 0xb8] MOVZX EAX,word ptr [RAX + 0x6] CMP EAX,0xb JNZ 0x0015c452 MOV RDI,qword ptr [RSP + 0xe8] MOV ECX,dword ptr [RSP + 0xd4] LEA RDX,[0x216b2d] LEA RAX,[0x216b26] CMP ECX,0x0 CMOVNZ RDX,RAX LEA RSI,[0x216b0b] MOV AL,0x0 CALL 0x001335f0 MOV qword ptr [RSP + 0x100],RAX MOV qword ptr [RSP + 0x108],RDX JMP 0x0015c70f LAB_0015c452: MOV RDI,qword ptr [RSP + 0xe8] MOV RSI,qword ptr [RSP + 0xc0] MOV RDX,qword ptr [RSP + 0xc8] CALL 0x00136fa0 MOV dword ptr [RSP + 0x9c],EAX CMP dword ptr [RSP + 0x9c],0x0 JGE 0x0015c49c MOV dword ptr [RSP + 0x100],0x0 MOV qword ptr [RSP + 0x108],0x6 JMP 0x0015c70f LAB_0015c49c: CMP dword ptr [RSP + 0x9c],0x0 JNZ 0x0015c4d1 MOV RDI,qword ptr [RSP + 0xe8] LEA RSI,[0x216b32] MOV AL,0x0 CALL 0x001335f0 MOV qword ptr [RSP + 0x100],RAX MOV qword ptr [RSP + 0x108],RDX JMP 0x0015c70f LAB_0015c4d1: MOV dword ptr [RSP + 0xa4],0x3 MOV RDI,qword ptr [RSP + 0xe8] MOV RCX,qword ptr [RSP + 0xb8] MOV R8D,dword ptr [RSP + 0xa4] LEA RSI,[RSP + 0xb0] LEA RDX,[RSP + 0xac] CALL 0x001358d0 CMP EAX,0x0 JZ 0x0015c52a MOV dword ptr [RSP + 0x100],0x0 MOV qword ptr [RSP + 0x108],0x6 JMP 0x0015c70f LAB_0015c52a: MOV dword ptr [RSP + 0xa8],0x0 LAB_0015c535: MOV EAX,dword ptr [RSP + 0xa8] CMP EAX,dword ptr [RSP + 0xac] JNC 0x0015c699 MOV RAX,qword ptr [RSP + 0xb0] MOV ECX,dword ptr [RSP + 0xa8] MOV EAX,dword ptr [RAX + RCX*0x8 + 0x4] MOV dword ptr [RSP + 0x5c],EAX MOV dword ptr [RSP + 0xa0],0x4100 CMP dword ptr [RSP + 0xd4],0x0 JZ 0x0015c5e6 MOV RDI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xb8] MOV ECX,dword ptr [RSP + 0x5c] LEA RSI,[RSP + 0x60] CALL 0x001364b0 MOV dword ptr [RSP + 0x9c],EAX CMP dword ptr [RSP + 0x9c],0x0 JGE 0x0015c5a9 JMP 0x0015c6dc LAB_0015c5a9: CMP dword ptr [RSP + 0x9c],0x0 JZ 0x0015c5e4 MOV EAX,dword ptr [RSP + 0x60] AND EAX,0x2 CMP EAX,0x0 JZ 0x0015c5d2 MOV EAX,dword ptr [RSP + 0xa0] OR EAX,0x200 MOV dword ptr [RSP + 0xa0],EAX LAB_0015c5d2: MOV RDI,qword ptr [RSP + 0xe8] LEA RSI,[RSP + 0x60] CALL 0x00166cf0 LAB_0015c5e4: JMP 0x0015c5e6 LAB_0015c5e6: MOV RDI,qword ptr [RSP + 0xe8] MOV ECX,dword ptr [RSP + 0x5c] MOV dword ptr [RSP + 0x48],0x0 MOV qword ptr [RSP + 0x50],0x3 MOV dword ptr [RSP + 0x38],0x0 MOV qword ptr [RSP + 0x40],0x3 MOV dword ptr [RSP + 0x28],0x0 MOV qword ptr [RSP + 0x30],0x3 MOV EAX,dword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0xc0] MOV RDX,qword ptr [RSP + 0xc8] MOV R8,qword ptr [RSP + 0x48] MOV R9,qword ptr [RSP + 0x50] LEA R11,[RSP + 0x38] LEA R10,[RSP + 0x28] MOV RBX,qword ptr [R11] MOV qword ptr [RSP],RBX MOV R11,qword ptr [R11 + 0x8] MOV qword ptr [RSP + 0x8],R11 MOV R11,qword ptr [R10] MOV qword ptr [RSP + 0x10],R11 MOV R10,qword ptr [R10 + 0x8] MOV qword ptr [RSP + 0x18],R10 MOV dword ptr [RSP + 0x20],EAX CALL 0x0013a0d0 CMP EAX,0x0 JGE 0x0015c681 JMP 0x0015c6dc LAB_0015c681: JMP 0x0015c683 LAB_0015c683: MOV EAX,dword ptr [RSP + 0xa8] ADD EAX,0x1 MOV dword ptr [RSP + 0xa8],EAX JMP 0x0015c535 LAB_0015c699: MOV RDI,qword ptr [RSP + 0xe8] MOV RSI,qword ptr [RSP + 0xb0] MOV EDX,dword ptr [RSP + 0xac] CALL 0x00136d30 MOV RDI,qword ptr [RSP + 0xc0] MOV RSI,qword ptr [RSP + 0xc8] CALL 0x001279c0 MOV qword ptr [RSP + 0x100],RAX MOV qword ptr [RSP + 0x108],RDX JMP 0x0015c70f LAB_0015c6dc: MOV RDI,qword ptr [RSP + 0xe8] MOV RSI,qword ptr [RSP + 0xb0] MOV EDX,dword ptr [RSP + 0xac] CALL 0x00136d30 MOV dword ptr [RSP + 0x100],0x0 MOV qword ptr [RSP + 0x108],0x6 LAB_0015c70f: MOV RAX,qword ptr [RSP + 0x100] MOV RDX,qword ptr [RSP + 0x108] ADD RSP,0x110 POP RBX RET
int1 [16] js_object_seal(int8 param_1,int8 param_2,int8 param_3,int4 param_4, long *param_5,int param_6) { int4 uVar1; int iVar2; char *pcVar3; int1 auVar4 [16]; uint uStack_ec; uint uStack_dc; uint uStack_cc; uint local_b8 [15]; int local_7c; uint local_78; int4 local_74; uint local_70; uint local_6c; long local_68; long local_60; long local_58; long local_50; int local_44; long *local_40; int4 local_34; int8 local_30; int8 local_28; int8 local_20; int4 local_18; int4 uStack_14; int8 local_10; local_58 = *param_5; local_50 = param_5[1]; local_44 = param_6; local_40 = param_5; local_34 = param_4; local_30 = param_1; local_28 = param_2; local_20 = param_3; iVar2 = JS_IsObject(local_58,local_50); if (iVar2 == 0) { auVar4 = js_dup(local_58,local_50); local_10 = auVar4._8_8_; local_18 = auVar4._0_4_; uStack_14 = auVar4._4_4_; } else { local_60 = local_58; if (*(short *)(local_58 + 6) == 0xb) { pcVar3 = "seal"; if (local_44 != 0) { pcVar3 = "freeze"; } auVar4 = JS_ThrowTypeError(local_30,"cannot %s module namespace",pcVar3); local_10 = auVar4._8_8_; local_18 = auVar4._0_4_; uStack_14 = auVar4._4_4_; } else { local_7c = JS_PreventExtensions(local_30,local_58,local_50); if (local_7c < 0) { local_18 = 0; local_10 = 6; } else if (local_7c == 0) { auVar4 = JS_ThrowTypeError(local_30,"proxy preventExtensions handler returned false"); local_10 = auVar4._8_8_; local_18 = auVar4._0_4_; uStack_14 = auVar4._4_4_; } else { local_74 = 3; iVar2 = JS_GetOwnPropertyNamesInternal(local_30,&local_68,&local_6c,local_60,3); if (iVar2 == 0) { for (local_70 = 0; local_70 < local_6c; local_70 = local_70 + 1) { uVar1 = *(int4 *)(local_68 + 4 + (ulong)local_70 * 8); local_78 = 0x4100; if (local_44 != 0) { local_7c = JS_GetOwnPropertyInternal(local_30,local_b8,local_60,uVar1); if (-1 < local_7c) { if (local_7c != 0) { if ((local_b8[0] & 2) != 0) { local_78 = local_78 | 0x200; } js_free_desc(local_30,local_b8); } goto LAB_0015c5e6; } LAB_0015c6dc: js_free_prop_enum(local_30,local_68,local_6c); local_18 = 0; local_10 = 6; goto LAB_0015c70f; } LAB_0015c5e6: iVar2 = JS_DefineProperty(local_30,local_58,local_50,uVar1,(ulong)uStack_cc << 0x20,3, (ulong)uStack_dc << 0x20,3,(ulong)uStack_ec << 0x20,3,local_78 ); if (iVar2 < 0) goto LAB_0015c6dc; } js_free_prop_enum(local_30,local_68,local_6c); auVar4 = js_dup(local_58,local_50); local_10 = auVar4._8_8_; local_18 = auVar4._0_4_; uStack_14 = auVar4._4_4_; } else { local_18 = 0; local_10 = 6; } } } } LAB_0015c70f: auVar4._4_4_ = uStack_14; auVar4._0_4_ = local_18; auVar4._8_8_ = local_10; return auVar4; }
2,151
spdlog::details::e_formatter<spdlog::details::scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&)
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h
void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override { auto millis = fmt_helper::time_fraction<std::chrono::milliseconds>(msg.time); const size_t field_size = 3; ScopedPadder p(field_size, padinfo_, dest); fmt_helper::pad3(static_cast<uint32_t>(millis.count()), dest); }
O3
c
spdlog::details::e_formatter<spdlog::details::scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&): pushq %rbp pushq %rbx subq $0x28, %rsp movq %rcx, %rbx movq 0x18(%rsi), %rcx movabsq $0x112e0be826d694b3, %rdx # imm = 0x112E0BE826D694B3 movq %rcx, %rax imulq %rdx movq %rdx, %rsi movq %rdx, %rax shrq $0x3f, %rax shrq $0x1a, %rsi addl %eax, %esi movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB movq %rcx, %rax imulq %rdx movq %rdx, %rax shrq $0x3f, %rax shrq $0x12, %rdx addl %edx, %eax imull $0xfffffc18, %esi, %ebp # imm = 0xFFFFFC18 addl %eax, %ebp leaq 0x8(%rdi), %rdx movq %rsp, %rdi movl $0x3, %esi movq %rbx, %rcx callq 0x3535e movl %ebp, %edi movq %rbx, %rsi callq 0x34ab2 movq %rsp, %rdi callq 0x353d2 addq $0x28, %rsp popq %rbx popq %rbp retq movq %rax, %rbx movq %rsp, %rdi callq 0x353d2 movq %rbx, %rdi callq 0x11760
_ZN6spdlog7details11e_formatterINS0_13scoped_padderEE6formatERKNS0_7log_msgERK2tmRN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE: push rbp push rbx sub rsp, 28h mov rbx, rcx mov rcx, [rsi+18h] mov rdx, 112E0BE826D694B3h mov rax, rcx imul rdx mov rsi, rdx mov rax, rdx shr rax, 3Fh shr rsi, 1Ah add esi, eax mov rdx, 431BDE82D7B634DBh mov rax, rcx imul rdx mov rax, rdx shr rax, 3Fh shr rdx, 12h add eax, edx imul ebp, esi, 0FFFFFC18h add ebp, eax lea rdx, [rdi+8] mov rdi, rsp mov esi, 3 mov rcx, rbx call _ZN6spdlog7details13scoped_padderC2EmRKNS0_12padding_infoERN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::scoped_padder::scoped_padder(ulong,spdlog::details::padding_info const&,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &) mov edi, ebp mov rsi, rbx call _ZN6spdlog7details10fmt_helper4pad3IjEEvT_RN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::fmt_helper::pad3<uint>(uint,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &) mov rdi, rsp; this call _ZN6spdlog7details13scoped_padderD2Ev; spdlog::details::scoped_padder::~scoped_padder() add rsp, 28h pop rbx pop rbp retn mov rbx, rax mov rdi, rsp; this call _ZN6spdlog7details13scoped_padderD2Ev; spdlog::details::scoped_padder::~scoped_padder() mov rdi, rbx call __Unwind_Resume
void spdlog::details::e_formatter<spdlog::details::scoped_padder>::format( long long a1, long long a2, long long a3, long long a4) { long long v5; // rcx unsigned int v6; // ebp _QWORD v7[7]; // [rsp+0h] [rbp-38h] BYREF v5 = *(_QWORD *)(a2 + 24); v6 = (int)v5 / 1000000 - 1000 * ((int)v5 / 1000000000); spdlog::details::scoped_padder::scoped_padder(v7, 3LL, a1 + 8, a4); spdlog::details::fmt_helper::pad3<unsigned int>(v6, a4); spdlog::details::scoped_padder::~scoped_padder((spdlog::details::scoped_padder *)v7); }
format: PUSH RBP PUSH RBX SUB RSP,0x28 MOV RBX,RCX MOV RCX,qword ptr [RSI + 0x18] MOV RDX,0x112e0be826d694b3 MOV RAX,RCX IMUL RDX MOV RSI,RDX MOV RAX,RDX SHR RAX,0x3f SHR RSI,0x1a ADD ESI,EAX MOV RDX,0x431bde82d7b634db MOV RAX,RCX IMUL RDX MOV RAX,RDX SHR RAX,0x3f SHR RDX,0x12 ADD EAX,EDX IMUL EBP,ESI,-0x3e8 ADD EBP,EAX LEA RDX,[RDI + 0x8] MOV RDI,RSP MOV ESI,0x3 MOV RCX,RBX CALL 0x0013535e LAB_0013671c: MOV EDI,EBP MOV RSI,RBX CALL 0x00134ab2 LAB_00136726: MOV RDI,RSP CALL 0x001353d2 ADD RSP,0x28 POP RBX POP RBP RET
/* spdlog::details::e_formatter<spdlog::details::scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char> >&) */ void __thiscall spdlog::details::e_formatter<spdlog::details::scoped_padder>::format (e_formatter<spdlog::details::scoped_padder> *this,log_msg *param_1,tm *param_2, basic_memory_buffer *param_3) { int1 auVar1 [16]; int1 auVar2 [16]; scoped_padder asStack_38 [40]; auVar1 = SEXT816(*(long *)(param_1 + 0x18)) * SEXT816(0x112e0be826d694b3); auVar2 = SEXT816(*(long *)(param_1 + 0x18)) * SEXT816(0x431bde82d7b634db); scoped_padder::scoped_padder(asStack_38,3,this + 8,param_3); /* try { // try from 0013671c to 00136725 has its CatchHandler @ 00136735 */ fmt_helper::pad3<unsigned_int> (((int)(auVar1._8_8_ >> 0x1a) - (auVar1._12_4_ >> 0x1f)) * -1000 + ((int)(auVar2._8_8_ >> 0x12) - (auVar2._12_4_ >> 0x1f)),param_3); scoped_padder::~scoped_padder(asStack_38); return; }
2,152
rw_pr_unlock
eloqsql/mysys/thr_rwlock.c
int rw_pr_unlock(rw_pr_lock_t *rwlock) { if (rwlock->active_writer) { /* We are unlocking wr-lock. */ #ifdef SAFE_MUTEX rwlock->writer_thread= 0; #endif rwlock->active_writer= FALSE; if (rwlock->writers_waiting_readers) { /* Avoid expensive cond signal in case when there is no contention or it is wr-only. Note that from view point of performance it would be better to signal on the condition variable after unlocking mutex (as it reduces number of contex switches). Unfortunately this would mean that such rwlock can't be safely used by MDL subsystem, which relies on the fact that it is OK to destroy rwlock once it is in unlocked state. */ pthread_cond_signal(&rwlock->no_active_readers); } pthread_mutex_unlock(&rwlock->lock); } else { /* We are unlocking rd-lock. */ pthread_mutex_lock(&rwlock->lock); rwlock->active_readers--; if (rwlock->active_readers == 0 && rwlock->writers_waiting_readers) { /* If we are last reader and there are waiting writers wake them up. */ pthread_cond_signal(&rwlock->no_active_readers); } pthread_mutex_unlock(&rwlock->lock); } return 0; }
O0
c
rw_pr_unlock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpb $0x0, 0x60(%rax) je 0xfa310 movq -0x8(%rbp), %rax movb $0x0, 0x60(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x5c(%rax) je 0xfa305 movq -0x8(%rbp), %rdi addq $0x28, %rdi callq 0x2a570 movq -0x8(%rbp), %rdi callq 0x2a1d0 jmp 0xfa350 movq -0x8(%rbp), %rdi callq 0x2a200 movq -0x8(%rbp), %rax movl 0x58(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x58(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x58(%rax) jne 0xfa347 movq -0x8(%rbp), %rax cmpl $0x0, 0x5c(%rax) je 0xfa347 movq -0x8(%rbp), %rdi addq $0x28, %rdi callq 0x2a570 movq -0x8(%rbp), %rdi callq 0x2a1d0 xorl %eax, %eax addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
rw_pr_unlock: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp byte ptr [rax+60h], 0 jz short loc_FA310 mov rax, [rbp+var_8] mov byte ptr [rax+60h], 0 mov rax, [rbp+var_8] cmp dword ptr [rax+5Ch], 0 jz short loc_FA305 mov rdi, [rbp+var_8] add rdi, 28h ; '(' call _pthread_cond_signal loc_FA305: mov rdi, [rbp+var_8] call _pthread_mutex_unlock jmp short loc_FA350 loc_FA310: mov rdi, [rbp+var_8] call _pthread_mutex_lock mov rax, [rbp+var_8] mov ecx, [rax+58h] add ecx, 0FFFFFFFFh mov [rax+58h], ecx mov rax, [rbp+var_8] cmp dword ptr [rax+58h], 0 jnz short loc_FA347 mov rax, [rbp+var_8] cmp dword ptr [rax+5Ch], 0 jz short loc_FA347 mov rdi, [rbp+var_8] add rdi, 28h ; '(' call _pthread_cond_signal loc_FA347: mov rdi, [rbp+var_8] call _pthread_mutex_unlock loc_FA350: xor eax, eax add rsp, 10h pop rbp retn
long long rw_pr_unlock(long long a1) { if ( *(_BYTE *)(a1 + 96) ) { *(_BYTE *)(a1 + 96) = 0; if ( *(_DWORD *)(a1 + 92) ) pthread_cond_signal(a1 + 40); } else { pthread_mutex_lock(a1); if ( !--*(_DWORD *)(a1 + 88) && *(_DWORD *)(a1 + 92) ) pthread_cond_signal(a1 + 40); } pthread_mutex_unlock(a1); return 0LL; }
rw_pr_unlock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x60],0x0 JZ 0x001fa310 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x60],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x5c],0x0 JZ 0x001fa305 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x28 CALL 0x0012a570 LAB_001fa305: MOV RDI,qword ptr [RBP + -0x8] CALL 0x0012a1d0 JMP 0x001fa350 LAB_001fa310: MOV RDI,qword ptr [RBP + -0x8] CALL 0x0012a200 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x58] ADD ECX,-0x1 MOV dword ptr [RAX + 0x58],ECX MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x58],0x0 JNZ 0x001fa347 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x5c],0x0 JZ 0x001fa347 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x28 CALL 0x0012a570 LAB_001fa347: MOV RDI,qword ptr [RBP + -0x8] CALL 0x0012a1d0 LAB_001fa350: XOR EAX,EAX ADD RSP,0x10 POP RBP RET
int8 rw_pr_unlock(pthread_mutex_t *param_1) { if (*(char *)((long)param_1 + 0x60) == '\0') { pthread_mutex_lock(param_1); *(int *)((long)param_1 + 0x58) = *(int *)((long)param_1 + 0x58) + -1; if ((*(int *)((long)param_1 + 0x58) == 0) && (*(int *)((long)param_1 + 0x5c) != 0)) { pthread_cond_signal((pthread_cond_t *)(param_1 + 1)); } pthread_mutex_unlock(param_1); } else { *(int1 *)((long)param_1 + 0x60) = 0; if (*(int *)((long)param_1 + 0x5c) != 0) { pthread_cond_signal((pthread_cond_t *)(param_1 + 1)); } pthread_mutex_unlock(param_1); } return 0; }
2,153
rw_pr_unlock
eloqsql/mysys/thr_rwlock.c
int rw_pr_unlock(rw_pr_lock_t *rwlock) { if (rwlock->active_writer) { /* We are unlocking wr-lock. */ #ifdef SAFE_MUTEX rwlock->writer_thread= 0; #endif rwlock->active_writer= FALSE; if (rwlock->writers_waiting_readers) { /* Avoid expensive cond signal in case when there is no contention or it is wr-only. Note that from view point of performance it would be better to signal on the condition variable after unlocking mutex (as it reduces number of contex switches). Unfortunately this would mean that such rwlock can't be safely used by MDL subsystem, which relies on the fact that it is OK to destroy rwlock once it is in unlocked state. */ pthread_cond_signal(&rwlock->no_active_readers); } pthread_mutex_unlock(&rwlock->lock); } else { /* We are unlocking rd-lock. */ pthread_mutex_lock(&rwlock->lock); rwlock->active_readers--; if (rwlock->active_readers == 0 && rwlock->writers_waiting_readers) { /* If we are last reader and there are waiting writers wake them up. */ pthread_cond_signal(&rwlock->no_active_readers); } pthread_mutex_unlock(&rwlock->lock); } return 0; }
O3
c
rw_pr_unlock: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx cmpb $0x0, 0x60(%rdi) je 0xa45c0 movb $0x0, 0x60(%rbx) cmpl $0x0, 0x5c(%rbx) je 0xa45cd leaq 0x28(%rbx), %rdi callq 0x295b0 jmp 0xa45cd movq %rbx, %rdi callq 0x29200 decl 0x58(%rbx) je 0xa45af movq %rbx, %rdi callq 0x291c0 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %rbp retq nop
rw_pr_unlock: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi cmp byte ptr [rdi+60h], 0 jz short loc_A45C0 mov byte ptr [rbx+60h], 0 loc_A45AF: cmp dword ptr [rbx+5Ch], 0 jz short loc_A45CD lea rdi, [rbx+28h] call _pthread_cond_signal jmp short loc_A45CD loc_A45C0: mov rdi, rbx call _pthread_mutex_lock dec dword ptr [rbx+58h] jz short loc_A45AF loc_A45CD: mov rdi, rbx call _pthread_mutex_unlock xor eax, eax add rsp, 8 pop rbx pop rbp retn
long long rw_pr_unlock(long long a1) { if ( *(_BYTE *)(a1 + 96) ) { *(_BYTE *)(a1 + 96) = 0; } else { pthread_mutex_lock(a1); if ( (*(_DWORD *)(a1 + 88))-- != 1 ) goto LABEL_6; } if ( *(_DWORD *)(a1 + 92) ) pthread_cond_signal(a1 + 40); LABEL_6: pthread_mutex_unlock(a1); return 0LL; }
rw_pr_unlock: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI CMP byte ptr [RDI + 0x60],0x0 JZ 0x001a45c0 MOV byte ptr [RBX + 0x60],0x0 LAB_001a45af: CMP dword ptr [RBX + 0x5c],0x0 JZ 0x001a45cd LEA RDI,[RBX + 0x28] CALL 0x001295b0 JMP 0x001a45cd LAB_001a45c0: MOV RDI,RBX CALL 0x00129200 DEC dword ptr [RBX + 0x58] JZ 0x001a45af LAB_001a45cd: MOV RDI,RBX CALL 0x001291c0 XOR EAX,EAX ADD RSP,0x8 POP RBX POP RBP RET
int8 rw_pr_unlock(pthread_mutex_t *param_1) { int *piVar1; if (*(char *)((long)param_1 + 0x60) == '\0') { pthread_mutex_lock(param_1); piVar1 = (int *)((long)param_1 + 0x58); *piVar1 = *piVar1 + -1; if (*piVar1 != 0) goto LAB_001a45cd; } else { *(int1 *)((long)param_1 + 0x60) = 0; } if (*(int *)((long)param_1 + 0x5c) != 0) { pthread_cond_signal((pthread_cond_t *)(param_1 + 1)); } LAB_001a45cd: pthread_mutex_unlock(param_1); return 0; }
2,154
change_pagecache_param
eloqsql/storage/maria/ma_pagecache.c
void change_pagecache_param(PAGECACHE *pagecache, uint division_limit, uint age_threshold) { DBUG_ENTER("change_pagecache_param"); pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (division_limit) pagecache->min_warm_blocks= (pagecache->disk_blocks * division_limit / 100 + 1); if (age_threshold) pagecache->age_threshold= (pagecache->disk_blocks * age_threshold / 100); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); DBUG_VOID_RETURN; }
O3
c
change_pagecache_param: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %r15d movl %esi, %r12d movq %rdi, %r14 leaq 0xc8(%rdi), %rbx cmpq $0x0, 0x108(%rdi) jne 0x31510 movq %rbx, %rdi callq 0x29220 movabsq $-0x5c28f5c28f5c28f5, %rsi # imm = 0xA3D70A3D70A3D70B testl %r12d, %r12d je 0x314cc movl %r12d, %ecx imulq 0x40(%r14), %rcx movq %rcx, %rax imulq %rsi addq %rcx, %rdx movq %rdx, %rax shrq $0x3f, %rax sarq $0x6, %rdx addq %rdx, %rax incq %rax movq %rax, 0x8(%r14) testl %r15d, %r15d je 0x314f4 movl %r15d, %ecx imulq 0x40(%r14), %rcx movq %rcx, %rax imulq %rsi addq %rcx, %rdx movq %rdx, %rax shrq $0x3f, %rax sarq $0x6, %rdx addq %rax, %rdx movq %rdx, 0x10(%r14) movq 0x108(%r14), %rdi testq %rdi, %rdi jne 0x31529 movq %rbx, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x291e0 leaq 0xa8092(%rip), %rsi # 0xd95a9 movq %rbx, %rdi movl $0x46d, %edx # imm = 0x46D callq 0x2eb8f jmp 0x31497 leaq 0x354ae0(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x31500
change_pagecache_param: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r15d, edx mov r12d, esi mov r14, rdi lea rbx, [rdi+0C8h] cmp qword ptr [rdi+108h], 0 jnz loc_31510 mov rdi, rbx call _pthread_mutex_lock loc_31497: mov rsi, 0A3D70A3D70A3D70Bh test r12d, r12d jz short loc_314CC mov ecx, r12d imul rcx, [r14+40h] mov rax, rcx imul rsi add rdx, rcx mov rax, rdx shr rax, 3Fh sar rdx, 6 add rax, rdx inc rax mov [r14+8], rax loc_314CC: test r15d, r15d jz short loc_314F4 mov ecx, r15d imul rcx, [r14+40h] mov rax, rcx imul rsi add rdx, rcx mov rax, rdx shr rax, 3Fh sar rdx, 6 add rdx, rax mov [r14+10h], rdx loc_314F4: mov rdi, [r14+108h] test rdi, rdi jnz short loc_31529 loc_31500: mov rdi, rbx pop rbx pop r12 pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_31510: lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov edx, 46Dh call psi_mutex_lock jmp loc_31497 loc_31529: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_31500
long long change_pagecache_param(_QWORD *a1, unsigned int a2, unsigned int a3) { _QWORD *v4; // rbx long long v5; // rdi v4 = a1 + 25; if ( a1[33] ) psi_mutex_lock( (long long)(a1 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x46Du); else pthread_mutex_lock(a1 + 25); if ( a2 ) a1[1] = a1[8] * a2 / 100LL + 1; if ( a3 ) a1[2] = a1[8] * a3 / 100LL; v5 = a1[33]; if ( v5 ) ((void ( *)(long long, unsigned long long))PSI_server[44])(v5, 0xA3D70A3D70A3D70BLL); return pthread_mutex_unlock(v4); }
change_pagecache_param: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R15D,EDX MOV R12D,ESI MOV R14,RDI LEA RBX,[RDI + 0xc8] CMP qword ptr [RDI + 0x108],0x0 JNZ 0x00131510 MOV RDI,RBX CALL 0x00129220 LAB_00131497: MOV RSI,-0x5c28f5c28f5c28f5 TEST R12D,R12D JZ 0x001314cc MOV ECX,R12D IMUL RCX,qword ptr [R14 + 0x40] MOV RAX,RCX IMUL RSI ADD RDX,RCX MOV RAX,RDX SHR RAX,0x3f SAR RDX,0x6 ADD RAX,RDX INC RAX MOV qword ptr [R14 + 0x8],RAX LAB_001314cc: TEST R15D,R15D JZ 0x001314f4 MOV ECX,R15D IMUL RCX,qword ptr [R14 + 0x40] MOV RAX,RCX IMUL RSI ADD RDX,RCX MOV RAX,RDX SHR RAX,0x3f SAR RDX,0x6 ADD RDX,RAX MOV qword ptr [R14 + 0x10],RDX LAB_001314f4: MOV RDI,qword ptr [R14 + 0x108] TEST RDI,RDI JNZ 0x00131529 LAB_00131500: MOV RDI,RBX POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x001291e0 LAB_00131510: LEA RSI,[0x1d95a9] MOV RDI,RBX MOV EDX,0x46d CALL 0x0012eb8f JMP 0x00131497 LAB_00131529: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00131500
void change_pagecache_param(long param_1,uint param_2,uint param_3) { pthread_mutex_t *__mutex; __mutex = (pthread_mutex_t *)(param_1 + 200); if (*(long *)(param_1 + 0x108) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x46d); } if (param_2 != 0) { *(long *)(param_1 + 8) = (long)((ulong)param_2 * *(long *)(param_1 + 0x40)) / 100 + 1; } if (param_3 != 0) { *(long *)(param_1 + 0x10) = (long)((ulong)param_3 * *(long *)(param_1 + 0x40)) / 100; } if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); return; }
2,155
YAML::Exp::EndScalarInFlow()
aimrt_mujoco_sim/_deps/yaml-cpp-src/src/exp.h
inline const RegEx& EndScalarInFlow() { static const RegEx e = (RegEx(':') + (BlankOrBreak() | RegEx() | RegEx(",]}", REGEX_OR))) | RegEx(",?[]{}", REGEX_OR); return e; }
O3
c
YAML::Exp::EndScalarInFlow(): pushq %r15 pushq %r14 pushq %rbx subq $0x120, %rsp # imm = 0x120 movb 0x1aa4a8(%rip), %al # 0x214078 testb %al, %al je 0x69be8 leaq 0x1aa47d(%rip), %rax # 0x214058 addq $0x120, %rsp # imm = 0x120 popq %rbx popq %r14 popq %r15 retq leaq 0x1aa489(%rip), %rdi # 0x214078 callq 0x2e2e0 testl %eax, %eax je 0x69bd4 leaq 0xe0(%rsp), %rdi movl $0x3a, %esi callq 0x6f11c callq 0x65be7 movq %rax, %rbx leaq 0x80(%rsp), %rdi callq 0x6f100 leaq 0xa0(%rsp), %rdi leaq 0x80(%rsp), %rdx movq %rbx, %rsi callq 0x6f1ca leaq 0x30(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0xfafc5(%rip), %rsi # 0x164c0c leaq 0xfafc1(%rip), %rdx # 0x164c0f leaq 0x20(%rsp), %rdi callq 0x2c610 leaq 0x60(%rsp), %rdi leaq 0x20(%rsp), %rsi movl $0x3, %edx callq 0x6f158 leaq 0xc0(%rsp), %rdi leaq 0xa0(%rsp), %rsi leaq 0x60(%rsp), %rdx callq 0x6f1ca leaq 0x100(%rsp), %rdi leaq 0xe0(%rsp), %rsi leaq 0xc0(%rsp), %rdx callq 0x6f27c leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0xfb133(%rip), %rsi # 0x164de6 leaq 0xfb132(%rip), %rdx # 0x164dec movq %rsp, %rdi callq 0x2c610 leaq 0x40(%rsp), %rdi movq %rsp, %rsi movl $0x3, %edx callq 0x6f158 leaq 0x1aa37d(%rip), %rdi # 0x214058 leaq 0x100(%rsp), %rsi leaq 0x40(%rsp), %rdx callq 0x6f1ca leaq 0x48(%rsp), %rdi callq 0x65eb4 movq (%rsp), %rdi cmpq %r15, %rdi je 0x69d0d movq 0x10(%rsp), %rsi incq %rsi callq 0x2d2d0 leaq 0x108(%rsp), %rdi callq 0x65eb4 leaq 0xc8(%rsp), %rdi callq 0x65eb4 leaq 0x68(%rsp), %rdi callq 0x65eb4 movq 0x20(%rsp), %rdi cmpq %r14, %rdi je 0x69d48 movq 0x30(%rsp), %rsi incq %rsi callq 0x2d2d0 leaq 0xa8(%rsp), %rdi callq 0x65eb4 leaq 0x88(%rsp), %rdi callq 0x65eb4 leaq 0xe8(%rsp), %rdi callq 0x65eb4 leaq -0x486c(%rip), %rdi # 0x6550a leaq 0x1aa2db(%rip), %rsi # 0x214058 leaq 0x1a75ac(%rip), %rdx # 0x211330 callq 0x2d030 leaq 0x1aa2e8(%rip), %rdi # 0x214078 callq 0x2cb40 jmp 0x69bd4 movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0x65eb4 jmp 0x69dac movq %rax, %rbx movq (%rsp), %rdi cmpq %r15, %rdi je 0x69dc7 movq 0x10(%rsp), %rsi incq %rsi callq 0x2d2d0 jmp 0x69dc7 movq %rax, %rbx leaq 0x108(%rsp), %rdi callq 0x65eb4 jmp 0x69dd9 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x65eb4 jmp 0x69deb movq %rax, %rbx leaq 0x68(%rsp), %rdi callq 0x65eb4 movq 0x20(%rsp), %rdi cmpq %r14, %rdi je 0x69e16 movq 0x30(%rsp), %rsi incq %rsi callq 0x2d2d0 jmp 0x69e16 movq %rax, %rbx jmp 0x69df5 movq %rax, %rbx leaq 0xa8(%rsp), %rdi callq 0x65eb4 leaq 0x88(%rsp), %rdi callq 0x65eb4 leaq 0xe8(%rsp), %rdi callq 0x65eb4 leaq 0x1aa234(%rip), %rdi # 0x214078 callq 0x2cb10 movq %rbx, %rdi callq 0x2e220 movq %rax, %rbx jmp 0x69e23 jmp 0x69e58 movq %rax, %rbx jmp 0x69e30 movq %rax, %rbx jmp 0x69e3d
_ZN4YAML3Exp15EndScalarInFlowEv: push r15 push r14 push rbx sub rsp, 120h mov al, cs:_ZGVZN4YAML3Exp15EndScalarInFlowEvE1e; `guard variable for'YAML::Exp::EndScalarInFlow(void)::e test al, al jz short loc_69BE8 loc_69BD4: lea rax, _ZZN4YAML3Exp15EndScalarInFlowEvE1e; YAML::Exp::EndScalarInFlow(void)::e add rsp, 120h pop rbx pop r14 pop r15 retn loc_69BE8: lea rdi, _ZGVZN4YAML3Exp15EndScalarInFlowEvE1e; __guard * call ___cxa_guard_acquire test eax, eax jz short loc_69BD4 lea rdi, [rsp+138h+var_58]; this mov esi, 3Ah ; ':'; char call _ZN4YAML5RegExC2Ec; YAML::RegEx::RegEx(char) call _ZN4YAML3Exp12BlankOrBreakEv; YAML::Exp::BlankOrBreak(void) mov rbx, rax lea rdi, [rsp+138h+var_B8]; this call _ZN4YAML5RegExC2Ev; YAML::RegEx::RegEx(void) lea rdi, [rsp+138h+var_98] lea rdx, [rsp+138h+var_B8] mov rsi, rbx call _ZN4YAMLorERKNS_5RegExES2_; YAML::operator|(YAML::RegEx const&,YAML::RegEx const&) lea r14, [rsp+138h+var_108] mov [r14-10h], r14 lea rsi, asc_164C0C; ",]}" lea rdx, asc_164C0C+3; "" lea rdi, [rsp+138h+var_118] 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+138h+var_D8] lea rsi, [rsp+138h+var_118] mov edx, 3 call _ZN4YAML5RegExC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8REGEX_OPE; YAML::RegEx::RegEx(std::string const&,YAML::REGEX_OP) lea rdi, [rsp+138h+var_78] lea rsi, [rsp+138h+var_98] lea rdx, [rsp+138h+var_D8] call _ZN4YAMLorERKNS_5RegExES2_; YAML::operator|(YAML::RegEx const&,YAML::RegEx const&) lea rdi, [rsp+138h+var_38] lea rsi, [rsp+138h+var_58] lea rdx, [rsp+138h+var_78] call _ZN4YAMLplERKNS_5RegExES2_; YAML::operator+(YAML::RegEx const&,YAML::RegEx const&) lea r15, [rsp+138h+var_128] mov [r15-10h], r15 lea rsi, asc_164DE6; ",?[]{}" lea rdx, asc_164DE6+6; "" 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+138h+var_F8] mov rsi, rsp mov edx, 3 call _ZN4YAML5RegExC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8REGEX_OPE; YAML::RegEx::RegEx(std::string const&,YAML::REGEX_OP) lea rdi, _ZZN4YAML3Exp15EndScalarInFlowEvE1e; YAML::Exp::EndScalarInFlow(void)::e lea rsi, [rsp+138h+var_38] lea rdx, [rsp+138h+var_F8] call _ZN4YAMLorERKNS_5RegExES2_; YAML::operator|(YAML::RegEx const&,YAML::RegEx const&) lea rdi, [rsp+138h+var_F0] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() mov rdi, [rsp+138h+var_138]; void * cmp rdi, r15 jz short loc_69D0D mov rsi, [rsp+138h+var_128] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_69D0D: lea rdi, [rsp+138h+var_30] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() lea rdi, [rsp+138h+var_70] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() lea rdi, [rsp+138h+var_D0] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() mov rdi, [rsp+138h+var_118]; void * cmp rdi, r14 jz short loc_69D48 mov rsi, [rsp+138h+var_108] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_69D48: lea rdi, [rsp+138h+var_90] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() lea rdi, [rsp+138h+var_B0] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() lea rdi, [rsp+138h+var_50] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() lea rdi, _ZN4YAML5RegExD2Ev; lpfunc lea rsi, _ZZN4YAML3Exp15EndScalarInFlowEvE1e; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN4YAML3Exp15EndScalarInFlowEvE1e; __guard * call ___cxa_guard_release jmp loc_69BD4 mov rbx, rax lea rdi, [rsp+arg_40] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() jmp short loc_69DAC mov rbx, rax loc_69DAC: mov rdi, [rsp+0]; void * cmp rdi, r15 jz short loc_69DC7 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_69DC7 mov rbx, rax loc_69DC7: lea rdi, [rsp+arg_100] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() jmp short loc_69DD9 mov rbx, rax loc_69DD9: lea rdi, [rsp+arg_C0] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() jmp short loc_69DEB mov rbx, rax loc_69DEB: lea rdi, [rsp+arg_60] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() loc_69DF5: mov rdi, [rsp+arg_18]; void * cmp rdi, r14 jz short loc_69E16 mov rsi, [rsp+arg_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_69E16 mov rbx, rax jmp short loc_69DF5 mov rbx, rax loc_69E16: lea rdi, [rsp+arg_A0] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() loc_69E23: lea rdi, [rsp+arg_80] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() loc_69E30: lea rdi, [rsp+arg_E0] call _ZNSt6vectorIN4YAML5RegExESaIS1_EED2Ev; std::vector<YAML::RegEx>::~vector() loc_69E3D: lea rdi, _ZGVZN4YAML3Exp15EndScalarInFlowEvE1e; __guard * call ___cxa_guard_abort mov rdi, rbx call __Unwind_Resume mov rbx, rax jmp short loc_69E23 jmp short $+2 loc_69E58: mov rbx, rax jmp short loc_69E30 mov rbx, rax jmp short loc_69E3D
void * YAML::Exp::EndScalarInFlow(YAML::Exp *this) { void *v2; // rbx void *v3[2]; // [rsp+0h] [rbp-138h] BYREF _QWORD v4[2]; // [rsp+10h] [rbp-128h] BYREF void *v5[2]; // [rsp+20h] [rbp-118h] BYREF _QWORD v6[2]; // [rsp+30h] [rbp-108h] BYREF _BYTE v7[8]; // [rsp+40h] [rbp-F8h] BYREF char *v8; // [rsp+48h] [rbp-F0h] BYREF _BYTE v9[8]; // [rsp+60h] [rbp-D8h] BYREF char *v10; // [rsp+68h] [rbp-D0h] BYREF _BYTE v11[8]; // [rsp+80h] [rbp-B8h] BYREF char *v12; // [rsp+88h] [rbp-B0h] BYREF _BYTE v13[8]; // [rsp+A0h] [rbp-98h] BYREF char *v14; // [rsp+A8h] [rbp-90h] BYREF _BYTE v15[8]; // [rsp+C0h] [rbp-78h] BYREF char *v16; // [rsp+C8h] [rbp-70h] BYREF _BYTE v17[8]; // [rsp+E0h] [rbp-58h] BYREF char *v18; // [rsp+E8h] [rbp-50h] BYREF _BYTE v19[8]; // [rsp+100h] [rbp-38h] BYREF char *v20; // [rsp+108h] [rbp-30h] BYREF if ( !(_BYTE)`guard variable for'YAML::Exp::EndScalarInFlow(void)::e && __cxa_guard_acquire(&`guard variable for'YAML::Exp::EndScalarInFlow(void)::e) ) { YAML::RegEx::RegEx((YAML::RegEx *)v17, 58); v2 = YAML::Exp::BlankOrBreak((YAML::Exp *)v17); YAML::RegEx::RegEx((YAML::RegEx *)v11); YAML::operator|(v13, v2, v11); v5[0] = v6; std::string::_M_construct<char const*>(v5, ",]}", ""); YAML::RegEx::RegEx(v9, v5, 3LL); YAML::operator|(v15, v13, v9); YAML::operator+(v19, v17, v15); v3[0] = v4; std::string::_M_construct<char const*>(v3, ",?[]{}", ""); YAML::RegEx::RegEx(v7, v3, 3LL); YAML::operator|(&YAML::Exp::EndScalarInFlow(void)::e, v19, v7); std::vector<YAML::RegEx>::~vector(&v8); if ( v3[0] != v4 ) operator delete(v3[0], v4[0] + 1LL); std::vector<YAML::RegEx>::~vector(&v20); std::vector<YAML::RegEx>::~vector(&v16); std::vector<YAML::RegEx>::~vector(&v10); if ( v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); std::vector<YAML::RegEx>::~vector(&v14); std::vector<YAML::RegEx>::~vector(&v12); std::vector<YAML::RegEx>::~vector(&v18); __cxa_atexit((void (*)(void *))YAML::RegEx::~RegEx, &YAML::Exp::EndScalarInFlow(void)::e, &_dso_handle); __cxa_guard_release(&`guard variable for'YAML::Exp::EndScalarInFlow(void)::e); } return &YAML::Exp::EndScalarInFlow(void)::e; }
EndScalarInFlow: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x120 MOV AL,byte ptr [0x00314078] TEST AL,AL JZ 0x00169be8 LAB_00169bd4: LEA RAX,[0x314058] ADD RSP,0x120 POP RBX POP R14 POP R15 RET LAB_00169be8: LEA RDI,[0x314078] CALL 0x0012e2e0 TEST EAX,EAX JZ 0x00169bd4 LAB_00169bf8: LEA RDI,[RSP + 0xe0] MOV ESI,0x3a CALL 0x0016f11c LAB_00169c0a: CALL 0x00165be7 LAB_00169c0f: MOV RBX,RAX LEA RDI,[RSP + 0x80] CALL 0x0016f100 LAB_00169c1f: LEA RDI,[RSP + 0xa0] LEA RDX,[RSP + 0x80] MOV RSI,RBX CALL 0x0016f1ca LEA R14,[RSP + 0x30] MOV qword ptr [R14 + -0x10],R14 LAB_00169c40: LEA RSI,[0x264c0c] LEA RDX,[0x264c0f] LEA RDI,[RSP + 0x20] CALL 0x0012c610 LAB_00169c58: LEA RDI,[RSP + 0x60] LEA RSI,[RSP + 0x20] MOV EDX,0x3 CALL 0x0016f158 LAB_00169c6c: LEA RDI,[RSP + 0xc0] LEA RSI,[RSP + 0xa0] LEA RDX,[RSP + 0x60] CALL 0x0016f1ca LAB_00169c86: LEA RDI,[RSP + 0x100] LEA RSI,[RSP + 0xe0] LEA RDX,[RSP + 0xc0] CALL 0x0016f27c LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 LAB_00169cac: LEA RSI,[0x264de6] LEA RDX,[0x264dec] MOV RDI,RSP CALL 0x0012c610 LAB_00169cc2: LEA RDI,[RSP + 0x40] MOV RSI,RSP MOV EDX,0x3 CALL 0x0016f158 LAB_00169cd4: LEA RDI,[0x314058] LEA RSI,[RSP + 0x100] LEA RDX,[RSP + 0x40] CALL 0x0016f1ca LAB_00169ced: LEA RDI,[RSP + 0x48] CALL 0x00165eb4 MOV RDI,qword ptr [RSP] CMP RDI,R15 JZ 0x00169d0d MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0012d2d0 LAB_00169d0d: LEA RDI,[RSP + 0x108] CALL 0x00165eb4 LEA RDI,[RSP + 0xc8] CALL 0x00165eb4 LEA RDI,[RSP + 0x68] CALL 0x00165eb4 MOV RDI,qword ptr [RSP + 0x20] CMP RDI,R14 JZ 0x00169d48 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0012d2d0 LAB_00169d48: LEA RDI,[RSP + 0xa8] CALL 0x00165eb4 LEA RDI,[RSP + 0x88] CALL 0x00165eb4 LEA RDI,[RSP + 0xe8] CALL 0x00165eb4 LEA RDI,[0x16550a] LEA RSI,[0x314058] LEA RDX,[0x311330] CALL 0x0012d030 LEA RDI,[0x314078] CALL 0x0012cb40 JMP 0x00169bd4
/* YAML::Exp::EndScalarInFlow() */ int1 * YAML::Exp::EndScalarInFlow(void) { int iVar1; RegEx *pRVar2; long *local_138 [2]; long local_128 [2]; long *local_118 [2]; long local_108 [2]; RegEx local_f8 [8]; vector<YAML::RegEx,std::allocator<YAML::RegEx>> local_f0 [24]; RegEx local_d8 [8]; vector<YAML::RegEx,std::allocator<YAML::RegEx>> local_d0 [24]; RegEx local_b8 [8]; vector<YAML::RegEx,std::allocator<YAML::RegEx>> local_b0 [24]; YAML local_98 [8]; vector<YAML::RegEx,std::allocator<YAML::RegEx>> local_90 [24]; YAML local_78 [8]; vector<YAML::RegEx,std::allocator<YAML::RegEx>> local_70 [24]; RegEx local_58 [8]; vector<YAML::RegEx,std::allocator<YAML::RegEx>> local_50 [24]; YAML local_38 [8]; vector<YAML::RegEx,std::allocator<YAML::RegEx>> local_30 [24]; if (EndScalarInFlow()::e == '\0') { iVar1 = __cxa_guard_acquire(&EndScalarInFlow()::e); if (iVar1 != 0) { /* try { // try from 00169bf8 to 00169c09 has its CatchHandler @ 00169e5d */ RegEx::RegEx(local_58,':'); /* try { // try from 00169c0a to 00169c0e has its CatchHandler @ 00169e58 */ pRVar2 = (RegEx *)BlankOrBreak(); /* try { // try from 00169c0f to 00169c1e has its CatchHandler @ 00169e56 */ RegEx::RegEx(local_b8); /* try { // try from 00169c1f to 00169c36 has its CatchHandler @ 00169e51 */ operator|(local_98,pRVar2,local_b8); /* try { // try from 00169c40 to 00169c57 has its CatchHandler @ 00169e13 */ local_118[0] = local_108; std::__cxx11::string::_M_construct<char_const*>(local_118,&DAT_00264c0c,&DAT_00264c0f); /* try { // try from 00169c58 to 00169c6b has its CatchHandler @ 00169e0e */ RegEx::RegEx(local_d8,local_118,3); /* try { // try from 00169c6c to 00169c85 has its CatchHandler @ 00169de8 */ operator|(local_78,(RegEx *)local_98,local_d8); /* try { // try from 00169c86 to 00169ca2 has its CatchHandler @ 00169dd6 */ operator+(local_38,local_58,(RegEx *)local_78); local_138[0] = local_128; /* try { // try from 00169cac to 00169cc1 has its CatchHandler @ 00169dc4 */ std::__cxx11::string::_M_construct<char_const*>(local_138,&DAT_00264de6,&DAT_00264dec); /* try { // try from 00169cc2 to 00169cd3 has its CatchHandler @ 00169da9 */ RegEx::RegEx(local_f8,local_138,3); /* try { // try from 00169cd4 to 00169cec has its CatchHandler @ 00169d9a */ operator|((YAML *)EndScalarInFlow()::e,(RegEx *)local_38,local_f8); std::vector<YAML::RegEx,std::allocator<YAML::RegEx>>::~vector(local_f0); if (local_138[0] != local_128) { operator_delete(local_138[0],local_128[0] + 1); } std::vector<YAML::RegEx,std::allocator<YAML::RegEx>>::~vector(local_30); std::vector<YAML::RegEx,std::allocator<YAML::RegEx>>::~vector(local_70); std::vector<YAML::RegEx,std::allocator<YAML::RegEx>>::~vector(local_d0); if (local_118[0] != local_108) { operator_delete(local_118[0],local_108[0] + 1); } std::vector<YAML::RegEx,std::allocator<YAML::RegEx>>::~vector(local_90); std::vector<YAML::RegEx,std::allocator<YAML::RegEx>>::~vector(local_b0); std::vector<YAML::RegEx,std::allocator<YAML::RegEx>>::~vector(local_50); __cxa_atexit(RegEx::~RegEx,EndScalarInFlow()::e,&__dso_handle); __cxa_guard_release(&EndScalarInFlow()::e); } } return EndScalarInFlow()::e; }
2,156
OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(OpenSubdiv::v3_6_0::Far::PatchTable::PatchHandle const&) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp
float PatchTable::GetSingleCreasePatchSharpnessValue(PatchHandle const & handle) const { assert((handle.patchIndex) < (int)_sharpnessIndices.size()); Index index = _sharpnessIndices[handle.patchIndex]; if (index == Vtr::INDEX_INVALID) { return 0.0f; } assert(index < (Index)_sharpnessValues.size()); return _sharpnessValues[index]; }
O0
cpp
OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(OpenSubdiv::v3_6_0::Far::PatchTable::PatchHandle const&) const: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x28(%rbp) movq -0x18(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0x20(%rbp) addq $0xe0, %rdi callq 0xd7ae0 movq %rax, %rcx movl -0x20(%rbp), %eax cmpl %ecx, %eax jge 0x13fb8a jmp 0x13fba9 leaq 0xb0f60(%rip), %rdi # 0x1f0af1 leaq 0xb0c51(%rip), %rsi # 0x1f07e9 movl $0x146, %edx # imm = 0x146 leaq 0xb0f81(%rip), %rcx # 0x1f0b25 callq 0xc9440 movq -0x28(%rbp), %rdi addq $0xe0, %rdi movq -0x18(%rbp), %rax movslq 0x4(%rax), %rsi callq 0xd09b0 movl (%rax), %eax movl %eax, -0x1c(%rbp) cmpl $-0x1, -0x1c(%rbp) jne 0x13fbd6 xorps %xmm0, %xmm0 movss %xmm0, -0x4(%rbp) jmp 0x13fc34 movq -0x28(%rbp), %rdi movl -0x1c(%rbp), %eax movl %eax, -0x2c(%rbp) addq $0xf8, %rdi callq 0xd6570 movq %rax, %rcx movl -0x2c(%rbp), %eax cmpl %ecx, %eax jge 0x13fbf8 jmp 0x13fc17 leaq 0xb0f8f(%rip), %rdi # 0x1f0b8e leaq 0xb0be3(%rip), %rsi # 0x1f07e9 movl $0x14b, %edx # imm = 0x14B leaq 0xb0f13(%rip), %rcx # 0x1f0b25 callq 0xc9440 movq -0x28(%rbp), %rdi addq $0xf8, %rdi movslq -0x1c(%rbp), %rsi callq 0xd1480 movss (%rax), %xmm0 movss %xmm0, -0x4(%rbp) movss -0x4(%rbp), %xmm0 addq $0x30, %rsp popq %rbp retq nop
_ZNK10OpenSubdiv6v3_6_03Far10PatchTable34GetSingleCreasePatchSharpnessValueERKNS2_11PatchHandleE: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10] mov [rbp+var_28], rdi mov rax, [rbp+var_18] mov eax, [rax+4] mov [rbp+var_20], eax add rdi, 0E0h call __ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void) mov rcx, rax mov eax, [rbp+var_20] cmp eax, ecx jge short loc_13FB8A jmp short loc_13FBA9 loc_13FB8A: lea rdi, aHandlePatchind_0; "(handle.patchIndex) < (int)_sharpnessIn"... lea rsi, aWorkspaceLlm4b_15; "/workspace/llm4binary/github/2025_star3"... mov edx, 146h lea rcx, aFloatOpensubdi; "float OpenSubdiv::v3_6_0::Far::PatchTab"... call ___assert_fail loc_13FBA9: mov rdi, [rbp+var_28] add rdi, 0E0h mov rax, [rbp+var_18] movsxd rsi, dword ptr [rax+4] call __ZNKSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong) mov eax, [rax] mov [rbp+var_1C], eax cmp [rbp+var_1C], 0FFFFFFFFh jnz short loc_13FBD6 xorps xmm0, xmm0 movss [rbp+var_4], xmm0 jmp short loc_13FC34 loc_13FBD6: mov rdi, [rbp+var_28] mov eax, [rbp+var_1C] mov [rbp+var_2C], eax add rdi, 0F8h call __ZNKSt6vectorIfSaIfEE4sizeEv; std::vector<float>::size(void) mov rcx, rax mov eax, [rbp+var_2C] cmp eax, ecx jge short loc_13FBF8 jmp short loc_13FC17 loc_13FBF8: lea rdi, aIndexIndexShar; "index < (Index)_sharpnessValues.size()" lea rsi, aWorkspaceLlm4b_15; "/workspace/llm4binary/github/2025_star3"... mov edx, 14Bh lea rcx, aFloatOpensubdi; "float OpenSubdiv::v3_6_0::Far::PatchTab"... call ___assert_fail loc_13FC17: mov rdi, [rbp+var_28] add rdi, 0F8h movsxd rsi, [rbp+var_1C] call __ZNKSt6vectorIfSaIfEEixEm; std::vector<float>::operator[](ulong) movss xmm0, dword ptr [rax] movss [rbp+var_4], xmm0 loc_13FC34: movss xmm0, [rbp+var_4] add rsp, 30h pop rbp retn
float OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(long long a1, long long a2) { int v3; // [rsp+10h] [rbp-20h] int v4; // [rsp+14h] [rbp-1Ch] v3 = *(_DWORD *)(a2 + 4); if ( v3 >= (int)std::vector<int>::size(a1 + 224) ) __assert_fail( "(handle.patchIndex) < (int)_sharpnessIndices.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 326LL, "float OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(const PatchHandle &) const"); v4 = *(_DWORD *)std::vector<int>::operator[](a1 + 224, *(int *)(a2 + 4)); if ( v4 == -1 ) return 0.0; if ( v4 >= (int)std::vector<float>::size(a1 + 248) ) __assert_fail( "index < (Index)_sharpnessValues.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 331LL, "float OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(const PatchHandle &) const"); return *(float *)std::vector<float>::operator[](a1 + 248, v4); }
2,157
OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(OpenSubdiv::v3_6_0::Far::PatchTable::PatchHandle const&) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp
float PatchTable::GetSingleCreasePatchSharpnessValue(PatchHandle const & handle) const { assert((handle.patchIndex) < (int)_sharpnessIndices.size()); Index index = _sharpnessIndices[handle.patchIndex]; if (index == Vtr::INDEX_INVALID) { return 0.0f; } assert(index < (Index)_sharpnessValues.size()); return _sharpnessValues[index]; }
O2
cpp
OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(OpenSubdiv::v3_6_0::Far::PatchTable::PatchHandle const&) const: pushq %rax movslq 0x4(%rsi), %rax movq 0xe0(%rdi), %rcx movq 0xe8(%rdi), %rdx subq %rcx, %rdx shrq $0x2, %rdx cmpl %edx, %eax jge 0x7c205 movslq (%rcx,%rax,4), %rax cmpq $-0x1, %rax je 0x7c200 movq 0xf8(%rdi), %rcx movq 0x100(%rdi), %rdx subq %rcx, %rdx shrq $0x2, %rdx cmpl %edx, %eax jge 0x7c224 movss (%rcx,%rax,4), %xmm0 jmp 0x7c203 xorps %xmm0, %xmm0 popq %rax retq leaq 0x46eb6(%rip), %rdi # 0xc30c2 leaq 0x46ba7(%rip), %rsi # 0xc2dba leaq 0x46edc(%rip), %rcx # 0xc30f6 movl $0x146, %edx # imm = 0x146 callq 0x512a0 leaq 0x46f34(%rip), %rdi # 0xc315f leaq 0x46b88(%rip), %rsi # 0xc2dba leaq 0x46ebd(%rip), %rcx # 0xc30f6 movl $0x14b, %edx # imm = 0x14B callq 0x512a0 nop
_ZNK10OpenSubdiv6v3_6_03Far10PatchTable34GetSingleCreasePatchSharpnessValueERKNS2_11PatchHandleE: push rax movsxd rax, dword ptr [rsi+4] mov rcx, [rdi+0E0h] mov rdx, [rdi+0E8h] sub rdx, rcx shr rdx, 2 cmp eax, edx jge short loc_7C205 movsxd rax, dword ptr [rcx+rax*4] cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_7C200 mov rcx, [rdi+0F8h] mov rdx, [rdi+100h] sub rdx, rcx shr rdx, 2 cmp eax, edx jge short loc_7C224 movss xmm0, dword ptr [rcx+rax*4] jmp short loc_7C203 loc_7C200: xorps xmm0, xmm0 loc_7C203: pop rax retn loc_7C205: lea rdi, aHandlePatchind_0; "(handle.patchIndex) < (int)_sharpnessIn"... lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"... lea rcx, aFloatOpensubdi; "float OpenSubdiv::v3_6_0::Far::PatchTab"... mov edx, 146h call ___assert_fail loc_7C224: lea rdi, aIndexIndexShar; "index < (Index)_sharpnessValues.size()" lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"... lea rcx, aFloatOpensubdi; "float OpenSubdiv::v3_6_0::Far::PatchTab"... mov edx, 14Bh call ___assert_fail
double __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue( _QWORD *a1, long long a2) { long long v2; // rax long long v3; // rcx long long v4; // rax long long v5; // rcx double result; // xmm0_8 v2 = *(int *)(a2 + 4); v3 = a1[28]; if ( (int)v2 >= (int)((unsigned long long)(a1[29] - v3) >> 2) ) __assert_fail( "(handle.patchIndex) < (int)_sharpnessIndices.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 326LL, "float OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(const PatchHandle &) const"); v4 = *(int *)(v3 + 4 * v2); if ( v4 == -1 ) return 0.0; v5 = a1[31]; if ( (int)v4 >= (int)((unsigned long long)(a1[32] - v5) >> 2) ) __assert_fail( "index < (Index)_sharpnessValues.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 331LL, "float OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(const PatchHandle &) const"); *(_QWORD *)&result = *(unsigned int *)(v5 + 4 * v4); return result; }
GetSingleCreasePatchSharpnessValue: PUSH RAX MOVSXD RAX,dword ptr [RSI + 0x4] MOV RCX,qword ptr [RDI + 0xe0] MOV RDX,qword ptr [RDI + 0xe8] SUB RDX,RCX SHR RDX,0x2 CMP EAX,EDX JGE 0x0017c205 MOVSXD RAX,dword ptr [RCX + RAX*0x4] CMP RAX,-0x1 JZ 0x0017c200 MOV RCX,qword ptr [RDI + 0xf8] MOV RDX,qword ptr [RDI + 0x100] SUB RDX,RCX SHR RDX,0x2 CMP EAX,EDX JGE 0x0017c224 MOVSS XMM0,dword ptr [RCX + RAX*0x4] JMP 0x0017c203 LAB_0017c200: XORPS XMM0,XMM0 LAB_0017c203: POP RAX RET LAB_0017c205: LEA RDI,[0x1c30c2] LEA RSI,[0x1c2dba] LEA RCX,[0x1c30f6] MOV EDX,0x146 CALL 0x001512a0 LAB_0017c224: LEA RDI,[0x1c315f] LEA RSI,[0x1c2dba] LEA RCX,[0x1c30f6] MOV EDX,0x14b CALL 0x001512a0
/* OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(OpenSubdiv::v3_6_0::Far::PatchTable::PatchHandle const&) const */ int8 __thiscall OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue (PatchTable *this,PatchHandle *param_1) { int iVar1; int8 in_RAX; if ((int)((ulong)(*(long *)(this + 0xe8) - *(long *)(this + 0xe0)) >> 2) <= *(int *)(param_1 + 4)) { /* WARNING: Subroutine does not return */ __assert_fail("(handle.patchIndex) < (int)_sharpnessIndices.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp" ,0x146, "float OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(const PatchHandle &) const" ); } iVar1 = *(int *)(*(long *)(this + 0xe0) + (long)*(int *)(param_1 + 4) * 4); if ((iVar1 != -1) && ((int)((ulong)(*(long *)(this + 0x100) - *(long *)(this + 0xf8)) >> 2) <= iVar1)) { /* WARNING: Subroutine does not return */ __assert_fail("index < (Index)_sharpnessValues.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp" ,0x14b, "float OpenSubdiv::v3_6_0::Far::PatchTable::GetSingleCreasePatchSharpnessValue(const PatchHandle &) const" ); } return in_RAX; }
2,158
mysql_once_init
eloqsql/libmariadb/libmariadb/mariadb_lib.c
static int mysql_once_init() #else static void mysql_once_init() #endif { ma_init(); /* Will init threads */ init_client_errs(); get_default_configuration_dirs(); set_default_charset_by_name(MARIADB_DEFAULT_CHARSET, 0); if (mysql_client_plugin_init()) { #ifdef _WIN32 return 1; #else return; #endif } if (!mysql_port) { #if !__has_feature(memory_sanitizer) /* work around MSAN deficiency */ struct servent *serv_ptr; #endif char *env; mysql_port = MARIADB_PORT; #if !__has_feature(memory_sanitizer) /* work around MSAN deficiency */ if ((serv_ptr = getservbyname("mysql", "tcp"))) mysql_port = (uint)ntohs((ushort)serv_ptr->s_port); #endif if ((env = getenv("MYSQL_TCP_PORT"))) mysql_port =(uint)atoi(env); } if (!mysql_unix_port) { char *env; #ifdef _WIN32 mysql_unix_port = (char*)MARIADB_NAMEDPIPE; #else mysql_unix_port = (char*)MARIADB_UNIX_ADDR; #endif if ((env = getenv("MYSQL_UNIX_PORT")) || (env = getenv("MARIADB_UNIX_PORT"))) mysql_unix_port = env; }
O3
c
mysql_once_init: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax callq 0x212ac callq 0x35520 xorl %eax, %eax callq 0x34ca6 leaq 0x1954f(%rip), %rdi # 0x3935d xorl %esi, %esi callq 0x34c3a xorl %eax, %eax callq 0x2a2bc testl %eax, %eax jne 0x1fee2 leaq 0x2e375(%rip), %rbx # 0x4e1a0 cmpl $0x0, (%rbx) jne 0x1fe76 movl $0xcea, (%rbx) # imm = 0xCEA leaq 0x1bc51(%rip), %rdi # 0x3ba8e leaq 0x19704(%rip), %rsi # 0x39548 callq 0x13080 testq %rax, %rax je 0x1fe5b movzwl 0x10(%rax), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, (%rbx) leaq 0x196ea(%rip), %rdi # 0x3954c callq 0x13590 testq %rax, %rax je 0x1fe76 movq %rax, %rdi callq 0x136f0 movl %eax, (%rbx) leaq 0x2e32b(%rip), %rbx # 0x4e1a8 cmpq $0x0, (%rbx) jne 0x1feb2 leaq 0x196d1(%rip), %rax # 0x3955b movq %rax, (%rbx) leaq 0x196d7(%rip), %rdi # 0x3956b callq 0x13590 testq %rax, %rax jne 0x1feaf leaq 0x196d6(%rip), %rdi # 0x3957b callq 0x13590 testq %rax, %rax je 0x1feb2 movq %rax, (%rbx) leaq 0x2e317(%rip), %rax # 0x4e1d0 cmpb $0x0, (%rax) jne 0x1fec3 callq 0x26666 xorl %edi, %edi xorl %esi, %esi callq 0x2ad8c movl $0x1, %esi movl $0xd, %edi callq 0x13560 movb $0x1, 0x2e2d2(%rip) # 0x4e1b4 addq $0x8, %rsp popq %rbx popq %rbp retq nopl (%rax)
mysql_once_init: push rbp mov rbp, rsp push rbx push rax call ma_init call init_client_errs xor eax, eax call get_default_configuration_dirs lea rdi, aUtf8mb4; "utf8mb4" xor esi, esi call set_default_charset_by_name xor eax, eax call mysql_client_plugin_init test eax, eax jnz loc_1FEE2 lea rbx, mysql_port cmp dword ptr [rbx], 0 jnz short loc_1FE76 mov dword ptr [rbx], 0CEAh lea rdi, aEtcMysql+5; "mysql" lea rsi, aTcp; "tcp" call _getservbyname test rax, rax jz short loc_1FE5B movzx eax, word ptr [rax+10h] rol ax, 8 movzx eax, ax mov [rbx], eax loc_1FE5B: lea rdi, aMysqlTcpPort; "MYSQL_TCP_PORT" call _getenv test rax, rax jz short loc_1FE76 mov rdi, rax call _atoi mov [rbx], eax loc_1FE76: lea rbx, mysql_unix_port cmp qword ptr [rbx], 0 jnz short loc_1FEB2 lea rax, aTmpMysqlSock; "/tmp/mysql.sock" mov [rbx], rax lea rdi, aMysqlUnixPort; "MYSQL_UNIX_PORT" call _getenv test rax, rax jnz short loc_1FEAF lea rdi, aMariadbUnixPor; "MARIADB_UNIX_PORT" call _getenv test rax, rax jz short loc_1FEB2 loc_1FEAF: mov [rbx], rax loc_1FEB2: lea rax, mysql_ps_subsystem_initialized cmp byte ptr [rax], 0 jnz short loc_1FEC3 call mysql_init_ps_subsystem loc_1FEC3: xor edi, edi xor esi, esi call ma_tls_start mov esi, 1 mov edi, 0Dh call _signal mov cs:mysql_client_init, 1 loc_1FEE2: add rsp, 8 pop rbx pop rbp retn
long long mysql_once_init(long long a1) { long long result; // rax long long v2; // rax long long v3; // rax long long v4; // rax ma_init(a1); init_client_errs(); get_default_configuration_dirs(); set_default_charset_by_name("utf8mb4", 0LL); result = mysql_client_plugin_init(); if ( !(_DWORD)result ) { if ( !mysql_port ) { mysql_port = 3306; v2 = getservbyname("mysql", "tcp"); if ( v2 ) mysql_port = (unsigned __int16)__ROL2__(*(_WORD *)(v2 + 16), 8); v3 = getenv("MYSQL_TCP_PORT"); if ( v3 ) mysql_port = atoi(v3); } if ( !mysql_unix_port ) { mysql_unix_port = "/tmp/mysql.sock"; v4 = getenv("MYSQL_UNIX_PORT"); if ( v4 || (v4 = getenv("MARIADB_UNIX_PORT")) != 0 ) mysql_unix_port = v4; } if ( !mysql_ps_subsystem_initialized ) mysql_init_ps_subsystem(); ma_tls_start(0LL, 0LL); result = signal(13LL, 1LL); mysql_client_init = 1; } return result; }
mysql_once_init: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX CALL 0x001212ac CALL 0x00135520 XOR EAX,EAX CALL 0x00134ca6 LEA RDI,[0x13935d] XOR ESI,ESI CALL 0x00134c3a XOR EAX,EAX CALL 0x0012a2bc TEST EAX,EAX JNZ 0x0011fee2 LEA RBX,[0x14e1a0] CMP dword ptr [RBX],0x0 JNZ 0x0011fe76 MOV dword ptr [RBX],0xcea LEA RDI,[0x13ba8e] LEA RSI,[0x139548] CALL 0x00113080 TEST RAX,RAX JZ 0x0011fe5b MOVZX EAX,word ptr [RAX + 0x10] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RBX],EAX LAB_0011fe5b: LEA RDI,[0x13954c] CALL 0x00113590 TEST RAX,RAX JZ 0x0011fe76 MOV RDI,RAX CALL 0x001136f0 MOV dword ptr [RBX],EAX LAB_0011fe76: LEA RBX,[0x14e1a8] CMP qword ptr [RBX],0x0 JNZ 0x0011feb2 LEA RAX,[0x13955b] MOV qword ptr [RBX],RAX LEA RDI,[0x13956b] CALL 0x00113590 TEST RAX,RAX JNZ 0x0011feaf LEA RDI,[0x13957b] CALL 0x00113590 TEST RAX,RAX JZ 0x0011feb2 LAB_0011feaf: MOV qword ptr [RBX],RAX LAB_0011feb2: LEA RAX,[0x14e1d0] CMP byte ptr [RAX],0x0 JNZ 0x0011fec3 CALL 0x00126666 LAB_0011fec3: XOR EDI,EDI XOR ESI,ESI CALL 0x0012ad8c MOV ESI,0x1 MOV EDI,0xd CALL 0x00113560 MOV byte ptr [0x0014e1b4],0x1 LAB_0011fee2: ADD RSP,0x8 POP RBX POP RBP RET
void mysql_once_init(void) { ushort uVar1; int iVar2; servent *psVar3; char *pcVar4; ma_init(); init_client_errs(); get_default_configuration_dirs(); set_default_charset_by_name("utf8mb4",0); iVar2 = mysql_client_plugin_init(); if (iVar2 == 0) { if (mysql_port == 0) { mysql_port = 0xcea; psVar3 = getservbyname("mysql","tcp"); if (psVar3 != (servent *)0x0) { uVar1 = (ushort)psVar3->s_port; mysql_port = (uint)(ushort)(uVar1 << 8 | uVar1 >> 8); } pcVar4 = getenv("MYSQL_TCP_PORT"); if (pcVar4 != (char *)0x0) { mysql_port = atoi(pcVar4); } } if (mysql_unix_port == (char *)0x0) { mysql_unix_port = "/tmp/mysql.sock"; pcVar4 = getenv("MYSQL_UNIX_PORT"); if ((pcVar4 != (char *)0x0) || (pcVar4 = getenv("MARIADB_UNIX_PORT"), pcVar4 != (char *)0x0)) { mysql_unix_port = pcVar4; } } if (mysql_ps_subsystem_initialized == '\0') { mysql_init_ps_subsystem(); } ma_tls_start(0,0); signal(0xd,(__sighandler_t)0x1); mysql_client_init = 1; return; } return; }
2,159
lshift
eloqsql/strings/dtoa.c
static Bigint *lshift(Bigint *b, int k, Stack_alloc *alloc) { int i, k1, n, n1; Bigint *b1; ULong *x, *x1, *xe, z; n= k >> 5; k1= b->k; n1= n + b->wds + 1; for (i= b->maxwds; n1 > i; i<<= 1) k1++; b1= Balloc(k1, alloc); x1= b1->p.x; for (i= 0; i < n; i++) *x1++= 0; x= b->p.x; xe= x + b->wds; if (k&= 0x1f) { k1= 32 - k; z= 0; do { *x1++= *x << k | z; z= *x++ >> k1; } while (x < xe); if ((*x1= z)) ++n1; } else do *x1++= *x++; while (x < xe); b1->wds= n1 - 1; Bfree(b, alloc); return b1; }
O0
c
lshift: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movl -0xc(%rbp), %eax sarl $0x5, %eax movl %eax, -0x24(%rbp) movq -0x8(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x20(%rbp) movl -0x24(%rbp), %eax movq -0x8(%rbp), %rcx addl 0x14(%rcx), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) movq -0x8(%rbp), %rax movl 0xc(%rax), %eax movl %eax, -0x1c(%rbp) movl -0x28(%rbp), %eax cmpl -0x1c(%rbp), %eax jle 0x825fb movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) movl -0x1c(%rbp), %eax shll %eax movl %eax, -0x1c(%rbp) jmp 0x825e0 movl -0x20(%rbp), %edi movq -0x18(%rbp), %rsi callq 0x81e70 movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) movl $0x0, -0x1c(%rbp) movl -0x1c(%rbp), %eax cmpl -0x24(%rbp), %eax jge 0x82645 movq -0x40(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x40(%rbp) movl $0x0, (%rax) movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) jmp 0x8261d movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq -0x8(%rbp), %rcx movslq 0x14(%rcx), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x48(%rbp) movl -0xc(%rbp), %eax andl $0x1f, %eax movl %eax, -0xc(%rbp) cmpl $0x0, %eax je 0x826e4 movl $0x20, %eax subl -0xc(%rbp), %eax movl %eax, -0x20(%rbp) movl $0x0, -0x4c(%rbp) movq -0x38(%rbp), %rax movl (%rax), %eax movl -0xc(%rbp), %ecx shll %cl, %eax movl %eax, %ecx orl -0x4c(%rbp), %ecx movq -0x40(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x40(%rbp) movl %ecx, (%rax) movq -0x38(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x38(%rbp) movl (%rax), %eax movl -0x20(%rbp), %ecx shrl %cl, %eax movl %eax, -0x4c(%rbp) movq -0x38(%rbp), %rax cmpq -0x48(%rbp), %rax jb 0x82687 movl -0x4c(%rbp), %eax movq -0x40(%rbp), %rcx movl %eax, (%rcx) cmpl $0x0, %eax je 0x826e2 movl -0x28(%rbp), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x82714 jmp 0x826e6 movq -0x38(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x38(%rbp) movl (%rax), %ecx movq -0x40(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x40(%rbp) movl %ecx, (%rax) movq -0x38(%rbp), %rax cmpq -0x48(%rbp), %rax jb 0x826e6 jmp 0x82714 movl -0x28(%rbp), %ecx subl $0x1, %ecx movq -0x30(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x82520 movq -0x30(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
lshift: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov eax, [rbp+var_C] sar eax, 5 mov [rbp+var_24], eax mov rax, [rbp+var_8] mov eax, [rax+8] mov [rbp+var_20], eax mov eax, [rbp+var_24] mov rcx, [rbp+var_8] add eax, [rcx+14h] add eax, 1 mov [rbp+var_28], eax mov rax, [rbp+var_8] mov eax, [rax+0Ch] mov [rbp+var_1C], eax loc_825E0: mov eax, [rbp+var_28] cmp eax, [rbp+var_1C] jle short loc_825FB mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax mov eax, [rbp+var_1C] shl eax, 1 mov [rbp+var_1C], eax jmp short loc_825E0 loc_825FB: mov edi, [rbp+var_20] mov rsi, [rbp+var_18] call Balloc mov [rbp+var_30], rax mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_40], rax mov [rbp+var_1C], 0 loc_8261D: mov eax, [rbp+var_1C] cmp eax, [rbp+var_24] jge short loc_82645 mov rax, [rbp+var_40] mov rcx, rax add rcx, 4 mov [rbp+var_40], rcx mov dword ptr [rax], 0 mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_1C], eax jmp short loc_8261D loc_82645: mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov rcx, [rbp+var_8] movsxd rcx, dword ptr [rcx+14h] shl rcx, 2 add rax, rcx mov [rbp+var_48], rax mov eax, [rbp+var_C] and eax, 1Fh mov [rbp+var_C], eax cmp eax, 0 jz short loc_826E4 mov eax, 20h ; ' ' sub eax, [rbp+var_C] mov [rbp+var_20], eax mov [rbp+var_4C], 0 loc_82687: mov rax, [rbp+var_38] mov eax, [rax] mov ecx, [rbp+var_C] shl eax, cl mov ecx, eax or ecx, [rbp+var_4C] mov rax, [rbp+var_40] mov rdx, rax add rdx, 4 mov [rbp+var_40], rdx mov [rax], ecx mov rax, [rbp+var_38] mov rcx, rax add rcx, 4 mov [rbp+var_38], rcx mov eax, [rax] mov ecx, [rbp+var_20] shr eax, cl mov [rbp+var_4C], eax mov rax, [rbp+var_38] cmp rax, [rbp+var_48] jb short loc_82687 mov eax, [rbp+var_4C] mov rcx, [rbp+var_40] mov [rcx], eax cmp eax, 0 jz short loc_826E2 mov eax, [rbp+var_28] add eax, 1 mov [rbp+var_28], eax loc_826E2: jmp short loc_82714 loc_826E4: jmp short $+2 loc_826E6: mov rax, [rbp+var_38] mov rcx, rax add rcx, 4 mov [rbp+var_38], rcx mov ecx, [rax] mov rax, [rbp+var_40] mov rdx, rax add rdx, 4 mov [rbp+var_40], rdx mov [rax], ecx mov rax, [rbp+var_38] cmp rax, [rbp+var_48] jb short loc_826E6 jmp short $+2 loc_82714: mov ecx, [rbp+var_28] sub ecx, 1 mov rax, [rbp+var_30] mov [rax+14h], ecx mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] call Bfree mov rax, [rbp+var_30] add rsp, 50h pop rbp retn
long long lshift(unsigned long long a1, int a2, unsigned long long *a3) { int *v3; // rax int *v4; // rax int *v5; // rax int *v6; // rax int v7; // ecx int *v8; // rax int v10; // [rsp+4h] [rbp-4Ch] unsigned long long v11; // [rsp+8h] [rbp-48h] int *v12; // [rsp+10h] [rbp-40h] int *v13; // [rsp+18h] [rbp-38h] long long v14; // [rsp+20h] [rbp-30h] int v15; // [rsp+28h] [rbp-28h] int v16; // [rsp+30h] [rbp-20h] int i; // [rsp+34h] [rbp-1Ch] int j; // [rsp+34h] [rbp-1Ch] char v20; // [rsp+44h] [rbp-Ch] v16 = *(_DWORD *)(a1 + 8); v15 = *(_DWORD *)(a1 + 20) + (a2 >> 5) + 1; for ( i = *(_DWORD *)(a1 + 12); v15 > i; i *= 2 ) ++v16; v14 = Balloc(v16, (long long)a3); v12 = *(int **)v14; for ( j = 0; j < a2 >> 5; ++j ) { v3 = v12++; *v3 = 0; } v13 = *(int **)a1; v11 = 4LL * *(int *)(a1 + 20) + *(_QWORD *)a1; v20 = a2 & 0x1F; if ( (a2 & 0x1F) != 0 ) { v10 = 0; do { v4 = v12++; *v4 = v10 | (*v13 << v20); v5 = v13++; v10 = (unsigned int)*v5 >> (32 - v20); } while ( (unsigned long long)v13 < v11 ); *v12 = v10; if ( v10 ) ++v15; } else { do { v6 = v13++; v7 = *v6; v8 = v12++; *v8 = v7; } while ( (unsigned long long)v13 < v11 ); } *(_DWORD *)(v14 + 20) = v15 - 1; Bfree(a1, a3); return v14; }
lshift: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV EAX,dword ptr [RBP + -0xc] SAR EAX,0x5 MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x8] ADD EAX,dword ptr [RCX + 0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0xc] MOV dword ptr [RBP + -0x1c],EAX LAB_001825e0: MOV EAX,dword ptr [RBP + -0x28] CMP EAX,dword ptr [RBP + -0x1c] JLE 0x001825fb MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x1c] SHL EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX JMP 0x001825e0 LAB_001825fb: MOV EDI,dword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00181e70 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX MOV dword ptr [RBP + -0x1c],0x0 LAB_0018261d: MOV EAX,dword ptr [RBP + -0x1c] CMP EAX,dword ptr [RBP + -0x24] JGE 0x00182645 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x40],RCX MOV dword ptr [RAX],0x0 MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX JMP 0x0018261d LAB_00182645: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RCX + 0x14] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x1f MOV dword ptr [RBP + -0xc],EAX CMP EAX,0x0 JZ 0x001826e4 MOV EAX,0x20 SUB EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x20],EAX MOV dword ptr [RBP + -0x4c],0x0 LAB_00182687: MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX] MOV ECX,dword ptr [RBP + -0xc] SHL EAX,CL MOV ECX,EAX OR ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x40] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x40],RDX MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x38],RCX MOV EAX,dword ptr [RAX] MOV ECX,dword ptr [RBP + -0x20] SHR EAX,CL MOV dword ptr [RBP + -0x4c],EAX MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x48] JC 0x00182687 MOV EAX,dword ptr [RBP + -0x4c] MOV RCX,qword ptr [RBP + -0x40] MOV dword ptr [RCX],EAX CMP EAX,0x0 JZ 0x001826e2 MOV EAX,dword ptr [RBP + -0x28] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX LAB_001826e2: JMP 0x00182714 LAB_001826e4: JMP 0x001826e6 LAB_001826e6: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x38],RCX MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x40] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x40],RDX MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x48] JC 0x001826e6 JMP 0x00182714 LAB_00182714: MOV ECX,dword ptr [RBP + -0x28] SUB ECX,0x1 MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX + 0x14],ECX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00182520 MOV RAX,qword ptr [RBP + -0x30] ADD RSP,0x50 POP RBP RET
int8 * lshift(int8 *param_1,uint param_2,int8 param_3) { sbyte sVar1; int iVar2; int8 *puVar3; uint *puVar4; uint *puVar5; uint *puVar6; uint local_54; uint *local_48; uint *local_40; int local_30; int local_28; int local_24; local_28 = *(int *)(param_1 + 1); iVar2 = ((int)param_2 >> 5) + *(int *)((long)param_1 + 0x14); local_30 = iVar2 + 1; for (local_24 = *(int *)((long)param_1 + 0xc); local_24 < local_30; local_24 = local_24 << 1) { local_28 = local_28 + 1; } puVar3 = (int8 *)Balloc(local_28,param_3); local_48 = (uint *)*puVar3; for (local_24 = 0; local_24 < (int)param_2 >> 5; local_24 = local_24 + 1) { *local_48 = 0; local_48 = local_48 + 1; } local_40 = (uint *)*param_1; puVar4 = local_40 + *(int *)((long)param_1 + 0x14); if ((param_2 & 0x1f) == 0) { do { puVar5 = local_40 + 1; *local_48 = *local_40; local_48 = local_48 + 1; local_40 = puVar5; } while (puVar5 < puVar4); } else { sVar1 = (sbyte)(param_2 & 0x1f); local_54 = 0; do { puVar6 = local_48 + 1; *local_48 = *local_40 << sVar1 | local_54; puVar5 = local_40 + 1; local_54 = *local_40 >> (0x20U - sVar1 & 0x1f); local_48 = puVar6; local_40 = puVar5; } while (puVar5 < puVar4); *puVar6 = local_54; if (local_54 != 0) { local_30 = iVar2 + 2; } } *(int *)((long)puVar3 + 0x14) = local_30 + -1; Bfree(param_1,param_3); return puVar3; }
2,160
gzfread
3fs/build_O3/src/apache-arrow-cpp/cpp/zlib_ep-prefix/src/zlib_ep/gzread.c
z_size_t ZEXPORT gzfread(buf, size, nitems, file) voidp buf; z_size_t size; z_size_t nitems; gzFile file; { z_size_t len; gz_statep state; /* get internal structure */ if (file == NULL) return 0; state = (gz_statep)file; /* check that we're reading and that there's no (serious) error */ if (state->mode != GZ_READ || (state->err != Z_OK && state->err != Z_BUF_ERROR)) return 0; /* compute bytes to read -- error on overflow */ len = nitems * size; if (size && len / size != nitems) { gz_error(state, Z_STREAM_ERROR, "request does not fit in a size_t"); return 0; } /* read len or fewer bytes to buf, return the number of full items read */ return len ? gz_read(state, buf, len) / size : 0; }
O3
c
gzfread: testq %rcx, %rcx je 0x79b4 cmpl $0x1c4f, 0x18(%rcx) # imm = 0x1C4F jne 0x79b4 pushq %rbx movq %rsi, %rbx movq %rdi, %rsi movl 0x74(%rcx), %eax testl %eax, %eax je 0x798c cmpl $-0x5, %eax jne 0x79ce movq %rbx, %rax mulq %rdx seto %dl testq %rbx, %rbx je 0x79b7 testb %dl, %dl je 0x79b7 leaq 0x9bae(%rip), %rdx # 0x11553 movq %rcx, %rdi movl $0xfffffffe, %esi # imm = 0xFFFFFFFE callq 0x757b jmp 0x79ce xorl %eax, %eax retq testq %rax, %rax je 0x79ce movq %rcx, %rdi movq %rax, %rdx callq 0x782a xorl %edx, %edx divq %rbx jmp 0x79d0 xorl %eax, %eax popq %rbx retq
gzfread: test rcx, rcx jz short loc_79B4 cmp dword ptr [rcx+18h], 1C4Fh jnz short loc_79B4 push rbx mov rbx, rsi mov rsi, rdi mov eax, [rcx+74h] test eax, eax jz short loc_798C cmp eax, 0FFFFFFFBh jnz short loc_79CE loc_798C: mov rax, rbx mul rdx seto dl test rbx, rbx jz short loc_79B7 test dl, dl jz short loc_79B7 lea rdx, aRequestDoesNot_0; "request does not fit in a size_t" mov rdi, rcx mov esi, 0FFFFFFFEh call gz_error jmp short loc_79CE loc_79B4: xor eax, eax retn loc_79B7: test rax, rax jz short loc_79CE mov rdi, rcx mov rdx, rax call gz_read xor edx, edx div rbx jmp short loc_79D0 loc_79CE: xor eax, eax loc_79D0: pop rbx retn
unsigned long long gzfread(long long a1, unsigned long long a2, unsigned long long a3, long long a4) { int v4; // eax unsigned __int128 v5; // rax if ( !a4 || *(_DWORD *)(a4 + 24) != 7247 ) return 0LL; v4 = *(_DWORD *)(a4 + 116); if ( !v4 || v4 == -5 ) { v5 = a3 * (unsigned __int128)a2; BYTE8(v5) = *((_QWORD *)&v5 + 1) != 0LL; if ( a2 && BYTE8(v5) ) { gz_error(a4, -2, "request does not fit in a size_t"); } else if ( (_QWORD)v5 ) { return gz_read(a4, a1, v5) / a2; } } return 0LL; }
gzfread: TEST RCX,RCX JZ 0x001079b4 CMP dword ptr [RCX + 0x18],0x1c4f JNZ 0x001079b4 PUSH RBX MOV RBX,RSI MOV RSI,RDI MOV EAX,dword ptr [RCX + 0x74] TEST EAX,EAX JZ 0x0010798c CMP EAX,-0x5 JNZ 0x001079ce LAB_0010798c: MOV RAX,RBX MUL RDX SETO DL TEST RBX,RBX JZ 0x001079b7 TEST DL,DL JZ 0x001079b7 LEA RDX,[0x111553] MOV RDI,RCX MOV ESI,0xfffffffe CALL 0x0010757b JMP 0x001079ce LAB_001079b4: XOR EAX,EAX RET LAB_001079b7: TEST RAX,RAX JZ 0x001079ce MOV RDI,RCX MOV RDX,RAX CALL 0x0010782a XOR EDX,EDX DIV RBX JMP 0x001079d0 LAB_001079ce: XOR EAX,EAX LAB_001079d0: POP RBX RET
ulong gzfread(int8 param_1,ulong param_2,ulong param_3,long param_4) { int1 auVar1 [16]; int1 auVar2 [16]; long lVar3; ulong uVar4; if ((param_4 != 0) && (*(int *)(param_4 + 0x18) == 0x1c4f)) { if ((*(int *)(param_4 + 0x74) == 0) || (*(int *)(param_4 + 0x74) == -5)) { auVar1._8_8_ = 0; auVar1._0_8_ = param_2; auVar2._8_8_ = 0; auVar2._0_8_ = param_3; lVar3 = SUB168(auVar1 * auVar2,0); if ((param_2 == 0) || (SUB168(auVar1 * auVar2,8) == 0)) { if (lVar3 != 0) { uVar4 = gz_read(param_4,param_1,lVar3); return uVar4 / param_2; } } else { gz_error(param_4,0xfffffffe,"request does not fit in a size_t"); } } return 0; } return 0; }
2,161
is_delimiter(char const*)
eloqsql/client/mysqltest.cc
bool is_delimiter(const char* p) { uint match= 0; char* delim= delimiter; while (*p && *p == *delim++) { match++; p++; } return (match == delimiter_length); }
O0
cpp
is_delimiter(char const*): pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl $0x0, -0xc(%rbp) leaq 0x29077a(%rip), %rax # 0x2fdcb0 movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rcx xorl %eax, %eax cmpb $0x0, (%rcx) movb %al, -0x19(%rbp) je 0x6d569 movq -0x8(%rbp), %rax movsbl (%rax), %eax movq -0x18(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x18(%rbp) movsbl (%rcx), %ecx cmpl %ecx, %eax sete %al movb %al, -0x19(%rbp) movb -0x19(%rbp), %al testb $0x1, %al jne 0x6d572 jmp 0x6d589 movl -0xc(%rbp), %eax addl $0x1, %eax movl %eax, -0xc(%rbp) movq -0x8(%rbp), %rax addq $0x1, %rax movq %rax, -0x8(%rbp) jmp 0x6d53a movl -0xc(%rbp), %eax cmpq 0x29072d(%rip), %rax # 0x2fdcc0 sete %al andb $0x1, %al popq %rbp retq nopw (%rax,%rax)
_Z12is_delimiterPKc: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], 0 lea rax, _ZL9delimiter; ";" mov [rbp+var_18], rax loc_6D53A: mov rcx, [rbp+var_8] xor eax, eax cmp byte ptr [rcx], 0 mov [rbp+var_19], al jz short loc_6D569 mov rax, [rbp+var_8] movsx eax, byte ptr [rax] mov rcx, [rbp+var_18] mov rdx, rcx add rdx, 1 mov [rbp+var_18], rdx movsx ecx, byte ptr [rcx] cmp eax, ecx setz al mov [rbp+var_19], al loc_6D569: mov al, [rbp+var_19] test al, 1 jnz short loc_6D572 jmp short loc_6D589 loc_6D572: mov eax, [rbp+var_C] add eax, 1 mov [rbp+var_C], eax mov rax, [rbp+var_8] add rax, 1 mov [rbp+var_8], rax jmp short loc_6D53A loc_6D589: mov eax, [rbp+var_C] cmp rax, cs:_ZL16delimiter_length; delimiter_length setz al and al, 1 pop rbp retn
bool is_delimiter(const char *a1) { char *v1; // rcx bool v3; // [rsp+1h] [rbp-19h] char *v4; // [rsp+2h] [rbp-18h] int v5; // [rsp+Eh] [rbp-Ch] v5 = 0; v4 = delimiter; while ( 1 ) { v3 = 0; if ( *a1 ) { v1 = v4++; v3 = *a1 == *v1; } if ( !v3 ) break; ++v5; ++a1; } return v5 == delimiter_length; }
is_delimiter: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],0x0 LEA RAX,[0x3fdcb0] MOV qword ptr [RBP + -0x18],RAX LAB_0016d53a: MOV RCX,qword ptr [RBP + -0x8] XOR EAX,EAX CMP byte ptr [RCX],0x0 MOV byte ptr [RBP + -0x19],AL JZ 0x0016d569 MOV RAX,qword ptr [RBP + -0x8] MOVSX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x18] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x18],RDX MOVSX ECX,byte ptr [RCX] CMP EAX,ECX SETZ AL MOV byte ptr [RBP + -0x19],AL LAB_0016d569: MOV AL,byte ptr [RBP + -0x19] TEST AL,0x1 JNZ 0x0016d572 JMP 0x0016d589 LAB_0016d572: MOV EAX,dword ptr [RBP + -0xc] ADD EAX,0x1 MOV dword ptr [RBP + -0xc],EAX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x1 MOV qword ptr [RBP + -0x8],RAX JMP 0x0016d53a LAB_0016d589: MOV EAX,dword ptr [RBP + -0xc] CMP RAX,qword ptr [0x003fdcc0] SETZ AL AND AL,0x1 POP RBP RET
/* is_delimiter(char const*) */ int4 is_delimiter(char *param_1) { bool bVar1; char *local_20; uint local_14; char *local_10; local_14 = 0; local_20 = &delimiter; local_10 = param_1; while( true ) { bVar1 = false; if (*local_10 != '\0') { bVar1 = *local_10 == *local_20; local_20 = local_20 + 1; } if (!bVar1) break; local_14 = local_14 + 1; local_10 = local_10 + 1; } return CONCAT31((int3)(local_14 >> 8),local_14 == delimiter_length); }
2,162
add_directory
eloqsql/mysys/my_default.c
static int add_directory(MEM_ROOT *alloc, const char *dir, const char **dirs) { char buf[FN_REFLEN]; size_t len; char *p; my_bool err __attribute__((unused)); len= normalize_dirname(buf, dir); if (!(p= strmake_root(alloc, buf, len))) return 1; /* Failure */ /* Should never fail if DEFAULT_DIRS_SIZE is correct size */ err= array_append_string_unique(p, dirs, DEFAULT_DIRS_SIZE); DBUG_ASSERT(err == FALSE); return 0; }
O0
c
add_directory: pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x220(%rbp) movq %rsi, -0x228(%rbp) movq %rdx, -0x230(%rbp) leaq -0x210(%rbp), %rdi movq -0x228(%rbp), %rsi callq 0x83fd0 movq %rax, -0x238(%rbp) movq -0x220(%rbp), %rdi leaq -0x210(%rbp), %rsi movq -0x238(%rbp), %rdx callq 0x85130 movq %rax, -0x240(%rbp) cmpq $0x0, %rax jne 0x8145a movl $0x1, -0x214(%rbp) jmp 0x81484 movq -0x240(%rbp), %rdi movq -0x230(%rbp), %rsi movl $0x8, %edx callq 0x844f0 movb %al, -0x241(%rbp) jmp 0x8147a movl $0x0, -0x214(%rbp) movl -0x214(%rbp), %eax movl %eax, -0x248(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x814b1 movl -0x248(%rbp), %eax addq $0x250, %rsp # imm = 0x250 popq %rbp retq callq 0x382c0 nopw %cs:(%rax,%rax)
add_directory: push rbp mov rbp, rsp sub rsp, 250h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_220], rdi mov [rbp+var_228], rsi mov [rbp+var_230], rdx lea rdi, [rbp+var_210] mov rsi, [rbp+var_228] call normalize_dirname mov [rbp+var_238], rax mov rdi, [rbp+var_220] lea rsi, [rbp+var_210] mov rdx, [rbp+var_238] call strmake_root mov [rbp+var_240], rax cmp rax, 0 jnz short loc_8145A mov [rbp+var_214], 1 jmp short loc_81484 loc_8145A: mov rdi, [rbp+var_240] mov rsi, [rbp+var_230] mov edx, 8 call array_append_string_unique mov [rbp+var_241], al jmp short $+2 loc_8147A: mov [rbp+var_214], 0 loc_81484: mov eax, [rbp+var_214] mov [rbp+var_248], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_814B1 mov eax, [rbp+var_248] add rsp, 250h pop rbp retn loc_814B1: call ___stack_chk_fail
long long add_directory(long long a1, long long a2, long long a3) { long long v4; // [rsp+10h] [rbp-240h] long long v5; // [rsp+18h] [rbp-238h] _BYTE v8[520]; // [rsp+40h] [rbp-210h] BYREF unsigned long long v9; // [rsp+248h] [rbp-8h] v9 = __readfsqword(0x28u); v5 = normalize_dirname(v8, a2); v4 = strmake_root(a1, v8, v5); if ( v4 ) { array_append_string_unique(v4, a3, 8LL); return 0; } else { return 1; } }
add_directory: PUSH RBP MOV RBP,RSP SUB RSP,0x250 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x220],RDI MOV qword ptr [RBP + -0x228],RSI MOV qword ptr [RBP + -0x230],RDX LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x228] CALL 0x00183fd0 MOV qword ptr [RBP + -0x238],RAX MOV RDI,qword ptr [RBP + -0x220] LEA RSI,[RBP + -0x210] MOV RDX,qword ptr [RBP + -0x238] CALL 0x00185130 MOV qword ptr [RBP + -0x240],RAX CMP RAX,0x0 JNZ 0x0018145a MOV dword ptr [RBP + -0x214],0x1 JMP 0x00181484 LAB_0018145a: MOV RDI,qword ptr [RBP + -0x240] MOV RSI,qword ptr [RBP + -0x230] MOV EDX,0x8 CALL 0x001844f0 MOV byte ptr [RBP + -0x241],AL JMP 0x0018147a LAB_0018147a: MOV dword ptr [RBP + -0x214],0x0 LAB_00181484: MOV EAX,dword ptr [RBP + -0x214] MOV dword ptr [RBP + -0x248],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001814b1 MOV EAX,dword ptr [RBP + -0x248] ADD RSP,0x250 POP RBP RET LAB_001814b1: CALL 0x001382c0
bool add_directory(int8 param_1,int8 param_2,int8 param_3) { int8 uVar1; long lVar2; long in_FS_OFFSET; int1 local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); uVar1 = normalize_dirname(local_218,param_2); lVar2 = strmake_root(param_1,local_218,uVar1); if (lVar2 != 0) { array_append_string_unique(lVar2,param_3,8); } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return lVar2 == 0; }
2,163
CLI::App::get_subcommands(std::function<bool (CLI::App*)> const&)
MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/impl/App_inl.hpp
CLI11_INLINE std::vector<App *> App::get_subcommands(const std::function<bool(App *)> &filter) { std::vector<App *> subcomms(subcommands_.size()); std::transform( std::begin(subcommands_), std::end(subcommands_), std::begin(subcomms), [](const App_p &v) { return v.get(); }); if(filter) { subcomms.erase( std::remove_if(std::begin(subcomms), std::end(subcomms), [&filter](App *app) { return !filter(app); }), std::end(subcomms)); } return subcomms; }
O0
cpp
CLI::App::get_subcommands(std::function<bool (CLI::App*)> const&): pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0xb0(%rbp) movq %rdi, %rax movq %rax, -0xc0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0xb8(%rbp) movb $0x0, -0x19(%rbp) addq $0x280, %rdi # imm = 0x280 callq 0x23850 movq %rax, -0xa8(%rbp) leaq -0x1a(%rbp), %rdi movq %rdi, -0xa0(%rbp) callq 0x403a0 movq -0xb0(%rbp), %rdi movq -0xa8(%rbp), %rsi movq -0xa0(%rbp), %rdx callq 0x403c0 jmp 0x3ebf6 leaq -0x1a(%rbp), %rdi callq 0x3fe00 movq -0xb8(%rbp), %rdi addq $0x280, %rdi # imm = 0x280 callq 0x404b0 movq %rax, -0xc8(%rbp) jmp 0x3ec1b movq -0xb8(%rbp), %rdi movq -0xc8(%rbp), %rax movq %rax, -0x38(%rbp) addq $0x280, %rdi # imm = 0x280 callq 0x404e0 movq %rax, -0xd0(%rbp) jmp 0x3ec42 movq -0xb0(%rbp), %rdi movq -0xd0(%rbp), %rax movq %rax, -0x40(%rbp) callq 0x40510 movq %rax, -0xd8(%rbp) jmp 0x3ec62 movq -0xd8(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x38(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x48(%rbp), %rdx callq 0x40430 movq %rax, -0xe0(%rbp) jmp 0x3ec87 movq -0xe0(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x18(%rbp), %rdi callq 0x40540 testb $0x1, %al jne 0x3eca4 jmp 0x3edb5 movq -0xb0(%rbp), %rdi callq 0x40510 movq %rax, -0xe8(%rbp) jmp 0x3ecb9 movq -0xb0(%rbp), %rdi movq -0xe8(%rbp), %rax movq %rax, -0x70(%rbp) callq 0x40650 movq %rax, -0xf0(%rbp) jmp 0x3ecd9 movq -0xf0(%rbp), %rax movq %rax, -0x78(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x70(%rbp), %rdi movq -0x78(%rbp), %rsi movq -0x80(%rbp), %rdx callq 0x405f0 movq %rax, -0xf8(%rbp) jmp 0x3ed06 movq -0xf8(%rbp), %rax movq %rax, -0x68(%rbp) leaq -0x60(%rbp), %rdi leaq -0x68(%rbp), %rsi callq 0x40680 movq -0xb0(%rbp), %rdi callq 0x40650 movq %rax, -0x100(%rbp) jmp 0x3ed33 movq -0x100(%rbp), %rax movq %rax, -0x90(%rbp) leaq -0x88(%rbp), %rdi leaq -0x90(%rbp), %rsi callq 0x40680 movq -0xb0(%rbp), %rdi movq -0x60(%rbp), %rsi movq -0x88(%rbp), %rdx callq 0x40560 movq %rax, -0x108(%rbp) jmp 0x3ed74 movq -0x108(%rbp), %rax movq %rax, -0x98(%rbp) jmp 0x3edb5 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x28(%rbp) movl %eax, -0x2c(%rbp) leaq -0x1a(%rbp), %rdi callq 0x3fe00 jmp 0x3eddb movq -0xb0(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x28(%rbp) movl %eax, -0x2c(%rbp) callq 0x265a0 jmp 0x3eddb movb $0x1, -0x19(%rbp) testb $0x1, -0x19(%rbp) jne 0x3edcb movq -0xb0(%rbp), %rdi callq 0x265a0 movq -0xc0(%rbp), %rax addq $0x110, %rsp # imm = 0x110 popq %rbp retq movq -0x28(%rbp), %rdi callq 0x9a70 nopw %cs:(%rax,%rax) nop
_ZN3CLI3App15get_subcommandsERKSt8functionIFbPS0_EE: push rbp mov rbp, rsp sub rsp, 110h mov [rbp+var_B0], rdi mov rax, rdi mov [rbp+var_C0], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rdi, [rbp+var_10] mov [rbp+var_B8], rdi mov [rbp+var_19], 0 add rdi, 280h call _ZNKSt6vectorISt10shared_ptrIN3CLI3AppEESaIS3_EE4sizeEv; std::vector<std::shared_ptr<CLI::App>>::size(void) mov [rbp+var_A8], rax lea rdi, [rbp+var_1A] mov [rbp+var_A0], rdi call _ZNSaIPN3CLI3AppEEC2Ev; std::allocator<CLI::App *>::allocator(void) mov rdi, [rbp+var_B0] mov rsi, [rbp+var_A8] mov rdx, [rbp+var_A0] call _ZNSt6vectorIPN3CLI3AppESaIS2_EEC2EmRKS3_; std::vector<CLI::App *>::vector(ulong,std::allocator<CLI::App *> const&) jmp short $+2 loc_3EBF6: lea rdi, [rbp+var_1A] call _ZNSaIPN3CLI3AppEED2Ev; std::allocator<CLI::App *>::~allocator() mov rdi, [rbp+var_B8] add rdi, 280h call _ZSt5beginISt6vectorISt10shared_ptrIN3CLI3AppEESaIS4_EEEDTcldtfp_5beginEERT_ mov [rbp+var_C8], rax jmp short $+2 loc_3EC1B: mov rdi, [rbp+var_B8] mov rax, [rbp+var_C8] mov [rbp+var_38], rax add rdi, 280h call _ZSt3endISt6vectorISt10shared_ptrIN3CLI3AppEESaIS4_EEEDTcldtfp_3endEERT_ mov [rbp+var_D0], rax jmp short $+2 loc_3EC42: mov rdi, [rbp+var_B0] mov rax, [rbp+var_D0] mov [rbp+var_40], rax call _ZSt5beginISt6vectorIPN3CLI3AppESaIS3_EEEDTcldtfp_5beginEERT_ mov [rbp+var_D8], rax jmp short $+2 loc_3EC62: mov rax, [rbp+var_D8] mov [rbp+var_48], rax mov rdi, [rbp+var_38] mov rsi, [rbp+var_40] mov rdx, [rbp+var_48] call _ZSt9transformIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3CLI3AppEESt6vectorIS5_SaIS5_EEEENS1_IPPS4_S7_ISB_SaISB_EEEEZNS4_15get_subcommandsERKSt8functionIFbSB_EEEUlRKS5_E_ET0_T_SP_SO_T1_; std::transform<__gnu_cxx::__normal_iterator<std::shared_ptr<CLI::App> *,std::vector<std::shared_ptr<CLI::App>>>,__gnu_cxx::__normal_iterator<CLI::App**,std::vector<CLI::App*>>,CLI::App::get_subcommands(std::function<bool ()(CLI::App*)> const&)::{lambda(std::shared_ptr<CLI::App> const&)#1}>(__gnu_cxx::__normal_iterator<std::shared_ptr<CLI::App> *,std::vector<std::shared_ptr<CLI::App>>>,__gnu_cxx::__normal_iterator<std::shared_ptr<CLI::App> *,std::vector<std::shared_ptr<CLI::App>>>,__gnu_cxx::__normal_iterator<CLI::App**,std::vector<CLI::App*>>,CLI::App::get_subcommands(std::function<bool ()(CLI::App*)> const&)::{lambda(std::shared_ptr<CLI::App> const&)#1}) mov [rbp+var_E0], rax jmp short $+2 loc_3EC87: mov rax, [rbp+var_E0] mov [rbp+var_58], rax mov rdi, [rbp+var_18] call _ZNKSt8functionIFbPN3CLI3AppEEEcvbEv; std::function<bool ()(CLI::App *)>::operator bool(void) test al, 1 jnz short loc_3ECA4 jmp loc_3EDB5 loc_3ECA4: mov rdi, [rbp+var_B0] call _ZSt5beginISt6vectorIPN3CLI3AppESaIS3_EEEDTcldtfp_5beginEERT_ mov [rbp+var_E8], rax jmp short $+2 loc_3ECB9: mov rdi, [rbp+var_B0] mov rax, [rbp+var_E8] mov [rbp+var_70], rax call _ZSt3endISt6vectorIPN3CLI3AppESaIS3_EEEDTcldtfp_3endEERT_ mov [rbp+var_F0], rax jmp short $+2 loc_3ECD9: mov rax, [rbp+var_F0] mov [rbp+var_78], rax mov rax, [rbp+var_18] mov [rbp+var_80], rax mov rdi, [rbp+var_70] mov rsi, [rbp+var_78] mov rdx, [rbp+var_80] call _ZSt9remove_ifIN9__gnu_cxx17__normal_iteratorIPPN3CLI3AppESt6vectorIS4_SaIS4_EEEEZNS3_15get_subcommandsERKSt8functionIFbS4_EEEUlS4_E_ET_SG_SG_T0_; std::remove_if<__gnu_cxx::__normal_iterator<CLI::App **,std::vector<CLI::App *>>,CLI::App::get_subcommands(std::function<bool ()(CLI::App *)> const&)::{lambda(CLI::App *)#1}>(__gnu_cxx::__normal_iterator<CLI::App **,std::vector<CLI::App *>>,__gnu_cxx::__normal_iterator<CLI::App **,std::vector<CLI::App *>>,CLI::App::get_subcommands(std::function<bool ()(CLI::App *)> const&)::{lambda(CLI::App *)#1}) mov [rbp+var_F8], rax jmp short $+2 loc_3ED06: mov rax, [rbp+var_F8] mov [rbp+var_68], rax lea rdi, [rbp+var_60] lea rsi, [rbp+var_68] call _ZN9__gnu_cxx17__normal_iteratorIPKPN3CLI3AppESt6vectorIS3_SaIS3_EEEC2IPS3_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISC_SB_EE7__valueES8_E6__typeEEE mov rdi, [rbp+var_B0] call _ZSt3endISt6vectorIPN3CLI3AppESaIS3_EEEDTcldtfp_3endEERT_ mov [rbp+var_100], rax jmp short $+2 loc_3ED33: mov rax, [rbp+var_100] mov [rbp+var_90], rax lea rdi, [rbp+var_88] lea rsi, [rbp+var_90] call _ZN9__gnu_cxx17__normal_iteratorIPKPN3CLI3AppESt6vectorIS3_SaIS3_EEEC2IPS3_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISC_SB_EE7__valueES8_E6__typeEEE mov rdi, [rbp+var_B0] mov rsi, [rbp+var_60] mov rdx, [rbp+var_88] call _ZNSt6vectorIPN3CLI3AppESaIS2_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS2_S4_EES9_; std::vector<CLI::App *>::erase(__gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>>,__gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>>) mov [rbp+var_108], rax jmp short $+2 loc_3ED74: mov rax, [rbp+var_108] mov [rbp+var_98], rax jmp short loc_3EDB5 mov rcx, rax mov eax, edx mov [rbp+var_28], rcx mov [rbp+var_2C], eax lea rdi, [rbp+var_1A] call _ZNSaIPN3CLI3AppEED2Ev; std::allocator<CLI::App *>::~allocator() jmp short loc_3EDDB mov rdi, [rbp+var_B0] mov rcx, rax mov eax, edx mov [rbp+var_28], rcx mov [rbp+var_2C], eax call _ZNSt6vectorIPN3CLI3AppESaIS2_EED2Ev; std::vector<CLI::App *>::~vector() jmp short loc_3EDDB loc_3EDB5: mov [rbp+var_19], 1 test [rbp+var_19], 1 jnz short loc_3EDCB mov rdi, [rbp+var_B0] call _ZNSt6vectorIPN3CLI3AppESaIS2_EED2Ev; std::vector<CLI::App *>::~vector() loc_3EDCB: mov rax, [rbp+var_C0] add rsp, 110h pop rbp retn loc_3EDDB: mov rdi, [rbp+var_28] call __Unwind_Resume
long long CLI::App::get_subcommands(long long a1, long long a2, long long a3) { long long v4; // [rsp+68h] [rbp-A8h] long long v5; // [rsp+80h] [rbp-90h] BYREF _QWORD v6[2]; // [rsp+88h] [rbp-88h] BYREF long long v7; // [rsp+98h] [rbp-78h] long long v8; // [rsp+A0h] [rbp-70h] long long v9; // [rsp+A8h] [rbp-68h] BYREF _QWORD v10[3]; // [rsp+B0h] [rbp-60h] BYREF long long v11; // [rsp+C8h] [rbp-48h] long long v12; // [rsp+D0h] [rbp-40h] long long v13; // [rsp+D8h] [rbp-38h] _BYTE v14[2]; // [rsp+F6h] [rbp-1Ah] BYREF long long v15; // [rsp+F8h] [rbp-18h] long long v16; // [rsp+100h] [rbp-10h] long long v17; // [rsp+108h] [rbp-8h] v17 = a1; v16 = a2; v15 = a3; v14[1] = 0; v4 = std::vector<std::shared_ptr<CLI::App>>::size((_QWORD *)(a2 + 640)); std::allocator<CLI::App *>::allocator(); std::vector<CLI::App *>::vector(a1, v4, v14); std::allocator<CLI::App *>::~allocator(v14); v13 = std::begin<std::vector<std::shared_ptr<CLI::App>>>(a2 + 640); v12 = std::end<std::vector<std::shared_ptr<CLI::App>>>(a2 + 640); v11 = std::begin<std::vector<CLI::App *>>(a1); v10[1] = std::transform<__gnu_cxx::__normal_iterator<std::shared_ptr<CLI::App> *,std::vector<std::shared_ptr<CLI::App>>>,__gnu_cxx::__normal_iterator<CLI::App**,std::vector<CLI::App*>>,CLI::App::get_subcommands(std::function<bool ()(CLI::App*)> const&)::{lambda(std::shared_ptr<CLI::App> const&)#1}>( v13, v12, v11); if ( (std::function<bool ()(CLI::App *)>::operator bool(v15) & 1) != 0 ) { v8 = std::begin<std::vector<CLI::App *>>(a1); v7 = std::end<std::vector<CLI::App *>>(a1); v6[1] = v15; v9 = std::remove_if<__gnu_cxx::__normal_iterator<CLI::App **,std::vector<CLI::App *>>,CLI::App::get_subcommands(std::function<bool ()(CLI::App *)> const&)::{lambda(CLI::App *)#1}>( v8, v7, v15); __gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>>::__normal_iterator<CLI::App **>(v10, &v9); v5 = std::end<std::vector<CLI::App *>>(a1); __gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>>::__normal_iterator<CLI::App **>(v6, &v5); std::vector<CLI::App *>::erase(a1, v10[0], v6[0]); } return a1; }
get_subcommands: PUSH RBP MOV RBP,RSP SUB RSP,0x110 MOV qword ptr [RBP + -0xb0],RDI MOV RAX,RDI MOV qword ptr [RBP + -0xc0],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RDI,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0xb8],RDI MOV byte ptr [RBP + -0x19],0x0 ADD RDI,0x280 CALL 0x00123850 MOV qword ptr [RBP + -0xa8],RAX LEA RDI,[RBP + -0x1a] MOV qword ptr [RBP + -0xa0],RDI CALL 0x001403a0 MOV RDI,qword ptr [RBP + -0xb0] MOV RSI,qword ptr [RBP + -0xa8] MOV RDX,qword ptr [RBP + -0xa0] LAB_0013ebef: CALL 0x001403c0 JMP 0x0013ebf6 LAB_0013ebf6: LEA RDI,[RBP + -0x1a] CALL 0x0013fe00 MOV RDI,qword ptr [RBP + -0xb8] ADD RDI,0x280 LAB_0013ec0d: CALL 0x001404b0 MOV qword ptr [RBP + -0xc8],RAX JMP 0x0013ec1b LAB_0013ec1b: MOV RDI,qword ptr [RBP + -0xb8] MOV RAX,qword ptr [RBP + -0xc8] MOV qword ptr [RBP + -0x38],RAX ADD RDI,0x280 CALL 0x001404e0 MOV qword ptr [RBP + -0xd0],RAX JMP 0x0013ec42 LAB_0013ec42: MOV RDI,qword ptr [RBP + -0xb0] MOV RAX,qword ptr [RBP + -0xd0] MOV qword ptr [RBP + -0x40],RAX CALL 0x00140510 MOV qword ptr [RBP + -0xd8],RAX JMP 0x0013ec62 LAB_0013ec62: MOV RAX,qword ptr [RBP + -0xd8] MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x48] CALL 0x00140430 MOV qword ptr [RBP + -0xe0],RAX JMP 0x0013ec87 LAB_0013ec87: MOV RAX,qword ptr [RBP + -0xe0] MOV qword ptr [RBP + -0x58],RAX MOV RDI,qword ptr [RBP + -0x18] CALL 0x00140540 TEST AL,0x1 JNZ 0x0013eca4 JMP 0x0013edb5 LAB_0013eca4: MOV RDI,qword ptr [RBP + -0xb0] CALL 0x00140510 MOV qword ptr [RBP + -0xe8],RAX JMP 0x0013ecb9 LAB_0013ecb9: MOV RDI,qword ptr [RBP + -0xb0] MOV RAX,qword ptr [RBP + -0xe8] MOV qword ptr [RBP + -0x70],RAX CALL 0x00140650 MOV qword ptr [RBP + -0xf0],RAX JMP 0x0013ecd9 LAB_0013ecd9: MOV RAX,qword ptr [RBP + -0xf0] MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x80],RAX MOV RDI,qword ptr [RBP + -0x70] MOV RSI,qword ptr [RBP + -0x78] MOV RDX,qword ptr [RBP + -0x80] CALL 0x001405f0 MOV qword ptr [RBP + -0xf8],RAX JMP 0x0013ed06 LAB_0013ed06: MOV RAX,qword ptr [RBP + -0xf8] MOV qword ptr [RBP + -0x68],RAX LEA RDI,[RBP + -0x60] LEA RSI,[RBP + -0x68] CALL 0x00140680 MOV RDI,qword ptr [RBP + -0xb0] CALL 0x00140650 MOV qword ptr [RBP + -0x100],RAX JMP 0x0013ed33 LAB_0013ed33: MOV RAX,qword ptr [RBP + -0x100] MOV qword ptr [RBP + -0x90],RAX LEA RDI,[RBP + -0x88] LEA RSI,[RBP + -0x90] CALL 0x00140680 MOV RDI,qword ptr [RBP + -0xb0] MOV RSI,qword ptr [RBP + -0x60] MOV RDX,qword ptr [RBP + -0x88] CALL 0x00140560 LAB_0013ed6b: MOV qword ptr [RBP + -0x108],RAX JMP 0x0013ed74 LAB_0013ed74: MOV RAX,qword ptr [RBP + -0x108] MOV qword ptr [RBP + -0x98],RAX JMP 0x0013edb5 LAB_0013edb5: MOV byte ptr [RBP + -0x19],0x1 TEST byte ptr [RBP + -0x19],0x1 JNZ 0x0013edcb MOV RDI,qword ptr [RBP + -0xb0] CALL 0x001265a0 LAB_0013edcb: MOV RAX,qword ptr [RBP + -0xc0] ADD RSP,0x110 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x0013edbf) */ /* CLI::App::get_subcommands(std::function<bool (CLI::App*)> const&) */ function * CLI::App::get_subcommands(function *param_1) { bool bVar1; ulong uVar2; function *in_RDX; long in_RSI; int8 local_98; int8 local_90; function *local_88; int8 local_80; int8 local_78; int8 local_70; int8 local_68; int8 local_60; int8 local_50; int8 local_48; int8 local_40; allocator local_22; int1 local_21; function *local_20; function *local_10; local_21 = 0; local_20 = in_RDX; local_10 = param_1; uVar2 = std::vector<std::shared_ptr<CLI::App>,std::allocator<std::shared_ptr<CLI::App>>>::size ((vector<std::shared_ptr<CLI::App>,std::allocator<std::shared_ptr<CLI::App>>> *) (in_RSI + 0x280)); std::allocator<CLI::App*>::allocator(); /* try { // try from 0013ebef to 0013ebf3 has its CatchHandler @ 0013ed84 */ std::vector<CLI::App*,std::allocator<CLI::App*>>::vector ((vector<CLI::App*,std::allocator<CLI::App*>> *)param_1,uVar2,&local_22); std::allocator<CLI::App*>::~allocator((allocator<CLI::App*> *)&local_22); /* try { // try from 0013ec0d to 0013ed6a has its CatchHandler @ 0013ed9b */ local_40 = std:: begin<std::vector<std::shared_ptr<CLI::App>,std::allocator<std::shared_ptr<CLI::App>>>> ((vector *)(in_RSI + 0x280)); local_48 = std:: end<std::vector<std::shared_ptr<CLI::App>,std::allocator<std::shared_ptr<CLI::App>>>> ((vector *)(in_RSI + 0x280)); local_50 = std::begin<std::vector<CLI::App*,std::allocator<CLI::App*>>>((vector *)param_1); local_60 = std:: transform<__gnu_cxx::__normal_iterator<std::shared_ptr<CLI::App>*,std::vector<std::shared_ptr<CLI::App>,std::allocator<std::shared_ptr<CLI::App>>>>,__gnu_cxx::__normal_iterator<CLI::App**,std::vector<CLI::App*,std::allocator<CLI::App*>>>,CLI::App::get_subcommands(std::function<bool(CLI::App*)>const&)::_lambda(std::shared_ptr<CLI::App>const&)_1_> (local_40,local_48,local_50); bVar1 = std::function::operator_cast_to_bool(local_20); if (bVar1) { local_78 = std::begin<std::vector<CLI::App*,std::allocator<CLI::App*>>>((vector *)param_1); local_80 = std::end<std::vector<CLI::App*,std::allocator<CLI::App*>>>((vector *)param_1); local_88 = local_20; local_70 = std:: remove_if<__gnu_cxx::__normal_iterator<CLI::App**,std::vector<CLI::App*,std::allocator<CLI::App*>>>,CLI::App::get_subcommands(std::function<bool(CLI::App*)>const&)::_lambda(CLI::App*)_1_> (local_78,local_80,local_20); __gnu_cxx::__normal_iterator<CLI::App*const*,std::vector<CLI::App*,std::allocator<CLI::App*>>>:: __normal_iterator<CLI::App**> ((__normal_iterator<CLI::App*const*,std::vector<CLI::App*,std::allocator<CLI::App*>>> *)&local_68,(__normal_iterator *)&local_70); local_98 = std::end<std::vector<CLI::App*,std::allocator<CLI::App*>>>((vector *)param_1); __gnu_cxx::__normal_iterator<CLI::App*const*,std::vector<CLI::App*,std::allocator<CLI::App*>>>:: __normal_iterator<CLI::App**> ((__normal_iterator<CLI::App*const*,std::vector<CLI::App*,std::allocator<CLI::App*>>> *)&local_90,(__normal_iterator *)&local_98); std::vector<CLI::App*,std::allocator<CLI::App*>>::erase ((vector<CLI::App*,std::allocator<CLI::App*>> *)param_1,local_68,local_90); } return param_1; }
2,164
rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>& rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::operator[]<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> const&)
mnn-tts/MNN/3rd_party/rapidjson/document.h
GenericValue& operator[](const GenericValue<Encoding, SourceAllocator>& name) { MemberIterator member = FindMember(name); if (member != MemberEnd()) return member->value; else { RAPIDJSON_ASSERT(false); // see above note // This will generate -Wexit-time-destructors in clang // static GenericValue NullValue; // return NullValue; // Use static buffer and placement-new to prevent destruction static char buffer[sizeof(GenericValue)]; return *new (buffer) GenericValue(); } }
O0
c
rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>& rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::operator[]<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> const&): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x30(%rsp), %rsi movq %rsi, 0x8(%rsp) movq 0x28(%rsp), %rdx leaq 0x20(%rsp), %rdi callq 0x10110 movq 0x8(%rsp), %rsi leaq 0x10(%rsp), %rdi callq 0x103c0 leaq 0x18(%rsp), %rdi leaq 0x10(%rsp), %rsi callq 0x10070 movq 0x18(%rsp), %rsi leaq 0x20(%rsp), %rdi callq 0x103a0 testb $0x1, %al jne 0x106ca jmp 0x106dd leaq 0x20(%rsp), %rdi callq 0x10540 addq $0x10, %rax addq $0x38, %rsp retq leaq 0x4996(%rip), %rdi # 0x1507a leaq 0x2b74(%rip), %rsi # 0x1325f movl $0x473, %edx # imm = 0x473 leaq 0x4989(%rip), %rcx # 0x15080 callq 0x30e0 nopl (%rax)
_ZN9rapidjson12GenericValueINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEEEixIS5_EERS6_RKNS0_IS2_T_EE: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov rsi, [rsp+38h+var_8] mov [rsp+38h+var_30], rsi mov rdx, [rsp+38h+var_10] lea rdi, [rsp+38h+var_18] call _ZN9rapidjson12GenericValueINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEEE10FindMemberIS5_EENS_21GenericMemberIteratorILb0ES2_S5_EERKNS0_IS2_T_EE; rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::FindMember<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>(rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> const&) mov rsi, [rsp+38h+var_30] lea rdi, [rsp+38h+var_28] call _ZN9rapidjson12GenericValueINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEEE9MemberEndEv; rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::MemberEnd(void) lea rdi, [rsp+38h+var_20] lea rsi, [rsp+38h+var_28] call _ZN9rapidjson21GenericMemberIteratorILb1ENS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEEEC2ERKNS0_ILb0ES2_S5_EE; rapidjson::GenericMemberIterator<true,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::GenericMemberIterator(rapidjson::GenericMemberIterator<false,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> const&) mov rsi, [rsp+38h+var_20] lea rdi, [rsp+38h+var_18] call _ZNK9rapidjson21GenericMemberIteratorILb0ENS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEEEneENS0_ILb1ES2_S5_EE; rapidjson::GenericMemberIterator<false,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::operator!=(rapidjson::GenericMemberIterator<true,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>) test al, 1 jnz short loc_106CA jmp short loc_106DD loc_106CA: lea rdi, [rsp+38h+var_18] call _ZNK9rapidjson21GenericMemberIteratorILb0ENS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEEEptEv; rapidjson::GenericMemberIterator<false,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::operator->(void) add rax, 10h add rsp, 38h retn loc_106DD: lea rdi, aFalse; "false" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/mnn-tt"... mov edx, 473h lea rcx, aGenericvalueEn; "GenericValue<Encoding, Allocator> &rapi"... call ___assert_fail
long long rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::operator[]<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>( unsigned int *a1, long long a2) { long long v3; // [rsp+10h] [rbp-28h] BYREF long long v4; // [rsp+18h] [rbp-20h] BYREF _QWORD v5[3]; // [rsp+20h] [rbp-18h] BYREF v5[2] = a1; v5[1] = a2; rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::FindMember<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>( (long long)v5, (long long)a1, a2); rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::MemberEnd( (long long)&v3, a1); rapidjson::GenericMemberIterator<true,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::GenericMemberIterator( &v4, &v3); if ( !rapidjson::GenericMemberIterator<false,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::operator!=( v5, v4) ) __assert_fail( "false", "/workspace/llm4binary/github2025/mnn-tts/MNN/3rd_party/rapidjson/document.h", 1139LL, "GenericValue<Encoding, Allocator> &rapidjson::GenericValue<rapidjson::UTF8<>>::operator[](const GenericValue<Encod" "ing, SourceAllocator> &) [Encoding = rapidjson::UTF8<>, Allocator = rapidjson::MemoryPoolAllocator<>, SourceAlloca" "tor = rapidjson::MemoryPoolAllocator<>]"); return rapidjson::GenericMemberIterator<false,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::operator->((long long)v5) + 16; }
operator[]<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV RSI,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x8],RSI MOV RDX,qword ptr [RSP + 0x28] LEA RDI,[RSP + 0x20] CALL 0x00110110 MOV RSI,qword ptr [RSP + 0x8] LEA RDI,[RSP + 0x10] CALL 0x001103c0 LEA RDI,[RSP + 0x18] LEA RSI,[RSP + 0x10] CALL 0x00110070 MOV RSI,qword ptr [RSP + 0x18] LEA RDI,[RSP + 0x20] CALL 0x001103a0 TEST AL,0x1 JNZ 0x001106ca JMP 0x001106dd LAB_001106ca: LEA RDI,[RSP + 0x20] CALL 0x00110540 ADD RAX,0x10 ADD RSP,0x38 RET LAB_001106dd: LEA RDI,[0x11507a] LEA RSI,[0x11325f] MOV EDX,0x473 LEA RCX,[0x115080] CALL 0x001030e0
/* rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >& rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::operator[]<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > const&) */ GenericValue * __thiscall rapidjson:: GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>:: operator[]<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> (GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> *this,GenericValue *param_1) { ulong uVar1; long lVar2; GenericMemberIterator local_28 [8]; int8 local_20; GenericValue local_18 [8]; GenericValue *local_10; GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> *local_8; local_10 = param_1; local_8 = this; FindMember<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>(local_18); MemberEnd(); GenericMemberIterator<true,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> ::GenericMemberIterator ((GenericMemberIterator<true,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> *)&local_20,local_28); uVar1 = GenericMemberIterator<false,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> ::operator!=((GenericMemberIterator<false,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> *)local_18,local_20); if ((uVar1 & 1) == 0) { /* WARNING: Subroutine does not return */ __assert_fail("false", "/workspace/llm4binary/github2025/mnn-tts/MNN/3rd_party/rapidjson/document.h", 0x473, "GenericValue<Encoding, Allocator> &rapidjson::GenericValue<rapidjson::UTF8<>>::operator[](const GenericValue<Encoding, SourceAllocator> &) [Encoding = rapidjson::UTF8<>, Allocator = rapidjson::MemoryPoolAllocator<>, SourceAllocator = rapidjson::MemoryPoolAllocator<>]" ); } lVar2 = GenericMemberIterator<false,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> ::operator->((GenericMemberIterator<false,rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> *)local_18); return (GenericValue *)(lVar2 + 0x10); }
2,165
YAML::Scanner::ScanPlainScalar()
aimrt_mujoco_sim/_deps/yaml-cpp-src/src/scantoken.cpp
void Scanner::ScanPlainScalar() { std::string scalar; // set up the scanning parameters ScanScalarParams params; params.end = (InFlowContext() ? &Exp::ScanScalarEndInFlow() : &Exp::ScanScalarEnd()); params.eatEnd = false; params.indent = (InFlowContext() ? 0 : GetTopIndent() + 1); params.fold = FOLD_FLOW; params.eatLeadingWhitespace = true; params.trimTrailingSpaces = true; params.chomp = STRIP; params.onDocIndicator = BREAK; params.onTabInIndentation = THROW; // insert a potential simple key InsertPotentialSimpleKey(); Mark mark = INPUT.mark(); scalar = ScanScalar(INPUT, params); // can have a simple key only if we ended the scalar by starting a new line m_simpleKeyAllowed = params.leadingSpaces; m_canBeJSONFlow = false; // finally, check and see if we ended on an illegal character // if(Exp::IllegalCharInScalar.Matches(INPUT)) // throw ParserException(INPUT.mark(), ErrorMsg::CHAR_IN_SCALAR); Token token(Token::PLAIN_SCALAR, mark); token.value = scalar; m_tokens.push(token); }
O3
cpp
YAML::Scanner::ScanPlainScalar(): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xb0, %rsp movq %rdi, %rbx leaq 0x48(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) xorl %eax, %eax movb %al, (%r15) movb %al, 0x1a(%rsp) movw $0x0, 0x18(%rsp) movb %al, 0x30(%rsp) movq 0x1c0(%rdi), %rax cmpq 0x1a0(%rdi), %rax jne 0x689cc callq 0x6982f jmp 0x689d1 callq 0x69747 movq %rax, 0x8(%rsp) movb $0x0, 0x10(%rsp) movq 0x1c0(%rbx), %rcx xorl %eax, %eax cmpq 0x1a0(%rbx), %rcx jne 0x689f7 movq %rbx, %rdi callq 0x64950 incl %eax movl %eax, 0x14(%rsp) movl $0x2, %eax movl %eax, 0x1c(%rsp) movb $0x1, %cl movb %cl, 0x19(%rsp) movb %cl, 0x20(%rsp) movabsq $0x1ffffffff, %rcx # imm = 0x1FFFFFFFF movq %rcx, 0x24(%rsp) movl %eax, 0x2c(%rsp) movq %rbx, %rdi callq 0x6aca6 movq 0x8(%rbx), %r12 movl 0x10(%rbx), %ebp leaq 0x58(%rsp), %rdi leaq 0x8(%rsp), %rdx movq %rbx, %rsi callq 0x6f65c leaq 0x38(%rsp), %rdi leaq 0x58(%rsp), %r14 movq %r14, %rsi callq 0x2c6a0 movq (%r14), %rdi leaq 0x68(%rsp), %rax cmpq %rax, %rdi je 0x68a6e movq 0x68(%rsp), %rsi incq %rsi callq 0x2d2d0 movb 0x30(%rsp), %al movb %al, 0xd2(%rbx) xorl %eax, %eax movb %al, 0xd3(%rbx) movabsq $0x1300000000, %rcx # imm = 0x1300000000 leaq 0x70(%rsp), %rdi movq %rcx, -0x18(%rdi) movq %r12, -0x10(%rdi) movl %ebp, -0x8(%rdi) leaq 0x80(%rsp), %r14 movq %r14, -0x10(%r14) movq $0x0, -0x8(%r14) movb %al, (%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%r14) movups %xmm0, 0x1c(%r14) leaq 0x38(%rsp), %rsi callq 0x2d240 subq $-0x80, %rbx leaq 0x58(%rsp), %rsi movq %rbx, %rdi callq 0x6a662 leaq 0x90(%rsp), %rbx movq %rbx, %rdi callq 0x4f6b4 movq -0x20(%rbx), %rdi cmpq %r14, %rdi je 0x68b02 movq 0x80(%rsp), %rsi incq %rsi callq 0x2d2d0 movq 0x38(%rsp), %rdi cmpq %r15, %rdi je 0x68b19 movq 0x48(%rsp), %rsi incq %rsi callq 0x2d2d0 addq $0xb0, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x58(%rsp), %rdi callq 0x65918 jmp 0x68b3d jmp 0x68b3a movq %rax, %rbx movq 0x38(%rsp), %rdi cmpq %r15, %rdi je 0x68b54 movq 0x48(%rsp), %rsi incq %rsi callq 0x2d2d0 movq %rbx, %rdi callq 0x2e220
_ZN4YAML7Scanner15ScanPlainScalarEv: push rbp push r15 push r14 push r12 push rbx sub rsp, 0B0h mov rbx, rdi lea r15, [rsp+0D8h+var_90] mov [r15-10h], r15 mov qword ptr [r15-8], 0 xor eax, eax mov [r15], al mov [rsp+0D8h+var_BE], al mov [rsp+0D8h+var_C0], 0 mov [rsp+0D8h+var_A8], al mov rax, [rdi+1C0h] cmp rax, [rdi+1A0h] jnz short loc_689CC call _ZN4YAML3Exp13ScanScalarEndEv; YAML::Exp::ScanScalarEnd(void) jmp short loc_689D1 loc_689CC: call _ZN4YAML3Exp19ScanScalarEndInFlowEv; YAML::Exp::ScanScalarEndInFlow(void) loc_689D1: mov [rsp+0D8h+var_D0], rax mov [rsp+0D8h+var_C8], 0 mov rcx, [rbx+1C0h] xor eax, eax cmp rcx, [rbx+1A0h] jnz short loc_689F7 mov rdi, rbx; this call _ZNK4YAML7Scanner12GetTopIndentEv; YAML::Scanner::GetTopIndent(void) inc eax loc_689F7: mov [rsp+0D8h+var_C4], eax mov eax, 2 mov [rsp+0D8h+var_BC], eax mov cl, 1 mov byte ptr [rsp+0D8h+var_C0+1], cl mov [rsp+0D8h+var_B8], cl mov rcx, 1FFFFFFFFh mov [rsp+0D8h+var_B4], rcx mov [rsp+0D8h+var_AC], eax mov rdi, rbx; this call _ZN4YAML7Scanner24InsertPotentialSimpleKeyEv; YAML::Scanner::InsertPotentialSimpleKey(void) mov r12, [rbx+8] mov ebp, [rbx+10h] lea rdi, [rsp+0D8h+var_80] lea rdx, [rsp+0D8h+var_D0] mov rsi, rbx call _ZN4YAML10ScanScalarB5cxx11ERNS_6StreamERNS_16ScanScalarParamsE; YAML::ScanScalar(YAML::Stream &,YAML::ScanScalarParams &) lea rdi, [rsp+0D8h+var_A0] lea r14, [rsp+0D8h+var_80] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r14]; void * lea rax, [rsp+0D8h+var_70] cmp rdi, rax jz short loc_68A6E mov rsi, [rsp+0D8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_68A6E: mov al, [rsp+0D8h+var_A8] mov [rbx+0D2h], al xor eax, eax mov [rbx+0D3h], al mov rcx, 1300000000h lea rdi, [rsp+0D8h+var_68] mov [rdi-18h], rcx mov [rdi-10h], r12 mov [rdi-8], ebp lea r14, [rsp+0D8h+var_58] mov [r14-10h], r14 mov qword ptr [r14-8], 0 mov [r14], al xorps xmm0, xmm0 movups xmmword ptr [r14+10h], xmm0 movups xmmword ptr [r14+1Ch], xmm0 lea rsi, [rsp+0D8h+var_A0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) sub rbx, 0FFFFFFFFFFFFFF80h lea rsi, [rsp+0D8h+var_80] mov rdi, rbx call _ZNSt5dequeIN4YAML5TokenESaIS1_EE9push_backERKS1_; std::deque<YAML::Token>::push_back(YAML::Token const&) lea rbx, [rsp+0D8h+var_48] mov rdi, rbx call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbx-20h]; void * cmp rdi, r14 jz short loc_68B02 mov rsi, [rsp+0D8h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_68B02: mov rdi, [rsp+0D8h+var_A0]; void * cmp rdi, r15 jz short loc_68B19 mov rsi, [rsp+0D8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_68B19: add rsp, 0B0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_50]; this call _ZN4YAML5TokenD2Ev; YAML::Token::~Token() jmp short loc_68B3D jmp short $+2 loc_68B3A: mov rbx, rax loc_68B3D: mov rdi, [rsp+arg_30]; void * cmp rdi, r15 jz short loc_68B54 mov rsi, [rsp+arg_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_68B54: mov rdi, rbx call __Unwind_Resume
void YAML::Scanner::ScanPlainScalar(YAML::Scanner *this) { long long v1; // rax int v2; // eax void *v3; // r12 int v4; // ebp long long v5; // [rsp+8h] [rbp-D0h] BYREF char v6; // [rsp+10h] [rbp-C8h] int v7; // [rsp+14h] [rbp-C4h] __int16 v8; // [rsp+18h] [rbp-C0h] char v9; // [rsp+1Ah] [rbp-BEh] int v10; // [rsp+1Ch] [rbp-BCh] char v11; // [rsp+20h] [rbp-B8h] long long v12; // [rsp+24h] [rbp-B4h] int v13; // [rsp+2Ch] [rbp-ACh] char v14; // [rsp+30h] [rbp-A8h] void *v15[2]; // [rsp+38h] [rbp-A0h] BYREF _QWORD v16[2]; // [rsp+48h] [rbp-90h] BYREF void *v17[2]; // [rsp+58h] [rbp-80h] BYREF long long v18; // [rsp+68h] [rbp-70h] BYREF void *v19[2]; // [rsp+70h] [rbp-68h] BYREF _QWORD v20[2]; // [rsp+80h] [rbp-58h] BYREF _BYTE v21[72]; // [rsp+90h] [rbp-48h] BYREF v15[0] = v16; v15[1] = 0LL; LOBYTE(v16[0]) = 0; v9 = 0; v8 = 0; v14 = 0; if ( *((_QWORD *)this + 56) == *((_QWORD *)this + 52) ) v1 = YAML::Exp::ScanScalarEnd(this); else v1 = YAML::Exp::ScanScalarEndInFlow(this); v5 = v1; v6 = 0; v2 = 0; if ( *((_QWORD *)this + 56) == *((_QWORD *)this + 52) ) v2 = YAML::Scanner::GetTopIndent(this) + 1; v7 = v2; v10 = 2; HIBYTE(v8) = 1; v11 = 1; v12 = 0x1FFFFFFFFLL; v13 = 2; YAML::Scanner::InsertPotentialSimpleKey(this); v3 = (void *)*((_QWORD *)this + 1); v4 = *((_DWORD *)this + 4); YAML::ScanScalar[abi:cxx11](v17, this, &v5); std::string::operator=(v15, (long long)v17); if ( v17[0] != &v18 ) operator delete(v17[0], v18 + 1); *((_BYTE *)this + 210) = v14; *((_BYTE *)this + 211) = 0; v17[0] = (void *)0x1300000000LL; v17[1] = v3; LODWORD(v18) = v4; v19[0] = v20; v19[1] = 0LL; LOBYTE(v20[0]) = 0; memset(v21, 0, 28); std::string::_M_assign(v19, v15); std::deque<YAML::Token>::push_back((char *)this + 128, v17); std::vector<std::string>::~vector((long long)v21); if ( v19[0] != v20 ) operator delete(v19[0], v20[0] + 1LL); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); }
ScanPlainScalar: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xb0 MOV RBX,RDI LEA R15,[RSP + 0x48] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 XOR EAX,EAX MOV byte ptr [R15],AL MOV byte ptr [RSP + 0x1a],AL MOV word ptr [RSP + 0x18],0x0 MOV byte ptr [RSP + 0x30],AL MOV RAX,qword ptr [RDI + 0x1c0] CMP RAX,qword ptr [RDI + 0x1a0] JNZ 0x001689cc LAB_001689c5: CALL 0x0016982f JMP 0x001689d1 LAB_001689cc: CALL 0x00169747 LAB_001689d1: MOV qword ptr [RSP + 0x8],RAX MOV byte ptr [RSP + 0x10],0x0 MOV RCX,qword ptr [RBX + 0x1c0] XOR EAX,EAX CMP RCX,qword ptr [RBX + 0x1a0] JNZ 0x001689f7 MOV RDI,RBX CALL 0x00164950 INC EAX LAB_001689f7: MOV dword ptr [RSP + 0x14],EAX MOV EAX,0x2 MOV dword ptr [RSP + 0x1c],EAX MOV CL,0x1 MOV byte ptr [RSP + 0x19],CL MOV byte ptr [RSP + 0x20],CL MOV RCX,0x1ffffffff MOV qword ptr [RSP + 0x24],RCX MOV dword ptr [RSP + 0x2c],EAX MOV RDI,RBX CALL 0x0016aca6 MOV R12,qword ptr [RBX + 0x8] MOV EBP,dword ptr [RBX + 0x10] LAB_00168a30: LEA RDI,[RSP + 0x58] LEA RDX,[RSP + 0x8] MOV RSI,RBX CALL 0x0016f65c LEA RDI,[RSP + 0x38] LEA R14,[RSP + 0x58] MOV RSI,R14 CALL 0x0012c6a0 MOV RDI,qword ptr [R14] LEA RAX,[RSP + 0x68] CMP RDI,RAX JZ 0x00168a6e MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x0012d2d0 LAB_00168a6e: MOV AL,byte ptr [RSP + 0x30] MOV byte ptr [RBX + 0xd2],AL XOR EAX,EAX MOV byte ptr [RBX + 0xd3],AL MOV RCX,0x1300000000 LEA RDI,[RSP + 0x70] MOV qword ptr [RDI + -0x18],RCX MOV qword ptr [RDI + -0x10],R12 MOV dword ptr [RDI + -0x8],EBP LEA R14,[RSP + 0x80] MOV qword ptr [R14 + -0x10],R14 MOV qword ptr [R14 + -0x8],0x0 MOV byte ptr [R14],AL XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x10],XMM0 MOVUPS xmmword ptr [R14 + 0x1c],XMM0 LAB_00168abe: LEA RSI,[RSP + 0x38] CALL 0x0012d240 SUB RBX,-0x80 LEA RSI,[RSP + 0x58] MOV RDI,RBX CALL 0x0016a662 LAB_00168ad9: LEA RBX,[RSP + 0x90] MOV RDI,RBX CALL 0x0014f6b4 MOV RDI,qword ptr [RBX + -0x20] CMP RDI,R14 JZ 0x00168b02 MOV RSI,qword ptr [RSP + 0x80] INC RSI CALL 0x0012d2d0 LAB_00168b02: MOV RDI,qword ptr [RSP + 0x38] CMP RDI,R15 JZ 0x00168b19 MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x0012d2d0 LAB_00168b19: ADD RSP,0xb0 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* YAML::Scanner::ScanPlainScalar() */ void __thiscall YAML::Scanner::ScanPlainScalar(Scanner *this) { int4 uVar1; int8 uVar2; int8 local_d0; int1 local_c8; int local_c4; int2 local_c0; int1 local_be; int4 local_bc; int1 local_b8; int8 local_b4; int4 local_ac; Scanner local_a8; int1 *local_a0; int8 local_98; int1 local_90; int7 uStack_8f; int4 *local_80; int8 local_78; int4 local_70; int4 uStack_6c; int1 *local_68; int8 local_60; int1 local_58; int7 uStack_57; int8 local_48; int4 uStack_40; int4 uStack_3c; int4 uStack_38; int8 uStack_34; local_98 = 0; local_90 = 0; local_be = 0; local_c0 = 0; local_a8 = (Scanner)0x0; local_a0 = &local_90; if (*(long *)(this + 0x1c0) == *(long *)(this + 0x1a0)) { /* try { // try from 001689c5 to 00168a28 has its CatchHandler @ 00168b3a */ local_d0 = Exp::ScanScalarEnd(); } else { local_d0 = Exp::ScanScalarEndInFlow(); } local_c8 = 0; local_c4 = 0; if (*(long *)(this + 0x1c0) == *(long *)(this + 0x1a0)) { local_c4 = GetTopIndent(this); local_c4 = local_c4 + 1; } local_bc = 2; local_c0 = CONCAT11(1,(int1)local_c0); local_b8 = 1; local_b4 = 0x1ffffffff; local_ac = 2; InsertPotentialSimpleKey(this); uVar2 = *(int8 *)(this + 8); uVar1 = *(int4 *)(this + 0x10); /* try { // try from 00168a30 to 00168a41 has its CatchHandler @ 00168b38 */ ScanScalar_abi_cxx11_((YAML *)&local_80,(Stream *)this,(ScanScalarParams *)&local_d0); std::__cxx11::string::operator=((string *)&local_a0,(string *)&local_80); if (local_80 != &local_70) { operator_delete(local_80,CONCAT44(uStack_6c,local_70) + 1); } this[0xd2] = local_a8; this[0xd3] = (Scanner)0x0; local_80 = (int4 *)0x1300000000; local_60 = 0; local_58 = 0; local_48 = 0; uStack_40 = 0; uStack_3c = 0; uStack_38 = 0; uStack_34 = 0; /* try { // try from 00168abe to 00168ad8 has its CatchHandler @ 00168b29 */ local_78 = uVar2; local_70 = uVar1; local_68 = &local_58; std::__cxx11::string::_M_assign((string *)&local_68,(string *)&local_a0); std::deque<YAML::Token,std::allocator<YAML::Token>>::push_back ((deque<YAML::Token,std::allocator<YAML::Token>> *)(this + 0x80),(Token *)&local_80); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_48); if (local_68 != &local_58) { operator_delete(local_68,CONCAT71(uStack_57,local_58) + 1); } if (local_a0 != &local_90) { operator_delete(local_a0,CONCAT71(uStack_8f,local_90) + 1); } return; }
2,166
pcmp
eloqsql/strings/ctype-simple.c
static int pcmp(const void * f, const void * s) { const uni_idx *F= (const uni_idx*) f; const uni_idx *S= (const uni_idx*) s; int res; if (!(res=((S->nchars)-(F->nchars)))) res=((F->uidx.from)-(S->uidx.to)); return res; }
O3
c
pcmp: pushq %rbp movq %rsp, %rbp movl (%rsi), %eax subl (%rdi), %eax jne 0xb6581 movzwl 0x8(%rdi), %eax movzwl 0xa(%rsi), %ecx subl %ecx, %eax popq %rbp retq nop
pcmp: push rbp mov rbp, rsp mov eax, [rsi] sub eax, [rdi] jnz short loc_B6581 movzx eax, word ptr [rdi+8] movzx ecx, word ptr [rsi+0Ah] sub eax, ecx loc_B6581: pop rbp retn
long long pcmp(long long a1, long long a2) { long long result; // rax result = (unsigned int)(*(_DWORD *)a2 - *(_DWORD *)a1); if ( *(_DWORD *)a2 == *(_DWORD *)a1 ) return *(unsigned __int16 *)(a1 + 8) - (unsigned int)*(unsigned __int16 *)(a2 + 10); return result; }
pcmp: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RSI] SUB EAX,dword ptr [RDI] JNZ 0x001b6581 MOVZX EAX,word ptr [RDI + 0x8] MOVZX ECX,word ptr [RSI + 0xa] SUB EAX,ECX LAB_001b6581: POP RBP RET
int pcmp(int *param_1,int *param_2) { int iVar1; iVar1 = *param_2 - *param_1; if (iVar1 == 0) { iVar1 = (uint)*(ushort *)(param_1 + 2) - (uint)*(ushort *)((long)param_2 + 10); } return iVar1; }
2,167
set_prealloc_root
eloqsql/mysys/my_alloc.c
void set_prealloc_root(MEM_ROOT *root, char *ptr) { USED_MEM *next; for (next=root->used; next ; next=next->next) { if ((char*) next <= ptr && (char*) next + next->size > ptr) { root->pre_alloc=next; return; } } for (next=root->free ; next ; next=next->next) { if ((char*) next <= ptr && (char*) next + next->size > ptr) { root->pre_alloc=next; return; } } }
O3
c
set_prealloc_root: pushq %rbp movq %rsp, %rbp movq 0x8(%rdi), %rax testq %rax, %rax je 0x32e4e cmpq %rsi, %rax ja 0x32e49 movq 0x10(%rax), %rcx addq %rax, %rcx cmpq %rsi, %rcx ja 0x32e6c movq (%rax), %rax jmp 0x32e33 movq (%rdi), %rax testq %rax, %rax je 0x32e70 cmpq %rsi, %rax ja 0x32e67 movq 0x10(%rax), %rcx addq %rax, %rcx cmpq %rsi, %rcx ja 0x32e6c movq (%rax), %rax jmp 0x32e51 movq %rax, 0x10(%rdi) popq %rbp retq
set_prealloc_root: push rbp mov rbp, rsp mov rax, [rdi+8] loc_32E33: test rax, rax jz short loc_32E4E cmp rax, rsi ja short loc_32E49 mov rcx, [rax+10h] add rcx, rax cmp rcx, rsi ja short loc_32E6C loc_32E49: mov rax, [rax] jmp short loc_32E33 loc_32E4E: mov rax, [rdi] loc_32E51: test rax, rax jz short loc_32E70 cmp rax, rsi ja short loc_32E67 mov rcx, [rax+10h] add rcx, rax cmp rcx, rsi ja short loc_32E6C loc_32E67: mov rax, [rax] jmp short loc_32E51 loc_32E6C: mov [rdi+10h], rax loc_32E70: pop rbp retn
_QWORD * set_prealloc_root(_QWORD *a1, unsigned long long a2) { _QWORD *result; // rax for ( result = (_QWORD *)a1[1]; result; result = (_QWORD *)*result ) { if ( (unsigned long long)result <= a2 && (unsigned long long)result + result[2] > a2 ) { LABEL_11: a1[2] = result; return result; } } for ( result = (_QWORD *)*a1; result; result = (_QWORD *)*result ) { if ( (unsigned long long)result <= a2 && (unsigned long long)result + result[2] > a2 ) goto LABEL_11; } return result; }
set_prealloc_root: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI + 0x8] LAB_00132e33: TEST RAX,RAX JZ 0x00132e4e CMP RAX,RSI JA 0x00132e49 MOV RCX,qword ptr [RAX + 0x10] ADD RCX,RAX CMP RCX,RSI JA 0x00132e6c LAB_00132e49: MOV RAX,qword ptr [RAX] JMP 0x00132e33 LAB_00132e4e: MOV RAX,qword ptr [RDI] LAB_00132e51: TEST RAX,RAX JZ 0x00132e70 CMP RAX,RSI JA 0x00132e67 MOV RCX,qword ptr [RAX + 0x10] ADD RCX,RAX CMP RCX,RSI JA 0x00132e6c LAB_00132e67: MOV RAX,qword ptr [RAX] JMP 0x00132e51 LAB_00132e6c: MOV qword ptr [RDI + 0x10],RAX LAB_00132e70: POP RBP RET
void set_prealloc_root(int8 *param_1,int8 *param_2) { int8 *puVar1; for (puVar1 = (int8 *)param_1[1]; puVar1 != (int8 *)0x0; puVar1 = (int8 *)*puVar1) { if ((puVar1 <= param_2) && (param_2 < (int8 *)(puVar1[2] + (long)puVar1))) goto LAB_00132e6c; } puVar1 = (int8 *)*param_1; while( true ) { if (puVar1 == (int8 *)0x0) { return; } if ((puVar1 <= param_2) && (param_2 < (int8 *)(puVar1[2] + (long)puVar1))) break; puVar1 = (int8 *)*puVar1; } LAB_00132e6c: param_1[2] = puVar1; return; }
2,168
ImPlot3D::PlotToNDC(ImPlot3DPoint const&)
zkingston[P]unknot/build_O0/_deps/implot3d-src/implot3d.cpp
ImPlot3DPoint PlotToNDC(const ImPlot3DPoint& point) { ImPlot3DContext& gp = *GImPlot3D; IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "PlotToNDC() needs to be called between BeginPlot() and EndPlot()!"); ImPlot3DPlot& plot = *gp.CurrentPlot; SetupLock(); ImPlot3DPoint ndc_point; for (int i = 0; i < 3; i++) { ImPlot3DAxis& axis = plot.Axes[i]; float ndc_range = 0.5f * plot.BoxScale[i]; float t = (point[i] - axis.Range.Min) / (axis.Range.Max - axis.Range.Min); t *= plot.BoxScale[i]; ndc_point[i] = ImPlot3D::ImHasFlag(axis.Flags, ImPlot3DAxisFlags_Invert) ? (ndc_range - t) : (t - ndc_range); } return ndc_point; }
O0
cpp
ImPlot3D::PlotToNDC(ImPlot3DPoint const&): subq $0x58, %rsp movq %rdi, 0x40(%rsp) movq 0x5c3008(%rip), %rax # 0x68f638 movq %rax, 0x38(%rsp) movq 0x38(%rsp), %rax cmpq $0x0, 0x28(%rax) jne 0xcc655 leaq 0x5060c1(%rip), %rdi # 0x5d2709 callq 0x4f7220 testb $0x1, %al jne 0xcc653 jmp 0xcc655 jmp 0xcc655 jmp 0xcc657 movq 0x38(%rsp), %rax movq 0x28(%rax), %rax movq %rax, 0x30(%rsp) callq 0xd09c0 leaq 0x4c(%rsp), %rdi callq 0xd8c20 movl $0x0, 0x2c(%rsp) cmpl $0x3, 0x2c(%rsp) jge 0xcc796 movq 0x30(%rsp), %rax addq $0x78, %rax movslq 0x2c(%rsp), %rcx imulq $0x70, %rcx, %rcx addq %rcx, %rax movq %rax, 0x20(%rsp) movq 0x30(%rsp), %rdi addq $0x1c8, %rdi # imm = 0x1C8 movslq 0x2c(%rsp), %rsi callq 0xd8b30 movss 0x4ff961(%rip), %xmm0 # 0x5cc020 mulss (%rax), %xmm0 movss %xmm0, 0x1c(%rsp) movq 0x40(%rsp), %rdi movslq 0x2c(%rsp), %rsi callq 0xd99d0 movq 0x20(%rsp), %rax subss 0x8(%rax), %xmm0 movq 0x20(%rsp), %rax movss 0xc(%rax), %xmm1 movq 0x20(%rsp), %rax subss 0x8(%rax), %xmm1 divss %xmm1, %xmm0 movss %xmm0, 0x18(%rsp) movq 0x30(%rsp), %rdi addq $0x1c8, %rdi # imm = 0x1C8 movslq 0x2c(%rsp), %rsi callq 0xd8b30 movss (%rax), %xmm0 mulss 0x18(%rsp), %xmm0 movss %xmm0, 0x18(%rsp) movq 0x20(%rsp), %rax movl (%rax), %edi movl $0x80, %esi callq 0xcbc10 testb $0x1, %al jne 0xcc73d jmp 0xcc751 movss 0x1c(%rsp), %xmm0 subss 0x18(%rsp), %xmm0 movss %xmm0, 0x4(%rsp) jmp 0xcc763 movss 0x18(%rsp), %xmm0 subss 0x1c(%rsp), %xmm0 movss %xmm0, 0x4(%rsp) movss 0x4(%rsp), %xmm0 movss %xmm0, (%rsp) movslq 0x2c(%rsp), %rsi leaq 0x4c(%rsp), %rdi callq 0xd8b30 movss (%rsp), %xmm0 movss %xmm0, (%rax) movl 0x2c(%rsp), %eax addl $0x1, %eax movl %eax, 0x2c(%rsp) jmp 0xcc67c movl 0x54(%rsp), %eax movl %eax, 0x10(%rsp) movq 0x4c(%rsp), %rax movq %rax, 0x8(%rsp) movsd 0x8(%rsp), %xmm0 movss 0x10(%rsp), %xmm1 addq $0x58, %rsp retq nopl (%rax)
_ZN8ImPlot3D9PlotToNDCERK13ImPlot3DPoint: sub rsp, 58h mov [rsp+58h+var_18], rdi mov rax, cs:_ZN8ImPlot3D9GImPlot3DE; ImPlot3D::GImPlot3D mov [rsp+58h+var_20], rax mov rax, [rsp+58h+var_20] cmp qword ptr [rax+28h], 0 jnz short loc_CC655 lea rdi, aPlottondcNeeds; "PlotToNDC() needs to be called between "... call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*) test al, 1 jnz short loc_CC653 jmp short loc_CC655 loc_CC653: jmp short $+2 loc_CC655: jmp short $+2 loc_CC657: mov rax, [rsp+58h+var_20] mov rax, [rax+28h] mov [rsp+58h+var_28], rax call _ZN8ImPlot3D9SetupLockEv; ImPlot3D::SetupLock(void) lea rdi, [rsp+58h+var_C]; this call _ZN13ImPlot3DPointC2Ev; ImPlot3DPoint::ImPlot3DPoint(void) mov [rsp+58h+var_2C], 0 loc_CC67C: cmp [rsp+58h+var_2C], 3 jge loc_CC796 mov rax, [rsp+58h+var_28] add rax, 78h ; 'x' movsxd rcx, [rsp+58h+var_2C] imul rcx, 70h ; 'p' add rax, rcx mov [rsp+58h+var_38], rax mov rdi, [rsp+58h+var_28] add rdi, 1C8h movsxd rsi, [rsp+58h+var_2C] call _ZN13ImPlot3DPointixEm; ImPlot3DPoint::operator[](ulong) movss xmm0, cs:flt_5CC020 mulss xmm0, dword ptr [rax] movss [rsp+58h+var_3C], xmm0 mov rdi, [rsp+58h+var_18] movsxd rsi, [rsp+58h+var_2C] call _ZNK13ImPlot3DPointixEm; ImPlot3DPoint::operator[](ulong) mov rax, [rsp+58h+var_38] subss xmm0, dword ptr [rax+8] mov rax, [rsp+58h+var_38] movss xmm1, dword ptr [rax+0Ch] mov rax, [rsp+58h+var_38] subss xmm1, dword ptr [rax+8] divss xmm0, xmm1 movss [rsp+58h+var_40], xmm0 mov rdi, [rsp+58h+var_28] add rdi, 1C8h movsxd rsi, [rsp+58h+var_2C] call _ZN13ImPlot3DPointixEm; ImPlot3DPoint::operator[](ulong) movss xmm0, dword ptr [rax] mulss xmm0, [rsp+58h+var_40] movss [rsp+58h+var_40], xmm0 mov rax, [rsp+58h+var_38] mov edi, [rax] mov esi, 80h call _ZN8ImPlot3DL9ImHasFlagIi18ImPlot3DAxisFlags_EEbT_T0_; ImPlot3D::ImHasFlag<int,ImPlot3DAxisFlags_>(int,ImPlot3DAxisFlags_) test al, 1 jnz short loc_CC73D jmp short loc_CC751 loc_CC73D: movss xmm0, [rsp+58h+var_3C] subss xmm0, [rsp+58h+var_40] movss [rsp+58h+var_54], xmm0 jmp short loc_CC763 loc_CC751: movss xmm0, [rsp+58h+var_40] subss xmm0, [rsp+58h+var_3C] movss [rsp+58h+var_54], xmm0 loc_CC763: movss xmm0, [rsp+58h+var_54] movss [rsp+58h+var_58], xmm0 movsxd rsi, [rsp+58h+var_2C] lea rdi, [rsp+58h+var_C] call _ZN13ImPlot3DPointixEm; ImPlot3DPoint::operator[](ulong) movss xmm0, [rsp+58h+var_58] movss dword ptr [rax], xmm0 mov eax, [rsp+58h+var_2C] add eax, 1 mov [rsp+58h+var_2C], eax jmp loc_CC67C loc_CC796: mov eax, [rsp+58h+var_4] mov [rsp+58h+var_48], eax mov rax, [rsp+58h+var_C] mov [rsp+58h+var_50], rax movsd xmm0, [rsp+58h+var_50] movss xmm1, [rsp+58h+var_48] add rsp, 58h retn
double ImPlot3D::PlotToNDC(ImPlot3D *this, const ImPlot3DPoint *a2) { float v3; // [rsp+4h] [rbp-54h] float v4; // [rsp+18h] [rbp-40h] float v5; // [rsp+18h] [rbp-40h] float v6; // [rsp+1Ch] [rbp-3Ch] long long v7; // [rsp+20h] [rbp-38h] int i; // [rsp+2Ch] [rbp-2Ch] long long v9; // [rsp+30h] [rbp-28h] long long v10; // [rsp+38h] [rbp-20h] ImPlot3D *v11; // [rsp+40h] [rbp-18h] double v12; // [rsp+4Ch] [rbp-Ch] BYREF v11 = this; v10 = ImPlot3D::GImPlot3D; if ( !*(_QWORD *)(ImPlot3D::GImPlot3D + 40) ) { this = (ImPlot3D *)"PlotToNDC() needs to be called between BeginPlot() and EndPlot()!"; ImGui::ErrorLog((ImGui *)"PlotToNDC() needs to be called between BeginPlot() and EndPlot()!", (const char *)a2); } v9 = *(_QWORD *)(v10 + 40); ImPlot3D::SetupLock(this); ImPlot3DPoint::ImPlot3DPoint((ImPlot3DPoint *)&v12); for ( i = 0; i < 3; ++i ) { v7 = 112LL * i + v9 + 120; v6 = 0.5 * *(float *)ImPlot3DPoint::operator[](v9 + 456, i); v4 = (float)(ImPlot3DPoint::operator[](v11, i) - *(float *)(v7 + 8)) / (float)(*(float *)(v7 + 12) - *(float *)(v7 + 8)); v5 = *(float *)ImPlot3DPoint::operator[](v9 + 456, i) * v4; if ( ImPlot3D::ImHasFlag<int,ImPlot3DAxisFlags_>(*(_DWORD *)v7, 128) ) v3 = v6 - v5; else v3 = v5 - v6; *(float *)ImPlot3DPoint::operator[](&v12, i) = v3; } return v12; }
PlotToNDC: SUB RSP,0x58 MOV qword ptr [RSP + 0x40],RDI MOV RAX,qword ptr [0x0078f638] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x38] CMP qword ptr [RAX + 0x28],0x0 JNZ 0x001cc655 LEA RDI,[0x6d2709] CALL 0x005f7220 TEST AL,0x1 JNZ 0x001cc653 JMP 0x001cc655 LAB_001cc653: JMP 0x001cc655 LAB_001cc655: JMP 0x001cc657 LAB_001cc657: MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RSP + 0x30],RAX CALL 0x001d09c0 LEA RDI,[RSP + 0x4c] CALL 0x001d8c20 MOV dword ptr [RSP + 0x2c],0x0 LAB_001cc67c: CMP dword ptr [RSP + 0x2c],0x3 JGE 0x001cc796 MOV RAX,qword ptr [RSP + 0x30] ADD RAX,0x78 MOVSXD RCX,dword ptr [RSP + 0x2c] IMUL RCX,RCX,0x70 ADD RAX,RCX MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x1c8 MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x001d8b30 MOVSS XMM0,dword ptr [0x006cc020] MULSS XMM0,dword ptr [RAX] MOVSS dword ptr [RSP + 0x1c],XMM0 MOV RDI,qword ptr [RSP + 0x40] MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x001d99d0 MOV RAX,qword ptr [RSP + 0x20] SUBSS XMM0,dword ptr [RAX + 0x8] MOV RAX,qword ptr [RSP + 0x20] MOVSS XMM1,dword ptr [RAX + 0xc] MOV RAX,qword ptr [RSP + 0x20] SUBSS XMM1,dword ptr [RAX + 0x8] DIVSS XMM0,XMM1 MOVSS dword ptr [RSP + 0x18],XMM0 MOV RDI,qword ptr [RSP + 0x30] ADD RDI,0x1c8 MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x001d8b30 MOVSS XMM0,dword ptr [RAX] MULSS XMM0,dword ptr [RSP + 0x18] MOVSS dword ptr [RSP + 0x18],XMM0 MOV RAX,qword ptr [RSP + 0x20] MOV EDI,dword ptr [RAX] MOV ESI,0x80 CALL 0x001cbc10 TEST AL,0x1 JNZ 0x001cc73d JMP 0x001cc751 LAB_001cc73d: MOVSS XMM0,dword ptr [RSP + 0x1c] SUBSS XMM0,dword ptr [RSP + 0x18] MOVSS dword ptr [RSP + 0x4],XMM0 JMP 0x001cc763 LAB_001cc751: MOVSS XMM0,dword ptr [RSP + 0x18] SUBSS XMM0,dword ptr [RSP + 0x1c] MOVSS dword ptr [RSP + 0x4],XMM0 LAB_001cc763: MOVSS XMM0,dword ptr [RSP + 0x4] MOVSS dword ptr [RSP],XMM0 MOVSXD RSI,dword ptr [RSP + 0x2c] LEA RDI,[RSP + 0x4c] CALL 0x001d8b30 MOVSS XMM0,dword ptr [RSP] MOVSS dword ptr [RAX],XMM0 MOV EAX,dword ptr [RSP + 0x2c] ADD EAX,0x1 MOV dword ptr [RSP + 0x2c],EAX JMP 0x001cc67c LAB_001cc796: MOV EAX,dword ptr [RSP + 0x54] MOV dword ptr [RSP + 0x10],EAX MOV RAX,qword ptr [RSP + 0x4c] MOV qword ptr [RSP + 0x8],RAX MOVSD XMM0,qword ptr [RSP + 0x8] MOVSS XMM1,dword ptr [RSP + 0x10] ADD RSP,0x58 RET
/* ImPlot3D::PlotToNDC(ImPlot3DPoint const&) */ int8 ImPlot3D::PlotToNDC(ImPlot3DPoint *param_1) { float fVar1; float fVar2; float fVar3; long lVar4; bool bVar5; int4 *puVar6; float *pfVar7; float fVar8; float fVar9; float local_54; int local_2c; int8 local_c; lVar4 = GImPlot3D; if (*(long *)(GImPlot3D + 0x28) == 0) { ImGui::ErrorLog("PlotToNDC() needs to be called between BeginPlot() and EndPlot()!"); } lVar4 = *(long *)(lVar4 + 0x28); SetupLock(); ImPlot3DPoint::ImPlot3DPoint((ImPlot3DPoint *)&local_c); for (local_2c = 0; local_2c < 3; local_2c = local_2c + 1) { puVar6 = (int4 *)(lVar4 + 0x78 + (long)local_2c * 0x70); pfVar7 = (float *)ImPlot3DPoint::operator[]((ImPlot3DPoint *)(lVar4 + 0x1c8),(long)local_2c); fVar8 = DAT_006cc020 * *pfVar7; fVar9 = (float)ImPlot3DPoint::operator[](param_1,(long)local_2c); fVar1 = (float)puVar6[2]; fVar2 = (float)puVar6[3]; fVar3 = (float)puVar6[2]; pfVar7 = (float *)ImPlot3DPoint::operator[]((ImPlot3DPoint *)(lVar4 + 0x1c8),(long)local_2c); local_54 = *pfVar7 * ((fVar9 - fVar1) / (fVar2 - fVar3)); bVar5 = ImHasFlag<int,ImPlot3DAxisFlags_>(*puVar6,0x80); if (bVar5) { local_54 = fVar8 - local_54; } else { local_54 = local_54 - fVar8; } pfVar7 = (float *)ImPlot3DPoint::operator[]((ImPlot3DPoint *)&local_c,(long)local_2c); *pfVar7 = local_54; } return local_c; }
2,169
js_async_generator_resume_next
bluesky950520[P]quickjs/quickjs.c
static void js_async_generator_resume_next(JSContext *ctx, JSAsyncGeneratorData *s) { JSAsyncGeneratorRequest *next; JSValue func_ret, value; for(;;) { if (list_empty(&s->queue)) break; next = list_entry(s->queue.next, JSAsyncGeneratorRequest, link); switch(s->state) { case JS_ASYNC_GENERATOR_STATE_EXECUTING: /* only happens when restarting execution after await() */ goto resume_exec; case JS_ASYNC_GENERATOR_STATE_AWAITING_RETURN: goto done; case JS_ASYNC_GENERATOR_STATE_SUSPENDED_START: if (next->completion_type == GEN_MAGIC_NEXT) { goto exec_no_arg; } else { js_async_generator_complete(ctx, s); } break; case JS_ASYNC_GENERATOR_STATE_COMPLETED: if (next->completion_type == GEN_MAGIC_NEXT) { js_async_generator_resolve(ctx, s, JS_UNDEFINED, TRUE); } else if (next->completion_type == GEN_MAGIC_RETURN) { s->state = JS_ASYNC_GENERATOR_STATE_AWAITING_RETURN; js_async_generator_completed_return(ctx, s, next->result); } else { js_async_generator_reject(ctx, s, next->result); } goto done; case JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD: case JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD_STAR: value = js_dup(next->result); if (next->completion_type == GEN_MAGIC_THROW && s->state == JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD) { JS_Throw(ctx, value); s->func_state.throw_flag = TRUE; } else { /* 'yield' returns a value. 'yield *' also returns a value in case the 'throw' method is called */ s->func_state.frame.cur_sp[-1] = value; s->func_state.frame.cur_sp[0] = js_int32(next->completion_type); s->func_state.frame.cur_sp++; exec_no_arg: s->func_state.throw_flag = FALSE; } s->state = JS_ASYNC_GENERATOR_STATE_EXECUTING; resume_exec: func_ret = async_func_resume(ctx, &s->func_state); if (JS_IsException(func_ret)) { value = JS_GetException(ctx); js_async_generator_complete(ctx, s); js_async_generator_reject(ctx, s, value); JS_FreeValue(ctx, value); } else if (JS_VALUE_GET_TAG(func_ret) == JS_TAG_INT) { int func_ret_code, ret; value = s->func_state.frame.cur_sp[-1]; s->func_state.frame.cur_sp[-1] = JS_UNDEFINED; func_ret_code = JS_VALUE_GET_INT(func_ret); switch(func_ret_code) { case FUNC_RET_YIELD: case FUNC_RET_YIELD_STAR: if (func_ret_code == FUNC_RET_YIELD_STAR) s->state = JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD_STAR; else s->state = JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD; js_async_generator_resolve(ctx, s, value, FALSE); JS_FreeValue(ctx, value); break; case FUNC_RET_AWAIT: ret = js_async_generator_await(ctx, s, value); JS_FreeValue(ctx, value); if (ret < 0) { /* exception: throw it */ s->func_state.throw_flag = TRUE; goto resume_exec; } goto done; default: abort(); } } else { assert(JS_IsUndefined(func_ret)); /* end of function */ value = s->func_state.frame.cur_sp[-1]; s->func_state.frame.cur_sp[-1] = JS_UNDEFINED; js_async_generator_complete(ctx, s); js_async_generator_resolve(ctx, s, value, TRUE); JS_FreeValue(ctx, value); } break; default: abort(); } } done: ; }
O0
c
js_async_generator_resume_next: subq $0xd8, %rsp movq %rdi, 0xd0(%rsp) movq %rsi, 0xc8(%rsp) movq 0xc8(%rsp), %rdi addq $0x78, %rdi callq 0x227f0 cmpl $0x0, %eax je 0x95892 jmp 0x95e08 movq 0xc8(%rsp), %rax movq 0x80(%rax), %rax movq %rax, 0xc0(%rsp) movq 0xc8(%rsp), %rax movl 0x8(%rax), %eax movq %rax, 0x10(%rsp) subq $0x5, %rax ja 0x95dfe movq 0x10(%rsp), %rax leaq 0x74261(%rip), %rcx # 0x109b30 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax jmp 0x95b07 jmp 0x95e0a movq 0xc0(%rsp), %rax cmpl $0x0, 0x10(%rax) jne 0x958f5 jmp 0x95ae9 movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi callq 0x95e20 jmp 0x95e03 movq 0xc0(%rsp), %rax cmpl $0x0, 0x10(%rax) jne 0x95961 movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi movl $0x0, 0x90(%rsp) movq $0x3, 0x98(%rsp) movq 0x90(%rsp), %rdx movq 0x98(%rsp), %rcx movl $0x1, %r8d callq 0x95e70 jmp 0x959cc movq 0xc0(%rsp), %rax cmpl $0x1, 0x10(%rax) jne 0x959a5 movq 0xc8(%rsp), %rax movl $0x4, 0x8(%rax) movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi movq 0xc0(%rsp), %rax movq 0x18(%rax), %rdx movq 0x20(%rax), %rcx callq 0x95f20 jmp 0x959ca movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi movq 0xc0(%rsp), %rax movq 0x18(%rax), %rdx movq 0x20(%rax), %rcx callq 0x961d0 jmp 0x959cc jmp 0x95e0a movq 0xc0(%rsp), %rax movq 0x18(%rax), %rdi movq 0x20(%rax), %rsi callq 0x20410 movq %rax, 0x80(%rsp) movq %rdx, 0x88(%rsp) movq 0x80(%rsp), %rax movq %rax, 0xa0(%rsp) movq 0x88(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0xc0(%rsp), %rax cmpl $0x2, 0x10(%rax) jne 0x95a6d movq 0xc8(%rsp), %rax cmpl $0x1, 0x8(%rax) jne 0x95a6d movq 0xd0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x2bc40 movq %rax, 0x70(%rsp) movq %rdx, 0x78(%rsp) movq 0xc8(%rsp), %rax movl $0x1, 0x24(%rax) jmp 0x95af8 movq 0xc8(%rsp), %rax movq 0x70(%rax), %rax movq 0xa0(%rsp), %rcx movq %rcx, -0x10(%rax) movq 0xa8(%rsp), %rcx movq %rcx, -0x8(%rax) movq 0xc8(%rsp), %rax movq 0x70(%rax), %rax movq %rax, 0x8(%rsp) movq 0xc0(%rsp), %rax movl 0x10(%rax), %edi callq 0x32a00 movq %rax, %rcx movq 0x8(%rsp), %rax movq %rcx, 0x60(%rsp) movq %rdx, 0x68(%rsp) movq 0x60(%rsp), %rcx movq %rcx, (%rax) movq 0x68(%rsp), %rcx movq %rcx, 0x8(%rax) movq 0xc8(%rsp), %rax movq 0x70(%rax), %rcx addq $0x10, %rcx movq %rcx, 0x70(%rax) movq 0xc8(%rsp), %rax movl $0x0, 0x24(%rax) movq 0xc8(%rsp), %rax movl $0x3, 0x8(%rax) movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi addq $0x10, %rsi callq 0x71060 movq %rax, 0x50(%rsp) movq %rdx, 0x58(%rsp) movq 0x50(%rsp), %rax movq %rax, 0xb0(%rsp) movq 0x58(%rsp), %rax movq %rax, 0xb8(%rsp) movq 0xb0(%rsp), %rdi movq 0xb8(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0x95bef movq 0xd0(%rsp), %rdi callq 0x2bcb0 movq %rax, 0x40(%rsp) movq %rdx, 0x48(%rsp) movq 0x40(%rsp), %rax movq %rax, 0xa0(%rsp) movq 0x48(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi callq 0x95e20 movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi movq 0xa0(%rsp), %rdx movq 0xa8(%rsp), %rcx callq 0x961d0 movq 0xd0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x229d0 jmp 0x95dfc movq 0xb8(%rsp), %rax cmpl $0x0, %eax jne 0x95d4a movq 0xc8(%rsp), %rax movq 0x70(%rax), %rax movups -0x10(%rax), %xmm0 movaps %xmm0, 0xa0(%rsp) movq 0xc8(%rsp), %rax movq 0x70(%rax), %rax movl $0x0, 0x28(%rsp) movq $0x3, 0x30(%rsp) movups 0x28(%rsp), %xmm0 movups %xmm0, -0x10(%rax) movl 0xb0(%rsp), %eax movl %eax, 0x3c(%rsp) movl 0x3c(%rsp), %eax movl %eax, 0x4(%rsp) testl %eax, %eax je 0x95cda jmp 0x95c5b movl 0x4(%rsp), %eax decl %eax subl $0x1, %eax ja 0x95d40 jmp 0x95c6c cmpl $0x2, 0x3c(%rsp) jne 0x95c84 movq 0xc8(%rsp), %rax movl $0x2, 0x8(%rax) jmp 0x95c93 movq 0xc8(%rsp), %rax movl $0x1, 0x8(%rax) movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi movq 0xa0(%rsp), %rdx movq 0xa8(%rsp), %rcx xorl %r8d, %r8d callq 0x95e70 movq 0xd0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x229d0 jmp 0x95d45 movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi movq 0xa0(%rsp), %rdx movq 0xa8(%rsp), %rcx callq 0x96210 movl %eax, 0x38(%rsp) movq 0xd0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x229d0 cmpl $0x0, 0x38(%rsp) jge 0x95d3b movq 0xc8(%rsp), %rax movl $0x1, 0x24(%rax) jmp 0x95b07 jmp 0x95e0a callq 0xe090 jmp 0x95dfa movq 0xc8(%rsp), %rax movq 0x70(%rax), %rax movq -0x10(%rax), %rcx movq %rcx, 0xa0(%rsp) movq -0x8(%rax), %rax movq %rax, 0xa8(%rsp) movq 0xc8(%rsp), %rax movq 0x70(%rax), %rax movl $0x0, 0x18(%rsp) movq $0x3, 0x20(%rsp) movq 0x18(%rsp), %rcx movq %rcx, -0x10(%rax) movq 0x20(%rsp), %rcx movq %rcx, -0x8(%rax) movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi callq 0x95e20 movq 0xd0(%rsp), %rdi movq 0xc8(%rsp), %rsi movq 0xa0(%rsp), %rdx movq 0xa8(%rsp), %rcx movl $0x1, %r8d callq 0x95e70 movq 0xd0(%rsp), %rdi movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx callq 0x229d0 jmp 0x95dfc jmp 0x95e03 callq 0xe090 jmp 0x95877 jmp 0x95e0a addq $0xd8, %rsp retq nopw %cs:(%rax,%rax)
js_async_generator_resume_next: sub rsp, 0D8h mov [rsp+0D8h+var_8], rdi mov [rsp+0D8h+var_10], rsi loc_95877: mov rdi, [rsp+0D8h+var_10] add rdi, 78h ; 'x' call list_empty_0 cmp eax, 0 jz short loc_95892 jmp loc_95E08 loc_95892: mov rax, [rsp+0D8h+var_10] mov rax, [rax+80h] mov [rsp+0D8h+var_18], rax mov rax, [rsp+0D8h+var_10] mov eax, [rax+8] mov [rsp+0D8h+var_C8], rax sub rax, 5; switch 6 cases ja def_958D6; jumptable 00000000000958D6 default case mov rax, [rsp+0D8h+var_C8] lea rcx, jpt_958D6 movsxd rax, ds:(jpt_958D6 - 109B30h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_958D8: jmp loc_95B07; jumptable 00000000000958D6 case 3 loc_958DD: jmp loc_95E0A; jumptable 00000000000958D6 case 4 loc_958E2: mov rax, [rsp+0D8h+var_18]; jumptable 00000000000958D6 case 0 cmp dword ptr [rax+10h], 0 jnz short loc_958F5 jmp loc_95AE9 loc_958F5: mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] call js_async_generator_complete jmp loc_95E03 loc_9590F: mov rax, [rsp+0D8h+var_18]; jumptable 00000000000958D6 case 5 cmp dword ptr [rax+10h], 0 jnz short loc_95961 mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] mov dword ptr [rsp+0D8h+var_48], 0 mov [rsp+0D8h+var_40], 3 mov rdx, [rsp+0D8h+var_48] mov rcx, [rsp+0D8h+var_40] mov r8d, 1 call js_async_generator_resolve jmp short loc_959CC loc_95961: mov rax, [rsp+0D8h+var_18] cmp dword ptr [rax+10h], 1 jnz short loc_959A5 mov rax, [rsp+0D8h+var_10] mov dword ptr [rax+8], 4 mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] mov rax, [rsp+0D8h+var_18] mov rdx, [rax+18h] mov rcx, [rax+20h] call js_async_generator_completed_return jmp short loc_959CA loc_959A5: mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] mov rax, [rsp+0D8h+var_18] mov rdx, [rax+18h] mov rcx, [rax+20h] call js_async_generator_reject loc_959CA: jmp short $+2 loc_959CC: jmp loc_95E0A loc_959D1: mov rax, [rsp+0D8h+var_18]; jumptable 00000000000958D6 cases 1,2 mov rdi, [rax+18h] mov rsi, [rax+20h] call js_dup mov [rsp+0D8h+var_58], rax mov [rsp+0D8h+var_50], rdx mov rax, [rsp+0D8h+var_58] mov qword ptr [rsp+0D8h+var_38], rax mov rax, [rsp+0D8h+var_50] mov qword ptr [rsp+0D8h+var_38+8], rax mov rax, [rsp+0D8h+var_18] cmp dword ptr [rax+10h], 2 jnz short loc_95A6D mov rax, [rsp+0D8h+var_10] cmp dword ptr [rax+8], 1 jnz short loc_95A6D mov rdi, [rsp+0D8h+var_8] mov rsi, qword ptr [rsp+0D8h+var_38] mov rdx, qword ptr [rsp+0D8h+var_38+8] call JS_Throw mov [rsp+0D8h+var_68], rax mov [rsp+0D8h+var_60], rdx mov rax, [rsp+0D8h+var_10] mov dword ptr [rax+24h], 1 jmp loc_95AF8 loc_95A6D: mov rax, [rsp+0D8h+var_10] mov rax, [rax+70h] mov rcx, qword ptr [rsp+0D8h+var_38] mov [rax-10h], rcx mov rcx, qword ptr [rsp+0D8h+var_38+8] mov [rax-8], rcx mov rax, [rsp+0D8h+var_10] mov rax, [rax+70h] mov [rsp+0D8h+var_D0], rax mov rax, [rsp+0D8h+var_18] mov edi, [rax+10h] call js_int32 mov rcx, rax mov rax, [rsp+0D8h+var_D0] mov [rsp+0D8h+var_78], rcx mov [rsp+0D8h+var_70], rdx mov rcx, [rsp+0D8h+var_78] mov [rax], rcx mov rcx, [rsp+0D8h+var_70] mov [rax+8], rcx mov rax, [rsp+0D8h+var_10] mov rcx, [rax+70h] add rcx, 10h mov [rax+70h], rcx loc_95AE9: mov rax, [rsp+0D8h+var_10] mov dword ptr [rax+24h], 0 loc_95AF8: mov rax, [rsp+0D8h+var_10] mov dword ptr [rax+8], 3 loc_95B07: mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] add rsi, 10h call async_func_resume mov [rsp+0D8h+var_88], rax mov [rsp+0D8h+var_80], rdx mov rax, [rsp+0D8h+var_88] mov [rsp+0D8h+var_28], rax mov rax, [rsp+0D8h+var_80] mov [rsp+0D8h+var_20], rax mov rdi, [rsp+0D8h+var_28] mov rsi, [rsp+0D8h+var_20] call JS_IsException_1 cmp eax, 0 jz loc_95BEF mov rdi, [rsp+0D8h+var_8] call JS_GetException mov [rsp+0D8h+var_98], rax mov [rsp+0D8h+var_90], rdx mov rax, [rsp+0D8h+var_98] mov qword ptr [rsp+0D8h+var_38], rax mov rax, [rsp+0D8h+var_90] mov qword ptr [rsp+0D8h+var_38+8], rax mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] call js_async_generator_complete mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] mov rdx, qword ptr [rsp+0D8h+var_38] mov rcx, qword ptr [rsp+0D8h+var_38+8] call js_async_generator_reject mov rdi, [rsp+0D8h+var_8] mov rsi, qword ptr [rsp+0D8h+var_38] mov rdx, qword ptr [rsp+0D8h+var_38+8] call JS_FreeValue jmp loc_95DFC loc_95BEF: mov rax, [rsp+0D8h+var_20] cmp eax, 0 jnz loc_95D4A mov rax, [rsp+0D8h+var_10] mov rax, [rax+70h] movups xmm0, xmmword ptr [rax-10h] movaps [rsp+0D8h+var_38], xmm0 mov rax, [rsp+0D8h+var_10] mov rax, [rax+70h] mov dword ptr [rsp+0D8h+var_B0], 0 mov qword ptr [rsp+0D8h+var_B0+8], 3 movups xmm0, [rsp+0D8h+var_B0] movups xmmword ptr [rax-10h], xmm0 mov eax, dword ptr [rsp+0D8h+var_28] mov [rsp+0D8h+var_9C], eax mov eax, [rsp+0D8h+var_9C] mov [rsp+0D8h+var_D4], eax test eax, eax jz loc_95CDA jmp short $+2 loc_95C5B: mov eax, [rsp+0D8h+var_D4] dec eax sub eax, 1 ja loc_95D40 jmp short $+2 loc_95C6C: cmp [rsp+0D8h+var_9C], 2 jnz short loc_95C84 mov rax, [rsp+0D8h+var_10] mov dword ptr [rax+8], 2 jmp short loc_95C93 loc_95C84: mov rax, [rsp+0D8h+var_10] mov dword ptr [rax+8], 1 loc_95C93: mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] mov rdx, qword ptr [rsp+0D8h+var_38] mov rcx, qword ptr [rsp+0D8h+var_38+8] xor r8d, r8d call js_async_generator_resolve mov rdi, [rsp+0D8h+var_8] mov rsi, qword ptr [rsp+0D8h+var_38] mov rdx, qword ptr [rsp+0D8h+var_38+8] call JS_FreeValue jmp short loc_95D45 loc_95CDA: mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] mov rdx, qword ptr [rsp+0D8h+var_38] mov rcx, qword ptr [rsp+0D8h+var_38+8] call js_async_generator_await mov [rsp+0D8h+var_A0], eax mov rdi, [rsp+0D8h+var_8] mov rsi, qword ptr [rsp+0D8h+var_38] mov rdx, qword ptr [rsp+0D8h+var_38+8] call JS_FreeValue cmp [rsp+0D8h+var_A0], 0 jge short loc_95D3B mov rax, [rsp+0D8h+var_10] mov dword ptr [rax+24h], 1 jmp loc_95B07 loc_95D3B: jmp loc_95E0A loc_95D40: call _abort loc_95D45: jmp loc_95DFA loc_95D4A: mov rax, [rsp+0D8h+var_10] mov rax, [rax+70h] mov rcx, [rax-10h] mov qword ptr [rsp+0D8h+var_38], rcx mov rax, [rax-8] mov qword ptr [rsp+0D8h+var_38+8], rax mov rax, [rsp+0D8h+var_10] mov rax, [rax+70h] mov dword ptr [rsp+0D8h+var_C0], 0 mov [rsp+0D8h+var_B8], 3 mov rcx, [rsp+0D8h+var_C0] mov [rax-10h], rcx mov rcx, [rsp+0D8h+var_B8] mov [rax-8], rcx mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] call js_async_generator_complete mov rdi, [rsp+0D8h+var_8] mov rsi, [rsp+0D8h+var_10] mov rdx, qword ptr [rsp+0D8h+var_38] mov rcx, qword ptr [rsp+0D8h+var_38+8] mov r8d, 1 call js_async_generator_resolve mov rdi, [rsp+0D8h+var_8] mov rsi, qword ptr [rsp+0D8h+var_38] mov rdx, qword ptr [rsp+0D8h+var_38+8] call JS_FreeValue loc_95DFA: jmp short $+2 loc_95DFC: jmp short loc_95E03 def_958D6: call _abort; jumptable 00000000000958D6 default case loc_95E03: jmp loc_95877 loc_95E08: jmp short $+2 loc_95E0A: add rsp, 0D8h retn
long long js_async_generator_resume_next( long long a1, long long a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { long long result; // rax double v11; // xmm4_8 double v12; // xmm5_8 __int128 v13; // rax long long v14; // rdx int v15; // edx __int128 v16; // rax long long v17; // rax long long *v18; // [rsp+8h] [rbp-D0h] long long v19; // [rsp+18h] [rbp-C0h] __m128 v20; // [rsp+28h] [rbp-B0h] int v21; // [rsp+38h] [rbp-A0h] const char *v22; // [rsp+50h] [rbp-88h] __int128 v23; // [rsp+A0h] [rbp-38h] __int128 v24; // [rsp+A0h] [rbp-38h] __int128 v25; // [rsp+A0h] [rbp-38h] int v26; // [rsp+B8h] [rbp-20h] long long v27; // [rsp+C0h] [rbp-18h] LABEL_1: while ( 1 ) { result = list_empty_0(a2 + 120); if ( (_DWORD)result ) return result; v27 = *(_QWORD *)(a2 + 128); result = *(unsigned int *)(a2 + 8); switch ( *(_DWORD *)(a2 + 8) ) { case 0: if ( !*(_DWORD *)(v27 + 16) ) goto LABEL_14; js_async_generator_complete(a1, a2); continue; case 1: case 2: *(_QWORD *)&v13 = js_dup(*(_DWORD **)(v27 + 24), *(_QWORD *)(v27 + 32)); if ( *(_DWORD *)(v27 + 16) == 2 && *(_DWORD *)(a2 + 8) == 1 ) { JS_Throw(a1, v13, *((long long *)&v13 + 1)); *(_DWORD *)(a2 + 36) = 1; } else { *(_OWORD *)(*(_QWORD *)(a2 + 112) - 16LL) = v13; v18 = *(long long **)(a2 + 112); *v18 = js_int32(*(_DWORD *)(v27 + 16)); v18[1] = v14; *(_QWORD *)(a2 + 112) += 16LL; LABEL_14: *(_DWORD *)(a2 + 36) = 0; } *(_DWORD *)(a2 + 8) = 3; break; case 3: goto LABEL_16; case 4: return result; case 5: if ( !*(_DWORD *)(v27 + 16) ) return js_async_generator_resolve(a1, a2, 0, 3LL, 1LL); if ( *(_DWORD *)(v27 + 16) != 1 ) return js_async_generator_reject(a1, a2, *(_QWORD *)(v27 + 24), *(_QWORD *)(v27 + 32)); *(_DWORD *)(a2 + 8) = 4; return js_async_generator_completed_return(a1, a2, *(_QWORD *)(v27 + 24), *(_QWORD *)(v27 + 32)); default: abort((const char *)(a2 + 120)); } while ( 1 ) { LABEL_16: v22 = (const char *)async_func_resume(a1, a2 + 16, a3, a4, a5, a6, v11, v12, a9, a10); v26 = v15; if ( JS_IsException_1((long long)v22, v15) ) { *(_QWORD *)&v16 = JS_GetException(a1); v23 = v16; js_async_generator_complete(a1, a2); js_async_generator_reject(a1, a2, v23, *((_QWORD *)&v23 + 1)); JS_FreeValue(a1, v23, *((long long *)&v23 + 1)); goto LABEL_1; } if ( v26 ) { v25 = *(_OWORD *)(*(_QWORD *)(a2 + 112) - 16LL); v17 = *(_QWORD *)(a2 + 112); LODWORD(v19) = 0; *(_QWORD *)(v17 - 16) = v19; *(_QWORD *)(v17 - 8) = 3LL; js_async_generator_complete(a1, a2); js_async_generator_resolve(a1, a2, v25, *((_QWORD *)&v25 + 1), 1LL); JS_FreeValue(a1, v25, *((long long *)&v25 + 1)); goto LABEL_1; } v24 = *(_OWORD *)(*(_QWORD *)(a2 + 112) - 16LL); v20.m128_i32[0] = 0; v20.m128_u64[1] = 3LL; a3 = v20; *(__m128 *)(*(_QWORD *)(a2 + 112) - 16LL) = v20; if ( (_DWORD)v22 ) break; v21 = js_async_generator_await(a1, a2, v24, *((_QWORD *)&v24 + 1)); result = JS_FreeValue(a1, v24, *((long long *)&v24 + 1)); if ( v21 >= 0 ) return result; *(_DWORD *)(a2 + 36) = 1; } if ( (unsigned int)((_DWORD)v22 - 1) > 1 ) abort(v22); if ( (_DWORD)v22 == 2 ) *(_DWORD *)(a2 + 8) = 2; else *(_DWORD *)(a2 + 8) = 1; js_async_generator_resolve(a1, a2, v24, *((_QWORD *)&v24 + 1), 0LL); JS_FreeValue(a1, v24, *((long long *)&v24 + 1)); } }
js_async_generator_resume_next: SUB RSP,0xd8 MOV qword ptr [RSP + 0xd0],RDI MOV qword ptr [RSP + 0xc8],RSI LAB_00195877: MOV RDI,qword ptr [RSP + 0xc8] ADD RDI,0x78 CALL 0x001227f0 CMP EAX,0x0 JZ 0x00195892 JMP 0x00195e08 LAB_00195892: MOV RAX,qword ptr [RSP + 0xc8] MOV RAX,qword ptr [RAX + 0x80] MOV qword ptr [RSP + 0xc0],RAX MOV RAX,qword ptr [RSP + 0xc8] MOV EAX,dword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RAX SUB RAX,0x5 JA 0x00195dfe MOV RAX,qword ptr [RSP + 0x10] LEA RCX,[0x209b30] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_3: JMP 0x00195b07 caseD_4: JMP 0x00195e0a caseD_0: MOV RAX,qword ptr [RSP + 0xc0] CMP dword ptr [RAX + 0x10],0x0 JNZ 0x001958f5 JMP 0x00195ae9 LAB_001958f5: MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] CALL 0x00195e20 JMP 0x00195e03 caseD_5: MOV RAX,qword ptr [RSP + 0xc0] CMP dword ptr [RAX + 0x10],0x0 JNZ 0x00195961 MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] MOV dword ptr [RSP + 0x90],0x0 MOV qword ptr [RSP + 0x98],0x3 MOV RDX,qword ptr [RSP + 0x90] MOV RCX,qword ptr [RSP + 0x98] MOV R8D,0x1 CALL 0x00195e70 JMP 0x001959cc LAB_00195961: MOV RAX,qword ptr [RSP + 0xc0] CMP dword ptr [RAX + 0x10],0x1 JNZ 0x001959a5 MOV RAX,qword ptr [RSP + 0xc8] MOV dword ptr [RAX + 0x8],0x4 MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] MOV RAX,qword ptr [RSP + 0xc0] MOV RDX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RAX + 0x20] CALL 0x00195f20 JMP 0x001959ca LAB_001959a5: MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] MOV RAX,qword ptr [RSP + 0xc0] MOV RDX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RAX + 0x20] CALL 0x001961d0 LAB_001959ca: JMP 0x001959cc LAB_001959cc: JMP 0x00195e0a caseD_1: MOV RAX,qword ptr [RSP + 0xc0] MOV RDI,qword ptr [RAX + 0x18] MOV RSI,qword ptr [RAX + 0x20] CALL 0x00120410 MOV qword ptr [RSP + 0x80],RAX MOV qword ptr [RSP + 0x88],RDX MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0xa0],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0xa8],RAX MOV RAX,qword ptr [RSP + 0xc0] CMP dword ptr [RAX + 0x10],0x2 JNZ 0x00195a6d MOV RAX,qword ptr [RSP + 0xc8] CMP dword ptr [RAX + 0x8],0x1 JNZ 0x00195a6d MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x0012bc40 MOV qword ptr [RSP + 0x70],RAX MOV qword ptr [RSP + 0x78],RDX MOV RAX,qword ptr [RSP + 0xc8] MOV dword ptr [RAX + 0x24],0x1 JMP 0x00195af8 LAB_00195a6d: MOV RAX,qword ptr [RSP + 0xc8] MOV RAX,qword ptr [RAX + 0x70] MOV RCX,qword ptr [RSP + 0xa0] MOV qword ptr [RAX + -0x10],RCX MOV RCX,qword ptr [RSP + 0xa8] MOV qword ptr [RAX + -0x8],RCX MOV RAX,qword ptr [RSP + 0xc8] MOV RAX,qword ptr [RAX + 0x70] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0xc0] MOV EDI,dword ptr [RAX + 0x10] CALL 0x00132a00 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x60],RCX MOV qword ptr [RSP + 0x68],RDX MOV RCX,qword ptr [RSP + 0x60] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP + 0x68] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RSP + 0xc8] MOV RCX,qword ptr [RAX + 0x70] ADD RCX,0x10 MOV qword ptr [RAX + 0x70],RCX LAB_00195ae9: MOV RAX,qword ptr [RSP + 0xc8] MOV dword ptr [RAX + 0x24],0x0 LAB_00195af8: MOV RAX,qword ptr [RSP + 0xc8] MOV dword ptr [RAX + 0x8],0x3 LAB_00195b07: MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] ADD RSI,0x10 CALL 0x00171060 MOV qword ptr [RSP + 0x50],RAX MOV qword ptr [RSP + 0x58],RDX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0xb0],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0xb8],RAX MOV RDI,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xb8] CALL 0x00122a00 CMP EAX,0x0 JZ 0x00195bef MOV RDI,qword ptr [RSP + 0xd0] CALL 0x0012bcb0 MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x48],RDX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0xa0],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0xa8],RAX MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] CALL 0x00195e20 MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] MOV RDX,qword ptr [RSP + 0xa0] MOV RCX,qword ptr [RSP + 0xa8] CALL 0x001961d0 MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x001229d0 JMP 0x00195dfc LAB_00195bef: MOV RAX,qword ptr [RSP + 0xb8] CMP EAX,0x0 JNZ 0x00195d4a MOV RAX,qword ptr [RSP + 0xc8] MOV RAX,qword ptr [RAX + 0x70] MOVUPS XMM0,xmmword ptr [RAX + -0x10] MOVAPS xmmword ptr [RSP + 0xa0],XMM0 MOV RAX,qword ptr [RSP + 0xc8] MOV RAX,qword ptr [RAX + 0x70] MOV dword ptr [RSP + 0x28],0x0 MOV qword ptr [RSP + 0x30],0x3 MOVUPS XMM0,xmmword ptr [RSP + 0x28] MOVUPS xmmword ptr [RAX + -0x10],XMM0 MOV EAX,dword ptr [RSP + 0xb0] MOV dword ptr [RSP + 0x3c],EAX MOV EAX,dword ptr [RSP + 0x3c] MOV dword ptr [RSP + 0x4],EAX TEST EAX,EAX JZ 0x00195cda JMP 0x00195c5b LAB_00195c5b: MOV EAX,dword ptr [RSP + 0x4] DEC EAX SUB EAX,0x1 JA 0x00195d40 JMP 0x00195c6c LAB_00195c6c: CMP dword ptr [RSP + 0x3c],0x2 JNZ 0x00195c84 MOV RAX,qword ptr [RSP + 0xc8] MOV dword ptr [RAX + 0x8],0x2 JMP 0x00195c93 LAB_00195c84: MOV RAX,qword ptr [RSP + 0xc8] MOV dword ptr [RAX + 0x8],0x1 LAB_00195c93: MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] MOV RDX,qword ptr [RSP + 0xa0] MOV RCX,qword ptr [RSP + 0xa8] XOR R8D,R8D CALL 0x00195e70 MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x001229d0 JMP 0x00195d45 LAB_00195cda: MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] MOV RDX,qword ptr [RSP + 0xa0] MOV RCX,qword ptr [RSP + 0xa8] CALL 0x00196210 MOV dword ptr [RSP + 0x38],EAX MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x001229d0 CMP dword ptr [RSP + 0x38],0x0 JGE 0x00195d3b MOV RAX,qword ptr [RSP + 0xc8] MOV dword ptr [RAX + 0x24],0x1 JMP 0x00195b07 LAB_00195d3b: JMP 0x00195e0a LAB_00195d40: CALL 0x0010e090 LAB_00195d45: JMP 0x00195dfa LAB_00195d4a: MOV RAX,qword ptr [RSP + 0xc8] MOV RAX,qword ptr [RAX + 0x70] MOV RCX,qword ptr [RAX + -0x10] MOV qword ptr [RSP + 0xa0],RCX MOV RAX,qword ptr [RAX + -0x8] MOV qword ptr [RSP + 0xa8],RAX MOV RAX,qword ptr [RSP + 0xc8] MOV RAX,qword ptr [RAX + 0x70] MOV dword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],0x3 MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + -0x10],RCX MOV RCX,qword ptr [RSP + 0x20] MOV qword ptr [RAX + -0x8],RCX MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] CALL 0x00195e20 MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xc8] MOV RDX,qword ptr [RSP + 0xa0] MOV RCX,qword ptr [RSP + 0xa8] MOV R8D,0x1 CALL 0x00195e70 MOV RDI,qword ptr [RSP + 0xd0] MOV RSI,qword ptr [RSP + 0xa0] MOV RDX,qword ptr [RSP + 0xa8] CALL 0x001229d0 LAB_00195dfa: JMP 0x00195dfc LAB_00195dfc: JMP 0x00195e03 default: CALL 0x0010e090 LAB_00195e03: JMP 0x00195877 LAB_00195e08: JMP 0x00195e0a LAB_00195e0a: ADD RSP,0xd8 RET
void js_async_generator_resume_next(int8 param_1,long param_2) { long lVar1; int1 (*pauVar2) [16]; int8 uVar3; int8 uVar4; int iVar5; int1 auVar6 [16]; uint uStack_bc; int4 uStack_ac; uint uStack_44; int local_28; LAB_00195877: iVar5 = list_empty(param_2 + 0x78); if (iVar5 != 0) { return; } lVar1 = *(long *)(param_2 + 0x80); switch(*(int4 *)(param_2 + 8)) { case 0: if (*(int *)(lVar1 + 0x10) == 0) { LAB_00195ae9: *(int4 *)(param_2 + 0x24) = 0; goto LAB_00195af8; } js_async_generator_complete(param_1,param_2); goto LAB_00195877; case 1: case 2: auVar6 = js_dup(*(int8 *)(lVar1 + 0x18),*(int8 *)(lVar1 + 0x20)); if ((*(int *)(lVar1 + 0x10) != 2) || (*(int *)(param_2 + 8) != 1)) { *(int1 (*) [16])(*(long *)(param_2 + 0x70) + -0x10) = auVar6; pauVar2 = *(int1 (**) [16])(param_2 + 0x70); auVar6 = js_int32(*(int4 *)(lVar1 + 0x10)); *pauVar2 = auVar6; *(long *)(param_2 + 0x70) = *(long *)(param_2 + 0x70) + 0x10; goto LAB_00195ae9; } JS_Throw(param_1,auVar6._0_8_,auVar6._8_8_); *(int4 *)(param_2 + 0x24) = 1; LAB_00195af8: *(int4 *)(param_2 + 8) = 3; break; case 3: break; case 4: return; case 5: if (*(int *)(lVar1 + 0x10) == 0) { js_async_generator_resolve(param_1,param_2,(ulong)uStack_44 << 0x20,3,1); return; } if (*(int *)(lVar1 + 0x10) == 1) { *(int4 *)(param_2 + 8) = 4; js_async_generator_completed_return (param_1,param_2,*(int8 *)(lVar1 + 0x18),*(int8 *)(lVar1 + 0x20)); return; } js_async_generator_reject (param_1,param_2,*(int8 *)(lVar1 + 0x18),*(int8 *)(lVar1 + 0x20)); return; default: /* WARNING: Subroutine does not return */ abort(); } while( true ) { auVar6 = async_func_resume(param_1,param_2 + 0x10); iVar5 = JS_IsException(auVar6._0_8_,auVar6._8_8_); if (iVar5 != 0) break; if (auVar6._8_4_ != 0) { uVar3 = *(int8 *)(*(long *)(param_2 + 0x70) + -0x10); uVar4 = *(int8 *)(*(long *)(param_2 + 0x70) + -8); lVar1 = *(long *)(param_2 + 0x70); *(ulong *)(lVar1 + -0x10) = (ulong)uStack_bc << 0x20; *(int8 *)(lVar1 + -8) = 3; js_async_generator_complete(param_1,param_2); js_async_generator_resolve(param_1,param_2,uVar3,uVar4,1); JS_FreeValue(param_1,uVar3,uVar4); goto LAB_00195877; } uVar3 = *(int8 *)(*(long *)(param_2 + 0x70) + -0x10); uVar4 = *(int8 *)(*(long *)(param_2 + 0x70) + -8); lVar1 = *(long *)(param_2 + 0x70); *(int4 *)(lVar1 + -0x10) = 0; *(int4 *)(lVar1 + -0xc) = uStack_ac; *(int4 *)(lVar1 + -8) = 3; *(int4 *)(lVar1 + -4) = 0; local_28 = auVar6._0_4_; if (local_28 != 0) { if (local_28 != 1 && local_28 != 2) { /* WARNING: Subroutine does not return */ abort(); } if (local_28 == 2) { *(int4 *)(param_2 + 8) = 2; } else { *(int4 *)(param_2 + 8) = 1; } js_async_generator_resolve(param_1,param_2,uVar3,uVar4,0); JS_FreeValue(param_1,uVar3,uVar4); goto LAB_00195877; } iVar5 = js_async_generator_await(param_1,param_2,uVar3,uVar4); JS_FreeValue(param_1,uVar3,uVar4); if (-1 < iVar5) { return; } *(int4 *)(param_2 + 0x24) = 1; } auVar6 = JS_GetException(param_1); js_async_generator_complete(param_1,param_2); js_async_generator_reject(param_1,param_2,auVar6._0_8_,auVar6._8_8_); JS_FreeValue(param_1,auVar6._0_8_,auVar6._8_8_); goto LAB_00195877; }
2,170
js_async_generator_resume_next
bluesky950520[P]quickjs/quickjs.c
static void js_async_generator_resume_next(JSContext *ctx, JSAsyncGeneratorData *s) { JSAsyncGeneratorRequest *next; JSValue func_ret, value; for(;;) { if (list_empty(&s->queue)) break; next = list_entry(s->queue.next, JSAsyncGeneratorRequest, link); switch(s->state) { case JS_ASYNC_GENERATOR_STATE_EXECUTING: /* only happens when restarting execution after await() */ goto resume_exec; case JS_ASYNC_GENERATOR_STATE_AWAITING_RETURN: goto done; case JS_ASYNC_GENERATOR_STATE_SUSPENDED_START: if (next->completion_type == GEN_MAGIC_NEXT) { goto exec_no_arg; } else { js_async_generator_complete(ctx, s); } break; case JS_ASYNC_GENERATOR_STATE_COMPLETED: if (next->completion_type == GEN_MAGIC_NEXT) { js_async_generator_resolve(ctx, s, JS_UNDEFINED, TRUE); } else if (next->completion_type == GEN_MAGIC_RETURN) { s->state = JS_ASYNC_GENERATOR_STATE_AWAITING_RETURN; js_async_generator_completed_return(ctx, s, next->result); } else { js_async_generator_reject(ctx, s, next->result); } goto done; case JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD: case JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD_STAR: value = js_dup(next->result); if (next->completion_type == GEN_MAGIC_THROW && s->state == JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD) { JS_Throw(ctx, value); s->func_state.throw_flag = TRUE; } else { /* 'yield' returns a value. 'yield *' also returns a value in case the 'throw' method is called */ s->func_state.frame.cur_sp[-1] = value; s->func_state.frame.cur_sp[0] = js_int32(next->completion_type); s->func_state.frame.cur_sp++; exec_no_arg: s->func_state.throw_flag = FALSE; } s->state = JS_ASYNC_GENERATOR_STATE_EXECUTING; resume_exec: func_ret = async_func_resume(ctx, &s->func_state); if (JS_IsException(func_ret)) { value = JS_GetException(ctx); js_async_generator_complete(ctx, s); js_async_generator_reject(ctx, s, value); JS_FreeValue(ctx, value); } else if (JS_VALUE_GET_TAG(func_ret) == JS_TAG_INT) { int func_ret_code, ret; value = s->func_state.frame.cur_sp[-1]; s->func_state.frame.cur_sp[-1] = JS_UNDEFINED; func_ret_code = JS_VALUE_GET_INT(func_ret); switch(func_ret_code) { case FUNC_RET_YIELD: case FUNC_RET_YIELD_STAR: if (func_ret_code == FUNC_RET_YIELD_STAR) s->state = JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD_STAR; else s->state = JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD; js_async_generator_resolve(ctx, s, value, FALSE); JS_FreeValue(ctx, value); break; case FUNC_RET_AWAIT: ret = js_async_generator_await(ctx, s, value); JS_FreeValue(ctx, value); if (ret < 0) { /* exception: throw it */ s->func_state.throw_flag = TRUE; goto resume_exec; } goto done; default: abort(); } } else { assert(JS_IsUndefined(func_ret)); /* end of function */ value = s->func_state.frame.cur_sp[-1]; s->func_state.frame.cur_sp[-1] = JS_UNDEFINED; js_async_generator_complete(ctx, s); js_async_generator_resolve(ctx, s, value, TRUE); JS_FreeValue(ctx, value); } break; default: abort(); } } done: ; }
O1
c
js_async_generator_resume_next: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp leaq 0x78(%rsi), %rax movq %rax, 0x18(%rsp) cmpq %rax, 0x80(%rsi) je 0x54e0b movq %rsi, %rbx movq %rdi, %r14 leaq 0x10(%rsi), %r12 movq %r12, 0x8(%rsp) movl 0x8(%rbx), %ecx cmpq $0x5, %rcx ja 0x54e77 movq 0x80(%rbx), %rax leaq 0x46b94(%rip), %rsi # 0x9b67c movslq (%rsi,%rcx,4), %rdx addq %rsi, %rdx jmpq *%rdx movq 0x18(%rax), %r13 movq 0x20(%rax), %r12 movq %r13, 0x20(%rsp) cmpl $-0x9, %r12d jb 0x54b0b movq 0x20(%rsp), %rdx incl (%rdx) cmpl $0x1, %ecx jne 0x54b73 cmpl $0x2, 0x10(%rax) jne 0x54b73 movq 0x18(%r14), %r15 movq 0xf0(%r15), %rsi movq 0xf8(%r15), %rdx movq %r15, %rdi callq 0x1ccb2 movq %r13, 0xf0(%r15) movq %r12, 0xf8(%r15) movl $0x1, 0x24(%rbx) movq 0x8(%rsp), %r12 jmp 0x54ba2 cmpl $0x0, 0x10(%rax) je 0x54b9b cmpl $0x5, %ecx je 0x54df9 movl $0x5, 0x8(%rbx) movq 0x18(%r14), %rdi movq %r12, %rsi callq 0x3a8b6 jmp 0x54df9 movq 0x70(%rbx), %rcx movq %r13, -0x10(%rcx) movq %r12, -0x8(%rcx) movq 0x70(%rbx), %rcx movl 0x10(%rax), %eax movq %rax, (%rcx) movq $0x0, 0x8(%rcx) addq $0x10, 0x70(%rbx) movq 0x8(%rsp), %r12 movl $0x0, 0x24(%rbx) movl $0x3, 0x8(%rbx) movq %r14, %rdi movq %r12, %rsi callq 0x42542 testl %edx, %edx jne 0x54d31 movq 0x70(%rbx), %rcx movq -0x10(%rcx), %r13 movq -0x8(%rcx), %rbp movl $0x0, -0x10(%rcx) movq $0x3, -0x8(%rcx) leal -0x1(%rax), %ecx cmpl $0x2, %ecx jae 0x54c0d movl %eax, 0x8(%rbx) xorl %r15d, %r15d movq %r14, %rdi movq %rbx, %rsi movq %r13, %rdx movq %rbp, %rcx xorl %r8d, %r8d callq 0x54e7c movq 0x18(%r14), %rdi movq %r13, %rsi movq %rbp, %rdx callq 0x1ccb2 jmp 0x54c8f testl %eax, %eax jne 0x54e77 movq %r13, 0x40(%rsp) movq %rbp, 0x48(%rsp) movq 0x88(%r14), %rsi movq 0x90(%r14), %rdx movq %r14, %rdi leaq 0x40(%rsp), %r8 xorl %r9d, %r9d callq 0x5273d movq %rdx, %r12 cmpl $0x6, %r12d je 0x54c6e movq %rax, %r15 movq (%rbx), %rsi movq %r14, %rdi leaq 0x20(%rsp), %rdx xorl %ecx, %ecx callq 0x550fc testl %eax, %eax je 0x54c9e movq 0x18(%r14), %rdi movq %r15, %rsi movq %r12, %rdx callq 0x1ccb2 movq 0x18(%r14), %rdi movq %r13, %rsi movq %rbp, %rdx callq 0x1ccb2 movl $0x1, 0x24(%rbx) movl $0x5, %r15d movq 0x8(%rsp), %r12 cmpl $0x5, %r15d je 0x54ba9 jmp 0x54d91 movl $0x8, %eax movl $0x0, 0x48(%rsp,%rax) movq $0x3, 0x50(%rsp,%rax) addq $0x10, %rax cmpq $0x18, %rax je 0x54ca3 movq %r14, %rdi movq %r15, %rsi movq %r12, %rdx leaq 0x20(%rsp), %rcx leaq 0x50(%rsp), %r8 callq 0x10d63 movl %eax, 0x14(%rsp) movq 0x18(%r14), %rdi movq %r15, %rsi movq %r12, %rdx callq 0x1ccb2 movl $0x8, %r15d movq 0x18(%rsp,%r15), %rsi movq 0x20(%rsp,%r15), %rdx movq 0x18(%r14), %rdi callq 0x1ccb2 addq $0x10, %r15 cmpq $0x18, %r15 je 0x54cef cmpl $0x0, 0x14(%rsp) jne 0x54c6e movq 0x18(%r14), %rdi movq %r13, %rsi movq %rbp, %rdx callq 0x1ccb2 movl $0x6, %r15d jmp 0x54c8a cmpl $0x6, %edx jne 0x54d98 movq 0x18(%r14), %rax movq 0xf0(%rax), %r15 movq 0xf8(%rax), %r12 movl $0x0, 0xf0(%rax) movq $0x4, 0xf8(%rax) cmpl $0x5, 0x8(%rbx) je 0x54d78 movl $0x5, 0x8(%rbx) movq 0x18(%r14), %rdi movq 0x8(%rsp), %rsi callq 0x3a8b6 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r12, %rcx movl $0x1, %r8d callq 0x5501c jmp 0x54de5 testl %r15d, %r15d jne 0x54e0b jmp 0x54df9 movq 0x70(%rbx), %rax movq -0x10(%rax), %r15 movq -0x8(%rax), %r12 movl $0x0, -0x10(%rax) movq $0x3, -0x8(%rax) cmpl $0x5, 0x8(%rbx) je 0x54dce movl $0x5, 0x8(%rbx) movq 0x18(%r14), %rdi movq 0x8(%rsp), %rsi callq 0x3a8b6 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r12, %rcx movl $0x1, %r8d callq 0x54e7c movq 0x18(%r14), %rdi movq %r15, %rsi movq %r12, %rdx callq 0x1ccb2 movq 0x8(%rsp), %r12 movq 0x18(%rsp), %rax cmpq %rax, 0x80(%rbx) jne 0x54acd addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl 0x10(%rax), %ecx cmpl $0x1, %ecx je 0x54e40 testl %ecx, %ecx jne 0x54e5c movl $0x3, %ecx movq %r14, %rdi movq %rbx, %rsi xorl %edx, %edx movl $0x1, %r8d callq 0x54e7c jmp 0x54e0b movl $0x4, 0x8(%rbx) movq 0x18(%rax), %rdx movq 0x20(%rax), %rcx movq %r14, %rdi movq %rbx, %rsi callq 0x54ede jmp 0x54e0b movq 0x18(%rax), %rdx movq 0x20(%rax), %rcx movq %r14, %rdi movq %rbx, %rsi movl $0x1, %r8d callq 0x5501c jmp 0x54e0b callq 0xe090
js_async_generator_resume_next: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h lea rax, [rsi+78h] mov [rsp+0A8h+var_90], rax cmp [rsi+80h], rax jz loc_54E0B; jumptable 0000000000054AEF case 4 mov rbx, rsi mov r14, rdi lea r12, [rsi+10h] mov [rsp+0A8h+var_A0], r12 loc_54ACD: mov ecx, [rbx+8] cmp rcx, 5; switch 6 cases ja def_54AEF; jumptable 0000000000054AEF default case mov rax, [rbx+80h] lea rsi, jpt_54AEF movsxd rdx, ds:(jpt_54AEF - 9B67Ch)[rsi+rcx*4] add rdx, rsi jmp rdx; switch jump loc_54AF1: mov r13, [rax+18h]; jumptable 0000000000054AEF cases 1,2 mov r12, [rax+20h] mov [rsp+0A8h+var_88], r13 cmp r12d, 0FFFFFFF7h jb short loc_54B0B mov rdx, [rsp+0A8h+var_88] inc dword ptr [rdx] loc_54B0B: cmp ecx, 1 jnz short loc_54B73 cmp dword ptr [rax+10h], 2 jnz short loc_54B73 mov r15, [r14+18h] mov rsi, [r15+0F0h] mov rdx, [r15+0F8h] mov rdi, r15 call JS_FreeValueRT mov [r15+0F0h], r13 mov [r15+0F8h], r12 mov dword ptr [rbx+24h], 1 mov r12, [rsp+0A8h+var_A0] jmp short loc_54BA2 loc_54B4C: cmp dword ptr [rax+10h], 0; jumptable 0000000000054AEF case 0 jz short loc_54B9B cmp ecx, 5 jz loc_54DF9 mov dword ptr [rbx+8], 5 mov rdi, [r14+18h] mov rsi, r12 call async_func_free jmp loc_54DF9 loc_54B73: mov rcx, [rbx+70h] mov [rcx-10h], r13 mov [rcx-8], r12 mov rcx, [rbx+70h] mov eax, [rax+10h] mov [rcx], rax mov qword ptr [rcx+8], 0 add qword ptr [rbx+70h], 10h mov r12, [rsp+0A8h+var_A0] loc_54B9B: mov dword ptr [rbx+24h], 0 loc_54BA2: mov dword ptr [rbx+8], 3 loc_54BA9: mov rdi, r14; jumptable 0000000000054AEF case 3 mov rsi, r12 call async_func_resume test edx, edx jnz loc_54D31 mov rcx, [rbx+70h] mov r13, [rcx-10h] mov rbp, [rcx-8] mov dword ptr [rcx-10h], 0 mov qword ptr [rcx-8], 3 lea ecx, [rax-1] cmp ecx, 2 jnb short loc_54C0D mov [rbx+8], eax xor r15d, r15d mov rdi, r14 mov rsi, rbx mov rdx, r13 mov rcx, rbp xor r8d, r8d call js_async_generator_resolve mov rdi, [r14+18h] mov rsi, r13 mov rdx, rbp call JS_FreeValueRT jmp loc_54C8F loc_54C0D: test eax, eax jnz def_54AEF; jumptable 0000000000054AEF default case mov [rsp+0A8h+var_68], r13 mov [rsp+0A8h+var_60], rbp mov rsi, [r14+88h] mov rdx, [r14+90h] mov rdi, r14 lea r8, [rsp+0A8h+var_68] xor r9d, r9d call js_promise_resolve mov r12, rdx cmp r12d, 6 jz short loc_54C6E mov r15, rax mov rsi, [rbx] mov rdi, r14 lea rdx, [rsp+0A8h+var_88] xor ecx, ecx call js_async_generator_resolve_function_create test eax, eax jz short loc_54C9E mov rdi, [r14+18h] mov rsi, r15 mov rdx, r12 call JS_FreeValueRT loc_54C6E: mov rdi, [r14+18h] mov rsi, r13 mov rdx, rbp call JS_FreeValueRT mov dword ptr [rbx+24h], 1 mov r15d, 5 loc_54C8A: mov r12, [rsp+0A8h+var_A0] loc_54C8F: cmp r15d, 5 jz loc_54BA9; jumptable 0000000000054AEF case 3 jmp loc_54D91 loc_54C9E: mov eax, 8 loc_54CA3: mov dword ptr [rsp+rax+0A8h+var_60], 0 mov [rsp+rax+0A8h+var_58], 3 add rax, 10h cmp rax, 18h jz short loc_54CA3 mov rdi, r14 mov rsi, r15 mov rdx, r12 lea rcx, [rsp+0A8h+var_88] lea r8, [rsp+0A8h+var_58] call perform_promise_then mov [rsp+0A8h+var_94], eax mov rdi, [r14+18h] mov rsi, r15 mov rdx, r12 call JS_FreeValueRT mov r15d, 8 loc_54CEF: mov rsi, [rsp+r15+0A8h+var_90] mov rdx, [rsp+r15+0A8h+var_88] mov rdi, [r14+18h] call JS_FreeValueRT add r15, 10h cmp r15, 18h jz short loc_54CEF cmp [rsp+0A8h+var_94], 0 jnz loc_54C6E mov rdi, [r14+18h] mov rsi, r13 mov rdx, rbp call JS_FreeValueRT mov r15d, 6 jmp loc_54C8A loc_54D31: cmp edx, 6 jnz short loc_54D98 mov rax, [r14+18h] mov r15, [rax+0F0h] mov r12, [rax+0F8h] mov dword ptr [rax+0F0h], 0 mov qword ptr [rax+0F8h], 4 cmp dword ptr [rbx+8], 5 jz short loc_54D78 mov dword ptr [rbx+8], 5 mov rdi, [r14+18h] mov rsi, [rsp+0A8h+var_A0] call async_func_free loc_54D78: mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r12 mov r8d, 1 call js_async_generator_resolve_or_reject jmp short loc_54DE5 loc_54D91: test r15d, r15d jnz short loc_54E0B; jumptable 0000000000054AEF case 4 jmp short loc_54DF9 loc_54D98: mov rax, [rbx+70h] mov r15, [rax-10h] mov r12, [rax-8] mov dword ptr [rax-10h], 0 mov qword ptr [rax-8], 3 cmp dword ptr [rbx+8], 5 jz short loc_54DCE mov dword ptr [rbx+8], 5 mov rdi, [r14+18h] mov rsi, [rsp+0A8h+var_A0] call async_func_free loc_54DCE: mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r12 mov r8d, 1 call js_async_generator_resolve loc_54DE5: mov rdi, [r14+18h] mov rsi, r15 mov rdx, r12 call JS_FreeValueRT mov r12, [rsp+0A8h+var_A0] loc_54DF9: mov rax, [rsp+0A8h+var_90] cmp [rbx+80h], rax jnz loc_54ACD loc_54E0B: add rsp, 78h; jumptable 0000000000054AEF case 4 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_54E1A: mov ecx, [rax+10h]; jumptable 0000000000054AEF case 5 cmp ecx, 1 jz short loc_54E40 test ecx, ecx jnz short loc_54E5C mov ecx, 3 mov rdi, r14 mov rsi, rbx xor edx, edx mov r8d, 1 call js_async_generator_resolve jmp short loc_54E0B; jumptable 0000000000054AEF case 4 loc_54E40: mov dword ptr [rbx+8], 4 mov rdx, [rax+18h] mov rcx, [rax+20h] mov rdi, r14 mov rsi, rbx call js_async_generator_completed_return jmp short loc_54E0B; jumptable 0000000000054AEF case 4 loc_54E5C: mov rdx, [rax+18h] mov rcx, [rax+20h] mov rdi, r14 mov rsi, rbx mov r8d, 1 call js_async_generator_resolve_or_reject jmp short loc_54E0B; jumptable 0000000000054AEF case 4 def_54AEF: call _abort; jumptable 0000000000054AEF default case
long long js_async_generator_resume_next( const char *a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { long long result; // rax long long v15; // r14 long long v16; // r12 long long v17; // rcx long long v18; // r13 long long v19; // r12 long long v20; // r15 long long v21; // rcx int v22; // eax int v23; // edx __m128 v24; // xmm4 __m128 v25; // xmm5 long long v26; // rcx _DWORD *v27; // r13 long long v28; // rbp long long v29; // rcx int v30; // r15d _DWORD *v31; // rax long long v32; // rdx long long v33; // r12 _DWORD *v34; // r15 long long v35; // rax long long v36; // r15 long long v37; // rax _DWORD *v38; // r15 long long v39; // r12 long long v40; // rax int v41; // ecx long long v42; // [rsp+8h] [rbp-A0h] int v43; // [rsp+14h] [rbp-94h] long long v44; // [rsp+18h] [rbp-90h] _QWORD v45[4]; // [rsp+20h] [rbp-88h] BYREF _DWORD *v46; // [rsp+40h] [rbp-68h] BYREF long long v47; // [rsp+48h] [rbp-60h] _QWORD v48[11]; // [rsp+50h] [rbp-58h] BYREF result = a2 + 120; v44 = a2 + 120; if ( *(_QWORD *)(a2 + 128) == a2 + 120 ) return result; v15 = (long long)a1; v16 = a2 + 16; v42 = a2 + 16; do { v17 = *(unsigned int *)(a2 + 8); result = *(_QWORD *)(a2 + 128); switch ( *(_DWORD *)(a2 + 8) ) { case 0: if ( !*(_DWORD *)(result + 16) ) goto LABEL_13; if ( (_DWORD)v17 != 5 ) { *(_DWORD *)(a2 + 8) = 5; a1 = *(const char **)(v15 + 24); async_func_free((long long)a1, v16); } goto LABEL_42; case 1: case 2: v18 = *(_QWORD *)(result + 24); v19 = *(_QWORD *)(result + 32); v45[0] = v18; if ( (unsigned int)v19 >= 0xFFFFFFF7 ) { a3 = v45[0]; ++*(_DWORD *)v45[0]; } if ( (_DWORD)v17 == 1 && *(_DWORD *)(result + 16) == 2 ) { v20 = *(_QWORD *)(v15 + 24); JS_FreeValueRT(v20, *(_DWORD **)(v20 + 240), *(_QWORD *)(v20 + 248)); *(_QWORD *)(v20 + 240) = v18; *(_QWORD *)(v20 + 248) = v19; *(_DWORD *)(a2 + 36) = 1; v16 = a2 + 16; } else { v21 = *(_QWORD *)(a2 + 112); *(_QWORD *)(v21 - 16) = v18; *(_QWORD *)(v21 - 8) = v19; v17 = *(_QWORD *)(a2 + 112); *(_QWORD *)v17 = *(unsigned int *)(result + 16); *(_QWORD *)(v17 + 8) = 0LL; *(_QWORD *)(a2 + 112) += 16LL; v16 = a2 + 16; LABEL_13: *(_DWORD *)(a2 + 36) = 0; } *(_DWORD *)(a2 + 8) = 3; break; case 3: goto LABEL_15; case 4: return result; case 5: v41 = *(_DWORD *)(result + 16); if ( v41 == 1 ) { *(_DWORD *)(a2 + 8) = 4; return js_async_generator_completed_return(v15, a2, *(_QWORD *)(result + 24), *(_QWORD *)(result + 32)); } else if ( v41 ) { return js_async_generator_resolve_or_reject(v15, a2, *(_QWORD *)(result + 24), *(_QWORD *)(result + 32), 1LL); } else { return js_async_generator_resolve(v15, a2, 0LL, 3LL, 1LL); } default: goto LABEL_49; } do { LABEL_15: a1 = (const char *)v15; v22 = async_func_resume(v15, v16, a3, v17, a13, a14, a4, a5, a6, a7, a8, a9, a10, a11); if ( v23 ) { if ( v23 == 6 ) { v37 = *(_QWORD *)(v15 + 24); v38 = *(_DWORD **)(v37 + 240); v39 = *(_QWORD *)(v37 + 248); *(_DWORD *)(v37 + 240) = 0; *(_QWORD *)(v37 + 248) = 4LL; if ( *(_DWORD *)(a2 + 8) != 5 ) { *(_DWORD *)(a2 + 8) = 5; async_func_free(*(_QWORD *)(v15 + 24), v42); } js_async_generator_resolve_or_reject(v15, a2, v38, v39, 1LL); } else { v40 = *(_QWORD *)(a2 + 112); v38 = *(_DWORD **)(v40 - 16); v39 = *(_QWORD *)(v40 - 8); *(_DWORD *)(v40 - 16) = 0; *(_QWORD *)(v40 - 8) = 3LL; if ( *(_DWORD *)(a2 + 8) != 5 ) { *(_DWORD *)(a2 + 8) = 5; async_func_free(*(_QWORD *)(v15 + 24), v42); } js_async_generator_resolve(v15, a2, v38, v39, 1LL); } a1 = *(const char **)(v15 + 24); JS_FreeValueRT((long long)a1, v38, v39); v16 = a2 + 16; goto LABEL_42; } v26 = *(_QWORD *)(a2 + 112); v27 = *(_DWORD **)(v26 - 16); v28 = *(_QWORD *)(v26 - 8); *(_DWORD *)(v26 - 16) = 0; *(_QWORD *)(v26 - 8) = 3LL; v29 = (unsigned int)(v22 - 1); if ( (unsigned int)v29 < 2 ) { *(_DWORD *)(a2 + 8) = v22; v30 = 0; js_async_generator_resolve(v15, a2, v27, v28, 0LL); a1 = *(const char **)(v15 + 24); result = JS_FreeValueRT((long long)a1, v27, v28); continue; } if ( v22 ) LABEL_49: abort(a1); v46 = v27; v47 = v28; v31 = js_promise_resolve( (long long *)v15, *(_DWORD **)(v15 + 136), *(_QWORD *)(v15 + 144), v29, (long long)&v46, 0LL, a4, a5, a6, a7, v24, v25, a10, a11); v33 = v32; if ( (_DWORD)v32 != 6 ) { v34 = v31; if ( (unsigned int)js_async_generator_resolve_function_create(v15, *(_QWORD *)a2, v45, 0LL) ) { JS_FreeValueRT(*(_QWORD *)(v15 + 24), v34, v33); } else { v35 = 1LL; do { LODWORD(v48[v35 - 1]) = 0; v48[v35] = 3LL; v35 += 2LL; } while ( v35 == 3 ); v43 = perform_promise_then(v15, (long long)v34, v33, (long long)v45, (long long)v48); JS_FreeValueRT(*(_QWORD *)(v15 + 24), v34, v33); v36 = 1LL; do { JS_FreeValueRT(*(_QWORD *)(v15 + 24), (_DWORD *)v45[v36 - 1], v45[v36]); v36 += 2LL; } while ( v36 == 3 ); if ( !v43 ) { a1 = *(const char **)(v15 + 24); result = JS_FreeValueRT((long long)a1, v27, v28); v30 = 6; goto LABEL_23; } } } a1 = *(const char **)(v15 + 24); result = JS_FreeValueRT((long long)a1, v27, v28); *(_DWORD *)(a2 + 36) = 1; v30 = 5; LABEL_23: v16 = a2 + 16; } while ( v30 == 5 ); if ( v30 ) return result; LABEL_42: result = v44; } while ( *(_QWORD *)(a2 + 128) != v44 ); return result; }
js_async_generator_resume_next: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 LEA RAX,[RSI + 0x78] MOV qword ptr [RSP + 0x18],RAX CMP qword ptr [RSI + 0x80],RAX JZ 0x00154e0b MOV RBX,RSI MOV R14,RDI LEA R12,[RSI + 0x10] MOV qword ptr [RSP + 0x8],R12 LAB_00154acd: MOV ECX,dword ptr [RBX + 0x8] CMP RCX,0x5 JA 0x00154e77 MOV RAX,qword ptr [RBX + 0x80] LEA RSI,[0x19b67c] MOVSXD RDX,dword ptr [RSI + RCX*0x4] ADD RDX,RSI switchD: JMP RDX caseD_1: MOV R13,qword ptr [RAX + 0x18] MOV R12,qword ptr [RAX + 0x20] MOV qword ptr [RSP + 0x20],R13 CMP R12D,-0x9 JC 0x00154b0b MOV RDX,qword ptr [RSP + 0x20] INC dword ptr [RDX] LAB_00154b0b: CMP ECX,0x1 JNZ 0x00154b73 CMP dword ptr [RAX + 0x10],0x2 JNZ 0x00154b73 MOV R15,qword ptr [R14 + 0x18] MOV RSI,qword ptr [R15 + 0xf0] MOV RDX,qword ptr [R15 + 0xf8] MOV RDI,R15 CALL 0x0011ccb2 MOV qword ptr [R15 + 0xf0],R13 MOV qword ptr [R15 + 0xf8],R12 MOV dword ptr [RBX + 0x24],0x1 MOV R12,qword ptr [RSP + 0x8] JMP 0x00154ba2 caseD_0: CMP dword ptr [RAX + 0x10],0x0 JZ 0x00154b9b CMP ECX,0x5 JZ 0x00154df9 MOV dword ptr [RBX + 0x8],0x5 MOV RDI,qword ptr [R14 + 0x18] MOV RSI,R12 CALL 0x0013a8b6 JMP 0x00154df9 LAB_00154b73: MOV RCX,qword ptr [RBX + 0x70] MOV qword ptr [RCX + -0x10],R13 MOV qword ptr [RCX + -0x8],R12 MOV RCX,qword ptr [RBX + 0x70] MOV EAX,dword ptr [RAX + 0x10] MOV qword ptr [RCX],RAX MOV qword ptr [RCX + 0x8],0x0 ADD qword ptr [RBX + 0x70],0x10 MOV R12,qword ptr [RSP + 0x8] LAB_00154b9b: MOV dword ptr [RBX + 0x24],0x0 LAB_00154ba2: MOV dword ptr [RBX + 0x8],0x3 caseD_3: MOV RDI,R14 MOV RSI,R12 CALL 0x00142542 TEST EDX,EDX JNZ 0x00154d31 MOV RCX,qword ptr [RBX + 0x70] MOV R13,qword ptr [RCX + -0x10] MOV RBP,qword ptr [RCX + -0x8] MOV dword ptr [RCX + -0x10],0x0 MOV qword ptr [RCX + -0x8],0x3 LEA ECX,[RAX + -0x1] CMP ECX,0x2 JNC 0x00154c0d MOV dword ptr [RBX + 0x8],EAX XOR R15D,R15D MOV RDI,R14 MOV RSI,RBX MOV RDX,R13 MOV RCX,RBP XOR R8D,R8D CALL 0x00154e7c MOV RDI,qword ptr [R14 + 0x18] MOV RSI,R13 MOV RDX,RBP CALL 0x0011ccb2 JMP 0x00154c8f LAB_00154c0d: TEST EAX,EAX JNZ 0x00154e77 MOV qword ptr [RSP + 0x40],R13 MOV qword ptr [RSP + 0x48],RBP MOV RSI,qword ptr [R14 + 0x88] MOV RDX,qword ptr [R14 + 0x90] MOV RDI,R14 LEA R8,[RSP + 0x40] XOR R9D,R9D CALL 0x0015273d MOV R12,RDX CMP R12D,0x6 JZ 0x00154c6e MOV R15,RAX MOV RSI,qword ptr [RBX] MOV RDI,R14 LEA RDX,[RSP + 0x20] XOR ECX,ECX CALL 0x001550fc TEST EAX,EAX JZ 0x00154c9e MOV RDI,qword ptr [R14 + 0x18] MOV RSI,R15 MOV RDX,R12 CALL 0x0011ccb2 LAB_00154c6e: MOV RDI,qword ptr [R14 + 0x18] MOV RSI,R13 MOV RDX,RBP CALL 0x0011ccb2 MOV dword ptr [RBX + 0x24],0x1 MOV R15D,0x5 LAB_00154c8a: MOV R12,qword ptr [RSP + 0x8] LAB_00154c8f: CMP R15D,0x5 JZ 0x00154ba9 JMP 0x00154d91 LAB_00154c9e: MOV EAX,0x8 LAB_00154ca3: MOV dword ptr [RSP + RAX*0x1 + 0x48],0x0 MOV qword ptr [RSP + RAX*0x1 + 0x50],0x3 ADD RAX,0x10 CMP RAX,0x18 JZ 0x00154ca3 MOV RDI,R14 MOV RSI,R15 MOV RDX,R12 LEA RCX,[RSP + 0x20] LEA R8,[RSP + 0x50] CALL 0x00110d63 MOV dword ptr [RSP + 0x14],EAX MOV RDI,qword ptr [R14 + 0x18] MOV RSI,R15 MOV RDX,R12 CALL 0x0011ccb2 MOV R15D,0x8 LAB_00154cef: MOV RSI,qword ptr [RSP + R15*0x1 + 0x18] MOV RDX,qword ptr [RSP + R15*0x1 + 0x20] MOV RDI,qword ptr [R14 + 0x18] CALL 0x0011ccb2 ADD R15,0x10 CMP R15,0x18 JZ 0x00154cef CMP dword ptr [RSP + 0x14],0x0 JNZ 0x00154c6e MOV RDI,qword ptr [R14 + 0x18] MOV RSI,R13 MOV RDX,RBP CALL 0x0011ccb2 MOV R15D,0x6 JMP 0x00154c8a LAB_00154d31: CMP EDX,0x6 JNZ 0x00154d98 MOV RAX,qword ptr [R14 + 0x18] MOV R15,qword ptr [RAX + 0xf0] MOV R12,qword ptr [RAX + 0xf8] MOV dword ptr [RAX + 0xf0],0x0 MOV qword ptr [RAX + 0xf8],0x4 CMP dword ptr [RBX + 0x8],0x5 JZ 0x00154d78 MOV dword ptr [RBX + 0x8],0x5 MOV RDI,qword ptr [R14 + 0x18] MOV RSI,qword ptr [RSP + 0x8] CALL 0x0013a8b6 LAB_00154d78: MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R12 MOV R8D,0x1 CALL 0x0015501c JMP 0x00154de5 LAB_00154d91: TEST R15D,R15D JNZ 0x00154e0b JMP 0x00154df9 LAB_00154d98: MOV RAX,qword ptr [RBX + 0x70] MOV R15,qword ptr [RAX + -0x10] MOV R12,qword ptr [RAX + -0x8] MOV dword ptr [RAX + -0x10],0x0 MOV qword ptr [RAX + -0x8],0x3 CMP dword ptr [RBX + 0x8],0x5 JZ 0x00154dce MOV dword ptr [RBX + 0x8],0x5 MOV RDI,qword ptr [R14 + 0x18] MOV RSI,qword ptr [RSP + 0x8] CALL 0x0013a8b6 LAB_00154dce: MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R12 MOV R8D,0x1 CALL 0x00154e7c LAB_00154de5: MOV RDI,qword ptr [R14 + 0x18] MOV RSI,R15 MOV RDX,R12 CALL 0x0011ccb2 MOV R12,qword ptr [RSP + 0x8] LAB_00154df9: MOV RAX,qword ptr [RSP + 0x18] CMP qword ptr [RBX + 0x80],RAX JNZ 0x00154acd caseD_4: ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET caseD_5: MOV ECX,dword ptr [RAX + 0x10] CMP ECX,0x1 JZ 0x00154e40 TEST ECX,ECX JNZ 0x00154e5c MOV ECX,0x3 MOV RDI,R14 MOV RSI,RBX XOR EDX,EDX MOV R8D,0x1 CALL 0x00154e7c JMP 0x00154e0b LAB_00154e40: MOV dword ptr [RBX + 0x8],0x4 MOV RDX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RAX + 0x20] MOV RDI,R14 MOV RSI,RBX CALL 0x00154ede JMP 0x00154e0b LAB_00154e5c: MOV RDX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RAX + 0x20] MOV RDI,R14 MOV RSI,RBX MOV R8D,0x1 CALL 0x0015501c JMP 0x00154e0b LAB_00154e77: CALL 0x0010e090
/* WARNING: Type propagation algorithm not settling */ void js_async_generator_resume_next(long param_1,int8 *param_2) { int8 *puVar1; uint uVar2; int *piVar3; long lVar4; ulong *puVar5; int iVar6; int8 uVar7; long lVar8; int extraout_EDX; int8 uVar9; int8 uVar10; int8 uVar11; int1 auVar12 [16]; int *local_90 [5]; int8 local_68; int8 local_60; int8 local_58 [5]; local_90[0] = (int *)(param_2 + 0xf); if ((int *)param_2[0x10] != local_90[0]) { puVar1 = param_2 + 2; do { uVar2 = *(uint *)(param_2 + 1); if (5 < uVar2) { LAB_00154e77: /* WARNING: Subroutine does not return */ abort(); } lVar8 = param_2[0x10]; switch(uVar2) { case 0: if (*(int *)(lVar8 + 0x10) == 0) { LAB_00154b9b: *(int4 *)((long)param_2 + 0x24) = 0; goto LAB_00154ba2; } if (uVar2 != 5) { *(int4 *)(param_2 + 1) = 5; async_func_free(*(int8 *)(param_1 + 0x18),puVar1); } goto LAB_00154df9; default: piVar3 = *(int **)(lVar8 + 0x18); uVar11 = *(int8 *)(lVar8 + 0x20); if (0xfffffff6 < (uint)uVar11) { *piVar3 = *piVar3 + 1; } local_90[1] = piVar3; if ((uVar2 != 1) || (*(int *)(lVar8 + 0x10) != 2)) { lVar4 = param_2[0xe]; *(int **)(lVar4 + -0x10) = piVar3; *(int8 *)(lVar4 + -8) = uVar11; puVar5 = (ulong *)param_2[0xe]; *puVar5 = (ulong)*(uint *)(lVar8 + 0x10); puVar5[1] = 0; param_2[0xe] = param_2[0xe] + 0x10; goto LAB_00154b9b; } lVar8 = *(long *)(param_1 + 0x18); JS_FreeValueRT(lVar8,*(int8 *)(lVar8 + 0xf0),*(int8 *)(lVar8 + 0xf8)); *(int **)(lVar8 + 0xf0) = piVar3; *(int8 *)(lVar8 + 0xf8) = uVar11; *(int4 *)((long)param_2 + 0x24) = 1; LAB_00154ba2: *(int4 *)(param_2 + 1) = 3; case 3: do { iVar6 = async_func_resume(param_1,puVar1); if (extraout_EDX != 0) { if (extraout_EDX == 6) { lVar8 = *(long *)(param_1 + 0x18); uVar11 = *(int8 *)(lVar8 + 0xf0); uVar10 = *(int8 *)(lVar8 + 0xf8); *(int4 *)(lVar8 + 0xf0) = 0; *(int8 *)(lVar8 + 0xf8) = 4; if (*(int *)(param_2 + 1) != 5) { *(int4 *)(param_2 + 1) = 5; async_func_free(*(int8 *)(param_1 + 0x18),puVar1); } js_async_generator_resolve_or_reject(param_1,param_2,uVar11,uVar10,1); } else { lVar8 = param_2[0xe]; uVar11 = *(int8 *)(lVar8 + -0x10); uVar10 = *(int8 *)(lVar8 + -8); *(int4 *)(lVar8 + -0x10) = 0; *(int8 *)(lVar8 + -8) = 3; if (*(int *)(param_2 + 1) != 5) { *(int4 *)(param_2 + 1) = 5; async_func_free(*(int8 *)(param_1 + 0x18),puVar1); } js_async_generator_resolve(param_1,param_2,uVar11,uVar10,1); } JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar11,uVar10); goto LAB_00154df9; } lVar8 = param_2[0xe]; uVar11 = *(int8 *)(lVar8 + -0x10); uVar10 = *(int8 *)(lVar8 + -8); *(int4 *)(lVar8 + -0x10) = 0; *(int8 *)(lVar8 + -8) = 3; if (iVar6 - 1U < 2) { *(int *)(param_2 + 1) = iVar6; iVar6 = 0; js_async_generator_resolve(param_1,param_2,uVar11,uVar10,0); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar11,uVar10); } else { if (iVar6 != 0) goto LAB_00154e77; local_68 = uVar11; local_60 = uVar10; auVar12 = js_promise_resolve(param_1,*(int8 *)(param_1 + 0x88), *(int8 *)(param_1 + 0x90),iVar6 - 1U,&local_68,0); uVar9 = auVar12._8_8_; uVar7 = auVar12._0_8_; if (auVar12._8_4_ != 6) { iVar6 = js_async_generator_resolve_function_create(param_1,*param_2,local_90 + 1,0); if (iVar6 == 0) { lVar8 = 8; do { *(int4 *)((long)local_58 + lVar8 + -8) = 0; *(int8 *)((long)local_58 + lVar8) = 3; lVar8 = lVar8 + 0x10; } while (lVar8 == 0x18); iVar6 = perform_promise_then(param_1,uVar7,uVar9,local_90 + 1,local_58); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar7,uVar9); lVar8 = 8; do { JS_FreeValueRT(*(int8 *)(param_1 + 0x18), *(int8 *)((long)local_90 + lVar8), *(int8 *)((long)local_90 + lVar8 + 8U)); lVar8 = lVar8 + 0x10; } while (lVar8 == 0x18); if (iVar6 == 0) { JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar11,uVar10); iVar6 = 6; goto LAB_00154c8f; } } else { JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar7,uVar9); } } JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar11,uVar10); *(int4 *)((long)param_2 + 0x24) = 1; iVar6 = 5; } LAB_00154c8f: } while (iVar6 == 5); if (iVar6 != 0) { return; } LAB_00154df9: if ((int *)param_2[0x10] == local_90[0]) { return; } break; case 4: goto switchD_00154aef_caseD_4; case 5: if (*(int *)(lVar8 + 0x10) == 1) { *(int4 *)(param_2 + 1) = 4; js_async_generator_completed_return (param_1,param_2,*(int8 *)(lVar8 + 0x18),*(int8 *)(lVar8 + 0x20)); } else if (*(int *)(lVar8 + 0x10) == 0) { js_async_generator_resolve(param_1,param_2,0,3,1); } else { js_async_generator_resolve_or_reject (param_1,param_2,*(int8 *)(lVar8 + 0x18),*(int8 *)(lVar8 + 0x20),1); } goto switchD_00154aef_caseD_4; } } while( true ); } switchD_00154aef_caseD_4: return; }
2,171
my_coll_lexem_next
eloqsql/strings/ctype-uca.c
static my_coll_lexem_num my_coll_lexem_next(MY_COLL_LEXEM *lexem) { const char *beg; my_coll_lexem_num rc; for (beg= lexem->beg ; beg < lexem->end ; beg++) { switch (*beg) { case ' ': case '\t': case '\r': case '\n': continue; case '[': /* Bracket expression, e.g. "[optimize [a-z]]" */ { size_t nbrackets; /* Indicates nested recursion level */ for (beg++, nbrackets= 1 ; beg < lexem->end; beg++) { if (*beg == '[') /* Enter nested bracket expression */ nbrackets++; else if (*beg == ']') { if (--nbrackets == 0) { rc= MY_COLL_LEXEM_OPTION; beg++; goto ex; } } } rc= MY_COLL_LEXEM_ERROR; goto ex; } case '&': beg++; rc= MY_COLL_LEXEM_RESET; goto ex; case '=': beg++; lexem->diff= 0; rc= MY_COLL_LEXEM_SHIFT; goto ex; case '/': beg++; rc= MY_COLL_LEXEM_EXTEND; goto ex; case '|': beg++; rc= MY_COLL_LEXEM_CONTEXT; goto ex; case '<': /* Shift: '<' or '<<' or '<<<' or '<<<<' */ { /* Scan up to 3 additional '<' characters */ for (beg++, lexem->diff= 1; (beg < lexem->end) && (*beg == '<') && (lexem->diff <= 3); beg++, lexem->diff++); rc= MY_COLL_LEXEM_SHIFT; goto ex; } default: break; } /* Escaped character, e.g. \u1234 */ if ((*beg == '\\') && (beg + 2 < lexem->end) && (beg[1] == 'u') && my_isxdigit(&my_charset_utf8mb3_general_ci, beg[2])) { int ch; beg+= 2; lexem->code= 0; while ((beg < lexem->end) && ((ch= ch2x(beg[0])) >= 0)) { lexem->code= (lexem->code << 4) + ch; beg++; } rc= MY_COLL_LEXEM_CHAR; goto ex; } /* Unescaped single byte character: allow printable ASCII range except SPACE and special characters parsed above []<&/|= */ if (*beg >= 0x21 && *beg <= 0x7E) { lexem->code= *beg++; rc= MY_COLL_LEXEM_CHAR; goto ex; } if (((uchar) *beg) > 0x7F) /* Unescaped multibyte character */ { CHARSET_INFO *cs= &my_charset_utf8mb3_general_ci; my_wc_t wc; int nbytes= my_ci_mb_wc(cs, &wc, (uchar *) beg, (uchar *) lexem->end); if (nbytes > 0) { rc= MY_COLL_LEXEM_CHAR; beg+= nbytes; lexem->code= (int) wc; goto ex; } } rc= MY_COLL_LEXEM_ERROR; goto ex; } rc= MY_COLL_LEXEM_EOF; ex: lexem->prev= lexem->beg; lexem->beg= beg; lexem->term= rc; return rc; }
O0
c
my_coll_lexem_next: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rcx cmpq 0x10(%rcx), %rax jae 0x5195b movq -0x10(%rbp), %rax movsbl (%rax), %eax movl %eax, -0x40(%rbp) addl $-0x9, %eax subl $0x2, %eax jb 0x51645 jmp 0x515de movl -0x40(%rbp), %eax subl $0xd, %eax je 0x51645 jmp 0x515e8 movl -0x40(%rbp), %eax subl $0x20, %eax je 0x51645 jmp 0x515f2 movl -0x40(%rbp), %eax subl $0x26, %eax je 0x516dc jmp 0x51600 movl -0x40(%rbp), %eax subl $0x2f, %eax je 0x51717 jmp 0x5160e movl -0x40(%rbp), %eax subl $0x3c, %eax je 0x51747 jmp 0x5161c movl -0x40(%rbp), %eax subl $0x3d, %eax je 0x516f4 jmp 0x5162a movl -0x40(%rbp), %eax subl $0x5b, %eax je 0x5164a jmp 0x51634 movl -0x40(%rbp), %eax subl $0x7c, %eax je 0x5172f jmp 0x517c2 jmp 0x5194a movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movq $0x1, -0x20(%rbp) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rcx cmpq 0x10(%rcx), %rax jae 0x516d0 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x5b, %eax jne 0x51686 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) jmp 0x516c0 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x5d, %eax jne 0x516be movq -0x20(%rbp), %rax addq $-0x1, %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x516bc movl $0x7, -0x14(%rbp) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x51962 jmp 0x516be jmp 0x516c0 jmp 0x516c2 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x5165e movl $0x6, -0x14(%rbp) jmp 0x51962 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movl $0x4, -0x14(%rbp) jmp 0x51962 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movl $0x0, 0x20(%rax) movl $0x1, -0x14(%rbp) jmp 0x51962 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movl $0x8, -0x14(%rbp) jmp 0x51962 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movl $0x9, -0x14(%rbp) jmp 0x51962 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movl $0x1, 0x20(%rax) movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rdx xorl %eax, %eax cmpq 0x10(%rdx), %rcx movb %al, -0x41(%rbp) jae 0x51790 movq -0x10(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl $0x3c, %ecx movb %al, -0x41(%rbp) jne 0x51790 movq -0x8(%rbp), %rax cmpl $0x3, 0x20(%rax) setle %al movb %al, -0x41(%rbp) movb -0x41(%rbp), %al testb $0x1, %al jne 0x51799 jmp 0x517b6 jmp 0x5179b movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movl 0x20(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x20(%rax) jmp 0x5175e movl $0x1, -0x14(%rbp) jmp 0x51962 jmp 0x517c4 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x5c, %eax jne 0x51896 movq -0x10(%rbp), %rax addq $0x2, %rax movq -0x8(%rbp), %rcx cmpq 0x10(%rcx), %rax jae 0x51896 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax cmpl $0x75, %eax jne 0x51896 leaq 0x3331be(%rip), %rax # 0x3849c0 movq 0x40(%rax), %rax movq -0x10(%rbp), %rcx movzbl 0x2(%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x51896 movq -0x10(%rbp), %rax addq $0x2, %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movl $0x0, 0x24(%rax) movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rdx xorl %eax, %eax cmpq 0x10(%rdx), %rcx movb %al, -0x42(%rbp) jae 0x5185f movq -0x10(%rbp), %rax movsbl (%rax), %edi callq 0x519b0 movl %eax, -0x24(%rbp) cmpl $0x0, %eax setge %al movb %al, -0x42(%rbp) movb -0x42(%rbp), %al testb $0x1, %al jne 0x51868 jmp 0x5188a movq -0x8(%rbp), %rax movl 0x24(%rax), %ecx shll $0x4, %ecx addl -0x24(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x24(%rax) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x51834 movl $0x5, -0x14(%rbp) jmp 0x51962 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x21, %eax jl 0x518d3 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x7e, %eax jg 0x518d3 movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) movsbl (%rax), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x24(%rax) movl $0x5, -0x14(%rbp) jmp 0x51962 movq -0x10(%rbp), %rax movzbl (%rax), %eax cmpl $0x7f, %eax jle 0x51941 leaq 0x3330da(%rip), %rax # 0x3849c0 movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq 0xb8(%rax), %rax movq 0x28(%rax), %rax movq -0x30(%rbp), %rdi movq -0x10(%rbp), %rdx movq -0x8(%rbp), %rcx movq 0x10(%rcx), %rcx leaq -0x38(%rbp), %rsi callq *%rax movl %eax, -0x3c(%rbp) cmpl $0x0, -0x3c(%rbp) jle 0x5193f movl $0x5, -0x14(%rbp) movl -0x3c(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movq -0x38(%rbp), %rax movl %eax, %ecx movq -0x8(%rbp), %rax movl %ecx, 0x24(%rax) jmp 0x51962 jmp 0x51941 movl $0x6, -0x14(%rbp) jmp 0x51962 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x515b8 movl $0x0, -0x14(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x8(%rax) movl -0x14(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, (%rax) movl -0x14(%rbp), %eax addq $0x50, %rsp popq %rbp retq
my_coll_lexem_next: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_10], rax loc_515B8: mov rax, [rbp+var_10] mov rcx, [rbp+var_8] cmp rax, [rcx+10h] jnb loc_5195B mov rax, [rbp+var_10] movsx eax, byte ptr [rax] mov [rbp+var_40], eax add eax, 0FFFFFFF7h sub eax, 2 jb short loc_51645 jmp short $+2 loc_515DE: mov eax, [rbp+var_40] sub eax, 0Dh jz short loc_51645 jmp short $+2 loc_515E8: mov eax, [rbp+var_40] sub eax, 20h ; ' ' jz short loc_51645 jmp short $+2 loc_515F2: mov eax, [rbp+var_40] sub eax, 26h ; '&' jz loc_516DC jmp short $+2 loc_51600: mov eax, [rbp+var_40] sub eax, 2Fh ; '/' jz loc_51717 jmp short $+2 loc_5160E: mov eax, [rbp+var_40] sub eax, 3Ch ; '<' jz loc_51747 jmp short $+2 loc_5161C: mov eax, [rbp+var_40] sub eax, 3Dh ; '=' jz loc_516F4 jmp short $+2 loc_5162A: mov eax, [rbp+var_40] sub eax, 5Bh ; '[' jz short loc_5164A jmp short $+2 loc_51634: mov eax, [rbp+var_40] sub eax, 7Ch ; '|' jz loc_5172F jmp loc_517C2 loc_51645: jmp loc_5194A loc_5164A: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax mov [rbp+var_20], 1 loc_5165E: mov rax, [rbp+var_10] mov rcx, [rbp+var_8] cmp rax, [rcx+10h] jnb short loc_516D0 mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 5Bh ; '[' jnz short loc_51686 mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax jmp short loc_516C0 loc_51686: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 5Dh ; ']' jnz short loc_516BE mov rax, [rbp+var_20] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_20], rax cmp rax, 0 jnz short loc_516BC mov [rbp+var_14], 7 mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp loc_51962 loc_516BC: jmp short $+2 loc_516BE: jmp short $+2 loc_516C0: jmp short $+2 loc_516C2: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp short loc_5165E loc_516D0: mov [rbp+var_14], 6 jmp loc_51962 loc_516DC: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax mov [rbp+var_14], 4 jmp loc_51962 loc_516F4: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax mov rax, [rbp+var_8] mov dword ptr [rax+20h], 0 mov [rbp+var_14], 1 jmp loc_51962 loc_51717: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax mov [rbp+var_14], 8 jmp loc_51962 loc_5172F: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax mov [rbp+var_14], 9 jmp loc_51962 loc_51747: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax mov rax, [rbp+var_8] mov dword ptr [rax+20h], 1 loc_5175E: mov rcx, [rbp+var_10] mov rdx, [rbp+var_8] xor eax, eax cmp rcx, [rdx+10h] mov [rbp+var_41], al jnb short loc_51790 mov rax, [rbp+var_10] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, 3Ch ; '<' mov [rbp+var_41], al jnz short loc_51790 mov rax, [rbp+var_8] cmp dword ptr [rax+20h], 3 setle al mov [rbp+var_41], al loc_51790: mov al, [rbp+var_41] test al, 1 jnz short loc_51799 jmp short loc_517B6 loc_51799: jmp short $+2 loc_5179B: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax mov rax, [rbp+var_8] mov ecx, [rax+20h] add ecx, 1 mov [rax+20h], ecx jmp short loc_5175E loc_517B6: mov [rbp+var_14], 1 jmp loc_51962 loc_517C2: jmp short $+2 loc_517C4: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 5Ch ; '\' jnz loc_51896 mov rax, [rbp+var_10] add rax, 2 mov rcx, [rbp+var_8] cmp rax, [rcx+10h] jnb loc_51896 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] cmp eax, 75h ; 'u' jnz loc_51896 lea rax, my_charset_utf8mb3_general_ci mov rax, [rax+40h] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+2] movzx eax, byte ptr [rax+rcx+1] and eax, 80h cmp eax, 0 jz short loc_51896 mov rax, [rbp+var_10] add rax, 2 mov [rbp+var_10], rax mov rax, [rbp+var_8] mov dword ptr [rax+24h], 0 loc_51834: mov rcx, [rbp+var_10] mov rdx, [rbp+var_8] xor eax, eax cmp rcx, [rdx+10h] mov [rbp+var_42], al jnb short loc_5185F mov rax, [rbp+var_10] movsx edi, byte ptr [rax] call ch2x mov [rbp+var_24], eax cmp eax, 0 setnl al mov [rbp+var_42], al loc_5185F: mov al, [rbp+var_42] test al, 1 jnz short loc_51868 jmp short loc_5188A loc_51868: mov rax, [rbp+var_8] mov ecx, [rax+24h] shl ecx, 4 add ecx, [rbp+var_24] mov rax, [rbp+var_8] mov [rax+24h], ecx mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp short loc_51834 loc_5188A: mov [rbp+var_14], 5 jmp loc_51962 loc_51896: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 21h ; '!' jl short loc_518D3 mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 7Eh ; '~' jg short loc_518D3 mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx movsx ecx, byte ptr [rax] mov rax, [rbp+var_8] mov [rax+24h], ecx mov [rbp+var_14], 5 jmp loc_51962 loc_518D3: mov rax, [rbp+var_10] movzx eax, byte ptr [rax] cmp eax, 7Fh jle short loc_51941 lea rax, my_charset_utf8mb3_general_ci mov [rbp+var_30], rax mov rax, [rbp+var_30] mov rax, [rax+0B8h] mov rax, [rax+28h] mov rdi, [rbp+var_30] mov rdx, [rbp+var_10] mov rcx, [rbp+var_8] mov rcx, [rcx+10h] lea rsi, [rbp+var_38] call rax mov [rbp+var_3C], eax cmp [rbp+var_3C], 0 jle short loc_5193F mov [rbp+var_14], 5 mov ecx, [rbp+var_3C] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax mov rax, [rbp+var_38] mov ecx, eax mov rax, [rbp+var_8] mov [rax+24h], ecx jmp short loc_51962 loc_5193F: jmp short $+2 loc_51941: mov [rbp+var_14], 6 jmp short loc_51962 loc_5194A: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp loc_515B8 loc_5195B: mov [rbp+var_14], 0 loc_51962: mov rax, [rbp+var_8] mov rcx, [rax+8] mov rax, [rbp+var_8] mov [rax+18h], rcx mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+8], rcx mov ecx, [rbp+var_14] mov rax, [rbp+var_8] mov [rax], ecx mov eax, [rbp+var_14] add rsp, 50h pop rbp retn
long long my_coll_lexem_next(long long a1) { char *v1; // rax bool v3; // [rsp+Eh] [rbp-42h] bool v4; // [rsp+Fh] [rbp-41h] int v5; // [rsp+10h] [rbp-40h] int v6; // [rsp+14h] [rbp-3Ch] _QWORD v7[2]; // [rsp+18h] [rbp-38h] BYREF int v8; // [rsp+2Ch] [rbp-24h] long long v9; // [rsp+30h] [rbp-20h] unsigned int v10; // [rsp+3Ch] [rbp-14h] unsigned __int8 *i; // [rsp+40h] [rbp-10h] long long v12; // [rsp+48h] [rbp-8h] v12 = a1; for ( i = *(unsigned __int8 **)(a1 + 8); ; ++i ) { if ( (unsigned long long)i >= *(_QWORD *)(v12 + 16) ) { v10 = 0; goto LABEL_52; } v5 = (char)*i; if ( (unsigned int)(v5 - 9) >= 2 && v5 != 13 && v5 != 32 ) break; } switch ( v5 ) { case '&': ++i; v10 = 4; break; case '/': ++i; v10 = 8; break; case '<': ++i; for ( *(_DWORD *)(v12 + 32) = 1; ; ++*(_DWORD *)(v12 + 32) ) { v4 = 0; if ( (unsigned long long)i < *(_QWORD *)(v12 + 16) ) { v4 = 0; if ( *i == 60 ) v4 = *(_DWORD *)(v12 + 32) <= 3; } if ( !v4 ) break; ++i; } v10 = 1; break; case '=': ++i; *(_DWORD *)(v12 + 32) = 0; v10 = 1; break; case '[': ++i; v9 = 1LL; while ( (unsigned long long)i < *(_QWORD *)(v12 + 16) ) { if ( *i == 91 ) { ++v9; } else if ( *i == 93 && !--v9 ) { v10 = 7; ++i; goto LABEL_52; } ++i; } v10 = 6; break; case '|': ++i; v10 = 9; break; default: if ( *i == 92 && (unsigned long long)(i + 2) < *(_QWORD *)(v12 + 16) && i[1] == 117 && (*(_BYTE *)(*(_QWORD *)&my_charset_utf8mb3_general_ci[16] + i[2] + 1LL) & 0x80) != 0 ) { i += 2; *(_DWORD *)(v12 + 36) = 0; while ( 1 ) { v3 = 0; if ( (unsigned long long)i < *(_QWORD *)(v12 + 16) ) { v8 = ch2x((unsigned int)(char)*i); v3 = v8 >= 0; } if ( !v3 ) break; *(_DWORD *)(v12 + 36) = v8 + 16 * *(_DWORD *)(v12 + 36); ++i; } v10 = 5; } else if ( (char)*i < 33 || *i == 127 ) { if ( *i <= 0x7Fu || (v7[1] = my_charset_utf8mb3_general_ci, v6 = (*(long long ( **)(unsigned int *, _QWORD *, unsigned __int8 *, _QWORD))(*(_QWORD *)&my_charset_utf8mb3_general_ci[46] + 40LL))( my_charset_utf8mb3_general_ci, v7, i, *(_QWORD *)(v12 + 16)), v6 <= 0) ) { v10 = 6; } else { v10 = 5; i += v6; *(_DWORD *)(v12 + 36) = v7[0]; } } else { v1 = (char *)i++; *(_DWORD *)(v12 + 36) = *v1; v10 = 5; } break; } LABEL_52: *(_QWORD *)(v12 + 24) = *(_QWORD *)(v12 + 8); *(_QWORD *)(v12 + 8) = i; *(_DWORD *)v12 = v10; return v10; }
my_coll_lexem_next: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x10],RAX LAB_001515b8: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x10] JNC 0x0015195b MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x40],EAX ADD EAX,-0x9 SUB EAX,0x2 JC 0x00151645 JMP 0x001515de LAB_001515de: MOV EAX,dword ptr [RBP + -0x40] SUB EAX,0xd JZ 0x00151645 JMP 0x001515e8 LAB_001515e8: MOV EAX,dword ptr [RBP + -0x40] SUB EAX,0x20 JZ 0x00151645 JMP 0x001515f2 LAB_001515f2: MOV EAX,dword ptr [RBP + -0x40] SUB EAX,0x26 JZ 0x001516dc JMP 0x00151600 LAB_00151600: MOV EAX,dword ptr [RBP + -0x40] SUB EAX,0x2f JZ 0x00151717 JMP 0x0015160e LAB_0015160e: MOV EAX,dword ptr [RBP + -0x40] SUB EAX,0x3c JZ 0x00151747 JMP 0x0015161c LAB_0015161c: MOV EAX,dword ptr [RBP + -0x40] SUB EAX,0x3d JZ 0x001516f4 JMP 0x0015162a LAB_0015162a: MOV EAX,dword ptr [RBP + -0x40] SUB EAX,0x5b JZ 0x0015164a JMP 0x00151634 LAB_00151634: MOV EAX,dword ptr [RBP + -0x40] SUB EAX,0x7c JZ 0x0015172f JMP 0x001517c2 LAB_00151645: JMP 0x0015194a LAB_0015164a: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV qword ptr [RBP + -0x20],0x1 LAB_0015165e: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x10] JNC 0x001516d0 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x5b JNZ 0x00151686 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX JMP 0x001516c0 LAB_00151686: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x5d JNZ 0x001516be MOV RAX,qword ptr [RBP + -0x20] ADD RAX,-0x1 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x001516bc MOV dword ptr [RBP + -0x14],0x7 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x00151962 LAB_001516bc: JMP 0x001516be LAB_001516be: JMP 0x001516c0 LAB_001516c0: JMP 0x001516c2 LAB_001516c2: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x0015165e LAB_001516d0: MOV dword ptr [RBP + -0x14],0x6 JMP 0x00151962 LAB_001516dc: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV dword ptr [RBP + -0x14],0x4 JMP 0x00151962 LAB_001516f4: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x20],0x0 MOV dword ptr [RBP + -0x14],0x1 JMP 0x00151962 LAB_00151717: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV dword ptr [RBP + -0x14],0x8 JMP 0x00151962 LAB_0015172f: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV dword ptr [RBP + -0x14],0x9 JMP 0x00151962 LAB_00151747: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x20],0x1 LAB_0015175e: MOV RCX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x8] XOR EAX,EAX CMP RCX,qword ptr [RDX + 0x10] MOV byte ptr [RBP + -0x41],AL JNC 0x00151790 MOV RAX,qword ptr [RBP + -0x10] MOVSX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x3c MOV byte ptr [RBP + -0x41],AL JNZ 0x00151790 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x20],0x3 SETLE AL MOV byte ptr [RBP + -0x41],AL LAB_00151790: MOV AL,byte ptr [RBP + -0x41] TEST AL,0x1 JNZ 0x00151799 JMP 0x001517b6 LAB_00151799: JMP 0x0015179b LAB_0015179b: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x20] ADD ECX,0x1 MOV dword ptr [RAX + 0x20],ECX JMP 0x0015175e LAB_001517b6: MOV dword ptr [RBP + -0x14],0x1 JMP 0x00151962 LAB_001517c2: JMP 0x001517c4 LAB_001517c4: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x5c JNZ 0x00151896 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x10] JNC 0x00151896 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] CMP EAX,0x75 JNZ 0x00151896 LEA RAX,[0x4849c0] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x2] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x80 CMP EAX,0x0 JZ 0x00151896 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x24],0x0 LAB_00151834: MOV RCX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x8] XOR EAX,EAX CMP RCX,qword ptr [RDX + 0x10] MOV byte ptr [RBP + -0x42],AL JNC 0x0015185f MOV RAX,qword ptr [RBP + -0x10] MOVSX EDI,byte ptr [RAX] CALL 0x001519b0 MOV dword ptr [RBP + -0x24],EAX CMP EAX,0x0 SETGE AL MOV byte ptr [RBP + -0x42],AL LAB_0015185f: MOV AL,byte ptr [RBP + -0x42] TEST AL,0x1 JNZ 0x00151868 JMP 0x0015188a LAB_00151868: MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x24] SHL ECX,0x4 ADD ECX,dword ptr [RBP + -0x24] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x24],ECX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x00151834 LAB_0015188a: MOV dword ptr [RBP + -0x14],0x5 JMP 0x00151962 LAB_00151896: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x21 JL 0x001518d3 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x7e JG 0x001518d3 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX MOVSX ECX,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x24],ECX MOV dword ptr [RBP + -0x14],0x5 JMP 0x00151962 LAB_001518d3: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] CMP EAX,0x7f JLE 0x00151941 LEA RAX,[0x4849c0] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV RDI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0x10] LEA RSI,[RBP + -0x38] CALL RAX MOV dword ptr [RBP + -0x3c],EAX CMP dword ptr [RBP + -0x3c],0x0 JLE 0x0015193f MOV dword ptr [RBP + -0x14],0x5 MOV ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x24],ECX JMP 0x00151962 LAB_0015193f: JMP 0x00151941 LAB_00151941: MOV dword ptr [RBP + -0x14],0x6 JMP 0x00151962 LAB_0015194a: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x001515b8 LAB_0015195b: MOV dword ptr [RBP + -0x14],0x0 LAB_00151962: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x18],RCX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],RCX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX],ECX MOV EAX,dword ptr [RBP + -0x14] ADD RSP,0x50 POP RBP RET
int4 my_coll_lexem_next(int4 *param_1) { byte *pbVar1; int iVar2; bool bVar3; int4 local_40 [2]; int1 *local_38; int local_2c; long local_28; int4 local_1c; byte *local_18; int4 *local_10; local_18 = *(byte **)(param_1 + 2); while( true ) { local_10 = param_1; if (*(byte **)(param_1 + 4) <= local_18) goto LAB_0015195b; iVar2 = (int)(char)*local_18; if (((1 < iVar2 - 9U) && (iVar2 != 0xd)) && (iVar2 != 0x20)) break; local_18 = local_18 + 1; } if (iVar2 == 0x26) { local_18 = local_18 + 1; local_1c = 4; goto LAB_00151962; } if (iVar2 == 0x2f) { local_18 = local_18 + 1; local_1c = 8; goto LAB_00151962; } if (iVar2 != 0x3c) { if (iVar2 == 0x3d) { local_18 = local_18 + 1; param_1[8] = 0; local_1c = 1; goto LAB_00151962; } if (iVar2 == 0x5b) { local_28 = 1; goto LAB_0015165e; } if (iVar2 == 0x7c) { local_18 = local_18 + 1; local_1c = 9; goto LAB_00151962; } if ((((*local_18 == 0x5c) && (local_18 + 2 < *(byte **)(param_1 + 4))) && (local_18[1] == 0x75)) && ((*(byte *)(my_charset_utf8mb3_general_ci._64_8_ + 1 + (ulong)local_18[2]) & 0x80) != 0)) { local_18 = local_18 + 2; param_1[9] = 0; while( true ) { bVar3 = false; if (local_18 < *(byte **)(local_10 + 4)) { local_2c = ch2x((int)(char)*local_18); bVar3 = -1 < local_2c; } if (!bVar3) break; local_10[9] = local_10[9] * 0x10 + local_2c; local_18 = local_18 + 1; } local_1c = 5; goto LAB_00151962; } if ((' ' < (char)*local_18) && ((char)*local_18 < '\x7f')) { param_1[9] = (int)(char)*local_18; local_1c = 5; local_18 = local_18 + 1; goto LAB_00151962; } if (0x7f < *local_18) { local_38 = my_charset_utf8mb3_general_ci; iVar2 = (**(code **)(my_charset_utf8mb3_general_ci._184_8_ + 0x28)) (my_charset_utf8mb3_general_ci,local_40,local_18, *(int8 *)(param_1 + 4)); if (0 < iVar2) { local_1c = 5; local_18 = local_18 + iVar2; local_10[9] = local_40[0]; goto LAB_00151962; } } local_1c = 6; goto LAB_00151962; } param_1[8] = 1; while( true ) { local_18 = local_18 + 1; bVar3 = false; if ((local_18 < *(byte **)(param_1 + 4)) && (bVar3 = false, *local_18 == 0x3c)) { bVar3 = (int)param_1[8] < 4; } if (!bVar3) break; param_1[8] = param_1[8] + 1; } local_1c = 1; goto LAB_00151962; LAB_0015195b: local_1c = 0; goto LAB_00151962; while ((*local_18 != 0x5d || (local_28 = local_28 + -1, local_28 != 0))) { LAB_0015165e: pbVar1 = local_18; local_18 = pbVar1 + 1; if (*(byte **)(param_1 + 4) <= local_18) { local_1c = 6; goto LAB_00151962; } if (*local_18 == 0x5b) { local_28 = local_28 + 1; goto LAB_0015165e; } } local_1c = 7; local_18 = pbVar1 + 2; LAB_00151962: *(int8 *)(local_10 + 6) = *(int8 *)(local_10 + 2); *(byte **)(local_10 + 2) = local_18; *local_10 = local_1c; return local_1c; }
2,172
testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames(char const*, char const*, int, char const*)
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-typed-test.cc
const char* TypedTestSuitePState::VerifyRegisteredTestNames( const char* test_suite_name, const char* file, int line, const char* registered_tests) { RegisterTypeParameterizedTestSuite(test_suite_name, CodeLocation(file, line)); typedef RegisteredTestsMap::const_iterator RegisteredTestIter; registered_ = true; std::vector<std::string> name_vec = SplitIntoTestNames(registered_tests); Message errors; std::set<std::string> tests; for (std::vector<std::string>::const_iterator name_it = name_vec.begin(); name_it != name_vec.end(); ++name_it) { const std::string& name = *name_it; if (tests.count(name) != 0) { errors << "Test " << name << " is listed more than once.\n"; continue; } if (registered_tests_.count(name) != 0) { tests.insert(name); } else { errors << "No test named " << name << " can be found in this test suite.\n"; } } for (RegisteredTestIter it = registered_tests_.begin(); it != registered_tests_.end(); ++it) { if (tests.count(it->first) == 0) { errors << "You forgot to list test " << it->first << ".\n"; } } const std::string& errors_str = errors.GetString(); if (!errors_str.empty()) { fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(), errors_str.c_str()); fflush(stderr); posix::Abort(); } return registered_tests; }
O3
cpp
testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames(char const*, char const*, int, char const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x108, %rsp # imm = 0x108 movq %r8, %r12 movl %ecx, %ebp movq %rdx, %r13 movq %rsi, %rbx movq %rdi, 0x30(%rsp) leaq 0x88(%rsp), %rdi leaq 0x58(%rsp), %rdx movq %r13, %rsi callq 0x81e0 leaq 0xd0(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x98(%rsp), %r14 movq -0x10(%r14), %rax cmpq %r14, %rax je 0x18441 movq %rax, 0xc0(%rsp) movq 0x98(%rsp), %rax movq %rax, 0xd0(%rsp) jmp 0x18449 movups (%r14), %xmm0 movups %xmm0, (%r15) movq 0x90(%rsp), %rax leaq 0xc0(%rsp), %rsi movq %rax, 0x8(%rsi) movq %r14, 0x88(%rsp) movq $0x0, 0x90(%rsp) movb $0x0, 0x98(%rsp) movl %ebp, 0x20(%rsi) movq %rbx, %rdi callq 0x18966 movq 0xc0(%rsp), %rdi cmpq %r15, %rdi je 0x184a1 movq 0xd0(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x88(%rsp), %rdi cmpq %r14, %rdi je 0x184be movq 0x98(%rsp), %rsi incq %rsi callq 0x84e0 movq %r13, 0xa8(%rsp) movl %ebp, 0x3c(%rsp) movq 0x30(%rsp), %rax movb $0x1, (%rax) xorps %xmm0, %xmm0 movaps %xmm0, 0x40(%rsp) movq $0x0, 0x50(%rsp) movq %r12, 0xb0(%rsp) decq %r12 movzbl 0x1(%r12), %edi incq %r12 callq 0x80b0 testl %eax, %eax jne 0x184ee leaq 0x18(%rsp), %rbx leaq 0x68(%rsp), %rbp leaq 0x8(%rsp), %r13 movq %r12, %rdi movl $0x2c, %esi callq 0x81d0 movq %rbx, 0x8(%rsp) testq %rax, %rax jne 0x18531 movq %r12, %rdi callq 0x8200 addq %r12, %rax movq %r13, %rdi movq %r12, %rsi movq %rax, %rdx callq 0x3911e movq 0x8(%rsp), %r14 movq 0x10(%rsp), %r15 testq %r15, %r15 je 0x1858d addq %r14, %r15 movzbl -0x1(%r15), %edi callq 0x80b0 testl %eax, %eax je 0x1858d decq %r15 movq %r15, %rbx subq %r14, %rbx movl $0x1, %edx movq %r13, %rdi movq %rbx, %rsi callq 0x8630 movq 0x8(%rsp), %rax addq %rax, %rbx cmpq %r14, %r15 movq %rax, %r14 movq %rbx, %r15 jne 0x18551 jmp 0x18590 movq %r14, %rax movq %rbp, 0x58(%rsp) leaq 0x18(%rsp), %rbx cmpq %rbx, %rax je 0x185b0 movq %rax, 0x58(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x68(%rsp) jmp 0x185b7 movups (%rbx), %xmm0 movups %xmm0, (%rbp) movq 0x10(%rsp), %rax movq %rax, 0x60(%rsp) movq %rbx, 0x8(%rsp) movq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) leaq 0x40(%rsp), %rdi leaq 0x58(%rsp), %rsi callq 0x39de6 movq 0x58(%rsp), %rdi cmpq %rbp, %rdi je 0x185fa movq 0x68(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x8(%rsp), %rdi cmpq %rbx, %rdi je 0x18611 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 movq %r12, %rdi movl $0x2c, %esi callq 0x81d0 testq %rax, %rax je 0x1863d movq %rax, %r12 movzbl 0x1(%r12), %edi incq %r12 callq 0x80b0 testl %eax, %eax jne 0x18626 jmp 0x1850f leaq 0x28(%rsp), %rdi callq 0x1c968 leaq 0x60(%rsp), %rcx movl $0x0, (%rcx) xorl %eax, %eax movq %rax, 0x8(%rcx) movq %rcx, 0x10(%rcx) movq %rcx, 0x18(%rcx) movq %rax, 0x20(%rcx) movq 0x40(%rsp), %r14 cmpq 0x48(%rsp), %r14 je 0x18748 movq 0x28(%rsp), %r15 leaq 0x10(%r15), %r13 movq 0x30(%rsp), %rax leaq 0x8(%rax), %rbp addq $0x10, %rax movq %rax, 0xb8(%rsp) leaq 0x58(%rsp), %rbx movq %rbx, %rdi movq %r14, %rsi callq 0x39e3a leaq 0x60(%rsp), %rcx cmpq %rcx, %rax je 0x186e9 movl $0x5, %edx movq %r13, %rdi leaq 0x29f70(%rip), %rsi # 0x4262b callq 0x85b0 movq (%r14), %rsi movq 0x8(%r14), %rdx movl $0x1b, %r12d movq %r13, %rdi callq 0x85b0 leaq 0x29f55(%rip), %rsi # 0x42631 movq %r13, %rdi movq %r12, %rdx callq 0x85b0 jmp 0x18709 movq %rbp, %rdi movq %r14, %rsi callq 0x3924a cmpq 0xb8(%rsp), %rax je 0x18716 movq %rbx, %rdi movq %r14, %rsi callq 0x39ec4 addq $0x20, %r14 cmpq 0x48(%rsp), %r14 jne 0x18697 jmp 0x18748 movl $0xe, %edx movq %r13, %rdi leaq 0x29f28(%rip), %rsi # 0x4264d callq 0x85b0 movq (%r14), %rsi movq 0x8(%r14), %rdx movl $0x22, %r12d movq %r13, %rdi callq 0x85b0 leaq 0x29f16(%rip), %rsi # 0x4265c jmp 0x186dc movq 0x30(%rsp), %rax movq 0x20(%rax), %rbx addq $0x10, %rax cmpq %rax, %rbx je 0x187cf movq %rax, %r15 leaq 0x58(%rsp), %r14 leaq 0x29f16(%rip), %r12 # 0x4267f leaq 0x2ab54(%rip), %r13 # 0x432c4 leaq 0x20(%rbx), %rsi movq %r14, %rdi callq 0x39e3a leaq 0x60(%rsp), %rcx cmpq %rcx, %rax jne 0x187bf movq 0x28(%rsp), %rbp addq $0x10, %rbp movl $0x18, %edx movq %rbp, %rdi movq %r12, %rsi callq 0x85b0 movq 0x20(%rbx), %rsi movq 0x28(%rbx), %rdx movq %rbp, %rdi callq 0x85b0 movl $0x2, %edx movq %rbp, %rdi movq %r13, %rsi callq 0x85b0 movq %rbx, %rdi callq 0x85d0 movq %rax, %rbx cmpq %r15, %rax jne 0x18770 movq 0x28(%rsp), %r15 leaq 0x8(%rsp), %rdi movq %r15, %rsi callq 0x1cbbf cmpq $0x0, 0x10(%rsp) movq 0xb0(%rsp), %rbx leaq 0x18(%rsp), %rax jne 0x18844 movq 0x8(%rsp), %rdi cmpq %rax, %rdi je 0x1880d movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 leaq 0x58(%rsp), %rdi callq 0x36168 testq %r15, %r15 je 0x18825 movq (%r15), %rax movq %r15, %rdi callq *0x8(%rax) leaq 0x40(%rsp), %rdi callq 0x31f9e movq %rbx, %rax addq $0x108, %rsp # imm = 0x108 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x4077d(%rip), %rax # 0x58fc8 movq (%rax), %rbx leaq 0xe8(%rsp), %rdi movq 0xa8(%rsp), %rsi movl 0x3c(%rsp), %edx callq 0x1663e leaq 0xe8(%rsp), %rdi leaq 0x8(%rsp), %rsi movq %rbx, %rdx callq 0x8bd2 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x1891b movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x1891b jmp 0x18918 jmp 0x188ed movq %rax, %rbx movq 0xc0(%rsp), %rdi cmpq %r15, %rdi je 0x188c5 movq 0xd0(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x88(%rsp), %rdi cmpq %r14, %rdi je 0x1895e movq 0x98(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x1895e movq %rax, %rbx jmp 0x1895e movq %rax, %rbx jmp 0x18954 movq %rax, %rbx movq 0x58(%rsp), %rdi cmpq %rbp, %rdi je 0x18938 movq 0x68(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x18938 movq %rax, %rbx movq 0x28(%rsp), %r15 jmp 0x1891b movq %rax, %rbx leaq 0x58(%rsp), %rdi callq 0x36168 testq %r15, %r15 je 0x18954 movq (%r15), %rax movq %r15, %rdi callq *0x8(%rax) jmp 0x18954 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x18954 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 leaq 0x40(%rsp), %rdi callq 0x31f9e movq %rbx, %rdi callq 0x8990
_ZN7testing8internal20TypedTestSuitePState25VerifyRegisteredTestNamesEPKcS3_iS3_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 108h mov r12, r8 mov ebp, ecx mov r13, rdx mov rbx, rsi mov [rsp+138h+var_108], rdi; __int64 lea rdi, [rsp+138h+var_B0] lea rdx, [rsp+138h+var_E0] mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&) lea r15, [rsp+138h+var_68] mov [r15-10h], r15 lea r14, [rsp+138h+var_A0] mov rax, [r14-10h] cmp rax, r14 jz short loc_18441 mov [rsp+138h+var_78], rax mov rax, [rsp+138h+var_A0] mov [rsp+138h+var_68], rax jmp short loc_18449 loc_18441: movups xmm0, xmmword ptr [r14] movups xmmword ptr [r15], xmm0 loc_18449: mov rax, [rsp+138h+var_A8] lea rsi, [rsp+138h+var_78] mov [rsi+8], rax mov [rsp+138h+var_B0], r14 mov [rsp+138h+var_A8], 0 mov byte ptr [rsp+138h+var_A0], 0 mov [rsi+20h], ebp mov rdi, rbx; int call _ZN7testing8internal34RegisterTypeParameterizedTestSuiteEPKcNS0_12CodeLocationE; testing::internal::RegisterTypeParameterizedTestSuite(char const*,testing::internal::CodeLocation) mov rdi, [rsp+138h+var_78]; void * cmp rdi, r15 jz short loc_184A1 mov rsi, [rsp+138h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_184A1: mov rdi, [rsp+138h+var_B0]; void * cmp rdi, r14 jz short loc_184BE mov rsi, [rsp+138h+var_A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_184BE: mov qword ptr [rsp+138h+var_90], r13 mov [rsp+138h+var_FC], ebp mov rax, [rsp+138h+var_108] mov byte ptr [rax], 1 xorps xmm0, xmm0 movaps xmmword ptr [rsp+138h+var_F8], xmm0; int mov [rsp+138h+var_E8], 0; __int64 mov [rsp+138h+var_88], r12 dec r12 loc_184EE: movzx edi, byte ptr [r12+1] inc r12 call _isspace test eax, eax jnz short loc_184EE lea rbx, [rsp+138h+var_120] lea rbp, [rsp+138h+var_D0] lea r13, [rsp+138h+var_130] loc_1850F: mov rdi, r12 mov esi, 2Ch ; ',' call _strchr mov [rsp+138h+var_130], rbx test rax, rax jnz short loc_18531 mov rdi, r12 call _strlen add rax, r12 loc_18531: mov rdi, r13 mov rsi, r12 mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov r14, [rsp+138h+var_130] mov r15, [rsp+138h+var_128] test r15, r15 jz short loc_1858D add r15, r14 loc_18551: movzx edi, byte ptr [r15-1] call _isspace test eax, eax jz short loc_1858D dec r15 mov rbx, r15 sub rbx, r14 mov edx, 1 mov rdi, r13 mov rsi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm; std::string::_M_erase(ulong,ulong) mov rax, [rsp+138h+var_130] add rbx, rax cmp r15, r14 mov r14, rax mov r15, rbx jnz short loc_18551 jmp short loc_18590 loc_1858D: mov rax, r14 loc_18590: mov [rsp+138h+var_E0], rbp; int lea rbx, [rsp+138h+var_120] cmp rax, rbx jz short loc_185B0 mov [rsp+138h+var_E0], rax mov rax, qword ptr [rsp+138h+var_120] mov qword ptr [rsp+138h+var_D0], rax jmp short loc_185B7 loc_185B0: movups xmm0, xmmword ptr [rbx] movups xmmword ptr [rbp+0], xmm0 loc_185B7: mov rax, [rsp+138h+var_128] mov [rsp+138h+var_D8], rax; void * mov [rsp+138h+var_130], rbx; int mov [rsp+138h+var_128], 0; __int64 mov byte ptr [rsp+138h+var_120], 0; int lea rdi, [rsp+138h+var_F8] lea rsi, [rsp+138h+var_E0] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEEvDpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, [rsp+138h+var_E0]; void * cmp rdi, rbp jz short loc_185FA mov rsi, qword ptr [rsp+138h+var_D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_185FA: mov rdi, [rsp+138h+var_130]; void * cmp rdi, rbx jz short loc_18611 mov rsi, qword ptr [rsp+138h+var_120] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_18611: mov rdi, r12 mov esi, 2Ch ; ',' call _strchr test rax, rax jz short loc_1863D mov r12, rax loc_18626: movzx edi, byte ptr [r12+1] inc r12 call _isspace test eax, eax jnz short loc_18626 jmp loc_1850F loc_1863D: lea rdi, [rsp+138h+var_110]; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) lea rcx, [rsp+138h+var_D8] mov dword ptr [rcx], 0 xor eax, eax mov [rcx+8], rax mov [rcx+10h], rcx mov [rcx+18h], rcx mov [rcx+20h], rax mov r14, qword ptr [rsp+138h+var_F8] cmp r14, qword ptr [rsp+138h+var_F8+8] jz loc_18748 mov r15, [rsp+138h+var_110] lea r13, [r15+10h] mov rax, [rsp+138h+var_108] lea rbp, [rax+8] add rax, 10h mov [rsp+138h+var_80], rax lea rbx, [rsp+138h+var_E0] loc_18697: mov rdi, rbx mov rsi, r14 call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE4findERKS5_; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find(std::string const&) lea rcx, [rsp+138h+var_D8] cmp rax, rcx jz short loc_186E9 mov edx, 5 mov rdi, r13 lea rsi, aTest; "Test " call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [r14] mov rdx, [r14+8] mov r12d, 1Bh mov rdi, r13 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aIsListedMoreTh; " is listed more than once.\n" loc_186DC: mov rdi, r13 mov rdx, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_18709 loc_186E9: mov rdi, rbp mov rsi, r14 call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7testing8internal12CodeLocationEESt10_Select1stISB_ESt4lessIvESaISB_EE4findERS7_; std::_Rb_tree<std::string,std::pair<std::string const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::string const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::string const,testing::internal::CodeLocation>>>::find(std::string const&) cmp rax, [rsp+138h+var_80] jz short loc_18716 mov rdi, rbx mov rsi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE16_M_insert_uniqueIRKS5_EESt4pairISt17_Rb_tree_iteratorIS5_EbEOT_; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::_M_insert_unique<std::string const&>(std::string const&) loc_18709: add r14, 20h ; ' ' cmp r14, qword ptr [rsp+138h+var_F8+8] jnz short loc_18697 jmp short loc_18748 loc_18716: mov edx, 0Eh mov rdi, r13 lea rsi, aNoTestNamed; "No test named " call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [r14] mov rdx, [r14+8] mov r12d, 22h ; '"' mov rdi, r13 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aCanBeFoundInTh; " can be found in this test suite.\n" jmp short loc_186DC loc_18748: mov rax, [rsp+138h+var_108] mov rbx, [rax+20h] add rax, 10h cmp rbx, rax jz short loc_187CF mov r15, rax lea r14, [rsp+138h+var_E0] lea r12, aYouForgotToLis; "You forgot to list test " lea r13, aNoteRandomizin+32h; ".\n" loc_18770: lea rsi, [rbx+20h] mov rdi, r14 call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE4findERKS5_; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find(std::string const&) lea rcx, [rsp+138h+var_D8] cmp rax, rcx jnz short loc_187BF mov rbp, [rsp+138h+var_110] add rbp, 10h mov edx, 18h mov rdi, rbp mov rsi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [rbx+20h] mov rdx, [rbx+28h] mov rdi, rbp call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov edx, 2 mov rdi, rbp mov rsi, r13 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_187BF: mov rdi, rbx call __ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base const*) mov rbx, rax cmp rax, r15 jnz short loc_18770 loc_187CF: mov r15, [rsp+138h+var_110] lea rdi, [rsp+138h+var_130] mov rsi, r15 call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *) cmp [rsp+138h+var_128], 0 mov rbx, [rsp+138h+var_88] lea rax, [rsp+138h+var_120] jnz short loc_18844 mov rdi, [rsp+138h+var_130]; void * cmp rdi, rax jz short loc_1880D mov rsi, qword ptr [rsp+138h+var_120] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1880D: lea rdi, [rsp+138h+var_E0] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree() test r15, r15 jz short loc_18825 mov rax, [r15] mov rdi, r15 call qword ptr [rax+8] loc_18825: lea rdi, [rsp+138h+var_F8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rax, rbx add rsp, 108h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_18844: mov rax, cs:stderr_ptr mov rbx, [rax] lea rdi, [rsp+138h+var_50]; int mov rsi, qword ptr [rsp+138h+var_90]; int mov edx, [rsp+138h+var_FC]; int call _ZN7testing8internal18FormatFileLocationB5cxx11EPKci; testing::internal::FormatFileLocation(char const*,int) lea rdi, [rsp+138h+var_50]; void * lea rsi, [rsp+138h+var_130] mov rdx, rbx call _ZN7testing8internal20TypedTestSuitePState25VerifyRegisteredTestNamesEPKcS3_iS3__cold_1; testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames(char const*,char const*,int,char const*) [clone] mov rbx, rax mov rdi, [rsp+138h+var_130]; void * lea rax, [rsp+138h+var_120] cmp rdi, rax jz loc_1891B mov rsi, qword ptr [rsp+138h+var_120] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1891B jmp short loc_18918 jmp short loc_188ED mov rbx, rax mov rdi, [rsp+138h+var_78]; void * cmp rdi, r15 jz short loc_188C5 mov rsi, [rsp+138h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_188C5: mov rdi, [rsp+138h+var_B0]; void * cmp rdi, r14 jz loc_1895E mov rsi, [rsp+138h+var_A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1895E mov rbx, rax jmp short loc_1895E loc_188ED: mov rbx, rax jmp short loc_18954 mov rbx, rax mov rdi, [rsp+138h+var_E0]; void * cmp rdi, rbp jz short loc_18938 mov rsi, qword ptr [rsp+138h+var_D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_18938 mov rbx, rax mov r15, [rsp+138h+var_110] jmp short loc_1891B loc_18918: mov rbx, rax loc_1891B: lea rdi, [rsp+138h+var_E0] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree() test r15, r15 jz short loc_18954 mov rax, [r15] mov rdi, r15 call qword ptr [rax+8] jmp short loc_18954 mov rbx, rax loc_18938: mov rdi, [rsp+138h+var_130]; void * lea rax, [rsp+138h+var_120] cmp rdi, rax jz short loc_18954 mov rsi, qword ptr [rsp+138h+var_120] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_18954: lea rdi, [rsp+138h+var_F8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_1895E: mov rdi, rbx call __Unwind_Resume
const char * testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames( testing::internal::TypedTestSuitePState *this, const char *a2, const char *a3, int a4, const char *a5) { const char *v8; // r12 long long v9; // rdi long long v10; // rax char *v11; // r14 char *v12; // r15 char *v13; // r15 signed long long v14; // rbx __int128 *v15; // rax bool v16; // zf long long v17; // rax long long v18; // rdi int v19; // edx int v20; // r8d int v21; // r9d void **v22; // rcx _QWORD *v23; // r14 long long v24; // r13 long long v25; // rbp long long v26; // r12 const char *v27; // rsi long long v28; // rax long long v29; // rbx long long v30; // r15 long long v31; // rbp long long v32; // r15 const char *v33; // rbx long long v35; // rbx void *v36; // [rsp+0h] [rbp-138h] void *v37; // [rsp+8h] [rbp-130h] BYREF void *v38; // [rsp+10h] [rbp-128h] __int128 v39; // [rsp+18h] [rbp-120h] BYREF long long v40; // [rsp+28h] [rbp-110h] BYREF long long v41; // [rsp+30h] [rbp-108h] int v42; // [rsp+3Ch] [rbp-FCh] int v43[4]; // [rsp+40h] [rbp-F8h] BYREF long long v44; // [rsp+50h] [rbp-E8h] void *v45; // [rsp+58h] [rbp-E0h] BYREF void *v46; // [rsp+60h] [rbp-D8h] BYREF __int128 v47; // [rsp+68h] [rbp-D0h] BYREF void **v48; // [rsp+78h] [rbp-C0h] long long v49; // [rsp+80h] [rbp-B8h] void *v50; // [rsp+88h] [rbp-B0h] BYREF long long v51; // [rsp+90h] [rbp-A8h] __int128 v52; // [rsp+98h] [rbp-A0h] BYREF int v53[2]; // [rsp+A8h] [rbp-90h] const char *v54; // [rsp+B0h] [rbp-88h] long long v55; // [rsp+B8h] [rbp-80h] void *v56; // [rsp+C0h] [rbp-78h] long long v57; // [rsp+C8h] [rbp-70h] __int128 v58; // [rsp+D0h] [rbp-68h] BYREF int v59; // [rsp+E0h] [rbp-58h] int v60[20]; // [rsp+E8h] [rbp-50h] BYREF v41 = (long long)this; std::string::basic_string(&v50, a3, &v45); v56 = &v58; if ( v50 == &v52 ) { v58 = v52; } else { v56 = v50; *(_QWORD *)&v58 = v52; } v57 = v51; v50 = &v52; v51 = 0LL; LOBYTE(v52) = 0; v59 = a4; testing::internal::RegisterTypeParameterizedTestSuite((int)a2, v36, (int)v37, (long long)v38); if ( v56 != &v58 ) operator delete(v56, v58 + 1); if ( v50 != &v52 ) operator delete(v50, v52 + 1); *(_QWORD *)v53 = a3; v42 = a4; *(_BYTE *)v41 = 1; *(_OWORD *)v43 = 0LL; v44 = 0LL; v54 = a5; v8 = a5 - 1; do v9 = *(unsigned __int8 *)++v8; while ( (unsigned int)isspace(v9) ); while ( 1 ) { v10 = strchr(v8, 44LL); v37 = &v39; if ( !v10 ) v10 = (long long)&v8[strlen(v8)]; std::string::_M_construct<char const*>(&v37, v8, v10); v11 = (char *)v37; if ( v38 ) { v12 = (char *)v38 + (_QWORD)v37; while ( (unsigned int)isspace((unsigned __int8)*(v12 - 1)) ) { v13 = v12 - 1; v14 = v13 - v11; std::string::_M_erase(&v37, v13 - v11, 1LL); v15 = (__int128 *)v37; v16 = v13 == v11; v11 = (char *)v37; v12 = (char *)v37 + v14; if ( v16 ) goto LABEL_18; } } v15 = (__int128 *)v11; LABEL_18: v45 = &v47; if ( v15 == &v39 ) { v47 = v39; } else { v45 = v15; *(_QWORD *)&v47 = v39; } v46 = v38; v37 = &v39; v38 = 0LL; LOBYTE(v39) = 0; std::vector<std::string>::emplace_back<std::string>(v43, &v45); if ( v45 != &v47 ) operator delete(v45, v47 + 1); if ( v37 != &v39 ) operator delete(v37, v39 + 1); v17 = strchr(v8, 44LL); if ( !v17 ) break; v8 = (const char *)v17; do v18 = *(unsigned __int8 *)++v8; while ( (unsigned int)isspace(v18) ); } testing::Message::Message((testing::Message *)&v40); v22 = &v46; LODWORD(v46) = 0; *(_QWORD *)&v47 = 0LL; *((_QWORD *)&v47 + 1) = &v46; v48 = &v46; v49 = 0LL; v23 = *(_QWORD **)v43; if ( *(_QWORD *)v43 != *(_QWORD *)&v43[2] ) { v24 = v40 + 16; v25 = v41 + 8; v55 = v41 + 16; do { if ( (void **)std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find( &v45, v23) == &v46 ) { v28 = std::_Rb_tree<std::string,std::pair<std::string const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::string const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::string const,testing::internal::CodeLocation>>>::find( v25, v23); if ( v28 != v55 ) { std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::_M_insert_unique<std::string const&>( &v45, v23); goto LABEL_36; } std::__ostream_insert<char,std::char_traits<char>>(v24, "No test named ", 14LL); v26 = 34LL; std::__ostream_insert<char,std::char_traits<char>>(v24, *v23, v23[1]); v27 = " can be found in this test suite.\n"; } else { std::__ostream_insert<char,std::char_traits<char>>(v24, "Test ", 5LL); v26 = 27LL; std::__ostream_insert<char,std::char_traits<char>>(v24, *v23, v23[1]); v27 = " is listed more than once.\n"; } std::__ostream_insert<char,std::char_traits<char>>(v24, v27, v26); LABEL_36: v23 += 4; } while ( v23 != *(_QWORD **)&v43[2] ); } v29 = *(_QWORD *)(v41 + 32); if ( v29 != v41 + 16 ) { v30 = v41 + 16; do { if ( (void **)std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find( &v45, v29 + 32) == &v46 ) { v31 = v40 + 16; std::__ostream_insert<char,std::char_traits<char>>(v40 + 16, "You forgot to list test ", 24LL); std::__ostream_insert<char,std::char_traits<char>>(v31, *(_QWORD *)(v29 + 32), *(_QWORD *)(v29 + 40)); std::__ostream_insert<char,std::char_traits<char>>(v31, ".\n", 2LL); } v29 = std::_Rb_tree_increment(v29); } while ( v29 != v30 ); } v32 = v40; testing::internal::StringStreamToString((unsigned int)&v37, v40, v19, (_DWORD)v22, v20, v21); v33 = v54; if ( v38 ) { v35 = stderr; testing::internal::FormatFileLocation[abi:cxx11]((long long)v60, *(const char **)v53, v42); testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames((const char **)v60, (const char **)&v37, v35); } if ( v37 != &v39 ) operator delete(v37, v39 + 1); std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree(&v45); if ( v32 ) (*(void ( **)(long long))(*(_QWORD *)v32 + 8LL))(v32); std::vector<std::string>::~vector(v43); return v33; }
VerifyRegisteredTestNames: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x108 MOV R12,R8 MOV EBP,ECX MOV R13,RDX MOV RBX,RSI MOV qword ptr [RSP + 0x30],RDI LAB_001183f5: LEA RDI,[RSP + 0x88] LEA RDX,[RSP + 0x58] MOV RSI,R13 CALL 0x001081e0 LEA R15,[RSP + 0xd0] MOV qword ptr [R15 + -0x10],R15 LEA R14,[RSP + 0x98] MOV RAX,qword ptr [R14 + -0x10] CMP RAX,R14 JZ 0x00118441 MOV qword ptr [RSP + 0xc0],RAX MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0xd0],RAX JMP 0x00118449 LAB_00118441: MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [R15],XMM0 LAB_00118449: MOV RAX,qword ptr [RSP + 0x90] LEA RSI,[RSP + 0xc0] MOV qword ptr [RSI + 0x8],RAX MOV qword ptr [RSP + 0x88],R14 MOV qword ptr [RSP + 0x90],0x0 MOV byte ptr [RSP + 0x98],0x0 MOV dword ptr [RSI + 0x20],EBP LAB_0011847c: MOV RDI,RBX CALL 0x00118966 MOV RDI,qword ptr [RSP + 0xc0] CMP RDI,R15 JZ 0x001184a1 MOV RSI,qword ptr [RSP + 0xd0] INC RSI CALL 0x001084e0 LAB_001184a1: MOV RDI,qword ptr [RSP + 0x88] CMP RDI,R14 JZ 0x001184be MOV RSI,qword ptr [RSP + 0x98] INC RSI CALL 0x001084e0 LAB_001184be: MOV qword ptr [RSP + 0xa8],R13 MOV dword ptr [RSP + 0x3c],EBP MOV RAX,qword ptr [RSP + 0x30] MOV byte ptr [RAX],0x1 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x40],XMM0 MOV qword ptr [RSP + 0x50],0x0 MOV qword ptr [RSP + 0xb0],R12 DEC R12 LAB_001184ee: MOVZX EDI,byte ptr [R12 + 0x1] INC R12 CALL 0x001080b0 TEST EAX,EAX JNZ 0x001184ee LEA RBX,[RSP + 0x18] LEA RBP,[RSP + 0x68] LEA R13,[RSP + 0x8] LAB_0011850f: MOV RDI,R12 MOV ESI,0x2c CALL 0x001081d0 MOV qword ptr [RSP + 0x8],RBX TEST RAX,RAX JNZ 0x00118531 MOV RDI,R12 CALL 0x00108200 ADD RAX,R12 LAB_00118531: MOV RDI,R13 MOV RSI,R12 MOV RDX,RAX CALL 0x0013911e MOV R14,qword ptr [RSP + 0x8] MOV R15,qword ptr [RSP + 0x10] TEST R15,R15 JZ 0x0011858d ADD R15,R14 LAB_00118551: MOVZX EDI,byte ptr [R15 + -0x1] CALL 0x001080b0 TEST EAX,EAX JZ 0x0011858d DEC R15 MOV RBX,R15 SUB RBX,R14 LAB_00118568: MOV EDX,0x1 MOV RDI,R13 MOV RSI,RBX CALL 0x00108630 MOV RAX,qword ptr [RSP + 0x8] ADD RBX,RAX CMP R15,R14 MOV R14,RAX MOV R15,RBX JNZ 0x00118551 JMP 0x00118590 LAB_0011858d: MOV RAX,R14 LAB_00118590: MOV qword ptr [RSP + 0x58],RBP LEA RBX,[RSP + 0x18] CMP RAX,RBX JZ 0x001185b0 MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x68],RAX JMP 0x001185b7 LAB_001185b0: MOVUPS XMM0,xmmword ptr [RBX] MOVUPS xmmword ptr [RBP],XMM0 LAB_001185b7: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x60],RAX MOV qword ptr [RSP + 0x8],RBX MOV qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 LAB_001185d4: LEA RDI,[RSP + 0x40] LEA RSI,[RSP + 0x58] CALL 0x00139de6 MOV RDI,qword ptr [RSP + 0x58] CMP RDI,RBP JZ 0x001185fa MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x001084e0 LAB_001185fa: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBX JZ 0x00118611 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 LAB_00118611: MOV RDI,R12 MOV ESI,0x2c CALL 0x001081d0 TEST RAX,RAX JZ 0x0011863d MOV R12,RAX LAB_00118626: MOVZX EDI,byte ptr [R12 + 0x1] INC R12 CALL 0x001080b0 TEST EAX,EAX JNZ 0x00118626 JMP 0x0011850f LAB_0011863d: LEA RDI,[RSP + 0x28] CALL 0x0011c968 LEA RCX,[RSP + 0x60] MOV dword ptr [RCX],0x0 XOR EAX,EAX MOV qword ptr [RCX + 0x8],RAX MOV qword ptr [RCX + 0x10],RCX MOV qword ptr [RCX + 0x18],RCX MOV qword ptr [RCX + 0x20],RAX MOV R14,qword ptr [RSP + 0x40] CMP R14,qword ptr [RSP + 0x48] JZ 0x00118748 MOV R15,qword ptr [RSP + 0x28] LEA R13,[R15 + 0x10] MOV RAX,qword ptr [RSP + 0x30] LEA RBP,[RAX + 0x8] ADD RAX,0x10 MOV qword ptr [RSP + 0xb8],RAX LEA RBX,[RSP + 0x58] LAB_00118697: MOV RDI,RBX MOV RSI,R14 CALL 0x00139e3a LEA RCX,[RSP + 0x60] CMP RAX,RCX JZ 0x001186e9 MOV EDX,0x5 MOV RDI,R13 LEA RSI,[0x14262b] CALL 0x001085b0 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV R12D,0x1b MOV RDI,R13 CALL 0x001085b0 LEA RSI,[0x142631] LAB_001186dc: MOV RDI,R13 MOV RDX,R12 CALL 0x001085b0 JMP 0x00118709 LAB_001186e9: MOV RDI,RBP MOV RSI,R14 CALL 0x0013924a CMP RAX,qword ptr [RSP + 0xb8] JZ 0x00118716 MOV RDI,RBX MOV RSI,R14 CALL 0x00139ec4 LAB_00118709: ADD R14,0x20 CMP R14,qword ptr [RSP + 0x48] JNZ 0x00118697 JMP 0x00118748 LAB_00118716: MOV EDX,0xe MOV RDI,R13 LEA RSI,[0x14264d] CALL 0x001085b0 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV R12D,0x22 MOV RDI,R13 CALL 0x001085b0 LEA RSI,[0x14265c] JMP 0x001186dc LAB_00118748: MOV RAX,qword ptr [RSP + 0x30] MOV RBX,qword ptr [RAX + 0x20] ADD RAX,0x10 CMP RBX,RAX JZ 0x001187cf MOV R15,RAX LEA R14,[RSP + 0x58] LEA R12,[0x14267f] LEA R13,[0x1432c4] LAB_00118770: LEA RSI,[RBX + 0x20] LAB_00118774: MOV RDI,R14 CALL 0x00139e3a LEA RCX,[RSP + 0x60] CMP RAX,RCX JNZ 0x001187bf MOV RBP,qword ptr [RSP + 0x28] ADD RBP,0x10 MOV EDX,0x18 MOV RDI,RBP MOV RSI,R12 CALL 0x001085b0 MOV RSI,qword ptr [RBX + 0x20] MOV RDX,qword ptr [RBX + 0x28] MOV RDI,RBP CALL 0x001085b0 MOV EDX,0x2 MOV RDI,RBP MOV RSI,R13 CALL 0x001085b0 LAB_001187bf: MOV RDI,RBX CALL 0x001085d0 MOV RBX,RAX CMP RAX,R15 JNZ 0x00118770 LAB_001187cf: MOV R15,qword ptr [RSP + 0x28] LAB_001187d4: LEA RDI,[RSP + 0x8] MOV RSI,R15 CALL 0x0011cbbf LAB_001187e1: CMP qword ptr [RSP + 0x10],0x0 MOV RBX,qword ptr [RSP + 0xb0] LEA RAX,[RSP + 0x18] JNZ 0x00118844 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RAX JZ 0x0011880d MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 LAB_0011880d: LEA RDI,[RSP + 0x58] CALL 0x00136168 TEST R15,R15 JZ 0x00118825 MOV RAX,qword ptr [R15] MOV RDI,R15 CALL qword ptr [RAX + 0x8] LAB_00118825: LEA RDI,[RSP + 0x40] CALL 0x00131f9e MOV RAX,RBX ADD RSP,0x108 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00118844: MOV RAX,qword ptr [0x00158fc8] MOV RBX,qword ptr [RAX] LAB_0011884e: LEA RDI,[RSP + 0xe8] MOV RSI,qword ptr [RSP + 0xa8] MOV EDX,dword ptr [RSP + 0x3c] CALL 0x0011663e LAB_00118867: LEA RDI,[RSP + 0xe8] LEA RSI,[RSP + 0x8] MOV RDX,RBX CALL 0x00108bd2 LAB_0011887c: MOV RBX,RAX MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x0011891b MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 JMP 0x0011891b LAB_0011891b: LEA RDI,[RSP + 0x58] CALL 0x00136168 TEST R15,R15 JZ 0x00118954 MOV RAX,qword ptr [R15] MOV RDI,R15 CALL qword ptr [RAX + 0x8] JMP 0x00118954 LAB_00118954: LEA RDI,[RSP + 0x40] CALL 0x00131f9e LAB_0011895e: MOV RDI,RBX CALL 0x00108990
/* testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames(char const*, char const*, int, char const*) */ char * __thiscall testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames (TypedTestSuitePState *this,char *param_1,char *param_2,int param_3,char *param_4) { _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>> *this_00; byte *pbVar1; long *plVar2; int iVar3; char *pcVar4; size_t sVar5; long *plVar6; ulong *puVar7; TypedTestSuitePState *pTVar8; _Rb_tree_node_base *p_Var9; _Rb_tree_node_base *p_Var10; int8 uVar11; ulong *puVar12; ulong uVar13; ostream *poVar14; char *pcVar15; string *psVar16; long lVar17; long *plVar18; long *local_130; ulong local_128; int1 local_120; int7 uStack_11f; int8 uStack_118; long *local_110; TypedTestSuitePState *local_108; int local_fc; string *local_f8; string *psStack_f0; int8 local_e8; long *local_e0; ulong local_d8; long local_d0; ulong *puStack_c8; ulong *local_c0; int8 local_b8; uint *local_b0; int8 local_a8; uint local_a0; int4 uStack_9c; int4 uStack_98; int4 uStack_94; char *local_90; char *local_88; TypedTestSuitePState *local_80; uint *local_78; int8 local_70; int8 local_68; int4 uStack_60; int4 uStack_5c; int local_58; internal local_50 [32]; /* try { // try from 001183f5 to 00118409 has its CatchHandler @ 001188e8 */ local_108 = this; std::__cxx11::string::string((string *)&local_b0,param_2,(allocator *)&local_e0); if (local_b0 == &local_a0) { uStack_60 = uStack_98; uStack_5c = uStack_94; local_78 = (uint *)&local_68; } else { local_78 = local_b0; } local_68 = CONCAT44(uStack_9c,local_a0); local_70 = local_a8; local_a8 = 0; local_a0 = local_a0 & 0xffffff00; local_b0 = &local_a0; local_58 = param_3; /* try { // try from 0011847c to 00118483 has its CatchHandler @ 001188a5 */ RegisterTypeParameterizedTestSuite(param_1); if (local_78 != (uint *)&local_68) { operator_delete(local_78,local_68 + 1); } if (local_b0 != &local_a0) { operator_delete(local_b0,CONCAT44(uStack_9c,local_a0) + 1); } *local_108 = (TypedTestSuitePState)0x1; local_f8 = (string *)0x0; psStack_f0 = (string *)0x0; local_e8 = 0; pcVar15 = param_4 + -1; local_fc = param_3; local_90 = param_2; local_88 = param_4; do { pbVar1 = (byte *)(pcVar15 + 1); pcVar15 = pcVar15 + 1; iVar3 = isspace((uint)*pbVar1); } while (iVar3 != 0); do { pcVar4 = strchr(pcVar15,0x2c); local_130 = (long *)&local_120; if (pcVar4 == (char *)0x0) { sVar5 = strlen(pcVar15); pcVar4 = pcVar15 + sVar5; } /* try { // try from 00118531 to 0011853e has its CatchHandler @ 001188ed */ std::__cxx11::string::_M_construct<char_const*>(&local_130,pcVar15,pcVar4); plVar6 = local_130; if (local_128 != 0) { lVar17 = local_128 + (long)local_130; do { plVar2 = local_130; iVar3 = isspace((uint)*(byte *)(lVar17 + -1)); plVar6 = plVar2; if (iVar3 == 0) break; plVar18 = (long *)(lVar17 + -1); uVar13 = (long)plVar18 - (long)plVar2; /* try { // try from 00118568 to 00118577 has its CatchHandler @ 00118935 */ std::__cxx11::string::_M_erase((ulong)&local_130,uVar13); lVar17 = uVar13 + (long)local_130; plVar6 = local_130; } while (plVar18 != plVar2); } local_e0 = plVar6; if (plVar6 == (long *)&local_120) { puStack_c8 = (ulong *)uStack_118; local_e0 = &local_d0; } local_d0 = CONCAT71(uStack_11f,local_120); local_d8 = local_128; local_128 = 0; local_120 = 0; /* try { // try from 001185d4 to 001185e2 has its CatchHandler @ 001188f2 */ local_130 = (long *)&local_120; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_f8, (string *)&local_e0); if (local_e0 != &local_d0) { operator_delete(local_e0,local_d0 + 1); } if (local_130 != (long *)&local_120) { operator_delete(local_130,CONCAT71(uStack_11f,local_120) + 1); } pcVar15 = strchr(pcVar15,0x2c); if (pcVar15 == (char *)0x0) break; do { pbVar1 = (byte *)(pcVar15 + 1); pcVar15 = pcVar15 + 1; iVar3 = isspace((uint)*pbVar1); } while (iVar3 != 0); } while( true ); /* try { // try from 0011863d to 00118646 has its CatchHandler @ 001188a3 */ Message::Message((Message *)&local_110); puVar12 = &local_d8; local_d8 = local_d8 & 0xffffffff00000000; local_d0 = 0; local_b8 = 0; puStack_c8 = puVar12; local_c0 = puVar12; if (local_f8 != psStack_f0) { poVar14 = (ostream *)(local_110 + 2); this_00 = (_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>> *)(local_108 + 8); local_80 = local_108 + 0x10; psVar16 = local_f8; do { /* try { // try from 00118697 to 0011873e has its CatchHandler @ 00118918 */ puVar7 = (ulong *)std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::find((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_e0,psVar16); puVar12 = &local_d8; if (puVar7 == puVar12) { pTVar8 = (TypedTestSuitePState *) std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>> ::find(this_00,psVar16); if (pTVar8 == local_80) { std::__ostream_insert<char,std::char_traits<char>>(poVar14,"No test named ",0xe); lVar17 = 0x22; std::__ostream_insert<char,std::char_traits<char>> (poVar14,*(char **)psVar16,*(long *)(psVar16 + 8)); pcVar15 = " can be found in this test suite.\n"; goto LAB_001186dc; } std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::_M_insert_unique<std::__cxx11::string_const&> ((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_e0,psVar16); } else { std::__ostream_insert<char,std::char_traits<char>>(poVar14,"Test ",5); lVar17 = 0x1b; std::__ostream_insert<char,std::char_traits<char>> (poVar14,*(char **)psVar16,*(long *)(psVar16 + 8)); pcVar15 = " is listed more than once.\n"; LAB_001186dc: std::__ostream_insert<char,std::char_traits<char>>(poVar14,pcVar15,lVar17); } psVar16 = psVar16 + 0x20; } while (psVar16 != psStack_f0); } p_Var10 = *(_Rb_tree_node_base **)(local_108 + 0x20); p_Var9 = (_Rb_tree_node_base *)(local_108 + 0x10); if (p_Var10 != p_Var9) { do { /* try { // try from 00118774 to 001187be has its CatchHandler @ 0011890e */ puVar7 = (ulong *)std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::find((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_e0,(string *)(p_Var10 + 0x20)); puVar12 = &local_d8; if (puVar7 == puVar12) { poVar14 = (ostream *)(local_110 + 2); std::__ostream_insert<char,std::char_traits<char>>(poVar14,"You forgot to list test ",0x18); std::__ostream_insert<char,std::char_traits<char>> (poVar14,*(char **)(p_Var10 + 0x20),*(long *)(p_Var10 + 0x28)); std::__ostream_insert<char,std::char_traits<char>>(poVar14,".\n",2); } p_Var10 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var10); } while (p_Var10 != p_Var9); } /* try { // try from 001187d4 to 001187e0 has its CatchHandler @ 001188a1 */ StringStreamToString((stringstream *)&local_130); pcVar15 = local_88; if (local_128 != 0) { uVar11 = *(int8 *)PTR_stderr_00158fc8; /* try { // try from 0011884e to 00118866 has its CatchHandler @ 0011887c */ FormatFileLocation_abi_cxx11_(local_50,local_90,local_fc); uVar11 = VerifyRegisteredTestNames ((char *)local_50,(char *)&local_130,(int)uVar11,(char *)puVar12); /* catch() { ... } // from try @ 0011884e with catch @ 0011887c */ if (local_130 != (long *)&local_120) { operator_delete(local_130,CONCAT71(uStack_11f,local_120) + 1); } std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_e0); if (local_110 != (long *)0x0) { (**(code **)(*local_110 + 8))(local_110); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_f8); /* WARNING: Subroutine does not return */ _Unwind_Resume(uVar11); } if (local_130 != (long *)&local_120) { operator_delete(local_130,CONCAT71(uStack_11f,local_120) + 1); } std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_e0); if (local_110 != (long *)0x0) { (**(code **)(*local_110 + 8))(local_110); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_f8); return pcVar15; }
2,173
testing::internal::SplitIntoTestNames[abi:cxx11](char const*)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-typed-test.cc
static std::vector<std::string> SplitIntoTestNames(const char* src) { std::vector<std::string> name_vec; src = SkipSpaces(src); for (; src != nullptr; src = SkipComma(src)) { name_vec.push_back(StripTrailingSpaces(GetPrefixUntilComma(src))); } return name_vec; }
O0
cpp
testing::internal::SplitIntoTestNames[abi:cxx11](char const*): subq $0x88, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movb $0x0, 0x77(%rsp) callq 0xeb910 movq 0x78(%rsp), %rdi callq 0xe5b00 movq %rax, 0x18(%rsp) jmp 0xc476c movq 0x18(%rsp), %rax movq %rax, 0x78(%rsp) cmpq $0x0, 0x78(%rsp) je 0xc4828 movq 0x78(%rsp), %rsi leaq 0x20(%rsp), %rdi callq 0xf7360 jmp 0xc4793 leaq 0x40(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0xf7280 jmp 0xc47a4 movq 0x8(%rsp), %rdi leaq 0x40(%rsp), %rsi callq 0xedbb0 jmp 0xc47b5 leaq 0x40(%rsp), %rdi callq 0x1dfd0 leaq 0x20(%rsp), %rdi callq 0x1dfd0 movq 0x78(%rsp), %rdi callq 0xf74a0 movq %rax, (%rsp) jmp 0xc47d9 movq (%rsp), %rax movq %rax, 0x78(%rsp) jmp 0xc4776 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x68(%rsp) movl %eax, 0x64(%rsp) jmp 0xc484b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x68(%rsp) movl %eax, 0x64(%rsp) jmp 0xc481c movq %rax, %rcx movl %edx, %eax movq %rcx, 0x68(%rsp) movl %eax, 0x64(%rsp) leaq 0x40(%rsp), %rdi callq 0x1dfd0 leaq 0x20(%rsp), %rdi callq 0x1dfd0 jmp 0xc484b movb $0x1, 0x77(%rsp) testb $0x1, 0x77(%rsp) jne 0xc483e movq 0x8(%rsp), %rdi callq 0xeb700 movq 0x10(%rsp), %rax addq $0x88, %rsp retq movq 0x8(%rsp), %rdi callq 0xeb700 movq 0x68(%rsp), %rdi callq 0x16cf0 nop
_ZN7testing8internalL18SplitIntoTestNamesB5cxx11EPKc: sub rsp, 88h mov [rsp+88h+var_80], rdi mov rax, rdi mov [rsp+88h+var_78], rax mov [rsp+88h+var_8], rdi mov [rsp+88h+var_10], rsi mov [rsp+88h+var_11], 0 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void) mov rdi, [rsp+88h+var_10]; this call _ZN7testing8internalL10SkipSpacesEPKc; testing::internal::SkipSpaces(char const*) mov [rsp+88h+var_70], rax jmp short $+2 loc_C476C: mov rax, [rsp+88h+var_70] mov [rsp+88h+var_10], rax loc_C4776: cmp [rsp+88h+var_10], 0 jz loc_C4828 mov rsi, [rsp+88h+var_10] lea rdi, [rsp+88h+var_68] call _ZN7testing8internal19GetPrefixUntilCommaB5cxx11EPKc; testing::internal::GetPrefixUntilComma(char const*) jmp short $+2 loc_C4793: lea rdi, [rsp+88h+var_48] lea rsi, [rsp+88h+var_68] call _ZN7testing8internal19StripTrailingSpacesENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::StripTrailingSpaces(std::string) jmp short $+2 loc_C47A4: mov rdi, [rsp+88h+var_80] lea rsi, [rsp+88h+var_48]; char * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&) jmp short $+2 loc_C47B5: lea rdi, [rsp+88h+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+88h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rsp+88h+var_10]; this call _ZN7testing8internal9SkipCommaEPKc; testing::internal::SkipComma(char const*) mov [rsp+88h+var_88], rax jmp short $+2 loc_C47D9: mov rax, [rsp+88h+var_88] mov [rsp+88h+var_10], rax jmp short loc_C4776 mov rcx, rax mov eax, edx mov [rsp+arg_60], rcx mov [rsp+arg_5C], eax jmp short loc_C484B mov rcx, rax mov eax, edx mov [rsp+arg_60], rcx mov [rsp+arg_5C], eax jmp short loc_C481C mov rcx, rax mov eax, edx mov [rsp+arg_60], rcx mov [rsp+arg_5C], eax lea rdi, [rsp+arg_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_C481C: lea rdi, [rsp+arg_18]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_C484B loc_C4828: mov [rsp+88h+var_11], 1 test [rsp+88h+var_11], 1 jnz short loc_C483E mov rdi, [rsp+88h+var_80]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_C483E: mov rax, [rsp+88h+var_78] add rsp, 88h retn loc_C484B: mov rdi, [rsp+arg_0]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rsp+arg_60] call __Unwind_Resume
long long testing::internal::SplitIntoTestNames[abi:cxx11](long long a1, testing::internal *a2) { int v2; // edx int v3; // ecx int v4; // r8d int v5; // r9d testing::internal *v7; // [rsp+0h] [rbp-88h] void *v8; // [rsp+8h] [rbp-80h] long long v9; // [rsp+10h] [rbp-78h] testing::internal *v10; // [rsp+18h] [rbp-70h] _DWORD v11[4]; // [rsp+20h] [rbp-68h] BYREF __int16 v12; // [rsp+30h] [rbp-58h] long long v13; // [rsp+38h] [rbp-50h] char v14[56]; // [rsp+40h] [rbp-48h] BYREF testing::internal *i; // [rsp+78h] [rbp-10h] long long v16; // [rsp+80h] [rbp-8h] LODWORD(v8) = a1; v9 = a1; v16 = a1; v14[55] = 0; std::vector<std::string>::vector(a1); v10 = (testing::internal *)testing::internal::SkipSpaces(a2, (const char *)a2); for ( i = v10; i; i = v7 ) { testing::internal::GetPrefixUntilComma[abi:cxx11]( (unsigned int)v11, (_DWORD)i, v2, v3, v4, v5, (_DWORD)v7, (_DWORD)v8, v9, (_DWORD)v10, v11[0], v11[2], v12, v13, *(_DWORD *)v14); testing::internal::StripTrailingSpaces(v14, v11); std::vector<std::string>::push_back(v8, v14); std::string::~string(v14); std::string::~string(v11); v7 = (testing::internal *)testing::internal::SkipComma(i, v14); } return v9; }
SplitIntoTestNames[abi:cxx11]: SUB RSP,0x88 MOV qword ptr [RSP + 0x8],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x80],RDI MOV qword ptr [RSP + 0x78],RSI MOV byte ptr [RSP + 0x77],0x0 CALL 0x001eb910 MOV RDI,qword ptr [RSP + 0x78] LAB_001c4760: CALL 0x001e5b00 MOV qword ptr [RSP + 0x18],RAX JMP 0x001c476c LAB_001c476c: MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x78],RAX LAB_001c4776: CMP qword ptr [RSP + 0x78],0x0 JZ 0x001c4828 MOV RSI,qword ptr [RSP + 0x78] LEA RDI,[RSP + 0x20] CALL 0x001f7360 JMP 0x001c4793 LAB_001c4793: LEA RDI,[RSP + 0x40] LEA RSI,[RSP + 0x20] CALL 0x001f7280 JMP 0x001c47a4 LAB_001c47a4: MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[RSP + 0x40] CALL 0x001edbb0 JMP 0x001c47b5 LAB_001c47b5: LEA RDI,[RSP + 0x40] CALL 0x0011dfd0 LEA RDI,[RSP + 0x20] CALL 0x0011dfd0 MOV RDI,qword ptr [RSP + 0x78] LAB_001c47ce: CALL 0x001f74a0 LAB_001c47d3: MOV qword ptr [RSP],RAX JMP 0x001c47d9 LAB_001c47d9: MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x78],RAX JMP 0x001c4776 LAB_001c4828: MOV byte ptr [RSP + 0x77],0x1 TEST byte ptr [RSP + 0x77],0x1 JNZ 0x001c483e MOV RDI,qword ptr [RSP + 0x8] CALL 0x001eb700 LAB_001c483e: MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x88 RET
/* WARNING: Removing unreachable block (ram,0x001c4834) */ /* testing::internal::SplitIntoTestNames[abi:cxx11](char const*) */ internal * __thiscall testing::internal::SplitIntoTestNames_abi_cxx11_(internal *this,char *param_1) { internal local_68 [32]; internal local_48 [55]; int1 local_11; char *local_10; internal *local_8; local_11 = 0; local_10 = param_1; local_8 = this; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)this); /* try { // try from 001c4760 to 001c4790 has its CatchHandler @ 001c47e4 */ for (local_10 = (char *)SkipSpaces(local_10); local_10 != (char *)0x0; local_10 = (char *)SkipComma(local_10)) { GetPrefixUntilComma_abi_cxx11_(local_68,local_10); /* try { // try from 001c4793 to 001c47a1 has its CatchHandler @ 001c47f4 */ StripTrailingSpaces(local_48,local_68); /* try { // try from 001c47a4 to 001c47b2 has its CatchHandler @ 001c4804 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)this, (string *)local_48); std::__cxx11::string::~string((string *)local_48); std::__cxx11::string::~string((string *)local_68); /* try { // try from 001c47ce to 001c47d2 has its CatchHandler @ 001c47e4 */ } return this; }
2,174
my_casedn_8bit
eloqsql/strings/ctype-simple.c
size_t my_casedn_8bit(CHARSET_INFO * cs, const char *src, size_t srclen, char *dst, size_t dstlen __attribute__((unused))) { const char *end= src + srclen; register const uchar *map=cs->to_lower; DBUG_ASSERT(srclen <= dstlen); for ( ; src != end ; src++) *dst++= (char) map[(uchar) *src]; return srclen; }
O0
c
my_casedn_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rax movq 0x48(%rax), %rax movq %rax, -0x38(%rbp) jmp 0x49e32 jmp 0x49e34 movq -0x10(%rbp), %rax cmpq -0x30(%rbp), %rax je 0x49e6b movq -0x38(%rbp), %rax movq -0x10(%rbp), %rcx movzbl (%rcx), %ecx movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x49e34 movq -0x18(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
my_casedn_8bit: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_30], rax mov rax, [rbp+var_8] mov rax, [rax+48h] mov [rbp+var_38], rax jmp short $+2 loc_49E32: jmp short $+2 loc_49E34: mov rax, [rbp+var_10] cmp rax, [rbp+var_30] jz short loc_49E6B mov rax, [rbp+var_38] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx] mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp short loc_49E34 loc_49E6B: mov rax, [rbp+var_18] pop rbp retn
long long my_casedn_8bit(long long a1, unsigned __int8 *a2, long long a3, _BYTE *a4) { _BYTE *v4; // rax long long v6; // [rsp+0h] [rbp-38h] unsigned __int8 *v8; // [rsp+28h] [rbp-10h] v8 = a2; v6 = *(_QWORD *)(a1 + 72); while ( v8 != &a2[a3] ) { v4 = a4++; *v4 = *(_BYTE *)(v6 + *v8++); } return a3; }
my_casedn_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x38],RAX JMP 0x00149e32 LAB_00149e32: JMP 0x00149e34 LAB_00149e34: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x30] JZ 0x00149e6b MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x00149e34 LAB_00149e6b: MOV RAX,qword ptr [RBP + -0x18] POP RBP RET
long my_casedn_8bit(long param_1,byte *param_2,long param_3,int1 *param_4) { long lVar1; int1 *local_28; byte *local_18; lVar1 = *(long *)(param_1 + 0x48); local_28 = param_4; for (local_18 = param_2; local_18 != param_2 + param_3; local_18 = local_18 + 1) { *local_28 = *(int1 *)(lVar1 + (ulong)*local_18); local_28 = local_28 + 1; } return param_3; }
2,175
get_changed_storage
corpus-core[P]colibri-stateless/src/chains/eth/verifier/call_ctx.h
static changed_storage_t* get_changed_storage(evmone_context_t* ctx, const address_t addr, const bytes32_t key) { changed_account_t* account = get_changed_account(ctx, addr); if (!account) return NULL; for (changed_storage_t* s = account->storage; s != NULL; s = s->next) { if (memcmp(s->key, key, 32) == 0) return s; } return NULL; }
O0
c
get_changed_storage: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x2b090 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x2be66 movq $0x0, -0x8(%rbp) jmp 0x2beb2 movq -0x28(%rbp), %rax movq 0x50(%rax), %rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0x2beaa movq -0x30(%rbp), %rdi movq -0x20(%rbp), %rsi movl $0x20, %edx callq 0x23100 cmpl $0x0, %eax jne 0x2be9a movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x2beb2 jmp 0x2be9c movq -0x30(%rbp), %rax movq 0x40(%rax), %rax movq %rax, -0x30(%rbp) jmp 0x2be72 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax)
get_changed_storage: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call get_changed_account mov [rbp+var_28], rax cmp [rbp+var_28], 0 jnz short loc_2BE66 mov [rbp+var_8], 0 jmp short loc_2BEB2 loc_2BE66: mov rax, [rbp+var_28] mov rax, [rax+50h] mov [rbp+var_30], rax loc_2BE72: cmp [rbp+var_30], 0 jz short loc_2BEAA mov rdi, [rbp+var_30] mov rsi, [rbp+var_20] mov edx, 20h ; ' ' call _memcmp cmp eax, 0 jnz short loc_2BE9A mov rax, [rbp+var_30] mov [rbp+var_8], rax jmp short loc_2BEB2 loc_2BE9A: jmp short $+2 loc_2BE9C: mov rax, [rbp+var_30] mov rax, [rax+40h] mov [rbp+var_30], rax jmp short loc_2BE72 loc_2BEAA: mov [rbp+var_8], 0 loc_2BEB2: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long get_changed_storage(long long a1, long long a2, long long a3) { long long i; // [rsp+0h] [rbp-30h] long long changed_account; // [rsp+8h] [rbp-28h] changed_account = get_changed_account(a1, a2); if ( !changed_account ) return 0LL; for ( i = *(_QWORD *)(changed_account + 80); i; i = *(_QWORD *)(i + 64) ) { if ( !(unsigned int)memcmp(i, a3, 32LL) ) return i; } return 0LL; }
get_changed_storage: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x0012b090 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0012be66 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012beb2 LAB_0012be66: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x50] MOV qword ptr [RBP + -0x30],RAX LAB_0012be72: CMP qword ptr [RBP + -0x30],0x0 JZ 0x0012beaa MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x20] MOV EDX,0x20 CALL 0x00123100 CMP EAX,0x0 JNZ 0x0012be9a MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX JMP 0x0012beb2 LAB_0012be9a: JMP 0x0012be9c LAB_0012be9c: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RBP + -0x30],RAX JMP 0x0012be72 LAB_0012beaa: MOV qword ptr [RBP + -0x8],0x0 LAB_0012beb2: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
void * get_changed_storage(int8 param_1,int8 param_2,void *param_3) { int iVar1; long lVar2; void *local_38; lVar2 = get_changed_account(param_1,param_2); if (lVar2 != 0) { for (local_38 = *(void **)(lVar2 + 0x50); local_38 != (void *)0x0; local_38 = *(void **)((long)local_38 + 0x40)) { iVar1 = memcmp(local_38,param_3,0x20); if (iVar1 == 0) { return local_38; } } } return (void *)0x0; }
2,176
get_changed_storage
corpus-core[P]colibri-stateless/src/chains/eth/verifier/call_ctx.h
static changed_storage_t* get_changed_storage(evmone_context_t* ctx, const address_t addr, const bytes32_t key) { changed_account_t* account = get_changed_account(ctx, addr); if (!account) return NULL; for (changed_storage_t* s = account->storage; s != NULL; s = s->next) { if (memcmp(s->key, key, 32) == 0) return s; } return NULL; }
O2
c
get_changed_storage: pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r14 callq 0x27614 testq %rax, %rax je 0x27d8b movq %rax, %rbx addq $0x50, %rbx pushq $0x20 popq %r15 movq (%rbx), %rbx testq %rbx, %rbx je 0x27d8b movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx callq 0x22230 testl %eax, %eax je 0x27d8d addq $0x40, %rbx jmp 0x27d6b xorl %ebx, %ebx movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq
get_changed_storage: push r15 push r14 push rbx mov r14, rdx call get_changed_account test rax, rax jz short loc_27D8B mov rbx, rax add rbx, 50h ; 'P' push 20h ; ' ' pop r15 loc_27D6B: mov rbx, [rbx] test rbx, rbx jz short loc_27D8B mov rdi, rbx mov rsi, r14 mov rdx, r15 call _bcmp test eax, eax jz short loc_27D8D add rbx, 40h ; '@' jmp short loc_27D6B loc_27D8B: xor ebx, ebx loc_27D8D: mov rax, rbx pop rbx pop r14 pop r15 retn
long long get_changed_storage(long long a1, long long a2, long long a3) { long long changed_account; // rax long long *i; // rbx long long v6; // rbx changed_account = get_changed_account(a1, a2); if ( changed_account ) { for ( i = (long long *)(changed_account + 80); ; i = (long long *)(v6 + 64) ) { v6 = *i; if ( !v6 ) break; if ( !(unsigned int)bcmp(v6, a3, 32LL) ) return v6; } } return 0LL; }
get_changed_storage: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDX CALL 0x00127614 TEST RAX,RAX JZ 0x00127d8b MOV RBX,RAX ADD RBX,0x50 PUSH 0x20 POP R15 LAB_00127d6b: MOV RBX,qword ptr [RBX] TEST RBX,RBX JZ 0x00127d8b MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 CALL 0x00122230 TEST EAX,EAX JZ 0x00127d8d ADD RBX,0x40 JMP 0x00127d6b LAB_00127d8b: XOR EBX,EBX LAB_00127d8d: MOV RAX,RBX POP RBX POP R14 POP R15 RET
void * get_changed_storage(int8 param_1,int8 param_2,void *param_3) { void *__s1; int iVar1; long lVar2; int8 *puVar3; lVar2 = get_changed_account(); if (lVar2 != 0) { puVar3 = (int8 *)(lVar2 + 0x50); while (__s1 = (void *)*puVar3, __s1 != (void *)0x0) { iVar1 = bcmp(__s1,param_3,0x20); if (iVar1 == 0) { return __s1; } puVar3 = (int8 *)((long)__s1 + 0x40); } } return (void *)0x0; }
2,177
js__pstrcpy
bluesky950520[P]quickjs/cutils.c
void js__pstrcpy(char *buf, int buf_size, const char *str) { int c; char *q = buf; if (buf_size <= 0) return; for(;;) { c = *str++; if (c == 0 || q >= buf + buf_size - 1) break; *q++ = c; } *q = '\0'; }
O0
c
js__pstrcpy: movq %rdi, -0x8(%rsp) movl %esi, -0xc(%rsp) movq %rdx, -0x18(%rsp) movq -0x8(%rsp), %rax movq %rax, -0x28(%rsp) cmpl $0x0, -0xc(%rsp) jg 0x1e161 jmp 0x1e1c2 jmp 0x1e163 movq -0x18(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x18(%rsp) movzbl (%rax), %eax movl %eax, -0x1c(%rsp) cmpl $0x0, -0x1c(%rsp) je 0x1e19d movq -0x28(%rsp), %rax movq -0x8(%rsp), %rcx movslq -0xc(%rsp), %rdx addq %rdx, %rcx addq $-0x1, %rcx cmpq %rcx, %rax jb 0x1e19f jmp 0x1e1ba movl -0x1c(%rsp), %eax movb %al, %cl movq -0x28(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x28(%rsp) movb %cl, (%rax) jmp 0x1e163 movq -0x28(%rsp), %rax movb $0x0, (%rax) retq nopw %cs:(%rax,%rax)
js__pstrcpy: mov [rsp+var_8], rdi mov [rsp+var_C], esi mov [rsp+var_18], rdx mov rax, [rsp+var_8] mov [rsp+var_28], rax cmp [rsp+var_C], 0 jg short loc_1E161 jmp short locret_1E1C2 loc_1E161: jmp short $+2 loc_1E163: mov rax, [rsp+var_18] mov rcx, rax add rcx, 1 mov [rsp+var_18], rcx movzx eax, byte ptr [rax] mov [rsp+var_1C], eax cmp [rsp+var_1C], 0 jz short loc_1E19D mov rax, [rsp+var_28] mov rcx, [rsp+var_8] movsxd rdx, [rsp+var_C] add rcx, rdx add rcx, 0FFFFFFFFFFFFFFFFh cmp rax, rcx jb short loc_1E19F loc_1E19D: jmp short loc_1E1BA loc_1E19F: mov eax, [rsp+var_1C] mov cl, al mov rax, [rsp+var_28] mov rdx, rax add rdx, 1 mov [rsp+var_28], rdx mov [rax], cl jmp short loc_1E163 loc_1E1BA: mov rax, [rsp+var_28] mov byte ptr [rax], 0 locret_1E1C2: retn
_BYTE * js__pstrcpy(_BYTE *a1, int a2, char *a3) { _BYTE *result; // rax char *v4; // rax _BYTE *v5; // rax _BYTE *v6; // [rsp+0h] [rbp-28h] char v7; // [rsp+Ch] [rbp-1Ch] result = a1; v6 = a1; if ( a2 > 0 ) { while ( 1 ) { v4 = a3++; v7 = *v4; if ( !*v4 || v6 >= &a1[a2 - 1] ) break; v5 = v6++; *v5 = v7; } result = v6; *v6 = 0; } return result; }
js__pstrcpy: MOV qword ptr [RSP + -0x8],RDI MOV dword ptr [RSP + -0xc],ESI MOV qword ptr [RSP + -0x18],RDX MOV RAX,qword ptr [RSP + -0x8] MOV qword ptr [RSP + -0x28],RAX CMP dword ptr [RSP + -0xc],0x0 JG 0x0011e161 JMP 0x0011e1c2 LAB_0011e161: JMP 0x0011e163 LAB_0011e163: MOV RAX,qword ptr [RSP + -0x18] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + -0x18],RCX MOVZX EAX,byte ptr [RAX] MOV dword ptr [RSP + -0x1c],EAX CMP dword ptr [RSP + -0x1c],0x0 JZ 0x0011e19d MOV RAX,qword ptr [RSP + -0x28] MOV RCX,qword ptr [RSP + -0x8] MOVSXD RDX,dword ptr [RSP + -0xc] ADD RCX,RDX ADD RCX,-0x1 CMP RAX,RCX JC 0x0011e19f LAB_0011e19d: JMP 0x0011e1ba LAB_0011e19f: MOV EAX,dword ptr [RSP + -0x1c] MOV CL,AL MOV RAX,qword ptr [RSP + -0x28] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RSP + -0x28],RDX MOV byte ptr [RAX],CL JMP 0x0011e163 LAB_0011e1ba: MOV RAX,qword ptr [RSP + -0x28] MOV byte ptr [RAX],0x0 LAB_0011e1c2: RET
void js__pstrcpy(char *param_1,int param_2,char *param_3) { char *local_28; char *local_18; local_28 = param_1; local_18 = param_3; if (0 < param_2) { while( true ) { if ((*local_18 == '\0') || (param_1 + (long)param_2 + -1 <= local_28)) break; *local_28 = *local_18; local_28 = local_28 + 1; local_18 = local_18 + 1; } *local_28 = '\0'; } return; }
2,178
js__pstrcpy
bluesky950520[P]quickjs/cutils.c
void js__pstrcpy(char *buf, int buf_size, const char *str) { int c; char *q = buf; if (buf_size <= 0) return; for(;;) { c = *str++; if (c == 0 || q >= buf + buf_size - 1) break; *q++ = c; } *q = '\0'; }
O2
c
js__pstrcpy: testl %esi, %esi jle 0x15b04 movl %esi, %eax addq %rdi, %rax decq %rax movb (%rdx), %cl testb %cl, %cl je 0x15b01 cmpq %rax, %rdi jae 0x15b01 incq %rdx movb %cl, (%rdi) incq %rdi jmp 0x15aec movb $0x0, (%rdi) retq
js__pstrcpy: test esi, esi jle short locret_15B04 mov eax, esi add rax, rdi dec rax loc_15AEC: mov cl, [rdx] test cl, cl jz short loc_15B01 cmp rdi, rax jnb short loc_15B01 inc rdx mov [rdi], cl inc rdi jmp short loc_15AEC loc_15B01: mov byte ptr [rdi], 0 locret_15B04: retn
void js__pstrcpy(_BYTE *a1, int a2, char *a3) { unsigned long long v3; // rax char v4; // cl if ( a2 > 0 ) { v3 = (unsigned long long)&a1[a2 - 1]; while ( 1 ) { v4 = *a3; if ( !*a3 || (unsigned long long)a1 >= v3 ) break; ++a3; *a1++ = v4; } *a1 = 0; } }
js__pstrcpy: TEST ESI,ESI JLE 0x00115b04 MOV EAX,ESI ADD RAX,RDI DEC RAX LAB_00115aec: MOV CL,byte ptr [RDX] TEST CL,CL JZ 0x00115b01 CMP RDI,RAX JNC 0x00115b01 INC RDX MOV byte ptr [RDI],CL INC RDI JMP 0x00115aec LAB_00115b01: MOV byte ptr [RDI],0x0 LAB_00115b04: RET
void js__pstrcpy(char *param_1,uint param_2,char *param_3) { char cVar1; char *pcVar2; if (0 < (int)param_2) { pcVar2 = param_1 + ((ulong)param_2 - 1); for (; (cVar1 = *param_3, cVar1 != '\0' && (param_1 < pcVar2)); param_1 = param_1 + 1) { param_3 = param_3 + 1; *param_1 = cVar1; } *param_1 = '\0'; } return; }
2,179
js_iterator_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_iterator_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSObject *p; if (JS_TAG_OBJECT != JS_VALUE_GET_TAG(new_target)) return JS_ThrowTypeError(ctx, "constructor requires 'new'"); p = JS_VALUE_GET_OBJ(new_target); if (p->class_id == JS_CLASS_C_FUNCTION) if (p->u.cfunc.c_function.generic == js_iterator_constructor) return JS_ThrowTypeError(ctx, "abstract class not constructable"); return js_create_from_ctor(ctx, new_target, JS_CLASS_ITERATOR); }
O0
c
js_iterator_constructor: subq $0x48, %rsp movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq %rdi, 0x20(%rsp) movl %ecx, 0x1c(%rsp) movq %r8, 0x10(%rsp) movq 0x30(%rsp), %rax movl %eax, %ecx movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpl %ecx, %eax je 0x56d3b movq 0x20(%rsp), %rdi leaq 0xb9f93(%rip), %rsi # 0x110cbb movb $0x0, %al callq 0x2d300 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) jmp 0x56da9 movq 0x28(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rax movzwl 0x6(%rax), %eax cmpl $0xc, %eax jne 0x56d86 movq 0x8(%rsp), %rax leaq -0x6f(%rip), %rcx # 0x56cf0 cmpq %rcx, 0x38(%rax) jne 0x56d84 movq 0x20(%rsp), %rdi leaq 0xb9f65(%rip), %rsi # 0x110cd6 movb $0x0, %al callq 0x2d300 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) jmp 0x56da9 jmp 0x56d86 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx movl $0x27, %ecx callq 0x54e00 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) movq 0x38(%rsp), %rax movq 0x40(%rsp), %rdx addq $0x48, %rsp retq nopl (%rax,%rax)
js_iterator_constructor: sub rsp, 48h mov [rsp+48h+var_20], rsi mov [rsp+48h+var_18], rdx mov [rsp+48h+var_28], rdi mov [rsp+48h+var_2C], ecx mov [rsp+48h+var_38], r8 mov rax, [rsp+48h+var_18] mov ecx, eax mov eax, 0FFFFFFFFh cmp eax, ecx jz short loc_56D3B mov rdi, [rsp+48h+var_28] lea rsi, aConstructorReq; "constructor requires 'new'" mov al, 0 call JS_ThrowTypeError mov [rsp+48h+var_10], rax mov [rsp+48h+var_8], rdx jmp short loc_56DA9 loc_56D3B: mov rax, [rsp+48h+var_20] mov [rsp+48h+var_40], rax mov rax, [rsp+48h+var_40] movzx eax, word ptr [rax+6] cmp eax, 0Ch jnz short loc_56D86 mov rax, [rsp+48h+var_40] lea rcx, js_iterator_constructor cmp [rax+38h], rcx jnz short loc_56D84 mov rdi, [rsp+48h+var_28] lea rsi, aAbstractClassN; "abstract class not constructable" mov al, 0 call JS_ThrowTypeError mov [rsp+48h+var_10], rax mov [rsp+48h+var_8], rdx jmp short loc_56DA9 loc_56D84: jmp short $+2 loc_56D86: mov rdi, [rsp+48h+var_28] mov rsi, [rsp+48h+var_20] mov rdx, [rsp+48h+var_18] mov ecx, 27h ; ''' call js_create_from_ctor mov [rsp+48h+var_10], rax mov [rsp+48h+var_8], rdx loc_56DA9: mov rax, [rsp+48h+var_10] mov rdx, [rsp+48h+var_8] add rsp, 48h retn
long long js_iterator_constructor( long long a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { char v15; // [rsp+0h] [rbp-48h] if ( (_DWORD)a3 != -1 ) return JS_ThrowTypeError( a1, (long long)"constructor requires 'new'", a3, (unsigned int)a3, a13, a14, a4, a5, a6, a7, a8, a9, a10, a11, v15); if ( *(_WORD *)(a2 + 6) == 12 && *(long long ( **)())(a2 + 56) == js_iterator_constructor ) return JS_ThrowTypeError( a1, (long long)"abstract class not constructable", a3, (long long)js_iterator_constructor, a13, a14, a4, a5, a6, a7, a8, a9, a10, a11, v15); return js_create_from_ctor(a1, a2, a3, 39); }
js_iterator_constructor: SUB RSP,0x48 MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x20],RDI MOV dword ptr [RSP + 0x1c],ECX MOV qword ptr [RSP + 0x10],R8 MOV RAX,qword ptr [RSP + 0x30] MOV ECX,EAX MOV EAX,0xffffffff CMP EAX,ECX JZ 0x00156d3b MOV RDI,qword ptr [RSP + 0x20] LEA RSI,[0x210cbb] MOV AL,0x0 CALL 0x0012d300 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX JMP 0x00156da9 LAB_00156d3b: MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x8] MOVZX EAX,word ptr [RAX + 0x6] CMP EAX,0xc JNZ 0x00156d86 MOV RAX,qword ptr [RSP + 0x8] LEA RCX,[0x156cf0] CMP qword ptr [RAX + 0x38],RCX JNZ 0x00156d84 MOV RDI,qword ptr [RSP + 0x20] LEA RSI,[0x210cd6] MOV AL,0x0 CALL 0x0012d300 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX JMP 0x00156da9 LAB_00156d84: JMP 0x00156d86 LAB_00156d86: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] MOV ECX,0x27 CALL 0x00154e00 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX LAB_00156da9: MOV RAX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] ADD RSP,0x48 RET
int1 [16] js_iterator_constructor(int8 param_1,long param_2,int8 param_3) { int1 auVar1 [16]; if ((int)param_3 == -1) { if ((*(short *)(param_2 + 6) == 0xc) && (*(code **)(param_2 + 0x38) == js_iterator_constructor)) { auVar1 = JS_ThrowTypeError(param_1,"abstract class not constructable"); } else { auVar1 = js_create_from_ctor(param_1,param_2,param_3,0x27); } } else { auVar1 = JS_ThrowTypeError(param_1,"constructor requires \'new\'"); } return auVar1; }
2,180
js_iterator_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_iterator_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSObject *p; if (JS_TAG_OBJECT != JS_VALUE_GET_TAG(new_target)) return JS_ThrowTypeError(ctx, "constructor requires 'new'"); p = JS_VALUE_GET_OBJ(new_target); if (p->class_id == JS_CLASS_C_FUNCTION) if (p->u.cfunc.c_function.generic == js_iterator_constructor) return JS_ThrowTypeError(ctx, "abstract class not constructable"); return js_create_from_ctor(ctx, new_target, JS_CLASS_ITERATOR); }
O1
c
js_iterator_constructor: pushq %rbx subq $0x10, %rsp movq %rsi, 0x8(%rsp) cmpl $-0x1, %edx jne 0x38691 movq 0x8(%rsp), %rax cmpw $0xc, 0x6(%rax) jne 0x3867d leaq -0x22(%rip), %rcx # 0x38655 cmpq %rcx, 0x38(%rax) je 0x386af movq 0x8(%rsp), %rsi movl $0x27, %ecx callq 0x36d56 movq %rax, %rbx jmp 0x386a6 leaq 0x695a8(%rip), %rsi # 0xa1c40 xorl %ebx, %ebx xorl %eax, %eax callq 0x22567 movl $0x6, %edx movq %rbx, %rax addq $0x10, %rsp popq %rbx retq leaq 0x695a5(%rip), %rsi # 0xa1c5b jmp 0x38698
js_iterator_constructor: push rbx sub rsp, 10h mov [rsp+18h+var_10], rsi cmp edx, 0FFFFFFFFh jnz short loc_38691 mov rax, [rsp+18h+var_10] cmp word ptr [rax+6], 0Ch jnz short loc_3867D lea rcx, js_iterator_constructor cmp [rax+38h], rcx jz short loc_386AF loc_3867D: mov rsi, [rsp+18h+var_10] mov ecx, 27h ; ''' call js_create_from_ctor mov rbx, rax jmp short loc_386A6 loc_38691: lea rsi, aConstructorReq; "constructor requires 'new'" loc_38698: xor ebx, ebx xor eax, eax call JS_ThrowTypeError mov edx, 6 loc_386A6: mov rax, rbx add rsp, 10h pop rbx retn loc_386AF: lea rsi, aAbstractClassN; "abstract class not constructable" jmp short loc_38698
unsigned long long js_iterator_constructor( long long a1, long long a2, long long a3, long long ( *a4)(), long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rbx const char *v15; // rsi char v17; // [rsp+0h] [rbp-18h] if ( (_DWORD)a3 != -1 ) { v15 = "constructor requires 'new'"; LABEL_6: v14 = 0LL; JS_ThrowTypeError(a1, (long long)v15, a3, (long long)a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v17); return v14; } if ( *(_WORD *)(a2 + 6) == 12 ) { a4 = js_iterator_constructor; if ( *(long long ( **)())(a2 + 56) == js_iterator_constructor ) { v15 = "abstract class not constructable"; goto LABEL_6; } } return js_create_from_ctor(a1, a2, a3, 39); }
2,181
js_iterator_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_iterator_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSObject *p; if (JS_TAG_OBJECT != JS_VALUE_GET_TAG(new_target)) return JS_ThrowTypeError(ctx, "constructor requires 'new'"); p = JS_VALUE_GET_OBJ(new_target); if (p->class_id == JS_CLASS_C_FUNCTION) if (p->u.cfunc.c_function.generic == js_iterator_constructor) return JS_ThrowTypeError(ctx, "abstract class not constructable"); return js_create_from_ctor(ctx, new_target, JS_CLASS_ITERATOR); }
O2
c
js_iterator_constructor: pushq %rbx cmpl $-0x1, %edx jne 0x31942 cmpw $0xc, 0x6(%rsi) jne 0x31935 leaq -0x14(%rip), %rax # 0x3191b cmpq %rax, 0x38(%rsi) je 0x3195a pushq $0x27 popq %rcx callq 0x3045a movq %rax, %rbx jmp 0x31955 leaq 0x57231(%rip), %rsi # 0x88b7a xorl %ebx, %ebx xorl %eax, %eax callq 0x1c64d pushq $0x6 popq %rdx movq %rbx, %rax popq %rbx retq leaq 0x57234(%rip), %rsi # 0x88b95 jmp 0x31949
js_iterator_constructor: push rbx cmp edx, 0FFFFFFFFh jnz short loc_31942 cmp word ptr [rsi+6], 0Ch jnz short loc_31935 lea rax, js_iterator_constructor cmp [rsi+38h], rax jz short loc_3195A loc_31935: push 27h ; ''' pop rcx call js_create_from_ctor mov rbx, rax jmp short loc_31955 loc_31942: lea rsi, aConstructorReq; "constructor requires 'new'" loc_31949: xor ebx, ebx xor eax, eax call JS_ThrowTypeError push 6 pop rdx loc_31955: mov rax, rbx pop rbx retn loc_3195A: lea rsi, aAbstractClassN; "abstract class not constructable" jmp short loc_31949
unsigned long long js_iterator_constructor( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rbx const char *v15; // rsi char v17; // [rsp+0h] [rbp-8h] if ( (_DWORD)a3 != -1 ) { v15 = "constructor requires 'new'"; LABEL_6: v14 = 0LL; JS_ThrowTypeError(a1, (long long)v15, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v17); return v14; } if ( *(_WORD *)(a2 + 6) == 12 && *(long long ( **)())(a2 + 56) == js_iterator_constructor ) { v15 = "abstract class not constructable"; goto LABEL_6; } return js_create_from_ctor(a1, a2, a3, 39); }
js_iterator_constructor: PUSH RBX CMP EDX,-0x1 JNZ 0x00131942 CMP word ptr [RSI + 0x6],0xc JNZ 0x00131935 LEA RAX,[0x13191b] CMP qword ptr [RSI + 0x38],RAX JZ 0x0013195a LAB_00131935: PUSH 0x27 POP RCX CALL 0x0013045a MOV RBX,RAX JMP 0x00131955 LAB_00131942: LEA RSI,[0x188b7a] LAB_00131949: XOR EBX,EBX XOR EAX,EAX CALL 0x0011c64d PUSH 0x6 POP RDX LAB_00131955: MOV RAX,RBX POP RBX RET LAB_0013195a: LEA RSI,[0x188b95] JMP 0x00131949
int8 js_iterator_constructor(int8 param_1,long param_2,int param_3) { int8 uVar1; char *pcVar2; if (param_3 == -1) { if ((*(short *)(param_2 + 6) != 0xc) || (*(code **)(param_2 + 0x38) != js_iterator_constructor)) { uVar1 = js_create_from_ctor(); return uVar1; } pcVar2 = "abstract class not constructable"; } else { pcVar2 = "constructor requires \'new\'"; } JS_ThrowTypeError(param_1,pcVar2); return 0; }
2,182
init_alloc_root
eloqsql/mysys/my_alloc.c
void init_alloc_root(PSI_memory_key key, MEM_ROOT *mem_root, size_t block_size, size_t pre_alloc_size __attribute__((unused)), myf my_flags) { DBUG_ENTER("init_alloc_root"); DBUG_PRINT("enter",("root: %p prealloc: %zu", mem_root, pre_alloc_size)); mem_root->free= mem_root->used= mem_root->pre_alloc= 0; mem_root->min_malloc= 32; mem_root->block_size= (block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1; if (my_flags & MY_THREAD_SPECIFIC) mem_root->block_size|= 1; mem_root->error_handler= 0; mem_root->block_num= 4; /* We shift this with >>2 */ mem_root->first_block_usage= 0; mem_root->m_psi_key= key; #if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG)) if (pre_alloc_size) { size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); if ((mem_root->free= mem_root->pre_alloc= (USED_MEM*) my_malloc(key, size, MYF(my_flags)))) { mem_root->free->size= size; mem_root->free->left= pre_alloc_size; mem_root->free->next= 0; TRASH_MEM(mem_root->free); } } #endif DBUG_VOID_RETURN; }
O0
c
init_alloc_root: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) jmp 0x3583d movq -0x10(%rbp), %rax movq $0x0, 0x10(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x10(%rbp), %rax movq $0x0, (%rax) movq -0x10(%rbp), %rax movq $0x20, 0x18(%rax) movq -0x18(%rbp), %rcx subq $0x28, %rcx andq $-0x2, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x28(%rbp), %rax andq $0x10000, %rax # imm = 0x10000 cmpq $0x0, %rax je 0x358a0 movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx orq $0x1, %rcx movq %rcx, 0x20(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x30(%rax) movq -0x10(%rbp), %rax movl $0x4, 0x28(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x2c(%rax) movl -0x4(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x38(%rax) cmpq $0x0, -0x20(%rbp) je 0x3593a movq -0x20(%rbp), %rax addq $0x18, %rax movq %rax, -0x30(%rbp) movl -0x4(%rbp), %edi movq -0x30(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x28c30 movq -0x10(%rbp), %rcx movq %rax, 0x10(%rcx) movq -0x10(%rbp), %rcx movq %rax, (%rcx) cmpq $0x0, %rax je 0x35938 movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq (%rax), %rax movq %rcx, 0x10(%rax) movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq (%rax), %rax movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq $0x0, (%rax) jmp 0x35932 jmp 0x35934 jmp 0x35936 jmp 0x35938 jmp 0x3593a jmp 0x3593c jmp 0x3593e addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
init_alloc_root: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 jmp short $+2 loc_3583D: mov rax, [rbp+var_10] mov qword ptr [rax+10h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+8], 0 mov rax, [rbp+var_10] mov qword ptr [rax], 0 mov rax, [rbp+var_10] mov qword ptr [rax+18h], 20h ; ' ' mov rcx, [rbp+var_18] sub rcx, 28h ; '(' and rcx, 0FFFFFFFFFFFFFFFEh mov rax, [rbp+var_10] mov [rax+20h], rcx mov rax, [rbp+var_28] and rax, 10000h cmp rax, 0 jz short loc_358A0 mov rax, [rbp+var_10] mov rcx, [rax+20h] or rcx, 1 mov [rax+20h], rcx loc_358A0: mov rax, [rbp+var_10] mov qword ptr [rax+30h], 0 mov rax, [rbp+var_10] mov dword ptr [rax+28h], 4 mov rax, [rbp+var_10] mov dword ptr [rax+2Ch], 0 mov ecx, [rbp+var_4] mov rax, [rbp+var_10] mov [rax+38h], ecx cmp [rbp+var_20], 0 jz short loc_3593A mov rax, [rbp+var_20] add rax, 18h mov [rbp+var_30], rax mov edi, [rbp+var_4] mov rsi, [rbp+var_30] mov rdx, [rbp+var_28] call my_malloc mov rcx, [rbp+var_10] mov [rcx+10h], rax mov rcx, [rbp+var_10] mov [rcx], rax cmp rax, 0 jz short loc_35938 mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov rax, [rax] mov [rax+10h], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov rax, [rax] mov [rax+8], rcx mov rax, [rbp+var_10] mov rax, [rax] mov qword ptr [rax], 0 jmp short $+2 loc_35932: jmp short $+2 loc_35934: jmp short $+2 loc_35936: jmp short $+2 loc_35938: jmp short $+2 loc_3593A: jmp short $+2 loc_3593C: jmp short $+2 loc_3593E: add rsp, 30h pop rbp retn
long long init_alloc_root(unsigned int a1, long long *a2, long long a3, long long a4, int a5) { long long result; // rax a2[2] = 0LL; a2[1] = 0LL; *a2 = 0LL; a2[3] = 32LL; a2[4] = (a3 - 40) & 0xFFFFFFFFFFFFFFFELL; if ( (a5 & 0x10000) != 0 ) a2[4] |= 1uLL; a2[6] = 0LL; *((_DWORD *)a2 + 10) = 4; *((_DWORD *)a2 + 11) = 0; result = (long long)a2; *((_DWORD *)a2 + 14) = a1; if ( a4 ) { result = my_malloc(a1, a4 + 24, a5); a2[2] = result; *a2 = result; if ( result ) { *(_QWORD *)(*a2 + 16) = a4 + 24; *(_QWORD *)(*a2 + 8) = a4; result = *a2; *(_QWORD *)*a2 = 0LL; } } return result; }
init_alloc_root: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 JMP 0x0013583d LAB_0013583d: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],0x20 MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x28 AND RCX,-0x2 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x28] AND RAX,0x10000 CMP RAX,0x0 JZ 0x001358a0 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x20] OR RCX,0x1 MOV qword ptr [RAX + 0x20],RCX LAB_001358a0: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x30],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x4 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x2c],0x0 MOV ECX,dword ptr [RBP + -0x4] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x38],ECX CMP qword ptr [RBP + -0x20],0x0 JZ 0x0013593a MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x18 MOV qword ptr [RBP + -0x30],RAX MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x28] CALL 0x00128c30 MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x10],RAX MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX],RAX CMP RAX,0x0 JZ 0x00135938 MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0x10],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX],0x0 JMP 0x00135932 LAB_00135932: JMP 0x00135934 LAB_00135934: JMP 0x00135936 LAB_00135936: JMP 0x00135938 LAB_00135938: JMP 0x0013593a LAB_0013593a: JMP 0x0013593c LAB_0013593c: JMP 0x0013593e LAB_0013593e: ADD RSP,0x30 POP RBP RET
void init_alloc_root(int4 param_1,long *param_2,long param_3,long param_4,ulong param_5) { long lVar1; param_2[2] = 0; param_2[1] = 0; *param_2 = 0; param_2[3] = 0x20; param_2[4] = param_3 - 0x28U & 0xfffffffffffffffe; if ((param_5 & 0x10000) != 0) { param_2[4] = param_2[4] | 1; } param_2[6] = 0; *(int4 *)(param_2 + 5) = 4; *(int4 *)((long)param_2 + 0x2c) = 0; *(int4 *)(param_2 + 7) = param_1; if (param_4 != 0) { lVar1 = my_malloc(param_1,param_4 + 0x18,param_5); param_2[2] = lVar1; *param_2 = lVar1; if (lVar1 != 0) { *(long *)(*param_2 + 0x10) = param_4 + 0x18; *(long *)(*param_2 + 8) = param_4; *(int8 *)*param_2 = 0; } } return; }
2,183
testing::internal::GetTypeName[abi:cxx11](std::type_info const&)
AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-type-util.h
inline std::string GetTypeName(const std::type_info& type) { const char* const name = type.name(); #if GTEST_HAS_CXXABI_H_ || defined(__HP_aCC) int status = 0; // gcc's implementation of typeid(T).name() mangles the type name, // so we have to demangle it. #if GTEST_HAS_CXXABI_H_ using abi::__cxa_demangle; #endif // GTEST_HAS_CXXABI_H_ char* const readable_name = __cxa_demangle(name, nullptr, nullptr, &status); const std::string name_str(status == 0 ? readable_name : name); free(readable_name); return CanonicalizeForStdLibVersioning(name_str); #elif defined(_MSC_VER) // Strip struct and class due to differences between // MSVC and other compilers. std::pair<int,bool> is printed as // "struct std::pair<int,bool>" when using MSVC vs "std::pair<int, bool>" with // other compilers. std::string s = name; // Only strip the leading "struct " and "class ", so uses rfind == 0 to // ensure that if (s.rfind("struct ", 0) == 0) { s = s.substr(strlen("struct ")); } else if (s.rfind("class ", 0) == 0) { s = s.substr(strlen("class ")); } return s; #else return name; #endif // GTEST_HAS_CXXABI_H_ || __HP_aCC }
O0
c
testing::internal::GetTypeName[abi:cxx11](std::type_info const&): subq $0xa8, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x20(%rsp) movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq 0x98(%rsp), %rdi callq 0x2f6c0 movq %rax, 0x90(%rsp) movl $0x0, 0x8c(%rsp) movq 0x90(%rsp), %rdi xorl %eax, %eax movl %eax, %edx leaq 0x8c(%rsp), %rcx movq %rdx, %rsi callq 0x165f0 movq %rax, 0x80(%rsp) cmpl $0x0, 0x8c(%rsp) jne 0x2de11 movq 0x80(%rsp), %rax movq %rax, 0x10(%rsp) jmp 0x2de1e movq 0x90(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq %rax, (%rsp) leaq 0x5f(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x16d00 movq (%rsp), %rsi movq 0x8(%rsp), %rdx leaq 0x60(%rsp), %rdi callq 0x1dbb0 jmp 0x2de4b leaq 0x5f(%rsp), %rdi callq 0x16790 movq 0x80(%rsp), %rdi callq 0x16890 leaq 0x28(%rsp), %rdi leaq 0x60(%rsp), %rsi callq 0x2f810 jmp 0x2de73 movq 0x18(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0x2f710 jmp 0x2de84 leaq 0x28(%rsp), %rdi callq 0x1dfd0 leaq 0x60(%rsp), %rdi callq 0x1dfd0 movq 0x20(%rsp), %rax addq $0xa8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) leaq 0x5f(%rsp), %rdi callq 0x16790 jmp 0x2def1 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) jmp 0x2dee7 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) leaq 0x28(%rsp), %rdi callq 0x1dfd0 leaq 0x60(%rsp), %rdi callq 0x1dfd0 movq 0x50(%rsp), %rdi callq 0x16cf0 nopl (%rax,%rax)
_ZN7testing8internal11GetTypeNameB5cxx11ERKSt9type_info: sub rsp, 0A8h mov [rsp+0A8h+var_90], rdi mov rax, rdi mov [rsp+0A8h+var_88], rax mov [rsp+0A8h+var_8], rdi mov [rsp+0A8h+var_10], rsi mov rdi, [rsp+0A8h+var_10]; this call _ZNKSt9type_info4nameEv; std::type_info::name(void) mov [rsp+0A8h+lpmangled], rax mov [rsp+0A8h+status], 0 mov rdi, [rsp+0A8h+lpmangled]; lpmangled xor eax, eax mov edx, eax; lpoutlen lea rcx, [rsp+0A8h+status]; lpstatus mov rsi, rdx; lpout call ___cxa_demangle mov [rsp+0A8h+var_28], rax cmp [rsp+0A8h+status], 0 jnz short loc_2DE11 mov rax, [rsp+0A8h+var_28] mov [rsp+0A8h+var_98], rax jmp short loc_2DE1E loc_2DE11: mov rax, [rsp+0A8h+lpmangled] mov [rsp+0A8h+var_98], rax loc_2DE1E: mov rax, [rsp+0A8h+var_98] mov [rsp+0A8h+var_A8], rax lea rdi, [rsp+0A8h+var_49] mov [rsp+0A8h+var_A0], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rsi, [rsp+0A8h+var_A8] mov rdx, [rsp+0A8h+var_A0] lea rdi, [rsp+0A8h+var_48] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_2DE4B: lea rdi, [rsp+0A8h+var_49] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, [rsp+0A8h+var_28] call _free lea rdi, [rsp+0A8h+var_80] lea rsi, [rsp+0A8h+var_48] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_2DE73: mov rdi, [rsp+0A8h+var_90] lea rsi, [rsp+0A8h+var_80] call _ZN7testing8internal31CanonicalizeForStdLibVersioningENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::CanonicalizeForStdLibVersioning(std::string) jmp short $+2 loc_2DE84: lea rdi, [rsp+0A8h+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0A8h+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, [rsp+0A8h+var_88] add rsp, 0A8h retn mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax lea rdi, [rsp+arg_57] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_2DEF1 mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax jmp short loc_2DEE7 mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax lea rdi, [rsp+arg_20]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_2DEE7: lea rdi, [rsp+arg_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_2DEF1: mov rdi, [rsp+arg_48] call __Unwind_Resume
long long testing::internal::GetTypeName[abi:cxx11](long long a1, std::type_info *a2) { int v2; // edx int v3; // ecx int v4; // r8d int v5; // r9d char *v7; // [rsp+10h] [rbp-98h] long long v8; // [rsp+18h] [rbp-90h] long long v9; // [rsp+20h] [rbp-88h] int v10; // [rsp+28h] [rbp-80h] BYREF long long v11; // [rsp+30h] [rbp-78h] int v12; // [rsp+38h] [rbp-70h] char v13; // [rsp+5Fh] [rbp-49h] BYREF _BYTE v14[32]; // [rsp+60h] [rbp-48h] BYREF char *v15; // [rsp+80h] [rbp-28h] int status; // [rsp+8Ch] [rbp-1Ch] BYREF char *lpmangled; // [rsp+90h] [rbp-18h] std::type_info *v18; // [rsp+98h] [rbp-10h] long long v19; // [rsp+A0h] [rbp-8h] v19 = a1; v18 = a2; lpmangled = (char *)std::type_info::name(a2); status = 0; v15 = __cxa_demangle(lpmangled, 0LL, 0LL, &status); if ( status ) v7 = lpmangled; else v7 = v15; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)v14, (long long)v7, (long long)&v13); std::allocator<char>::~allocator(&v13, v7); free(v15); std::string::basic_string( (unsigned int)&v10, (unsigned int)v14, v2, v3, v4, v5, (_DWORD)v7, (unsigned int)&v13, (long long)v7, a1, a1, v10, v11, v12); testing::internal::CanonicalizeForStdLibVersioning(v8, &v10); std::string::~string(&v10); std::string::~string(v14); return v9; }
GetTypeName[abi:cxx11]: SUB RSP,0xa8 MOV qword ptr [RSP + 0x18],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0xa0],RDI MOV qword ptr [RSP + 0x98],RSI MOV RDI,qword ptr [RSP + 0x98] CALL 0x0012f6c0 MOV qword ptr [RSP + 0x90],RAX MOV dword ptr [RSP + 0x8c],0x0 MOV RDI,qword ptr [RSP + 0x90] XOR EAX,EAX MOV EDX,EAX LEA RCX,[RSP + 0x8c] MOV RSI,RDX CALL 0x001165f0 MOV qword ptr [RSP + 0x80],RAX CMP dword ptr [RSP + 0x8c],0x0 JNZ 0x0012de11 MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x10],RAX JMP 0x0012de1e LAB_0012de11: MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x10],RAX LAB_0012de1e: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP],RAX LEA RDI,[RSP + 0x5f] MOV qword ptr [RSP + 0x8],RDI CALL 0x00116d00 MOV RSI,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] LAB_0012de3f: LEA RDI,[RSP + 0x60] CALL 0x0011dbb0 JMP 0x0012de4b LAB_0012de4b: LEA RDI,[RSP + 0x5f] CALL 0x00116790 MOV RDI,qword ptr [RSP + 0x80] CALL 0x00116890 LAB_0012de62: LEA RDI,[RSP + 0x28] LEA RSI,[RSP + 0x60] CALL 0x0012f810 JMP 0x0012de73 LAB_0012de73: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[RSP + 0x28] CALL 0x0012f710 LAB_0012de82: JMP 0x0012de84 LAB_0012de84: LEA RDI,[RSP + 0x28] CALL 0x0011dfd0 LEA RDI,[RSP + 0x60] CALL 0x0011dfd0 MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0xa8 RET
/* testing::internal::GetTypeName[abi:cxx11](std::type_info const&) */ internal * __thiscall testing::internal::GetTypeName_abi_cxx11_(internal *this,type_info *param_1) { char *local_98; string local_80 [55]; allocator local_49; string local_48 [32]; char *local_28; int local_1c; char *local_18; type_info *local_10; internal *local_8; local_10 = param_1; local_8 = this; local_18 = (char *)std::type_info::name(param_1); local_1c = 0; local_28 = (char *)__cxa_demangle(local_18,0,0,&local_1c); local_98 = local_28; if (local_1c != 0) { local_98 = local_18; } std::allocator<char>::allocator(); /* try { // try from 0012de3f to 0012de48 has its CatchHandler @ 0012dea5 */ std::__cxx11::string::string<std::allocator<char>>(local_48,local_98,&local_49); std::allocator<char>::~allocator((allocator<char> *)&local_49); free(local_28); /* try { // try from 0012de62 to 0012de70 has its CatchHandler @ 0012debf */ std::__cxx11::string::string(local_80,local_48); /* try { // try from 0012de73 to 0012de81 has its CatchHandler @ 0012decf */ CanonicalizeForStdLibVersioning(this,local_80); std::__cxx11::string::~string(local_80); std::__cxx11::string::~string(local_48); return this; }
2,184
BioNj::Initialize(float**, _IO_FILE*, int, BioNj::pointers*)
iqtree3/utils/bionj.cpp
void Initialize(float **delta, FILE *input, int n, POINTERS *trees) { int lig; /* matrix line */ int col; /* matrix column */ float distance; char name_taxon[LEN]; /* taxon name */ WORD *name; for(lig=1; lig <= n; lig++) { // Read taxon name. if (fscanf(input,"%s",name_taxon) != 1) printf("Failed to read taxon name.\n"); name=(WORD *)calloc(1,sizeof(WORD)); /* taxon name is */ if(name == NULL) /* put in trees */ { printf("Out of memories !!"); exit(0); } else { strcpy(name->name,name_taxon); name->suiv=NULL; trees[lig].head=name; trees[lig].tail=name; for(col= 1; col <= n; col++) { // Read distance. if (fscanf(input,"%f",&distance) != 1) printf("Failed to read distance.\n"); delta[lig][col]=distance; } } } }
O0
cpp
BioNj::Initialize(float**, _IO_FILE*, int, BioNj::pointers*): subq $0x438, %rsp # imm = 0x438 movq %rdi, 0x430(%rsp) movq %rsi, 0x428(%rsp) movq %rdx, 0x420(%rsp) movl %ecx, 0x41c(%rsp) movq %r8, 0x410(%rsp) movl $0x1, 0x40c(%rsp) movl 0x40c(%rsp), %eax cmpl 0x41c(%rsp), %eax jg 0x3cd6d movq 0x420(%rsp), %rdi leaq 0x10(%rsp), %rdx leaq 0x2c9d1(%rip), %rsi # 0x695f2 movb $0x0, %al callq 0x377d0 cmpl $0x1, %eax je 0x3cc3b leaq 0x2c9c1(%rip), %rdi # 0x695f5 movb $0x0, %al callq 0x37070 movl $0x1, %edi movl $0x3f0, %esi # imm = 0x3F0 callq 0x37290 movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) jne 0x3cc6c leaq 0x2c9b3(%rip), %rdi # 0x69611 movb $0x0, %al callq 0x37070 xorl %edi, %edi callq 0x37510 movq 0x8(%rsp), %rdi leaq 0x10(%rsp), %rsi callq 0x373b0 movq 0x8(%rsp), %rax movq $0x0, 0x3e8(%rax) movq 0x8(%rsp), %rcx movq 0x410(%rsp), %rax movslq 0x40c(%rsp), %rdx shlq $0x4, %rdx addq %rdx, %rax movq %rcx, (%rax) movq 0x8(%rsp), %rcx movq 0x410(%rsp), %rax movslq 0x40c(%rsp), %rdx shlq $0x4, %rdx addq %rdx, %rax movq %rcx, 0x8(%rax) movl $0x1, 0x408(%rsp) movl 0x408(%rsp), %eax cmpl 0x41c(%rsp), %eax jg 0x3cd53 movq 0x420(%rsp), %rdi leaq 0x2c930(%rip), %rsi # 0x69624 leaq 0x404(%rsp), %rdx movb $0x0, %al callq 0x377d0 cmpl $0x1, %eax je 0x3cd16 leaq 0x2c918(%rip), %rdi # 0x69627 movb $0x0, %al callq 0x37070 movss 0x404(%rsp), %xmm0 movq 0x428(%rsp), %rax movslq 0x40c(%rsp), %rcx movq (%rax,%rcx,8), %rax movslq 0x408(%rsp), %rcx movss %xmm0, (%rax,%rcx,4) movl 0x408(%rsp), %eax addl $0x1, %eax movl %eax, 0x408(%rsp) jmp 0x3ccd5 jmp 0x3cd55 jmp 0x3cd57 movl 0x40c(%rsp), %eax addl $0x1, %eax movl %eax, 0x40c(%rsp) jmp 0x3cbf9 addq $0x438, %rsp # imm = 0x438 retq nopw %cs:(%rax,%rax) nop
_ZN5BioNj10InitializeEPPfP8_IO_FILEiPNS_8pointersE: sub rsp, 438h mov [rsp+438h+var_8], rdi mov [rsp+438h+var_10], rsi mov [rsp+438h+var_18], rdx mov [rsp+438h+var_1C], ecx mov [rsp+438h+var_28], r8 mov [rsp+438h+var_2C], 1 loc_3CBF9: mov eax, [rsp+438h+var_2C] cmp eax, [rsp+438h+var_1C] jg loc_3CD6D mov rdi, [rsp+438h+var_18] lea rdx, [rsp+438h+var_428] lea rsi, aS; "%s" mov al, 0 call ___isoc99_fscanf cmp eax, 1 jz short loc_3CC3B lea rdi, aFailedToReadTa; "Failed to read taxon name.\n" mov al, 0 call _printf loc_3CC3B: mov edi, 1 mov esi, 3F0h call _calloc mov [rsp+438h+var_430], rax cmp [rsp+438h+var_430], 0 jnz short loc_3CC6C lea rdi, aOutOfMemories_0; "Out of memories !!" mov al, 0 call _printf xor edi, edi call _exit loc_3CC6C: mov rdi, [rsp+438h+var_430] lea rsi, [rsp+438h+var_428] call _strcpy mov rax, [rsp+438h+var_430] mov qword ptr [rax+3E8h], 0 mov rcx, [rsp+438h+var_430] mov rax, [rsp+438h+var_28] movsxd rdx, [rsp+438h+var_2C] shl rdx, 4 add rax, rdx mov [rax], rcx mov rcx, [rsp+438h+var_430] mov rax, [rsp+438h+var_28] movsxd rdx, [rsp+438h+var_2C] shl rdx, 4 add rax, rdx mov [rax+8], rcx mov [rsp+438h+var_30], 1 loc_3CCD5: mov eax, [rsp+438h+var_30] cmp eax, [rsp+438h+var_1C] jg short loc_3CD53 mov rdi, [rsp+438h+var_18] lea rsi, asc_69624; "%f" lea rdx, [rsp+438h+var_34] mov al, 0 call ___isoc99_fscanf cmp eax, 1 jz short loc_3CD16 lea rdi, aFailedToReadDi; "Failed to read distance.\n" mov al, 0 call _printf loc_3CD16: movss xmm0, [rsp+438h+var_34] mov rax, [rsp+438h+var_10] movsxd rcx, [rsp+438h+var_2C] mov rax, [rax+rcx*8] movsxd rcx, [rsp+438h+var_30] movss dword ptr [rax+rcx*4], xmm0 mov eax, [rsp+438h+var_30] add eax, 1 mov [rsp+438h+var_30], eax jmp short loc_3CCD5 loc_3CD53: jmp short $+2 loc_3CD55: jmp short $+2 loc_3CD57: mov eax, [rsp+438h+var_2C] add eax, 1 mov [rsp+438h+var_2C], eax jmp loc_3CBF9 loc_3CD6D: add rsp, 438h retn
long long BioNj::Initialize(long long a1, long long a2, long long a3, int a4, long long a5) { long long result; // rax long long v6; // [rsp+8h] [rbp-430h] char v7[1012]; // [rsp+10h] [rbp-428h] BYREF int v8; // [rsp+404h] [rbp-34h] BYREF int j; // [rsp+408h] [rbp-30h] int i; // [rsp+40Ch] [rbp-2Ch] long long v11; // [rsp+410h] [rbp-28h] int v12; // [rsp+41Ch] [rbp-1Ch] long long v13; // [rsp+420h] [rbp-18h] long long v14; // [rsp+428h] [rbp-10h] long long v15; // [rsp+430h] [rbp-8h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; for ( i = 1; ; ++i ) { result = (unsigned int)i; if ( i > v12 ) break; if ( (unsigned int)__isoc99_fscanf(v13, "%s", v7) != 1 ) printf("Failed to read taxon name.\n"); v6 = calloc(1LL, 1008LL); if ( !v6 ) { printf("Out of memories !!"); exit(0LL); } strcpy(v6, v7); *(_QWORD *)(v6 + 1000) = 0LL; *(_QWORD *)(16LL * i + v11) = v6; *(_QWORD *)(16LL * i + v11 + 8) = v6; for ( j = 1; j <= v12; ++j ) { if ( (unsigned int)__isoc99_fscanf(v13, "%f", &v8) != 1 ) printf("Failed to read distance.\n"); *(_DWORD *)(*(_QWORD *)(v14 + 8LL * i) + 4LL * j) = v8; } } return result; }
Initialize: SUB RSP,0x438 MOV qword ptr [RSP + 0x430],RDI MOV qword ptr [RSP + 0x428],RSI MOV qword ptr [RSP + 0x420],RDX MOV dword ptr [RSP + 0x41c],ECX MOV qword ptr [RSP + 0x410],R8 MOV dword ptr [RSP + 0x40c],0x1 LAB_0013cbf9: MOV EAX,dword ptr [RSP + 0x40c] CMP EAX,dword ptr [RSP + 0x41c] JG 0x0013cd6d MOV RDI,qword ptr [RSP + 0x420] LEA RDX,[RSP + 0x10] LEA RSI,[0x1695f2] MOV AL,0x0 CALL 0x001377d0 CMP EAX,0x1 JZ 0x0013cc3b LEA RDI,[0x1695f5] MOV AL,0x0 CALL 0x00137070 LAB_0013cc3b: MOV EDI,0x1 MOV ESI,0x3f0 CALL 0x00137290 MOV qword ptr [RSP + 0x8],RAX CMP qword ptr [RSP + 0x8],0x0 JNZ 0x0013cc6c LEA RDI,[0x169611] MOV AL,0x0 CALL 0x00137070 XOR EDI,EDI CALL 0x00137510 LAB_0013cc6c: MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[RSP + 0x10] CALL 0x001373b0 MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x3e8],0x0 MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x410] MOVSXD RDX,dword ptr [RSP + 0x40c] SHL RDX,0x4 ADD RAX,RDX MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x410] MOVSXD RDX,dword ptr [RSP + 0x40c] SHL RDX,0x4 ADD RAX,RDX MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RSP + 0x408],0x1 LAB_0013ccd5: MOV EAX,dword ptr [RSP + 0x408] CMP EAX,dword ptr [RSP + 0x41c] JG 0x0013cd53 MOV RDI,qword ptr [RSP + 0x420] LEA RSI,[0x169624] LEA RDX,[RSP + 0x404] MOV AL,0x0 CALL 0x001377d0 CMP EAX,0x1 JZ 0x0013cd16 LEA RDI,[0x169627] MOV AL,0x0 CALL 0x00137070 LAB_0013cd16: MOVSS XMM0,dword ptr [RSP + 0x404] MOV RAX,qword ptr [RSP + 0x428] MOVSXD RCX,dword ptr [RSP + 0x40c] MOV RAX,qword ptr [RAX + RCX*0x8] MOVSXD RCX,dword ptr [RSP + 0x408] MOVSS dword ptr [RAX + RCX*0x4],XMM0 MOV EAX,dword ptr [RSP + 0x408] ADD EAX,0x1 MOV dword ptr [RSP + 0x408],EAX JMP 0x0013ccd5 LAB_0013cd53: JMP 0x0013cd55 LAB_0013cd55: JMP 0x0013cd57 LAB_0013cd57: MOV EAX,dword ptr [RSP + 0x40c] ADD EAX,0x1 MOV dword ptr [RSP + 0x40c],EAX JMP 0x0013cbf9 LAB_0013cd6d: ADD RSP,0x438 RET
/* BioNj::Initialize(float**, _IO_FILE*, int, BioNj::pointers*) */ void __thiscall BioNj::Initialize(BioNj *this,float **param_1,_IO_FILE *param_2,int param_3,pointers *param_4) { int iVar1; char *__dest; char local_428 [1012]; float local_34; int local_30; int local_2c; pointers *local_28; int local_1c; _IO_FILE *local_18; float **local_10; BioNj *local_8; local_2c = 1; local_28 = param_4; local_1c = param_3; local_18 = param_2; local_10 = param_1; local_8 = this; while( true ) { if (local_1c < local_2c) { return; } iVar1 = __isoc99_fscanf(local_18,&DAT_001695f2,local_428); if (iVar1 != 1) { printf("Failed to read taxon name.\n"); } __dest = (char *)calloc(1,0x3f0); if (__dest == (char *)0x0) break; strcpy(__dest,local_428); __dest[1000] = '\0'; __dest[0x3e9] = '\0'; __dest[0x3ea] = '\0'; __dest[0x3eb] = '\0'; __dest[0x3ec] = '\0'; __dest[0x3ed] = '\0'; __dest[0x3ee] = '\0'; __dest[0x3ef] = '\0'; *(char **)(local_28 + (long)local_2c * 0x10) = __dest; *(char **)(local_28 + (long)local_2c * 0x10 + 8) = __dest; for (local_30 = 1; local_30 <= local_1c; local_30 = local_30 + 1) { iVar1 = __isoc99_fscanf(local_18,&DAT_00169624,&local_34); if (iVar1 != 1) { printf("Failed to read distance.\n"); } local_10[local_2c][local_30] = local_34; } local_2c = local_2c + 1; } printf("Out of memories !!"); /* WARNING: Subroutine does not return */ exit(0); }
2,185
testing::TestResult::ValidateTestProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::TestProperty const&)
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
bool TestResult::ValidateTestProperty(const std::string& xml_element, const TestProperty& test_property) { return ValidateTestPropertyName(test_property.key(), GetReservedAttributesForElement(xml_element)); }
O1
cpp
testing::TestResult::ValidateTestProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::TestProperty const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdi, %rbx movq (%rsi), %rsi leaq 0x78(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x81e0 leaq 0x2374c(%rip), %rsi # 0x435b7 movq %rbx, %rdi callq 0x8160 testl %eax, %eax je 0x1ff24 leaq 0x23613(%rip), %rsi # 0x43495 movq %rbx, %rdi callq 0x8160 testl %eax, %eax je 0x1ff43 leaq 0x23651(%rip), %rsi # 0x434ea movq %rbx, %rdi callq 0x8160 testl %eax, %eax je 0x1ff62 leaq 0x2285d(%rip), %rdx # 0x4270d leaq 0x38(%rsp), %rdi movl $0x3, %esi movl $0x94c, %ecx # imm = 0x94C callq 0x16e72 movq 0x3911d(%rip), %rdi # 0x58fe8 leaq 0x24229(%rip), %rsi # 0x440fb movl $0x18, %edx callq 0x85b0 movq 0x39105(%rip), %rdi # 0x58fe8 leaq 0x2422a(%rip), %rsi # 0x44114 movl $0x23, %edx callq 0x85b0 movq (%rbx), %rsi movq 0x8(%rbx), %rdx movq 0x390e6(%rip), %rdi # 0x58fe8 callq 0x85b0 leaq 0x38(%rsp), %rdi callq 0x16fb4 xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movq $0x0, 0x20(%rsp) jmp 0x1ff7f leaq 0x38775(%rip), %rsi # 0x586a0 leaq 0x387ae(%rip), %rdx # 0x586e0 leaq 0x10(%rsp), %rdi leaq 0x38(%rsp), %rcx callq 0x376c0 jmp 0x1ff7f leaq 0x38796(%rip), %rsi # 0x586e0 leaq 0x387cf(%rip), %rdx # 0x58720 leaq 0x10(%rsp), %rdi leaq 0x38(%rsp), %rcx callq 0x376c0 jmp 0x1ff7f leaq 0x387b7(%rip), %rsi # 0x58720 leaq 0x387f0(%rip), %rdx # 0x58760 leaq 0x10(%rsp), %rdi leaq 0x38(%rsp), %rcx callq 0x376c0 movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rsi leaq 0x78(%rsp), %rdx callq 0x3b4aa movq %rax, %rbx movq 0x18(%rsp), %r14 cmpq %r14, %rax je 0x201c1 leaq 0x58(%rsp), %rdi callq 0x1cd64 movq 0x58(%rsp), %rax movq %rax, 0x30(%rsp) leaq 0x10(%rax), %r15 leaq 0x240fe(%rip), %rsi # 0x440c1 movl $0x27, %edx movq %r15, %rdi callq 0x85b0 movq 0x78(%rsp), %rsi movq 0x80(%rsp), %rdx movq %r15, %rdi callq 0x85b0 leaq 0x205e6(%rip), %rsi # 0x405d2 movl $0x2, %edx movq %r15, %rdi callq 0x85b0 movq %r15, 0x68(%rsp) movq %r14, 0x70(%rsp) movq %rbx, 0x60(%rsp) movq %rsp, %rdi callq 0x1cd64 movq 0x18(%rsp), %rax subq 0x10(%rsp), %rax je 0x200e5 sarq $0x5, %rax movq (%rsp), %r12 addq $0x10, %r12 movl $0x8, %r14d xorl %r15d, %r15d leaq 0x247f8(%rip), %r13 # 0x44834 leaq 0x22b6c(%rip), %rbp # 0x42baf leaq 0x22883(%rip), %rbx # 0x428cd testq %r15, %r15 sete %cl cmpq $0x3, %rax setb %al orb %cl, %al jne 0x2006b movl $0x2, %edx movq %r12, %rdi movq %r13, %rsi callq 0x85b0 movq 0x18(%rsp), %rax subq 0x10(%rsp), %rax sarq $0x5, %rax decq %rax cmpq %rax, %r15 jne 0x20091 movl $0x4, %edx movq %r12, %rdi movq %rbp, %rsi callq 0x85b0 movl $0x1, %edx movq %r12, %rdi movq %rbx, %rsi callq 0x85b0 movq 0x10(%rsp), %rax movq -0x8(%rax,%r14), %rsi movq (%rax,%r14), %rdx movq %r12, %rdi callq 0x85b0 movl $0x1, %edx movq %r12, %rdi movq %rbx, %rsi callq 0x85b0 movq 0x18(%rsp), %rax subq 0x10(%rsp), %rax incq %r15 sarq $0x5, %rax addq $0x20, %r14 cmpq %rax, %r15 jb 0x2004a movq (%rsp), %rbx leaq 0x38(%rsp), %rdi movq %rbx, %rsi callq 0x1cfc7 testq %rbx, %rbx movq 0x68(%rsp), %r15 je 0x20109 movq (%rbx), %rax movq %rbx, %rdi callq *0x8(%rax) movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx movq %r15, %rdi callq 0x85b0 movq 0x70(%rsp), %r14 leaq 0x23fc2(%rip), %rsi # 0x440e9 movl $0x11, %edx movq %r15, %rdi callq 0x85b0 leaq 0x23087(%rip), %rsi # 0x431c2 movl $0xb, %edx movq %r15, %rdi callq 0x85b0 leaq 0x22fce(%rip), %rsi # 0x4311d movl $0x1, %edx movq %r15, %rdi callq 0x85b0 leaq 0x225aa(%rip), %rdx # 0x4270d leaq 0x22cc4(%rip), %r8 # 0x42e2e movq %rsp, %rdi movl $0x1, %esi movl $0x978, %ecx # imm = 0x978 callq 0x18f74 movq 0x60(%rsp), %rbx movq %rsp, %rdi leaq 0x58(%rsp), %rsi callq 0x16886 movq %rsp, %rdi callq 0x18fe0 leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x201b1 movq 0x48(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x201c1 movq (%rdi), %rax callq *0x8(%rax) leaq 0x10(%rsp), %rdi callq 0x3244c leaq 0x88(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x201ec movq 0x88(%rsp), %rsi incq %rsi callq 0x84e0 cmpq %r14, %rbx sete %al addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq %rsp, %rdi callq 0x18fe0 jmp 0x20238 jmp 0x20235 jmp 0x20255 jmp 0x20230 movq %rax, %r14 leaq 0x38(%rsp), %rdi callq 0x16fb4 jmp 0x20284 movq %rax, %r14 jmp 0x20284 movq %rax, %r14 jmp 0x2027a movq %rax, %r14 jmp 0x20267 movq %rax, %r14 leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x20267 movq 0x48(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x20267 movq %rax, %r14 movq (%rsp), %rdi testq %rdi, %rdi je 0x20267 movq (%rdi), %rax callq *0x8(%rax) cmpq $0x0, 0x30(%rsp) je 0x2027a movq 0x30(%rsp), %rdi movq (%rdi), %rax callq *0x8(%rax) leaq 0x10(%rsp), %rdi callq 0x3244c leaq 0x88(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x202a5 movq 0x88(%rsp), %rsi incq %rsi callq 0x84e0 movq %r14, %rdi callq 0x8990 nop
_ZN7testing10TestResult20ValidateTestPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_12TestPropertyE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov rbx, rdi mov rsi, [rsi] lea rdi, [rsp+0C8h+var_50] lea rdx, [rsp+0C8h+var_B9] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&) lea rsi, aTestsuites; "testsuites" mov rdi, rbx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_1FF24 lea rsi, aTestsuite+3; "testsuite" mov rdi, rbx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_1FF43 lea rsi, aTestcase+5; "testcase" mov rdi, rbx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_1FF62 lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_90] mov esi, 3 mov ecx, 94Ch call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aConditionFalse; "Condition false failed. " mov edx, 18h 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, cs:_ZSt4cerr_ptr lea rsi, aUnrecognizedXm; "Unrecognized xml_element provided: " mov edx, 23h ; '#' call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [rbx] mov rdx, [rbx+8] mov rdi, cs:_ZSt4cerr_ptr call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rdi, [rsp+0C8h+var_90]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() xorps xmm0, xmm0 movaps [rsp+0C8h+var_B8], xmm0 mov [rsp+0C8h+var_A8], 0 jmp short loc_1FF7F loc_1FF24: lea rsi, _ZN7testingL29kReservedTestSuitesAttributesE; testing::kReservedTestSuitesAttributes lea rdx, _ZN7testingL28kReservedTestSuiteAttributesE; testing::kReservedTestSuiteAttributes lea rdi, [rsp+0C8h+var_B8] lea rcx, [rsp+0C8h+var_90] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2IPKPKcvEET_SD_RKS6_; std::vector<std::string>::vector<char const* const*,void>(char const* const*,char const* const*,std::allocator<std::string> const&) jmp short loc_1FF7F loc_1FF43: lea rsi, _ZN7testingL28kReservedTestSuiteAttributesE; testing::kReservedTestSuiteAttributes lea rdx, _ZN7testingL27kReservedTestCaseAttributesE; testing::kReservedTestCaseAttributes lea rdi, [rsp+0C8h+var_B8] lea rcx, [rsp+0C8h+var_90] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2IPKPKcvEET_SD_RKS6_; std::vector<std::string>::vector<char const* const*,void>(char const* const*,char const* const*,std::allocator<std::string> const&) jmp short loc_1FF7F loc_1FF62: lea rsi, _ZN7testingL27kReservedTestCaseAttributesE; testing::kReservedTestCaseAttributes lea rdx, _ZN7testingL33kReservedOutputTestCaseAttributesE; testing::kReservedOutputTestCaseAttributes lea rdi, [rsp+0C8h+var_B8] lea rcx, [rsp+0C8h+var_90] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2IPKPKcvEET_SD_RKS6_; std::vector<std::string>::vector<char const* const*,void>(char const* const*,char const* const*,std::allocator<std::string> const&) loc_1FF7F: mov rdi, qword ptr [rsp+0C8h+var_B8] mov rsi, qword ptr [rsp+0C8h+var_B8+8] lea rdx, [rsp+0C8h+var_50] call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIS8_EEET_SH_SH_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__ops::_Iter_equals_val<std::string const>>(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__ops::_Iter_equals_val<std::string const>,std::random_access_iterator_tag) mov rbx, rax mov r14, qword ptr [rsp+0C8h+var_B8+8] cmp rax, r14 jz loc_201C1 lea rdi, [rsp+0C8h+var_70]; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_70] mov [rsp+0C8h+var_98], rax lea r15, [rax+10h] lea rsi, aReservedKeyUse; "Reserved key used in RecordProperty(): " mov edx, 27h ; ''' mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [rsp+0C8h+var_50] mov rdx, [rsp+0C8h+var_48] mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aExpected+9; " (" mov edx, 2 mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov [rsp+0C8h+var_60], r15 mov [rsp+0C8h+var_58], r14 mov [rsp+0C8h+var_68], rbx mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, qword ptr [rsp+0C8h+var_B8+8] sub rax, qword ptr [rsp+0C8h+var_B8] jz loc_200E5 sar rax, 5 mov r12, [rsp+0C8h+var_C8] add r12, 10h mov r14d, 8 xor r15d, r15d lea r13, aMustBeInRange0+15h; ", " lea rbp, aAnd+1; "and " lea rbx, aUnknownTypePar+25h; "'" loc_2004A: test r15, r15 setz cl cmp rax, 3 setb al or al, cl jnz short loc_2006B mov edx, 2 mov rdi, r12 mov rsi, r13 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_2006B: mov rax, qword ptr [rsp+0C8h+var_B8+8] sub rax, qword ptr [rsp+0C8h+var_B8] sar rax, 5 dec rax cmp r15, rax jnz short loc_20091 mov edx, 4 mov rdi, r12 mov rsi, rbp call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_20091: mov edx, 1 mov rdi, r12 mov rsi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rax, qword ptr [rsp+0C8h+var_B8] mov rsi, [rax+r14-8] mov rdx, [rax+r14] mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov edx, 1 mov rdi, r12 mov rsi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rax, qword ptr [rsp+0C8h+var_B8+8] sub rax, qword ptr [rsp+0C8h+var_B8] inc r15 sar rax, 5 add r14, 20h ; ' ' cmp r15, rax jb loc_2004A loc_200E5: mov rbx, [rsp+0C8h+var_C8] lea rdi, [rsp+0C8h+var_90] mov rsi, rbx call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *) test rbx, rbx mov r15, [rsp+0C8h+var_60] jz short loc_20109 mov rax, [rbx] mov rdi, rbx call qword ptr [rax+8] loc_20109: mov rsi, [rsp+0C8h+var_90] mov rdx, [rsp+0C8h+var_88] mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r14, [rsp+0C8h+var_58] lea rsi, aAreReservedBy; " are reserved by " mov edx, 11h mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aGoogleTest; "Google Test" mov edx, 0Bh mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aTeardowntestsu+12h; ")" mov edx, 1 mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea r8, aFailed; "Failed" mov rdi, rsp mov esi, 1 mov ecx, 978h call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) mov rbx, [rsp+0C8h+var_68] mov rdi, rsp lea rsi, [rsp+0C8h+var_70] call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) mov rdi, rsp; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() lea rax, [rsp+0C8h+var_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_201B1 mov rsi, [rsp+0C8h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_201B1: mov rdi, [rsp+0C8h+var_98] test rdi, rdi jz short loc_201C1 mov rax, [rdi] call qword ptr [rax+8] loc_201C1: lea rdi, [rsp+0C8h+var_B8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rax, [rsp+0C8h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_201EC mov rsi, [rsp+0C8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_201EC: cmp rbx, r14 setz al add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, rsp; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() jmp short loc_20238 jmp short loc_20235 jmp short loc_20255 jmp short loc_20230 mov r14, rax lea rdi, [rsp+arg_30]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() jmp short loc_20284 mov r14, rax jmp short loc_20284 mov r14, rax jmp short loc_2027A loc_20230: mov r14, rax jmp short loc_20267 loc_20235: mov r14, rax loc_20238: lea rax, [rsp+arg_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_20267 mov rsi, [rsp+arg_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_20267 loc_20255: mov r14, rax mov rdi, [rsp+0] test rdi, rdi jz short loc_20267 mov rax, [rdi] call qword ptr [rax+8] loc_20267: cmp [rsp+arg_28], 0 jz short loc_2027A mov rdi, [rsp+arg_28] mov rax, [rdi] call qword ptr [rax+8] loc_2027A: lea rdi, [rsp+arg_8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_20284: lea rax, [rsp+arg_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_202A5 mov rsi, [rsp+arg_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_202A5: mov rdi, r14 call __Unwind_Resume
bool testing::TestResult::ValidateTestProperty(long long *a1, _QWORD *a2) { long long v2; // rsi long long v3; // rdx long long v4; // rcx long long v5; // rbx long long v6; // r14 long long v7; // r15 unsigned long long v8; // rax long long v9; // r12 long long v10; // r14 unsigned long long v11; // r15 long long v12; // rbx long long v13; // r15 long long v15; // [rsp+0h] [rbp-C8h] BYREF char v16; // [rsp+Fh] [rbp-B9h] BYREF __int128 v17; // [rsp+10h] [rbp-B8h] BYREF long long v18; // [rsp+20h] [rbp-A8h] long long v19; // [rsp+30h] [rbp-98h] void *v20[2]; // [rsp+38h] [rbp-90h] BYREF long long v21; // [rsp+48h] [rbp-80h] BYREF long long v22; // [rsp+58h] [rbp-70h] BYREF long long v23; // [rsp+60h] [rbp-68h] long long v24; // [rsp+68h] [rbp-60h] long long v25; // [rsp+70h] [rbp-58h] void *v26[2]; // [rsp+78h] [rbp-50h] BYREF long long v27; // [rsp+88h] [rbp-40h] BYREF std::string::basic_string(v26, *a2, &v16); if ( !(unsigned int)std::string::compare(a1, "testsuites") ) { std::vector<std::string>::vector<char const* const*,void>( &v17, testing::kReservedTestSuitesAttributes, testing::kReservedTestSuiteAttributes, v20); } else if ( !(unsigned int)std::string::compare(a1, "testsuite") ) { std::vector<std::string>::vector<char const* const*,void>( &v17, testing::kReservedTestSuiteAttributes, &testing::kReservedTestCaseAttributes, v20); } else if ( !(unsigned int)std::string::compare(a1, "testcase") ) { std::vector<std::string>::vector<char const* const*,void>( &v17, &testing::kReservedTestCaseAttributes, &testing::kReservedOutputTestCaseAttributes, v20); } else { testing::internal::GTestLog::GTestLog( v20, 3, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc", 2380); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Condition false failed. ", 24LL); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Unrecognized xml_element provided: ", 35LL); v2 = *a1; std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, *a1, a1[1]); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v20, v2, v3, v4); v17 = 0LL; v18 = 0LL; } v5 = std::__find_if<__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__ops::_Iter_equals_val<std::string const>>( v17, *((_QWORD *)&v17 + 1), v26); v6 = *((_QWORD *)&v17 + 1); if ( v5 != *((_QWORD *)&v17 + 1) ) { testing::Message::Message((testing::Message *)&v22); v19 = v22; v7 = v22 + 16; std::__ostream_insert<char,std::char_traits<char>>(v22 + 16, "Reserved key used in RecordProperty(): ", 39LL); std::__ostream_insert<char,std::char_traits<char>>(v7, v26[0], v26[1]); std::__ostream_insert<char,std::char_traits<char>>(v7, " (", 2LL); v24 = v7; v25 = v6; v23 = v5; testing::Message::Message((testing::Message *)&v15); if ( *((_QWORD *)&v17 + 1) != (_QWORD)v17 ) { v8 = (long long)(*((_QWORD *)&v17 + 1) - v17) >> 5; v9 = v15 + 16; v10 = 8LL; v11 = 0LL; do { if ( v11 != 0 && v8 >= 3 ) std::__ostream_insert<char,std::char_traits<char>>(v9, ", ", 2LL); if ( v11 == ((long long)(*((_QWORD *)&v17 + 1) - v17) >> 5) - 1 ) std::__ostream_insert<char,std::char_traits<char>>(v9, "and ", 4LL); std::__ostream_insert<char,std::char_traits<char>>(v9, "'", 1LL); std::__ostream_insert<char,std::char_traits<char>>(v9, *(_QWORD *)(v17 + v10 - 8), *(_QWORD *)(v17 + v10)); std::__ostream_insert<char,std::char_traits<char>>(v9, "'", 1LL); ++v11; v8 = (long long)(*((_QWORD *)&v17 + 1) - v17) >> 5; v10 += 32LL; } while ( v11 < v8 ); } v12 = v15; testing::internal::StringStreamToString((long long)v20, v15); v13 = v24; if ( v12 ) (*(void ( **)(long long))(*(_QWORD *)v12 + 8LL))(v12); std::__ostream_insert<char,std::char_traits<char>>(v13, v20[0], v20[1]); v6 = v25; std::__ostream_insert<char,std::char_traits<char>>(v13, " are reserved by ", 17LL); std::__ostream_insert<char,std::char_traits<char>>(v13, "Google Test", 11LL); std::__ostream_insert<char,std::char_traits<char>>(v13, ")", 1LL); testing::internal::AssertHelper::AssertHelper( &v15, 1, (long long)"/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc", 2424, (long long)"Failed"); v5 = v23; testing::internal::AssertHelper::operator=((testing::UnitTest *)&v15, (int)&v22); testing::internal::AssertHelper::~AssertHelper((testing::internal::AssertHelper *)&v15); if ( v20[0] != &v21 ) operator delete(v20[0], v21 + 1); if ( v19 ) (*(void ( **)(long long))(*(_QWORD *)v19 + 8LL))(v19); } std::vector<std::string>::~vector(&v17); if ( v26[0] != &v27 ) operator delete(v26[0], v27 + 1); return v5 == v6; }
ValidateTestProperty: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV RBX,RDI MOV RSI,qword ptr [RSI] LEA RDI,[RSP + 0x78] LEA RDX,[RSP + 0xf] CALL 0x001081e0 LEA RSI,[0x1435b7] MOV RDI,RBX CALL 0x00108160 TEST EAX,EAX JZ 0x0011ff24 LEA RSI,[0x143495] MOV RDI,RBX CALL 0x00108160 TEST EAX,EAX JZ 0x0011ff43 LEA RSI,[0x1434ea] MOV RDI,RBX CALL 0x00108160 TEST EAX,EAX JZ 0x0011ff62 LAB_0011fea9: LEA RDX,[0x14270d] LEA RDI,[RSP + 0x38] MOV ESI,0x3 MOV ECX,0x94c CALL 0x00116e72 LAB_0011fec4: MOV RDI,qword ptr [0x00158fe8] LEA RSI,[0x1440fb] MOV EDX,0x18 CALL 0x001085b0 MOV RDI,qword ptr [0x00158fe8] LEA RSI,[0x144114] MOV EDX,0x23 CALL 0x001085b0 MOV RSI,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x8] MOV RDI,qword ptr [0x00158fe8] CALL 0x001085b0 LEA RDI,[RSP + 0x38] CALL 0x00116fb4 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOV qword ptr [RSP + 0x20],0x0 JMP 0x0011ff7f LAB_0011ff24: LEA RSI,[0x1586a0] LEA RDX,[0x1586e0] LEA RDI,[RSP + 0x10] LEA RCX,[RSP + 0x38] CALL 0x001376c0 JMP 0x0011ff7f LAB_0011ff43: LEA RSI,[0x1586e0] LEA RDX,[0x158720] LEA RDI,[RSP + 0x10] LEA RCX,[RSP + 0x38] CALL 0x001376c0 JMP 0x0011ff7f LAB_0011ff62: LEA RSI,[0x158720] LEA RDX,[0x158760] LEA RDI,[RSP + 0x10] LEA RCX,[RSP + 0x38] CALL 0x001376c0 LAB_0011ff7f: MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x18] LAB_0011ff89: LEA RDX,[RSP + 0x78] CALL 0x0013b4aa MOV RBX,RAX MOV R14,qword ptr [RSP + 0x18] CMP RAX,R14 JZ 0x001201c1 LEA RDI,[RSP + 0x58] CALL 0x0011cd64 MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x30],RAX LEA R15,[RAX + 0x10] LAB_0011ffbc: LEA RSI,[0x1440c1] MOV EDX,0x27 MOV RDI,R15 CALL 0x001085b0 MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] MOV RDI,R15 CALL 0x001085b0 LEA RSI,[0x1405d2] MOV EDX,0x2 MOV RDI,R15 CALL 0x001085b0 LAB_0011fff9: MOV qword ptr [RSP + 0x68],R15 MOV qword ptr [RSP + 0x70],R14 MOV qword ptr [RSP + 0x60],RBX MOV RDI,RSP CALL 0x0011cd64 MOV RAX,qword ptr [RSP + 0x18] SUB RAX,qword ptr [RSP + 0x10] JZ 0x001200e5 SAR RAX,0x5 MOV R12,qword ptr [RSP] ADD R12,0x10 MOV R14D,0x8 XOR R15D,R15D LEA R13,[0x144834] LEA RBP,[0x142baf] LEA RBX,[0x1428cd] LAB_0012004a: TEST R15,R15 SETZ CL CMP RAX,0x3 SETC AL OR AL,CL JNZ 0x0012006b LAB_0012005b: MOV EDX,0x2 MOV RDI,R12 MOV RSI,R13 CALL 0x001085b0 LAB_0012006b: MOV RAX,qword ptr [RSP + 0x18] SUB RAX,qword ptr [RSP + 0x10] SAR RAX,0x5 DEC RAX CMP R15,RAX JNZ 0x00120091 MOV EDX,0x4 MOV RDI,R12 MOV RSI,RBP CALL 0x001085b0 LAB_00120091: MOV EDX,0x1 MOV RDI,R12 MOV RSI,RBX CALL 0x001085b0 MOV RAX,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX + R14*0x1 + -0x8] MOV RDX,qword ptr [RAX + R14*0x1] MOV RDI,R12 CALL 0x001085b0 MOV EDX,0x1 MOV RDI,R12 MOV RSI,RBX CALL 0x001085b0 MOV RAX,qword ptr [RSP + 0x18] SUB RAX,qword ptr [RSP + 0x10] INC R15 SAR RAX,0x5 ADD R14,0x20 CMP R15,RAX JC 0x0012004a LAB_001200e5: MOV RBX,qword ptr [RSP] LAB_001200e9: LEA RDI,[RSP + 0x38] MOV RSI,RBX CALL 0x0011cfc7 LAB_001200f6: TEST RBX,RBX MOV R15,qword ptr [RSP + 0x68] JZ 0x00120109 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX + 0x8] LAB_00120109: MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] LAB_00120113: MOV RDI,R15 CALL 0x001085b0 MOV R14,qword ptr [RSP + 0x70] LEA RSI,[0x1440e9] MOV EDX,0x11 MOV RDI,R15 CALL 0x001085b0 LEA RSI,[0x1431c2] MOV EDX,0xb MOV RDI,R15 CALL 0x001085b0 LEA RSI,[0x14311d] MOV EDX,0x1 MOV RDI,R15 CALL 0x001085b0 LAB_0012015c: LEA RDX,[0x14270d] LEA R8,[0x142e2e] MOV RDI,RSP MOV ESI,0x1 MOV ECX,0x978 CALL 0x00118f74 MOV RBX,qword ptr [RSP + 0x60] LAB_00120181: MOV RDI,RSP LEA RSI,[RSP + 0x58] CALL 0x00116886 LAB_0012018e: MOV RDI,RSP CALL 0x00118fe0 LEA RAX,[RSP + 0x48] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001201b1 MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x001084e0 LAB_001201b1: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x001201c1 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001201c1: LEA RDI,[RSP + 0x10] CALL 0x0013244c LEA RAX,[RSP + 0x88] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001201ec MOV RSI,qword ptr [RSP + 0x88] INC RSI CALL 0x001084e0 LAB_001201ec: CMP RBX,R14 SETZ AL ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* testing::TestResult::ValidateTestProperty(std::__cxx11::string const&, testing::TestProperty const&) */ bool testing::TestResult::ValidateTestProperty(string *param_1,TestProperty *param_2) { int iVar1; long lVar2; ulong uVar3; ostream *poVar4; long lVar5; ulong uVar6; long *local_c8; allocator local_b9; char *local_b8; long lStack_b0; int8 local_a8; long *local_98; long *local_90; long local_88; long local_80 [2]; long *local_70; long local_68; ostream *local_60; long local_58; long *local_50; long local_48; long local_40 [2]; std::__cxx11::string::string((string *)&local_50,*(char **)param_2,&local_b9); iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 == 0) { /* try { // try from 0011ff24 to 0011ff7e has its CatchHandler @ 00120226 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: vector<char_const*const*,void> (&local_b8,(char **)kReservedTestSuitesAttributes, (allocator *)kReservedTestSuiteAttributes); } else { iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 == 0) { std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: vector<char_const*const*,void> (&local_b8,(char **)kReservedTestSuiteAttributes, (allocator *)kReservedTestCaseAttributes); } else { iVar1 = std::__cxx11::string::compare((char *)param_1); if (iVar1 == 0) { std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: vector<char_const*const*,void> (&local_b8,(char **)kReservedTestCaseAttributes, (allocator *)kReservedOutputTestCaseAttributes); } else { /* try { // try from 0011fea9 to 0011fec3 has its CatchHandler @ 00120226 */ internal::GTestLog::GTestLog ((GTestLog *)&local_90,3, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc" ,0x94c); /* try { // try from 0011fec4 to 0011ff06 has its CatchHandler @ 00120217 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00158fe8,"Condition false failed. ",0x18); std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00158fe8,"Unrecognized xml_element provided: ",0x23); std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00158fe8,*(char **)param_1,*(long *)(param_1 + 8)); internal::GTestLog::~GTestLog((GTestLog *)&local_90); local_b8 = (char *)0x0; lStack_b0 = 0; local_a8 = 0; } } } /* try { // try from 0011ff89 to 0011ffad has its CatchHandler @ 0012022b */ lVar2 = std:: __find_if<__gnu_cxx::__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>,__gnu_cxx::__ops::_Iter_equals_val<std::__cxx11::string_const>> (local_b8,lStack_b0,&local_50); lVar5 = lStack_b0; if (lVar2 != lStack_b0) { Message::Message((Message *)&local_70); local_98 = local_70; poVar4 = (ostream *)(local_70 + 2); /* try { // try from 0011ffbc to 0011fff8 has its CatchHandler @ 00120230 */ std::__ostream_insert<char,std::char_traits<char>> (poVar4,"Reserved key used in RecordProperty(): ",0x27); std::__ostream_insert<char,std::char_traits<char>>(poVar4,(char *)local_50,local_48); std::__ostream_insert<char,std::char_traits<char>>(poVar4," (",2); /* try { // try from 0011fff9 to 0012000f has its CatchHandler @ 00120215 */ local_58 = lVar5; local_68 = lVar2; local_60 = poVar4; Message::Message((Message *)&local_c8); if (lStack_b0 - (long)local_b8 != 0) { uVar3 = lStack_b0 - (long)local_b8 >> 5; poVar4 = (ostream *)(local_c8 + 2); lVar5 = 8; uVar6 = 0; do { if (2 < uVar3 && uVar6 != 0) { /* try { // try from 0012005b to 001200c6 has its CatchHandler @ 00120255 */ std::__ostream_insert<char,std::char_traits<char>>(poVar4,", ",2); } if (uVar6 == (lStack_b0 - (long)local_b8 >> 5) - 1U) { std::__ostream_insert<char,std::char_traits<char>>(poVar4,"and ",4); } std::__ostream_insert<char,std::char_traits<char>>(poVar4,"\'",1); std::__ostream_insert<char,std::char_traits<char>> (poVar4,*(char **)(local_b8 + lVar5 + -8),*(long *)(local_b8 + lVar5)); std::__ostream_insert<char,std::char_traits<char>>(poVar4,"\'",1); uVar6 = uVar6 + 1; uVar3 = lStack_b0 - (long)local_b8 >> 5; lVar5 = lVar5 + 0x20; } while (uVar6 < uVar3); } /* try { // try from 001200e9 to 001200f5 has its CatchHandler @ 00120213 */ internal::StringStreamToString((stringstream *)&local_90); poVar4 = local_60; if (local_c8 != (long *)0x0) { (**(code **)(*local_c8 + 8))(local_c8); } /* try { // try from 00120113 to 0012015b has its CatchHandler @ 00120235 */ std::__ostream_insert<char,std::char_traits<char>>(poVar4,(char *)local_90,local_88); lVar5 = local_58; std::__ostream_insert<char,std::char_traits<char>>(poVar4," are reserved by ",0x11); std::__ostream_insert<char,std::char_traits<char>>(poVar4,"Google Test",0xb); std::__ostream_insert<char,std::char_traits<char>>(poVar4,")",1); /* try { // try from 0012015c to 0012017b has its CatchHandler @ 00120211 */ internal::AssertHelper::AssertHelper ((AssertHelper *)&local_c8,1, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc" ,0x978,"Failed"); lVar2 = local_68; /* try { // try from 00120181 to 0012018d has its CatchHandler @ 00120204 */ internal::AssertHelper::operator=((AssertHelper *)&local_c8,(Message *)&local_70); internal::AssertHelper::~AssertHelper((AssertHelper *)&local_c8); if (local_90 != local_80) { operator_delete(local_90,local_80[0] + 1); } if (local_98 != (long *)0x0) { (**(code **)(*local_98 + 8))(); } } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_b8); if (local_50 != local_40) { operator_delete(local_50,local_40[0] + 1); } return lVar2 == lVar5; }
2,186
ggml_aligned_malloc
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
void * ggml_aligned_malloc(size_t size) { const int alignment = 64; #if defined(_MSC_VER) || defined(__MINGW32__) return _aligned_malloc(size, alignment); #else if (size == 0) { GGML_LOG_WARN("Behavior may be unexpected when allocating 0 bytes for ggml_aligned_malloc!\n"); return NULL; } void * aligned_memory = NULL; #ifdef GGML_USE_CPU_HBM int result = hbw_posix_memalign(&aligned_memory, alignment, size); #elif TARGET_OS_OSX GGML_UNUSED(alignment); kern_return_t alloc_status = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t *) &aligned_memory, size, VM_FLAGS_ANYWHERE); int result = EFAULT; switch (alloc_status) { case KERN_SUCCESS: result = 0; break; case KERN_INVALID_ADDRESS: result = EINVAL; break; case KERN_NO_SPACE: result = ENOMEM; break; default: result = EFAULT; break; } #else int result = posix_memalign(&aligned_memory, alignment, size); #endif if (result != 0) { // Handle allocation failure const char *error_desc = "unknown allocation error"; switch (result) { case EINVAL: error_desc = "invalid alignment value"; break; case ENOMEM: error_desc = "insufficient memory"; break; } GGML_LOG_ERROR("%s: %s (attempted to allocate %6.2f MB)\n", __func__, error_desc, size/(1024.0*1024.0)); return NULL; } return aligned_memory; #endif }
O1
c
ggml_aligned_malloc: pushq %rbx subq $0x10, %rsp testq %rdi, %rdi je 0x1ac76 movq %rdi, %rbx leaq 0x8(%rsp), %rdi movq $0x0, (%rdi) movl $0x40, %esi movq %rbx, %rdx callq 0x17830 testl %eax, %eax je 0x1ac96 cmpl $0xc, %eax je 0x1ac8d cmpl $0x16, %eax jne 0x1ac9d leaq 0x317ea(%rip), %rcx # 0x4c45e jmp 0x1aca4 leaq 0x3177b(%rip), %rsi # 0x4c3f8 xorl %ebx, %ebx movl $0x3, %edi xorl %eax, %eax callq 0x17810 jmp 0x1ace9 leaq 0x317e2(%rip), %rcx # 0x4c476 jmp 0x1aca4 movq 0x8(%rsp), %rbx jmp 0x1ace9 leaq 0x317a1(%rip), %rcx # 0x4c445 movq %rbx, %xmm1 punpckldq 0x3134f(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0x31357(%rip), %xmm1 # 0x4c010 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 mulsd 0x31363(%rip), %xmm0 # 0x4c030 leaq 0x317b6(%rip), %rsi # 0x4c48a leaq 0x317d8(%rip), %rdx # 0x4c4b3 movl $0x4, %edi movb $0x1, %al callq 0x17810 xorl %ebx, %ebx movq %rbx, %rax addq $0x10, %rsp popq %rbx retq
ggml_aligned_malloc: push rbx sub rsp, 10h test rdi, rdi jz short loc_1AC76 mov rbx, rdi lea rdi, [rsp+18h+var_10] mov qword ptr [rdi], 0 mov esi, 40h ; '@' mov rdx, rbx call _posix_memalign test eax, eax jz short loc_1AC96 cmp eax, 0Ch jz short loc_1AC8D cmp eax, 16h jnz short loc_1AC9D lea rcx, aInvalidAlignme; "invalid alignment value" jmp short loc_1ACA4 loc_1AC76: lea rsi, aBehaviorMayBeU; "Behavior may be unexpected when allocat"... xor ebx, ebx mov edi, 3 xor eax, eax call _ggml_log_internal jmp short loc_1ACE9 loc_1AC8D: lea rcx, aInsufficientMe; "insufficient memory" jmp short loc_1ACA4 loc_1AC96: mov rbx, [rsp+18h+var_10] jmp short loc_1ACE9 loc_1AC9D: lea rcx, aUnknownAllocat; "unknown allocation error" loc_1ACA4: movq xmm1, rbx punpckldq xmm1, cs:xmmword_4C000 subpd xmm1, cs:xmmword_4C010 movapd xmm0, xmm1 unpckhpd xmm0, xmm1 addsd xmm0, xmm1 mulsd xmm0, cs:qword_4C030 lea rsi, aSSAttemptedToA; "%s: %s (attempted to allocate %6.2f MB)"... lea rdx, aGgmlAlignedMal_0; "ggml_aligned_malloc" mov edi, 4 mov al, 1 call _ggml_log_internal xor ebx, ebx loc_1ACE9: mov rax, rbx add rsp, 10h pop rbx retn
long long ggml_aligned_malloc( unsigned long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long a13, long long a14) { int v14; // eax long long v15; // r8 long long v16; // r9 __m128 v17; // xmm4 __m128 v18; // xmm5 const char *v19; // rcx long long v20; // rbx __m128 v21; // xmm1 __m128 v22; // xmm0 long long v24; // [rsp+8h] [rbp-10h] BYREF if ( a1 ) { v24 = 0LL; v14 = posix_memalign(&v24, 64LL, a1); if ( v14 ) { if ( v14 == 12 ) { v19 = "insufficient memory"; } else if ( v14 == 22 ) { v19 = "invalid alignment value"; } else { v19 = "unknown allocation error"; } v21 = (__m128)_mm_sub_pd((__m128d)_mm_unpacklo_epi32((__m128i)a1, (__m128i)xmmword_4C000), (__m128d)xmmword_4C010); v22 = (__m128)_mm_unpackhi_pd((__m128d)v21, (__m128d)v21); *(double *)v22.m128_u64 = (*(double *)v22.m128_u64 + *(double *)v21.m128_u64) * 0.00000095367431640625; ggml_log_internal( 4u, (long long)"%s: %s (attempted to allocate %6.2f MB)\n", (long long)"ggml_aligned_malloc", (long long)v19, v15, v16, v22, v21, a4, a5, v17, v18, a8, a9); return 0LL; } else { return v24; } } else { v20 = 0LL; ggml_log_internal( 3u, (long long)"Behavior may be unexpected when allocating 0 bytes for ggml_aligned_malloc!\n", a11, a12, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9); } return v20; }
ggml_aligned_malloc: PUSH RBX SUB RSP,0x10 TEST RDI,RDI JZ 0x0011ac76 MOV RBX,RDI LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],0x0 MOV ESI,0x40 MOV RDX,RBX CALL 0x00117830 TEST EAX,EAX JZ 0x0011ac96 CMP EAX,0xc JZ 0x0011ac8d CMP EAX,0x16 JNZ 0x0011ac9d LEA RCX,[0x14c45e] JMP 0x0011aca4 LAB_0011ac76: LEA RSI,[0x14c3f8] XOR EBX,EBX MOV EDI,0x3 XOR EAX,EAX CALL 0x00117810 JMP 0x0011ace9 LAB_0011ac8d: LEA RCX,[0x14c476] JMP 0x0011aca4 LAB_0011ac96: MOV RBX,qword ptr [RSP + 0x8] JMP 0x0011ace9 LAB_0011ac9d: LEA RCX,[0x14c445] LAB_0011aca4: MOVQ XMM1,RBX PUNPCKLDQ XMM1,xmmword ptr [0x0014c000] SUBPD XMM1,xmmword ptr [0x0014c010] MOVAPD XMM0,XMM1 UNPCKHPD XMM0,XMM1 ADDSD XMM0,XMM1 MULSD XMM0,qword ptr [0x0014c030] LEA RSI,[0x14c48a] LEA RDX,[0x14c4b3] MOV EDI,0x4 MOV AL,0x1 CALL 0x00117810 XOR EBX,EBX LAB_0011ace9: MOV RAX,RBX ADD RSP,0x10 POP RBX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void * ggml_aligned_malloc(size_t param_1) { int iVar1; char *pcVar2; int1 auVar3 [16]; void *local_10; if (param_1 == 0) { ggml_log_internal(3, "Behavior may be unexpected when allocating 0 bytes for ggml_aligned_malloc!\n" ); local_10 = (void *)0x0; } else { local_10 = (void *)0x0; iVar1 = posix_memalign(&local_10,0x40,param_1); if (iVar1 != 0) { if (iVar1 == 0xc) { pcVar2 = "insufficient memory"; } else if (iVar1 == 0x16) { pcVar2 = "invalid alignment value"; } else { pcVar2 = "unknown allocation error"; } auVar3._8_4_ = (int)(param_1 >> 0x20); auVar3._0_8_ = param_1; auVar3._12_4_ = DAT_0014c000._4_4_; ggml_log_internal(((auVar3._8_8_ - _UNK_0014c018) + ((double)CONCAT44((int4)DAT_0014c000,(int)param_1) - _DAT_0014c010)) * _DAT_0014c030,4,"%s: %s (attempted to allocate %6.2f MB)\n", "ggml_aligned_malloc",pcVar2); local_10 = (void *)0x0; } } return local_10; }
2,187
serial_cpp::PortNotOpenedException::~PortNotOpenedException()
ami-iit[P]serial_cpp/include/serial_cpp/serial.h
virtual ~PortNotOpenedException() throw() {}
O1
c
serial_cpp::PortNotOpenedException::~PortNotOpenedException(): pushq %rbx movq %rdi, %rbx leaq 0x776b(%rip), %rax # 0xfd78 movq %rax, (%rdi) movq 0x8(%rdi), %rdi leaq 0x18(%rbx), %rax cmpq %rax, %rdi je 0x8628 movq (%rax), %rsi incq %rsi callq 0x32c0 movq %rbx, %rdi popq %rbx jmp 0x3530 nop
_ZN10serial_cpp22PortNotOpenedExceptionD2Ev: push rbx mov rbx, rdi lea rax, off_FD78 mov [rdi], rax mov rdi, [rdi+8]; void * lea rax, [rbx+18h] cmp rdi, rax jz short loc_8628 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8628: mov rdi, rbx; this pop rbx jmp __ZNSt9exceptionD2Ev; std::exception::~exception()
void serial_cpp::PortNotOpenedException::~PortNotOpenedException(std::exception *a1) { _QWORD *v2; // rdi *(_QWORD *)a1 = off_FD78; v2 = (_QWORD *)*((_QWORD *)a1 + 1); if ( v2 != (_QWORD *)((char *)a1 + 24) ) operator delete(v2, *((_QWORD *)a1 + 3) + 1LL); std::exception::~exception(a1); }
~PortNotOpenedException: PUSH RBX MOV RBX,RDI LEA RAX,[0x10fd78] MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x8] LEA RAX,[RBX + 0x18] CMP RDI,RAX JZ 0x00108628 MOV RSI,qword ptr [RAX] INC RSI CALL 0x001032c0 LAB_00108628: MOV RDI,RBX POP RBX JMP 0x00103530
/* serial_cpp::PortNotOpenedException::~PortNotOpenedException() */ void __thiscall serial_cpp::PortNotOpenedException::~PortNotOpenedException(PortNotOpenedException *this) { *(int ***)this = &PTR__PortNotOpenedException_0010fd78; if (*(PortNotOpenedException **)(this + 8) != this + 0x18) { operator_delete(*(PortNotOpenedException **)(this + 8),*(long *)(this + 0x18) + 1); } std::exception::~exception((exception *)this); return; }
2,188
serial_cpp::PortNotOpenedException::~PortNotOpenedException()
ami-iit[P]serial_cpp/include/serial_cpp/serial.h
virtual ~PortNotOpenedException() throw() {}
O3
c
serial_cpp::PortNotOpenedException::~PortNotOpenedException(): pushq %rbx movq %rdi, %rbx leaq 0x77b9(%rip), %rax # 0xfd78 movq %rax, (%rdi) movq 0x8(%rdi), %rdi leaq 0x18(%rbx), %rax cmpq %rax, %rdi je 0x85da movq (%rax), %rsi incq %rsi callq 0x32c0 movq %rbx, %rdi popq %rbx jmp 0x3530 nop
_ZN10serial_cpp22PortNotOpenedExceptionD2Ev: push rbx mov rbx, rdi lea rax, off_FD78 mov [rdi], rax mov rdi, [rdi+8]; void * lea rax, [rbx+18h] cmp rdi, rax jz short loc_85DA mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_85DA: mov rdi, rbx; this pop rbx jmp __ZNSt9exceptionD2Ev; std::exception::~exception()
void serial_cpp::PortNotOpenedException::~PortNotOpenedException(std::exception *a1) { _QWORD *v2; // rdi *(_QWORD *)a1 = off_FD78; v2 = (_QWORD *)*((_QWORD *)a1 + 1); if ( v2 != (_QWORD *)((char *)a1 + 24) ) operator delete(v2, *((_QWORD *)a1 + 3) + 1LL); std::exception::~exception(a1); }
~PortNotOpenedException: PUSH RBX MOV RBX,RDI LEA RAX,[0x10fd78] MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x8] LEA RAX,[RBX + 0x18] CMP RDI,RAX JZ 0x001085da MOV RSI,qword ptr [RAX] INC RSI CALL 0x001032c0 LAB_001085da: MOV RDI,RBX POP RBX JMP 0x00103530
/* serial_cpp::PortNotOpenedException::~PortNotOpenedException() */ void __thiscall serial_cpp::PortNotOpenedException::~PortNotOpenedException(PortNotOpenedException *this) { *(int ***)this = &PTR__PortNotOpenedException_0010fd78; if (*(PortNotOpenedException **)(this + 8) != this + 0x18) { operator_delete(*(PortNotOpenedException **)(this + 8),*(long *)(this + 0x18) + 1); } std::exception::~exception((exception *)this); return; }
2,189
my_hash_delete
eloqsql/mysys/hash.c
my_bool my_hash_delete(HASH *hash, uchar *record) { uint pos2,idx,empty_index; my_hash_value_type pos_hashnr, lastpos_hashnr; size_t blength; HASH_LINK *data,*lastpos,*gpos,*pos,*pos3,*empty; DBUG_ENTER("my_hash_delete"); if (!hash->records) DBUG_RETURN(1); blength=hash->blength; data=dynamic_element(&hash->array,0,HASH_LINK*); /* Search after record with key */ pos= data + my_hash_mask(rec_hashnr(hash, record), blength, hash->records); gpos = 0; while (pos->data != record) { gpos=pos; if (pos->next == NO_RECORD) DBUG_RETURN(1); /* Key not found */ pos=data+pos->next; } if ( --(hash->records) < hash->blength >> 1) hash->blength>>=1; lastpos=data+hash->records; /* Remove link to record */ empty=pos; empty_index=(uint) (empty-data); if (gpos) gpos->next=pos->next; /* unlink current ptr */ else if (pos->next != NO_RECORD) { empty=data+(empty_index=pos->next); pos[0]= empty[0]; } if (empty == lastpos) /* last key at wrong pos or no next link */ goto exit; /* Move the last key (lastpos) */ lastpos_hashnr= lastpos->hash_nr; /* pos is where lastpos should be */ pos= data + my_hash_mask(lastpos_hashnr, hash->blength, hash->records); if (pos == empty) /* Move to empty position. */ { empty[0]=lastpos[0]; goto exit; } pos_hashnr= pos->hash_nr; /* pos3 is where the pos should be */ pos3= data + my_hash_mask(pos_hashnr, hash->blength, hash->records); if (pos != pos3) { /* pos is on wrong posit */ empty[0]=pos[0]; /* Save it here */ pos[0]=lastpos[0]; /* This should be here */ movelink(data,(uint) (pos-data),(uint) (pos3-data),empty_index); goto exit; } pos2= my_hash_mask(lastpos_hashnr, blength, hash->records + 1); if (pos2 == my_hash_mask(pos_hashnr, blength, hash->records + 1)) { /* Identical key-positions */ if (pos2 != hash->records) { empty[0]=lastpos[0]; movelink(data,(uint) (lastpos-data),(uint) (pos-data),empty_index); goto exit; } idx= (uint) (pos-data); /* Link pos->next after lastpos */ } else idx= NO_RECORD; /* Different positions merge */ empty[0]=lastpos[0]; movelink(data,idx,empty_index,pos->next); pos->next=empty_index; exit: (void) pop_dynamic(&hash->array); if (hash->free) (*hash->free)((uchar*) record); DBUG_RETURN(0); }
O3
c
my_hash_delete: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movb $0x1, %r15b cmpq $0x0, 0x18(%rdi) je 0x9538a movq %rsi, %rbx movq %rdi, %r14 movq 0x10(%rdi), %rax movq %rax, -0x38(%rbp) movq 0x28(%rdi), %r13 movq 0x50(%rdi), %rax testq %rax, %rax je 0x9518b leaq -0x58(%rbp), %r12 movq %rbx, %rdi movq %r12, %rsi xorl %edx, %edx callq *%rax movq %rax, %rsi movq (%r12), %rdx jmp 0x95199 movq 0x8(%r14), %rdx movq %rdx, -0x58(%rbp) movq (%r14), %rsi addq %rbx, %rsi movl $0xffffffff, %r12d # imm = 0xFFFFFFFF movq 0x68(%r14), %rdi callq *0x58(%r14) movq 0x18(%r14), %rcx movq -0x38(%rbp), %r9 leaq (%r9,%r12), %r10 movl %r10d, %edx andl %eax, %edx shrq %r9 decl %r9d andl %r9d, %eax cmpq %rcx, %rdx cmovbl %edx, %eax movq %rax, %rdx shlq $0x4, %rdx leaq (%rdx,%r13), %rsi cmpq %rbx, 0x8(%r13,%rdx) je 0x951fb movl (%rsi), %eax cmpq %r12, %rax je 0x9538a movq %rsi, %rdx movq %rax, %rdi shlq $0x4, %rdi leaq (%rdi,%r13), %rsi cmpq %rbx, 0x8(%r13,%rdi) jne 0x951d9 jmp 0x951fd xorl %edx, %edx decq %rcx movq %rcx, 0x18(%r14) movq 0x10(%r14), %rdi shrq %rdi cmpq %rdi, %rcx jae 0x95214 movq %rdi, 0x10(%r14) movq %rcx, %r8 shlq $0x4, %r8 addq %r13, %r8 movl (%rsi), %edi testq %rdx, %rdx je 0x95229 movl %edi, (%rdx) jmp 0x95244 cmpl $-0x1, %edi je 0x95244 movq %rdi, %rax shlq $0x4, %rax movups (%r13,%rax), %xmm0 movups %xmm0, (%rsi) leaq (%rax,%r13), %rsi movl %edi, %eax leaq 0x28(%r14), %rdi cmpq %r8, %rsi je 0x95374 movq %r10, -0x50(%rbp) movq %r9, -0x38(%rbp) movl 0x4(%r8), %r11d movq 0x10(%r14), %r9 movq 0x18(%r14), %r15 addq %r9, %r12 movl %r12d, %edx andl %r11d, %edx shrq %r9 decl %r9d movl %r9d, %r10d andl %r11d, %r10d cmpq %r15, %rdx cmovbl %edx, %r10d movq %r10, %rdx shlq $0x4, %rdx addq %r13, %rdx cmpq %rsi, %rdx je 0x9531d movq %rdi, -0x30(%rbp) movl 0x4(%rdx), %edi andl %edi, %r12d andl %edi, %r9d cmpq %r15, %r12 cmovbl %r12d, %r9d cmpl %r9d, %r10d jne 0x95326 movq %r15, -0x48(%rbp) leaq 0x1(%r15), %r9 movq %r9, -0x40(%rbp) movq -0x50(%rbp), %r9 movl %r9d, %r12d andl %r11d, %r12d movq -0x38(%rbp), %r15 andl %r15d, %r11d cmpq -0x40(%rbp), %r12 cmovbl %r12d, %r11d andl %edi, %r9d andl %r15d, %edi cmpq -0x40(%rbp), %r9 cmovbl %r9d, %edi movl $0xffffffff, %r9d # imm = 0xFFFFFFFF cmpl %edi, %r11d jne 0x952f7 movl %r11d, %edi cmpq %rdi, -0x48(%rbp) jne 0x95351 movl %r10d, %r9d movups (%r8), %xmm0 movups %xmm0, (%rsi) movl (%rdx), %ecx movl %eax, %edi movl %edi, %esi shlq $0x4, %rsi movl (%r13,%rsi), %edi cmpl %r9d, %edi jne 0x95302 addq %rsi, %r13 movl %ecx, (%r13) movl %eax, (%rdx) jmp 0x95370 movups (%r8), %xmm0 movups %xmm0, (%rsi) jmp 0x95374 movups (%rdx), %xmm0 movups %xmm0, (%rsi) movups (%r8), %xmm0 movups %xmm0, (%rdx) movq -0x30(%rbp), %rdi movl %r9d, %ecx shlq $0x4, %rcx movl (%r13,%rcx), %r9d cmpl %r10d, %r9d jne 0x95337 addq %rcx, %r13 movl %eax, (%r13) jmp 0x95374 movups (%r8), %xmm0 movups %xmm0, (%rsi) movl %r10d, %edx shlq $0x4, %rdx movl (%r13,%rdx), %r10d cmpl %ecx, %r10d jne 0x95358 addq %rdx, %r13 movl %eax, (%r13) movq -0x30(%rbp), %rdi callq 0x92be7 movq 0x60(%r14), %rax testq %rax, %rax je 0x95387 movq %rbx, %rdi callq *%rax xorl %r15d, %r15d movl %r15d, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_hash_delete: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r15b, 1 cmp qword ptr [rdi+18h], 0 jz loc_9538A mov rbx, rsi mov r14, rdi mov rax, [rdi+10h] mov [rbp+var_38], rax mov r13, [rdi+28h] mov rax, [rdi+50h] test rax, rax jz short loc_9518B lea r12, [rbp+var_58] mov rdi, rbx mov rsi, r12 xor edx, edx call rax mov rsi, rax mov rdx, [r12] jmp short loc_95199 loc_9518B: mov rdx, [r14+8] mov [rbp+var_58], rdx mov rsi, [r14] add rsi, rbx loc_95199: mov r12d, 0FFFFFFFFh mov rdi, [r14+68h] call qword ptr [r14+58h] mov rcx, [r14+18h] mov r9, [rbp+var_38] lea r10, [r9+r12] mov edx, r10d and edx, eax shr r9, 1 dec r9d and eax, r9d cmp rdx, rcx cmovb eax, edx mov rdx, rax shl rdx, 4 lea rsi, [rdx+r13] cmp [r13+rdx+8], rbx jz short loc_951FB loc_951D9: mov eax, [rsi] cmp rax, r12 jz loc_9538A mov rdx, rsi mov rdi, rax shl rdi, 4 lea rsi, [rdi+r13] cmp [r13+rdi+8], rbx jnz short loc_951D9 jmp short loc_951FD loc_951FB: xor edx, edx loc_951FD: dec rcx mov [r14+18h], rcx mov rdi, [r14+10h] shr rdi, 1 cmp rcx, rdi jnb short loc_95214 mov [r14+10h], rdi loc_95214: mov r8, rcx shl r8, 4 add r8, r13 mov edi, [rsi] test rdx, rdx jz short loc_95229 mov [rdx], edi jmp short loc_95244 loc_95229: cmp edi, 0FFFFFFFFh jz short loc_95244 mov rax, rdi shl rax, 4 movups xmm0, xmmword ptr [r13+rax+0] movups xmmword ptr [rsi], xmm0 lea rsi, [rax+r13] mov eax, edi loc_95244: lea rdi, [r14+28h] cmp rsi, r8 jz loc_95374 mov [rbp+var_50], r10 mov [rbp+var_38], r9 mov r11d, [r8+4] mov r9, [r14+10h] mov r15, [r14+18h] add r12, r9 mov edx, r12d and edx, r11d shr r9, 1 dec r9d mov r10d, r9d and r10d, r11d cmp rdx, r15 cmovb r10d, edx mov rdx, r10 shl rdx, 4 add rdx, r13 cmp rdx, rsi jz loc_9531D mov [rbp+var_30], rdi mov edi, [rdx+4] and r12d, edi and r9d, edi cmp r12, r15 cmovb r9d, r12d cmp r10d, r9d jnz short loc_95326 mov [rbp+var_48], r15 lea r9, [r15+1] mov [rbp+var_40], r9 mov r9, [rbp+var_50] mov r12d, r9d and r12d, r11d mov r15, [rbp+var_38] and r11d, r15d cmp r12, [rbp+var_40] cmovb r11d, r12d and r9d, edi and edi, r15d cmp r9, [rbp+var_40] cmovb edi, r9d mov r9d, 0FFFFFFFFh cmp r11d, edi jnz short loc_952F7 mov edi, r11d cmp [rbp+var_48], rdi jnz short loc_95351 mov r9d, r10d loc_952F7: movups xmm0, xmmword ptr [r8] movups xmmword ptr [rsi], xmm0 mov ecx, [rdx] mov edi, eax loc_95302: mov esi, edi shl rsi, 4 mov edi, [r13+rsi+0] cmp edi, r9d jnz short loc_95302 add r13, rsi mov [r13+0], ecx mov [rdx], eax jmp short loc_95370 loc_9531D: movups xmm0, xmmword ptr [r8] movups xmmword ptr [rsi], xmm0 jmp short loc_95374 loc_95326: movups xmm0, xmmword ptr [rdx] movups xmmword ptr [rsi], xmm0 movups xmm0, xmmword ptr [r8] movups xmmword ptr [rdx], xmm0 mov rdi, [rbp+var_30] loc_95337: mov ecx, r9d shl rcx, 4 mov r9d, [r13+rcx+0] cmp r9d, r10d jnz short loc_95337 add r13, rcx mov [r13+0], eax jmp short loc_95374 loc_95351: movups xmm0, xmmword ptr [r8] movups xmmword ptr [rsi], xmm0 loc_95358: mov edx, r10d shl rdx, 4 mov r10d, [r13+rdx+0] cmp r10d, ecx jnz short loc_95358 add r13, rdx mov [r13+0], eax loc_95370: mov rdi, [rbp+var_30] loc_95374: call pop_dynamic mov rax, [r14+60h] test rax, rax jz short loc_95387 mov rdi, rbx call rax loc_95387: xor r15d, r15d loc_9538A: mov eax, r15d add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_hash_delete(long long a1, long long a2) { unsigned int v2; // r15d long long v5; // r13 long long ( *v6)(long long, long long *, _QWORD); // rax long long v7; // rsi long long v8; // rdx int v9; // eax unsigned long long v10; // rcx unsigned long long v11; // r10 unsigned long long v12; // rdx unsigned long long v13; // r9 long long v14; // rax unsigned int *v15; // rsi unsigned int *v16; // rdx unsigned long long v17; // rcx unsigned long long v18; // rdi unsigned int *v19; // r8 long long v20; // rdi long long v21; // rdi unsigned int v22; // r11d unsigned long long v23; // r9 unsigned long long v24; // r15 int v25; // r12d unsigned long long v26; // rdx int v27; // r9d long long v28; // r10 unsigned int *v29; // rdx unsigned int v30; // edi unsigned long long v31; // r12 unsigned int v32; // r9d unsigned long long v33; // r12 int v34; // r11d unsigned long long v35; // r9 int v36; // edi int v37; // r9d unsigned int v38; // edi long long v39; // rsi long long v40; // rcx long long v41; // rdx void ( *v42)(long long); // rax long long v44; // [rsp+8h] [rbp-58h] BYREF unsigned long long v45; // [rsp+10h] [rbp-50h] unsigned long long v46; // [rsp+18h] [rbp-48h] unsigned long long v47; // [rsp+20h] [rbp-40h] unsigned long long v48; // [rsp+28h] [rbp-38h] long long v49; // [rsp+30h] [rbp-30h] LOBYTE(v2) = 1; if ( !*(_QWORD *)(a1 + 24) ) return v2; v48 = *(_QWORD *)(a1 + 16); v5 = *(_QWORD *)(a1 + 40); v6 = *(long long ( **)(long long, long long *, _QWORD))(a1 + 80); if ( v6 ) { v7 = v6(a2, &v44, 0LL); v8 = v44; } else { v8 = *(_QWORD *)(a1 + 8); v44 = v8; v7 = a2 + *(_QWORD *)a1; } v9 = (*(long long ( **)(_QWORD, long long, long long))(a1 + 88))(*(_QWORD *)(a1 + 104), v7, v8); v10 = *(_QWORD *)(a1 + 24); v11 = v48 + 0xFFFFFFFF; v12 = v9 & (unsigned int)(v48 - 1); v13 = (unsigned int)(v48 >> 1) - 1; v14 = (unsigned int)v13 & v9; if ( v12 < v10 ) v14 = (unsigned int)v12; v15 = (unsigned int *)(16 * v14 + v5); if ( *((_QWORD *)v15 + 1) == a2 ) { v16 = 0LL; LABEL_12: v17 = v10 - 1; *(_QWORD *)(a1 + 24) = v17; v18 = *(_QWORD *)(a1 + 16) >> 1; if ( v17 < v18 ) *(_QWORD *)(a1 + 16) = v18; v19 = (unsigned int *)(v5 + 16 * v17); v20 = *v15; if ( v16 ) { *v16 = v20; } else if ( (_DWORD)v20 != -1 ) { *(_OWORD *)v15 = *(_OWORD *)(v5 + 16 * v20); v15 = (unsigned int *)(16 * v20 + v5); LODWORD(v14) = v20; } v21 = a1 + 40; if ( v15 == v19 ) goto LABEL_43; v45 = v11; v48 = v13; v22 = v19[1]; v23 = *(_QWORD *)(a1 + 16); v24 = *(_QWORD *)(a1 + 24); v25 = v23 - 1; v26 = v22 & ((_DWORD)v23 - 1); v27 = (v23 >> 1) - 1; v28 = v22 & v27; if ( v26 < v24 ) v28 = (unsigned int)v26; v29 = (unsigned int *)(v5 + 16 * v28); if ( v29 == v15 ) { *(_OWORD *)v15 = *(_OWORD *)v19; LABEL_43: pop_dynamic(v21); v42 = *(void ( **)(long long))(a1 + 96); if ( v42 ) v42(a2); return 0; } v49 = a1 + 40; v30 = v29[1]; v31 = v30 & v25; v32 = v30 & v27; if ( v31 < v24 ) v32 = v31; if ( (_DWORD)v28 != v32 ) { *(_OWORD *)v15 = *(_OWORD *)v29; *(_OWORD *)v29 = *(_OWORD *)v19; v21 = v49; do { v40 = 16LL * v32; v32 = *(_DWORD *)(v5 + v40); } while ( v32 != (_DWORD)v28 ); *(_DWORD *)(v40 + v5) = v14; goto LABEL_43; } v46 = v24; v47 = v24 + 1; v33 = v22 & (unsigned int)v45; v34 = v48 & v22; if ( v33 < v24 + 1 ) v34 = v33; v35 = v30 & (unsigned int)v45; v36 = v48 & v30; if ( v35 < v47 ) v36 = v35; v37 = -1; if ( v34 == v36 ) { if ( v46 != v34 ) { *(_OWORD *)v15 = *(_OWORD *)v19; do { v41 = 16LL * (unsigned int)v28; LODWORD(v28) = *(_DWORD *)(v5 + v41); } while ( (_DWORD)v28 != (_DWORD)v17 ); *(_DWORD *)(v41 + v5) = v14; goto LABEL_42; } v37 = v28; } *(_OWORD *)v15 = *(_OWORD *)v19; v38 = v14; do { v39 = 16LL * v38; v38 = *(_DWORD *)(v5 + v39); } while ( v38 != v37 ); *(_DWORD *)(v39 + v5) = *v29; *v29 = v14; LABEL_42: v21 = v49; goto LABEL_43; } while ( 1 ) { v14 = *v15; if ( v14 == 0xFFFFFFFFLL ) return v2; v16 = v15; v15 = (unsigned int *)(16 * v14 + v5); if ( *((_QWORD *)v15 + 1) == a2 ) goto LABEL_12; } }
my_hash_delete: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R15B,0x1 CMP qword ptr [RDI + 0x18],0x0 JZ 0x0019538a MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr [RDI + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV R13,qword ptr [RDI + 0x28] MOV RAX,qword ptr [RDI + 0x50] TEST RAX,RAX JZ 0x0019518b LEA R12,[RBP + -0x58] MOV RDI,RBX MOV RSI,R12 XOR EDX,EDX CALL RAX MOV RSI,RAX MOV RDX,qword ptr [R12] JMP 0x00195199 LAB_0019518b: MOV RDX,qword ptr [R14 + 0x8] MOV qword ptr [RBP + -0x58],RDX MOV RSI,qword ptr [R14] ADD RSI,RBX LAB_00195199: MOV R12D,0xffffffff MOV RDI,qword ptr [R14 + 0x68] CALL qword ptr [R14 + 0x58] MOV RCX,qword ptr [R14 + 0x18] MOV R9,qword ptr [RBP + -0x38] LEA R10,[R9 + R12*0x1] MOV EDX,R10D AND EDX,EAX SHR R9,0x1 DEC R9D AND EAX,R9D CMP RDX,RCX CMOVC EAX,EDX MOV RDX,RAX SHL RDX,0x4 LEA RSI,[RDX + R13*0x1] CMP qword ptr [R13 + RDX*0x1 + 0x8],RBX JZ 0x001951fb LAB_001951d9: MOV EAX,dword ptr [RSI] CMP RAX,R12 JZ 0x0019538a MOV RDX,RSI MOV RDI,RAX SHL RDI,0x4 LEA RSI,[RDI + R13*0x1] CMP qword ptr [R13 + RDI*0x1 + 0x8],RBX JNZ 0x001951d9 JMP 0x001951fd LAB_001951fb: XOR EDX,EDX LAB_001951fd: DEC RCX MOV qword ptr [R14 + 0x18],RCX MOV RDI,qword ptr [R14 + 0x10] SHR RDI,0x1 CMP RCX,RDI JNC 0x00195214 MOV qword ptr [R14 + 0x10],RDI LAB_00195214: MOV R8,RCX SHL R8,0x4 ADD R8,R13 MOV EDI,dword ptr [RSI] TEST RDX,RDX JZ 0x00195229 MOV dword ptr [RDX],EDI JMP 0x00195244 LAB_00195229: CMP EDI,-0x1 JZ 0x00195244 MOV RAX,RDI SHL RAX,0x4 MOVUPS XMM0,xmmword ptr [R13 + RAX*0x1] MOVUPS xmmword ptr [RSI],XMM0 LEA RSI,[RAX + R13*0x1] MOV EAX,EDI LAB_00195244: LEA RDI,[R14 + 0x28] CMP RSI,R8 JZ 0x00195374 MOV qword ptr [RBP + -0x50],R10 MOV qword ptr [RBP + -0x38],R9 MOV R11D,dword ptr [R8 + 0x4] MOV R9,qword ptr [R14 + 0x10] MOV R15,qword ptr [R14 + 0x18] ADD R12,R9 MOV EDX,R12D AND EDX,R11D SHR R9,0x1 DEC R9D MOV R10D,R9D AND R10D,R11D CMP RDX,R15 CMOVC R10D,EDX MOV RDX,R10 SHL RDX,0x4 ADD RDX,R13 CMP RDX,RSI JZ 0x0019531d MOV qword ptr [RBP + -0x30],RDI MOV EDI,dword ptr [RDX + 0x4] AND R12D,EDI AND R9D,EDI CMP R12,R15 CMOVC R9D,R12D CMP R10D,R9D JNZ 0x00195326 MOV qword ptr [RBP + -0x48],R15 LEA R9,[R15 + 0x1] MOV qword ptr [RBP + -0x40],R9 MOV R9,qword ptr [RBP + -0x50] MOV R12D,R9D AND R12D,R11D MOV R15,qword ptr [RBP + -0x38] AND R11D,R15D CMP R12,qword ptr [RBP + -0x40] CMOVC R11D,R12D AND R9D,EDI AND EDI,R15D CMP R9,qword ptr [RBP + -0x40] CMOVC EDI,R9D MOV R9D,0xffffffff CMP R11D,EDI JNZ 0x001952f7 MOV EDI,R11D CMP qword ptr [RBP + -0x48],RDI JNZ 0x00195351 MOV R9D,R10D LAB_001952f7: MOVUPS XMM0,xmmword ptr [R8] MOVUPS xmmword ptr [RSI],XMM0 MOV ECX,dword ptr [RDX] MOV EDI,EAX LAB_00195302: MOV ESI,EDI SHL RSI,0x4 MOV EDI,dword ptr [R13 + RSI*0x1] CMP EDI,R9D JNZ 0x00195302 ADD R13,RSI MOV dword ptr [R13],ECX MOV dword ptr [RDX],EAX JMP 0x00195370 LAB_0019531d: MOVUPS XMM0,xmmword ptr [R8] MOVUPS xmmword ptr [RSI],XMM0 JMP 0x00195374 LAB_00195326: MOVUPS XMM0,xmmword ptr [RDX] MOVUPS xmmword ptr [RSI],XMM0 MOVUPS XMM0,xmmword ptr [R8] MOVUPS xmmword ptr [RDX],XMM0 MOV RDI,qword ptr [RBP + -0x30] LAB_00195337: MOV ECX,R9D SHL RCX,0x4 MOV R9D,dword ptr [R13 + RCX*0x1] CMP R9D,R10D JNZ 0x00195337 ADD R13,RCX MOV dword ptr [R13],EAX JMP 0x00195374 LAB_00195351: MOVUPS XMM0,xmmword ptr [R8] MOVUPS xmmword ptr [RSI],XMM0 LAB_00195358: MOV EDX,R10D SHL RDX,0x4 MOV R10D,dword ptr [R13 + RDX*0x1] CMP R10D,ECX JNZ 0x00195358 ADD R13,RDX MOV dword ptr [R13],EAX LAB_00195370: MOV RDI,qword ptr [RBP + -0x30] LAB_00195374: CALL 0x00192be7 MOV RAX,qword ptr [R14 + 0x60] TEST RAX,RAX JZ 0x00195387 MOV RDI,RBX CALL RAX LAB_00195387: XOR R15D,R15D LAB_0019538a: MOV EAX,R15D ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
ulong my_hash_delete(long *param_1,long param_2) { long *plVar1; long lVar2; uint uVar3; int8 uVar4; uint uVar5; uint uVar6; long lVar7; ulong uVar8; ulong uVar9; uint uVar10; uint uVar11; uint *puVar12; uint *puVar13; uint *puVar14; uint uVar15; uint uVar16; ulong uVar18; uint uVar19; ulong uVar20; int8 unaff_R15; long local_60; long local_58; ulong local_50; ulong local_48; ulong local_40; long *local_38; ulong uVar17; uVar9 = CONCAT71((int7)((ulong)unaff_R15 >> 8),1); if (param_1[3] != 0) { local_40 = param_1[2]; lVar2 = param_1[5]; if ((code *)param_1[10] == (code *)0x0) { local_60 = param_1[1]; lVar7 = *param_1 + param_2; } else { lVar7 = (*(code *)param_1[10])(param_2,&local_60,0); } uVar5 = (*(code *)param_1[0xb])(param_1[0xd],lVar7,local_60); lVar7 = local_40 + 0xffffffff; uVar10 = (uint)lVar7; uVar15 = (int)(local_40 >> 1) - 1; uVar17 = (ulong)uVar15; uVar8 = (ulong)(uVar5 & uVar15); if ((ulong)(uVar10 & uVar5) < (ulong)param_1[3]) { uVar8 = (ulong)(uVar10 & uVar5); } puVar13 = (uint *)(uVar8 * 0x10 + lVar2); if (*(long *)(lVar2 + 8 + uVar8 * 0x10) == param_2) { puVar12 = (uint *)0x0; } else { do { puVar12 = puVar13; uVar8 = (ulong)*puVar12; if (uVar8 == 0xffffffff) goto LAB_0019538a; puVar13 = (uint *)(uVar8 * 0x10 + lVar2); } while (*(long *)(lVar2 + 8 + uVar8 * 0x10) != param_2); } uVar9 = param_1[3] - 1; param_1[3] = uVar9; if (uVar9 < (ulong)param_1[2] >> 1) { param_1[2] = (ulong)param_1[2] >> 1; } puVar14 = (uint *)(uVar9 * 0x10 + lVar2); uVar5 = *puVar13; uVar6 = (uint)uVar8; if (puVar12 == (uint *)0x0) { if (uVar5 != 0xffffffff) { puVar12 = (uint *)(lVar2 + (ulong)uVar5 * 0x10); uVar6 = puVar12[1]; uVar3 = puVar12[2]; uVar11 = puVar12[3]; *puVar13 = *puVar12; puVar13[1] = uVar6; puVar13[2] = uVar3; puVar13[3] = uVar11; puVar13 = (uint *)((ulong)uVar5 * 0x10 + lVar2); uVar6 = uVar5; } } else { *puVar12 = uVar5; } plVar1 = param_1 + 5; if (puVar13 != puVar14) { uVar5 = puVar14[1]; uVar8 = param_1[3]; uVar19 = (int)param_1[2] - 1; uVar11 = uVar19 & uVar5; uVar16 = (int)((ulong)param_1[2] >> 1) - 1; uVar3 = uVar16 & uVar5; if (uVar11 < uVar8) { uVar3 = uVar11; } uVar18 = (ulong)uVar3; puVar12 = (uint *)(uVar18 * 0x10 + lVar2); local_58 = lVar7; local_40 = uVar17; if (puVar12 == puVar13) { uVar5 = puVar14[1]; uVar10 = puVar14[2]; uVar15 = puVar14[3]; *puVar13 = *puVar14; puVar13[1] = uVar5; puVar13[2] = uVar10; puVar13[3] = uVar15; } else { uVar11 = puVar12[1]; uVar20 = (ulong)(uVar19 & uVar11); uVar17 = (ulong)(uVar16 & uVar11); if (uVar20 < uVar8) { uVar17 = uVar20; } local_38 = plVar1; if (uVar3 == (uint)uVar17) { local_48 = uVar8 + 1; uVar16 = uVar5 & uVar15; if ((uVar10 & uVar5) < local_48) { uVar16 = uVar10 & uVar5; } uVar5 = uVar11 & uVar15; if ((uVar10 & uVar11) < local_48) { uVar5 = uVar10 & uVar11; } uVar10 = 0xffffffff; local_50 = uVar8; if ((uVar16 == uVar5) && (uVar10 = uVar3, uVar8 != uVar16)) { uVar5 = puVar14[1]; uVar10 = puVar14[2]; uVar15 = puVar14[3]; *puVar13 = *puVar14; puVar13[1] = uVar5; puVar13[2] = uVar10; puVar13[3] = uVar15; do { lVar7 = uVar18 * 0x10; uVar5 = *(uint *)(lVar2 + lVar7); uVar18 = (ulong)uVar5; } while (uVar5 != (uint)uVar9); *(uint *)(lVar2 + lVar7) = uVar6; } else { uVar5 = puVar14[1]; uVar15 = puVar14[2]; uVar3 = puVar14[3]; *puVar13 = *puVar14; puVar13[1] = uVar5; puVar13[2] = uVar15; puVar13[3] = uVar3; uVar5 = uVar6; do { uVar9 = (ulong)uVar5; uVar5 = *(uint *)(lVar2 + uVar9 * 0x10); } while (uVar5 != uVar10); *(uint *)(lVar2 + uVar9 * 0x10) = *puVar12; *puVar12 = uVar6; } } else { uVar4 = *(int8 *)(puVar12 + 2); *(int8 *)puVar13 = *(int8 *)puVar12; *(int8 *)(puVar13 + 2) = uVar4; uVar5 = puVar14[1]; uVar10 = puVar14[2]; uVar15 = puVar14[3]; *puVar12 = *puVar14; puVar12[1] = uVar5; puVar12[2] = uVar10; puVar12[3] = uVar15; do { lVar7 = uVar17 * 0x10; uVar5 = *(uint *)(lVar2 + lVar7); uVar17 = (ulong)uVar5; } while (uVar5 != uVar3); *(uint *)(lVar2 + lVar7) = uVar6; } } } pop_dynamic(plVar1); if ((code *)param_1[0xc] != (code *)0x0) { (*(code *)param_1[0xc])(param_2); } uVar9 = 0; } LAB_0019538a: return uVar9 & 0xffffffff; }
2,190
unlink_block
eloqsql/mysys/mf_keycache.c
static void unlink_block(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block) { DBUG_ASSERT((block->status & ~BLOCK_CHANGED) == (BLOCK_READ | BLOCK_IN_USE)); DBUG_ASSERT(block->hash_link); /*backptr to block NULL from free_block()*/ DBUG_ASSERT(!block->requests); DBUG_ASSERT(block->prev_changed && *block->prev_changed == block); DBUG_ASSERT(block->next_used && block->prev_used && (block->next_used->prev_used == &block->next_used) && (*block->prev_used == block)); if (block->next_used == block) /* The list contains only one member */ keycache->used_last= keycache->used_ins= NULL; else { block->next_used->prev_used= block->prev_used; *block->prev_used= block->next_used; if (keycache->used_last == block) keycache->used_last= STRUCT_PTR(BLOCK_LINK, next_used, block->prev_used); if (keycache->used_ins == block) keycache->used_ins=STRUCT_PTR(BLOCK_LINK, next_used, block->prev_used); } block->next_used= NULL; #ifdef DBUG_ASSERT_EXISTS /* This makes it easier to see it's not in a chain during debugging. And some DBUG_ASSERT() rely on it. */ block->prev_used= NULL; #endif KEYCACHE_THREAD_TRACE("unlink_block"); #if defined(KEYCACHE_DEBUG) KEYCACHE_DBUG_ASSERT(keycache->blocks_available != 0); keycache->blocks_available--; KEYCACHE_DBUG_PRINT("unlink_block", ("unlinked block %u status=%x #requests=%u #available=%u", BLOCK_NUMBER(block), block->status, block->requests, keycache->blocks_available)); #endif }
O3
c
unlink_block: movq (%rsi), %rax cmpq %rsi, %rax je 0x9c549 pushq %rbp movq %rsp, %rbp movq 0x8(%rsi), %rcx movq %rcx, 0x8(%rax) movq (%rsi), %rax movq %rax, (%rcx) cmpq %rsi, 0xb0(%rdi) jne 0x9c532 movq 0x8(%rsi), %rax movq %rax, 0xb0(%rdi) cmpq %rsi, 0xb8(%rdi) jne 0x9c546 movq 0x8(%rsi), %rax movq %rax, 0xb8(%rdi) popq %rbp jmp 0x9c553 xorps %xmm0, %xmm0 movups %xmm0, 0xb0(%rdi) movq $0x0, (%rsi) retq
unlink_block_0: mov rax, [rsi] cmp rax, rsi jz short loc_9C549 push rbp mov rbp, rsp mov rcx, [rsi+8] mov [rax+8], rcx mov rax, [rsi] mov [rcx], rax cmp [rdi+0B0h], rsi jnz short loc_9C532 mov rax, [rsi+8] mov [rdi+0B0h], rax loc_9C532: cmp [rdi+0B8h], rsi jnz short loc_9C546 mov rax, [rsi+8] mov [rdi+0B8h], rax loc_9C546: pop rbp jmp short loc_9C553 loc_9C549: xorps xmm0, xmm0 movups xmmword ptr [rdi+0B0h], xmm0 loc_9C553: mov qword ptr [rsi], 0 retn
_QWORD * unlink_block_0(long long a1, _QWORD *a2) { _QWORD *result; // rax _QWORD *v3; // rcx result = (_QWORD *)*a2; if ( (_QWORD *)*a2 == a2 ) { *(_OWORD *)(a1 + 176) = 0LL; } else { v3 = (_QWORD *)a2[1]; result[1] = v3; result = (_QWORD *)*a2; *v3 = *a2; if ( *(_QWORD **)(a1 + 176) == a2 ) { result = (_QWORD *)a2[1]; *(_QWORD *)(a1 + 176) = result; } if ( *(_QWORD **)(a1 + 184) == a2 ) { result = (_QWORD *)a2[1]; *(_QWORD *)(a1 + 184) = result; } } *a2 = 0LL; return result; }
unlink_block: MOV RAX,qword ptr [RSI] CMP RAX,RSI JZ 0x0019c549 PUSH RBP MOV RBP,RSP MOV RCX,qword ptr [RSI + 0x8] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RSI] MOV qword ptr [RCX],RAX CMP qword ptr [RDI + 0xb0],RSI JNZ 0x0019c532 MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0xb0],RAX LAB_0019c532: CMP qword ptr [RDI + 0xb8],RSI JNZ 0x0019c546 MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0xb8],RAX LAB_0019c546: POP RBP JMP 0x0019c553 LAB_0019c549: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0xb0],XMM0 LAB_0019c553: MOV qword ptr [RSI],0x0 RET
void unlink_block(long param_1,int8 *param_2) { int8 *puVar1; if ((int8 *)*param_2 == param_2) { *(int8 *)(param_1 + 0xb0) = 0; *(int8 *)(param_1 + 0xb8) = 0; } else { puVar1 = (int8 *)param_2[1]; ((int8 *)*param_2)[1] = puVar1; *puVar1 = *param_2; if (*(int8 **)(param_1 + 0xb0) == param_2) { *(int8 *)(param_1 + 0xb0) = param_2[1]; } if (*(int8 **)(param_1 + 0xb8) == param_2) { *(int8 *)(param_1 + 0xb8) = param_2[1]; } } *param_2 = 0; return; }
2,191
AST::Node::addChild(AST::Node*)
11AgReS1SoR11[P]Graph/Common/AST/src/Node.hpp
void addChild(Node* child) { if (child == nullptr) { throw std::runtime_error("Add child, but nullptr, bug!?"); } childNodes.push_back(child); }
O0
cpp
AST::Node::addChild(AST::Node*): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) cmpq $0x0, -0x10(%rbp) jne 0x3c5ff movl $0x10, %edi callq 0x2c3d0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x30(%rbp) leaq 0xdeb2d(%rip), %rsi # 0x11b0f7 callq 0x2c2b0 jmp 0x3c5d1 movq -0x30(%rbp), %rdi movq 0x15da14(%rip), %rsi # 0x199ff0 movq 0x15d975(%rip), %rdx # 0x199f58 callq 0x2cda0 movq -0x30(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x18(%rbp) movl %eax, -0x1c(%rbp) callq 0x2c5e0 jmp 0x3c616 movq -0x28(%rbp), %rdi addq $0x20, %rdi leaq -0x10(%rbp), %rsi callq 0x46ea0 addq $0x30, %rsp popq %rbp retq movq -0x18(%rbp), %rdi callq 0x2ce30 nop
_ZN3AST4Node8addChildEPS0_: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_28], rax cmp [rbp+var_10], 0 jnz short loc_3C5FF mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rbp+var_30], rax lea rsi, aAddChildButNul; "Add child, but nullptr, bug!?" call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short $+2 loc_3C5D1: mov rdi, [rbp+var_30]; void * mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw mov rdi, [rbp+var_30]; void * mov rcx, rax mov eax, edx mov [rbp+var_18], rcx mov [rbp+var_1C], eax call ___cxa_free_exception jmp short loc_3C616 loc_3C5FF: mov rdi, [rbp+var_28] add rdi, 20h ; ' ' lea rsi, [rbp+var_10] call _ZNSt6vectorIPN3AST4NodeESaIS2_EE9push_backERKS2_; std::vector<AST::Node *>::push_back(AST::Node * const&) add rsp, 30h pop rbp retn loc_3C616: mov rdi, [rbp+var_18] call __Unwind_Resume
long long AST::Node::addChild(AST::Node *this, AST::Node *a2) { std::runtime_error *exception; // [rsp+0h] [rbp-30h] _QWORD v4[2]; // [rsp+20h] [rbp-10h] BYREF v4[1] = this; v4[0] = a2; if ( !a2 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Add child, but nullptr, bug!?"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return std::vector<AST::Node *>::push_back((char *)this + 32, v4); }
addChild: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x10],0x0 JNZ 0x0013c5ff MOV EDI,0x10 CALL 0x0012c3d0 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RBP + -0x30],RAX LAB_0013c5c3: LEA RSI,[0x21b0f7] CALL 0x0012c2b0 LAB_0013c5cf: JMP 0x0013c5d1 LAB_0013c5d1: MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [0x00299ff0] MOV RDX,qword ptr [0x00299f58] CALL 0x0012cda0 LAB_0013c5ff: MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x20 LEA RSI,[RBP + -0x10] CALL 0x00146ea0 ADD RSP,0x30 POP RBP RET
/* AST::Node::addChild(AST::Node*) */ void __thiscall AST::Node::addChild(Node *this,Node *param_1) { runtime_error *this_00; Node *local_18; Node *local_10; local_18 = param_1; local_10 = this; if (param_1 == (Node *)0x0) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0013c5c3 to 0013c5ce has its CatchHandler @ 0013c5e8 */ std::runtime_error::runtime_error(this_00,"Add child, but nullptr, bug!?"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00299ff0,PTR__runtime_error_00299f58); } std::vector<AST::Node*,std::allocator<AST::Node*>>::push_back ((vector<AST::Node*,std::allocator<AST::Node*>> *)(this + 0x20),&local_18); return; }
2,192
AST::Node::addChild(AST::Node*)
11AgReS1SoR11[P]Graph/Common/AST/src/Node.hpp
void addChild(Node* child) { if (child == nullptr) { throw std::runtime_error("Add child, but nullptr, bug!?"); } childNodes.push_back(child); }
O1
cpp
AST::Node::addChild(AST::Node*): pushq %r14 pushq %rbx pushq %rax movq %rsi, (%rsp) testq %rsi, %rsi je 0x227b4 movq 0x28(%rdi), %rax cmpq 0x30(%rdi), %rax je 0x2279d movq %rsi, (%rax) addq $0x8, 0x28(%rdi) jmp 0x227ac addq $0x20, %rdi movq %rsp, %rdx movq %rax, %rsi callq 0x24f72 addq $0x8, %rsp popq %rbx popq %r14 retq movl $0x10, %edi callq 0x14220 movq %rax, %rbx leaq 0x5096b(%rip), %rsi # 0x73133 movq %rax, %rdi callq 0x141a0 movq 0x7f811(%rip), %rsi # 0xa1fe8 movq 0x7f772(%rip), %rdx # 0xa1f50 movq %rbx, %rdi callq 0x14900 movq %rax, %r14 movq %rbx, %rdi callq 0x143c0 movq %r14, %rdi callq 0x14960 nop
_ZN3AST4Node8addChildEPS0_: push r14 push rbx push rax mov [rsp+18h+var_18], rsi test rsi, rsi jz short loc_227B4 mov rax, [rdi+28h] cmp rax, [rdi+30h] jz short loc_2279D mov [rax], rsi add qword ptr [rdi+28h], 8 jmp short loc_227AC loc_2279D: add rdi, 20h ; ' ' mov rdx, rsp mov rsi, rax call _ZNSt6vectorIPN3AST4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_; std::vector<AST::Node *>::_M_realloc_insert<AST::Node * const&>(__gnu_cxx::__normal_iterator<AST::Node **,std::vector<AST::Node *>>,AST::Node * const&) loc_227AC: add rsp, 8 pop rbx pop r14 retn loc_227B4: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aAddChildButNul; "Add child, but nullptr, bug!?" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception mov rdi, r14 call __Unwind_Resume
_QWORD * AST::Node::addChild(AST::Node *this, AST::Node *a2) { _QWORD *result; // rax std::runtime_error *exception; // rbx AST::Node *v4; // [rsp+0h] [rbp-18h] BYREF v4 = a2; if ( !a2 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Add child, but nullptr, bug!?"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } result = (_QWORD *)*((_QWORD *)this + 5); if ( result == *((_QWORD **)this + 6) ) return (_QWORD *)std::vector<AST::Node *>::_M_realloc_insert<AST::Node * const&>((char *)this + 32, result, &v4); *result = a2; *((_QWORD *)this + 5) += 8LL; return result; }
addChild: PUSH R14 PUSH RBX PUSH RAX MOV qword ptr [RSP],RSI TEST RSI,RSI JZ 0x001227b4 MOV RAX,qword ptr [RDI + 0x28] CMP RAX,qword ptr [RDI + 0x30] JZ 0x0012279d MOV qword ptr [RAX],RSI ADD qword ptr [RDI + 0x28],0x8 JMP 0x001227ac LAB_0012279d: ADD RDI,0x20 MOV RDX,RSP MOV RSI,RAX CALL 0x00124f72 LAB_001227ac: ADD RSP,0x8 POP RBX POP R14 RET LAB_001227b4: MOV EDI,0x10 CALL 0x00114220 MOV RBX,RAX LAB_001227c1: LEA RSI,[0x173133] MOV RDI,RAX CALL 0x001141a0 LAB_001227d0: MOV RSI,qword ptr [0x001a1fe8] MOV RDX,qword ptr [0x001a1f50] MOV RDI,RBX CALL 0x00114900
/* AST::Node::addChild(AST::Node*) */ void __thiscall AST::Node::addChild(Node *this,Node *param_1) { int8 *puVar1; runtime_error *this_00; Node *local_18; local_18 = param_1; if (param_1 != (Node *)0x0) { puVar1 = *(int8 **)(this + 0x28); if (puVar1 == *(int8 **)(this + 0x30)) { std::vector<AST::Node*,std::allocator<AST::Node*>>::_M_realloc_insert<AST::Node*const&> ((vector<AST::Node*,std::allocator<AST::Node*>> *)(this + 0x20),puVar1,&local_18); } else { *puVar1 = param_1; *(long *)(this + 0x28) = *(long *)(this + 0x28) + 8; } return; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001227c1 to 001227cf has its CatchHandler @ 001227e6 */ std::runtime_error::runtime_error(this_00,"Add child, but nullptr, bug!?"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001a1fe8,PTR__runtime_error_001a1f50); }
2,193
JS_ReadBigInt
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_ReadBigInt(BCReaderState *s) { JSValue obj; uint8_t v8; int32_t e; uint32_t len; limb_t l, i, n; limb_t v; bf_t *a; obj = JS_NewBigInt(s->ctx); if (JS_IsException(obj)) goto fail; /* sign + exponent */ if (bc_get_sleb128(s, &e)) goto fail; a = JS_GetBigInt(obj); a->sign = e & 1; e >>= 1; if (e == 0) a->expn = BF_EXP_ZERO; else if (e == 1) a->expn = BF_EXP_INF; else if (e == 2) a->expn = BF_EXP_NAN; else if (e >= 3) a->expn = e - 3; else a->expn = e; /* mantissa */ if (a->expn != BF_EXP_ZERO && a->expn != BF_EXP_INF && a->expn != BF_EXP_NAN) { if (bc_get_leb128(s, &len)) goto fail; bc_read_trace(s, "len=%" PRId64 "\n", (int64_t)len); if (len == 0) { JS_ThrowRangeError(s->ctx, "maximum BigInt size exceeded"); goto fail; } l = (len + sizeof(limb_t) - 1) / sizeof(limb_t); if (bf_resize(a, l)) { JS_ThrowOutOfMemory(s->ctx); goto fail; } n = len & (sizeof(limb_t) - 1); if (n != 0) { v = 0; for(i = 0; i < n; i++) { if (bc_get_u8(s, &v8)) goto fail; v |= (limb_t)v8 << ((sizeof(limb_t) - n + i) * 8); } a->tab[0] = v; i = 1; } else { i = 0; } for(; i < l; i++) { #if LIMB_BITS == 32 if (bc_get_u32(s, &v)) goto fail; #else if (bc_get_u64(s, &v)) goto fail; #endif a->tab[i] = v; } } return obj; fail: JS_FreeValue(s->ctx, obj); return JS_EXCEPTION; }
O1
c
JS_ReadBigInt: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %r15 movq (%rdi), %rdi callq 0xfe44 movq %rax, %r14 movq %rdx, %rbx cmpl $0x6, %ebx jne 0x113cf movq (%r15), %rax movq 0x18(%rax), %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1ccb2 pushq $0x6 popq %rbx xorl %r14d, %r14d movq %r14, %rax movq %rbx, %rdx addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0xc(%rsp), %rsi movq %r15, %rdi callq 0x111e4 testl %eax, %eax jne 0x113a2 movabsq $0x7ffffffffffffffe, %rax # imm = 0x7FFFFFFFFFFFFFFE movl 0xc(%rsp), %edx movl %edx, %ecx andl $0x1, %ecx movl %ecx, 0x10(%r14) movl %edx, %ecx sarl %ecx movl %ecx, 0xc(%rsp) cmpl $0x2, %edx jae 0x1140a leaq 0x2(%rax), %rdx jmp 0x1142a movq %rax, %rdx cmpl $0x1, %ecx je 0x1142a cmpl $0x2, %ecx jne 0x1141d leaq 0x1(%rax), %rdx jmp 0x1142a jle 0x11427 addl $-0x3, %ecx movq %rcx, %rdx jmp 0x1142a movslq %ecx, %rdx movq %rdx, 0x18(%r14) addq %rdx, %rax addq $0x4, %rax cmpq $0x3, %rax jb 0x113ba leaq 0x1c(%rsp), %rsi movq %r15, %rdi callq 0x44e61 testl %eax, %eax jne 0x113a2 movl 0x1c(%rsp), %ebp testq %rbp, %rbp je 0x11485 movq %r14, %rdi addq $0x8, %rdi leaq 0x7(%rbp), %r12 shrq $0x3, %r12 movq %r12, %rsi callq 0x83e5c testl %eax, %eax je 0x1149b movq (%r15), %rdi callq 0x1bf4f jmp 0x113a2 movq (%r15), %rdi leaq 0x8cd27(%rip), %rsi # 0x9e1b6 xorl %eax, %eax callq 0x1fec9 jmp 0x113a2 movq %r12, 0x20(%rsp) andl $0x7, %ebp je 0x114f6 andq $0x0, 0x10(%rsp) leal (,%rbp,8), %eax pushq $0x40 popq %r13 subq %rax, %r13 xorl %r12d, %r12d movq %r15, %rdi leaq 0xb(%rsp), %rsi callq 0x44e29 testl %eax, %eax jne 0x11539 movzbl 0xb(%rsp), %eax movl %r13d, %ecx shlq %cl, %rax orq %rax, %r12 addq $0x8, %r13 decq %rbp jne 0x114bc movq %r12, 0x10(%rsp) movq 0x28(%r14), %rax movq %r12, (%rax) pushq $0x1 popq %r12 jmp 0x114f9 xorl %r12d, %r12d movq 0x20(%rsp), %rbp cmpl %ebp, %r12d jae 0x113ba leaq 0x10(%rsp), %r13 movq %r15, %rdi movq %r13, %rsi callq 0x4500e testl %eax, %eax jne 0x113a2 movq 0x10(%rsp), %rax movq 0x28(%r14), %rcx movq %rax, (%rcx,%r12,8) incq %r12 cmpq %r12, %rbp jne 0x1150c jmp 0x113ba movq %r12, 0x10(%rsp) jmp 0x113a2
JS_ReadBigInt: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r15, rdi mov rdi, [rdi] call JS_NewBigInt mov r14, rax mov rbx, rdx cmp ebx, 6 jnz short loc_113CF loc_113A2: mov rax, [r15] mov rdi, [rax+18h] mov rsi, r14 mov rdx, rbx call JS_FreeValueRT push 6 pop rbx xor r14d, r14d loc_113BA: mov rax, r14 mov rdx, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_113CF: lea rsi, [rsp+58h+var_4C] mov rdi, r15 call bc_get_sleb128 test eax, eax jnz short loc_113A2 mov rax, 7FFFFFFFFFFFFFFEh mov edx, [rsp+58h+var_4C] mov ecx, edx and ecx, 1 mov [r14+10h], ecx mov ecx, edx sar ecx, 1 mov [rsp+58h+var_4C], ecx cmp edx, 2 jnb short loc_1140A lea rdx, [rax+2] jmp short loc_1142A loc_1140A: mov rdx, rax cmp ecx, 1 jz short loc_1142A cmp ecx, 2 jnz short loc_1141D lea rdx, [rax+1] jmp short loc_1142A loc_1141D: jle short loc_11427 add ecx, 0FFFFFFFDh mov rdx, rcx jmp short loc_1142A loc_11427: movsxd rdx, ecx loc_1142A: mov [r14+18h], rdx add rax, rdx add rax, 4 cmp rax, 3 jb loc_113BA lea rsi, [rsp+58h+var_3C] mov rdi, r15 call bc_get_leb128 test eax, eax jnz loc_113A2 mov ebp, [rsp+58h+var_3C] test rbp, rbp jz short loc_11485 mov rdi, r14 add rdi, 8 lea r12, [rbp+7] shr r12, 3 mov rsi, r12 call bf_resize test eax, eax jz short loc_1149B mov rdi, [r15] call JS_ThrowOutOfMemory jmp loc_113A2 loc_11485: mov rdi, [r15] lea rsi, aMaximumBigintS; "maximum BigInt size exceeded" xor eax, eax call JS_ThrowRangeError jmp loc_113A2 loc_1149B: mov [rsp+58h+var_38], r12 and ebp, 7 jz short loc_114F6 and [rsp+58h+var_48], 0 lea eax, ds:0[rbp*8] push 40h ; '@' pop r13 sub r13, rax xor r12d, r12d loc_114BC: mov rdi, r15 lea rsi, [rsp+58h+var_4D] call bc_get_u8 test eax, eax jnz short loc_11539 movzx eax, [rsp+58h+var_4D] mov ecx, r13d shl rax, cl or r12, rax add r13, 8 dec rbp jnz short loc_114BC mov [rsp+58h+var_48], r12 mov rax, [r14+28h] mov [rax], r12 push 1 pop r12 jmp short loc_114F9 loc_114F6: xor r12d, r12d loc_114F9: mov rbp, [rsp+58h+var_38] cmp r12d, ebp jnb loc_113BA lea r13, [rsp+58h+var_48] loc_1150C: mov rdi, r15 mov rsi, r13 call bc_get_u64 test eax, eax jnz loc_113A2 mov rax, [rsp+58h+var_48] mov rcx, [r14+28h] mov [rcx+r12*8], rax inc r12 cmp rbp, r12 jnz short loc_1150C jmp loc_113BA loc_11539: mov [rsp+58h+var_48], r12 jmp loc_113A2
_DWORD * JS_ReadBigInt(long long *a1) { _DWORD *v1; // r14 int v2; // edx int v4; // edx int v5; // ecx unsigned long long v6; // rdx int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // rbp long long v12; // rbp long long v13; // r13 long long v14; // r12 long long v15; // r12 unsigned long long v16; // rbp unsigned __int8 v17; // [rsp+Bh] [rbp-4Dh] BYREF int v18; // [rsp+Ch] [rbp-4Ch] BYREF long long v19; // [rsp+10h] [rbp-48h] BYREF unsigned int v20; // [rsp+1Ch] [rbp-3Ch] BYREF unsigned long long v21; // [rsp+20h] [rbp-38h] v1 = JS_NewBigInt(*a1); if ( v2 == 6 || (unsigned int)bc_get_sleb128((long long)a1, &v18) ) goto LABEL_2; v4 = v18; v1[4] = v18 & 1; v5 = v4 >> 1; v18 = v4 >> 1; if ( (unsigned int)v4 >= 2 ) { v6 = 0x7FFFFFFFFFFFFFFELL; if ( v5 != 1 ) { if ( v5 == 2 ) { v6 = 0x7FFFFFFFFFFFFFFFLL; } else if ( v5 <= 2 ) { v6 = v5; } else { v6 = (unsigned int)(v5 - 3); } } } else { v6 = 0x8000000000000000LL; } *((_QWORD *)v1 + 3) = v6; if ( v6 - 0x7FFFFFFFFFFFFFFELL >= 3 ) { if ( (unsigned int)bc_get_leb128(a1, &v20) ) { LABEL_2: JS_FreeValueRT(*(_QWORD *)(*a1 + 24), v1); return 0LL; } v11 = v20; if ( !v20 ) { JS_ThrowRangeError(*a1, (unsigned int)"maximum BigInt size exceeded", v7, v8, v9, v10); goto LABEL_2; } if ( (unsigned int)bf_resize(v1 + 2, ((unsigned long long)v20 + 7) >> 3) ) { JS_ThrowOutOfMemory(*a1); goto LABEL_2; } v21 = (unsigned long long)(v11 + 7) >> 3; v12 = v11 & 7; if ( (_DWORD)v12 ) { v19 = 0LL; v13 = 64LL - (unsigned int)(8 * v12); v14 = 0LL; while ( !(unsigned int)bc_get_u8(a1, &v17) ) { v14 |= (unsigned long long)v17 << v13; v13 += 8LL; if ( !--v12 ) { v19 = v14; **((_QWORD **)v1 + 5) = v14; v15 = 1LL; goto LABEL_25; } } v19 = v14; goto LABEL_2; } v15 = 0LL; LABEL_25: v16 = v21; if ( (unsigned int)v15 < (unsigned int)v21 ) { while ( !(unsigned int)bc_get_u64(a1, &v19) ) { *(_QWORD *)(*((_QWORD *)v1 + 5) + 8 * v15++) = v19; if ( v16 == v15 ) return v1; } goto LABEL_2; } } return v1; }
JS_ReadBigInt: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R15,RDI MOV RDI,qword ptr [RDI] CALL 0x0010fe44 MOV R14,RAX MOV RBX,RDX CMP EBX,0x6 JNZ 0x001113cf LAB_001113a2: MOV RAX,qword ptr [R15] MOV RDI,qword ptr [RAX + 0x18] MOV RSI,R14 MOV RDX,RBX CALL 0x0011ccb2 PUSH 0x6 POP RBX XOR R14D,R14D LAB_001113ba: MOV RAX,R14 MOV RDX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001113cf: LEA RSI,[RSP + 0xc] MOV RDI,R15 CALL 0x001111e4 TEST EAX,EAX JNZ 0x001113a2 MOV RAX,0x7ffffffffffffffe MOV EDX,dword ptr [RSP + 0xc] MOV ECX,EDX AND ECX,0x1 MOV dword ptr [R14 + 0x10],ECX MOV ECX,EDX SAR ECX,0x1 MOV dword ptr [RSP + 0xc],ECX CMP EDX,0x2 JNC 0x0011140a LEA RDX,[RAX + 0x2] JMP 0x0011142a LAB_0011140a: MOV RDX,RAX CMP ECX,0x1 JZ 0x0011142a CMP ECX,0x2 JNZ 0x0011141d LEA RDX,[RAX + 0x1] JMP 0x0011142a LAB_0011141d: JLE 0x00111427 ADD ECX,-0x3 MOV RDX,RCX JMP 0x0011142a LAB_00111427: MOVSXD RDX,ECX LAB_0011142a: MOV qword ptr [R14 + 0x18],RDX ADD RAX,RDX ADD RAX,0x4 CMP RAX,0x3 JC 0x001113ba LEA RSI,[RSP + 0x1c] MOV RDI,R15 CALL 0x00144e61 TEST EAX,EAX JNZ 0x001113a2 MOV EBP,dword ptr [RSP + 0x1c] TEST RBP,RBP JZ 0x00111485 MOV RDI,R14 ADD RDI,0x8 LEA R12,[RBP + 0x7] SHR R12,0x3 MOV RSI,R12 CALL 0x00183e5c TEST EAX,EAX JZ 0x0011149b MOV RDI,qword ptr [R15] CALL 0x0011bf4f JMP 0x001113a2 LAB_00111485: MOV RDI,qword ptr [R15] LEA RSI,[0x19e1b6] XOR EAX,EAX CALL 0x0011fec9 JMP 0x001113a2 LAB_0011149b: MOV qword ptr [RSP + 0x20],R12 AND EBP,0x7 JZ 0x001114f6 AND qword ptr [RSP + 0x10],0x0 LEA EAX,[RBP*0x8] PUSH 0x40 POP R13 SUB R13,RAX XOR R12D,R12D LAB_001114bc: MOV RDI,R15 LEA RSI,[RSP + 0xb] CALL 0x00144e29 TEST EAX,EAX JNZ 0x00111539 MOVZX EAX,byte ptr [RSP + 0xb] MOV ECX,R13D SHL RAX,CL OR R12,RAX ADD R13,0x8 DEC RBP JNZ 0x001114bc MOV qword ptr [RSP + 0x10],R12 MOV RAX,qword ptr [R14 + 0x28] MOV qword ptr [RAX],R12 PUSH 0x1 POP R12 JMP 0x001114f9 LAB_001114f6: XOR R12D,R12D LAB_001114f9: MOV RBP,qword ptr [RSP + 0x20] CMP R12D,EBP JNC 0x001113ba LEA R13,[RSP + 0x10] LAB_0011150c: MOV RDI,R15 MOV RSI,R13 CALL 0x0014500e TEST EAX,EAX JNZ 0x001113a2 MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [R14 + 0x28] MOV qword ptr [RCX + R12*0x8],RAX INC R12 CMP RBP,R12 JNZ 0x0011150c JMP 0x001113ba LAB_00111539: MOV qword ptr [RSP + 0x10],R12 JMP 0x001113a2
int1 [16] JS_ReadBigInt(long *param_1) { ulong uVar1; int iVar2; int iVar3; long lVar4; uint uVar5; ulong uVar6; ulong uVar7; int1 auVar8 [16]; byte local_4d; uint local_4c; ulong local_48; uint local_3c; ulong local_38; auVar8 = JS_NewBigInt(*param_1); lVar4 = auVar8._0_8_; uVar7 = local_48; if ((auVar8._8_4_ != 6) && (iVar2 = bc_get_sleb128(param_1,&local_4c), uVar7 = local_48, iVar2 == 0)) { *(uint *)(lVar4 + 0x10) = local_4c & 1; uVar5 = (int)local_4c >> 1; if (local_4c < 2) { uVar7 = 0x8000000000000000; } else { uVar7 = 0x7ffffffffffffffe; if (uVar5 != 1) { if (uVar5 == 2) { uVar7 = 0x7fffffffffffffff; } else if ((int)uVar5 < 3) { uVar7 = (ulong)(int)uVar5; } else { uVar7 = (ulong)(uVar5 - 3); } } } *(ulong *)(lVar4 + 0x18) = uVar7; if (uVar7 + 0x8000000000000002 < 3) { return auVar8; } local_4c = uVar5; iVar2 = bc_get_leb128(param_1,&local_3c); uVar7 = local_48; if (iVar2 == 0) { if ((ulong)local_3c == 0) { JS_ThrowRangeError(*param_1,"maximum BigInt size exceeded"); uVar7 = local_48; } else { uVar7 = (ulong)local_3c + 7 >> 3; iVar2 = bf_resize(lVar4 + 8,uVar7); if (iVar2 == 0) { local_3c = local_3c & 7; uVar6 = (ulong)local_3c; local_38 = uVar7; if (local_3c == 0) { uVar6 = 0; } else { local_48 = 0; iVar2 = local_3c * -8 + 0x40; uVar7 = 0; do { iVar3 = bc_get_u8(param_1,&local_4d); if (iVar3 != 0) goto LAB_001113a2; uVar7 = uVar7 | (ulong)local_4d << ((byte)iVar2 & 0x3f); iVar2 = iVar2 + 8; uVar6 = uVar6 - 1; } while (uVar6 != 0); **(ulong **)(lVar4 + 0x28) = uVar7; uVar6 = 1; local_48 = uVar7; } uVar1 = local_38; if ((uint)local_38 <= (uint)uVar6) { return auVar8; } while (iVar2 = bc_get_u64(param_1,&local_48), uVar7 = local_48, iVar2 == 0) { *(ulong *)(*(long *)(lVar4 + 0x28) + uVar6 * 8) = local_48; uVar6 = uVar6 + 1; if (uVar1 == uVar6) { return auVar8; } } } else { JS_ThrowOutOfMemory(*param_1); uVar7 = local_48; } } } } LAB_001113a2: local_48 = uVar7; JS_FreeValueRT(*(int8 *)(*param_1 + 0x18),lVar4,auVar8._8_8_); return ZEXT816(6) << 0x40; }
2,194
u64toa_radix_naive
bluesky950520[P]quickjs/tests/test_conv.c
size_t u64toa_radix_naive(char buf[minimum_length(65)], uint64_t n, unsigned base) { if (likely(n < 0x100000000)) return u32toa_radix_naive(buf, n, base); #ifdef USE_SPECIAL_RADIX_10 if (likely(base == 10)) return u64toa_naive(buf, n); #endif char buf1[64]; char *q = buf1 + 64; char *p = buf; while (n >= base) { size_t digit = n % base; n /= base; *--q = digits36[digit]; } *--q = digits36[n]; while (q < buf1 + 64) { *p++ = *q++; } *p = '\0'; return p - buf; }
O0
c
u64toa_radix_naive: subq $0x88, %rsp movq %rdi, 0x78(%rsp) movq %rsi, 0x70(%rsp) movl %edx, 0x6c(%rsp) movabsq $0x100000000, %rax # imm = 0x100000000 cmpq %rax, 0x70(%rsp) setb %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x437a movq 0x78(%rsp), %rdi movq 0x70(%rsp), %rax movl %eax, %esi movl 0x6c(%rsp), %edx callq 0x41f0 movq %rax, 0x80(%rsp) jmp 0x449d cmpl $0xa, 0x6c(%rsp) sete %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x43af movq 0x78(%rsp), %rdi movq 0x70(%rsp), %rsi callq 0x3260 movq %rax, 0x80(%rsp) jmp 0x449d leaq 0x20(%rsp), %rax addq $0x40, %rax movq %rax, 0x18(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x70(%rsp), %rax movl 0x6c(%rsp), %ecx cmpq %rcx, %rax jb 0x4422 movq 0x70(%rsp), %rax movl 0x6c(%rsp), %ecx xorl %edx, %edx divq %rcx movq %rdx, 0x8(%rsp) movl 0x6c(%rsp), %eax movl %eax, %ecx movq 0x70(%rsp), %rax xorl %edx, %edx divq %rcx movq %rax, 0x70(%rsp) movq 0x8(%rsp), %rcx leaq 0x8c17(%rip), %rax # 0xd020 movb (%rax,%rcx), %cl movq 0x18(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, 0x18(%rsp) movb %cl, -0x1(%rax) jmp 0x43c7 movq 0x70(%rsp), %rcx leaq 0x8bf2(%rip), %rax # 0xd020 movb (%rax,%rcx), %cl movq 0x18(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, 0x18(%rsp) movb %cl, -0x1(%rax) movq 0x18(%rsp), %rax leaq 0x20(%rsp), %rcx addq $0x40, %rcx cmpq %rcx, %rax jae 0x4480 movq 0x18(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x18(%rsp) movb (%rax), %cl movq 0x10(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x10(%rsp) movb %cl, (%rax) jmp 0x4445 movq 0x10(%rsp), %rax movb $0x0, (%rax) movq 0x10(%rsp), %rax movq 0x78(%rsp), %rcx subq %rcx, %rax movq %rax, 0x80(%rsp) movq 0x80(%rsp), %rax addq $0x88, %rsp retq nopl (%rax)
u64toa_radix_naive: sub rsp, 88h mov [rsp+88h+var_10], rdi mov [rsp+88h+var_18], rsi mov [rsp+88h+var_1C], edx mov rax, 100000000h cmp [rsp+88h+var_18], rax setb al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_437A mov rdi, [rsp+88h+var_10] mov rax, [rsp+88h+var_18] mov esi, eax mov edx, [rsp+88h+var_1C] call u32toa_radix_naive mov [rsp+88h+var_8], rax jmp loc_449D loc_437A: cmp [rsp+88h+var_1C], 0Ah setz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_43AF mov rdi, [rsp+88h+var_10] mov rsi, [rsp+88h+var_18] call u64toa_naive mov [rsp+88h+var_8], rax jmp loc_449D loc_43AF: lea rax, [rsp+88h+var_68] add rax, 40h ; '@' mov [rsp+88h+var_70], rax mov rax, [rsp+88h+var_10] mov [rsp+88h+var_78], rax loc_43C7: mov rax, [rsp+88h+var_18] mov ecx, [rsp+88h+var_1C] cmp rax, rcx jb short loc_4422 mov rax, [rsp+88h+var_18] mov ecx, [rsp+88h+var_1C] xor edx, edx div rcx mov [rsp+88h+var_80], rdx mov eax, [rsp+88h+var_1C] mov ecx, eax mov rax, [rsp+88h+var_18] xor edx, edx div rcx mov [rsp+88h+var_18], rax mov rcx, [rsp+88h+var_80] lea rax, digits36; "0123456789abcdefghijklmnopqrstuvwxyz" mov cl, [rax+rcx] mov rax, [rsp+88h+var_70] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+88h+var_70], rdx mov [rax-1], cl jmp short loc_43C7 loc_4422: mov rcx, [rsp+88h+var_18] lea rax, digits36; "0123456789abcdefghijklmnopqrstuvwxyz" mov cl, [rax+rcx] mov rax, [rsp+88h+var_70] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+88h+var_70], rdx mov [rax-1], cl loc_4445: mov rax, [rsp+88h+var_70] lea rcx, [rsp+88h+var_68] add rcx, 40h ; '@' cmp rax, rcx jnb short loc_4480 mov rax, [rsp+88h+var_70] mov rcx, rax add rcx, 1 mov [rsp+88h+var_70], rcx mov cl, [rax] mov rax, [rsp+88h+var_78] mov rdx, rax add rdx, 1 mov [rsp+88h+var_78], rdx mov [rax], cl jmp short loc_4445 loc_4480: mov rax, [rsp+88h+var_78] mov byte ptr [rax], 0 mov rax, [rsp+88h+var_78] mov rcx, [rsp+88h+var_10] sub rax, rcx mov [rsp+88h+var_8], rax loc_449D: mov rax, [rsp+88h+var_8] add rsp, 88h retn
long long u64toa_radix_naive(_BYTE *a1, unsigned long long a2, unsigned int a3) { _BYTE *v3; // rax _BYTE *v4; // rax char *v5; // rax char v6; // cl _BYTE *v7; // rax unsigned long long v9; // [rsp+8h] [rbp-80h] _BYTE *v10; // [rsp+10h] [rbp-78h] _BYTE *v11; // [rsp+18h] [rbp-70h] char *v12; // [rsp+18h] [rbp-70h] _BYTE v13[12]; // [rsp+60h] [rbp-28h] BYREF unsigned int v14; // [rsp+6Ch] [rbp-1Ch] unsigned long long v15; // [rsp+70h] [rbp-18h] _BYTE *v16; // [rsp+78h] [rbp-10h] v16 = a1; v15 = a2; v14 = a3; if ( a2 < 0x100000000LL ) return u32toa_radix_naive(v16, v15, v14); if ( v14 == 10 ) return u64toa_naive(v16, v15); v11 = v13; v10 = v16; while ( v15 >= v14 ) { v9 = v15 % v14; v15 /= v14; v3 = v11--; *(v3 - 1) = digits36[v9]; } v4 = v11; v12 = v11 - 1; *(v4 - 1) = digits36[v15]; while ( v12 < v13 ) { v5 = v12++; v6 = *v5; v7 = v10++; *v7 = v6; } *v10 = 0; return v10 - v16; }
u64toa_radix_naive: SUB RSP,0x88 MOV qword ptr [RSP + 0x78],RDI MOV qword ptr [RSP + 0x70],RSI MOV dword ptr [RSP + 0x6c],EDX MOV RAX,0x100000000 CMP qword ptr [RSP + 0x70],RAX SETC AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0010437a MOV RDI,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RSP + 0x70] MOV ESI,EAX MOV EDX,dword ptr [RSP + 0x6c] CALL 0x001041f0 MOV qword ptr [RSP + 0x80],RAX JMP 0x0010449d LAB_0010437a: CMP dword ptr [RSP + 0x6c],0xa SETZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001043af MOV RDI,qword ptr [RSP + 0x78] MOV RSI,qword ptr [RSP + 0x70] CALL 0x00103260 MOV qword ptr [RSP + 0x80],RAX JMP 0x0010449d LAB_001043af: LEA RAX,[RSP + 0x20] ADD RAX,0x40 MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x10],RAX LAB_001043c7: MOV RAX,qword ptr [RSP + 0x70] MOV ECX,dword ptr [RSP + 0x6c] CMP RAX,RCX JC 0x00104422 MOV RAX,qword ptr [RSP + 0x70] MOV ECX,dword ptr [RSP + 0x6c] XOR EDX,EDX DIV RCX MOV qword ptr [RSP + 0x8],RDX MOV EAX,dword ptr [RSP + 0x6c] MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x70] XOR EDX,EDX DIV RCX MOV qword ptr [RSP + 0x70],RAX MOV RCX,qword ptr [RSP + 0x8] LEA RAX,[0x10d020] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RSP + 0x18] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RSP + 0x18],RDX MOV byte ptr [RAX + -0x1],CL JMP 0x001043c7 LAB_00104422: MOV RCX,qword ptr [RSP + 0x70] LEA RAX,[0x10d020] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RSP + 0x18] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RSP + 0x18],RDX MOV byte ptr [RAX + -0x1],CL LAB_00104445: MOV RAX,qword ptr [RSP + 0x18] LEA RCX,[RSP + 0x20] ADD RCX,0x40 CMP RAX,RCX JNC 0x00104480 MOV RAX,qword ptr [RSP + 0x18] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x18],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RSP + 0x10] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RSP + 0x10],RDX MOV byte ptr [RAX],CL JMP 0x00104445 LAB_00104480: MOV RAX,qword ptr [RSP + 0x10] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x78] SUB RAX,RCX MOV qword ptr [RSP + 0x80],RAX LAB_0010449d: MOV RAX,qword ptr [RSP + 0x80] ADD RSP,0x88 RET
long u64toa_radix_naive(char *param_1,ulong param_2,uint param_3) { ulong uVar1; char *local_78; char *local_70; char acStack_2b [15]; uint local_1c; ulong local_18; char *local_10; long local_8; local_1c = param_3; local_18 = param_2; local_10 = param_1; if (param_2 < 0x100000000) { local_8 = u32toa_radix_naive(param_1,param_2 & 0xffffffff,param_3); } else if (param_3 == 10) { local_8 = u64toa_naive(param_1,param_2); } else { local_70 = acStack_2b + 3; while (param_3 <= local_18) { uVar1 = local_18 % (ulong)param_3; local_18 = local_18 / param_3; local_70[-1] = "?0123456789abcdefghijklmnopqrstuvwxyz"[uVar1 + 1]; local_70 = local_70 + -1; } local_70[-1] = "?0123456789abcdefghijklmnopqrstuvwxyz"[local_18 + 1]; local_78 = param_1; local_70 = local_70 + -1; while (local_70 < acStack_2b + 3) { *local_78 = *local_70; local_78 = local_78 + 1; local_70 = local_70 + 1; } *local_78 = '\0'; local_8 = (long)local_78 - (long)param_1; } return local_8; }
2,195
my_wildcmp_8bit_impl
eloqsql/strings/ctype-simple.c
static int my_wildcmp_8bit_impl(CHARSET_INFO *cs, const char *str,const char *str_end, const char *wildstr,const char *wildend, int escape, int w_one, int w_many, int recurse_level) { int result= -1; /* Not found, using wildcards */ if (my_string_stack_guard && my_string_stack_guard(recurse_level)) return 1; while (wildstr != wildend) { while (*wildstr != w_many && *wildstr != w_one) { if (*wildstr == escape && wildstr+1 != wildend) wildstr++; if (str == str_end || likeconv(cs,*wildstr++) != likeconv(cs,*str++)) return(1); /* No match */ if (wildstr == wildend) return(str != str_end); /* Match if both are at end */ result=1; /* Found an anchor char */ } if (*wildstr == w_one) { do { if (str == str_end) /* Skip one char if possible */ return(result); INC_PTR(cs,str,str_end); } while (++wildstr < wildend && *wildstr == w_one); if (wildstr == wildend) break; } if (*wildstr == w_many) { /* Found w_many */ uchar cmp; wildstr++; /* Remove any '%' and '_' from the wild search string */ for (; wildstr != wildend ; wildstr++) { if (*wildstr == w_many) continue; if (*wildstr == w_one) { if (str == str_end) return(-1); INC_PTR(cs,str,str_end); continue; } break; /* Not a wild character */ } if (wildstr == wildend) return(0); /* Ok if w_many is last */ if (str == str_end) return(-1); if ((cmp= *wildstr) == escape && wildstr+1 != wildend) cmp= *++wildstr; INC_PTR(cs,wildstr,wildend); /* This is compared trough cmp */ cmp=likeconv(cs,cmp); do { /* Find the next character in the subject string equal to 'cmp', then check recursively my_wildcmp_8bit_impl() for the pattern remainder. */ while (str != str_end && (uchar) likeconv(cs,*str) != cmp) str++; if (str++ == str_end) return(-1); /* 'cmp' was not found in the subject string */ { int tmp=my_wildcmp_8bit_impl(cs,str,str_end, wildstr,wildend,escape,w_one, w_many, recurse_level+1); if (tmp <= 0) return(tmp); } /* The recursion call did not match. But it returned 1, which means the pattern remainder has some non-special characters. Continue, there is a chance that we'll find another 'cmp' at a different position in the subject string. */ } while (str != str_end); return(-1); } } return(str != str_end ? 1 : 0); }
O3
c
my_wildcmp_8bit_impl: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %r8, %r12 movq %rcx, %r13 movq %rdx, %rbx movq %rsi, %r14 movl 0x20(%rbp), %r10d leaq 0xb576bd(%rip), %rax # 0xc130e8 movq (%rax), %rax testq %rax, %rax je 0xbba5e movq %rbx, -0x30(%rbp) movq %rdi, %rbx movl %r10d, %edi movl %r9d, %r15d callq *%rax movl 0x20(%rbp), %r10d movq %rbx, %rdi movq -0x30(%rbp), %rbx movl %r15d, %r9d movl $0x1, %r15d testl %eax, %eax jne 0xbbb84 movl 0x18(%rbp), %r11d movl 0x10(%rbp), %r8d movl $0xffffffff, %r15d # imm = 0xFFFFFFFF cmpq %r12, %r13 je 0xbbb7a movb (%r13), %al movsbl %al, %ecx cmpl %r11d, %ecx sete %sil cmpl %r8d, %ecx sete %dl orb %dl, %sil je 0xbbadb testb %dl, %dl je 0xbbad1 incq %r13 movq %r13, %rax cmpq %rbx, %r14 je 0xbbb84 movq %r14, %rcx movq %rax, %r13 cmpq %r12, %rax jae 0xbbabe leaq 0x1(%rcx), %r14 movsbl (%r13), %edx leaq 0x1(%r13), %rax cmpl %r8d, %edx je 0xbba98 incq %rcx cmpq %r12, %r13 je 0xbbb77 movb (%r13), %al movq %rcx, %r14 movsbl %al, %eax cmpl %r11d, %eax jne 0xbba6c jmp 0xbbb3c movl $0x1, %r15d cmpq %rbx, %r14 je 0xbbb84 leaq 0x1(%r13), %rax cmpq %r12, %rax cmoveq %r13, %rax cmpl %r9d, %ecx cmoveq %rax, %r13 movq 0x58(%rdi), %rax movzbl (%r13), %ecx movb (%rax,%rcx), %cl movzbl (%r14), %edx cmpb (%rax,%rdx), %cl jne 0xbbb84 incq %r14 incq %r13 cmpq %r12, %r13 je 0xbbb7a movb (%r13), %al movsbl %al, %ecx cmpl %r8d, %ecx sete %dl cmpl %r11d, %ecx je 0xbba8e cmpl %r8d, %ecx jne 0xbbadb jmp 0xbba8e leaq 0x1(%r13), %rax xorl %r15d, %r15d cmpq %r12, %rax je 0xbbb84 addq $0x2, %r13 movb -0x1(%r13), %al movsbl %al, %ecx cmpl %r11d, %ecx je 0xbbb69 cmpl %r8d, %ecx jne 0xbbb96 cmpq %rbx, %r14 je 0xbbc41 incq %r14 leaq 0x1(%r13), %rax cmpq %r12, %r13 movq %rax, %r13 jne 0xbbb4c jmp 0xbbb84 movq %rcx, %r14 xorl %r15d, %r15d cmpq %rbx, %r14 setne %r15b movl %r15d, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xffffffff, %r15d # imm = 0xFFFFFFFF cmpq %rbx, %r14 je 0xbbb84 movzbl %al, %ecx leaq -0x1(%r13), %rdx cmpl %r9d, %ecx jne 0xbbbb9 cmpq %r12, %r13 je 0xbbbb9 movb (%r13), %al movq %r13, %rdx incq %rdx movq 0x58(%rdi), %rcx movzbl %al, %eax movb (%rcx,%rax), %r13b incl %r10d cmpq %rbx, %r14 je 0xbbb84 movq 0x58(%rdi), %rax movzbl (%r14), %ecx cmpb %r13b, (%rax,%rcx) je 0xbbbe7 incq %r14 cmpq %rbx, %r14 jne 0xbbbd3 jmp 0xbbb84 incq %r14 subq $0x8, %rsp movq %rdi, -0x48(%rbp) movq %r14, %rsi movq %rdx, %rcx movq %rbx, %rdx movq %rcx, -0x38(%rbp) movq %r8, %rax movq %r12, %r8 movl %r9d, -0x30(%rbp) movq %r10, -0x40(%rbp) pushq %r10 pushq %r11 pushq %rax callq 0xbba03 addq $0x20, %rsp testl %eax, %eax jle 0xbbc4c cmpq %rbx, %r14 movl -0x30(%rbp), %r9d movq -0x48(%rbp), %rdi movq -0x40(%rbp), %r10 movl 0x18(%rbp), %r11d movl 0x10(%rbp), %r8d movq -0x38(%rbp), %rdx jne 0xbbbca jmp 0xbbb84 movl $0xffffffff, %r15d # imm = 0xFFFFFFFF jmp 0xbbb84 movl %eax, %r15d jmp 0xbbb84
my_wildcmp_8bit_impl: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r12, r8 mov r13, rcx mov rbx, rdx mov r14, rsi mov r10d, [rbp+arg_10] lea rax, my_string_stack_guard mov rax, [rax] test rax, rax jz short loc_BBA5E mov [rbp+var_30], rbx mov rbx, rdi mov edi, r10d mov r15d, r9d call rax mov r10d, [rbp+arg_10] mov rdi, rbx mov rbx, [rbp+var_30] mov r9d, r15d mov r15d, 1 test eax, eax jnz loc_BBB84 loc_BBA5E: mov r11d, [rbp+arg_8] mov r8d, [rbp+arg_0] mov r15d, 0FFFFFFFFh loc_BBA6C: cmp r13, r12 jz loc_BBB7A mov al, [r13+0] movsx ecx, al cmp ecx, r11d setz sil cmp ecx, r8d setz dl or sil, dl jz short loc_BBADB loc_BBA8E: test dl, dl jz short loc_BBAD1 inc r13 mov rax, r13 loc_BBA98: cmp r14, rbx jz loc_BBB84 mov rcx, r14 mov r13, rax cmp rax, r12 jnb short loc_BBABE lea r14, [rcx+1] movsx edx, byte ptr [r13+0] lea rax, [r13+1] cmp edx, r8d jz short loc_BBA98 loc_BBABE: inc rcx cmp r13, r12 jz loc_BBB77 mov al, [r13+0] mov r14, rcx loc_BBAD1: movsx eax, al cmp eax, r11d jnz short loc_BBA6C jmp short loc_BBB3C loc_BBADB: mov r15d, 1 cmp r14, rbx jz loc_BBB84 lea rax, [r13+1] cmp rax, r12 cmovz rax, r13 cmp ecx, r9d cmovz r13, rax mov rax, [rdi+58h] movzx ecx, byte ptr [r13+0] mov cl, [rax+rcx] movzx edx, byte ptr [r14] cmp cl, [rax+rdx] jnz short loc_BBB84 inc r14 inc r13 cmp r13, r12 jz short loc_BBB7A mov al, [r13+0] movsx ecx, al cmp ecx, r8d setz dl cmp ecx, r11d jz loc_BBA8E cmp ecx, r8d jnz short loc_BBADB jmp loc_BBA8E loc_BBB3C: lea rax, [r13+1] xor r15d, r15d cmp rax, r12 jz short loc_BBB84 add r13, 2 loc_BBB4C: mov al, [r13-1] movsx ecx, al cmp ecx, r11d jz short loc_BBB69 cmp ecx, r8d jnz short loc_BBB96 cmp r14, rbx jz loc_BBC41 inc r14 loc_BBB69: lea rax, [r13+1] cmp r13, r12 mov r13, rax jnz short loc_BBB4C jmp short loc_BBB84 loc_BBB77: mov r14, rcx loc_BBB7A: xor r15d, r15d cmp r14, rbx setnz r15b loc_BBB84: mov eax, r15d add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_BBB96: mov r15d, 0FFFFFFFFh cmp r14, rbx jz short loc_BBB84 movzx ecx, al lea rdx, [r13-1] cmp ecx, r9d jnz short loc_BBBB9 cmp r13, r12 jz short loc_BBBB9 mov al, [r13+0] mov rdx, r13 loc_BBBB9: inc rdx mov rcx, [rdi+58h] movzx eax, al mov r13b, [rcx+rax] inc r10d loc_BBBCA: cmp r14, rbx jz short loc_BBB84 mov rax, [rdi+58h] loc_BBBD3: movzx ecx, byte ptr [r14] cmp [rax+rcx], r13b jz short loc_BBBE7 inc r14 cmp r14, rbx jnz short loc_BBBD3 jmp short loc_BBB84 loc_BBBE7: inc r14 sub rsp, 8 mov [rbp+var_48], rdi mov rsi, r14 mov rcx, rdx mov rdx, rbx mov [rbp+var_38], rcx mov rax, r8 mov r8, r12 mov dword ptr [rbp+var_30], r9d mov [rbp+var_40], r10 push r10 push r11 push rax call my_wildcmp_8bit_impl add rsp, 20h test eax, eax jle short loc_BBC4C cmp r14, rbx mov r9d, dword ptr [rbp+var_30] mov rdi, [rbp+var_48] mov r10, [rbp+var_40] mov r11d, [rbp+arg_8] mov r8d, [rbp+arg_0] mov rdx, [rbp+var_38] jnz short loc_BBBCA jmp loc_BBB84 loc_BBC41: mov r15d, 0FFFFFFFFh jmp loc_BBB84 loc_BBC4C: mov r15d, eax jmp loc_BBB84
long long my_wildcmp_8bit_impl( long long a1, unsigned __int8 *a2, unsigned __int8 *a3, char *a4, char *a5, int a6, int a7, int a8, unsigned int a9) { unsigned __int8 *v11; // rbx unsigned int v13; // r10d int v14; // r15d int v15; // eax unsigned int v16; // r15d int v17; // r11d int v18; // r8d signed __int8 v19; // al int v20; // ecx bool v21; // dl char *v22; // rax unsigned __int8 *v23; // rcx int v24; // edx unsigned __int8 *v25; // rcx char *v26; // rax char *v27; // r13 unsigned __int8 v28; // al char *v31; // rdx _BYTE *v32; // rdx char v33; // r13 long long v34; // r10 int v35; // eax long long v36; // [rsp+10h] [rbp-40h] _BYTE *v37; // [rsp+18h] [rbp-38h] int v39; // [rsp+20h] [rbp-30h] v11 = a3; v13 = a9; if ( my_string_stack_guard ) { v14 = a6; v15 = my_string_stack_guard(a9); v13 = a9; v11 = a3; a6 = v14; v16 = 1; if ( v15 ) return v16; } v17 = a8; v18 = a7; v16 = -1; do { if ( a4 == a5 ) return a2 != v11; v19 = *a4; v20 = *a4; v21 = v20 == a7; if ( v20 != a7 && v20 != a8 ) { do { v16 = 1; if ( a2 == v11 ) return v16; v26 = a4 + 1; if ( a4 + 1 == a5 ) v26 = a4; if ( v20 == a6 ) a4 = v26; if ( *(_BYTE *)(*(_QWORD *)(a1 + 88) + (unsigned __int8)*a4) != *(_BYTE *)(*(_QWORD *)(a1 + 88) + *a2) ) return v16; ++a2; if ( ++a4 == a5 ) return a2 != v11; v19 = *a4; v20 = *a4; v21 = v20 == a7; } while ( v20 != a8 && v20 != a7 ); } if ( v21 ) { v22 = a4 + 1; do { if ( a2 == v11 ) return v16; v23 = a2; a4 = v22; if ( v22 >= a5 ) break; ++a2; v24 = *v22++; } while ( v24 == a7 ); v25 = v23 + 1; if ( a4 == a5 ) { a2 = v25; return a2 != v11; } v19 = *a4; a2 = v25; } } while ( v19 != a8 ); v16 = 0; if ( a4 + 1 == a5 ) return v16; v27 = a4 + 2; while ( 1 ) { v28 = *(v27 - 1); if ( (char)v28 == a8 ) goto LABEL_31; if ( (char)v28 != a7 ) break; if ( a2 == v11 ) return (unsigned int)-1; ++a2; LABEL_31: if ( v27++ == a5 ) return v16; } v16 = -1; if ( a2 != v11 ) { v31 = v27 - 1; if ( v28 == a6 && v27 != a5 ) { v28 = *v27; v31 = v27; } v32 = v31 + 1; v33 = *(_BYTE *)(*(_QWORD *)(a1 + 88) + v28); v34 = v13 + 1; while ( a2 != v11 ) { while ( *(_BYTE *)(*(_QWORD *)(a1 + 88) + *a2) != v33 ) { if ( ++a2 == v11 ) return v16; } ++a2; v37 = v32; v39 = a6; v36 = v34; v35 = my_wildcmp_8bit_impl(a1, (_DWORD)a2, (_DWORD)v11, (_DWORD)v32, (_DWORD)a5, a6, v18, v17, v34); if ( v35 <= 0 ) return (unsigned int)v35; a6 = v39; v34 = v36; v17 = a8; v18 = a7; v32 = v37; if ( a2 == v11 ) return v16; } } return v16; }
my_wildcmp_8bit_impl: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R12,R8 MOV R13,RCX MOV RBX,RDX MOV R14,RSI MOV R10D,dword ptr [RBP + 0x20] LEA RAX,[0xd130e8] MOV RAX,qword ptr [RAX] TEST RAX,RAX JZ 0x001bba5e MOV qword ptr [RBP + -0x30],RBX MOV RBX,RDI MOV EDI,R10D MOV R15D,R9D CALL RAX MOV R10D,dword ptr [RBP + 0x20] MOV RDI,RBX MOV RBX,qword ptr [RBP + -0x30] MOV R9D,R15D MOV R15D,0x1 TEST EAX,EAX JNZ 0x001bbb84 LAB_001bba5e: MOV R11D,dword ptr [RBP + 0x18] MOV R8D,dword ptr [RBP + 0x10] MOV R15D,0xffffffff LAB_001bba6c: CMP R13,R12 JZ 0x001bbb7a MOV AL,byte ptr [R13] MOVSX ECX,AL CMP ECX,R11D SETZ SIL CMP ECX,R8D SETZ DL OR SIL,DL JZ 0x001bbadb LAB_001bba8e: TEST DL,DL JZ 0x001bbad1 INC R13 MOV RAX,R13 LAB_001bba98: CMP R14,RBX JZ 0x001bbb84 MOV RCX,R14 MOV R13,RAX CMP RAX,R12 JNC 0x001bbabe LEA R14,[RCX + 0x1] MOVSX EDX,byte ptr [R13] LEA RAX,[R13 + 0x1] CMP EDX,R8D JZ 0x001bba98 LAB_001bbabe: INC RCX CMP R13,R12 JZ 0x001bbb77 MOV AL,byte ptr [R13] MOV R14,RCX LAB_001bbad1: MOVSX EAX,AL CMP EAX,R11D JNZ 0x001bba6c JMP 0x001bbb3c LAB_001bbadb: MOV R15D,0x1 CMP R14,RBX JZ 0x001bbb84 LEA RAX,[R13 + 0x1] CMP RAX,R12 CMOVZ RAX,R13 CMP ECX,R9D CMOVZ R13,RAX MOV RAX,qword ptr [RDI + 0x58] MOVZX ECX,byte ptr [R13] MOV CL,byte ptr [RAX + RCX*0x1] MOVZX EDX,byte ptr [R14] CMP CL,byte ptr [RAX + RDX*0x1] JNZ 0x001bbb84 INC R14 INC R13 CMP R13,R12 JZ 0x001bbb7a MOV AL,byte ptr [R13] MOVSX ECX,AL CMP ECX,R8D SETZ DL CMP ECX,R11D JZ 0x001bba8e CMP ECX,R8D JNZ 0x001bbadb JMP 0x001bba8e LAB_001bbb3c: LEA RAX,[R13 + 0x1] XOR R15D,R15D CMP RAX,R12 JZ 0x001bbb84 ADD R13,0x2 LAB_001bbb4c: MOV AL,byte ptr [R13 + -0x1] MOVSX ECX,AL CMP ECX,R11D JZ 0x001bbb69 CMP ECX,R8D JNZ 0x001bbb96 CMP R14,RBX JZ 0x001bbc41 INC R14 LAB_001bbb69: LEA RAX,[R13 + 0x1] CMP R13,R12 MOV R13,RAX JNZ 0x001bbb4c JMP 0x001bbb84 LAB_001bbb77: MOV R14,RCX LAB_001bbb7a: XOR R15D,R15D CMP R14,RBX SETNZ R15B LAB_001bbb84: MOV EAX,R15D ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001bbb96: MOV R15D,0xffffffff CMP R14,RBX JZ 0x001bbb84 MOVZX ECX,AL LEA RDX,[R13 + -0x1] CMP ECX,R9D JNZ 0x001bbbb9 CMP R13,R12 JZ 0x001bbbb9 MOV AL,byte ptr [R13] MOV RDX,R13 LAB_001bbbb9: INC RDX MOV RCX,qword ptr [RDI + 0x58] MOVZX EAX,AL MOV R13B,byte ptr [RCX + RAX*0x1] INC R10D LAB_001bbbca: CMP R14,RBX JZ 0x001bbb84 MOV RAX,qword ptr [RDI + 0x58] LAB_001bbbd3: MOVZX ECX,byte ptr [R14] CMP byte ptr [RAX + RCX*0x1],R13B JZ 0x001bbbe7 INC R14 CMP R14,RBX JNZ 0x001bbbd3 JMP 0x001bbb84 LAB_001bbbe7: INC R14 SUB RSP,0x8 MOV qword ptr [RBP + -0x48],RDI MOV RSI,R14 MOV RCX,RDX MOV RDX,RBX MOV qword ptr [RBP + -0x38],RCX MOV RAX,R8 MOV R8,R12 MOV dword ptr [RBP + -0x30],R9D MOV qword ptr [RBP + -0x40],R10 PUSH R10 PUSH R11 PUSH RAX CALL 0x001bba03 ADD RSP,0x20 TEST EAX,EAX JLE 0x001bbc4c CMP R14,RBX MOV R9D,dword ptr [RBP + -0x30] MOV RDI,qword ptr [RBP + -0x48] MOV R10,qword ptr [RBP + -0x40] MOV R11D,dword ptr [RBP + 0x18] MOV R8D,dword ptr [RBP + 0x10] MOV RDX,qword ptr [RBP + -0x38] JNZ 0x001bbbca JMP 0x001bbb84 LAB_001bbc41: MOV R15D,0xffffffff JMP 0x001bbb84 LAB_001bbc4c: MOV R15D,EAX JMP 0x001bbb84
uint my_wildcmp_8bit_impl (long param_1,byte *param_2,byte *param_3,byte *param_4,byte *param_5,ulong param_6, uint param_7,uint param_8,int param_9) { char cVar1; byte bVar2; int iVar3; uint uVar4; byte *pbVar5; uint uVar6; byte *pbVar7; bool bVar8; if (my_string_stack_guard != (code *)0x0) { param_6 = param_6 & 0xffffffff; iVar3 = (*my_string_stack_guard)(param_9); if (iVar3 != 0) { return 1; } } uVar4 = 0xffffffff; while (param_4 != param_5) { bVar2 = *param_4; uVar6 = (uint)(char)bVar2; bVar8 = uVar6 == param_7; if (uVar6 != param_8 && !bVar8) { do { uVar4 = 1; if (param_2 == param_3) { return 1; } pbVar5 = param_4 + 1; if (param_4 + 1 == param_5) { pbVar5 = param_4; } if (uVar6 == (uint)param_6) { param_4 = pbVar5; } if (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_4) != *(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_2)) { return 1; } param_2 = param_2 + 1; param_4 = param_4 + 1; if (param_4 == param_5) goto LAB_001bbb7a; bVar2 = *param_4; uVar6 = (uint)(char)bVar2; bVar8 = uVar6 == param_7; } while ((uVar6 != param_8) && (uVar6 != param_7)); } if (bVar8) { do { pbVar5 = param_2; param_4 = param_4 + 1; if (pbVar5 == param_3) { return uVar4; } } while ((param_4 < param_5) && (param_2 = pbVar5 + 1, (int)(char)*param_4 == param_7)); param_2 = pbVar5 + 1; if (param_4 == param_5) break; bVar2 = *param_4; } if ((int)(char)bVar2 == param_8) { if (param_4 + 1 != param_5) { pbVar5 = param_4 + 2; do { bVar2 = pbVar5[-1]; if ((int)(char)bVar2 != param_8) { if ((int)(char)bVar2 != param_7) { if (param_2 == param_3) { return 0xffffffff; } pbVar7 = pbVar5 + -1; if (((uint)bVar2 == (uint)param_6) && (pbVar5 != param_5)) { bVar2 = *pbVar5; pbVar7 = pbVar5; } cVar1 = *(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar2); while( true ) { if (param_2 == param_3) { return 0xffffffff; } while (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_2) != cVar1) { param_2 = param_2 + 1; if (param_2 == param_3) { return 0xffffffff; } } param_2 = param_2 + 1; uVar4 = my_wildcmp_8bit_impl (param_1,param_2,param_3,pbVar7 + 1,param_5,param_6,param_7, param_8,param_9 + 1); if ((int)uVar4 < 1) break; param_6 = param_6 & 0xffffffff; if (param_2 == param_3) { return 0xffffffff; } } return uVar4; } if (param_2 == param_3) { return 0xffffffff; } param_2 = param_2 + 1; } bVar8 = pbVar5 != param_5; pbVar5 = pbVar5 + 1; } while (bVar8); } return 0; } } LAB_001bbb7a: return (uint)(param_2 != param_3); }
2,196
my_strntoll_8bit
eloqsql/strings/ctype-simple.c
longlong my_strntoll_8bit(CHARSET_INFO *cs __attribute__((unused)), const char *nptr, size_t l, int base, char **endptr,int *err) { int negative; register ulonglong cutoff; register uint cutlim; register ulonglong i; register const char *s, *e; const char *save; int overflow; *err= 0; /* Initialize error indicator */ s = nptr; e = nptr+l; for(; s<e && my_isspace(cs,*s); s++); if (s == e) { goto noconv; } if (*s == '-') { negative = 1; ++s; } else if (*s == '+') { negative = 0; ++s; } else negative = 0; save = s; cutoff = (~(ulonglong) 0) / (unsigned long int) base; cutlim = (uint) ((~(ulonglong) 0) % (unsigned long int) base); overflow = 0; i = 0; for ( ; s != e; s++) { register uchar c= *s; if (c>='0' && c<='9') c -= '0'; else if (c>='A' && c<='Z') c = c - 'A' + 10; else if (c>='a' && c<='z') c = c - 'a' + 10; else break; if (c >= base) break; if (i > cutoff || (i == cutoff && c > cutlim)) overflow = 1; else { i *= (ulonglong) base; i += c; } } if (s == save) goto noconv; if (endptr != NULL) *endptr = (char *) s; if (negative) { if (i > (ulonglong) LONGLONG_MIN) overflow = 1; } else if (i > (ulonglong) LONGLONG_MAX) overflow = 1; if (overflow) { err[0]= ERANGE; return negative ? LONGLONG_MIN : LONGLONG_MAX; } return (negative ? -((longlong) i) : (longlong) i); noconv: err[0]= EDOM; if (endptr != NULL) *endptr = (char *) nptr; return 0L; }
O0
c
my_strntoll_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x18(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x60(%rbp), %rcx xorl %eax, %eax cmpq -0x68(%rbp), %rcx movb %al, -0x76(%rbp) jae 0x44078 movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x60(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x8, %eax cmpl $0x0, %eax setne %al movb %al, -0x76(%rbp) movb -0x76(%rbp), %al testb $0x1, %al jne 0x44081 jmp 0x44091 jmp 0x44083 movq -0x60(%rbp), %rax addq $0x1, %rax movq %rax, -0x60(%rbp) jmp 0x44049 movq -0x60(%rbp), %rax cmpq -0x68(%rbp), %rax jne 0x440a0 jmp 0x442b6 movq -0x60(%rbp), %rax movsbl (%rax), %eax cmpl $0x2d, %eax jne 0x440c1 movl $0x1, -0x3c(%rbp) movq -0x60(%rbp), %rax addq $0x1, %rax movq %rax, -0x60(%rbp) jmp 0x440eb movq -0x60(%rbp), %rax movsbl (%rax), %eax cmpl $0x2b, %eax jne 0x440e2 movl $0x0, -0x3c(%rbp) movq -0x60(%rbp), %rax addq $0x1, %rax movq %rax, -0x60(%rbp) jmp 0x440e9 movl $0x0, -0x3c(%rbp) jmp 0x440eb movq -0x60(%rbp), %rax movq %rax, -0x70(%rbp) movslq -0x24(%rbp), %rcx movq $-0x1, %rax xorl %edx, %edx divq %rcx movq %rax, -0x48(%rbp) movslq -0x24(%rbp), %rcx movq $-0x1, %rax xorl %edx, %edx divq %rcx movl %edx, %eax movl %eax, -0x4c(%rbp) movl $0x0, -0x74(%rbp) movq $0x0, -0x58(%rbp) movq -0x60(%rbp), %rax cmpq -0x68(%rbp), %rax je 0x44205 movq -0x60(%rbp), %rax movb (%rax), %al movb %al, -0x75(%rbp) movzbl -0x75(%rbp), %eax cmpl $0x30, %eax jl 0x44160 movzbl -0x75(%rbp), %eax cmpl $0x39, %eax jg 0x44160 movzbl -0x75(%rbp), %eax subl $0x30, %eax movb %al, -0x75(%rbp) jmp 0x441a8 movzbl -0x75(%rbp), %eax cmpl $0x41, %eax jl 0x44181 movzbl -0x75(%rbp), %eax cmpl $0x5a, %eax jg 0x44181 movzbl -0x75(%rbp), %eax subl $0x41, %eax addl $0xa, %eax movb %al, -0x75(%rbp) jmp 0x441a6 movzbl -0x75(%rbp), %eax cmpl $0x61, %eax jl 0x441a2 movzbl -0x75(%rbp), %eax cmpl $0x7a, %eax jg 0x441a2 movzbl -0x75(%rbp), %eax subl $0x61, %eax addl $0xa, %eax movb %al, -0x75(%rbp) jmp 0x441a4 jmp 0x44205 jmp 0x441a6 jmp 0x441a8 movzbl -0x75(%rbp), %eax cmpl -0x24(%rbp), %eax jl 0x441b3 jmp 0x44205 movq -0x58(%rbp), %rax cmpq -0x48(%rbp), %rax ja 0x441d0 movq -0x58(%rbp), %rax cmpq -0x48(%rbp), %rax jne 0x441d9 movzbl -0x75(%rbp), %eax cmpl -0x4c(%rbp), %eax jbe 0x441d9 movl $0x1, -0x74(%rbp) jmp 0x441f2 movslq -0x24(%rbp), %rax imulq -0x58(%rbp), %rax movq %rax, -0x58(%rbp) movzbl -0x75(%rbp), %eax addq -0x58(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0x441f4 movq -0x60(%rbp), %rax addq $0x1, %rax movq %rax, -0x60(%rbp) jmp 0x4412b movq -0x60(%rbp), %rax cmpq -0x70(%rbp), %rax jne 0x44214 jmp 0x442b6 cmpq $0x0, -0x30(%rbp) je 0x44226 movq -0x60(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) cmpl $0x0, -0x3c(%rbp) je 0x44245 movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 cmpq %rax, -0x58(%rbp) jbe 0x44243 movl $0x1, -0x74(%rbp) jmp 0x4425e movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF cmpq %rax, -0x58(%rbp) jbe 0x4425c movl $0x1, -0x74(%rbp) jmp 0x4425e cmpl $0x0, -0x74(%rbp) je 0x44292 movq -0x38(%rbp), %rax movl $0x22, (%rax) movl -0x3c(%rbp), %edx movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 cmpl $0x0, %edx cmovneq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x442da cmpl $0x0, -0x3c(%rbp) je 0x442a4 xorl %eax, %eax subq -0x58(%rbp), %rax movq %rax, -0x80(%rbp) jmp 0x442ac movq -0x58(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x80(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x442da movq -0x38(%rbp), %rax movl $0x21, (%rax) cmpq $0x0, -0x30(%rbp) je 0x442d2 movq -0x18(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq
my_strntoll_8bit: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_18] mov [rbp+var_60], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_68], rax loc_44049: mov rcx, [rbp+var_60] xor eax, eax cmp rcx, [rbp+var_68] mov [rbp+var_76], al jnb short loc_44078 mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_60] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 8 cmp eax, 0 setnz al mov [rbp+var_76], al loc_44078: mov al, [rbp+var_76] test al, 1 jnz short loc_44081 jmp short loc_44091 loc_44081: jmp short $+2 loc_44083: mov rax, [rbp+var_60] add rax, 1 mov [rbp+var_60], rax jmp short loc_44049 loc_44091: mov rax, [rbp+var_60] cmp rax, [rbp+var_68] jnz short loc_440A0 jmp loc_442B6 loc_440A0: mov rax, [rbp+var_60] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jnz short loc_440C1 mov [rbp+var_3C], 1 mov rax, [rbp+var_60] add rax, 1 mov [rbp+var_60], rax jmp short loc_440EB loc_440C1: mov rax, [rbp+var_60] movsx eax, byte ptr [rax] cmp eax, 2Bh ; '+' jnz short loc_440E2 mov [rbp+var_3C], 0 mov rax, [rbp+var_60] add rax, 1 mov [rbp+var_60], rax jmp short loc_440E9 loc_440E2: mov [rbp+var_3C], 0 loc_440E9: jmp short $+2 loc_440EB: mov rax, [rbp+var_60] mov [rbp+var_70], rax movsxd rcx, [rbp+var_24] mov rax, 0FFFFFFFFFFFFFFFFh xor edx, edx div rcx mov [rbp+var_48], rax movsxd rcx, [rbp+var_24] mov rax, 0FFFFFFFFFFFFFFFFh xor edx, edx div rcx mov eax, edx mov [rbp+var_4C], eax mov [rbp+var_74], 0 mov [rbp+var_58], 0 loc_4412B: mov rax, [rbp+var_60] cmp rax, [rbp+var_68] jz loc_44205 mov rax, [rbp+var_60] mov al, [rax] mov [rbp+var_75], al movzx eax, [rbp+var_75] cmp eax, 30h ; '0' jl short loc_44160 movzx eax, [rbp+var_75] cmp eax, 39h ; '9' jg short loc_44160 movzx eax, [rbp+var_75] sub eax, 30h ; '0' mov [rbp+var_75], al jmp short loc_441A8 loc_44160: movzx eax, [rbp+var_75] cmp eax, 41h ; 'A' jl short loc_44181 movzx eax, [rbp+var_75] cmp eax, 5Ah ; 'Z' jg short loc_44181 movzx eax, [rbp+var_75] sub eax, 41h ; 'A' add eax, 0Ah mov [rbp+var_75], al jmp short loc_441A6 loc_44181: movzx eax, [rbp+var_75] cmp eax, 61h ; 'a' jl short loc_441A2 movzx eax, [rbp+var_75] cmp eax, 7Ah ; 'z' jg short loc_441A2 movzx eax, [rbp+var_75] sub eax, 61h ; 'a' add eax, 0Ah mov [rbp+var_75], al jmp short loc_441A4 loc_441A2: jmp short loc_44205 loc_441A4: jmp short $+2 loc_441A6: jmp short $+2 loc_441A8: movzx eax, [rbp+var_75] cmp eax, [rbp+var_24] jl short loc_441B3 jmp short loc_44205 loc_441B3: mov rax, [rbp+var_58] cmp rax, [rbp+var_48] ja short loc_441D0 mov rax, [rbp+var_58] cmp rax, [rbp+var_48] jnz short loc_441D9 movzx eax, [rbp+var_75] cmp eax, [rbp+var_4C] jbe short loc_441D9 loc_441D0: mov [rbp+var_74], 1 jmp short loc_441F2 loc_441D9: movsxd rax, [rbp+var_24] imul rax, [rbp+var_58] mov [rbp+var_58], rax movzx eax, [rbp+var_75] add rax, [rbp+var_58] mov [rbp+var_58], rax loc_441F2: jmp short $+2 loc_441F4: mov rax, [rbp+var_60] add rax, 1 mov [rbp+var_60], rax jmp loc_4412B loc_44205: mov rax, [rbp+var_60] cmp rax, [rbp+var_70] jnz short loc_44214 jmp loc_442B6 loc_44214: cmp [rbp+var_30], 0 jz short loc_44226 mov rcx, [rbp+var_60] mov rax, [rbp+var_30] mov [rax], rcx loc_44226: cmp [rbp+var_3C], 0 jz short loc_44245 mov rax, 8000000000000000h cmp [rbp+var_58], rax jbe short loc_44243 mov [rbp+var_74], 1 loc_44243: jmp short loc_4425E loc_44245: mov rax, 7FFFFFFFFFFFFFFFh cmp [rbp+var_58], rax jbe short loc_4425C mov [rbp+var_74], 1 loc_4425C: jmp short $+2 loc_4425E: cmp [rbp+var_74], 0 jz short loc_44292 mov rax, [rbp+var_38] mov dword ptr [rax], 22h ; '"' mov edx, [rbp+var_3C] mov rax, 7FFFFFFFFFFFFFFFh mov rcx, 8000000000000000h cmp edx, 0 cmovnz rax, rcx mov [rbp+var_8], rax jmp short loc_442DA loc_44292: cmp [rbp+var_3C], 0 jz short loc_442A4 xor eax, eax sub rax, [rbp+var_58] mov [rbp+var_80], rax jmp short loc_442AC loc_442A4: mov rax, [rbp+var_58] mov [rbp+var_80], rax loc_442AC: mov rax, [rbp+var_80] mov [rbp+var_8], rax jmp short loc_442DA loc_442B6: mov rax, [rbp+var_38] mov dword ptr [rax], 21h ; '!' cmp [rbp+var_30], 0 jz short loc_442D2 mov rcx, [rbp+var_18] mov rax, [rbp+var_30] mov [rax], rcx loc_442D2: mov [rbp+var_8], 0 loc_442DA: mov rax, [rbp+var_8] pop rbp retn
unsigned long long my_strntoll_8bit(long long a1, _BYTE *a2, long long a3, int a4, _QWORD *a5, _DWORD *a6) { long long v6; // rax bool v9; // [rsp+Ah] [rbp-76h] unsigned __int8 v10; // [rsp+Bh] [rbp-75h] unsigned __int8 v11; // [rsp+Bh] [rbp-75h] int v12; // [rsp+Ch] [rbp-74h] _BYTE *v13; // [rsp+10h] [rbp-70h] _BYTE *v14; // [rsp+18h] [rbp-68h] _BYTE *v15; // [rsp+20h] [rbp-60h] unsigned long long v16; // [rsp+28h] [rbp-58h] unsigned long long v17; // [rsp+38h] [rbp-48h] int v18; // [rsp+44h] [rbp-3Ch] *a6 = 0; v15 = a2; v14 = &a2[a3]; while ( 1 ) { v9 = 0; if ( v15 < v14 ) v9 = (*(_BYTE *)(*(_QWORD *)(a1 + 64) + (unsigned __int8)*v15 + 1LL) & 8) != 0; if ( !v9 ) break; ++v15; } if ( v15 == v14 ) goto LABEL_47; if ( *v15 == 45 ) { v18 = 1; ++v15; } else { v18 = 0; if ( *v15 == 43 ) ++v15; } v13 = v15; v17 = 0xFFFFFFFFFFFFFFFFLL / a4; v12 = 0; v16 = 0LL; while ( v15 != v14 ) { v10 = *v15; if ( (unsigned __int8)*v15 < 0x30u || v10 > 0x39u ) { if ( v10 < 0x41u || v10 > 0x5Au ) { if ( v10 < 0x61u || v10 > 0x7Au ) break; v11 = v10 - 97 + 10; } else { v11 = v10 - 65 + 10; } } else { v11 = v10 - 48; } if ( v11 >= a4 ) break; if ( v16 > v17 || v16 == v17 && v11 > (unsigned int)(0xFFFFFFFFFFFFFFFFLL % a4) ) v12 = 1; else v16 = v16 * a4 + v11; ++v15; } if ( v15 == v13 ) { LABEL_47: *a6 = 33; if ( a5 ) *a5 = a2; return 0LL; } else { if ( a5 ) *a5 = v15; if ( v18 ) { if ( v16 > 0x8000000000000000LL ) v12 = 1; } else if ( v16 > 0x7FFFFFFFFFFFFFFFLL ) { v12 = 1; } if ( v12 ) { *a6 = 34; v6 = 0x7FFFFFFFFFFFFFFFLL; if ( v18 ) return 0x8000000000000000LL; return v6; } else if ( v18 ) { return -(long long)v16; } else { return v16; } } }
my_strntoll_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x68],RAX LAB_00144049: MOV RCX,qword ptr [RBP + -0x60] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x68] MOV byte ptr [RBP + -0x76],AL JNC 0x00144078 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x8 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x76],AL LAB_00144078: MOV AL,byte ptr [RBP + -0x76] TEST AL,0x1 JNZ 0x00144081 JMP 0x00144091 LAB_00144081: JMP 0x00144083 LAB_00144083: MOV RAX,qword ptr [RBP + -0x60] ADD RAX,0x1 MOV qword ptr [RBP + -0x60],RAX JMP 0x00144049 LAB_00144091: MOV RAX,qword ptr [RBP + -0x60] CMP RAX,qword ptr [RBP + -0x68] JNZ 0x001440a0 JMP 0x001442b6 LAB_001440a0: MOV RAX,qword ptr [RBP + -0x60] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2d JNZ 0x001440c1 MOV dword ptr [RBP + -0x3c],0x1 MOV RAX,qword ptr [RBP + -0x60] ADD RAX,0x1 MOV qword ptr [RBP + -0x60],RAX JMP 0x001440eb LAB_001440c1: MOV RAX,qword ptr [RBP + -0x60] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2b JNZ 0x001440e2 MOV dword ptr [RBP + -0x3c],0x0 MOV RAX,qword ptr [RBP + -0x60] ADD RAX,0x1 MOV qword ptr [RBP + -0x60],RAX JMP 0x001440e9 LAB_001440e2: MOV dword ptr [RBP + -0x3c],0x0 LAB_001440e9: JMP 0x001440eb LAB_001440eb: MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RBP + -0x70],RAX MOVSXD RCX,dword ptr [RBP + -0x24] MOV RAX,-0x1 XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x48],RAX MOVSXD RCX,dword ptr [RBP + -0x24] MOV RAX,-0x1 XOR EDX,EDX DIV RCX MOV EAX,EDX MOV dword ptr [RBP + -0x4c],EAX MOV dword ptr [RBP + -0x74],0x0 MOV qword ptr [RBP + -0x58],0x0 LAB_0014412b: MOV RAX,qword ptr [RBP + -0x60] CMP RAX,qword ptr [RBP + -0x68] JZ 0x00144205 MOV RAX,qword ptr [RBP + -0x60] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x75],AL MOVZX EAX,byte ptr [RBP + -0x75] CMP EAX,0x30 JL 0x00144160 MOVZX EAX,byte ptr [RBP + -0x75] CMP EAX,0x39 JG 0x00144160 MOVZX EAX,byte ptr [RBP + -0x75] SUB EAX,0x30 MOV byte ptr [RBP + -0x75],AL JMP 0x001441a8 LAB_00144160: MOVZX EAX,byte ptr [RBP + -0x75] CMP EAX,0x41 JL 0x00144181 MOVZX EAX,byte ptr [RBP + -0x75] CMP EAX,0x5a JG 0x00144181 MOVZX EAX,byte ptr [RBP + -0x75] SUB EAX,0x41 ADD EAX,0xa MOV byte ptr [RBP + -0x75],AL JMP 0x001441a6 LAB_00144181: MOVZX EAX,byte ptr [RBP + -0x75] CMP EAX,0x61 JL 0x001441a2 MOVZX EAX,byte ptr [RBP + -0x75] CMP EAX,0x7a JG 0x001441a2 MOVZX EAX,byte ptr [RBP + -0x75] SUB EAX,0x61 ADD EAX,0xa MOV byte ptr [RBP + -0x75],AL JMP 0x001441a4 LAB_001441a2: JMP 0x00144205 LAB_001441a4: JMP 0x001441a6 LAB_001441a6: JMP 0x001441a8 LAB_001441a8: MOVZX EAX,byte ptr [RBP + -0x75] CMP EAX,dword ptr [RBP + -0x24] JL 0x001441b3 JMP 0x00144205 LAB_001441b3: MOV RAX,qword ptr [RBP + -0x58] CMP RAX,qword ptr [RBP + -0x48] JA 0x001441d0 MOV RAX,qword ptr [RBP + -0x58] CMP RAX,qword ptr [RBP + -0x48] JNZ 0x001441d9 MOVZX EAX,byte ptr [RBP + -0x75] CMP EAX,dword ptr [RBP + -0x4c] JBE 0x001441d9 LAB_001441d0: MOV dword ptr [RBP + -0x74],0x1 JMP 0x001441f2 LAB_001441d9: MOVSXD RAX,dword ptr [RBP + -0x24] IMUL RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x58],RAX MOVZX EAX,byte ptr [RBP + -0x75] ADD RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x58],RAX LAB_001441f2: JMP 0x001441f4 LAB_001441f4: MOV RAX,qword ptr [RBP + -0x60] ADD RAX,0x1 MOV qword ptr [RBP + -0x60],RAX JMP 0x0014412b LAB_00144205: MOV RAX,qword ptr [RBP + -0x60] CMP RAX,qword ptr [RBP + -0x70] JNZ 0x00144214 JMP 0x001442b6 LAB_00144214: CMP qword ptr [RBP + -0x30],0x0 JZ 0x00144226 MOV RCX,qword ptr [RBP + -0x60] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_00144226: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x00144245 MOV RAX,-0x8000000000000000 CMP qword ptr [RBP + -0x58],RAX JBE 0x00144243 MOV dword ptr [RBP + -0x74],0x1 LAB_00144243: JMP 0x0014425e LAB_00144245: MOV RAX,0x7fffffffffffffff CMP qword ptr [RBP + -0x58],RAX JBE 0x0014425c MOV dword ptr [RBP + -0x74],0x1 LAB_0014425c: JMP 0x0014425e LAB_0014425e: CMP dword ptr [RBP + -0x74],0x0 JZ 0x00144292 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x22 MOV EDX,dword ptr [RBP + -0x3c] MOV RAX,0x7fffffffffffffff MOV RCX,-0x8000000000000000 CMP EDX,0x0 CMOVNZ RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x001442da LAB_00144292: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x001442a4 XOR EAX,EAX SUB RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x80],RAX JMP 0x001442ac LAB_001442a4: MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x80],RAX LAB_001442ac: MOV RAX,qword ptr [RBP + -0x80] MOV qword ptr [RBP + -0x8],RAX JMP 0x001442da LAB_001442b6: MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x21 CMP qword ptr [RBP + -0x30],0x0 JZ 0x001442d2 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_001442d2: MOV qword ptr [RBP + -0x8],0x0 LAB_001442da: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
ulong my_strntoll_8bit(long param_1,byte *param_2,long param_3,int param_4,int8 *param_5, int4 *param_6) { int1 auVar1 [16]; int1 auVar2 [16]; bool bVar3; byte *pbVar4; byte *pbVar5; ulong uVar6; bool bVar7; ulong local_88; byte local_7d; byte *local_68; ulong local_60; *param_6 = 0; pbVar5 = param_2 + param_3; local_68 = param_2; while( true ) { bVar7 = false; if (local_68 < pbVar5) { bVar7 = (*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*local_68) & 8) != 0; } if (!bVar7) break; local_68 = local_68 + 1; } if (local_68 != pbVar5) { if (*local_68 == 0x2d) { bVar7 = true; local_68 = local_68 + 1; } else { if (*local_68 == 0x2b) { local_68 = local_68 + 1; } bVar7 = false; } pbVar4 = local_68; auVar1._8_8_ = 0; auVar1._0_8_ = (long)param_4; uVar6 = SUB168((ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff)) / auVar1,0); auVar2._8_8_ = 0; auVar2._0_8_ = (long)param_4; bVar3 = false; local_60 = 0; for (; local_68 != pbVar5; local_68 = local_68 + 1) { local_7d = *local_68; if ((local_7d < 0x30) || (0x39 < local_7d)) { if ((local_7d < 0x41) || (0x5a < local_7d)) { if ((local_7d < 0x61) || (0x7a < local_7d)) break; local_7d = local_7d + 0xa9; } else { local_7d = local_7d - 0x37; } } else { local_7d = local_7d - 0x30; } if (param_4 <= (int)(uint)local_7d) break; if ((uVar6 < local_60) || ((local_60 == uVar6 && (SUB164((ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff)) % auVar2,0) < (uint)local_7d))) ) { bVar3 = true; } else { local_60 = (ulong)local_7d + (long)param_4 * local_60; } } if (local_68 != pbVar4) { if (param_5 != (int8 *)0x0) { *param_5 = local_68; } if (bVar7) { if (0x8000000000000000 < local_60) { bVar3 = true; } } else if (0x7fffffffffffffff < local_60) { bVar3 = true; } if (bVar3) { *param_6 = 0x22; if (!bVar7) { return 0x7fffffffffffffff; } return 0x8000000000000000; } if (bVar7) { local_88 = -local_60; } else { local_88 = local_60; } return local_88; } } *param_6 = 0x21; if (param_5 != (int8 *)0x0) { *param_5 = param_2; } return 0; }
2,197
range_map<unsigned long>::ranges()
msxemulator/build_O0/_deps/picotool-src/main.cpp
vector<range> ranges() { vector<range> r; r.reserve(m.size()); for(const auto &e : m) { r.emplace_back(range(e.first, e.second.first)); } return r; }
O0
cpp
range_map<unsigned long>::ranges(): subq $0x68, %rsp movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, (%rsp) movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x8(%rsp) movb $0x0, 0x57(%rsp) callq 0xbbe70 movq 0x8(%rsp), %rdi callq 0xbbf90 movq 0x10(%rsp), %rdi movq %rax, %rsi callq 0xbbe80 jmp 0x5bf27 movq 0x8(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x38(%rsp), %rdi callq 0x97930 movq %rax, 0x30(%rsp) movq 0x38(%rsp), %rdi callq 0x978e0 movq %rax, 0x28(%rsp) leaq 0x30(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0xbb6e0 testb $0x1, %al jne 0x5bf64 jmp 0x5bfc2 leaq 0x30(%rsp), %rdi callq 0xbbfa0 movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rax movl (%rax), %esi movl 0x8(%rax), %edx leaq 0x18(%rsp), %rdi callq 0x5b3a0 jmp 0x5bf89 movq 0x10(%rsp), %rdi leaq 0x18(%rsp), %rsi callq 0xbbfc0 jmp 0x5bf9a jmp 0x5bf9c leaq 0x30(%rsp), %rdi callq 0xbc030 jmp 0x5bf4f movq 0x10(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) callq 0x5c100 jmp 0x5bfe1 movb $0x1, 0x57(%rsp) testb $0x1, 0x57(%rsp) jne 0x5bfd8 movq 0x10(%rsp), %rdi callq 0x5c100 movq (%rsp), %rax addq $0x68, %rsp retq movq 0x48(%rsp), %rdi callq 0xf9e0 nopl (%rax,%rax)
_ZN9range_mapImE6rangesEv: sub rsp, 68h mov [rsp+68h+var_58], rdi mov rax, rdi mov [rsp+68h+var_68], rax mov [rsp+68h+var_8], rdi mov [rsp+68h+var_10], rsi mov rax, [rsp+68h+var_10] mov [rsp+68h+var_60], rax mov [rsp+68h+var_11], 0 call _ZNSt6vectorI5rangeSaIS0_EEC2Ev; std::vector<range>::vector(void) mov rdi, [rsp+68h+var_60] call _ZNKSt3mapIjSt4pairIjmESt4lessIjESaIS0_IKjS1_EEE4sizeEv; std::map<uint,std::pair<uint,ulong>>::size(void) mov rdi, [rsp+68h+var_58] mov rsi, rax call _ZNSt6vectorI5rangeSaIS0_EE7reserveEm; std::vector<range>::reserve(ulong) jmp short $+2 loc_5BF27: mov rax, [rsp+68h+var_60] mov [rsp+68h+var_30], rax mov rdi, [rsp+68h+var_30] call _ZNSt3mapIjSt4pairIjmESt4lessIjESaIS0_IKjS1_EEE5beginEv; std::map<uint,std::pair<uint,ulong>>::begin(void) mov [rsp+68h+var_38], rax mov rdi, [rsp+68h+var_30] call _ZNSt3mapIjSt4pairIjmESt4lessIjESaIS0_IKjS1_EEE3endEv; std::map<uint,std::pair<uint,ulong>>::end(void) mov [rsp+68h+var_40], rax loc_5BF4F: lea rdi, [rsp+68h+var_38] lea rsi, [rsp+68h+var_40] call _ZStneRKSt17_Rb_tree_iteratorISt4pairIKjS0_IjmEEES6_; std::operator!=(std::_Rb_tree_iterator<std::pair<uint const,std::pair<uint,ulong>>> const&,std::_Rb_tree_iterator<std::pair<uint const,std::pair<uint,ulong>>> const&) test al, 1 jnz short loc_5BF64 jmp short loc_5BFC2 loc_5BF64: lea rdi, [rsp+68h+var_38] call _ZNKSt17_Rb_tree_iteratorISt4pairIKjS0_IjmEEEdeEv; std::_Rb_tree_iterator<std::pair<uint const,std::pair<uint,ulong>>>::operator*(void) mov [rsp+68h+var_48], rax mov rax, [rsp+68h+var_48] mov esi, [rax]; unsigned int mov edx, [rax+8]; unsigned int lea rdi, [rsp+68h+var_50]; this call _ZN5rangeC2Ejj; range::range(uint,uint) jmp short $+2 loc_5BF89: mov rdi, [rsp+68h+var_58] lea rsi, [rsp+68h+var_50] call _ZNSt6vectorI5rangeSaIS0_EE12emplace_backIJS0_EEEvDpOT_; std::vector<range>::emplace_back<range>(range &&) jmp short $+2 loc_5BF9A: jmp short $+2 loc_5BF9C: lea rdi, [rsp+68h+var_38] call _ZNSt17_Rb_tree_iteratorISt4pairIKjS0_IjmEEEppEv; std::_Rb_tree_iterator<std::pair<uint const,std::pair<uint,ulong>>>::operator++(void) jmp short loc_5BF4F mov rdi, [rsp+arg_8] mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax call _ZNSt6vectorI5rangeSaIS0_EED2Ev; std::vector<range>::~vector() jmp short loc_5BFE1 loc_5BFC2: mov [rsp+68h+var_11], 1 test [rsp+68h+var_11], 1 jnz short loc_5BFD8 mov rdi, [rsp+68h+var_58] call _ZNSt6vectorI5rangeSaIS0_EED2Ev; std::vector<range>::~vector() loc_5BFD8: mov rax, [rsp+68h+var_68] add rsp, 68h retn loc_5BFE1: mov rdi, [rsp+arg_40] call __Unwind_Resume
long long range_map<unsigned long>::ranges(long long a1, long long a2) { long long v2; // rax _BYTE v4[8]; // [rsp+18h] [rbp-50h] BYREF int *v5; // [rsp+20h] [rbp-48h] long long v6; // [rsp+28h] [rbp-40h] BYREF _QWORD v7[4]; // [rsp+30h] [rbp-38h] BYREF char v8; // [rsp+57h] [rbp-11h] long long v9; // [rsp+58h] [rbp-10h] long long v10; // [rsp+60h] [rbp-8h] v10 = a1; v9 = a2; v8 = 0; std::vector<range>::vector(); v2 = std::map<unsigned int,std::pair<unsigned int,unsigned long>>::size(a2); std::vector<range>::reserve(a1, v2); v7[1] = a2; v7[0] = std::map<unsigned int,std::pair<unsigned int,unsigned long>>::begin(a2); v6 = std::map<unsigned int,std::pair<unsigned int,unsigned long>>::end(a2); while ( (std::operator!=(v7, &v6) & 1) != 0 ) { v5 = (int *)std::_Rb_tree_iterator<std::pair<unsigned int const,std::pair<unsigned int,unsigned long>>>::operator*(v7); range::range((range *)v4, *v5, v5[2]); std::vector<range>::emplace_back<range>(a1, v4); std::_Rb_tree_iterator<std::pair<unsigned int const,std::pair<unsigned int,unsigned long>>>::operator++(v7); } return a1; }
ranges: SUB RSP,0x68 MOV qword ptr [RSP + 0x10],RDI MOV RAX,RDI MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x60],RDI MOV qword ptr [RSP + 0x58],RSI MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x8],RAX MOV byte ptr [RSP + 0x57],0x0 CALL 0x001bbe70 MOV RDI,qword ptr [RSP + 0x8] CALL 0x001bbf90 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,RAX LAB_0015bf20: CALL 0x001bbe80 JMP 0x0015bf27 LAB_0015bf27: MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0x38] CALL 0x00197930 MOV qword ptr [RSP + 0x30],RAX MOV RDI,qword ptr [RSP + 0x38] CALL 0x001978e0 MOV qword ptr [RSP + 0x28],RAX LAB_0015bf4f: LEA RDI,[RSP + 0x30] LEA RSI,[RSP + 0x28] CALL 0x001bb6e0 TEST AL,0x1 JNZ 0x0015bf64 JMP 0x0015bfc2 LAB_0015bf64: LEA RDI,[RSP + 0x30] CALL 0x001bbfa0 MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x20] MOV ESI,dword ptr [RAX] MOV EDX,dword ptr [RAX + 0x8] LEA RDI,[RSP + 0x18] CALL 0x0015b3a0 JMP 0x0015bf89 LAB_0015bf89: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x18] CALL 0x001bbfc0 LAB_0015bf98: JMP 0x0015bf9a LAB_0015bf9a: JMP 0x0015bf9c LAB_0015bf9c: LEA RDI,[RSP + 0x30] CALL 0x001bc030 JMP 0x0015bf4f LAB_0015bfc2: MOV byte ptr [RSP + 0x57],0x1 TEST byte ptr [RSP + 0x57],0x1 JNZ 0x0015bfd8 MOV RDI,qword ptr [RSP + 0x10] CALL 0x0015c100 LAB_0015bfd8: MOV RAX,qword ptr [RSP] ADD RSP,0x68 RET
/* WARNING: Removing unreachable block (ram,0x0015bfce) */ /* range_map<unsigned long>::ranges() */ vector<range,std::allocator<range>> * range_map<unsigned_long>::ranges(void) { ulong uVar1; map<unsigned_int,std::pair<unsigned_int,unsigned_long>,std::less<unsigned_int>,std::allocator<std::pair<unsigned_int_const,std::pair<unsigned_int,unsigned_long>>>> *in_RSI; vector<range,std::allocator<range>> *in_RDI; range local_50 [8]; uint *local_48; int8 local_40; int8 local_38; map<unsigned_int,std::pair<unsigned_int,unsigned_long>,std::less<unsigned_int>,std::allocator<std::pair<unsigned_int_const,std::pair<unsigned_int,unsigned_long>>>> *local_30; int1 local_11; local_11 = 0; std::vector<range,std::allocator<range>>::vector(in_RDI); uVar1 = std:: map<unsigned_int,std::pair<unsigned_int,unsigned_long>,std::less<unsigned_int>,std::allocator<std::pair<unsigned_int_const,std::pair<unsigned_int,unsigned_long>>>> ::size(in_RSI); /* try { // try from 0015bf20 to 0015bf97 has its CatchHandler @ 0015bfa8 */ std::vector<range,std::allocator<range>>::reserve(in_RDI,uVar1); local_30 = in_RSI; local_38 = std:: map<unsigned_int,std::pair<unsigned_int,unsigned_long>,std::less<unsigned_int>,std::allocator<std::pair<unsigned_int_const,std::pair<unsigned_int,unsigned_long>>>> ::begin(in_RSI); local_40 = std:: map<unsigned_int,std::pair<unsigned_int,unsigned_long>,std::less<unsigned_int>,std::allocator<std::pair<unsigned_int_const,std::pair<unsigned_int,unsigned_long>>>> ::end(local_30); while (uVar1 = std::operator!=((_Rb_tree_iterator *)&local_38,(_Rb_tree_iterator *)&local_40), (uVar1 & 1) != 0) { local_48 = (uint *)std:: _Rb_tree_iterator<std::pair<unsigned_int_const,std::pair<unsigned_int,unsigned_long>>> ::operator*((_Rb_tree_iterator<std::pair<unsigned_int_const,std::pair<unsigned_int,unsigned_long>>> *)&local_38); range::range(local_50,*local_48,local_48[2]); std::vector<range,std::allocator<range>>::emplace_back<range>(in_RDI,local_50); std::_Rb_tree_iterator<std::pair<unsigned_int_const,std::pair<unsigned_int,unsigned_long>>>:: operator++((_Rb_tree_iterator<std::pair<unsigned_int_const,std::pair<unsigned_int,unsigned_long>>> *)&local_38); } return in_RDI; }
2,198
ma_mempack_get_block_info
eloqsql/storage/maria/ma_packrec.c
static uchar * _ma_mempack_get_block_info(MARIA_HA *maria, MARIA_BIT_BUFF *bit_buff, MARIA_BLOCK_INFO *info, uchar **rec_buff_p, size_t *rec_buff_size_p, uchar *header) { MARIA_SHARE *share= maria->s; myf flag= MY_WME | (share->temporary ? MY_THREAD_SPECIFIC : 0); header+= read_pack_length((uint) share->pack.version, header, &info->rec_len); if (share->base.blobs) { header+= read_pack_length((uint) share->pack.version, header, &info->blob_len); /* _ma_alloc_rec_buff sets my_errno on error */ if (_ma_alloc_buffer(rec_buff_p, rec_buff_size_p, info->blob_len + share->base.extra_rec_buff_size, flag)) return 0; /* not enough memory */ bit_buff->blob_pos= *rec_buff_p; bit_buff->blob_end= *rec_buff_p + info->blob_len; } return header; }
O3
c
ma_mempack_get_block_info: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r9, %rbx movq %rcx, %r12 movq %rdx, %r15 movq %rsi, %r14 movzbl (%r9), %eax cmpq $0xfd, %rax ja 0x47812 movl $0x1, %ecx jmp 0x4784a cmpl $0xfe, %eax jne 0x47824 movzwl 0x1(%rbx), %eax movl $0x3, %ecx jmp 0x4784a cmpb $0x1, 0x59c(%rdi) jne 0x47842 movzwl 0x1(%rbx), %ecx movzbl 0x3(%rbx), %eax shll $0x10, %eax orq %rcx, %rax movl $0x4, %ecx jmp 0x4784a movl 0x1(%rbx), %eax movl $0x5, %ecx movb 0x7d9(%rdi), %dl movq %rax, 0x18(%r15) addq %rcx, %rbx cmpl $0x0, 0x3f0(%rdi) je 0x478f3 xorl %ecx, %ecx testb %dl, %dl setne %cl shll $0x10, %ecx orq $0x10, %rcx movzbl (%rbx), %eax cmpq $0xfd, %rax ja 0x47885 movl $0x1, %r13d jmp 0x478c0 cmpl $0xfe, %eax jne 0x47898 movzwl 0x1(%rbx), %eax movl $0x3, %r13d jmp 0x478c0 cmpb $0x1, 0x59c(%rdi) jne 0x478b7 movzwl 0x1(%rbx), %edx movzbl 0x3(%rbx), %eax shll $0x10, %eax orq %rdx, %rax movl $0x4, %r13d jmp 0x478c0 movl 0x1(%rbx), %eax movl $0x5, %r13d movq %rax, 0x30(%r15) movl 0x424(%rdi), %edx addq %rax, %rdx movq %r12, %rdi movq %r8, %rsi callq 0x3a33f testb %al, %al je 0x478e0 xorl %ebx, %ebx jmp 0x478f3 addq %r13, %rbx movq (%r12), %rax movq %rax, 0x18(%r14) addq 0x30(%r15), %rax movq %rax, 0x20(%r14) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nopl (%rax)
_ma_mempack_get_block_info: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, r9 mov r12, rcx mov r15, rdx mov r14, rsi movzx eax, byte ptr [r9] cmp rax, 0FDh ja short loc_47812 mov ecx, 1 jmp short loc_4784A loc_47812: cmp eax, 0FEh jnz short loc_47824 movzx eax, word ptr [rbx+1] mov ecx, 3 jmp short loc_4784A loc_47824: cmp byte ptr [rdi+59Ch], 1 jnz short loc_47842 movzx ecx, word ptr [rbx+1] movzx eax, byte ptr [rbx+3] shl eax, 10h or rax, rcx mov ecx, 4 jmp short loc_4784A loc_47842: mov eax, [rbx+1] mov ecx, 5 loc_4784A: mov dl, [rdi+7D9h] mov [r15+18h], rax add rbx, rcx cmp dword ptr [rdi+3F0h], 0 jz loc_478F3 xor ecx, ecx test dl, dl setnz cl shl ecx, 10h or rcx, 10h movzx eax, byte ptr [rbx] cmp rax, 0FDh ja short loc_47885 mov r13d, 1 jmp short loc_478C0 loc_47885: cmp eax, 0FEh jnz short loc_47898 movzx eax, word ptr [rbx+1] mov r13d, 3 jmp short loc_478C0 loc_47898: cmp byte ptr [rdi+59Ch], 1 jnz short loc_478B7 movzx edx, word ptr [rbx+1] movzx eax, byte ptr [rbx+3] shl eax, 10h or rax, rdx mov r13d, 4 jmp short loc_478C0 loc_478B7: mov eax, [rbx+1] mov r13d, 5 loc_478C0: mov [r15+30h], rax mov edx, [rdi+424h] add rdx, rax mov rdi, r12 mov rsi, r8 call _ma_alloc_buffer test al, al jz short loc_478E0 xor ebx, ebx jmp short loc_478F3 loc_478E0: add rbx, r13 mov rax, [r12] mov [r14+18h], rax add rax, [r15+30h] mov [r14+20h], rax loc_478F3: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned __int8 * ma_mempack_get_block_info( long long a1, long long a2, long long a3, long long *a4, unsigned long long *a5, unsigned __int8 *a6) { unsigned long long v8; // rax long long v9; // rcx char v10; // dl unsigned __int8 *v11; // rbx unsigned long long v12; // rax long long v13; // r13 long long v14; // rax v8 = *a6; if ( v8 > 0xFD ) { if ( (_DWORD)v8 == 254 ) { v8 = *(unsigned __int16 *)(a6 + 1); v9 = 3LL; } else if ( *(_BYTE *)(a1 + 1436) == 1 ) { v8 = *(unsigned __int16 *)(a6 + 1) | (unsigned long long)(a6[3] << 16); v9 = 4LL; } else { v8 = *(unsigned int *)(a6 + 1); v9 = 5LL; } } else { v9 = 1LL; } v10 = *(_BYTE *)(a1 + 2009); *(_QWORD *)(a3 + 24) = v8; v11 = &a6[v9]; if ( *(_DWORD *)(a1 + 1008) ) { v12 = *v11; if ( v12 > 0xFD ) { if ( (_DWORD)v12 == 254 ) { v12 = *(unsigned __int16 *)(v11 + 1); v13 = 3LL; } else if ( *(_BYTE *)(a1 + 1436) == 1 ) { v12 = *(unsigned __int16 *)(v11 + 1) | (unsigned long long)(v11[3] << 16); v13 = 4LL; } else { v12 = *(unsigned int *)(v11 + 1); v13 = 5LL; } } else { v13 = 1LL; } *(_QWORD *)(a3 + 48) = v12; if ( (unsigned __int8)ma_alloc_buffer( a4, a5, v12 + *(unsigned int *)(a1 + 1060), ((unsigned __int8)(v10 != 0) << 16) | 0x10LL) ) { return 0LL; } else { v11 += v13; v14 = *a4; *(_QWORD *)(a2 + 24) = *a4; *(_QWORD *)(a2 + 32) = *(_QWORD *)(a3 + 48) + v14; } } return v11; }
_ma_mempack_get_block_info: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,R9 MOV R12,RCX MOV R15,RDX MOV R14,RSI MOVZX EAX,byte ptr [R9] CMP RAX,0xfd JA 0x00147812 MOV ECX,0x1 JMP 0x0014784a LAB_00147812: CMP EAX,0xfe JNZ 0x00147824 MOVZX EAX,word ptr [RBX + 0x1] MOV ECX,0x3 JMP 0x0014784a LAB_00147824: CMP byte ptr [RDI + 0x59c],0x1 JNZ 0x00147842 MOVZX ECX,word ptr [RBX + 0x1] MOVZX EAX,byte ptr [RBX + 0x3] SHL EAX,0x10 OR RAX,RCX MOV ECX,0x4 JMP 0x0014784a LAB_00147842: MOV EAX,dword ptr [RBX + 0x1] MOV ECX,0x5 LAB_0014784a: MOV DL,byte ptr [RDI + 0x7d9] MOV qword ptr [R15 + 0x18],RAX ADD RBX,RCX CMP dword ptr [RDI + 0x3f0],0x0 JZ 0x001478f3 XOR ECX,ECX TEST DL,DL SETNZ CL SHL ECX,0x10 OR RCX,0x10 MOVZX EAX,byte ptr [RBX] CMP RAX,0xfd JA 0x00147885 MOV R13D,0x1 JMP 0x001478c0 LAB_00147885: CMP EAX,0xfe JNZ 0x00147898 MOVZX EAX,word ptr [RBX + 0x1] MOV R13D,0x3 JMP 0x001478c0 LAB_00147898: CMP byte ptr [RDI + 0x59c],0x1 JNZ 0x001478b7 MOVZX EDX,word ptr [RBX + 0x1] MOVZX EAX,byte ptr [RBX + 0x3] SHL EAX,0x10 OR RAX,RDX MOV R13D,0x4 JMP 0x001478c0 LAB_001478b7: MOV EAX,dword ptr [RBX + 0x1] MOV R13D,0x5 LAB_001478c0: MOV qword ptr [R15 + 0x30],RAX MOV EDX,dword ptr [RDI + 0x424] ADD RDX,RAX MOV RDI,R12 MOV RSI,R8 CALL 0x0013a33f TEST AL,AL JZ 0x001478e0 XOR EBX,EBX JMP 0x001478f3 LAB_001478e0: ADD RBX,R13 MOV RAX,qword ptr [R12] MOV qword ptr [R14 + 0x18],RAX ADD RAX,qword ptr [R15 + 0x30] MOV qword ptr [R14 + 0x20],RAX LAB_001478f3: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
byte * _ma_mempack_get_block_info (long param_1,long param_2,long param_3,long *param_4,int8 param_5, byte *param_6) { char cVar1; ulong uVar2; long lVar3; uVar2 = (ulong)*param_6; if (uVar2 < 0xfe) { lVar3 = 1; } else if (*param_6 == 0xfe) { uVar2 = (ulong)*(ushort *)(param_6 + 1); lVar3 = 3; } else if (*(char *)(param_1 + 0x59c) == '\x01') { uVar2 = (ulong)*(uint3 *)(param_6 + 1); lVar3 = 4; } else { uVar2 = (ulong)*(uint *)(param_6 + 1); lVar3 = 5; } cVar1 = *(char *)(param_1 + 0x7d9); *(ulong *)(param_3 + 0x18) = uVar2; param_6 = param_6 + lVar3; if (*(int *)(param_1 + 0x3f0) != 0) { uVar2 = (ulong)*param_6; if (uVar2 < 0xfe) { lVar3 = 1; } else if (*param_6 == 0xfe) { uVar2 = (ulong)*(ushort *)(param_6 + 1); lVar3 = 3; } else if (*(char *)(param_1 + 0x59c) == '\x01') { uVar2 = (ulong)*(uint3 *)(param_6 + 1); lVar3 = 4; } else { uVar2 = (ulong)*(uint *)(param_6 + 1); lVar3 = 5; } *(ulong *)(param_3 + 0x30) = uVar2; cVar1 = _ma_alloc_buffer(param_4,param_5,*(uint *)(param_1 + 0x424) + uVar2, (ulong)(cVar1 != '\0') << 0x10 | 0x10); if (cVar1 == '\0') { param_6 = param_6 + lVar3; lVar3 = *param_4; *(long *)(param_2 + 0x18) = lVar3; *(long *)(param_2 + 0x20) = lVar3 + *(long *)(param_3 + 0x30); } else { param_6 = (byte *)0x0; } } return param_6; }
2,199
prepare_resize_simple_key_cache
eloqsql/mysys/mf_keycache.c
static int prepare_resize_simple_key_cache(SIMPLE_KEY_CACHE_CB *keycache, my_bool release_lock) { int res= 0; DBUG_ENTER("prepare_resize_simple_key_cache"); keycache_pthread_mutex_lock(&keycache->cache_lock); /* We may need to wait for another thread which is doing a resize already. This cannot happen in the MySQL server though. It allows one resizer only. In set_var.cc keycache->in_init is used to block multiple attempts. */ while (keycache->in_resize) { /* purecov: begin inspected */ wait_on_queue(&keycache->resize_queue, &keycache->cache_lock); /* purecov: end */ } /* Mark the operation in progress. This blocks other threads from doing a resize in parallel. It prohibits new blocks to enter the cache. Read/write requests can bypass the cache during the flush phase. */ keycache->in_resize= 1; /* Need to flush only if keycache is enabled. */ if (keycache->can_be_used && keycache->disk_blocks != -1) { /* Start the flush phase. */ keycache->resize_in_flush= 1; if (flush_all_key_blocks(keycache)) { /* TODO: if this happens, we should write a warning in the log file ! */ keycache->resize_in_flush= 0; keycache->can_be_used= 0; res= 1; goto finish; } DBUG_SLOW_ASSERT(cache_empty(keycache)); /* End the flush phase. */ keycache->resize_in_flush= 0; } /* Some direct read/write operations (bypassing the cache) may still be unfinished. Wait until they are done. If the key cache can be used, direct I/O is done in increments of key_cache_block_size. That is, every block is checked if it is in the cache. We need to wait for pending I/O before re-initializing the cache, because we may change the block size. Otherwise they could check for blocks at file positions where the new block division has none. We do also want to wait for I/O done when (if) the cache was disabled. It must not run in parallel with normal cache operation. */ while (keycache->cnt_for_resize_op) wait_on_queue(&keycache->waiting_for_resize_cnt, &keycache->cache_lock); end_simple_key_cache(keycache, 0); finish: if (release_lock) keycache_pthread_mutex_unlock(&keycache->cache_lock); DBUG_RETURN(res); }
O0
c
prepare_resize_simple_key_cache: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %sil, %al movq %rdi, -0x8(%rbp) movb %al, -0x9(%rbp) movl $0x0, -0x10(%rbp) movq -0x8(%rbp), %rdi addq $0xc0, %rdi leaq 0x6d3ef(%rip), %rsi # 0x1541ea movl $0x2a9, %edx # imm = 0x2A9 callq 0xe3620 movq -0x8(%rbp), %rax cmpb $0x0, 0x1(%rax) je 0xe6e2c movq -0x8(%rbp), %rdi addq $0x108, %rdi # imm = 0x108 movq -0x8(%rbp), %rsi addq $0xc0, %rsi callq 0xe3690 jmp 0xe6e05 movq -0x8(%rbp), %rax movb $0x1, 0x1(%rax) movq -0x8(%rbp), %rax movsbl 0x3(%rax), %eax cmpl $0x0, %eax je 0xe6e86 movq -0x8(%rbp), %rax cmpl $-0x1, 0x48(%rax) je 0xe6e86 movq -0x8(%rbp), %rax movb $0x1, 0x2(%rax) movq -0x8(%rbp), %rdi callq 0xe6f30 cmpl $0x0, %eax je 0xe6e7a movq -0x8(%rbp), %rax movb $0x0, 0x2(%rax) movq -0x8(%rbp), %rax movb $0x0, 0x3(%rax) movl $0x1, -0x10(%rbp) jmp 0xe6ebb jmp 0xe6e7c jmp 0xe6e7e movq -0x8(%rbp), %rax movb $0x0, 0x2(%rax) jmp 0xe6e88 movq -0x8(%rbp), %rax cmpq $0x0, 0x70(%rax) je 0xe6eb0 movq -0x8(%rbp), %rdi addq $0x110, %rdi # imm = 0x110 movq -0x8(%rbp), %rsi addq $0xc0, %rsi callq 0xe3690 jmp 0xe6e88 movq -0x8(%rbp), %rdi xorl %esi, %esi callq 0xe6b20 cmpb $0x0, -0x9(%rbp) je 0xe6ed1 movq -0x8(%rbp), %rdi addq $0xc0, %rdi callq 0xe4040 jmp 0xe6ed3 movl -0x10(%rbp), %eax movl %eax, -0x14(%rbp) movl -0x14(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
prepare_resize_simple_key_cache: push rbp mov rbp, rsp sub rsp, 20h mov al, sil mov [rbp+var_8], rdi mov [rbp+var_9], al mov [rbp+var_10], 0 mov rdi, [rbp+var_8] add rdi, 0C0h lea rsi, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 2A9h call inline_mysql_mutex_lock_24 loc_E6E05: mov rax, [rbp+var_8] cmp byte ptr [rax+1], 0 jz short loc_E6E2C mov rdi, [rbp+var_8] add rdi, 108h mov rsi, [rbp+var_8] add rsi, 0C0h call wait_on_queue jmp short loc_E6E05 loc_E6E2C: mov rax, [rbp+var_8] mov byte ptr [rax+1], 1 mov rax, [rbp+var_8] movsx eax, byte ptr [rax+3] cmp eax, 0 jz short loc_E6E86 mov rax, [rbp+var_8] cmp dword ptr [rax+48h], 0FFFFFFFFh jz short loc_E6E86 mov rax, [rbp+var_8] mov byte ptr [rax+2], 1 mov rdi, [rbp+var_8] call flush_all_key_blocks cmp eax, 0 jz short loc_E6E7A mov rax, [rbp+var_8] mov byte ptr [rax+2], 0 mov rax, [rbp+var_8] mov byte ptr [rax+3], 0 mov [rbp+var_10], 1 jmp short loc_E6EBB loc_E6E7A: jmp short $+2 loc_E6E7C: jmp short $+2 loc_E6E7E: mov rax, [rbp+var_8] mov byte ptr [rax+2], 0 loc_E6E86: jmp short $+2 loc_E6E88: mov rax, [rbp+var_8] cmp qword ptr [rax+70h], 0 jz short loc_E6EB0 mov rdi, [rbp+var_8] add rdi, 110h mov rsi, [rbp+var_8] add rsi, 0C0h call wait_on_queue jmp short loc_E6E88 loc_E6EB0: mov rdi, [rbp+var_8] xor esi, esi call end_simple_key_cache loc_E6EBB: cmp [rbp+var_9], 0 jz short loc_E6ED1 mov rdi, [rbp+var_8] add rdi, 0C0h call inline_mysql_mutex_unlock_25 loc_E6ED1: jmp short $+2 loc_E6ED3: mov eax, [rbp+var_10] mov [rbp+var_14], eax mov eax, [rbp+var_14] add rsp, 20h pop rbp retn
long long prepare_resize_simple_key_cache(long long a1, char a2) { unsigned int v3; // [rsp+10h] [rbp-10h] v3 = 0; inline_mysql_mutex_lock_24(a1 + 192, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0x2A9u); while ( *(_BYTE *)(a1 + 1) ) wait_on_queue((long long *)(a1 + 264), (const char *)(a1 + 192)); *(_BYTE *)(a1 + 1) = 1; if ( !*(_BYTE *)(a1 + 3) || *(_DWORD *)(a1 + 72) == -1 ) { LABEL_9: while ( *(_QWORD *)(a1 + 112) ) wait_on_queue((long long *)(a1 + 272), (const char *)(a1 + 192)); end_simple_key_cache(a1, 0); goto LABEL_12; } *(_BYTE *)(a1 + 2) = 1; if ( !(unsigned int)flush_all_key_blocks(a1) ) { *(_BYTE *)(a1 + 2) = 0; goto LABEL_9; } *(_BYTE *)(a1 + 2) = 0; *(_BYTE *)(a1 + 3) = 0; v3 = 1; LABEL_12: if ( a2 ) inline_mysql_mutex_unlock_25(a1 + 192); return v3; }
prepare_resize_simple_key_cache: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,SIL MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],AL MOV dword ptr [RBP + -0x10],0x0 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc0 LEA RSI,[0x2541ea] MOV EDX,0x2a9 CALL 0x001e3620 LAB_001e6e05: MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x1],0x0 JZ 0x001e6e2c MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x108 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc0 CALL 0x001e3690 JMP 0x001e6e05 LAB_001e6e2c: MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x1],0x1 MOV RAX,qword ptr [RBP + -0x8] MOVSX EAX,byte ptr [RAX + 0x3] CMP EAX,0x0 JZ 0x001e6e86 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x48],-0x1 JZ 0x001e6e86 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x2],0x1 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001e6f30 CMP EAX,0x0 JZ 0x001e6e7a MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x2],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x3],0x0 MOV dword ptr [RBP + -0x10],0x1 JMP 0x001e6ebb LAB_001e6e7a: JMP 0x001e6e7c LAB_001e6e7c: JMP 0x001e6e7e LAB_001e6e7e: MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x2],0x0 LAB_001e6e86: JMP 0x001e6e88 LAB_001e6e88: MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x70],0x0 JZ 0x001e6eb0 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x110 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc0 CALL 0x001e3690 JMP 0x001e6e88 LAB_001e6eb0: MOV RDI,qword ptr [RBP + -0x8] XOR ESI,ESI CALL 0x001e6b20 LAB_001e6ebb: CMP byte ptr [RBP + -0x9],0x0 JZ 0x001e6ed1 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc0 CALL 0x001e4040 LAB_001e6ed1: JMP 0x001e6ed3 LAB_001e6ed3: MOV EAX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RBP + -0x14] ADD RSP,0x20 POP RBP RET
int4 prepare_resize_simple_key_cache(long param_1,char param_2) { int iVar1; int4 local_18; local_18 = 0; inline_mysql_mutex_lock (param_1 + 0xc0,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0x2a9); while (*(char *)(param_1 + 1) != '\0') { wait_on_queue(param_1 + 0x108); } *(int1 *)(param_1 + 1) = 1; if ((*(char *)(param_1 + 3) != '\0') && (*(int *)(param_1 + 0x48) != -1)) { *(int1 *)(param_1 + 2) = 1; iVar1 = flush_all_key_blocks(param_1); if (iVar1 != 0) { *(int1 *)(param_1 + 2) = 0; *(int1 *)(param_1 + 3) = 0; local_18 = 1; goto LAB_001e6ebb; } *(int1 *)(param_1 + 2) = 0; } while (*(long *)(param_1 + 0x70) != 0) { wait_on_queue(param_1 + 0x110); } end_simple_key_cache(param_1,0); LAB_001e6ebb: if (param_2 != '\0') { inline_mysql_mutex_unlock(param_1 + 0xc0); } return local_18; }